content
stringlengths 7
1.05M
| fixed_cases
stringlengths 1
1.28M
|
---|---|
# Change our pairplot to
# * plot more samples
# * reduce the number of variables to the first three (leave out the group)
# * make the plot a bit larger
# Optional
# * fit linear regression models to the scatter plots
# * give each group a different type of marker, use https://matplotlib.org/api/markers_api.html as a reference
sample_df = df.sample(n=300, random_state=42)
sns.set(font_scale=2)
sns.pairplot(sample_df, hue="group", palette={0: '#AA4444', 1: '#006000', 2: '#EEEE44'},
vars=['speed', 'age', 'miles'], height=5, markers=["o", "s", "D"])
|
sample_df = df.sample(n=300, random_state=42)
sns.set(font_scale=2)
sns.pairplot(sample_df, hue='group', palette={0: '#AA4444', 1: '#006000', 2: '#EEEE44'}, vars=['speed', 'age', 'miles'], height=5, markers=['o', 's', 'D'])
|
class CreateBeam():
def __init__(self,concrete,x,y,z):
self.concrete = concrete.concrete_type
self.concrete_price = concrete.concrete_price
self.x = int(x)
self.y = int(y)
self.y = int(y)
self.volume = x * y * z
self.price = self.volume * self.concrete_price
def CalculatePriceBeam(self,piece):
return piece * self.price
def __str__(self):
return 'Beam Voice : {} \nBeam Price {}'.format(self.volume,self.price)
|
class Createbeam:
def __init__(self, concrete, x, y, z):
self.concrete = concrete.concrete_type
self.concrete_price = concrete.concrete_price
self.x = int(x)
self.y = int(y)
self.y = int(y)
self.volume = x * y * z
self.price = self.volume * self.concrete_price
def calculate_price_beam(self, piece):
return piece * self.price
def __str__(self):
return 'Beam Voice : {} \nBeam Price {}'.format(self.volume, self.price)
|
N = int(input())
if N%2 == 0:
print(1 / 2)
else:
print((N//2+1) / N)
|
n = int(input())
if N % 2 == 0:
print(1 / 2)
else:
print((N // 2 + 1) / N)
|
N_ELEMNT = 10000
CBOW_N_WORDS = 3
SKIPGRAM_N_WORDS = 3 # context = 3 words before, 3 words after the target word
MIN_WORD_FREQUENCY = 30
MAX_SEQ_LENGTH = 256 # define it to 0 for no truncature
EMBEDDING_DIM = 256
VOCAB_SIZE = 4096
BATCH_SIZE = 64
LANGUAGE = 'french'
BUFFER_SIZE = 8192
|
n_elemnt = 10000
cbow_n_words = 3
skipgram_n_words = 3
min_word_frequency = 30
max_seq_length = 256
embedding_dim = 256
vocab_size = 4096
batch_size = 64
language = 'french'
buffer_size = 8192
|
# Setting to True clearly shows the neat Fibonacci pattern of:
# Odd, Odd, Even, O, O, E, O, O, E....
DEBUG = False
total = 0
curr = 1
prev = 1
while curr < 4000000:
if curr % 2 == 0:
if DEBUG:
print('adding {}'.format(curr))
total += curr
else:
if DEBUG:
print('skipping {}'.format(curr))
# I love this old-school trick. No risk of overflows at just 8 million.
curr = prev + curr
prev = curr - prev
print(total)
|
debug = False
total = 0
curr = 1
prev = 1
while curr < 4000000:
if curr % 2 == 0:
if DEBUG:
print('adding {}'.format(curr))
total += curr
elif DEBUG:
print('skipping {}'.format(curr))
curr = prev + curr
prev = curr - prev
print(total)
|
class Node:
def __init__(self,value=None):
self.value = value
self.next = None
def __str__(self):
return str(self.value)
class LinkedList:
def __init__(self):
self.head = None
self.tail = None
def __iter__(self):
node = self.head
while node:
yield node
node = node.next
class Queue:
def __init__(self):
self.linkedList = LinkedList()
def __str__(self):
values = [str(node) for node in self.linkedList]
return " ".join(values)
def enqueue(self,value):
node = Node(value)
if self.linkedList.head == None:
self.linkedList.head = node
self.linkedList.tail = node
else:
self.linkedList.tail.next= node
self.linkedList.tail = node
return "Element has been successfully inserted"
def isEmpty(self):
return self.linkedList.head == None
def peek(self):
if self.isEmpty(): return "Queue is Empty"
return self.linkedList.head.value
def dequeue(self):
if self.isEmpty(): return "Queue is Empty"
elif self.linkedList.head == self.linkedList.tail:
value = self.linkedList.head
self.linkedList.head = None
self.linkedList.tail = None
else:
value = self.linkedList.head
self.linkedList.head = self.linkedList.head.next
# return "Element has been successfully removed"
return value
def delete(self):
self.linkedList.head = None
self.linkedList.tail = None
customQueue = Queue()
print(customQueue.isEmpty())
print("---***---")
print(customQueue.enqueue(10))
print(customQueue.enqueue(20))
print(customQueue.enqueue(3))
print(customQueue)
print("---***---")
print(customQueue.peek())
print("---***---")
print(customQueue.dequeue())
print(customQueue)
print(customQueue.peek())
|
class Node:
def __init__(self, value=None):
self.value = value
self.next = None
def __str__(self):
return str(self.value)
class Linkedlist:
def __init__(self):
self.head = None
self.tail = None
def __iter__(self):
node = self.head
while node:
yield node
node = node.next
class Queue:
def __init__(self):
self.linkedList = linked_list()
def __str__(self):
values = [str(node) for node in self.linkedList]
return ' '.join(values)
def enqueue(self, value):
node = node(value)
if self.linkedList.head == None:
self.linkedList.head = node
self.linkedList.tail = node
else:
self.linkedList.tail.next = node
self.linkedList.tail = node
return 'Element has been successfully inserted'
def is_empty(self):
return self.linkedList.head == None
def peek(self):
if self.isEmpty():
return 'Queue is Empty'
return self.linkedList.head.value
def dequeue(self):
if self.isEmpty():
return 'Queue is Empty'
elif self.linkedList.head == self.linkedList.tail:
value = self.linkedList.head
self.linkedList.head = None
self.linkedList.tail = None
else:
value = self.linkedList.head
self.linkedList.head = self.linkedList.head.next
return value
def delete(self):
self.linkedList.head = None
self.linkedList.tail = None
custom_queue = queue()
print(customQueue.isEmpty())
print('---***---')
print(customQueue.enqueue(10))
print(customQueue.enqueue(20))
print(customQueue.enqueue(3))
print(customQueue)
print('---***---')
print(customQueue.peek())
print('---***---')
print(customQueue.dequeue())
print(customQueue)
print(customQueue.peek())
|
a = input().split(" ")
l,b = int(a[0]), int(a[1])
y = 0
while( l<=b ) :
l=l*3
b=b*2
y+=1
print(y)
|
a = input().split(' ')
(l, b) = (int(a[0]), int(a[1]))
y = 0
while l <= b:
l = l * 3
b = b * 2
y += 1
print(y)
|
class Folder:
def __init__(self, **kwargs):
self.folder = {
'rescanIntervalS' : 60,
'copiers' : 0,
'pullerPauseS' : 0,
'autoNormalize' : True,
'id' : kwargs['id'] ,
'scanProgressIntervalS' : 0,
'hashers' : 0,
'pullers' : 0,
'invalid' : '',
'label' : kwargs['label'],
'minDiskFreePct' : 1,
'pullerSleepS' : 0,
'type' : 'readwrite',
'disableSparseFiles' : False,
'path' : kwargs['path'],
'ignoreDelete' : False,
'ignorePerms' : False,
'devices' : [{'deviceID' : kwargs['deviceID']}],
'disableTempIndexes' : False,
'maxConflicts' : 10,
'order' : 'random',
'versioning' : {'type': '', 'params': {}}
}
for key in kwargs:
self.folder[key] = kwargs[key]
@property
def obj(self):
return self.folder
def add_device(self, deviceID):
self.folder['devices'].append({
'deviceID' : deviceID
})
|
class Folder:
def __init__(self, **kwargs):
self.folder = {'rescanIntervalS': 60, 'copiers': 0, 'pullerPauseS': 0, 'autoNormalize': True, 'id': kwargs['id'], 'scanProgressIntervalS': 0, 'hashers': 0, 'pullers': 0, 'invalid': '', 'label': kwargs['label'], 'minDiskFreePct': 1, 'pullerSleepS': 0, 'type': 'readwrite', 'disableSparseFiles': False, 'path': kwargs['path'], 'ignoreDelete': False, 'ignorePerms': False, 'devices': [{'deviceID': kwargs['deviceID']}], 'disableTempIndexes': False, 'maxConflicts': 10, 'order': 'random', 'versioning': {'type': '', 'params': {}}}
for key in kwargs:
self.folder[key] = kwargs[key]
@property
def obj(self):
return self.folder
def add_device(self, deviceID):
self.folder['devices'].append({'deviceID': deviceID})
|
class User:
'''
class to creates instances of class User.
'''
user_list = []
def save_user(self):
'''
save user method that appends objects to our user_list list.
'''
User.user_list.append(self)
def delete_user(self):
'''
method to delete user from the user list.
'''
User.user_list.remove(self)
def __init__(self,first_name,last_name,password,email):
self.first_name = first_name
self.last_name = last_name
self.password = password
self.email = email
@classmethod
def find_by_name(cls,first_name):
'''
method to locate a user account using the users first name.
'''
for user in cls.user_list:
if user.first_name == first_name:
return user
@classmethod
def confirm_user(cls,first_name,last_name,password):
'''
method to confirm the availability of user.
'''
for user in cls.user_list:
if user.first_name == first_name and user.password == password and user.last_name == last_name:
return user
return False
@classmethod
def display_users(cls):
'''
method that returns the user list.
'''
return cls.user_list
@classmethod
def user_exists(cls,last_name):
'''
test to check if a user exists in our users list.
'''
for user in cls.user_list:
if user.last_name == last_name:
return True
return False
class Credentials:
'''
class that generates new credentials objects.
'''
credentials_list = []
def __init__(self,user_name,account_name,site_name,site_password):
self.user_name = user_name
self.account_name = account_name
self.site_name = site_name
self.site_password = site_password
def save_credentials(self):
'''
function to save a user credentials
'''
Credentials.credentials_list.append(self)
def delete_credentials(self):
'''
functions to delete credentials from the list of credentials.
'''
Credentials.credentials_list.remove(self)
@classmethod
def display_credentials(cls):
'''
method that returns the credentials list
'''
return cls.credentials_list
@classmethod
def find_by_user_name(cls,user_name):
'''
method to find credentials using the username.
'''
for credential in cls.credentials_list:
if credential.user_name == user_name:
return credential
|
class User:
"""
class to creates instances of class User.
"""
user_list = []
def save_user(self):
"""
save user method that appends objects to our user_list list.
"""
User.user_list.append(self)
def delete_user(self):
"""
method to delete user from the user list.
"""
User.user_list.remove(self)
def __init__(self, first_name, last_name, password, email):
self.first_name = first_name
self.last_name = last_name
self.password = password
self.email = email
@classmethod
def find_by_name(cls, first_name):
"""
method to locate a user account using the users first name.
"""
for user in cls.user_list:
if user.first_name == first_name:
return user
@classmethod
def confirm_user(cls, first_name, last_name, password):
"""
method to confirm the availability of user.
"""
for user in cls.user_list:
if user.first_name == first_name and user.password == password and (user.last_name == last_name):
return user
return False
@classmethod
def display_users(cls):
"""
method that returns the user list.
"""
return cls.user_list
@classmethod
def user_exists(cls, last_name):
"""
test to check if a user exists in our users list.
"""
for user in cls.user_list:
if user.last_name == last_name:
return True
return False
class Credentials:
"""
class that generates new credentials objects.
"""
credentials_list = []
def __init__(self, user_name, account_name, site_name, site_password):
self.user_name = user_name
self.account_name = account_name
self.site_name = site_name
self.site_password = site_password
def save_credentials(self):
"""
function to save a user credentials
"""
Credentials.credentials_list.append(self)
def delete_credentials(self):
"""
functions to delete credentials from the list of credentials.
"""
Credentials.credentials_list.remove(self)
@classmethod
def display_credentials(cls):
"""
method that returns the credentials list
"""
return cls.credentials_list
@classmethod
def find_by_user_name(cls, user_name):
"""
method to find credentials using the username.
"""
for credential in cls.credentials_list:
if credential.user_name == user_name:
return credential
|
x=range(1,10,2)
print (x)
for item in x:
print(item,end=",")
|
x = range(1, 10, 2)
print(x)
for item in x:
print(item, end=',')
|
# coding: utf-8
ROUTING_VIEWS = [
("/", "app.IndexController", "foo"),
("/hoge/<id>", "hoge.HogeController", "hoge"),
("/fuga", "template.TemplateController", "fuga")
]
|
routing_views = [('/', 'app.IndexController', 'foo'), ('/hoge/<id>', 'hoge.HogeController', 'hoge'), ('/fuga', 'template.TemplateController', 'fuga')]
|
class Solution:
def allCellsDistOrder(self, R, C, r0, c0):
cells = [[x, y] for x in range(R) for y in range(C)]
cells = sorted(cells, key=lambda c: abs(c[0] - r0) + abs(c[1] - c0))
return cells
|
class Solution:
def all_cells_dist_order(self, R, C, r0, c0):
cells = [[x, y] for x in range(R) for y in range(C)]
cells = sorted(cells, key=lambda c: abs(c[0] - r0) + abs(c[1] - c0))
return cells
|
# Equation checker
def is_balanced(equation):
parenthesis = ''.join([p for p in equation if p in '(){}[]'])
return is_valid(parenthesis)
def is_valid(parenthesis):
stack = []
for p in parenthesis:
if p in '(':
stack.append(p)
elif p in ')':
if stack == []:
return False
stack.pop()
if stack != []:
return False
return True
|
def is_balanced(equation):
parenthesis = ''.join([p for p in equation if p in '(){}[]'])
return is_valid(parenthesis)
def is_valid(parenthesis):
stack = []
for p in parenthesis:
if p in '(':
stack.append(p)
elif p in ')':
if stack == []:
return False
stack.pop()
if stack != []:
return False
return True
|
class crafting:
def __init__(self,inv,items):
self.inv = inv
self.items = items
def getCrafts(self):
itemsChecked = []
itemAmounts = []
for i in range(len(self.inv.inventory)):
if self.inv.inventory[i][0] != None:
item = self.inv.inventory[i]
if itemsChecked.count(item[0].ID) == 0:
itemsChecked.append(item[0].ID)
itemAmounts.append(item[1])
else:
s = itemsChecked.index(item[0].ID)
itemAmounts[s] += item[1]
craftable = []
for i in range(len(self.items.getItems())):
item = self.items.getItems()[i]()
if item.recipe != None:
canCraft = True
for r in range(len(item.recipe)):
if itemsChecked.count(item.recipe[r][0]) > 0:
ri = itemsChecked.index(item.recipe[r][0])
if itemAmounts[ri] >= item.recipe[r][1]:
pass
else:
canCraft = False
break
else:
canCraft = False
break
if canCraft == True:
craftable.append(item.ID)
return craftable
def craftItem(self,itemID,times=1):
for t in range(times):
craftable = self.getCrafts()
if craftable.count(itemID) > 0:
item = self.items.getItemByID(itemID)()
for i in range(len(item.recipe)):
self.inv.removeItemFromInventory(item.recipe[i][0],item.recipe[i][1])
self.inv.addToInventory(item.ID,item.craftAmount)
|
class Crafting:
def __init__(self, inv, items):
self.inv = inv
self.items = items
def get_crafts(self):
items_checked = []
item_amounts = []
for i in range(len(self.inv.inventory)):
if self.inv.inventory[i][0] != None:
item = self.inv.inventory[i]
if itemsChecked.count(item[0].ID) == 0:
itemsChecked.append(item[0].ID)
itemAmounts.append(item[1])
else:
s = itemsChecked.index(item[0].ID)
itemAmounts[s] += item[1]
craftable = []
for i in range(len(self.items.getItems())):
item = self.items.getItems()[i]()
if item.recipe != None:
can_craft = True
for r in range(len(item.recipe)):
if itemsChecked.count(item.recipe[r][0]) > 0:
ri = itemsChecked.index(item.recipe[r][0])
if itemAmounts[ri] >= item.recipe[r][1]:
pass
else:
can_craft = False
break
else:
can_craft = False
break
if canCraft == True:
craftable.append(item.ID)
return craftable
def craft_item(self, itemID, times=1):
for t in range(times):
craftable = self.getCrafts()
if craftable.count(itemID) > 0:
item = self.items.getItemByID(itemID)()
for i in range(len(item.recipe)):
self.inv.removeItemFromInventory(item.recipe[i][0], item.recipe[i][1])
self.inv.addToInventory(item.ID, item.craftAmount)
|
class Foo(object):
pass
@decorator
class Bar(object):
def foo(self):
pass
def baz(arg1, arg2):
pass
foo() | bar()
|
class Foo(object):
pass
@decorator
class Bar(object):
def foo(self):
pass
def baz(arg1, arg2):
pass
foo() | bar()
|
{
'targets': [
{
'target_name': 'xwalk_test_base',
'type': 'static_library',
'dependencies': [
# FIXME(tmpsantos): we should depend on runtime
# here but it is not really a module yet.
'../../../base/base.gyp:base',
'../../../base/base.gyp:test_support_base',
'../../../content/content.gyp:content_browser',
'../../../content/content_shell_and_tests.gyp:test_support_content'
'../../../net/net.gyp:net',
'../../../skia/skia.gyp:skia',
'../../../testing/gtest.gyp:gtest',
'../../../ui/base/ui_base.gyp:ui_base',
'../../../url/url.gyp:url_lib',
],
'sources': [
'in_process_browser_test.cc',
'in_process_browser_test.h',
'xwalk_test_launcher.cc',
'xwalk_test_suite.cc',
'xwalk_test_suite.h',
'xwalk_test_utils.cc',
'xwalk_test_utils.h',
],
},
],
}
|
{'targets': [{'target_name': 'xwalk_test_base', 'type': 'static_library', 'dependencies': ['../../../base/base.gyp:base', '../../../base/base.gyp:test_support_base', '../../../content/content.gyp:content_browser', '../../../content/content_shell_and_tests.gyp:test_support_content../../../net/net.gyp:net', '../../../skia/skia.gyp:skia', '../../../testing/gtest.gyp:gtest', '../../../ui/base/ui_base.gyp:ui_base', '../../../url/url.gyp:url_lib'], 'sources': ['in_process_browser_test.cc', 'in_process_browser_test.h', 'xwalk_test_launcher.cc', 'xwalk_test_suite.cc', 'xwalk_test_suite.h', 'xwalk_test_utils.cc', 'xwalk_test_utils.h']}]}
|
for i in range(5):
print("I will not chew gum in class.")
repetitions = int(input("How many times should i repeat?"))
for i in range(repetitions):
print("I will not chew gum in class")
def print_about_gum(repetitions):
for i in range(repetitions):
print("I will not chew gum in class.")
def main():
print_about_gum(10)
main()
|
for i in range(5):
print('I will not chew gum in class.')
repetitions = int(input('How many times should i repeat?'))
for i in range(repetitions):
print('I will not chew gum in class')
def print_about_gum(repetitions):
for i in range(repetitions):
print('I will not chew gum in class.')
def main():
print_about_gum(10)
main()
|
def get_current_channel_planning(mist_session, site_id):
uri = "/api/v1/sites/%s/rrm/current" % site_id
resp = mist_session.mist_get(uri, site_id=site_id)
return resp
def get_device_rrm_info(mist_session, site_id, device_id, band):
uri = "/api/v1/sites/%s/rrm/current/devices/%s/band/%s" % (site_id, device_id, band)
resp = mist_session.mist_get(uri,site_id=site_id)
return resp
def optimize(mist_session, site_id, band_24=False, band_5=False):
bands = []
if band_24:
bands.append("24")
if band_5:
bands.append("5")
body = { "bands": bands}
uri = "/api/v1/sites/%s/rrm/optimize" % site_id
resp = mist_session.mist_post(uri, site_id=site_id, body=body)
return resp
def reset(mist_session, site_id):
uri = "/api/v1/sites/%s/devices/reset_radio_config" % site_id
resp = mist_session.mist_post(uri, site_id=site_id)
return resp
def get_events(mist_session, site_id, band, duration="", page=1, limit=100):
uri ="/api/v1/sites/%s/rrm/events?band=%s" % (site_id, band)
query ={"band": band}
if duration != "":
query["duration"] = duration
resp = mist_session.mist_get(uri, site_id=site_id, query=query, page=page, limit=limit)
return resp
def get_interference_events(mist_session, site_id, duration="", page=1, limit=100):
uri = "/api/v1/sites/%s/events/interference" %site_id
query ={}
if duration != "":
query["duration"] = duration
resp = mist_session.mist_get(uri, site_id=site_id, query=query, page=page, limit=limit)
return resp
def get_roaming_events(mist_session, site_id, mtype, start="", end="", page=1, limit=100):
uri = "/api/v1/sites/%s/events/fast_roam" %site_id
query={"type": mtype}
if end != "":
query["duration"]= end
if limit != "":
query["duration"]= limit
resp = mist_session.mist_get(uri, site_id=site_id, query=query, page=page, limit=limit)
return resp
|
def get_current_channel_planning(mist_session, site_id):
uri = '/api/v1/sites/%s/rrm/current' % site_id
resp = mist_session.mist_get(uri, site_id=site_id)
return resp
def get_device_rrm_info(mist_session, site_id, device_id, band):
uri = '/api/v1/sites/%s/rrm/current/devices/%s/band/%s' % (site_id, device_id, band)
resp = mist_session.mist_get(uri, site_id=site_id)
return resp
def optimize(mist_session, site_id, band_24=False, band_5=False):
bands = []
if band_24:
bands.append('24')
if band_5:
bands.append('5')
body = {'bands': bands}
uri = '/api/v1/sites/%s/rrm/optimize' % site_id
resp = mist_session.mist_post(uri, site_id=site_id, body=body)
return resp
def reset(mist_session, site_id):
uri = '/api/v1/sites/%s/devices/reset_radio_config' % site_id
resp = mist_session.mist_post(uri, site_id=site_id)
return resp
def get_events(mist_session, site_id, band, duration='', page=1, limit=100):
uri = '/api/v1/sites/%s/rrm/events?band=%s' % (site_id, band)
query = {'band': band}
if duration != '':
query['duration'] = duration
resp = mist_session.mist_get(uri, site_id=site_id, query=query, page=page, limit=limit)
return resp
def get_interference_events(mist_session, site_id, duration='', page=1, limit=100):
uri = '/api/v1/sites/%s/events/interference' % site_id
query = {}
if duration != '':
query['duration'] = duration
resp = mist_session.mist_get(uri, site_id=site_id, query=query, page=page, limit=limit)
return resp
def get_roaming_events(mist_session, site_id, mtype, start='', end='', page=1, limit=100):
uri = '/api/v1/sites/%s/events/fast_roam' % site_id
query = {'type': mtype}
if end != '':
query['duration'] = end
if limit != '':
query['duration'] = limit
resp = mist_session.mist_get(uri, site_id=site_id, query=query, page=page, limit=limit)
return resp
|
class Solution:
def canVisitAllRooms(self, rooms: List[List[int]]) -> bool:
seen = [False] * len(rooms)
seen[0] = True
stack = [0]
#At the beginning, we have a todo list "stack" of keys to use.
#'seen' represents at some point we have entered this room.
while stack: #While we have keys...
node = stack.pop() # get the next key 'node'
for nei in rooms[node]: # For every key in room # 'node'...
if not seen[nei]: # ... that hasn't been used yet
seen[nei] = True # mark that we've entered the room
stack.append(nei) # add the key to the todo list
return all(seen) # Return true iff we've visited every room
|
class Solution:
def can_visit_all_rooms(self, rooms: List[List[int]]) -> bool:
seen = [False] * len(rooms)
seen[0] = True
stack = [0]
while stack:
node = stack.pop()
for nei in rooms[node]:
if not seen[nei]:
seen[nei] = True
stack.append(nei)
return all(seen)
|
# https://open.kattis.com/problems/greetingcard
n = int(input())
points = {tuple(map(int, input().split())) for _ in range(n)}
neighbor_distances = {(0, 2018),
(1118, 1680),
(1680, 1118),
(2018, 0),
(1118, -1680),
(1680, -1118),
(0, -2018),
(-1118, -1680),
(-1680, -1118),
(-2018, 0),
(-1118, 1680),
(-1680, 1118)}
pairs = 0
for point in points:
for nd in neighbor_distances:
if (point[0] + nd[0], point[1] + nd[1]) in points:
pairs += 1
print(pairs // 2)
|
n = int(input())
points = {tuple(map(int, input().split())) for _ in range(n)}
neighbor_distances = {(0, 2018), (1118, 1680), (1680, 1118), (2018, 0), (1118, -1680), (1680, -1118), (0, -2018), (-1118, -1680), (-1680, -1118), (-2018, 0), (-1118, 1680), (-1680, 1118)}
pairs = 0
for point in points:
for nd in neighbor_distances:
if (point[0] + nd[0], point[1] + nd[1]) in points:
pairs += 1
print(pairs // 2)
|
def make_car(manufacturer_name,model_name,**props):
car = {
'manufacturer': manufacturer_name,
'model': model_name,
}
for prop,value in props.items():
car[prop] = value
print(car)
car = make_car('subaru', 'outback', color='blue', tow_package=True)
|
def make_car(manufacturer_name, model_name, **props):
car = {'manufacturer': manufacturer_name, 'model': model_name}
for (prop, value) in props.items():
car[prop] = value
print(car)
car = make_car('subaru', 'outback', color='blue', tow_package=True)
|
# import pretty_midi
# from omnizart.music import app as music_app
# from omnizart.drum import app as drum_app
# from omnizart.chord import app as chord_app
def process(input_audio, model_path=None, output="./"):
pass
|
def process(input_audio, model_path=None, output='./'):
pass
|
n = int(input())
p = list(map(int, input().split()))
cnt = 0
for i in range(1, n-1):
if (p[i-1] <= p[i] <= p[i+1]) or (p[i+1] <= p[i] <= p[i-1]):
cnt += 1
print(cnt)
|
n = int(input())
p = list(map(int, input().split()))
cnt = 0
for i in range(1, n - 1):
if p[i - 1] <= p[i] <= p[i + 1] or p[i + 1] <= p[i] <= p[i - 1]:
cnt += 1
print(cnt)
|
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def isSubStructure(self, A: TreeNode, B: TreeNode) -> bool:
if B is None: return False
if A is None: return False
result = False
if A.val == B.val:
result = self.hasSubTree(A, B)
if result == False:
result = self.isSubStructure(A.left, B)
if result == False:
result = self.isSubStructure(A.right, B)
return result
def hasSubTree(self, A, B):
if B is None: return True
if A is None: return False
if A.val != B.val: return False
return self.hasSubTree(A.left, B.left) and self.hasSubTree(A.right, B.right)
|
class Solution:
def is_sub_structure(self, A: TreeNode, B: TreeNode) -> bool:
if B is None:
return False
if A is None:
return False
result = False
if A.val == B.val:
result = self.hasSubTree(A, B)
if result == False:
result = self.isSubStructure(A.left, B)
if result == False:
result = self.isSubStructure(A.right, B)
return result
def has_sub_tree(self, A, B):
if B is None:
return True
if A is None:
return False
if A.val != B.val:
return False
return self.hasSubTree(A.left, B.left) and self.hasSubTree(A.right, B.right)
|
class fun1:
# test
testVal = 1
def __init__(self, a):
print("class init")
self.a = a
def __call__(self, x):
return x + self.a
def __str__(self) -> str:
return "Sina changed this function as"
def id(self):
return 'a=%a' % self.a
@classmethod
def updateValue1(cls, b):
cls.testVal = b
def updateValue2(self, b):
self.testVal = b
@property
def showValue(cls):
print("testVal: ", cls.testVal)
return cls.testVal
# y = textC()
# z = y(1)
# print(z)
# def f(x):
# return x + 1
# def df(f, x):
# return f(x)
# ans = df(f, 10)
# print(ans)
# use function with args
# f2 = fun1(2)
# print(f2)
# val = f2.updateValue2(100)
# val2 = f2.showValue
# print(fun1.a)
# ans = df(f2, 10)
# print(ans)
# id = f2.id()
# print(id)
a = [1, 2, 3]
b = a.copy()
c = [3, 4, 5]
print(a, b)
a.clear()
print(a, b)
a.extend(c)
print(a, b)
|
class Fun1:
test_val = 1
def __init__(self, a):
print('class init')
self.a = a
def __call__(self, x):
return x + self.a
def __str__(self) -> str:
return 'Sina changed this function as'
def id(self):
return 'a=%a' % self.a
@classmethod
def update_value1(cls, b):
cls.testVal = b
def update_value2(self, b):
self.testVal = b
@property
def show_value(cls):
print('testVal: ', cls.testVal)
return cls.testVal
a = [1, 2, 3]
b = a.copy()
c = [3, 4, 5]
print(a, b)
a.clear()
print(a, b)
a.extend(c)
print(a, b)
|
#pj24
foo = '0123456789'
def thingamy(foo):
foo.sort()
|
foo = '0123456789'
def thingamy(foo):
foo.sort()
|
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def binaryTreePaths(self, root: TreeNode) -> List[str]:
if not root:
return []
ans = []
self.dfs(root, ans, '' + str(root.val))
return ans
def dfs(self, root, ans, path):
if root.left == None and root.right == None:
ans.append(path)
if root.left != None:
self.dfs(root.left, ans, path + '->' + str(root.left.val))
if root.right != None:
self.dfs(root.right, ans, path + '->' + str(root.right.val))
|
class Solution:
def binary_tree_paths(self, root: TreeNode) -> List[str]:
if not root:
return []
ans = []
self.dfs(root, ans, '' + str(root.val))
return ans
def dfs(self, root, ans, path):
if root.left == None and root.right == None:
ans.append(path)
if root.left != None:
self.dfs(root.left, ans, path + '->' + str(root.left.val))
if root.right != None:
self.dfs(root.right, ans, path + '->' + str(root.right.val))
|
SURFACE_HARD = 1
SURFACE_CLAY = 2
ADAM_EL_MIHDAWY = 'Adam El Mihdawy'
ADAM_MOUNDIR = 'Adam Moundir'
ADAM_PAVLASEK = 'Adam Pavlasek'
ADHAM_GABER = 'Adham Gabr'
ADMIR_KALENDER = 'Admir Kalender'
ANDRES_MOLTENI = 'Andres Molteni'
ADRIAN_ANDREEV = 'Adrian Andreev'
ADRIAN_BODMER = 'Adrian Bodmer'
ADRIAN_MANNARINO = 'Adrian Mannarino'
ADRIAN_MENENDEZ_MACEIRAS = 'Adrian Menendez-Maceiras'
AIDAN_MCHUGH = 'Aidan McHugh'
AJEET_RAI = 'Ajeet Rai'
AKIRA_SANTILLAN = 'Akira Santillan'
ALAN_MAGADAN = 'Alan Magadan'
ALASTAIR_GRAY = 'Alastair Gray'
ALBANO_OLIVETTI = 'Albano Olivetti'
ALBERT_RAMOS_VINOLAS = 'Albert Ramos-Vinolas'
ALDIN_SETKIC = 'Aldin Setkic'
ALEJANDRO_DAVIDOVICH_FOKINA = 'Alejandro Davidovich Fokina'
ALEJANDRO_TABILO = 'Alejandro Tabilo'
ALEKSANDAR_VUKIC = 'Aleksandar Vukic'
ALEKSANDR_NEDOVYESOV = 'Aleksandr Nedovyesov'
ALEKSANDRE_METREVELI = 'Aleksandre Metreveli'
ALEN_AVIDZBA = 'Alen Avidzba'
ALESSANDRO_BEGA = 'Alessandro Bega'
ALESSANDRO_GIANNESSI = 'Alessandro Giannessi'
ALEX_BOLT = 'Alex Bolt'
ALEX_DE_MINAUR = 'Alex de Minaur'
ALEX_RYBAKOV = 'Alex Rybakov'
ALEXANDAR_LAZAROV = 'Alexandar Lazarov'
ALEXANDER_BUBLIK = 'Alexander Bublik'
ALEXANDER_COZBINOV = 'Alexander Cozbinov'
ALEXANDER_ERLER = 'Alexander Erler'
ALEXANDER_VASILENKO = 'Alexander Vasilenko'
ALEXANDER_WARD = 'Alexander Ward'
ALEXANDER_ZHURBIN = 'Alexander Zhurbin'
ALEXANDER_ZVEREV = 'Alexander Zverev'
ALEXANDRE_MULLER = 'Alexandre Muller'
ALEXEI_POPYRIN = 'Alexei Popyrin'
ALEXEY_VATUTIN = 'Alexey Vatutin'
ALEXIS_GALARNEAU = 'Alexis Galarneau'
ALIBEK_KACHMAZOV = 'Alibek Kachmazov'
ALJAZ_BEDENE = 'Aljaz Bedene'
ALTUG_CELIKBILEK = 'Altug Celikbilek'
AMIR_WEINTRAUB = 'Amir Weintraub'
ANDREA_ARNABOLDI = 'Andrea Arnaboldi'
ANDREA_BASSO = 'Andrea Basso'
ANDREA_COLLARINI = 'Andrea Collarini'
ANDREAS_SEPPI = 'Andreas Seppi'
ANDREJ_MARTIN = 'Andrej Martin'
ANDREW_FENTY = 'Andrew Fenty'
ANDREW_HARRIS = 'Andrew Harris'
ANDREW_WHITTINGTON = 'Andrew Whittington'
ANDREY_RUBLEV = 'Andrey Rublev'
ANDY_MURRAY = 'Andy Murray'
ANTE_PAVIC = 'Ante Pavic'
ANTOINE_CORNUT_CHAUVINC = 'Antoine Cornut-Chauvinc'
ANTOINE_ESCOFFIER = 'Antoine Escoffier'
ANTOINE_HOANG = 'Antoine Hoang'
ANTON_MATUSEVICH = 'Anton Matusevich'
ARJUN_KADHE = 'Arjun Kadhe'
ARNAUD_BOVY = 'Arnaud Bovy'
ARTEM_DUBRIVNYY = 'Artem Dubrivnyy'
ARTHUR_CAZAUX = 'Arthur Cazaux'
ARTHUR_DE_GREEF = 'Arthur de Greef'
ARTHUR_RINDERKNECH = 'Arthur Rinderknech'
ASLAN_KARATSEV = 'Aslan Karatsev'
ATTILA_BALAZS = 'Attila Balazs'
AUSTIN_KRAJICEK = 'Austin Krajicek'
BENJAMIN_BONZI = 'Benjamin Bonzi'
BENJAMIN_SIGOUIN = 'Benjamin Sigouin'
BENOIT_PAIRE = 'Benoit Paire'
BERNABE_ZAPATA_MIRALLES = 'Bernabe Zapata Miralles'
BERNARD_TOMIC = 'Bernard Tomic'
BJORN_FRATANGELO = 'Bjorn Fratangelo'
BLAKE_ELLIS = 'Blake Ellis'
BLAZ_KAVCIC = 'Blaz Kavcic'
BLAZ_ROLA = 'Blaz Rola'
BORIS_FASSBENDER = 'Boris Fassbender'
BORNA_CORIC = 'Borna Coric'
BORNA_GOJO = 'Borna Gojo'
BRANDON_NAKASHIMA = 'Brandon Nakashima'
BRAYDEN_SCHNUR = 'Brayden Schnur'
BRADLEY_KLAHN = 'Bradley Klahn'
BRADLEY_MOUSLEY = 'Bradley Mousley'
BRIAN_SHI = 'Brian Shi'
CALVIN_HEMERY = 'Calvin Hemery'
CAMERON_NORRIE = 'Cameron Norrie'
CANNON_KINGSLEY = 'Cannon Kingsley'
CARL_SODERLUND = 'Carl Soderlund'
CARLOS_ALCARAZ_GARFIA = 'Carlos Alcaraz Garfia'
CARLOS_BERLOCQ = 'Carlos Berlocq'
CARLOS_GOMEZ_HERRERA = 'Carlos Gomez Herrera'
CARLOS_TABERNER = 'Carlos Taberner'
CASPER_RUUD = 'Casper Ruud'
CEDRIC_MARCEL_STEBE = 'Cedric-Marcel Stebe'
CEM_ILKEL = 'Cem Ilkel'
CHENG_PENG_HSIEH = 'Cheng-Peng Hsieh'
CHUN_HSIN_TSENG = 'Chun-hsin Tseng'
CHRISTIAN_HARRISON = 'Christian Harrison'
CHRISTOPHER_EUBANKS = 'Christopher Eubanks'
CHRISTOPHER_O_CONNELL = 'Christopher O\'Connell'
COLE_GROMLEY = 'Cole Gromley'
COLLIN_ALTAMIRANO = 'Collin Altamirano'
CONSTANT_LESTIENNE = 'Constant Lestienne'
CORENTIN_MOUTET = 'Corentin Moutet'
CHRISTIAN_GARIN = 'Cristian Garin'
DAMIR_DZUMHUR = 'Damir Dzumhur'
DANIEL_ALTMAIER = 'Daniel Altmaier'
DANIEL_BRANDS = 'Daniel Brands'
DANIEL_ELAHI_GALAN = 'Daniel Elahi Galan'
DANIEL_EVANS = 'Daniel Evans'
DANIEL_GIMENO_TRAVER = 'Daniel Gimeno-Traver'
DANIEL_MASUR = 'Daniel Masur'
DANIEL_MUNOZ_DE_LA_NAVA = 'Daniel Munoz de la Nava'
DANIEL_NGUYEN = 'Daniel Nguyen'
DANIIL_MEDVEDEV = 'Daniil Medvedev'
DANILO_PETROVIC = 'Danilo Petrovic'
DANNY_THOMAS = 'Danny Thomas'
DARIAN_KING = 'Darian King'
DAVID_FERRER = 'David Ferrer'
DAVID_GOFFIN = 'David Goffin'
DAVID_GUEZ = 'David Guez'
DENIS_ISTOMIN = 'Denis Istomin'
DENIS_KUDLA = 'Denis Kudla'
DENIS_SHAPOVALOV = 'Denis Shapovalov'
DENNIS_NOVAK = 'Dennis Novak'
DENNIS_NOVIKOV = 'Dennis Novikov'
DI_WU = 'Di Wu'
DIEGO_SCHWARTZMAN = 'Diego Schwartzman'
DIMITAR_KUZMANOV = 'Dimitar Kuzmanov'
DOMINIC_THIEM = 'Dominic Thiem'
DOMINIK_KOEPFER = 'Dominik Koepfer'
DONALD_YOUNG = 'Donald Young'
DUCKHEE_LEE = 'Duckhee Lee'
DUDI_SELA = 'Dudi Sela'
DUSAN_LAJOVIC = 'Dusan Lajovic'
DUSTIN_BROWN = 'Dustin Brown'
EDWARD_CORRIE = 'Edward Corrie'
EGOR_GERASIMOV = 'Egor Gerasimov'
ELIAS_YMER = 'Elias Ymer'
ELLIOT_BENCHETRIT = 'Elliot Benchetrit'
EMIL_REINBERG = 'Emil Reinberg'
EMIL_RUUSUVUORI = 'Emil Ruusuvuori'
EMILIO_GOMEZ = 'Emilio Gomez'
EMILIO_NAVA = 'Emilio Nava'
ENRIQUE_LOPEZ_PEREZ = 'Enrique Lopez Perez'
ENZO_COUACAUD = 'Enzo Couacaud'
ERGI_KIRKIN = 'Ergi Kirkin'
ERNESTO_ESCOBEDO = 'Ernesto Escobedo'
ERNESTS_GULBIS = 'Ernests Gulbis'
EVAN_KING = 'Evan King'
EVAN_SONG = 'Evan Song'
EVGENII_TIURNEV = 'Evgenii Tiurnev'
EVGENY_DONSKOY = 'Evgeny Donskoy'
EVGENY_KARLOVSKIY = 'Evgeny Karlovskiy'
FABIO_FOGNINI = 'Fabio Fognini'
FABRIZIO_ORNAGO = 'Fabrizio Ornago'
FACUNDO_ARGUELLO = 'Facundo Arguello'
FACUNDO_BAGNIS = 'Facundo Bagnis'
FACUNDO_DIAZ_ACOSTA = 'Facundo Diaz Acosta'
FAJING_SUN = 'Fajing Sun'
FEDERICO_CORIA = 'Federico Coria'
FEDERICO_DELBONIS = 'Federico Delbonis'
FEDERICO_GAIO = 'Federico Gaio'
FELICIANO_LOPEZ = 'Feliciano Lopez'
FELIPE_ALVES = 'Felipe Alves'
FELIX_AUGER_ALIASSIME = 'Felix Auger-Aliassime'
FERNANDO_VERDASCO = 'Fernando Verdasco'
FILIP_HORANSKY = 'Filip Horanskey'
FILIP_KRAJINOVIC = 'Filip Krajinovic'
FILIP_PELIWO = 'Filip Peliwo'
FILLIPPO_BALDI = 'Filippo Baldi'
FINN_TEARNEY = 'Finn Tearney'
FLORENT_DIEP = 'Florent Diep'
FLORIAN_MAYER = 'Florian Mayer'
FRANCES_TIAFOE = 'Frances Tiafoe'
FRANCISCO_CERUNDOLO = 'Francisco Cerundolo'
FRANCO_RONCADELLI = 'Franco Roncadelli'
FRANK_DANCEVIC = 'Frank Dancevic'
FRANKO_SKUGOR = 'Franko Skugor'
FREDERICO_FERREIRA_SILVA = 'Frederico Ferreira Silva'
GABRIEL_DONEV = 'Gabriel Donev'
GAEL_MONFILS = 'Gael Monfils'
GARRETT_JOHNS = 'Garrett Johns'
GASTAO_ELIAS = 'Gastao Elias'
GEORGE_LOFFHAGEN = 'George Loffhagen'
GERALD_MELZER = 'Gerald Melzer'
GERARDO_LOPEZ_VILLASENOR = 'Gerardo Lopez Villasenor'
GIAN_MARCO_MORONI = 'Gian Marco Moroni'
GIANLUCA_MAGER = 'Gianluca Mager'
GIANLUIGI_QUINZI = 'Gianluigi Quinzi'
GILLES_MULLER = 'Gilles Muller'
GILLES_SIMON = 'Gilles Simon'
GLEB_SAKHAROV = 'Gleb Sakharov'
GO_SOEDA = 'Go Soeda'
GONCALO_OLIVEIRA = 'Goncalo Oliveira'
GONZALO_ESCOBAR = 'Gonzalo Escobar'
GREGOIRE_BARRERE = 'Gregoire Barrere'
GRIGOR_DIMITROV = 'Grigor Dimitrov'
GUIDO_ANDREOZZI = 'Guido Andreozzi'
GUIDO_PELLA = 'Guido Pella'
GUILHERME_CLEZAR = 'Guilherme Clezar'
GUILLERMO_GARCIA_LOPEZ = 'Guillermo Garcia-Lopez'
HAROLD_MAYOT = 'Harold Mayot'
HARRY_BOURCHIER = 'Harry Bourchier'
HENRI_LAAKSONEN = 'Henri Laaksonen'
HIROKI_MORIYA = 'Hiroki Moriya'
HOLGER_VITUS_NODSKOV_RUNE = 'Holger Vitus Nodksov Rune'
HORACIO_ZEBALLOS = 'Horacio Zeballos'
HUBERT_HURKACZ = 'Hubert Hurkacz'
HUGO_DELLIEN = 'Hugo Dellien'
HUGO_GASTON = 'Hugo Gaston'
HUGO_GRENIER = 'Hugo Grenier'
HUGO_NYS = 'Hugo Nys'
HUNTER_KOONTZ = 'Hunter Koontz'
HYEON_CHUNG = 'Hyeon Chung'
IGOR_ZELENAY = 'Igor Zelenay'
ILLYA_MARCHENKO = 'Illya Marchenko'
ILYA_IVASHKA = 'Ilya Ivashka'
IVAN_GAKHOV = 'Ivan Gakhov'
IVAN_NEDELKO = 'Ivan Nedelko'
IVO_KARLOVIC = 'Ivo Karlovic'
JABOR_AL_MUTAWA = 'Jabor Al-Mutawa'
JACOPO_BERRETTINI = 'Jacopo Barrettini'
JACK_DRAPER = 'Jack Draper'
JACK_MINGJIE_LIN = 'Jack Mingjie Lin'
JACK_SOCK = 'Jack Sock'
JACOB_GRILLS = 'Jacob Grills'
JAKUB_PAUL = 'Jakub Paul'
JAMES_DUCKWORTH = 'James Duckworth'
JAMES_WARD = 'James Ward'
JAMIE_CERRETANI = 'Jamie Cerretani'
JAN_CHOINSKI = 'Jan Choinski'
JAN_LENNARD_STRUFF = 'Jan-Lennard Struff'
JANKO_TIPSAREVIC = 'Janko Tipsarevic'
JANNIK_SINNER = 'Jannik Sinner'
JARED_DONALDSON = 'Jarod Donaldson'
JARED_HILTZIK = 'Jared Hiltzik'
JASON_JUNG = 'Jason Jung'
JASON_KUBLER = 'Jason Kubler'
JAUME_MUNAR = 'Jaume Munar'
JAVIER_BARRANCO_COSANO = 'Javier Barranco Cosano'
JAY_CLARKE = 'Jay Clarke'
JC_ARAGONE = 'JC Aragone'
JELLE_SELS = 'Jelle Sels'
JENSON_BROOKSBY = 'Jenson Brooksby'
JEREMY_CHARDY = 'Jeremy Chardy'
JIE_CUI = 'Jie Cui'
JIRI_VESELY = 'Jiri Vesely'
JJ_WOLF = 'JJ Wolf'
JO_WILFRIED_TSONGA = 'Jo-Wilfried Tsonga'
JOAO_DOMINGUES = 'Joao Domingues'
JOAO_MENEZES = 'Joao Menezes'
JOAO_SOUSA = 'Joao Sousa'
JOHAN_NIKLES = 'Johan Nikles'
JOHANNES_HAERTEIS = 'Johannes Haerteis'
JOHN_HALLQUIST_LITHEN = 'John Hallquist Lithen'
JOHN_ISNER = 'John Isner'
JOHN_MCNALLY = 'John McNally'
JOHN_MILLMAN = 'John Millman'
JOHN_PATRICK_SMITH = 'John-Patrick Smith'
JONATHAN_EYSSERIC = 'Jonathan Eysseric'
JONATHAN_GRAY = 'Jonathan Gray'
JORDAN_THOMPSON = 'Jordan Thompson'
JORGE_PLANS = 'Jorge Plans'
JOZEF_KOVALIK = 'Jozef Kovalik'
JUAN_ALEJANDRO_HERNANDEZ = 'Juan Alejandro Hernandez'
JUAN_BAUTISTA_OTEGUI = 'Juan Bautista Otegui'
JUAN_IGNACIO_BATALLA = 'Juan Ignacio Batalla'
JUAN_IGNACIO_LONDERO = 'Juan Ignacio Londero'
JUAN_MARTIN_DEL_POTRO = 'Juan Martin del Potro'
JUAN_PABLO_FICOVICH = 'Juan Pablo Ficovich'
JUAN_PABLO_VARILLAS = 'Juan Pablo Varillas'
JULIAN_LENZ = 'Julian Lenz'
JULIAN_OCLEPPO = 'Julian Ocleppo'
JULIEN_BENNETEAU = 'Julien Benneteau'
JULIAN_ZLOBINSKY = 'Julian Zlobinsky'
JURGEN_MELZER = 'Jurgen Melzer'
JURGEN_ZOPP = 'Jurgen Zopp'
JURIJ_RODIONOV = 'Jurij Rodionov'
KACPER_ZUK = 'Kacper Zuk'
KAICHI_UCHIDA = 'Kaichi Uchida'
KAMIL_MAJCHRZAK = 'Kamil Majchrzak'
KAREN_KHACHANOV = 'Karen Khachanov'
KARIM_MOHAMED_MAAMOUN = 'Karim-Mohamed Maamoun'
KARL_FRIBERG = 'Karl Friberg'
KARL_POLING = 'Karl Poling'
KARUE_SELL = 'Karue Sell'
KEI_NISHIKORI = 'Key Nishikori'
KENNY_DE_SCHEPPER = 'Kenny de Schepper'
KEVIN_ANDERSON = 'Kevin Anderson'
KEVIN_KING = 'Kevin King'
KEVIN_KRAWIETZ = 'Kevin Krawietz'
KIMMER_COPPEJANS = 'Kimmer Coppejans'
KIRANPAL_PANNU = 'Kiranpal Pannu'
KORAY_KIRCI = 'Koray Kirci'
KYLE_EDMUND = 'Kyle Edmund'
LAMINE_OUAHAB = 'Lamine Ouahab'
LASLO_DJERE = 'Laslo Djere'
LAURYNAS_GRIGELIS = 'Laurynas Grigelis'
LEONARDO_MAYER = 'Leonardo Mayer'
LIAM_BROADY = 'Liam Broady'
LLOYD_GLASSPOOL = 'Lloyd Glasspool'
LLOYD_HARRIS = 'Lloyd Harris'
LORENZO_GIUSTINO = 'Lorenzo Giustino'
LORENZO_MUSETTI = 'Lorenzo Musetti'
LORENZO_SONEGO = 'Lorenzo Sonego'
LOUIS_WESSELS = 'Louis Wessels'
LUCA_MARGAROLI = 'Luca Margaroli'
LUCA_VANNI = 'Luca Vanni'
LUCAS_CATARINA = 'Lucas Catarina'
LUCAS_GOMEZ = 'Lucas Gomez'
LUCAS_MIEDLER = 'Lucas Miedler'
LUCAS_POUILLE = 'Lucas Pouille'
LUCAS_RENARD = 'Lucas Renard'
LUIS_PATINO = 'Luis Patino'
LUKAS_LACKO = 'Lukas Lacko'
LUKAS_ROSOL = 'Lukas Rosol'
LUKE_SAVILLE = 'Luke Saville'
MACKENZIE_MCDONALD = 'Mackenzie McDonald'
MALEK_JAZIRI = 'Malek Jaziri'
MANUEL_GUINARD = 'Manuel Guinard'
MARC_ANDREA_HUESLER = 'Marc-Andrea Huesler'
MARC_POLMANS = 'Marc Polmans'
MARCEL_GRANOLLERS = 'Marcel Granollers'
MARCELO_AREVALO = 'Marcelo Arevalo'
MARCELO_TOMAS_BARRIOS_VERA = 'Marcelo Tomas Barrios Vera'
MARCO_CECCHINATO = 'Marco Cecchinato'
MARCO_TRUNGELLITI = 'Marco Trungelliti'
MARCOS_BAGHDATIS = 'Marcos Baghdatis'
MARCOS_GIRON = 'Marcos Giron'
MAREK_JALOVIEC = 'Marek Jaloviec'
MARIN_CILIC = 'Marin Cilic'
MARIO_VILELLA_MARTINEZ = 'Mario Vilella Martinez'
MARIUS_COPIL = 'Marius Copil'
MARKO_MILADINOVIC = 'Marko Miladinovic'
MARKUS_ERIKSSON = 'Markus Eriksson'
MARSEL_ILHAN = 'Marsel Ilhan'
MARTIN_CUEVAS = 'Martin Cuevas'
MARTIN_KLIZAN = 'Martin Klizan'
MARTIN_REDLICKI = 'Martin Redlicki'
MARTON_FUCSOVICS = 'Marton Fucsovics'
MARVIN_MOELLER = 'Marvin Moeller'
MATE_VALKUSZ = 'Mate Valkusz'
MATEUS_ALVES = 'Mateus Alves'
MATTEO_BERRETTINI = 'Matteo Barrettini'
MATTEO_DONATI = 'Matteo Donati'
MATTEO_VIOLA = 'Matteo Viola'
MATTHEW_CHRISTOPHER_ROMIOS = 'Matthew Christopher Romios'
MATTHEW_EBDEN = 'Matthew Ebden'
MATTHIAS_BACHINGER = 'Matthias Bachinger'
MATTHIAS_HAIM = 'Matthias Haim'
MATS_MORAING = 'Mats Moraing'
MAX_PURCELL = 'Max Purcell'
MAVERICK_BANES = 'Maverick Banes'
MAXIME_CRESSY = 'Maxime Cressy'
MAXIME_JANVIER = 'Maxime Janvier'
MAXIMILIAN_MARTERER = 'Maximilian Marterer'
MAXIMILIAN_NEUCHRIST = 'Maximilian Neuchrist'
MICHAEL_MMOH = 'Michael Mmoh'
MICHAEL_VENUS = 'Michael Venus'
MICHAIL_PERVOLARAKIS = 'Michail Pervolarakis'
MIGUEL_ANGEL_REYES_VARELA = 'Miguel Angel Reyes-Varela'
MIKAEL_TORPEGAARD = 'Mikael Torpegaard'
MIKAEL_YMER = 'Mikael Ymer'
MIKHAIL_KUKUSHKIN = 'Mikhael Kukushkin'
MIKHAIL_YOUZHNY = 'Mikhail Youzhny'
MILIAAN_NIESTEN = 'Miliaan Niesten'
MILJAN_ZEKIC = 'Miljan Zekic'
MILOS_RAONIC = 'Milos Raonic'
MIOMIR_KECMANOVIC = 'Miomir Kecmanovic'
MIRZA_BASIC = 'Mirza Basic'
MISCHA_ZVEREV = 'Mischa Zverev'
MITCHELL_KRUEGER = 'Mitchell Krueger'
MOHAMED_SAFWAT = 'Mohamed Safwat'
MORITZ_THIEM = 'Moritz Thiem'
MOUSA_SHANAN_ZAYED = 'Mousa Shanan Zayed'
MUBARAK_SHANNAN_ZAYID = 'Mubarak Shannan Zayid'
NATAN_RODRIGUES = 'Natan Rodrigues'
NICHOLAS_REYES = 'Nicholas Reyes'
NICK_KYRGIOS = 'Nick Kyrgios'
NICOLA_KUHN = 'Nicola Kuhn'
NICOLAS_ALMAGRO = 'Nicolas Almagro'
NICOLAS_JARRY = 'Nicolas Jarry'
NICOLAS_MAHUT = 'Nicolas Mahut'
NIK_RAZBORSEK = 'Nik Razborsek'
NIKLAS_GUTTAU = 'Niklas Guttau'
NIKOLA_MILOJEVIC = 'Nikola Milojevic'
NIKOLOZ_BASILASHVILI = 'Nikoloz Basilashvili'
NINO_SERDARUSIC = 'Nino Serdarusic'
NOAH_RUBIN = 'Noah Rubin'
NORBERT_GOMBOS = 'Norbert Gombos'
NOVAK_DJOKOVIC = 'Novak Djokovic'
ORIOL_ROCA_BATALLA = 'Oriol Roca Batalla'
ORLANDO_LUZ = 'Orlando Luz'
OSCAR_OTTE = 'Oscar Otte'
PABLO_ANDUJAR = 'Pablo Andujar'
PABLO_CARRENO_BUSTA = 'Pablo Carreno Busta'
PABLO_CUEVAS = 'Pablo Cuevas'
PAOLO_LORENZI = 'Paolo Lorenzi'
PAUL_JUBB = 'Paul Jubb'
PATRICK_KYPSON = 'Patrick Kypson'
PEDJA_KRSTIN = 'Pedja Krstin'
PEDRO_CACHIN = 'Pedro Cachin'
PEDRO_MARTINEZ = 'Pedro Martinez'
PEDRO_SAKAMOTO = 'Pedro Sakamoto'
PEDRO_SOUSA = 'Pedro Sousa'
PETER_GOJOWCZYK = 'Peter Gojowczyk'
PETER_POLANSKY = 'Peter Polansky'
PETER_TOREBKO = 'Peter Torebko'
PETROS_CHRYSOCHOS = 'Petros Chrysochos'
PHILIPP_KOHLSCHREIBER = 'Philipp Kohlschreiber'
PHILIPP_OSWALD = 'Philipp Oswald'
PIERRE_HUGUES_HERBERT = 'Pierre Hugues Herbert'
PRAJNESH_GUNNESWARAN = 'Prajnesh Gunneswaran'
PRESTON_BROWN = 'Preston Brown'
QUENTIN_HALYS = 'Quentin Halys'
RADU_ALBOT = 'Radu Albot'
RAFAEL_MATOS = 'Rafael Matos'
RAFAEL_NADAL = 'Rafael Nadal'
RAMKUMAR_RAMANATHAN = 'Ramkumar Ramanathan'
RAPHAEL_BALTENSPERGER = 'Raphael Baltensperger'
RAYANE_ROUMANE = 'Rayane Roumane'
RAYMOND_SARMIENTO = 'Raymond Sarmiento'
REILLY_OPELKA = 'Reilly Opelka'
RENTA_TOKUDA = 'Renta Tokuda'
RENZO_OLIVO = 'Renzo Olivo'
RICARDAS_BERANKIS = 'Ricardas Berankis'
RICARDO_OJEDA_LARA = 'Ricardo Ojeda Lara'
RICCARDO_BALZERANI = 'Riccardo Balzerani'
RICCARDO_BELLOTTI = 'Riccardo Bellotti'
RICHARD_GASQUET = 'Richard Gasquet'
RIGELE_TE = 'Rigele Te'
ROBERT_MACIAG = 'Robert Maciag'
ROBERTO_BAUTISTA_AGUT = 'Roberto Bautista Agut'
ROBERTO_CARBALLES_BAENA = 'Roberto Carballes Baena'
ROBERTO_CID_SUBERVI = 'Roberto Cid Subervi'
ROBERTO_MARCORA = 'Roberto Marcora'
ROBERTO_ORTEGA_OLMEDO = 'Roberto Ortega Olmedo'
ROBERTO_QUIROZ = 'Roberto Quiroz'
ROBIN_HAASE = 'Robin Haase'
ROGER_FEDERER = 'Roger Federer'
ROGERIO_DUTRA_SILVA = 'Rogerio Dutra Silva'
ROMAIN_ARNEODO = 'Romain Arneodo'
ROMAN_SAFIULLIN = 'Roman Safiullin'
ROY_SMITH = 'Roy Smith'
RUBEN_BEMELMANS = 'Ruben Bemelmans'
RUBIN_STATHAM = 'Rubin Statham'
RUDOLF_MOLLEKER = 'Rudolf Molleker'
RUNHAO_HUA = 'Runhao Hua'
RYAN_HARRISON = 'Ryan Harrison'
RYAN_NIJBOER = 'Ryan Nijboer'
RYAN_SHANE = 'Ryan Shane'
SAKETH_MYNENI = 'Saketh Myneni'
SALVATORE_CARUSO = 'Salvatore Caruso'
SAM_QUERREY = 'Sam Querrey'
SANDRO_EHRAT = 'Sandro Ehrat'
SANDRO_KOPP = 'Sandro Kopp'
SANTIAGO_GIRALDO = 'Santiago Giraldo'
SARP_AGABIGUN = 'Sarp Agabigun'
SASI_KUMAR_MUKUND = 'Sasi Kumar Mukund'
SCOTT_GRIEKSPOOR = 'Scott Griekspoor'
SEBASTIAN_KORDA = 'Sebastian Korda'
SEBASTIAN_OFNER = 'Sebastian Ofner'
SERGIO_GUTIERREZ_FERROL = 'Sergio Gutierrez-Ferrol'
SERGIY_STAKHOVSKY = 'Sergiy Stakhovsky'
SIMON_YITBAREK = 'Simon Yitbarek'
SIMON_CARR = 'Simon Carr'
SIMONE_BOLELLI = 'Simone Bolelli'
SKANDER_MANSOURI = 'Skander Mansouri'
SOONWOO_KWON = 'Soonwoo Kwon'
STAN_WAWRINKA = 'Stan Wawrinka'
STEFAN_KOZLOV = 'Stefan Kozlov'
STEFANO_NAPOLITANO = 'Stefano Napolitano'
STEFANO_TRAVAGLIA = 'Stefano Travaglia'
STEFANOS_TSITSIPAS = 'Stefanos Tsitsipas'
STEPHANE_ROBERT = 'Stephane Robert'
STEVE_DARCIS = 'Steve Darcis'
STEVE_JOHNSON = 'Steve Johnson'
STEVEN_DIEZ = 'Steven Diez'
STRONG_KIRCHHEIMER = 'Strong Kirchheimer'
SUMIT_NAGAL = 'Sumit Nagal'
ZACHARY_SVAJDA = 'Zachary Svajda'
TAHA_BAADI = 'Taha Baadi'
TAKANYI_GARANGANGA = 'Takanyi Garanganga'
TALLON_GRIEKSPOOR = 'Tallon Griekspoor'
TARO_DANIEL = 'Taro Daniel'
TATSUMA_ITO = 'Tatsuma Ito'
TAYLOR_FRITZ = 'Taylor Fritz'
TENNYS_SANDGREN = 'Tennys Sandgren'
TEYMURAZ_GABASHVILI = 'Teymuraz Gabashvili'
THAI_SON_KWIATKOWSKI = 'Thai-Son Kwiatkowski'
THANASI_KOKKINAKIS = 'Thanasi Kokkinakis'
THIAGO_MONTEIRO = 'Thiago Monteiro'
THIAGO_SEYBOTH_WILD = 'Thiago Seyboth Wild'
THIEMO_DE_BAKKER = 'Thiemo de Bakker'
THOMAS_FABBIANO = 'Thomas Fabbiano'
THOMAZ_BELLUCCI = 'Thomaz Belluci'
TIGRE_HANK = 'Tigre Hank'
TIM_PUETZ = 'Tim Puetz'
TIM_SMYCZEK = 'Tim Smyczek'
TOBIAS_KAMKE = 'Tobias Kamke'
TOM_FAWCETT = 'Tom Fawcett'
TOMAS_BERDYCH = 'Tomas Berdych'
TOMISLAV_BRKIC = 'Tomislav Brkic'
TOMMY_PAUL = 'Tommy Paul'
TOMMY_ROBREDO = 'Tommy Robredo'
TRENT_BRYDE = 'Trent Bryde'
TRISTAN_LAMASINE = 'Tristan Lamasine'
TSUNG_HUA_YANG = 'Tsung Hua Yang'
UGO_HUMBERT = 'Ugo Humbert'
ULADZIMIR_IGNATIK = 'Uladzimir Ignatik'
ULISES_BLANCH = 'Ulises Blanch'
VACLAV_SAFRANEK = 'Vaclav Safranek'
VASEK_POSPISIL = 'Vasek Pospisil'
VICTOR_ESTRELLA_BURGOS = 'Victor Estrella Burgos'
VIKTOR_DURASOVIC = 'Viktor Durasovic'
VIKTOR_GALOVIC = 'Viktor Galovic'
VIKTOR_TROICKI = 'Viktor Troicki'
VINCENT_MILLOT = 'Vincent Millot'
WILLIAM_BLUMBERG = 'William Blumberg'
XIN_GAO = 'Xin Gao'
Y_BAI = 'Y Bai'
YANKI_EREL = 'Yanki Erel'
YANN_MARTI = 'Yann Marti'
YANNICK_HANFMANN = 'Yannick Hanfmann'
YANNICK_MADEN = 'Yannick Maden'
YANNICK_MERTENS = 'Yannick Mertens'
YASUTAKA_UCHIYAMA = 'Yasutaka Uchiyama'
YECONG_HE = 'Yecong He'
YEN_HSUN_LU = 'Yen-Hsun Lu'
YIBING_WU = 'Yibing Wu'
YOSHIHITO_NISHIOKA = 'Yoshihito Nishioka'
YOSUKE_WATANUKI = 'Yosuke Watanuki'
YUICHI_SUGITA = 'Yuichi Sugita'
YUKI_BHAMBRI = 'Yuki Bhambri'
YUSUKE_TAKAHASHI = 'Yusuke Takahashi'
ZANE_KHAN = 'Zane Khan'
ZDENEK_KOLAR = 'Zdenek Kolar'
ZE_ZHANG = 'Ze Zhang'
ZHAO_ZHAO = 'Zhao Zhao'
ZHE_LI = 'Zhe Li'
ZHIZHEN_ZHANG = 'Zhizhen Zhang'
ZIHAO_XIA = 'Zihao Xia'
ZIZOU_BERGS = 'Zizou Bergs'
ZSOMBOR_PIROS = 'Zsombor Piros'
|
surface_hard = 1
surface_clay = 2
adam_el_mihdawy = 'Adam El Mihdawy'
adam_moundir = 'Adam Moundir'
adam_pavlasek = 'Adam Pavlasek'
adham_gaber = 'Adham Gabr'
admir_kalender = 'Admir Kalender'
andres_molteni = 'Andres Molteni'
adrian_andreev = 'Adrian Andreev'
adrian_bodmer = 'Adrian Bodmer'
adrian_mannarino = 'Adrian Mannarino'
adrian_menendez_maceiras = 'Adrian Menendez-Maceiras'
aidan_mchugh = 'Aidan McHugh'
ajeet_rai = 'Ajeet Rai'
akira_santillan = 'Akira Santillan'
alan_magadan = 'Alan Magadan'
alastair_gray = 'Alastair Gray'
albano_olivetti = 'Albano Olivetti'
albert_ramos_vinolas = 'Albert Ramos-Vinolas'
aldin_setkic = 'Aldin Setkic'
alejandro_davidovich_fokina = 'Alejandro Davidovich Fokina'
alejandro_tabilo = 'Alejandro Tabilo'
aleksandar_vukic = 'Aleksandar Vukic'
aleksandr_nedovyesov = 'Aleksandr Nedovyesov'
aleksandre_metreveli = 'Aleksandre Metreveli'
alen_avidzba = 'Alen Avidzba'
alessandro_bega = 'Alessandro Bega'
alessandro_giannessi = 'Alessandro Giannessi'
alex_bolt = 'Alex Bolt'
alex_de_minaur = 'Alex de Minaur'
alex_rybakov = 'Alex Rybakov'
alexandar_lazarov = 'Alexandar Lazarov'
alexander_bublik = 'Alexander Bublik'
alexander_cozbinov = 'Alexander Cozbinov'
alexander_erler = 'Alexander Erler'
alexander_vasilenko = 'Alexander Vasilenko'
alexander_ward = 'Alexander Ward'
alexander_zhurbin = 'Alexander Zhurbin'
alexander_zverev = 'Alexander Zverev'
alexandre_muller = 'Alexandre Muller'
alexei_popyrin = 'Alexei Popyrin'
alexey_vatutin = 'Alexey Vatutin'
alexis_galarneau = 'Alexis Galarneau'
alibek_kachmazov = 'Alibek Kachmazov'
aljaz_bedene = 'Aljaz Bedene'
altug_celikbilek = 'Altug Celikbilek'
amir_weintraub = 'Amir Weintraub'
andrea_arnaboldi = 'Andrea Arnaboldi'
andrea_basso = 'Andrea Basso'
andrea_collarini = 'Andrea Collarini'
andreas_seppi = 'Andreas Seppi'
andrej_martin = 'Andrej Martin'
andrew_fenty = 'Andrew Fenty'
andrew_harris = 'Andrew Harris'
andrew_whittington = 'Andrew Whittington'
andrey_rublev = 'Andrey Rublev'
andy_murray = 'Andy Murray'
ante_pavic = 'Ante Pavic'
antoine_cornut_chauvinc = 'Antoine Cornut-Chauvinc'
antoine_escoffier = 'Antoine Escoffier'
antoine_hoang = 'Antoine Hoang'
anton_matusevich = 'Anton Matusevich'
arjun_kadhe = 'Arjun Kadhe'
arnaud_bovy = 'Arnaud Bovy'
artem_dubrivnyy = 'Artem Dubrivnyy'
arthur_cazaux = 'Arthur Cazaux'
arthur_de_greef = 'Arthur de Greef'
arthur_rinderknech = 'Arthur Rinderknech'
aslan_karatsev = 'Aslan Karatsev'
attila_balazs = 'Attila Balazs'
austin_krajicek = 'Austin Krajicek'
benjamin_bonzi = 'Benjamin Bonzi'
benjamin_sigouin = 'Benjamin Sigouin'
benoit_paire = 'Benoit Paire'
bernabe_zapata_miralles = 'Bernabe Zapata Miralles'
bernard_tomic = 'Bernard Tomic'
bjorn_fratangelo = 'Bjorn Fratangelo'
blake_ellis = 'Blake Ellis'
blaz_kavcic = 'Blaz Kavcic'
blaz_rola = 'Blaz Rola'
boris_fassbender = 'Boris Fassbender'
borna_coric = 'Borna Coric'
borna_gojo = 'Borna Gojo'
brandon_nakashima = 'Brandon Nakashima'
brayden_schnur = 'Brayden Schnur'
bradley_klahn = 'Bradley Klahn'
bradley_mousley = 'Bradley Mousley'
brian_shi = 'Brian Shi'
calvin_hemery = 'Calvin Hemery'
cameron_norrie = 'Cameron Norrie'
cannon_kingsley = 'Cannon Kingsley'
carl_soderlund = 'Carl Soderlund'
carlos_alcaraz_garfia = 'Carlos Alcaraz Garfia'
carlos_berlocq = 'Carlos Berlocq'
carlos_gomez_herrera = 'Carlos Gomez Herrera'
carlos_taberner = 'Carlos Taberner'
casper_ruud = 'Casper Ruud'
cedric_marcel_stebe = 'Cedric-Marcel Stebe'
cem_ilkel = 'Cem Ilkel'
cheng_peng_hsieh = 'Cheng-Peng Hsieh'
chun_hsin_tseng = 'Chun-hsin Tseng'
christian_harrison = 'Christian Harrison'
christopher_eubanks = 'Christopher Eubanks'
christopher_o_connell = "Christopher O'Connell"
cole_gromley = 'Cole Gromley'
collin_altamirano = 'Collin Altamirano'
constant_lestienne = 'Constant Lestienne'
corentin_moutet = 'Corentin Moutet'
christian_garin = 'Cristian Garin'
damir_dzumhur = 'Damir Dzumhur'
daniel_altmaier = 'Daniel Altmaier'
daniel_brands = 'Daniel Brands'
daniel_elahi_galan = 'Daniel Elahi Galan'
daniel_evans = 'Daniel Evans'
daniel_gimeno_traver = 'Daniel Gimeno-Traver'
daniel_masur = 'Daniel Masur'
daniel_munoz_de_la_nava = 'Daniel Munoz de la Nava'
daniel_nguyen = 'Daniel Nguyen'
daniil_medvedev = 'Daniil Medvedev'
danilo_petrovic = 'Danilo Petrovic'
danny_thomas = 'Danny Thomas'
darian_king = 'Darian King'
david_ferrer = 'David Ferrer'
david_goffin = 'David Goffin'
david_guez = 'David Guez'
denis_istomin = 'Denis Istomin'
denis_kudla = 'Denis Kudla'
denis_shapovalov = 'Denis Shapovalov'
dennis_novak = 'Dennis Novak'
dennis_novikov = 'Dennis Novikov'
di_wu = 'Di Wu'
diego_schwartzman = 'Diego Schwartzman'
dimitar_kuzmanov = 'Dimitar Kuzmanov'
dominic_thiem = 'Dominic Thiem'
dominik_koepfer = 'Dominik Koepfer'
donald_young = 'Donald Young'
duckhee_lee = 'Duckhee Lee'
dudi_sela = 'Dudi Sela'
dusan_lajovic = 'Dusan Lajovic'
dustin_brown = 'Dustin Brown'
edward_corrie = 'Edward Corrie'
egor_gerasimov = 'Egor Gerasimov'
elias_ymer = 'Elias Ymer'
elliot_benchetrit = 'Elliot Benchetrit'
emil_reinberg = 'Emil Reinberg'
emil_ruusuvuori = 'Emil Ruusuvuori'
emilio_gomez = 'Emilio Gomez'
emilio_nava = 'Emilio Nava'
enrique_lopez_perez = 'Enrique Lopez Perez'
enzo_couacaud = 'Enzo Couacaud'
ergi_kirkin = 'Ergi Kirkin'
ernesto_escobedo = 'Ernesto Escobedo'
ernests_gulbis = 'Ernests Gulbis'
evan_king = 'Evan King'
evan_song = 'Evan Song'
evgenii_tiurnev = 'Evgenii Tiurnev'
evgeny_donskoy = 'Evgeny Donskoy'
evgeny_karlovskiy = 'Evgeny Karlovskiy'
fabio_fognini = 'Fabio Fognini'
fabrizio_ornago = 'Fabrizio Ornago'
facundo_arguello = 'Facundo Arguello'
facundo_bagnis = 'Facundo Bagnis'
facundo_diaz_acosta = 'Facundo Diaz Acosta'
fajing_sun = 'Fajing Sun'
federico_coria = 'Federico Coria'
federico_delbonis = 'Federico Delbonis'
federico_gaio = 'Federico Gaio'
feliciano_lopez = 'Feliciano Lopez'
felipe_alves = 'Felipe Alves'
felix_auger_aliassime = 'Felix Auger-Aliassime'
fernando_verdasco = 'Fernando Verdasco'
filip_horansky = 'Filip Horanskey'
filip_krajinovic = 'Filip Krajinovic'
filip_peliwo = 'Filip Peliwo'
fillippo_baldi = 'Filippo Baldi'
finn_tearney = 'Finn Tearney'
florent_diep = 'Florent Diep'
florian_mayer = 'Florian Mayer'
frances_tiafoe = 'Frances Tiafoe'
francisco_cerundolo = 'Francisco Cerundolo'
franco_roncadelli = 'Franco Roncadelli'
frank_dancevic = 'Frank Dancevic'
franko_skugor = 'Franko Skugor'
frederico_ferreira_silva = 'Frederico Ferreira Silva'
gabriel_donev = 'Gabriel Donev'
gael_monfils = 'Gael Monfils'
garrett_johns = 'Garrett Johns'
gastao_elias = 'Gastao Elias'
george_loffhagen = 'George Loffhagen'
gerald_melzer = 'Gerald Melzer'
gerardo_lopez_villasenor = 'Gerardo Lopez Villasenor'
gian_marco_moroni = 'Gian Marco Moroni'
gianluca_mager = 'Gianluca Mager'
gianluigi_quinzi = 'Gianluigi Quinzi'
gilles_muller = 'Gilles Muller'
gilles_simon = 'Gilles Simon'
gleb_sakharov = 'Gleb Sakharov'
go_soeda = 'Go Soeda'
goncalo_oliveira = 'Goncalo Oliveira'
gonzalo_escobar = 'Gonzalo Escobar'
gregoire_barrere = 'Gregoire Barrere'
grigor_dimitrov = 'Grigor Dimitrov'
guido_andreozzi = 'Guido Andreozzi'
guido_pella = 'Guido Pella'
guilherme_clezar = 'Guilherme Clezar'
guillermo_garcia_lopez = 'Guillermo Garcia-Lopez'
harold_mayot = 'Harold Mayot'
harry_bourchier = 'Harry Bourchier'
henri_laaksonen = 'Henri Laaksonen'
hiroki_moriya = 'Hiroki Moriya'
holger_vitus_nodskov_rune = 'Holger Vitus Nodksov Rune'
horacio_zeballos = 'Horacio Zeballos'
hubert_hurkacz = 'Hubert Hurkacz'
hugo_dellien = 'Hugo Dellien'
hugo_gaston = 'Hugo Gaston'
hugo_grenier = 'Hugo Grenier'
hugo_nys = 'Hugo Nys'
hunter_koontz = 'Hunter Koontz'
hyeon_chung = 'Hyeon Chung'
igor_zelenay = 'Igor Zelenay'
illya_marchenko = 'Illya Marchenko'
ilya_ivashka = 'Ilya Ivashka'
ivan_gakhov = 'Ivan Gakhov'
ivan_nedelko = 'Ivan Nedelko'
ivo_karlovic = 'Ivo Karlovic'
jabor_al_mutawa = 'Jabor Al-Mutawa'
jacopo_berrettini = 'Jacopo Barrettini'
jack_draper = 'Jack Draper'
jack_mingjie_lin = 'Jack Mingjie Lin'
jack_sock = 'Jack Sock'
jacob_grills = 'Jacob Grills'
jakub_paul = 'Jakub Paul'
james_duckworth = 'James Duckworth'
james_ward = 'James Ward'
jamie_cerretani = 'Jamie Cerretani'
jan_choinski = 'Jan Choinski'
jan_lennard_struff = 'Jan-Lennard Struff'
janko_tipsarevic = 'Janko Tipsarevic'
jannik_sinner = 'Jannik Sinner'
jared_donaldson = 'Jarod Donaldson'
jared_hiltzik = 'Jared Hiltzik'
jason_jung = 'Jason Jung'
jason_kubler = 'Jason Kubler'
jaume_munar = 'Jaume Munar'
javier_barranco_cosano = 'Javier Barranco Cosano'
jay_clarke = 'Jay Clarke'
jc_aragone = 'JC Aragone'
jelle_sels = 'Jelle Sels'
jenson_brooksby = 'Jenson Brooksby'
jeremy_chardy = 'Jeremy Chardy'
jie_cui = 'Jie Cui'
jiri_vesely = 'Jiri Vesely'
jj_wolf = 'JJ Wolf'
jo_wilfried_tsonga = 'Jo-Wilfried Tsonga'
joao_domingues = 'Joao Domingues'
joao_menezes = 'Joao Menezes'
joao_sousa = 'Joao Sousa'
johan_nikles = 'Johan Nikles'
johannes_haerteis = 'Johannes Haerteis'
john_hallquist_lithen = 'John Hallquist Lithen'
john_isner = 'John Isner'
john_mcnally = 'John McNally'
john_millman = 'John Millman'
john_patrick_smith = 'John-Patrick Smith'
jonathan_eysseric = 'Jonathan Eysseric'
jonathan_gray = 'Jonathan Gray'
jordan_thompson = 'Jordan Thompson'
jorge_plans = 'Jorge Plans'
jozef_kovalik = 'Jozef Kovalik'
juan_alejandro_hernandez = 'Juan Alejandro Hernandez'
juan_bautista_otegui = 'Juan Bautista Otegui'
juan_ignacio_batalla = 'Juan Ignacio Batalla'
juan_ignacio_londero = 'Juan Ignacio Londero'
juan_martin_del_potro = 'Juan Martin del Potro'
juan_pablo_ficovich = 'Juan Pablo Ficovich'
juan_pablo_varillas = 'Juan Pablo Varillas'
julian_lenz = 'Julian Lenz'
julian_ocleppo = 'Julian Ocleppo'
julien_benneteau = 'Julien Benneteau'
julian_zlobinsky = 'Julian Zlobinsky'
jurgen_melzer = 'Jurgen Melzer'
jurgen_zopp = 'Jurgen Zopp'
jurij_rodionov = 'Jurij Rodionov'
kacper_zuk = 'Kacper Zuk'
kaichi_uchida = 'Kaichi Uchida'
kamil_majchrzak = 'Kamil Majchrzak'
karen_khachanov = 'Karen Khachanov'
karim_mohamed_maamoun = 'Karim-Mohamed Maamoun'
karl_friberg = 'Karl Friberg'
karl_poling = 'Karl Poling'
karue_sell = 'Karue Sell'
kei_nishikori = 'Key Nishikori'
kenny_de_schepper = 'Kenny de Schepper'
kevin_anderson = 'Kevin Anderson'
kevin_king = 'Kevin King'
kevin_krawietz = 'Kevin Krawietz'
kimmer_coppejans = 'Kimmer Coppejans'
kiranpal_pannu = 'Kiranpal Pannu'
koray_kirci = 'Koray Kirci'
kyle_edmund = 'Kyle Edmund'
lamine_ouahab = 'Lamine Ouahab'
laslo_djere = 'Laslo Djere'
laurynas_grigelis = 'Laurynas Grigelis'
leonardo_mayer = 'Leonardo Mayer'
liam_broady = 'Liam Broady'
lloyd_glasspool = 'Lloyd Glasspool'
lloyd_harris = 'Lloyd Harris'
lorenzo_giustino = 'Lorenzo Giustino'
lorenzo_musetti = 'Lorenzo Musetti'
lorenzo_sonego = 'Lorenzo Sonego'
louis_wessels = 'Louis Wessels'
luca_margaroli = 'Luca Margaroli'
luca_vanni = 'Luca Vanni'
lucas_catarina = 'Lucas Catarina'
lucas_gomez = 'Lucas Gomez'
lucas_miedler = 'Lucas Miedler'
lucas_pouille = 'Lucas Pouille'
lucas_renard = 'Lucas Renard'
luis_patino = 'Luis Patino'
lukas_lacko = 'Lukas Lacko'
lukas_rosol = 'Lukas Rosol'
luke_saville = 'Luke Saville'
mackenzie_mcdonald = 'Mackenzie McDonald'
malek_jaziri = 'Malek Jaziri'
manuel_guinard = 'Manuel Guinard'
marc_andrea_huesler = 'Marc-Andrea Huesler'
marc_polmans = 'Marc Polmans'
marcel_granollers = 'Marcel Granollers'
marcelo_arevalo = 'Marcelo Arevalo'
marcelo_tomas_barrios_vera = 'Marcelo Tomas Barrios Vera'
marco_cecchinato = 'Marco Cecchinato'
marco_trungelliti = 'Marco Trungelliti'
marcos_baghdatis = 'Marcos Baghdatis'
marcos_giron = 'Marcos Giron'
marek_jaloviec = 'Marek Jaloviec'
marin_cilic = 'Marin Cilic'
mario_vilella_martinez = 'Mario Vilella Martinez'
marius_copil = 'Marius Copil'
marko_miladinovic = 'Marko Miladinovic'
markus_eriksson = 'Markus Eriksson'
marsel_ilhan = 'Marsel Ilhan'
martin_cuevas = 'Martin Cuevas'
martin_klizan = 'Martin Klizan'
martin_redlicki = 'Martin Redlicki'
marton_fucsovics = 'Marton Fucsovics'
marvin_moeller = 'Marvin Moeller'
mate_valkusz = 'Mate Valkusz'
mateus_alves = 'Mateus Alves'
matteo_berrettini = 'Matteo Barrettini'
matteo_donati = 'Matteo Donati'
matteo_viola = 'Matteo Viola'
matthew_christopher_romios = 'Matthew Christopher Romios'
matthew_ebden = 'Matthew Ebden'
matthias_bachinger = 'Matthias Bachinger'
matthias_haim = 'Matthias Haim'
mats_moraing = 'Mats Moraing'
max_purcell = 'Max Purcell'
maverick_banes = 'Maverick Banes'
maxime_cressy = 'Maxime Cressy'
maxime_janvier = 'Maxime Janvier'
maximilian_marterer = 'Maximilian Marterer'
maximilian_neuchrist = 'Maximilian Neuchrist'
michael_mmoh = 'Michael Mmoh'
michael_venus = 'Michael Venus'
michail_pervolarakis = 'Michail Pervolarakis'
miguel_angel_reyes_varela = 'Miguel Angel Reyes-Varela'
mikael_torpegaard = 'Mikael Torpegaard'
mikael_ymer = 'Mikael Ymer'
mikhail_kukushkin = 'Mikhael Kukushkin'
mikhail_youzhny = 'Mikhail Youzhny'
miliaan_niesten = 'Miliaan Niesten'
miljan_zekic = 'Miljan Zekic'
milos_raonic = 'Milos Raonic'
miomir_kecmanovic = 'Miomir Kecmanovic'
mirza_basic = 'Mirza Basic'
mischa_zverev = 'Mischa Zverev'
mitchell_krueger = 'Mitchell Krueger'
mohamed_safwat = 'Mohamed Safwat'
moritz_thiem = 'Moritz Thiem'
mousa_shanan_zayed = 'Mousa Shanan Zayed'
mubarak_shannan_zayid = 'Mubarak Shannan Zayid'
natan_rodrigues = 'Natan Rodrigues'
nicholas_reyes = 'Nicholas Reyes'
nick_kyrgios = 'Nick Kyrgios'
nicola_kuhn = 'Nicola Kuhn'
nicolas_almagro = 'Nicolas Almagro'
nicolas_jarry = 'Nicolas Jarry'
nicolas_mahut = 'Nicolas Mahut'
nik_razborsek = 'Nik Razborsek'
niklas_guttau = 'Niklas Guttau'
nikola_milojevic = 'Nikola Milojevic'
nikoloz_basilashvili = 'Nikoloz Basilashvili'
nino_serdarusic = 'Nino Serdarusic'
noah_rubin = 'Noah Rubin'
norbert_gombos = 'Norbert Gombos'
novak_djokovic = 'Novak Djokovic'
oriol_roca_batalla = 'Oriol Roca Batalla'
orlando_luz = 'Orlando Luz'
oscar_otte = 'Oscar Otte'
pablo_andujar = 'Pablo Andujar'
pablo_carreno_busta = 'Pablo Carreno Busta'
pablo_cuevas = 'Pablo Cuevas'
paolo_lorenzi = 'Paolo Lorenzi'
paul_jubb = 'Paul Jubb'
patrick_kypson = 'Patrick Kypson'
pedja_krstin = 'Pedja Krstin'
pedro_cachin = 'Pedro Cachin'
pedro_martinez = 'Pedro Martinez'
pedro_sakamoto = 'Pedro Sakamoto'
pedro_sousa = 'Pedro Sousa'
peter_gojowczyk = 'Peter Gojowczyk'
peter_polansky = 'Peter Polansky'
peter_torebko = 'Peter Torebko'
petros_chrysochos = 'Petros Chrysochos'
philipp_kohlschreiber = 'Philipp Kohlschreiber'
philipp_oswald = 'Philipp Oswald'
pierre_hugues_herbert = 'Pierre Hugues Herbert'
prajnesh_gunneswaran = 'Prajnesh Gunneswaran'
preston_brown = 'Preston Brown'
quentin_halys = 'Quentin Halys'
radu_albot = 'Radu Albot'
rafael_matos = 'Rafael Matos'
rafael_nadal = 'Rafael Nadal'
ramkumar_ramanathan = 'Ramkumar Ramanathan'
raphael_baltensperger = 'Raphael Baltensperger'
rayane_roumane = 'Rayane Roumane'
raymond_sarmiento = 'Raymond Sarmiento'
reilly_opelka = 'Reilly Opelka'
renta_tokuda = 'Renta Tokuda'
renzo_olivo = 'Renzo Olivo'
ricardas_berankis = 'Ricardas Berankis'
ricardo_ojeda_lara = 'Ricardo Ojeda Lara'
riccardo_balzerani = 'Riccardo Balzerani'
riccardo_bellotti = 'Riccardo Bellotti'
richard_gasquet = 'Richard Gasquet'
rigele_te = 'Rigele Te'
robert_maciag = 'Robert Maciag'
roberto_bautista_agut = 'Roberto Bautista Agut'
roberto_carballes_baena = 'Roberto Carballes Baena'
roberto_cid_subervi = 'Roberto Cid Subervi'
roberto_marcora = 'Roberto Marcora'
roberto_ortega_olmedo = 'Roberto Ortega Olmedo'
roberto_quiroz = 'Roberto Quiroz'
robin_haase = 'Robin Haase'
roger_federer = 'Roger Federer'
rogerio_dutra_silva = 'Rogerio Dutra Silva'
romain_arneodo = 'Romain Arneodo'
roman_safiullin = 'Roman Safiullin'
roy_smith = 'Roy Smith'
ruben_bemelmans = 'Ruben Bemelmans'
rubin_statham = 'Rubin Statham'
rudolf_molleker = 'Rudolf Molleker'
runhao_hua = 'Runhao Hua'
ryan_harrison = 'Ryan Harrison'
ryan_nijboer = 'Ryan Nijboer'
ryan_shane = 'Ryan Shane'
saketh_myneni = 'Saketh Myneni'
salvatore_caruso = 'Salvatore Caruso'
sam_querrey = 'Sam Querrey'
sandro_ehrat = 'Sandro Ehrat'
sandro_kopp = 'Sandro Kopp'
santiago_giraldo = 'Santiago Giraldo'
sarp_agabigun = 'Sarp Agabigun'
sasi_kumar_mukund = 'Sasi Kumar Mukund'
scott_griekspoor = 'Scott Griekspoor'
sebastian_korda = 'Sebastian Korda'
sebastian_ofner = 'Sebastian Ofner'
sergio_gutierrez_ferrol = 'Sergio Gutierrez-Ferrol'
sergiy_stakhovsky = 'Sergiy Stakhovsky'
simon_yitbarek = 'Simon Yitbarek'
simon_carr = 'Simon Carr'
simone_bolelli = 'Simone Bolelli'
skander_mansouri = 'Skander Mansouri'
soonwoo_kwon = 'Soonwoo Kwon'
stan_wawrinka = 'Stan Wawrinka'
stefan_kozlov = 'Stefan Kozlov'
stefano_napolitano = 'Stefano Napolitano'
stefano_travaglia = 'Stefano Travaglia'
stefanos_tsitsipas = 'Stefanos Tsitsipas'
stephane_robert = 'Stephane Robert'
steve_darcis = 'Steve Darcis'
steve_johnson = 'Steve Johnson'
steven_diez = 'Steven Diez'
strong_kirchheimer = 'Strong Kirchheimer'
sumit_nagal = 'Sumit Nagal'
zachary_svajda = 'Zachary Svajda'
taha_baadi = 'Taha Baadi'
takanyi_garanganga = 'Takanyi Garanganga'
tallon_griekspoor = 'Tallon Griekspoor'
taro_daniel = 'Taro Daniel'
tatsuma_ito = 'Tatsuma Ito'
taylor_fritz = 'Taylor Fritz'
tennys_sandgren = 'Tennys Sandgren'
teymuraz_gabashvili = 'Teymuraz Gabashvili'
thai_son_kwiatkowski = 'Thai-Son Kwiatkowski'
thanasi_kokkinakis = 'Thanasi Kokkinakis'
thiago_monteiro = 'Thiago Monteiro'
thiago_seyboth_wild = 'Thiago Seyboth Wild'
thiemo_de_bakker = 'Thiemo de Bakker'
thomas_fabbiano = 'Thomas Fabbiano'
thomaz_bellucci = 'Thomaz Belluci'
tigre_hank = 'Tigre Hank'
tim_puetz = 'Tim Puetz'
tim_smyczek = 'Tim Smyczek'
tobias_kamke = 'Tobias Kamke'
tom_fawcett = 'Tom Fawcett'
tomas_berdych = 'Tomas Berdych'
tomislav_brkic = 'Tomislav Brkic'
tommy_paul = 'Tommy Paul'
tommy_robredo = 'Tommy Robredo'
trent_bryde = 'Trent Bryde'
tristan_lamasine = 'Tristan Lamasine'
tsung_hua_yang = 'Tsung Hua Yang'
ugo_humbert = 'Ugo Humbert'
uladzimir_ignatik = 'Uladzimir Ignatik'
ulises_blanch = 'Ulises Blanch'
vaclav_safranek = 'Vaclav Safranek'
vasek_pospisil = 'Vasek Pospisil'
victor_estrella_burgos = 'Victor Estrella Burgos'
viktor_durasovic = 'Viktor Durasovic'
viktor_galovic = 'Viktor Galovic'
viktor_troicki = 'Viktor Troicki'
vincent_millot = 'Vincent Millot'
william_blumberg = 'William Blumberg'
xin_gao = 'Xin Gao'
y_bai = 'Y Bai'
yanki_erel = 'Yanki Erel'
yann_marti = 'Yann Marti'
yannick_hanfmann = 'Yannick Hanfmann'
yannick_maden = 'Yannick Maden'
yannick_mertens = 'Yannick Mertens'
yasutaka_uchiyama = 'Yasutaka Uchiyama'
yecong_he = 'Yecong He'
yen_hsun_lu = 'Yen-Hsun Lu'
yibing_wu = 'Yibing Wu'
yoshihito_nishioka = 'Yoshihito Nishioka'
yosuke_watanuki = 'Yosuke Watanuki'
yuichi_sugita = 'Yuichi Sugita'
yuki_bhambri = 'Yuki Bhambri'
yusuke_takahashi = 'Yusuke Takahashi'
zane_khan = 'Zane Khan'
zdenek_kolar = 'Zdenek Kolar'
ze_zhang = 'Ze Zhang'
zhao_zhao = 'Zhao Zhao'
zhe_li = 'Zhe Li'
zhizhen_zhang = 'Zhizhen Zhang'
zihao_xia = 'Zihao Xia'
zizou_bergs = 'Zizou Bergs'
zsombor_piros = 'Zsombor Piros'
|
net_type = 'resnet' #type=str,
workers = 4 # type=int, help='number of data loading workers (default: 4)'
epochs = 2 # type=int, metavar='N', help='number of total epochs to run'
batch_size = 128 #type=int, help='mini-batch size (default: 256)'
lr = 0.1 #help='initial learning rate')
momentum = 0.9 # help='momentum')
weight_decay = 1e-4 # type=float, help='weight decay (default: 1e-4)')
print_freq = 1 #help='print frequency (default: 10)')
depth = 32 # help='depth of the network (default: 32)')
dataset = "../../Datasets/Kvasir - Aziz" # help='Folder containing the dataset')
verbose = False # help='to print the status at every iteration')
alpha = 300 # type=float, help='number of new channel increases per depth (default: 300)')
expname = 'TEST' # help='name of experiment')
beta = 0 # type=float, help='hyperparameter beta')
cutmix_prob = 0 # type=float, help='cutmix probability')
iterations = 2 # type=int, help='Number of experiments to run')
|
net_type = 'resnet'
workers = 4
epochs = 2
batch_size = 128
lr = 0.1
momentum = 0.9
weight_decay = 0.0001
print_freq = 1
depth = 32
dataset = '../../Datasets/Kvasir - Aziz'
verbose = False
alpha = 300
expname = 'TEST'
beta = 0
cutmix_prob = 0
iterations = 2
|
class ApiException(Exception):
pass
class DBConnectionIssue(ApiException):
def __str__(self):
return "Database Error: %s" % self.message
class DBError(ApiException):
def __init__(self, *args):
# args can have 1 or 2 parameters
try:
self.errno = args[0]
self.message = args[1]
except IndexError:
self.message = args[0]
def __str__(self):
return self.message
|
class Apiexception(Exception):
pass
class Dbconnectionissue(ApiException):
def __str__(self):
return 'Database Error: %s' % self.message
class Dberror(ApiException):
def __init__(self, *args):
try:
self.errno = args[0]
self.message = args[1]
except IndexError:
self.message = args[0]
def __str__(self):
return self.message
|
class Tweet:
def __init__(self, uuid, name, screen_name, tweet_id, tweet, date_time, retweet_count, favourites_count, link):
self.uuid = uuid
self.name = name
self.screen_name = screen_name
self.tweet_id = tweet_id
self.tweet = tweet
self.date_time = date_time
self.retweet_count = retweet_count
self.favourites_count = favourites_count
self.link = link
|
class Tweet:
def __init__(self, uuid, name, screen_name, tweet_id, tweet, date_time, retweet_count, favourites_count, link):
self.uuid = uuid
self.name = name
self.screen_name = screen_name
self.tweet_id = tweet_id
self.tweet = tweet
self.date_time = date_time
self.retweet_count = retweet_count
self.favourites_count = favourites_count
self.link = link
|
def part1():
x, y = 0, 0
for line in open("in.txt").read().splitlines():
direction, num = line.split()
num = int(num)
if direction == "forward":
x += num
elif direction == "down":
y += num
elif direction == "up":
y -= num
print(x * y)
part1()
|
def part1():
(x, y) = (0, 0)
for line in open('in.txt').read().splitlines():
(direction, num) = line.split()
num = int(num)
if direction == 'forward':
x += num
elif direction == 'down':
y += num
elif direction == 'up':
y -= num
print(x * y)
part1()
|
arr = []
for arr_i in range(6):
arr_t = [int(arr_temp) for arr_temp in input().strip().split(' ')]
arr.append(arr_t)
smax = -9 * 7
for row in range(len(arr) - 2):
for column in range(len(arr[row]) - 2):
tl = arr[row][column]
tc = arr[row][column + 1]
tr = arr[row][column + 2]
mc = arr[row + 1][column + 1]
bl = arr[row + 2][column]
bc = arr[row + 2][column + 1]
br = arr[row + 2][column + 2]
s = tl + tc + tr + mc + bl + bc + br
smax = max(s, smax)
print(smax)
|
arr = []
for arr_i in range(6):
arr_t = [int(arr_temp) for arr_temp in input().strip().split(' ')]
arr.append(arr_t)
smax = -9 * 7
for row in range(len(arr) - 2):
for column in range(len(arr[row]) - 2):
tl = arr[row][column]
tc = arr[row][column + 1]
tr = arr[row][column + 2]
mc = arr[row + 1][column + 1]
bl = arr[row + 2][column]
bc = arr[row + 2][column + 1]
br = arr[row + 2][column + 2]
s = tl + tc + tr + mc + bl + bc + br
smax = max(s, smax)
print(smax)
|
class LSystem(object):
def __init__(self):
self.steps = 0
self.axiom = "F"
self.rule = "F+F-F"
self.startLength = 190.0
self.theta = radians(120.0)
self.reset()
def reset(self):
self.production = self.axiom
self.drawLength = self.startLength
self.generations = 0
def getAge(self):
return self.generations
def render(self):
translate(width / 2, height / 2)
self.steps += 5
if self.steps > len(self.production)():
self.steps = len(self.production)()
for i in range(self.steps):
step = self.production.charAt(i)
if step == 'F':
rect(0, 0, -self.drawLength, -self.drawLength)
noFill()
translate(0, -self.drawLength)
elif step == '+':
rotate(self.theta)
elif step == '-':
rotate(-self.theta)
elif step == '[':
pushMatrix()
elif step == ']':
popMatrix()
def simulate(self, gen):
while self.getAge() < gen:
self.production = self.iterate(self.production, self.rule)
def iterate(self, prod_, rule_):
self.drawLength = self.drawLength * 0.6
self.generations += 1
newProduction = prod_
newProduction = newProduction.replaceAll("F", rule_)
return newProduction
|
class Lsystem(object):
def __init__(self):
self.steps = 0
self.axiom = 'F'
self.rule = 'F+F-F'
self.startLength = 190.0
self.theta = radians(120.0)
self.reset()
def reset(self):
self.production = self.axiom
self.drawLength = self.startLength
self.generations = 0
def get_age(self):
return self.generations
def render(self):
translate(width / 2, height / 2)
self.steps += 5
if self.steps > len(self.production)():
self.steps = len(self.production)()
for i in range(self.steps):
step = self.production.charAt(i)
if step == 'F':
rect(0, 0, -self.drawLength, -self.drawLength)
no_fill()
translate(0, -self.drawLength)
elif step == '+':
rotate(self.theta)
elif step == '-':
rotate(-self.theta)
elif step == '[':
push_matrix()
elif step == ']':
pop_matrix()
def simulate(self, gen):
while self.getAge() < gen:
self.production = self.iterate(self.production, self.rule)
def iterate(self, prod_, rule_):
self.drawLength = self.drawLength * 0.6
self.generations += 1
new_production = prod_
new_production = newProduction.replaceAll('F', rule_)
return newProduction
|
threshold = 0
today = "2020-06-01"
github_tokens = []
clone_all = True
delete_after = False
FEATURES = ['architecture',
'management'
'community',
'continuous_integration',
'documentation',
'history',
'license',
'unit_test']
|
threshold = 0
today = '2020-06-01'
github_tokens = []
clone_all = True
delete_after = False
features = ['architecture', 'managementcommunity', 'continuous_integration', 'documentation', 'history', 'license', 'unit_test']
|
frase = 'Curso em Video Python'
print(frase[3:13])
print(frase[1:15])
print(frase[2:18:2])
print(frase[::3])
print(frase.replace('Python','Android'))
print(frase.split())
print(len(frase))
print(frase.count('o'))
print(frase.upper().split())
print(frase.lower().find('em'))
|
frase = 'Curso em Video Python'
print(frase[3:13])
print(frase[1:15])
print(frase[2:18:2])
print(frase[::3])
print(frase.replace('Python', 'Android'))
print(frase.split())
print(len(frase))
print(frase.count('o'))
print(frase.upper().split())
print(frase.lower().find('em'))
|
str_original = 'Hello'
bytes_encoded = str_original.encode(encoding='utf-8')
print(type(bytes_encoded))
str_decoded = bytes_encoded.decode()
print(type(str_decoded))
print('Encoded bytes =', bytes_encoded)
print('Decoded String =', str_decoded)
print('str_original equals str_decoded =', str_original == str_decoded)
str_original = input('Please enter string data:\n')
bytes_encoded = str_original.encode()
str_decoded = bytes_encoded.decode()
print('Encoded bytes =', bytes_encoded)
print('Decoded String =', str_decoded)
print('str_original equals str_decoded =', str_original == str_decoded)
|
str_original = 'Hello'
bytes_encoded = str_original.encode(encoding='utf-8')
print(type(bytes_encoded))
str_decoded = bytes_encoded.decode()
print(type(str_decoded))
print('Encoded bytes =', bytes_encoded)
print('Decoded String =', str_decoded)
print('str_original equals str_decoded =', str_original == str_decoded)
str_original = input('Please enter string data:\n')
bytes_encoded = str_original.encode()
str_decoded = bytes_encoded.decode()
print('Encoded bytes =', bytes_encoded)
print('Decoded String =', str_decoded)
print('str_original equals str_decoded =', str_original == str_decoded)
|
def mst_prim(G, w, r):
for u in G.V:
u.key = float('inf')
u.p = None
r.key = 0
Q = G.V
while len(Q) != 0:
u = extract_min(Q)
for i in range(n):
if G.matrix[u][i] == 1 and i in Q and w(u, i) < v.key:
i.p = u
i.key = w(u, i)
|
def mst_prim(G, w, r):
for u in G.V:
u.key = float('inf')
u.p = None
r.key = 0
q = G.V
while len(Q) != 0:
u = extract_min(Q)
for i in range(n):
if G.matrix[u][i] == 1 and i in Q and (w(u, i) < v.key):
i.p = u
i.key = w(u, i)
|
lr = 0.0001
dropout_rate = 0.5
max_epoch = 3136 #3317
batch_size = 4096
w = 19
u = 9
num_hidden_1 = 512
num_hidden_2 = 512
|
lr = 0.0001
dropout_rate = 0.5
max_epoch = 3136
batch_size = 4096
w = 19
u = 9
num_hidden_1 = 512
num_hidden_2 = 512
|
#
# PySNMP MIB module TPLINK-TC-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TPLINK-TC-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:16:42 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")
ConstraintsIntersection, ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
iso, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, ModuleIdentity, IpAddress, MibIdentifier, NotificationType, ObjectIdentity, Gauge32, Bits, Counter32, Counter64, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "ModuleIdentity", "IpAddress", "MibIdentifier", "NotificationType", "ObjectIdentity", "Gauge32", "Bits", "Counter32", "Counter64", "Unsigned32")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
class TPRowStatus(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 4, 6))
namedValues = NamedValues(("active", 1), ("createAndGo", 4), ("destroy", 6))
class TPMacAddress(TextualConvention, OctetString):
status = 'current'
displayHint = '1x-1x-1x-1x-1x-1x'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(6, 6)
fixedLength = 6
mibBuilder.exportSymbols("TPLINK-TC-MIB", TPMacAddress=TPMacAddress, TPRowStatus=TPRowStatus)
|
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, constraints_union, value_size_constraint, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(iso, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, module_identity, ip_address, mib_identifier, notification_type, object_identity, gauge32, bits, counter32, counter64, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'ModuleIdentity', 'IpAddress', 'MibIdentifier', 'NotificationType', 'ObjectIdentity', 'Gauge32', 'Bits', 'Counter32', 'Counter64', 'Unsigned32')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
class Tprowstatus(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 4, 6))
named_values = named_values(('active', 1), ('createAndGo', 4), ('destroy', 6))
class Tpmacaddress(TextualConvention, OctetString):
status = 'current'
display_hint = '1x-1x-1x-1x-1x-1x'
subtype_spec = OctetString.subtypeSpec + value_size_constraint(6, 6)
fixed_length = 6
mibBuilder.exportSymbols('TPLINK-TC-MIB', TPMacAddress=TPMacAddress, TPRowStatus=TPRowStatus)
|
# Author : Guru prasad Raju
''' This program will print index of each characters in the string'''
def givenString(new_string):
for i in range(len(new_string)):
print("index[", i, "]", new_string[i])
givenString("Life")
|
""" This program will print index of each characters in the string"""
def given_string(new_string):
for i in range(len(new_string)):
print('index[', i, ']', new_string[i])
given_string('Life')
|
[ ## this file was manually modified by jt
{
'functor' : {
'description' :['This function is mainly for inner usage and allows',
'speedy writing of \c next, \c nextafter and like functions','\par',
'It transforms a floating point value in a pattern of bits',
'stored in an integer with different formulas according to',
'the floating point sign (it is the converse of bitfloating)'],
'return' : ['always an integer value'],
'module' : 'boost',
'arity' : '1',
'call_types' : [],
'ret_arity' : '0',
'rturn' : {
'default' : 'typename boost::dispatch::meta::as_integer<T>::type',
},
'simd_types' : ['real_'],
'type_defs' : [],
'types' : ['real_'],
},
'info' : 'manually modified',
'unit' : {
'global_header' : {
'first_stamp' : 'modified by jt the 04/12/2010',
'included' : ['#include <boost/simd/include/functions/bitfloating.hpp>', '#include <boost/dispatch/meta/as_integer.hpp>'],
'no_ulp' : 'True',
'notes' : [],
'stamp' : 'modified by jt the 12/12/2010',
},
'ranges' : {
'real_' : [['T(-10)', 'T(10)']],
},
'specific_values' : {
},
'verif_test' : {
'property_call' : {
'default' : ['boost::simd::bitfloating(boost::simd::bitinteger(a0))'],
},
'property_value' : {
'default' : ['a0'],
},
'ulp_thresh' : {
'default' : ['0'],
},
},
},
'version' : '0.1',
},
]
|
[{'functor': {'description': ['This function is mainly for inner usage and allows', 'speedy writing of \\c next, \\c nextafter and like functions', '\\par', 'It transforms a floating point value in a pattern of bits', 'stored in an integer with different formulas according to', 'the floating point sign (it is the converse of bitfloating)'], 'return': ['always an integer value'], 'module': 'boost', 'arity': '1', 'call_types': [], 'ret_arity': '0', 'rturn': {'default': 'typename boost::dispatch::meta::as_integer<T>::type'}, 'simd_types': ['real_'], 'type_defs': [], 'types': ['real_']}, 'info': 'manually modified', 'unit': {'global_header': {'first_stamp': 'modified by jt the 04/12/2010', 'included': ['#include <boost/simd/include/functions/bitfloating.hpp>', '#include <boost/dispatch/meta/as_integer.hpp>'], 'no_ulp': 'True', 'notes': [], 'stamp': 'modified by jt the 12/12/2010'}, 'ranges': {'real_': [['T(-10)', 'T(10)']]}, 'specific_values': {}, 'verif_test': {'property_call': {'default': ['boost::simd::bitfloating(boost::simd::bitinteger(a0))']}, 'property_value': {'default': ['a0']}, 'ulp_thresh': {'default': ['0']}}}, 'version': '0.1'}]
|
# -*- coding: utf-8 -*-
def mean(x):
return sum(x) / len(x)
|
def mean(x):
return sum(x) / len(x)
|
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# 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.
'''
NIST physical constants
https://physics.nist.gov/cuu/Constants/
https://physics.nist.gov/cuu/Constants/Table/allascii.txt
'''
LIGHT_SPEED = 137.03599967994 # http://physics.nist.gov/cgi-bin/cuu/Value?alph
# BOHR = .529 177 210 92(17) e-10m # http://physics.nist.gov/cgi-bin/cuu/Value?bohrrada0
BOHR = 0.52917721092 # Angstroms
BOHR_SI = BOHR * 1e-10
ALPHA = 7.2973525664e-3 # http://physics.nist.gov/cgi-bin/cuu/Value?alph
G_ELECTRON = 2.00231930436182 # http://physics.nist.gov/cgi-bin/cuu/Value?gem
E_MASS = 9.10938356e-31 # kg https://physics.nist.gov/cgi-bin/cuu/Value?me
AVOGADRO = 6.022140857e23 # https://physics.nist.gov/cgi-bin/cuu/Value?na
ATOMIC_MASS = 1e-3/AVOGADRO
PROTON_MASS = 1.672621898e-27 # kg https://physics.nist.gov/cgi-bin/cuu/Value?mp
PROTON_MASS_AU = PROTON_MASS/ATOMIC_MASS
BOHR_MAGNETON = 927.4009994e-26 # J/T http://physics.nist.gov/cgi-bin/cuu/Value?mub
NUC_MAGNETON = BOHR_MAGNETON * E_MASS / PROTON_MASS
PLANCK = 6.626070040e-34 # J*s http://physics.nist.gov/cgi-bin/cuu/Value?h
HBAR = PLANCK/(2*3.141592653589793) # https://physics.nist.gov/cgi-bin/cuu/Value?hbar
#HARTREE2J = 4.359744650e-18 # J https://physics.nist.gov/cgi-bin/cuu/Value?hrj
HARTREE2J = HBAR**2/(E_MASS*BOHR_SI**2)
HARTREE2EV = 27.21138602 # eV https://physics.nist.gov/cgi-bin/cuu/Value?threv
E_CHARGE = 1.6021766208e-19 # C https://physics.nist.gov/cgi-bin/cuu/Value?e
LIGHT_SPEED_SI = 299792458 # https://physics.nist.gov/cgi-bin/cuu/Value?c
DEBYE = 3.335641e-30 # C*m = 1e-18/LIGHT_SPEED_SI https://cccbdb.nist.gov/debye.asp
AU2DEBYE = E_CHARGE * BOHR*1e-10 / DEBYE # 2.541746
AUEFG = 9.71736235660e21 # V/m^2 https://physics.nist.gov/cgi-bin/cuu/Value?auefg
AU2TESLA = HBAR/(BOHR_SI**2 * E_CHARGE)
BOLTZMANN = 1.38064852e-23 # J/K https://physics.nist.gov/cgi-bin/cuu/Value?k
HARTREE2WAVENUMBER = 1e-2 * HARTREE2J / (LIGHT_SPEED_SI * PLANCK) # 2.194746313702e5
|
"""
NIST physical constants
https://physics.nist.gov/cuu/Constants/
https://physics.nist.gov/cuu/Constants/Table/allascii.txt
"""
light_speed = 137.03599967994
bohr = 0.52917721092
bohr_si = BOHR * 1e-10
alpha = 0.0072973525664
g_electron = 2.00231930436182
e_mass = 9.10938356e-31
avogadro = 6.022140857e+23
atomic_mass = 0.001 / AVOGADRO
proton_mass = 1.672621898e-27
proton_mass_au = PROTON_MASS / ATOMIC_MASS
bohr_magneton = 9.274009994e-24
nuc_magneton = BOHR_MAGNETON * E_MASS / PROTON_MASS
planck = 6.62607004e-34
hbar = PLANCK / (2 * 3.141592653589793)
hartree2_j = HBAR ** 2 / (E_MASS * BOHR_SI ** 2)
hartree2_ev = 27.21138602
e_charge = 1.6021766208e-19
light_speed_si = 299792458
debye = 3.335641e-30
au2_debye = E_CHARGE * BOHR * 1e-10 / DEBYE
auefg = 9.7173623566e+21
au2_tesla = HBAR / (BOHR_SI ** 2 * E_CHARGE)
boltzmann = 1.38064852e-23
hartree2_wavenumber = 0.01 * HARTREE2J / (LIGHT_SPEED_SI * PLANCK)
|
class Agent(object):
standard_key_list = []
def __init__(self, env, config, model=None):
self.env = env
self.config = config
self.model = model
self.state = None
self.action = None
self.reward = None
self.reward_list = None
pass
def observe(self, *args, **kwargs):
pass
def predict(self, *args, **kwargs):
pass
def update(self, *args, **kwargs):
pass
def play(self, *args, **kwargs):
pass
|
class Agent(object):
standard_key_list = []
def __init__(self, env, config, model=None):
self.env = env
self.config = config
self.model = model
self.state = None
self.action = None
self.reward = None
self.reward_list = None
pass
def observe(self, *args, **kwargs):
pass
def predict(self, *args, **kwargs):
pass
def update(self, *args, **kwargs):
pass
def play(self, *args, **kwargs):
pass
|
# Beer brands that are not craft beers
MAINSTREAM_BEER_BRANDS = {
'abc',
'anchor',
'asahi',
'budweiser',
'carlsberg',
'erdinger',
'guinness',
'heineken',
'hoegaarden',
'kirin',
'krausebourg'
'kronenbourg',
'royal stout',
'sapporo',
'skol',
'somersby',
'strongbow',
'tiger',
}
# Keywords for non-beer items such as merchandizes or keg
SKIPPED_ITEMS = {
'cap',
'gift',
'glass',
'keg',
'litre',
'tee',
}
|
mainstream_beer_brands = {'abc', 'anchor', 'asahi', 'budweiser', 'carlsberg', 'erdinger', 'guinness', 'heineken', 'hoegaarden', 'kirin', 'krausebourgkronenbourg', 'royal stout', 'sapporo', 'skol', 'somersby', 'strongbow', 'tiger'}
skipped_items = {'cap', 'gift', 'glass', 'keg', 'litre', 'tee'}
|
class History(object):
def __init__(self, intensity=2):
self.hist = []
self.read_count = 0
self.intensity = intensity
def __len__(self):
return len(self.hist)
def add(self, solution):
self.hist.append(solution)
def get(self):
self.read_count += 1
if self.read_count % self.intensity != 0:
res = self.hist[-1]
self.hist = self.hist[:-1]
else:
res = self.hist[0]
self.hist = self.hist[1:]
return res
|
class History(object):
def __init__(self, intensity=2):
self.hist = []
self.read_count = 0
self.intensity = intensity
def __len__(self):
return len(self.hist)
def add(self, solution):
self.hist.append(solution)
def get(self):
self.read_count += 1
if self.read_count % self.intensity != 0:
res = self.hist[-1]
self.hist = self.hist[:-1]
else:
res = self.hist[0]
self.hist = self.hist[1:]
return res
|
coordinates_E0E1E1 = ((123, 106),
(123, 108), (123, 109), (123, 110), (123, 112), (124, 106), (124, 110), (124, 125), (124, 127), (124, 128), (124, 129), (124, 130), (124, 132), (125, 106), (125, 108), (125, 110), (125, 126), (125, 132), (126, 106), (126, 109), (126, 126), (126, 128), (126, 129), (126, 130), (126, 132), (127, 85), (127, 99), (127, 100), (127, 106), (127, 109), (127, 126), (127, 128), (127, 129), (127, 130), (127, 132), (128, 83), (128, 86), (128, 99), (128, 101), (128, 106), (128, 109), (128, 126), (128, 128), (128, 129), (128, 130), (128, 131), (128, 133), (129, 71), (129, 73), (129, 74), (129, 76), (129, 82), (129, 86), (129, 91), (129, 99), (129, 102), (129, 106), (129, 109), (129, 124), (129, 126), (129, 127), (129, 128), (129, 129), (129, 130), (129, 131), (129, 133), (130, 72), (130, 78), (130, 79), (130, 80), (130, 83), (130, 84), (130, 85),
(130, 91), (130, 99), (130, 101), (130, 104), (130, 106), (130, 123), (130, 126), (130, 127), (130, 131), (130, 133), (131, 74), (131, 75), (131, 82), (131, 83), (131, 84), (131, 85), (131, 86), (131, 92), (131, 99), (131, 100), (131, 101), (131, 102), (131, 106), (131, 108), (131, 123), (131, 125), (131, 128), (131, 129), (131, 133), (132, 77), (132, 78), (132, 79), (132, 80), (132, 81), (132, 82), (132, 83), (132, 84), (132, 85), (132, 86), (132, 87), (132, 88), (132, 89), (132, 90), (132, 92), (132, 99), (132, 101), (132, 102), (132, 103), (132, 104), (132, 105), (132, 107), (132, 122), (132, 124), (132, 125), (132, 127), (132, 131), (132, 134), (133, 78), (133, 80), (133, 81), (133, 82), (133, 83), (133, 84), (133, 85), (133, 86), (133, 87), (133, 88), (133, 89), (133, 90), (133, 91), (133, 93), (133, 99),
(133, 101), (133, 102), (133, 103), (133, 104), (133, 106), (133, 121), (133, 123), (133, 124), (133, 126), (133, 132), (133, 134), (134, 78), (134, 80), (134, 81), (134, 82), (134, 83), (134, 84), (134, 85), (134, 86), (134, 87), (134, 88), (134, 89), (134, 90), (134, 91), (134, 92), (134, 98), (134, 99), (134, 100), (134, 101), (134, 102), (134, 103), (134, 104), (134, 106), (134, 120), (134, 122), (134, 123), (134, 125), (134, 132), (134, 134), (135, 78), (135, 80), (135, 81), (135, 82), (135, 83), (135, 84), (135, 85), (135, 86), (135, 87), (135, 88), (135, 89), (135, 90), (135, 91), (135, 92), (135, 93), (135, 96), (135, 97), (135, 99), (135, 100), (135, 101), (135, 102), (135, 103), (135, 104), (135, 106), (135, 119), (135, 121), (135, 122), (135, 124), (135, 132), (135, 134), (136, 78), (136, 80), (136, 81),
(136, 82), (136, 83), (136, 84), (136, 85), (136, 86), (136, 87), (136, 88), (136, 89), (136, 90), (136, 91), (136, 92), (136, 93), (136, 94), (136, 95), (136, 98), (136, 99), (136, 100), (136, 101), (136, 102), (136, 103), (136, 104), (136, 105), (136, 107), (136, 118), (136, 120), (136, 121), (136, 123), (136, 132), (136, 134), (137, 77), (137, 79), (137, 80), (137, 81), (137, 82), (137, 83), (137, 84), (137, 85), (137, 86), (137, 87), (137, 88), (137, 89), (137, 90), (137, 91), (137, 92), (137, 93), (137, 94), (137, 95), (137, 96), (137, 97), (137, 98), (137, 99), (137, 100), (137, 101), (137, 102), (137, 103), (137, 104), (137, 106), (137, 117), (137, 119), (137, 120), (137, 121), (137, 123), (137, 132), (137, 134), (138, 76), (138, 78), (138, 79), (138, 80), (138, 81), (138, 87), (138, 88), (138, 89),
(138, 90), (138, 91), (138, 92), (138, 93), (138, 94), (138, 95), (138, 96), (138, 97), (138, 98), (138, 99), (138, 100), (138, 101), (138, 102), (138, 103), (138, 104), (138, 106), (138, 116), (138, 118), (138, 119), (138, 120), (138, 122), (138, 132), (138, 134), (139, 74), (139, 77), (139, 83), (139, 84), (139, 85), (139, 86), (139, 91), (139, 92), (139, 93), (139, 94), (139, 95), (139, 96), (139, 97), (139, 98), (139, 99), (139, 100), (139, 101), (139, 102), (139, 103), (139, 104), (139, 106), (139, 117), (139, 118), (139, 119), (139, 120), (139, 122), (139, 132), (139, 134), (139, 136), (140, 73), (140, 78), (140, 79), (140, 80), (140, 81), (140, 87), (140, 89), (140, 90), (140, 91), (140, 92), (140, 93), (140, 94), (140, 95), (140, 96), (140, 97), (140, 98), (140, 99), (140, 100), (140, 101), (140, 102),
(140, 103), (140, 104), (140, 106), (140, 115), (140, 117), (140, 118), (140, 121), (140, 132), (140, 136), (141, 72), (141, 77), (141, 91), (141, 93), (141, 94), (141, 95), (141, 96), (141, 97), (141, 98), (141, 99), (141, 100), (141, 101), (141, 102), (141, 103), (141, 104), (141, 105), (141, 107), (141, 114), (141, 116), (141, 119), (141, 133), (141, 136), (142, 73), (142, 75), (142, 92), (142, 94), (142, 95), (142, 96), (142, 97), (142, 98), (142, 99), (142, 100), (142, 101), (142, 102), (142, 103), (142, 104), (142, 105), (142, 106), (142, 109), (142, 110), (142, 111), (142, 112), (142, 115), (142, 118), (142, 133), (142, 136), (143, 92), (143, 93), (143, 94), (143, 95), (143, 96), (143, 97), (143, 98), (143, 99), (143, 100), (143, 101), (143, 102), (143, 103), (143, 104), (143, 105), (143, 106), (143, 107), (143, 111),
(143, 114), (143, 116), (143, 137), (144, 92), (144, 93), (144, 94), (144, 95), (144, 96), (144, 97), (144, 98), (144, 99), (144, 100), (144, 101), (144, 102), (144, 103), (144, 104), (144, 105), (144, 106), (144, 107), (144, 108), (144, 109), (144, 110), (144, 111), (144, 112), (144, 113), (144, 115), (144, 137), (145, 92), (145, 94), (145, 95), (145, 96), (145, 97), (145, 98), (145, 99), (145, 100), (145, 101), (145, 102), (145, 103), (145, 104), (145, 105), (145, 106), (145, 107), (145, 108), (145, 109), (145, 110), (145, 111), (145, 112), (145, 114), (145, 137), (146, 91), (146, 93), (146, 94), (146, 95), (146, 96), (146, 97), (146, 98), (146, 99), (146, 100), (146, 101), (146, 102), (146, 103), (146, 104), (146, 105), (146, 106), (146, 107), (146, 108), (146, 109), (146, 110), (146, 111), (146, 112), (146, 114), (146, 137),
(146, 138), (147, 90), (147, 92), (147, 93), (147, 94), (147, 95), (147, 96), (147, 97), (147, 98), (147, 99), (147, 100), (147, 101), (147, 102), (147, 103), (147, 104), (147, 105), (147, 106), (147, 107), (147, 108), (147, 109), (147, 110), (147, 111), (147, 113), (147, 137), (147, 138), (148, 86), (148, 87), (148, 88), (148, 89), (148, 91), (148, 92), (148, 93), (148, 94), (148, 95), (148, 96), (148, 97), (148, 98), (148, 99), (148, 100), (148, 101), (148, 102), (148, 103), (148, 104), (148, 105), (148, 106), (148, 107), (148, 108), (148, 109), (148, 110), (148, 111), (148, 113), (148, 136), (148, 139), (148, 155), (148, 156), (148, 157), (148, 159), (149, 84), (149, 90), (149, 91), (149, 92), (149, 93), (149, 94), (149, 95), (149, 96), (149, 97), (149, 98), (149, 99), (149, 100), (149, 101), (149, 102), (149, 103),
(149, 104), (149, 105), (149, 106), (149, 107), (149, 108), (149, 109), (149, 110), (149, 111), (149, 113), (149, 136), (149, 139), (149, 153), (149, 160), (150, 85), (150, 86), (150, 87), (150, 88), (150, 89), (150, 90), (150, 91), (150, 92), (150, 93), (150, 94), (150, 95), (150, 96), (150, 97), (150, 98), (150, 100), (150, 101), (150, 102), (150, 103), (150, 104), (150, 105), (150, 106), (150, 107), (150, 108), (150, 109), (150, 110), (150, 111), (150, 112), (150, 114), (150, 135), (150, 137), (150, 138), (150, 139), (150, 140), (150, 152), (150, 155), (150, 156), (150, 157), (150, 158), (150, 160), (151, 87), (151, 89), (151, 90), (151, 91), (151, 92), (151, 93), (151, 94), (151, 95), (151, 96), (151, 99), (151, 101), (151, 102), (151, 103), (151, 104), (151, 105), (151, 106), (151, 107), (151, 108), (151, 109), (151, 110),
(151, 111), (151, 112), (151, 113), (151, 116), (151, 134), (151, 136), (151, 137), (151, 138), (151, 140), (151, 152), (151, 154), (151, 155), (151, 156), (151, 157), (151, 159), (152, 87), (152, 89), (152, 90), (152, 91), (152, 92), (152, 93), (152, 94), (152, 95), (152, 97), (152, 102), (152, 103), (152, 104), (152, 105), (152, 106), (152, 107), (152, 108), (152, 109), (152, 110), (152, 111), (152, 112), (152, 113), (152, 114), (152, 118), (152, 130), (152, 131), (152, 132), (152, 135), (152, 136), (152, 137), (152, 138), (152, 139), (152, 141), (152, 151), (152, 153), (152, 154), (152, 155), (152, 156), (152, 158), (153, 86), (153, 88), (153, 89), (153, 90), (153, 91), (153, 92), (153, 93), (153, 94), (153, 96), (153, 101), (153, 103), (153, 104), (153, 105), (153, 106), (153, 107), (153, 108), (153, 109), (153, 110), (153, 111),
(153, 112), (153, 113), (153, 114), (153, 115), (153, 116), (153, 119), (153, 120), (153, 121), (153, 122), (153, 123), (153, 124), (153, 125), (153, 126), (153, 127), (153, 128), (153, 129), (153, 134), (153, 145), (153, 151), (153, 153), (153, 154), (153, 155), (153, 157), (154, 86), (154, 90), (154, 91), (154, 92), (154, 93), (154, 95), (154, 102), (154, 104), (154, 105), (154, 106), (154, 107), (154, 108), (154, 109), (154, 110), (154, 111), (154, 112), (154, 113), (154, 130), (154, 131), (154, 132), (154, 135), (154, 136), (154, 137), (154, 138), (154, 139), (154, 140), (154, 141), (154, 143), (154, 146), (154, 147), (154, 150), (154, 152), (154, 153), (154, 154), (154, 156), (155, 91), (155, 92), (155, 94), (155, 102), (155, 104), (155, 105), (155, 106), (155, 107), (155, 108), (155, 109), (155, 110), (155, 111), (155, 112), (155, 113),
(155, 115), (155, 116), (155, 117), (155, 118), (155, 119), (155, 122), (155, 123), (155, 124), (155, 125), (155, 126), (155, 127), (155, 128), (155, 129), (155, 130), (155, 133), (155, 145), (155, 148), (155, 151), (155, 152), (155, 153), (155, 154), (155, 156), (156, 90), (156, 92), (156, 94), (156, 102), (156, 104), (156, 105), (156, 106), (156, 107), (156, 108), (156, 109), (156, 110), (156, 111), (156, 113), (156, 120), (156, 124), (156, 125), (156, 126), (156, 127), (156, 128), (156, 129), (156, 132), (156, 147), (156, 150), (156, 151), (156, 152), (156, 153), (156, 154), (156, 156), (157, 91), (157, 94), (157, 103), (157, 105), (157, 106), (157, 107), (157, 108), (157, 109), (157, 110), (157, 111), (157, 113), (157, 122), (157, 126), (157, 127), (157, 130), (157, 147), (157, 149), (157, 150), (157, 151), (157, 152), (157, 153), (157, 154),
(157, 156), (158, 91), (158, 94), (158, 103), (158, 105), (158, 106), (158, 107), (158, 108), (158, 109), (158, 110), (158, 112), (158, 124), (158, 129), (158, 148), (158, 150), (158, 151), (158, 152), (158, 153), (158, 154), (158, 156), (159, 92), (159, 94), (159, 104), (159, 106), (159, 107), (159, 108), (159, 109), (159, 110), (159, 112), (159, 126), (159, 127), (159, 148), (159, 150), (159, 151), (159, 152), (159, 153), (159, 154), (159, 156), (160, 93), (160, 94), (160, 104), (160, 106), (160, 107), (160, 108), (160, 109), (160, 111), (160, 147), (160, 149), (160, 150), (160, 151), (160, 152), (160, 153), (160, 154), (160, 155), (160, 157), (161, 93), (161, 94), (161, 104), (161, 106), (161, 107), (161, 108), (161, 109), (161, 111), (161, 147), (161, 149), (161, 150), (161, 151), (161, 152), (161, 153), (161, 154), (161, 155), (161, 158),
(162, 93), (162, 94), (162, 105), (162, 107), (162, 108), (162, 109), (162, 111), (162, 112), (162, 146), (162, 149), (162, 150), (162, 151), (162, 152), (162, 153), (162, 156), (162, 157), (162, 159), (163, 105), (163, 107), (163, 108), (163, 109), (163, 110), (163, 112), (163, 148), (163, 150), (163, 151), (163, 152), (163, 154), (163, 155), (163, 159), (163, 160), (164, 105), (164, 107), (164, 108), (164, 109), (164, 110), (164, 112), (164, 149), (164, 151), (164, 153), (164, 160), (164, 161), (165, 106), (165, 108), (165, 109), (165, 110), (165, 111), (165, 113), (165, 150), (165, 152), (165, 161), (165, 162), (166, 106), (166, 112), (166, 114), (166, 142), (166, 149), (166, 151), (166, 161), (167, 106), (167, 108), (167, 109), (167, 110), (167, 111), (167, 115), (167, 141), (167, 149), (167, 150), (167, 161), (167, 163), (168, 105), (168, 106),
(168, 112), (168, 113), (168, 116), (168, 140), (168, 141), (168, 149), (168, 161), (168, 162), (169, 105), (169, 115), (169, 117), (169, 139), (169, 141), (169, 149), (169, 161), (170, 104), (170, 116), (170, 118), (170, 138), (170, 140), (170, 149), (170, 161), (171, 98), (171, 99), (171, 100), (171, 101), (171, 102), (171, 104), (171, 118), (171, 120), (171, 138), (171, 139), (171, 149), (172, 99), (172, 103), (172, 120), (172, 122), (172, 137), (172, 138), (172, 149), (172, 150), (173, 101), (173, 103), (173, 122), (173, 149), (173, 150), (174, 102), (174, 103), (174, 149), (175, 103), (175, 104), (175, 133), (175, 149), (176, 105), (176, 132), (176, 149), (177, 106), (177, 107), (177, 131), (177, 148), (178, 107), (178, 108), (178, 147), (179, 146), )
coordinates_E1E1E1 = ((65, 113),
(65, 116), (66, 107), (66, 109), (66, 110), (66, 111), (66, 118), (67, 106), (67, 113), (67, 114), (67, 115), (67, 116), (67, 120), (67, 127), (68, 104), (68, 107), (68, 108), (68, 109), (68, 110), (68, 111), (68, 112), (68, 113), (68, 114), (68, 115), (68, 116), (68, 117), (68, 118), (68, 121), (68, 122), (68, 123), (68, 124), (68, 125), (68, 127), (69, 103), (69, 106), (69, 107), (69, 108), (69, 109), (69, 110), (69, 111), (69, 112), (69, 113), (69, 114), (69, 115), (69, 116), (69, 117), (69, 118), (69, 119), (69, 120), (69, 123), (69, 126), (69, 136), (70, 101), (70, 107), (70, 108), (70, 109), (70, 110), (70, 111), (70, 112), (70, 113), (70, 117), (70, 118), (70, 119), (70, 120), (70, 121), (70, 122), (70, 123), (70, 124), (70, 126), (70, 136), (71, 97), (71, 98), (71, 99),
(71, 100), (71, 101), (71, 102), (71, 103), (71, 104), (71, 105), (71, 108), (71, 109), (71, 110), (71, 111), (71, 112), (71, 114), (71, 115), (71, 116), (71, 117), (71, 118), (71, 119), (71, 120), (71, 121), (71, 122), (71, 123), (71, 124), (71, 126), (71, 137), (72, 107), (72, 110), (72, 111), (72, 113), (72, 118), (72, 119), (72, 120), (72, 121), (72, 122), (72, 123), (72, 124), (72, 126), (72, 137), (72, 154), (72, 155), (73, 108), (73, 112), (73, 118), (73, 120), (73, 121), (73, 127), (73, 137), (73, 138), (73, 154), (74, 109), (74, 111), (74, 118), (74, 120), (74, 122), (74, 123), (74, 124), (74, 125), (74, 127), (74, 138), (74, 139), (74, 154), (75, 111), (75, 117), (75, 121), (75, 138), (75, 140), (76, 117), (76, 120), (76, 139), (76, 141), (76, 145), (76, 153), (77, 116),
(77, 119), (77, 140), (77, 142), (77, 143), (77, 145), (77, 153), (78, 116), (78, 118), (78, 144), (78, 146), (78, 153), (79, 113), (79, 117), (79, 145), (79, 147), (79, 152), (80, 113), (80, 116), (80, 146), (80, 147), (80, 151), (80, 152), (81, 113), (81, 115), (81, 147), (81, 152), (82, 112), (82, 113), (82, 115), (82, 147), (82, 152), (83, 98), (83, 112), (83, 114), (83, 148), (83, 150), (83, 151), (83, 153), (84, 97), (84, 98), (84, 107), (84, 109), (84, 110), (84, 112), (84, 114), (84, 148), (84, 150), (84, 151), (84, 152), (84, 153), (84, 158), (85, 79), (85, 82), (85, 83), (85, 98), (85, 107), (85, 112), (85, 113), (85, 115), (85, 148), (85, 150), (85, 151), (85, 152), (85, 153), (85, 155), (85, 156), (85, 158), (86, 78), (86, 84), (86, 94), (86, 98), (86, 107),
(86, 109), (86, 110), (86, 111), (86, 112), (86, 113), (86, 115), (86, 133), (86, 148), (86, 150), (86, 151), (86, 152), (86, 153), (86, 158), (87, 78), (87, 80), (87, 81), (87, 82), (87, 83), (87, 86), (87, 92), (87, 96), (87, 98), (87, 107), (87, 109), (87, 110), (87, 111), (87, 112), (87, 113), (87, 115), (87, 134), (87, 147), (87, 149), (87, 150), (87, 151), (87, 152), (87, 153), (87, 154), (87, 155), (87, 156), (87, 157), (87, 159), (88, 77), (88, 79), (88, 80), (88, 81), (88, 82), (88, 83), (88, 84), (88, 87), (88, 91), (88, 94), (88, 95), (88, 96), (88, 98), (88, 107), (88, 109), (88, 110), (88, 111), (88, 112), (88, 113), (88, 114), (88, 116), (88, 133), (88, 135), (88, 145), (88, 148), (88, 149), (88, 150), (88, 151), (88, 152), (88, 153), (88, 154),
(88, 155), (88, 156), (88, 157), (88, 158), (88, 161), (89, 77), (89, 89), (89, 92), (89, 93), (89, 94), (89, 95), (89, 96), (89, 98), (89, 107), (89, 109), (89, 110), (89, 111), (89, 112), (89, 113), (89, 114), (89, 116), (89, 125), (89, 127), (89, 128), (89, 129), (89, 132), (89, 133), (89, 134), (89, 137), (89, 145), (89, 147), (89, 148), (89, 149), (89, 150), (89, 151), (89, 152), (89, 153), (89, 154), (89, 155), (89, 156), (89, 157), (89, 158), (89, 159), (89, 161), (90, 78), (90, 80), (90, 81), (90, 82), (90, 83), (90, 84), (90, 85), (90, 86), (90, 91), (90, 92), (90, 93), (90, 94), (90, 95), (90, 96), (90, 98), (90, 106), (90, 108), (90, 109), (90, 110), (90, 111), (90, 112), (90, 113), (90, 114), (90, 115), (90, 116), (90, 117), (90, 123), (90, 124),
(90, 130), (90, 131), (90, 132), (90, 133), (90, 134), (90, 135), (90, 138), (90, 139), (90, 151), (90, 152), (90, 153), (90, 154), (90, 155), (90, 156), (90, 157), (90, 160), (91, 87), (91, 88), (91, 91), (91, 92), (91, 93), (91, 94), (91, 95), (91, 96), (91, 97), (91, 99), (91, 105), (91, 107), (91, 108), (91, 109), (91, 110), (91, 111), (91, 112), (91, 113), (91, 114), (91, 115), (91, 116), (91, 119), (91, 120), (91, 121), (91, 125), (91, 126), (91, 127), (91, 128), (91, 129), (91, 130), (91, 131), (91, 132), (91, 133), (91, 134), (91, 135), (91, 136), (91, 137), (91, 141), (91, 142), (91, 143), (91, 144), (91, 145), (91, 146), (91, 147), (91, 148), (91, 149), (91, 151), (91, 152), (91, 153), (91, 154), (91, 155), (91, 156), (91, 159), (92, 89), (92, 92), (92, 93),
(92, 94), (92, 95), (92, 96), (92, 97), (92, 98), (92, 101), (92, 104), (92, 106), (92, 107), (92, 108), (92, 109), (92, 110), (92, 111), (92, 112), (92, 113), (92, 114), (92, 115), (92, 120), (92, 122), (92, 134), (92, 135), (92, 136), (92, 138), (92, 151), (92, 152), (92, 153), (92, 154), (92, 155), (93, 91), (93, 93), (93, 94), (93, 95), (93, 96), (93, 97), (93, 98), (93, 99), (93, 102), (93, 103), (93, 106), (93, 107), (93, 108), (93, 109), (93, 110), (93, 111), (93, 112), (93, 113), (93, 114), (93, 116), (93, 117), (93, 119), (93, 123), (93, 125), (93, 126), (93, 127), (93, 128), (93, 129), (93, 130), (93, 131), (93, 132), (93, 135), (93, 136), (93, 138), (93, 152), (93, 154), (93, 156), (94, 92), (94, 94), (94, 95), (94, 96), (94, 97), (94, 98), (94, 99),
(94, 100), (94, 101), (94, 102), (94, 104), (94, 105), (94, 106), (94, 107), (94, 108), (94, 109), (94, 110), (94, 111), (94, 112), (94, 113), (94, 115), (94, 134), (94, 136), (94, 138), (94, 152), (94, 155), (95, 92), (95, 94), (95, 95), (95, 96), (95, 97), (95, 98), (95, 99), (95, 100), (95, 101), (95, 102), (95, 103), (95, 104), (95, 105), (95, 106), (95, 107), (95, 108), (95, 109), (95, 110), (95, 111), (95, 112), (95, 114), (95, 135), (95, 138), (95, 152), (95, 155), (96, 92), (96, 94), (96, 95), (96, 96), (96, 97), (96, 98), (96, 99), (96, 100), (96, 101), (96, 102), (96, 103), (96, 104), (96, 105), (96, 106), (96, 107), (96, 108), (96, 109), (96, 110), (96, 111), (96, 113), (96, 136), (96, 137), (96, 152), (96, 155), (97, 91), (97, 93), (97, 94), (97, 95),
(97, 96), (97, 97), (97, 98), (97, 99), (97, 100), (97, 101), (97, 102), (97, 103), (97, 104), (97, 105), (97, 106), (97, 107), (97, 108), (97, 109), (97, 110), (97, 111), (97, 113), (97, 137), (97, 152), (97, 155), (98, 89), (98, 92), (98, 93), (98, 94), (98, 95), (98, 96), (98, 97), (98, 98), (98, 99), (98, 100), (98, 101), (98, 102), (98, 103), (98, 104), (98, 105), (98, 106), (98, 107), (98, 108), (98, 109), (98, 110), (98, 111), (98, 113), (98, 137), (98, 153), (98, 156), (99, 91), (99, 92), (99, 93), (99, 94), (99, 95), (99, 96), (99, 97), (99, 98), (99, 99), (99, 100), (99, 101), (99, 102), (99, 103), (99, 104), (99, 105), (99, 106), (99, 107), (99, 108), (99, 109), (99, 110), (99, 111), (99, 112), (99, 114), (99, 137), (99, 153), (99, 156), (100, 88),
(100, 90), (100, 91), (100, 92), (100, 93), (100, 94), (100, 95), (100, 96), (100, 97), (100, 98), (100, 99), (100, 100), (100, 101), (100, 102), (100, 103), (100, 104), (100, 105), (100, 106), (100, 107), (100, 108), (100, 109), (100, 110), (100, 111), (100, 112), (100, 114), (100, 137), (100, 153), (100, 156), (101, 88), (101, 90), (101, 91), (101, 92), (101, 93), (101, 94), (101, 95), (101, 96), (101, 97), (101, 98), (101, 99), (101, 100), (101, 101), (101, 102), (101, 103), (101, 104), (101, 105), (101, 106), (101, 107), (101, 113), (101, 115), (101, 137), (101, 154), (102, 86), (102, 88), (102, 89), (102, 90), (102, 91), (102, 92), (102, 93), (102, 94), (102, 95), (102, 96), (102, 97), (102, 98), (102, 99), (102, 100), (102, 101), (102, 102), (102, 103), (102, 104), (102, 105), (102, 106), (102, 109), (102, 110),
(102, 111), (102, 114), (102, 116), (102, 137), (103, 74), (103, 85), (103, 88), (103, 89), (103, 90), (103, 91), (103, 92), (103, 93), (103, 94), (103, 95), (103, 96), (103, 97), (103, 98), (103, 99), (103, 100), (103, 101), (103, 102), (103, 103), (103, 104), (103, 105), (103, 107), (103, 113), (103, 115), (103, 118), (103, 136), (103, 137), (104, 75), (104, 82), (104, 83), (104, 86), (104, 87), (104, 88), (104, 89), (104, 90), (104, 91), (104, 92), (104, 93), (104, 94), (104, 95), (104, 96), (104, 97), (104, 98), (104, 99), (104, 100), (104, 101), (104, 102), (104, 103), (104, 104), (104, 106), (104, 114), (104, 116), (104, 119), (104, 135), (104, 136), (105, 76), (105, 78), (105, 79), (105, 80), (105, 81), (105, 85), (105, 86), (105, 87), (105, 88), (105, 89), (105, 90), (105, 91), (105, 92), (105, 93),
(105, 94), (105, 95), (105, 96), (105, 97), (105, 98), (105, 99), (105, 100), (105, 101), (105, 102), (105, 103), (105, 104), (105, 106), (105, 115), (105, 117), (105, 118), (105, 121), (105, 122), (105, 133), (105, 136), (106, 76), (106, 82), (106, 83), (106, 84), (106, 85), (106, 86), (106, 87), (106, 88), (106, 89), (106, 90), (106, 91), (106, 92), (106, 93), (106, 94), (106, 95), (106, 96), (106, 97), (106, 98), (106, 99), (106, 100), (106, 101), (106, 102), (106, 103), (106, 104), (106, 106), (106, 116), (106, 118), (106, 119), (106, 120), (106, 122), (106, 133), (106, 136), (107, 76), (107, 78), (107, 79), (107, 80), (107, 81), (107, 82), (107, 83), (107, 84), (107, 85), (107, 86), (107, 87), (107, 88), (107, 89), (107, 90), (107, 91), (107, 92), (107, 93), (107, 94), (107, 95), (107, 96), (107, 97),
(107, 98), (107, 99), (107, 100), (107, 101), (107, 102), (107, 103), (107, 104), (107, 106), (107, 117), (107, 119), (107, 120), (107, 122), (107, 133), (107, 136), (108, 76), (108, 78), (108, 79), (108, 80), (108, 81), (108, 82), (108, 83), (108, 84), (108, 85), (108, 86), (108, 87), (108, 88), (108, 89), (108, 90), (108, 91), (108, 92), (108, 93), (108, 94), (108, 95), (108, 96), (108, 97), (108, 98), (108, 99), (108, 100), (108, 101), (108, 102), (108, 103), (108, 104), (108, 106), (108, 118), (108, 120), (108, 121), (108, 123), (108, 133), (108, 136), (109, 76), (109, 78), (109, 79), (109, 80), (109, 81), (109, 82), (109, 83), (109, 84), (109, 85), (109, 86), (109, 87), (109, 88), (109, 89), (109, 90), (109, 91), (109, 92), (109, 93), (109, 94), (109, 95), (109, 96), (109, 97), (109, 98), (109, 99),
(109, 100), (109, 101), (109, 102), (109, 103), (109, 104), (109, 106), (109, 119), (109, 122), (109, 124), (109, 133), (109, 135), (110, 74), (110, 76), (110, 77), (110, 78), (110, 79), (110, 80), (110, 81), (110, 82), (110, 83), (110, 84), (110, 85), (110, 86), (110, 92), (110, 93), (110, 94), (110, 95), (110, 96), (110, 97), (110, 98), (110, 99), (110, 100), (110, 101), (110, 102), (110, 103), (110, 104), (110, 106), (110, 120), (110, 123), (110, 125), (110, 132), (110, 135), (111, 71), (111, 72), (111, 73), (111, 76), (111, 77), (111, 78), (111, 83), (111, 84), (111, 85), (111, 88), (111, 89), (111, 90), (111, 92), (111, 93), (111, 94), (111, 95), (111, 96), (111, 97), (111, 98), (111, 99), (111, 100), (111, 101), (111, 102), (111, 103), (111, 104), (111, 105), (111, 107), (111, 121), (111, 123), (111, 132),
(111, 135), (112, 69), (112, 74), (112, 75), (112, 76), (112, 77), (112, 79), (112, 80), (112, 81), (112, 84), (112, 86), (112, 92), (112, 94), (112, 95), (112, 96), (112, 97), (112, 98), (112, 99), (112, 100), (112, 101), (112, 105), (112, 107), (112, 123), (112, 124), (112, 127), (112, 131), (112, 134), (113, 68), (113, 71), (113, 72), (113, 73), (113, 74), (113, 75), (113, 76), (113, 78), (113, 83), (113, 85), (113, 92), (113, 94), (113, 95), (113, 96), (113, 97), (113, 98), (113, 99), (113, 100), (113, 103), (113, 105), (113, 106), (113, 108), (113, 128), (113, 129), (113, 133), (114, 67), (114, 69), (114, 70), (114, 71), (114, 72), (114, 73), (114, 74), (114, 75), (114, 77), (114, 84), (114, 92), (114, 101), (114, 105), (114, 108), (114, 124), (114, 126), (114, 127), (114, 131), (114, 133), (115, 70),
(115, 71), (115, 76), (115, 93), (115, 95), (115, 96), (115, 97), (115, 98), (115, 99), (115, 101), (115, 105), (115, 106), (115, 109), (115, 126), (115, 128), (115, 129), (115, 130), (115, 132), (116, 68), (116, 71), (116, 72), (116, 73), (116, 75), (116, 106), (116, 109), (116, 127), (116, 129), (116, 130), (116, 132), (117, 69), (117, 71), (117, 106), (117, 109), (117, 126), (117, 128), (117, 129), (117, 130), (117, 132), (118, 106), (118, 110), (118, 126), (118, 128), (118, 129), (118, 130), (118, 132), (119, 106), (119, 110), (119, 125), (119, 127), (119, 128), (119, 129), (119, 130), (119, 132), (120, 107), (120, 109), (120, 112), (120, 124), (120, 132), (121, 110), (121, 113), (121, 122), (121, 124), (121, 125), (121, 126), (121, 127), (121, 128), (121, 129), (121, 130), (121, 132), (122, 120), (122, 132), )
coordinates_FEDAB9 = ((127, 67),
(128, 67), (128, 68), (129, 66), (129, 69), (130, 66), (130, 69), (131, 66), (131, 68), (131, 70), (132, 67), (132, 72), (133, 68), (133, 70), (133, 73), (133, 75), (134, 72), (134, 76), (135, 72), (135, 74), (135, 76), (136, 69), (136, 71), (136, 72), (136, 73), (136, 75), (137, 69), (137, 72), (137, 74), (138, 68), (138, 70), (138, 73), (139, 67), (139, 69), (139, 70), (139, 71), (139, 72), (140, 67), (140, 69), (140, 71), (141, 67), (141, 70), (141, 83), (141, 85), (142, 67), (142, 70), (142, 78), (142, 80), (142, 81), (142, 82), (142, 87), (142, 89), (143, 68), (143, 71), (143, 77), (143, 83), (143, 84), (143, 85), (143, 86), (143, 87), (143, 89), (144, 68), (144, 70), (144, 73), (144, 74), (144, 75), (144, 78), (144, 82), (145, 69), (145, 80), (146, 70), (146, 72), (146, 73),
(146, 74), (146, 78), (147, 75), )
coordinates_01CED1 = ((144, 90),
(145, 84), (145, 86), (145, 87), (145, 88), (145, 90), (146, 82), (146, 85), (146, 86), (146, 87), (146, 89), (147, 80), (147, 83), (148, 78), (148, 82), (149, 76), (149, 80), (149, 82), (150, 75), (150, 77), (150, 78), (150, 79), (150, 80), (150, 82), (151, 74), (151, 76), (151, 77), (151, 78), (151, 79), (151, 80), (151, 81), (151, 82), (151, 84), (152, 73), (152, 75), (152, 76), (152, 77), (152, 78), (152, 79), (152, 80), (152, 81), (152, 82), (153, 73), (153, 75), (153, 76), (153, 77), (153, 78), (153, 79), (153, 80), (153, 81), (153, 82), (153, 84), (154, 73), (154, 75), (154, 76), (154, 77), (154, 78), (154, 79), (154, 80), (154, 81), (154, 82), (154, 84), (155, 73), (155, 75), (155, 76), (155, 77), (155, 78), (155, 79), (155, 80), (155, 81), (155, 82), (155, 84), (155, 97),
(156, 73), (156, 75), (156, 76), (156, 77), (156, 78), (156, 79), (156, 80), (156, 81), (156, 82), (156, 83), (156, 86), (156, 97), (157, 76), (157, 77), (157, 78), (157, 79), (157, 80), (157, 81), (157, 82), (157, 85), (157, 96), (157, 97), (158, 74), (158, 76), (158, 77), (158, 78), (158, 79), (158, 80), (158, 81), (158, 83), (158, 96), (158, 97), (159, 75), (159, 78), (159, 79), (159, 82), (159, 96), (159, 98), (160, 76), (160, 81), (160, 96), (160, 98), (161, 78), (161, 80), (161, 91), (161, 96), (161, 98), (162, 91), (162, 96), (162, 98), (163, 90), (163, 91), (163, 95), (163, 98), (164, 89), (164, 91), (164, 92), (164, 93), (164, 94), (164, 97), (165, 89), (165, 91), (165, 92), (165, 97), (166, 96), (167, 90), (167, 92), (167, 94), )
coordinates_FFDAB9 = ((96, 69),
(96, 71), (97, 69), (97, 72), (98, 68), (98, 70), (98, 73), (99, 68), (99, 70), (99, 74), (100, 68), (100, 70), (100, 73), (100, 76), (100, 85), (100, 86), (101, 70), (101, 74), (101, 77), (101, 78), (101, 79), (101, 80), (101, 81), (101, 82), (101, 83), (101, 85), (102, 68), (102, 70), (102, 76), (102, 81), (102, 83), (103, 69), (103, 71), (103, 78), (103, 79), (104, 70), (104, 72), (105, 70), (105, 73), (106, 70), (106, 72), (106, 74), (107, 68), (107, 70), (107, 71), (107, 72), (107, 74), (108, 67), (108, 74), (109, 66), (109, 70), (109, 71), (109, 72), (110, 65), (110, 69), (111, 64), (111, 67), (112, 63), (112, 66), (113, 62), (113, 65), (114, 62), (114, 65), (115, 62), (115, 65), (116, 63), (116, 66), (117, 63), (117, 65), (117, 67), (118, 64), (118, 67), (119, 64),
(119, 67), (120, 65), (120, 66), )
coordinates_00CED1 = ((76, 93),
(76, 95), (77, 93), (77, 96), (77, 97), (77, 98), (77, 100), (78, 82), (78, 83), (78, 84), (78, 86), (78, 87), (78, 88), (78, 89), (78, 90), (78, 91), (78, 93), (78, 94), (78, 95), (78, 100), (79, 80), (79, 84), (79, 85), (79, 86), (79, 92), (79, 93), (79, 94), (79, 95), (79, 96), (79, 97), (79, 98), (79, 100), (80, 79), (80, 81), (80, 82), (80, 83), (80, 84), (80, 86), (80, 87), (80, 88), (80, 89), (80, 90), (80, 91), (80, 92), (80, 93), (80, 94), (80, 95), (80, 96), (80, 101), (81, 78), (81, 80), (81, 81), (81, 82), (81, 83), (81, 84), (81, 85), (81, 86), (81, 87), (81, 88), (81, 89), (81, 90), (81, 91), (81, 92), (81, 93), (81, 94), (81, 95), (81, 98), (81, 99), (81, 101), (82, 77), (82, 84), (82, 85), (82, 86),
(82, 87), (82, 88), (82, 89), (82, 90), (82, 91), (82, 92), (82, 93), (82, 94), (82, 96), (82, 100), (82, 101), (83, 76), (83, 79), (83, 80), (83, 81), (83, 82), (83, 83), (83, 86), (83, 87), (83, 88), (83, 89), (83, 90), (83, 91), (83, 92), (83, 95), (83, 100), (83, 102), (84, 75), (84, 78), (84, 84), (84, 87), (84, 88), (84, 89), (84, 90), (84, 91), (84, 94), (84, 100), (84, 102), (85, 74), (85, 77), (85, 86), (85, 89), (85, 92), (85, 100), (85, 103), (86, 73), (86, 76), (86, 87), (86, 91), (86, 100), (86, 103), (87, 72), (87, 75), (87, 89), (87, 100), (87, 103), (88, 72), (88, 75), (88, 100), (88, 102), (88, 103), (89, 72), (89, 75), (89, 100), (89, 102), (90, 72), (90, 74), (90, 75), (90, 76), (90, 101), (90, 102), (91, 73),
(91, 75), (91, 76), (92, 74), (92, 78), (93, 79), (93, 80), (93, 81), (93, 82), (93, 83), (93, 84), (93, 85), (93, 86), (93, 87), (94, 76), (94, 78), (94, 89), (95, 77), (95, 79), (95, 80), (95, 81), (95, 82), (95, 83), (95, 84), (95, 85), (95, 86), (95, 87), (95, 90), (96, 78), (96, 80), (96, 81), (96, 82), (96, 83), (96, 84), (96, 85), (96, 89), (97, 79), (97, 81), (97, 82), (97, 83), (97, 87), (98, 79), (98, 85), (99, 80), (99, 82), (99, 83), )
coordinates_CC3E4E = ()
coordinates_771286 = ((123, 116),
(124, 113), (124, 118), (124, 119), (124, 120), (124, 122), (125, 112), (125, 115), (125, 116), (125, 117), (125, 123), (126, 112), (126, 114), (126, 115), (126, 116), (126, 117), (126, 118), (126, 119), (126, 120), (126, 121), (126, 122), (126, 124), (127, 112), (127, 114), (127, 115), (127, 116), (127, 117), (127, 118), (127, 119), (127, 124), (128, 111), (128, 113), (128, 114), (128, 115), (128, 120), (128, 121), (128, 122), (129, 111), (129, 116), (129, 117), (129, 118), (129, 119), (130, 111), (130, 113), (130, 114), (130, 115), (131, 110), (131, 112), (132, 109), (132, 110), (133, 109), (134, 108), )
coordinates_9F522D = ((157, 115),
(157, 118), (158, 115), (158, 119), (158, 120), (158, 132), (159, 116), (159, 118), (159, 122), (159, 130), (159, 133), (160, 116), (160, 118), (160, 119), (160, 120), (160, 124), (160, 129), (160, 132), (160, 134), (161, 117), (161, 126), (161, 127), (161, 130), (161, 131), (161, 132), (161, 133), (161, 135), (162, 118), (162, 120), (162, 121), (162, 129), (162, 130), (162, 131), (162, 132), (162, 134), (163, 123), (163, 126), (163, 127), (163, 128), (163, 129), (163, 130), (163, 131), (163, 133), (164, 125), (164, 132), (165, 126), (165, 128), (165, 129), (165, 131), )
coordinates_A0522D = ((80, 123),
(80, 124), (80, 125), (80, 126), (80, 127), (80, 128), (80, 129), (80, 130), (80, 131), (80, 132), (81, 121), (81, 134), (82, 120), (82, 123), (82, 124), (82, 125), (82, 126), (82, 127), (82, 128), (82, 129), (82, 130), (82, 131), (82, 132), (82, 136), (83, 120), (83, 121), (83, 122), (83, 123), (83, 124), (83, 125), (83, 126), (83, 127), (83, 128), (83, 129), (83, 130), (83, 131), (83, 134), (83, 137), (84, 120), (84, 122), (84, 123), (84, 124), (84, 125), (84, 126), (84, 127), (84, 128), (84, 129), (84, 130), (84, 133), (84, 135), (84, 138), (85, 120), (85, 122), (85, 123), (85, 124), (85, 125), (85, 131), (85, 134), (86, 121), (86, 123), (86, 126), (86, 127), (86, 128), (86, 130), (86, 135), (87, 121), (87, 125), (87, 137), (87, 141), (87, 143), (88, 121), (88, 123), (88, 138),
(88, 139), (88, 143), (89, 142), )
coordinates_781286 = ((110, 108),
(111, 109), (111, 111), (112, 110), (112, 112), (113, 110), (113, 113), (114, 111), (114, 114), (115, 111), (115, 113), (115, 115), (115, 116), (115, 117), (115, 118), (115, 119), (115, 121), (116, 111), (116, 113), (116, 114), (116, 124), (117, 113), (117, 114), (117, 115), (117, 116), (117, 117), (117, 118), (117, 119), (117, 120), (117, 121), (117, 124), (118, 112), (118, 114), (118, 115), (118, 116), (118, 117), (118, 118), (118, 119), (118, 120), (118, 123), (119, 113), (119, 122), (120, 114), (120, 116), (120, 117), (120, 118), (120, 119), (120, 120), )
coordinates_79BADC = ((131, 117),
(131, 120), (132, 114), (132, 116), (132, 120), (133, 112), (133, 118), (134, 111), (134, 114), (134, 115), (134, 117), (135, 109), (135, 112), (135, 113), (135, 114), (135, 116), (136, 109), (136, 111), (136, 112), (136, 113), (136, 115), (137, 108), (137, 110), (137, 111), (137, 112), (138, 108), (138, 110), (138, 111), (138, 112), (138, 114), (139, 108), (139, 113), (140, 109), (140, 112), )
coordinates_ED0000 = ((153, 99),
(154, 99), (155, 99), (155, 100), (156, 99), (156, 100), (157, 88), (157, 99), (157, 101), (158, 86), (158, 89), (158, 99), (158, 101), (159, 85), (159, 89), (159, 100), (159, 101), (160, 84), (160, 86), (160, 87), (160, 89), (160, 100), (160, 102), (161, 82), (161, 85), (161, 86), (161, 87), (161, 89), (161, 100), (161, 102), (162, 81), (162, 84), (162, 85), (162, 86), (162, 88), (162, 100), (162, 102), (163, 81), (163, 83), (163, 84), (163, 85), (163, 87), (163, 100), (163, 103), (164, 81), (164, 83), (164, 84), (164, 85), (164, 87), (164, 100), (164, 103), (165, 81), (165, 83), (165, 84), (165, 85), (165, 87), (165, 99), (165, 101), (165, 103), (166, 81), (166, 83), (166, 84), (166, 85), (166, 87), (166, 98), (166, 100), (166, 101), (166, 102), (166, 104), (167, 81), (167, 83), (167, 84), (167, 85),
(167, 87), (167, 97), (167, 99), (167, 100), (167, 101), (167, 102), (167, 104), (168, 82), (168, 84), (168, 85), (168, 86), (168, 88), (168, 96), (168, 103), (169, 82), (169, 84), (169, 85), (169, 86), (169, 88), (169, 92), (169, 93), (169, 94), (169, 97), (169, 98), (169, 99), (169, 100), (169, 102), (169, 108), (169, 110), (169, 111), (170, 83), (170, 88), (170, 92), (170, 96), (170, 107), (170, 113), (171, 84), (171, 87), (171, 92), (171, 94), (171, 106), (171, 108), (171, 109), (171, 110), (171, 111), (171, 115), (172, 92), (172, 94), (172, 105), (172, 107), (172, 108), (172, 109), (172, 110), (172, 111), (172, 112), (172, 113), (172, 116), (172, 117), (173, 91), (173, 93), (173, 94), (173, 95), (173, 96), (173, 105), (173, 107), (173, 108), (173, 109), (173, 110), (173, 111), (173, 112), (173, 113), (173, 114),
(173, 115), (173, 118), (174, 91), (174, 93), (174, 94), (174, 98), (174, 99), (174, 106), (174, 109), (174, 110), (174, 111), (174, 112), (174, 113), (174, 114), (174, 115), (174, 116), (174, 117), (174, 120), (175, 91), (175, 95), (175, 96), (175, 97), (175, 101), (175, 107), (175, 110), (175, 111), (175, 112), (175, 113), (175, 114), (175, 115), (175, 116), (175, 117), (175, 118), (175, 119), (175, 122), (176, 92), (176, 94), (176, 98), (176, 102), (176, 109), (176, 111), (176, 112), (176, 113), (176, 114), (176, 115), (176, 116), (176, 117), (176, 118), (176, 119), (176, 120), (176, 121), (176, 123), (177, 99), (177, 103), (177, 110), (177, 112), (177, 113), (177, 114), (177, 115), (177, 116), (177, 117), (177, 118), (177, 119), (177, 120), (177, 121), (177, 122), (177, 124), (178, 100), (178, 104), (178, 110), (178, 112), (178, 113),
(178, 114), (178, 115), (178, 116), (178, 117), (178, 118), (178, 119), (178, 120), (178, 121), (178, 124), (179, 101), (179, 105), (179, 110), (179, 111), (179, 112), (179, 113), (179, 114), (179, 115), (179, 116), (179, 117), (179, 118), (179, 119), (179, 120), (179, 122), (180, 104), (180, 107), (180, 108), (180, 109), (180, 110), (180, 111), (180, 112), (180, 113), (180, 114), (180, 115), (180, 116), (180, 117), (180, 118), (180, 119), (180, 121), (181, 105), (181, 114), (181, 115), (181, 120), (182, 110), (182, 111), (182, 112), (182, 113), (182, 116), (182, 117), (182, 119), (183, 106), (183, 108), (183, 114), (183, 115), )
coordinates_7ABADC = ((104, 109),
(104, 111), (105, 108), (105, 112), (106, 108), (106, 110), (106, 111), (106, 113), (107, 109), (107, 111), (107, 112), (107, 114), (108, 109), (108, 112), (108, 113), (109, 110), (109, 113), (109, 114), (109, 117), (110, 112), (110, 114), (110, 115), (110, 118), (111, 113), (111, 116), (111, 119), (112, 114), (112, 120), (113, 116), (113, 118), (113, 119), (113, 121), )
coordinates_633264 = ((77, 102),
(77, 104), (78, 106), (79, 103), (79, 107), (80, 103), (80, 108), (81, 103), (81, 105), (81, 106), (82, 104), (82, 107), (82, 109), (83, 104), (84, 105), (85, 105), (86, 105), (87, 105), (88, 105), (90, 104), )
coordinates_EC0DB0 = ((94, 121),
(95, 116), (95, 119), (95, 123), (95, 124), (95, 125), (95, 126), (95, 127), (95, 128), (95, 129), (95, 130), (95, 132), (96, 116), (96, 121), (96, 133), (97, 116), (97, 117), (97, 118), (97, 119), (97, 120), (97, 121), (97, 122), (97, 123), (97, 124), (97, 125), (97, 126), (97, 127), (97, 128), (97, 129), (97, 130), (97, 131), (97, 132), (97, 134), (98, 116), (98, 118), (98, 119), (98, 120), (98, 121), (98, 122), (98, 123), (98, 124), (98, 125), (98, 126), (98, 127), (98, 128), (98, 129), (98, 130), (98, 131), (98, 132), (98, 133), (98, 135), (99, 116), (99, 118), (99, 119), (99, 120), (99, 121), (99, 122), (99, 123), (99, 124), (99, 125), (99, 126), (99, 130), (99, 131), (99, 132), (99, 133), (99, 135), (100, 117), (100, 119), (100, 120), (100, 121), (100, 122), (100, 123), (100, 124),
(100, 128), (100, 131), (100, 132), (100, 133), (100, 135), (101, 118), (101, 121), (101, 122), (101, 126), (101, 130), (101, 132), (101, 133), (101, 135), (102, 119), (102, 124), (102, 131), (102, 135), (103, 121), (103, 122), (103, 132), (103, 134), )
coordinates_EB0DB0 = ((142, 121),
(142, 122), (143, 119), (143, 123), (143, 134), (144, 118), (144, 121), (144, 122), (144, 124), (144, 125), (144, 126), (144, 127), (144, 128), (144, 129), (144, 130), (144, 131), (144, 132), (144, 133), (144, 135), (145, 117), (145, 119), (145, 120), (145, 121), (145, 122), (145, 123), (145, 135), (146, 116), (146, 118), (146, 119), (146, 120), (146, 121), (146, 122), (146, 123), (146, 124), (146, 125), (146, 126), (146, 127), (146, 128), (146, 129), (146, 130), (146, 131), (146, 132), (146, 133), (146, 135), (147, 116), (147, 118), (147, 119), (147, 120), (147, 121), (147, 122), (147, 123), (147, 124), (147, 125), (147, 126), (147, 127), (147, 128), (147, 129), (147, 130), (147, 131), (147, 132), (147, 134), (148, 118), (148, 119), (148, 120), (148, 121), (148, 122), (148, 123), (148, 124), (148, 125), (148, 126), (148, 127), (148, 128), (148, 129),
(148, 130), (148, 131), (148, 132), (148, 134), (149, 116), (149, 120), (149, 121), (149, 122), (149, 123), (149, 124), (149, 125), (149, 126), (149, 133), (150, 118), (150, 127), (150, 128), (150, 129), (150, 130), (150, 132), (151, 120), (151, 122), (151, 123), (151, 124), (151, 125), (151, 126), )
coordinates_ED82EE = ((124, 69),
(124, 71), (124, 72), (124, 73), (124, 74), (124, 75), (124, 77), (125, 69), (125, 78), (126, 68), (126, 70), (126, 74), (126, 75), (126, 78), (127, 69), (127, 71), (127, 72), (127, 73), (127, 76), (127, 78), (128, 70), (128, 78), (128, 79), )
coordinates_EE82EE = ((113, 88),
(114, 79), (114, 81), (114, 88), (115, 78), (115, 82), (115, 87), (116, 77), (116, 80), (116, 81), (116, 84), (116, 87), (117, 79), (117, 80), (117, 81), (117, 82), (117, 86), (118, 74), (118, 75), (118, 78), (118, 79), (118, 80), (118, 81), (118, 82), (118, 83), (118, 84), (118, 86), (119, 69), (119, 71), (119, 72), (119, 73), (119, 76), (119, 77), (119, 78), (119, 79), (119, 80), (119, 86), (120, 69), (120, 81), (120, 82), (120, 83), (120, 84), (121, 68), (121, 71), (121, 72), (121, 73), (121, 74), (121, 75), (121, 76), (121, 77), (121, 78), (121, 79), (122, 69), )
coordinates_9832CC = ((122, 82),
(122, 85), (122, 88), (122, 89), (122, 90), (122, 91), (122, 92), (122, 93), (122, 94), (123, 82), (123, 87), (123, 95), (123, 96), (123, 97), (123, 98), (123, 99), (123, 100), (123, 101), (123, 102), (123, 104), (124, 81), (124, 83), (124, 88), (124, 89), (124, 90), (124, 91), (124, 92), (124, 93), (124, 94), (124, 104), (125, 80), (125, 82), (125, 85), (125, 87), (125, 88), (125, 89), (125, 90), (125, 92), (125, 93), (125, 94), (125, 95), (125, 96), (125, 97), (125, 98), (125, 101), (125, 104), (126, 80), (126, 83), (126, 86), (126, 88), (126, 89), (126, 93), (126, 94), (126, 95), (126, 97), (126, 104), (127, 82), (127, 87), (127, 93), (127, 94), (127, 95), (127, 97), (127, 104), (128, 88), (128, 89), (128, 93), (128, 95), (128, 97), (128, 104), (129, 93), (129, 95), (129, 97), (130, 94),
(130, 97), (131, 94), (131, 97), (132, 95), (132, 97), )
coordinates_9932CC = ((113, 90),
(114, 90), (115, 90), (115, 103), (116, 89), (116, 91), (116, 102), (116, 104), (117, 89), (117, 92), (117, 93), (117, 94), (117, 95), (117, 96), (117, 97), (117, 98), (117, 99), (117, 102), (117, 104), (118, 88), (118, 90), (118, 91), (118, 100), (118, 102), (118, 104), (119, 88), (119, 104), (120, 88), (120, 90), (120, 91), (120, 92), (120, 93), (120, 94), (120, 95), (120, 96), (120, 97), (120, 100), (120, 101), (120, 102), (120, 104), (121, 100), (121, 106), )
coordinates_86CEEB = ((160, 114),
(161, 114), (161, 115), (162, 114), (163, 114), (163, 116), (164, 114), (164, 118), (165, 115), (165, 119), (165, 121), (166, 116), (166, 118), (166, 123), (167, 117), (167, 120), (167, 121), (167, 125), (168, 118), (168, 122), (168, 123), (168, 126), (169, 120), (169, 123), (169, 124), (169, 125), (169, 127), (170, 122), (170, 124), (170, 125), (170, 127), (171, 123), (171, 125), (171, 126), (171, 128), (172, 124), (172, 126), (172, 128), (173, 124), (173, 126), (173, 128), (174, 125), (174, 127), (175, 125), (175, 127), (176, 125), (176, 127), (177, 126), (178, 126), )
coordinates_87CEEB = ((64, 131),
(65, 131), (66, 129), (66, 131), (67, 129), (67, 131), (68, 129), (68, 131), (69, 129), (69, 131), (70, 128), (70, 131), (71, 128), (71, 131), (72, 129), (72, 131), (73, 129), (73, 131), (74, 129), (74, 131), (75, 129), (75, 132), (76, 122), (76, 124), (76, 125), (76, 126), (76, 127), (76, 128), (76, 129), (76, 130), (76, 132), (77, 121), (77, 132), (78, 123), (78, 124), (78, 125), (78, 126), (78, 127), (78, 128), (78, 129), (78, 131), (79, 120), (79, 121), (80, 119), (81, 118), (82, 117), (83, 117), (84, 117), (85, 117), (85, 118), (86, 117), (86, 118), (87, 118), (87, 119), (88, 118), (88, 119), )
coordinates_EE0000 = ((61, 112),
(61, 113), (61, 114), (61, 115), (61, 116), (62, 108), (62, 109), (62, 110), (62, 111), (62, 117), (62, 118), (62, 119), (63, 105), (63, 106), (63, 112), (63, 113), (63, 114), (63, 115), (63, 116), (63, 120), (63, 121), (63, 122), (63, 123), (63, 124), (63, 125), (63, 126), (63, 127), (64, 103), (64, 104), (64, 107), (64, 108), (64, 109), (64, 111), (64, 118), (64, 128), (65, 101), (65, 105), (65, 120), (65, 127), (66, 100), (66, 104), (66, 122), (66, 125), (67, 99), (67, 103), (68, 93), (68, 95), (68, 96), (68, 97), (68, 100), (68, 101), (68, 102), (69, 92), (69, 97), (69, 98), (69, 99), (70, 91), (70, 93), (70, 94), (70, 95), (71, 92), (71, 95), (72, 92), (72, 96), (73, 93), (73, 97), (73, 101), (73, 102), (73, 103), (73, 105), (73, 114), (73, 116), (74, 94),
(74, 96), (74, 107), (74, 113), (75, 98), (75, 99), (75, 100), (75, 101), (75, 102), (75, 103), (75, 104), (75, 105), (75, 108), (75, 113), (75, 115), (76, 106), (76, 109), (76, 113), (76, 115), (77, 108), (77, 110), (77, 114), (78, 109), (78, 111), (79, 110), (79, 111), (80, 110), (81, 111), )
coordinates_FE4500 = ((157, 134),
(157, 136), (157, 137), (157, 138), (157, 139), (157, 140), (157, 142), (158, 135), (158, 141), (159, 135), (159, 137), (159, 138), (159, 140), )
coordinates_B4B4B4 = ((93, 140),
(94, 140), (95, 140), (96, 140), (97, 139), (97, 140), (98, 139), (98, 140), (99, 139), (99, 140), (100, 139), (100, 140), (101, 139), (101, 140), (102, 139), (102, 140), (103, 139), (103, 140), (104, 140), (105, 138), (105, 140), (106, 138), (106, 141), (107, 138), (107, 140), (108, 138), (108, 140), (109, 138), (110, 139), (111, 137), (111, 139), (112, 138), (113, 136), (113, 138), (114, 135), (114, 137), (115, 135), (115, 137), (116, 134), (116, 136), (117, 134), (117, 136), (118, 134), (118, 135), (119, 134), (120, 134), )
coordinates_FED700 = ((157, 144),
(157, 145), (158, 144), (158, 146), (159, 143), (159, 145), (160, 142), (160, 145), (161, 141), (161, 144), (162, 141), (162, 144), (163, 140), (163, 143), (165, 139), (165, 140), (166, 138), (166, 139), (167, 137), (167, 138), (168, 136), (169, 135), (169, 137), (170, 131), (170, 133), (170, 134), (170, 136), (171, 130), (171, 132), (171, 136), (172, 130), (172, 135), (173, 130), (173, 133), (173, 134), (174, 130), (174, 131), (175, 129), (175, 130), (176, 129), (177, 129), (178, 128), (178, 129), (179, 129), )
coordinates_CF2090 = ((163, 145),
(164, 144), (164, 146), (165, 144), (166, 144), (167, 144), (168, 143), (168, 144), (169, 143), (169, 144), (170, 142), (170, 144), (171, 142), (171, 143), (172, 141), (172, 143), (173, 139), (173, 143), (174, 136), (174, 138), (174, 141), (174, 142), (175, 135), (175, 140), (176, 138), (177, 134), (177, 137), (178, 135), (179, 131), (179, 134), (180, 134), (181, 130), (181, 133), (182, 131), (182, 133), )
coordinates_B3B4B4 = ((125, 134),
(125, 135), (126, 135), (127, 135), (127, 136), (128, 135), (128, 136), (129, 135), (129, 137), (130, 135), (130, 137), (131, 136), (131, 137), (132, 136), (132, 137), (133, 136), (134, 136), (134, 138), (135, 136), (135, 138), (136, 136), (136, 138), (137, 136), (137, 138), (138, 139), (139, 138), (139, 139), (140, 139), (141, 139), (142, 139), (143, 139), (143, 140), (144, 139), (144, 140), (145, 140), (146, 140), )
coordinates_EFE68C = ((165, 147),
(166, 146), (166, 147), (167, 146), (167, 147), (168, 146), (169, 146), (169, 151), (170, 146), (171, 146), (171, 152), (172, 145), (172, 152), (172, 153), (173, 145), (173, 152), (173, 153), (174, 145), (174, 146), (174, 153), (174, 154), (175, 143), (175, 145), (175, 146), (175, 153), (175, 154), (176, 142), (176, 146), (176, 152), (176, 154), (176, 155), (177, 140), (177, 143), (177, 145), (177, 151), (177, 153), (177, 155), (178, 138), (178, 142), (178, 143), (178, 145), (178, 149), (178, 152), (178, 155), (179, 138), (179, 140), (179, 141), (179, 142), (179, 144), (179, 148), (179, 153), (179, 154), (179, 155), (180, 138), (180, 140), (180, 141), (180, 142), (180, 144), (180, 147), (180, 151), (180, 152), (181, 137), (181, 139), (181, 140), (181, 141), (181, 142), (181, 143), (181, 144), (181, 145), (181, 146), (181, 150), (182, 137), (182, 139),
(182, 140), (182, 141), (182, 142), (182, 143), (182, 144), (182, 148), (183, 138), (183, 144), (183, 146), (184, 139), (184, 141), (184, 142), (184, 143), )
coordinates_FEFF01 = ((136, 144),
(136, 145), (136, 147), (137, 144), (137, 149), (138, 143), (138, 145), (138, 146), (138, 147), (138, 150), (138, 151), (139, 143), (139, 145), (139, 146), (139, 147), (139, 148), (139, 149), (139, 152), (139, 153), (139, 154), (139, 155), (139, 157), (140, 143), (140, 145), (140, 146), (140, 147), (140, 148), (140, 149), (140, 150), (140, 151), (140, 158), (141, 143), (141, 145), (141, 146), (141, 147), (141, 148), (141, 149), (141, 150), (141, 151), (141, 152), (141, 153), (141, 154), (141, 155), (141, 156), (141, 157), (141, 160), (142, 142), (142, 144), (142, 145), (142, 146), (142, 147), (142, 148), (142, 149), (142, 150), (142, 151), (142, 152), (142, 153), (142, 154), (142, 155), (142, 156), (142, 157), (142, 158), (142, 161), (142, 162), (142, 163), (142, 164), (143, 142), (143, 144), (143, 145), (143, 146), (143, 147), (143, 148), (143, 149),
(143, 150), (143, 151), (143, 152), (143, 153), (143, 154), (143, 155), (143, 156), (143, 157), (143, 158), (143, 159), (143, 160), (143, 161), (143, 164), (144, 142), (144, 144), (144, 145), (144, 146), (144, 147), (144, 148), (144, 149), (144, 150), (144, 151), (144, 152), (144, 153), (144, 154), (144, 155), (144, 156), (144, 157), (144, 158), (144, 159), (144, 160), (144, 161), (144, 162), (144, 163), (144, 165), (145, 142), (145, 144), (145, 145), (145, 146), (145, 147), (145, 148), (145, 149), (145, 150), (145, 151), (145, 152), (145, 153), (145, 161), (145, 162), (145, 163), (145, 165), (146, 142), (146, 144), (146, 145), (146, 146), (146, 147), (146, 148), (146, 149), (146, 150), (146, 151), (146, 154), (146, 155), (146, 156), (146, 157), (146, 158), (146, 159), (146, 162), (146, 163), (146, 164), (146, 166), (147, 142), (147, 144), (147, 145),
(147, 146), (147, 147), (147, 148), (147, 149), (147, 150), (147, 153), (147, 161), (147, 163), (147, 164), (147, 166), (148, 142), (148, 144), (148, 145), (148, 146), (148, 147), (148, 148), (148, 149), (148, 151), (148, 162), (148, 164), (148, 166), (149, 141), (149, 143), (149, 144), (149, 145), (149, 146), (149, 147), (149, 148), (149, 150), (149, 162), (149, 167), (150, 142), (150, 147), (150, 148), (150, 150), (150, 162), (150, 164), (150, 165), (150, 167), (151, 142), (151, 144), (151, 145), (151, 148), (151, 150), (151, 161), (151, 163), (152, 143), (152, 147), (152, 149), (153, 148), )
coordinates_31CD32 = ((152, 165),
(152, 167), (153, 162), (153, 163), (153, 164), (154, 159), (154, 161), (154, 165), (154, 166), (154, 168), (155, 158), (155, 162), (155, 163), (155, 164), (155, 165), (155, 166), (155, 168), (156, 158), (156, 160), (156, 161), (156, 162), (156, 163), (156, 164), (156, 165), (156, 166), (156, 167), (156, 169), (157, 158), (157, 160), (157, 161), (157, 162), (157, 163), (157, 164), (157, 165), (157, 166), (157, 168), (158, 158), (158, 160), (158, 161), (158, 162), (158, 163), (158, 164), (158, 165), (158, 166), (158, 168), (159, 161), (159, 162), (159, 163), (159, 164), (159, 165), (159, 167), (160, 159), (160, 162), (160, 163), (160, 164), (160, 165), (160, 167), (161, 160), (161, 163), (161, 164), (161, 165), (161, 167), (162, 162), (162, 164), (162, 165), (162, 166), (162, 168), (163, 163), (163, 165), (163, 166), (163, 168), (164, 157), (164, 164),
(164, 166), (164, 167), (164, 169), (165, 154), (165, 155), (165, 158), (165, 164), (165, 165), (165, 168), (166, 153), (166, 156), (166, 157), (166, 159), (166, 165), (166, 168), (167, 153), (167, 155), (167, 156), (167, 157), (167, 159), (167, 165), (167, 167), (168, 153), (168, 155), (168, 156), (168, 157), (168, 159), (168, 165), (168, 167), (169, 153), (169, 155), (169, 156), (169, 157), (169, 159), (169, 164), (169, 167), (170, 154), (170, 156), (170, 158), (170, 163), (170, 166), (171, 154), (171, 156), (171, 157), (171, 158), (171, 159), (171, 162), (171, 164), (171, 166), (172, 155), (172, 157), (172, 158), (172, 159), (172, 160), (172, 161), (172, 163), (172, 165), (173, 156), (173, 158), (173, 159), (173, 162), (173, 164), (174, 156), (174, 159), (174, 160), (174, 161), (174, 163), (175, 158), (175, 162), (176, 159), (176, 161), )
coordinates_0B30FF = ((133, 128),
(133, 129), (134, 127), (134, 130), (135, 126), (135, 130), (136, 126), (136, 128), (136, 130), (137, 125), (137, 127), (137, 128), (137, 130), (138, 125), (138, 127), (138, 128), (138, 130), (139, 124), (139, 126), (139, 127), (139, 128), (139, 130), (140, 124), (140, 126), (140, 127), (140, 128), (140, 130), (141, 124), (141, 130), (142, 124), (142, 126), (142, 127), (142, 128), (142, 129), (142, 131), )
coordinates_0C30FF = ((102, 128),
(103, 126), (103, 130), (104, 124), (104, 128), (104, 131), (105, 124), (105, 126), (105, 127), (105, 128), (105, 129), (105, 131), (106, 124), (106, 126), (106, 127), (106, 128), (106, 129), (106, 131), (107, 125), (107, 127), (107, 128), (107, 129), (107, 131), (108, 125), (108, 128), (108, 129), (108, 131), (109, 126), (109, 129), (109, 130), (110, 127), (110, 130), (111, 128), (111, 129), )
coordinates_FFD700 = ((67, 133),
(68, 133), (68, 134), (69, 133), (69, 134), (70, 133), (70, 134), (71, 133), (72, 133), (72, 135), (73, 133), (73, 135), (74, 134), (74, 135), (75, 134), (75, 136), (76, 134), (76, 136), (77, 135), (77, 137), (78, 136), (78, 138), (79, 136), (79, 140), (79, 141), (80, 137), (80, 142), (80, 144), (81, 138), (81, 140), (81, 141), (81, 144), (82, 144), (82, 145), (83, 145), (84, 145), (84, 146), (85, 145), (85, 146), (86, 145), )
coordinates_D02090 = ((63, 134),
(63, 135), (64, 134), (64, 136), (65, 134), (65, 137), (66, 135), (66, 138), (67, 137), (67, 139), (68, 138), (69, 138), (69, 141), (70, 140), (70, 142), (71, 139), (71, 141), (71, 143), (72, 140), (72, 142), (72, 145), (73, 141), (73, 143), (73, 147), (74, 142), (74, 144), (74, 145), (74, 148), (75, 143), (75, 147), (75, 148), (76, 147), (77, 148), (78, 148), (79, 149), )
coordinates_F0E68C = ((62, 143),
(62, 145), (63, 142), (63, 146), (63, 147), (63, 148), (63, 149), (63, 150), (64, 141), (64, 143), (64, 144), (64, 145), (64, 153), (65, 141), (65, 143), (65, 144), (65, 145), (65, 146), (65, 149), (65, 151), (65, 154), (66, 141), (66, 145), (66, 147), (66, 150), (66, 152), (66, 154), (67, 142), (67, 144), (67, 147), (67, 151), (67, 153), (67, 154), (67, 158), (68, 145), (68, 148), (68, 152), (68, 154), (68, 156), (68, 157), (68, 159), (69, 147), (69, 150), (69, 159), (70, 148), (70, 150), (70, 153), (70, 154), (70, 155), (70, 156), (70, 157), (70, 158), (70, 160), (71, 149), (71, 151), (71, 157), (71, 158), (71, 160), (72, 149), (72, 151), (72, 157), (72, 160), (73, 150), (73, 152), (73, 157), (73, 160), (74, 150), (74, 152), (74, 156), (74, 158), (74, 160), (75, 151), (75, 156),
(75, 159), (76, 151), (76, 155), (77, 151), (77, 155), (77, 158), (78, 151), (78, 155), (78, 157), (79, 155), (79, 156), (80, 155), )
coordinates_FFFF00 = ((93, 142),
(93, 149), (94, 142), (94, 144), (94, 145), (94, 146), (94, 147), (94, 148), (94, 149), (94, 150), (94, 157), (94, 159), (94, 161), (95, 142), (95, 150), (95, 157), (95, 162), (96, 142), (96, 144), (96, 145), (96, 146), (96, 147), (96, 148), (96, 150), (96, 157), (96, 159), (96, 160), (96, 161), (96, 163), (97, 142), (97, 144), (97, 145), (97, 146), (97, 147), (97, 148), (97, 150), (97, 158), (97, 160), (97, 161), (98, 142), (98, 144), (98, 145), (98, 146), (98, 147), (98, 148), (98, 150), (98, 158), (98, 160), (98, 161), (98, 162), (98, 164), (99, 142), (99, 144), (99, 145), (99, 146), (99, 147), (99, 148), (99, 149), (99, 151), (99, 158), (99, 160), (99, 161), (99, 162), (99, 163), (99, 165), (100, 142), (100, 144), (100, 145), (100, 146), (100, 147), (100, 148), (100, 149), (100, 151),
(100, 158), (100, 160), (100, 161), (100, 162), (100, 163), (100, 164), (100, 166), (101, 142), (101, 144), (101, 145), (101, 146), (101, 147), (101, 148), (101, 149), (101, 150), (101, 152), (101, 158), (101, 160), (101, 161), (101, 162), (101, 163), (101, 164), (101, 166), (102, 142), (102, 144), (102, 145), (102, 146), (102, 147), (102, 148), (102, 149), (102, 150), (102, 151), (102, 153), (102, 157), (102, 159), (102, 160), (102, 161), (102, 162), (102, 163), (102, 164), (102, 166), (103, 145), (103, 146), (103, 147), (103, 148), (103, 149), (103, 150), (103, 151), (103, 152), (103, 154), (103, 155), (103, 156), (103, 158), (103, 159), (103, 160), (103, 161), (103, 162), (103, 163), (103, 166), (104, 144), (104, 146), (104, 147), (104, 148), (104, 149), (104, 150), (104, 151), (104, 152), (104, 153), (104, 157), (104, 158), (104, 159), (104, 160),
(104, 165), (105, 145), (105, 147), (105, 148), (105, 149), (105, 150), (105, 151), (105, 152), (105, 153), (105, 154), (105, 155), (105, 161), (105, 163), (106, 145), (106, 147), (106, 148), (106, 149), (106, 150), (106, 151), (106, 152), (106, 156), (106, 157), (106, 158), (106, 159), (106, 160), (107, 146), (107, 148), (107, 149), (107, 153), (107, 155), (108, 147), (108, 150), (108, 151), (108, 152), (109, 148), )
coordinates_32CD32 = ((74, 162),
(75, 164), (76, 161), (76, 166), (77, 160), (77, 162), (77, 163), (77, 164), (77, 167), (78, 159), (78, 161), (78, 162), (78, 163), (78, 164), (78, 165), (78, 168), (79, 158), (79, 160), (79, 161), (79, 162), (79, 163), (79, 164), (79, 165), (79, 166), (79, 168), (80, 157), (80, 160), (80, 161), (80, 162), (80, 163), (80, 164), (80, 165), (80, 166), (80, 167), (80, 169), (81, 156), (81, 159), (81, 160), (81, 161), (81, 162), (81, 163), (81, 164), (81, 165), (81, 166), (81, 167), (81, 169), (82, 155), (82, 157), (82, 158), (82, 159), (82, 160), (82, 161), (82, 162), (82, 163), (82, 164), (82, 165), (82, 166), (82, 167), (82, 169), (83, 155), (83, 160), (83, 162), (83, 163), (83, 164), (83, 165), (83, 166), (83, 167), (83, 169), (84, 160), (84, 162), (84, 163), (84, 164), (84, 165),
(84, 166), (84, 168), (85, 160), (85, 162), (85, 163), (85, 164), (85, 165), (85, 166), (85, 168), (86, 161), (86, 163), (86, 164), (86, 165), (86, 167), (87, 162), (87, 164), (87, 165), (87, 167), (88, 163), (88, 165), (88, 167), (89, 163), (89, 164), (89, 165), (89, 166), (89, 168), (90, 163), (90, 165), (90, 166), (90, 167), (90, 169), (91, 162), (91, 164), (91, 165), (91, 166), (91, 167), (91, 169), (92, 161), (92, 164), (92, 165), (92, 166), (92, 167), (92, 169), (93, 165), (93, 166), (93, 167), (93, 169), (94, 163), (94, 166), (94, 167), (94, 169), (95, 164), (95, 166), (95, 167), (95, 169), (96, 165), (96, 167), (96, 169), (97, 166), (97, 169), (98, 167), (98, 168), )
|
coordinates_e0_e1_e1 = ((123, 106), (123, 108), (123, 109), (123, 110), (123, 112), (124, 106), (124, 110), (124, 125), (124, 127), (124, 128), (124, 129), (124, 130), (124, 132), (125, 106), (125, 108), (125, 110), (125, 126), (125, 132), (126, 106), (126, 109), (126, 126), (126, 128), (126, 129), (126, 130), (126, 132), (127, 85), (127, 99), (127, 100), (127, 106), (127, 109), (127, 126), (127, 128), (127, 129), (127, 130), (127, 132), (128, 83), (128, 86), (128, 99), (128, 101), (128, 106), (128, 109), (128, 126), (128, 128), (128, 129), (128, 130), (128, 131), (128, 133), (129, 71), (129, 73), (129, 74), (129, 76), (129, 82), (129, 86), (129, 91), (129, 99), (129, 102), (129, 106), (129, 109), (129, 124), (129, 126), (129, 127), (129, 128), (129, 129), (129, 130), (129, 131), (129, 133), (130, 72), (130, 78), (130, 79), (130, 80), (130, 83), (130, 84), (130, 85), (130, 91), (130, 99), (130, 101), (130, 104), (130, 106), (130, 123), (130, 126), (130, 127), (130, 131), (130, 133), (131, 74), (131, 75), (131, 82), (131, 83), (131, 84), (131, 85), (131, 86), (131, 92), (131, 99), (131, 100), (131, 101), (131, 102), (131, 106), (131, 108), (131, 123), (131, 125), (131, 128), (131, 129), (131, 133), (132, 77), (132, 78), (132, 79), (132, 80), (132, 81), (132, 82), (132, 83), (132, 84), (132, 85), (132, 86), (132, 87), (132, 88), (132, 89), (132, 90), (132, 92), (132, 99), (132, 101), (132, 102), (132, 103), (132, 104), (132, 105), (132, 107), (132, 122), (132, 124), (132, 125), (132, 127), (132, 131), (132, 134), (133, 78), (133, 80), (133, 81), (133, 82), (133, 83), (133, 84), (133, 85), (133, 86), (133, 87), (133, 88), (133, 89), (133, 90), (133, 91), (133, 93), (133, 99), (133, 101), (133, 102), (133, 103), (133, 104), (133, 106), (133, 121), (133, 123), (133, 124), (133, 126), (133, 132), (133, 134), (134, 78), (134, 80), (134, 81), (134, 82), (134, 83), (134, 84), (134, 85), (134, 86), (134, 87), (134, 88), (134, 89), (134, 90), (134, 91), (134, 92), (134, 98), (134, 99), (134, 100), (134, 101), (134, 102), (134, 103), (134, 104), (134, 106), (134, 120), (134, 122), (134, 123), (134, 125), (134, 132), (134, 134), (135, 78), (135, 80), (135, 81), (135, 82), (135, 83), (135, 84), (135, 85), (135, 86), (135, 87), (135, 88), (135, 89), (135, 90), (135, 91), (135, 92), (135, 93), (135, 96), (135, 97), (135, 99), (135, 100), (135, 101), (135, 102), (135, 103), (135, 104), (135, 106), (135, 119), (135, 121), (135, 122), (135, 124), (135, 132), (135, 134), (136, 78), (136, 80), (136, 81), (136, 82), (136, 83), (136, 84), (136, 85), (136, 86), (136, 87), (136, 88), (136, 89), (136, 90), (136, 91), (136, 92), (136, 93), (136, 94), (136, 95), (136, 98), (136, 99), (136, 100), (136, 101), (136, 102), (136, 103), (136, 104), (136, 105), (136, 107), (136, 118), (136, 120), (136, 121), (136, 123), (136, 132), (136, 134), (137, 77), (137, 79), (137, 80), (137, 81), (137, 82), (137, 83), (137, 84), (137, 85), (137, 86), (137, 87), (137, 88), (137, 89), (137, 90), (137, 91), (137, 92), (137, 93), (137, 94), (137, 95), (137, 96), (137, 97), (137, 98), (137, 99), (137, 100), (137, 101), (137, 102), (137, 103), (137, 104), (137, 106), (137, 117), (137, 119), (137, 120), (137, 121), (137, 123), (137, 132), (137, 134), (138, 76), (138, 78), (138, 79), (138, 80), (138, 81), (138, 87), (138, 88), (138, 89), (138, 90), (138, 91), (138, 92), (138, 93), (138, 94), (138, 95), (138, 96), (138, 97), (138, 98), (138, 99), (138, 100), (138, 101), (138, 102), (138, 103), (138, 104), (138, 106), (138, 116), (138, 118), (138, 119), (138, 120), (138, 122), (138, 132), (138, 134), (139, 74), (139, 77), (139, 83), (139, 84), (139, 85), (139, 86), (139, 91), (139, 92), (139, 93), (139, 94), (139, 95), (139, 96), (139, 97), (139, 98), (139, 99), (139, 100), (139, 101), (139, 102), (139, 103), (139, 104), (139, 106), (139, 117), (139, 118), (139, 119), (139, 120), (139, 122), (139, 132), (139, 134), (139, 136), (140, 73), (140, 78), (140, 79), (140, 80), (140, 81), (140, 87), (140, 89), (140, 90), (140, 91), (140, 92), (140, 93), (140, 94), (140, 95), (140, 96), (140, 97), (140, 98), (140, 99), (140, 100), (140, 101), (140, 102), (140, 103), (140, 104), (140, 106), (140, 115), (140, 117), (140, 118), (140, 121), (140, 132), (140, 136), (141, 72), (141, 77), (141, 91), (141, 93), (141, 94), (141, 95), (141, 96), (141, 97), (141, 98), (141, 99), (141, 100), (141, 101), (141, 102), (141, 103), (141, 104), (141, 105), (141, 107), (141, 114), (141, 116), (141, 119), (141, 133), (141, 136), (142, 73), (142, 75), (142, 92), (142, 94), (142, 95), (142, 96), (142, 97), (142, 98), (142, 99), (142, 100), (142, 101), (142, 102), (142, 103), (142, 104), (142, 105), (142, 106), (142, 109), (142, 110), (142, 111), (142, 112), (142, 115), (142, 118), (142, 133), (142, 136), (143, 92), (143, 93), (143, 94), (143, 95), (143, 96), (143, 97), (143, 98), (143, 99), (143, 100), (143, 101), (143, 102), (143, 103), (143, 104), (143, 105), (143, 106), (143, 107), (143, 111), (143, 114), (143, 116), (143, 137), (144, 92), (144, 93), (144, 94), (144, 95), (144, 96), (144, 97), (144, 98), (144, 99), (144, 100), (144, 101), (144, 102), (144, 103), (144, 104), (144, 105), (144, 106), (144, 107), (144, 108), (144, 109), (144, 110), (144, 111), (144, 112), (144, 113), (144, 115), (144, 137), (145, 92), (145, 94), (145, 95), (145, 96), (145, 97), (145, 98), (145, 99), (145, 100), (145, 101), (145, 102), (145, 103), (145, 104), (145, 105), (145, 106), (145, 107), (145, 108), (145, 109), (145, 110), (145, 111), (145, 112), (145, 114), (145, 137), (146, 91), (146, 93), (146, 94), (146, 95), (146, 96), (146, 97), (146, 98), (146, 99), (146, 100), (146, 101), (146, 102), (146, 103), (146, 104), (146, 105), (146, 106), (146, 107), (146, 108), (146, 109), (146, 110), (146, 111), (146, 112), (146, 114), (146, 137), (146, 138), (147, 90), (147, 92), (147, 93), (147, 94), (147, 95), (147, 96), (147, 97), (147, 98), (147, 99), (147, 100), (147, 101), (147, 102), (147, 103), (147, 104), (147, 105), (147, 106), (147, 107), (147, 108), (147, 109), (147, 110), (147, 111), (147, 113), (147, 137), (147, 138), (148, 86), (148, 87), (148, 88), (148, 89), (148, 91), (148, 92), (148, 93), (148, 94), (148, 95), (148, 96), (148, 97), (148, 98), (148, 99), (148, 100), (148, 101), (148, 102), (148, 103), (148, 104), (148, 105), (148, 106), (148, 107), (148, 108), (148, 109), (148, 110), (148, 111), (148, 113), (148, 136), (148, 139), (148, 155), (148, 156), (148, 157), (148, 159), (149, 84), (149, 90), (149, 91), (149, 92), (149, 93), (149, 94), (149, 95), (149, 96), (149, 97), (149, 98), (149, 99), (149, 100), (149, 101), (149, 102), (149, 103), (149, 104), (149, 105), (149, 106), (149, 107), (149, 108), (149, 109), (149, 110), (149, 111), (149, 113), (149, 136), (149, 139), (149, 153), (149, 160), (150, 85), (150, 86), (150, 87), (150, 88), (150, 89), (150, 90), (150, 91), (150, 92), (150, 93), (150, 94), (150, 95), (150, 96), (150, 97), (150, 98), (150, 100), (150, 101), (150, 102), (150, 103), (150, 104), (150, 105), (150, 106), (150, 107), (150, 108), (150, 109), (150, 110), (150, 111), (150, 112), (150, 114), (150, 135), (150, 137), (150, 138), (150, 139), (150, 140), (150, 152), (150, 155), (150, 156), (150, 157), (150, 158), (150, 160), (151, 87), (151, 89), (151, 90), (151, 91), (151, 92), (151, 93), (151, 94), (151, 95), (151, 96), (151, 99), (151, 101), (151, 102), (151, 103), (151, 104), (151, 105), (151, 106), (151, 107), (151, 108), (151, 109), (151, 110), (151, 111), (151, 112), (151, 113), (151, 116), (151, 134), (151, 136), (151, 137), (151, 138), (151, 140), (151, 152), (151, 154), (151, 155), (151, 156), (151, 157), (151, 159), (152, 87), (152, 89), (152, 90), (152, 91), (152, 92), (152, 93), (152, 94), (152, 95), (152, 97), (152, 102), (152, 103), (152, 104), (152, 105), (152, 106), (152, 107), (152, 108), (152, 109), (152, 110), (152, 111), (152, 112), (152, 113), (152, 114), (152, 118), (152, 130), (152, 131), (152, 132), (152, 135), (152, 136), (152, 137), (152, 138), (152, 139), (152, 141), (152, 151), (152, 153), (152, 154), (152, 155), (152, 156), (152, 158), (153, 86), (153, 88), (153, 89), (153, 90), (153, 91), (153, 92), (153, 93), (153, 94), (153, 96), (153, 101), (153, 103), (153, 104), (153, 105), (153, 106), (153, 107), (153, 108), (153, 109), (153, 110), (153, 111), (153, 112), (153, 113), (153, 114), (153, 115), (153, 116), (153, 119), (153, 120), (153, 121), (153, 122), (153, 123), (153, 124), (153, 125), (153, 126), (153, 127), (153, 128), (153, 129), (153, 134), (153, 145), (153, 151), (153, 153), (153, 154), (153, 155), (153, 157), (154, 86), (154, 90), (154, 91), (154, 92), (154, 93), (154, 95), (154, 102), (154, 104), (154, 105), (154, 106), (154, 107), (154, 108), (154, 109), (154, 110), (154, 111), (154, 112), (154, 113), (154, 130), (154, 131), (154, 132), (154, 135), (154, 136), (154, 137), (154, 138), (154, 139), (154, 140), (154, 141), (154, 143), (154, 146), (154, 147), (154, 150), (154, 152), (154, 153), (154, 154), (154, 156), (155, 91), (155, 92), (155, 94), (155, 102), (155, 104), (155, 105), (155, 106), (155, 107), (155, 108), (155, 109), (155, 110), (155, 111), (155, 112), (155, 113), (155, 115), (155, 116), (155, 117), (155, 118), (155, 119), (155, 122), (155, 123), (155, 124), (155, 125), (155, 126), (155, 127), (155, 128), (155, 129), (155, 130), (155, 133), (155, 145), (155, 148), (155, 151), (155, 152), (155, 153), (155, 154), (155, 156), (156, 90), (156, 92), (156, 94), (156, 102), (156, 104), (156, 105), (156, 106), (156, 107), (156, 108), (156, 109), (156, 110), (156, 111), (156, 113), (156, 120), (156, 124), (156, 125), (156, 126), (156, 127), (156, 128), (156, 129), (156, 132), (156, 147), (156, 150), (156, 151), (156, 152), (156, 153), (156, 154), (156, 156), (157, 91), (157, 94), (157, 103), (157, 105), (157, 106), (157, 107), (157, 108), (157, 109), (157, 110), (157, 111), (157, 113), (157, 122), (157, 126), (157, 127), (157, 130), (157, 147), (157, 149), (157, 150), (157, 151), (157, 152), (157, 153), (157, 154), (157, 156), (158, 91), (158, 94), (158, 103), (158, 105), (158, 106), (158, 107), (158, 108), (158, 109), (158, 110), (158, 112), (158, 124), (158, 129), (158, 148), (158, 150), (158, 151), (158, 152), (158, 153), (158, 154), (158, 156), (159, 92), (159, 94), (159, 104), (159, 106), (159, 107), (159, 108), (159, 109), (159, 110), (159, 112), (159, 126), (159, 127), (159, 148), (159, 150), (159, 151), (159, 152), (159, 153), (159, 154), (159, 156), (160, 93), (160, 94), (160, 104), (160, 106), (160, 107), (160, 108), (160, 109), (160, 111), (160, 147), (160, 149), (160, 150), (160, 151), (160, 152), (160, 153), (160, 154), (160, 155), (160, 157), (161, 93), (161, 94), (161, 104), (161, 106), (161, 107), (161, 108), (161, 109), (161, 111), (161, 147), (161, 149), (161, 150), (161, 151), (161, 152), (161, 153), (161, 154), (161, 155), (161, 158), (162, 93), (162, 94), (162, 105), (162, 107), (162, 108), (162, 109), (162, 111), (162, 112), (162, 146), (162, 149), (162, 150), (162, 151), (162, 152), (162, 153), (162, 156), (162, 157), (162, 159), (163, 105), (163, 107), (163, 108), (163, 109), (163, 110), (163, 112), (163, 148), (163, 150), (163, 151), (163, 152), (163, 154), (163, 155), (163, 159), (163, 160), (164, 105), (164, 107), (164, 108), (164, 109), (164, 110), (164, 112), (164, 149), (164, 151), (164, 153), (164, 160), (164, 161), (165, 106), (165, 108), (165, 109), (165, 110), (165, 111), (165, 113), (165, 150), (165, 152), (165, 161), (165, 162), (166, 106), (166, 112), (166, 114), (166, 142), (166, 149), (166, 151), (166, 161), (167, 106), (167, 108), (167, 109), (167, 110), (167, 111), (167, 115), (167, 141), (167, 149), (167, 150), (167, 161), (167, 163), (168, 105), (168, 106), (168, 112), (168, 113), (168, 116), (168, 140), (168, 141), (168, 149), (168, 161), (168, 162), (169, 105), (169, 115), (169, 117), (169, 139), (169, 141), (169, 149), (169, 161), (170, 104), (170, 116), (170, 118), (170, 138), (170, 140), (170, 149), (170, 161), (171, 98), (171, 99), (171, 100), (171, 101), (171, 102), (171, 104), (171, 118), (171, 120), (171, 138), (171, 139), (171, 149), (172, 99), (172, 103), (172, 120), (172, 122), (172, 137), (172, 138), (172, 149), (172, 150), (173, 101), (173, 103), (173, 122), (173, 149), (173, 150), (174, 102), (174, 103), (174, 149), (175, 103), (175, 104), (175, 133), (175, 149), (176, 105), (176, 132), (176, 149), (177, 106), (177, 107), (177, 131), (177, 148), (178, 107), (178, 108), (178, 147), (179, 146))
coordinates_e1_e1_e1 = ((65, 113), (65, 116), (66, 107), (66, 109), (66, 110), (66, 111), (66, 118), (67, 106), (67, 113), (67, 114), (67, 115), (67, 116), (67, 120), (67, 127), (68, 104), (68, 107), (68, 108), (68, 109), (68, 110), (68, 111), (68, 112), (68, 113), (68, 114), (68, 115), (68, 116), (68, 117), (68, 118), (68, 121), (68, 122), (68, 123), (68, 124), (68, 125), (68, 127), (69, 103), (69, 106), (69, 107), (69, 108), (69, 109), (69, 110), (69, 111), (69, 112), (69, 113), (69, 114), (69, 115), (69, 116), (69, 117), (69, 118), (69, 119), (69, 120), (69, 123), (69, 126), (69, 136), (70, 101), (70, 107), (70, 108), (70, 109), (70, 110), (70, 111), (70, 112), (70, 113), (70, 117), (70, 118), (70, 119), (70, 120), (70, 121), (70, 122), (70, 123), (70, 124), (70, 126), (70, 136), (71, 97), (71, 98), (71, 99), (71, 100), (71, 101), (71, 102), (71, 103), (71, 104), (71, 105), (71, 108), (71, 109), (71, 110), (71, 111), (71, 112), (71, 114), (71, 115), (71, 116), (71, 117), (71, 118), (71, 119), (71, 120), (71, 121), (71, 122), (71, 123), (71, 124), (71, 126), (71, 137), (72, 107), (72, 110), (72, 111), (72, 113), (72, 118), (72, 119), (72, 120), (72, 121), (72, 122), (72, 123), (72, 124), (72, 126), (72, 137), (72, 154), (72, 155), (73, 108), (73, 112), (73, 118), (73, 120), (73, 121), (73, 127), (73, 137), (73, 138), (73, 154), (74, 109), (74, 111), (74, 118), (74, 120), (74, 122), (74, 123), (74, 124), (74, 125), (74, 127), (74, 138), (74, 139), (74, 154), (75, 111), (75, 117), (75, 121), (75, 138), (75, 140), (76, 117), (76, 120), (76, 139), (76, 141), (76, 145), (76, 153), (77, 116), (77, 119), (77, 140), (77, 142), (77, 143), (77, 145), (77, 153), (78, 116), (78, 118), (78, 144), (78, 146), (78, 153), (79, 113), (79, 117), (79, 145), (79, 147), (79, 152), (80, 113), (80, 116), (80, 146), (80, 147), (80, 151), (80, 152), (81, 113), (81, 115), (81, 147), (81, 152), (82, 112), (82, 113), (82, 115), (82, 147), (82, 152), (83, 98), (83, 112), (83, 114), (83, 148), (83, 150), (83, 151), (83, 153), (84, 97), (84, 98), (84, 107), (84, 109), (84, 110), (84, 112), (84, 114), (84, 148), (84, 150), (84, 151), (84, 152), (84, 153), (84, 158), (85, 79), (85, 82), (85, 83), (85, 98), (85, 107), (85, 112), (85, 113), (85, 115), (85, 148), (85, 150), (85, 151), (85, 152), (85, 153), (85, 155), (85, 156), (85, 158), (86, 78), (86, 84), (86, 94), (86, 98), (86, 107), (86, 109), (86, 110), (86, 111), (86, 112), (86, 113), (86, 115), (86, 133), (86, 148), (86, 150), (86, 151), (86, 152), (86, 153), (86, 158), (87, 78), (87, 80), (87, 81), (87, 82), (87, 83), (87, 86), (87, 92), (87, 96), (87, 98), (87, 107), (87, 109), (87, 110), (87, 111), (87, 112), (87, 113), (87, 115), (87, 134), (87, 147), (87, 149), (87, 150), (87, 151), (87, 152), (87, 153), (87, 154), (87, 155), (87, 156), (87, 157), (87, 159), (88, 77), (88, 79), (88, 80), (88, 81), (88, 82), (88, 83), (88, 84), (88, 87), (88, 91), (88, 94), (88, 95), (88, 96), (88, 98), (88, 107), (88, 109), (88, 110), (88, 111), (88, 112), (88, 113), (88, 114), (88, 116), (88, 133), (88, 135), (88, 145), (88, 148), (88, 149), (88, 150), (88, 151), (88, 152), (88, 153), (88, 154), (88, 155), (88, 156), (88, 157), (88, 158), (88, 161), (89, 77), (89, 89), (89, 92), (89, 93), (89, 94), (89, 95), (89, 96), (89, 98), (89, 107), (89, 109), (89, 110), (89, 111), (89, 112), (89, 113), (89, 114), (89, 116), (89, 125), (89, 127), (89, 128), (89, 129), (89, 132), (89, 133), (89, 134), (89, 137), (89, 145), (89, 147), (89, 148), (89, 149), (89, 150), (89, 151), (89, 152), (89, 153), (89, 154), (89, 155), (89, 156), (89, 157), (89, 158), (89, 159), (89, 161), (90, 78), (90, 80), (90, 81), (90, 82), (90, 83), (90, 84), (90, 85), (90, 86), (90, 91), (90, 92), (90, 93), (90, 94), (90, 95), (90, 96), (90, 98), (90, 106), (90, 108), (90, 109), (90, 110), (90, 111), (90, 112), (90, 113), (90, 114), (90, 115), (90, 116), (90, 117), (90, 123), (90, 124), (90, 130), (90, 131), (90, 132), (90, 133), (90, 134), (90, 135), (90, 138), (90, 139), (90, 151), (90, 152), (90, 153), (90, 154), (90, 155), (90, 156), (90, 157), (90, 160), (91, 87), (91, 88), (91, 91), (91, 92), (91, 93), (91, 94), (91, 95), (91, 96), (91, 97), (91, 99), (91, 105), (91, 107), (91, 108), (91, 109), (91, 110), (91, 111), (91, 112), (91, 113), (91, 114), (91, 115), (91, 116), (91, 119), (91, 120), (91, 121), (91, 125), (91, 126), (91, 127), (91, 128), (91, 129), (91, 130), (91, 131), (91, 132), (91, 133), (91, 134), (91, 135), (91, 136), (91, 137), (91, 141), (91, 142), (91, 143), (91, 144), (91, 145), (91, 146), (91, 147), (91, 148), (91, 149), (91, 151), (91, 152), (91, 153), (91, 154), (91, 155), (91, 156), (91, 159), (92, 89), (92, 92), (92, 93), (92, 94), (92, 95), (92, 96), (92, 97), (92, 98), (92, 101), (92, 104), (92, 106), (92, 107), (92, 108), (92, 109), (92, 110), (92, 111), (92, 112), (92, 113), (92, 114), (92, 115), (92, 120), (92, 122), (92, 134), (92, 135), (92, 136), (92, 138), (92, 151), (92, 152), (92, 153), (92, 154), (92, 155), (93, 91), (93, 93), (93, 94), (93, 95), (93, 96), (93, 97), (93, 98), (93, 99), (93, 102), (93, 103), (93, 106), (93, 107), (93, 108), (93, 109), (93, 110), (93, 111), (93, 112), (93, 113), (93, 114), (93, 116), (93, 117), (93, 119), (93, 123), (93, 125), (93, 126), (93, 127), (93, 128), (93, 129), (93, 130), (93, 131), (93, 132), (93, 135), (93, 136), (93, 138), (93, 152), (93, 154), (93, 156), (94, 92), (94, 94), (94, 95), (94, 96), (94, 97), (94, 98), (94, 99), (94, 100), (94, 101), (94, 102), (94, 104), (94, 105), (94, 106), (94, 107), (94, 108), (94, 109), (94, 110), (94, 111), (94, 112), (94, 113), (94, 115), (94, 134), (94, 136), (94, 138), (94, 152), (94, 155), (95, 92), (95, 94), (95, 95), (95, 96), (95, 97), (95, 98), (95, 99), (95, 100), (95, 101), (95, 102), (95, 103), (95, 104), (95, 105), (95, 106), (95, 107), (95, 108), (95, 109), (95, 110), (95, 111), (95, 112), (95, 114), (95, 135), (95, 138), (95, 152), (95, 155), (96, 92), (96, 94), (96, 95), (96, 96), (96, 97), (96, 98), (96, 99), (96, 100), (96, 101), (96, 102), (96, 103), (96, 104), (96, 105), (96, 106), (96, 107), (96, 108), (96, 109), (96, 110), (96, 111), (96, 113), (96, 136), (96, 137), (96, 152), (96, 155), (97, 91), (97, 93), (97, 94), (97, 95), (97, 96), (97, 97), (97, 98), (97, 99), (97, 100), (97, 101), (97, 102), (97, 103), (97, 104), (97, 105), (97, 106), (97, 107), (97, 108), (97, 109), (97, 110), (97, 111), (97, 113), (97, 137), (97, 152), (97, 155), (98, 89), (98, 92), (98, 93), (98, 94), (98, 95), (98, 96), (98, 97), (98, 98), (98, 99), (98, 100), (98, 101), (98, 102), (98, 103), (98, 104), (98, 105), (98, 106), (98, 107), (98, 108), (98, 109), (98, 110), (98, 111), (98, 113), (98, 137), (98, 153), (98, 156), (99, 91), (99, 92), (99, 93), (99, 94), (99, 95), (99, 96), (99, 97), (99, 98), (99, 99), (99, 100), (99, 101), (99, 102), (99, 103), (99, 104), (99, 105), (99, 106), (99, 107), (99, 108), (99, 109), (99, 110), (99, 111), (99, 112), (99, 114), (99, 137), (99, 153), (99, 156), (100, 88), (100, 90), (100, 91), (100, 92), (100, 93), (100, 94), (100, 95), (100, 96), (100, 97), (100, 98), (100, 99), (100, 100), (100, 101), (100, 102), (100, 103), (100, 104), (100, 105), (100, 106), (100, 107), (100, 108), (100, 109), (100, 110), (100, 111), (100, 112), (100, 114), (100, 137), (100, 153), (100, 156), (101, 88), (101, 90), (101, 91), (101, 92), (101, 93), (101, 94), (101, 95), (101, 96), (101, 97), (101, 98), (101, 99), (101, 100), (101, 101), (101, 102), (101, 103), (101, 104), (101, 105), (101, 106), (101, 107), (101, 113), (101, 115), (101, 137), (101, 154), (102, 86), (102, 88), (102, 89), (102, 90), (102, 91), (102, 92), (102, 93), (102, 94), (102, 95), (102, 96), (102, 97), (102, 98), (102, 99), (102, 100), (102, 101), (102, 102), (102, 103), (102, 104), (102, 105), (102, 106), (102, 109), (102, 110), (102, 111), (102, 114), (102, 116), (102, 137), (103, 74), (103, 85), (103, 88), (103, 89), (103, 90), (103, 91), (103, 92), (103, 93), (103, 94), (103, 95), (103, 96), (103, 97), (103, 98), (103, 99), (103, 100), (103, 101), (103, 102), (103, 103), (103, 104), (103, 105), (103, 107), (103, 113), (103, 115), (103, 118), (103, 136), (103, 137), (104, 75), (104, 82), (104, 83), (104, 86), (104, 87), (104, 88), (104, 89), (104, 90), (104, 91), (104, 92), (104, 93), (104, 94), (104, 95), (104, 96), (104, 97), (104, 98), (104, 99), (104, 100), (104, 101), (104, 102), (104, 103), (104, 104), (104, 106), (104, 114), (104, 116), (104, 119), (104, 135), (104, 136), (105, 76), (105, 78), (105, 79), (105, 80), (105, 81), (105, 85), (105, 86), (105, 87), (105, 88), (105, 89), (105, 90), (105, 91), (105, 92), (105, 93), (105, 94), (105, 95), (105, 96), (105, 97), (105, 98), (105, 99), (105, 100), (105, 101), (105, 102), (105, 103), (105, 104), (105, 106), (105, 115), (105, 117), (105, 118), (105, 121), (105, 122), (105, 133), (105, 136), (106, 76), (106, 82), (106, 83), (106, 84), (106, 85), (106, 86), (106, 87), (106, 88), (106, 89), (106, 90), (106, 91), (106, 92), (106, 93), (106, 94), (106, 95), (106, 96), (106, 97), (106, 98), (106, 99), (106, 100), (106, 101), (106, 102), (106, 103), (106, 104), (106, 106), (106, 116), (106, 118), (106, 119), (106, 120), (106, 122), (106, 133), (106, 136), (107, 76), (107, 78), (107, 79), (107, 80), (107, 81), (107, 82), (107, 83), (107, 84), (107, 85), (107, 86), (107, 87), (107, 88), (107, 89), (107, 90), (107, 91), (107, 92), (107, 93), (107, 94), (107, 95), (107, 96), (107, 97), (107, 98), (107, 99), (107, 100), (107, 101), (107, 102), (107, 103), (107, 104), (107, 106), (107, 117), (107, 119), (107, 120), (107, 122), (107, 133), (107, 136), (108, 76), (108, 78), (108, 79), (108, 80), (108, 81), (108, 82), (108, 83), (108, 84), (108, 85), (108, 86), (108, 87), (108, 88), (108, 89), (108, 90), (108, 91), (108, 92), (108, 93), (108, 94), (108, 95), (108, 96), (108, 97), (108, 98), (108, 99), (108, 100), (108, 101), (108, 102), (108, 103), (108, 104), (108, 106), (108, 118), (108, 120), (108, 121), (108, 123), (108, 133), (108, 136), (109, 76), (109, 78), (109, 79), (109, 80), (109, 81), (109, 82), (109, 83), (109, 84), (109, 85), (109, 86), (109, 87), (109, 88), (109, 89), (109, 90), (109, 91), (109, 92), (109, 93), (109, 94), (109, 95), (109, 96), (109, 97), (109, 98), (109, 99), (109, 100), (109, 101), (109, 102), (109, 103), (109, 104), (109, 106), (109, 119), (109, 122), (109, 124), (109, 133), (109, 135), (110, 74), (110, 76), (110, 77), (110, 78), (110, 79), (110, 80), (110, 81), (110, 82), (110, 83), (110, 84), (110, 85), (110, 86), (110, 92), (110, 93), (110, 94), (110, 95), (110, 96), (110, 97), (110, 98), (110, 99), (110, 100), (110, 101), (110, 102), (110, 103), (110, 104), (110, 106), (110, 120), (110, 123), (110, 125), (110, 132), (110, 135), (111, 71), (111, 72), (111, 73), (111, 76), (111, 77), (111, 78), (111, 83), (111, 84), (111, 85), (111, 88), (111, 89), (111, 90), (111, 92), (111, 93), (111, 94), (111, 95), (111, 96), (111, 97), (111, 98), (111, 99), (111, 100), (111, 101), (111, 102), (111, 103), (111, 104), (111, 105), (111, 107), (111, 121), (111, 123), (111, 132), (111, 135), (112, 69), (112, 74), (112, 75), (112, 76), (112, 77), (112, 79), (112, 80), (112, 81), (112, 84), (112, 86), (112, 92), (112, 94), (112, 95), (112, 96), (112, 97), (112, 98), (112, 99), (112, 100), (112, 101), (112, 105), (112, 107), (112, 123), (112, 124), (112, 127), (112, 131), (112, 134), (113, 68), (113, 71), (113, 72), (113, 73), (113, 74), (113, 75), (113, 76), (113, 78), (113, 83), (113, 85), (113, 92), (113, 94), (113, 95), (113, 96), (113, 97), (113, 98), (113, 99), (113, 100), (113, 103), (113, 105), (113, 106), (113, 108), (113, 128), (113, 129), (113, 133), (114, 67), (114, 69), (114, 70), (114, 71), (114, 72), (114, 73), (114, 74), (114, 75), (114, 77), (114, 84), (114, 92), (114, 101), (114, 105), (114, 108), (114, 124), (114, 126), (114, 127), (114, 131), (114, 133), (115, 70), (115, 71), (115, 76), (115, 93), (115, 95), (115, 96), (115, 97), (115, 98), (115, 99), (115, 101), (115, 105), (115, 106), (115, 109), (115, 126), (115, 128), (115, 129), (115, 130), (115, 132), (116, 68), (116, 71), (116, 72), (116, 73), (116, 75), (116, 106), (116, 109), (116, 127), (116, 129), (116, 130), (116, 132), (117, 69), (117, 71), (117, 106), (117, 109), (117, 126), (117, 128), (117, 129), (117, 130), (117, 132), (118, 106), (118, 110), (118, 126), (118, 128), (118, 129), (118, 130), (118, 132), (119, 106), (119, 110), (119, 125), (119, 127), (119, 128), (119, 129), (119, 130), (119, 132), (120, 107), (120, 109), (120, 112), (120, 124), (120, 132), (121, 110), (121, 113), (121, 122), (121, 124), (121, 125), (121, 126), (121, 127), (121, 128), (121, 129), (121, 130), (121, 132), (122, 120), (122, 132))
coordinates_fedab9 = ((127, 67), (128, 67), (128, 68), (129, 66), (129, 69), (130, 66), (130, 69), (131, 66), (131, 68), (131, 70), (132, 67), (132, 72), (133, 68), (133, 70), (133, 73), (133, 75), (134, 72), (134, 76), (135, 72), (135, 74), (135, 76), (136, 69), (136, 71), (136, 72), (136, 73), (136, 75), (137, 69), (137, 72), (137, 74), (138, 68), (138, 70), (138, 73), (139, 67), (139, 69), (139, 70), (139, 71), (139, 72), (140, 67), (140, 69), (140, 71), (141, 67), (141, 70), (141, 83), (141, 85), (142, 67), (142, 70), (142, 78), (142, 80), (142, 81), (142, 82), (142, 87), (142, 89), (143, 68), (143, 71), (143, 77), (143, 83), (143, 84), (143, 85), (143, 86), (143, 87), (143, 89), (144, 68), (144, 70), (144, 73), (144, 74), (144, 75), (144, 78), (144, 82), (145, 69), (145, 80), (146, 70), (146, 72), (146, 73), (146, 74), (146, 78), (147, 75))
coordinates_01_ced1 = ((144, 90), (145, 84), (145, 86), (145, 87), (145, 88), (145, 90), (146, 82), (146, 85), (146, 86), (146, 87), (146, 89), (147, 80), (147, 83), (148, 78), (148, 82), (149, 76), (149, 80), (149, 82), (150, 75), (150, 77), (150, 78), (150, 79), (150, 80), (150, 82), (151, 74), (151, 76), (151, 77), (151, 78), (151, 79), (151, 80), (151, 81), (151, 82), (151, 84), (152, 73), (152, 75), (152, 76), (152, 77), (152, 78), (152, 79), (152, 80), (152, 81), (152, 82), (153, 73), (153, 75), (153, 76), (153, 77), (153, 78), (153, 79), (153, 80), (153, 81), (153, 82), (153, 84), (154, 73), (154, 75), (154, 76), (154, 77), (154, 78), (154, 79), (154, 80), (154, 81), (154, 82), (154, 84), (155, 73), (155, 75), (155, 76), (155, 77), (155, 78), (155, 79), (155, 80), (155, 81), (155, 82), (155, 84), (155, 97), (156, 73), (156, 75), (156, 76), (156, 77), (156, 78), (156, 79), (156, 80), (156, 81), (156, 82), (156, 83), (156, 86), (156, 97), (157, 76), (157, 77), (157, 78), (157, 79), (157, 80), (157, 81), (157, 82), (157, 85), (157, 96), (157, 97), (158, 74), (158, 76), (158, 77), (158, 78), (158, 79), (158, 80), (158, 81), (158, 83), (158, 96), (158, 97), (159, 75), (159, 78), (159, 79), (159, 82), (159, 96), (159, 98), (160, 76), (160, 81), (160, 96), (160, 98), (161, 78), (161, 80), (161, 91), (161, 96), (161, 98), (162, 91), (162, 96), (162, 98), (163, 90), (163, 91), (163, 95), (163, 98), (164, 89), (164, 91), (164, 92), (164, 93), (164, 94), (164, 97), (165, 89), (165, 91), (165, 92), (165, 97), (166, 96), (167, 90), (167, 92), (167, 94))
coordinates_ffdab9 = ((96, 69), (96, 71), (97, 69), (97, 72), (98, 68), (98, 70), (98, 73), (99, 68), (99, 70), (99, 74), (100, 68), (100, 70), (100, 73), (100, 76), (100, 85), (100, 86), (101, 70), (101, 74), (101, 77), (101, 78), (101, 79), (101, 80), (101, 81), (101, 82), (101, 83), (101, 85), (102, 68), (102, 70), (102, 76), (102, 81), (102, 83), (103, 69), (103, 71), (103, 78), (103, 79), (104, 70), (104, 72), (105, 70), (105, 73), (106, 70), (106, 72), (106, 74), (107, 68), (107, 70), (107, 71), (107, 72), (107, 74), (108, 67), (108, 74), (109, 66), (109, 70), (109, 71), (109, 72), (110, 65), (110, 69), (111, 64), (111, 67), (112, 63), (112, 66), (113, 62), (113, 65), (114, 62), (114, 65), (115, 62), (115, 65), (116, 63), (116, 66), (117, 63), (117, 65), (117, 67), (118, 64), (118, 67), (119, 64), (119, 67), (120, 65), (120, 66))
coordinates_00_ced1 = ((76, 93), (76, 95), (77, 93), (77, 96), (77, 97), (77, 98), (77, 100), (78, 82), (78, 83), (78, 84), (78, 86), (78, 87), (78, 88), (78, 89), (78, 90), (78, 91), (78, 93), (78, 94), (78, 95), (78, 100), (79, 80), (79, 84), (79, 85), (79, 86), (79, 92), (79, 93), (79, 94), (79, 95), (79, 96), (79, 97), (79, 98), (79, 100), (80, 79), (80, 81), (80, 82), (80, 83), (80, 84), (80, 86), (80, 87), (80, 88), (80, 89), (80, 90), (80, 91), (80, 92), (80, 93), (80, 94), (80, 95), (80, 96), (80, 101), (81, 78), (81, 80), (81, 81), (81, 82), (81, 83), (81, 84), (81, 85), (81, 86), (81, 87), (81, 88), (81, 89), (81, 90), (81, 91), (81, 92), (81, 93), (81, 94), (81, 95), (81, 98), (81, 99), (81, 101), (82, 77), (82, 84), (82, 85), (82, 86), (82, 87), (82, 88), (82, 89), (82, 90), (82, 91), (82, 92), (82, 93), (82, 94), (82, 96), (82, 100), (82, 101), (83, 76), (83, 79), (83, 80), (83, 81), (83, 82), (83, 83), (83, 86), (83, 87), (83, 88), (83, 89), (83, 90), (83, 91), (83, 92), (83, 95), (83, 100), (83, 102), (84, 75), (84, 78), (84, 84), (84, 87), (84, 88), (84, 89), (84, 90), (84, 91), (84, 94), (84, 100), (84, 102), (85, 74), (85, 77), (85, 86), (85, 89), (85, 92), (85, 100), (85, 103), (86, 73), (86, 76), (86, 87), (86, 91), (86, 100), (86, 103), (87, 72), (87, 75), (87, 89), (87, 100), (87, 103), (88, 72), (88, 75), (88, 100), (88, 102), (88, 103), (89, 72), (89, 75), (89, 100), (89, 102), (90, 72), (90, 74), (90, 75), (90, 76), (90, 101), (90, 102), (91, 73), (91, 75), (91, 76), (92, 74), (92, 78), (93, 79), (93, 80), (93, 81), (93, 82), (93, 83), (93, 84), (93, 85), (93, 86), (93, 87), (94, 76), (94, 78), (94, 89), (95, 77), (95, 79), (95, 80), (95, 81), (95, 82), (95, 83), (95, 84), (95, 85), (95, 86), (95, 87), (95, 90), (96, 78), (96, 80), (96, 81), (96, 82), (96, 83), (96, 84), (96, 85), (96, 89), (97, 79), (97, 81), (97, 82), (97, 83), (97, 87), (98, 79), (98, 85), (99, 80), (99, 82), (99, 83))
coordinates_cc3_e4_e = ()
coordinates_771286 = ((123, 116), (124, 113), (124, 118), (124, 119), (124, 120), (124, 122), (125, 112), (125, 115), (125, 116), (125, 117), (125, 123), (126, 112), (126, 114), (126, 115), (126, 116), (126, 117), (126, 118), (126, 119), (126, 120), (126, 121), (126, 122), (126, 124), (127, 112), (127, 114), (127, 115), (127, 116), (127, 117), (127, 118), (127, 119), (127, 124), (128, 111), (128, 113), (128, 114), (128, 115), (128, 120), (128, 121), (128, 122), (129, 111), (129, 116), (129, 117), (129, 118), (129, 119), (130, 111), (130, 113), (130, 114), (130, 115), (131, 110), (131, 112), (132, 109), (132, 110), (133, 109), (134, 108))
coordinates_9_f522_d = ((157, 115), (157, 118), (158, 115), (158, 119), (158, 120), (158, 132), (159, 116), (159, 118), (159, 122), (159, 130), (159, 133), (160, 116), (160, 118), (160, 119), (160, 120), (160, 124), (160, 129), (160, 132), (160, 134), (161, 117), (161, 126), (161, 127), (161, 130), (161, 131), (161, 132), (161, 133), (161, 135), (162, 118), (162, 120), (162, 121), (162, 129), (162, 130), (162, 131), (162, 132), (162, 134), (163, 123), (163, 126), (163, 127), (163, 128), (163, 129), (163, 130), (163, 131), (163, 133), (164, 125), (164, 132), (165, 126), (165, 128), (165, 129), (165, 131))
coordinates_a0522_d = ((80, 123), (80, 124), (80, 125), (80, 126), (80, 127), (80, 128), (80, 129), (80, 130), (80, 131), (80, 132), (81, 121), (81, 134), (82, 120), (82, 123), (82, 124), (82, 125), (82, 126), (82, 127), (82, 128), (82, 129), (82, 130), (82, 131), (82, 132), (82, 136), (83, 120), (83, 121), (83, 122), (83, 123), (83, 124), (83, 125), (83, 126), (83, 127), (83, 128), (83, 129), (83, 130), (83, 131), (83, 134), (83, 137), (84, 120), (84, 122), (84, 123), (84, 124), (84, 125), (84, 126), (84, 127), (84, 128), (84, 129), (84, 130), (84, 133), (84, 135), (84, 138), (85, 120), (85, 122), (85, 123), (85, 124), (85, 125), (85, 131), (85, 134), (86, 121), (86, 123), (86, 126), (86, 127), (86, 128), (86, 130), (86, 135), (87, 121), (87, 125), (87, 137), (87, 141), (87, 143), (88, 121), (88, 123), (88, 138), (88, 139), (88, 143), (89, 142))
coordinates_781286 = ((110, 108), (111, 109), (111, 111), (112, 110), (112, 112), (113, 110), (113, 113), (114, 111), (114, 114), (115, 111), (115, 113), (115, 115), (115, 116), (115, 117), (115, 118), (115, 119), (115, 121), (116, 111), (116, 113), (116, 114), (116, 124), (117, 113), (117, 114), (117, 115), (117, 116), (117, 117), (117, 118), (117, 119), (117, 120), (117, 121), (117, 124), (118, 112), (118, 114), (118, 115), (118, 116), (118, 117), (118, 118), (118, 119), (118, 120), (118, 123), (119, 113), (119, 122), (120, 114), (120, 116), (120, 117), (120, 118), (120, 119), (120, 120))
coordinates_79_badc = ((131, 117), (131, 120), (132, 114), (132, 116), (132, 120), (133, 112), (133, 118), (134, 111), (134, 114), (134, 115), (134, 117), (135, 109), (135, 112), (135, 113), (135, 114), (135, 116), (136, 109), (136, 111), (136, 112), (136, 113), (136, 115), (137, 108), (137, 110), (137, 111), (137, 112), (138, 108), (138, 110), (138, 111), (138, 112), (138, 114), (139, 108), (139, 113), (140, 109), (140, 112))
coordinates_ed0000 = ((153, 99), (154, 99), (155, 99), (155, 100), (156, 99), (156, 100), (157, 88), (157, 99), (157, 101), (158, 86), (158, 89), (158, 99), (158, 101), (159, 85), (159, 89), (159, 100), (159, 101), (160, 84), (160, 86), (160, 87), (160, 89), (160, 100), (160, 102), (161, 82), (161, 85), (161, 86), (161, 87), (161, 89), (161, 100), (161, 102), (162, 81), (162, 84), (162, 85), (162, 86), (162, 88), (162, 100), (162, 102), (163, 81), (163, 83), (163, 84), (163, 85), (163, 87), (163, 100), (163, 103), (164, 81), (164, 83), (164, 84), (164, 85), (164, 87), (164, 100), (164, 103), (165, 81), (165, 83), (165, 84), (165, 85), (165, 87), (165, 99), (165, 101), (165, 103), (166, 81), (166, 83), (166, 84), (166, 85), (166, 87), (166, 98), (166, 100), (166, 101), (166, 102), (166, 104), (167, 81), (167, 83), (167, 84), (167, 85), (167, 87), (167, 97), (167, 99), (167, 100), (167, 101), (167, 102), (167, 104), (168, 82), (168, 84), (168, 85), (168, 86), (168, 88), (168, 96), (168, 103), (169, 82), (169, 84), (169, 85), (169, 86), (169, 88), (169, 92), (169, 93), (169, 94), (169, 97), (169, 98), (169, 99), (169, 100), (169, 102), (169, 108), (169, 110), (169, 111), (170, 83), (170, 88), (170, 92), (170, 96), (170, 107), (170, 113), (171, 84), (171, 87), (171, 92), (171, 94), (171, 106), (171, 108), (171, 109), (171, 110), (171, 111), (171, 115), (172, 92), (172, 94), (172, 105), (172, 107), (172, 108), (172, 109), (172, 110), (172, 111), (172, 112), (172, 113), (172, 116), (172, 117), (173, 91), (173, 93), (173, 94), (173, 95), (173, 96), (173, 105), (173, 107), (173, 108), (173, 109), (173, 110), (173, 111), (173, 112), (173, 113), (173, 114), (173, 115), (173, 118), (174, 91), (174, 93), (174, 94), (174, 98), (174, 99), (174, 106), (174, 109), (174, 110), (174, 111), (174, 112), (174, 113), (174, 114), (174, 115), (174, 116), (174, 117), (174, 120), (175, 91), (175, 95), (175, 96), (175, 97), (175, 101), (175, 107), (175, 110), (175, 111), (175, 112), (175, 113), (175, 114), (175, 115), (175, 116), (175, 117), (175, 118), (175, 119), (175, 122), (176, 92), (176, 94), (176, 98), (176, 102), (176, 109), (176, 111), (176, 112), (176, 113), (176, 114), (176, 115), (176, 116), (176, 117), (176, 118), (176, 119), (176, 120), (176, 121), (176, 123), (177, 99), (177, 103), (177, 110), (177, 112), (177, 113), (177, 114), (177, 115), (177, 116), (177, 117), (177, 118), (177, 119), (177, 120), (177, 121), (177, 122), (177, 124), (178, 100), (178, 104), (178, 110), (178, 112), (178, 113), (178, 114), (178, 115), (178, 116), (178, 117), (178, 118), (178, 119), (178, 120), (178, 121), (178, 124), (179, 101), (179, 105), (179, 110), (179, 111), (179, 112), (179, 113), (179, 114), (179, 115), (179, 116), (179, 117), (179, 118), (179, 119), (179, 120), (179, 122), (180, 104), (180, 107), (180, 108), (180, 109), (180, 110), (180, 111), (180, 112), (180, 113), (180, 114), (180, 115), (180, 116), (180, 117), (180, 118), (180, 119), (180, 121), (181, 105), (181, 114), (181, 115), (181, 120), (182, 110), (182, 111), (182, 112), (182, 113), (182, 116), (182, 117), (182, 119), (183, 106), (183, 108), (183, 114), (183, 115))
coordinates_7_abadc = ((104, 109), (104, 111), (105, 108), (105, 112), (106, 108), (106, 110), (106, 111), (106, 113), (107, 109), (107, 111), (107, 112), (107, 114), (108, 109), (108, 112), (108, 113), (109, 110), (109, 113), (109, 114), (109, 117), (110, 112), (110, 114), (110, 115), (110, 118), (111, 113), (111, 116), (111, 119), (112, 114), (112, 120), (113, 116), (113, 118), (113, 119), (113, 121))
coordinates_633264 = ((77, 102), (77, 104), (78, 106), (79, 103), (79, 107), (80, 103), (80, 108), (81, 103), (81, 105), (81, 106), (82, 104), (82, 107), (82, 109), (83, 104), (84, 105), (85, 105), (86, 105), (87, 105), (88, 105), (90, 104))
coordinates_ec0_db0 = ((94, 121), (95, 116), (95, 119), (95, 123), (95, 124), (95, 125), (95, 126), (95, 127), (95, 128), (95, 129), (95, 130), (95, 132), (96, 116), (96, 121), (96, 133), (97, 116), (97, 117), (97, 118), (97, 119), (97, 120), (97, 121), (97, 122), (97, 123), (97, 124), (97, 125), (97, 126), (97, 127), (97, 128), (97, 129), (97, 130), (97, 131), (97, 132), (97, 134), (98, 116), (98, 118), (98, 119), (98, 120), (98, 121), (98, 122), (98, 123), (98, 124), (98, 125), (98, 126), (98, 127), (98, 128), (98, 129), (98, 130), (98, 131), (98, 132), (98, 133), (98, 135), (99, 116), (99, 118), (99, 119), (99, 120), (99, 121), (99, 122), (99, 123), (99, 124), (99, 125), (99, 126), (99, 130), (99, 131), (99, 132), (99, 133), (99, 135), (100, 117), (100, 119), (100, 120), (100, 121), (100, 122), (100, 123), (100, 124), (100, 128), (100, 131), (100, 132), (100, 133), (100, 135), (101, 118), (101, 121), (101, 122), (101, 126), (101, 130), (101, 132), (101, 133), (101, 135), (102, 119), (102, 124), (102, 131), (102, 135), (103, 121), (103, 122), (103, 132), (103, 134))
coordinates_eb0_db0 = ((142, 121), (142, 122), (143, 119), (143, 123), (143, 134), (144, 118), (144, 121), (144, 122), (144, 124), (144, 125), (144, 126), (144, 127), (144, 128), (144, 129), (144, 130), (144, 131), (144, 132), (144, 133), (144, 135), (145, 117), (145, 119), (145, 120), (145, 121), (145, 122), (145, 123), (145, 135), (146, 116), (146, 118), (146, 119), (146, 120), (146, 121), (146, 122), (146, 123), (146, 124), (146, 125), (146, 126), (146, 127), (146, 128), (146, 129), (146, 130), (146, 131), (146, 132), (146, 133), (146, 135), (147, 116), (147, 118), (147, 119), (147, 120), (147, 121), (147, 122), (147, 123), (147, 124), (147, 125), (147, 126), (147, 127), (147, 128), (147, 129), (147, 130), (147, 131), (147, 132), (147, 134), (148, 118), (148, 119), (148, 120), (148, 121), (148, 122), (148, 123), (148, 124), (148, 125), (148, 126), (148, 127), (148, 128), (148, 129), (148, 130), (148, 131), (148, 132), (148, 134), (149, 116), (149, 120), (149, 121), (149, 122), (149, 123), (149, 124), (149, 125), (149, 126), (149, 133), (150, 118), (150, 127), (150, 128), (150, 129), (150, 130), (150, 132), (151, 120), (151, 122), (151, 123), (151, 124), (151, 125), (151, 126))
coordinates_ed82_ee = ((124, 69), (124, 71), (124, 72), (124, 73), (124, 74), (124, 75), (124, 77), (125, 69), (125, 78), (126, 68), (126, 70), (126, 74), (126, 75), (126, 78), (127, 69), (127, 71), (127, 72), (127, 73), (127, 76), (127, 78), (128, 70), (128, 78), (128, 79))
coordinates_ee82_ee = ((113, 88), (114, 79), (114, 81), (114, 88), (115, 78), (115, 82), (115, 87), (116, 77), (116, 80), (116, 81), (116, 84), (116, 87), (117, 79), (117, 80), (117, 81), (117, 82), (117, 86), (118, 74), (118, 75), (118, 78), (118, 79), (118, 80), (118, 81), (118, 82), (118, 83), (118, 84), (118, 86), (119, 69), (119, 71), (119, 72), (119, 73), (119, 76), (119, 77), (119, 78), (119, 79), (119, 80), (119, 86), (120, 69), (120, 81), (120, 82), (120, 83), (120, 84), (121, 68), (121, 71), (121, 72), (121, 73), (121, 74), (121, 75), (121, 76), (121, 77), (121, 78), (121, 79), (122, 69))
coordinates_9832_cc = ((122, 82), (122, 85), (122, 88), (122, 89), (122, 90), (122, 91), (122, 92), (122, 93), (122, 94), (123, 82), (123, 87), (123, 95), (123, 96), (123, 97), (123, 98), (123, 99), (123, 100), (123, 101), (123, 102), (123, 104), (124, 81), (124, 83), (124, 88), (124, 89), (124, 90), (124, 91), (124, 92), (124, 93), (124, 94), (124, 104), (125, 80), (125, 82), (125, 85), (125, 87), (125, 88), (125, 89), (125, 90), (125, 92), (125, 93), (125, 94), (125, 95), (125, 96), (125, 97), (125, 98), (125, 101), (125, 104), (126, 80), (126, 83), (126, 86), (126, 88), (126, 89), (126, 93), (126, 94), (126, 95), (126, 97), (126, 104), (127, 82), (127, 87), (127, 93), (127, 94), (127, 95), (127, 97), (127, 104), (128, 88), (128, 89), (128, 93), (128, 95), (128, 97), (128, 104), (129, 93), (129, 95), (129, 97), (130, 94), (130, 97), (131, 94), (131, 97), (132, 95), (132, 97))
coordinates_9932_cc = ((113, 90), (114, 90), (115, 90), (115, 103), (116, 89), (116, 91), (116, 102), (116, 104), (117, 89), (117, 92), (117, 93), (117, 94), (117, 95), (117, 96), (117, 97), (117, 98), (117, 99), (117, 102), (117, 104), (118, 88), (118, 90), (118, 91), (118, 100), (118, 102), (118, 104), (119, 88), (119, 104), (120, 88), (120, 90), (120, 91), (120, 92), (120, 93), (120, 94), (120, 95), (120, 96), (120, 97), (120, 100), (120, 101), (120, 102), (120, 104), (121, 100), (121, 106))
coordinates_86_ceeb = ((160, 114), (161, 114), (161, 115), (162, 114), (163, 114), (163, 116), (164, 114), (164, 118), (165, 115), (165, 119), (165, 121), (166, 116), (166, 118), (166, 123), (167, 117), (167, 120), (167, 121), (167, 125), (168, 118), (168, 122), (168, 123), (168, 126), (169, 120), (169, 123), (169, 124), (169, 125), (169, 127), (170, 122), (170, 124), (170, 125), (170, 127), (171, 123), (171, 125), (171, 126), (171, 128), (172, 124), (172, 126), (172, 128), (173, 124), (173, 126), (173, 128), (174, 125), (174, 127), (175, 125), (175, 127), (176, 125), (176, 127), (177, 126), (178, 126))
coordinates_87_ceeb = ((64, 131), (65, 131), (66, 129), (66, 131), (67, 129), (67, 131), (68, 129), (68, 131), (69, 129), (69, 131), (70, 128), (70, 131), (71, 128), (71, 131), (72, 129), (72, 131), (73, 129), (73, 131), (74, 129), (74, 131), (75, 129), (75, 132), (76, 122), (76, 124), (76, 125), (76, 126), (76, 127), (76, 128), (76, 129), (76, 130), (76, 132), (77, 121), (77, 132), (78, 123), (78, 124), (78, 125), (78, 126), (78, 127), (78, 128), (78, 129), (78, 131), (79, 120), (79, 121), (80, 119), (81, 118), (82, 117), (83, 117), (84, 117), (85, 117), (85, 118), (86, 117), (86, 118), (87, 118), (87, 119), (88, 118), (88, 119))
coordinates_ee0000 = ((61, 112), (61, 113), (61, 114), (61, 115), (61, 116), (62, 108), (62, 109), (62, 110), (62, 111), (62, 117), (62, 118), (62, 119), (63, 105), (63, 106), (63, 112), (63, 113), (63, 114), (63, 115), (63, 116), (63, 120), (63, 121), (63, 122), (63, 123), (63, 124), (63, 125), (63, 126), (63, 127), (64, 103), (64, 104), (64, 107), (64, 108), (64, 109), (64, 111), (64, 118), (64, 128), (65, 101), (65, 105), (65, 120), (65, 127), (66, 100), (66, 104), (66, 122), (66, 125), (67, 99), (67, 103), (68, 93), (68, 95), (68, 96), (68, 97), (68, 100), (68, 101), (68, 102), (69, 92), (69, 97), (69, 98), (69, 99), (70, 91), (70, 93), (70, 94), (70, 95), (71, 92), (71, 95), (72, 92), (72, 96), (73, 93), (73, 97), (73, 101), (73, 102), (73, 103), (73, 105), (73, 114), (73, 116), (74, 94), (74, 96), (74, 107), (74, 113), (75, 98), (75, 99), (75, 100), (75, 101), (75, 102), (75, 103), (75, 104), (75, 105), (75, 108), (75, 113), (75, 115), (76, 106), (76, 109), (76, 113), (76, 115), (77, 108), (77, 110), (77, 114), (78, 109), (78, 111), (79, 110), (79, 111), (80, 110), (81, 111))
coordinates_fe4500 = ((157, 134), (157, 136), (157, 137), (157, 138), (157, 139), (157, 140), (157, 142), (158, 135), (158, 141), (159, 135), (159, 137), (159, 138), (159, 140))
coordinates_b4_b4_b4 = ((93, 140), (94, 140), (95, 140), (96, 140), (97, 139), (97, 140), (98, 139), (98, 140), (99, 139), (99, 140), (100, 139), (100, 140), (101, 139), (101, 140), (102, 139), (102, 140), (103, 139), (103, 140), (104, 140), (105, 138), (105, 140), (106, 138), (106, 141), (107, 138), (107, 140), (108, 138), (108, 140), (109, 138), (110, 139), (111, 137), (111, 139), (112, 138), (113, 136), (113, 138), (114, 135), (114, 137), (115, 135), (115, 137), (116, 134), (116, 136), (117, 134), (117, 136), (118, 134), (118, 135), (119, 134), (120, 134))
coordinates_fed700 = ((157, 144), (157, 145), (158, 144), (158, 146), (159, 143), (159, 145), (160, 142), (160, 145), (161, 141), (161, 144), (162, 141), (162, 144), (163, 140), (163, 143), (165, 139), (165, 140), (166, 138), (166, 139), (167, 137), (167, 138), (168, 136), (169, 135), (169, 137), (170, 131), (170, 133), (170, 134), (170, 136), (171, 130), (171, 132), (171, 136), (172, 130), (172, 135), (173, 130), (173, 133), (173, 134), (174, 130), (174, 131), (175, 129), (175, 130), (176, 129), (177, 129), (178, 128), (178, 129), (179, 129))
coordinates_cf2090 = ((163, 145), (164, 144), (164, 146), (165, 144), (166, 144), (167, 144), (168, 143), (168, 144), (169, 143), (169, 144), (170, 142), (170, 144), (171, 142), (171, 143), (172, 141), (172, 143), (173, 139), (173, 143), (174, 136), (174, 138), (174, 141), (174, 142), (175, 135), (175, 140), (176, 138), (177, 134), (177, 137), (178, 135), (179, 131), (179, 134), (180, 134), (181, 130), (181, 133), (182, 131), (182, 133))
coordinates_b3_b4_b4 = ((125, 134), (125, 135), (126, 135), (127, 135), (127, 136), (128, 135), (128, 136), (129, 135), (129, 137), (130, 135), (130, 137), (131, 136), (131, 137), (132, 136), (132, 137), (133, 136), (134, 136), (134, 138), (135, 136), (135, 138), (136, 136), (136, 138), (137, 136), (137, 138), (138, 139), (139, 138), (139, 139), (140, 139), (141, 139), (142, 139), (143, 139), (143, 140), (144, 139), (144, 140), (145, 140), (146, 140))
coordinates_efe68_c = ((165, 147), (166, 146), (166, 147), (167, 146), (167, 147), (168, 146), (169, 146), (169, 151), (170, 146), (171, 146), (171, 152), (172, 145), (172, 152), (172, 153), (173, 145), (173, 152), (173, 153), (174, 145), (174, 146), (174, 153), (174, 154), (175, 143), (175, 145), (175, 146), (175, 153), (175, 154), (176, 142), (176, 146), (176, 152), (176, 154), (176, 155), (177, 140), (177, 143), (177, 145), (177, 151), (177, 153), (177, 155), (178, 138), (178, 142), (178, 143), (178, 145), (178, 149), (178, 152), (178, 155), (179, 138), (179, 140), (179, 141), (179, 142), (179, 144), (179, 148), (179, 153), (179, 154), (179, 155), (180, 138), (180, 140), (180, 141), (180, 142), (180, 144), (180, 147), (180, 151), (180, 152), (181, 137), (181, 139), (181, 140), (181, 141), (181, 142), (181, 143), (181, 144), (181, 145), (181, 146), (181, 150), (182, 137), (182, 139), (182, 140), (182, 141), (182, 142), (182, 143), (182, 144), (182, 148), (183, 138), (183, 144), (183, 146), (184, 139), (184, 141), (184, 142), (184, 143))
coordinates_feff01 = ((136, 144), (136, 145), (136, 147), (137, 144), (137, 149), (138, 143), (138, 145), (138, 146), (138, 147), (138, 150), (138, 151), (139, 143), (139, 145), (139, 146), (139, 147), (139, 148), (139, 149), (139, 152), (139, 153), (139, 154), (139, 155), (139, 157), (140, 143), (140, 145), (140, 146), (140, 147), (140, 148), (140, 149), (140, 150), (140, 151), (140, 158), (141, 143), (141, 145), (141, 146), (141, 147), (141, 148), (141, 149), (141, 150), (141, 151), (141, 152), (141, 153), (141, 154), (141, 155), (141, 156), (141, 157), (141, 160), (142, 142), (142, 144), (142, 145), (142, 146), (142, 147), (142, 148), (142, 149), (142, 150), (142, 151), (142, 152), (142, 153), (142, 154), (142, 155), (142, 156), (142, 157), (142, 158), (142, 161), (142, 162), (142, 163), (142, 164), (143, 142), (143, 144), (143, 145), (143, 146), (143, 147), (143, 148), (143, 149), (143, 150), (143, 151), (143, 152), (143, 153), (143, 154), (143, 155), (143, 156), (143, 157), (143, 158), (143, 159), (143, 160), (143, 161), (143, 164), (144, 142), (144, 144), (144, 145), (144, 146), (144, 147), (144, 148), (144, 149), (144, 150), (144, 151), (144, 152), (144, 153), (144, 154), (144, 155), (144, 156), (144, 157), (144, 158), (144, 159), (144, 160), (144, 161), (144, 162), (144, 163), (144, 165), (145, 142), (145, 144), (145, 145), (145, 146), (145, 147), (145, 148), (145, 149), (145, 150), (145, 151), (145, 152), (145, 153), (145, 161), (145, 162), (145, 163), (145, 165), (146, 142), (146, 144), (146, 145), (146, 146), (146, 147), (146, 148), (146, 149), (146, 150), (146, 151), (146, 154), (146, 155), (146, 156), (146, 157), (146, 158), (146, 159), (146, 162), (146, 163), (146, 164), (146, 166), (147, 142), (147, 144), (147, 145), (147, 146), (147, 147), (147, 148), (147, 149), (147, 150), (147, 153), (147, 161), (147, 163), (147, 164), (147, 166), (148, 142), (148, 144), (148, 145), (148, 146), (148, 147), (148, 148), (148, 149), (148, 151), (148, 162), (148, 164), (148, 166), (149, 141), (149, 143), (149, 144), (149, 145), (149, 146), (149, 147), (149, 148), (149, 150), (149, 162), (149, 167), (150, 142), (150, 147), (150, 148), (150, 150), (150, 162), (150, 164), (150, 165), (150, 167), (151, 142), (151, 144), (151, 145), (151, 148), (151, 150), (151, 161), (151, 163), (152, 143), (152, 147), (152, 149), (153, 148))
coordinates_31_cd32 = ((152, 165), (152, 167), (153, 162), (153, 163), (153, 164), (154, 159), (154, 161), (154, 165), (154, 166), (154, 168), (155, 158), (155, 162), (155, 163), (155, 164), (155, 165), (155, 166), (155, 168), (156, 158), (156, 160), (156, 161), (156, 162), (156, 163), (156, 164), (156, 165), (156, 166), (156, 167), (156, 169), (157, 158), (157, 160), (157, 161), (157, 162), (157, 163), (157, 164), (157, 165), (157, 166), (157, 168), (158, 158), (158, 160), (158, 161), (158, 162), (158, 163), (158, 164), (158, 165), (158, 166), (158, 168), (159, 161), (159, 162), (159, 163), (159, 164), (159, 165), (159, 167), (160, 159), (160, 162), (160, 163), (160, 164), (160, 165), (160, 167), (161, 160), (161, 163), (161, 164), (161, 165), (161, 167), (162, 162), (162, 164), (162, 165), (162, 166), (162, 168), (163, 163), (163, 165), (163, 166), (163, 168), (164, 157), (164, 164), (164, 166), (164, 167), (164, 169), (165, 154), (165, 155), (165, 158), (165, 164), (165, 165), (165, 168), (166, 153), (166, 156), (166, 157), (166, 159), (166, 165), (166, 168), (167, 153), (167, 155), (167, 156), (167, 157), (167, 159), (167, 165), (167, 167), (168, 153), (168, 155), (168, 156), (168, 157), (168, 159), (168, 165), (168, 167), (169, 153), (169, 155), (169, 156), (169, 157), (169, 159), (169, 164), (169, 167), (170, 154), (170, 156), (170, 158), (170, 163), (170, 166), (171, 154), (171, 156), (171, 157), (171, 158), (171, 159), (171, 162), (171, 164), (171, 166), (172, 155), (172, 157), (172, 158), (172, 159), (172, 160), (172, 161), (172, 163), (172, 165), (173, 156), (173, 158), (173, 159), (173, 162), (173, 164), (174, 156), (174, 159), (174, 160), (174, 161), (174, 163), (175, 158), (175, 162), (176, 159), (176, 161))
coordinates_0_b30_ff = ((133, 128), (133, 129), (134, 127), (134, 130), (135, 126), (135, 130), (136, 126), (136, 128), (136, 130), (137, 125), (137, 127), (137, 128), (137, 130), (138, 125), (138, 127), (138, 128), (138, 130), (139, 124), (139, 126), (139, 127), (139, 128), (139, 130), (140, 124), (140, 126), (140, 127), (140, 128), (140, 130), (141, 124), (141, 130), (142, 124), (142, 126), (142, 127), (142, 128), (142, 129), (142, 131))
coordinates_0_c30_ff = ((102, 128), (103, 126), (103, 130), (104, 124), (104, 128), (104, 131), (105, 124), (105, 126), (105, 127), (105, 128), (105, 129), (105, 131), (106, 124), (106, 126), (106, 127), (106, 128), (106, 129), (106, 131), (107, 125), (107, 127), (107, 128), (107, 129), (107, 131), (108, 125), (108, 128), (108, 129), (108, 131), (109, 126), (109, 129), (109, 130), (110, 127), (110, 130), (111, 128), (111, 129))
coordinates_ffd700 = ((67, 133), (68, 133), (68, 134), (69, 133), (69, 134), (70, 133), (70, 134), (71, 133), (72, 133), (72, 135), (73, 133), (73, 135), (74, 134), (74, 135), (75, 134), (75, 136), (76, 134), (76, 136), (77, 135), (77, 137), (78, 136), (78, 138), (79, 136), (79, 140), (79, 141), (80, 137), (80, 142), (80, 144), (81, 138), (81, 140), (81, 141), (81, 144), (82, 144), (82, 145), (83, 145), (84, 145), (84, 146), (85, 145), (85, 146), (86, 145))
coordinates_d02090 = ((63, 134), (63, 135), (64, 134), (64, 136), (65, 134), (65, 137), (66, 135), (66, 138), (67, 137), (67, 139), (68, 138), (69, 138), (69, 141), (70, 140), (70, 142), (71, 139), (71, 141), (71, 143), (72, 140), (72, 142), (72, 145), (73, 141), (73, 143), (73, 147), (74, 142), (74, 144), (74, 145), (74, 148), (75, 143), (75, 147), (75, 148), (76, 147), (77, 148), (78, 148), (79, 149))
coordinates_f0_e68_c = ((62, 143), (62, 145), (63, 142), (63, 146), (63, 147), (63, 148), (63, 149), (63, 150), (64, 141), (64, 143), (64, 144), (64, 145), (64, 153), (65, 141), (65, 143), (65, 144), (65, 145), (65, 146), (65, 149), (65, 151), (65, 154), (66, 141), (66, 145), (66, 147), (66, 150), (66, 152), (66, 154), (67, 142), (67, 144), (67, 147), (67, 151), (67, 153), (67, 154), (67, 158), (68, 145), (68, 148), (68, 152), (68, 154), (68, 156), (68, 157), (68, 159), (69, 147), (69, 150), (69, 159), (70, 148), (70, 150), (70, 153), (70, 154), (70, 155), (70, 156), (70, 157), (70, 158), (70, 160), (71, 149), (71, 151), (71, 157), (71, 158), (71, 160), (72, 149), (72, 151), (72, 157), (72, 160), (73, 150), (73, 152), (73, 157), (73, 160), (74, 150), (74, 152), (74, 156), (74, 158), (74, 160), (75, 151), (75, 156), (75, 159), (76, 151), (76, 155), (77, 151), (77, 155), (77, 158), (78, 151), (78, 155), (78, 157), (79, 155), (79, 156), (80, 155))
coordinates_ffff00 = ((93, 142), (93, 149), (94, 142), (94, 144), (94, 145), (94, 146), (94, 147), (94, 148), (94, 149), (94, 150), (94, 157), (94, 159), (94, 161), (95, 142), (95, 150), (95, 157), (95, 162), (96, 142), (96, 144), (96, 145), (96, 146), (96, 147), (96, 148), (96, 150), (96, 157), (96, 159), (96, 160), (96, 161), (96, 163), (97, 142), (97, 144), (97, 145), (97, 146), (97, 147), (97, 148), (97, 150), (97, 158), (97, 160), (97, 161), (98, 142), (98, 144), (98, 145), (98, 146), (98, 147), (98, 148), (98, 150), (98, 158), (98, 160), (98, 161), (98, 162), (98, 164), (99, 142), (99, 144), (99, 145), (99, 146), (99, 147), (99, 148), (99, 149), (99, 151), (99, 158), (99, 160), (99, 161), (99, 162), (99, 163), (99, 165), (100, 142), (100, 144), (100, 145), (100, 146), (100, 147), (100, 148), (100, 149), (100, 151), (100, 158), (100, 160), (100, 161), (100, 162), (100, 163), (100, 164), (100, 166), (101, 142), (101, 144), (101, 145), (101, 146), (101, 147), (101, 148), (101, 149), (101, 150), (101, 152), (101, 158), (101, 160), (101, 161), (101, 162), (101, 163), (101, 164), (101, 166), (102, 142), (102, 144), (102, 145), (102, 146), (102, 147), (102, 148), (102, 149), (102, 150), (102, 151), (102, 153), (102, 157), (102, 159), (102, 160), (102, 161), (102, 162), (102, 163), (102, 164), (102, 166), (103, 145), (103, 146), (103, 147), (103, 148), (103, 149), (103, 150), (103, 151), (103, 152), (103, 154), (103, 155), (103, 156), (103, 158), (103, 159), (103, 160), (103, 161), (103, 162), (103, 163), (103, 166), (104, 144), (104, 146), (104, 147), (104, 148), (104, 149), (104, 150), (104, 151), (104, 152), (104, 153), (104, 157), (104, 158), (104, 159), (104, 160), (104, 165), (105, 145), (105, 147), (105, 148), (105, 149), (105, 150), (105, 151), (105, 152), (105, 153), (105, 154), (105, 155), (105, 161), (105, 163), (106, 145), (106, 147), (106, 148), (106, 149), (106, 150), (106, 151), (106, 152), (106, 156), (106, 157), (106, 158), (106, 159), (106, 160), (107, 146), (107, 148), (107, 149), (107, 153), (107, 155), (108, 147), (108, 150), (108, 151), (108, 152), (109, 148))
coordinates_32_cd32 = ((74, 162), (75, 164), (76, 161), (76, 166), (77, 160), (77, 162), (77, 163), (77, 164), (77, 167), (78, 159), (78, 161), (78, 162), (78, 163), (78, 164), (78, 165), (78, 168), (79, 158), (79, 160), (79, 161), (79, 162), (79, 163), (79, 164), (79, 165), (79, 166), (79, 168), (80, 157), (80, 160), (80, 161), (80, 162), (80, 163), (80, 164), (80, 165), (80, 166), (80, 167), (80, 169), (81, 156), (81, 159), (81, 160), (81, 161), (81, 162), (81, 163), (81, 164), (81, 165), (81, 166), (81, 167), (81, 169), (82, 155), (82, 157), (82, 158), (82, 159), (82, 160), (82, 161), (82, 162), (82, 163), (82, 164), (82, 165), (82, 166), (82, 167), (82, 169), (83, 155), (83, 160), (83, 162), (83, 163), (83, 164), (83, 165), (83, 166), (83, 167), (83, 169), (84, 160), (84, 162), (84, 163), (84, 164), (84, 165), (84, 166), (84, 168), (85, 160), (85, 162), (85, 163), (85, 164), (85, 165), (85, 166), (85, 168), (86, 161), (86, 163), (86, 164), (86, 165), (86, 167), (87, 162), (87, 164), (87, 165), (87, 167), (88, 163), (88, 165), (88, 167), (89, 163), (89, 164), (89, 165), (89, 166), (89, 168), (90, 163), (90, 165), (90, 166), (90, 167), (90, 169), (91, 162), (91, 164), (91, 165), (91, 166), (91, 167), (91, 169), (92, 161), (92, 164), (92, 165), (92, 166), (92, 167), (92, 169), (93, 165), (93, 166), (93, 167), (93, 169), (94, 163), (94, 166), (94, 167), (94, 169), (95, 164), (95, 166), (95, 167), (95, 169), (96, 165), (96, 167), (96, 169), (97, 166), (97, 169), (98, 167), (98, 168))
|
class AllocationMap(object):
# Keeps track of item allocation to caches.
def __init__(self):
self.alloc_o = dict() # for each item (key) maps a list of caches where it is cached. Has entries just for allocated objects.
self.alloc = dict() # for each cache (key) maps the list of items it caches (the cache.cache)
def allocate(self, item, cache):
if item not in self.alloc_o.keys():
self.alloc_o[item] = []
self.alloc_o[item].append(cache)
if cache not in self.alloc.keys():
self.alloc[cache] = []
self.alloc[cache].append(item)
def evict(self, item, cache):
if item not in self.alloc_o.keys():
return "item not allocated"
if cache not in self.alloc.keys():
return "unknown cache"
if item not in self.alloc_o[cache] or cache not in self.alloc[item]:
return "item not allocated to cache"
self.alloc[cache].remove(item)
if not len(self.alloc[cache]):
del self.alloc[cache]
self.alloc_o[item].remove(cache)
if not len(self.alloc_o[item]):
del self.alloc_o[item]
def print_allocations(self):
print ("_______________________________")
print ("Computed Cache Allocations")
for cache in self.alloc:
print ("cache: ", cache.name, " cache filled: " , sum([j.work for j in self.alloc[cache]]), "/", cache.capacity)
for item in self.alloc[cache]:
print (item.name, " size: ", item.work)
print ("_______________________________")
def __eq__(self, other):
if not isinstance(other, self.__class__):
return False
if set(self.alloc.keys()) != set(other.alloc.keys()):
return False
if set(self.alloc_o.keys()) != set(other.alloc_o.keys()):
return False
for k,v in self.alloc.items():
if set(v).difference(set(other.alloc[k])):
return False
for k,v in self.alloc_o.items():
if set(v).difference(set(other.alloc_o[k])):
return False
return True
def __ne__(self, other):
return not self.__eq__(other)
|
class Allocationmap(object):
def __init__(self):
self.alloc_o = dict()
self.alloc = dict()
def allocate(self, item, cache):
if item not in self.alloc_o.keys():
self.alloc_o[item] = []
self.alloc_o[item].append(cache)
if cache not in self.alloc.keys():
self.alloc[cache] = []
self.alloc[cache].append(item)
def evict(self, item, cache):
if item not in self.alloc_o.keys():
return 'item not allocated'
if cache not in self.alloc.keys():
return 'unknown cache'
if item not in self.alloc_o[cache] or cache not in self.alloc[item]:
return 'item not allocated to cache'
self.alloc[cache].remove(item)
if not len(self.alloc[cache]):
del self.alloc[cache]
self.alloc_o[item].remove(cache)
if not len(self.alloc_o[item]):
del self.alloc_o[item]
def print_allocations(self):
print('_______________________________')
print('Computed Cache Allocations')
for cache in self.alloc:
print('cache: ', cache.name, ' cache filled: ', sum([j.work for j in self.alloc[cache]]), '/', cache.capacity)
for item in self.alloc[cache]:
print(item.name, ' size: ', item.work)
print('_______________________________')
def __eq__(self, other):
if not isinstance(other, self.__class__):
return False
if set(self.alloc.keys()) != set(other.alloc.keys()):
return False
if set(self.alloc_o.keys()) != set(other.alloc_o.keys()):
return False
for (k, v) in self.alloc.items():
if set(v).difference(set(other.alloc[k])):
return False
for (k, v) in self.alloc_o.items():
if set(v).difference(set(other.alloc_o[k])):
return False
return True
def __ne__(self, other):
return not self.__eq__(other)
|
def romanToDecimal(S):
roman = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000}
a = roman[S[0]]+roman[S[-1]]
i=1
while i<len(S)-1:
print(a)
if (roman[S[i]] >= roman[S[i+1]]):
a = a+roman[S[i]]
i=i+1
else:
a = a -roman[S[i]]
i=i+1
return a
print(romanToDecimal('CMXVI'))
|
def roman_to_decimal(S):
roman = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000}
a = roman[S[0]] + roman[S[-1]]
i = 1
while i < len(S) - 1:
print(a)
if roman[S[i]] >= roman[S[i + 1]]:
a = a + roman[S[i]]
i = i + 1
else:
a = a - roman[S[i]]
i = i + 1
return a
print(roman_to_decimal('CMXVI'))
|
##################################################################################
# Deeplearning4j.py
# description: A wrapper service for the Deeplearning4j framework.
# categories: ai
# more info @: http://myrobotlab.org/service/Deeplearning4j
##################################################################################
# start the deeplearning4j service
deeplearning4j = Runtime.start('deeplearning4j','Deeplearning4j')
# load the VGG16 model from the zoo
deeplearning4j.loadVGG16()
# run an image file through the model and get the classifications / confidence
classifications = deeplearning4j.classifyImageFileVGG16("image0-1.png")
# print them out... it's a dictionary/map of label to confidence level (between 0-1)
for label in classifications:
print(label + " : " + str(classifications.get(label)))
|
deeplearning4j = Runtime.start('deeplearning4j', 'Deeplearning4j')
deeplearning4j.loadVGG16()
classifications = deeplearning4j.classifyImageFileVGG16('image0-1.png')
for label in classifications:
print(label + ' : ' + str(classifications.get(label)))
|
# Day 16: http://adventofcode.com/2016/day/16
inp = '11101000110010100'
def checksum(initial, length):
table = str.maketrans('01', '10')
data = initial
while len(data) < length:
new = data[::-1].translate(table)
data = f'{data}0{new}'
check = data[:length]
while not len(check) % 2:
check = [int(x == y) for x, y in zip(*[iter(check)]*2)]
return ''.join(map(str, check))
if __name__ == '__main__':
print('Checksum for the first disk:', checksum(inp, 272))
print('Checksum for the second disk:', checksum(inp, 35651584))
|
inp = '11101000110010100'
def checksum(initial, length):
table = str.maketrans('01', '10')
data = initial
while len(data) < length:
new = data[::-1].translate(table)
data = f'{data}0{new}'
check = data[:length]
while not len(check) % 2:
check = [int(x == y) for (x, y) in zip(*[iter(check)] * 2)]
return ''.join(map(str, check))
if __name__ == '__main__':
print('Checksum for the first disk:', checksum(inp, 272))
print('Checksum for the second disk:', checksum(inp, 35651584))
|
n = 600851475143
i=2
while(i*i<=n):
while(n%i==0):
n=n/i
i=i+1
print(n)
|
n = 600851475143
i = 2
while i * i <= n:
while n % i == 0:
n = n / i
i = i + 1
print(n)
|
consumer_key = 'NYICJJWGEHWjLzf16L4bdOmBp'
consumer_secret = 'AT8vDFvB6IkjLM5Ckz9DC5yQ0nsqut8vwGYOpnXPMFIESsHKG5'
access_token = '2909697444-NNDWfyczj7Asgv7t5YvysLcnnEj3CcoC12AB46R'
access_secret = 'kRaSQf3FEEz3X7TSH1o0EisdweIGoxm9Af6E0WceFzeEp'
|
consumer_key = 'NYICJJWGEHWjLzf16L4bdOmBp'
consumer_secret = 'AT8vDFvB6IkjLM5Ckz9DC5yQ0nsqut8vwGYOpnXPMFIESsHKG5'
access_token = '2909697444-NNDWfyczj7Asgv7t5YvysLcnnEj3CcoC12AB46R'
access_secret = 'kRaSQf3FEEz3X7TSH1o0EisdweIGoxm9Af6E0WceFzeEp'
|
dct = {'one':'two', 'three':'one', 'two':'three' }
v = dct['three']
for k in range(len(dct)):
v = dct[v]
print(v)
print(v)
|
dct = {'one': 'two', 'three': 'one', 'two': 'three'}
v = dct['three']
for k in range(len(dct)):
v = dct[v]
print(v)
print(v)
|
class Solution:
def canPlaceFlowers(self, flowerbed: List[int], n: int) -> bool:
f = flowerbed
ans = 0
for i in range(len(f)):
if f[i] == 0:
l, r = max(0, i - 1), min(i + 1, len(f) - 1)
if f[r] == 0 and f[l] == 0:
f[i] = 1
ans += 1
return ans >= n
|
class Solution:
def can_place_flowers(self, flowerbed: List[int], n: int) -> bool:
f = flowerbed
ans = 0
for i in range(len(f)):
if f[i] == 0:
(l, r) = (max(0, i - 1), min(i + 1, len(f) - 1))
if f[r] == 0 and f[l] == 0:
f[i] = 1
ans += 1
return ans >= n
|
# python alura-python/best-practices/hints.py
class Name:
def __init__(self, name: str, age: int) -> None:
self.name = name
self.age = age
def testa(self, name: str) -> int:
self.name = name
return int(self.age)
def testegain() -> str:
return 'again'
myname = Name('wilton "paulo" da silva', 39)
print(myname.name)
|
class Name:
def __init__(self, name: str, age: int) -> None:
self.name = name
self.age = age
def testa(self, name: str) -> int:
self.name = name
return int(self.age)
def testegain() -> str:
return 'again'
myname = name('wilton "paulo" da silva', 39)
print(myname.name)
|
default_app_config = 'djadmin.apps.ActivityAppConfig'
__name__ = 'djadmin'
__author__ = 'Neeraj Kumar'
__version__ = '1.1.7'
__author_email__ = '[email protected]'
__description__ = 'Djadmin is a django admin theme'
|
default_app_config = 'djadmin.apps.ActivityAppConfig'
__name__ = 'djadmin'
__author__ = 'Neeraj Kumar'
__version__ = '1.1.7'
__author_email__ = '[email protected]'
__description__ = 'Djadmin is a django admin theme'
|
config = {
"Virustotal": { "KEY":"718d3ef46ba51c38936a5bba67ba40e1348867aa0e9c0fa6ac8cd76c5950a983",
"URL": "https://www.virustotal.com/vtapi/v2/file/report" } ,
"hybridanalysis": { "KEY":"yyicbmp80fa6638bnkgcw93y5c07f536iyh0qo7r5bc2fabbtojj2yo97d352208", "URL": "https://www.hybrid-analysis.com/api/v2/" }
}
|
config = {'Virustotal': {'KEY': '718d3ef46ba51c38936a5bba67ba40e1348867aa0e9c0fa6ac8cd76c5950a983', 'URL': 'https://www.virustotal.com/vtapi/v2/file/report'}, 'hybridanalysis': {'KEY': 'yyicbmp80fa6638bnkgcw93y5c07f536iyh0qo7r5bc2fabbtojj2yo97d352208', 'URL': 'https://www.hybrid-analysis.com/api/v2/'}}
|
#House budget
while True:
price = float(input("Enter price: "))
if price < 500000:
print("Buy now!")
else:
print("Keep looking.")
|
while True:
price = float(input('Enter price: '))
if price < 500000:
print('Buy now!')
else:
print('Keep looking.')
|
def twoSum(nums, target):
temp = nums[:]
nums.sort()
hi = len(nums) - 1
lo = 0
while lo < hi:
if (nums[lo] + nums[hi]) < target:
lo += 1
elif (nums[lo] + nums[hi]) > target:
hi -= 1
else:
if nums[lo] == nums[hi]:
return [temp.index(nums[lo]), temp[temp.index(nums[lo])+1:].index(nums[hi])+temp.index(nums[lo])+1]
else:
return [temp.index(nums[lo]), temp.index(nums[hi])]
|
def two_sum(nums, target):
temp = nums[:]
nums.sort()
hi = len(nums) - 1
lo = 0
while lo < hi:
if nums[lo] + nums[hi] < target:
lo += 1
elif nums[lo] + nums[hi] > target:
hi -= 1
elif nums[lo] == nums[hi]:
return [temp.index(nums[lo]), temp[temp.index(nums[lo]) + 1:].index(nums[hi]) + temp.index(nums[lo]) + 1]
else:
return [temp.index(nums[lo]), temp.index(nums[hi])]
|
class Vendor:
def __init__(self, token, name):
self.token = token
self.name = name
def __lt__(self, other):
return self.token < other.token
|
class Vendor:
def __init__(self, token, name):
self.token = token
self.name = name
def __lt__(self, other):
return self.token < other.token
|
n = int(input())
advice = ['advertise', 'do not advertise', 'does not matter']
results = []
for i in range(n):
r, e, c = input().split()
r, e, c = int(r), int(e), int(c)
if r > e - c:
results.append(advice[1])
elif r < e - c:
results.append(advice[0])
else:
results.append(advice[2])
for ans in results:
print(ans)
|
n = int(input())
advice = ['advertise', 'do not advertise', 'does not matter']
results = []
for i in range(n):
(r, e, c) = input().split()
(r, e, c) = (int(r), int(e), int(c))
if r > e - c:
results.append(advice[1])
elif r < e - c:
results.append(advice[0])
else:
results.append(advice[2])
for ans in results:
print(ans)
|
def insertionSort1(n, arr):
i = n-1
val = arr[i]
while(i>0 and val<arr[i-1]):
arr[i] = arr[i-1]
print(*arr)
i-=1
arr[i] = val
print(*arr)
|
def insertion_sort1(n, arr):
i = n - 1
val = arr[i]
while i > 0 and val < arr[i - 1]:
arr[i] = arr[i - 1]
print(*arr)
i -= 1
arr[i] = val
print(*arr)
|
class ConnectionInterrupted(Exception):
def __init__(self, connection, parent=None):
self.connection = connection
def __str__(self):
error_type = type(self.__cause__).__name__
error_msg = str(self.__cause__)
return "Redis {}: {}".format(error_type, error_msg)
class CompressorError(Exception):
pass
|
class Connectioninterrupted(Exception):
def __init__(self, connection, parent=None):
self.connection = connection
def __str__(self):
error_type = type(self.__cause__).__name__
error_msg = str(self.__cause__)
return 'Redis {}: {}'.format(error_type, error_msg)
class Compressorerror(Exception):
pass
|
# define this module's errors
class ParserError(Exception):
pass
class Sentence(object):
def __init__(self, subject, verb, obj):
# these are tuples, e.g. ('noun', 'bear')
self.subject = subject[1]
self.verb = verb[1]
self.obj = obj[1]
def __str__(self):
return str(self.__dict__)
def __eq__(self, other):
return self.__dict__ == other.__dict__
### MODULE-LEVEL FUNCTIONS
def parse_sentence(word_list):
try:
subj = parse_subject(word_list)
verb = parse_verb(word_list)
obj = parse_object(word_list)
sentence = Sentence(subj, verb, obj)
return sentence
except:
print("Expecting a sentence of the form: Subject -> Verb -> Object")
def parse_number(word_list):
skip(word_list, 'stop')
next_word_type = peek(word_list)
if next_word_type == 'number':
return match(word_list, 'number')
else:
raise ParserError("Expected a number next.")
def parse_subject(word_list):
skip(word_list, 'stop')
next_word_type = peek(word_list)
if next_word_type == 'noun':
return match(word_list, 'noun')
elif next_word_type == 'verb':
return ('noun', 'player')
else:
raise ParserError("Expected a noun or verb next.")
def parse_verb(word_list):
skip(word_list, 'stop')
next_word_type = peek(word_list)
if next_word_type == 'verb':
return match(word_list, 'verb')
else:
raise ParserError("Expected a verb next.")
def parse_object(word_list):
skip(word_list, 'stop')
next_word_type = peek(word_list)
if next_word_type == 'noun':
return match(word_list, 'noun')
elif next_word_type == 'direction':
return match(word_list, 'direction')
else:
raise ParserError("Expected a noun or direction next.")
####### HELPERS ############
def peek(word_list):
if word_list:
word = word_list[0] #grab first word tuple
word_type = word[0] #grab the type from the first slot
return word_type
else:
return None
# match has a front remove side-effect on word_list
def match(word_list, expected_type):
if word_list:
word = word_list.pop(0)
word_type = word[0]
if word_type == expected_type:
return word
else:
return None
def skip(word_list, word_type):
while peek(word_list) == word_type:
match(word_list, word_type)
|
class Parsererror(Exception):
pass
class Sentence(object):
def __init__(self, subject, verb, obj):
self.subject = subject[1]
self.verb = verb[1]
self.obj = obj[1]
def __str__(self):
return str(self.__dict__)
def __eq__(self, other):
return self.__dict__ == other.__dict__
def parse_sentence(word_list):
try:
subj = parse_subject(word_list)
verb = parse_verb(word_list)
obj = parse_object(word_list)
sentence = sentence(subj, verb, obj)
return sentence
except:
print('Expecting a sentence of the form: Subject -> Verb -> Object')
def parse_number(word_list):
skip(word_list, 'stop')
next_word_type = peek(word_list)
if next_word_type == 'number':
return match(word_list, 'number')
else:
raise parser_error('Expected a number next.')
def parse_subject(word_list):
skip(word_list, 'stop')
next_word_type = peek(word_list)
if next_word_type == 'noun':
return match(word_list, 'noun')
elif next_word_type == 'verb':
return ('noun', 'player')
else:
raise parser_error('Expected a noun or verb next.')
def parse_verb(word_list):
skip(word_list, 'stop')
next_word_type = peek(word_list)
if next_word_type == 'verb':
return match(word_list, 'verb')
else:
raise parser_error('Expected a verb next.')
def parse_object(word_list):
skip(word_list, 'stop')
next_word_type = peek(word_list)
if next_word_type == 'noun':
return match(word_list, 'noun')
elif next_word_type == 'direction':
return match(word_list, 'direction')
else:
raise parser_error('Expected a noun or direction next.')
def peek(word_list):
if word_list:
word = word_list[0]
word_type = word[0]
return word_type
else:
return None
def match(word_list, expected_type):
if word_list:
word = word_list.pop(0)
word_type = word[0]
if word_type == expected_type:
return word
else:
return None
def skip(word_list, word_type):
while peek(word_list) == word_type:
match(word_list, word_type)
|
missed_list = list()
for one_line in open("data/additional_data/missed_ontology"):
one_line = one_line.strip()
missed_list.append(one_line)
f_w = open("data/test/20180405.txt", "w")
for one_line in open("data/test/kill_me_plz_test.txt"):
dead_flag = 0
one_line = one_line.strip()
_, ontology_results = one_line.split("\t")
if len(ontology_results.split()) != 3:
dead_flag = 1
for one_ontology in ontology_results.split():
if one_ontology in missed_list:
dead_flag = 1
if dead_flag == 0:
f_w.write("%s\n" % one_line)
f_w.close()
|
missed_list = list()
for one_line in open('data/additional_data/missed_ontology'):
one_line = one_line.strip()
missed_list.append(one_line)
f_w = open('data/test/20180405.txt', 'w')
for one_line in open('data/test/kill_me_plz_test.txt'):
dead_flag = 0
one_line = one_line.strip()
(_, ontology_results) = one_line.split('\t')
if len(ontology_results.split()) != 3:
dead_flag = 1
for one_ontology in ontology_results.split():
if one_ontology in missed_list:
dead_flag = 1
if dead_flag == 0:
f_w.write('%s\n' % one_line)
f_w.close()
|
VERSION = "v0.0.1"
def version():
return VERSION
|
version = 'v0.0.1'
def version():
return VERSION
|
DATABASES_ENGINE = 'django.db.backends.postgresql_psycopg2'
DATABASES_NAME = 'spending'
DATABASES_USER = 'postgres'
DATABASES_PASSWORD = 'pg'
DATABASES_HOST = '127.0.0.1'
DATABASES_PORT = 5432
|
databases_engine = 'django.db.backends.postgresql_psycopg2'
databases_name = 'spending'
databases_user = 'postgres'
databases_password = 'pg'
databases_host = '127.0.0.1'
databases_port = 5432
|
#
# PySNMP MIB module BLADESPPALT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BLADESPPALT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:39:07 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Counter64, IpAddress, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, Unsigned32, Bits, enterprises, Gauge32, ModuleIdentity, Integer32, TimeTicks, NotificationType, NotificationType, ObjectIdentity, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "IpAddress", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "Unsigned32", "Bits", "enterprises", "Gauge32", "ModuleIdentity", "Integer32", "TimeTicks", "NotificationType", "NotificationType", "ObjectIdentity", "MibIdentifier")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
ibm = MibIdentifier((1, 3, 6, 1, 4, 1, 2))
ibmProd = MibIdentifier((1, 3, 6, 1, 4, 1, 2, 6))
supportProcessor = MibIdentifier((1, 3, 6, 1, 4, 1, 2, 6, 158))
mmRemoteSupTrapMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 2, 6, 158, 3))
remoteSupTrapMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1))
spTrapInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1))
spTrapDateTime = MibScalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: spTrapDateTime.setStatus('mandatory')
if mibBuilder.loadTexts: spTrapDateTime.setDescription('Timestamp of Local Date and Time when alert was generated')
spTrapAppId = MibScalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: spTrapAppId.setStatus('mandatory')
if mibBuilder.loadTexts: spTrapAppId.setDescription("Application ID, always 'BladeCenter Management Module'")
spTrapSpTxtId = MibScalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: spTrapSpTxtId.setStatus('mandatory')
if mibBuilder.loadTexts: spTrapSpTxtId.setDescription('SP System Identification - Text Identification')
spTrapSysUuid = MibScalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: spTrapSysUuid.setStatus('mandatory')
if mibBuilder.loadTexts: spTrapSysUuid.setDescription('Host System UUID(Universal Unique ID)')
spTrapSysSern = MibScalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: spTrapSysSern.setStatus('mandatory')
if mibBuilder.loadTexts: spTrapSysSern.setDescription('Host System Serial Number')
spTrapAppType = MibScalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: spTrapAppType.setStatus('mandatory')
if mibBuilder.loadTexts: spTrapAppType.setDescription('Application Alert Type - Event Number ID')
spTrapPriority = MibScalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: spTrapPriority.setStatus('mandatory')
if mibBuilder.loadTexts: spTrapPriority.setDescription('Alert Severity Value - Critical Alert(0) - Non-Critical Alert(2) - System Alert(4) - Recovery Alert(8) - Informational Only Alert(255)')
spTrapMsgText = MibScalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 8), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: spTrapMsgText.setStatus('mandatory')
if mibBuilder.loadTexts: spTrapMsgText.setDescription('Alert Message Text')
spTrapHostContact = MibScalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 9), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: spTrapHostContact.setStatus('mandatory')
if mibBuilder.loadTexts: spTrapHostContact.setDescription('Host Contact')
spTrapHostLocation = MibScalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 10), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: spTrapHostLocation.setStatus('mandatory')
if mibBuilder.loadTexts: spTrapHostLocation.setDescription('Host Location')
spTrapBladeName = MibScalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 11), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: spTrapBladeName.setStatus('mandatory')
if mibBuilder.loadTexts: spTrapBladeName.setDescription('Blade Name')
spTrapBladeSern = MibScalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 12), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: spTrapBladeSern.setStatus('mandatory')
if mibBuilder.loadTexts: spTrapBladeSern.setDescription('Blade Serial Number')
spTrapBladeUuid = MibScalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 13), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: spTrapBladeUuid.setStatus('mandatory')
if mibBuilder.loadTexts: spTrapBladeUuid.setDescription('Blade UUID(Universal Unique ID)')
mmTrapTempC = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,0)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapTempC.setDescription('Critical Alert: Temperature threshold exceeded.')
mmTrapVoltC = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,1)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapVoltC.setDescription('Critical Alert: Voltage threshold exceeded.')
mmTrapTampC = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,2)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapTampC.setDescription('Critical Alert: Physical intrusion of system has occurred.')
mmTrapMffC = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,3)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapMffC.setDescription('Critical Alert: Multiple fan failure.')
mmTrapPsC = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,4)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapPsC.setDescription('Critical Alert: Power supply failure.')
mTrapHdC = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,5)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mTrapHdC.setDescription('Critical Alert: Hard disk drive failure.')
mmTrapVrmC = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,6)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapVrmC.setDescription('Critical Alert: Voltage Regulator Module(VRM) failure.')
mmTrapSffC = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,11)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapSffC.setDescription('Critical Alert: Single Fan failure.')
mmTrapMsC = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,31)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapMsC.setDescription('Critical Alert: Multiple switch module failure.')
mmTrapIhcC = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,36)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapIhcC.setDescription('Critical Alert: Incompatible hardware configuration.')
mmTrapRdpsN = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,10)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapRdpsN.setDescription('Non-Critical Alert: Redundant Power Supply failure.')
mmTrapTempN = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,12)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapTempN.setDescription('Non-Critical Alert: Temperature threshold exceeded.')
mmTrapVoltN = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,13)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapVoltN.setDescription('Non-Critical Alert: Voltage threshold exceeded.')
mmTrapRmN = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,32)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapRmN.setDescription('Non-Critical Alert: Redundant module.')
mmTrapSecDvS = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,15)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapSecDvS.setDescription('System Alert: Secondary Device warning.')
mmTrapPostToS = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,20)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapPostToS.setDescription('System Alert: Post Timeout value exceeded.')
mmTrapOsToS = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,21)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapOsToS.setDescription('System Alert: OS Timeout value exceeded.')
mmTrapAppS = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,22)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapAppS.setDescription('System Alert: Application Alert.')
mmTrapPoffS = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,23)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapPoffS.setDescription('System Alert: Power Off.')
mmTrapPonS = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,24)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapPonS.setDescription('System Alert: Power On.')
mmTrapBootS = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,25)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapBootS.setDescription('System Alert: System Boot Failure.')
mmTrapLdrToS = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,26)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapLdrToS.setDescription('System Alert: OS Loader Timeout.')
mmTrapPFAS = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,27)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapPFAS.setDescription('System Alert: Predictive Failure Analysis(PFA) information.')
mmTrapKVMSwitchS = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,33)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapKVMSwitchS.setDescription('System Alert: Keyboard/Video/Mouse(KVM) or Medial Tray(MT) switching failure.')
mmTrapSysInvS = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,34)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapSysInvS.setDescription('System Alert: Inventory.')
mmTrapSysLogS = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,35)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapSysLogS.setDescription('System Alert: System Log 75% full.')
mmTrapNwChangeS = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,37)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapNwChangeS.setDescription('System Alert: Network change notification.')
mmTrapBlThrS = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,39)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapBlThrS.setDescription('System Alert: Blade Throttle')
mmTrapPwrMgntS = NotificationType((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0,40)).setObjects(("BLADESPPALT-MIB", "spTrapDateTime"), ("BLADESPPALT-MIB", "spTrapAppId"), ("BLADESPPALT-MIB", "spTrapSpTxtId"), ("BLADESPPALT-MIB", "spTrapSysUuid"), ("BLADESPPALT-MIB", "spTrapSysSern"), ("BLADESPPALT-MIB", "spTrapAppType"), ("BLADESPPALT-MIB", "spTrapPriority"), ("BLADESPPALT-MIB", "spTrapMsgText"), ("BLADESPPALT-MIB", "spTrapHostContact"), ("BLADESPPALT-MIB", "spTrapHostLocation"), ("BLADESPPALT-MIB", "spTrapBladeName"), ("BLADESPPALT-MIB", "spTrapBladeSern"), ("BLADESPPALT-MIB", "spTrapBladeUuid"))
if mibBuilder.loadTexts: mmTrapPwrMgntS.setDescription('System Alert: Power Management')
mibBuilder.exportSymbols("BLADESPPALT-MIB", spTrapHostContact=spTrapHostContact, mmTrapVrmC=mmTrapVrmC, mmTrapOsToS=mmTrapOsToS, mmTrapPostToS=mmTrapPostToS, mmTrapSysInvS=mmTrapSysInvS, mmTrapNwChangeS=mmTrapNwChangeS, mmTrapTempN=mmTrapTempN, mmTrapKVMSwitchS=mmTrapKVMSwitchS, mmRemoteSupTrapMIB=mmRemoteSupTrapMIB, mmTrapVoltN=mmTrapVoltN, spTrapInfo=spTrapInfo, spTrapSpTxtId=spTrapSpTxtId, mmTrapBlThrS=mmTrapBlThrS, mmTrapBootS=mmTrapBootS, remoteSupTrapMibObjects=remoteSupTrapMibObjects, mmTrapLdrToS=mmTrapLdrToS, spTrapSysSern=spTrapSysSern, spTrapHostLocation=spTrapHostLocation, supportProcessor=supportProcessor, mmTrapTempC=mmTrapTempC, mmTrapAppS=mmTrapAppS, spTrapAppType=spTrapAppType, mmTrapMsC=mmTrapMsC, mmTrapRmN=mmTrapRmN, spTrapAppId=spTrapAppId, mmTrapSecDvS=mmTrapSecDvS, ibm=ibm, mmTrapPFAS=mmTrapPFAS, mmTrapRdpsN=mmTrapRdpsN, mmTrapSffC=mmTrapSffC, ibmProd=ibmProd, spTrapMsgText=spTrapMsgText, mmTrapPonS=mmTrapPonS, mmTrapIhcC=mmTrapIhcC, mmTrapPoffS=mmTrapPoffS, spTrapBladeName=spTrapBladeName, spTrapDateTime=spTrapDateTime, mmTrapPwrMgntS=mmTrapPwrMgntS, mmTrapTampC=mmTrapTampC, mmTrapSysLogS=mmTrapSysLogS, mmTrapPsC=mmTrapPsC, mmTrapVoltC=mmTrapVoltC, spTrapPriority=spTrapPriority, mTrapHdC=mTrapHdC, spTrapBladeSern=spTrapBladeSern, spTrapBladeUuid=spTrapBladeUuid, spTrapSysUuid=spTrapSysUuid, mmTrapMffC=mmTrapMffC)
|
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, constraints_intersection, single_value_constraint, value_range_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsUnion')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(counter64, ip_address, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, unsigned32, bits, enterprises, gauge32, module_identity, integer32, time_ticks, notification_type, notification_type, object_identity, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'IpAddress', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'Unsigned32', 'Bits', 'enterprises', 'Gauge32', 'ModuleIdentity', 'Integer32', 'TimeTicks', 'NotificationType', 'NotificationType', 'ObjectIdentity', 'MibIdentifier')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
ibm = mib_identifier((1, 3, 6, 1, 4, 1, 2))
ibm_prod = mib_identifier((1, 3, 6, 1, 4, 1, 2, 6))
support_processor = mib_identifier((1, 3, 6, 1, 4, 1, 2, 6, 158))
mm_remote_sup_trap_mib = mib_identifier((1, 3, 6, 1, 4, 1, 2, 6, 158, 3))
remote_sup_trap_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1))
sp_trap_info = mib_identifier((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1))
sp_trap_date_time = mib_scalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
spTrapDateTime.setStatus('mandatory')
if mibBuilder.loadTexts:
spTrapDateTime.setDescription('Timestamp of Local Date and Time when alert was generated')
sp_trap_app_id = mib_scalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
spTrapAppId.setStatus('mandatory')
if mibBuilder.loadTexts:
spTrapAppId.setDescription("Application ID, always 'BladeCenter Management Module'")
sp_trap_sp_txt_id = mib_scalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 3), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
spTrapSpTxtId.setStatus('mandatory')
if mibBuilder.loadTexts:
spTrapSpTxtId.setDescription('SP System Identification - Text Identification')
sp_trap_sys_uuid = mib_scalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 4), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
spTrapSysUuid.setStatus('mandatory')
if mibBuilder.loadTexts:
spTrapSysUuid.setDescription('Host System UUID(Universal Unique ID)')
sp_trap_sys_sern = mib_scalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
spTrapSysSern.setStatus('mandatory')
if mibBuilder.loadTexts:
spTrapSysSern.setDescription('Host System Serial Number')
sp_trap_app_type = mib_scalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
spTrapAppType.setStatus('mandatory')
if mibBuilder.loadTexts:
spTrapAppType.setDescription('Application Alert Type - Event Number ID')
sp_trap_priority = mib_scalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
spTrapPriority.setStatus('mandatory')
if mibBuilder.loadTexts:
spTrapPriority.setDescription('Alert Severity Value - Critical Alert(0) - Non-Critical Alert(2) - System Alert(4) - Recovery Alert(8) - Informational Only Alert(255)')
sp_trap_msg_text = mib_scalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 8), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
spTrapMsgText.setStatus('mandatory')
if mibBuilder.loadTexts:
spTrapMsgText.setDescription('Alert Message Text')
sp_trap_host_contact = mib_scalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 9), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
spTrapHostContact.setStatus('mandatory')
if mibBuilder.loadTexts:
spTrapHostContact.setDescription('Host Contact')
sp_trap_host_location = mib_scalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 10), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
spTrapHostLocation.setStatus('mandatory')
if mibBuilder.loadTexts:
spTrapHostLocation.setDescription('Host Location')
sp_trap_blade_name = mib_scalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 11), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
spTrapBladeName.setStatus('mandatory')
if mibBuilder.loadTexts:
spTrapBladeName.setDescription('Blade Name')
sp_trap_blade_sern = mib_scalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 12), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
spTrapBladeSern.setStatus('mandatory')
if mibBuilder.loadTexts:
spTrapBladeSern.setDescription('Blade Serial Number')
sp_trap_blade_uuid = mib_scalar((1, 3, 6, 1, 4, 1, 2, 6, 158, 3, 1, 1, 13), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
spTrapBladeUuid.setStatus('mandatory')
if mibBuilder.loadTexts:
spTrapBladeUuid.setDescription('Blade UUID(Universal Unique ID)')
mm_trap_temp_c = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 0)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapTempC.setDescription('Critical Alert: Temperature threshold exceeded.')
mm_trap_volt_c = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 1)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapVoltC.setDescription('Critical Alert: Voltage threshold exceeded.')
mm_trap_tamp_c = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 2)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapTampC.setDescription('Critical Alert: Physical intrusion of system has occurred.')
mm_trap_mff_c = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 3)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapMffC.setDescription('Critical Alert: Multiple fan failure.')
mm_trap_ps_c = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 4)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapPsC.setDescription('Critical Alert: Power supply failure.')
m_trap_hd_c = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 5)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mTrapHdC.setDescription('Critical Alert: Hard disk drive failure.')
mm_trap_vrm_c = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 6)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapVrmC.setDescription('Critical Alert: Voltage Regulator Module(VRM) failure.')
mm_trap_sff_c = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 11)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapSffC.setDescription('Critical Alert: Single Fan failure.')
mm_trap_ms_c = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 31)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapMsC.setDescription('Critical Alert: Multiple switch module failure.')
mm_trap_ihc_c = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 36)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapIhcC.setDescription('Critical Alert: Incompatible hardware configuration.')
mm_trap_rdps_n = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 10)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapRdpsN.setDescription('Non-Critical Alert: Redundant Power Supply failure.')
mm_trap_temp_n = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 12)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapTempN.setDescription('Non-Critical Alert: Temperature threshold exceeded.')
mm_trap_volt_n = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 13)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapVoltN.setDescription('Non-Critical Alert: Voltage threshold exceeded.')
mm_trap_rm_n = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 32)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapRmN.setDescription('Non-Critical Alert: Redundant module.')
mm_trap_sec_dv_s = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 15)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapSecDvS.setDescription('System Alert: Secondary Device warning.')
mm_trap_post_to_s = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 20)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapPostToS.setDescription('System Alert: Post Timeout value exceeded.')
mm_trap_os_to_s = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 21)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapOsToS.setDescription('System Alert: OS Timeout value exceeded.')
mm_trap_app_s = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 22)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapAppS.setDescription('System Alert: Application Alert.')
mm_trap_poff_s = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 23)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapPoffS.setDescription('System Alert: Power Off.')
mm_trap_pon_s = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 24)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapPonS.setDescription('System Alert: Power On.')
mm_trap_boot_s = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 25)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapBootS.setDescription('System Alert: System Boot Failure.')
mm_trap_ldr_to_s = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 26)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapLdrToS.setDescription('System Alert: OS Loader Timeout.')
mm_trap_pfas = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 27)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapPFAS.setDescription('System Alert: Predictive Failure Analysis(PFA) information.')
mm_trap_kvm_switch_s = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 33)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapKVMSwitchS.setDescription('System Alert: Keyboard/Video/Mouse(KVM) or Medial Tray(MT) switching failure.')
mm_trap_sys_inv_s = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 34)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapSysInvS.setDescription('System Alert: Inventory.')
mm_trap_sys_log_s = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 35)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapSysLogS.setDescription('System Alert: System Log 75% full.')
mm_trap_nw_change_s = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 37)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapNwChangeS.setDescription('System Alert: Network change notification.')
mm_trap_bl_thr_s = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 39)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapBlThrS.setDescription('System Alert: Blade Throttle')
mm_trap_pwr_mgnt_s = notification_type((1, 3, 6, 1, 4, 1, 2, 6, 158, 3) + (0, 40)).setObjects(('BLADESPPALT-MIB', 'spTrapDateTime'), ('BLADESPPALT-MIB', 'spTrapAppId'), ('BLADESPPALT-MIB', 'spTrapSpTxtId'), ('BLADESPPALT-MIB', 'spTrapSysUuid'), ('BLADESPPALT-MIB', 'spTrapSysSern'), ('BLADESPPALT-MIB', 'spTrapAppType'), ('BLADESPPALT-MIB', 'spTrapPriority'), ('BLADESPPALT-MIB', 'spTrapMsgText'), ('BLADESPPALT-MIB', 'spTrapHostContact'), ('BLADESPPALT-MIB', 'spTrapHostLocation'), ('BLADESPPALT-MIB', 'spTrapBladeName'), ('BLADESPPALT-MIB', 'spTrapBladeSern'), ('BLADESPPALT-MIB', 'spTrapBladeUuid'))
if mibBuilder.loadTexts:
mmTrapPwrMgntS.setDescription('System Alert: Power Management')
mibBuilder.exportSymbols('BLADESPPALT-MIB', spTrapHostContact=spTrapHostContact, mmTrapVrmC=mmTrapVrmC, mmTrapOsToS=mmTrapOsToS, mmTrapPostToS=mmTrapPostToS, mmTrapSysInvS=mmTrapSysInvS, mmTrapNwChangeS=mmTrapNwChangeS, mmTrapTempN=mmTrapTempN, mmTrapKVMSwitchS=mmTrapKVMSwitchS, mmRemoteSupTrapMIB=mmRemoteSupTrapMIB, mmTrapVoltN=mmTrapVoltN, spTrapInfo=spTrapInfo, spTrapSpTxtId=spTrapSpTxtId, mmTrapBlThrS=mmTrapBlThrS, mmTrapBootS=mmTrapBootS, remoteSupTrapMibObjects=remoteSupTrapMibObjects, mmTrapLdrToS=mmTrapLdrToS, spTrapSysSern=spTrapSysSern, spTrapHostLocation=spTrapHostLocation, supportProcessor=supportProcessor, mmTrapTempC=mmTrapTempC, mmTrapAppS=mmTrapAppS, spTrapAppType=spTrapAppType, mmTrapMsC=mmTrapMsC, mmTrapRmN=mmTrapRmN, spTrapAppId=spTrapAppId, mmTrapSecDvS=mmTrapSecDvS, ibm=ibm, mmTrapPFAS=mmTrapPFAS, mmTrapRdpsN=mmTrapRdpsN, mmTrapSffC=mmTrapSffC, ibmProd=ibmProd, spTrapMsgText=spTrapMsgText, mmTrapPonS=mmTrapPonS, mmTrapIhcC=mmTrapIhcC, mmTrapPoffS=mmTrapPoffS, spTrapBladeName=spTrapBladeName, spTrapDateTime=spTrapDateTime, mmTrapPwrMgntS=mmTrapPwrMgntS, mmTrapTampC=mmTrapTampC, mmTrapSysLogS=mmTrapSysLogS, mmTrapPsC=mmTrapPsC, mmTrapVoltC=mmTrapVoltC, spTrapPriority=spTrapPriority, mTrapHdC=mTrapHdC, spTrapBladeSern=spTrapBladeSern, spTrapBladeUuid=spTrapBladeUuid, spTrapSysUuid=spTrapSysUuid, mmTrapMffC=mmTrapMffC)
|
with open('input.txt') as f:
lines = f.readlines()
depth_increased = 0
for i in range(len(lines)):
if (i == 0):
# don't check first sonar input
continue
if (int(lines[i]) > int(lines[i-1])):
depth_increased = depth_increased + 1
print(depth_increased) # 1559
|
with open('input.txt') as f:
lines = f.readlines()
depth_increased = 0
for i in range(len(lines)):
if i == 0:
continue
if int(lines[i]) > int(lines[i - 1]):
depth_increased = depth_increased + 1
print(depth_increased)
|
WORD_TYPES = {
"north" : "direction",
"south" : "direction",
"east" : "direction",
"west" : "direction",
"go" : "verb",
"kill" : "verb",
"eat" : "verb",
"the" : "stop",
"in" : "stop",
"of" : "stop",
"bear" : "noun",
"princess" : "noun",
}
def convert_number(word):
try:
return int(word)
except:
return None
def scan(sentence):
words = sentence.split()
results = []
for word in words:
word_type = WORD_TYPES.get(word)
if word_type == None:
# it might be a number, so try converting
number = convert_number(word)
if number != None:
results.append(('number', number))
else:
results.append(('error', word))
else:
results.append((word_type, word))
return results
|
word_types = {'north': 'direction', 'south': 'direction', 'east': 'direction', 'west': 'direction', 'go': 'verb', 'kill': 'verb', 'eat': 'verb', 'the': 'stop', 'in': 'stop', 'of': 'stop', 'bear': 'noun', 'princess': 'noun'}
def convert_number(word):
try:
return int(word)
except:
return None
def scan(sentence):
words = sentence.split()
results = []
for word in words:
word_type = WORD_TYPES.get(word)
if word_type == None:
number = convert_number(word)
if number != None:
results.append(('number', number))
else:
results.append(('error', word))
else:
results.append((word_type, word))
return results
|
def reader(values):
f=open("level1.txt", "r")
# N=no. of lines
#x = the position from which the substring must begin
x=values[0]
x-=1
#y=the position at which the substring should end
list1=[]
for line in range(values[2]):
j=f.readline()
t=j[values[0]:values[1]]
list1.append(t)
return list1
|
def reader(values):
f = open('level1.txt', 'r')
x = values[0]
x -= 1
list1 = []
for line in range(values[2]):
j = f.readline()
t = j[values[0]:values[1]]
list1.append(t)
return list1
|
class Solution:
# Use functions to convert all to numerical value (Accepted), O(n) time and space
def isSumEqual(self, a: str, b: str, t: str) -> bool:
def letter_val(letter):
return ord(letter) - ord('a')
def numerical_val(word):
s = ''
for c in word:
s += str(letter_val(c))
return int(s)
return numerical_val(a) + numerical_val(b) == numerical_val(t)
# Minus 49 (Top Voted), O(n) time and space
def isSumEqual(self, first: str, second: str, target: str) -> bool:
def op(s: str): return "".join(chr(ord(ch) - 49) for ch in s)
return int(op(first)) + int(op(second)) == int(op(target))
|
class Solution:
def is_sum_equal(self, a: str, b: str, t: str) -> bool:
def letter_val(letter):
return ord(letter) - ord('a')
def numerical_val(word):
s = ''
for c in word:
s += str(letter_val(c))
return int(s)
return numerical_val(a) + numerical_val(b) == numerical_val(t)
def is_sum_equal(self, first: str, second: str, target: str) -> bool:
def op(s: str):
return ''.join((chr(ord(ch) - 49) for ch in s))
return int(op(first)) + int(op(second)) == int(op(target))
|
def CounterClosure(init=0):
value = [init]
def Inc():
value[0] += 1
return value[0]
return Inc
class CounterClass:
def __init__(self, init=0):
self.value = init
def Bump(self):
self.value += 1
return self.value
def CounterIter(init = 0):
while True:
init += 1
yield init
if __name__ == '__main__':
c1 = CounterClosure()
c2 = CounterClass()
c3 = CounterIter()
assert(c1() == c2.Bump() == next(c3))
assert(c1() == c2.Bump() == next(c3))
assert(c1() == c2.Bump() == next(c3))
|
def counter_closure(init=0):
value = [init]
def inc():
value[0] += 1
return value[0]
return Inc
class Counterclass:
def __init__(self, init=0):
self.value = init
def bump(self):
self.value += 1
return self.value
def counter_iter(init=0):
while True:
init += 1
yield init
if __name__ == '__main__':
c1 = counter_closure()
c2 = counter_class()
c3 = counter_iter()
assert c1() == c2.Bump() == next(c3)
assert c1() == c2.Bump() == next(c3)
assert c1() == c2.Bump() == next(c3)
|
def commaCode(inputList):
myString = ''
for i in inputList:
if (inputList.index(i) == (len(inputList) - 1)):
myString = myString + 'and ' + str(i)
else:
myString = myString + str(i) + ', '
return myString
inputValue = ''
spam = []
print('Insert next list member. Finish by an empty line!')
inputValue = input()
while (inputValue != ''):
spam.append(inputValue);
print('Insert next list member. Finish by an empty line!')
inputValue = input()
print(commaCode(spam))
|
def comma_code(inputList):
my_string = ''
for i in inputList:
if inputList.index(i) == len(inputList) - 1:
my_string = myString + 'and ' + str(i)
else:
my_string = myString + str(i) + ', '
return myString
input_value = ''
spam = []
print('Insert next list member. Finish by an empty line!')
input_value = input()
while inputValue != '':
spam.append(inputValue)
print('Insert next list member. Finish by an empty line!')
input_value = input()
print(comma_code(spam))
|
def my_reverse(lst):
new_lst = []
count = len(lst) - 1
while count >= 0:
new_lst.append(lst[count])
count -= 1
return new_lst
|
def my_reverse(lst):
new_lst = []
count = len(lst) - 1
while count >= 0:
new_lst.append(lst[count])
count -= 1
return new_lst
|
class Emoji:
# noinspection PyShadowingBuiltins
def __init__(self, id: str, name: str, animated: bool):
self.emoji_id = id
self.name = name
self.animated = animated
def is_unicode_emoji(self) -> bool:
return self.emoji_id is None
def util_id(self):
if self.is_unicode_emoji():
return self.name
else:
return f"{self.name}:{self.emoji_id}"
def __str__(self):
if self.is_unicode_emoji():
return self.name
else:
return f"<:{self.name}:{self.emoji_id}>"
def __eq__(self, other):
# TODO: coimpare unicode emojies to non unicode
if self.is_unicode_emoji() and isinstance(other, str):
return self.name == other
|
class Emoji:
def __init__(self, id: str, name: str, animated: bool):
self.emoji_id = id
self.name = name
self.animated = animated
def is_unicode_emoji(self) -> bool:
return self.emoji_id is None
def util_id(self):
if self.is_unicode_emoji():
return self.name
else:
return f'{self.name}:{self.emoji_id}'
def __str__(self):
if self.is_unicode_emoji():
return self.name
else:
return f'<:{self.name}:{self.emoji_id}>'
def __eq__(self, other):
if self.is_unicode_emoji() and isinstance(other, str):
return self.name == other
|
def h(n, x, y):
if n >0:
tmp = 6 - x-y
h(n-1, x, tmp)
print(x, y)
h(n-1, tmp, y)
n = int(input())
h(n, 1, 3)
|
def h(n, x, y):
if n > 0:
tmp = 6 - x - y
h(n - 1, x, tmp)
print(x, y)
h(n - 1, tmp, y)
n = int(input())
h(n, 1, 3)
|
class Fib(object):
@staticmethod
def fib(n):
a = 0
if n == 0:
return a
b = 1
for _ in range(1, n):
c = a + b
a = b
b = c
return b
|
class Fib(object):
@staticmethod
def fib(n):
a = 0
if n == 0:
return a
b = 1
for _ in range(1, n):
c = a + b
a = b
b = c
return b
|
class OperationEngineException(Exception):
def __init__(self, message):
Exception.__init__(self, message)
|
class Operationengineexception(Exception):
def __init__(self, message):
Exception.__init__(self, message)
|
class Solution:
def minMalwareSpread(self, graph: List[List[int]], initial: List[int]) -> int:
if not graph: return -1
N = len(graph)
clean = set(range(N)) - set(initial)
def dfs(u, seen):
for v, adj in enumerate(graph[u]):
if adj and v in clean and v not in seen:
seen.add(v)
dfs(v, seen)
d = collections.defaultdict(list)
for u in initial:
seen = set()
dfs(u, seen)
for v in seen:
d[v].append(u)
count = [0] * N
for v, infects in d.items():
if len(infects) == 1:
count[infects[0]] += 1
return count.index(max(count)) if max(count) != 0 else min(initial)
|
class Solution:
def min_malware_spread(self, graph: List[List[int]], initial: List[int]) -> int:
if not graph:
return -1
n = len(graph)
clean = set(range(N)) - set(initial)
def dfs(u, seen):
for (v, adj) in enumerate(graph[u]):
if adj and v in clean and (v not in seen):
seen.add(v)
dfs(v, seen)
d = collections.defaultdict(list)
for u in initial:
seen = set()
dfs(u, seen)
for v in seen:
d[v].append(u)
count = [0] * N
for (v, infects) in d.items():
if len(infects) == 1:
count[infects[0]] += 1
return count.index(max(count)) if max(count) != 0 else min(initial)
|
############################################################################
#
# Copyright (C) 2016 The Qt Company Ltd.
# Contact: https://www.qt.io/licensing/
#
# This file is part of Qt Creator.
#
# Commercial License Usage
# Licensees holding valid commercial Qt licenses may use this file in
# accordance with the commercial license agreement provided with the
# Software or, alternatively, in accordance with the terms contained in
# a written agreement between you and The Qt Company. For licensing terms
# and conditions see https://www.qt.io/terms-conditions. For further
# information use the contact form at https://www.qt.io/contact-us.
#
# GNU General Public License Usage
# Alternatively, this file may be used under the terms of the GNU
# General Public License version 3 as published by the Free Software
# Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
# included in the packaging of this file. Please review the following
# information to ensure the GNU General Public License requirements will
# be met: https://www.gnu.org/licenses/gpl-3.0.html.
#
############################################################################
source("../../shared/qtcreator.py")
# test Qt Creator version information from file and dialog
def getQtCreatorVersionFromDialog():
chk = re.search("(?<=Qt Creator)\s\d+.\d+.\d+[-\w]*",
str(waitForObject("{text?='*Qt Creator*' type='QLabel' unnamed='1' visible='1' "
"window=':About Qt Creator_Core::Internal::VersionDialog'}").text))
try:
ver = chk.group(0).strip()
return ver
except:
test.fail("Failed to get the exact version from Dialog")
return ""
def getQtCreatorVersionFromFile():
qtCreatorPriFileName = "../../../../qtcreator.pri"
# open file <qtCreatorPriFileName> and read version
fileText = readFile(qtCreatorPriFileName)
chk = re.search("(?<=QTCREATOR_DISPLAY_VERSION =)\s\d+.\d+.\d+\S*", fileText)
try:
ver = chk.group(0).strip()
return ver
except:
test.fail("Failed to get the exact version from File")
return ""
def checkQtCreatorHelpVersion(expectedVersion):
def rightStart(x):
return x.startswith('Qt Creator Manual')
switchViewTo(ViewConstants.HELP)
try:
helpContentWidget = waitForObject(':Qt Creator_QHelpContentWidget', 5000)
waitFor("any(map(rightStart, dumpItems(helpContentWidget.model())))", 10000)
items = dumpItems(helpContentWidget.model())
test.compare(filter(rightStart, items)[0],
'Qt Creator Manual %s' % expectedVersion,
'Verifying whether manual uses expected version.')
except:
t, v = sys.exc_info()[:2]
test.log("Exception caught", "%s(%s)" % (str(t), str(v)))
test.fail("Missing Qt Creator Manual.")
def setKeyboardShortcutForAboutQtC():
invokeMenuItem("Tools", "Options...")
waitForObjectItem(":Options_QListView", "Environment")
clickItem(":Options_QListView", "Environment", 14, 15, 0, Qt.LeftButton)
clickOnTab(":Options.qt_tabwidget_tabbar_QTabBar", "Keyboard")
filter = waitForObject("{container={title='Keyboard Shortcuts' type='QGroupBox' unnamed='1' "
"visible='1'} type='Utils::FancyLineEdit' unnamed='1' visible='1' "
"placeholderText='Filter'}")
replaceEditorContent(filter, "about")
treewidget = waitForObject("{type='QTreeWidget' unnamed='1' visible='1'}")
modelIndex = waitForObject("{column='0' text='AboutQtCreator' type='QModelIndex' "
"container={column='0' text='QtCreator' type='QModelIndex' "
"container=%s}}" % objectMap.realName(treewidget))
mouseClick(modelIndex, 5, 5, 0, Qt.LeftButton)
shortcutGB = "{title='Shortcut' type='QGroupBox' unnamed='1' visible='1'}"
record = waitForObject("{container=%s type='Core::Internal::ShortcutButton' unnamed='1' "
"visible='1' text~='(Stop Recording|Record)'}" % shortcutGB)
shortcut = ("{container=%s type='Utils::FancyLineEdit' unnamed='1' visible='1' "
"placeholderText='Enter key sequence as text'}" % shortcutGB)
clickButton(record)
nativeType("<Ctrl+Alt+a>")
clickButton(record)
expected = 'Ctrl+Alt+A'
if platform.system() == 'Darwin':
expected = 'Ctrl+Opt+A'
shortcutMatches = waitFor("str(findObject(shortcut).text) == expected", 5000)
if not shortcutMatches and platform.system() == 'Darwin':
test.warning("Squish Issue: shortcut was set to %s - entering it manually now"
% waitForObject(shortcut).text)
replaceEditorContent(shortcut, expected)
else:
test.verify(shortcutMatches, "Expected key sequence is displayed.")
clickButton(waitForObject(":Options.OK_QPushButton"))
def main():
expectedVersion = getQtCreatorVersionFromFile()
if not expectedVersion:
test.fatal("Can't find version from file.")
return
startApplication("qtcreator" + SettingsPath)
if not startedWithoutPluginError():
return
setKeyboardShortcutForAboutQtC()
if platform.system() == 'Darwin':
try:
waitForObject(":Qt Creator.QtCreator.MenuBar_QMenuBar", 2000)
except:
nativeMouseClick(waitForObject(":Qt Creator_Core::Internal::MainWindow", 1000), 20, 20, 0, Qt.LeftButton)
nativeType("<Ctrl+Alt+a>")
# verify qt creator version
try:
waitForObject(":About Qt Creator_Core::Internal::VersionDialog", 5000)
except:
test.warning("Using workaround of invoking menu entry "
"(known issue when running on Win inside Jenkins)")
if platform.system() == "Darwin":
invokeMenuItem("Help", "About Qt Creator")
else:
invokeMenuItem("Help", "About Qt Creator...")
waitForObject(":About Qt Creator_Core::Internal::VersionDialog", 5000)
actualVersion = getQtCreatorVersionFromDialog()
test.compare(actualVersion, expectedVersion,
"Verifying version. Current version is '%s', expected version is '%s'"
% (actualVersion, expectedVersion))
# close and verify about dialog closed
clickButton(waitForObject("{text='Close' type='QPushButton' unnamed='1' visible='1' "
"window=':About Qt Creator_Core::Internal::VersionDialog'}"))
test.verify(checkIfObjectExists(":About Qt Creator_Core::Internal::VersionDialog", False),
"Verifying if About dialog closed.")
checkQtCreatorHelpVersion(expectedVersion)
# exit qt creator
invokeMenuItem("File", "Exit")
# verify if qt creator closed properly
test.verify(checkIfObjectExists(":Qt Creator_Core::Internal::MainWindow", False),
"Verifying if Qt Creator closed.")
|
source('../../shared/qtcreator.py')
def get_qt_creator_version_from_dialog():
chk = re.search('(?<=Qt Creator)\\s\\d+.\\d+.\\d+[-\\w]*', str(wait_for_object("{text?='*Qt Creator*' type='QLabel' unnamed='1' visible='1' window=':About Qt Creator_Core::Internal::VersionDialog'}").text))
try:
ver = chk.group(0).strip()
return ver
except:
test.fail('Failed to get the exact version from Dialog')
return ''
def get_qt_creator_version_from_file():
qt_creator_pri_file_name = '../../../../qtcreator.pri'
file_text = read_file(qtCreatorPriFileName)
chk = re.search('(?<=QTCREATOR_DISPLAY_VERSION =)\\s\\d+.\\d+.\\d+\\S*', fileText)
try:
ver = chk.group(0).strip()
return ver
except:
test.fail('Failed to get the exact version from File')
return ''
def check_qt_creator_help_version(expectedVersion):
def right_start(x):
return x.startswith('Qt Creator Manual')
switch_view_to(ViewConstants.HELP)
try:
help_content_widget = wait_for_object(':Qt Creator_QHelpContentWidget', 5000)
wait_for('any(map(rightStart, dumpItems(helpContentWidget.model())))', 10000)
items = dump_items(helpContentWidget.model())
test.compare(filter(rightStart, items)[0], 'Qt Creator Manual %s' % expectedVersion, 'Verifying whether manual uses expected version.')
except:
(t, v) = sys.exc_info()[:2]
test.log('Exception caught', '%s(%s)' % (str(t), str(v)))
test.fail('Missing Qt Creator Manual.')
def set_keyboard_shortcut_for_about_qt_c():
invoke_menu_item('Tools', 'Options...')
wait_for_object_item(':Options_QListView', 'Environment')
click_item(':Options_QListView', 'Environment', 14, 15, 0, Qt.LeftButton)
click_on_tab(':Options.qt_tabwidget_tabbar_QTabBar', 'Keyboard')
filter = wait_for_object("{container={title='Keyboard Shortcuts' type='QGroupBox' unnamed='1' visible='1'} type='Utils::FancyLineEdit' unnamed='1' visible='1' placeholderText='Filter'}")
replace_editor_content(filter, 'about')
treewidget = wait_for_object("{type='QTreeWidget' unnamed='1' visible='1'}")
model_index = wait_for_object("{column='0' text='AboutQtCreator' type='QModelIndex' container={column='0' text='QtCreator' type='QModelIndex' container=%s}}" % objectMap.realName(treewidget))
mouse_click(modelIndex, 5, 5, 0, Qt.LeftButton)
shortcut_gb = "{title='Shortcut' type='QGroupBox' unnamed='1' visible='1'}"
record = wait_for_object("{container=%s type='Core::Internal::ShortcutButton' unnamed='1' visible='1' text~='(Stop Recording|Record)'}" % shortcutGB)
shortcut = "{container=%s type='Utils::FancyLineEdit' unnamed='1' visible='1' placeholderText='Enter key sequence as text'}" % shortcutGB
click_button(record)
native_type('<Ctrl+Alt+a>')
click_button(record)
expected = 'Ctrl+Alt+A'
if platform.system() == 'Darwin':
expected = 'Ctrl+Opt+A'
shortcut_matches = wait_for('str(findObject(shortcut).text) == expected', 5000)
if not shortcutMatches and platform.system() == 'Darwin':
test.warning('Squish Issue: shortcut was set to %s - entering it manually now' % wait_for_object(shortcut).text)
replace_editor_content(shortcut, expected)
else:
test.verify(shortcutMatches, 'Expected key sequence is displayed.')
click_button(wait_for_object(':Options.OK_QPushButton'))
def main():
expected_version = get_qt_creator_version_from_file()
if not expectedVersion:
test.fatal("Can't find version from file.")
return
start_application('qtcreator' + SettingsPath)
if not started_without_plugin_error():
return
set_keyboard_shortcut_for_about_qt_c()
if platform.system() == 'Darwin':
try:
wait_for_object(':Qt Creator.QtCreator.MenuBar_QMenuBar', 2000)
except:
native_mouse_click(wait_for_object(':Qt Creator_Core::Internal::MainWindow', 1000), 20, 20, 0, Qt.LeftButton)
native_type('<Ctrl+Alt+a>')
try:
wait_for_object(':About Qt Creator_Core::Internal::VersionDialog', 5000)
except:
test.warning('Using workaround of invoking menu entry (known issue when running on Win inside Jenkins)')
if platform.system() == 'Darwin':
invoke_menu_item('Help', 'About Qt Creator')
else:
invoke_menu_item('Help', 'About Qt Creator...')
wait_for_object(':About Qt Creator_Core::Internal::VersionDialog', 5000)
actual_version = get_qt_creator_version_from_dialog()
test.compare(actualVersion, expectedVersion, "Verifying version. Current version is '%s', expected version is '%s'" % (actualVersion, expectedVersion))
click_button(wait_for_object("{text='Close' type='QPushButton' unnamed='1' visible='1' window=':About Qt Creator_Core::Internal::VersionDialog'}"))
test.verify(check_if_object_exists(':About Qt Creator_Core::Internal::VersionDialog', False), 'Verifying if About dialog closed.')
check_qt_creator_help_version(expectedVersion)
invoke_menu_item('File', 'Exit')
test.verify(check_if_object_exists(':Qt Creator_Core::Internal::MainWindow', False), 'Verifying if Qt Creator closed.')
|
a = 1
b = 2
print(a,b) # 1,2
# like JS destructuring
a, b = b, a
print(a,b) # 2,1
|
a = 1
b = 2
print(a, b)
(a, b) = (b, a)
print(a, b)
|
# ASSIGNMENT 1 - C
# VOLUME OF SPHERE
d=int(input("Enter the diameter : "))
r=d/2
print("-> Radius is {}".format(r))
Vo=(4.0/3.0) *22/7*( r*r*r)
print("-> Volume is {}".format(Vo))
|
d = int(input('Enter the diameter : '))
r = d / 2
print('-> Radius is {}'.format(r))
vo = 4.0 / 3.0 * 22 / 7 * (r * r * r)
print('-> Volume is {}'.format(Vo))
|
#Postal abbreviations to three-character NHGIS state codes
state_codes = {
'WA': '530',
'DE': '100',
'DC': '110',
'WI': '550',
'WV': '540',
'HI': '150',
'FL': '120',
'WY': '560',
'PR': '720',
'NJ': '340',
'NM': '350',
'TX': '480',
'LA': '220',
'NC': '370',
'ND': '380',
'NE': '310',
'TN': '470',
'NY': '360',
'PA': '420',
'AK': '020',
'NV': '320',
'NH': '330',
'VA': '510',
'CO': '080',
'CA': '060',
'AL': '010',
'AR': '050',
'VT': '500',
'IL': '170',
'GA': '130',
'IN': '180',
'IA': '190',
'MA': '250',
'AZ': '040',
'ID': '160',
'CT': '090',
'ME': '230',
'MD': '240',
'OK': '400',
'OH': '390',
'UT': '490',
'MO': '290',
'MN': '270',
'MI': '260',
'RI': '440',
'KS': '200',
'MT': '300',
'MS': '280',
'SC': '450',
'KY': '210',
'OR': '410',
'SD': '460',
'PR': '720'
}
|
state_codes = {'WA': '530', 'DE': '100', 'DC': '110', 'WI': '550', 'WV': '540', 'HI': '150', 'FL': '120', 'WY': '560', 'PR': '720', 'NJ': '340', 'NM': '350', 'TX': '480', 'LA': '220', 'NC': '370', 'ND': '380', 'NE': '310', 'TN': '470', 'NY': '360', 'PA': '420', 'AK': '020', 'NV': '320', 'NH': '330', 'VA': '510', 'CO': '080', 'CA': '060', 'AL': '010', 'AR': '050', 'VT': '500', 'IL': '170', 'GA': '130', 'IN': '180', 'IA': '190', 'MA': '250', 'AZ': '040', 'ID': '160', 'CT': '090', 'ME': '230', 'MD': '240', 'OK': '400', 'OH': '390', 'UT': '490', 'MO': '290', 'MN': '270', 'MI': '260', 'RI': '440', 'KS': '200', 'MT': '300', 'MS': '280', 'SC': '450', 'KY': '210', 'OR': '410', 'SD': '460', 'PR': '720'}
|
class SentenceReverser:
vowels = ["a","e","i","o","u"]
sentence = ""
reverse = ""
vowelCount = 0
def __init__(self,sentence):
self.sentence = sentence
self.reverseSentence()
def reverseSentence(self):
self.reverse = " ".join(reversed(self.sentence.split()))
def getVowelCount(self):
self.vowelCount = sum(s in self.vowels for s in self.sentence.lower())
return self.vowelCount
def getReverse(self):
return self.reverse
items = []
for i in range(3):
reverser = SentenceReverser(input("Enter a sentence :"))
items.append(reverser)
print(reverser.reverse)
print ("Sorted descending vowel count: ")
for i in sorted(items,key=lambda item:item.getVowelCount(),reverse=True):
print (i.getReverse(),"->",i.getVowelCount())
|
class Sentencereverser:
vowels = ['a', 'e', 'i', 'o', 'u']
sentence = ''
reverse = ''
vowel_count = 0
def __init__(self, sentence):
self.sentence = sentence
self.reverseSentence()
def reverse_sentence(self):
self.reverse = ' '.join(reversed(self.sentence.split()))
def get_vowel_count(self):
self.vowelCount = sum((s in self.vowels for s in self.sentence.lower()))
return self.vowelCount
def get_reverse(self):
return self.reverse
items = []
for i in range(3):
reverser = sentence_reverser(input('Enter a sentence :'))
items.append(reverser)
print(reverser.reverse)
print('Sorted descending vowel count: ')
for i in sorted(items, key=lambda item: item.getVowelCount(), reverse=True):
print(i.getReverse(), '->', i.getVowelCount())
|
def fac_of_num():
global num
factor = 1
flag = True
while flag:
flag = False
try:
num = int(round(float(input("Enter the Number: "))))
if num == 0:
print("The Factorial of Zero is One")
flag = True
else:
if num < 0:
print("The Number should be Positive")
flag = True
except ValueError:
print("Enter a Valid Input")
flag = True
if num > 0:
for x in range(1, num + 1):
factor = factor * x
return factor
fac = fac_of_num()
print("The factorial of", num,"is",fac)
|
def fac_of_num():
global num
factor = 1
flag = True
while flag:
flag = False
try:
num = int(round(float(input('Enter the Number: '))))
if num == 0:
print('The Factorial of Zero is One')
flag = True
elif num < 0:
print('The Number should be Positive')
flag = True
except ValueError:
print('Enter a Valid Input')
flag = True
if num > 0:
for x in range(1, num + 1):
factor = factor * x
return factor
fac = fac_of_num()
print('The factorial of', num, 'is', fac)
|
class Signal():
def __init__(self):
self.receivers = []
def connect(self, receiver):
self.receivers.append(receiver)
def emit(self):
for receiver in self.receivers:
receiver()
|
class Signal:
def __init__(self):
self.receivers = []
def connect(self, receiver):
self.receivers.append(receiver)
def emit(self):
for receiver in self.receivers:
receiver()
|
# Functions for working with ELB/ALB
# Checks whether logging is enabled
# For an ALB, load_balancer is an ARN; it's a name for an ELB
def check_elb_logging_status(load_balancer, load_balancer_type, boto_session):
logging_enabled = False
if load_balancer_type == 'ALB':
alb_client = boto_session.client("elbv2")
try:
response = alb_client.describe_load_balancer_attributes(
LoadBalancerArn=load_balancer
)
except Exception as e:
print("Error obtaining attributes for ALB " + load_balancer + " (" + str(e) + ")")
if response: # ALB attributes are a key/value list and return a STRING
for attrib in response['Attributes']:
if attrib['Key'] == 'access_logs.s3.enabled' and attrib['Value'] == 'true':
logging_enabled = True
elif load_balancer_type == 'ELB':
elb_client = boto_session.client('elb')
try:
response = elb_client.describe_load_balancer_attributes(
LoadBalancerName=load_balancer
)
except Exception as e:
print("Error obtaining attributes for ELB " + load_balancer + " (" + str(e) + ")")
if response: # ELB attributes are a set object and return a BOOLEAN
logging_enabled = response['LoadBalancerAttributes']['AccessLog']['Enabled']
return logging_enabled
# Enable access logging on an ALB/ELB
# For an ALB, load_balancer is an ARN; it's a name for an ELB
def enable_elb_access_logging(load_balancer, load_balancer_type, bucket, bucket_prefix, boto_session):
status = False
print("enabling access logs for " + load_balancer + " writing to bucket " + bucket + " prefix " + bucket_prefix)
if load_balancer_type == 'ALB':
elb_client = boto_session.client('elbv2')
try:
response = elb_client.modify_load_balancer_attributes(
LoadBalancerArn=load_balancer,
Attributes=[
{
'Key': 'access_logs.s3.enabled',
'Value': 'true'
},
{
'Key': 'access_logs.s3.bucket',
'Value': bucket
},
{
'Key': 'access_logs.s3.prefix',
'Value': bucket_prefix
}
]
)
# We don't care about the response and it will except if there's any issue
status = True
except Exception as e:
print("Error setting attributes for ALB " + load_balancer + " (" + str(e) + ")")
status = False
elif load_balancer_type == 'ELB':
elb_client = boto_session.client('elb')
try:
response = elb_client.modify_load_balancer_attributes(
LoadBalancerAttributes={
'AccessLog': {
'Enabled': True,
'S3BucketName': bucket,
'EmitInterval': 5,
'S3BucketPrefix': bucket_prefix
},
},
LoadBalancerName=load_balancer,
)
if response:
if response['ResponseMetadata']['HTTPStatusCode'] == 200:
status = True
except Exception as e:
print("Error setting attributes for ELB " + load_balancer + " (" + str(e) + ")")
status = False
return status
# Given a target group, find the ALB it is attached to
def lookup_alb_arn(target_group_arn, boto_session):
print("Looking up LB arn for target group " + target_group_arn)
alb_client = boto_session.client("elbv2")
alb_arn = None
# This whole process kinda violates the schema since a target group can be associated with
# multiple ALBs. However, in our case that's not the case
try:
response = alb_client.describe_target_groups(
TargetGroupArns=[
target_group_arn
],
)
except Exception as e:
print("Error obtaining info for target group " + target_group_arn + " (" + str(e) + ")")
if response:
# get ARN of the first load balancer for this target group
alb_arn = response['TargetGroups'][0]['LoadBalancerArns'][0]
print("ALB arn determined to be " + alb_arn)
return alb_arn
|
def check_elb_logging_status(load_balancer, load_balancer_type, boto_session):
logging_enabled = False
if load_balancer_type == 'ALB':
alb_client = boto_session.client('elbv2')
try:
response = alb_client.describe_load_balancer_attributes(LoadBalancerArn=load_balancer)
except Exception as e:
print('Error obtaining attributes for ALB ' + load_balancer + ' (' + str(e) + ')')
if response:
for attrib in response['Attributes']:
if attrib['Key'] == 'access_logs.s3.enabled' and attrib['Value'] == 'true':
logging_enabled = True
elif load_balancer_type == 'ELB':
elb_client = boto_session.client('elb')
try:
response = elb_client.describe_load_balancer_attributes(LoadBalancerName=load_balancer)
except Exception as e:
print('Error obtaining attributes for ELB ' + load_balancer + ' (' + str(e) + ')')
if response:
logging_enabled = response['LoadBalancerAttributes']['AccessLog']['Enabled']
return logging_enabled
def enable_elb_access_logging(load_balancer, load_balancer_type, bucket, bucket_prefix, boto_session):
status = False
print('enabling access logs for ' + load_balancer + ' writing to bucket ' + bucket + ' prefix ' + bucket_prefix)
if load_balancer_type == 'ALB':
elb_client = boto_session.client('elbv2')
try:
response = elb_client.modify_load_balancer_attributes(LoadBalancerArn=load_balancer, Attributes=[{'Key': 'access_logs.s3.enabled', 'Value': 'true'}, {'Key': 'access_logs.s3.bucket', 'Value': bucket}, {'Key': 'access_logs.s3.prefix', 'Value': bucket_prefix}])
status = True
except Exception as e:
print('Error setting attributes for ALB ' + load_balancer + ' (' + str(e) + ')')
status = False
elif load_balancer_type == 'ELB':
elb_client = boto_session.client('elb')
try:
response = elb_client.modify_load_balancer_attributes(LoadBalancerAttributes={'AccessLog': {'Enabled': True, 'S3BucketName': bucket, 'EmitInterval': 5, 'S3BucketPrefix': bucket_prefix}}, LoadBalancerName=load_balancer)
if response:
if response['ResponseMetadata']['HTTPStatusCode'] == 200:
status = True
except Exception as e:
print('Error setting attributes for ELB ' + load_balancer + ' (' + str(e) + ')')
status = False
return status
def lookup_alb_arn(target_group_arn, boto_session):
print('Looking up LB arn for target group ' + target_group_arn)
alb_client = boto_session.client('elbv2')
alb_arn = None
try:
response = alb_client.describe_target_groups(TargetGroupArns=[target_group_arn])
except Exception as e:
print('Error obtaining info for target group ' + target_group_arn + ' (' + str(e) + ')')
if response:
alb_arn = response['TargetGroups'][0]['LoadBalancerArns'][0]
print('ALB arn determined to be ' + alb_arn)
return alb_arn
|
WINDOW_SIZE = 3
def window(lines, start):
if start > len(lines) - WINDOW_SIZE:
return None
return int(lines[start]), int(lines[start+1]), int(lines[start+2])
with open("data/input1.txt") as f:
lines = f.readlines()
end_idx = len(lines) - WINDOW_SIZE + 1
last_sum = None
larger_count = 0
for i in range(0, end_idx):
nums = window(lines, i)
this_sum = sum(nums)
if last_sum is None:
last_sum = this_sum
continue
if this_sum > last_sum:
larger_count += 1
last_sum = this_sum
print(larger_count)
|
window_size = 3
def window(lines, start):
if start > len(lines) - WINDOW_SIZE:
return None
return (int(lines[start]), int(lines[start + 1]), int(lines[start + 2]))
with open('data/input1.txt') as f:
lines = f.readlines()
end_idx = len(lines) - WINDOW_SIZE + 1
last_sum = None
larger_count = 0
for i in range(0, end_idx):
nums = window(lines, i)
this_sum = sum(nums)
if last_sum is None:
last_sum = this_sum
continue
if this_sum > last_sum:
larger_count += 1
last_sum = this_sum
print(larger_count)
|
def main():
formatters = {"plain": plain,
"bold": bold,
"italic": italic,
"header": header,
"link": link,
"inline-code": inline_code,
"ordered-list": make_list,
"unordered-list": make_list,
"new-line": new_line}
stored_string = ""
while True:
user_input = input("- Choose a formatter: ").lower()
if user_input == "!help":
print("Available formatters: plain bold italic header link "
"inline-code ordered-list unordered-list new-line")
print("Special commands: !help !done")
elif user_input in formatters.keys():
if user_input in ["ordered-list", "unordered-list"]:
stored_string += formatters[user_input](user_input)
print(stored_string)
else:
stored_string += formatters[user_input]()
print(stored_string)
elif user_input == "!done":
conv_string_file(stored_string)
exit()
else:
print("Unknown formatting type or command. Please try again.")
def plain():
text_input = input("- Text: ")
return text_input
def bold():
text_input = input("- Text: ")
return "**" + text_input + "**"
def italic():
text_input = input("- Text: ")
return "*" + text_input + "*"
def header():
while True:
try:
title_level = int(input('Level: '))
if title_level in range(1, 7):
break
print('The level should be within the range of 1 to 6')
except ValueError:
print(ValueError)
pass
title_input = input("- Text: ")
return "#" * title_level + " " + title_input + "\n"
def link():
input_label = input("- Label: ")
input_url = input("- URL: ")
return "[" + input_label + "]" + "(" + input_url + ")"
def inline_code():
text_input = input("- Text: ")
return "`" + text_input + "`"
# function for ordered-list & unordered-list formatters
def make_list(user_input):
list_string = ""
while True:
try:
rows = int(input("- Number of rows: "))
if rows >= 1:
break
print("The number of rows should be greater than zero")
except ValueError:
print("Please enter a valid number of rows")
pass
for r in range(1, rows + 1):
if user_input == "ordered-list":
list_string += f"{r}. " + input(f"- Row #{r}: ") + "\n"
else:
list_string += "* " + input(f"- Row #{r}: ") + "\n"
return list_string
def new_line():
return "\n"
def conv_string_file(text):
f = open('output.md', 'w+')
f.write(text)
f.close()
if __name__ == '__main__':
main()
|
def main():
formatters = {'plain': plain, 'bold': bold, 'italic': italic, 'header': header, 'link': link, 'inline-code': inline_code, 'ordered-list': make_list, 'unordered-list': make_list, 'new-line': new_line}
stored_string = ''
while True:
user_input = input('- Choose a formatter: ').lower()
if user_input == '!help':
print('Available formatters: plain bold italic header link inline-code ordered-list unordered-list new-line')
print('Special commands: !help !done')
elif user_input in formatters.keys():
if user_input in ['ordered-list', 'unordered-list']:
stored_string += formatters[user_input](user_input)
print(stored_string)
else:
stored_string += formatters[user_input]()
print(stored_string)
elif user_input == '!done':
conv_string_file(stored_string)
exit()
else:
print('Unknown formatting type or command. Please try again.')
def plain():
text_input = input('- Text: ')
return text_input
def bold():
text_input = input('- Text: ')
return '**' + text_input + '**'
def italic():
text_input = input('- Text: ')
return '*' + text_input + '*'
def header():
while True:
try:
title_level = int(input('Level: '))
if title_level in range(1, 7):
break
print('The level should be within the range of 1 to 6')
except ValueError:
print(ValueError)
pass
title_input = input('- Text: ')
return '#' * title_level + ' ' + title_input + '\n'
def link():
input_label = input('- Label: ')
input_url = input('- URL: ')
return '[' + input_label + ']' + '(' + input_url + ')'
def inline_code():
text_input = input('- Text: ')
return '`' + text_input + '`'
def make_list(user_input):
list_string = ''
while True:
try:
rows = int(input('- Number of rows: '))
if rows >= 1:
break
print('The number of rows should be greater than zero')
except ValueError:
print('Please enter a valid number of rows')
pass
for r in range(1, rows + 1):
if user_input == 'ordered-list':
list_string += f'{r}. ' + input(f'- Row #{r}: ') + '\n'
else:
list_string += '* ' + input(f'- Row #{r}: ') + '\n'
return list_string
def new_line():
return '\n'
def conv_string_file(text):
f = open('output.md', 'w+')
f.write(text)
f.close()
if __name__ == '__main__':
main()
|
#
# PySNMP MIB module ChrComPmSonetSNT-L-Day-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ChrComPmSonetSNT-L-Day-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:35:58 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint")
chrComIfifIndex, = mibBuilder.importSymbols("ChrComIfifTable-MIB", "chrComIfifIndex")
TruthValue, = mibBuilder.importSymbols("ChrTyp-MIB", "TruthValue")
chrComPmSonet, = mibBuilder.importSymbols("Chromatis-MIB", "chrComPmSonet")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
ObjectIdentity, Counter64, ModuleIdentity, IpAddress, NotificationType, Bits, MibIdentifier, TimeTicks, Unsigned32, Integer32, Gauge32, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, iso = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "Counter64", "ModuleIdentity", "IpAddress", "NotificationType", "Bits", "MibIdentifier", "TimeTicks", "Unsigned32", "Integer32", "Gauge32", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
chrComPmSonetSNT_L_DayTable = MibTable((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6), ).setLabel("chrComPmSonetSNT-L-DayTable")
if mibBuilder.loadTexts: chrComPmSonetSNT_L_DayTable.setStatus('current')
if mibBuilder.loadTexts: chrComPmSonetSNT_L_DayTable.setDescription('')
chrComPmSonetSNT_L_DayEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1), ).setLabel("chrComPmSonetSNT-L-DayEntry").setIndexNames((0, "ChrComIfifTable-MIB", "chrComIfifIndex"), (0, "ChrComPmSonetSNT-L-Day-MIB", "chrComPmSonetDayNumber"))
if mibBuilder.loadTexts: chrComPmSonetSNT_L_DayEntry.setStatus('current')
if mibBuilder.loadTexts: chrComPmSonetSNT_L_DayEntry.setDescription('')
chrComPmSonetDayNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 2))).setMaxAccess("readonly")
if mibBuilder.loadTexts: chrComPmSonetDayNumber.setStatus('current')
if mibBuilder.loadTexts: chrComPmSonetDayNumber.setDescription('')
chrComPmSonetSuspectedInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: chrComPmSonetSuspectedInterval.setStatus('current')
if mibBuilder.loadTexts: chrComPmSonetSuspectedInterval.setDescription('')
chrComPmSonetElapsedTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: chrComPmSonetElapsedTime.setStatus('current')
if mibBuilder.loadTexts: chrComPmSonetElapsedTime.setDescription('')
chrComPmSonetSuppressedIntrvls = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 4), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: chrComPmSonetSuppressedIntrvls.setStatus('current')
if mibBuilder.loadTexts: chrComPmSonetSuppressedIntrvls.setDescription('')
chrComPmSonetES = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 5), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: chrComPmSonetES.setStatus('current')
if mibBuilder.loadTexts: chrComPmSonetES.setDescription('')
chrComPmSonetSES = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 6), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: chrComPmSonetSES.setStatus('current')
if mibBuilder.loadTexts: chrComPmSonetSES.setDescription('')
chrComPmSonetCV = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 7), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: chrComPmSonetCV.setStatus('current')
if mibBuilder.loadTexts: chrComPmSonetCV.setDescription('')
chrComPmSonetUAS = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 8), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: chrComPmSonetUAS.setStatus('current')
if mibBuilder.loadTexts: chrComPmSonetUAS.setDescription('')
chrComPmSonetThresholdProfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: chrComPmSonetThresholdProfIndex.setStatus('current')
if mibBuilder.loadTexts: chrComPmSonetThresholdProfIndex.setDescription('')
chrComPmSonetResetPmCountersAction = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 10), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: chrComPmSonetResetPmCountersAction.setStatus('current')
if mibBuilder.loadTexts: chrComPmSonetResetPmCountersAction.setDescription('')
mibBuilder.exportSymbols("ChrComPmSonetSNT-L-Day-MIB", chrComPmSonetES=chrComPmSonetES, chrComPmSonetThresholdProfIndex=chrComPmSonetThresholdProfIndex, chrComPmSonetSNT_L_DayEntry=chrComPmSonetSNT_L_DayEntry, chrComPmSonetSuspectedInterval=chrComPmSonetSuspectedInterval, chrComPmSonetSES=chrComPmSonetSES, chrComPmSonetCV=chrComPmSonetCV, chrComPmSonetUAS=chrComPmSonetUAS, chrComPmSonetElapsedTime=chrComPmSonetElapsedTime, chrComPmSonetResetPmCountersAction=chrComPmSonetResetPmCountersAction, chrComPmSonetDayNumber=chrComPmSonetDayNumber, chrComPmSonetSuppressedIntrvls=chrComPmSonetSuppressedIntrvls, chrComPmSonetSNT_L_DayTable=chrComPmSonetSNT_L_DayTable)
|
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, value_size_constraint, value_range_constraint, constraints_union, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'SingleValueConstraint')
(chr_com_ifif_index,) = mibBuilder.importSymbols('ChrComIfifTable-MIB', 'chrComIfifIndex')
(truth_value,) = mibBuilder.importSymbols('ChrTyp-MIB', 'TruthValue')
(chr_com_pm_sonet,) = mibBuilder.importSymbols('Chromatis-MIB', 'chrComPmSonet')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(object_identity, counter64, module_identity, ip_address, notification_type, bits, mib_identifier, time_ticks, unsigned32, integer32, gauge32, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'Counter64', 'ModuleIdentity', 'IpAddress', 'NotificationType', 'Bits', 'MibIdentifier', 'TimeTicks', 'Unsigned32', 'Integer32', 'Gauge32', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
chr_com_pm_sonet_snt_l__day_table = mib_table((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6)).setLabel('chrComPmSonetSNT-L-DayTable')
if mibBuilder.loadTexts:
chrComPmSonetSNT_L_DayTable.setStatus('current')
if mibBuilder.loadTexts:
chrComPmSonetSNT_L_DayTable.setDescription('')
chr_com_pm_sonet_snt_l__day_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1)).setLabel('chrComPmSonetSNT-L-DayEntry').setIndexNames((0, 'ChrComIfifTable-MIB', 'chrComIfifIndex'), (0, 'ChrComPmSonetSNT-L-Day-MIB', 'chrComPmSonetDayNumber'))
if mibBuilder.loadTexts:
chrComPmSonetSNT_L_DayEntry.setStatus('current')
if mibBuilder.loadTexts:
chrComPmSonetSNT_L_DayEntry.setDescription('')
chr_com_pm_sonet_day_number = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 2))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chrComPmSonetDayNumber.setStatus('current')
if mibBuilder.loadTexts:
chrComPmSonetDayNumber.setDescription('')
chr_com_pm_sonet_suspected_interval = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 2), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chrComPmSonetSuspectedInterval.setStatus('current')
if mibBuilder.loadTexts:
chrComPmSonetSuspectedInterval.setDescription('')
chr_com_pm_sonet_elapsed_time = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chrComPmSonetElapsedTime.setStatus('current')
if mibBuilder.loadTexts:
chrComPmSonetElapsedTime.setDescription('')
chr_com_pm_sonet_suppressed_intrvls = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 4), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chrComPmSonetSuppressedIntrvls.setStatus('current')
if mibBuilder.loadTexts:
chrComPmSonetSuppressedIntrvls.setDescription('')
chr_com_pm_sonet_es = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 5), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chrComPmSonetES.setStatus('current')
if mibBuilder.loadTexts:
chrComPmSonetES.setDescription('')
chr_com_pm_sonet_ses = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 6), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chrComPmSonetSES.setStatus('current')
if mibBuilder.loadTexts:
chrComPmSonetSES.setDescription('')
chr_com_pm_sonet_cv = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 7), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chrComPmSonetCV.setStatus('current')
if mibBuilder.loadTexts:
chrComPmSonetCV.setDescription('')
chr_com_pm_sonet_uas = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 8), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chrComPmSonetUAS.setStatus('current')
if mibBuilder.loadTexts:
chrComPmSonetUAS.setDescription('')
chr_com_pm_sonet_threshold_prof_index = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chrComPmSonetThresholdProfIndex.setStatus('current')
if mibBuilder.loadTexts:
chrComPmSonetThresholdProfIndex.setDescription('')
chr_com_pm_sonet_reset_pm_counters_action = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 6, 1, 10), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
chrComPmSonetResetPmCountersAction.setStatus('current')
if mibBuilder.loadTexts:
chrComPmSonetResetPmCountersAction.setDescription('')
mibBuilder.exportSymbols('ChrComPmSonetSNT-L-Day-MIB', chrComPmSonetES=chrComPmSonetES, chrComPmSonetThresholdProfIndex=chrComPmSonetThresholdProfIndex, chrComPmSonetSNT_L_DayEntry=chrComPmSonetSNT_L_DayEntry, chrComPmSonetSuspectedInterval=chrComPmSonetSuspectedInterval, chrComPmSonetSES=chrComPmSonetSES, chrComPmSonetCV=chrComPmSonetCV, chrComPmSonetUAS=chrComPmSonetUAS, chrComPmSonetElapsedTime=chrComPmSonetElapsedTime, chrComPmSonetResetPmCountersAction=chrComPmSonetResetPmCountersAction, chrComPmSonetDayNumber=chrComPmSonetDayNumber, chrComPmSonetSuppressedIntrvls=chrComPmSonetSuppressedIntrvls, chrComPmSonetSNT_L_DayTable=chrComPmSonetSNT_L_DayTable)
|
class Show(object):
def __init__(self, drawable):
self.drawable = drawable
def next_frame(self):
self.drawable.show()
return False
|
class Show(object):
def __init__(self, drawable):
self.drawable = drawable
def next_frame(self):
self.drawable.show()
return False
|
# -*- coding: utf-8 -*-
# Copyright (c) 2015 Fredrik Eriksson <[email protected]>
# This file is covered by the BSD-3-Clause license, read LICENSE for details.
CMD_PWR_ON="poweron"
CMD_PWR_OFF="poweroff"
CMD_PWR_QUERY="powerquery"
CMD_SRC_QUERY="sourcequery"
CMD_SRC_SET="sourceset"
CMD_BRT_QUERY="brightnessquery"
CMD_BRT_SET="brightnessset"
|
cmd_pwr_on = 'poweron'
cmd_pwr_off = 'poweroff'
cmd_pwr_query = 'powerquery'
cmd_src_query = 'sourcequery'
cmd_src_set = 'sourceset'
cmd_brt_query = 'brightnessquery'
cmd_brt_set = 'brightnessset'
|
#
# Problem: Given an array of ints representing a graph, where:
# - the position of the array indicates the node value
# - the value of the array at that position indicates the node value that this node is attached to
# - the beginning of the graph will be the item whose value is equal to the index it is in
# Write a function that returns a list (size = n-1) of ints where each index is equal to the number of nodes at that
# distance away from the beginning of the graph.
# Example:
# Input: [9, 1, 4, 9, 0, 4, 8, 9, 0, 1]
# Beginning of graph is "1" (value 1 at index 1)
# - One item (node/index 9) is next to node 1
# - 3 items (0, 3, 7) is next to node 9
# - so on and so forth
# Solution: [1, 3, 2, 3, 0, 0, 0, 0, 0]
class GraphNode:
def __init__(self, label):
self.label = label
self.neighbors = set()
def __repr__(self):
return f'{self.label}: {self.neighbors}'
def solution(T):
nodes = [GraphNode(i) for i in range(len(T))]
capital = -1
# Create graph representation of our data
for idx, item in enumerate(T):
if idx == item:
capital = idx
else:
nodes[idx].neighbors.add(item)
nodes[item].neighbors.add(idx)
# Track which nodes have been and need to be evaluated at each step
nodes_evaluated = set()
nodes_to_eval = [capital]
# print(nodes)
# Our resulting list
result = []
while len(nodes_to_eval) > 0:
num_neighbors = 0
next_nodes = set()
for node_to_eval in nodes_to_eval:
nodes_evaluated.add(node_to_eval)
num_neighbors += len(nodes[node_to_eval].neighbors) - 1
if node_to_eval == capital:
num_neighbors += 1
for node in nodes[node_to_eval].neighbors:
if node not in nodes_evaluated:
next_nodes.add(node)
result.append(num_neighbors)
nodes_to_eval.clear()
nodes_to_eval.extend(next_nodes)
# Extend our result array with 0s for each distance we did not get to
zeroes = len(T) - 1 - len(result)
result.extend([0 for i in range(zeroes)])
return result
|
class Graphnode:
def __init__(self, label):
self.label = label
self.neighbors = set()
def __repr__(self):
return f'{self.label}: {self.neighbors}'
def solution(T):
nodes = [graph_node(i) for i in range(len(T))]
capital = -1
for (idx, item) in enumerate(T):
if idx == item:
capital = idx
else:
nodes[idx].neighbors.add(item)
nodes[item].neighbors.add(idx)
nodes_evaluated = set()
nodes_to_eval = [capital]
result = []
while len(nodes_to_eval) > 0:
num_neighbors = 0
next_nodes = set()
for node_to_eval in nodes_to_eval:
nodes_evaluated.add(node_to_eval)
num_neighbors += len(nodes[node_to_eval].neighbors) - 1
if node_to_eval == capital:
num_neighbors += 1
for node in nodes[node_to_eval].neighbors:
if node not in nodes_evaluated:
next_nodes.add(node)
result.append(num_neighbors)
nodes_to_eval.clear()
nodes_to_eval.extend(next_nodes)
zeroes = len(T) - 1 - len(result)
result.extend([0 for i in range(zeroes)])
return result
|
#!/usr/bin/python
# ==============================================================================
# Author: Tao Li ([email protected])
# Date: Jun 11, 2015
# Question: 225-Implement-Stack-using-Queues
# Link: https://leetcode.com/problems/implement-stack-using-queues/
# ==============================================================================
# Implement the following operations of a stack using queues.
#
# push(x) -- Push element x onto stack.
# pop() -- Removes the element on top of the stack.
# top() -- Get the top element.
# empty() -- Return whether the stack is empty.
#
# Notes:
#
# 1. You must use only standard operations of a queue -- which means only push
# to back, peek/pop from front, size, and is empty operations are valid.
#
# 2. Depending on your language, queue may not be supported natively. You may
# simulate a queue by using a list or deque (double-ended queue), as long
# as you use only standard operations of a queue.
#
# 3. You may assume that all operations are valid (for example, no pop or top
# operations will be called on an empty stack).
# ==============================================================================
# Method: Naive method
# ==============================================================================
class Stack:
# initialize your data structure here.
def __init__(self):
self.items = []
# @param x, an integer
# @return nothing
def push(self, x):
self.items.append(x)
# @return nothing
def pop(self):
self.items.pop()
# @return an integer
def top(self):
return self.items[-1]
# @return an boolean
def empty(self):
return len(self.items) == 0
|
class Stack:
def __init__(self):
self.items = []
def push(self, x):
self.items.append(x)
def pop(self):
self.items.pop()
def top(self):
return self.items[-1]
def empty(self):
return len(self.items) == 0
|
#!/usr/bin/env python3
def color_translator(color):
if color == "red":
hex_color = "#ff0000"
elif color == "green":
hex_color = "#00ff00"
elif color == "blue":
hex_color = "#0000ff"
return hex_color
print(color_translator("blue")) #Should be #0000fff
print(color_translator("yellow")) # should be unknown
print(color_translator("red")) #should be #ff0000
print(color_translator("black")) #shouldbe #00ff00
print(color_translator("green")) #should be #00ff00
print(color_translator("")) #should be unknown
|
def color_translator(color):
if color == 'red':
hex_color = '#ff0000'
elif color == 'green':
hex_color = '#00ff00'
elif color == 'blue':
hex_color = '#0000ff'
return hex_color
print(color_translator('blue'))
print(color_translator('yellow'))
print(color_translator('red'))
print(color_translator('black'))
print(color_translator('green'))
print(color_translator(''))
|
def create_multi_graph(edges):
graph = dict()
for x, y in edges:
graph[x] = []
graph[y] = []
for x, y in edges:
graph[x].append(y)
return graph
def is_eulerian(multi_graph):
number_enter = dict()
number_exit = dict()
for vertex in multi_graph:
number_enter[vertex] = 0
number_exit[vertex] = 0
for vertex in multi_graph:
for neighbor in multi_graph[vertex]:
number_exit[vertex] += 1
number_enter[neighbor] += 1
for vertex in multi_graph:
if number_enter[vertex] != number_exit[vertex]:
return False
return True
def circuit_from_eulerian(multi_graph):
current = None
for vertex in multi_graph:
if len(multi_graph[vertex]) > 0:
current = vertex
if current is None:
return []
circuit = [current]
is_possible = True
while is_possible:
is_possible = False
for next in multi_graph[circuit[-1]]:
if next not in circuit:
circuit.append(next)
is_possible = True
else:
pos = circuit.index(next)
return circuit[pos:] + circuit[:pos]
return None
def copy_multi_graph(multi_graph):
return {x: list(y) for x, y in multi_graph.items()}
def delete_circuit(circuit, multi_graph):
new = copy_multi_graph(multi_graph)
x = circuit[0]
for y in circuit[1:] + [circuit[0]]:
new[x].remove(y)
x = y
return new
def list_of_circuits(multi_graph):
circuits = []
next_circuit = circuit_from_eulerian(multi_graph)
while next_circuit:
circuits.append(next_circuit)
multi_graph = delete_circuit(next_circuit, multi_graph)
next_circuit = circuit_from_eulerian(multi_graph)
return circuits
def raboutage(circuit1, circuit2):
if circuit1 == []:
return list(circuit2)
elif circuit2 == []:
return list(circuit1)
intersection = set(circuit1).intersection(circuit2)
if not intersection:
return None
x = intersection.pop()
pos_x_1 = circuit1.index(x)
pos_x_2 = circuit2.index(x)
return circuit1[:pos_x_1] + circuit2[pos_x_2:] + circuit2[:pos_x_2] + circuit1[pos_x_1:]
def eulerian_circuit(multi_graph):
circuits = list_of_circuits(multi_graph)
if not circuits:
return []
current = []
for circuit in circuits:
current = raboutage(current, circuit)
return current
|
def create_multi_graph(edges):
graph = dict()
for (x, y) in edges:
graph[x] = []
graph[y] = []
for (x, y) in edges:
graph[x].append(y)
return graph
def is_eulerian(multi_graph):
number_enter = dict()
number_exit = dict()
for vertex in multi_graph:
number_enter[vertex] = 0
number_exit[vertex] = 0
for vertex in multi_graph:
for neighbor in multi_graph[vertex]:
number_exit[vertex] += 1
number_enter[neighbor] += 1
for vertex in multi_graph:
if number_enter[vertex] != number_exit[vertex]:
return False
return True
def circuit_from_eulerian(multi_graph):
current = None
for vertex in multi_graph:
if len(multi_graph[vertex]) > 0:
current = vertex
if current is None:
return []
circuit = [current]
is_possible = True
while is_possible:
is_possible = False
for next in multi_graph[circuit[-1]]:
if next not in circuit:
circuit.append(next)
is_possible = True
else:
pos = circuit.index(next)
return circuit[pos:] + circuit[:pos]
return None
def copy_multi_graph(multi_graph):
return {x: list(y) for (x, y) in multi_graph.items()}
def delete_circuit(circuit, multi_graph):
new = copy_multi_graph(multi_graph)
x = circuit[0]
for y in circuit[1:] + [circuit[0]]:
new[x].remove(y)
x = y
return new
def list_of_circuits(multi_graph):
circuits = []
next_circuit = circuit_from_eulerian(multi_graph)
while next_circuit:
circuits.append(next_circuit)
multi_graph = delete_circuit(next_circuit, multi_graph)
next_circuit = circuit_from_eulerian(multi_graph)
return circuits
def raboutage(circuit1, circuit2):
if circuit1 == []:
return list(circuit2)
elif circuit2 == []:
return list(circuit1)
intersection = set(circuit1).intersection(circuit2)
if not intersection:
return None
x = intersection.pop()
pos_x_1 = circuit1.index(x)
pos_x_2 = circuit2.index(x)
return circuit1[:pos_x_1] + circuit2[pos_x_2:] + circuit2[:pos_x_2] + circuit1[pos_x_1:]
def eulerian_circuit(multi_graph):
circuits = list_of_circuits(multi_graph)
if not circuits:
return []
current = []
for circuit in circuits:
current = raboutage(current, circuit)
return current
|
class IntCode:
def __init__(self, intcode):
self.index = 0
self.output_ = 0
self.intcode = intcode
def add(self, a, b):
return a + b
def mult(self, a, b):
return a * b
def store(self, v, p):
self.intcode[p] = v
def output(self, p):
return self.intcode[p]
def lessthan(self, a, b):
return a < b
def equals(self, a, b):
return a == b
def parse_mode(self, position, mode):
if mode == "1": return self.intcode[position]
else: return self.intcode[self.intcode[position]]
def run(self, input_):
# Iterate until reach the stop code
while self.intcode[self.index] != 99:
opcode = int(str(self.intcode[self.index])[-2:])
modes = str(self.intcode[self.index])[:-2][::-1] + '000'
# Addition
if opcode == 1:
self.intcode[self.intcode[self.index + 3]] = self.add(
self.parse_mode(self.index + 1, modes[0]),
self.parse_mode(self.index + 2, modes[1])
)
self.index += 4
# Multiplication
elif opcode == 2:
self.intcode[self.intcode[self.index + 3]] = self.mult(
self.parse_mode(self.index + 1, modes[0]),
self.parse_mode(self.index + 2, modes[1])
)
self.index += 4
# Storage
elif opcode == 3:
if len(input_) > 0:
self.store(input_.pop(0), self.intcode[self.index + 1])
self.index += 2
else:
raise Exception("No input for storage")
# Output
elif opcode == 4:
self.output_ = self.output(self.intcode[self.index + 1])
self.index += 2
# Jump if true
elif opcode == 5:
if self.parse_mode(self.index + 1, modes[0]) != 0:
self.index = self.parse_mode(self.index + 2, modes[1])
else:
self.index += 3
# Jump if false
elif opcode == 6:
if self.parse_mode(self.index + 1, modes[0]) == 0:
self.index = self.parse_mode(self.index + 2, modes[1])
else:
self.index += 3
# Less than
elif opcode == 7:
value = 0
position = self.intcode[self.index + 3]
if self.lessthan(
self.parse_mode(self.index + 1, modes[0]),
self.parse_mode(self.index + 2, modes[1])
):
value = 1
self.store(value, position)
self.index += 4
# Equals
elif opcode == 8:
value = 0
position = self.intcode[self.index + 3]
if self.equals(
self.parse_mode(self.index + 1, modes[0]),
self.parse_mode(self.index + 2, modes[1])
):
value = 1
self.store(value, position)
self.index += 4
# Unknown
else:
raise Exception("Unknown op code")
return self.output_
|
class Intcode:
def __init__(self, intcode):
self.index = 0
self.output_ = 0
self.intcode = intcode
def add(self, a, b):
return a + b
def mult(self, a, b):
return a * b
def store(self, v, p):
self.intcode[p] = v
def output(self, p):
return self.intcode[p]
def lessthan(self, a, b):
return a < b
def equals(self, a, b):
return a == b
def parse_mode(self, position, mode):
if mode == '1':
return self.intcode[position]
else:
return self.intcode[self.intcode[position]]
def run(self, input_):
while self.intcode[self.index] != 99:
opcode = int(str(self.intcode[self.index])[-2:])
modes = str(self.intcode[self.index])[:-2][::-1] + '000'
if opcode == 1:
self.intcode[self.intcode[self.index + 3]] = self.add(self.parse_mode(self.index + 1, modes[0]), self.parse_mode(self.index + 2, modes[1]))
self.index += 4
elif opcode == 2:
self.intcode[self.intcode[self.index + 3]] = self.mult(self.parse_mode(self.index + 1, modes[0]), self.parse_mode(self.index + 2, modes[1]))
self.index += 4
elif opcode == 3:
if len(input_) > 0:
self.store(input_.pop(0), self.intcode[self.index + 1])
self.index += 2
else:
raise exception('No input for storage')
elif opcode == 4:
self.output_ = self.output(self.intcode[self.index + 1])
self.index += 2
elif opcode == 5:
if self.parse_mode(self.index + 1, modes[0]) != 0:
self.index = self.parse_mode(self.index + 2, modes[1])
else:
self.index += 3
elif opcode == 6:
if self.parse_mode(self.index + 1, modes[0]) == 0:
self.index = self.parse_mode(self.index + 2, modes[1])
else:
self.index += 3
elif opcode == 7:
value = 0
position = self.intcode[self.index + 3]
if self.lessthan(self.parse_mode(self.index + 1, modes[0]), self.parse_mode(self.index + 2, modes[1])):
value = 1
self.store(value, position)
self.index += 4
elif opcode == 8:
value = 0
position = self.intcode[self.index + 3]
if self.equals(self.parse_mode(self.index + 1, modes[0]), self.parse_mode(self.index + 2, modes[1])):
value = 1
self.store(value, position)
self.index += 4
else:
raise exception('Unknown op code')
return self.output_
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.