content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
## Find peak element in an array
class Solution:
def findPeakElement(self, nums: List[int]) -> int:
## Iterative Binary Search
l, r = 0, len(nums)-1
while l<r:
mid = (l+r)//2
if nums[mid] > nums[mid+1]:
r = mid
else:
l = mid+1
return l
| class Solution:
def find_peak_element(self, nums: List[int]) -> int:
(l, r) = (0, len(nums) - 1)
while l < r:
mid = (l + r) // 2
if nums[mid] > nums[mid + 1]:
r = mid
else:
l = mid + 1
return l |
class Solution:
def numberOfWeeks(self, milestones: List[int]) -> int:
k = sorted(milestones,reverse = True)
t = sum(k) - k[0]
if k[0] <= t+1:
return sum(k)
else:
return 2*t+ 1 | class Solution:
def number_of_weeks(self, milestones: List[int]) -> int:
k = sorted(milestones, reverse=True)
t = sum(k) - k[0]
if k[0] <= t + 1:
return sum(k)
else:
return 2 * t + 1 |
class FilterModule(object):
''' Ansible core jinja2 filters '''
def filters(self):
return {
'infer_address' : self.infer_address
}
def infer_address(self, hostname, hostvars):
for t in ('ansible_ssh_host', 'ansible_host', 'inventory_hostname'):
if t in hostvars[hostname]:
return hostvars[hostname][t]
return None
| class Filtermodule(object):
""" Ansible core jinja2 filters """
def filters(self):
return {'infer_address': self.infer_address}
def infer_address(self, hostname, hostvars):
for t in ('ansible_ssh_host', 'ansible_host', 'inventory_hostname'):
if t in hostvars[hostname]:
return hostvars[hostname][t]
return None |
def check_log(recognition_log):
pair = recognition_log.split(",")
filename_tested = pair[0].split("/")[-1]
filename_result = pair[1].split("/")[-1]
no_extension_tested = filename_tested.split(".")[0]
no_extension_result = filename_result.split(".")[0]
check = no_extension_tested == no_extension_result
return check
def is_header(recognition_log):
pair = recognition_log.split(",")
is_header = pair[0] == "tolerance"
return is_header
false_pos = -1
true_pos = -1
tolerance = ""
first_time = True
filepath = './result.txt'
with open(filepath) as fp:
for cnt, line in enumerate(fp):
if(is_header(line)):
if first_time:
first_time = False
else:
with open('tolerance_exp.csv', 'a') as the_file:
the_file.write("%s,%i,%i\n" % (tolerance,true_pos,false_pos))
false_pos = 0
true_pos = 0
tolerance = (line.split(",")[1][:-1])
else:
if check_log(line):
true_pos += 1
else:
false_pos += 1
with open('tolerance_exp.csv', 'a') as the_file:
the_file.write("%s,%i,%i\n" % (tolerance,true_pos,false_pos))
| def check_log(recognition_log):
pair = recognition_log.split(',')
filename_tested = pair[0].split('/')[-1]
filename_result = pair[1].split('/')[-1]
no_extension_tested = filename_tested.split('.')[0]
no_extension_result = filename_result.split('.')[0]
check = no_extension_tested == no_extension_result
return check
def is_header(recognition_log):
pair = recognition_log.split(',')
is_header = pair[0] == 'tolerance'
return is_header
false_pos = -1
true_pos = -1
tolerance = ''
first_time = True
filepath = './result.txt'
with open(filepath) as fp:
for (cnt, line) in enumerate(fp):
if is_header(line):
if first_time:
first_time = False
else:
with open('tolerance_exp.csv', 'a') as the_file:
the_file.write('%s,%i,%i\n' % (tolerance, true_pos, false_pos))
false_pos = 0
true_pos = 0
tolerance = line.split(',')[1][:-1]
elif check_log(line):
true_pos += 1
else:
false_pos += 1
with open('tolerance_exp.csv', 'a') as the_file:
the_file.write('%s,%i,%i\n' % (tolerance, true_pos, false_pos)) |
#!/usr/bin/env python3
def mod_sum(n):
return sum([x for x in range(n) if (x % 3 == 0) or (x % 5 == 0)])
| def mod_sum(n):
return sum([x for x in range(n) if x % 3 == 0 or x % 5 == 0]) |
def display(summary, *args):
args = list(args)
usage = ""
example = ""
details = ""
delimiter = "="
try:
usage = args.pop(0)
example = args.pop(0)
details = args.pop(0)
except IndexError:
# End of arg list
pass
for x in range(1, len(summary)):
delimiter = delimiter + "="
print("")
print(summary)
print(delimiter)
if usage:
print("Usage: " + usage)
if example:
print("Example: " + example)
if details:
print("")
print(details)
print("")
| def display(summary, *args):
args = list(args)
usage = ''
example = ''
details = ''
delimiter = '='
try:
usage = args.pop(0)
example = args.pop(0)
details = args.pop(0)
except IndexError:
pass
for x in range(1, len(summary)):
delimiter = delimiter + '='
print('')
print(summary)
print(delimiter)
if usage:
print('Usage: ' + usage)
if example:
print('Example: ' + example)
if details:
print('')
print(details)
print('') |
# -*- coding: utf-8 -*-
'''
Created on Mar 12, 2012
@author: hathcox
Copyright 2012 Root the Box
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.
'''
class Form(object):
''' Held by FormHandler's to deal with easy validation '''
def __init__(self, *args, **kwargs):
self.form_pieces = []
# Iterate over the dictionary
for name, msg in kwargs.iteritems():
# if we got supplied with a valid pair
if isinstance(name, basestring) and isinstance(msg, basestring):
piece = FormPiece(name, msg)
self.form_pieces.append(piece)
def __get_piece_names__(self):
''' returns peices that are marked with required true '''
required_pieces = []
for piece in self.form_pieces:
required_pieces.append(piece.name)
return required_pieces
def __contains_list__(self, small, big):
'''
Checks to make sure that all of the smaller list in inside of
the bigger list
'''
all_exist = True
for item in small:
if item not in big:
all_exist = False
return all_exist
def __get_piece_by_name__(self, name):
''' returns a FormPiece based on name '''
for piece in self.form_pieces:
if piece.name == name:
return piece
return None
def set_validation(self, argument_name, error_message):
'''
Use this to set the argument's error message and type after
creating a form
'''
piece = self.__get_piece_by_name__(argument_name)
# If we have a piece by that name
if piece is not None:
piece.error_message = error_message
def __get_error_messages__(self, arguments, required_pieces):
''' Returns a list of all applicable error messages '''
self.errors = []
for piece in required_pieces:
# If the peice isn't in our argument list
if piece.name not in arguments:
self.errors.append(piece.error_message)
def validate(self, arguments=None):
'''
This method is used to validate that a form's arguments
are actually existant
'''
if arguments is not None:
self.__get_error_messages__(arguments, self.form_pieces)
return 0 == len(self.errors)
return False
class FormPiece():
''' This is essentialy a wrapper for a given Input html tag '''
def __init__(self, name, error_message="Please Fill Out All Forms"):
'''
name is the argument name, and required is wether
or not we care if we got some entry
'''
self.name = name
self.error_message = error_message
| """
Created on Mar 12, 2012
@author: hathcox
Copyright 2012 Root the Box
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.
"""
class Form(object):
""" Held by FormHandler's to deal with easy validation """
def __init__(self, *args, **kwargs):
self.form_pieces = []
for (name, msg) in kwargs.iteritems():
if isinstance(name, basestring) and isinstance(msg, basestring):
piece = form_piece(name, msg)
self.form_pieces.append(piece)
def __get_piece_names__(self):
""" returns peices that are marked with required true """
required_pieces = []
for piece in self.form_pieces:
required_pieces.append(piece.name)
return required_pieces
def __contains_list__(self, small, big):
"""
Checks to make sure that all of the smaller list in inside of
the bigger list
"""
all_exist = True
for item in small:
if item not in big:
all_exist = False
return all_exist
def __get_piece_by_name__(self, name):
""" returns a FormPiece based on name """
for piece in self.form_pieces:
if piece.name == name:
return piece
return None
def set_validation(self, argument_name, error_message):
"""
Use this to set the argument's error message and type after
creating a form
"""
piece = self.__get_piece_by_name__(argument_name)
if piece is not None:
piece.error_message = error_message
def __get_error_messages__(self, arguments, required_pieces):
""" Returns a list of all applicable error messages """
self.errors = []
for piece in required_pieces:
if piece.name not in arguments:
self.errors.append(piece.error_message)
def validate(self, arguments=None):
"""
This method is used to validate that a form's arguments
are actually existant
"""
if arguments is not None:
self.__get_error_messages__(arguments, self.form_pieces)
return 0 == len(self.errors)
return False
class Formpiece:
""" This is essentialy a wrapper for a given Input html tag """
def __init__(self, name, error_message='Please Fill Out All Forms'):
"""
name is the argument name, and required is wether
or not we care if we got some entry
"""
self.name = name
self.error_message = error_message |
print(" _________ _____ ______ _________ ____ ______ ___________ ________ _________ ")
print(" | | | | / \ | | | | | ")
print(" | | | | /______\ | | | | |--------- ")
print(" | __|__ |______ | / \ |______ | |________| |_________ ")
print("\n\n")
print("This is a simple project [tic tac toe game] developed by Mr Ayush ")
lis=[]
for i in range(1,4):
lis.append(['*','*','*'])
def print_pattern(lis):
print(" [1] [2] [3]")
print("[1] %c |%c |%c"%(lis[0][0],lis[0][1],lis[0][2]))
print(" __|__|__")
print("[2] %c |%c |%c"%(lis[1][0],lis[1][1],lis[1][2]))
print(" __|__|__")
print("[3] %c |%c |%c"%(lis[2][0],lis[2][1],lis[2][2]))
print_pattern(lis)
print("\n\nTIC TAC TOE BOARD")
print("\nHERE * REPRESNT THE POSITION WHERE CHARACTER WILL BE PLOTTED\n\n")
name_first,name_second=input("Enter the name of FIRST PLAYER (-_-):="),input("Enter the name of SECOND PLAYER (-_-):=")
ch1,ch2=input("Enter the first character (^_^):= "),input("Enter the second chararcter (^_^):= ")
entry=int(input("Enter 1 if the FIRST turn is given to FIRST PLAYER ELSE the turn will be given to SECOND PLAYER:="))
print("\n\n\n")
print("Let's play!!!!!!!!!!")
def check_the_game_status(lis,x,y):
if lis[x][0]==lis[x][1]==lis[x][2]: #for checking horizontal line
return True
elif lis[0][y]==lis[1][y]==lis[2][y]: #for checking vertical line
return True
elif x==y: # for checking diagonal line
m=x
n=y
x=0
y=0
if lis[x][y]==lis[x+1][y+1]==lis[x+2][y+2]:
return True
elif m==1 and n==1:
x=0
y=2
if lis[x][y]==lis[x+1][y-1]==lis[x+2][y-2]:
return True
else:
return False
else:
return False
elif (x==0 and y==2) or (x==2 and y==0):
x=0
y=2
if lis[x][y]==lis[x+1][y-1]==lis[x+2][y-2]:
return True
else:
return False
lis=[]
for x in range(3):
lis.append([' ',' ',' '])
DATABASE=[] # to store the moves value(x,y) ,,, if someone enter the value which is already filled then it can be checked from here
print("PLEASE INPUT WHEN VALUE OF ROW AND COLUMN NUMBER WHEN ASKED AND INPUT IT WITH SEPARATED BY SINGLE SPACE (*_*)")
print("\n\n")
for m in range(9):
print("Enter the value of ROW and COLUMN number:=",end="")
x,y=list(map(eval,input().split(" ")))
while x>3 or y>3:
print("YOU HAVE ENTERED INVALID ROW-COLUMN VALUE,,PLEASE ENTER AGAIN:=")
x,y=list(map(eval,input().split(" ")))
x-=1
y-=1
while [x,y] in DATABASE:
print("!!!YOU HAVE ENTERED A VALUE ON BOARD WHICH IS ALREADY FILLED")
print("!!!AGAIN ENTER VALUES OF ROW AND COLUMN NUMBER:=")
x,y=list(map(eval,input().split(" ")))
DATABASE.append([x,y])
print("")
if entry==1:
lis[x][y]=ch1
current=name_first
entry=0
else:
lis[x][y]=ch2
current=name_second
entry=1
print_pattern(lis)
if check_the_game_status(lis,x,y):
print(current,"player WINS!!! (0_0) (0_0) (0_0),HOPE YOU ENJOYED(^_^)")
break
else:
print("Game TIED (0_0)!!!!!!!!!!")
| print(' _________ _____ ______ _________ ____ ______ ___________ ________ _________ ')
print(' | | | | / \\ | | | | | ')
print(' | | | | /______\\ | | | | |--------- ')
print(' | __|__ |______ | / \\ |______ | |________| |_________ ')
print('\n\n')
print('This is a simple project [tic tac toe game] developed by Mr Ayush ')
lis = []
for i in range(1, 4):
lis.append(['*', '*', '*'])
def print_pattern(lis):
print(' [1] [2] [3]')
print('[1] %c |%c |%c' % (lis[0][0], lis[0][1], lis[0][2]))
print(' __|__|__')
print('[2] %c |%c |%c' % (lis[1][0], lis[1][1], lis[1][2]))
print(' __|__|__')
print('[3] %c |%c |%c' % (lis[2][0], lis[2][1], lis[2][2]))
print_pattern(lis)
print('\n\nTIC TAC TOE BOARD')
print('\nHERE * REPRESNT THE POSITION WHERE CHARACTER WILL BE PLOTTED\n\n')
(name_first, name_second) = (input('Enter the name of FIRST PLAYER (-_-):='), input('Enter the name of SECOND PLAYER (-_-):='))
(ch1, ch2) = (input('Enter the first character (^_^):= '), input('Enter the second chararcter (^_^):= '))
entry = int(input('Enter 1 if the FIRST turn is given to FIRST PLAYER ELSE the turn will be given to SECOND PLAYER:='))
print('\n\n\n')
print("Let's play!!!!!!!!!!")
def check_the_game_status(lis, x, y):
if lis[x][0] == lis[x][1] == lis[x][2]:
return True
elif lis[0][y] == lis[1][y] == lis[2][y]:
return True
elif x == y:
m = x
n = y
x = 0
y = 0
if lis[x][y] == lis[x + 1][y + 1] == lis[x + 2][y + 2]:
return True
elif m == 1 and n == 1:
x = 0
y = 2
if lis[x][y] == lis[x + 1][y - 1] == lis[x + 2][y - 2]:
return True
else:
return False
else:
return False
elif x == 0 and y == 2 or (x == 2 and y == 0):
x = 0
y = 2
if lis[x][y] == lis[x + 1][y - 1] == lis[x + 2][y - 2]:
return True
else:
return False
lis = []
for x in range(3):
lis.append([' ', ' ', ' '])
database = []
print('PLEASE INPUT WHEN VALUE OF ROW AND COLUMN NUMBER WHEN ASKED AND INPUT IT WITH SEPARATED BY SINGLE SPACE (*_*)')
print('\n\n')
for m in range(9):
print('Enter the value of ROW and COLUMN number:=', end='')
(x, y) = list(map(eval, input().split(' ')))
while x > 3 or y > 3:
print('YOU HAVE ENTERED INVALID ROW-COLUMN VALUE,,PLEASE ENTER AGAIN:=')
(x, y) = list(map(eval, input().split(' ')))
x -= 1
y -= 1
while [x, y] in DATABASE:
print('!!!YOU HAVE ENTERED A VALUE ON BOARD WHICH IS ALREADY FILLED')
print('!!!AGAIN ENTER VALUES OF ROW AND COLUMN NUMBER:=')
(x, y) = list(map(eval, input().split(' ')))
DATABASE.append([x, y])
print('')
if entry == 1:
lis[x][y] = ch1
current = name_first
entry = 0
else:
lis[x][y] = ch2
current = name_second
entry = 1
print_pattern(lis)
if check_the_game_status(lis, x, y):
print(current, 'player WINS!!! (0_0) (0_0) (0_0),HOPE YOU ENJOYED(^_^)')
break
else:
print('Game TIED (0_0)!!!!!!!!!!') |
# Write your code here
n,k = [int(x) for x in input().split()]
l = []
while n > 0 :
a = int(input())
l.append(a)
n -= 1
while(l[0] <= k) :
l.pop(0)
l = l[::-1]
while (l[0] <= k) :
l.pop(0)
#print(l)
print(len(l))
| (n, k) = [int(x) for x in input().split()]
l = []
while n > 0:
a = int(input())
l.append(a)
n -= 1
while l[0] <= k:
l.pop(0)
l = l[::-1]
while l[0] <= k:
l.pop(0)
print(len(l)) |
def find_2020th_number_spoken(starting_numbers):
num_list = []
starting_numbers = [ int(num) for num in starting_numbers.split(',') ]
for i in range(0, 2020):
#print(f'i:{i}, num_list: {num_list}')
if i < len(starting_numbers):
#print(f'Still in starting numbers')
num_list.append(starting_numbers[i])
else:
last_num = num_list[i-1]
found_num = False
for j, num in enumerate(reversed(num_list[0:-1])):
if num == last_num:
#print(f'Found {last_num} at {j+1} numbers back')
num_list.append(j+1)
found_num = True
break
if found_num == False:
#print(f'Didn\'t find {last_num}, add 0 to list')
num_list.append(0)
return num_list[-1]
def find_nth_number_spoken(n, starting_numbers):
num_list = []
starting_numbers = [ int(num) for num in starting_numbers.split(',') ]
for i in range(0, n):
#if i % 10000 == 0:
#print(f'i:{i}, num_list: {num_list}')
if i < len(starting_numbers):
#print(f'Still in starting numbers')
num_list.append(starting_numbers[i])
else:
last_num = num_list[i-1]
found_num = False
for j, num in enumerate(reversed(num_list[0:-1])):
if num == last_num:
#print(f'Found {last_num} at {j+1} numbers back')
num_list.append(j+1)
found_num = True
break
if found_num == False:
#print(f'Didn\'t find {last_num}, add 0 to list')
num_list.append(0)
return num_list[-1]
def find_nth_number_spoken_dict(n, starting_numbers):
num_list = []
num_dict = {}
old_dict = {}
starting_numbers = [ int(num) for num in starting_numbers.split(',') ]
for i in range(0, n):
#if i % 10000 == 0:
# print(f'i:{i}')
#print(f'i:{i}, num_list: {num_list}, num_dict: {num_dict}, old_dict: {old_dict}')
if i < len(starting_numbers):
#print(f'Still in starting numbers')
num = starting_numbers[i]
num_list.append(num)
if num in num_dict:
old_dict[num] = num_dict[num]
num_dict[num] = i
else:
last_num = num_list[i-1]
if last_num in old_dict:
new_num = i - 1 - old_dict[last_num]
#print(f'Found last_num: {last_num} at index: {old_dict[last_num]}. new_num: {new_num}')
num_list.append(new_num)
old_dict[last_num] = num_dict[last_num]
if new_num in num_dict:
old_dict[new_num] = num_dict[new_num]
num_dict[new_num] = i
else:
#print(f'Did not find last_num: {last_num} in old_dict')
if last_num in num_dict:
#print(f'Found last_num: {last_num} in new_dict with value: {num_dict[last_num]}')
if num_dict[last_num] == i - 1:
pass
#print(f'Found it at previous index. Ignore')
else:
#print(f'Found it at other index. Add old_dict entry')
old_dict[num] = num_dict[num]
num_list.append(0)
if 0 in num_dict:
old_dict[0] = num_dict[0]
num_dict[0] = i
else:
print(f'How did this happen?')
return num_list[-1]
if __name__ == '__main__':
filenames = ['input-sample.txt', 'input.txt']
for filename in filenames:
with open(filename, 'r') as f:
starting_numbers_list = f.read().splitlines()
for starting_numbers in starting_numbers_list:
#num = find_2020th_number_spoken(starting_numbers)
#print(f'2020th number: {num}')
num = find_nth_number_spoken(2020, starting_numbers)
print(f'2020th number: {num}')
num = find_nth_number_spoken_dict(2020, starting_numbers)
print(f'2020th number: {num}')
for starting_numbers in starting_numbers_list:
num = find_nth_number_spoken_dict(30000000, starting_numbers)
print(f'30000000th number: {num}')
| def find_2020th_number_spoken(starting_numbers):
num_list = []
starting_numbers = [int(num) for num in starting_numbers.split(',')]
for i in range(0, 2020):
if i < len(starting_numbers):
num_list.append(starting_numbers[i])
else:
last_num = num_list[i - 1]
found_num = False
for (j, num) in enumerate(reversed(num_list[0:-1])):
if num == last_num:
num_list.append(j + 1)
found_num = True
break
if found_num == False:
num_list.append(0)
return num_list[-1]
def find_nth_number_spoken(n, starting_numbers):
num_list = []
starting_numbers = [int(num) for num in starting_numbers.split(',')]
for i in range(0, n):
if i < len(starting_numbers):
num_list.append(starting_numbers[i])
else:
last_num = num_list[i - 1]
found_num = False
for (j, num) in enumerate(reversed(num_list[0:-1])):
if num == last_num:
num_list.append(j + 1)
found_num = True
break
if found_num == False:
num_list.append(0)
return num_list[-1]
def find_nth_number_spoken_dict(n, starting_numbers):
num_list = []
num_dict = {}
old_dict = {}
starting_numbers = [int(num) for num in starting_numbers.split(',')]
for i in range(0, n):
if i < len(starting_numbers):
num = starting_numbers[i]
num_list.append(num)
if num in num_dict:
old_dict[num] = num_dict[num]
num_dict[num] = i
else:
last_num = num_list[i - 1]
if last_num in old_dict:
new_num = i - 1 - old_dict[last_num]
num_list.append(new_num)
old_dict[last_num] = num_dict[last_num]
if new_num in num_dict:
old_dict[new_num] = num_dict[new_num]
num_dict[new_num] = i
elif last_num in num_dict:
if num_dict[last_num] == i - 1:
pass
else:
old_dict[num] = num_dict[num]
num_list.append(0)
if 0 in num_dict:
old_dict[0] = num_dict[0]
num_dict[0] = i
else:
print(f'How did this happen?')
return num_list[-1]
if __name__ == '__main__':
filenames = ['input-sample.txt', 'input.txt']
for filename in filenames:
with open(filename, 'r') as f:
starting_numbers_list = f.read().splitlines()
for starting_numbers in starting_numbers_list:
num = find_nth_number_spoken(2020, starting_numbers)
print(f'2020th number: {num}')
num = find_nth_number_spoken_dict(2020, starting_numbers)
print(f'2020th number: {num}')
for starting_numbers in starting_numbers_list:
num = find_nth_number_spoken_dict(30000000, starting_numbers)
print(f'30000000th number: {num}') |
# used for template multi_assignment_list_modal
class MultiVideoAssignmentData:
def __init__(self, name, count, video_id, set_id):
self.name = name
self.count = count
self.video_id = video_id
self.set_id = set_id
| class Multivideoassignmentdata:
def __init__(self, name, count, video_id, set_id):
self.name = name
self.count = count
self.video_id = video_id
self.set_id = set_id |
first_number= 1
sec_number= 2
sum= 0
while (first_number < 4000000):
new= first_number + sec_number
first_number= sec_number
sec_number= new
if(first_number % 2== 0):
sum= sum+first_number
print(sum)
| first_number = 1
sec_number = 2
sum = 0
while first_number < 4000000:
new = first_number + sec_number
first_number = sec_number
sec_number = new
if first_number % 2 == 0:
sum = sum + first_number
print(sum) |
start_position = {
(1, 2): "y", (1, 3): "", (1, 5): "y'", (1, 6): "y2",
(2, 1): "z' y'", (2, 3): "z'", (2, 4): "z' y", (2, 6): "z' y2",
(3, 1): "x y2", (3, 2): "x y", (3, 4): "x", (3, 5): "x y'",
(4, 2): "z2 y'", (4, 3): "z2", (4, 5): "z2 y", (4, 6): "x2",
(5, 1): "z y", (5, 3): "z", (5, 4): "z y'", (5, 6): "z y2",
(6, 1): "x'", (6, 2): "x' y", (6, 4): "x' y2", (6, 5): "x' y'"
}
sorted_sides = [3, 5, 6, 2, 1, 4]
scramble_board_position = {
5: (1, 0),
4: (2, 1),
1: (1, 1),
6: (1, 2),
2: (0, 1),
3: (3, 1)
} | start_position = {(1, 2): 'y', (1, 3): '', (1, 5): "y'", (1, 6): 'y2', (2, 1): "z' y'", (2, 3): "z'", (2, 4): "z' y", (2, 6): "z' y2", (3, 1): 'x y2', (3, 2): 'x y', (3, 4): 'x', (3, 5): "x y'", (4, 2): "z2 y'", (4, 3): 'z2', (4, 5): 'z2 y', (4, 6): 'x2', (5, 1): 'z y', (5, 3): 'z', (5, 4): "z y'", (5, 6): 'z y2', (6, 1): "x'", (6, 2): "x' y", (6, 4): "x' y2", (6, 5): "x' y'"}
sorted_sides = [3, 5, 6, 2, 1, 4]
scramble_board_position = {5: (1, 0), 4: (2, 1), 1: (1, 1), 6: (1, 2), 2: (0, 1), 3: (3, 1)} |
sink_db = 'gedcom'
sink_tbl = {
"person": "person",
"family": "family"
}
| sink_db = 'gedcom'
sink_tbl = {'person': 'person', 'family': 'family'} |
#
# Copyright (c) 2017-2018 Joy Diamond. All rights reserved.
#
@gem('Sapphire.Combine')
def gem():
require_gem('Sapphire.Parse')
require_gem('Sapphire.SymbolTable')
variables = [
0, # 0 = copyright
]
query = variables.__getitem__
write = variables.__setitem__
qc = Method(query, 0)
wc = Method(write, 0)
wc0 = Method(wc, 0)
#
# Tokens
#
empty_indentation__function = conjure_indented_token(empty_indentation, FUNCTION__W)
#def gem():
gem__function_header = conjure_function_header(
empty_indentation__function,
conjure_name('gem'),
conjure_parameters_0(LP, RP),
COLON__LINE_MARKER,
)
class Copyright(Object):
__slots__ = ((
'year', # String+
'author', # String+
))
def __init__(t, year, author):
t.year = year
t.author = author
def write(t, f):
copyright = qc()
if t is not copyright:
if copyright is not 0:
close_copyright(f)
wc(t)
f.blank2()
f.line('#<Copyright (c) %s %s. All rights reserved.>', t.year, t.author)
f.blank_suppress()
Copyright.k1 = Copyright.year
Copyright.k2 = Copyright.author
copyright_cache = {}
conjure_copyright__X__dual = produce_conjure_dual('copyright', Copyright, copyright_cache)
def conjure_copyright(year, author):
return conjure_copyright__X__dual(intern_string(year), intern_string(author))
def close_copyright(f):
if qc() is not 0:
wc0()
f.blank_suppress()
f.line('#</Copyright>')
f.blank2()
class TwigCode(Object):
__slots__ = ((
'path', # String+
'part', # String
'copyright', # Copyright
'twig', # Any
'symbol_table', # GlobalSymbolTable
'transformed_twig', # Any
))
def __init__(t, path, part, copyright, twig, symbol_table, transformed_twig):
t.path = path
t.part = part
t.copyright = copyright
t.twig = twig
t.symbol_table = symbol_table
t.transformed_twig = transformed_twig
def write(t, f, tree = false):
t.copyright.write(f)
f.blank2()
f.line(arrange("#<source %r %s>", t.path, t.part))
if tree:
f2 = create_TokenOutput(f)
with f2.change_prefix('#', '# '):
f2.line()
r = t.twig.dump_token(f2)
f2.line()
assert not r
t.symbol_table.dump_global_symbol_table(f2)
f2.flush()
t.transformed_twig.write(f.write)
f.line('#</source>')
f.blank2()
def create_twig_code(path, part, copyright, twig, vary):
[art, transformed_twig] = build_global_symbol_table(twig, vary)
return TwigCode(path, part, copyright, twig, art, transformed_twig)
class RequireMany(Object):
__slots__ = ((
'vary', # SapphireTransform
'latest_many', # List of String
'_append_latest', # Method
'twig_many', # List of Twig
'_append_twig', # Method
'processed_set', # LiquidSet of String
'_add_processed', # Method
'_contains_processed', # Method
))
def __init__(t, vary):
t.vary = vary
t.latest_many = many = []
t._append_latest = many.append
t.twig_many = many = []
t._append_twig = many.append
t.processed_set = processed = LiquidSet()
t._add_processed = processed.add
t._contains_processed = processed.__contains__
#
# Ignore these file, pretend we already saw them
#
t._add_processed('Gem.Path2')
t._add_processed('Sapphire.Boot')
t._add_processed('Sapphire.Parse2')
def add_require_gem(t, module_name):
assert module_name.is_single_quote
s = module_name.s[1:-1]
if t._contains_processed(s):
return
t._append_latest(s)
def loop(t):
contains_processed = t._contains_processed
latest_many = t.latest_many
process_module = t.process_module
append_latest = t._append_latest
extend_latest = latest_many.extend
length_latest = latest_many.__len__
index_latest = latest_many.__getitem__
delete_latest = latest_many.__delitem__
index_latest_0 = Method(index_latest, 0)
index_latest_1 = Method(index_latest, 1)
delete_latest_0 = Method(delete_latest, 0)
zap_latest = Method(delete_latest, slice_all)
while 7 is 7:
total = length_latest()
if total is 0:
break
first = index_latest_0()
if contains_processed(first):
##line('Already processed %s', first)
delete_latest_0()
continue
line('Total %d - Process %s', total, first)
if total is 1:
zap_latest()
process_module(first)
continue
if total is 2:
other = index_latest_1()
zap_latest()
process_module(first)
append_latest(other)
continue
other = t.latest_many[1:]
zap_latest()
process_module(first)
extend_latest(other)
def process_module(t, module):
t._add_processed(module)
if module.startswith('Gem.'):
parent = '../Gem'
elif module.startswith('Pearl.'):
parent = '../Parser'
elif module.startswith('Sapphire.'):
parent = '../Parser'
elif module.startswith('Tremolite.'):
parent = '../Tremolite'
else:
line('module: %s', module)
path = path_join(parent, arrange('%s.py', module.replace('.', '/')))
gem = extract_gem(module, path, t.vary)
t._append_twig(gem)
gem.twig.find_require_gem(t)
def conjure_gem_decorator_header(module):
#@gem('Gem.Something')
return conjure_decorator_header(
empty_indentation__at_sign,
conjure_call_expression(
conjure_name('gem'),
conjure_arguments_1(LP, conjure_single_quote(portray(module)), RP),
),
LINE_MARKER,
)
def extract_boot(path, tree, index, copyright, vary):
boot_code = tree[index]
#@boot('Boot')
boot_code__decorator_header = conjure_decorator_header(
empty_indentation__at_sign,
conjure_call_expression(
conjure_name('boot'),
conjure_arguments_1(LP, conjure_single_quote("'Boot'"), RP),
),
LINE_MARKER,
)
assert boot_code.is_decorated_definition
assert boot_code.a is boot_code__decorator_header
return create_twig_code(
path,
arrange('[%d]', index),
extract_copyright(tree),
boot_code,
vary,
)
def extract_boot_decorator(function_name, path, tree, copyright, vary = 0):
boot_decorator = tree[0]
#def boot(module_name):
boot_decorator__function_header = conjure_function_header(
empty_indentation__function,
conjure_name(function_name),
conjure_parameters_1(LP, conjure_name('module_name'), RP),
COLON__LINE_MARKER,
)
assert boot_decorator.is_function_definition
assert boot_decorator.a is boot_decorator__function_header
assert boot_decorator.b.is_statement_suite
return create_twig_code(path, '[0]', copyright, boot_decorator, vary)
def extract_copyright(tree):
copyright = tree[0].prefix
if not copyright.is_comment_suite:
dump_token('copyright', copyright)
assert copyright.is_comment_suite
assert length(copyright) is 3
assert copyright[0] == empty_comment_line
assert copyright[1].is_comment_line
assert copyright[2] == empty_comment_line
m = copyright_match(copyright[1])
if m is none:
raise_runtime_error('failed to extract copyright from: %r', copyright[1])
return conjure_copyright(m.group('year'), m.group('author'))
def extract_gem(module, path, vary):
tree = parse_python(path)
assert length(tree) is 1
copyright = extract_copyright(tree)
gem = tree[0]
if gem.a is not conjure_gem_decorator_header(module):
dump_token('gem.a', gem.a)
dump_token('other', conjure_gem_decorator_header(module))
assert gem.is_decorated_definition
assert gem.a is conjure_gem_decorator_header(module)
assert gem.b.is_function_definition
assert gem.b.a is gem__function_header
return create_twig_code(path, '[0]', copyright, gem, vary)
def extract_sardnoyx_boot(vary):
path = path_join(source_path, 'Parser/Sardonyx/Boot.py')
tree = parse_python(path)
assert length(tree) is 1
return extract_boot(path, tree, 0, extract_copyright(tree), vary)
def extract_gem_boot(vary):
module_name = 'Gem.Boot'
path = path_join(source_path, 'Gem/Gem/Boot.py')
#path = 'b2.py'
tree = parse_python(path)
assert length(tree) is 3
copyright = extract_copyright(tree)
#
# [0]
# def boot(module_name):
# ...
#
boot_decorator = extract_boot_decorator('gem', path, tree, copyright)
del boot_decorator # We don't really want this, but just extracted it for testing purposes
#
# [1]: empty lines
#
assert tree[1].is_empty_line_suite
#
# [2]:
# @gem('Gem.Boot')
# def gem():
# ...
#
gem = tree[2]
assert gem.is_decorated_definition
assert gem.a is conjure_gem_decorator_header(module_name)
assert gem.b.is_function_definition
assert gem.b.a is gem__function_header
assert gem.b.b.is_statement_suite
return create_twig_code(path, '[2]', copyright, gem, vary)
def extract_sapphire_main(vary):
module_name = 'Sapphire.Main'
path = path_join(source_path, 'Parser/Sapphire/Main.py')
tree = parse_python(path)
assert length(tree) is 5
copyright = extract_copyright(tree)
#
# [0]:
# def boot(module_name):
# ...
#
boot_decorator = extract_boot_decorator('boot', path, tree, copyright, vary)
#
# [1]: empty lines
#
assert tree[1].is_empty_line_suite
#
# [2]:
# @boot('Boot')
# def boot():
# ...
#
boot = extract_boot(path, tree, 2, copyright, vary)
del boot # We don't really want this, but just extracted it for testing purposes
#
# [3]
#
assert tree[3].is_empty_line_suite
#
# [4]:
# @gem('Sapphire.Main')
# def gem():
# ...
#
main = tree[4]
assert main.is_decorated_definition
assert main.a is conjure_gem_decorator_header(module_name)
assert main.b.is_function_definition
assert main.b.a is gem__function_header
assert main.b.b.is_statement_suite
#
# Result
#
return ((
boot_decorator,
create_twig_code(path, '[4]', copyright, main, vary),
))
@share
def command_combine__X(module_name, vary, tree = true):
[boot_decorator, main_code] = extract_sapphire_main(vary)
sardnoyx_boot_code = extract_sardnoyx_boot(vary)
gem_boot_code = extract_gem_boot(vary)
require_many = RequireMany(vary)
require_many.process_module('Gem.Core')
main_code.twig.find_require_gem(require_many)
require_many.loop()
output_path = path_join(binary_path, arrange('.pyxie/%s.py', module_name))
with create_DelayedFileOutput(output_path) as f:
boot_decorator .write(f, tree)
sardnoyx_boot_code.write(f, tree)
for v in require_many.twig_many:
v.write(f, tree)
gem_boot_code.write(f, tree)
main_code .write(f, tree)
close_copyright(f)
#partial(read_text_from_path(output_path))
#for name in ['cell-function-parameter']:
# print_cache(name)
#print_cache()
| @gem('Sapphire.Combine')
def gem():
require_gem('Sapphire.Parse')
require_gem('Sapphire.SymbolTable')
variables = [0]
query = variables.__getitem__
write = variables.__setitem__
qc = method(query, 0)
wc = method(write, 0)
wc0 = method(wc, 0)
empty_indentation__function = conjure_indented_token(empty_indentation, FUNCTION__W)
gem__function_header = conjure_function_header(empty_indentation__function, conjure_name('gem'), conjure_parameters_0(LP, RP), COLON__LINE_MARKER)
class Copyright(Object):
__slots__ = ('year', 'author')
def __init__(t, year, author):
t.year = year
t.author = author
def write(t, f):
copyright = qc()
if t is not copyright:
if copyright is not 0:
close_copyright(f)
wc(t)
f.blank2()
f.line('#<Copyright (c) %s %s. All rights reserved.>', t.year, t.author)
f.blank_suppress()
Copyright.k1 = Copyright.year
Copyright.k2 = Copyright.author
copyright_cache = {}
conjure_copyright__x__dual = produce_conjure_dual('copyright', Copyright, copyright_cache)
def conjure_copyright(year, author):
return conjure_copyright__x__dual(intern_string(year), intern_string(author))
def close_copyright(f):
if qc() is not 0:
wc0()
f.blank_suppress()
f.line('#</Copyright>')
f.blank2()
class Twigcode(Object):
__slots__ = ('path', 'part', 'copyright', 'twig', 'symbol_table', 'transformed_twig')
def __init__(t, path, part, copyright, twig, symbol_table, transformed_twig):
t.path = path
t.part = part
t.copyright = copyright
t.twig = twig
t.symbol_table = symbol_table
t.transformed_twig = transformed_twig
def write(t, f, tree=false):
t.copyright.write(f)
f.blank2()
f.line(arrange('#<source %r %s>', t.path, t.part))
if tree:
f2 = create__token_output(f)
with f2.change_prefix('#', '# '):
f2.line()
r = t.twig.dump_token(f2)
f2.line()
assert not r
t.symbol_table.dump_global_symbol_table(f2)
f2.flush()
t.transformed_twig.write(f.write)
f.line('#</source>')
f.blank2()
def create_twig_code(path, part, copyright, twig, vary):
[art, transformed_twig] = build_global_symbol_table(twig, vary)
return twig_code(path, part, copyright, twig, art, transformed_twig)
class Requiremany(Object):
__slots__ = ('vary', 'latest_many', '_append_latest', 'twig_many', '_append_twig', 'processed_set', '_add_processed', '_contains_processed')
def __init__(t, vary):
t.vary = vary
t.latest_many = many = []
t._append_latest = many.append
t.twig_many = many = []
t._append_twig = many.append
t.processed_set = processed = liquid_set()
t._add_processed = processed.add
t._contains_processed = processed.__contains__
t._add_processed('Gem.Path2')
t._add_processed('Sapphire.Boot')
t._add_processed('Sapphire.Parse2')
def add_require_gem(t, module_name):
assert module_name.is_single_quote
s = module_name.s[1:-1]
if t._contains_processed(s):
return
t._append_latest(s)
def loop(t):
contains_processed = t._contains_processed
latest_many = t.latest_many
process_module = t.process_module
append_latest = t._append_latest
extend_latest = latest_many.extend
length_latest = latest_many.__len__
index_latest = latest_many.__getitem__
delete_latest = latest_many.__delitem__
index_latest_0 = method(index_latest, 0)
index_latest_1 = method(index_latest, 1)
delete_latest_0 = method(delete_latest, 0)
zap_latest = method(delete_latest, slice_all)
while 7 is 7:
total = length_latest()
if total is 0:
break
first = index_latest_0()
if contains_processed(first):
delete_latest_0()
continue
line('Total %d - Process %s', total, first)
if total is 1:
zap_latest()
process_module(first)
continue
if total is 2:
other = index_latest_1()
zap_latest()
process_module(first)
append_latest(other)
continue
other = t.latest_many[1:]
zap_latest()
process_module(first)
extend_latest(other)
def process_module(t, module):
t._add_processed(module)
if module.startswith('Gem.'):
parent = '../Gem'
elif module.startswith('Pearl.'):
parent = '../Parser'
elif module.startswith('Sapphire.'):
parent = '../Parser'
elif module.startswith('Tremolite.'):
parent = '../Tremolite'
else:
line('module: %s', module)
path = path_join(parent, arrange('%s.py', module.replace('.', '/')))
gem = extract_gem(module, path, t.vary)
t._append_twig(gem)
gem.twig.find_require_gem(t)
def conjure_gem_decorator_header(module):
return conjure_decorator_header(empty_indentation__at_sign, conjure_call_expression(conjure_name('gem'), conjure_arguments_1(LP, conjure_single_quote(portray(module)), RP)), LINE_MARKER)
def extract_boot(path, tree, index, copyright, vary):
boot_code = tree[index]
boot_code__decorator_header = conjure_decorator_header(empty_indentation__at_sign, conjure_call_expression(conjure_name('boot'), conjure_arguments_1(LP, conjure_single_quote("'Boot'"), RP)), LINE_MARKER)
assert boot_code.is_decorated_definition
assert boot_code.a is boot_code__decorator_header
return create_twig_code(path, arrange('[%d]', index), extract_copyright(tree), boot_code, vary)
def extract_boot_decorator(function_name, path, tree, copyright, vary=0):
boot_decorator = tree[0]
boot_decorator__function_header = conjure_function_header(empty_indentation__function, conjure_name(function_name), conjure_parameters_1(LP, conjure_name('module_name'), RP), COLON__LINE_MARKER)
assert boot_decorator.is_function_definition
assert boot_decorator.a is boot_decorator__function_header
assert boot_decorator.b.is_statement_suite
return create_twig_code(path, '[0]', copyright, boot_decorator, vary)
def extract_copyright(tree):
copyright = tree[0].prefix
if not copyright.is_comment_suite:
dump_token('copyright', copyright)
assert copyright.is_comment_suite
assert length(copyright) is 3
assert copyright[0] == empty_comment_line
assert copyright[1].is_comment_line
assert copyright[2] == empty_comment_line
m = copyright_match(copyright[1])
if m is none:
raise_runtime_error('failed to extract copyright from: %r', copyright[1])
return conjure_copyright(m.group('year'), m.group('author'))
def extract_gem(module, path, vary):
tree = parse_python(path)
assert length(tree) is 1
copyright = extract_copyright(tree)
gem = tree[0]
if gem.a is not conjure_gem_decorator_header(module):
dump_token('gem.a', gem.a)
dump_token('other', conjure_gem_decorator_header(module))
assert gem.is_decorated_definition
assert gem.a is conjure_gem_decorator_header(module)
assert gem.b.is_function_definition
assert gem.b.a is gem__function_header
return create_twig_code(path, '[0]', copyright, gem, vary)
def extract_sardnoyx_boot(vary):
path = path_join(source_path, 'Parser/Sardonyx/Boot.py')
tree = parse_python(path)
assert length(tree) is 1
return extract_boot(path, tree, 0, extract_copyright(tree), vary)
def extract_gem_boot(vary):
module_name = 'Gem.Boot'
path = path_join(source_path, 'Gem/Gem/Boot.py')
tree = parse_python(path)
assert length(tree) is 3
copyright = extract_copyright(tree)
boot_decorator = extract_boot_decorator('gem', path, tree, copyright)
del boot_decorator
assert tree[1].is_empty_line_suite
gem = tree[2]
assert gem.is_decorated_definition
assert gem.a is conjure_gem_decorator_header(module_name)
assert gem.b.is_function_definition
assert gem.b.a is gem__function_header
assert gem.b.b.is_statement_suite
return create_twig_code(path, '[2]', copyright, gem, vary)
def extract_sapphire_main(vary):
module_name = 'Sapphire.Main'
path = path_join(source_path, 'Parser/Sapphire/Main.py')
tree = parse_python(path)
assert length(tree) is 5
copyright = extract_copyright(tree)
boot_decorator = extract_boot_decorator('boot', path, tree, copyright, vary)
assert tree[1].is_empty_line_suite
boot = extract_boot(path, tree, 2, copyright, vary)
del boot
assert tree[3].is_empty_line_suite
main = tree[4]
assert main.is_decorated_definition
assert main.a is conjure_gem_decorator_header(module_name)
assert main.b.is_function_definition
assert main.b.a is gem__function_header
assert main.b.b.is_statement_suite
return (boot_decorator, create_twig_code(path, '[4]', copyright, main, vary))
@share
def command_combine__x(module_name, vary, tree=true):
[boot_decorator, main_code] = extract_sapphire_main(vary)
sardnoyx_boot_code = extract_sardnoyx_boot(vary)
gem_boot_code = extract_gem_boot(vary)
require_many = require_many(vary)
require_many.process_module('Gem.Core')
main_code.twig.find_require_gem(require_many)
require_many.loop()
output_path = path_join(binary_path, arrange('.pyxie/%s.py', module_name))
with create__delayed_file_output(output_path) as f:
boot_decorator.write(f, tree)
sardnoyx_boot_code.write(f, tree)
for v in require_many.twig_many:
v.write(f, tree)
gem_boot_code.write(f, tree)
main_code.write(f, tree)
close_copyright(f) |
def diag(kp):
nk = []
for x in xrange(len(kp)):
l = []
for y in xrange(len(kp)):
l.append(kp[y][x])
nk.append("".join(l))
return tuple(nk)
def parse_line(line):
left, right = line.strip().split(" => ")
a = tuple(left.split("/"))
b = right.split("/")
return a, b
def parse_input(puzzle_input):
rules = {}
for line in puzzle_input:
k, v = parse_line(line)
rules[k] = v
rules[diag(k)] = v
k2 = tuple([s[::-1] for s in k])
rules[k2] = v
rules[diag(k2)] = v
k3 = tuple(s for s in k[::-1])
rules[k3] = v
rules[diag(k3)] = v
k4 = tuple([s[::-1] for s in k3])
rules[k4] = v
rules[diag(k4)] = v
return rules
def num_on(g):
return sum([sum([c == "#" for c in l]) for l in g])
def run(puzzle_input):
rules = parse_input(puzzle_input)
grid = [
".#.",
"..#",
"###",
]
for it in xrange(18):
length = len(grid)
new_grid = []
if length % 2 == 0:
for y in xrange(0, length, 2):
new_lines = [[],[],[]]
for x in xrange(0, length, 2):
k = tuple([grid[y][x:x+2], grid[y+1][x:x+2]])
v = rules[k]
for i, l in enumerate(v):
new_lines[i].extend(list(l))
new_grid.extend(["".join(l) for l in new_lines])
elif length % 3 == 0:
for y in xrange(0, length, 3):
new_lines = [[],[],[],[]]
for x in xrange(0, length, 3):
k = tuple([grid[y][x:x+3], grid[y+1][x:x+3], grid[y+2][x:x+3]])
v = rules[k]
for i, l in enumerate(v):
new_lines[i].extend(list(l))
new_grid.extend(["".join(l) for l in new_lines])
else:
raise "bad dimension"
grid = new_grid
if it == 4:
print(num_on(grid))
print(num_on(grid))
if __name__ == "__main__":
example_input = (
"../.# => ##./#../...",
".#./..#/### => #..#/..../..../#..#",
)
# run(example_input)
# 12
#
run(file("input21.txt"))
# 147
# 1936582
| def diag(kp):
nk = []
for x in xrange(len(kp)):
l = []
for y in xrange(len(kp)):
l.append(kp[y][x])
nk.append(''.join(l))
return tuple(nk)
def parse_line(line):
(left, right) = line.strip().split(' => ')
a = tuple(left.split('/'))
b = right.split('/')
return (a, b)
def parse_input(puzzle_input):
rules = {}
for line in puzzle_input:
(k, v) = parse_line(line)
rules[k] = v
rules[diag(k)] = v
k2 = tuple([s[::-1] for s in k])
rules[k2] = v
rules[diag(k2)] = v
k3 = tuple((s for s in k[::-1]))
rules[k3] = v
rules[diag(k3)] = v
k4 = tuple([s[::-1] for s in k3])
rules[k4] = v
rules[diag(k4)] = v
return rules
def num_on(g):
return sum([sum([c == '#' for c in l]) for l in g])
def run(puzzle_input):
rules = parse_input(puzzle_input)
grid = ['.#.', '..#', '###']
for it in xrange(18):
length = len(grid)
new_grid = []
if length % 2 == 0:
for y in xrange(0, length, 2):
new_lines = [[], [], []]
for x in xrange(0, length, 2):
k = tuple([grid[y][x:x + 2], grid[y + 1][x:x + 2]])
v = rules[k]
for (i, l) in enumerate(v):
new_lines[i].extend(list(l))
new_grid.extend([''.join(l) for l in new_lines])
elif length % 3 == 0:
for y in xrange(0, length, 3):
new_lines = [[], [], [], []]
for x in xrange(0, length, 3):
k = tuple([grid[y][x:x + 3], grid[y + 1][x:x + 3], grid[y + 2][x:x + 3]])
v = rules[k]
for (i, l) in enumerate(v):
new_lines[i].extend(list(l))
new_grid.extend([''.join(l) for l in new_lines])
else:
raise 'bad dimension'
grid = new_grid
if it == 4:
print(num_on(grid))
print(num_on(grid))
if __name__ == '__main__':
example_input = ('../.# => ##./#../...', '.#./..#/### => #..#/..../..../#..#')
run(file('input21.txt')) |
#
# Modify `remove_html_markup` so that it actually works!
#
def remove_html_markup(s):
tag = False
quote = False
quoteSign = '"'
out = ""
for c in s:
# print c, tag, quote
if c == '<' and not quote:
tag = True
elif c == '>' and not quote:
tag = False
elif (c == '"' or c == "'") and tag:
if quote == False or (quoteSign == c):
quote = not quote
quoteSign = c
elif not tag:
out = out + c
return out
def test():
assert remove_html_markup('<a href="don' + "'" + 't!">Link</a>') == "Link"
test()
| def remove_html_markup(s):
tag = False
quote = False
quote_sign = '"'
out = ''
for c in s:
if c == '<' and (not quote):
tag = True
elif c == '>' and (not quote):
tag = False
elif (c == '"' or c == "'") and tag:
if quote == False or quoteSign == c:
quote = not quote
quote_sign = c
elif not tag:
out = out + c
return out
def test():
assert remove_html_markup('<a href="don' + "'" + 't!">Link</a>') == 'Link'
test() |
features_dict = {
"Name":{
"Description":"String",
"Pre_Action":'''
''',
"Post_Action":'''
''',
"Equip":'''
''',
"Unequip":'''
'''
},
"Dual Wielding":{
"Description":"You can use this weapon in your Off Hand (if available) and attack for -1 AP but with no Techinques. ",
"Pre_Action":'''
weapon = input("Do you want to use your\n" + source.Equipment["Main Hand"] + "\n or your\n" + source.Equipment["Off Hand"])
''',
"Equip":'''
if slot == "Off Hand":
source.Equipment[slot][item]["AP"] -= 1
source.Equipment[slot][item]["Techniques] = {}
source.Pre_Action.update("Dual Wielding" = features_dict["Dual Wielding"]["Pre_Action"])
''',
"Unequip":'''
source.Pre_Action.pop("Dual Wielding")
'''
},
"Dueling":{
"Description":"You can perform Feint, Parry, Riposte, and Disarm for -1 AP/RP respectively. ",
"Pre_Action":'''
if action == "Feint" or "Disarm":
source.AP += 1
''',
"Pre_Reaction":'''
if reaction == "Parry" or "Riposte":
source.RP += 1
''',
"Equip":'''
source.Pre_Action.update(Dueling = features_dict["Dueling"]["Pre_Action"])
source.Pre_Reaction.update(Dueling = features_dict["Dueling"]["Pre_Reaction"])
''',
"Unequip":'''
source.Pre_Action.pop("Dueling")
source.Pre_Reaction.pop("Dueling")
'''
},
"Finesse":{
"Description":"You can Replace your Muscle skill with your Finesse Skill",
"Pre_Action":'''
if action == "Weapon Attack":
source.misc_bonus -= mods(source.Attributes["STR"])
source.misc_bonus -= source.Skills["Muscle"]
source.misc_bonus += mods(source.Attributes["DEX"])
source.misc_bonus += source.Skills["Finesse"]
''',
"Post_Action":'''
if action == "Weapon Attack":
source.misc_bonus -= mods(source.Attributes["DEX"])
source.misc_bonus -= source.Skills["Finesse"]
source.misc_bonus += mods(source.Attributes["STR"])
source.misc_bonus += source.Skills["Muscle"]
''',
"Equip":'''
source.Pre_Action.update(Finesse = features_dict["Finesse"]["Pre_Action"])
source.Post_Action.update(Finesse = features_dict["Finesse"]["Post_Action"])
''',
"Unequip":'''
source.Pre_Action.pop("Finesse")
souce.Post_Action.pop("Finesse")
'''
},
"Grappling":{
"Description":"You can perform Wrestle checks with this weapon against a target",
"Pre_Action":'''
''',
"Post_Action":'''
''',
"Equip":'''
''',
"Unequip":'''
'''
},
"Heavy":{
"Description":"You can use 2 techniques per attack",
"Pre_Action":'''
''',
"Post_Action":'''
''',
"Equip":'''
''',
"Unequip":'''
'''
},
"Light":{
"Description":"Doesn't damage Heavy armors Durability",
"Post_Roll":'''
if action == "Weapon Attack":
target_armor = target.Equipment["Armor"]
if target_armor["Type"] == "Heavy":
target.Equipment["Armor"][target_armor]["Durability"] += 1
''',
"Equip":'''
source.Post_Roll.update(Light = features_dict["Light"][Post_Roll])
''',
"Unequip":'''
source.Post_Roll.pop("Light")
'''
},
"Thrown":{
"Description":"You can add 1 stage of momentum to your impact equation when you attack with this weapon at range.",
"Pre_Action":'''
range = distance(source,target)
if action == "Weapon Attack" and range > 1:
status(source,momentum,1)
''',
"Post_Action":'''
if action == "Weapon Attack" and range > 1:
status(source,momentum,-1)
''',
"Equip":'''
source.Pre_Action.update(Thrown = features_dict["Thrown"]["Pre_Action"])
source.Post_Action.update(Thrown = features_dict["Thrown"]["Post_Action"])
''',
"Unequip":'''
source.Pre_Action.pop("Thrown")
source.Post_Action.pop("Thrown")
'''
},
"Versatile":{
"Description":"You can use the weapon as a Piercing or Slashing weapon.",
"Pre_Action":'''
if action == "Weapon Attack":
choice = input("Do you want to use slashing or piercing?")
if choice == "slashing":
source.Equipment[weapon]["Type"] = "Slashing"
else:
source.Equipment[weapon]["Type"] = "Piercing"
''',
"Equip":'''
source.Pre_Action.update(Versatile = features_dict["Thrown"]["Pre_Action"])
''',
"Unequip":'''
source.Pre_Action.pop("Versatile)
'''
},
}
| features_dict = {'Name': {'Description': 'String', 'Pre_Action': '\n\n ', 'Post_Action': '\n\n ', 'Equip': '\n\n ', 'Unequip': '\n\n '}, 'Dual Wielding': {'Description': 'You can use this weapon in your Off Hand (if available) and attack for -1 AP but with no Techinques. ', 'Pre_Action': '\nweapon = input("Do you want to use your\n" + source.Equipment["Main Hand"] + "\n or your\n" + source.Equipment["Off Hand"])\n ', 'Equip': '\nif slot == "Off Hand":\n source.Equipment[slot][item]["AP"] -= 1\n source.Equipment[slot][item]["Techniques] = {}\n\n source.Pre_Action.update("Dual Wielding" = features_dict["Dual Wielding"]["Pre_Action"])\n ', 'Unequip': '\nsource.Pre_Action.pop("Dual Wielding")\n '}, 'Dueling': {'Description': 'You can perform Feint, Parry, Riposte, and Disarm for -1 AP/RP respectively. ', 'Pre_Action': '\nif action == "Feint" or "Disarm":\n source.AP += 1\n ', 'Pre_Reaction': '\nif reaction == "Parry" or "Riposte":\n source.RP += 1\n ', 'Equip': '\nsource.Pre_Action.update(Dueling = features_dict["Dueling"]["Pre_Action"])\nsource.Pre_Reaction.update(Dueling = features_dict["Dueling"]["Pre_Reaction"])\n ', 'Unequip': '\nsource.Pre_Action.pop("Dueling")\nsource.Pre_Reaction.pop("Dueling")\n '}, 'Finesse': {'Description': 'You can Replace your Muscle skill with your Finesse Skill', 'Pre_Action': '\nif action == "Weapon Attack":\n source.misc_bonus -= mods(source.Attributes["STR"])\n source.misc_bonus -= source.Skills["Muscle"]\n\n source.misc_bonus += mods(source.Attributes["DEX"])\n source.misc_bonus += source.Skills["Finesse"]\n ', 'Post_Action': '\nif action == "Weapon Attack":\n source.misc_bonus -= mods(source.Attributes["DEX"])\n source.misc_bonus -= source.Skills["Finesse"]\n\n source.misc_bonus += mods(source.Attributes["STR"])\n source.misc_bonus += source.Skills["Muscle"]\n ', 'Equip': '\nsource.Pre_Action.update(Finesse = features_dict["Finesse"]["Pre_Action"])\nsource.Post_Action.update(Finesse = features_dict["Finesse"]["Post_Action"])\n ', 'Unequip': '\nsource.Pre_Action.pop("Finesse")\nsouce.Post_Action.pop("Finesse")\n '}, 'Grappling': {'Description': 'You can perform Wrestle checks with this weapon against a target', 'Pre_Action': '\n\n ', 'Post_Action': '\n\n ', 'Equip': '\n\n ', 'Unequip': '\n\n '}, 'Heavy': {'Description': 'You can use 2 techniques per attack', 'Pre_Action': '\n\n ', 'Post_Action': '\n\n ', 'Equip': '\n\n ', 'Unequip': '\n\n '}, 'Light': {'Description': "Doesn't damage Heavy armors Durability", 'Post_Roll': '\nif action == "Weapon Attack":\n target_armor = target.Equipment["Armor"]\n if target_armor["Type"] == "Heavy":\n target.Equipment["Armor"][target_armor]["Durability"] += 1\n ', 'Equip': '\nsource.Post_Roll.update(Light = features_dict["Light"][Post_Roll])\n ', 'Unequip': '\nsource.Post_Roll.pop("Light")\n '}, 'Thrown': {'Description': 'You can add 1 stage of momentum to your impact equation when you attack with this weapon at range.', 'Pre_Action': '\nrange = distance(source,target)\nif action == "Weapon Attack" and range > 1:\n status(source,momentum,1)\n ', 'Post_Action': '\nif action == "Weapon Attack" and range > 1:\n status(source,momentum,-1)\n ', 'Equip': '\nsource.Pre_Action.update(Thrown = features_dict["Thrown"]["Pre_Action"])\nsource.Post_Action.update(Thrown = features_dict["Thrown"]["Post_Action"])\n ', 'Unequip': '\nsource.Pre_Action.pop("Thrown")\nsource.Post_Action.pop("Thrown")\n '}, 'Versatile': {'Description': 'You can use the weapon as a Piercing or Slashing weapon.', 'Pre_Action': '\n\nif action == "Weapon Attack":\n choice = input("Do you want to use slashing or piercing?")\n\n if choice == "slashing":\n source.Equipment[weapon]["Type"] = "Slashing"\n else:\n source.Equipment[weapon]["Type"] = "Piercing"\n ', 'Equip': '\nsource.Pre_Action.update(Versatile = features_dict["Thrown"]["Pre_Action"])\n\n ', 'Unequip': '\nsource.Pre_Action.pop("Versatile)\n '}} |
tiles = [
# track example in Marin Headlands, a member of Bay Area Ridge Trail, a regional network
# https://www.openstreetmap.org/way/12188550
# https://www.openstreetmap.org/relation/2684235
[12, 654, 1582]
]
for z, x, y in tiles:
assert_has_feature(
z, x, y, 'roads',
{'highway': 'track'})
| tiles = [[12, 654, 1582]]
for (z, x, y) in tiles:
assert_has_feature(z, x, y, 'roads', {'highway': 'track'}) |
class Readfile():
def process(self, utils, logger):
filenames = utils.check_input()
words = []
for filename in filenames:
with open(utils.indir + filename, 'r') as f:
for line in f:
words.append(line.strip())
return words
| class Readfile:
def process(self, utils, logger):
filenames = utils.check_input()
words = []
for filename in filenames:
with open(utils.indir + filename, 'r') as f:
for line in f:
words.append(line.strip())
return words |
# -*- coding: utf-8 -*-
# Copyright (C) 2009-2010, Luis Pedro Coelho <luis@luispedro.org>
# vim: set ts=4 sts=4 sw=4 expandtab smartindent:
# Software Distributed under the MIT License
'''
Value types: An hierarchy of value types.
Hierarchy:
vtype
|- numeric
| |-ordinal
| | |- ordinalrange
| | - boolean
| | - integer
| -continuous
- categorical
- boolean
'''
class vtype(object):
def __init__(self,name):
self.name = name
class numeric(vtype):
def __init__(self,name):
vtype.__init__(self,name)
class continuous(numeric):
def __init__(self,name):
vtype.__init__(self,name)
class ordinal(numeric):
def __init__(self,name):
vtype.__init__(self,name)
class ordinalrange(ordinal):
def __init__(self,name,max,min):
ordinal.__init__(self,name)
self.max = max
self.min = min
class integer(ordinal):
pass
class categorical(vtype):
def __init__(self,name, categories):
vtype.__init__(self,name)
self.categories = categories
class boolean(categorical, ordinal):
def __init__(self,name):
vtype.__init__(self,name)
| """
Value types: An hierarchy of value types.
Hierarchy:
vtype
|- numeric
| |-ordinal
| | |- ordinalrange
| | - boolean
| | - integer
| -continuous
- categorical
- boolean
"""
class Vtype(object):
def __init__(self, name):
self.name = name
class Numeric(vtype):
def __init__(self, name):
vtype.__init__(self, name)
class Continuous(numeric):
def __init__(self, name):
vtype.__init__(self, name)
class Ordinal(numeric):
def __init__(self, name):
vtype.__init__(self, name)
class Ordinalrange(ordinal):
def __init__(self, name, max, min):
ordinal.__init__(self, name)
self.max = max
self.min = min
class Integer(ordinal):
pass
class Categorical(vtype):
def __init__(self, name, categories):
vtype.__init__(self, name)
self.categories = categories
class Boolean(categorical, ordinal):
def __init__(self, name):
vtype.__init__(self, name) |
def letter_to_number(letter):
if letter == 'A':
return 10
if letter == 'B':
return 11
if letter == 'C':
return 12
if letter == 'D':
return 13
if letter == 'E':
return 14
if letter == 'F':
return 15
else:
return int(letter)
def int_to_char(integer):
if integer == 15:
return 'F'
if integer == 14:
return 'E'
if integer == 13:
return 'D'
if integer == 12:
return 'C'
if integer == 11:
return 'B'
if integer == 10:
return 'A'
else:
return str(integer)
def base_to_decimal(number, base):
first_index = 1 if number[0] == '-' else 0
power = len(number) - 1 if first_index == 0 else len(number) - 2
decimal = 0
for char in number[first_index:]:
decimal += letter_to_number(char) * pow(base, power)
power -= 1
return decimal
def solution(number, from_base, to_base):
is_negative = number[0] == '-'
decimal = base_to_decimal(number, from_base)
digits = []
while decimal > 0:
current_digit = decimal % to_base
decimal //= to_base
digits.append(int_to_char(current_digit))
return '-' + ''.join(reversed(digits)) if is_negative else ''.join(reversed(digits))
| def letter_to_number(letter):
if letter == 'A':
return 10
if letter == 'B':
return 11
if letter == 'C':
return 12
if letter == 'D':
return 13
if letter == 'E':
return 14
if letter == 'F':
return 15
else:
return int(letter)
def int_to_char(integer):
if integer == 15:
return 'F'
if integer == 14:
return 'E'
if integer == 13:
return 'D'
if integer == 12:
return 'C'
if integer == 11:
return 'B'
if integer == 10:
return 'A'
else:
return str(integer)
def base_to_decimal(number, base):
first_index = 1 if number[0] == '-' else 0
power = len(number) - 1 if first_index == 0 else len(number) - 2
decimal = 0
for char in number[first_index:]:
decimal += letter_to_number(char) * pow(base, power)
power -= 1
return decimal
def solution(number, from_base, to_base):
is_negative = number[0] == '-'
decimal = base_to_decimal(number, from_base)
digits = []
while decimal > 0:
current_digit = decimal % to_base
decimal //= to_base
digits.append(int_to_char(current_digit))
return '-' + ''.join(reversed(digits)) if is_negative else ''.join(reversed(digits)) |
p = int(input())
total = 0
numbers = []
for i in range(p):
cod, quant = input().split(' ')
cod = int(cod)
quant = int(quant)
if(cod == 1001):
total = quant*1.50
elif(cod==1002):
total = quant*2.50
elif(cod==1003):
total = quant*3.50
elif(cod==1004):
total = quant*4.50
elif(cod==1005):
total = quant*5.50
numbers.append(total)
for i in range(len(numbers)):
numbers[i] = float(numbers[i])
print('{:.2f}'.format(sum(numbers))) | p = int(input())
total = 0
numbers = []
for i in range(p):
(cod, quant) = input().split(' ')
cod = int(cod)
quant = int(quant)
if cod == 1001:
total = quant * 1.5
elif cod == 1002:
total = quant * 2.5
elif cod == 1003:
total = quant * 3.5
elif cod == 1004:
total = quant * 4.5
elif cod == 1005:
total = quant * 5.5
numbers.append(total)
for i in range(len(numbers)):
numbers[i] = float(numbers[i])
print('{:.2f}'.format(sum(numbers))) |
ENV_NAMES = [
"coinrun",
"starpilot",
"caveflyer",
"dodgeball",
"fruitbot",
"chaser",
"miner",
"jumper",
"leaper",
"maze",
"bigfish",
"heist",
"climber",
"plunder",
"ninja",
"bossfight",
]
HARD_GAME_RANGES = {
'coinrun': [5, 10],
'starpilot': [1.5, 35],
'caveflyer': [2, 13.4],
'dodgeball': [1.5, 19],
'fruitbot': [-.5, 27.2],
'chaser': [.5, 14.2],
'miner': [1.5, 20],
'jumper': [1, 10],
'leaper': [1.5, 10],
'maze': [4, 10],
'bigfish': [0, 40],
'heist': [2, 10],
'climber': [1, 12.6],
'plunder': [3, 30],
'ninja': [2, 10],
'bossfight': [.5, 13],
}
NAME_TO_CASE = {
'coinrun': 'CoinRun',
'starpilot': 'StarPilot',
'caveflyer': 'CaveFlyer',
'dodgeball': 'Dodgeball',
'fruitbot': 'FruitBot',
'chaser': 'Chaser',
'miner': 'Miner',
'jumper': 'Jumper',
'leaper': 'Leaper',
'maze': 'Maze',
'bigfish': 'BigFish',
'heist': 'Heist',
'climber': 'Climber',
'plunder': 'Plunder',
'ninja': 'Ninja',
'bossfight': 'BossFight',
} | env_names = ['coinrun', 'starpilot', 'caveflyer', 'dodgeball', 'fruitbot', 'chaser', 'miner', 'jumper', 'leaper', 'maze', 'bigfish', 'heist', 'climber', 'plunder', 'ninja', 'bossfight']
hard_game_ranges = {'coinrun': [5, 10], 'starpilot': [1.5, 35], 'caveflyer': [2, 13.4], 'dodgeball': [1.5, 19], 'fruitbot': [-0.5, 27.2], 'chaser': [0.5, 14.2], 'miner': [1.5, 20], 'jumper': [1, 10], 'leaper': [1.5, 10], 'maze': [4, 10], 'bigfish': [0, 40], 'heist': [2, 10], 'climber': [1, 12.6], 'plunder': [3, 30], 'ninja': [2, 10], 'bossfight': [0.5, 13]}
name_to_case = {'coinrun': 'CoinRun', 'starpilot': 'StarPilot', 'caveflyer': 'CaveFlyer', 'dodgeball': 'Dodgeball', 'fruitbot': 'FruitBot', 'chaser': 'Chaser', 'miner': 'Miner', 'jumper': 'Jumper', 'leaper': 'Leaper', 'maze': 'Maze', 'bigfish': 'BigFish', 'heist': 'Heist', 'climber': 'Climber', 'plunder': 'Plunder', 'ninja': 'Ninja', 'bossfight': 'BossFight'} |
# Use binary search to find the key in the list
def binarySearch(lst, key):
low = 0
high = len(lst) - 1
while high >= low:
mid = (high + low) // 2
if key < lst[mid]:
high = mid - 1
elif key == lst[mid]:
return mid
else:
low = mid + 1
return -low - 1 # Now high < low, key not found
def main():
lst = [2, 4, 7, 10, 11, 45, 50, 59, 60, 66, 69, 70, 79]
i = binarySearch(lst, 2)
print(i)
j = binarySearch(lst, 11)
print(j)
k = binarySearch(lst, 12)
print(k)
l = binarySearch(lst, 1)
print(l)
m = binarySearch(lst, 3)
print(m)
main()
| def binary_search(lst, key):
low = 0
high = len(lst) - 1
while high >= low:
mid = (high + low) // 2
if key < lst[mid]:
high = mid - 1
elif key == lst[mid]:
return mid
else:
low = mid + 1
return -low - 1
def main():
lst = [2, 4, 7, 10, 11, 45, 50, 59, 60, 66, 69, 70, 79]
i = binary_search(lst, 2)
print(i)
j = binary_search(lst, 11)
print(j)
k = binary_search(lst, 12)
print(k)
l = binary_search(lst, 1)
print(l)
m = binary_search(lst, 3)
print(m)
main() |
#Alian Colors #2
alian_color = 'green'
if alian_color == 'green' or alian_color == 'yellow' or alian_color == 'red':
print("You just earned 5 points.")
else:
print("You just earned 10 points.") | alian_color = 'green'
if alian_color == 'green' or alian_color == 'yellow' or alian_color == 'red':
print('You just earned 5 points.')
else:
print('You just earned 10 points.') |
class Solution:
# @param {integer[]} nums
# @return {integer}
def removeDuplicates(self, nums):
n = len(nums)
if n <=1:
return n
i= 0
j = 0
while(j < n):
if nums[j]!=nums[i]:
nums[i+1] = nums[j]
i += 1
j +=1
return i+1 | class Solution:
def remove_duplicates(self, nums):
n = len(nums)
if n <= 1:
return n
i = 0
j = 0
while j < n:
if nums[j] != nums[i]:
nums[i + 1] = nums[j]
i += 1
j += 1
return i + 1 |
canMega = [3,6,9,15,18,65,80,94,127,130,142,150,181,208,212,214,229,248,254,257,260,282,302,303,306,308,310,319,323,334,354,359,373,376,380,381,384,428,445,448,460,475,531,719]
megaForms = [6,150]
def findMega(dex):
if dex in canMega:
if dex in megaForms:
return "This Pokemon has multiple Mega Evolutions."
else:
return "This Pokemon can Mega Evolve."
else:
return "This Pokemon cannot mega Evolve." | can_mega = [3, 6, 9, 15, 18, 65, 80, 94, 127, 130, 142, 150, 181, 208, 212, 214, 229, 248, 254, 257, 260, 282, 302, 303, 306, 308, 310, 319, 323, 334, 354, 359, 373, 376, 380, 381, 384, 428, 445, 448, 460, 475, 531, 719]
mega_forms = [6, 150]
def find_mega(dex):
if dex in canMega:
if dex in megaForms:
return 'This Pokemon has multiple Mega Evolutions.'
else:
return 'This Pokemon can Mega Evolve.'
else:
return 'This Pokemon cannot mega Evolve.' |
alien_color = 'green'
print("alien_color = " + alien_color)
if alien_color == 'green':
print("You earned 5 points!")
elif alien_color == 'yellow':
print("You earned 10 points!")
else:
print("You earned 15 points!")
alien_color = 'yellow'
print("\nalien_color = " + alien_color)
if alien_color == 'green':
print("You earned 5 points!")
elif alien_color == 'yellow':
print("You earned 10 points!")
else:
print("You earned 15 points!")
alien_color = 'red'
print("\nalien_color = " + alien_color)
if alien_color == 'green':
print("You earned 5 points!")
elif alien_color == 'yellow':
print("You earned 10 points!")
else:
print("You earned 15 points!") | alien_color = 'green'
print('alien_color = ' + alien_color)
if alien_color == 'green':
print('You earned 5 points!')
elif alien_color == 'yellow':
print('You earned 10 points!')
else:
print('You earned 15 points!')
alien_color = 'yellow'
print('\nalien_color = ' + alien_color)
if alien_color == 'green':
print('You earned 5 points!')
elif alien_color == 'yellow':
print('You earned 10 points!')
else:
print('You earned 15 points!')
alien_color = 'red'
print('\nalien_color = ' + alien_color)
if alien_color == 'green':
print('You earned 5 points!')
elif alien_color == 'yellow':
print('You earned 10 points!')
else:
print('You earned 15 points!') |
COL_TIME = 0
COL_OPEN = 1
COL_HIGH = 2
COL_LOW = 3
COL_CLOSE = 4
def max_close(candles):
c = [x[COL_CLOSE] for x in candles]
return max(c) | col_time = 0
col_open = 1
col_high = 2
col_low = 3
col_close = 4
def max_close(candles):
c = [x[COL_CLOSE] for x in candles]
return max(c) |
# Author : Nekyz
# Date : 29/06/2015
# Project Euler Challenge 1
def sum_of_multiple_of_3_and_5(number: int) -> int:
result = 0
for num in range(0, number):
if num % 3 == 0:
result += num
elif num % 5 == 0:
result += num
return result
print("###################################")
print("Project Euler, multiple of 3 and 5.")
print("###################################")
while True:
entered_number = input("Please enter the maximum number: ")
if entered_number.isdigit():
if int(entered_number) > 0:
break
else:
print("Please enter a number greater than 0.");
print("Your number is : ", entered_number)
print("The sum of the multiple of 3 and 5 inferior at your number are: ",
sum_of_multiple_of_3_and_5(int(entered_number)))
| def sum_of_multiple_of_3_and_5(number: int) -> int:
result = 0
for num in range(0, number):
if num % 3 == 0:
result += num
elif num % 5 == 0:
result += num
return result
print('###################################')
print('Project Euler, multiple of 3 and 5.')
print('###################################')
while True:
entered_number = input('Please enter the maximum number: ')
if entered_number.isdigit():
if int(entered_number) > 0:
break
else:
print('Please enter a number greater than 0.')
print('Your number is : ', entered_number)
print('The sum of the multiple of 3 and 5 inferior at your number are: ', sum_of_multiple_of_3_and_5(int(entered_number))) |
def can_build(env, platform):
return True
def configure(env):
pass
def get_doc_classes():
return [
"VoxelBuffer",
"VoxelMap",
"Voxel",
"VoxelLibrary",
"VoxelTerrain",
"VoxelLodTerrain",
"VoxelStream",
"VoxelStreamFile",
"VoxelStreamBlockFiles",
"VoxelStreamRegionFiles",
"VoxelGenerator",
"VoxelGeneratorHeightmap",
"VoxelGeneratorImage",
"VoxelGeneratorNoise",
"VoxelGeneratorNoise2D",
"VoxelGeneratorTest",
"VoxelBoxMover",
"VoxelTool",
"VoxelRaycastResult",
"VoxelMesher",
"VoxelMesherBlocky",
"VoxelMesherTransvoxel",
"VoxelMesherDMC"
]
def get_doc_path():
return "doc/classes"
| def can_build(env, platform):
return True
def configure(env):
pass
def get_doc_classes():
return ['VoxelBuffer', 'VoxelMap', 'Voxel', 'VoxelLibrary', 'VoxelTerrain', 'VoxelLodTerrain', 'VoxelStream', 'VoxelStreamFile', 'VoxelStreamBlockFiles', 'VoxelStreamRegionFiles', 'VoxelGenerator', 'VoxelGeneratorHeightmap', 'VoxelGeneratorImage', 'VoxelGeneratorNoise', 'VoxelGeneratorNoise2D', 'VoxelGeneratorTest', 'VoxelBoxMover', 'VoxelTool', 'VoxelRaycastResult', 'VoxelMesher', 'VoxelMesherBlocky', 'VoxelMesherTransvoxel', 'VoxelMesherDMC']
def get_doc_path():
return 'doc/classes' |
fields = [
["#bEasy#k", 211042402],
["Normal", 211042400],
["#rChaos#k", 211042401]
]
# Zakum door portal
s = "Which difficulty of Zakum do you wish to fight? \r\n"
i = 0
for entry in fields:
s += "#L" + str(i) + "#" + entry[0] + "#l\r\n"
i += 1
answer = sm.sendSay(s)
sm.warp(fields[answer][1])
sm.dispose()
| fields = [['#bEasy#k', 211042402], ['Normal', 211042400], ['#rChaos#k', 211042401]]
s = 'Which difficulty of Zakum do you wish to fight? \r\n'
i = 0
for entry in fields:
s += '#L' + str(i) + '#' + entry[0] + '#l\r\n'
i += 1
answer = sm.sendSay(s)
sm.warp(fields[answer][1])
sm.dispose() |
class MEAPIUrls:
COLLECTION_STATS = 'https://api-mainnet.magiceden.io/rpc/getCollectionEscrowStats/'
COLLECTION_INFO = 'https://api-mainnet.magiceden.io/collections/'
COLLECTION_LIST = 'https://api-mainnet.magiceden.io/all_collections'
COLLECTION_LIST_STATS = 'https://api-mainnet.magiceden.io/rpc/getAggregatedCollectionMetrics'
class MEResponseConstsCollectionStats:
# STATS
LISTED_COUNT = 'listedCount'
FLOOR_PRICE = 'floorPrice'
LISTED_TOTAL_VALUE = 'listedTotalValue'
DAY_AVG_PRICE = 'avgPrice24hr'
DAY_VOLUME = 'volume24hr'
TOTAL_VOLUME = 'volumeAll'
class MEResponseConstsCollectionInfo:
# INFO
SYMBOL = 'symbol'
NAME = 'name'
IMAGE = 'image'
DESCRIPTION = 'description'
CREATED = 'createdAt'
WEBSITE = 'website'
TWITTER = 'twitter'
DISCORD = 'discord'
HAS_ALL_ITEMS = 'hasAllItems'
SUPPLY = 'totalItems'
class MeResponseConstsCollectionListStats:
SYMBOL = 'symbol'
TOTAL_VOLUME = 'txVolumeME.valueAT'
DAILY_VOLUME = 'txVolumeME.value1d'
WEEKLY_VOLUME = 'txVolumeME.value1d'
MONTHLY_VOLUME = 'txVolumeME.value30d'
PREV_DAILY_VOLUME = 'txVolumeME.prev1d'
PREV_WEEKLY_VOLUME = 'txVolumeME.prev3d'
PREV_MONTHLY_VOLUME = 'txVolumeME.prev30d'
AVG_PRICE = 'avgPrice.valueAT'
DAILY_AVG_PRICE = 'avgPrice.value1d'
WEEKLY_AVG_PRICE = 'avgPrice.value7d'
MONTHLY_AVG_PRICE = 'avgPrice.value30d'
PREV_DAILY_AVG_PRICE = 'avgPrice.prev1d'
PREV_WEEKLY_AVG_PRICE = 'avgPrice.prev7d'
PREV_MONTHLY_AVG_PRICE = 'avgPrice.prev30d'
FLOOR_PRICE = 'floorPrice.valueAT'
PREV_DAILY_FLOOR_PRICE = 'floorPrice.prev1d'
PREV_WEEKLY_FLOOR_PRICE = 'floorPrice.prev7d'
PREV_MONTHLY_FLOOR_PRICE = 'floorPrice.prev30d'
GLOBAL_VOLUME = 'txVolume.valueAT'
GLOBAL_DAILY_VOLUME = 'txVolume.value1d'
GLOBAL_WEEKLY_VOLUME = 'txVolume.value7d'
GLOBAL_MONTHLY_VOLUME = 'txVolume.value30d'
PREV_DAILY_GLOBAL_VOLUME = 'txVolume.prev1d'
PREV_WEEKLY_GLOBAL_VOLUME = 'txVolume.prev7d'
PREV_MONTHLY_GLOBAL_VOLUME = 'txVolume.prev30d'
| class Meapiurls:
collection_stats = 'https://api-mainnet.magiceden.io/rpc/getCollectionEscrowStats/'
collection_info = 'https://api-mainnet.magiceden.io/collections/'
collection_list = 'https://api-mainnet.magiceden.io/all_collections'
collection_list_stats = 'https://api-mainnet.magiceden.io/rpc/getAggregatedCollectionMetrics'
class Meresponseconstscollectionstats:
listed_count = 'listedCount'
floor_price = 'floorPrice'
listed_total_value = 'listedTotalValue'
day_avg_price = 'avgPrice24hr'
day_volume = 'volume24hr'
total_volume = 'volumeAll'
class Meresponseconstscollectioninfo:
symbol = 'symbol'
name = 'name'
image = 'image'
description = 'description'
created = 'createdAt'
website = 'website'
twitter = 'twitter'
discord = 'discord'
has_all_items = 'hasAllItems'
supply = 'totalItems'
class Meresponseconstscollectionliststats:
symbol = 'symbol'
total_volume = 'txVolumeME.valueAT'
daily_volume = 'txVolumeME.value1d'
weekly_volume = 'txVolumeME.value1d'
monthly_volume = 'txVolumeME.value30d'
prev_daily_volume = 'txVolumeME.prev1d'
prev_weekly_volume = 'txVolumeME.prev3d'
prev_monthly_volume = 'txVolumeME.prev30d'
avg_price = 'avgPrice.valueAT'
daily_avg_price = 'avgPrice.value1d'
weekly_avg_price = 'avgPrice.value7d'
monthly_avg_price = 'avgPrice.value30d'
prev_daily_avg_price = 'avgPrice.prev1d'
prev_weekly_avg_price = 'avgPrice.prev7d'
prev_monthly_avg_price = 'avgPrice.prev30d'
floor_price = 'floorPrice.valueAT'
prev_daily_floor_price = 'floorPrice.prev1d'
prev_weekly_floor_price = 'floorPrice.prev7d'
prev_monthly_floor_price = 'floorPrice.prev30d'
global_volume = 'txVolume.valueAT'
global_daily_volume = 'txVolume.value1d'
global_weekly_volume = 'txVolume.value7d'
global_monthly_volume = 'txVolume.value30d'
prev_daily_global_volume = 'txVolume.prev1d'
prev_weekly_global_volume = 'txVolume.prev7d'
prev_monthly_global_volume = 'txVolume.prev30d' |
# http://codeforces.com/problemset/problem/318/A
n, k = map(int, input().split())
if k <= (n + 1) / 2:
print(k * 2 - 1)
else:
print(int(k - n / 2) * 2)
| (n, k) = map(int, input().split())
if k <= (n + 1) / 2:
print(k * 2 - 1)
else:
print(int(k - n / 2) * 2) |
class Solution:
def isPerfectSquare(self, num: int) -> bool:
i = 1
while i * i < num:
i += 1
return i * i == num
| class Solution:
def is_perfect_square(self, num: int) -> bool:
i = 1
while i * i < num:
i += 1
return i * i == num |
'''
import math
r=input(">>")
s=2*r*math.sin(math.pi/5)
Area=5*s*s/(4*math.tan(math.pi/5))
print(Area)
'''
'''
import math
x1,y1,x2,y2=input(">>")
x3,y3,x4,y4=math.radians(x1),math.radians(y1),math.radians(x2),math.radians(y2)
d=6371.01*math.acos(math.sin(x3)*math.sin(x4)+math.cos(x3)*math.cos(x4)*math.cos(y3-y4))
print(d)
'''
'''
import math
s=input(">>")
Area=5*s**2/(4*math.tan(math.pi/5))
print(Area)
'''
'''
import math
n,s=input(">>")
Area=n*s**2/(4*math.tan(math.pi/n))
print(Area)
'''
'''
a=input(">>")
b=chr(a)
print(b)
'''
'''
a=str(raw_input("xingming>>"))
b=input("shijian>>")
c=input("baochou>>")
d=input("lianbangshui>>")
e=input("zhoushui>>")
print(a)
print(b)
print(c)
print(b*c)
print(b*c*d)
print(b*c*e)
print(b*c*(d+e))
print(b*c-b*c*(d+e))
'''
'''
a=input(">>")
while(a!=0):
print(a%10),
a=a/10
'''
'''
import math
a,b,c=input()
if b**2-4*a*c>0:
r1=(-b+math.sqrt(b**2-4*a*c))/2*a
r2=(-b-math.sqrt(b**2-4*a*c))/2*a
print r1,r2
elif b**2-4*a*c==0:
r1=(-b+math.sqrt(b**2-4*a*c))/2*a
print r1
else:
print('The equation has no real roots')
'''
'''
import random
b=random.randint(0,100)
a=random.randint(0,100)
print(a,b)
c=input("lianggeshudehe")
if a+b==c:
print("true")
else:
print("flase")
'''
'''
a,b=input(">>")
c=(a+b)%7
if c==0:
print('Sunday')
elif c==1:
print('Monday')
elif c==2:
print('Tuesday')
elif c==3:
print('Wednesday')
elif c==4:
print('Thursday')
elif c==5:
print('Friday')
elif c==6:
print('Saturday')
'''
'''
a,b,c=input()
t=int()
if a>b:
t=a
a=b
b=t
if a>c:
t=a
a=c
c=t
if b>c:
t=b
b=c
c=t
print(a,b,c)
'''
'''
a,b=input()
c,d=input()
if a*b>c*d:
print(2)
if a*b<c*d:
print(1)
'''
'''
a,b=input()
if a==1:
print('31')
elif a==2:
if b%100==0:
if b%400==0:
print("29")
else:
print("28")
elif b%4==0:
print('29')
else:
print('28')
elif a==3:
print('31')
elif a==4:
print('30')
elif a==5:
print('31')
elif a==6:
print('30')
elif a==7:
print('31')
elif a==8:
print('31')
elif a==9:
print('30')
elif a==10:
print('31')
elif a==11:
print('30')
elif a==12:
print('31')
'''
'''
import random
a=random.randint(0,1)
b=input()
if a==b:
print('Ture')
else:
print('Flase')
'''
'''
import random
a=random.randint(0,2)
print(a)
b=input()
if a-b==1:
print('lose')
elif a==0 and b==2:
print('lose')
elif a-b==0:
print('draw')
else:
print('win')
'''
'''
import random
a=random.choice(['Ace','2','3','4','5','6','7','8','9','Jack','Queen','King'])
b=random.choice(['meihua','hongtao','fangkuai','heitao'])
print(a+' '+'of'+' '+b)
'''
'''
a=int(input(""))
a=str(a)
b=a[::-1]
if(a==b):
print('yes')
else:
print('no')
'''
'''
a,b,c=input()
if a+b>c:
if a+c>b:
if b+c>a:
print(a+b+c)
else:
print('feifa')
else:
print('feifa')
else:
print('feifa')
'''
| """
import math
r=input(">>")
s=2*r*math.sin(math.pi/5)
Area=5*s*s/(4*math.tan(math.pi/5))
print(Area)
"""
'\nimport math\nx1,y1,x2,y2=input(">>")\nx3,y3,x4,y4=math.radians(x1),math.radians(y1),math.radians(x2),math.radians(y2)\nd=6371.01*math.acos(math.sin(x3)*math.sin(x4)+math.cos(x3)*math.cos(x4)*math.cos(y3-y4))\nprint(d)\n'
'\nimport math\ns=input(">>")\nArea=5*s**2/(4*math.tan(math.pi/5))\nprint(Area)\n'
'\nimport math\nn,s=input(">>")\nArea=n*s**2/(4*math.tan(math.pi/n))\nprint(Area)\n'
'\na=input(">>")\nb=chr(a)\nprint(b)\n'
'\na=str(raw_input("xingming>>"))\nb=input("shijian>>")\nc=input("baochou>>")\nd=input("lianbangshui>>")\ne=input("zhoushui>>")\nprint(a)\nprint(b)\nprint(c)\nprint(b*c)\nprint(b*c*d)\nprint(b*c*e)\nprint(b*c*(d+e))\nprint(b*c-b*c*(d+e))\n'
'\na=input(">>")\nwhile(a!=0):\n print(a%10),\n a=a/10\n'
"\nimport math\na,b,c=input()\nif b**2-4*a*c>0:\n r1=(-b+math.sqrt(b**2-4*a*c))/2*a\n r2=(-b-math.sqrt(b**2-4*a*c))/2*a\n print r1,r2\nelif b**2-4*a*c==0:\n r1=(-b+math.sqrt(b**2-4*a*c))/2*a\n print r1\nelse:\n print('The equation has no real roots')\n"
'\nimport random\nb=random.randint(0,100)\na=random.randint(0,100)\nprint(a,b)\nc=input("lianggeshudehe")\nif a+b==c:\n print("true")\nelse:\n print("flase")\n'
'\na,b=input(">>")\nc=(a+b)%7\nif c==0:\n print(\'Sunday\')\nelif c==1:\n print(\'Monday\')\nelif c==2:\n print(\'Tuesday\')\nelif c==3:\n print(\'Wednesday\')\nelif c==4:\n print(\'Thursday\')\nelif c==5:\n print(\'Friday\')\nelif c==6:\n print(\'Saturday\')\n'
'\na,b,c=input()\nt=int()\nif a>b:\n t=a\n a=b\n b=t\nif a>c:\n t=a\n a=c\n c=t\nif b>c:\n t=b\n b=c\n c=t\nprint(a,b,c)\n'
'\na,b=input()\nc,d=input()\nif a*b>c*d:\n print(2)\nif a*b<c*d:\n print(1)\n'
'\na,b=input()\nif a==1:\n print(\'31\')\nelif a==2:\n if b%100==0:\n if b%400==0:\n print("29")\n else:\n print("28")\n elif b%4==0:\n print(\'29\')\n else:\n print(\'28\')\nelif a==3:\n print(\'31\')\nelif a==4:\n print(\'30\')\nelif a==5:\n print(\'31\')\nelif a==6:\n print(\'30\')\nelif a==7:\n print(\'31\')\nelif a==8:\n print(\'31\')\nelif a==9:\n print(\'30\')\nelif a==10:\n print(\'31\')\nelif a==11:\n print(\'30\')\nelif a==12:\n print(\'31\')\n'
"\nimport random\na=random.randint(0,1)\nb=input()\nif a==b:\n print('Ture')\nelse:\n print('Flase')\n"
"\nimport random\na=random.randint(0,2)\nprint(a)\nb=input()\nif a-b==1:\n print('lose')\nelif a==0 and b==2:\n print('lose')\nelif a-b==0:\n print('draw')\nelse:\n print('win')\n"
"\nimport random\na=random.choice(['Ace','2','3','4','5','6','7','8','9','Jack','Queen','King'])\nb=random.choice(['meihua','hongtao','fangkuai','heitao'])\nprint(a+' '+'of'+' '+b)\n"
'\na=int(input(""))\na=str(a)\nb=a[::-1]\nif(a==b):\n print(\'yes\')\nelse:\n print(\'no\')\n'
"\na,b,c=input()\nif a+b>c:\n if a+c>b:\n if b+c>a:\n print(a+b+c)\n else:\n print('feifa')\n else:\n print('feifa')\nelse:\n print('feifa')\n" |
# --------------
# Code starts here
# creating lists
class_1 = [ 'Geoffrey Hinton', 'Andrew Ng', 'Sebastian Raschka', 'Yoshua Bengio' ]
class_2 = [ 'Hilary Mason', 'Carla Gentry', 'Corinna Cortes' ]
# concatinating lists
new_class = class_1 + class_2
# looking at the resultant list
print(new_class)
# appending 'Peter Warden' to new_class
new_class.append('Peter Warden')
# looking at the resultant list
print(new_class)
# deleting 'Carla Gentry' from list
new_class.remove('Carla Gentry')
# looking at the resultant list
print(new_class)
# Code ends here
# --------------
# Code starts here
# creating courses dictionary
courses = { 'Math':65,
'English':70,
'History':80,
'French':70,
'Science':60 }
# looking at the marks obtained in each subject
print(courses)
# calculating total
total = sum(courses.values())
# looking at the resultant list
print(total)
# calculating %
percentage = (total/500)*100
# printing the percentage
print(percentage)
# Code ends here
# --------------
# Code starts here
# Creating the dictionary
mathematics = { 'Geoffrey Hinton':78, 'Andrew Ng':95, 'Sebastian Raschka':65, 'Yoshua Benjio':50, 'Hilary Mason':70, 'Corinna Cortes':66, 'Peter Warden':75 }
# Calculating max
topper = list(mathematics.keys())[list(mathematics.values()).index(max(mathematics.values()))]
# printing the name of student with maximum marks
print(topper)
# Code ends here
# --------------
# Given string
topper = 'andrew ng'
# Code starts here
# Preparing full name to print in the certificate
last_name = (topper.split()[-1])
first_name = (topper.split()[-2])
full_name = last_name + ' ' + first_name
# preparing certificate_name
certificate_name = full_name.upper()
#looking at the result :)
print(certificate_name)
# Code ends here
| class_1 = ['Geoffrey Hinton', 'Andrew Ng', 'Sebastian Raschka', 'Yoshua Bengio']
class_2 = ['Hilary Mason', 'Carla Gentry', 'Corinna Cortes']
new_class = class_1 + class_2
print(new_class)
new_class.append('Peter Warden')
print(new_class)
new_class.remove('Carla Gentry')
print(new_class)
courses = {'Math': 65, 'English': 70, 'History': 80, 'French': 70, 'Science': 60}
print(courses)
total = sum(courses.values())
print(total)
percentage = total / 500 * 100
print(percentage)
mathematics = {'Geoffrey Hinton': 78, 'Andrew Ng': 95, 'Sebastian Raschka': 65, 'Yoshua Benjio': 50, 'Hilary Mason': 70, 'Corinna Cortes': 66, 'Peter Warden': 75}
topper = list(mathematics.keys())[list(mathematics.values()).index(max(mathematics.values()))]
print(topper)
topper = 'andrew ng'
last_name = topper.split()[-1]
first_name = topper.split()[-2]
full_name = last_name + ' ' + first_name
certificate_name = full_name.upper()
print(certificate_name) |
class OslotsFeature(object):
def __init__(self, api, metaData, data):
self.api = api
self.meta = metaData
self.data = data[0]
self.maxSlot = data[1]
self.maxNode = data[2]
def items(self):
maxSlot = self.maxSlot
data = self.data
maxNode = self.maxNode
shift = maxSlot + 1
for n in range(maxSlot + 1, maxNode + 1):
yield (n, data[n - shift])
def s(self, n):
if n == 0:
return ()
if n < self.maxSlot + 1:
return (n,)
m = n - self.maxSlot
if m <= len(self.data):
return self.data[m - 1]
return ()
| class Oslotsfeature(object):
def __init__(self, api, metaData, data):
self.api = api
self.meta = metaData
self.data = data[0]
self.maxSlot = data[1]
self.maxNode = data[2]
def items(self):
max_slot = self.maxSlot
data = self.data
max_node = self.maxNode
shift = maxSlot + 1
for n in range(maxSlot + 1, maxNode + 1):
yield (n, data[n - shift])
def s(self, n):
if n == 0:
return ()
if n < self.maxSlot + 1:
return (n,)
m = n - self.maxSlot
if m <= len(self.data):
return self.data[m - 1]
return () |
class Solution:
# Function to remove 2 chars by given index of the first char
def del_substr(i, s):
return s[:i] + s[i+2:]
def romanToInt(self, s: str) -> int:
# Roman numeral mapping
roman = {'I': 1,
'V': 5,
'X': 10,
'L': 50,
'C': 100,
'D': 500,
'M': 1000}
# Special cases mapping
special = {'IV': 4,
'IX': 9,
'XL': 40,
'XC': 90,
'CD': 400,
'CM': 900}
# Output sum
output = 0
# Loop through s to look for special cases
for i in range(len(s)):
for i in range(len(s)):
substr = s[i:i+2]
if substr in special:
# Add special cases to output
output += special[substr]
# Remove found numbers from s
s = Solution.del_substr(i, s)
break
# Loop through the remaining s and add found numbers to output
for i in range(len(s)):
if s[i] in roman:
output += roman[s[i]]
return output | class Solution:
def del_substr(i, s):
return s[:i] + s[i + 2:]
def roman_to_int(self, s: str) -> int:
roman = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000}
special = {'IV': 4, 'IX': 9, 'XL': 40, 'XC': 90, 'CD': 400, 'CM': 900}
output = 0
for i in range(len(s)):
for i in range(len(s)):
substr = s[i:i + 2]
if substr in special:
output += special[substr]
s = Solution.del_substr(i, s)
break
for i in range(len(s)):
if s[i] in roman:
output += roman[s[i]]
return output |
# Configuration file for jupyter-notebook.
## Whether to allow the user to run the notebook as root.
c.NotebookApp.allow_root = True
## The IP address the notebook server will listen on.
c.NotebookApp.ip = '*'
## Whether to open in a browser after starting. The specific browser used is
# platform dependent and determined by the python standard library `webbrowser`
# module, unless it is overridden using the --browser (NotebookApp.browser)
# configuration option.
c.NotebookApp.open_browser = False
## Hashed password to use for web authentication.
#
# To generate, type in a python/IPython shell:
#
# from notebook.auth import passwd; passwd()
#
# The string should be of the form type:salt:hashed-password.
c.NotebookApp.password = ''
## The port the notebook server will listen on.
c.NotebookApp.port = 8888
## Token used for authenticating first-time connections to the server.
#
# When no password is enabled, the default is to generate a new, random token.
#
# Setting to an empty string disables authentication altogether, which is NOT
# RECOMMENDED.
c.NotebookApp.token = ''
| c.NotebookApp.allow_root = True
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.password = ''
c.NotebookApp.port = 8888
c.NotebookApp.token = '' |
{
"targets": [
{
"target_name": "node-xed",
"cflags!": ["-fno-exceptions"],
"cflags_cc!": ["-fno-exceptions"],
"sources": [
"cpp/node-xed.cpp"
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
"cpp/include"
],
"conditions": [
["OS in \"linux\"", {
"libraries": [
"../cpp/lib/linux/libxed.a"
],
}],
["OS in \"win\"", {
"libraries": [
"../cpp/lib/win/xed.lib"
],
}],
["OS in \"mac\"", {
"libraries": [
"../cpp/lib/mac/libxed.a"
],
}]
],
"dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")"
],
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS"]
},
{
"target_name": "action_after_build",
"type": "none",
"dependencies": ["<(module_name)"],
"copies": [
{
"files": ["<(PRODUCT_DIR)/<(module_name).node"],
"destination": "<(module_path)"
}
]
}
]
}
| {'targets': [{'target_name': 'node-xed', 'cflags!': ['-fno-exceptions'], 'cflags_cc!': ['-fno-exceptions'], 'sources': ['cpp/node-xed.cpp'], 'include_dirs': ['<!@(node -p "require(\'node-addon-api\').include")', 'cpp/include'], 'conditions': [['OS in "linux"', {'libraries': ['../cpp/lib/linux/libxed.a']}], ['OS in "win"', {'libraries': ['../cpp/lib/win/xed.lib']}], ['OS in "mac"', {'libraries': ['../cpp/lib/mac/libxed.a']}]], 'dependencies': ['<!(node -p "require(\'node-addon-api\').gyp")'], 'defines': ['NAPI_DISABLE_CPP_EXCEPTIONS']}, {'target_name': 'action_after_build', 'type': 'none', 'dependencies': ['<(module_name)'], 'copies': [{'files': ['<(PRODUCT_DIR)/<(module_name).node'], 'destination': '<(module_path)'}]}]} |
# Program to Add Two Integers
def isNumber(num):
if(type(num) == type(1)):
return True
else:
return False
def add(num1, num2):
if(isNumber(num1) & isNumber(num2)):
return num1 + num2
else:
return "we only accept numbers."
# Test cases
print(add(1, 2))
print(add("hola", 1))
| def is_number(num):
if type(num) == type(1):
return True
else:
return False
def add(num1, num2):
if is_number(num1) & is_number(num2):
return num1 + num2
else:
return 'we only accept numbers.'
print(add(1, 2))
print(add('hola', 1)) |
def is_valid(r: int, c: int):
global n
return (-1 < r < n) and (-1 < c < n)
n = int(input())
matrix = [[int(x) for x in input().split()] for _ in range(n)]
tokens = input()
while tokens != "END":
tokens = tokens.split()
cmd = tokens[0]
row = int(tokens[1])
col = int(tokens[2])
val = int(tokens[3])
if is_valid(row, col):
if cmd == "Add":
matrix[row][col] += val
else:
matrix[row][col] -= val
else:
print("Invalid coordinates")
tokens = input()
[print(" ".join([str(x) for x in i])) for i in matrix]
| def is_valid(r: int, c: int):
global n
return -1 < r < n and -1 < c < n
n = int(input())
matrix = [[int(x) for x in input().split()] for _ in range(n)]
tokens = input()
while tokens != 'END':
tokens = tokens.split()
cmd = tokens[0]
row = int(tokens[1])
col = int(tokens[2])
val = int(tokens[3])
if is_valid(row, col):
if cmd == 'Add':
matrix[row][col] += val
else:
matrix[row][col] -= val
else:
print('Invalid coordinates')
tokens = input()
[print(' '.join([str(x) for x in i])) for i in matrix] |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/9/20 10:02
# @Author : Peter
# @Des :
# @File : Callback
# @Software: PyCharm
def msg(msg, *arg, **kw):
print("---" * 60)
print("callback -------> {}".format(msg))
print("---" * 60)
if __name__ == "__main__":
pass
| def msg(msg, *arg, **kw):
print('---' * 60)
print('callback -------> {}'.format(msg))
print('---' * 60)
if __name__ == '__main__':
pass |
class CounterStat:
new = int
@staticmethod
def apply_diff(x, y):
return x + y
class SetStat:
new = set
class Diff:
def __init__(self, added=set(), removed=set()):
self.added = added
self.removed = removed
def invert(self):
self.added, self.removed = self.removed, self.added
def simplify_for_set(self, s):
self.added -= s
self.removed &= s
def is_null(self):
return len(self.added) + len(self.removed) == 0
@staticmethod
def apply_diff(s, d):
s -= d.removed
s |= d.added
return s
class Stats:
stats = {
"n_connections": CounterStat,
"n_current_connections": CounterStat,
"n_bytes": CounterStat,
"n_msgs": CounterStat,
}
def __init__(self):
for k, stat in type(self).stats.items():
setattr(self, k, stat.new())
def update(self, **kwargs):
for k, v in kwargs.items():
stat = type(self).stats[k]
setattr(self, k, stat.apply_diff(getattr(self, k), v))
class UserStats(Stats):
stats = {
"ips": SetStat,
**Stats.stats
}
class IPStats(Stats):
stats = {
"users": SetStat,
**Stats.stats
}
| class Counterstat:
new = int
@staticmethod
def apply_diff(x, y):
return x + y
class Setstat:
new = set
class Diff:
def __init__(self, added=set(), removed=set()):
self.added = added
self.removed = removed
def invert(self):
(self.added, self.removed) = (self.removed, self.added)
def simplify_for_set(self, s):
self.added -= s
self.removed &= s
def is_null(self):
return len(self.added) + len(self.removed) == 0
@staticmethod
def apply_diff(s, d):
s -= d.removed
s |= d.added
return s
class Stats:
stats = {'n_connections': CounterStat, 'n_current_connections': CounterStat, 'n_bytes': CounterStat, 'n_msgs': CounterStat}
def __init__(self):
for (k, stat) in type(self).stats.items():
setattr(self, k, stat.new())
def update(self, **kwargs):
for (k, v) in kwargs.items():
stat = type(self).stats[k]
setattr(self, k, stat.apply_diff(getattr(self, k), v))
class Userstats(Stats):
stats = {'ips': SetStat, **Stats.stats}
class Ipstats(Stats):
stats = {'users': SetStat, **Stats.stats} |
class Solution:
def heightChecker(self, heights: List[int]) -> int:
new_heights = sorted(heights)
count = 0
for i in range(len(heights)):
if heights[i] != new_heights[i]:
count += 1
return count
| class Solution:
def height_checker(self, heights: List[int]) -> int:
new_heights = sorted(heights)
count = 0
for i in range(len(heights)):
if heights[i] != new_heights[i]:
count += 1
return count |
# -*- coding: utf-8 -*-
A_INDEX = 0
B_INDEX = 1
C_INDEX = 2
D_INDEX = 3
def main():
values = input().split()
a = int(values[A_INDEX])
b = int(values[B_INDEX])
c = int(values[C_INDEX])
d = int(values[D_INDEX])
if b > c and d > a and c + d > a + b and c > 0 and d > 0 and a % 2 == 0:
print('Valores aceitos')
else:
print('Valores nao aceitos')
if __name__ == '__main__':
main() | a_index = 0
b_index = 1
c_index = 2
d_index = 3
def main():
values = input().split()
a = int(values[A_INDEX])
b = int(values[B_INDEX])
c = int(values[C_INDEX])
d = int(values[D_INDEX])
if b > c and d > a and (c + d > a + b) and (c > 0) and (d > 0) and (a % 2 == 0):
print('Valores aceitos')
else:
print('Valores nao aceitos')
if __name__ == '__main__':
main() |
# The realm, where users are allowed to login as administrators
SUPERUSER_REALM = ['super', 'administrators']
# Your database mysql://u:p@host/db
SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:Pa55w0rd@localhost:5432/privacy_idea'
# This is used to encrypt the auth_token
SECRET_KEY = 't0p s3cr3t'
# This is used to encrypt the admin passwords
PI_PEPPER = 'Never know...'
# This is used to encrypt the token data and token passwords
PI_ENCFILE = '/opt/conda/envs/privacyidea/lib/python3.7/site-packages/enckey'
# This is used to sign the audit log
PI_AUDIT_KEY_PRIVATE = '/opt/conda/envs/privacyidea/lib/python3.7/site-packages/private.pem'
PI_AUDIT_KEY_PUBLIC = '/opt/conda/envs/privacyidea/lib/python3.7/site-packages/public.pem'
# PI_AUDIT_MODULE = <python audit module>
# PI_AUDIT_SQL_URI = <special audit log DB uri>
# PI_LOGFILE = '....'
# PI_LOGLEVEL = 20
# PI_INIT_CHECK_HOOK = 'your.module.function'
# PI_CSS = '/location/of/theme.css'
# PI_UI_DEACTIVATED = True
| superuser_realm = ['super', 'administrators']
sqlalchemy_database_uri = 'postgresql://postgres:Pa55w0rd@localhost:5432/privacy_idea'
secret_key = 't0p s3cr3t'
pi_pepper = 'Never know...'
pi_encfile = '/opt/conda/envs/privacyidea/lib/python3.7/site-packages/enckey'
pi_audit_key_private = '/opt/conda/envs/privacyidea/lib/python3.7/site-packages/private.pem'
pi_audit_key_public = '/opt/conda/envs/privacyidea/lib/python3.7/site-packages/public.pem' |
# program to split email to username and domain name
# made by itsmeevil
print("***Email Splitter***")
email = input("\nEnter an email: ")
sliced = email.split("@") # split string at "@" which will put it in an array- ["username", "domain name"]
print(f"\nUsername: {sliced[0]}\nDomain name: {sliced[1]}")
| print('***Email Splitter***')
email = input('\nEnter an email: ')
sliced = email.split('@')
print(f'\nUsername: {sliced[0]}\nDomain name: {sliced[1]}') |
class SocialMedia:
def __init__(self):
pass
def GetSocialMediaSites_NiceNames(self):
return {
'add.this':'AddThis',
'blogger':'Blogger',
'buffer':'Buffer',
'diaspora':'Diaspora',
'douban':'Douban',
'email':'EMail',
'evernote':'EverNote',
'getpocket':'Pocket',
'facebook':'FaceBook',
'flattr':'Flattr',
'flipboard':'FlipBoard',
'google.bookmarks':'GoogleBookmarks',
'instapaper':'InstaPaper',
'line.me':'Line.me',
'linkedin':'LinkedIn',
'livejournal':'LiveJournal',
'gmail':'GMail',
'hacker.news':'HackerNews',
'ok.ru':'OK.ru',
'pinterest':'Pinterest',
'qzone':'QZone',
'reddit':'Reddit',
'renren':'RenRen',
'skype':'Skype',
'sms':'SMS',
'surfingbird.ru':'SurfingBird.ru',
'telegram.me':'Telegram.me',
'threema':'Threema',
'tumblr':'Tumblr',
'twitter':'Twitter',
'vk':'VK',
'weibo':'Weibo',
'whatsapp':'WhatsApp',
'xing':'Xing',
'yahoo':'Yahoo',
}
def GetSocialMediaSites_WithShareLinks_OrderedByPopularity(self):
return [
'google.bookmarks',
'facebook',
'reddit',
'whatsapp',
'twitter',
'linkedin',
'tumblr',
'pinterest',
'blogger',
'livejournal',
'evernote',
'add.this',
'getpocket',
'hacker.news',
'buffer',
'flipboard',
'instapaper',
'surfingbird.ru',
'flattr',
'diaspora',
'qzone',
'vk',
'weibo',
'ok.ru',
'douban',
'xing',
'renren',
'threema',
'sms',
'line.me',
'skype',
'telegram.me',
'email',
'gmail',
'yahoo',
]
def GetSocialMediaSites_WithShareLinks_OrderedByAlphabet(self):
socialmediasites = self.GetSocialMediaSites_NiceNames().keys()
socialmediasites.sort()
return socialmediasites
def GetSocialMediaSiteLinks_WithShareLinks(self, args):
safeargs = [
'url',
'title',
'image',
'desc',
'appid',
'redirecturl',
'via',
'hash_tags',
'provider',
'language',
'user_id',
'category',
'phone_number',
'email_address',
'cc_email_address',
'bcc_email_address',
]
for safearg in safeargs:
if not args.get(safearg):
args[safearg] = ''
text = args['title']
if len(args['desc']):
text += '%20%3A%20' + args['desc']
return {
'add.this':'http://www.addthis.com/bookmark.php?url=' + args['url'],
'blogger':'https://www.blogger.com/blog-this.g?u=' + args['url'] + '&n=' + args['title'] + '&t=' + args['desc'],
'buffer':'https://buffer.com/add?text=' + text + '&url=' + args['url'],
'diaspora':'https://share.diasporafoundation.org/?title=' + args['title'] + '&url=' + args['url'],
'douban':'http://www.douban.com/recommend/?url=' + args['url'] + '&title=' + text,
'email':'mailto:' + args['email_address'] + '?subject=' + args['title'] + '&body=' + args['desc'],
'evernote':'https://www.evernote.com/clip.action?url=' + args['url'] + '&title=' + text,
'getpocket':'https://getpocket.com/edit?url=' + args['url'],
'facebook':'http://www.facebook.com/sharer.php?u=' + args['url'],
'flattr':'https://flattr.com/submit/auto?user_id=' + args['user_id'] + '&url=' + args['url'] + '&title=' + args['title'] + '&description=' + text + '&language=' + args['language'] + '&tags=' + args['hash_tags'] + '&hidden=HIDDEN&category=' + args['category'],
'flipboard':'https://share.flipboard.com/bookmarklet/popout?v=2&title=' + text + '&url=' + args['url'],
'gmail':'https://mail.google.com/mail/?view=cm&to=' + args['email_address'] + '&su=' + args['title'] + '&body=' + args['url'] + '&bcc=' + args['bcc_email_address'] + '&cc=' + args['cc_email_address'],
'google.bookmarks':'https://www.google.com/bookmarks/mark?op=edit&bkmk=' + args['url'] + '&title=' + args['title'] + '&annotation=' + text + '&labels=' + args['hash_tags'] + '',
'instapaper':'http://www.instapaper.com/edit?url=' + args['url'] + '&title=' + args['title'] + '&description=' + args['desc'],
'line.me':'https://lineit.line.me/share/ui?url=' + args['url'] + '&text=' + text,
'linkedin':'https://www.linkedin.com/sharing/share-offsite/?url=' + args['url'],
'livejournal':'http://www.livejournal.com/update.bml?subject=' + text + '&event=' + args['url'],
'hacker.news':'https://news.ycombinator.com/submitlink?u=' + args['url'] + '&t=' + args['title'],
'ok.ru':'https://connect.ok.ru/dk?st.cmd=WidgetSharePreview&st.shareUrl=' + args['url'],
'pinterest':'http://pinterest.com/pin/create/button/?url=' + args['url'] ,
'qzone':'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + args['url'],
'reddit':'https://reddit.com/submit?url=' + args['url'] + '&title=' + args['title'],
'renren':'http://widget.renren.com/dialog/share?resourceUrl=' + args['url'] + '&srcUrl=' + args['url'] + '&title=' + text + '&description=' + args['desc'],
'skype':'https://web.skype.com/share?url=' + args['url'] + '&text=' + text,
'sms':'sms:' + args['phone_number'] + '?body=' + text,
'surfingbird.ru':'http://surfingbird.ru/share?url=' + args['url'] + '&description=' + args['desc'] + '&screenshot=' + args['image'] + '&title=' + args['title'],
'telegram.me':'https://t.me/share/url?url=' + args['url'] + '&text=' + text + '&to=' + args['phone_number'],
'threema':'threema://compose?text=' + text + '&id=' + args['user_id'],
'tumblr':'https://www.tumblr.com/widgets/share/tool?canonicalUrl=' + args['url'] + '&title=' + args['title'] + '&caption=' + args['desc'] + '&tags=' + args['hash_tags'],
'twitter':'https://twitter.com/intent/tweet?url=' + args['url'] + '&text=' + text + '&via=' + args['via'] + '&hashtags=' + args['hash_tags'],
'vk':'http://vk.com/share.php?url=' + args['url'] + '&title=' + args['title'] + '&comment=' + args['desc'],
'weibo':'http://service.weibo.com/share/share.php?url=' + args['url'] + '&appkey=&title=' + args['title'] + '&pic=&ralateUid=',
'whatsapp':'https://api.whatsapp.com/send?text=' + text + '%20' + args['url'],
'xing':'https://www.xing.com/spi/shares/new?url=' + args['url'],
'yahoo':'http://compose.mail.yahoo.com/?to=' + args['email_address'] + '&subject=' + args['title'] + '&body=' + text,
}
sm = SocialMedia()
#socialmediasites = sm.GetSocialMediaSites_WithShareLinks_OrderedByAlphabet()
socialmediasites = sm.GetSocialMediaSites_WithShareLinks_OrderedByPopularity()
socialmediaurls = sm.GetSocialMediaSiteLinks_WithShareLinks({
'url':'http://www.earthfluent.com/',
'title':'EarthFluent',
})
#print(socialmediaurls.keys())
for socialmediasite in socialmediasites:
print(socialmediasite + " : " + socialmediaurls[socialmediasite])
pass
| class Socialmedia:
def __init__(self):
pass
def get_social_media_sites__nice_names(self):
return {'add.this': 'AddThis', 'blogger': 'Blogger', 'buffer': 'Buffer', 'diaspora': 'Diaspora', 'douban': 'Douban', 'email': 'EMail', 'evernote': 'EverNote', 'getpocket': 'Pocket', 'facebook': 'FaceBook', 'flattr': 'Flattr', 'flipboard': 'FlipBoard', 'google.bookmarks': 'GoogleBookmarks', 'instapaper': 'InstaPaper', 'line.me': 'Line.me', 'linkedin': 'LinkedIn', 'livejournal': 'LiveJournal', 'gmail': 'GMail', 'hacker.news': 'HackerNews', 'ok.ru': 'OK.ru', 'pinterest': 'Pinterest', 'qzone': 'QZone', 'reddit': 'Reddit', 'renren': 'RenRen', 'skype': 'Skype', 'sms': 'SMS', 'surfingbird.ru': 'SurfingBird.ru', 'telegram.me': 'Telegram.me', 'threema': 'Threema', 'tumblr': 'Tumblr', 'twitter': 'Twitter', 'vk': 'VK', 'weibo': 'Weibo', 'whatsapp': 'WhatsApp', 'xing': 'Xing', 'yahoo': 'Yahoo'}
def get_social_media_sites__with_share_links__ordered_by_popularity(self):
return ['google.bookmarks', 'facebook', 'reddit', 'whatsapp', 'twitter', 'linkedin', 'tumblr', 'pinterest', 'blogger', 'livejournal', 'evernote', 'add.this', 'getpocket', 'hacker.news', 'buffer', 'flipboard', 'instapaper', 'surfingbird.ru', 'flattr', 'diaspora', 'qzone', 'vk', 'weibo', 'ok.ru', 'douban', 'xing', 'renren', 'threema', 'sms', 'line.me', 'skype', 'telegram.me', 'email', 'gmail', 'yahoo']
def get_social_media_sites__with_share_links__ordered_by_alphabet(self):
socialmediasites = self.GetSocialMediaSites_NiceNames().keys()
socialmediasites.sort()
return socialmediasites
def get_social_media_site_links__with_share_links(self, args):
safeargs = ['url', 'title', 'image', 'desc', 'appid', 'redirecturl', 'via', 'hash_tags', 'provider', 'language', 'user_id', 'category', 'phone_number', 'email_address', 'cc_email_address', 'bcc_email_address']
for safearg in safeargs:
if not args.get(safearg):
args[safearg] = ''
text = args['title']
if len(args['desc']):
text += '%20%3A%20' + args['desc']
return {'add.this': 'http://www.addthis.com/bookmark.php?url=' + args['url'], 'blogger': 'https://www.blogger.com/blog-this.g?u=' + args['url'] + '&n=' + args['title'] + '&t=' + args['desc'], 'buffer': 'https://buffer.com/add?text=' + text + '&url=' + args['url'], 'diaspora': 'https://share.diasporafoundation.org/?title=' + args['title'] + '&url=' + args['url'], 'douban': 'http://www.douban.com/recommend/?url=' + args['url'] + '&title=' + text, 'email': 'mailto:' + args['email_address'] + '?subject=' + args['title'] + '&body=' + args['desc'], 'evernote': 'https://www.evernote.com/clip.action?url=' + args['url'] + '&title=' + text, 'getpocket': 'https://getpocket.com/edit?url=' + args['url'], 'facebook': 'http://www.facebook.com/sharer.php?u=' + args['url'], 'flattr': 'https://flattr.com/submit/auto?user_id=' + args['user_id'] + '&url=' + args['url'] + '&title=' + args['title'] + '&description=' + text + '&language=' + args['language'] + '&tags=' + args['hash_tags'] + '&hidden=HIDDEN&category=' + args['category'], 'flipboard': 'https://share.flipboard.com/bookmarklet/popout?v=2&title=' + text + '&url=' + args['url'], 'gmail': 'https://mail.google.com/mail/?view=cm&to=' + args['email_address'] + '&su=' + args['title'] + '&body=' + args['url'] + '&bcc=' + args['bcc_email_address'] + '&cc=' + args['cc_email_address'], 'google.bookmarks': 'https://www.google.com/bookmarks/mark?op=edit&bkmk=' + args['url'] + '&title=' + args['title'] + '&annotation=' + text + '&labels=' + args['hash_tags'] + '', 'instapaper': 'http://www.instapaper.com/edit?url=' + args['url'] + '&title=' + args['title'] + '&description=' + args['desc'], 'line.me': 'https://lineit.line.me/share/ui?url=' + args['url'] + '&text=' + text, 'linkedin': 'https://www.linkedin.com/sharing/share-offsite/?url=' + args['url'], 'livejournal': 'http://www.livejournal.com/update.bml?subject=' + text + '&event=' + args['url'], 'hacker.news': 'https://news.ycombinator.com/submitlink?u=' + args['url'] + '&t=' + args['title'], 'ok.ru': 'https://connect.ok.ru/dk?st.cmd=WidgetSharePreview&st.shareUrl=' + args['url'], 'pinterest': 'http://pinterest.com/pin/create/button/?url=' + args['url'], 'qzone': 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + args['url'], 'reddit': 'https://reddit.com/submit?url=' + args['url'] + '&title=' + args['title'], 'renren': 'http://widget.renren.com/dialog/share?resourceUrl=' + args['url'] + '&srcUrl=' + args['url'] + '&title=' + text + '&description=' + args['desc'], 'skype': 'https://web.skype.com/share?url=' + args['url'] + '&text=' + text, 'sms': 'sms:' + args['phone_number'] + '?body=' + text, 'surfingbird.ru': 'http://surfingbird.ru/share?url=' + args['url'] + '&description=' + args['desc'] + '&screenshot=' + args['image'] + '&title=' + args['title'], 'telegram.me': 'https://t.me/share/url?url=' + args['url'] + '&text=' + text + '&to=' + args['phone_number'], 'threema': 'threema://compose?text=' + text + '&id=' + args['user_id'], 'tumblr': 'https://www.tumblr.com/widgets/share/tool?canonicalUrl=' + args['url'] + '&title=' + args['title'] + '&caption=' + args['desc'] + '&tags=' + args['hash_tags'], 'twitter': 'https://twitter.com/intent/tweet?url=' + args['url'] + '&text=' + text + '&via=' + args['via'] + '&hashtags=' + args['hash_tags'], 'vk': 'http://vk.com/share.php?url=' + args['url'] + '&title=' + args['title'] + '&comment=' + args['desc'], 'weibo': 'http://service.weibo.com/share/share.php?url=' + args['url'] + '&appkey=&title=' + args['title'] + '&pic=&ralateUid=', 'whatsapp': 'https://api.whatsapp.com/send?text=' + text + '%20' + args['url'], 'xing': 'https://www.xing.com/spi/shares/new?url=' + args['url'], 'yahoo': 'http://compose.mail.yahoo.com/?to=' + args['email_address'] + '&subject=' + args['title'] + '&body=' + text}
sm = social_media()
socialmediasites = sm.GetSocialMediaSites_WithShareLinks_OrderedByPopularity()
socialmediaurls = sm.GetSocialMediaSiteLinks_WithShareLinks({'url': 'http://www.earthfluent.com/', 'title': 'EarthFluent'})
for socialmediasite in socialmediasites:
print(socialmediasite + ' : ' + socialmediaurls[socialmediasite])
pass |
class ResistanceValue:
RESISTANCE_VALUES = [
(10, ["brown", "black"]),
(12, ["brown", "red"]),
(15, ["brown", "green"]),
(18, ["brown", "grey"]),
(22, ["red", "red"]),
(27, ["red", "purple"]),
(33, ["orange", "orange"]),
(39, ["orange", "white"]),
(47, ["yellow", "purple"]),
(56, ["green", "blue"]),
(68, ["green", "grey"]),
(82, ["grey", "red"]),
]
| class Resistancevalue:
resistance_values = [(10, ['brown', 'black']), (12, ['brown', 'red']), (15, ['brown', 'green']), (18, ['brown', 'grey']), (22, ['red', 'red']), (27, ['red', 'purple']), (33, ['orange', 'orange']), (39, ['orange', 'white']), (47, ['yellow', 'purple']), (56, ['green', 'blue']), (68, ['green', 'grey']), (82, ['grey', 'red'])] |
def url(your_url):
root = 'https://sandboxapi.fsi.ng'
if your_url:
root = your_url
return root
| def url(your_url):
root = 'https://sandboxapi.fsi.ng'
if your_url:
root = your_url
return root |
N = int(input())
print("*"*N)
for i in range(N//2-1):
print("*"*((N//2-i)) + " "*(N-2*(N//2-i)) + "*"*((N//2-i)))
print("*" + " "*(N-2) + "*")
for i in range(N//2-2, -1, -1):
print("*"*((N//2-i)) + " "*(N-2*(N//2-i)) + "*"*((N//2-i)))
print("*"*N)
| n = int(input())
print('*' * N)
for i in range(N // 2 - 1):
print('*' * (N // 2 - i) + ' ' * (N - 2 * (N // 2 - i)) + '*' * (N // 2 - i))
print('*' + ' ' * (N - 2) + '*')
for i in range(N // 2 - 2, -1, -1):
print('*' * (N // 2 - i) + ' ' * (N - 2 * (N // 2 - i)) + '*' * (N // 2 - i))
print('*' * N) |
class Solution:
def isMatch(self, s: str, p: str) -> bool:
dp = [[False for _ in range(len(s) + 1)] for _ in range(len(p) + 1)]
dp[0][0] = True
for i in range(1,len(p)+1):
if p[i-1] == '*':
dp[i][0] = dp[i-1][0]
else:
break
for i in range(1, len(p) + 1):
for j in range(1, len(s) + 1):
pChar = p[i-1]
schar = s[j-1]
if self.isCharMAtch(pChar, schar):
dp[i][j] = dp[i-1][j-1]
elif pChar == '*':
# match zero or multiple
dp[i][j] = dp[i-1][j] or dp[i][j-1]
return dp[len(p)][len(s)]
def isCharMAtch(self, pChar, sChar):
return pChar == '?' or pChar == sChar
ob = Solution()
source = "acdcb"
pattern = "a*c?b"
print(ob.isMatch(source, pattern)) | class Solution:
def is_match(self, s: str, p: str) -> bool:
dp = [[False for _ in range(len(s) + 1)] for _ in range(len(p) + 1)]
dp[0][0] = True
for i in range(1, len(p) + 1):
if p[i - 1] == '*':
dp[i][0] = dp[i - 1][0]
else:
break
for i in range(1, len(p) + 1):
for j in range(1, len(s) + 1):
p_char = p[i - 1]
schar = s[j - 1]
if self.isCharMAtch(pChar, schar):
dp[i][j] = dp[i - 1][j - 1]
elif pChar == '*':
dp[i][j] = dp[i - 1][j] or dp[i][j - 1]
return dp[len(p)][len(s)]
def is_char_m_atch(self, pChar, sChar):
return pChar == '?' or pChar == sChar
ob = solution()
source = 'acdcb'
pattern = 'a*c?b'
print(ob.isMatch(source, pattern)) |
# Leo colorizer control file for md mode.
# This file is in the public domain.
# Properties for md mode.
# Important: most of this file is actually an html colorizer.
properties = {
"commentEnd": "-->",
"commentStart": "<!--",
"indentSize": "4",
"maxLineLen": "120",
"tabSize": "4",
}
# Attributes dict for md_main ruleset.
md_main_attributes_dict = {
"default": "null",
"digit_re": "",
"escape": "",
"highlight_digits": "true",
"ignore_case": "true",
"no_word_sep": "",
}
# Attributes dict for md_inline_markup ruleset.
md_inline_markup_attributes_dict = {
"default": "MARKUP",
"digit_re": "",
"escape": "",
"highlight_digits": "true",
"ignore_case": "true",
"no_word_sep": "",
}
# Attributes dict for md_block_html_tags ruleset.
md_block_html_tags_attributes_dict = {
"default": "MARKUP",
"digit_re": "",
"escape": "",
"highlight_digits": "true",
"ignore_case": "true",
"no_word_sep": "",
}
# Attributes dict for md_markdown ruleset.
md_markdown_attributes_dict = {
"default": "MARKUP",
"digit_re": "",
"escape": "",
"highlight_digits": "true",
"ignore_case": "false",
"no_word_sep": "",
}
# Attributes dict for md_link_label_definition ruleset.
md_link_label_definition_attributes_dict = {
"default": "KEYWORD3",
"digit_re": "",
"escape": "",
"highlight_digits": "true",
"ignore_case": "false",
"no_word_sep": "",
}
# Attributes dict for md_link_inline_url_title ruleset.
md_link_inline_url_title_attributes_dict = {
"default": "KEYWORD3",
"digit_re": "",
"escape": "",
"highlight_digits": "true",
"ignore_case": "false",
"no_word_sep": "",
}
# Attributes dict for md_link_inline_url_title_close ruleset.
md_link_inline_url_title_close_attributes_dict = {
"default": "KEYWORD3",
"digit_re": "",
"escape": "",
"highlight_digits": "true",
"ignore_case": "false",
"no_word_sep": "",
}
# Attributes dict for md_link_inline_label_close ruleset.
md_link_inline_label_close_attributes_dict = {
"default": "LABEL",
"digit_re": "",
"escape": "",
"highlight_digits": "true",
"ignore_case": "false",
"no_word_sep": "",
}
# Attributes dict for md_markdown_blockquote ruleset.
md_markdown_blockquote_attributes_dict = {
"default": "LABEL",
"digit_re": "",
"escape": "",
"highlight_digits": "true",
"ignore_case": "false",
"no_word_sep": "",
}
# Dictionary of attributes dictionaries for md mode.
attributesDictDict = {
"md_block_html_tags": md_block_html_tags_attributes_dict,
"md_inline_markup": md_inline_markup_attributes_dict,
"md_link_inline_label_close": md_link_inline_label_close_attributes_dict,
"md_link_inline_url_title": md_link_inline_url_title_attributes_dict,
"md_link_inline_url_title_close": md_link_inline_url_title_close_attributes_dict,
"md_link_label_definition": md_link_label_definition_attributes_dict,
"md_main": md_main_attributes_dict,
"md_markdown": md_markdown_attributes_dict,
"md_markdown_blockquote": md_markdown_blockquote_attributes_dict,
}
# Keywords dict for md_main ruleset.
md_main_keywords_dict = {}
# Keywords dict for md_inline_markup ruleset.
md_inline_markup_keywords_dict = {}
# Keywords dict for md_block_html_tags ruleset.
md_block_html_tags_keywords_dict = {}
# Keywords dict for md_markdown ruleset.
md_markdown_keywords_dict = {}
# Keywords dict for md_link_label_definition ruleset.
md_link_label_definition_keywords_dict = {}
# Keywords dict for md_link_inline_url_title ruleset.
md_link_inline_url_title_keywords_dict = {}
# Keywords dict for md_link_inline_url_title_close ruleset.
md_link_inline_url_title_close_keywords_dict = {}
# Keywords dict for md_link_inline_label_close ruleset.
md_link_inline_label_close_keywords_dict = {}
# Keywords dict for md_markdown_blockquote ruleset.
md_markdown_blockquote_keywords_dict = {}
# Dictionary of keywords dictionaries for md mode.
keywordsDictDict = {
"md_block_html_tags": md_block_html_tags_keywords_dict,
"md_inline_markup": md_inline_markup_keywords_dict,
"md_link_inline_label_close": md_link_inline_label_close_keywords_dict,
"md_link_inline_url_title": md_link_inline_url_title_keywords_dict,
"md_link_inline_url_title_close": md_link_inline_url_title_close_keywords_dict,
"md_link_label_definition": md_link_label_definition_keywords_dict,
"md_main": md_main_keywords_dict,
"md_markdown": md_markdown_keywords_dict,
"md_markdown_blockquote": md_markdown_blockquote_keywords_dict,
}
# Rules for md_main ruleset.
def md_heading(colorer,s,i):
# issue 386.
# print('md_heading',i)
return colorer.match_seq_regexp(s, i, kind="keyword2", regexp="^[#]+",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_link(colorer,s,i):
# issue 386.
# print('md_link',i)
return colorer.match_seq_regexp(s, i, kind="keyword2", regexp="\[[^]]+\]\([^)]+\)",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_star_emphasis1(colorer,s,i):
# issue 386.
# print('md_underscore_emphasis1',i)
return colorer.match_seq_regexp(s, i, kind="keyword2", regexp="\\*[^\\s*][^*]*\\*",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_star_emphasis2(colorer,s,i):
# issue 386.
# print('md_star_emphasis2',i)
return colorer.match_seq_regexp(s, i, kind="keyword2", regexp="\\*\\*[^*]+\\*\\*",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_underscore_emphasis1(colorer,s,i):
# issue 386.
# print('md_underscore_emphasis1',i)
return colorer.match_seq_regexp(s, i, kind="keyword2", regexp="_[^_]+_",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_underline_equals(colorer,s,i):
# issue 386.
# print('md_underline_equals',i)
return colorer.match_seq_regexp(s, i, kind="keyword2", regexp="^===[=]+$",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_underline_minus(colorer,s,i):
# issue 386.
# print('md_underline_minus',i)
return colorer.match_seq_regexp(s, i, kind="keyword2", regexp="---[-]+$",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_underscore_emphasis2(colorer,s,i):
# issue 386.
# print('md_underscore_emphasis2',i)
return colorer.match_seq_regexp(s, i, kind="keyword2", regexp="__[^_]+__",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule0(colorer, s, i):
return colorer.match_span(s, i, kind="comment1", begin="<!--", end="-->",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def md_rule1(colorer, s, i):
return colorer.match_span(s, i, kind="markup", begin="<script", end="</script>",
at_line_start=True, at_whitespace_end=False, at_word_start=False,
delegate="html::javascript",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def md_rule2(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind="markup", regexp="<hr\\b([^<>])*?/?>",
at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule3(colorer, s, i):
return colorer.match_span_regexp(s, i, kind="markup", begin="<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|noscript|form|fieldset|iframe|math|ins|del)\\b", end="</$1>",
at_line_start=True, at_whitespace_end=False, at_word_start=False,
delegate="md::block_html_tags",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def md_rule4(colorer, s, i):
return colorer.match_seq(s, i, kind="null", seq=" < ",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule5(colorer, s, i):
return colorer.match_span(s, i, kind="markup", begin="<", end=">",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="md::inline_markup",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
# Rules dict for md_main ruleset.
rulesDict1 = {
"#": [md_heading,], # Issue #386.
"[": [md_link,], # issue 386.
"*": [md_star_emphasis2, md_star_emphasis1,], # issue 386. Order important
"=": [md_underline_equals,], # issue 386.
"-": [md_underline_minus,], # issue 386.
"_": [md_underscore_emphasis2, md_underscore_emphasis1,], # issue 386. Order important.
" ": [md_rule4,],
"<": [md_rule0,md_rule1,md_rule2,md_rule3,md_rule5,],
}
# Rules for md_inline_markup ruleset.
# Rules dict for md_inline_markup ruleset.
rulesDict2 = {}
# Rules for md_block_html_tags ruleset.
if 0: # Rules 6 & 7 will never match?
def md_rule6(colorer, s, i):
return colorer.match_eol_span_regexp(s, i, kind="invalid", regexp="[\\S]+",
at_line_start=True, at_whitespace_end=False, at_word_start=False,
delegate="", exclude_match=False)
def md_rule7(colorer, s, i):
return colorer.match_eol_span_regexp(s, i, kind="invalid", regexp="{1,3}[\\S]+",
at_line_start=True, at_whitespace_end=False, at_word_start=False,
delegate="", exclude_match=False)
def md_rule8(colorer, s, i):
# leadin: [ \t]
return colorer.match_eol_span_regexp(s, i, kind="", regexp="( {4}|\\t)",
at_line_start=True, at_whitespace_end=False, at_word_start=False,
delegate="html::main", exclude_match=False)
def md_rule9(colorer, s, i):
return colorer.match_span(s, i, kind="literal1", begin="\"", end="\"",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def md_rule10(colorer, s, i):
return colorer.match_span(s, i, kind="literal1", begin="'", end="'",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def md_rule11(colorer, s, i):
return colorer.match_seq(s, i, kind="operator", seq="=",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
# Rules dict for md_block_html_tags ruleset.
rulesDict3 = {
" ": [md_rule8], # new
"\t":[md_rule8], # new
"\"": [md_rule9,],
"'": [md_rule10,],
# "(": [md_rule8,],
"=": [md_rule11,],
# "[": [md_rule6,], # Will never fire: the leadin character is any non-space!
# "{": [md_rule7,], # Will never fire: the leading character is any non-space!
}
# Rules for md_markdown ruleset.
def md_rule12(colorer, s, i):
# Leadins: [ \t>]
return colorer.match_eol_span_regexp(s, i, kind="", regexp="[ \\t]*(>[ \\t]{1})+",
at_line_start=True, at_whitespace_end=False, at_word_start=False,
delegate="md::markdown_blockquote", exclude_match=False)
def md_rule13(colorer, s, i):
return colorer.match_seq(s, i, kind="null", seq="*",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule14(colorer, s, i):
return colorer.match_seq(s, i, kind="null", seq="_",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule15(colorer, s, i):
return colorer.match_seq(s, i, kind="null", seq="\\][",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule16(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind="null", regexp="\\\\[\\Q*_\\`[](){}#+.!-\\E]",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule17(colorer, s, i):
return colorer.match_span(s, i, kind="literal2", begin="``` ruby", end="```",
at_line_start=True, at_whitespace_end=False, at_word_start=False,
delegate="ruby::main",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def md_rule18(colorer, s, i):
return colorer.match_span(s, i, kind="literal2", begin="```", end="```",
at_line_start=True, at_whitespace_end=False, at_word_start=False,
delegate="",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def md_rule19(colorer, s, i):
# leadin: `
return colorer.match_span_regexp(s, i, kind="literal2", begin="(`{1,2})", end="$1",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def md_rule20(colorer, s, i):
# Leadins are [ \t]
return colorer.match_eol_span_regexp(s, i, kind="literal2", regexp="( {4,}|\\t+)\\S",
at_line_start=True, at_whitespace_end=False, at_word_start=False,
delegate="", exclude_match=False)
def md_rule21(colorer, s, i):
# Leadins are [=-]
return colorer.match_eol_span_regexp(s, i, kind="keyword1", regexp="[=-]+",
at_line_start=True, at_whitespace_end=False, at_word_start=False,
delegate="", exclude_match=False)
def md_rule22(colorer, s, i):
# Leadin is #
return colorer.match_eol_span_regexp(s, i, kind="keyword1", regexp="#{1,6}[ \\t]*(.+?)",
at_line_start=True, at_whitespace_end=False, at_word_start=False,
delegate="", exclude_match=False)
def md_rule23(colorer, s, i):
# Leadins are [ \t -_*]
return colorer.match_eol_span_regexp(s, i, kind="keyword1", regexp="[ ]{0,2}([ ]?[-_*][ ]?){3,}[ \\t]*",
at_line_start=True, at_whitespace_end=False, at_word_start=False,
delegate="", exclude_match=False)
def md_rule24(colorer, s, i):
# Leadins are [ \t*+-]
return colorer.match_seq_regexp(s, i, kind="keyword2", regexp="[ \\t]{0,}[*+-][ \\t]+",
at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule25(colorer, s, i):
# Leadins are [ \t0123456789]
return colorer.match_seq_regexp(s, i, kind="keyword2", regexp="[ \\t]{0,}\\d+\\.[ \\t]+",
at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule26(colorer, s, i):
return colorer.match_eol_span_regexp(s, i, kind="label", regexp="\\[(.*?)\\]\\:",
at_line_start=False, at_whitespace_end=True, at_word_start=False,
delegate="md::link_label_definition", exclude_match=False)
def md_rule27(colorer, s, i):
# leadin: [
return colorer.match_span_regexp(s, i, kind="keyword4", begin="!?\\[[\\p{Alnum}\\p{Blank}]*", end="\\]",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="md::link_inline_url_title",exclude_match=False,
no_escape=False, no_line_break=True, no_word_break=False)
def md_rule28(colorer, s, i):
# Leadins: [*_]
return colorer.match_span_regexp(s, i, kind="literal3", begin="(\\*\\*|__)", end="$1",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="",exclude_match=False,
no_escape=False, no_line_break=True, no_word_break=False)
def md_rule29(colorer, s, i):
# Leadins: [*_]
return colorer.match_span_regexp(s, i, kind="literal4", begin="(\\*|_)", end="$1",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="",exclude_match=False,
no_escape=False, no_line_break=True, no_word_break=False)
# Rules dict for md_markdown ruleset.
rulesDict4 = {
# Existing leadins...
"!": [md_rule27,],
"#": [md_rule22,],
"*": [md_rule13,md_rule23,md_rule24,md_rule28,md_rule29], # new: 23,24,28,29.
"\\": [md_rule15,md_rule16,md_rule26,],
"_": [md_rule14,md_rule23,md_rule24,md_rule28,md_rule29], # new: 23,24,28,29.
"`": [md_rule17,md_rule18,md_rule19,], # new: 19
"[": [md_rule27,], # new: 27 old: 12,21,23,24,25.
# Unused leadins...
# "(": [md_rule28,md_rule29,],
# New leadins...
" ": [md_rule12,md_rule20,md_rule23,md_rule24,md_rule25,],
"\t":[md_rule12,md_rule20,md_rule23,md_rule24,md_rule25],
">":[md_rule12,],
"=":[md_rule21,],
"-":[md_rule21,md_rule23,md_rule24],
"0":[md_rule25,],
"1":[md_rule25,],
"2":[md_rule25,],
"3":[md_rule25,],
"4":[md_rule25,],
"5":[md_rule25,],
"6":[md_rule25,],
"7":[md_rule25,],
"8":[md_rule25,],
"9":[md_rule25,],
}
# Rules for md_link_label_definition ruleset.
def md_rule30(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind="null", regexp="\\\\[\\Q*_\\`[](){}#+.!-\\E]",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule31(colorer, s, i):
return colorer.match_seq(s, i, kind="operator", seq="\"",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule32(colorer, s, i):
return colorer.match_seq(s, i, kind="operator", seq="(",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule33(colorer, s, i):
return colorer.match_seq(s, i, kind="operator", seq=")",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
# Rules dict for md_link_label_definition ruleset.
rulesDict5 = {
"\"": [md_rule31,],
"(": [md_rule32,],
")": [md_rule33,],
"\\": [md_rule30,],
}
# Rules for md_link_inline_url_title ruleset.
def md_rule34(colorer, s, i):
return colorer.match_seq(s, i, kind="operator", seq="]",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule35(colorer, s, i):
return colorer.match_span_regexp(s, i, kind="keyword4", begin="\\[", end="\\]",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="md::link_inline_label_close",exclude_match=False,
no_escape=False, no_line_break=True, no_word_break=False)
def md_rule36(colorer, s, i):
return colorer.match_span_regexp(s, i, kind="keyword4", begin="\\(", end="\\)",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="md::link_inline_url_title_close",exclude_match=False,
no_escape=False, no_line_break=True, no_word_break=False)
# Rules dict for md_link_inline_url_title ruleset.
rulesDict6 = {
"(": [md_rule36,],
"[": [md_rule35,],
"]": [md_rule34,],
}
# Rules for md_link_inline_url_title_close ruleset.
def md_rule37(colorer, s, i):
return colorer.match_eol_span(s, i, kind="null", seq=")",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="md::main", exclude_match=False)
# Rules dict for md_link_inline_url_title_close ruleset.
rulesDict7 = {
")": [md_rule37,],
}
# Rules for md_link_inline_label_close ruleset.
def md_rule38(colorer, s, i):
return colorer.match_eol_span(s, i, kind="null", seq="]",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="md::main", exclude_match=False)
# Rules dict for md_link_inline_label_close ruleset.
rulesDict8 = {
"]": [md_rule38,],
}
# Rules for md_markdown_blockquote ruleset.
def md_rule39(colorer, s, i):
return colorer.match_seq(s, i, kind="null", seq=" < ",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule40(colorer, s, i):
return colorer.match_span(s, i, kind="markup", begin="<", end=">",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="md::inline_markup",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def md_rule41(colorer, s, i):
return colorer.match_seq(s, i, kind="null", seq="*",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule42(colorer, s, i):
return colorer.match_seq(s, i, kind="null", seq="_",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule43(colorer, s, i):
# leadin: backslash.
return colorer.match_seq(s, i, kind="null", seq="\\][",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule44(colorer, s, i):
# leadin: backslash.
return colorer.match_seq_regexp(s, i, kind="null", regexp="\\\\[\\Q*_\\`[](){}#+.!-\\E]",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule45(colorer, s, i):
# leadin: `
return colorer.match_span_regexp(s, i, kind="literal2", begin="(`{1,2})", end="$1",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def md_rule46(colorer, s, i):
# leadins: [ \t]
return colorer.match_eol_span_regexp(s, i, kind="literal2", regexp="( {4,}|\\t+)\\S",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="", exclude_match=False)
def md_rule47(colorer, s, i):
# leadins: [=-]
return colorer.match_eol_span_regexp(s, i, kind="keyword1", regexp="[=-]+",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="", exclude_match=False)
def md_rule48(colorer, s, i):
# leadin: #
return colorer.match_eol_span_regexp(s, i, kind="keyword1", regexp="#{1,6}[ \\t]*(.+?)",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="", exclude_match=False)
def md_rule49(colorer, s, i):
# leadins: [ -_*]
return colorer.match_eol_span_regexp(s, i, kind="keyword1", regexp="[ ]{0,2}([ ]?[-_*][ ]?){3,}[ \\t]*",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="", exclude_match=False)
def md_rule50(colorer, s, i):
# leadins: [ \t*+-]
return colorer.match_seq_regexp(s, i, kind="keyword2", regexp="[ \\t]{0,}[*+-][ \\t]+",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule51(colorer, s, i):
# leadins: [ \t0123456789]
return colorer.match_seq_regexp(s, i, kind="keyword2", regexp="[ \\t]{0,}\\d+\\.[ \\t]+",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def md_rule52(colorer, s, i):
# leadin: [
return colorer.match_eol_span_regexp(s, i, kind="label", regexp="\\[(.*?)\\]\\:",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="md::link_label_definition", exclude_match=False)
def md_rule53(colorer, s, i):
# leadin: [
return colorer.match_span_regexp(s, i, kind="keyword4", begin="!?\\[[\\p{Alnum}\\p{Blank}]*", end="\\]",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="md::link_inline_url_title",exclude_match=False,
no_escape=False, no_line_break=True, no_word_break=False)
def md_rule54(colorer, s, i):
# leadins: [*_]
return colorer.match_span_regexp(s, i, kind="literal3", begin="(\\*\\*|__)", end="$1",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def md_rule55(colorer, s, i):
# leadins: [*_]
return colorer.match_span_regexp(s, i, kind="literal4", begin="(\\*|_)", end="$1",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
# Rules dict for md_markdown_blockquote ruleset.
rulesDict9 = {
# old, unused.
# "!": [], # 53
# "[": [], # 47,49,50,51,
" ": [md_rule39,md_rule46,md_rule49,md_rule50], # new: 46,49,50
"\t":[md_rule46,md_rule50,], # new: 46,50
"#": [md_rule48,],
"(": [md_rule54,md_rule55,], # 45,46
"*": [md_rule41,md_rule49,md_rule50,md_rule54,md_rule55,], # new: 49,50,54,55
"<": [md_rule40,],
"\\": [md_rule43,md_rule44,], # 52,53
"_": [md_rule42,md_rule49,md_rule54,md_rule55,], # new: 49,54,55
# new leadins:
"+":[md_rule50,],
"-":[md_rule47,md_rule49,md_rule50,],
"=":[md_rule47,],
"[":[md_rule52,md_rule53],
"`":[md_rule45,],
"0":[md_rule50,],
"1":[md_rule50,],
"2":[md_rule50,],
"3":[md_rule50,],
"4":[md_rule50,],
"5":[md_rule50,],
"6":[md_rule50,],
"7":[md_rule50,],
"8":[md_rule50,],
"9":[md_rule50,],
}
# x.rulesDictDict for md mode.
rulesDictDict = {
"md_block_html_tags": rulesDict3,
"md_inline_markup": rulesDict2,
"md_link_inline_label_close": rulesDict8,
"md_link_inline_url_title": rulesDict6,
"md_link_inline_url_title_close": rulesDict7,
"md_link_label_definition": rulesDict5,
"md_main": rulesDict1,
"md_markdown": rulesDict4,
"md_markdown_blockquote": rulesDict9,
}
# Import dict for md mode.
importDict = {
"md_inline_markup": ["html::tags",],
"md_link_label_definition": ["md_link_label_definition::markdown",],
"md_main": ["md_main::markdown",],
}
| properties = {'commentEnd': '-->', 'commentStart': '<!--', 'indentSize': '4', 'maxLineLen': '120', 'tabSize': '4'}
md_main_attributes_dict = {'default': 'null', 'digit_re': '', 'escape': '', 'highlight_digits': 'true', 'ignore_case': 'true', 'no_word_sep': ''}
md_inline_markup_attributes_dict = {'default': 'MARKUP', 'digit_re': '', 'escape': '', 'highlight_digits': 'true', 'ignore_case': 'true', 'no_word_sep': ''}
md_block_html_tags_attributes_dict = {'default': 'MARKUP', 'digit_re': '', 'escape': '', 'highlight_digits': 'true', 'ignore_case': 'true', 'no_word_sep': ''}
md_markdown_attributes_dict = {'default': 'MARKUP', 'digit_re': '', 'escape': '', 'highlight_digits': 'true', 'ignore_case': 'false', 'no_word_sep': ''}
md_link_label_definition_attributes_dict = {'default': 'KEYWORD3', 'digit_re': '', 'escape': '', 'highlight_digits': 'true', 'ignore_case': 'false', 'no_word_sep': ''}
md_link_inline_url_title_attributes_dict = {'default': 'KEYWORD3', 'digit_re': '', 'escape': '', 'highlight_digits': 'true', 'ignore_case': 'false', 'no_word_sep': ''}
md_link_inline_url_title_close_attributes_dict = {'default': 'KEYWORD3', 'digit_re': '', 'escape': '', 'highlight_digits': 'true', 'ignore_case': 'false', 'no_word_sep': ''}
md_link_inline_label_close_attributes_dict = {'default': 'LABEL', 'digit_re': '', 'escape': '', 'highlight_digits': 'true', 'ignore_case': 'false', 'no_word_sep': ''}
md_markdown_blockquote_attributes_dict = {'default': 'LABEL', 'digit_re': '', 'escape': '', 'highlight_digits': 'true', 'ignore_case': 'false', 'no_word_sep': ''}
attributes_dict_dict = {'md_block_html_tags': md_block_html_tags_attributes_dict, 'md_inline_markup': md_inline_markup_attributes_dict, 'md_link_inline_label_close': md_link_inline_label_close_attributes_dict, 'md_link_inline_url_title': md_link_inline_url_title_attributes_dict, 'md_link_inline_url_title_close': md_link_inline_url_title_close_attributes_dict, 'md_link_label_definition': md_link_label_definition_attributes_dict, 'md_main': md_main_attributes_dict, 'md_markdown': md_markdown_attributes_dict, 'md_markdown_blockquote': md_markdown_blockquote_attributes_dict}
md_main_keywords_dict = {}
md_inline_markup_keywords_dict = {}
md_block_html_tags_keywords_dict = {}
md_markdown_keywords_dict = {}
md_link_label_definition_keywords_dict = {}
md_link_inline_url_title_keywords_dict = {}
md_link_inline_url_title_close_keywords_dict = {}
md_link_inline_label_close_keywords_dict = {}
md_markdown_blockquote_keywords_dict = {}
keywords_dict_dict = {'md_block_html_tags': md_block_html_tags_keywords_dict, 'md_inline_markup': md_inline_markup_keywords_dict, 'md_link_inline_label_close': md_link_inline_label_close_keywords_dict, 'md_link_inline_url_title': md_link_inline_url_title_keywords_dict, 'md_link_inline_url_title_close': md_link_inline_url_title_close_keywords_dict, 'md_link_label_definition': md_link_label_definition_keywords_dict, 'md_main': md_main_keywords_dict, 'md_markdown': md_markdown_keywords_dict, 'md_markdown_blockquote': md_markdown_blockquote_keywords_dict}
def md_heading(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='keyword2', regexp='^[#]+', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_link(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='keyword2', regexp='\\[[^]]+\\]\\([^)]+\\)', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_star_emphasis1(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='keyword2', regexp='\\*[^\\s*][^*]*\\*', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_star_emphasis2(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='keyword2', regexp='\\*\\*[^*]+\\*\\*', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_underscore_emphasis1(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='keyword2', regexp='_[^_]+_', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_underline_equals(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='keyword2', regexp='^===[=]+$', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_underline_minus(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='keyword2', regexp='---[-]+$', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_underscore_emphasis2(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='keyword2', regexp='__[^_]+__', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule0(colorer, s, i):
return colorer.match_span(s, i, kind='comment1', begin='<!--', end='-->', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def md_rule1(colorer, s, i):
return colorer.match_span(s, i, kind='markup', begin='<script', end='</script>', at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate='html::javascript', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def md_rule2(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='markup', regexp='<hr\\b([^<>])*?/?>', at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule3(colorer, s, i):
return colorer.match_span_regexp(s, i, kind='markup', begin='<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|noscript|form|fieldset|iframe|math|ins|del)\\b', end='</$1>', at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate='md::block_html_tags', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def md_rule4(colorer, s, i):
return colorer.match_seq(s, i, kind='null', seq=' < ', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule5(colorer, s, i):
return colorer.match_span(s, i, kind='markup', begin='<', end='>', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='md::inline_markup', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
rules_dict1 = {'#': [md_heading], '[': [md_link], '*': [md_star_emphasis2, md_star_emphasis1], '=': [md_underline_equals], '-': [md_underline_minus], '_': [md_underscore_emphasis2, md_underscore_emphasis1], ' ': [md_rule4], '<': [md_rule0, md_rule1, md_rule2, md_rule3, md_rule5]}
rules_dict2 = {}
if 0:
def md_rule6(colorer, s, i):
return colorer.match_eol_span_regexp(s, i, kind='invalid', regexp='[\\S]+', at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False)
def md_rule7(colorer, s, i):
return colorer.match_eol_span_regexp(s, i, kind='invalid', regexp='{1,3}[\\S]+', at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False)
def md_rule8(colorer, s, i):
return colorer.match_eol_span_regexp(s, i, kind='', regexp='( {4}|\\t)', at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate='html::main', exclude_match=False)
def md_rule9(colorer, s, i):
return colorer.match_span(s, i, kind='literal1', begin='"', end='"', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def md_rule10(colorer, s, i):
return colorer.match_span(s, i, kind='literal1', begin="'", end="'", at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def md_rule11(colorer, s, i):
return colorer.match_seq(s, i, kind='operator', seq='=', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
rules_dict3 = {' ': [md_rule8], '\t': [md_rule8], '"': [md_rule9], "'": [md_rule10], '=': [md_rule11]}
def md_rule12(colorer, s, i):
return colorer.match_eol_span_regexp(s, i, kind='', regexp='[ \\t]*(>[ \\t]{1})+', at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate='md::markdown_blockquote', exclude_match=False)
def md_rule13(colorer, s, i):
return colorer.match_seq(s, i, kind='null', seq='*', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule14(colorer, s, i):
return colorer.match_seq(s, i, kind='null', seq='_', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule15(colorer, s, i):
return colorer.match_seq(s, i, kind='null', seq='\\][', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule16(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='null', regexp='\\\\[\\Q*_\\`[](){}#+.!-\\E]', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule17(colorer, s, i):
return colorer.match_span(s, i, kind='literal2', begin='``` ruby', end='```', at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate='ruby::main', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def md_rule18(colorer, s, i):
return colorer.match_span(s, i, kind='literal2', begin='```', end='```', at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def md_rule19(colorer, s, i):
return colorer.match_span_regexp(s, i, kind='literal2', begin='(`{1,2})', end='$1', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def md_rule20(colorer, s, i):
return colorer.match_eol_span_regexp(s, i, kind='literal2', regexp='( {4,}|\\t+)\\S', at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False)
def md_rule21(colorer, s, i):
return colorer.match_eol_span_regexp(s, i, kind='keyword1', regexp='[=-]+', at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False)
def md_rule22(colorer, s, i):
return colorer.match_eol_span_regexp(s, i, kind='keyword1', regexp='#{1,6}[ \\t]*(.+?)', at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False)
def md_rule23(colorer, s, i):
return colorer.match_eol_span_regexp(s, i, kind='keyword1', regexp='[ ]{0,2}([ ]?[-_*][ ]?){3,}[ \\t]*', at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False)
def md_rule24(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='keyword2', regexp='[ \\t]{0,}[*+-][ \\t]+', at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule25(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='keyword2', regexp='[ \\t]{0,}\\d+\\.[ \\t]+', at_line_start=True, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule26(colorer, s, i):
return colorer.match_eol_span_regexp(s, i, kind='label', regexp='\\[(.*?)\\]\\:', at_line_start=False, at_whitespace_end=True, at_word_start=False, delegate='md::link_label_definition', exclude_match=False)
def md_rule27(colorer, s, i):
return colorer.match_span_regexp(s, i, kind='keyword4', begin='!?\\[[\\p{Alnum}\\p{Blank}]*', end='\\]', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='md::link_inline_url_title', exclude_match=False, no_escape=False, no_line_break=True, no_word_break=False)
def md_rule28(colorer, s, i):
return colorer.match_span_regexp(s, i, kind='literal3', begin='(\\*\\*|__)', end='$1', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False, no_escape=False, no_line_break=True, no_word_break=False)
def md_rule29(colorer, s, i):
return colorer.match_span_regexp(s, i, kind='literal4', begin='(\\*|_)', end='$1', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False, no_escape=False, no_line_break=True, no_word_break=False)
rules_dict4 = {'!': [md_rule27], '#': [md_rule22], '*': [md_rule13, md_rule23, md_rule24, md_rule28, md_rule29], '\\': [md_rule15, md_rule16, md_rule26], '_': [md_rule14, md_rule23, md_rule24, md_rule28, md_rule29], '`': [md_rule17, md_rule18, md_rule19], '[': [md_rule27], ' ': [md_rule12, md_rule20, md_rule23, md_rule24, md_rule25], '\t': [md_rule12, md_rule20, md_rule23, md_rule24, md_rule25], '>': [md_rule12], '=': [md_rule21], '-': [md_rule21, md_rule23, md_rule24], '0': [md_rule25], '1': [md_rule25], '2': [md_rule25], '3': [md_rule25], '4': [md_rule25], '5': [md_rule25], '6': [md_rule25], '7': [md_rule25], '8': [md_rule25], '9': [md_rule25]}
def md_rule30(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='null', regexp='\\\\[\\Q*_\\`[](){}#+.!-\\E]', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule31(colorer, s, i):
return colorer.match_seq(s, i, kind='operator', seq='"', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule32(colorer, s, i):
return colorer.match_seq(s, i, kind='operator', seq='(', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule33(colorer, s, i):
return colorer.match_seq(s, i, kind='operator', seq=')', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
rules_dict5 = {'"': [md_rule31], '(': [md_rule32], ')': [md_rule33], '\\': [md_rule30]}
def md_rule34(colorer, s, i):
return colorer.match_seq(s, i, kind='operator', seq=']', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule35(colorer, s, i):
return colorer.match_span_regexp(s, i, kind='keyword4', begin='\\[', end='\\]', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='md::link_inline_label_close', exclude_match=False, no_escape=False, no_line_break=True, no_word_break=False)
def md_rule36(colorer, s, i):
return colorer.match_span_regexp(s, i, kind='keyword4', begin='\\(', end='\\)', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='md::link_inline_url_title_close', exclude_match=False, no_escape=False, no_line_break=True, no_word_break=False)
rules_dict6 = {'(': [md_rule36], '[': [md_rule35], ']': [md_rule34]}
def md_rule37(colorer, s, i):
return colorer.match_eol_span(s, i, kind='null', seq=')', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='md::main', exclude_match=False)
rules_dict7 = {')': [md_rule37]}
def md_rule38(colorer, s, i):
return colorer.match_eol_span(s, i, kind='null', seq=']', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='md::main', exclude_match=False)
rules_dict8 = {']': [md_rule38]}
def md_rule39(colorer, s, i):
return colorer.match_seq(s, i, kind='null', seq=' < ', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule40(colorer, s, i):
return colorer.match_span(s, i, kind='markup', begin='<', end='>', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='md::inline_markup', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def md_rule41(colorer, s, i):
return colorer.match_seq(s, i, kind='null', seq='*', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule42(colorer, s, i):
return colorer.match_seq(s, i, kind='null', seq='_', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule43(colorer, s, i):
return colorer.match_seq(s, i, kind='null', seq='\\][', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule44(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='null', regexp='\\\\[\\Q*_\\`[](){}#+.!-\\E]', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule45(colorer, s, i):
return colorer.match_span_regexp(s, i, kind='literal2', begin='(`{1,2})', end='$1', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def md_rule46(colorer, s, i):
return colorer.match_eol_span_regexp(s, i, kind='literal2', regexp='( {4,}|\\t+)\\S', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False)
def md_rule47(colorer, s, i):
return colorer.match_eol_span_regexp(s, i, kind='keyword1', regexp='[=-]+', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False)
def md_rule48(colorer, s, i):
return colorer.match_eol_span_regexp(s, i, kind='keyword1', regexp='#{1,6}[ \\t]*(.+?)', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False)
def md_rule49(colorer, s, i):
return colorer.match_eol_span_regexp(s, i, kind='keyword1', regexp='[ ]{0,2}([ ]?[-_*][ ]?){3,}[ \\t]*', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False)
def md_rule50(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='keyword2', regexp='[ \\t]{0,}[*+-][ \\t]+', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule51(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='keyword2', regexp='[ \\t]{0,}\\d+\\.[ \\t]+', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def md_rule52(colorer, s, i):
return colorer.match_eol_span_regexp(s, i, kind='label', regexp='\\[(.*?)\\]\\:', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='md::link_label_definition', exclude_match=False)
def md_rule53(colorer, s, i):
return colorer.match_span_regexp(s, i, kind='keyword4', begin='!?\\[[\\p{Alnum}\\p{Blank}]*', end='\\]', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='md::link_inline_url_title', exclude_match=False, no_escape=False, no_line_break=True, no_word_break=False)
def md_rule54(colorer, s, i):
return colorer.match_span_regexp(s, i, kind='literal3', begin='(\\*\\*|__)', end='$1', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def md_rule55(colorer, s, i):
return colorer.match_span_regexp(s, i, kind='literal4', begin='(\\*|_)', end='$1', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
rules_dict9 = {' ': [md_rule39, md_rule46, md_rule49, md_rule50], '\t': [md_rule46, md_rule50], '#': [md_rule48], '(': [md_rule54, md_rule55], '*': [md_rule41, md_rule49, md_rule50, md_rule54, md_rule55], '<': [md_rule40], '\\': [md_rule43, md_rule44], '_': [md_rule42, md_rule49, md_rule54, md_rule55], '+': [md_rule50], '-': [md_rule47, md_rule49, md_rule50], '=': [md_rule47], '[': [md_rule52, md_rule53], '`': [md_rule45], '0': [md_rule50], '1': [md_rule50], '2': [md_rule50], '3': [md_rule50], '4': [md_rule50], '5': [md_rule50], '6': [md_rule50], '7': [md_rule50], '8': [md_rule50], '9': [md_rule50]}
rules_dict_dict = {'md_block_html_tags': rulesDict3, 'md_inline_markup': rulesDict2, 'md_link_inline_label_close': rulesDict8, 'md_link_inline_url_title': rulesDict6, 'md_link_inline_url_title_close': rulesDict7, 'md_link_label_definition': rulesDict5, 'md_main': rulesDict1, 'md_markdown': rulesDict4, 'md_markdown_blockquote': rulesDict9}
import_dict = {'md_inline_markup': ['html::tags'], 'md_link_label_definition': ['md_link_label_definition::markdown'], 'md_main': ['md_main::markdown']} |
lista = ('APRENDER', 'PROGRAMA', 'LINGUAGES', 'PYTHON', 'CURSO',
'GRATIS', 'ESTUDAR', 'PRATICAR', 'TRABALHAR', 'MERCAADO',
'PROGRAMADOR', 'FUTURO')
for palavras in lista:
print(f'\nNa palavra {palavras} temos: ', end='')
for vogais in palavras:
if vogais in 'AEIOU':
print(vogais, end=' ')
| lista = ('APRENDER', 'PROGRAMA', 'LINGUAGES', 'PYTHON', 'CURSO', 'GRATIS', 'ESTUDAR', 'PRATICAR', 'TRABALHAR', 'MERCAADO', 'PROGRAMADOR', 'FUTURO')
for palavras in lista:
print(f'\nNa palavra {palavras} temos: ', end='')
for vogais in palavras:
if vogais in 'AEIOU':
print(vogais, end=' ') |
# -*- coding: utf-8 -*-
# package information.
INFO = dict(
name='coil',
description='Scheme interpreter written in Python',
author='coilo',
author_email='coilo.dev@gmail.com',
license='MIT License',
url='https://github.com/coilo/coil',
classifiers=[
'Programming Language :: Python :: 3.4',
'License :: OSI Approved :: MIT License'
]
)
| info = dict(name='coil', description='Scheme interpreter written in Python', author='coilo', author_email='coilo.dev@gmail.com', license='MIT License', url='https://github.com/coilo/coil', classifiers=['Programming Language :: Python :: 3.4', 'License :: OSI Approved :: MIT License']) |
def foo(x):
def bar(x, y):
return lambda y: y(x)
return lambda y: bar(x, y)
print(foo(lambda x: x**3)(lambda x: x**2)(lambda x: x)(4)) | def foo(x):
def bar(x, y):
return lambda y: y(x)
return lambda y: bar(x, y)
print(foo(lambda x: x ** 3)(lambda x: x ** 2)(lambda x: x)(4)) |
# 190. Reverse Bits
# ttungl@gmail.com
# Reverse bits of a given 32 bits unsigned integer.
# For example, given input 43261596 (represented in binary as 00000010100101000001111010011100),
# return 964176192 (represented in binary as 00111001011110000010100101000000).
# Follow up:
# If this function is called many times, how would you optimize it?
# Related problem: Reverse Integer
class Solution:
# @param n, an integer
# @return an integer
def reverseBits(self, n):
# sol 1
# runtime: 39ms
res = 0
for i in range(32):
res <<= 1
res |= n & 1
n >>= 1
return res
# sol 2:
# runtime:
res = str(bin(n)) # res = 0bxxxx
pad = int(32 - len(res) + 2) * "0"
return int(res[0:2] + res[2:][::-1] + pad, 2)
| class Solution:
def reverse_bits(self, n):
res = 0
for i in range(32):
res <<= 1
res |= n & 1
n >>= 1
return res
res = str(bin(n))
pad = int(32 - len(res) + 2) * '0'
return int(res[0:2] + res[2:][::-1] + pad, 2) |
class Movie:
def __init__(self,title,year,imdb_score,have_seen):
self.title = title
self.year = year
self.imdb_score = imdb_score
self.have_seen = have_seen
def nice_print(self):
print("Title: ", self.title)
print("Year of production: ", self.year)
print("IMDB Score: ", self.imdb_score)
print("I have seen it: ", self.have_seen)
film_1 = Movie("Life of Brian",1979,8.1,True)
film_2 = Movie("The Holy Grail",1975,8.2,True)
films = [film_1,film_2]
print(films[1].title,films[0].title)
films[0].nice_print()
#Classes are blueprints
#Objects are the actual things you built
#variables => attributes
#functions => methods | class Movie:
def __init__(self, title, year, imdb_score, have_seen):
self.title = title
self.year = year
self.imdb_score = imdb_score
self.have_seen = have_seen
def nice_print(self):
print('Title: ', self.title)
print('Year of production: ', self.year)
print('IMDB Score: ', self.imdb_score)
print('I have seen it: ', self.have_seen)
film_1 = movie('Life of Brian', 1979, 8.1, True)
film_2 = movie('The Holy Grail', 1975, 8.2, True)
films = [film_1, film_2]
print(films[1].title, films[0].title)
films[0].nice_print() |
#!/usr/bin/env python3
class AppException(Exception):
status_code = 400
def __init__(self, message):
Exception.__init__(self)
self.message = message
def to_dict(self):
return {'message': self.message}
class DeviceNotFoundException(AppException):
status_code = 404
class UpstreamApiException(AppException):
status_code = 502
class InvalidValueException(AppException):
status_code = 400
| class Appexception(Exception):
status_code = 400
def __init__(self, message):
Exception.__init__(self)
self.message = message
def to_dict(self):
return {'message': self.message}
class Devicenotfoundexception(AppException):
status_code = 404
class Upstreamapiexception(AppException):
status_code = 502
class Invalidvalueexception(AppException):
status_code = 400 |
saludo = "buenos dias"
for i in range(20):
print(saludo)
| saludo = 'buenos dias'
for i in range(20):
print(saludo) |
class ModuleBase():
# Invalid slot for modular chassis
MODULE_INVALID_SLOT = -1
# Possible card types for modular chassis
MODULE_TYPE_SUPERVISOR = "SUPERVISOR"
MODULE_TYPE_LINE = "LINE-CARD"
MODULE_TYPE_FABRIC = "FABRIC-CARD"
# Possible card status for modular chassis
# Module state is Empty if no module is inserted in the slot
MODULE_STATUS_EMPTY = "Empty"
# Module state if Offline if powered down. This is also the admin-down state.
MODULE_STATUS_OFFLINE = "Offline"
# Module state is Present when it is powered up, but not fully functional.
MODULE_STATUS_PRESENT = "Present"
# Module state is Present when it is powered up, but entered a fault state.
# Module is not able to go Online.
MODULE_STATUS_FAULT = "Fault"
# Module state is Online when fully operational
MODULE_STATUS_ONLINE = "Online"
| class Modulebase:
module_invalid_slot = -1
module_type_supervisor = 'SUPERVISOR'
module_type_line = 'LINE-CARD'
module_type_fabric = 'FABRIC-CARD'
module_status_empty = 'Empty'
module_status_offline = 'Offline'
module_status_present = 'Present'
module_status_fault = 'Fault'
module_status_online = 'Online' |
#!/usr/bin/env python3
class Furnishings:
def __init__(self,room):
self.room = room
class Sofa(Furnishings):
pass
class Bookshelf(Furnishings):
pass
class Bed(Furnishings):
pass
class Table(Furnishings):
pass
def map_the_home(home):
home_map = {}
for furniture in home:
if furniture.__dict__['room'] not in home_map:
home_map[furniture.__dict__['room']] = []
home_map[furniture.__dict__['room']].append(furniture)
return home_map
def counter(home):
for furnish in Furnishings.__subclasses__():
furnish_name = furnish.__name__
furnish_name_count = 0
for furniture in home:
if furniture.__class__.__name__ == furnish_name:
furnish_name_count += 1
print(furnish_name + ':', furnish_name_count) | class Furnishings:
def __init__(self, room):
self.room = room
class Sofa(Furnishings):
pass
class Bookshelf(Furnishings):
pass
class Bed(Furnishings):
pass
class Table(Furnishings):
pass
def map_the_home(home):
home_map = {}
for furniture in home:
if furniture.__dict__['room'] not in home_map:
home_map[furniture.__dict__['room']] = []
home_map[furniture.__dict__['room']].append(furniture)
return home_map
def counter(home):
for furnish in Furnishings.__subclasses__():
furnish_name = furnish.__name__
furnish_name_count = 0
for furniture in home:
if furniture.__class__.__name__ == furnish_name:
furnish_name_count += 1
print(furnish_name + ':', furnish_name_count) |
inputstart = int(input('Enter the beginning of the interval: '))
inputend = int(input('Enter the end of the interval: '))
for i in range(inputstart, inputend): # Iterating over numbers from a given interval
firstnum = 0 # The sum of the divisors of the second number = The first number of the pair
secnum = 0 # The sum of the divisors of the first number = the second number of the pair
# We are looking for divisors of the first number of the pair
for x in range(1, i):
if i % x == 0: # We are looking for divisors
secnum += x # And sum the divisors
# We are looking for divisors of the second number of the pair
for y in range(1, secnum):
if secnum % y == 0: # We are looking for divisors
firstnum += y # And sum the divisors
# We check whether the found numbers satisfy the condition that:
# - the first number of the pair is the sum of the divisors of the second number of the pair
# - the first number of the pair is not the second number of the pair
# - the first number of the pair is the minimum in this pair
if (i == firstnum) & (i != secnum) & (i == min(i, secnum)):
print(firstnum, secnum)
| inputstart = int(input('Enter the beginning of the interval: '))
inputend = int(input('Enter the end of the interval: '))
for i in range(inputstart, inputend):
firstnum = 0
secnum = 0
for x in range(1, i):
if i % x == 0:
secnum += x
for y in range(1, secnum):
if secnum % y == 0:
firstnum += y
if (i == firstnum) & (i != secnum) & (i == min(i, secnum)):
print(firstnum, secnum) |
class QvaPayException(Exception):
def __init__(self, status_code: int, *args: object) -> None:
super().__init__(*args)
self.status_code = status_code
| class Qvapayexception(Exception):
def __init__(self, status_code: int, *args: object) -> None:
super().__init__(*args)
self.status_code = status_code |
def mutable_or_immutable(para):
para += '1'
a = 'a'
b = ['b']
mutable_or_immutable(a)
print(a)
mutable_or_immutable(b)
print(b) | def mutable_or_immutable(para):
para += '1'
a = 'a'
b = ['b']
mutable_or_immutable(a)
print(a)
mutable_or_immutable(b)
print(b) |
#
# PySNMP MIB module HPR-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPR-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:42:27 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)
#
SnaControlPointName, = mibBuilder.importSymbols("APPN-MIB", "SnaControlPointName")
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint")
snanauMIB, = mibBuilder.importSymbols("SNA-NAU-MIB", "snanauMIB")
ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup")
Gauge32, IpAddress, MibIdentifier, Counter64, Integer32, Counter32, ObjectIdentity, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, Bits, iso, NotificationType, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "IpAddress", "MibIdentifier", "Counter64", "Integer32", "Counter32", "ObjectIdentity", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "Bits", "iso", "NotificationType", "TimeTicks")
TimeStamp, TextualConvention, DisplayString, DateAndTime = mibBuilder.importSymbols("SNMPv2-TC", "TimeStamp", "TextualConvention", "DisplayString", "DateAndTime")
hprMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 34, 6))
if mibBuilder.loadTexts: hprMIB.setLastUpdated('970514000000Z')
if mibBuilder.loadTexts: hprMIB.setOrganization('AIW APPN / HPR MIB SIG')
if mibBuilder.loadTexts: hprMIB.setContactInfo(' Bob Clouston Cisco Systems 7025 Kit Creek Road P.O. Box 14987 Research Triangle Park, NC 27709, USA Tel: 1 919 472 2333 E-mail: clouston@cisco.com Bob Moore IBM Corporation 800 Park Offices Drive RHJA/664 P.O. Box 12195 Research Triangle Park, NC 27709, USA Tel: 1 919 254 4436 E-mail: remoore@ralvm6.vnet.ibm.com ')
if mibBuilder.loadTexts: hprMIB.setDescription('This is the MIB module for objects used to manage network devices with HPR capabilities.')
class HprNceTypes(TextualConvention, Bits):
description = 'A bit string identifying the set of functions provided by a network connection endpoint (NCE). The following values are defined: bit 0: control point bit 1: logical unit bit 2: boundary function bit 3: route setup '
status = 'current'
namedValues = NamedValues(("controlPoint", 0), ("logicalUnit", 1), ("boundaryFunction", 2), ("routeSetup", 3))
class HprRtpCounter(TextualConvention, Counter32):
description = 'An object providing statistics for an RTP connection. A Management Station can detect discontinuities in this counter by monitoring the correspondingly indexed hprRtpCounterDisconTime object.'
status = 'current'
hprObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 34, 6, 1))
hprGlobal = MibIdentifier((1, 3, 6, 1, 2, 1, 34, 6, 1, 1))
hprNodeCpName = MibScalar((1, 3, 6, 1, 2, 1, 34, 6, 1, 1, 1), SnaControlPointName()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprNodeCpName.setStatus('current')
if mibBuilder.loadTexts: hprNodeCpName.setDescription('Administratively assigned network name for the APPN node where this HPR implementation resides. If this object has the same value as the appnNodeCpName object in the APPN MIB, then the two objects are referring to the same APPN node.')
hprOperatorPathSwitchSupport = MibScalar((1, 3, 6, 1, 2, 1, 34, 6, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notSupported", 1), ("switchTriggerSupported", 2), ("switchToPathSupported", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprOperatorPathSwitchSupport.setStatus('current')
if mibBuilder.loadTexts: hprOperatorPathSwitchSupport.setDescription("This object indicates an implementation's level of support for an operator-requested path switch. notSupported(1) - the agent does not support operator-requested path switches switchTriggerSupported(2) - the agent supports a 'switch path now' command from an operator, but not a command to switch to a specified path switchToPathSupported(3) - the agent supports both a 'switch path now' command and a command to switch to a specified path. Note that the latter command is not available via this MIB; a system that supports it must do so via other means, such as a local operator interface.")
hprAnrRouting = MibIdentifier((1, 3, 6, 1, 2, 1, 34, 6, 1, 2))
hprAnrsAssigned = MibScalar((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 1), Counter32()).setUnits('ANR labels').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprAnrsAssigned.setStatus('current')
if mibBuilder.loadTexts: hprAnrsAssigned.setDescription('The count of ANR labels assigned by this node since it was last re-initialized. A Management Station can detect discontinuities in this counter by monitoring the appnNodeCounterDisconTime object in the APPN MIB.')
hprAnrCounterState = MibScalar((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notActive", 1), ("active", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hprAnrCounterState.setStatus('current')
if mibBuilder.loadTexts: hprAnrCounterState.setDescription('This object is used for a network management station to turn on/off the counting of ANR packets in the hprAnrRoutingTable. The initial value of this object is an implementation choice. notActive(1) - the counter hprAnrPacketsReceived returns no meaningful value active(2) - the counter hprAnrPacketsReceived is being incremented and is returning meaningful values')
hprAnrCounterStateTime = MibScalar((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 3), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprAnrCounterStateTime.setStatus('current')
if mibBuilder.loadTexts: hprAnrCounterStateTime.setDescription('The time when the hprAnrCounterState object last changed its value. The initial value returned by this object is the time at which the APPN node instrumented with this MIB was last brought up.')
hprAnrRoutingTable = MibTable((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 4), )
if mibBuilder.loadTexts: hprAnrRoutingTable.setStatus('current')
if mibBuilder.loadTexts: hprAnrRoutingTable.setDescription('The ANR Routing table provides a means of correlating an incoming ANR label (i.e., one assigned by this node) with the TG over which a packet containing the label will be forwarded. When the ANR label identifies a local NCE, the hprAnrOutTgDest and hprAnrOutTgNum objects have no meaning. The table also contains an object to count the number of packets received with a given ANR label.')
hprAnrRoutingEntry = MibTableRow((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 4, 1), ).setIndexNames((0, "HPR-MIB", "hprAnrLabel"))
if mibBuilder.loadTexts: hprAnrRoutingEntry.setStatus('current')
if mibBuilder.loadTexts: hprAnrRoutingEntry.setDescription('The ANR label is used to index this table.')
hprAnrLabel = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 4, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 8)))
if mibBuilder.loadTexts: hprAnrLabel.setStatus('current')
if mibBuilder.loadTexts: hprAnrLabel.setDescription('The first ANR label in an incoming packet.')
hprAnrType = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("nce", 1), ("tg", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprAnrType.setStatus('current')
if mibBuilder.loadTexts: hprAnrType.setDescription('An object indicating whether an ANR label assigned by this node identifies a local NCE or a TG on which outgoing packets are forwarded. nce(1) - the ANR label identifies a local NCE. In this case the hprAnrOutTgDest and hprAnrOutTgNum objects have no meaning. tg(2) - the ANR label identifies a TG.')
hprAnrOutTgDest = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 4, 1, 3), DisplayString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(3, 17), ))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprAnrOutTgDest.setStatus('current')
if mibBuilder.loadTexts: hprAnrOutTgDest.setDescription('Destination node for the TG over which packets with this ANR label are forwarded. This is the fully qualified name of an APPN network node or end node, formatted according to the SnaControlPointName textual convention. If the ANR label identifies a local NCE, then this object returns a zero-length string. This object corresponds to the appnLocalTgDest object in the APPN MIB.')
hprAnrOutTgNum = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprAnrOutTgNum.setStatus('current')
if mibBuilder.loadTexts: hprAnrOutTgNum.setDescription('Number of the TG over which packets with this ANR label are forwarded. If the ANR label identifies a local NCE, then this object returns the value 0, since 0 is not a valid TG number for a TG that supports HPR. This object corresponds to the appnLocalTgNum object in the APPN MIB.')
hprAnrPacketsReceived = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 4, 1, 5), Counter32()).setUnits('ANR packets').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprAnrPacketsReceived.setStatus('current')
if mibBuilder.loadTexts: hprAnrPacketsReceived.setDescription('The count of packets received with this ANR label as their first label. A Management Station can detect discontinuities in this counter by monitoring the hprAnrCounterDisconTime object in the same row.')
hprAnrCounterDisconTime = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 4, 1, 6), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprAnrCounterDisconTime.setStatus('current')
if mibBuilder.loadTexts: hprAnrCounterDisconTime.setDescription('The value of the sysUpTime object when the hprAnrPacketsReceived counter for this ANR label last experienced a discontinuity. This will be the more recent of two times: the time at which the ANR label was associated with either an outgoing TG or a local NCE, or the time at which the ANR counters were last turned on or off.')
hprTransportUser = MibIdentifier((1, 3, 6, 1, 2, 1, 34, 6, 1, 3))
hprNceTable = MibTable((1, 3, 6, 1, 2, 1, 34, 6, 1, 3, 1), )
if mibBuilder.loadTexts: hprNceTable.setStatus('current')
if mibBuilder.loadTexts: hprNceTable.setDescription('The Network Connection Endpoint (NCE) table.')
hprNceEntry = MibTableRow((1, 3, 6, 1, 2, 1, 34, 6, 1, 3, 1, 1), ).setIndexNames((0, "HPR-MIB", "hprNceId"))
if mibBuilder.loadTexts: hprNceEntry.setStatus('current')
if mibBuilder.loadTexts: hprNceEntry.setDescription('The NCE ID is used to index this table.')
hprNceId = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 3, 1, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 8)))
if mibBuilder.loadTexts: hprNceId.setStatus('current')
if mibBuilder.loadTexts: hprNceId.setDescription('The Network Connection Endpoint (NCE) ID. NCEs identify Control Points (Cp), Logical Units (Lu), HPR Boundary Functions (Bf) and Route Setup (Rs) Functions. A value for this object can be retrieved from any of the following objects in the APPN MIB: - appnLsCpCpNceId - appnLsRouteNceId - appnLsBfNceId - appnIsInRtpNceId - appnIsRtpNceId In each case this value identifies a row in this table containing information related to that in the APPN MIB.')
hprNceType = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 3, 1, 1, 2), HprNceTypes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprNceType.setStatus('current')
if mibBuilder.loadTexts: hprNceType.setDescription('A bit string identifying the function types provided by this Network Connection Endpoint (NCE).')
hprNceDefault = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 3, 1, 1, 3), HprNceTypes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprNceDefault.setStatus('current')
if mibBuilder.loadTexts: hprNceDefault.setDescription('A bit string identifying the function types for which this Network Connection Endpoint (NCE) is the default NCE. While default NCEs are not explicitly defined in the architecture, some implementations provide them; for such implementations, it is useful to make this information available to a Management Station.')
hprNceInstanceId = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 3, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprNceInstanceId.setStatus('current')
if mibBuilder.loadTexts: hprNceInstanceId.setDescription("The NCE instance identifier (NCEII) identifying the current instance of this NCE. An NCEII is used to denote different instances (IPLs) of an NCE component. Each time an NCE is activated (IPL'd), it acquires a different, unique NCEII.")
hprRtp = MibIdentifier((1, 3, 6, 1, 2, 1, 34, 6, 1, 4))
hprRtpGlobe = MibIdentifier((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 1))
hprRtpGlobeConnSetups = MibScalar((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 1, 1), Counter32()).setUnits('RTP connection setups').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpGlobeConnSetups.setStatus('current')
if mibBuilder.loadTexts: hprRtpGlobeConnSetups.setDescription('The count of RTP connection setups in which this node has participated, as either sender or receiver, since it was last re-initialized. Retries of a setup attempt do not cause the counter to be incremented. A Management Station can detect discontinuities in this counter by monitoring the appnNodeCounterDisconTime object in the APPN MIB.')
hprRtpGlobeCtrState = MibScalar((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notActive", 1), ("active", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hprRtpGlobeCtrState.setStatus('current')
if mibBuilder.loadTexts: hprRtpGlobeCtrState.setDescription('This object allows a network management station to turn the counters in the hprRtpTable on and off. The initial value of this object is an implementation choice. notActive(1) - the counters in the hprRtpTable are returning no meaningful values active(2) - the counters in the hprRtpTable are being incremented and are returning meaningful values')
hprRtpGlobeCtrStateTime = MibScalar((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 1, 3), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpGlobeCtrStateTime.setStatus('current')
if mibBuilder.loadTexts: hprRtpGlobeCtrStateTime.setDescription('The time when the value of the hprRtpGlobeCtrState object last changed. The initial value returned by this object is the time at which the APPN node instrumented with this MIB was last brought up.')
hprRtpTable = MibTable((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2), )
if mibBuilder.loadTexts: hprRtpTable.setStatus('current')
if mibBuilder.loadTexts: hprRtpTable.setDescription('The RTP Connection table')
hprRtpEntry = MibTableRow((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1), ).setIndexNames((0, "HPR-MIB", "hprRtpLocNceId"), (0, "HPR-MIB", "hprRtpLocTcid"))
if mibBuilder.loadTexts: hprRtpEntry.setStatus('current')
if mibBuilder.loadTexts: hprRtpEntry.setDescription('The local NCE ID and local TCID are used to index this table.')
hprRtpLocNceId = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 8)))
if mibBuilder.loadTexts: hprRtpLocNceId.setStatus('current')
if mibBuilder.loadTexts: hprRtpLocNceId.setDescription('The local Network Connection Endpoint (NCE) ID of this RTP connection. NCEs identify CPs, LUs, Boundary Functions (BFs), and Route Setup (RS) components. A value for this object can be retrieved from any of the following objects in the APPN MIB: - appnLsCpCpNceId - appnLsRouteNceId - appnLsBfNceId - appnIsInRtpNceId - appnIsRtpNceId In each case this value identifies a row in this table containing information related to that in the APPN MIB.')
hprRtpLocTcid = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8))
if mibBuilder.loadTexts: hprRtpLocTcid.setStatus('current')
if mibBuilder.loadTexts: hprRtpLocTcid.setDescription('The local TCID of this RTP connection. A value for this object can be retrieved from either the appnIsInRtpTcid object or the appnIsRtpTcid object the APPN MIB; in each case this value identifies a row in this table containing information related to that in the APPN MIB.')
hprRtpRemCpName = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 3), SnaControlPointName()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpRemCpName.setStatus('current')
if mibBuilder.loadTexts: hprRtpRemCpName.setDescription('Administratively assigned network name for the remote node of this RTP connection.')
hprRtpRemNceId = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 8))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpRemNceId.setStatus('current')
if mibBuilder.loadTexts: hprRtpRemNceId.setDescription('The remote Network Connection Endpoint (NCE) of this RTP connection. NCEs identify CPs, LUs, Boundary Functions (BFs), and Route Setup (RS) components.')
hprRtpRemTcid = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpRemTcid.setStatus('current')
if mibBuilder.loadTexts: hprRtpRemTcid.setDescription('The remote TCID of this RTP connection.')
hprRtpPathSwitchTrigger = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ready", 1), ("switchPathNow", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hprRtpPathSwitchTrigger.setStatus('current')
if mibBuilder.loadTexts: hprRtpPathSwitchTrigger.setDescription('Object by which a Management Station can trigger an operator- requested path switch, by setting the value to switchPathNow(2). Setting this object to switchPathNow(2) triggers a path switch even if its previous value was already switchPathNow(2). The value ready(1) is returned on GET operations until a SET has been processed; after that the value received on the most recent SET is returned. This MIB module provides no support for an operator-requested switch to a specified path.')
hprRtpRscv = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpRscv.setStatus('current')
if mibBuilder.loadTexts: hprRtpRscv.setDescription('The forward Route Selection Control Vector for this RTP connection. The format of this vector is described in SNA Formats. The value returned in this object during a path switch is implementation-dependent: it may be the old path, the new path, a zero-length string, or some other valid RSCV string.')
hprRtpTopic = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpTopic.setStatus('current')
if mibBuilder.loadTexts: hprRtpTopic.setDescription('The topic for this RTP connection. This is used to indicate the Class of Service.')
hprRtpState = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 99))).clone(namedValues=NamedValues(("rtpListening", 1), ("rtpCalling", 2), ("rtpConnected", 3), ("rtpPathSwitching", 4), ("rtpDisconnecting", 5), ("other", 99)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpState.setStatus('current')
if mibBuilder.loadTexts: hprRtpState.setDescription("The state of the RTP connection, from the perspective of the local RTP protocol machine: rtpListening - connection open; waiting for other end to call in rtpCalling - connection opened, attempting to call out, have not yet received any data from other end rtpConnected - connection is active; responded to a call-in or received other end's TCID from a call-out attempt rtpPathSwitching - the path switch timer is running; attempting to find a new path for this connection. rtpDisconnecting - no sessions are using this connection; in process of bringing it down other - the connection is not in any of the states listed above.")
hprRtpUpTime = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 10), TimeTicks()).setUnits('1/100ths of a second').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpUpTime.setStatus('current')
if mibBuilder.loadTexts: hprRtpUpTime.setDescription('The length of time the RTP connection has been up, measured in 1/100ths of a second.')
hprRtpLivenessTimer = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 11), Unsigned32()).setUnits('1/100ths of a second').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpLivenessTimer.setStatus('current')
if mibBuilder.loadTexts: hprRtpLivenessTimer.setDescription('The value of the liveness (ALIVE) timer of this RTP connection, in units of 1/100th of a second. When this timer expires and no packet has arrived from the partner since it was last set, packets with Status Request indicators will be sent to see if the RTP connection is still alive.')
hprRtpShortReqTimer = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 12), Unsigned32()).setUnits('1/100ths of a second').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpShortReqTimer.setStatus('current')
if mibBuilder.loadTexts: hprRtpShortReqTimer.setDescription('The value of the RTP SHORT-REQ timer, in units of 1/100 of a second. This timer represents the maximum time that a sender waits for a reply from a receiver.')
hprRtpPathSwTimer = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 13), Unsigned32()).setUnits('1/100ths of a second').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpPathSwTimer.setStatus('current')
if mibBuilder.loadTexts: hprRtpPathSwTimer.setDescription('The length of time that RTP should attempt a path switch for a connection, in units of 1/100th of a second.')
hprRtpLivenessTimeouts = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 14), HprRtpCounter()).setUnits('liveness timeouts').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpLivenessTimeouts.setStatus('current')
if mibBuilder.loadTexts: hprRtpLivenessTimeouts.setDescription('The count of liveness timeouts for this RTP connection.')
hprRtpShortReqTimeouts = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 15), HprRtpCounter()).setUnits('short request timeouts').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpShortReqTimeouts.setStatus('current')
if mibBuilder.loadTexts: hprRtpShortReqTimeouts.setDescription('The count of short request timeouts for this RTP connection.')
hprRtpMaxSendRate = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 16), Gauge32()).setUnits('bytes per second').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpMaxSendRate.setStatus('current')
if mibBuilder.loadTexts: hprRtpMaxSendRate.setDescription("The high-water mark for this RTP connection's send rate, in units of bytes per second. This is the high-water mark for the entire life of the connection, not just the high-water mark for the connection's current path. For more details on this and other parameters related to HPR, see the High Performance Routing Architecture Reference.")
hprRtpMinSendRate = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 17), Gauge32()).setUnits('bytes per second').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpMinSendRate.setStatus('current')
if mibBuilder.loadTexts: hprRtpMinSendRate.setDescription("The low-water mark for this RTP connection's send rate, in units of bytes per second. This is the low-water mark for the entire life of the connection, not just the low-water mark for the connection's current path. For more details on this and other parameters related to HPR, see the High Performance Routing Architecture Reference.")
hprRtpCurSendRate = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 18), Gauge32()).setUnits('bytes per second').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpCurSendRate.setStatus('current')
if mibBuilder.loadTexts: hprRtpCurSendRate.setDescription('The current send rate for this RTP connection, in units of bytes per second. For more details on this and other parameters related to HPR, see the High Performance Routing Architecture Reference.')
hprRtpSmRdTripDelay = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 19), Gauge32()).setUnits('1/1000ths of a second').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpSmRdTripDelay.setStatus('current')
if mibBuilder.loadTexts: hprRtpSmRdTripDelay.setDescription('The smoothed round trip delay for this RTP connection, in units of 1/1000th of a second (ms). For more details on this and other parameters related to HPR, see the High Performance Routing Architecture Reference.')
hprRtpSendPackets = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 20), HprRtpCounter()).setUnits('RTP packets').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpSendPackets.setStatus('current')
if mibBuilder.loadTexts: hprRtpSendPackets.setDescription('The count of packets successfully sent on this RTP connection.')
hprRtpRecvPackets = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 21), HprRtpCounter()).setUnits('RTP packets').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpRecvPackets.setStatus('current')
if mibBuilder.loadTexts: hprRtpRecvPackets.setDescription('The count of packets received on this RTP connection. The counter is incremented only once if duplicate copies of a packet are received.')
hprRtpSendBytes = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 22), HprRtpCounter()).setUnits('bytes').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpSendBytes.setStatus('current')
if mibBuilder.loadTexts: hprRtpSendBytes.setDescription('The count of bytes sent on this RTP connection. Both RTP Transport Header (THDR) bytes and data bytes are included in this count.')
hprRtpRecvBytes = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 23), HprRtpCounter()).setUnits('bytes').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpRecvBytes.setStatus('current')
if mibBuilder.loadTexts: hprRtpRecvBytes.setDescription('The count of bytes received on this RTP connection. Both RTP Transport Header (THDR) bytes and data bytes are included in this count.')
hprRtpRetrPackets = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 24), HprRtpCounter()).setUnits('RTP packets').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpRetrPackets.setStatus('current')
if mibBuilder.loadTexts: hprRtpRetrPackets.setDescription('The count of packets retransmitted on this RTP connection.')
hprRtpPacketsDiscarded = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 25), HprRtpCounter()).setUnits('RTP packets').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpPacketsDiscarded.setStatus('current')
if mibBuilder.loadTexts: hprRtpPacketsDiscarded.setDescription('The count of packets received on this RTP connection and then discarded. A packet may be discarded because it is determined to be a duplicate, or for other reasons.')
hprRtpDetectGaps = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 26), HprRtpCounter()).setUnits('gaps').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpDetectGaps.setStatus('current')
if mibBuilder.loadTexts: hprRtpDetectGaps.setDescription('The count of gaps detected on this RTP connection.')
hprRtpRateReqSends = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 27), HprRtpCounter()).setUnits('rate requests').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpRateReqSends.setStatus('current')
if mibBuilder.loadTexts: hprRtpRateReqSends.setDescription('The count of Rate Requests sent on this RTP connection.')
hprRtpOkErrPathSws = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 28), HprRtpCounter()).setUnits('path switch attempts').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpOkErrPathSws.setStatus('current')
if mibBuilder.loadTexts: hprRtpOkErrPathSws.setDescription('The count of successful path switch attempts for this RTP connection due to errors.')
hprRtpBadErrPathSws = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 29), HprRtpCounter()).setUnits('path switch attempts').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpBadErrPathSws.setStatus('current')
if mibBuilder.loadTexts: hprRtpBadErrPathSws.setDescription('The count of unsuccessful path switches for this RTP connection due to errors.')
hprRtpOkOpPathSws = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 30), HprRtpCounter()).setUnits('path switches').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpOkOpPathSws.setStatus('current')
if mibBuilder.loadTexts: hprRtpOkOpPathSws.setDescription('The count of successful path switches for this RTP connection due to operator requests.')
hprRtpBadOpPathSws = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 31), HprRtpCounter()).setUnits('path switches').setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpBadOpPathSws.setStatus('current')
if mibBuilder.loadTexts: hprRtpBadOpPathSws.setDescription('The count of unsuccessful path switches for this RTP connection due to operator requests. This counter is not incremented by an implementation that does not support operator-requested path switches, even if a Management Station requests such a path switch by setting the hprRtpPathSwitchTrigger object.')
hprRtpCounterDisconTime = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 32), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpCounterDisconTime.setStatus('current')
if mibBuilder.loadTexts: hprRtpCounterDisconTime.setDescription('The value of the sysUpTime object when the counters for this RTP connection last experienced a discontinuity. This will be the more recent of two times: the time at which the connection was established or the time at which the HPR counters were last turned on or off.')
hprRtpStatusTable = MibTable((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3), )
if mibBuilder.loadTexts: hprRtpStatusTable.setStatus('current')
if mibBuilder.loadTexts: hprRtpStatusTable.setDescription('RTP Connection Status Table: This table contains historical information on RTP connections. An entry is created in this table when a path switch is completed, either successfully or unsuccessfully.')
hprRtpStatusEntry = MibTableRow((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1), ).setIndexNames((0, "HPR-MIB", "hprRtpStatusLocNceId"), (0, "HPR-MIB", "hprRtpStatusLocTcid"), (0, "HPR-MIB", "hprRtpStatusIndex"))
if mibBuilder.loadTexts: hprRtpStatusEntry.setStatus('current')
if mibBuilder.loadTexts: hprRtpStatusEntry.setDescription('This table is indexed by local NCE ID, local TCID, and an integer hprRtpStatusIndex. Thus the primary grouping of table rows is by RTP connection, with the multiple entries for a given RTP connection ordered by time.')
hprRtpStatusLocNceId = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 8)))
if mibBuilder.loadTexts: hprRtpStatusLocNceId.setStatus('current')
if mibBuilder.loadTexts: hprRtpStatusLocNceId.setDescription('The local Network Connection Endpoint (NCE) of this RTP connection. NCEs identify CPs, LUs, Boundary Functions (BFs), and Route Setup (RS) components.')
hprRtpStatusLocTcid = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8))
if mibBuilder.loadTexts: hprRtpStatusLocTcid.setStatus('current')
if mibBuilder.loadTexts: hprRtpStatusLocTcid.setDescription('The local TCID of this RTP connection.')
hprRtpStatusIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295)))
if mibBuilder.loadTexts: hprRtpStatusIndex.setStatus('current')
if mibBuilder.loadTexts: hprRtpStatusIndex.setDescription('Table index. This value begins at one and is incremented when a new entry is added to the table. It is an implementation choice whether to run a single counter for all entries in the table, or to run a separate counter for the entries for each RTP connection. In the unlikely event of a wrap, it is assumed that Management Stations will have the ability to order table entries correctly.')
hprRtpStatusStartTime = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 4), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpStatusStartTime.setStatus('current')
if mibBuilder.loadTexts: hprRtpStatusStartTime.setDescription('The time when the path switch began.')
hprRtpStatusEndTime = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 5), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpStatusEndTime.setStatus('current')
if mibBuilder.loadTexts: hprRtpStatusEndTime.setDescription('The time when the path switch was ended, either successfully or unsuccessfully.')
hprRtpStatusRemCpName = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 6), SnaControlPointName()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpStatusRemCpName.setStatus('current')
if mibBuilder.loadTexts: hprRtpStatusRemCpName.setDescription('Administratively assigned network name for the remote node of this RTP connection.')
hprRtpStatusRemNceId = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 8))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpStatusRemNceId.setStatus('current')
if mibBuilder.loadTexts: hprRtpStatusRemNceId.setDescription('The remote Network Connection Endpoint (NCE) of this RTP connection. NCEs identify CPs, LUs, Boundary Functions (BFs), and Route Setup (RS) components.')
hprRtpStatusRemTcid = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpStatusRemTcid.setStatus('current')
if mibBuilder.loadTexts: hprRtpStatusRemTcid.setDescription('The remote TCID of this RTP connection.')
hprRtpStatusNewRscv = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpStatusNewRscv.setStatus('current')
if mibBuilder.loadTexts: hprRtpStatusNewRscv.setDescription('The new Route Selection Control Vector for this RTP connection. A zero-length string indicates that no value is available, perhaps because the implementation does not save RSCVs.')
hprRtpStatusOldRscv = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpStatusOldRscv.setStatus('current')
if mibBuilder.loadTexts: hprRtpStatusOldRscv.setDescription('The old Route Selection Control Vector for this RTP connection. A zero-length string indicates that no value is available, perhaps because the implementation does not save RSCVs.')
hprRtpStatusCause = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("rtpConnFail", 2), ("locLinkFail", 3), ("remLinkFail", 4), ("operRequest", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpStatusCause.setStatus('current')
if mibBuilder.loadTexts: hprRtpStatusCause.setDescription('The reason for the path switch: other(1) - Reason other than those listed below, rtpConnFail(2) - RTP connection failure detected, locLinkFail(3) - Local link failure, remLinkFail(4) - Remote link failure (learned from TDUs), operRequest(5) - Operator requested path switch. ')
hprRtpStatusLastAttemptResult = MibTableColumn((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("successful", 1), ("initiatorMoving", 2), ("directorySearchFailed", 3), ("rscvCalculationFailed", 4), ("negativeRouteSetupReply", 5), ("backoutRouteSetupReply", 6), ("timeoutDuringFirstAttempt", 7), ("otherUnsuccessful", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hprRtpStatusLastAttemptResult.setStatus('current')
if mibBuilder.loadTexts: hprRtpStatusLastAttemptResult.setDescription("The result of the last completed path switch attempt. If the path switch is aborted in the middle of a path switch attempt because the path switch timer expires, the result of the previous path switch attempt is reported. The values are defined as follows: successful(1) - The final path switch attempt was successful. initiatorMoving(2) - The final path switch attempt failed because the initiator is mobile, and there was no active link out of this node. directorySearchFailed(3) - The final path switch attempt failed because a directory search for the destination node's CP name failed. rscvCalculationFailed(4) - The final path switch attempt failed because an RSCV to the node containing the remote RTP endpoint could not be calculated. negativeRouteSetupReply(5) - The final path switch attempt failed because route setup failed for the new path. backoutRouteSetupReply(6) - The final path switch attempt failed because the remote RTP endpoint refused to continue the RTP connection. timeoutDuringFirstAttempt(7) - The path switch timer expired during the first path switch attempt. otherUnsuccessful(8) - The final path switch attempt failed for a reason other than those listed above.")
hprConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 34, 6, 2))
hprCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 34, 6, 2, 1))
hprGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 34, 6, 2, 2))
hprCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 34, 6, 2, 1, 1)).setObjects(("HPR-MIB", "hprGlobalConfGroup"), ("HPR-MIB", "hprAnrRoutingConfGroup"), ("HPR-MIB", "hprTransportUserConfGroup"), ("HPR-MIB", "hprRtpConfGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hprCompliance = hprCompliance.setStatus('current')
if mibBuilder.loadTexts: hprCompliance.setDescription('The compliance statement for the SNMPv2 entities that implement the HPR MIB.')
hprGlobalConfGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 34, 6, 2, 2, 1)).setObjects(("HPR-MIB", "hprNodeCpName"), ("HPR-MIB", "hprOperatorPathSwitchSupport"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hprGlobalConfGroup = hprGlobalConfGroup.setStatus('current')
if mibBuilder.loadTexts: hprGlobalConfGroup.setDescription('A collection of objects providing the instrumentation of HPR general information and capabilities.')
hprAnrRoutingConfGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 34, 6, 2, 2, 2)).setObjects(("HPR-MIB", "hprAnrsAssigned"), ("HPR-MIB", "hprAnrCounterState"), ("HPR-MIB", "hprAnrCounterStateTime"), ("HPR-MIB", "hprAnrType"), ("HPR-MIB", "hprAnrOutTgDest"), ("HPR-MIB", "hprAnrOutTgNum"), ("HPR-MIB", "hprAnrPacketsReceived"), ("HPR-MIB", "hprAnrCounterDisconTime"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hprAnrRoutingConfGroup = hprAnrRoutingConfGroup.setStatus('current')
if mibBuilder.loadTexts: hprAnrRoutingConfGroup.setDescription("A collection of objects providing instrumentation for the node's ANR routing.")
hprTransportUserConfGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 34, 6, 2, 2, 3)).setObjects(("HPR-MIB", "hprNceType"), ("HPR-MIB", "hprNceDefault"), ("HPR-MIB", "hprNceInstanceId"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hprTransportUserConfGroup = hprTransportUserConfGroup.setStatus('current')
if mibBuilder.loadTexts: hprTransportUserConfGroup.setDescription('A collection of objects providing information on the users of the HPR transport known to the node.')
hprRtpConfGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 34, 6, 2, 2, 4)).setObjects(("HPR-MIB", "hprRtpGlobeConnSetups"), ("HPR-MIB", "hprRtpGlobeCtrState"), ("HPR-MIB", "hprRtpGlobeCtrStateTime"), ("HPR-MIB", "hprRtpRemCpName"), ("HPR-MIB", "hprRtpRemNceId"), ("HPR-MIB", "hprRtpRemTcid"), ("HPR-MIB", "hprRtpPathSwitchTrigger"), ("HPR-MIB", "hprRtpRscv"), ("HPR-MIB", "hprRtpTopic"), ("HPR-MIB", "hprRtpState"), ("HPR-MIB", "hprRtpUpTime"), ("HPR-MIB", "hprRtpLivenessTimer"), ("HPR-MIB", "hprRtpShortReqTimer"), ("HPR-MIB", "hprRtpPathSwTimer"), ("HPR-MIB", "hprRtpLivenessTimeouts"), ("HPR-MIB", "hprRtpShortReqTimeouts"), ("HPR-MIB", "hprRtpMaxSendRate"), ("HPR-MIB", "hprRtpMinSendRate"), ("HPR-MIB", "hprRtpCurSendRate"), ("HPR-MIB", "hprRtpSmRdTripDelay"), ("HPR-MIB", "hprRtpSendPackets"), ("HPR-MIB", "hprRtpRecvPackets"), ("HPR-MIB", "hprRtpSendBytes"), ("HPR-MIB", "hprRtpRecvBytes"), ("HPR-MIB", "hprRtpRetrPackets"), ("HPR-MIB", "hprRtpPacketsDiscarded"), ("HPR-MIB", "hprRtpDetectGaps"), ("HPR-MIB", "hprRtpRateReqSends"), ("HPR-MIB", "hprRtpOkErrPathSws"), ("HPR-MIB", "hprRtpBadErrPathSws"), ("HPR-MIB", "hprRtpOkOpPathSws"), ("HPR-MIB", "hprRtpBadOpPathSws"), ("HPR-MIB", "hprRtpCounterDisconTime"), ("HPR-MIB", "hprRtpStatusStartTime"), ("HPR-MIB", "hprRtpStatusEndTime"), ("HPR-MIB", "hprRtpStatusRemNceId"), ("HPR-MIB", "hprRtpStatusRemTcid"), ("HPR-MIB", "hprRtpStatusRemCpName"), ("HPR-MIB", "hprRtpStatusNewRscv"), ("HPR-MIB", "hprRtpStatusOldRscv"), ("HPR-MIB", "hprRtpStatusCause"), ("HPR-MIB", "hprRtpStatusLastAttemptResult"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hprRtpConfGroup = hprRtpConfGroup.setStatus('current')
if mibBuilder.loadTexts: hprRtpConfGroup.setDescription('A collection of objects providing the instrumentation for RTP connection end points.')
mibBuilder.exportSymbols("HPR-MIB", HprNceTypes=HprNceTypes, hprRtpGlobe=hprRtpGlobe, hprNodeCpName=hprNodeCpName, hprRtpMinSendRate=hprRtpMinSendRate, hprRtpPacketsDiscarded=hprRtpPacketsDiscarded, hprAnrRoutingEntry=hprAnrRoutingEntry, hprRtpRetrPackets=hprRtpRetrPackets, hprRtpStatusNewRscv=hprRtpStatusNewRscv, hprRtpRscv=hprRtpRscv, hprRtpDetectGaps=hprRtpDetectGaps, hprAnrRouting=hprAnrRouting, hprRtpGlobeCtrStateTime=hprRtpGlobeCtrStateTime, hprAnrPacketsReceived=hprAnrPacketsReceived, hprRtpStatusStartTime=hprRtpStatusStartTime, hprAnrCounterStateTime=hprAnrCounterStateTime, hprAnrRoutingTable=hprAnrRoutingTable, hprNceType=hprNceType, HprRtpCounter=HprRtpCounter, hprRtpUpTime=hprRtpUpTime, hprNceTable=hprNceTable, hprRtpStatusLocTcid=hprRtpStatusLocTcid, hprRtpRemCpName=hprRtpRemCpName, hprAnrsAssigned=hprAnrsAssigned, hprRtpLocNceId=hprRtpLocNceId, hprNceEntry=hprNceEntry, hprRtpCounterDisconTime=hprRtpCounterDisconTime, hprRtpLocTcid=hprRtpLocTcid, hprRtpLivenessTimeouts=hprRtpLivenessTimeouts, hprRtpStatusEndTime=hprRtpStatusEndTime, hprAnrType=hprAnrType, hprRtpEntry=hprRtpEntry, hprAnrOutTgDest=hprAnrOutTgDest, hprRtpCurSendRate=hprRtpCurSendRate, hprNceId=hprNceId, hprOperatorPathSwitchSupport=hprOperatorPathSwitchSupport, hprRtpRateReqSends=hprRtpRateReqSends, hprRtpPathSwitchTrigger=hprRtpPathSwitchTrigger, hprGroups=hprGroups, hprAnrRoutingConfGroup=hprAnrRoutingConfGroup, hprRtpRemNceId=hprRtpRemNceId, hprNceInstanceId=hprNceInstanceId, hprRtpStatusRemCpName=hprRtpStatusRemCpName, hprRtpGlobeConnSetups=hprRtpGlobeConnSetups, hprRtpStatusOldRscv=hprRtpStatusOldRscv, hprTransportUserConfGroup=hprTransportUserConfGroup, hprRtpMaxSendRate=hprRtpMaxSendRate, hprRtpOkErrPathSws=hprRtpOkErrPathSws, hprRtpConfGroup=hprRtpConfGroup, hprRtpTopic=hprRtpTopic, hprRtpStatusLastAttemptResult=hprRtpStatusLastAttemptResult, hprAnrCounterState=hprAnrCounterState, hprRtpSendBytes=hprRtpSendBytes, hprRtpSmRdTripDelay=hprRtpSmRdTripDelay, hprRtpGlobeCtrState=hprRtpGlobeCtrState, hprTransportUser=hprTransportUser, hprRtpTable=hprRtpTable, hprRtpState=hprRtpState, hprAnrCounterDisconTime=hprAnrCounterDisconTime, hprRtpRecvPackets=hprRtpRecvPackets, hprRtpRemTcid=hprRtpRemTcid, hprObjects=hprObjects, hprAnrLabel=hprAnrLabel, hprMIB=hprMIB, hprRtpStatusLocNceId=hprRtpStatusLocNceId, hprRtpBadOpPathSws=hprRtpBadOpPathSws, hprRtpStatusRemNceId=hprRtpStatusRemNceId, hprRtpStatusIndex=hprRtpStatusIndex, hprRtpPathSwTimer=hprRtpPathSwTimer, hprRtp=hprRtp, hprRtpStatusEntry=hprRtpStatusEntry, hprRtpStatusTable=hprRtpStatusTable, hprRtpOkOpPathSws=hprRtpOkOpPathSws, hprRtpLivenessTimer=hprRtpLivenessTimer, hprRtpRecvBytes=hprRtpRecvBytes, hprAnrOutTgNum=hprAnrOutTgNum, hprRtpStatusCause=hprRtpStatusCause, hprRtpStatusRemTcid=hprRtpStatusRemTcid, hprCompliances=hprCompliances, hprCompliance=hprCompliance, hprRtpShortReqTimeouts=hprRtpShortReqTimeouts, hprGlobalConfGroup=hprGlobalConfGroup, PYSNMP_MODULE_ID=hprMIB, hprConformance=hprConformance, hprNceDefault=hprNceDefault, hprRtpShortReqTimer=hprRtpShortReqTimer, hprRtpSendPackets=hprRtpSendPackets, hprGlobal=hprGlobal, hprRtpBadErrPathSws=hprRtpBadErrPathSws)
| (sna_control_point_name,) = mibBuilder.importSymbols('APPN-MIB', 'SnaControlPointName')
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, value_range_constraint, constraints_union, single_value_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueSizeConstraint')
(snanau_mib,) = mibBuilder.importSymbols('SNA-NAU-MIB', 'snanauMIB')
(module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup')
(gauge32, ip_address, mib_identifier, counter64, integer32, counter32, object_identity, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, bits, iso, notification_type, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'IpAddress', 'MibIdentifier', 'Counter64', 'Integer32', 'Counter32', 'ObjectIdentity', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'Bits', 'iso', 'NotificationType', 'TimeTicks')
(time_stamp, textual_convention, display_string, date_and_time) = mibBuilder.importSymbols('SNMPv2-TC', 'TimeStamp', 'TextualConvention', 'DisplayString', 'DateAndTime')
hpr_mib = module_identity((1, 3, 6, 1, 2, 1, 34, 6))
if mibBuilder.loadTexts:
hprMIB.setLastUpdated('970514000000Z')
if mibBuilder.loadTexts:
hprMIB.setOrganization('AIW APPN / HPR MIB SIG')
if mibBuilder.loadTexts:
hprMIB.setContactInfo(' Bob Clouston Cisco Systems 7025 Kit Creek Road P.O. Box 14987 Research Triangle Park, NC 27709, USA Tel: 1 919 472 2333 E-mail: clouston@cisco.com Bob Moore IBM Corporation 800 Park Offices Drive RHJA/664 P.O. Box 12195 Research Triangle Park, NC 27709, USA Tel: 1 919 254 4436 E-mail: remoore@ralvm6.vnet.ibm.com ')
if mibBuilder.loadTexts:
hprMIB.setDescription('This is the MIB module for objects used to manage network devices with HPR capabilities.')
class Hprncetypes(TextualConvention, Bits):
description = 'A bit string identifying the set of functions provided by a network connection endpoint (NCE). The following values are defined: bit 0: control point bit 1: logical unit bit 2: boundary function bit 3: route setup '
status = 'current'
named_values = named_values(('controlPoint', 0), ('logicalUnit', 1), ('boundaryFunction', 2), ('routeSetup', 3))
class Hprrtpcounter(TextualConvention, Counter32):
description = 'An object providing statistics for an RTP connection. A Management Station can detect discontinuities in this counter by monitoring the correspondingly indexed hprRtpCounterDisconTime object.'
status = 'current'
hpr_objects = mib_identifier((1, 3, 6, 1, 2, 1, 34, 6, 1))
hpr_global = mib_identifier((1, 3, 6, 1, 2, 1, 34, 6, 1, 1))
hpr_node_cp_name = mib_scalar((1, 3, 6, 1, 2, 1, 34, 6, 1, 1, 1), sna_control_point_name()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprNodeCpName.setStatus('current')
if mibBuilder.loadTexts:
hprNodeCpName.setDescription('Administratively assigned network name for the APPN node where this HPR implementation resides. If this object has the same value as the appnNodeCpName object in the APPN MIB, then the two objects are referring to the same APPN node.')
hpr_operator_path_switch_support = mib_scalar((1, 3, 6, 1, 2, 1, 34, 6, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notSupported', 1), ('switchTriggerSupported', 2), ('switchToPathSupported', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprOperatorPathSwitchSupport.setStatus('current')
if mibBuilder.loadTexts:
hprOperatorPathSwitchSupport.setDescription("This object indicates an implementation's level of support for an operator-requested path switch. notSupported(1) - the agent does not support operator-requested path switches switchTriggerSupported(2) - the agent supports a 'switch path now' command from an operator, but not a command to switch to a specified path switchToPathSupported(3) - the agent supports both a 'switch path now' command and a command to switch to a specified path. Note that the latter command is not available via this MIB; a system that supports it must do so via other means, such as a local operator interface.")
hpr_anr_routing = mib_identifier((1, 3, 6, 1, 2, 1, 34, 6, 1, 2))
hpr_anrs_assigned = mib_scalar((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 1), counter32()).setUnits('ANR labels').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprAnrsAssigned.setStatus('current')
if mibBuilder.loadTexts:
hprAnrsAssigned.setDescription('The count of ANR labels assigned by this node since it was last re-initialized. A Management Station can detect discontinuities in this counter by monitoring the appnNodeCounterDisconTime object in the APPN MIB.')
hpr_anr_counter_state = mib_scalar((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notActive', 1), ('active', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hprAnrCounterState.setStatus('current')
if mibBuilder.loadTexts:
hprAnrCounterState.setDescription('This object is used for a network management station to turn on/off the counting of ANR packets in the hprAnrRoutingTable. The initial value of this object is an implementation choice. notActive(1) - the counter hprAnrPacketsReceived returns no meaningful value active(2) - the counter hprAnrPacketsReceived is being incremented and is returning meaningful values')
hpr_anr_counter_state_time = mib_scalar((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 3), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprAnrCounterStateTime.setStatus('current')
if mibBuilder.loadTexts:
hprAnrCounterStateTime.setDescription('The time when the hprAnrCounterState object last changed its value. The initial value returned by this object is the time at which the APPN node instrumented with this MIB was last brought up.')
hpr_anr_routing_table = mib_table((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 4))
if mibBuilder.loadTexts:
hprAnrRoutingTable.setStatus('current')
if mibBuilder.loadTexts:
hprAnrRoutingTable.setDescription('The ANR Routing table provides a means of correlating an incoming ANR label (i.e., one assigned by this node) with the TG over which a packet containing the label will be forwarded. When the ANR label identifies a local NCE, the hprAnrOutTgDest and hprAnrOutTgNum objects have no meaning. The table also contains an object to count the number of packets received with a given ANR label.')
hpr_anr_routing_entry = mib_table_row((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 4, 1)).setIndexNames((0, 'HPR-MIB', 'hprAnrLabel'))
if mibBuilder.loadTexts:
hprAnrRoutingEntry.setStatus('current')
if mibBuilder.loadTexts:
hprAnrRoutingEntry.setDescription('The ANR label is used to index this table.')
hpr_anr_label = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 4, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(1, 8)))
if mibBuilder.loadTexts:
hprAnrLabel.setStatus('current')
if mibBuilder.loadTexts:
hprAnrLabel.setDescription('The first ANR label in an incoming packet.')
hpr_anr_type = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('nce', 1), ('tg', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprAnrType.setStatus('current')
if mibBuilder.loadTexts:
hprAnrType.setDescription('An object indicating whether an ANR label assigned by this node identifies a local NCE or a TG on which outgoing packets are forwarded. nce(1) - the ANR label identifies a local NCE. In this case the hprAnrOutTgDest and hprAnrOutTgNum objects have no meaning. tg(2) - the ANR label identifies a TG.')
hpr_anr_out_tg_dest = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 4, 1, 3), display_string().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(3, 17)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprAnrOutTgDest.setStatus('current')
if mibBuilder.loadTexts:
hprAnrOutTgDest.setDescription('Destination node for the TG over which packets with this ANR label are forwarded. This is the fully qualified name of an APPN network node or end node, formatted according to the SnaControlPointName textual convention. If the ANR label identifies a local NCE, then this object returns a zero-length string. This object corresponds to the appnLocalTgDest object in the APPN MIB.')
hpr_anr_out_tg_num = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprAnrOutTgNum.setStatus('current')
if mibBuilder.loadTexts:
hprAnrOutTgNum.setDescription('Number of the TG over which packets with this ANR label are forwarded. If the ANR label identifies a local NCE, then this object returns the value 0, since 0 is not a valid TG number for a TG that supports HPR. This object corresponds to the appnLocalTgNum object in the APPN MIB.')
hpr_anr_packets_received = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 4, 1, 5), counter32()).setUnits('ANR packets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprAnrPacketsReceived.setStatus('current')
if mibBuilder.loadTexts:
hprAnrPacketsReceived.setDescription('The count of packets received with this ANR label as their first label. A Management Station can detect discontinuities in this counter by monitoring the hprAnrCounterDisconTime object in the same row.')
hpr_anr_counter_discon_time = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 2, 4, 1, 6), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprAnrCounterDisconTime.setStatus('current')
if mibBuilder.loadTexts:
hprAnrCounterDisconTime.setDescription('The value of the sysUpTime object when the hprAnrPacketsReceived counter for this ANR label last experienced a discontinuity. This will be the more recent of two times: the time at which the ANR label was associated with either an outgoing TG or a local NCE, or the time at which the ANR counters were last turned on or off.')
hpr_transport_user = mib_identifier((1, 3, 6, 1, 2, 1, 34, 6, 1, 3))
hpr_nce_table = mib_table((1, 3, 6, 1, 2, 1, 34, 6, 1, 3, 1))
if mibBuilder.loadTexts:
hprNceTable.setStatus('current')
if mibBuilder.loadTexts:
hprNceTable.setDescription('The Network Connection Endpoint (NCE) table.')
hpr_nce_entry = mib_table_row((1, 3, 6, 1, 2, 1, 34, 6, 1, 3, 1, 1)).setIndexNames((0, 'HPR-MIB', 'hprNceId'))
if mibBuilder.loadTexts:
hprNceEntry.setStatus('current')
if mibBuilder.loadTexts:
hprNceEntry.setDescription('The NCE ID is used to index this table.')
hpr_nce_id = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 3, 1, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(1, 8)))
if mibBuilder.loadTexts:
hprNceId.setStatus('current')
if mibBuilder.loadTexts:
hprNceId.setDescription('The Network Connection Endpoint (NCE) ID. NCEs identify Control Points (Cp), Logical Units (Lu), HPR Boundary Functions (Bf) and Route Setup (Rs) Functions. A value for this object can be retrieved from any of the following objects in the APPN MIB: - appnLsCpCpNceId - appnLsRouteNceId - appnLsBfNceId - appnIsInRtpNceId - appnIsRtpNceId In each case this value identifies a row in this table containing information related to that in the APPN MIB.')
hpr_nce_type = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 3, 1, 1, 2), hpr_nce_types()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprNceType.setStatus('current')
if mibBuilder.loadTexts:
hprNceType.setDescription('A bit string identifying the function types provided by this Network Connection Endpoint (NCE).')
hpr_nce_default = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 3, 1, 1, 3), hpr_nce_types()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprNceDefault.setStatus('current')
if mibBuilder.loadTexts:
hprNceDefault.setDescription('A bit string identifying the function types for which this Network Connection Endpoint (NCE) is the default NCE. While default NCEs are not explicitly defined in the architecture, some implementations provide them; for such implementations, it is useful to make this information available to a Management Station.')
hpr_nce_instance_id = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 3, 1, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(4, 4)).setFixedLength(4)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprNceInstanceId.setStatus('current')
if mibBuilder.loadTexts:
hprNceInstanceId.setDescription("The NCE instance identifier (NCEII) identifying the current instance of this NCE. An NCEII is used to denote different instances (IPLs) of an NCE component. Each time an NCE is activated (IPL'd), it acquires a different, unique NCEII.")
hpr_rtp = mib_identifier((1, 3, 6, 1, 2, 1, 34, 6, 1, 4))
hpr_rtp_globe = mib_identifier((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 1))
hpr_rtp_globe_conn_setups = mib_scalar((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 1, 1), counter32()).setUnits('RTP connection setups').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpGlobeConnSetups.setStatus('current')
if mibBuilder.loadTexts:
hprRtpGlobeConnSetups.setDescription('The count of RTP connection setups in which this node has participated, as either sender or receiver, since it was last re-initialized. Retries of a setup attempt do not cause the counter to be incremented. A Management Station can detect discontinuities in this counter by monitoring the appnNodeCounterDisconTime object in the APPN MIB.')
hpr_rtp_globe_ctr_state = mib_scalar((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notActive', 1), ('active', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hprRtpGlobeCtrState.setStatus('current')
if mibBuilder.loadTexts:
hprRtpGlobeCtrState.setDescription('This object allows a network management station to turn the counters in the hprRtpTable on and off. The initial value of this object is an implementation choice. notActive(1) - the counters in the hprRtpTable are returning no meaningful values active(2) - the counters in the hprRtpTable are being incremented and are returning meaningful values')
hpr_rtp_globe_ctr_state_time = mib_scalar((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 1, 3), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpGlobeCtrStateTime.setStatus('current')
if mibBuilder.loadTexts:
hprRtpGlobeCtrStateTime.setDescription('The time when the value of the hprRtpGlobeCtrState object last changed. The initial value returned by this object is the time at which the APPN node instrumented with this MIB was last brought up.')
hpr_rtp_table = mib_table((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2))
if mibBuilder.loadTexts:
hprRtpTable.setStatus('current')
if mibBuilder.loadTexts:
hprRtpTable.setDescription('The RTP Connection table')
hpr_rtp_entry = mib_table_row((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1)).setIndexNames((0, 'HPR-MIB', 'hprRtpLocNceId'), (0, 'HPR-MIB', 'hprRtpLocTcid'))
if mibBuilder.loadTexts:
hprRtpEntry.setStatus('current')
if mibBuilder.loadTexts:
hprRtpEntry.setDescription('The local NCE ID and local TCID are used to index this table.')
hpr_rtp_loc_nce_id = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(1, 8)))
if mibBuilder.loadTexts:
hprRtpLocNceId.setStatus('current')
if mibBuilder.loadTexts:
hprRtpLocNceId.setDescription('The local Network Connection Endpoint (NCE) ID of this RTP connection. NCEs identify CPs, LUs, Boundary Functions (BFs), and Route Setup (RS) components. A value for this object can be retrieved from any of the following objects in the APPN MIB: - appnLsCpCpNceId - appnLsRouteNceId - appnLsBfNceId - appnIsInRtpNceId - appnIsRtpNceId In each case this value identifies a row in this table containing information related to that in the APPN MIB.')
hpr_rtp_loc_tcid = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8))
if mibBuilder.loadTexts:
hprRtpLocTcid.setStatus('current')
if mibBuilder.loadTexts:
hprRtpLocTcid.setDescription('The local TCID of this RTP connection. A value for this object can be retrieved from either the appnIsInRtpTcid object or the appnIsRtpTcid object the APPN MIB; in each case this value identifies a row in this table containing information related to that in the APPN MIB.')
hpr_rtp_rem_cp_name = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 3), sna_control_point_name()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpRemCpName.setStatus('current')
if mibBuilder.loadTexts:
hprRtpRemCpName.setDescription('Administratively assigned network name for the remote node of this RTP connection.')
hpr_rtp_rem_nce_id = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(1, 8))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpRemNceId.setStatus('current')
if mibBuilder.loadTexts:
hprRtpRemNceId.setDescription('The remote Network Connection Endpoint (NCE) of this RTP connection. NCEs identify CPs, LUs, Boundary Functions (BFs), and Route Setup (RS) components.')
hpr_rtp_rem_tcid = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpRemTcid.setStatus('current')
if mibBuilder.loadTexts:
hprRtpRemTcid.setDescription('The remote TCID of this RTP connection.')
hpr_rtp_path_switch_trigger = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ready', 1), ('switchPathNow', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hprRtpPathSwitchTrigger.setStatus('current')
if mibBuilder.loadTexts:
hprRtpPathSwitchTrigger.setDescription('Object by which a Management Station can trigger an operator- requested path switch, by setting the value to switchPathNow(2). Setting this object to switchPathNow(2) triggers a path switch even if its previous value was already switchPathNow(2). The value ready(1) is returned on GET operations until a SET has been processed; after that the value received on the most recent SET is returned. This MIB module provides no support for an operator-requested switch to a specified path.')
hpr_rtp_rscv = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpRscv.setStatus('current')
if mibBuilder.loadTexts:
hprRtpRscv.setDescription('The forward Route Selection Control Vector for this RTP connection. The format of this vector is described in SNA Formats. The value returned in this object during a path switch is implementation-dependent: it may be the old path, the new path, a zero-length string, or some other valid RSCV string.')
hpr_rtp_topic = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpTopic.setStatus('current')
if mibBuilder.loadTexts:
hprRtpTopic.setDescription('The topic for this RTP connection. This is used to indicate the Class of Service.')
hpr_rtp_state = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 99))).clone(namedValues=named_values(('rtpListening', 1), ('rtpCalling', 2), ('rtpConnected', 3), ('rtpPathSwitching', 4), ('rtpDisconnecting', 5), ('other', 99)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpState.setStatus('current')
if mibBuilder.loadTexts:
hprRtpState.setDescription("The state of the RTP connection, from the perspective of the local RTP protocol machine: rtpListening - connection open; waiting for other end to call in rtpCalling - connection opened, attempting to call out, have not yet received any data from other end rtpConnected - connection is active; responded to a call-in or received other end's TCID from a call-out attempt rtpPathSwitching - the path switch timer is running; attempting to find a new path for this connection. rtpDisconnecting - no sessions are using this connection; in process of bringing it down other - the connection is not in any of the states listed above.")
hpr_rtp_up_time = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 10), time_ticks()).setUnits('1/100ths of a second').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpUpTime.setStatus('current')
if mibBuilder.loadTexts:
hprRtpUpTime.setDescription('The length of time the RTP connection has been up, measured in 1/100ths of a second.')
hpr_rtp_liveness_timer = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 11), unsigned32()).setUnits('1/100ths of a second').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpLivenessTimer.setStatus('current')
if mibBuilder.loadTexts:
hprRtpLivenessTimer.setDescription('The value of the liveness (ALIVE) timer of this RTP connection, in units of 1/100th of a second. When this timer expires and no packet has arrived from the partner since it was last set, packets with Status Request indicators will be sent to see if the RTP connection is still alive.')
hpr_rtp_short_req_timer = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 12), unsigned32()).setUnits('1/100ths of a second').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpShortReqTimer.setStatus('current')
if mibBuilder.loadTexts:
hprRtpShortReqTimer.setDescription('The value of the RTP SHORT-REQ timer, in units of 1/100 of a second. This timer represents the maximum time that a sender waits for a reply from a receiver.')
hpr_rtp_path_sw_timer = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 13), unsigned32()).setUnits('1/100ths of a second').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpPathSwTimer.setStatus('current')
if mibBuilder.loadTexts:
hprRtpPathSwTimer.setDescription('The length of time that RTP should attempt a path switch for a connection, in units of 1/100th of a second.')
hpr_rtp_liveness_timeouts = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 14), hpr_rtp_counter()).setUnits('liveness timeouts').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpLivenessTimeouts.setStatus('current')
if mibBuilder.loadTexts:
hprRtpLivenessTimeouts.setDescription('The count of liveness timeouts for this RTP connection.')
hpr_rtp_short_req_timeouts = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 15), hpr_rtp_counter()).setUnits('short request timeouts').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpShortReqTimeouts.setStatus('current')
if mibBuilder.loadTexts:
hprRtpShortReqTimeouts.setDescription('The count of short request timeouts for this RTP connection.')
hpr_rtp_max_send_rate = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 16), gauge32()).setUnits('bytes per second').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpMaxSendRate.setStatus('current')
if mibBuilder.loadTexts:
hprRtpMaxSendRate.setDescription("The high-water mark for this RTP connection's send rate, in units of bytes per second. This is the high-water mark for the entire life of the connection, not just the high-water mark for the connection's current path. For more details on this and other parameters related to HPR, see the High Performance Routing Architecture Reference.")
hpr_rtp_min_send_rate = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 17), gauge32()).setUnits('bytes per second').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpMinSendRate.setStatus('current')
if mibBuilder.loadTexts:
hprRtpMinSendRate.setDescription("The low-water mark for this RTP connection's send rate, in units of bytes per second. This is the low-water mark for the entire life of the connection, not just the low-water mark for the connection's current path. For more details on this and other parameters related to HPR, see the High Performance Routing Architecture Reference.")
hpr_rtp_cur_send_rate = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 18), gauge32()).setUnits('bytes per second').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpCurSendRate.setStatus('current')
if mibBuilder.loadTexts:
hprRtpCurSendRate.setDescription('The current send rate for this RTP connection, in units of bytes per second. For more details on this and other parameters related to HPR, see the High Performance Routing Architecture Reference.')
hpr_rtp_sm_rd_trip_delay = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 19), gauge32()).setUnits('1/1000ths of a second').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpSmRdTripDelay.setStatus('current')
if mibBuilder.loadTexts:
hprRtpSmRdTripDelay.setDescription('The smoothed round trip delay for this RTP connection, in units of 1/1000th of a second (ms). For more details on this and other parameters related to HPR, see the High Performance Routing Architecture Reference.')
hpr_rtp_send_packets = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 20), hpr_rtp_counter()).setUnits('RTP packets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpSendPackets.setStatus('current')
if mibBuilder.loadTexts:
hprRtpSendPackets.setDescription('The count of packets successfully sent on this RTP connection.')
hpr_rtp_recv_packets = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 21), hpr_rtp_counter()).setUnits('RTP packets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpRecvPackets.setStatus('current')
if mibBuilder.loadTexts:
hprRtpRecvPackets.setDescription('The count of packets received on this RTP connection. The counter is incremented only once if duplicate copies of a packet are received.')
hpr_rtp_send_bytes = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 22), hpr_rtp_counter()).setUnits('bytes').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpSendBytes.setStatus('current')
if mibBuilder.loadTexts:
hprRtpSendBytes.setDescription('The count of bytes sent on this RTP connection. Both RTP Transport Header (THDR) bytes and data bytes are included in this count.')
hpr_rtp_recv_bytes = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 23), hpr_rtp_counter()).setUnits('bytes').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpRecvBytes.setStatus('current')
if mibBuilder.loadTexts:
hprRtpRecvBytes.setDescription('The count of bytes received on this RTP connection. Both RTP Transport Header (THDR) bytes and data bytes are included in this count.')
hpr_rtp_retr_packets = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 24), hpr_rtp_counter()).setUnits('RTP packets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpRetrPackets.setStatus('current')
if mibBuilder.loadTexts:
hprRtpRetrPackets.setDescription('The count of packets retransmitted on this RTP connection.')
hpr_rtp_packets_discarded = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 25), hpr_rtp_counter()).setUnits('RTP packets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpPacketsDiscarded.setStatus('current')
if mibBuilder.loadTexts:
hprRtpPacketsDiscarded.setDescription('The count of packets received on this RTP connection and then discarded. A packet may be discarded because it is determined to be a duplicate, or for other reasons.')
hpr_rtp_detect_gaps = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 26), hpr_rtp_counter()).setUnits('gaps').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpDetectGaps.setStatus('current')
if mibBuilder.loadTexts:
hprRtpDetectGaps.setDescription('The count of gaps detected on this RTP connection.')
hpr_rtp_rate_req_sends = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 27), hpr_rtp_counter()).setUnits('rate requests').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpRateReqSends.setStatus('current')
if mibBuilder.loadTexts:
hprRtpRateReqSends.setDescription('The count of Rate Requests sent on this RTP connection.')
hpr_rtp_ok_err_path_sws = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 28), hpr_rtp_counter()).setUnits('path switch attempts').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpOkErrPathSws.setStatus('current')
if mibBuilder.loadTexts:
hprRtpOkErrPathSws.setDescription('The count of successful path switch attempts for this RTP connection due to errors.')
hpr_rtp_bad_err_path_sws = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 29), hpr_rtp_counter()).setUnits('path switch attempts').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpBadErrPathSws.setStatus('current')
if mibBuilder.loadTexts:
hprRtpBadErrPathSws.setDescription('The count of unsuccessful path switches for this RTP connection due to errors.')
hpr_rtp_ok_op_path_sws = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 30), hpr_rtp_counter()).setUnits('path switches').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpOkOpPathSws.setStatus('current')
if mibBuilder.loadTexts:
hprRtpOkOpPathSws.setDescription('The count of successful path switches for this RTP connection due to operator requests.')
hpr_rtp_bad_op_path_sws = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 31), hpr_rtp_counter()).setUnits('path switches').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpBadOpPathSws.setStatus('current')
if mibBuilder.loadTexts:
hprRtpBadOpPathSws.setDescription('The count of unsuccessful path switches for this RTP connection due to operator requests. This counter is not incremented by an implementation that does not support operator-requested path switches, even if a Management Station requests such a path switch by setting the hprRtpPathSwitchTrigger object.')
hpr_rtp_counter_discon_time = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 2, 1, 32), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpCounterDisconTime.setStatus('current')
if mibBuilder.loadTexts:
hprRtpCounterDisconTime.setDescription('The value of the sysUpTime object when the counters for this RTP connection last experienced a discontinuity. This will be the more recent of two times: the time at which the connection was established or the time at which the HPR counters were last turned on or off.')
hpr_rtp_status_table = mib_table((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3))
if mibBuilder.loadTexts:
hprRtpStatusTable.setStatus('current')
if mibBuilder.loadTexts:
hprRtpStatusTable.setDescription('RTP Connection Status Table: This table contains historical information on RTP connections. An entry is created in this table when a path switch is completed, either successfully or unsuccessfully.')
hpr_rtp_status_entry = mib_table_row((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1)).setIndexNames((0, 'HPR-MIB', 'hprRtpStatusLocNceId'), (0, 'HPR-MIB', 'hprRtpStatusLocTcid'), (0, 'HPR-MIB', 'hprRtpStatusIndex'))
if mibBuilder.loadTexts:
hprRtpStatusEntry.setStatus('current')
if mibBuilder.loadTexts:
hprRtpStatusEntry.setDescription('This table is indexed by local NCE ID, local TCID, and an integer hprRtpStatusIndex. Thus the primary grouping of table rows is by RTP connection, with the multiple entries for a given RTP connection ordered by time.')
hpr_rtp_status_loc_nce_id = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(1, 8)))
if mibBuilder.loadTexts:
hprRtpStatusLocNceId.setStatus('current')
if mibBuilder.loadTexts:
hprRtpStatusLocNceId.setDescription('The local Network Connection Endpoint (NCE) of this RTP connection. NCEs identify CPs, LUs, Boundary Functions (BFs), and Route Setup (RS) components.')
hpr_rtp_status_loc_tcid = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8))
if mibBuilder.loadTexts:
hprRtpStatusLocTcid.setStatus('current')
if mibBuilder.loadTexts:
hprRtpStatusLocTcid.setDescription('The local TCID of this RTP connection.')
hpr_rtp_status_index = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295)))
if mibBuilder.loadTexts:
hprRtpStatusIndex.setStatus('current')
if mibBuilder.loadTexts:
hprRtpStatusIndex.setDescription('Table index. This value begins at one and is incremented when a new entry is added to the table. It is an implementation choice whether to run a single counter for all entries in the table, or to run a separate counter for the entries for each RTP connection. In the unlikely event of a wrap, it is assumed that Management Stations will have the ability to order table entries correctly.')
hpr_rtp_status_start_time = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 4), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpStatusStartTime.setStatus('current')
if mibBuilder.loadTexts:
hprRtpStatusStartTime.setDescription('The time when the path switch began.')
hpr_rtp_status_end_time = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 5), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpStatusEndTime.setStatus('current')
if mibBuilder.loadTexts:
hprRtpStatusEndTime.setDescription('The time when the path switch was ended, either successfully or unsuccessfully.')
hpr_rtp_status_rem_cp_name = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 6), sna_control_point_name()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpStatusRemCpName.setStatus('current')
if mibBuilder.loadTexts:
hprRtpStatusRemCpName.setDescription('Administratively assigned network name for the remote node of this RTP connection.')
hpr_rtp_status_rem_nce_id = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(1, 8))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpStatusRemNceId.setStatus('current')
if mibBuilder.loadTexts:
hprRtpStatusRemNceId.setDescription('The remote Network Connection Endpoint (NCE) of this RTP connection. NCEs identify CPs, LUs, Boundary Functions (BFs), and Route Setup (RS) components.')
hpr_rtp_status_rem_tcid = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpStatusRemTcid.setStatus('current')
if mibBuilder.loadTexts:
hprRtpStatusRemTcid.setDescription('The remote TCID of this RTP connection.')
hpr_rtp_status_new_rscv = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 9), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpStatusNewRscv.setStatus('current')
if mibBuilder.loadTexts:
hprRtpStatusNewRscv.setDescription('The new Route Selection Control Vector for this RTP connection. A zero-length string indicates that no value is available, perhaps because the implementation does not save RSCVs.')
hpr_rtp_status_old_rscv = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpStatusOldRscv.setStatus('current')
if mibBuilder.loadTexts:
hprRtpStatusOldRscv.setDescription('The old Route Selection Control Vector for this RTP connection. A zero-length string indicates that no value is available, perhaps because the implementation does not save RSCVs.')
hpr_rtp_status_cause = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('rtpConnFail', 2), ('locLinkFail', 3), ('remLinkFail', 4), ('operRequest', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpStatusCause.setStatus('current')
if mibBuilder.loadTexts:
hprRtpStatusCause.setDescription('The reason for the path switch: other(1) - Reason other than those listed below, rtpConnFail(2) - RTP connection failure detected, locLinkFail(3) - Local link failure, remLinkFail(4) - Remote link failure (learned from TDUs), operRequest(5) - Operator requested path switch. ')
hpr_rtp_status_last_attempt_result = mib_table_column((1, 3, 6, 1, 2, 1, 34, 6, 1, 4, 3, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('successful', 1), ('initiatorMoving', 2), ('directorySearchFailed', 3), ('rscvCalculationFailed', 4), ('negativeRouteSetupReply', 5), ('backoutRouteSetupReply', 6), ('timeoutDuringFirstAttempt', 7), ('otherUnsuccessful', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hprRtpStatusLastAttemptResult.setStatus('current')
if mibBuilder.loadTexts:
hprRtpStatusLastAttemptResult.setDescription("The result of the last completed path switch attempt. If the path switch is aborted in the middle of a path switch attempt because the path switch timer expires, the result of the previous path switch attempt is reported. The values are defined as follows: successful(1) - The final path switch attempt was successful. initiatorMoving(2) - The final path switch attempt failed because the initiator is mobile, and there was no active link out of this node. directorySearchFailed(3) - The final path switch attempt failed because a directory search for the destination node's CP name failed. rscvCalculationFailed(4) - The final path switch attempt failed because an RSCV to the node containing the remote RTP endpoint could not be calculated. negativeRouteSetupReply(5) - The final path switch attempt failed because route setup failed for the new path. backoutRouteSetupReply(6) - The final path switch attempt failed because the remote RTP endpoint refused to continue the RTP connection. timeoutDuringFirstAttempt(7) - The path switch timer expired during the first path switch attempt. otherUnsuccessful(8) - The final path switch attempt failed for a reason other than those listed above.")
hpr_conformance = mib_identifier((1, 3, 6, 1, 2, 1, 34, 6, 2))
hpr_compliances = mib_identifier((1, 3, 6, 1, 2, 1, 34, 6, 2, 1))
hpr_groups = mib_identifier((1, 3, 6, 1, 2, 1, 34, 6, 2, 2))
hpr_compliance = module_compliance((1, 3, 6, 1, 2, 1, 34, 6, 2, 1, 1)).setObjects(('HPR-MIB', 'hprGlobalConfGroup'), ('HPR-MIB', 'hprAnrRoutingConfGroup'), ('HPR-MIB', 'hprTransportUserConfGroup'), ('HPR-MIB', 'hprRtpConfGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpr_compliance = hprCompliance.setStatus('current')
if mibBuilder.loadTexts:
hprCompliance.setDescription('The compliance statement for the SNMPv2 entities that implement the HPR MIB.')
hpr_global_conf_group = object_group((1, 3, 6, 1, 2, 1, 34, 6, 2, 2, 1)).setObjects(('HPR-MIB', 'hprNodeCpName'), ('HPR-MIB', 'hprOperatorPathSwitchSupport'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpr_global_conf_group = hprGlobalConfGroup.setStatus('current')
if mibBuilder.loadTexts:
hprGlobalConfGroup.setDescription('A collection of objects providing the instrumentation of HPR general information and capabilities.')
hpr_anr_routing_conf_group = object_group((1, 3, 6, 1, 2, 1, 34, 6, 2, 2, 2)).setObjects(('HPR-MIB', 'hprAnrsAssigned'), ('HPR-MIB', 'hprAnrCounterState'), ('HPR-MIB', 'hprAnrCounterStateTime'), ('HPR-MIB', 'hprAnrType'), ('HPR-MIB', 'hprAnrOutTgDest'), ('HPR-MIB', 'hprAnrOutTgNum'), ('HPR-MIB', 'hprAnrPacketsReceived'), ('HPR-MIB', 'hprAnrCounterDisconTime'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpr_anr_routing_conf_group = hprAnrRoutingConfGroup.setStatus('current')
if mibBuilder.loadTexts:
hprAnrRoutingConfGroup.setDescription("A collection of objects providing instrumentation for the node's ANR routing.")
hpr_transport_user_conf_group = object_group((1, 3, 6, 1, 2, 1, 34, 6, 2, 2, 3)).setObjects(('HPR-MIB', 'hprNceType'), ('HPR-MIB', 'hprNceDefault'), ('HPR-MIB', 'hprNceInstanceId'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpr_transport_user_conf_group = hprTransportUserConfGroup.setStatus('current')
if mibBuilder.loadTexts:
hprTransportUserConfGroup.setDescription('A collection of objects providing information on the users of the HPR transport known to the node.')
hpr_rtp_conf_group = object_group((1, 3, 6, 1, 2, 1, 34, 6, 2, 2, 4)).setObjects(('HPR-MIB', 'hprRtpGlobeConnSetups'), ('HPR-MIB', 'hprRtpGlobeCtrState'), ('HPR-MIB', 'hprRtpGlobeCtrStateTime'), ('HPR-MIB', 'hprRtpRemCpName'), ('HPR-MIB', 'hprRtpRemNceId'), ('HPR-MIB', 'hprRtpRemTcid'), ('HPR-MIB', 'hprRtpPathSwitchTrigger'), ('HPR-MIB', 'hprRtpRscv'), ('HPR-MIB', 'hprRtpTopic'), ('HPR-MIB', 'hprRtpState'), ('HPR-MIB', 'hprRtpUpTime'), ('HPR-MIB', 'hprRtpLivenessTimer'), ('HPR-MIB', 'hprRtpShortReqTimer'), ('HPR-MIB', 'hprRtpPathSwTimer'), ('HPR-MIB', 'hprRtpLivenessTimeouts'), ('HPR-MIB', 'hprRtpShortReqTimeouts'), ('HPR-MIB', 'hprRtpMaxSendRate'), ('HPR-MIB', 'hprRtpMinSendRate'), ('HPR-MIB', 'hprRtpCurSendRate'), ('HPR-MIB', 'hprRtpSmRdTripDelay'), ('HPR-MIB', 'hprRtpSendPackets'), ('HPR-MIB', 'hprRtpRecvPackets'), ('HPR-MIB', 'hprRtpSendBytes'), ('HPR-MIB', 'hprRtpRecvBytes'), ('HPR-MIB', 'hprRtpRetrPackets'), ('HPR-MIB', 'hprRtpPacketsDiscarded'), ('HPR-MIB', 'hprRtpDetectGaps'), ('HPR-MIB', 'hprRtpRateReqSends'), ('HPR-MIB', 'hprRtpOkErrPathSws'), ('HPR-MIB', 'hprRtpBadErrPathSws'), ('HPR-MIB', 'hprRtpOkOpPathSws'), ('HPR-MIB', 'hprRtpBadOpPathSws'), ('HPR-MIB', 'hprRtpCounterDisconTime'), ('HPR-MIB', 'hprRtpStatusStartTime'), ('HPR-MIB', 'hprRtpStatusEndTime'), ('HPR-MIB', 'hprRtpStatusRemNceId'), ('HPR-MIB', 'hprRtpStatusRemTcid'), ('HPR-MIB', 'hprRtpStatusRemCpName'), ('HPR-MIB', 'hprRtpStatusNewRscv'), ('HPR-MIB', 'hprRtpStatusOldRscv'), ('HPR-MIB', 'hprRtpStatusCause'), ('HPR-MIB', 'hprRtpStatusLastAttemptResult'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpr_rtp_conf_group = hprRtpConfGroup.setStatus('current')
if mibBuilder.loadTexts:
hprRtpConfGroup.setDescription('A collection of objects providing the instrumentation for RTP connection end points.')
mibBuilder.exportSymbols('HPR-MIB', HprNceTypes=HprNceTypes, hprRtpGlobe=hprRtpGlobe, hprNodeCpName=hprNodeCpName, hprRtpMinSendRate=hprRtpMinSendRate, hprRtpPacketsDiscarded=hprRtpPacketsDiscarded, hprAnrRoutingEntry=hprAnrRoutingEntry, hprRtpRetrPackets=hprRtpRetrPackets, hprRtpStatusNewRscv=hprRtpStatusNewRscv, hprRtpRscv=hprRtpRscv, hprRtpDetectGaps=hprRtpDetectGaps, hprAnrRouting=hprAnrRouting, hprRtpGlobeCtrStateTime=hprRtpGlobeCtrStateTime, hprAnrPacketsReceived=hprAnrPacketsReceived, hprRtpStatusStartTime=hprRtpStatusStartTime, hprAnrCounterStateTime=hprAnrCounterStateTime, hprAnrRoutingTable=hprAnrRoutingTable, hprNceType=hprNceType, HprRtpCounter=HprRtpCounter, hprRtpUpTime=hprRtpUpTime, hprNceTable=hprNceTable, hprRtpStatusLocTcid=hprRtpStatusLocTcid, hprRtpRemCpName=hprRtpRemCpName, hprAnrsAssigned=hprAnrsAssigned, hprRtpLocNceId=hprRtpLocNceId, hprNceEntry=hprNceEntry, hprRtpCounterDisconTime=hprRtpCounterDisconTime, hprRtpLocTcid=hprRtpLocTcid, hprRtpLivenessTimeouts=hprRtpLivenessTimeouts, hprRtpStatusEndTime=hprRtpStatusEndTime, hprAnrType=hprAnrType, hprRtpEntry=hprRtpEntry, hprAnrOutTgDest=hprAnrOutTgDest, hprRtpCurSendRate=hprRtpCurSendRate, hprNceId=hprNceId, hprOperatorPathSwitchSupport=hprOperatorPathSwitchSupport, hprRtpRateReqSends=hprRtpRateReqSends, hprRtpPathSwitchTrigger=hprRtpPathSwitchTrigger, hprGroups=hprGroups, hprAnrRoutingConfGroup=hprAnrRoutingConfGroup, hprRtpRemNceId=hprRtpRemNceId, hprNceInstanceId=hprNceInstanceId, hprRtpStatusRemCpName=hprRtpStatusRemCpName, hprRtpGlobeConnSetups=hprRtpGlobeConnSetups, hprRtpStatusOldRscv=hprRtpStatusOldRscv, hprTransportUserConfGroup=hprTransportUserConfGroup, hprRtpMaxSendRate=hprRtpMaxSendRate, hprRtpOkErrPathSws=hprRtpOkErrPathSws, hprRtpConfGroup=hprRtpConfGroup, hprRtpTopic=hprRtpTopic, hprRtpStatusLastAttemptResult=hprRtpStatusLastAttemptResult, hprAnrCounterState=hprAnrCounterState, hprRtpSendBytes=hprRtpSendBytes, hprRtpSmRdTripDelay=hprRtpSmRdTripDelay, hprRtpGlobeCtrState=hprRtpGlobeCtrState, hprTransportUser=hprTransportUser, hprRtpTable=hprRtpTable, hprRtpState=hprRtpState, hprAnrCounterDisconTime=hprAnrCounterDisconTime, hprRtpRecvPackets=hprRtpRecvPackets, hprRtpRemTcid=hprRtpRemTcid, hprObjects=hprObjects, hprAnrLabel=hprAnrLabel, hprMIB=hprMIB, hprRtpStatusLocNceId=hprRtpStatusLocNceId, hprRtpBadOpPathSws=hprRtpBadOpPathSws, hprRtpStatusRemNceId=hprRtpStatusRemNceId, hprRtpStatusIndex=hprRtpStatusIndex, hprRtpPathSwTimer=hprRtpPathSwTimer, hprRtp=hprRtp, hprRtpStatusEntry=hprRtpStatusEntry, hprRtpStatusTable=hprRtpStatusTable, hprRtpOkOpPathSws=hprRtpOkOpPathSws, hprRtpLivenessTimer=hprRtpLivenessTimer, hprRtpRecvBytes=hprRtpRecvBytes, hprAnrOutTgNum=hprAnrOutTgNum, hprRtpStatusCause=hprRtpStatusCause, hprRtpStatusRemTcid=hprRtpStatusRemTcid, hprCompliances=hprCompliances, hprCompliance=hprCompliance, hprRtpShortReqTimeouts=hprRtpShortReqTimeouts, hprGlobalConfGroup=hprGlobalConfGroup, PYSNMP_MODULE_ID=hprMIB, hprConformance=hprConformance, hprNceDefault=hprNceDefault, hprRtpShortReqTimer=hprRtpShortReqTimer, hprRtpSendPackets=hprRtpSendPackets, hprGlobal=hprGlobal, hprRtpBadErrPathSws=hprRtpBadErrPathSws) |
RESULT = "result"
SUCCESS = "success"
ERROR = "error"
MESSAGE = "message"
CODE = "code"
PROPERTIES = 'properties'
MISSED_KEYS = {
"format": {
"type": "string"
}, "$ref": {
"type": "string",
"format": "uri"
}
}
| result = 'result'
success = 'success'
error = 'error'
message = 'message'
code = 'code'
properties = 'properties'
missed_keys = {'format': {'type': 'string'}, '$ref': {'type': 'string', 'format': 'uri'}} |
# We just put it here to get the checks to shut up
MIDDLEWARE_CLASSES = []
INSTALLED_APPS = (
'django.contrib.sites',
'absoluteuri',
)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
}
SITE_ID = 1
ROOT_URLCONF = 'absoluteuri.tests'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'APP_DIRS': True,
},
]
| middleware_classes = []
installed_apps = ('django.contrib.sites', 'absoluteuri')
databases = {'default': {'ENGINE': 'django.db.backends.sqlite3'}}
site_id = 1
root_urlconf = 'absoluteuri.tests'
templates = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'APP_DIRS': True}] |
underworld_graph = {
992: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(75,61)",
"elevation": 0,
"w": 966
},
966: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(74,61)",
"elevation": 0,
"e": 992,
"w": 960
},
960: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(73,61)",
"elevation": 0,
"e": 966,
"w": 956
},
956: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(72,61)",
"elevation": 0,
"e": 960,
"w": 902
},
902: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(71,61)",
"elevation": 0,
"e": 956,
"w": 874
},
874: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(70,61)",
"elevation": 0,
"e": 902,
"w": 762
},
762: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(69,61)",
"elevation": 0,
"e": 874,
"w": 728
},
728: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(68,61)",
"elevation": 0,
"n": 741,
"e": 762,
"w": 724
},
741: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(68,62)",
"elevation": 0,
"s": 728,
"e": 793
},
793: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(69,62)",
"elevation": 0,
"n": 808,
"e": 901,
"w": 741
},
808: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(69,63)",
"elevation": 0,
"n": 821,
"s": 793,
"e": 920
},
821: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(69,64)",
"elevation": 0,
"n": 974,
"s": 808,
"e": 953
},
974: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(69,65)",
"elevation": 0,
"s": 821
},
953: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(70,64)",
"elevation": 0,
"w": 821
},
920: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(70,63)",
"elevation": 0,
"e": 946,
"w": 808
},
946: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(71,63)",
"elevation": 0,
"w": 920
},
901: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(70,62)",
"elevation": 0,
"w": 793
},
724: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,61)",
"elevation": 0,
"n": 737,
"s": 748,
"e": 728,
"w": 711
},
737: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,62)",
"elevation": 0,
"n": 756,
"s": 724
},
756: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,63)",
"elevation": 0,
"s": 737,
"e": 868
},
868: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(68,63)",
"elevation": 0,
"n": 885,
"w": 756
},
885: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(68,64)",
"elevation": 0,
"s": 868
},
748: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,60)",
"elevation": 0,
"n": 724,
"s": 772,
"e": 764
},
772: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,59)",
"elevation": 0,
"n": 748,
"s": 780
},
780: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,58)",
"elevation": 0,
"n": 772,
"s": 818
},
818: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,57)",
"elevation": 0,
"n": 780,
"s": 877,
"e": 829
},
877: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,56)",
"elevation": 0,
"n": 818,
"s": 997,
"e": 937
},
997: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,55)",
"elevation": 0,
"n": 877
},
937: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(68,56)",
"elevation": 0,
"w": 877
},
829: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(68,57)",
"elevation": 0,
"e": 912,
"w": 818
},
912: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(69,57)",
"elevation": 0,
"w": 829
},
764: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(68,60)",
"elevation": 0,
"s": 769,
"e": 848,
"w": 748
},
769: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(68,59)",
"elevation": 0,
"n": 764,
"s": 799,
"e": 847
},
799: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(68,58)",
"elevation": 0,
"n": 769,
"e": 908
},
908: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(69,58)",
"elevation": 0,
"w": 799
},
847: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(69,59)",
"elevation": 0,
"w": 769
},
848: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(69,60)",
"elevation": 0,
"e": 853,
"w": 764
},
853: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(70,60)",
"elevation": 0,
"s": 958,
"e": 939,
"w": 848
},
958: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(70,59)",
"elevation": 0,
"n": 853,
"s": 972
},
972: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(70,58)",
"elevation": 0,
"n": 958
},
939: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(71,60)",
"elevation": 0,
"w": 853
},
711: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,61)",
"elevation": 0,
"n": 721,
"e": 724,
"w": 633
},
721: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,62)",
"elevation": 0,
"s": 711
},
633: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,61)",
"elevation": 0,
"e": 711,
"w": 623
},
623: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,61)",
"elevation": 0,
"n": 609,
"e": 633
},
609: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,62)",
"elevation": 0,
"n": 603,
"s": 623,
"e": 652
},
603: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,63)",
"elevation": 0,
"n": 618,
"s": 609,
"w": 520
},
618: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,64)",
"elevation": 0,
"s": 603,
"e": 631
},
631: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,64)",
"elevation": 0,
"s": 646,
"w": 618
},
646: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,63)",
"elevation": 0,
"n": 631,
"e": 662
},
662: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,63)",
"elevation": 0,
"n": 675,
"w": 646
},
675: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,64)",
"elevation": 0,
"s": 662,
"e": 768
},
768: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,64)",
"elevation": 0,
"w": 675
},
520: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,63)",
"elevation": 0,
"n": 579,
"e": 603,
"w": 519
},
579: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,64)",
"elevation": 0,
"n": 601,
"s": 520
},
601: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,65)",
"elevation": 0,
"n": 617,
"s": 579,
"e": 629
},
617: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,66)",
"elevation": 0,
"n": 645,
"s": 601
},
645: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,67)",
"elevation": 0,
"s": 617
},
629: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,65)",
"elevation": 0,
"n": 684,
"e": 667,
"w": 601
},
684: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,66)",
"elevation": 0,
"n": 718,
"s": 629,
"e": 687
},
718: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,67)",
"elevation": 0,
"n": 734,
"s": 684,
"e": 782
},
734: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,68)",
"elevation": 0,
"s": 718
},
782: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,67)",
"elevation": 0,
"w": 718
},
687: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,66)",
"elevation": 0,
"e": 806,
"w": 684
},
806: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,66)",
"elevation": 0,
"n": 909,
"w": 687
},
909: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,67)",
"elevation": 0,
"n": 910,
"s": 806,
"e": 917
},
910: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,68)",
"elevation": 0,
"s": 909
},
917: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,67)",
"elevation": 0,
"e": 929,
"w": 909
},
929: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(68,67)",
"elevation": 0,
"w": 917
},
667: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,65)",
"elevation": 0,
"e": 717,
"w": 629
},
717: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,65)",
"elevation": 0,
"e": 820,
"w": 667
},
820: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,65)",
"elevation": 0,
"n": 866,
"e": 876,
"w": 717
},
866: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,66)",
"elevation": 0,
"s": 820
},
876: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(68,65)",
"elevation": 0,
"w": 820
},
519: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,63)",
"elevation": 0,
"n": 563,
"s": 583,
"e": 520,
"w": 518
},
563: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,64)",
"elevation": 0,
"s": 519
},
583: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,62)",
"elevation": 0,
"n": 519,
"e": 595
},
595: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,62)",
"elevation": 0,
"w": 583
},
518: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,63)",
"elevation": 0,
"e": 519,
"w": 507
},
507: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,63)",
"elevation": 0,
"n": 514,
"s": 506,
"e": 518,
"w": 511
},
514: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,64)",
"elevation": 0,
"n": 521,
"s": 507,
"e": 515
},
521: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,65)",
"elevation": 0,
"n": 522,
"s": 514
},
522: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,66)",
"elevation": 0,
"n": 536,
"s": 521
},
536: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,67)",
"elevation": 0,
"n": 658,
"s": 522
},
658: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,68)",
"elevation": 0,
"n": 678,
"s": 536,
"e": 672
},
678: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,69)",
"elevation": 0,
"s": 658,
"e": 703
},
703: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,69)",
"elevation": 0,
"n": 709,
"e": 733,
"w": 678
},
709: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,70)",
"elevation": 0,
"n": 736,
"s": 703,
"e": 712
},
736: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,71)",
"elevation": 0,
"s": 709,
"e": 786
},
786: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,71)",
"elevation": 0,
"n": 798,
"e": 961,
"w": 736
},
798: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,72)",
"elevation": 0,
"n": 889,
"s": 786
},
889: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,73)",
"elevation": 0,
"n": 919,
"s": 798,
"e": 923,
"w": 915
},
919: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,74)",
"elevation": 0,
"s": 889
},
923: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,73)",
"elevation": 0,
"w": 889
},
915: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,73)",
"elevation": 0,
"e": 889
},
961: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,71)",
"elevation": 0,
"w": 786
},
712: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,70)",
"elevation": 0,
"e": 739,
"w": 709
},
739: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,70)",
"elevation": 0,
"w": 712
},
733: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,69)",
"elevation": 0,
"e": 740,
"w": 703
},
740: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,69)",
"elevation": 0,
"s": 770,
"e": 751,
"w": 733
},
770: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,68)",
"elevation": 0,
"n": 740
},
751: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,69)",
"elevation": 0,
"n": 810,
"e": 794,
"w": 740
},
810: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,70)",
"elevation": 0,
"s": 751
},
794: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,69)",
"elevation": 0,
"n": 802,
"s": 896,
"e": 841,
"w": 751
},
802: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,70)",
"elevation": 0,
"n": 830,
"s": 794,
"e": 865
},
830: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,71)",
"elevation": 0,
"s": 802
},
865: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,70)",
"elevation": 0,
"n": 924,
"e": 897,
"w": 802
},
924: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,71)",
"elevation": 0,
"s": 865,
"e": 979
},
979: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,71)",
"elevation": 0,
"w": 924
},
897: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,70)",
"elevation": 0,
"e": 986,
"w": 865
},
986: {
"title": "Snitch Board",
"description": "A generic board stands before you with a golden snitch carved into the top.",
"terrain": "NORMAL",
"coordinates": "(68,70)",
"elevation": 0,
"w": 897
},
896: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,68)",
"elevation": 0,
"n": 794
},
841: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,69)",
"elevation": 0,
"e": 962,
"w": 794
},
962: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,69)",
"elevation": 0,
"s": 963,
"w": 841
},
963: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,68)",
"elevation": 0,
"n": 962,
"e": 982
},
982: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(68,68)",
"elevation": 0,
"n": 995,
"w": 963
},
995: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(68,69)",
"elevation": 0,
"s": 982,
"e": 996
},
996: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(69,69)",
"elevation": 0,
"w": 995
},
672: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,68)",
"elevation": 0,
"w": 658
},
515: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,64)",
"elevation": 0,
"n": 576,
"w": 514
},
576: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,65)",
"elevation": 0,
"n": 582,
"s": 515,
"e": 578
},
582: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,66)",
"elevation": 0,
"n": 642,
"s": 576,
"e": 644
},
642: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,67)",
"elevation": 0,
"s": 582
},
644: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,66)",
"elevation": 0,
"n": 664,
"w": 582
},
664: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,67)",
"elevation": 0,
"n": 680,
"s": 644
},
680: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,68)",
"elevation": 0,
"s": 664
},
578: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,65)",
"elevation": 0,
"w": 576
},
506: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,62)",
"elevation": 0,
"n": 507,
"s": 504,
"e": 531,
"w": 529
},
504: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,61)",
"elevation": 0,
"n": 506,
"s": 500,
"e": 544,
"w": 523
},
500: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,60)",
"elevation": 0,
"n": 504,
"s": 502,
"e": 503,
"w": 501
},
502: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,59)",
"elevation": 0,
"n": 500,
"s": 508,
"e": 505,
"w": 509
},
508: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,58)",
"elevation": 0,
"n": 502,
"s": 561
},
561: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,57)",
"elevation": 0,
"n": 508,
"s": 571
},
571: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,56)",
"elevation": 0,
"n": 561,
"s": 584
},
584: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,55)",
"elevation": 0,
"n": 571,
"s": 669
},
669: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,54)",
"elevation": 0,
"n": 584,
"s": 695
},
695: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,53)",
"elevation": 0,
"n": 669,
"s": 757,
"e": 696
},
757: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,52)",
"elevation": 0,
"n": 695,
"s": 814
},
814: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,51)",
"elevation": 0,
"n": 757,
"s": 849
},
849: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,50)",
"elevation": 0,
"n": 814,
"e": 955
},
955: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,50)",
"elevation": 0,
"w": 849
},
696: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,53)",
"elevation": 0,
"s": 753,
"w": 695
},
753: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,52)",
"elevation": 0,
"n": 696,
"s": 784,
"e": 775
},
784: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,51)",
"elevation": 0,
"n": 753
},
775: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,52)",
"elevation": 0,
"s": 823,
"e": 790,
"w": 753
},
823: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,51)",
"elevation": 0,
"n": 775,
"e": 824
},
824: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,51)",
"elevation": 0,
"s": 827,
"w": 823
},
827: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,50)",
"elevation": 0,
"n": 824,
"s": 832,
"e": 904,
"w": 985
},
832: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,49)",
"elevation": 0,
"n": 827,
"s": 932,
"e": 844,
"w": 888
},
932: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,48)",
"elevation": 0,
"n": 832,
"e": 950
},
950: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,48)",
"elevation": 0,
"w": 932
},
844: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,49)",
"elevation": 0,
"w": 832
},
888: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,49)",
"elevation": 0,
"e": 832,
"w": 936
},
936: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,49)",
"elevation": 0,
"s": 988,
"e": 888
},
988: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,48)",
"elevation": 0,
"n": 936
},
904: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,50)",
"elevation": 0,
"e": 976,
"w": 827
},
976: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,50)",
"elevation": 0,
"w": 904
},
985: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,50)",
"elevation": 0,
"e": 827
},
790: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,52)",
"elevation": 0,
"e": 835,
"w": 775
},
835: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,52)",
"elevation": 0,
"e": 883,
"w": 790
},
883: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,52)",
"elevation": 0,
"s": 890,
"e": 891,
"w": 835
},
890: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,51)",
"elevation": 0,
"n": 883,
"w": 926
},
926: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,51)",
"elevation": 0,
"e": 890
},
891: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,52)",
"elevation": 0,
"s": 969,
"w": 883
},
969: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,51)",
"elevation": 0,
"n": 891,
"e": 984
},
984: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,51)",
"elevation": 0,
"w": 969
},
505: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,59)",
"elevation": 0,
"e": 525,
"w": 502
},
525: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,59)",
"elevation": 0,
"n": 560,
"s": 542,
"e": 533,
"w": 505
},
560: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,60)",
"elevation": 0,
"s": 525,
"e": 602
},
602: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,60)",
"elevation": 0,
"e": 612,
"w": 560
},
612: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,60)",
"elevation": 0,
"s": 637,
"e": 635,
"w": 602
},
637: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,59)",
"elevation": 0,
"n": 612,
"s": 651,
"e": 650
},
651: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,58)",
"elevation": 0,
"n": 637,
"e": 674
},
674: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,58)",
"elevation": 0,
"e": 778,
"w": 651
},
778: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,58)",
"elevation": 0,
"s": 815,
"w": 674
},
815: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,57)",
"elevation": 0,
"n": 778,
"s": 825
},
825: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,56)",
"elevation": 0,
"n": 815,
"s": 854
},
854: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,55)",
"elevation": 0,
"n": 825
},
650: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,59)",
"elevation": 0,
"e": 758,
"w": 637
},
758: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,59)",
"elevation": 0,
"w": 650
},
635: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,60)",
"elevation": 0,
"e": 720,
"w": 612
},
720: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,60)",
"elevation": 0,
"w": 635
},
542: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,58)",
"elevation": 0,
"n": 525,
"s": 549,
"w": 554
},
549: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,57)",
"elevation": 0,
"n": 542,
"s": 556
},
556: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,56)",
"elevation": 0,
"n": 549,
"s": 600,
"e": 598
},
600: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,55)",
"elevation": 0,
"n": 556,
"s": 648,
"e": 610
},
648: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,54)",
"elevation": 0,
"n": 600,
"s": 735,
"w": 673
},
735: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,53)",
"elevation": 0,
"n": 648
},
673: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,54)",
"elevation": 0,
"e": 648
},
610: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,55)",
"elevation": 0,
"s": 732,
"w": 600
},
732: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,54)",
"elevation": 0,
"n": 610,
"s": 779
},
779: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,53)",
"elevation": 0,
"n": 732
},
598: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,56)",
"elevation": 0,
"e": 659,
"w": 556
},
659: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,56)",
"elevation": 0,
"s": 665,
"e": 754,
"w": 598
},
665: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,55)",
"elevation": 0,
"n": 659,
"s": 723,
"e": 700
},
723: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,54)",
"elevation": 0,
"n": 665,
"s": 816
},
816: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,53)",
"elevation": 0,
"n": 723
},
700: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,55)",
"elevation": 0,
"s": 813,
"w": 665
},
813: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,54)",
"elevation": 0,
"n": 700,
"s": 831,
"e": 858
},
831: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,53)",
"elevation": 0,
"n": 813
},
858: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,54)",
"elevation": 0,
"s": 907,
"e": 879,
"w": 813
},
907: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(66,53)",
"elevation": 0,
"n": 858,
"e": 925
},
925: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,53)",
"elevation": 0,
"s": 965,
"w": 907
},
965: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,52)",
"elevation": 0,
"n": 925,
"e": 980
},
980: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(68,52)",
"elevation": 0,
"s": 999,
"w": 965
},
999: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(68,51)",
"elevation": 0,
"n": 980
},
879: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(67,54)",
"elevation": 0,
"w": 858
},
754: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,56)",
"elevation": 0,
"w": 659
},
554: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,58)",
"elevation": 0,
"s": 567,
"e": 542
},
567: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,57)",
"elevation": 0,
"n": 554,
"s": 574
},
574: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,56)",
"elevation": 0,
"n": 567,
"s": 588
},
588: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,55)",
"elevation": 0,
"n": 574
},
533: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,59)",
"elevation": 0,
"s": 539,
"w": 525
},
539: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,58)",
"elevation": 0,
"n": 533,
"s": 540
},
540: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,57)",
"elevation": 0,
"n": 539,
"e": 585
},
585: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(64,57)",
"elevation": 0,
"e": 682,
"w": 540
},
682: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,57)",
"elevation": 0,
"w": 585
},
509: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,59)",
"elevation": 0,
"s": 524,
"e": 502,
"w": 510
},
524: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,58)",
"elevation": 0,
"n": 509,
"s": 545,
"w": 526
},
545: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,57)",
"elevation": 0,
"n": 524,
"s": 565
},
565: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,56)",
"elevation": 0,
"n": 545,
"s": 590
},
590: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,55)",
"elevation": 0,
"n": 565,
"s": 625
},
625: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,54)",
"elevation": 0,
"n": 590,
"s": 699
},
699: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,53)",
"elevation": 0,
"n": 625,
"s": 809
},
809: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,52)",
"elevation": 0,
"n": 699
},
526: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,58)",
"elevation": 0,
"s": 538,
"e": 524,
"w": 530
},
538: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,57)",
"elevation": 0,
"n": 526,
"s": 564
},
564: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,56)",
"elevation": 0,
"n": 538,
"s": 586
},
586: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,55)",
"elevation": 0,
"n": 564,
"s": 619,
"w": 599
},
619: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,54)",
"elevation": 0,
"n": 586,
"s": 670
},
670: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,53)",
"elevation": 0,
"n": 619,
"s": 707
},
707: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,52)",
"elevation": 0,
"n": 670,
"s": 719
},
719: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,51)",
"elevation": 0,
"n": 707,
"s": 749,
"e": 800
},
749: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,50)",
"elevation": 0,
"n": 719,
"s": 859,
"e": 822
},
859: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,49)",
"elevation": 0,
"n": 749,
"s": 938
},
938: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,48)",
"elevation": 0,
"n": 859,
"s": 975
},
975: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,47)",
"elevation": 0,
"n": 938,
"s": 983
},
983: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,46)",
"elevation": 0,
"n": 975
},
822: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,50)",
"elevation": 0,
"s": 872,
"w": 749
},
872: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,49)",
"elevation": 0,
"n": 822,
"s": 906,
"e": 968
},
906: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,48)",
"elevation": 0,
"n": 872
},
968: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,49)",
"elevation": 0,
"w": 872
},
800: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,51)",
"elevation": 0,
"w": 719
},
599: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,55)",
"elevation": 0,
"s": 632,
"e": 586
},
632: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,54)",
"elevation": 0,
"n": 599,
"s": 654
},
654: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,53)",
"elevation": 0,
"n": 632,
"s": 677
},
677: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,52)",
"elevation": 0,
"n": 654,
"s": 691
},
691: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,51)",
"elevation": 0,
"n": 677,
"s": 716,
"w": 704
},
716: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,50)",
"elevation": 0,
"n": 691,
"s": 836,
"w": 761
},
836: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,49)",
"elevation": 0,
"n": 716,
"s": 860
},
860: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,48)",
"elevation": 0,
"n": 836,
"s": 941
},
941: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,47)",
"elevation": 0,
"n": 860,
"s": 947
},
947: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,46)",
"elevation": 0,
"n": 941
},
761: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,50)",
"elevation": 0,
"s": 863,
"e": 716,
"w": 837
},
863: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,49)",
"elevation": 0,
"n": 761,
"s": 913,
"w": 873
},
913: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,48)",
"elevation": 0,
"n": 863,
"s": 922
},
922: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,47)",
"elevation": 0,
"n": 913,
"s": 964,
"w": 959
},
964: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,46)",
"elevation": 0,
"n": 922
},
959: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,47)",
"elevation": 0,
"e": 922
},
873: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,49)",
"elevation": 0,
"s": 914,
"e": 863,
"w": 899
},
914: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,48)",
"elevation": 0,
"n": 873
},
899: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,49)",
"elevation": 0,
"e": 873
},
837: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,50)",
"elevation": 0,
"e": 761,
"w": 948
},
948: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,50)",
"elevation": 0,
"e": 837,
"w": 998
},
998: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,50)",
"elevation": 0,
"e": 948
},
704: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,51)",
"elevation": 0,
"e": 691,
"w": 774
},
774: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,51)",
"elevation": 0,
"e": 704,
"w": 842
},
842: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,51)",
"elevation": 0,
"e": 774
},
530: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,58)",
"elevation": 0,
"s": 577,
"e": 526,
"w": 559
},
577: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,57)",
"elevation": 0,
"n": 530,
"s": 589
},
589: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,56)",
"elevation": 0,
"n": 577
},
559: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,58)",
"elevation": 0,
"s": 572,
"e": 530,
"w": 569
},
572: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,57)",
"elevation": 0,
"n": 559,
"s": 621,
"w": 607
},
621: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,56)",
"elevation": 0,
"n": 572,
"s": 634
},
634: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,55)",
"elevation": 0,
"n": 621,
"s": 639,
"w": 636
},
639: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,54)",
"elevation": 0,
"n": 634,
"s": 653,
"w": 702
},
653: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,53)",
"elevation": 0,
"n": 639,
"s": 661,
"w": 690
},
661: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,52)",
"elevation": 0,
"n": 653,
"w": 788
},
788: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,52)",
"elevation": 0,
"e": 661,
"w": 867
},
867: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,52)",
"elevation": 0,
"e": 788,
"w": 881
},
881: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,52)",
"elevation": 0,
"s": 898,
"e": 867,
"w": 884
},
898: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,51)",
"elevation": 0,
"n": 881
},
884: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,52)",
"elevation": 0,
"e": 881
},
690: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,53)",
"elevation": 0,
"e": 653,
"w": 817
},
817: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,53)",
"elevation": 0,
"e": 690
},
702: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,54)",
"elevation": 0,
"e": 639,
"w": 715
},
715: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,54)",
"elevation": 0,
"e": 702,
"w": 791
},
791: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,54)",
"elevation": 0,
"s": 855,
"e": 715,
"w": 852
},
855: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,53)",
"elevation": 0,
"n": 791
},
852: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,54)",
"elevation": 0,
"s": 903,
"e": 791,
"w": 978
},
903: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,53)",
"elevation": 0,
"n": 852,
"w": 951
},
951: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,53)",
"elevation": 0,
"e": 903
},
978: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,54)",
"elevation": 0,
"e": 852
},
636: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,55)",
"elevation": 0,
"e": 634
},
607: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,57)",
"elevation": 0,
"s": 640,
"e": 572,
"w": 630
},
640: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,56)",
"elevation": 0,
"n": 607,
"w": 693
},
693: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,56)",
"elevation": 0,
"s": 694,
"e": 640,
"w": 765
},
694: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,55)",
"elevation": 0,
"n": 693
},
765: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,56)",
"elevation": 0,
"s": 870,
"e": 693
},
870: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,55)",
"elevation": 0,
"n": 765,
"w": 882
},
882: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,55)",
"elevation": 0,
"e": 870
},
630: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,57)",
"elevation": 0,
"e": 607,
"w": 755
},
755: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,57)",
"elevation": 0,
"e": 630,
"w": 766
},
766: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,57)",
"elevation": 0,
"s": 931,
"e": 755,
"w": 857
},
931: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,56)",
"elevation": 0,
"n": 766
},
857: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,57)",
"elevation": 0,
"s": 875,
"e": 766,
"w": 918
},
875: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,56)",
"elevation": 0,
"n": 857,
"s": 989
},
989: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,55)",
"elevation": 0,
"n": 875
},
918: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(50,57)",
"elevation": 0,
"n": 933,
"e": 857,
"w": 994
},
933: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(50,58)",
"elevation": 0,
"s": 918
},
994: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(49,57)",
"elevation": 0,
"e": 918
},
569: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,58)",
"elevation": 0,
"e": 559,
"w": 615
},
615: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,58)",
"elevation": 0,
"e": 569
},
510: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,59)",
"elevation": 0,
"n": 517,
"e": 509,
"w": 513
},
517: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,60)",
"elevation": 0,
"s": 510
},
513: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,59)",
"elevation": 0,
"n": 550,
"e": 510,
"w": 532
},
550: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,60)",
"elevation": 0,
"n": 570,
"s": 513
},
570: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,61)",
"elevation": 0,
"s": 550
},
532: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,59)",
"elevation": 0,
"n": 553,
"e": 513,
"w": 568
},
553: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,60)",
"elevation": 0,
"n": 593,
"s": 532
},
593: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,61)",
"elevation": 0,
"s": 553
},
568: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,59)",
"elevation": 0,
"n": 573,
"e": 532,
"w": 580
},
573: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,60)",
"elevation": 0,
"s": 568
},
580: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,59)",
"elevation": 0,
"e": 568,
"w": 606
},
606: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,59)",
"elevation": 0,
"s": 608,
"e": 580,
"w": 722
},
608: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,58)",
"elevation": 0,
"n": 606,
"w": 752
},
752: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,58)",
"elevation": 0,
"e": 608
},
722: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,59)",
"elevation": 0,
"e": 606,
"w": 763
},
763: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,59)",
"elevation": 0,
"s": 826,
"e": 722,
"w": 846
},
826: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,58)",
"elevation": 0,
"n": 763
},
846: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(50,59)",
"elevation": 0,
"e": 763
},
503: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,60)",
"elevation": 0,
"w": 500
},
501: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,60)",
"elevation": 0,
"e": 500
},
544: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,61)",
"elevation": 0,
"e": 552,
"w": 504
},
552: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(62,61)",
"elevation": 0,
"e": 604,
"w": 544
},
604: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(63,61)",
"elevation": 0,
"w": 552
},
523: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,61)",
"elevation": 0,
"e": 504
},
531: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,62)",
"elevation": 0,
"w": 506
},
529: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,62)",
"elevation": 0,
"e": 506
},
511: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,63)",
"elevation": 0,
"n": 512,
"e": 507,
"w": 516
},
512: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,64)",
"elevation": 0,
"n": 534,
"s": 511,
"w": 541
},
534: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,65)",
"elevation": 0,
"n": 551,
"s": 512
},
551: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,66)",
"elevation": 0,
"n": 591,
"s": 534,
"w": 558
},
591: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,67)",
"elevation": 0,
"n": 627,
"s": 551
},
627: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,68)",
"elevation": 0,
"n": 643,
"s": 591
},
643: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,69)",
"elevation": 0,
"n": 676,
"s": 627,
"w": 668
},
676: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,70)",
"elevation": 0,
"n": 726,
"s": 643,
"e": 686
},
726: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,71)",
"elevation": 0,
"n": 773,
"s": 676,
"e": 746
},
773: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,72)",
"elevation": 0,
"n": 789,
"s": 726
},
789: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,73)",
"elevation": 0,
"s": 773,
"e": 795
},
795: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,73)",
"elevation": 0,
"n": 804,
"w": 789
},
804: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,74)",
"elevation": 0,
"n": 971,
"s": 795,
"e": 970,
"w": 811
},
971: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,75)",
"elevation": 0,
"s": 804
},
970: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,74)",
"elevation": 0,
"w": 804
},
811: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(59,74)",
"elevation": 0,
"e": 804,
"w": 934
},
934: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,74)",
"elevation": 0,
"n": 945,
"e": 811
},
945: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,75)",
"elevation": 0,
"n": 967,
"s": 934
},
967: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,76)",
"elevation": 0,
"s": 945
},
746: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,71)",
"elevation": 0,
"n": 771,
"w": 726
},
771: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,72)",
"elevation": 0,
"s": 746,
"e": 801
},
801: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(61,72)",
"elevation": 0,
"w": 771
},
686: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(60,70)",
"elevation": 0,
"w": 676
},
668: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,69)",
"elevation": 0,
"n": 706,
"s": 738,
"e": 643,
"w": 688
},
706: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,70)",
"elevation": 0,
"n": 743,
"s": 668
},
743: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,71)",
"elevation": 0,
"n": 760,
"s": 706,
"w": 750
},
760: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,72)",
"elevation": 0,
"s": 743
},
750: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,71)",
"elevation": 0,
"n": 776,
"e": 743,
"w": 840
},
776: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,72)",
"elevation": 0,
"n": 777,
"s": 750,
"w": 805
},
777: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,73)",
"elevation": 0,
"s": 776,
"e": 785,
"w": 894
},
785: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,73)",
"elevation": 0,
"w": 777
},
894: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,73)",
"elevation": 0,
"n": 935,
"e": 777
},
935: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,74)",
"elevation": 0,
"n": 957,
"s": 894
},
957: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,75)",
"elevation": 0,
"s": 935
},
805: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,72)",
"elevation": 0,
"e": 776,
"w": 838
},
838: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,72)",
"elevation": 0,
"n": 851,
"e": 805,
"w": 845
},
851: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,73)",
"elevation": 0,
"n": 940,
"s": 838
},
940: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,74)",
"elevation": 0,
"s": 851
},
845: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,72)",
"elevation": 0,
"n": 895,
"e": 838
},
895: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,73)",
"elevation": 0,
"s": 845,
"w": 916
},
916: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,73)",
"elevation": 0,
"s": 993,
"e": 895,
"w": 987
},
993: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,72)",
"elevation": 0,
"n": 916
},
987: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,73)",
"elevation": 0,
"e": 916
},
840: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,71)",
"elevation": 0,
"e": 750,
"w": 887
},
887: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,71)",
"elevation": 0,
"e": 840,
"w": 949
},
949: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,71)",
"elevation": 0,
"e": 887
},
738: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,68)",
"elevation": 0,
"n": 668
},
688: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,69)",
"elevation": 0,
"n": 745,
"e": 668,
"w": 730
},
745: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,70)",
"elevation": 0,
"s": 688,
"w": 792
},
792: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,70)",
"elevation": 0,
"e": 745
},
730: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,69)",
"elevation": 0,
"e": 688
},
558: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,66)",
"elevation": 0,
"e": 551,
"w": 587
},
587: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,66)",
"elevation": 0,
"n": 594,
"e": 558,
"w": 592
},
594: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,67)",
"elevation": 0,
"n": 649,
"s": 587,
"e": 622,
"w": 641
},
649: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,68)",
"elevation": 0,
"s": 594
},
622: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,67)",
"elevation": 0,
"w": 594
},
641: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,67)",
"elevation": 0,
"n": 663,
"e": 594,
"w": 683
},
663: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,68)",
"elevation": 0,
"s": 641
},
683: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,67)",
"elevation": 0,
"n": 713,
"e": 641
},
713: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,68)",
"elevation": 0,
"n": 747,
"s": 683
},
747: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,69)",
"elevation": 0,
"n": 839,
"s": 713,
"w": 828
},
839: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,70)",
"elevation": 0,
"s": 747,
"w": 911
},
911: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,70)",
"elevation": 0,
"e": 839,
"w": 921
},
921: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,70)",
"elevation": 0,
"e": 911,
"w": 990
},
990: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,70)",
"elevation": 0,
"e": 921,
"w": 991
},
991: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,70)",
"elevation": 0,
"e": 990
},
828: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,69)",
"elevation": 0,
"e": 747
},
592: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,66)",
"elevation": 0,
"e": 587,
"w": 697
},
697: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,66)",
"elevation": 0,
"e": 592
},
541: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,64)",
"elevation": 0,
"n": 543,
"e": 512,
"w": 546
},
543: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,65)",
"elevation": 0,
"s": 541
},
546: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,64)",
"elevation": 0,
"n": 557,
"e": 541,
"w": 548
},
557: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,65)",
"elevation": 0,
"s": 546
},
548: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,64)",
"elevation": 0,
"n": 655,
"e": 546,
"w": 605
},
655: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,65)",
"elevation": 0,
"s": 548
},
605: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,64)",
"elevation": 0,
"n": 679,
"e": 548,
"w": 611
},
679: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,65)",
"elevation": 0,
"s": 605
},
611: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,64)",
"elevation": 0,
"n": 656,
"e": 605,
"w": 624
},
656: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,65)",
"elevation": 0,
"n": 727,
"s": 611
},
727: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,66)",
"elevation": 0,
"n": 759,
"s": 656
},
759: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,67)",
"elevation": 0,
"n": 880,
"s": 727
},
880: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,68)",
"elevation": 0,
"s": 759,
"w": 886
},
886: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,68)",
"elevation": 0,
"e": 880
},
624: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,64)",
"elevation": 0,
"n": 689,
"e": 611
},
689: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,65)",
"elevation": 0,
"s": 624
},
516: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,63)",
"elevation": 0,
"s": 528,
"e": 511,
"w": 527
},
528: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(58,62)",
"elevation": 0,
"n": 516,
"s": 555,
"w": 535
},
555: {
"title": "Wishing Well",
"description": "You are standing besides a large well. A sign next the well reads 'EXAMINE WELL, FIND WEALTH'.",
"terrain": "NORMAL",
"coordinates": "(58,61)",
"elevation": 0,
"n": 528
},
535: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,62)",
"elevation": 0,
"e": 528,
"w": 562
},
562: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,62)",
"elevation": 0,
"e": 535,
"w": 566
},
566: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,62)",
"elevation": 0,
"s": 596,
"e": 562,
"w": 581
},
596: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,61)",
"elevation": 0,
"n": 566,
"w": 597
},
597: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,61)",
"elevation": 0,
"s": 626,
"e": 596,
"w": 657
},
626: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,60)",
"elevation": 0,
"n": 597
},
657: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,61)",
"elevation": 0,
"s": 705,
"e": 597
},
705: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,60)",
"elevation": 0,
"n": 657,
"w": 708
},
708: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,60)",
"elevation": 0,
"e": 705
},
581: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,62)",
"elevation": 0,
"e": 566,
"w": 614
},
614: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,62)",
"elevation": 0,
"e": 581
},
527: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(57,63)",
"elevation": 0,
"e": 516,
"w": 537
},
537: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(56,63)",
"elevation": 0,
"e": 527,
"w": 547
},
547: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(55,63)",
"elevation": 0,
"e": 537,
"w": 575
},
575: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(54,63)",
"elevation": 0,
"e": 547,
"w": 613
},
613: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,63)",
"elevation": 0,
"e": 575,
"w": 616
},
616: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,63)",
"elevation": 0,
"n": 638,
"s": 620,
"e": 613,
"w": 628
},
638: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,64)",
"elevation": 0,
"n": 647,
"s": 616
},
647: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,65)",
"elevation": 0,
"n": 666,
"s": 638,
"w": 701
},
666: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,66)",
"elevation": 0,
"n": 833,
"s": 647,
"e": 729,
"w": 803
},
833: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,67)",
"elevation": 0,
"n": 900,
"s": 666
},
900: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,68)",
"elevation": 0,
"n": 928,
"s": 833
},
928: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,69)",
"elevation": 0,
"s": 900
},
729: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,66)",
"elevation": 0,
"n": 731,
"w": 666
},
731: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(53,67)",
"elevation": 0,
"s": 729
},
803: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,66)",
"elevation": 0,
"n": 834,
"e": 666
},
834: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,67)",
"elevation": 0,
"n": 905,
"s": 803
},
905: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,68)",
"elevation": 0,
"n": 977,
"s": 834
},
977: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,69)",
"elevation": 0,
"s": 905
},
701: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,65)",
"elevation": 0,
"e": 647
},
620: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,62)",
"elevation": 0,
"n": 616,
"s": 660,
"w": 692
},
660: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(52,61)",
"elevation": 0,
"n": 620
},
692: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,62)",
"elevation": 0,
"s": 698,
"e": 620,
"w": 710
},
698: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,61)",
"elevation": 0,
"n": 692,
"s": 714,
"w": 742
},
714: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,60)",
"elevation": 0,
"n": 698,
"w": 783
},
783: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(50,60)",
"elevation": 0,
"e": 714,
"w": 871
},
871: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(49,60)",
"elevation": 0,
"s": 942,
"e": 783
},
942: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(49,59)",
"elevation": 0,
"n": 871
},
742: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(50,61)",
"elevation": 0,
"e": 698,
"w": 843
},
843: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(49,61)",
"elevation": 0,
"e": 742
},
710: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(50,62)",
"elevation": 0,
"e": 692
},
628: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,63)",
"elevation": 0,
"n": 671,
"e": 616,
"w": 681
},
671: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(51,64)",
"elevation": 0,
"s": 628,
"w": 781
},
781: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(50,64)",
"elevation": 0,
"n": 787,
"e": 671
},
787: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(50,65)",
"elevation": 0,
"n": 861,
"s": 781
},
861: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(50,66)",
"elevation": 0,
"n": 930,
"s": 787,
"w": 862
},
930: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(50,67)",
"elevation": 0,
"s": 861
},
862: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(49,66)",
"elevation": 0,
"n": 878,
"e": 861
},
878: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(49,67)",
"elevation": 0,
"s": 862
},
681: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(50,63)",
"elevation": 0,
"e": 628,
"w": 685
},
685: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(49,63)",
"elevation": 0,
"n": 767,
"s": 744,
"e": 681,
"w": 725
},
767: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(49,64)",
"elevation": 0,
"n": 796,
"s": 685,
"w": 819
},
796: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(49,65)",
"elevation": 0,
"s": 767,
"w": 850
},
850: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(48,65)",
"elevation": 0,
"n": 954,
"e": 796,
"w": 973
},
954: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(48,66)",
"elevation": 0,
"s": 850
},
973: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(47,65)",
"elevation": 0,
"n": 981,
"e": 850
},
981: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(47,66)",
"elevation": 0,
"s": 973
},
819: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(48,64)",
"elevation": 0,
"e": 767,
"w": 893
},
893: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(47,64)",
"elevation": 0,
"e": 819,
"w": 944
},
944: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(46,64)",
"elevation": 0,
"e": 893
},
744: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(49,62)",
"elevation": 0,
"n": 685,
"w": 797
},
797: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(48,62)",
"elevation": 0,
"s": 812,
"e": 744,
"w": 807
},
812: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(48,61)",
"elevation": 0,
"n": 797,
"s": 892
},
892: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(48,60)",
"elevation": 0,
"n": 812,
"s": 943
},
943: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(48,59)",
"elevation": 0,
"n": 892,
"w": 952
},
952: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(47,59)",
"elevation": 0,
"e": 943
},
807: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(47,62)",
"elevation": 0,
"n": 856,
"s": 864,
"e": 797,
"w": 869
},
856: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(47,63)",
"elevation": 0,
"s": 807
},
864: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(47,61)",
"elevation": 0,
"n": 807,
"s": 927
},
927: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(47,60)",
"elevation": 0,
"n": 864
},
869: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(46,62)",
"elevation": 0,
"e": 807
},
725: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(48,63)",
"elevation": 0,
"e": 685
},
652: {
"title": "Darkness",
"description": "You are standing on grass and surrounded by darkness.",
"terrain": "NORMAL",
"coordinates": "(65,62)",
"elevation": 0,
"w": 609
}
}
| underworld_graph = {992: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(75,61)', 'elevation': 0, 'w': 966}, 966: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(74,61)', 'elevation': 0, 'e': 992, 'w': 960}, 960: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(73,61)', 'elevation': 0, 'e': 966, 'w': 956}, 956: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(72,61)', 'elevation': 0, 'e': 960, 'w': 902}, 902: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(71,61)', 'elevation': 0, 'e': 956, 'w': 874}, 874: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(70,61)', 'elevation': 0, 'e': 902, 'w': 762}, 762: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(69,61)', 'elevation': 0, 'e': 874, 'w': 728}, 728: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(68,61)', 'elevation': 0, 'n': 741, 'e': 762, 'w': 724}, 741: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(68,62)', 'elevation': 0, 's': 728, 'e': 793}, 793: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(69,62)', 'elevation': 0, 'n': 808, 'e': 901, 'w': 741}, 808: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(69,63)', 'elevation': 0, 'n': 821, 's': 793, 'e': 920}, 821: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(69,64)', 'elevation': 0, 'n': 974, 's': 808, 'e': 953}, 974: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(69,65)', 'elevation': 0, 's': 821}, 953: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(70,64)', 'elevation': 0, 'w': 821}, 920: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(70,63)', 'elevation': 0, 'e': 946, 'w': 808}, 946: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(71,63)', 'elevation': 0, 'w': 920}, 901: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(70,62)', 'elevation': 0, 'w': 793}, 724: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,61)', 'elevation': 0, 'n': 737, 's': 748, 'e': 728, 'w': 711}, 737: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,62)', 'elevation': 0, 'n': 756, 's': 724}, 756: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,63)', 'elevation': 0, 's': 737, 'e': 868}, 868: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(68,63)', 'elevation': 0, 'n': 885, 'w': 756}, 885: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(68,64)', 'elevation': 0, 's': 868}, 748: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,60)', 'elevation': 0, 'n': 724, 's': 772, 'e': 764}, 772: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,59)', 'elevation': 0, 'n': 748, 's': 780}, 780: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,58)', 'elevation': 0, 'n': 772, 's': 818}, 818: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,57)', 'elevation': 0, 'n': 780, 's': 877, 'e': 829}, 877: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,56)', 'elevation': 0, 'n': 818, 's': 997, 'e': 937}, 997: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,55)', 'elevation': 0, 'n': 877}, 937: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(68,56)', 'elevation': 0, 'w': 877}, 829: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(68,57)', 'elevation': 0, 'e': 912, 'w': 818}, 912: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(69,57)', 'elevation': 0, 'w': 829}, 764: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(68,60)', 'elevation': 0, 's': 769, 'e': 848, 'w': 748}, 769: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(68,59)', 'elevation': 0, 'n': 764, 's': 799, 'e': 847}, 799: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(68,58)', 'elevation': 0, 'n': 769, 'e': 908}, 908: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(69,58)', 'elevation': 0, 'w': 799}, 847: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(69,59)', 'elevation': 0, 'w': 769}, 848: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(69,60)', 'elevation': 0, 'e': 853, 'w': 764}, 853: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(70,60)', 'elevation': 0, 's': 958, 'e': 939, 'w': 848}, 958: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(70,59)', 'elevation': 0, 'n': 853, 's': 972}, 972: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(70,58)', 'elevation': 0, 'n': 958}, 939: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(71,60)', 'elevation': 0, 'w': 853}, 711: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,61)', 'elevation': 0, 'n': 721, 'e': 724, 'w': 633}, 721: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,62)', 'elevation': 0, 's': 711}, 633: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,61)', 'elevation': 0, 'e': 711, 'w': 623}, 623: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,61)', 'elevation': 0, 'n': 609, 'e': 633}, 609: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,62)', 'elevation': 0, 'n': 603, 's': 623, 'e': 652}, 603: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,63)', 'elevation': 0, 'n': 618, 's': 609, 'w': 520}, 618: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,64)', 'elevation': 0, 's': 603, 'e': 631}, 631: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,64)', 'elevation': 0, 's': 646, 'w': 618}, 646: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,63)', 'elevation': 0, 'n': 631, 'e': 662}, 662: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,63)', 'elevation': 0, 'n': 675, 'w': 646}, 675: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,64)', 'elevation': 0, 's': 662, 'e': 768}, 768: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,64)', 'elevation': 0, 'w': 675}, 520: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,63)', 'elevation': 0, 'n': 579, 'e': 603, 'w': 519}, 579: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,64)', 'elevation': 0, 'n': 601, 's': 520}, 601: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,65)', 'elevation': 0, 'n': 617, 's': 579, 'e': 629}, 617: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,66)', 'elevation': 0, 'n': 645, 's': 601}, 645: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,67)', 'elevation': 0, 's': 617}, 629: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,65)', 'elevation': 0, 'n': 684, 'e': 667, 'w': 601}, 684: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,66)', 'elevation': 0, 'n': 718, 's': 629, 'e': 687}, 718: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,67)', 'elevation': 0, 'n': 734, 's': 684, 'e': 782}, 734: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,68)', 'elevation': 0, 's': 718}, 782: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,67)', 'elevation': 0, 'w': 718}, 687: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,66)', 'elevation': 0, 'e': 806, 'w': 684}, 806: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,66)', 'elevation': 0, 'n': 909, 'w': 687}, 909: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,67)', 'elevation': 0, 'n': 910, 's': 806, 'e': 917}, 910: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,68)', 'elevation': 0, 's': 909}, 917: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,67)', 'elevation': 0, 'e': 929, 'w': 909}, 929: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(68,67)', 'elevation': 0, 'w': 917}, 667: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,65)', 'elevation': 0, 'e': 717, 'w': 629}, 717: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,65)', 'elevation': 0, 'e': 820, 'w': 667}, 820: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,65)', 'elevation': 0, 'n': 866, 'e': 876, 'w': 717}, 866: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,66)', 'elevation': 0, 's': 820}, 876: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(68,65)', 'elevation': 0, 'w': 820}, 519: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,63)', 'elevation': 0, 'n': 563, 's': 583, 'e': 520, 'w': 518}, 563: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,64)', 'elevation': 0, 's': 519}, 583: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,62)', 'elevation': 0, 'n': 519, 'e': 595}, 595: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,62)', 'elevation': 0, 'w': 583}, 518: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,63)', 'elevation': 0, 'e': 519, 'w': 507}, 507: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,63)', 'elevation': 0, 'n': 514, 's': 506, 'e': 518, 'w': 511}, 514: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,64)', 'elevation': 0, 'n': 521, 's': 507, 'e': 515}, 521: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,65)', 'elevation': 0, 'n': 522, 's': 514}, 522: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,66)', 'elevation': 0, 'n': 536, 's': 521}, 536: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,67)', 'elevation': 0, 'n': 658, 's': 522}, 658: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,68)', 'elevation': 0, 'n': 678, 's': 536, 'e': 672}, 678: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,69)', 'elevation': 0, 's': 658, 'e': 703}, 703: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,69)', 'elevation': 0, 'n': 709, 'e': 733, 'w': 678}, 709: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,70)', 'elevation': 0, 'n': 736, 's': 703, 'e': 712}, 736: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,71)', 'elevation': 0, 's': 709, 'e': 786}, 786: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,71)', 'elevation': 0, 'n': 798, 'e': 961, 'w': 736}, 798: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,72)', 'elevation': 0, 'n': 889, 's': 786}, 889: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,73)', 'elevation': 0, 'n': 919, 's': 798, 'e': 923, 'w': 915}, 919: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,74)', 'elevation': 0, 's': 889}, 923: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,73)', 'elevation': 0, 'w': 889}, 915: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,73)', 'elevation': 0, 'e': 889}, 961: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,71)', 'elevation': 0, 'w': 786}, 712: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,70)', 'elevation': 0, 'e': 739, 'w': 709}, 739: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,70)', 'elevation': 0, 'w': 712}, 733: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,69)', 'elevation': 0, 'e': 740, 'w': 703}, 740: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,69)', 'elevation': 0, 's': 770, 'e': 751, 'w': 733}, 770: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,68)', 'elevation': 0, 'n': 740}, 751: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,69)', 'elevation': 0, 'n': 810, 'e': 794, 'w': 740}, 810: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,70)', 'elevation': 0, 's': 751}, 794: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,69)', 'elevation': 0, 'n': 802, 's': 896, 'e': 841, 'w': 751}, 802: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,70)', 'elevation': 0, 'n': 830, 's': 794, 'e': 865}, 830: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,71)', 'elevation': 0, 's': 802}, 865: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,70)', 'elevation': 0, 'n': 924, 'e': 897, 'w': 802}, 924: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,71)', 'elevation': 0, 's': 865, 'e': 979}, 979: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,71)', 'elevation': 0, 'w': 924}, 897: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,70)', 'elevation': 0, 'e': 986, 'w': 865}, 986: {'title': 'Snitch Board', 'description': 'A generic board stands before you with a golden snitch carved into the top.', 'terrain': 'NORMAL', 'coordinates': '(68,70)', 'elevation': 0, 'w': 897}, 896: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,68)', 'elevation': 0, 'n': 794}, 841: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,69)', 'elevation': 0, 'e': 962, 'w': 794}, 962: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,69)', 'elevation': 0, 's': 963, 'w': 841}, 963: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,68)', 'elevation': 0, 'n': 962, 'e': 982}, 982: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(68,68)', 'elevation': 0, 'n': 995, 'w': 963}, 995: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(68,69)', 'elevation': 0, 's': 982, 'e': 996}, 996: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(69,69)', 'elevation': 0, 'w': 995}, 672: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,68)', 'elevation': 0, 'w': 658}, 515: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,64)', 'elevation': 0, 'n': 576, 'w': 514}, 576: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,65)', 'elevation': 0, 'n': 582, 's': 515, 'e': 578}, 582: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,66)', 'elevation': 0, 'n': 642, 's': 576, 'e': 644}, 642: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,67)', 'elevation': 0, 's': 582}, 644: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,66)', 'elevation': 0, 'n': 664, 'w': 582}, 664: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,67)', 'elevation': 0, 'n': 680, 's': 644}, 680: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,68)', 'elevation': 0, 's': 664}, 578: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,65)', 'elevation': 0, 'w': 576}, 506: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,62)', 'elevation': 0, 'n': 507, 's': 504, 'e': 531, 'w': 529}, 504: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,61)', 'elevation': 0, 'n': 506, 's': 500, 'e': 544, 'w': 523}, 500: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,60)', 'elevation': 0, 'n': 504, 's': 502, 'e': 503, 'w': 501}, 502: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,59)', 'elevation': 0, 'n': 500, 's': 508, 'e': 505, 'w': 509}, 508: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,58)', 'elevation': 0, 'n': 502, 's': 561}, 561: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,57)', 'elevation': 0, 'n': 508, 's': 571}, 571: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,56)', 'elevation': 0, 'n': 561, 's': 584}, 584: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,55)', 'elevation': 0, 'n': 571, 's': 669}, 669: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,54)', 'elevation': 0, 'n': 584, 's': 695}, 695: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,53)', 'elevation': 0, 'n': 669, 's': 757, 'e': 696}, 757: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,52)', 'elevation': 0, 'n': 695, 's': 814}, 814: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,51)', 'elevation': 0, 'n': 757, 's': 849}, 849: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,50)', 'elevation': 0, 'n': 814, 'e': 955}, 955: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,50)', 'elevation': 0, 'w': 849}, 696: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,53)', 'elevation': 0, 's': 753, 'w': 695}, 753: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,52)', 'elevation': 0, 'n': 696, 's': 784, 'e': 775}, 784: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,51)', 'elevation': 0, 'n': 753}, 775: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,52)', 'elevation': 0, 's': 823, 'e': 790, 'w': 753}, 823: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,51)', 'elevation': 0, 'n': 775, 'e': 824}, 824: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,51)', 'elevation': 0, 's': 827, 'w': 823}, 827: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,50)', 'elevation': 0, 'n': 824, 's': 832, 'e': 904, 'w': 985}, 832: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,49)', 'elevation': 0, 'n': 827, 's': 932, 'e': 844, 'w': 888}, 932: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,48)', 'elevation': 0, 'n': 832, 'e': 950}, 950: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,48)', 'elevation': 0, 'w': 932}, 844: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,49)', 'elevation': 0, 'w': 832}, 888: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,49)', 'elevation': 0, 'e': 832, 'w': 936}, 936: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,49)', 'elevation': 0, 's': 988, 'e': 888}, 988: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,48)', 'elevation': 0, 'n': 936}, 904: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,50)', 'elevation': 0, 'e': 976, 'w': 827}, 976: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,50)', 'elevation': 0, 'w': 904}, 985: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,50)', 'elevation': 0, 'e': 827}, 790: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,52)', 'elevation': 0, 'e': 835, 'w': 775}, 835: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,52)', 'elevation': 0, 'e': 883, 'w': 790}, 883: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,52)', 'elevation': 0, 's': 890, 'e': 891, 'w': 835}, 890: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,51)', 'elevation': 0, 'n': 883, 'w': 926}, 926: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,51)', 'elevation': 0, 'e': 890}, 891: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,52)', 'elevation': 0, 's': 969, 'w': 883}, 969: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,51)', 'elevation': 0, 'n': 891, 'e': 984}, 984: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,51)', 'elevation': 0, 'w': 969}, 505: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,59)', 'elevation': 0, 'e': 525, 'w': 502}, 525: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,59)', 'elevation': 0, 'n': 560, 's': 542, 'e': 533, 'w': 505}, 560: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,60)', 'elevation': 0, 's': 525, 'e': 602}, 602: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,60)', 'elevation': 0, 'e': 612, 'w': 560}, 612: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,60)', 'elevation': 0, 's': 637, 'e': 635, 'w': 602}, 637: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,59)', 'elevation': 0, 'n': 612, 's': 651, 'e': 650}, 651: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,58)', 'elevation': 0, 'n': 637, 'e': 674}, 674: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,58)', 'elevation': 0, 'e': 778, 'w': 651}, 778: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,58)', 'elevation': 0, 's': 815, 'w': 674}, 815: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,57)', 'elevation': 0, 'n': 778, 's': 825}, 825: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,56)', 'elevation': 0, 'n': 815, 's': 854}, 854: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,55)', 'elevation': 0, 'n': 825}, 650: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,59)', 'elevation': 0, 'e': 758, 'w': 637}, 758: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,59)', 'elevation': 0, 'w': 650}, 635: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,60)', 'elevation': 0, 'e': 720, 'w': 612}, 720: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,60)', 'elevation': 0, 'w': 635}, 542: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,58)', 'elevation': 0, 'n': 525, 's': 549, 'w': 554}, 549: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,57)', 'elevation': 0, 'n': 542, 's': 556}, 556: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,56)', 'elevation': 0, 'n': 549, 's': 600, 'e': 598}, 600: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,55)', 'elevation': 0, 'n': 556, 's': 648, 'e': 610}, 648: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,54)', 'elevation': 0, 'n': 600, 's': 735, 'w': 673}, 735: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,53)', 'elevation': 0, 'n': 648}, 673: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,54)', 'elevation': 0, 'e': 648}, 610: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,55)', 'elevation': 0, 's': 732, 'w': 600}, 732: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,54)', 'elevation': 0, 'n': 610, 's': 779}, 779: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,53)', 'elevation': 0, 'n': 732}, 598: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,56)', 'elevation': 0, 'e': 659, 'w': 556}, 659: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,56)', 'elevation': 0, 's': 665, 'e': 754, 'w': 598}, 665: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,55)', 'elevation': 0, 'n': 659, 's': 723, 'e': 700}, 723: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,54)', 'elevation': 0, 'n': 665, 's': 816}, 816: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,53)', 'elevation': 0, 'n': 723}, 700: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,55)', 'elevation': 0, 's': 813, 'w': 665}, 813: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,54)', 'elevation': 0, 'n': 700, 's': 831, 'e': 858}, 831: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,53)', 'elevation': 0, 'n': 813}, 858: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,54)', 'elevation': 0, 's': 907, 'e': 879, 'w': 813}, 907: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(66,53)', 'elevation': 0, 'n': 858, 'e': 925}, 925: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,53)', 'elevation': 0, 's': 965, 'w': 907}, 965: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,52)', 'elevation': 0, 'n': 925, 'e': 980}, 980: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(68,52)', 'elevation': 0, 's': 999, 'w': 965}, 999: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(68,51)', 'elevation': 0, 'n': 980}, 879: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(67,54)', 'elevation': 0, 'w': 858}, 754: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,56)', 'elevation': 0, 'w': 659}, 554: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,58)', 'elevation': 0, 's': 567, 'e': 542}, 567: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,57)', 'elevation': 0, 'n': 554, 's': 574}, 574: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,56)', 'elevation': 0, 'n': 567, 's': 588}, 588: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,55)', 'elevation': 0, 'n': 574}, 533: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,59)', 'elevation': 0, 's': 539, 'w': 525}, 539: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,58)', 'elevation': 0, 'n': 533, 's': 540}, 540: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,57)', 'elevation': 0, 'n': 539, 'e': 585}, 585: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(64,57)', 'elevation': 0, 'e': 682, 'w': 540}, 682: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,57)', 'elevation': 0, 'w': 585}, 509: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,59)', 'elevation': 0, 's': 524, 'e': 502, 'w': 510}, 524: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,58)', 'elevation': 0, 'n': 509, 's': 545, 'w': 526}, 545: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,57)', 'elevation': 0, 'n': 524, 's': 565}, 565: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,56)', 'elevation': 0, 'n': 545, 's': 590}, 590: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,55)', 'elevation': 0, 'n': 565, 's': 625}, 625: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,54)', 'elevation': 0, 'n': 590, 's': 699}, 699: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,53)', 'elevation': 0, 'n': 625, 's': 809}, 809: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,52)', 'elevation': 0, 'n': 699}, 526: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,58)', 'elevation': 0, 's': 538, 'e': 524, 'w': 530}, 538: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,57)', 'elevation': 0, 'n': 526, 's': 564}, 564: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,56)', 'elevation': 0, 'n': 538, 's': 586}, 586: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,55)', 'elevation': 0, 'n': 564, 's': 619, 'w': 599}, 619: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,54)', 'elevation': 0, 'n': 586, 's': 670}, 670: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,53)', 'elevation': 0, 'n': 619, 's': 707}, 707: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,52)', 'elevation': 0, 'n': 670, 's': 719}, 719: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,51)', 'elevation': 0, 'n': 707, 's': 749, 'e': 800}, 749: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,50)', 'elevation': 0, 'n': 719, 's': 859, 'e': 822}, 859: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,49)', 'elevation': 0, 'n': 749, 's': 938}, 938: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,48)', 'elevation': 0, 'n': 859, 's': 975}, 975: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,47)', 'elevation': 0, 'n': 938, 's': 983}, 983: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,46)', 'elevation': 0, 'n': 975}, 822: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,50)', 'elevation': 0, 's': 872, 'w': 749}, 872: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,49)', 'elevation': 0, 'n': 822, 's': 906, 'e': 968}, 906: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,48)', 'elevation': 0, 'n': 872}, 968: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,49)', 'elevation': 0, 'w': 872}, 800: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,51)', 'elevation': 0, 'w': 719}, 599: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,55)', 'elevation': 0, 's': 632, 'e': 586}, 632: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,54)', 'elevation': 0, 'n': 599, 's': 654}, 654: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,53)', 'elevation': 0, 'n': 632, 's': 677}, 677: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,52)', 'elevation': 0, 'n': 654, 's': 691}, 691: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,51)', 'elevation': 0, 'n': 677, 's': 716, 'w': 704}, 716: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,50)', 'elevation': 0, 'n': 691, 's': 836, 'w': 761}, 836: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,49)', 'elevation': 0, 'n': 716, 's': 860}, 860: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,48)', 'elevation': 0, 'n': 836, 's': 941}, 941: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,47)', 'elevation': 0, 'n': 860, 's': 947}, 947: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,46)', 'elevation': 0, 'n': 941}, 761: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,50)', 'elevation': 0, 's': 863, 'e': 716, 'w': 837}, 863: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,49)', 'elevation': 0, 'n': 761, 's': 913, 'w': 873}, 913: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,48)', 'elevation': 0, 'n': 863, 's': 922}, 922: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,47)', 'elevation': 0, 'n': 913, 's': 964, 'w': 959}, 964: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,46)', 'elevation': 0, 'n': 922}, 959: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,47)', 'elevation': 0, 'e': 922}, 873: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,49)', 'elevation': 0, 's': 914, 'e': 863, 'w': 899}, 914: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,48)', 'elevation': 0, 'n': 873}, 899: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,49)', 'elevation': 0, 'e': 873}, 837: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,50)', 'elevation': 0, 'e': 761, 'w': 948}, 948: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,50)', 'elevation': 0, 'e': 837, 'w': 998}, 998: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,50)', 'elevation': 0, 'e': 948}, 704: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,51)', 'elevation': 0, 'e': 691, 'w': 774}, 774: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,51)', 'elevation': 0, 'e': 704, 'w': 842}, 842: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,51)', 'elevation': 0, 'e': 774}, 530: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,58)', 'elevation': 0, 's': 577, 'e': 526, 'w': 559}, 577: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,57)', 'elevation': 0, 'n': 530, 's': 589}, 589: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,56)', 'elevation': 0, 'n': 577}, 559: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,58)', 'elevation': 0, 's': 572, 'e': 530, 'w': 569}, 572: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,57)', 'elevation': 0, 'n': 559, 's': 621, 'w': 607}, 621: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,56)', 'elevation': 0, 'n': 572, 's': 634}, 634: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,55)', 'elevation': 0, 'n': 621, 's': 639, 'w': 636}, 639: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,54)', 'elevation': 0, 'n': 634, 's': 653, 'w': 702}, 653: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,53)', 'elevation': 0, 'n': 639, 's': 661, 'w': 690}, 661: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,52)', 'elevation': 0, 'n': 653, 'w': 788}, 788: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,52)', 'elevation': 0, 'e': 661, 'w': 867}, 867: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,52)', 'elevation': 0, 'e': 788, 'w': 881}, 881: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,52)', 'elevation': 0, 's': 898, 'e': 867, 'w': 884}, 898: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,51)', 'elevation': 0, 'n': 881}, 884: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,52)', 'elevation': 0, 'e': 881}, 690: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,53)', 'elevation': 0, 'e': 653, 'w': 817}, 817: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,53)', 'elevation': 0, 'e': 690}, 702: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,54)', 'elevation': 0, 'e': 639, 'w': 715}, 715: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,54)', 'elevation': 0, 'e': 702, 'w': 791}, 791: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,54)', 'elevation': 0, 's': 855, 'e': 715, 'w': 852}, 855: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,53)', 'elevation': 0, 'n': 791}, 852: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,54)', 'elevation': 0, 's': 903, 'e': 791, 'w': 978}, 903: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,53)', 'elevation': 0, 'n': 852, 'w': 951}, 951: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,53)', 'elevation': 0, 'e': 903}, 978: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,54)', 'elevation': 0, 'e': 852}, 636: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,55)', 'elevation': 0, 'e': 634}, 607: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,57)', 'elevation': 0, 's': 640, 'e': 572, 'w': 630}, 640: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,56)', 'elevation': 0, 'n': 607, 'w': 693}, 693: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,56)', 'elevation': 0, 's': 694, 'e': 640, 'w': 765}, 694: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,55)', 'elevation': 0, 'n': 693}, 765: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,56)', 'elevation': 0, 's': 870, 'e': 693}, 870: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,55)', 'elevation': 0, 'n': 765, 'w': 882}, 882: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,55)', 'elevation': 0, 'e': 870}, 630: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,57)', 'elevation': 0, 'e': 607, 'w': 755}, 755: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,57)', 'elevation': 0, 'e': 630, 'w': 766}, 766: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,57)', 'elevation': 0, 's': 931, 'e': 755, 'w': 857}, 931: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,56)', 'elevation': 0, 'n': 766}, 857: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,57)', 'elevation': 0, 's': 875, 'e': 766, 'w': 918}, 875: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,56)', 'elevation': 0, 'n': 857, 's': 989}, 989: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,55)', 'elevation': 0, 'n': 875}, 918: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(50,57)', 'elevation': 0, 'n': 933, 'e': 857, 'w': 994}, 933: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(50,58)', 'elevation': 0, 's': 918}, 994: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(49,57)', 'elevation': 0, 'e': 918}, 569: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,58)', 'elevation': 0, 'e': 559, 'w': 615}, 615: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,58)', 'elevation': 0, 'e': 569}, 510: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,59)', 'elevation': 0, 'n': 517, 'e': 509, 'w': 513}, 517: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,60)', 'elevation': 0, 's': 510}, 513: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,59)', 'elevation': 0, 'n': 550, 'e': 510, 'w': 532}, 550: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,60)', 'elevation': 0, 'n': 570, 's': 513}, 570: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,61)', 'elevation': 0, 's': 550}, 532: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,59)', 'elevation': 0, 'n': 553, 'e': 513, 'w': 568}, 553: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,60)', 'elevation': 0, 'n': 593, 's': 532}, 593: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,61)', 'elevation': 0, 's': 553}, 568: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,59)', 'elevation': 0, 'n': 573, 'e': 532, 'w': 580}, 573: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,60)', 'elevation': 0, 's': 568}, 580: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,59)', 'elevation': 0, 'e': 568, 'w': 606}, 606: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,59)', 'elevation': 0, 's': 608, 'e': 580, 'w': 722}, 608: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,58)', 'elevation': 0, 'n': 606, 'w': 752}, 752: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,58)', 'elevation': 0, 'e': 608}, 722: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,59)', 'elevation': 0, 'e': 606, 'w': 763}, 763: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,59)', 'elevation': 0, 's': 826, 'e': 722, 'w': 846}, 826: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,58)', 'elevation': 0, 'n': 763}, 846: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(50,59)', 'elevation': 0, 'e': 763}, 503: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,60)', 'elevation': 0, 'w': 500}, 501: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,60)', 'elevation': 0, 'e': 500}, 544: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,61)', 'elevation': 0, 'e': 552, 'w': 504}, 552: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(62,61)', 'elevation': 0, 'e': 604, 'w': 544}, 604: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(63,61)', 'elevation': 0, 'w': 552}, 523: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,61)', 'elevation': 0, 'e': 504}, 531: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,62)', 'elevation': 0, 'w': 506}, 529: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,62)', 'elevation': 0, 'e': 506}, 511: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,63)', 'elevation': 0, 'n': 512, 'e': 507, 'w': 516}, 512: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,64)', 'elevation': 0, 'n': 534, 's': 511, 'w': 541}, 534: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,65)', 'elevation': 0, 'n': 551, 's': 512}, 551: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,66)', 'elevation': 0, 'n': 591, 's': 534, 'w': 558}, 591: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,67)', 'elevation': 0, 'n': 627, 's': 551}, 627: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,68)', 'elevation': 0, 'n': 643, 's': 591}, 643: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,69)', 'elevation': 0, 'n': 676, 's': 627, 'w': 668}, 676: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,70)', 'elevation': 0, 'n': 726, 's': 643, 'e': 686}, 726: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,71)', 'elevation': 0, 'n': 773, 's': 676, 'e': 746}, 773: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,72)', 'elevation': 0, 'n': 789, 's': 726}, 789: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,73)', 'elevation': 0, 's': 773, 'e': 795}, 795: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,73)', 'elevation': 0, 'n': 804, 'w': 789}, 804: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,74)', 'elevation': 0, 'n': 971, 's': 795, 'e': 970, 'w': 811}, 971: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,75)', 'elevation': 0, 's': 804}, 970: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,74)', 'elevation': 0, 'w': 804}, 811: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(59,74)', 'elevation': 0, 'e': 804, 'w': 934}, 934: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,74)', 'elevation': 0, 'n': 945, 'e': 811}, 945: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,75)', 'elevation': 0, 'n': 967, 's': 934}, 967: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,76)', 'elevation': 0, 's': 945}, 746: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,71)', 'elevation': 0, 'n': 771, 'w': 726}, 771: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,72)', 'elevation': 0, 's': 746, 'e': 801}, 801: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(61,72)', 'elevation': 0, 'w': 771}, 686: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(60,70)', 'elevation': 0, 'w': 676}, 668: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,69)', 'elevation': 0, 'n': 706, 's': 738, 'e': 643, 'w': 688}, 706: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,70)', 'elevation': 0, 'n': 743, 's': 668}, 743: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,71)', 'elevation': 0, 'n': 760, 's': 706, 'w': 750}, 760: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,72)', 'elevation': 0, 's': 743}, 750: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,71)', 'elevation': 0, 'n': 776, 'e': 743, 'w': 840}, 776: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,72)', 'elevation': 0, 'n': 777, 's': 750, 'w': 805}, 777: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,73)', 'elevation': 0, 's': 776, 'e': 785, 'w': 894}, 785: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,73)', 'elevation': 0, 'w': 777}, 894: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,73)', 'elevation': 0, 'n': 935, 'e': 777}, 935: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,74)', 'elevation': 0, 'n': 957, 's': 894}, 957: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,75)', 'elevation': 0, 's': 935}, 805: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,72)', 'elevation': 0, 'e': 776, 'w': 838}, 838: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,72)', 'elevation': 0, 'n': 851, 'e': 805, 'w': 845}, 851: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,73)', 'elevation': 0, 'n': 940, 's': 838}, 940: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,74)', 'elevation': 0, 's': 851}, 845: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,72)', 'elevation': 0, 'n': 895, 'e': 838}, 895: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,73)', 'elevation': 0, 's': 845, 'w': 916}, 916: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,73)', 'elevation': 0, 's': 993, 'e': 895, 'w': 987}, 993: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,72)', 'elevation': 0, 'n': 916}, 987: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,73)', 'elevation': 0, 'e': 916}, 840: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,71)', 'elevation': 0, 'e': 750, 'w': 887}, 887: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,71)', 'elevation': 0, 'e': 840, 'w': 949}, 949: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,71)', 'elevation': 0, 'e': 887}, 738: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,68)', 'elevation': 0, 'n': 668}, 688: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,69)', 'elevation': 0, 'n': 745, 'e': 668, 'w': 730}, 745: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,70)', 'elevation': 0, 's': 688, 'w': 792}, 792: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,70)', 'elevation': 0, 'e': 745}, 730: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,69)', 'elevation': 0, 'e': 688}, 558: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,66)', 'elevation': 0, 'e': 551, 'w': 587}, 587: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,66)', 'elevation': 0, 'n': 594, 'e': 558, 'w': 592}, 594: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,67)', 'elevation': 0, 'n': 649, 's': 587, 'e': 622, 'w': 641}, 649: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,68)', 'elevation': 0, 's': 594}, 622: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,67)', 'elevation': 0, 'w': 594}, 641: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,67)', 'elevation': 0, 'n': 663, 'e': 594, 'w': 683}, 663: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,68)', 'elevation': 0, 's': 641}, 683: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,67)', 'elevation': 0, 'n': 713, 'e': 641}, 713: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,68)', 'elevation': 0, 'n': 747, 's': 683}, 747: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,69)', 'elevation': 0, 'n': 839, 's': 713, 'w': 828}, 839: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,70)', 'elevation': 0, 's': 747, 'w': 911}, 911: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,70)', 'elevation': 0, 'e': 839, 'w': 921}, 921: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,70)', 'elevation': 0, 'e': 911, 'w': 990}, 990: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,70)', 'elevation': 0, 'e': 921, 'w': 991}, 991: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,70)', 'elevation': 0, 'e': 990}, 828: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,69)', 'elevation': 0, 'e': 747}, 592: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,66)', 'elevation': 0, 'e': 587, 'w': 697}, 697: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,66)', 'elevation': 0, 'e': 592}, 541: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,64)', 'elevation': 0, 'n': 543, 'e': 512, 'w': 546}, 543: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,65)', 'elevation': 0, 's': 541}, 546: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,64)', 'elevation': 0, 'n': 557, 'e': 541, 'w': 548}, 557: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,65)', 'elevation': 0, 's': 546}, 548: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,64)', 'elevation': 0, 'n': 655, 'e': 546, 'w': 605}, 655: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,65)', 'elevation': 0, 's': 548}, 605: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,64)', 'elevation': 0, 'n': 679, 'e': 548, 'w': 611}, 679: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,65)', 'elevation': 0, 's': 605}, 611: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,64)', 'elevation': 0, 'n': 656, 'e': 605, 'w': 624}, 656: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,65)', 'elevation': 0, 'n': 727, 's': 611}, 727: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,66)', 'elevation': 0, 'n': 759, 's': 656}, 759: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,67)', 'elevation': 0, 'n': 880, 's': 727}, 880: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,68)', 'elevation': 0, 's': 759, 'w': 886}, 886: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,68)', 'elevation': 0, 'e': 880}, 624: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,64)', 'elevation': 0, 'n': 689, 'e': 611}, 689: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,65)', 'elevation': 0, 's': 624}, 516: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,63)', 'elevation': 0, 's': 528, 'e': 511, 'w': 527}, 528: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(58,62)', 'elevation': 0, 'n': 516, 's': 555, 'w': 535}, 555: {'title': 'Wishing Well', 'description': "You are standing besides a large well. A sign next the well reads 'EXAMINE WELL, FIND WEALTH'.", 'terrain': 'NORMAL', 'coordinates': '(58,61)', 'elevation': 0, 'n': 528}, 535: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,62)', 'elevation': 0, 'e': 528, 'w': 562}, 562: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,62)', 'elevation': 0, 'e': 535, 'w': 566}, 566: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,62)', 'elevation': 0, 's': 596, 'e': 562, 'w': 581}, 596: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,61)', 'elevation': 0, 'n': 566, 'w': 597}, 597: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,61)', 'elevation': 0, 's': 626, 'e': 596, 'w': 657}, 626: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,60)', 'elevation': 0, 'n': 597}, 657: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,61)', 'elevation': 0, 's': 705, 'e': 597}, 705: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,60)', 'elevation': 0, 'n': 657, 'w': 708}, 708: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,60)', 'elevation': 0, 'e': 705}, 581: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,62)', 'elevation': 0, 'e': 566, 'w': 614}, 614: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,62)', 'elevation': 0, 'e': 581}, 527: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(57,63)', 'elevation': 0, 'e': 516, 'w': 537}, 537: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(56,63)', 'elevation': 0, 'e': 527, 'w': 547}, 547: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(55,63)', 'elevation': 0, 'e': 537, 'w': 575}, 575: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(54,63)', 'elevation': 0, 'e': 547, 'w': 613}, 613: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,63)', 'elevation': 0, 'e': 575, 'w': 616}, 616: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,63)', 'elevation': 0, 'n': 638, 's': 620, 'e': 613, 'w': 628}, 638: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,64)', 'elevation': 0, 'n': 647, 's': 616}, 647: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,65)', 'elevation': 0, 'n': 666, 's': 638, 'w': 701}, 666: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,66)', 'elevation': 0, 'n': 833, 's': 647, 'e': 729, 'w': 803}, 833: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,67)', 'elevation': 0, 'n': 900, 's': 666}, 900: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,68)', 'elevation': 0, 'n': 928, 's': 833}, 928: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,69)', 'elevation': 0, 's': 900}, 729: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,66)', 'elevation': 0, 'n': 731, 'w': 666}, 731: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(53,67)', 'elevation': 0, 's': 729}, 803: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,66)', 'elevation': 0, 'n': 834, 'e': 666}, 834: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,67)', 'elevation': 0, 'n': 905, 's': 803}, 905: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,68)', 'elevation': 0, 'n': 977, 's': 834}, 977: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,69)', 'elevation': 0, 's': 905}, 701: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,65)', 'elevation': 0, 'e': 647}, 620: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,62)', 'elevation': 0, 'n': 616, 's': 660, 'w': 692}, 660: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(52,61)', 'elevation': 0, 'n': 620}, 692: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,62)', 'elevation': 0, 's': 698, 'e': 620, 'w': 710}, 698: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,61)', 'elevation': 0, 'n': 692, 's': 714, 'w': 742}, 714: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,60)', 'elevation': 0, 'n': 698, 'w': 783}, 783: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(50,60)', 'elevation': 0, 'e': 714, 'w': 871}, 871: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(49,60)', 'elevation': 0, 's': 942, 'e': 783}, 942: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(49,59)', 'elevation': 0, 'n': 871}, 742: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(50,61)', 'elevation': 0, 'e': 698, 'w': 843}, 843: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(49,61)', 'elevation': 0, 'e': 742}, 710: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(50,62)', 'elevation': 0, 'e': 692}, 628: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,63)', 'elevation': 0, 'n': 671, 'e': 616, 'w': 681}, 671: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(51,64)', 'elevation': 0, 's': 628, 'w': 781}, 781: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(50,64)', 'elevation': 0, 'n': 787, 'e': 671}, 787: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(50,65)', 'elevation': 0, 'n': 861, 's': 781}, 861: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(50,66)', 'elevation': 0, 'n': 930, 's': 787, 'w': 862}, 930: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(50,67)', 'elevation': 0, 's': 861}, 862: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(49,66)', 'elevation': 0, 'n': 878, 'e': 861}, 878: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(49,67)', 'elevation': 0, 's': 862}, 681: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(50,63)', 'elevation': 0, 'e': 628, 'w': 685}, 685: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(49,63)', 'elevation': 0, 'n': 767, 's': 744, 'e': 681, 'w': 725}, 767: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(49,64)', 'elevation': 0, 'n': 796, 's': 685, 'w': 819}, 796: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(49,65)', 'elevation': 0, 's': 767, 'w': 850}, 850: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(48,65)', 'elevation': 0, 'n': 954, 'e': 796, 'w': 973}, 954: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(48,66)', 'elevation': 0, 's': 850}, 973: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(47,65)', 'elevation': 0, 'n': 981, 'e': 850}, 981: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(47,66)', 'elevation': 0, 's': 973}, 819: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(48,64)', 'elevation': 0, 'e': 767, 'w': 893}, 893: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(47,64)', 'elevation': 0, 'e': 819, 'w': 944}, 944: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(46,64)', 'elevation': 0, 'e': 893}, 744: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(49,62)', 'elevation': 0, 'n': 685, 'w': 797}, 797: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(48,62)', 'elevation': 0, 's': 812, 'e': 744, 'w': 807}, 812: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(48,61)', 'elevation': 0, 'n': 797, 's': 892}, 892: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(48,60)', 'elevation': 0, 'n': 812, 's': 943}, 943: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(48,59)', 'elevation': 0, 'n': 892, 'w': 952}, 952: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(47,59)', 'elevation': 0, 'e': 943}, 807: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(47,62)', 'elevation': 0, 'n': 856, 's': 864, 'e': 797, 'w': 869}, 856: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(47,63)', 'elevation': 0, 's': 807}, 864: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(47,61)', 'elevation': 0, 'n': 807, 's': 927}, 927: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(47,60)', 'elevation': 0, 'n': 864}, 869: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(46,62)', 'elevation': 0, 'e': 807}, 725: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(48,63)', 'elevation': 0, 'e': 685}, 652: {'title': 'Darkness', 'description': 'You are standing on grass and surrounded by darkness.', 'terrain': 'NORMAL', 'coordinates': '(65,62)', 'elevation': 0, 'w': 609}} |
class Solution:
def permuteUnique(self, nums: List[int]) -> List[List[int]]:
'''
T: O(n!) and S: O(n!)
'''
def permute(nums):
n = len(nums)
if n <= 1: return [nums]
out = []
for i in range(n):
first = [nums[i]]
rem = nums[:i] + nums[i+1:]
for p in permute(rem):
out.append(first + p)
return out
out = permute(nums)
return set([tuple(item) for item in out])
| class Solution:
def permute_unique(self, nums: List[int]) -> List[List[int]]:
"""
T: O(n!) and S: O(n!)
"""
def permute(nums):
n = len(nums)
if n <= 1:
return [nums]
out = []
for i in range(n):
first = [nums[i]]
rem = nums[:i] + nums[i + 1:]
for p in permute(rem):
out.append(first + p)
return out
out = permute(nums)
return set([tuple(item) for item in out]) |
__HEXCODE = "0123456789abcdef"
def byteToHex(someValue:int) -> str:
assert isinstance(someValue, int)
someValue = someValue & 255
return __HEXCODE[int(someValue / 16)] + __HEXCODE[someValue % 16]
def byteArrayToHexStr(someByteArray) -> str:
assert isinstance(someByteArray, (bytes, bytearray))
ret = ""
for someValue in someByteArray:
assert isinstance(someValue, int)
someValue = someValue & 255
ret += __HEXCODE[int(someValue / 16)] + __HEXCODE[someValue % 16]
return ret
def hexStrToByteArray(someHexArray:str) -> bytearray:
if (len(someHexArray) % 2) != 0:
raise Exception("Not a valid hex string!")
someHexArray = someHexArray.lower()
dataArray = bytearray()
for offset in range(0, len(someHexArray), 2):
charA = someHexArray[offset]
charB = someHexArray[offset + 1]
pA = __HEXCODE.find(charA)
pB = __HEXCODE.find(charB)
if (pA < 0) or (pB < 0):
raise Exception("Not a valid hex string!")
dataArray.append(pA * 16 + pB)
return dataArray
def hexToByte(someHexString:str, offset:int) -> int:
someHexString = someHexString.lower()
charA = someHexString[offset]
charB = someHexString[offset + 1]
pA = __HEXCODE.find(charA)
pB = __HEXCODE.find(charB)
if (pA < 0) or (pB < 0):
raise Exception("Not a valid hex string!")
return pA * 16 + pB
| __hexcode = '0123456789abcdef'
def byte_to_hex(someValue: int) -> str:
assert isinstance(someValue, int)
some_value = someValue & 255
return __HEXCODE[int(someValue / 16)] + __HEXCODE[someValue % 16]
def byte_array_to_hex_str(someByteArray) -> str:
assert isinstance(someByteArray, (bytes, bytearray))
ret = ''
for some_value in someByteArray:
assert isinstance(someValue, int)
some_value = someValue & 255
ret += __HEXCODE[int(someValue / 16)] + __HEXCODE[someValue % 16]
return ret
def hex_str_to_byte_array(someHexArray: str) -> bytearray:
if len(someHexArray) % 2 != 0:
raise exception('Not a valid hex string!')
some_hex_array = someHexArray.lower()
data_array = bytearray()
for offset in range(0, len(someHexArray), 2):
char_a = someHexArray[offset]
char_b = someHexArray[offset + 1]
p_a = __HEXCODE.find(charA)
p_b = __HEXCODE.find(charB)
if pA < 0 or pB < 0:
raise exception('Not a valid hex string!')
dataArray.append(pA * 16 + pB)
return dataArray
def hex_to_byte(someHexString: str, offset: int) -> int:
some_hex_string = someHexString.lower()
char_a = someHexString[offset]
char_b = someHexString[offset + 1]
p_a = __HEXCODE.find(charA)
p_b = __HEXCODE.find(charB)
if pA < 0 or pB < 0:
raise exception('Not a valid hex string!')
return pA * 16 + pB |
def trap(height):
'''Algo:
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.
Output: Number of units of water trapped
Input: List of the brick walls position
Steps:
Observations:
find all subsequences s.t. left is some height and right is some height at least equal or greater than the left and
then figure out how much water can be trapped in that subsequence.
'''
max_left = [0] * len(height)
for x in range(1,len(height)):
max_left[x] = max(height[x-1], max_left[x-1])
# print(max_left)
max_right = [0] * len(height)
for x in range(len(height)-2, -1, -1):
max_right[x] = max(height[x+1], max_right[x+1])
res = 0
for x in range(len(height)):
water_level = min(max_left[x], max_right[x])
if water_level >= height[x]:
res += water_level - height[x]
return res
# print(water_level)
height = [0,1,0,2,1,0,1,3,2,1,2,1]
print(trap(height)) | def trap(height):
"""Algo:
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.
Output: Number of units of water trapped
Input: List of the brick walls position
Steps:
Observations:
find all subsequences s.t. left is some height and right is some height at least equal or greater than the left and
then figure out how much water can be trapped in that subsequence.
"""
max_left = [0] * len(height)
for x in range(1, len(height)):
max_left[x] = max(height[x - 1], max_left[x - 1])
max_right = [0] * len(height)
for x in range(len(height) - 2, -1, -1):
max_right[x] = max(height[x + 1], max_right[x + 1])
res = 0
for x in range(len(height)):
water_level = min(max_left[x], max_right[x])
if water_level >= height[x]:
res += water_level - height[x]
return res
height = [0, 1, 0, 2, 1, 0, 1, 3, 2, 1, 2, 1]
print(trap(height)) |
def combination(n, r):
if n < r:
return 0
if r == 0:
return 1
tmp_n = 1
for i in range(r):
tmp_n *= n - i
tmp_r = 1
for i in range(r):
tmp_r *= r - i
return tmp_n // tmp_r
n, r = map(int, input().split())
print(combination(n, r))
def cmb(n, r):
if n - r < r: r = n - r
if r == 0: return 1
if r == 1: return n
numerator = [n - r + k + 1 for k in range(r)]
denominator = [k + 1 for k in range(r)]
for p in range(2,r+1):
pivot = denominator[p - 1]
if pivot > 1:
offset = (n - r) % p
for k in range(p-1,r,p):
numerator[k - offset] /= pivot
denominator[k] /= pivot
result = 1
for k in range(r):
if numerator[k] > 1:
result *= int(numerator[k])
return result | def combination(n, r):
if n < r:
return 0
if r == 0:
return 1
tmp_n = 1
for i in range(r):
tmp_n *= n - i
tmp_r = 1
for i in range(r):
tmp_r *= r - i
return tmp_n // tmp_r
(n, r) = map(int, input().split())
print(combination(n, r))
def cmb(n, r):
if n - r < r:
r = n - r
if r == 0:
return 1
if r == 1:
return n
numerator = [n - r + k + 1 for k in range(r)]
denominator = [k + 1 for k in range(r)]
for p in range(2, r + 1):
pivot = denominator[p - 1]
if pivot > 1:
offset = (n - r) % p
for k in range(p - 1, r, p):
numerator[k - offset] /= pivot
denominator[k] /= pivot
result = 1
for k in range(r):
if numerator[k] > 1:
result *= int(numerator[k])
return result |
'''
Created on Apr 20, 2017
@author: simulant
'''
| """
Created on Apr 20, 2017
@author: simulant
""" |
def iSort(lst,newl = [],n=1):
if len(lst)>0:
# print(newl,lst)
compInsert(newl,lst.pop(0),len(newl)-1)
if len(newl)>1:
print(newl,end=" ")
if len(lst)>0:
print(lst)
else:
print('\n',"sorted\n",newl,sep="")
iSort(lst,newl,n+1)
def compInsert(lst,a,ln):
if len(lst)==0:
lst.append(a)
return
if ln>=-1:
if ln ==-1:
lst.insert(0,a)
print("insert ",a," at index ",ln+1," : ",sep = "",end ="")
elif a < lst[ln]:
compInsert(lst,a,ln-1)
else:
lst.insert(ln+1,a)
print("insert ",a," at index ",ln+1," : ",sep = "",end ="")
inp = [int(e) for e in input("Enter Input : ").split()]
iSort(inp) | def i_sort(lst, newl=[], n=1):
if len(lst) > 0:
comp_insert(newl, lst.pop(0), len(newl) - 1)
if len(newl) > 1:
print(newl, end=' ')
if len(lst) > 0:
print(lst)
else:
print('\n', 'sorted\n', newl, sep='')
i_sort(lst, newl, n + 1)
def comp_insert(lst, a, ln):
if len(lst) == 0:
lst.append(a)
return
if ln >= -1:
if ln == -1:
lst.insert(0, a)
print('insert ', a, ' at index ', ln + 1, ' : ', sep='', end='')
elif a < lst[ln]:
comp_insert(lst, a, ln - 1)
else:
lst.insert(ln + 1, a)
print('insert ', a, ' at index ', ln + 1, ' : ', sep='', end='')
inp = [int(e) for e in input('Enter Input : ').split()]
i_sort(inp) |
# =============================================================================
# Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/
# FileName: 12930.py
# Description: UVa Online Judge - 12930
# =============================================================================
nt = 0
while True:
try:
line = input()
except EOFError:
break
nt += 1
line = line.split()
n_frac1 = len(line[0]) - line[0].find(".") - 1
n_frac2 = len(line[1]) - line[1].find(".") - 1
if n_frac1 < max(n_frac1, n_frac2):
line[0] += "0" * (max(n_frac1, n_frac2) - n_frac1)
if n_frac2 < max(n_frac1, n_frac2):
line[1] += "0" * (max(n_frac1, n_frac2) - n_frac2)
a = int(line[0].replace(".", ""))
b = int(line[1].replace(".", ""))
if a < b:
print("Case {}: Smaller".format(nt))
elif a > b:
print("Case {}: Bigger".format(nt))
else:
print("Case {}: Same".format(nt))
| nt = 0
while True:
try:
line = input()
except EOFError:
break
nt += 1
line = line.split()
n_frac1 = len(line[0]) - line[0].find('.') - 1
n_frac2 = len(line[1]) - line[1].find('.') - 1
if n_frac1 < max(n_frac1, n_frac2):
line[0] += '0' * (max(n_frac1, n_frac2) - n_frac1)
if n_frac2 < max(n_frac1, n_frac2):
line[1] += '0' * (max(n_frac1, n_frac2) - n_frac2)
a = int(line[0].replace('.', ''))
b = int(line[1].replace('.', ''))
if a < b:
print('Case {}: Smaller'.format(nt))
elif a > b:
print('Case {}: Bigger'.format(nt))
else:
print('Case {}: Same'.format(nt)) |
consumer_key = '123456'
consumer_secret = '123456'
flickr_key = '123456'
flickr_secret = '123456'
| consumer_key = '123456'
consumer_secret = '123456'
flickr_key = '123456'
flickr_secret = '123456' |
'''69-crie um programa que leia a idade e o sexo de varias pessoas.a cada pessoa cadastrada, o programa devera perguntar se o usuario quer ou nao continuar.no final mostre:
A- quantas pessoas tem mais de 18 anos.
B- quantos homensforam cadastrados.
C- quantas mulheres tem menos de 20 anos. '''
tot18=toth=totm20=0
contador=sexo=0
while True:
idade=int(input('qual a idade: '))
if idade>=18:
tot18+=1
if sexo =='M':
toth+=1
if sexo =='F'and idade<20:
totm20+=1
sexo=' '
while sexo not in 'MF':
sexo=str(input('qual o sexo[M/F]: ')).upper().strip()[0]
continua=' '
while continua not in 'SN':
continua=str(input('deseja continuar [S/N]: ')).upper().strip()[0]
if continua=='N':
break
print(f'temos {tot18} pessoas com mais de 18 anos. ')
print(f'ao todo temos {toth} homens cadastrados')
print(f'e temos {totm20} mulheres com menos de 20 anos')
#FIM//A\\ | """69-crie um programa que leia a idade e o sexo de varias pessoas.a cada pessoa cadastrada, o programa devera perguntar se o usuario quer ou nao continuar.no final mostre:
A- quantas pessoas tem mais de 18 anos.
B- quantos homensforam cadastrados.
C- quantas mulheres tem menos de 20 anos. """
tot18 = toth = totm20 = 0
contador = sexo = 0
while True:
idade = int(input('qual a idade: '))
if idade >= 18:
tot18 += 1
if sexo == 'M':
toth += 1
if sexo == 'F' and idade < 20:
totm20 += 1
sexo = ' '
while sexo not in 'MF':
sexo = str(input('qual o sexo[M/F]: ')).upper().strip()[0]
continua = ' '
while continua not in 'SN':
continua = str(input('deseja continuar [S/N]: ')).upper().strip()[0]
if continua == 'N':
break
print(f'temos {tot18} pessoas com mais de 18 anos. ')
print(f'ao todo temos {toth} homens cadastrados')
print(f'e temos {totm20} mulheres com menos de 20 anos') |
# define variables
a = 10
b = 20
# swap numbers
a,b = b,a
# print result
print(a, b) | a = 10
b = 20
(a, b) = (b, a)
print(a, b) |
''' ATRIBUTOS DE UM ARQUIVO'''
arquivo = open('dados1.txt', 'r')
conteudo = arquivo.readlines()
print('tipo de conteudo, ', type (conteudo))
print('conteudo retornado pelo realines: ')
print(repr(conteudo))
arquivo.close()
| """ ATRIBUTOS DE UM ARQUIVO"""
arquivo = open('dados1.txt', 'r')
conteudo = arquivo.readlines()
print('tipo de conteudo, ', type(conteudo))
print('conteudo retornado pelo realines: ')
print(repr(conteudo))
arquivo.close() |
# Convert algebraic infix notation to revese polish notation (postfix)
def infixToPostfix(expr):
rpn = ""
stack = []
oper = "(+-*/^"
for e in expr:
if e.lower() >= "a" and e <= "z":
rpn += e
elif e == ")":
while len(stack) > 0:
op = stack.pop()
if op == "(":
break
rpn += op
elif e == "(":
stack.append(e)
else:
while len(stack) > 0 and oper.index(stack[-1]) > oper.index(e):
rpn += stack.pop()
stack.append(e)
while len(stack) > 0:
rpn += stack.pop()
return rpn
def test():
assert infixToPostfix("(a+(b*c))") == "abc*+", "Test 1 failed"
assert infixToPostfix("((a+b)*(z+x))") == "ab+zx+*", "Test 2 failed"
assert infixToPostfix("((a+t)*((b+(a+c))^(c+d)))") == "at+bac++cd+^*", "Test 3 failed"
print("All tests passed.")
if __name__ == "__main__":
lines = int(input())
for i in range(lines):
print(infixToPostfix(input()))
| def infix_to_postfix(expr):
rpn = ''
stack = []
oper = '(+-*/^'
for e in expr:
if e.lower() >= 'a' and e <= 'z':
rpn += e
elif e == ')':
while len(stack) > 0:
op = stack.pop()
if op == '(':
break
rpn += op
elif e == '(':
stack.append(e)
else:
while len(stack) > 0 and oper.index(stack[-1]) > oper.index(e):
rpn += stack.pop()
stack.append(e)
while len(stack) > 0:
rpn += stack.pop()
return rpn
def test():
assert infix_to_postfix('(a+(b*c))') == 'abc*+', 'Test 1 failed'
assert infix_to_postfix('((a+b)*(z+x))') == 'ab+zx+*', 'Test 2 failed'
assert infix_to_postfix('((a+t)*((b+(a+c))^(c+d)))') == 'at+bac++cd+^*', 'Test 3 failed'
print('All tests passed.')
if __name__ == '__main__':
lines = int(input())
for i in range(lines):
print(infix_to_postfix(input())) |
class Action_Keys():
def __init__(self, game_name):
self.game_name = game_name
def action_keys_Convert(self, key):
if self.game_name == 'Enduro':
return action_keys_Convert_Enduro(key)
elif self.game_name == 'SpaceInvaders':
return action_keys_Convert_SpaceInvaders(key)
else:
return key
def action_keys_text(self, key):
if self.game_name == 'Enduro':
return action_keys_text_Enduro(key)
elif self.game_name == 'SpaceInvaders':
return action_keys_text_SpaceInvaders(key)
else:
return action_keys_text(key)
def action_keys_Convert_Enduro(key):
if key == '0':
newkey = '0'
elif key == '1':
newkey = '1'
elif key == '2':
newkey = '1'
elif key == '3':
newkey = '2'
elif key == '4':
newkey = '3'
elif key == '5':
newkey = '4'
elif key == '6':
newkey = '2'
elif key == '7':
newkey = '3'
elif key == '8':
newkey = '5'
elif key == '9':
newkey = '6'
elif key == '10':
newkey = '1'
elif key == '11':
newkey = '7'
elif key == '12':
newkey = '8'
elif key == '13':
newkey = '4'
elif key == '14':
newkey = '7'
elif key == '14':
newkey = '8'
elif key == '16':
newkey = '5'
elif key == '17':
newkey = '6'
else:
newkey = '0'
return newkey
def action_keys_Convert_SpaceInvaders(key):
if key == '0':
newkey = '0'
elif key == '1':
newkey = '1'
elif key == '2':
newkey = '0'
elif key == '3':
newkey = '1'
elif key == '4':
newkey = '2'
elif key == '5':
newkey = '0'
elif key == '6':
newkey = '0'
elif key == '7':
newkey = '0'
elif key == '8':
newkey = '0'
elif key == '9':
newkey = '0'
elif key == '10':
newkey = '0'
elif key == '11':
newkey = '4'
elif key == '12':
newkey = '5'
elif key == '13':
newkey = '0'
elif key == '14':
newkey = '0'
elif key == '14':
newkey = '0'
elif key == '16':
newkey = '0'
elif key == '17':
newkey = '0'
else:
newkey = '0'
return newkey
def action_keys_text(key):
if key == '0':
key_text = 'Noop :'
elif key == '1':
key_text = 'Fire :'
elif key == '2':
key_text = 'Up :'
elif key == '3':
key_text = 'Right :'
elif key == '4':
key_text = 'Left :'
elif key == '5':
key_text = 'Down :'
elif key == '6':
key_text = 'Up-Right :'
elif key == '7':
key_text = 'Up-Left :'
elif key == '8':
key_text = 'Down-Right :'
elif key == '9':
key_text = 'Down-Left :'
elif key == '10':
key_text = 'Up-Fire :'
elif key == '11':
key_text = 'Right-Fire :'
elif key == '12':
key_text = 'Left-Fire :'
elif key == '13':
key_text = 'Down-Fire :'
elif key == '14':
key_text = 'Up-Right-Fire :'
elif key == '14':
key_text = 'Up-Left-Fire :'
elif key == '16':
key_text = 'Down-Right-Fire :'
elif key == '17':
key_text = 'Down-Left-Fire :'
else:
key_text = 'Unknown '
return key + ': ' + key_text
def action_keys_text_Enduro(key):
if key == '0':
key_text = 'Noop :'
elif key == '1':
key_text = 'Fire :'
elif key == '2':
key_text = 'Right :'
elif key == '3':
key_text = 'Left :'
elif key == '4':
key_text = 'Down :'
elif key == '5':
key_text = 'Down-Right :'
elif key == '6':
key_text = 'Down-Left :'
elif key == '7':
key_text = 'Right-Fire :'
elif key == '8':
key_text = 'Left-Fire :'
else:
key_text = 'Unknown :'
return key + ': ' + key_text
def action_keys_text_SpaceInvaders(key):
if key == '0':
key_text = 'Noop :'
elif key == '1':
key_text = 'Fire :'
elif key == '2':
key_text = 'Right :'
elif key == '3':
key_text = 'Left :'
elif key == '4':
key_text = 'Right-Fire :'
elif key == '5':
key_text = 'Left-Fire :'
else:
key_text = 'Unknown :'
return key + ': ' + key_text
| class Action_Keys:
def __init__(self, game_name):
self.game_name = game_name
def action_keys__convert(self, key):
if self.game_name == 'Enduro':
return action_keys__convert__enduro(key)
elif self.game_name == 'SpaceInvaders':
return action_keys__convert__space_invaders(key)
else:
return key
def action_keys_text(self, key):
if self.game_name == 'Enduro':
return action_keys_text__enduro(key)
elif self.game_name == 'SpaceInvaders':
return action_keys_text__space_invaders(key)
else:
return action_keys_text(key)
def action_keys__convert__enduro(key):
if key == '0':
newkey = '0'
elif key == '1':
newkey = '1'
elif key == '2':
newkey = '1'
elif key == '3':
newkey = '2'
elif key == '4':
newkey = '3'
elif key == '5':
newkey = '4'
elif key == '6':
newkey = '2'
elif key == '7':
newkey = '3'
elif key == '8':
newkey = '5'
elif key == '9':
newkey = '6'
elif key == '10':
newkey = '1'
elif key == '11':
newkey = '7'
elif key == '12':
newkey = '8'
elif key == '13':
newkey = '4'
elif key == '14':
newkey = '7'
elif key == '14':
newkey = '8'
elif key == '16':
newkey = '5'
elif key == '17':
newkey = '6'
else:
newkey = '0'
return newkey
def action_keys__convert__space_invaders(key):
if key == '0':
newkey = '0'
elif key == '1':
newkey = '1'
elif key == '2':
newkey = '0'
elif key == '3':
newkey = '1'
elif key == '4':
newkey = '2'
elif key == '5':
newkey = '0'
elif key == '6':
newkey = '0'
elif key == '7':
newkey = '0'
elif key == '8':
newkey = '0'
elif key == '9':
newkey = '0'
elif key == '10':
newkey = '0'
elif key == '11':
newkey = '4'
elif key == '12':
newkey = '5'
elif key == '13':
newkey = '0'
elif key == '14':
newkey = '0'
elif key == '14':
newkey = '0'
elif key == '16':
newkey = '0'
elif key == '17':
newkey = '0'
else:
newkey = '0'
return newkey
def action_keys_text(key):
if key == '0':
key_text = 'Noop :'
elif key == '1':
key_text = 'Fire :'
elif key == '2':
key_text = 'Up :'
elif key == '3':
key_text = 'Right :'
elif key == '4':
key_text = 'Left :'
elif key == '5':
key_text = 'Down :'
elif key == '6':
key_text = 'Up-Right :'
elif key == '7':
key_text = 'Up-Left :'
elif key == '8':
key_text = 'Down-Right :'
elif key == '9':
key_text = 'Down-Left :'
elif key == '10':
key_text = 'Up-Fire :'
elif key == '11':
key_text = 'Right-Fire :'
elif key == '12':
key_text = 'Left-Fire :'
elif key == '13':
key_text = 'Down-Fire :'
elif key == '14':
key_text = 'Up-Right-Fire :'
elif key == '14':
key_text = 'Up-Left-Fire :'
elif key == '16':
key_text = 'Down-Right-Fire :'
elif key == '17':
key_text = 'Down-Left-Fire :'
else:
key_text = 'Unknown '
return key + ': ' + key_text
def action_keys_text__enduro(key):
if key == '0':
key_text = 'Noop :'
elif key == '1':
key_text = 'Fire :'
elif key == '2':
key_text = 'Right :'
elif key == '3':
key_text = 'Left :'
elif key == '4':
key_text = 'Down :'
elif key == '5':
key_text = 'Down-Right :'
elif key == '6':
key_text = 'Down-Left :'
elif key == '7':
key_text = 'Right-Fire :'
elif key == '8':
key_text = 'Left-Fire :'
else:
key_text = 'Unknown :'
return key + ': ' + key_text
def action_keys_text__space_invaders(key):
if key == '0':
key_text = 'Noop :'
elif key == '1':
key_text = 'Fire :'
elif key == '2':
key_text = 'Right :'
elif key == '3':
key_text = 'Left :'
elif key == '4':
key_text = 'Right-Fire :'
elif key == '5':
key_text = 'Left-Fire :'
else:
key_text = 'Unknown :'
return key + ': ' + key_text |
def hex_to_rgb(hex_color, base=256):
return tuple(int(hex_color[i:i + 2], 16) for i in (1, 3, 5))
def rgb_to_hex(rgb, with_sharp=False, upper=True):
hex_code = ''.join([hex(one_channel)[2:] for one_channel in rgb])
if with_sharp:
hex_code = '#' + hex_code
if upper:
hex_code = hex_code.upper()
return hex_code
| def hex_to_rgb(hex_color, base=256):
return tuple((int(hex_color[i:i + 2], 16) for i in (1, 3, 5)))
def rgb_to_hex(rgb, with_sharp=False, upper=True):
hex_code = ''.join([hex(one_channel)[2:] for one_channel in rgb])
if with_sharp:
hex_code = '#' + hex_code
if upper:
hex_code = hex_code.upper()
return hex_code |
# add two numbers using function without return
'''def add(x,y):
print("addition is : ",(x+y))
x = int(input("Enter a first number for addition : "))
y = int(input("Enter a second number for addition : "))
add(x,y)'''
# add two numbers using function with return
'''def add(x,y):
return (x+y)
x = int(input("Enter a first number for addition : "))
y = int(input("Enter a second number for addition : "))
print("addition is : ",add(x,y))'''
# add and sub two numbers using function with return multiple
'''def add_sub(x,y):
return x+y,x-y
x = int(input("Enter a first number for addition : "))
y = int(input("Enter a second number for addition : "))
print("addition and subtraction is : ",add_sub(x,y))'''
| """def add(x,y):
print("addition is : ",(x+y))
x = int(input("Enter a first number for addition : "))
y = int(input("Enter a second number for addition : "))
add(x,y)"""
'def add(x,y):\n return (x+y)\nx = int(input("Enter a first number for addition : "))\ny = int(input("Enter a second number for addition : "))\nprint("addition is : ",add(x,y))'
'def add_sub(x,y):\n return x+y,x-y\nx = int(input("Enter a first number for addition : "))\ny = int(input("Enter a second number for addition : "))\nprint("addition and subtraction is : ",add_sub(x,y))' |
string = input("Ingrese la palabra a enmarcar: ")
num = int(input("Ingrese la cantidad de espacios entre el marco y la palabra"))
arribaAbajo = "*" * (len(string) + (num*2)+2)+ "\n"
laterales = "*" + " " * (len(string) + num*2) + "*\n"
resultado = arribaAbajo
for i in range(num):
resultado += laterales
resultado += "*"+" "*num + string + " "*num+"*\n"
for i in range(num):
resultado += laterales
resultado += arribaAbajo
print(resultado) | string = input('Ingrese la palabra a enmarcar: ')
num = int(input('Ingrese la cantidad de espacios entre el marco y la palabra'))
arriba_abajo = '*' * (len(string) + num * 2 + 2) + '\n'
laterales = '*' + ' ' * (len(string) + num * 2) + '*\n'
resultado = arribaAbajo
for i in range(num):
resultado += laterales
resultado += '*' + ' ' * num + string + ' ' * num + '*\n'
for i in range(num):
resultado += laterales
resultado += arribaAbajo
print(resultado) |
# At each point 3 choice possible
# 1. ith element.
# 2. max -ve before ith * ith element
# 3. max +ve before ith * ith element
# TC: O(n) | SC: O(1)
def solution_1(arr):
max_product = arr[0]
min_product = arr[0]
answer = arr[0]
for i in range(1, len(arr)):
choice1 = min_product*arr[i]
choice2 = max_product*arr[i]
min_product = min(arr[i], choice1, choice2)
max_product = max(arr[i], choice1, choice2)
answer = max(answer, max_product)
return answer
if __name__ == '__main__':
arr = [1, -2, -3, 0, 7, -8, -2] # 112
# arr = [6, -3, -10, 0, 2] # 180
# arr = [-1, -3, -10, 0, 60] # 60
# arr = [-2, -40, 0, -2, -3] # 80
# arr = [-6, 4, -5, 8, -10, 0, 8] # 1600
print('solution_1: ', solution_1(arr))
| def solution_1(arr):
max_product = arr[0]
min_product = arr[0]
answer = arr[0]
for i in range(1, len(arr)):
choice1 = min_product * arr[i]
choice2 = max_product * arr[i]
min_product = min(arr[i], choice1, choice2)
max_product = max(arr[i], choice1, choice2)
answer = max(answer, max_product)
return answer
if __name__ == '__main__':
arr = [1, -2, -3, 0, 7, -8, -2]
print('solution_1: ', solution_1(arr)) |
# set of rules that are expected to work for all supported frameworks
# Supported Frameworks: Mxnet, Pytorch, Tensorflow, Xgboost
UNIVERSAL_RULES = {
"AllZero",
"ClassImbalance",
"Confusion",
"LossNotDecreasing",
"Overfit",
"Overtraining",
"SimilarAcrossRuns",
"StalledTrainingRule",
"UnchangedTensor",
}
# set of rules that are expected to work for only for supported deep learning frameworks
# Supported Deep Learning Frameworks: Mxnet, Pytorch, Tensorflow
DEEP_LEARNING_RULES = {
"DeadRelu",
"ExplodingTensor",
"PoorWeightInitialization",
"SaturatedActivation",
"TensorVariance",
"VanishingGradient",
"WeightUpdateRatio",
}
# Rules intended to be used as part of a DL Application
DEEP_LEARNING_APPLICATION_RULES = {"CheckInputImages", "NLPSequenceRatio"}
# Rules only compatible with XGBOOST
XGBOOST_RULES = {"FeatureImportanceOverweight", "TreeDepth"}
| universal_rules = {'AllZero', 'ClassImbalance', 'Confusion', 'LossNotDecreasing', 'Overfit', 'Overtraining', 'SimilarAcrossRuns', 'StalledTrainingRule', 'UnchangedTensor'}
deep_learning_rules = {'DeadRelu', 'ExplodingTensor', 'PoorWeightInitialization', 'SaturatedActivation', 'TensorVariance', 'VanishingGradient', 'WeightUpdateRatio'}
deep_learning_application_rules = {'CheckInputImages', 'NLPSequenceRatio'}
xgboost_rules = {'FeatureImportanceOverweight', 'TreeDepth'} |
__author__ = 'surya'
prey="This will give the list of prey protein used in the experiment"
bait="This will give all information of the Bait protein used in the experiment"
molecule="This will give all information store in the database about small molecule, if used in the experiment"
SdFound="This will give the list of Stimulated Dependent protein found positives in the experiment"
SdNotFound="This will give the list of Stimulated Dependent protein not found in the experiment"
ControlFound="This will give the list of stimulation independent control protein found positives in the experiment"
ControlNotFound="This will give the list of Stimulated independent protein not found in the experiment"
NewHitsFound="This will give the list of New Hits protein found positives in the experiment"
NewHitNotFound="This will give the list of prey proteins not found positives in the experiment"
AspecificFound="This will give the list of A-specific protein found positives in the experiment"
AspecificNotFound="This will give the list of A-specific protein Not found positives in the experiment"
RawDataInfo="Provide with all the printed files together for the re-analysis with controls and protein annotations"
CytoscapeInputFile="This is provide a file with the names of both interactors and also compatible with cytoscape"
XMLFile="Export PSI-MI XML format protein interaction file."
| __author__ = 'surya'
prey = 'This will give the list of prey protein used in the experiment'
bait = 'This will give all information of the Bait protein used in the experiment'
molecule = 'This will give all information store in the database about small molecule, if used in the experiment'
sd_found = 'This will give the list of Stimulated Dependent protein found positives in the experiment'
sd_not_found = 'This will give the list of Stimulated Dependent protein not found in the experiment'
control_found = 'This will give the list of stimulation independent control protein found positives in the experiment'
control_not_found = 'This will give the list of Stimulated independent protein not found in the experiment'
new_hits_found = 'This will give the list of New Hits protein found positives in the experiment'
new_hit_not_found = 'This will give the list of prey proteins not found positives in the experiment'
aspecific_found = 'This will give the list of A-specific protein found positives in the experiment'
aspecific_not_found = 'This will give the list of A-specific protein Not found positives in the experiment'
raw_data_info = 'Provide with all the printed files together for the re-analysis with controls and protein annotations'
cytoscape_input_file = 'This is provide a file with the names of both interactors and also compatible with cytoscape'
xml_file = 'Export PSI-MI XML format protein interaction file.' |
#
# PySNMP MIB module CISCO-TCPOFFLOAD-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-TCPOFFLOAD-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:14:11 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, ConstraintsIntersection, ValueRangeConstraint, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsUnion")
cipCardDtrBrdIndex, cipCardSubChannelIndex, cipCardEntryIndex = mibBuilder.importSymbols("CISCO-CHANNEL-MIB", "cipCardDtrBrdIndex", "cipCardSubChannelIndex", "cipCardEntryIndex")
ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
TimeTicks, Counter32, Counter64, IpAddress, iso, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, NotificationType, Unsigned32, Bits, Integer32, MibIdentifier, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "Counter32", "Counter64", "IpAddress", "iso", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "NotificationType", "Unsigned32", "Bits", "Integer32", "MibIdentifier", "Gauge32")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
TruthValue, DisplayString, RowStatus = mibBuilder.importSymbols("SNMPv2-TC-v1", "TruthValue", "DisplayString", "RowStatus")
ciscoTcpOffloadMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 31))
tcpOffloadObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 31, 1))
cipCardOffloadConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1))
ciscoTcpOffloadMibConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 31, 2))
ciscoTcpOffloadMibCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 31, 2, 1))
ciscoTcpOffloadMibGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 31, 2, 2))
cipCardOffloadConfigTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1), )
if mibBuilder.loadTexts: cipCardOffloadConfigTable.setStatus('mandatory')
if mibBuilder.loadTexts: cipCardOffloadConfigTable.setDescription('This table contains configuration information for the TCP offload feature on the CMCC card. Changing these parameters will take effect immediately. The management station can create an entry in this table by setting the appropriate value in cipCardOffloadConfigRowStatus. All the objects in this table must be supplied for a successful create/set.')
cipCardOffloadConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1), ).setIndexNames((0, "CISCO-CHANNEL-MIB", "cipCardEntryIndex"), (0, "CISCO-CHANNEL-MIB", "cipCardDtrBrdIndex"), (0, "CISCO-CHANNEL-MIB", "cipCardSubChannelIndex"))
if mibBuilder.loadTexts: cipCardOffloadConfigEntry.setStatus('mandatory')
if mibBuilder.loadTexts: cipCardOffloadConfigEntry.setDescription('A list of OFFLOAD configuration values.')
cipCardOffloadConfigPath = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipCardOffloadConfigPath.setStatus('mandatory')
if mibBuilder.loadTexts: cipCardOffloadConfigPath.setDescription('Hex path identifier for the escon director switch port containing the fiber from the channel on the host to which this CMCC CLAW task connects. This is a concatenation of the switch port number, the channel logical address (used by the host to associate an logical partition (LPAR) with the control unit), and the control unit logical address (address of a logical control unit used by the host to associate a group of physical devices). For a directly connected channel, the switch port number is usually 01.')
cipCardOffloadConfigDevice = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipCardOffloadConfigDevice.setStatus('mandatory')
if mibBuilder.loadTexts: cipCardOffloadConfigDevice.setDescription('Two digit hex device address for the device the SNA host will use to communicate with the offload task on the CMCC. The address must be even.')
cipCardOffloadConfigIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipCardOffloadConfigIpAddr.setStatus('mandatory')
if mibBuilder.loadTexts: cipCardOffloadConfigIpAddr.setDescription('IP address of the host application for the offload task as specified in the HOME statement of the PROFILE TCPIP.')
cipCardOffloadConfigHostName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 10))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipCardOffloadConfigHostName.setStatus('mandatory')
if mibBuilder.loadTexts: cipCardOffloadConfigHostName.setDescription('Host name parameter as specified in the DEVICE statement of the PROFILE TCPIP.')
cipCardOffloadConfigRouterName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 10))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipCardOffloadConfigRouterName.setStatus('mandatory')
if mibBuilder.loadTexts: cipCardOffloadConfigRouterName.setDescription('Workstation name parameter as specified in the DEVICE statement of the mainframe PROFILE TCPIP.')
cipCardOffloadConfigLinkHostAppl = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 10))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipCardOffloadConfigLinkHostAppl.setStatus('mandatory')
if mibBuilder.loadTexts: cipCardOffloadConfigLinkHostAppl.setDescription('Name of the application providing the IP link services, as specified in the mainframe configuration.')
cipCardOffloadConfigLinkRouterAppl = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 10))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipCardOffloadConfigLinkRouterAppl.setStatus('mandatory')
if mibBuilder.loadTexts: cipCardOffloadConfigLinkRouterAppl.setDescription('Name of the router application providing the IP link services, as specified in the mainframe configuration.')
cipCardOffloadConfigAPIHostAppl = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 10))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipCardOffloadConfigAPIHostAppl.setStatus('mandatory')
if mibBuilder.loadTexts: cipCardOffloadConfigAPIHostAppl.setDescription('Name of the mainframe application providing the API services, as specified in the mainframe configuration.')
cipCardOffloadConfigAPIRouterAppl = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 10))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipCardOffloadConfigAPIRouterAppl.setStatus('mandatory')
if mibBuilder.loadTexts: cipCardOffloadConfigAPIRouterAppl.setDescription('Name of the router application providing the API services, as specified in the mainframe configuration.')
cipCardOffloadConfigBroadcastEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 10), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipCardOffloadConfigBroadcastEnable.setStatus('mandatory')
if mibBuilder.loadTexts: cipCardOffloadConfigBroadcastEnable.setDescription('Control processing of broadcast frames for the path/device this instance of OFFLOAD is configured on. Enable turns broadcast processing on.')
cipCardOffloadConfigRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 11), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cipCardOffloadConfigRowStatus.setStatus('mandatory')
if mibBuilder.loadTexts: cipCardOffloadConfigRowStatus.setDescription('This object is used by a management station to create or delete the row entry in cipCardOffloadConfigTable following the RowStatus textual convention.')
ciscoTcpOffloadGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 31, 2, 2, 1))
ciscoTcpOffloadMibCompliance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 31, 2, 1, 1))
mibBuilder.exportSymbols("CISCO-TCPOFFLOAD-MIB", cipCardOffloadConfigLinkRouterAppl=cipCardOffloadConfigLinkRouterAppl, cipCardOffloadConfigBroadcastEnable=cipCardOffloadConfigBroadcastEnable, cipCardOffloadConfigRowStatus=cipCardOffloadConfigRowStatus, cipCardOffloadConfigTable=cipCardOffloadConfigTable, ciscoTcpOffloadMIB=ciscoTcpOffloadMIB, cipCardOffloadConfigPath=cipCardOffloadConfigPath, ciscoTcpOffloadGroup=ciscoTcpOffloadGroup, ciscoTcpOffloadMibCompliance=ciscoTcpOffloadMibCompliance, tcpOffloadObjects=tcpOffloadObjects, cipCardOffloadConfigAPIHostAppl=cipCardOffloadConfigAPIHostAppl, cipCardOffloadConfigIpAddr=cipCardOffloadConfigIpAddr, cipCardOffloadConfigDevice=cipCardOffloadConfigDevice, cipCardOffloadConfigLinkHostAppl=cipCardOffloadConfigLinkHostAppl, ciscoTcpOffloadMibGroups=ciscoTcpOffloadMibGroups, cipCardOffloadConfigRouterName=cipCardOffloadConfigRouterName, ciscoTcpOffloadMibCompliances=ciscoTcpOffloadMibCompliances, cipCardOffloadConfigHostName=cipCardOffloadConfigHostName, cipCardOffloadConfig=cipCardOffloadConfig, cipCardOffloadConfigAPIRouterAppl=cipCardOffloadConfigAPIRouterAppl, ciscoTcpOffloadMibConformance=ciscoTcpOffloadMibConformance, cipCardOffloadConfigEntry=cipCardOffloadConfigEntry)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, constraints_intersection, value_range_constraint, single_value_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsUnion')
(cip_card_dtr_brd_index, cip_card_sub_channel_index, cip_card_entry_index) = mibBuilder.importSymbols('CISCO-CHANNEL-MIB', 'cipCardDtrBrdIndex', 'cipCardSubChannelIndex', 'cipCardEntryIndex')
(cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(time_ticks, counter32, counter64, ip_address, iso, module_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity, notification_type, unsigned32, bits, integer32, mib_identifier, gauge32) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'Counter32', 'Counter64', 'IpAddress', 'iso', 'ModuleIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity', 'NotificationType', 'Unsigned32', 'Bits', 'Integer32', 'MibIdentifier', 'Gauge32')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
(truth_value, display_string, row_status) = mibBuilder.importSymbols('SNMPv2-TC-v1', 'TruthValue', 'DisplayString', 'RowStatus')
cisco_tcp_offload_mib = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 31))
tcp_offload_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 31, 1))
cip_card_offload_config = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1))
cisco_tcp_offload_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 31, 2))
cisco_tcp_offload_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 31, 2, 1))
cisco_tcp_offload_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 31, 2, 2))
cip_card_offload_config_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1))
if mibBuilder.loadTexts:
cipCardOffloadConfigTable.setStatus('mandatory')
if mibBuilder.loadTexts:
cipCardOffloadConfigTable.setDescription('This table contains configuration information for the TCP offload feature on the CMCC card. Changing these parameters will take effect immediately. The management station can create an entry in this table by setting the appropriate value in cipCardOffloadConfigRowStatus. All the objects in this table must be supplied for a successful create/set.')
cip_card_offload_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1)).setIndexNames((0, 'CISCO-CHANNEL-MIB', 'cipCardEntryIndex'), (0, 'CISCO-CHANNEL-MIB', 'cipCardDtrBrdIndex'), (0, 'CISCO-CHANNEL-MIB', 'cipCardSubChannelIndex'))
if mibBuilder.loadTexts:
cipCardOffloadConfigEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
cipCardOffloadConfigEntry.setDescription('A list of OFFLOAD configuration values.')
cip_card_offload_config_path = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cipCardOffloadConfigPath.setStatus('mandatory')
if mibBuilder.loadTexts:
cipCardOffloadConfigPath.setDescription('Hex path identifier for the escon director switch port containing the fiber from the channel on the host to which this CMCC CLAW task connects. This is a concatenation of the switch port number, the channel logical address (used by the host to associate an logical partition (LPAR) with the control unit), and the control unit logical address (address of a logical control unit used by the host to associate a group of physical devices). For a directly connected channel, the switch port number is usually 01.')
cip_card_offload_config_device = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cipCardOffloadConfigDevice.setStatus('mandatory')
if mibBuilder.loadTexts:
cipCardOffloadConfigDevice.setDescription('Two digit hex device address for the device the SNA host will use to communicate with the offload task on the CMCC. The address must be even.')
cip_card_offload_config_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 3), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cipCardOffloadConfigIpAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
cipCardOffloadConfigIpAddr.setDescription('IP address of the host application for the offload task as specified in the HOME statement of the PROFILE TCPIP.')
cip_card_offload_config_host_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(1, 10))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cipCardOffloadConfigHostName.setStatus('mandatory')
if mibBuilder.loadTexts:
cipCardOffloadConfigHostName.setDescription('Host name parameter as specified in the DEVICE statement of the PROFILE TCPIP.')
cip_card_offload_config_router_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(1, 10))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cipCardOffloadConfigRouterName.setStatus('mandatory')
if mibBuilder.loadTexts:
cipCardOffloadConfigRouterName.setDescription('Workstation name parameter as specified in the DEVICE statement of the mainframe PROFILE TCPIP.')
cip_card_offload_config_link_host_appl = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(1, 10))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cipCardOffloadConfigLinkHostAppl.setStatus('mandatory')
if mibBuilder.loadTexts:
cipCardOffloadConfigLinkHostAppl.setDescription('Name of the application providing the IP link services, as specified in the mainframe configuration.')
cip_card_offload_config_link_router_appl = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(1, 10))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cipCardOffloadConfigLinkRouterAppl.setStatus('mandatory')
if mibBuilder.loadTexts:
cipCardOffloadConfigLinkRouterAppl.setDescription('Name of the router application providing the IP link services, as specified in the mainframe configuration.')
cip_card_offload_config_api_host_appl = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(1, 10))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cipCardOffloadConfigAPIHostAppl.setStatus('mandatory')
if mibBuilder.loadTexts:
cipCardOffloadConfigAPIHostAppl.setDescription('Name of the mainframe application providing the API services, as specified in the mainframe configuration.')
cip_card_offload_config_api_router_appl = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(1, 10))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cipCardOffloadConfigAPIRouterAppl.setStatus('mandatory')
if mibBuilder.loadTexts:
cipCardOffloadConfigAPIRouterAppl.setDescription('Name of the router application providing the API services, as specified in the mainframe configuration.')
cip_card_offload_config_broadcast_enable = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 10), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cipCardOffloadConfigBroadcastEnable.setStatus('mandatory')
if mibBuilder.loadTexts:
cipCardOffloadConfigBroadcastEnable.setDescription('Control processing of broadcast frames for the path/device this instance of OFFLOAD is configured on. Enable turns broadcast processing on.')
cip_card_offload_config_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 31, 1, 1, 1, 1, 11), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cipCardOffloadConfigRowStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
cipCardOffloadConfigRowStatus.setDescription('This object is used by a management station to create or delete the row entry in cipCardOffloadConfigTable following the RowStatus textual convention.')
cisco_tcp_offload_group = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 31, 2, 2, 1))
cisco_tcp_offload_mib_compliance = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 31, 2, 1, 1))
mibBuilder.exportSymbols('CISCO-TCPOFFLOAD-MIB', cipCardOffloadConfigLinkRouterAppl=cipCardOffloadConfigLinkRouterAppl, cipCardOffloadConfigBroadcastEnable=cipCardOffloadConfigBroadcastEnable, cipCardOffloadConfigRowStatus=cipCardOffloadConfigRowStatus, cipCardOffloadConfigTable=cipCardOffloadConfigTable, ciscoTcpOffloadMIB=ciscoTcpOffloadMIB, cipCardOffloadConfigPath=cipCardOffloadConfigPath, ciscoTcpOffloadGroup=ciscoTcpOffloadGroup, ciscoTcpOffloadMibCompliance=ciscoTcpOffloadMibCompliance, tcpOffloadObjects=tcpOffloadObjects, cipCardOffloadConfigAPIHostAppl=cipCardOffloadConfigAPIHostAppl, cipCardOffloadConfigIpAddr=cipCardOffloadConfigIpAddr, cipCardOffloadConfigDevice=cipCardOffloadConfigDevice, cipCardOffloadConfigLinkHostAppl=cipCardOffloadConfigLinkHostAppl, ciscoTcpOffloadMibGroups=ciscoTcpOffloadMibGroups, cipCardOffloadConfigRouterName=cipCardOffloadConfigRouterName, ciscoTcpOffloadMibCompliances=ciscoTcpOffloadMibCompliances, cipCardOffloadConfigHostName=cipCardOffloadConfigHostName, cipCardOffloadConfig=cipCardOffloadConfig, cipCardOffloadConfigAPIRouterAppl=cipCardOffloadConfigAPIRouterAppl, ciscoTcpOffloadMibConformance=ciscoTcpOffloadMibConformance, cipCardOffloadConfigEntry=cipCardOffloadConfigEntry) |
'''given an array of integers, return indices of the two numbers such that they add up to a specific problem
given nums = [2, 7, 11, 15], target = 9
because nums[0] + nums[1] = 2 + 7 = 9
return [0, 1]
'''
#this is a great time to use a hash table
#class Solution(object):
def twoSum(nums, target):
index_mapping = {}
# go through the nums
# access to that number
# target - number, we can store this in a dictionary
#if compliment is in dictionary
#return the indicies
# else put number in dictionary
#go through everything
for i in range(len(nums)):
#look at the acutal value at index
current = nums[i]
#do the maths
compliment = target - current
#is compliment in dictionary?
if compliment in index_mapping:
return [index_mapping[compliment], i]
else:
index_mapping[current] = i
print(twoSum([2,7,11,15], 9)) | """given an array of integers, return indices of the two numbers such that they add up to a specific problem
given nums = [2, 7, 11, 15], target = 9
because nums[0] + nums[1] = 2 + 7 = 9
return [0, 1]
"""
def two_sum(nums, target):
index_mapping = {}
for i in range(len(nums)):
current = nums[i]
compliment = target - current
if compliment in index_mapping:
return [index_mapping[compliment], i]
else:
index_mapping[current] = i
print(two_sum([2, 7, 11, 15], 9)) |
def arrayMaximalAdjacentDifference(inputArray):
return max([abs(inputArray[x] - inputArray[x + 1]) for x in range(len(inputArray) - 1)])
# [2. 4, 1, 0] => 3
# [1, 1, 1, 1] => 1
# [-1, 4, 10, 3, -2] => 7
# [10, 11, 13] => 2
print(arrayMaximalAdjacentDifference([1, 1, 1, 1])) | def array_maximal_adjacent_difference(inputArray):
return max([abs(inputArray[x] - inputArray[x + 1]) for x in range(len(inputArray) - 1)])
print(array_maximal_adjacent_difference([1, 1, 1, 1])) |
[
{'base_name': 'PanSTARRS',
'service_type': 'xcone',
'adql': '',
'access_url': 'https://catalogs.mast.stsci.edu/api/v0.1/panstarrs/dr2/'
'mean.votable?flatten_response=false&raw=false&sort_by=distance'
'&ra={}&dec={}&radius={}'
}
]
| [{'base_name': 'PanSTARRS', 'service_type': 'xcone', 'adql': '', 'access_url': 'https://catalogs.mast.stsci.edu/api/v0.1/panstarrs/dr2/mean.votable?flatten_response=false&raw=false&sort_by=distance&ra={}&dec={}&radius={}'}] |
# https://www.codewars.com/kata/5174a4c0f2769dd8b1000003
# Finish the solution so that it sorts the passed in array of numbers. If the function passes in an empty array or null/nil value then it should return an empty array.
# For example:
# solution([1,2,3,10,5]) # should return [1,2,3,5,10]
# solution(None) # should return []
def solution(nums):
return sorted(nums) if nums != None else []
print(solution([1,2,3,10,5]), [1,2,3,5,10])
print(solution(None), [])
print(solution([]), [])
print(solution([20,2,10]), [2,10,20])
print(solution([2,20,10]), [2,10,20]) | def solution(nums):
return sorted(nums) if nums != None else []
print(solution([1, 2, 3, 10, 5]), [1, 2, 3, 5, 10])
print(solution(None), [])
print(solution([]), [])
print(solution([20, 2, 10]), [2, 10, 20])
print(solution([2, 20, 10]), [2, 10, 20]) |
# File for describing the Cab entity.
class Cab:
def __init__(self, city:str, brand: str, hourly_price: int, is_available: bool = True, id=None) -> None:
self.city = city
self.brand = brand
self.hourly_price = hourly_price
self.is_available = is_available
self.id = id | class Cab:
def __init__(self, city: str, brand: str, hourly_price: int, is_available: bool=True, id=None) -> None:
self.city = city
self.brand = brand
self.hourly_price = hourly_price
self.is_available = is_available
self.id = id |
print_('Voltages')
for a in ['CH1','CH2','CH3','AN8','CAP','SEN']:
button('Voltage : %s'%a,"get_voltage('%s')"%a,"display_number")
print('') #Just to get a newline
print('')
print_('Passive Elements')
button('Capacitance_:',"get_capacitance()","display_number")
print('')
button('Resistance__:',"get_resistance()","display_number")
| print_('Voltages')
for a in ['CH1', 'CH2', 'CH3', 'AN8', 'CAP', 'SEN']:
button('Voltage : %s' % a, "get_voltage('%s')" % a, 'display_number')
print('')
print('')
print_('Passive Elements')
button('Capacitance_:', 'get_capacitance()', 'display_number')
print('')
button('Resistance__:', 'get_resistance()', 'display_number') |
def main():
total = None
serie = input("What's your favorite serie?: ")
seasons = int(input("How much seasons have?: "))
number_chap = int(input("How much chapter have?: "))
duration_chap = int(input("How much minuts chapters have?: "))
total = seasons * number_chap * duration_chap / 60
print(f'You has been {total} hours look {serie}')
if __name__ == '__main__':
main() | def main():
total = None
serie = input("What's your favorite serie?: ")
seasons = int(input('How much seasons have?: '))
number_chap = int(input('How much chapter have?: '))
duration_chap = int(input('How much minuts chapters have?: '))
total = seasons * number_chap * duration_chap / 60
print(f'You has been {total} hours look {serie}')
if __name__ == '__main__':
main() |
BASE_LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"console": {
"format": "{module}: {message}",
"datefmt": "%d/%b/%Y %H:%M:%S",
"style": "{",
},
},
"handlers": {
"console": {
"level": "DEBUG",
"class": "logging.StreamHandler",
"formatter": "console",
},
},
"loggers": {
"": {"handlers": ["console"], "level": "DEBUG",},
"api": {"handlers": ["console"], "level": "DEBUG", "propagate": False,},
},
}
| base_logging = {'version': 1, 'disable_existing_loggers': False, 'formatters': {'console': {'format': '{module}: {message}', 'datefmt': '%d/%b/%Y %H:%M:%S', 'style': '{'}}, 'handlers': {'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'console'}}, 'loggers': {'': {'handlers': ['console'], 'level': 'DEBUG'}, 'api': {'handlers': ['console'], 'level': 'DEBUG', 'propagate': False}}} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.