content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
class Solution(object):
def countSubstrings(self, s):
def manacher(s):
s = '^#' + '#'.join(s) + '#$'
P = [0] * len(s)
C, R = 0, 0
for i in xrange(1, len(s) - 1):
i_mirror = 2 * C - i
if R > i:
P[i] = min(R-i, P[i_mirror])
while s[i+1+P[i]] == s[i-1-P[i]]:
P[i] += 1
if i + P[i] > R:
C, R = i, i+P[i]
return P
return sum((max_len+1)//2 for max_len in manacher(s))
s ="abc"
res = Solution().countSubstrings(s)
print(res) | class Solution(object):
def count_substrings(self, s):
def manacher(s):
s = '^#' + '#'.join(s) + '#$'
p = [0] * len(s)
(c, r) = (0, 0)
for i in xrange(1, len(s) - 1):
i_mirror = 2 * C - i
if R > i:
P[i] = min(R - i, P[i_mirror])
while s[i + 1 + P[i]] == s[i - 1 - P[i]]:
P[i] += 1
if i + P[i] > R:
(c, r) = (i, i + P[i])
return P
return sum(((max_len + 1) // 2 for max_len in manacher(s)))
s = 'abc'
res = solution().countSubstrings(s)
print(res) |
"""
Given an array, find the nearest smaller element G[i] for every element A[i] in the array such that the element has an
index smaller than i.
More formally,
G[i] for an element A[i] = an element A[j] such that
j is maximum possible AND
j < i AND
A[j] < A[i]
Elements for which no smaller element exist, consider next smaller element as -1.
Example:
Input : A : [4, 5, 2, 10, 8]
Return : [-1, 4, -1, 2, 2]
Example 2:
Input : A : [3, 2, 1]
Return : [-1, -1, -1]
""" | """
Given an array, find the nearest smaller element G[i] for every element A[i] in the array such that the element has an
index smaller than i.
More formally,
G[i] for an element A[i] = an element A[j] such that
j is maximum possible AND
j < i AND
A[j] < A[i]
Elements for which no smaller element exist, consider next smaller element as -1.
Example:
Input : A : [4, 5, 2, 10, 8]
Return : [-1, 4, -1, 2, 2]
Example 2:
Input : A : [3, 2, 1]
Return : [-1, -1, -1]
""" |
FG = "\033[38;5;{}m"
BG = "\033[48;5;{}m"
RST = "\033[0m"
def print_256_color_lookup_table_for(x):
if x == "foreground" or x == "fg":
x = FG
elif x == "background" or x == "bg":
x = BG
else:
raise ValueError("Unrecognized value for argument.")
for n in range(16):
# Standard and high intensity colors
print(x.format(n), str(n).rjust(3), RST, end=" ")
print()
for n in range(16, 232):
# 216 colors
print(x.format(n), str(n).rjust(3), RST, end=" ")
if (n - 15) % 36 == 0:
print()
for n in range(232, 256):
# Grayscale colors
print(x.format(n), str(n).rjust(3), RST, end=" ")
print()
def print_256_color_lookup_table():
print_256_color_lookup_table_for("foreground")
print("\n\n")
print_256_color_lookup_table_for("background")
def main():
print_256_color_lookup_table()
if __name__ == "__main__":
main()
| fg = '\x1b[38;5;{}m'
bg = '\x1b[48;5;{}m'
rst = '\x1b[0m'
def print_256_color_lookup_table_for(x):
if x == 'foreground' or x == 'fg':
x = FG
elif x == 'background' or x == 'bg':
x = BG
else:
raise value_error('Unrecognized value for argument.')
for n in range(16):
print(x.format(n), str(n).rjust(3), RST, end=' ')
print()
for n in range(16, 232):
print(x.format(n), str(n).rjust(3), RST, end=' ')
if (n - 15) % 36 == 0:
print()
for n in range(232, 256):
print(x.format(n), str(n).rjust(3), RST, end=' ')
print()
def print_256_color_lookup_table():
print_256_color_lookup_table_for('foreground')
print('\n\n')
print_256_color_lookup_table_for('background')
def main():
print_256_color_lookup_table()
if __name__ == '__main__':
main() |
demo_list = [1, 'hello', 1.34, True, [1, 2, 3]]
colors = ['red', 'green', 'blue']
numbers_list = list((1, 2, 3, 4))
print(numbers_list)
r = list(range(1, 100))
print(r)
print(len(colors))
print(colors[1])
print('green' in colors)
print(colors)
colors[1] = 'yellow'
print(colors)
colors.append('violet')
colors.extend(['violet', 'yellow'])
colors.extend('pink', 'black')
colors.insert(len(colors),'violet')
print(colors)
colors.pop()
print(colors)
print(colors)
colors.clear()
print(colors)
colors.sort()
print(colors)
print(colors)
print(colors)
print(colors.index('red'))
print(colors.count('red'))
| demo_list = [1, 'hello', 1.34, True, [1, 2, 3]]
colors = ['red', 'green', 'blue']
numbers_list = list((1, 2, 3, 4))
print(numbers_list)
r = list(range(1, 100))
print(r)
print(len(colors))
print(colors[1])
print('green' in colors)
print(colors)
colors[1] = 'yellow'
print(colors)
colors.append('violet')
colors.extend(['violet', 'yellow'])
colors.extend('pink', 'black')
colors.insert(len(colors), 'violet')
print(colors)
colors.pop()
print(colors)
print(colors)
colors.clear()
print(colors)
colors.sort()
print(colors)
print(colors)
print(colors)
print(colors.index('red'))
print(colors.count('red')) |
# Leetcode Problem Link:
# https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def lowestCommonAncestor(self, root: 'TreeNode', p: 'TreeNode', q: 'TreeNode') -> 'TreeNode':
if root == None or root == p or root == q:
return root
left = self.lowestCommonAncestor(root.left,p,q)
right = self.lowestCommonAncestor(root.right,p,q)
if left == None:
return right
if right == None:
return left
return root
| class Solution:
def lowest_common_ancestor(self, root: 'TreeNode', p: 'TreeNode', q: 'TreeNode') -> 'TreeNode':
if root == None or root == p or root == q:
return root
left = self.lowestCommonAncestor(root.left, p, q)
right = self.lowestCommonAncestor(root.right, p, q)
if left == None:
return right
if right == None:
return left
return root |
'''
I=1 J=7
I=1 J=6
I=1 J=5
'''
i = 1
j = 7
while i < 10:
print("I={} J={}".format(i, j))
if j == 5:
i = i + 2
j = 7
else:
j = j - 1 | """
I=1 J=7
I=1 J=6
I=1 J=5
"""
i = 1
j = 7
while i < 10:
print('I={} J={}'.format(i, j))
if j == 5:
i = i + 2
j = 7
else:
j = j - 1 |
# MIT License
#
# Copyright (c) 2020-2021 Markus Prasser
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE
class BibleBooksTable:
BIBLE_BOOKS = ('Genesis', 'Exodus', 'Leviticus', 'Numbers', 'Deuteronomy',
'Joshua', 'Judges', 'Ruth', '1 Samuel', '2 Samuel',
'1 Kings', '2 Kings', '1 Chronicles', '2 Chronicles', 'Ezra',
'Nehemiah', 'Esther', 'Job', 'Psalms', 'Proverbs',
'Ecclesiastes', 'Song of Solomon', 'Isaiah', 'Jeremiah',
'Lamentations', 'Ezekiel', 'Daniel', 'Hosea', 'Joel', 'Amos',
'Obadiah', 'Jonah', 'Micah', 'Nahum', 'Habakkuk',
'Zephaniah', 'Haggai', 'Zechariah', 'Malachi', 'Matthew',
'Mark', 'Luke', 'John', 'Acts', 'Romans', '1 Corinthians',
'2 Corinthians', 'Galatians', 'Ephesians', 'Philippians',
'Colossians', '1 Thessalonians', '2 Thessalonians',
'1 Timothy', '2 Timothy', 'Titus', 'Philemon', 'Hebrews',
'James', '1 Peter', '2 Peter', '1 John', '2 John', '3 John',
'Jude', 'Revelation')
CREATE_TABLE_CMD = 'CREATE TABLE IF NOT EXISTS BibleBooks' \
' (bId INTEGER PRIMARY KEY ASC,' \
' bName TEXT NOT NULL UNIQUE);'
def __init__(self, db_cursor):
self.db_cursor = db_cursor
self.db_cursor.execute(self.CREATE_TABLE_CMD)
if not self.db_cursor.execute('SELECT * FROM BibleBooks;').fetchall():
for bible_book in self.BIBLE_BOOKS:
self.db_cursor.execute('INSERT INTO BibleBooks (bName) VALUES (?);', (bible_book,))
self.cache = dict()
for bible_book_row in self.db_cursor.execute('SELECT * FROM BibleBooks;'):
self.cache[bible_book_row[1]] = int(bible_book_row[0])
def get_bible_books(self):
return [x[0] for x in sorted(list(self.cache.items()), key=lambda item: item[1])]
def get_bible_book_id(self, bible_book):
return self.cache[bible_book]
| class Biblebookstable:
bible_books = ('Genesis', 'Exodus', 'Leviticus', 'Numbers', 'Deuteronomy', 'Joshua', 'Judges', 'Ruth', '1 Samuel', '2 Samuel', '1 Kings', '2 Kings', '1 Chronicles', '2 Chronicles', 'Ezra', 'Nehemiah', 'Esther', 'Job', 'Psalms', 'Proverbs', 'Ecclesiastes', 'Song of Solomon', 'Isaiah', 'Jeremiah', 'Lamentations', 'Ezekiel', 'Daniel', 'Hosea', 'Joel', 'Amos', 'Obadiah', 'Jonah', 'Micah', 'Nahum', 'Habakkuk', 'Zephaniah', 'Haggai', 'Zechariah', 'Malachi', 'Matthew', 'Mark', 'Luke', 'John', 'Acts', 'Romans', '1 Corinthians', '2 Corinthians', 'Galatians', 'Ephesians', 'Philippians', 'Colossians', '1 Thessalonians', '2 Thessalonians', '1 Timothy', '2 Timothy', 'Titus', 'Philemon', 'Hebrews', 'James', '1 Peter', '2 Peter', '1 John', '2 John', '3 John', 'Jude', 'Revelation')
create_table_cmd = 'CREATE TABLE IF NOT EXISTS BibleBooks (bId INTEGER PRIMARY KEY ASC, bName TEXT NOT NULL UNIQUE);'
def __init__(self, db_cursor):
self.db_cursor = db_cursor
self.db_cursor.execute(self.CREATE_TABLE_CMD)
if not self.db_cursor.execute('SELECT * FROM BibleBooks;').fetchall():
for bible_book in self.BIBLE_BOOKS:
self.db_cursor.execute('INSERT INTO BibleBooks (bName) VALUES (?);', (bible_book,))
self.cache = dict()
for bible_book_row in self.db_cursor.execute('SELECT * FROM BibleBooks;'):
self.cache[bible_book_row[1]] = int(bible_book_row[0])
def get_bible_books(self):
return [x[0] for x in sorted(list(self.cache.items()), key=lambda item: item[1])]
def get_bible_book_id(self, bible_book):
return self.cache[bible_book] |
# Time: O(n * l^2), n is length of string s, l is maxLen of words in dict;
# slice to get substring s[i-l:i] takes l time
# Space: O(n)
# 139
# Given a string s and a dictionary of words dict,
# determine if s can be segmented into a space-separated sequence of one or more dictionary words.
#
# For example, given
# s = "leetcode",
# dict = ["leet", "code"].
#
# Return true because "leetcode" can be segmented as "leet code".
class Solution(object):
def wordBreak(self, s, wordDict): # USE THIS: only need to check all s[0:i], no need to
# check every s[i:j]
"""
:type s: str
:type wordDict: Set[str]
:rtype: bool
"""
if not wordDict: return False
n, dset = len(s), set(wordDict)
maxLen = max(len(w) for w in dset)
dp = [False] * (n+1)
dp[0] = True
for j in range(1, n + 1):
dp[j] = any(dp[j-l] and s[j-l:j] in dset \
for l in range(1, max(maxLen, j)+1))
return dp[n]
def wordBreak_ming(self, s, wordDict): # 2D space
dset, n = set(wordDict), len(s)
dp = [[False] * n for _ in range(n)]
for i in reversed(range(n)):
for j in range(i, n):
dp[i][j] = s[i:j + 1] in dset
if not dp[i][j]:
dp[i][j] = any(dp[i][k] and dp[k + 1][j] for k in range(i, j))
return dp[0][-1]
print(Solution().wordBreak("leetcode", ["leet", "code"])) # True
print(Solution().wordBreak("catsandog", ["cats", "dog", "sand", "and", "cat"])) # False
| class Solution(object):
def word_break(self, s, wordDict):
"""
:type s: str
:type wordDict: Set[str]
:rtype: bool
"""
if not wordDict:
return False
(n, dset) = (len(s), set(wordDict))
max_len = max((len(w) for w in dset))
dp = [False] * (n + 1)
dp[0] = True
for j in range(1, n + 1):
dp[j] = any((dp[j - l] and s[j - l:j] in dset for l in range(1, max(maxLen, j) + 1)))
return dp[n]
def word_break_ming(self, s, wordDict):
(dset, n) = (set(wordDict), len(s))
dp = [[False] * n for _ in range(n)]
for i in reversed(range(n)):
for j in range(i, n):
dp[i][j] = s[i:j + 1] in dset
if not dp[i][j]:
dp[i][j] = any((dp[i][k] and dp[k + 1][j] for k in range(i, j)))
return dp[0][-1]
print(solution().wordBreak('leetcode', ['leet', 'code']))
print(solution().wordBreak('catsandog', ['cats', 'dog', 'sand', 'and', 'cat'])) |
def max_heapify(A,k):
l = left(k)
m = middle(k)
r = right(k)
largest = k
if l < len(A) and A[l] > A[k]:
largest = l
else:
largest = k
if r < len(A) and A[r] > A[largest]:
largest = r
if m < len(A) and A[m] > A[largest]:
largest = m
if largest != k:
A[k], A[largest] = A[largest], A[k]
max_heapify(A, largest)
def left(i):
return 3 * i + 3
def right(i):
return 3 * i + 1
def middle(i):
return 3*i + 2
def build_max_heap(A):
n = len(A)//3
for k in range(n, -1, -1):
max_heapify(A,k)
A = [1,9,0,6,2,9,3,0,5,1]
build_max_heap(A)
print(A) | def max_heapify(A, k):
l = left(k)
m = middle(k)
r = right(k)
largest = k
if l < len(A) and A[l] > A[k]:
largest = l
else:
largest = k
if r < len(A) and A[r] > A[largest]:
largest = r
if m < len(A) and A[m] > A[largest]:
largest = m
if largest != k:
(A[k], A[largest]) = (A[largest], A[k])
max_heapify(A, largest)
def left(i):
return 3 * i + 3
def right(i):
return 3 * i + 1
def middle(i):
return 3 * i + 2
def build_max_heap(A):
n = len(A) // 3
for k in range(n, -1, -1):
max_heapify(A, k)
a = [1, 9, 0, 6, 2, 9, 3, 0, 5, 1]
build_max_heap(A)
print(A) |
"""
CCC '20 J3 - Art
Find this problem at:
https://dmoj.ca/problem/ccc20j3
"""
# Unzip the input into separate lists of x & y coordinates
xs, ys = [], []
for i in range(int(input())):
x, y = map(int, input().split(','))
xs.append(x)
ys.append(y)
# The smallest x & y coordinates and minus one (because of frame)
print(f'{min(xs)-1},{min(ys)-1}')
# The largest x & y coordinates and plus one (because of frame)
print(f'{max(xs)+1},{max(ys)+1}')
| """
CCC '20 J3 - Art
Find this problem at:
https://dmoj.ca/problem/ccc20j3
"""
(xs, ys) = ([], [])
for i in range(int(input())):
(x, y) = map(int, input().split(','))
xs.append(x)
ys.append(y)
print(f'{min(xs) - 1},{min(ys) - 1}')
print(f'{max(xs) + 1},{max(ys) + 1}') |
class Node:
def __init__(self, value=None, next=None):
self.value = value
self.next = next
def remove_from_list(value, listHead):
curr = listHead
prev = None
while curr:
if curr.value > value:
if prev:
prev.next = curr.next
else:
listHead = curr.next
else:
prev = curr
curr = curr.next
return listHead
def remove_from_list_generic(listHead, func=lambda a: a == 0):
curr = listHead # set current node to head node
prev = None # Set previous node to None
while curr: # While there is a current node
if not func(curr.value): # check to see if the value of that node is to be removed:
if prev: # if there is a previous node, and there is a node to remove:
prev.next = curr.next # the the next pointer on the previous node to skip the current node
else: # if there is no previous node, but also a node to remove
listHead = curr.next # set the listHead, what is to be returned, to the next node
else: # looks like this node is NOT to be removed, so
prev = curr # set the previous node to the current node, cus its def safe now.
curr = curr.next # and lastly, advance the current node to the next node for checking
return listHead
def print_me(listHead):
current = one
while current:
print(current.value)
current = current.next
print("____________")
if __name__ == "__main__":
one = Node(10)
one.next = Node(2)
one.next.next = Node(90)
one.next.next.next = Node(49)
one.next.next.next.next = Node(20)
one.next.next.next.next.next = Node(6)
print_me(one)
one = remove_from_list(4, one)
print_me(one)
one = remove_from_list_generic(one, lambda a: a <= 2)
print_me(one)
| class Node:
def __init__(self, value=None, next=None):
self.value = value
self.next = next
def remove_from_list(value, listHead):
curr = listHead
prev = None
while curr:
if curr.value > value:
if prev:
prev.next = curr.next
else:
list_head = curr.next
else:
prev = curr
curr = curr.next
return listHead
def remove_from_list_generic(listHead, func=lambda a: a == 0):
curr = listHead
prev = None
while curr:
if not func(curr.value):
if prev:
prev.next = curr.next
else:
list_head = curr.next
else:
prev = curr
curr = curr.next
return listHead
def print_me(listHead):
current = one
while current:
print(current.value)
current = current.next
print('____________')
if __name__ == '__main__':
one = node(10)
one.next = node(2)
one.next.next = node(90)
one.next.next.next = node(49)
one.next.next.next.next = node(20)
one.next.next.next.next.next = node(6)
print_me(one)
one = remove_from_list(4, one)
print_me(one)
one = remove_from_list_generic(one, lambda a: a <= 2)
print_me(one) |
# recursive approach to find the number of set
# bits in binary representation of positive integer n
def count_set_bits(n):
if (n == 0):
return 0
else:
return (n & 1) + count_set_bits(n >> 1)
# Get value from user
n = 41
# Function calling
print(count_set_bits(n))
| def count_set_bits(n):
if n == 0:
return 0
else:
return (n & 1) + count_set_bits(n >> 1)
n = 41
print(count_set_bits(n)) |
APPLICATION_GOOD_BODY = {
'information': {
'first_name': 'Andrew James',
'last_name': 'McLeod',
'date_of_birth': '1987-03-04',
'addresses': [
{
'address': '3023 BODEGA ROAD',
'city': 'VICTORIA',
'province_state': 'BC',
'country': 'CA',
}
],
}
}
AUTH_RESPONSE = {
'token': 'e5e4c777acb3c2a4e4234a282a8ac507c0be24708e6dfe121de563dda397784b',
'user_id': 'b8959d81-89aa-4e3e-9a5a-66f46bad591b',
}
AUTH_RESPONSE_FAIL = {'detail': 'Invalid username/password.'}
AUTH_RESPONSE_LIST_LOGINS = [
{'created': '2019-03-01T18:56:34.702679Z', 'expires': None, 'token_key': 'e21e9b59'}
]
LISTING_RESPONSE = {
'id': '86dd2316-f31d-4f5e-86a1-3a5e91a75a8c',
'created': '2019-03-01T14:34:32.753995Z',
'modified': '2019-03-01T14:34:32.949006Z',
'last_updated': '2019-03-01T14:34:32.754044Z',
'name': None,
'unit': None,
'move_in_date': None,
'move_in_immediately': False,
'rent': '1000.00',
'rent_range': None,
'security_deposit_amount': None,
'pet_deposit': False,
'pet_deposit_amount': None,
'storage_locker': False,
'property_manager_terms': None,
'is_active': True,
'is_public': False,
'url_code': '86dd2316-f31d-4f5e-86a1-3a5e91a75a8c',
'is_placeholder': False,
'owner': {
'id': 'b8959d81-89aa-4e3e-9a5a-66f46bad591b',
'email': '***********************',
'team': {
'id': 'c7105cf6-0ae6-4d0b-9373-45f3c25b83f5',
'name': 'Bungalow',
'country': 'CA',
'industry': '',
'team_type': 'PM',
'app_url': 'https://demo-app.certn.co/',
'settings_config': {
'get_org_name': 'Bungalow',
'org_name': 'Bungalow',
'org_logo_link': None,
'org_primary_color': None,
'behavioural_test_req': False,
'emergency_contact_req': False,
'personal_ref_req': False,
'education_req': False,
'tenancy_years_amount_req': 2,
'tenancy_ref_amount_req': 1,
'tenancy_ref_email_req': False,
'tenancy_ref_phone_req': True,
'employer_records_amount_req': 1,
'employer_years_amount_req': 0,
'employer_ref_req': True,
'employer_ref_email_req': False,
'employer_ref_phone_req': False,
'document_required': False,
'cover_letter_req': False,
'government_id_req': True,
'proof_of_income_req': True,
'resume_req': False,
'personal_ref_amount_req': 1,
'request_base': True,
'request_behavioural': True,
'request_softcheck': True,
'request_equifax': False,
'request_identity_verification': False,
'request_enhanced_identity_verification': False,
'request_criminal_record_check': False,
'request_enhanced_criminal_record_check': False,
'request_motor_vehicle_records': False,
'request_education_verification': False,
'request_employment_verification_3_yrs': False,
'request_employment_verification_5_yrs': False,
'request_employment_verification_7_yrs': False,
'request_us_criminal_softcheck': False,
'request_us_ssn_verification': False,
'request_employer_references': True,
'request_address_references': True,
'exclude_softcheck_possible_matches': False,
},
'billing_plan': {
'pm_softcheck_price': '9.99',
'hr_softcheck_price': '9.99',
'pm_equifax_price': '14.99',
'hr_equifax_price': '14.99',
'pm_identity_verification_price': '1.99',
'hr_identity_verification_price': '1.99',
'pm_enhanced_identity_verification_price': '4.99',
'hr_enhanced_identity_verification_price': '4.99',
'pm_criminal_record_check_price': '29.99',
'hr_criminal_record_check_price': '29.99',
'pm_motor_vehicle_records_price': '24.99',
'hr_motor_vehicle_records_price': '24.99',
'pm_us_criminal_softcheck_price': '14.99',
'hr_us_criminal_softcheck_price': '14.99',
'pm_us_ssn_verification_price': '4.99',
'hr_us_ssn_verification_price': '4.99',
'pm_education_verification_price': '14.99',
'hr_education_verification_price': '14.99',
'pm_credential_verification_price': '14.99',
'hr_credential_verification_price': '14.99',
'pm_employment_verification_3_yrs_price': '14.99',
'hr_employment_verification_3_yrs_price': '14.99',
'pm_employment_verification_5_yrs_price': '19.99',
'hr_employment_verification_5_yrs_price': '19.99',
'pm_employment_verification_7_yrs_price': '22.99',
'hr_employment_verification_7_yrs_price': '22.99',
'pm_us_criminal_record_check_tier_1_price': '15.00',
'hr_us_criminal_record_check_tier_1_price': '15.00',
'pm_us_criminal_record_check_tier_2_price': '30.00',
'hr_us_criminal_record_check_tier_2_price': '30.00',
'pm_us_criminal_record_check_tier_3_price': '40.00',
'hr_us_criminal_record_check_tier_3_price': '40.00',
'pm_employer_references_price': '4.99',
'pm_address_references_price': '4.99',
'pm_education_references_price': '4.99',
'pm_credential_references_price': '4.99',
'hr_employer_references_price': '4.99',
'hr_address_references_price': '4.99',
'hr_education_references_price': '4.99',
'hr_credential_references_price': '4.99',
},
},
},
'property': {
'id': 'ef834890-ce60-4b95-bee9-69a12c59d4f8',
'status': 'N',
'get_status_display': 'No Vacancy',
'created': '2019-03-01T14:34:32.601691Z',
'modified': '2019-03-01T14:34:32.601720Z',
'last_updated': '2019-03-01T14:34:32.601755Z',
'building': None,
'building_code': None,
'address': '123 Fakestreet',
'city': 'Victoria',
'province_state': 'BC',
'country': 'N',
'postal_code': None,
'is_active': True,
'owner': {
'id': 'b8959d81-89aa-4e3e-9a5a-66f46bad591b',
'email': '************************',
'team': {
'id': 'c7105cf6-0ae6-4d0b-9373-45f3c25b83f5',
'name': 'Bungalow',
'country': 'CA',
'industry': '',
'team_type': 'PM',
'app_url': 'https://demo-app.certn.co/',
'settings_config': {
'get_org_name': 'Bungalow',
'org_name': 'Bungalow',
'org_logo_link': None,
'org_primary_color': None,
'behavioural_test_req': False,
'emergency_contact_req': False,
'personal_ref_req': False,
'education_req': False,
'tenancy_years_amount_req': 2,
'tenancy_ref_amount_req': 1,
'tenancy_ref_email_req': False,
'tenancy_ref_phone_req': True,
'employer_records_amount_req': 1,
'employer_years_amount_req': 0,
'employer_ref_req': True,
'employer_ref_email_req': False,
'employer_ref_phone_req': False,
'document_required': False,
'cover_letter_req': False,
'government_id_req': True,
'proof_of_income_req': True,
'resume_req': False,
'personal_ref_amount_req': 1,
'request_base': True,
'request_behavioural': True,
'request_softcheck': True,
'request_equifax': False,
'request_identity_verification': False,
'request_enhanced_identity_verification': False,
'request_criminal_record_check': False,
'request_enhanced_criminal_record_check': False,
'request_motor_vehicle_records': False,
'request_education_verification': False,
'request_employment_verification_3_yrs': False,
'request_employment_verification_5_yrs': False,
'request_employment_verification_7_yrs': False,
'request_us_criminal_softcheck': False,
'request_us_ssn_verification': False,
'request_employer_references': True,
'request_address_references': True,
'exclude_softcheck_possible_matches': False,
},
'billing_plan': {
'pm_softcheck_price': '9.99',
'hr_softcheck_price': '9.99',
'pm_equifax_price': '14.99',
'hr_equifax_price': '14.99',
'pm_identity_verification_price': '1.99',
'hr_identity_verification_price': '1.99',
'pm_enhanced_identity_verification_price': '4.99',
'hr_enhanced_identity_verification_price': '4.99',
'pm_criminal_record_check_price': '29.99',
'hr_criminal_record_check_price': '29.99',
'pm_motor_vehicle_records_price': '24.99',
'hr_motor_vehicle_records_price': '24.99',
'pm_us_criminal_softcheck_price': '14.99',
'hr_us_criminal_softcheck_price': '14.99',
'pm_us_ssn_verification_price': '4.99',
'hr_us_ssn_verification_price': '4.99',
'pm_education_verification_price': '14.99',
'hr_education_verification_price': '14.99',
'pm_credential_verification_price': '14.99',
'hr_credential_verification_price': '14.99',
'pm_employment_verification_3_yrs_price': '14.99',
'hr_employment_verification_3_yrs_price': '14.99',
'pm_employment_verification_5_yrs_price': '19.99',
'hr_employment_verification_5_yrs_price': '19.99',
'pm_employment_verification_7_yrs_price': '22.99',
'hr_employment_verification_7_yrs_price': '22.99',
'pm_us_criminal_record_check_tier_1_price': '15.00',
'hr_us_criminal_record_check_tier_1_price': '15.00',
'pm_us_criminal_record_check_tier_2_price': '30.00',
'hr_us_criminal_record_check_tier_2_price': '30.00',
'pm_us_criminal_record_check_tier_3_price': '40.00',
'hr_us_criminal_record_check_tier_3_price': '40.00',
'pm_employer_references_price': '4.99',
'pm_address_references_price': '4.99',
'pm_education_references_price': '4.99',
'pm_credential_references_price': '4.99',
'hr_employer_references_price': '4.99',
'hr_address_references_price': '4.99',
'hr_education_references_price': '4.99',
'hr_credential_references_price': '4.99',
},
},
},
'listing_count': 1,
'full_address': '123 Fakestreet Victoria BC N ',
'url_code': 'ef834890-ce60-4b95-bee9-69a12c59d4f8',
},
'applicant_count': 0,
'new_applicant_count': 0,
'is_psychometric_required': True,
'notification_list': [],
'selected_application': None,
'use_team_link': False,
'length_of_lease': None,
}
LISTINGS_LIST_RESPONSE = {
'count': 1,
'next': 'http://demo-api.certn.co/api/v2/listings/?page=2',
'previous': None,
'results': [LISTING_RESPONSE],
}
INVITE_BODY = {'email': 'fake@fake.com', 'email_applicants': False}
QUICK_RESPONSE = {
'notes': None,
'is_favourite': False,
'has_viewed_listing': None,
'is_viewed': False,
'id': 'db13d65c-4311-46e7-8d4d-97feb693e113',
'created': '2019-03-04T14:51:24.323137Z',
'modified': '2019-03-04T14:51:24.582378Z',
'submitted_time': '2019-03-04T14:51:24.468514Z',
'last_updated': '2019-03-04T14:51:24.323304Z',
'status': 'Analyzing',
'applicant_type': 'Quick Screen',
'monthly_cost': None,
'is_equifax_eligible': True,
'certn_score_label': 'NONE',
'is_submitted': True,
'softcheck_discounted': False,
'equifax_discounted': False,
'is_cosigner': False,
'email_references': False,
'tenancy_verified': None,
'employment_verified': None,
'employment_verification': 'NONE',
'certn_score': None,
'late_rent_potential': None,
'damage_to_property': None,
'eviction_potential': None,
'tenancy_length': None,
'late_rent_potential_label': 'None',
'damage_to_property_label': 'None',
'eviction_potential_label': 'None',
'tenancy_length_label': 'None',
'applicant_account': {'id': 'bf5080d0-7f73-4c8f-9cbd-afcf54450962', 'email': None},
'application': {
'id': 'd799e68f-3491-4645-95c7-8f42b3c2976d',
'created': '2019-03-04T14:51:24.318595Z',
'modified': '2019-03-04T14:51:24.591766Z',
'owner': {
'id': 'b8959d81-89aa-4e3e-9a5a-66f46bad591b',
'email': '*******************',
'team': {
'id': 'c7105cf6-0ae6-4d0b-9373-45f3c25b83f5',
'name': 'Bungalow',
'country': 'CA',
'industry': '',
'team_type': 'PM',
'app_url': 'https://demo-app.certn.co/',
'settings_config': {
'get_org_name': 'Bungalow',
'org_name': 'Bungalow',
'org_logo_link': None,
'org_primary_color': None,
'behavioural_test_req': False,
'emergency_contact_req': False,
'personal_ref_req': False,
'education_req': False,
'tenancy_years_amount_req': 2,
'tenancy_ref_amount_req': 1,
'tenancy_ref_email_req': False,
'tenancy_ref_phone_req': True,
'employer_records_amount_req': 1,
'employer_years_amount_req': 0,
'employer_ref_req': True,
'employer_ref_email_req': False,
'employer_ref_phone_req': False,
'document_required': False,
'cover_letter_req': False,
'government_id_req': True,
'proof_of_income_req': True,
'resume_req': False,
'personal_ref_amount_req': 1,
'request_base': True,
'request_behavioural': True,
'request_softcheck': True,
'request_equifax': False,
'request_identity_verification': False,
'request_enhanced_identity_verification': False,
'request_criminal_record_check': False,
'request_enhanced_criminal_record_check': False,
'request_motor_vehicle_records': False,
'request_education_verification': False,
'request_employment_verification_3_yrs': False,
'request_employment_verification_5_yrs': False,
'request_employment_verification_7_yrs': False,
'request_us_criminal_softcheck': False,
'request_us_ssn_verification': False,
'request_employer_references': True,
'request_address_references': True,
'exclude_softcheck_possible_matches': False,
},
'billing_plan': {
'pm_softcheck_price': '9.99',
'hr_softcheck_price': '9.99',
'pm_equifax_price': '14.99',
'hr_equifax_price': '14.99',
'pm_identity_verification_price': '1.99',
'hr_identity_verification_price': '1.99',
'pm_enhanced_identity_verification_price': '4.99',
'hr_enhanced_identity_verification_price': '4.99',
'pm_criminal_record_check_price': '29.99',
'hr_criminal_record_check_price': '29.99',
'pm_motor_vehicle_records_price': '24.99',
'hr_motor_vehicle_records_price': '24.99',
'pm_us_criminal_softcheck_price': '14.99',
'hr_us_criminal_softcheck_price': '14.99',
'pm_us_ssn_verification_price': '4.99',
'hr_us_ssn_verification_price': '4.99',
'pm_education_verification_price': '14.99',
'hr_education_verification_price': '14.99',
'pm_credential_verification_price': '14.99',
'hr_credential_verification_price': '14.99',
'pm_employment_verification_3_yrs_price': '14.99',
'hr_employment_verification_3_yrs_price': '14.99',
'pm_employment_verification_5_yrs_price': '19.99',
'hr_employment_verification_5_yrs_price': '19.99',
'pm_employment_verification_7_yrs_price': '22.99',
'hr_employment_verification_7_yrs_price': '22.99',
'pm_us_criminal_record_check_tier_1_price': '15.00',
'hr_us_criminal_record_check_tier_1_price': '15.00',
'pm_us_criminal_record_check_tier_2_price': '30.00',
'hr_us_criminal_record_check_tier_2_price': '30.00',
'pm_us_criminal_record_check_tier_3_price': '40.00',
'hr_us_criminal_record_check_tier_3_price': '40.00',
'pm_employer_references_price': '4.99',
'pm_address_references_price': '4.99',
'pm_education_references_price': '4.99',
'pm_credential_references_price': '4.99',
'hr_employer_references_price': '4.99',
'hr_address_references_price': '4.99',
'hr_education_references_price': '4.99',
'hr_credential_references_price': '4.99',
},
},
},
'listing': None,
'property': None,
'status': 'Complete',
'applicants': [
{
'id': '72af8e90-832f-4aee-89e4-3bcf090aa758',
'status': 'Analyzing',
'first_name': 'Andrew James',
'last_name': 'McLeod',
'email': None,
'certn_score': None,
'share_of_rent': None,
'is_cosigner': False,
'application_url': None,
'report_url': (
'https://demo-app.certn.co/pm/applications/'
'72af8e90-832f-4aee-89e4-3bcf090aa758/'
),
}
],
'is_active': True,
'is_selected': False,
'applicant_status': 'N',
'get_applicant_status_display': 'None',
},
'behavioural_result_summary': (
'The Behavioural score is determined by '
'analysing psychometric personality tests,'
' social media analysis, and more.'
),
'information': {
'id': '9de408e3-6fa8-4520-b772-236c674a885d',
'created': '2019-03-04T14:51:24.302393Z',
'modified': '2019-03-04T14:51:24.335917Z',
'id_url': None,
'id_file_name': None,
'first_name': 'Andrew James',
'last_name': 'McLeod',
'middle_name': None,
'employers': [],
'applicant_created': False,
'applicant_verified': False,
'educations': [],
'cover_letter': None,
'addresses': [
{
'id': '15d7a997-9b4a-4825-b853-2d8276f2892b',
'created': '2019-03-04T14:51:24.307633Z',
'current': True,
'address': '3023 BODEGA ROAD',
'unit': None,
'rent_or_own': 'R',
'city': 'VICTORIA',
'province_state': 'BC',
'country': 'CA',
'postal_code': None,
'cost': None,
'start_date': None,
'end_date': None,
'reason_for_leaving': 'N',
'landlords_first_name': None,
'landlords_last_name': None,
'landlords_phone': None,
'landlords_email': None,
'reference': None,
'full_address': ' 3023 BODEGA ROAD VICTORIA BC CA',
'information': {'first_name': 'Andrew James', 'last_name': 'McLeod'},
'address_reference': None,
'other_reason_for_leaving': None,
'auto_address': None,
'place_id': None,
'verification': None,
'consistency': None,
'rent_or_own_label': 'Rent',
'reference_verified': False,
'other_province_state': None,
'county': None,
}
],
'date_of_birth': '1987-03-04',
'phone_number': None,
'co_signer': None,
'applicant_account': {'id': 'bf5080d0-7f73-4c8f-9cbd-afcf54450962', 'email': None},
'co_signer_living_with_applicant': None,
'co_signer_association': 'N',
'co_signer_first_name': None,
'co_signer_last_name': None,
'co_signer_email': None,
'co_signer_phone': None,
'car': None,
'car_make': None,
'car_model': None,
'car_year': None,
'car_color': None,
'health_insurance_label': 'No Coverage',
'car_prov_state': None,
'car_plate': None,
'smoke': None,
'conviction_explanation': None,
'personal_reference_association_label': 'None',
'bankruptcy_explanation': None,
'eviction_explanation': None,
'status': 'C',
'rent_refusal_explanation': None,
'health_insurance': 'NC',
'feedback': None,
'pets': None,
'license_number': None,
'license_valid': None,
'license_prov_state': None,
'pets_type': None,
'emergency_contact': False,
'emergency_contact_first_name': None,
'emergency_contact_last_name': None,
'emergency_contact_email': None,
'expected_tenancy_length': None,
'personal_reference': False,
'emergency_contact_phone': None,
'personal_reference_first_name': None,
'personal_reference_last_name': None,
'personal_reference_phone': None,
'personal_reference_email': None,
'personal_reference_association': 'N',
'occupants': [],
'sin_ssn': None,
'facebook_link': None,
'twitter_link': None,
'linkedin_link': None,
'googleplus_link': None,
'desired_move_in_date': None,
'skills': [],
'documents': [],
'pet_details': [],
'rent_refusals': [],
'bankruptcies': [],
'evictions': [],
'convictions': [],
'co_signer_association_label': 'None',
'former_names': None,
'last_name_at_birth': None,
'alias': None,
'gender': None,
'birth_city': None,
'birth_province_state': None,
'birth_country': None,
'birth_other_province_state': None,
'personal_references': [],
'terms_accepted': False,
'rcmp_consent_given': False,
'co_signer_report_url': None,
'phone': None,
},
'psychometric_test': None,
'facebook': None,
'linkedin': None,
'informational_result': None,
'behavioural_result': None,
'risk_result': {
'id': 'dfec7632-e148-4e5c-a6f9-e018a802d75b',
'status': 'NONE',
'overall_score': 'NONE',
'risk_evaluations': [],
'red_flags': None,
'green_flags': None,
'description': (
'The social score is based on self-provided information from the '
'applicant and an analysis of the applicants information available '
'to Certn. This includes a criminal identity scan, social profile '
'scan, as well as other important informational data points. *Note '
'that when criminal identities are discovered the overall Certn '
'score is not impacted by the results found unless the match '
'similarity is above our confidence threshold of 95%.'
),
'risk_description': (
'The criminal identity risk is an assessment of the risk posed to '
'assets given the results of the criminal identity scan. Please '
'review any risk relevant information from our negative news and '
'criminal database analysis below.'
),
'similarity_description': (
'The criminal identity similarity percentage is a comparison between '
'the applicants self-provided information and the corresponding '
'information we find in our databases. As a general guideline, if '
'the results of our criminal identity scan has a similarity '
'percentage of above 95%, Certn can confidently predict that the '
'information presented below corresponds correctly to the applicant '
'being screened. However, if the criminal identity scan returns results '
'with a similarity percentage below 95%, the onus falls to the client '
'to accurately verify the results.'
),
'match_description': (
'The criminal identity Match Score is a comparison between the '
'applicants self-provided information and the corresponding '
'information we find in our databases. As a general guideline, if '
'the results of our criminal identity scan finds a "Likely Match", '
'Certn can confidently predict that the information presented '
'below corresponds correctly to the applicant being screened. '
'However, if the criminal identity scan returns reasults with a '
'Match Score of "Possible Match", the onus falls on the client to '
'accurately verify the results.'
),
},
'equifax_result': None,
'identity_verification': None,
'enhanced_identity_verification': None,
'manual_id_verification': None,
'late_rent_potential_description': (
'Late rent potential risk is assessed using an analysis of an '
'applicants financial stability and / or behavioural credibility '
'characteristics that predicts the likelihood of late or missed payments.'
),
'damage_to_property_description': (
'Damage to property risk is assessed using an analysis of an applicants '
'personal history and / or behavioural cleanliness and neighbour '
'characteristics that predicts the likelihood of causing damage to property.'
),
'eviction_potential_description': (
'Early vacancy risk if assessed using an analysis of an applicants '
'tenancy history and / or behavioural stability characteristics that '
'predicts the likelihood of breaking a lease.'
),
'applicant_result_description': (
'Certn Rating and Certn Score is a summary assessment of the applicants '
'unique characteristics and personal information. Andrew James McLeod '
'has received a Certn rating of "NONE" which indicates an analysis with '
'no potential issues. Although the score is a summary assessment, Certn '
'still recommends you carefully review each section of this report to '
'determine if the applicant meets your specific requirements.'
),
'applicant_result_summary': (
'The Applicant score is determined by analysing tenancy history, '
'employment history, and more.'
),
'social_result_summary': (
'The Social score is determined by analysing criminal identity, negative '
'news, social profile scans, and more.'
),
'financial_result_summary': (
'The Financial score is determined by analysing an Equifax credit check, '
'and more.'
),
'identity_verified': None,
'identity_verified_summary': (
'Upgrade Certn Report to verify Andrew James McLeods identity.'
),
'request_equifax': False,
'request_softcheck': True,
'request_identity_verification': False,
'request_criminal_record_check': False,
'request_motor_vehicle_records': False,
'request_behavioural': True,
'request_enhanced_identity_verification': False,
'request_education_verification': False,
'request_credential_verification': False,
'request_employment_verification_3_yrs': False,
'request_employment_verification_5_yrs': False,
'request_employment_verification_7_yrs': False,
'can_upgrade': True,
'reference_result': None,
'tag': None,
'comments': [],
'request_us_criminal_softcheck': False,
'request_us_ssn_verification': False,
'country': 'CA',
'request_employer_references': True,
'request_address_references': True,
'request_us_criminal_record_check_tier_1': False,
'request_us_criminal_record_check_tier_2': False,
'request_us_criminal_record_check_tier_3': False,
'us_criminal_record_check_result': None,
}
APPLICANT_GET_RESPONSE = {
'notes': None,
'is_favourite': False,
'has_viewed_listing': None,
'is_viewed': False,
'id': 'db13d65c-4311-46e7-8d4d-97feb693e113',
'created': '2019-03-04T17:00:38.684380Z',
'modified': '2019-03-04T17:00:38.919122Z',
'submitted_time': '2019-03-04T17:00:38.837847Z',
'last_updated': '2019-03-04T17:00:38.684535Z',
'status': 'Analyzing',
'applicant_type': 'Quick Screen',
'monthly_cost': None,
'is_equifax_eligible': True,
'certn_score_label': 'NONE',
'is_submitted': True,
'softcheck_discounted': False,
'equifax_discounted': False,
'is_cosigner': False,
'email_references': False,
'tenancy_verified': None,
'employment_verified': None,
'employment_verification': 'NONE',
'certn_score': None,
'late_rent_potential': None,
'damage_to_property': None,
'eviction_potential': None,
'tenancy_length': None,
'late_rent_potential_label': 'None',
'damage_to_property_label': 'None',
'eviction_potential_label': 'None',
'tenancy_length_label': 'None',
'applicant_account': {'id': 'e8d7dd67-7b3f-4edb-acb9-8c28c2f10dbe', 'email': None},
'application': {
'id': '10bfda79-c571-49f5-8630-132ccef86592',
'created': '2019-03-04T17:00:38.679697Z',
'modified': '2019-03-04T17:00:38.928674Z',
'owner': {
'id': 'b8959d81-89aa-4e3e-9a5a-66f46bad591b',
'email': '****************',
'team': {
'id': 'c7105cf6-0ae6-4d0b-9373-45f3c25b83f5',
'name': 'Bungalow',
'country': 'CA',
'industry': '',
'team_type': 'PM',
'app_url': 'https://demo-app.certn.co/',
'settings_config': {
'get_org_name': 'Bungalow',
'org_name': 'Bungalow',
'org_logo_link': None,
'org_primary_color': None,
'behavioural_test_req': False,
'emergency_contact_req': False,
'personal_ref_req': False,
'education_req': False,
'tenancy_years_amount_req': 2,
'tenancy_ref_amount_req': 1,
'tenancy_ref_email_req': False,
'tenancy_ref_phone_req': True,
'employer_records_amount_req': 1,
'employer_years_amount_req': 0,
'employer_ref_req': True,
'employer_ref_email_req': False,
'employer_ref_phone_req': False,
'document_required': False,
'cover_letter_req': False,
'government_id_req': True,
'proof_of_income_req': True,
'resume_req': False,
'personal_ref_amount_req': 1,
'request_base': True,
'request_behavioural': True,
'request_softcheck': True,
'request_equifax': False,
'request_identity_verification': False,
'request_enhanced_identity_verification': False,
'request_criminal_record_check': False,
'request_enhanced_criminal_record_check': False,
'request_motor_vehicle_records': False,
'request_education_verification': False,
'request_employment_verification_3_yrs': False,
'request_employment_verification_5_yrs': False,
'request_employment_verification_7_yrs': False,
'request_us_criminal_softcheck': False,
'request_us_ssn_verification': False,
'request_employer_references': True,
'request_address_references': True,
'exclude_softcheck_possible_matches': False,
},
'billing_plan': {
'pm_softcheck_price': '9.99',
'hr_softcheck_price': '9.99',
'pm_equifax_price': '14.99',
'hr_equifax_price': '14.99',
'pm_identity_verification_price': '1.99',
'hr_identity_verification_price': '1.99',
'pm_enhanced_identity_verification_price': '4.99',
'hr_enhanced_identity_verification_price': '4.99',
'pm_criminal_record_check_price': '29.99',
'hr_criminal_record_check_price': '29.99',
'pm_motor_vehicle_records_price': '24.99',
'hr_motor_vehicle_records_price': '24.99',
'pm_us_criminal_softcheck_price': '14.99',
'hr_us_criminal_softcheck_price': '14.99',
'pm_us_ssn_verification_price': '4.99',
'hr_us_ssn_verification_price': '4.99',
'pm_education_verification_price': '14.99',
'hr_education_verification_price': '14.99',
'pm_credential_verification_price': '14.99',
'hr_credential_verification_price': '14.99',
'pm_employment_verification_3_yrs_price': '14.99',
'hr_employment_verification_3_yrs_price': '14.99',
'pm_employment_verification_5_yrs_price': '19.99',
'hr_employment_verification_5_yrs_price': '19.99',
'pm_employment_verification_7_yrs_price': '22.99',
'hr_employment_verification_7_yrs_price': '22.99',
'pm_us_criminal_record_check_tier_1_price': '15.00',
'hr_us_criminal_record_check_tier_1_price': '15.00',
'pm_us_criminal_record_check_tier_2_price': '30.00',
'hr_us_criminal_record_check_tier_2_price': '30.00',
'pm_us_criminal_record_check_tier_3_price': '40.00',
'hr_us_criminal_record_check_tier_3_price': '40.00',
'pm_employer_references_price': '4.99',
'pm_address_references_price': '4.99',
'pm_education_references_price': '4.99',
'pm_credential_references_price': '4.99',
'hr_employer_references_price': '4.99',
'hr_address_references_price': '4.99',
'hr_education_references_price': '4.99',
'hr_credential_references_price': '4.99',
},
},
},
'listing': None,
'property': None,
'status': 'Complete',
'applicants': [
{
'id': 'db13d65c-4311-46e7-8d4d-97feb693e113',
'status': 'Analyzing',
'first_name': 'Andrew James',
'last_name': 'McLeod',
'email': None,
'certn_score': None,
'share_of_rent': None,
'is_cosigner': False,
'application_url': None,
'report_url': (
'https://demo-app.certn.co/pm/applications/'
'db13d65c-4311-46e7-8d4d-97feb693e113/'
),
}
],
'is_active': True,
'is_selected': False,
'applicant_status': 'N',
'get_applicant_status_display': 'None',
},
'behavioural_result_summary': (
'The Behavioural score is determined by analysing psychometric '
'personality tests, social media analysis, and more.'
),
'information': {
'id': '00db959b-eb37-4e7c-83bf-8d68a6abcecd',
'created': '2019-03-04T17:00:38.663344Z',
'modified': '2019-03-04T17:00:38.707965Z',
'id_url': None,
'id_file_name': None,
'first_name': 'Andrew James',
'last_name': 'McLeod',
'middle_name': None,
'employers': [],
'applicant_created': False,
'applicant_verified': False,
'educations': [],
'cover_letter': None,
'addresses': [
{
'id': '0a1e0897-8239-42c3-bba4-52839d975fd3',
'created': '2019-03-04T17:00:38.668610Z',
'current': True,
'address': '3023 BODEGA ROAD',
'unit': None,
'rent_or_own': 'R',
'city': 'VICTORIA',
'province_state': 'BC',
'country': 'CA',
'postal_code': None,
'cost': None,
'start_date': None,
'end_date': None,
'reason_for_leaving': 'N',
'landlords_first_name': None,
'landlords_last_name': None,
'landlords_phone': None,
'landlords_email': None,
'reference': None,
'full_address': ' 3023 BODEGA ROAD VICTORIA BC CA',
'information': {'first_name': 'Andrew James', 'last_name': 'McLeod'},
'address_reference': None,
'other_reason_for_leaving': None,
'auto_address': None,
'place_id': None,
'verification': None,
'consistency': None,
'rent_or_own_label': 'Rent',
'reference_verified': False,
'other_province_state': None,
'county': None,
}
],
'date_of_birth': '1987-03-04',
'phone_number': None,
'co_signer': None,
'applicant_account': {'id': 'e8d7dd67-7b3f-4edb-acb9-8c28c2f10dbe', 'email': None},
'co_signer_living_with_applicant': None,
'co_signer_association': 'N',
'co_signer_first_name': None,
'co_signer_last_name': None,
'co_signer_email': None,
'co_signer_phone': None,
'car': None,
'car_make': None,
'car_model': None,
'car_year': None,
'car_color': None,
'health_insurance_label': 'No Coverage',
'car_prov_state': None,
'car_plate': None,
'smoke': None,
'conviction_explanation': None,
'personal_reference_association_label': 'None',
'bankruptcy_explanation': None,
'eviction_explanation': None,
'status': 'C',
'rent_refusal_explanation': None,
'health_insurance': 'NC',
'feedback': None,
'pets': None,
'license_number': None,
'license_valid': None,
'license_prov_state': None,
'pets_type': None,
'emergency_contact': False,
'emergency_contact_first_name': None,
'emergency_contact_last_name': None,
'emergency_contact_email': None,
'expected_tenancy_length': None,
'personal_reference': False,
'emergency_contact_phone': None,
'personal_reference_first_name': None,
'personal_reference_last_name': None,
'personal_reference_phone': None,
'personal_reference_email': None,
'personal_reference_association': 'N',
'occupants': [],
'sin_ssn': None,
'facebook_link': None,
'twitter_link': None,
'linkedin_link': None,
'googleplus_link': None,
'desired_move_in_date': None,
'skills': [],
'documents': [],
'pet_details': [],
'rent_refusals': [],
'bankruptcies': [],
'evictions': [],
'convictions': [],
'co_signer_association_label': 'None',
'former_names': None,
'last_name_at_birth': None,
'alias': None,
'gender': None,
'birth_city': None,
'birth_province_state': None,
'birth_country': None,
'birth_other_province_state': None,
'personal_references': [],
'terms_accepted': False,
'rcmp_consent_given': False,
'co_signer_report_url': None,
'phone': None,
},
'psychometric_test': None,
'facebook': None,
'linkedin': None,
'informational_result': None,
'behavioural_result': None,
'risk_result': {
'id': '71c4d042-c19e-46e1-a81e-3779b992ae03',
'status': 'NONE',
'overall_score': 'NONE',
'risk_evaluations': [],
'red_flags': None,
'green_flags': None,
'description': (
'The social score is based on self-provided information from the '
'applicant and an analysis of the applicants information available '
'to Certn. This includes a criminal identity scan, social profile '
'scan, as well as other important informational data points. *Note '
'that when criminal identities are discovered the overall Certn '
'score is not impacted by the results found unless the match '
'similarity is above our confidence threshold of 95%.'
),
'risk_description': (
'The criminal identity risk is an assessment of the risk posed to '
'assets given the results of the criminal identity scan. Please '
'review any risk relevant information from our negative news and '
'criminal database analysis below.'
),
'similarity_description': (
'The criminal identity similarity percentage is a comparison between '
'the applicants self-provided information and the corresponding '
'information we find in our databases. As a general guideline, if '
'the results of our criminal identity scan has a similarity percentage '
'of above 95%, Certn can confidently predict that the information '
'presented below corresponds correctly to the applicant being '
'screened. However, if the criminal identity scan returns results '
'with a similarity percentage below 95%, the onus falls to the '
'client to accurately verify the results.'
),
'match_description': (
'The criminal identity Match Score is a comparison between the '
'applicants self-provided information and the corresponding '
'information we find in our databases. As a general guideline, if '
'the results of our criminal identity scan finds a "Likely Match", '
'Certn can confidently predict that the information presented below '
'corresponds correctly to the applicant being screened. However, if '
'the criminal identity scan returns reasults with a Match Score of '
'"Possible Match:", the onus falls on the client to accurately verify '
'the results.'
),
},
'equifax_result': None,
'identity_verification': None,
'enhanced_identity_verification': None,
'manual_id_verification': None,
'late_rent_potential_description': (
'Late rent potential risk is assessed using an analysis of an applicants '
'financial stability and / or behavioural credibility characteristics '
'that predicts the likelihood of late or missed payments.'
),
'damage_to_property_description': (
'Damage to property risk is assessed using an analysis of an applicants '
'personal history and / or behavioural cleanliness and neighbour '
'characteristics that predicts the likelihood of causing damage to property.'
),
'eviction_potential_description': (
'Early vacancy risk if assessed using an analysis of an applicants '
'tenancy history and / or behavioural stability characteristics that '
'predicts the likelihood of breaking a lease.'
),
'applicant_result_description': (
'Certn Rating and Certn Score is a summary assessment of the applicants '
'unique characteristics and personal information. Andrew James McLeod has '
'received a Certn rating of "NONE" which indicates an analysis with no '
'potential issues. Although the score is a summary assessment, Certn '
'still recommends you carefully review each section of this report to '
'determine if the applicant meets your specific requirements.'
),
'applicant_result_summary': (
'The Applicant score is determined by analysing tenancy history, '
'employment history, and more.'
),
'social_result_summary': (
'The Social score is determined by analysing criminal identity, negative '
'news, social profile scans, and more.'
),
'financial_result_summary': (
'The Financial score is determined by analysing an Equifax credit check, '
'and more.'
),
'identity_verified': None,
'identity_verified_summary': (
'Upgrade Certn Report to verify Andrew James McLeods identity.'
),
'request_equifax': False,
'request_softcheck': True,
'request_identity_verification': False,
'request_criminal_record_check': False,
'request_motor_vehicle_records': False,
'request_behavioural': True,
'request_enhanced_identity_verification': False,
'request_education_verification': False,
'request_credential_verification': False,
'request_employment_verification_3_yrs': False,
'request_employment_verification_5_yrs': False,
'request_employment_verification_7_yrs': False,
'can_upgrade': True,
'reference_result': None,
'tag': None,
'comments': [],
'request_us_criminal_softcheck': False,
'request_us_ssn_verification': False,
'country': 'CA',
'request_employer_references': True,
'request_address_references': True,
'request_us_criminal_record_check_tier_1': False,
'request_us_criminal_record_check_tier_2': False,
'request_us_criminal_record_check_tier_3': False,
'us_criminal_record_check_result': None,
}
INVITE_RESPONSE = {
'id': '1be22b51-9772-4b40-b2ee-09d3595c9b72',
'created': '2019-03-04T15:13:56.691298Z',
'modified': '2019-03-04T15:13:56.691326Z',
'owner': {
'id': 'b8959d81-89aa-4e3e-9a5a-66f46bad591b',
'email': '******************',
'team': {
'id': 'c7105cf6-0ae6-4d0b-9373-45f3c25b83f5',
'name': 'Bungalow',
'country': 'CA',
'industry': '',
'team_type': 'PM',
'app_url': 'https://demo-app.certn.co/',
'settings_config': {
'get_org_name': 'Bungalow',
'org_name': 'Bungalow',
'org_logo_link': None,
'org_primary_color': None,
'behavioural_test_req': False,
'emergency_contact_req': False,
'personal_ref_req': False,
'education_req': False,
'tenancy_years_amount_req': 2,
'tenancy_ref_amount_req': 1,
'tenancy_ref_email_req': False,
'tenancy_ref_phone_req': True,
'employer_records_amount_req': 1,
'employer_years_amount_req': 0,
'employer_ref_req': True,
'employer_ref_email_req': False,
'employer_ref_phone_req': False,
'document_required': False,
'cover_letter_req': False,
'government_id_req': True,
'proof_of_income_req': True,
'resume_req': False,
'personal_ref_amount_req': 1,
'request_base': True,
'request_behavioural': True,
'request_softcheck': True,
'request_equifax': False,
'request_identity_verification': False,
'request_enhanced_identity_verification': False,
'request_criminal_record_check': False,
'request_enhanced_criminal_record_check': False,
'request_motor_vehicle_records': False,
'request_education_verification': False,
'request_employment_verification_3_yrs': False,
'request_employment_verification_5_yrs': False,
'request_employment_verification_7_yrs': False,
'request_us_criminal_softcheck': False,
'request_us_ssn_verification': False,
'request_employer_references': True,
'request_address_references': True,
'exclude_softcheck_possible_matches': False,
},
'billing_plan': {
'pm_softcheck_price': '9.99',
'hr_softcheck_price': '9.99',
'pm_equifax_price': '14.99',
'hr_equifax_price': '14.99',
'pm_identity_verification_price': '1.99',
'hr_identity_verification_price': '1.99',
'pm_enhanced_identity_verification_price': '4.99',
'hr_enhanced_identity_verification_price': '4.99',
'pm_criminal_record_check_price': '29.99',
'hr_criminal_record_check_price': '29.99',
'pm_motor_vehicle_records_price': '24.99',
'hr_motor_vehicle_records_price': '24.99',
'pm_us_criminal_softcheck_price': '14.99',
'hr_us_criminal_softcheck_price': '14.99',
'pm_us_ssn_verification_price': '4.99',
'hr_us_ssn_verification_price': '4.99',
'pm_education_verification_price': '14.99',
'hr_education_verification_price': '14.99',
'pm_credential_verification_price': '14.99',
'hr_credential_verification_price': '14.99',
'pm_employment_verification_3_yrs_price': '14.99',
'hr_employment_verification_3_yrs_price': '14.99',
'pm_employment_verification_5_yrs_price': '19.99',
'hr_employment_verification_5_yrs_price': '19.99',
'pm_employment_verification_7_yrs_price': '22.99',
'hr_employment_verification_7_yrs_price': '22.99',
'pm_us_criminal_record_check_tier_1_price': '15.00',
'hr_us_criminal_record_check_tier_1_price': '15.00',
'pm_us_criminal_record_check_tier_2_price': '30.00',
'hr_us_criminal_record_check_tier_2_price': '30.00',
'pm_us_criminal_record_check_tier_3_price': '40.00',
'hr_us_criminal_record_check_tier_3_price': '40.00',
'pm_employer_references_price': '4.99',
'pm_address_references_price': '4.99',
'pm_education_references_price': '4.99',
'pm_credential_references_price': '4.99',
'hr_employer_references_price': '4.99',
'hr_address_references_price': '4.99',
'hr_education_references_price': '4.99',
'hr_credential_references_price': '4.99',
},
},
},
'listing': None,
'property': None,
'status': 'Incomplete',
'applicants': [
{
'id': 'a65edc29-ab29-490c-a50f-c45df9342531',
'status': 'Pending',
'first_name': '',
'last_name': '',
'email': 'fake@fake.com',
'certn_score': None,
'share_of_rent': None,
'is_cosigner': False,
'application_url': (
'https://demo-app.certn.co/welcome/submit?'
'&session=6018922c-f89a-4ceb-be12-06312f9519a2'
'&token=bb54742b-8e7d-4103-bf19-78602411340b'
),
'report_url': (
'https://demo-app.certn.co/pm/applications'
'/a65edc29-ab29-490c-a50f-c45df9342531/'
),
}
],
'is_active': True,
'is_selected': False,
'applicant_status': 'N',
'get_applicant_status_display': 'None',
}
PROPERTY_GET_RESULT = {
'id': 'f55abccb-ed01-4e2d-8ac8-564640306961',
'status': 'N',
'get_status_display': 'No Vacancy',
'created': '2019-03-04T21:02:03.616679Z',
'modified': '2019-03-04T21:02:03.734211Z',
'last_updated': '2019-03-04T21:02:03.616744Z',
'building': None,
'building_code': None,
'address': '123 Fakestreet',
'city': 'Abotsford',
'province_state': 'BC',
'country': 'N',
'postal_code': None,
'is_active': True,
'owner': {
'id': 'b8959d81-89aa-4e3e-9a5a-66f46bad591b',
'email': 'fake@fake.com',
'team': {
'id': 'c7105cf6-0ae6-4d0b-9373-45f3c25b83f5',
'name': 'Bungalow',
'country': 'CA',
'industry': '',
'team_type': 'PM',
'app_url': 'https://demo-app.certn.co/',
'settings_config': {
'get_org_name': 'Bungalow',
'org_name': 'Bungalow',
'org_logo_link': None,
'org_primary_color': None,
'behavioural_test_req': False,
'emergency_contact_req': False,
'personal_ref_req': False,
'education_req': False,
'tenancy_years_amount_req': 2,
'tenancy_ref_amount_req': 1,
'tenancy_ref_email_req': False,
'tenancy_ref_phone_req': True,
'employer_records_amount_req': 1,
'employer_years_amount_req': 0,
'employer_ref_req': True,
'employer_ref_email_req': False,
'employer_ref_phone_req': False,
'document_required': False,
'cover_letter_req': False,
'government_id_req': True,
'proof_of_income_req': True,
'resume_req': False,
'personal_ref_amount_req': 1,
'request_base': True,
'request_behavioural': True,
'request_softcheck': True,
'request_equifax': False,
'request_identity_verification': False,
'request_enhanced_identity_verification': False,
'request_criminal_record_check': False,
'request_enhanced_criminal_record_check': False,
'request_motor_vehicle_records': False,
'request_education_verification': False,
'request_employment_verification_3_yrs': False,
'request_employment_verification_5_yrs': False,
'request_employment_verification_7_yrs': False,
'request_us_criminal_softcheck': False,
'request_us_ssn_verification': False,
'request_employer_references': True,
'request_address_references': True,
'exclude_softcheck_possible_matches': False,
},
'billing_plan': {
'pm_softcheck_price': '9.99',
'hr_softcheck_price': '9.99',
'pm_equifax_price': '14.99',
'hr_equifax_price': '14.99',
'pm_identity_verification_price': '1.99',
'hr_identity_verification_price': '1.99',
'pm_enhanced_identity_verification_price': '4.99',
'hr_enhanced_identity_verification_price': '4.99',
'pm_criminal_record_check_price': '29.99',
'hr_criminal_record_check_price': '29.99',
'pm_motor_vehicle_records_price': '24.99',
'hr_motor_vehicle_records_price': '24.99',
'pm_us_criminal_softcheck_price': '14.99',
'hr_us_criminal_softcheck_price': '14.99',
'pm_us_ssn_verification_price': '4.99',
'hr_us_ssn_verification_price': '4.99',
'pm_education_verification_price': '14.99',
'hr_education_verification_price': '14.99',
'pm_credential_verification_price': '14.99',
'hr_credential_verification_price': '14.99',
'pm_employment_verification_3_yrs_price': '14.99',
'hr_employment_verification_3_yrs_price': '14.99',
'pm_employment_verification_5_yrs_price': '19.99',
'hr_employment_verification_5_yrs_price': '19.99',
'pm_employment_verification_7_yrs_price': '22.99',
'hr_employment_verification_7_yrs_price': '22.99',
'pm_us_criminal_record_check_tier_1_price': '15.00',
'hr_us_criminal_record_check_tier_1_price': '15.00',
'pm_us_criminal_record_check_tier_2_price': '30.00',
'hr_us_criminal_record_check_tier_2_price': '30.00',
'pm_us_criminal_record_check_tier_3_price': '40.00',
'hr_us_criminal_record_check_tier_3_price': '40.00',
'pm_employer_references_price': '4.99',
'pm_address_references_price': '4.99',
'pm_education_references_price': '4.99',
'pm_credential_references_price': '4.99',
'hr_employer_references_price': '4.99',
'hr_address_references_price': '4.99',
'hr_education_references_price': '4.99',
'hr_credential_references_price': '4.99',
},
},
},
'listing_count': 0,
'full_address': '123 Fakestreet Abotsford BC N ',
'url_code': 'f55abccb-ed01-4e2d-8ac8-564640306961',
}
PROPERTIES_LIST_RESPONSE = {
'count': 239,
'next': 'http://demo-api.certn.co/api/v2/properties/?page=2',
'previous': None,
'results': [PROPERTY_GET_RESULT],
}
API_ERROR_SAMPLE_JSON = '''{
"error_type": "INVALID_REQUEST",
"error_message": "This is an invalid request",
"error_code": 400,
"display_message": None
}'''
| application_good_body = {'information': {'first_name': 'Andrew James', 'last_name': 'McLeod', 'date_of_birth': '1987-03-04', 'addresses': [{'address': '3023 BODEGA ROAD', 'city': 'VICTORIA', 'province_state': 'BC', 'country': 'CA'}]}}
auth_response = {'token': 'e5e4c777acb3c2a4e4234a282a8ac507c0be24708e6dfe121de563dda397784b', 'user_id': 'b8959d81-89aa-4e3e-9a5a-66f46bad591b'}
auth_response_fail = {'detail': 'Invalid username/password.'}
auth_response_list_logins = [{'created': '2019-03-01T18:56:34.702679Z', 'expires': None, 'token_key': 'e21e9b59'}]
listing_response = {'id': '86dd2316-f31d-4f5e-86a1-3a5e91a75a8c', 'created': '2019-03-01T14:34:32.753995Z', 'modified': '2019-03-01T14:34:32.949006Z', 'last_updated': '2019-03-01T14:34:32.754044Z', 'name': None, 'unit': None, 'move_in_date': None, 'move_in_immediately': False, 'rent': '1000.00', 'rent_range': None, 'security_deposit_amount': None, 'pet_deposit': False, 'pet_deposit_amount': None, 'storage_locker': False, 'property_manager_terms': None, 'is_active': True, 'is_public': False, 'url_code': '86dd2316-f31d-4f5e-86a1-3a5e91a75a8c', 'is_placeholder': False, 'owner': {'id': 'b8959d81-89aa-4e3e-9a5a-66f46bad591b', 'email': '***********************', 'team': {'id': 'c7105cf6-0ae6-4d0b-9373-45f3c25b83f5', 'name': 'Bungalow', 'country': 'CA', 'industry': '', 'team_type': 'PM', 'app_url': 'https://demo-app.certn.co/', 'settings_config': {'get_org_name': 'Bungalow', 'org_name': 'Bungalow', 'org_logo_link': None, 'org_primary_color': None, 'behavioural_test_req': False, 'emergency_contact_req': False, 'personal_ref_req': False, 'education_req': False, 'tenancy_years_amount_req': 2, 'tenancy_ref_amount_req': 1, 'tenancy_ref_email_req': False, 'tenancy_ref_phone_req': True, 'employer_records_amount_req': 1, 'employer_years_amount_req': 0, 'employer_ref_req': True, 'employer_ref_email_req': False, 'employer_ref_phone_req': False, 'document_required': False, 'cover_letter_req': False, 'government_id_req': True, 'proof_of_income_req': True, 'resume_req': False, 'personal_ref_amount_req': 1, 'request_base': True, 'request_behavioural': True, 'request_softcheck': True, 'request_equifax': False, 'request_identity_verification': False, 'request_enhanced_identity_verification': False, 'request_criminal_record_check': False, 'request_enhanced_criminal_record_check': False, 'request_motor_vehicle_records': False, 'request_education_verification': False, 'request_employment_verification_3_yrs': False, 'request_employment_verification_5_yrs': False, 'request_employment_verification_7_yrs': False, 'request_us_criminal_softcheck': False, 'request_us_ssn_verification': False, 'request_employer_references': True, 'request_address_references': True, 'exclude_softcheck_possible_matches': False}, 'billing_plan': {'pm_softcheck_price': '9.99', 'hr_softcheck_price': '9.99', 'pm_equifax_price': '14.99', 'hr_equifax_price': '14.99', 'pm_identity_verification_price': '1.99', 'hr_identity_verification_price': '1.99', 'pm_enhanced_identity_verification_price': '4.99', 'hr_enhanced_identity_verification_price': '4.99', 'pm_criminal_record_check_price': '29.99', 'hr_criminal_record_check_price': '29.99', 'pm_motor_vehicle_records_price': '24.99', 'hr_motor_vehicle_records_price': '24.99', 'pm_us_criminal_softcheck_price': '14.99', 'hr_us_criminal_softcheck_price': '14.99', 'pm_us_ssn_verification_price': '4.99', 'hr_us_ssn_verification_price': '4.99', 'pm_education_verification_price': '14.99', 'hr_education_verification_price': '14.99', 'pm_credential_verification_price': '14.99', 'hr_credential_verification_price': '14.99', 'pm_employment_verification_3_yrs_price': '14.99', 'hr_employment_verification_3_yrs_price': '14.99', 'pm_employment_verification_5_yrs_price': '19.99', 'hr_employment_verification_5_yrs_price': '19.99', 'pm_employment_verification_7_yrs_price': '22.99', 'hr_employment_verification_7_yrs_price': '22.99', 'pm_us_criminal_record_check_tier_1_price': '15.00', 'hr_us_criminal_record_check_tier_1_price': '15.00', 'pm_us_criminal_record_check_tier_2_price': '30.00', 'hr_us_criminal_record_check_tier_2_price': '30.00', 'pm_us_criminal_record_check_tier_3_price': '40.00', 'hr_us_criminal_record_check_tier_3_price': '40.00', 'pm_employer_references_price': '4.99', 'pm_address_references_price': '4.99', 'pm_education_references_price': '4.99', 'pm_credential_references_price': '4.99', 'hr_employer_references_price': '4.99', 'hr_address_references_price': '4.99', 'hr_education_references_price': '4.99', 'hr_credential_references_price': '4.99'}}}, 'property': {'id': 'ef834890-ce60-4b95-bee9-69a12c59d4f8', 'status': 'N', 'get_status_display': 'No Vacancy', 'created': '2019-03-01T14:34:32.601691Z', 'modified': '2019-03-01T14:34:32.601720Z', 'last_updated': '2019-03-01T14:34:32.601755Z', 'building': None, 'building_code': None, 'address': '123 Fakestreet', 'city': 'Victoria', 'province_state': 'BC', 'country': 'N', 'postal_code': None, 'is_active': True, 'owner': {'id': 'b8959d81-89aa-4e3e-9a5a-66f46bad591b', 'email': '************************', 'team': {'id': 'c7105cf6-0ae6-4d0b-9373-45f3c25b83f5', 'name': 'Bungalow', 'country': 'CA', 'industry': '', 'team_type': 'PM', 'app_url': 'https://demo-app.certn.co/', 'settings_config': {'get_org_name': 'Bungalow', 'org_name': 'Bungalow', 'org_logo_link': None, 'org_primary_color': None, 'behavioural_test_req': False, 'emergency_contact_req': False, 'personal_ref_req': False, 'education_req': False, 'tenancy_years_amount_req': 2, 'tenancy_ref_amount_req': 1, 'tenancy_ref_email_req': False, 'tenancy_ref_phone_req': True, 'employer_records_amount_req': 1, 'employer_years_amount_req': 0, 'employer_ref_req': True, 'employer_ref_email_req': False, 'employer_ref_phone_req': False, 'document_required': False, 'cover_letter_req': False, 'government_id_req': True, 'proof_of_income_req': True, 'resume_req': False, 'personal_ref_amount_req': 1, 'request_base': True, 'request_behavioural': True, 'request_softcheck': True, 'request_equifax': False, 'request_identity_verification': False, 'request_enhanced_identity_verification': False, 'request_criminal_record_check': False, 'request_enhanced_criminal_record_check': False, 'request_motor_vehicle_records': False, 'request_education_verification': False, 'request_employment_verification_3_yrs': False, 'request_employment_verification_5_yrs': False, 'request_employment_verification_7_yrs': False, 'request_us_criminal_softcheck': False, 'request_us_ssn_verification': False, 'request_employer_references': True, 'request_address_references': True, 'exclude_softcheck_possible_matches': False}, 'billing_plan': {'pm_softcheck_price': '9.99', 'hr_softcheck_price': '9.99', 'pm_equifax_price': '14.99', 'hr_equifax_price': '14.99', 'pm_identity_verification_price': '1.99', 'hr_identity_verification_price': '1.99', 'pm_enhanced_identity_verification_price': '4.99', 'hr_enhanced_identity_verification_price': '4.99', 'pm_criminal_record_check_price': '29.99', 'hr_criminal_record_check_price': '29.99', 'pm_motor_vehicle_records_price': '24.99', 'hr_motor_vehicle_records_price': '24.99', 'pm_us_criminal_softcheck_price': '14.99', 'hr_us_criminal_softcheck_price': '14.99', 'pm_us_ssn_verification_price': '4.99', 'hr_us_ssn_verification_price': '4.99', 'pm_education_verification_price': '14.99', 'hr_education_verification_price': '14.99', 'pm_credential_verification_price': '14.99', 'hr_credential_verification_price': '14.99', 'pm_employment_verification_3_yrs_price': '14.99', 'hr_employment_verification_3_yrs_price': '14.99', 'pm_employment_verification_5_yrs_price': '19.99', 'hr_employment_verification_5_yrs_price': '19.99', 'pm_employment_verification_7_yrs_price': '22.99', 'hr_employment_verification_7_yrs_price': '22.99', 'pm_us_criminal_record_check_tier_1_price': '15.00', 'hr_us_criminal_record_check_tier_1_price': '15.00', 'pm_us_criminal_record_check_tier_2_price': '30.00', 'hr_us_criminal_record_check_tier_2_price': '30.00', 'pm_us_criminal_record_check_tier_3_price': '40.00', 'hr_us_criminal_record_check_tier_3_price': '40.00', 'pm_employer_references_price': '4.99', 'pm_address_references_price': '4.99', 'pm_education_references_price': '4.99', 'pm_credential_references_price': '4.99', 'hr_employer_references_price': '4.99', 'hr_address_references_price': '4.99', 'hr_education_references_price': '4.99', 'hr_credential_references_price': '4.99'}}}, 'listing_count': 1, 'full_address': '123 Fakestreet Victoria BC N ', 'url_code': 'ef834890-ce60-4b95-bee9-69a12c59d4f8'}, 'applicant_count': 0, 'new_applicant_count': 0, 'is_psychometric_required': True, 'notification_list': [], 'selected_application': None, 'use_team_link': False, 'length_of_lease': None}
listings_list_response = {'count': 1, 'next': 'http://demo-api.certn.co/api/v2/listings/?page=2', 'previous': None, 'results': [LISTING_RESPONSE]}
invite_body = {'email': 'fake@fake.com', 'email_applicants': False}
quick_response = {'notes': None, 'is_favourite': False, 'has_viewed_listing': None, 'is_viewed': False, 'id': 'db13d65c-4311-46e7-8d4d-97feb693e113', 'created': '2019-03-04T14:51:24.323137Z', 'modified': '2019-03-04T14:51:24.582378Z', 'submitted_time': '2019-03-04T14:51:24.468514Z', 'last_updated': '2019-03-04T14:51:24.323304Z', 'status': 'Analyzing', 'applicant_type': 'Quick Screen', 'monthly_cost': None, 'is_equifax_eligible': True, 'certn_score_label': 'NONE', 'is_submitted': True, 'softcheck_discounted': False, 'equifax_discounted': False, 'is_cosigner': False, 'email_references': False, 'tenancy_verified': None, 'employment_verified': None, 'employment_verification': 'NONE', 'certn_score': None, 'late_rent_potential': None, 'damage_to_property': None, 'eviction_potential': None, 'tenancy_length': None, 'late_rent_potential_label': 'None', 'damage_to_property_label': 'None', 'eviction_potential_label': 'None', 'tenancy_length_label': 'None', 'applicant_account': {'id': 'bf5080d0-7f73-4c8f-9cbd-afcf54450962', 'email': None}, 'application': {'id': 'd799e68f-3491-4645-95c7-8f42b3c2976d', 'created': '2019-03-04T14:51:24.318595Z', 'modified': '2019-03-04T14:51:24.591766Z', 'owner': {'id': 'b8959d81-89aa-4e3e-9a5a-66f46bad591b', 'email': '*******************', 'team': {'id': 'c7105cf6-0ae6-4d0b-9373-45f3c25b83f5', 'name': 'Bungalow', 'country': 'CA', 'industry': '', 'team_type': 'PM', 'app_url': 'https://demo-app.certn.co/', 'settings_config': {'get_org_name': 'Bungalow', 'org_name': 'Bungalow', 'org_logo_link': None, 'org_primary_color': None, 'behavioural_test_req': False, 'emergency_contact_req': False, 'personal_ref_req': False, 'education_req': False, 'tenancy_years_amount_req': 2, 'tenancy_ref_amount_req': 1, 'tenancy_ref_email_req': False, 'tenancy_ref_phone_req': True, 'employer_records_amount_req': 1, 'employer_years_amount_req': 0, 'employer_ref_req': True, 'employer_ref_email_req': False, 'employer_ref_phone_req': False, 'document_required': False, 'cover_letter_req': False, 'government_id_req': True, 'proof_of_income_req': True, 'resume_req': False, 'personal_ref_amount_req': 1, 'request_base': True, 'request_behavioural': True, 'request_softcheck': True, 'request_equifax': False, 'request_identity_verification': False, 'request_enhanced_identity_verification': False, 'request_criminal_record_check': False, 'request_enhanced_criminal_record_check': False, 'request_motor_vehicle_records': False, 'request_education_verification': False, 'request_employment_verification_3_yrs': False, 'request_employment_verification_5_yrs': False, 'request_employment_verification_7_yrs': False, 'request_us_criminal_softcheck': False, 'request_us_ssn_verification': False, 'request_employer_references': True, 'request_address_references': True, 'exclude_softcheck_possible_matches': False}, 'billing_plan': {'pm_softcheck_price': '9.99', 'hr_softcheck_price': '9.99', 'pm_equifax_price': '14.99', 'hr_equifax_price': '14.99', 'pm_identity_verification_price': '1.99', 'hr_identity_verification_price': '1.99', 'pm_enhanced_identity_verification_price': '4.99', 'hr_enhanced_identity_verification_price': '4.99', 'pm_criminal_record_check_price': '29.99', 'hr_criminal_record_check_price': '29.99', 'pm_motor_vehicle_records_price': '24.99', 'hr_motor_vehicle_records_price': '24.99', 'pm_us_criminal_softcheck_price': '14.99', 'hr_us_criminal_softcheck_price': '14.99', 'pm_us_ssn_verification_price': '4.99', 'hr_us_ssn_verification_price': '4.99', 'pm_education_verification_price': '14.99', 'hr_education_verification_price': '14.99', 'pm_credential_verification_price': '14.99', 'hr_credential_verification_price': '14.99', 'pm_employment_verification_3_yrs_price': '14.99', 'hr_employment_verification_3_yrs_price': '14.99', 'pm_employment_verification_5_yrs_price': '19.99', 'hr_employment_verification_5_yrs_price': '19.99', 'pm_employment_verification_7_yrs_price': '22.99', 'hr_employment_verification_7_yrs_price': '22.99', 'pm_us_criminal_record_check_tier_1_price': '15.00', 'hr_us_criminal_record_check_tier_1_price': '15.00', 'pm_us_criminal_record_check_tier_2_price': '30.00', 'hr_us_criminal_record_check_tier_2_price': '30.00', 'pm_us_criminal_record_check_tier_3_price': '40.00', 'hr_us_criminal_record_check_tier_3_price': '40.00', 'pm_employer_references_price': '4.99', 'pm_address_references_price': '4.99', 'pm_education_references_price': '4.99', 'pm_credential_references_price': '4.99', 'hr_employer_references_price': '4.99', 'hr_address_references_price': '4.99', 'hr_education_references_price': '4.99', 'hr_credential_references_price': '4.99'}}}, 'listing': None, 'property': None, 'status': 'Complete', 'applicants': [{'id': '72af8e90-832f-4aee-89e4-3bcf090aa758', 'status': 'Analyzing', 'first_name': 'Andrew James', 'last_name': 'McLeod', 'email': None, 'certn_score': None, 'share_of_rent': None, 'is_cosigner': False, 'application_url': None, 'report_url': 'https://demo-app.certn.co/pm/applications/72af8e90-832f-4aee-89e4-3bcf090aa758/'}], 'is_active': True, 'is_selected': False, 'applicant_status': 'N', 'get_applicant_status_display': 'None'}, 'behavioural_result_summary': 'The Behavioural score is determined by analysing psychometric personality tests, social media analysis, and more.', 'information': {'id': '9de408e3-6fa8-4520-b772-236c674a885d', 'created': '2019-03-04T14:51:24.302393Z', 'modified': '2019-03-04T14:51:24.335917Z', 'id_url': None, 'id_file_name': None, 'first_name': 'Andrew James', 'last_name': 'McLeod', 'middle_name': None, 'employers': [], 'applicant_created': False, 'applicant_verified': False, 'educations': [], 'cover_letter': None, 'addresses': [{'id': '15d7a997-9b4a-4825-b853-2d8276f2892b', 'created': '2019-03-04T14:51:24.307633Z', 'current': True, 'address': '3023 BODEGA ROAD', 'unit': None, 'rent_or_own': 'R', 'city': 'VICTORIA', 'province_state': 'BC', 'country': 'CA', 'postal_code': None, 'cost': None, 'start_date': None, 'end_date': None, 'reason_for_leaving': 'N', 'landlords_first_name': None, 'landlords_last_name': None, 'landlords_phone': None, 'landlords_email': None, 'reference': None, 'full_address': ' 3023 BODEGA ROAD VICTORIA BC CA', 'information': {'first_name': 'Andrew James', 'last_name': 'McLeod'}, 'address_reference': None, 'other_reason_for_leaving': None, 'auto_address': None, 'place_id': None, 'verification': None, 'consistency': None, 'rent_or_own_label': 'Rent', 'reference_verified': False, 'other_province_state': None, 'county': None}], 'date_of_birth': '1987-03-04', 'phone_number': None, 'co_signer': None, 'applicant_account': {'id': 'bf5080d0-7f73-4c8f-9cbd-afcf54450962', 'email': None}, 'co_signer_living_with_applicant': None, 'co_signer_association': 'N', 'co_signer_first_name': None, 'co_signer_last_name': None, 'co_signer_email': None, 'co_signer_phone': None, 'car': None, 'car_make': None, 'car_model': None, 'car_year': None, 'car_color': None, 'health_insurance_label': 'No Coverage', 'car_prov_state': None, 'car_plate': None, 'smoke': None, 'conviction_explanation': None, 'personal_reference_association_label': 'None', 'bankruptcy_explanation': None, 'eviction_explanation': None, 'status': 'C', 'rent_refusal_explanation': None, 'health_insurance': 'NC', 'feedback': None, 'pets': None, 'license_number': None, 'license_valid': None, 'license_prov_state': None, 'pets_type': None, 'emergency_contact': False, 'emergency_contact_first_name': None, 'emergency_contact_last_name': None, 'emergency_contact_email': None, 'expected_tenancy_length': None, 'personal_reference': False, 'emergency_contact_phone': None, 'personal_reference_first_name': None, 'personal_reference_last_name': None, 'personal_reference_phone': None, 'personal_reference_email': None, 'personal_reference_association': 'N', 'occupants': [], 'sin_ssn': None, 'facebook_link': None, 'twitter_link': None, 'linkedin_link': None, 'googleplus_link': None, 'desired_move_in_date': None, 'skills': [], 'documents': [], 'pet_details': [], 'rent_refusals': [], 'bankruptcies': [], 'evictions': [], 'convictions': [], 'co_signer_association_label': 'None', 'former_names': None, 'last_name_at_birth': None, 'alias': None, 'gender': None, 'birth_city': None, 'birth_province_state': None, 'birth_country': None, 'birth_other_province_state': None, 'personal_references': [], 'terms_accepted': False, 'rcmp_consent_given': False, 'co_signer_report_url': None, 'phone': None}, 'psychometric_test': None, 'facebook': None, 'linkedin': None, 'informational_result': None, 'behavioural_result': None, 'risk_result': {'id': 'dfec7632-e148-4e5c-a6f9-e018a802d75b', 'status': 'NONE', 'overall_score': 'NONE', 'risk_evaluations': [], 'red_flags': None, 'green_flags': None, 'description': 'The social score is based on self-provided information from the applicant and an analysis of the applicants information available to Certn. This includes a criminal identity scan, social profile scan, as well as other important informational data points. *Note that when criminal identities are discovered the overall Certn score is not impacted by the results found unless the match similarity is above our confidence threshold of 95%.', 'risk_description': 'The criminal identity risk is an assessment of the risk posed to assets given the results of the criminal identity scan. Please review any risk relevant information from our negative news and criminal database analysis below.', 'similarity_description': 'The criminal identity similarity percentage is a comparison between the applicants self-provided information and the corresponding information we find in our databases. As a general guideline, if the results of our criminal identity scan has a similarity percentage of above 95%, Certn can confidently predict that the information presented below corresponds correctly to the applicant being screened. However, if the criminal identity scan returns results with a similarity percentage below 95%, the onus falls to the client to accurately verify the results.', 'match_description': 'The criminal identity Match Score is a comparison between the applicants self-provided information and the corresponding information we find in our databases. As a general guideline, if the results of our criminal identity scan finds a "Likely Match", Certn can confidently predict that the information presented below corresponds correctly to the applicant being screened. However, if the criminal identity scan returns reasults with a Match Score of "Possible Match", the onus falls on the client to accurately verify the results.'}, 'equifax_result': None, 'identity_verification': None, 'enhanced_identity_verification': None, 'manual_id_verification': None, 'late_rent_potential_description': 'Late rent potential risk is assessed using an analysis of an applicants financial stability and / or behavioural credibility characteristics that predicts the likelihood of late or missed payments.', 'damage_to_property_description': 'Damage to property risk is assessed using an analysis of an applicants personal history and / or behavioural cleanliness and neighbour characteristics that predicts the likelihood of causing damage to property.', 'eviction_potential_description': 'Early vacancy risk if assessed using an analysis of an applicants tenancy history and / or behavioural stability characteristics that predicts the likelihood of breaking a lease.', 'applicant_result_description': 'Certn Rating and Certn Score is a summary assessment of the applicants unique characteristics and personal information. Andrew James McLeod has received a Certn rating of "NONE" which indicates an analysis with no potential issues. Although the score is a summary assessment, Certn still recommends you carefully review each section of this report to determine if the applicant meets your specific requirements.', 'applicant_result_summary': 'The Applicant score is determined by analysing tenancy history, employment history, and more.', 'social_result_summary': 'The Social score is determined by analysing criminal identity, negative news, social profile scans, and more.', 'financial_result_summary': 'The Financial score is determined by analysing an Equifax credit check, and more.', 'identity_verified': None, 'identity_verified_summary': 'Upgrade Certn Report to verify Andrew James McLeods identity.', 'request_equifax': False, 'request_softcheck': True, 'request_identity_verification': False, 'request_criminal_record_check': False, 'request_motor_vehicle_records': False, 'request_behavioural': True, 'request_enhanced_identity_verification': False, 'request_education_verification': False, 'request_credential_verification': False, 'request_employment_verification_3_yrs': False, 'request_employment_verification_5_yrs': False, 'request_employment_verification_7_yrs': False, 'can_upgrade': True, 'reference_result': None, 'tag': None, 'comments': [], 'request_us_criminal_softcheck': False, 'request_us_ssn_verification': False, 'country': 'CA', 'request_employer_references': True, 'request_address_references': True, 'request_us_criminal_record_check_tier_1': False, 'request_us_criminal_record_check_tier_2': False, 'request_us_criminal_record_check_tier_3': False, 'us_criminal_record_check_result': None}
applicant_get_response = {'notes': None, 'is_favourite': False, 'has_viewed_listing': None, 'is_viewed': False, 'id': 'db13d65c-4311-46e7-8d4d-97feb693e113', 'created': '2019-03-04T17:00:38.684380Z', 'modified': '2019-03-04T17:00:38.919122Z', 'submitted_time': '2019-03-04T17:00:38.837847Z', 'last_updated': '2019-03-04T17:00:38.684535Z', 'status': 'Analyzing', 'applicant_type': 'Quick Screen', 'monthly_cost': None, 'is_equifax_eligible': True, 'certn_score_label': 'NONE', 'is_submitted': True, 'softcheck_discounted': False, 'equifax_discounted': False, 'is_cosigner': False, 'email_references': False, 'tenancy_verified': None, 'employment_verified': None, 'employment_verification': 'NONE', 'certn_score': None, 'late_rent_potential': None, 'damage_to_property': None, 'eviction_potential': None, 'tenancy_length': None, 'late_rent_potential_label': 'None', 'damage_to_property_label': 'None', 'eviction_potential_label': 'None', 'tenancy_length_label': 'None', 'applicant_account': {'id': 'e8d7dd67-7b3f-4edb-acb9-8c28c2f10dbe', 'email': None}, 'application': {'id': '10bfda79-c571-49f5-8630-132ccef86592', 'created': '2019-03-04T17:00:38.679697Z', 'modified': '2019-03-04T17:00:38.928674Z', 'owner': {'id': 'b8959d81-89aa-4e3e-9a5a-66f46bad591b', 'email': '****************', 'team': {'id': 'c7105cf6-0ae6-4d0b-9373-45f3c25b83f5', 'name': 'Bungalow', 'country': 'CA', 'industry': '', 'team_type': 'PM', 'app_url': 'https://demo-app.certn.co/', 'settings_config': {'get_org_name': 'Bungalow', 'org_name': 'Bungalow', 'org_logo_link': None, 'org_primary_color': None, 'behavioural_test_req': False, 'emergency_contact_req': False, 'personal_ref_req': False, 'education_req': False, 'tenancy_years_amount_req': 2, 'tenancy_ref_amount_req': 1, 'tenancy_ref_email_req': False, 'tenancy_ref_phone_req': True, 'employer_records_amount_req': 1, 'employer_years_amount_req': 0, 'employer_ref_req': True, 'employer_ref_email_req': False, 'employer_ref_phone_req': False, 'document_required': False, 'cover_letter_req': False, 'government_id_req': True, 'proof_of_income_req': True, 'resume_req': False, 'personal_ref_amount_req': 1, 'request_base': True, 'request_behavioural': True, 'request_softcheck': True, 'request_equifax': False, 'request_identity_verification': False, 'request_enhanced_identity_verification': False, 'request_criminal_record_check': False, 'request_enhanced_criminal_record_check': False, 'request_motor_vehicle_records': False, 'request_education_verification': False, 'request_employment_verification_3_yrs': False, 'request_employment_verification_5_yrs': False, 'request_employment_verification_7_yrs': False, 'request_us_criminal_softcheck': False, 'request_us_ssn_verification': False, 'request_employer_references': True, 'request_address_references': True, 'exclude_softcheck_possible_matches': False}, 'billing_plan': {'pm_softcheck_price': '9.99', 'hr_softcheck_price': '9.99', 'pm_equifax_price': '14.99', 'hr_equifax_price': '14.99', 'pm_identity_verification_price': '1.99', 'hr_identity_verification_price': '1.99', 'pm_enhanced_identity_verification_price': '4.99', 'hr_enhanced_identity_verification_price': '4.99', 'pm_criminal_record_check_price': '29.99', 'hr_criminal_record_check_price': '29.99', 'pm_motor_vehicle_records_price': '24.99', 'hr_motor_vehicle_records_price': '24.99', 'pm_us_criminal_softcheck_price': '14.99', 'hr_us_criminal_softcheck_price': '14.99', 'pm_us_ssn_verification_price': '4.99', 'hr_us_ssn_verification_price': '4.99', 'pm_education_verification_price': '14.99', 'hr_education_verification_price': '14.99', 'pm_credential_verification_price': '14.99', 'hr_credential_verification_price': '14.99', 'pm_employment_verification_3_yrs_price': '14.99', 'hr_employment_verification_3_yrs_price': '14.99', 'pm_employment_verification_5_yrs_price': '19.99', 'hr_employment_verification_5_yrs_price': '19.99', 'pm_employment_verification_7_yrs_price': '22.99', 'hr_employment_verification_7_yrs_price': '22.99', 'pm_us_criminal_record_check_tier_1_price': '15.00', 'hr_us_criminal_record_check_tier_1_price': '15.00', 'pm_us_criminal_record_check_tier_2_price': '30.00', 'hr_us_criminal_record_check_tier_2_price': '30.00', 'pm_us_criminal_record_check_tier_3_price': '40.00', 'hr_us_criminal_record_check_tier_3_price': '40.00', 'pm_employer_references_price': '4.99', 'pm_address_references_price': '4.99', 'pm_education_references_price': '4.99', 'pm_credential_references_price': '4.99', 'hr_employer_references_price': '4.99', 'hr_address_references_price': '4.99', 'hr_education_references_price': '4.99', 'hr_credential_references_price': '4.99'}}}, 'listing': None, 'property': None, 'status': 'Complete', 'applicants': [{'id': 'db13d65c-4311-46e7-8d4d-97feb693e113', 'status': 'Analyzing', 'first_name': 'Andrew James', 'last_name': 'McLeod', 'email': None, 'certn_score': None, 'share_of_rent': None, 'is_cosigner': False, 'application_url': None, 'report_url': 'https://demo-app.certn.co/pm/applications/db13d65c-4311-46e7-8d4d-97feb693e113/'}], 'is_active': True, 'is_selected': False, 'applicant_status': 'N', 'get_applicant_status_display': 'None'}, 'behavioural_result_summary': 'The Behavioural score is determined by analysing psychometric personality tests, social media analysis, and more.', 'information': {'id': '00db959b-eb37-4e7c-83bf-8d68a6abcecd', 'created': '2019-03-04T17:00:38.663344Z', 'modified': '2019-03-04T17:00:38.707965Z', 'id_url': None, 'id_file_name': None, 'first_name': 'Andrew James', 'last_name': 'McLeod', 'middle_name': None, 'employers': [], 'applicant_created': False, 'applicant_verified': False, 'educations': [], 'cover_letter': None, 'addresses': [{'id': '0a1e0897-8239-42c3-bba4-52839d975fd3', 'created': '2019-03-04T17:00:38.668610Z', 'current': True, 'address': '3023 BODEGA ROAD', 'unit': None, 'rent_or_own': 'R', 'city': 'VICTORIA', 'province_state': 'BC', 'country': 'CA', 'postal_code': None, 'cost': None, 'start_date': None, 'end_date': None, 'reason_for_leaving': 'N', 'landlords_first_name': None, 'landlords_last_name': None, 'landlords_phone': None, 'landlords_email': None, 'reference': None, 'full_address': ' 3023 BODEGA ROAD VICTORIA BC CA', 'information': {'first_name': 'Andrew James', 'last_name': 'McLeod'}, 'address_reference': None, 'other_reason_for_leaving': None, 'auto_address': None, 'place_id': None, 'verification': None, 'consistency': None, 'rent_or_own_label': 'Rent', 'reference_verified': False, 'other_province_state': None, 'county': None}], 'date_of_birth': '1987-03-04', 'phone_number': None, 'co_signer': None, 'applicant_account': {'id': 'e8d7dd67-7b3f-4edb-acb9-8c28c2f10dbe', 'email': None}, 'co_signer_living_with_applicant': None, 'co_signer_association': 'N', 'co_signer_first_name': None, 'co_signer_last_name': None, 'co_signer_email': None, 'co_signer_phone': None, 'car': None, 'car_make': None, 'car_model': None, 'car_year': None, 'car_color': None, 'health_insurance_label': 'No Coverage', 'car_prov_state': None, 'car_plate': None, 'smoke': None, 'conviction_explanation': None, 'personal_reference_association_label': 'None', 'bankruptcy_explanation': None, 'eviction_explanation': None, 'status': 'C', 'rent_refusal_explanation': None, 'health_insurance': 'NC', 'feedback': None, 'pets': None, 'license_number': None, 'license_valid': None, 'license_prov_state': None, 'pets_type': None, 'emergency_contact': False, 'emergency_contact_first_name': None, 'emergency_contact_last_name': None, 'emergency_contact_email': None, 'expected_tenancy_length': None, 'personal_reference': False, 'emergency_contact_phone': None, 'personal_reference_first_name': None, 'personal_reference_last_name': None, 'personal_reference_phone': None, 'personal_reference_email': None, 'personal_reference_association': 'N', 'occupants': [], 'sin_ssn': None, 'facebook_link': None, 'twitter_link': None, 'linkedin_link': None, 'googleplus_link': None, 'desired_move_in_date': None, 'skills': [], 'documents': [], 'pet_details': [], 'rent_refusals': [], 'bankruptcies': [], 'evictions': [], 'convictions': [], 'co_signer_association_label': 'None', 'former_names': None, 'last_name_at_birth': None, 'alias': None, 'gender': None, 'birth_city': None, 'birth_province_state': None, 'birth_country': None, 'birth_other_province_state': None, 'personal_references': [], 'terms_accepted': False, 'rcmp_consent_given': False, 'co_signer_report_url': None, 'phone': None}, 'psychometric_test': None, 'facebook': None, 'linkedin': None, 'informational_result': None, 'behavioural_result': None, 'risk_result': {'id': '71c4d042-c19e-46e1-a81e-3779b992ae03', 'status': 'NONE', 'overall_score': 'NONE', 'risk_evaluations': [], 'red_flags': None, 'green_flags': None, 'description': 'The social score is based on self-provided information from the applicant and an analysis of the applicants information available to Certn. This includes a criminal identity scan, social profile scan, as well as other important informational data points. *Note that when criminal identities are discovered the overall Certn score is not impacted by the results found unless the match similarity is above our confidence threshold of 95%.', 'risk_description': 'The criminal identity risk is an assessment of the risk posed to assets given the results of the criminal identity scan. Please review any risk relevant information from our negative news and criminal database analysis below.', 'similarity_description': 'The criminal identity similarity percentage is a comparison between the applicants self-provided information and the corresponding information we find in our databases. As a general guideline, if the results of our criminal identity scan has a similarity percentage of above 95%, Certn can confidently predict that the information presented below corresponds correctly to the applicant being screened. However, if the criminal identity scan returns results with a similarity percentage below 95%, the onus falls to the client to accurately verify the results.', 'match_description': 'The criminal identity Match Score is a comparison between the applicants self-provided information and the corresponding information we find in our databases. As a general guideline, if the results of our criminal identity scan finds a "Likely Match", Certn can confidently predict that the information presented below corresponds correctly to the applicant being screened. However, if the criminal identity scan returns reasults with a Match Score of "Possible Match:", the onus falls on the client to accurately verify the results.'}, 'equifax_result': None, 'identity_verification': None, 'enhanced_identity_verification': None, 'manual_id_verification': None, 'late_rent_potential_description': 'Late rent potential risk is assessed using an analysis of an applicants financial stability and / or behavioural credibility characteristics that predicts the likelihood of late or missed payments.', 'damage_to_property_description': 'Damage to property risk is assessed using an analysis of an applicants personal history and / or behavioural cleanliness and neighbour characteristics that predicts the likelihood of causing damage to property.', 'eviction_potential_description': 'Early vacancy risk if assessed using an analysis of an applicants tenancy history and / or behavioural stability characteristics that predicts the likelihood of breaking a lease.', 'applicant_result_description': 'Certn Rating and Certn Score is a summary assessment of the applicants unique characteristics and personal information. Andrew James McLeod has received a Certn rating of "NONE" which indicates an analysis with no potential issues. Although the score is a summary assessment, Certn still recommends you carefully review each section of this report to determine if the applicant meets your specific requirements.', 'applicant_result_summary': 'The Applicant score is determined by analysing tenancy history, employment history, and more.', 'social_result_summary': 'The Social score is determined by analysing criminal identity, negative news, social profile scans, and more.', 'financial_result_summary': 'The Financial score is determined by analysing an Equifax credit check, and more.', 'identity_verified': None, 'identity_verified_summary': 'Upgrade Certn Report to verify Andrew James McLeods identity.', 'request_equifax': False, 'request_softcheck': True, 'request_identity_verification': False, 'request_criminal_record_check': False, 'request_motor_vehicle_records': False, 'request_behavioural': True, 'request_enhanced_identity_verification': False, 'request_education_verification': False, 'request_credential_verification': False, 'request_employment_verification_3_yrs': False, 'request_employment_verification_5_yrs': False, 'request_employment_verification_7_yrs': False, 'can_upgrade': True, 'reference_result': None, 'tag': None, 'comments': [], 'request_us_criminal_softcheck': False, 'request_us_ssn_verification': False, 'country': 'CA', 'request_employer_references': True, 'request_address_references': True, 'request_us_criminal_record_check_tier_1': False, 'request_us_criminal_record_check_tier_2': False, 'request_us_criminal_record_check_tier_3': False, 'us_criminal_record_check_result': None}
invite_response = {'id': '1be22b51-9772-4b40-b2ee-09d3595c9b72', 'created': '2019-03-04T15:13:56.691298Z', 'modified': '2019-03-04T15:13:56.691326Z', 'owner': {'id': 'b8959d81-89aa-4e3e-9a5a-66f46bad591b', 'email': '******************', 'team': {'id': 'c7105cf6-0ae6-4d0b-9373-45f3c25b83f5', 'name': 'Bungalow', 'country': 'CA', 'industry': '', 'team_type': 'PM', 'app_url': 'https://demo-app.certn.co/', 'settings_config': {'get_org_name': 'Bungalow', 'org_name': 'Bungalow', 'org_logo_link': None, 'org_primary_color': None, 'behavioural_test_req': False, 'emergency_contact_req': False, 'personal_ref_req': False, 'education_req': False, 'tenancy_years_amount_req': 2, 'tenancy_ref_amount_req': 1, 'tenancy_ref_email_req': False, 'tenancy_ref_phone_req': True, 'employer_records_amount_req': 1, 'employer_years_amount_req': 0, 'employer_ref_req': True, 'employer_ref_email_req': False, 'employer_ref_phone_req': False, 'document_required': False, 'cover_letter_req': False, 'government_id_req': True, 'proof_of_income_req': True, 'resume_req': False, 'personal_ref_amount_req': 1, 'request_base': True, 'request_behavioural': True, 'request_softcheck': True, 'request_equifax': False, 'request_identity_verification': False, 'request_enhanced_identity_verification': False, 'request_criminal_record_check': False, 'request_enhanced_criminal_record_check': False, 'request_motor_vehicle_records': False, 'request_education_verification': False, 'request_employment_verification_3_yrs': False, 'request_employment_verification_5_yrs': False, 'request_employment_verification_7_yrs': False, 'request_us_criminal_softcheck': False, 'request_us_ssn_verification': False, 'request_employer_references': True, 'request_address_references': True, 'exclude_softcheck_possible_matches': False}, 'billing_plan': {'pm_softcheck_price': '9.99', 'hr_softcheck_price': '9.99', 'pm_equifax_price': '14.99', 'hr_equifax_price': '14.99', 'pm_identity_verification_price': '1.99', 'hr_identity_verification_price': '1.99', 'pm_enhanced_identity_verification_price': '4.99', 'hr_enhanced_identity_verification_price': '4.99', 'pm_criminal_record_check_price': '29.99', 'hr_criminal_record_check_price': '29.99', 'pm_motor_vehicle_records_price': '24.99', 'hr_motor_vehicle_records_price': '24.99', 'pm_us_criminal_softcheck_price': '14.99', 'hr_us_criminal_softcheck_price': '14.99', 'pm_us_ssn_verification_price': '4.99', 'hr_us_ssn_verification_price': '4.99', 'pm_education_verification_price': '14.99', 'hr_education_verification_price': '14.99', 'pm_credential_verification_price': '14.99', 'hr_credential_verification_price': '14.99', 'pm_employment_verification_3_yrs_price': '14.99', 'hr_employment_verification_3_yrs_price': '14.99', 'pm_employment_verification_5_yrs_price': '19.99', 'hr_employment_verification_5_yrs_price': '19.99', 'pm_employment_verification_7_yrs_price': '22.99', 'hr_employment_verification_7_yrs_price': '22.99', 'pm_us_criminal_record_check_tier_1_price': '15.00', 'hr_us_criminal_record_check_tier_1_price': '15.00', 'pm_us_criminal_record_check_tier_2_price': '30.00', 'hr_us_criminal_record_check_tier_2_price': '30.00', 'pm_us_criminal_record_check_tier_3_price': '40.00', 'hr_us_criminal_record_check_tier_3_price': '40.00', 'pm_employer_references_price': '4.99', 'pm_address_references_price': '4.99', 'pm_education_references_price': '4.99', 'pm_credential_references_price': '4.99', 'hr_employer_references_price': '4.99', 'hr_address_references_price': '4.99', 'hr_education_references_price': '4.99', 'hr_credential_references_price': '4.99'}}}, 'listing': None, 'property': None, 'status': 'Incomplete', 'applicants': [{'id': 'a65edc29-ab29-490c-a50f-c45df9342531', 'status': 'Pending', 'first_name': '', 'last_name': '', 'email': 'fake@fake.com', 'certn_score': None, 'share_of_rent': None, 'is_cosigner': False, 'application_url': 'https://demo-app.certn.co/welcome/submit?&session=6018922c-f89a-4ceb-be12-06312f9519a2&token=bb54742b-8e7d-4103-bf19-78602411340b', 'report_url': 'https://demo-app.certn.co/pm/applications/a65edc29-ab29-490c-a50f-c45df9342531/'}], 'is_active': True, 'is_selected': False, 'applicant_status': 'N', 'get_applicant_status_display': 'None'}
property_get_result = {'id': 'f55abccb-ed01-4e2d-8ac8-564640306961', 'status': 'N', 'get_status_display': 'No Vacancy', 'created': '2019-03-04T21:02:03.616679Z', 'modified': '2019-03-04T21:02:03.734211Z', 'last_updated': '2019-03-04T21:02:03.616744Z', 'building': None, 'building_code': None, 'address': '123 Fakestreet', 'city': 'Abotsford', 'province_state': 'BC', 'country': 'N', 'postal_code': None, 'is_active': True, 'owner': {'id': 'b8959d81-89aa-4e3e-9a5a-66f46bad591b', 'email': 'fake@fake.com', 'team': {'id': 'c7105cf6-0ae6-4d0b-9373-45f3c25b83f5', 'name': 'Bungalow', 'country': 'CA', 'industry': '', 'team_type': 'PM', 'app_url': 'https://demo-app.certn.co/', 'settings_config': {'get_org_name': 'Bungalow', 'org_name': 'Bungalow', 'org_logo_link': None, 'org_primary_color': None, 'behavioural_test_req': False, 'emergency_contact_req': False, 'personal_ref_req': False, 'education_req': False, 'tenancy_years_amount_req': 2, 'tenancy_ref_amount_req': 1, 'tenancy_ref_email_req': False, 'tenancy_ref_phone_req': True, 'employer_records_amount_req': 1, 'employer_years_amount_req': 0, 'employer_ref_req': True, 'employer_ref_email_req': False, 'employer_ref_phone_req': False, 'document_required': False, 'cover_letter_req': False, 'government_id_req': True, 'proof_of_income_req': True, 'resume_req': False, 'personal_ref_amount_req': 1, 'request_base': True, 'request_behavioural': True, 'request_softcheck': True, 'request_equifax': False, 'request_identity_verification': False, 'request_enhanced_identity_verification': False, 'request_criminal_record_check': False, 'request_enhanced_criminal_record_check': False, 'request_motor_vehicle_records': False, 'request_education_verification': False, 'request_employment_verification_3_yrs': False, 'request_employment_verification_5_yrs': False, 'request_employment_verification_7_yrs': False, 'request_us_criminal_softcheck': False, 'request_us_ssn_verification': False, 'request_employer_references': True, 'request_address_references': True, 'exclude_softcheck_possible_matches': False}, 'billing_plan': {'pm_softcheck_price': '9.99', 'hr_softcheck_price': '9.99', 'pm_equifax_price': '14.99', 'hr_equifax_price': '14.99', 'pm_identity_verification_price': '1.99', 'hr_identity_verification_price': '1.99', 'pm_enhanced_identity_verification_price': '4.99', 'hr_enhanced_identity_verification_price': '4.99', 'pm_criminal_record_check_price': '29.99', 'hr_criminal_record_check_price': '29.99', 'pm_motor_vehicle_records_price': '24.99', 'hr_motor_vehicle_records_price': '24.99', 'pm_us_criminal_softcheck_price': '14.99', 'hr_us_criminal_softcheck_price': '14.99', 'pm_us_ssn_verification_price': '4.99', 'hr_us_ssn_verification_price': '4.99', 'pm_education_verification_price': '14.99', 'hr_education_verification_price': '14.99', 'pm_credential_verification_price': '14.99', 'hr_credential_verification_price': '14.99', 'pm_employment_verification_3_yrs_price': '14.99', 'hr_employment_verification_3_yrs_price': '14.99', 'pm_employment_verification_5_yrs_price': '19.99', 'hr_employment_verification_5_yrs_price': '19.99', 'pm_employment_verification_7_yrs_price': '22.99', 'hr_employment_verification_7_yrs_price': '22.99', 'pm_us_criminal_record_check_tier_1_price': '15.00', 'hr_us_criminal_record_check_tier_1_price': '15.00', 'pm_us_criminal_record_check_tier_2_price': '30.00', 'hr_us_criminal_record_check_tier_2_price': '30.00', 'pm_us_criminal_record_check_tier_3_price': '40.00', 'hr_us_criminal_record_check_tier_3_price': '40.00', 'pm_employer_references_price': '4.99', 'pm_address_references_price': '4.99', 'pm_education_references_price': '4.99', 'pm_credential_references_price': '4.99', 'hr_employer_references_price': '4.99', 'hr_address_references_price': '4.99', 'hr_education_references_price': '4.99', 'hr_credential_references_price': '4.99'}}}, 'listing_count': 0, 'full_address': '123 Fakestreet Abotsford BC N ', 'url_code': 'f55abccb-ed01-4e2d-8ac8-564640306961'}
properties_list_response = {'count': 239, 'next': 'http://demo-api.certn.co/api/v2/properties/?page=2', 'previous': None, 'results': [PROPERTY_GET_RESULT]}
api_error_sample_json = '{\n"error_type": "INVALID_REQUEST",\n"error_message": "This is an invalid request",\n"error_code": 400,\n"display_message": None\n}' |
ENCRYPTION_FILE_CHUNK_SIZE = 64 * 1024 # 64K
ENCRYPTION_KEY_DERIVATION_ITERATIONS = 100000
ENCRYPTION_KEY_SIZE = 32
ZIP_CHUNK_SIZE = 64 * 1024 # 64K
ZIP_MEMBER_FILENAME = 'mayan_file'
| encryption_file_chunk_size = 64 * 1024
encryption_key_derivation_iterations = 100000
encryption_key_size = 32
zip_chunk_size = 64 * 1024
zip_member_filename = 'mayan_file' |
'''lst=[x for x in range(2,21,2)]
print(lst)'''
lst=[x for x in range(1,21) if x%2==0]
print(lst) | """lst=[x for x in range(2,21,2)]
print(lst)"""
lst = [x for x in range(1, 21) if x % 2 == 0]
print(lst) |
#multiple if statements (IBM Digital Nation Africa)
num = 72.5
if num > 0 :
print ("The Number is positive")
if num > 20 :
print("The Number is greater than 20")
| num = 72.5
if num > 0:
print('The Number is positive')
if num > 20:
print('The Number is greater than 20') |
# The Project
# Master Ticket
TICKET_PRICE = 10
tickets_remaining = 100
# Notify the user that the tickets are sold out if the tickets remaining is 0
if tickets_remaining == 0:
print("I'm sorry we are sold out!")
# Run this code continuously until we run out of tickets
while tickets_remaining >= 1:
# Output how many tickets are remaining using the tickets_remaining variable
print("There are {} tickets remaining.".format(tickets_remaining))
# Gather the user's name and assign it to a new variable
userName = input("What is your name? ")
# Prompt the user by name and ask how many tickets they would like
tickets_requested = input("How many tickets would you like, {}? ".format(userName))
#Try to coerce input to an integer. If the inoput given is greater than the tickets available, raise a ValueError.
try:
tickets_requested = int(tickets_requested)
if tickets_requested > tickets_remaining:
raise ValueError("Sorry! There are only {} tickets available for purchase.".format(tickets_remaining))
# If the input is invalid, print this statement letting the user know
except ValueError as err:
print("Oh no, we ran into an issue. {}. Please try again.".format(err))
# Calculate the price (number of tickets multiplied by the price) and assign it to a variable
else:
amount_due = tickets_requested * TICKET_PRICE
# Output the price to the screen
print("Your total today is $", amount_due)
# Prompt user if they want to proceed. Y/N?
proceed_answer = input("Would you like to proceed? Yes/No? ")
# If they want to proceed
# Print out to the screen "Sold!" to confirm purchase
# and then decrement the tickets remaining by the number of tickets purchased
# sidenote: using the .lower function automatically converts whatver the input is to lowercase and then checks the conditions against that.
# therefore, it doesn't matter whether an uppercase or lowercase answer is entered. It will read it as lowercase.
if proceed_answer.lower() == "yes":
print("SOLD!")
tickets_remaining -= tickets_requested
print("There are {} tickets left remaining! Refer a friend for a special coupon!".format(tickets_remaining))
# TODO: Gather credit card information and process it
# Otherwise...
# thank them by name
else:
print("Thank you anyways, {}. Have a great day!".format(userName))
| ticket_price = 10
tickets_remaining = 100
if tickets_remaining == 0:
print("I'm sorry we are sold out!")
while tickets_remaining >= 1:
print('There are {} tickets remaining.'.format(tickets_remaining))
user_name = input('What is your name? ')
tickets_requested = input('How many tickets would you like, {}? '.format(userName))
try:
tickets_requested = int(tickets_requested)
if tickets_requested > tickets_remaining:
raise value_error('Sorry! There are only {} tickets available for purchase.'.format(tickets_remaining))
except ValueError as err:
print('Oh no, we ran into an issue. {}. Please try again.'.format(err))
else:
amount_due = tickets_requested * TICKET_PRICE
print('Your total today is $', amount_due)
proceed_answer = input('Would you like to proceed? Yes/No? ')
if proceed_answer.lower() == 'yes':
print('SOLD!')
tickets_remaining -= tickets_requested
print('There are {} tickets left remaining! Refer a friend for a special coupon!'.format(tickets_remaining))
else:
print('Thank you anyways, {}. Have a great day!'.format(userName)) |
del_items(0x80116458)
SetType(0x80116458, "int NumOfMonsterListLevels")
del_items(0x800A375C)
SetType(0x800A375C, "struct MonstLevel AllLevels[16]")
del_items(0x80116174)
SetType(0x80116174, "unsigned char NumsLEV1M1A[4]")
del_items(0x80116178)
SetType(0x80116178, "unsigned char NumsLEV1M1B[4]")
del_items(0x8011617C)
SetType(0x8011617C, "unsigned char NumsLEV1M1C[5]")
del_items(0x80116184)
SetType(0x80116184, "unsigned char NumsLEV2M2A[4]")
del_items(0x80116188)
SetType(0x80116188, "unsigned char NumsLEV2M2B[4]")
del_items(0x8011618C)
SetType(0x8011618C, "unsigned char NumsLEV2M2C[3]")
del_items(0x80116190)
SetType(0x80116190, "unsigned char NumsLEV2M2D[4]")
del_items(0x80116194)
SetType(0x80116194, "unsigned char NumsLEV2M2QA[4]")
del_items(0x80116198)
SetType(0x80116198, "unsigned char NumsLEV2M2QB[4]")
del_items(0x8011619C)
SetType(0x8011619C, "unsigned char NumsLEV3M3A[4]")
del_items(0x801161A0)
SetType(0x801161A0, "unsigned char NumsLEV3M3QA[3]")
del_items(0x801161A4)
SetType(0x801161A4, "unsigned char NumsLEV3M3B[4]")
del_items(0x801161A8)
SetType(0x801161A8, "unsigned char NumsLEV3M3C[4]")
del_items(0x801161AC)
SetType(0x801161AC, "unsigned char NumsLEV4M4A[4]")
del_items(0x801161B0)
SetType(0x801161B0, "unsigned char NumsLEV4M4QA[4]")
del_items(0x801161B4)
SetType(0x801161B4, "unsigned char NumsLEV4M4B[4]")
del_items(0x801161B8)
SetType(0x801161B8, "unsigned char NumsLEV4M4QB[4]")
del_items(0x801161BC)
SetType(0x801161BC, "unsigned char NumsLEV4M4C[4]")
del_items(0x801161C0)
SetType(0x801161C0, "unsigned char NumsLEV4M4QC[4]")
del_items(0x801161C4)
SetType(0x801161C4, "unsigned char NumsLEV4M4D[4]")
del_items(0x801161C8)
SetType(0x801161C8, "unsigned char NumsLEV5M5A[4]")
del_items(0x801161CC)
SetType(0x801161CC, "unsigned char NumsLEV5M5B[4]")
del_items(0x801161D0)
SetType(0x801161D0, "unsigned char NumsLEV5M5C[4]")
del_items(0x801161D4)
SetType(0x801161D4, "unsigned char NumsLEV5M5D[4]")
del_items(0x801161D8)
SetType(0x801161D8, "unsigned char NumsLEV5M5E[4]")
del_items(0x801161DC)
SetType(0x801161DC, "unsigned char NumsLEV5M5F[3]")
del_items(0x801161E0)
SetType(0x801161E0, "unsigned char NumsLEV6M6A[5]")
del_items(0x801161E8)
SetType(0x801161E8, "unsigned char NumsLEV6M6B[3]")
del_items(0x801161EC)
SetType(0x801161EC, "unsigned char NumsLEV6M6C[4]")
del_items(0x801161F0)
SetType(0x801161F0, "unsigned char NumsLEV6M6D[3]")
del_items(0x801161F4)
SetType(0x801161F4, "unsigned char NumsLEV6M6E[3]")
del_items(0x801161F8)
SetType(0x801161F8, "unsigned char NumsLEV7M7A[4]")
del_items(0x801161FC)
SetType(0x801161FC, "unsigned char NumsLEV7M7B[4]")
del_items(0x80116200)
SetType(0x80116200, "unsigned char NumsLEV7M7C[3]")
del_items(0x80116204)
SetType(0x80116204, "unsigned char NumsLEV7M7D[2]")
del_items(0x80116208)
SetType(0x80116208, "unsigned char NumsLEV7M7E[2]")
del_items(0x8011620C)
SetType(0x8011620C, "unsigned char NumsLEV8M8QA[2]")
del_items(0x80116210)
SetType(0x80116210, "unsigned char NumsLEV8M8A[3]")
del_items(0x80116214)
SetType(0x80116214, "unsigned char NumsLEV8M8B[4]")
del_items(0x80116218)
SetType(0x80116218, "unsigned char NumsLEV8M8C[3]")
del_items(0x8011621C)
SetType(0x8011621C, "unsigned char NumsLEV8M8D[2]")
del_items(0x80116220)
SetType(0x80116220, "unsigned char NumsLEV8M8E[2]")
del_items(0x80116224)
SetType(0x80116224, "unsigned char NumsLEV9M9A[4]")
del_items(0x80116228)
SetType(0x80116228, "unsigned char NumsLEV9M9B[3]")
del_items(0x8011622C)
SetType(0x8011622C, "unsigned char NumsLEV9M9C[2]")
del_items(0x80116230)
SetType(0x80116230, "unsigned char NumsLEV9M9D[2]")
del_items(0x80116234)
SetType(0x80116234, "unsigned char NumsLEV10M10A[3]")
del_items(0x80116238)
SetType(0x80116238, "unsigned char NumsLEV10M10B[2]")
del_items(0x8011623C)
SetType(0x8011623C, "unsigned char NumsLEV10M10C[2]")
del_items(0x80116240)
SetType(0x80116240, "unsigned char NumsLEV10M10D[2]")
del_items(0x80116244)
SetType(0x80116244, "unsigned char NumsLEV11M11A[3]")
del_items(0x80116248)
SetType(0x80116248, "unsigned char NumsLEV11M11B[3]")
del_items(0x8011624C)
SetType(0x8011624C, "unsigned char NumsLEV11M11C[3]")
del_items(0x80116250)
SetType(0x80116250, "unsigned char NumsLEV11M11D[3]")
del_items(0x80116254)
SetType(0x80116254, "unsigned char NumsLEV11M11E[2]")
del_items(0x80116258)
SetType(0x80116258, "unsigned char NumsLEV12M12A[3]")
del_items(0x8011625C)
SetType(0x8011625C, "unsigned char NumsLEV12M12B[3]")
del_items(0x80116260)
SetType(0x80116260, "unsigned char NumsLEV12M12C[3]")
del_items(0x80116264)
SetType(0x80116264, "unsigned char NumsLEV12M12D[3]")
del_items(0x80116268)
SetType(0x80116268, "unsigned char NumsLEV13M13A[3]")
del_items(0x8011626C)
SetType(0x8011626C, "unsigned char NumsLEV13M13B[2]")
del_items(0x80116270)
SetType(0x80116270, "unsigned char NumsLEV13M13QB[3]")
del_items(0x80116274)
SetType(0x80116274, "unsigned char NumsLEV13M13C[3]")
del_items(0x80116278)
SetType(0x80116278, "unsigned char NumsLEV13M13D[2]")
del_items(0x8011627C)
SetType(0x8011627C, "unsigned char NumsLEV14M14A[3]")
del_items(0x80116280)
SetType(0x80116280, "unsigned char NumsLEV14M14B[3]")
del_items(0x80116284)
SetType(0x80116284, "unsigned char NumsLEV14M14QB[3]")
del_items(0x80116288)
SetType(0x80116288, "unsigned char NumsLEV14M14C[3]")
del_items(0x8011628C)
SetType(0x8011628C, "unsigned char NumsLEV14M14D[3]")
del_items(0x80116290)
SetType(0x80116290, "unsigned char NumsLEV14M14E[2]")
del_items(0x80116294)
SetType(0x80116294, "unsigned char NumsLEV15M15A[3]")
del_items(0x80116298)
SetType(0x80116298, "unsigned char NumsLEV15M15B[3]")
del_items(0x8011629C)
SetType(0x8011629C, "unsigned char NumsLEV15M15C[2]")
del_items(0x801162A0)
SetType(0x801162A0, "unsigned char NumsLEV16M16D[1]")
del_items(0x800A32BC)
SetType(0x800A32BC, "struct MonstList ChoiceListLEV1[3]")
del_items(0x800A32EC)
SetType(0x800A32EC, "struct MonstList ChoiceListLEV2[6]")
del_items(0x800A334C)
SetType(0x800A334C, "struct MonstList ChoiceListLEV3[4]")
del_items(0x800A338C)
SetType(0x800A338C, "struct MonstList ChoiceListLEV4[7]")
del_items(0x800A33FC)
SetType(0x800A33FC, "struct MonstList ChoiceListLEV5[6]")
del_items(0x800A345C)
SetType(0x800A345C, "struct MonstList ChoiceListLEV6[5]")
del_items(0x800A34AC)
SetType(0x800A34AC, "struct MonstList ChoiceListLEV7[5]")
del_items(0x800A34FC)
SetType(0x800A34FC, "struct MonstList ChoiceListLEV8[6]")
del_items(0x800A355C)
SetType(0x800A355C, "struct MonstList ChoiceListLEV9[4]")
del_items(0x800A359C)
SetType(0x800A359C, "struct MonstList ChoiceListLEV10[4]")
del_items(0x800A35DC)
SetType(0x800A35DC, "struct MonstList ChoiceListLEV11[5]")
del_items(0x800A362C)
SetType(0x800A362C, "struct MonstList ChoiceListLEV12[4]")
del_items(0x800A366C)
SetType(0x800A366C, "struct MonstList ChoiceListLEV13[5]")
del_items(0x800A36BC)
SetType(0x800A36BC, "struct MonstList ChoiceListLEV14[6]")
del_items(0x800A371C)
SetType(0x800A371C, "struct MonstList ChoiceListLEV15[3]")
del_items(0x800A374C)
SetType(0x800A374C, "struct MonstList ChoiceListLEV16[1]")
del_items(0x80117A20)
SetType(0x80117A20, "struct TASK *GameTaskPtr")
del_items(0x80116468)
SetType(0x80116468, "int time_in_frames")
del_items(0x800A37DC)
SetType(0x800A37DC, "struct LOAD_IMAGE_ARGS AllArgs[30]")
del_items(0x8011646C)
SetType(0x8011646C, "int ArgsSoFar")
del_items(0x80116470)
SetType(0x80116470, "unsigned long *ThisOt")
del_items(0x80116474)
SetType(0x80116474, "struct POLY_FT4 *ThisPrimAddr")
del_items(0x80117A24)
SetType(0x80117A24, "long hndPrimBuffers")
del_items(0x80117A28)
SetType(0x80117A28, "struct PRIM_BUFFER *PrimBuffers")
del_items(0x80117A2C)
SetType(0x80117A2C, "unsigned char BufferDepth")
del_items(0x80117A2D)
SetType(0x80117A2D, "unsigned char WorkRamId")
del_items(0x80117A2E)
SetType(0x80117A2E, "unsigned char ScrNum")
del_items(0x80117A30)
SetType(0x80117A30, "struct SCREEN_ENV *Screens")
del_items(0x80117A34)
SetType(0x80117A34, "struct PRIM_BUFFER *PbToClear")
del_items(0x80117A38)
SetType(0x80117A38, "unsigned char BufferNum")
del_items(0x80116478)
SetType(0x80116478, "struct POLY_FT4 *AddrToAvoid")
del_items(0x80117A39)
SetType(0x80117A39, "unsigned char LastBuffer")
del_items(0x80117A3C)
SetType(0x80117A3C, "struct DISPENV *DispEnvToPut")
del_items(0x80117A40)
SetType(0x80117A40, "int ThisOtSize")
del_items(0x8011647C)
SetType(0x8011647C, "struct RECT ScrRect")
del_items(0x80117A44)
SetType(0x80117A44, "int VidWait")
del_items(0x80117ED0)
SetType(0x80117ED0, "struct SCREEN_ENV screen[2]")
del_items(0x80117A48)
SetType(0x80117A48, "void (*VbFunc)()")
del_items(0x80117A4C)
SetType(0x80117A4C, "unsigned long VidTick")
del_items(0x80117A50)
SetType(0x80117A50, "int VXOff")
del_items(0x80117A54)
SetType(0x80117A54, "int VYOff")
del_items(0x80116490)
SetType(0x80116490, "struct LNK_OPTS *Gaz")
del_items(0x80116494)
SetType(0x80116494, "int LastFmem")
del_items(0x80116484)
SetType(0x80116484, "unsigned int GSYS_MemStart")
del_items(0x80116488)
SetType(0x80116488, "unsigned int GSYS_MemEnd")
del_items(0x800A3B24)
SetType(0x800A3B24, "struct MEM_INIT_INFO PsxMem")
del_items(0x800A3B4C)
SetType(0x800A3B4C, "struct MEM_INIT_INFO PsxFastMem")
del_items(0x8011648C)
SetType(0x8011648C, "int LowestFmem")
del_items(0x801164A4)
SetType(0x801164A4, "int FileSYS")
del_items(0x80117A58)
SetType(0x80117A58, "struct FileIO *FileSystem")
del_items(0x80117A5C)
SetType(0x80117A5C, "struct FileIO *OverlayFileSystem")
del_items(0x801164BE)
SetType(0x801164BE, "short DavesPad")
del_items(0x801164C0)
SetType(0x801164C0, "short DavesPadDeb")
del_items(0x800A3B74)
SetType(0x800A3B74, "char _6FileIO_FileToLoad[50]")
del_items(0x80117FB0)
SetType(0x80117FB0, "struct POLY_FT4 MyFT4")
del_items(0x800A4418)
SetType(0x800A4418, "struct TextDat *AllDats[283]")
del_items(0x80116510)
SetType(0x80116510, "int TpW")
del_items(0x80116514)
SetType(0x80116514, "int TpH")
del_items(0x80116518)
SetType(0x80116518, "int TpXDest")
del_items(0x8011651C)
SetType(0x8011651C, "int TpYDest")
del_items(0x80116520)
SetType(0x80116520, "struct RECT R")
del_items(0x800A4884)
SetType(0x800A4884, "struct POLY_GT4 MyGT4")
del_items(0x800A48B8)
SetType(0x800A48B8, "struct POLY_GT3 MyGT3")
del_items(0x800A3BA8)
SetType(0x800A3BA8, "struct TextDat DatPool[20]")
del_items(0x80116534)
SetType(0x80116534, "bool ChunkGot")
del_items(0x800A48E0)
SetType(0x800A48E0, "char STREAM_DIR[16]")
del_items(0x800A48F0)
SetType(0x800A48F0, "char STREAM_BIN[16]")
del_items(0x800A4900)
SetType(0x800A4900, "unsigned char EAC_DirectoryCache[300]")
del_items(0x80116548)
SetType(0x80116548, "unsigned long BL_NoLumpFiles")
del_items(0x8011654C)
SetType(0x8011654C, "unsigned long BL_NoStreamFiles")
del_items(0x80116550)
SetType(0x80116550, "struct STRHDR *LFileTab")
del_items(0x80116554)
SetType(0x80116554, "struct STRHDR *SFileTab")
del_items(0x80116558)
SetType(0x80116558, "unsigned char FileLoaded")
del_items(0x80116588)
SetType(0x80116588, "int NoTAllocs")
del_items(0x800A4A2C)
SetType(0x800A4A2C, "struct MEMSTRUCT MemBlock[50]")
del_items(0x80117A68)
SetType(0x80117A68, "bool CanPause")
del_items(0x80117A6C)
SetType(0x80117A6C, "bool Paused")
del_items(0x80117A70)
SetType(0x80117A70, "struct RECT PRect")
del_items(0x80117FD8)
SetType(0x80117FD8, "struct Dialog PBack")
del_items(0x800A4C94)
SetType(0x800A4C94, "char RawPadData0[34]")
del_items(0x800A4CB8)
SetType(0x800A4CB8, "char RawPadData1[34]")
del_items(0x800A4CDC)
SetType(0x800A4CDC, "unsigned char demo_buffer[1800]")
del_items(0x801165B4)
SetType(0x801165B4, "int demo_pad_time")
del_items(0x801165B8)
SetType(0x801165B8, "int demo_pad_count")
del_items(0x800A4BBC)
SetType(0x800A4BBC, "struct CPad Pad0")
del_items(0x800A4C28)
SetType(0x800A4C28, "struct CPad Pad1")
del_items(0x801165BC)
SetType(0x801165BC, "unsigned long demo_finish")
del_items(0x801165C0)
SetType(0x801165C0, "int cac_pad")
del_items(0x801165DC)
SetType(0x801165DC, "struct POLY_FT4 *CharFt4")
del_items(0x801165E0)
SetType(0x801165E0, "int CharFrm")
del_items(0x801165CD)
SetType(0x801165CD, "unsigned char WHITER")
del_items(0x801165CE)
SetType(0x801165CE, "unsigned char WHITEG")
del_items(0x801165CF)
SetType(0x801165CF, "unsigned char WHITEB")
del_items(0x801165D0)
SetType(0x801165D0, "unsigned char BLUER")
del_items(0x801165D1)
SetType(0x801165D1, "unsigned char BLUEG")
del_items(0x801165D2)
SetType(0x801165D2, "unsigned char BLUEB")
del_items(0x801165D3)
SetType(0x801165D3, "unsigned char REDR")
del_items(0x801165D4)
SetType(0x801165D4, "unsigned char REDG")
del_items(0x801165D5)
SetType(0x801165D5, "unsigned char REDB")
del_items(0x801165D6)
SetType(0x801165D6, "unsigned char GOLDR")
del_items(0x801165D7)
SetType(0x801165D7, "unsigned char GOLDG")
del_items(0x801165D8)
SetType(0x801165D8, "unsigned char GOLDB")
del_items(0x800A53E4)
SetType(0x800A53E4, "struct CFont MediumFont")
del_items(0x800A55FC)
SetType(0x800A55FC, "struct CFont LargeFont")
del_items(0x800A5814)
SetType(0x800A5814, "struct FontItem LFontTab[90]")
del_items(0x800A58C8)
SetType(0x800A58C8, "struct FontTab LFont")
del_items(0x800A58D8)
SetType(0x800A58D8, "struct FontItem MFontTab[151]")
del_items(0x800A5A08)
SetType(0x800A5A08, "struct FontTab MFont")
del_items(0x801165F5)
SetType(0x801165F5, "unsigned char DialogRed")
del_items(0x801165F6)
SetType(0x801165F6, "unsigned char DialogGreen")
del_items(0x801165F7)
SetType(0x801165F7, "unsigned char DialogBlue")
del_items(0x801165F8)
SetType(0x801165F8, "unsigned char DialogTRed")
del_items(0x801165F9)
SetType(0x801165F9, "unsigned char DialogTGreen")
del_items(0x801165FA)
SetType(0x801165FA, "unsigned char DialogTBlue")
del_items(0x801165FC)
SetType(0x801165FC, "struct TextDat *DialogTData")
del_items(0x80116600)
SetType(0x80116600, "int DialogBackGfx")
del_items(0x80116604)
SetType(0x80116604, "int DialogBackW")
del_items(0x80116608)
SetType(0x80116608, "int DialogBackH")
del_items(0x8011660C)
SetType(0x8011660C, "int DialogBorderGfx")
del_items(0x80116610)
SetType(0x80116610, "int DialogBorderTLW")
del_items(0x80116614)
SetType(0x80116614, "int DialogBorderTLH")
del_items(0x80116618)
SetType(0x80116618, "int DialogBorderTRW")
del_items(0x8011661C)
SetType(0x8011661C, "int DialogBorderTRH")
del_items(0x80116620)
SetType(0x80116620, "int DialogBorderBLW")
del_items(0x80116624)
SetType(0x80116624, "int DialogBorderBLH")
del_items(0x80116628)
SetType(0x80116628, "int DialogBorderBRW")
del_items(0x8011662C)
SetType(0x8011662C, "int DialogBorderBRH")
del_items(0x80116630)
SetType(0x80116630, "int DialogBorderTW")
del_items(0x80116634)
SetType(0x80116634, "int DialogBorderTH")
del_items(0x80116638)
SetType(0x80116638, "int DialogBorderBW")
del_items(0x8011663C)
SetType(0x8011663C, "int DialogBorderBH")
del_items(0x80116640)
SetType(0x80116640, "int DialogBorderLW")
del_items(0x80116644)
SetType(0x80116644, "int DialogBorderLH")
del_items(0x80116648)
SetType(0x80116648, "int DialogBorderRW")
del_items(0x8011664C)
SetType(0x8011664C, "int DialogBorderRH")
del_items(0x80116650)
SetType(0x80116650, "int DialogBevelGfx")
del_items(0x80116654)
SetType(0x80116654, "int DialogBevelCW")
del_items(0x80116658)
SetType(0x80116658, "int DialogBevelCH")
del_items(0x8011665C)
SetType(0x8011665C, "int DialogBevelLRW")
del_items(0x80116660)
SetType(0x80116660, "int DialogBevelLRH")
del_items(0x80116664)
SetType(0x80116664, "int DialogBevelUDW")
del_items(0x80116668)
SetType(0x80116668, "int DialogBevelUDH")
del_items(0x8011666C)
SetType(0x8011666C, "int MY_DialogOTpos")
del_items(0x80117A78)
SetType(0x80117A78, "unsigned char DialogGBack")
del_items(0x80117A79)
SetType(0x80117A79, "char GShadeX")
del_items(0x80117A7A)
SetType(0x80117A7A, "char GShadeY")
del_items(0x80117A80)
SetType(0x80117A80, "unsigned char RandBTab[8]")
del_items(0x800A5A58)
SetType(0x800A5A58, "int Cxy[28]")
del_items(0x801165EF)
SetType(0x801165EF, "unsigned char BORDERR")
del_items(0x801165F0)
SetType(0x801165F0, "unsigned char BORDERG")
del_items(0x801165F1)
SetType(0x801165F1, "unsigned char BORDERB")
del_items(0x801165F2)
SetType(0x801165F2, "unsigned char BACKR")
del_items(0x801165F3)
SetType(0x801165F3, "unsigned char BACKG")
del_items(0x801165F4)
SetType(0x801165F4, "unsigned char BACKB")
del_items(0x800A5A18)
SetType(0x800A5A18, "char GShadeTab[64]")
del_items(0x801165ED)
SetType(0x801165ED, "char GShadePX")
del_items(0x801165EE)
SetType(0x801165EE, "char GShadePY")
del_items(0x80116679)
SetType(0x80116679, "unsigned char PlayDemoFlag")
del_items(0x80117FE8)
SetType(0x80117FE8, "struct RGBPOLY rgbb")
del_items(0x80118018)
SetType(0x80118018, "struct RGBPOLY rgbt")
del_items(0x80117A88)
SetType(0x80117A88, "int blockr")
del_items(0x80117A8C)
SetType(0x80117A8C, "int blockg")
del_items(0x80117A90)
SetType(0x80117A90, "int blockb")
del_items(0x80117A94)
SetType(0x80117A94, "int InfraFlag")
del_items(0x80116685)
SetType(0x80116685, "unsigned char P1ObjSelCount")
del_items(0x80116686)
SetType(0x80116686, "unsigned char P2ObjSelCount")
del_items(0x80116687)
SetType(0x80116687, "unsigned char P12ObjSelCount")
del_items(0x80116688)
SetType(0x80116688, "unsigned char P1ItemSelCount")
del_items(0x80116689)
SetType(0x80116689, "unsigned char P2ItemSelCount")
del_items(0x8011668A)
SetType(0x8011668A, "unsigned char P12ItemSelCount")
del_items(0x8011668B)
SetType(0x8011668B, "unsigned char P1MonstSelCount")
del_items(0x8011668C)
SetType(0x8011668C, "unsigned char P2MonstSelCount")
del_items(0x8011668D)
SetType(0x8011668D, "unsigned char P12MonstSelCount")
del_items(0x8011668E)
SetType(0x8011668E, "unsigned short P1ObjSelCol")
del_items(0x80116690)
SetType(0x80116690, "unsigned short P2ObjSelCol")
del_items(0x80116692)
SetType(0x80116692, "unsigned short P12ObjSelCol")
del_items(0x80116694)
SetType(0x80116694, "unsigned short P1ItemSelCol")
del_items(0x80116696)
SetType(0x80116696, "unsigned short P2ItemSelCol")
del_items(0x80116698)
SetType(0x80116698, "unsigned short P12ItemSelCol")
del_items(0x8011669A)
SetType(0x8011669A, "unsigned short P1MonstSelCol")
del_items(0x8011669C)
SetType(0x8011669C, "unsigned short P2MonstSelCol")
del_items(0x8011669E)
SetType(0x8011669E, "unsigned short P12MonstSelCol")
del_items(0x801166A0)
SetType(0x801166A0, "struct CBlocks *CurrentBlocks")
del_items(0x8010C5FC)
SetType(0x8010C5FC, "short SinTab[32]")
del_items(0x800A5AC8)
SetType(0x800A5AC8, "struct TownToCreature TownConv[10]")
del_items(0x801166BC)
SetType(0x801166BC, "enum OVER_TYPE CurrentOverlay")
del_items(0x8010C688)
SetType(0x8010C688, "unsigned long HaltTab[3]")
del_items(0x80118048)
SetType(0x80118048, "struct Overlay FrontEndOver")
del_items(0x80118058)
SetType(0x80118058, "struct Overlay PregameOver")
del_items(0x80118068)
SetType(0x80118068, "struct Overlay GameOver")
del_items(0x80118078)
SetType(0x80118078, "struct Overlay FmvOver")
del_items(0x80117A98)
SetType(0x80117A98, "int OWorldX")
del_items(0x80117A9C)
SetType(0x80117A9C, "int OWorldY")
del_items(0x80117AA0)
SetType(0x80117AA0, "int WWorldX")
del_items(0x80117AA4)
SetType(0x80117AA4, "int WWorldY")
del_items(0x8010C704)
SetType(0x8010C704, "short TxyAdd[16]")
del_items(0x801166E0)
SetType(0x801166E0, "int GXAdj2")
del_items(0x80117AA8)
SetType(0x80117AA8, "int TimePerFrame")
del_items(0x80117AAC)
SetType(0x80117AAC, "int CpuStart")
del_items(0x80117AB0)
SetType(0x80117AB0, "int CpuTime")
del_items(0x80117AB4)
SetType(0x80117AB4, "int DrawTime")
del_items(0x80117AB8)
SetType(0x80117AB8, "int DrawStart")
del_items(0x80117ABC)
SetType(0x80117ABC, "int LastCpuTime")
del_items(0x80117AC0)
SetType(0x80117AC0, "int LastDrawTime")
del_items(0x80117AC4)
SetType(0x80117AC4, "int DrawArea")
del_items(0x801166E8)
SetType(0x801166E8, "bool ProfOn")
del_items(0x800A5ADC)
SetType(0x800A5ADC, "unsigned char LevPals[17]")
del_items(0x8010C848)
SetType(0x8010C848, "unsigned short Level2Bgdata[25]")
del_items(0x800A5AF0)
SetType(0x800A5AF0, "struct PanelXY DefP1PanelXY")
del_items(0x800A5B44)
SetType(0x800A5B44, "struct PanelXY DefP1PanelXY2")
del_items(0x800A5B98)
SetType(0x800A5B98, "struct PanelXY DefP2PanelXY")
del_items(0x800A5BEC)
SetType(0x800A5BEC, "struct PanelXY DefP2PanelXY2")
del_items(0x800A5C40)
SetType(0x800A5C40, "unsigned int SpeedBarGfxTable[50]")
del_items(0x80116710)
SetType(0x80116710, "int hof")
del_items(0x80116714)
SetType(0x80116714, "int mof")
del_items(0x800A5D08)
SetType(0x800A5D08, "struct SFXHDR SFXTab[2]")
del_items(0x80116748)
SetType(0x80116748, "unsigned long Time")
del_items(0x800A5E08)
SetType(0x800A5E08, "struct SpuVoiceAttr voice_attr")
del_items(0x80116724)
SetType(0x80116724, "unsigned long *STR_Buffer")
del_items(0x80116728)
SetType(0x80116728, "char NoActiveStreams")
del_items(0x8011672C)
SetType(0x8011672C, "bool STRInit")
del_items(0x8011676C)
SetType(0x8011676C, "char SFXNotPlayed")
del_items(0x8011676D)
SetType(0x8011676D, "char SFXNotInBank")
del_items(0x80118088)
SetType(0x80118088, "char spu_management[264]")
del_items(0x80118198)
SetType(0x80118198, "struct SpuReverbAttr rev_attr")
del_items(0x80117ACC)
SetType(0x80117ACC, "unsigned short NoSfx")
del_items(0x80116758)
SetType(0x80116758, "struct bank_entry *BankOffsets")
del_items(0x8011675C)
SetType(0x8011675C, "long OffsetHandle")
del_items(0x80116760)
SetType(0x80116760, "int BankBase")
del_items(0x80116764)
SetType(0x80116764, "unsigned char SPU_Done")
del_items(0x8010CC00)
SetType(0x8010CC00, "int SFXRemapTab[44]")
del_items(0x80116768)
SetType(0x80116768, "int NoSNDRemaps")
del_items(0x800A5E48)
SetType(0x800A5E48, "struct PalCollection ThePals")
del_items(0x8010CCE4)
SetType(0x8010CCE4, "struct InitPos InitialPositions[16]")
del_items(0x801167B4)
SetType(0x801167B4, "int demo_level")
del_items(0x801167B8)
SetType(0x801167B8, "struct TASK *DemoTask")
del_items(0x801167BC)
SetType(0x801167BC, "struct TASK *DemoGameTask")
del_items(0x801167C0)
SetType(0x801167C0, "struct TASK *tonys")
del_items(0x80116798)
SetType(0x80116798, "int demo_load")
del_items(0x8011679C)
SetType(0x8011679C, "int demo_record_load")
del_items(0x801167A0)
SetType(0x801167A0, "int level_record")
del_items(0x80116794)
SetType(0x80116794, "int moo_moo")
del_items(0x801167A4)
SetType(0x801167A4, "unsigned char demo_flash")
del_items(0x801167A8)
SetType(0x801167A8, "int tonys_Task")
del_items(0x8011691C)
SetType(0x8011691C, "bool DoShowPanel")
del_items(0x80116920)
SetType(0x80116920, "bool DoDrawBg")
del_items(0x80117AD0)
SetType(0x80117AD0, "bool GlueFinished")
del_items(0x80117AD4)
SetType(0x80117AD4, "bool DoHomingScroll")
del_items(0x80117AD8)
SetType(0x80117AD8, "struct TextDat *TownerGfx")
del_items(0x80117ADC)
SetType(0x80117ADC, "int CurrentMonsterList")
del_items(0x801167CD)
SetType(0x801167CD, "char started_grtask")
del_items(0x800A5FD4)
SetType(0x800A5FD4, "struct PInf PlayerInfo[81]")
del_items(0x80116924)
SetType(0x80116924, "char ArmourChar[4]")
del_items(0x8010CDC8)
SetType(0x8010CDC8, "char WepChar[10]")
del_items(0x80116928)
SetType(0x80116928, "char CharChar[4]")
del_items(0x80117AE0)
SetType(0x80117AE0, "char ctrl_select_line")
del_items(0x80117AE1)
SetType(0x80117AE1, "char ctrl_select_side")
del_items(0x80117AE2)
SetType(0x80117AE2, "char ckeyheld")
del_items(0x80117AE4)
SetType(0x80117AE4, "int old_options_pad")
del_items(0x80117AE8)
SetType(0x80117AE8, "struct RECT CtrlRect")
del_items(0x8011693C)
SetType(0x8011693C, "unsigned char ctrlflag")
del_items(0x800A6304)
SetType(0x800A6304, "struct KEY_ASSIGNS txt_actions[20]")
del_items(0x800A625C)
SetType(0x800A625C, "struct pad_assigns pad_txt[14]")
del_items(0x80116938)
SetType(0x80116938, "int CtrlBorder")
del_items(0x801181B0)
SetType(0x801181B0, "struct CScreen CtrlScreen")
del_items(0x80118230)
SetType(0x80118230, "struct Dialog CtrlBack")
del_items(0x800A6444)
SetType(0x800A6444, "int controller_defaults[2][20]")
del_items(0x801169A0)
SetType(0x801169A0, "int gr_scrxoff")
del_items(0x801169A4)
SetType(0x801169A4, "int gr_scryoff")
del_items(0x801169AC)
SetType(0x801169AC, "unsigned short water_clut")
del_items(0x801169B0)
SetType(0x801169B0, "char visible_level")
del_items(0x8011699D)
SetType(0x8011699D, "char last_type")
del_items(0x801169B2)
SetType(0x801169B2, "char daylight")
del_items(0x801169AE)
SetType(0x801169AE, "char cow_in_sight")
del_items(0x801169AF)
SetType(0x801169AF, "char inn_in_sight")
del_items(0x801169A8)
SetType(0x801169A8, "unsigned int water_count")
del_items(0x801169B1)
SetType(0x801169B1, "unsigned char lastrnd")
del_items(0x801169B4)
SetType(0x801169B4, "int call_clock")
del_items(0x801169C4)
SetType(0x801169C4, "int TitleAnimCount")
del_items(0x8010CE90)
SetType(0x8010CE90, "unsigned char light_tile[55]")
del_items(0x80116A28)
SetType(0x80116A28, "int p1scrnx")
del_items(0x80116A2C)
SetType(0x80116A2C, "int p1scrny")
del_items(0x80116A30)
SetType(0x80116A30, "int p1wrldx")
del_items(0x80116A34)
SetType(0x80116A34, "int p1wrldy")
del_items(0x80116A38)
SetType(0x80116A38, "int p2scrnx")
del_items(0x80116A3C)
SetType(0x80116A3C, "int p2scrny")
del_items(0x80116A40)
SetType(0x80116A40, "int p2wrldx")
del_items(0x80116A44)
SetType(0x80116A44, "int p2wrldy")
del_items(0x80117AF0)
SetType(0x80117AF0, "int p1spiny1")
del_items(0x80117AF4)
SetType(0x80117AF4, "int p1spiny2")
del_items(0x80117AF8)
SetType(0x80117AF8, "int p1scale")
del_items(0x80117AFC)
SetType(0x80117AFC, "int p1apocaflag")
del_items(0x80117B00)
SetType(0x80117B00, "int p1apocaxpos")
del_items(0x80117B04)
SetType(0x80117B04, "int p1apocaypos")
del_items(0x80117B08)
SetType(0x80117B08, "int p2spiny1")
del_items(0x80117B0C)
SetType(0x80117B0C, "int p2spiny2")
del_items(0x80117B10)
SetType(0x80117B10, "int p2scale")
del_items(0x80117B14)
SetType(0x80117B14, "int p2apocaflag")
del_items(0x80117B18)
SetType(0x80117B18, "int p2apocaxpos")
del_items(0x80117B1C)
SetType(0x80117B1C, "int p2apocaypos")
del_items(0x80118240)
SetType(0x80118240, "struct Particle PartArray[16]")
del_items(0x80117B20)
SetType(0x80117B20, "int partOtPos")
del_items(0x801169E0)
SetType(0x801169E0, "int p1teleflag")
del_items(0x801169E4)
SetType(0x801169E4, "int p1phaseflag")
del_items(0x801169E8)
SetType(0x801169E8, "int p1inviscount")
del_items(0x801169EC)
SetType(0x801169EC, "int p2teleflag")
del_items(0x801169F0)
SetType(0x801169F0, "int p2phaseflag")
del_items(0x801169F4)
SetType(0x801169F4, "int p2inviscount")
del_items(0x801169F8)
SetType(0x801169F8, "int SetParticle")
del_items(0x801169FC)
SetType(0x801169FC, "int p1partexecnum")
del_items(0x80116A00)
SetType(0x80116A00, "int p2partexecnum")
del_items(0x800A64E4)
SetType(0x800A64E4, "int JumpArray[8]")
del_items(0x80116A04)
SetType(0x80116A04, "int partjumpflag")
del_items(0x80116A08)
SetType(0x80116A08, "int partglowflag")
del_items(0x80116A0C)
SetType(0x80116A0C, "int partcolour")
del_items(0x80116A10)
SetType(0x80116A10, "int healflag")
del_items(0x80116A14)
SetType(0x80116A14, "int healtime")
del_items(0x80116A18)
SetType(0x80116A18, "int healplyr")
del_items(0x80116A81)
SetType(0x80116A81, "unsigned char select_flag")
del_items(0x80117B24)
SetType(0x80117B24, "struct RECT SelectRect")
del_items(0x80117B2C)
SetType(0x80117B2C, "char item_select")
del_items(0x800A6504)
SetType(0x800A6504, "short _psplxpos[3][2]")
del_items(0x800A6510)
SetType(0x800A6510, "short _psplypos[3][2]")
del_items(0x80116A84)
SetType(0x80116A84, "char _psplpos[2]")
del_items(0x80116A88)
SetType(0x80116A88, "char spl_maxrad[2]")
del_items(0x80116A8C)
SetType(0x80116A8C, "int splangle[2]")
del_items(0x80116A54)
SetType(0x80116A54, "struct CPlayer *gplayer")
del_items(0x80116A58)
SetType(0x80116A58, "unsigned char _pSplTargetX[2]")
del_items(0x80116A5C)
SetType(0x80116A5C, "unsigned char _pSplTargetY[2]")
del_items(0x80116A60)
SetType(0x80116A60, "unsigned char _pTargetSpell[2]")
del_items(0x80118480)
SetType(0x80118480, "struct Dialog SelectBack")
del_items(0x80116A64)
SetType(0x80116A64, "int _pspotid[2]")
del_items(0x80116A6C)
SetType(0x80116A6C, "int QSpell[2]")
del_items(0x80116A74)
SetType(0x80116A74, "char _spltotype[2]")
del_items(0x80116A78)
SetType(0x80116A78, "char mana_order[4]")
del_items(0x80116A7C)
SetType(0x80116A7C, "char health_order[4]")
del_items(0x80116A80)
SetType(0x80116A80, "unsigned char birdcheck")
del_items(0x80118490)
SetType(0x80118490, "struct TextDat *DecRequestors[10]")
del_items(0x80117B30)
SetType(0x80117B30, "unsigned short progress")
del_items(0x8010CF8C)
SetType(0x8010CF8C, "unsigned short Level2CutScreen[20]")
del_items(0x80116AAC)
SetType(0x80116AAC, "char *CutString")
del_items(0x801184B8)
SetType(0x801184B8, "struct CScreen Scr")
del_items(0x80116AB0)
SetType(0x80116AB0, "struct TASK *CutScreenTSK")
del_items(0x80116AB4)
SetType(0x80116AB4, "bool GameLoading")
del_items(0x80118538)
SetType(0x80118538, "struct Dialog LBack")
del_items(0x80116AC4)
SetType(0x80116AC4, "unsigned int card_ev0")
del_items(0x80116AC8)
SetType(0x80116AC8, "unsigned int card_ev1")
del_items(0x80116ACC)
SetType(0x80116ACC, "unsigned int card_ev2")
del_items(0x80116AD0)
SetType(0x80116AD0, "unsigned int card_ev3")
del_items(0x80116AD4)
SetType(0x80116AD4, "unsigned int card_ev10")
del_items(0x80116AD8)
SetType(0x80116AD8, "unsigned int card_ev11")
del_items(0x80116ADC)
SetType(0x80116ADC, "unsigned int card_ev12")
del_items(0x80116AE0)
SetType(0x80116AE0, "unsigned int card_ev13")
del_items(0x80116AE4)
SetType(0x80116AE4, "int card_dirty[2]")
del_items(0x80116AEC)
SetType(0x80116AEC, "struct TASK *MemcardTask")
del_items(0x80116AF0)
SetType(0x80116AF0, "int card_event")
del_items(0x80116AC0)
SetType(0x80116AC0, "void (*mem_card_event_handler)()")
del_items(0x80116AB8)
SetType(0x80116AB8, "bool MemCardActive")
del_items(0x80116ABC)
SetType(0x80116ABC, "int never_hooked_events")
del_items(0x80117B34)
SetType(0x80117B34, "unsigned long MasterVol")
del_items(0x80117B38)
SetType(0x80117B38, "unsigned long MusicVol")
del_items(0x80117B3C)
SetType(0x80117B3C, "unsigned long SoundVol")
del_items(0x80117B40)
SetType(0x80117B40, "unsigned long VideoVol")
del_items(0x80117B44)
SetType(0x80117B44, "unsigned long SpeechVol")
del_items(0x80117B48)
SetType(0x80117B48, "struct TextDat *Slider")
del_items(0x80117B4C)
SetType(0x80117B4C, "int sw")
del_items(0x80117B50)
SetType(0x80117B50, "int sx")
del_items(0x80117B54)
SetType(0x80117B54, "int sy")
del_items(0x80117B58)
SetType(0x80117B58, "unsigned char Adjust")
del_items(0x80117B59)
SetType(0x80117B59, "unsigned char qspin")
del_items(0x80117B5A)
SetType(0x80117B5A, "unsigned char lqspin")
del_items(0x80117B5C)
SetType(0x80117B5C, "enum LANG_TYPE OrigLang")
del_items(0x80117B60)
SetType(0x80117B60, "enum LANG_TYPE OldLang")
del_items(0x80117B64)
SetType(0x80117B64, "enum LANG_TYPE NewLang")
del_items(0x80116B9C)
SetType(0x80116B9C, "int ReturnMenu")
del_items(0x80117B6C)
SetType(0x80117B6C, "struct RECT ORect")
del_items(0x80116B18)
SetType(0x80116B18, "bool optionsflag")
del_items(0x80116B0C)
SetType(0x80116B0C, "int cmenu")
del_items(0x80116B20)
SetType(0x80116B20, "int options_pad")
del_items(0x80116B24)
SetType(0x80116B24, "char *PrevTxt")
del_items(0x80116B14)
SetType(0x80116B14, "bool allspellsflag")
del_items(0x800A6CF0)
SetType(0x800A6CF0, "short Circle[64]")
del_items(0x80116B00)
SetType(0x80116B00, "int Spacing")
del_items(0x80116B04)
SetType(0x80116B04, "int cs")
del_items(0x80116B08)
SetType(0x80116B08, "int lastcs")
del_items(0x80116B10)
SetType(0x80116B10, "bool MemcardOverlay")
del_items(0x80116B1C)
SetType(0x80116B1C, "int saveflag")
del_items(0x80117B74)
SetType(0x80117B74, "char *McState[2]")
del_items(0x80116B28)
SetType(0x80116B28, "char *BlankEntry")
del_items(0x800A651C)
SetType(0x800A651C, "struct OMENUITEM MainMenu[7]")
del_items(0x800A65C4)
SetType(0x800A65C4, "struct OMENUITEM GameMenu[8]")
del_items(0x800A6684)
SetType(0x800A6684, "struct OMENUITEM SoundMenu[6]")
del_items(0x800A6714)
SetType(0x800A6714, "struct OMENUITEM CentreMenu[7]")
del_items(0x800A67BC)
SetType(0x800A67BC, "struct OMENUITEM LangMenu[7]")
del_items(0x800A6864)
SetType(0x800A6864, "struct OMENUITEM MemcardMenu[4]")
del_items(0x800A68C4)
SetType(0x800A68C4, "struct OMENUITEM MemcardGameMenu[6]")
del_items(0x800A6954)
SetType(0x800A6954, "struct OMENUITEM MemcardCharacterMenu[4]")
del_items(0x800A69B4)
SetType(0x800A69B4, "struct OMENUITEM MemcardSelectCard1[7]")
del_items(0x800A6A5C)
SetType(0x800A6A5C, "struct OMENUITEM MemcardSelectCard2[7]")
del_items(0x800A6B04)
SetType(0x800A6B04, "struct OMENUITEM MemcardFormatMenu[4]")
del_items(0x800A6B64)
SetType(0x800A6B64, "struct OMENUITEM CheatMenu[8]")
del_items(0x800A6C24)
SetType(0x800A6C24, "struct OMENUITEM InfoMenu[2]")
del_items(0x800A6C54)
SetType(0x800A6C54, "struct OMENULIST MenuList[13]")
del_items(0x80116B80)
SetType(0x80116B80, "bool debounce")
del_items(0x80116B84)
SetType(0x80116B84, "bool pu")
del_items(0x80116B88)
SetType(0x80116B88, "bool pd")
del_items(0x80116B8C)
SetType(0x80116B8C, "bool pl")
del_items(0x80116B90)
SetType(0x80116B90, "bool pr")
del_items(0x80116B94)
SetType(0x80116B94, "unsigned char uc")
del_items(0x80116B95)
SetType(0x80116B95, "unsigned char dc")
del_items(0x80116B96)
SetType(0x80116B96, "unsigned char lc")
del_items(0x80116B97)
SetType(0x80116B97, "unsigned char rc")
del_items(0x80116B98)
SetType(0x80116B98, "char centrestep")
del_items(0x800A6D70)
SetType(0x800A6D70, "struct BIRDSTRUCT BirdList[16]")
del_items(0x80116BA9)
SetType(0x80116BA9, "char hop_height")
del_items(0x80116BAC)
SetType(0x80116BAC, "struct Perch perches[4]")
del_items(0x800A6EF0)
SetType(0x800A6EF0, "struct StrInfo FmvTab[7]")
del_items(0x80116BE8)
SetType(0x80116BE8, "int FeBackX")
del_items(0x80116BEC)
SetType(0x80116BEC, "int FeBackY")
del_items(0x80116BF0)
SetType(0x80116BF0, "int FeBackW")
del_items(0x80116BF4)
SetType(0x80116BF4, "int FeBackH")
del_items(0x80116BF8)
SetType(0x80116BF8, "unsigned char FeFlag")
del_items(0x800A7770)
SetType(0x800A7770, "struct FeStruct FeBuffer[40]")
del_items(0x80117B7C)
SetType(0x80117B7C, "struct FE_CREATE *CStruct")
del_items(0x80116BFC)
SetType(0x80116BFC, "int FeBufferCount")
del_items(0x80116C00)
SetType(0x80116C00, "int FeNoOfPlayers")
del_items(0x80116C04)
SetType(0x80116C04, "int FePlayerNo")
del_items(0x80116C08)
SetType(0x80116C08, "int FeChrClass[2]")
del_items(0x800A7B30)
SetType(0x800A7B30, "char FePlayerName[11][2]")
del_items(0x80116C10)
SetType(0x80116C10, "struct FeTable *FeCurMenu")
del_items(0x80116C14)
SetType(0x80116C14, "unsigned char FePlayerNameFlag[2]")
del_items(0x80116C18)
SetType(0x80116C18, "unsigned long FeCount")
del_items(0x80116C1C)
SetType(0x80116C1C, "int fileselect")
del_items(0x80116C20)
SetType(0x80116C20, "int BookMenu")
del_items(0x80116C24)
SetType(0x80116C24, "int FeAttractMode")
del_items(0x80116C28)
SetType(0x80116C28, "int FMVPress")
del_items(0x80116BC0)
SetType(0x80116BC0, "struct TextDat *FeTData")
del_items(0x80116BC4)
SetType(0x80116BC4, "struct TextDat *FlameTData")
del_items(0x80116BC8)
SetType(0x80116BC8, "unsigned char FeIsAVirgin")
del_items(0x80116BCC)
SetType(0x80116BCC, "int FeMenuDelay")
del_items(0x800A6FD0)
SetType(0x800A6FD0, "struct FeTable DummyMenu")
del_items(0x800A6FEC)
SetType(0x800A6FEC, "struct FeTable FeMainMenu")
del_items(0x800A7008)
SetType(0x800A7008, "struct FeTable FeNewGameMenu")
del_items(0x800A7024)
SetType(0x800A7024, "struct FeTable FeNewP1ClassMenu")
del_items(0x800A7040)
SetType(0x800A7040, "struct FeTable FeNewP1NameMenu")
del_items(0x800A705C)
SetType(0x800A705C, "struct FeTable FeNewP2ClassMenu")
del_items(0x800A7078)
SetType(0x800A7078, "struct FeTable FeNewP2NameMenu")
del_items(0x800A7094)
SetType(0x800A7094, "struct FeTable FeDifficultyMenu")
del_items(0x800A70B0)
SetType(0x800A70B0, "struct FeTable FeBackgroundMenu")
del_items(0x800A70CC)
SetType(0x800A70CC, "struct FeTable FeBook1Menu")
del_items(0x800A70E8)
SetType(0x800A70E8, "struct FeTable FeBook2Menu")
del_items(0x800A7104)
SetType(0x800A7104, "struct FeTable FeLoadCharMenu")
del_items(0x800A7120)
SetType(0x800A7120, "struct FeTable FeLoadChar1Menu")
del_items(0x800A713C)
SetType(0x800A713C, "struct FeTable FeLoadChar2Menu")
del_items(0x80116BD0)
SetType(0x80116BD0, "char *LoadErrorText")
del_items(0x800A7158)
SetType(0x800A7158, "struct FeMenuTable FeMainMenuTable[5]")
del_items(0x800A71D0)
SetType(0x800A71D0, "struct FeMenuTable FeNewGameMenuTable[3]")
del_items(0x800A7218)
SetType(0x800A7218, "struct FeMenuTable FePlayerClassMenuTable[5]")
del_items(0x800A7290)
SetType(0x800A7290, "struct FeMenuTable FeNameEngMenuTable[31]")
del_items(0x800A7578)
SetType(0x800A7578, "struct FeMenuTable FeMemcardMenuTable[3]")
del_items(0x800A75C0)
SetType(0x800A75C0, "struct FeMenuTable FeDifficultyMenuTable[4]")
del_items(0x800A7620)
SetType(0x800A7620, "struct FeMenuTable FeBackgroundMenuTable[4]")
del_items(0x800A7680)
SetType(0x800A7680, "struct FeMenuTable FeBook1MenuTable[5]")
del_items(0x800A76F8)
SetType(0x800A76F8, "struct FeMenuTable FeBook2MenuTable[5]")
del_items(0x80116BDC)
SetType(0x80116BDC, "unsigned long AttractTitleDelay")
del_items(0x80116BE0)
SetType(0x80116BE0, "unsigned long AttractMainDelay")
del_items(0x80116BE4)
SetType(0x80116BE4, "int FMVEndPad")
del_items(0x80116C5C)
SetType(0x80116C5C, "int InCredits")
del_items(0x80116C60)
SetType(0x80116C60, "int CreditTitleNo")
del_items(0x80116C64)
SetType(0x80116C64, "int CreditSubTitleNo")
del_items(0x80116C78)
SetType(0x80116C78, "int card_status[2]")
del_items(0x80116C80)
SetType(0x80116C80, "int card_usable[2]")
del_items(0x80116C88)
SetType(0x80116C88, "int card_files[2]")
del_items(0x80116C90)
SetType(0x80116C90, "int card_changed[2]")
del_items(0x80116D08)
SetType(0x80116D08, "char *AlertTxt")
del_items(0x80116D0C)
SetType(0x80116D0C, "int current_card")
del_items(0x80116D10)
SetType(0x80116D10, "int LoadType")
del_items(0x80116D14)
SetType(0x80116D14, "int McMenuPos")
del_items(0x80116D18)
SetType(0x80116D18, "struct FeTable *McCurMenu")
del_items(0x80116CC4)
SetType(0x80116CC4, "char *OText3")
del_items(0x80116D04)
SetType(0x80116D04, "bool fileinfoflag")
del_items(0x80116CE0)
SetType(0x80116CE0, "char *DiabloGameFile")
del_items(0x80116CA8)
SetType(0x80116CA8, "char *Text3")
del_items(0x80116CC0)
SetType(0x80116CC0, "char *OText2")
del_items(0x80116CC8)
SetType(0x80116CC8, "char *OText4")
del_items(0x80116CCC)
SetType(0x80116CCC, "char *OText5")
del_items(0x80116CD0)
SetType(0x80116CD0, "char *OText7")
del_items(0x80116CD4)
SetType(0x80116CD4, "char *OText8")
del_items(0x80116CD8)
SetType(0x80116CD8, "char *SaveError")
del_items(0x80116CA4)
SetType(0x80116CA4, "char *Text1")
del_items(0x80116CAC)
SetType(0x80116CAC, "char *Text5")
del_items(0x80116CB0)
SetType(0x80116CB0, "char *Text6")
del_items(0x80116CB4)
SetType(0x80116CB4, "char *Text7")
del_items(0x80116CB8)
SetType(0x80116CB8, "char *Text8")
del_items(0x80116CBC)
SetType(0x80116CBC, "char *Text9")
del_items(0x80116CDC)
SetType(0x80116CDC, "char *ContText")
del_items(0x80116CFC)
SetType(0x80116CFC, "char *McState_addr_80116CFC[2]")
del_items(0x80117B80)
SetType(0x80117B80, "int t1")
del_items(0x80117B84)
SetType(0x80117B84, "int t2")
del_items(0x80118548)
SetType(0x80118548, "struct DRAWENV draw[2]")
del_items(0x80118608)
SetType(0x80118608, "struct DecEnv dec")
del_items(0x80117B88)
SetType(0x80117B88, "unsigned long oldHeapbase")
del_items(0x80117B8C)
SetType(0x80117B8C, "struct SndVolume oldVolume")
del_items(0x80117B90)
SetType(0x80117B90, "char *ringName")
del_items(0x80116D48)
SetType(0x80116D48, "struct STRHDR *ringSH")
del_items(0x80116D4C)
SetType(0x80116D4C, "struct cdstreamstruct *FMVStream")
del_items(0x80117B94)
SetType(0x80117B94, "unsigned short *DCTTab")
del_items(0x80116D26)
SetType(0x80116D26, "short firstFrame")
del_items(0x80116D28)
SetType(0x80116D28, "short numSkipped")
del_items(0x80116D2A)
SetType(0x80116D2A, "short prevFrameNum")
del_items(0x80116D2C)
SetType(0x80116D2C, "unsigned short maxRunLevel")
del_items(0x80116D30)
SetType(0x80116D30, "unsigned long *ringBuf")
del_items(0x80116D34)
SetType(0x80116D34, "int ringcount")
del_items(0x80116D38)
SetType(0x80116D38, "int ringpos")
del_items(0x80116D3C)
SetType(0x80116D3C, "int ringsec")
del_items(0x80116D40)
SetType(0x80116D40, "int ringHnd")
del_items(0x80116D44)
SetType(0x80116D44, "bool SecGot")
del_items(0x80116DEC)
SetType(0x80116DEC, "unsigned char *pStatusPanel")
del_items(0x80116DF0)
SetType(0x80116DF0, "unsigned char *pGBoxBuff")
del_items(0x80116DF4)
SetType(0x80116DF4, "unsigned char dropGoldFlag")
del_items(0x80116DF8)
SetType(0x80116DF8, "unsigned char _pinfoflag[2]")
del_items(0x800A8128)
SetType(0x800A8128, "char _infostr[256][2]")
del_items(0x80116DFC)
SetType(0x80116DFC, "char _infoclr[2]")
del_items(0x800A8328)
SetType(0x800A8328, "char tempstr[256]")
del_items(0x80116DFE)
SetType(0x80116DFE, "unsigned char drawhpflag")
del_items(0x80116DFF)
SetType(0x80116DFF, "unsigned char drawmanaflag")
del_items(0x80116E00)
SetType(0x80116E00, "unsigned char chrflag")
del_items(0x80116E01)
SetType(0x80116E01, "unsigned char drawbtnflag")
del_items(0x80116E02)
SetType(0x80116E02, "unsigned char panbtndown")
del_items(0x80116E03)
SetType(0x80116E03, "unsigned char panelflag")
del_items(0x80116E04)
SetType(0x80116E04, "unsigned char chrbtndown")
del_items(0x80116E05)
SetType(0x80116E05, "unsigned char lvlbtndown")
del_items(0x80116E06)
SetType(0x80116E06, "unsigned char sbookflag")
del_items(0x80116E07)
SetType(0x80116E07, "unsigned char talkflag")
del_items(0x80116E08)
SetType(0x80116E08, "int dropGoldValue")
del_items(0x80116E0C)
SetType(0x80116E0C, "int initialDropGoldValue")
del_items(0x80116E10)
SetType(0x80116E10, "int initialDropGoldIndex")
del_items(0x80116E14)
SetType(0x80116E14, "unsigned char *pPanelButtons")
del_items(0x80116E18)
SetType(0x80116E18, "unsigned char *pPanelText")
del_items(0x80116E1C)
SetType(0x80116E1C, "unsigned char *pManaBuff")
del_items(0x80116E20)
SetType(0x80116E20, "unsigned char *pLifeBuff")
del_items(0x80116E24)
SetType(0x80116E24, "unsigned char *pChrPanel")
del_items(0x80116E28)
SetType(0x80116E28, "unsigned char *pChrButtons")
del_items(0x80116E2C)
SetType(0x80116E2C, "unsigned char *pSpellCels")
del_items(0x80118680)
SetType(0x80118680, "char _panelstr[64][8][2]")
del_items(0x80118A80)
SetType(0x80118A80, "int _pstrjust[8][2]")
del_items(0x80117B98)
SetType(0x80117B98, "int _pnumlines[2]")
del_items(0x80116E30)
SetType(0x80116E30, "struct RECT *InfoBoxRect")
del_items(0x80116E34)
SetType(0x80116E34, "struct RECT CSRect")
del_items(0x80117BA8)
SetType(0x80117BA8, "int _pSpell[2]")
del_items(0x80117BB0)
SetType(0x80117BB0, "int _pSplType[2]")
del_items(0x80117BB8)
SetType(0x80117BB8, "unsigned char panbtn[8]")
del_items(0x80116E3C)
SetType(0x80116E3C, "int numpanbtns")
del_items(0x80116E40)
SetType(0x80116E40, "unsigned char *pDurIcons")
del_items(0x80116E44)
SetType(0x80116E44, "unsigned char drawdurflag")
del_items(0x80117BC0)
SetType(0x80117BC0, "unsigned char chrbtn[4]")
del_items(0x80116E45)
SetType(0x80116E45, "unsigned char chrbtnactive")
del_items(0x80116E48)
SetType(0x80116E48, "unsigned char *pSpellBkCel")
del_items(0x80116E4C)
SetType(0x80116E4C, "unsigned char *pSBkBtnCel")
del_items(0x80116E50)
SetType(0x80116E50, "unsigned char *pSBkIconCels")
del_items(0x80116E54)
SetType(0x80116E54, "int sbooktab")
del_items(0x80116E58)
SetType(0x80116E58, "int cur_spel")
del_items(0x80117BC4)
SetType(0x80117BC4, "long talkofs")
del_items(0x80118AD0)
SetType(0x80118AD0, "char sgszTalkMsg[80]")
del_items(0x80117BC8)
SetType(0x80117BC8, "unsigned char sgbTalkSavePos")
del_items(0x80117BC9)
SetType(0x80117BC9, "unsigned char sgbNextTalkSave")
del_items(0x80117BCA)
SetType(0x80117BCA, "unsigned char sgbPlrTalkTbl[2]")
del_items(0x80117BCC)
SetType(0x80117BCC, "unsigned char *pTalkPanel")
del_items(0x80117BD0)
SetType(0x80117BD0, "unsigned char *pMultiBtns")
del_items(0x80117BD4)
SetType(0x80117BD4, "unsigned char *pTalkBtns")
del_items(0x80117BD8)
SetType(0x80117BD8, "unsigned char talkbtndown[3]")
del_items(0x8010D5A0)
SetType(0x8010D5A0, "unsigned char gbFontTransTbl[256]")
del_items(0x8010D4E0)
SetType(0x8010D4E0, "unsigned char fontkern[68]")
del_items(0x800A7B5C)
SetType(0x800A7B5C, "char SpellITbl[37]")
del_items(0x80116D59)
SetType(0x80116D59, "unsigned char DrawLevelUpFlag")
del_items(0x80116D80)
SetType(0x80116D80, "struct TASK *_spselflag[2]")
del_items(0x80116D7C)
SetType(0x80116D7C, "unsigned char spspelstate")
del_items(0x80116DBC)
SetType(0x80116DBC, "bool initchr")
del_items(0x80116D5C)
SetType(0x80116D5C, "int SPLICONNO")
del_items(0x80116D60)
SetType(0x80116D60, "int SPLICONY")
del_items(0x80117BA0)
SetType(0x80117BA0, "int SPLICONRIGHT")
del_items(0x80116D64)
SetType(0x80116D64, "int scx")
del_items(0x80116D68)
SetType(0x80116D68, "int scy")
del_items(0x80116D6C)
SetType(0x80116D6C, "int scx1")
del_items(0x80116D70)
SetType(0x80116D70, "int scy1")
del_items(0x80116D74)
SetType(0x80116D74, "int scx2")
del_items(0x80116D78)
SetType(0x80116D78, "int scy2")
del_items(0x80116D88)
SetType(0x80116D88, "char SpellCol")
del_items(0x800A7B48)
SetType(0x800A7B48, "unsigned char SpellColors[18]")
del_items(0x800A7B84)
SetType(0x800A7B84, "int PanBtnPos[5][8]")
del_items(0x800A7C24)
SetType(0x800A7C24, "char *PanBtnHotKey[8]")
del_items(0x800A7C44)
SetType(0x800A7C44, "unsigned long PanBtnStr[8]")
del_items(0x800A7C64)
SetType(0x800A7C64, "int SpellPages[5][5]")
del_items(0x80116DAC)
SetType(0x80116DAC, "int lus")
del_items(0x80116DB0)
SetType(0x80116DB0, "int CsNo")
del_items(0x80116DB4)
SetType(0x80116DB4, "char plusanim")
del_items(0x80118AC0)
SetType(0x80118AC0, "struct Dialog CSBack")
del_items(0x80116DB8)
SetType(0x80116DB8, "int CS_XOFF")
del_items(0x800A7CC8)
SetType(0x800A7CC8, "struct CSDATA CS_Tab[28]")
del_items(0x80116DC0)
SetType(0x80116DC0, "int NoCSEntries")
del_items(0x80116DC4)
SetType(0x80116DC4, "int SPALOFF")
del_items(0x80116DC8)
SetType(0x80116DC8, "int paloffset1")
del_items(0x80116DCC)
SetType(0x80116DCC, "int paloffset2")
del_items(0x80116DD0)
SetType(0x80116DD0, "int paloffset3")
del_items(0x80116DD4)
SetType(0x80116DD4, "int paloffset4")
del_items(0x80116DD8)
SetType(0x80116DD8, "int pinc1")
del_items(0x80116DDC)
SetType(0x80116DDC, "int pinc2")
del_items(0x80116DE0)
SetType(0x80116DE0, "int pinc3")
del_items(0x80116DE4)
SetType(0x80116DE4, "int pinc4")
del_items(0x80116E6C)
SetType(0x80116E6C, "int _pcurs[2]")
del_items(0x80116E74)
SetType(0x80116E74, "int cursW")
del_items(0x80116E78)
SetType(0x80116E78, "int cursH")
del_items(0x80116E7C)
SetType(0x80116E7C, "int icursW")
del_items(0x80116E80)
SetType(0x80116E80, "int icursH")
del_items(0x80116E84)
SetType(0x80116E84, "int icursW28")
del_items(0x80116E88)
SetType(0x80116E88, "int icursH28")
del_items(0x80116E8C)
SetType(0x80116E8C, "int cursmx")
del_items(0x80116E90)
SetType(0x80116E90, "int cursmy")
del_items(0x80116E94)
SetType(0x80116E94, "int _pcursmonst[2]")
del_items(0x80116E9C)
SetType(0x80116E9C, "char _pcursobj[2]")
del_items(0x80116EA0)
SetType(0x80116EA0, "char _pcursitem[2]")
del_items(0x80116EA4)
SetType(0x80116EA4, "char _pcursinvitem[2]")
del_items(0x80116EA8)
SetType(0x80116EA8, "char _pcursplr[2]")
del_items(0x80116E68)
SetType(0x80116E68, "int sel_data")
del_items(0x800A8428)
SetType(0x800A8428, "struct DeadStruct dead[31]")
del_items(0x80116EAC)
SetType(0x80116EAC, "int spurtndx")
del_items(0x80116EB0)
SetType(0x80116EB0, "int stonendx")
del_items(0x80116EB4)
SetType(0x80116EB4, "unsigned char *pSquareCel")
del_items(0x80116EF4)
SetType(0x80116EF4, "unsigned long ghInst")
del_items(0x80116EF8)
SetType(0x80116EF8, "unsigned char svgamode")
del_items(0x80116EFC)
SetType(0x80116EFC, "int MouseX")
del_items(0x80116F00)
SetType(0x80116F00, "int MouseY")
del_items(0x80116F04)
SetType(0x80116F04, "long gv1")
del_items(0x80116F08)
SetType(0x80116F08, "long gv2")
del_items(0x80116F0C)
SetType(0x80116F0C, "long gv3")
del_items(0x80116F10)
SetType(0x80116F10, "long gv4")
del_items(0x80116F14)
SetType(0x80116F14, "long gv5")
del_items(0x80116F18)
SetType(0x80116F18, "unsigned char gbProcessPlayers")
del_items(0x800A859C)
SetType(0x800A859C, "int DebugMonsters[10]")
del_items(0x800A85C4)
SetType(0x800A85C4, "unsigned long glSeedTbl[17]")
del_items(0x800A8608)
SetType(0x800A8608, "int gnLevelTypeTbl[17]")
del_items(0x80116F19)
SetType(0x80116F19, "unsigned char gbDoEnding")
del_items(0x80116F1A)
SetType(0x80116F1A, "unsigned char gbRunGame")
del_items(0x80116F1B)
SetType(0x80116F1B, "unsigned char gbRunGameResult")
del_items(0x80116F1C)
SetType(0x80116F1C, "unsigned char gbGameLoopStartup")
del_items(0x80118B20)
SetType(0x80118B20, "int glEndSeed[17]")
del_items(0x80118B70)
SetType(0x80118B70, "int glMid1Seed[17]")
del_items(0x80118BC0)
SetType(0x80118BC0, "int glMid2Seed[17]")
del_items(0x80118C10)
SetType(0x80118C10, "int glMid3Seed[17]")
del_items(0x80117BDC)
SetType(0x80117BDC, "long *sg_previousFilter")
del_items(0x800A864C)
SetType(0x800A864C, "int CreateEnv[12]")
del_items(0x80116F20)
SetType(0x80116F20, "int Passedlvldir")
del_items(0x80116F24)
SetType(0x80116F24, "unsigned char *TempStack")
del_items(0x80116EC4)
SetType(0x80116EC4, "unsigned long ghMainWnd")
del_items(0x80116EC8)
SetType(0x80116EC8, "unsigned char fullscreen")
del_items(0x80116ECC)
SetType(0x80116ECC, "int force_redraw")
del_items(0x80116EE0)
SetType(0x80116EE0, "unsigned char PauseMode")
del_items(0x80116EE1)
SetType(0x80116EE1, "unsigned char FriendlyMode")
del_items(0x80116ED1)
SetType(0x80116ED1, "unsigned char visiondebug")
del_items(0x80116ED3)
SetType(0x80116ED3, "unsigned char light4flag")
del_items(0x80116ED4)
SetType(0x80116ED4, "unsigned char leveldebug")
del_items(0x80116ED5)
SetType(0x80116ED5, "unsigned char monstdebug")
del_items(0x80116EDC)
SetType(0x80116EDC, "int debugmonsttypes")
del_items(0x80116ED0)
SetType(0x80116ED0, "unsigned char cineflag")
del_items(0x80116ED2)
SetType(0x80116ED2, "unsigned char scrollflag")
del_items(0x80116ED6)
SetType(0x80116ED6, "unsigned char trigdebug")
del_items(0x80116ED8)
SetType(0x80116ED8, "int setseed")
del_items(0x80116EE4)
SetType(0x80116EE4, "int sgnTimeoutCurs")
del_items(0x80116EE8)
SetType(0x80116EE8, "unsigned char sgbMouseDown")
del_items(0x800A8D18)
SetType(0x800A8D18, "struct TownerStruct towner[16]")
del_items(0x80116F3C)
SetType(0x80116F3C, "int numtowners")
del_items(0x80116F40)
SetType(0x80116F40, "unsigned char storeflag")
del_items(0x80116F41)
SetType(0x80116F41, "unsigned char boyloadflag")
del_items(0x80116F42)
SetType(0x80116F42, "unsigned char bannerflag")
del_items(0x80116F44)
SetType(0x80116F44, "unsigned char *pCowCels")
del_items(0x80117BE0)
SetType(0x80117BE0, "unsigned long sgdwCowClicks")
del_items(0x80117BE4)
SetType(0x80117BE4, "int sgnCowMsg")
del_items(0x800A8A58)
SetType(0x800A8A58, "int Qtalklist[16][11]")
del_items(0x80116F34)
SetType(0x80116F34, "unsigned long CowPlaying")
del_items(0x800A867C)
SetType(0x800A867C, "char AnimOrder[148][6]")
del_items(0x800A89F4)
SetType(0x800A89F4, "int TownCowX[3]")
del_items(0x800A8A00)
SetType(0x800A8A00, "int TownCowY[3]")
del_items(0x800A8A0C)
SetType(0x800A8A0C, "int TownCowDir[3]")
del_items(0x800A8A18)
SetType(0x800A8A18, "int cowoffx[8]")
del_items(0x800A8A38)
SetType(0x800A8A38, "int cowoffy[8]")
del_items(0x80116F5C)
SetType(0x80116F5C, "int sfxdelay")
del_items(0x80116F60)
SetType(0x80116F60, "int sfxdnum")
del_items(0x80116F54)
SetType(0x80116F54, "struct SFXHDR *sghStream")
del_items(0x800A9B18)
SetType(0x800A9B18, "struct TSFX sgSFX[979]")
del_items(0x80116F58)
SetType(0x80116F58, "struct TSFX *sgpStreamSFX")
del_items(0x80116F64)
SetType(0x80116F64, "long orgseed")
del_items(0x80117BE8)
SetType(0x80117BE8, "long sglGameSeed")
del_items(0x80116F68)
SetType(0x80116F68, "int SeedCount")
del_items(0x80117BEC)
SetType(0x80117BEC, "struct CCritSect sgMemCrit")
del_items(0x80117BF0)
SetType(0x80117BF0, "int sgnWidth")
del_items(0x80116F76)
SetType(0x80116F76, "char msgflag")
del_items(0x80116F77)
SetType(0x80116F77, "char msgdelay")
del_items(0x800AAB14)
SetType(0x800AAB14, "char msgtable[80]")
del_items(0x800AAA64)
SetType(0x800AAA64, "int MsgStrings[44]")
del_items(0x80116F75)
SetType(0x80116F75, "char msgcnt")
del_items(0x80117BF4)
SetType(0x80117BF4, "unsigned long sgdwProgress")
del_items(0x80117BF8)
SetType(0x80117BF8, "unsigned long sgdwXY")
del_items(0x800AAB64)
SetType(0x800AAB64, "unsigned char AllItemsUseable[157]")
del_items(0x8010D9BC)
SetType(0x8010D9BC, "struct ItemDataStruct AllItemsList[157]")
del_items(0x8010ED5C)
SetType(0x8010ED5C, "struct PLStruct PL_Prefix[84]")
del_items(0x8010FA7C)
SetType(0x8010FA7C, "struct PLStruct PL_Suffix[96]")
del_items(0x8011097C)
SetType(0x8011097C, "struct UItemStruct UniqueItemList[91]")
del_items(0x800AAD78)
SetType(0x800AAD78, "struct ItemStruct item[128]")
del_items(0x800AF778)
SetType(0x800AF778, "char itemactive[127]")
del_items(0x800AF7F8)
SetType(0x800AF7F8, "char itemavail[127]")
del_items(0x800AF878)
SetType(0x800AF878, "unsigned char UniqueItemFlag[128]")
del_items(0x80116FB8)
SetType(0x80116FB8, "unsigned char uitemflag")
del_items(0x80117BFC)
SetType(0x80117BFC, "int tem")
del_items(0x80118C58)
SetType(0x80118C58, "struct ItemStruct curruitem")
del_items(0x80118CF8)
SetType(0x80118CF8, "unsigned char itemhold[3][3]")
del_items(0x80116FBC)
SetType(0x80116FBC, "int ScrollType")
del_items(0x800AF8F8)
SetType(0x800AF8F8, "char ItemStr[128]")
del_items(0x80116F90)
SetType(0x80116F90, "long numitems")
del_items(0x80116F94)
SetType(0x80116F94, "int gnNumGetRecords")
del_items(0x800AACD4)
SetType(0x800AACD4, "int ItemInvSnds[35]")
del_items(0x800AAC04)
SetType(0x800AAC04, "unsigned char ItemCAnimTbl[169]")
del_items(0x801127C0)
SetType(0x801127C0, "short Item2Frm[35]")
del_items(0x800AACB0)
SetType(0x800AACB0, "unsigned char ItemAnimLs[35]")
del_items(0x80116F98)
SetType(0x80116F98, "int *ItemAnimSnds")
del_items(0x80116F9C)
SetType(0x80116F9C, "int idoppely")
del_items(0x80116FA0)
SetType(0x80116FA0, "int ScrollFlag")
del_items(0x800AAD60)
SetType(0x800AAD60, "int premiumlvladd[6]")
del_items(0x800B0724)
SetType(0x800B0724, "struct LightListStruct2 LightList[40]")
del_items(0x800B0864)
SetType(0x800B0864, "unsigned char lightactive[40]")
del_items(0x80116FD0)
SetType(0x80116FD0, "int numlights")
del_items(0x80116FD4)
SetType(0x80116FD4, "char lightmax")
del_items(0x800B088C)
SetType(0x800B088C, "struct LightListStruct VisionList[32]")
del_items(0x80116FD8)
SetType(0x80116FD8, "int numvision")
del_items(0x80116FDC)
SetType(0x80116FDC, "unsigned char dovision")
del_items(0x80116FE0)
SetType(0x80116FE0, "int visionid")
del_items(0x80117C00)
SetType(0x80117C00, "int disp_mask")
del_items(0x80117C04)
SetType(0x80117C04, "int weird")
del_items(0x80117C08)
SetType(0x80117C08, "int disp_tab_r")
del_items(0x80117C0C)
SetType(0x80117C0C, "int dispy_r")
del_items(0x80117C10)
SetType(0x80117C10, "int disp_tab_g")
del_items(0x80117C14)
SetType(0x80117C14, "int dispy_g")
del_items(0x80117C18)
SetType(0x80117C18, "int disp_tab_b")
del_items(0x80117C1C)
SetType(0x80117C1C, "int dispy_b")
del_items(0x80117C20)
SetType(0x80117C20, "int radius")
del_items(0x80117C24)
SetType(0x80117C24, "int bright")
del_items(0x80118D08)
SetType(0x80118D08, "unsigned char mult_tab[128]")
del_items(0x80116FC0)
SetType(0x80116FC0, "int lightflag")
del_items(0x800B0438)
SetType(0x800B0438, "unsigned char vCrawlTable[30][23]")
del_items(0x800B06EC)
SetType(0x800B06EC, "unsigned char RadiusAdj[23]")
del_items(0x800AF978)
SetType(0x800AF978, "char CrawlTable[2749]")
del_items(0x80116FC4)
SetType(0x80116FC4, "int restore_r")
del_items(0x80116FC8)
SetType(0x80116FC8, "int restore_g")
del_items(0x80116FCC)
SetType(0x80116FCC, "int restore_b")
del_items(0x800B0704)
SetType(0x800B0704, "char radius_tab[16]")
del_items(0x800B0714)
SetType(0x800B0714, "char bright_tab[16]")
del_items(0x80117002)
SetType(0x80117002, "unsigned char qtextflag")
del_items(0x80117004)
SetType(0x80117004, "int qtextSpd")
del_items(0x80117C28)
SetType(0x80117C28, "unsigned char *pMedTextCels")
del_items(0x80117C2C)
SetType(0x80117C2C, "unsigned char *pTextBoxCels")
del_items(0x80117C30)
SetType(0x80117C30, "char *qtextptr")
del_items(0x80117C34)
SetType(0x80117C34, "int qtexty")
del_items(0x80117C38)
SetType(0x80117C38, "unsigned long qtextDelay")
del_items(0x80117C3C)
SetType(0x80117C3C, "unsigned long sgLastScroll")
del_items(0x80117C40)
SetType(0x80117C40, "unsigned long scrolltexty")
del_items(0x80117C44)
SetType(0x80117C44, "long sglMusicVolumeSave")
del_items(0x80116FF0)
SetType(0x80116FF0, "bool qtbodge")
del_items(0x800B0A4C)
SetType(0x800B0A4C, "struct Dialog QBack")
del_items(0x80117001)
SetType(0x80117001, "unsigned char CDFlip")
del_items(0x800B0A5C)
SetType(0x800B0A5C, "struct MissileData missiledata[68]")
del_items(0x800B11CC)
SetType(0x800B11CC, "struct MisFileData misfiledata[47]")
del_items(0x800B10BC)
SetType(0x800B10BC, "void (*MissPrintRoutines[68])()")
del_items(0x800B12B8)
SetType(0x800B12B8, "struct DLevel sgLevels[17]")
del_items(0x800C8500)
SetType(0x800C8500, "struct LocalLevel sgLocals[17]")
del_items(0x80118D88)
SetType(0x80118D88, "struct DJunk sgJunk")
del_items(0x80117C49)
SetType(0x80117C49, "unsigned char sgbRecvCmd")
del_items(0x80117C4C)
SetType(0x80117C4C, "unsigned long sgdwRecvOffset")
del_items(0x80117C50)
SetType(0x80117C50, "unsigned char sgbDeltaChunks")
del_items(0x80117C51)
SetType(0x80117C51, "unsigned char sgbDeltaChanged")
del_items(0x80117C54)
SetType(0x80117C54, "unsigned long sgdwOwnerWait")
del_items(0x80117C58)
SetType(0x80117C58, "struct TMegaPkt *sgpMegaPkt")
del_items(0x80117C5C)
SetType(0x80117C5C, "struct TMegaPkt *sgpCurrPkt")
del_items(0x80117C60)
SetType(0x80117C60, "int sgnCurrMegaPlayer")
del_items(0x8011701D)
SetType(0x8011701D, "unsigned char deltaload")
del_items(0x8011701E)
SetType(0x8011701E, "unsigned char gbBufferMsgs")
del_items(0x80117020)
SetType(0x80117020, "unsigned long dwRecCount")
del_items(0x80117036)
SetType(0x80117036, "unsigned char gbMaxPlayers")
del_items(0x80117037)
SetType(0x80117037, "unsigned char gbActivePlayers")
del_items(0x80117038)
SetType(0x80117038, "unsigned char gbGameDestroyed")
del_items(0x80117039)
SetType(0x80117039, "unsigned char gbDeltaSender")
del_items(0x8011703A)
SetType(0x8011703A, "unsigned char gbSelectProvider")
del_items(0x8011703B)
SetType(0x8011703B, "unsigned char gbSomebodyWonGameKludge")
del_items(0x80117C64)
SetType(0x80117C64, "unsigned char sgbSentThisCycle")
del_items(0x80117C68)
SetType(0x80117C68, "unsigned long sgdwGameLoops")
del_items(0x80117C6C)
SetType(0x80117C6C, "unsigned short sgwPackPlrOffsetTbl[2]")
del_items(0x80117C70)
SetType(0x80117C70, "unsigned char sgbPlayerLeftGameTbl[2]")
del_items(0x80117C74)
SetType(0x80117C74, "unsigned long sgdwPlayerLeftReasonTbl[2]")
del_items(0x80117C7C)
SetType(0x80117C7C, "unsigned char sgbSendDeltaTbl[2]")
del_items(0x80117C84)
SetType(0x80117C84, "struct _gamedata sgGameInitInfo")
del_items(0x80117C8C)
SetType(0x80117C8C, "unsigned char sgbTimeout")
del_items(0x80117C90)
SetType(0x80117C90, "long sglTimeoutStart")
del_items(0x80117030)
SetType(0x80117030, "char gszVersionNumber[5]")
del_items(0x80117035)
SetType(0x80117035, "unsigned char sgbNetInited")
del_items(0x800C9248)
SetType(0x800C9248, "int ObjTypeConv[113]")
del_items(0x800C940C)
SetType(0x800C940C, "struct ObjDataStruct AllObjects[99]")
del_items(0x80112E88)
SetType(0x80112E88, "struct OBJ_LOAD_INFO ObjMasterLoadList[56]")
del_items(0x800C9BEC)
SetType(0x800C9BEC, "struct ObjectStruct object[127]")
del_items(0x8011705C)
SetType(0x8011705C, "long numobjects")
del_items(0x800CB1C0)
SetType(0x800CB1C0, "char objectactive[127]")
del_items(0x800CB240)
SetType(0x800CB240, "char objectavail[127]")
del_items(0x80117060)
SetType(0x80117060, "unsigned char InitObjFlag")
del_items(0x80117064)
SetType(0x80117064, "int trapid")
del_items(0x800CB2C0)
SetType(0x800CB2C0, "char ObjFileList[40]")
del_items(0x80117068)
SetType(0x80117068, "int trapdir")
del_items(0x8011706C)
SetType(0x8011706C, "int leverid")
del_items(0x80117054)
SetType(0x80117054, "int numobjfiles")
del_items(0x800C9B04)
SetType(0x800C9B04, "int bxadd[8]")
del_items(0x800C9B24)
SetType(0x800C9B24, "int byadd[8]")
del_items(0x800C9BAC)
SetType(0x800C9BAC, "char shrineavail[26]")
del_items(0x800C9B44)
SetType(0x800C9B44, "int shrinestrs[26]")
del_items(0x800C9BC8)
SetType(0x800C9BC8, "int StoryBookName[9]")
del_items(0x80117058)
SetType(0x80117058, "int myscale")
del_items(0x80117080)
SetType(0x80117080, "unsigned char gbValidSaveFile")
del_items(0x8011707C)
SetType(0x8011707C, "bool DoLoadedChar")
del_items(0x800CB4E0)
SetType(0x800CB4E0, "struct PlayerStruct plr[2]")
del_items(0x801170A0)
SetType(0x801170A0, "int myplr")
del_items(0x801170A4)
SetType(0x801170A4, "int deathdelay")
del_items(0x801170A8)
SetType(0x801170A8, "unsigned char deathflag")
del_items(0x801170A9)
SetType(0x801170A9, "char light_rad")
del_items(0x80117098)
SetType(0x80117098, "char light_level[5]")
del_items(0x800CB3D8)
SetType(0x800CB3D8, "int MaxStats[4][3]")
del_items(0x80117090)
SetType(0x80117090, "int PlrStructSize")
del_items(0x80117094)
SetType(0x80117094, "int ItemStructSize")
del_items(0x800CB2E8)
SetType(0x800CB2E8, "int plrxoff[9]")
del_items(0x800CB30C)
SetType(0x800CB30C, "int plryoff[9]")
del_items(0x800CB330)
SetType(0x800CB330, "int plrxoff2[9]")
del_items(0x800CB354)
SetType(0x800CB354, "int plryoff2[9]")
del_items(0x800CB378)
SetType(0x800CB378, "char PlrGFXAnimLens[11][3]")
del_items(0x800CB39C)
SetType(0x800CB39C, "int StrengthTbl[3]")
del_items(0x800CB3A8)
SetType(0x800CB3A8, "int MagicTbl[3]")
del_items(0x800CB3B4)
SetType(0x800CB3B4, "int DexterityTbl[3]")
del_items(0x800CB3C0)
SetType(0x800CB3C0, "int VitalityTbl[3]")
del_items(0x800CB3CC)
SetType(0x800CB3CC, "int ToBlkTbl[3]")
del_items(0x800CB408)
SetType(0x800CB408, "long ExpLvlsTbl[51]")
del_items(0x800CFBB8)
SetType(0x800CFBB8, "struct QuestStruct quests[16]")
del_items(0x801170E4)
SetType(0x801170E4, "unsigned char *pQLogCel")
del_items(0x801170E8)
SetType(0x801170E8, "int ReturnLvlX")
del_items(0x801170EC)
SetType(0x801170EC, "int ReturnLvlY")
del_items(0x801170F0)
SetType(0x801170F0, "int ReturnLvl")
del_items(0x801170F4)
SetType(0x801170F4, "int ReturnLvlT")
del_items(0x801170F8)
SetType(0x801170F8, "int qfade")
del_items(0x801170FC)
SetType(0x801170FC, "unsigned char rporttest")
del_items(0x80117100)
SetType(0x80117100, "int qline")
del_items(0x80117104)
SetType(0x80117104, "int numqlines")
del_items(0x80117108)
SetType(0x80117108, "int qtopline")
del_items(0x80118DA8)
SetType(0x80118DA8, "int qlist[16]")
del_items(0x80117C94)
SetType(0x80117C94, "struct RECT QSRect")
del_items(0x801170B5)
SetType(0x801170B5, "unsigned char questlog")
del_items(0x800CFA80)
SetType(0x800CFA80, "struct QuestData questlist[16]")
del_items(0x801170B8)
SetType(0x801170B8, "int ALLQUESTS")
del_items(0x800CFB94)
SetType(0x800CFB94, "int QuestGroup1[3]")
del_items(0x800CFBA0)
SetType(0x800CFBA0, "int QuestGroup2[3]")
del_items(0x800CFBAC)
SetType(0x800CFBAC, "int QuestGroup3[3]")
del_items(0x801170CC)
SetType(0x801170CC, "int QuestGroup4[2]")
del_items(0x801170BC)
SetType(0x801170BC, "char questxoff[7]")
del_items(0x801170C4)
SetType(0x801170C4, "char questyoff[7]")
del_items(0x800CFB80)
SetType(0x800CFB80, "int questtrigstr[5]")
del_items(0x801170D4)
SetType(0x801170D4, "int QS_PX")
del_items(0x801170D8)
SetType(0x801170D8, "int QS_PY")
del_items(0x801170DC)
SetType(0x801170DC, "int QS_PW")
del_items(0x801170E0)
SetType(0x801170E0, "int QS_PH")
del_items(0x80118DE8)
SetType(0x80118DE8, "struct Dialog QSBack")
del_items(0x800CFCF8)
SetType(0x800CFCF8, "struct SpellData spelldata[37]")
del_items(0x80117147)
SetType(0x80117147, "char stextflag")
del_items(0x800D0550)
SetType(0x800D0550, "struct ItemStruct smithitem[20]")
del_items(0x800D10E0)
SetType(0x800D10E0, "struct ItemStruct premiumitem[6]")
del_items(0x80117148)
SetType(0x80117148, "int numpremium")
del_items(0x8011714C)
SetType(0x8011714C, "int premiumlevel")
del_items(0x800D1458)
SetType(0x800D1458, "struct ItemStruct witchitem[20]")
del_items(0x800D1FE8)
SetType(0x800D1FE8, "struct ItemStruct boyitem")
del_items(0x80117150)
SetType(0x80117150, "int boylevel")
del_items(0x800D207C)
SetType(0x800D207C, "struct ItemStruct golditem")
del_items(0x800D2110)
SetType(0x800D2110, "struct ItemStruct healitem[20]")
del_items(0x80117154)
SetType(0x80117154, "char stextsize")
del_items(0x80117155)
SetType(0x80117155, "unsigned char stextscrl")
del_items(0x80117C9C)
SetType(0x80117C9C, "int stextsel")
del_items(0x80117CA0)
SetType(0x80117CA0, "int stextlhold")
del_items(0x80117CA4)
SetType(0x80117CA4, "int stextshold")
del_items(0x80117CA8)
SetType(0x80117CA8, "int stextvhold")
del_items(0x80117CAC)
SetType(0x80117CAC, "int stextsval")
del_items(0x80117CB0)
SetType(0x80117CB0, "int stextsmax")
del_items(0x80117CB4)
SetType(0x80117CB4, "int stextup")
del_items(0x80117CB8)
SetType(0x80117CB8, "int stextdown")
del_items(0x80117CBC)
SetType(0x80117CBC, "char stextscrlubtn")
del_items(0x80117CBD)
SetType(0x80117CBD, "char stextscrldbtn")
del_items(0x80117CBE)
SetType(0x80117CBE, "char SItemListFlag")
del_items(0x80118DF8)
SetType(0x80118DF8, "struct STextStruct stext[24]")
del_items(0x800D2CA0)
SetType(0x800D2CA0, "struct ItemStruct storehold[48]")
del_items(0x800D4860)
SetType(0x800D4860, "char storehidx[48]")
del_items(0x80117CC0)
SetType(0x80117CC0, "int storenumh")
del_items(0x80117CC4)
SetType(0x80117CC4, "int gossipstart")
del_items(0x80117CC8)
SetType(0x80117CC8, "int gossipend")
del_items(0x80117CCC)
SetType(0x80117CCC, "struct RECT StoreBackRect")
del_items(0x80117CD4)
SetType(0x80117CD4, "int talker")
del_items(0x80117130)
SetType(0x80117130, "unsigned char *pSTextBoxCels")
del_items(0x80117134)
SetType(0x80117134, "unsigned char *pSTextSlidCels")
del_items(0x80117138)
SetType(0x80117138, "int *SStringY")
del_items(0x800D047C)
SetType(0x800D047C, "struct Dialog SBack")
del_items(0x800D048C)
SetType(0x800D048C, "int SStringYNorm[20]")
del_items(0x800D04DC)
SetType(0x800D04DC, "int SStringYBuy[20]")
del_items(0x800D052C)
SetType(0x800D052C, "int talkname[9]")
del_items(0x80117146)
SetType(0x80117146, "unsigned char InStoreFlag")
del_items(0x80113F10)
SetType(0x80113F10, "struct TextDataStruct alltext[269]")
del_items(0x80117164)
SetType(0x80117164, "unsigned long gdwAllTextEntries")
del_items(0x80117CD8)
SetType(0x80117CD8, "unsigned char *P3Tiles")
del_items(0x80117174)
SetType(0x80117174, "int tile")
del_items(0x80117184)
SetType(0x80117184, "unsigned char _trigflag[2]")
del_items(0x800D4AC8)
SetType(0x800D4AC8, "struct TriggerStruct trigs[5]")
del_items(0x80117188)
SetType(0x80117188, "int numtrigs")
del_items(0x8011718C)
SetType(0x8011718C, "unsigned char townwarps[3]")
del_items(0x80117190)
SetType(0x80117190, "int TWarpFrom")
del_items(0x800D4890)
SetType(0x800D4890, "int TownDownList[11]")
del_items(0x800D48BC)
SetType(0x800D48BC, "int TownWarp1List[13]")
del_items(0x800D48F0)
SetType(0x800D48F0, "int L1UpList[12]")
del_items(0x800D4920)
SetType(0x800D4920, "int L1DownList[10]")
del_items(0x800D4948)
SetType(0x800D4948, "int L2UpList[3]")
del_items(0x800D4954)
SetType(0x800D4954, "int L2DownList[5]")
del_items(0x800D4968)
SetType(0x800D4968, "int L2TWarpUpList[3]")
del_items(0x800D4974)
SetType(0x800D4974, "int L3UpList[15]")
del_items(0x800D49B0)
SetType(0x800D49B0, "int L3DownList[9]")
del_items(0x800D49D4)
SetType(0x800D49D4, "int L3TWarpUpList[14]")
del_items(0x800D4A0C)
SetType(0x800D4A0C, "int L4UpList[4]")
del_items(0x800D4A1C)
SetType(0x800D4A1C, "int L4DownList[6]")
del_items(0x800D4A34)
SetType(0x800D4A34, "int L4TWarpUpList[4]")
del_items(0x800D4A44)
SetType(0x800D4A44, "int L4PentaList[33]")
del_items(0x80114CA0)
SetType(0x80114CA0, "char cursoff[10]")
del_items(0x801171AA)
SetType(0x801171AA, "unsigned char gbMusicOn")
del_items(0x801171AB)
SetType(0x801171AB, "unsigned char gbSoundOn")
del_items(0x801171A9)
SetType(0x801171A9, "unsigned char gbSndInited")
del_items(0x801171B0)
SetType(0x801171B0, "long sglMasterVolume")
del_items(0x801171B4)
SetType(0x801171B4, "long sglMusicVolume")
del_items(0x801171B8)
SetType(0x801171B8, "long sglSoundVolume")
del_items(0x801171BC)
SetType(0x801171BC, "long sglSpeechVolume")
del_items(0x801171AC)
SetType(0x801171AC, "unsigned char gbDupSounds")
del_items(0x801171C0)
SetType(0x801171C0, "int sgnMusicTrack")
del_items(0x801171C4)
SetType(0x801171C4, "struct SFXHDR *sghMusic")
del_items(0x80114D3C)
SetType(0x80114D3C, "unsigned short sgszMusicTracks[6]")
del_items(0x801171E8)
SetType(0x801171E8, "int _pcurr_inv[2]")
del_items(0x800D4B18)
SetType(0x800D4B18, "struct found_objects _pfind_list[10][2]")
del_items(0x801171F0)
SetType(0x801171F0, "char _pfind_index[2]")
del_items(0x801171F4)
SetType(0x801171F4, "char _pfindx[2]")
del_items(0x801171F8)
SetType(0x801171F8, "char _pfindy[2]")
del_items(0x801171FA)
SetType(0x801171FA, "unsigned char automapmoved")
del_items(0x801171DC)
SetType(0x801171DC, "unsigned char flyflag")
del_items(0x801171D4)
SetType(0x801171D4, "char (*pad_styles[2])()")
del_items(0x801171DD)
SetType(0x801171DD, "char speed_type")
del_items(0x801171DE)
SetType(0x801171DE, "char sel_speed")
del_items(0x80117CDC)
SetType(0x80117CDC, "unsigned long (*CurrentProc)()")
del_items(0x80114EB8)
SetType(0x80114EB8, "struct MESSAGE_STR AllMsgs[10]")
del_items(0x80117228)
SetType(0x80117228, "int NumOfStrings")
del_items(0x801171FC)
SetType(0x801171FC, "enum LANG_TYPE LanguageType")
del_items(0x80117200)
SetType(0x80117200, "long hndText")
del_items(0x80117204)
SetType(0x80117204, "char **TextPtr")
del_items(0x80117208)
SetType(0x80117208, "enum LANG_DB_NO LangDbNo")
del_items(0x80117238)
SetType(0x80117238, "struct TextDat *MissDat")
del_items(0x8011723C)
SetType(0x8011723C, "int CharFade")
del_items(0x80117240)
SetType(0x80117240, "int rotateness")
del_items(0x80117244)
SetType(0x80117244, "int spiralling_shape")
del_items(0x80117248)
SetType(0x80117248, "int down")
del_items(0x800D4B68)
SetType(0x800D4B68, "char MlTab[16]")
del_items(0x800D4B78)
SetType(0x800D4B78, "char QlTab[16]")
del_items(0x800D4B88)
SetType(0x800D4B88, "struct POLY_FT4 *(*ObjPrintFuncs[98])()")
del_items(0x80117264)
SetType(0x80117264, "int MyXoff1")
del_items(0x80117268)
SetType(0x80117268, "int MyYoff1")
del_items(0x8011726C)
SetType(0x8011726C, "int MyXoff2")
del_items(0x80117270)
SetType(0x80117270, "int MyYoff2")
del_items(0x80117280)
SetType(0x80117280, "bool iscflag")
del_items(0x8011728D)
SetType(0x8011728D, "unsigned char sgbFadedIn")
del_items(0x8011728E)
SetType(0x8011728E, "unsigned char screenbright")
del_items(0x80117290)
SetType(0x80117290, "int faderate")
del_items(0x80117294)
SetType(0x80117294, "bool fading")
del_items(0x801172B0)
SetType(0x801172B0, "unsigned char AmShiftTab[8]")
del_items(0x80117CE0)
SetType(0x80117CE0, "unsigned char *tbuff")
del_items(0x80117CE4)
SetType(0x80117CE4, "unsigned char HR1")
del_items(0x80117CE5)
SetType(0x80117CE5, "unsigned char HR2")
del_items(0x80117CE6)
SetType(0x80117CE6, "unsigned char HR3")
del_items(0x80117CE7)
SetType(0x80117CE7, "unsigned char VR1")
del_items(0x80117CE8)
SetType(0x80117CE8, "unsigned char VR2")
del_items(0x80117CE9)
SetType(0x80117CE9, "unsigned char VR3")
del_items(0x80117324)
SetType(0x80117324, "struct NODE *pHallList")
del_items(0x80117328)
SetType(0x80117328, "int nRoomCnt")
del_items(0x8011732C)
SetType(0x8011732C, "int nSx1")
del_items(0x80117330)
SetType(0x80117330, "int nSy1")
del_items(0x80117334)
SetType(0x80117334, "int nSx2")
del_items(0x80117338)
SetType(0x80117338, "int nSy2")
del_items(0x801172DC)
SetType(0x801172DC, "int Area_Min")
del_items(0x801172E0)
SetType(0x801172E0, "int Room_Max")
del_items(0x801172E4)
SetType(0x801172E4, "int Room_Min")
del_items(0x801172E8)
SetType(0x801172E8, "unsigned char BIG3[6]")
del_items(0x801172F0)
SetType(0x801172F0, "unsigned char BIG4[6]")
del_items(0x801172F8)
SetType(0x801172F8, "unsigned char BIG6[6]")
del_items(0x80117300)
SetType(0x80117300, "unsigned char BIG7[6]")
del_items(0x80117308)
SetType(0x80117308, "unsigned char RUINS1[4]")
del_items(0x8011730C)
SetType(0x8011730C, "unsigned char RUINS2[4]")
del_items(0x80117310)
SetType(0x80117310, "unsigned char RUINS3[4]")
del_items(0x80117314)
SetType(0x80117314, "unsigned char RUINS4[4]")
del_items(0x80117318)
SetType(0x80117318, "unsigned char RUINS5[4]")
del_items(0x8011731C)
SetType(0x8011731C, "unsigned char RUINS6[4]")
del_items(0x80117320)
SetType(0x80117320, "unsigned char RUINS7[4]")
del_items(0x80117CEC)
SetType(0x80117CEC, "int abyssx")
del_items(0x80117CF0)
SetType(0x80117CF0, "unsigned char lavapool")
del_items(0x801173C4)
SetType(0x801173C4, "int lockoutcnt")
del_items(0x80117348)
SetType(0x80117348, "unsigned char L3TITE12[6]")
del_items(0x80117350)
SetType(0x80117350, "unsigned char L3TITE13[6]")
del_items(0x80117358)
SetType(0x80117358, "unsigned char L3CREV1[6]")
del_items(0x80117360)
SetType(0x80117360, "unsigned char L3CREV2[6]")
del_items(0x80117368)
SetType(0x80117368, "unsigned char L3CREV3[6]")
del_items(0x80117370)
SetType(0x80117370, "unsigned char L3CREV4[6]")
del_items(0x80117378)
SetType(0x80117378, "unsigned char L3CREV5[6]")
del_items(0x80117380)
SetType(0x80117380, "unsigned char L3CREV6[6]")
del_items(0x80117388)
SetType(0x80117388, "unsigned char L3CREV7[6]")
del_items(0x80117390)
SetType(0x80117390, "unsigned char L3CREV8[6]")
del_items(0x80117398)
SetType(0x80117398, "unsigned char L3CREV9[6]")
del_items(0x801173A0)
SetType(0x801173A0, "unsigned char L3CREV10[6]")
del_items(0x801173A8)
SetType(0x801173A8, "unsigned char L3CREV11[6]")
del_items(0x801173B0)
SetType(0x801173B0, "unsigned char L3XTRA1[4]")
del_items(0x801173B4)
SetType(0x801173B4, "unsigned char L3XTRA2[4]")
del_items(0x801173B8)
SetType(0x801173B8, "unsigned char L3XTRA3[4]")
del_items(0x801173BC)
SetType(0x801173BC, "unsigned char L3XTRA4[4]")
del_items(0x801173C0)
SetType(0x801173C0, "unsigned char L3XTRA5[4]")
del_items(0x801173C8)
SetType(0x801173C8, "int diabquad1x")
del_items(0x801173CC)
SetType(0x801173CC, "int diabquad2x")
del_items(0x801173D0)
SetType(0x801173D0, "int diabquad3x")
del_items(0x801173D4)
SetType(0x801173D4, "int diabquad4x")
del_items(0x801173D8)
SetType(0x801173D8, "int diabquad1y")
del_items(0x801173DC)
SetType(0x801173DC, "int diabquad2y")
del_items(0x801173E0)
SetType(0x801173E0, "int diabquad3y")
del_items(0x801173E4)
SetType(0x801173E4, "int diabquad4y")
del_items(0x801173E8)
SetType(0x801173E8, "int SP4x1")
del_items(0x801173EC)
SetType(0x801173EC, "int SP4y1")
del_items(0x801173F0)
SetType(0x801173F0, "int SP4x2")
del_items(0x801173F4)
SetType(0x801173F4, "int SP4y2")
del_items(0x801173F8)
SetType(0x801173F8, "int l4holdx")
del_items(0x801173FC)
SetType(0x801173FC, "int l4holdy")
del_items(0x8011740C)
SetType(0x8011740C, "unsigned char SkelKingTrans1[8]")
del_items(0x80117414)
SetType(0x80117414, "unsigned char SkelKingTrans2[8]")
del_items(0x800D4D10)
SetType(0x800D4D10, "unsigned char SkelKingTrans3[20]")
del_items(0x800D4D24)
SetType(0x800D4D24, "unsigned char SkelKingTrans4[28]")
del_items(0x800D4D40)
SetType(0x800D4D40, "unsigned char SkelChamTrans1[20]")
del_items(0x8011741C)
SetType(0x8011741C, "unsigned char SkelChamTrans2[8]")
del_items(0x800D4D54)
SetType(0x800D4D54, "unsigned char SkelChamTrans3[36]")
del_items(0x80117510)
SetType(0x80117510, "bool DoUiForChooseMonster")
del_items(0x800D4D78)
SetType(0x800D4D78, "char *MgToText[34]")
del_items(0x800D4E00)
SetType(0x800D4E00, "int StoryText[3][3]")
del_items(0x800D4E24)
SetType(0x800D4E24, "unsigned short dungeon[48][48]")
del_items(0x800D6024)
SetType(0x800D6024, "unsigned char pdungeon[40][40]")
del_items(0x800D6664)
SetType(0x800D6664, "unsigned char dflags[40][40]")
del_items(0x80117534)
SetType(0x80117534, "int setpc_x")
del_items(0x80117538)
SetType(0x80117538, "int setpc_y")
del_items(0x8011753C)
SetType(0x8011753C, "int setpc_w")
del_items(0x80117540)
SetType(0x80117540, "int setpc_h")
del_items(0x80117544)
SetType(0x80117544, "unsigned char setloadflag")
del_items(0x80117548)
SetType(0x80117548, "unsigned char *pMegaTiles")
del_items(0x800D6CA4)
SetType(0x800D6CA4, "unsigned char nBlockTable[2049]")
del_items(0x800D74A8)
SetType(0x800D74A8, "unsigned char nSolidTable[2049]")
del_items(0x800D7CAC)
SetType(0x800D7CAC, "unsigned char nTransTable[2049]")
del_items(0x800D84B0)
SetType(0x800D84B0, "unsigned char nMissileTable[2049]")
del_items(0x800D8CB4)
SetType(0x800D8CB4, "unsigned char nTrapTable[2049]")
del_items(0x8011754C)
SetType(0x8011754C, "int dminx")
del_items(0x80117550)
SetType(0x80117550, "int dminy")
del_items(0x80117554)
SetType(0x80117554, "int dmaxx")
del_items(0x80117558)
SetType(0x80117558, "int dmaxy")
del_items(0x8011755C)
SetType(0x8011755C, "int gnDifficulty")
del_items(0x80117560)
SetType(0x80117560, "unsigned char currlevel")
del_items(0x80117561)
SetType(0x80117561, "unsigned char leveltype")
del_items(0x80117562)
SetType(0x80117562, "unsigned char setlevel")
del_items(0x80117563)
SetType(0x80117563, "unsigned char setlvlnum")
del_items(0x80117564)
SetType(0x80117564, "unsigned char setlvltype")
del_items(0x80117568)
SetType(0x80117568, "int ViewX")
del_items(0x8011756C)
SetType(0x8011756C, "int ViewY")
del_items(0x80117570)
SetType(0x80117570, "int ViewDX")
del_items(0x80117574)
SetType(0x80117574, "int ViewDY")
del_items(0x80117578)
SetType(0x80117578, "int ViewBX")
del_items(0x8011757C)
SetType(0x8011757C, "int ViewBY")
del_items(0x800D94B8)
SetType(0x800D94B8, "struct ScrollStruct ScrollInfo")
del_items(0x80117580)
SetType(0x80117580, "int LvlViewX")
del_items(0x80117584)
SetType(0x80117584, "int LvlViewY")
del_items(0x80117588)
SetType(0x80117588, "int btmbx")
del_items(0x8011758C)
SetType(0x8011758C, "int btmby")
del_items(0x80117590)
SetType(0x80117590, "int btmdx")
del_items(0x80117594)
SetType(0x80117594, "int btmdy")
del_items(0x80117598)
SetType(0x80117598, "int MicroTileLen")
del_items(0x8011759C)
SetType(0x8011759C, "char TransVal")
del_items(0x800D94CC)
SetType(0x800D94CC, "bool TransList[8]")
del_items(0x801175A0)
SetType(0x801175A0, "int themeCount")
del_items(0x800D94EC)
SetType(0x800D94EC, "struct map_info dung_map[108][108]")
del_items(0x800FB7AC)
SetType(0x800FB7AC, "unsigned char dung_map_r[54][54]")
del_items(0x800FC310)
SetType(0x800FC310, "unsigned char dung_map_g[54][54]")
del_items(0x800FCE74)
SetType(0x800FCE74, "unsigned char dung_map_b[54][54]")
del_items(0x800FD9D8)
SetType(0x800FD9D8, "struct MINIXY MinisetXY[17]")
del_items(0x8011752C)
SetType(0x8011752C, "unsigned char *pSetPiece")
del_items(0x80117530)
SetType(0x80117530, "int DungSize")
del_items(0x800FDBA4)
SetType(0x800FDBA4, "struct ThemeStruct theme[50]")
del_items(0x801175E0)
SetType(0x801175E0, "int numthemes")
del_items(0x801175E4)
SetType(0x801175E4, "int zharlib")
del_items(0x801175E8)
SetType(0x801175E8, "unsigned char armorFlag")
del_items(0x801175E9)
SetType(0x801175E9, "unsigned char bCrossFlag")
del_items(0x801175EA)
SetType(0x801175EA, "unsigned char weaponFlag")
del_items(0x801175EC)
SetType(0x801175EC, "int themex")
del_items(0x801175F0)
SetType(0x801175F0, "int themey")
del_items(0x801175F4)
SetType(0x801175F4, "int themeVar1")
del_items(0x801175F8)
SetType(0x801175F8, "unsigned char bFountainFlag")
del_items(0x801175F9)
SetType(0x801175F9, "unsigned char cauldronFlag")
del_items(0x801175FA)
SetType(0x801175FA, "unsigned char mFountainFlag")
del_items(0x801175FB)
SetType(0x801175FB, "unsigned char pFountainFlag")
del_items(0x801175FC)
SetType(0x801175FC, "unsigned char tFountainFlag")
del_items(0x801175FD)
SetType(0x801175FD, "unsigned char treasureFlag")
del_items(0x80117600)
SetType(0x80117600, "unsigned char ThemeGoodIn[4]")
del_items(0x800FDA84)
SetType(0x800FDA84, "int ThemeGood[4]")
del_items(0x800FDA94)
SetType(0x800FDA94, "int trm5x[25]")
del_items(0x800FDAF8)
SetType(0x800FDAF8, "int trm5y[25]")
del_items(0x800FDB5C)
SetType(0x800FDB5C, "int trm3x[9]")
del_items(0x800FDB80)
SetType(0x800FDB80, "int trm3y[9]")
del_items(0x801176B8)
SetType(0x801176B8, "int nummissiles")
del_items(0x800FDDBC)
SetType(0x800FDDBC, "int missileactive[125]")
del_items(0x800FDFB0)
SetType(0x800FDFB0, "int missileavail[125]")
del_items(0x801176BC)
SetType(0x801176BC, "unsigned char MissilePreFlag")
del_items(0x800FE1A4)
SetType(0x800FE1A4, "struct MissileStruct missile[125]")
del_items(0x801176BD)
SetType(0x801176BD, "unsigned char ManashieldFlag")
del_items(0x801176BE)
SetType(0x801176BE, "unsigned char ManashieldFlag2")
del_items(0x800FDD34)
SetType(0x800FDD34, "int XDirAdd[8]")
del_items(0x800FDD54)
SetType(0x800FDD54, "int YDirAdd[8]")
del_items(0x801176A5)
SetType(0x801176A5, "unsigned char fadetor")
del_items(0x801176A6)
SetType(0x801176A6, "unsigned char fadetog")
del_items(0x801176A7)
SetType(0x801176A7, "unsigned char fadetob")
del_items(0x800FDD74)
SetType(0x800FDD74, "unsigned char ValueTable[16]")
del_items(0x800FDD84)
SetType(0x800FDD84, "unsigned char StringTable[9][6]")
del_items(0x80100A54)
SetType(0x80100A54, "struct MonsterStruct monster[200]")
del_items(0x8011771C)
SetType(0x8011771C, "long nummonsters")
del_items(0x801061D4)
SetType(0x801061D4, "short monstactive[200]")
del_items(0x80106364)
SetType(0x80106364, "short monstkills[200]")
del_items(0x801064F4)
SetType(0x801064F4, "struct CMonster Monsters[16]")
del_items(0x80117720)
SetType(0x80117720, "long monstimgtot")
del_items(0x80117724)
SetType(0x80117724, "char totalmonsters")
del_items(0x80117728)
SetType(0x80117728, "int uniquetrans")
del_items(0x80117CF4)
SetType(0x80117CF4, "unsigned char sgbSaveSoundOn")
del_items(0x801176F0)
SetType(0x801176F0, "char offset_x[8]")
del_items(0x801176F8)
SetType(0x801176F8, "char offset_y[8]")
del_items(0x801176D8)
SetType(0x801176D8, "char left[8]")
del_items(0x801176E0)
SetType(0x801176E0, "char right[8]")
del_items(0x801176E8)
SetType(0x801176E8, "char opposite[8]")
del_items(0x801176CC)
SetType(0x801176CC, "int nummtypes")
del_items(0x801176D0)
SetType(0x801176D0, "char animletter[7]")
del_items(0x801008B4)
SetType(0x801008B4, "int MWVel[3][24]")
del_items(0x80117700)
SetType(0x80117700, "char rnd5[4]")
del_items(0x80117704)
SetType(0x80117704, "char rnd10[4]")
del_items(0x80117708)
SetType(0x80117708, "char rnd20[4]")
del_items(0x8011770C)
SetType(0x8011770C, "char rnd60[4]")
del_items(0x801009D4)
SetType(0x801009D4, "void (*AiProc[32])()")
del_items(0x801069CC)
SetType(0x801069CC, "struct MonsterData monsterdata[112]")
del_items(0x8010840C)
SetType(0x8010840C, "char MonstConvTbl[128]")
del_items(0x8010848C)
SetType(0x8010848C, "char MonstAvailTbl[112]")
del_items(0x801084FC)
SetType(0x801084FC, "struct UniqMonstStruct UniqMonst[98]")
del_items(0x801067B4)
SetType(0x801067B4, "int TransPals[134]")
del_items(0x801066B4)
SetType(0x801066B4, "struct STONEPAL StonePals[32]")
del_items(0x80108E4C)
SetType(0x80108E4C, "struct PortalStruct portal[4]")
del_items(0x80117744)
SetType(0x80117744, "int portalindex")
del_items(0x80108E2C)
SetType(0x80108E2C, "int WarpDropX[4]")
del_items(0x80108E3C)
SetType(0x80108E3C, "int WarpDropY[4]")
del_items(0x80117764)
SetType(0x80117764, "unsigned char invflag")
del_items(0x80117765)
SetType(0x80117765, "unsigned char drawsbarflag")
del_items(0x80117768)
SetType(0x80117768, "int InvBackY")
del_items(0x8011776C)
SetType(0x8011776C, "int InvCursPos")
del_items(0x8010952C)
SetType(0x8010952C, "struct ItemStruct InvSpareSlot")
del_items(0x801095C0)
SetType(0x801095C0, "unsigned char InvSlotTable[74]")
del_items(0x80117770)
SetType(0x80117770, "int InvBackAY")
del_items(0x80117774)
SetType(0x80117774, "int InvSel")
del_items(0x80117778)
SetType(0x80117778, "int ItemW")
del_items(0x8011777C)
SetType(0x8011777C, "int ItemH")
del_items(0x80117780)
SetType(0x80117780, "int ItemNo")
del_items(0x80117784)
SetType(0x80117784, "unsigned char InvSpareFlag")
del_items(0x80117788)
SetType(0x80117788, "struct RECT BRect")
del_items(0x80117754)
SetType(0x80117754, "struct TextDat *InvPanelTData")
del_items(0x80117758)
SetType(0x80117758, "struct TextDat *InvGfxTData")
del_items(0x80108EAC)
SetType(0x80108EAC, "int AP2x2Tbl[10]")
del_items(0x80108ED4)
SetType(0x80108ED4, "struct InvXY InvRect[74]")
del_items(0x80109124)
SetType(0x80109124, "int InvGfxTable[168]")
del_items(0x801093C4)
SetType(0x801093C4, "unsigned char InvItemWidth[180]")
del_items(0x80109478)
SetType(0x80109478, "unsigned char InvItemHeight[180]")
del_items(0x8011775C)
SetType(0x8011775C, "unsigned long sgdwLastTime")
del_items(0x80117760)
SetType(0x80117760, "int InvSpareSel")
del_items(0x80117799)
SetType(0x80117799, "unsigned char automapflag")
del_items(0x8010960C)
SetType(0x8010960C, "unsigned char automapview[40][5]")
del_items(0x801096D4)
SetType(0x801096D4, "unsigned short automaptype[512]")
del_items(0x8011779A)
SetType(0x8011779A, "unsigned char AMLWallFlag")
del_items(0x8011779B)
SetType(0x8011779B, "unsigned char AMRWallFlag")
del_items(0x8011779C)
SetType(0x8011779C, "unsigned char AMLLWallFlag")
del_items(0x8011779D)
SetType(0x8011779D, "unsigned char AMLRWallFlag")
del_items(0x8011779E)
SetType(0x8011779E, "unsigned char AMDirtFlag")
del_items(0x8011779F)
SetType(0x8011779F, "unsigned char AMColumnFlag")
del_items(0x801177A0)
SetType(0x801177A0, "unsigned char AMStairFlag")
del_items(0x801177A1)
SetType(0x801177A1, "unsigned char AMLDoorFlag")
del_items(0x801177A2)
SetType(0x801177A2, "unsigned char AMLGrateFlag")
del_items(0x801177A3)
SetType(0x801177A3, "unsigned char AMLArchFlag")
del_items(0x801177A4)
SetType(0x801177A4, "unsigned char AMRDoorFlag")
del_items(0x801177A5)
SetType(0x801177A5, "unsigned char AMRGrateFlag")
del_items(0x801177A6)
SetType(0x801177A6, "unsigned char AMRArchFlag")
del_items(0x801177A8)
SetType(0x801177A8, "int AutoMapX")
del_items(0x801177AC)
SetType(0x801177AC, "int AutoMapY")
del_items(0x801177B0)
SetType(0x801177B0, "int AutoMapXOfs")
del_items(0x801177B4)
SetType(0x801177B4, "int AutoMapYOfs")
del_items(0x801177B8)
SetType(0x801177B8, "int AMPlayerX")
del_items(0x801177BC)
SetType(0x801177BC, "int AMPlayerY")
del_items(0x80117E50)
SetType(0x80117E50, "unsigned long GazTick")
del_items(0x8011E1A0)
SetType(0x8011E1A0, "unsigned long RndTabs[6]")
del_items(0x800A2590)
SetType(0x800A2590, "unsigned long DefaultRnd[6]")
del_items(0x80117E78)
SetType(0x80117E78, "void (*PollFunc)()")
del_items(0x80117E5C)
SetType(0x80117E5C, "void (*MsgFunc)()")
del_items(0x80117EA8)
SetType(0x80117EA8, "void (*ErrorFunc)()")
del_items(0x80117E64)
SetType(0x80117E64, "void *LastPtr")
del_items(0x800A25C8)
SetType(0x800A25C8, "struct MEM_INFO WorkMemInfo")
del_items(0x80117D7C)
SetType(0x80117D7C, "struct MEM_INIT_INFO *MemInitBlocks")
del_items(0x8011C138)
SetType(0x8011C138, "struct MEM_HDR MemHdrBlocks[80]")
del_items(0x80117D80)
SetType(0x80117D80, "struct MEM_HDR *FreeBlocks")
del_items(0x80117D84)
SetType(0x80117D84, "enum GAL_ERROR_CODE LastError")
del_items(0x80117D88)
SetType(0x80117D88, "int TimeStamp")
del_items(0x80117D8C)
SetType(0x80117D8C, "unsigned char FullErrorChecking")
del_items(0x80117D90)
SetType(0x80117D90, "unsigned long LastAttemptedAlloc")
del_items(0x80117D94)
SetType(0x80117D94, "unsigned long LastDeallocedBlock")
del_items(0x80117D98)
SetType(0x80117D98, "enum GAL_VERB_LEV VerbLev")
del_items(0x80117D9C)
SetType(0x80117D9C, "int NumOfFreeHdrs")
del_items(0x80117DA0)
SetType(0x80117DA0, "unsigned long LastTypeAlloced")
del_items(0x80117DA4)
SetType(0x80117DA4, "void (*AllocFilter)()")
del_items(0x800A25D0)
SetType(0x800A25D0, "char *GalErrors[10]")
del_items(0x800A25F8)
SetType(0x800A25F8, "struct MEM_INIT_INFO PhantomMem")
del_items(0x80117DA8)
SetType(0x80117DA8, "struct TASK *ActiveTasks")
del_items(0x80117DAC)
SetType(0x80117DAC, "struct TASK *CurrentTask")
del_items(0x80117DB0)
SetType(0x80117DB0, "struct TASK *T")
del_items(0x80117DB4)
SetType(0x80117DB4, "unsigned long MemTypeForTasker")
del_items(0x8011CB38)
SetType(0x8011CB38, "int SchEnv[12]")
del_items(0x80117DB8)
SetType(0x80117DB8, "unsigned long ExecId")
del_items(0x80117DBC)
SetType(0x80117DBC, "unsigned long ExecMask")
del_items(0x80117DC0)
SetType(0x80117DC0, "int TasksActive")
del_items(0x80117DC4)
SetType(0x80117DC4, "void (*EpiFunc)()")
del_items(0x80117DC8)
SetType(0x80117DC8, "void (*ProFunc)()")
del_items(0x80117DCC)
SetType(0x80117DCC, "unsigned long EpiProId")
del_items(0x80117DD0)
SetType(0x80117DD0, "unsigned long EpiProMask")
del_items(0x80117DD4)
SetType(0x80117DD4, "void (*DoTasksPrologue)()")
del_items(0x80117DD8)
SetType(0x80117DD8, "void (*DoTasksEpilogue)()")
del_items(0x80117DDC)
SetType(0x80117DDC, "void (*StackFloodCallback)()")
del_items(0x80117DE0)
SetType(0x80117DE0, "unsigned char ExtraStackProtection")
del_items(0x80117DE4)
SetType(0x80117DE4, "int ExtraStackSizeLongs")
del_items(0x8011CB68)
SetType(0x8011CB68, "char buf[4992]")
del_items(0x800A2620)
SetType(0x800A2620, "char NULL_REP[7]")
| del_items(2148623448)
set_type(2148623448, 'int NumOfMonsterListLevels')
del_items(2148153180)
set_type(2148153180, 'struct MonstLevel AllLevels[16]')
del_items(2148622708)
set_type(2148622708, 'unsigned char NumsLEV1M1A[4]')
del_items(2148622712)
set_type(2148622712, 'unsigned char NumsLEV1M1B[4]')
del_items(2148622716)
set_type(2148622716, 'unsigned char NumsLEV1M1C[5]')
del_items(2148622724)
set_type(2148622724, 'unsigned char NumsLEV2M2A[4]')
del_items(2148622728)
set_type(2148622728, 'unsigned char NumsLEV2M2B[4]')
del_items(2148622732)
set_type(2148622732, 'unsigned char NumsLEV2M2C[3]')
del_items(2148622736)
set_type(2148622736, 'unsigned char NumsLEV2M2D[4]')
del_items(2148622740)
set_type(2148622740, 'unsigned char NumsLEV2M2QA[4]')
del_items(2148622744)
set_type(2148622744, 'unsigned char NumsLEV2M2QB[4]')
del_items(2148622748)
set_type(2148622748, 'unsigned char NumsLEV3M3A[4]')
del_items(2148622752)
set_type(2148622752, 'unsigned char NumsLEV3M3QA[3]')
del_items(2148622756)
set_type(2148622756, 'unsigned char NumsLEV3M3B[4]')
del_items(2148622760)
set_type(2148622760, 'unsigned char NumsLEV3M3C[4]')
del_items(2148622764)
set_type(2148622764, 'unsigned char NumsLEV4M4A[4]')
del_items(2148622768)
set_type(2148622768, 'unsigned char NumsLEV4M4QA[4]')
del_items(2148622772)
set_type(2148622772, 'unsigned char NumsLEV4M4B[4]')
del_items(2148622776)
set_type(2148622776, 'unsigned char NumsLEV4M4QB[4]')
del_items(2148622780)
set_type(2148622780, 'unsigned char NumsLEV4M4C[4]')
del_items(2148622784)
set_type(2148622784, 'unsigned char NumsLEV4M4QC[4]')
del_items(2148622788)
set_type(2148622788, 'unsigned char NumsLEV4M4D[4]')
del_items(2148622792)
set_type(2148622792, 'unsigned char NumsLEV5M5A[4]')
del_items(2148622796)
set_type(2148622796, 'unsigned char NumsLEV5M5B[4]')
del_items(2148622800)
set_type(2148622800, 'unsigned char NumsLEV5M5C[4]')
del_items(2148622804)
set_type(2148622804, 'unsigned char NumsLEV5M5D[4]')
del_items(2148622808)
set_type(2148622808, 'unsigned char NumsLEV5M5E[4]')
del_items(2148622812)
set_type(2148622812, 'unsigned char NumsLEV5M5F[3]')
del_items(2148622816)
set_type(2148622816, 'unsigned char NumsLEV6M6A[5]')
del_items(2148622824)
set_type(2148622824, 'unsigned char NumsLEV6M6B[3]')
del_items(2148622828)
set_type(2148622828, 'unsigned char NumsLEV6M6C[4]')
del_items(2148622832)
set_type(2148622832, 'unsigned char NumsLEV6M6D[3]')
del_items(2148622836)
set_type(2148622836, 'unsigned char NumsLEV6M6E[3]')
del_items(2148622840)
set_type(2148622840, 'unsigned char NumsLEV7M7A[4]')
del_items(2148622844)
set_type(2148622844, 'unsigned char NumsLEV7M7B[4]')
del_items(2148622848)
set_type(2148622848, 'unsigned char NumsLEV7M7C[3]')
del_items(2148622852)
set_type(2148622852, 'unsigned char NumsLEV7M7D[2]')
del_items(2148622856)
set_type(2148622856, 'unsigned char NumsLEV7M7E[2]')
del_items(2148622860)
set_type(2148622860, 'unsigned char NumsLEV8M8QA[2]')
del_items(2148622864)
set_type(2148622864, 'unsigned char NumsLEV8M8A[3]')
del_items(2148622868)
set_type(2148622868, 'unsigned char NumsLEV8M8B[4]')
del_items(2148622872)
set_type(2148622872, 'unsigned char NumsLEV8M8C[3]')
del_items(2148622876)
set_type(2148622876, 'unsigned char NumsLEV8M8D[2]')
del_items(2148622880)
set_type(2148622880, 'unsigned char NumsLEV8M8E[2]')
del_items(2148622884)
set_type(2148622884, 'unsigned char NumsLEV9M9A[4]')
del_items(2148622888)
set_type(2148622888, 'unsigned char NumsLEV9M9B[3]')
del_items(2148622892)
set_type(2148622892, 'unsigned char NumsLEV9M9C[2]')
del_items(2148622896)
set_type(2148622896, 'unsigned char NumsLEV9M9D[2]')
del_items(2148622900)
set_type(2148622900, 'unsigned char NumsLEV10M10A[3]')
del_items(2148622904)
set_type(2148622904, 'unsigned char NumsLEV10M10B[2]')
del_items(2148622908)
set_type(2148622908, 'unsigned char NumsLEV10M10C[2]')
del_items(2148622912)
set_type(2148622912, 'unsigned char NumsLEV10M10D[2]')
del_items(2148622916)
set_type(2148622916, 'unsigned char NumsLEV11M11A[3]')
del_items(2148622920)
set_type(2148622920, 'unsigned char NumsLEV11M11B[3]')
del_items(2148622924)
set_type(2148622924, 'unsigned char NumsLEV11M11C[3]')
del_items(2148622928)
set_type(2148622928, 'unsigned char NumsLEV11M11D[3]')
del_items(2148622932)
set_type(2148622932, 'unsigned char NumsLEV11M11E[2]')
del_items(2148622936)
set_type(2148622936, 'unsigned char NumsLEV12M12A[3]')
del_items(2148622940)
set_type(2148622940, 'unsigned char NumsLEV12M12B[3]')
del_items(2148622944)
set_type(2148622944, 'unsigned char NumsLEV12M12C[3]')
del_items(2148622948)
set_type(2148622948, 'unsigned char NumsLEV12M12D[3]')
del_items(2148622952)
set_type(2148622952, 'unsigned char NumsLEV13M13A[3]')
del_items(2148622956)
set_type(2148622956, 'unsigned char NumsLEV13M13B[2]')
del_items(2148622960)
set_type(2148622960, 'unsigned char NumsLEV13M13QB[3]')
del_items(2148622964)
set_type(2148622964, 'unsigned char NumsLEV13M13C[3]')
del_items(2148622968)
set_type(2148622968, 'unsigned char NumsLEV13M13D[2]')
del_items(2148622972)
set_type(2148622972, 'unsigned char NumsLEV14M14A[3]')
del_items(2148622976)
set_type(2148622976, 'unsigned char NumsLEV14M14B[3]')
del_items(2148622980)
set_type(2148622980, 'unsigned char NumsLEV14M14QB[3]')
del_items(2148622984)
set_type(2148622984, 'unsigned char NumsLEV14M14C[3]')
del_items(2148622988)
set_type(2148622988, 'unsigned char NumsLEV14M14D[3]')
del_items(2148622992)
set_type(2148622992, 'unsigned char NumsLEV14M14E[2]')
del_items(2148622996)
set_type(2148622996, 'unsigned char NumsLEV15M15A[3]')
del_items(2148623000)
set_type(2148623000, 'unsigned char NumsLEV15M15B[3]')
del_items(2148623004)
set_type(2148623004, 'unsigned char NumsLEV15M15C[2]')
del_items(2148623008)
set_type(2148623008, 'unsigned char NumsLEV16M16D[1]')
del_items(2148151996)
set_type(2148151996, 'struct MonstList ChoiceListLEV1[3]')
del_items(2148152044)
set_type(2148152044, 'struct MonstList ChoiceListLEV2[6]')
del_items(2148152140)
set_type(2148152140, 'struct MonstList ChoiceListLEV3[4]')
del_items(2148152204)
set_type(2148152204, 'struct MonstList ChoiceListLEV4[7]')
del_items(2148152316)
set_type(2148152316, 'struct MonstList ChoiceListLEV5[6]')
del_items(2148152412)
set_type(2148152412, 'struct MonstList ChoiceListLEV6[5]')
del_items(2148152492)
set_type(2148152492, 'struct MonstList ChoiceListLEV7[5]')
del_items(2148152572)
set_type(2148152572, 'struct MonstList ChoiceListLEV8[6]')
del_items(2148152668)
set_type(2148152668, 'struct MonstList ChoiceListLEV9[4]')
del_items(2148152732)
set_type(2148152732, 'struct MonstList ChoiceListLEV10[4]')
del_items(2148152796)
set_type(2148152796, 'struct MonstList ChoiceListLEV11[5]')
del_items(2148152876)
set_type(2148152876, 'struct MonstList ChoiceListLEV12[4]')
del_items(2148152940)
set_type(2148152940, 'struct MonstList ChoiceListLEV13[5]')
del_items(2148153020)
set_type(2148153020, 'struct MonstList ChoiceListLEV14[6]')
del_items(2148153116)
set_type(2148153116, 'struct MonstList ChoiceListLEV15[3]')
del_items(2148153164)
set_type(2148153164, 'struct MonstList ChoiceListLEV16[1]')
del_items(2148629024)
set_type(2148629024, 'struct TASK *GameTaskPtr')
del_items(2148623464)
set_type(2148623464, 'int time_in_frames')
del_items(2148153308)
set_type(2148153308, 'struct LOAD_IMAGE_ARGS AllArgs[30]')
del_items(2148623468)
set_type(2148623468, 'int ArgsSoFar')
del_items(2148623472)
set_type(2148623472, 'unsigned long *ThisOt')
del_items(2148623476)
set_type(2148623476, 'struct POLY_FT4 *ThisPrimAddr')
del_items(2148629028)
set_type(2148629028, 'long hndPrimBuffers')
del_items(2148629032)
set_type(2148629032, 'struct PRIM_BUFFER *PrimBuffers')
del_items(2148629036)
set_type(2148629036, 'unsigned char BufferDepth')
del_items(2148629037)
set_type(2148629037, 'unsigned char WorkRamId')
del_items(2148629038)
set_type(2148629038, 'unsigned char ScrNum')
del_items(2148629040)
set_type(2148629040, 'struct SCREEN_ENV *Screens')
del_items(2148629044)
set_type(2148629044, 'struct PRIM_BUFFER *PbToClear')
del_items(2148629048)
set_type(2148629048, 'unsigned char BufferNum')
del_items(2148623480)
set_type(2148623480, 'struct POLY_FT4 *AddrToAvoid')
del_items(2148629049)
set_type(2148629049, 'unsigned char LastBuffer')
del_items(2148629052)
set_type(2148629052, 'struct DISPENV *DispEnvToPut')
del_items(2148629056)
set_type(2148629056, 'int ThisOtSize')
del_items(2148623484)
set_type(2148623484, 'struct RECT ScrRect')
del_items(2148629060)
set_type(2148629060, 'int VidWait')
del_items(2148630224)
set_type(2148630224, 'struct SCREEN_ENV screen[2]')
del_items(2148629064)
set_type(2148629064, 'void (*VbFunc)()')
del_items(2148629068)
set_type(2148629068, 'unsigned long VidTick')
del_items(2148629072)
set_type(2148629072, 'int VXOff')
del_items(2148629076)
set_type(2148629076, 'int VYOff')
del_items(2148623504)
set_type(2148623504, 'struct LNK_OPTS *Gaz')
del_items(2148623508)
set_type(2148623508, 'int LastFmem')
del_items(2148623492)
set_type(2148623492, 'unsigned int GSYS_MemStart')
del_items(2148623496)
set_type(2148623496, 'unsigned int GSYS_MemEnd')
del_items(2148154148)
set_type(2148154148, 'struct MEM_INIT_INFO PsxMem')
del_items(2148154188)
set_type(2148154188, 'struct MEM_INIT_INFO PsxFastMem')
del_items(2148623500)
set_type(2148623500, 'int LowestFmem')
del_items(2148623524)
set_type(2148623524, 'int FileSYS')
del_items(2148629080)
set_type(2148629080, 'struct FileIO *FileSystem')
del_items(2148629084)
set_type(2148629084, 'struct FileIO *OverlayFileSystem')
del_items(2148623550)
set_type(2148623550, 'short DavesPad')
del_items(2148623552)
set_type(2148623552, 'short DavesPadDeb')
del_items(2148154228)
set_type(2148154228, 'char _6FileIO_FileToLoad[50]')
del_items(2148630448)
set_type(2148630448, 'struct POLY_FT4 MyFT4')
del_items(2148156440)
set_type(2148156440, 'struct TextDat *AllDats[283]')
del_items(2148623632)
set_type(2148623632, 'int TpW')
del_items(2148623636)
set_type(2148623636, 'int TpH')
del_items(2148623640)
set_type(2148623640, 'int TpXDest')
del_items(2148623644)
set_type(2148623644, 'int TpYDest')
del_items(2148623648)
set_type(2148623648, 'struct RECT R')
del_items(2148157572)
set_type(2148157572, 'struct POLY_GT4 MyGT4')
del_items(2148157624)
set_type(2148157624, 'struct POLY_GT3 MyGT3')
del_items(2148154280)
set_type(2148154280, 'struct TextDat DatPool[20]')
del_items(2148623668)
set_type(2148623668, 'bool ChunkGot')
del_items(2148157664)
set_type(2148157664, 'char STREAM_DIR[16]')
del_items(2148157680)
set_type(2148157680, 'char STREAM_BIN[16]')
del_items(2148157696)
set_type(2148157696, 'unsigned char EAC_DirectoryCache[300]')
del_items(2148623688)
set_type(2148623688, 'unsigned long BL_NoLumpFiles')
del_items(2148623692)
set_type(2148623692, 'unsigned long BL_NoStreamFiles')
del_items(2148623696)
set_type(2148623696, 'struct STRHDR *LFileTab')
del_items(2148623700)
set_type(2148623700, 'struct STRHDR *SFileTab')
del_items(2148623704)
set_type(2148623704, 'unsigned char FileLoaded')
del_items(2148623752)
set_type(2148623752, 'int NoTAllocs')
del_items(2148157996)
set_type(2148157996, 'struct MEMSTRUCT MemBlock[50]')
del_items(2148629096)
set_type(2148629096, 'bool CanPause')
del_items(2148629100)
set_type(2148629100, 'bool Paused')
del_items(2148629104)
set_type(2148629104, 'struct RECT PRect')
del_items(2148630488)
set_type(2148630488, 'struct Dialog PBack')
del_items(2148158612)
set_type(2148158612, 'char RawPadData0[34]')
del_items(2148158648)
set_type(2148158648, 'char RawPadData1[34]')
del_items(2148158684)
set_type(2148158684, 'unsigned char demo_buffer[1800]')
del_items(2148623796)
set_type(2148623796, 'int demo_pad_time')
del_items(2148623800)
set_type(2148623800, 'int demo_pad_count')
del_items(2148158396)
set_type(2148158396, 'struct CPad Pad0')
del_items(2148158504)
set_type(2148158504, 'struct CPad Pad1')
del_items(2148623804)
set_type(2148623804, 'unsigned long demo_finish')
del_items(2148623808)
set_type(2148623808, 'int cac_pad')
del_items(2148623836)
set_type(2148623836, 'struct POLY_FT4 *CharFt4')
del_items(2148623840)
set_type(2148623840, 'int CharFrm')
del_items(2148623821)
set_type(2148623821, 'unsigned char WHITER')
del_items(2148623822)
set_type(2148623822, 'unsigned char WHITEG')
del_items(2148623823)
set_type(2148623823, 'unsigned char WHITEB')
del_items(2148623824)
set_type(2148623824, 'unsigned char BLUER')
del_items(2148623825)
set_type(2148623825, 'unsigned char BLUEG')
del_items(2148623826)
set_type(2148623826, 'unsigned char BLUEB')
del_items(2148623827)
set_type(2148623827, 'unsigned char REDR')
del_items(2148623828)
set_type(2148623828, 'unsigned char REDG')
del_items(2148623829)
set_type(2148623829, 'unsigned char REDB')
del_items(2148623830)
set_type(2148623830, 'unsigned char GOLDR')
del_items(2148623831)
set_type(2148623831, 'unsigned char GOLDG')
del_items(2148623832)
set_type(2148623832, 'unsigned char GOLDB')
del_items(2148160484)
set_type(2148160484, 'struct CFont MediumFont')
del_items(2148161020)
set_type(2148161020, 'struct CFont LargeFont')
del_items(2148161556)
set_type(2148161556, 'struct FontItem LFontTab[90]')
del_items(2148161736)
set_type(2148161736, 'struct FontTab LFont')
del_items(2148161752)
set_type(2148161752, 'struct FontItem MFontTab[151]')
del_items(2148162056)
set_type(2148162056, 'struct FontTab MFont')
del_items(2148623861)
set_type(2148623861, 'unsigned char DialogRed')
del_items(2148623862)
set_type(2148623862, 'unsigned char DialogGreen')
del_items(2148623863)
set_type(2148623863, 'unsigned char DialogBlue')
del_items(2148623864)
set_type(2148623864, 'unsigned char DialogTRed')
del_items(2148623865)
set_type(2148623865, 'unsigned char DialogTGreen')
del_items(2148623866)
set_type(2148623866, 'unsigned char DialogTBlue')
del_items(2148623868)
set_type(2148623868, 'struct TextDat *DialogTData')
del_items(2148623872)
set_type(2148623872, 'int DialogBackGfx')
del_items(2148623876)
set_type(2148623876, 'int DialogBackW')
del_items(2148623880)
set_type(2148623880, 'int DialogBackH')
del_items(2148623884)
set_type(2148623884, 'int DialogBorderGfx')
del_items(2148623888)
set_type(2148623888, 'int DialogBorderTLW')
del_items(2148623892)
set_type(2148623892, 'int DialogBorderTLH')
del_items(2148623896)
set_type(2148623896, 'int DialogBorderTRW')
del_items(2148623900)
set_type(2148623900, 'int DialogBorderTRH')
del_items(2148623904)
set_type(2148623904, 'int DialogBorderBLW')
del_items(2148623908)
set_type(2148623908, 'int DialogBorderBLH')
del_items(2148623912)
set_type(2148623912, 'int DialogBorderBRW')
del_items(2148623916)
set_type(2148623916, 'int DialogBorderBRH')
del_items(2148623920)
set_type(2148623920, 'int DialogBorderTW')
del_items(2148623924)
set_type(2148623924, 'int DialogBorderTH')
del_items(2148623928)
set_type(2148623928, 'int DialogBorderBW')
del_items(2148623932)
set_type(2148623932, 'int DialogBorderBH')
del_items(2148623936)
set_type(2148623936, 'int DialogBorderLW')
del_items(2148623940)
set_type(2148623940, 'int DialogBorderLH')
del_items(2148623944)
set_type(2148623944, 'int DialogBorderRW')
del_items(2148623948)
set_type(2148623948, 'int DialogBorderRH')
del_items(2148623952)
set_type(2148623952, 'int DialogBevelGfx')
del_items(2148623956)
set_type(2148623956, 'int DialogBevelCW')
del_items(2148623960)
set_type(2148623960, 'int DialogBevelCH')
del_items(2148623964)
set_type(2148623964, 'int DialogBevelLRW')
del_items(2148623968)
set_type(2148623968, 'int DialogBevelLRH')
del_items(2148623972)
set_type(2148623972, 'int DialogBevelUDW')
del_items(2148623976)
set_type(2148623976, 'int DialogBevelUDH')
del_items(2148623980)
set_type(2148623980, 'int MY_DialogOTpos')
del_items(2148629112)
set_type(2148629112, 'unsigned char DialogGBack')
del_items(2148629113)
set_type(2148629113, 'char GShadeX')
del_items(2148629114)
set_type(2148629114, 'char GShadeY')
del_items(2148629120)
set_type(2148629120, 'unsigned char RandBTab[8]')
del_items(2148162136)
set_type(2148162136, 'int Cxy[28]')
del_items(2148623855)
set_type(2148623855, 'unsigned char BORDERR')
del_items(2148623856)
set_type(2148623856, 'unsigned char BORDERG')
del_items(2148623857)
set_type(2148623857, 'unsigned char BORDERB')
del_items(2148623858)
set_type(2148623858, 'unsigned char BACKR')
del_items(2148623859)
set_type(2148623859, 'unsigned char BACKG')
del_items(2148623860)
set_type(2148623860, 'unsigned char BACKB')
del_items(2148162072)
set_type(2148162072, 'char GShadeTab[64]')
del_items(2148623853)
set_type(2148623853, 'char GShadePX')
del_items(2148623854)
set_type(2148623854, 'char GShadePY')
del_items(2148623993)
set_type(2148623993, 'unsigned char PlayDemoFlag')
del_items(2148630504)
set_type(2148630504, 'struct RGBPOLY rgbb')
del_items(2148630552)
set_type(2148630552, 'struct RGBPOLY rgbt')
del_items(2148629128)
set_type(2148629128, 'int blockr')
del_items(2148629132)
set_type(2148629132, 'int blockg')
del_items(2148629136)
set_type(2148629136, 'int blockb')
del_items(2148629140)
set_type(2148629140, 'int InfraFlag')
del_items(2148624005)
set_type(2148624005, 'unsigned char P1ObjSelCount')
del_items(2148624006)
set_type(2148624006, 'unsigned char P2ObjSelCount')
del_items(2148624007)
set_type(2148624007, 'unsigned char P12ObjSelCount')
del_items(2148624008)
set_type(2148624008, 'unsigned char P1ItemSelCount')
del_items(2148624009)
set_type(2148624009, 'unsigned char P2ItemSelCount')
del_items(2148624010)
set_type(2148624010, 'unsigned char P12ItemSelCount')
del_items(2148624011)
set_type(2148624011, 'unsigned char P1MonstSelCount')
del_items(2148624012)
set_type(2148624012, 'unsigned char P2MonstSelCount')
del_items(2148624013)
set_type(2148624013, 'unsigned char P12MonstSelCount')
del_items(2148624014)
set_type(2148624014, 'unsigned short P1ObjSelCol')
del_items(2148624016)
set_type(2148624016, 'unsigned short P2ObjSelCol')
del_items(2148624018)
set_type(2148624018, 'unsigned short P12ObjSelCol')
del_items(2148624020)
set_type(2148624020, 'unsigned short P1ItemSelCol')
del_items(2148624022)
set_type(2148624022, 'unsigned short P2ItemSelCol')
del_items(2148624024)
set_type(2148624024, 'unsigned short P12ItemSelCol')
del_items(2148624026)
set_type(2148624026, 'unsigned short P1MonstSelCol')
del_items(2148624028)
set_type(2148624028, 'unsigned short P2MonstSelCol')
del_items(2148624030)
set_type(2148624030, 'unsigned short P12MonstSelCol')
del_items(2148624032)
set_type(2148624032, 'struct CBlocks *CurrentBlocks')
del_items(2148582908)
set_type(2148582908, 'short SinTab[32]')
del_items(2148162248)
set_type(2148162248, 'struct TownToCreature TownConv[10]')
del_items(2148624060)
set_type(2148624060, 'enum OVER_TYPE CurrentOverlay')
del_items(2148583048)
set_type(2148583048, 'unsigned long HaltTab[3]')
del_items(2148630600)
set_type(2148630600, 'struct Overlay FrontEndOver')
del_items(2148630616)
set_type(2148630616, 'struct Overlay PregameOver')
del_items(2148630632)
set_type(2148630632, 'struct Overlay GameOver')
del_items(2148630648)
set_type(2148630648, 'struct Overlay FmvOver')
del_items(2148629144)
set_type(2148629144, 'int OWorldX')
del_items(2148629148)
set_type(2148629148, 'int OWorldY')
del_items(2148629152)
set_type(2148629152, 'int WWorldX')
del_items(2148629156)
set_type(2148629156, 'int WWorldY')
del_items(2148583172)
set_type(2148583172, 'short TxyAdd[16]')
del_items(2148624096)
set_type(2148624096, 'int GXAdj2')
del_items(2148629160)
set_type(2148629160, 'int TimePerFrame')
del_items(2148629164)
set_type(2148629164, 'int CpuStart')
del_items(2148629168)
set_type(2148629168, 'int CpuTime')
del_items(2148629172)
set_type(2148629172, 'int DrawTime')
del_items(2148629176)
set_type(2148629176, 'int DrawStart')
del_items(2148629180)
set_type(2148629180, 'int LastCpuTime')
del_items(2148629184)
set_type(2148629184, 'int LastDrawTime')
del_items(2148629188)
set_type(2148629188, 'int DrawArea')
del_items(2148624104)
set_type(2148624104, 'bool ProfOn')
del_items(2148162268)
set_type(2148162268, 'unsigned char LevPals[17]')
del_items(2148583496)
set_type(2148583496, 'unsigned short Level2Bgdata[25]')
del_items(2148162288)
set_type(2148162288, 'struct PanelXY DefP1PanelXY')
del_items(2148162372)
set_type(2148162372, 'struct PanelXY DefP1PanelXY2')
del_items(2148162456)
set_type(2148162456, 'struct PanelXY DefP2PanelXY')
del_items(2148162540)
set_type(2148162540, 'struct PanelXY DefP2PanelXY2')
del_items(2148162624)
set_type(2148162624, 'unsigned int SpeedBarGfxTable[50]')
del_items(2148624144)
set_type(2148624144, 'int hof')
del_items(2148624148)
set_type(2148624148, 'int mof')
del_items(2148162824)
set_type(2148162824, 'struct SFXHDR SFXTab[2]')
del_items(2148624200)
set_type(2148624200, 'unsigned long Time')
del_items(2148163080)
set_type(2148163080, 'struct SpuVoiceAttr voice_attr')
del_items(2148624164)
set_type(2148624164, 'unsigned long *STR_Buffer')
del_items(2148624168)
set_type(2148624168, 'char NoActiveStreams')
del_items(2148624172)
set_type(2148624172, 'bool STRInit')
del_items(2148624236)
set_type(2148624236, 'char SFXNotPlayed')
del_items(2148624237)
set_type(2148624237, 'char SFXNotInBank')
del_items(2148630664)
set_type(2148630664, 'char spu_management[264]')
del_items(2148630936)
set_type(2148630936, 'struct SpuReverbAttr rev_attr')
del_items(2148629196)
set_type(2148629196, 'unsigned short NoSfx')
del_items(2148624216)
set_type(2148624216, 'struct bank_entry *BankOffsets')
del_items(2148624220)
set_type(2148624220, 'long OffsetHandle')
del_items(2148624224)
set_type(2148624224, 'int BankBase')
del_items(2148624228)
set_type(2148624228, 'unsigned char SPU_Done')
del_items(2148584448)
set_type(2148584448, 'int SFXRemapTab[44]')
del_items(2148624232)
set_type(2148624232, 'int NoSNDRemaps')
del_items(2148163144)
set_type(2148163144, 'struct PalCollection ThePals')
del_items(2148584676)
set_type(2148584676, 'struct InitPos InitialPositions[16]')
del_items(2148624308)
set_type(2148624308, 'int demo_level')
del_items(2148624312)
set_type(2148624312, 'struct TASK *DemoTask')
del_items(2148624316)
set_type(2148624316, 'struct TASK *DemoGameTask')
del_items(2148624320)
set_type(2148624320, 'struct TASK *tonys')
del_items(2148624280)
set_type(2148624280, 'int demo_load')
del_items(2148624284)
set_type(2148624284, 'int demo_record_load')
del_items(2148624288)
set_type(2148624288, 'int level_record')
del_items(2148624276)
set_type(2148624276, 'int moo_moo')
del_items(2148624292)
set_type(2148624292, 'unsigned char demo_flash')
del_items(2148624296)
set_type(2148624296, 'int tonys_Task')
del_items(2148624668)
set_type(2148624668, 'bool DoShowPanel')
del_items(2148624672)
set_type(2148624672, 'bool DoDrawBg')
del_items(2148629200)
set_type(2148629200, 'bool GlueFinished')
del_items(2148629204)
set_type(2148629204, 'bool DoHomingScroll')
del_items(2148629208)
set_type(2148629208, 'struct TextDat *TownerGfx')
del_items(2148629212)
set_type(2148629212, 'int CurrentMonsterList')
del_items(2148624333)
set_type(2148624333, 'char started_grtask')
del_items(2148163540)
set_type(2148163540, 'struct PInf PlayerInfo[81]')
del_items(2148624676)
set_type(2148624676, 'char ArmourChar[4]')
del_items(2148584904)
set_type(2148584904, 'char WepChar[10]')
del_items(2148624680)
set_type(2148624680, 'char CharChar[4]')
del_items(2148629216)
set_type(2148629216, 'char ctrl_select_line')
del_items(2148629217)
set_type(2148629217, 'char ctrl_select_side')
del_items(2148629218)
set_type(2148629218, 'char ckeyheld')
del_items(2148629220)
set_type(2148629220, 'int old_options_pad')
del_items(2148629224)
set_type(2148629224, 'struct RECT CtrlRect')
del_items(2148624700)
set_type(2148624700, 'unsigned char ctrlflag')
del_items(2148164356)
set_type(2148164356, 'struct KEY_ASSIGNS txt_actions[20]')
del_items(2148164188)
set_type(2148164188, 'struct pad_assigns pad_txt[14]')
del_items(2148624696)
set_type(2148624696, 'int CtrlBorder')
del_items(2148630960)
set_type(2148630960, 'struct CScreen CtrlScreen')
del_items(2148631088)
set_type(2148631088, 'struct Dialog CtrlBack')
del_items(2148164676)
set_type(2148164676, 'int controller_defaults[2][20]')
del_items(2148624800)
set_type(2148624800, 'int gr_scrxoff')
del_items(2148624804)
set_type(2148624804, 'int gr_scryoff')
del_items(2148624812)
set_type(2148624812, 'unsigned short water_clut')
del_items(2148624816)
set_type(2148624816, 'char visible_level')
del_items(2148624797)
set_type(2148624797, 'char last_type')
del_items(2148624818)
set_type(2148624818, 'char daylight')
del_items(2148624814)
set_type(2148624814, 'char cow_in_sight')
del_items(2148624815)
set_type(2148624815, 'char inn_in_sight')
del_items(2148624808)
set_type(2148624808, 'unsigned int water_count')
del_items(2148624817)
set_type(2148624817, 'unsigned char lastrnd')
del_items(2148624820)
set_type(2148624820, 'int call_clock')
del_items(2148624836)
set_type(2148624836, 'int TitleAnimCount')
del_items(2148585104)
set_type(2148585104, 'unsigned char light_tile[55]')
del_items(2148624936)
set_type(2148624936, 'int p1scrnx')
del_items(2148624940)
set_type(2148624940, 'int p1scrny')
del_items(2148624944)
set_type(2148624944, 'int p1wrldx')
del_items(2148624948)
set_type(2148624948, 'int p1wrldy')
del_items(2148624952)
set_type(2148624952, 'int p2scrnx')
del_items(2148624956)
set_type(2148624956, 'int p2scrny')
del_items(2148624960)
set_type(2148624960, 'int p2wrldx')
del_items(2148624964)
set_type(2148624964, 'int p2wrldy')
del_items(2148629232)
set_type(2148629232, 'int p1spiny1')
del_items(2148629236)
set_type(2148629236, 'int p1spiny2')
del_items(2148629240)
set_type(2148629240, 'int p1scale')
del_items(2148629244)
set_type(2148629244, 'int p1apocaflag')
del_items(2148629248)
set_type(2148629248, 'int p1apocaxpos')
del_items(2148629252)
set_type(2148629252, 'int p1apocaypos')
del_items(2148629256)
set_type(2148629256, 'int p2spiny1')
del_items(2148629260)
set_type(2148629260, 'int p2spiny2')
del_items(2148629264)
set_type(2148629264, 'int p2scale')
del_items(2148629268)
set_type(2148629268, 'int p2apocaflag')
del_items(2148629272)
set_type(2148629272, 'int p2apocaxpos')
del_items(2148629276)
set_type(2148629276, 'int p2apocaypos')
del_items(2148631104)
set_type(2148631104, 'struct Particle PartArray[16]')
del_items(2148629280)
set_type(2148629280, 'int partOtPos')
del_items(2148624864)
set_type(2148624864, 'int p1teleflag')
del_items(2148624868)
set_type(2148624868, 'int p1phaseflag')
del_items(2148624872)
set_type(2148624872, 'int p1inviscount')
del_items(2148624876)
set_type(2148624876, 'int p2teleflag')
del_items(2148624880)
set_type(2148624880, 'int p2phaseflag')
del_items(2148624884)
set_type(2148624884, 'int p2inviscount')
del_items(2148624888)
set_type(2148624888, 'int SetParticle')
del_items(2148624892)
set_type(2148624892, 'int p1partexecnum')
del_items(2148624896)
set_type(2148624896, 'int p2partexecnum')
del_items(2148164836)
set_type(2148164836, 'int JumpArray[8]')
del_items(2148624900)
set_type(2148624900, 'int partjumpflag')
del_items(2148624904)
set_type(2148624904, 'int partglowflag')
del_items(2148624908)
set_type(2148624908, 'int partcolour')
del_items(2148624912)
set_type(2148624912, 'int healflag')
del_items(2148624916)
set_type(2148624916, 'int healtime')
del_items(2148624920)
set_type(2148624920, 'int healplyr')
del_items(2148625025)
set_type(2148625025, 'unsigned char select_flag')
del_items(2148629284)
set_type(2148629284, 'struct RECT SelectRect')
del_items(2148629292)
set_type(2148629292, 'char item_select')
del_items(2148164868)
set_type(2148164868, 'short _psplxpos[3][2]')
del_items(2148164880)
set_type(2148164880, 'short _psplypos[3][2]')
del_items(2148625028)
set_type(2148625028, 'char _psplpos[2]')
del_items(2148625032)
set_type(2148625032, 'char spl_maxrad[2]')
del_items(2148625036)
set_type(2148625036, 'int splangle[2]')
del_items(2148624980)
set_type(2148624980, 'struct CPlayer *gplayer')
del_items(2148624984)
set_type(2148624984, 'unsigned char _pSplTargetX[2]')
del_items(2148624988)
set_type(2148624988, 'unsigned char _pSplTargetY[2]')
del_items(2148624992)
set_type(2148624992, 'unsigned char _pTargetSpell[2]')
del_items(2148631680)
set_type(2148631680, 'struct Dialog SelectBack')
del_items(2148624996)
set_type(2148624996, 'int _pspotid[2]')
del_items(2148625004)
set_type(2148625004, 'int QSpell[2]')
del_items(2148625012)
set_type(2148625012, 'char _spltotype[2]')
del_items(2148625016)
set_type(2148625016, 'char mana_order[4]')
del_items(2148625020)
set_type(2148625020, 'char health_order[4]')
del_items(2148625024)
set_type(2148625024, 'unsigned char birdcheck')
del_items(2148631696)
set_type(2148631696, 'struct TextDat *DecRequestors[10]')
del_items(2148629296)
set_type(2148629296, 'unsigned short progress')
del_items(2148585356)
set_type(2148585356, 'unsigned short Level2CutScreen[20]')
del_items(2148625068)
set_type(2148625068, 'char *CutString')
del_items(2148631736)
set_type(2148631736, 'struct CScreen Scr')
del_items(2148625072)
set_type(2148625072, 'struct TASK *CutScreenTSK')
del_items(2148625076)
set_type(2148625076, 'bool GameLoading')
del_items(2148631864)
set_type(2148631864, 'struct Dialog LBack')
del_items(2148625092)
set_type(2148625092, 'unsigned int card_ev0')
del_items(2148625096)
set_type(2148625096, 'unsigned int card_ev1')
del_items(2148625100)
set_type(2148625100, 'unsigned int card_ev2')
del_items(2148625104)
set_type(2148625104, 'unsigned int card_ev3')
del_items(2148625108)
set_type(2148625108, 'unsigned int card_ev10')
del_items(2148625112)
set_type(2148625112, 'unsigned int card_ev11')
del_items(2148625116)
set_type(2148625116, 'unsigned int card_ev12')
del_items(2148625120)
set_type(2148625120, 'unsigned int card_ev13')
del_items(2148625124)
set_type(2148625124, 'int card_dirty[2]')
del_items(2148625132)
set_type(2148625132, 'struct TASK *MemcardTask')
del_items(2148625136)
set_type(2148625136, 'int card_event')
del_items(2148625088)
set_type(2148625088, 'void (*mem_card_event_handler)()')
del_items(2148625080)
set_type(2148625080, 'bool MemCardActive')
del_items(2148625084)
set_type(2148625084, 'int never_hooked_events')
del_items(2148629300)
set_type(2148629300, 'unsigned long MasterVol')
del_items(2148629304)
set_type(2148629304, 'unsigned long MusicVol')
del_items(2148629308)
set_type(2148629308, 'unsigned long SoundVol')
del_items(2148629312)
set_type(2148629312, 'unsigned long VideoVol')
del_items(2148629316)
set_type(2148629316, 'unsigned long SpeechVol')
del_items(2148629320)
set_type(2148629320, 'struct TextDat *Slider')
del_items(2148629324)
set_type(2148629324, 'int sw')
del_items(2148629328)
set_type(2148629328, 'int sx')
del_items(2148629332)
set_type(2148629332, 'int sy')
del_items(2148629336)
set_type(2148629336, 'unsigned char Adjust')
del_items(2148629337)
set_type(2148629337, 'unsigned char qspin')
del_items(2148629338)
set_type(2148629338, 'unsigned char lqspin')
del_items(2148629340)
set_type(2148629340, 'enum LANG_TYPE OrigLang')
del_items(2148629344)
set_type(2148629344, 'enum LANG_TYPE OldLang')
del_items(2148629348)
set_type(2148629348, 'enum LANG_TYPE NewLang')
del_items(2148625308)
set_type(2148625308, 'int ReturnMenu')
del_items(2148629356)
set_type(2148629356, 'struct RECT ORect')
del_items(2148625176)
set_type(2148625176, 'bool optionsflag')
del_items(2148625164)
set_type(2148625164, 'int cmenu')
del_items(2148625184)
set_type(2148625184, 'int options_pad')
del_items(2148625188)
set_type(2148625188, 'char *PrevTxt')
del_items(2148625172)
set_type(2148625172, 'bool allspellsflag')
del_items(2148166896)
set_type(2148166896, 'short Circle[64]')
del_items(2148625152)
set_type(2148625152, 'int Spacing')
del_items(2148625156)
set_type(2148625156, 'int cs')
del_items(2148625160)
set_type(2148625160, 'int lastcs')
del_items(2148625168)
set_type(2148625168, 'bool MemcardOverlay')
del_items(2148625180)
set_type(2148625180, 'int saveflag')
del_items(2148629364)
set_type(2148629364, 'char *McState[2]')
del_items(2148625192)
set_type(2148625192, 'char *BlankEntry')
del_items(2148164892)
set_type(2148164892, 'struct OMENUITEM MainMenu[7]')
del_items(2148165060)
set_type(2148165060, 'struct OMENUITEM GameMenu[8]')
del_items(2148165252)
set_type(2148165252, 'struct OMENUITEM SoundMenu[6]')
del_items(2148165396)
set_type(2148165396, 'struct OMENUITEM CentreMenu[7]')
del_items(2148165564)
set_type(2148165564, 'struct OMENUITEM LangMenu[7]')
del_items(2148165732)
set_type(2148165732, 'struct OMENUITEM MemcardMenu[4]')
del_items(2148165828)
set_type(2148165828, 'struct OMENUITEM MemcardGameMenu[6]')
del_items(2148165972)
set_type(2148165972, 'struct OMENUITEM MemcardCharacterMenu[4]')
del_items(2148166068)
set_type(2148166068, 'struct OMENUITEM MemcardSelectCard1[7]')
del_items(2148166236)
set_type(2148166236, 'struct OMENUITEM MemcardSelectCard2[7]')
del_items(2148166404)
set_type(2148166404, 'struct OMENUITEM MemcardFormatMenu[4]')
del_items(2148166500)
set_type(2148166500, 'struct OMENUITEM CheatMenu[8]')
del_items(2148166692)
set_type(2148166692, 'struct OMENUITEM InfoMenu[2]')
del_items(2148166740)
set_type(2148166740, 'struct OMENULIST MenuList[13]')
del_items(2148625280)
set_type(2148625280, 'bool debounce')
del_items(2148625284)
set_type(2148625284, 'bool pu')
del_items(2148625288)
set_type(2148625288, 'bool pd')
del_items(2148625292)
set_type(2148625292, 'bool pl')
del_items(2148625296)
set_type(2148625296, 'bool pr')
del_items(2148625300)
set_type(2148625300, 'unsigned char uc')
del_items(2148625301)
set_type(2148625301, 'unsigned char dc')
del_items(2148625302)
set_type(2148625302, 'unsigned char lc')
del_items(2148625303)
set_type(2148625303, 'unsigned char rc')
del_items(2148625304)
set_type(2148625304, 'char centrestep')
del_items(2148167024)
set_type(2148167024, 'struct BIRDSTRUCT BirdList[16]')
del_items(2148625321)
set_type(2148625321, 'char hop_height')
del_items(2148625324)
set_type(2148625324, 'struct Perch perches[4]')
del_items(2148167408)
set_type(2148167408, 'struct StrInfo FmvTab[7]')
del_items(2148625384)
set_type(2148625384, 'int FeBackX')
del_items(2148625388)
set_type(2148625388, 'int FeBackY')
del_items(2148625392)
set_type(2148625392, 'int FeBackW')
del_items(2148625396)
set_type(2148625396, 'int FeBackH')
del_items(2148625400)
set_type(2148625400, 'unsigned char FeFlag')
del_items(2148169584)
set_type(2148169584, 'struct FeStruct FeBuffer[40]')
del_items(2148629372)
set_type(2148629372, 'struct FE_CREATE *CStruct')
del_items(2148625404)
set_type(2148625404, 'int FeBufferCount')
del_items(2148625408)
set_type(2148625408, 'int FeNoOfPlayers')
del_items(2148625412)
set_type(2148625412, 'int FePlayerNo')
del_items(2148625416)
set_type(2148625416, 'int FeChrClass[2]')
del_items(2148170544)
set_type(2148170544, 'char FePlayerName[11][2]')
del_items(2148625424)
set_type(2148625424, 'struct FeTable *FeCurMenu')
del_items(2148625428)
set_type(2148625428, 'unsigned char FePlayerNameFlag[2]')
del_items(2148625432)
set_type(2148625432, 'unsigned long FeCount')
del_items(2148625436)
set_type(2148625436, 'int fileselect')
del_items(2148625440)
set_type(2148625440, 'int BookMenu')
del_items(2148625444)
set_type(2148625444, 'int FeAttractMode')
del_items(2148625448)
set_type(2148625448, 'int FMVPress')
del_items(2148625344)
set_type(2148625344, 'struct TextDat *FeTData')
del_items(2148625348)
set_type(2148625348, 'struct TextDat *FlameTData')
del_items(2148625352)
set_type(2148625352, 'unsigned char FeIsAVirgin')
del_items(2148625356)
set_type(2148625356, 'int FeMenuDelay')
del_items(2148167632)
set_type(2148167632, 'struct FeTable DummyMenu')
del_items(2148167660)
set_type(2148167660, 'struct FeTable FeMainMenu')
del_items(2148167688)
set_type(2148167688, 'struct FeTable FeNewGameMenu')
del_items(2148167716)
set_type(2148167716, 'struct FeTable FeNewP1ClassMenu')
del_items(2148167744)
set_type(2148167744, 'struct FeTable FeNewP1NameMenu')
del_items(2148167772)
set_type(2148167772, 'struct FeTable FeNewP2ClassMenu')
del_items(2148167800)
set_type(2148167800, 'struct FeTable FeNewP2NameMenu')
del_items(2148167828)
set_type(2148167828, 'struct FeTable FeDifficultyMenu')
del_items(2148167856)
set_type(2148167856, 'struct FeTable FeBackgroundMenu')
del_items(2148167884)
set_type(2148167884, 'struct FeTable FeBook1Menu')
del_items(2148167912)
set_type(2148167912, 'struct FeTable FeBook2Menu')
del_items(2148167940)
set_type(2148167940, 'struct FeTable FeLoadCharMenu')
del_items(2148167968)
set_type(2148167968, 'struct FeTable FeLoadChar1Menu')
del_items(2148167996)
set_type(2148167996, 'struct FeTable FeLoadChar2Menu')
del_items(2148625360)
set_type(2148625360, 'char *LoadErrorText')
del_items(2148168024)
set_type(2148168024, 'struct FeMenuTable FeMainMenuTable[5]')
del_items(2148168144)
set_type(2148168144, 'struct FeMenuTable FeNewGameMenuTable[3]')
del_items(2148168216)
set_type(2148168216, 'struct FeMenuTable FePlayerClassMenuTable[5]')
del_items(2148168336)
set_type(2148168336, 'struct FeMenuTable FeNameEngMenuTable[31]')
del_items(2148169080)
set_type(2148169080, 'struct FeMenuTable FeMemcardMenuTable[3]')
del_items(2148169152)
set_type(2148169152, 'struct FeMenuTable FeDifficultyMenuTable[4]')
del_items(2148169248)
set_type(2148169248, 'struct FeMenuTable FeBackgroundMenuTable[4]')
del_items(2148169344)
set_type(2148169344, 'struct FeMenuTable FeBook1MenuTable[5]')
del_items(2148169464)
set_type(2148169464, 'struct FeMenuTable FeBook2MenuTable[5]')
del_items(2148625372)
set_type(2148625372, 'unsigned long AttractTitleDelay')
del_items(2148625376)
set_type(2148625376, 'unsigned long AttractMainDelay')
del_items(2148625380)
set_type(2148625380, 'int FMVEndPad')
del_items(2148625500)
set_type(2148625500, 'int InCredits')
del_items(2148625504)
set_type(2148625504, 'int CreditTitleNo')
del_items(2148625508)
set_type(2148625508, 'int CreditSubTitleNo')
del_items(2148625528)
set_type(2148625528, 'int card_status[2]')
del_items(2148625536)
set_type(2148625536, 'int card_usable[2]')
del_items(2148625544)
set_type(2148625544, 'int card_files[2]')
del_items(2148625552)
set_type(2148625552, 'int card_changed[2]')
del_items(2148625672)
set_type(2148625672, 'char *AlertTxt')
del_items(2148625676)
set_type(2148625676, 'int current_card')
del_items(2148625680)
set_type(2148625680, 'int LoadType')
del_items(2148625684)
set_type(2148625684, 'int McMenuPos')
del_items(2148625688)
set_type(2148625688, 'struct FeTable *McCurMenu')
del_items(2148625604)
set_type(2148625604, 'char *OText3')
del_items(2148625668)
set_type(2148625668, 'bool fileinfoflag')
del_items(2148625632)
set_type(2148625632, 'char *DiabloGameFile')
del_items(2148625576)
set_type(2148625576, 'char *Text3')
del_items(2148625600)
set_type(2148625600, 'char *OText2')
del_items(2148625608)
set_type(2148625608, 'char *OText4')
del_items(2148625612)
set_type(2148625612, 'char *OText5')
del_items(2148625616)
set_type(2148625616, 'char *OText7')
del_items(2148625620)
set_type(2148625620, 'char *OText8')
del_items(2148625624)
set_type(2148625624, 'char *SaveError')
del_items(2148625572)
set_type(2148625572, 'char *Text1')
del_items(2148625580)
set_type(2148625580, 'char *Text5')
del_items(2148625584)
set_type(2148625584, 'char *Text6')
del_items(2148625588)
set_type(2148625588, 'char *Text7')
del_items(2148625592)
set_type(2148625592, 'char *Text8')
del_items(2148625596)
set_type(2148625596, 'char *Text9')
del_items(2148625628)
set_type(2148625628, 'char *ContText')
del_items(2148625660)
set_type(2148625660, 'char *McState_addr_80116CFC[2]')
del_items(2148629376)
set_type(2148629376, 'int t1')
del_items(2148629380)
set_type(2148629380, 'int t2')
del_items(2148631880)
set_type(2148631880, 'struct DRAWENV draw[2]')
del_items(2148632072)
set_type(2148632072, 'struct DecEnv dec')
del_items(2148629384)
set_type(2148629384, 'unsigned long oldHeapbase')
del_items(2148629388)
set_type(2148629388, 'struct SndVolume oldVolume')
del_items(2148629392)
set_type(2148629392, 'char *ringName')
del_items(2148625736)
set_type(2148625736, 'struct STRHDR *ringSH')
del_items(2148625740)
set_type(2148625740, 'struct cdstreamstruct *FMVStream')
del_items(2148629396)
set_type(2148629396, 'unsigned short *DCTTab')
del_items(2148625702)
set_type(2148625702, 'short firstFrame')
del_items(2148625704)
set_type(2148625704, 'short numSkipped')
del_items(2148625706)
set_type(2148625706, 'short prevFrameNum')
del_items(2148625708)
set_type(2148625708, 'unsigned short maxRunLevel')
del_items(2148625712)
set_type(2148625712, 'unsigned long *ringBuf')
del_items(2148625716)
set_type(2148625716, 'int ringcount')
del_items(2148625720)
set_type(2148625720, 'int ringpos')
del_items(2148625724)
set_type(2148625724, 'int ringsec')
del_items(2148625728)
set_type(2148625728, 'int ringHnd')
del_items(2148625732)
set_type(2148625732, 'bool SecGot')
del_items(2148625900)
set_type(2148625900, 'unsigned char *pStatusPanel')
del_items(2148625904)
set_type(2148625904, 'unsigned char *pGBoxBuff')
del_items(2148625908)
set_type(2148625908, 'unsigned char dropGoldFlag')
del_items(2148625912)
set_type(2148625912, 'unsigned char _pinfoflag[2]')
del_items(2148172072)
set_type(2148172072, 'char _infostr[256][2]')
del_items(2148625916)
set_type(2148625916, 'char _infoclr[2]')
del_items(2148172584)
set_type(2148172584, 'char tempstr[256]')
del_items(2148625918)
set_type(2148625918, 'unsigned char drawhpflag')
del_items(2148625919)
set_type(2148625919, 'unsigned char drawmanaflag')
del_items(2148625920)
set_type(2148625920, 'unsigned char chrflag')
del_items(2148625921)
set_type(2148625921, 'unsigned char drawbtnflag')
del_items(2148625922)
set_type(2148625922, 'unsigned char panbtndown')
del_items(2148625923)
set_type(2148625923, 'unsigned char panelflag')
del_items(2148625924)
set_type(2148625924, 'unsigned char chrbtndown')
del_items(2148625925)
set_type(2148625925, 'unsigned char lvlbtndown')
del_items(2148625926)
set_type(2148625926, 'unsigned char sbookflag')
del_items(2148625927)
set_type(2148625927, 'unsigned char talkflag')
del_items(2148625928)
set_type(2148625928, 'int dropGoldValue')
del_items(2148625932)
set_type(2148625932, 'int initialDropGoldValue')
del_items(2148625936)
set_type(2148625936, 'int initialDropGoldIndex')
del_items(2148625940)
set_type(2148625940, 'unsigned char *pPanelButtons')
del_items(2148625944)
set_type(2148625944, 'unsigned char *pPanelText')
del_items(2148625948)
set_type(2148625948, 'unsigned char *pManaBuff')
del_items(2148625952)
set_type(2148625952, 'unsigned char *pLifeBuff')
del_items(2148625956)
set_type(2148625956, 'unsigned char *pChrPanel')
del_items(2148625960)
set_type(2148625960, 'unsigned char *pChrButtons')
del_items(2148625964)
set_type(2148625964, 'unsigned char *pSpellCels')
del_items(2148632192)
set_type(2148632192, 'char _panelstr[64][8][2]')
del_items(2148633216)
set_type(2148633216, 'int _pstrjust[8][2]')
del_items(2148629400)
set_type(2148629400, 'int _pnumlines[2]')
del_items(2148625968)
set_type(2148625968, 'struct RECT *InfoBoxRect')
del_items(2148625972)
set_type(2148625972, 'struct RECT CSRect')
del_items(2148629416)
set_type(2148629416, 'int _pSpell[2]')
del_items(2148629424)
set_type(2148629424, 'int _pSplType[2]')
del_items(2148629432)
set_type(2148629432, 'unsigned char panbtn[8]')
del_items(2148625980)
set_type(2148625980, 'int numpanbtns')
del_items(2148625984)
set_type(2148625984, 'unsigned char *pDurIcons')
del_items(2148625988)
set_type(2148625988, 'unsigned char drawdurflag')
del_items(2148629440)
set_type(2148629440, 'unsigned char chrbtn[4]')
del_items(2148625989)
set_type(2148625989, 'unsigned char chrbtnactive')
del_items(2148625992)
set_type(2148625992, 'unsigned char *pSpellBkCel')
del_items(2148625996)
set_type(2148625996, 'unsigned char *pSBkBtnCel')
del_items(2148626000)
set_type(2148626000, 'unsigned char *pSBkIconCels')
del_items(2148626004)
set_type(2148626004, 'int sbooktab')
del_items(2148626008)
set_type(2148626008, 'int cur_spel')
del_items(2148629444)
set_type(2148629444, 'long talkofs')
del_items(2148633296)
set_type(2148633296, 'char sgszTalkMsg[80]')
del_items(2148629448)
set_type(2148629448, 'unsigned char sgbTalkSavePos')
del_items(2148629449)
set_type(2148629449, 'unsigned char sgbNextTalkSave')
del_items(2148629450)
set_type(2148629450, 'unsigned char sgbPlrTalkTbl[2]')
del_items(2148629452)
set_type(2148629452, 'unsigned char *pTalkPanel')
del_items(2148629456)
set_type(2148629456, 'unsigned char *pMultiBtns')
del_items(2148629460)
set_type(2148629460, 'unsigned char *pTalkBtns')
del_items(2148629464)
set_type(2148629464, 'unsigned char talkbtndown[3]')
del_items(2148586912)
set_type(2148586912, 'unsigned char gbFontTransTbl[256]')
del_items(2148586720)
set_type(2148586720, 'unsigned char fontkern[68]')
del_items(2148170588)
set_type(2148170588, 'char SpellITbl[37]')
del_items(2148625753)
set_type(2148625753, 'unsigned char DrawLevelUpFlag')
del_items(2148625792)
set_type(2148625792, 'struct TASK *_spselflag[2]')
del_items(2148625788)
set_type(2148625788, 'unsigned char spspelstate')
del_items(2148625852)
set_type(2148625852, 'bool initchr')
del_items(2148625756)
set_type(2148625756, 'int SPLICONNO')
del_items(2148625760)
set_type(2148625760, 'int SPLICONY')
del_items(2148629408)
set_type(2148629408, 'int SPLICONRIGHT')
del_items(2148625764)
set_type(2148625764, 'int scx')
del_items(2148625768)
set_type(2148625768, 'int scy')
del_items(2148625772)
set_type(2148625772, 'int scx1')
del_items(2148625776)
set_type(2148625776, 'int scy1')
del_items(2148625780)
set_type(2148625780, 'int scx2')
del_items(2148625784)
set_type(2148625784, 'int scy2')
del_items(2148625800)
set_type(2148625800, 'char SpellCol')
del_items(2148170568)
set_type(2148170568, 'unsigned char SpellColors[18]')
del_items(2148170628)
set_type(2148170628, 'int PanBtnPos[5][8]')
del_items(2148170788)
set_type(2148170788, 'char *PanBtnHotKey[8]')
del_items(2148170820)
set_type(2148170820, 'unsigned long PanBtnStr[8]')
del_items(2148170852)
set_type(2148170852, 'int SpellPages[5][5]')
del_items(2148625836)
set_type(2148625836, 'int lus')
del_items(2148625840)
set_type(2148625840, 'int CsNo')
del_items(2148625844)
set_type(2148625844, 'char plusanim')
del_items(2148633280)
set_type(2148633280, 'struct Dialog CSBack')
del_items(2148625848)
set_type(2148625848, 'int CS_XOFF')
del_items(2148170952)
set_type(2148170952, 'struct CSDATA CS_Tab[28]')
del_items(2148625856)
set_type(2148625856, 'int NoCSEntries')
del_items(2148625860)
set_type(2148625860, 'int SPALOFF')
del_items(2148625864)
set_type(2148625864, 'int paloffset1')
del_items(2148625868)
set_type(2148625868, 'int paloffset2')
del_items(2148625872)
set_type(2148625872, 'int paloffset3')
del_items(2148625876)
set_type(2148625876, 'int paloffset4')
del_items(2148625880)
set_type(2148625880, 'int pinc1')
del_items(2148625884)
set_type(2148625884, 'int pinc2')
del_items(2148625888)
set_type(2148625888, 'int pinc3')
del_items(2148625892)
set_type(2148625892, 'int pinc4')
del_items(2148626028)
set_type(2148626028, 'int _pcurs[2]')
del_items(2148626036)
set_type(2148626036, 'int cursW')
del_items(2148626040)
set_type(2148626040, 'int cursH')
del_items(2148626044)
set_type(2148626044, 'int icursW')
del_items(2148626048)
set_type(2148626048, 'int icursH')
del_items(2148626052)
set_type(2148626052, 'int icursW28')
del_items(2148626056)
set_type(2148626056, 'int icursH28')
del_items(2148626060)
set_type(2148626060, 'int cursmx')
del_items(2148626064)
set_type(2148626064, 'int cursmy')
del_items(2148626068)
set_type(2148626068, 'int _pcursmonst[2]')
del_items(2148626076)
set_type(2148626076, 'char _pcursobj[2]')
del_items(2148626080)
set_type(2148626080, 'char _pcursitem[2]')
del_items(2148626084)
set_type(2148626084, 'char _pcursinvitem[2]')
del_items(2148626088)
set_type(2148626088, 'char _pcursplr[2]')
del_items(2148626024)
set_type(2148626024, 'int sel_data')
del_items(2148172840)
set_type(2148172840, 'struct DeadStruct dead[31]')
del_items(2148626092)
set_type(2148626092, 'int spurtndx')
del_items(2148626096)
set_type(2148626096, 'int stonendx')
del_items(2148626100)
set_type(2148626100, 'unsigned char *pSquareCel')
del_items(2148626164)
set_type(2148626164, 'unsigned long ghInst')
del_items(2148626168)
set_type(2148626168, 'unsigned char svgamode')
del_items(2148626172)
set_type(2148626172, 'int MouseX')
del_items(2148626176)
set_type(2148626176, 'int MouseY')
del_items(2148626180)
set_type(2148626180, 'long gv1')
del_items(2148626184)
set_type(2148626184, 'long gv2')
del_items(2148626188)
set_type(2148626188, 'long gv3')
del_items(2148626192)
set_type(2148626192, 'long gv4')
del_items(2148626196)
set_type(2148626196, 'long gv5')
del_items(2148626200)
set_type(2148626200, 'unsigned char gbProcessPlayers')
del_items(2148173212)
set_type(2148173212, 'int DebugMonsters[10]')
del_items(2148173252)
set_type(2148173252, 'unsigned long glSeedTbl[17]')
del_items(2148173320)
set_type(2148173320, 'int gnLevelTypeTbl[17]')
del_items(2148626201)
set_type(2148626201, 'unsigned char gbDoEnding')
del_items(2148626202)
set_type(2148626202, 'unsigned char gbRunGame')
del_items(2148626203)
set_type(2148626203, 'unsigned char gbRunGameResult')
del_items(2148626204)
set_type(2148626204, 'unsigned char gbGameLoopStartup')
del_items(2148633376)
set_type(2148633376, 'int glEndSeed[17]')
del_items(2148633456)
set_type(2148633456, 'int glMid1Seed[17]')
del_items(2148633536)
set_type(2148633536, 'int glMid2Seed[17]')
del_items(2148633616)
set_type(2148633616, 'int glMid3Seed[17]')
del_items(2148629468)
set_type(2148629468, 'long *sg_previousFilter')
del_items(2148173388)
set_type(2148173388, 'int CreateEnv[12]')
del_items(2148626208)
set_type(2148626208, 'int Passedlvldir')
del_items(2148626212)
set_type(2148626212, 'unsigned char *TempStack')
del_items(2148626116)
set_type(2148626116, 'unsigned long ghMainWnd')
del_items(2148626120)
set_type(2148626120, 'unsigned char fullscreen')
del_items(2148626124)
set_type(2148626124, 'int force_redraw')
del_items(2148626144)
set_type(2148626144, 'unsigned char PauseMode')
del_items(2148626145)
set_type(2148626145, 'unsigned char FriendlyMode')
del_items(2148626129)
set_type(2148626129, 'unsigned char visiondebug')
del_items(2148626131)
set_type(2148626131, 'unsigned char light4flag')
del_items(2148626132)
set_type(2148626132, 'unsigned char leveldebug')
del_items(2148626133)
set_type(2148626133, 'unsigned char monstdebug')
del_items(2148626140)
set_type(2148626140, 'int debugmonsttypes')
del_items(2148626128)
set_type(2148626128, 'unsigned char cineflag')
del_items(2148626130)
set_type(2148626130, 'unsigned char scrollflag')
del_items(2148626134)
set_type(2148626134, 'unsigned char trigdebug')
del_items(2148626136)
set_type(2148626136, 'int setseed')
del_items(2148626148)
set_type(2148626148, 'int sgnTimeoutCurs')
del_items(2148626152)
set_type(2148626152, 'unsigned char sgbMouseDown')
del_items(2148175128)
set_type(2148175128, 'struct TownerStruct towner[16]')
del_items(2148626236)
set_type(2148626236, 'int numtowners')
del_items(2148626240)
set_type(2148626240, 'unsigned char storeflag')
del_items(2148626241)
set_type(2148626241, 'unsigned char boyloadflag')
del_items(2148626242)
set_type(2148626242, 'unsigned char bannerflag')
del_items(2148626244)
set_type(2148626244, 'unsigned char *pCowCels')
del_items(2148629472)
set_type(2148629472, 'unsigned long sgdwCowClicks')
del_items(2148629476)
set_type(2148629476, 'int sgnCowMsg')
del_items(2148174424)
set_type(2148174424, 'int Qtalklist[16][11]')
del_items(2148626228)
set_type(2148626228, 'unsigned long CowPlaying')
del_items(2148173436)
set_type(2148173436, 'char AnimOrder[148][6]')
del_items(2148174324)
set_type(2148174324, 'int TownCowX[3]')
del_items(2148174336)
set_type(2148174336, 'int TownCowY[3]')
del_items(2148174348)
set_type(2148174348, 'int TownCowDir[3]')
del_items(2148174360)
set_type(2148174360, 'int cowoffx[8]')
del_items(2148174392)
set_type(2148174392, 'int cowoffy[8]')
del_items(2148626268)
set_type(2148626268, 'int sfxdelay')
del_items(2148626272)
set_type(2148626272, 'int sfxdnum')
del_items(2148626260)
set_type(2148626260, 'struct SFXHDR *sghStream')
del_items(2148178712)
set_type(2148178712, 'struct TSFX sgSFX[979]')
del_items(2148626264)
set_type(2148626264, 'struct TSFX *sgpStreamSFX')
del_items(2148626276)
set_type(2148626276, 'long orgseed')
del_items(2148629480)
set_type(2148629480, 'long sglGameSeed')
del_items(2148626280)
set_type(2148626280, 'int SeedCount')
del_items(2148629484)
set_type(2148629484, 'struct CCritSect sgMemCrit')
del_items(2148629488)
set_type(2148629488, 'int sgnWidth')
del_items(2148626294)
set_type(2148626294, 'char msgflag')
del_items(2148626295)
set_type(2148626295, 'char msgdelay')
del_items(2148182804)
set_type(2148182804, 'char msgtable[80]')
del_items(2148182628)
set_type(2148182628, 'int MsgStrings[44]')
del_items(2148626293)
set_type(2148626293, 'char msgcnt')
del_items(2148629492)
set_type(2148629492, 'unsigned long sgdwProgress')
del_items(2148629496)
set_type(2148629496, 'unsigned long sgdwXY')
del_items(2148182884)
set_type(2148182884, 'unsigned char AllItemsUseable[157]')
del_items(2148587964)
set_type(2148587964, 'struct ItemDataStruct AllItemsList[157]')
del_items(2148592988)
set_type(2148592988, 'struct PLStruct PL_Prefix[84]')
del_items(2148596348)
set_type(2148596348, 'struct PLStruct PL_Suffix[96]')
del_items(2148600188)
set_type(2148600188, 'struct UItemStruct UniqueItemList[91]')
del_items(2148183416)
set_type(2148183416, 'struct ItemStruct item[128]')
del_items(2148202360)
set_type(2148202360, 'char itemactive[127]')
del_items(2148202488)
set_type(2148202488, 'char itemavail[127]')
del_items(2148202616)
set_type(2148202616, 'unsigned char UniqueItemFlag[128]')
del_items(2148626360)
set_type(2148626360, 'unsigned char uitemflag')
del_items(2148629500)
set_type(2148629500, 'int tem')
del_items(2148633688)
set_type(2148633688, 'struct ItemStruct curruitem')
del_items(2148633848)
set_type(2148633848, 'unsigned char itemhold[3][3]')
del_items(2148626364)
set_type(2148626364, 'int ScrollType')
del_items(2148202744)
set_type(2148202744, 'char ItemStr[128]')
del_items(2148626320)
set_type(2148626320, 'long numitems')
del_items(2148626324)
set_type(2148626324, 'int gnNumGetRecords')
del_items(2148183252)
set_type(2148183252, 'int ItemInvSnds[35]')
del_items(2148183044)
set_type(2148183044, 'unsigned char ItemCAnimTbl[169]')
del_items(2148607936)
set_type(2148607936, 'short Item2Frm[35]')
del_items(2148183216)
set_type(2148183216, 'unsigned char ItemAnimLs[35]')
del_items(2148626328)
set_type(2148626328, 'int *ItemAnimSnds')
del_items(2148626332)
set_type(2148626332, 'int idoppely')
del_items(2148626336)
set_type(2148626336, 'int ScrollFlag')
del_items(2148183392)
set_type(2148183392, 'int premiumlvladd[6]')
del_items(2148206372)
set_type(2148206372, 'struct LightListStruct2 LightList[40]')
del_items(2148206692)
set_type(2148206692, 'unsigned char lightactive[40]')
del_items(2148626384)
set_type(2148626384, 'int numlights')
del_items(2148626388)
set_type(2148626388, 'char lightmax')
del_items(2148206732)
set_type(2148206732, 'struct LightListStruct VisionList[32]')
del_items(2148626392)
set_type(2148626392, 'int numvision')
del_items(2148626396)
set_type(2148626396, 'unsigned char dovision')
del_items(2148626400)
set_type(2148626400, 'int visionid')
del_items(2148629504)
set_type(2148629504, 'int disp_mask')
del_items(2148629508)
set_type(2148629508, 'int weird')
del_items(2148629512)
set_type(2148629512, 'int disp_tab_r')
del_items(2148629516)
set_type(2148629516, 'int dispy_r')
del_items(2148629520)
set_type(2148629520, 'int disp_tab_g')
del_items(2148629524)
set_type(2148629524, 'int dispy_g')
del_items(2148629528)
set_type(2148629528, 'int disp_tab_b')
del_items(2148629532)
set_type(2148629532, 'int dispy_b')
del_items(2148629536)
set_type(2148629536, 'int radius')
del_items(2148629540)
set_type(2148629540, 'int bright')
del_items(2148633864)
set_type(2148633864, 'unsigned char mult_tab[128]')
del_items(2148626368)
set_type(2148626368, 'int lightflag')
del_items(2148205624)
set_type(2148205624, 'unsigned char vCrawlTable[30][23]')
del_items(2148206316)
set_type(2148206316, 'unsigned char RadiusAdj[23]')
del_items(2148202872)
set_type(2148202872, 'char CrawlTable[2749]')
del_items(2148626372)
set_type(2148626372, 'int restore_r')
del_items(2148626376)
set_type(2148626376, 'int restore_g')
del_items(2148626380)
set_type(2148626380, 'int restore_b')
del_items(2148206340)
set_type(2148206340, 'char radius_tab[16]')
del_items(2148206356)
set_type(2148206356, 'char bright_tab[16]')
del_items(2148626434)
set_type(2148626434, 'unsigned char qtextflag')
del_items(2148626436)
set_type(2148626436, 'int qtextSpd')
del_items(2148629544)
set_type(2148629544, 'unsigned char *pMedTextCels')
del_items(2148629548)
set_type(2148629548, 'unsigned char *pTextBoxCels')
del_items(2148629552)
set_type(2148629552, 'char *qtextptr')
del_items(2148629556)
set_type(2148629556, 'int qtexty')
del_items(2148629560)
set_type(2148629560, 'unsigned long qtextDelay')
del_items(2148629564)
set_type(2148629564, 'unsigned long sgLastScroll')
del_items(2148629568)
set_type(2148629568, 'unsigned long scrolltexty')
del_items(2148629572)
set_type(2148629572, 'long sglMusicVolumeSave')
del_items(2148626416)
set_type(2148626416, 'bool qtbodge')
del_items(2148207180)
set_type(2148207180, 'struct Dialog QBack')
del_items(2148626433)
set_type(2148626433, 'unsigned char CDFlip')
del_items(2148207196)
set_type(2148207196, 'struct MissileData missiledata[68]')
del_items(2148209100)
set_type(2148209100, 'struct MisFileData misfiledata[47]')
del_items(2148208828)
set_type(2148208828, 'void (*MissPrintRoutines[68])()')
del_items(2148209336)
set_type(2148209336, 'struct DLevel sgLevels[17]')
del_items(2148304128)
set_type(2148304128, 'struct LocalLevel sgLocals[17]')
del_items(2148633992)
set_type(2148633992, 'struct DJunk sgJunk')
del_items(2148629577)
set_type(2148629577, 'unsigned char sgbRecvCmd')
del_items(2148629580)
set_type(2148629580, 'unsigned long sgdwRecvOffset')
del_items(2148629584)
set_type(2148629584, 'unsigned char sgbDeltaChunks')
del_items(2148629585)
set_type(2148629585, 'unsigned char sgbDeltaChanged')
del_items(2148629588)
set_type(2148629588, 'unsigned long sgdwOwnerWait')
del_items(2148629592)
set_type(2148629592, 'struct TMegaPkt *sgpMegaPkt')
del_items(2148629596)
set_type(2148629596, 'struct TMegaPkt *sgpCurrPkt')
del_items(2148629600)
set_type(2148629600, 'int sgnCurrMegaPlayer')
del_items(2148626461)
set_type(2148626461, 'unsigned char deltaload')
del_items(2148626462)
set_type(2148626462, 'unsigned char gbBufferMsgs')
del_items(2148626464)
set_type(2148626464, 'unsigned long dwRecCount')
del_items(2148626486)
set_type(2148626486, 'unsigned char gbMaxPlayers')
del_items(2148626487)
set_type(2148626487, 'unsigned char gbActivePlayers')
del_items(2148626488)
set_type(2148626488, 'unsigned char gbGameDestroyed')
del_items(2148626489)
set_type(2148626489, 'unsigned char gbDeltaSender')
del_items(2148626490)
set_type(2148626490, 'unsigned char gbSelectProvider')
del_items(2148626491)
set_type(2148626491, 'unsigned char gbSomebodyWonGameKludge')
del_items(2148629604)
set_type(2148629604, 'unsigned char sgbSentThisCycle')
del_items(2148629608)
set_type(2148629608, 'unsigned long sgdwGameLoops')
del_items(2148629612)
set_type(2148629612, 'unsigned short sgwPackPlrOffsetTbl[2]')
del_items(2148629616)
set_type(2148629616, 'unsigned char sgbPlayerLeftGameTbl[2]')
del_items(2148629620)
set_type(2148629620, 'unsigned long sgdwPlayerLeftReasonTbl[2]')
del_items(2148629628)
set_type(2148629628, 'unsigned char sgbSendDeltaTbl[2]')
del_items(2148629636)
set_type(2148629636, 'struct _gamedata sgGameInitInfo')
del_items(2148629644)
set_type(2148629644, 'unsigned char sgbTimeout')
del_items(2148629648)
set_type(2148629648, 'long sglTimeoutStart')
del_items(2148626480)
set_type(2148626480, 'char gszVersionNumber[5]')
del_items(2148626485)
set_type(2148626485, 'unsigned char sgbNetInited')
del_items(2148307528)
set_type(2148307528, 'int ObjTypeConv[113]')
del_items(2148307980)
set_type(2148307980, 'struct ObjDataStruct AllObjects[99]')
del_items(2148609672)
set_type(2148609672, 'struct OBJ_LOAD_INFO ObjMasterLoadList[56]')
del_items(2148309996)
set_type(2148309996, 'struct ObjectStruct object[127]')
del_items(2148626524)
set_type(2148626524, 'long numobjects')
del_items(2148315584)
set_type(2148315584, 'char objectactive[127]')
del_items(2148315712)
set_type(2148315712, 'char objectavail[127]')
del_items(2148626528)
set_type(2148626528, 'unsigned char InitObjFlag')
del_items(2148626532)
set_type(2148626532, 'int trapid')
del_items(2148315840)
set_type(2148315840, 'char ObjFileList[40]')
del_items(2148626536)
set_type(2148626536, 'int trapdir')
del_items(2148626540)
set_type(2148626540, 'int leverid')
del_items(2148626516)
set_type(2148626516, 'int numobjfiles')
del_items(2148309764)
set_type(2148309764, 'int bxadd[8]')
del_items(2148309796)
set_type(2148309796, 'int byadd[8]')
del_items(2148309932)
set_type(2148309932, 'char shrineavail[26]')
del_items(2148309828)
set_type(2148309828, 'int shrinestrs[26]')
del_items(2148309960)
set_type(2148309960, 'int StoryBookName[9]')
del_items(2148626520)
set_type(2148626520, 'int myscale')
del_items(2148626560)
set_type(2148626560, 'unsigned char gbValidSaveFile')
del_items(2148626556)
set_type(2148626556, 'bool DoLoadedChar')
del_items(2148316384)
set_type(2148316384, 'struct PlayerStruct plr[2]')
del_items(2148626592)
set_type(2148626592, 'int myplr')
del_items(2148626596)
set_type(2148626596, 'int deathdelay')
del_items(2148626600)
set_type(2148626600, 'unsigned char deathflag')
del_items(2148626601)
set_type(2148626601, 'char light_rad')
del_items(2148626584)
set_type(2148626584, 'char light_level[5]')
del_items(2148316120)
set_type(2148316120, 'int MaxStats[4][3]')
del_items(2148626576)
set_type(2148626576, 'int PlrStructSize')
del_items(2148626580)
set_type(2148626580, 'int ItemStructSize')
del_items(2148315880)
set_type(2148315880, 'int plrxoff[9]')
del_items(2148315916)
set_type(2148315916, 'int plryoff[9]')
del_items(2148315952)
set_type(2148315952, 'int plrxoff2[9]')
del_items(2148315988)
set_type(2148315988, 'int plryoff2[9]')
del_items(2148316024)
set_type(2148316024, 'char PlrGFXAnimLens[11][3]')
del_items(2148316060)
set_type(2148316060, 'int StrengthTbl[3]')
del_items(2148316072)
set_type(2148316072, 'int MagicTbl[3]')
del_items(2148316084)
set_type(2148316084, 'int DexterityTbl[3]')
del_items(2148316096)
set_type(2148316096, 'int VitalityTbl[3]')
del_items(2148316108)
set_type(2148316108, 'int ToBlkTbl[3]')
del_items(2148316168)
set_type(2148316168, 'long ExpLvlsTbl[51]')
del_items(2148334520)
set_type(2148334520, 'struct QuestStruct quests[16]')
del_items(2148626660)
set_type(2148626660, 'unsigned char *pQLogCel')
del_items(2148626664)
set_type(2148626664, 'int ReturnLvlX')
del_items(2148626668)
set_type(2148626668, 'int ReturnLvlY')
del_items(2148626672)
set_type(2148626672, 'int ReturnLvl')
del_items(2148626676)
set_type(2148626676, 'int ReturnLvlT')
del_items(2148626680)
set_type(2148626680, 'int qfade')
del_items(2148626684)
set_type(2148626684, 'unsigned char rporttest')
del_items(2148626688)
set_type(2148626688, 'int qline')
del_items(2148626692)
set_type(2148626692, 'int numqlines')
del_items(2148626696)
set_type(2148626696, 'int qtopline')
del_items(2148634024)
set_type(2148634024, 'int qlist[16]')
del_items(2148629652)
set_type(2148629652, 'struct RECT QSRect')
del_items(2148626613)
set_type(2148626613, 'unsigned char questlog')
del_items(2148334208)
set_type(2148334208, 'struct QuestData questlist[16]')
del_items(2148626616)
set_type(2148626616, 'int ALLQUESTS')
del_items(2148334484)
set_type(2148334484, 'int QuestGroup1[3]')
del_items(2148334496)
set_type(2148334496, 'int QuestGroup2[3]')
del_items(2148334508)
set_type(2148334508, 'int QuestGroup3[3]')
del_items(2148626636)
set_type(2148626636, 'int QuestGroup4[2]')
del_items(2148626620)
set_type(2148626620, 'char questxoff[7]')
del_items(2148626628)
set_type(2148626628, 'char questyoff[7]')
del_items(2148334464)
set_type(2148334464, 'int questtrigstr[5]')
del_items(2148626644)
set_type(2148626644, 'int QS_PX')
del_items(2148626648)
set_type(2148626648, 'int QS_PY')
del_items(2148626652)
set_type(2148626652, 'int QS_PW')
del_items(2148626656)
set_type(2148626656, 'int QS_PH')
del_items(2148634088)
set_type(2148634088, 'struct Dialog QSBack')
del_items(2148334840)
set_type(2148334840, 'struct SpellData spelldata[37]')
del_items(2148626759)
set_type(2148626759, 'char stextflag')
del_items(2148336976)
set_type(2148336976, 'struct ItemStruct smithitem[20]')
del_items(2148339936)
set_type(2148339936, 'struct ItemStruct premiumitem[6]')
del_items(2148626760)
set_type(2148626760, 'int numpremium')
del_items(2148626764)
set_type(2148626764, 'int premiumlevel')
del_items(2148340824)
set_type(2148340824, 'struct ItemStruct witchitem[20]')
del_items(2148343784)
set_type(2148343784, 'struct ItemStruct boyitem')
del_items(2148626768)
set_type(2148626768, 'int boylevel')
del_items(2148343932)
set_type(2148343932, 'struct ItemStruct golditem')
del_items(2148344080)
set_type(2148344080, 'struct ItemStruct healitem[20]')
del_items(2148626772)
set_type(2148626772, 'char stextsize')
del_items(2148626773)
set_type(2148626773, 'unsigned char stextscrl')
del_items(2148629660)
set_type(2148629660, 'int stextsel')
del_items(2148629664)
set_type(2148629664, 'int stextlhold')
del_items(2148629668)
set_type(2148629668, 'int stextshold')
del_items(2148629672)
set_type(2148629672, 'int stextvhold')
del_items(2148629676)
set_type(2148629676, 'int stextsval')
del_items(2148629680)
set_type(2148629680, 'int stextsmax')
del_items(2148629684)
set_type(2148629684, 'int stextup')
del_items(2148629688)
set_type(2148629688, 'int stextdown')
del_items(2148629692)
set_type(2148629692, 'char stextscrlubtn')
del_items(2148629693)
set_type(2148629693, 'char stextscrldbtn')
del_items(2148629694)
set_type(2148629694, 'char SItemListFlag')
del_items(2148634104)
set_type(2148634104, 'struct STextStruct stext[24]')
del_items(2148347040)
set_type(2148347040, 'struct ItemStruct storehold[48]')
del_items(2148354144)
set_type(2148354144, 'char storehidx[48]')
del_items(2148629696)
set_type(2148629696, 'int storenumh')
del_items(2148629700)
set_type(2148629700, 'int gossipstart')
del_items(2148629704)
set_type(2148629704, 'int gossipend')
del_items(2148629708)
set_type(2148629708, 'struct RECT StoreBackRect')
del_items(2148629716)
set_type(2148629716, 'int talker')
del_items(2148626736)
set_type(2148626736, 'unsigned char *pSTextBoxCels')
del_items(2148626740)
set_type(2148626740, 'unsigned char *pSTextSlidCels')
del_items(2148626744)
set_type(2148626744, 'int *SStringY')
del_items(2148336764)
set_type(2148336764, 'struct Dialog SBack')
del_items(2148336780)
set_type(2148336780, 'int SStringYNorm[20]')
del_items(2148336860)
set_type(2148336860, 'int SStringYBuy[20]')
del_items(2148336940)
set_type(2148336940, 'int talkname[9]')
del_items(2148626758)
set_type(2148626758, 'unsigned char InStoreFlag')
del_items(2148613904)
set_type(2148613904, 'struct TextDataStruct alltext[269]')
del_items(2148626788)
set_type(2148626788, 'unsigned long gdwAllTextEntries')
del_items(2148629720)
set_type(2148629720, 'unsigned char *P3Tiles')
del_items(2148626804)
set_type(2148626804, 'int tile')
del_items(2148626820)
set_type(2148626820, 'unsigned char _trigflag[2]')
del_items(2148354760)
set_type(2148354760, 'struct TriggerStruct trigs[5]')
del_items(2148626824)
set_type(2148626824, 'int numtrigs')
del_items(2148626828)
set_type(2148626828, 'unsigned char townwarps[3]')
del_items(2148626832)
set_type(2148626832, 'int TWarpFrom')
del_items(2148354192)
set_type(2148354192, 'int TownDownList[11]')
del_items(2148354236)
set_type(2148354236, 'int TownWarp1List[13]')
del_items(2148354288)
set_type(2148354288, 'int L1UpList[12]')
del_items(2148354336)
set_type(2148354336, 'int L1DownList[10]')
del_items(2148354376)
set_type(2148354376, 'int L2UpList[3]')
del_items(2148354388)
set_type(2148354388, 'int L2DownList[5]')
del_items(2148354408)
set_type(2148354408, 'int L2TWarpUpList[3]')
del_items(2148354420)
set_type(2148354420, 'int L3UpList[15]')
del_items(2148354480)
set_type(2148354480, 'int L3DownList[9]')
del_items(2148354516)
set_type(2148354516, 'int L3TWarpUpList[14]')
del_items(2148354572)
set_type(2148354572, 'int L4UpList[4]')
del_items(2148354588)
set_type(2148354588, 'int L4DownList[6]')
del_items(2148354612)
set_type(2148354612, 'int L4TWarpUpList[4]')
del_items(2148354628)
set_type(2148354628, 'int L4PentaList[33]')
del_items(2148617376)
set_type(2148617376, 'char cursoff[10]')
del_items(2148626858)
set_type(2148626858, 'unsigned char gbMusicOn')
del_items(2148626859)
set_type(2148626859, 'unsigned char gbSoundOn')
del_items(2148626857)
set_type(2148626857, 'unsigned char gbSndInited')
del_items(2148626864)
set_type(2148626864, 'long sglMasterVolume')
del_items(2148626868)
set_type(2148626868, 'long sglMusicVolume')
del_items(2148626872)
set_type(2148626872, 'long sglSoundVolume')
del_items(2148626876)
set_type(2148626876, 'long sglSpeechVolume')
del_items(2148626860)
set_type(2148626860, 'unsigned char gbDupSounds')
del_items(2148626880)
set_type(2148626880, 'int sgnMusicTrack')
del_items(2148626884)
set_type(2148626884, 'struct SFXHDR *sghMusic')
del_items(2148617532)
set_type(2148617532, 'unsigned short sgszMusicTracks[6]')
del_items(2148626920)
set_type(2148626920, 'int _pcurr_inv[2]')
del_items(2148354840)
set_type(2148354840, 'struct found_objects _pfind_list[10][2]')
del_items(2148626928)
set_type(2148626928, 'char _pfind_index[2]')
del_items(2148626932)
set_type(2148626932, 'char _pfindx[2]')
del_items(2148626936)
set_type(2148626936, 'char _pfindy[2]')
del_items(2148626938)
set_type(2148626938, 'unsigned char automapmoved')
del_items(2148626908)
set_type(2148626908, 'unsigned char flyflag')
del_items(2148626900)
set_type(2148626900, 'char (*pad_styles[2])()')
del_items(2148626909)
set_type(2148626909, 'char speed_type')
del_items(2148626910)
set_type(2148626910, 'char sel_speed')
del_items(2148629724)
set_type(2148629724, 'unsigned long (*CurrentProc)()')
del_items(2148617912)
set_type(2148617912, 'struct MESSAGE_STR AllMsgs[10]')
del_items(2148626984)
set_type(2148626984, 'int NumOfStrings')
del_items(2148626940)
set_type(2148626940, 'enum LANG_TYPE LanguageType')
del_items(2148626944)
set_type(2148626944, 'long hndText')
del_items(2148626948)
set_type(2148626948, 'char **TextPtr')
del_items(2148626952)
set_type(2148626952, 'enum LANG_DB_NO LangDbNo')
del_items(2148627000)
set_type(2148627000, 'struct TextDat *MissDat')
del_items(2148627004)
set_type(2148627004, 'int CharFade')
del_items(2148627008)
set_type(2148627008, 'int rotateness')
del_items(2148627012)
set_type(2148627012, 'int spiralling_shape')
del_items(2148627016)
set_type(2148627016, 'int down')
del_items(2148354920)
set_type(2148354920, 'char MlTab[16]')
del_items(2148354936)
set_type(2148354936, 'char QlTab[16]')
del_items(2148354952)
set_type(2148354952, 'struct POLY_FT4 *(*ObjPrintFuncs[98])()')
del_items(2148627044)
set_type(2148627044, 'int MyXoff1')
del_items(2148627048)
set_type(2148627048, 'int MyYoff1')
del_items(2148627052)
set_type(2148627052, 'int MyXoff2')
del_items(2148627056)
set_type(2148627056, 'int MyYoff2')
del_items(2148627072)
set_type(2148627072, 'bool iscflag')
del_items(2148627085)
set_type(2148627085, 'unsigned char sgbFadedIn')
del_items(2148627086)
set_type(2148627086, 'unsigned char screenbright')
del_items(2148627088)
set_type(2148627088, 'int faderate')
del_items(2148627092)
set_type(2148627092, 'bool fading')
del_items(2148627120)
set_type(2148627120, 'unsigned char AmShiftTab[8]')
del_items(2148629728)
set_type(2148629728, 'unsigned char *tbuff')
del_items(2148629732)
set_type(2148629732, 'unsigned char HR1')
del_items(2148629733)
set_type(2148629733, 'unsigned char HR2')
del_items(2148629734)
set_type(2148629734, 'unsigned char HR3')
del_items(2148629735)
set_type(2148629735, 'unsigned char VR1')
del_items(2148629736)
set_type(2148629736, 'unsigned char VR2')
del_items(2148629737)
set_type(2148629737, 'unsigned char VR3')
del_items(2148627236)
set_type(2148627236, 'struct NODE *pHallList')
del_items(2148627240)
set_type(2148627240, 'int nRoomCnt')
del_items(2148627244)
set_type(2148627244, 'int nSx1')
del_items(2148627248)
set_type(2148627248, 'int nSy1')
del_items(2148627252)
set_type(2148627252, 'int nSx2')
del_items(2148627256)
set_type(2148627256, 'int nSy2')
del_items(2148627164)
set_type(2148627164, 'int Area_Min')
del_items(2148627168)
set_type(2148627168, 'int Room_Max')
del_items(2148627172)
set_type(2148627172, 'int Room_Min')
del_items(2148627176)
set_type(2148627176, 'unsigned char BIG3[6]')
del_items(2148627184)
set_type(2148627184, 'unsigned char BIG4[6]')
del_items(2148627192)
set_type(2148627192, 'unsigned char BIG6[6]')
del_items(2148627200)
set_type(2148627200, 'unsigned char BIG7[6]')
del_items(2148627208)
set_type(2148627208, 'unsigned char RUINS1[4]')
del_items(2148627212)
set_type(2148627212, 'unsigned char RUINS2[4]')
del_items(2148627216)
set_type(2148627216, 'unsigned char RUINS3[4]')
del_items(2148627220)
set_type(2148627220, 'unsigned char RUINS4[4]')
del_items(2148627224)
set_type(2148627224, 'unsigned char RUINS5[4]')
del_items(2148627228)
set_type(2148627228, 'unsigned char RUINS6[4]')
del_items(2148627232)
set_type(2148627232, 'unsigned char RUINS7[4]')
del_items(2148629740)
set_type(2148629740, 'int abyssx')
del_items(2148629744)
set_type(2148629744, 'unsigned char lavapool')
del_items(2148627396)
set_type(2148627396, 'int lockoutcnt')
del_items(2148627272)
set_type(2148627272, 'unsigned char L3TITE12[6]')
del_items(2148627280)
set_type(2148627280, 'unsigned char L3TITE13[6]')
del_items(2148627288)
set_type(2148627288, 'unsigned char L3CREV1[6]')
del_items(2148627296)
set_type(2148627296, 'unsigned char L3CREV2[6]')
del_items(2148627304)
set_type(2148627304, 'unsigned char L3CREV3[6]')
del_items(2148627312)
set_type(2148627312, 'unsigned char L3CREV4[6]')
del_items(2148627320)
set_type(2148627320, 'unsigned char L3CREV5[6]')
del_items(2148627328)
set_type(2148627328, 'unsigned char L3CREV6[6]')
del_items(2148627336)
set_type(2148627336, 'unsigned char L3CREV7[6]')
del_items(2148627344)
set_type(2148627344, 'unsigned char L3CREV8[6]')
del_items(2148627352)
set_type(2148627352, 'unsigned char L3CREV9[6]')
del_items(2148627360)
set_type(2148627360, 'unsigned char L3CREV10[6]')
del_items(2148627368)
set_type(2148627368, 'unsigned char L3CREV11[6]')
del_items(2148627376)
set_type(2148627376, 'unsigned char L3XTRA1[4]')
del_items(2148627380)
set_type(2148627380, 'unsigned char L3XTRA2[4]')
del_items(2148627384)
set_type(2148627384, 'unsigned char L3XTRA3[4]')
del_items(2148627388)
set_type(2148627388, 'unsigned char L3XTRA4[4]')
del_items(2148627392)
set_type(2148627392, 'unsigned char L3XTRA5[4]')
del_items(2148627400)
set_type(2148627400, 'int diabquad1x')
del_items(2148627404)
set_type(2148627404, 'int diabquad2x')
del_items(2148627408)
set_type(2148627408, 'int diabquad3x')
del_items(2148627412)
set_type(2148627412, 'int diabquad4x')
del_items(2148627416)
set_type(2148627416, 'int diabquad1y')
del_items(2148627420)
set_type(2148627420, 'int diabquad2y')
del_items(2148627424)
set_type(2148627424, 'int diabquad3y')
del_items(2148627428)
set_type(2148627428, 'int diabquad4y')
del_items(2148627432)
set_type(2148627432, 'int SP4x1')
del_items(2148627436)
set_type(2148627436, 'int SP4y1')
del_items(2148627440)
set_type(2148627440, 'int SP4x2')
del_items(2148627444)
set_type(2148627444, 'int SP4y2')
del_items(2148627448)
set_type(2148627448, 'int l4holdx')
del_items(2148627452)
set_type(2148627452, 'int l4holdy')
del_items(2148627468)
set_type(2148627468, 'unsigned char SkelKingTrans1[8]')
del_items(2148627476)
set_type(2148627476, 'unsigned char SkelKingTrans2[8]')
del_items(2148355344)
set_type(2148355344, 'unsigned char SkelKingTrans3[20]')
del_items(2148355364)
set_type(2148355364, 'unsigned char SkelKingTrans4[28]')
del_items(2148355392)
set_type(2148355392, 'unsigned char SkelChamTrans1[20]')
del_items(2148627484)
set_type(2148627484, 'unsigned char SkelChamTrans2[8]')
del_items(2148355412)
set_type(2148355412, 'unsigned char SkelChamTrans3[36]')
del_items(2148627728)
set_type(2148627728, 'bool DoUiForChooseMonster')
del_items(2148355448)
set_type(2148355448, 'char *MgToText[34]')
del_items(2148355584)
set_type(2148355584, 'int StoryText[3][3]')
del_items(2148355620)
set_type(2148355620, 'unsigned short dungeon[48][48]')
del_items(2148360228)
set_type(2148360228, 'unsigned char pdungeon[40][40]')
del_items(2148361828)
set_type(2148361828, 'unsigned char dflags[40][40]')
del_items(2148627764)
set_type(2148627764, 'int setpc_x')
del_items(2148627768)
set_type(2148627768, 'int setpc_y')
del_items(2148627772)
set_type(2148627772, 'int setpc_w')
del_items(2148627776)
set_type(2148627776, 'int setpc_h')
del_items(2148627780)
set_type(2148627780, 'unsigned char setloadflag')
del_items(2148627784)
set_type(2148627784, 'unsigned char *pMegaTiles')
del_items(2148363428)
set_type(2148363428, 'unsigned char nBlockTable[2049]')
del_items(2148365480)
set_type(2148365480, 'unsigned char nSolidTable[2049]')
del_items(2148367532)
set_type(2148367532, 'unsigned char nTransTable[2049]')
del_items(2148369584)
set_type(2148369584, 'unsigned char nMissileTable[2049]')
del_items(2148371636)
set_type(2148371636, 'unsigned char nTrapTable[2049]')
del_items(2148627788)
set_type(2148627788, 'int dminx')
del_items(2148627792)
set_type(2148627792, 'int dminy')
del_items(2148627796)
set_type(2148627796, 'int dmaxx')
del_items(2148627800)
set_type(2148627800, 'int dmaxy')
del_items(2148627804)
set_type(2148627804, 'int gnDifficulty')
del_items(2148627808)
set_type(2148627808, 'unsigned char currlevel')
del_items(2148627809)
set_type(2148627809, 'unsigned char leveltype')
del_items(2148627810)
set_type(2148627810, 'unsigned char setlevel')
del_items(2148627811)
set_type(2148627811, 'unsigned char setlvlnum')
del_items(2148627812)
set_type(2148627812, 'unsigned char setlvltype')
del_items(2148627816)
set_type(2148627816, 'int ViewX')
del_items(2148627820)
set_type(2148627820, 'int ViewY')
del_items(2148627824)
set_type(2148627824, 'int ViewDX')
del_items(2148627828)
set_type(2148627828, 'int ViewDY')
del_items(2148627832)
set_type(2148627832, 'int ViewBX')
del_items(2148627836)
set_type(2148627836, 'int ViewBY')
del_items(2148373688)
set_type(2148373688, 'struct ScrollStruct ScrollInfo')
del_items(2148627840)
set_type(2148627840, 'int LvlViewX')
del_items(2148627844)
set_type(2148627844, 'int LvlViewY')
del_items(2148627848)
set_type(2148627848, 'int btmbx')
del_items(2148627852)
set_type(2148627852, 'int btmby')
del_items(2148627856)
set_type(2148627856, 'int btmdx')
del_items(2148627860)
set_type(2148627860, 'int btmdy')
del_items(2148627864)
set_type(2148627864, 'int MicroTileLen')
del_items(2148627868)
set_type(2148627868, 'char TransVal')
del_items(2148373708)
set_type(2148373708, 'bool TransList[8]')
del_items(2148627872)
set_type(2148627872, 'int themeCount')
del_items(2148373740)
set_type(2148373740, 'struct map_info dung_map[108][108]')
del_items(2148513708)
set_type(2148513708, 'unsigned char dung_map_r[54][54]')
del_items(2148516624)
set_type(2148516624, 'unsigned char dung_map_g[54][54]')
del_items(2148519540)
set_type(2148519540, 'unsigned char dung_map_b[54][54]')
del_items(2148522456)
set_type(2148522456, 'struct MINIXY MinisetXY[17]')
del_items(2148627756)
set_type(2148627756, 'unsigned char *pSetPiece')
del_items(2148627760)
set_type(2148627760, 'int DungSize')
del_items(2148522916)
set_type(2148522916, 'struct ThemeStruct theme[50]')
del_items(2148627936)
set_type(2148627936, 'int numthemes')
del_items(2148627940)
set_type(2148627940, 'int zharlib')
del_items(2148627944)
set_type(2148627944, 'unsigned char armorFlag')
del_items(2148627945)
set_type(2148627945, 'unsigned char bCrossFlag')
del_items(2148627946)
set_type(2148627946, 'unsigned char weaponFlag')
del_items(2148627948)
set_type(2148627948, 'int themex')
del_items(2148627952)
set_type(2148627952, 'int themey')
del_items(2148627956)
set_type(2148627956, 'int themeVar1')
del_items(2148627960)
set_type(2148627960, 'unsigned char bFountainFlag')
del_items(2148627961)
set_type(2148627961, 'unsigned char cauldronFlag')
del_items(2148627962)
set_type(2148627962, 'unsigned char mFountainFlag')
del_items(2148627963)
set_type(2148627963, 'unsigned char pFountainFlag')
del_items(2148627964)
set_type(2148627964, 'unsigned char tFountainFlag')
del_items(2148627965)
set_type(2148627965, 'unsigned char treasureFlag')
del_items(2148627968)
set_type(2148627968, 'unsigned char ThemeGoodIn[4]')
del_items(2148522628)
set_type(2148522628, 'int ThemeGood[4]')
del_items(2148522644)
set_type(2148522644, 'int trm5x[25]')
del_items(2148522744)
set_type(2148522744, 'int trm5y[25]')
del_items(2148522844)
set_type(2148522844, 'int trm3x[9]')
del_items(2148522880)
set_type(2148522880, 'int trm3y[9]')
del_items(2148628152)
set_type(2148628152, 'int nummissiles')
del_items(2148523452)
set_type(2148523452, 'int missileactive[125]')
del_items(2148523952)
set_type(2148523952, 'int missileavail[125]')
del_items(2148628156)
set_type(2148628156, 'unsigned char MissilePreFlag')
del_items(2148524452)
set_type(2148524452, 'struct MissileStruct missile[125]')
del_items(2148628157)
set_type(2148628157, 'unsigned char ManashieldFlag')
del_items(2148628158)
set_type(2148628158, 'unsigned char ManashieldFlag2')
del_items(2148523316)
set_type(2148523316, 'int XDirAdd[8]')
del_items(2148523348)
set_type(2148523348, 'int YDirAdd[8]')
del_items(2148628133)
set_type(2148628133, 'unsigned char fadetor')
del_items(2148628134)
set_type(2148628134, 'unsigned char fadetog')
del_items(2148628135)
set_type(2148628135, 'unsigned char fadetob')
del_items(2148523380)
set_type(2148523380, 'unsigned char ValueTable[16]')
del_items(2148523396)
set_type(2148523396, 'unsigned char StringTable[9][6]')
del_items(2148534868)
set_type(2148534868, 'struct MonsterStruct monster[200]')
del_items(2148628252)
set_type(2148628252, 'long nummonsters')
del_items(2148557268)
set_type(2148557268, 'short monstactive[200]')
del_items(2148557668)
set_type(2148557668, 'short monstkills[200]')
del_items(2148558068)
set_type(2148558068, 'struct CMonster Monsters[16]')
del_items(2148628256)
set_type(2148628256, 'long monstimgtot')
del_items(2148628260)
set_type(2148628260, 'char totalmonsters')
del_items(2148628264)
set_type(2148628264, 'int uniquetrans')
del_items(2148629748)
set_type(2148629748, 'unsigned char sgbSaveSoundOn')
del_items(2148628208)
set_type(2148628208, 'char offset_x[8]')
del_items(2148628216)
set_type(2148628216, 'char offset_y[8]')
del_items(2148628184)
set_type(2148628184, 'char left[8]')
del_items(2148628192)
set_type(2148628192, 'char right[8]')
del_items(2148628200)
set_type(2148628200, 'char opposite[8]')
del_items(2148628172)
set_type(2148628172, 'int nummtypes')
del_items(2148628176)
set_type(2148628176, 'char animletter[7]')
del_items(2148534452)
set_type(2148534452, 'int MWVel[3][24]')
del_items(2148628224)
set_type(2148628224, 'char rnd5[4]')
del_items(2148628228)
set_type(2148628228, 'char rnd10[4]')
del_items(2148628232)
set_type(2148628232, 'char rnd20[4]')
del_items(2148628236)
set_type(2148628236, 'char rnd60[4]')
del_items(2148534740)
set_type(2148534740, 'void (*AiProc[32])()')
del_items(2148559308)
set_type(2148559308, 'struct MonsterData monsterdata[112]')
del_items(2148566028)
set_type(2148566028, 'char MonstConvTbl[128]')
del_items(2148566156)
set_type(2148566156, 'char MonstAvailTbl[112]')
del_items(2148566268)
set_type(2148566268, 'struct UniqMonstStruct UniqMonst[98]')
del_items(2148558772)
set_type(2148558772, 'int TransPals[134]')
del_items(2148558516)
set_type(2148558516, 'struct STONEPAL StonePals[32]')
del_items(2148568652)
set_type(2148568652, 'struct PortalStruct portal[4]')
del_items(2148628292)
set_type(2148628292, 'int portalindex')
del_items(2148568620)
set_type(2148568620, 'int WarpDropX[4]')
del_items(2148568636)
set_type(2148568636, 'int WarpDropY[4]')
del_items(2148628324)
set_type(2148628324, 'unsigned char invflag')
del_items(2148628325)
set_type(2148628325, 'unsigned char drawsbarflag')
del_items(2148628328)
set_type(2148628328, 'int InvBackY')
del_items(2148628332)
set_type(2148628332, 'int InvCursPos')
del_items(2148570412)
set_type(2148570412, 'struct ItemStruct InvSpareSlot')
del_items(2148570560)
set_type(2148570560, 'unsigned char InvSlotTable[74]')
del_items(2148628336)
set_type(2148628336, 'int InvBackAY')
del_items(2148628340)
set_type(2148628340, 'int InvSel')
del_items(2148628344)
set_type(2148628344, 'int ItemW')
del_items(2148628348)
set_type(2148628348, 'int ItemH')
del_items(2148628352)
set_type(2148628352, 'int ItemNo')
del_items(2148628356)
set_type(2148628356, 'unsigned char InvSpareFlag')
del_items(2148628360)
set_type(2148628360, 'struct RECT BRect')
del_items(2148628308)
set_type(2148628308, 'struct TextDat *InvPanelTData')
del_items(2148628312)
set_type(2148628312, 'struct TextDat *InvGfxTData')
del_items(2148568748)
set_type(2148568748, 'int AP2x2Tbl[10]')
del_items(2148568788)
set_type(2148568788, 'struct InvXY InvRect[74]')
del_items(2148569380)
set_type(2148569380, 'int InvGfxTable[168]')
del_items(2148570052)
set_type(2148570052, 'unsigned char InvItemWidth[180]')
del_items(2148570232)
set_type(2148570232, 'unsigned char InvItemHeight[180]')
del_items(2148628316)
set_type(2148628316, 'unsigned long sgdwLastTime')
del_items(2148628320)
set_type(2148628320, 'int InvSpareSel')
del_items(2148628377)
set_type(2148628377, 'unsigned char automapflag')
del_items(2148570636)
set_type(2148570636, 'unsigned char automapview[40][5]')
del_items(2148570836)
set_type(2148570836, 'unsigned short automaptype[512]')
del_items(2148628378)
set_type(2148628378, 'unsigned char AMLWallFlag')
del_items(2148628379)
set_type(2148628379, 'unsigned char AMRWallFlag')
del_items(2148628380)
set_type(2148628380, 'unsigned char AMLLWallFlag')
del_items(2148628381)
set_type(2148628381, 'unsigned char AMLRWallFlag')
del_items(2148628382)
set_type(2148628382, 'unsigned char AMDirtFlag')
del_items(2148628383)
set_type(2148628383, 'unsigned char AMColumnFlag')
del_items(2148628384)
set_type(2148628384, 'unsigned char AMStairFlag')
del_items(2148628385)
set_type(2148628385, 'unsigned char AMLDoorFlag')
del_items(2148628386)
set_type(2148628386, 'unsigned char AMLGrateFlag')
del_items(2148628387)
set_type(2148628387, 'unsigned char AMLArchFlag')
del_items(2148628388)
set_type(2148628388, 'unsigned char AMRDoorFlag')
del_items(2148628389)
set_type(2148628389, 'unsigned char AMRGrateFlag')
del_items(2148628390)
set_type(2148628390, 'unsigned char AMRArchFlag')
del_items(2148628392)
set_type(2148628392, 'int AutoMapX')
del_items(2148628396)
set_type(2148628396, 'int AutoMapY')
del_items(2148628400)
set_type(2148628400, 'int AutoMapXOfs')
del_items(2148628404)
set_type(2148628404, 'int AutoMapYOfs')
del_items(2148628408)
set_type(2148628408, 'int AMPlayerX')
del_items(2148628412)
set_type(2148628412, 'int AMPlayerY')
del_items(2148630096)
set_type(2148630096, 'unsigned long GazTick')
del_items(2148655520)
set_type(2148655520, 'unsigned long RndTabs[6]')
del_items(2148148624)
set_type(2148148624, 'unsigned long DefaultRnd[6]')
del_items(2148630136)
set_type(2148630136, 'void (*PollFunc)()')
del_items(2148630108)
set_type(2148630108, 'void (*MsgFunc)()')
del_items(2148630184)
set_type(2148630184, 'void (*ErrorFunc)()')
del_items(2148630116)
set_type(2148630116, 'void *LastPtr')
del_items(2148148680)
set_type(2148148680, 'struct MEM_INFO WorkMemInfo')
del_items(2148629884)
set_type(2148629884, 'struct MEM_INIT_INFO *MemInitBlocks')
del_items(2148647224)
set_type(2148647224, 'struct MEM_HDR MemHdrBlocks[80]')
del_items(2148629888)
set_type(2148629888, 'struct MEM_HDR *FreeBlocks')
del_items(2148629892)
set_type(2148629892, 'enum GAL_ERROR_CODE LastError')
del_items(2148629896)
set_type(2148629896, 'int TimeStamp')
del_items(2148629900)
set_type(2148629900, 'unsigned char FullErrorChecking')
del_items(2148629904)
set_type(2148629904, 'unsigned long LastAttemptedAlloc')
del_items(2148629908)
set_type(2148629908, 'unsigned long LastDeallocedBlock')
del_items(2148629912)
set_type(2148629912, 'enum GAL_VERB_LEV VerbLev')
del_items(2148629916)
set_type(2148629916, 'int NumOfFreeHdrs')
del_items(2148629920)
set_type(2148629920, 'unsigned long LastTypeAlloced')
del_items(2148629924)
set_type(2148629924, 'void (*AllocFilter)()')
del_items(2148148688)
set_type(2148148688, 'char *GalErrors[10]')
del_items(2148148728)
set_type(2148148728, 'struct MEM_INIT_INFO PhantomMem')
del_items(2148629928)
set_type(2148629928, 'struct TASK *ActiveTasks')
del_items(2148629932)
set_type(2148629932, 'struct TASK *CurrentTask')
del_items(2148629936)
set_type(2148629936, 'struct TASK *T')
del_items(2148629940)
set_type(2148629940, 'unsigned long MemTypeForTasker')
del_items(2148649784)
set_type(2148649784, 'int SchEnv[12]')
del_items(2148629944)
set_type(2148629944, 'unsigned long ExecId')
del_items(2148629948)
set_type(2148629948, 'unsigned long ExecMask')
del_items(2148629952)
set_type(2148629952, 'int TasksActive')
del_items(2148629956)
set_type(2148629956, 'void (*EpiFunc)()')
del_items(2148629960)
set_type(2148629960, 'void (*ProFunc)()')
del_items(2148629964)
set_type(2148629964, 'unsigned long EpiProId')
del_items(2148629968)
set_type(2148629968, 'unsigned long EpiProMask')
del_items(2148629972)
set_type(2148629972, 'void (*DoTasksPrologue)()')
del_items(2148629976)
set_type(2148629976, 'void (*DoTasksEpilogue)()')
del_items(2148629980)
set_type(2148629980, 'void (*StackFloodCallback)()')
del_items(2148629984)
set_type(2148629984, 'unsigned char ExtraStackProtection')
del_items(2148629988)
set_type(2148629988, 'int ExtraStackSizeLongs')
del_items(2148649832)
set_type(2148649832, 'char buf[4992]')
del_items(2148148768)
set_type(2148148768, 'char NULL_REP[7]') |
# ------------------------------------
# CODE BOOLA 2015 PYTHON WORKSHOP
# Mike Wu, Jonathan Chang, Kevin Tan
# Puzzle Challenges Number 4
# ------------------------------------
# Wow! You are doing this way faster
# than I thought you would. Slooooow
# doooowwwwwnnn...
# ------------------------------------
# INSTRUCTIONS:
# I almost forgot about working with
# strings. Can't forget that!
# Write a function that takes a single
# *string* argument and returns the
# reverse of the string.
# Using a FOR loop is optional.
# EXAMPLE:
# reverse("blah") => "halb"
# reverse("test") => "tset"
# reverse("racecar") => "racecar"
# HINT:
# You probably want to index through a
# string. Remember s[0] is the first
# index of the string and s[len(s)-1]
# is the last index of string.
# The sequence is:
# s[0], s[1], ..., s[len(s)-2], s[len(s)-1]
# How do you flip this with a for loop?
def reverse(s):
pass
| def reverse(s):
pass |
# import pytest
class TestTranslator:
def test___call__(self): # synced
assert True
def test_translate(self): # synced
assert True
def test_translate_recursively(self): # synced
assert True
def test_translate_json(self): # synced
assert True
class TestTranslatableMeta:
pass
class TestDoNotTranslateMeta:
pass
| class Testtranslator:
def test___call__(self):
assert True
def test_translate(self):
assert True
def test_translate_recursively(self):
assert True
def test_translate_json(self):
assert True
class Testtranslatablemeta:
pass
class Testdonottranslatemeta:
pass |
class RBTreeNode:
def __init__(self, val, parent=None):
self.val = val
self.black = True
self.left = None
self.right = None
self.parent = parent
class RBTree:
def __init__(self):
self.root = None
def get_root(self):
return self.root
def insert(self, val):
'Insert a new node that has specified value'
t = self.root
if not t:
self.root = RBTreeNode(val)
return self.root
while t:
parent = t
if t.val < val:
t = t.right
elif t.val > val:
t = t.left
else:
return t
e = RBTreeNode(val, parent)
if parent.val < val:
parent.right = e
else:
parent.left = e
self._fix_after_insertion(e)
return e
def delete(self, p):
'Delete the specified entry from the tree'
if p.left and p.right:
s = self.successor(p)
self._swap_nodes(s, p)
if p is self.root:
self.root = s
replacement = p.left or p.right
if replacement:
replacement.parent = p.parent
if not p.parent:
self.root = replacement
elif p is p.parent.left:
p.parent.left = replacement
else:
p.parent.right = replacement
p.left = p.right = p.parent = None
if p.black:
self._fix_after_deletion(replacement)
elif not p.parent:
self.root = None
else:
if p.black:
self._fix_after_deletion(p)
if p.parent:
if p is p.parent.left:
p.parent.left = None
elif p is p.parent.right:
p.parent.right = None
p.parent = None
def successor(self, t):
'Return the successor of the specified entry, or None if no such.'
if not t:
return None
if t.right:
p = t.right
while p.left:
p = p.left
else:
ch, p = t, t.parent
while p and ch is p.right:
ch = p
p = p.parent
return p
def predecessor(self, t):
'Return the predecessor of the specified entry, or None if no such.'
if not t:
return None
if t.left:
p = t.left
while p.right:
p = p.right
else:
ch, p = t, t.parent
while p and ch is p.left:
ch = p
p = p.parent
return p
def _fix_after_insertion(self, x):
x.black = False
while x and x is not self.root and not x.parent.black:
if x.parent is x.parent.parent.left:
y = x.parent.parent.right
if y and not y.black:
y.black = x.parent.black = True
x.parent.parent.black = False
x = x.parent.parent
else:
if x is x.parent.right:
x = x.parent
self._rotate_left(x)
x.parent.black = True
x.parent.parent.black = False
self._rotate_right(x.parent.parent)
else:
y = x.parent.parent.left
if y and not y.black:
y.black = x.parent.black = True
x.parent.parent.black = False
x = x.parent.parent
else:
if x is x.parent.left:
x = x.parent
self._rotate_right(x)
x.parent.black = True
x.parent.parent.black = False
self._rotate_left(x.parent.parent)
self.root.black = True
def _fix_after_deletion(self, x):
while x is not self.root and x.black:
if x is x.parent.left:
sib = x.parent.right
if not sib.black:
sib.black = True
sib.parent.black = False
self._rotate_left(x.parent)
sib = x.parent.right
if sib.left.black and sib.right.black:
sib.black = False
x = x.parent
else:
if sib.right.black:
sib.left.black = True
sib.black = False
self._rotate_right(sib)
sib = x.parent.right
sib.black = x.parent.black
x.parent.black = sib.right.black = True
self._rotate_left(x.parent)
x = root
else:
sib = x.parent.left
if not sib.black:
sib.black = True
x.parent.black = False
self._rotate_right(x.parent)
sib = x.parent.left
if sib.right.black and sib.left.black:
sib.black = False
x = x.parent
else:
if sib.left.black:
sib.right.black = True
sib.black = False
self._rotate_left(sib)
sib = x.parent.left
sib.black = x.parent.black
x.parent.black = sib.left.black = True
self._rotate_right(x.parent)
x = root
x.black = True
def _rotate_left(self, p):
if p:
r = p.right
p.right = r.left
if r.left:
r.left.parent = p
r.parent = p.parent
if not p.parent:
self.root = r
elif p.parent.left is p:
p.parent.left = r
else:
p.parent.right = r
r.left = p
p.parent = r
def _rotate_right(self, p):
if p:
l = p.left
p.left = l.right
if l.right:
l.right.parent = p
l.parent = p.parent
if not p.parent:
self.root = l
elif p.parent.right is p:
p.parent.right = l
else:
p.parent.left = l
l.right = p
p.parent = l
def _print_serialized_tree(self):
t = self.root
level = [t]
res = []
while t and level:
nl = []
for node in level:
if node:
res.append(str(node.val))
nl.append(node.left)
nl.append(node.right)
else:
res.append('#')
level = nl
print(''.join(res).rstrip('#'))
def _swap_nodes(self, n1, n2):
n1l, n1r, n1p = n1.left, n1.right, n1.parent
if n1p:
if n1p.left is n1:
n1p.left = n2
else:
n1p.right = n2
n1.left, n1.right, n1.parent = n2.left, n2.right, n2.parent
if n2.parent:
if n2.parent.left is n2:
n2.parent.left = n1
else:
n2.parent.right = n1
n2.left, n2.right, n2.parent = n1l, n1r, n1p
| class Rbtreenode:
def __init__(self, val, parent=None):
self.val = val
self.black = True
self.left = None
self.right = None
self.parent = parent
class Rbtree:
def __init__(self):
self.root = None
def get_root(self):
return self.root
def insert(self, val):
"""Insert a new node that has specified value"""
t = self.root
if not t:
self.root = rb_tree_node(val)
return self.root
while t:
parent = t
if t.val < val:
t = t.right
elif t.val > val:
t = t.left
else:
return t
e = rb_tree_node(val, parent)
if parent.val < val:
parent.right = e
else:
parent.left = e
self._fix_after_insertion(e)
return e
def delete(self, p):
"""Delete the specified entry from the tree"""
if p.left and p.right:
s = self.successor(p)
self._swap_nodes(s, p)
if p is self.root:
self.root = s
replacement = p.left or p.right
if replacement:
replacement.parent = p.parent
if not p.parent:
self.root = replacement
elif p is p.parent.left:
p.parent.left = replacement
else:
p.parent.right = replacement
p.left = p.right = p.parent = None
if p.black:
self._fix_after_deletion(replacement)
elif not p.parent:
self.root = None
else:
if p.black:
self._fix_after_deletion(p)
if p.parent:
if p is p.parent.left:
p.parent.left = None
elif p is p.parent.right:
p.parent.right = None
p.parent = None
def successor(self, t):
"""Return the successor of the specified entry, or None if no such."""
if not t:
return None
if t.right:
p = t.right
while p.left:
p = p.left
else:
(ch, p) = (t, t.parent)
while p and ch is p.right:
ch = p
p = p.parent
return p
def predecessor(self, t):
"""Return the predecessor of the specified entry, or None if no such."""
if not t:
return None
if t.left:
p = t.left
while p.right:
p = p.right
else:
(ch, p) = (t, t.parent)
while p and ch is p.left:
ch = p
p = p.parent
return p
def _fix_after_insertion(self, x):
x.black = False
while x and x is not self.root and (not x.parent.black):
if x.parent is x.parent.parent.left:
y = x.parent.parent.right
if y and (not y.black):
y.black = x.parent.black = True
x.parent.parent.black = False
x = x.parent.parent
else:
if x is x.parent.right:
x = x.parent
self._rotate_left(x)
x.parent.black = True
x.parent.parent.black = False
self._rotate_right(x.parent.parent)
else:
y = x.parent.parent.left
if y and (not y.black):
y.black = x.parent.black = True
x.parent.parent.black = False
x = x.parent.parent
else:
if x is x.parent.left:
x = x.parent
self._rotate_right(x)
x.parent.black = True
x.parent.parent.black = False
self._rotate_left(x.parent.parent)
self.root.black = True
def _fix_after_deletion(self, x):
while x is not self.root and x.black:
if x is x.parent.left:
sib = x.parent.right
if not sib.black:
sib.black = True
sib.parent.black = False
self._rotate_left(x.parent)
sib = x.parent.right
if sib.left.black and sib.right.black:
sib.black = False
x = x.parent
else:
if sib.right.black:
sib.left.black = True
sib.black = False
self._rotate_right(sib)
sib = x.parent.right
sib.black = x.parent.black
x.parent.black = sib.right.black = True
self._rotate_left(x.parent)
x = root
else:
sib = x.parent.left
if not sib.black:
sib.black = True
x.parent.black = False
self._rotate_right(x.parent)
sib = x.parent.left
if sib.right.black and sib.left.black:
sib.black = False
x = x.parent
else:
if sib.left.black:
sib.right.black = True
sib.black = False
self._rotate_left(sib)
sib = x.parent.left
sib.black = x.parent.black
x.parent.black = sib.left.black = True
self._rotate_right(x.parent)
x = root
x.black = True
def _rotate_left(self, p):
if p:
r = p.right
p.right = r.left
if r.left:
r.left.parent = p
r.parent = p.parent
if not p.parent:
self.root = r
elif p.parent.left is p:
p.parent.left = r
else:
p.parent.right = r
r.left = p
p.parent = r
def _rotate_right(self, p):
if p:
l = p.left
p.left = l.right
if l.right:
l.right.parent = p
l.parent = p.parent
if not p.parent:
self.root = l
elif p.parent.right is p:
p.parent.right = l
else:
p.parent.left = l
l.right = p
p.parent = l
def _print_serialized_tree(self):
t = self.root
level = [t]
res = []
while t and level:
nl = []
for node in level:
if node:
res.append(str(node.val))
nl.append(node.left)
nl.append(node.right)
else:
res.append('#')
level = nl
print(''.join(res).rstrip('#'))
def _swap_nodes(self, n1, n2):
(n1l, n1r, n1p) = (n1.left, n1.right, n1.parent)
if n1p:
if n1p.left is n1:
n1p.left = n2
else:
n1p.right = n2
(n1.left, n1.right, n1.parent) = (n2.left, n2.right, n2.parent)
if n2.parent:
if n2.parent.left is n2:
n2.parent.left = n1
else:
n2.parent.right = n1
(n2.left, n2.right, n2.parent) = (n1l, n1r, n1p) |
__all__ = ['gmrt_raw_toguppi']
class GUPPIINJ:
def __init__(self, guppifile) -> None:
self.header = self.header_dict()
self.guppifile = guppifile
# def bbinj(self,d):# samples_per_frame=960, pktsize=1024,npol=2, nchan=4):
# hdr = {k: self.header[k] for k in self.header if self.header[k]}
# if 'TBIN' in hdr.keys():
# fg = guppi.open(self.guppifile,'ws',tbin=hdr['TBIN'],
# #samples_per_frame=samples_per_frame, pktsize=pktsize,
# #npol=npol, nchan=nchan,
# **hdr )
# fg.write(d)
# fg.close()
# else:
# raise Exception(f'Required: please specify TBIN')
# return fg.header0
# def wraw(self , braw):
# fraw = guppi.open(self.guppifile, 'ws', tbin=self.header.TBIN)
# fraw.fh_raw = braw
# fraw.close()
@classmethod
def header_dict(cls, par=None):
cls._header = Header()
_dict = cls._header.__dict__
att = AttrDict()
att.update(_dict)
if par in _dict:
return _dict[par]
if par is None :
return att
elif par == '*':
return _dict
elif par == 'v':
return _dict.values()
elif par == 'k':
return _dict.keys()
else:
return "'{}' is not a valid header parameter. please choose one from {} or use any of '*' 'v' 'k' ".format(par, _dict.keys())
class Header(GUPPIINJ):
def __init__(self) -> None:
self.__dict__ = {
'BACKEND' : 'GUPPI ',
'TELESCOP':'',
'OBSERVER':'',
'PROJID' :'',
'FRONTEND':'',
'NRCVR' :'',
'FD_POLN' :'',
'BMAJ' :'',
'BMIN' :'',
'SRC_NAME':'',
'TRK_MODE':'',
'RA_STR' :'',
'RA' :'',
'DEC_STR' :'',
'DEC' :'',
'LST' :'',
'AZ' :'',
'ZA' :'',
'DAQCTRL' :'',
'DAQPULSE':'',
'DAQSTATE':'',
'NBITS' :'',
'OFFSET0' :'',
'OFFSET1' :'',
'OFFSET2' :'',
'OFFSET3' :'',
'BANKNAM' :'',
'TFOLD' :'',
'DS_FREQ' :'',
'DS_TIME' :'',
'FFTLEN' :'',
'CHAN_BW' :'',
'BANDNUM' :'',
'NBIN' :'',
'OBSNCHAN':'',
'SCALE0' :'',
'SCALE1' :'',
'DATAHOST':'',
'SCALE3' :'',
'NPOL' :'',
'POL_TYPE':'',
'BANKNUM' :'',
'DATAPORT':'',
'ONLY_I' :'',
'CAL_DCYC':'',
'DIRECTIO':'',
'BLOCSIZE':'',
'ACC_LEN' :'',
'CAL_MODE':'',
'OVERLAP' :'',
'OBS_MODE':'',
'CAL_FREQ':'',
'DATADIR' :'',
'OBSFREQ' :'',
'PFB_OVER':'',
'SCANLEN' :'',
'PARFILE' :'',
'OBSBW' :'',
'SCALE2' :'',
'BINDHOST':'',
'PKTFMT' :'',
'TBIN' :'',
'BASE_BW' :'',
'CHAN_DM' :'',
'SCAN' :'',
'STT_SMJD':'',
'STT_IMJD':'',
'STTVALID':'',
'NETSTAT' :'',
'DISKSTAT':'',
'PKTIDX' :'',
'DROPAVG' :'',
'DROPTOT' :'',
'DROPBLK' :'',
'PKTSTOP' :'',
'NETBUFST':'',
'STT_OFFS':'',
'SCANREM' :'',
'PKTSIZE' :'',
'NPKT' :'',
'NDROP' :''
}
class AttrDict(dict):
def __init__(self, *args, **kwargs):
super(AttrDict, self).__init__(*args, **kwargs)
self.__dict__ = self
| __all__ = ['gmrt_raw_toguppi']
class Guppiinj:
def __init__(self, guppifile) -> None:
self.header = self.header_dict()
self.guppifile = guppifile
@classmethod
def header_dict(cls, par=None):
cls._header = header()
_dict = cls._header.__dict__
att = attr_dict()
att.update(_dict)
if par in _dict:
return _dict[par]
if par is None:
return att
elif par == '*':
return _dict
elif par == 'v':
return _dict.values()
elif par == 'k':
return _dict.keys()
else:
return "'{}' is not a valid header parameter. please choose one from {} or use any of '*' 'v' 'k' ".format(par, _dict.keys())
class Header(GUPPIINJ):
def __init__(self) -> None:
self.__dict__ = {'BACKEND': 'GUPPI ', 'TELESCOP': '', 'OBSERVER': '', 'PROJID': '', 'FRONTEND': '', 'NRCVR': '', 'FD_POLN': '', 'BMAJ': '', 'BMIN': '', 'SRC_NAME': '', 'TRK_MODE': '', 'RA_STR': '', 'RA': '', 'DEC_STR': '', 'DEC': '', 'LST': '', 'AZ': '', 'ZA': '', 'DAQCTRL': '', 'DAQPULSE': '', 'DAQSTATE': '', 'NBITS': '', 'OFFSET0': '', 'OFFSET1': '', 'OFFSET2': '', 'OFFSET3': '', 'BANKNAM': '', 'TFOLD': '', 'DS_FREQ': '', 'DS_TIME': '', 'FFTLEN': '', 'CHAN_BW': '', 'BANDNUM': '', 'NBIN': '', 'OBSNCHAN': '', 'SCALE0': '', 'SCALE1': '', 'DATAHOST': '', 'SCALE3': '', 'NPOL': '', 'POL_TYPE': '', 'BANKNUM': '', 'DATAPORT': '', 'ONLY_I': '', 'CAL_DCYC': '', 'DIRECTIO': '', 'BLOCSIZE': '', 'ACC_LEN': '', 'CAL_MODE': '', 'OVERLAP': '', 'OBS_MODE': '', 'CAL_FREQ': '', 'DATADIR': '', 'OBSFREQ': '', 'PFB_OVER': '', 'SCANLEN': '', 'PARFILE': '', 'OBSBW': '', 'SCALE2': '', 'BINDHOST': '', 'PKTFMT': '', 'TBIN': '', 'BASE_BW': '', 'CHAN_DM': '', 'SCAN': '', 'STT_SMJD': '', 'STT_IMJD': '', 'STTVALID': '', 'NETSTAT': '', 'DISKSTAT': '', 'PKTIDX': '', 'DROPAVG': '', 'DROPTOT': '', 'DROPBLK': '', 'PKTSTOP': '', 'NETBUFST': '', 'STT_OFFS': '', 'SCANREM': '', 'PKTSIZE': '', 'NPKT': '', 'NDROP': ''}
class Attrdict(dict):
def __init__(self, *args, **kwargs):
super(AttrDict, self).__init__(*args, **kwargs)
self.__dict__ = self |
#ticTacToe.py
#Written by Jesse Gallarzo
gameGrid = [[' ' for i in range(3)] for j in range(3)]
gameOver = False
answer = str()
def gameRules():
print('Whoever matches three of a kind in a row or column wins! Place either an X or an O within the grid')
def printGrid():
print('|'+gameGrid[0][0]+'|'+gameGrid[0][1]+'|'+gameGrid[0][2]+'|')
print('-------')
print('|'+gameGrid[1][0]+'|'+gameGrid[1][1]+'|'+gameGrid[1][2]+'|')
print('-------')
print('|'+gameGrid[2][0]+'|'+gameGrid[2][1]+'|'+gameGrid[2][2]+'|')
def placeMove():
global answer
global gameOver
global gameGrid
ans = input('Xs or Os? ')
index = int(input('What position? '))
count = 1
for i in range(3):
for j in range(3):
if count == index:
gameGrid[i][j] = ans
answer = ans
return
else:
count += 1
def gameWinner():
global gameOver
for i in range(3):
if answer == gameGrid[i][0] and answer == gameGrid[i][1] and answer == gameGrid[i][2]:
print (answer + 's are the winner')
gameOver = True
for j in range(3):
if answer == gameGrid[0][j] and answer == gameGrid[1][j] and answer == gameGrid[2][j]:
print (answer + 's are the winner')
gameOver = True
def main():
gameRules()
global gameOver
while gameOver != True:
printGrid()
placeMove()
gameWinner()
printGrid()
print ('Game over...')
main()
| game_grid = [[' ' for i in range(3)] for j in range(3)]
game_over = False
answer = str()
def game_rules():
print('Whoever matches three of a kind in a row or column wins! Place either an X or an O within the grid')
def print_grid():
print('|' + gameGrid[0][0] + '|' + gameGrid[0][1] + '|' + gameGrid[0][2] + '|')
print('-------')
print('|' + gameGrid[1][0] + '|' + gameGrid[1][1] + '|' + gameGrid[1][2] + '|')
print('-------')
print('|' + gameGrid[2][0] + '|' + gameGrid[2][1] + '|' + gameGrid[2][2] + '|')
def place_move():
global answer
global gameOver
global gameGrid
ans = input('Xs or Os? ')
index = int(input('What position? '))
count = 1
for i in range(3):
for j in range(3):
if count == index:
gameGrid[i][j] = ans
answer = ans
return
else:
count += 1
def game_winner():
global gameOver
for i in range(3):
if answer == gameGrid[i][0] and answer == gameGrid[i][1] and (answer == gameGrid[i][2]):
print(answer + 's are the winner')
game_over = True
for j in range(3):
if answer == gameGrid[0][j] and answer == gameGrid[1][j] and (answer == gameGrid[2][j]):
print(answer + 's are the winner')
game_over = True
def main():
game_rules()
global gameOver
while gameOver != True:
print_grid()
place_move()
game_winner()
print_grid()
print('Game over...')
main() |
# terrascript/data/bgpat/dnsimple.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:15:28 UTC)
__all__ = []
| __all__ = [] |
INFO = {
"name": "hi",
"description": "Membalas dengan hello",
"visibility": "public",
"authority": "all"
}
async def execute(client, message):
message_chat = message.chat
await client.send_message(
message_chat.id,
"Hello"
) | info = {'name': 'hi', 'description': 'Membalas dengan hello', 'visibility': 'public', 'authority': 'all'}
async def execute(client, message):
message_chat = message.chat
await client.send_message(message_chat.id, 'Hello') |
class Connection(object):
def open(self):
pass
def close(self):
pass
| class Connection(object):
def open(self):
pass
def close(self):
pass |
#
# PySNMP MIB module XEDIA-DVMRP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/XEDIA-DVMRP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:42:43 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
ModuleIdentity, Counter64, Unsigned32, Gauge32, IpAddress, Counter32, Bits, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, ObjectIdentity, NotificationType, iso, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "Counter64", "Unsigned32", "Gauge32", "IpAddress", "Counter32", "Bits", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "ObjectIdentity", "NotificationType", "iso", "Integer32")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
xediaMibs, = mibBuilder.importSymbols("XEDIA-REG", "xediaMibs")
xdvmrpMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 838, 3, 32))
if mibBuilder.loadTexts: xdvmrpMIB.setLastUpdated('9905151600Z')
if mibBuilder.loadTexts: xdvmrpMIB.setOrganization('Xedia Corp.')
if mibBuilder.loadTexts: xdvmrpMIB.setContactInfo('support@xedia.com')
if mibBuilder.loadTexts: xdvmrpMIB.setDescription('The Xedia extention MIB module for management of DVMRP routers.')
xdvmrpMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 838, 3, 32, 1))
xdvmrp = MibIdentifier((1, 3, 6, 1, 4, 1, 838, 3, 32, 1, 1))
xdvmrpInterfaceTable = MibTable((1, 3, 6, 1, 4, 1, 838, 3, 32, 1, 1, 1), )
if mibBuilder.loadTexts: xdvmrpInterfaceTable.setStatus('current')
if mibBuilder.loadTexts: xdvmrpInterfaceTable.setDescription("The (conceptual) table listing the router's multicast- capable interfaces.")
xdvmrpInterfaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 838, 3, 32, 1, 1, 1, 1), ).setIndexNames((0, "XEDIA-DVMRP-MIB", "xdvmrpInterfaceIfIndex"))
if mibBuilder.loadTexts: xdvmrpInterfaceEntry.setStatus('current')
if mibBuilder.loadTexts: xdvmrpInterfaceEntry.setDescription('An entry (conceptual row) in the dvmrpInterfaceTable. This row augments ipMRouteInterfaceEntry in the IP Multicast MIB, where the threshold object resides.')
xdvmrpInterfaceIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 838, 3, 32, 1, 1, 1, 1, 1), Integer32())
if mibBuilder.loadTexts: xdvmrpInterfaceIfIndex.setStatus('current')
if mibBuilder.loadTexts: xdvmrpInterfaceIfIndex.setDescription('The ifIndex value of the interface for which DVMRP is enabled.')
xdvmrpInterfaceState = MibTableColumn((1, 3, 6, 1, 4, 1, 838, 3, 32, 1, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: xdvmrpInterfaceState.setStatus('current')
if mibBuilder.loadTexts: xdvmrpInterfaceState.setDescription('The current status of this DVMRP interface.')
xdvmrpInterfaceDefaultInformation = MibTableColumn((1, 3, 6, 1, 4, 1, 838, 3, 32, 1, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("originate", 2), ("only", 3))).clone('disabled')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: xdvmrpInterfaceDefaultInformation.setStatus('current')
if mibBuilder.loadTexts: xdvmrpInterfaceDefaultInformation.setDescription('Control the advertisement of default route (0.0.0.0) to the DVMRP neighbor(s) on the interface. When the value is set to disabled(1), no default route is advertised. When set to originate(2), default route is advertised along the other routes. When the value is set to only(3), only the default route is advertised through this interface.')
xdvmrpInterfaceUnicastTunnel = MibTableColumn((1, 3, 6, 1, 4, 1, 838, 3, 32, 1, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: xdvmrpInterfaceUnicastTunnel.setStatus('current')
if mibBuilder.loadTexts: xdvmrpInterfaceUnicastTunnel.setDescription('Control the transmission of DVMRP messages to be unicast to the remote end point of the tunnel instead of send through the tunnel. Enabled this to interoperate with mrouted or cisco with tunnel configured in dvmrp mode.')
mibBuilder.exportSymbols("XEDIA-DVMRP-MIB", xdvmrpInterfaceIfIndex=xdvmrpInterfaceIfIndex, xdvmrpMIB=xdvmrpMIB, xdvmrpInterfaceEntry=xdvmrpInterfaceEntry, PYSNMP_MODULE_ID=xdvmrpMIB, xdvmrpInterfaceTable=xdvmrpInterfaceTable, xdvmrpMIBObjects=xdvmrpMIBObjects, xdvmrpInterfaceDefaultInformation=xdvmrpInterfaceDefaultInformation, xdvmrp=xdvmrp, xdvmrpInterfaceState=xdvmrpInterfaceState, xdvmrpInterfaceUnicastTunnel=xdvmrpInterfaceUnicastTunnel)
| (octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_union, value_size_constraint, constraints_intersection, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(module_identity, counter64, unsigned32, gauge32, ip_address, counter32, bits, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, object_identity, notification_type, iso, integer32) = mibBuilder.importSymbols('SNMPv2-SMI', 'ModuleIdentity', 'Counter64', 'Unsigned32', 'Gauge32', 'IpAddress', 'Counter32', 'Bits', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'ObjectIdentity', 'NotificationType', 'iso', 'Integer32')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
(xedia_mibs,) = mibBuilder.importSymbols('XEDIA-REG', 'xediaMibs')
xdvmrp_mib = module_identity((1, 3, 6, 1, 4, 1, 838, 3, 32))
if mibBuilder.loadTexts:
xdvmrpMIB.setLastUpdated('9905151600Z')
if mibBuilder.loadTexts:
xdvmrpMIB.setOrganization('Xedia Corp.')
if mibBuilder.loadTexts:
xdvmrpMIB.setContactInfo('support@xedia.com')
if mibBuilder.loadTexts:
xdvmrpMIB.setDescription('The Xedia extention MIB module for management of DVMRP routers.')
xdvmrp_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 838, 3, 32, 1))
xdvmrp = mib_identifier((1, 3, 6, 1, 4, 1, 838, 3, 32, 1, 1))
xdvmrp_interface_table = mib_table((1, 3, 6, 1, 4, 1, 838, 3, 32, 1, 1, 1))
if mibBuilder.loadTexts:
xdvmrpInterfaceTable.setStatus('current')
if mibBuilder.loadTexts:
xdvmrpInterfaceTable.setDescription("The (conceptual) table listing the router's multicast- capable interfaces.")
xdvmrp_interface_entry = mib_table_row((1, 3, 6, 1, 4, 1, 838, 3, 32, 1, 1, 1, 1)).setIndexNames((0, 'XEDIA-DVMRP-MIB', 'xdvmrpInterfaceIfIndex'))
if mibBuilder.loadTexts:
xdvmrpInterfaceEntry.setStatus('current')
if mibBuilder.loadTexts:
xdvmrpInterfaceEntry.setDescription('An entry (conceptual row) in the dvmrpInterfaceTable. This row augments ipMRouteInterfaceEntry in the IP Multicast MIB, where the threshold object resides.')
xdvmrp_interface_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 838, 3, 32, 1, 1, 1, 1, 1), integer32())
if mibBuilder.loadTexts:
xdvmrpInterfaceIfIndex.setStatus('current')
if mibBuilder.loadTexts:
xdvmrpInterfaceIfIndex.setDescription('The ifIndex value of the interface for which DVMRP is enabled.')
xdvmrp_interface_state = mib_table_column((1, 3, 6, 1, 4, 1, 838, 3, 32, 1, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
xdvmrpInterfaceState.setStatus('current')
if mibBuilder.loadTexts:
xdvmrpInterfaceState.setDescription('The current status of this DVMRP interface.')
xdvmrp_interface_default_information = mib_table_column((1, 3, 6, 1, 4, 1, 838, 3, 32, 1, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('originate', 2), ('only', 3))).clone('disabled')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
xdvmrpInterfaceDefaultInformation.setStatus('current')
if mibBuilder.loadTexts:
xdvmrpInterfaceDefaultInformation.setDescription('Control the advertisement of default route (0.0.0.0) to the DVMRP neighbor(s) on the interface. When the value is set to disabled(1), no default route is advertised. When set to originate(2), default route is advertised along the other routes. When the value is set to only(3), only the default route is advertised through this interface.')
xdvmrp_interface_unicast_tunnel = mib_table_column((1, 3, 6, 1, 4, 1, 838, 3, 32, 1, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
xdvmrpInterfaceUnicastTunnel.setStatus('current')
if mibBuilder.loadTexts:
xdvmrpInterfaceUnicastTunnel.setDescription('Control the transmission of DVMRP messages to be unicast to the remote end point of the tunnel instead of send through the tunnel. Enabled this to interoperate with mrouted or cisco with tunnel configured in dvmrp mode.')
mibBuilder.exportSymbols('XEDIA-DVMRP-MIB', xdvmrpInterfaceIfIndex=xdvmrpInterfaceIfIndex, xdvmrpMIB=xdvmrpMIB, xdvmrpInterfaceEntry=xdvmrpInterfaceEntry, PYSNMP_MODULE_ID=xdvmrpMIB, xdvmrpInterfaceTable=xdvmrpInterfaceTable, xdvmrpMIBObjects=xdvmrpMIBObjects, xdvmrpInterfaceDefaultInformation=xdvmrpInterfaceDefaultInformation, xdvmrp=xdvmrp, xdvmrpInterfaceState=xdvmrpInterfaceState, xdvmrpInterfaceUnicastTunnel=xdvmrpInterfaceUnicastTunnel) |
class Error(Exception):
"""Base class for exceptions in this module."""
pass
class SnipeITErrorHandler(object):
"""Handles SnipeIT Exceptions"""
def __init__(self,request):
self.fault=request.json()
if self.fault.get('status')=='error':
if self.fault.get('messages') == 'Unauthorised.':
raise UnauthorisedError()
elif self.fault.get('messages') == 'You cannot add a maintenance for that asset':
raise CannotAddMaintenanceError()
else:
raise UndefinedFaultStringError(request,self.fault)
elif request.status_code == 400:
raise BadRequestError()
else:
raise IWasNotProgramedForThisError(request)
class CannotAddMaintenanceError(Error):
"""Exception raised when maintenance cannot be added for a asset"""
class BadRequestError(Error):
"""Exception raised for Bad Request"""
class UnauthorisedError(Error):
"""Exception raised for Unauthorised Requests"""
class UndefinedFaultStringError(Error):
"""Exception raised for unhandled errors."""
def __init__(self,request, message):
self.message = message
self.request = request
class IWasNotProgramedForThisError(Error):
"""Exception raised when the passed exception cannot be handled"""
def __init__(self,request):
self.request = request | class Error(Exception):
"""Base class for exceptions in this module."""
pass
class Snipeiterrorhandler(object):
"""Handles SnipeIT Exceptions"""
def __init__(self, request):
self.fault = request.json()
if self.fault.get('status') == 'error':
if self.fault.get('messages') == 'Unauthorised.':
raise unauthorised_error()
elif self.fault.get('messages') == 'You cannot add a maintenance for that asset':
raise cannot_add_maintenance_error()
else:
raise undefined_fault_string_error(request, self.fault)
elif request.status_code == 400:
raise bad_request_error()
else:
raise i_was_not_programed_for_this_error(request)
class Cannotaddmaintenanceerror(Error):
"""Exception raised when maintenance cannot be added for a asset"""
class Badrequesterror(Error):
"""Exception raised for Bad Request"""
class Unauthorisederror(Error):
"""Exception raised for Unauthorised Requests"""
class Undefinedfaultstringerror(Error):
"""Exception raised for unhandled errors."""
def __init__(self, request, message):
self.message = message
self.request = request
class Iwasnotprogramedforthiserror(Error):
"""Exception raised when the passed exception cannot be handled"""
def __init__(self, request):
self.request = request |
# https://www.codewars.com/kata/52597aa56021e91c93000cb0/train/python
def move_zeros(array: list) -> list:
return [x for x in array if x != 0] + [0] * array.count(0)
# -----------------------------------------------------------------------------
tests = [
{
'assertion': move_zeros([1, 2, 0, 1, 0, 1, 0, 3, 0, 1]),
'expected': [1, 2, 1, 1, 3, 1, 0, 0, 0, 0]
},
{
'assertion': move_zeros([9, 0, 0, 9, 1, 2, 0, 1, 0, 1, 0, 3, 0, 1, 9, 0, 0, 0, 0, 9]),
'expected': [9, 9, 1, 2, 1, 1, 3, 1, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
},
{
'assertion': move_zeros([0, 0]),
'expected': [0, 0],
},
{
'assertion': move_zeros([0]),
'expected': [0],
},
{
'assertion': move_zeros([]),
'expected': [],
},
]
for test in tests:
print('PASSED' if test['assertion'] == test['expected'] else 'NOT PASSED')
| def move_zeros(array: list) -> list:
return [x for x in array if x != 0] + [0] * array.count(0)
tests = [{'assertion': move_zeros([1, 2, 0, 1, 0, 1, 0, 3, 0, 1]), 'expected': [1, 2, 1, 1, 3, 1, 0, 0, 0, 0]}, {'assertion': move_zeros([9, 0, 0, 9, 1, 2, 0, 1, 0, 1, 0, 3, 0, 1, 9, 0, 0, 0, 0, 9]), 'expected': [9, 9, 1, 2, 1, 1, 3, 1, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {'assertion': move_zeros([0, 0]), 'expected': [0, 0]}, {'assertion': move_zeros([0]), 'expected': [0]}, {'assertion': move_zeros([]), 'expected': []}]
for test in tests:
print('PASSED' if test['assertion'] == test['expected'] else 'NOT PASSED') |
__author__ = 'slaviann'
TEMPLATES = (
"ddos.list",
"domains.list",
"domains_ssl.list",
"suspend.list"
)
| __author__ = 'slaviann'
templates = ('ddos.list', 'domains.list', 'domains_ssl.list', 'suspend.list') |
NEEDLESS_ATTRS = ['op', 'desc', 'id', 'swap', 'trainable', 'ctx', 'event',
'inplace', 'lazy_execution', 'on_cpu', 'on_gpu', 'compute', 'middle_result', 'gpu_buffer',
]
ONNX_DOMAIN = ""
AI_ONNX_ML_DOMAIN = "ai.onnx.ml"
| needless_attrs = ['op', 'desc', 'id', 'swap', 'trainable', 'ctx', 'event', 'inplace', 'lazy_execution', 'on_cpu', 'on_gpu', 'compute', 'middle_result', 'gpu_buffer']
onnx_domain = ''
ai_onnx_ml_domain = 'ai.onnx.ml' |
class InvalidAPIKey(Exception):
pass
class GatewayError(Exception):
pass
class TooManyRequests(Exception):
pass
| class Invalidapikey(Exception):
pass
class Gatewayerror(Exception):
pass
class Toomanyrequests(Exception):
pass |
def db_field(**options):
def _exec(client, *args, **kwargs):
pass
return _exec
| def db_field(**options):
def _exec(client, *args, **kwargs):
pass
return _exec |
# -*- coding: utf-8 -*-
# mathtoolspy
# -----------
# A fast, efficient Python library for mathematically operations, like
# integration, solver, distributions and other useful functions.
#
# Author: sonntagsgesicht, based on a fork of Deutsche Postbank [pbrisk]
# Version: 0.3, copyright Wednesday, 18 September 2019
# Website: https://github.com/sonntagsgesicht/mathtoolspy
# License: Apache License 2.0 (see LICENSE file)
class SimplexIntegrator:
def logNone(self, x):
pass
def __init__(self, steps=100, log_info=None):
self.nsteps = steps
if log_info == None:
self.log_info = self.logNone
else:
self.log_info = log_info
def integrate(self, function, lower_bound, upper_bound):
"""
Calculates the integral of the given one dimensional function
in the interval from lower_bound to upper_bound, with the simplex integration method.
"""
ret = 0.0
n = self.nsteps
xStep = (float(upper_bound) - float(lower_bound)) / float(n)
self.log_info("xStep" + str(xStep))
x = lower_bound
val1 = function(x)
self.log_info("val1: " + str(val1))
for i in range(n):
x = (i + 1) * xStep + lower_bound
self.log_info("x: " + str(x))
val2 = function(x)
self.log_info("val2: " + str(val2))
ret += 0.5 * xStep * (val1 + val2)
val1 = val2
return ret
def __call__(self, function, lower_bound, upper_bound):
return self.integrate(function, lower_bound, upper_bound)
| class Simplexintegrator:
def log_none(self, x):
pass
def __init__(self, steps=100, log_info=None):
self.nsteps = steps
if log_info == None:
self.log_info = self.logNone
else:
self.log_info = log_info
def integrate(self, function, lower_bound, upper_bound):
"""
Calculates the integral of the given one dimensional function
in the interval from lower_bound to upper_bound, with the simplex integration method.
"""
ret = 0.0
n = self.nsteps
x_step = (float(upper_bound) - float(lower_bound)) / float(n)
self.log_info('xStep' + str(xStep))
x = lower_bound
val1 = function(x)
self.log_info('val1: ' + str(val1))
for i in range(n):
x = (i + 1) * xStep + lower_bound
self.log_info('x: ' + str(x))
val2 = function(x)
self.log_info('val2: ' + str(val2))
ret += 0.5 * xStep * (val1 + val2)
val1 = val2
return ret
def __call__(self, function, lower_bound, upper_bound):
return self.integrate(function, lower_bound, upper_bound) |
'''
Given n friends, each one can remain single or can be paired up with some other friend.
Each friend can be paired only once.
Find out the total number of ways in which friends can remain single or can be paired up.
Input : n = 3
Output : 4
Explanation
{1}, {2}, {3} : all single
{1}, {2, 3} : 2 and 3 paired but 1 is single.
{1, 2}, {3} : 1 and 2 are paired but 3 is single.
{1, 3}, {2} : 1 and 3 are paired but 2 is single.
Note that {1, 2} and {2, 1} are considered same.
SOLUTION:
f(n) = ways n people can remain single or pair up.
For n-th person there are two choices:
1) n-th person remains single; we recur for f(n - 1)
2) n-th person pairs up with any of the remaining n - 1 persons; We get (n - 1) * f(n - 2)
Therefore we can recursively write f(n) as:
f(n) = f(n - 1) + (n - 1) * f(n - 2)
'''
| """
Given n friends, each one can remain single or can be paired up with some other friend.
Each friend can be paired only once.
Find out the total number of ways in which friends can remain single or can be paired up.
Input : n = 3
Output : 4
Explanation
{1}, {2}, {3} : all single
{1}, {2, 3} : 2 and 3 paired but 1 is single.
{1, 2}, {3} : 1 and 2 are paired but 3 is single.
{1, 3}, {2} : 1 and 3 are paired but 2 is single.
Note that {1, 2} and {2, 1} are considered same.
SOLUTION:
f(n) = ways n people can remain single or pair up.
For n-th person there are two choices:
1) n-th person remains single; we recur for f(n - 1)
2) n-th person pairs up with any of the remaining n - 1 persons; We get (n - 1) * f(n - 2)
Therefore we can recursively write f(n) as:
f(n) = f(n - 1) + (n - 1) * f(n - 2)
""" |
"""
Definition of ListNode
"""
class ListNode(object):
def __init__(self, val, next=None):
self.val = val
self.next = next
class Solution:
"""
@param head: the head
@param G: an array
@return: the number of connected components in G
"""
def numComponents(self, head, G):
# Write your code here
table = set(G)
count = 0
while head:
if head.val in table and (head.next is None or head.next.val not in table):
count += 1
head = head.next
return count
| """
Definition of ListNode
"""
class Listnode(object):
def __init__(self, val, next=None):
self.val = val
self.next = next
class Solution:
"""
@param head: the head
@param G: an array
@return: the number of connected components in G
"""
def num_components(self, head, G):
table = set(G)
count = 0
while head:
if head.val in table and (head.next is None or head.next.val not in table):
count += 1
head = head.next
return count |
def insert_shift_array(l,b):
middle = len(l) // 2
if len(l) % 2 == 0:
return l[:middle] + [b] + l[middle:]
else:
return l[:middle + 1] + [b] + l[middle +1:]
| def insert_shift_array(l, b):
middle = len(l) // 2
if len(l) % 2 == 0:
return l[:middle] + [b] + l[middle:]
else:
return l[:middle + 1] + [b] + l[middle + 1:] |
def problem059():
"""
Each character on a computer is assigned a unique code and the preferred
standard is ASCII (American Standard Code for Information Interchange).
For example, uppercase A = 65, asterisk (*) = 42, and lowercase k = 107.
A modern encryption method is to take a text file, convert the bytes to
ASCII, then XOR each byte with a given value, taken from a secret key. The
advantage with the XOR function is that using the same encryption key on
the cipher text, restores the plain text; for example, 65 XOR 42 = 107,
then 107 XOR 42 = 65.
For unbreakable encryption, the key is the same length as the plain text
message, and the key is made up of random bytes. The user would keep the
encrypted message and the encryption key in different locations, and
without both "halves", it is impossible to decrypt the message.
Unfortunately, this method is impractical for most users, so the modified
method is to use a password as a key. If the password is shorter than the
message, which is likely, the key is repeated cyclically throughout the
message. The balance for this method is using a sufficiently long password
key for security, but short enough to be memorable.
Your task has been made easy, as the encryption key consists of three
lower case characters. Using [1]cipher1.txt, a file containing the
encrypted ASCII codes, and the knowledge that the plain text must contain
common English words, decrypt the message and find the sum of the ASCII
values in the original text.
Visible links
1. cipher1.txt
"""
bestkey = max(
(
(x, y, z)
for x in range(97, 123) # ASCII lowercase 'a' to 'z'
for y in range(97, 123)
for z in range(97, 123)
),
key=lambda key: get_score(decrypt(CIPHERTEXT, key)),
)
ans = sum(decrypt(CIPHERTEXT, bestkey))
return ans
# A heuristic function, not based on any formal definition.
def get_score(plaintext):
result = 0
for c in plaintext:
if 65 <= c <= 90: # ASCII uppercase 'A' to 'Z', good
result += 1
elif 97 <= c <= 122: # ASCII lowercase 'a' to 'z', excellent
result += 2
elif c < 0x20 or c == 0x7F: # ASCII control characters, very bad
result -= 10
return result
# Takes two sequences of integers and returns a list of integers.
def decrypt(ciphertext, key):
return [(c ^ key[i % len(key)]) for (i, c) in enumerate(ciphertext)]
CIPHERTEXT = [
79,
59,
12,
2,
79,
35,
8,
28,
20,
2,
3,
68,
8,
9,
68,
45,
0,
12,
9,
67,
68,
4,
7,
5,
23,
27,
1,
21,
79,
85,
78,
79,
85,
71,
38,
10,
71,
27,
12,
2,
79,
6,
2,
8,
13,
9,
1,
13,
9,
8,
68,
19,
7,
1,
71,
56,
11,
21,
11,
68,
6,
3,
22,
2,
14,
0,
30,
79,
1,
31,
6,
23,
19,
10,
0,
73,
79,
44,
2,
79,
19,
6,
28,
68,
16,
6,
16,
15,
79,
35,
8,
11,
72,
71,
14,
10,
3,
79,
12,
2,
79,
19,
6,
28,
68,
32,
0,
0,
73,
79,
86,
71,
39,
1,
71,
24,
5,
20,
79,
13,
9,
79,
16,
15,
10,
68,
5,
10,
3,
14,
1,
10,
14,
1,
3,
71,
24,
13,
19,
7,
68,
32,
0,
0,
73,
79,
87,
71,
39,
1,
71,
12,
22,
2,
14,
16,
2,
11,
68,
2,
25,
1,
21,
22,
16,
15,
6,
10,
0,
79,
16,
15,
10,
22,
2,
79,
13,
20,
65,
68,
41,
0,
16,
15,
6,
10,
0,
79,
1,
31,
6,
23,
19,
28,
68,
19,
7,
5,
19,
79,
12,
2,
79,
0,
14,
11,
10,
64,
27,
68,
10,
14,
15,
2,
65,
68,
83,
79,
40,
14,
9,
1,
71,
6,
16,
20,
10,
8,
1,
79,
19,
6,
28,
68,
14,
1,
68,
15,
6,
9,
75,
79,
5,
9,
11,
68,
19,
7,
13,
20,
79,
8,
14,
9,
1,
71,
8,
13,
17,
10,
23,
71,
3,
13,
0,
7,
16,
71,
27,
11,
71,
10,
18,
2,
29,
29,
8,
1,
1,
73,
79,
81,
71,
59,
12,
2,
79,
8,
14,
8,
12,
19,
79,
23,
15,
6,
10,
2,
28,
68,
19,
7,
22,
8,
26,
3,
15,
79,
16,
15,
10,
68,
3,
14,
22,
12,
1,
1,
20,
28,
72,
71,
14,
10,
3,
79,
16,
15,
10,
68,
3,
14,
22,
12,
1,
1,
20,
28,
68,
4,
14,
10,
71,
1,
1,
17,
10,
22,
71,
10,
28,
19,
6,
10,
0,
26,
13,
20,
7,
68,
14,
27,
74,
71,
89,
68,
32,
0,
0,
71,
28,
1,
9,
27,
68,
45,
0,
12,
9,
79,
16,
15,
10,
68,
37,
14,
20,
19,
6,
23,
19,
79,
83,
71,
27,
11,
71,
27,
1,
11,
3,
68,
2,
25,
1,
21,
22,
11,
9,
10,
68,
6,
13,
11,
18,
27,
68,
19,
7,
1,
71,
3,
13,
0,
7,
16,
71,
28,
11,
71,
27,
12,
6,
27,
68,
2,
25,
1,
21,
22,
11,
9,
10,
68,
10,
6,
3,
15,
27,
68,
5,
10,
8,
14,
10,
18,
2,
79,
6,
2,
12,
5,
18,
28,
1,
71,
0,
2,
71,
7,
13,
20,
79,
16,
2,
28,
16,
14,
2,
11,
9,
22,
74,
71,
87,
68,
45,
0,
12,
9,
79,
12,
14,
2,
23,
2,
3,
2,
71,
24,
5,
20,
79,
10,
8,
27,
68,
19,
7,
1,
71,
3,
13,
0,
7,
16,
92,
79,
12,
2,
79,
19,
6,
28,
68,
8,
1,
8,
30,
79,
5,
71,
24,
13,
19,
1,
1,
20,
28,
68,
19,
0,
68,
19,
7,
1,
71,
3,
13,
0,
7,
16,
73,
79,
93,
71,
59,
12,
2,
79,
11,
9,
10,
68,
16,
7,
11,
71,
6,
23,
71,
27,
12,
2,
79,
16,
21,
26,
1,
71,
3,
13,
0,
7,
16,
75,
79,
19,
15,
0,
68,
0,
6,
18,
2,
28,
68,
11,
6,
3,
15,
27,
68,
19,
0,
68,
2,
25,
1,
21,
22,
11,
9,
10,
72,
71,
24,
5,
20,
79,
3,
8,
6,
10,
0,
79,
16,
8,
79,
7,
8,
2,
1,
71,
6,
10,
19,
0,
68,
19,
7,
1,
71,
24,
11,
21,
3,
0,
73,
79,
85,
87,
79,
38,
18,
27,
68,
6,
3,
16,
15,
0,
17,
0,
7,
68,
19,
7,
1,
71,
24,
11,
21,
3,
0,
71,
24,
5,
20,
79,
9,
6,
11,
1,
71,
27,
12,
21,
0,
17,
0,
7,
68,
15,
6,
9,
75,
79,
16,
15,
10,
68,
16,
0,
22,
11,
11,
68,
3,
6,
0,
9,
72,
16,
71,
29,
1,
4,
0,
3,
9,
6,
30,
2,
79,
12,
14,
2,
68,
16,
7,
1,
9,
79,
12,
2,
79,
7,
6,
2,
1,
73,
79,
85,
86,
79,
33,
17,
10,
10,
71,
6,
10,
71,
7,
13,
20,
79,
11,
16,
1,
68,
11,
14,
10,
3,
79,
5,
9,
11,
68,
6,
2,
11,
9,
8,
68,
15,
6,
23,
71,
0,
19,
9,
79,
20,
2,
0,
20,
11,
10,
72,
71,
7,
1,
71,
24,
5,
20,
79,
10,
8,
27,
68,
6,
12,
7,
2,
31,
16,
2,
11,
74,
71,
94,
86,
71,
45,
17,
19,
79,
16,
8,
79,
5,
11,
3,
68,
16,
7,
11,
71,
13,
1,
11,
6,
1,
17,
10,
0,
71,
7,
13,
10,
79,
5,
9,
11,
68,
6,
12,
7,
2,
31,
16,
2,
11,
68,
15,
6,
9,
75,
79,
12,
2,
79,
3,
6,
25,
1,
71,
27,
12,
2,
79,
22,
14,
8,
12,
19,
79,
16,
8,
79,
6,
2,
12,
11,
10,
10,
68,
4,
7,
13,
11,
11,
22,
2,
1,
68,
8,
9,
68,
32,
0,
0,
73,
79,
85,
84,
79,
48,
15,
10,
29,
71,
14,
22,
2,
79,
22,
2,
13,
11,
21,
1,
69,
71,
59,
12,
14,
28,
68,
14,
28,
68,
9,
0,
16,
71,
14,
68,
23,
7,
29,
20,
6,
7,
6,
3,
68,
5,
6,
22,
19,
7,
68,
21,
10,
23,
18,
3,
16,
14,
1,
3,
71,
9,
22,
8,
2,
68,
15,
26,
9,
6,
1,
68,
23,
14,
23,
20,
6,
11,
9,
79,
11,
21,
79,
20,
11,
14,
10,
75,
79,
16,
15,
6,
23,
71,
29,
1,
5,
6,
22,
19,
7,
68,
4,
0,
9,
2,
28,
68,
1,
29,
11,
10,
79,
35,
8,
11,
74,
86,
91,
68,
52,
0,
68,
19,
7,
1,
71,
56,
11,
21,
11,
68,
5,
10,
7,
6,
2,
1,
71,
7,
17,
10,
14,
10,
71,
14,
10,
3,
79,
8,
14,
25,
1,
3,
79,
12,
2,
29,
1,
71,
0,
10,
71,
10,
5,
21,
27,
12,
71,
14,
9,
8,
1,
3,
71,
26,
23,
73,
79,
44,
2,
79,
19,
6,
28,
68,
1,
26,
8,
11,
79,
11,
1,
79,
17,
9,
9,
5,
14,
3,
13,
9,
8,
68,
11,
0,
18,
2,
79,
5,
9,
11,
68,
1,
14,
13,
19,
7,
2,
18,
3,
10,
2,
28,
23,
73,
79,
37,
9,
11,
68,
16,
10,
68,
15,
14,
18,
2,
79,
23,
2,
10,
10,
71,
7,
13,
20,
79,
3,
11,
0,
22,
30,
67,
68,
19,
7,
1,
71,
8,
8,
8,
29,
29,
71,
0,
2,
71,
27,
12,
2,
79,
11,
9,
3,
29,
71,
60,
11,
9,
79,
11,
1,
79,
16,
15,
10,
68,
33,
14,
16,
15,
10,
22,
73,
]
if __name__ == "__main__":
print(problem059())
| def problem059():
"""
Each character on a computer is assigned a unique code and the preferred
standard is ASCII (American Standard Code for Information Interchange).
For example, uppercase A = 65, asterisk (*) = 42, and lowercase k = 107.
A modern encryption method is to take a text file, convert the bytes to
ASCII, then XOR each byte with a given value, taken from a secret key. The
advantage with the XOR function is that using the same encryption key on
the cipher text, restores the plain text; for example, 65 XOR 42 = 107,
then 107 XOR 42 = 65.
For unbreakable encryption, the key is the same length as the plain text
message, and the key is made up of random bytes. The user would keep the
encrypted message and the encryption key in different locations, and
without both "halves", it is impossible to decrypt the message.
Unfortunately, this method is impractical for most users, so the modified
method is to use a password as a key. If the password is shorter than the
message, which is likely, the key is repeated cyclically throughout the
message. The balance for this method is using a sufficiently long password
key for security, but short enough to be memorable.
Your task has been made easy, as the encryption key consists of three
lower case characters. Using [1]cipher1.txt, a file containing the
encrypted ASCII codes, and the knowledge that the plain text must contain
common English words, decrypt the message and find the sum of the ASCII
values in the original text.
Visible links
1. cipher1.txt
"""
bestkey = max(((x, y, z) for x in range(97, 123) for y in range(97, 123) for z in range(97, 123)), key=lambda key: get_score(decrypt(CIPHERTEXT, key)))
ans = sum(decrypt(CIPHERTEXT, bestkey))
return ans
def get_score(plaintext):
result = 0
for c in plaintext:
if 65 <= c <= 90:
result += 1
elif 97 <= c <= 122:
result += 2
elif c < 32 or c == 127:
result -= 10
return result
def decrypt(ciphertext, key):
return [c ^ key[i % len(key)] for (i, c) in enumerate(ciphertext)]
ciphertext = [79, 59, 12, 2, 79, 35, 8, 28, 20, 2, 3, 68, 8, 9, 68, 45, 0, 12, 9, 67, 68, 4, 7, 5, 23, 27, 1, 21, 79, 85, 78, 79, 85, 71, 38, 10, 71, 27, 12, 2, 79, 6, 2, 8, 13, 9, 1, 13, 9, 8, 68, 19, 7, 1, 71, 56, 11, 21, 11, 68, 6, 3, 22, 2, 14, 0, 30, 79, 1, 31, 6, 23, 19, 10, 0, 73, 79, 44, 2, 79, 19, 6, 28, 68, 16, 6, 16, 15, 79, 35, 8, 11, 72, 71, 14, 10, 3, 79, 12, 2, 79, 19, 6, 28, 68, 32, 0, 0, 73, 79, 86, 71, 39, 1, 71, 24, 5, 20, 79, 13, 9, 79, 16, 15, 10, 68, 5, 10, 3, 14, 1, 10, 14, 1, 3, 71, 24, 13, 19, 7, 68, 32, 0, 0, 73, 79, 87, 71, 39, 1, 71, 12, 22, 2, 14, 16, 2, 11, 68, 2, 25, 1, 21, 22, 16, 15, 6, 10, 0, 79, 16, 15, 10, 22, 2, 79, 13, 20, 65, 68, 41, 0, 16, 15, 6, 10, 0, 79, 1, 31, 6, 23, 19, 28, 68, 19, 7, 5, 19, 79, 12, 2, 79, 0, 14, 11, 10, 64, 27, 68, 10, 14, 15, 2, 65, 68, 83, 79, 40, 14, 9, 1, 71, 6, 16, 20, 10, 8, 1, 79, 19, 6, 28, 68, 14, 1, 68, 15, 6, 9, 75, 79, 5, 9, 11, 68, 19, 7, 13, 20, 79, 8, 14, 9, 1, 71, 8, 13, 17, 10, 23, 71, 3, 13, 0, 7, 16, 71, 27, 11, 71, 10, 18, 2, 29, 29, 8, 1, 1, 73, 79, 81, 71, 59, 12, 2, 79, 8, 14, 8, 12, 19, 79, 23, 15, 6, 10, 2, 28, 68, 19, 7, 22, 8, 26, 3, 15, 79, 16, 15, 10, 68, 3, 14, 22, 12, 1, 1, 20, 28, 72, 71, 14, 10, 3, 79, 16, 15, 10, 68, 3, 14, 22, 12, 1, 1, 20, 28, 68, 4, 14, 10, 71, 1, 1, 17, 10, 22, 71, 10, 28, 19, 6, 10, 0, 26, 13, 20, 7, 68, 14, 27, 74, 71, 89, 68, 32, 0, 0, 71, 28, 1, 9, 27, 68, 45, 0, 12, 9, 79, 16, 15, 10, 68, 37, 14, 20, 19, 6, 23, 19, 79, 83, 71, 27, 11, 71, 27, 1, 11, 3, 68, 2, 25, 1, 21, 22, 11, 9, 10, 68, 6, 13, 11, 18, 27, 68, 19, 7, 1, 71, 3, 13, 0, 7, 16, 71, 28, 11, 71, 27, 12, 6, 27, 68, 2, 25, 1, 21, 22, 11, 9, 10, 68, 10, 6, 3, 15, 27, 68, 5, 10, 8, 14, 10, 18, 2, 79, 6, 2, 12, 5, 18, 28, 1, 71, 0, 2, 71, 7, 13, 20, 79, 16, 2, 28, 16, 14, 2, 11, 9, 22, 74, 71, 87, 68, 45, 0, 12, 9, 79, 12, 14, 2, 23, 2, 3, 2, 71, 24, 5, 20, 79, 10, 8, 27, 68, 19, 7, 1, 71, 3, 13, 0, 7, 16, 92, 79, 12, 2, 79, 19, 6, 28, 68, 8, 1, 8, 30, 79, 5, 71, 24, 13, 19, 1, 1, 20, 28, 68, 19, 0, 68, 19, 7, 1, 71, 3, 13, 0, 7, 16, 73, 79, 93, 71, 59, 12, 2, 79, 11, 9, 10, 68, 16, 7, 11, 71, 6, 23, 71, 27, 12, 2, 79, 16, 21, 26, 1, 71, 3, 13, 0, 7, 16, 75, 79, 19, 15, 0, 68, 0, 6, 18, 2, 28, 68, 11, 6, 3, 15, 27, 68, 19, 0, 68, 2, 25, 1, 21, 22, 11, 9, 10, 72, 71, 24, 5, 20, 79, 3, 8, 6, 10, 0, 79, 16, 8, 79, 7, 8, 2, 1, 71, 6, 10, 19, 0, 68, 19, 7, 1, 71, 24, 11, 21, 3, 0, 73, 79, 85, 87, 79, 38, 18, 27, 68, 6, 3, 16, 15, 0, 17, 0, 7, 68, 19, 7, 1, 71, 24, 11, 21, 3, 0, 71, 24, 5, 20, 79, 9, 6, 11, 1, 71, 27, 12, 21, 0, 17, 0, 7, 68, 15, 6, 9, 75, 79, 16, 15, 10, 68, 16, 0, 22, 11, 11, 68, 3, 6, 0, 9, 72, 16, 71, 29, 1, 4, 0, 3, 9, 6, 30, 2, 79, 12, 14, 2, 68, 16, 7, 1, 9, 79, 12, 2, 79, 7, 6, 2, 1, 73, 79, 85, 86, 79, 33, 17, 10, 10, 71, 6, 10, 71, 7, 13, 20, 79, 11, 16, 1, 68, 11, 14, 10, 3, 79, 5, 9, 11, 68, 6, 2, 11, 9, 8, 68, 15, 6, 23, 71, 0, 19, 9, 79, 20, 2, 0, 20, 11, 10, 72, 71, 7, 1, 71, 24, 5, 20, 79, 10, 8, 27, 68, 6, 12, 7, 2, 31, 16, 2, 11, 74, 71, 94, 86, 71, 45, 17, 19, 79, 16, 8, 79, 5, 11, 3, 68, 16, 7, 11, 71, 13, 1, 11, 6, 1, 17, 10, 0, 71, 7, 13, 10, 79, 5, 9, 11, 68, 6, 12, 7, 2, 31, 16, 2, 11, 68, 15, 6, 9, 75, 79, 12, 2, 79, 3, 6, 25, 1, 71, 27, 12, 2, 79, 22, 14, 8, 12, 19, 79, 16, 8, 79, 6, 2, 12, 11, 10, 10, 68, 4, 7, 13, 11, 11, 22, 2, 1, 68, 8, 9, 68, 32, 0, 0, 73, 79, 85, 84, 79, 48, 15, 10, 29, 71, 14, 22, 2, 79, 22, 2, 13, 11, 21, 1, 69, 71, 59, 12, 14, 28, 68, 14, 28, 68, 9, 0, 16, 71, 14, 68, 23, 7, 29, 20, 6, 7, 6, 3, 68, 5, 6, 22, 19, 7, 68, 21, 10, 23, 18, 3, 16, 14, 1, 3, 71, 9, 22, 8, 2, 68, 15, 26, 9, 6, 1, 68, 23, 14, 23, 20, 6, 11, 9, 79, 11, 21, 79, 20, 11, 14, 10, 75, 79, 16, 15, 6, 23, 71, 29, 1, 5, 6, 22, 19, 7, 68, 4, 0, 9, 2, 28, 68, 1, 29, 11, 10, 79, 35, 8, 11, 74, 86, 91, 68, 52, 0, 68, 19, 7, 1, 71, 56, 11, 21, 11, 68, 5, 10, 7, 6, 2, 1, 71, 7, 17, 10, 14, 10, 71, 14, 10, 3, 79, 8, 14, 25, 1, 3, 79, 12, 2, 29, 1, 71, 0, 10, 71, 10, 5, 21, 27, 12, 71, 14, 9, 8, 1, 3, 71, 26, 23, 73, 79, 44, 2, 79, 19, 6, 28, 68, 1, 26, 8, 11, 79, 11, 1, 79, 17, 9, 9, 5, 14, 3, 13, 9, 8, 68, 11, 0, 18, 2, 79, 5, 9, 11, 68, 1, 14, 13, 19, 7, 2, 18, 3, 10, 2, 28, 23, 73, 79, 37, 9, 11, 68, 16, 10, 68, 15, 14, 18, 2, 79, 23, 2, 10, 10, 71, 7, 13, 20, 79, 3, 11, 0, 22, 30, 67, 68, 19, 7, 1, 71, 8, 8, 8, 29, 29, 71, 0, 2, 71, 27, 12, 2, 79, 11, 9, 3, 29, 71, 60, 11, 9, 79, 11, 1, 79, 16, 15, 10, 68, 33, 14, 16, 15, 10, 22, 73]
if __name__ == '__main__':
print(problem059()) |
boxes = [ ]
c = 0
for line in open( 'input.txt', 'r' ):
line = line.strip( )
if c == 0:
boxes.append( line )
c += 1
continue
for old_line in boxes:
diffs = 0
for i in range( len( old_line ) ):
if old_line[ i ] != line[ i ]:
diffs += 1
same_char = old_line[ i ]
#print( ---\n{0}\n{1}\n{2}'.format( ol'diffs )
if diffs == 1:
print( old_line.replace( same_char, '' ) )
exit( 0 )
boxes.append( line )
c += 1 | boxes = []
c = 0
for line in open('input.txt', 'r'):
line = line.strip()
if c == 0:
boxes.append(line)
c += 1
continue
for old_line in boxes:
diffs = 0
for i in range(len(old_line)):
if old_line[i] != line[i]:
diffs += 1
same_char = old_line[i]
if diffs == 1:
print(old_line.replace(same_char, ''))
exit(0)
boxes.append(line)
c += 1 |
# https://www.youtube.com/watch?v=-VpH54mhSu4&list=PL5TJqBvpXQv6TtedyS_a_pJK2uVrksh7D&index=3
def solve(A):
# [-2, 1, 2, 3, 5, -4]
min, max = 0, 0
# min, max = A[0], A[0] Other way to start beginning from the first position
for value in A:
if value <= min:
min = value
if value >= max:
max = value
return min + max
A = [-2, 1, 2, 3, 5, -4]
B = [-4, -2, 1, 5, 10, 20, -15]
print(solve(A))
print(solve(B)) | def solve(A):
(min, max) = (0, 0)
for value in A:
if value <= min:
min = value
if value >= max:
max = value
return min + max
a = [-2, 1, 2, 3, 5, -4]
b = [-4, -2, 1, 5, 10, 20, -15]
print(solve(A))
print(solve(B)) |
__version__ = "0.2.0"
__description__ = "Download data from Refinitiv Tick History and compute some market microstructure measures."
__author__ = "Mingze Gao"
__author_email__ = "mingze.gao@sydney.edu.au"
# __github_url__ = "https://github.com/mgao6767/mktstructure"
| __version__ = '0.2.0'
__description__ = 'Download data from Refinitiv Tick History and compute some market microstructure measures.'
__author__ = 'Mingze Gao'
__author_email__ = 'mingze.gao@sydney.edu.au' |
class Graph:
def __init__(self, v):
self.v = v
self.e = 0
self.adj = [[] for _ in range(v)]
def add_edge(self, v, w):
self.adj[v].append(w)
self.adj[w].append(v)
self.e += 1
def get_v(self):
return self.v
def det_e(self):
return self.e
def get_adj(self, v):
for adj_v in self.adj[v]:
yield adj_v
def __str__(self):
builder = f'Vertices: {self.v} Edges: {self.e}'
for v in range(self.v):
builder += f'\n{v}:'
for adj_v in self.adj[v]:
builder += f' {adj_v}'
return builder
def test_graph():
graph = Graph(5)
print(graph)
if __name__ == '__main__':
test_graph()
| class Graph:
def __init__(self, v):
self.v = v
self.e = 0
self.adj = [[] for _ in range(v)]
def add_edge(self, v, w):
self.adj[v].append(w)
self.adj[w].append(v)
self.e += 1
def get_v(self):
return self.v
def det_e(self):
return self.e
def get_adj(self, v):
for adj_v in self.adj[v]:
yield adj_v
def __str__(self):
builder = f'Vertices: {self.v} Edges: {self.e}'
for v in range(self.v):
builder += f'\n{v}:'
for adj_v in self.adj[v]:
builder += f' {adj_v}'
return builder
def test_graph():
graph = graph(5)
print(graph)
if __name__ == '__main__':
test_graph() |
def detect_os(rctx):
"""
Detects the host operating system.
Args:
rctx: repository_ctx
Returns:
One of the targets in @platforms//os:*.
"""
os_name = rctx.os.name.lower()
if os_name.startswith("mac os"):
return "darwin"
elif os_name == "linux":
return "linux"
elif os_name.startswith("windows"):
return "windows"
else:
fail("unrecognized os_name %s" % os_name)
_KNOWN_CPUS = ("x86_64", "arm64")
def detect_cpu(rctx):
"""
Detects the host CPU.
Args:
rctx: repository_ctx
Returns:
One of the targets in @platforms//cpu:*.
"""
uname = rctx.which("uname")
if not uname:
fail("cannot detect host CPU: `uname` not found on path")
res = rctx.execute(["uname", "-m"])
if res.return_code == 0:
cpu = res.stdout.strip()
if cpu in _KNOWN_CPUS:
return cpu
fail("failed to detect host CPU with uname: stdout:\n%s\nstderr:\n%s" % (res.stdout, res.stderr))
def detect_platform(rctx):
"""
Detects the host operating system + CPU.
Args:
rctx: repository_ctx
Returns:
One of the targets in @bazel_tools//src/conditions:*.
Note that these use `darwin` instead of `macos` (as of Bazel 4.2).
"""
os = detect_os(rctx)
if os == "macos":
os = "darwin"
cpu = detect_cpu(rctx)
return "%s_%s" % (os, cpu)
| def detect_os(rctx):
"""
Detects the host operating system.
Args:
rctx: repository_ctx
Returns:
One of the targets in @platforms//os:*.
"""
os_name = rctx.os.name.lower()
if os_name.startswith('mac os'):
return 'darwin'
elif os_name == 'linux':
return 'linux'
elif os_name.startswith('windows'):
return 'windows'
else:
fail('unrecognized os_name %s' % os_name)
_known_cpus = ('x86_64', 'arm64')
def detect_cpu(rctx):
"""
Detects the host CPU.
Args:
rctx: repository_ctx
Returns:
One of the targets in @platforms//cpu:*.
"""
uname = rctx.which('uname')
if not uname:
fail('cannot detect host CPU: `uname` not found on path')
res = rctx.execute(['uname', '-m'])
if res.return_code == 0:
cpu = res.stdout.strip()
if cpu in _KNOWN_CPUS:
return cpu
fail('failed to detect host CPU with uname: stdout:\n%s\nstderr:\n%s' % (res.stdout, res.stderr))
def detect_platform(rctx):
"""
Detects the host operating system + CPU.
Args:
rctx: repository_ctx
Returns:
One of the targets in @bazel_tools//src/conditions:*.
Note that these use `darwin` instead of `macos` (as of Bazel 4.2).
"""
os = detect_os(rctx)
if os == 'macos':
os = 'darwin'
cpu = detect_cpu(rctx)
return '%s_%s' % (os, cpu) |
# ------------------------------------------------------------
# MC911 - Compiler construction laboratory.
# IC - UNICAMP
#
# RA094139 - Marcelo Mingatos de Toledo
# RA093175 - Victor Fernando Pompeo Barbosa
#
# ------------------------------------------------------------
class LyaColor:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
| class Lyacolor:
header = '\x1b[95m'
okblue = '\x1b[94m'
okgreen = '\x1b[92m'
warning = '\x1b[93m'
fail = '\x1b[91m'
endc = '\x1b[0m'
bold = '\x1b[1m'
underline = '\x1b[4m' |
def print_tasks():
print("The available tasks are:")
for t in list_of_tasks:
print(display_full_task(t))
'''
for x in range(0, num_tasks):
n = input("\ninput name: \n") #Customize Questions
t = input("input time: \n")
c = input("input category: \n")
task=task_list(n,t,c)
list_of_tasks.insert(x, task.name)
print("\nList of Tasks:", list_of_tasks)
'''
## Additional methods that don't have to do with the code when you run it as of now
def recommend_task():
'''
Need to print the tasks with numbers than allow the user to select a
specific task by entering a number
'''
for x in range (0, len(task_list)):
task_list.display_full_task(x)
| def print_tasks():
print('The available tasks are:')
for t in list_of_tasks:
print(display_full_task(t))
'\nfor x in range(0, num_tasks):\n n = input("\ninput name: \n") #Customize Questions\n t = input("input time: \n")\n c = input("input category: \n")\n\n task=task_list(n,t,c)\n\n list_of_tasks.insert(x, task.name)\n\nprint("\nList of Tasks:", list_of_tasks)\n'
def recommend_task():
"""
Need to print the tasks with numbers than allow the user to select a
specific task by entering a number
"""
for x in range(0, len(task_list)):
task_list.display_full_task(x) |
# Given a singly linked list and an integer k, remove the kth last element from
# the list. k is guaranteed to be smaller than the length of the list.
# The list is very long, so making more than one pass is prohibitively expensive.
class Node:
def __init__(self, value):
self.value = value
self.next = None
class LinkList:
def __init__(self, values):
self.length = 0
self.head = None
if values:
current = self.head = Node(values[0])
self.length += 1
for v in values[1:]:
node = Node(v)
current.next = node
current = current.next
self.length += 1
def last_k(self, k):
assert k < self.length
current = self.head
k = self.length - k
while k > 0:
k -= 1
current = current.next
return current.value
def last_k_without_length(self, k):
current = delay = self.head
while k > 0:
k -= 1
current = current.next
while current:
current = current.next
delay = delay.next
return delay.value
if __name__ == '__main__':
link = LinkList(list(range(20)))
print('Last k-th element: {}'.format(link.last_k(3)))
print('Last k-th element without knowing length of list: {}'.format(
link.last_k_without_length(3)))
| class Node:
def __init__(self, value):
self.value = value
self.next = None
class Linklist:
def __init__(self, values):
self.length = 0
self.head = None
if values:
current = self.head = node(values[0])
self.length += 1
for v in values[1:]:
node = node(v)
current.next = node
current = current.next
self.length += 1
def last_k(self, k):
assert k < self.length
current = self.head
k = self.length - k
while k > 0:
k -= 1
current = current.next
return current.value
def last_k_without_length(self, k):
current = delay = self.head
while k > 0:
k -= 1
current = current.next
while current:
current = current.next
delay = delay.next
return delay.value
if __name__ == '__main__':
link = link_list(list(range(20)))
print('Last k-th element: {}'.format(link.last_k(3)))
print('Last k-th element without knowing length of list: {}'.format(link.last_k_without_length(3))) |
def test_Dataset(mocker):
pass
| def test__dataset(mocker):
pass |
# Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product.
# Example 1:
# Input: [2,3,-2,4]
# Output: 6
# Explanation: [2,3] has the largest product 6.
# Example 2:
# Input: [-2,0,-1]
# Output: 0
# Explanation: The result cannot be 2, because [-2,-1] is not a subarray.
class Solution(object):
def maxProduct(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if not nums or len(nums) == 0: return 0
else:
res1,res2 = [0 for i in range(len(nums))], [0 for i in range(len(nums))]
res1[0], res2[0] = nums[0], nums[0]
for i in range(1,len(nums)):
res2[i] = max(res1[i-1] * nums[i], res2[i-1] * nums[i], nums[i])
res1[i] = min(res1[i-1] * nums[i], res2[i-1] * nums[i], nums[i])
return max(res2)
# Time: O(n)
# Space: O(n)
# Difficulty: medium | class Solution(object):
def max_product(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if not nums or len(nums) == 0:
return 0
else:
(res1, res2) = ([0 for i in range(len(nums))], [0 for i in range(len(nums))])
(res1[0], res2[0]) = (nums[0], nums[0])
for i in range(1, len(nums)):
res2[i] = max(res1[i - 1] * nums[i], res2[i - 1] * nums[i], nums[i])
res1[i] = min(res1[i - 1] * nums[i], res2[i - 1] * nums[i], nums[i])
return max(res2) |
# Fibonacci series
# 0,1,1,2,3,5,8,13,21...
try:
term_number = int(input('Enter Term Number : '))
except:
print('Please Enter A Valid Integer')
quit()
n1, n2 = 0, 1
count = 0
if term_number <= 0:
print('Please enter a positive integer')
elif term_number == 1:
print('Fibonacci Series')
print(n1)
else:
print('Fibonacci Series')
while count < term_number:
print(n1)
sth = n1 + n2
n1 = n2
n2 = sth
count += 1
| try:
term_number = int(input('Enter Term Number : '))
except:
print('Please Enter A Valid Integer')
quit()
(n1, n2) = (0, 1)
count = 0
if term_number <= 0:
print('Please enter a positive integer')
elif term_number == 1:
print('Fibonacci Series')
print(n1)
else:
print('Fibonacci Series')
while count < term_number:
print(n1)
sth = n1 + n2
n1 = n2
n2 = sth
count += 1 |
"""
Created on 04/06/2012
@author: victor
"""
class Analysis(object):
def __init__(self, name, analysis_function, other_params = None):
"""
Creates one analysis object. It uses an 'analysis_function' which
has at least a clustering as parameter and returns a string without any tab
character.
The analysis function can have another parameter. If we need more
than one extra parameter it can be provided with an iterable.
"""
self.name = name
self.analysis_function = analysis_function # Function that will be called to do the calculation
self.other_params = other_params
def run(self, clustering):
"""
Runs one analysis function and appends the result to the results string.
It the result of the function is not an string, it converts the result to a
string.
"""
if self.other_params:
return self.analysis_function(clustering, self.other_params)
else:
return self.analysis_function(clustering)
| """
Created on 04/06/2012
@author: victor
"""
class Analysis(object):
def __init__(self, name, analysis_function, other_params=None):
"""
Creates one analysis object. It uses an 'analysis_function' which
has at least a clustering as parameter and returns a string without any tab
character.
The analysis function can have another parameter. If we need more
than one extra parameter it can be provided with an iterable.
"""
self.name = name
self.analysis_function = analysis_function
self.other_params = other_params
def run(self, clustering):
"""
Runs one analysis function and appends the result to the results string.
It the result of the function is not an string, it converts the result to a
string.
"""
if self.other_params:
return self.analysis_function(clustering, self.other_params)
else:
return self.analysis_function(clustering) |
def floyd(num_vertice, graph):
distance = graph #to keep the distances of the graph
for target in range(num_vertice): #going thro all vertices
for i in range(num_vertice): #go thro row
for j in range(num_vertice):#go thro column
distance[i][j] = min(distance[i][j], distance[i][target] + distance[target][i])
| def floyd(num_vertice, graph):
distance = graph
for target in range(num_vertice):
for i in range(num_vertice):
for j in range(num_vertice):
distance[i][j] = min(distance[i][j], distance[i][target] + distance[target][i]) |
class NoSuchListenerError(Exception):
pass
class NoSuchEventError(Exception):
pass
class InvalidHandlerError(Exception):
pass
| class Nosuchlistenererror(Exception):
pass
class Nosucheventerror(Exception):
pass
class Invalidhandlererror(Exception):
pass |
def packbits(myarray, axis=None):
# TODO(beam2d): Implement it
raise NotImplementedError
def unpackbits(myarray, axis=None):
# TODO(beam2d): Implement it
raise NotImplementedError
| def packbits(myarray, axis=None):
raise NotImplementedError
def unpackbits(myarray, axis=None):
raise NotImplementedError |
"""
by Denexapp
"""
sound_files = {
1: "legacy/1_allakh_akbar.mp3",
2: "legacy/2_assalam_alleykum.mp3",
3: "legacy/3_ver_i_vse_poluchitsya.mp3",
4: "legacy/4_vnesi_dengi_i_zagadai_zhelanie.mp3",
5: "legacy/5_vnesi_platu_i_zagadai_svoye_zhelanie.mp3",
6: "legacy/6_vnesi_platu_i_sosredotochsya.mp3",
7: "legacy/7_vremya_ozhidaniya_deneg_istekaet_cherez_2_minut.mp3",
8: "legacy/8_vse_chto_suschestvuet_na_svete_kogda_to_bylo_mechtoy.mp3",
9: "legacy/9_dobav_esche.mp3",
10: "legacy/10_dobav_esche_1.mp3",
11: "legacy/11_esli_ty_mozhesh_mechtat_to_ty.mp3",
12: "legacy/12_zagadai_zhelanie.mp3",
13: "legacy/13_zaplati_mne_i_ya_pomogu_tebe.mp3",
14: "legacy/14_idi_s_mirom_vsevyshniy_pomojet_tebe.mp3",
15: "legacy/15_molitva.mp3",
16: "legacy/16_podoide_ko_mne.mp3",
17: "legacy/17_podoidi_ko_mne_ya_potomstveny_mag.mp3",
18: "legacy/18_podhodi_blizhe_2.mp3",
19: "legacy/19_podhodi_poblizhe_hochesh_ispolnit_zhelaniya.mp3",
20: "legacy/20_pozoloti_ruchku.mp3",
21: "legacy/21_priblizsya.mp3",
22: "legacy/22_profinansirui_sosredotochsya_ya_pomogu_tebe.mp3",
23: "legacy/23_segodnya_luna_v_skorpione.mp3",
24: "legacy/24_tvoe_zhelanie_ispolnitsya.mp3",
25: "legacy/25_hochesh_chtoby_tvoe_zhelanie_ispolnilos.mp3",
26: "legacy/26_ya_potomstvenny_mag.mp3",
27: "welcome/19.mp3",
28: "welcome/18.mp3",
29: "welcome/11.mp3",
30: "welcome/9.mp3",
31: "welcome/5.mp3",
32: "welcome/4.mp3",
33: "welcome/3.mp3",
34: "effects/4.mp3",
35: "effects/5.mp3",
36: "effects/6.mp3",
37: "effects/7.mp3",
38: "effects/8.mp3",
39: "effects/9.mp3",
40: "effects/10.mp3",
41: "effects/11.mp3",
42: "effects/12.mp3",
43: "effects/13.mp3",
44: "effects/14.mp3",
45: "pay/1.mp3",
46: "pay/4.mp3",
47: "pay/5.mp3",
48: "welcome/1.mp3",
49: "welcome/2.mp3",
50: "welcome/17.mp3",
51: "welcome/21.mp3",
52: "effects/15.mp3",
53: "effects/16.mp3",
54: "effects/17.mp3",
55: "effects/18.mp3",
56: "effects/19.mp3",
57: "effects/20.mp3",
58: "effects/21.mp3",
59: "effects/22.mp3",
60: "effects/23.mp3",
61: "effects/24.mp3",
62: "effects/25.mp3",
63: "effects/26.mp3",
64: "effects/27.mp3",
65: "effects/28.mp3",
66: "effects/29.mp3",
67: "effects/30.mp3",
68: "new_legacy/1.mp3",
69: "new_legacy/2.mp3",
70: "new_legacy/3.mp3"
}
sound_markup = {
1: "1600 2 2 1 400 1 2",
2: "900 1 1 2 100 2 1 1 1900 1 1 400 1 1 300 2 1",
3: "1200 2~400 500 1 150 2 250 1 1 1 1",
4: "1600 2 1 350 2 1 450 1 1 1 2~300 100 1 2 1 1",
5: "700 2~300 1 200 2 1 1300 1 1 1 100 2 2 50 1 2 1 1",
6: "900 1 1 200 2~350 1 420 1~150 1 1 2 2 1",
7: "1400 1~150 2~150 2~150 1~150 2~150 1~150 2~150 1~150 1~150 2 1~200 1~150 1~200 1~150 2 1~150 1~150 2 1 1 1",
8: "1350 2~400 300 2 1 1 1 1 2 1~300 1~300 750 1 2 1 1 2 1~250 2~350",
9: "1~300 2~300 500 1~300 2~400",
10: "1~300 2~300 500 1~300 2~400",
11: "1400 1~300 1~300 200 1~300 2 1 100 1 2~350 600 1~250 2~300 1~300 100 2~300 2~300 1~300 200 2 1 1 1 100 1~350",
12: "980 1 1 2~300 1 2 1 1",
13: "780 1 2 1~300 1 480 1 2 250 1 1 1 1~150 1",
14: "600 1~300 1~400 200 1~300 2~400 700 1 1~250 1 200 1 1 200 1 2~300 1",
15: "800 2 2 1 2 2 1~300 2 1 2~300 2 1 500 1 1~300 2 1~300 50 2 2 1 1 550 2~350 2 100 2 1 1 2 1~300 550 " +
"1 1 60 2 1 2 60 1 1 1~300 800 2~300 2~250 1 100 1 2~300 1~250 1 2~260 1~300" +
" 750 2 1~300 1 2~300 1 100 1 60 2 1~350 " +
"1050 2 100 2 1 100 2~200 1~300 500 2 2 60 1 1 2 2 50 2 2" +
" 800 1 1 2 2 1 1 2 2 230 2~300 580 2 1 2~250 180 2 1 1 300 1 1 200 1 2 100 1 2 1 2 50 2 2~160 1" +
" 500 1 2~300 100 2 2 1 800 2~300 1",
16: "800 2 2 1 60 2~250 1",
17: "800 2 2 1 60 2~250 1 850 2 1 1~300 1 1 2~400 1000 1 2 1 1 1 1 1 2~400 2 1 1 2 1 1",
18: "600 2 2 1 300 2 1 1",
19: "200 2 2 1 300 2 1 1 2000 2 1 200 1~150 2 1~150 1~150 2 1 2 1 2",
20: "1200 2~180 1~180 2~180 1~180 1 1",
21: "1100 1~250 1~400 2",
22: "1300 2 1 2 1 1 800 1 2~180 1~140 2~150 1 2~160 2 1~180 2 1~140 1 700 2 2~300 300 2 2 1~150 1~170 1",
23: "1200 1 2~300 2 350 1 2~300 50 2 1 2~300 1 460 1 2~250 1~150 80 1 2 1~160 2 500 2 1 1 2 1 2",
24: "1000 2~300 1 1~180 2~300 1~150 400 1 2~280 1 2~300",
25: "1600 2~300 1 400 2 1 2 1 1~150 2 1~150 1~100 150 1 2 1 2",
26: "500 2 1 1~300 1 1 2~400 1000 1 2 1 1 1 1 1 2~400 2 1 1 2 1 1",
27: "200 2~300 1 2~300 1 2 1~300 100 2 1 1 1 2 1 50 2 2~600 1100 1 1 1 120 2~190 1~150 1 1~150 2~150 " +
"490 2 1 1 0 2 1 1 0 2 1 2 1",
28: "1400 2~250 2 400 1 2 1 2200 1~200 1~190 2~190 2~190 1~190 2~190 1~180 2~180 1~200 2 2700 2~200 2 500 " +
"2~200 2~180 1~170 1~200 1~160 2~200 1900 2~190 1~180 1~200 2~200 1 2600 " +
"1 2 1 2200 1 2 1 2~190 1~180 2 1~200 2 2 1 2 600 1 1~300 100 2 1 18500 2~300 2000",
29: "800 1 2 1 50 1 2 1 100 1 2~190 1~190 2 500 2 2 1 2~280 1 1200 2 1 50 2 2~300 200 " +
"1 2~350 1300 1 1 2 1 2 2 1 1 1 2 1 1 2 1~200 1~300 2 2",
30: "300 1 1 2 1 500 1 1 2 2~150 1~200 2 1~180 2~190 1~150 1 1400 1 2 1~200 1~180 2~190 1 500 " +
"2 1 2 1700 1 1 1 2 1 2 2 1 2 1 2 1",
31: "1100 1 2 1 500 2~150 2~150 2 1 2~160 1 500 2 1 1 2 250" +
" 1~200 2~150 1~150 2~180 2 2~190 1 1 2~300 1000 1 2 2 400 1 2 1 2",
32: "1900 1 2~200 2~200 1~200 1~190 50 1~200 2~180 1~180 2~150 1~180 500" +
" 2 1~190 1~210 2~190 1 150 1 2~250 1~200 2~160 2~160 2~260 2~260 1~180 1~160 1~160 2~160 1~160" +
" 1000 2~200 1~200 2~100 1~150 2~190 1~140 2~190 100 1~200 2~150 2~150 1~150 2~150 100 1 2 1 1 2",
33: "1000 2~350 100 1~190 1~190 1 2 2 1 2 1 120 2 1 2 1~250 60 2~450" +
" 1000 2~200 1~200 2~200 1~190 2~160 2~180 1 2 2 1~200 2 1" +
" 2400 2 1 1 2 1 1 1 2 1 2~170 2~170 2~170 50 1~180 2~180 1~180 2~180 2 1~150" +
" 2~170 1~260 2~260 2~180 1 1000 1 2 2 1 1 2 1 1~150 2 2~180 1 2~180 1 1000 " +
"1~180 1~180 2~180 2 1~180 100 2 2 1 2 1 1 2~180 1~180 1~180 1~180 300 2 1 100 1 2 1 2",
34: "19000",
35: "15000",
36: "5000",
37: "28000",
38: "34000",
39: "39000",
40: "10000",
41: "18000",
42: "49000",
43: "53000",
44: "40000",
45: "1900 2~180 1~180 50 1~200 2~180 1~160 500 1~180 2~200 1~200 1~170 1~150 1~150 1~170 280" +
" 1~160 2~160 1~160 2~160 1~160 1~160 1 1~160 2 1~160 1 2 2",
46: "780 2~160 1~190 1~150 2~190 1 180 2 100 1 1 2 200 1 2 1 2 1 1" +
" 600 1 2 1 1 1~200 100 2~180 1~150 1~150 1~160 1~150 2 1 100 2 1 2 1",
47: "1600 2 2 200 2 2 1 1050 2 1 1 2 1 200 1 1 2 1 1~200 2~200 1~200 2",
48: "1300 2 150 2 1 2 300 2 1 1 100 1 1 2 1000 2 1 2 1 2 1~190 2 150 2 2~200 1~190 1~190 1",
49: "1300 2 1 500 2 1 2~300 300 2 1 1 1 2 1 2",
50: "1900 1~250 2~400 100 2 1 50 1 2 1 1 2 1 1 2 1",
51: "2900 2 1~180 1~180 100 2~160 2~150 1~170 100 1~200 1~160 2~170 2" +
" 300 2 50 2~200 1~120 1 2~160 1~260 700 " +
"2~150 1~140 2~140 1 2 2 2~180 1 1 2~120 2~150 1 " +
"600 2~180 1~100 1 2~140 1 2~130 2~130 1 1 2~150 1~150 1~150 100 2~170 1 800 " +
"2 1 1~180 2 2 2 200 1 2 1 1 2 1 1 200 2 2 2",
52: "32000",
53: "35000",
54: "31000",
55: "31000",
56: "23000",
57: "30000",
58: "22000",
59: "39000",
60: "27000",
61: "13000",
62: "31000",
63: "34000",
64: "21000",
65: "42000",
66: "37000",
67: "22000",
68: "4200 2 2 1 60 2~250 1 100",
69: "1700 2~180 1~180 2~180 1~180 1 1 1000",
70: "1300 2 2 1 60 2~250 1 850 2 1 1~300 1 1 2~400 1000 1 2 1 1 1 1 1 2~400 2 1 1 2 1 1 2000"
}
sound_scenarios = {
0: [[51, 63, 64, 19, 41, 70, 33, 43, 34, 37, 32, 35, 39, 30, 38, 44, 31, 40, 42, 28, 36, 27, 63, 68],
[48, 5, 57, 56, 53, 45, 55, 58, 62, 46, 54, 52, 59, 47, 49, 61, 62, 69, 65, 50, 66, 67], 11],
1: [[70, 18, 67, 51, 63, 64, 19, 41, 33, 43, 34, 37, 32, 35, 39, 30, 38, 44, 31, 40, 42, 28, 36, 27],
[6, 66, 69, 48, 5, 57, 56, 53, 45, 55, 58, 62, 46, 54, 52, 59, 47, 49, 61, 62, 65, 50, 66, 67], 8],
2: [[21, 65, 70, 27, 36, 28, 42, 40, 31, 44, 38, 30, 39, 35, 32, 37, 34, 43, 33, 41, 19, 64, 63, 51],
[13, 61, 69, 48, 5, 57, 56, 53, 45, 55, 58, 62, 46, 54, 52, 59, 47, 49, 61, 62, 65, 50, 66, 67], 3],
3: [[68, 25, 40, 61, 19, 41, 33, 43, 34, 37, 32, 35, 39, 30, 38, 44, 31, 40, 42, 28, 36, 27],
[69, 62, 53, 22, 67, 66, 50, 65, 62, 61, 49, 47, 59, 52, 54, 46, 62, 58, 55, 45, 53, 56, 57, 5, 48], 14],
4: [[2, 42, 27, 36, 28, 42, 40, 31, 44, 38, 30, 39, 35, 32, 37, 34, 43, 70, 33, 41, 19, 64, 63, 51],
[4, 58, 54, 69, 67, 66, 50, 65, 62, 61, 49, 47, 59, 52, 54, 46, 62, 58, 55, 45, 53, 56, 57, 5, 48], 1]
} | """
by Denexapp
"""
sound_files = {1: 'legacy/1_allakh_akbar.mp3', 2: 'legacy/2_assalam_alleykum.mp3', 3: 'legacy/3_ver_i_vse_poluchitsya.mp3', 4: 'legacy/4_vnesi_dengi_i_zagadai_zhelanie.mp3', 5: 'legacy/5_vnesi_platu_i_zagadai_svoye_zhelanie.mp3', 6: 'legacy/6_vnesi_platu_i_sosredotochsya.mp3', 7: 'legacy/7_vremya_ozhidaniya_deneg_istekaet_cherez_2_minut.mp3', 8: 'legacy/8_vse_chto_suschestvuet_na_svete_kogda_to_bylo_mechtoy.mp3', 9: 'legacy/9_dobav_esche.mp3', 10: 'legacy/10_dobav_esche_1.mp3', 11: 'legacy/11_esli_ty_mozhesh_mechtat_to_ty.mp3', 12: 'legacy/12_zagadai_zhelanie.mp3', 13: 'legacy/13_zaplati_mne_i_ya_pomogu_tebe.mp3', 14: 'legacy/14_idi_s_mirom_vsevyshniy_pomojet_tebe.mp3', 15: 'legacy/15_molitva.mp3', 16: 'legacy/16_podoide_ko_mne.mp3', 17: 'legacy/17_podoidi_ko_mne_ya_potomstveny_mag.mp3', 18: 'legacy/18_podhodi_blizhe_2.mp3', 19: 'legacy/19_podhodi_poblizhe_hochesh_ispolnit_zhelaniya.mp3', 20: 'legacy/20_pozoloti_ruchku.mp3', 21: 'legacy/21_priblizsya.mp3', 22: 'legacy/22_profinansirui_sosredotochsya_ya_pomogu_tebe.mp3', 23: 'legacy/23_segodnya_luna_v_skorpione.mp3', 24: 'legacy/24_tvoe_zhelanie_ispolnitsya.mp3', 25: 'legacy/25_hochesh_chtoby_tvoe_zhelanie_ispolnilos.mp3', 26: 'legacy/26_ya_potomstvenny_mag.mp3', 27: 'welcome/19.mp3', 28: 'welcome/18.mp3', 29: 'welcome/11.mp3', 30: 'welcome/9.mp3', 31: 'welcome/5.mp3', 32: 'welcome/4.mp3', 33: 'welcome/3.mp3', 34: 'effects/4.mp3', 35: 'effects/5.mp3', 36: 'effects/6.mp3', 37: 'effects/7.mp3', 38: 'effects/8.mp3', 39: 'effects/9.mp3', 40: 'effects/10.mp3', 41: 'effects/11.mp3', 42: 'effects/12.mp3', 43: 'effects/13.mp3', 44: 'effects/14.mp3', 45: 'pay/1.mp3', 46: 'pay/4.mp3', 47: 'pay/5.mp3', 48: 'welcome/1.mp3', 49: 'welcome/2.mp3', 50: 'welcome/17.mp3', 51: 'welcome/21.mp3', 52: 'effects/15.mp3', 53: 'effects/16.mp3', 54: 'effects/17.mp3', 55: 'effects/18.mp3', 56: 'effects/19.mp3', 57: 'effects/20.mp3', 58: 'effects/21.mp3', 59: 'effects/22.mp3', 60: 'effects/23.mp3', 61: 'effects/24.mp3', 62: 'effects/25.mp3', 63: 'effects/26.mp3', 64: 'effects/27.mp3', 65: 'effects/28.mp3', 66: 'effects/29.mp3', 67: 'effects/30.mp3', 68: 'new_legacy/1.mp3', 69: 'new_legacy/2.mp3', 70: 'new_legacy/3.mp3'}
sound_markup = {1: '1600 2 2 1 400 1 2', 2: '900 1 1 2 100 2 1 1 1900 1 1 400 1 1 300 2 1', 3: '1200 2~400 500 1 150 2 250 1 1 1 1', 4: '1600 2 1 350 2 1 450 1 1 1 2~300 100 1 2 1 1', 5: '700 2~300 1 200 2 1 1300 1 1 1 100 2 2 50 1 2 1 1', 6: '900 1 1 200 2~350 1 420 1~150 1 1 2 2 1', 7: '1400 1~150 2~150 2~150 1~150 2~150 1~150 2~150 1~150 1~150 2 1~200 1~150 1~200 1~150 2 1~150 1~150 2 1 1 1', 8: '1350 2~400 300 2 1 1 1 1 2 1~300 1~300 750 1 2 1 1 2 1~250 2~350', 9: '1~300 2~300 500 1~300 2~400', 10: '1~300 2~300 500 1~300 2~400', 11: '1400 1~300 1~300 200 1~300 2 1 100 1 2~350 600 1~250 2~300 1~300 100 2~300 2~300 1~300 200 2 1 1 1 100 1~350', 12: '980 1 1 2~300 1 2 1 1', 13: '780 1 2 1~300 1 480 1 2 250 1 1 1 1~150 1', 14: '600 1~300 1~400 200 1~300 2~400 700 1 1~250 1 200 1 1 200 1 2~300 1', 15: '800 2 2 1 2 2 1~300 2 1 2~300 2 1 500 1 1~300 2 1~300 50 2 2 1 1 550 2~350 2 100 2 1 1 2 1~300 550 ' + '1 1 60 2 1 2 60 1 1 1~300 800 2~300 2~250 1 100 1 2~300 1~250 1 2~260 1~300' + ' 750 2 1~300 1 2~300 1 100 1 60 2 1~350 ' + '1050 2 100 2 1 100 2~200 1~300 500 2 2 60 1 1 2 2 50 2 2' + ' 800 1 1 2 2 1 1 2 2 230 2~300 580 2 1 2~250 180 2 1 1 300 1 1 200 1 2 100 1 2 1 2 50 2 2~160 1' + ' 500 1 2~300 100 2 2 1 800 2~300 1', 16: '800 2 2 1 60 2~250 1', 17: '800 2 2 1 60 2~250 1 850 2 1 1~300 1 1 2~400 1000 1 2 1 1 1 1 1 2~400 2 1 1 2 1 1', 18: '600 2 2 1 300 2 1 1', 19: '200 2 2 1 300 2 1 1 2000 2 1 200 1~150 2 1~150 1~150 2 1 2 1 2', 20: '1200 2~180 1~180 2~180 1~180 1 1', 21: '1100 1~250 1~400 2', 22: '1300 2 1 2 1 1 800 1 2~180 1~140 2~150 1 2~160 2 1~180 2 1~140 1 700 2 2~300 300 2 2 1~150 1~170 1', 23: '1200 1 2~300 2 350 1 2~300 50 2 1 2~300 1 460 1 2~250 1~150 80 1 2 1~160 2 500 2 1 1 2 1 2', 24: '1000 2~300 1 1~180 2~300 1~150 400 1 2~280 1 2~300', 25: '1600 2~300 1 400 2 1 2 1 1~150 2 1~150 1~100 150 1 2 1 2', 26: '500 2 1 1~300 1 1 2~400 1000 1 2 1 1 1 1 1 2~400 2 1 1 2 1 1', 27: '200 2~300 1 2~300 1 2 1~300 100 2 1 1 1 2 1 50 2 2~600 1100 1 1 1 120 2~190 1~150 1 1~150 2~150 ' + '490 2 1 1 0 2 1 1 0 2 1 2 1', 28: '1400 2~250 2 400 1 2 1 2200 1~200 1~190 2~190 2~190 1~190 2~190 1~180 2~180 1~200 2 2700 2~200 2 500 ' + '2~200 2~180 1~170 1~200 1~160 2~200 1900 2~190 1~180 1~200 2~200 1 2600 ' + '1 2 1 2200 1 2 1 2~190 1~180 2 1~200 2 2 1 2 600 1 1~300 100 2 1 18500 2~300 2000', 29: '800 1 2 1 50 1 2 1 100 1 2~190 1~190 2 500 2 2 1 2~280 1 1200 2 1 50 2 2~300 200 ' + '1 2~350 1300 1 1 2 1 2 2 1 1 1 2 1 1 2 1~200 1~300 2 2', 30: '300 1 1 2 1 500 1 1 2 2~150 1~200 2 1~180 2~190 1~150 1 1400 1 2 1~200 1~180 2~190 1 500 ' + '2 1 2 1700 1 1 1 2 1 2 2 1 2 1 2 1', 31: '1100 1 2 1 500 2~150 2~150 2 1 2~160 1 500 2 1 1 2 250' + ' 1~200 2~150 1~150 2~180 2 2~190 1 1 2~300 1000 1 2 2 400 1 2 1 2', 32: '1900 1 2~200 2~200 1~200 1~190 50 1~200 2~180 1~180 2~150 1~180 500' + ' 2 1~190 1~210 2~190 1 150 1 2~250 1~200 2~160 2~160 2~260 2~260 1~180 1~160 1~160 2~160 1~160' + ' 1000 2~200 1~200 2~100 1~150 2~190 1~140 2~190 100 1~200 2~150 2~150 1~150 2~150 100 1 2 1 1 2', 33: '1000 2~350 100 1~190 1~190 1 2 2 1 2 1 120 2 1 2 1~250 60 2~450' + ' 1000 2~200 1~200 2~200 1~190 2~160 2~180 1 2 2 1~200 2 1' + ' 2400 2 1 1 2 1 1 1 2 1 2~170 2~170 2~170 50 1~180 2~180 1~180 2~180 2 1~150' + ' 2~170 1~260 2~260 2~180 1 1000 1 2 2 1 1 2 1 1~150 2 2~180 1 2~180 1 1000 ' + '1~180 1~180 2~180 2 1~180 100 2 2 1 2 1 1 2~180 1~180 1~180 1~180 300 2 1 100 1 2 1 2', 34: '19000', 35: '15000', 36: '5000', 37: '28000', 38: '34000', 39: '39000', 40: '10000', 41: '18000', 42: '49000', 43: '53000', 44: '40000', 45: '1900 2~180 1~180 50 1~200 2~180 1~160 500 1~180 2~200 1~200 1~170 1~150 1~150 1~170 280' + ' 1~160 2~160 1~160 2~160 1~160 1~160 1 1~160 2 1~160 1 2 2', 46: '780 2~160 1~190 1~150 2~190 1 180 2 100 1 1 2 200 1 2 1 2 1 1' + ' 600 1 2 1 1 1~200 100 2~180 1~150 1~150 1~160 1~150 2 1 100 2 1 2 1', 47: '1600 2 2 200 2 2 1 1050 2 1 1 2 1 200 1 1 2 1 1~200 2~200 1~200 2', 48: '1300 2 150 2 1 2 300 2 1 1 100 1 1 2 1000 2 1 2 1 2 1~190 2 150 2 2~200 1~190 1~190 1', 49: '1300 2 1 500 2 1 2~300 300 2 1 1 1 2 1 2', 50: '1900 1~250 2~400 100 2 1 50 1 2 1 1 2 1 1 2 1', 51: '2900 2 1~180 1~180 100 2~160 2~150 1~170 100 1~200 1~160 2~170 2' + ' 300 2 50 2~200 1~120 1 2~160 1~260 700 ' + '2~150 1~140 2~140 1 2 2 2~180 1 1 2~120 2~150 1 ' + '600 2~180 1~100 1 2~140 1 2~130 2~130 1 1 2~150 1~150 1~150 100 2~170 1 800 ' + '2 1 1~180 2 2 2 200 1 2 1 1 2 1 1 200 2 2 2', 52: '32000', 53: '35000', 54: '31000', 55: '31000', 56: '23000', 57: '30000', 58: '22000', 59: '39000', 60: '27000', 61: '13000', 62: '31000', 63: '34000', 64: '21000', 65: '42000', 66: '37000', 67: '22000', 68: '4200 2 2 1 60 2~250 1 100', 69: '1700 2~180 1~180 2~180 1~180 1 1 1000', 70: '1300 2 2 1 60 2~250 1 850 2 1 1~300 1 1 2~400 1000 1 2 1 1 1 1 1 2~400 2 1 1 2 1 1 2000'}
sound_scenarios = {0: [[51, 63, 64, 19, 41, 70, 33, 43, 34, 37, 32, 35, 39, 30, 38, 44, 31, 40, 42, 28, 36, 27, 63, 68], [48, 5, 57, 56, 53, 45, 55, 58, 62, 46, 54, 52, 59, 47, 49, 61, 62, 69, 65, 50, 66, 67], 11], 1: [[70, 18, 67, 51, 63, 64, 19, 41, 33, 43, 34, 37, 32, 35, 39, 30, 38, 44, 31, 40, 42, 28, 36, 27], [6, 66, 69, 48, 5, 57, 56, 53, 45, 55, 58, 62, 46, 54, 52, 59, 47, 49, 61, 62, 65, 50, 66, 67], 8], 2: [[21, 65, 70, 27, 36, 28, 42, 40, 31, 44, 38, 30, 39, 35, 32, 37, 34, 43, 33, 41, 19, 64, 63, 51], [13, 61, 69, 48, 5, 57, 56, 53, 45, 55, 58, 62, 46, 54, 52, 59, 47, 49, 61, 62, 65, 50, 66, 67], 3], 3: [[68, 25, 40, 61, 19, 41, 33, 43, 34, 37, 32, 35, 39, 30, 38, 44, 31, 40, 42, 28, 36, 27], [69, 62, 53, 22, 67, 66, 50, 65, 62, 61, 49, 47, 59, 52, 54, 46, 62, 58, 55, 45, 53, 56, 57, 5, 48], 14], 4: [[2, 42, 27, 36, 28, 42, 40, 31, 44, 38, 30, 39, 35, 32, 37, 34, 43, 70, 33, 41, 19, 64, 63, 51], [4, 58, 54, 69, 67, 66, 50, 65, 62, 61, 49, 47, 59, 52, 54, 46, 62, 58, 55, 45, 53, 56, 57, 5, 48], 1]} |
upper_code = ''
lower_code = ''
currentBlock = True
f = open('code.slice','r')
p = f.read().splitlines()
for i in p:
if i == '[upper]':
currentBlock = True
continue
if i == '[end]':
continue
if i == '[lower]':
currentBlock = False
continue
if i == '[endFile]':
break
if (currentBlock):
upper_code += i + '\n'
if(not currentBlock):
lower_code += i + '\n'
def setSize(size):
global lower_code
size = str(size[0]) + ',' + str(size[1])
lower_code = lower_code.replace('[size]',size)
def getCode(data):
return ' ' \
'graphics.drawLine('+str(data[0]) + ','+\
str(data[1]) + ','+\
str(data[2]) + ','+\
str(data[3]) + ');'
if (__name__ == "__main__"):
print('load function successfully!')
| upper_code = ''
lower_code = ''
current_block = True
f = open('code.slice', 'r')
p = f.read().splitlines()
for i in p:
if i == '[upper]':
current_block = True
continue
if i == '[end]':
continue
if i == '[lower]':
current_block = False
continue
if i == '[endFile]':
break
if currentBlock:
upper_code += i + '\n'
if not currentBlock:
lower_code += i + '\n'
def set_size(size):
global lower_code
size = str(size[0]) + ',' + str(size[1])
lower_code = lower_code.replace('[size]', size)
def get_code(data):
return ' graphics.drawLine(' + str(data[0]) + ',' + str(data[1]) + ',' + str(data[2]) + ',' + str(data[3]) + ');'
if __name__ == '__main__':
print('load function successfully!') |
def listify(obj):
if obj is None:
return []
if isinstance(obj, (list, tuple)):
return obj
return [obj]
| def listify(obj):
if obj is None:
return []
if isinstance(obj, (list, tuple)):
return obj
return [obj] |
renterData = {
'Topshop': {
'totalSqm': 2400,
'term': 120, # month
'isGuaranteed': False,
'initialRent': 2000000, # in euro
'initialRentPerSqm': 833,
'annualIncrease': 0.025,
'abatement': 0, # in month
'TI': 200, # TI per sqm
'equityMultiple': {
'unleveraged': 2.92,
'lenderA': 2.11,
'lenderB': 2.52
},
'IRR': {
'unleveraged': 0.51,
'lenderA': 0.66,
'lenderB': 0.49
}
},
'Zara': {
'totalSqm': 2400,
'term': 144,
'isGuaranteed': True,
'initialRent': 1400000,
'initialRentPerSqm': 583,
'annualIncrease': 0.025,
'abatement': 12,
'TI': 600,
'equityMultiple': {
'unleveraged': 2.62,
'lenderA': 1.93,
'lenderB': 2.25
},
'IRR': {
'unleveraged': 0.41,
'lenderA': 0.53,
'lenderB': 0.37
}
},
'Decathlon' : {
'totalSqm': 2400,
'term': 120,
'isGuaranteed': True,
'initialRent': 1700000,
'initialRentPerSqm': 708,
'annualIncrease': 0.025,
'abatement': 9,
'TI': 400,
'equityMultiple': {
'unleveraged': 3.28,
'lenderA': 2.32,
'lenderB': 2.72
},
'IRR': {
'unleveraged': 0.53,
'lenderA': 0.67,
'lenderB': 0.46
}
}
}
readableMap = {
'totalSqm': 'Total Area (in sqm)',
'term': 'Term (in months)',
'isGuaranteed': 'Guanrantee?',
'initialRent': 'Initial Rent',
'initialRentPerSqm': 'Initial Rent per Sqm',
'annualIncrease': 'Annual Increase',
'abatement': 'Abatement',
'TI': "Concession: TI",
'equityMultipleunleveraged': 'Equity Multiple for unleveraged',
'equityMultiplelenderA': 'Equity Multiple for lender A',
'equityMultiplelenderB': 'Equity Multiple for lender B',
'IRRunleveraged': 'IRR for unleveraged',
'IRRlenderA': 'IRR for lender A',
'IRRlenderB': 'IRR for lender B'
}
| renter_data = {'Topshop': {'totalSqm': 2400, 'term': 120, 'isGuaranteed': False, 'initialRent': 2000000, 'initialRentPerSqm': 833, 'annualIncrease': 0.025, 'abatement': 0, 'TI': 200, 'equityMultiple': {'unleveraged': 2.92, 'lenderA': 2.11, 'lenderB': 2.52}, 'IRR': {'unleveraged': 0.51, 'lenderA': 0.66, 'lenderB': 0.49}}, 'Zara': {'totalSqm': 2400, 'term': 144, 'isGuaranteed': True, 'initialRent': 1400000, 'initialRentPerSqm': 583, 'annualIncrease': 0.025, 'abatement': 12, 'TI': 600, 'equityMultiple': {'unleveraged': 2.62, 'lenderA': 1.93, 'lenderB': 2.25}, 'IRR': {'unleveraged': 0.41, 'lenderA': 0.53, 'lenderB': 0.37}}, 'Decathlon': {'totalSqm': 2400, 'term': 120, 'isGuaranteed': True, 'initialRent': 1700000, 'initialRentPerSqm': 708, 'annualIncrease': 0.025, 'abatement': 9, 'TI': 400, 'equityMultiple': {'unleveraged': 3.28, 'lenderA': 2.32, 'lenderB': 2.72}, 'IRR': {'unleveraged': 0.53, 'lenderA': 0.67, 'lenderB': 0.46}}}
readable_map = {'totalSqm': 'Total Area (in sqm)', 'term': 'Term (in months)', 'isGuaranteed': 'Guanrantee?', 'initialRent': 'Initial Rent', 'initialRentPerSqm': 'Initial Rent per Sqm', 'annualIncrease': 'Annual Increase', 'abatement': 'Abatement', 'TI': 'Concession: TI', 'equityMultipleunleveraged': 'Equity Multiple for unleveraged', 'equityMultiplelenderA': 'Equity Multiple for lender A', 'equityMultiplelenderB': 'Equity Multiple for lender B', 'IRRunleveraged': 'IRR for unleveraged', 'IRRlenderA': 'IRR for lender A', 'IRRlenderB': 'IRR for lender B'} |
"""try to implement a conjugate gradient method following
following: https://www.cs.cmu.edu/~quake-papers/painless-conjugate-gradient.pdf
"""
def CG(A, b, x0, eps=0.01, imax=50):
"""Solve linear system Ax = b, starting from x0.
The iterative process stops when the residue falls below eps.
Eq. 45 - 49.
Parameters
----------
A: 2D matrix
b: column vector
x0: start pos, column vector
eps: minimum residue (eps * delta_0) to claim converge
imax: maximum iteration to run
Return
------
x: column vector that solves Ax = b
"""
i = 0
x = x0
# residue
r = b - A @ x
# step in the direction of residue
d = r
# initial delta^2
delta_new = np.dot(r,r)
delta_0 = delta_new
while i < i_max and delta_new > eps**2 * delta_0:
alpha = delta_new / np.einsum('i,ij,j', d,A,d)
x += alpha * d
# correct for floating point error at some point
# not useful for high tolerance but good to keep
# in mind
if i % 50 == 0:
r = b - A@x
else:
r -= alpha*q
delta_old = delta_new
delta_new = np.dot(r, r)
beta = delta_new / delta_old
d = r + beta*d
i += 1
return x
def PCG(A, b, x0, M_inv, eps=0.01, imax=50):
"""Solve linear system Ax = b, starting from x0.
The iterative process stops when the residue falls below eps.
Parameters
----------
A: 2D matrix
b: column vector
x0: start pos, column vector
M_inv: inv of M (precondition matrix) that approximate A
eps: minimum residue (eps * delta_0) to claim converge
imax: maximum iteration to run
Return
------
x: column vector that solves Ax = b
"""
i = 0
x = x0
# residue
r = b - A @ x
# step in the direction of residue
d = M_inv @ r
# initial delta^2
delta_new = np.dot(r,d)
delta_0 = delta_new
while i < i_max and delta_new > eps**2 * delta_0:
alpha = delta_new / np.einsum('i,ij,j', d,A,d)
x += alpha * d
if i % 50 == 0:
r = b - A@x
else:
r -= alpha*q
s = M_inv @ r
delta_old = delta_new
delta_new = np.dot(r, s)
beta = delta_new / delta_old
d = s + beta*d
i += 1
return x
| """try to implement a conjugate gradient method following
following: https://www.cs.cmu.edu/~quake-papers/painless-conjugate-gradient.pdf
"""
def cg(A, b, x0, eps=0.01, imax=50):
"""Solve linear system Ax = b, starting from x0.
The iterative process stops when the residue falls below eps.
Eq. 45 - 49.
Parameters
----------
A: 2D matrix
b: column vector
x0: start pos, column vector
eps: minimum residue (eps * delta_0) to claim converge
imax: maximum iteration to run
Return
------
x: column vector that solves Ax = b
"""
i = 0
x = x0
r = b - A @ x
d = r
delta_new = np.dot(r, r)
delta_0 = delta_new
while i < i_max and delta_new > eps ** 2 * delta_0:
alpha = delta_new / np.einsum('i,ij,j', d, A, d)
x += alpha * d
if i % 50 == 0:
r = b - A @ x
else:
r -= alpha * q
delta_old = delta_new
delta_new = np.dot(r, r)
beta = delta_new / delta_old
d = r + beta * d
i += 1
return x
def pcg(A, b, x0, M_inv, eps=0.01, imax=50):
"""Solve linear system Ax = b, starting from x0.
The iterative process stops when the residue falls below eps.
Parameters
----------
A: 2D matrix
b: column vector
x0: start pos, column vector
M_inv: inv of M (precondition matrix) that approximate A
eps: minimum residue (eps * delta_0) to claim converge
imax: maximum iteration to run
Return
------
x: column vector that solves Ax = b
"""
i = 0
x = x0
r = b - A @ x
d = M_inv @ r
delta_new = np.dot(r, d)
delta_0 = delta_new
while i < i_max and delta_new > eps ** 2 * delta_0:
alpha = delta_new / np.einsum('i,ij,j', d, A, d)
x += alpha * d
if i % 50 == 0:
r = b - A @ x
else:
r -= alpha * q
s = M_inv @ r
delta_old = delta_new
delta_new = np.dot(r, s)
beta = delta_new / delta_old
d = s + beta * d
i += 1
return x |
'''
This module is home to the IOManager class, which manages the various input
and output formats (specifically, FASTA, FASTQ, CLUSTAL alignments, and GFF
files, currently).
'''
class IOManager(object):
'''
A class used by the `IOBase` class to manage the various input and output
methods for the different file types. Additional file types can be added
to the manager by using
```python
manager[format] = methods
```
From the above example, `methods` is a dictionary with keys `rhook`,
`read`, `whook`, `write`, and `probe`. Each of the values must be callable
object:
* `rhook` => takes a file handle opened for reading; called before reading
of the file has begun,
* `whook` => takes a file handle opened for writing; called before writing
to the file has begun,
* `read` => takes a file handle opened for reading; should be a generator
that yields entries,
* `write` => takes a file handle opened for writing and a single entry;
writes the entry to the file,
* `probe` => takes a file handle opened for reading; returns a dictionary
of attributes to be applied to the `IOBase` instance.
This class behaves similarly to a dictionary, except that the get method
will default to the default method (which does nothing) if no truthy
second parameter is passed.
'''
def __init__(self, methods=None):
'''
Instantiates an `IOManager` with methods, where the keys of methods are
the formats and the values are dictionaries with `rhook`, `whook`,
`read`, `write`, and `probe` callables.
'''
self.methods = methods or {}
self.protected = set(self.methods.keys())
nil = lambda *x: iter([])
self.default = {
'rhook': nil,
'read': nil,
'whook': nil,
'write': nil,
'probe': nil
}
def __contains__(self, key):
return key in self.methods
def __getitem__(self, key):
return self.methods.get(key, self.default)
def get(self, key, default=None):
'''
Try to get a set of methods via format (e.g., 'fasta') or fall-back
to the default methods (which do nothing).
'''
try:
return self.methods[key]
except KeyError:
return default or self.default
def __setitem__(self, key, value):
if key not in self.protected:
self.methods[key] = value
return value
def __iter__(self):
return iter(self.methods)
| """
This module is home to the IOManager class, which manages the various input
and output formats (specifically, FASTA, FASTQ, CLUSTAL alignments, and GFF
files, currently).
"""
class Iomanager(object):
"""
A class used by the `IOBase` class to manage the various input and output
methods for the different file types. Additional file types can be added
to the manager by using
```python
manager[format] = methods
```
From the above example, `methods` is a dictionary with keys `rhook`,
`read`, `whook`, `write`, and `probe`. Each of the values must be callable
object:
* `rhook` => takes a file handle opened for reading; called before reading
of the file has begun,
* `whook` => takes a file handle opened for writing; called before writing
to the file has begun,
* `read` => takes a file handle opened for reading; should be a generator
that yields entries,
* `write` => takes a file handle opened for writing and a single entry;
writes the entry to the file,
* `probe` => takes a file handle opened for reading; returns a dictionary
of attributes to be applied to the `IOBase` instance.
This class behaves similarly to a dictionary, except that the get method
will default to the default method (which does nothing) if no truthy
second parameter is passed.
"""
def __init__(self, methods=None):
"""
Instantiates an `IOManager` with methods, where the keys of methods are
the formats and the values are dictionaries with `rhook`, `whook`,
`read`, `write`, and `probe` callables.
"""
self.methods = methods or {}
self.protected = set(self.methods.keys())
nil = lambda *x: iter([])
self.default = {'rhook': nil, 'read': nil, 'whook': nil, 'write': nil, 'probe': nil}
def __contains__(self, key):
return key in self.methods
def __getitem__(self, key):
return self.methods.get(key, self.default)
def get(self, key, default=None):
"""
Try to get a set of methods via format (e.g., 'fasta') or fall-back
to the default methods (which do nothing).
"""
try:
return self.methods[key]
except KeyError:
return default or self.default
def __setitem__(self, key, value):
if key not in self.protected:
self.methods[key] = value
return value
def __iter__(self):
return iter(self.methods) |
class URLOpener(object):
def __init__(self, x):
self.x = x
def urlopen(self):
return file(self.x) | class Urlopener(object):
def __init__(self, x):
self.x = x
def urlopen(self):
return file(self.x) |
class Photo(object):
"""
Database object for a photo
to allow single uid calculation per full path
"""
def __init__(self, **kwargs):
self.name = kwargs.get("name", "")
self.full_path = kwargs.get("full_path", "")
self.date_taken = kwargs.get("date_taken", "")
self.uid = kwargs.get("uid", "")
| class Photo(object):
"""
Database object for a photo
to allow single uid calculation per full path
"""
def __init__(self, **kwargs):
self.name = kwargs.get('name', '')
self.full_path = kwargs.get('full_path', '')
self.date_taken = kwargs.get('date_taken', '')
self.uid = kwargs.get('uid', '') |
class Repository:
def __init__(self, RepositoryAffiliation, user, data):
self.__userLogin = user.loginUser
self.__userId = user.id
self.__repositoryAffiliation = RepositoryAffiliation
self.__url = data['url']
self.__isFork = data['isFork']
self.__pushedAt = data['pushedAt']
self.__isLocked = data['isLocked']
self.__isMirror = data['isMirror']
self.__diskUsage = data['diskUsage']
self.__isPrivate = data['isPrivate']
self.__forkCount = data['forkCount']
self.__isArchived = data['isArchived']
self.__licenseInfo = data['licenseInfo']
self.__nameWithOwner = data['nameWithOwner']
self.__labels = data['labels']['totalCount']
self.__issues = data['issues']["totalCount"]
self.__releases = data['releases']['totalCount']
self.__watchers = data['watchers']['totalCount']
self.__stargazers = data['stargazers']["totalCount"]
self.__commitComments = data['commitComments']['totalCount']
self.__assignableUsers = data['assignableUsers']['totalCount']
self.__collaborators = data['collaborators']["totalCount"] if data['collaborators'] else 0
self.__primaryLanguage = data["primaryLanguage"]['name'] if data['primaryLanguage'] else ''
self.__descriptions = data['description']
@property
def nameWithOwner(self):
return self.__nameWithOwner
| class Repository:
def __init__(self, RepositoryAffiliation, user, data):
self.__userLogin = user.loginUser
self.__userId = user.id
self.__repositoryAffiliation = RepositoryAffiliation
self.__url = data['url']
self.__isFork = data['isFork']
self.__pushedAt = data['pushedAt']
self.__isLocked = data['isLocked']
self.__isMirror = data['isMirror']
self.__diskUsage = data['diskUsage']
self.__isPrivate = data['isPrivate']
self.__forkCount = data['forkCount']
self.__isArchived = data['isArchived']
self.__licenseInfo = data['licenseInfo']
self.__nameWithOwner = data['nameWithOwner']
self.__labels = data['labels']['totalCount']
self.__issues = data['issues']['totalCount']
self.__releases = data['releases']['totalCount']
self.__watchers = data['watchers']['totalCount']
self.__stargazers = data['stargazers']['totalCount']
self.__commitComments = data['commitComments']['totalCount']
self.__assignableUsers = data['assignableUsers']['totalCount']
self.__collaborators = data['collaborators']['totalCount'] if data['collaborators'] else 0
self.__primaryLanguage = data['primaryLanguage']['name'] if data['primaryLanguage'] else ''
self.__descriptions = data['description']
@property
def name_with_owner(self):
return self.__nameWithOwner |
# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0
#
# or in the "license" file accompanying this file. This file 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 EventBase(object):
def __init__(self, event_id, datetime, attributes):
"""
:param event_id: event id
:type event_id: int
:param datetime: datetime of event
:type datetime: datetime.datetime
:param attributes: event attributes
:type attributes: dict
"""
self.id = event_id
self.datetime = datetime
self.attributes = attributes
def __repr__(self):
return "<{0} id={1}, time={2}, attributes={3}>".format(
self.__class__.__name__, self.id, self.datetime,
self.attributes)
class ActivityEventBase(EventBase):
pass
class ChildWorkflowEventBase(EventBase):
pass
class DecisionEventBase(EventBase):
"""
To be used as a mixin with events that represent decisions
"""
pass
class DecisionTaskEventBase(EventBase):
pass
class ExternalWorkflowEventBase(EventBase):
pass
class MarkerEventBase(EventBase):
pass
class TimerEventBase(EventBase):
pass
class WorkflowEventBase(EventBase):
pass
| class Eventbase(object):
def __init__(self, event_id, datetime, attributes):
"""
:param event_id: event id
:type event_id: int
:param datetime: datetime of event
:type datetime: datetime.datetime
:param attributes: event attributes
:type attributes: dict
"""
self.id = event_id
self.datetime = datetime
self.attributes = attributes
def __repr__(self):
return '<{0} id={1}, time={2}, attributes={3}>'.format(self.__class__.__name__, self.id, self.datetime, self.attributes)
class Activityeventbase(EventBase):
pass
class Childworkfloweventbase(EventBase):
pass
class Decisioneventbase(EventBase):
"""
To be used as a mixin with events that represent decisions
"""
pass
class Decisiontaskeventbase(EventBase):
pass
class Externalworkfloweventbase(EventBase):
pass
class Markereventbase(EventBase):
pass
class Timereventbase(EventBase):
pass
class Workfloweventbase(EventBase):
pass |
def minesweeper(matrix):
x_axis, y_axis = len(matrix[0]), len(matrix)
new_matrix = []
for y in range(y_axis):
line = []
for x in range(x_axis):
neighbour = []
if x > 0:
neighbour.append(matrix[y][x-1])
if y > 0:
neighbour.append(matrix[y - 1][x - 1])
if y < y_axis - 1:
neighbour.append(matrix[y + 1][x - 1])
if x < x_axis -1:
neighbour.append(matrix[y][x + 1])
if y > 0:
neighbour.append(matrix[y - 1][x + 1])
if y < y_axis - 1:
neighbour.append(matrix[y + 1][x + 1])
if y > 0:
neighbour.append(matrix[y-1][x])
if y < y_axis -1:
neighbour.append(matrix[y+1][x])
mines = neighbour.count(True)
line.append(mines)
new_matrix.append(line)
return new_matrix | def minesweeper(matrix):
(x_axis, y_axis) = (len(matrix[0]), len(matrix))
new_matrix = []
for y in range(y_axis):
line = []
for x in range(x_axis):
neighbour = []
if x > 0:
neighbour.append(matrix[y][x - 1])
if y > 0:
neighbour.append(matrix[y - 1][x - 1])
if y < y_axis - 1:
neighbour.append(matrix[y + 1][x - 1])
if x < x_axis - 1:
neighbour.append(matrix[y][x + 1])
if y > 0:
neighbour.append(matrix[y - 1][x + 1])
if y < y_axis - 1:
neighbour.append(matrix[y + 1][x + 1])
if y > 0:
neighbour.append(matrix[y - 1][x])
if y < y_axis - 1:
neighbour.append(matrix[y + 1][x])
mines = neighbour.count(True)
line.append(mines)
new_matrix.append(line)
return new_matrix |
class Calculators():
def __init__(self):
pass
def dca(self, all_buys: list) -> tuple:
"""
Calculates the DCA entry, total quote invested and total coins purchased
:param all_buys: All fully filled buys marked in database for symbol
:return: Average DCA entry, total dollars invested so far, total coins purchased
"""
total_quote_invested = 0
total_coins_purchased = 0
for d in all_buys:
total_quote_invested += float(d["qty"]) * float(d["price"])
total_coins_purchased += float(d["qty"])
return (total_quote_invested / total_coins_purchased), total_quote_invested, total_coins_purchased
| class Calculators:
def __init__(self):
pass
def dca(self, all_buys: list) -> tuple:
"""
Calculates the DCA entry, total quote invested and total coins purchased
:param all_buys: All fully filled buys marked in database for symbol
:return: Average DCA entry, total dollars invested so far, total coins purchased
"""
total_quote_invested = 0
total_coins_purchased = 0
for d in all_buys:
total_quote_invested += float(d['qty']) * float(d['price'])
total_coins_purchased += float(d['qty'])
return (total_quote_invested / total_coins_purchased, total_quote_invested, total_coins_purchased) |
# get user email
email = input("What is your email address?:").strip()
# slice out user name
user = email[:email.index("@")]
# slice out domain name
domain = email[email.index("@")+1:]
# format message
output = "Your username is {} and you domain name is {}".format(user,domain)
# display output message
print(output)
| email = input('What is your email address?:').strip()
user = email[:email.index('@')]
domain = email[email.index('@') + 1:]
output = 'Your username is {} and you domain name is {}'.format(user, domain)
print(output) |
class Computer:
def __init__(self):
self.name = "Shihab"
self.age = 18
def compare(self, other):
return self.age == other.age
c1 = Computer()
c1.age = 30
c2 = Computer()
c1.name = "Rashi"
if c1.compare(c2):
print("They are same")
else:
print("They are not same")
| class Computer:
def __init__(self):
self.name = 'Shihab'
self.age = 18
def compare(self, other):
return self.age == other.age
c1 = computer()
c1.age = 30
c2 = computer()
c1.name = 'Rashi'
if c1.compare(c2):
print('They are same')
else:
print('They are not same') |
class points:
user = []
points = []
def addUser(self, user, points):
try:
index = self.getIndex(user)
except:
index = -1
if index < 0:
self.user.append(user)
self.points.append(points)
return 'User ' + user + ' added with ' + str(points) + ' base points.'
else:
return 'User ' + user + ' already exists, and has ' + str(self.points[index]) + ' points.'
def getIndex(self, find):
index = self.user.index(find)
return index
def changePoints(self, user, difference):
try:
index = self.getIndex(user)
except:
index = -1
if index >= 0:
self.points[index] += difference
else:
print('User ' + user + ' not found while attempting to change user points.')
def returnPoints(self, user):
try:
index = self.getIndex(user)
except:
index = -1
if index >= 0:
return 'User ' + user + ' has ' + str(self.points[index]) + ' points.'
else:
return 'User ' + user + ' not found while attempting find points.'
def saveData(self, filename):
fileout = open(filename, 'w')
fileout.write('Username\tPoints\n')
for u in self.user:
i = self.getIndex(u)
fileout.write(u + '\t\t' + str(self.points[i]) + '\n')
fileout.close()
def readData(self, filename):
with open(filename) as f:
lines = f.readlines()
skip = 0
for l in lines:
if skip == 0:
skip = 1
else:
line = str.split(l)
self.addUser(line[0], int(line[1]))
| class Points:
user = []
points = []
def add_user(self, user, points):
try:
index = self.getIndex(user)
except:
index = -1
if index < 0:
self.user.append(user)
self.points.append(points)
return 'User ' + user + ' added with ' + str(points) + ' base points.'
else:
return 'User ' + user + ' already exists, and has ' + str(self.points[index]) + ' points.'
def get_index(self, find):
index = self.user.index(find)
return index
def change_points(self, user, difference):
try:
index = self.getIndex(user)
except:
index = -1
if index >= 0:
self.points[index] += difference
else:
print('User ' + user + ' not found while attempting to change user points.')
def return_points(self, user):
try:
index = self.getIndex(user)
except:
index = -1
if index >= 0:
return 'User ' + user + ' has ' + str(self.points[index]) + ' points.'
else:
return 'User ' + user + ' not found while attempting find points.'
def save_data(self, filename):
fileout = open(filename, 'w')
fileout.write('Username\tPoints\n')
for u in self.user:
i = self.getIndex(u)
fileout.write(u + '\t\t' + str(self.points[i]) + '\n')
fileout.close()
def read_data(self, filename):
with open(filename) as f:
lines = f.readlines()
skip = 0
for l in lines:
if skip == 0:
skip = 1
else:
line = str.split(l)
self.addUser(line[0], int(line[1])) |
#!/usr/bin/python
# splitting.py
nums = "1,5,6,8,2,3,1,9"
k = nums.split(",")
print (k)
l = nums.split(",", 5)
print (l)
m = nums.rsplit(",", 3)
print (m)
| nums = '1,5,6,8,2,3,1,9'
k = nums.split(',')
print(k)
l = nums.split(',', 5)
print(l)
m = nums.rsplit(',', 3)
print(m) |
##!FAIL: UnsupportedNodeError[Return]@5:4
def f(x):
""" int -> NoneType """
return
| def f(x):
""" int -> NoneType """
return |
#Defining a hash function
"""def get_hash(key):
h=0
for char in key:
h += ord(char)
return h%100
print(get_hash("hirwa"))
"""
#Creating a hash Table class
class Hashtable:
def __init__(self):
self.MAX=100
self.arr=[None for i in range(self.MAX)]
def get_hash(self,key):
h=0
for char in key:
h += ord(char)
return h % self.MAX
#Adding Key values to the Hashtable
def __setitem__(self,key,val):
h = self.get_hash(key)
self.arr[h]=val
#Function to get the hash table
def __getitem__(self,key):
h=self.get_hash(key)
return self.arr[h]
#Deleting Item from a hashtable
def __delitem__(self,key):
h=self.get_hash(key)
self.arr[h] =None
test=Hashtable()
test["march 6"]=130
test["coding"]=263
test["march 17"]=102
print(test["march 6"])
print(test["march 6"])
| """def get_hash(key):
h=0
for char in key:
h += ord(char)
return h%100
print(get_hash("hirwa"))
"""
class Hashtable:
def __init__(self):
self.MAX = 100
self.arr = [None for i in range(self.MAX)]
def get_hash(self, key):
h = 0
for char in key:
h += ord(char)
return h % self.MAX
def __setitem__(self, key, val):
h = self.get_hash(key)
self.arr[h] = val
def __getitem__(self, key):
h = self.get_hash(key)
return self.arr[h]
def __delitem__(self, key):
h = self.get_hash(key)
self.arr[h] = None
test = hashtable()
test['march 6'] = 130
test['coding'] = 263
test['march 17'] = 102
print(test['march 6'])
print(test['march 6']) |
# Name, Variables, Functions
def print_two(*args):
arg1, arg2 = args
print(f"arg1: {arg1}, arg2: {arg2}")
print(f"Type1: {type(arg1)}. Type2: {type(arg2)}")
def print_take_2(one, two):
print(f"Value1: {one}, Value2: {two}")
def print_take_1(one):
print(f"Value: {one}")
def print_none():
print("I got nothing")
print_two(12, 'abcd')
print_take_2("Donald", 'Trump')
print_take_1("Hello")
print_none() | def print_two(*args):
(arg1, arg2) = args
print(f'arg1: {arg1}, arg2: {arg2}')
print(f'Type1: {type(arg1)}. Type2: {type(arg2)}')
def print_take_2(one, two):
print(f'Value1: {one}, Value2: {two}')
def print_take_1(one):
print(f'Value: {one}')
def print_none():
print('I got nothing')
print_two(12, 'abcd')
print_take_2('Donald', 'Trump')
print_take_1('Hello')
print_none() |
COL_WITH_NAN_SIGNIFICATION = ["BsmtQual", "BsmtCond", "BsmtExposure",
"BsmtFinType1", "BsmtFinType2", "GarageType",
"GarageFinish", "GarageQual", "GarageCond",
"PoolQC", "Fence", "MiscFeature", "Alley"]
CONTINUOUS_COL = ["LotFrontage", "LotArea", "MasVnrArea", "BsmtFinSF1", "BsmtFinSF2", "BsmtUnfSF", "TotalBsmtSF",
"1stFlrSF", "2ndFlrSF", "LowQualFinSF", "GrLivArea", "BsmtFullBath", "BsmtHalfBath", "FullBath",
"HalfBath", "GarageYrBlt", "GarageArea", "WoodDeckSF", "OpenPorchSF", "EnclosedPorch", "3SsnPorch",
"ScreenPorch", "PoolArea", "MiscVal", "YrSold"]
DISCRETE_COL = ["OverallQual", "OverallCond", "YearBuilt", "YearRemodAdd", "BedroomAbvGr", "TotRmsAbvGrd", "Fireplaces",
"GarageCars", "KitchenAbvGr"]
CAT_COL = ["MSSubClass", "MSZoning", "Street", "Alley", "LotShape", "LandContour", "Utilities", "LotConfig",
"LandSlope", "Neighborhood", "Condition1", "Condition2", "BldgType", "HouseStyle", "RoofStyle",
"RoofMatl", "Exterior1st", "Exterior2nd", "MasVnrType", "Foundation",
"BsmtExposure", "BsmtFinType1", "BsmtFinType2", "Heating",
"CentralAir", "Electrical", "Functional", "GarageType", "PavedDrive", "Fence", "MiscFeature",
"MoSold", "SaleType", "SaleCondition"]
QUALITY_COL = ["FireplaceQu", "ExterQual", "GarageQual", "GarageCond", "PoolQC", "BsmtQual", "BsmtCond", "HeatingQC",
"KitchenQual", "ExterCond"]
FINISH_COL = ["GarageFinish"]
QUALITY_ORDINAL_MAPPING = {'NO': 0,
'Po': 1,
'Fa': 2,
'TA': 3,
'Gd': 4,
'Ex': 5,
'MISSING': 0}
ORIGINAL_FEATURE_COLS = ['Id',
'MSSubClass',
'MSZoning',
'LotFrontage',
'LotArea',
'Street',
'Alley',
'LotShape',
'LandContour',
'Utilities',
'LotConfig',
'LandSlope',
'Neighborhood',
'Condition1',
'Condition2',
'BldgType',
'HouseStyle',
'OverallQual',
'OverallCond',
'YearBuilt',
'YearRemodAdd',
'RoofStyle',
'RoofMatl',
'Exterior1st',
'Exterior2nd',
'MasVnrType',
'MasVnrArea',
'ExterQual',
'ExterCond',
'Foundation',
'BsmtQual',
'BsmtCond',
'BsmtExposure',
'BsmtFinType1',
'BsmtFinSF1',
'BsmtFinType2',
'BsmtFinSF2',
'BsmtUnfSF',
'TotalBsmtSF',
'Heating',
'HeatingQC',
'CentralAir',
'Electrical',
'1stFlrSF',
'2ndFlrSF',
'LowQualFinSF',
'GrLivArea',
'BsmtFullBath',
'BsmtHalfBath',
'FullBath',
'HalfBath',
'BedroomAbvGr',
'KitchenAbvGr',
'KitchenQual',
'TotRmsAbvGrd',
'Functional',
'Fireplaces',
'FireplaceQu',
'GarageType',
'GarageYrBlt',
'GarageFinish',
'GarageCars',
'GarageArea',
'GarageQual',
'GarageCond',
'PavedDrive',
'WoodDeckSF',
'OpenPorchSF',
'EnclosedPorch',
'3SsnPorch',
'ScreenPorch',
'PoolArea',
'PoolQC',
'Fence',
'MiscFeature',
'MiscVal',
'MoSold',
'YrSold',
'SaleType',
'SaleCondition'] | col_with_nan_signification = ['BsmtQual', 'BsmtCond', 'BsmtExposure', 'BsmtFinType1', 'BsmtFinType2', 'GarageType', 'GarageFinish', 'GarageQual', 'GarageCond', 'PoolQC', 'Fence', 'MiscFeature', 'Alley']
continuous_col = ['LotFrontage', 'LotArea', 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2', 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF', '2ndFlrSF', 'LowQualFinSF', 'GrLivArea', 'BsmtFullBath', 'BsmtHalfBath', 'FullBath', 'HalfBath', 'GarageYrBlt', 'GarageArea', 'WoodDeckSF', 'OpenPorchSF', 'EnclosedPorch', '3SsnPorch', 'ScreenPorch', 'PoolArea', 'MiscVal', 'YrSold']
discrete_col = ['OverallQual', 'OverallCond', 'YearBuilt', 'YearRemodAdd', 'BedroomAbvGr', 'TotRmsAbvGrd', 'Fireplaces', 'GarageCars', 'KitchenAbvGr']
cat_col = ['MSSubClass', 'MSZoning', 'Street', 'Alley', 'LotShape', 'LandContour', 'Utilities', 'LotConfig', 'LandSlope', 'Neighborhood', 'Condition1', 'Condition2', 'BldgType', 'HouseStyle', 'RoofStyle', 'RoofMatl', 'Exterior1st', 'Exterior2nd', 'MasVnrType', 'Foundation', 'BsmtExposure', 'BsmtFinType1', 'BsmtFinType2', 'Heating', 'CentralAir', 'Electrical', 'Functional', 'GarageType', 'PavedDrive', 'Fence', 'MiscFeature', 'MoSold', 'SaleType', 'SaleCondition']
quality_col = ['FireplaceQu', 'ExterQual', 'GarageQual', 'GarageCond', 'PoolQC', 'BsmtQual', 'BsmtCond', 'HeatingQC', 'KitchenQual', 'ExterCond']
finish_col = ['GarageFinish']
quality_ordinal_mapping = {'NO': 0, 'Po': 1, 'Fa': 2, 'TA': 3, 'Gd': 4, 'Ex': 5, 'MISSING': 0}
original_feature_cols = ['Id', 'MSSubClass', 'MSZoning', 'LotFrontage', 'LotArea', 'Street', 'Alley', 'LotShape', 'LandContour', 'Utilities', 'LotConfig', 'LandSlope', 'Neighborhood', 'Condition1', 'Condition2', 'BldgType', 'HouseStyle', 'OverallQual', 'OverallCond', 'YearBuilt', 'YearRemodAdd', 'RoofStyle', 'RoofMatl', 'Exterior1st', 'Exterior2nd', 'MasVnrType', 'MasVnrArea', 'ExterQual', 'ExterCond', 'Foundation', 'BsmtQual', 'BsmtCond', 'BsmtExposure', 'BsmtFinType1', 'BsmtFinSF1', 'BsmtFinType2', 'BsmtFinSF2', 'BsmtUnfSF', 'TotalBsmtSF', 'Heating', 'HeatingQC', 'CentralAir', 'Electrical', '1stFlrSF', '2ndFlrSF', 'LowQualFinSF', 'GrLivArea', 'BsmtFullBath', 'BsmtHalfBath', 'FullBath', 'HalfBath', 'BedroomAbvGr', 'KitchenAbvGr', 'KitchenQual', 'TotRmsAbvGrd', 'Functional', 'Fireplaces', 'FireplaceQu', 'GarageType', 'GarageYrBlt', 'GarageFinish', 'GarageCars', 'GarageArea', 'GarageQual', 'GarageCond', 'PavedDrive', 'WoodDeckSF', 'OpenPorchSF', 'EnclosedPorch', '3SsnPorch', 'ScreenPorch', 'PoolArea', 'PoolQC', 'Fence', 'MiscFeature', 'MiscVal', 'MoSold', 'YrSold', 'SaleType', 'SaleCondition'] |
def dec2bin(x):
cache = []
res = ''
while x:
num = x % 2
x = x // 2
cache.append(num)
while cache:
res += str(cache.pop())
return res
print(dec2bin(10),bin(10))
| def dec2bin(x):
cache = []
res = ''
while x:
num = x % 2
x = x // 2
cache.append(num)
while cache:
res += str(cache.pop())
return res
print(dec2bin(10), bin(10)) |
_config = {}
def Get(key):
global _config
return _config[key]
def Set(key, value):
global _config
_config[key] = value
| _config = {}
def get(key):
global _config
return _config[key]
def set(key, value):
global _config
_config[key] = value |
class Case:
def __init__(self, number: str, status: str, title: str, body: str):
self.number = number
self.status = status
self.title = title
self.body = body
| class Case:
def __init__(self, number: str, status: str, title: str, body: str):
self.number = number
self.status = status
self.title = title
self.body = body |
def update_transition_matrix(self, opponent_move):
global POSSIBLE_MOVES
if len(self.moves) <= len(LAST_POSSIBLE_MOVES[0]):
return None
for i in range(len(self.transition_sum_matrix[self.last_moves])):
self.transition_sum_matrix[self.last_moves][i] *= self.decay
self.transition_sum_matrix[self.last_moves][POSSIBLE_MOVES.index(opponent_move)] += 1
transition_matrix_row = deepcopy(self.transition_sum_matrix[self.last_moves])
row_sum = sum(transition_matrix_row)
transition_matrix_row[:] = [count/row_sum for count in transition_matrix_row]
self.transition_matrix[self.last_moves] = transition_matrix_row
| def update_transition_matrix(self, opponent_move):
global POSSIBLE_MOVES
if len(self.moves) <= len(LAST_POSSIBLE_MOVES[0]):
return None
for i in range(len(self.transition_sum_matrix[self.last_moves])):
self.transition_sum_matrix[self.last_moves][i] *= self.decay
self.transition_sum_matrix[self.last_moves][POSSIBLE_MOVES.index(opponent_move)] += 1
transition_matrix_row = deepcopy(self.transition_sum_matrix[self.last_moves])
row_sum = sum(transition_matrix_row)
transition_matrix_row[:] = [count / row_sum for count in transition_matrix_row]
self.transition_matrix[self.last_moves] = transition_matrix_row |
class Vertex:
def __init__(self, name):
self.name = name
class Graph:
vertices = {}
edges = []
edge_indices = {}
def add_vertex(self, vertex):
if isinstance(vertex, Vertex) and vertex.name not in self.vertices:
self.vertices[vertex.name] = vertex
for row in self.edges:
row.append(0)
self.edges.append([0] * (len(self.edges)+1))
self.edge_indices[vertex.name] = len(self.edge_indices)
return True
else:
return False
def add_edge(self, u, v, weight=1):
if u in self.vertices and v in self.vertices:
self.edges[self.edge_indices[u]][self.edge_indices[v]] = weight
self.edges[self.edge_indices[v]][self.edge_indices[u]] = weight
return True
else:
return False
def print_graph(self):
for v, i in sorted(self.edge_indices.items()):
print(v + ' ', end='')
for j in range(len(self.edges)):
print(self.edges[i][j], end='')
print(' ')
if __name__ == '__main__':
graph = Graph()
a = Vertex('A')
graph.add_vertex(a)
graph.add_vertex(Vertex('B'))
for i in range(ord('A'), ord('L')):
graph.add_vertex(Vertex(chr(i)))
edges = ['AB', 'AE', 'BF', 'CG', 'DE', 'EH', 'FB', 'FK', 'GA', 'GB', 'HI', 'JK', 'KA']
for edge in edges:
graph.add_edge(edge[:1], edge[1:])
graph.print_graph()
| class Vertex:
def __init__(self, name):
self.name = name
class Graph:
vertices = {}
edges = []
edge_indices = {}
def add_vertex(self, vertex):
if isinstance(vertex, Vertex) and vertex.name not in self.vertices:
self.vertices[vertex.name] = vertex
for row in self.edges:
row.append(0)
self.edges.append([0] * (len(self.edges) + 1))
self.edge_indices[vertex.name] = len(self.edge_indices)
return True
else:
return False
def add_edge(self, u, v, weight=1):
if u in self.vertices and v in self.vertices:
self.edges[self.edge_indices[u]][self.edge_indices[v]] = weight
self.edges[self.edge_indices[v]][self.edge_indices[u]] = weight
return True
else:
return False
def print_graph(self):
for (v, i) in sorted(self.edge_indices.items()):
print(v + ' ', end='')
for j in range(len(self.edges)):
print(self.edges[i][j], end='')
print(' ')
if __name__ == '__main__':
graph = graph()
a = vertex('A')
graph.add_vertex(a)
graph.add_vertex(vertex('B'))
for i in range(ord('A'), ord('L')):
graph.add_vertex(vertex(chr(i)))
edges = ['AB', 'AE', 'BF', 'CG', 'DE', 'EH', 'FB', 'FK', 'GA', 'GB', 'HI', 'JK', 'KA']
for edge in edges:
graph.add_edge(edge[:1], edge[1:])
graph.print_graph() |
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def sortList(self, head: ListNode) -> ListNode:
if not head:
return
if head.next == None:
return head
def find_mid(head):
if not head:
return None
slow, fast = head, head
while fast.next and fast.next.next:
slow = slow.next
fast = fast.next.next
right_head = slow.next
slow.next = None
return right_head
def merge(a,b):
dummy = ListNode(0)
curt = dummy
while a and b:
if a.val < b.val:
curt.next = a
a = a.next
else:
curt.next = b
b = b.next
curt = curt.next
if a == None:
curt.next = b
if b == None:
curt.next = a
return dummy.next
mid = find_mid(head)
l = self.sortList(head)
r = self.sortList(mid)
return merge(l,r) | class Solution:
def sort_list(self, head: ListNode) -> ListNode:
if not head:
return
if head.next == None:
return head
def find_mid(head):
if not head:
return None
(slow, fast) = (head, head)
while fast.next and fast.next.next:
slow = slow.next
fast = fast.next.next
right_head = slow.next
slow.next = None
return right_head
def merge(a, b):
dummy = list_node(0)
curt = dummy
while a and b:
if a.val < b.val:
curt.next = a
a = a.next
else:
curt.next = b
b = b.next
curt = curt.next
if a == None:
curt.next = b
if b == None:
curt.next = a
return dummy.next
mid = find_mid(head)
l = self.sortList(head)
r = self.sortList(mid)
return merge(l, r) |
def parse(input_file):
with open(input_file, 'r') as f:
return f.read().split('\n\n')
def clean_input(answers):
return [a.replace('\n', '') for a in answers]
def get_uniques(answers):
return [set(a) for a in answers]
def get_unique_count(answers):
return [len(a) for a in answers]
def get_agreeing(answers):
agreeing_total = 0
for answer in answers:
n = answer.count('\n') + 1
count = {}
for entry in answer.replace('\n', ''):
try:
count[entry] += 1
except KeyError:
count[entry] = 1
agreeing = [letter for letter, number in count.items() if number == n]
agreeing_total += len(agreeing)
return agreeing_total
answers = parse('input_06.txt')
print(get_agreeing(answers)) | def parse(input_file):
with open(input_file, 'r') as f:
return f.read().split('\n\n')
def clean_input(answers):
return [a.replace('\n', '') for a in answers]
def get_uniques(answers):
return [set(a) for a in answers]
def get_unique_count(answers):
return [len(a) for a in answers]
def get_agreeing(answers):
agreeing_total = 0
for answer in answers:
n = answer.count('\n') + 1
count = {}
for entry in answer.replace('\n', ''):
try:
count[entry] += 1
except KeyError:
count[entry] = 1
agreeing = [letter for (letter, number) in count.items() if number == n]
agreeing_total += len(agreeing)
return agreeing_total
answers = parse('input_06.txt')
print(get_agreeing(answers)) |
fib_num= lambda n:fib_num(n-1)+fib_num(n-2) if n>2 else 1
print(fib_num(6))
def test1_fib_num():
assert (fib_num(6)==8)
def test2_fib_num():
assert (fib_num(5)==5)
def test3_fib_num():
n = 10
assert (fib_num(2*n)==fib_num(n+1)**2 - fib_num(n-1)**2)
| fib_num = lambda n: fib_num(n - 1) + fib_num(n - 2) if n > 2 else 1
print(fib_num(6))
def test1_fib_num():
assert fib_num(6) == 8
def test2_fib_num():
assert fib_num(5) == 5
def test3_fib_num():
n = 10
assert fib_num(2 * n) == fib_num(n + 1) ** 2 - fib_num(n - 1) ** 2 |
# cohort.migrations
# Cohort app database migrations.
#
# Author: Benjamin Bengfort <benjamin@bengfort.com>
# Created: Thu Dec 26 15:06:39 2019 -0600
#
# Copyright (C) 2019 Georgetown University
# For license information, see LICENSE.txt
#
# ID: __init__.py [] benjamin@bengfort.com $
"""
Cohort app database migrations.
"""
##########################################################################
## Imports
##########################################################################
| """
Cohort app database migrations.
""" |
people = ['Jonas', 'Julio', 'Mike', 'Mez']
ages = [25, 30, 31, 39]
for person, age in zip(people, ages):
print(person, age)
| people = ['Jonas', 'Julio', 'Mike', 'Mez']
ages = [25, 30, 31, 39]
for (person, age) in zip(people, ages):
print(person, age) |
def main() -> None:
n = int(input())
s = [list(map(lambda x: int(x) - 1, input())) for _ in range(n)]
time = [[-1] * 10 for _ in range(n)]
for i in range(n):
for j in range(10):
time[i][s[i][j]] = j
mn = 1 << 60
for d in range(10):
count = [0] * 10
mx = 0
for i in range(n):
t = time[i][d]
count[t] += 1
t += 10 * (count[t] - 1)
mx = max(mx, t)
mn = min(mn, mx)
print(mn)
if __name__ == "__main__":
main()
| def main() -> None:
n = int(input())
s = [list(map(lambda x: int(x) - 1, input())) for _ in range(n)]
time = [[-1] * 10 for _ in range(n)]
for i in range(n):
for j in range(10):
time[i][s[i][j]] = j
mn = 1 << 60
for d in range(10):
count = [0] * 10
mx = 0
for i in range(n):
t = time[i][d]
count[t] += 1
t += 10 * (count[t] - 1)
mx = max(mx, t)
mn = min(mn, mx)
print(mn)
if __name__ == '__main__':
main() |
# encoding: utf-8
print("I will now count my chickens:")
print("Hens", 25 + 30 / 6)
print("Roosters", 100 - 25 * 3 % 4)
print("Now I will count the eggs:")
print(3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6)
print("Is it true that 3 + 2 < 5 - 7?")
print(3 + 2 < 5 - 7)
print("What is 3 + 2?", 3 + 2)
print("What is 5 - 7?", 5 - 7)
print("Oh, that's why it's False.")
print("How about some more.")
print("Is it greater?", 5 > -2)
print("Is it greater or equal?", 5 >= -2)
print("Is it less or equal?", 5 <= -2)
# I will now count my chickens:
# Hens 30.0
# Roosters 97
# Now I will count the eggs:
# 6.75
# Is it true that 3 + 2 < 5 - 7?
# False
# What is 3 + 2? 5
# What is 5 - 7? -2
# Oh, that's why it's False.
# How about some more.
# Is it greater? True
# Is it greater or equal? True
# Is it less or equal? False
| print('I will now count my chickens:')
print('Hens', 25 + 30 / 6)
print('Roosters', 100 - 25 * 3 % 4)
print('Now I will count the eggs:')
print(3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6)
print('Is it true that 3 + 2 < 5 - 7?')
print(3 + 2 < 5 - 7)
print('What is 3 + 2?', 3 + 2)
print('What is 5 - 7?', 5 - 7)
print("Oh, that's why it's False.")
print('How about some more.')
print('Is it greater?', 5 > -2)
print('Is it greater or equal?', 5 >= -2)
print('Is it less or equal?', 5 <= -2) |
'''
1) Create a Clusterfile
2) Add metadata to created Clusterfile
3) Create a bunch of Datasets
- Add them to created Clusterfile
'''
| """
1) Create a Clusterfile
2) Add metadata to created Clusterfile
3) Create a bunch of Datasets
- Add them to created Clusterfile
""" |
class EurecomDataset(Dataset):
def __init__(self,domain,variation,training_dir=None,transform=None):
self.transform = transform
self.training_dir = training_dir
# For each variant keep a list
self.thermal_illu = []
self.thermal_exp = []
self.thermal_pose = []
self.thermal_occ = []
self.visible_illu = []
self.visible_exp = []
self.visible_pose = []
self.visible_occ = []
# Get all subject directories
subjects = [subject for subject in os.listdir(training_dir)]
self.num_classes = len(subjects)
for sub in subjects:
sub_p = os.path.join(training_dir,sub)
visible_pth = os.path.join(sub_p,"VIS")
thermal_pth = os.path.join(sub_p,"TH")
self.visible_illu.extend([ (os.path.join(visible_pth,x),int(x[4:7])-1) for x in os.listdir(visible_pth) if "_L" in x ])
self.visible_exp.extend([ (os.path.join(visible_pth,x) ,int(x[4:7])-1) for x in os.listdir(visible_pth) if "_N" in x or "_E" in x ])
self.visible_pose.extend([ (os.path.join(visible_pth,x),int(x[4:7])-1) for x in os.listdir(visible_pth) if "_P" in x ])
self.visible_occ.extend([ (os.path.join(visible_pth,x) ,int(x[4:7])-1) for x in os.listdir(visible_pth) if "_O" in x ])
self.thermal_illu.extend([ (os.path.join(thermal_pth,x),int(x[3:6])-1) for x in os.listdir(thermal_pth) if "_L" in x ])
self.thermal_exp.extend([ (os.path.join(thermal_pth,x) ,int(x[3:6])-1) for x in os.listdir(thermal_pth) if "_N" in x or "_E" in x ])
self.thermal_pose.extend([ (os.path.join(thermal_pth,x),int(x[3:6])-1) for x in os.listdir(thermal_pth) if "_P" in x ])
self.thermal_occ.extend([ (os.path.join(thermal_pth,x) ,int(x[3:6])-1) for x in os.listdir(thermal_pth) if "_O" in x ])
# Set dataset to intented domain
if domain == "thermal":
if variation == "illu":
self.dataset = self.thermal_illu
elif variation == "exp":
self.dataset = self.thermal_exp
elif variation == "pose":
self.dataset = self.thermal_pose
else:
self.dataset = self.thermal_occ
else:
if variation == "illu":
self.dataset = self.visible_illu
elif variation == "exp":
self.dataset = self.visible_exp
elif variation == "pose":
self.dataset = self.visible_pose
else:
self.dataset = self.visible_occ
self.count = len(self.dataset)
def __getitem__(self, index):
image,label = self.dataset[index]
img_a = Image.open(image).convert('RGB')
if self.transform is not None:
img_a = self.transform(img_a)
# return image and label
return img_a,label
def __len__(self):
return self.count | class Eurecomdataset(Dataset):
def __init__(self, domain, variation, training_dir=None, transform=None):
self.transform = transform
self.training_dir = training_dir
self.thermal_illu = []
self.thermal_exp = []
self.thermal_pose = []
self.thermal_occ = []
self.visible_illu = []
self.visible_exp = []
self.visible_pose = []
self.visible_occ = []
subjects = [subject for subject in os.listdir(training_dir)]
self.num_classes = len(subjects)
for sub in subjects:
sub_p = os.path.join(training_dir, sub)
visible_pth = os.path.join(sub_p, 'VIS')
thermal_pth = os.path.join(sub_p, 'TH')
self.visible_illu.extend([(os.path.join(visible_pth, x), int(x[4:7]) - 1) for x in os.listdir(visible_pth) if '_L' in x])
self.visible_exp.extend([(os.path.join(visible_pth, x), int(x[4:7]) - 1) for x in os.listdir(visible_pth) if '_N' in x or '_E' in x])
self.visible_pose.extend([(os.path.join(visible_pth, x), int(x[4:7]) - 1) for x in os.listdir(visible_pth) if '_P' in x])
self.visible_occ.extend([(os.path.join(visible_pth, x), int(x[4:7]) - 1) for x in os.listdir(visible_pth) if '_O' in x])
self.thermal_illu.extend([(os.path.join(thermal_pth, x), int(x[3:6]) - 1) for x in os.listdir(thermal_pth) if '_L' in x])
self.thermal_exp.extend([(os.path.join(thermal_pth, x), int(x[3:6]) - 1) for x in os.listdir(thermal_pth) if '_N' in x or '_E' in x])
self.thermal_pose.extend([(os.path.join(thermal_pth, x), int(x[3:6]) - 1) for x in os.listdir(thermal_pth) if '_P' in x])
self.thermal_occ.extend([(os.path.join(thermal_pth, x), int(x[3:6]) - 1) for x in os.listdir(thermal_pth) if '_O' in x])
if domain == 'thermal':
if variation == 'illu':
self.dataset = self.thermal_illu
elif variation == 'exp':
self.dataset = self.thermal_exp
elif variation == 'pose':
self.dataset = self.thermal_pose
else:
self.dataset = self.thermal_occ
elif variation == 'illu':
self.dataset = self.visible_illu
elif variation == 'exp':
self.dataset = self.visible_exp
elif variation == 'pose':
self.dataset = self.visible_pose
else:
self.dataset = self.visible_occ
self.count = len(self.dataset)
def __getitem__(self, index):
(image, label) = self.dataset[index]
img_a = Image.open(image).convert('RGB')
if self.transform is not None:
img_a = self.transform(img_a)
return (img_a, label)
def __len__(self):
return self.count |
#!/usr/bin/env python3
# ex31: Making Decisions
print("You enter a dark room with two doors. Do you go through door #1 or door #2?")
door = input("> ")
if door == "1":
print("There's a giant bear here eating a cheese cake. What do you do?")
print("1. Take the cake.")
print("2. Scream at the bear.")
bear = input("> ")
if bear == "1":
print("The bear eats your face off. Good job!")
elif bear == "2":
print("The bear eats your legs off. Good job!")
else:
print("Well, doing %s is probably better. Bear runs away." % bear)
elif door == "2":
print("You stare into the endless abyss at Cthulhu's retina.")
print("1. Blueberries.")
print("2. Yellow jacket clothespins.")
print("3. Understanding revolvers yelling melodies.")
insanity = input("> ")
if insanity == "1" or insanity == "2":
print("Your body survives powered by a mind of jello. Good job!")
else:
print("The insanity rots you ")
elif door == "3":
print("You are asked to select one pill from two and take it. One is red, and the other is blue.")
print("1. take the red one.")
print("2. take the blue one.")
pill = input("> ")
if pill == "1":
print("You wake up and found this is just a ridiculous dream. Good job!")
elif pill == "2":
print("It's poisonous and you died.")
else:
print("The man got mad and killed you.")
else:
print("You wake up and found this is just a ridiculous dream.")
print("However you feel a great pity haven't entered any room and found out what it will happens!") | print('You enter a dark room with two doors. Do you go through door #1 or door #2?')
door = input('> ')
if door == '1':
print("There's a giant bear here eating a cheese cake. What do you do?")
print('1. Take the cake.')
print('2. Scream at the bear.')
bear = input('> ')
if bear == '1':
print('The bear eats your face off. Good job!')
elif bear == '2':
print('The bear eats your legs off. Good job!')
else:
print('Well, doing %s is probably better. Bear runs away.' % bear)
elif door == '2':
print("You stare into the endless abyss at Cthulhu's retina.")
print('1. Blueberries.')
print('2. Yellow jacket clothespins.')
print('3. Understanding revolvers yelling melodies.')
insanity = input('> ')
if insanity == '1' or insanity == '2':
print('Your body survives powered by a mind of jello. Good job!')
else:
print('The insanity rots you ')
elif door == '3':
print('You are asked to select one pill from two and take it. One is red, and the other is blue.')
print('1. take the red one.')
print('2. take the blue one.')
pill = input('> ')
if pill == '1':
print('You wake up and found this is just a ridiculous dream. Good job!')
elif pill == '2':
print("It's poisonous and you died.")
else:
print('The man got mad and killed you.')
else:
print('You wake up and found this is just a ridiculous dream.')
print("However you feel a great pity haven't entered any room and found out what it will happens!") |
"""This problem was asked by Facebook.
Suppose you are given two lists of n points, one list p1, p2, ..., pn on the
line y = 0 and the other list q1, q2, ..., qn on the line y = 1.
Imagine a set of n line segments connecting each point pi to qi.
Write an algorithm to determine how many pairs of the line segments intersect.
""" | """This problem was asked by Facebook.
Suppose you are given two lists of n points, one list p1, p2, ..., pn on the
line y = 0 and the other list q1, q2, ..., qn on the line y = 1.
Imagine a set of n line segments connecting each point pi to qi.
Write an algorithm to determine how many pairs of the line segments intersect.
""" |
class item:
def __init__(self, name, cap, dur, flav, text, cal):
self.name = name
self.cap = cap
self.dur = dur
self.fla = flav
self.tex = text
self.cal = cal
return
it = [item('Frosting', 4, -2, 0, 0, 5),
item('Candy', 0, 5, -1, 0, 8),
item('Butterscotch', -1, 0, 5, 0, 6),
item('Sugar', 0, 0, -2, 2, 1)]
cap = dur = flav = text = total = 0
for i in range(100, -1, -1):
for j in range(0, 101 - i):
for k in range(0, 101-i-j):
for l in range(100-i-j-k, 101-i-j-k):
cap = it[0].cap * i + it[1].cap * j + it[2].cap * k + it[3].cap * l
dur = it[0].dur * i + it[1].dur * j + it[2].dur * k + it[3].dur * l
fla = it[0].fla * i + it[1].fla * j + it[2].fla * k + it[3].fla * l
tex = it[0].tex * i + it[1].tex * j + it[2].tex * k + it[3].tex * l
cal = it[0].cal * i + it[1].cal * j + it[2].cal * k + it[3].cal * l
if cap < 0 or dur < 0 or fla < 0 or tex < 0:
cap = dur = fla = tex = 0
temp = cap * dur * fla * tex
if temp > total and cal == 500:
print(i, j, k, l, '=', i+j+k+l)
print(cap, dur, fla, tex)
total = temp
print(total)
# print(i, j, k, l, sep = ' | ')
# input()
print(total)
| class Item:
def __init__(self, name, cap, dur, flav, text, cal):
self.name = name
self.cap = cap
self.dur = dur
self.fla = flav
self.tex = text
self.cal = cal
return
it = [item('Frosting', 4, -2, 0, 0, 5), item('Candy', 0, 5, -1, 0, 8), item('Butterscotch', -1, 0, 5, 0, 6), item('Sugar', 0, 0, -2, 2, 1)]
cap = dur = flav = text = total = 0
for i in range(100, -1, -1):
for j in range(0, 101 - i):
for k in range(0, 101 - i - j):
for l in range(100 - i - j - k, 101 - i - j - k):
cap = it[0].cap * i + it[1].cap * j + it[2].cap * k + it[3].cap * l
dur = it[0].dur * i + it[1].dur * j + it[2].dur * k + it[3].dur * l
fla = it[0].fla * i + it[1].fla * j + it[2].fla * k + it[3].fla * l
tex = it[0].tex * i + it[1].tex * j + it[2].tex * k + it[3].tex * l
cal = it[0].cal * i + it[1].cal * j + it[2].cal * k + it[3].cal * l
if cap < 0 or dur < 0 or fla < 0 or (tex < 0):
cap = dur = fla = tex = 0
temp = cap * dur * fla * tex
if temp > total and cal == 500:
print(i, j, k, l, '=', i + j + k + l)
print(cap, dur, fla, tex)
total = temp
print(total)
print(total) |
t = int(input())
for _ in range(t):
n = int(input())
s = input()
s = list(s)
index = 0
while index < n - 1:
s[index], s[index + 1] = s[index + 1], s[index]
index += 2
for i in range(n):
s[i] = chr(ord('z') - (ord(s[i]) - ord('a')))
print("".join(s))
| t = int(input())
for _ in range(t):
n = int(input())
s = input()
s = list(s)
index = 0
while index < n - 1:
(s[index], s[index + 1]) = (s[index + 1], s[index])
index += 2
for i in range(n):
s[i] = chr(ord('z') - (ord(s[i]) - ord('a')))
print(''.join(s)) |
# -*- coding: utf-8 -*-
"""
sub_analysis_proxy.py generated by WhatsOpt.
"""
| """
sub_analysis_proxy.py generated by WhatsOpt.
""" |
"""
James Haywood, Unit 4.01
This unit was pretty good, especially the logic lab. That was fun, if a
bit OCD-inducing with the wire layout (you know what I mean.) Assignment 3
seemed almost too easy though, so I'd make that tougher.
"""
| """
James Haywood, Unit 4.01
This unit was pretty good, especially the logic lab. That was fun, if a
bit OCD-inducing with the wire layout (you know what I mean.) Assignment 3
seemed almost too easy though, so I'd make that tougher.
""" |
# -*- coding: utf-8 -*-
# Author: Jiajun Ren <jiajunren0522@gmail.com>
electron = "e"
electrons = "es"
phonon = "ph"
class EphTable(tuple):
@classmethod
def all_phonon(cls, site_num):
return cls([phonon] * site_num)
@classmethod
def from_mol_list(cls, mol_list, scheme):
eph_list = []
if scheme < 4:
for mol in mol_list:
eph_list.append(electron)
for ph in mol.dmrg_phs:
eph_list.extend([phonon] * ph.nqboson)
elif scheme == 4:
for imol, mol in enumerate(mol_list):
if imol == len(mol_list) // 2:
eph_list.append(electrons)
eph_list.extend([phonon] * mol.n_dmrg_phs)
for ph in mol.dmrg_phs:
assert ph.is_simple
else:
raise ValueError(f"scheme:{scheme} has no ephtable")
return cls(eph_list)
def is_electron(self, idx):
# an electron site
return self[idx] == electron
def is_electrons(self, idx):
# a site with all electron DOFs, used in scheme 4
return self[idx] == electrons
def is_phonon(self, idx):
# a phonon site
return self[idx] == phonon
def __str__(self):
return "[" + ", ".join(self) + "]"
| electron = 'e'
electrons = 'es'
phonon = 'ph'
class Ephtable(tuple):
@classmethod
def all_phonon(cls, site_num):
return cls([phonon] * site_num)
@classmethod
def from_mol_list(cls, mol_list, scheme):
eph_list = []
if scheme < 4:
for mol in mol_list:
eph_list.append(electron)
for ph in mol.dmrg_phs:
eph_list.extend([phonon] * ph.nqboson)
elif scheme == 4:
for (imol, mol) in enumerate(mol_list):
if imol == len(mol_list) // 2:
eph_list.append(electrons)
eph_list.extend([phonon] * mol.n_dmrg_phs)
for ph in mol.dmrg_phs:
assert ph.is_simple
else:
raise value_error(f'scheme:{scheme} has no ephtable')
return cls(eph_list)
def is_electron(self, idx):
return self[idx] == electron
def is_electrons(self, idx):
return self[idx] == electrons
def is_phonon(self, idx):
return self[idx] == phonon
def __str__(self):
return '[' + ', '.join(self) + ']' |
sentence = 'This awesome spaghetti is awesome'
better_sentence = sentence.replace('awesome', 'fabulous')
print(better_sentence)
date = '12/01/2035'
print(date.replace('/', '-'))
| sentence = 'This awesome spaghetti is awesome'
better_sentence = sentence.replace('awesome', 'fabulous')
print(better_sentence)
date = '12/01/2035'
print(date.replace('/', '-')) |
# if you have a list = [], or a string = '', it will evaluate as a False value
our_list = []
our_string = ''
if our_list:
print('This list has something in it.')
if our_string:
print('This string is not empty.')
teams = ['knicks', 'kings', 'heat', 'pacers', 'celtics', 'pelicans']
for team in teams:
if team.startswith('k'):
print('The ' + team.title() + ' could win the NBA championship this year.')
if team == 'knicks':
print('I know they will win!')
else:
print('They probably will not win though...')
elif team.startswith('p'):
print('The ' + team.title() + ' will probably make the playoffs.')
if team == 'pacers':
print('They need Reggie Miller back though.')
else:
print('The ' + team.title() + ' stands no chance this year.') | our_list = []
our_string = ''
if our_list:
print('This list has something in it.')
if our_string:
print('This string is not empty.')
teams = ['knicks', 'kings', 'heat', 'pacers', 'celtics', 'pelicans']
for team in teams:
if team.startswith('k'):
print('The ' + team.title() + ' could win the NBA championship this year.')
if team == 'knicks':
print('I know they will win!')
else:
print('They probably will not win though...')
elif team.startswith('p'):
print('The ' + team.title() + ' will probably make the playoffs.')
if team == 'pacers':
print('They need Reggie Miller back though.')
else:
print('The ' + team.title() + ' stands no chance this year.') |
class Node:
def __init__(self, key, value):
self.key = key
self.val = value
self.next = self.pre = None
self.pre = None
class LRUCache:
def remove(self, node):
node.pre.next, node.next.pre = node.next, node.pre
self.dic.pop(node.key)
def add(self, node):
node.pre = self.tail.pre
node.next = self.tail
self.tail.pre.next = self.tail.pre = node
self.dic[node.key] = node
def __init__(self, capacity):
self.dic = {}
self.n = capacity
self.head = self.tail = Node(0, 0)
self.head.next = self.tail
self.tail.pre = self.head
def get(self, key):
if key in self.dic:
node = self.dic[key]
self.remove(node)
self.add(node)
return node.val
return -1
def put(self, key, value):
if key in self.dic:
self.remove(self.dic[key])
node = Node(key, value)
self.add(node)
if len(self.dic) > self.n:
self.remove(self.head.next) | class Node:
def __init__(self, key, value):
self.key = key
self.val = value
self.next = self.pre = None
self.pre = None
class Lrucache:
def remove(self, node):
(node.pre.next, node.next.pre) = (node.next, node.pre)
self.dic.pop(node.key)
def add(self, node):
node.pre = self.tail.pre
node.next = self.tail
self.tail.pre.next = self.tail.pre = node
self.dic[node.key] = node
def __init__(self, capacity):
self.dic = {}
self.n = capacity
self.head = self.tail = node(0, 0)
self.head.next = self.tail
self.tail.pre = self.head
def get(self, key):
if key in self.dic:
node = self.dic[key]
self.remove(node)
self.add(node)
return node.val
return -1
def put(self, key, value):
if key in self.dic:
self.remove(self.dic[key])
node = node(key, value)
self.add(node)
if len(self.dic) > self.n:
self.remove(self.head.next) |
TOKENIZE_TEXT_INPUT_SCHEMA = {
"type": "object",
"properties": {
"text": {"type": "string"},
},
"required": ["text"],
"additionalProperties": False
}
TOKENIZE_TEXT_OUTPUT_SCHEMA = {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
| tokenize_text_input_schema = {'type': 'object', 'properties': {'text': {'type': 'string'}}, 'required': ['text'], 'additionalProperties': False}
tokenize_text_output_schema = {'type': 'array', 'items': {'type': 'array', 'items': {'type': 'array', 'items': {'type': 'string'}}}} |
class Solution:
def convertToTitle(self, n: int) -> str:
return self.solution1(n)
def solution1(self, n: int) -> str:
ans = []
while n > 0:
n, r = divmod(n-1, 26)
ans.append(chr(r + ord('A')))
return ''.join(ans[::-1])
# time limit exceeded
def solution2(self, n: int) -> str:
if n == 0: return ''
p = (n-1) // 26
ans = []
for _ in range(p):
if not ans:
ans.append('A')
else:
i = len(ans)-1
while ans[i] == 'Z':
ans[i] = 'A'
i -= 1
if i < 0:
ans.append('A')
else:
ans[i] = chr(ord(ans[i]) + 1)
if n > p * 26:
ans.append(chr(ord('A') + n - p * 26 - 1))
return ''.join(ans)
if __name__ == '__main__':
for n in range(52, 80):
ret = Solution().convertToTitle(n)
print(n, ret)
| class Solution:
def convert_to_title(self, n: int) -> str:
return self.solution1(n)
def solution1(self, n: int) -> str:
ans = []
while n > 0:
(n, r) = divmod(n - 1, 26)
ans.append(chr(r + ord('A')))
return ''.join(ans[::-1])
def solution2(self, n: int) -> str:
if n == 0:
return ''
p = (n - 1) // 26
ans = []
for _ in range(p):
if not ans:
ans.append('A')
else:
i = len(ans) - 1
while ans[i] == 'Z':
ans[i] = 'A'
i -= 1
if i < 0:
ans.append('A')
else:
ans[i] = chr(ord(ans[i]) + 1)
if n > p * 26:
ans.append(chr(ord('A') + n - p * 26 - 1))
return ''.join(ans)
if __name__ == '__main__':
for n in range(52, 80):
ret = solution().convertToTitle(n)
print(n, ret) |
"""Prediction of Optimal Price based on Listing Properties"""
def get_optimal_pricing(**listing):
''' Just return 100 for now - will call out to a proper predictive model later'''
print(listing)
price = listing.get('price', 0)
price = price+10 if price else 100
return price | """Prediction of Optimal Price based on Listing Properties"""
def get_optimal_pricing(**listing):
""" Just return 100 for now - will call out to a proper predictive model later"""
print(listing)
price = listing.get('price', 0)
price = price + 10 if price else 100
return price |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.