content
stringlengths 7
1.05M
| fixed_cases
stringlengths 1
1.28M
|
---|---|
# 2019-02-18
# sentence to dictionary meaning
sentence = "It is truth universally acknowledged"
f = open('dict_test.TXT', 'r', encoding='utf-8')
dictionary = {}
for line in f:
word = line[:-1].split(" : ", 1)
dictionary.update({word[0]:word[-1]})
f.close()
print("Sentence :", sentence)
for word in sentence.split(" "):
print(word.lower(), ':', dictionary[word.lower()])
| sentence = 'It is truth universally acknowledged'
f = open('dict_test.TXT', 'r', encoding='utf-8')
dictionary = {}
for line in f:
word = line[:-1].split(' : ', 1)
dictionary.update({word[0]: word[-1]})
f.close()
print('Sentence :', sentence)
for word in sentence.split(' '):
print(word.lower(), ':', dictionary[word.lower()]) |
class MultiCollector(object):
'a collector combining multiple other collectors'
def __init__(self):
self._collectors = {}
def register(self, name, collector):
self._collectors[name] = collector
def start(self):
for name in self._collectors:
self._collectors[name].start()
def stop(self):
for name in self._collectors:
self._collectors[name].stop()
def result(self):
r = {}
for name in self._collectors:
r.update({name: self._collectors[name].result()})
return r
| class Multicollector(object):
"""a collector combining multiple other collectors"""
def __init__(self):
self._collectors = {}
def register(self, name, collector):
self._collectors[name] = collector
def start(self):
for name in self._collectors:
self._collectors[name].start()
def stop(self):
for name in self._collectors:
self._collectors[name].stop()
def result(self):
r = {}
for name in self._collectors:
r.update({name: self._collectors[name].result()})
return r |
# Set number of participants
num_dyads = 4
num_participants = num_dyads*2
# Create lists for iterations
participants = list(range(num_participants))
dyads = list(range(num_dyads)) | num_dyads = 4
num_participants = num_dyads * 2
participants = list(range(num_participants))
dyads = list(range(num_dyads)) |
__all__ = ['v1', 'f1', 'C1']
v1 = 18
v2 = 36
def f1():
pass
def f2():
pass
class C1(object):
pass
class C2(object):
pass
| __all__ = ['v1', 'f1', 'C1']
v1 = 18
v2 = 36
def f1():
pass
def f2():
pass
class C1(object):
pass
class C2(object):
pass |
values = {
'r': 0.000000000001
}
typers = {
'r': float
}
def setGlobal(key, value):
values[key] = value
| values = {'r': 1e-12}
typers = {'r': float}
def set_global(key, value):
values[key] = value |
class UnsupportedMethod(Exception):
def __init__(self, message, errors):
super().__init__(message)
class NoPayload(Exception):
def __init__(self):
super().__init__() | class Unsupportedmethod(Exception):
def __init__(self, message, errors):
super().__init__(message)
class Nopayload(Exception):
def __init__(self):
super().__init__() |
def print_multiplication_table(vertical_interval, horizontal_interval):
print('\t', end='')
for i in range(horizontal_interval[0], horizontal_interval[1] + 1):
print(i, end='\t')
print()
for i in range(vertical_interval[0], vertical_interval[1] + 1):
print(i, end='\t')
for j in range(horizontal_interval[0], horizontal_interval[1] + 1):
print(i * j, end='\t')
print()
intervals = (int(input()), int(input())), (int(input()), int(input()))
print_multiplication_table(intervals[0], intervals[1])
| def print_multiplication_table(vertical_interval, horizontal_interval):
print('\t', end='')
for i in range(horizontal_interval[0], horizontal_interval[1] + 1):
print(i, end='\t')
print()
for i in range(vertical_interval[0], vertical_interval[1] + 1):
print(i, end='\t')
for j in range(horizontal_interval[0], horizontal_interval[1] + 1):
print(i * j, end='\t')
print()
intervals = ((int(input()), int(input())), (int(input()), int(input())))
print_multiplication_table(intervals[0], intervals[1]) |
class Colors:
def __init__(self):
self.color_dict = {
"ERROR": ';'.join([str(7), str(31), str(47)]),
"WARN": ';'.join([str(7), str(33), str(40)]),
"INFO": ';'.join([str(7), str(32), str(40)]),
"GENERAL": ';'.join([str(7), str(34), str(47)])
}
def get_cformat(self, message_type):
return self.color_dict[message_type] | class Colors:
def __init__(self):
self.color_dict = {'ERROR': ';'.join([str(7), str(31), str(47)]), 'WARN': ';'.join([str(7), str(33), str(40)]), 'INFO': ';'.join([str(7), str(32), str(40)]), 'GENERAL': ';'.join([str(7), str(34), str(47)])}
def get_cformat(self, message_type):
return self.color_dict[message_type] |
def globals(request):
#import pdb
#pdb.set_trace()
data = {}
if 'menu_item' in request.session:
data['menu_item'] = request.session['menu_item']
return data
| def globals(request):
data = {}
if 'menu_item' in request.session:
data['menu_item'] = request.session['menu_item']
return data |
SQLALCHEMY_DATABASE_URI = \
'mysql+cymysql://root:00000000@localhost/ucar'
SECRET_KEY = '***'
SQLALCHEMY_TRACK_MODIFICATIONS = True
MINA_APP = {
'AppID': '***',
'AppSecret': '***'
}
| sqlalchemy_database_uri = 'mysql+cymysql://root:00000000@localhost/ucar'
secret_key = '***'
sqlalchemy_track_modifications = True
mina_app = {'AppID': '***', 'AppSecret': '***'} |
class Class:
def __init__(self, name: str):
self.name = name
class Instance:
def __init__(self, cls: Class):
self.cls = cls
self._fields = {}
def get_attr(self, name: str):
if name not in self._fields:
raise AttributeError(f"'{self.cls.name}' has no attribute {name}")
return self._fields[name]
def set_attr(self, name: str, value):
self._fields[name] = value
| class Class:
def __init__(self, name: str):
self.name = name
class Instance:
def __init__(self, cls: Class):
self.cls = cls
self._fields = {}
def get_attr(self, name: str):
if name not in self._fields:
raise attribute_error(f"'{self.cls.name}' has no attribute {name}")
return self._fields[name]
def set_attr(self, name: str, value):
self._fields[name] = value |
# Pell Numbers
class Pell:
def __init__(self):
self.limiter = 1000
self.numbers = [0, 1]
self.path = r'./Pell_Sequence/results.txt'
def void(self):
with open(self.path, "w+") as file:
for i in range(self.limiter):
self.numbers.append(2 * self.numbers[i+1] + self.numbers[i])
file.writelines(f'{self.numbers}\n')
Start = Pell()
Start.void()
| class Pell:
def __init__(self):
self.limiter = 1000
self.numbers = [0, 1]
self.path = './Pell_Sequence/results.txt'
def void(self):
with open(self.path, 'w+') as file:
for i in range(self.limiter):
self.numbers.append(2 * self.numbers[i + 1] + self.numbers[i])
file.writelines(f'{self.numbers}\n')
start = pell()
Start.void() |
def squares(n):
i = 1
while i <= n:
yield i * i
i += 1
print(list(squares(5))) | def squares(n):
i = 1
while i <= n:
yield (i * i)
i += 1
print(list(squares(5))) |
def prod(L):
p = 1
for i in L:
p *= i
return p
| def prod(L):
p = 1
for i in L:
p *= i
return p |
# a,b = [set(input().split()) for i in range(4)][1::2]
# print ('\n'.join(sorted(a^b, key=int)))
a,b=(int(input()),input().split())
c,d=(int(input()),input().split())
x=set(b)
y=set(d)
p=y.difference(x)
q=x.difference(y)
r=p.union(q)
print ('\n'.join(sorted(r, key=int)))
| (a, b) = (int(input()), input().split())
(c, d) = (int(input()), input().split())
x = set(b)
y = set(d)
p = y.difference(x)
q = x.difference(y)
r = p.union(q)
print('\n'.join(sorted(r, key=int))) |
def f(bar):
# type: (str) -> str
return bar
f(bytearray()) | def f(bar):
return bar
f(bytearray()) |
# job_list_one_shot.py ---
#
# Filename: job_list_one_shot.py
# Author: Abhishek Udupa
# Created: Tue Jan 26 15:13:19 2016 (-0500)
#
#
# Copyright (c) 2015, Abhishek Udupa, University of Pennsylvania
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed by The University of Pennsylvania
# 4. Neither the name of the University of Pennsylvania nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER ''AS IS'' AND ANY
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#
# Code:
[
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_103_10.sl'], 'icfp_103_10-anytime', 'icfp_103_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_113_1000.sl'], 'icfp_113_1000-anytime', 'icfp_113_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_125_10.sl'], 'icfp_125_10-anytime', 'icfp_125_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_14_1000.sl'], 'icfp_14_1000-anytime', 'icfp_14_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_147_1000.sl'], 'icfp_147_1000-anytime', 'icfp_147_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_28_10.sl'], 'icfp_28_10-anytime', 'icfp_28_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_39_100.sl'], 'icfp_39_100-anytime', 'icfp_39_100-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_51_10.sl'], 'icfp_51_10-anytime', 'icfp_51_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_68_1000.sl'], 'icfp_68_1000-anytime', 'icfp_68_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_72_10.sl'], 'icfp_72_10-anytime', 'icfp_72_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_82_10.sl'], 'icfp_82_10-anytime', 'icfp_82_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_94_1000.sl'], 'icfp_94_1000-anytime', 'icfp_94_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_96_10.sl'], 'icfp_96_10-anytime', 'icfp_96_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_104_10.sl'], 'icfp_104_10-anytime', 'icfp_104_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_114_100.sl'], 'icfp_114_100-anytime', 'icfp_114_100-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_134_1000.sl'], 'icfp_134_1000-anytime', 'icfp_134_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_143_1000.sl'], 'icfp_143_1000-anytime', 'icfp_143_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_150_10.sl'], 'icfp_150_10-anytime', 'icfp_150_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_30_10.sl'], 'icfp_30_10-anytime', 'icfp_30_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_45_1000.sl'], 'icfp_45_1000-anytime', 'icfp_45_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_54_1000.sl'], 'icfp_54_1000-anytime', 'icfp_54_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_69_10.sl'], 'icfp_69_10-anytime', 'icfp_69_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_73_10.sl'], 'icfp_73_10-anytime', 'icfp_73_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_87_10.sl'], 'icfp_87_10-anytime', 'icfp_87_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_94_100.sl'], 'icfp_94_100-anytime', 'icfp_94_100-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_99_100.sl'], 'icfp_99_100-anytime', 'icfp_99_100-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_105_1000.sl'], 'icfp_105_1000-anytime', 'icfp_105_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_118_100.sl'], 'icfp_118_100-anytime', 'icfp_118_100-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_135_100.sl'], 'icfp_135_100-anytime', 'icfp_135_100-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_144_1000.sl'], 'icfp_144_1000-anytime', 'icfp_144_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_21_1000.sl'], 'icfp_21_1000-anytime', 'icfp_21_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_32_10.sl'], 'icfp_32_10-anytime', 'icfp_32_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_45_10.sl'], 'icfp_45_10-anytime', 'icfp_45_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_56_1000.sl'], 'icfp_56_1000-anytime', 'icfp_56_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_7_1000.sl'], 'icfp_7_1000-anytime', 'icfp_7_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_81_1000.sl'], 'icfp_81_1000-anytime', 'icfp_81_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_9_1000.sl'], 'icfp_9_1000-anytime', 'icfp_9_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_95_100.sl'], 'icfp_95_100-anytime', 'icfp_95_100-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_105_100.sl'], 'icfp_105_100-anytime', 'icfp_105_100-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_118_10.sl'], 'icfp_118_10-anytime', 'icfp_118_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_139_10.sl'], 'icfp_139_10-anytime', 'icfp_139_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_144_100.sl'], 'icfp_144_100-anytime', 'icfp_144_100-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_25_1000.sl'], 'icfp_25_1000-anytime', 'icfp_25_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_38_10.sl'], 'icfp_38_10-anytime', 'icfp_38_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_5_1000.sl'], 'icfp_5_1000-anytime', 'icfp_5_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_64_10.sl'], 'icfp_64_10-anytime', 'icfp_64_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_7_10.sl'], 'icfp_7_10-anytime', 'icfp_7_10-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_82_100.sl'], 'icfp_82_100-anytime', 'icfp_82_100-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_93_1000.sl'], 'icfp_93_1000-anytime', 'icfp_93_1000-anytime'),
(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_96_1000.sl'], 'icfp_96_1000-anytime', 'icfp_96_1000-anytime')
]
#
# job_list_one_shot.py ends here
| [(['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_103_10.sl'], 'icfp_103_10-anytime', 'icfp_103_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_113_1000.sl'], 'icfp_113_1000-anytime', 'icfp_113_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_125_10.sl'], 'icfp_125_10-anytime', 'icfp_125_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_14_1000.sl'], 'icfp_14_1000-anytime', 'icfp_14_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_147_1000.sl'], 'icfp_147_1000-anytime', 'icfp_147_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_28_10.sl'], 'icfp_28_10-anytime', 'icfp_28_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_39_100.sl'], 'icfp_39_100-anytime', 'icfp_39_100-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_51_10.sl'], 'icfp_51_10-anytime', 'icfp_51_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_68_1000.sl'], 'icfp_68_1000-anytime', 'icfp_68_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_72_10.sl'], 'icfp_72_10-anytime', 'icfp_72_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_82_10.sl'], 'icfp_82_10-anytime', 'icfp_82_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_94_1000.sl'], 'icfp_94_1000-anytime', 'icfp_94_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_96_10.sl'], 'icfp_96_10-anytime', 'icfp_96_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_104_10.sl'], 'icfp_104_10-anytime', 'icfp_104_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_114_100.sl'], 'icfp_114_100-anytime', 'icfp_114_100-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_134_1000.sl'], 'icfp_134_1000-anytime', 'icfp_134_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_143_1000.sl'], 'icfp_143_1000-anytime', 'icfp_143_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_150_10.sl'], 'icfp_150_10-anytime', 'icfp_150_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_30_10.sl'], 'icfp_30_10-anytime', 'icfp_30_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_45_1000.sl'], 'icfp_45_1000-anytime', 'icfp_45_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_54_1000.sl'], 'icfp_54_1000-anytime', 'icfp_54_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_69_10.sl'], 'icfp_69_10-anytime', 'icfp_69_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_73_10.sl'], 'icfp_73_10-anytime', 'icfp_73_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_87_10.sl'], 'icfp_87_10-anytime', 'icfp_87_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_94_100.sl'], 'icfp_94_100-anytime', 'icfp_94_100-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_99_100.sl'], 'icfp_99_100-anytime', 'icfp_99_100-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_105_1000.sl'], 'icfp_105_1000-anytime', 'icfp_105_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_118_100.sl'], 'icfp_118_100-anytime', 'icfp_118_100-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_135_100.sl'], 'icfp_135_100-anytime', 'icfp_135_100-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_144_1000.sl'], 'icfp_144_1000-anytime', 'icfp_144_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_21_1000.sl'], 'icfp_21_1000-anytime', 'icfp_21_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_32_10.sl'], 'icfp_32_10-anytime', 'icfp_32_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_45_10.sl'], 'icfp_45_10-anytime', 'icfp_45_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_56_1000.sl'], 'icfp_56_1000-anytime', 'icfp_56_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_7_1000.sl'], 'icfp_7_1000-anytime', 'icfp_7_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_81_1000.sl'], 'icfp_81_1000-anytime', 'icfp_81_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_9_1000.sl'], 'icfp_9_1000-anytime', 'icfp_9_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_95_100.sl'], 'icfp_95_100-anytime', 'icfp_95_100-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_105_100.sl'], 'icfp_105_100-anytime', 'icfp_105_100-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_118_10.sl'], 'icfp_118_10-anytime', 'icfp_118_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_139_10.sl'], 'icfp_139_10-anytime', 'icfp_139_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_144_100.sl'], 'icfp_144_100-anytime', 'icfp_144_100-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_25_1000.sl'], 'icfp_25_1000-anytime', 'icfp_25_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_38_10.sl'], 'icfp_38_10-anytime', 'icfp_38_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_5_1000.sl'], 'icfp_5_1000-anytime', 'icfp_5_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_64_10.sl'], 'icfp_64_10-anytime', 'icfp_64_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_7_10.sl'], 'icfp_7_10-anytime', 'icfp_7_10-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_82_100.sl'], 'icfp_82_100-anytime', 'icfp_82_100-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_93_1000.sl'], 'icfp_93_1000-anytime', 'icfp_93_1000-anytime'), (['python3', 'solvers.py', '--anytime', '3600', 'icfp', '../benchmarks/icfp/icfp_96_1000.sl'], 'icfp_96_1000-anytime', 'icfp_96_1000-anytime')] |
class Vehicle:
''' Documentation needed here
'''
def __init__(self, numberOfTires, colorOfVehicle):
''' Documentation needed here
'''
self.numberOfTires = numberOfTires
self.colorOfVehicle = colorOfVehicle
def start(self):
''' This function starts the vehicle
'''
print("I started!")
def drive(self):
''' This function drives the vehicle
'''
print("I'm driving!")
def setColor(color):
''' This function updates the color of the vehicle based
on the pass in information
Parameters:
Color -> a color to update the vehicle's color with
'''
this.colorOfVehicle = color
def __repr__(self):
return "I'm a Vehicle!"
| class Vehicle:
""" Documentation needed here
"""
def __init__(self, numberOfTires, colorOfVehicle):
""" Documentation needed here
"""
self.numberOfTires = numberOfTires
self.colorOfVehicle = colorOfVehicle
def start(self):
""" This function starts the vehicle
"""
print('I started!')
def drive(self):
""" This function drives the vehicle
"""
print("I'm driving!")
def set_color(color):
""" This function updates the color of the vehicle based
on the pass in information
Parameters:
Color -> a color to update the vehicle's color with
"""
this.colorOfVehicle = color
def __repr__(self):
return "I'm a Vehicle!" |
def tail(filename, n=10):
'Return the last n lines of a file'
with open(filename) as f:
return deque(f, n)
| def tail(filename, n=10):
"""Return the last n lines of a file"""
with open(filename) as f:
return deque(f, n) |
render = ez.Node()
aspect2D = ez.Node()
camera = ez.Camera(parent=render)
camera.y = -20
# Create a a model:
dirt = ez.load.texture('dirt.png')
mesh = ez.load.mesh('hex.bam')
model = ez.Model( mesh, parent=render)
model.shader = ez.load.shader('shaded.glsl')
model.set_shader_input('texture0', dirt)
# Our task function:
def task_spin_node(node, task):
node.p += 100 * ez.get_dt()
return task.cont
# Create the task and pass model as the node:
task = ez.make_task(task_spin_node, model)
# You can pass whatever you want into a task: (task will always be last argument)
# Example:
#def task_fuction(a, b, c, d, e, LIST, DICT, task):
# return task.cont
# task = ez.make_task(task_function, a, b, d, c, e, LIST, DICT)
def input(event):
device, name, state = event
if name=='space':
if state==1:
ez.add_task(task)
else:
ez.remove_task(task)
if name == 'escape' and state == 0:
ez.set_scene(ez['menu'])
def logic(dt):
if ez.is_button_down('a'):
pos[0] -= 10*dt
if pos[0] < 1:
pos[0] = 1
if ez.is_button_down('d'):
pos[0] += 10*dt
if pos[0] > 6:
pos[0] = 6
def enter():
ez.window.background_color = 0, 0.0, 0.0
ez.add_input_events(['space'])
L, R, T, B = ez.window.get_aspect2D_edges()
text = ez['text']
text.x = L+0.02
text.y = B+0.03
text.text="SPACE - down: adds the task, release: removes the task"
text.parent = aspect2D
def exit():
ez.remove_input_events(['space'])
# If holding down the space bar and exiting the task can keep running in the background.
# So here we are removing the task to make sure it stops running when leaving the scene.
ez.remove_task(task)
| render = ez.Node()
aspect2_d = ez.Node()
camera = ez.Camera(parent=render)
camera.y = -20
dirt = ez.load.texture('dirt.png')
mesh = ez.load.mesh('hex.bam')
model = ez.Model(mesh, parent=render)
model.shader = ez.load.shader('shaded.glsl')
model.set_shader_input('texture0', dirt)
def task_spin_node(node, task):
node.p += 100 * ez.get_dt()
return task.cont
task = ez.make_task(task_spin_node, model)
def input(event):
(device, name, state) = event
if name == 'space':
if state == 1:
ez.add_task(task)
else:
ez.remove_task(task)
if name == 'escape' and state == 0:
ez.set_scene(ez['menu'])
def logic(dt):
if ez.is_button_down('a'):
pos[0] -= 10 * dt
if pos[0] < 1:
pos[0] = 1
if ez.is_button_down('d'):
pos[0] += 10 * dt
if pos[0] > 6:
pos[0] = 6
def enter():
ez.window.background_color = (0, 0.0, 0.0)
ez.add_input_events(['space'])
(l, r, t, b) = ez.window.get_aspect2D_edges()
text = ez['text']
text.x = L + 0.02
text.y = B + 0.03
text.text = 'SPACE - down: adds the task, release: removes the task'
text.parent = aspect2D
def exit():
ez.remove_input_events(['space'])
ez.remove_task(task) |
#
# PySNMP MIB module TIMETRA-CLEAR-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TIMETRA-CLEAR-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:09:48 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, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion")
ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup")
IpAddress, Bits, Integer32, Counter64, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, TimeTicks, Gauge32, Unsigned32, Counter32, ObjectIdentity, ModuleIdentity, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "Bits", "Integer32", "Counter64", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "TimeTicks", "Gauge32", "Unsigned32", "Counter32", "ObjectIdentity", "ModuleIdentity", "MibIdentifier")
TimeStamp, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "TimeStamp", "DisplayString", "TextualConvention")
tmnxSRNotifyPrefix, tmnxSRObjs, tmnxSRConfs, timetraSRMIBModules = mibBuilder.importSymbols("TIMETRA-GLOBAL-MIB", "tmnxSRNotifyPrefix", "tmnxSRObjs", "tmnxSRConfs", "timetraSRMIBModules")
tmnxEventAppIndex, = mibBuilder.importSymbols("TIMETRA-LOG-MIB", "tmnxEventAppIndex")
TmnxActionType, TNamedItem = mibBuilder.importSymbols("TIMETRA-TC-MIB", "TmnxActionType", "TNamedItem")
timetraClearMIBModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 6527, 1, 1, 3, 13))
timetraClearMIBModule.setRevisions(('1905-01-24 00:00', '1904-06-02 00:00', '1904-01-15 00:00', '1903-08-15 00:00', '1903-01-20 00:00', '1902-02-27 00:00',))
if mibBuilder.loadTexts: timetraClearMIBModule.setLastUpdated('0501240000Z')
if mibBuilder.loadTexts: timetraClearMIBModule.setOrganization('Alcatel-Lucent')
tmnxClearObjs = MibIdentifier((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13))
tmnxClearNotificationsPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 6527, 3, 1, 3, 13))
tmnxClearNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 6527, 3, 1, 3, 13, 0))
tmnxClearConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 6527, 3, 1, 1, 13))
tmnxClearTable = MibTable((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1), )
if mibBuilder.loadTexts: tmnxClearTable.setStatus('current')
tmnxClearEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1, 1), ).setIndexNames((0, "TIMETRA-LOG-MIB", "tmnxEventAppIndex"), (0, "TIMETRA-CLEAR-MIB", "tmnxClearIndex"))
if mibBuilder.loadTexts: tmnxClearEntry.setStatus('current')
tmnxClearIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: tmnxClearIndex.setStatus('current')
tmnxClearName = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1, 1, 2), TNamedItem()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmnxClearName.setStatus('current')
tmnxClearParams = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255)).clone(hexValue="")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tmnxClearParams.setStatus('current')
tmnxClearAction = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1, 1, 4), TmnxActionType().clone('notApplicable')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tmnxClearAction.setStatus('current')
tmnxClearLastClearedTime = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1, 1, 5), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmnxClearLastClearedTime.setStatus('current')
tmnxClearResult = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("success", 1), ("failure", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmnxClearResult.setStatus('current')
tmnxClearErrorText = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmnxClearErrorText.setStatus('current')
tmnxClear = NotificationType((1, 3, 6, 1, 4, 1, 6527, 3, 1, 3, 13, 0, 1)).setObjects(("TIMETRA-CLEAR-MIB", "tmnxClearName"), ("TIMETRA-CLEAR-MIB", "tmnxClearParams"), ("TIMETRA-CLEAR-MIB", "tmnxClearLastClearedTime"), ("TIMETRA-CLEAR-MIB", "tmnxClearResult"), ("TIMETRA-CLEAR-MIB", "tmnxClearErrorText"))
if mibBuilder.loadTexts: tmnxClear.setStatus('current')
tmnxClearCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 6527, 3, 1, 1, 13, 1))
tmnxClearGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 6527, 3, 1, 1, 13, 2))
tmnxClearCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 6527, 3, 1, 1, 13, 1, 1)).setObjects(("TIMETRA-CLEAR-MIB", "tmnxClearGroup"), ("TIMETRA-CLEAR-MIB", "tmnxClearNotificationGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
tmnxClearCompliance = tmnxClearCompliance.setStatus('current')
tmnxClearGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6527, 3, 1, 1, 13, 2, 1)).setObjects(("TIMETRA-CLEAR-MIB", "tmnxClearName"), ("TIMETRA-CLEAR-MIB", "tmnxClearParams"), ("TIMETRA-CLEAR-MIB", "tmnxClearAction"), ("TIMETRA-CLEAR-MIB", "tmnxClearLastClearedTime"), ("TIMETRA-CLEAR-MIB", "tmnxClearResult"), ("TIMETRA-CLEAR-MIB", "tmnxClearErrorText"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
tmnxClearGroup = tmnxClearGroup.setStatus('current')
tmnxClearNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 6527, 3, 1, 1, 13, 2, 2)).setObjects(("TIMETRA-CLEAR-MIB", "tmnxClear"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
tmnxClearNotificationGroup = tmnxClearNotificationGroup.setStatus('current')
mibBuilder.exportSymbols("TIMETRA-CLEAR-MIB", tmnxClearName=tmnxClearName, tmnxClearAction=tmnxClearAction, tmnxClearGroups=tmnxClearGroups, tmnxClearCompliance=tmnxClearCompliance, tmnxClearCompliances=tmnxClearCompliances, timetraClearMIBModule=timetraClearMIBModule, tmnxClearLastClearedTime=tmnxClearLastClearedTime, tmnxClear=tmnxClear, tmnxClearParams=tmnxClearParams, tmnxClearNotifications=tmnxClearNotifications, tmnxClearResult=tmnxClearResult, PYSNMP_MODULE_ID=timetraClearMIBModule, tmnxClearTable=tmnxClearTable, tmnxClearNotificationsPrefix=tmnxClearNotificationsPrefix, tmnxClearObjs=tmnxClearObjs, tmnxClearConformance=tmnxClearConformance, tmnxClearErrorText=tmnxClearErrorText, tmnxClearNotificationGroup=tmnxClearNotificationGroup, tmnxClearEntry=tmnxClearEntry, tmnxClearIndex=tmnxClearIndex, tmnxClearGroup=tmnxClearGroup)
| (octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_intersection, value_range_constraint, value_size_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsUnion')
(module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup')
(ip_address, bits, integer32, counter64, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, iso, time_ticks, gauge32, unsigned32, counter32, object_identity, module_identity, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'IpAddress', 'Bits', 'Integer32', 'Counter64', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'TimeTicks', 'Gauge32', 'Unsigned32', 'Counter32', 'ObjectIdentity', 'ModuleIdentity', 'MibIdentifier')
(time_stamp, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'TimeStamp', 'DisplayString', 'TextualConvention')
(tmnx_sr_notify_prefix, tmnx_sr_objs, tmnx_sr_confs, timetra_srmib_modules) = mibBuilder.importSymbols('TIMETRA-GLOBAL-MIB', 'tmnxSRNotifyPrefix', 'tmnxSRObjs', 'tmnxSRConfs', 'timetraSRMIBModules')
(tmnx_event_app_index,) = mibBuilder.importSymbols('TIMETRA-LOG-MIB', 'tmnxEventAppIndex')
(tmnx_action_type, t_named_item) = mibBuilder.importSymbols('TIMETRA-TC-MIB', 'TmnxActionType', 'TNamedItem')
timetra_clear_mib_module = module_identity((1, 3, 6, 1, 4, 1, 6527, 1, 1, 3, 13))
timetraClearMIBModule.setRevisions(('1905-01-24 00:00', '1904-06-02 00:00', '1904-01-15 00:00', '1903-08-15 00:00', '1903-01-20 00:00', '1902-02-27 00:00'))
if mibBuilder.loadTexts:
timetraClearMIBModule.setLastUpdated('0501240000Z')
if mibBuilder.loadTexts:
timetraClearMIBModule.setOrganization('Alcatel-Lucent')
tmnx_clear_objs = mib_identifier((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13))
tmnx_clear_notifications_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 6527, 3, 1, 3, 13))
tmnx_clear_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 6527, 3, 1, 3, 13, 0))
tmnx_clear_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 6527, 3, 1, 1, 13))
tmnx_clear_table = mib_table((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1))
if mibBuilder.loadTexts:
tmnxClearTable.setStatus('current')
tmnx_clear_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1, 1)).setIndexNames((0, 'TIMETRA-LOG-MIB', 'tmnxEventAppIndex'), (0, 'TIMETRA-CLEAR-MIB', 'tmnxClearIndex'))
if mibBuilder.loadTexts:
tmnxClearEntry.setStatus('current')
tmnx_clear_index = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)))
if mibBuilder.loadTexts:
tmnxClearIndex.setStatus('current')
tmnx_clear_name = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1, 1, 2), t_named_item()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmnxClearName.setStatus('current')
tmnx_clear_params = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255)).clone(hexValue='')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
tmnxClearParams.setStatus('current')
tmnx_clear_action = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1, 1, 4), tmnx_action_type().clone('notApplicable')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
tmnxClearAction.setStatus('current')
tmnx_clear_last_cleared_time = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1, 1, 5), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmnxClearLastClearedTime.setStatus('current')
tmnx_clear_result = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('success', 1), ('failure', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmnxClearResult.setStatus('current')
tmnx_clear_error_text = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 3, 1, 2, 13, 1, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmnxClearErrorText.setStatus('current')
tmnx_clear = notification_type((1, 3, 6, 1, 4, 1, 6527, 3, 1, 3, 13, 0, 1)).setObjects(('TIMETRA-CLEAR-MIB', 'tmnxClearName'), ('TIMETRA-CLEAR-MIB', 'tmnxClearParams'), ('TIMETRA-CLEAR-MIB', 'tmnxClearLastClearedTime'), ('TIMETRA-CLEAR-MIB', 'tmnxClearResult'), ('TIMETRA-CLEAR-MIB', 'tmnxClearErrorText'))
if mibBuilder.loadTexts:
tmnxClear.setStatus('current')
tmnx_clear_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 6527, 3, 1, 1, 13, 1))
tmnx_clear_groups = mib_identifier((1, 3, 6, 1, 4, 1, 6527, 3, 1, 1, 13, 2))
tmnx_clear_compliance = module_compliance((1, 3, 6, 1, 4, 1, 6527, 3, 1, 1, 13, 1, 1)).setObjects(('TIMETRA-CLEAR-MIB', 'tmnxClearGroup'), ('TIMETRA-CLEAR-MIB', 'tmnxClearNotificationGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
tmnx_clear_compliance = tmnxClearCompliance.setStatus('current')
tmnx_clear_group = object_group((1, 3, 6, 1, 4, 1, 6527, 3, 1, 1, 13, 2, 1)).setObjects(('TIMETRA-CLEAR-MIB', 'tmnxClearName'), ('TIMETRA-CLEAR-MIB', 'tmnxClearParams'), ('TIMETRA-CLEAR-MIB', 'tmnxClearAction'), ('TIMETRA-CLEAR-MIB', 'tmnxClearLastClearedTime'), ('TIMETRA-CLEAR-MIB', 'tmnxClearResult'), ('TIMETRA-CLEAR-MIB', 'tmnxClearErrorText'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
tmnx_clear_group = tmnxClearGroup.setStatus('current')
tmnx_clear_notification_group = notification_group((1, 3, 6, 1, 4, 1, 6527, 3, 1, 1, 13, 2, 2)).setObjects(('TIMETRA-CLEAR-MIB', 'tmnxClear'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
tmnx_clear_notification_group = tmnxClearNotificationGroup.setStatus('current')
mibBuilder.exportSymbols('TIMETRA-CLEAR-MIB', tmnxClearName=tmnxClearName, tmnxClearAction=tmnxClearAction, tmnxClearGroups=tmnxClearGroups, tmnxClearCompliance=tmnxClearCompliance, tmnxClearCompliances=tmnxClearCompliances, timetraClearMIBModule=timetraClearMIBModule, tmnxClearLastClearedTime=tmnxClearLastClearedTime, tmnxClear=tmnxClear, tmnxClearParams=tmnxClearParams, tmnxClearNotifications=tmnxClearNotifications, tmnxClearResult=tmnxClearResult, PYSNMP_MODULE_ID=timetraClearMIBModule, tmnxClearTable=tmnxClearTable, tmnxClearNotificationsPrefix=tmnxClearNotificationsPrefix, tmnxClearObjs=tmnxClearObjs, tmnxClearConformance=tmnxClearConformance, tmnxClearErrorText=tmnxClearErrorText, tmnxClearNotificationGroup=tmnxClearNotificationGroup, tmnxClearEntry=tmnxClearEntry, tmnxClearIndex=tmnxClearIndex, tmnxClearGroup=tmnxClearGroup) |
n, m = map(int, input().split())
array = [input() for _ in range(n)]
k = int(input())
for row in sorted(array, key=lambda row: int(row.split()[k])):
print(row)
| (n, m) = map(int, input().split())
array = [input() for _ in range(n)]
k = int(input())
for row in sorted(array, key=lambda row: int(row.split()[k])):
print(row) |
def count(char,word):
total=0
for any in word:
if any in char:
total = total + 1
return total
result = count('a','banana')
print(result)
| def count(char, word):
total = 0
for any in word:
if any in char:
total = total + 1
return total
result = count('a', 'banana')
print(result) |
class Solution:
def canBeTypedWords(self, text: str, brokenLetters: str) -> int:
result = 0
words = text.split(" ")
set_chars = set(brokenLetters)
for i in words:
set_word = set(i)
sub = set_word - set_chars
if len(set_word) == len(sub):
result += 1
return result
s = Solution()
print(s.canBeTypedWords("hello world", "ad"))
print(s.canBeTypedWords("leet code", "lt"))
print(s.canBeTypedWords("leet code", "e"))
print(s.canBeTypedWords("assembly is the best", "z"))
| class Solution:
def can_be_typed_words(self, text: str, brokenLetters: str) -> int:
result = 0
words = text.split(' ')
set_chars = set(brokenLetters)
for i in words:
set_word = set(i)
sub = set_word - set_chars
if len(set_word) == len(sub):
result += 1
return result
s = solution()
print(s.canBeTypedWords('hello world', 'ad'))
print(s.canBeTypedWords('leet code', 'lt'))
print(s.canBeTypedWords('leet code', 'e'))
print(s.canBeTypedWords('assembly is the best', 'z')) |
#Decorator Pattern
def my_decorator(func):
def wrap_func(*args, **kwargs):
print("**********")
func(*args, **kwargs)
print("**********")
return wrap_func
@my_decorator
def hello(greeting,emoji, withLove="your love"):
print(greeting,emoji, withLove)
hello('yo yo', '<3') | def my_decorator(func):
def wrap_func(*args, **kwargs):
print('**********')
func(*args, **kwargs)
print('**********')
return wrap_func
@my_decorator
def hello(greeting, emoji, withLove='your love'):
print(greeting, emoji, withLove)
hello('yo yo', '<3') |
# Copyright (c) 2017-2018 CRS4
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
# and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or
# substantial portions of the Software.
#
# 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
# AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
CONFIRM_ACTIONS = (
'add',
'delete'
)
ERRORS_MESSAGE = {
'MISSING_PARAM': 'Missing parameters',
'UNKNOWN_ACTION': 'Unknown action',
'INVALID_CONFIRMATION_CODE': 'Confirmation code not valid',
'INVALID_FR_STATUS': 'Invalid flow request status',
'EXPIRED_CONFIRMATION_ID': 'Confirmation code expired',
'INVALID_CONSENT_STATUS': 'Invalid consent status',
'UNKNOWN_CONSENT': 'Unknown consent',
'INVALID_DATA': 'Invalid parameters',
'MISSING_PERSON_ID': 'Missing person id',
'INTERNAL_GATEWAY_ERROR': 'internal_health_gateway_error',
'INVALID_CONSENT_CLIENT': 'invalid_consent_client',
'CONSENT_CONNECTION_ERROR': 'consent_connection_error',
'INVALID_BACKEND_CLIENT': 'invalid_backend_client',
'BACKEND_CONNECTION_ERROR': 'backend_connection_error',
'ALL_CONSENTS_ALREADY_CREATED': 'all_required_consents_already_created'
}
| confirm_actions = ('add', 'delete')
errors_message = {'MISSING_PARAM': 'Missing parameters', 'UNKNOWN_ACTION': 'Unknown action', 'INVALID_CONFIRMATION_CODE': 'Confirmation code not valid', 'INVALID_FR_STATUS': 'Invalid flow request status', 'EXPIRED_CONFIRMATION_ID': 'Confirmation code expired', 'INVALID_CONSENT_STATUS': 'Invalid consent status', 'UNKNOWN_CONSENT': 'Unknown consent', 'INVALID_DATA': 'Invalid parameters', 'MISSING_PERSON_ID': 'Missing person id', 'INTERNAL_GATEWAY_ERROR': 'internal_health_gateway_error', 'INVALID_CONSENT_CLIENT': 'invalid_consent_client', 'CONSENT_CONNECTION_ERROR': 'consent_connection_error', 'INVALID_BACKEND_CLIENT': 'invalid_backend_client', 'BACKEND_CONNECTION_ERROR': 'backend_connection_error', 'ALL_CONSENTS_ALREADY_CREATED': 'all_required_consents_already_created'} |
class Solution:
def numJewelsInStones(self, J: str, S: str) -> int:
#map = {}
#for i in range(len(J)):
# map[J[i]] = 0
count = 0
for i in range(len(S)):
if str([S[i]][0]) in J: count +=1
return count
J = "aAB"
S = "aAAbbbb"
print(Solution().numJewelsInStones(J, S)) | class Solution:
def num_jewels_in_stones(self, J: str, S: str) -> int:
count = 0
for i in range(len(S)):
if str([S[i]][0]) in J:
count += 1
return count
j = 'aAB'
s = 'aAAbbbb'
print(solution().numJewelsInStones(J, S)) |
n = int(input())
sum1 = 0
for i in range(1, n + 1):
if n % i == 0:
sum1 += i
print(sum1)
| n = int(input())
sum1 = 0
for i in range(1, n + 1):
if n % i == 0:
sum1 += i
print(sum1) |
def MoveManyStepsForward(numberOfSteps):
for everySingleNumberInTheRange in range(numberOfSteps):
env.step(0)
async def main():
MoveManyStepsForward(50)
await sleep()
MoveManyStepsForward(150) | def move_many_steps_forward(numberOfSteps):
for every_single_number_in_the_range in range(numberOfSteps):
env.step(0)
async def main():
move_many_steps_forward(50)
await sleep()
move_many_steps_forward(150) |
def distanceK(self, root, target, K):
conn = collections.defaultdict(list)
def connect(parent, child):
if parent and child:
conn[parent.val].append(child.val)
conn[child.val].append(parent.val)
if child.left: connect(child, child.left)
if child.right: connect(child, child.right)
connect(None, root)
bfs = [target.val]
seen = set(bfs)
for i in xrange(K):
bfs = [y for x in bfs for y in conn[x] if y not in seen]
seen |= set(bfs)
return bfs
| def distance_k(self, root, target, K):
conn = collections.defaultdict(list)
def connect(parent, child):
if parent and child:
conn[parent.val].append(child.val)
conn[child.val].append(parent.val)
if child.left:
connect(child, child.left)
if child.right:
connect(child, child.right)
connect(None, root)
bfs = [target.val]
seen = set(bfs)
for i in xrange(K):
bfs = [y for x in bfs for y in conn[x] if y not in seen]
seen |= set(bfs)
return bfs |
entries = [
{
'env-title': 'atari-enduro',
'score': 0.0,
},
{
'env-title': 'atari-space-invaders',
'score': 656.91,
},
{
'env-title': 'atari-qbert',
'score': 6433.38,
},
{
'env-title': 'atari-seaquest',
'score': 1065.98,
},
{
'env-title': 'atari-pong',
'score': 3.11,
},
{
'env-title': 'atari-beam-rider',
'score': 1959.22,
},
{
'env-title': 'atari-breakout',
'score': 82.94,
},
]
| entries = [{'env-title': 'atari-enduro', 'score': 0.0}, {'env-title': 'atari-space-invaders', 'score': 656.91}, {'env-title': 'atari-qbert', 'score': 6433.38}, {'env-title': 'atari-seaquest', 'score': 1065.98}, {'env-title': 'atari-pong', 'score': 3.11}, {'env-title': 'atari-beam-rider', 'score': 1959.22}, {'env-title': 'atari-breakout', 'score': 82.94}] |
name = "fRoDo"
lowercase_name = name.lower()
uppercase_name = name.upper()
titlecase_name = name.title()
print(lowercase_name, uppercase_name, titlecase_name) | name = 'fRoDo'
lowercase_name = name.lower()
uppercase_name = name.upper()
titlecase_name = name.title()
print(lowercase_name, uppercase_name, titlecase_name) |
'''
priceIsRight = 15
if priceIsRight:
print("Price is too low!")
if priceIsRight:
print("Price is almost there!")
if priceIsRight:
print("Price is exactly that!")
if priceIsRight:
print("Price is too high!")
'''
priceIsRight = int(input("Enter your number: "))
if priceIsRight < 5:
print("Price is almost there!")
elif priceIsRight >= 5 and priceIsRight <= 9:
print("Price is almost there!")
elif priceIsRight == 10:
print("Price is exactly that!")
else:
print("Price is too high!")
| """
priceIsRight = 15
if priceIsRight:
print("Price is too low!")
if priceIsRight:
print("Price is almost there!")
if priceIsRight:
print("Price is exactly that!")
if priceIsRight:
print("Price is too high!")
"""
price_is_right = int(input('Enter your number: '))
if priceIsRight < 5:
print('Price is almost there!')
elif priceIsRight >= 5 and priceIsRight <= 9:
print('Price is almost there!')
elif priceIsRight == 10:
print('Price is exactly that!')
else:
print('Price is too high!') |
# Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( arr1 , arr2 , m , n , x ) :
count , l , r = 0 , 0 , n - 1
while ( l < m and r >= 0 ) :
if ( ( arr1 [ l ] + arr2 [ r ] ) == x ) :
l += 1
r -= 1
count += 1
elif ( ( arr1 [ l ] + arr2 [ r ] ) < x ) :
l += 1
else :
r -= 1
return count
#TOFILL
if __name__ == '__main__':
param = [
([5, 5, 7, 10, 14, 14, 17, 21, 32, 34, 37, 40, 40, 40, 46, 46, 50, 50, 51, 55, 57, 62, 65, 67, 67, 69, 70, 70, 72, 73, 76, 77, 77, 78, 84, 85, 85, 86, 87, 88, 88, 89, 89, 90, 93, 99],[2, 5, 8, 8, 10, 12, 13, 15, 17, 18, 20, 20, 21, 27, 28, 31, 34, 37, 40, 46, 48, 52, 53, 54, 54, 58, 59, 60, 66, 68, 68, 69, 70, 71, 72, 73, 77, 77, 80, 84, 84, 92, 92, 95, 97, 97],28,29,23,),
([-84, 52, -34, 96, 16, 92, -64, -74],[-22, 26, -12, -54, 66, 86, 38, 76],6,5,7,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],37,26,42,),
([60, 92, 42, 83, 55, 76, 29, 62],[71, 2, 74, 42, 80, 71, 26, 76],4,7,7,),
([-94, -94, -58, -40, -40, -26, -24, -22, -22, -22, -2, 0, 4, 8, 12, 16, 16, 18, 22, 32, 42, 44, 50, 58, 64, 78, 80, 90],[-86, -84, -78, -76, -72, -70, -62, -58, -54, -54, -50, -46, -44, -40, -30, -28, -16, -10, 10, 36, 36, 48, 70, 84, 84, 90, 94, 98],17,27,17,),
([0, 0, 1, 1, 1, 0, 0, 1, 1, 1],[1, 1, 1, 0, 1, 1, 0, 0, 0, 0],5,8,9,),
([1, 5, 7, 7, 7, 14, 15, 16, 17, 18, 18, 19, 20, 25, 27, 31, 36, 42, 47, 51, 56, 56, 56, 58, 58, 59, 63, 63, 63, 65, 66, 67, 76, 83, 93, 94, 97],[2, 3, 7, 8, 9, 10, 17, 18, 21, 28, 29, 29, 33, 35, 46, 47, 47, 49, 49, 49, 53, 56, 58, 59, 59, 60, 65, 67, 70, 78, 81, 85, 85, 87, 90, 92, 96],28,34,31,),
([78, -74, 52, 56, -8, 92, 14, 56, -72, -92, 32, -94, -26, -8, -66, 72, -24, 36, -84, -4, -68, 14, 78, 40, -82, -10, 16, 56, 6, -16, 30, 24, -32],[-74, 22, -14, -2, 36, 86, -70, -20, -76, -84, -40, -36, 42, 22, -60, -94, -18, 8, -14, -42, -68, 62, -60, 2, 40, -66, 68, 96, 70, 98, -38, -74, -92],16,30,24,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],25,33,33,),
([17, 50, 65, 4, 19, 10, 45, 70, 76, 81, 28, 97, 55, 70, 38, 2, 40, 67, 36, 33, 6, 85, 25],[78, 92, 65, 23, 7, 94, 18, 4, 2, 53, 31, 58, 98, 18, 46, 16, 17, 92, 80, 92, 43, 70, 50],16,22,22,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold(arr1, arr2, m, n, x):
(count, l, r) = (0, 0, n - 1)
while l < m and r >= 0:
if arr1[l] + arr2[r] == x:
l += 1
r -= 1
count += 1
elif arr1[l] + arr2[r] < x:
l += 1
else:
r -= 1
return count
if __name__ == '__main__':
param = [([5, 5, 7, 10, 14, 14, 17, 21, 32, 34, 37, 40, 40, 40, 46, 46, 50, 50, 51, 55, 57, 62, 65, 67, 67, 69, 70, 70, 72, 73, 76, 77, 77, 78, 84, 85, 85, 86, 87, 88, 88, 89, 89, 90, 93, 99], [2, 5, 8, 8, 10, 12, 13, 15, 17, 18, 20, 20, 21, 27, 28, 31, 34, 37, 40, 46, 48, 52, 53, 54, 54, 58, 59, 60, 66, 68, 68, 69, 70, 71, 72, 73, 77, 77, 80, 84, 84, 92, 92, 95, 97, 97], 28, 29, 23), ([-84, 52, -34, 96, 16, 92, -64, -74], [-22, 26, -12, -54, 66, 86, 38, 76], 6, 5, 7), ([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], 37, 26, 42), ([60, 92, 42, 83, 55, 76, 29, 62], [71, 2, 74, 42, 80, 71, 26, 76], 4, 7, 7), ([-94, -94, -58, -40, -40, -26, -24, -22, -22, -22, -2, 0, 4, 8, 12, 16, 16, 18, 22, 32, 42, 44, 50, 58, 64, 78, 80, 90], [-86, -84, -78, -76, -72, -70, -62, -58, -54, -54, -50, -46, -44, -40, -30, -28, -16, -10, 10, 36, 36, 48, 70, 84, 84, 90, 94, 98], 17, 27, 17), ([0, 0, 1, 1, 1, 0, 0, 1, 1, 1], [1, 1, 1, 0, 1, 1, 0, 0, 0, 0], 5, 8, 9), ([1, 5, 7, 7, 7, 14, 15, 16, 17, 18, 18, 19, 20, 25, 27, 31, 36, 42, 47, 51, 56, 56, 56, 58, 58, 59, 63, 63, 63, 65, 66, 67, 76, 83, 93, 94, 97], [2, 3, 7, 8, 9, 10, 17, 18, 21, 28, 29, 29, 33, 35, 46, 47, 47, 49, 49, 49, 53, 56, 58, 59, 59, 60, 65, 67, 70, 78, 81, 85, 85, 87, 90, 92, 96], 28, 34, 31), ([78, -74, 52, 56, -8, 92, 14, 56, -72, -92, 32, -94, -26, -8, -66, 72, -24, 36, -84, -4, -68, 14, 78, 40, -82, -10, 16, 56, 6, -16, 30, 24, -32], [-74, 22, -14, -2, 36, 86, -70, -20, -76, -84, -40, -36, 42, 22, -60, -94, -18, 8, -14, -42, -68, 62, -60, 2, 40, -66, 68, 96, 70, 98, -38, -74, -92], 16, 30, 24), ([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], 25, 33, 33), ([17, 50, 65, 4, 19, 10, 45, 70, 76, 81, 28, 97, 55, 70, 38, 2, 40, 67, 36, 33, 6, 85, 25], [78, 92, 65, 23, 7, 94, 18, 4, 2, 53, 31, 58, 98, 18, 46, 16, 17, 92, 80, 92, 43, 70, 50], 16, 22, 22)]
n_success = 0
for (i, parameters_set) in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success += 1
print('#Results: %i, %i' % (n_success, len(param))) |
# coding: utf-8
# BlackSmith general configuration file
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Jabber server to connect
SERVER = 'example.com'
# Connecting Port
PORT = 5222
# Jabber server`s connecting Host
HOST = 'example.com'
# Using TLS (True - to enable, False - to disable)
SECURE = True
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# User`s account
USERNAME = 'username'
# Jabber ID`s Password
PASSWORD = 'password'
# Resourse (please don`t touch it)
RESOURCE = u'simpleApps' # You can write unicode symbols here
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Default chatroom nick
DEFAULT_NICK = u'BlackSmith-m.1' # You can write unicode symbols here
# Groupchat message size limit
CHAT_MSG_LIMIT = 1024
# Private/Roster message size limit
PRIV_MSG_LIMIT = 2024
# Incoming message size limit
INC_MSG_LIMIT = 8960
# Working without rights of moder (True - to enable, False - to disable)
MSERVE = False
# Jabber account of bot`s owner
BOSS = '[email protected]'
# Memory usage limit (size in kilobytes, 0 - not limited)
MEMORY_LIMIT = 49152
# Admin password, used as a key to command "login"
BOSS_PASS = ''
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| server = 'example.com'
port = 5222
host = 'example.com'
secure = True
username = 'username'
password = 'password'
resource = u'simpleApps'
default_nick = u'BlackSmith-m.1'
chat_msg_limit = 1024
priv_msg_limit = 2024
inc_msg_limit = 8960
mserve = False
boss = '[email protected]'
memory_limit = 49152
boss_pass = '' |
# -----------------------------------------------------------------------------
# This piece of work is inspired by Pollere' VerSec:
# https://github.com/pollere/DCT
# But this code is implemented independently without using any line of the
# original one, and released under Apache License.
#
# Copyright (C) 2019-2022 The python-ndn authors
#
# This file is part of python-ndn.
#
# 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.
# -----------------------------------------------------------------------------
lvs_grammar = r'''
?start: file_input
TAG_IDENT: CNAME
RULE_IDENT: "#" CNAME
FN_IDENT: "$" CNAME
name: "/"? component ("/" component)*
component: STR -> component_from_str
| TAG_IDENT -> tag_id
| RULE_IDENT -> rule_id
definition: RULE_IDENT ":" def_expr
def_expr: name ("&" comp_constraints)? ("<=" sign_constraints)?
sign_constraints: RULE_IDENT ("|" RULE_IDENT)*
comp_constraints: cons_set ("|" cons_set)*
cons_set: "{" cons_term ("," cons_term)* "}"
cons_term: TAG_IDENT ":" cons_expr
cons_expr: cons_option ("|" cons_option)*
cons_option: STR -> component_from_str
| TAG_IDENT -> tag_id
| FN_IDENT "(" fn_args ")" -> fn_call
fn_args: (STR | TAG_IDENT)? ("," (STR | TAG_IDENT))*
file_input: definition*
%import common (DIGIT, LETTER, WS, CNAME, CPP_COMMENT)
%import common.ESCAPED_STRING -> STR
%ignore WS
%ignore CPP_COMMENT
'''
| lvs_grammar = '\n ?start: file_input\n\n TAG_IDENT: CNAME\n RULE_IDENT: "#" CNAME\n FN_IDENT: "$" CNAME\n\n name: "/"? component ("/" component)*\n component: STR -> component_from_str\n | TAG_IDENT -> tag_id\n | RULE_IDENT -> rule_id\n\n definition: RULE_IDENT ":" def_expr\n def_expr: name ("&" comp_constraints)? ("<=" sign_constraints)?\n sign_constraints: RULE_IDENT ("|" RULE_IDENT)*\n comp_constraints: cons_set ("|" cons_set)*\n cons_set: "{" cons_term ("," cons_term)* "}"\n cons_term: TAG_IDENT ":" cons_expr\n cons_expr: cons_option ("|" cons_option)*\n cons_option: STR -> component_from_str\n | TAG_IDENT -> tag_id\n | FN_IDENT "(" fn_args ")" -> fn_call\n fn_args: (STR | TAG_IDENT)? ("," (STR | TAG_IDENT))*\n\n file_input: definition*\n\n %import common (DIGIT, LETTER, WS, CNAME, CPP_COMMENT)\n %import common.ESCAPED_STRING -> STR\n\n %ignore WS\n %ignore CPP_COMMENT\n' |
#!/usr/bin/env python
# -*- coding: utf-8; -*-
# Copyright (c) 2022 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
DEFAULT_OCI_CONFIG_FILE = "~/.oci/config"
DEFAULT_PROFILE = "DEFAULT"
DEFAULT_CONDA_PACK_FOLDER = "~/conda"
CONDA_PACK_OS_PREFIX_FORMAT = "oci://<bucket>@<namespace>/<prefix>"
DEFAULT_ADS_CONFIG_FOLDER = "~/.ads_ops"
OPS_IMAGE_BASE = "ads-operators-base"
ML_JOB_IMAGE = "ml-job"
ML_JOB_GPU_IMAGE = "ml-job-gpu"
OPS_IMAGE_GPU_BASE = "ads-operators-gpu-base"
DEFAULT_MANIFEST_VERSION = "1.0"
ADS_CONFIG_FILE_NAME = "config.ini"
ADS_JOBS_CONFIG_FILE_NAME = "ml_job_config.ini"
ADS_DATAFLOW_CONFIG_FILE_NAME = "dataflow_config.ini"
DEFAULT_IMAGE_HOME_DIR = "/home/datascience"
DEFAULT_IMAGE_SCRIPT_DIR = "/etc/datascience"
DEFAULT_IMAGE_CONDA_DIR = "/opt/conda/envs"
DEFAULT_NOTEBOOK_SESSION_SPARK_CONF_DIR = "/home/datascience/spark_conf_dir"
DEFAULT_NOTEBOOK_SESSION_CONDA_DIR = "/home/datascience/conda"
ADS_DATAFLOW_CONFIG_FILE_NAME = "dataflow_config.ini"
| default_oci_config_file = '~/.oci/config'
default_profile = 'DEFAULT'
default_conda_pack_folder = '~/conda'
conda_pack_os_prefix_format = 'oci://<bucket>@<namespace>/<prefix>'
default_ads_config_folder = '~/.ads_ops'
ops_image_base = 'ads-operators-base'
ml_job_image = 'ml-job'
ml_job_gpu_image = 'ml-job-gpu'
ops_image_gpu_base = 'ads-operators-gpu-base'
default_manifest_version = '1.0'
ads_config_file_name = 'config.ini'
ads_jobs_config_file_name = 'ml_job_config.ini'
ads_dataflow_config_file_name = 'dataflow_config.ini'
default_image_home_dir = '/home/datascience'
default_image_script_dir = '/etc/datascience'
default_image_conda_dir = '/opt/conda/envs'
default_notebook_session_spark_conf_dir = '/home/datascience/spark_conf_dir'
default_notebook_session_conda_dir = '/home/datascience/conda'
ads_dataflow_config_file_name = 'dataflow_config.ini' |
INPUT = ">^^v^<>v<<<v<v^>>v^^^<v<>^^><^<<^vv>>>^<<^>><vv<<v^<^^><>>><>v<><>^^<^^^<><>>vv>vv>v<<^>v<>^>v<v^<>v>><>^v<<<<v^vv^><v>v^>>>vv>v^^^<^^<>>v<^^v<>^<vv^^<^><<>^>><^<>>><><vv><>v<<<><><>v><<>^^^^v>>^>^<v<<vv^^<v<^<^>^^v^^^^^v<><^v><<><^v^>v<<>^<>^^v^<>v<v^>v>^^<vv^v><^<>^v<><^><v^><><><<<<>^vv^>^vvvvv><><^<vv^v^v>v<<^<^^v^<>^<vv><v<v^v<<v<<^^>>^^^v^>v<><^vv<<^<>v<v><><v^^><v<>^^>^^>v^>^<<<<v><v<<>v><^v>^>><v^^<^>v<vvvv<>>>>>^v^^>v<v<^<vv>^>^vv^>vv^^v<<^<^^<>v>vv^v>><>>>v^>^>^^v<>^<v<<>^vv>v^<<v>v<<><v>^vvv<v<vvv^v<vv<v^^^>v><<^<>><v^^>^v^>>^v<^<><v<>>v^<>>v<>>v^^^><^>>vvvv>^v<^><<>>^<>^>vv><v<<>>^^>v^^^><^<<^^v>v<^<<>v>^^vvv^v^>v^<>^^<>v^v>v>v<v^>vv>^^v<>v>>^<>><>v>v^<<vvvv<vvv><v^<^>^v<>>^><v>><>^<v>v<v>vv^>>vvv<>v>v<v^>>^>>v<<>^<>^<>>>^v<<<^<^v>vv^>><<><v^>^v^^^v<>^^vv><>><>>^>v^<v<>v<>>^<<^v>^^^<>^v^><>v<<v>vv^>vv<<>>><<^v^<>v<vv>>>^^<>^><<^>vv>>^<<v^^vv<>>><v>v><^<v<<>>>^^<>>^<^v><>vv^^^v>vvv>^><<>^^>^<<v^<v<^v<<>vvv<^<<>^>^v<vv<^>vvv>v>vv^<v^><>>^vv<^^^vv><^vv<v^<><v^vvv><<^>^^><v<<vv^>v<vv<v>^<>^v<<>v<v^v^>^>^>v<<^vvv<<<v>^^>^<<<<>vv>>^<>^>>>v<v>^^<v^<v<>>>vv>^^v<<>>>^^v><<<v<v<^v<>^^><v<^v<<v^><><^<><v<^^v>>><v^^v<<v^><^<><<v^>><^<>v>v^<><^<v>^v^>^>^vv^>^^<<vv^>vv<^vvv<>>^^<^>v^>^>^<v^><v<v>>>v<<<><^v<<><^<vv^v^^^>v<^^<v^vvv<v<><v<vv<^vv<>vv<v^<>>vvvvv<<>^v^v>vv>>>vvv^^<^<^<><>v<v>><^v><^<<<>><<<v>^>v<>^>^v>>^<>v^<^>><<>^<v>^>^^^>^^<v>>>><>^v^v><<<<vv^<vv<>vv>v<>v^<v^>v><>>>v^<><^vvv>vv^<^<<^<^^v>^>>>v<^<^v^^<^<^>>><v>vv>^<<><>^>>v>^<<>><^<>v<>vv^^>^>vvv^v<<^<^^<vv<>^vvv<^^v^vv^>>v<^>^^<v^<>v<^<^vv>v<<vv>vv>^>vvv>>>^^>v<>^v>v^<^>>v>^^v>>>>v^<v>v<^>v<v<<>>^v<^^<v><^<>>^<<vv^>>v<<v>^v<>><^>vv<v<^>>^^<vvvvvvvvv>>>v<v<>v^<>>^vv<v^^v<<^vvv^<<^><>vv<><<>>v>vv^><>>^^v^>>v^v^><<<>>^^<^v<<^<>>>>^<^>v^><<^>v<^v<^>>^^<<<<><^<^v^v<>>^v<^<<vv^<><^^vv><v^v^v>^>>^>^vv^>^v<v^v<<vvv^><>>^v^^><>v>vv><^>>vv<vvv<<<<^<>vvv^v<v>^<v<^>^<^<v<><>v^^^^<<vv<^^vv<v>><<v^><>>><v^>^v><^>^><vv^<><^<v>><<^vv<>>v^<<v<>v><v<><><vv>^>>v^<^<v>^><>>><^><v^v<>>>^^<^>v<v>vvv<>^<<><v^^>^>>v<^v>^>v>>>vv>v>>v^^^<^<vvv^<>^>^<v^<v^v>v>^>vv>vvv<>v<^>v>^^>>^<vv^^v>v^^^^^v^vv><^<><>^>vv<^>>^vvvv^^^>^<vv>^v<<^><^^>^<>^^>^<<v<^>>>^><<^^>v^v>>^>vvvv>^^v><v>>vv><<<vv<^>v>^^^<v>v^vvv<^><<^>^<>^><<<<<v^<<vv^v>^<>v<v>^>^>><>v^v<^vv^^>vv<<v^v>vv^vvv<<<<>^v<v^^v^v>v<<v>^^<>^vv^^>^>^v^vv^>>v^vv^^<vv><<v^v^^v><vv<^vvv<vv^^<<v>v^v^^^^v<^<^>v>^>v>^vv^v^^<v<^vvvv<<<>^<^^^<^^<>^<><vv<^^<<^>>><v^vvvv>^<>>^^>v^^v^<<v^^^<<<><^<v^v^^v<v^<>v><<v<>^v>v<^><^>vv^^<vvv<^v>>v>^<><v^><^^^<v^>>vv<<<<<^<>^v^v>^vv^<>v>v<^>vv<<^vv>vv<v<><>>v>><v<^<^^>><<v^v<<^><v<^<vv<v<<vv^>^<<><^^>^<^>>^<vv>><v<<vvv<^^v^>^^<^v>^v<v<>v><v^v^<<^<><<v<<^v>v<<>>^>v>>v>>v<^<<^<^>>>v>^^^v><^>^^>>v<<>^v><v>vvv^vv<<<>vvv<<>^>>>v<v<v^<^<^>^<^>v^^v<^^<v<>v<>>^^>^v^>v<<<<^<>v^><<<v>>>><<v^<^vv>v>><>>^<<<^<^^>v<>>v<>vv<<^<<><<^>v^^^vv^>vvvv>>v>v^><<v<>vv^<<><<vvv>^>>>^<<<^<^<<v>^>v<>>v>>vv^^><<<<^^^v>><<^><v><v^^><v<<v^^v^^v>>v<><><<>^><v><^<vv>><^v<>v<vvv<>^>><v>>v<^><<v>^<>^v><^><^^<v>^><^^v^<<><>>^>v^<^v^vv<><^>vv^>v^vvv^<>>^><^<^<>^<<v^v<^v><>^v<v>>^>>^v^vv>><vv><v^^<<^v^<>^v<<>^><^>><v>>v<<<v^^vv<>^^v>>><><><<v^<<<v^<^^><v^>v^^vv<v^<>>vv^<^v<>^v>>v^v>v<^^vv><>^v<<>v^<>v^>>v>vvv<^><><^^>^vv^>>v^>^<^^<><>><<>^^^><^v^v><<<><<^v^vv>v>><^>>><v^>v<v><><v^v<>v^^>>v<<>v>v<v<v<^^<><>v^^<>>v<^v<v>v<><v<v>^<<>v>vv^^<>>^^^<>^^>^v>v>>>^v^v><v^^<><v>^^v^v<^<^^><<v<^<^<>^<>><<>^>>^>^^><v><>v<><>><<<>>>>vv>>>^>>^v<^>v^^^v<<vv>><<<^<<<>>>>>^>vv<^v^<>^<v^>^v><v>vvv<>>>^v^^^v<<<<>>^^<vv<^<^^>^<>v<^<<<>><>>v<^<>^<vvv<^<>><><<v>^^^>^^<<v<v^>^^v^>><<^vv><v>^v>>^<v>v>^^>^v>^vvv<>v^v^^<><vv>vv^>>><>v<^><v<v^<><<<>^v>^v<<<^>^>^>v^v<<><vvv<<v^^<><v>^>>><vv>><v>>v^<vv>>vv<<^v^v<<><^v<vv>>>vv<>>>>^vv>v^<>vv>v^v<v^><v<^^^^^>vv<><<vvv^<v><^<vv><^^^vv^<>^^^^<^><^<>v^<v^v<<^v<<^^<>>^<v^^>>>vv<vvv<>v<<>><^vvv^<<^^<<>>>^<>>>v^^><>><<>><v^v>>>>>><>>><v^<<vvv^>v<>>v^<>vv<><^^^^v^<<^<v^vv><<^^>v<^vvv^v>>v>^>>v>^^><<v^<>v<>vv<^v^vv><v><<vv^v>>v^>>v<^^^>^><<v<>^><>v>>>vvv<v<vv<^>>^v<v>^<^^^^^v><>v><>v^v^v<v^vv^v>vvvv<>vv<<<vv<v<<>^<^>^^v^<<>^<v><^><v<v<><<>v^<<^<><vv>v<<^v>>^v<><v>^>>^^><>v^<^<vvv^>^>^<<<<>vv>^v^v<^^^<vv>><>^^<<v<^<^^>>>v^v<<^^^<v<v<^<>^v<v><v^vv^^v^^v^^<vv<>^<><vv^<^v^<<^><<vvv>^^<^^^<^v>^>^vv><<<^v<v>vv>v<>v^v<v^>v^>>>v^v<>^v<<>^vv>v>v>v^<^>v^^<^>^^^^vv>^^><^>vv^>>^^v>><<<<^><>v<>^<v<vv^>^^><<^><v>v^>^^<^>>><>><v^v<v^<v<vv^v^<<^<vvv>>><vv<^^>>^>^><<v^<>>v>v^v^^><<>vv^v>v^<v><^<>^^<^>v>^<><<<v>^<^<^>^>^>^^v^<<^^v^^<^<>><^>v>>^^<>^^^<<<<v^>^v<^vv>^<<<v<><<v<>vv>>>v><>>><>>v<<<vv><>^v>v<^>><^><><v<>^v^>^v>^v<<><<^<>>v>^><>^>><>><^<v^><v^^<><v><^^>^v^^<>v^<v^<^v<v^^^^^v^<<^>^^^<^v><>^^<<<><<<<<^^>v^vvvv>v<>>vv<^>^v^>v<^vv^v<<><<v>v^v>^^><><^<v^>v><vv><>>><<>^vv<>v>>v<^v>>>v<v>v>v>^vv<<>^^vv<v<^v^<v<v>vv<>^<^<vv<v^<^v^^><<>^>><^v>vv^^v<<^^><<>v^^<><><v^^<v^v>^>^>^>v<^<v>^v^^>v<>vvv<^v<v^v><<v^><<^^><^<<v^v^>v<>^>v><><v>^<v<v>^<^^^>^v<<><<><>vv>v^<>v^><v^v<v><><<v>v<vv><<v>>v>^<<<>vv>>vvv>^^vv^v^^<^^<>v^^<>v>>^^>^>^>v>><^>><>>^<<>><^>v<<<<<<<^v^v<v^<v^^>^<><<v<^>v^>v^vv<<^^vv^>>>>^<>v<^v<>v<vv<^>>v^vv>vv><vv<<^>v>><vv>>>vv^<<<<vv^>v<<<<^^>^^v^><<^<v^>v^>^^<v<>vvv^>^<>vvv<v<^^>v^<<v>><>v<v<>^^<vvv>^>vv><><<<^^vv<v^<v<>v<>><<v><^vv^>^<^>^^^<<<v>vv^<^<<>^>^<vv>v><v<<^><^>^^<vv^v^^>>>>vv^><^^vv><>^<v^v>v<vv>v><<<v>v<v>^><v^^><v>v<^v^>>^^<v^>^^>vv>>vv^><^vv^vv<<^>vv>^v<v><vv><v<vvvvv>^^v^v><v>>>^vv<>v>^^^^<^>><>^v^^^>v<^^<<^^v<vv<>vvv<^>><><^>>^><^<>v<v<<><<v><v^v<>><^>v><<v^<v>v<^<vv^v^v^>vvv^^>v>^<vv^>v^v^<>v>^>>vv>><^^<v<<>^vv<><><<^v<v>v<<vv><>><^v<v>>v^>vvv^v^<<^><v<>^vv^>v^<v<^>>v<v><v><v>>^<<<v^<><<>v>^>^^<v<>>^<>^>^><<<^<<^<<^>^v>>><vvv>><<<<v>>>>>>>^<^v<^>v<>vv<><>v>>^>>^>vv^^><<^<v<v>>^^<<^>v<^>>vv>^<>v><^>v<vv>>>>>>^v<^<<<v^><vv<<>>vv<<><v<><<<v<^<v<>>v<^^^^v^^<^^^<^<vv><<^>><>v<<>v<v<>>>><>v^vv>^>^>>vv^v<v<<><^v>vv^><v<<>v^v<^>vv<<^^v><^>>^^vv<^<>>v^^>><v>^v>>>^>>v>v<>v<^vv><>^<<^>vv>>><><>v^><>v^>v>v><^v<><v<v>^v<<^vv^><^^>><^^^<<<^>v>^v>>><^>><^>>>^^^<^>vv<><<<v^>^<^^>>^^^v^v^v>v<v>>>><^>>>v>^vv<<^^^<^^vv>v<<><v<<^^>v>><<v^^><^>^<^>^v^>v><^<^vv>v>><>^<<vv<<v>v<vv<v>^>^>><^^<v>^v^v<><<>vvv<^<v>^><>^>vvv>>>^><<>><v^^<^<<^v>>^v<v<vv>vv^v^>v<<vvv<^^v^v>^<^>>^>v<^>^v<<><<<^>^<^^^>vv<^^^^vv<v<^^v<<<<v<^v^<><v<<^><<>vv>>><^<^<>>>^>^>>^<<<<<^^v>^>^<>vvv^^<^><^>^^v>^vv^><v^<^<<v^<vvv<<^v<><^><^>>>v>^v>^>^v<vv^v>><v><^><v^^>v^>^<><<><>v<v^>vvv^>^>>v<>^><^>^><vvv>^^v^v>v<>^v^><^>>v>v^><<<^>>^<>^<>>v><>>v^>^>^^<>>v^>^<vvvv<^vvvv^>>vv^<v^v>^vv<>v<>^<v<v>v>^^><^>vv^<^v^<<^<^<><vv<^v<^v><>>>^v^<<^><^>vv<v>v<^>vv^>v<<<>^<><v<^^^>v><^^<>^<^<v^vv^<<^>><<v^v<^vvv<<<>>vvvv^v^^^>v<>>><<>vvv<<^^^>v>v>>v<<v<v^v^>^^v>^><^<><<v^<v<v^^^><>v^^^<v>vv<>^>^^vv>^<<^v<^v><v>>>^>>><^<<>^v>>^>vv<<<v<>^<v><v^<^<>v>v^^v^>><<^v<<<<>v>v>v^^<^><>^^<<<v>vv<>>>^>>v<><v^>^<><vv>v>v^v<v^<^>>^>><<^^<^^v<vv<>><<<v<^<<^^^>vvv^<vvv<^>vv><>><<<^<v^v^^<<^vvv^^<^<><<>^<^<>>vvv<>^<>v^v<><>>v^v><<>>>vvv>v<>^>>^><^>vv<<>>v<<^><>v>>^^<v>^>^<<>><^<<vv<^<vv^vv><>>>><^<v>^>vv<v><>^<>vvvvv^vv<<v<>>>^<<><>^^vvv>>>vv<<^^><^v^^v<>^^>^><^>v^^^^v<^<<vv<vv<>vv^^>v^vv>v><>>vv>^<^<v^v^>>v^v^^v>^>vv^>v<vvvv<^v<^v>^v>^^v<<^>^^<<>^><^v>>>vv^>^^>vvvv>>v<^<v>^>>>v^<><^<^^<v>vv^^><v>v^<>^^^>>><^^v>v>^<<>^<v^>vvv^>^^^><v<^>>v<v>>^v><<><<>v<^<<>^><>^>vv>^<v>^^v<<^v^vvv^^>^vv^<^>^>^^v>v^>^<<><<^>v>>vv^vv><v>>^<<^<v^^<^<v^^vv^><^^<^^><v^^>v^^^<^<>^<>>^v<^vvv^^v^<><^>>>>>v><><<<>vv<^v>><<>vvv<><<vv<<<^>v^^>>^>^v>><><^^v<>><>>v^>^<vv><<<>><><<v>^^<>>v<><^<vv>vv<^v>^<<<<v<^<<^^>>^<><^>><<>^>v>^^^v>>^<^^v><v^v>^><<><>>^>>^<<v<>^v<>^>^<v>>vv>^vvv<<v<<^>^>^<<^^<>^^^^vvv<>^vv<vvvvv^^>^^<^>>><>v^<><^<<^>v^^v<>>^vv<>v^^<>>v^vvvvv<<v^<v^^>>><vvvvv>><^>vv>v^v^<v<^>^^><^>^^^^v<><^v<<>v^>v>>vv<<>^<v^^>vvv>^^<v^<>vv^><>><v^^v<>^>>^>v><>>^^v>^>^>>>^>v<^v>v>^<^^^^^>>v<v<>>v<<^>^<v<<>^^>><<^><>v<>^^^vv<>^^>><<^^>v>vv>vv>v^>^v>v^^<>>><<v><v<<>>v><>vvv^^v>^^>^vvvv^>^<>^vvvv><v><v<>>><>^<^vv<>^v<^v<>^vvv<<>><vvv^>>^><<vv^<v^>^<v<<^^>^^<^^v^>v<>v^v><>><v^^>>^vvv><^vv>v^<^<^v>>v^^>^vvv^<v^^v^^>v<^<>>^<>>>^^<><^^vv<>^vv^<>>>>^^<<^^<>vv^^><>^^<v<<v>^<v^^>^v<><><>vvv>^v^>>vv<<^v<<>><v>^><^>>>^<^<^^>vv^<<^<>>^^><><<v>^^<v>>v<<vvvv>^v^vv>><^^<<^>>v>v<^^^<^><^^vv>^vv<^<vv<>v><^<><v><^^^>>^<><^<v>>>>v^<v>>>>>v<><^^>v<^<^>><v<>^>vv>^^v^v^<<v<><<<^v^><<^<><<<<v<^>><<<>v>>vv><vv<><<^<^<><vv>^^^^<>v<<<<v>vv<>vv^^^>><>vv^><>>^vv<<><^^vv<>v^>>^<<>^<v^<^>v<"
visited = set()
visited.add((0,0))
robo_x, robo_y, santa_x, santa_y = 0,0,0,0
roboturn = False
for c in INPUT:
if roboturn:
if c == '>':
robo_x+=1
if c == '<':
robo_x-=1
if c == '^':
robo_y+=1
if c == 'v':
robo_y-=1
visited.add((robo_x,robo_y))
else:
if c == '>':
santa_x+=1
if c == '<':
santa_x-=1
if c == '^':
santa_y+=1
if c == 'v':
santa_y-=1
visited.add((santa_x,santa_y))
roboturn = not roboturn
print("Visited %d houses" % len(visited)) | input = '>^^v^<>v<<<v<v^>>v^^^<v<>^^><^<<^vv>>>^<<^>><vv<<v^<^^><>>><>v<><>^^<^^^<><>>vv>vv>v<<^>v<>^>v<v^<>v>><>^v<<<<v^vv^><v>v^>>>vv>v^^^<^^<>>v<^^v<>^<vv^^<^><<>^>><^<>>><><vv><>v<<<><><>v><<>^^^^v>>^>^<v<<vv^^<v<^<^>^^v^^^^^v<><^v><<><^v^>v<<>^<>^^v^<>v<v^>v>^^<vv^v><^<>^v<><^><v^><><><<<<>^vv^>^vvvvv><><^<vv^v^v>v<<^<^^v^<>^<vv><v<v^v<<v<<^^>>^^^v^>v<><^vv<<^<>v<v><><v^^><v<>^^>^^>v^>^<<<<v><v<<>v><^v>^>><v^^<^>v<vvvv<>>>>>^v^^>v<v<^<vv>^>^vv^>vv^^v<<^<^^<>v>vv^v>><>>>v^>^>^^v<>^<v<<>^vv>v^<<v>v<<><v>^vvv<v<vvv^v<vv<v^^^>v><<^<>><v^^>^v^>>^v<^<><v<>>v^<>>v<>>v^^^><^>>vvvv>^v<^><<>>^<>^>vv><v<<>>^^>v^^^><^<<^^v>v<^<<>v>^^vvv^v^>v^<>^^<>v^v>v>v<v^>vv>^^v<>v>>^<>><>v>v^<<vvvv<vvv><v^<^>^v<>>^><v>><>^<v>v<v>vv^>>vvv<>v>v<v^>>^>>v<<>^<>^<>>>^v<<<^<^v>vv^>><<><v^>^v^^^v<>^^vv><>><>>^>v^<v<>v<>>^<<^v>^^^<>^v^><>v<<v>vv^>vv<<>>><<^v^<>v<vv>>>^^<>^><<^>vv>>^<<v^^vv<>>><v>v><^<v<<>>>^^<>>^<^v><>vv^^^v>vvv>^><<>^^>^<<v^<v<^v<<>vvv<^<<>^>^v<vv<^>vvv>v>vv^<v^><>>^vv<^^^vv><^vv<v^<><v^vvv><<^>^^><v<<vv^>v<vv<v>^<>^v<<>v<v^v^>^>^>v<<^vvv<<<v>^^>^<<<<>vv>>^<>^>>>v<v>^^<v^<v<>>>vv>^^v<<>>>^^v><<<v<v<^v<>^^><v<^v<<v^><><^<><v<^^v>>><v^^v<<v^><^<><<v^>><^<>v>v^<><^<v>^v^>^>^vv^>^^<<vv^>vv<^vvv<>>^^<^>v^>^>^<v^><v<v>>>v<<<><^v<<><^<vv^v^^^>v<^^<v^vvv<v<><v<vv<^vv<>vv<v^<>>vvvvv<<>^v^v>vv>>>vvv^^<^<^<><>v<v>><^v><^<<<>><<<v>^>v<>^>^v>>^<>v^<^>><<>^<v>^>^^^>^^<v>>>><>^v^v><<<<vv^<vv<>vv>v<>v^<v^>v><>>>v^<><^vvv>vv^<^<<^<^^v>^>>>v<^<^v^^<^<^>>><v>vv>^<<><>^>>v>^<<>><^<>v<>vv^^>^>vvv^v<<^<^^<vv<>^vvv<^^v^vv^>>v<^>^^<v^<>v<^<^vv>v<<vv>vv>^>vvv>>>^^>v<>^v>v^<^>>v>^^v>>>>v^<v>v<^>v<v<<>>^v<^^<v><^<>>^<<vv^>>v<<v>^v<>><^>vv<v<^>>^^<vvvvvvvvv>>>v<v<>v^<>>^vv<v^^v<<^vvv^<<^><>vv<><<>>v>vv^><>>^^v^>>v^v^><<<>>^^<^v<<^<>>>>^<^>v^><<^>v<^v<^>>^^<<<<><^<^v^v<>>^v<^<<vv^<><^^vv><v^v^v>^>>^>^vv^>^v<v^v<<vvv^><>>^v^^><>v>vv><^>>vv<vvv<<<<^<>vvv^v<v>^<v<^>^<^<v<><>v^^^^<<vv<^^vv<v>><<v^><>>><v^>^v><^>^><vv^<><^<v>><<^vv<>>v^<<v<>v><v<><><vv>^>>v^<^<v>^><>>><^><v^v<>>>^^<^>v<v>vvv<>^<<><v^^>^>>v<^v>^>v>>>vv>v>>v^^^<^<vvv^<>^>^<v^<v^v>v>^>vv>vvv<>v<^>v>^^>>^<vv^^v>v^^^^^v^vv><^<><>^>vv<^>>^vvvv^^^>^<vv>^v<<^><^^>^<>^^>^<<v<^>>>^><<^^>v^v>>^>vvvv>^^v><v>>vv><<<vv<^>v>^^^<v>v^vvv<^><<^>^<>^><<<<<v^<<vv^v>^<>v<v>^>^>><>v^v<^vv^^>vv<<v^v>vv^vvv<<<<>^v<v^^v^v>v<<v>^^<>^vv^^>^>^v^vv^>>v^vv^^<vv><<v^v^^v><vv<^vvv<vv^^<<v>v^v^^^^v<^<^>v>^>v>^vv^v^^<v<^vvvv<<<>^<^^^<^^<>^<><vv<^^<<^>>><v^vvvv>^<>>^^>v^^v^<<v^^^<<<><^<v^v^^v<v^<>v><<v<>^v>v<^><^>vv^^<vvv<^v>>v>^<><v^><^^^<v^>>vv<<<<<^<>^v^v>^vv^<>v>v<^>vv<<^vv>vv<v<><>>v>><v<^<^^>><<v^v<<^><v<^<vv<v<<vv^>^<<><^^>^<^>>^<vv>><v<<vvv<^^v^>^^<^v>^v<v<>v><v^v^<<^<><<v<<^v>v<<>>^>v>>v>>v<^<<^<^>>>v>^^^v><^>^^>>v<<>^v><v>vvv^vv<<<>vvv<<>^>>>v<v<v^<^<^>^<^>v^^v<^^<v<>v<>>^^>^v^>v<<<<^<>v^><<<v>>>><<v^<^vv>v>><>>^<<<^<^^>v<>>v<>vv<<^<<><<^>v^^^vv^>vvvv>>v>v^><<v<>vv^<<><<vvv>^>>>^<<<^<^<<v>^>v<>>v>>vv^^><<<<^^^v>><<^><v><v^^><v<<v^^v^^v>>v<><><<>^><v><^<vv>><^v<>v<vvv<>^>><v>>v<^><<v>^<>^v><^><^^<v>^><^^v^<<><>>^>v^<^v^vv<><^>vv^>v^vvv^<>>^><^<^<>^<<v^v<^v><>^v<v>>^>>^v^vv>><vv><v^^<<^v^<>^v<<>^><^>><v>>v<<<v^^vv<>^^v>>><><><<v^<<<v^<^^><v^>v^^vv<v^<>>vv^<^v<>^v>>v^v>v<^^vv><>^v<<>v^<>v^>>v>vvv<^><><^^>^vv^>>v^>^<^^<><>><<>^^^><^v^v><<<><<^v^vv>v>><^>>><v^>v<v><><v^v<>v^^>>v<<>v>v<v<v<^^<><>v^^<>>v<^v<v>v<><v<v>^<<>v>vv^^<>>^^^<>^^>^v>v>>>^v^v><v^^<><v>^^v^v<^<^^><<v<^<^<>^<>><<>^>>^>^^><v><>v<><>><<<>>>>vv>>>^>>^v<^>v^^^v<<vv>><<<^<<<>>>>>^>vv<^v^<>^<v^>^v><v>vvv<>>>^v^^^v<<<<>>^^<vv<^<^^>^<>v<^<<<>><>>v<^<>^<vvv<^<>><><<v>^^^>^^<<v<v^>^^v^>><<^vv><v>^v>>^<v>v>^^>^v>^vvv<>v^v^^<><vv>vv^>>><>v<^><v<v^<><<<>^v>^v<<<^>^>^>v^v<<><vvv<<v^^<><v>^>>><vv>><v>>v^<vv>>vv<<^v^v<<><^v<vv>>>vv<>>>>^vv>v^<>vv>v^v<v^><v<^^^^^>vv<><<vvv^<v><^<vv><^^^vv^<>^^^^<^><^<>v^<v^v<<^v<<^^<>>^<v^^>>>vv<vvv<>v<<>><^vvv^<<^^<<>>>^<>>>v^^><>><<>><v^v>>>>>><>>><v^<<vvv^>v<>>v^<>vv<><^^^^v^<<^<v^vv><<^^>v<^vvv^v>>v>^>>v>^^><<v^<>v<>vv<^v^vv><v><<vv^v>>v^>>v<^^^>^><<v<>^><>v>>>vvv<v<vv<^>>^v<v>^<^^^^^v><>v><>v^v^v<v^vv^v>vvvv<>vv<<<vv<v<<>^<^>^^v^<<>^<v><^><v<v<><<>v^<<^<><vv>v<<^v>>^v<><v>^>>^^><>v^<^<vvv^>^>^<<<<>vv>^v^v<^^^<vv>><>^^<<v<^<^^>>>v^v<<^^^<v<v<^<>^v<v><v^vv^^v^^v^^<vv<>^<><vv^<^v^<<^><<vvv>^^<^^^<^v>^>^vv><<<^v<v>vv>v<>v^v<v^>v^>>>v^v<>^v<<>^vv>v>v>v^<^>v^^<^>^^^^vv>^^><^>vv^>>^^v>><<<<^><>v<>^<v<vv^>^^><<^><v>v^>^^<^>>><>><v^v<v^<v<vv^v^<<^<vvv>>><vv<^^>>^>^><<v^<>>v>v^v^^><<>vv^v>v^<v><^<>^^<^>v>^<><<<v>^<^<^>^>^>^^v^<<^^v^^<^<>><^>v>>^^<>^^^<<<<v^>^v<^vv>^<<<v<><<v<>vv>>>v><>>><>>v<<<vv><>^v>v<^>><^><><v<>^v^>^v>^v<<><<^<>>v>^><>^>><>><^<v^><v^^<><v><^^>^v^^<>v^<v^<^v<v^^^^^v^<<^>^^^<^v><>^^<<<><<<<<^^>v^vvvv>v<>>vv<^>^v^>v<^vv^v<<><<v>v^v>^^><><^<v^>v><vv><>>><<>^vv<>v>>v<^v>>>v<v>v>v>^vv<<>^^vv<v<^v^<v<v>vv<>^<^<vv<v^<^v^^><<>^>><^v>vv^^v<<^^><<>v^^<><><v^^<v^v>^>^>^>v<^<v>^v^^>v<>vvv<^v<v^v><<v^><<^^><^<<v^v^>v<>^>v><><v>^<v<v>^<^^^>^v<<><<><>vv>v^<>v^><v^v<v><><<v>v<vv><<v>>v>^<<<>vv>>vvv>^^vv^v^^<^^<>v^^<>v>>^^>^>^>v>><^>><>>^<<>><^>v<<<<<<<^v^v<v^<v^^>^<><<v<^>v^>v^vv<<^^vv^>>>>^<>v<^v<>v<vv<^>>v^vv>vv><vv<<^>v>><vv>>>vv^<<<<vv^>v<<<<^^>^^v^><<^<v^>v^>^^<v<>vvv^>^<>vvv<v<^^>v^<<v>><>v<v<>^^<vvv>^>vv><><<<^^vv<v^<v<>v<>><<v><^vv^>^<^>^^^<<<v>vv^<^<<>^>^<vv>v><v<<^><^>^^<vv^v^^>>>>vv^><^^vv><>^<v^v>v<vv>v><<<v>v<v>^><v^^><v>v<^v^>>^^<v^>^^>vv>>vv^><^vv^vv<<^>vv>^v<v><vv><v<vvvvv>^^v^v><v>>>^vv<>v>^^^^<^>><>^v^^^>v<^^<<^^v<vv<>vvv<^>><><^>>^><^<>v<v<<><<v><v^v<>><^>v><<v^<v>v<^<vv^v^v^>vvv^^>v>^<vv^>v^v^<>v>^>>vv>><^^<v<<>^vv<><><<^v<v>v<<vv><>><^v<v>>v^>vvv^v^<<^><v<>^vv^>v^<v<^>>v<v><v><v>>^<<<v^<><<>v>^>^^<v<>>^<>^>^><<<^<<^<<^>^v>>><vvv>><<<<v>>>>>>>^<^v<^>v<>vv<><>v>>^>>^>vv^^><<^<v<v>>^^<<^>v<^>>vv>^<>v><^>v<vv>>>>>>^v<^<<<v^><vv<<>>vv<<><v<><<<v<^<v<>>v<^^^^v^^<^^^<^<vv><<^>><>v<<>v<v<>>>><>v^vv>^>^>>vv^v<v<<><^v>vv^><v<<>v^v<^>vv<<^^v><^>>^^vv<^<>>v^^>><v>^v>>>^>>v>v<>v<^vv><>^<<^>vv>>><><>v^><>v^>v>v><^v<><v<v>^v<<^vv^><^^>><^^^<<<^>v>^v>>><^>><^>>>^^^<^>vv<><<<v^>^<^^>>^^^v^v^v>v<v>>>><^>>>v>^vv<<^^^<^^vv>v<<><v<<^^>v>><<v^^><^>^<^>^v^>v><^<^vv>v>><>^<<vv<<v>v<vv<v>^>^>><^^<v>^v^v<><<>vvv<^<v>^><>^>vvv>>>^><<>><v^^<^<<^v>>^v<v<vv>vv^v^>v<<vvv<^^v^v>^<^>>^>v<^>^v<<><<<^>^<^^^>vv<^^^^vv<v<^^v<<<<v<^v^<><v<<^><<>vv>>><^<^<>>>^>^>>^<<<<<^^v>^>^<>vvv^^<^><^>^^v>^vv^><v^<^<<v^<vvv<<^v<><^><^>>>v>^v>^>^v<vv^v>><v><^><v^^>v^>^<><<><>v<v^>vvv^>^>>v<>^><^>^><vvv>^^v^v>v<>^v^><^>>v>v^><<<^>>^<>^<>>v><>>v^>^>^^<>>v^>^<vvvv<^vvvv^>>vv^<v^v>^vv<>v<>^<v<v>v>^^><^>vv^<^v^<<^<^<><vv<^v<^v><>>>^v^<<^><^>vv<v>v<^>vv^>v<<<>^<><v<^^^>v><^^<>^<^<v^vv^<<^>><<v^v<^vvv<<<>>vvvv^v^^^>v<>>><<>vvv<<^^^>v>v>>v<<v<v^v^>^^v>^><^<><<v^<v<v^^^><>v^^^<v>vv<>^>^^vv>^<<^v<^v><v>>>^>>><^<<>^v>>^>vv<<<v<>^<v><v^<^<>v>v^^v^>><<^v<<<<>v>v>v^^<^><>^^<<<v>vv<>>>^>>v<><v^>^<><vv>v>v^v<v^<^>>^>><<^^<^^v<vv<>><<<v<^<<^^^>vvv^<vvv<^>vv><>><<<^<v^v^^<<^vvv^^<^<><<>^<^<>>vvv<>^<>v^v<><>>v^v><<>>>vvv>v<>^>>^><^>vv<<>>v<<^><>v>>^^<v>^>^<<>><^<<vv<^<vv^vv><>>>><^<v>^>vv<v><>^<>vvvvv^vv<<v<>>>^<<><>^^vvv>>>vv<<^^><^v^^v<>^^>^><^>v^^^^v<^<<vv<vv<>vv^^>v^vv>v><>>vv>^<^<v^v^>>v^v^^v>^>vv^>v<vvvv<^v<^v>^v>^^v<<^>^^<<>^><^v>>>vv^>^^>vvvv>>v<^<v>^>>>v^<><^<^^<v>vv^^><v>v^<>^^^>>><^^v>v>^<<>^<v^>vvv^>^^^><v<^>>v<v>>^v><<><<>v<^<<>^><>^>vv>^<v>^^v<<^v^vvv^^>^vv^<^>^>^^v>v^>^<<><<^>v>>vv^vv><v>>^<<^<v^^<^<v^^vv^><^^<^^><v^^>v^^^<^<>^<>>^v<^vvv^^v^<><^>>>>>v><><<<>vv<^v>><<>vvv<><<vv<<<^>v^^>>^>^v>><><^^v<>><>>v^>^<vv><<<>><><<v>^^<>>v<><^<vv>vv<^v>^<<<<v<^<<^^>>^<><^>><<>^>v>^^^v>>^<^^v><v^v>^><<><>>^>>^<<v<>^v<>^>^<v>>vv>^vvv<<v<<^>^>^<<^^<>^^^^vvv<>^vv<vvvvv^^>^^<^>>><>v^<><^<<^>v^^v<>>^vv<>v^^<>>v^vvvvv<<v^<v^^>>><vvvvv>><^>vv>v^v^<v<^>^^><^>^^^^v<><^v<<>v^>v>>vv<<>^<v^^>vvv>^^<v^<>vv^><>><v^^v<>^>>^>v><>>^^v>^>^>>>^>v<^v>v>^<^^^^^>>v<v<>>v<<^>^<v<<>^^>><<^><>v<>^^^vv<>^^>><<^^>v>vv>vv>v^>^v>v^^<>>><<v><v<<>>v><>vvv^^v>^^>^vvvv^>^<>^vvvv><v><v<>>><>^<^vv<>^v<^v<>^vvv<<>><vvv^>>^><<vv^<v^>^<v<<^^>^^<^^v^>v<>v^v><>><v^^>>^vvv><^vv>v^<^<^v>>v^^>^vvv^<v^^v^^>v<^<>>^<>>>^^<><^^vv<>^vv^<>>>>^^<<^^<>vv^^><>^^<v<<v>^<v^^>^v<><><>vvv>^v^>>vv<<^v<<>><v>^><^>>>^<^<^^>vv^<<^<>>^^><><<v>^^<v>>v<<vvvv>^v^vv>><^^<<^>>v>v<^^^<^><^^vv>^vv<^<vv<>v><^<><v><^^^>>^<><^<v>>>>v^<v>>>>>v<><^^>v<^<^>><v<>^>vv>^^v^v^<<v<><<<^v^><<^<><<<<v<^>><<<>v>>vv><vv<><<^<^<><vv>^^^^<>v<<<<v>vv<>vv^^^>><>vv^><>>^vv<<><^^vv<>v^>>^<<>^<v^<^>v<'
visited = set()
visited.add((0, 0))
(robo_x, robo_y, santa_x, santa_y) = (0, 0, 0, 0)
roboturn = False
for c in INPUT:
if roboturn:
if c == '>':
robo_x += 1
if c == '<':
robo_x -= 1
if c == '^':
robo_y += 1
if c == 'v':
robo_y -= 1
visited.add((robo_x, robo_y))
else:
if c == '>':
santa_x += 1
if c == '<':
santa_x -= 1
if c == '^':
santa_y += 1
if c == 'v':
santa_y -= 1
visited.add((santa_x, santa_y))
roboturn = not roboturn
print('Visited %d houses' % len(visited)) |
#
# PySNMP MIB module CISCO-IMAGE-UPGRADE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IMAGE-UPGRADE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:01:48 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion")
ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt")
EntPhysicalIndexOrZero, = mibBuilder.importSymbols("CISCO-TC", "EntPhysicalIndexOrZero")
entPhysicalIndex, = mibBuilder.importSymbols("ENTITY-MIB", "entPhysicalIndex")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, Unsigned32, Integer32, iso, Counter64, ModuleIdentity, ObjectIdentity, Gauge32, IpAddress, MibIdentifier, Counter32, Bits, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "Unsigned32", "Integer32", "iso", "Counter64", "ModuleIdentity", "ObjectIdentity", "Gauge32", "IpAddress", "MibIdentifier", "Counter32", "Bits", "NotificationType")
RowStatus, DisplayString, TimeStamp, TextualConvention, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "DisplayString", "TimeStamp", "TextualConvention", "TruthValue")
ciscoImageUpgradeMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 360))
ciscoImageUpgradeMIB.setRevisions(('2011-03-28 00:00', '2008-03-18 00:00', '2007-07-18 00:00', '2006-12-21 00:00', '2004-01-20 00:00', '2003-11-04 00:00', '2003-10-28 00:00', '2003-07-11 00:00', '2003-07-08 00:00', '2003-06-01 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: ciscoImageUpgradeMIB.setRevisionsDescriptions(("Added new group ciuUpgradeOpNewGroup. Added new enum 'systemPreupgradeBegin' to ciuUpgradeOpStatusOperation. Added ciuUpgradeOpLastCommand and ciuUpgradeOpLastStatus to the varbind list of ciuUpgradeOpCompletionNotify. Added new compliance ciuImageUpgradeComplianceRev4 and deprecated ciuImageUpgradeComplianceRev3. Added ciuUpgradeJobStatusNotifyOnCompletion.", "Added new enum 'compactFlashTcamSanity' to ciuUpgradeOpStatusOperation.", 'Added new enums to ciuUpgradeOpStatusOperation.', 'Added new enums to ciuUpgradeOpStatus and ciuUpgradeOpStatusOperation. Added new trap ciuUpgradeJobStatusNotify. Changed type for ciuUpgradeOpStatusModule to EntPhysicalIndexOrZero. Added ciuUpgradeNotificationGroupSup group, deprecated ciuImageUpgradeComplianceRev2 and added ciuImageUpgradeComplianceRev3 ', "Added new enums to ciuUpgradeOpStatus and ciuUpgradeOpStatusOperation. Corrected description for 'configSync' enum defined in ciuUpgradeOpStatusOperation object. ", 'Updated compliance statement. Removed ciuImageLocInputGroup from conditionally mandatory.', 'Added ciuUpgradeMiscInfoTable. Added more enums to ciuUpgradeOpStatusOperation. Added ciuUpgradeMiscInfoGroup, deprecated ciuImageUpgradeComplianceRev1 and added ciuImageUpgradeComplianceRev2.', 'Changed: ciuImageLocInputURI identifier from 2 to 1, ciuImageLocInputEntryStatus identifier from 3 to 2 and ciuImageVariableName from 2 to 1. Added recommendedAction to ciuUpgradeOpStatusOperation.', 'Added ciscoImageUpgradeMisc, added ciuUpgradeMiscAutoCopy under the group ciscoImageUpgradeMisc. Added ciuUpgradeMiscGroup, deprecated ciuImageUpgradeCompliance and added ciuImageUpgradeComplianceReve1.', 'Initial version of this MIB module.',))
if mibBuilder.loadTexts: ciscoImageUpgradeMIB.setLastUpdated('201103280000Z')
if mibBuilder.loadTexts: ciscoImageUpgradeMIB.setOrganization('Cisco Systems Inc.')
if mibBuilder.loadTexts: ciscoImageUpgradeMIB.setContactInfo(' Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553 -NETS E-mail: [email protected]')
if mibBuilder.loadTexts: ciscoImageUpgradeMIB.setDescription("This mib provides, objects to upgrade images on modules in the system, objects showing the status of the upgrade operation, and objects showing the type of images that could be run in the system. For example the modules could be Controller card, Line card .. etc. The system fills up the ciuImageVariableTable with the type of images the system can support. For performing an upgrade operation a management application must first read this table and use this info in other tables, as explained below. The ciuImageURITable table is also filled by the system and provides the image name presently running for each type of image in the system. The user is allowed to configure a new image name for each image type as listed in ciuImageVariableTable. The system would use this image on the particular module on the next reboot. The management application on deciding to do an upgrade operation must first check if an upgrade operation is already in progress in the system. This is done by reading the ciuUpgradeOpCommand and if it contains 'none', signifies that no other upgrade operation is in progress. Any other value, signifies that upgrade is in progress and a new upgrade operation is not allowed. To start an 'install' operation, first the user must perform a 'check' operation to do the version compatibility for the given set of image files (provided using the ciuImageLocInputTable) against the current system configuration. Only if the result of this operation is 'success' can the user proceed to do an install operation. The tables, ciuVersionCompChkTable, ciuUpgradeImageVersionTable, ciuUpgradeOpStatusTable, provide the result of the 'check' or 'install' operation performed using ciuUpgradeOpCommand. These tables are in addition to objects ciuUpgradeOpStatus, ciuUpgradeOpTimeStarted, ciuUpgradeOpTimeCompleted, ciuUpgradeOpStatusReason. The ciuUpgradeOpStatus object provides the status of the selected upgrade operation. An option is available for user to upgrade only some modules, provided using ciuUpgradeTargetTable. If this table is empty than an upgrade operation would be performed on all the modules in the system.")
ciscoImageUpgradeMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 360, 0))
ciscoImageUpgradeMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 360, 1))
ciscoImageUpgradeMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 360, 2))
ciscoImageUpgradeConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1))
ciscoImageUpgradeOp = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4))
ciscoImageUpgradeMisc = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 10))
class CiuImageVariableTypeName(TextualConvention, OctetString):
description = "The type of image that the system can run. e.g. Let us say that the device has 3 image variables names - 'system', 'kickstart' and 'ilce'. This TC would, then be as follows: system kickstart ilce. "
status = 'current'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 32)
ciuTotalImageVariables = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuTotalImageVariables.setStatus('current')
if mibBuilder.loadTexts: ciuTotalImageVariables.setDescription('Total number of image variables supported in the device at this time.')
ciuImageVariableTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 2), )
if mibBuilder.loadTexts: ciuImageVariableTable.setStatus('current')
if mibBuilder.loadTexts: ciuImageVariableTable.setDescription('A table listing the image variable types that exist in the device. ')
ciuImageVariableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 2, 1), ).setIndexNames((0, "CISCO-IMAGE-UPGRADE-MIB", "ciuImageVariableName"))
if mibBuilder.loadTexts: ciuImageVariableEntry.setStatus('current')
if mibBuilder.loadTexts: ciuImageVariableEntry.setDescription('A ciuImageVariableEntry entry. Each entry provides the image variable type existing in the device. ')
ciuImageVariableName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 2, 1, 1), CiuImageVariableTypeName()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuImageVariableName.setStatus('current')
if mibBuilder.loadTexts: ciuImageVariableName.setDescription("The type of image that the system can run. The value of this object depends on the underlying agent. e.g. Let us say that the device has 3 image variables names - 'system', 'kickstart' and 'ilce'. This table , then will list these 3 strings as entries such as follows: ciuImageVariableName system kickstart ilce The user can assign images (using ciuImageURITable) to these variables and the system will use the assigned values to boot. ")
ciuImageURITable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 3), )
if mibBuilder.loadTexts: ciuImageURITable.setStatus('current')
if mibBuilder.loadTexts: ciuImageURITable.setDescription("A table listing the Universal Resource Identifier(URI) of images that are assigned to variables of the ciuImageVariableTable. In the example for ciuImageVariableTable, there are 3 image types. This table will list the names for those image types as follows - entPhysicalIndex ciuImageVariableName ciuImageURI 25 'system' m9200-ek9-mgz.1.0.bin 25 'kickstart' boot-1.0.bin 26 'ilce' linecard-1.0.bin In this example, the 'system' image name is 'm9200-ek9-mgz.1.0.bin', the 'ilce' image name is 'linecard-1.0.bin' and the 'kickstart' image name is 'boot-1.0.bin'. ")
ciuImageURIEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 3, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-IMAGE-UPGRADE-MIB", "ciuImageVariableName"))
if mibBuilder.loadTexts: ciuImageURIEntry.setStatus('current')
if mibBuilder.loadTexts: ciuImageURIEntry.setDescription('A ciuImageURITable entry. Each entry provides the Image URI corresponding to this image variable name, identified by ciuImageVariableName, on this module identified by entPhysicalIndex. Each such module of the type PhysicalClass module(9), has an entry in entPhysicalTable in ENTITY-MIB, where that entry is identified by entPhysicalIndex. Only modules capable of running images, identified by ciuImageVariableName would have an entry in this table. ')
ciuImageURI = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 3, 1, 1), SnmpAdminString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ciuImageURI.setStatus('current')
if mibBuilder.loadTexts: ciuImageURI.setDescription('This object contains the string value of the image corresponding to ciuImageVariableName on this entity.')
ciuUpgradeOpCommand = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("done", 2), ("install", 3), ("check", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ciuUpgradeOpCommand.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpCommand.setDescription("The command to be executed. Note that it is possible for a system to support only a subset of these commands. If a command is unsupported, it will complete immediatly with the 'invalidOperation' error being reported in the ciuUpgradeOpStatus object. The 'check' must be performed first before 'install' command can be executed. If 'install' is performed first the operation would fail. So 'install' will be allowed only if a read of this object returns 'check' and the value of object ciuUpgradeOpStatus is 'success'. Also 'check' will be allowed only if a read of this object returns 'none'. Command Remarks none if this object is read without performing any operation listed above, 'none' would be returned. Also 'none' would be returned for a read operation if a cleanup of the previous upgrade operation is completed either through the issue of 'done' command or the maximum timeout of 5 minutes is elapsed. Setting this object to 'none', agent would return a success without any upgrade operation being performed. done if this object returns any value other than 'none', then setting this to 'done' would do the required cleanup of previous upgrade operation and make the system ready for any new upgrade operation. This is needed because the system maintains the status of the previous upgrade operation for a maximum time of 5 minutes before it does the cleanup. During this period no new upgrade operation is allowed. install for all the physical entities listed in the ciuUpgradeTargetTable perform the required upgrade operation listed in that table. However the upgrade operation for a module would not be done if the current running image and the image to be upgraded given as an input through the ciuImageLocInputTable are the same. check check the version compatibility for the given set of image files against the current system configuration. ")
ciuUpgradeOpStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("none", 1), ("invalidOperation", 2), ("failure", 3), ("inProgress", 4), ("success", 5), ("abortInProgress", 6), ("abortSuccess", 7), ("abortFailed", 8), ("successReset", 9), ("fsUpgReset", 10))).clone('none')).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeOpStatus.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpStatus.setDescription('The status of the specified operation. none(1) - no operation was performed. invalidOperation(2) - the selected operation is not supported. failure(3) - the selected operation has failed. inProgress(4) - specified operation is active. success(5) - specified operation has completed successfully. abortInProgress(6) - abort in progress. abortSuccess(7) - abort operation successful. abortFailed(8) - abort failed. successReset(9) - specified operation has completed successfully and the system will reset. fsUpgReset(10) - fabric switch upgrade reset.')
ciuUpgradeOpNotifyOnCompletion = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 3), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ciuUpgradeOpNotifyOnCompletion.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpNotifyOnCompletion.setDescription("Specifies whether or not a notification should be generated on the completion of an operation. If 'true', ciuUpgradeOpCompletionNotify will be generated, else if 'false' it would not be. 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. This object can only be modified alongwith ciuUpgradeOpCommand object.This object returns default value when ciuUpgradeOpCommand object contains 'none'. To SET this object a multivarbind set containing this object and ciuUpgradeOpCommand must be done in the same PDU for the operation to succeed.")
ciuUpgradeOpTimeStarted = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 4), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeOpTimeStarted.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpTimeStarted.setDescription("Specifies the time the upgrade operation was started. This object would return 0 if ciuUpgradeOpCommand contains 'none'.")
ciuUpgradeOpTimeCompleted = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 5), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeOpTimeCompleted.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpTimeCompleted.setDescription("Specifies the time the upgrade operation completed. This object would return 0 if ciuUpgradeOpCommand contains 'none'. ")
ciuUpgradeOpAbort = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 6), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ciuUpgradeOpAbort.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpAbort.setDescription("Provides the means to abort an operation. If this object is set to 'true' when an upgrade operation is in progress and the corresponding instance of ciuUpgradeOpCommand has the value 'install' or 'check', then the operation will be aborted. Setting this object to 'true' when ciuUpgradeOpCommand has a different value other than 'install' or 'check' will fail. If retrieved, this object always has the value 'false'. ")
ciuUpgradeOpStatusReason = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 7), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeOpStatusReason.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpStatusReason.setDescription("Specifies the description of the cause of 'failed' state of the object 'ciuUpgradeOpStatus'. This object would be a null string if value of 'ciuUpgradeOpStatus' is anything other than 'failure'.")
ciuUpgradeOpLastCommand = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("done", 2), ("install", 3), ("check", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeOpLastCommand.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpLastCommand.setDescription("This object indicates previous OpCommand value. It will be updated after new OpCommand is set and delivered to upgrade process. 'none' if this object is read without performing any operation listed above, 'none' would be returned. Also 'none' would be returned for a read operation if a cleanup of the previous upgrade operation is completed either through the issue of 'done' command or the maximum timeout of 5 minutes is elapsed. Setting this object to 'none', agent would return a success without any upgrade operation being performed. 'done' if this object returns any value other than 'none', then setting this to 'done' would do the required cleanup of previous upgrade operation and make the system ready for any new upgrade operation. This is needed because the system maintains the status of the previous upgrade operation for a maximum time of 5 minutes before it does the cleanup. During this period no new upgrade operation is allowed. 'install' perform the required upgrade operation listed in ciuUpgradeTargetTable table. However the upgrade operation for a module would not be done if the current running image and the image to be upgraded given as an input through the ciuImageLocInputTable are the same. 'check' check the version compatibility for the given set of image files against the current system configuration.")
ciuUpgradeOpLastStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("none", 1), ("invalidOperation", 2), ("failure", 3), ("inProgress", 4), ("success", 5), ("abortInProgress", 6), ("abortSuccess", 7), ("abortFailed", 8), ("successReset", 9), ("fsUpgReset", 10)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeOpLastStatus.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpLastStatus.setDescription("This object indicates previous OpStatus value. It will be updated after new OpCommand is set and delivered to upgrade process. 'none' - no operation was performed. 'invalidOperation' - the selected operation is not supported. 'failure' - the selected operation has failed. 'inProgress' - specified operation is active. 'success' - specified operation has completed successfully. 'abortInProgress' - abort in progress. 'abortSuccess' - abort operation successful. 'abortFailed' - abort failed. 'successReset' - specified operation has completed successfully and the system will reset. 'fsUpgReset' - fabric switch upgrade reset.")
ciuUpgradeOpLastStatusReason = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 10), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeOpLastStatusReason.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpLastStatusReason.setDescription('This object indicates the previous OpStatusReason value. It will be updated after new OpCommand is set and delivered to upgrade process.')
ciuUpgradeJobStatusNotifyOnCompletion = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 11), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ciuUpgradeJobStatusNotifyOnCompletion.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeJobStatusNotifyOnCompletion.setDescription("This object specifies whether or not ciuUpgradeJobStatusCompletionNotify notification should be generated on the completion of an operation. If 'true', ciuUpgradeJobStatusCompletionNotify will be generated, else if 'false' it would not be.")
ciuUpgradeTargetTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 5), )
if mibBuilder.loadTexts: ciuUpgradeTargetTable.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeTargetTable.setDescription('A table listing the modules and the type of upgrade operation to be performed on these modules. ')
ciuUpgradeTargetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 5, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"))
if mibBuilder.loadTexts: ciuUpgradeTargetEntry.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeTargetEntry.setDescription("Each entry provides the module that needs to be upgraded and the type of operation that needs to be performed on this module. The upgrade operation, selected using the object 'ciuUpgradeOpCommand', would be performed on each and every module represented by an entry in this table. Each such module of the type PhysicalClass module(9), has an entry in entPhysicalTable in ENTITY-MIB, where that entry is identified by entPhysicalIndex. Only modules capable of running images, identified by ciuImageVariableName would have an entry in this table. This table cannot be modified when ciuUpgradeOpCommand object contains value other than 'none'. ")
ciuUpgradeTargetAction = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("image", 1), ("bios", 2), ("loader", 3), ("bootrom", 4)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ciuUpgradeTargetAction.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeTargetAction.setDescription("The type of operation to be performed on this module. image - upgrade image. bios - upgrade bios. loader - upgrade loader.loader is the program that loads and starts the operating system bootrom - upgrade boot rom This object cannot be modified while the corresponding value of ciuUpgradeTargetEntryStatus is equal to 'active'. It is okay to support only a subset of the enums defined above. ")
ciuUpgradeTargetEntryStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 5, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ciuUpgradeTargetEntryStatus.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeTargetEntryStatus.setDescription('The status of this table entry. A multivarbind set containing this object and ciuUpgradeTargetAction must be done in the same PDU for the operation to succeed. ')
ciuImageLocInputTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 6), )
if mibBuilder.loadTexts: ciuImageLocInputTable.setStatus('current')
if mibBuilder.loadTexts: ciuImageLocInputTable.setDescription('A table listing the URI of the images that need to be upgraded. ')
ciuImageLocInputEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 6, 1), ).setIndexNames((0, "CISCO-IMAGE-UPGRADE-MIB", "ciuImageVariableName"))
if mibBuilder.loadTexts: ciuImageLocInputEntry.setStatus('current')
if mibBuilder.loadTexts: ciuImageLocInputEntry.setDescription("Each entry provides the image location URI that need to be upgraded. This table cannot be modified if ciuUpgradeOpCommand object contains any value other than 'none' ")
ciuImageLocInputURI = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 6, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ciuImageLocInputURI.setStatus('current')
if mibBuilder.loadTexts: ciuImageLocInputURI.setDescription("An ASCII string specifying the system image location. For example the string could be 'bootflash:file1'. This object cannot be modified while the corresponding value of ciuImageLocInputEntryStatus is equal to 'active'. ")
ciuImageLocInputEntryStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 6, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ciuImageLocInputEntryStatus.setStatus('current')
if mibBuilder.loadTexts: ciuImageLocInputEntryStatus.setDescription('The status of this table entry. ')
ciuVersionCompChkTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7), )
if mibBuilder.loadTexts: ciuVersionCompChkTable.setStatus('current')
if mibBuilder.loadTexts: ciuVersionCompChkTable.setDescription("A table showing the result of the version compatibility check operation performed in response to the option 'check' selected for ciuUpgradeOpCommand. The table would be emptied out once the value of ciuUpgradeOpCommand object is 'none'. ")
ciuVersionCompChkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"))
if mibBuilder.loadTexts: ciuVersionCompChkEntry.setStatus('current')
if mibBuilder.loadTexts: ciuVersionCompChkEntry.setDescription('An entry containing the results of the version compatibility check operation performed on each module, identified by entPhysicalIndex. Each such module of the type PhysicalClass module(9), has an entry in entPhysicalTable in ENTITY-MIB, where that entry is identified by entPhysicalIndex. Only modules capable of running images, identified by ciuImageVariableName would have an entry in this table. ')
ciuVersionCompImageSame = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1, 1), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuVersionCompImageSame.setStatus('current')
if mibBuilder.loadTexts: ciuVersionCompImageSame.setDescription(' Specifies whether for this module the image provided by the user for upgrade is same as the current running image. ')
ciuVersionCompUpgradable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuVersionCompUpgradable.setStatus('current')
if mibBuilder.loadTexts: ciuVersionCompUpgradable.setDescription(" Specifies whether the set of images provided in ciuImageLocInputTable are compatible with each other as far as this module is concerned. If 'true' the set of images provided are compatible and can be run on this module else they are not compatible. This module would not come up if it is booted with a uncompatible set of image. ")
ciuVersionCompUpgradeAction = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("none", 1), ("other", 2), ("rollingUpgrade", 3), ("switchOverReset", 4), ("reset", 5), ("copy", 6), ("notApplicable", 7), ("plugin", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuVersionCompUpgradeAction.setStatus('current')
if mibBuilder.loadTexts: ciuVersionCompUpgradeAction.setDescription(" Specifies the type of upgrade action that would be performed on this module if ciuUpgradeOpCommand were set to 'install' or to 'check'. none(1) : is no upgrade action. other(2) : actions other than defined here rollingUpgrade(3) : modules would be upgraded one at a time. switchOverReset(4): all the modules would be reset after a switchover happens at the same time. reset(5) : all the modules would be reset without or before a switchover. copy(6) : then image upgrade would not be done, but only bios/loader/bootrom would be updated and will take effect on next reload. notApplicable(7) : upgrade action is not possible because image is not upgradable. plugin(8) : upgrading plugin only instead of full image.")
ciuVersionCompUpgradeBios = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1, 4), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuVersionCompUpgradeBios.setStatus('current')
if mibBuilder.loadTexts: ciuVersionCompUpgradeBios.setDescription(" Specifies whether the BIOS will be upgraded. If 'true' the bios would be upgraded else it would not.")
ciuVersionCompUpgradeBootrom = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuVersionCompUpgradeBootrom.setStatus('current')
if mibBuilder.loadTexts: ciuVersionCompUpgradeBootrom.setDescription(" Specifies whether the bootrom will be upgraded. If 'true' the bootrom would be upgraded else it would not.")
ciuVersionCompUpgradeLoader = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1, 6), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuVersionCompUpgradeLoader.setStatus('current')
if mibBuilder.loadTexts: ciuVersionCompUpgradeLoader.setDescription(" Specifies whether the loader will be upgraded. If 'true' the loader would be upgraded else it would not.")
ciuVersionCompUpgradeImpact = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("nonDisruptive", 2), ("disruptive", 3), ("notApplicable", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuVersionCompUpgradeImpact.setStatus('current')
if mibBuilder.loadTexts: ciuVersionCompUpgradeImpact.setDescription(' Specifies the impact of the upgrade operation that would have on this module. other(1) : reasons other than defined here nonDisruptive(2): this module would be upgraded without disruption of traffic. disruptive(3) : this module would be upgraded with disruption of traffic. notApplicable(4): upgrade is not possible because image is not upgradable. ')
ciuVersionCompUpgradeReason = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1, 8), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuVersionCompUpgradeReason.setStatus('current')
if mibBuilder.loadTexts: ciuVersionCompUpgradeReason.setDescription("This object would give the reason for the following cases: 1)value of object ciuVersionCompUpgradable is 'false' then it would give the reason why the module is not upgradable. 2)the value of object ciuversionCompUpgradeAction is either 'switchOverReset' or 'reset' and value of object ciuVersionCompUpgradable is 'true'. 3)the value of object ciuVersionCompUpgradeImpact is 'disruptive' and value of objects, ciuVersionCompUpgradable is 'true' and ciuversionCompUpgradeAction is neither 'switchOverReset' nor 'reset. This object would have the reason in the above listed order. It would be a null string for all the other values of the above mentioned objects. ")
ciuUpgradeImageVersionTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 8), )
if mibBuilder.loadTexts: ciuUpgradeImageVersionTable.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeImageVersionTable.setDescription("A table showing the current version of images running on the modules and the images they would be upgraded with. The table would be emptied out once the value of ciuUpgradeOpCommand object is 'none'. This table becomes valid when value of ciuUpgradeOpStatus is 'success' in response to 'check' operation selected using ciuUpgradeOpCommand. ")
ciuUpgradeImageVersionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 8, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeImageVersionIndex"))
if mibBuilder.loadTexts: ciuUpgradeImageVersionEntry.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeImageVersionEntry.setDescription('An entry containing the current version of image running on a particular module and the images they would be upgraded with. An ciuUpgradeImageVersionVarName identifies the type of software running on this module, identified by entPhysicalIndex. It is possible that the same module, identified by entPhysicalIndex, can run multiple instances of the software type identified by ciuUpgradeImageVersionVarName. Each such module of the type PhysicalClass module(9), has an entry in entPhysicalTable in ENTITY-MIB, where that entry is identified by entPhysicalIndex. Only modules capable of running images, identified by ciuImageVariableName would have an entry in this table. ')
ciuUpgradeImageVersionIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 8, 1, 1), Unsigned32())
if mibBuilder.loadTexts: ciuUpgradeImageVersionIndex.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeImageVersionIndex.setDescription('This is an arbitrary integer which uniquely identifies different rows which have the same value of entPhysicalIndex.')
ciuUpgradeImageVersionVarName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 8, 1, 2), CiuImageVariableTypeName()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeImageVersionVarName.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeImageVersionVarName.setDescription('The type of image on this module. ')
ciuUpgradeImageVersionRunning = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 8, 1, 3), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeImageVersionRunning.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeImageVersionRunning.setDescription('An ASCII string specifying the running image version. ')
ciuUpgradeImageVersionNew = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 8, 1, 4), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeImageVersionNew.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeImageVersionNew.setDescription('An ASCII string specifying what the new image version would be after an upgrade. ')
ciuUpgradeImageVersionUpgReqd = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 8, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeImageVersionUpgReqd.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeImageVersionUpgReqd.setDescription(" Specifies whether an upgrade is required for this software component, identified by entPhysicalIndex and ciuUpgradeImageVersionVarName. If the value of objects ciuUpgradeImageVersionRunning and ciuUpgradeImageVersionNew are same then the value of this object would be 'false' else it would be 'true'. If 'true' then this software component, identified by ciuUpgradeImageVersionVarName needs to be upgraded else it would not.")
ciuUpgradeOpStatusTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9), )
if mibBuilder.loadTexts: ciuUpgradeOpStatusTable.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpStatusTable.setDescription("A table showing the result of the upgrade operation selected from ciuUpgradeOpCommand in ciuUpgradeOpTable. The table would be emptied out once the value of ciuUpgradeOpCommand object is 'none'. ")
ciuUpgradeOpStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1), ).setIndexNames((0, "CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusOperIndex"))
if mibBuilder.loadTexts: ciuUpgradeOpStatusEntry.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpStatusEntry.setDescription('An entry containing the status of the upgrade operation. ')
ciuUpgradeOpStatusOperIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1, 1), Unsigned32())
if mibBuilder.loadTexts: ciuUpgradeOpStatusOperIndex.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpStatusOperIndex.setDescription('This is an arbitrary integer which identifies uniquely an entry in this table. ')
ciuUpgradeOpStatusOperation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("copy", 3), ("verify", 4), ("versionExtraction", 5), ("imageSync", 6), ("configSync", 7), ("preUpgrade", 8), ("forceDownload", 9), ("moduleOnline", 10), ("hitlessLCUpgrade", 11), ("hitfulLCUpgrade", 12), ("unusedBootvar", 13), ("convertStartUp", 14), ("looseIncompatibility", 15), ("haSeqNumMismatch", 16), ("unknownModuleOnline", 17), ("recommendedAction", 18), ("recoveryAction", 19), ("remainingAction", 20), ("additionalInfo", 21), ("settingBootvars", 22), ("informLcmFsUpg", 23), ("sysmgrSaveRuntimeStateAndSuccessReset", 24), ("kexecLoadUpgImages", 25), ("fsUpgCleanup", 26), ("saveMtsState", 27), ("fsUpgBegin", 28), ("lcWarmBootStatus", 29), ("waitStateVerificationStatus", 30), ("informLcmFsUpgExternalLc", 31), ("externalLcWarmBootStatus", 32), ("total", 33), ("compactFlashTcamSanity", 34), ("systemPreupgradeBegin", 35)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeOpStatusOperation.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpStatusOperation.setDescription("Specifies the operation that is currently in progress or completed in response to the ciuUpgradeOpCommand. 'unknown' - operation status unknown. 'other' - operation status other than defined here. 'copy' - the image is being copied from ciuUpgradeOpStatusSrcImageLoc to ciuUpgradeOpStatusDestImageLoc. 'verify' - copied images are being verified for checksum and input consistency. 'versionExtraction' - extracting the version info from image. 'imageSync' - Syncing image to the standby supervisor, if standby supervisor exists. 'configSync' - saving running configuration to startup configuration and syncing it to standby supervisor, if it exists. 'preUpgrade' - Upgrading Bios/loader/bootrom 'forceDownload' - This module is being force downloaded. 'moduleOnline' - waiting for this module to come online 'hitlessLCUpgrade' - Upgrading hitless 'hitfulLCUpgrade' - Upgrading hitful 'unusedBootvar' - The image variable name type supplied as input for upgrade operation is unused. 'convertStartUp' - converting the startup config. 'looseIncompatibility' - incomplete support for current running config in the new image. 'haSeqNumMismatch' - High availability sequence number mismatch, so the module will be power cycled. 'unknownModuleOnline' - this module was powered down before switchover and has now come online. 'recommendedAction' - Specifies the recommended action if upgrading operation fails. If this object value is 'recommendedAction' then the object 'ciuUpgradeOpStatusSrcImageLoc' would contain the string specifying the recommended action. 'recoveryAction' - Specifies that installer is doing a recovery because of install failure. If this object value is 'recoveryAction' then the object 'ciuUpgradeOpStatusSrcImageLoc' would contain the string specifying the recovery action. 'remainingAction' - Specifies the remaining actions that have not been performed due to install failure. If this object value is 'remainingAction' then the object 'ciuUpgradeOpStatusSrcImageLoc' would contain the information about the remaining actions. 'additionalInfo' - Specifies the additional info the installer conveys to the user. If this object value is 'additionalInfo' then the object 'ciuUpgradeOpStatusSrcImageLoc' would contain the information. 'settingBootvars' - setting the boot variables. 'informLcmFsUpg' - save linecard runtime state. 'sysmgrSaveRuntimeStateAndSuccessReset' - save supervisor runtime state and terminate all services. 'kexecLoadUpgImages' - load upgrade images into memory. 'fsUpgCleanup' - cleanup file system for upgrade. 'saveMtsState' - saving persistent transaction messages. 'fsUpgBegin' - notify services that upgrade is about to begin. 'lcWarmBootStatus' - linecard upgrade status. 'waitStateVerificationStatus' - supervisor state verification with the new image. 'informLcmFsUpgExternalLc' - save external linecard runtime state. 'externalLcWarmBootStatus' - external linecard upgrade status. 'total' - total. 'compactFlashTcamSanity' - compact flash and TCAM sanity test. 'systemPreupgradeBegin' - notify services of beginning of upgrade. ")
ciuUpgradeOpStatusModule = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1, 3), EntPhysicalIndexOrZero()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeOpStatusModule.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpStatusModule.setDescription('The physical entity of the module for which this status is being shown. For example such an entity is one of the type PhysicalClass module(9). This object must contain the same value as the entPhysicalIndex of the physical entity from entPhysicalTable in ENTITY-MIB. ')
ciuUpgradeOpStatusSrcImageLoc = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1, 4), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeOpStatusSrcImageLoc.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpStatusSrcImageLoc.setDescription("An ASCII string specifying the source image location. For example the string could be 'bootflash:file1'. This object is only valid if the value of ciuUpgradeOpStatusOperation is 'copy'.")
ciuUpgradeOpStatusDestImageLoc = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1, 5), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeOpStatusDestImageLoc.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpStatusDestImageLoc.setDescription("An ASCII string specifying the destination image location. For example the string could be 'bootflash:file1'.")
ciuUpgradeOpStatusJobStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("failed", 3), ("inProgress", 4), ("success", 5), ("planned", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeOpStatusJobStatus.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpStatusJobStatus.setDescription("The status of this operation. 'unknown' - operation status unknown. 'other' - operation status other than defined here. 'failed' - this operation has failed 'inProgress' - this operation is active 'success' - this operation has completed successfully. 'planned' - this operation would be executed at later point of time.")
ciuUpgradeOpStatusPercentCompl = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeOpStatusPercentCompl.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpStatusPercentCompl.setDescription('The percentage completion of the upgrade operation selected from ciuUpgradeOpTable. If this object is invalid for a particular operation, identified by ciuUpgradeOpStatusOperation, then the value of this object would be -1. ')
ciuUpgradeOpStatusJobStatusReas = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1, 8), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeOpStatusJobStatusReas.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpStatusJobStatusReas.setDescription("Specifies the description of the cause of 'failed' state of the object 'ciuUpgradeOpStatusJobStatus'. This object would be a null string if value of 'ciuUpgradeOpStatusJobStatus' is anything other than 'failed'.")
ciuUpgradeMiscAutoCopy = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 10, 1), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ciuUpgradeMiscAutoCopy.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeMiscAutoCopy.setDescription("Specifies whether or not the images on the active supervisor will be copied to the standby supervisor, if the standby supervisor exists. If the standby supervisor does not exist, the setting of this object to 'true' will not have any effect and no image copy will be done. ciuImageURITable lists all the images for the supervisor cards as well as the line cards. If this object is set to 'true', all the images pointed to by the instances of ciuImageURI will be automatically copied to the standby supervisor. For example, assume that the ciuImageURITable looks like below - entPhysicalIndex ciuImageVariableName ciuImageURI 25 'system' bootflash://image.bin 25 'kickstart' slot0://boot.bin 26 'ilce' bootflash://linecard.bin So, if the ciuUpgradeMiscAutoCopy is 'true', then bootflash://image.bin from the active supervisor will be copied to the bootflash://image.bin on the standby supervisor; slot0://boot.bin will be copied to the slot0://boot.bin on the standby supervisor etc. If this object is set to 'false' then this copying of the images will not be done.")
ciuUpgradeMiscInfoTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 11), )
if mibBuilder.loadTexts: ciuUpgradeMiscInfoTable.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeMiscInfoTable.setDescription("A table showing additional information such as warnings during upgrade. The table would be emptied out once the value of ciuUpgradeOpCommand object is 'none'. ")
ciuUpgradeMiscInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 11, 1), ).setIndexNames((0, "CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeMiscInfoIndex"))
if mibBuilder.loadTexts: ciuUpgradeMiscInfoEntry.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeMiscInfoEntry.setDescription('An entry containing additional information of upgrade operation being performed on modules. Each entry is uniquely identified by ciuUpgradeMiscInfoIndex. If the info given in object ciuUpgradeMiscInfoDescr is not for any module then the value of ciuUpgradeMiscInfoModule would be 0.')
ciuUpgradeMiscInfoIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 11, 1, 1), Unsigned32())
if mibBuilder.loadTexts: ciuUpgradeMiscInfoIndex.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeMiscInfoIndex.setDescription('This is an arbitrary integer which identifies uniquely an entry in this table. ')
ciuUpgradeMiscInfoModule = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 11, 1, 2), EntPhysicalIndexOrZero()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeMiscInfoModule.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeMiscInfoModule.setDescription('The entPhysicalIndex of the module. The value of this object would be 0 if the information shown in ciuUpgradeMiscInfoDescr is not for any module.')
ciuUpgradeMiscInfoDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 11, 1, 3), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ciuUpgradeMiscInfoDescr.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeMiscInfoDescr.setDescription('Specifies the miscelleneous information of the upgrade operation.')
ciuUpgradeOpCompletionNotify = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 360, 0, 1)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpCommand"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatus"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpTimeCompleted"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpLastCommand"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpLastStatus"))
if mibBuilder.loadTexts: ciuUpgradeOpCompletionNotify.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpCompletionNotify.setDescription('A ciuUpgradeOpCompletionNotify is sent at the completion of upgrade operation denoted by ciuUpgradeOpCommand object if such a notification was requested when the operation was initiated. ciuUpgradeOpCommand indicates the type of operation. ciuUpgradeOpStatus indicates the result of the operation. ciuUpgradeOpTimeCompleted indicates the time when the operation is completed. ciuUpgradeopLastCommand indicates the previous operation that was executed. ciuUpgradeOpLastStatus indicates the result of previous operation.')
ciuUpgradeJobStatusNotify = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 360, 0, 2)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusOperation"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusModule"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusSrcImageLoc"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusDestImageLoc"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusJobStatus"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusPercentCompl"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusJobStatusReas"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatus"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusReason"))
if mibBuilder.loadTexts: ciuUpgradeJobStatusNotify.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeJobStatusNotify.setDescription('A ciuUpgradeJobStatusNotify is sent when there is status change in the upgrade process. ciuUpgradeOpStatusOperation indicates the operation to change the upgrade status. ciuUpgradeOpStatusModule indicates which module is affected. ciuUpgradeOpStatusSrcImageLoc indicates location of source image if applicable. ciuUpgradeOpStatusDestImageLoc indicates location of destination image if applicable. ciuUpgradeOpStatusJobStatus indicates the result of this operation to change the status. ciuUpgradeOpStatusPercentCompl indicates percentage of the operation that has been completed. ciuUpgradeOpStatusJobStatusReas gives explanation of the faiure if there is a failure. ciuUpgradeOpStatus indicates the result of the operation at higher level. ciuUpgradeOpStatusReason gives detailed explanation if ciuUpgradeOpStatus is not successful.')
ciuImageUpgradeCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 1))
ciuImageUpgradeGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2))
ciuImageUpgradeCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 1, 1)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuImageUpgradeGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuImageVariableGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuImageURIGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuImageLocInputGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuVersionCompChkGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeImageVersionGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeNotificationGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuImageUpgradeCompliance = ciuImageUpgradeCompliance.setStatus('deprecated')
if mibBuilder.loadTexts: ciuImageUpgradeCompliance.setDescription("Compliance statement for Image Upgrade MIB. For the (mandatory) ciuImageLocInputGroup, it is compliant to allow only a limited number of entries to be created and concurrently 'active' in the ciuImageLocInputTable table. ")
ciuImageUpgradeComplianceRev1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 1, 2)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuImageUpgradeGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuImageVariableGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuImageURIGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuImageLocInputGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuVersionCompChkGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeImageVersionGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeNotificationGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeMiscGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuImageUpgradeComplianceRev1 = ciuImageUpgradeComplianceRev1.setStatus('deprecated')
if mibBuilder.loadTexts: ciuImageUpgradeComplianceRev1.setDescription("Compliance statement for Image Upgrade MIB. For the (mandatory) ciuImageLocInputGroup, it is compliant to allow only a limited number of entries to be created and concurrently 'active' in the ciuImageLocInputTable table. ")
ciuImageUpgradeComplianceRev2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 1, 3)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuImageUpgradeGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuImageVariableGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuImageURIGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuImageLocInputGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuVersionCompChkGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeImageVersionGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeNotificationGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeMiscGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeMiscInfoGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuImageUpgradeComplianceRev2 = ciuImageUpgradeComplianceRev2.setStatus('deprecated')
if mibBuilder.loadTexts: ciuImageUpgradeComplianceRev2.setDescription("Compliance statement for Image Upgrade MIB. For the (mandatory) ciuImageLocInputGroup, it is compliant to allow only a limited number of entries to be created and concurrently 'active' in the ciuImageLocInputTable table.")
ciuImageUpgradeComplianceRev3 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 1, 4)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuImageUpgradeGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuImageVariableGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuImageURIGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuImageLocInputGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuVersionCompChkGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeImageVersionGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeNotificationGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeNotificationGroupSup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeMiscGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeMiscInfoGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuImageUpgradeComplianceRev3 = ciuImageUpgradeComplianceRev3.setStatus('deprecated')
if mibBuilder.loadTexts: ciuImageUpgradeComplianceRev3.setDescription("Compliance statement for Image Upgrade MIB. For the (mandatory) ciuImageLocInputGroup, it is compliant to allow only a limited number of entries to be created and concurrently 'active' in the ciuImageLocInputTable table.")
ciuImageUpgradeComplianceRev4 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 1, 5)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuImageUpgradeGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuImageVariableGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuImageURIGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuImageLocInputGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuVersionCompChkGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeImageVersionGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeNotificationGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeNotificationGroupSup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeMiscGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeMiscInfoGroup"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpNewGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuImageUpgradeComplianceRev4 = ciuImageUpgradeComplianceRev4.setStatus('current')
if mibBuilder.loadTexts: ciuImageUpgradeComplianceRev4.setDescription("Compliance statement for Image Upgrade MIB. For the (mandatory) ciuImageLocInputGroup, it is compliant to allow only a limited number of entries to be created and concurrently 'active' in the ciuImageLocInputTable table.")
ciuImageUpgradeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 1)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuTotalImageVariables"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuImageUpgradeGroup = ciuImageUpgradeGroup.setStatus('current')
if mibBuilder.loadTexts: ciuImageUpgradeGroup.setDescription('A collection of objects providing information about Image upgrade. ')
ciuImageVariableGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 2)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuImageVariableName"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuImageVariableGroup = ciuImageVariableGroup.setStatus('current')
if mibBuilder.loadTexts: ciuImageVariableGroup.setDescription('A group containing an object providing information about the type of the system images.')
ciuImageURIGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 3)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuImageURI"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuImageURIGroup = ciuImageURIGroup.setStatus('current')
if mibBuilder.loadTexts: ciuImageURIGroup.setDescription('A group containing an object providing information about the name of system variable or parameter.')
ciuUpgradeOpGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 4)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpCommand"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatus"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpNotifyOnCompletion"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpTimeStarted"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpTimeCompleted"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpAbort"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusReason"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuUpgradeOpGroup = ciuUpgradeOpGroup.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpGroup.setDescription('A collection of objects for Upgrade operation.')
ciuUpgradeTargetGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 5)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeTargetAction"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeTargetEntryStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuUpgradeTargetGroup = ciuUpgradeTargetGroup.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeTargetGroup.setDescription('A collection of objects giving the modules and the type of image to be upgraded.')
ciuImageLocInputGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 6)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuImageLocInputURI"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuImageLocInputEntryStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuImageLocInputGroup = ciuImageLocInputGroup.setStatus('current')
if mibBuilder.loadTexts: ciuImageLocInputGroup.setDescription('A collection of objects giving the location of the images to be upgraded.')
ciuVersionCompChkGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 7)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuVersionCompImageSame"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuVersionCompUpgradable"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuVersionCompUpgradeAction"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuVersionCompUpgradeBios"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuVersionCompUpgradeBootrom"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuVersionCompUpgradeLoader"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuVersionCompUpgradeImpact"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuVersionCompUpgradeReason"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuVersionCompChkGroup = ciuVersionCompChkGroup.setStatus('current')
if mibBuilder.loadTexts: ciuVersionCompChkGroup.setDescription('A collection of objects showing the results of the version compatibility check done.')
ciuUpgradeImageVersionGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 8)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeImageVersionVarName"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeImageVersionRunning"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeImageVersionNew"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeImageVersionUpgReqd"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuUpgradeImageVersionGroup = ciuUpgradeImageVersionGroup.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeImageVersionGroup.setDescription('A collection of objects showing the current running images and the images to be upgraded with.')
ciuUpgradeOpStatusGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 9)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusOperation"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusModule"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusSrcImageLoc"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusDestImageLoc"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusJobStatus"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusPercentCompl"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpStatusJobStatusReas"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuUpgradeOpStatusGroup = ciuUpgradeOpStatusGroup.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpStatusGroup.setDescription('A collection of objects showing the status of the upgrade operation.')
ciuUpgradeNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 10)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpCompletionNotify"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuUpgradeNotificationGroup = ciuUpgradeNotificationGroup.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeNotificationGroup.setDescription('A collection of notifications for upgrade operations. ')
ciuUpgradeMiscGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 11)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeMiscAutoCopy"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuUpgradeMiscGroup = ciuUpgradeMiscGroup.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeMiscGroup.setDescription('A collection of objects for Miscelleneous operation.')
ciuUpgradeMiscInfoGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 12)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeMiscInfoModule"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeMiscInfoDescr"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuUpgradeMiscInfoGroup = ciuUpgradeMiscInfoGroup.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeMiscInfoGroup.setDescription('A collection of objects for Miscelleneous info for upgrade operation.')
ciuUpgradeNotificationGroupSup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 13)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeJobStatusNotify"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuUpgradeNotificationGroupSup = ciuUpgradeNotificationGroupSup.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeNotificationGroupSup.setDescription('A collection of notifications for upgrade operations. ')
ciuUpgradeOpNewGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 14)).setObjects(("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeJobStatusNotifyOnCompletion"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpLastCommand"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpLastStatus"), ("CISCO-IMAGE-UPGRADE-MIB", "ciuUpgradeOpLastStatusReason"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciuUpgradeOpNewGroup = ciuUpgradeOpNewGroup.setStatus('current')
if mibBuilder.loadTexts: ciuUpgradeOpNewGroup.setDescription('A collection of objects for Upgrade operation.')
mibBuilder.exportSymbols("CISCO-IMAGE-UPGRADE-MIB", ciuUpgradeImageVersionUpgReqd=ciuUpgradeImageVersionUpgReqd, ciuUpgradeOpAbort=ciuUpgradeOpAbort, ciuImageLocInputURI=ciuImageLocInputURI, ciuUpgradeOpGroup=ciuUpgradeOpGroup, ciuUpgradeOpStatusReason=ciuUpgradeOpStatusReason, ciuVersionCompUpgradeReason=ciuVersionCompUpgradeReason, ciuTotalImageVariables=ciuTotalImageVariables, ciuUpgradeJobStatusNotify=ciuUpgradeJobStatusNotify, ciuUpgradeImageVersionTable=ciuUpgradeImageVersionTable, ciuUpgradeTargetAction=ciuUpgradeTargetAction, ciuUpgradeOpStatusOperation=ciuUpgradeOpStatusOperation, ciuImageVariableName=ciuImageVariableName, ciuUpgradeImageVersionIndex=ciuUpgradeImageVersionIndex, ciuUpgradeOpStatusModule=ciuUpgradeOpStatusModule, ciuVersionCompChkGroup=ciuVersionCompChkGroup, ciuVersionCompUpgradeImpact=ciuVersionCompUpgradeImpact, ciuUpgradeMiscGroup=ciuUpgradeMiscGroup, ciuUpgradeOpStatusOperIndex=ciuUpgradeOpStatusOperIndex, ciuImageUpgradeGroup=ciuImageUpgradeGroup, ciuImageLocInputEntryStatus=ciuImageLocInputEntryStatus, ciuUpgradeOpStatus=ciuUpgradeOpStatus, ciuImageURIGroup=ciuImageURIGroup, ciuUpgradeMiscInfoTable=ciuUpgradeMiscInfoTable, ciuUpgradeTargetEntry=ciuUpgradeTargetEntry, ciscoImageUpgradeMIB=ciscoImageUpgradeMIB, ciuImageVariableTable=ciuImageVariableTable, ciuUpgradeOpStatusJobStatusReas=ciuUpgradeOpStatusJobStatusReas, ciuUpgradeOpLastCommand=ciuUpgradeOpLastCommand, ciuVersionCompUpgradeBios=ciuVersionCompUpgradeBios, ciuImageUpgradeComplianceRev3=ciuImageUpgradeComplianceRev3, ciuVersionCompUpgradeLoader=ciuVersionCompUpgradeLoader, ciuUpgradeTargetTable=ciuUpgradeTargetTable, ciuUpgradeOpCompletionNotify=ciuUpgradeOpCompletionNotify, ciscoImageUpgradeMIBObjects=ciscoImageUpgradeMIBObjects, ciuVersionCompChkTable=ciuVersionCompChkTable, ciuUpgradeOpStatusTable=ciuUpgradeOpStatusTable, ciuImageURI=ciuImageURI, ciuUpgradeOpStatusSrcImageLoc=ciuUpgradeOpStatusSrcImageLoc, ciuImageLocInputEntry=ciuImageLocInputEntry, ciuUpgradeImageVersionGroup=ciuUpgradeImageVersionGroup, ciuVersionCompImageSame=ciuVersionCompImageSame, ciuUpgradeMiscInfoGroup=ciuUpgradeMiscInfoGroup, ciuUpgradeOpLastStatusReason=ciuUpgradeOpLastStatusReason, ciuUpgradeMiscInfoIndex=ciuUpgradeMiscInfoIndex, ciuUpgradeMiscInfoEntry=ciuUpgradeMiscInfoEntry, ciuUpgradeImageVersionRunning=ciuUpgradeImageVersionRunning, ciuImageVariableEntry=ciuImageVariableEntry, CiuImageVariableTypeName=CiuImageVariableTypeName, ciscoImageUpgradeMisc=ciscoImageUpgradeMisc, ciscoImageUpgradeConfig=ciscoImageUpgradeConfig, ciuImageUpgradeCompliances=ciuImageUpgradeCompliances, ciuUpgradeOpStatusDestImageLoc=ciuUpgradeOpStatusDestImageLoc, ciuImageLocInputGroup=ciuImageLocInputGroup, ciuUpgradeOpTimeCompleted=ciuUpgradeOpTimeCompleted, ciuUpgradeMiscInfoModule=ciuUpgradeMiscInfoModule, ciuUpgradeTargetGroup=ciuUpgradeTargetGroup, ciuImageVariableGroup=ciuImageVariableGroup, ciuImageURITable=ciuImageURITable, ciscoImageUpgradeMIBNotifs=ciscoImageUpgradeMIBNotifs, ciuVersionCompUpgradeAction=ciuVersionCompUpgradeAction, ciuUpgradeMiscAutoCopy=ciuUpgradeMiscAutoCopy, ciuUpgradeOpNotifyOnCompletion=ciuUpgradeOpNotifyOnCompletion, ciuUpgradeImageVersionNew=ciuUpgradeImageVersionNew, ciuUpgradeOpCommand=ciuUpgradeOpCommand, ciuImageUpgradeGroups=ciuImageUpgradeGroups, ciuVersionCompUpgradeBootrom=ciuVersionCompUpgradeBootrom, ciuUpgradeOpStatusPercentCompl=ciuUpgradeOpStatusPercentCompl, ciuUpgradeNotificationGroupSup=ciuUpgradeNotificationGroupSup, ciuUpgradeOpStatusJobStatus=ciuUpgradeOpStatusJobStatus, ciuUpgradeJobStatusNotifyOnCompletion=ciuUpgradeJobStatusNotifyOnCompletion, ciuUpgradeOpNewGroup=ciuUpgradeOpNewGroup, ciuUpgradeImageVersionEntry=ciuUpgradeImageVersionEntry, ciuUpgradeOpTimeStarted=ciuUpgradeOpTimeStarted, ciuUpgradeTargetEntryStatus=ciuUpgradeTargetEntryStatus, ciuImageUpgradeComplianceRev4=ciuImageUpgradeComplianceRev4, ciuUpgradeOpStatusGroup=ciuUpgradeOpStatusGroup, ciuImageURIEntry=ciuImageURIEntry, ciuUpgradeOpLastStatus=ciuUpgradeOpLastStatus, ciuVersionCompUpgradable=ciuVersionCompUpgradable, ciuVersionCompChkEntry=ciuVersionCompChkEntry, ciuUpgradeMiscInfoDescr=ciuUpgradeMiscInfoDescr, ciuImageLocInputTable=ciuImageLocInputTable, ciuUpgradeImageVersionVarName=ciuUpgradeImageVersionVarName, ciuImageUpgradeCompliance=ciuImageUpgradeCompliance, ciuUpgradeNotificationGroup=ciuUpgradeNotificationGroup, ciscoImageUpgradeMIBConform=ciscoImageUpgradeMIBConform, ciuImageUpgradeComplianceRev2=ciuImageUpgradeComplianceRev2, ciuUpgradeOpStatusEntry=ciuUpgradeOpStatusEntry, PYSNMP_MODULE_ID=ciscoImageUpgradeMIB, ciuImageUpgradeComplianceRev1=ciuImageUpgradeComplianceRev1, ciscoImageUpgradeOp=ciscoImageUpgradeOp)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, constraints_intersection, value_size_constraint, single_value_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion')
(cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt')
(ent_physical_index_or_zero,) = mibBuilder.importSymbols('CISCO-TC', 'EntPhysicalIndexOrZero')
(ent_physical_index,) = mibBuilder.importSymbols('ENTITY-MIB', 'entPhysicalIndex')
(snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString')
(module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup')
(mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, unsigned32, integer32, iso, counter64, module_identity, object_identity, gauge32, ip_address, mib_identifier, counter32, bits, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'Unsigned32', 'Integer32', 'iso', 'Counter64', 'ModuleIdentity', 'ObjectIdentity', 'Gauge32', 'IpAddress', 'MibIdentifier', 'Counter32', 'Bits', 'NotificationType')
(row_status, display_string, time_stamp, textual_convention, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'DisplayString', 'TimeStamp', 'TextualConvention', 'TruthValue')
cisco_image_upgrade_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 360))
ciscoImageUpgradeMIB.setRevisions(('2011-03-28 00:00', '2008-03-18 00:00', '2007-07-18 00:00', '2006-12-21 00:00', '2004-01-20 00:00', '2003-11-04 00:00', '2003-10-28 00:00', '2003-07-11 00:00', '2003-07-08 00:00', '2003-06-01 00:00'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
ciscoImageUpgradeMIB.setRevisionsDescriptions(("Added new group ciuUpgradeOpNewGroup. Added new enum 'systemPreupgradeBegin' to ciuUpgradeOpStatusOperation. Added ciuUpgradeOpLastCommand and ciuUpgradeOpLastStatus to the varbind list of ciuUpgradeOpCompletionNotify. Added new compliance ciuImageUpgradeComplianceRev4 and deprecated ciuImageUpgradeComplianceRev3. Added ciuUpgradeJobStatusNotifyOnCompletion.", "Added new enum 'compactFlashTcamSanity' to ciuUpgradeOpStatusOperation.", 'Added new enums to ciuUpgradeOpStatusOperation.', 'Added new enums to ciuUpgradeOpStatus and ciuUpgradeOpStatusOperation. Added new trap ciuUpgradeJobStatusNotify. Changed type for ciuUpgradeOpStatusModule to EntPhysicalIndexOrZero. Added ciuUpgradeNotificationGroupSup group, deprecated ciuImageUpgradeComplianceRev2 and added ciuImageUpgradeComplianceRev3 ', "Added new enums to ciuUpgradeOpStatus and ciuUpgradeOpStatusOperation. Corrected description for 'configSync' enum defined in ciuUpgradeOpStatusOperation object. ", 'Updated compliance statement. Removed ciuImageLocInputGroup from conditionally mandatory.', 'Added ciuUpgradeMiscInfoTable. Added more enums to ciuUpgradeOpStatusOperation. Added ciuUpgradeMiscInfoGroup, deprecated ciuImageUpgradeComplianceRev1 and added ciuImageUpgradeComplianceRev2.', 'Changed: ciuImageLocInputURI identifier from 2 to 1, ciuImageLocInputEntryStatus identifier from 3 to 2 and ciuImageVariableName from 2 to 1. Added recommendedAction to ciuUpgradeOpStatusOperation.', 'Added ciscoImageUpgradeMisc, added ciuUpgradeMiscAutoCopy under the group ciscoImageUpgradeMisc. Added ciuUpgradeMiscGroup, deprecated ciuImageUpgradeCompliance and added ciuImageUpgradeComplianceReve1.', 'Initial version of this MIB module.'))
if mibBuilder.loadTexts:
ciscoImageUpgradeMIB.setLastUpdated('201103280000Z')
if mibBuilder.loadTexts:
ciscoImageUpgradeMIB.setOrganization('Cisco Systems Inc.')
if mibBuilder.loadTexts:
ciscoImageUpgradeMIB.setContactInfo(' Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553 -NETS E-mail: [email protected]')
if mibBuilder.loadTexts:
ciscoImageUpgradeMIB.setDescription("This mib provides, objects to upgrade images on modules in the system, objects showing the status of the upgrade operation, and objects showing the type of images that could be run in the system. For example the modules could be Controller card, Line card .. etc. The system fills up the ciuImageVariableTable with the type of images the system can support. For performing an upgrade operation a management application must first read this table and use this info in other tables, as explained below. The ciuImageURITable table is also filled by the system and provides the image name presently running for each type of image in the system. The user is allowed to configure a new image name for each image type as listed in ciuImageVariableTable. The system would use this image on the particular module on the next reboot. The management application on deciding to do an upgrade operation must first check if an upgrade operation is already in progress in the system. This is done by reading the ciuUpgradeOpCommand and if it contains 'none', signifies that no other upgrade operation is in progress. Any other value, signifies that upgrade is in progress and a new upgrade operation is not allowed. To start an 'install' operation, first the user must perform a 'check' operation to do the version compatibility for the given set of image files (provided using the ciuImageLocInputTable) against the current system configuration. Only if the result of this operation is 'success' can the user proceed to do an install operation. The tables, ciuVersionCompChkTable, ciuUpgradeImageVersionTable, ciuUpgradeOpStatusTable, provide the result of the 'check' or 'install' operation performed using ciuUpgradeOpCommand. These tables are in addition to objects ciuUpgradeOpStatus, ciuUpgradeOpTimeStarted, ciuUpgradeOpTimeCompleted, ciuUpgradeOpStatusReason. The ciuUpgradeOpStatus object provides the status of the selected upgrade operation. An option is available for user to upgrade only some modules, provided using ciuUpgradeTargetTable. If this table is empty than an upgrade operation would be performed on all the modules in the system.")
cisco_image_upgrade_mib_notifs = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 360, 0))
cisco_image_upgrade_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 360, 1))
cisco_image_upgrade_mib_conform = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 360, 2))
cisco_image_upgrade_config = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1))
cisco_image_upgrade_op = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4))
cisco_image_upgrade_misc = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 10))
class Ciuimagevariabletypename(TextualConvention, OctetString):
description = "The type of image that the system can run. e.g. Let us say that the device has 3 image variables names - 'system', 'kickstart' and 'ilce'. This TC would, then be as follows: system kickstart ilce. "
status = 'current'
subtype_spec = OctetString.subtypeSpec + value_size_constraint(1, 32)
ciu_total_image_variables = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 1), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuTotalImageVariables.setStatus('current')
if mibBuilder.loadTexts:
ciuTotalImageVariables.setDescription('Total number of image variables supported in the device at this time.')
ciu_image_variable_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 2))
if mibBuilder.loadTexts:
ciuImageVariableTable.setStatus('current')
if mibBuilder.loadTexts:
ciuImageVariableTable.setDescription('A table listing the image variable types that exist in the device. ')
ciu_image_variable_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 2, 1)).setIndexNames((0, 'CISCO-IMAGE-UPGRADE-MIB', 'ciuImageVariableName'))
if mibBuilder.loadTexts:
ciuImageVariableEntry.setStatus('current')
if mibBuilder.loadTexts:
ciuImageVariableEntry.setDescription('A ciuImageVariableEntry entry. Each entry provides the image variable type existing in the device. ')
ciu_image_variable_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 2, 1, 1), ciu_image_variable_type_name()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuImageVariableName.setStatus('current')
if mibBuilder.loadTexts:
ciuImageVariableName.setDescription("The type of image that the system can run. The value of this object depends on the underlying agent. e.g. Let us say that the device has 3 image variables names - 'system', 'kickstart' and 'ilce'. This table , then will list these 3 strings as entries such as follows: ciuImageVariableName system kickstart ilce The user can assign images (using ciuImageURITable) to these variables and the system will use the assigned values to boot. ")
ciu_image_uri_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 3))
if mibBuilder.loadTexts:
ciuImageURITable.setStatus('current')
if mibBuilder.loadTexts:
ciuImageURITable.setDescription("A table listing the Universal Resource Identifier(URI) of images that are assigned to variables of the ciuImageVariableTable. In the example for ciuImageVariableTable, there are 3 image types. This table will list the names for those image types as follows - entPhysicalIndex ciuImageVariableName ciuImageURI 25 'system' m9200-ek9-mgz.1.0.bin 25 'kickstart' boot-1.0.bin 26 'ilce' linecard-1.0.bin In this example, the 'system' image name is 'm9200-ek9-mgz.1.0.bin', the 'ilce' image name is 'linecard-1.0.bin' and the 'kickstart' image name is 'boot-1.0.bin'. ")
ciu_image_uri_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 3, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-IMAGE-UPGRADE-MIB', 'ciuImageVariableName'))
if mibBuilder.loadTexts:
ciuImageURIEntry.setStatus('current')
if mibBuilder.loadTexts:
ciuImageURIEntry.setDescription('A ciuImageURITable entry. Each entry provides the Image URI corresponding to this image variable name, identified by ciuImageVariableName, on this module identified by entPhysicalIndex. Each such module of the type PhysicalClass module(9), has an entry in entPhysicalTable in ENTITY-MIB, where that entry is identified by entPhysicalIndex. Only modules capable of running images, identified by ciuImageVariableName would have an entry in this table. ')
ciu_image_uri = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 3, 1, 1), snmp_admin_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ciuImageURI.setStatus('current')
if mibBuilder.loadTexts:
ciuImageURI.setDescription('This object contains the string value of the image corresponding to ciuImageVariableName on this entity.')
ciu_upgrade_op_command = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('done', 2), ('install', 3), ('check', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ciuUpgradeOpCommand.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpCommand.setDescription("The command to be executed. Note that it is possible for a system to support only a subset of these commands. If a command is unsupported, it will complete immediatly with the 'invalidOperation' error being reported in the ciuUpgradeOpStatus object. The 'check' must be performed first before 'install' command can be executed. If 'install' is performed first the operation would fail. So 'install' will be allowed only if a read of this object returns 'check' and the value of object ciuUpgradeOpStatus is 'success'. Also 'check' will be allowed only if a read of this object returns 'none'. Command Remarks none if this object is read without performing any operation listed above, 'none' would be returned. Also 'none' would be returned for a read operation if a cleanup of the previous upgrade operation is completed either through the issue of 'done' command or the maximum timeout of 5 minutes is elapsed. Setting this object to 'none', agent would return a success without any upgrade operation being performed. done if this object returns any value other than 'none', then setting this to 'done' would do the required cleanup of previous upgrade operation and make the system ready for any new upgrade operation. This is needed because the system maintains the status of the previous upgrade operation for a maximum time of 5 minutes before it does the cleanup. During this period no new upgrade operation is allowed. install for all the physical entities listed in the ciuUpgradeTargetTable perform the required upgrade operation listed in that table. However the upgrade operation for a module would not be done if the current running image and the image to be upgraded given as an input through the ciuImageLocInputTable are the same. check check the version compatibility for the given set of image files against the current system configuration. ")
ciu_upgrade_op_status = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('none', 1), ('invalidOperation', 2), ('failure', 3), ('inProgress', 4), ('success', 5), ('abortInProgress', 6), ('abortSuccess', 7), ('abortFailed', 8), ('successReset', 9), ('fsUpgReset', 10))).clone('none')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeOpStatus.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpStatus.setDescription('The status of the specified operation. none(1) - no operation was performed. invalidOperation(2) - the selected operation is not supported. failure(3) - the selected operation has failed. inProgress(4) - specified operation is active. success(5) - specified operation has completed successfully. abortInProgress(6) - abort in progress. abortSuccess(7) - abort operation successful. abortFailed(8) - abort failed. successReset(9) - specified operation has completed successfully and the system will reset. fsUpgReset(10) - fabric switch upgrade reset.')
ciu_upgrade_op_notify_on_completion = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 3), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ciuUpgradeOpNotifyOnCompletion.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpNotifyOnCompletion.setDescription("Specifies whether or not a notification should be generated on the completion of an operation. If 'true', ciuUpgradeOpCompletionNotify will be generated, else if 'false' it would not be. 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. This object can only be modified alongwith ciuUpgradeOpCommand object.This object returns default value when ciuUpgradeOpCommand object contains 'none'. To SET this object a multivarbind set containing this object and ciuUpgradeOpCommand must be done in the same PDU for the operation to succeed.")
ciu_upgrade_op_time_started = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 4), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeOpTimeStarted.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpTimeStarted.setDescription("Specifies the time the upgrade operation was started. This object would return 0 if ciuUpgradeOpCommand contains 'none'.")
ciu_upgrade_op_time_completed = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 5), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeOpTimeCompleted.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpTimeCompleted.setDescription("Specifies the time the upgrade operation completed. This object would return 0 if ciuUpgradeOpCommand contains 'none'. ")
ciu_upgrade_op_abort = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 6), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ciuUpgradeOpAbort.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpAbort.setDescription("Provides the means to abort an operation. If this object is set to 'true' when an upgrade operation is in progress and the corresponding instance of ciuUpgradeOpCommand has the value 'install' or 'check', then the operation will be aborted. Setting this object to 'true' when ciuUpgradeOpCommand has a different value other than 'install' or 'check' will fail. If retrieved, this object always has the value 'false'. ")
ciu_upgrade_op_status_reason = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 7), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusReason.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusReason.setDescription("Specifies the description of the cause of 'failed' state of the object 'ciuUpgradeOpStatus'. This object would be a null string if value of 'ciuUpgradeOpStatus' is anything other than 'failure'.")
ciu_upgrade_op_last_command = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('done', 2), ('install', 3), ('check', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeOpLastCommand.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpLastCommand.setDescription("This object indicates previous OpCommand value. It will be updated after new OpCommand is set and delivered to upgrade process. 'none' if this object is read without performing any operation listed above, 'none' would be returned. Also 'none' would be returned for a read operation if a cleanup of the previous upgrade operation is completed either through the issue of 'done' command or the maximum timeout of 5 minutes is elapsed. Setting this object to 'none', agent would return a success without any upgrade operation being performed. 'done' if this object returns any value other than 'none', then setting this to 'done' would do the required cleanup of previous upgrade operation and make the system ready for any new upgrade operation. This is needed because the system maintains the status of the previous upgrade operation for a maximum time of 5 minutes before it does the cleanup. During this period no new upgrade operation is allowed. 'install' perform the required upgrade operation listed in ciuUpgradeTargetTable table. However the upgrade operation for a module would not be done if the current running image and the image to be upgraded given as an input through the ciuImageLocInputTable are the same. 'check' check the version compatibility for the given set of image files against the current system configuration.")
ciu_upgrade_op_last_status = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('none', 1), ('invalidOperation', 2), ('failure', 3), ('inProgress', 4), ('success', 5), ('abortInProgress', 6), ('abortSuccess', 7), ('abortFailed', 8), ('successReset', 9), ('fsUpgReset', 10)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeOpLastStatus.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpLastStatus.setDescription("This object indicates previous OpStatus value. It will be updated after new OpCommand is set and delivered to upgrade process. 'none' - no operation was performed. 'invalidOperation' - the selected operation is not supported. 'failure' - the selected operation has failed. 'inProgress' - specified operation is active. 'success' - specified operation has completed successfully. 'abortInProgress' - abort in progress. 'abortSuccess' - abort operation successful. 'abortFailed' - abort failed. 'successReset' - specified operation has completed successfully and the system will reset. 'fsUpgReset' - fabric switch upgrade reset.")
ciu_upgrade_op_last_status_reason = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 10), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeOpLastStatusReason.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpLastStatusReason.setDescription('This object indicates the previous OpStatusReason value. It will be updated after new OpCommand is set and delivered to upgrade process.')
ciu_upgrade_job_status_notify_on_completion = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 4, 11), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ciuUpgradeJobStatusNotifyOnCompletion.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeJobStatusNotifyOnCompletion.setDescription("This object specifies whether or not ciuUpgradeJobStatusCompletionNotify notification should be generated on the completion of an operation. If 'true', ciuUpgradeJobStatusCompletionNotify will be generated, else if 'false' it would not be.")
ciu_upgrade_target_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 5))
if mibBuilder.loadTexts:
ciuUpgradeTargetTable.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeTargetTable.setDescription('A table listing the modules and the type of upgrade operation to be performed on these modules. ')
ciu_upgrade_target_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 5, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'))
if mibBuilder.loadTexts:
ciuUpgradeTargetEntry.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeTargetEntry.setDescription("Each entry provides the module that needs to be upgraded and the type of operation that needs to be performed on this module. The upgrade operation, selected using the object 'ciuUpgradeOpCommand', would be performed on each and every module represented by an entry in this table. Each such module of the type PhysicalClass module(9), has an entry in entPhysicalTable in ENTITY-MIB, where that entry is identified by entPhysicalIndex. Only modules capable of running images, identified by ciuImageVariableName would have an entry in this table. This table cannot be modified when ciuUpgradeOpCommand object contains value other than 'none'. ")
ciu_upgrade_target_action = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 5, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('image', 1), ('bios', 2), ('loader', 3), ('bootrom', 4)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ciuUpgradeTargetAction.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeTargetAction.setDescription("The type of operation to be performed on this module. image - upgrade image. bios - upgrade bios. loader - upgrade loader.loader is the program that loads and starts the operating system bootrom - upgrade boot rom This object cannot be modified while the corresponding value of ciuUpgradeTargetEntryStatus is equal to 'active'. It is okay to support only a subset of the enums defined above. ")
ciu_upgrade_target_entry_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 5, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ciuUpgradeTargetEntryStatus.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeTargetEntryStatus.setDescription('The status of this table entry. A multivarbind set containing this object and ciuUpgradeTargetAction must be done in the same PDU for the operation to succeed. ')
ciu_image_loc_input_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 6))
if mibBuilder.loadTexts:
ciuImageLocInputTable.setStatus('current')
if mibBuilder.loadTexts:
ciuImageLocInputTable.setDescription('A table listing the URI of the images that need to be upgraded. ')
ciu_image_loc_input_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 6, 1)).setIndexNames((0, 'CISCO-IMAGE-UPGRADE-MIB', 'ciuImageVariableName'))
if mibBuilder.loadTexts:
ciuImageLocInputEntry.setStatus('current')
if mibBuilder.loadTexts:
ciuImageLocInputEntry.setDescription("Each entry provides the image location URI that need to be upgraded. This table cannot be modified if ciuUpgradeOpCommand object contains any value other than 'none' ")
ciu_image_loc_input_uri = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 6, 1, 1), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 255))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ciuImageLocInputURI.setStatus('current')
if mibBuilder.loadTexts:
ciuImageLocInputURI.setDescription("An ASCII string specifying the system image location. For example the string could be 'bootflash:file1'. This object cannot be modified while the corresponding value of ciuImageLocInputEntryStatus is equal to 'active'. ")
ciu_image_loc_input_entry_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 6, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ciuImageLocInputEntryStatus.setStatus('current')
if mibBuilder.loadTexts:
ciuImageLocInputEntryStatus.setDescription('The status of this table entry. ')
ciu_version_comp_chk_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7))
if mibBuilder.loadTexts:
ciuVersionCompChkTable.setStatus('current')
if mibBuilder.loadTexts:
ciuVersionCompChkTable.setDescription("A table showing the result of the version compatibility check operation performed in response to the option 'check' selected for ciuUpgradeOpCommand. The table would be emptied out once the value of ciuUpgradeOpCommand object is 'none'. ")
ciu_version_comp_chk_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'))
if mibBuilder.loadTexts:
ciuVersionCompChkEntry.setStatus('current')
if mibBuilder.loadTexts:
ciuVersionCompChkEntry.setDescription('An entry containing the results of the version compatibility check operation performed on each module, identified by entPhysicalIndex. Each such module of the type PhysicalClass module(9), has an entry in entPhysicalTable in ENTITY-MIB, where that entry is identified by entPhysicalIndex. Only modules capable of running images, identified by ciuImageVariableName would have an entry in this table. ')
ciu_version_comp_image_same = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1, 1), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuVersionCompImageSame.setStatus('current')
if mibBuilder.loadTexts:
ciuVersionCompImageSame.setDescription(' Specifies whether for this module the image provided by the user for upgrade is same as the current running image. ')
ciu_version_comp_upgradable = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1, 2), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuVersionCompUpgradable.setStatus('current')
if mibBuilder.loadTexts:
ciuVersionCompUpgradable.setDescription(" Specifies whether the set of images provided in ciuImageLocInputTable are compatible with each other as far as this module is concerned. If 'true' the set of images provided are compatible and can be run on this module else they are not compatible. This module would not come up if it is booted with a uncompatible set of image. ")
ciu_version_comp_upgrade_action = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('none', 1), ('other', 2), ('rollingUpgrade', 3), ('switchOverReset', 4), ('reset', 5), ('copy', 6), ('notApplicable', 7), ('plugin', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuVersionCompUpgradeAction.setStatus('current')
if mibBuilder.loadTexts:
ciuVersionCompUpgradeAction.setDescription(" Specifies the type of upgrade action that would be performed on this module if ciuUpgradeOpCommand were set to 'install' or to 'check'. none(1) : is no upgrade action. other(2) : actions other than defined here rollingUpgrade(3) : modules would be upgraded one at a time. switchOverReset(4): all the modules would be reset after a switchover happens at the same time. reset(5) : all the modules would be reset without or before a switchover. copy(6) : then image upgrade would not be done, but only bios/loader/bootrom would be updated and will take effect on next reload. notApplicable(7) : upgrade action is not possible because image is not upgradable. plugin(8) : upgrading plugin only instead of full image.")
ciu_version_comp_upgrade_bios = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1, 4), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuVersionCompUpgradeBios.setStatus('current')
if mibBuilder.loadTexts:
ciuVersionCompUpgradeBios.setDescription(" Specifies whether the BIOS will be upgraded. If 'true' the bios would be upgraded else it would not.")
ciu_version_comp_upgrade_bootrom = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1, 5), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuVersionCompUpgradeBootrom.setStatus('current')
if mibBuilder.loadTexts:
ciuVersionCompUpgradeBootrom.setDescription(" Specifies whether the bootrom will be upgraded. If 'true' the bootrom would be upgraded else it would not.")
ciu_version_comp_upgrade_loader = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1, 6), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuVersionCompUpgradeLoader.setStatus('current')
if mibBuilder.loadTexts:
ciuVersionCompUpgradeLoader.setDescription(" Specifies whether the loader will be upgraded. If 'true' the loader would be upgraded else it would not.")
ciu_version_comp_upgrade_impact = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('nonDisruptive', 2), ('disruptive', 3), ('notApplicable', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuVersionCompUpgradeImpact.setStatus('current')
if mibBuilder.loadTexts:
ciuVersionCompUpgradeImpact.setDescription(' Specifies the impact of the upgrade operation that would have on this module. other(1) : reasons other than defined here nonDisruptive(2): this module would be upgraded without disruption of traffic. disruptive(3) : this module would be upgraded with disruption of traffic. notApplicable(4): upgrade is not possible because image is not upgradable. ')
ciu_version_comp_upgrade_reason = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 7, 1, 8), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuVersionCompUpgradeReason.setStatus('current')
if mibBuilder.loadTexts:
ciuVersionCompUpgradeReason.setDescription("This object would give the reason for the following cases: 1)value of object ciuVersionCompUpgradable is 'false' then it would give the reason why the module is not upgradable. 2)the value of object ciuversionCompUpgradeAction is either 'switchOverReset' or 'reset' and value of object ciuVersionCompUpgradable is 'true'. 3)the value of object ciuVersionCompUpgradeImpact is 'disruptive' and value of objects, ciuVersionCompUpgradable is 'true' and ciuversionCompUpgradeAction is neither 'switchOverReset' nor 'reset. This object would have the reason in the above listed order. It would be a null string for all the other values of the above mentioned objects. ")
ciu_upgrade_image_version_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 8))
if mibBuilder.loadTexts:
ciuUpgradeImageVersionTable.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeImageVersionTable.setDescription("A table showing the current version of images running on the modules and the images they would be upgraded with. The table would be emptied out once the value of ciuUpgradeOpCommand object is 'none'. This table becomes valid when value of ciuUpgradeOpStatus is 'success' in response to 'check' operation selected using ciuUpgradeOpCommand. ")
ciu_upgrade_image_version_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 8, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeImageVersionIndex'))
if mibBuilder.loadTexts:
ciuUpgradeImageVersionEntry.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeImageVersionEntry.setDescription('An entry containing the current version of image running on a particular module and the images they would be upgraded with. An ciuUpgradeImageVersionVarName identifies the type of software running on this module, identified by entPhysicalIndex. It is possible that the same module, identified by entPhysicalIndex, can run multiple instances of the software type identified by ciuUpgradeImageVersionVarName. Each such module of the type PhysicalClass module(9), has an entry in entPhysicalTable in ENTITY-MIB, where that entry is identified by entPhysicalIndex. Only modules capable of running images, identified by ciuImageVariableName would have an entry in this table. ')
ciu_upgrade_image_version_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 8, 1, 1), unsigned32())
if mibBuilder.loadTexts:
ciuUpgradeImageVersionIndex.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeImageVersionIndex.setDescription('This is an arbitrary integer which uniquely identifies different rows which have the same value of entPhysicalIndex.')
ciu_upgrade_image_version_var_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 8, 1, 2), ciu_image_variable_type_name()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeImageVersionVarName.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeImageVersionVarName.setDescription('The type of image on this module. ')
ciu_upgrade_image_version_running = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 8, 1, 3), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeImageVersionRunning.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeImageVersionRunning.setDescription('An ASCII string specifying the running image version. ')
ciu_upgrade_image_version_new = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 8, 1, 4), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeImageVersionNew.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeImageVersionNew.setDescription('An ASCII string specifying what the new image version would be after an upgrade. ')
ciu_upgrade_image_version_upg_reqd = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 8, 1, 5), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeImageVersionUpgReqd.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeImageVersionUpgReqd.setDescription(" Specifies whether an upgrade is required for this software component, identified by entPhysicalIndex and ciuUpgradeImageVersionVarName. If the value of objects ciuUpgradeImageVersionRunning and ciuUpgradeImageVersionNew are same then the value of this object would be 'false' else it would be 'true'. If 'true' then this software component, identified by ciuUpgradeImageVersionVarName needs to be upgraded else it would not.")
ciu_upgrade_op_status_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9))
if mibBuilder.loadTexts:
ciuUpgradeOpStatusTable.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusTable.setDescription("A table showing the result of the upgrade operation selected from ciuUpgradeOpCommand in ciuUpgradeOpTable. The table would be emptied out once the value of ciuUpgradeOpCommand object is 'none'. ")
ciu_upgrade_op_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1)).setIndexNames((0, 'CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusOperIndex'))
if mibBuilder.loadTexts:
ciuUpgradeOpStatusEntry.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusEntry.setDescription('An entry containing the status of the upgrade operation. ')
ciu_upgrade_op_status_oper_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1, 1), unsigned32())
if mibBuilder.loadTexts:
ciuUpgradeOpStatusOperIndex.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusOperIndex.setDescription('This is an arbitrary integer which identifies uniquely an entry in this table. ')
ciu_upgrade_op_status_operation = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('copy', 3), ('verify', 4), ('versionExtraction', 5), ('imageSync', 6), ('configSync', 7), ('preUpgrade', 8), ('forceDownload', 9), ('moduleOnline', 10), ('hitlessLCUpgrade', 11), ('hitfulLCUpgrade', 12), ('unusedBootvar', 13), ('convertStartUp', 14), ('looseIncompatibility', 15), ('haSeqNumMismatch', 16), ('unknownModuleOnline', 17), ('recommendedAction', 18), ('recoveryAction', 19), ('remainingAction', 20), ('additionalInfo', 21), ('settingBootvars', 22), ('informLcmFsUpg', 23), ('sysmgrSaveRuntimeStateAndSuccessReset', 24), ('kexecLoadUpgImages', 25), ('fsUpgCleanup', 26), ('saveMtsState', 27), ('fsUpgBegin', 28), ('lcWarmBootStatus', 29), ('waitStateVerificationStatus', 30), ('informLcmFsUpgExternalLc', 31), ('externalLcWarmBootStatus', 32), ('total', 33), ('compactFlashTcamSanity', 34), ('systemPreupgradeBegin', 35)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusOperation.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusOperation.setDescription("Specifies the operation that is currently in progress or completed in response to the ciuUpgradeOpCommand. 'unknown' - operation status unknown. 'other' - operation status other than defined here. 'copy' - the image is being copied from ciuUpgradeOpStatusSrcImageLoc to ciuUpgradeOpStatusDestImageLoc. 'verify' - copied images are being verified for checksum and input consistency. 'versionExtraction' - extracting the version info from image. 'imageSync' - Syncing image to the standby supervisor, if standby supervisor exists. 'configSync' - saving running configuration to startup configuration and syncing it to standby supervisor, if it exists. 'preUpgrade' - Upgrading Bios/loader/bootrom 'forceDownload' - This module is being force downloaded. 'moduleOnline' - waiting for this module to come online 'hitlessLCUpgrade' - Upgrading hitless 'hitfulLCUpgrade' - Upgrading hitful 'unusedBootvar' - The image variable name type supplied as input for upgrade operation is unused. 'convertStartUp' - converting the startup config. 'looseIncompatibility' - incomplete support for current running config in the new image. 'haSeqNumMismatch' - High availability sequence number mismatch, so the module will be power cycled. 'unknownModuleOnline' - this module was powered down before switchover and has now come online. 'recommendedAction' - Specifies the recommended action if upgrading operation fails. If this object value is 'recommendedAction' then the object 'ciuUpgradeOpStatusSrcImageLoc' would contain the string specifying the recommended action. 'recoveryAction' - Specifies that installer is doing a recovery because of install failure. If this object value is 'recoveryAction' then the object 'ciuUpgradeOpStatusSrcImageLoc' would contain the string specifying the recovery action. 'remainingAction' - Specifies the remaining actions that have not been performed due to install failure. If this object value is 'remainingAction' then the object 'ciuUpgradeOpStatusSrcImageLoc' would contain the information about the remaining actions. 'additionalInfo' - Specifies the additional info the installer conveys to the user. If this object value is 'additionalInfo' then the object 'ciuUpgradeOpStatusSrcImageLoc' would contain the information. 'settingBootvars' - setting the boot variables. 'informLcmFsUpg' - save linecard runtime state. 'sysmgrSaveRuntimeStateAndSuccessReset' - save supervisor runtime state and terminate all services. 'kexecLoadUpgImages' - load upgrade images into memory. 'fsUpgCleanup' - cleanup file system for upgrade. 'saveMtsState' - saving persistent transaction messages. 'fsUpgBegin' - notify services that upgrade is about to begin. 'lcWarmBootStatus' - linecard upgrade status. 'waitStateVerificationStatus' - supervisor state verification with the new image. 'informLcmFsUpgExternalLc' - save external linecard runtime state. 'externalLcWarmBootStatus' - external linecard upgrade status. 'total' - total. 'compactFlashTcamSanity' - compact flash and TCAM sanity test. 'systemPreupgradeBegin' - notify services of beginning of upgrade. ")
ciu_upgrade_op_status_module = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1, 3), ent_physical_index_or_zero()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusModule.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusModule.setDescription('The physical entity of the module for which this status is being shown. For example such an entity is one of the type PhysicalClass module(9). This object must contain the same value as the entPhysicalIndex of the physical entity from entPhysicalTable in ENTITY-MIB. ')
ciu_upgrade_op_status_src_image_loc = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1, 4), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusSrcImageLoc.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusSrcImageLoc.setDescription("An ASCII string specifying the source image location. For example the string could be 'bootflash:file1'. This object is only valid if the value of ciuUpgradeOpStatusOperation is 'copy'.")
ciu_upgrade_op_status_dest_image_loc = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1, 5), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusDestImageLoc.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusDestImageLoc.setDescription("An ASCII string specifying the destination image location. For example the string could be 'bootflash:file1'.")
ciu_upgrade_op_status_job_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('failed', 3), ('inProgress', 4), ('success', 5), ('planned', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusJobStatus.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusJobStatus.setDescription("The status of this operation. 'unknown' - operation status unknown. 'other' - operation status other than defined here. 'failed' - this operation has failed 'inProgress' - this operation is active 'success' - this operation has completed successfully. 'planned' - this operation would be executed at later point of time.")
ciu_upgrade_op_status_percent_compl = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusPercentCompl.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusPercentCompl.setDescription('The percentage completion of the upgrade operation selected from ciuUpgradeOpTable. If this object is invalid for a particular operation, identified by ciuUpgradeOpStatusOperation, then the value of this object would be -1. ')
ciu_upgrade_op_status_job_status_reas = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 9, 1, 8), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusJobStatusReas.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusJobStatusReas.setDescription("Specifies the description of the cause of 'failed' state of the object 'ciuUpgradeOpStatusJobStatus'. This object would be a null string if value of 'ciuUpgradeOpStatusJobStatus' is anything other than 'failed'.")
ciu_upgrade_misc_auto_copy = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 10, 1), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ciuUpgradeMiscAutoCopy.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeMiscAutoCopy.setDescription("Specifies whether or not the images on the active supervisor will be copied to the standby supervisor, if the standby supervisor exists. If the standby supervisor does not exist, the setting of this object to 'true' will not have any effect and no image copy will be done. ciuImageURITable lists all the images for the supervisor cards as well as the line cards. If this object is set to 'true', all the images pointed to by the instances of ciuImageURI will be automatically copied to the standby supervisor. For example, assume that the ciuImageURITable looks like below - entPhysicalIndex ciuImageVariableName ciuImageURI 25 'system' bootflash://image.bin 25 'kickstart' slot0://boot.bin 26 'ilce' bootflash://linecard.bin So, if the ciuUpgradeMiscAutoCopy is 'true', then bootflash://image.bin from the active supervisor will be copied to the bootflash://image.bin on the standby supervisor; slot0://boot.bin will be copied to the slot0://boot.bin on the standby supervisor etc. If this object is set to 'false' then this copying of the images will not be done.")
ciu_upgrade_misc_info_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 11))
if mibBuilder.loadTexts:
ciuUpgradeMiscInfoTable.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeMiscInfoTable.setDescription("A table showing additional information such as warnings during upgrade. The table would be emptied out once the value of ciuUpgradeOpCommand object is 'none'. ")
ciu_upgrade_misc_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 11, 1)).setIndexNames((0, 'CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeMiscInfoIndex'))
if mibBuilder.loadTexts:
ciuUpgradeMiscInfoEntry.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeMiscInfoEntry.setDescription('An entry containing additional information of upgrade operation being performed on modules. Each entry is uniquely identified by ciuUpgradeMiscInfoIndex. If the info given in object ciuUpgradeMiscInfoDescr is not for any module then the value of ciuUpgradeMiscInfoModule would be 0.')
ciu_upgrade_misc_info_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 11, 1, 1), unsigned32())
if mibBuilder.loadTexts:
ciuUpgradeMiscInfoIndex.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeMiscInfoIndex.setDescription('This is an arbitrary integer which identifies uniquely an entry in this table. ')
ciu_upgrade_misc_info_module = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 11, 1, 2), ent_physical_index_or_zero()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeMiscInfoModule.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeMiscInfoModule.setDescription('The entPhysicalIndex of the module. The value of this object would be 0 if the information shown in ciuUpgradeMiscInfoDescr is not for any module.')
ciu_upgrade_misc_info_descr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 360, 1, 1, 11, 1, 3), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ciuUpgradeMiscInfoDescr.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeMiscInfoDescr.setDescription('Specifies the miscelleneous information of the upgrade operation.')
ciu_upgrade_op_completion_notify = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 360, 0, 1)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpCommand'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatus'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpTimeCompleted'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpLastCommand'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpLastStatus'))
if mibBuilder.loadTexts:
ciuUpgradeOpCompletionNotify.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpCompletionNotify.setDescription('A ciuUpgradeOpCompletionNotify is sent at the completion of upgrade operation denoted by ciuUpgradeOpCommand object if such a notification was requested when the operation was initiated. ciuUpgradeOpCommand indicates the type of operation. ciuUpgradeOpStatus indicates the result of the operation. ciuUpgradeOpTimeCompleted indicates the time when the operation is completed. ciuUpgradeopLastCommand indicates the previous operation that was executed. ciuUpgradeOpLastStatus indicates the result of previous operation.')
ciu_upgrade_job_status_notify = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 360, 0, 2)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusOperation'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusModule'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusSrcImageLoc'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusDestImageLoc'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusJobStatus'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusPercentCompl'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusJobStatusReas'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatus'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusReason'))
if mibBuilder.loadTexts:
ciuUpgradeJobStatusNotify.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeJobStatusNotify.setDescription('A ciuUpgradeJobStatusNotify is sent when there is status change in the upgrade process. ciuUpgradeOpStatusOperation indicates the operation to change the upgrade status. ciuUpgradeOpStatusModule indicates which module is affected. ciuUpgradeOpStatusSrcImageLoc indicates location of source image if applicable. ciuUpgradeOpStatusDestImageLoc indicates location of destination image if applicable. ciuUpgradeOpStatusJobStatus indicates the result of this operation to change the status. ciuUpgradeOpStatusPercentCompl indicates percentage of the operation that has been completed. ciuUpgradeOpStatusJobStatusReas gives explanation of the faiure if there is a failure. ciuUpgradeOpStatus indicates the result of the operation at higher level. ciuUpgradeOpStatusReason gives detailed explanation if ciuUpgradeOpStatus is not successful.')
ciu_image_upgrade_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 1))
ciu_image_upgrade_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2))
ciu_image_upgrade_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 1, 1)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageUpgradeGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageVariableGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageURIGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageLocInputGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuVersionCompChkGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeImageVersionGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeNotificationGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_image_upgrade_compliance = ciuImageUpgradeCompliance.setStatus('deprecated')
if mibBuilder.loadTexts:
ciuImageUpgradeCompliance.setDescription("Compliance statement for Image Upgrade MIB. For the (mandatory) ciuImageLocInputGroup, it is compliant to allow only a limited number of entries to be created and concurrently 'active' in the ciuImageLocInputTable table. ")
ciu_image_upgrade_compliance_rev1 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 1, 2)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageUpgradeGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageVariableGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageURIGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageLocInputGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuVersionCompChkGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeImageVersionGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeNotificationGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeMiscGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_image_upgrade_compliance_rev1 = ciuImageUpgradeComplianceRev1.setStatus('deprecated')
if mibBuilder.loadTexts:
ciuImageUpgradeComplianceRev1.setDescription("Compliance statement for Image Upgrade MIB. For the (mandatory) ciuImageLocInputGroup, it is compliant to allow only a limited number of entries to be created and concurrently 'active' in the ciuImageLocInputTable table. ")
ciu_image_upgrade_compliance_rev2 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 1, 3)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageUpgradeGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageVariableGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageURIGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageLocInputGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuVersionCompChkGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeImageVersionGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeNotificationGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeMiscGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeMiscInfoGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_image_upgrade_compliance_rev2 = ciuImageUpgradeComplianceRev2.setStatus('deprecated')
if mibBuilder.loadTexts:
ciuImageUpgradeComplianceRev2.setDescription("Compliance statement for Image Upgrade MIB. For the (mandatory) ciuImageLocInputGroup, it is compliant to allow only a limited number of entries to be created and concurrently 'active' in the ciuImageLocInputTable table.")
ciu_image_upgrade_compliance_rev3 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 1, 4)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageUpgradeGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageVariableGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageURIGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageLocInputGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuVersionCompChkGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeImageVersionGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeNotificationGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeNotificationGroupSup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeMiscGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeMiscInfoGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_image_upgrade_compliance_rev3 = ciuImageUpgradeComplianceRev3.setStatus('deprecated')
if mibBuilder.loadTexts:
ciuImageUpgradeComplianceRev3.setDescription("Compliance statement for Image Upgrade MIB. For the (mandatory) ciuImageLocInputGroup, it is compliant to allow only a limited number of entries to be created and concurrently 'active' in the ciuImageLocInputTable table.")
ciu_image_upgrade_compliance_rev4 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 1, 5)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageUpgradeGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageVariableGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageURIGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageLocInputGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuVersionCompChkGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeImageVersionGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeNotificationGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeNotificationGroupSup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeMiscGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeMiscInfoGroup'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpNewGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_image_upgrade_compliance_rev4 = ciuImageUpgradeComplianceRev4.setStatus('current')
if mibBuilder.loadTexts:
ciuImageUpgradeComplianceRev4.setDescription("Compliance statement for Image Upgrade MIB. For the (mandatory) ciuImageLocInputGroup, it is compliant to allow only a limited number of entries to be created and concurrently 'active' in the ciuImageLocInputTable table.")
ciu_image_upgrade_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 1)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuTotalImageVariables'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_image_upgrade_group = ciuImageUpgradeGroup.setStatus('current')
if mibBuilder.loadTexts:
ciuImageUpgradeGroup.setDescription('A collection of objects providing information about Image upgrade. ')
ciu_image_variable_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 2)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageVariableName'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_image_variable_group = ciuImageVariableGroup.setStatus('current')
if mibBuilder.loadTexts:
ciuImageVariableGroup.setDescription('A group containing an object providing information about the type of the system images.')
ciu_image_uri_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 3)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageURI'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_image_uri_group = ciuImageURIGroup.setStatus('current')
if mibBuilder.loadTexts:
ciuImageURIGroup.setDescription('A group containing an object providing information about the name of system variable or parameter.')
ciu_upgrade_op_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 4)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpCommand'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatus'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpNotifyOnCompletion'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpTimeStarted'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpTimeCompleted'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpAbort'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusReason'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_upgrade_op_group = ciuUpgradeOpGroup.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpGroup.setDescription('A collection of objects for Upgrade operation.')
ciu_upgrade_target_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 5)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeTargetAction'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeTargetEntryStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_upgrade_target_group = ciuUpgradeTargetGroup.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeTargetGroup.setDescription('A collection of objects giving the modules and the type of image to be upgraded.')
ciu_image_loc_input_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 6)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageLocInputURI'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuImageLocInputEntryStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_image_loc_input_group = ciuImageLocInputGroup.setStatus('current')
if mibBuilder.loadTexts:
ciuImageLocInputGroup.setDescription('A collection of objects giving the location of the images to be upgraded.')
ciu_version_comp_chk_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 7)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuVersionCompImageSame'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuVersionCompUpgradable'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuVersionCompUpgradeAction'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuVersionCompUpgradeBios'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuVersionCompUpgradeBootrom'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuVersionCompUpgradeLoader'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuVersionCompUpgradeImpact'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuVersionCompUpgradeReason'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_version_comp_chk_group = ciuVersionCompChkGroup.setStatus('current')
if mibBuilder.loadTexts:
ciuVersionCompChkGroup.setDescription('A collection of objects showing the results of the version compatibility check done.')
ciu_upgrade_image_version_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 8)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeImageVersionVarName'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeImageVersionRunning'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeImageVersionNew'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeImageVersionUpgReqd'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_upgrade_image_version_group = ciuUpgradeImageVersionGroup.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeImageVersionGroup.setDescription('A collection of objects showing the current running images and the images to be upgraded with.')
ciu_upgrade_op_status_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 9)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusOperation'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusModule'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusSrcImageLoc'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusDestImageLoc'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusJobStatus'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusPercentCompl'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpStatusJobStatusReas'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_upgrade_op_status_group = ciuUpgradeOpStatusGroup.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpStatusGroup.setDescription('A collection of objects showing the status of the upgrade operation.')
ciu_upgrade_notification_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 10)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpCompletionNotify'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_upgrade_notification_group = ciuUpgradeNotificationGroup.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeNotificationGroup.setDescription('A collection of notifications for upgrade operations. ')
ciu_upgrade_misc_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 11)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeMiscAutoCopy'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_upgrade_misc_group = ciuUpgradeMiscGroup.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeMiscGroup.setDescription('A collection of objects for Miscelleneous operation.')
ciu_upgrade_misc_info_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 12)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeMiscInfoModule'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeMiscInfoDescr'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_upgrade_misc_info_group = ciuUpgradeMiscInfoGroup.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeMiscInfoGroup.setDescription('A collection of objects for Miscelleneous info for upgrade operation.')
ciu_upgrade_notification_group_sup = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 13)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeJobStatusNotify'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_upgrade_notification_group_sup = ciuUpgradeNotificationGroupSup.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeNotificationGroupSup.setDescription('A collection of notifications for upgrade operations. ')
ciu_upgrade_op_new_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 360, 2, 2, 14)).setObjects(('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeJobStatusNotifyOnCompletion'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpLastCommand'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpLastStatus'), ('CISCO-IMAGE-UPGRADE-MIB', 'ciuUpgradeOpLastStatusReason'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciu_upgrade_op_new_group = ciuUpgradeOpNewGroup.setStatus('current')
if mibBuilder.loadTexts:
ciuUpgradeOpNewGroup.setDescription('A collection of objects for Upgrade operation.')
mibBuilder.exportSymbols('CISCO-IMAGE-UPGRADE-MIB', ciuUpgradeImageVersionUpgReqd=ciuUpgradeImageVersionUpgReqd, ciuUpgradeOpAbort=ciuUpgradeOpAbort, ciuImageLocInputURI=ciuImageLocInputURI, ciuUpgradeOpGroup=ciuUpgradeOpGroup, ciuUpgradeOpStatusReason=ciuUpgradeOpStatusReason, ciuVersionCompUpgradeReason=ciuVersionCompUpgradeReason, ciuTotalImageVariables=ciuTotalImageVariables, ciuUpgradeJobStatusNotify=ciuUpgradeJobStatusNotify, ciuUpgradeImageVersionTable=ciuUpgradeImageVersionTable, ciuUpgradeTargetAction=ciuUpgradeTargetAction, ciuUpgradeOpStatusOperation=ciuUpgradeOpStatusOperation, ciuImageVariableName=ciuImageVariableName, ciuUpgradeImageVersionIndex=ciuUpgradeImageVersionIndex, ciuUpgradeOpStatusModule=ciuUpgradeOpStatusModule, ciuVersionCompChkGroup=ciuVersionCompChkGroup, ciuVersionCompUpgradeImpact=ciuVersionCompUpgradeImpact, ciuUpgradeMiscGroup=ciuUpgradeMiscGroup, ciuUpgradeOpStatusOperIndex=ciuUpgradeOpStatusOperIndex, ciuImageUpgradeGroup=ciuImageUpgradeGroup, ciuImageLocInputEntryStatus=ciuImageLocInputEntryStatus, ciuUpgradeOpStatus=ciuUpgradeOpStatus, ciuImageURIGroup=ciuImageURIGroup, ciuUpgradeMiscInfoTable=ciuUpgradeMiscInfoTable, ciuUpgradeTargetEntry=ciuUpgradeTargetEntry, ciscoImageUpgradeMIB=ciscoImageUpgradeMIB, ciuImageVariableTable=ciuImageVariableTable, ciuUpgradeOpStatusJobStatusReas=ciuUpgradeOpStatusJobStatusReas, ciuUpgradeOpLastCommand=ciuUpgradeOpLastCommand, ciuVersionCompUpgradeBios=ciuVersionCompUpgradeBios, ciuImageUpgradeComplianceRev3=ciuImageUpgradeComplianceRev3, ciuVersionCompUpgradeLoader=ciuVersionCompUpgradeLoader, ciuUpgradeTargetTable=ciuUpgradeTargetTable, ciuUpgradeOpCompletionNotify=ciuUpgradeOpCompletionNotify, ciscoImageUpgradeMIBObjects=ciscoImageUpgradeMIBObjects, ciuVersionCompChkTable=ciuVersionCompChkTable, ciuUpgradeOpStatusTable=ciuUpgradeOpStatusTable, ciuImageURI=ciuImageURI, ciuUpgradeOpStatusSrcImageLoc=ciuUpgradeOpStatusSrcImageLoc, ciuImageLocInputEntry=ciuImageLocInputEntry, ciuUpgradeImageVersionGroup=ciuUpgradeImageVersionGroup, ciuVersionCompImageSame=ciuVersionCompImageSame, ciuUpgradeMiscInfoGroup=ciuUpgradeMiscInfoGroup, ciuUpgradeOpLastStatusReason=ciuUpgradeOpLastStatusReason, ciuUpgradeMiscInfoIndex=ciuUpgradeMiscInfoIndex, ciuUpgradeMiscInfoEntry=ciuUpgradeMiscInfoEntry, ciuUpgradeImageVersionRunning=ciuUpgradeImageVersionRunning, ciuImageVariableEntry=ciuImageVariableEntry, CiuImageVariableTypeName=CiuImageVariableTypeName, ciscoImageUpgradeMisc=ciscoImageUpgradeMisc, ciscoImageUpgradeConfig=ciscoImageUpgradeConfig, ciuImageUpgradeCompliances=ciuImageUpgradeCompliances, ciuUpgradeOpStatusDestImageLoc=ciuUpgradeOpStatusDestImageLoc, ciuImageLocInputGroup=ciuImageLocInputGroup, ciuUpgradeOpTimeCompleted=ciuUpgradeOpTimeCompleted, ciuUpgradeMiscInfoModule=ciuUpgradeMiscInfoModule, ciuUpgradeTargetGroup=ciuUpgradeTargetGroup, ciuImageVariableGroup=ciuImageVariableGroup, ciuImageURITable=ciuImageURITable, ciscoImageUpgradeMIBNotifs=ciscoImageUpgradeMIBNotifs, ciuVersionCompUpgradeAction=ciuVersionCompUpgradeAction, ciuUpgradeMiscAutoCopy=ciuUpgradeMiscAutoCopy, ciuUpgradeOpNotifyOnCompletion=ciuUpgradeOpNotifyOnCompletion, ciuUpgradeImageVersionNew=ciuUpgradeImageVersionNew, ciuUpgradeOpCommand=ciuUpgradeOpCommand, ciuImageUpgradeGroups=ciuImageUpgradeGroups, ciuVersionCompUpgradeBootrom=ciuVersionCompUpgradeBootrom, ciuUpgradeOpStatusPercentCompl=ciuUpgradeOpStatusPercentCompl, ciuUpgradeNotificationGroupSup=ciuUpgradeNotificationGroupSup, ciuUpgradeOpStatusJobStatus=ciuUpgradeOpStatusJobStatus, ciuUpgradeJobStatusNotifyOnCompletion=ciuUpgradeJobStatusNotifyOnCompletion, ciuUpgradeOpNewGroup=ciuUpgradeOpNewGroup, ciuUpgradeImageVersionEntry=ciuUpgradeImageVersionEntry, ciuUpgradeOpTimeStarted=ciuUpgradeOpTimeStarted, ciuUpgradeTargetEntryStatus=ciuUpgradeTargetEntryStatus, ciuImageUpgradeComplianceRev4=ciuImageUpgradeComplianceRev4, ciuUpgradeOpStatusGroup=ciuUpgradeOpStatusGroup, ciuImageURIEntry=ciuImageURIEntry, ciuUpgradeOpLastStatus=ciuUpgradeOpLastStatus, ciuVersionCompUpgradable=ciuVersionCompUpgradable, ciuVersionCompChkEntry=ciuVersionCompChkEntry, ciuUpgradeMiscInfoDescr=ciuUpgradeMiscInfoDescr, ciuImageLocInputTable=ciuImageLocInputTable, ciuUpgradeImageVersionVarName=ciuUpgradeImageVersionVarName, ciuImageUpgradeCompliance=ciuImageUpgradeCompliance, ciuUpgradeNotificationGroup=ciuUpgradeNotificationGroup, ciscoImageUpgradeMIBConform=ciscoImageUpgradeMIBConform, ciuImageUpgradeComplianceRev2=ciuImageUpgradeComplianceRev2, ciuUpgradeOpStatusEntry=ciuUpgradeOpStatusEntry, PYSNMP_MODULE_ID=ciscoImageUpgradeMIB, ciuImageUpgradeComplianceRev1=ciuImageUpgradeComplianceRev1, ciscoImageUpgradeOp=ciscoImageUpgradeOp) |
#!/opt/local/bin/python
sum_3_5 = 0
for i in range(1,1000):
if i % 3 == 0 or i % 5 == 0:
print(i)
sum_3_5 += i
print(sum_3_5)
| sum_3_5 = 0
for i in range(1, 1000):
if i % 3 == 0 or i % 5 == 0:
print(i)
sum_3_5 += i
print(sum_3_5) |
class Animal(object):
def __init__(self, name):
self.name = name
def eat(self, food):
print("%s is eating %s" % (self.name, food))
class Dog(Animal):
def fetch(self, thing):
print("%s goes after the %s" % (self.name, thing))
class Cat(Animal):
def swatstring(self):
print("%s shred the string!" % self.name)
d = Dog("Roger")
c = Cat("Fluffy")
d.fetch("paper")
d.eat("dog food")
print("--------")
c.eat("cat food")
c.swatstring()
# The below methods would fail, since the instances doesn't have
# have access to the other class.
c.fetch("frizbee")
d.swatstring()
| class Animal(object):
def __init__(self, name):
self.name = name
def eat(self, food):
print('%s is eating %s' % (self.name, food))
class Dog(Animal):
def fetch(self, thing):
print('%s goes after the %s' % (self.name, thing))
class Cat(Animal):
def swatstring(self):
print('%s shred the string!' % self.name)
d = dog('Roger')
c = cat('Fluffy')
d.fetch('paper')
d.eat('dog food')
print('--------')
c.eat('cat food')
c.swatstring()
c.fetch('frizbee')
d.swatstring() |
__version__ = '0.0.1'
__url__ = 'http://github.com/blazaid/pycodes/'
__author__ = 'blazaid'
def check_ean13():
pass | __version__ = '0.0.1'
__url__ = 'http://github.com/blazaid/pycodes/'
__author__ = 'blazaid'
def check_ean13():
pass |
# List of the training runs for the different target dataset sizes
TRAINING_RUNS = [
'large_dataset/20200616_090434',
'medium_dataset/20200616_214425',
'small_dataset/20200617_143139'
]
| training_runs = ['large_dataset/20200616_090434', 'medium_dataset/20200616_214425', 'small_dataset/20200617_143139'] |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# Copyright (c) 2012 Michael Hull.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# - Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# - Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ----------------------------------------------------------------------
class StandardTags(object):
# Its important the spellings are the same;
# since we use the values in setattr() to automatically populate classes.
Voltage = 'Voltage'
CurrentDensity = 'CurrentDensity'
Current = 'Current'
Conductance = 'Conductance'
ConductanceDensity = 'ConductanceDensity'
StateVariable = 'StateVariable'
StateTimeConstant = 'StateTimeConstant'
StateSteadyState = 'StateSteadyState'
NMDAVoltageDependancy = 'NMDAVoltageDependancy'
NMDAVoltageDependancySS = 'NMDAVoltageDependancySS'
NMDAConductanceWithVDep = 'NMDAConductanceWithVDep'
Event = 'Event'
DefaultUnits = {
Voltage: 'mV',
CurrentDensity: 'mA/cm2',
Current: 'pA',
ConductanceDensity: 'mS/cm2',
Conductance: 'pS',
StateVariable: '',
StateTimeConstant: 'ms',
StateSteadyState: '',
NMDAVoltageDependancy: '',
NMDAVoltageDependancySS: '',
}
label = {
Voltage: 'Voltage',
CurrentDensity: 'Current Density',
Current: 'Current',
ConductanceDensity: 'Conductance Density',
Conductance: 'Conductance',
StateVariable: 'State Variable',
StateTimeConstant: 'StateVariable Time Constant',
StateSteadyState: 'StateVariable Steddy State',
NMDAVoltageDependancy: 'NMDA Voltage Dependancy',
NMDAVoltageDependancySS: 'NMDA Voltage Dependancy Steady State',
}
| class Standardtags(object):
voltage = 'Voltage'
current_density = 'CurrentDensity'
current = 'Current'
conductance = 'Conductance'
conductance_density = 'ConductanceDensity'
state_variable = 'StateVariable'
state_time_constant = 'StateTimeConstant'
state_steady_state = 'StateSteadyState'
nmda_voltage_dependancy = 'NMDAVoltageDependancy'
nmda_voltage_dependancy_ss = 'NMDAVoltageDependancySS'
nmda_conductance_with_v_dep = 'NMDAConductanceWithVDep'
event = 'Event'
default_units = {Voltage: 'mV', CurrentDensity: 'mA/cm2', Current: 'pA', ConductanceDensity: 'mS/cm2', Conductance: 'pS', StateVariable: '', StateTimeConstant: 'ms', StateSteadyState: '', NMDAVoltageDependancy: '', NMDAVoltageDependancySS: ''}
label = {Voltage: 'Voltage', CurrentDensity: 'Current Density', Current: 'Current', ConductanceDensity: 'Conductance Density', Conductance: 'Conductance', StateVariable: 'State Variable', StateTimeConstant: 'StateVariable Time Constant', StateSteadyState: 'StateVariable Steddy State', NMDAVoltageDependancy: 'NMDA Voltage Dependancy', NMDAVoltageDependancySS: 'NMDA Voltage Dependancy Steady State'} |
# print("{:~^45}".format(" Simple while loop "))
# i = 1
# while i<=5 :
# print(i)
# i += 1
# print("\n{:~^45}".format(" Example: sum all numbers in [1..100] "))
# i = 1
# sum = 0
# while i <= 100:
# sum += i
# i += 1
# print("sum = ", sum)
# print("\n{:~^45}".format(" Task: sum even numbers in [1..100] "))
# i = 1
# sum = 0
# while i<=100:
# if i%2 == 0:
# sum += i
# i += 1
# print("sum = ", sum)
# print("\n{:~^45}".format(" Example of else clause in while "))
# i = 1
# while i <= 5:
# # if i==3 : break
# print(i)
# i += 1
# else:
# print("Condition is not true when i = ", i)
print("\n{:~^45}".format("Emulate do-while loop"))
# ask user to enter a name (string), until it contains at least 3 symbols
while True:
user_name = input("Enter a name (at least 3 symbols): ")
user_name_length = len(user_name)
if user_name_length > 3: break
print("Thank you, {}!".format(user_name))
# print("\nEnter number, but not 0")
# user_number = int(input("Enter a number, but not 0, please: "))
# while user_number == 0:
# user_number = input("Enter a number, but not 0, please: ")
# print("Your number is ", user_number)
| print('\n{:~^45}'.format('Emulate do-while loop'))
while True:
user_name = input('Enter a name (at least 3 symbols): ')
user_name_length = len(user_name)
if user_name_length > 3:
break
print('Thank you, {}!'.format(user_name)) |
aqiRanges = (0, 50, 100, 150, 200, 300, 500)
aqiDescriptions = ("Good", "Moderate", "Unhealthy for Sensitive Groups",
"Unhealthy", "Very Unhealthy", "Hazardous")
aqiDescription = ""
pm25ranges = (0, 12, 35.4, 55.4, 150.4, 250.4, 500.4)
pm10ranges = (0, 54, 154, 254, 354, 424, 604)
no2ranges = (0, 53, 100, 360, 649, 1249, 2049)
so2ranges = (0, 35, 75, 185, 304, 604, 1004)
coranges = (0, 4.4, 9.4, 12.4, 15.4, 30.4, 50.4)
iHigh, iLow, cHigh, cLow, cP = 0, 0, 0, 0, 0
location = input("Where is this measurement taken from? ")
# This code only takes acceptable inputs and asks again if an out of boud input is entered
def takeInput(upperBound, message):
while True:
tempinput = float(input(message))
if (tempinput < 0) or (tempinput > upperBound):
print(
f"Entered value is out of range, please use a value between 0 and {upperBound}")
else:
break
return (tempinput)
def calculateAQI(name, ranges):
cP = takeInput(ranges[6], str(
f"Enter the value for the {name} concentration : "))
index = 0
for upper in ranges:
if cP <= upper:
cHigh = upper
# IMPORTANT NOTE:
# This code uses the uperbound of the previous index as the lower bound.
# I discussed this change with Sumona and we agreed that it was a good
# change as it results in a more reasonable result when edge casses in
# between the specified ranges are entered. This will result in this
# program returning slightly different results but I talked with Sumona
# and she just said to write out a coment that explaid this change so that
# the TA will know why
cLow = ranges[index - 1]
iHigh = aqiRanges[index]
iLow = aqiRanges[index - 1]
break
index += 1
return(((iHigh-iLow)/(cHigh-cLow)*(cP-cLow))+iLow)
results = []
endMessages = []
# hashmap for
pollutantRanges = {"PM2.5": pm25ranges, "PM10": pm10ranges,
"NO2": no2ranges, "SO2": so2ranges, "CO": coranges}
keys = dict.keys(pollutantRanges)
#iterate over the polutants to receive the data and prosses it
for key in keys:
result = calculateAQI(key, pollutantRanges[key])
endMessages.append(f"The Air Quality Index of {key} is {result}")
results.append(result)
maxAqi = max(results)
index = 0
for upper in aqiRanges:
if maxAqi <= upper:
print(
f"The Air Quality Index in {location} is {maxAqi}, this is {aqiDescriptions[index - 1]}")
break
index += 1
for endMessage in endMessages:
print(endMessage)
| aqi_ranges = (0, 50, 100, 150, 200, 300, 500)
aqi_descriptions = ('Good', 'Moderate', 'Unhealthy for Sensitive Groups', 'Unhealthy', 'Very Unhealthy', 'Hazardous')
aqi_description = ''
pm25ranges = (0, 12, 35.4, 55.4, 150.4, 250.4, 500.4)
pm10ranges = (0, 54, 154, 254, 354, 424, 604)
no2ranges = (0, 53, 100, 360, 649, 1249, 2049)
so2ranges = (0, 35, 75, 185, 304, 604, 1004)
coranges = (0, 4.4, 9.4, 12.4, 15.4, 30.4, 50.4)
(i_high, i_low, c_high, c_low, c_p) = (0, 0, 0, 0, 0)
location = input('Where is this measurement taken from? ')
def take_input(upperBound, message):
while True:
tempinput = float(input(message))
if tempinput < 0 or tempinput > upperBound:
print(f'Entered value is out of range, please use a value between 0 and {upperBound}')
else:
break
return tempinput
def calculate_aqi(name, ranges):
c_p = take_input(ranges[6], str(f'Enter the value for the {name} concentration : '))
index = 0
for upper in ranges:
if cP <= upper:
c_high = upper
c_low = ranges[index - 1]
i_high = aqiRanges[index]
i_low = aqiRanges[index - 1]
break
index += 1
return (iHigh - iLow) / (cHigh - cLow) * (cP - cLow) + iLow
results = []
end_messages = []
pollutant_ranges = {'PM2.5': pm25ranges, 'PM10': pm10ranges, 'NO2': no2ranges, 'SO2': so2ranges, 'CO': coranges}
keys = dict.keys(pollutantRanges)
for key in keys:
result = calculate_aqi(key, pollutantRanges[key])
endMessages.append(f'The Air Quality Index of {key} is {result}')
results.append(result)
max_aqi = max(results)
index = 0
for upper in aqiRanges:
if maxAqi <= upper:
print(f'The Air Quality Index in {location} is {maxAqi}, this is {aqiDescriptions[index - 1]}')
break
index += 1
for end_message in endMessages:
print(endMessage) |
def test_evens():
yield check_even_cls
class Test(object):
def test_evens(self):
yield check_even_cls
class Check(object):
def __call__(self):
pass
check_even_cls = Check()
| def test_evens():
yield check_even_cls
class Test(object):
def test_evens(self):
yield check_even_cls
class Check(object):
def __call__(self):
pass
check_even_cls = check() |
def sommig(n):
result = 0
while(n>=1):
result += n
n-=1
return result
print(sommig(3))
print(sommig(8))
print(sommig(17))
print(sommig(33)) | def sommig(n):
result = 0
while n >= 1:
result += n
n -= 1
return result
print(sommig(3))
print(sommig(8))
print(sommig(17))
print(sommig(33)) |
class Job(object):
def __init__(self, server_host, job_id, train_strategy, train_model, train_model_class_name, aggregate_strategy,
distillation_alpha=None):
self.server_host = server_host
self.job_id = job_id
self.train_strategy = train_strategy
self.train_model = train_model
self.train_model_class_name = train_model_class_name
self.aggregate_strategy = aggregate_strategy
self.alpha = distillation_alpha
def set_server_host(self, server_host):
self.server_host = server_host
def set_job_id(self, job_id):
self.job_id = job_id
def get_job_id(self):
return self.job_id
def set_train_strategy(self, train_strategy):
self.train_strategy = train_strategy
def set_train_model(self, train_model):
self.train_model = train_model
def set_train_model_class_name(self, train_model_class_name):
self.train_model_class_name = train_model_class_name
def get_train_model_class_name(self):
return self.train_model_class_name
def get_server_host(self):
return self.server_host
def get_train_strategy(self):
return self.train_strategy
def get_train_model(self):
return self.train_model
def set_aggregate_stragety(self, aggregate_strategy):
self.aggregate_strategy = aggregate_strategy
def get_aggregate_strategy(self):
return self.aggregate_strategy
def set_distillation_alpha(self, alpha):
self.alpha = alpha
def get_distillation_alpha(self):
return self.alpha
| class Job(object):
def __init__(self, server_host, job_id, train_strategy, train_model, train_model_class_name, aggregate_strategy, distillation_alpha=None):
self.server_host = server_host
self.job_id = job_id
self.train_strategy = train_strategy
self.train_model = train_model
self.train_model_class_name = train_model_class_name
self.aggregate_strategy = aggregate_strategy
self.alpha = distillation_alpha
def set_server_host(self, server_host):
self.server_host = server_host
def set_job_id(self, job_id):
self.job_id = job_id
def get_job_id(self):
return self.job_id
def set_train_strategy(self, train_strategy):
self.train_strategy = train_strategy
def set_train_model(self, train_model):
self.train_model = train_model
def set_train_model_class_name(self, train_model_class_name):
self.train_model_class_name = train_model_class_name
def get_train_model_class_name(self):
return self.train_model_class_name
def get_server_host(self):
return self.server_host
def get_train_strategy(self):
return self.train_strategy
def get_train_model(self):
return self.train_model
def set_aggregate_stragety(self, aggregate_strategy):
self.aggregate_strategy = aggregate_strategy
def get_aggregate_strategy(self):
return self.aggregate_strategy
def set_distillation_alpha(self, alpha):
self.alpha = alpha
def get_distillation_alpha(self):
return self.alpha |
def foo(bar1, bar2, bar3,
bar4
): # FD102
return
| def foo(bar1, bar2, bar3, bar4):
return |
class Solution:
def canPermutePalindrome(self, s: str) -> bool:
wordset = set()
for c in s:
if c in wordset:
wordset.remove(c)
else:
wordset.add(c)
return len(wordset)<=1
A = Solution()
s = "aab"
print(A.canPermutePalindrome(s)) | class Solution:
def can_permute_palindrome(self, s: str) -> bool:
wordset = set()
for c in s:
if c in wordset:
wordset.remove(c)
else:
wordset.add(c)
return len(wordset) <= 1
a = solution()
s = 'aab'
print(A.canPermutePalindrome(s)) |
def get_sea_monster():
sea_monster = [
" # ",
"# ## ## ###",
" # # # # # # ",
]
return sea_monster, len(sea_monster), len(sea_monster[0])
def mark_sea_monsters_at_coord(grid, x, y):
sm, sm_y, sm_x = get_sea_monster()
for yval in range(y, y + sm_y):
for xval in range(x, x + sm_x):
if sm[yval - y][xval - x] == "#" and grid[yval][xval] != "#":
return False, grid
for yval in range(y, y + sm_y):
for xval in range(x, x + sm_x):
if sm[yval - y][xval - x] == "#":
grid[yval][xval] = "O"
return True, grid
def mark_sea_monsters(grid):
dimy = len(grid)
dimx = len(grid[0])
_, sm_y, sm_x = get_sea_monster()
sm_found = False
for y in range(dimy - sm_y):
for x in range(dimx - sm_x):
marked, grid = mark_sea_monsters_at_coord(grid, x, y)
sm_found = sm_found or marked
return sm_found, grid
| def get_sea_monster():
sea_monster = [' # ', '# ## ## ###', ' # # # # # # ']
return (sea_monster, len(sea_monster), len(sea_monster[0]))
def mark_sea_monsters_at_coord(grid, x, y):
(sm, sm_y, sm_x) = get_sea_monster()
for yval in range(y, y + sm_y):
for xval in range(x, x + sm_x):
if sm[yval - y][xval - x] == '#' and grid[yval][xval] != '#':
return (False, grid)
for yval in range(y, y + sm_y):
for xval in range(x, x + sm_x):
if sm[yval - y][xval - x] == '#':
grid[yval][xval] = 'O'
return (True, grid)
def mark_sea_monsters(grid):
dimy = len(grid)
dimx = len(grid[0])
(_, sm_y, sm_x) = get_sea_monster()
sm_found = False
for y in range(dimy - sm_y):
for x in range(dimx - sm_x):
(marked, grid) = mark_sea_monsters_at_coord(grid, x, y)
sm_found = sm_found or marked
return (sm_found, grid) |
def check_if_multiple(test_num,list_of_multiples):
for i in list_of_multiples:
if not i:
continue
if not test_num%i:
return test_num
return 0
def sum_of_multiples(number, multiples_list = None):
multiples_list = multiples_list or [3,5]
#implicitly check if None is passed to the function
return sum(list(filter(lambda x: check_if_multiple(x,multiples_list),range(1,number))))
#the above line:
#uses a lambda to call check_if_multiple multiple times with different values of x, fixing the mutliples list
#filters out any returns that are false (returned zero)
#lists the returned answers
#and sums them together - as requested!
| def check_if_multiple(test_num, list_of_multiples):
for i in list_of_multiples:
if not i:
continue
if not test_num % i:
return test_num
return 0
def sum_of_multiples(number, multiples_list=None):
multiples_list = multiples_list or [3, 5]
return sum(list(filter(lambda x: check_if_multiple(x, multiples_list), range(1, number)))) |
def algorithm_name(id, config):
algorithm = config['experiment.simple']['algorithm'].rsplit('.', 1)[1]
# env = config['experiment.simple']['environment'].rsplit('.', 1)[1]
tr_radius = get_setting(config, 'algorithm.subdomainbo', 'tr_radius')
beta = get_setting(config, 'model', 'beta')
tr_method = get_setting(config, 'algorithm.subdomainbo','tr_method')
max_queries_tr = get_setting(config, 'algorithm.subdomainbo', 'max_queries_tr')
acquisition = ''
if 'algorithm.subdomainbo' in config and 'acquisition' in config['algorithm.subdomainbo']:
acquisition = f"-{config['algorithm.subdomainbo']['acquisition'].rsplit('.', maxsplit=1)[1]}"
return f"{id}-{algorithm}{tr_radius}{tr_method}{max_queries_tr}{acquisition}{beta}"
def get_setting(config, section, setting):
if section in config and setting in config[section]:
return f"-{config[section][setting]}"
return '' | def algorithm_name(id, config):
algorithm = config['experiment.simple']['algorithm'].rsplit('.', 1)[1]
tr_radius = get_setting(config, 'algorithm.subdomainbo', 'tr_radius')
beta = get_setting(config, 'model', 'beta')
tr_method = get_setting(config, 'algorithm.subdomainbo', 'tr_method')
max_queries_tr = get_setting(config, 'algorithm.subdomainbo', 'max_queries_tr')
acquisition = ''
if 'algorithm.subdomainbo' in config and 'acquisition' in config['algorithm.subdomainbo']:
acquisition = f"-{config['algorithm.subdomainbo']['acquisition'].rsplit('.', maxsplit=1)[1]}"
return f'{id}-{algorithm}{tr_radius}{tr_method}{max_queries_tr}{acquisition}{beta}'
def get_setting(config, section, setting):
if section in config and setting in config[section]:
return f'-{config[section][setting]}'
return '' |
'''This module contains the output formatters for pyPaSWAS'''
class DefaultFormatter(object):
'''This is the default formatter for pyPasWas.
All available formatters inherit from this formatter.
The results are parsed into a temporary file, which can be used by the main
program for permanent storage, printing etc.
'''
def __init__(self, logger, hitlist, outputfile):
self.name = ''
self.logger = logger
self.logger.debug('Initializing formatter...')
self.hitlist = hitlist
self.outputfile = outputfile
self._set_name()
self.logger.debug('Initialized {0}'.format(self.name))
def _format_hit(self, hit):
'''This method may be overruled to enable other formats for printed results.'''
self.logger.debug('Formatting hit {0}'.format(hit.get_seq_id()))
formatted_hit = ', '.join([hit.get_seq_id(), hit.get_target_id(), str(hit.seq_location[0]), str(hit.seq_location[1]),
str(hit.target_location[0]), str(hit.target_location[1]), str(hit.score), str(hit.matches),
str(hit.mismatches), str(len(hit.alignment) - hit.matches - hit.mismatches),
str(len(hit.alignment)), str(hit.score / len(hit.alignment)),
str(hit.sequence_info.original_length), str(hit.target_info.original_length),
str(hit.score / hit.sequence_info.original_length),
str(hit.score / hit.target_info.original_length), str(hit.distance)])
formatted_hit = '\n'.join([formatted_hit, hit.sequence_match, hit.alignment, hit.target_match])
return formatted_hit
def _set_name(self):
'''Name of the formatter. Used for logging'''
self.name = 'defaultformatter'
def _get_hits(self):
'''Returns ordered list of hits'''
hits = self.hitlist.real_hits.values()
return sorted(hits, key=lambda hit: (hit.get_seq_id(), hit.get_target_id(), hit.score))
def print_results(self):
'''sets, formats and prints the results to a file.'''
self.logger.debug('printing results...')
output = open(self.outputfile, 'w')
for hit in self._get_hits():
formatted_hit = self._format_hit(hit)
output.write(formatted_hit + "\n")
self.logger.debug('finished printing results')
class SamFormatter(DefaultFormatter):
'''This Formatter is used to create SAM output
See http://samtools.sourceforge.net/SAM1.pdf
'''
def __init__(self, logger, hitlist, outputfile):
'''Since the header contains information about the target sequences and must be
present before alignment lines, formatted lines are stored before printing.
'''
DefaultFormatter.__init__(self, logger, hitlist, outputfile)
self.sq_lines = {}
self.record_lines = []
def _set_name(self):
'''Name of the formatter. Used for logging'''
self.name = 'SAM formatter'
def _format_hit(self, hit):
'''Adds a header line to self.sq_lines and an alignment line to self.record_lines.
The following mappings are used for header lines:
SN: hit.get_target_id()
LN: hit.full_target.original_length
'''
self.logger.debug('Formatting hit {0}'.format(hit.get_seq_id()))
#add a header line for the target id if not already present
if hit.get_target_id() not in self.sq_lines:
if hit.get_target_id()[-2:] != 'RC':
self.sq_lines[hit.get_target_id()] = hit.get_sam_sq()
else:
self.sq_lines[hit.get_target_id()[:-3]] = hit.get_sam_sq()
#add a line for the hit
self.record_lines.append(hit.get_sam_line())
def print_results(self):
'''sets, formats and prints the results to a file.'''
self.logger.info('formatting results...')
#format header and hit lines
for hit in self._get_hits():
self._format_hit(hit)
self.logger.debug('printing results...')
output = open(self.outputfile, 'w')
#write the header lines to the file
header_string = '@HD\tVN:1.4\tSO:unknown'
output.write(header_string + '\n')
for header_line in self.sq_lines:
output.write(self.sq_lines[header_line] + '\n')
#program information header line
output.write('@PG\tID:0\tPN:paswas\tVN:3.0\n')
#write the hit lines to the output file
for line in self.record_lines:
output.write(line + '\n')
output.close()
self.logger.debug('finished printing results')
class TrimmerFormatter(DefaultFormatter):
'''This Formatter is used to create SAM output
See http://samtools.sourceforge.net/SAM1.pdf
'''
def __init__(self, logger, hitlist, outputfile):
'''Since the header contains information about the target sequences and must be
present before alignment lines, formatted lines are stored before printing.
'''
DefaultFormatter.__init__(self, logger, hitlist, outputfile)
self.sq_lines = {}
self.record_lines = []
def _set_name(self):
'''Name of the formatter. Used for logging'''
self.name = 'SAM formatter'
def _format_hit(self, hit):
'''Adds a header line to self.sq_lines and an alignment line to self.record_lines.
The following mappings are used for header lines:
SN: hit.get_target_id()
LN: hit.full_target.original_length
'''
self.logger.debug('Formatting hit {0}'.format(hit.get_seq_id()))
self.record_lines.append(hit.get_trimmed_line())
def print_results(self):
'''sets, formats and prints the results to a file.'''
self.logger.info('formatting results...')
#format header and hit lines
for hit in self._get_hits():
self._format_hit(hit)
self.logger.debug('printing results...')
output = open(self.outputfile, 'w')
#write the hit lines to the output file
for line in self.record_lines:
output.write(line + '\n')
output.close()
self.logger.debug('finished printing results')
class FASTA(DefaultFormatter):
'''This Formatter is used to create FASTA output
'''
def __init__(self, logger, hitlist, outputfile):
'''Since the header contains information about the target sequences and must be
present before alignment lines, formatted lines are stored before printing.
'''
DefaultFormatter.__init__(self, logger, hitlist, outputfile)
self.sq_lines = {}
self.record_lines = []
def _set_name(self):
'''Name of the formatter. Used for logging'''
self.name = 'FASTA formatter'
def _format_hit(self, hit):
'''Adds a header line to self.sq_lines and an alignment line to self.record_lines.
The following mappings are used for header lines:
SN: hit.get_target_id()
LN: hit.full_target.original_length
'''
self.logger.debug('Formatting hit {0}'.format(hit.get_seq_id()))
self.record_lines.append(hit.get_full_fasta())
def print_results(self):
'''sets, formats and prints the results to a file.'''
self.logger.info('formatting results...')
#format header and hit lines
for hit in self._get_hits():
self._format_hit(hit)
self.logger.debug('printing results...')
output = open(self.outputfile, 'w')
#write the hit lines to the output file
for line in self.record_lines:
output.write(line + '\n')
output.close()
self.logger.debug('finished printing results')
| """This module contains the output formatters for pyPaSWAS"""
class Defaultformatter(object):
"""This is the default formatter for pyPasWas.
All available formatters inherit from this formatter.
The results are parsed into a temporary file, which can be used by the main
program for permanent storage, printing etc.
"""
def __init__(self, logger, hitlist, outputfile):
self.name = ''
self.logger = logger
self.logger.debug('Initializing formatter...')
self.hitlist = hitlist
self.outputfile = outputfile
self._set_name()
self.logger.debug('Initialized {0}'.format(self.name))
def _format_hit(self, hit):
"""This method may be overruled to enable other formats for printed results."""
self.logger.debug('Formatting hit {0}'.format(hit.get_seq_id()))
formatted_hit = ', '.join([hit.get_seq_id(), hit.get_target_id(), str(hit.seq_location[0]), str(hit.seq_location[1]), str(hit.target_location[0]), str(hit.target_location[1]), str(hit.score), str(hit.matches), str(hit.mismatches), str(len(hit.alignment) - hit.matches - hit.mismatches), str(len(hit.alignment)), str(hit.score / len(hit.alignment)), str(hit.sequence_info.original_length), str(hit.target_info.original_length), str(hit.score / hit.sequence_info.original_length), str(hit.score / hit.target_info.original_length), str(hit.distance)])
formatted_hit = '\n'.join([formatted_hit, hit.sequence_match, hit.alignment, hit.target_match])
return formatted_hit
def _set_name(self):
"""Name of the formatter. Used for logging"""
self.name = 'defaultformatter'
def _get_hits(self):
"""Returns ordered list of hits"""
hits = self.hitlist.real_hits.values()
return sorted(hits, key=lambda hit: (hit.get_seq_id(), hit.get_target_id(), hit.score))
def print_results(self):
"""sets, formats and prints the results to a file."""
self.logger.debug('printing results...')
output = open(self.outputfile, 'w')
for hit in self._get_hits():
formatted_hit = self._format_hit(hit)
output.write(formatted_hit + '\n')
self.logger.debug('finished printing results')
class Samformatter(DefaultFormatter):
"""This Formatter is used to create SAM output
See http://samtools.sourceforge.net/SAM1.pdf
"""
def __init__(self, logger, hitlist, outputfile):
"""Since the header contains information about the target sequences and must be
present before alignment lines, formatted lines are stored before printing.
"""
DefaultFormatter.__init__(self, logger, hitlist, outputfile)
self.sq_lines = {}
self.record_lines = []
def _set_name(self):
"""Name of the formatter. Used for logging"""
self.name = 'SAM formatter'
def _format_hit(self, hit):
"""Adds a header line to self.sq_lines and an alignment line to self.record_lines.
The following mappings are used for header lines:
SN: hit.get_target_id()
LN: hit.full_target.original_length
"""
self.logger.debug('Formatting hit {0}'.format(hit.get_seq_id()))
if hit.get_target_id() not in self.sq_lines:
if hit.get_target_id()[-2:] != 'RC':
self.sq_lines[hit.get_target_id()] = hit.get_sam_sq()
else:
self.sq_lines[hit.get_target_id()[:-3]] = hit.get_sam_sq()
self.record_lines.append(hit.get_sam_line())
def print_results(self):
"""sets, formats and prints the results to a file."""
self.logger.info('formatting results...')
for hit in self._get_hits():
self._format_hit(hit)
self.logger.debug('printing results...')
output = open(self.outputfile, 'w')
header_string = '@HD\tVN:1.4\tSO:unknown'
output.write(header_string + '\n')
for header_line in self.sq_lines:
output.write(self.sq_lines[header_line] + '\n')
output.write('@PG\tID:0\tPN:paswas\tVN:3.0\n')
for line in self.record_lines:
output.write(line + '\n')
output.close()
self.logger.debug('finished printing results')
class Trimmerformatter(DefaultFormatter):
"""This Formatter is used to create SAM output
See http://samtools.sourceforge.net/SAM1.pdf
"""
def __init__(self, logger, hitlist, outputfile):
"""Since the header contains information about the target sequences and must be
present before alignment lines, formatted lines are stored before printing.
"""
DefaultFormatter.__init__(self, logger, hitlist, outputfile)
self.sq_lines = {}
self.record_lines = []
def _set_name(self):
"""Name of the formatter. Used for logging"""
self.name = 'SAM formatter'
def _format_hit(self, hit):
"""Adds a header line to self.sq_lines and an alignment line to self.record_lines.
The following mappings are used for header lines:
SN: hit.get_target_id()
LN: hit.full_target.original_length
"""
self.logger.debug('Formatting hit {0}'.format(hit.get_seq_id()))
self.record_lines.append(hit.get_trimmed_line())
def print_results(self):
"""sets, formats and prints the results to a file."""
self.logger.info('formatting results...')
for hit in self._get_hits():
self._format_hit(hit)
self.logger.debug('printing results...')
output = open(self.outputfile, 'w')
for line in self.record_lines:
output.write(line + '\n')
output.close()
self.logger.debug('finished printing results')
class Fasta(DefaultFormatter):
"""This Formatter is used to create FASTA output
"""
def __init__(self, logger, hitlist, outputfile):
"""Since the header contains information about the target sequences and must be
present before alignment lines, formatted lines are stored before printing.
"""
DefaultFormatter.__init__(self, logger, hitlist, outputfile)
self.sq_lines = {}
self.record_lines = []
def _set_name(self):
"""Name of the formatter. Used for logging"""
self.name = 'FASTA formatter'
def _format_hit(self, hit):
"""Adds a header line to self.sq_lines and an alignment line to self.record_lines.
The following mappings are used for header lines:
SN: hit.get_target_id()
LN: hit.full_target.original_length
"""
self.logger.debug('Formatting hit {0}'.format(hit.get_seq_id()))
self.record_lines.append(hit.get_full_fasta())
def print_results(self):
"""sets, formats and prints the results to a file."""
self.logger.info('formatting results...')
for hit in self._get_hits():
self._format_hit(hit)
self.logger.debug('printing results...')
output = open(self.outputfile, 'w')
for line in self.record_lines:
output.write(line + '\n')
output.close()
self.logger.debug('finished printing results') |
x:int = 1
o:object = None
x = o = 42
| x: int = 1
o: object = None
x = o = 42 |
m = int(input())
m = m % 1440
a = m // 60
b = m % 60
print(a, b)
| m = int(input())
m = m % 1440
a = m // 60
b = m % 60
print(a, b) |
# by Kami Bigdely
# Remove control flag
# Reference: https://stackoverflow.com/a/10140333/81306
# This code snippet reads up to the end of the file
n = 16
file = 'foobar.file'
def readfile(file, n):
with open(file, 'rb') as fp:
chunk = fp.read(n)
if chunk == '': # end of file, stop running.
return
print(chunk)
# process(chunk)
readfile(file, n) | n = 16
file = 'foobar.file'
def readfile(file, n):
with open(file, 'rb') as fp:
chunk = fp.read(n)
if chunk == '':
return
print(chunk)
readfile(file, n) |
class Solution:
def minDeletionSize(self, A: List[str]) -> int:
res = 0
for col_str in zip(*A):
if list(col_str) != sorted(col_str):
res += 1
return res
| class Solution:
def min_deletion_size(self, A: List[str]) -> int:
res = 0
for col_str in zip(*A):
if list(col_str) != sorted(col_str):
res += 1
return res |
_base_ = [
'../_base_/models/simmim_swin-base.py',
'../_base_/datasets/imagenet_simmim.py',
'../_base_/schedules/adamw_coslr-200e_in1k.py',
'../_base_/default_runtime.py',
]
# data
data = dict(samples_per_gpu=128)
# optimizer
optimizer = dict(
lr=2e-4 * 2048 / 512,
betas=(0.9, 0.999),
eps=1e-8,
paramwise_options={
'norm': dict(weight_decay=0.),
'bias': dict(weight_decay=0.),
'absolute_pos_embed': dict(weight_decay=0.),
'relative_position_bias_table': dict(weight_decay=0.0)
})
# clip gradient
optimizer_config = dict(grad_clip=dict(max_norm=5.0))
# learning policy
lr_config = dict(
policy='CosineAnnealing',
min_lr=1e-5 * 2048 / 512,
warmup='linear',
warmup_iters=10,
warmup_ratio=1e-6 / 2e-4,
warmup_by_epoch=True,
by_epoch=False)
# mixed precision
fp16 = dict(loss_scale='dynamic')
# schedule
runner = dict(max_epochs=100)
# runtime
checkpoint_config = dict(interval=1, max_keep_ckpts=3, out_dir='')
persistent_workers = True
log_config = dict(
interval=100, hooks=[
dict(type='TextLoggerHook'),
])
| _base_ = ['../_base_/models/simmim_swin-base.py', '../_base_/datasets/imagenet_simmim.py', '../_base_/schedules/adamw_coslr-200e_in1k.py', '../_base_/default_runtime.py']
data = dict(samples_per_gpu=128)
optimizer = dict(lr=0.0002 * 2048 / 512, betas=(0.9, 0.999), eps=1e-08, paramwise_options={'norm': dict(weight_decay=0.0), 'bias': dict(weight_decay=0.0), 'absolute_pos_embed': dict(weight_decay=0.0), 'relative_position_bias_table': dict(weight_decay=0.0)})
optimizer_config = dict(grad_clip=dict(max_norm=5.0))
lr_config = dict(policy='CosineAnnealing', min_lr=1e-05 * 2048 / 512, warmup='linear', warmup_iters=10, warmup_ratio=1e-06 / 0.0002, warmup_by_epoch=True, by_epoch=False)
fp16 = dict(loss_scale='dynamic')
runner = dict(max_epochs=100)
checkpoint_config = dict(interval=1, max_keep_ckpts=3, out_dir='')
persistent_workers = True
log_config = dict(interval=100, hooks=[dict(type='TextLoggerHook')]) |
height = int(input())
for i in range(1,height+1):
for j in range(1, height+1):
if(i == height//2 or i == height or j == 1 or j == height and i >= height//2 or (j%2==1 and i<= height//2)):
print("*",end=" ")
else:
print(end=" ")
print()
# Sample Input :- 7
# Output :-
# * * * *
# * * * *
# * * * * * * *
# * *
# * *
# * *
# * * * * * * *
| height = int(input())
for i in range(1, height + 1):
for j in range(1, height + 1):
if i == height // 2 or i == height or j == 1 or (j == height and i >= height // 2) or (j % 2 == 1 and i <= height // 2):
print('*', end=' ')
else:
print(end=' ')
print() |
# Copyright (c) 2015-2020 Avere Systems, Inc. All Rights Reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in the project root for license information.
__version__ = "0.5.4.3"
__version_info__ = (0, 5, 4, 3)
| __version__ = '0.5.4.3'
__version_info__ = (0, 5, 4, 3) |
house = [ ['hallway', 14.35],
['kitchen', 15.0],
['living room', 19.0],
['bedroom', 12.5],
['bathroom', 8.75] ]
# Code the for loop
for x in house:
print(str(x[0]) + ' area is ' + str(x[1]) + 'm')
| house = [['hallway', 14.35], ['kitchen', 15.0], ['living room', 19.0], ['bedroom', 12.5], ['bathroom', 8.75]]
for x in house:
print(str(x[0]) + ' area is ' + str(x[1]) + 'm') |
lst = []
num = int(input("Input the number of items: "))
for n in range(num):
# Arguments for Ordinal Numbers in a Set
ord = str(n+1)
if n == 0:
ord += "st"
elif n == 1:
ord += "nd"
elif n == 2:
ord += "rd"
else:
ord += "th"
numbers = int(input("Enter the "+ ord +" value: "))
lst.append(numbers)
print("The sum of the values is: ", sum(lst))
print("The mean is equal to: ", float(sum(lst) / num))
| lst = []
num = int(input('Input the number of items: '))
for n in range(num):
ord = str(n + 1)
if n == 0:
ord += 'st'
elif n == 1:
ord += 'nd'
elif n == 2:
ord += 'rd'
else:
ord += 'th'
numbers = int(input('Enter the ' + ord + ' value: '))
lst.append(numbers)
print('The sum of the values is: ', sum(lst))
print('The mean is equal to: ', float(sum(lst) / num)) |
# Author: Konrad Lindenbach <[email protected]>,
# Emmanuel Odeke <[email protected]>
# Copyright (c) 2014
# Table name strings
MESSAGE_TABLE_KEY = "Message"
RECEIPIENT_TABLE_KEY = "Receipient"
MESSAGE_MARKER_TABLE_KEY = "MessageMarker"
MAX_NAME_LENGTH = 60 # Arbitrary value
MAX_BODY_LENGTH = 200 # Arbitrary value
MAX_ALIAS_LENGTH = 60 # Arbitrary value
MAX_TOKEN_LENGTH = 512 # Arbitrary value
MAX_SUBJECT_LENGTH = 80 # Arbitrary value
MAX_PROFILE_URI_LENGTH = 400 # Arbitrary value
| message_table_key = 'Message'
receipient_table_key = 'Receipient'
message_marker_table_key = 'MessageMarker'
max_name_length = 60
max_body_length = 200
max_alias_length = 60
max_token_length = 512
max_subject_length = 80
max_profile_uri_length = 400 |
CFG = {
"spatial_input": 2,
"spatial_output": 2,
"temporal_input": 8,
"temporal_output": 12,
"bins": [0, 0.01, 0.1, 1.2],
"noise_weight": [0.05, 1, 4, 8],
"noise_weight_eth": [0.175, 1.5, 4, 8],
}
| cfg = {'spatial_input': 2, 'spatial_output': 2, 'temporal_input': 8, 'temporal_output': 12, 'bins': [0, 0.01, 0.1, 1.2], 'noise_weight': [0.05, 1, 4, 8], 'noise_weight_eth': [0.175, 1.5, 4, 8]} |
def fullName(first_name, last_name):
return f'Your first name is {first_name} and last name is {last_name}'
print(fullName(first_name = 'Qaidjohar', last_name = 'Jawadwala'))
# name = fullName('Qaidjohar','Jawadwala')
# print(name) | def full_name(first_name, last_name):
return f'Your first name is {first_name} and last name is {last_name}'
print(full_name(first_name='Qaidjohar', last_name='Jawadwala')) |
iN = int(input())
a_list = list(map(int, input().split()))
multi4 = len([a for a in a_list if a % 4 == 0])
odd_num = len([a for a in a_list if a % 2 != 0])
even_num = len(a_list) - odd_num
not4 = even_num - multi4
if not4 >0 :
if odd_num <= multi4:
print("Yes")
else:
print("No")
else:
if odd_num <= multi4 + 1:
print("Yes")
else:
print("No")
| i_n = int(input())
a_list = list(map(int, input().split()))
multi4 = len([a for a in a_list if a % 4 == 0])
odd_num = len([a for a in a_list if a % 2 != 0])
even_num = len(a_list) - odd_num
not4 = even_num - multi4
if not4 > 0:
if odd_num <= multi4:
print('Yes')
else:
print('No')
elif odd_num <= multi4 + 1:
print('Yes')
else:
print('No') |
# Time complexity: O(n^3 log n + klogk)
# Space complexity: O(k)
class Solution:
def fourSum(self, nums: List[int], target: int) -> List[List[int]]:
nums.sort()
res = []
length = len(nums)
for i in range(0, length - 3):
if i != 0 and nums[i] == nums[i - 1]:
continue
for j in range(i + 1, length - 2):
if j != i + 1 and nums[j] == nums[j - 1]:
continue
sum = target - nums[i] - nums[j]
left, right = j + 1, length - 1
while left < right:
if nums[left] + nums[right] == sum:
res.append([nums[i], nums[j], nums[left], nums[right]])
right -= 1
left += 1
while left < right and nums[left] == nums[left - 1]:
left += 1
while left < right and nums[right] == nums[right + 1]:
right -= 1
elif nums[left] + nums[right] > sum:
right -= 1
else:
left += 1
return res | class Solution:
def four_sum(self, nums: List[int], target: int) -> List[List[int]]:
nums.sort()
res = []
length = len(nums)
for i in range(0, length - 3):
if i != 0 and nums[i] == nums[i - 1]:
continue
for j in range(i + 1, length - 2):
if j != i + 1 and nums[j] == nums[j - 1]:
continue
sum = target - nums[i] - nums[j]
(left, right) = (j + 1, length - 1)
while left < right:
if nums[left] + nums[right] == sum:
res.append([nums[i], nums[j], nums[left], nums[right]])
right -= 1
left += 1
while left < right and nums[left] == nums[left - 1]:
left += 1
while left < right and nums[right] == nums[right + 1]:
right -= 1
elif nums[left] + nums[right] > sum:
right -= 1
else:
left += 1
return res |
class Problem2:
def __init__(self, campoints=None, campoints_true = None, robposes=None):
self._campoints = campoints
self._robposes = robposes
self._campoints_true = campoints_true
@property
def campoints(self):
return self._campoints
@campoints.setter
def campoints(self, campoints):
self._campoints = campoints
@property
def campoints_true(self):
return self._campoints_true
@campoints_true.setter
def campoints_true(self, campoints_true):
self._campoints_true = campoints_true
@property
def robposes(self):
return self._robposes
@robposes.setter
def robposes(self, robposes):
self._robposes = robposes | class Problem2:
def __init__(self, campoints=None, campoints_true=None, robposes=None):
self._campoints = campoints
self._robposes = robposes
self._campoints_true = campoints_true
@property
def campoints(self):
return self._campoints
@campoints.setter
def campoints(self, campoints):
self._campoints = campoints
@property
def campoints_true(self):
return self._campoints_true
@campoints_true.setter
def campoints_true(self, campoints_true):
self._campoints_true = campoints_true
@property
def robposes(self):
return self._robposes
@robposes.setter
def robposes(self, robposes):
self._robposes = robposes |
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'conditions': [
['OS!="win"', {
'variables': {
'config_h_dir':
'.', # crafted for gcc/linux.
},
}, { # else, OS=="win"
'variables': {
'config_h_dir':
'src/vsprojects', # crafted for msvc.
},
'target_defaults': {
'msvs_disabled_warnings': [
4018, # signed/unsigned mismatch in comparison
4244, # implicit conversion, possible loss of data
4355, # 'this' used in base member initializer list
],
'defines!': [
'WIN32_LEAN_AND_MEAN', # Protobuf defines this itself.
],
},
}]
],
'targets': [
# The "lite" lib is about 1/7th the size of the heavy lib,
# but it doesn't support some of the more exotic features of
# protobufs, like reflection. To generate C++ code that can link
# against the lite version of the library, add the option line:
#
# option optimize_for = LITE_RUNTIME;
#
# to your .proto file.
{
'target_name': 'protobuf_lite',
'type': '<(library)',
'toolsets': ['host', 'target'],
'sources': [
'src/src/google/protobuf/stubs/common.h',
'src/src/google/protobuf/stubs/once.h',
'src/src/google/protobuf/extension_set.h',
'src/src/google/protobuf/generated_message_util.h',
'src/src/google/protobuf/message_lite.h',
'src/src/google/protobuf/repeated_field.h',
'src/src/google/protobuf/wire_format_lite.h',
'src/src/google/protobuf/wire_format_lite_inl.h',
'src/src/google/protobuf/io/coded_stream.h',
'src/src/google/protobuf/io/zero_copy_stream.h',
'src/src/google/protobuf/io/zero_copy_stream_impl_lite.h',
'src/src/google/protobuf/stubs/common.cc',
'src/src/google/protobuf/stubs/once.cc',
'src/src/google/protobuf/stubs/hash.cc',
'src/src/google/protobuf/stubs/hash.h',
'src/src/google/protobuf/stubs/map-util.h',
'src/src/google/protobuf/stubs/stl_util-inl.h',
'src/src/google/protobuf/extension_set.cc',
'src/src/google/protobuf/generated_message_util.cc',
'src/src/google/protobuf/message_lite.cc',
'src/src/google/protobuf/repeated_field.cc',
'src/src/google/protobuf/wire_format_lite.cc',
'src/src/google/protobuf/io/coded_stream.cc',
'src/src/google/protobuf/io/zero_copy_stream.cc',
'src/src/google/protobuf/io/zero_copy_stream_impl_lite.cc',
'<(config_h_dir)/config.h',
],
'include_dirs': [
'<(config_h_dir)',
'src/src',
],
# This macro must be defined to suppress the use of dynamic_cast<>,
# which requires RTTI.
'defines': [
'GOOGLE_PROTOBUF_NO_RTTI',
],
'direct_dependent_settings': {
'include_dirs': [
'<(config_h_dir)',
'src/src',
],
'defines': [
'GOOGLE_PROTOBUF_NO_RTTI',
],
},
},
# This is the full, heavy protobuf lib that's needed for c++ .proto's
# that don't specify the LITE_RUNTIME option. The protocol
# compiler itself (protoc) falls into that category.
{
'target_name': 'protobuf',
'type': '<(library)',
'toolsets': ['host'],
'sources': [
'src/src/google/protobuf/descriptor.h',
'src/src/google/protobuf/descriptor.pb.h',
'src/src/google/protobuf/descriptor_database.h',
'src/src/google/protobuf/dynamic_message.h',
'src/src/google/protobuf/generated_message_reflection.h',
'src/src/google/protobuf/message.h',
'src/src/google/protobuf/reflection_ops.h',
'src/src/google/protobuf/service.h',
'src/src/google/protobuf/text_format.h',
'src/src/google/protobuf/unknown_field_set.h',
'src/src/google/protobuf/wire_format.h',
'src/src/google/protobuf/wire_format_inl.h',
'src/src/google/protobuf/io/gzip_stream.h',
'src/src/google/protobuf/io/printer.h',
'src/src/google/protobuf/io/tokenizer.h',
'src/src/google/protobuf/io/zero_copy_stream_impl.h',
'src/src/google/protobuf/compiler/code_generator.h',
'src/src/google/protobuf/compiler/command_line_interface.h',
'src/src/google/protobuf/compiler/importer.h',
'src/src/google/protobuf/compiler/parser.h',
'src/src/google/protobuf/stubs/substitute.cc',
'src/src/google/protobuf/stubs/substitute.h',
'src/src/google/protobuf/stubs/strutil.cc',
'src/src/google/protobuf/stubs/strutil.h',
'src/src/google/protobuf/stubs/structurally_valid.cc',
'src/src/google/protobuf/descriptor.cc',
'src/src/google/protobuf/descriptor.pb.cc',
'src/src/google/protobuf/descriptor_database.cc',
'src/src/google/protobuf/dynamic_message.cc',
'src/src/google/protobuf/extension_set_heavy.cc',
'src/src/google/protobuf/generated_message_reflection.cc',
'src/src/google/protobuf/message.cc',
'src/src/google/protobuf/reflection_ops.cc',
'src/src/google/protobuf/service.cc',
'src/src/google/protobuf/text_format.cc',
'src/src/google/protobuf/unknown_field_set.cc',
'src/src/google/protobuf/wire_format.cc',
# This file pulls in zlib, but it's not actually used by protoc, so
# instead of compiling zlib for the host, let's just exclude this.
# 'src/src/google/protobuf/io/gzip_stream.cc',
'src/src/google/protobuf/io/printer.cc',
'src/src/google/protobuf/io/tokenizer.cc',
'src/src/google/protobuf/io/zero_copy_stream_impl.cc',
'src/src/google/protobuf/compiler/importer.cc',
'src/src/google/protobuf/compiler/parser.cc',
],
'dependencies': [
'protobuf_lite',
],
'export_dependent_settings': [
'protobuf_lite',
],
},
{
'target_name': 'protoc',
'type': 'executable',
'toolsets': ['host'],
'sources': [
'src/src/google/protobuf/compiler/code_generator.cc',
'src/src/google/protobuf/compiler/command_line_interface.cc',
'src/src/google/protobuf/compiler/cpp/cpp_enum.cc',
'src/src/google/protobuf/compiler/cpp/cpp_enum.h',
'src/src/google/protobuf/compiler/cpp/cpp_enum_field.cc',
'src/src/google/protobuf/compiler/cpp/cpp_enum_field.h',
'src/src/google/protobuf/compiler/cpp/cpp_extension.cc',
'src/src/google/protobuf/compiler/cpp/cpp_extension.h',
'src/src/google/protobuf/compiler/cpp/cpp_field.cc',
'src/src/google/protobuf/compiler/cpp/cpp_field.h',
'src/src/google/protobuf/compiler/cpp/cpp_file.cc',
'src/src/google/protobuf/compiler/cpp/cpp_file.h',
'src/src/google/protobuf/compiler/cpp/cpp_generator.cc',
'src/src/google/protobuf/compiler/cpp/cpp_helpers.cc',
'src/src/google/protobuf/compiler/cpp/cpp_helpers.h',
'src/src/google/protobuf/compiler/cpp/cpp_message.cc',
'src/src/google/protobuf/compiler/cpp/cpp_message.h',
'src/src/google/protobuf/compiler/cpp/cpp_message_field.cc',
'src/src/google/protobuf/compiler/cpp/cpp_message_field.h',
'src/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc',
'src/src/google/protobuf/compiler/cpp/cpp_primitive_field.h',
'src/src/google/protobuf/compiler/cpp/cpp_service.cc',
'src/src/google/protobuf/compiler/cpp/cpp_service.h',
'src/src/google/protobuf/compiler/cpp/cpp_string_field.cc',
'src/src/google/protobuf/compiler/cpp/cpp_string_field.h',
'src/src/google/protobuf/compiler/java/java_enum.cc',
'src/src/google/protobuf/compiler/java/java_enum.h',
'src/src/google/protobuf/compiler/java/java_enum_field.cc',
'src/src/google/protobuf/compiler/java/java_enum_field.h',
'src/src/google/protobuf/compiler/java/java_extension.cc',
'src/src/google/protobuf/compiler/java/java_extension.h',
'src/src/google/protobuf/compiler/java/java_field.cc',
'src/src/google/protobuf/compiler/java/java_field.h',
'src/src/google/protobuf/compiler/java/java_file.cc',
'src/src/google/protobuf/compiler/java/java_file.h',
'src/src/google/protobuf/compiler/java/java_generator.cc',
'src/src/google/protobuf/compiler/java/java_helpers.cc',
'src/src/google/protobuf/compiler/java/java_helpers.h',
'src/src/google/protobuf/compiler/java/java_message.cc',
'src/src/google/protobuf/compiler/java/java_message.h',
'src/src/google/protobuf/compiler/java/java_message_field.cc',
'src/src/google/protobuf/compiler/java/java_message_field.h',
'src/src/google/protobuf/compiler/java/java_primitive_field.cc',
'src/src/google/protobuf/compiler/java/java_primitive_field.h',
'src/src/google/protobuf/compiler/java/java_service.cc',
'src/src/google/protobuf/compiler/java/java_service.h',
'src/src/google/protobuf/compiler/python/python_generator.cc',
'src/src/google/protobuf/compiler/main.cc',
],
'dependencies': [
'protobuf',
],
'include_dirs': [
'<(config_h_dir)',
'src/src',
],
},
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:
| {'conditions': [['OS!="win"', {'variables': {'config_h_dir': '.'}}, {'variables': {'config_h_dir': 'src/vsprojects'}, 'target_defaults': {'msvs_disabled_warnings': [4018, 4244, 4355], 'defines!': ['WIN32_LEAN_AND_MEAN']}}]], 'targets': [{'target_name': 'protobuf_lite', 'type': '<(library)', 'toolsets': ['host', 'target'], 'sources': ['src/src/google/protobuf/stubs/common.h', 'src/src/google/protobuf/stubs/once.h', 'src/src/google/protobuf/extension_set.h', 'src/src/google/protobuf/generated_message_util.h', 'src/src/google/protobuf/message_lite.h', 'src/src/google/protobuf/repeated_field.h', 'src/src/google/protobuf/wire_format_lite.h', 'src/src/google/protobuf/wire_format_lite_inl.h', 'src/src/google/protobuf/io/coded_stream.h', 'src/src/google/protobuf/io/zero_copy_stream.h', 'src/src/google/protobuf/io/zero_copy_stream_impl_lite.h', 'src/src/google/protobuf/stubs/common.cc', 'src/src/google/protobuf/stubs/once.cc', 'src/src/google/protobuf/stubs/hash.cc', 'src/src/google/protobuf/stubs/hash.h', 'src/src/google/protobuf/stubs/map-util.h', 'src/src/google/protobuf/stubs/stl_util-inl.h', 'src/src/google/protobuf/extension_set.cc', 'src/src/google/protobuf/generated_message_util.cc', 'src/src/google/protobuf/message_lite.cc', 'src/src/google/protobuf/repeated_field.cc', 'src/src/google/protobuf/wire_format_lite.cc', 'src/src/google/protobuf/io/coded_stream.cc', 'src/src/google/protobuf/io/zero_copy_stream.cc', 'src/src/google/protobuf/io/zero_copy_stream_impl_lite.cc', '<(config_h_dir)/config.h'], 'include_dirs': ['<(config_h_dir)', 'src/src'], 'defines': ['GOOGLE_PROTOBUF_NO_RTTI'], 'direct_dependent_settings': {'include_dirs': ['<(config_h_dir)', 'src/src'], 'defines': ['GOOGLE_PROTOBUF_NO_RTTI']}}, {'target_name': 'protobuf', 'type': '<(library)', 'toolsets': ['host'], 'sources': ['src/src/google/protobuf/descriptor.h', 'src/src/google/protobuf/descriptor.pb.h', 'src/src/google/protobuf/descriptor_database.h', 'src/src/google/protobuf/dynamic_message.h', 'src/src/google/protobuf/generated_message_reflection.h', 'src/src/google/protobuf/message.h', 'src/src/google/protobuf/reflection_ops.h', 'src/src/google/protobuf/service.h', 'src/src/google/protobuf/text_format.h', 'src/src/google/protobuf/unknown_field_set.h', 'src/src/google/protobuf/wire_format.h', 'src/src/google/protobuf/wire_format_inl.h', 'src/src/google/protobuf/io/gzip_stream.h', 'src/src/google/protobuf/io/printer.h', 'src/src/google/protobuf/io/tokenizer.h', 'src/src/google/protobuf/io/zero_copy_stream_impl.h', 'src/src/google/protobuf/compiler/code_generator.h', 'src/src/google/protobuf/compiler/command_line_interface.h', 'src/src/google/protobuf/compiler/importer.h', 'src/src/google/protobuf/compiler/parser.h', 'src/src/google/protobuf/stubs/substitute.cc', 'src/src/google/protobuf/stubs/substitute.h', 'src/src/google/protobuf/stubs/strutil.cc', 'src/src/google/protobuf/stubs/strutil.h', 'src/src/google/protobuf/stubs/structurally_valid.cc', 'src/src/google/protobuf/descriptor.cc', 'src/src/google/protobuf/descriptor.pb.cc', 'src/src/google/protobuf/descriptor_database.cc', 'src/src/google/protobuf/dynamic_message.cc', 'src/src/google/protobuf/extension_set_heavy.cc', 'src/src/google/protobuf/generated_message_reflection.cc', 'src/src/google/protobuf/message.cc', 'src/src/google/protobuf/reflection_ops.cc', 'src/src/google/protobuf/service.cc', 'src/src/google/protobuf/text_format.cc', 'src/src/google/protobuf/unknown_field_set.cc', 'src/src/google/protobuf/wire_format.cc', 'src/src/google/protobuf/io/printer.cc', 'src/src/google/protobuf/io/tokenizer.cc', 'src/src/google/protobuf/io/zero_copy_stream_impl.cc', 'src/src/google/protobuf/compiler/importer.cc', 'src/src/google/protobuf/compiler/parser.cc'], 'dependencies': ['protobuf_lite'], 'export_dependent_settings': ['protobuf_lite']}, {'target_name': 'protoc', 'type': 'executable', 'toolsets': ['host'], 'sources': ['src/src/google/protobuf/compiler/code_generator.cc', 'src/src/google/protobuf/compiler/command_line_interface.cc', 'src/src/google/protobuf/compiler/cpp/cpp_enum.cc', 'src/src/google/protobuf/compiler/cpp/cpp_enum.h', 'src/src/google/protobuf/compiler/cpp/cpp_enum_field.cc', 'src/src/google/protobuf/compiler/cpp/cpp_enum_field.h', 'src/src/google/protobuf/compiler/cpp/cpp_extension.cc', 'src/src/google/protobuf/compiler/cpp/cpp_extension.h', 'src/src/google/protobuf/compiler/cpp/cpp_field.cc', 'src/src/google/protobuf/compiler/cpp/cpp_field.h', 'src/src/google/protobuf/compiler/cpp/cpp_file.cc', 'src/src/google/protobuf/compiler/cpp/cpp_file.h', 'src/src/google/protobuf/compiler/cpp/cpp_generator.cc', 'src/src/google/protobuf/compiler/cpp/cpp_helpers.cc', 'src/src/google/protobuf/compiler/cpp/cpp_helpers.h', 'src/src/google/protobuf/compiler/cpp/cpp_message.cc', 'src/src/google/protobuf/compiler/cpp/cpp_message.h', 'src/src/google/protobuf/compiler/cpp/cpp_message_field.cc', 'src/src/google/protobuf/compiler/cpp/cpp_message_field.h', 'src/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc', 'src/src/google/protobuf/compiler/cpp/cpp_primitive_field.h', 'src/src/google/protobuf/compiler/cpp/cpp_service.cc', 'src/src/google/protobuf/compiler/cpp/cpp_service.h', 'src/src/google/protobuf/compiler/cpp/cpp_string_field.cc', 'src/src/google/protobuf/compiler/cpp/cpp_string_field.h', 'src/src/google/protobuf/compiler/java/java_enum.cc', 'src/src/google/protobuf/compiler/java/java_enum.h', 'src/src/google/protobuf/compiler/java/java_enum_field.cc', 'src/src/google/protobuf/compiler/java/java_enum_field.h', 'src/src/google/protobuf/compiler/java/java_extension.cc', 'src/src/google/protobuf/compiler/java/java_extension.h', 'src/src/google/protobuf/compiler/java/java_field.cc', 'src/src/google/protobuf/compiler/java/java_field.h', 'src/src/google/protobuf/compiler/java/java_file.cc', 'src/src/google/protobuf/compiler/java/java_file.h', 'src/src/google/protobuf/compiler/java/java_generator.cc', 'src/src/google/protobuf/compiler/java/java_helpers.cc', 'src/src/google/protobuf/compiler/java/java_helpers.h', 'src/src/google/protobuf/compiler/java/java_message.cc', 'src/src/google/protobuf/compiler/java/java_message.h', 'src/src/google/protobuf/compiler/java/java_message_field.cc', 'src/src/google/protobuf/compiler/java/java_message_field.h', 'src/src/google/protobuf/compiler/java/java_primitive_field.cc', 'src/src/google/protobuf/compiler/java/java_primitive_field.h', 'src/src/google/protobuf/compiler/java/java_service.cc', 'src/src/google/protobuf/compiler/java/java_service.h', 'src/src/google/protobuf/compiler/python/python_generator.cc', 'src/src/google/protobuf/compiler/main.cc'], 'dependencies': ['protobuf'], 'include_dirs': ['<(config_h_dir)', 'src/src']}]} |
# https://leetcode.com/problems/binary-tree-preorder-traversal
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def preorderTraversal(self, root: Optional[TreeNode]) -> List[int]:
if root is None:
return []
acc = [root.val]
acc.extend(self.preorderTraversal(root.left))
acc.extend(self.preorderTraversal(root.right))
return acc
| class Solution:
def preorder_traversal(self, root: Optional[TreeNode]) -> List[int]:
if root is None:
return []
acc = [root.val]
acc.extend(self.preorderTraversal(root.left))
acc.extend(self.preorderTraversal(root.right))
return acc |
class Solution:
def get_num(self, s, start):
index = start
while index < len(s) and s[index].isdigit():
index += 1
return int(s[start:index]), index
def calculate_helper(self, s, start):
result, sign, index = 0, 1, start
operator = ['+', '-']
while index < len(s):
if s[index].isdigit():
num, index = self.get_num(s, index)
elif s[index] in operator:
result += sign * num
sign = (-1, 1)[s[index] == "+"]
index += 1
elif s[index] == ' ':
index += 1
elif s[index] == '(':
num, index = self.calculate_helper(s, index+1)
elif s[index] == ')':
break
result += sign * num
return result, index + 1
def calculate(self, s):
return self.calculate_helper(s, 0)[0]
def calculate2(self, s):
result, num, sign, stack = 0, 0, 1, []
operator = ['-', '+']
for char in s:
if char.isdigit():
num = 10 * num + int(char)
elif char in operator:
result += sign * num
num = 0
sign = (-1, 1)[char == "+"]
elif char == "(":
stack.append(result)
stack.append(sign)
result, sign = 0, 1
elif char == ")":
result += sign * num
result *= stack.pop()
result += stack.pop()
num = 0
return result + num * sign
| class Solution:
def get_num(self, s, start):
index = start
while index < len(s) and s[index].isdigit():
index += 1
return (int(s[start:index]), index)
def calculate_helper(self, s, start):
(result, sign, index) = (0, 1, start)
operator = ['+', '-']
while index < len(s):
if s[index].isdigit():
(num, index) = self.get_num(s, index)
elif s[index] in operator:
result += sign * num
sign = (-1, 1)[s[index] == '+']
index += 1
elif s[index] == ' ':
index += 1
elif s[index] == '(':
(num, index) = self.calculate_helper(s, index + 1)
elif s[index] == ')':
break
result += sign * num
return (result, index + 1)
def calculate(self, s):
return self.calculate_helper(s, 0)[0]
def calculate2(self, s):
(result, num, sign, stack) = (0, 0, 1, [])
operator = ['-', '+']
for char in s:
if char.isdigit():
num = 10 * num + int(char)
elif char in operator:
result += sign * num
num = 0
sign = (-1, 1)[char == '+']
elif char == '(':
stack.append(result)
stack.append(sign)
(result, sign) = (0, 1)
elif char == ')':
result += sign * num
result *= stack.pop()
result += stack.pop()
num = 0
return result + num * sign |
text = "zeub"
hexa = ""
for i in text:
hexa += str(hex(ord(i)))[2:].zfill(4)
print(hexa)
hexa = "002B00330033003600380039003000300034003000300030" #YOLOO
hexa = [hexa[i:i+4] for i in range(0, len(hexa), 4)]
text=""
for i in hexa:
text+=chr(int(i, 16))
print(text) | text = 'zeub\x1a'
hexa = ''
for i in text:
hexa += str(hex(ord(i)))[2:].zfill(4)
print(hexa)
hexa = '002B00330033003600380039003000300034003000300030'
hexa = [hexa[i:i + 4] for i in range(0, len(hexa), 4)]
text = ''
for i in hexa:
text += chr(int(i, 16))
print(text) |
class Node:
def __init__(self, value: int) -> None:
self.value = value
self.left = None
self.right = None
class BinarySearchTree:
def __init__(self) -> None:
self.root = None
def insert(self, value: int) -> bool:
new_node = Node(value)
if self.root is None:
self.root = new_node
return True
temp = self.root
while (True):
if new_node.value == temp.value:
return False
if new_node.value < temp.value:
if temp.left is None:
temp.left = new_node
return True
temp = temp.left
else:
if temp.right is None:
temp.right = new_node
return True
temp = temp.right
my_tree = BinarySearchTree()
my_tree.insert(2)
my_tree.insert(1)
my_tree.insert(3)
print(my_tree.root.value)
print(my_tree.root.left.value)
print(my_tree.root.right.value)
| class Node:
def __init__(self, value: int) -> None:
self.value = value
self.left = None
self.right = None
class Binarysearchtree:
def __init__(self) -> None:
self.root = None
def insert(self, value: int) -> bool:
new_node = node(value)
if self.root is None:
self.root = new_node
return True
temp = self.root
while True:
if new_node.value == temp.value:
return False
if new_node.value < temp.value:
if temp.left is None:
temp.left = new_node
return True
temp = temp.left
else:
if temp.right is None:
temp.right = new_node
return True
temp = temp.right
my_tree = binary_search_tree()
my_tree.insert(2)
my_tree.insert(1)
my_tree.insert(3)
print(my_tree.root.value)
print(my_tree.root.left.value)
print(my_tree.root.right.value) |
class ArrayStack:
def __init__(self):
self.data = []
def isEmpty(self):
return len(self.data) == 0
def push(self, val):
return self.data.append(val)
def pop(self):
if self.isEmpty():
raise Empty("Stack underflow!")
return self.data.pop()
def peek(self):
if self.isEmpty():
raise Empty("Stack is empty!")
return self.data[-1]
def longestSubstring(expr):
stk = ArrayStack()
subLen = 0
prevLen = 0
for c in expr:
if c == '(':
stk.push(c)
if subLen:
prevLen = subLen
subLen = 0
print(subLen, prevLen)
elif c == ')':
if stk.isEmpty():
if prevLen < subLen:
prevLen = subLen
subLen = 0
print(subLen, prevLen)
else:
stk.pop()
subLen += 2
print(subLen)
print("end", subLen, prevLen)
if stk.isEmpty():
return subLen+prevLen
elif subLen > prevLen:
return subLen
else:
return prevLen
print("length of - ()(())", longestSubstring("()(())"))
#print("length of - ((((", longestSubstring("(((("))
#print("length of - ()()()", longestSubstring("()()()"))
#print("length of -", longestSubstring(""))
| class Arraystack:
def __init__(self):
self.data = []
def is_empty(self):
return len(self.data) == 0
def push(self, val):
return self.data.append(val)
def pop(self):
if self.isEmpty():
raise empty('Stack underflow!')
return self.data.pop()
def peek(self):
if self.isEmpty():
raise empty('Stack is empty!')
return self.data[-1]
def longest_substring(expr):
stk = array_stack()
sub_len = 0
prev_len = 0
for c in expr:
if c == '(':
stk.push(c)
if subLen:
prev_len = subLen
sub_len = 0
print(subLen, prevLen)
elif c == ')':
if stk.isEmpty():
if prevLen < subLen:
prev_len = subLen
sub_len = 0
print(subLen, prevLen)
else:
stk.pop()
sub_len += 2
print(subLen)
print('end', subLen, prevLen)
if stk.isEmpty():
return subLen + prevLen
elif subLen > prevLen:
return subLen
else:
return prevLen
print('length of - ()(())', longest_substring('()(())')) |
arr = []
b = False
with open("input","r") as f:
for i in f.readlines():
arr = arr + [int(i.rstrip("\n"))]
length = len(arr)
for i in range(0,length):
for j in range(0,length):
for k in range(0,length):
if (arr[i]+arr[j]+arr[k] == 2020):
print("Result = ", arr[i]*arr[j]*arr[k])
b = True
if (b):
break
| arr = []
b = False
with open('input', 'r') as f:
for i in f.readlines():
arr = arr + [int(i.rstrip('\n'))]
length = len(arr)
for i in range(0, length):
for j in range(0, length):
for k in range(0, length):
if arr[i] + arr[j] + arr[k] == 2020:
print('Result = ', arr[i] * arr[j] * arr[k])
b = True
if b:
break |
def classify(number):
return _classify(number) if number != 1 else 'deficient'
def _classify(number) -> str:
classif: str
aliquot: int = _aliquot(number)
if aliquot > number:
classif = 'abundant'
elif aliquot < number:
classif = 'deficient'
else:
classif = 'perfect'
return classif
def _factor_gen(number):
yield 1 # always a divisor
for n in range(2, int(number ** 0.5) + 1):
if number % n == 0: # is a divisor
yield n
if n * n != number: # is a divisor and not the square root
yield number // n
def _aliquot(number) -> int:
if number < 1: raise ValueError('invalid number')
return sum(_factor_gen(number))
| def classify(number):
return _classify(number) if number != 1 else 'deficient'
def _classify(number) -> str:
classif: str
aliquot: int = _aliquot(number)
if aliquot > number:
classif = 'abundant'
elif aliquot < number:
classif = 'deficient'
else:
classif = 'perfect'
return classif
def _factor_gen(number):
yield 1
for n in range(2, int(number ** 0.5) + 1):
if number % n == 0:
yield n
if n * n != number:
yield (number // n)
def _aliquot(number) -> int:
if number < 1:
raise value_error('invalid number')
return sum(_factor_gen(number)) |
def f(a):
a += 2
return a
b = 1
b = f(b)
print(b)
| def f(a):
a += 2
return a
b = 1
b = f(b)
print(b) |
db = "https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-counties.csv"
# database file downloaded from
# https://www.weather.gov/source/gis/Shapefiles/County/c_03mr20.zip
# to get the lat and long values for US counties
dbf = "./c_03mr20.dbf"
| db = 'https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-counties.csv'
dbf = './c_03mr20.dbf' |
load(
"@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl",
"action_config",
"feature",
"flag_group",
"flag_set",
"tool",
"tool_path",
"with_feature_set",
)
load("@bazel_tools//tools/build_defs/cc:action_names.bzl", "ACTION_NAMES")
def _impl(ctx):
if (ctx.attr.cpu == "k8" and ctx.attr.compiler == "clang7"):
toolchain_identifier = "clang7_toolchain"
else:
fail("Unreachable")
host_system_name = "local"
target_system_name = "local"
target_cpu = "k8"
target_libc = "local"
if (ctx.attr.cpu == "k8" and ctx.attr.compiler == "clang7"):
compiler = "clang7"
else:
fail("Unreachable")
abi_version = "local"
abi_libc_version = "local"
cc_target_os = None
builtin_sysroot = None
all_compile_actions = [
ACTION_NAMES.c_compile,
ACTION_NAMES.cpp_compile,
ACTION_NAMES.linkstamp_compile,
ACTION_NAMES.assemble,
ACTION_NAMES.preprocess_assemble,
ACTION_NAMES.cpp_header_parsing,
ACTION_NAMES.cpp_module_compile,
ACTION_NAMES.cpp_module_codegen,
ACTION_NAMES.clif_match,
ACTION_NAMES.lto_backend,
]
all_cpp_compile_actions = [
ACTION_NAMES.cpp_compile,
ACTION_NAMES.linkstamp_compile,
ACTION_NAMES.cpp_header_parsing,
ACTION_NAMES.cpp_module_compile,
ACTION_NAMES.cpp_module_codegen,
ACTION_NAMES.clif_match,
]
preprocessor_compile_actions = [
ACTION_NAMES.c_compile,
ACTION_NAMES.cpp_compile,
ACTION_NAMES.linkstamp_compile,
ACTION_NAMES.preprocess_assemble,
ACTION_NAMES.cpp_header_parsing,
ACTION_NAMES.cpp_module_compile,
ACTION_NAMES.clif_match,
]
codegen_compile_actions = [
ACTION_NAMES.c_compile,
ACTION_NAMES.cpp_compile,
ACTION_NAMES.linkstamp_compile,
ACTION_NAMES.assemble,
ACTION_NAMES.preprocess_assemble,
ACTION_NAMES.cpp_module_codegen,
ACTION_NAMES.lto_backend,
]
all_link_actions = [
ACTION_NAMES.cpp_link_executable,
ACTION_NAMES.cpp_link_dynamic_library,
ACTION_NAMES.cpp_link_nodeps_dynamic_library,
]
objcopy_embed_data_action = action_config(
action_name = "objcopy_embed_data",
enabled = True,
tools = [tool(path = "/usr/bin/objcopy")],
)
action_configs = [objcopy_embed_data_action]
supports_pic_feature = feature(name = "supports_pic", enabled = True)
objcopy_embed_flags_feature = feature(
name = "objcopy_embed_flags",
enabled = True,
flag_sets = [
flag_set(
actions = ["objcopy_embed_data"],
flag_groups = [flag_group(flags = ["-I", "binary"])],
),
],
)
dbg_feature = feature(name = "dbg")
sysroot_feature = feature(
name = "sysroot",
enabled = True,
flag_sets = [
flag_set(
actions = [
ACTION_NAMES.preprocess_assemble,
ACTION_NAMES.linkstamp_compile,
ACTION_NAMES.c_compile,
ACTION_NAMES.cpp_compile,
ACTION_NAMES.cpp_header_parsing,
ACTION_NAMES.cpp_module_compile,
ACTION_NAMES.cpp_module_codegen,
ACTION_NAMES.lto_backend,
ACTION_NAMES.clif_match,
ACTION_NAMES.cpp_link_executable,
ACTION_NAMES.cpp_link_dynamic_library,
ACTION_NAMES.cpp_link_nodeps_dynamic_library,
],
flag_groups = [
flag_group(
flags = ["--sysroot=%{sysroot}"],
expand_if_available = "sysroot",
),
],
),
],
)
if (ctx.attr.cpu == "k8" and ctx.attr.compiler == "clang7"):
unfiltered_compile_flags_feature = feature(
name = "unfiltered_compile_flags",
enabled = True,
flag_sets = [
flag_set(
actions = [
ACTION_NAMES.assemble,
ACTION_NAMES.preprocess_assemble,
ACTION_NAMES.linkstamp_compile,
ACTION_NAMES.c_compile,
ACTION_NAMES.cpp_compile,
ACTION_NAMES.cpp_header_parsing,
ACTION_NAMES.cpp_module_compile,
ACTION_NAMES.cpp_module_codegen,
ACTION_NAMES.lto_backend,
ACTION_NAMES.clif_match,
],
flag_groups = [
flag_group(
flags = [
"-Wno-deprecated-declarations",
"-Wno-builtin-macro-redefined",
"-D__DATE__=\"redacted\"",
"-D__TIMESTAMP__=\"redacted\"",
"-D__TIME__=\"redacted\"",
],
),
],
),
],
)
else:
unfiltered_compile_flags_feature = None
if (ctx.attr.cpu == "k8" and ctx.attr.compiler == "clang7"):
default_link_flags_feature = feature(
name = "default_link_flags",
enabled = True,
flag_sets = [
flag_set(
actions = all_link_actions,
flag_groups = [
flag_group(
flags = [
"-lstdc++",
"-lm",
"-fuse-ld=gold",
"-Wl,-no-as-needed",
"-Wl,-z,relro,-z,now",
"-B/usr/bin",
"-B/usr/bin",
],
),
],
),
flag_set(
actions = all_link_actions,
flag_groups = [flag_group(flags = ["-Wl,--gc-sections"])],
with_features = [with_feature_set(features = ["opt"])],
),
],
)
else:
default_link_flags_feature = None
coverage_feature = feature(
name = "coverage",
flag_sets = [
flag_set(
actions = [
ACTION_NAMES.preprocess_assemble,
ACTION_NAMES.c_compile,
ACTION_NAMES.cpp_compile,
ACTION_NAMES.cpp_header_parsing,
"c++-header-preprocessing",
ACTION_NAMES.cpp_module_compile,
],
flag_groups = [flag_group(flags = ["-fprofile-arcs", "-ftest-coverage"])],
),
flag_set(
actions = [
"c++-link-interface-dynamic-library",
ACTION_NAMES.cpp_link_dynamic_library,
ACTION_NAMES.cpp_link_executable,
],
flag_groups = [flag_group(flags = ["-lgcov"])],
),
],
provides = ["profile"],
)
supports_start_end_lib_feature = feature(name = "supports_start_end_lib", enabled = True)
opt_feature = feature(name = "opt")
fastbuild_feature = feature(name = "fastbuild")
user_compile_flags_feature = feature(
name = "user_compile_flags",
enabled = True,
flag_sets = [
flag_set(
actions = [
ACTION_NAMES.assemble,
ACTION_NAMES.preprocess_assemble,
ACTION_NAMES.linkstamp_compile,
ACTION_NAMES.c_compile,
ACTION_NAMES.cpp_compile,
ACTION_NAMES.cpp_header_parsing,
ACTION_NAMES.cpp_module_compile,
ACTION_NAMES.cpp_module_codegen,
ACTION_NAMES.lto_backend,
ACTION_NAMES.clif_match,
],
flag_groups = [
flag_group(
flags = ["%{user_compile_flags}"],
iterate_over = "user_compile_flags",
expand_if_available = "user_compile_flags",
),
],
),
],
)
if (ctx.attr.cpu == "k8" and ctx.attr.compiler == "clang7"):
default_compile_flags_feature = feature(
name = "default_compile_flags",
enabled = True,
flag_sets = [
flag_set(
actions = [
ACTION_NAMES.assemble,
ACTION_NAMES.preprocess_assemble,
ACTION_NAMES.linkstamp_compile,
ACTION_NAMES.c_compile,
ACTION_NAMES.cpp_compile,
ACTION_NAMES.cpp_header_parsing,
ACTION_NAMES.cpp_module_compile,
ACTION_NAMES.cpp_module_codegen,
ACTION_NAMES.lto_backend,
ACTION_NAMES.clif_match,
],
flag_groups = [
flag_group(
flags = [
"-U_FORTIFY_SOURCE",
"-fstack-protector",
"-Wall",
"-B/usr/bin",
"-B/usr/bin",
"-fno-omit-frame-pointer",
"-fcolor-diagnostics",
],
),
],
),
flag_set(
actions = [
ACTION_NAMES.assemble,
ACTION_NAMES.preprocess_assemble,
ACTION_NAMES.linkstamp_compile,
ACTION_NAMES.c_compile,
ACTION_NAMES.cpp_compile,
ACTION_NAMES.cpp_header_parsing,
ACTION_NAMES.cpp_module_compile,
ACTION_NAMES.cpp_module_codegen,
ACTION_NAMES.lto_backend,
ACTION_NAMES.clif_match,
],
flag_groups = [flag_group(flags = ["-g"])],
with_features = [with_feature_set(features = ["dbg"])],
),
flag_set(
actions = [
ACTION_NAMES.assemble,
ACTION_NAMES.preprocess_assemble,
ACTION_NAMES.linkstamp_compile,
ACTION_NAMES.c_compile,
ACTION_NAMES.cpp_compile,
ACTION_NAMES.cpp_header_parsing,
ACTION_NAMES.cpp_module_compile,
ACTION_NAMES.cpp_module_codegen,
ACTION_NAMES.lto_backend,
ACTION_NAMES.clif_match,
],
flag_groups = [
flag_group(
flags = [
"-ggdb",
"-O2",
"-D_FORTIFY_SOURCE=1",
"-DNDEBUG",
"-ffunction-sections",
"-fdata-sections",
],
),
],
with_features = [with_feature_set(features = ["opt"])],
),
flag_set(
actions = [
ACTION_NAMES.assemble,
ACTION_NAMES.preprocess_assemble,
ACTION_NAMES.linkstamp_compile,
ACTION_NAMES.c_compile,
ACTION_NAMES.cpp_compile,
ACTION_NAMES.cpp_header_parsing,
ACTION_NAMES.cpp_module_compile,
ACTION_NAMES.cpp_module_codegen,
ACTION_NAMES.lto_backend,
ACTION_NAMES.clif_match,
],
flag_groups = [flag_group(flags = ["-g"])],
with_features = [with_feature_set(features = ["fastbuild"])],
),
flag_set(
actions = [
ACTION_NAMES.linkstamp_compile,
ACTION_NAMES.cpp_compile,
ACTION_NAMES.cpp_header_parsing,
ACTION_NAMES.cpp_module_compile,
ACTION_NAMES.cpp_module_codegen,
ACTION_NAMES.lto_backend,
ACTION_NAMES.clif_match,
],
flag_groups = [
flag_group(
flags = [
"-Werror",
"-std=c++17",
"-Wall",
"-B/usr/bin",
"-B/usr/bin",
"-Wunused-parameter",
"-fno-omit-frame-pointer",
"-Werror=sign-compare",
],
),
],
),
],
)
else:
default_compile_flags_feature = None
supports_dynamic_linker_feature = feature(name = "supports_dynamic_linker", enabled = True)
features = [
default_compile_flags_feature,
default_link_flags_feature,
coverage_feature,
supports_dynamic_linker_feature,
supports_start_end_lib_feature,
supports_pic_feature,
objcopy_embed_flags_feature,
opt_feature,
dbg_feature,
fastbuild_feature,
user_compile_flags_feature,
sysroot_feature,
unfiltered_compile_flags_feature,
]
if (ctx.attr.cpu == "k8" and ctx.attr.compiler == "clang7"):
cxx_builtin_include_directories = [
"/usr/lib/llvm-7/lib/clang/7.1.0/include",
"/usr/local/include",
"/usr/include",
]
else:
fail("Unreachable")
artifact_name_patterns = []
make_variables = []
if (ctx.attr.cpu == "k8" and ctx.attr.compiler == "clang7"):
tool_paths = [
tool_path(name = "ld", path = "/usr/bin/ld"),
tool_path(name = "cpp", path = "/usr/bin/cpp"),
tool_path(name = "dwp", path = "/usr/bin/dwp"),
tool_path(name = "gcov", path = "/usr/bin/gcov"),
tool_path(name = "nm", path = "/usr/bin/nm"),
tool_path(name = "objcopy", path = "/usr/bin/objcopy"),
tool_path(name = "objdump", path = "/usr/bin/objdump"),
tool_path(name = "strip", path = "/usr/bin/strip"),
tool_path(name = "gcc", path = "/usr/bin/clang-7"),
tool_path(name = "ar", path = "/usr/bin/ar"),
]
else:
fail("Unreachable")
out = ctx.actions.declare_file(ctx.label.name)
ctx.actions.write(out, "Fake executable")
return [
cc_common.create_cc_toolchain_config_info(
ctx = ctx,
features = features,
action_configs = action_configs,
artifact_name_patterns = artifact_name_patterns,
cxx_builtin_include_directories = cxx_builtin_include_directories,
toolchain_identifier = toolchain_identifier,
host_system_name = host_system_name,
target_system_name = target_system_name,
target_cpu = target_cpu,
target_libc = target_libc,
compiler = compiler,
abi_version = abi_version,
abi_libc_version = abi_libc_version,
tool_paths = tool_paths,
make_variables = make_variables,
builtin_sysroot = builtin_sysroot,
cc_target_os = cc_target_os,
),
DefaultInfo(
executable = out,
),
]
cc_toolchain_config = rule(
implementation = _impl,
attrs = {
"cpu": attr.string(mandatory = True, values = ["k8"]),
"compiler": attr.string(mandatory = True, values = ["clang7"]),
},
provides = [CcToolchainConfigInfo],
executable = True,
)
| load('@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl', 'action_config', 'feature', 'flag_group', 'flag_set', 'tool', 'tool_path', 'with_feature_set')
load('@bazel_tools//tools/build_defs/cc:action_names.bzl', 'ACTION_NAMES')
def _impl(ctx):
if ctx.attr.cpu == 'k8' and ctx.attr.compiler == 'clang7':
toolchain_identifier = 'clang7_toolchain'
else:
fail('Unreachable')
host_system_name = 'local'
target_system_name = 'local'
target_cpu = 'k8'
target_libc = 'local'
if ctx.attr.cpu == 'k8' and ctx.attr.compiler == 'clang7':
compiler = 'clang7'
else:
fail('Unreachable')
abi_version = 'local'
abi_libc_version = 'local'
cc_target_os = None
builtin_sysroot = None
all_compile_actions = [ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.clif_match, ACTION_NAMES.lto_backend]
all_cpp_compile_actions = [ACTION_NAMES.cpp_compile, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.clif_match]
preprocessor_compile_actions = [ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.clif_match]
codegen_compile_actions = [ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend]
all_link_actions = [ACTION_NAMES.cpp_link_executable, ACTION_NAMES.cpp_link_dynamic_library, ACTION_NAMES.cpp_link_nodeps_dynamic_library]
objcopy_embed_data_action = action_config(action_name='objcopy_embed_data', enabled=True, tools=[tool(path='/usr/bin/objcopy')])
action_configs = [objcopy_embed_data_action]
supports_pic_feature = feature(name='supports_pic', enabled=True)
objcopy_embed_flags_feature = feature(name='objcopy_embed_flags', enabled=True, flag_sets=[flag_set(actions=['objcopy_embed_data'], flag_groups=[flag_group(flags=['-I', 'binary'])])])
dbg_feature = feature(name='dbg')
sysroot_feature = feature(name='sysroot', enabled=True, flag_sets=[flag_set(actions=[ACTION_NAMES.preprocess_assemble, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend, ACTION_NAMES.clif_match, ACTION_NAMES.cpp_link_executable, ACTION_NAMES.cpp_link_dynamic_library, ACTION_NAMES.cpp_link_nodeps_dynamic_library], flag_groups=[flag_group(flags=['--sysroot=%{sysroot}'], expand_if_available='sysroot')])])
if ctx.attr.cpu == 'k8' and ctx.attr.compiler == 'clang7':
unfiltered_compile_flags_feature = feature(name='unfiltered_compile_flags', enabled=True, flag_sets=[flag_set(actions=[ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend, ACTION_NAMES.clif_match], flag_groups=[flag_group(flags=['-Wno-deprecated-declarations', '-Wno-builtin-macro-redefined', '-D__DATE__="redacted"', '-D__TIMESTAMP__="redacted"', '-D__TIME__="redacted"'])])])
else:
unfiltered_compile_flags_feature = None
if ctx.attr.cpu == 'k8' and ctx.attr.compiler == 'clang7':
default_link_flags_feature = feature(name='default_link_flags', enabled=True, flag_sets=[flag_set(actions=all_link_actions, flag_groups=[flag_group(flags=['-lstdc++', '-lm', '-fuse-ld=gold', '-Wl,-no-as-needed', '-Wl,-z,relro,-z,now', '-B/usr/bin', '-B/usr/bin'])]), flag_set(actions=all_link_actions, flag_groups=[flag_group(flags=['-Wl,--gc-sections'])], with_features=[with_feature_set(features=['opt'])])])
else:
default_link_flags_feature = None
coverage_feature = feature(name='coverage', flag_sets=[flag_set(actions=[ACTION_NAMES.preprocess_assemble, ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, 'c++-header-preprocessing', ACTION_NAMES.cpp_module_compile], flag_groups=[flag_group(flags=['-fprofile-arcs', '-ftest-coverage'])]), flag_set(actions=['c++-link-interface-dynamic-library', ACTION_NAMES.cpp_link_dynamic_library, ACTION_NAMES.cpp_link_executable], flag_groups=[flag_group(flags=['-lgcov'])])], provides=['profile'])
supports_start_end_lib_feature = feature(name='supports_start_end_lib', enabled=True)
opt_feature = feature(name='opt')
fastbuild_feature = feature(name='fastbuild')
user_compile_flags_feature = feature(name='user_compile_flags', enabled=True, flag_sets=[flag_set(actions=[ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend, ACTION_NAMES.clif_match], flag_groups=[flag_group(flags=['%{user_compile_flags}'], iterate_over='user_compile_flags', expand_if_available='user_compile_flags')])])
if ctx.attr.cpu == 'k8' and ctx.attr.compiler == 'clang7':
default_compile_flags_feature = feature(name='default_compile_flags', enabled=True, flag_sets=[flag_set(actions=[ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend, ACTION_NAMES.clif_match], flag_groups=[flag_group(flags=['-U_FORTIFY_SOURCE', '-fstack-protector', '-Wall', '-B/usr/bin', '-B/usr/bin', '-fno-omit-frame-pointer', '-fcolor-diagnostics'])]), flag_set(actions=[ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend, ACTION_NAMES.clif_match], flag_groups=[flag_group(flags=['-g'])], with_features=[with_feature_set(features=['dbg'])]), flag_set(actions=[ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend, ACTION_NAMES.clif_match], flag_groups=[flag_group(flags=['-ggdb', '-O2', '-D_FORTIFY_SOURCE=1', '-DNDEBUG', '-ffunction-sections', '-fdata-sections'])], with_features=[with_feature_set(features=['opt'])]), flag_set(actions=[ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend, ACTION_NAMES.clif_match], flag_groups=[flag_group(flags=['-g'])], with_features=[with_feature_set(features=['fastbuild'])]), flag_set(actions=[ACTION_NAMES.linkstamp_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend, ACTION_NAMES.clif_match], flag_groups=[flag_group(flags=['-Werror', '-std=c++17', '-Wall', '-B/usr/bin', '-B/usr/bin', '-Wunused-parameter', '-fno-omit-frame-pointer', '-Werror=sign-compare'])])])
else:
default_compile_flags_feature = None
supports_dynamic_linker_feature = feature(name='supports_dynamic_linker', enabled=True)
features = [default_compile_flags_feature, default_link_flags_feature, coverage_feature, supports_dynamic_linker_feature, supports_start_end_lib_feature, supports_pic_feature, objcopy_embed_flags_feature, opt_feature, dbg_feature, fastbuild_feature, user_compile_flags_feature, sysroot_feature, unfiltered_compile_flags_feature]
if ctx.attr.cpu == 'k8' and ctx.attr.compiler == 'clang7':
cxx_builtin_include_directories = ['/usr/lib/llvm-7/lib/clang/7.1.0/include', '/usr/local/include', '/usr/include']
else:
fail('Unreachable')
artifact_name_patterns = []
make_variables = []
if ctx.attr.cpu == 'k8' and ctx.attr.compiler == 'clang7':
tool_paths = [tool_path(name='ld', path='/usr/bin/ld'), tool_path(name='cpp', path='/usr/bin/cpp'), tool_path(name='dwp', path='/usr/bin/dwp'), tool_path(name='gcov', path='/usr/bin/gcov'), tool_path(name='nm', path='/usr/bin/nm'), tool_path(name='objcopy', path='/usr/bin/objcopy'), tool_path(name='objdump', path='/usr/bin/objdump'), tool_path(name='strip', path='/usr/bin/strip'), tool_path(name='gcc', path='/usr/bin/clang-7'), tool_path(name='ar', path='/usr/bin/ar')]
else:
fail('Unreachable')
out = ctx.actions.declare_file(ctx.label.name)
ctx.actions.write(out, 'Fake executable')
return [cc_common.create_cc_toolchain_config_info(ctx=ctx, features=features, action_configs=action_configs, artifact_name_patterns=artifact_name_patterns, cxx_builtin_include_directories=cxx_builtin_include_directories, toolchain_identifier=toolchain_identifier, host_system_name=host_system_name, target_system_name=target_system_name, target_cpu=target_cpu, target_libc=target_libc, compiler=compiler, abi_version=abi_version, abi_libc_version=abi_libc_version, tool_paths=tool_paths, make_variables=make_variables, builtin_sysroot=builtin_sysroot, cc_target_os=cc_target_os), default_info(executable=out)]
cc_toolchain_config = rule(implementation=_impl, attrs={'cpu': attr.string(mandatory=True, values=['k8']), 'compiler': attr.string(mandatory=True, values=['clang7'])}, provides=[CcToolchainConfigInfo], executable=True) |
for i in range(plan_arguments['RUN_NUM']):
############################################# CC #############################################
add_test(name='cc_feature_rtest',
tags=['L10', 'cc'],
args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG],
module='nvdla_uvm_test',
config=['nvdla_utb'],
desc=''' None reuse CC random case, input data format is fixed as feature ''')
add_test(name='cc_pitch_rtest',
tags=['L10', 'cc'],
args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG],
module='nvdla_uvm_test',
config=['nvdla_utb'],
desc=''' None reuse CC random case, input data format is fixed as image ''')
add_test(name='cc_feature_data_full_reuse_rtest',
tags=['L10', 'cc'],
args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,2 ', get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], # for reuse case, at least 2 layers are required
module='nvdla_uvm_test',
config=['nvdla_utb'],
desc=''' CC reuse input data random case, input data format is fixed as feature ''')
add_test(name='cc_feature_weight_full_reuse_rtest',
tags=['L10', 'cc'],
args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,2 ', get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], # for reuse case, at least 2 layers are required
module='nvdla_uvm_test',
config=['nvdla_utb'],
desc=''' CC reuse weight random case, input data format is fixed as feature ''')
add_test(name='cc_image_data_full_reuse_rtest',
tags=['L10', 'cc'],
args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,2 ', get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], # for reuse case, at least 2 layers are required
module='nvdla_uvm_test',
config=['nvdla_utb'],
desc=''' CC reuse input data random case, input data format is fixed as image ''')
add_test(name='cc_rtest',
tags=['L10', 'cc'],
args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG],
module='nvdla_uvm_test',
config=['nvdla_utb'],
desc=''' None reuse CC random case ''')
############################################## PDP #############################################
add_test(name='pdp_split_rtest',
tags=['L10', 'pdp'],
args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG],
module='nvdla_uvm_test',
config=['nvdla_utb'],
desc=''' PDP random case, fixed to split mode ''')
add_test(name='pdp_non_split_rtest',
tags=['L10', 'pdp'],
args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG],
module='nvdla_uvm_test',
config=['nvdla_utb'],
desc=''' PDP random case, fixed to non-split mode ''')
add_test(name='pdp_rtest',
tags=['L10', 'pdp'],
args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG],
module='nvdla_uvm_test',
config=['nvdla_utb'],
desc=''' PDP random case ''')
############################################# SDP #############################################
if 'NVDLA_SDP_BS_ENABLE' in project.PROJVAR and project.PROJVAR['NVDLA_SDP_BS_ENABLE'] is True:
add_test(name='sdp_bs_rtest',
tags=['L10', 'sdp'],
args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG],
module='nvdla_uvm_test',
config=['nvdla_utb'],
desc=''' SDP offline random case, with BS enabled and not bypassed ''')
if 'NVDLA_SDP_BN_ENABLE' in project.PROJVAR and project.PROJVAR['NVDLA_SDP_BN_ENABLE'] is True:
add_test(name='sdp_bn_rtest',
tags=['L10', 'sdp'],
args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG],
module='nvdla_uvm_test',
config=['nvdla_utb'],
desc=''' SDP offline random case, with BN enabled and not bypassed ''')
if 'NVDLA_SDP_EW_ENABLE' in project.PROJVAR and project.PROJVAR['NVDLA_SDP_EW_ENABLE'] is True:
add_test(name='sdp_ew_rtest',
tags=['L10', 'sdp'],
args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG],
module='nvdla_uvm_test',
config=['nvdla_utb'],
desc=''' SDP offline random case, with EW enabled and not bypassed ''')
add_test(name='sdp_rtest',
tags=['L10', 'sdp'],
args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG],
module='nvdla_uvm_test',
config=['nvdla_utb'],
desc=''' SDP offline random case ''')
############################################# CDP #############################################
add_test(name='cdp_exp_rtest',
tags=['L10', 'cdp'],
args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG],
module='nvdla_uvm_test',
config=['nvdla_utb'],
desc=''' CDP random case, fixed to EXPONENT mode of LE LUT ''')
add_test(name='cdp_lin_rtest',
tags=['L10', 'cdp'],
args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG],
module='nvdla_uvm_test',
config=['nvdla_utb'],
desc=''' CDP random case, fixed to LINEAR mode of LE LUT ''')
add_test(name='cdp_rtest',
tags=['L10', 'cdp'],
args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG],
module='nvdla_uvm_test',
config=['nvdla_utb'],
desc=''' CDP random case ''')
| for i in range(plan_arguments['RUN_NUM']):
add_test(name='cc_feature_rtest', tags=['L10', 'cc'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=' None reuse CC random case, input data format is fixed as feature ')
add_test(name='cc_pitch_rtest', tags=['L10', 'cc'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=' None reuse CC random case, input data format is fixed as image ')
add_test(name='cc_feature_data_full_reuse_rtest', tags=['L10', 'cc'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,2 ', get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=' CC reuse input data random case, input data format is fixed as feature ')
add_test(name='cc_feature_weight_full_reuse_rtest', tags=['L10', 'cc'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,2 ', get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=' CC reuse weight random case, input data format is fixed as feature ')
add_test(name='cc_image_data_full_reuse_rtest', tags=['L10', 'cc'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,2 ', get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=' CC reuse input data random case, input data format is fixed as image ')
add_test(name='cc_rtest', tags=['L10', 'cc'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=' None reuse CC random case ')
add_test(name='pdp_split_rtest', tags=['L10', 'pdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=' PDP random case, fixed to split mode ')
add_test(name='pdp_non_split_rtest', tags=['L10', 'pdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=' PDP random case, fixed to non-split mode ')
add_test(name='pdp_rtest', tags=['L10', 'pdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=' PDP random case ')
if 'NVDLA_SDP_BS_ENABLE' in project.PROJVAR and project.PROJVAR['NVDLA_SDP_BS_ENABLE'] is True:
add_test(name='sdp_bs_rtest', tags=['L10', 'sdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=' SDP offline random case, with BS enabled and not bypassed ')
if 'NVDLA_SDP_BN_ENABLE' in project.PROJVAR and project.PROJVAR['NVDLA_SDP_BN_ENABLE'] is True:
add_test(name='sdp_bn_rtest', tags=['L10', 'sdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=' SDP offline random case, with BN enabled and not bypassed ')
if 'NVDLA_SDP_EW_ENABLE' in project.PROJVAR and project.PROJVAR['NVDLA_SDP_EW_ENABLE'] is True:
add_test(name='sdp_ew_rtest', tags=['L10', 'sdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=' SDP offline random case, with EW enabled and not bypassed ')
add_test(name='sdp_rtest', tags=['L10', 'sdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=' SDP offline random case ')
add_test(name='cdp_exp_rtest', tags=['L10', 'cdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=' CDP random case, fixed to EXPONENT mode of LE LUT ')
add_test(name='cdp_lin_rtest', tags=['L10', 'cdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=' CDP random case, fixed to LINEAR mode of LE LUT ')
add_test(name='cdp_rtest', tags=['L10', 'cdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=' CDP random case ') |
'''Example test script.
Basic checks of device before processed
Input Variables:
args - arguments dictionary given to demo tester that may be used to
changed nature of test.
dev - Example device under test
name - Name of test being run.
results - Results map of all tests.
Test Specific Arguments:
args["hw_rev"] - hardware revision to expect
'''
expected_hw_rev = args["hw_rev"]
output_good("Welcome")
output_normal("Reading device 3.3V power rail.")
mV = dev.read_3v3_rail()
store_value("V3.3 power rail mV", mV)
threshold_check(mV, 3300, 90, "mV", "Power rail check")
output_normal("Checking device current draw.")
mA = dev.read_current()
store_value("mA draw", mA)
threshold_check(mA, 150, 10, "mA", "Power draw")
output_normal("Read hardware revision from device pull ups.")
hw_rev = dev.read_revision()
store_value("HW Rev", hw_rev)
exact_check(hw_rev, expected_hw_rev, "Hardware revision")
| """Example test script.
Basic checks of device before processed
Input Variables:
args - arguments dictionary given to demo tester that may be used to
changed nature of test.
dev - Example device under test
name - Name of test being run.
results - Results map of all tests.
Test Specific Arguments:
args["hw_rev"] - hardware revision to expect
"""
expected_hw_rev = args['hw_rev']
output_good('Welcome')
output_normal('Reading device 3.3V power rail.')
m_v = dev.read_3v3_rail()
store_value('V3.3 power rail mV', mV)
threshold_check(mV, 3300, 90, 'mV', 'Power rail check')
output_normal('Checking device current draw.')
m_a = dev.read_current()
store_value('mA draw', mA)
threshold_check(mA, 150, 10, 'mA', 'Power draw')
output_normal('Read hardware revision from device pull ups.')
hw_rev = dev.read_revision()
store_value('HW Rev', hw_rev)
exact_check(hw_rev, expected_hw_rev, 'Hardware revision') |
# 3-9. Dinner Guests: Working with one of the programs from Exercises 3-4 through 3-7 (page 46),
# use len() to print a message indicating the number of people you are inviting to dinner.
guests = ['Antonio', 'Emanuel', 'Francisco']
message = "1.- Hello dear uncle " + guests[0] + ", I hope you can come this 16th for a mexican dinner in my house."
print(message)
message = "2.- Hi " + guests[1] + "! The next monday we'll have a dinner, you should come here to spend time with " \
"friends for a while, also we will have some beers. "
print(message)
message = "3.- Hello grandpa " + guests[2] + "!, my mother told me that we will have a dinner next monday and we want" \
" that you come here because we miss you. "
print(message)
print('\n')
print(len(guests)) | guests = ['Antonio', 'Emanuel', 'Francisco']
message = '1.- Hello dear uncle ' + guests[0] + ', I hope you can come this 16th for a mexican dinner in my house.'
print(message)
message = '2.- Hi ' + guests[1] + "! The next monday we'll have a dinner, you should come here to spend time with friends for a while, also we will have some beers. "
print(message)
message = '3.- Hello grandpa ' + guests[2] + '!, my mother told me that we will have a dinner next monday and we want that you come here because we miss you. '
print(message)
print('\n')
print(len(guests)) |
class TierFulfillmentMessages(object):
RROR_PROCESSING_TIER_REQUEST = 'There has been an error processing the tier config request. Error description: {}'
class BasePurchaseMessages:
pass
class BaseChangeMessages:
pass
class BaseSuspendMessages:
NOTHING_TO_DO = 'Suspend method for request {} - Nothing to do'
class BaseCancelMessages:
ACTIVATION_TILE_RESPONSE = 'Operation cancel done successfully'
class BaseSharedMessages:
ACTIVATING_TEMPLATE_ERROR = 'There has been a problem activating the template. Description {}'
EMPTY_ACTIVATION_TILE = 'Activation tile response for marketplace {} cannot be empty'
ERROR_GETTING_CONFIGURATION = 'There was an exception while getting configured info for the specified ' \
'marketplace {}'
NOT_FOUND_TEMPLATE = 'It was not found any template of type <{}> for the marketplace with id <{}>. ' \
'Please review the configuration.'
NOT_ALLOWED_DOWNSIZE = 'At least one of the requested items at the order is downsized which ' \
' is not allowed. Please review your order.'
RESPONSE_ERROR = 'Error: {} -> {}'
RESPONSE_DOES_NOT_HAVE_ATTRIBUTE = 'Response does not have attribute {}. Check your request params. ' \
'Response status - {}'
WAITING_SUBSCRIPTION_ACTIVATION = 'The subscription has been updated, waiting Vendor/ISV to update the ' \
'subscription status'
class Message:
class Shared(BaseSharedMessages):
tier_request = TierFulfillmentMessages()
class Purchase(BasePurchaseMessages):
FAIL_REPEATED_PRODUCTS = 'It has been detected repeated products for the same purchase. ' \
'Please review the configured plan.'
class Change(BaseChangeMessages):
pass
class Suspend(BaseSuspendMessages):
pass
class Cancel(BaseCancelMessages):
pass
| class Tierfulfillmentmessages(object):
rror_processing_tier_request = 'There has been an error processing the tier config request. Error description: {}'
class Basepurchasemessages:
pass
class Basechangemessages:
pass
class Basesuspendmessages:
nothing_to_do = 'Suspend method for request {} - Nothing to do'
class Basecancelmessages:
activation_tile_response = 'Operation cancel done successfully'
class Basesharedmessages:
activating_template_error = 'There has been a problem activating the template. Description {}'
empty_activation_tile = 'Activation tile response for marketplace {} cannot be empty'
error_getting_configuration = 'There was an exception while getting configured info for the specified marketplace {}'
not_found_template = 'It was not found any template of type <{}> for the marketplace with id <{}>. Please review the configuration.'
not_allowed_downsize = 'At least one of the requested items at the order is downsized which is not allowed. Please review your order.'
response_error = 'Error: {} -> {}'
response_does_not_have_attribute = 'Response does not have attribute {}. Check your request params. Response status - {}'
waiting_subscription_activation = 'The subscription has been updated, waiting Vendor/ISV to update the subscription status'
class Message:
class Shared(BaseSharedMessages):
tier_request = tier_fulfillment_messages()
class Purchase(BasePurchaseMessages):
fail_repeated_products = 'It has been detected repeated products for the same purchase. Please review the configured plan.'
class Change(BaseChangeMessages):
pass
class Suspend(BaseSuspendMessages):
pass
class Cancel(BaseCancelMessages):
pass |
#! /usr/bin/python
# -*- coding: iso-8859-15 -*-
n = int(input("Ingrese la cantidad de datos: "))
suma = 0
for i in range(n):
x = float(input("Ingrese el dato: "))
suma = suma + x
prom = suma / n
print("El promedio es: " ,prom) | n = int(input('Ingrese la cantidad de datos: '))
suma = 0
for i in range(n):
x = float(input('Ingrese el dato: '))
suma = suma + x
prom = suma / n
print('El promedio es: ', prom) |
N = int(input())
AS = [int(x) for x in input().split()]
ok = []
for i in range(N):
for j in range(N):
if i == j:
continue
if AS[i] % AS[j] == 0:
break
else:
ok.append(i)
print(len(ok))
| n = int(input())
as = [int(x) for x in input().split()]
ok = []
for i in range(N):
for j in range(N):
if i == j:
continue
if AS[i] % AS[j] == 0:
break
else:
ok.append(i)
print(len(ok)) |
class Point:
def __init__(self, x: int, y: int):
self.x = x
self.y = y
def getX(self) -> int:
return self.x
def getY(self) -> int:
return self.y
def setX(self, x: int) -> None:
self.x = x
def setY(self, y: int) -> None:
self.y = y
| class Point:
def __init__(self, x: int, y: int):
self.x = x
self.y = y
def get_x(self) -> int:
return self.x
def get_y(self) -> int:
return self.y
def set_x(self, x: int) -> None:
self.x = x
def set_y(self, y: int) -> None:
self.y = y |
#!/usr/bin/env python3
usb_codes = {
0x04:"aA", 0x05:"bB", 0x06:"cC", 0x07:"dD", 0x08:"eE", 0x09:"fF",
0x0A:"gG", 0x0B:"hH", 0x0C:"iI", 0x0D:"jJ", 0x0E:"kK", 0x0F:"lL",
0x10:"mM", 0x11:"nN", 0x12:"oO", 0x13:"pP", 0x14:"qQ", 0x15:"rR",
0x16:"sS", 0x17:"tT", 0x18:"uU", 0x19:"vV", 0x1A:"wW", 0x1B:"xX",
0x1C:"yY", 0x1D:"zZ", 0x1E:"1!", 0x1F:"2@", 0x20:"3#", 0x21:"4$",
0x22:"5%", 0x23:"6^", 0x24:"7&", 0x25:"8*", 0x26:"9(", 0x27:"0)",
0x2C:" ", 0x2D:"-_", 0x2E:"=+", 0x2F:"[{", 0x30:"]}", 0x32:"#~",
0x33:";:", 0x34:"'\"", 0x36:",<", 0x37:".>", 0x4f:">", 0x50:"<"
}
buff = ""
pos = 0
for x in open("strokes","r").readlines():
x = x.strip()
if not x:
continue
code = int(x[4:6],16)
if code == 0:
continue
if code == 0x28:
buff += "[ENTER]"
continue
if int(x[0:2],16) == 2 or int(x[0:2],16) == 0x20:
buff += usb_codes[code][1]
else:
buff += usb_codes[code][0]
print(buff)
| usb_codes = {4: 'aA', 5: 'bB', 6: 'cC', 7: 'dD', 8: 'eE', 9: 'fF', 10: 'gG', 11: 'hH', 12: 'iI', 13: 'jJ', 14: 'kK', 15: 'lL', 16: 'mM', 17: 'nN', 18: 'oO', 19: 'pP', 20: 'qQ', 21: 'rR', 22: 'sS', 23: 'tT', 24: 'uU', 25: 'vV', 26: 'wW', 27: 'xX', 28: 'yY', 29: 'zZ', 30: '1!', 31: '2@', 32: '3#', 33: '4$', 34: '5%', 35: '6^', 36: '7&', 37: '8*', 38: '9(', 39: '0)', 44: ' ', 45: '-_', 46: '=+', 47: '[{', 48: ']}', 50: '#~', 51: ';:', 52: '\'"', 54: ',<', 55: '.>', 79: '>', 80: '<'}
buff = ''
pos = 0
for x in open('strokes', 'r').readlines():
x = x.strip()
if not x:
continue
code = int(x[4:6], 16)
if code == 0:
continue
if code == 40:
buff += '[ENTER]'
continue
if int(x[0:2], 16) == 2 or int(x[0:2], 16) == 32:
buff += usb_codes[code][1]
else:
buff += usb_codes[code][0]
print(buff) |
class Solution:
def solve(self, matrix, target):
for r in range(len(matrix)):
for c in range(len(matrix[0])):
if r-1 >= 0: matrix[r][c] += matrix[r-1][c]
if c-1 >= 0: matrix[r][c] += matrix[r][c-1]
if r-1 >= 0 and c-1 >= 0: matrix[r][c] -= matrix[r-1][c-1]
l,r = 0,min(len(matrix),len(matrix[0]))
ans = 0
def works(x):
return any(matrix[r][c]-(matrix[r-x][c] if r-x>=0 else 0)-(matrix[r][c-x] if c-x>=0 else 0)+(matrix[r-x][c-x] if r-x>=0 and c-x>=0 else 0) <= target for r in range(x-1,len(matrix)) for c in range(x-1,len(matrix[0])))
while l<=r:
m = (l+r)//2
if works(m):
ans = m
l = m+1
else:
r = m-1
return ans**2
| class Solution:
def solve(self, matrix, target):
for r in range(len(matrix)):
for c in range(len(matrix[0])):
if r - 1 >= 0:
matrix[r][c] += matrix[r - 1][c]
if c - 1 >= 0:
matrix[r][c] += matrix[r][c - 1]
if r - 1 >= 0 and c - 1 >= 0:
matrix[r][c] -= matrix[r - 1][c - 1]
(l, r) = (0, min(len(matrix), len(matrix[0])))
ans = 0
def works(x):
return any((matrix[r][c] - (matrix[r - x][c] if r - x >= 0 else 0) - (matrix[r][c - x] if c - x >= 0 else 0) + (matrix[r - x][c - x] if r - x >= 0 and c - x >= 0 else 0) <= target for r in range(x - 1, len(matrix)) for c in range(x - 1, len(matrix[0]))))
while l <= r:
m = (l + r) // 2
if works(m):
ans = m
l = m + 1
else:
r = m - 1
return ans ** 2 |
__all__ = [
'cyclic',
'dep_expander',
'dep_manager',
'logger',
'package_filter',
'package',
'parse_input',
'sat_solver_satispy',
'topo_packages',
'util'
] | __all__ = ['cyclic', 'dep_expander', 'dep_manager', 'logger', 'package_filter', 'package', 'parse_input', 'sat_solver_satispy', 'topo_packages', 'util'] |
i = 1
while i != 0:
i = int(input())
if i > 100:
break
elif i < 10:
continue
else:
print(i)
| i = 1
while i != 0:
i = int(input())
if i > 100:
break
elif i < 10:
continue
else:
print(i) |
n = int(input())
for i in range(n):
dias = 0
valor = float(input())
while valor>1:
valor = valor/2
dias += 1
print(dias, "dias") | n = int(input())
for i in range(n):
dias = 0
valor = float(input())
while valor > 1:
valor = valor / 2
dias += 1
print(dias, 'dias') |
n = int(input())
s = str(input())
removal = 0
counter = 0
for x in s:
if x != 'x':
if counter >= 3:
removal += counter - 2
counter = 0
elif x == 'x':
counter += 1
if counter >= 3:
removal += counter - 2
print(removal)
| n = int(input())
s = str(input())
removal = 0
counter = 0
for x in s:
if x != 'x':
if counter >= 3:
removal += counter - 2
counter = 0
elif x == 'x':
counter += 1
if counter >= 3:
removal += counter - 2
print(removal) |
i = 10
j = 0
while i > 2:
i = i - 1
j = j + 8 | i = 10
j = 0
while i > 2:
i = i - 1
j = j + 8 |
# LeetCode
# Level: Easy
# Date: 2021.11.17
class Solution:
def destCity(self, paths: List[List[str]]) -> str:
P = dict(paths)
PA = P.keys()
PB = P.values()
DC = PB - PA
for i in DC:
return(i) | class Solution:
def dest_city(self, paths: List[List[str]]) -> str:
p = dict(paths)
pa = P.keys()
pb = P.values()
dc = PB - PA
for i in DC:
return i |
blacklist = [
"userQED",
"GGupzHH",
"nodejs-ma",
"linxz-coder",
"teach-tian",
"kevinlens",
"Pabitra-26",
"mangalan516",
"IjtihadIslamEmon",
"marcin-majewski-sonarsource",
"LongTengDao",
"JoinsG",
"safanbd",
"aly2",
"aka434112"
"SMAKSS",
"imbereket",
"takumu1011",
"adityanjr",
"Aa115511",
"farjanaHuq",
"samxcode",
"HaiTing-Zhu",
"gimnakatugampala",
"cmc3cn",
"kkkisme",
"haidongwang-github",
"ValueCoders",
"happy-dc",
"Tyorden",
"SP4R0W",
"q970923066",
"Shivansh2407",
"1o1w1",
"soumyadip007",
"AceTheCreator",
"qianbaiduhai",
"changwei0857",
"CainKane",
"Jajabenit250",
"gouri1000",
"yvettep321",
"naveen8801",
"HelloAny",
"ShaileshDeveloper",
"Jia-De",
"JeffCorp",
"ht1131589588",
"Supsource",
"coolwebrahul",
"aimidy",
"ishaanthakur",
# bots
"vue-bot",
"dependabot",
# below is taken from spamtoberfest
"SudhanshuAGR",
"pinkuchoudhury69",
"brijal96",
"shahbazalam07",
"piyushkothari1999",
"imnrb",
"saksham05mathur",
"Someshkale15",
"xinghalok",
"manpreet147",
"sumitsrivastav180",
"1234515",
"Rachit-hooda-man",
"vishal2305bug",
"Ajayraj006",
"pathak7838",
"Kumarjatin-coder",
"Narendra-Git-Hub",
"Stud-dabral",
"Siddhartha05",
"rishi123A",
"kartik71792",
"kapilpatel-2001",
"SapraRam",
"PRESIDENT-caris",
"smokkie087",
"Ravikant-unzippedtechnology",
"sawanch",
"Saayancoder",
"shubham5888",
"manasvi141220002",
"Asher12428",
"mohdalikhan",
"Paras4902",
"shudhii",
"Tesla9625",
"web-codegrammer",
"imprakashsah",
"Bhagirath043",
"Ankur-S1",
"Deannos",
"sapro-eng",
"skabhi001",
"AyushPathak12",
"Hatif786",
"adityas2124k2",
"Henry-786",
"abhi6418",
"J-Ankit2002",
"9759176595",
"rajayush9944",
"Kishan-Kumar-Kannaujiya",
"ManavBargali",
"komalsharma121",
"AbhiramiTS",
"mdkaif25",
"shubhamsingh333",
"hellosibun",
"ankitbharti1998",
"subhakantabhau",
"shivamsri142",
"sameer13899",
"BhavyaTheHacker",
"nehashewale",
"Shashi-design",
"anuppal101",
"NitinRavat888",
"sakrit",
"Kamran-360",
"satyam-dot",
"Suleman3015",
"amanpj15",
"abhinavjha98",
"Akshat-Git-Sharma",
"Anuragtawaniya",
"nongshaba1337",
"XuHewen",
"happyxhw",
"ascott",
"ThomasGrund",
'Abhayrai778',
'pyup-bot',
'AhemadRazaK3',
'doberoi10',
'lsmatovu',
'Lakshay7014',
'nikhilkr1402',
'arfakl99',
'Tyrrrz',
'SwagatamNanda',
'V-Soni',
'hparadiz',
'Ankurmarkam',
'shubham-01-star',
'Rajputusman',
'bharat13soni',
'przemeklal',
'p4checo',
'REDSKULL1412',
'GAURAVCHETTRI',
'DerDomml',
'Sunit25',
'divyansh123-max',
'hackerharsh007',
'Thecreativeone2001',
'nishkarshsingh-tech',
'Devyadav1994',
'Rajeshjha586',
'BoboTiG',
'nils-braun',
'DjDeveloperr',
'FreddieRidell',
'pratyxx525',
'abstergo43',
'impossibleshado1',
'Gurnoor007',
'2303-kanha',
'ChaitanyaAg',
'justinjpacheco',
'shoaib5887khan',
'farhanmulla713',
'ashrafzeya',
'muke64',
'aditya08maker',
'rajbaba1',
'priyanshu-top10',
'Maharshi369',
'Deep-bhingradiya',
'shyam7e',
'shubhamsuman37',
'jastisriradheshyam',
'Harshit-10-pal',
'shivphp',
'RohanSahana',
'404notfound-3',
'ritikkatiyar',
'ashishmohan0522',
'Amanisrar',
'VijyantVerma',
'Chetanchetankoli',
'Hultner',
'gongeprashant',
'psw89',
'harshilaneja',
'SLOKPATHAK',
'st1891',
'nandita853',
'ms-prob',
'Sk1llful',
'HarshKq',
'rpy9954',
'TheGunnerMan',
'AhsanKhokhar1',
'RajnishJha12',
'Adityapandey-7',
'vipulkumbhar0',
'nikhilkhetwal',
'Adityacoder99',
'arjun01-debug',
'saagargupta',
'UtCurseSingh',
'Anubhav07-pixel',
'Vinay584',
'YA7CR7',
'anirbanballav',
'mrPK',
'VibhakarYashasvi',
'ANKITMOHAPATRAPROGRAMS',
'parmar-hacky',
'zhacker1999',
'akshatjindal036',
'swarakeshrwani',
'ygajju52',
'Nick-Kr-Believe',
'adityashukl1502',
'mayank23raj',
'shauryamishra',
'swagat11',
'007swayam',
'gardener-robot-ci-1',
'ARUNJAYSACHAN',
'MdUmar07',
'vermavinay8948',
'Rimjhim-Dey',
'prathamesh-jadhav-21',
'brijal96',
'siddhantparadox',
'Abhiporwal123',
'sparshbhardwaj209',
'Amit-Salunke-02',
'wwepavansharma',
'kirtisahu123',
'japsimrans13',
'wickedeagle',
'AnirbanB999',
'jayeshmishra',
'shahbazalam07',
'Samrath07',
'pinkuchoudhury69',
'moukhikgupta5',
'hih547430',
'burhankhan23',
'Rakesh0222',
'Rahatullah19',
'sanskar783',
'Eshagupta0106',
'Arpit-Tailong',
'Adityaaashu',
'rahul149',
'udit0912',
'aru5858',
'riya6361',
'vanshkhemani',
'Aditi0205',
'riteshbiswas0',
'12Ayush12008039',
'Henry-786',
'ManviMaheshwari',
'SATHIYASEELAN2001',
'SuchetaPal',
'Sahil24822',
'sohamgit',
'Bhumi5599',
'anil-rathod',
'binayuchai',
'PujaMawandia123',
'78601abhiyadav',
'PriiTech',
'SahilBhagtani',
'dhruv1214',
'SAURABHYAGYIK',
'farhanmansuri25',
'Chronoviser',
'airtel945',
'Swagnikdhar',
'tushar-1308',
'sameerbasha123',
'anshu15183',
'Mohit049',
'YUVRAJBHATI',
'miras143mom',
'ProPrakharSoni',
'pratikkhatana',
'Alan1857',
'AyanKrishna',
'kartikey2003jain',
'sailinkan',
'DEVELOPER06810',
'Abhijeet9274',
'Kannu12',
'Shivam-Amin',
'suraj-lpu',
'Elizah550',
'dipsylocus',
'jaydev-coding',
'IamLucif3r',
'DesignrKnight',
'PiyumalK',
'nandita853',
'mohsin529',
'ShravanBhat',
'doppelganger-test',
'smitgh',
'parasgarg123',
'Amit-Salunke-02',
'Chinmay-KB',
'sagarr1',
'Praveshrana12',
'fortrathon',
'miqbalrr',
'Ankurmarkam',
'saloni691',
'Bhuvan804',
'pra-b-hat-chauhan',
'snakesause',
'Shubhani25',
'arshad699',
'fahad-25082001',
'Chaitanya31612',
'tiwariraju',
'ritik0021',
'aakash-dhingra',
'Raunak017',
'ashrafzeya',
'priyanshu-top10',
'NikhilKumar-coder',
'ygajju52',
'shvnsh',
'abhishek7457',
'sethmcagit',
'Apurva122',
'Gurpreet-Singh-Bhupal',
'ashmit-coder',
'Rishi098',
'Xurde-glitch',
'imrohitoberoi',
'Hrushikeshsalunkhe',
'ABHI2598',
'Abhishek8-web',
'arjun01-debug',
'Shailesh12-svg',
'SachinSingh7050',
'VibhakarYashasvi',
'rajbaba1',
'yuvraj66',
'Nick-Kr-Believe',
'gongeprashant',
'sanskar783',
'infoguru19',
'Shamik225',
'Pro0131',
'soni-111',
'Rahul-bitu',
'meetshrimali',
'coolsuva',
'yogeshwaran01',
'Satyamtripathi1996',
'Rahatullah19',
'kartikey2003jain',
'rajarshi15220',
'SahilBhagtani',
'janni-03',
'Abhijit-06',
'dvlp-jrs',
'Viki3223',
'Azhad56',
'Mohit049',
'mvpsaurav',
'dvcrn',
'Deep-bhingradiya',
'shreyans2007',
'sailinkan',
'Abhijeet9274',
'riteshbiswas0',
'AhemadRazaK3',
'rishi123A',
'shivpatil',
'rikidas99',
'sohamgit',
'jheero',
'itzhv14',
'sameerbasha123',
'yatendra-dev',
'AditiGautam2000',
'sid0542',
'tushar-1308',
'dhruvil05',
'sufiyankhanz',
'Alan1857',
'siriusb79',
'PKan06',
'yagnikvadaliya',
'yogeshkun',
'Abhishekjhatech',
'jatinsharma11',
'THENNARASU-M',
'priyanshu987art',
'maulik922',
'param-de',
'nisheksharma',
'balbirsingh08',
'piyushkothari1999',
'zeeshanthedev590',
'praney-pareek',
'SUBHANGANI22',
'kartikeyaGUPTA45',
'Educatemeans',
'9192939495969798',
'Amit1173',
'thetoppython',
'Saurabhsingh94',
'royalbhati',
'kardithSingh',
'kishankumar05',
'Rachit-hooda-man',
'alijng',
'patel-om',
'jahangirguru',
'Vchandan348',
'amitagarwalaa57',
'rockingrohit9639',
'Krishnapal-rajput',
'aman78954098',
'pranshuag1818',
'PIYUSH6791',
'Lachiemckelvie',
'Pragati-Gawande',
'mahesh2526',
'Aman9234',
'xMaNaSx',
'shreyanshnpanwar',
'Paravindvishwakarma',
'chandan-op',
'amit007-majhi',
'Rahul-TheHacker',
'sharmanityam252',
'iamnishan',
'codewithashu',
'mersonfufu',
'saksham05mathur',
'Krishna10798',
'rajashit14',
'aetios',
'pankajnimiwal',
'132ikl',
'ghost',
'Sabyyy',
'9Ankit00',
'AfreenKhan777',
'akash-bansal-02',
'regakakobigman',
'aman1750',
'irajdip99',
'mohdadil2001',
'shithinshetty',
'nikhilsawalkar',
'Brighu-Raina',
'kenkirito',
'SamueldaCostaAraujoNunes',
'codewithsaurav',
'Ashutoshvk18',
'EthicalRohit',
'ihimalaya',
'somya-max',
'themonkeyhacker',
'rammohan12345',
'JasmeetSinghWasal',
'black73',
'Rebelshiv',
'DarshanaNemane',
'Jitin20',
'Prakshal2607',
'Sourabhkale1',
'shoeb370',
'ArijitGoswami100',
'anju2408',
'ukybhaiii',
'anshulbhandari5',
'pratham1303',
'arpitdevv',
'RishabhGhildiyal',
'mohammedssab',
'deepakshisingh',
'Samshopify',
'ankitkumar827',
'anddytheone',
'Tush6571',
'pritam98-debug',
'Snehapriya9955',
'coastaldemigod',
'yogesh-1952',
'Vivekv11',
'Andrewrick1',
'DARSHIT006',
'pravar18',
'devildeep4u',
'21appleceo',
'bereketsemagn',
'vandana-kotnala',
'tanya4113',
'gorkemkrdmn',
'Ashwin0512',
'prateekrathore1234',
'hash-mesh',
'pathak7838',
'sakshamdeveloper',
'ankan10',
'prafgup',
'anurag200502',
'niklifter',
'Shreeja1699',
'shivshikharsinha',
'SumanPurkait-grb',
'chiranjeevprajapat',
'TechieBoy',
'KhushiMittal',
'UtCurseSingh',
'lucastrogo',
'jarvis0302',
'ratan160',
'kgaurav123',
'dhakad17',
'Rishn99',
'codeme13',
'KINGUMS',
'sun-3',
'varunsingh251',
'thedrivingforc',
'aditya08maker',
'AkashVerma1515',
'gaurangbhavsar',
'ApurvaSharma20',
'Manmeet1999',
'Arhaans',
'Jaykitkukadiya',
'Rimjhim-Dey',
'apurv69',
'parth-lth',
'PranshuVashishtha',
'sidhantsharmaa',
'uday0001',
'iamrahul-9',
'nagpalnipun22',
'poonamp-31',
'dhananjaypatil',
'baibhavvishalpani',
'Ashish774-sol',
'sachin2490',
'Sudhanshu777871',
'mayur1234-shiwal',
'RohanWakhare',
'rishi4004',
'Amankumar019',
'Vaibhav162002',
'pratyushsrivastava500',
'AmarPaul-GiT',
'arjit-gupta',
'nitinchopade',
'imakg',
'meharshchakraborty',
'tumsabGandu',
'anurag360',
'2000sanu',
'PoorviAgrawal56',
'omdhurat',
'Pawansinghla',
'thehacker-oss',
'mritu-mritu',
'AJAY07111998',
'rai12091997',
'OmShrivastava19',
'Divyanshu2109',
'adityaherowa',
'Abhishekt07',
'code-diggers-369',
'Jamesj001',
'coding-geek1711',
'govindrajpagul',
'CDP14',
'Kartik989-max',
'MaheshDoiphode',
'Pranayade777',
'er-royalprince',
'ricardoseriani',
'nowitsbalibhadra',
'navyaswarup',
'devendrathakare44',
'awaisulabdeen',
'SoumyaShree80',
'abahad7921',
'vishal0410',
'gajerachintan9',
'EBO9877',
'rohit-rksaini',
'momin786786',
'Shaurya-567',
'himanshu1079',
'AlecsFerra',
'rajvpatil5',
'Hacker-Boss',
'Rakesh0222',
'ASHMITA-DE',
'BilalSabugar',
'Anjan50',
'Vedant336',
'github2aman',
'satyamgta',
'kumar-vineet',
'uttamagrawal',
'AjaySinghPanwar',
'saieshdevidas',
'ohamshakya',
'JrZemdegs712',
'Anil404',
'Anamika1818',
'ssisodiya28',
'Vedurumudi-Priyanka',
'python1neo',
'sanketprajapati',
'InfinitelLoop',
'DarkMatter188',
'TanishqAhluwalia',
'J-yesh4939',
'sameer8991',
'ANSH-CODER-create',
'DeadShot-111',
'joydeepraina',
'Dhrupal19',
'Nikhil5511',
'lavyaKoli',
'jitu0956',
'parthika',
'digitalarunava',
'Shivamagg97',
'23031999',
'Ashu-Modanwal',
'Singhichchha',
'pareekaabhi33',
'yashpatel008',
'yashwantkaushal',
'prem-smvdu',
'jains1234567890',
'Ritesh-004',
'shraddha8218',
'misbah9105',
'Tanishqpy',
'Iamtripathisatyam',
'mdnazam',
'akashkalal',
'Abhishekkumar10',
'chaitalimazumder',
'shubham1176',
'866767676767',
'Priyanshu0131',
'Rajani12345678910',
'agrima84',
'DODOG98T',
'Abhishekaddu',
'ipriyanshuthakur',
'yogesh9555',
'shubham1234-os',
'abby486',
'YOGESH86400',
'jaggi-pixel',
'Utkarshdubey44',
'Mustafiz900',
'ashusaurav',
'Deepak27004',
'theHackPot',
'itsaaloksah',
'MakdiManush',
'Divyanshu09',
'codewithabhishek786',
'sumitkumar727254',
'faiz-9',
'soumyadipdaripa100',
'Prerna-eng',
'yourcodinsmas',
'akashnai',
'aryancoder4279',
'Anish-kumar7641',
'shivamkumar1999',
'Kushal34563',
'YashSinghyash',
'Alok070899',
'gautamdewasi',
'5HAD0W-P1R4T3',
'rajkhatana',
'Himanshu-Sharma-java',
'yethish',
'Vikaskhurja',
'boomboom2003',
'mansigurnani',
'ansh8540',
'beingkS23',
'raksharaj1122',
'harshoswal',
'mitali-datascientist',
'daadestroyer',
'panudet-24mb',
'divy-koushik',
'Tanuj1234567',
'pattnaikp',
'Gauravsaha-97',
'0x6D70',
'aptinstaller',
'SahilKhera14',
'Archie-Sharma',
'Chandan-program',
'shadowfighter2403',
'ivinodpatil2000',
'Souvik-py',
'NomanBaigA',
'UdhavKumar',
'rishabh-var123',
'NK-codeman0001',
'ritikkatiyar',
'ananey2004',
'tirth7677',
'Stud-dabral',
'dhruvsalve',
'treyssatvincent',
'AYUSHRAJ-WXYZ',
'JenisVaghasiya',
'KPRAPHULL',
'Apex-code',
'cypherrexx',
'AkilaDee',
'ankit-ec',
'darshan-10',
'Srijans01',
'Ankit00008',
'bijantitan',
'Jitendrayadav-eng',
'Tamonash-glitch',
'Ans-pro',
'yogesh8087',
'Sakshi2000-hash',
'shrbis2810',
'swagatopain6',
'mayankaryaman10',
'rajlomror',
'GauravNub',
'puru2407',
'KhushalPShah',
'aman7heaven',
'hazelvercetti',
'nil901',
'Ankitsingh6299',
'yashprasad8',
'Zapgithubexe',
'shiiivam',
'ShubhamGuptaa',
'viraj3315',
'Pratyush2005',
'jackSaluza',
'03shivamkushwah',
'shahvraj20',
'manaskirad',
'Harsh08112001',
'R667180',
'PRATIKBANSDOE',
'MabtoorUlShafiq',
'dkyadav8282',
'prtk2001',
'MrDpk818',
'ParmGill00',
'kavya0116',
'gauravrai26',
'sachi9692',
'nj1902',
'akshatjindal036',
'shravanvis',
'ranjith660',
'sahemur',
'MDARBAAJ',
'Tylerdurdenn',
'hemantagrawal1808',
'luck804',
'vivekpatel09',
'ArushiGupta21',
'ray5541',
'arpitlathiya',
'Koshal67',
'harshul03',
'avinchudasama',
'PUJACHAUDHARY092',
'shaifali-555',
'coderidder',
'ravianandfbg',
'rohitnaththakur',
'KhanRohila',
'nikhilkr1402',
'abhijitk123',
'Jitendra2027',
'Roshan13046',
'satyam1316',
'shhivam005',
'V-Soni',
'iamayanofficial',
'kunaljainSgit',
'shriramsalunke-45',
'Laltu079',
'premkushwaha1',
'aryansingho7',
'rohitkalse',
'Royalsolanki',
'MAYANK25402',
'prakharlegend15',
'Ansh2831',
'aps-glitch',
'PJ-123-Prime',
'iamprathamchhabra',
'Bhargavi09',
'Shubham2443',
'YashAgarwalDev',
'ChandanDroid',
'SaurabhDev338',
'developerlives',
'Abhishek-hash',
'harshal1996',
'ritik9428',
'shadab19it',
'sarthakd999',
'Pruthviraj001',
'royalkingsava',
'manofelfin',
'vedantbirla',
'nishantkrgupta14',
'harsh1471',
'krabhi977',
'Pradipta0065',
'Ajeet2007',
'aman97703',
'Killersaint007',
'sachin8859',
'shubhamsuman37',
'rutuja2807',
'rishabh2204',
'Basal05',
'vipulkumbhar0',
'DSMalaviya',
'Mohit5700',
'pranaykrpiyush',
'Deepesh11-Code',
'yogikhandal',
'jigneshoo7',
'vishal-1264',
'RohanKap00r',
'Lokik18',
'harisharma12',
'PRESIDENT-caris',
'sandy56github',
'shreeya0505',
'Azumaxoid',
'Hagemaru69',
'sanju69',
'Roopeshrawat',
'hackersadd',
'coder0880',
'bajajtushar094',
'amitkumar8514',
'avichalsri',
'Satya-cod',
'andaugust',
'emtushar',
'snehalbiju12',
'lakshya05',
'Shaika07',
'John339',
'chetan-v',
'KrishnaAgarwal3458',
'rohit-1225',
'vaibhavjain2099',
'Pratheekb1',
'devu2000',
'Akhil88328832',
'anupam123148',
'pramod12345-design',
'Kartik192192',
'Kartik-Aggarwal',
'Ekansh5702',
'basitali97',
'TanishqKhetan',
'deecode15800',
'Vibhore-7190',
'Harsh-pj',
'vishalvishw10',
'runaljain255',
'RitikmishraRitik',
'akashtyagi0008',
'albert1800',
'Harsh1388-p',
'Omkar0104',
'Lakshitasaini8',
'vaibhav-87',
'AshimKr',
'joshi2727',
'vihariswamy',
'Sudhanshu-Srivastava',
'sameersahoo',
'YOGENDER-sharma',
'shashank06-sudo',
'irramshaiikh',
'Magnate2213',
'srishti0801',
'darshanchau',
'tanishka1745',
'Coder00sharma',
'gariya95',
'vedanttttt',
'codecpacka',
'vijay0960',
'tanya-98',
'Tarkeshwar999',
'RiderX24',
'BUNNY2210',
'yuvrajbagale',
'Pranchalkushwaha',
'Varun11940',
'khushhal213',
'Raulkumar',
'bekapish',
'shubhkr1023',
'mishrasanskriti802',
'vaibhavimekhe',
'HardikShreays',
'ab-rahman92',
'waytoheaven001',
'ambrajyaldandi',
'100009224730519',
'Bikramdas04',
'mokshkant7',
'Harshcoder10',
'hvshete',
'sanmatipol',
'polankita',
'Vinit-Code04',
'Sheetal0601',
'harsh123-para',
'RitikSharma06',
'pankajmandal1996',
'AkshayNaphade',
'KaushalDevrari',
'ag3n7',
'SudershanSharma',
'naturese',
'Shubham-217',
'ateef-khan',
'sharad5987',
'anmolsahu901',
'sarkarbibrata',
'Chandramohan01',
'RAVI-SHEKHAR-SINGH',
'vinayak15-cyber',
'TheWriterSahb',
'way2dmark',
'Spramod23',
'Saurabgami977',
'doberoi10',
'Lakshya9425',
'megha1527',
'beasttiwari',
'gtg94',
'kshingala1',
'Dshivamkumar',
'smokkie087',
'RiserShaikh',
'explorerAndroid',
'Grace-Rasaily780',
'Harshacharya2020',
'SatvikVirmani',
'RishabhIshtwal',
'gargtanuj05',
'skilleddevil',
'XAFFI',
'BALAJIRAO676',
'neer007-cpu',
'JiimmyValentine',
'Dhruv8228',
'Devendranath-Maddula',
'abhishekaman3015',
'sudhir-12',
'Shashi-design',
'simplilearns',
'ThakurTulsi',
'rahulshastryd',
'Ankit9915',
'afridi1706',
'JaySingh23',
'DevCode-shreyas',
'Shivansh-K',
'kikisslass',
'swarup4544',
'shivam22chaudhary',
'smrn54',
'521ramborahul',
'pretechscience',
'rudrakj',
'janidivy',
'SuvarneshKM',
'manishsuthar414',
'raghavbansal-sys',
'GoGi2712',
'therikesh',
'Anonymouslaj',
'devs7122',
'icmulnk77',
'ankit4-com',
'ansh4223',
'shudhanshubisht08',
'RN-01',
'iamsandeepprasad',
'neerajd007',
'rrishu',
'sameer0606',
'kunaldhar',
'sajal243',
'Arsalankhan111',
'RavindraPal2000',
'shubham5630994',
'ankit526',
'codewithaniket',
'meetpanchal017',
'Pranjal1362',
'ni30kp',
'kushalsoni123',
'Nishantcoedtu',
'vijaygupta18',
'Bishalsharma733',
'AnkitaMalviya',
'anianiket',
'hritik6774',
'krongreap',
'FlyingwithCaptainSoumya',
'himpat202',
'mahin651',
'mohit-jadhav-mj',
'kaushiknyay18',
'testinguser883',
'MdUmar07',
'Saumiya-Ranjan',
'cycric',
'mandliya456',
'kavipss',
'Sumit1777',
'ankitgusain',
'SKamal1998',
'Pritam-hrxcoder13',
'shruti-coder',
'Harshit-techno',
'Sanketpatil45',
'poojan-26',
'Nayan-Sinha',
'confievil',
'mrkishanda',
'abhishek777777777777',
'ankitnith99',
'Pushkar0',
'Sahil-Sinha',
'Anantvasu-cyber',
'priyanujbd23',
'divyanshmalik22',
'shreybhan',
'nirupam090',
'sohail000shaikh',
'dhruvvats-011',
'ATRI2107',
'Harjot9812',
'sougata18p',
'Amogh6315',
'NishanBanga',
'SaifVeesar',
'edipretoro',
'Amit10538',
'thewires2',
'jaswalsaurabh',
'siddh358',
'raj074',
'Sameer-create',
'goderos19',
'akash6194',
'Ketan19479',
'shubham-01-star',
'avijitmondal',
'khand420',
'kasarpratik31',
'jayommaniya',
'WildCard13',
'RishabhAgarwal345',
'mukultwr',
'Gauravrathi1122',
'abhinav-bit',
'ShivamBaishkhiyar',
'sudip682',
'neelshah6892',
'archit00007',
'Kara3',
'Akash5523',
'Pranshumehta',
'karan97144',
'parasraghav288',
'codingmastr',
'farzi56787',
'SAURABHYAGYIK',
'faizan7800',
'TheBinitGhimire',
'anandrathod143',
'Jeetrughani',
'aaditya2357',
'ADDY-666',
'kumarsammi3',
'prembhatt1916',
'Gourav5857',
'pradnyaghuge',
'Vishal-Aggarwal0305',
'prashant-45',
'abhishek18002',
'Deadlynector',
'ashishjangir02082001',
'RohitSingh04',
'Satyamtechy',
'shreyukashid',
'M-ux349',
'Riya123cloud',
'coder-beast-78',
'mrmaxx010204',
'npdoshi5',
'gobar07',
'rushi1313',
'Akashsah312',
'pksinghal585',
'rockyfarhan',
'JayeshDehankar',
'sarap224',
'yash752004',
'rohan241119',
'Nick-h4ck3r',
'abhishekA07',
'cjjain76',
'CodeWithYashraj',
'dkp888',
'rahil003',
'sachin694',
'Anjali0369',
'sumeet004',
'aryan1256',
'PNSuchismita',
'shash2407',
'Tanishk007',
'Yugalbuddy',
'Saurabh392',
'Saurabh299',
'DevanshGupta15',
'DeltaxHamster',
'darpan45',
'P-cpu',
'singhneha94',
'Nitish-McQueen',
'GRACEMARYMATHEW',
'ios-shah',
'Divanshu2402',
'asubodh',
'CypherAk007',
'nethracookie',
'guptaji609',
'thishantj',
'shivamsaini89',
'AntLab04',
'bit2u',
'AbhishekTiwari72',
'shreyashkharde',
'PrabhatP2000',
'amansahani60',
'shubham5888',
'Ashutoshkrs',
'scratcher007lakshya',
'SumitRodrigues',
'Harishit1466',
'Gouravbhardwaj1',
'shraiyya',
'SpooderManEXE',
'thelinuxboy',
'jamnesh',
'Nilesh425',
'machinegun20000',
'Brianodroid',
'sunnyjohari',
'TusharThakkar13',
'juned06',
'bindu-07',
'gautamsharma17',
'sonamvlog',
'iRajMishra',
'ayushgupta1915',
'Joker9050',
'Aakash1720',
'sakshiii-bit',
'mpsapps',
'deadshot9987',
'RobinKumar5986',
'thiszsachin',
'karanjoshi1206',
'sumitsisodiya',
'akashnavale18',
'spmhot',
'ashutoshhack',
'shivamupasanigg',
'rajaramrom',
'vksvikash85072',
'mohitkedia-github',
'vanshdeepcoder',
'rkgupta95',
'sushilmangnlae',
'Prakashmishra25',
'YashPatelH',
'prakash-jayaswal-au6',
'AnayAshishBhagat',
'Indian-hacker',
'ishaanbhardwaj',
'nish235',
'shubhampatil9125',
'Ankush-prog',
'Arpus87',
'kuldeepborkarjr',
'rajibbera',
'kt96914',
'nithubcode',
'ishangoyal8055',
'Samirbhajipale',
'AnshKumar200',
'salmansalim145',
'SAWANTHMARINGANTI',
'ankitts12',
'ketul2912',
'kdj309',
'nsundriyal62',
'manishsingh003',
'Deepak-max800',
'magicmasti428',
'sidharthpunathil',
'shyamal2411',
'auravgv',
'MrIconic27',
'anku-11-11',
'Suyashendra',
'WarriorSdg',
'pythoniseasy-hub',
'Nikk-code',
'Kutubkhan2005',
'kunal4421',
'apoorva1823000',
'singharsh0',
'sushobhitk',
'NavidMansuri5155',
'tanav8570',
'Durveshpal',
'dkishere2021',
'shubhamraj01',
'manthan14448',
'sahilmandoliya',
'Dewakarsonusingh',
'kalpya123',
'9075yash',
'Aditya7851-AdiStarCoders',
'MrChau',
'ooyeayush',
'Vipinkumar12it',
'ayushyadav2001',
'akshay20105',
'prothehero',
'sam007143',
'subhojit75',
'Dhvanil25',
'ANKUSHSINGH-PAT',
'Apoorva-Shukla',
'GizmoGamingIn',
'Mahaveer173',
'Abhayrai778',
'adityarawat007',
'HarshKumar2001',
'mohitboricha',
'deepakpate07',
'Aish-18',
'Sakshi-2100',
'adarshdwivedi123',
'shubhamprakhar',
'Basir56',
'zerohub23',
'Shrish072003',
'yash3497',
'Alfax14910',
'khushboo-lab',
'Devam-Vyas',
'PPS-H',
'nimitshrestha',
'sunnythepatel',
'Tusharkumarofficial',
'Nikhilmadduri',
'hiddenGeeks',
'dearyash',
'shahvihan',
'BlackThor555',
'preetamsatpute555',
'RanniePavillon',
'dgbkn',
'Karan-Agarwal1',
'praanjaal-guptaa',
'Cha7410',
'ar2626715',
'suhaibshaik',
'gurkaranhub',
'Guptaji29',
'seekNdestory',
'gorujr',
'lokeshbramhe',
'Rakesh-roy',
'NKGupta07',
'hacky503boy',
'Harshit-Taneja',
'vishal3308',
'vibhor828',
'rabi477',
'ArinTyagi',
'RaviMahile',
'Ayushgreeshu',
'Deepak674',
'VikashAbhay',
'paddu-sonu',
'swapnil-morakhia',
'anshu7919',
'vickyshaw29',
'pawan941394',
'mayankrai123',
'riodelord',
'iamsmr',
'ramkrit',
'vijayjha15',
'Anurag346',
'vineetstar10',
'Amarjeetsingh6120000',
'ayush9000',
'staticman-net',
'piyush4github',
'Neal-01',
'sky00099',
'cjheath',
'pranavstar-1203',
'sjwarner',
'Sandeepana',
'ritikrkx21',
'alinasahoo',
'tech-vin',
'Atul-steamcoder',
'ranchodhamala11',
'pradnyahaval',
'Nishant2911',
'altaf71mansoori',
'codex111',
'anirbandey303',
'kishan-kushwaha',
'ashwinthomas28',
'adityasunny1189',
'sourav1122',
'Hozefa976',
'PratapSaren',
'vikram-3118',
'Deep22T',
'sidd4999',
'agrawalvinay699',
'anujsingh1913',
'SoniHariom555',
'AyushJoshi2001',
'barinder7',
'shishir-m98',
'abhishekkrdev',
'pmanaktala',
'Snehil101',
'Himanshsingh0753',
'sambhav2898',
'niteshsharma9',
'x-thompson3',
'Vipul-hash',
'MrityunjayR',
'Abhinav7272',
'prashant-pbh',
'Saswat-Gewali',
'Redcloud2020-coder',
'priyanka-prasad1',
'harshwardhan111',
'Rajendra-banna',
'Rajan24032000',
'Mariede',
'sakshi-jain24',
'arron-hacker',
'Aniket-ind',
'Devloper-Adil',
'Shubh2674',
'saloninahar',
'DipNkr',
'princekumar6',
'harshsingh121098',
'Rajneesh486Git',
'jitendragangwar',
'Jayesh-Kumar-Yadav',
'shudhii',
'Bishal-bit',
'sulemangit',
'Kushagra767',
'JSM2512',
'ovs1176',
'arfakl99',
'Premkr1110',
'YASH162',
'rp-singh1994',
'Deepu10172j',
'raghavk911',
'HardikN19',
'Gari1309',
'eklare19',
'rohitmore1012',
'Aabhash007',
'mohitsaha123',
'Bhagirath043',
'surajphulara',
'shaurya127',
'shubzzz98',
'mkarimi-coder',
'sakshi0309-champ',
'shivam623623',
'cheekudeveloper',
'Ashutosh-98765',
'Vaibhavipadamwar',
'shwetashrei',
'Banashree19',
'atharvashinde01',
'PrashantMehta-coder',
'kajolkumari150',
'Aqdashashmii',
'joyskmathew',
'pkkushagra',
'Rishrao09',
'Ashutoshrastogi02',
'JatulCodes',
'agarwals368',
'praveenbhardwaj',
'hardik302001',
'jagannathbehera444',
'jubyer00',
'SouravSarkar7',
'neerajsins',
'Rasam22',
'pk-bits',
'asawaronit60',
'anupama-nicky',
'Kishan-Kumar-Kannaujiya',
'carrycooldude',
'parasjain99',
'vishwatejharer',
'sayon-islam-23',
'sidhu56',
'Diwakarprasadlp',
'hashim361',
'Anantjoshie',
'bankateshkr',
'Mayank2001kh',
'RoyNancy',
'ayushsagar10',
'jaymishra2002',
'Anushka004',
'naitik-23',
'meraj97',
'gagangupta07',
'stark829',
'Muskan761',
'MrDeepakY',
'NayanPrakash11',
'shawnfrost69',
'thor174',
'Sumeet2442',
'ummekulsum123',
'akarsh2312',
'hemantmakkar',
'bardrock01',
'MrunalHole',
'chetanrakhra',
'pratik821',
'rahulkz',
'Akhilesh-ingle',
'pruthvi3007',
'Vanshi1999',
'sagarkb',
'CoderRushil',
'Shivansh2200',
'Ronak14999',
'srishtiaggarwal',
'adityakumar48',
'piyushchandana',
'Piyussshh',
'priyank-di',
'Vishwajeetbamane',
'moto-pixel',
'madmaxakshay',
'James-HACK',
'vikaschamyal',
'Arkadipta14',
'Abhishekk2000',
'Sushant012',
'Quint-Anir',
'navaloli',
'ronitsingh1405',
'vanshu25',
'samueldenzil',
'akashrajput25',
'sidhi100',
'ShivtechSolutions',
'vimal365',
'master77229',
'Shubham-Khetan-2005',
'vaishnavi-1',
'AbhijithSogal',
'Sid133',
'white-devil123',
'bawa2510',
'anjanikshree12',
'mansigupta1999',
'hritik229',
'engineersonal',
'adityaadg1997',
'mansishah20',
'2shuux',
'Nishthajosh',
'ParthaDe94',
'abhi-io',
'Neha-119',
'Dungeonmaster07',
'Prathu121',
'anishloop7',
'cwmohit',
'shivamsri142',
'Sahil9511',
'NIKHILAVISHEK',
'amitpaswan9',
'devsharmaarihant',
'bilal509',
'BrahmajitMohapatra',
'rebelpower',
'Biswajitpradhan',
'sudhirhacker999',
'pydevtanya',
'Ashutosh147',
'jayeshmishra',
'rahul97407',
'athar10y2k',
'mrvasani48',
'raiatharva',
'Arj09',
'manish-109',
'aishwarya540',
'mohitjoshi81',
'PrathamAditya',
'K-Adrenaline',
'mrvlsaf',
'shivam9599',
'souravnitkkr',
'Anugya-Gogoi',
'AdityaTiwari64',
'yash623623',
'anjanik807',
'ujjwal193',
'TusharKapoor24',
'Ayushman278',
'osama072',
'aksahoo-1097',
'kishan-31802',
'Roshanpaswan',
'Himanshu-Prajapati',
'satyamraj48',
'NEFARI0US',
'kavitsheth',
'kushagra-18',
'khalane1221',
'ravleenkaur8368',
'Himanshu9430',
'uttam509',
'CmeherGit',
'sid5566',
'devaryan12123',
'ishanchoudhry',
'himanshu70043',
'skabhi001',
'tekkenpro',
'sandip1911',
'HarshvardhnMishra',
'krunalrocky',
'rohitkr-07',
'anshulgarg1234',
'hacky502boy',
'vivek-nagre',
'Hsm7085',
'amazingmj',
'Rbsingh9111',
'ronupanchal',
'mohitcodeshere',
'1741Rishabh',
'Cypher2122',
'SahilDiwakar',
'abhigyan1000',
'HimanshuSharma5280',
'ProgrammerHarsh',
'Amitamit789',
'swapnilmutthalkar',
'enggRahul8git',
'BhuvnendraPratapSingh',
'Ronak1958',
'Knight-coder',
'Faizu123',
'shivansh987',
'mrsampage',
'AbhishikaAgarwal',
'Souvagya-Nayak',
'harsh287',
'Staryking',
'rmuliterno',
'kunjshah0703',
'KansaraPratham',
'GargoyleKing2112',
'Tanu-creater',
'satvikmittal638',
'gauravshinde-7',
'saabkapoor36',
'devangpawar',
'RiddhiCoder',
'Bilalrizwaan',
'sayyamjain78',
'2606199',
'mayuresh4700',
'umang171',
'kramit9',
'surendraverma1999',
'raviu773986',
'Codewithzaid',
'Souvik-Bose-199',
'BeManas',
'JKHAS786',
'MrK232',
'aaryannipane',
'bronzegamer',
'hardikkushwaha',
'Anurag931999',
'dhruvalgupta2003',
'kaushal7806',
'JayGupta6866',
'mayank161001',
'ShashankPawsekar',
'387daksh',
'Susanta-Nayak',
'Pratik-11',
'Anas-S-Shaikh',
'marginkantilal',
'Brijbihari24',
'Deepanshu761',
'Aakashlifehacker',
'SaketKaswa',
'dhritiduttroy',
'astitvagupta31',
'Prakhyat-Srivastava',
'Puneet405',
'harsh2630',
'sds9639',
'Prajwal38',
'simransharmarajni',
'Naman195',
'patience0721',
'Aman6651',
'tyagi1558',
'kmannnish',
'victorwpbastos',
'sagnik403',
'rahuly5544',
'PrinceKumarMaurya591',
'nakulwastaken',
'janmejayamet',
'HimanshuGupta11110000',
'Akshatcodes21',
'IRFANSARI',
'shreya991',
'pavan109',
'Parth00010',
'itzUG',
'Mayank-choudhary-SF',
'shubhamborse',
'Courage04',
'techsonu160',
'shivamkonkar',
'ErMapsh',
'roshan-githubb',
'Gourav502',
'SauravMiah',
'nikhil609',
'BenzylFernandes',
'BarnakGhosh',
'Aanchalgarg343',
'Madhav12345678',
'Tirth11',
'bhavesh1456',
'ajeet323327',
'AmitNayak9',
'lalitchauhan2712',
'raviroshan224',
'hellmodexxx',
'Dhruv1501',
'Himanshu6003',
'mystery2828',
'waris89',
'2303-kanha',
'Anshuk-Mishra',
'amandeeptiwari22',
'Shashikant9198',
'Adityacoder99',
'Pradeepsharma7447',
'varunreddy57',
'uddeshaya',
'Priyanka0310-byte',
'adharsidhantgupta',
'Bhupander7',
'NomanSubhani',
'umeshkv2',
'Debosmit-Neogi',
'bhaktiagrawal088',
'Aashishsharma99',
'G25091998',
'mdkaif25',
'raj-jetani',
'chetanpujari5105',
'Agrawal-Rajat',
'Parthkrishnan',
'sameer-15',
'HD-Harsh-Doshi',
'Anvesha',
'karanmankoliya',
'armandatt',
'DakshSinghalIMS',
'Bhavyyadav25',
'surya123-ctrl',
'shubhambhawsar-5782',
'PAWANOP',
'mohit-singh-coder',
'Mradul-Hub',
'babai1999',
'Ritesh4726',
'Anuj-Solanki',
'abhi04neel',
'yashshahah',
'yogendraN27',
'Rishabh23-thakur',
'Indhralochan',
'harshvaghani',
'dapokiya',
'pg00019',
'AMITPKR',
'pawarrahul1002',
'mrgentlemanus',
'anurag-sonkar',
'aalsicoder07',
'harsh2699',
'Rahilkaxi',
'Jyotindra-21',
'dhruvilmehta',
'jacktherock',
'helpinubcomgr8',
'spcrze',
'aman707f',
'Nikkhil-J',
'Poonam798',
'devyansh2006',
'amanpj15',
'rudrcodes',
'STREIN-max',
'Adarsh-kushwaha',
'adxsh',
'Mohnish7869',
'Mrpalash',
'umangpincha',
'aniket1399',
'Sudip843',
'Amartya-Srivastav',
'Ananda1113',
'nobbitaa',
'shahmeet79',
'AmitM56',
'jiechencn',
'devim-stuffs',
'bkobl',
'kavindyasinthasilva',
'MochamadAhya29',
'misbagas',
'ksmarty',
'vedikaag99',
'nongshaba1337',
'daiyi',
'Saturia',
'llfj',
'312494845',
'DeadPackets',
'Pandorax41',
'Kritip123',
'poburi',
'hffkb',
'cybrnook',
'lichaonetuser',
'l-k-a-m-a-z-a',
'zhaoshengweifeng',
'staticman-peoplesoftmods',
'ikghx',
'uguruyar',
'513439077',
'f4nff',
'samspei0l',
'Seminlee94',
'inflabz',
'jack1988520',
'lanfenglin',
'sujalgoel',
'foldax',
'corejava',
'DarkReitor',
'amirpourastarabadi',
'Raess-rk1',
'ankit0183',
'jurandy007',
'davidbarratt',
'bertonjulian',
'TMFRook',
'qhmdi',
'QairexStudio',
'XuHewen',
'happyxhw',
'Mokaz24',
'andyteq',
'Grommish',
'fork-bombed',
'AZiMiao1122',
'61569864',
'jeemgreen234',
'IgorKowalczykBot',
'sirpdboy',
'fjsnogueira',
'9000000',
'ascott',
'aparcar',
'void9main',
'gerzees',
'javadnew5',
'belatedluck',
'calmsacibis995',
'maciejSamerdak',
'ghostsniper2018',
'rockertinsein',
'divarjahan',
'skywalkerEx',
'ehack-italy',
'Cloufish',
'aasoares',
'mustyildiz',
'Ras7',
'philly12399',
'cuucondiep',
'Nomake',
'z306334796',
'ball144love',
'armfc6161',
'Alex-coffen',
'rodrigodesouza07',
'lss182650',
'iphotomoto',
'overlordsaten',
'miaoshengwang',
'ManiakMCPE',
'Yazid0540570463',
'unnamegeek',
'brennvika',
'ardi66',
'Cheniour10',
'lxc1121',
'rfm-bot',
'cornspig',
'jedai47',
'ignotus09',
'kamal7641',
'Dabe11',
'dgder0',
'Nerom',
'luixiuno',
'zh610902551',
'wifimedia',
'mjoelmendes',
'pc2019',
'hellodong',
'lkfete',
'a7raj',
'willquirk',
'xyudikxeon1717171717',
'420hackS',
'mohithpokala',
'tranglc',
'ilyankou',
'hhmaomao',
'hongjuzzang',
'Mophee-ds',
'wetorek',
'apktesl',
'jaylac2000',
'BishengSJTU',
'elfring',
'ThomasGrund',
'coltonios',
'kouhe3',
'balaji-29',
'demo003',
'gfsupport',
'AlonzoLax',
'tazmanian-hub',
'qwerttvv',
'kotucocuk',
'ajnair100',
'jirayutza1',
'karolsw3',
'shenzt68',
'xpalm',
'adamwebrog',
'jackmahoney',
'chenwangnec',
'hanlihanshaobo',
'jannik-mohemian',
'Pablosky12',
'95dewadew',
'dcharbonnier',
'chapmanvoris',
'nishantingle999',
'gulabraoingle',
'kalyaniingle',
'BoulavardDepo',
'amingoli78',
'daya2940',
'roaddogg2k2',
'AmbroseRen',
'jayadevvasudevan',
'pambec',
'orditeck',
'muhammetcan34',
'Aman199825',
'hyl946',
'CyberSecurityUP',
'kokum007',
'shivamjaiswal64',
'Skub123',
'KerimG',
'thehexmor',
'jakaya123',
'Ashish24788',
'qhuy1501',
'TranVanDinh235',
'Thuong1998',
'TranTheTuan',
'anhtuyenuet',
'tranhuongk',
'danhquyen0109',
'hunghv-0939',
'dat-lq-234',
'nguyenducviet1999',
'Rxzzma',
'MrRobotjs',
'jonschlinkert',
'awsumbill',
'lastle',
'gaga227',
'maiquangminh',
'andhie-wijaya',
'penn5',
'FormosaZh',
'itz63c',
'AvinashReddy3108',
'ferchlam',
'noobvishal',
'ammarraisafti',
'authenticatorbot',
'SekiBetu',
'markkap',
'wyd6295578sk',
'lorpus',
'Camelsvest',
'ben-august',
'jackytang',
'dominguezcelada',
'tony1016',
'afuerhoff420',
'darkoverlordofdata',
'yihanwu1024',
'bromiao',
'MaxEis',
'kyf15596619',
'Reysefyn',
'THEROCK2512',
'Krystool',
'Adomix',
'splexpe',
'hugetiny',
'mikeLongChen',
'KlansyMsniv',
'Anony1234mo',
'Mygod',
'chenzesam',
'vatayes',
'fisher134',
'bmaurizio',
'fire-bot',
'kjbot-github',
'Dcollins66',
'dislash',
'noraj',
'theLSA',
'chadyj',
'AlbertLiu-Breeze',
'jspspike',
'kill5Witchd',
'repushko',
'ankushshekhawat',
'karan1dhir',
'venkatvani',
'tracyxiong1',
'PythxnBite',
'vamshi0997',
'himanshu345',
'prabhat2001',
'aakar345',
'rangers9708',
'anuragiiitm',
'AlfieBurns12345678910',
'marpernas',
'jrcole2884',
'deshanjali',
'alekh42',
'deepakgangore',
'SuperBeagleDog',
'vasiliykovalev',
'lyin888',
'tchainzzz',
'Theoask',
'jnikita356',
'ajay1706',
'gane5hvarma',
'pbhavesh2807',
'daniloeler',
'gabrielrab',
'djdamian210',
'1samuel411',
'Apoorv1',
'AnimatedAnand',
'7coil',
'trentschnee',
'himanshu435',
'dialv',
'DHRUV536',
'pratyushraj01',
'vedantv',
'yusronrizki',
'joaoguazzelli',
'pradnyesh45',
'aneeshaanjali',
'iREDMe',
'ashish010598',
'abhi1998das',
'keshriraj7870',
'vishad2',
'Navzter',
'jagadyudha',
'hrom405',
'seferov',
'umeshdhauni',
'sakshamkhurana97',
'ThatNerdyPikachu',
'dishantsethi',
'tharindumalshan1',
'ruderbytes',
'pr-jli',
'21RachitShukla',
'fellipegs',
'foolbirds',
'hariprasetia',
'tanyaagrawal1006',
'Gaurav1309Goel',
'vidurathegeek',
'wolfsoldier47',
'bhaskar24',
'thedutchruben',
'Qoyyuum',
'msdeibel',
'Nann',
'bksahu',
'sathyamoorthyrr',
'sbenstewart',
'supriyanta',
'MasterKN48',
'prkhrv',
'Blatantz',
'rahulgoyal911',
'ranyejun',
'decpr',
'apollojoe',
'SuperAdam47',
'RootUp',
'llronaldoll',
'jayadeepgilroy',
'Arunthomas1105',
'zhanwenzhuo-github',
'dennisslol006',
'xFreshie',
'servantthought',
'Geilivable',
'xushet',
'order4adwriter',
'dubrovka',
'Nmeyers75',
'p3p5170',
'yangkun6666',
'knight6414',
'nailanawshaba',
'tuhafadam',
'stainbank',
'52fhy',
'jiyanmizah',
'iotsys',
'zhangxiao921207',
'empsmoke',
'asugarr',
'Amonhuz',
'VinayaSathyanarayana',
'html5lover',
'peterambrozic',
'maomaodegushi',
'ShelbsLynn',
'AmmarAlzoubi',
'AlessioPellegrini',
'tetroider',
'404-geek',
'mohammed078',
'sugus25',
'mxdi9i7',
'sahilmalhotra24',
'furqanhaidersyed',
'ChurchCRMBugReport',
'shivamkapoor3198',
'wulongji2016',
'jjelschen',
'bj2015',
'tangxuelong',
'gunther-bachmann',
'marcos-tomaz',
'anette68',
'techiadarsh',
'nishantmadu',
'Nikhil2508',
'anoojlal',
'krischoi07',
'utkarshyadavin',
'amanPanth',
'chinurox',
'syedbilal5000',
'NidPlays',
'jirawat050',
'RealAnishSharma',
'bwegener',
'whyisjacob',
'naveenpucha8',
'ronaksakhuja',
'ju3tin',
'DT9',
'dorex22',
'hiendinhngoc',
'mlkorra',
'Christensenea',
'Mouse31',
'VeloxDevelopment',
'parasnarang1234',
'beilo',
'armagadon159753',
'andrewducker',
'NotMainScientist',
'alterem',
'MilkAndCookiz',
'Justinshakes',
'TheColdVoid',
'falconxunit',
'974648183',
'minenlink',
'thapapinak',
'lianghuacheng',
'ben3726',
'BjarniRunar',
'Taki21',
'zsytssk',
'Apple240Bloom',
'shubham436',
'LoOnyBiker',
'uasi',
'wailoamrani',
'AnimeOverlord7',
'zzyzy',
'ignitete',
'vikstrous',
's5s5',
'tianxingvpn',
'talib1410',
'vinymv',
'yerikyy',
'Honsec',
'chesterwang',
'perryzou',
'Meprels',
'mfat',
'mo-han',
'roganoalien',
'amoxicillin',
'AbelLai',
'whatisgravity',
'darshankaarki',
'Tshifhiwa84',
'CurtainTears',
'gaotong2055',
'appleatiger',
'hdstar2009',
'TommyJerryMairo',
'GoogleCodeExporter',
]
| blacklist = ['userQED', 'GGupzHH', 'nodejs-ma', 'linxz-coder', 'teach-tian', 'kevinlens', 'Pabitra-26', 'mangalan516', 'IjtihadIslamEmon', 'marcin-majewski-sonarsource', 'LongTengDao', 'JoinsG', 'safanbd', 'aly2', 'aka434112SMAKSS', 'imbereket', 'takumu1011', 'adityanjr', 'Aa115511', 'farjanaHuq', 'samxcode', 'HaiTing-Zhu', 'gimnakatugampala', 'cmc3cn', 'kkkisme', 'haidongwang-github', 'ValueCoders', 'happy-dc', 'Tyorden', 'SP4R0W', 'q970923066', 'Shivansh2407', '1o1w1', 'soumyadip007', 'AceTheCreator', 'qianbaiduhai', 'changwei0857', 'CainKane', 'Jajabenit250', 'gouri1000', 'yvettep321', 'naveen8801', 'HelloAny', 'ShaileshDeveloper', 'Jia-De', 'JeffCorp', 'ht1131589588', 'Supsource', 'coolwebrahul', 'aimidy', 'ishaanthakur', 'vue-bot', 'dependabot', 'SudhanshuAGR', 'pinkuchoudhury69', 'brijal96', 'shahbazalam07', 'piyushkothari1999', 'imnrb', 'saksham05mathur', 'Someshkale15', 'xinghalok', 'manpreet147', 'sumitsrivastav180', '1234515', 'Rachit-hooda-man', 'vishal2305bug', 'Ajayraj006', 'pathak7838', 'Kumarjatin-coder', 'Narendra-Git-Hub', 'Stud-dabral', 'Siddhartha05', 'rishi123A', 'kartik71792', 'kapilpatel-2001', 'SapraRam', 'PRESIDENT-caris', 'smokkie087', 'Ravikant-unzippedtechnology', 'sawanch', 'Saayancoder', 'shubham5888', 'manasvi141220002', 'Asher12428', 'mohdalikhan', 'Paras4902', 'shudhii', 'Tesla9625', 'web-codegrammer', 'imprakashsah', 'Bhagirath043', 'Ankur-S1', 'Deannos', 'sapro-eng', 'skabhi001', 'AyushPathak12', 'Hatif786', 'adityas2124k2', 'Henry-786', 'abhi6418', 'J-Ankit2002', '9759176595', 'rajayush9944', 'Kishan-Kumar-Kannaujiya', 'ManavBargali', 'komalsharma121', 'AbhiramiTS', 'mdkaif25', 'shubhamsingh333', 'hellosibun', 'ankitbharti1998', 'subhakantabhau', 'shivamsri142', 'sameer13899', 'BhavyaTheHacker', 'nehashewale', 'Shashi-design', 'anuppal101', 'NitinRavat888', 'sakrit', 'Kamran-360', 'satyam-dot', 'Suleman3015', 'amanpj15', 'abhinavjha98', 'Akshat-Git-Sharma', 'Anuragtawaniya', 'nongshaba1337', 'XuHewen', 'happyxhw', 'ascott', 'ThomasGrund', 'Abhayrai778', 'pyup-bot', 'AhemadRazaK3', 'doberoi10', 'lsmatovu', 'Lakshay7014', 'nikhilkr1402', 'arfakl99', 'Tyrrrz', 'SwagatamNanda', 'V-Soni', 'hparadiz', 'Ankurmarkam', 'shubham-01-star', 'Rajputusman', 'bharat13soni', 'przemeklal', 'p4checo', 'REDSKULL1412', 'GAURAVCHETTRI', 'DerDomml', 'Sunit25', 'divyansh123-max', 'hackerharsh007', 'Thecreativeone2001', 'nishkarshsingh-tech', 'Devyadav1994', 'Rajeshjha586', 'BoboTiG', 'nils-braun', 'DjDeveloperr', 'FreddieRidell', 'pratyxx525', 'abstergo43', 'impossibleshado1', 'Gurnoor007', '2303-kanha', 'ChaitanyaAg', 'justinjpacheco', 'shoaib5887khan', 'farhanmulla713', 'ashrafzeya', 'muke64', 'aditya08maker', 'rajbaba1', 'priyanshu-top10', 'Maharshi369', 'Deep-bhingradiya', 'shyam7e', 'shubhamsuman37', 'jastisriradheshyam', 'Harshit-10-pal', 'shivphp', 'RohanSahana', '404notfound-3', 'ritikkatiyar', 'ashishmohan0522', 'Amanisrar', 'VijyantVerma', 'Chetanchetankoli', 'Hultner', 'gongeprashant', 'psw89', 'harshilaneja', 'SLOKPATHAK', 'st1891', 'nandita853', 'ms-prob', 'Sk1llful', 'HarshKq', 'rpy9954', 'TheGunnerMan', 'AhsanKhokhar1', 'RajnishJha12', 'Adityapandey-7', 'vipulkumbhar0', 'nikhilkhetwal', 'Adityacoder99', 'arjun01-debug', 'saagargupta', 'UtCurseSingh', 'Anubhav07-pixel', 'Vinay584', 'YA7CR7', 'anirbanballav', 'mrPK', 'VibhakarYashasvi', 'ANKITMOHAPATRAPROGRAMS', 'parmar-hacky', 'zhacker1999', 'akshatjindal036', 'swarakeshrwani', 'ygajju52', 'Nick-Kr-Believe', 'adityashukl1502', 'mayank23raj', 'shauryamishra', 'swagat11', '007swayam', 'gardener-robot-ci-1', 'ARUNJAYSACHAN', 'MdUmar07', 'vermavinay8948', 'Rimjhim-Dey', 'prathamesh-jadhav-21', 'brijal96', 'siddhantparadox', 'Abhiporwal123', 'sparshbhardwaj209', 'Amit-Salunke-02', 'wwepavansharma', 'kirtisahu123', 'japsimrans13', 'wickedeagle', 'AnirbanB999', 'jayeshmishra', 'shahbazalam07', 'Samrath07', 'pinkuchoudhury69', 'moukhikgupta5', 'hih547430', 'burhankhan23', 'Rakesh0222', 'Rahatullah19', 'sanskar783', 'Eshagupta0106', 'Arpit-Tailong', 'Adityaaashu', 'rahul149', 'udit0912', 'aru5858', 'riya6361', 'vanshkhemani', 'Aditi0205', 'riteshbiswas0', '12Ayush12008039', 'Henry-786', 'ManviMaheshwari', 'SATHIYASEELAN2001', 'SuchetaPal', 'Sahil24822', 'sohamgit', 'Bhumi5599', 'anil-rathod', 'binayuchai', 'PujaMawandia123', '78601abhiyadav', 'PriiTech', 'SahilBhagtani', 'dhruv1214', 'SAURABHYAGYIK', 'farhanmansuri25', 'Chronoviser', 'airtel945', 'Swagnikdhar', 'tushar-1308', 'sameerbasha123', 'anshu15183', 'Mohit049', 'YUVRAJBHATI', 'miras143mom', 'ProPrakharSoni', 'pratikkhatana', 'Alan1857', 'AyanKrishna', 'kartikey2003jain', 'sailinkan', 'DEVELOPER06810', 'Abhijeet9274', 'Kannu12', 'Shivam-Amin', 'suraj-lpu', 'Elizah550', 'dipsylocus', 'jaydev-coding', 'IamLucif3r', 'DesignrKnight', 'PiyumalK', 'nandita853', 'mohsin529', 'ShravanBhat', 'doppelganger-test', 'smitgh', 'parasgarg123', 'Amit-Salunke-02', 'Chinmay-KB', 'sagarr1', 'Praveshrana12', 'fortrathon', 'miqbalrr', 'Ankurmarkam', 'saloni691', 'Bhuvan804', 'pra-b-hat-chauhan', 'snakesause', 'Shubhani25', 'arshad699', 'fahad-25082001', 'Chaitanya31612', 'tiwariraju', 'ritik0021', 'aakash-dhingra', 'Raunak017', 'ashrafzeya', 'priyanshu-top10', 'NikhilKumar-coder', 'ygajju52', 'shvnsh', 'abhishek7457', 'sethmcagit', 'Apurva122', 'Gurpreet-Singh-Bhupal', 'ashmit-coder', 'Rishi098', 'Xurde-glitch', 'imrohitoberoi', 'Hrushikeshsalunkhe', 'ABHI2598', 'Abhishek8-web', 'arjun01-debug', 'Shailesh12-svg', 'SachinSingh7050', 'VibhakarYashasvi', 'rajbaba1', 'yuvraj66', 'Nick-Kr-Believe', 'gongeprashant', 'sanskar783', 'infoguru19', 'Shamik225', 'Pro0131', 'soni-111', 'Rahul-bitu', 'meetshrimali', 'coolsuva', 'yogeshwaran01', 'Satyamtripathi1996', 'Rahatullah19', 'kartikey2003jain', 'rajarshi15220', 'SahilBhagtani', 'janni-03', 'Abhijit-06', 'dvlp-jrs', 'Viki3223', 'Azhad56', 'Mohit049', 'mvpsaurav', 'dvcrn', 'Deep-bhingradiya', 'shreyans2007', 'sailinkan', 'Abhijeet9274', 'riteshbiswas0', 'AhemadRazaK3', 'rishi123A', 'shivpatil', 'rikidas99', 'sohamgit', 'jheero', 'itzhv14', 'sameerbasha123', 'yatendra-dev', 'AditiGautam2000', 'sid0542', 'tushar-1308', 'dhruvil05', 'sufiyankhanz', 'Alan1857', 'siriusb79', 'PKan06', 'yagnikvadaliya', 'yogeshkun', 'Abhishekjhatech', 'jatinsharma11', 'THENNARASU-M', 'priyanshu987art', 'maulik922', 'param-de', 'nisheksharma', 'balbirsingh08', 'piyushkothari1999', 'zeeshanthedev590', 'praney-pareek', 'SUBHANGANI22', 'kartikeyaGUPTA45', 'Educatemeans', '9192939495969798', 'Amit1173', 'thetoppython', 'Saurabhsingh94', 'royalbhati', 'kardithSingh', 'kishankumar05', 'Rachit-hooda-man', 'alijng', 'patel-om', 'jahangirguru', 'Vchandan348', 'amitagarwalaa57', 'rockingrohit9639', 'Krishnapal-rajput', 'aman78954098', 'pranshuag1818', 'PIYUSH6791', 'Lachiemckelvie', 'Pragati-Gawande', 'mahesh2526', 'Aman9234', 'xMaNaSx', 'shreyanshnpanwar', 'Paravindvishwakarma', 'chandan-op', 'amit007-majhi', 'Rahul-TheHacker', 'sharmanityam252', 'iamnishan', 'codewithashu', 'mersonfufu', 'saksham05mathur', 'Krishna10798', 'rajashit14', 'aetios', 'pankajnimiwal', '132ikl', 'ghost', 'Sabyyy', '9Ankit00', 'AfreenKhan777', 'akash-bansal-02', 'regakakobigman', 'aman1750', 'irajdip99', 'mohdadil2001', 'shithinshetty', 'nikhilsawalkar', 'Brighu-Raina', 'kenkirito', 'SamueldaCostaAraujoNunes', 'codewithsaurav', 'Ashutoshvk18', 'EthicalRohit', 'ihimalaya', 'somya-max', 'themonkeyhacker', 'rammohan12345', 'JasmeetSinghWasal', 'black73', 'Rebelshiv', 'DarshanaNemane', 'Jitin20', 'Prakshal2607', 'Sourabhkale1', 'shoeb370', 'ArijitGoswami100', 'anju2408', 'ukybhaiii', 'anshulbhandari5', 'pratham1303', 'arpitdevv', 'RishabhGhildiyal', 'mohammedssab', 'deepakshisingh', 'Samshopify', 'ankitkumar827', 'anddytheone', 'Tush6571', 'pritam98-debug', 'Snehapriya9955', 'coastaldemigod', 'yogesh-1952', 'Vivekv11', 'Andrewrick1', 'DARSHIT006', 'pravar18', 'devildeep4u', '21appleceo', 'bereketsemagn', 'vandana-kotnala', 'tanya4113', 'gorkemkrdmn', 'Ashwin0512', 'prateekrathore1234', 'hash-mesh', 'pathak7838', 'sakshamdeveloper', 'ankan10', 'prafgup', 'anurag200502', 'niklifter', 'Shreeja1699', 'shivshikharsinha', 'SumanPurkait-grb', 'chiranjeevprajapat', 'TechieBoy', 'KhushiMittal', 'UtCurseSingh', 'lucastrogo', 'jarvis0302', 'ratan160', 'kgaurav123', 'dhakad17', 'Rishn99', 'codeme13', 'KINGUMS', 'sun-3', 'varunsingh251', 'thedrivingforc', 'aditya08maker', 'AkashVerma1515', 'gaurangbhavsar', 'ApurvaSharma20', 'Manmeet1999', 'Arhaans', 'Jaykitkukadiya', 'Rimjhim-Dey', 'apurv69', 'parth-lth', 'PranshuVashishtha', 'sidhantsharmaa', 'uday0001', 'iamrahul-9', 'nagpalnipun22', 'poonamp-31', 'dhananjaypatil', 'baibhavvishalpani', 'Ashish774-sol', 'sachin2490', 'Sudhanshu777871', 'mayur1234-shiwal', 'RohanWakhare', 'rishi4004', 'Amankumar019', 'Vaibhav162002', 'pratyushsrivastava500', 'AmarPaul-GiT', 'arjit-gupta', 'nitinchopade', 'imakg', 'meharshchakraborty', 'tumsabGandu', 'anurag360', '2000sanu', 'PoorviAgrawal56', 'omdhurat', 'Pawansinghla', 'thehacker-oss', 'mritu-mritu', 'AJAY07111998', 'rai12091997', 'OmShrivastava19', 'Divyanshu2109', 'adityaherowa', 'Abhishekt07', 'code-diggers-369', 'Jamesj001', 'coding-geek1711', 'govindrajpagul', 'CDP14', 'Kartik989-max', 'MaheshDoiphode', 'Pranayade777', 'er-royalprince', 'ricardoseriani', 'nowitsbalibhadra', 'navyaswarup', 'devendrathakare44', 'awaisulabdeen', 'SoumyaShree80', 'abahad7921', 'vishal0410', 'gajerachintan9', 'EBO9877', 'rohit-rksaini', 'momin786786', 'Shaurya-567', 'himanshu1079', 'AlecsFerra', 'rajvpatil5', 'Hacker-Boss', 'Rakesh0222', 'ASHMITA-DE', 'BilalSabugar', 'Anjan50', 'Vedant336', 'github2aman', 'satyamgta', 'kumar-vineet', 'uttamagrawal', 'AjaySinghPanwar', 'saieshdevidas', 'ohamshakya', 'JrZemdegs712', 'Anil404', 'Anamika1818', 'ssisodiya28', 'Vedurumudi-Priyanka', 'python1neo', 'sanketprajapati', 'InfinitelLoop', 'DarkMatter188', 'TanishqAhluwalia', 'J-yesh4939', 'sameer8991', 'ANSH-CODER-create', 'DeadShot-111', 'joydeepraina', 'Dhrupal19', 'Nikhil5511', 'lavyaKoli', 'jitu0956', 'parthika', 'digitalarunava', 'Shivamagg97', '23031999', 'Ashu-Modanwal', 'Singhichchha', 'pareekaabhi33', 'yashpatel008', 'yashwantkaushal', 'prem-smvdu', 'jains1234567890', 'Ritesh-004', 'shraddha8218', 'misbah9105', 'Tanishqpy', 'Iamtripathisatyam', 'mdnazam', 'akashkalal', 'Abhishekkumar10', 'chaitalimazumder', 'shubham1176', '866767676767', 'Priyanshu0131', 'Rajani12345678910', 'agrima84', 'DODOG98T', 'Abhishekaddu', 'ipriyanshuthakur', 'yogesh9555', 'shubham1234-os', 'abby486', 'YOGESH86400', 'jaggi-pixel', 'Utkarshdubey44', 'Mustafiz900', 'ashusaurav', 'Deepak27004', 'theHackPot', 'itsaaloksah', 'MakdiManush', 'Divyanshu09', 'codewithabhishek786', 'sumitkumar727254', 'faiz-9', 'soumyadipdaripa100', 'Prerna-eng', 'yourcodinsmas', 'akashnai', 'aryancoder4279', 'Anish-kumar7641', 'shivamkumar1999', 'Kushal34563', 'YashSinghyash', 'Alok070899', 'gautamdewasi', '5HAD0W-P1R4T3', 'rajkhatana', 'Himanshu-Sharma-java', 'yethish', 'Vikaskhurja', 'boomboom2003', 'mansigurnani', 'ansh8540', 'beingkS23', 'raksharaj1122', 'harshoswal', 'mitali-datascientist', 'daadestroyer', 'panudet-24mb', 'divy-koushik', 'Tanuj1234567', 'pattnaikp', 'Gauravsaha-97', '0x6D70', 'aptinstaller', 'SahilKhera14', 'Archie-Sharma', 'Chandan-program', 'shadowfighter2403', 'ivinodpatil2000', 'Souvik-py', 'NomanBaigA', 'UdhavKumar', 'rishabh-var123', 'NK-codeman0001', 'ritikkatiyar', 'ananey2004', 'tirth7677', 'Stud-dabral', 'dhruvsalve', 'treyssatvincent', 'AYUSHRAJ-WXYZ', 'JenisVaghasiya', 'KPRAPHULL', 'Apex-code', 'cypherrexx', 'AkilaDee', 'ankit-ec', 'darshan-10', 'Srijans01', 'Ankit00008', 'bijantitan', 'Jitendrayadav-eng', 'Tamonash-glitch', 'Ans-pro', 'yogesh8087', 'Sakshi2000-hash', 'shrbis2810', 'swagatopain6', 'mayankaryaman10', 'rajlomror', 'GauravNub', 'puru2407', 'KhushalPShah', 'aman7heaven', 'hazelvercetti', 'nil901', 'Ankitsingh6299', 'yashprasad8', 'Zapgithubexe', 'shiiivam', 'ShubhamGuptaa', 'viraj3315', 'Pratyush2005', 'jackSaluza', '03shivamkushwah', 'shahvraj20', 'manaskirad', 'Harsh08112001', 'R667180', 'PRATIKBANSDOE', 'MabtoorUlShafiq', 'dkyadav8282', 'prtk2001', 'MrDpk818', 'ParmGill00', 'kavya0116', 'gauravrai26', 'sachi9692', 'nj1902', 'akshatjindal036', 'shravanvis', 'ranjith660', 'sahemur', 'MDARBAAJ', 'Tylerdurdenn', 'hemantagrawal1808', 'luck804', 'vivekpatel09', 'ArushiGupta21', 'ray5541', 'arpitlathiya', 'Koshal67', 'harshul03', 'avinchudasama', 'PUJACHAUDHARY092', 'shaifali-555', 'coderidder', 'ravianandfbg', 'rohitnaththakur', 'KhanRohila', 'nikhilkr1402', 'abhijitk123', 'Jitendra2027', 'Roshan13046', 'satyam1316', 'shhivam005', 'V-Soni', 'iamayanofficial', 'kunaljainSgit', 'shriramsalunke-45', 'Laltu079', 'premkushwaha1', 'aryansingho7', 'rohitkalse', 'Royalsolanki', 'MAYANK25402', 'prakharlegend15', 'Ansh2831', 'aps-glitch', 'PJ-123-Prime', 'iamprathamchhabra', 'Bhargavi09', 'Shubham2443', 'YashAgarwalDev', 'ChandanDroid', 'SaurabhDev338', 'developerlives', 'Abhishek-hash', 'harshal1996', 'ritik9428', 'shadab19it', 'sarthakd999', 'Pruthviraj001', 'royalkingsava', 'manofelfin', 'vedantbirla', 'nishantkrgupta14', 'harsh1471', 'krabhi977', 'Pradipta0065', 'Ajeet2007', 'aman97703', 'Killersaint007', 'sachin8859', 'shubhamsuman37', 'rutuja2807', 'rishabh2204', 'Basal05', 'vipulkumbhar0', 'DSMalaviya', 'Mohit5700', 'pranaykrpiyush', 'Deepesh11-Code', 'yogikhandal', 'jigneshoo7', 'vishal-1264', 'RohanKap00r', 'Lokik18', 'harisharma12', 'PRESIDENT-caris', 'sandy56github', 'shreeya0505', 'Azumaxoid', 'Hagemaru69', 'sanju69', 'Roopeshrawat', 'hackersadd', 'coder0880', 'bajajtushar094', 'amitkumar8514', 'avichalsri', 'Satya-cod', 'andaugust', 'emtushar', 'snehalbiju12', 'lakshya05', 'Shaika07', 'John339', 'chetan-v', 'KrishnaAgarwal3458', 'rohit-1225', 'vaibhavjain2099', 'Pratheekb1', 'devu2000', 'Akhil88328832', 'anupam123148', 'pramod12345-design', 'Kartik192192', 'Kartik-Aggarwal', 'Ekansh5702', 'basitali97', 'TanishqKhetan', 'deecode15800', 'Vibhore-7190', 'Harsh-pj', 'vishalvishw10', 'runaljain255', 'RitikmishraRitik', 'akashtyagi0008', 'albert1800', 'Harsh1388-p', 'Omkar0104', 'Lakshitasaini8', 'vaibhav-87', 'AshimKr', 'joshi2727', 'vihariswamy', 'Sudhanshu-Srivastava', 'sameersahoo', 'YOGENDER-sharma', 'shashank06-sudo', 'irramshaiikh', 'Magnate2213', 'srishti0801', 'darshanchau', 'tanishka1745', 'Coder00sharma', 'gariya95', 'vedanttttt', 'codecpacka', 'vijay0960', 'tanya-98', 'Tarkeshwar999', 'RiderX24', 'BUNNY2210', 'yuvrajbagale', 'Pranchalkushwaha', 'Varun11940', 'khushhal213', 'Raulkumar', 'bekapish', 'shubhkr1023', 'mishrasanskriti802', 'vaibhavimekhe', 'HardikShreays', 'ab-rahman92', 'waytoheaven001', 'ambrajyaldandi', '100009224730519', 'Bikramdas04', 'mokshkant7', 'Harshcoder10', 'hvshete', 'sanmatipol', 'polankita', 'Vinit-Code04', 'Sheetal0601', 'harsh123-para', 'RitikSharma06', 'pankajmandal1996', 'AkshayNaphade', 'KaushalDevrari', 'ag3n7', 'SudershanSharma', 'naturese', 'Shubham-217', 'ateef-khan', 'sharad5987', 'anmolsahu901', 'sarkarbibrata', 'Chandramohan01', 'RAVI-SHEKHAR-SINGH', 'vinayak15-cyber', 'TheWriterSahb', 'way2dmark', 'Spramod23', 'Saurabgami977', 'doberoi10', 'Lakshya9425', 'megha1527', 'beasttiwari', 'gtg94', 'kshingala1', 'Dshivamkumar', 'smokkie087', 'RiserShaikh', 'explorerAndroid', 'Grace-Rasaily780', 'Harshacharya2020', 'SatvikVirmani', 'RishabhIshtwal', 'gargtanuj05', 'skilleddevil', 'XAFFI', 'BALAJIRAO676', 'neer007-cpu', 'JiimmyValentine', 'Dhruv8228', 'Devendranath-Maddula', 'abhishekaman3015', 'sudhir-12', 'Shashi-design', 'simplilearns', 'ThakurTulsi', 'rahulshastryd', 'Ankit9915', 'afridi1706', 'JaySingh23', 'DevCode-shreyas', 'Shivansh-K', 'kikisslass', 'swarup4544', 'shivam22chaudhary', 'smrn54', '521ramborahul', 'pretechscience', 'rudrakj', 'janidivy', 'SuvarneshKM', 'manishsuthar414', 'raghavbansal-sys', 'GoGi2712', 'therikesh', 'Anonymouslaj', 'devs7122', 'icmulnk77', 'ankit4-com', 'ansh4223', 'shudhanshubisht08', 'RN-01', 'iamsandeepprasad', 'neerajd007', 'rrishu', 'sameer0606', 'kunaldhar', 'sajal243', 'Arsalankhan111', 'RavindraPal2000', 'shubham5630994', 'ankit526', 'codewithaniket', 'meetpanchal017', 'Pranjal1362', 'ni30kp', 'kushalsoni123', 'Nishantcoedtu', 'vijaygupta18', 'Bishalsharma733', 'AnkitaMalviya', 'anianiket', 'hritik6774', 'krongreap', 'FlyingwithCaptainSoumya', 'himpat202', 'mahin651', 'mohit-jadhav-mj', 'kaushiknyay18', 'testinguser883', 'MdUmar07', 'Saumiya-Ranjan', 'cycric', 'mandliya456', 'kavipss', 'Sumit1777', 'ankitgusain', 'SKamal1998', 'Pritam-hrxcoder13', 'shruti-coder', 'Harshit-techno', 'Sanketpatil45', 'poojan-26', 'Nayan-Sinha', 'confievil', 'mrkishanda', 'abhishek777777777777', 'ankitnith99', 'Pushkar0', 'Sahil-Sinha', 'Anantvasu-cyber', 'priyanujbd23', 'divyanshmalik22', 'shreybhan', 'nirupam090', 'sohail000shaikh', 'dhruvvats-011', 'ATRI2107', 'Harjot9812', 'sougata18p', 'Amogh6315', 'NishanBanga', 'SaifVeesar', 'edipretoro', 'Amit10538', 'thewires2', 'jaswalsaurabh', 'siddh358', 'raj074', 'Sameer-create', 'goderos19', 'akash6194', 'Ketan19479', 'shubham-01-star', 'avijitmondal', 'khand420', 'kasarpratik31', 'jayommaniya', 'WildCard13', 'RishabhAgarwal345', 'mukultwr', 'Gauravrathi1122', 'abhinav-bit', 'ShivamBaishkhiyar', 'sudip682', 'neelshah6892', 'archit00007', 'Kara3', 'Akash5523', 'Pranshumehta', 'karan97144', 'parasraghav288', 'codingmastr', 'farzi56787', 'SAURABHYAGYIK', 'faizan7800', 'TheBinitGhimire', 'anandrathod143', 'Jeetrughani', 'aaditya2357', 'ADDY-666', 'kumarsammi3', 'prembhatt1916', 'Gourav5857', 'pradnyaghuge', 'Vishal-Aggarwal0305', 'prashant-45', 'abhishek18002', 'Deadlynector', 'ashishjangir02082001', 'RohitSingh04', 'Satyamtechy', 'shreyukashid', 'M-ux349', 'Riya123cloud', 'coder-beast-78', 'mrmaxx010204', 'npdoshi5', 'gobar07', 'rushi1313', 'Akashsah312', 'pksinghal585', 'rockyfarhan', 'JayeshDehankar', 'sarap224', 'yash752004', 'rohan241119', 'Nick-h4ck3r', 'abhishekA07', 'cjjain76', 'CodeWithYashraj', 'dkp888', 'rahil003', 'sachin694', 'Anjali0369', 'sumeet004', 'aryan1256', 'PNSuchismita', 'shash2407', 'Tanishk007', 'Yugalbuddy', 'Saurabh392', 'Saurabh299', 'DevanshGupta15', 'DeltaxHamster', 'darpan45', 'P-cpu', 'singhneha94', 'Nitish-McQueen', 'GRACEMARYMATHEW', 'ios-shah', 'Divanshu2402', 'asubodh', 'CypherAk007', 'nethracookie', 'guptaji609', 'thishantj', 'shivamsaini89', 'AntLab04', 'bit2u', 'AbhishekTiwari72', 'shreyashkharde', 'PrabhatP2000', 'amansahani60', 'shubham5888', 'Ashutoshkrs', 'scratcher007lakshya', 'SumitRodrigues', 'Harishit1466', 'Gouravbhardwaj1', 'shraiyya', 'SpooderManEXE', 'thelinuxboy', 'jamnesh', 'Nilesh425', 'machinegun20000', 'Brianodroid', 'sunnyjohari', 'TusharThakkar13', 'juned06', 'bindu-07', 'gautamsharma17', 'sonamvlog', 'iRajMishra', 'ayushgupta1915', 'Joker9050', 'Aakash1720', 'sakshiii-bit', 'mpsapps', 'deadshot9987', 'RobinKumar5986', 'thiszsachin', 'karanjoshi1206', 'sumitsisodiya', 'akashnavale18', 'spmhot', 'ashutoshhack', 'shivamupasanigg', 'rajaramrom', 'vksvikash85072', 'mohitkedia-github', 'vanshdeepcoder', 'rkgupta95', 'sushilmangnlae', 'Prakashmishra25', 'YashPatelH', 'prakash-jayaswal-au6', 'AnayAshishBhagat', 'Indian-hacker', 'ishaanbhardwaj', 'nish235', 'shubhampatil9125', 'Ankush-prog', 'Arpus87', 'kuldeepborkarjr', 'rajibbera', 'kt96914', 'nithubcode', 'ishangoyal8055', 'Samirbhajipale', 'AnshKumar200', 'salmansalim145', 'SAWANTHMARINGANTI', 'ankitts12', 'ketul2912', 'kdj309', 'nsundriyal62', 'manishsingh003', 'Deepak-max800', 'magicmasti428', 'sidharthpunathil', 'shyamal2411', 'auravgv', 'MrIconic27', 'anku-11-11', 'Suyashendra', 'WarriorSdg', 'pythoniseasy-hub', 'Nikk-code', 'Kutubkhan2005', 'kunal4421', 'apoorva1823000', 'singharsh0', 'sushobhitk', 'NavidMansuri5155', 'tanav8570', 'Durveshpal', 'dkishere2021', 'shubhamraj01', 'manthan14448', 'sahilmandoliya', 'Dewakarsonusingh', 'kalpya123', '9075yash', 'Aditya7851-AdiStarCoders', 'MrChau', 'ooyeayush', 'Vipinkumar12it', 'ayushyadav2001', 'akshay20105', 'prothehero', 'sam007143', 'subhojit75', 'Dhvanil25', 'ANKUSHSINGH-PAT', 'Apoorva-Shukla', 'GizmoGamingIn', 'Mahaveer173', 'Abhayrai778', 'adityarawat007', 'HarshKumar2001', 'mohitboricha', 'deepakpate07', 'Aish-18', 'Sakshi-2100', 'adarshdwivedi123', 'shubhamprakhar', 'Basir56', 'zerohub23', 'Shrish072003', 'yash3497', 'Alfax14910', 'khushboo-lab', 'Devam-Vyas', 'PPS-H', 'nimitshrestha', 'sunnythepatel', 'Tusharkumarofficial', 'Nikhilmadduri', 'hiddenGeeks', 'dearyash', 'shahvihan', 'BlackThor555', 'preetamsatpute555', 'RanniePavillon', 'dgbkn', 'Karan-Agarwal1', 'praanjaal-guptaa', 'Cha7410', 'ar2626715', 'suhaibshaik', 'gurkaranhub', 'Guptaji29', 'seekNdestory', 'gorujr', 'lokeshbramhe', 'Rakesh-roy', 'NKGupta07', 'hacky503boy', 'Harshit-Taneja', 'vishal3308', 'vibhor828', 'rabi477', 'ArinTyagi', 'RaviMahile', 'Ayushgreeshu', 'Deepak674', 'VikashAbhay', 'paddu-sonu', 'swapnil-morakhia', 'anshu7919', 'vickyshaw29', 'pawan941394', 'mayankrai123', 'riodelord', 'iamsmr', 'ramkrit', 'vijayjha15', 'Anurag346', 'vineetstar10', 'Amarjeetsingh6120000', 'ayush9000', 'staticman-net', 'piyush4github', 'Neal-01', 'sky00099', 'cjheath', 'pranavstar-1203', 'sjwarner', 'Sandeepana', 'ritikrkx21', 'alinasahoo', 'tech-vin', 'Atul-steamcoder', 'ranchodhamala11', 'pradnyahaval', 'Nishant2911', 'altaf71mansoori', 'codex111', 'anirbandey303', 'kishan-kushwaha', 'ashwinthomas28', 'adityasunny1189', 'sourav1122', 'Hozefa976', 'PratapSaren', 'vikram-3118', 'Deep22T', 'sidd4999', 'agrawalvinay699', 'anujsingh1913', 'SoniHariom555', 'AyushJoshi2001', 'barinder7', 'shishir-m98', 'abhishekkrdev', 'pmanaktala', 'Snehil101', 'Himanshsingh0753', 'sambhav2898', 'niteshsharma9', 'x-thompson3', 'Vipul-hash', 'MrityunjayR', 'Abhinav7272', 'prashant-pbh', 'Saswat-Gewali', 'Redcloud2020-coder', 'priyanka-prasad1', 'harshwardhan111', 'Rajendra-banna', 'Rajan24032000', 'Mariede', 'sakshi-jain24', 'arron-hacker', 'Aniket-ind', 'Devloper-Adil', 'Shubh2674', 'saloninahar', 'DipNkr', 'princekumar6', 'harshsingh121098', 'Rajneesh486Git', 'jitendragangwar', 'Jayesh-Kumar-Yadav', 'shudhii', 'Bishal-bit', 'sulemangit', 'Kushagra767', 'JSM2512', 'ovs1176', 'arfakl99', 'Premkr1110', 'YASH162', 'rp-singh1994', 'Deepu10172j', 'raghavk911', 'HardikN19', 'Gari1309', 'eklare19', 'rohitmore1012', 'Aabhash007', 'mohitsaha123', 'Bhagirath043', 'surajphulara', 'shaurya127', 'shubzzz98', 'mkarimi-coder', 'sakshi0309-champ', 'shivam623623', 'cheekudeveloper', 'Ashutosh-98765', 'Vaibhavipadamwar', 'shwetashrei', 'Banashree19', 'atharvashinde01', 'PrashantMehta-coder', 'kajolkumari150', 'Aqdashashmii', 'joyskmathew', 'pkkushagra', 'Rishrao09', 'Ashutoshrastogi02', 'JatulCodes', 'agarwals368', 'praveenbhardwaj', 'hardik302001', 'jagannathbehera444', 'jubyer00', 'SouravSarkar7', 'neerajsins', 'Rasam22', 'pk-bits', 'asawaronit60', 'anupama-nicky', 'Kishan-Kumar-Kannaujiya', 'carrycooldude', 'parasjain99', 'vishwatejharer', 'sayon-islam-23', 'sidhu56', 'Diwakarprasadlp', 'hashim361', 'Anantjoshie', 'bankateshkr', 'Mayank2001kh', 'RoyNancy', 'ayushsagar10', 'jaymishra2002', 'Anushka004', 'naitik-23', 'meraj97', 'gagangupta07', 'stark829', 'Muskan761', 'MrDeepakY', 'NayanPrakash11', 'shawnfrost69', 'thor174', 'Sumeet2442', 'ummekulsum123', 'akarsh2312', 'hemantmakkar', 'bardrock01', 'MrunalHole', 'chetanrakhra', 'pratik821', 'rahulkz', 'Akhilesh-ingle', 'pruthvi3007', 'Vanshi1999', 'sagarkb', 'CoderRushil', 'Shivansh2200', 'Ronak14999', 'srishtiaggarwal', 'adityakumar48', 'piyushchandana', 'Piyussshh', 'priyank-di', 'Vishwajeetbamane', 'moto-pixel', 'madmaxakshay', 'James-HACK', 'vikaschamyal', 'Arkadipta14', 'Abhishekk2000', 'Sushant012', 'Quint-Anir', 'navaloli', 'ronitsingh1405', 'vanshu25', 'samueldenzil', 'akashrajput25', 'sidhi100', 'ShivtechSolutions', 'vimal365', 'master77229', 'Shubham-Khetan-2005', 'vaishnavi-1', 'AbhijithSogal', 'Sid133', 'white-devil123', 'bawa2510', 'anjanikshree12', 'mansigupta1999', 'hritik229', 'engineersonal', 'adityaadg1997', 'mansishah20', '2shuux', 'Nishthajosh', 'ParthaDe94', 'abhi-io', 'Neha-119', 'Dungeonmaster07', 'Prathu121', 'anishloop7', 'cwmohit', 'shivamsri142', 'Sahil9511', 'NIKHILAVISHEK', 'amitpaswan9', 'devsharmaarihant', 'bilal509', 'BrahmajitMohapatra', 'rebelpower', 'Biswajitpradhan', 'sudhirhacker999', 'pydevtanya', 'Ashutosh147', 'jayeshmishra', 'rahul97407', 'athar10y2k', 'mrvasani48', 'raiatharva', 'Arj09', 'manish-109', 'aishwarya540', 'mohitjoshi81', 'PrathamAditya', 'K-Adrenaline', 'mrvlsaf', 'shivam9599', 'souravnitkkr', 'Anugya-Gogoi', 'AdityaTiwari64', 'yash623623', 'anjanik807', 'ujjwal193', 'TusharKapoor24', 'Ayushman278', 'osama072', 'aksahoo-1097', 'kishan-31802', 'Roshanpaswan', 'Himanshu-Prajapati', 'satyamraj48', 'NEFARI0US', 'kavitsheth', 'kushagra-18', 'khalane1221', 'ravleenkaur8368', 'Himanshu9430', 'uttam509', 'CmeherGit', 'sid5566', 'devaryan12123', 'ishanchoudhry', 'himanshu70043', 'skabhi001', 'tekkenpro', 'sandip1911', 'HarshvardhnMishra', 'krunalrocky', 'rohitkr-07', 'anshulgarg1234', 'hacky502boy', 'vivek-nagre', 'Hsm7085', 'amazingmj', 'Rbsingh9111', 'ronupanchal', 'mohitcodeshere', '1741Rishabh', 'Cypher2122', 'SahilDiwakar', 'abhigyan1000', 'HimanshuSharma5280', 'ProgrammerHarsh', 'Amitamit789', 'swapnilmutthalkar', 'enggRahul8git', 'BhuvnendraPratapSingh', 'Ronak1958', 'Knight-coder', 'Faizu123', 'shivansh987', 'mrsampage', 'AbhishikaAgarwal', 'Souvagya-Nayak', 'harsh287', 'Staryking', 'rmuliterno', 'kunjshah0703', 'KansaraPratham', 'GargoyleKing2112', 'Tanu-creater', 'satvikmittal638', 'gauravshinde-7', 'saabkapoor36', 'devangpawar', 'RiddhiCoder', 'Bilalrizwaan', 'sayyamjain78', '2606199', 'mayuresh4700', 'umang171', 'kramit9', 'surendraverma1999', 'raviu773986', 'Codewithzaid', 'Souvik-Bose-199', 'BeManas', 'JKHAS786', 'MrK232', 'aaryannipane', 'bronzegamer', 'hardikkushwaha', 'Anurag931999', 'dhruvalgupta2003', 'kaushal7806', 'JayGupta6866', 'mayank161001', 'ShashankPawsekar', '387daksh', 'Susanta-Nayak', 'Pratik-11', 'Anas-S-Shaikh', 'marginkantilal', 'Brijbihari24', 'Deepanshu761', 'Aakashlifehacker', 'SaketKaswa', 'dhritiduttroy', 'astitvagupta31', 'Prakhyat-Srivastava', 'Puneet405', 'harsh2630', 'sds9639', 'Prajwal38', 'simransharmarajni', 'Naman195', 'patience0721', 'Aman6651', 'tyagi1558', 'kmannnish', 'victorwpbastos', 'sagnik403', 'rahuly5544', 'PrinceKumarMaurya591', 'nakulwastaken', 'janmejayamet', 'HimanshuGupta11110000', 'Akshatcodes21', 'IRFANSARI', 'shreya991', 'pavan109', 'Parth00010', 'itzUG', 'Mayank-choudhary-SF', 'shubhamborse', 'Courage04', 'techsonu160', 'shivamkonkar', 'ErMapsh', 'roshan-githubb', 'Gourav502', 'SauravMiah', 'nikhil609', 'BenzylFernandes', 'BarnakGhosh', 'Aanchalgarg343', 'Madhav12345678', 'Tirth11', 'bhavesh1456', 'ajeet323327', 'AmitNayak9', 'lalitchauhan2712', 'raviroshan224', 'hellmodexxx', 'Dhruv1501', 'Himanshu6003', 'mystery2828', 'waris89', '2303-kanha', 'Anshuk-Mishra', 'amandeeptiwari22', 'Shashikant9198', 'Adityacoder99', 'Pradeepsharma7447', 'varunreddy57', 'uddeshaya', 'Priyanka0310-byte', 'adharsidhantgupta', 'Bhupander7', 'NomanSubhani', 'umeshkv2', 'Debosmit-Neogi', 'bhaktiagrawal088', 'Aashishsharma99', 'G25091998', 'mdkaif25', 'raj-jetani', 'chetanpujari5105', 'Agrawal-Rajat', 'Parthkrishnan', 'sameer-15', 'HD-Harsh-Doshi', 'Anvesha', 'karanmankoliya', 'armandatt', 'DakshSinghalIMS', 'Bhavyyadav25', 'surya123-ctrl', 'shubhambhawsar-5782', 'PAWANOP', 'mohit-singh-coder', 'Mradul-Hub', 'babai1999', 'Ritesh4726', 'Anuj-Solanki', 'abhi04neel', 'yashshahah', 'yogendraN27', 'Rishabh23-thakur', 'Indhralochan', 'harshvaghani', 'dapokiya', 'pg00019', 'AMITPKR', 'pawarrahul1002', 'mrgentlemanus', 'anurag-sonkar', 'aalsicoder07', 'harsh2699', 'Rahilkaxi', 'Jyotindra-21', 'dhruvilmehta', 'jacktherock', 'helpinubcomgr8', 'spcrze', 'aman707f', 'Nikkhil-J', 'Poonam798', 'devyansh2006', 'amanpj15', 'rudrcodes', 'STREIN-max', 'Adarsh-kushwaha', 'adxsh', 'Mohnish7869', 'Mrpalash', 'umangpincha', 'aniket1399', 'Sudip843', 'Amartya-Srivastav', 'Ananda1113', 'nobbitaa', 'shahmeet79', 'AmitM56', 'jiechencn', 'devim-stuffs', 'bkobl', 'kavindyasinthasilva', 'MochamadAhya29', 'misbagas', 'ksmarty', 'vedikaag99', 'nongshaba1337', 'daiyi', 'Saturia', 'llfj', '312494845', 'DeadPackets', 'Pandorax41', 'Kritip123', 'poburi', 'hffkb', 'cybrnook', 'lichaonetuser', 'l-k-a-m-a-z-a', 'zhaoshengweifeng', 'staticman-peoplesoftmods', 'ikghx', 'uguruyar', '513439077', 'f4nff', 'samspei0l', 'Seminlee94', 'inflabz', 'jack1988520', 'lanfenglin', 'sujalgoel', 'foldax', 'corejava', 'DarkReitor', 'amirpourastarabadi', 'Raess-rk1', 'ankit0183', 'jurandy007', 'davidbarratt', 'bertonjulian', 'TMFRook', 'qhmdi', 'QairexStudio', 'XuHewen', 'happyxhw', 'Mokaz24', 'andyteq', 'Grommish', 'fork-bombed', 'AZiMiao1122', '61569864', 'jeemgreen234', 'IgorKowalczykBot', 'sirpdboy', 'fjsnogueira', '9000000', 'ascott', 'aparcar', 'void9main', 'gerzees', 'javadnew5', 'belatedluck', 'calmsacibis995', 'maciejSamerdak', 'ghostsniper2018', 'rockertinsein', 'divarjahan', 'skywalkerEx', 'ehack-italy', 'Cloufish', 'aasoares', 'mustyildiz', 'Ras7', 'philly12399', 'cuucondiep', 'Nomake', 'z306334796', 'ball144love', 'armfc6161', 'Alex-coffen', 'rodrigodesouza07', 'lss182650', 'iphotomoto', 'overlordsaten', 'miaoshengwang', 'ManiakMCPE', 'Yazid0540570463', 'unnamegeek', 'brennvika', 'ardi66', 'Cheniour10', 'lxc1121', 'rfm-bot', 'cornspig', 'jedai47', 'ignotus09', 'kamal7641', 'Dabe11', 'dgder0', 'Nerom', 'luixiuno', 'zh610902551', 'wifimedia', 'mjoelmendes', 'pc2019', 'hellodong', 'lkfete', 'a7raj', 'willquirk', 'xyudikxeon1717171717', '420hackS', 'mohithpokala', 'tranglc', 'ilyankou', 'hhmaomao', 'hongjuzzang', 'Mophee-ds', 'wetorek', 'apktesl', 'jaylac2000', 'BishengSJTU', 'elfring', 'ThomasGrund', 'coltonios', 'kouhe3', 'balaji-29', 'demo003', 'gfsupport', 'AlonzoLax', 'tazmanian-hub', 'qwerttvv', 'kotucocuk', 'ajnair100', 'jirayutza1', 'karolsw3', 'shenzt68', 'xpalm', 'adamwebrog', 'jackmahoney', 'chenwangnec', 'hanlihanshaobo', 'jannik-mohemian', 'Pablosky12', '95dewadew', 'dcharbonnier', 'chapmanvoris', 'nishantingle999', 'gulabraoingle', 'kalyaniingle', 'BoulavardDepo', 'amingoli78', 'daya2940', 'roaddogg2k2', 'AmbroseRen', 'jayadevvasudevan', 'pambec', 'orditeck', 'muhammetcan34', 'Aman199825', 'hyl946', 'CyberSecurityUP', 'kokum007', 'shivamjaiswal64', 'Skub123', 'KerimG', 'thehexmor', 'jakaya123', 'Ashish24788', 'qhuy1501', 'TranVanDinh235', 'Thuong1998', 'TranTheTuan', 'anhtuyenuet', 'tranhuongk', 'danhquyen0109', 'hunghv-0939', 'dat-lq-234', 'nguyenducviet1999', 'Rxzzma', 'MrRobotjs', 'jonschlinkert', 'awsumbill', 'lastle', 'gaga227', 'maiquangminh', 'andhie-wijaya', 'penn5', 'FormosaZh', 'itz63c', 'AvinashReddy3108', 'ferchlam', 'noobvishal', 'ammarraisafti', 'authenticatorbot', 'SekiBetu', 'markkap', 'wyd6295578sk', 'lorpus', 'Camelsvest', 'ben-august', 'jackytang', 'dominguezcelada', 'tony1016', 'afuerhoff420', 'darkoverlordofdata', 'yihanwu1024', 'bromiao', 'MaxEis', 'kyf15596619', 'Reysefyn', 'THEROCK2512', 'Krystool', 'Adomix', 'splexpe', 'hugetiny', 'mikeLongChen', 'KlansyMsniv', 'Anony1234mo', 'Mygod', 'chenzesam', 'vatayes', 'fisher134', 'bmaurizio', 'fire-bot', 'kjbot-github', 'Dcollins66', 'dislash', 'noraj', 'theLSA', 'chadyj', 'AlbertLiu-Breeze', 'jspspike', 'kill5Witchd', 'repushko', 'ankushshekhawat', 'karan1dhir', 'venkatvani', 'tracyxiong1', 'PythxnBite', 'vamshi0997', 'himanshu345', 'prabhat2001', 'aakar345', 'rangers9708', 'anuragiiitm', 'AlfieBurns12345678910', 'marpernas', 'jrcole2884', 'deshanjali', 'alekh42', 'deepakgangore', 'SuperBeagleDog', 'vasiliykovalev', 'lyin888', 'tchainzzz', 'Theoask', 'jnikita356', 'ajay1706', 'gane5hvarma', 'pbhavesh2807', 'daniloeler', 'gabrielrab', 'djdamian210', '1samuel411', 'Apoorv1', 'AnimatedAnand', '7coil', 'trentschnee', 'himanshu435', 'dialv', 'DHRUV536', 'pratyushraj01', 'vedantv', 'yusronrizki', 'joaoguazzelli', 'pradnyesh45', 'aneeshaanjali', 'iREDMe', 'ashish010598', 'abhi1998das', 'keshriraj7870', 'vishad2', 'Navzter', 'jagadyudha', 'hrom405', 'seferov', 'umeshdhauni', 'sakshamkhurana97', 'ThatNerdyPikachu', 'dishantsethi', 'tharindumalshan1', 'ruderbytes', 'pr-jli', '21RachitShukla', 'fellipegs', 'foolbirds', 'hariprasetia', 'tanyaagrawal1006', 'Gaurav1309Goel', 'vidurathegeek', 'wolfsoldier47', 'bhaskar24', 'thedutchruben', 'Qoyyuum', 'msdeibel', 'Nann', 'bksahu', 'sathyamoorthyrr', 'sbenstewart', 'supriyanta', 'MasterKN48', 'prkhrv', 'Blatantz', 'rahulgoyal911', 'ranyejun', 'decpr', 'apollojoe', 'SuperAdam47', 'RootUp', 'llronaldoll', 'jayadeepgilroy', 'Arunthomas1105', 'zhanwenzhuo-github', 'dennisslol006', 'xFreshie', 'servantthought', 'Geilivable', 'xushet', 'order4adwriter', 'dubrovka', 'Nmeyers75', 'p3p5170', 'yangkun6666', 'knight6414', 'nailanawshaba', 'tuhafadam', 'stainbank', '52fhy', 'jiyanmizah', 'iotsys', 'zhangxiao921207', 'empsmoke', 'asugarr', 'Amonhuz', 'VinayaSathyanarayana', 'html5lover', 'peterambrozic', 'maomaodegushi', 'ShelbsLynn', 'AmmarAlzoubi', 'AlessioPellegrini', 'tetroider', '404-geek', 'mohammed078', 'sugus25', 'mxdi9i7', 'sahilmalhotra24', 'furqanhaidersyed', 'ChurchCRMBugReport', 'shivamkapoor3198', 'wulongji2016', 'jjelschen', 'bj2015', 'tangxuelong', 'gunther-bachmann', 'marcos-tomaz', 'anette68', 'techiadarsh', 'nishantmadu', 'Nikhil2508', 'anoojlal', 'krischoi07', 'utkarshyadavin', 'amanPanth', 'chinurox', 'syedbilal5000', 'NidPlays', 'jirawat050', 'RealAnishSharma', 'bwegener', 'whyisjacob', 'naveenpucha8', 'ronaksakhuja', 'ju3tin', 'DT9', 'dorex22', 'hiendinhngoc', 'mlkorra', 'Christensenea', 'Mouse31', 'VeloxDevelopment', 'parasnarang1234', 'beilo', 'armagadon159753', 'andrewducker', 'NotMainScientist', 'alterem', 'MilkAndCookiz', 'Justinshakes', 'TheColdVoid', 'falconxunit', '974648183', 'minenlink', 'thapapinak', 'lianghuacheng', 'ben3726', 'BjarniRunar', 'Taki21', 'zsytssk', 'Apple240Bloom', 'shubham436', 'LoOnyBiker', 'uasi', 'wailoamrani', 'AnimeOverlord7', 'zzyzy', 'ignitete', 'vikstrous', 's5s5', 'tianxingvpn', 'talib1410', 'vinymv', 'yerikyy', 'Honsec', 'chesterwang', 'perryzou', 'Meprels', 'mfat', 'mo-han', 'roganoalien', 'amoxicillin', 'AbelLai', 'whatisgravity', 'darshankaarki', 'Tshifhiwa84', 'CurtainTears', 'gaotong2055', 'appleatiger', 'hdstar2009', 'TommyJerryMairo', 'GoogleCodeExporter'] |
while True:
A,B,C=map(int,input().split())
if not A: exit()
if A+B+C<=max(A,B,C)*2: print('Invalid')
elif A==B==C: print('Equilateral')
elif True in (A==B,A==C,B==C): print('Isosceles')
else: print('Scalene') | while True:
(a, b, c) = map(int, input().split())
if not A:
exit()
if A + B + C <= max(A, B, C) * 2:
print('Invalid')
elif A == B == C:
print('Equilateral')
elif True in (A == B, A == C, B == C):
print('Isosceles')
else:
print('Scalene') |
class BigO_of_1(object):
def check_index_0_is_int(self, value_list):
if value_list[0] == int(value_list[0]):
return True
class BigO_of_N(object):
def double_values(self, value_list):
for i in range(0, len(value_list)):
value_list[i] *= 2
return value_list
class BigO_of_N_Squared(object):
def create_spam_field(self, value_list):
for i in range(0, len(value_list)):
value_list[i] = []
for j in range(0, len(value_list)):
value_list[i].append('spam')
return value_list
class BigO_of_N_Cubed(object):
def create_spam_space(self, value_list):
for i in range(0, len(value_list)):
value_list[i] = []
for j in range(0, len(value_list)):
value_list[i].append([])
for k in range (0, len(value_list)):
value_list[i][j].append('spam')
return value_list
class BigO_of_N_to_the_Fourth(object):
def create_spam_hyperspace(self, value_list):
for i in range(0, len(value_list)):
value_list[i] = []
for j in range(0, len(value_list)):
value_list[i].append([])
for k in range(0, len(value_list)):
value_list[i][j].append([])
for l in range(0, len(value_list)):
value_list[i][j][k].append('spam')
return value_list
class BigO_of_2_to_the_N(object):
def get_factorial(self, value):
final_number = 0
if value > 1:
final_number = value * self.get_factorial(value - 1)
return final_number
else:
return 1
class BigO_of_N_log_N(object):
def sort_list(self, value_list):
return sorted(value_list)
| class Bigo_Of_1(object):
def check_index_0_is_int(self, value_list):
if value_list[0] == int(value_list[0]):
return True
class Bigo_Of_N(object):
def double_values(self, value_list):
for i in range(0, len(value_list)):
value_list[i] *= 2
return value_list
class Bigo_Of_N_Squared(object):
def create_spam_field(self, value_list):
for i in range(0, len(value_list)):
value_list[i] = []
for j in range(0, len(value_list)):
value_list[i].append('spam')
return value_list
class Bigo_Of_N_Cubed(object):
def create_spam_space(self, value_list):
for i in range(0, len(value_list)):
value_list[i] = []
for j in range(0, len(value_list)):
value_list[i].append([])
for k in range(0, len(value_list)):
value_list[i][j].append('spam')
return value_list
class Bigo_Of_N_To_The_Fourth(object):
def create_spam_hyperspace(self, value_list):
for i in range(0, len(value_list)):
value_list[i] = []
for j in range(0, len(value_list)):
value_list[i].append([])
for k in range(0, len(value_list)):
value_list[i][j].append([])
for l in range(0, len(value_list)):
value_list[i][j][k].append('spam')
return value_list
class Bigo_Of_2_To_The_N(object):
def get_factorial(self, value):
final_number = 0
if value > 1:
final_number = value * self.get_factorial(value - 1)
return final_number
else:
return 1
class Bigo_Of_N_Log_N(object):
def sort_list(self, value_list):
return sorted(value_list) |
# Language: Python 3
if __name__ == '__main__':
s = input()
n = any(i.isalnum() for i in s)
a = any(i.isalpha() for i in s)
d = any(i.isdigit() for i in s)
l = any(i.islower() for i in s)
u = any(i.isupper() for i in s)
print(n, a, d, l, u, sep="\n") | if __name__ == '__main__':
s = input()
n = any((i.isalnum() for i in s))
a = any((i.isalpha() for i in s))
d = any((i.isdigit() for i in s))
l = any((i.islower() for i in s))
u = any((i.isupper() for i in s))
print(n, a, d, l, u, sep='\n') |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.