blob_id
stringlengths
40
40
formatted
stringlengths
15
1.74M
input_ids
listlengths
7
1.19M
tokens
listlengths
7
1.19M
rows
listlengths
7
1.19M
cols
listlengths
7
1.19M
fdcee5b3f6b3ec170c9ef3017e0cc6c4b28cf22d
from django.contrib import admin from .models import Advert, Category, ImageAd @admin.register(Advert) class AdminAdvert(admin.ModelAdmin): filter_horizontal = ("categories",) @admin.register(Category) class AdminCategory(admin.ModelAdmin): pass @admin.register(ImageAd) class AdminImageAd(admin.ModelAdmin): pass
[ 1097, 8532, 51, 12060, 1220, 5611, 222, 1097, 657, 3404, 1220, 3604, 1645, 49, 9954, 49, 4393, 1785, 499, 222, 69, 2317, 51, 3334, 45, 1785, 1645, 46, 222, 842, 9132, 1785, 1645, 45, 2317, 51, 1262, 4208, 731, 303, 2785, 100, 10634, 299, 2903, 6974, 411, 46, 499, 222, 69, 2317, 51, 3334, 45, 4236, 46, 222, 842, 9132, 4236, 45, 2317, 51, 1262, 4208, 731, 303, 3119, 499, 222, 69, 2317, 51, 3334, 45, 1675, 1785, 46, 222, 842, 9132, 1675, 1785, 45, 2317, 51, 1262, 4208, 731, 303, 3119, 222 ]
[ "from", "Ġdjango", ".", "contrib", "Ġimport", "Ġadmin", "Ċ", "from", "Ġ.", "models", "Ġimport", "ĠAd", "vert", ",", "ĠCategory", ",", "ĠImage", "Ad", "ĊĊ", "Ċ", "@", "admin", ".", "register", "(", "Ad", "vert", ")", "Ċ", "class", "ĠAdmin", "Ad", "vert", "(", "admin", ".", "Model", "Admin", "):", "ĊĠĠĠ", "Ġfilter", "_", "horizontal", "Ġ=", "Ġ(\"", "categories", "\",", ")", "ĊĊ", "Ċ", "@", "admin", ".", "register", "(", "Category", ")", "Ċ", "class", "ĠAdmin", "Category", "(", "admin", ".", "Model", "Admin", "):", "ĊĠĠĠ", "Ġpass", "ĊĊ", "Ċ", "@", "admin", ".", "register", "(", "Image", "Ad", ")", "Ċ", "class", "ĠAdmin", "Image", "Ad", "(", "admin", ".", "Model", "Admin", "):", "ĊĠĠĠ", "Ġpass", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17 ]
[ 1, 5, 12, 13, 20, 27, 33, 1, 5, 7, 13, 20, 23, 27, 28, 37, 38, 44, 46, 1, 1, 2, 7, 8, 16, 17, 19, 23, 24, 1, 6, 12, 14, 18, 19, 24, 25, 30, 35, 37, 4, 11, 12, 22, 24, 27, 37, 39, 40, 1, 1, 2, 7, 8, 16, 17, 25, 26, 1, 6, 12, 20, 21, 26, 27, 32, 37, 39, 4, 9, 1, 1, 2, 7, 8, 16, 17, 22, 24, 25, 1, 6, 12, 17, 19, 20, 25, 26, 31, 36, 38, 4, 9 ]
ae5f87f1c383478ea5f370af1c85d63a472a7788
# Array In Python from array import array numbers = array("i", [1, 2, 3]) numbers[0] = 0 print(list(numbers))
[ 40, 2647, 719, 5006, 222, 222, 1097, 1437, 1220, 1437, 222, 222, 14995, 299, 1437, 459, 110, 411, 447, 54, 49, 244, 55, 49, 244, 56, 1156, 222, 14995, 96, 53, 98, 299, 244, 53, 222, 1243, 45, 687, 45, 14995, 509, 222 ]
[ "#", "ĠArray", "ĠIn", "ĠPython", "Ċ", "Ċ", "from", "Ġarray", "Ġimport", "Ġarray", "Ċ", "Ċ", "numbers", "Ġ=", "Ġarray", "(\"", "i", "\",", "Ġ[", "1", ",", "Ġ", "2", ",", "Ġ", "3", "])", "Ċ", "numbers", "[", "0", "]", "Ġ=", "Ġ", "0", "Ċ", "print", "(", "list", "(", "numbers", "))", "Ċ" ]
[ 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ]
[ 1, 2, 8, 11, 18, 1, 1, 5, 11, 18, 24, 1, 1, 8, 10, 16, 18, 19, 21, 23, 24, 25, 26, 27, 28, 29, 30, 32, 1, 8, 9, 10, 11, 13, 14, 15, 1, 6, 7, 11, 12, 19, 21 ]
9c05b39a12ab29db99397e62315efddd8cdf1df4
dict1 = [{"a": 1}, {"a": 2}, {"a": 3}] a = dict1[1]["a"] # print(a) correlation_dict = {"${class_id}": 123} data = {"token": "${self.token}", "name": "api测试", "class_id": "${class_id}"} for k in data: for key in correlation_dict: if data[k] in key: data[k] = correlation_dict[key] print(data)
[ 2734, 54, 299, 28288, 102, 582, 244, 54, 855, 3479, 102, 582, 244, 55, 855, 3479, 102, 582, 244, 56, 10608, 222, 222, 102, 299, 5473, 54, 96, 54, 11210, 102, 1465, 222, 40, 1489, 45, 102, 46, 222, 222, 26154, 100, 2734, 299, 3479, 1679, 842, 100, 333, 130, 582, 244, 54, 55, 56, 130, 222, 222, 624, 299, 3479, 1977, 582, 6328, 803, 51, 1977, 6557, 332, 444, 582, 332, 1256, 16344, 411, 332, 842, 100, 333, 582, 6328, 842, 100, 333, 130, 3667, 222, 222, 999, 851, 347, 727, 63, 303, 456, 1221, 347, 25203, 100, 2734, 63, 310, 434, 727, 96, 112, 98, 347, 1221, 63, 343, 727, 96, 112, 98, 299, 25203, 100, 2734, 96, 697, 98, 222, 1243, 45, 624, 46, 222 ]
[ "dict", "1", "Ġ=", "Ġ[{\"", "a", "\":", "Ġ", "1", "},", "Ġ{\"", "a", "\":", "Ġ", "2", "},", "Ġ{\"", "a", "\":", "Ġ", "3", "}]", "Ċ", "Ċ", "a", "Ġ=", "Ġdict", "1", "[", "1", "][\"", "a", "\"]", "Ċ", "#", "Ġprint", "(", "a", ")", "Ċ", "Ċ", "correlation", "_", "dict", "Ġ=", "Ġ{\"", "${", "class", "_", "id", "}", "\":", "Ġ", "1", "2", "3", "}", "Ċ", "Ċ", "data", "Ġ=", "Ġ{\"", "token", "\":", "Ġ\"${", "self", ".", "token", "}\",", "Ġ\"", "name", "\":", "Ġ\"", "api", "æµĭè¯ķ", "\",", "Ġ\"", "class", "_", "id", "\":", "Ġ\"${", "class", "_", "id", "}", "\"}", "Ċ", "Ċ", "for", "Ġk", "Ġin", "Ġdata", ":", "ĊĠĠĠ", "Ġfor", "Ġkey", "Ġin", "Ġcorrelation", "_", "dict", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", "[", "k", "]", "Ġin", "Ġkey", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", "[", "k", "]", "Ġ=", "Ġcorrelation", "_", "dict", "[", "key", "]", "Ċ", "print", "(", "data", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14 ]
[ 1, 5, 6, 8, 12, 13, 15, 16, 17, 19, 22, 23, 25, 26, 27, 29, 32, 33, 35, 36, 37, 39, 1, 1, 2, 4, 9, 10, 11, 12, 15, 16, 18, 1, 2, 8, 9, 10, 11, 1, 1, 12, 13, 17, 19, 22, 24, 29, 30, 32, 33, 35, 36, 37, 38, 39, 40, 1, 1, 5, 7, 10, 15, 17, 21, 25, 26, 31, 34, 36, 40, 42, 44, 47, 49, 51, 53, 58, 59, 61, 63, 67, 72, 73, 75, 76, 78, 1, 1, 4, 6, 9, 14, 15, 4, 8, 12, 15, 27, 28, 32, 33, 8, 11, 16, 17, 18, 19, 22, 26, 27, 12, 17, 18, 19, 20, 22, 34, 35, 39, 40, 43, 44, 1, 6, 7, 11, 12 ]
51af54c55834c4bdb8e1cbe4ac55b86bdc61bf4d
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.utils.timezone import utc import datetime class Migration(migrations.Migration): dependencies = [ ("notesapp", "0008_auto_20150819_1222"), ] operations = [ migrations.RenameField( model_name="note", old_name="txtcolor", new_name="text", ), migrations.AlterField( model_name="note", name="created_date", field=models.DateTimeField(default=datetime.datetime(2015, 8, 19, 12, 25, 8, 579538, tzinfo=utc), editable=False), ), ]
[ 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 1097, 1176, 9689, 523, 1220, 15393, 100, 30828, 222, 222, 1097, 8532, 51, 1219, 1220, 4590, 49, 12520, 222, 1097, 8532, 51, 2324, 51, 18216, 1220, 8196, 104, 222, 485, 7181, 499, 222, 842, 18572, 45, 19772, 51, 12071, 731, 303, 6450, 299, 447, 310, 2903, 8903, 745, 411, 332, 53, 53, 53, 61, 100, 2853, 100, 55, 53, 54, 58, 53, 61, 54, 62, 100, 54, 55, 55, 55, 2132, 303, 1499, 465, 7392, 299, 447, 310, 12520, 51, 21722, 1195, 45, 343, 1573, 100, 444, 366, 5774, 411, 343, 3627, 100, 444, 366, 2787, 1507, 411, 343, 556, 100, 444, 366, 897, 411, 310, 2604, 310, 12520, 51, 18835, 1195, 45, 343, 1573, 100, 444, 366, 5774, 411, 343, 655, 366, 4536, 100, 787, 411, 343, 1620, 66, 3404, 51, 36134, 45, 1555, 66, 6703, 51, 6703, 45, 55, 53, 54, 58, 49, 244, 61, 49, 244, 54, 62, 49, 244, 54, 55, 49, 244, 55, 58, 49, 244, 61, 49, 244, 58, 60, 62, 58, 56, 61, 49, 25917, 1357, 66, 16749, 490, 24678, 66, 2737, 490, 310, 2604, 303, 1499, 222 ]
[ "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "from", "Ġ__", "future", "__", "Ġimport", "Ġunicode", "_", "literals", "Ċ", "Ċ", "from", "Ġdjango", ".", "db", "Ġimport", "Ġmodels", ",", "Ġmigrations", "Ċ", "from", "Ġdjango", ".", "utils", ".", "timezone", "Ġimport", "Ġut", "c", "Ċ", "import", "Ġdatetime", "ĊĊ", "Ċ", "class", "ĠMigration", "(", "migrations", ".", "Migration", "):", "ĊĠĠĠ", "Ġdependencies", "Ġ=", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġ(\"", "notes", "app", "\",", "Ġ\"", "0", "0", "0", "8", "_", "auto", "_", "2", "0", "1", "5", "0", "8", "1", "9", "_", "1", "2", "2", "2", "\"),", "ĊĠĠĠ", "Ġ]", "ĊĊĠĠĠ", "Ġoperations", "Ġ=", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġmigrations", ".", "Rename", "Field", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġmodel", "_", "name", "=\"", "note", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġold", "_", "name", "=\"", "txt", "color", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġnew", "_", "name", "=\"", "text", "\",", "ĊĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠĠĠĠĠ", "Ġmigrations", ".", "Alter", "Field", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġmodel", "_", "name", "=\"", "note", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġname", "=\"", "created", "_", "date", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfield", "=", "models", ".", "DateTimeField", "(", "default", "=", "datetime", ".", "datetime", "(", "2", "0", "1", "5", ",", "Ġ", "8", ",", "Ġ", "1", "9", ",", "Ġ", "1", "2", ",", "Ġ", "2", "5", ",", "Ġ", "8", ",", "Ġ", "5", "7", "9", "5", "3", "8", ",", "Ġtz", "info", "=", "utc", "),", "Ġeditable", "=", "False", "),", "ĊĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠ", "Ġ]", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 19, 19, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 25, 25 ]
[ 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 5, 8, 14, 16, 23, 31, 32, 40, 1, 1, 5, 12, 13, 15, 22, 29, 30, 41, 1, 5, 12, 13, 18, 19, 27, 34, 37, 38, 1, 7, 16, 1, 1, 6, 16, 17, 27, 28, 37, 39, 4, 17, 19, 21, 8, 11, 16, 19, 21, 23, 24, 25, 26, 27, 28, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 49, 4, 6, 4, 15, 17, 19, 8, 19, 20, 26, 31, 32, 12, 18, 19, 23, 25, 29, 31, 12, 16, 17, 21, 23, 26, 31, 33, 12, 16, 17, 21, 23, 27, 29, 8, 11, 8, 19, 20, 25, 30, 31, 12, 18, 19, 23, 25, 29, 31, 12, 17, 19, 26, 27, 31, 33, 12, 18, 19, 25, 26, 39, 40, 47, 48, 56, 57, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 100, 104, 105, 108, 110, 119, 120, 125, 127, 8, 11, 4, 6 ]
a8b1b218e6649545000803c91c803580cfdbd4f1
import random # Imports MongoClient for base level access to the local MongoDB from pymongo import MongoClient # Imports datetime class to create timestamp for weather data storage from datetime import datetime # Importing DailyReportModel class to use the implemented method to insert data into daily_report_model collection from model import DailyReportModel # Database host ip and port information HOST = "127.0.0.1" PORT = "27017" RELATIVE_CONFIG_PATH = "../config/" DB_NAME = "weather_db" USER_COLLECTION = "users" DEVICE_COLLECTION = "devices" WEATHER_DATA_COLLECTION = "weather_data" DAILY_REPORT_MODEL = "daily_report_model" # This will initiate connection to the mongodb db_handle = MongoClient(f"mongodb://{HOST}:{PORT}") # We drop the existing database including all the collections and data db_handle.drop_database(DB_NAME) # We recreate the database with the same name weather_dbh = db_handle[DB_NAME] # user data import # User document contains username (String), email (String), and role (String) fields # Reads users.csv one line at a time, splits them into the data fields and inserts with open(RELATIVE_CONFIG_PATH + USER_COLLECTION + ".csv", "r") as user_fh: for user_row in user_fh: user_row = user_row.rstrip() if user_row: (username, email, role) = user_row.split(",") user_data = {"username": username, "email": email, "role": role} # This creates and return a pointer to the users collection user_collection = weather_dbh[USER_COLLECTION] # This inserts the data item as a document in the user collection user_collection.insert_one(user_data) # device data import # Device document contains device_id (String), desc (String), type (String - temperature/humidity) and manufacturer (String) fields # Reads devices.csv one line at a time, splits them into the data fields and inserts with open(RELATIVE_CONFIG_PATH + DEVICE_COLLECTION + ".csv", "r") as device_fh: for device_row in device_fh: device_row = device_row.rstrip() if device_row: (device_id, desc, type, manufacturer) = device_row.split(",") device_data = {"device_id": device_id, "desc": desc, "type": type, "manufacturer": manufacturer} # This creates and return a pointer to the devices collection device_collection = weather_dbh[DEVICE_COLLECTION] # This inserts the data item as a document in the devices collection device_collection.insert_one(device_data) # weather data generation # Weather data document contains device_id (String), value (Integer), and timestamp (Date) fields # Reads devices.csv one line at a time to get device id and type. It then loops for five days (2020-12-01 to 2020-12-05 # For each device and day, it creates random values for each hour (at the 30 minute mark) and stores the data # Created a list to populate it with device id and timestamp devdaylist = [] with open(RELATIVE_CONFIG_PATH + DEVICE_COLLECTION + ".csv", "r") as device_fh: for device_row in device_fh: device_row = device_row.rstrip() if device_row: # _ can be used to ignore values that are not needed (device_id, _, type, _) = device_row.split(",") for day in range(1, 6): # creating and appending data to the list day1 = datetime(2020, 12, day) devdaylist.append((device_id, day1)) for hour in range(0, 24): timestamp = datetime(2020, 12, day, hour, 30, 0) # Generates random data value in appropriate range as per the type of sensor (normal bell-curve distribution) if type.lower() == "temperature": value = int(random.normalvariate(24, 2.2)) elif type.lower() == "humidity": value = int(random.normalvariate(45, 3)) weather_data = {"device_id": device_id, "value": value, "timestamp": timestamp} weather_data_collection = weather_dbh[WEATHER_DATA_COLLECTION] # This inserts the data item as a document in the weather_data collection weather_data_collection.insert_one(weather_data) # Populating the data to daily_report_model collection on setup drm = DailyReportModel() for ddy in devdaylist: drm.insert_daily_report_to_daily_report_model(ddy[0], ddy[1], "admin")
[ 485, 4051, 222, 222, 40, 44949, 14907, 1503, 456, 1712, 3215, 2872, 391, 341, 2212, 22698, 222, 1097, 317, 2225, 6637, 1220, 14907, 1503, 222, 222, 40, 44949, 7181, 462, 391, 1506, 6356, 456, 20104, 727, 4780, 222, 1097, 7181, 1220, 7181, 222, 222, 40, 9274, 318, 46205, 4158, 1262, 462, 391, 813, 341, 7613, 1431, 391, 5567, 727, 2012, 21705, 100, 3755, 100, 1184, 4512, 222, 1097, 1573, 1220, 46205, 4158, 1262, 499, 222, 40, 6728, 3421, 4762, 480, 2618, 2490, 222, 8483, 299, 332, 54, 55, 60, 51, 53, 51, 53, 51, 54, 39, 222, 3640, 299, 332, 55, 60, 53, 54, 60, 39, 222, 222, 16466, 13828, 100, 6196, 100, 4088, 299, 6919, 1180, 5694, 222, 222, 2015, 100, 2491, 299, 332, 15903, 100, 1219, 39, 222, 4991, 100, 29527, 299, 332, 3724, 39, 222, 10553, 100, 29527, 299, 332, 13224, 39, 222, 4656, 41554, 100, 4629, 100, 29527, 299, 332, 15903, 100, 624, 39, 222, 5472, 1484, 94, 100, 25246, 100, 14607, 299, 332, 18946, 100, 3755, 100, 1184, 39, 222, 222, 40, 1369, 1118, 42239, 3401, 391, 341, 38477, 222, 1219, 100, 2972, 299, 14907, 1503, 45, 107, 39, 15683, 45442, 8483, 40617, 3640, 8531, 222, 222, 40, 2726, 6310, 341, 4917, 3520, 6252, 1187, 341, 13722, 480, 727, 222, 1219, 100, 2972, 51, 3850, 100, 4617, 45, 2015, 100, 2491, 46, 222, 222, 40, 2726, 38841, 341, 3520, 642, 341, 2454, 655, 222, 15903, 100, 1219, 109, 299, 3100, 100, 2972, 96, 2015, 100, 2491, 98, 499, 222, 40, 1275, 727, 1220, 222, 40, 2694, 1840, 4326, 969, 327, 671, 490, 4111, 327, 671, 490, 480, 4218, 327, 671, 46, 3844, 222, 40, 29513, 4272, 51, 4849, 1611, 1646, 840, 331, 1153, 49, 32679, 3049, 2012, 341, 727, 3844, 480, 44646, 222, 1814, 2177, 45, 16466, 13828, 100, 6196, 100, 4088, 494, 14124, 100, 29527, 494, 4956, 4849, 411, 332, 119, 678, 641, 1275, 100, 13531, 63, 303, 456, 1275, 100, 661, 347, 1275, 100, 13531, 63, 310, 1275, 100, 661, 299, 1275, 100, 661, 51, 38882, 365, 310, 434, 1275, 100, 661, 63, 343, 327, 715, 49, 4111, 49, 4218, 46, 299, 1275, 100, 661, 51, 3045, 45793, 310, 1275, 100, 624, 299, 3479, 715, 582, 969, 49, 332, 1951, 582, 4111, 49, 332, 4315, 582, 4218, 130, 603, 607, 1369, 9602, 480, 461, 331, 4964, 391, 341, 4272, 4512, 310, 1275, 100, 4192, 299, 20104, 100, 1219, 109, 96, 4991, 100, 29527, 98, 603, 607, 1369, 44646, 341, 727, 1641, 641, 331, 1840, 347, 341, 1275, 4512, 310, 1275, 100, 4192, 51, 3233, 100, 677, 45, 514, 100, 624, 46, 499, 222, 40, 3313, 727, 1220, 222, 40, 9151, 1840, 4326, 3313, 100, 333, 327, 671, 490, 5615, 327, 671, 490, 847, 327, 671, 449, 13740, 52, 48452, 46, 480, 43991, 327, 671, 46, 3844, 222, 40, 29513, 9248, 51, 4849, 1611, 1646, 840, 331, 1153, 49, 32679, 3049, 2012, 341, 727, 3844, 480, 44646, 222, 1814, 2177, 45, 16466, 13828, 100, 6196, 100, 4088, 494, 34038, 100, 29527, 494, 4956, 4849, 411, 332, 119, 678, 641, 3313, 100, 13531, 63, 303, 456, 3313, 100, 661, 347, 3313, 100, 13531, 63, 310, 3313, 100, 661, 299, 3313, 100, 661, 51, 38882, 365, 310, 434, 3313, 100, 661, 63, 343, 327, 2949, 100, 333, 49, 5615, 49, 847, 49, 43991, 46, 299, 3313, 100, 661, 51, 3045, 45793, 310, 3313, 100, 624, 299, 3479, 2949, 100, 333, 582, 3313, 100, 333, 49, 332, 3817, 582, 5615, 49, 332, 700, 582, 847, 49, 332, 30537, 582, 43991, 130, 603, 607, 1369, 9602, 480, 461, 331, 4964, 391, 341, 9248, 4512, 310, 3313, 100, 4192, 299, 20104, 100, 1219, 109, 96, 10553, 100, 29527, 98, 603, 607, 1369, 44646, 341, 727, 1641, 641, 331, 1840, 347, 341, 9248, 4512, 310, 3313, 100, 4192, 51, 3233, 100, 677, 45, 2949, 100, 624, 46, 499, 222, 40, 20104, 727, 11753, 222, 40, 32033, 727, 1840, 4326, 3313, 100, 333, 327, 671, 490, 804, 327, 3078, 490, 480, 6356, 327, 1563, 46, 3844, 222, 40, 29513, 9248, 51, 4849, 1611, 1646, 840, 331, 1153, 391, 640, 3313, 828, 480, 847, 51, 2048, 1636, 23847, 456, 20838, 6952, 327, 55, 53, 55, 53, 50, 54, 55, 50, 53, 54, 391, 244, 55, 53, 55, 53, 50, 54, 55, 50, 53, 58, 222, 40, 2643, 2531, 3313, 480, 5830, 49, 580, 9602, 4051, 2102, 456, 2531, 12039, 327, 288, 341, 244, 56, 53, 16059, 3658, 46, 480, 15369, 341, 727, 222, 222, 40, 6956, 331, 1168, 391, 18985, 580, 642, 3313, 828, 480, 6356, 222, 1920, 3386, 687, 299, 1627, 222, 1814, 2177, 45, 16466, 13828, 100, 6196, 100, 4088, 494, 34038, 100, 29527, 494, 4956, 4849, 411, 332, 119, 678, 641, 3313, 100, 13531, 63, 303, 456, 3313, 100, 661, 347, 3313, 100, 13531, 63, 310, 3313, 100, 661, 299, 3313, 100, 661, 51, 38882, 365, 310, 434, 3313, 100, 661, 63, 343, 607, 634, 902, 545, 1674, 391, 5091, 2102, 708, 904, 666, 5366, 343, 327, 2949, 100, 333, 49, 4963, 847, 49, 15079, 299, 3313, 100, 661, 51, 3045, 45793, 310, 456, 5830, 347, 2189, 45, 54, 49, 244, 59, 731, 343, 607, 6913, 480, 1142, 4034, 727, 391, 341, 1168, 343, 5830, 54, 299, 7181, 45, 55, 53, 55, 53, 49, 244, 54, 55, 49, 5830, 46, 343, 5693, 3386, 687, 51, 1713, 1181, 2949, 100, 333, 49, 5830, 54, 509, 343, 456, 12039, 347, 2189, 45, 53, 49, 244, 55, 57, 731, 419, 6356, 299, 7181, 45, 55, 53, 55, 53, 49, 244, 54, 55, 49, 5830, 49, 12039, 49, 244, 56, 53, 49, 244, 53, 46, 419, 607, 32476, 4051, 727, 804, 347, 9150, 2189, 641, 1313, 341, 847, 451, 11556, 327, 4434, 342, 1042, 50, 15773, 7507, 46, 419, 434, 847, 51, 5773, 365, 630, 332, 17569, 582, 547, 804, 299, 648, 45, 3917, 51, 4434, 10014, 351, 45, 55, 57, 49, 244, 55, 51, 55, 509, 419, 4378, 847, 51, 5773, 365, 630, 332, 48452, 582, 547, 804, 299, 648, 45, 3917, 51, 4434, 10014, 351, 45, 57, 58, 49, 244, 56, 509, 419, 20104, 100, 624, 299, 3479, 2949, 100, 333, 582, 3313, 100, 333, 49, 332, 872, 582, 804, 49, 332, 5627, 582, 6356, 130, 419, 20104, 100, 624, 100, 4192, 299, 20104, 100, 1219, 109, 96, 4656, 41554, 100, 4629, 100, 29527, 98, 2125, 607, 1369, 44646, 341, 727, 1641, 641, 331, 1840, 347, 341, 20104, 100, 624, 4512, 419, 20104, 100, 624, 100, 4192, 51, 3233, 100, 677, 45, 15903, 100, 624, 46, 499, 222, 40, 13097, 24856, 341, 727, 391, 21705, 100, 3755, 100, 1184, 4512, 563, 4721, 222, 3529, 114, 299, 46205, 4158, 1262, 365, 222, 999, 362, 7051, 347, 5693, 3386, 687, 63, 303, 39436, 51, 3233, 100, 18946, 100, 3755, 100, 471, 100, 18946, 100, 3755, 100, 1184, 45, 16974, 96, 53, 636, 362, 7051, 96, 54, 636, 332, 2317, 678, 222 ]
[ "import", "Ġrandom", "Ċ", "Ċ", "#", "ĠImports", "ĠMongo", "Client", "Ġfor", "Ġbase", "Ġlevel", "Ġaccess", "Ġto", "Ġthe", "Ġlocal", "ĠMongoDB", "Ċ", "from", "Ġp", "ym", "ongo", "Ġimport", "ĠMongo", "Client", "Ċ", "Ċ", "#", "ĠImports", "Ġdatetime", "Ġclass", "Ġto", "Ġcreate", "Ġtimestamp", "Ġfor", "Ġweather", "Ġdata", "Ġstorage", "Ċ", "from", "Ġdatetime", "Ġimport", "Ġdatetime", "Ċ", "Ċ", "#", "ĠImport", "ing", "ĠDaily", "Report", "Model", "Ġclass", "Ġto", "Ġuse", "Ġthe", "Ġimplemented", "Ġmethod", "Ġto", "Ġinsert", "Ġdata", "Ġinto", "Ġdaily", "_", "report", "_", "model", "Ġcollection", "Ċ", "from", "Ġmodel", "Ġimport", "ĠDaily", "Report", "Model", "ĊĊ", "Ċ", "#", "ĠDatabase", "Ġhost", "Ġip", "Ġand", "Ġport", "Ġinformation", "Ċ", "HOST", "Ġ=", "Ġ\"", "1", "2", "7", ".", "0", ".", "0", ".", "1", "\"", "Ċ", "PORT", "Ġ=", "Ġ\"", "2", "7", "0", "1", "7", "\"", "Ċ", "Ċ", "REL", "ATIVE", "_", "CONFIG", "_", "PATH", "Ġ=", "Ġ\"../", "config", "/\"", "Ċ", "Ċ", "DB", "_", "NAME", "Ġ=", "Ġ\"", "weather", "_", "db", "\"", "Ċ", "USER", "_", "COLLECTION", "Ġ=", "Ġ\"", "users", "\"", "Ċ", "DEVICE", "_", "COLLECTION", "Ġ=", "Ġ\"", "devices", "\"", "Ċ", "WE", "ATHER", "_", "DATA", "_", "COLLECTION", "Ġ=", "Ġ\"", "weather", "_", "data", "\"", "Ċ", "DA", "IL", "Y", "_", "REPORT", "_", "MODEL", "Ġ=", "Ġ\"", "daily", "_", "report", "_", "model", "\"", "Ċ", "Ċ", "#", "ĠThis", "Ġwill", "Ġinitiate", "Ġconnection", "Ġto", "Ġthe", "Ġmongodb", "Ċ", "db", "_", "handle", "Ġ=", "ĠMongo", "Client", "(", "f", "\"", "mongodb", "://{", "HOST", "}:{", "PORT", "}\")", "Ċ", "Ċ", "#", "ĠWe", "Ġdrop", "Ġthe", "Ġexisting", "Ġdatabase", "Ġincluding", "Ġall", "Ġthe", "Ġcollections", "Ġand", "Ġdata", "Ċ", "db", "_", "handle", ".", "drop", "_", "database", "(", "DB", "_", "NAME", ")", "Ċ", "Ċ", "#", "ĠWe", "Ġrecreate", "Ġthe", "Ġdatabase", "Ġwith", "Ġthe", "Ġsame", "Ġname", "Ċ", "weather", "_", "db", "h", "Ġ=", "Ġdb", "_", "handle", "[", "DB", "_", "NAME", "]", "ĊĊ", "Ċ", "#", "Ġuser", "Ġdata", "Ġimport", "Ċ", "#", "ĠUser", "Ġdocument", "Ġcontains", "Ġusername", "Ġ(", "String", "),", "Ġemail", "Ġ(", "String", "),", "Ġand", "Ġrole", "Ġ(", "String", ")", "Ġfields", "Ċ", "#", "ĠReads", "Ġusers", ".", "csv", "Ġone", "Ġline", "Ġat", "Ġa", "Ġtime", ",", "Ġsplits", "Ġthem", "Ġinto", "Ġthe", "Ġdata", "Ġfields", "Ġand", "Ġinserts", "Ċ", "with", "Ġopen", "(", "REL", "ATIVE", "_", "CONFIG", "_", "PATH", "Ġ+", "ĠUSER", "_", "COLLECTION", "Ġ+", "Ġ\".", "csv", "\",", "Ġ\"", "r", "\")", "Ġas", "Ġuser", "_", "fh", ":", "ĊĠĠĠ", "Ġfor", "Ġuser", "_", "row", "Ġin", "Ġuser", "_", "fh", ":", "ĊĠĠĠĠĠĠĠ", "Ġuser", "_", "row", "Ġ=", "Ġuser", "_", "row", ".", "rstrip", "()", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġuser", "_", "row", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "username", ",", "Ġemail", ",", "Ġrole", ")", "Ġ=", "Ġuser", "_", "row", ".", "split", "(\",\")", "ĊĠĠĠĠĠĠĠ", "Ġuser", "_", "data", "Ġ=", "Ġ{\"", "username", "\":", "Ġusername", ",", "Ġ\"", "email", "\":", "Ġemail", ",", "Ġ\"", "role", "\":", "Ġrole", "}", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠThis", "Ġcreates", "Ġand", "Ġreturn", "Ġa", "Ġpointer", "Ġto", "Ġthe", "Ġusers", "Ġcollection", "ĊĠĠĠĠĠĠĠ", "Ġuser", "_", "collection", "Ġ=", "Ġweather", "_", "db", "h", "[", "USER", "_", "COLLECTION", "]", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠThis", "Ġinserts", "Ġthe", "Ġdata", "Ġitem", "Ġas", "Ġa", "Ġdocument", "Ġin", "Ġthe", "Ġuser", "Ġcollection", "ĊĠĠĠĠĠĠĠ", "Ġuser", "_", "collection", ".", "insert", "_", "one", "(", "user", "_", "data", ")", "ĊĊ", "Ċ", "#", "Ġdevice", "Ġdata", "Ġimport", "Ċ", "#", "ĠDevice", "Ġdocument", "Ġcontains", "Ġdevice", "_", "id", "Ġ(", "String", "),", "Ġdesc", "Ġ(", "String", "),", "Ġtype", "Ġ(", "String", "Ġ-", "Ġtemperature", "/", "humidity", ")", "Ġand", "Ġmanufacturer", "Ġ(", "String", ")", "Ġfields", "Ċ", "#", "ĠReads", "Ġdevices", ".", "csv", "Ġone", "Ġline", "Ġat", "Ġa", "Ġtime", ",", "Ġsplits", "Ġthem", "Ġinto", "Ġthe", "Ġdata", "Ġfields", "Ġand", "Ġinserts", "Ċ", "with", "Ġopen", "(", "REL", "ATIVE", "_", "CONFIG", "_", "PATH", "Ġ+", "ĠDEVICE", "_", "COLLECTION", "Ġ+", "Ġ\".", "csv", "\",", "Ġ\"", "r", "\")", "Ġas", "Ġdevice", "_", "fh", ":", "ĊĠĠĠ", "Ġfor", "Ġdevice", "_", "row", "Ġin", "Ġdevice", "_", "fh", ":", "ĊĠĠĠĠĠĠĠ", "Ġdevice", "_", "row", "Ġ=", "Ġdevice", "_", "row", ".", "rstrip", "()", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdevice", "_", "row", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "device", "_", "id", ",", "Ġdesc", ",", "Ġtype", ",", "Ġmanufacturer", ")", "Ġ=", "Ġdevice", "_", "row", ".", "split", "(\",\")", "ĊĠĠĠĠĠĠĠ", "Ġdevice", "_", "data", "Ġ=", "Ġ{\"", "device", "_", "id", "\":", "Ġdevice", "_", "id", ",", "Ġ\"", "desc", "\":", "Ġdesc", ",", "Ġ\"", "type", "\":", "Ġtype", ",", "Ġ\"", "manufacturer", "\":", "Ġmanufacturer", "}", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠThis", "Ġcreates", "Ġand", "Ġreturn", "Ġa", "Ġpointer", "Ġto", "Ġthe", "Ġdevices", "Ġcollection", "ĊĠĠĠĠĠĠĠ", "Ġdevice", "_", "collection", "Ġ=", "Ġweather", "_", "db", "h", "[", "DEVICE", "_", "COLLECTION", "]", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠThis", "Ġinserts", "Ġthe", "Ġdata", "Ġitem", "Ġas", "Ġa", "Ġdocument", "Ġin", "Ġthe", "Ġdevices", "Ġcollection", "ĊĠĠĠĠĠĠĠ", "Ġdevice", "_", "collection", ".", "insert", "_", "one", "(", "device", "_", "data", ")", "ĊĊ", "Ċ", "#", "Ġweather", "Ġdata", "Ġgeneration", "Ċ", "#", "ĠWeather", "Ġdata", "Ġdocument", "Ġcontains", "Ġdevice", "_", "id", "Ġ(", "String", "),", "Ġvalue", "Ġ(", "Integer", "),", "Ġand", "Ġtimestamp", "Ġ(", "Date", ")", "Ġfields", "Ċ", "#", "ĠReads", "Ġdevices", ".", "csv", "Ġone", "Ġline", "Ġat", "Ġa", "Ġtime", "Ġto", "Ġget", "Ġdevice", "Ġid", "Ġand", "Ġtype", ".", "ĠIt", "Ġthen", "Ġloops", "Ġfor", "Ġfive", "Ġdays", "Ġ(", "2", "0", "2", "0", "-", "1", "2", "-", "0", "1", "Ġto", "Ġ", "2", "0", "2", "0", "-", "1", "2", "-", "0", "5", "Ċ", "#", "ĠFor", "Ġeach", "Ġdevice", "Ġand", "Ġday", ",", "Ġit", "Ġcreates", "Ġrandom", "Ġvalues", "Ġfor", "Ġeach", "Ġhour", "Ġ(", "at", "Ġthe", "Ġ", "3", "0", "Ġminute", "Ġmark", ")", "Ġand", "Ġstores", "Ġthe", "Ġdata", "Ċ", "Ċ", "#", "ĠCreated", "Ġa", "Ġlist", "Ġto", "Ġpopulate", "Ġit", "Ġwith", "Ġdevice", "Ġid", "Ġand", "Ġtimestamp", "Ċ", "dev", "day", "list", "Ġ=", "Ġ[]", "Ċ", "with", "Ġopen", "(", "REL", "ATIVE", "_", "CONFIG", "_", "PATH", "Ġ+", "ĠDEVICE", "_", "COLLECTION", "Ġ+", "Ġ\".", "csv", "\",", "Ġ\"", "r", "\")", "Ġas", "Ġdevice", "_", "fh", ":", "ĊĠĠĠ", "Ġfor", "Ġdevice", "_", "row", "Ġin", "Ġdevice", "_", "fh", ":", "ĊĠĠĠĠĠĠĠ", "Ġdevice", "_", "row", "Ġ=", "Ġdevice", "_", "row", ".", "rstrip", "()", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdevice", "_", "row", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġ_", "Ġcan", "Ġbe", "Ġused", "Ġto", "Ġignore", "Ġvalues", "Ġthat", "Ġare", "Ġnot", "Ġneeded", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "device", "_", "id", ",", "Ġ_,", "Ġtype", ",", "Ġ_)", "Ġ=", "Ġdevice", "_", "row", ".", "split", "(\",\")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġday", "Ġin", "Ġrange", "(", "1", ",", "Ġ", "6", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġcreating", "Ġand", "Ġapp", "ending", "Ġdata", "Ġto", "Ġthe", "Ġlist", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġday", "1", "Ġ=", "Ġdatetime", "(", "2", "0", "2", "0", ",", "Ġ", "1", "2", ",", "Ġday", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdev", "day", "list", ".", "append", "((", "device", "_", "id", ",", "Ġday", "1", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġhour", "Ġin", "Ġrange", "(", "0", ",", "Ġ", "2", "4", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtimestamp", "Ġ=", "Ġdatetime", "(", "2", "0", "2", "0", ",", "Ġ", "1", "2", ",", "Ġday", ",", "Ġhour", ",", "Ġ", "3", "0", ",", "Ġ", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "ĠGenerates", "Ġrandom", "Ġdata", "Ġvalue", "Ġin", "Ġappropriate", "Ġrange", "Ġas", "Ġper", "Ġthe", "Ġtype", "Ġof", "Ġsensor", "Ġ(", "normal", "Ġb", "ell", "-", "curve", "Ġdistribution", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġtype", ".", "lower", "()", "Ġ==", "Ġ\"", "temperature", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġvalue", "Ġ=", "Ġint", "(", "random", ".", "normal", "vari", "ate", "(", "2", "4", ",", "Ġ", "2", ".", "2", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġtype", ".", "lower", "()", "Ġ==", "Ġ\"", "humidity", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġvalue", "Ġ=", "Ġint", "(", "random", ".", "normal", "vari", "ate", "(", "4", "5", ",", "Ġ", "3", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġweather", "_", "data", "Ġ=", "Ġ{\"", "device", "_", "id", "\":", "Ġdevice", "_", "id", ",", "Ġ\"", "value", "\":", "Ġvalue", ",", "Ġ\"", "timestamp", "\":", "Ġtimestamp", "}", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġweather", "_", "data", "_", "collection", "Ġ=", "Ġweather", "_", "db", "h", "[", "WE", "ATHER", "_", "DATA", "_", "COLLECTION", "]", "ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "ĠThis", "Ġinserts", "Ġthe", "Ġdata", "Ġitem", "Ġas", "Ġa", "Ġdocument", "Ġin", "Ġthe", "Ġweather", "_", "data", "Ġcollection", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġweather", "_", "data", "_", "collection", ".", "insert", "_", "one", "(", "weather", "_", "data", ")", "ĊĊ", "Ċ", "#", "ĠPop", "ulating", "Ġthe", "Ġdata", "Ġto", "Ġdaily", "_", "report", "_", "model", "Ġcollection", "Ġon", "Ġsetup", "Ċ", "dr", "m", "Ġ=", "ĠDaily", "Report", "Model", "()", "Ċ", "for", "Ġd", "dy", "Ġin", "Ġdev", "day", "list", ":", "ĊĠĠĠ", "Ġdrm", ".", "insert", "_", "daily", "_", "report", "_", "to", "_", "daily", "_", "report", "_", "model", "(", "ddy", "[", "0", "],", "Ġd", "dy", "[", "1", "],", "Ġ\"", "admin", "\")", "Ċ" ]
[ 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 12, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 34, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 51, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 68, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 102, 102, 102, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103 ]
[ 1, 7, 14, 1, 1, 2, 10, 16, 22, 26, 31, 37, 44, 47, 51, 57, 65, 1, 5, 7, 9, 13, 20, 26, 32, 1, 1, 2, 10, 19, 25, 28, 35, 45, 49, 57, 62, 70, 1, 5, 14, 21, 30, 1, 1, 2, 9, 12, 18, 24, 29, 35, 38, 42, 46, 58, 65, 68, 75, 80, 85, 91, 92, 98, 99, 104, 115, 1, 5, 11, 18, 24, 30, 35, 1, 1, 2, 11, 16, 19, 23, 28, 40, 1, 5, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 1, 5, 7, 9, 10, 11, 12, 13, 14, 15, 1, 1, 4, 9, 10, 16, 17, 21, 23, 28, 34, 36, 1, 1, 3, 4, 8, 10, 12, 19, 20, 22, 23, 1, 5, 6, 16, 18, 20, 25, 26, 1, 7, 8, 18, 20, 22, 29, 30, 1, 3, 8, 9, 13, 14, 24, 26, 28, 35, 36, 40, 41, 1, 3, 5, 6, 7, 13, 14, 19, 21, 23, 28, 29, 35, 36, 41, 42, 1, 1, 2, 7, 12, 21, 32, 35, 39, 47, 1, 3, 4, 10, 12, 18, 24, 25, 26, 27, 34, 38, 42, 45, 49, 52, 1, 1, 2, 5, 10, 14, 23, 32, 42, 46, 50, 62, 66, 71, 1, 3, 4, 10, 11, 15, 16, 24, 25, 27, 28, 32, 33, 1, 1, 2, 5, 14, 18, 27, 32, 36, 41, 46, 1, 8, 9, 11, 12, 14, 17, 18, 24, 25, 27, 28, 32, 33, 1, 1, 2, 7, 12, 19, 1, 2, 7, 16, 25, 34, 36, 42, 44, 50, 52, 58, 60, 64, 69, 71, 77, 78, 85, 1, 2, 8, 14, 15, 18, 22, 27, 30, 32, 37, 38, 45, 50, 55, 59, 64, 71, 75, 83, 1, 5, 10, 11, 14, 19, 20, 26, 27, 31, 33, 38, 39, 49, 51, 54, 57, 59, 61, 62, 64, 67, 72, 73, 75, 76, 4, 8, 13, 14, 17, 20, 25, 26, 28, 29, 8, 13, 14, 17, 19, 24, 25, 28, 29, 35, 37, 8, 11, 16, 17, 20, 21, 12, 14, 22, 23, 29, 30, 35, 36, 38, 43, 44, 47, 48, 53, 58, 8, 13, 14, 18, 20, 23, 31, 33, 42, 43, 45, 50, 52, 58, 59, 61, 65, 67, 72, 73, 8, 10, 15, 23, 27, 34, 36, 44, 47, 51, 57, 68, 8, 13, 14, 24, 26, 34, 35, 37, 38, 39, 43, 44, 54, 55, 8, 10, 15, 23, 27, 32, 37, 40, 42, 51, 54, 58, 63, 74, 8, 13, 14, 24, 25, 31, 32, 35, 36, 40, 41, 45, 46, 1, 1, 2, 9, 14, 21, 1, 2, 9, 18, 27, 34, 35, 37, 39, 45, 47, 52, 54, 60, 62, 67, 69, 75, 77, 89, 90, 98, 99, 103, 116, 118, 124, 125, 132, 1, 2, 8, 16, 17, 20, 24, 29, 32, 34, 39, 40, 47, 52, 57, 61, 66, 73, 77, 85, 1, 5, 10, 11, 14, 19, 20, 26, 27, 31, 33, 40, 41, 51, 53, 56, 59, 61, 63, 64, 66, 69, 76, 77, 79, 80, 4, 8, 15, 16, 19, 22, 29, 30, 32, 33, 8, 15, 16, 19, 21, 28, 29, 32, 33, 39, 41, 8, 11, 18, 19, 22, 23, 12, 14, 20, 21, 23, 24, 29, 30, 35, 36, 49, 50, 52, 59, 60, 63, 64, 69, 74, 8, 15, 16, 20, 22, 25, 31, 32, 34, 36, 43, 44, 46, 47, 49, 53, 55, 60, 61, 63, 67, 69, 74, 75, 77, 89, 91, 104, 105, 8, 10, 15, 23, 27, 34, 36, 44, 47, 51, 59, 70, 8, 15, 16, 26, 28, 36, 37, 39, 40, 41, 47, 48, 58, 59, 8, 10, 15, 23, 27, 32, 37, 40, 42, 51, 54, 58, 66, 77, 8, 15, 16, 26, 27, 33, 34, 37, 38, 44, 45, 49, 50, 1, 1, 2, 10, 15, 26, 1, 2, 10, 15, 24, 33, 40, 41, 43, 45, 51, 53, 59, 61, 68, 70, 74, 84, 86, 90, 91, 98, 1, 2, 8, 16, 17, 20, 24, 29, 32, 34, 39, 42, 46, 53, 56, 60, 65, 66, 69, 74, 80, 84, 89, 94, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 1, 2, 6, 11, 18, 22, 26, 27, 30, 38, 45, 52, 56, 61, 66, 68, 70, 74, 75, 76, 77, 84, 89, 90, 94, 101, 105, 110, 1, 1, 2, 10, 12, 17, 20, 29, 32, 37, 44, 47, 51, 61, 1, 4, 7, 11, 13, 16, 1, 5, 10, 11, 14, 19, 20, 26, 27, 31, 33, 40, 41, 51, 53, 56, 59, 61, 63, 64, 66, 69, 76, 77, 79, 80, 4, 8, 15, 16, 19, 22, 29, 30, 32, 33, 8, 15, 16, 19, 21, 28, 29, 32, 33, 39, 41, 8, 11, 18, 19, 22, 23, 12, 14, 16, 20, 23, 28, 31, 38, 45, 50, 54, 58, 65, 12, 14, 20, 21, 23, 24, 27, 32, 33, 36, 38, 45, 46, 49, 50, 55, 60, 8, 12, 16, 19, 25, 26, 27, 28, 29, 30, 32, 12, 14, 23, 27, 31, 37, 42, 45, 49, 54, 12, 16, 17, 19, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 42, 43, 12, 16, 19, 23, 24, 30, 32, 38, 39, 41, 42, 46, 47, 49, 12, 16, 21, 24, 30, 31, 32, 33, 34, 35, 36, 38, 16, 26, 28, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 51, 52, 57, 58, 59, 60, 61, 62, 63, 64, 65, 16, 18, 28, 35, 40, 46, 49, 61, 67, 70, 74, 78, 83, 86, 93, 95, 101, 103, 106, 107, 112, 125, 126, 16, 19, 24, 25, 30, 32, 35, 37, 48, 50, 20, 26, 28, 32, 33, 39, 40, 46, 50, 53, 54, 55, 56, 57, 58, 59, 60, 61, 63, 16, 21, 26, 27, 32, 34, 37, 39, 47, 49, 20, 26, 28, 32, 33, 39, 40, 46, 50, 53, 54, 55, 56, 57, 58, 59, 61, 16, 24, 25, 29, 31, 34, 40, 41, 43, 45, 52, 53, 55, 56, 58, 63, 65, 71, 72, 74, 83, 85, 95, 96, 16, 24, 25, 29, 30, 40, 42, 50, 51, 53, 54, 55, 57, 62, 63, 67, 68, 78, 79, 16, 18, 23, 31, 35, 40, 45, 48, 50, 59, 62, 66, 74, 75, 79, 90, 16, 24, 25, 29, 30, 40, 41, 47, 48, 51, 52, 59, 60, 64, 65, 1, 1, 2, 6, 13, 17, 22, 25, 31, 32, 38, 39, 44, 55, 58, 64, 1, 3, 4, 6, 12, 18, 23, 25, 1, 4, 6, 8, 11, 15, 18, 22, 23, 4, 8, 9, 15, 16, 21, 22, 28, 29, 31, 32, 37, 38, 44, 45, 50, 51, 54, 55, 56, 58, 60, 62, 63, 64, 66, 68, 73, 75 ]
8cd582915c5abd96a4ef8a3a5309311f2a73a156
with open("file.txt", "r") as fh: data = fh.readline() lis = data.split(" ") my_dict = {} for key in lis: if key in my_dict.keys(): my_dict[key] += 1 else: my_dict[key] = 1 print(my_dict)
[ 1814, 2177, 459, 781, 51, 2787, 411, 332, 119, 678, 641, 23785, 63, 303, 727, 299, 23785, 51, 25658, 365, 222, 222, 32177, 299, 727, 51, 3045, 459, 7816, 222, 1791, 100, 2734, 299, 2172, 222, 222, 999, 1221, 347, 475, 316, 63, 303, 434, 1221, 347, 1690, 100, 2734, 51, 3519, 2284, 310, 1690, 100, 2734, 96, 697, 98, 1475, 244, 54, 303, 832, 63, 310, 1690, 100, 2734, 96, 697, 98, 299, 244, 54, 222, 222, 1243, 45, 1791, 100, 2734, 46, 222 ]
[ "with", "Ġopen", "(\"", "file", ".", "txt", "\",", "Ġ\"", "r", "\")", "Ġas", "Ġfh", ":", "ĊĠĠĠ", "Ġdata", "Ġ=", "Ġfh", ".", "readline", "()", "Ċ", "Ċ", "lis", "Ġ=", "Ġdata", ".", "split", "(\"", "Ġ\")", "Ċ", "my", "_", "dict", "Ġ=", "Ġ{}", "Ċ", "Ċ", "for", "Ġkey", "Ġin", "Ġl", "is", ":", "ĊĠĠĠ", "Ġif", "Ġkey", "Ġin", "Ġmy", "_", "dict", ".", "keys", "():", "ĊĠĠĠĠĠĠĠ", "Ġmy", "_", "dict", "[", "key", "]", "Ġ+=", "Ġ", "1", "ĊĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠ", "Ġmy", "_", "dict", "[", "key", "]", "Ġ=", "Ġ", "1", "Ċ", "Ċ", "print", "(", "my", "_", "dict", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 13, 13, 13, 13, 13, 13, 13 ]
[ 1, 5, 10, 12, 16, 17, 20, 22, 24, 25, 27, 30, 33, 34, 4, 9, 11, 14, 15, 23, 25, 1, 1, 4, 6, 11, 12, 17, 19, 22, 1, 3, 4, 8, 10, 13, 1, 1, 4, 8, 11, 13, 15, 16, 4, 7, 11, 14, 17, 18, 22, 23, 27, 30, 8, 11, 12, 16, 17, 20, 21, 24, 25, 26, 4, 9, 10, 8, 11, 12, 16, 17, 20, 21, 23, 24, 25, 1, 1, 6, 7, 9, 10, 14, 15 ]
f55b286448f114f3823f099a576af7bec1780a8c
# -*- coding: utf-8 -*- try: from greenlet import getcurrent as get_current_greenlet except ImportError: get_current_greenlet = int from thread import get_ident as get_current_thread from threading import Lock if get_current_greenlet is int: # Use thread get_ident = get_current_thread else: # Use greenlet get_ident = lambda: (get_current_thread(), get_current_greenlet()) class Local(object): __slots__ = ("__data__", "__lock__") def __init__(self): object.__setattr__(self, "__data__", {}) object.__setattr__(self, "__lock__", Lock()) def __iter__(self): return self.__data__.iteritems() def __getattr__(self, item): self.__lock__.acquire() try: try: return self.__data__[get_ident()][item] except KeyError: raise AttributeError(item) finally: self.__lock__.release() def __setattr__(self, key, value): self.__lock__.acquire() try: _id = get_ident() data = self.__data__ if _id in data: data[_id][key] = value else: data[_id] = {key: value} finally: self.__lock__.release() def __delattr__(self, item): self.__lock__.acquire() try: try: del self.__data__[get_ident()][item] except KeyError: raise AttributeError(item) finally: self.__lock__.release() def __release__(self): self.__data__.pop(get_ident(), None) class LocalStack(object): def __init__(self): self._local = Local() self._lock = Lock() def push(self, obj): self._lock.acquire() try: rv = getattr(self._local, "stack", None) if rv is None: self._local.stack = rv = [] rv.append(obj) return rv finally: self._lock.release() def pop(self): self._lock.acquire() try: stack = getattr(self._local, "stack", None) if stack is None: return None elif len(stack) == 1: self._local.__release__() return stack[-1] else: stack.pop() finally: self._lock.release() @property def top(self): try: return self._local.stack[-1] except (AttributeError, IndexError): return None
[ 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 1287, 63, 303, 664, 9743, 749, 1220, 640, 1719, 641, 640, 100, 1719, 100, 6583, 749, 222, 7364, 29994, 63, 303, 640, 100, 1719, 100, 6583, 749, 299, 648, 222, 222, 1097, 3682, 1220, 640, 100, 4859, 641, 640, 100, 1719, 100, 3442, 222, 1097, 26311, 1220, 15094, 499, 222, 344, 640, 100, 1719, 100, 6583, 749, 458, 648, 63, 244, 607, 4443, 3682, 303, 640, 100, 4859, 299, 640, 100, 1719, 100, 3442, 222, 728, 63, 244, 607, 4443, 9743, 749, 303, 640, 100, 4859, 299, 9332, 63, 327, 390, 100, 1719, 100, 3442, 1046, 640, 100, 1719, 100, 6583, 749, 1177, 499, 222, 842, 7099, 45, 1491, 731, 303, 1176, 18648, 523, 299, 2903, 523, 624, 41451, 9609, 827, 523, 678, 465, 684, 1176, 1683, 3232, 803, 731, 310, 1319, 3688, 45842, 3232, 803, 49, 9609, 624, 41451, 12794, 310, 1319, 3688, 45842, 3232, 803, 49, 9609, 827, 41451, 15094, 1177, 465, 684, 1176, 1751, 3232, 803, 731, 310, 461, 649, 3688, 624, 9822, 41128, 365, 465, 684, 1176, 32110, 3232, 803, 49, 1641, 731, 310, 649, 3688, 827, 9822, 22240, 365, 310, 1614, 63, 343, 1614, 63, 419, 461, 649, 3688, 624, 523, 96, 390, 100, 4859, 365, 1697, 1113, 98, 343, 2959, 25145, 63, 419, 3655, 29294, 45, 1113, 46, 310, 8312, 63, 343, 649, 3688, 827, 9822, 3794, 365, 465, 684, 1176, 45842, 3232, 803, 49, 1221, 49, 804, 731, 310, 649, 3688, 827, 9822, 22240, 365, 310, 1614, 63, 343, 634, 333, 299, 640, 100, 4859, 365, 343, 727, 299, 649, 3688, 624, 523, 343, 434, 634, 333, 347, 727, 63, 419, 727, 11367, 333, 1697, 697, 98, 299, 804, 343, 832, 63, 419, 727, 11367, 333, 98, 299, 320, 697, 63, 804, 130, 310, 8312, 63, 343, 649, 3688, 827, 9822, 3794, 365, 465, 684, 1176, 4066, 2456, 3232, 803, 49, 1641, 731, 310, 649, 3688, 827, 9822, 22240, 365, 310, 1614, 63, 343, 1614, 63, 419, 3579, 649, 3688, 624, 523, 96, 390, 100, 4859, 365, 1697, 1113, 98, 343, 2959, 25145, 63, 419, 3655, 29294, 45, 1113, 46, 310, 8312, 63, 343, 649, 3688, 827, 9822, 3794, 365, 465, 684, 1176, 3794, 3232, 803, 731, 310, 649, 3688, 624, 9822, 3254, 45, 390, 100, 4859, 1046, 1686, 46, 499, 222, 842, 7099, 3131, 45, 1491, 731, 303, 684, 1176, 1683, 3232, 803, 731, 310, 649, 1132, 1717, 299, 7099, 365, 310, 649, 1132, 827, 299, 15094, 365, 465, 684, 5849, 45, 803, 49, 2847, 731, 310, 649, 1132, 827, 51, 22240, 365, 310, 1614, 63, 343, 13678, 299, 18628, 45, 803, 1132, 1717, 49, 332, 3056, 411, 1686, 46, 343, 434, 13678, 458, 1686, 63, 419, 649, 1132, 1717, 51, 3056, 299, 13678, 299, 1627, 343, 13678, 51, 1713, 45, 2085, 46, 343, 461, 13678, 310, 8312, 63, 343, 649, 1132, 827, 51, 3794, 365, 465, 684, 4742, 45, 803, 731, 310, 649, 1132, 827, 51, 22240, 365, 310, 1614, 63, 343, 4154, 299, 18628, 45, 803, 1132, 1717, 49, 332, 3056, 411, 1686, 46, 343, 434, 4154, 458, 1686, 63, 419, 461, 1686, 343, 4378, 2095, 45, 3056, 46, 630, 244, 54, 63, 419, 649, 1132, 1717, 3688, 3794, 16443, 419, 461, 4154, 6510, 54, 98, 343, 832, 63, 419, 4154, 51, 3254, 365, 310, 8312, 63, 343, 649, 1132, 827, 51, 3794, 365, 465, 496, 2449, 303, 684, 2687, 45, 803, 731, 310, 1614, 63, 343, 461, 649, 1132, 1717, 51, 3056, 6510, 54, 98, 310, 2959, 327, 2230, 943, 49, 44234, 731, 343, 461, 1686, 222 ]
[ "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "try", ":", "ĊĠĠĠ", "Ġfrom", "Ġgreen", "let", "Ġimport", "Ġget", "current", "Ġas", "Ġget", "_", "current", "_", "green", "let", "Ċ", "except", "ĠImportError", ":", "ĊĠĠĠ", "Ġget", "_", "current", "_", "green", "let", "Ġ=", "Ġint", "Ċ", "Ċ", "from", "Ġthread", "Ġimport", "Ġget", "_", "ident", "Ġas", "Ġget", "_", "current", "_", "thread", "Ċ", "from", "Ġthreading", "Ġimport", "ĠLock", "ĊĊ", "Ċ", "if", "Ġget", "_", "current", "_", "green", "let", "Ġis", "Ġint", ":", "Ġ", "Ġ#", "ĠUse", "Ġthread", "ĊĠĠĠ", "Ġget", "_", "ident", "Ġ=", "Ġget", "_", "current", "_", "thread", "Ċ", "else", ":", "Ġ", "Ġ#", "ĠUse", "Ġgreen", "let", "ĊĠĠĠ", "Ġget", "_", "ident", "Ġ=", "Ġlambda", ":", "Ġ(", "get", "_", "current", "_", "thread", "(),", "Ġget", "_", "current", "_", "green", "let", "())", "ĊĊ", "Ċ", "class", "ĠLocal", "(", "object", "):", "ĊĠĠĠ", "Ġ__", "slots", "__", "Ġ=", "Ġ(\"", "__", "data", "__\",", "Ġ\"__", "lock", "__", "\")", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġobject", ".__", "setattr", "__(", "self", ",", "Ġ\"__", "data", "__\",", "Ġ{})", "ĊĠĠĠĠĠĠĠ", "Ġobject", ".__", "setattr", "__(", "self", ",", "Ġ\"__", "lock", "__\",", "ĠLock", "())", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "iter", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".__", "data", "__.", "iteritems", "()", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "getattr", "__(", "self", ",", "Ġitem", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "lock", "__.", "acquire", "()", "ĊĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".__", "data", "__", "[", "get", "_", "ident", "()", "][", "item", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġexcept", "ĠKeyError", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġraise", "ĠAttributeError", "(", "item", ")", "ĊĠĠĠĠĠĠĠ", "Ġfinally", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".__", "lock", "__.", "release", "()", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "setattr", "__(", "self", ",", "Ġkey", ",", "Ġvalue", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "lock", "__.", "acquire", "()", "ĊĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ_", "id", "Ġ=", "Ġget", "_", "ident", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", "Ġ=", "Ġself", ".__", "data", "__", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġ_", "id", "Ġin", "Ġdata", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", "[_", "id", "][", "key", "]", "Ġ=", "Ġvalue", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", "[_", "id", "]", "Ġ=", "Ġ{", "key", ":", "Ġvalue", "}", "ĊĠĠĠĠĠĠĠ", "Ġfinally", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".__", "lock", "__.", "release", "()", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "del", "attr", "__(", "self", ",", "Ġitem", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "lock", "__.", "acquire", "()", "ĊĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdel", "Ġself", ".__", "data", "__", "[", "get", "_", "ident", "()", "][", "item", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġexcept", "ĠKeyError", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġraise", "ĠAttributeError", "(", "item", ")", "ĊĠĠĠĠĠĠĠ", "Ġfinally", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".__", "lock", "__.", "release", "()", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "release", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "data", "__.", "pop", "(", "get", "_", "ident", "(),", "ĠNone", ")", "ĊĊ", "Ċ", "class", "ĠLocal", "Stack", "(", "object", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "local", "Ġ=", "ĠLocal", "()", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "lock", "Ġ=", "ĠLock", "()", "ĊĊĠĠĠ", "Ġdef", "Ġpush", "(", "self", ",", "Ġobj", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "lock", ".", "acquire", "()", "ĊĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġrv", "Ġ=", "Ġgetattr", "(", "self", "._", "local", ",", "Ġ\"", "stack", "\",", "ĠNone", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġrv", "Ġis", "ĠNone", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", "._", "local", ".", "stack", "Ġ=", "Ġrv", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġrv", ".", "append", "(", "obj", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġrv", "ĊĠĠĠĠĠĠĠ", "Ġfinally", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", "._", "lock", ".", "release", "()", "ĊĊĠĠĠ", "Ġdef", "Ġpop", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "lock", ".", "acquire", "()", "ĊĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġstack", "Ġ=", "Ġgetattr", "(", "self", "._", "local", ",", "Ġ\"", "stack", "\",", "ĠNone", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġstack", "Ġis", "ĠNone", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĠNone", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġlen", "(", "stack", ")", "Ġ==", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", "._", "local", ".__", "release", "__()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġstack", "[-", "1", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġstack", ".", "pop", "()", "ĊĠĠĠĠĠĠĠ", "Ġfinally", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", "._", "lock", ".", "release", "()", "ĊĊĠĠĠ", "Ġ@", "property", "ĊĠĠĠ", "Ġdef", "Ġtop", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", "._", "local", ".", "stack", "[-", "1", "]", "ĊĠĠĠĠĠĠĠ", "Ġexcept", "Ġ(", "Attribute", "Error", ",", "ĠIndexError", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĠNone", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 16, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 62, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 88, 88, 88, 89, 89, 89, 89, 89, 90, 90, 90, 91, 91, 91, 91, 91, 91, 91, 93, 93, 93, 94, 94, 94, 94, 94, 94, 95, 95, 95, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 97, 97, 97, 97, 97, 97, 97, 97, 98, 98, 98 ]
[ 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 4, 5, 4, 9, 15, 18, 25, 29, 36, 39, 43, 44, 51, 52, 57, 60, 1, 7, 19, 20, 4, 8, 9, 16, 17, 22, 25, 27, 31, 1, 1, 5, 12, 19, 23, 24, 29, 32, 36, 37, 44, 45, 51, 1, 5, 15, 22, 27, 1, 1, 3, 7, 8, 15, 16, 21, 24, 27, 31, 32, 33, 35, 39, 46, 4, 8, 9, 14, 16, 20, 21, 28, 29, 35, 1, 5, 6, 7, 9, 13, 19, 22, 4, 8, 9, 14, 16, 23, 24, 26, 29, 30, 37, 38, 44, 47, 51, 52, 59, 60, 65, 68, 71, 1, 1, 6, 12, 13, 19, 21, 4, 7, 12, 14, 16, 19, 21, 25, 29, 33, 37, 39, 41, 4, 8, 11, 15, 18, 22, 24, 8, 15, 18, 25, 28, 32, 33, 37, 41, 45, 49, 8, 15, 18, 25, 28, 32, 33, 37, 41, 45, 50, 53, 4, 8, 11, 15, 18, 22, 24, 8, 15, 20, 23, 27, 30, 39, 41, 4, 8, 11, 18, 21, 25, 26, 31, 33, 8, 13, 16, 20, 23, 30, 32, 8, 12, 13, 12, 16, 17, 16, 23, 28, 31, 35, 37, 38, 41, 42, 47, 49, 51, 55, 56, 12, 19, 28, 29, 16, 22, 37, 38, 42, 43, 8, 16, 17, 12, 17, 20, 24, 27, 34, 36, 4, 8, 11, 18, 21, 25, 26, 30, 31, 37, 39, 8, 13, 16, 20, 23, 30, 32, 8, 12, 13, 12, 14, 16, 18, 22, 23, 28, 30, 12, 17, 19, 24, 27, 31, 33, 12, 15, 17, 19, 22, 27, 28, 16, 21, 23, 25, 27, 30, 31, 33, 39, 12, 17, 18, 16, 21, 23, 25, 26, 28, 30, 33, 34, 40, 41, 8, 16, 17, 12, 17, 20, 24, 27, 34, 36, 4, 8, 11, 14, 18, 21, 25, 26, 31, 33, 8, 13, 16, 20, 23, 30, 32, 8, 12, 13, 12, 16, 17, 16, 20, 25, 28, 32, 34, 35, 38, 39, 44, 46, 48, 52, 53, 12, 19, 28, 29, 16, 22, 37, 38, 42, 43, 8, 16, 17, 12, 17, 20, 24, 27, 34, 36, 4, 8, 11, 18, 21, 25, 27, 8, 13, 16, 20, 23, 26, 27, 30, 31, 36, 39, 44, 45, 1, 1, 6, 12, 17, 18, 24, 26, 4, 8, 11, 15, 18, 22, 24, 8, 13, 15, 20, 22, 28, 30, 8, 13, 15, 19, 21, 26, 28, 4, 8, 13, 14, 18, 19, 23, 25, 8, 13, 15, 19, 20, 27, 29, 8, 12, 13, 12, 15, 17, 25, 26, 30, 32, 37, 38, 40, 45, 47, 52, 53, 12, 15, 18, 21, 26, 27, 16, 21, 23, 28, 29, 34, 36, 39, 41, 44, 12, 15, 16, 22, 23, 26, 27, 12, 19, 22, 8, 16, 17, 12, 17, 19, 23, 24, 31, 33, 4, 8, 12, 13, 17, 19, 8, 13, 15, 19, 20, 27, 29, 8, 12, 13, 12, 18, 20, 28, 29, 33, 35, 40, 41, 43, 48, 50, 55, 56, 12, 15, 21, 24, 29, 30, 16, 23, 28, 12, 17, 21, 22, 27, 28, 31, 32, 33, 34, 16, 21, 23, 28, 31, 38, 42, 16, 23, 29, 31, 32, 33, 12, 17, 18, 16, 22, 23, 26, 28, 8, 16, 17, 12, 17, 19, 23, 24, 31, 33, 4, 6, 14, 4, 8, 12, 13, 17, 19, 8, 12, 13, 12, 19, 24, 26, 31, 32, 37, 39, 40, 41, 8, 15, 17, 26, 31, 32, 43, 45, 12, 19, 24 ]
e864dad3f46fc9c6c472823bd06ce74fb5cb3f41
#!/usr/bin/env python import rospy import cv2 import numpy as np from cv_bridge import CvBridge from matplotlib import pyplot as plt from sensor_msgs.msg import Image from drone_app_msgs.msg import BBox, Drone, DroneArray from rospy.numpy_msg import numpy_msg # --------------------------------------- # This is an implementation of a simple CV # algorithm that can be used for testing # --- Global variables initialization --- pub = None # --------------------------------------- def processFrame(image_message): # --- Convert from ROS to OpenCV frame = CvBridge().imgmsg_to_cv2(image_message) # --- Threshold the image and find a mask frame_hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) mask = cv2.inRange(frame_hsv, (0, 0, 0, 0), (180, 255, 30, 0)) mask = cv2.dilate(mask, None, iterations=1) # --- Find contours in the mask and initialize the current cnts = cv2.findContours(mask.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)[-2] center = None c = max(cnts, key=cv2.contourArea) x, y, w, h = cv2.boundingRect(c) # --- Pack in the message msg = DroneArray() drone = Drone() drone.id = -1 drone.name = "parrot_bebop2" drone.box.t.linear.x = x * 100 / 640 drone.box.t.linear.y = y * 100 / 480 drone.box.w = w * 100 / 640 drone.box.h = h * 100 / 480 msg.drones.append(drone) pub.publish(msg) if __name__ == "__main__": # --- Topics rospy.init_node("gazeboTracking", anonymous=True) rospy.Subscriber("camera_img", Image, processFrame) pub = rospy.Publisher("fixed_drones", DroneArray, queue_size=10) rospy.spin()
[ 8758, 3392, 52, 1793, 52, 2141, 4406, 222, 485, 33746, 222, 485, 6781, 55, 222, 485, 6610, 641, 2115, 222, 1097, 6781, 100, 12157, 1220, 409, 123, 13481, 222, 1097, 13168, 1220, 3643, 3570, 641, 6020, 222, 1097, 11556, 100, 12617, 51, 2093, 1220, 4393, 222, 1097, 9218, 677, 100, 745, 100, 12617, 51, 2093, 1220, 570, 1723, 49, 17454, 677, 49, 17454, 677, 1280, 222, 1097, 33746, 51, 10517, 100, 2093, 1220, 6610, 100, 2093, 222, 222, 40, 13200, 7260, 222, 40, 1369, 458, 619, 4753, 451, 331, 4313, 18185, 222, 40, 8274, 708, 902, 545, 1674, 456, 6351, 222, 40, 5351, 6566, 4918, 13603, 5351, 222, 2879, 299, 1686, 222, 40, 13200, 7260, 499, 222, 610, 2183, 2163, 45, 915, 100, 1454, 731, 303, 607, 5351, 8145, 664, 27897, 391, 43490, 303, 3145, 299, 409, 123, 13481, 941, 1296, 2093, 100, 471, 100, 4167, 55, 45, 915, 100, 1454, 46, 465, 607, 5351, 42638, 341, 1802, 480, 2309, 331, 5967, 303, 3145, 100, 109, 2289, 299, 6781, 55, 51, 34312, 1530, 45, 1763, 49, 6781, 55, 51, 6237, 100, 24567, 55, 77, 6029, 46, 303, 5967, 299, 6781, 55, 51, 285, 3216, 45, 1763, 100, 109, 2289, 49, 327, 53, 49, 244, 53, 49, 244, 53, 49, 244, 53, 490, 327, 54, 61, 53, 49, 244, 55, 58, 58, 49, 244, 56, 53, 49, 244, 53, 509, 303, 5967, 299, 6781, 55, 51, 43406, 351, 45, 3988, 49, 1686, 49, 17700, 66, 54, 46, 465, 607, 5351, 7499, 729, 5273, 347, 341, 5967, 480, 7395, 341, 1565, 303, 14091, 120, 299, 6781, 55, 51, 1828, 653, 5273, 45, 3988, 51, 3014, 1046, 6781, 55, 51, 49086, 100, 14417, 49, 6781, 55, 51, 23392, 100, 35859, 93, 100, 28467, 5630, 50, 55, 98, 303, 4216, 299, 1686, 303, 300, 299, 1788, 45, 7873, 120, 49, 1221, 66, 4167, 55, 51, 34554, 5585, 46, 303, 837, 49, 553, 49, 360, 49, 439, 299, 6781, 55, 51, 28702, 4377, 45, 104, 46, 465, 607, 5351, 14098, 347, 341, 1492, 303, 3141, 299, 17454, 677, 1280, 365, 303, 9218, 677, 299, 17454, 677, 365, 465, 9218, 677, 51, 333, 299, 449, 54, 303, 9218, 677, 51, 444, 299, 332, 587, 5363, 100, 28544, 539, 55, 39, 303, 9218, 677, 51, 1521, 51, 121, 51, 8441, 51, 125, 299, 837, 338, 244, 54, 53, 53, 536, 244, 59, 57, 53, 303, 9218, 677, 51, 1521, 51, 121, 51, 8441, 51, 126, 299, 553, 338, 244, 54, 53, 53, 536, 244, 57, 61, 53, 303, 9218, 677, 51, 1521, 51, 124, 299, 360, 338, 244, 54, 53, 53, 536, 244, 59, 57, 53, 303, 9218, 677, 51, 1521, 51, 109, 299, 439, 338, 244, 54, 53, 53, 536, 244, 57, 61, 53, 465, 3141, 51, 105, 2575, 326, 51, 1713, 45, 40689, 46, 303, 2563, 51, 7226, 45, 2093, 46, 499, 222, 344, 1176, 444, 523, 630, 9609, 1850, 18021, 303, 607, 5351, 9068, 1339, 303, 33746, 51, 1683, 100, 1271, 459, 108, 39545, 15112, 411, 23214, 66, 1844, 46, 303, 33746, 51, 16671, 459, 9002, 100, 1296, 411, 4393, 49, 2183, 2163, 46, 303, 2563, 299, 33746, 51, 16333, 459, 8653, 100, 105, 2575, 326, 411, 17454, 677, 1280, 49, 5535, 100, 911, 66, 54, 53, 46, 465, 33746, 51, 12917, 365, 222 ]
[ "#!/", "usr", "/", "bin", "/", "env", "Ġpython", "Ċ", "import", "Ġrospy", "Ċ", "import", "Ġcv", "2", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "from", "Ġcv", "_", "bridge", "Ġimport", "ĠC", "v", "Bridge", "Ċ", "from", "Ġmatplotlib", "Ġimport", "Ġpy", "plot", "Ġas", "Ġplt", "Ċ", "from", "Ġsensor", "_", "msgs", ".", "msg", "Ġimport", "ĠImage", "Ċ", "from", "Ġdr", "one", "_", "app", "_", "msgs", ".", "msg", "Ġimport", "ĠB", "Box", ",", "ĠDr", "one", ",", "ĠDr", "one", "Array", "Ċ", "from", "Ġrospy", ".", "numpy", "_", "msg", "Ġimport", "Ġnumpy", "_", "msg", "Ċ", "Ċ", "#", "Ġ--------------------------------", "-------", "Ċ", "#", "ĠThis", "Ġis", "Ġan", "Ġimplementation", "Ġof", "Ġa", "Ġsimple", "ĠCV", "Ċ", "#", "Ġalgorithm", "Ġthat", "Ġcan", "Ġbe", "Ġused", "Ġfor", "Ġtesting", "Ċ", "#", "Ġ---", "ĠGlobal", "Ġvariables", "Ġinitialization", "Ġ---", "Ċ", "pub", "Ġ=", "ĠNone", "Ċ", "#", "Ġ--------------------------------", "-------", "ĊĊ", "Ċ", "def", "Ġprocess", "Frame", "(", "image", "_", "message", "):", "ĊĠĠĠ", "Ġ#", "Ġ---", "ĠConvert", "Ġfrom", "ĠROS", "Ġto", "ĠOpenCV", "ĊĠĠĠ", "Ġframe", "Ġ=", "ĠC", "v", "Bridge", "().", "img", "msg", "_", "to", "_", "cv", "2", "(", "image", "_", "message", ")", "ĊĊĠĠĠ", "Ġ#", "Ġ---", "ĠThreshold", "Ġthe", "Ġimage", "Ġand", "Ġfind", "Ġa", "Ġmask", "ĊĠĠĠ", "Ġframe", "_", "h", "sv", "Ġ=", "Ġcv", "2", ".", "cvt", "Color", "(", "frame", ",", "Ġcv", "2", ".", "COLOR", "_", "BGR", "2", "H", "SV", ")", "ĊĠĠĠ", "Ġmask", "Ġ=", "Ġcv", "2", ".", "in", "Range", "(", "frame", "_", "h", "sv", ",", "Ġ(", "0", ",", "Ġ", "0", ",", "Ġ", "0", ",", "Ġ", "0", "),", "Ġ(", "1", "8", "0", ",", "Ġ", "2", "5", "5", ",", "Ġ", "3", "0", ",", "Ġ", "0", "))", "ĊĠĠĠ", "Ġmask", "Ġ=", "Ġcv", "2", ".", "dil", "ate", "(", "mask", ",", "ĠNone", ",", "Ġiterations", "=", "1", ")", "ĊĊĠĠĠ", "Ġ#", "Ġ---", "ĠFind", "Ġcont", "ours", "Ġin", "Ġthe", "Ġmask", "Ġand", "Ġinitialize", "Ġthe", "Ġcurrent", "ĊĠĠĠ", "Ġcnt", "s", "Ġ=", "Ġcv", "2", ".", "find", "Cont", "ours", "(", "mask", ".", "copy", "(),", "Ġcv", "2", ".", "RETR", "_", "EXTERNAL", ",", "Ġcv", "2", ".", "CHAIN", "_", "APPRO", "X", "_", "SIMPLE", ")[", "-", "2", "]", "ĊĠĠĠ", "Ġcenter", "Ġ=", "ĠNone", "ĊĠĠĠ", "Ġc", "Ġ=", "Ġmax", "(", "cnt", "s", ",", "Ġkey", "=", "cv", "2", ".", "contour", "Area", ")", "ĊĠĠĠ", "Ġx", ",", "Ġy", ",", "Ġw", ",", "Ġh", "Ġ=", "Ġcv", "2", ".", "bounding", "Rect", "(", "c", ")", "ĊĊĠĠĠ", "Ġ#", "Ġ---", "ĠPack", "Ġin", "Ġthe", "Ġmessage", "ĊĠĠĠ", "Ġmsg", "Ġ=", "ĠDr", "one", "Array", "()", "ĊĠĠĠ", "Ġdr", "one", "Ġ=", "ĠDr", "one", "()", "ĊĊĠĠĠ", "Ġdr", "one", ".", "id", "Ġ=", "Ġ-", "1", "ĊĠĠĠ", "Ġdr", "one", ".", "name", "Ġ=", "Ġ\"", "par", "rot", "_", "beb", "op", "2", "\"", "ĊĠĠĠ", "Ġdr", "one", ".", "box", ".", "t", ".", "linear", ".", "x", "Ġ=", "Ġx", "Ġ*", "Ġ", "1", "0", "0", "Ġ/", "Ġ", "6", "4", "0", "ĊĠĠĠ", "Ġdr", "one", ".", "box", ".", "t", ".", "linear", ".", "y", "Ġ=", "Ġy", "Ġ*", "Ġ", "1", "0", "0", "Ġ/", "Ġ", "4", "8", "0", "ĊĠĠĠ", "Ġdr", "one", ".", "box", ".", "w", "Ġ=", "Ġw", "Ġ*", "Ġ", "1", "0", "0", "Ġ/", "Ġ", "6", "4", "0", "ĊĠĠĠ", "Ġdr", "one", ".", "box", ".", "h", "Ġ=", "Ġh", "Ġ*", "Ġ", "1", "0", "0", "Ġ/", "Ġ", "4", "8", "0", "ĊĊĠĠĠ", "Ġmsg", ".", "d", "ron", "es", ".", "append", "(", "drone", ")", "ĊĠĠĠ", "Ġpub", ".", "publish", "(", "msg", ")", "ĊĊ", "Ċ", "if", "Ġ__", "name", "__", "Ġ==", "Ġ\"__", "main", "__\":", "ĊĠĠĠ", "Ġ#", "Ġ---", "ĠTop", "ics", "ĊĠĠĠ", "Ġrospy", ".", "init", "_", "node", "(\"", "g", "azebo", "Tracking", "\",", "Ġanonymous", "=", "True", ")", "ĊĠĠĠ", "Ġrospy", ".", "Subscriber", "(\"", "camera", "_", "img", "\",", "ĠImage", ",", "Ġprocess", "Frame", ")", "ĊĠĠĠ", "Ġpub", "Ġ=", "Ġrospy", ".", "Publisher", "(\"", "fixed", "_", "d", "ron", "es", "\",", "ĠDr", "one", "Array", ",", "Ġqueue", "_", "size", "=", "1", "0", ")", "ĊĊĠĠĠ", "Ġrospy", ".", "spin", "()", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 55, 55, 55, 55, 55 ]
[ 1, 4, 7, 8, 11, 12, 15, 22, 1, 7, 13, 1, 7, 10, 11, 1, 7, 13, 16, 19, 1, 5, 8, 9, 15, 22, 24, 25, 31, 1, 5, 16, 23, 26, 30, 33, 37, 1, 5, 12, 13, 17, 18, 21, 28, 34, 1, 5, 8, 11, 12, 15, 16, 20, 21, 24, 31, 33, 36, 37, 40, 43, 44, 47, 50, 55, 1, 5, 11, 12, 17, 18, 21, 28, 34, 35, 38, 1, 1, 2, 35, 42, 1, 2, 7, 10, 13, 28, 31, 33, 40, 43, 1, 2, 12, 17, 21, 24, 29, 33, 41, 1, 2, 6, 13, 23, 38, 42, 1, 4, 6, 11, 1, 2, 35, 42, 1, 1, 4, 12, 17, 18, 23, 24, 31, 33, 4, 6, 10, 18, 23, 27, 30, 37, 4, 10, 12, 14, 15, 21, 24, 27, 30, 31, 33, 34, 36, 37, 38, 43, 44, 51, 52, 4, 6, 10, 20, 24, 30, 34, 39, 41, 46, 4, 10, 11, 12, 14, 16, 19, 20, 21, 24, 29, 30, 35, 36, 39, 40, 41, 46, 47, 50, 51, 52, 54, 55, 4, 9, 11, 14, 15, 16, 18, 23, 24, 29, 30, 31, 33, 34, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 48, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 67, 4, 9, 11, 14, 15, 16, 19, 22, 23, 27, 28, 33, 34, 45, 46, 47, 48, 4, 6, 10, 15, 20, 24, 27, 31, 36, 40, 51, 55, 63, 4, 8, 9, 11, 14, 15, 16, 20, 24, 28, 29, 33, 34, 38, 41, 44, 45, 46, 50, 51, 59, 60, 63, 64, 65, 70, 71, 76, 77, 78, 84, 86, 87, 88, 89, 4, 11, 13, 18, 4, 6, 8, 12, 13, 16, 17, 18, 22, 23, 25, 26, 27, 34, 38, 39, 4, 6, 7, 9, 10, 12, 13, 15, 17, 20, 21, 22, 30, 34, 35, 36, 37, 4, 6, 10, 15, 18, 22, 30, 4, 8, 10, 13, 16, 21, 23, 4, 7, 10, 12, 15, 18, 20, 4, 7, 10, 11, 13, 15, 17, 18, 4, 7, 10, 11, 15, 17, 19, 22, 25, 26, 29, 31, 32, 33, 4, 7, 10, 11, 14, 15, 16, 17, 23, 24, 25, 27, 29, 31, 32, 33, 34, 35, 37, 38, 39, 40, 41, 4, 7, 10, 11, 14, 15, 16, 17, 23, 24, 25, 27, 29, 31, 32, 33, 34, 35, 37, 38, 39, 40, 41, 4, 7, 10, 11, 14, 15, 16, 18, 20, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 4, 7, 10, 11, 14, 15, 16, 18, 20, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 4, 8, 9, 10, 13, 15, 16, 22, 23, 28, 29, 4, 8, 9, 16, 17, 20, 21, 1, 1, 3, 6, 10, 12, 15, 19, 23, 27, 4, 6, 10, 14, 17, 4, 10, 11, 15, 16, 20, 22, 23, 28, 36, 38, 48, 49, 53, 54, 4, 10, 11, 21, 23, 29, 30, 33, 35, 41, 42, 50, 55, 56, 4, 8, 10, 16, 17, 26, 28, 33, 34, 35, 38, 40, 42, 45, 48, 53, 54, 60, 61, 65, 66, 67, 68, 69, 4, 10, 11, 15, 17 ]
f3a63a22f8746d4a1f127bfe9e8c9d822109ab3c
import logging import os import textwrap from urllib.request import urlopen from bs4 import BeautifulSoup from tqdm import tqdm from doc_curation import book_data from doc_curation.md import get_md_with_pandoc from doc_curation.md.file import MdFile from doc_curation.scraping.misc_sites import iitk from doc_curation.scraping.html_scraper import souper from indic_transliteration import sanscript # Remove all handlers associated with the root logger object. for handler in logging.root.handlers[:]: logging.root.removeHandler(handler) logging.basicConfig(level=logging.DEBUG, format="%(levelname)s:%(asctime)s:%(module)s:%(lineno)d %(message)s") unit_info_file = os.path.join(os.path.dirname(book_data.__file__), "data/book_data/raamaayanam/andhra.json") def dump_sarga(url, out_path, sarga_id, dry_run=False): # browser.implicitly_wait(2) page_html = urlopen(url) soup = BeautifulSoup(page_html.read(), "lxml") shloka_tags = soup.select(".views-row") sarga_content = "" for index, shloka_tag in enumerate(tqdm(shloka_tags)): fields = shloka_tag.select(".field-content") if index == 0: sarga_summary = fields[0].contents[0].replace("[", "").replace("]", "") shloka = souper.get_md_paragraph(fields[0].contents[1:]) sarga_content = get_md_with_pandoc(content_in=sarga_summary, source_format="html") else: shloka = souper.get_md_paragraph(fields[0].contents) shloka = shloka.replace(":", "ः") word_meaning = souper.get_md_paragraph(fields[1].contents).replace(":", "ः") shloka_meaning = souper.get_md_paragraph(fields[2].contents) content = textwrap.dedent(""" ## श्लोकः ### मूलम् %s ### शब्दार्थः %s ### आङ्ग्लानुवादः %s """) % (shloka, word_meaning, shloka_meaning) sarga_content = "%s\n\n%s" % (sarga_content, content) md_file = MdFile(file_path=out_path) sarga_content = sarga_content.replace(":", "ः").replace("इत्यार्षे", "\n## समाप्तिः\n") md_file.dump_to_file(metadata={"title": "%03d" % sarga_id}, content=sarga_content, dry_run=dry_run) def dump_all_sargas(base_dir): for kaanda_index in book_data.get_subunit_list(file_path=unit_info_file, unit_path_list=[]): if kaanda_index >= 6: continue sarga_list = book_data.get_subunit_list(file_path=unit_info_file, unit_path_list=[kaanda_index]) for sarga_index in sarga_list: logging.info("Kanda %d Sarga %d", kaanda_index, sarga_index) out_path = os.path.join(base_dir, "%d" % kaanda_index, "%03d.md" % sarga_index) url = "https://www.valmiki.iitk.ac.in/sloka?field_kanda_tid=%d&language=dv&field_sarga_value=%d" % ( kaanda_index, sarga_index, ) dump_sarga(url=url, out_path=out_path, sarga_id=sarga_index) def dump_all_sargas(base_dir): for kaanda_index in book_data.get_subunit_list(file_path=unit_info_file, unit_path_list=[]): if kaanda_index >= 6: continue sarga_list = book_data.get_subunit_list(file_path=unit_info_file, unit_path_list=[kaanda_index]) for sarga_index in sarga_list: logging.info("Kanda %d Sarga %d", kaanda_index, sarga_index) out_path = os.path.join(base_dir, "%d" % kaanda_index, "%03d.md" % sarga_index) url = "https://www.valmiki.iitk.ac.in/sloka?field_kanda_tid=%d&language=dv&field_sarga_value=%d" % ( kaanda_index, sarga_index, ) dump_sarga(url=url, out_path=out_path, sarga_id=sarga_index) def dump_commentary(base_dir, commentary_id): for kaanda_index in book_data.get_subunit_list(file_path=unit_info_file, unit_path_list=[]): if kaanda_index >= 6: continue sarga_list = book_data.get_subunit_list(file_path=unit_info_file, unit_path_list=[kaanda_index]) for sarga_index in sarga_list: logging.info("Kanda %d Sarga %d", kaanda_index, sarga_index) out_path = os.path.join(base_dir, "%d" % kaanda_index, "%03d.md" % sarga_index) url = ( "https://www.valmiki.iitk.ac.in/commentaries?language=dv&field_commnetary_tid=%d&field_kanda_tid=%d&field_sarga_value=%d" % (commentary_id, kaanda_index, sarga_index) ) title_maker = lambda soup, title_prefix: sanscript.transliterate( "%03d" % sarga_index, sanscript.IAST, sanscript.DEVANAGARI ) iitk.dump_item(item_url=url, outfile_path=out_path, title_maker=title_maker) if __name__ == "__main__": pass # dump_all_sargas(base_dir="/home/vvasuki/sanskrit/raw_etexts/purANam/rAmAyaNam/Andhra-pAThaH_iitk/") # aandhra.fix_title_names(base_dir="/home/vvasuki/sanskrit/raw_etexts/purANam/rAmAyaNam/kumbhakona", base_dir_ref="/home/vvasuki/sanskrit/raw_etexts/purANam/rAmAyaNam/goraxapuram/VR_with_errors", dry_run=False) # dump_commentary(base_dir="/home/vvasuki/sanskrit/raw_etexts/purANam/rAmAyaNam/TIkA/bhUShaNa_iitk/", commentary_id=14) # dump_commentary(base_dir="/home/vvasuki/sanskrit/raw_etexts/purANam/rAmAyaNam/TIkA/shiromaNI_iitk/", commentary_id=10) # dump_commentary(base_dir="/home/vvasuki/sanskrit/raw_etexts/purANam/rAmAyaNam/TIkA/tilaka_iitk/", commentary_id=13)
[ 485, 5751, 222, 485, 2355, 222, 485, 1367, 4087, 222, 1097, 22296, 51, 1375, 1220, 13387, 33875, 222, 222, 1097, 14270, 57, 1220, 39693, 222, 1097, 24826, 1220, 24826, 222, 222, 1097, 3714, 100, 104, 1232, 1220, 7638, 100, 624, 222, 1097, 3714, 100, 104, 1232, 51, 973, 1220, 640, 100, 973, 100, 1814, 100, 34219, 561, 222, 1097, 3714, 100, 104, 1232, 51, 973, 51, 781, 1220, 46447, 991, 222, 1097, 3714, 100, 104, 1232, 51, 37903, 318, 51, 14495, 100, 12104, 1220, 613, 36552, 222, 1097, 3714, 100, 104, 1232, 51, 37903, 318, 51, 935, 100, 564, 26877, 1220, 1278, 1924, 222, 1097, 4975, 100, 1568, 113, 19991, 1220, 24069, 1442, 222, 222, 40, 6491, 1187, 15089, 5764, 642, 341, 3070, 4101, 1319, 51, 222, 999, 4908, 347, 5751, 51, 2405, 51, 14453, 2934, 2805, 303, 5751, 51, 2405, 51, 2564, 1985, 45, 4543, 46, 222, 7506, 51, 6404, 1081, 45, 2675, 66, 7506, 51, 2913, 49, 2224, 28664, 45, 2675, 444, 46, 120, 6081, 45, 321, 27760, 46, 120, 6081, 45, 1663, 46, 120, 6081, 45, 12311, 46, 105, 18207, 1454, 46, 120, 678, 222, 222, 2260, 100, 1357, 100, 781, 299, 2355, 51, 1005, 51, 2548, 45, 519, 51, 1005, 51, 7792, 45, 2629, 100, 624, 3688, 781, 36728, 332, 624, 52, 2629, 100, 624, 52, 1709, 4497, 414, 297, 424, 52, 382, 109, 1709, 51, 1279, 678, 499, 222, 610, 10137, 100, 120, 15811, 45, 983, 49, 986, 100, 1005, 49, 328, 15811, 100, 333, 49, 32580, 100, 1967, 66, 2737, 731, 303, 607, 5439, 51, 17719, 651, 100, 1702, 45, 55, 46, 303, 1957, 100, 935, 299, 13387, 33875, 45, 983, 46, 303, 32000, 299, 39693, 45, 1655, 100, 935, 51, 870, 1046, 332, 113, 2608, 678, 303, 807, 335, 3812, 100, 3981, 299, 32000, 51, 1632, 5804, 4361, 50, 661, 678, 303, 328, 15811, 100, 1304, 299, 3347, 303, 456, 1671, 49, 807, 335, 3812, 100, 2159, 347, 10869, 45, 121, 21938, 45, 635, 335, 3812, 100, 3981, 8485, 310, 3844, 299, 807, 335, 3812, 100, 2159, 51, 1632, 5804, 1512, 50, 1304, 678, 310, 434, 1671, 630, 244, 53, 63, 343, 328, 15811, 100, 1386, 299, 3844, 96, 53, 1015, 8089, 96, 53, 1015, 3249, 9669, 411, 32382, 3249, 459, 9177, 7756, 343, 807, 335, 3812, 299, 1278, 1924, 51, 390, 100, 973, 100, 11662, 45, 4169, 96, 53, 1015, 8089, 96, 54, 19927, 343, 328, 15811, 100, 1304, 299, 640, 100, 973, 100, 1814, 100, 34219, 561, 45, 1304, 100, 285, 66, 120, 15811, 100, 1386, 49, 1932, 100, 1664, 366, 935, 678, 310, 832, 63, 343, 807, 335, 3812, 299, 1278, 1924, 51, 390, 100, 973, 100, 11662, 45, 4169, 96, 53, 1015, 8089, 46, 310, 807, 335, 3812, 299, 807, 335, 3812, 51, 3249, 459, 9398, 332, 4980, 249, 678, 310, 3619, 100, 6193, 318, 299, 1278, 1924, 51, 390, 100, 973, 100, 11662, 45, 4169, 96, 54, 1015, 8089, 566, 3249, 459, 9398, 332, 4980, 249, 678, 310, 807, 335, 3812, 100, 6193, 318, 299, 1278, 1924, 51, 390, 100, 973, 100, 11662, 45, 4169, 96, 55, 1015, 8089, 46, 310, 1813, 299, 1367, 4087, 51, 1001, 323, 27355, 310, 5533, 14203, 152, 20933, 47728, 10126, 257, 43295, 4980, 249, 310, 7207, 14203, 144, 10126, 248, 47728, 41332, 20933, 310, 925, 120, 2776, 7207, 14203, 152, 4980, 143, 20933, 4980, 137, 19667, 25167, 20933, 4980, 136, 4980, 249, 310, 925, 120, 2776, 7207, 14203, 252, 4980, 271, 20933, 4980, 269, 20933, 47728, 19667, 35899, 48226, 4980, 151, 19667, 4980, 137, 4980, 249, 310, 925, 120, 310, 3347, 678, 925, 327, 635, 335, 3812, 49, 3619, 100, 6193, 318, 49, 807, 335, 3812, 100, 6193, 318, 46, 310, 328, 15811, 100, 1304, 299, 5471, 120, 97, 115, 97, 115, 42, 120, 39, 925, 327, 120, 15811, 100, 1304, 49, 1813, 46, 303, 8745, 100, 781, 299, 46447, 991, 45, 781, 100, 1005, 66, 560, 100, 1005, 46, 303, 328, 15811, 100, 1304, 299, 328, 15811, 100, 1304, 51, 3249, 459, 9398, 332, 4980, 249, 1912, 3249, 459, 4980, 253, 37399, 20933, 44806, 19667, 25167, 20933, 4980, 153, 32865, 411, 2724, 115, 452, 14203, 154, 41332, 19667, 4980, 141, 20933, 37399, 38449, 4980, 249, 97, 115, 678, 303, 8745, 100, 781, 51, 5955, 100, 471, 100, 781, 45, 4541, 8492, 1333, 582, 5471, 53, 56, 105, 39, 925, 328, 15811, 100, 333, 855, 1813, 66, 120, 15811, 100, 1304, 49, 32580, 100, 1967, 66, 24222, 100, 1967, 46, 499, 222, 610, 10137, 100, 483, 100, 120, 645, 321, 45, 1460, 100, 1537, 731, 303, 456, 24334, 16932, 100, 1076, 347, 7638, 100, 624, 51, 390, 100, 1133, 2260, 100, 687, 45, 781, 100, 1005, 66, 2260, 100, 1357, 100, 781, 49, 4220, 100, 1005, 100, 687, 19928, 731, 310, 434, 24334, 16932, 100, 1076, 2394, 244, 59, 63, 343, 4056, 310, 328, 15811, 100, 687, 299, 7638, 100, 624, 51, 390, 100, 1133, 2260, 100, 687, 45, 781, 100, 1005, 66, 2260, 100, 1357, 100, 781, 49, 4220, 100, 1005, 100, 687, 6094, 3812, 16932, 100, 1076, 1156, 310, 456, 328, 15811, 100, 1076, 347, 328, 15811, 100, 687, 63, 343, 5751, 51, 1357, 459, 80, 16932, 925, 105, 377, 15811, 925, 105, 411, 24334, 16932, 100, 1076, 49, 328, 15811, 100, 1076, 46, 343, 986, 100, 1005, 299, 2355, 51, 1005, 51, 2548, 45, 1460, 100, 1537, 49, 5471, 105, 39, 925, 24334, 16932, 100, 1076, 49, 5471, 53, 56, 105, 51, 973, 39, 925, 328, 15811, 100, 1076, 46, 343, 2001, 299, 332, 662, 574, 1516, 51, 718, 114, 10142, 51, 110, 36552, 51, 348, 51, 285, 52, 47642, 3812, 68, 1512, 100, 112, 16932, 100, 12376, 6142, 105, 43, 4210, 66, 8698, 43, 1512, 100, 120, 15811, 100, 872, 6142, 105, 39, 925, 327, 419, 24334, 16932, 100, 1076, 49, 419, 328, 15811, 100, 1076, 49, 343, 848, 343, 10137, 100, 120, 15811, 45, 983, 66, 983, 49, 986, 100, 1005, 66, 560, 100, 1005, 49, 328, 15811, 100, 333, 66, 120, 15811, 100, 1076, 46, 499, 222, 610, 10137, 100, 483, 100, 120, 645, 321, 45, 1460, 100, 1537, 731, 303, 456, 24334, 16932, 100, 1076, 347, 7638, 100, 624, 51, 390, 100, 1133, 2260, 100, 687, 45, 781, 100, 1005, 66, 2260, 100, 1357, 100, 781, 49, 4220, 100, 1005, 100, 687, 19928, 731, 310, 434, 24334, 16932, 100, 1076, 2394, 244, 59, 63, 343, 4056, 310, 328, 15811, 100, 687, 299, 7638, 100, 624, 51, 390, 100, 1133, 2260, 100, 687, 45, 781, 100, 1005, 66, 2260, 100, 1357, 100, 781, 49, 4220, 100, 1005, 100, 687, 6094, 3812, 16932, 100, 1076, 1156, 310, 456, 328, 15811, 100, 1076, 347, 328, 15811, 100, 687, 63, 343, 5751, 51, 1357, 459, 80, 16932, 925, 105, 377, 15811, 925, 105, 411, 24334, 16932, 100, 1076, 49, 328, 15811, 100, 1076, 46, 343, 986, 100, 1005, 299, 2355, 51, 1005, 51, 2548, 45, 1460, 100, 1537, 49, 5471, 105, 39, 925, 24334, 16932, 100, 1076, 49, 5471, 53, 56, 105, 51, 973, 39, 925, 328, 15811, 100, 1076, 46, 343, 2001, 299, 332, 662, 574, 1516, 51, 718, 114, 10142, 51, 110, 36552, 51, 348, 51, 285, 52, 47642, 3812, 68, 1512, 100, 112, 16932, 100, 12376, 6142, 105, 43, 4210, 66, 8698, 43, 1512, 100, 120, 15811, 100, 872, 6142, 105, 39, 925, 327, 419, 24334, 16932, 100, 1076, 49, 419, 328, 15811, 100, 1076, 49, 343, 848, 343, 10137, 100, 120, 15811, 45, 983, 66, 983, 49, 986, 100, 1005, 66, 560, 100, 1005, 49, 328, 15811, 100, 333, 66, 120, 15811, 100, 1076, 46, 499, 222, 610, 10137, 100, 3666, 692, 45, 1460, 100, 1537, 49, 5101, 692, 100, 333, 731, 303, 456, 24334, 16932, 100, 1076, 347, 7638, 100, 624, 51, 390, 100, 1133, 2260, 100, 687, 45, 781, 100, 1005, 66, 2260, 100, 1357, 100, 781, 49, 4220, 100, 1005, 100, 687, 19928, 731, 310, 434, 24334, 16932, 100, 1076, 2394, 244, 59, 63, 343, 4056, 310, 328, 15811, 100, 687, 299, 7638, 100, 624, 51, 390, 100, 1133, 2260, 100, 687, 45, 781, 100, 1005, 66, 2260, 100, 1357, 100, 781, 49, 4220, 100, 1005, 100, 687, 6094, 3812, 16932, 100, 1076, 1156, 310, 456, 328, 15811, 100, 1076, 347, 328, 15811, 100, 687, 63, 343, 5751, 51, 1357, 459, 80, 16932, 925, 105, 377, 15811, 925, 105, 411, 24334, 16932, 100, 1076, 49, 328, 15811, 100, 1076, 46, 343, 986, 100, 1005, 299, 2355, 51, 1005, 51, 2548, 45, 1460, 100, 1537, 49, 5471, 105, 39, 925, 24334, 16932, 100, 1076, 49, 5471, 53, 56, 105, 51, 973, 39, 925, 328, 15811, 100, 1076, 46, 343, 2001, 299, 327, 419, 332, 662, 574, 1516, 51, 718, 114, 10142, 51, 110, 36552, 51, 348, 51, 285, 52, 3666, 5299, 68, 4210, 66, 8698, 43, 1512, 100, 4870, 1317, 692, 100, 12376, 6142, 105, 43, 1512, 100, 112, 16932, 100, 12376, 6142, 105, 43, 1512, 100, 120, 15811, 100, 872, 6142, 105, 39, 419, 925, 327, 3666, 692, 100, 333, 49, 24334, 16932, 100, 1076, 49, 328, 15811, 100, 1076, 46, 343, 848, 343, 1799, 100, 25844, 299, 9332, 32000, 49, 1799, 100, 4271, 63, 24069, 1442, 51, 1568, 113, 24844, 45, 419, 5471, 53, 56, 105, 39, 925, 328, 15811, 100, 1076, 49, 24069, 1442, 51, 78, 4392, 49, 24069, 1442, 51, 10456, 946, 1631, 42386, 343, 848, 343, 613, 36552, 51, 5955, 100, 1113, 45, 1113, 100, 983, 66, 983, 49, 29040, 100, 1005, 66, 560, 100, 1005, 49, 1799, 100, 25844, 66, 1333, 100, 25844, 46, 499, 222, 344, 1176, 444, 523, 630, 9609, 1850, 18021, 303, 3119, 303, 607, 10137, 100, 483, 100, 120, 645, 321, 45, 1460, 100, 1537, 3799, 2849, 52, 123, 3552, 32428, 52, 22895, 112, 1204, 52, 1312, 100, 383, 426, 120, 52, 12880, 946, 424, 52, 119, 12889, 29404, 8385, 424, 52, 2199, 109, 1709, 50, 117, 741, 4958, 77, 100, 110, 36552, 29701, 303, 607, 331, 382, 109, 1709, 51, 3315, 100, 1333, 100, 4288, 45, 1460, 100, 1537, 3799, 2849, 52, 123, 3552, 32428, 52, 22895, 112, 1204, 52, 1312, 100, 383, 426, 120, 52, 12880, 946, 424, 52, 119, 12889, 29404, 8385, 424, 52, 112, 3345, 43380, 17198, 411, 1712, 100, 1537, 100, 631, 3799, 2849, 52, 123, 3552, 32428, 52, 22895, 112, 1204, 52, 1312, 100, 383, 426, 120, 52, 12880, 946, 424, 52, 119, 12889, 29404, 8385, 424, 52, 3426, 668, 386, 324, 424, 52, 9279, 100, 1814, 100, 4312, 411, 32580, 100, 1967, 66, 2737, 46, 303, 607, 10137, 100, 3666, 692, 45, 1460, 100, 1537, 3799, 2849, 52, 123, 3552, 32428, 52, 22895, 112, 1204, 52, 1312, 100, 383, 426, 120, 52, 12880, 946, 424, 52, 119, 12889, 29404, 8385, 424, 52, 1944, 112, 70, 52, 18680, 90, 1207, 8385, 102, 100, 110, 36552, 10974, 5101, 692, 100, 333, 66, 54, 57, 46, 303, 607, 10137, 100, 3666, 692, 45, 1460, 100, 1537, 3799, 2849, 52, 123, 3552, 32428, 52, 22895, 112, 1204, 52, 1312, 100, 383, 426, 120, 52, 12880, 946, 424, 52, 119, 12889, 29404, 8385, 424, 52, 1944, 112, 70, 52, 34597, 515, 8385, 78, 100, 110, 36552, 10974, 5101, 692, 100, 333, 66, 54, 53, 46, 303, 607, 10137, 100, 3666, 692, 45, 1460, 100, 1537, 3799, 2849, 52, 123, 3552, 32428, 52, 22895, 112, 1204, 52, 1312, 100, 383, 426, 120, 52, 12880, 946, 424, 52, 119, 12889, 29404, 8385, 424, 52, 1944, 112, 70, 52, 1574, 13994, 100, 110, 36552, 10974, 5101, 692, 100, 333, 66, 54, 56, 46, 222 ]
[ "import", "Ġlogging", "Ċ", "import", "Ġos", "Ċ", "import", "Ġtext", "wrap", "Ċ", "from", "Ġurllib", ".", "request", "Ġimport", "Ġur", "lopen", "Ċ", "Ċ", "from", "Ġbs", "4", "Ġimport", "ĠBeautifulSoup", "Ċ", "from", "Ġtqdm", "Ġimport", "Ġtqdm", "Ċ", "Ċ", "from", "Ġdoc", "_", "c", "uration", "Ġimport", "Ġbook", "_", "data", "Ċ", "from", "Ġdoc", "_", "c", "uration", ".", "md", "Ġimport", "Ġget", "_", "md", "_", "with", "_", "pand", "oc", "Ċ", "from", "Ġdoc", "_", "c", "uration", ".", "md", ".", "file", "Ġimport", "ĠMd", "File", "Ċ", "from", "Ġdoc", "_", "c", "uration", ".", "scrap", "ing", ".", "misc", "_", "sites", "Ġimport", "Ġi", "itk", "Ċ", "from", "Ġdoc", "_", "c", "uration", ".", "scrap", "ing", ".", "html", "_", "sc", "raper", "Ġimport", "Ġso", "uper", "Ċ", "from", "Ġindic", "_", "trans", "l", "iteration", "Ġimport", "Ġsan", "script", "Ċ", "Ċ", "#", "ĠRemove", "Ġall", "Ġhandlers", "Ġassociated", "Ġwith", "Ġthe", "Ġroot", "Ġlogger", "Ġobject", ".", "Ċ", "for", "Ġhandler", "Ġin", "Ġlogging", ".", "root", ".", "handlers", "[:", "]:", "ĊĠĠĠ", "Ġlogging", ".", "root", ".", "remove", "Handler", "(", "handler", ")", "Ċ", "logging", ".", "basic", "Config", "(", "level", "=", "logging", ".", "DEBUG", ",", "Ġformat", "=\"%", "(", "level", "name", ")", "s", ":%", "(", "as", "ctime", ")", "s", ":%", "(", "module", ")", "s", ":%", "(", "lineno", ")", "d", "Ġ%(", "message", ")", "s", "\")", "Ċ", "Ċ", "unit", "_", "info", "_", "file", "Ġ=", "Ġos", ".", "path", ".", "join", "(", "os", ".", "path", ".", "dirname", "(", "book", "_", "data", ".__", "file", "__),", "Ġ\"", "data", "/", "book", "_", "data", "/", "ra", "ama", "ay", "an", "am", "/", "and", "h", "ra", ".", "json", "\")", "ĊĊ", "Ċ", "def", "Ġdump", "_", "s", "arga", "(", "url", ",", "Ġout", "_", "path", ",", "Ġs", "arga", "_", "id", ",", "Ġdry", "_", "run", "=", "False", "):", "ĊĠĠĠ", "Ġ#", "Ġbrowser", ".", "implicit", "ly", "_", "wait", "(", "2", ")", "ĊĠĠĠ", "Ġpage", "_", "html", "Ġ=", "Ġur", "lopen", "(", "url", ")", "ĊĠĠĠ", "Ġsoup", "Ġ=", "ĠBeautifulSoup", "(", "page", "_", "html", ".", "read", "(),", "Ġ\"", "l", "xml", "\")", "ĊĠĠĠ", "Ġsh", "lo", "ka", "_", "tags", "Ġ=", "Ġsoup", ".", "select", "(\".", "views", "-", "row", "\")", "ĊĠĠĠ", "Ġs", "arga", "_", "content", "Ġ=", "Ġ\"\"", "ĊĠĠĠ", "Ġfor", "Ġindex", ",", "Ġsh", "lo", "ka", "_", "tag", "Ġin", "Ġenumerate", "(", "t", "qdm", "(", "sh", "lo", "ka", "_", "tags", ")):", "ĊĠĠĠĠĠĠĠ", "Ġfields", "Ġ=", "Ġsh", "lo", "ka", "_", "tag", ".", "select", "(\".", "field", "-", "content", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġindex", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġs", "arga", "_", "summary", "Ġ=", "Ġfields", "[", "0", "].", "contents", "[", "0", "].", "replace", "(\"[", "\",", "Ġ\"\").", "replace", "(\"", "]\",", "Ġ\"\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsh", "lo", "ka", "Ġ=", "Ġso", "uper", ".", "get", "_", "md", "_", "paragraph", "(", "fields", "[", "0", "].", "contents", "[", "1", ":])", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġs", "arga", "_", "content", "Ġ=", "Ġget", "_", "md", "_", "with", "_", "pand", "oc", "(", "content", "_", "in", "=", "s", "arga", "_", "summary", ",", "Ġsource", "_", "format", "=\"", "html", "\")", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsh", "lo", "ka", "Ġ=", "Ġso", "uper", ".", "get", "_", "md", "_", "paragraph", "(", "fields", "[", "0", "].", "contents", ")", "ĊĠĠĠĠĠĠĠ", "Ġsh", "lo", "ka", "Ġ=", "Ġsh", "lo", "ka", ".", "replace", "(\"", ":\",", "Ġ\"", "à¤", "ĥ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġword", "_", "mean", "ing", "Ġ=", "Ġso", "uper", ".", "get", "_", "md", "_", "paragraph", "(", "fields", "[", "1", "].", "contents", ").", "replace", "(\"", ":\",", "Ġ\"", "à¤", "ĥ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġsh", "lo", "ka", "_", "mean", "ing", "Ġ=", "Ġso", "uper", ".", "get", "_", "md", "_", "paragraph", "(", "fields", "[", "2", "].", "contents", ")", "ĊĠĠĠĠĠĠĠ", "Ġcontent", "Ġ=", "Ġtext", "wrap", ".", "ded", "ent", "(\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġ##", "Ġà¤", "¶", "à¥į", "ल", "à¥", "ĭ", "à¤ķ", "à¤", "ĥ", "ĊĠĠĠĠĠĠĠ", "Ġ###", "Ġà¤", "®", "à¥", "Ĥ", "ल", "म", "à¥į", "ĊĠĠĠĠĠĠĠ", "Ġ%", "s", "ĊĠĠĠĠĠĠĠĠĊĠĠĠĠĠĠĠ", "Ġ###", "Ġà¤", "¶", "à¤", "¬", "à¥į", "à¤", "¦", "ा", "र", "à¥į", "à¤", "¥", "à¤", "ĥ", "ĊĠĠĠĠĠĠĠ", "Ġ%", "s", "ĊĠĠĠĠĠĠĠĠĊĠĠĠĠĠĠĠ", "Ġ###", "Ġà¤", "Ĩ", "à¤", "Ļ", "à¥į", "à¤", "Ĺ", "à¥į", "ल", "ा", "न", "à¥ģ", "à¤", "µ", "ा", "à¤", "¦", "à¤", "ĥ", "ĊĠĠĠĠĠĠĠ", "Ġ%", "s", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"", "\")", "Ġ%", "Ġ(", "sh", "lo", "ka", ",", "Ġword", "_", "mean", "ing", ",", "Ġsh", "lo", "ka", "_", "mean", "ing", ")", "ĊĠĠĠĠĠĠĠ", "Ġs", "arga", "_", "content", "Ġ=", "Ġ\"%", "s", "\\", "n", "\\", "n", "%", "s", "\"", "Ġ%", "Ġ(", "s", "arga", "_", "content", ",", "Ġcontent", ")", "ĊĠĠĠ", "Ġmd", "_", "file", "Ġ=", "ĠMd", "File", "(", "file", "_", "path", "=", "out", "_", "path", ")", "ĊĠĠĠ", "Ġs", "arga", "_", "content", "Ġ=", "Ġs", "arga", "_", "content", ".", "replace", "(\"", ":\",", "Ġ\"", "à¤", "ĥ", "\").", "replace", "(\"", "à¤", "ĩ", "त", "à¥į", "य", "ा", "र", "à¥į", "à¤", "·", "à¥ĩ", "\",", "Ġ\"\\", "n", "##", "Ġà¤", "¸", "म", "ा", "à¤", "ª", "à¥į", "त", "ि", "à¤", "ĥ", "\\", "n", "\")", "ĊĠĠĠ", "Ġmd", "_", "file", ".", "dump", "_", "to", "_", "file", "(", "metadata", "={\"", "title", "\":", "Ġ\"%", "0", "3", "d", "\"", "Ġ%", "Ġs", "arga", "_", "id", "},", "Ġcontent", "=", "s", "arga", "_", "content", ",", "Ġdry", "_", "run", "=", "dry", "_", "run", ")", "ĊĊ", "Ċ", "def", "Ġdump", "_", "all", "_", "s", "arg", "as", "(", "base", "_", "dir", "):", "ĊĠĠĠ", "Ġfor", "Ġka", "anda", "_", "index", "Ġin", "Ġbook", "_", "data", ".", "get", "_", "sub", "unit", "_", "list", "(", "file", "_", "path", "=", "unit", "_", "info", "_", "file", ",", "Ġunit", "_", "path", "_", "list", "=[]", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġka", "anda", "_", "index", "Ġ>=", "Ġ", "6", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontinue", "ĊĠĠĠĠĠĠĠ", "Ġs", "arga", "_", "list", "Ġ=", "Ġbook", "_", "data", ".", "get", "_", "sub", "unit", "_", "list", "(", "file", "_", "path", "=", "unit", "_", "info", "_", "file", ",", "Ġunit", "_", "path", "_", "list", "=[", "ka", "anda", "_", "index", "])", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġs", "arga", "_", "index", "Ġin", "Ġs", "arga", "_", "list", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlogging", ".", "info", "(\"", "K", "anda", "Ġ%", "d", "ĠS", "arga", "Ġ%", "d", "\",", "Ġka", "anda", "_", "index", ",", "Ġs", "arga", "_", "index", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġout", "_", "path", "Ġ=", "Ġos", ".", "path", ".", "join", "(", "base", "_", "dir", ",", "Ġ\"%", "d", "\"", "Ġ%", "Ġka", "anda", "_", "index", ",", "Ġ\"%", "0", "3", "d", ".", "md", "\"", "Ġ%", "Ġs", "arga", "_", "index", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġurl", "Ġ=", "Ġ\"", "https", "://", "www", ".", "val", "m", "iki", ".", "i", "itk", ".", "ac", ".", "in", "/", "slo", "ka", "?", "field", "_", "k", "anda", "_", "tid", "=%", "d", "&", "language", "=", "dv", "&", "field", "_", "s", "arga", "_", "value", "=%", "d", "\"", "Ġ%", "Ġ(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġka", "anda", "_", "index", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġs", "arga", "_", "index", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdump", "_", "s", "arga", "(", "url", "=", "url", ",", "Ġout", "_", "path", "=", "out", "_", "path", ",", "Ġs", "arga", "_", "id", "=", "s", "arga", "_", "index", ")", "ĊĊ", "Ċ", "def", "Ġdump", "_", "all", "_", "s", "arg", "as", "(", "base", "_", "dir", "):", "ĊĠĠĠ", "Ġfor", "Ġka", "anda", "_", "index", "Ġin", "Ġbook", "_", "data", ".", "get", "_", "sub", "unit", "_", "list", "(", "file", "_", "path", "=", "unit", "_", "info", "_", "file", ",", "Ġunit", "_", "path", "_", "list", "=[]", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġka", "anda", "_", "index", "Ġ>=", "Ġ", "6", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontinue", "ĊĠĠĠĠĠĠĠ", "Ġs", "arga", "_", "list", "Ġ=", "Ġbook", "_", "data", ".", "get", "_", "sub", "unit", "_", "list", "(", "file", "_", "path", "=", "unit", "_", "info", "_", "file", ",", "Ġunit", "_", "path", "_", "list", "=[", "ka", "anda", "_", "index", "])", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġs", "arga", "_", "index", "Ġin", "Ġs", "arga", "_", "list", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlogging", ".", "info", "(\"", "K", "anda", "Ġ%", "d", "ĠS", "arga", "Ġ%", "d", "\",", "Ġka", "anda", "_", "index", ",", "Ġs", "arga", "_", "index", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġout", "_", "path", "Ġ=", "Ġos", ".", "path", ".", "join", "(", "base", "_", "dir", ",", "Ġ\"%", "d", "\"", "Ġ%", "Ġka", "anda", "_", "index", ",", "Ġ\"%", "0", "3", "d", ".", "md", "\"", "Ġ%", "Ġs", "arga", "_", "index", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġurl", "Ġ=", "Ġ\"", "https", "://", "www", ".", "val", "m", "iki", ".", "i", "itk", ".", "ac", ".", "in", "/", "slo", "ka", "?", "field", "_", "k", "anda", "_", "tid", "=%", "d", "&", "language", "=", "dv", "&", "field", "_", "s", "arga", "_", "value", "=%", "d", "\"", "Ġ%", "Ġ(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġka", "anda", "_", "index", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġs", "arga", "_", "index", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdump", "_", "s", "arga", "(", "url", "=", "url", ",", "Ġout", "_", "path", "=", "out", "_", "path", ",", "Ġs", "arga", "_", "id", "=", "s", "arga", "_", "index", ")", "ĊĊ", "Ċ", "def", "Ġdump", "_", "comment", "ary", "(", "base", "_", "dir", ",", "Ġcomment", "ary", "_", "id", "):", "ĊĠĠĠ", "Ġfor", "Ġka", "anda", "_", "index", "Ġin", "Ġbook", "_", "data", ".", "get", "_", "sub", "unit", "_", "list", "(", "file", "_", "path", "=", "unit", "_", "info", "_", "file", ",", "Ġunit", "_", "path", "_", "list", "=[]", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġka", "anda", "_", "index", "Ġ>=", "Ġ", "6", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontinue", "ĊĠĠĠĠĠĠĠ", "Ġs", "arga", "_", "list", "Ġ=", "Ġbook", "_", "data", ".", "get", "_", "sub", "unit", "_", "list", "(", "file", "_", "path", "=", "unit", "_", "info", "_", "file", ",", "Ġunit", "_", "path", "_", "list", "=[", "ka", "anda", "_", "index", "])", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġs", "arga", "_", "index", "Ġin", "Ġs", "arga", "_", "list", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlogging", ".", "info", "(\"", "K", "anda", "Ġ%", "d", "ĠS", "arga", "Ġ%", "d", "\",", "Ġka", "anda", "_", "index", ",", "Ġs", "arga", "_", "index", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġout", "_", "path", "Ġ=", "Ġos", ".", "path", ".", "join", "(", "base", "_", "dir", ",", "Ġ\"%", "d", "\"", "Ġ%", "Ġka", "anda", "_", "index", ",", "Ġ\"%", "0", "3", "d", ".", "md", "\"", "Ġ%", "Ġs", "arga", "_", "index", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġurl", "Ġ=", "Ġ(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "https", "://", "www", ".", "val", "m", "iki", ".", "i", "itk", ".", "ac", ".", "in", "/", "comment", "aries", "?", "language", "=", "dv", "&", "field", "_", "comm", "net", "ary", "_", "tid", "=%", "d", "&", "field", "_", "k", "anda", "_", "tid", "=%", "d", "&", "field", "_", "s", "arga", "_", "value", "=%", "d", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ%", "Ġ(", "comment", "ary", "_", "id", ",", "Ġka", "anda", "_", "index", ",", "Ġs", "arga", "_", "index", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtitle", "_", "maker", "Ġ=", "Ġlambda", "Ġsoup", ",", "Ġtitle", "_", "prefix", ":", "Ġsan", "script", ".", "trans", "l", "iterate", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"%", "0", "3", "d", "\"", "Ġ%", "Ġs", "arga", "_", "index", ",", "Ġsan", "script", ".", "I", "AST", ",", "Ġsan", "script", ".", "DEV", "AN", "AG", "ARI", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġi", "itk", ".", "dump", "_", "item", "(", "item", "_", "url", "=", "url", ",", "Ġoutfile", "_", "path", "=", "out", "_", "path", ",", "Ġtitle", "_", "maker", "=", "title", "_", "maker", ")", "ĊĊ", "Ċ", "if", "Ġ__", "name", "__", "Ġ==", "Ġ\"__", "main", "__\":", "ĊĠĠĠ", "Ġpass", "ĊĠĠĠ", "Ġ#", "Ġdump", "_", "all", "_", "s", "arg", "as", "(", "base", "_", "dir", "=\"/", "home", "/", "v", "vas", "uki", "/", "sans", "k", "rit", "/", "raw", "_", "et", "ext", "s", "/", "pur", "AN", "am", "/", "r", "Am", "Ay", "aN", "am", "/", "And", "h", "ra", "-", "p", "AT", "ha", "H", "_", "i", "itk", "/\")", "ĊĠĠĠ", "Ġ#", "Ġa", "and", "h", "ra", ".", "fix", "_", "title", "_", "names", "(", "base", "_", "dir", "=\"/", "home", "/", "v", "vas", "uki", "/", "sans", "k", "rit", "/", "raw", "_", "et", "ext", "s", "/", "pur", "AN", "am", "/", "r", "Am", "Ay", "aN", "am", "/", "k", "umb", "hak", "ona", "\",", "Ġbase", "_", "dir", "_", "ref", "=\"/", "home", "/", "v", "vas", "uki", "/", "sans", "k", "rit", "/", "raw", "_", "et", "ext", "s", "/", "pur", "AN", "am", "/", "r", "Am", "Ay", "aN", "am", "/", "gor", "ax", "ap", "ur", "am", "/", "VR", "_", "with", "_", "errors", "\",", "Ġdry", "_", "run", "=", "False", ")", "ĊĠĠĠ", "Ġ#", "Ġdump", "_", "comment", "ary", "(", "base", "_", "dir", "=\"/", "home", "/", "v", "vas", "uki", "/", "sans", "k", "rit", "/", "raw", "_", "et", "ext", "s", "/", "pur", "AN", "am", "/", "r", "Am", "Ay", "aN", "am", "/", "TI", "k", "A", "/", "bh", "U", "Sh", "aN", "a", "_", "i", "itk", "/\",", "Ġcomment", "ary", "_", "id", "=", "1", "4", ")", "ĊĠĠĠ", "Ġ#", "Ġdump", "_", "comment", "ary", "(", "base", "_", "dir", "=\"/", "home", "/", "v", "vas", "uki", "/", "sans", "k", "rit", "/", "raw", "_", "et", "ext", "s", "/", "pur", "AN", "am", "/", "r", "Am", "Ay", "aN", "am", "/", "TI", "k", "A", "/", "shi", "rom", "aN", "I", "_", "i", "itk", "/\",", "Ġcomment", "ary", "_", "id", "=", "1", "0", ")", "ĊĠĠĠ", "Ġ#", "Ġdump", "_", "comment", "ary", "(", "base", "_", "dir", "=\"/", "home", "/", "v", "vas", "uki", "/", "sans", "k", "rit", "/", "raw", "_", "et", "ext", "s", "/", "pur", "AN", "am", "/", "r", "Am", "Ay", "aN", "am", "/", "TI", "k", "A", "/", "til", "aka", "_", "i", "itk", "/\",", "Ġcomment", "ary", "_", "id", "=", "1", "3", ")", "Ċ" ]
[ 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 87, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 102, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 105, 106, 106, 106, 106, 106, 106, 106, 106, 106, 107, 107, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112 ]
[ 1, 7, 15, 1, 7, 10, 1, 7, 12, 16, 1, 5, 12, 13, 20, 27, 30, 35, 1, 1, 5, 8, 9, 16, 30, 1, 5, 10, 17, 22, 1, 1, 5, 9, 10, 11, 18, 25, 30, 31, 35, 1, 5, 9, 10, 11, 18, 19, 21, 28, 32, 33, 35, 36, 40, 41, 45, 47, 1, 5, 9, 10, 11, 18, 19, 21, 22, 26, 33, 36, 40, 1, 5, 9, 10, 11, 18, 19, 24, 27, 28, 32, 33, 38, 45, 47, 50, 1, 5, 9, 10, 11, 18, 19, 24, 27, 28, 32, 33, 35, 40, 47, 50, 54, 1, 5, 11, 12, 17, 18, 27, 34, 38, 44, 1, 1, 2, 9, 13, 22, 33, 38, 42, 47, 54, 61, 62, 1, 4, 12, 15, 23, 24, 28, 29, 37, 39, 41, 4, 12, 13, 17, 18, 24, 31, 32, 39, 40, 1, 8, 9, 14, 20, 21, 26, 27, 34, 35, 40, 41, 48, 51, 52, 57, 61, 62, 63, 65, 66, 68, 73, 74, 75, 77, 78, 84, 85, 86, 88, 89, 95, 96, 97, 100, 107, 108, 109, 111, 1, 1, 5, 6, 10, 11, 15, 17, 20, 21, 25, 26, 30, 31, 33, 34, 38, 39, 46, 47, 51, 52, 56, 59, 63, 67, 69, 73, 74, 78, 79, 83, 84, 86, 89, 91, 93, 95, 96, 99, 100, 102, 103, 107, 109, 1, 1, 4, 9, 10, 11, 15, 16, 19, 20, 24, 25, 29, 30, 32, 36, 37, 39, 40, 44, 45, 48, 49, 54, 56, 4, 6, 14, 15, 23, 25, 26, 30, 31, 32, 33, 4, 9, 10, 14, 16, 19, 24, 25, 28, 29, 4, 9, 11, 25, 26, 30, 31, 35, 36, 40, 43, 45, 46, 49, 51, 4, 7, 9, 11, 12, 16, 18, 23, 24, 30, 33, 38, 39, 42, 44, 4, 6, 10, 11, 18, 20, 23, 4, 8, 14, 15, 18, 20, 22, 23, 26, 29, 39, 40, 41, 44, 45, 47, 49, 51, 52, 56, 59, 8, 15, 17, 20, 22, 24, 25, 28, 29, 35, 38, 43, 44, 51, 53, 8, 11, 17, 20, 21, 22, 23, 12, 14, 18, 19, 26, 28, 35, 36, 37, 39, 47, 48, 49, 51, 58, 61, 63, 68, 75, 77, 80, 84, 12, 15, 17, 19, 21, 24, 28, 29, 32, 33, 35, 36, 45, 46, 52, 53, 54, 56, 64, 65, 66, 69, 12, 14, 18, 19, 26, 28, 32, 33, 35, 36, 40, 41, 45, 47, 48, 55, 56, 58, 59, 60, 64, 65, 72, 73, 80, 81, 87, 89, 93, 95, 8, 13, 14, 12, 15, 17, 19, 21, 24, 28, 29, 32, 33, 35, 36, 45, 46, 52, 53, 54, 56, 64, 65, 8, 11, 13, 15, 17, 20, 22, 24, 25, 32, 34, 37, 39, 39, 40, 42, 8, 13, 14, 18, 21, 23, 26, 30, 31, 34, 35, 37, 38, 47, 48, 54, 55, 56, 58, 66, 68, 75, 77, 80, 82, 82, 83, 85, 8, 11, 13, 15, 16, 20, 23, 25, 28, 32, 33, 36, 37, 39, 40, 49, 50, 56, 57, 58, 60, 68, 69, 8, 16, 18, 23, 27, 28, 31, 34, 38, 8, 11, 12, 13, 14, 15, 15, 16, 17, 17, 18, 8, 12, 13, 14, 14, 15, 16, 17, 18, 8, 10, 11, 8, 12, 13, 14, 14, 15, 16, 16, 17, 18, 19, 20, 20, 21, 21, 22, 8, 10, 11, 8, 12, 13, 14, 14, 15, 16, 16, 17, 18, 19, 20, 21, 22, 22, 23, 24, 24, 25, 25, 26, 8, 10, 11, 8, 11, 13, 15, 17, 19, 21, 23, 24, 29, 30, 34, 37, 38, 41, 43, 45, 46, 50, 53, 54, 8, 10, 14, 15, 22, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 37, 39, 40, 44, 45, 52, 53, 61, 62, 4, 7, 8, 12, 14, 17, 21, 22, 26, 27, 31, 32, 35, 36, 40, 41, 4, 6, 10, 11, 18, 20, 22, 26, 27, 34, 35, 42, 44, 47, 49, 49, 50, 53, 60, 62, 62, 63, 64, 65, 66, 67, 68, 69, 69, 70, 71, 73, 76, 77, 79, 80, 81, 82, 83, 83, 84, 85, 86, 87, 87, 88, 89, 90, 92, 4, 7, 8, 12, 13, 17, 18, 20, 21, 25, 26, 34, 37, 42, 44, 47, 48, 49, 50, 51, 53, 55, 59, 60, 62, 64, 72, 73, 74, 78, 79, 86, 87, 91, 92, 95, 96, 99, 100, 103, 104, 1, 1, 4, 9, 10, 13, 14, 15, 18, 20, 21, 25, 26, 29, 31, 4, 8, 11, 15, 16, 21, 24, 29, 30, 34, 35, 38, 39, 42, 46, 47, 51, 52, 56, 57, 61, 62, 66, 67, 71, 72, 76, 77, 82, 83, 87, 88, 92, 95, 97, 8, 11, 14, 18, 19, 24, 27, 28, 29, 30, 12, 21, 8, 10, 14, 15, 19, 21, 26, 27, 31, 32, 35, 36, 39, 43, 44, 48, 49, 53, 54, 58, 59, 63, 64, 68, 69, 73, 74, 79, 80, 84, 85, 89, 91, 93, 97, 98, 103, 105, 8, 12, 14, 18, 19, 24, 27, 29, 33, 34, 38, 39, 12, 20, 21, 25, 27, 28, 32, 34, 35, 37, 41, 43, 44, 46, 49, 53, 54, 59, 60, 62, 66, 67, 72, 73, 12, 16, 17, 21, 23, 26, 27, 31, 32, 36, 37, 41, 42, 45, 46, 49, 50, 51, 53, 56, 60, 61, 66, 67, 70, 71, 72, 73, 74, 76, 77, 79, 81, 85, 86, 91, 92, 12, 16, 18, 20, 25, 28, 31, 32, 35, 36, 39, 40, 41, 44, 45, 47, 48, 50, 51, 54, 56, 57, 62, 63, 64, 68, 69, 72, 74, 75, 76, 84, 85, 87, 88, 93, 94, 95, 99, 100, 105, 107, 108, 109, 111, 113, 16, 19, 23, 24, 29, 30, 16, 18, 22, 23, 28, 29, 12, 14, 12, 17, 18, 19, 23, 24, 27, 28, 31, 32, 36, 37, 41, 42, 45, 46, 50, 51, 53, 57, 58, 60, 61, 62, 66, 67, 72, 73, 1, 1, 4, 9, 10, 13, 14, 15, 18, 20, 21, 25, 26, 29, 31, 4, 8, 11, 15, 16, 21, 24, 29, 30, 34, 35, 38, 39, 42, 46, 47, 51, 52, 56, 57, 61, 62, 66, 67, 71, 72, 76, 77, 82, 83, 87, 88, 92, 95, 97, 8, 11, 14, 18, 19, 24, 27, 28, 29, 30, 12, 21, 8, 10, 14, 15, 19, 21, 26, 27, 31, 32, 35, 36, 39, 43, 44, 48, 49, 53, 54, 58, 59, 63, 64, 68, 69, 73, 74, 79, 80, 84, 85, 89, 91, 93, 97, 98, 103, 105, 8, 12, 14, 18, 19, 24, 27, 29, 33, 34, 38, 39, 12, 20, 21, 25, 27, 28, 32, 34, 35, 37, 41, 43, 44, 46, 49, 53, 54, 59, 60, 62, 66, 67, 72, 73, 12, 16, 17, 21, 23, 26, 27, 31, 32, 36, 37, 41, 42, 45, 46, 49, 50, 51, 53, 56, 60, 61, 66, 67, 70, 71, 72, 73, 74, 76, 77, 79, 81, 85, 86, 91, 92, 12, 16, 18, 20, 25, 28, 31, 32, 35, 36, 39, 40, 41, 44, 45, 47, 48, 50, 51, 54, 56, 57, 62, 63, 64, 68, 69, 72, 74, 75, 76, 84, 85, 87, 88, 93, 94, 95, 99, 100, 105, 107, 108, 109, 111, 113, 16, 19, 23, 24, 29, 30, 16, 18, 22, 23, 28, 29, 12, 14, 12, 17, 18, 19, 23, 24, 27, 28, 31, 32, 36, 37, 41, 42, 45, 46, 50, 51, 53, 57, 58, 60, 61, 62, 66, 67, 72, 73, 1, 1, 4, 9, 10, 17, 20, 21, 25, 26, 29, 30, 38, 41, 42, 44, 46, 4, 8, 11, 15, 16, 21, 24, 29, 30, 34, 35, 38, 39, 42, 46, 47, 51, 52, 56, 57, 61, 62, 66, 67, 71, 72, 76, 77, 82, 83, 87, 88, 92, 95, 97, 8, 11, 14, 18, 19, 24, 27, 28, 29, 30, 12, 21, 8, 10, 14, 15, 19, 21, 26, 27, 31, 32, 35, 36, 39, 43, 44, 48, 49, 53, 54, 58, 59, 63, 64, 68, 69, 73, 74, 79, 80, 84, 85, 89, 91, 93, 97, 98, 103, 105, 8, 12, 14, 18, 19, 24, 27, 29, 33, 34, 38, 39, 12, 20, 21, 25, 27, 28, 32, 34, 35, 37, 41, 43, 44, 46, 49, 53, 54, 59, 60, 62, 66, 67, 72, 73, 12, 16, 17, 21, 23, 26, 27, 31, 32, 36, 37, 41, 42, 45, 46, 49, 50, 51, 53, 56, 60, 61, 66, 67, 70, 71, 72, 73, 74, 76, 77, 79, 81, 85, 86, 91, 92, 12, 16, 18, 20, 16, 18, 23, 26, 29, 30, 33, 34, 37, 38, 39, 42, 43, 45, 46, 48, 49, 56, 61, 62, 70, 71, 73, 74, 79, 80, 84, 87, 90, 91, 94, 96, 97, 98, 103, 104, 105, 109, 110, 113, 115, 116, 117, 122, 123, 124, 128, 129, 134, 136, 137, 138, 16, 18, 20, 27, 30, 31, 33, 34, 37, 41, 42, 47, 48, 50, 54, 55, 60, 61, 12, 14, 12, 18, 19, 24, 26, 33, 38, 39, 45, 46, 52, 53, 57, 63, 64, 69, 70, 77, 78, 16, 19, 20, 21, 22, 23, 25, 27, 31, 32, 37, 38, 42, 48, 49, 50, 53, 54, 58, 64, 65, 68, 70, 72, 75, 12, 14, 12, 14, 17, 18, 22, 23, 27, 28, 32, 33, 36, 37, 40, 41, 49, 50, 54, 55, 58, 59, 63, 64, 70, 71, 76, 77, 82, 83, 88, 89, 1, 1, 3, 6, 10, 12, 15, 19, 23, 27, 4, 9, 4, 6, 11, 12, 15, 16, 17, 20, 22, 23, 27, 28, 31, 34, 38, 39, 40, 43, 46, 47, 51, 52, 55, 56, 59, 60, 62, 65, 66, 67, 70, 72, 74, 75, 76, 78, 80, 82, 84, 85, 88, 89, 91, 92, 93, 95, 97, 98, 99, 100, 103, 106, 4, 6, 8, 11, 12, 14, 15, 18, 19, 24, 25, 30, 31, 35, 36, 39, 42, 46, 47, 48, 51, 54, 55, 59, 60, 63, 64, 67, 68, 70, 73, 74, 75, 78, 80, 82, 83, 84, 86, 88, 90, 92, 93, 94, 97, 100, 103, 105, 110, 111, 114, 115, 118, 121, 125, 126, 127, 130, 133, 134, 138, 139, 142, 143, 146, 147, 149, 152, 153, 154, 157, 159, 161, 162, 163, 165, 167, 169, 171, 172, 175, 177, 179, 181, 183, 184, 186, 187, 191, 192, 198, 200, 204, 205, 208, 209, 214, 215, 4, 6, 11, 12, 19, 22, 23, 27, 28, 31, 34, 38, 39, 40, 43, 46, 47, 51, 52, 55, 56, 59, 60, 62, 65, 66, 67, 70, 72, 74, 75, 76, 78, 80, 82, 84, 85, 87, 88, 89, 90, 92, 93, 95, 97, 98, 99, 100, 103, 106, 114, 117, 118, 120, 121, 122, 123, 124, 4, 6, 11, 12, 19, 22, 23, 27, 28, 31, 34, 38, 39, 40, 43, 46, 47, 51, 52, 55, 56, 59, 60, 62, 65, 66, 67, 70, 72, 74, 75, 76, 78, 80, 82, 84, 85, 87, 88, 89, 90, 93, 96, 98, 99, 100, 101, 104, 107, 115, 118, 119, 121, 122, 123, 124, 125, 4, 6, 11, 12, 19, 22, 23, 27, 28, 31, 34, 38, 39, 40, 43, 46, 47, 51, 52, 55, 56, 59, 60, 62, 65, 66, 67, 70, 72, 74, 75, 76, 78, 80, 82, 84, 85, 87, 88, 89, 90, 93, 96, 97, 98, 101, 104, 112, 115, 116, 118, 119, 120, 121, 122 ]
90bb70b0a97c7872c8581a176ebacc50df8e1f72
import datetime def year_choices(): return [(r, r) for r in range(1984, datetime.date.today().year + 1)] def current_year(): return datetime.date.today().year
[ 485, 7181, 499, 222, 610, 4970, 100, 19878, 2284, 303, 461, 10474, 119, 49, 559, 46, 456, 559, 347, 2189, 45, 54, 62, 61, 57, 49, 7181, 51, 787, 51, 16029, 941, 4614, 494, 244, 54, 2201, 499, 222, 610, 1565, 100, 4614, 2284, 303, 461, 7181, 51, 787, 51, 16029, 941, 4614, 222 ]
[ "import", "Ġdatetime", "ĊĊ", "Ċ", "def", "Ġyear", "_", "choices", "():", "ĊĠĠĠ", "Ġreturn", "Ġ[(", "r", ",", "Ġr", ")", "Ġfor", "Ġr", "Ġin", "Ġrange", "(", "1", "9", "8", "4", ",", "Ġdatetime", ".", "date", ".", "today", "().", "year", "Ġ+", "Ġ", "1", ")]", "ĊĊ", "Ċ", "def", "Ġcurrent", "_", "year", "():", "ĊĠĠĠ", "Ġreturn", "Ġdatetime", ".", "date", ".", "today", "().", "year", "Ċ" ]
[ 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9 ]
[ 1, 7, 16, 1, 1, 4, 9, 10, 17, 20, 4, 11, 14, 15, 16, 18, 19, 23, 25, 28, 34, 35, 36, 37, 38, 39, 40, 49, 50, 54, 55, 60, 63, 67, 69, 70, 71, 73, 1, 1, 4, 12, 13, 17, 20, 4, 11, 20, 21, 25, 26, 31, 34, 38 ]
d1b2420778e788d78be2a12a27c80f5fa1b15a0f
import functools import re from pprint import pprint def heading(*, marker=""): """ Add a new line with the same number of heading markers as the characters in the title Need to specify marker to one of the valid rst line markups """ def wrapper_heading(func): @functools.wraps(func) def wrapper(*args, **kwargs): title = func(*args, **kwargs) ( class_obj, passed_title, ) = args title = title.strip() return f"\n{title}\n{marker * len(title)}\n" if passed_title.strip() != title else passed_title return wrapper return wrapper_heading def code_pre_block(func): """ formats a code block according to rst format """ @functools.wraps(func) def wrapper(*args, **kwargs): block = func(*args, **kwargs) new_block = "\n.. code-block::\n\n" for line in block.split("\n"): new_block += f" {line}\n" return new_block return wrapper def source_block(func): """ formats code from <source lang="some_language"> blocks where the language is optional """ @functools.wraps(func) def wrapper(*args, **kwargs): lang, block = func(*args, **kwargs) new_block = f"\n\n.. code-block:: {lang or ''}\n\n" for line in block.split("\n"): new_block += f" {line}\n" return new_block return wrapper def list_block(func): @functools.wraps(func) def wrapper(*args, **kwargs): items = func(*args, **kwargs) new_list = "\n" prev_indent = 0 sub_list_started = False for line in items.split("\n"): num_markers = get_num_markers(line) # how many # there are indent_by = (num_markers - 1) * 2 # no indentation for first level def get_printable_part(string): """ trim out up to a colon or semi-colon after a # list marker """ return ( string[num_markers + 1 :].strip() if string[num_markers] in [":", ";", "*"] else string[num_markers:].strip() ) # if # is followed by ; or :, it is a continuation of the previous list item # this can just be indented if line[num_markers] == "*": # bullet list item if not sub_list_started: new_list += f"\n{' ' * num_markers * 2}* {get_printable_part(line)}\n" sub_list_started = True else: new_list += f"{' ' * num_markers * 2}* {get_printable_part(line)}\n" continue sub_list_started = False if line[num_markers] in [":", ";"]: line = f"{' ' * num_markers * 2}{get_printable_part(line)}" else: line = f"{' ' * indent_by}* {get_printable_part(line)}" if indent_by != prev_indent: # starting a new level or going back to old level line = f"\n{line}" # new level starts a new line prev_indent = indent_by new_list += f"{line}\n" return new_list return wrapper def get_num_markers(string): indent_by = 0 for i in range(len(string)): if string[i] == "#": indent_by += 1 else: break return indent_by @list_block def list_block_converter(match_group): return match_group.group(1) @code_pre_block def code_pre_block_converter(match_group): return match_group.group(2) @source_block def source_block_converter(match_group): """ formats a code block from <source lang="some_language"> the language part is optional """ return (match_group.group(1), match_group.group(2)) if __name__ == "__main__": pass
[ 485, 35383, 222, 485, 334, 222, 1097, 25852, 1220, 25852, 499, 222, 610, 19335, 2761, 49, 10091, 366, 10320, 303, 1547, 303, 2242, 331, 556, 1646, 642, 341, 2454, 1470, 451, 19335, 24303, 641, 341, 7152, 347, 341, 1799, 303, 17377, 391, 6405, 10091, 391, 1611, 451, 341, 2101, 34667, 1646, 3658, 9026, 303, 1547, 465, 684, 7780, 100, 7124, 45, 1316, 731, 310, 496, 6409, 307, 7570, 51, 4087, 120, 45, 1316, 46, 310, 684, 7780, 2761, 1150, 49, 1137, 5350, 731, 343, 1799, 299, 3439, 2761, 1150, 49, 1137, 5350, 46, 343, 327, 419, 462, 100, 2085, 49, 419, 5424, 100, 1333, 49, 343, 848, 299, 2194, 343, 1799, 299, 1799, 51, 7237, 365, 343, 461, 315, 7660, 115, 128, 1333, 4127, 115, 128, 8581, 338, 2095, 45, 1333, 47536, 115, 39, 434, 5424, 100, 1333, 51, 7237, 365, 882, 1799, 832, 5424, 100, 1333, 603, 461, 7780, 465, 461, 7780, 100, 7124, 499, 222, 610, 1361, 100, 1023, 100, 1540, 45, 1316, 731, 303, 1547, 303, 15488, 331, 1361, 2181, 9299, 391, 34667, 2224, 303, 1547, 465, 496, 6409, 307, 7570, 51, 4087, 120, 45, 1316, 46, 303, 684, 7780, 2761, 1150, 49, 1137, 5350, 731, 310, 2181, 299, 3439, 2761, 1150, 49, 1137, 5350, 46, 310, 556, 100, 1540, 299, 2724, 115, 516, 1361, 50, 1540, 422, 97, 115, 97, 115, 39, 310, 456, 1646, 347, 2181, 51, 3045, 5564, 115, 10320, 343, 556, 100, 1540, 1475, 315, 39, 283, 320, 948, 4127, 115, 39, 310, 461, 556, 100, 1540, 465, 461, 7780, 499, 222, 610, 1932, 100, 1540, 45, 1316, 731, 303, 1547, 303, 15488, 1361, 664, 350, 1876, 7285, 366, 6074, 100, 4210, 432, 9072, 303, 2174, 341, 2940, 458, 5316, 303, 1547, 465, 496, 6409, 307, 7570, 51, 4087, 120, 45, 1316, 46, 303, 684, 7780, 2761, 1150, 49, 1137, 5350, 731, 310, 7285, 49, 2181, 299, 3439, 2761, 1150, 49, 1137, 5350, 46, 310, 556, 100, 1540, 299, 315, 7660, 115, 97, 115, 516, 1361, 50, 1540, 422, 320, 1600, 575, 4267, 4127, 115, 97, 115, 39, 310, 456, 1646, 347, 2181, 51, 3045, 5564, 115, 10320, 343, 556, 100, 1540, 1475, 315, 39, 283, 320, 948, 4127, 115, 39, 310, 461, 556, 100, 1540, 465, 461, 7780, 499, 222, 610, 1168, 100, 1540, 45, 1316, 731, 303, 496, 6409, 307, 7570, 51, 4087, 120, 45, 1316, 46, 303, 684, 7780, 2761, 1150, 49, 1137, 5350, 731, 310, 3966, 299, 3439, 2761, 1150, 49, 1137, 5350, 46, 310, 556, 100, 687, 299, 2724, 115, 39, 310, 7329, 100, 9383, 299, 244, 53, 310, 1381, 100, 687, 100, 9782, 299, 3208, 310, 456, 1646, 347, 3966, 51, 3045, 5564, 115, 10320, 343, 1952, 100, 25258, 299, 640, 100, 1538, 100, 25258, 45, 948, 46, 244, 607, 2650, 5110, 607, 2038, 904, 343, 10549, 100, 1186, 299, 327, 1538, 100, 25258, 449, 244, 54, 46, 338, 244, 55, 244, 607, 1307, 33174, 456, 1950, 3215, 1083, 684, 640, 100, 1243, 463, 100, 2068, 45, 819, 731, 419, 1547, 419, 11770, 986, 992, 391, 331, 24904, 575, 32932, 50, 30896, 2703, 331, 607, 1168, 10091, 419, 1547, 419, 461, 327, 547, 821, 96, 1538, 100, 25258, 494, 244, 54, 518, 1015, 7237, 365, 547, 434, 821, 96, 1538, 100, 25258, 98, 347, 447, 582, 411, 7216, 411, 11577, 1465, 547, 832, 821, 96, 1538, 100, 25258, 63, 1015, 7237, 365, 419, 848, 1083, 607, 434, 607, 458, 14637, 829, 2098, 575, 21537, 580, 458, 331, 30882, 451, 341, 4575, 1168, 1641, 343, 607, 477, 902, 2277, 545, 10549, 337, 343, 434, 1646, 96, 1538, 100, 25258, 98, 630, 11577, 582, 244, 607, 26265, 1168, 1641, 419, 434, 666, 1381, 100, 687, 100, 9782, 63, 547, 556, 100, 687, 1475, 315, 7660, 115, 12164, 349, 338, 1952, 100, 25258, 338, 244, 55, 130, 47, 320, 390, 100, 1243, 463, 100, 2068, 45, 948, 47536, 115, 39, 547, 1381, 100, 687, 100, 9782, 299, 2969, 419, 832, 63, 547, 556, 100, 687, 1475, 315, 9633, 44, 349, 338, 1952, 100, 25258, 338, 244, 55, 130, 47, 320, 390, 100, 1243, 463, 100, 2068, 45, 948, 47536, 115, 39, 419, 4056, 343, 1381, 100, 687, 100, 9782, 299, 3208, 343, 434, 1646, 96, 1538, 100, 25258, 98, 347, 447, 582, 411, 7216, 18277, 419, 1646, 299, 315, 9633, 44, 349, 338, 1952, 100, 25258, 338, 244, 55, 3474, 390, 100, 1243, 463, 100, 2068, 45, 948, 48833, 343, 832, 63, 419, 1646, 299, 315, 9633, 44, 349, 338, 10549, 100, 1186, 130, 47, 320, 390, 100, 1243, 463, 100, 2068, 45, 948, 48833, 343, 434, 10549, 100, 1186, 882, 7329, 100, 9383, 63, 244, 607, 8074, 331, 556, 3215, 575, 6808, 1769, 391, 3627, 3215, 419, 1646, 299, 315, 7660, 115, 128, 948, 3864, 244, 607, 556, 3215, 11214, 331, 556, 1646, 419, 7329, 100, 9383, 299, 10549, 100, 1186, 343, 556, 100, 687, 1475, 315, 9633, 948, 4127, 115, 39, 310, 461, 556, 100, 687, 465, 461, 7780, 499, 222, 610, 640, 100, 1538, 100, 25258, 45, 819, 731, 303, 10549, 100, 1186, 299, 244, 53, 303, 456, 613, 347, 2189, 45, 1688, 45, 819, 8485, 310, 434, 821, 96, 110, 98, 630, 5126, 582, 343, 10549, 100, 1186, 1475, 244, 54, 310, 832, 63, 343, 1644, 303, 461, 10549, 100, 1186, 499, 222, 69, 687, 100, 1540, 222, 610, 1168, 100, 1540, 100, 13967, 45, 2892, 100, 1382, 731, 303, 461, 2549, 100, 1382, 51, 1382, 45, 54, 46, 499, 222, 69, 707, 100, 1023, 100, 1540, 222, 610, 1361, 100, 1023, 100, 1540, 100, 13967, 45, 2892, 100, 1382, 731, 303, 461, 2549, 100, 1382, 51, 1382, 45, 55, 46, 499, 222, 69, 1876, 100, 1540, 222, 610, 1932, 100, 1540, 100, 13967, 45, 2892, 100, 1382, 731, 303, 1547, 303, 15488, 331, 1361, 2181, 664, 350, 1876, 7285, 366, 6074, 100, 4210, 432, 303, 341, 2940, 1760, 458, 5316, 303, 1547, 303, 461, 327, 2892, 100, 1382, 51, 1382, 45, 54, 490, 2549, 100, 1382, 51, 1382, 45, 55, 509, 499, 222, 344, 1176, 444, 523, 630, 9609, 1850, 18021, 303, 3119, 222 ]
[ "import", "Ġfunctools", "Ċ", "import", "Ġre", "Ċ", "from", "Ġpprint", "Ġimport", "Ġpprint", "ĊĊ", "Ċ", "def", "Ġheading", "(*", ",", "Ġmarker", "=\"", "\"):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "ĠAdd", "Ġa", "Ġnew", "Ġline", "Ġwith", "Ġthe", "Ġsame", "Ġnumber", "Ġof", "Ġheading", "Ġmarkers", "Ġas", "Ġthe", "Ġcharacters", "Ġin", "Ġthe", "Ġtitle", "ĊĠĠĠ", "ĠNeed", "Ġto", "Ġspecify", "Ġmarker", "Ġto", "Ġone", "Ġof", "Ġthe", "Ġvalid", "Ġrst", "Ġline", "Ġmark", "ups", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠ", "Ġdef", "Ġwrapper", "_", "heading", "(", "func", "):", "ĊĠĠĠĠĠĠĠ", "Ġ@", "fun", "ct", "ools", ".", "wrap", "s", "(", "func", ")", "ĊĠĠĠĠĠĠĠ", "Ġdef", "Ġwrapper", "(*", "args", ",", "Ġ**", "kwargs", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtitle", "Ġ=", "Ġfunc", "(*", "args", ",", "Ġ**", "kwargs", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġclass", "_", "obj", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġpassed", "_", "title", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "Ġ=", "Ġargs", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtitle", "Ġ=", "Ġtitle", ".", "strip", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġf", "\"\\", "n", "{", "title", "}\\", "n", "{", "marker", "Ġ*", "Ġlen", "(", "title", ")}\\", "n", "\"", "Ġif", "Ġpassed", "_", "title", ".", "strip", "()", "Ġ!=", "Ġtitle", "Ġelse", "Ġpassed", "_", "title", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġwrapper", "ĊĊĠĠĠ", "Ġreturn", "Ġwrapper", "_", "heading", "ĊĊ", "Ċ", "def", "Ġcode", "_", "pre", "_", "block", "(", "func", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġformats", "Ġa", "Ġcode", "Ġblock", "Ġaccording", "Ġto", "Ġrst", "Ġformat", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠ", "Ġ@", "fun", "ct", "ools", ".", "wrap", "s", "(", "func", ")", "ĊĠĠĠ", "Ġdef", "Ġwrapper", "(*", "args", ",", "Ġ**", "kwargs", "):", "ĊĠĠĠĠĠĠĠ", "Ġblock", "Ġ=", "Ġfunc", "(*", "args", ",", "Ġ**", "kwargs", ")", "ĊĠĠĠĠĠĠĠ", "Ġnew", "_", "block", "Ġ=", "Ġ\"\\", "n", "..", "Ġcode", "-", "block", "::", "\\", "n", "\\", "n", "\"", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġline", "Ġin", "Ġblock", ".", "split", "(\"\\", "n", "\"):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġnew", "_", "block", "Ġ+=", "Ġf", "\"", "ĠĠĠ", "Ġ{", "line", "}\\", "n", "\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġnew", "_", "block", "ĊĊĠĠĠ", "Ġreturn", "Ġwrapper", "ĊĊ", "Ċ", "def", "Ġsource", "_", "block", "(", "func", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġformats", "Ġcode", "Ġfrom", "Ġ<", "source", "Ġlang", "=\"", "some", "_", "language", "\">", "Ġblocks", "ĊĠĠĠ", "Ġwhere", "Ġthe", "Ġlanguage", "Ġis", "Ġoptional", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠ", "Ġ@", "fun", "ct", "ools", ".", "wrap", "s", "(", "func", ")", "ĊĠĠĠ", "Ġdef", "Ġwrapper", "(*", "args", ",", "Ġ**", "kwargs", "):", "ĊĠĠĠĠĠĠĠ", "Ġlang", ",", "Ġblock", "Ġ=", "Ġfunc", "(*", "args", ",", "Ġ**", "kwargs", ")", "ĊĠĠĠĠĠĠĠ", "Ġnew", "_", "block", "Ġ=", "Ġf", "\"\\", "n", "\\", "n", "..", "Ġcode", "-", "block", "::", "Ġ{", "lang", "Ġor", "Ġ''", "}\\", "n", "\\", "n", "\"", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġline", "Ġin", "Ġblock", ".", "split", "(\"\\", "n", "\"):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġnew", "_", "block", "Ġ+=", "Ġf", "\"", "ĠĠĠ", "Ġ{", "line", "}\\", "n", "\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġnew", "_", "block", "ĊĊĠĠĠ", "Ġreturn", "Ġwrapper", "ĊĊ", "Ċ", "def", "Ġlist", "_", "block", "(", "func", "):", "ĊĠĠĠ", "Ġ@", "fun", "ct", "ools", ".", "wrap", "s", "(", "func", ")", "ĊĠĠĠ", "Ġdef", "Ġwrapper", "(*", "args", ",", "Ġ**", "kwargs", "):", "ĊĠĠĠĠĠĠĠ", "Ġitems", "Ġ=", "Ġfunc", "(*", "args", ",", "Ġ**", "kwargs", ")", "ĊĠĠĠĠĠĠĠ", "Ġnew", "_", "list", "Ġ=", "Ġ\"\\", "n", "\"", "ĊĠĠĠĠĠĠĠ", "Ġprev", "_", "indent", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġsub", "_", "list", "_", "started", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġline", "Ġin", "Ġitems", ".", "split", "(\"\\", "n", "\"):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġnum", "_", "markers", "Ġ=", "Ġget", "_", "num", "_", "markers", "(", "line", ")", "Ġ", "Ġ#", "Ġhow", "Ġmany", "Ġ#", "Ġthere", "Ġare", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġindent", "_", "by", "Ġ=", "Ġ(", "num", "_", "markers", "Ġ-", "Ġ", "1", ")", "Ġ*", "Ġ", "2", "Ġ", "Ġ#", "Ġno", "Ġindentation", "Ġfor", "Ġfirst", "Ġlevel", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdef", "Ġget", "_", "print", "able", "_", "part", "(", "string", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtrim", "Ġout", "Ġup", "Ġto", "Ġa", "Ġcolon", "Ġor", "Ġsemi", "-", "colon", "Ġafter", "Ġa", "Ġ#", "Ġlist", "Ġmarker", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġstring", "[", "num", "_", "markers", "Ġ+", "Ġ", "1", "Ġ:", "].", "strip", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġstring", "[", "num", "_", "markers", "]", "Ġin", "Ġ[", "\":", "\",", "Ġ\";", "\",", "Ġ\"*", "\"]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", "Ġstring", "[", "num", "_", "markers", ":", "].", "strip", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġif", "Ġ#", "Ġis", "Ġfollowed", "Ġby", "Ġ;", "Ġor", "Ġ:,", "Ġit", "Ġis", "Ġa", "Ġcontinuation", "Ġof", "Ġthe", "Ġprevious", "Ġlist", "Ġitem", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġthis", "Ġcan", "Ġjust", "Ġbe", "Ġindent", "ed", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġline", "[", "num", "_", "markers", "]", "Ġ==", "Ġ\"*", "\":", "Ġ", "Ġ#", "Ġbullet", "Ġlist", "Ġitem", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġnot", "Ġsub", "_", "list", "_", "started", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġnew", "_", "list", "Ġ+=", "Ġf", "\"\\", "n", "{'", "Ġ'", "Ġ*", "Ġnum", "_", "markers", "Ġ*", "Ġ", "2", "}", "*", "Ġ{", "get", "_", "print", "able", "_", "part", "(", "line", ")}\\", "n", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġsub", "_", "list", "_", "started", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġnew", "_", "list", "Ġ+=", "Ġf", "\"{", "'", "Ġ'", "Ġ*", "Ġnum", "_", "markers", "Ġ*", "Ġ", "2", "}", "*", "Ġ{", "get", "_", "print", "able", "_", "part", "(", "line", ")}\\", "n", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontinue", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsub", "_", "list", "_", "started", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġline", "[", "num", "_", "markers", "]", "Ġin", "Ġ[", "\":", "\",", "Ġ\";", "\"]:", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġline", "Ġ=", "Ġf", "\"{", "'", "Ġ'", "Ġ*", "Ġnum", "_", "markers", "Ġ*", "Ġ", "2", "}{", "get", "_", "print", "able", "_", "part", "(", "line", ")}\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġline", "Ġ=", "Ġf", "\"{", "'", "Ġ'", "Ġ*", "Ġindent", "_", "by", "}", "*", "Ġ{", "get", "_", "print", "able", "_", "part", "(", "line", ")}\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġindent", "_", "by", "Ġ!=", "Ġprev", "_", "indent", ":", "Ġ", "Ġ#", "Ġstarting", "Ġa", "Ġnew", "Ġlevel", "Ġor", "Ġgoing", "Ġback", "Ġto", "Ġold", "Ġlevel", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġline", "Ġ=", "Ġf", "\"\\", "n", "{", "line", "}\"", "Ġ", "Ġ#", "Ġnew", "Ġlevel", "Ġstarts", "Ġa", "Ġnew", "Ġline", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġprev", "_", "indent", "Ġ=", "Ġindent", "_", "by", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġnew", "_", "list", "Ġ+=", "Ġf", "\"{", "line", "}\\", "n", "\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġnew", "_", "list", "ĊĊĠĠĠ", "Ġreturn", "Ġwrapper", "ĊĊ", "Ċ", "def", "Ġget", "_", "num", "_", "markers", "(", "string", "):", "ĊĠĠĠ", "Ġindent", "_", "by", "Ġ=", "Ġ", "0", "ĊĠĠĠ", "Ġfor", "Ġi", "Ġin", "Ġrange", "(", "len", "(", "string", ")):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġstring", "[", "i", "]", "Ġ==", "Ġ\"#", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġindent", "_", "by", "Ġ+=", "Ġ", "1", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġbreak", "ĊĠĠĠ", "Ġreturn", "Ġindent", "_", "by", "ĊĊ", "Ċ", "@", "list", "_", "block", "Ċ", "def", "Ġlist", "_", "block", "_", "converter", "(", "match", "_", "group", "):", "ĊĠĠĠ", "Ġreturn", "Ġmatch", "_", "group", ".", "group", "(", "1", ")", "ĊĊ", "Ċ", "@", "code", "_", "pre", "_", "block", "Ċ", "def", "Ġcode", "_", "pre", "_", "block", "_", "converter", "(", "match", "_", "group", "):", "ĊĠĠĠ", "Ġreturn", "Ġmatch", "_", "group", ".", "group", "(", "2", ")", "ĊĊ", "Ċ", "@", "source", "_", "block", "Ċ", "def", "Ġsource", "_", "block", "_", "converter", "(", "match", "_", "group", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġformats", "Ġa", "Ġcode", "Ġblock", "Ġfrom", "Ġ<", "source", "Ġlang", "=\"", "some", "_", "language", "\">", "ĊĠĠĠ", "Ġthe", "Ġlanguage", "Ġpart", "Ġis", "Ġoptional", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġreturn", "Ġ(", "match", "_", "group", ".", "group", "(", "1", "),", "Ġmatch", "_", "group", ".", "group", "(", "2", "))", "ĊĊ", "Ċ", "if", "Ġ__", "name", "__", "Ġ==", "Ġ\"__", "main", "__\":", "ĊĠĠĠ", "Ġpass", "Ċ" ]
[ 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 23, 23, 23, 25, 25, 25, 25, 25, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 41, 41, 41, 43, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 48, 48, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 58, 58, 58, 60, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 75, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 87, 87, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 91, 91, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 98, 98, 98, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 102, 102, 102, 104, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 106, 106, 106, 106, 106, 106, 106, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 108, 108, 108, 108, 108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 109, 109, 110, 110, 110, 111, 111, 112, 112, 112, 112, 112, 114, 115, 115, 115, 115, 115, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 119, 120, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 124, 125, 125, 125, 125, 125, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 127, 127, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, 129, 129, 130, 130, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 133, 134, 134, 134, 134, 134, 134, 134, 134, 134, 135, 135 ]
[ 1, 7, 17, 1, 7, 10, 1, 5, 12, 19, 26, 1, 1, 4, 12, 14, 15, 22, 24, 27, 4, 8, 4, 8, 10, 14, 19, 24, 28, 33, 40, 43, 51, 59, 62, 66, 77, 80, 84, 90, 4, 9, 12, 20, 27, 30, 34, 37, 41, 47, 51, 56, 61, 64, 4, 8, 4, 8, 16, 17, 24, 25, 29, 31, 8, 10, 13, 15, 19, 20, 24, 25, 26, 30, 31, 8, 12, 20, 22, 26, 27, 30, 36, 38, 12, 18, 20, 25, 27, 31, 32, 35, 41, 42, 12, 14, 16, 22, 23, 26, 27, 16, 23, 24, 29, 30, 12, 14, 16, 21, 12, 18, 20, 26, 27, 32, 34, 12, 19, 21, 23, 24, 25, 30, 32, 33, 34, 40, 42, 46, 47, 52, 55, 56, 57, 60, 67, 68, 73, 74, 79, 81, 84, 90, 95, 102, 103, 108, 8, 15, 23, 4, 11, 19, 20, 27, 1, 1, 4, 9, 10, 13, 14, 19, 20, 24, 26, 4, 8, 4, 12, 14, 19, 25, 35, 38, 42, 49, 4, 8, 4, 6, 9, 11, 15, 16, 20, 21, 22, 26, 27, 4, 8, 16, 18, 22, 23, 26, 32, 34, 8, 14, 16, 21, 23, 27, 28, 31, 37, 38, 8, 12, 13, 18, 20, 23, 24, 26, 31, 32, 37, 39, 40, 41, 42, 43, 44, 8, 12, 17, 20, 26, 27, 32, 35, 36, 39, 12, 16, 17, 22, 25, 27, 28, 31, 33, 37, 39, 40, 41, 8, 15, 19, 20, 25, 4, 11, 19, 1, 1, 4, 11, 12, 17, 18, 22, 24, 4, 8, 4, 12, 17, 22, 24, 30, 35, 37, 41, 42, 50, 52, 59, 4, 10, 14, 23, 26, 35, 4, 8, 4, 6, 9, 11, 15, 16, 20, 21, 22, 26, 27, 4, 8, 16, 18, 22, 23, 26, 32, 34, 8, 13, 14, 20, 22, 27, 29, 33, 34, 37, 43, 44, 8, 12, 13, 18, 20, 22, 24, 25, 26, 27, 29, 34, 35, 40, 42, 44, 48, 51, 54, 56, 57, 58, 59, 60, 8, 12, 17, 20, 26, 27, 32, 35, 36, 39, 12, 16, 17, 22, 25, 27, 28, 31, 33, 37, 39, 40, 41, 8, 15, 19, 20, 25, 4, 11, 19, 1, 1, 4, 9, 10, 15, 16, 20, 22, 4, 6, 9, 11, 15, 16, 20, 21, 22, 26, 27, 4, 8, 16, 18, 22, 23, 26, 32, 34, 8, 14, 16, 21, 23, 27, 28, 31, 37, 38, 8, 12, 13, 17, 19, 22, 23, 24, 8, 13, 14, 20, 22, 23, 24, 8, 12, 13, 17, 18, 25, 27, 33, 8, 12, 17, 20, 26, 27, 32, 35, 36, 39, 12, 16, 17, 24, 26, 30, 31, 34, 35, 42, 43, 47, 48, 49, 51, 55, 60, 62, 68, 72, 12, 19, 20, 22, 24, 26, 29, 30, 37, 39, 40, 41, 42, 44, 45, 46, 47, 49, 52, 64, 68, 74, 80, 12, 16, 20, 21, 26, 30, 31, 35, 36, 42, 44, 16, 20, 16, 21, 25, 28, 31, 33, 39, 42, 47, 48, 53, 59, 61, 63, 68, 75, 16, 20, 16, 23, 25, 20, 27, 28, 31, 32, 39, 41, 42, 43, 45, 47, 52, 54, 20, 23, 30, 31, 34, 35, 42, 43, 46, 48, 50, 52, 55, 57, 60, 62, 20, 25, 32, 33, 36, 37, 44, 45, 47, 52, 54, 16, 18, 12, 14, 17, 19, 22, 31, 34, 36, 39, 42, 45, 48, 50, 63, 66, 70, 79, 84, 89, 12, 14, 19, 23, 28, 31, 38, 40, 12, 15, 20, 21, 24, 25, 32, 33, 36, 39, 41, 42, 44, 51, 56, 61, 16, 19, 23, 27, 28, 32, 33, 40, 41, 20, 24, 25, 29, 32, 34, 36, 37, 39, 41, 43, 47, 48, 55, 57, 58, 59, 60, 61, 63, 66, 67, 72, 76, 77, 81, 82, 86, 89, 90, 91, 20, 24, 25, 29, 30, 37, 39, 44, 16, 21, 22, 20, 24, 25, 29, 32, 34, 36, 37, 39, 41, 45, 46, 53, 55, 56, 57, 58, 59, 61, 64, 65, 70, 74, 75, 79, 80, 84, 87, 88, 89, 16, 25, 12, 16, 17, 21, 22, 29, 31, 37, 12, 15, 20, 21, 24, 25, 32, 33, 36, 38, 40, 42, 45, 48, 16, 21, 23, 25, 27, 28, 30, 32, 36, 37, 44, 46, 47, 48, 50, 53, 54, 59, 63, 64, 68, 69, 73, 76, 12, 17, 18, 16, 21, 23, 25, 27, 28, 30, 32, 39, 40, 42, 43, 44, 46, 49, 50, 55, 59, 60, 64, 65, 69, 72, 12, 15, 22, 23, 25, 28, 33, 34, 40, 41, 42, 44, 53, 55, 59, 65, 68, 74, 79, 82, 86, 92, 16, 21, 23, 25, 27, 28, 29, 33, 35, 36, 38, 42, 48, 55, 57, 61, 66, 16, 21, 22, 28, 30, 37, 38, 40, 12, 16, 17, 21, 24, 26, 28, 32, 34, 35, 36, 8, 15, 19, 20, 24, 4, 11, 19, 1, 1, 4, 8, 9, 12, 13, 20, 21, 27, 29, 4, 11, 12, 14, 16, 17, 18, 4, 8, 10, 13, 19, 20, 23, 24, 30, 33, 8, 11, 18, 19, 20, 21, 24, 27, 29, 12, 19, 20, 22, 25, 26, 27, 8, 13, 14, 12, 18, 4, 11, 18, 19, 21, 1, 1, 2, 6, 7, 12, 1, 4, 9, 10, 15, 16, 25, 26, 31, 32, 37, 39, 4, 11, 17, 18, 23, 24, 29, 30, 31, 32, 1, 1, 2, 6, 7, 10, 11, 16, 1, 4, 9, 10, 13, 14, 19, 20, 29, 30, 35, 36, 41, 43, 4, 11, 17, 18, 23, 24, 29, 30, 31, 32, 1, 1, 2, 8, 9, 14, 1, 4, 11, 12, 17, 18, 27, 28, 33, 34, 39, 41, 4, 8, 4, 12, 14, 19, 25, 30, 32, 38, 43, 45, 49, 50, 58, 60, 4, 8, 17, 22, 25, 34, 4, 8, 4, 11, 13, 18, 19, 24, 25, 30, 31, 32, 34, 40, 41, 46, 47, 52, 53, 54, 56, 1, 1, 3, 6, 10, 12, 15, 19, 23, 27, 4, 9 ]
29bee4ef11281380aa05d22ef54cb76502ecd685
from enum import Enum class CellState(Enum): EMPTY = 1 DEAD = 2 ALIVE = 3 WAS_ALIVE = 4 def __str__(self): default_str = super(CellState, self).__str__() if default_str == "CellState.EMPTY": return "E" elif default_str == "CellState.DEAD": return "D" elif default_str == "CellState.ALIVE": return "A" elif default_str == "CellState.WAS_ALIVE": return "W" else: return "?"
[ 1097, 3858, 1220, 7827, 499, 222, 842, 9880, 1095, 45, 2773, 731, 303, 29390, 299, 244, 54, 303, 2295, 1208, 299, 244, 55, 303, 418, 1816, 2494, 299, 244, 56, 303, 643, 1117, 100, 744, 5765, 299, 244, 57, 465, 684, 1176, 484, 3232, 803, 731, 310, 1263, 100, 484, 299, 2615, 45, 2917, 1095, 49, 649, 14618, 484, 16443, 310, 434, 1263, 100, 484, 630, 332, 2917, 1095, 51, 13070, 582, 343, 461, 332, 74, 39, 310, 4378, 1263, 100, 484, 630, 332, 2917, 1095, 51, 40527, 582, 343, 461, 332, 73, 39, 310, 4378, 1263, 100, 484, 630, 332, 2917, 1095, 51, 744, 5765, 582, 343, 461, 332, 70, 39, 310, 4378, 1263, 100, 484, 630, 332, 2917, 1095, 51, 92, 1117, 100, 744, 5765, 582, 343, 461, 332, 92, 39, 310, 832, 63, 343, 461, 332, 12795, 222 ]
[ "from", "Ġenum", "Ġimport", "ĠEnum", "ĊĊ", "Ċ", "class", "ĠCell", "State", "(", "Enum", "):", "ĊĠĠĠ", "ĠEMPTY", "Ġ=", "Ġ", "1", "ĊĠĠĠ", "ĠDE", "AD", "Ġ=", "Ġ", "2", "ĊĠĠĠ", "ĠA", "LI", "VE", "Ġ=", "Ġ", "3", "ĊĠĠĠ", "ĠW", "AS", "_", "AL", "IVE", "Ġ=", "Ġ", "4", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "str", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġdefault", "_", "str", "Ġ=", "Ġsuper", "(", "Cell", "State", ",", "Ġself", ").__", "str", "__()", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdefault", "_", "str", "Ġ==", "Ġ\"", "Cell", "State", ".", "EMPTY", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "E", "\"", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġdefault", "_", "str", "Ġ==", "Ġ\"", "Cell", "State", ".", "DEAD", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "D", "\"", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġdefault", "_", "str", "Ġ==", "Ġ\"", "Cell", "State", ".", "AL", "IVE", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "A", "\"", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġdefault", "_", "str", "Ġ==", "Ġ\"", "Cell", "State", ".", "W", "AS", "_", "AL", "IVE", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "W", "\"", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "?\"", "Ċ" ]
[ 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 20, 20, 20, 21, 21, 21, 21 ]
[ 1, 5, 10, 17, 22, 1, 1, 6, 11, 16, 17, 21, 23, 4, 10, 12, 13, 14, 4, 7, 9, 11, 12, 13, 4, 6, 8, 10, 12, 13, 14, 4, 6, 8, 9, 11, 14, 16, 17, 18, 4, 8, 11, 14, 17, 21, 23, 8, 16, 17, 20, 22, 28, 29, 33, 38, 39, 44, 48, 51, 55, 8, 11, 19, 20, 23, 26, 28, 32, 37, 38, 43, 45, 12, 19, 21, 22, 23, 8, 13, 21, 22, 25, 28, 30, 34, 39, 40, 44, 46, 12, 19, 21, 22, 23, 8, 13, 21, 22, 25, 28, 30, 34, 39, 40, 42, 45, 47, 12, 19, 21, 22, 23, 8, 13, 21, 22, 25, 28, 30, 34, 39, 40, 41, 43, 44, 46, 49, 51, 12, 19, 21, 22, 23, 8, 13, 14, 12, 19, 21, 23 ]
b453006b4d4c5f17bb58110fe8197d7796ca0c6c
# -*- coding: utf-8 -*- __author__ = "tqs" from win32com.client import Dispatch import win32com.client import time import os import re import win32api """ windows操作部分说明: 考试波及知识点: 1.删除文件及文件夹 2.复制文件及文件夹 3.移动文件及文件夹 4.文件及文件夹改名 5.文件属性 考试样例: 1、在“蕨类植物”文件夹中,新建一个子文件夹“薄囊蕨类”。 2、将文件“淡水藻.ddd”移动到“藻类植物”文件夹中。 3、设置“螺旋藻.aaa”文件属性为“只读”。 4、在桌面上建立“绿色植物”的快捷方式。 """ class WinOperation: def __init__(self): self.soucePath = "" self.destPath = "" self.destFilename = "" self.sourceFilename = "" def dele(self, destFilename): # 删除文件及文件夹 print("删除文件", destFilename) pass def rename(self, sourceFilename, destFilename): # 文件改名 print(sourceFilename, "文件改名为", destFilename) pass def mov(self, sourceFilename, destFilename): # 移动文件 print(sourceFilename, "移动文件为", destFilename) pass def copy(self, sourceFilename, destFilename): # 复制文件 print(sourceFilename, "移动文件为", destFilename) pass def prop(self, destFilename): # 文件属性 print("文件属性", destFilename) pass def realSourceFilename(self, soucePath, sourceFilename): return sourceFilename def realdestFilename(self, destPath, destFilename): return destFilename def judgeNew(self, OperStr): # 从文本中判断新建文件或文件夹 print("正在完成要求", OperStr) pattern = re.compile("“(.*)”") print(pattern.findall(OperStr)) strFile = str(pattern.findall(OperStr)) file1 = strFile.split("”") source = file1[0][2:] # 获得源文件 print(source) file2 = strFile.split("“") dest = file2[1][0:-2] # 获得目标文件 print(dest) pass def judgeDele(self, OperStr): # 从文本中判断删除文件 print("正在完成要求", OperStr) pattern = re.compile("“(.*)”") print(pattern.findall(OperStr)) pass def judgeRename(self, OperStr): # 从文本中判断重命名文件 print("正在完成要求", OperStr) pattern = re.compile("“(.*)”") print(pattern.findall(OperStr)) strFile = str(pattern.findall(OperStr)) file1 = strFile.split("”") source = file1[0][2:] # 获得源文件 print(source) file2 = strFile.split("“") dest = file2[1][0:-2] # 获得目标文件 print(dest) pass def judgeMov(self, OperStr): # 从文本中判断移动文件 # 形如将文件“淡水藻.ddd”移动到“藻类植物”文件夹中。这种结构的解析 # 解析为源文件,目标文件 print("正在完成要求", OperStr) pattern = re.compile("“(.*)”") print(pattern.findall(OperStr)) strFile = str(pattern.findall(OperStr)) file1 = strFile.split("”") source = file1[0][2:] # 获得源文件 print(source) file2 = strFile.split("“") dest = file2[1][0:-2] # 获得目标文件 print(dest) # 需要再取得完整路径,需要查找 sourceFilename = self.realSourceFilename("d:\zrexam\windows", source) destFilename = self.realdestFilename("d:\zrexam\windows", dest) self.mov(sourceFilename, destFilename) def judgeCopy(self, OperStr): print("正在完成要求", OperStr) pattern = re.compile("“(.*)”") print(pattern.findall(OperStr)) strFile = str(pattern.findall(OperStr)) file1 = strFile.split("”") source = file1[0][2:] # 获得源文件 print(source) file2 = strFile.split("“") dest = file2[1][0:-2] # 获得目标文件 print(dest) pass def judgeProp(self, OperStr): print("正在完成要求", OperStr) pattern = re.compile("“(.*)”") print(pattern.findall(OperStr)) strFile = str(pattern.findall(OperStr)) file1 = strFile.split("”") source = file1[0][2:] # 获得源文件 print(source) file2 = strFile.split("“") dest = file2[1][0:-2] # 获得目标文件 print(dest) ## win32api.SetFileAttributes(fileName,win32con.FILE_ATTRIBUTE_HIDDEN) ## win32api.SetFileAttributes(fileName,win32con.FILE_ATTRIBUTE_NORMAL) pass def judgeOperFromList(self, OperStrList): # 根据各小题选择对应的操作 for item in OperStrList: pass def getOperStrListFromFile(self, filename): # 从文件中将各小题放入列表 pass def judgeOperFromStr(self, OperStr): # 根据小题文本选择对应的操作 if OperStr.find("新建") != -1: print("进入新建操作") self.judgeNew(OperStr) print("结束新建操作") if OperStr.find("删除") != -1: print("进入删除操作") self.judgeDele(OperStr) print("结束删除操作") if OperStr.find("复制") != -1: print("进入复制操作") self.judgeCopy(OperStr) print("结束复制操作") if OperStr.find("移动") != -1: print("进入移动操作") self.judgeMov(OperStr) print("结束移动操作") if OperStr.find("改名") != -1: print("进入改名操作") self.judgeRename(OperStr) print("结束改名操作") if OperStr.find("属性") != -1: print("进入属性操作") self.judgeProp(OperStr) print("结束属性操作") """ word操作部分说明: 考试波及知识点: 1.字体 2.段落 3.查找替换 4.插入 表格,艺术字,图片 5.页边距,分栏 1. 将标题“师恩难忘”设置为黑体,居中对齐。 2.将文中第二段(这个小学设在一座庙内……)设置为首行缩进2字符。 3.将文中所有的“田老师”替换为“田先生”。 4. 设置页边距为上下各2.5厘米(应用于整篇文档)。 5. 在正文下面的空白处插入艺术字,内容为“师恩难忘”(样式任选)。 考试样例: """ class WordOperation: def __init__(self, filename=None): # 打开文件或者新建文件(如果不存在的话) self.wordApp = win32com.client.Dispatch("Word.Application") if filename: self.filename = filename else: self.filename = "" def save(self, newfilename=None): # 保存文件 if newfilename: self.filename = newfilename else: pass def close(self): # 关闭文件 del self.wordApp def fontOper(self): pass def replaceOper(self, source, dest): pass def insertOper(self, style): pass def pageOper(self): pass def paragraphOper(self): pass def judgePage(self, OperStr): print("正在完成要求", OperStr) def judgeFont(self, OperStr): print("正在完成要求", OperStr) def judgeReplace(self, OperStr): print("正在完成要求", OperStr) def judgeInsert(self, OperStr): print("正在完成要求", OperStr) def judgeParagraph(self, OperStr): print("正在完成要求", OperStr) def judgeOperFromStr(self, OperStr): # 根据小题文本选择对应的操作 if OperStr.find("标题") != -1 or OperStr.find("黑体") != -1 or OperStr.find("居中对齐") != -1: print("进入字体操作") self.judgeFont(OperStr) print("结束字体") elif OperStr.find("首行缩进") != -1 or OperStr.find("行距") != -1: print("进入段落操作") self.judgeParagraph(OperStr) print("结束段落操作") elif OperStr.find("插入") != -1: print("进入插入操作") self.judgeInsert(OperStr) print("结束插入操作") elif OperStr.find("页边距") != -1: print("进入页边距操作") self.judgePage(OperStr) print("结束页边距操作") elif OperStr.find("分栏") != -1: print("进入分栏操作") self.judgeFont(OperStr) print("结束分栏操作") elif OperStr.find("替换") != -1: print("进入替换操作") self.judgeReplace(OperStr) print("结束替换操作") """ Excel操作部分说明: 考试波及知识点: 1.行高列宽 2.格式相关 3.公式函数 4.排序 5.插入图表 考试样例: 1.将A2所在行的行高设置为30(40像素)。 2.根据工作表中提供的公式,计算各班级的“3D社团参与比例”,并将结果填写在F3:F7单元格内。 3.给A2:F8单元格区域加所有框线。 4.按“无人机社团人数”由高到低排序。 5.选定A2:B7单元格区域,制作“三维折线图”,并插入到Sheet1工作表中。 """ class ExcelOperation: def __init__(self, filename=None): # 打开文件或者新建文件(如果不存在的话) self.xlApp = win32com.client.Dispatch("Excel.Application") if filename: self.filename = filename self.xlBook = self.xlApp.Workbooks.Open(filename) else: self.xlBook = self.xlApp.Workbooks.Add() self.filename = "" def save(self, newfilename=None): # 保存文件 if newfilename: self.filename = newfilename self.xlBook.SaveAs(newfilename) else: self.xlBook.Save() def close(self): # 关闭文件 self.xlBook.Close(SaveChanges=0) del self.xlApp def getCell(self, sheet, row, col): # 获取单元格的数据 "Get value of one cell" sht = self.xlBook.Worksheets(sheet) return sht.Cells(row, col).Value def setCell(self, sheet, row, col, value): # 设置单元格的数据 "set value of one cell" sht = self.xlBook.Worksheets(sheet) sht.Cells(row, col).Value = value def setCellformat(self, sheet, row, col): # 设置单元格的数据 "set value of one cell" sht = self.xlBook.Worksheets(sheet) sht.Cells(row, col).Font.Size = 15 # 字体大小 sht.Cells(row, col).Font.Bold = True # 是否黑体 sht.Cells(row, col).Font.Name = "Arial" # 字体类型 sht.Cells(row, col).Interior.ColorIndex = 3 # 表格背景 # sht.Range("A1").Borders.LineStyle = xlDouble sht.Cells(row, col).BorderAround(1, 4) # 表格边框 sht.Rows(3).RowHeight = 30 # 行高 sht.Cells(row, col).HorizontalAlignment = -4131 # 水平居中xlCenter sht.Cells(row, col).VerticalAlignment = -4160 # def rowHeightOper(self, sheet, row, height): sht = self.xlBook.Worksheets(sheet) sht.Rows(row).RowHeight = height def deleteRow(self, sheet, row): sht = self.xlBook.Worksheets(sheet) sht.Rows(row).Delete() # 删除行 sht.Columns(row).Delete() # 删除列 def getRange(self, sheet, row1, col1, row2, col2): # 获得一块区域的数据,返回为一个二维元组 "return a 2d array (i.e. tuple of tuples)" sht = self.xlBook.Worksheets(sheet) return sht.Range(sht.Cells(row1, col1), sht.Cells(row2, col2)).Value def addPicture(self, sheet, pictureName, Left, Top, Width, Height): # 插入图片 "Insert a picture in sheet" sht = self.xlBook.Worksheets(sheet) sht.Shapes.AddPicture(pictureName, 1, 1, Left, Top, Width, Height) def cpSheet(self, before): # 复制工作表 "copy sheet" shts = self.xlBook.Worksheets shts(1).Copy(None, shts(1)) def judgeRowHeight(self, OperStr): # 行高操作 print("正在完成要求", OperStr) def judgeColWidth(self, OperStr): print("正在完成要求", OperStr) def judgeFormula(self, OperStr): print("正在完成要求", OperStr) def judgeFunction(self, OperStr): print("正在完成要求", OperStr) def judgeSort(self, OperStr): print("正在完成要求", OperStr) def judgeChart(self, OperStr): print("正在完成要求", OperStr) def judgeBoxLine(self, OperStr): print("正在完成要求", OperStr) def judgeOperFromStr(self, OperStr): # 根据小题文本选择对应的操作 if OperStr.find("行高") != -1: print("进入行高操作") self.judgeRowHeight(OperStr) print("结束行高操作") if OperStr.find("列宽") != -1: print("进入列宽操作") self.judgeColWidth(OperStr) print("结束列宽操作") if OperStr.find("公式") != -1: print("进入公式操作") self.judgeFormula(OperStr) print("结束公式操作") if OperStr.find("函数") != -1: print("进入函数操作") self.judgeFunction(OperStr) print("结束函数操作") if OperStr.find("所有框线") != -1: print("进入所有框线操作") self.judgeBoxLine(OperStr) print("结束所有框线操作") if OperStr.find("排序") != -1: print("进入排序操作") self.judgeSort(OperStr) print("结束排序操作") if OperStr.find("图表") != -1: print("进入图表操作") self.judgeChart(OperStr) print("结束图表操作") pass """ PPT操作部分说明: 1.动画效果 2.切换效果 3.超级链接 4.背景 5.插入,图片,声音,视频 考试样例: 1.在第四张幻灯片的上方插入横排文本框,在文本框中输入“吃月饼”,字体黑体,字号32。 2.将第三张幻灯片的背景填充效果设置为纹理填充,纹理为“鱼类化石”。 3.设置第三张幻灯片的切换效果为“推进”,声音为“鼓掌”。 4.给第四张幻灯片右侧的图片设置进入中的“劈裂”动画效果,效果选项为“中央向上下展开”。 5.给第三张幻灯片中的文字“赏桂花”添加超链接,使其链接到第五张幻灯片。 """ class PptOperation: def __init__(self): pass def AnimationOper(self): pass def SwitchOper(self): pass def InsertOper(self, style): pass def BackgroundOper(self): pass def HyperlinkOper(self): pass def judgeAnimation(self, OperStr): print("正在完成要求", OperStr) pattern = re.compile("“(.*)”") print(pattern.findall(OperStr)) strFile = str(pattern.findall(OperStr)) file1 = strFile.split("”") source = file1[0][2:] # 获得源文件 print(source) file2 = strFile.split("“") dest = file2[1][0:-2] # 获得目标文件 print(dest) def judgeSwitch(self, OperStr): print("正在完成要求", OperStr) pattern = re.compile("“(.*)”") print(pattern.findall(OperStr)) strFile = str(pattern.findall(OperStr)) file1 = strFile.split("”") source = file1[0][2:] # 获得源文件 print(source) file2 = strFile.split("“") dest = file2[1][0:-2] # 获得目标文件 print(dest) def judgeInsert(self, OperStr): print("正在完成要求", OperStr) def judgeBackground(self, OperStr): print("正在完成要求", OperStr) def judgeHyperlink(self, OperStr): print("正在完成要求", OperStr) def judgeOperFromStr(self, OperStr): # 根据小题文本选择对应的操作 if OperStr.find("动画") != -1: print("进入动画操作") self.judgeAnimation(OperStr) print("结束动画操作") if OperStr.find("切换") != -1: print("进入切换操作") self.judgeSwitch(OperStr) print("结束切换操作") if OperStr.find("超级链接") != -1: print("进入超级链接操作") self.judgeHyperlink(OperStr) print("结束超级链接操作") if OperStr.find("背景") != -1: print("进入背景操作") self.judgeBackground(OperStr) print("结束背景操作") if OperStr.find("插入") != -1: print("进入插入操作") self.judgeInsert(OperStr) print("结束插入操作") """ Input文字录入操作部分说明: 考试波及知识点: com对象的调用演示: class InputOperation: """ class OperationTypeJudge: def __init__(self): pass def getType(self, OperStr): if OperStr.find("替换") != -1 or OperStr.find("首行缩进") != -1: print("这是word题要求") print("已转word题处理") elif OperStr.find("公式") != -1 or OperStr.find("函数") != -1: print("这是excel题要求") print("已转excel题处理") elif OperStr.find("切换") != -1 or OperStr.find("动画") != -1: print("这是ppt题要求") print("已转ppt题处理") pass def getOperaPath(self): pass def getOperaFileName(self): pass """ 选择题部分说明: """ class SelectOperation: def __init__(self): pass def getQusetionTxt(self, item): pass def getQusetionPic(self, item): pass def getAnswer(self, item): pass def getCorrectAnswer(self, item): pass """ 判断题部分说明: """ class JudgeOperation: def __init__(self): pass def getQusetionTxt(self, item): pass def getQusetionPic(self, item): pass def getAnswer(self, item): pass def getCorrectAnswer(self, item): pass if __name__ == "__main__": win = WinOperation() win.judgeOperFromStr("1、在“蕨类植物”文件夹中,新建一个子文件夹“薄囊蕨类”。") win.judgeOperFromStr("2、将文件“淡水藻.ddd”移动到“藻类植物”文件夹中。") win.judgeOperFromStr("3、设置“螺旋藻.aaa”文件属性为“只读”。") win.judgeOperFromStr("4、在桌面上建立“绿色植物”的快捷方式。") word = WordOperation() word.judgeOperFromStr("1. 将标题“师恩难忘”设置为黑体,居中对齐。") word.judgeOperFromStr("2.将文中第二段(这个小学设在一座庙内……)设置为首行缩进2字符。") word.judgeOperFromStr("3.将文中所有的“田老师”替换为“田先生”。") word.judgeOperFromStr("4. 设置页边距为上下各2.5厘米(应用于整篇文档)。") word.judgeOperFromStr("5. 在正文下面的空白处插入艺术字,内容为“师恩难忘”(样式任选)。") excel = ExcelOperation(r"c:/test.xls") excel.judgeOperFromStr("1.将A2所在行的行高设置为30(40像素)。") excel.judgeOperFromStr("2.根据工作表中提供的公式,计算各班级的“3D社团参与比例”,并将结果填写在F3:F7单元格内。") excel.judgeOperFromStr("3.给A2:F8单元格区域加所有框线。") excel.judgeOperFromStr("4.按“无人机社团人数”由高到低排序。") excel.judgeOperFromStr("5.选定A2:B7单元格区域,制作“三维折线图”,并插入到Sheet1工作表中。") ppt = PptOperation() ppt.judgeOperFromStr("1.在第四张幻灯片的上方插入横排文本框,在文本框中输入“吃月饼”,字体黑体,字号32。") ppt.judgeOperFromStr("2.将第三张幻灯片的背景填充效果设置为纹理填充,纹理为“鱼类化石”。") ppt.judgeOperFromStr("3.设置第三张幻灯片的切换效果为“推进”,声音为“鼓掌”。") ppt.judgeOperFromStr("4.给第四张幻灯片右侧的图片设置进入中的“劈裂”动画效果,效果选项为“中央向上下展开”。") ppt.judgeOperFromStr("5.给第三张幻灯片中的文字“赏桂花”添加超链接,使其链接到第五张幻灯片。")
[ 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 523, 2133, 523, 299, 332, 121, 11816, 39, 222, 1097, 8902, 56, 55, 527, 51, 1598, 1220, 21220, 222, 485, 8902, 56, 55, 527, 51, 1598, 222, 485, 1153, 222, 485, 2355, 222, 485, 334, 222, 485, 8902, 56, 55, 1256, 222, 222, 3012, 222, 5921, 10734, 16807, 19778, 3111, 222, 13945, 10219, 34494, 12325, 40629, 5864, 3111, 222, 54, 51, 11742, 6162, 12325, 38533, 222, 55, 51, 33183, 6162, 12325, 38533, 222, 56, 51, 30329, 6162, 12325, 38533, 222, 57, 51, 6162, 12325, 38533, 8264, 5203, 222, 58, 51, 6162, 12965, 222, 13945, 10219, 10214, 7229, 3111, 222, 54, 2626, 2924, 7194, 200, 267, 139, 5079, 24154, 259, 14629, 4842, 38533, 3011, 1140, 45592, 4597, 7731, 38533, 7194, 43703, 250, 2504, 256, 200, 267, 139, 5079, 39347, 222, 55, 2626, 6832, 6162, 7194, 9780, 132, 20525, 22008, 157, 51, 20470, 4842, 30329, 4329, 7194, 22008, 157, 5079, 24154, 259, 14629, 4842, 38533, 3011, 1469, 222, 56, 2626, 8537, 7194, 42519, 156, 2349, 257, 22008, 157, 51, 16637, 4842, 6162, 12965, 3397, 7194, 9100, 13033, 39347, 222, 57, 2626, 2924, 7938, 258, 6288, 4518, 29569, 7194, 2235, 161, 11759, 24154, 259, 14629, 4842, 1096, 16911, 3548, 153, 14133, 1469, 222, 3012, 499, 222, 842, 13376, 3786, 63, 303, 684, 1176, 1683, 3232, 803, 731, 310, 649, 51, 120, 663, 388, 1233, 299, 3347, 310, 649, 51, 3332, 1233, 299, 3347, 310, 649, 51, 3332, 10246, 299, 3347, 310, 649, 51, 1876, 10246, 299, 3347, 465, 684, 428, 293, 45, 803, 49, 3481, 10246, 731, 244, 607, 31707, 6162, 12325, 38533, 310, 1489, 459, 11742, 6162, 411, 3481, 10246, 46, 310, 3119, 465, 684, 16138, 45, 803, 49, 1932, 10246, 49, 3481, 10246, 731, 244, 607, 24554, 8264, 5203, 310, 1489, 45, 1876, 10246, 49, 332, 6162, 8264, 5203, 3397, 411, 3481, 10246, 46, 310, 3119, 465, 684, 4255, 45, 803, 49, 1932, 10246, 49, 3481, 10246, 731, 244, 607, 244, 30329, 6162, 310, 1489, 45, 1876, 10246, 49, 332, 30329, 6162, 3397, 411, 3481, 10246, 46, 310, 3119, 465, 684, 1948, 45, 803, 49, 1932, 10246, 49, 3481, 10246, 731, 244, 607, 244, 33183, 6162, 310, 1489, 45, 1876, 10246, 49, 332, 30329, 6162, 3397, 411, 3481, 10246, 46, 310, 3119, 465, 684, 7030, 45, 803, 49, 3481, 10246, 731, 244, 607, 24554, 12965, 310, 1489, 459, 6162, 12965, 411, 3481, 10246, 46, 310, 3119, 465, 684, 4033, 2044, 10246, 45, 803, 49, 34831, 388, 1233, 49, 1932, 10246, 731, 310, 461, 1932, 10246, 465, 684, 4033, 3332, 10246, 45, 803, 49, 3481, 1233, 49, 3481, 10246, 731, 310, 461, 3481, 10246, 465, 684, 39977, 1827, 45, 803, 49, 12434, 2026, 731, 244, 607, 34399, 26164, 3011, 17829, 45592, 6162, 7668, 38533, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 310, 5275, 299, 334, 51, 7028, 459, 7194, 29564, 46, 4842, 678, 310, 1489, 45, 5622, 51, 32962, 45, 6425, 2026, 509, 310, 615, 991, 299, 615, 45, 5622, 51, 32962, 45, 6425, 2026, 509, 310, 822, 54, 299, 615, 991, 51, 3045, 459, 4842, 678, 310, 1932, 299, 822, 54, 96, 53, 1697, 55, 10209, 244, 607, 244, 26505, 10147, 6162, 310, 1489, 45, 1876, 46, 310, 822, 55, 299, 615, 991, 51, 3045, 459, 7194, 678, 310, 3481, 299, 822, 55, 96, 54, 1697, 53, 6012, 55, 98, 244, 607, 244, 26505, 23882, 6162, 310, 1489, 45, 3332, 46, 310, 3119, 465, 684, 39977, 703, 293, 45, 803, 49, 12434, 2026, 731, 244, 607, 34399, 26164, 3011, 17829, 11742, 6162, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 310, 5275, 299, 334, 51, 7028, 459, 7194, 29564, 46, 4842, 678, 310, 1489, 45, 5622, 51, 32962, 45, 6425, 2026, 509, 310, 3119, 465, 684, 39977, 21722, 45, 803, 49, 12434, 2026, 731, 244, 607, 34399, 26164, 3011, 17829, 7773, 36970, 6162, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 310, 5275, 299, 334, 51, 7028, 459, 7194, 29564, 46, 4842, 678, 310, 1489, 45, 5622, 51, 32962, 45, 6425, 2026, 509, 310, 615, 991, 299, 615, 45, 5622, 51, 32962, 45, 6425, 2026, 509, 310, 822, 54, 299, 615, 991, 51, 3045, 459, 4842, 678, 310, 1932, 299, 822, 54, 96, 53, 1697, 55, 10209, 244, 607, 244, 26505, 10147, 6162, 310, 1489, 45, 1876, 46, 310, 822, 55, 299, 615, 991, 51, 3045, 459, 7194, 678, 310, 3481, 299, 822, 55, 96, 54, 1697, 53, 6012, 55, 98, 244, 607, 244, 26505, 23882, 6162, 310, 1489, 45, 3332, 46, 310, 3119, 465, 684, 39977, 7230, 45, 803, 49, 12434, 2026, 731, 244, 607, 34399, 26164, 3011, 17829, 30329, 6162, 310, 607, 244, 14563, 4500, 6832, 6162, 7194, 9780, 132, 20525, 22008, 157, 51, 20470, 4842, 30329, 4329, 7194, 22008, 157, 5079, 24154, 259, 14629, 4842, 38533, 3011, 1469, 25092, 20409, 1096, 22109, 310, 607, 244, 22109, 3397, 10147, 6162, 1140, 23882, 6162, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 310, 5275, 299, 334, 51, 7028, 459, 7194, 29564, 46, 4842, 678, 310, 1489, 45, 5622, 51, 32962, 45, 6425, 2026, 509, 310, 615, 991, 299, 615, 45, 5622, 51, 32962, 45, 6425, 2026, 509, 310, 822, 54, 299, 615, 991, 51, 3045, 459, 4842, 678, 310, 1932, 299, 822, 54, 96, 53, 1697, 55, 10209, 244, 607, 244, 26505, 10147, 6162, 310, 1489, 45, 1876, 46, 310, 822, 55, 299, 615, 991, 51, 3045, 459, 7194, 678, 310, 3481, 299, 822, 55, 96, 54, 1697, 53, 6012, 55, 98, 244, 607, 244, 26505, 23882, 6162, 310, 1489, 45, 3332, 46, 310, 607, 39861, 13130, 22586, 39447, 15902, 1140, 8092, 36528, 310, 1932, 10246, 299, 649, 51, 4571, 2044, 10246, 459, 105, 3509, 127, 28842, 424, 97, 5921, 411, 1932, 46, 310, 3481, 10246, 299, 649, 51, 4571, 3332, 10246, 459, 105, 3509, 127, 28842, 424, 97, 5921, 411, 3481, 46, 310, 649, 51, 3492, 45, 1876, 10246, 49, 3481, 10246, 46, 465, 684, 39977, 4014, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 310, 5275, 299, 334, 51, 7028, 459, 7194, 29564, 46, 4842, 678, 310, 1489, 45, 5622, 51, 32962, 45, 6425, 2026, 509, 310, 615, 991, 299, 615, 45, 5622, 51, 32962, 45, 6425, 2026, 509, 310, 822, 54, 299, 615, 991, 51, 3045, 459, 4842, 678, 310, 1932, 299, 822, 54, 96, 53, 1697, 55, 10209, 244, 607, 244, 26505, 10147, 6162, 310, 1489, 45, 1876, 46, 310, 822, 55, 299, 615, 991, 51, 3045, 459, 7194, 678, 310, 3481, 299, 822, 55, 96, 54, 1697, 53, 6012, 55, 98, 244, 607, 244, 26505, 23882, 6162, 310, 1489, 45, 3332, 46, 310, 3119, 465, 684, 39977, 6569, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 310, 5275, 299, 334, 51, 7028, 459, 7194, 29564, 46, 4842, 678, 310, 1489, 45, 5622, 51, 32962, 45, 6425, 2026, 509, 310, 615, 991, 299, 615, 45, 5622, 51, 32962, 45, 6425, 2026, 509, 310, 822, 54, 299, 615, 991, 51, 3045, 459, 4842, 678, 310, 1932, 299, 822, 54, 96, 53, 1697, 55, 10209, 244, 607, 244, 26505, 10147, 6162, 310, 1489, 45, 1876, 46, 310, 822, 55, 299, 615, 991, 51, 3045, 459, 7194, 678, 310, 3481, 299, 822, 55, 96, 54, 1697, 53, 6012, 55, 98, 244, 607, 244, 26505, 23882, 6162, 310, 1489, 45, 3332, 46, 310, 5533, 370, 8902, 56, 55, 1256, 51, 903, 991, 5097, 45, 10452, 49, 4481, 56, 55, 487, 51, 3555, 100, 18384, 100, 48411, 46, 310, 5533, 370, 8902, 56, 55, 1256, 51, 903, 991, 5097, 45, 10452, 49, 4481, 56, 55, 487, 51, 3555, 100, 18384, 100, 15640, 46, 310, 3119, 465, 684, 39977, 6425, 1811, 739, 45, 803, 49, 12434, 2026, 739, 731, 244, 607, 29225, 15973, 7333, 8334, 14114, 27357, 10734, 310, 456, 1641, 347, 12434, 2026, 739, 63, 343, 3119, 465, 684, 640, 6425, 2026, 739, 20196, 45, 803, 49, 4891, 731, 244, 607, 34399, 6162, 3011, 6832, 15973, 7333, 8334, 11561, 5039, 12150, 310, 3119, 465, 684, 39977, 6425, 1811, 2026, 45, 803, 49, 12434, 2026, 731, 244, 607, 29225, 7333, 8334, 26164, 14114, 27357, 10734, 310, 434, 12434, 2026, 51, 1828, 459, 45592, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 45592, 10734, 678, 343, 649, 51, 27452, 1827, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 45592, 10734, 678, 310, 434, 12434, 2026, 51, 1828, 459, 11742, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 11742, 10734, 678, 343, 649, 51, 27452, 703, 293, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 11742, 10734, 678, 310, 434, 12434, 2026, 51, 1828, 459, 33183, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 33183, 10734, 678, 343, 649, 51, 27452, 4014, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 33183, 10734, 678, 310, 434, 12434, 2026, 51, 1828, 459, 30329, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 30329, 10734, 678, 343, 649, 51, 27452, 7230, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 30329, 10734, 678, 310, 434, 12434, 2026, 51, 1828, 459, 8264, 5203, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 8264, 5203, 10734, 678, 343, 649, 51, 27452, 21722, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 8264, 5203, 10734, 678, 310, 434, 12434, 2026, 51, 1828, 459, 12965, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 12965, 10734, 678, 343, 649, 51, 27452, 6569, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 12965, 10734, 678, 499, 222, 3012, 222, 1131, 10734, 16807, 19778, 3111, 222, 13945, 10219, 34494, 12325, 40629, 5864, 3111, 222, 54, 51, 5211, 8584, 222, 55, 51, 11041, 42461, 222, 56, 51, 36528, 38759, 222, 57, 51, 30612, 244, 4461, 9745, 1140, 48801, 18955, 5211, 1140, 14738, 222, 58, 51, 9438, 17865, 33554, 1140, 4519, 33007, 499, 54, 51, 24120, 30150, 7194, 25270, 5520, 140, 26857, 4487, 270, 4842, 44493, 28691, 8584, 1140, 44382, 3011, 4317, 48372, 1469, 222, 55, 36473, 6832, 3820, 3011, 26420, 11041, 5200, 10248, 7333, 9034, 6115, 2924, 2288, 46734, 2446, 271, 6209, 25679, 5114, 44493, 17280, 3677, 23428, 6406, 55, 11967, 1469, 222, 56, 36473, 6832, 3820, 3011, 33457, 7194, 1642, 146, 22784, 25270, 4842, 38759, 3397, 7194, 1642, 146, 11535, 6220, 39347, 222, 57, 51, 19130, 9438, 17865, 33554, 3397, 44642, 15973, 55, 51, 58, 4471, 270, 39520, 5200, 13462, 5024, 12463, 36336, 21850, 24775, 222, 58, 51, 16725, 8825, 3820, 4316, 22037, 9670, 21584, 9238, 30612, 48801, 18955, 5211, 1140, 12339, 3397, 7194, 25270, 5520, 140, 26857, 4487, 270, 4842, 5200, 34765, 9776, 8063, 24775, 222, 13945, 10219, 10214, 7229, 3111, 222, 3012, 499, 222, 842, 10229, 3786, 63, 303, 684, 1176, 1683, 3232, 803, 49, 4891, 66, 2545, 731, 244, 607, 244, 24978, 6162, 16269, 45592, 6162, 5200, 7558, 32506, 36501, 5114, 310, 649, 51, 1131, 1306, 299, 8902, 56, 55, 527, 51, 1598, 51, 7184, 459, 5108, 51, 2743, 678, 310, 434, 4891, 63, 343, 649, 51, 3633, 299, 4891, 310, 832, 63, 343, 649, 51, 3633, 299, 3347, 465, 684, 4166, 45, 803, 49, 556, 3633, 66, 2545, 731, 244, 607, 244, 17677, 6162, 310, 434, 556, 3633, 63, 343, 649, 51, 3633, 299, 556, 3633, 310, 832, 63, 343, 3119, 465, 684, 4248, 45, 803, 731, 244, 607, 244, 24280, 6162, 310, 3579, 649, 51, 1131, 1306, 465, 684, 2377, 6425, 45, 803, 731, 310, 3119, 465, 684, 7112, 6425, 45, 803, 49, 1932, 49, 3481, 731, 310, 3119, 465, 684, 5567, 6425, 45, 803, 49, 1435, 731, 310, 3119, 465, 684, 1957, 6425, 45, 803, 731, 310, 3119, 465, 684, 18841, 6425, 45, 803, 731, 310, 3119, 465, 684, 39977, 1983, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 465, 684, 39977, 3728, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 465, 684, 39977, 9395, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 465, 684, 39977, 6745, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 465, 684, 39977, 23244, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 465, 684, 39977, 6425, 1811, 2026, 45, 803, 49, 12434, 2026, 731, 244, 607, 29225, 7333, 8334, 26164, 14114, 27357, 10734, 310, 434, 12434, 2026, 51, 1828, 459, 30150, 678, 882, 449, 54, 575, 12434, 2026, 51, 1828, 459, 28691, 8584, 678, 882, 449, 54, 575, 12434, 2026, 51, 1828, 459, 44382, 3011, 4317, 48372, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 5211, 8584, 10734, 678, 343, 649, 51, 27452, 3728, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 5211, 8584, 678, 310, 4378, 12434, 2026, 51, 1828, 459, 17280, 3677, 23428, 6406, 678, 882, 449, 54, 575, 12434, 2026, 51, 1828, 459, 3677, 33554, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 11041, 42461, 10734, 678, 343, 649, 51, 27452, 23244, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 11041, 42461, 10734, 678, 310, 4378, 12434, 2026, 51, 1828, 459, 30612, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 30612, 10734, 678, 343, 649, 51, 27452, 6745, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 30612, 10734, 678, 310, 4378, 12434, 2026, 51, 1828, 459, 9438, 17865, 33554, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 9438, 17865, 33554, 10734, 678, 343, 649, 51, 27452, 1983, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 9438, 17865, 33554, 10734, 678, 310, 4378, 12434, 2026, 51, 1828, 459, 4519, 33007, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 4519, 33007, 10734, 678, 343, 649, 51, 27452, 3728, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 4519, 33007, 10734, 678, 310, 4378, 12434, 2026, 51, 1828, 459, 38759, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 38759, 10734, 678, 343, 649, 51, 27452, 9395, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 38759, 10734, 678, 499, 222, 3012, 222, 12860, 10734, 16807, 19778, 3111, 222, 13945, 10219, 34494, 12325, 40629, 5864, 3111, 222, 54, 51, 3677, 9863, 6723, 29325, 222, 55, 51, 17400, 19797, 222, 56, 51, 10770, 5498, 10216, 222, 57, 51, 22972, 222, 58, 51, 30612, 7071, 4461, 222, 222, 13945, 10219, 10214, 7229, 3111, 222, 54, 51, 6832, 70, 55, 44351, 3677, 1096, 3677, 9863, 44493, 56, 53, 5200, 57, 53, 13323, 11828, 24775, 222, 55, 51, 15871, 17823, 4461, 3011, 14411, 1096, 10770, 5498, 1140, 16270, 15973, 37380, 11867, 1096, 7194, 56, 73, 18615, 27473, 6481, 8933, 10482, 7229, 34293, 8125, 6832, 14009, 42798, 2924, 75, 56, 63, 75, 60, 46741, 9745, 6209, 1469, 222, 56, 51, 12862, 70, 55, 63, 75, 61, 46741, 9745, 34025, 5360, 10650, 17012, 9717, 1469, 222, 57, 51, 13808, 7194, 9527, 5499, 8225, 18615, 27473, 5499, 2378, 4842, 10847, 9863, 4329, 22883, 22972, 1469, 222, 58, 51, 8063, 3839, 70, 55, 63, 71, 60, 46741, 9745, 34025, 1140, 7657, 4636, 7194, 11097, 18880, 5047, 270, 9717, 7071, 34293, 8125, 30612, 4329, 8337, 54, 17823, 4461, 3011, 1469, 222, 222, 3012, 499, 222, 842, 19924, 3786, 63, 303, 684, 1176, 1683, 3232, 803, 49, 4891, 66, 2545, 731, 244, 607, 244, 24978, 6162, 16269, 45592, 6162, 5200, 7558, 32506, 36501, 5114, 310, 649, 51, 9479, 1306, 299, 8902, 56, 55, 527, 51, 1598, 51, 7184, 459, 12860, 51, 2743, 678, 310, 434, 4891, 63, 343, 649, 51, 3633, 299, 4891, 343, 649, 51, 9479, 6597, 299, 649, 51, 9479, 1306, 51, 3003, 12278, 51, 2981, 45, 3633, 46, 310, 832, 63, 343, 649, 51, 9479, 6597, 299, 649, 51, 9479, 1306, 51, 3003, 12278, 51, 1121, 365, 343, 649, 51, 3633, 299, 3347, 465, 684, 4166, 45, 803, 49, 556, 3633, 66, 2545, 731, 244, 607, 244, 17677, 6162, 310, 434, 556, 3633, 63, 343, 649, 51, 3633, 299, 556, 3633, 343, 649, 51, 9479, 6597, 51, 5134, 1482, 45, 909, 3633, 46, 310, 832, 63, 343, 649, 51, 9479, 6597, 51, 5134, 365, 465, 684, 4248, 45, 803, 731, 244, 607, 244, 24280, 6162, 310, 649, 51, 9479, 6597, 51, 4187, 45, 34325, 66, 53, 46, 310, 3579, 649, 51, 9479, 1306, 465, 684, 640, 2917, 45, 803, 49, 13068, 49, 2720, 49, 956, 731, 244, 607, 13614, 46741, 9745, 18969, 310, 332, 953, 804, 451, 1611, 4046, 39, 310, 328, 403, 299, 649, 51, 9479, 6597, 51, 3003, 29804, 45, 7161, 46, 310, 461, 328, 403, 51, 14522, 45, 661, 49, 956, 566, 899, 465, 684, 758, 2917, 45, 803, 49, 13068, 49, 2720, 49, 956, 49, 804, 731, 244, 607, 19130, 46741, 9745, 18969, 310, 332, 489, 804, 451, 1611, 4046, 39, 310, 328, 403, 299, 649, 51, 9479, 6597, 51, 3003, 29804, 45, 7161, 46, 310, 328, 403, 51, 14522, 45, 661, 49, 956, 566, 899, 299, 804, 465, 684, 758, 39038, 48819, 288, 45, 803, 49, 13068, 49, 2720, 49, 956, 731, 244, 607, 19130, 46741, 9745, 18969, 310, 332, 489, 804, 451, 1611, 4046, 39, 310, 328, 403, 299, 649, 51, 9479, 6597, 51, 3003, 29804, 45, 7161, 46, 310, 328, 403, 51, 14522, 45, 661, 49, 956, 566, 3728, 51, 1269, 299, 244, 54, 58, 244, 607, 244, 5211, 8584, 21900, 310, 328, 403, 51, 14522, 45, 661, 49, 956, 566, 3728, 51, 16818, 299, 2969, 244, 607, 21911, 28691, 8584, 310, 328, 403, 51, 14522, 45, 661, 49, 956, 566, 3728, 51, 577, 299, 332, 20399, 39, 244, 607, 244, 5211, 8584, 9251, 310, 328, 403, 51, 14522, 45, 661, 49, 956, 566, 48824, 51, 1530, 1301, 299, 244, 56, 244, 607, 244, 4461, 9745, 39068, 310, 607, 328, 403, 51, 3216, 459, 70, 54, 1912, 71, 10424, 51, 1829, 2291, 299, 32317, 4090, 310, 328, 403, 51, 14522, 45, 661, 49, 956, 566, 7263, 39233, 45, 54, 49, 244, 57, 46, 244, 607, 244, 4461, 9745, 17865, 17012, 310, 328, 403, 51, 7264, 45, 56, 566, 2368, 3041, 299, 244, 56, 53, 244, 607, 244, 3677, 9863, 310, 328, 403, 51, 14522, 45, 661, 49, 956, 566, 11388, 7759, 299, 449, 57, 54, 56, 54, 244, 607, 4832, 146, 150, 12142, 44382, 3011, 9479, 7067, 310, 328, 403, 51, 14522, 45, 661, 49, 956, 566, 11916, 7759, 299, 449, 57, 54, 59, 53, 244, 607, 465, 684, 2720, 3041, 6425, 45, 803, 49, 13068, 49, 2720, 49, 2401, 731, 310, 328, 403, 299, 649, 51, 9479, 6597, 51, 3003, 29804, 45, 7161, 46, 310, 328, 403, 51, 7264, 45, 661, 566, 2368, 3041, 299, 2401, 465, 684, 3081, 2368, 45, 803, 49, 13068, 49, 2720, 731, 310, 328, 403, 299, 649, 51, 9479, 6597, 51, 3003, 29804, 45, 7161, 46, 310, 328, 403, 51, 7264, 45, 661, 566, 3422, 365, 244, 607, 31707, 3677, 310, 328, 403, 51, 7633, 45, 661, 566, 3422, 365, 244, 607, 31707, 6723, 465, 684, 640, 3216, 45, 803, 49, 13068, 49, 2720, 54, 49, 956, 54, 49, 2720, 55, 49, 956, 55, 731, 244, 607, 244, 26505, 2288, 14202, 34025, 18969, 1140, 8763, 3397, 4597, 10290, 18880, 9578, 7415, 310, 332, 620, 331, 244, 55, 105, 1437, 327, 110, 51, 106, 51, 8871, 451, 24572, 4748, 310, 328, 403, 299, 649, 51, 9479, 6597, 51, 3003, 29804, 45, 7161, 46, 310, 461, 328, 403, 51, 3216, 45, 120, 403, 51, 14522, 45, 661, 54, 49, 956, 54, 490, 328, 403, 51, 14522, 45, 661, 55, 49, 956, 55, 3445, 899, 465, 684, 1035, 13548, 45, 803, 49, 13068, 49, 15086, 577, 49, 12317, 49, 9068, 49, 16211, 49, 16248, 731, 244, 607, 22789, 264, 5039, 14738, 310, 332, 6745, 331, 15086, 347, 13068, 39, 310, 328, 403, 299, 649, 51, 9479, 6597, 51, 3003, 29804, 45, 7161, 46, 310, 328, 403, 51, 26589, 51, 1121, 13548, 45, 11873, 577, 49, 244, 54, 49, 244, 54, 49, 12317, 49, 9068, 49, 16211, 49, 16248, 46, 465, 684, 9210, 8337, 45, 803, 49, 2688, 731, 244, 607, 244, 33183, 17823, 4461, 310, 332, 3014, 13068, 39, 310, 328, 403, 120, 299, 649, 51, 9479, 6597, 51, 3003, 29804, 310, 328, 403, 120, 45, 54, 566, 4014, 45, 2545, 49, 328, 403, 120, 45, 54, 509, 465, 684, 39977, 2368, 3041, 45, 803, 49, 12434, 2026, 731, 244, 607, 244, 3677, 9863, 10734, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 465, 684, 39977, 889, 2627, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 465, 684, 39977, 22681, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 465, 684, 39977, 2466, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 465, 684, 39977, 5217, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 465, 684, 39977, 6334, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 465, 684, 39977, 1723, 1829, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 465, 684, 39977, 6425, 1811, 2026, 45, 803, 49, 12434, 2026, 731, 244, 607, 29225, 7333, 8334, 26164, 14114, 27357, 10734, 310, 434, 12434, 2026, 51, 1828, 459, 3677, 9863, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 3677, 9863, 10734, 678, 343, 649, 51, 27452, 2368, 3041, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 3677, 9863, 10734, 678, 310, 434, 12434, 2026, 51, 1828, 459, 6723, 29325, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 6723, 29325, 10734, 678, 343, 649, 51, 27452, 889, 2627, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 6723, 29325, 10734, 678, 310, 434, 12434, 2026, 51, 1828, 459, 10770, 5498, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 10770, 5498, 10734, 678, 343, 649, 51, 27452, 22681, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 10770, 5498, 10734, 678, 310, 434, 12434, 2026, 51, 1828, 459, 10216, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 10216, 10734, 678, 343, 649, 51, 27452, 2466, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 10216, 10734, 678, 310, 434, 12434, 2026, 51, 1828, 459, 10650, 17012, 9717, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 10650, 17012, 9717, 10734, 678, 343, 649, 51, 27452, 1723, 1829, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 10650, 17012, 9717, 10734, 678, 310, 434, 12434, 2026, 51, 1828, 459, 22972, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 22972, 10734, 678, 343, 649, 51, 27452, 5217, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 22972, 10734, 678, 310, 434, 12434, 2026, 51, 1828, 459, 7071, 4461, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 7071, 4461, 10734, 678, 343, 649, 51, 27452, 6334, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 7071, 4461, 10734, 678, 310, 3119, 499, 222, 3012, 222, 85, 3674, 10734, 16807, 19778, 3111, 222, 54, 51, 37356, 32534, 222, 55, 51, 34715, 32534, 222, 56, 51, 17021, 11867, 24238, 222, 57, 51, 39068, 222, 58, 51, 30612, 1140, 14738, 1140, 21055, 18973, 1140, 27561, 222, 222, 13945, 10219, 10214, 7229, 3111, 222, 54, 51, 2924, 8980, 18743, 20983, 3729, 157, 16889, 145, 11009, 1096, 4518, 4413, 30612, 6775, 141, 15016, 26164, 17012, 1140, 2924, 26164, 17012, 3011, 13377, 7194, 44251, 10175, 26145, 158, 34293, 5211, 8584, 28691, 8584, 1140, 5211, 8270, 56, 55, 1469, 222, 55, 51, 6832, 33293, 20983, 3729, 157, 16889, 145, 11009, 1096, 39068, 21284, 27535, 32534, 44493, 5135, 155, 4830, 21284, 27535, 1140, 5135, 155, 4830, 3397, 7194, 48485, 5079, 6747, 37185, 39347, 222, 56, 51, 8537, 33293, 20983, 3729, 157, 16889, 145, 11009, 1096, 34715, 32534, 3397, 7194, 16370, 6406, 34293, 21055, 18973, 3397, 7194, 38179, 265, 3475, 258, 39347, 222, 57, 51, 12862, 8980, 18743, 20983, 3729, 157, 16889, 145, 11009, 18629, 41102, 1096, 14738, 8537, 29950, 10194, 7194, 2107, 254, 9284, 248, 4842, 37356, 32534, 1140, 32534, 27680, 3397, 7194, 3011, 1856, 144, 10393, 44642, 14316, 6216, 39347, 222, 58, 51, 12862, 33293, 20983, 3729, 157, 16889, 145, 11009, 10194, 20201, 7194, 5603, 261, 7938, 248, 29279, 4842, 14101, 17021, 24238, 1140, 4244, 7319, 24238, 4329, 8980, 22712, 20983, 3729, 157, 16889, 145, 11009, 1469, 222, 3012, 499, 222, 842, 466, 404, 3786, 63, 303, 684, 1176, 1683, 3232, 803, 731, 310, 3119, 465, 684, 19350, 6425, 45, 803, 731, 310, 3119, 465, 684, 15763, 6425, 45, 803, 731, 310, 3119, 465, 684, 14624, 6425, 45, 803, 49, 1435, 731, 310, 3119, 465, 684, 20241, 6425, 45, 803, 731, 310, 3119, 465, 684, 14841, 1222, 6425, 45, 803, 731, 310, 3119, 465, 684, 39977, 6614, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 310, 5275, 299, 334, 51, 7028, 459, 7194, 29564, 46, 4842, 678, 310, 1489, 45, 5622, 51, 32962, 45, 6425, 2026, 509, 310, 615, 991, 299, 615, 45, 5622, 51, 32962, 45, 6425, 2026, 509, 310, 822, 54, 299, 615, 991, 51, 3045, 459, 4842, 678, 310, 1932, 299, 822, 54, 96, 53, 1697, 55, 10209, 244, 607, 244, 26505, 10147, 6162, 310, 1489, 45, 1876, 46, 310, 822, 55, 299, 615, 991, 51, 3045, 459, 7194, 678, 310, 3481, 299, 822, 55, 96, 54, 1697, 53, 6012, 55, 98, 244, 607, 244, 26505, 23882, 6162, 310, 1489, 45, 3332, 46, 465, 684, 39977, 7940, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 310, 5275, 299, 334, 51, 7028, 459, 7194, 29564, 46, 4842, 678, 310, 1489, 45, 5622, 51, 32962, 45, 6425, 2026, 509, 310, 615, 991, 299, 615, 45, 5622, 51, 32962, 45, 6425, 2026, 509, 310, 822, 54, 299, 615, 991, 51, 3045, 459, 4842, 678, 310, 1932, 299, 822, 54, 96, 53, 1697, 55, 10209, 244, 607, 244, 26505, 10147, 6162, 310, 1489, 45, 1876, 46, 310, 822, 55, 299, 615, 991, 51, 3045, 459, 7194, 678, 310, 3481, 299, 822, 55, 96, 54, 1697, 53, 6012, 55, 98, 244, 607, 244, 26505, 23882, 6162, 310, 1489, 45, 3332, 46, 465, 684, 39977, 6745, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 465, 684, 39977, 5777, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 465, 684, 39977, 20576, 1222, 45, 803, 49, 12434, 2026, 731, 310, 1489, 459, 30027, 17030, 24889, 411, 12434, 2026, 46, 465, 684, 39977, 6425, 1811, 2026, 45, 803, 49, 12434, 2026, 731, 244, 607, 29225, 7333, 8334, 26164, 14114, 27357, 10734, 310, 434, 12434, 2026, 51, 1828, 459, 37356, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 37356, 10734, 678, 343, 649, 51, 27452, 6614, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 37356, 10734, 678, 310, 434, 12434, 2026, 51, 1828, 459, 34715, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 34715, 10734, 678, 343, 649, 51, 27452, 7940, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 34715, 10734, 678, 310, 434, 12434, 2026, 51, 1828, 459, 17021, 11867, 24238, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 17021, 11867, 24238, 10734, 678, 343, 649, 51, 27452, 20576, 1222, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 17021, 11867, 24238, 10734, 678, 310, 434, 12434, 2026, 51, 1828, 459, 39068, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 39068, 10734, 678, 343, 649, 51, 27452, 5777, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 39068, 10734, 678, 310, 434, 12434, 2026, 51, 1828, 459, 30612, 678, 882, 449, 54, 63, 343, 1489, 459, 29950, 30612, 10734, 678, 343, 649, 51, 27452, 6745, 45, 6425, 2026, 46, 343, 1489, 459, 24975, 30612, 10734, 678, 499, 222, 3012, 222, 1630, 20201, 7812, 5039, 10734, 16807, 19778, 3111, 222, 13945, 10219, 34494, 12325, 40629, 5864, 3111, 222, 527, 38591, 12541, 30104, 5747, 3111, 222, 842, 4257, 3786, 63, 222, 3012, 499, 222, 842, 11957, 638, 79, 14333, 63, 303, 684, 1176, 1683, 3232, 803, 731, 310, 3119, 465, 684, 24097, 45, 803, 49, 12434, 2026, 731, 310, 434, 12434, 2026, 51, 1828, 459, 38759, 678, 882, 449, 54, 575, 12434, 2026, 51, 1828, 459, 17280, 3677, 23428, 6406, 678, 882, 449, 54, 63, 343, 1489, 459, 30108, 1131, 8334, 24889, 678, 343, 1489, 459, 9125, 10307, 1131, 8334, 11474, 678, 310, 4378, 12434, 2026, 51, 1828, 459, 10770, 5498, 678, 882, 449, 54, 575, 12434, 2026, 51, 1828, 459, 10216, 678, 882, 449, 54, 63, 343, 1489, 459, 30108, 15165, 8334, 24889, 678, 343, 1489, 459, 9125, 10307, 15165, 8334, 11474, 678, 310, 4378, 12434, 2026, 51, 1828, 459, 34715, 678, 882, 449, 54, 575, 12434, 2026, 51, 1828, 459, 37356, 678, 882, 449, 54, 63, 343, 1489, 459, 30108, 40282, 8334, 24889, 678, 343, 1489, 459, 9125, 10307, 40282, 8334, 11474, 678, 310, 3119, 465, 684, 640, 6425, 102, 1233, 45, 803, 731, 310, 3119, 465, 684, 640, 6425, 102, 6793, 45, 803, 731, 310, 3119, 499, 222, 3012, 222, 14114, 8334, 16807, 19778, 3111, 222, 3012, 499, 222, 842, 6629, 3786, 63, 303, 684, 1176, 1683, 3232, 803, 731, 310, 3119, 465, 684, 640, 1257, 489, 304, 17243, 45, 803, 49, 1641, 731, 310, 3119, 465, 684, 640, 1257, 489, 304, 19689, 45, 803, 49, 1641, 731, 310, 3119, 465, 684, 640, 10966, 45, 803, 49, 1641, 731, 310, 3119, 465, 684, 640, 14877, 10966, 45, 803, 49, 1641, 731, 310, 3119, 499, 222, 3012, 222, 17829, 8334, 16807, 19778, 3111, 222, 3012, 499, 222, 842, 990, 14333, 3786, 63, 303, 684, 1176, 1683, 3232, 803, 731, 310, 3119, 465, 684, 640, 1257, 489, 304, 17243, 45, 803, 49, 1641, 731, 310, 3119, 465, 684, 640, 1257, 489, 304, 19689, 45, 803, 49, 1641, 731, 310, 3119, 465, 684, 640, 10966, 45, 803, 49, 1641, 731, 310, 3119, 465, 684, 640, 14877, 10966, 45, 803, 49, 1641, 731, 310, 3119, 499, 222, 344, 1176, 444, 523, 630, 9609, 1850, 18021, 303, 8902, 299, 13376, 3786, 365, 303, 8902, 51, 27452, 6425, 1811, 2026, 459, 54, 2626, 2924, 7194, 200, 267, 139, 5079, 24154, 259, 14629, 4842, 38533, 3011, 1140, 45592, 4597, 7731, 38533, 7194, 43703, 250, 2504, 256, 200, 267, 139, 5079, 39347, 678, 303, 8902, 51, 27452, 6425, 1811, 2026, 459, 55, 2626, 6832, 6162, 7194, 9780, 132, 20525, 22008, 157, 51, 20470, 4842, 30329, 4329, 7194, 22008, 157, 5079, 24154, 259, 14629, 4842, 38533, 3011, 1469, 678, 303, 8902, 51, 27452, 6425, 1811, 2026, 459, 56, 2626, 8537, 7194, 42519, 156, 2349, 257, 22008, 157, 51, 16637, 4842, 6162, 12965, 3397, 7194, 9100, 13033, 39347, 678, 303, 8902, 51, 27452, 6425, 1811, 2026, 459, 57, 2626, 2924, 7938, 258, 6288, 4518, 29569, 7194, 2235, 161, 11759, 24154, 259, 14629, 4842, 1096, 16911, 3548, 153, 14133, 1469, 678, 465, 3619, 299, 10229, 3786, 365, 303, 3619, 51, 27452, 6425, 1811, 2026, 459, 54, 51, 24120, 30150, 7194, 25270, 5520, 140, 26857, 4487, 270, 4842, 44493, 28691, 8584, 1140, 44382, 3011, 4317, 48372, 1469, 678, 303, 3619, 51, 27452, 6425, 1811, 2026, 459, 55, 36473, 6832, 3820, 3011, 26420, 11041, 5200, 10248, 7333, 9034, 6115, 2924, 2288, 46734, 2446, 271, 6209, 25679, 5114, 44493, 17280, 3677, 23428, 6406, 55, 11967, 1469, 678, 303, 3619, 51, 27452, 6425, 1811, 2026, 459, 56, 36473, 6832, 3820, 3011, 33457, 7194, 1642, 146, 22784, 25270, 4842, 38759, 3397, 7194, 1642, 146, 11535, 6220, 39347, 678, 303, 3619, 51, 27452, 6425, 1811, 2026, 459, 57, 51, 19130, 9438, 17865, 33554, 3397, 44642, 15973, 55, 51, 58, 4471, 270, 39520, 5200, 13462, 5024, 12463, 36336, 21850, 24775, 678, 303, 3619, 51, 27452, 6425, 1811, 2026, 459, 58, 51, 16725, 8825, 3820, 4316, 22037, 9670, 21584, 9238, 30612, 48801, 18955, 5211, 1140, 12339, 3397, 7194, 25270, 5520, 140, 26857, 4487, 270, 4842, 5200, 34765, 9776, 8063, 24775, 678, 465, 32129, 299, 19924, 3786, 45, 119, 39, 104, 6573, 881, 51, 17915, 678, 303, 32129, 51, 27452, 6425, 1811, 2026, 459, 54, 51, 6832, 70, 55, 44351, 3677, 1096, 3677, 9863, 44493, 56, 53, 5200, 57, 53, 13323, 11828, 24775, 678, 303, 32129, 51, 27452, 6425, 1811, 2026, 459, 55, 51, 15871, 17823, 4461, 3011, 14411, 1096, 10770, 5498, 1140, 16270, 15973, 37380, 11867, 1096, 7194, 56, 73, 18615, 27473, 6481, 8933, 10482, 7229, 34293, 8125, 6832, 14009, 42798, 2924, 75, 56, 63, 75, 60, 46741, 9745, 6209, 1469, 678, 303, 32129, 51, 27452, 6425, 1811, 2026, 459, 56, 51, 12862, 70, 55, 63, 75, 61, 46741, 9745, 34025, 5360, 10650, 17012, 9717, 1469, 678, 303, 32129, 51, 27452, 6425, 1811, 2026, 459, 57, 51, 13808, 7194, 9527, 5499, 8225, 18615, 27473, 5499, 2378, 4842, 10847, 9863, 4329, 22883, 22972, 1469, 678, 303, 32129, 51, 27452, 6425, 1811, 2026, 459, 58, 51, 8063, 3839, 70, 55, 63, 71, 60, 46741, 9745, 34025, 1140, 7657, 4636, 7194, 11097, 18880, 5047, 270, 9717, 7071, 34293, 8125, 30612, 4329, 8337, 54, 17823, 4461, 3011, 1469, 678, 465, 317, 404, 299, 466, 404, 3786, 365, 303, 317, 404, 51, 27452, 6425, 1811, 2026, 459, 54, 51, 2924, 8980, 18743, 20983, 3729, 157, 16889, 145, 11009, 1096, 4518, 4413, 30612, 6775, 141, 15016, 26164, 17012, 1140, 2924, 26164, 17012, 3011, 13377, 7194, 44251, 10175, 26145, 158, 34293, 5211, 8584, 28691, 8584, 1140, 5211, 8270, 56, 55, 1469, 678, 303, 317, 404, 51, 27452, 6425, 1811, 2026, 459, 55, 51, 6832, 33293, 20983, 3729, 157, 16889, 145, 11009, 1096, 39068, 21284, 27535, 32534, 44493, 5135, 155, 4830, 21284, 27535, 1140, 5135, 155, 4830, 3397, 7194, 48485, 5079, 6747, 37185, 39347, 678, 303, 317, 404, 51, 27452, 6425, 1811, 2026, 459, 56, 51, 8537, 33293, 20983, 3729, 157, 16889, 145, 11009, 1096, 34715, 32534, 3397, 7194, 16370, 6406, 34293, 21055, 18973, 3397, 7194, 38179, 265, 3475, 258, 39347, 678, 303, 317, 404, 51, 27452, 6425, 1811, 2026, 459, 57, 51, 12862, 8980, 18743, 20983, 3729, 157, 16889, 145, 11009, 18629, 41102, 1096, 14738, 8537, 29950, 10194, 7194, 2107, 254, 9284, 248, 4842, 37356, 32534, 1140, 32534, 27680, 3397, 7194, 3011, 1856, 144, 10393, 44642, 14316, 6216, 39347, 678, 303, 317, 404, 51, 27452, 6425, 1811, 2026, 459, 58, 51, 12862, 33293, 20983, 3729, 157, 16889, 145, 11009, 10194, 20201, 7194, 5603, 261, 7938, 248, 29279, 4842, 14101, 17021, 24238, 1140, 4244, 7319, 24238, 4329, 8980, 22712, 20983, 3729, 157, 16889, 145, 11009, 1469, 678, 222 ]
[ "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "__", "author", "__", "Ġ=", "Ġ\"", "t", "qs", "\"", "Ċ", "from", "Ġwin", "3", "2", "com", ".", "client", "Ġimport", "ĠDispatch", "Ċ", "import", "Ġwin", "3", "2", "com", ".", "client", "Ċ", "import", "Ġtime", "Ċ", "import", "Ġos", "Ċ", "import", "Ġre", "Ċ", "import", "Ġwin", "3", "2", "api", "Ċ", "Ċ", "\"\"\"", "Ċ", "windows", "æĵįä½ľ", "éĥ¨åĪĨ", "说æĺİ", "ï¼ļ", "Ċ", "èĢĥ", "è¯ķ", "æ³¢", "åıĬ", "çŁ¥è¯Ĩ", "çĤ¹", "ï¼ļ", "Ċ", "1", ".", "åĪłéϤ", "æĸĩä»¶", "åıĬ", "æĸĩ件夹", "Ċ", "2", ".", "å¤įåζ", "æĸĩä»¶", "åıĬ", "æĸĩ件夹", "Ċ", "3", ".", "ç§»åĬ¨", "æĸĩä»¶", "åıĬ", "æĸĩ件夹", "Ċ", "4", ".", "æĸĩä»¶", "åıĬ", "æĸĩ件夹", "æĶ¹", "åIJį", "Ċ", "5", ".", "æĸĩä»¶", "å±ŀæĢ§", "Ċ", "èĢĥ", "è¯ķ", "æł·", "ä¾ĭ", "ï¼ļ", "Ċ", "1", "ãĢģ", "åľ¨", "âĢľ", "è", "ķ", "¨", "ç±»", "æ¤", "į", "çī©", "âĢĿ", "æĸĩ件夹", "ä¸Ń", "ï¼Į", "æĸ°å»º", "ä¸Ģ个", "åŃIJ", "æĸĩ件夹", "âĢľ", "èĸ", "Ħ", "åĽ", "Ĭ", "è", "ķ", "¨", "ç±»", "âĢĿãĢĤ", "Ċ", "2", "ãĢģ", "å°Ĩ", "æĸĩä»¶", "âĢľ", "æ·", "¡", "æ°´", "èĹ", "»", ".", "ddd", "âĢĿ", "ç§»åĬ¨", "åΰ", "âĢľ", "èĹ", "»", "ç±»", "æ¤", "į", "çī©", "âĢĿ", "æĸĩ件夹", "ä¸Ń", "ãĢĤ", "Ċ", "3", "ãĢģ", "设置", "âĢľ", "èŀ", "º", "æĹ", "ĭ", "èĹ", "»", ".", "aaa", "âĢĿ", "æĸĩä»¶", "å±ŀæĢ§", "为", "âĢľ", "åıª", "读", "âĢĿãĢĤ", "Ċ", "4", "ãĢģ", "åľ¨", "æ¡", "Į", "éĿ¢", "ä¸Ĭ", "建ç«ĭ", "âĢľ", "ç»", "¿", "èī²", "æ¤", "į", "çī©", "âĢĿ", "çļĦ", "å¿«", "æį", "·", "æĸ¹å¼ı", "ãĢĤ", "Ċ", "\"\"\"", "ĊĊ", "Ċ", "class", "ĠWin", "Operation", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "s", "ou", "ce", "Path", "Ġ=", "Ġ\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "dest", "Path", "Ġ=", "Ġ\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "dest", "Filename", "Ġ=", "Ġ\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "source", "Filename", "Ġ=", "Ġ\"\"", "ĊĊĠĠĠ", "Ġdef", "Ġde", "le", "(", "self", ",", "Ġdest", "Filename", "):", "Ġ", "Ġ#", "ĠåĪłéϤ", "æĸĩä»¶", "åıĬ", "æĸĩ件夹", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "åĪłéϤ", "æĸĩä»¶", "\",", "Ġdest", "Filename", ")", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġrename", "(", "self", ",", "Ġsource", "Filename", ",", "Ġdest", "Filename", "):", "Ġ", "Ġ#", "Ġæĸĩä»¶", "æĶ¹", "åIJį", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "source", "Filename", ",", "Ġ\"", "æĸĩä»¶", "æĶ¹", "åIJį", "为", "\",", "Ġdest", "Filename", ")", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġmov", "(", "self", ",", "Ġsource", "Filename", ",", "Ġdest", "Filename", "):", "Ġ", "Ġ#", "Ġ", "ç§»åĬ¨", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "source", "Filename", ",", "Ġ\"", "ç§»åĬ¨", "æĸĩä»¶", "为", "\",", "Ġdest", "Filename", ")", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġcopy", "(", "self", ",", "Ġsource", "Filename", ",", "Ġdest", "Filename", "):", "Ġ", "Ġ#", "Ġ", "å¤įåζ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "source", "Filename", ",", "Ġ\"", "ç§»åĬ¨", "æĸĩä»¶", "为", "\",", "Ġdest", "Filename", ")", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġprop", "(", "self", ",", "Ġdest", "Filename", "):", "Ġ", "Ġ#", "Ġæĸĩä»¶", "å±ŀæĢ§", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æĸĩä»¶", "å±ŀæĢ§", "\",", "Ġdest", "Filename", ")", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġreal", "Source", "Filename", "(", "self", ",", "Ġsou", "ce", "Path", ",", "Ġsource", "Filename", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġsource", "Filename", "ĊĊĠĠĠ", "Ġdef", "Ġreal", "dest", "Filename", "(", "self", ",", "Ġdest", "Path", ",", "Ġdest", "Filename", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġdest", "Filename", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "New", "(", "self", ",", "ĠOper", "Str", "):", "Ġ", "Ġ#", "Ġä»İ", "æĸĩæľ¬", "ä¸Ń", "åΤæĸŃ", "æĸ°å»º", "æĸĩä»¶", "æĪĸ", "æĸĩ件夹", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĠĠĠĠĠĠĠ", "Ġpattern", "Ġ=", "Ġre", ".", "compile", "(\"", "âĢľ", "(.*", ")", "âĢĿ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "pattern", ".", "findall", "(", "Oper", "Str", "))", "ĊĠĠĠĠĠĠĠ", "Ġstr", "File", "Ġ=", "Ġstr", "(", "pattern", ".", "findall", "(", "Oper", "Str", "))", "ĊĠĠĠĠĠĠĠ", "Ġfile", "1", "Ġ=", "Ġstr", "File", ".", "split", "(\"", "âĢĿ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġsource", "Ġ=", "Ġfile", "1", "[", "0", "][", "2", ":]", "Ġ", "Ġ#", "Ġ", "èİ·å¾Ĺ", "æºIJ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "source", ")", "ĊĠĠĠĠĠĠĠ", "Ġfile", "2", "Ġ=", "Ġstr", "File", ".", "split", "(\"", "âĢľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġdest", "Ġ=", "Ġfile", "2", "[", "1", "][", "0", ":-", "2", "]", "Ġ", "Ġ#", "Ġ", "èİ·å¾Ĺ", "缮æłĩ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "dest", ")", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "De", "le", "(", "self", ",", "ĠOper", "Str", "):", "Ġ", "Ġ#", "Ġä»İ", "æĸĩæľ¬", "ä¸Ń", "åΤæĸŃ", "åĪłéϤ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĠĠĠĠĠĠĠ", "Ġpattern", "Ġ=", "Ġre", ".", "compile", "(\"", "âĢľ", "(.*", ")", "âĢĿ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "pattern", ".", "findall", "(", "Oper", "Str", "))", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Rename", "(", "self", ",", "ĠOper", "Str", "):", "Ġ", "Ġ#", "Ġä»İ", "æĸĩæľ¬", "ä¸Ń", "åΤæĸŃ", "éĩį", "åij½åIJį", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĠĠĠĠĠĠĠ", "Ġpattern", "Ġ=", "Ġre", ".", "compile", "(\"", "âĢľ", "(.*", ")", "âĢĿ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "pattern", ".", "findall", "(", "Oper", "Str", "))", "ĊĠĠĠĠĠĠĠ", "Ġstr", "File", "Ġ=", "Ġstr", "(", "pattern", ".", "findall", "(", "Oper", "Str", "))", "ĊĠĠĠĠĠĠĠ", "Ġfile", "1", "Ġ=", "Ġstr", "File", ".", "split", "(\"", "âĢĿ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġsource", "Ġ=", "Ġfile", "1", "[", "0", "][", "2", ":]", "Ġ", "Ġ#", "Ġ", "èİ·å¾Ĺ", "æºIJ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "source", ")", "ĊĠĠĠĠĠĠĠ", "Ġfile", "2", "Ġ=", "Ġstr", "File", ".", "split", "(\"", "âĢľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġdest", "Ġ=", "Ġfile", "2", "[", "1", "][", "0", ":-", "2", "]", "Ġ", "Ġ#", "Ġ", "èİ·å¾Ĺ", "缮æłĩ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "dest", ")", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Mov", "(", "self", ",", "ĠOper", "Str", "):", "Ġ", "Ġ#", "Ġä»İ", "æĸĩæľ¬", "ä¸Ń", "åΤæĸŃ", "ç§»åĬ¨", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġ", "å½¢", "å¦Ĥ", "å°Ĩ", "æĸĩä»¶", "âĢľ", "æ·", "¡", "æ°´", "èĹ", "»", ".", "ddd", "âĢĿ", "ç§»åĬ¨", "åΰ", "âĢľ", "èĹ", "»", "ç±»", "æ¤", "į", "çī©", "âĢĿ", "æĸĩ件夹", "ä¸Ń", "ãĢĤ", "è¿Ļç§į", "ç»ĵæŀĦ", "çļĦ", "è§£æŀIJ", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġ", "è§£æŀIJ", "为", "æºIJ", "æĸĩä»¶", "ï¼Į", "缮æłĩ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĠĠĠĠĠĠĠ", "Ġpattern", "Ġ=", "Ġre", ".", "compile", "(\"", "âĢľ", "(.*", ")", "âĢĿ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "pattern", ".", "findall", "(", "Oper", "Str", "))", "ĊĠĠĠĠĠĠĠ", "Ġstr", "File", "Ġ=", "Ġstr", "(", "pattern", ".", "findall", "(", "Oper", "Str", "))", "ĊĠĠĠĠĠĠĠ", "Ġfile", "1", "Ġ=", "Ġstr", "File", ".", "split", "(\"", "âĢĿ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġsource", "Ġ=", "Ġfile", "1", "[", "0", "][", "2", ":]", "Ġ", "Ġ#", "Ġ", "èİ·å¾Ĺ", "æºIJ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "source", ")", "ĊĠĠĠĠĠĠĠ", "Ġfile", "2", "Ġ=", "Ġstr", "File", ".", "split", "(\"", "âĢľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġdest", "Ġ=", "Ġfile", "2", "[", "1", "][", "0", ":-", "2", "]", "Ġ", "Ġ#", "Ġ", "èİ·å¾Ĺ", "缮æłĩ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "dest", ")", "ĊĠĠĠĠĠĠĠ", "Ġ#", "ĠéľĢè¦ģ", "åĨį", "åıĸå¾Ĺ", "å®Įæķ´", "è·¯å¾Ħ", "ï¼Į", "éľĢè¦ģ", "æŁ¥æī¾", "ĊĠĠĠĠĠĠĠ", "Ġsource", "Filename", "Ġ=", "Ġself", ".", "real", "Source", "Filename", "(\"", "d", ":\\", "z", "rex", "am", "\\", "windows", "\",", "Ġsource", ")", "ĊĠĠĠĠĠĠĠ", "Ġdest", "Filename", "Ġ=", "Ġself", ".", "real", "dest", "Filename", "(\"", "d", ":\\", "z", "rex", "am", "\\", "windows", "\",", "Ġdest", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "mov", "(", "source", "Filename", ",", "Ġdest", "Filename", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Copy", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĠĠĠĠĠĠĠ", "Ġpattern", "Ġ=", "Ġre", ".", "compile", "(\"", "âĢľ", "(.*", ")", "âĢĿ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "pattern", ".", "findall", "(", "Oper", "Str", "))", "ĊĠĠĠĠĠĠĠ", "Ġstr", "File", "Ġ=", "Ġstr", "(", "pattern", ".", "findall", "(", "Oper", "Str", "))", "ĊĠĠĠĠĠĠĠ", "Ġfile", "1", "Ġ=", "Ġstr", "File", ".", "split", "(\"", "âĢĿ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġsource", "Ġ=", "Ġfile", "1", "[", "0", "][", "2", ":]", "Ġ", "Ġ#", "Ġ", "èİ·å¾Ĺ", "æºIJ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "source", ")", "ĊĠĠĠĠĠĠĠ", "Ġfile", "2", "Ġ=", "Ġstr", "File", ".", "split", "(\"", "âĢľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġdest", "Ġ=", "Ġfile", "2", "[", "1", "][", "0", ":-", "2", "]", "Ġ", "Ġ#", "Ġ", "èİ·å¾Ĺ", "缮æłĩ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "dest", ")", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Prop", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĠĠĠĠĠĠĠ", "Ġpattern", "Ġ=", "Ġre", ".", "compile", "(\"", "âĢľ", "(.*", ")", "âĢĿ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "pattern", ".", "findall", "(", "Oper", "Str", "))", "ĊĠĠĠĠĠĠĠ", "Ġstr", "File", "Ġ=", "Ġstr", "(", "pattern", ".", "findall", "(", "Oper", "Str", "))", "ĊĠĠĠĠĠĠĠ", "Ġfile", "1", "Ġ=", "Ġstr", "File", ".", "split", "(\"", "âĢĿ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġsource", "Ġ=", "Ġfile", "1", "[", "0", "][", "2", ":]", "Ġ", "Ġ#", "Ġ", "èİ·å¾Ĺ", "æºIJ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "source", ")", "ĊĠĠĠĠĠĠĠ", "Ġfile", "2", "Ġ=", "Ġstr", "File", ".", "split", "(\"", "âĢľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġdest", "Ġ=", "Ġfile", "2", "[", "1", "][", "0", ":-", "2", "]", "Ġ", "Ġ#", "Ġ", "èİ·å¾Ĺ", "缮æłĩ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "dest", ")", "ĊĠĠĠĠĠĠĠ", "Ġ##", "ĠĠĠĠĠĠĠ", "Ġwin", "3", "2", "api", ".", "Set", "File", "Attributes", "(", "fileName", ",", "win", "3", "2", "con", ".", "FILE", "_", "ATTRIBUTE", "_", "HIDDEN", ")", "ĊĠĠĠĠĠĠĠ", "Ġ##", "ĠĠĠĠĠĠĠ", "Ġwin", "3", "2", "api", ".", "Set", "File", "Attributes", "(", "fileName", ",", "win", "3", "2", "con", ".", "FILE", "_", "ATTRIBUTE", "_", "NORMAL", ")", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Oper", "From", "List", "(", "self", ",", "ĠOper", "Str", "List", "):", "Ġ", "Ġ#", "Ġæł¹æį®", "åIJĦ", "å°ı", "é¢ĺ", "éĢīæĭ©", "对åºĶçļĦ", "æĵįä½ľ", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġitem", "Ġin", "ĠOper", "Str", "List", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Oper", "Str", "List", "FromFile", "(", "self", ",", "Ġfilename", "):", "Ġ", "Ġ#", "Ġä»İ", "æĸĩä»¶", "ä¸Ń", "å°Ĩ", "åIJĦ", "å°ı", "é¢ĺ", "æĶ¾", "åħ¥", "åĪĹ表", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Oper", "From", "Str", "(", "self", ",", "ĠOper", "Str", "):", "Ġ", "Ġ#", "Ġæł¹æį®", "å°ı", "é¢ĺ", "æĸĩæľ¬", "éĢīæĭ©", "对åºĶçļĦ", "æĵįä½ľ", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "æĸ°å»º", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "æĸ°å»º", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "New", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "æĸ°å»º", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "åĪłéϤ", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "åĪłéϤ", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "De", "le", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "åĪłéϤ", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "å¤įåζ", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "å¤įåζ", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Copy", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "å¤įåζ", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "ç§»åĬ¨", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "ç§»åĬ¨", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Mov", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "ç§»åĬ¨", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "æĶ¹", "åIJį", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "æĶ¹", "åIJį", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Rename", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "æĶ¹", "åIJį", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "å±ŀæĢ§", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "å±ŀæĢ§", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Prop", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "å±ŀæĢ§", "æĵįä½ľ", "\")", "ĊĊ", "Ċ", "\"\"\"", "Ċ", "word", "æĵįä½ľ", "éĥ¨åĪĨ", "说æĺİ", "ï¼ļ", "Ċ", "èĢĥ", "è¯ķ", "æ³¢", "åıĬ", "çŁ¥è¯Ĩ", "çĤ¹", "ï¼ļ", "Ċ", "1", ".", "åŃĹ", "ä½ĵ", "Ċ", "2", ".", "段", "èIJ½", "Ċ", "3", ".", "æŁ¥æī¾", "æĽ¿æį¢", "Ċ", "4", ".", "æıĴåħ¥", "Ġ", "表", "æł¼", "ï¼Į", "èīº", "æľ¯", "åŃĹ", "ï¼Į", "åĽ¾çīĩ", "Ċ", "5", ".", "页", "è¾¹", "è·Ŀ", "ï¼Į", "åĪĨ", "æłı", "ĊĊ", "1", ".", "Ġå°Ĩ", "æłĩé¢ĺ", "âĢľ", "å¸Ī", "æģ", "©", "éļ¾", "å¿", "ĺ", "âĢĿ", "设置为", "é»ij", "ä½ĵ", "ï¼Į", "å±ħ", "ä¸Ń", "对", "é½IJ", "ãĢĤ", "Ċ", "2", "ï¼İ", "å°Ĩ", "æĸĩ", "ä¸Ń", "第äºĮ", "段", "ï¼Ī", "è¿Ļ个", "å°ı", "åѦ", "设", "åľ¨", "ä¸Ģ", "座", "åº", "Ļ", "åĨħ", "â̦â̦", "ï¼ī", "设置为", "é¦ĸ", "è¡Į", "缩", "è¿Ľ", "2", "åŃĹ符", "ãĢĤ", "Ċ", "3", "ï¼İ", "å°Ĩ", "æĸĩ", "ä¸Ń", "æīĢæľīçļĦ", "âĢľ", "çĶ", "°", "èĢģ", "å¸Ī", "âĢĿ", "æĽ¿æį¢", "为", "âĢľ", "çĶ", "°", "åħĪ", "çĶŁ", "âĢĿãĢĤ", "Ċ", "4", ".", "Ġ设置", "页", "è¾¹", "è·Ŀ", "为", "ä¸Ĭä¸ĭ", "åIJĦ", "2", ".", "5", "åİ", "ĺ", "ç±³", "ï¼Ī", "åºĶç͍", "äºİ", "æķ´", "ç¯ĩ", "æĸĩæ¡£", "ï¼īãĢĤ", "Ċ", "5", ".", "Ġåľ¨", "æŃ£", "æĸĩ", "ä¸ĭ", "éĿ¢çļĦ", "空", "çϽ", "å¤Ħ", "æıĴåħ¥", "èīº", "æľ¯", "åŃĹ", "ï¼Į", "åĨħ容", "为", "âĢľ", "å¸Ī", "æģ", "©", "éļ¾", "å¿", "ĺ", "âĢĿ", "ï¼Ī", "æł·å¼ı", "ä»»", "éĢī", "ï¼īãĢĤ", "Ċ", "èĢĥ", "è¯ķ", "æł·", "ä¾ĭ", "ï¼ļ", "Ċ", "\"\"\"", "ĊĊ", "Ċ", "class", "ĠWord", "Operation", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġfilename", "=", "None", "):", "Ġ", "Ġ#", "Ġ", "æīĵå¼Ģ", "æĸĩä»¶", "æĪĸèĢħ", "æĸ°å»º", "æĸĩä»¶", "ï¼Ī", "å¦Ĥæŀľ", "ä¸įåŃĺåľ¨", "çļĦè¯Ŀ", "ï¼ī", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "word", "App", "Ġ=", "Ġwin", "3", "2", "com", ".", "client", ".", "Dispatch", "(\"", "Word", ".", "Application", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġfilename", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "filename", "Ġ=", "Ġfilename", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "filename", "Ġ=", "Ġ\"\"", "ĊĊĠĠĠ", "Ġdef", "Ġsave", "(", "self", ",", "Ġnew", "filename", "=", "None", "):", "Ġ", "Ġ#", "Ġ", "ä¿ĿåŃĺ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnew", "filename", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "filename", "Ġ=", "Ġnew", "filename", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġclose", "(", "self", "):", "Ġ", "Ġ#", "Ġ", "åħ³éĹŃ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġdel", "Ġself", ".", "word", "App", "ĊĊĠĠĠ", "Ġdef", "Ġfont", "Oper", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġreplace", "Oper", "(", "self", ",", "Ġsource", ",", "Ġdest", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġinsert", "Oper", "(", "self", ",", "Ġstyle", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġpage", "Oper", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġparagraph", "Oper", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Page", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Font", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Replace", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Insert", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Paragraph", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Oper", "From", "Str", "(", "self", ",", "ĠOper", "Str", "):", "Ġ", "Ġ#", "Ġæł¹æį®", "å°ı", "é¢ĺ", "æĸĩæľ¬", "éĢīæĭ©", "对åºĶçļĦ", "æĵįä½ľ", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "æłĩé¢ĺ", "\")", "Ġ!=", "Ġ-", "1", "Ġor", "ĠOper", "Str", ".", "find", "(\"", "é»ij", "ä½ĵ", "\")", "Ġ!=", "Ġ-", "1", "Ġor", "ĠOper", "Str", ".", "find", "(\"", "å±ħ", "ä¸Ń", "对", "é½IJ", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "åŃĹ", "ä½ĵ", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Font", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "åŃĹ", "ä½ĵ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġelif", "ĠOper", "Str", ".", "find", "(\"", "é¦ĸ", "è¡Į", "缩", "è¿Ľ", "\")", "Ġ!=", "Ġ-", "1", "Ġor", "ĠOper", "Str", ".", "find", "(\"", "è¡Į", "è·Ŀ", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "段", "èIJ½", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Paragraph", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "段", "èIJ½", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġelif", "ĠOper", "Str", ".", "find", "(\"", "æıĴåħ¥", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "æıĴåħ¥", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Insert", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "æıĴåħ¥", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġelif", "ĠOper", "Str", ".", "find", "(\"", "页", "è¾¹", "è·Ŀ", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "页", "è¾¹", "è·Ŀ", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Page", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "页", "è¾¹", "è·Ŀ", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġelif", "ĠOper", "Str", ".", "find", "(\"", "åĪĨ", "æłı", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "åĪĨ", "æłı", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Font", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "åĪĨ", "æłı", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġelif", "ĠOper", "Str", ".", "find", "(\"", "æĽ¿æį¢", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "æĽ¿æį¢", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Replace", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "æĽ¿æį¢", "æĵįä½ľ", "\")", "ĊĊ", "Ċ", "\"\"\"", "Ċ", "Excel", "æĵįä½ľ", "éĥ¨åĪĨ", "说æĺİ", "ï¼ļ", "Ċ", "èĢĥ", "è¯ķ", "æ³¢", "åıĬ", "çŁ¥è¯Ĩ", "çĤ¹", "ï¼ļ", "Ċ", "1", ".", "è¡Į", "é«ĺ", "åĪĹ", "宽", "Ċ", "2", ".", "æł¼å¼ı", "缸åħ³", "Ċ", "3", ".", "åħ¬", "å¼ı", "åĩ½æķ°", "Ċ", "4", ".", "æİĴåºı", "Ċ", "5", ".", "æıĴåħ¥", "åĽ¾", "表", "Ċ", "Ċ", "èĢĥ", "è¯ķ", "æł·", "ä¾ĭ", "ï¼ļ", "Ċ", "1", ".", "å°Ĩ", "A", "2", "æīĢåľ¨", "è¡Į", "çļĦ", "è¡Į", "é«ĺ", "设置为", "3", "0", "ï¼Ī", "4", "0", "åĥı", "ç´ł", "ï¼īãĢĤ", "Ċ", "2", ".", "æł¹æį®", "å·¥ä½ľ", "表", "ä¸Ń", "æıIJä¾Ľ", "çļĦ", "åħ¬", "å¼ı", "ï¼Į", "计ç®Ĺ", "åIJĦ", "çıŃ", "级", "çļĦ", "âĢľ", "3", "D", "社", "åĽ¢", "åıĤ", "ä¸İ", "æ¯Ķ", "ä¾ĭ", "âĢĿï¼Į", "å¹¶", "å°Ĩ", "ç»ĵæŀľ", "å¡«åĨĻ", "åľ¨", "F", "3", ":", "F", "7", "åįķåħĥ", "æł¼", "åĨħ", "ãĢĤ", "Ċ", "3", ".", "ç»Ļ", "A", "2", ":", "F", "8", "åįķåħĥ", "æł¼", "åĮºåŁŁ", "åĬł", "æīĢæľī", "æ¡Ĩ", "线", "ãĢĤ", "Ċ", "4", ".", "æĮī", "âĢľ", "æĹł", "人", "æľº", "社", "åĽ¢", "人", "æķ°", "âĢĿ", "çͱ", "é«ĺ", "åΰ", "ä½İ", "æİĴåºı", "ãĢĤ", "Ċ", "5", ".", "éĢī", "å®ļ", "A", "2", ":", "B", "7", "åįķåħĥ", "æł¼", "åĮºåŁŁ", "ï¼Į", "åζ", "ä½ľ", "âĢľ", "ä¸ī", "ç»´", "æĬ", "ĺ", "线", "åĽ¾", "âĢĿï¼Į", "å¹¶", "æıĴåħ¥", "åΰ", "Sheet", "1", "å·¥ä½ľ", "表", "ä¸Ń", "ãĢĤ", "Ċ", "Ċ", "\"\"\"", "ĊĊ", "Ċ", "class", "ĠExcel", "Operation", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġfilename", "=", "None", "):", "Ġ", "Ġ#", "Ġ", "æīĵå¼Ģ", "æĸĩä»¶", "æĪĸèĢħ", "æĸ°å»º", "æĸĩä»¶", "ï¼Ī", "å¦Ĥæŀľ", "ä¸įåŃĺåľ¨", "çļĦè¯Ŀ", "ï¼ī", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "xl", "App", "Ġ=", "Ġwin", "3", "2", "com", ".", "client", ".", "Dispatch", "(\"", "Excel", ".", "Application", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġfilename", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "filename", "Ġ=", "Ġfilename", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "xl", "Book", "Ġ=", "Ġself", ".", "xl", "App", ".", "Work", "books", ".", "Open", "(", "filename", ")", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "xl", "Book", "Ġ=", "Ġself", ".", "xl", "App", ".", "Work", "books", ".", "Add", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "filename", "Ġ=", "Ġ\"\"", "ĊĊĠĠĠ", "Ġdef", "Ġsave", "(", "self", ",", "Ġnew", "filename", "=", "None", "):", "Ġ", "Ġ#", "Ġ", "ä¿ĿåŃĺ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnew", "filename", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "filename", "Ġ=", "Ġnew", "filename", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "xl", "Book", ".", "Save", "As", "(", "new", "filename", ")", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "xl", "Book", ".", "Save", "()", "ĊĊĠĠĠ", "Ġdef", "Ġclose", "(", "self", "):", "Ġ", "Ġ#", "Ġ", "åħ³éĹŃ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "xl", "Book", ".", "Close", "(", "SaveChanges", "=", "0", ")", "ĊĠĠĠĠĠĠĠ", "Ġdel", "Ġself", ".", "xl", "App", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Cell", "(", "self", ",", "Ġsheet", ",", "Ġrow", ",", "Ġcol", "):", "Ġ", "Ġ#", "Ġèİ·åıĸ", "åįķåħĥ", "æł¼", "çļĦæķ°æį®", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "Get", "Ġvalue", "Ġof", "Ġone", "Ġcell", "\"", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", "Ġ=", "Ġself", ".", "xl", "Book", ".", "Work", "sheets", "(", "sheet", ")", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġs", "ht", ".", "Cells", "(", "row", ",", "Ġcol", ").", "Value", "ĊĊĠĠĠ", "Ġdef", "Ġset", "Cell", "(", "self", ",", "Ġsheet", ",", "Ġrow", ",", "Ġcol", ",", "Ġvalue", "):", "Ġ", "Ġ#", "Ġ设置", "åįķåħĥ", "æł¼", "çļĦæķ°æį®", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "set", "Ġvalue", "Ġof", "Ġone", "Ġcell", "\"", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", "Ġ=", "Ġself", ".", "xl", "Book", ".", "Work", "sheets", "(", "sheet", ")", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", ".", "Cells", "(", "row", ",", "Ġcol", ").", "Value", "Ġ=", "Ġvalue", "ĊĊĠĠĠ", "Ġdef", "Ġset", "Cel", "lform", "at", "(", "self", ",", "Ġsheet", ",", "Ġrow", ",", "Ġcol", "):", "Ġ", "Ġ#", "Ġ设置", "åįķåħĥ", "æł¼", "çļĦæķ°æį®", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "set", "Ġvalue", "Ġof", "Ġone", "Ġcell", "\"", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", "Ġ=", "Ġself", ".", "xl", "Book", ".", "Work", "sheets", "(", "sheet", ")", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", ".", "Cells", "(", "row", ",", "Ġcol", ").", "Font", ".", "Size", "Ġ=", "Ġ", "1", "5", "Ġ", "Ġ#", "Ġ", "åŃĹ", "ä½ĵ", "大å°ı", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", ".", "Cells", "(", "row", ",", "Ġcol", ").", "Font", ".", "Bold", "Ġ=", "ĠTrue", "Ġ", "Ġ#", "Ġæĺ¯åIJ¦", "é»ij", "ä½ĵ", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", ".", "Cells", "(", "row", ",", "Ġcol", ").", "Font", ".", "Name", "Ġ=", "Ġ\"", "Arial", "\"", "Ġ", "Ġ#", "Ġ", "åŃĹ", "ä½ĵ", "ç±»åŀĭ", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", ".", "Cells", "(", "row", ",", "Ġcol", ").", "Interior", ".", "Color", "Index", "Ġ=", "Ġ", "3", "Ġ", "Ġ#", "Ġ", "表", "æł¼", "èĥĮæĻ¯", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġs", "ht", ".", "Range", "(\"", "A", "1", "\").", "B", "orders", ".", "Line", "Style", "Ġ=", "Ġxl", "Double", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", ".", "Cells", "(", "row", ",", "Ġcol", ").", "Border", "Around", "(", "1", ",", "Ġ", "4", ")", "Ġ", "Ġ#", "Ġ", "表", "æł¼", "è¾¹", "æ¡Ĩ", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", ".", "Rows", "(", "3", ").", "Row", "Height", "Ġ=", "Ġ", "3", "0", "Ġ", "Ġ#", "Ġ", "è¡Į", "é«ĺ", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", ".", "Cells", "(", "row", ",", "Ġcol", ").", "Horizontal", "Alignment", "Ġ=", "Ġ-", "4", "1", "3", "1", "Ġ", "Ġ#", "Ġæ", "°", "´", "å¹³", "å±ħ", "ä¸Ń", "xl", "Center", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", ".", "Cells", "(", "row", ",", "Ġcol", ").", "Vertical", "Alignment", "Ġ=", "Ġ-", "4", "1", "6", "0", "Ġ", "Ġ#", "ĊĊĠĠĠ", "Ġdef", "Ġrow", "Height", "Oper", "(", "self", ",", "Ġsheet", ",", "Ġrow", ",", "Ġheight", "):", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", "Ġ=", "Ġself", ".", "xl", "Book", ".", "Work", "sheets", "(", "sheet", ")", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", ".", "Rows", "(", "row", ").", "Row", "Height", "Ġ=", "Ġheight", "ĊĊĠĠĠ", "Ġdef", "Ġdelete", "Row", "(", "self", ",", "Ġsheet", ",", "Ġrow", "):", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", "Ġ=", "Ġself", ".", "xl", "Book", ".", "Work", "sheets", "(", "sheet", ")", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", ".", "Rows", "(", "row", ").", "Delete", "()", "Ġ", "Ġ#", "ĠåĪłéϤ", "è¡Į", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", ".", "Columns", "(", "row", ").", "Delete", "()", "Ġ", "Ġ#", "ĠåĪłéϤ", "åĪĹ", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Range", "(", "self", ",", "Ġsheet", ",", "Ġrow", "1", ",", "Ġcol", "1", ",", "Ġrow", "2", ",", "Ġcol", "2", "):", "Ġ", "Ġ#", "Ġ", "èİ·å¾Ĺ", "ä¸Ģ", "åĿĹ", "åĮºåŁŁ", "çļĦæķ°æį®", "ï¼Į", "è¿ĶåĽŀ", "为", "ä¸Ģ个", "äºĮ", "ç»´", "åħĥ", "ç»Ħ", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "return", "Ġa", "Ġ", "2", "d", "Ġarray", "Ġ(", "i", ".", "e", ".", "Ġtuple", "Ġof", "Ġtuples", ")\"", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", "Ġ=", "Ġself", ".", "xl", "Book", ".", "Work", "sheets", "(", "sheet", ")", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġs", "ht", ".", "Range", "(", "s", "ht", ".", "Cells", "(", "row", "1", ",", "Ġcol", "1", "),", "Ġs", "ht", ".", "Cells", "(", "row", "2", ",", "Ġcol", "2", ")).", "Value", "ĊĊĠĠĠ", "Ġdef", "Ġadd", "Picture", "(", "self", ",", "Ġsheet", ",", "Ġpicture", "Name", ",", "ĠLeft", ",", "ĠTop", ",", "ĠWidth", ",", "ĠHeight", "):", "Ġ", "Ġ#", "Ġæı", "Ĵ", "åħ¥", "åĽ¾çīĩ", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "Insert", "Ġa", "Ġpicture", "Ġin", "Ġsheet", "\"", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", "Ġ=", "Ġself", ".", "xl", "Book", ".", "Work", "sheets", "(", "sheet", ")", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", ".", "Shapes", ".", "Add", "Picture", "(", "picture", "Name", ",", "Ġ", "1", ",", "Ġ", "1", ",", "ĠLeft", ",", "ĠTop", ",", "ĠWidth", ",", "ĠHeight", ")", "ĊĊĠĠĠ", "Ġdef", "Ġcp", "Sheet", "(", "self", ",", "Ġbefore", "):", "Ġ", "Ġ#", "Ġ", "å¤įåζ", "å·¥ä½ľ", "表", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "copy", "Ġsheet", "\"", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", "s", "Ġ=", "Ġself", ".", "xl", "Book", ".", "Work", "sheets", "ĊĠĠĠĠĠĠĠ", "Ġs", "ht", "s", "(", "1", ").", "Copy", "(", "None", ",", "Ġs", "ht", "s", "(", "1", "))", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Row", "Height", "(", "self", ",", "ĠOper", "Str", "):", "Ġ", "Ġ#", "Ġ", "è¡Į", "é«ĺ", "æĵįä½ľ", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Col", "Width", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Formula", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Function", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Sort", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Chart", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Box", "Line", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Oper", "From", "Str", "(", "self", ",", "ĠOper", "Str", "):", "Ġ", "Ġ#", "Ġæł¹æį®", "å°ı", "é¢ĺ", "æĸĩæľ¬", "éĢīæĭ©", "对åºĶçļĦ", "æĵįä½ľ", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "è¡Į", "é«ĺ", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "è¡Į", "é«ĺ", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Row", "Height", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "è¡Į", "é«ĺ", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "åĪĹ", "宽", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "åĪĹ", "宽", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Col", "Width", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "åĪĹ", "宽", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "åħ¬", "å¼ı", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "åħ¬", "å¼ı", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Formula", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "åħ¬", "å¼ı", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "åĩ½æķ°", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "åĩ½æķ°", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Function", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "åĩ½æķ°", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "æīĢæľī", "æ¡Ĩ", "线", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "æīĢæľī", "æ¡Ĩ", "线", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Box", "Line", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "æīĢæľī", "æ¡Ĩ", "线", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "æİĴåºı", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "æİĴåºı", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Sort", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "æİĴåºı", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "åĽ¾", "表", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "åĽ¾", "表", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Chart", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "åĽ¾", "表", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊ", "Ċ", "\"\"\"", "Ċ", "P", "PT", "æĵįä½ľ", "éĥ¨åĪĨ", "说æĺİ", "ï¼ļ", "Ċ", "1", ".", "åĬ¨çĶ»", "æķĪæŀľ", "Ċ", "2", ".", "åĪĩæį¢", "æķĪæŀľ", "Ċ", "3", ".", "è¶ħ", "级", "éĵ¾æİ¥", "Ċ", "4", ".", "èĥĮæĻ¯", "Ċ", "5", ".", "æıĴåħ¥", "ï¼Į", "åĽ¾çīĩ", "ï¼Į", "声", "éŁ³", "ï¼Į", "è§Ĩé¢ij", "Ċ", "Ċ", "èĢĥ", "è¯ķ", "æł·", "ä¾ĭ", "ï¼ļ", "Ċ", "1", ".", "åľ¨", "第", "åĽĽ", "å¼ł", "å¹", "»", "çģ", "¯", "çīĩ", "çļĦ", "ä¸Ĭ", "æĸ¹", "æıĴåħ¥", "æ¨", "ª", "æİĴ", "æĸĩæľ¬", "æ¡Ĩ", "ï¼Į", "åľ¨", "æĸĩæľ¬", "æ¡Ĩ", "ä¸Ń", "è¾ĵåħ¥", "âĢľ", "åIJĥ", "æľĪ", "é¥", "¼", "âĢĿï¼Į", "åŃĹ", "ä½ĵ", "é»ij", "ä½ĵ", "ï¼Į", "åŃĹ", "åı·", "3", "2", "ãĢĤ", "Ċ", "2", ".", "å°Ĩ", "第ä¸ī", "å¼ł", "å¹", "»", "çģ", "¯", "çīĩ", "çļĦ", "èĥĮæĻ¯", "å¡«", "åħħ", "æķĪæŀľ", "设置为", "çº", "¹", "çIJĨ", "å¡«", "åħħ", "ï¼Į", "çº", "¹", "çIJĨ", "为", "âĢľ", "é±¼", "ç±»", "åĮĸ", "çŁ³", "âĢĿãĢĤ", "Ċ", "3", ".", "设置", "第ä¸ī", "å¼ł", "å¹", "»", "çģ", "¯", "çīĩ", "çļĦ", "åĪĩæį¢", "æķĪæŀľ", "为", "âĢľ", "æİ¨", "è¿Ľ", "âĢĿï¼Į", "声", "éŁ³", "为", "âĢľ", "é¼", "ĵ", "æİ", "Į", "âĢĿãĢĤ", "Ċ", "4", ".", "ç»Ļ", "第", "åĽĽ", "å¼ł", "å¹", "»", "çģ", "¯", "çīĩ", "åı³", "ä¾§", "çļĦ", "åĽ¾çīĩ", "设置", "è¿Ľåħ¥", "ä¸ŃçļĦ", "âĢľ", "åĬ", "Ī", "è£", "Ĥ", "âĢĿ", "åĬ¨çĶ»", "æķĪæŀľ", "ï¼Į", "æķĪæŀľ", "éĢī项", "为", "âĢľ", "ä¸Ń", "å¤", "®", "åIJij", "ä¸Ĭä¸ĭ", "å±ķ", "å¼Ģ", "âĢĿãĢĤ", "Ċ", "5", ".", "ç»Ļ", "第ä¸ī", "å¼ł", "å¹", "»", "çģ", "¯", "çīĩ", "ä¸ŃçļĦ", "æĸĩåŃĹ", "âĢľ", "èµ", "ı", "æ¡", "Ĥ", "èĬ±", "âĢĿ", "æ·»åĬł", "è¶ħ", "éĵ¾æİ¥", "ï¼Į", "使", "åħ¶", "éĵ¾æİ¥", "åΰ", "第", "äºĶ", "å¼ł", "å¹", "»", "çģ", "¯", "çīĩ", "ãĢĤ", "Ċ", "\"\"\"", "ĊĊ", "Ċ", "class", "ĠP", "pt", "Operation", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "ĠAnimation", "Oper", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "ĠSwitch", "Oper", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "ĠInsert", "Oper", "(", "self", ",", "Ġstyle", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "ĠBackground", "Oper", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "ĠHyper", "link", "Oper", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Animation", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĠĠĠĠĠĠĠ", "Ġpattern", "Ġ=", "Ġre", ".", "compile", "(\"", "âĢľ", "(.*", ")", "âĢĿ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "pattern", ".", "findall", "(", "Oper", "Str", "))", "ĊĠĠĠĠĠĠĠ", "Ġstr", "File", "Ġ=", "Ġstr", "(", "pattern", ".", "findall", "(", "Oper", "Str", "))", "ĊĠĠĠĠĠĠĠ", "Ġfile", "1", "Ġ=", "Ġstr", "File", ".", "split", "(\"", "âĢĿ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġsource", "Ġ=", "Ġfile", "1", "[", "0", "][", "2", ":]", "Ġ", "Ġ#", "Ġ", "èİ·å¾Ĺ", "æºIJ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "source", ")", "ĊĠĠĠĠĠĠĠ", "Ġfile", "2", "Ġ=", "Ġstr", "File", ".", "split", "(\"", "âĢľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġdest", "Ġ=", "Ġfile", "2", "[", "1", "][", "0", ":-", "2", "]", "Ġ", "Ġ#", "Ġ", "èİ·å¾Ĺ", "缮æłĩ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "dest", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Switch", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĠĠĠĠĠĠĠ", "Ġpattern", "Ġ=", "Ġre", ".", "compile", "(\"", "âĢľ", "(.*", ")", "âĢĿ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "pattern", ".", "findall", "(", "Oper", "Str", "))", "ĊĠĠĠĠĠĠĠ", "Ġstr", "File", "Ġ=", "Ġstr", "(", "pattern", ".", "findall", "(", "Oper", "Str", "))", "ĊĠĠĠĠĠĠĠ", "Ġfile", "1", "Ġ=", "Ġstr", "File", ".", "split", "(\"", "âĢĿ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġsource", "Ġ=", "Ġfile", "1", "[", "0", "][", "2", ":]", "Ġ", "Ġ#", "Ġ", "èİ·å¾Ĺ", "æºIJ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "source", ")", "ĊĠĠĠĠĠĠĠ", "Ġfile", "2", "Ġ=", "Ġstr", "File", ".", "split", "(\"", "âĢľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġdest", "Ġ=", "Ġfile", "2", "[", "1", "][", "0", ":-", "2", "]", "Ġ", "Ġ#", "Ġ", "èİ·å¾Ĺ", "缮æłĩ", "æĸĩä»¶", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "dest", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Insert", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Background", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Hyper", "link", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "æŃ£åľ¨", "å®ĮæĪIJ", "è¦ģæ±Ĥ", "\",", "ĠOper", "Str", ")", "ĊĊĠĠĠ", "Ġdef", "Ġjudge", "Oper", "From", "Str", "(", "self", ",", "ĠOper", "Str", "):", "Ġ", "Ġ#", "Ġæł¹æį®", "å°ı", "é¢ĺ", "æĸĩæľ¬", "éĢīæĭ©", "对åºĶçļĦ", "æĵįä½ľ", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "åĬ¨çĶ»", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "åĬ¨çĶ»", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Animation", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "åĬ¨çĶ»", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "åĪĩæį¢", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "åĪĩæį¢", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Switch", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "åĪĩæį¢", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "è¶ħ", "级", "éĵ¾æİ¥", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "è¶ħ", "级", "éĵ¾æİ¥", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Hyper", "link", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "è¶ħ", "级", "éĵ¾æİ¥", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "èĥĮæĻ¯", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "èĥĮæĻ¯", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Background", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "èĥĮæĻ¯", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "æıĴåħ¥", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ľåħ¥", "æıĴåħ¥", "æĵįä½ľ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "judge", "Insert", "(", "Oper", "Str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "ç»ĵæĿŁ", "æıĴåħ¥", "æĵįä½ľ", "\")", "ĊĊ", "Ċ", "\"\"\"", "Ċ", "Input", "æĸĩåŃĹ", "å½ķ", "åħ¥", "æĵįä½ľ", "éĥ¨åĪĨ", "说æĺİ", "ï¼ļ", "Ċ", "èĢĥ", "è¯ķ", "æ³¢", "åıĬ", "çŁ¥è¯Ĩ", "çĤ¹", "ï¼ļ", "Ċ", "com", "对象çļĦ", "è°ĥç͍", "æ¼Ķ", "示", "ï¼ļ", "Ċ", "class", "ĠInput", "Operation", ":", "Ċ", "\"\"\"", "ĊĊ", "Ċ", "class", "ĠOperation", "Type", "J", "udge", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "ĠgetType", "(", "self", ",", "ĠOper", "Str", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "ĠOper", "Str", ".", "find", "(\"", "æĽ¿æį¢", "\")", "Ġ!=", "Ġ-", "1", "Ġor", "ĠOper", "Str", ".", "find", "(\"", "é¦ĸ", "è¡Į", "缩", "è¿Ľ", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ļæĺ¯", "word", "é¢ĺ", "è¦ģæ±Ĥ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "å·²", "转", "word", "é¢ĺ", "å¤ĦçIJĨ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġelif", "ĠOper", "Str", ".", "find", "(\"", "åħ¬", "å¼ı", "\")", "Ġ!=", "Ġ-", "1", "Ġor", "ĠOper", "Str", ".", "find", "(\"", "åĩ½æķ°", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ļæĺ¯", "excel", "é¢ĺ", "è¦ģæ±Ĥ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "å·²", "转", "excel", "é¢ĺ", "å¤ĦçIJĨ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġelif", "ĠOper", "Str", ".", "find", "(\"", "åĪĩæį¢", "\")", "Ġ!=", "Ġ-", "1", "Ġor", "ĠOper", "Str", ".", "find", "(\"", "åĬ¨çĶ»", "\")", "Ġ!=", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "è¿Ļæĺ¯", "ppt", "é¢ĺ", "è¦ģæ±Ĥ", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "å·²", "转", "ppt", "é¢ĺ", "å¤ĦçIJĨ", "\")", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Oper", "a", "Path", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Oper", "a", "FileName", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊ", "Ċ", "\"\"\"", "Ċ", "éĢīæĭ©", "é¢ĺ", "éĥ¨åĪĨ", "说æĺİ", "ï¼ļ", "Ċ", "\"\"\"", "ĊĊ", "Ċ", "class", "ĠSelect", "Operation", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Qu", "set", "ion", "Txt", "(", "self", ",", "Ġitem", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Qu", "set", "ion", "Pic", "(", "self", ",", "Ġitem", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Answer", "(", "self", ",", "Ġitem", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Correct", "Answer", "(", "self", ",", "Ġitem", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊ", "Ċ", "\"\"\"", "Ċ", "åΤæĸŃ", "é¢ĺ", "éĥ¨åĪĨ", "说æĺİ", "ï¼ļ", "Ċ", "\"\"\"", "ĊĊ", "Ċ", "class", "ĠJ", "udge", "Operation", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Qu", "set", "ion", "Txt", "(", "self", ",", "Ġitem", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Qu", "set", "ion", "Pic", "(", "self", ",", "Ġitem", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Answer", "(", "self", ",", "Ġitem", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Correct", "Answer", "(", "self", ",", "Ġitem", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊ", "Ċ", "if", "Ġ__", "name", "__", "Ġ==", "Ġ\"__", "main", "__\":", "ĊĠĠĠ", "Ġwin", "Ġ=", "ĠWin", "Operation", "()", "ĊĠĠĠ", "Ġwin", ".", "judge", "Oper", "From", "Str", "(\"", "1", "ãĢģ", "åľ¨", "âĢľ", "è", "ķ", "¨", "ç±»", "æ¤", "į", "çī©", "âĢĿ", "æĸĩ件夹", "ä¸Ń", "ï¼Į", "æĸ°å»º", "ä¸Ģ个", "åŃIJ", "æĸĩ件夹", "âĢľ", "èĸ", "Ħ", "åĽ", "Ĭ", "è", "ķ", "¨", "ç±»", "âĢĿãĢĤ", "\")", "ĊĠĠĠ", "Ġwin", ".", "judge", "Oper", "From", "Str", "(\"", "2", "ãĢģ", "å°Ĩ", "æĸĩä»¶", "âĢľ", "æ·", "¡", "æ°´", "èĹ", "»", ".", "ddd", "âĢĿ", "ç§»åĬ¨", "åΰ", "âĢľ", "èĹ", "»", "ç±»", "æ¤", "į", "çī©", "âĢĿ", "æĸĩ件夹", "ä¸Ń", "ãĢĤ", "\")", "ĊĠĠĠ", "Ġwin", ".", "judge", "Oper", "From", "Str", "(\"", "3", "ãĢģ", "设置", "âĢľ", "èŀ", "º", "æĹ", "ĭ", "èĹ", "»", ".", "aaa", "âĢĿ", "æĸĩä»¶", "å±ŀæĢ§", "为", "âĢľ", "åıª", "读", "âĢĿãĢĤ", "\")", "ĊĠĠĠ", "Ġwin", ".", "judge", "Oper", "From", "Str", "(\"", "4", "ãĢģ", "åľ¨", "æ¡", "Į", "éĿ¢", "ä¸Ĭ", "建ç«ĭ", "âĢľ", "ç»", "¿", "èī²", "æ¤", "į", "çī©", "âĢĿ", "çļĦ", "å¿«", "æį", "·", "æĸ¹å¼ı", "ãĢĤ", "\")", "ĊĊĠĠĠ", "Ġword", "Ġ=", "ĠWord", "Operation", "()", "ĊĠĠĠ", "Ġword", ".", "judge", "Oper", "From", "Str", "(\"", "1", ".", "Ġå°Ĩ", "æłĩé¢ĺ", "âĢľ", "å¸Ī", "æģ", "©", "éļ¾", "å¿", "ĺ", "âĢĿ", "设置为", "é»ij", "ä½ĵ", "ï¼Į", "å±ħ", "ä¸Ń", "对", "é½IJ", "ãĢĤ", "\")", "ĊĠĠĠ", "Ġword", ".", "judge", "Oper", "From", "Str", "(\"", "2", "ï¼İ", "å°Ĩ", "æĸĩ", "ä¸Ń", "第äºĮ", "段", "ï¼Ī", "è¿Ļ个", "å°ı", "åѦ", "设", "åľ¨", "ä¸Ģ", "座", "åº", "Ļ", "åĨħ", "â̦â̦", "ï¼ī", "设置为", "é¦ĸ", "è¡Į", "缩", "è¿Ľ", "2", "åŃĹ符", "ãĢĤ", "\")", "ĊĠĠĠ", "Ġword", ".", "judge", "Oper", "From", "Str", "(\"", "3", "ï¼İ", "å°Ĩ", "æĸĩ", "ä¸Ń", "æīĢæľīçļĦ", "âĢľ", "çĶ", "°", "èĢģ", "å¸Ī", "âĢĿ", "æĽ¿æį¢", "为", "âĢľ", "çĶ", "°", "åħĪ", "çĶŁ", "âĢĿãĢĤ", "\")", "ĊĠĠĠ", "Ġword", ".", "judge", "Oper", "From", "Str", "(\"", "4", ".", "Ġ设置", "页", "è¾¹", "è·Ŀ", "为", "ä¸Ĭä¸ĭ", "åIJĦ", "2", ".", "5", "åİ", "ĺ", "ç±³", "ï¼Ī", "åºĶç͍", "äºİ", "æķ´", "ç¯ĩ", "æĸĩæ¡£", "ï¼īãĢĤ", "\")", "ĊĠĠĠ", "Ġword", ".", "judge", "Oper", "From", "Str", "(\"", "5", ".", "Ġåľ¨", "æŃ£", "æĸĩ", "ä¸ĭ", "éĿ¢çļĦ", "空", "çϽ", "å¤Ħ", "æıĴåħ¥", "èīº", "æľ¯", "åŃĹ", "ï¼Į", "åĨħ容", "为", "âĢľ", "å¸Ī", "æģ", "©", "éļ¾", "å¿", "ĺ", "âĢĿ", "ï¼Ī", "æł·å¼ı", "ä»»", "éĢī", "ï¼īãĢĤ", "\")", "ĊĊĠĠĠ", "Ġexcel", "Ġ=", "ĠExcel", "Operation", "(", "r", "\"", "c", ":/", "test", ".", "xls", "\")", "ĊĠĠĠ", "Ġexcel", ".", "judge", "Oper", "From", "Str", "(\"", "1", ".", "å°Ĩ", "A", "2", "æīĢåľ¨", "è¡Į", "çļĦ", "è¡Į", "é«ĺ", "设置为", "3", "0", "ï¼Ī", "4", "0", "åĥı", "ç´ł", "ï¼īãĢĤ", "\")", "ĊĠĠĠ", "Ġexcel", ".", "judge", "Oper", "From", "Str", "(\"", "2", ".", "æł¹æį®", "å·¥ä½ľ", "表", "ä¸Ń", "æıIJä¾Ľ", "çļĦ", "åħ¬", "å¼ı", "ï¼Į", "计ç®Ĺ", "åIJĦ", "çıŃ", "级", "çļĦ", "âĢľ", "3", "D", "社", "åĽ¢", "åıĤ", "ä¸İ", "æ¯Ķ", "ä¾ĭ", "âĢĿï¼Į", "å¹¶", "å°Ĩ", "ç»ĵæŀľ", "å¡«åĨĻ", "åľ¨", "F", "3", ":", "F", "7", "åįķåħĥ", "æł¼", "åĨħ", "ãĢĤ", "\")", "ĊĠĠĠ", "Ġexcel", ".", "judge", "Oper", "From", "Str", "(\"", "3", ".", "ç»Ļ", "A", "2", ":", "F", "8", "åįķåħĥ", "æł¼", "åĮºåŁŁ", "åĬł", "æīĢæľī", "æ¡Ĩ", "线", "ãĢĤ", "\")", "ĊĠĠĠ", "Ġexcel", ".", "judge", "Oper", "From", "Str", "(\"", "4", ".", "æĮī", "âĢľ", "æĹł", "人", "æľº", "社", "åĽ¢", "人", "æķ°", "âĢĿ", "çͱ", "é«ĺ", "åΰ", "ä½İ", "æİĴåºı", "ãĢĤ", "\")", "ĊĠĠĠ", "Ġexcel", ".", "judge", "Oper", "From", "Str", "(\"", "5", ".", "éĢī", "å®ļ", "A", "2", ":", "B", "7", "åįķåħĥ", "æł¼", "åĮºåŁŁ", "ï¼Į", "åζ", "ä½ľ", "âĢľ", "ä¸ī", "ç»´", "æĬ", "ĺ", "线", "åĽ¾", "âĢĿï¼Į", "å¹¶", "æıĴåħ¥", "åΰ", "Sheet", "1", "å·¥ä½ľ", "表", "ä¸Ń", "ãĢĤ", "\")", "ĊĊĠĠĠ", "Ġp", "pt", "Ġ=", "ĠP", "pt", "Operation", "()", "ĊĠĠĠ", "Ġp", "pt", ".", "judge", "Oper", "From", "Str", "(\"", "1", ".", "åľ¨", "第", "åĽĽ", "å¼ł", "å¹", "»", "çģ", "¯", "çīĩ", "çļĦ", "ä¸Ĭ", "æĸ¹", "æıĴåħ¥", "æ¨", "ª", "æİĴ", "æĸĩæľ¬", "æ¡Ĩ", "ï¼Į", "åľ¨", "æĸĩæľ¬", "æ¡Ĩ", "ä¸Ń", "è¾ĵåħ¥", "âĢľ", "åIJĥ", "æľĪ", "é¥", "¼", "âĢĿï¼Į", "åŃĹ", "ä½ĵ", "é»ij", "ä½ĵ", "ï¼Į", "åŃĹ", "åı·", "3", "2", "ãĢĤ", "\")", "ĊĠĠĠ", "Ġp", "pt", ".", "judge", "Oper", "From", "Str", "(\"", "2", ".", "å°Ĩ", "第ä¸ī", "å¼ł", "å¹", "»", "çģ", "¯", "çīĩ", "çļĦ", "èĥĮæĻ¯", "å¡«", "åħħ", "æķĪæŀľ", "设置为", "çº", "¹", "çIJĨ", "å¡«", "åħħ", "ï¼Į", "çº", "¹", "çIJĨ", "为", "âĢľ", "é±¼", "ç±»", "åĮĸ", "çŁ³", "âĢĿãĢĤ", "\")", "ĊĠĠĠ", "Ġp", "pt", ".", "judge", "Oper", "From", "Str", "(\"", "3", ".", "设置", "第ä¸ī", "å¼ł", "å¹", "»", "çģ", "¯", "çīĩ", "çļĦ", "åĪĩæį¢", "æķĪæŀľ", "为", "âĢľ", "æİ¨", "è¿Ľ", "âĢĿï¼Į", "声", "éŁ³", "为", "âĢľ", "é¼", "ĵ", "æİ", "Į", "âĢĿãĢĤ", "\")", "ĊĠĠĠ", "Ġp", "pt", ".", "judge", "Oper", "From", "Str", "(\"", "4", ".", "ç»Ļ", "第", "åĽĽ", "å¼ł", "å¹", "»", "çģ", "¯", "çīĩ", "åı³", "ä¾§", "çļĦ", "åĽ¾çīĩ", "设置", "è¿Ľåħ¥", "ä¸ŃçļĦ", "âĢľ", "åĬ", "Ī", "è£", "Ĥ", "âĢĿ", "åĬ¨çĶ»", "æķĪæŀľ", "ï¼Į", "æķĪæŀľ", "éĢī项", "为", "âĢľ", "ä¸Ń", "å¤", "®", "åIJij", "ä¸Ĭä¸ĭ", "å±ķ", "å¼Ģ", "âĢĿãĢĤ", "\")", "ĊĠĠĠ", "Ġp", "pt", ".", "judge", "Oper", "From", "Str", "(\"", "5", ".", "ç»Ļ", "第ä¸ī", "å¼ł", "å¹", "»", "çģ", "¯", "çīĩ", "ä¸ŃçļĦ", "æĸĩåŃĹ", "âĢľ", "èµ", "ı", "æ¡", "Ĥ", "èĬ±", "âĢĿ", "æ·»åĬł", "è¶ħ", "éĵ¾æİ¥", "ï¼Į", "使", "åħ¶", "éĵ¾æİ¥", "åΰ", "第", "äºĶ", "å¼ł", "å¹", "»", "çģ", "¯", "çīĩ", "ãĢĤ", "\")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 10, 10, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 25, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 70, 70, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 88, 88, 88, 88, 88, 89, 89, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 103, 103, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 116, 116, 116, 116, 116, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 119, 119, 119, 119, 119, 120, 120, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, 129, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 132, 132, 132, 132, 132, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 135, 135, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 138, 138, 138, 138, 138, 138, 138, 138, 139, 139, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 142, 142, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 146, 146, 146, 146, 146, 146, 146, 147, 147, 147, 147, 147, 147, 147, 147, 147, 148, 148, 148, 148, 148, 148, 148, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 150, 150, 150, 150, 150, 150, 150, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 152, 152, 152, 152, 152, 152, 152, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 154, 154, 154, 154, 154, 154, 154, 155, 155, 155, 155, 155, 155, 155, 155, 155, 156, 156, 156, 156, 156, 156, 156, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 158, 158, 158, 158, 158, 158, 158, 159, 159, 159, 159, 159, 159, 159, 159, 159, 160, 160, 160, 160, 160, 160, 160, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 162, 162, 162, 162, 162, 162, 162, 162, 163, 163, 163, 163, 163, 163, 163, 163, 163, 164, 164, 164, 164, 164, 164, 164, 164, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 166, 166, 166, 166, 166, 166, 166, 167, 167, 167, 167, 167, 167, 167, 167, 167, 168, 168, 168, 168, 168, 168, 168, 170, 171, 171, 172, 172, 172, 172, 172, 172, 173, 173, 173, 173, 173, 173, 173, 173, 174, 174, 174, 174, 174, 175, 175, 175, 175, 175, 176, 176, 176, 176, 176, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 178, 178, 178, 178, 178, 178, 178, 178, 178, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 185, 185, 185, 185, 185, 185, 186, 186, 188, 189, 189, 189, 189, 189, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 192, 192, 192, 193, 193, 193, 193, 193, 193, 194, 194, 194, 195, 195, 195, 195, 195, 195, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 198, 198, 198, 198, 198, 199, 199, 199, 199, 199, 199, 199, 200, 200, 200, 201, 201, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 204, 204, 204, 204, 204, 204, 206, 206, 206, 206, 206, 206, 206, 207, 207, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 210, 210, 212, 212, 212, 212, 212, 212, 212, 212, 212, 213, 213, 215, 215, 215, 215, 215, 215, 215, 216, 216, 218, 218, 218, 218, 218, 218, 218, 219, 219, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 238, 238, 238, 238, 238, 238, 238, 238, 239, 239, 239, 239, 239, 239, 239, 239, 239, 240, 240, 240, 240, 240, 240, 240, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 242, 242, 242, 242, 242, 242, 242, 242, 243, 243, 243, 243, 243, 243, 243, 243, 243, 244, 244, 244, 244, 244, 244, 244, 244, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 246, 246, 246, 246, 246, 246, 246, 247, 247, 247, 247, 247, 247, 247, 247, 247, 248, 248, 248, 248, 248, 248, 248, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 250, 250, 250, 250, 250, 250, 250, 250, 250, 251, 251, 251, 251, 251, 251, 251, 251, 251, 252, 252, 252, 252, 252, 252, 252, 252, 252, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 254, 254, 254, 254, 254, 254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 256, 256, 256, 256, 256, 256, 256, 256, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 258, 258, 258, 258, 258, 258, 258, 259, 259, 259, 259, 259, 259, 259, 259, 259, 260, 260, 260, 260, 260, 260, 260, 262, 263, 263, 264, 264, 264, 264, 264, 264, 265, 265, 265, 265, 265, 265, 265, 265, 266, 266, 266, 266, 266, 266, 266, 267, 267, 267, 267, 267, 268, 268, 268, 268, 268, 268, 269, 269, 269, 269, 270, 270, 270, 270, 270, 270, 271, 272, 272, 272, 272, 272, 272, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 278, 279, 279, 281, 282, 282, 282, 282, 282, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 285, 285, 285, 285, 286, 286, 286, 286, 286, 286, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 288, 288, 288, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 290, 290, 290, 290, 290, 290, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 293, 293, 293, 293, 293, 294, 294, 294, 294, 294, 294, 294, 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, 296, 296, 296, 297, 297, 297, 297, 297, 297, 297, 297, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 301, 301, 301, 301, 301, 301, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 304, 304, 304, 304, 304, 304, 304, 304, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 309, 309, 309, 309, 309, 309, 309, 309, 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 314, 314, 314, 314, 314, 314, 314, 314, 315, 315, 315, 315, 315, 315, 315, 315, 315, 315, 315, 315, 315, 315, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 327, 327, 327, 327, 327, 327, 327, 327, 327, 327, 327, 327, 327, 327, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 337, 337, 337, 337, 337, 337, 337, 337, 337, 337, 337, 337, 337, 337, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 341, 341, 341, 341, 341, 341, 341, 341, 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 346, 346, 346, 346, 346, 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 363, 363, 363, 363, 363, 363, 363, 363, 363, 363, 365, 365, 365, 365, 365, 365, 365, 365, 365, 365, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 368, 368, 368, 368, 368, 368, 368, 368, 368, 368, 368, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 372, 372, 372, 372, 372, 372, 372, 372, 372, 372, 372, 372, 372, 372, 373, 373, 373, 373, 373, 373, 373, 373, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 375, 375, 375, 375, 375, 375, 375, 375, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 377, 377, 377, 377, 377, 377, 377, 377, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 379, 379, 379, 379, 379, 379, 379, 379, 380, 380, 380, 380, 380, 380, 380, 380, 380, 380, 380, 380, 380, 380, 381, 381, 381, 381, 381, 381, 381, 381, 382, 382, 382, 382, 382, 382, 382, 382, 382, 383, 383, 383, 383, 383, 383, 383, 383, 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, 385, 385, 385, 385, 385, 385, 385, 386, 386, 386, 386, 386, 386, 386, 386, 386, 387, 387, 387, 387, 387, 387, 387, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 389, 389, 389, 389, 389, 389, 389, 389, 389, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 391, 391, 391, 391, 391, 391, 391, 391, 391, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 393, 393, 393, 393, 393, 393, 393, 394, 394, 394, 394, 394, 394, 394, 394, 394, 395, 395, 395, 395, 395, 395, 395, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 397, 397, 397, 397, 397, 397, 397, 397, 398, 398, 398, 398, 398, 398, 398, 398, 398, 399, 399, 399, 399, 399, 399, 399, 399, 400, 400, 402, 403, 403, 404, 404, 404, 404, 404, 404, 404, 405, 405, 405, 405, 405, 406, 406, 406, 406, 406, 407, 407, 407, 407, 407, 407, 408, 408, 408, 408, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 410, 411, 411, 411, 411, 411, 411, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 417, 417, 419, 420, 420, 420, 420, 420, 420, 421, 421, 421, 421, 421, 421, 421, 422, 422, 424, 424, 424, 424, 424, 424, 424, 425, 425, 427, 427, 427, 427, 427, 427, 427, 428, 428, 430, 430, 430, 430, 430, 430, 430, 430, 430, 431, 431, 433, 433, 433, 433, 433, 433, 433, 434, 434, 436, 436, 436, 436, 436, 436, 436, 436, 437, 437, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 443, 443, 443, 443, 443, 443, 443, 443, 443, 443, 443, 443, 443, 444, 444, 444, 444, 444, 444, 444, 444, 444, 444, 444, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 446, 446, 446, 446, 446, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 449, 449, 449, 449, 449, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 455, 455, 455, 455, 455, 455, 455, 455, 455, 455, 455, 455, 455, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 458, 458, 458, 458, 458, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 461, 461, 461, 461, 461, 463, 463, 463, 463, 463, 463, 463, 463, 463, 463, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 466, 466, 466, 466, 466, 466, 466, 466, 466, 466, 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 474, 474, 474, 474, 474, 474, 474, 475, 475, 475, 475, 475, 475, 475, 475, 475, 476, 476, 476, 476, 476, 476, 476, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 478, 478, 478, 478, 478, 478, 478, 479, 479, 479, 479, 479, 479, 479, 479, 479, 480, 480, 480, 480, 480, 480, 480, 481, 481, 481, 481, 481, 481, 481, 481, 481, 481, 481, 481, 481, 481, 481, 482, 482, 482, 482, 482, 482, 482, 482, 482, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 484, 484, 484, 484, 484, 484, 484, 484, 484, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 486, 486, 486, 486, 486, 486, 486, 487, 487, 487, 487, 487, 487, 487, 487, 487, 488, 488, 488, 488, 488, 488, 488, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 490, 490, 490, 490, 490, 490, 490, 491, 491, 491, 491, 491, 491, 491, 491, 491, 492, 492, 492, 492, 492, 492, 492, 494, 495, 495, 496, 496, 496, 496, 496, 496, 496, 496, 496, 497, 497, 497, 497, 497, 497, 497, 497, 498, 498, 498, 498, 498, 498, 498, 499, 499, 499, 499, 499, 500, 500, 502, 503, 503, 503, 503, 503, 503, 503, 504, 504, 504, 504, 504, 504, 504, 505, 505, 507, 507, 507, 507, 507, 507, 507, 507, 507, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 509, 509, 509, 509, 509, 509, 509, 509, 510, 510, 510, 510, 510, 510, 510, 510, 510, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 512, 512, 512, 512, 512, 512, 512, 512, 513, 513, 513, 513, 513, 513, 513, 513, 513, 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, 515, 515, 515, 515, 515, 515, 515, 515, 516, 516, 516, 516, 516, 516, 516, 516, 516, 517, 517, 519, 519, 519, 519, 519, 519, 519, 519, 519, 520, 520, 522, 522, 522, 522, 522, 522, 522, 522, 522, 523, 523, 525, 526, 526, 527, 527, 527, 527, 527, 527, 528, 528, 530, 531, 531, 531, 531, 531, 532, 532, 532, 532, 532, 532, 532, 533, 533, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 536, 536, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 539, 539, 541, 541, 541, 541, 541, 541, 541, 541, 541, 542, 542, 544, 544, 544, 544, 544, 544, 544, 544, 544, 544, 545, 545, 547, 548, 548, 549, 549, 549, 549, 549, 549, 550, 550, 552, 553, 553, 553, 553, 553, 553, 554, 554, 554, 554, 554, 554, 554, 555, 555, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 558, 558, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 561, 561, 563, 563, 563, 563, 563, 563, 563, 563, 563, 564, 564, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 567, 567, 569, 570, 570, 570, 570, 570, 570, 570, 570, 570, 571, 571, 571, 571, 571, 571, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 577, 577, 577, 577, 577, 577, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 591, 591, 591, 591, 591, 591, 591, 591, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596 ]
[ 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 3, 9, 11, 13, 15, 16, 18, 19, 1, 5, 9, 10, 11, 14, 15, 21, 28, 37, 1, 7, 11, 12, 13, 16, 17, 23, 1, 7, 12, 1, 7, 10, 1, 7, 10, 1, 7, 11, 12, 13, 16, 1, 1, 4, 1, 8, 10, 12, 14, 15, 1, 2, 3, 4, 5, 7, 8, 9, 1, 2, 3, 5, 7, 8, 11, 1, 2, 3, 5, 7, 8, 11, 1, 2, 3, 5, 7, 8, 11, 1, 2, 3, 5, 6, 9, 10, 11, 1, 2, 3, 5, 7, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 5, 5, 6, 7, 7, 8, 9, 10, 13, 14, 15, 17, 19, 20, 23, 24, 24, 25, 25, 26, 26, 26, 27, 28, 30, 1, 2, 3, 4, 6, 7, 7, 8, 9, 9, 10, 11, 14, 15, 17, 18, 19, 19, 20, 21, 21, 22, 23, 24, 27, 28, 29, 1, 2, 3, 5, 6, 6, 7, 7, 8, 8, 9, 10, 13, 14, 16, 18, 19, 20, 21, 22, 24, 1, 2, 3, 4, 4, 5, 6, 7, 9, 10, 10, 11, 12, 12, 13, 14, 15, 16, 17, 17, 18, 20, 21, 1, 4, 1, 1, 6, 10, 19, 20, 4, 8, 11, 15, 18, 22, 24, 8, 13, 14, 15, 17, 19, 23, 25, 28, 8, 13, 14, 18, 22, 24, 27, 8, 13, 14, 18, 26, 28, 31, 8, 13, 14, 20, 28, 30, 33, 4, 8, 11, 13, 14, 18, 19, 24, 32, 34, 35, 37, 40, 42, 43, 46, 8, 14, 16, 18, 20, 22, 27, 35, 36, 8, 13, 4, 8, 15, 16, 20, 21, 28, 36, 37, 42, 50, 52, 53, 55, 58, 59, 60, 8, 14, 15, 21, 29, 30, 32, 34, 35, 36, 37, 39, 44, 52, 53, 8, 13, 4, 8, 12, 13, 17, 18, 25, 33, 34, 39, 47, 49, 50, 52, 53, 55, 57, 8, 14, 15, 21, 29, 30, 32, 34, 36, 37, 39, 44, 52, 53, 8, 13, 4, 8, 13, 14, 18, 19, 26, 34, 35, 40, 48, 50, 51, 53, 54, 56, 58, 8, 14, 15, 21, 29, 30, 32, 34, 36, 37, 39, 44, 52, 53, 8, 13, 4, 8, 13, 14, 18, 19, 24, 32, 34, 35, 37, 40, 42, 8, 14, 16, 18, 20, 22, 27, 35, 36, 8, 13, 4, 8, 13, 19, 27, 28, 32, 33, 37, 39, 43, 44, 51, 59, 61, 8, 15, 22, 30, 4, 8, 13, 17, 25, 26, 30, 31, 36, 40, 41, 46, 54, 56, 8, 15, 20, 28, 4, 8, 14, 17, 18, 22, 23, 28, 31, 33, 34, 36, 38, 40, 41, 43, 45, 47, 48, 51, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 8, 16, 18, 21, 22, 29, 31, 32, 35, 36, 37, 39, 8, 14, 15, 22, 23, 30, 31, 35, 38, 40, 8, 12, 16, 18, 22, 23, 30, 31, 38, 39, 43, 46, 48, 8, 13, 14, 16, 20, 24, 25, 30, 32, 33, 35, 8, 15, 17, 22, 23, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37, 39, 8, 14, 15, 21, 22, 8, 13, 14, 16, 20, 24, 25, 30, 32, 33, 35, 8, 13, 15, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 33, 34, 36, 38, 40, 8, 14, 15, 19, 20, 8, 13, 4, 8, 14, 16, 18, 19, 23, 24, 29, 32, 34, 35, 37, 39, 41, 42, 44, 46, 48, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 8, 16, 18, 21, 22, 29, 31, 32, 35, 36, 37, 39, 8, 14, 15, 22, 23, 30, 31, 35, 38, 40, 8, 13, 4, 8, 14, 20, 21, 25, 26, 31, 34, 36, 37, 39, 41, 43, 44, 46, 47, 49, 51, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 8, 16, 18, 21, 22, 29, 31, 32, 35, 36, 37, 39, 8, 14, 15, 22, 23, 30, 31, 35, 38, 40, 8, 12, 16, 18, 22, 23, 30, 31, 38, 39, 43, 46, 48, 8, 13, 14, 16, 20, 24, 25, 30, 32, 33, 35, 8, 15, 17, 22, 23, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37, 39, 8, 14, 15, 21, 22, 8, 13, 14, 16, 20, 24, 25, 30, 32, 33, 35, 8, 13, 15, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 33, 34, 36, 38, 40, 8, 14, 15, 19, 20, 8, 13, 4, 8, 14, 17, 18, 22, 23, 28, 31, 33, 34, 36, 38, 40, 41, 43, 45, 47, 8, 10, 11, 12, 13, 14, 16, 17, 17, 18, 19, 19, 20, 21, 24, 25, 27, 28, 29, 29, 30, 31, 31, 32, 33, 34, 37, 38, 39, 41, 43, 44, 46, 8, 10, 11, 13, 14, 15, 17, 18, 20, 22, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 8, 16, 18, 21, 22, 29, 31, 32, 35, 36, 37, 39, 8, 14, 15, 22, 23, 30, 31, 35, 38, 40, 8, 12, 16, 18, 22, 23, 30, 31, 38, 39, 43, 46, 48, 8, 13, 14, 16, 20, 24, 25, 30, 32, 33, 35, 8, 15, 17, 22, 23, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37, 39, 8, 14, 15, 21, 22, 8, 13, 14, 16, 20, 24, 25, 30, 32, 33, 35, 8, 13, 15, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 33, 34, 36, 38, 40, 8, 14, 15, 19, 20, 8, 10, 13, 14, 16, 18, 20, 21, 23, 25, 8, 15, 23, 25, 30, 31, 35, 41, 49, 51, 52, 54, 55, 58, 60, 61, 68, 70, 77, 78, 8, 13, 21, 23, 28, 29, 33, 37, 45, 47, 48, 50, 51, 54, 56, 57, 64, 66, 71, 72, 8, 13, 14, 17, 18, 24, 32, 33, 38, 46, 47, 4, 8, 14, 18, 19, 23, 24, 29, 32, 34, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 8, 16, 18, 21, 22, 29, 31, 32, 35, 36, 37, 39, 8, 14, 15, 22, 23, 30, 31, 35, 38, 40, 8, 12, 16, 18, 22, 23, 30, 31, 38, 39, 43, 46, 48, 8, 13, 14, 16, 20, 24, 25, 30, 32, 33, 35, 8, 15, 17, 22, 23, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37, 39, 8, 14, 15, 21, 22, 8, 13, 14, 16, 20, 24, 25, 30, 32, 33, 35, 8, 13, 15, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 33, 34, 36, 38, 40, 8, 14, 15, 19, 20, 8, 13, 4, 8, 14, 18, 19, 23, 24, 29, 32, 34, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 8, 16, 18, 21, 22, 29, 31, 32, 35, 36, 37, 39, 8, 14, 15, 22, 23, 30, 31, 35, 38, 40, 8, 12, 16, 18, 22, 23, 30, 31, 38, 39, 43, 46, 48, 8, 13, 14, 16, 20, 24, 25, 30, 32, 33, 35, 8, 15, 17, 22, 23, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37, 39, 8, 14, 15, 21, 22, 8, 13, 14, 16, 20, 24, 25, 30, 32, 33, 35, 8, 13, 15, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 33, 34, 36, 38, 40, 8, 14, 15, 19, 20, 8, 11, 18, 22, 23, 24, 27, 28, 31, 35, 45, 46, 54, 55, 58, 59, 60, 63, 64, 68, 69, 78, 79, 85, 86, 8, 11, 18, 22, 23, 24, 27, 28, 31, 35, 45, 46, 54, 55, 58, 59, 60, 63, 64, 68, 69, 78, 79, 85, 86, 8, 13, 4, 8, 14, 18, 22, 26, 27, 31, 32, 37, 40, 44, 46, 47, 49, 52, 53, 54, 55, 57, 60, 62, 8, 12, 17, 20, 25, 28, 32, 33, 12, 17, 4, 8, 12, 16, 19, 23, 31, 32, 36, 37, 46, 48, 49, 51, 53, 55, 56, 57, 58, 59, 60, 61, 62, 64, 8, 13, 4, 8, 14, 18, 22, 25, 26, 30, 31, 36, 39, 41, 42, 44, 47, 48, 49, 51, 53, 56, 58, 8, 11, 16, 19, 20, 24, 26, 28, 30, 33, 35, 36, 37, 12, 18, 20, 22, 24, 26, 28, 12, 17, 18, 23, 26, 27, 31, 34, 35, 12, 18, 20, 22, 24, 26, 28, 8, 11, 16, 19, 20, 24, 26, 28, 30, 33, 35, 36, 37, 12, 18, 20, 22, 24, 26, 28, 12, 17, 18, 23, 25, 27, 28, 32, 35, 36, 12, 18, 20, 22, 24, 26, 28, 8, 11, 16, 19, 20, 24, 26, 28, 30, 33, 35, 36, 37, 12, 18, 20, 22, 24, 26, 28, 12, 17, 18, 23, 27, 28, 32, 35, 36, 12, 18, 20, 22, 24, 26, 28, 8, 11, 16, 19, 20, 24, 26, 28, 30, 33, 35, 36, 37, 12, 18, 20, 22, 24, 26, 28, 12, 17, 18, 23, 26, 27, 31, 34, 35, 12, 18, 20, 22, 24, 26, 28, 8, 11, 16, 19, 20, 24, 26, 27, 28, 30, 33, 35, 36, 37, 12, 18, 20, 22, 23, 24, 26, 28, 12, 17, 18, 23, 29, 30, 34, 37, 38, 12, 18, 20, 22, 23, 24, 26, 28, 8, 11, 16, 19, 20, 24, 26, 28, 30, 33, 35, 36, 37, 12, 18, 20, 22, 24, 26, 28, 12, 17, 18, 23, 27, 28, 32, 35, 36, 12, 18, 20, 22, 24, 26, 28, 1, 1, 4, 1, 5, 7, 9, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 5, 7, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 5, 7, 8, 9, 9, 10, 11, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 13, 14, 15, 16, 17, 18, 18, 19, 20, 22, 23, 26, 27, 28, 29, 30, 31, 33, 34, 1, 2, 3, 4, 5, 6, 9, 10, 10, 11, 12, 13, 14, 16, 17, 18, 18, 19, 20, 21, 23, 1, 2, 3, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 16, 17, 18, 19, 21, 22, 23, 24, 26, 28, 1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 15, 16, 17, 18, 19, 21, 22, 23, 24, 24, 25, 26, 26, 27, 28, 29, 31, 32, 33, 35, 1, 2, 3, 4, 5, 6, 1, 4, 1, 1, 6, 11, 20, 21, 4, 8, 11, 15, 18, 22, 23, 32, 33, 37, 39, 40, 42, 43, 45, 47, 49, 51, 53, 54, 56, 59, 61, 62, 8, 13, 14, 18, 21, 23, 27, 28, 29, 32, 33, 39, 40, 48, 50, 54, 55, 66, 68, 8, 11, 20, 21, 12, 17, 18, 26, 28, 37, 8, 13, 14, 12, 17, 18, 26, 28, 31, 4, 8, 13, 14, 18, 19, 23, 31, 32, 36, 38, 39, 41, 42, 44, 46, 8, 11, 15, 23, 24, 12, 17, 18, 26, 28, 32, 40, 8, 13, 14, 12, 17, 4, 8, 14, 15, 19, 21, 22, 24, 25, 27, 29, 8, 12, 17, 18, 22, 25, 4, 8, 13, 17, 18, 22, 24, 8, 13, 4, 8, 16, 20, 21, 25, 26, 33, 34, 39, 41, 8, 13, 4, 8, 15, 19, 20, 24, 25, 31, 33, 8, 13, 4, 8, 13, 17, 18, 22, 24, 8, 13, 4, 8, 18, 22, 23, 27, 29, 8, 13, 4, 8, 14, 18, 19, 23, 24, 29, 32, 34, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 4, 8, 14, 18, 19, 23, 24, 29, 32, 34, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 4, 8, 14, 21, 22, 26, 27, 32, 35, 37, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 4, 8, 14, 20, 21, 25, 26, 31, 34, 36, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 4, 8, 14, 23, 24, 28, 29, 34, 37, 39, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 4, 8, 14, 18, 22, 25, 26, 30, 31, 36, 39, 41, 42, 44, 47, 48, 49, 51, 53, 56, 58, 8, 11, 16, 19, 20, 24, 26, 28, 30, 33, 35, 36, 39, 44, 47, 48, 52, 54, 55, 56, 58, 61, 63, 64, 67, 72, 75, 76, 80, 82, 83, 84, 85, 86, 88, 91, 93, 94, 95, 12, 18, 20, 22, 23, 24, 26, 28, 12, 17, 18, 23, 27, 28, 32, 35, 36, 12, 18, 20, 22, 23, 24, 26, 8, 13, 18, 21, 22, 26, 28, 29, 30, 31, 32, 34, 37, 39, 40, 43, 48, 51, 52, 56, 58, 59, 60, 62, 65, 67, 68, 69, 12, 18, 20, 22, 23, 24, 26, 28, 12, 17, 18, 23, 32, 33, 37, 40, 41, 12, 18, 20, 22, 23, 24, 26, 28, 8, 13, 18, 21, 22, 26, 28, 30, 32, 35, 37, 38, 39, 12, 18, 20, 22, 24, 26, 28, 12, 17, 18, 23, 29, 30, 34, 37, 38, 12, 18, 20, 22, 24, 26, 28, 8, 13, 18, 21, 22, 26, 28, 29, 30, 31, 33, 36, 38, 39, 40, 12, 18, 20, 22, 23, 24, 25, 27, 29, 12, 17, 18, 23, 27, 28, 32, 35, 36, 12, 18, 20, 22, 23, 24, 25, 27, 29, 8, 13, 18, 21, 22, 26, 28, 29, 30, 32, 35, 37, 38, 39, 12, 18, 20, 22, 23, 24, 26, 28, 12, 17, 18, 23, 27, 28, 32, 35, 36, 12, 18, 20, 22, 23, 24, 26, 28, 8, 13, 18, 21, 22, 26, 28, 30, 32, 35, 37, 38, 39, 12, 18, 20, 22, 24, 26, 28, 12, 17, 18, 23, 30, 31, 35, 38, 39, 12, 18, 20, 22, 24, 26, 28, 1, 1, 4, 1, 6, 8, 10, 12, 13, 1, 2, 3, 4, 5, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 5, 7, 1, 2, 3, 4, 5, 7, 1, 2, 3, 5, 1, 2, 3, 5, 6, 7, 1, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 15, 16, 17, 18, 19, 20, 21, 22, 24, 1, 2, 3, 5, 7, 8, 9, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 36, 38, 39, 40, 41, 42, 43, 44, 46, 47, 48, 49, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 14, 15, 17, 18, 19, 20, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 15, 16, 17, 18, 19, 20, 21, 21, 22, 23, 24, 26, 27, 29, 30, 35, 36, 38, 39, 40, 41, 1, 1, 4, 1, 1, 6, 12, 21, 22, 4, 8, 11, 15, 18, 22, 23, 32, 33, 37, 39, 40, 42, 43, 45, 47, 49, 51, 53, 54, 56, 59, 61, 62, 8, 13, 14, 16, 19, 21, 25, 26, 27, 30, 31, 37, 38, 46, 48, 53, 54, 65, 67, 8, 11, 20, 21, 12, 17, 18, 26, 28, 37, 12, 17, 18, 20, 24, 26, 31, 32, 34, 37, 38, 42, 47, 48, 52, 53, 61, 62, 8, 13, 14, 12, 17, 18, 20, 24, 26, 31, 32, 34, 37, 38, 42, 47, 48, 51, 53, 12, 17, 18, 26, 28, 31, 4, 8, 13, 14, 18, 19, 23, 31, 32, 36, 38, 39, 41, 42, 44, 46, 8, 11, 15, 23, 24, 12, 17, 18, 26, 28, 32, 40, 12, 17, 18, 20, 24, 25, 29, 31, 32, 35, 43, 44, 8, 13, 14, 12, 17, 18, 20, 24, 25, 29, 31, 4, 8, 14, 15, 19, 21, 22, 24, 25, 27, 29, 8, 13, 14, 16, 20, 21, 26, 27, 38, 39, 40, 41, 8, 12, 17, 18, 20, 23, 4, 8, 12, 16, 17, 21, 22, 28, 29, 33, 34, 38, 40, 41, 43, 46, 48, 49, 52, 8, 10, 13, 19, 22, 26, 31, 32, 8, 10, 12, 14, 19, 20, 22, 26, 27, 31, 37, 38, 43, 44, 8, 15, 17, 19, 20, 25, 26, 29, 30, 34, 36, 41, 4, 8, 12, 16, 17, 21, 22, 28, 29, 33, 34, 38, 39, 45, 47, 48, 50, 53, 55, 56, 59, 8, 10, 13, 19, 22, 26, 31, 32, 8, 10, 12, 14, 19, 20, 22, 26, 27, 31, 37, 38, 43, 44, 8, 10, 12, 13, 18, 19, 22, 23, 27, 29, 34, 36, 42, 4, 8, 12, 15, 20, 22, 23, 27, 28, 34, 35, 39, 40, 44, 46, 47, 49, 52, 54, 55, 58, 8, 10, 13, 19, 22, 26, 31, 32, 8, 10, 12, 14, 19, 20, 22, 26, 27, 31, 37, 38, 43, 44, 8, 10, 12, 13, 18, 19, 22, 23, 27, 29, 33, 34, 38, 40, 41, 42, 43, 44, 46, 47, 48, 49, 51, 8, 10, 12, 13, 18, 19, 22, 23, 27, 29, 33, 34, 38, 40, 45, 46, 48, 51, 52, 53, 8, 10, 12, 13, 18, 19, 22, 23, 27, 29, 33, 34, 38, 40, 42, 47, 48, 49, 51, 52, 53, 54, 56, 8, 10, 12, 13, 18, 19, 22, 23, 27, 29, 37, 38, 43, 48, 50, 51, 52, 53, 55, 56, 57, 58, 60, 8, 10, 12, 14, 15, 20, 22, 23, 24, 27, 28, 34, 35, 39, 44, 46, 49, 55, 8, 10, 12, 13, 18, 19, 22, 23, 27, 29, 35, 41, 42, 43, 44, 45, 46, 47, 48, 50, 51, 52, 53, 54, 55, 8, 10, 12, 13, 17, 18, 19, 21, 24, 30, 32, 33, 34, 35, 36, 38, 39, 40, 41, 8, 10, 12, 13, 18, 19, 22, 23, 27, 29, 39, 48, 50, 52, 53, 54, 55, 56, 57, 59, 60, 60, 61, 62, 63, 64, 66, 72, 8, 10, 12, 13, 18, 19, 22, 23, 27, 29, 37, 46, 48, 50, 51, 52, 53, 54, 55, 57, 4, 8, 12, 18, 22, 23, 27, 28, 34, 35, 39, 40, 47, 49, 8, 10, 12, 14, 19, 20, 22, 26, 27, 31, 37, 38, 43, 44, 8, 10, 12, 13, 17, 18, 21, 23, 26, 32, 34, 41, 4, 8, 15, 18, 19, 23, 24, 30, 31, 35, 37, 8, 10, 12, 14, 19, 20, 22, 26, 27, 31, 37, 38, 43, 44, 8, 10, 12, 13, 17, 18, 21, 23, 29, 31, 32, 34, 37, 38, 8, 10, 12, 13, 20, 21, 24, 26, 32, 34, 35, 37, 40, 41, 4, 8, 12, 17, 18, 22, 23, 29, 30, 34, 35, 36, 40, 41, 42, 46, 47, 48, 52, 53, 55, 56, 58, 59, 61, 62, 63, 65, 68, 69, 71, 72, 74, 75, 76, 77, 78, 8, 10, 16, 18, 19, 20, 21, 27, 29, 30, 31, 32, 33, 39, 42, 49, 51, 8, 10, 12, 14, 19, 20, 22, 26, 27, 31, 37, 38, 43, 44, 8, 15, 17, 19, 20, 25, 26, 27, 29, 30, 35, 36, 39, 40, 41, 45, 46, 48, 50, 52, 53, 58, 59, 62, 63, 64, 68, 69, 72, 77, 4, 8, 12, 19, 20, 24, 25, 31, 32, 40, 44, 45, 50, 51, 55, 56, 62, 63, 70, 72, 73, 75, 76, 77, 78, 80, 8, 10, 16, 18, 26, 29, 35, 36, 8, 10, 12, 14, 19, 20, 22, 26, 27, 31, 37, 38, 43, 44, 8, 10, 12, 13, 19, 20, 23, 30, 31, 38, 42, 43, 44, 45, 46, 47, 48, 49, 54, 55, 59, 60, 66, 67, 74, 75, 4, 8, 11, 16, 17, 21, 22, 29, 31, 32, 34, 35, 37, 39, 40, 8, 10, 14, 20, 21, 8, 10, 12, 13, 15, 20, 21, 23, 27, 28, 32, 38, 8, 10, 12, 13, 14, 15, 17, 21, 22, 26, 27, 29, 31, 32, 33, 34, 36, 4, 8, 14, 17, 23, 24, 28, 29, 34, 37, 39, 40, 42, 43, 44, 45, 47, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 4, 8, 14, 17, 22, 23, 27, 28, 33, 36, 38, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 4, 8, 14, 21, 22, 26, 27, 32, 35, 37, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 4, 8, 14, 22, 23, 27, 28, 33, 36, 38, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 4, 8, 14, 18, 19, 23, 24, 29, 32, 34, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 4, 8, 14, 19, 20, 24, 25, 30, 33, 35, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 4, 8, 14, 17, 21, 22, 26, 27, 32, 35, 37, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 4, 8, 14, 18, 22, 25, 26, 30, 31, 36, 39, 41, 42, 44, 47, 48, 49, 51, 53, 56, 58, 8, 11, 16, 19, 20, 24, 26, 27, 28, 30, 33, 35, 36, 37, 12, 18, 20, 22, 23, 24, 26, 28, 12, 17, 18, 23, 26, 32, 33, 37, 40, 41, 12, 18, 20, 22, 23, 24, 26, 28, 8, 11, 16, 19, 20, 24, 26, 27, 28, 30, 33, 35, 36, 37, 12, 18, 20, 22, 23, 24, 26, 28, 12, 17, 18, 23, 26, 31, 32, 36, 39, 40, 12, 18, 20, 22, 23, 24, 26, 28, 8, 11, 16, 19, 20, 24, 26, 27, 28, 30, 33, 35, 36, 37, 12, 18, 20, 22, 23, 24, 26, 28, 12, 17, 18, 23, 30, 31, 35, 38, 39, 12, 18, 20, 22, 23, 24, 26, 28, 8, 11, 16, 19, 20, 24, 26, 28, 30, 33, 35, 36, 37, 12, 18, 20, 22, 24, 26, 28, 12, 17, 18, 23, 31, 32, 36, 39, 40, 12, 18, 20, 22, 24, 26, 28, 8, 11, 16, 19, 20, 24, 26, 28, 29, 30, 32, 35, 37, 38, 39, 12, 18, 20, 22, 24, 25, 26, 28, 30, 12, 17, 18, 23, 26, 30, 31, 35, 38, 39, 12, 18, 20, 22, 24, 25, 26, 28, 30, 8, 11, 16, 19, 20, 24, 26, 28, 30, 33, 35, 36, 37, 12, 18, 20, 22, 24, 26, 28, 12, 17, 18, 23, 27, 28, 32, 35, 36, 12, 18, 20, 22, 24, 26, 28, 8, 11, 16, 19, 20, 24, 26, 27, 28, 30, 33, 35, 36, 37, 12, 18, 20, 22, 23, 24, 26, 28, 12, 17, 18, 23, 28, 29, 33, 36, 37, 12, 18, 20, 22, 23, 24, 26, 28, 8, 13, 1, 1, 4, 1, 2, 4, 6, 8, 10, 11, 1, 2, 3, 5, 7, 1, 2, 3, 5, 7, 1, 2, 3, 4, 5, 7, 1, 2, 3, 5, 1, 2, 3, 5, 6, 8, 9, 10, 11, 12, 14, 1, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 7, 8, 8, 9, 10, 11, 12, 13, 15, 15, 16, 17, 19, 20, 21, 22, 24, 25, 26, 28, 29, 30, 31, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 1, 2, 3, 4, 6, 7, 7, 8, 8, 9, 10, 11, 13, 14, 15, 17, 20, 20, 21, 22, 23, 24, 25, 25, 26, 27, 28, 29, 30, 31, 32, 33, 35, 1, 2, 3, 5, 7, 8, 8, 9, 9, 10, 11, 12, 14, 16, 17, 18, 19, 20, 22, 23, 24, 25, 26, 26, 27, 27, 28, 30, 1, 2, 3, 4, 5, 6, 7, 7, 8, 8, 9, 10, 11, 12, 13, 15, 17, 19, 21, 22, 22, 23, 23, 24, 25, 27, 29, 30, 32, 34, 35, 36, 37, 37, 38, 39, 41, 42, 43, 45, 1, 2, 3, 4, 6, 7, 7, 8, 8, 9, 10, 12, 14, 15, 15, 16, 16, 17, 18, 19, 21, 22, 24, 25, 26, 27, 29, 30, 31, 32, 33, 33, 34, 34, 35, 36, 37, 1, 4, 1, 1, 6, 8, 10, 19, 20, 4, 8, 11, 15, 18, 22, 24, 8, 13, 4, 8, 18, 22, 23, 27, 29, 8, 13, 4, 8, 15, 19, 20, 24, 26, 8, 13, 4, 8, 15, 19, 20, 24, 25, 31, 33, 8, 13, 4, 8, 19, 23, 24, 28, 30, 8, 13, 4, 8, 14, 18, 22, 23, 27, 29, 8, 13, 4, 8, 14, 23, 24, 28, 29, 34, 37, 39, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 8, 16, 18, 21, 22, 29, 31, 32, 35, 36, 37, 39, 8, 14, 15, 22, 23, 30, 31, 35, 38, 40, 8, 12, 16, 18, 22, 23, 30, 31, 38, 39, 43, 46, 48, 8, 13, 14, 16, 20, 24, 25, 30, 32, 33, 35, 8, 15, 17, 22, 23, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37, 39, 8, 14, 15, 21, 22, 8, 13, 14, 16, 20, 24, 25, 30, 32, 33, 35, 8, 13, 15, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 33, 34, 36, 38, 40, 8, 14, 15, 19, 20, 4, 8, 14, 20, 21, 25, 26, 31, 34, 36, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 8, 16, 18, 21, 22, 29, 31, 32, 35, 36, 37, 39, 8, 14, 15, 22, 23, 30, 31, 35, 38, 40, 8, 12, 16, 18, 22, 23, 30, 31, 38, 39, 43, 46, 48, 8, 13, 14, 16, 20, 24, 25, 30, 32, 33, 35, 8, 15, 17, 22, 23, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37, 39, 8, 14, 15, 21, 22, 8, 13, 14, 16, 20, 24, 25, 30, 32, 33, 35, 8, 13, 15, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 33, 34, 36, 38, 40, 8, 14, 15, 19, 20, 4, 8, 14, 20, 21, 25, 26, 31, 34, 36, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 4, 8, 14, 24, 25, 29, 30, 35, 38, 40, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 4, 8, 14, 19, 23, 24, 28, 29, 34, 37, 39, 8, 14, 16, 18, 20, 22, 24, 29, 32, 33, 4, 8, 14, 18, 22, 25, 26, 30, 31, 36, 39, 41, 42, 44, 47, 48, 49, 51, 53, 56, 58, 8, 11, 16, 19, 20, 24, 26, 28, 30, 33, 35, 36, 37, 12, 18, 20, 22, 24, 26, 28, 12, 17, 18, 23, 32, 33, 37, 40, 41, 12, 18, 20, 22, 24, 26, 28, 8, 11, 16, 19, 20, 24, 26, 28, 30, 33, 35, 36, 37, 12, 18, 20, 22, 24, 26, 28, 12, 17, 18, 23, 29, 30, 34, 37, 38, 12, 18, 20, 22, 24, 26, 28, 8, 11, 16, 19, 20, 24, 26, 27, 28, 30, 32, 35, 37, 38, 39, 12, 18, 20, 22, 23, 24, 26, 28, 30, 12, 17, 18, 23, 28, 32, 33, 37, 40, 41, 12, 18, 20, 22, 23, 24, 26, 28, 30, 8, 11, 16, 19, 20, 24, 26, 28, 30, 33, 35, 36, 37, 12, 18, 20, 22, 24, 26, 28, 12, 17, 18, 23, 33, 34, 38, 41, 42, 12, 18, 20, 22, 24, 26, 28, 8, 11, 16, 19, 20, 24, 26, 28, 30, 33, 35, 36, 37, 12, 18, 20, 22, 24, 26, 28, 12, 17, 18, 23, 29, 30, 34, 37, 38, 12, 18, 20, 22, 24, 26, 28, 1, 1, 4, 1, 6, 8, 9, 10, 12, 14, 16, 17, 1, 2, 3, 4, 5, 7, 8, 9, 1, 4, 7, 9, 10, 11, 12, 1, 6, 12, 21, 22, 1, 4, 1, 1, 6, 16, 20, 21, 25, 26, 4, 8, 11, 15, 18, 22, 24, 8, 13, 4, 8, 16, 17, 21, 22, 27, 30, 32, 8, 11, 16, 19, 20, 24, 26, 28, 30, 33, 35, 36, 39, 44, 47, 48, 52, 54, 55, 56, 57, 58, 60, 63, 65, 66, 67, 12, 18, 20, 22, 26, 27, 29, 31, 12, 18, 20, 21, 22, 26, 27, 29, 31, 8, 13, 18, 21, 22, 26, 28, 29, 30, 32, 35, 37, 38, 41, 46, 49, 50, 54, 56, 58, 60, 63, 65, 66, 67, 12, 18, 20, 22, 27, 28, 30, 32, 12, 18, 20, 21, 22, 27, 28, 30, 32, 8, 13, 18, 21, 22, 26, 28, 30, 32, 35, 37, 38, 41, 46, 49, 50, 54, 56, 58, 60, 63, 65, 66, 67, 12, 18, 20, 22, 25, 26, 28, 30, 12, 18, 20, 21, 22, 25, 26, 28, 30, 8, 13, 4, 8, 12, 16, 17, 21, 22, 26, 28, 8, 13, 4, 8, 12, 16, 17, 25, 26, 30, 32, 8, 13, 1, 1, 4, 1, 3, 4, 6, 8, 9, 1, 4, 1, 1, 6, 13, 22, 23, 4, 8, 11, 15, 18, 22, 24, 8, 13, 4, 8, 12, 14, 17, 20, 23, 24, 28, 29, 34, 36, 8, 13, 4, 8, 12, 14, 17, 20, 23, 24, 28, 29, 34, 36, 8, 13, 4, 8, 12, 18, 19, 23, 24, 29, 31, 8, 13, 4, 8, 12, 19, 25, 26, 30, 31, 36, 38, 8, 13, 1, 1, 4, 1, 3, 4, 6, 8, 9, 1, 4, 1, 1, 6, 8, 12, 21, 22, 4, 8, 11, 15, 18, 22, 24, 8, 13, 4, 8, 12, 14, 17, 20, 23, 24, 28, 29, 34, 36, 8, 13, 4, 8, 12, 14, 17, 20, 23, 24, 28, 29, 34, 36, 8, 13, 4, 8, 12, 18, 19, 23, 24, 29, 31, 8, 13, 4, 8, 12, 19, 25, 26, 30, 31, 36, 38, 8, 13, 1, 1, 3, 6, 10, 12, 15, 19, 23, 27, 4, 8, 10, 14, 23, 25, 4, 8, 9, 14, 18, 22, 25, 27, 28, 29, 30, 31, 31, 31, 32, 33, 33, 34, 35, 36, 39, 40, 41, 43, 45, 46, 49, 50, 50, 51, 51, 52, 52, 52, 53, 54, 56, 58, 4, 8, 9, 14, 18, 22, 25, 27, 28, 29, 30, 32, 33, 33, 34, 35, 35, 36, 37, 40, 41, 43, 44, 45, 45, 46, 47, 47, 48, 49, 50, 53, 54, 55, 57, 4, 8, 9, 14, 18, 22, 25, 27, 28, 29, 31, 32, 32, 33, 33, 34, 34, 35, 36, 39, 40, 42, 44, 45, 46, 47, 48, 50, 52, 4, 8, 9, 14, 18, 22, 25, 27, 28, 29, 30, 30, 31, 32, 33, 35, 36, 36, 37, 38, 38, 39, 40, 41, 42, 43, 43, 44, 46, 47, 49, 4, 9, 11, 16, 25, 27, 4, 9, 10, 15, 19, 23, 26, 28, 29, 30, 32, 34, 35, 36, 36, 37, 38, 38, 39, 40, 43, 44, 45, 46, 47, 48, 49, 50, 51, 53, 4, 9, 10, 15, 19, 23, 26, 28, 29, 30, 31, 32, 33, 35, 36, 37, 39, 40, 41, 42, 43, 44, 45, 45, 46, 47, 49, 50, 53, 54, 55, 56, 57, 58, 60, 61, 63, 4, 9, 10, 15, 19, 23, 26, 28, 29, 30, 31, 32, 33, 36, 37, 37, 38, 39, 40, 41, 43, 44, 45, 45, 46, 47, 48, 50, 52, 4, 9, 10, 15, 19, 23, 26, 28, 29, 30, 33, 34, 35, 36, 37, 39, 40, 41, 42, 43, 43, 44, 45, 46, 48, 49, 50, 51, 53, 55, 57, 4, 9, 10, 15, 19, 23, 26, 28, 29, 30, 32, 33, 34, 35, 37, 38, 39, 40, 42, 43, 44, 45, 46, 48, 49, 50, 51, 51, 52, 53, 53, 54, 55, 56, 58, 59, 60, 62, 64, 4, 10, 12, 18, 27, 28, 29, 30, 31, 33, 37, 38, 41, 43, 4, 10, 11, 16, 20, 24, 27, 29, 30, 31, 32, 33, 34, 36, 37, 38, 39, 40, 43, 44, 45, 46, 47, 48, 49, 50, 52, 54, 4, 10, 11, 16, 20, 24, 27, 29, 30, 31, 33, 35, 36, 37, 39, 40, 41, 42, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 60, 61, 62, 64, 66, 67, 68, 69, 70, 71, 72, 74, 75, 76, 77, 79, 4, 10, 11, 16, 20, 24, 27, 29, 30, 31, 32, 33, 34, 35, 36, 37, 39, 40, 42, 43, 45, 46, 47, 48, 50, 4, 10, 11, 16, 20, 24, 27, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 47, 48, 50, 4, 10, 11, 16, 20, 24, 27, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 40, 41, 43, 44, 45, 46, 47, 48, 49, 49, 50, 51, 52, 54, 55, 57, 58, 63, 64, 66, 67, 68, 69, 71, 4, 6, 8, 10, 12, 14, 23, 25, 4, 6, 8, 9, 14, 18, 22, 25, 27, 28, 29, 30, 31, 32, 33, 33, 34, 34, 35, 36, 37, 38, 39, 41, 41, 42, 43, 45, 46, 47, 48, 50, 51, 52, 54, 55, 56, 57, 57, 58, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 72, 4, 6, 8, 9, 14, 18, 22, 25, 27, 28, 29, 30, 32, 33, 33, 34, 34, 35, 36, 37, 39, 40, 41, 43, 46, 46, 47, 48, 49, 50, 51, 51, 52, 53, 54, 55, 56, 57, 58, 59, 61, 63, 4, 6, 8, 9, 14, 18, 22, 25, 27, 28, 29, 31, 33, 34, 34, 35, 35, 36, 37, 38, 40, 42, 43, 44, 45, 46, 48, 49, 50, 51, 52, 52, 53, 53, 54, 56, 58, 4, 6, 8, 9, 14, 18, 22, 25, 27, 28, 29, 30, 31, 32, 33, 33, 34, 34, 35, 36, 37, 38, 39, 41, 43, 45, 47, 48, 48, 49, 49, 50, 51, 53, 55, 56, 58, 60, 61, 62, 63, 63, 64, 65, 67, 68, 69, 71, 73, 4, 6, 8, 9, 14, 18, 22, 25, 27, 28, 29, 30, 32, 33, 33, 34, 34, 35, 36, 38, 40, 41, 41, 42, 42, 43, 44, 45, 47, 48, 50, 51, 52, 53, 55, 56, 57, 58, 59, 59, 60, 60, 61, 62, 63, 65 ]
170d0560c40f3f642f319f6113b68ab8a6bea9ef
import csv import matplotlib.pyplot as plt import numpy as np from scipy.optimize import curve_fit # funktion def func(w, rc): return 1 / (np.sqrt(1 + w**2 * rc**2)) # daten einlesen with open("data/phase.csv") as csvfile: reader = csv.reader(csvfile, delimiter=",") header_row = next(reader) f, U, a, b = [], [], [], [] for row in reader: f.append(row[0]) U.append(row[1]) a.append(row[2]) b.append(row[3]) f = np.array(f, dtype=float) U = np.array(U, dtype=float) a = np.array(a, dtype=float) b = np.array(b, dtype=float) # curvefit U0 = 0.6 popt, pcov = curve_fit(func, f * 2 * np.pi, U / U0) a1 = popt[0] # theoriewerte R_th = 11.01 * 10**3 C_th = 93.3 * 10 ** (-9) # plots plt.xlabel(r"$f\, / \, Hz$") plt.ylabel(r"$\frac{U_c}{U_0}$", fontsize=15) plt.grid() plt.semilogx(f, U / U0, "rx", label="Messwerte") x = np.linspace(20, 30000, 10000) plt.semilogx(x, func(x * 2 * np.pi, a1), "b-", label="Ausgleichsrechnung") plt.semilogx(x, func(x * 2 * np.pi, R_th * C_th), "g-", label="Theoriekurve") plt.legend() plt.savefig("plotb.pdf") plt.show() # fehlerausgabe uncertainties = np.sqrt(np.diag(pcov)) print("RC =", -a1, "+-", uncertainties[0]) print("Theoriewert:", 11.01 * 1000 * 93.3 * 10 ** (-9)) print("Phase:", (a / b) * np.pi * 2)
[ 485, 11490, 222, 485, 13168, 51, 18553, 641, 6020, 222, 485, 6610, 641, 2115, 222, 1097, 18945, 51, 22990, 1220, 14574, 100, 4803, 499, 222, 40, 47326, 222, 610, 3439, 45, 124, 49, 7636, 731, 303, 461, 244, 54, 536, 327, 2399, 51, 8750, 45, 54, 494, 360, 345, 55, 338, 7636, 345, 55, 509, 499, 222, 40, 5249, 291, 7269, 1904, 291, 222, 1814, 2177, 459, 624, 52, 12055, 51, 4849, 678, 641, 11490, 781, 63, 303, 6201, 299, 11490, 51, 6321, 45, 4849, 781, 49, 19836, 12633, 678, 303, 3353, 100, 661, 299, 2371, 45, 6321, 46, 303, 315, 49, 650, 49, 331, 49, 342, 299, 5538, 5538, 5538, 1627, 303, 456, 2720, 347, 6201, 63, 310, 315, 51, 1713, 45, 661, 96, 53, 1156, 310, 650, 51, 1713, 45, 661, 96, 54, 1156, 310, 331, 51, 1713, 45, 661, 96, 55, 1156, 310, 342, 51, 1713, 45, 661, 96, 56, 1156, 303, 315, 299, 2115, 51, 977, 45, 107, 49, 9799, 66, 1832, 46, 303, 650, 299, 2115, 51, 977, 45, 90, 49, 9799, 66, 1832, 46, 303, 331, 299, 2115, 51, 977, 45, 102, 49, 9799, 66, 1832, 46, 303, 342, 299, 2115, 51, 977, 45, 103, 49, 9799, 66, 1832, 46, 222, 222, 40, 14574, 4803, 222, 90, 53, 299, 244, 53, 51, 59, 222, 864, 404, 49, 317, 12677, 299, 14574, 100, 4803, 45, 1316, 49, 315, 338, 244, 55, 338, 2115, 51, 1314, 49, 650, 536, 650, 53, 46, 222, 102, 54, 299, 2104, 404, 96, 53, 98, 222, 222, 40, 341, 290, 656, 46336, 222, 87, 100, 368, 299, 244, 54, 54, 51, 53, 54, 338, 244, 54, 53, 345, 56, 222, 72, 100, 368, 299, 244, 62, 56, 51, 56, 338, 244, 54, 53, 1137, 7224, 62, 46, 222, 222, 40, 25791, 222, 6670, 51, 17704, 45, 119, 25575, 107, 12684, 536, 788, 49, 24718, 41, 678, 222, 6670, 51, 17437, 45, 119, 39, 17663, 8829, 128, 90, 100, 104, 3474, 90, 100, 53, 10778, 411, 24897, 66, 54, 58, 46, 222, 6670, 51, 3393, 365, 222, 6670, 51, 35458, 769, 125, 45, 107, 49, 650, 536, 650, 53, 49, 332, 6673, 411, 2300, 366, 15944, 4533, 538, 678, 222, 125, 299, 2115, 51, 25165, 45, 55, 53, 49, 244, 56, 53, 53, 53, 53, 49, 244, 54, 53, 53, 53, 53, 46, 222, 6670, 51, 35458, 769, 125, 45, 125, 49, 3439, 45, 125, 338, 244, 55, 338, 2115, 51, 1314, 49, 331, 54, 490, 332, 103, 23683, 2300, 366, 70, 371, 1240, 1211, 120, 287, 26064, 3292, 678, 222, 6670, 51, 35458, 769, 125, 45, 125, 49, 3439, 45, 125, 338, 244, 55, 338, 2115, 51, 1314, 49, 578, 100, 368, 338, 409, 100, 368, 490, 332, 108, 23683, 2300, 366, 1338, 290, 1093, 41944, 606, 678, 222, 6670, 51, 11614, 365, 222, 6670, 51, 26203, 459, 3570, 103, 51, 4710, 678, 222, 6670, 51, 2276, 365, 222, 222, 40, 5262, 109, 1202, 26239, 108, 9234, 222, 974, 600, 2043, 753, 299, 2115, 51, 8750, 45, 2399, 51, 13173, 45, 117, 12677, 509, 222, 1243, 459, 4954, 299, 411, 449, 102, 54, 49, 6771, 23683, 32522, 2043, 753, 96, 53, 1156, 222, 1243, 459, 1338, 290, 656, 600, 9398, 244, 54, 54, 51, 53, 54, 338, 244, 54, 53, 53, 53, 338, 244, 62, 56, 51, 56, 338, 244, 54, 53, 1137, 7224, 62, 509, 222, 1243, 459, 12238, 9398, 327, 102, 536, 342, 46, 338, 2115, 51, 1314, 338, 244, 55, 46, 222 ]
[ "import", "Ġcsv", "Ċ", "import", "Ġmatplotlib", ".", "pyplot", "Ġas", "Ġplt", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "from", "Ġscipy", ".", "optimize", "Ġimport", "Ġcurve", "_", "fit", "ĊĊ", "Ċ", "#", "Ġfunktion", "Ċ", "def", "Ġfunc", "(", "w", ",", "Ġrc", "):", "ĊĠĠĠ", "Ġreturn", "Ġ", "1", "Ġ/", "Ġ(", "np", ".", "sqrt", "(", "1", "Ġ+", "Ġw", "**", "2", "Ġ*", "Ġrc", "**", "2", "))", "ĊĊ", "Ċ", "#", "Ġdat", "en", "Ġein", "les", "en", "Ċ", "with", "Ġopen", "(\"", "data", "/", "phase", ".", "csv", "\")", "Ġas", "Ġcsv", "file", ":", "ĊĠĠĠ", "Ġreader", "Ġ=", "Ġcsv", ".", "reader", "(", "csv", "file", ",", "Ġdelimiter", "=\",", "\")", "ĊĠĠĠ", "Ġheader", "_", "row", "Ġ=", "Ġnext", "(", "reader", ")", "ĊĠĠĠ", "Ġf", ",", "ĠU", ",", "Ġa", ",", "Ġb", "Ġ=", "Ġ[],", "Ġ[],", "Ġ[],", "Ġ[]", "ĊĠĠĠ", "Ġfor", "Ġrow", "Ġin", "Ġreader", ":", "ĊĠĠĠĠĠĠĠ", "Ġf", ".", "append", "(", "row", "[", "0", "])", "ĊĠĠĠĠĠĠĠ", "ĠU", ".", "append", "(", "row", "[", "1", "])", "ĊĠĠĠĠĠĠĠ", "Ġa", ".", "append", "(", "row", "[", "2", "])", "ĊĠĠĠĠĠĠĠ", "Ġb", ".", "append", "(", "row", "[", "3", "])", "ĊĠĠĠ", "Ġf", "Ġ=", "Ġnp", ".", "array", "(", "f", ",", "Ġdtype", "=", "float", ")", "ĊĠĠĠ", "ĠU", "Ġ=", "Ġnp", ".", "array", "(", "U", ",", "Ġdtype", "=", "float", ")", "ĊĠĠĠ", "Ġa", "Ġ=", "Ġnp", ".", "array", "(", "a", ",", "Ġdtype", "=", "float", ")", "ĊĠĠĠ", "Ġb", "Ġ=", "Ġnp", ".", "array", "(", "b", ",", "Ġdtype", "=", "float", ")", "Ċ", "Ċ", "#", "Ġcurve", "fit", "Ċ", "U", "0", "Ġ=", "Ġ", "0", ".", "6", "Ċ", "po", "pt", ",", "Ġp", "cov", "Ġ=", "Ġcurve", "_", "fit", "(", "func", ",", "Ġf", "Ġ*", "Ġ", "2", "Ġ*", "Ġnp", ".", "pi", ",", "ĠU", "Ġ/", "ĠU", "0", ")", "Ċ", "a", "1", "Ġ=", "Ġpo", "pt", "[", "0", "]", "Ċ", "Ċ", "#", "Ġthe", "or", "iew", "erte", "Ċ", "R", "_", "th", "Ġ=", "Ġ", "1", "1", ".", "0", "1", "Ġ*", "Ġ", "1", "0", "**", "3", "Ċ", "C", "_", "th", "Ġ=", "Ġ", "9", "3", ".", "3", "Ġ*", "Ġ", "1", "0", "Ġ**", "Ġ(-", "9", ")", "Ċ", "Ċ", "#", "Ġplots", "Ċ", "plt", ".", "xlabel", "(", "r", "\"$", "f", "\\,", "Ġ/", "Ġ\\", ",", "ĠHz", "$", "\")", "Ċ", "plt", ".", "ylabel", "(", "r", "\"", "$\\", "frac", "{", "U", "_", "c", "}{", "U", "_", "0", "}$", "\",", "Ġfontsize", "=", "1", "5", ")", "Ċ", "plt", ".", "grid", "()", "Ċ", "plt", ".", "semi", "log", "x", "(", "f", ",", "ĠU", "Ġ/", "ĠU", "0", ",", "Ġ\"", "rx", "\",", "Ġlabel", "=\"", "Mess", "wer", "te", "\")", "Ċ", "x", "Ġ=", "Ġnp", ".", "linspace", "(", "2", "0", ",", "Ġ", "3", "0", "0", "0", "0", ",", "Ġ", "1", "0", "0", "0", "0", ")", "Ċ", "plt", ".", "semi", "log", "x", "(", "x", ",", "Ġfunc", "(", "x", "Ġ*", "Ġ", "2", "Ġ*", "Ġnp", ".", "pi", ",", "Ġa", "1", "),", "Ġ\"", "b", "-\",", "Ġlabel", "=\"", "A", "us", "gle", "ich", "s", "re", "chn", "ung", "\")", "Ċ", "plt", ".", "semi", "log", "x", "(", "x", ",", "Ġfunc", "(", "x", "Ġ*", "Ġ", "2", "Ġ*", "Ġnp", ".", "pi", ",", "ĠR", "_", "th", "Ġ*", "ĠC", "_", "th", "),", "Ġ\"", "g", "-\",", "Ġlabel", "=\"", "The", "or", "ie", "kur", "ve", "\")", "Ċ", "plt", ".", "legend", "()", "Ċ", "plt", ".", "savefig", "(\"", "plot", "b", ".", "pdf", "\")", "Ċ", "plt", ".", "show", "()", "Ċ", "Ċ", "#", "Ġfe", "h", "ler", "aus", "g", "abe", "Ċ", "unc", "ert", "aint", "ies", "Ġ=", "Ġnp", ".", "sqrt", "(", "np", ".", "diag", "(", "p", "cov", "))", "Ċ", "print", "(\"", "RC", "Ġ=", "\",", "Ġ-", "a", "1", ",", "Ġ\"+", "-\",", "Ġuncert", "aint", "ies", "[", "0", "])", "Ċ", "print", "(\"", "The", "or", "iew", "ert", ":\",", "Ġ", "1", "1", ".", "0", "1", "Ġ*", "Ġ", "1", "0", "0", "0", "Ġ*", "Ġ", "9", "3", ".", "3", "Ġ*", "Ġ", "1", "0", "Ġ**", "Ġ(-", "9", "))", "Ċ", "print", "(\"", "Phase", ":\",", "Ġ(", "a", "Ġ/", "Ġb", ")", "Ġ*", "Ġnp", ".", "pi", "Ġ*", "Ġ", "2", ")", "Ċ" ]
[ 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 47, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52 ]
[ 1, 7, 11, 1, 7, 18, 19, 25, 28, 32, 1, 7, 13, 16, 19, 1, 5, 11, 12, 20, 27, 33, 34, 37, 1, 1, 2, 11, 1, 4, 9, 10, 11, 12, 15, 17, 4, 11, 12, 13, 15, 17, 19, 20, 24, 25, 26, 28, 30, 32, 33, 35, 38, 40, 41, 43, 1, 1, 2, 6, 8, 12, 15, 17, 1, 5, 10, 12, 16, 17, 22, 23, 26, 28, 31, 35, 39, 40, 4, 11, 13, 17, 18, 24, 25, 28, 32, 33, 43, 46, 48, 4, 11, 12, 15, 17, 22, 23, 29, 30, 4, 6, 7, 9, 10, 12, 13, 15, 17, 21, 25, 29, 32, 4, 8, 12, 15, 22, 23, 8, 10, 11, 17, 18, 21, 22, 23, 25, 8, 10, 11, 17, 18, 21, 22, 23, 25, 8, 10, 11, 17, 18, 21, 22, 23, 25, 8, 10, 11, 17, 18, 21, 22, 23, 25, 4, 6, 8, 11, 12, 17, 18, 19, 20, 26, 27, 32, 33, 4, 6, 8, 11, 12, 17, 18, 19, 20, 26, 27, 32, 33, 4, 6, 8, 11, 12, 17, 18, 19, 20, 26, 27, 32, 33, 4, 6, 8, 11, 12, 17, 18, 19, 20, 26, 27, 32, 33, 1, 1, 2, 8, 11, 1, 2, 3, 5, 6, 7, 8, 9, 1, 3, 5, 6, 8, 11, 13, 19, 20, 23, 24, 28, 29, 31, 33, 34, 35, 37, 40, 41, 43, 44, 46, 48, 50, 51, 52, 1, 2, 3, 5, 8, 10, 11, 12, 13, 1, 1, 2, 6, 8, 11, 15, 1, 2, 3, 5, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 20, 21, 1, 2, 3, 5, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 20, 23, 24, 25, 1, 1, 2, 8, 1, 4, 5, 11, 12, 13, 15, 16, 18, 20, 22, 23, 26, 27, 29, 1, 4, 5, 11, 12, 13, 14, 16, 20, 21, 22, 23, 24, 26, 27, 28, 29, 31, 33, 42, 43, 44, 45, 46, 1, 4, 5, 9, 11, 1, 4, 5, 9, 12, 13, 14, 15, 16, 18, 20, 22, 23, 24, 26, 28, 30, 36, 38, 42, 45, 47, 49, 1, 2, 4, 7, 8, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 1, 4, 5, 9, 12, 13, 14, 15, 16, 21, 22, 23, 25, 26, 27, 29, 32, 33, 35, 36, 38, 39, 41, 43, 44, 47, 53, 55, 56, 58, 61, 64, 65, 67, 70, 73, 75, 1, 4, 5, 9, 12, 13, 14, 15, 16, 21, 22, 23, 25, 26, 27, 29, 32, 33, 35, 36, 38, 39, 41, 43, 45, 46, 48, 50, 52, 53, 56, 62, 64, 67, 69, 71, 74, 76, 78, 1, 4, 5, 11, 13, 1, 4, 5, 12, 14, 18, 19, 20, 23, 25, 1, 4, 5, 9, 11, 1, 1, 2, 5, 6, 9, 12, 13, 16, 1, 4, 7, 11, 14, 16, 19, 20, 24, 25, 27, 28, 32, 33, 34, 37, 39, 1, 6, 8, 10, 12, 14, 16, 17, 18, 19, 22, 25, 32, 36, 39, 40, 41, 43, 1, 6, 8, 11, 13, 16, 19, 22, 23, 24, 25, 26, 27, 28, 30, 31, 32, 33, 34, 35, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 50, 53, 54, 56, 1, 6, 8, 13, 16, 18, 19, 21, 23, 24, 26, 29, 30, 32, 34, 35, 36, 37 ]
c9cf65eeec49eba004312491cdd2321200fa6a61
import cv2 import pandas from sklearn import tree import pydotplus from sklearn.tree import DecisionTreeClassifier import matplotlib.pyplot as plt import matplotlib.image as pltimg df = pandas.read_csv("show.csv") d = {"UK": 0, "USA": 1, "N": 2} df["Nationality"] = df["Nationality"].map(d) d = {"YES": 1, "NO": 0} df["Go"] = df["Go"].map(d) ###### features = ["Age", "Experience", "Rank", "Nationality"] X = df[features] y = df["Go"] ##### dtree = DecisionTreeClassifier() dtree = dtree.fit(X, y) data = tree.export_graphviz(dtree, out_file=None, feature_names=features) graph = pydotplus.graph_from_dot_data(data) graph.write_png("mydecisiontree.png") img = pltimg.imread("mydecisiontree.png") imgplot = plt.imshow(img) plt.show() print(X) print(y)
[ 485, 6781, 55, 222, 485, 13247, 222, 1097, 14415, 1220, 4369, 222, 485, 3643, 4297, 5447, 222, 1097, 14415, 51, 3266, 1220, 37236, 3371, 16077, 222, 485, 13168, 51, 18553, 641, 6020, 222, 485, 13168, 51, 915, 641, 6020, 1296, 222, 222, 1519, 299, 13247, 51, 870, 100, 4849, 459, 2276, 51, 4849, 678, 222, 105, 299, 3479, 15626, 582, 244, 53, 49, 332, 32708, 582, 244, 54, 49, 332, 83, 582, 244, 55, 130, 222, 1519, 1388, 38057, 562, 1465, 299, 5247, 1388, 38057, 562, 6567, 1130, 45, 105, 46, 222, 105, 299, 3479, 19341, 582, 244, 54, 49, 332, 2593, 582, 244, 53, 130, 222, 1519, 1388, 6103, 1465, 299, 5247, 1388, 6103, 6567, 1130, 45, 105, 46, 222, 222, 14308, 222, 5977, 299, 3059, 12475, 411, 332, 30222, 411, 332, 12211, 411, 332, 38057, 562, 1465, 222, 93, 299, 5247, 96, 5977, 98, 222, 126, 299, 5247, 1388, 6103, 1465, 222, 8689, 222, 2654, 993, 299, 37236, 3371, 16077, 365, 222, 2654, 993, 299, 362, 3266, 51, 4803, 45, 93, 49, 553, 46, 222, 624, 299, 4369, 51, 1376, 100, 2275, 19486, 45, 2654, 993, 49, 986, 100, 781, 66, 2545, 49, 2817, 100, 4288, 66, 5977, 46, 222, 2275, 299, 3643, 4297, 5447, 51, 2275, 100, 1097, 100, 4297, 100, 624, 45, 624, 46, 222, 2275, 51, 1838, 100, 1665, 459, 1791, 27635, 3266, 51, 1665, 678, 222, 222, 1296, 299, 6020, 1296, 51, 41190, 459, 1791, 27635, 3266, 51, 1665, 678, 222, 1296, 3570, 299, 6020, 51, 24184, 45, 1296, 46, 222, 6670, 51, 2276, 365, 222, 1243, 45, 93, 46, 222, 1243, 45, 126, 46, 222 ]
[ "import", "Ġcv", "2", "Ċ", "import", "Ġpandas", "Ċ", "from", "Ġsklearn", "Ġimport", "Ġtree", "Ċ", "import", "Ġpy", "dot", "plus", "Ċ", "from", "Ġsklearn", ".", "tree", "Ġimport", "ĠDecision", "Tree", "Classifier", "Ċ", "import", "Ġmatplotlib", ".", "pyplot", "Ġas", "Ġplt", "Ċ", "import", "Ġmatplotlib", ".", "image", "Ġas", "Ġplt", "img", "Ċ", "Ċ", "df", "Ġ=", "Ġpandas", ".", "read", "_", "csv", "(\"", "show", ".", "csv", "\")", "Ċ", "d", "Ġ=", "Ġ{\"", "UK", "\":", "Ġ", "0", ",", "Ġ\"", "USA", "\":", "Ġ", "1", ",", "Ġ\"", "N", "\":", "Ġ", "2", "}", "Ċ", "df", "[\"", "National", "ity", "\"]", "Ġ=", "Ġdf", "[\"", "National", "ity", "\"].", "map", "(", "d", ")", "Ċ", "d", "Ġ=", "Ġ{\"", "YES", "\":", "Ġ", "1", ",", "Ġ\"", "NO", "\":", "Ġ", "0", "}", "Ċ", "df", "[\"", "Go", "\"]", "Ġ=", "Ġdf", "[\"", "Go", "\"].", "map", "(", "d", ")", "Ċ", "Ċ", "######", "Ċ", "features", "Ġ=", "Ġ[\"", "Age", "\",", "Ġ\"", "Experience", "\",", "Ġ\"", "Rank", "\",", "Ġ\"", "National", "ity", "\"]", "Ċ", "X", "Ġ=", "Ġdf", "[", "features", "]", "Ċ", "y", "Ġ=", "Ġdf", "[\"", "Go", "\"]", "Ċ", "#####", "Ċ", "dt", "ree", "Ġ=", "ĠDecision", "Tree", "Classifier", "()", "Ċ", "dt", "ree", "Ġ=", "Ġd", "tree", ".", "fit", "(", "X", ",", "Ġy", ")", "Ċ", "data", "Ġ=", "Ġtree", ".", "export", "_", "graph", "viz", "(", "dt", "ree", ",", "Ġout", "_", "file", "=", "None", ",", "Ġfeature", "_", "names", "=", "features", ")", "Ċ", "graph", "Ġ=", "Ġpy", "dot", "plus", ".", "graph", "_", "from", "_", "dot", "_", "data", "(", "data", ")", "Ċ", "graph", ".", "write", "_", "png", "(\"", "my", "decision", "tree", ".", "png", "\")", "Ċ", "Ċ", "img", "Ġ=", "Ġplt", "img", ".", "imread", "(\"", "my", "decision", "tree", ".", "png", "\")", "Ċ", "img", "plot", "Ġ=", "Ġplt", ".", "imshow", "(", "img", ")", "Ċ", "plt", ".", "show", "()", "Ċ", "print", "(", "X", ")", "Ċ", "print", "(", "y", ")", "Ċ" ]
[ 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30 ]
[ 1, 7, 10, 11, 1, 7, 14, 1, 5, 13, 20, 25, 1, 7, 10, 13, 17, 1, 5, 13, 14, 18, 25, 34, 38, 48, 1, 7, 18, 19, 25, 28, 32, 1, 7, 18, 19, 24, 27, 31, 34, 1, 1, 3, 5, 12, 13, 17, 18, 21, 23, 27, 28, 31, 33, 1, 2, 4, 7, 9, 11, 12, 13, 14, 16, 19, 21, 22, 23, 24, 26, 27, 29, 30, 31, 32, 1, 3, 5, 13, 16, 18, 20, 23, 25, 33, 36, 39, 42, 43, 44, 45, 1, 2, 4, 7, 10, 12, 13, 14, 15, 17, 19, 21, 22, 23, 24, 1, 3, 5, 7, 9, 11, 14, 16, 18, 21, 24, 25, 26, 27, 1, 1, 7, 1, 9, 11, 14, 17, 19, 21, 31, 33, 35, 39, 41, 43, 51, 54, 56, 1, 2, 4, 7, 8, 16, 17, 1, 2, 4, 7, 9, 11, 13, 1, 6, 1, 3, 6, 8, 17, 21, 31, 33, 1, 3, 6, 8, 10, 14, 15, 18, 19, 20, 21, 23, 24, 1, 5, 7, 12, 13, 19, 20, 25, 28, 29, 31, 34, 35, 39, 40, 44, 45, 49, 50, 58, 59, 64, 65, 73, 74, 1, 6, 8, 11, 14, 18, 19, 24, 25, 29, 30, 33, 34, 38, 39, 43, 44, 1, 6, 7, 12, 13, 16, 18, 20, 28, 32, 33, 36, 38, 1, 1, 4, 6, 10, 13, 14, 20, 22, 24, 32, 36, 37, 40, 42, 1, 4, 8, 10, 14, 15, 21, 22, 25, 26, 1, 4, 5, 9, 11, 1, 6, 7, 8, 9, 1, 6, 7, 8, 9 ]
c893095be88636e6cb06eb3b939d8106fbb7a8ca
# Arushi Patel (aruship) from tkinter import * import random ###################################### # images taken from wikipedia,pixabay, # trans americas, clipartpanda,pngimg, # findicons, microsoft word ###################################### #################################### # init #################################### def init(data): data.score = 0 data.mode = "splashScreen" data.timerDelay = 100 data.height = 800 data.width = 800 data.speed = 10 data.speedAI = 12 data.speedAI2 = 12 data.switchOnProgress = False data.r = 25 data.cx = 280 data.cy = 750 data.onLeft1, data.onLeft2 = True, True data.win = False data.coconuts = [] data.powerUps = [] data.coconuts1 = [] data.coconuts2 = [] data.coconutsAI1 = [] data.coconutsAI2 = [] data.invincible = [] data.pauseDrops = False data.pause1Drop = False data.pause2Drop = False init1(data) def init1(data): data.beInvincible = False data.Invincible1 = False data.Invincible2 = False data.scaryBug = [] data.time = 0 data.coconutFall = False data.sides = ["r", "l"] data.level = 1 data.splashScreenTime = 0 data.splashScreenDrops = [] data.background = PhotoImage(file="tree.gif") data.deadScreen = PhotoImage(file="deadBug.gif") data.ladyBug = PhotoImage(file="lady.gif") data.winScreen = PhotoImage(file="treeTop1.gif") data.winBug = PhotoImage(file="littleBug.gif") data.halfBackground = PhotoImage(file="halfTree.gif") data.umbrella = PhotoImage(file="umbrella2.gif") data.spider = PhotoImage(file="spider.gif") data.hourGlass = PhotoImage(file="hourGlass.gif") data.splashScreen = PhotoImage(file="splash.gif") init2(data) def init2(data): data.tbg = PhotoImage(file="tbg2.gif") data.click = PhotoImage(file="click.gif") data.notClick = PhotoImage(file="notClick.gif") data.player1X = 150 data.player1Y = 750 data.player2X = 550 data.player2Y = 750 data.winner = None data.speed = 12 data.speed2 = 12 data.editorTime = 0 data.editorDrops = [] data.margin = 100 data.enter = False data.powerUpsEditor = None data.yourSpeed = None data.rainSpeed = None data.slow = data.notClick data.medium = data.notClick data.fast = data.notClick data.drizzle = data.notClick data.rain = data.notClick data.thunderstorm = data.notClick init3(data) def init3(data): data.yes = data.notClick data.no = data.notClick data.enter = data.notClick data.levelEditorLives = 2 data.rSpeed = None data.start = None data.start1 = None data.start2 = None data.difficulty = None data.mode1 = data.notClick data.mode2 = data.notClick data.mode3 = data.notClick data.mode4 = data.notClick data.mode5 = data.notClick data.mode6 = data.notClick data.home = PhotoImage(file="home.gif") data.helpScreen = PhotoImage(file="help1.gif") data.title = PhotoImage(file="title.gif") data.scoreList = [] data.spotList = [270, 364, 458, 552, 646, 740] data.savedScores = readFile("score.txt") if data.mode == "levelCreated": setEverything(data) initsplashScreenNumbers(data) def initsplashScreenNumbers(data): data.splashButtonY = 425 data.p1ButtonX = 225 data.p2ButtonX = 290 data.edButton = 355 data.diffButton = 425 data.helpButton = 490 data.sboardButton = 555 data.hitPenalty = 75 data.splashText = data.height / 2 - 20 data.lives = 2 data.levelMax = 8 data.lane = 94 data.Player1Min = 270 data.Player1Max = 740 data.homeX = 50 data.homeY = 650 initScoreBoardHelp(data) init1Player(data) def initScoreBoardHelp(data): data.tbgY = 5 * data.height / 12 data.txtTScore = 150 data.S_P = 220 data.numScores = 5 data.scorePos = data.height / 10 data.scoreShift = 270 data.helpY = data.height / 2 - 20 data.name = "" data.printName = "" data.hit = False initAI(data) def init1Player(data): data.buffer = 40 def initAI(data): data.AITY = 225 data.easyX = 200 data.easyY = 300 data.medX = 400 data.hardX = 600 data.enterY = 450 data.difS = 4 data.difM = 6 data.difH = 8 data.last = 500 data.enterX = 575 data.PUT = 450 data.RST = 350 data.YST = 250 #################################### # mode dispatcher #################################### def mousePressed(event, data): if data.mode == "splashScreen": splashScreenMousePressed(event, data) elif data.mode == "1Player": playerMousePressed(event, data) elif data.mode == "2Player": twoPlayerMousePressed(event, data) elif data.mode == "editor": editorMousePressed(event, data) elif data.mode == "levelCreated": levelCreatedMousePressed(event, data) elif data.mode == "AI": AIMousePressed(event, data) elif data.mode == "difficulty": difficultyMousePressed(event, data) elif data.mode == "scoreboard": scoreboardMousePressed(event, data) elif data.mode == "help": helpMousePressed(event, data) def keyPressed(event, data): if data.mode == "splashScreen": splashKeyPressed(event, data) elif data.mode == "1Player": playerKeyPressed(event, data) elif data.mode == "2Player": twoPlayerKeyPressed(event, data) elif data.mode == "editor": editorKeyPressed(event, data) elif data.mode == "levelCreated": levelCreatedKeyPressed(event, data) elif data.mode == "AI": AIKeyPressed(event, data) elif data.mode == "difficulty": difficultyKeyPressed(event, data) elif data.mode == "scoreboard": scoreboardKeyPressed(event, data) elif data.mode == "help": helpKeyPressed(event, data) def timerFired(data): if data.mode == "splashScreen": splashScreenTimerFired(data) elif data.mode == "1Player": playerTimerFired(data) elif data.mode == "2Player": twoPlayerTimerFired(data) elif data.mode == "editor": editorTimerFired(data) elif data.mode == "levelCreated": levelCreatedTimerFired(data) elif data.mode == "AI": AITimerFired(data) elif data.mode == "difficulty": difficultyTimerFired(data) elif data.mode == "scoreboard": scoreboardTimerFired(data) elif data.mode == "help": helpTimerFired(data) def redrawAll(canvas, data): if data.mode == "splashScreen": splashScreenRedrawAll(canvas, data) elif data.mode == "1Player": playerRedrawAll(canvas, data) elif data.mode == "2Player": twoPlayerRedrawAll(canvas, data) elif data.mode == "editor": editorRedrawAll(canvas, data) elif data.mode == "levelCreated": levelCreatedRedrawAll(canvas, data) elif data.mode == "AI": AIRedrawAll(canvas, data) elif data.mode == "difficulty": difficultyRedrawAll(canvas, data) elif data.mode == "scoreboard": scoreboardRedrawAll(canvas, data) elif data.mode == "help": helpRedrawAll(canvas, data) #################################### # splashScreen mode #################################### def splashScreenMousePressed(event, data): # checks for selection of mode if data.splashButtonY - 2 * data.r <= event.x <= data.splashButtonY + 2 * data.r: if data.p1ButtonX - data.r <= event.y <= data.p1ButtonX + data.r: data.mode = "1Player" if data.p2ButtonX - data.r <= event.y <= data.p2ButtonX + data.r: data.mode = "2Player" if data.edButton - data.r <= event.y <= data.edButton + data.r: data.mode = "editor" if data.diffButton - data.r <= event.y <= data.diffButton + data.r: data.mode = "difficulty" if data.helpButton - data.r <= event.y <= data.helpButton + data.r: data.mode = "help" if data.sboardButton - data.r <= event.y <= data.sboardButton + data.r: data.mode = "scoreboard" def splashKeyPressed(event, data): pass def splashScreenTimerFired(data): data.splashScreenTime += 1 if data.splashScreenTime % 2 == 1: rainDropSplash(data) for drop in data.splashScreenDrops: drop.onTimerFired(data) def splashScreenButtons(canvas, data): canvas.create_image(data.splashButtonY, data.p1ButtonX, image=data.mode1) canvas.create_image(data.splashButtonY, data.p2ButtonX, image=data.mode2) canvas.create_image(data.splashButtonY, data.edButton, image=data.mode3) canvas.create_image(data.splashButtonY, data.diffButton, image=data.mode4) canvas.create_image(data.splashButtonY, data.helpButton, image=data.mode5) canvas.create_image(data.splashButtonY, data.sboardButton, image=data.mode6) def rainDropSplash(data): xPosition = random.randint(0, 800) data.splashScreenDrops.append(Coconuts(xPosition, 0)) def splashScreenRedrawAll(canvas, data): canvas.create_image(data.width / 2, data.splashText - 10, image=data.title) for drop in data.splashScreenDrops: drop.draw(canvas) canvas.create_text( data.width / 2, data.splashText, text=""" 1.) Single Player Level Mode 2.) Two-Player Mode 3.) Level Creator Practice Mode 4.) Play Against the Computer 5.) Help and Instructions 6.) Scoreboard """, font="Arial 14 bold", fill="yellow", ) splashScreenButtons(canvas, data) #################################### # taken from class notes #################################### def writeFile(path, contents): with open(path, "wt") as f: f.write(contents) def readFile(path): with open(path, "rt") as f: return f.read() #################################### # 1Player mode #################################### # Coconuts (from Mario game) represent the water drops class Coconuts(object): def __init__(self, x, y): self.x = x self.y = y self.r = 9 self.fill = "deep sky blue" self.speed = 30 self.outline = "blue" def draw(self, canvas): canvas.create_polygon( self.x, self.y - 2 * self.r, self.x - self.r, self.y, self.x, self.y + self.r, self.x + self.r, self.y, fill=self.fill, outline=self.outline, width=3, ) def onTimerFired(self, data): # downward falling motion self.y += self.speed def hit(data): # checks for hitting rain for coconut in data.coconuts: if data.mode == "1Player" or data.mode == "levelCreated": if coconut.y >= data.cy - data.r and coconut.y <= data.cy + data.r: if coconut.x >= data.cx - data.r and coconut.x <= data.cx + data.r: data.cy += data.hitPenalty if data.mode == "levelCreated": data.lives -= 1 elif data.hit == False and data.level < data.levelMax: data.score -= data.level data.coconuts.remove(coconut) if data.mode == "levelCreated": data.levelEditorLives -= 1 def hit2Player(data): if data.mode == "2Player": if data.Invincible1 == False: # only when powerup isn't active for coconut in data.coconuts1: if coconut.y >= data.player1Y - data.r and coconut.y <= data.player1Y + data.r: if coconut.x >= data.player1X - data.r and coconut.x <= data.player1X + data.r: data.player1Y += data.hitPenalty data.coconuts1.remove(coconut) if data.Invincible2 == False: # only when powerup isn't active for coconut in data.coconuts2: if coconut.y >= data.player2Y - data.r and coconut.y <= data.player2Y + data.r: if coconut.x >= data.player2X - data.r and coconut.x <= data.player2X + data.r: data.player2Y += data.hitPenalty data.coconuts2.remove(coconut) class PowerUps(Coconuts): def __init__(self, x, y): super().__init__(x, y) def draw(self, canvas, data): canvas.create_image(self.x, self.y, image=data.hourGlass) def hitPause(data): # checks if hits hour-glass & pauses with flag for powerUp in data.powerUps: if data.mode == "1Player" or data.mode == "levelCreated": if powerUp.y >= data.cy - data.r and powerUp.y <= data.cy + data.r: if powerUp.x >= data.cx - data.r and powerUp.x <= data.cx + data.r: data.pauseDrops = True data.start = data.cy data.powerUps.remove(powerUp) elif data.mode == "2Player" or data.mode == "AI": if powerUp.y >= data.player1Y - data.r and powerUp.y <= data.player1Y + data.r: if powerUp.x >= data.player1X - data.r and powerUp.x <= data.player1X + data.r: data.pause1Drop = True data.start1 = data.player1Y data.powerUps.remove(powerUp) if powerUp.y >= data.player2Y - data.r and powerUp.y <= data.player2Y + data.r: if powerUp.x >= data.player2X - data.r and powerUp.x <= data.player2X + data.r: data.pause2Drop = True data.start2 = data.player2Y data.powerUps.remove(powerUp) class Invincible(PowerUps): def __init__(self, x, y): super().__init__(x, y) def draw(self, canvas, data): canvas.create_image(self.x, self.y, image=data.umbrella) def hitInvincible(data): # checks if hits umbrella powerup for powerUp in data.invincible: if data.mode == "1Player" or data.mode == "levelCreated": if powerUp.y >= data.cy - data.r and powerUp.y <= data.cy + data.r: if powerUp.x >= data.cx - data.r and powerUp.x <= data.cx + data.r: data.beInvincible = True data.start = data.cy data.invincible.remove(powerUp) if data.mode == "2Player" or data.mode == "AI": # for player1 if powerUp.y >= data.player1Y - data.r and powerUp.y <= data.player1Y + data.r: if powerUp.x >= data.player1X - data.r and powerUp.x <= data.player1X + data.r: data.Invincible1 = True data.start1 = data.player1Y data.invincible.remove(powerUp) # for player 2 if powerUp.y >= data.player2Y - data.r and powerUp.y <= data.player2Y + data.r: if powerUp.x >= data.player2X - data.r and powerUp.x <= data.player2X + data.r: data.Invincible2 = True data.start2 = data.player2Y data.invincible.remove(powerUp) class ScaryBug(object): def __init__(self, x, y): self.x = x self.y = y self.speed = 25 def draw(self, canvas, data): canvas.create_image(self.x, self.y, image=data.spider) def onTimerFired(self, data): if data.mode == "2Player" or data.mode == "AI": self.speed = 35 self.y -= self.speed if data.mode == "1Player" or data.mode == "levelCreated" and data.time % 8 == 0: # makes spider dynamically move side = random.choice(data.sides) if side == "l": if self.x - data.lane >= data.Player1Min: self.x -= data.lane else: self.x += data.lane elif side == "r": if self.x + data.lane <= data.Player1Max: self.x += data.lane else: self.x -= data.lane def hitScaryBug(data): # checks for automatic death by spider for bug in data.scaryBug: if data.mode == "1Player" or data.mode == "levelCreated": if bug.y >= data.cy - 1.5 * data.r and bug.y <= data.cy + 1.5 * data.r: if bug.x >= data.cx - 1.5 * data.r and bug.x <= data.cx + 1.5 * data.r: data.hit = True data.lives = 0 data.levelEditorLives = 0 if data.mode == "2Player" or data.mode == "AI": if bug.y >= data.player1Y - data.r and bug.y <= data.player1Y + data.r: if bug.x >= data.player1X - data.r and bug.x <= data.player1X + data.r: data.winner = "player2" if bug.y >= data.player2Y - data.r and bug.y <= data.player2Y + data.r: if bug.x >= data.player2X - data.r and bug.x <= data.player2X + data.r: data.winner = "player1" def drawPowerups(canvas, data): for bug in data.scaryBug: bug.draw(canvas, data) for powerUp in data.powerUps: powerUp.draw(canvas, data) for powerUp in data.invincible: powerUp.draw(canvas, data) def drawHome(canvas, data): # home button in every screen canvas.create_image(data.homeX, data.homeY, image=data.home) def checkHome(event, data): if data.homeY - data.r <= event.y <= data.homeY + data.r: if data.homeX - data.r <= event.x <= data.homeX + data.r: init(data) def coconutShot(data): if data.level > 0 and data.pauseDrops == False: if data.time % int(data.levelMax / data.level) == 0 or data.time % 6 == 0: # increases drops as level increases xPosition1 = random.randint(0, data.Player1Min - data.buffer) xPosition2 = random.randint(data.Player1Max + data.buffer, data.width + data.buffer) data.coconuts.append(Coconuts(xPosition1, 0)) data.coconuts.append(Coconuts(xPosition2, 0)) xPosition4 = random.randint(data.Player1Min - data.buffer, data.Player1Max + data.buffer) data.coconuts.append(Coconuts(xPosition4, 0)) if data.time % 5 == 0: xPosition3 = random.randint(0, data.Player1Min - data.buffer) data.coconuts.append(Coconuts(xPosition3, 0)) if data.time % int(24 / data.level) == 0: side = random.choice(data.sides) if side == "l": data.coconuts.append(Coconuts(data.Player1Min, 0)) elif side == "r": data.coconuts.append(Coconuts(data.Player1Max, 0)) powerUpCoconutShot(data) def powerUpCoconutShot(data): # adds powerUps # magic #s toallow for powerups to be added at different times if data.time % 60 == 0 and data.time % 120 != 0: Position = random.choice(data.spotList) data.powerUps.append(PowerUps(Position, 0)) if data.time % 50 == 0: Position = random.choice(data.spotList) data.invincible.append(Invincible(Position, 0)) if data.time % 100 == 0: Position = random.choice(data.spotList) data.scaryBug.append(ScaryBug(Position, 750)) def playerKeyPressed(event, data): if data.level < data.levelMax and event.keysym == "r": init(data) if (event.keysym == "Left") and data.cx >= data.Player1Min + (data.lane / 2): data.cx -= (data.lane) / 2 elif (event.keysym == "Right") and data.cx <= data.Player1Max: data.cx += (data.lane) / 2 if data.level >= data.levelMax: # enter name for scoreboard if len(event.keysym) == 1: if len(data.name) < 15: data.name += event.keysym if event.keysym == "BackSpace": data.name = data.name[0:-1] if event.keysym == "Return": data.scoreList += (data.score, data.name) # saves file writeFile("score.txt", data.savedScores + str(data.score) + "," + data.name + "\n") data.mode = "scoreboard" def playerMousePressed(event, data): checkHome(event, data) def playerTimerFired(data): # actually pauses, and moves drops/player if data.hit == False and data.level < data.levelMax: data.cy -= data.speed if data.time % 5 == 0: data.score += data.level if data.cy < 15: # basically made it to the top data.level += 1 data.cy = data.Player1Max + 10 data.speed += 2 if data.cy > 40: # so drops you can't see don't hit you data.time += 1 if data.pauseDrops != True: coconutShot(data) for powerUp in data.powerUps: powerUp.onTimerFired(data) hitPause(data) for powerUp in data.invincible: powerUp.onTimerFired(data) hitInvincible(data) for bug in data.scaryBug: bug.onTimerFired(data) hitScaryBug(data) for coconut in data.coconuts: # only want drops to move if not paused if data.pauseDrops == False: coconut.onTimerFired(data) if data.beInvincible == False: hit(data) if data.start != None: if abs(data.start - data.cy) >= 120: # to limit time for powerups to be active data.pauseDrops, data.beInvincible = False, False def playerRedrawAll(canvas, data): # magic #s mainly for screen placement canvas.create_image(data.width / 2, data.height / 2, image=data.background) canvas.create_line(0, 20, data.width, 20) for coconut in data.coconuts: coconut.draw(canvas) drawPowerups(canvas, data) canvas.create_image(data.cx, data.cy, image=data.ladyBug) canvas.create_text(data.width / 6, 50, text="Level: %d" % data.level, font="Arial 18 bold", fill="yellow") canvas.create_text(data.width / 6, 80, text="Score: %d" % data.score, font="Arial 18 bold", fill="yellow") canvas.create_text( 2 * data.width / 3, 660, text="""The greater the level, the more points get added to your score!""", font="Arial 15 bold", fill="yellow", ) if data.hit == True: canvas.create_rectangle(0, 0, data.width, data.height, fill="black") canvas.create_image(data.width / 2, data.height / 2, image=data.deadScreen) canvas.create_text( data.width / 2, data.height / 4, text="You Lose! Better Luck Next Time!", font="Helvetica 23 bold", fill="yellow" ) canvas.create_text(data.width / 2, 280, text="Score: %d" % data.score, font="Arial 13 bold", fill="yellow") if data.level >= 8: madeIt(canvas, data) drawHome(canvas, data) def madeIt(canvas, data): # magic #s mainly for screen placement canvas.create_rectangle(0, 0, data.width, data.height, fill="black") canvas.create_image(data.width / 2, data.height / 2, image=data.winScreen) canvas.create_image(300, 320, image=data.winBug) canvas.create_text(data.width / 2, 70, text="You Made it!", font="Arial 23 bold", fill="yellow") canvas.create_text(data.width / 2, 100, text="Score: %d" % data.score, font="Arial 15 bold", fill="yellow") canvas.create_text(data.width / 2, 375, text="Congrats! Enter your Name!", font="Arial 15 bold", fill="yellow") canvas.create_rectangle(data.width / 2 - 50, 400, data.width / 2 + 50, 450, fill="white") canvas.create_text(data.width / 2, 425, text=data.name) #################################### # 2Player mode #################################### def drop2Player(data): # adds drops when not paused # magic #s are position of where drops are starting if data.winner == None and data.pauseDrops == False: if data.time % 15 == 0: xPosition1 = random.randint(0, 385) if abs(xPosition1 - 100) > 25 and abs(xPosition1 - 360) > 25: # so random drops don't interfere with the lane ones if data.pause1Drop != True: data.coconuts1.append(Coconuts(xPosition1, 0)) if data.pause2Drop != True: data.coconuts2.append(Coconuts(xPosition1 + 410, 0)) if data.time % 12 == 0: side = random.choice(data.sides) if side == "l": if data.pause1Drop != True: data.coconuts1.append(Coconuts(140, 0)) if data.pause2Drop != True: data.coconuts2.append(Coconuts(540, 0)) elif side == "r": if data.pause1Drop != True: data.coconuts1.append(Coconuts(344, 0)) if data.pause2Drop != True: data.coconuts2.append(Coconuts(755, 0)) powerupDrop2Player(data) def powerupDrop2Player(data): # adds powerups on both screens (in the same position) if data.time % 45 == 0 and data.time % 90 != 0: # randomize placement side = random.choice(data.sides) if side == "l": if data.pause1Drop != True: data.powerUps.append(PowerUps(140, 0)) if data.pause2Drop != True: data.powerUps.append(PowerUps(540, 0)) elif side == "r": if data.pause1Drop != True: data.powerUps.append(PowerUps(344, 0)) if data.pause2Drop != True: data.powerUps.append(PowerUps(755, 0)) if data.time % 60 == 0: side = random.choice(data.sides) if side == "l": if data.pause1Drop != True: data.invincible.append(Invincible(140, 0)) if data.pause2Drop != True: data.invincible.append(Invincible(540, 0)) elif side == "r": if data.pause1Drop != True: data.invincible.append(Invincible(344, 0)) if data.pause2Drop != True: data.invincible.append(Invincible(755, 0)) if data.time % 90 == 0: side = random.choice(data.sides) if side == "l": data.scaryBug.append(ScaryBug(140, 750)) data.scaryBug.append(ScaryBug(540, 750)) elif side == "r": data.scaryBug.append(ScaryBug(344, 750)) data.scaryBug.append(ScaryBug(755, 750)) def twoPlayerKeyPressed(event, data): # controllers for both bugs if event.keysym == "r": init(data) if data.winner == None: if (event.keysym == "a") and data.onLeft1 == False: data.onLeft1 = True data.player1X = 150 if (event.keysym == "d") and data.onLeft1 == True: data.onLeft1 = False data.player1X = 330 if (event.keysym == "Left") and data.onLeft2 == False: data.onLeft2 = True data.player2X = 550 if (event.keysym == "Right") and data.onLeft2 == True: data.onLeft2 = False data.player2X = 750 def twoPlayerMousePressed(event, data): checkHome(event, data) def twoPlayerTimerFired(data): if data.winner == None: data.player1Y -= data.speed # <15 signifies that lady bug reached the top if data.player1Y < 15 and data.player2Y > 15: data.winner = "player1" if data.player1Y > 40: data.time += 1 drop2Player(data) data.player2Y -= data.speed if data.player2Y < 15 and data.player1Y > 15: data.winner = "player2" if data.player2Y > 40: data.time += 1 drop2Player(data) if data.player1Y < 15 and data.player2Y < 15: data.winner = "tie" for powerUp in data.powerUps: powerUp.onTimerFired(data) hitPause(data) for powerUp in data.invincible: powerUp.onTimerFired(data) hitInvincible(data) for bug in data.scaryBug: bug.onTimerFired(data) hitScaryBug(data) powerupTimerFired(data) def powerupTimerFired(data): for coconut in data.coconuts1: if data.pause1Drop == False: coconut.onTimerFired(data) hit2Player(data) for coconut in data.coconuts2: if data.pause2Drop == False: coconut.onTimerFired(data) if data.start1 != None: # to make powerups only active for set amount of time if abs(data.start1 - data.player1Y) >= 120: data.pause1Drop = False data.Invincible1 = False if data.start2 != None: if abs(data.start2 - data.player2Y) >= 120: data.pause2Drop = False data.Invincible2 = False def twoPlayerRedrawAll(canvas, data): # magic #s for placement on screen canvas.create_image(data.width / 4, data.height / 2, image=data.halfBackground) canvas.create_image(3 * data.width / 4, data.height / 2, image=data.halfBackground) canvas.create_line(data.width / 2, 0, data.width / 2, data.height, width=10) canvas.create_line(0, 20, data.width, 20) for coconut in data.coconuts1: coconut.draw(canvas) for coconut in data.coconuts2: coconut.draw(canvas) drawPowerups(canvas, data) canvas.create_image(data.player1X, data.player1Y, image=data.ladyBug) canvas.create_image(data.player2X, data.player2Y, image=data.ladyBug) canvas.create_text(50, 40, text="Player 1", font="Arial 15 bold", fill="yellow") canvas.create_text(450, 40, text="Player 2", font="Arial 15 bold", fill="yellow") winner(canvas, data) drawHome(canvas, data) def winner(canvas, data): if data.winner == "player1": canvas.create_rectangle(0, 0, data.width, data.height, fill="black") canvas.create_image(data.width / 2, data.height / 2, image=data.winScreen) canvas.create_image(300, 320, image=data.winBug) canvas.create_text(data.width / 2, 100, text="You Made it! Player 1", font="Arial 23 bold", fill="yellow") elif data.winner == "player2": canvas.create_rectangle(0, 0, data.width, data.height, fill="black") canvas.create_image(data.width / 2, data.height / 2, image=data.winScreen) canvas.create_image(300, 320, image=data.winBug) canvas.create_text(data.width / 2, 100, text="You Made it! Player 2", font="Arial 23 bold", fill="yellow") elif data.winner == "tie": canvas.create_rectangle(0, 0, data.width, data.height, fill="black") canvas.create_image(data.width / 2, data.height / 2, image=data.winScreen) canvas.create_image(300, 320, image=data.winBug) canvas.create_text(data.width / 2, 100, text="Tie! You Both Made it!", font="Arial 23 bold", fill="yellow") #################################### # editor mode #################################### def editorKeyPressed(event, data): if event.keysym == "r": init(data) def editorMousePressed(event, data): # check for click on button for your speed checkHome(event, data) if data.easyY - data.r <= event.y <= data.easyY + data.r: if data.easyX - 2 * data.r <= event.x <= data.easyX + 2 * data.r: data.yourSpeed = "slow" data.slow = data.click data.medium, data.fast = data.notClick, data.notClick if data.medX - 2 * data.r <= event.x <= data.medX + 2 * data.r: data.yourSpeed = "medium" data.medium = data.click data.slow, data.fast = data.notClick, data.notClick if data.hardX - 2 * data.r <= event.x <= data.hardX + 2 * data.r: data.yourSpeed = "fast" data.fast = data.click data.slow, data.medium = data.notClick, data.notClick checkMiddle(event, data) checkLast(event, data) def checkMiddle(event, data): # check for click on button for rain speed if data.medX - data.r <= event.y <= data.medX + data.r: if data.easyX - 2 * data.r <= event.x <= data.easyX + 2 * data.r: data.rainSpeed = "drizzle" data.drizzle = data.click data.rain, data.thunderstorm = data.notClick, data.notClick if data.medX - 2 * data.r <= event.x <= data.medX + 2 * data.r: data.rainSpeed = "rain" data.rain = data.click data.drizzle, data.thunderstorm = data.notClick, data.notClick if data.hardX - 2 * data.r <= event.x <= data.hardX + 2 * data.r: data.rainSpeed = "thunderstorm" data.thunderstorm = data.click data.drizzle, data.rain = data.notClick, data.notClick def checkLast(event, data): # check for click on button for powerups if data.last - data.r <= event.y <= data.last + data.r: if data.easyY - 2 * data.r <= event.x <= data.easyY + 2 * data.r: data.powerUpsEditor = True data.yes, data.no = data.click, data.notClick if data.last - 2 * data.r <= event.x <= data.last + 2 * data.r: data.powerUpsEditor = False data.no, data.yes = data.click, data.notClick if data.enter == data.click: if data.enterX - data.r <= event.y <= data.enterX + data.r: if data.medX - 2 * data.r <= event.x <= data.medX + 2 * data.r: data.mode = "levelCreated" def drawButtons(canvas, data): # makes each button data.font, data.fill = "Helvetica 13 bold", "yellow" canvas.create_text(data.medX, data.YST, text="Your Speed:", font=data.font, fill=data.fill) canvas.create_image(data.easyX, data.easyY, image=data.slow) canvas.create_text(data.easyX, data.easyY, text="Slow", font=data.font) canvas.create_image(data.medX, data.easyY, image=data.medium) canvas.create_text(data.medX, data.easyY, text="Medium", font=data.font) canvas.create_image(data.hardX, data.easyY, image=data.fast) canvas.create_text(data.hardX, data.easyY, text="Fast", font=data.font) canvas.create_image(data.easyX, data.medX, image=data.drizzle) canvas.create_text(data.medX, data.RST, text="Rain Speed:", font=data.font, fill=data.fill) canvas.create_text(data.easyX, data.medX, text="Drizzle", font=data.font) canvas.create_image(data.medX, data.medX, image=data.rain) canvas.create_text(data.medX, data.medX, text="Rain", font=data.font) canvas.create_image(data.hardX, data.medX, image=data.thunderstorm) canvas.create_text(data.hardX, data.medX, text="Heavy", font=data.font) canvas.create_text(data.medX, data.PUT, text="PowerUps?", font=data.font, fill=data.fill) canvas.create_image(data.easyY, data.last, image=data.yes) canvas.create_text(data.easyY, data.last, text="Yes", font=data.font) canvas.create_image(data.last, data.last, image=data.no) canvas.create_text(data.last, data.last, text="No", font=data.font) changeEnter(canvas, data) def changeEnter(canvas, data): # makes it so the enter button respond to click if data.powerUpsEditor != None and data.yourSpeed != None and data.rainSpeed != None: data.enter = data.click canvas.create_image(data.medX, data.enterX, image=data.enter) canvas.create_text(data.medX, data.enterX, text="Enter", font=data.font) def editorTimerFired(data): data.editorTime += 1 if data.editorTime % 2 == 0: rainDrop(data) for drop in data.editorDrops: drop.onTimerFired(data) def rainDrop(data): # background drops xPosition = random.randint(0, data.width) data.editorDrops.append(Coconuts(xPosition, 0)) def editorRedrawAll(canvas, data): canvas.create_image(data.width / 2, data.height / 2, image=data.background) canvas.create_image(data.width / 2, data.height / 2, image=data.tbg) for drop in data.editorDrops: drop.draw(canvas) canvas.create_text(data.width / 2, data.S_P - 10, text="Edit Your Level!", font="Arial 23 bold", fill="yellow") drawButtons(canvas, data) drawHome(canvas, data) #################################### # levelCreated mode #################################### def setEverything(data): # customizing game if data.yourSpeed == "slow": data.speed = 6 elif data.yourSpeed == "medium": data.speed = 10 elif data.yourSpeed == "fast": data.speed = 14 if data.rainSpeed == "thunderstorm": data.rSpeed = 7 elif data.rainSpeed == "rain": data.rSpeed = 10 elif data.rainSpeed == "drizzle": data.rSpeed = 13 def levelCoconutShot(data): # adding drops if data.levelEditorLives > 0: if data.time % int(0.35 * data.rSpeed) == 0: xPosition1 = random.randint(0, data.Player1Min - data.buffer) xPosition2 = random.randint(770, 870) xPosition3 = random.randint(220, 770) data.coconuts.append(Coconuts(xPosition3, 0)) data.coconuts.append(Coconuts(xPosition1, 0)) data.coconuts.append(Coconuts(xPosition2, 0)) if data.time % int(0.55 * data.rSpeed) == 0: xPosition3 = random.randint(0, 220) xPosition5 = random.randint(220, 770) data.coconuts.append(Coconuts(xPosition3, 0)) data.coconuts.append(Coconuts(xPosition5, 0)) if data.time % int(data.rSpeed) == 0: side = random.choice(data.sides) if side == "l": data.coconuts.append(Coconuts(3 * data.width / 8 - 20, 0)) elif side == "r": data.coconuts.append(Coconuts(7 * data.width / 8 + 40, 0)) xPosition4 = random.randint(220, 770) data.coconuts.append(Coconuts(xPosition4, 0)) levelPowerUp(data) def levelPowerUp(data): # adding power-ups only if clicked yes if data.powerUpsEditor == True: if data.time % 20 == 0 and data.time % 40 != 0: Position = random.choice(data.spotList) data.powerUps.append(PowerUps(Position, 0)) if data.time % 30 == 0: Position = random.choice(data.spotList) data.invincible.append(Invincible(Position, 0)) if data.time % 35 == 0: Position = random.choice(data.spotList) data.scaryBug.append(ScaryBug(Position, 750)) def levelCreatedKeyPressed(event, data): if event.keysym == "r": init(data) if data.levelEditorLives > 0: if (event.keysym == "Left") and data.cx >= 317: data.cx -= data.lane / 2 elif (event.keysym == "Right") and data.cx <= 740: data.cx += data.lane / 2 def levelCreatedMousePressed(event, data): checkHome(event, data) def levelCreatedTimerFired(data): setEverything(data) if data.levelEditorLives > 0: data.cy -= data.speed if data.cy < 15: data.level += 1 if data.cy > 40: data.time += 1 if data.pauseDrops != True: levelCoconutShot(data) if data.powerUpsEditor == False: for coconut in data.coconuts: coconut.onTimerFired(data) hit(data) if data.powerUpsEditor == True: for powerUp in data.powerUps: powerUp.onTimerFired(data) hitPause(data) for powerUp in data.invincible: powerUp.onTimerFired(data) hitInvincible(data) for bug in data.scaryBug: bug.onTimerFired(data) hitScaryBug(data) for coconut in data.coconuts: if data.pauseDrops == False: coconut.onTimerFired(data) if data.beInvincible == False: hit(data) if data.start != None: # to make powerups only active for set amount of time if abs(data.start - data.cy) >= 120: data.pauseDrops, data.beInvincible = False, False def levelCreatedRedrawAll(canvas, data): canvas.create_image(data.width / 2, data.height / 2, image=data.background) canvas.create_line(0, 20, data.width, 20) for coconut in data.coconuts: coconut.draw(canvas) if data.powerUpsEditor == True: drawPowerups(canvas, data) canvas.create_image(data.cx, data.cy, image=data.ladyBug) canvas.create_text(data.width / 6, 100, text="Total Lives: %d" % data.levelEditorLives, font="Arial 20 bold", fill="yellow") canvas.create_text( data.width / 2, 660, text="""You lose a life for hitting a drop & don't get eaten!""", font="Arial 15 bold", fill="yellow", ) if data.levelEditorLives <= 0: canvas.create_rectangle(0, 0, data.width, data.height, fill="black") canvas.create_image(data.width / 2, data.height / 2, image=data.deadScreen) canvas.create_text( data.width / 2, data.height / 4, text="You Lose! Better Luck Next Time!", font="Helvetica 23 bold", fill="yellow" ) if data.level > 1: winEditor(canvas, data) drawHome(canvas, data) def winEditor(canvas, data): # screen for when you win canvas.create_rectangle(0, 0, data.width, data.height, fill="black") canvas.create_image(data.width / 2, data.height / 2, image=data.winScreen) canvas.create_image(300, 320, image=data.winBug) canvas.create_text(data.width / 2, 100, text="You Made it!", font="Arial 23 bold", fill="yellow") #################################### # AI Difficulty Mode #################################### def difficultyKeyPressed(event, data): if event.keysym == "r": init(data) def drawDifficulties(canvas, data): canvas.create_text(data.medX, data.AITY, text="Computer Difficulty:", font="Arial 23 bold", fill="yellow") canvas.create_image(data.easyX, data.easyY, image=data.slow) canvas.create_text(data.easyX, data.easyY, text="Easy") canvas.create_image(data.medX, data.easyY, image=data.medium) canvas.create_text(data.medX, data.easyY, text="Medium") canvas.create_image(data.hardX, data.easyY, image=data.fast) canvas.create_text(data.hardX, data.easyY, text="Hard") if data.difficulty != None: data.enter = data.click canvas.create_image(data.medX, data.enterY, image=data.enter) canvas.create_text(data.medX, data.enterY, text="Enter") def difficultyMousePressed(event, data): # sets up buttons to customize checkHome(event, data) if data.easyY - data.r <= event.y <= data.easyY + data.r: if data.easyX - 2 * data.r <= event.x <= data.easyX + 2 * data.r: data.difficulty = data.difS data.slow = data.click data.medium, data.fast = data.notClick, data.notClick if data.medX - 2 * data.r <= event.x <= data.medX + 2 * data.r: data.difficulty = data.difM data.medium = data.click data.slow, data.fast = data.notClick, data.notClick if data.hardX - 2 * data.r <= event.x <= data.hardX + 2 * data.r: data.difficulty = data.difH data.fast = data.click data.slow, data.medium = data.notClick, data.notClick if data.enter == data.click: if data.enterY - data.r <= event.y <= data.enterY + data.r: if data.medX - 2 * data.r <= event.x <= data.medX + 2 * data.r: data.mode = "AI" def difficultyTimerFired(data): # makes normal background rain data.editorTime += 1 if data.editorTime % 2 == 0: rainDrop(data) for drop in data.editorDrops: drop.onTimerFired(data) def rainDrop(data): xPosition = random.randint(0, data.width) data.editorDrops.append(Coconuts(xPosition, 0)) def difficultyRedrawAll(canvas, data): canvas.create_image(data.width / 2, data.height / 2, image=data.background) canvas.create_image(data.width / 2, data.height / 2, image=data.tbg) for drop in data.editorDrops: drop.draw(canvas) drawDifficulties(canvas, data) drawHome(canvas, data) #################################### # AI mode #################################### def hitAI1(data, distance): for coconut in data.coconutsAI1: # so AI switches by itself if (data.player1Y - data.r - coconut.y <= distance) and data.switchOnProgress == False: if ( coconut.x >= data.player1X - data.r and coconut.x <= data.player1X + data.r or AISwitchBug(data, distance) == True ): testInt = random.randint(0, 9) # to have different levels of difficulty if testInt <= data.difficulty: data.switchOnProgress = True if data.player1X == 150: data.player1X = 340 else: data.player1X = 150 data.switchOnProgress = False if coconut.y >= data.player1Y - data.r and coconut.y <= data.player1Y + data.r: if coconut.x >= data.player1X - data.r and coconut.x <= data.player1X + data.r: data.player1Y += 50 data.coconutsAI1.remove(coconut) def AISwitchBug(data, distance): # AI to move for spider for scaryBug in data.scaryBug: if (data.player1Y - data.r - scaryBug.y <= distance) and data.switchOnProgress == False: if scaryBug.x >= data.player1X - data.r and scaryBug.x <= data.player1X + data.r: return True def hitAI2(data, distance): # check if human controlled player hits drops for coconut in data.coconutsAI2: if coconut.y >= data.player2Y - data.r and coconut.y <= data.player2Y + data.r: if coconut.x >= data.player2X - data.r and coconut.x <= data.player2X + data.r: data.player2Y += 50 data.coconutsAI2.remove(coconut) def coconutShotAI(data): if data.winner == None: # randomize position of drops off of tree if data.time % 15 == 0: xPosition1 = random.randint(0, 385) if abs(xPosition1 - 100) > 40 and abs(xPosition1 - 360) > 40: if data.pause1Drop != True: data.coconutsAI1.append(Coconuts(xPosition1, 0)) if data.pause2Drop != True: data.coconutsAI2.append(Coconuts(xPosition1 + 410, 0)) if data.time % 8 == 0: xPosition2 = random.randint(0, 80) xPosition3 = random.randint(364, 385) if data.pause1Drop != True: data.coconutsAI1.append(Coconuts(xPosition2, 0)) data.coconutsAI1.append(Coconuts(xPosition3, 0)) if data.pause2Drop != True: data.coconutsAI2.append(Coconuts(xPosition2 + 410, 0)) data.coconutsAI2.append(Coconuts(xPosition3 + 410, 0)) addExtraCoconut(data) addPowerUpsAI(data) def addExtraCoconut(data): # adds drops to edges of trees if data.time % (18) == 0: side = random.choice(data.sides) if side == "l": if data.pause1Drop != True: data.coconutsAI1.append(Coconuts(140, 0)) if data.pause2Drop != True: data.coconutsAI2.append(Coconuts(540, 0)) elif side == "r": if data.pause1Drop != True: data.coconutsAI1.append(Coconuts(344, 0)) if data.pause2Drop != True: data.coconutsAI2.append(Coconuts(755, 0)) if data.time % 37 == 0: side = random.choice(data.sides) if side == "l": if data.pause1Drop != True: data.powerUps.append(PowerUps(140, 0)) if data.pause2Drop != True: data.powerUps.append(PowerUps(550, 0)) elif side == "r": if data.pause1Drop != True: data.powerUps.append(PowerUps(344, 0)) if data.pause2Drop != True: data.powerUps.append(PowerUps(755, 0)) def addPowerUpsAI(data): # randomly add powerups on tree if data.time % 33 == 0: side = random.choice(data.sides) if side == "l": if data.pause1Drop != True: data.invincible.append(Invincible(140, 0)) if data.pause2Drop != True: data.invincible.append(Invincible(550, 0)) elif side == "r": if data.pause1Drop != True: data.invincible.append(Invincible(344, 0)) if data.pause2Drop != True: data.invincible.append(Invincible(755, 0)) if data.time % 66 == 0: side = random.choice(data.sides) if side == "l": data.scaryBug.append(ScaryBug(140, 750)) data.scaryBug.append(ScaryBug(550, 750)) elif side == "r": data.scaryBug.append(ScaryBug(344, 750)) data.scaryBug.append(ScaryBug(750, 750)) def AIKeyPressed(event, data): if event.keysym == "r": init(data) if data.winner == None: if (event.keysym == "Left") and data.onLeft1 == False: data.onLeft1 = True data.player2X = 550 elif (event.keysym == "Right") and data.onLeft1 == True: data.onLeft1 = False data.player2X = 750 def AIMousePressed(event, data): checkHome(event, data) def AITimerFired(data): if data.winner == None: # want to check hit twice (before & after elements move) if data.Invincible1 == False: hitAI1(data, 31) if data.Invincible2 == True: pass elif data.Invincible2 == False: hitAI2(data, 31) for coconut in data.coconutsAI1: if data.pause1Drop == False: coconut.onTimerFired(data) for coconut in data.coconutsAI2: if data.pause2Drop == False: coconut.onTimerFired(data) # second check if data.Invincible1 == False: hitAI1(data, 13) if data.Invincible2 == True: pass elif data.Invincible2 == False: hitAI2(data, 13) data.player1Y -= data.speedAI # establishing winer if data.player1Y < 15 and data.player2Y > 15: data.winner = "player1" if data.player1Y > 40: data.time += 1 coconutShotAI(data) data.player2Y -= data.speedAI if data.player2Y < 15 and data.player1Y > 15: data.winner = "player2" if data.player2Y > 40: data.time += 1 coconutShotAI(data) if data.player1Y < 15 and data.player2Y < 15: data.winner = "tie" for powerUp in data.powerUps: powerUp.onTimerFired(data) hitPause(data) powerUpAITimerFired(data) def powerUpAITimerFired(data): # moves both sides symmetrically for powerUp in data.invincible: powerUp.onTimerFired(data) hitInvincible(data) for bug in data.scaryBug: bug.onTimerFired(data) hitScaryBug(data) if data.start1 != None: if abs(data.start1 - data.player1Y) >= 120: data.pause1Drop = False data.Invincible1 = False if data.start2 != None: if abs(data.start2 - data.player2Y) >= 120: data.pause2Drop = False data.Invincible2 = False def AIRedrawAll(canvas, data): canvas.create_image(data.width / 4, data.height / 2, image=data.halfBackground) canvas.create_image(3 * data.width / 4, data.height / 2, image=data.halfBackground) canvas.create_line(data.width / 2, 0, data.width / 2, data.height, width=10) canvas.create_line(0, 20, data.width, 20) for coconut in data.coconutsAI1: coconut.draw(canvas) for coconut in data.coconutsAI2: coconut.draw(canvas) canvas.create_text(50, 40, text="Computer", font="Arial 15 bold", fill="yellow") canvas.create_text(450, 40, text="Player 1", font="Arial 15 bold", fill="yellow") drawPowerups(canvas, data) canvas.create_image(data.player1X, data.player1Y, image=data.ladyBug) canvas.create_image(data.player2X, data.player2Y, image=data.ladyBug) AIWinner(canvas, data) drawHome(canvas, data) def AIWinner(canvas, data): if data.winner == "player1": canvas.create_rectangle(0, 0, data.width, data.height, fill="black") canvas.create_image(data.width / 2, data.height / 2, image=data.winScreen) canvas.create_image(300, 320, image=data.winBug) canvas.create_text(data.width / 2, 100, text="The Computer Won :(", font="Arial 23 bold", fill="yellow") elif data.winner == "player2": canvas.create_rectangle(0, 0, data.width, data.height, fill="black") canvas.create_image(data.width / 2, data.height / 2, image=data.winScreen) canvas.create_image(300, 320, image=data.winBug) canvas.create_text(data.width / 2, 100, text="You Made it! You Won!", font="Arial 23 bold", fill="yellow") elif data.winner == "tie": canvas.create_rectangle(0, 0, data.width, data.height, fill="black") canvas.create_image(data.width / 2, data.height / 2, image=data.winScreen) canvas.create_image(300, 320, image=data.winBug) canvas.create_text(data.width / 2, 100, text="Tie! You Both Made it!", font="Arial 23 bold", fill="yellow") #################################### # ScoreBoard mode #################################### def scoreboardKeyPressed(event, data): if event.keysym == "r": init(data) def scoreboardMousePressed(event, data): checkHome(event, data) def scoreboardTimerFired(data): difficultyTimerFired(data) def scoreboardRedrawAll(canvas, data): canvas.create_image(data.width / 2, data.height / 2, image=data.background) canvas.create_image(data.width / 2, data.tbgY, image=data.tbg) for drop in data.editorDrops: drop.draw(canvas) canvas.create_text(data.width / 2, data.txtTScore, text="Top Scores!", font="Arial 30 bold", fill="yellow") canvas.create_text(data.width / 2, data.S_P, text="Score_Player", font="Arial 20 bold", fill="yellow") drawHome(canvas, data) # reads file data.savedScores data.savedScores = readFile("score.txt") score = data.savedScores.splitlines() scores = [] for line in score: scores.append(line.split(",")) # sorts scores to find top 5 scores = sorted(scores, key=lambda x: int(x[0])) top5 = scores[-data.numScores :] top5.reverse() for i in range(len(top5)): canvas.create_text(data.width / 2, data.scoreShift + (i * 50), text=top5[i], font="Arial 18 bold", fill="yellow") #################################### # help mode #################################### def helpKeyPressed(event, data): if event.keysym == "r": init(data) def helpMousePressed(event, data): checkHome(event, data) def helpTimerFired(data): difficultyTimerFired(data) def helpRedrawAll(canvas, data): canvas.create_image(data.width / 2, data.helpY, image=data.helpScreen) for drop in data.editorDrops: drop.draw(canvas) drawHome(canvas, data) ####################################### # use the run function as-is from notes ####################################### def run(width=15000, height=25000): def redrawAllWrapper(canvas, data): canvas.delete(ALL) redrawAll(canvas, data) canvas.update() def mousePressedWrapper(event, canvas, data): mousePressed(event, data) redrawAllWrapper(canvas, data) def keyPressedWrapper(event, canvas, data): keyPressed(event, data) redrawAllWrapper(canvas, data) def timerFiredWrapper(canvas, data): timerFired(data) redrawAllWrapper(canvas, data) # pause, then call timerFired again canvas.after(data.timerDelay, timerFiredWrapper, canvas, data) # Set up data and call init class Struct(object): pass data = Struct() data.width = width data.height = height data.timerDelay = 100 # milliseconds # create the root and the canvas root = Tk() init(data) canvas = Canvas(root, width=data.width, height=data.height) canvas.pack() # set up events root.bind("<Button-1>", lambda event: mousePressedWrapper(event, canvas, data)) root.bind("<Key>", lambda event: keyPressedWrapper(event, canvas, data)) timerFiredWrapper(canvas, data) # and launch the app root.mainloop() # blocks until window is closed print("bye!") run(1000, 1000)
[ 40, 5534, 1391, 110, 466, 351, 113, 327, 301, 1391, 658, 46, 222, 1097, 19488, 1164, 1220, 338, 222, 485, 4051, 222, 222, 4427, 14308, 222, 40, 5753, 11560, 664, 360, 30419, 49, 14833, 380, 414, 49, 222, 40, 1650, 331, 2322, 21343, 49, 9204, 587, 510, 16932, 49, 1665, 1296, 49, 222, 40, 2309, 5365, 49, 364, 1881, 3619, 222, 4427, 14308, 499, 222, 4427, 784, 222, 40, 3238, 222, 4427, 784, 222, 610, 3238, 45, 624, 731, 303, 727, 51, 5142, 299, 244, 53, 303, 727, 51, 2832, 299, 332, 24864, 4627, 39, 303, 727, 51, 7222, 8221, 299, 244, 54, 53, 53, 303, 727, 51, 2296, 299, 244, 61, 53, 53, 303, 727, 51, 1660, 299, 244, 61, 53, 53, 303, 727, 51, 7682, 299, 244, 54, 53, 303, 727, 51, 7682, 6231, 299, 244, 54, 55, 303, 727, 51, 7682, 6231, 55, 299, 244, 54, 55, 303, 727, 51, 4651, 1501, 5291, 299, 3208, 303, 727, 51, 119, 299, 244, 55, 58, 303, 727, 51, 10009, 299, 244, 55, 61, 53, 303, 727, 51, 2499, 299, 244, 60, 58, 53, 303, 727, 51, 286, 3695, 54, 49, 727, 51, 286, 3695, 55, 299, 2969, 49, 2969, 303, 727, 51, 4481, 299, 3208, 303, 727, 51, 352, 487, 16566, 299, 1627, 303, 727, 51, 7404, 90, 1088, 299, 1627, 303, 727, 51, 352, 487, 16566, 54, 299, 1627, 303, 727, 51, 352, 487, 16566, 55, 299, 1627, 303, 727, 51, 352, 487, 16566, 6231, 54, 299, 1627, 303, 727, 51, 352, 487, 16566, 6231, 55, 299, 1627, 303, 727, 51, 5834, 3582, 1497, 299, 1627, 303, 727, 51, 12091, 73, 33463, 299, 3208, 303, 727, 51, 12091, 54, 6260, 299, 3208, 303, 727, 51, 12091, 55, 6260, 299, 3208, 303, 3238, 54, 45, 624, 46, 499, 222, 610, 3238, 54, 45, 624, 731, 303, 727, 51, 883, 6358, 3582, 1497, 299, 3208, 303, 727, 51, 6358, 3582, 1497, 54, 299, 3208, 303, 727, 51, 6358, 3582, 1497, 55, 299, 3208, 303, 727, 51, 564, 692, 15822, 299, 1627, 303, 727, 51, 1021, 299, 244, 53, 303, 727, 51, 352, 487, 322, 38497, 299, 3208, 303, 727, 51, 38200, 299, 3059, 119, 411, 332, 113, 1465, 303, 727, 51, 2675, 299, 244, 54, 303, 727, 51, 24864, 4627, 1061, 299, 244, 53, 303, 727, 51, 24864, 4627, 73, 33463, 299, 1627, 303, 727, 51, 4175, 299, 26889, 1675, 45, 781, 366, 3266, 51, 7881, 678, 303, 727, 51, 14459, 4627, 299, 26889, 1675, 45, 781, 366, 14459, 15822, 51, 7881, 678, 303, 727, 51, 20233, 126, 15822, 299, 26889, 1675, 45, 781, 366, 20233, 126, 51, 7881, 678, 303, 727, 51, 4481, 4627, 299, 26889, 1675, 45, 781, 366, 3266, 3169, 54, 51, 7881, 678, 303, 727, 51, 4481, 15822, 299, 26889, 1675, 45, 781, 366, 31921, 15822, 51, 7881, 678, 303, 727, 51, 10919, 5777, 299, 26889, 1675, 45, 781, 366, 10919, 3371, 51, 7881, 678, 303, 727, 51, 3345, 45405, 299, 26889, 1675, 45, 781, 366, 3345, 45405, 55, 51, 7881, 678, 303, 727, 51, 35575, 299, 26889, 1675, 45, 781, 366, 35575, 51, 7881, 678, 303, 727, 51, 11343, 76, 405, 299, 26889, 1675, 45, 781, 366, 11343, 76, 405, 51, 7881, 678, 303, 727, 51, 24864, 4627, 299, 26889, 1675, 45, 781, 366, 24864, 51, 7881, 678, 303, 3238, 55, 45, 624, 46, 499, 222, 610, 3238, 55, 45, 624, 731, 303, 727, 51, 121, 4885, 299, 26889, 1675, 45, 781, 366, 121, 4885, 55, 51, 7881, 678, 303, 727, 51, 2956, 299, 26889, 1675, 45, 781, 366, 2956, 51, 7881, 678, 303, 727, 51, 1226, 2668, 299, 26889, 1675, 45, 781, 366, 1226, 2668, 51, 7881, 678, 303, 727, 51, 3857, 54, 93, 299, 244, 54, 58, 53, 303, 727, 51, 3857, 54, 94, 299, 244, 60, 58, 53, 303, 727, 51, 3857, 55, 93, 299, 244, 58, 58, 53, 303, 727, 51, 3857, 55, 94, 299, 244, 60, 58, 53, 303, 727, 51, 33655, 299, 1686, 303, 727, 51, 7682, 299, 244, 54, 55, 303, 727, 51, 7682, 55, 299, 244, 54, 55, 303, 727, 51, 5739, 1061, 299, 244, 53, 303, 727, 51, 5739, 73, 33463, 299, 1627, 303, 727, 51, 4553, 299, 244, 54, 53, 53, 303, 727, 51, 1422, 299, 3208, 303, 727, 51, 7404, 90, 1088, 4836, 299, 1686, 303, 727, 51, 8772, 8186, 299, 1686, 303, 727, 51, 18718, 8186, 299, 1686, 303, 727, 51, 20140, 299, 727, 51, 1226, 2668, 303, 727, 51, 9998, 299, 727, 51, 1226, 2668, 303, 727, 51, 6594, 299, 727, 51, 1226, 2668, 303, 727, 51, 105, 363, 20004, 299, 727, 51, 1226, 2668, 303, 727, 51, 18718, 299, 727, 51, 1226, 2668, 303, 727, 51, 368, 8505, 21294, 299, 727, 51, 1226, 2668, 303, 3238, 56, 45, 624, 46, 499, 222, 610, 3238, 56, 45, 624, 731, 303, 727, 51, 7150, 299, 727, 51, 1226, 2668, 303, 727, 51, 1365, 299, 727, 51, 1226, 2668, 303, 727, 51, 1422, 299, 727, 51, 1226, 2668, 303, 727, 51, 2675, 4836, 81, 4145, 299, 244, 55, 303, 727, 51, 119, 8186, 299, 1686, 303, 727, 51, 1384, 299, 1686, 303, 727, 51, 1384, 54, 299, 1686, 303, 727, 51, 1384, 55, 299, 1686, 303, 727, 51, 37853, 299, 1686, 303, 727, 51, 2832, 54, 299, 727, 51, 1226, 2668, 303, 727, 51, 2832, 55, 299, 727, 51, 1226, 2668, 303, 727, 51, 2832, 56, 299, 727, 51, 1226, 2668, 303, 727, 51, 2832, 57, 299, 727, 51, 1226, 2668, 303, 727, 51, 2832, 58, 299, 727, 51, 1226, 2668, 303, 727, 51, 2832, 59, 299, 727, 51, 1226, 2668, 303, 727, 51, 2849, 299, 26889, 1675, 45, 781, 366, 2849, 51, 7881, 678, 303, 727, 51, 4771, 4627, 299, 26889, 1675, 45, 781, 366, 4771, 54, 51, 7881, 678, 303, 727, 51, 1333, 299, 26889, 1675, 45, 781, 366, 1333, 51, 7881, 678, 303, 727, 51, 5142, 739, 299, 1627, 303, 727, 51, 7529, 739, 299, 447, 55, 60, 53, 49, 244, 56, 59, 57, 49, 244, 57, 58, 61, 49, 244, 58, 58, 55, 49, 244, 59, 57, 59, 49, 244, 60, 57, 53, 98, 303, 727, 51, 9047, 28716, 299, 43003, 459, 5142, 51, 2787, 678, 303, 434, 727, 51, 2832, 630, 332, 2675, 6880, 582, 310, 758, 37080, 45, 624, 46, 303, 3238, 24864, 4627, 14847, 45, 624, 46, 499, 222, 610, 3238, 24864, 4627, 14847, 45, 624, 731, 303, 727, 51, 24864, 1732, 94, 299, 244, 57, 55, 58, 303, 727, 51, 117, 54, 1732, 93, 299, 244, 55, 55, 58, 303, 727, 51, 117, 55, 1732, 93, 299, 244, 55, 62, 53, 303, 727, 51, 337, 1732, 299, 244, 56, 58, 58, 303, 727, 51, 4927, 1732, 299, 244, 57, 55, 58, 303, 727, 51, 4771, 1732, 299, 244, 57, 62, 53, 303, 727, 51, 120, 2207, 1732, 299, 244, 58, 58, 58, 303, 727, 51, 11369, 16305, 16617, 299, 244, 60, 58, 303, 727, 51, 24864, 1049, 299, 727, 51, 2296, 536, 244, 55, 449, 244, 55, 53, 303, 727, 51, 393, 4973, 299, 244, 55, 303, 727, 51, 2675, 2725, 299, 244, 61, 303, 727, 51, 16869, 299, 244, 62, 57, 303, 727, 51, 3516, 54, 2944, 299, 244, 55, 60, 53, 303, 727, 51, 3516, 54, 2725, 299, 244, 60, 57, 53, 303, 727, 51, 2849, 93, 299, 244, 58, 53, 303, 727, 51, 2849, 94, 299, 244, 59, 58, 53, 303, 3238, 7066, 8447, 9035, 45, 624, 46, 303, 3238, 54, 3516, 45, 624, 46, 499, 222, 610, 3238, 7066, 8447, 9035, 45, 624, 731, 303, 727, 51, 121, 4885, 94, 299, 244, 58, 338, 727, 51, 2296, 536, 244, 54, 55, 303, 727, 51, 2787, 89, 7066, 299, 244, 54, 58, 53, 303, 727, 51, 88, 100, 85, 299, 244, 55, 55, 53, 303, 727, 51, 1538, 28716, 299, 244, 58, 303, 727, 51, 5142, 3010, 299, 727, 51, 2296, 536, 244, 54, 53, 303, 727, 51, 5142, 10221, 299, 244, 55, 60, 53, 303, 727, 51, 4771, 94, 299, 727, 51, 2296, 536, 244, 55, 449, 244, 55, 53, 303, 727, 51, 444, 299, 3347, 303, 727, 51, 1243, 577, 299, 3347, 303, 727, 51, 11369, 299, 3208, 303, 3238, 6231, 45, 624, 46, 499, 222, 610, 3238, 54, 3516, 45, 624, 731, 303, 727, 51, 2683, 299, 244, 57, 53, 499, 222, 610, 3238, 6231, 45, 624, 731, 303, 727, 51, 70, 2932, 299, 244, 55, 55, 58, 303, 727, 51, 15197, 93, 299, 244, 55, 53, 53, 303, 727, 51, 15197, 94, 299, 244, 56, 53, 53, 303, 727, 51, 1987, 93, 299, 244, 57, 53, 53, 303, 727, 51, 10071, 93, 299, 244, 59, 53, 53, 303, 727, 51, 1422, 94, 299, 244, 57, 58, 53, 303, 727, 51, 27725, 88, 299, 244, 57, 303, 727, 51, 27725, 82, 299, 244, 59, 303, 727, 51, 27725, 77, 299, 244, 61, 303, 727, 51, 2153, 299, 244, 58, 53, 53, 303, 727, 51, 1422, 93, 299, 244, 58, 60, 58, 303, 727, 51, 4758, 299, 244, 57, 58, 53, 303, 727, 51, 9548, 299, 244, 56, 58, 53, 303, 727, 51, 94, 654, 299, 244, 55, 58, 53, 499, 222, 4427, 784, 222, 40, 2945, 26598, 222, 4427, 784, 499, 222, 610, 8466, 12728, 45, 1585, 49, 727, 731, 303, 434, 727, 51, 2832, 630, 332, 24864, 4627, 582, 310, 44623, 4627, 6042, 12728, 45, 1585, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 54, 3516, 582, 310, 4376, 6042, 12728, 45, 1585, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 55, 3516, 582, 310, 3161, 3516, 6042, 12728, 45, 1585, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 5739, 582, 310, 7020, 6042, 12728, 45, 1585, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 2675, 6880, 582, 310, 3215, 6880, 6042, 12728, 45, 1585, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 6231, 582, 310, 418, 2348, 2637, 12728, 45, 1585, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 37853, 582, 310, 32660, 6042, 12728, 45, 1585, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 5142, 2207, 582, 310, 6842, 2207, 6042, 12728, 45, 1585, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 4771, 582, 310, 3071, 6042, 12728, 45, 1585, 49, 727, 46, 499, 222, 610, 1221, 12728, 45, 1585, 49, 727, 731, 303, 434, 727, 51, 2832, 630, 332, 24864, 4627, 582, 310, 44623, 971, 12728, 45, 1585, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 54, 3516, 582, 310, 4376, 971, 12728, 45, 1585, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 55, 3516, 582, 310, 3161, 3516, 971, 12728, 45, 1585, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 5739, 582, 310, 7020, 971, 12728, 45, 1585, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 2675, 6880, 582, 310, 3215, 6880, 971, 12728, 45, 1585, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 6231, 582, 310, 19588, 971, 12728, 45, 1585, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 37853, 582, 310, 32660, 971, 12728, 45, 1585, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 5142, 2207, 582, 310, 6842, 2207, 971, 12728, 45, 1585, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 4771, 582, 310, 3071, 971, 12728, 45, 1585, 49, 727, 46, 499, 222, 610, 8764, 75, 3929, 45, 624, 731, 303, 434, 727, 51, 2832, 630, 332, 24864, 4627, 582, 310, 44623, 4627, 6423, 75, 3929, 45, 624, 46, 303, 4378, 727, 51, 2832, 630, 332, 54, 3516, 582, 310, 4376, 6423, 75, 3929, 45, 624, 46, 303, 4378, 727, 51, 2832, 630, 332, 55, 3516, 582, 310, 3161, 3516, 6423, 75, 3929, 45, 624, 46, 303, 4378, 727, 51, 2832, 630, 332, 5739, 582, 310, 7020, 6423, 75, 3929, 45, 624, 46, 303, 4378, 727, 51, 2832, 630, 332, 2675, 6880, 582, 310, 3215, 6880, 6423, 75, 3929, 45, 624, 46, 303, 4378, 727, 51, 2832, 630, 332, 6231, 582, 310, 418, 799, 2862, 75, 3929, 45, 624, 46, 303, 4378, 727, 51, 2832, 630, 332, 37853, 582, 310, 32660, 6423, 75, 3929, 45, 624, 46, 303, 4378, 727, 51, 2832, 630, 332, 5142, 2207, 582, 310, 6842, 2207, 6423, 75, 3929, 45, 624, 46, 303, 4378, 727, 51, 2832, 630, 332, 4771, 582, 310, 3071, 6423, 75, 3929, 45, 624, 46, 499, 222, 610, 38848, 1947, 45, 8046, 49, 727, 731, 303, 434, 727, 51, 2832, 630, 332, 24864, 4627, 582, 310, 44623, 4627, 4038, 1312, 1947, 45, 8046, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 54, 3516, 582, 310, 4376, 4038, 1312, 1947, 45, 8046, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 55, 3516, 582, 310, 3161, 3516, 4038, 1312, 1947, 45, 8046, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 5739, 582, 310, 7020, 4038, 1312, 1947, 45, 8046, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 2675, 6880, 582, 310, 3215, 6880, 4038, 1312, 1947, 45, 8046, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 6231, 582, 310, 418, 3914, 337, 1312, 1947, 45, 8046, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 37853, 582, 310, 32660, 4038, 1312, 1947, 45, 8046, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 5142, 2207, 582, 310, 6842, 2207, 4038, 1312, 1947, 45, 8046, 49, 727, 46, 303, 4378, 727, 51, 2832, 630, 332, 4771, 582, 310, 3071, 4038, 1312, 1947, 45, 8046, 49, 727, 46, 499, 222, 4427, 784, 222, 40, 44623, 4627, 2945, 222, 4427, 784, 222, 610, 44623, 4627, 6042, 12728, 45, 1585, 49, 727, 731, 303, 607, 9378, 456, 7818, 451, 2945, 303, 434, 727, 51, 24864, 1732, 94, 449, 244, 55, 338, 727, 51, 119, 2527, 1708, 51, 125, 2527, 727, 51, 24864, 1732, 94, 494, 244, 55, 338, 727, 51, 119, 63, 310, 434, 727, 51, 117, 54, 1732, 93, 449, 727, 51, 119, 2527, 1708, 51, 126, 2527, 727, 51, 117, 54, 1732, 93, 494, 727, 51, 119, 63, 343, 727, 51, 2832, 299, 332, 54, 3516, 39, 310, 434, 727, 51, 117, 55, 1732, 93, 449, 727, 51, 119, 2527, 1708, 51, 126, 2527, 727, 51, 117, 55, 1732, 93, 494, 727, 51, 119, 63, 343, 727, 51, 2832, 299, 332, 55, 3516, 39, 310, 434, 727, 51, 337, 1732, 449, 727, 51, 119, 2527, 1708, 51, 126, 2527, 727, 51, 337, 1732, 494, 727, 51, 119, 63, 343, 727, 51, 2832, 299, 332, 5739, 39, 310, 434, 727, 51, 4927, 1732, 449, 727, 51, 119, 2527, 1708, 51, 126, 2527, 727, 51, 4927, 1732, 494, 727, 51, 119, 63, 343, 727, 51, 2832, 299, 332, 37853, 39, 310, 434, 727, 51, 4771, 1732, 449, 727, 51, 119, 2527, 1708, 51, 126, 2527, 727, 51, 4771, 1732, 494, 727, 51, 119, 63, 343, 727, 51, 2832, 299, 332, 4771, 39, 310, 434, 727, 51, 120, 2207, 1732, 449, 727, 51, 119, 2527, 1708, 51, 126, 2527, 727, 51, 120, 2207, 1732, 494, 727, 51, 119, 63, 343, 727, 51, 2832, 299, 332, 5142, 2207, 39, 499, 222, 610, 44623, 971, 12728, 45, 1585, 49, 727, 731, 303, 3119, 499, 222, 610, 44623, 4627, 6423, 75, 3929, 45, 624, 731, 303, 727, 51, 24864, 4627, 1061, 1475, 244, 54, 303, 434, 727, 51, 24864, 4627, 1061, 925, 244, 55, 630, 244, 54, 63, 310, 37192, 6260, 34844, 45, 624, 46, 303, 456, 6310, 347, 727, 51, 24864, 4627, 73, 33463, 63, 310, 6310, 51, 286, 6423, 75, 3929, 45, 624, 46, 499, 222, 610, 44623, 4627, 11557, 45, 8046, 49, 727, 731, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 24864, 1732, 94, 49, 727, 51, 117, 54, 1732, 93, 49, 1802, 66, 624, 51, 2832, 54, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 24864, 1732, 94, 49, 727, 51, 117, 55, 1732, 93, 49, 1802, 66, 624, 51, 2832, 55, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 24864, 1732, 94, 49, 727, 51, 337, 1732, 49, 1802, 66, 624, 51, 2832, 56, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 24864, 1732, 94, 49, 727, 51, 4927, 1732, 49, 1802, 66, 624, 51, 2832, 57, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 24864, 1732, 94, 49, 727, 51, 4771, 1732, 49, 1802, 66, 624, 51, 2832, 58, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 24864, 1732, 94, 49, 727, 51, 120, 2207, 1732, 49, 1802, 66, 624, 51, 2832, 59, 46, 499, 222, 610, 37192, 6260, 34844, 45, 624, 731, 303, 837, 2746, 299, 4051, 51, 21732, 45, 53, 49, 244, 61, 53, 53, 46, 303, 727, 51, 24864, 4627, 73, 33463, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 49, 244, 53, 509, 499, 222, 610, 44623, 4627, 4038, 1312, 1947, 45, 8046, 49, 727, 731, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 24864, 1049, 449, 244, 54, 53, 49, 1802, 66, 624, 51, 1333, 46, 303, 456, 6310, 347, 727, 51, 24864, 4627, 73, 33463, 63, 310, 6310, 51, 3903, 45, 8046, 46, 303, 9098, 51, 1315, 100, 897, 45, 310, 727, 51, 1660, 536, 244, 55, 49, 310, 727, 51, 24864, 1049, 49, 310, 1367, 366, 1033, 310, 54, 7475, 12392, 9306, 11587, 10750, 6934, 55, 7475, 16529, 50, 3516, 10750, 603, 310, 56, 7475, 11587, 42576, 35263, 584, 10750, 603, 310, 57, 7475, 11763, 36428, 289, 341, 17855, 603, 310, 58, 7475, 16899, 480, 34724, 603, 310, 59, 7475, 23148, 2207, 603, 1586, 3347, 411, 310, 2377, 366, 20399, 244, 54, 57, 13769, 411, 310, 5342, 366, 14982, 411, 303, 848, 303, 44623, 4627, 11557, 45, 8046, 49, 727, 46, 499, 222, 4427, 784, 222, 40, 11560, 664, 462, 10178, 222, 4427, 784, 499, 222, 610, 2886, 991, 45, 1005, 49, 7321, 731, 303, 642, 2177, 45, 1005, 49, 332, 6009, 678, 641, 315, 63, 310, 315, 51, 1838, 45, 8089, 46, 499, 222, 610, 43003, 45, 1005, 731, 303, 642, 2177, 45, 1005, 49, 332, 2069, 678, 641, 315, 63, 310, 461, 315, 51, 870, 365, 499, 222, 4427, 784, 222, 40, 244, 54, 3516, 2945, 222, 4427, 784, 499, 222, 40, 5633, 487, 16566, 327, 1097, 507, 3454, 4204, 46, 4073, 341, 13461, 43746, 222, 842, 5633, 487, 16566, 45, 1491, 731, 303, 684, 1176, 1683, 3232, 803, 49, 837, 49, 553, 731, 310, 649, 51, 125, 299, 837, 310, 649, 51, 126, 299, 553, 310, 649, 51, 119, 299, 244, 62, 310, 649, 51, 4182, 299, 332, 8355, 26790, 10097, 39, 310, 649, 51, 7682, 299, 244, 56, 53, 310, 649, 51, 11944, 299, 332, 5494, 39, 465, 684, 5194, 45, 803, 49, 9098, 731, 310, 9098, 51, 1315, 100, 19975, 45, 343, 649, 51, 125, 49, 343, 649, 51, 126, 449, 244, 55, 338, 649, 51, 119, 49, 343, 649, 51, 125, 449, 649, 51, 119, 49, 343, 649, 51, 126, 49, 343, 649, 51, 125, 49, 343, 649, 51, 126, 494, 649, 51, 119, 49, 343, 649, 51, 125, 494, 649, 51, 119, 49, 343, 649, 51, 126, 49, 343, 5342, 66, 803, 51, 4182, 49, 343, 18643, 66, 803, 51, 11944, 49, 343, 1882, 66, 56, 49, 310, 848, 465, 684, 563, 6423, 75, 3929, 45, 803, 49, 727, 731, 310, 607, 2850, 2515, 44209, 21150, 310, 649, 51, 126, 1475, 649, 51, 7682, 499, 222, 610, 8990, 45, 624, 731, 303, 607, 9378, 456, 45367, 37192, 303, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 63, 310, 434, 727, 51, 2832, 630, 332, 54, 3516, 39, 575, 727, 51, 2832, 630, 332, 2675, 6880, 582, 343, 434, 2118, 487, 322, 51, 126, 2394, 727, 51, 2499, 449, 727, 51, 119, 480, 2118, 487, 322, 51, 126, 2527, 727, 51, 2499, 494, 727, 51, 119, 63, 419, 434, 2118, 487, 322, 51, 125, 2394, 727, 51, 10009, 449, 727, 51, 119, 480, 2118, 487, 322, 51, 125, 2527, 727, 51, 10009, 494, 727, 51, 119, 63, 547, 727, 51, 2499, 1475, 727, 51, 11369, 16305, 16617, 547, 434, 727, 51, 2832, 630, 332, 2675, 6880, 582, 733, 727, 51, 393, 4973, 5928, 244, 54, 547, 4378, 727, 51, 11369, 630, 3208, 480, 727, 51, 2675, 350, 727, 51, 2675, 2725, 63, 733, 727, 51, 5142, 5928, 727, 51, 2675, 547, 727, 51, 352, 487, 16566, 51, 2564, 45, 352, 487, 322, 46, 547, 434, 727, 51, 2832, 630, 332, 2675, 6880, 582, 733, 727, 51, 2675, 4836, 81, 4145, 5928, 244, 54, 499, 222, 610, 8990, 55, 3516, 45, 624, 731, 303, 434, 727, 51, 2832, 630, 332, 55, 3516, 582, 310, 434, 727, 51, 6358, 3582, 1497, 54, 630, 3208, 63, 343, 607, 1773, 1429, 7183, 436, 7751, 1348, 4537, 343, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 54, 63, 419, 434, 2118, 487, 322, 51, 126, 2394, 727, 51, 3857, 54, 94, 449, 727, 51, 119, 480, 2118, 487, 322, 51, 126, 2527, 727, 51, 3857, 54, 94, 494, 727, 51, 119, 63, 547, 434, 2118, 487, 322, 51, 125, 2394, 727, 51, 3857, 54, 93, 449, 727, 51, 119, 480, 2118, 487, 322, 51, 125, 2527, 727, 51, 3857, 54, 93, 494, 727, 51, 119, 63, 733, 727, 51, 3857, 54, 94, 1475, 727, 51, 11369, 16305, 16617, 733, 727, 51, 352, 487, 16566, 54, 51, 2564, 45, 352, 487, 322, 46, 310, 434, 727, 51, 6358, 3582, 1497, 55, 630, 3208, 63, 343, 607, 1773, 1429, 7183, 436, 7751, 1348, 4537, 343, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 55, 63, 419, 434, 2118, 487, 322, 51, 126, 2394, 727, 51, 3857, 55, 94, 449, 727, 51, 119, 480, 2118, 487, 322, 51, 126, 2527, 727, 51, 3857, 55, 94, 494, 727, 51, 119, 63, 547, 434, 2118, 487, 322, 51, 125, 2394, 727, 51, 3857, 55, 93, 449, 727, 51, 119, 480, 2118, 487, 322, 51, 125, 2527, 727, 51, 3857, 55, 93, 494, 727, 51, 119, 63, 733, 727, 51, 3857, 55, 94, 1475, 727, 51, 11369, 16305, 16617, 733, 727, 51, 352, 487, 16566, 55, 51, 2564, 45, 352, 487, 322, 46, 499, 222, 842, 8566, 90, 1088, 45, 2253, 487, 16566, 731, 303, 684, 1176, 1683, 3232, 803, 49, 837, 49, 553, 731, 310, 2615, 17124, 1683, 3232, 125, 49, 553, 46, 465, 684, 5194, 45, 803, 49, 9098, 49, 727, 731, 310, 9098, 51, 1315, 100, 915, 45, 803, 51, 125, 49, 649, 51, 126, 49, 1802, 66, 624, 51, 11343, 76, 405, 46, 499, 222, 610, 8990, 13456, 45, 624, 731, 303, 607, 9378, 434, 24173, 12039, 50, 26604, 568, 15248, 120, 642, 4666, 303, 456, 7183, 1405, 347, 727, 51, 7404, 90, 1088, 63, 310, 434, 727, 51, 2832, 630, 332, 54, 3516, 39, 575, 727, 51, 2832, 630, 332, 2675, 6880, 582, 343, 434, 7183, 1405, 51, 126, 2394, 727, 51, 2499, 449, 727, 51, 119, 480, 7183, 1405, 51, 126, 2527, 727, 51, 2499, 494, 727, 51, 119, 63, 419, 434, 7183, 1405, 51, 125, 2394, 727, 51, 10009, 449, 727, 51, 119, 480, 7183, 1405, 51, 125, 2527, 727, 51, 10009, 494, 727, 51, 119, 63, 547, 727, 51, 12091, 73, 33463, 299, 2969, 547, 727, 51, 1384, 299, 727, 51, 2499, 547, 727, 51, 7404, 90, 1088, 51, 2564, 45, 7404, 1405, 46, 310, 4378, 727, 51, 2832, 630, 332, 55, 3516, 39, 575, 727, 51, 2832, 630, 332, 6231, 582, 343, 434, 7183, 1405, 51, 126, 2394, 727, 51, 3857, 54, 94, 449, 727, 51, 119, 480, 7183, 1405, 51, 126, 2527, 727, 51, 3857, 54, 94, 494, 727, 51, 119, 63, 419, 434, 7183, 1405, 51, 125, 2394, 727, 51, 3857, 54, 93, 449, 727, 51, 119, 480, 7183, 1405, 51, 125, 2527, 727, 51, 3857, 54, 93, 494, 727, 51, 119, 63, 547, 727, 51, 12091, 54, 6260, 299, 2969, 547, 727, 51, 1384, 54, 299, 727, 51, 3857, 54, 94, 547, 727, 51, 7404, 90, 1088, 51, 2564, 45, 7404, 1405, 46, 343, 434, 7183, 1405, 51, 126, 2394, 727, 51, 3857, 55, 94, 449, 727, 51, 119, 480, 7183, 1405, 51, 126, 2527, 727, 51, 3857, 55, 94, 494, 727, 51, 119, 63, 419, 434, 7183, 1405, 51, 125, 2394, 727, 51, 3857, 55, 93, 449, 727, 51, 119, 480, 7183, 1405, 51, 125, 2527, 727, 51, 3857, 55, 93, 494, 727, 51, 119, 63, 547, 727, 51, 12091, 55, 6260, 299, 2969, 547, 727, 51, 1384, 55, 299, 727, 51, 3857, 55, 94, 547, 727, 51, 7404, 90, 1088, 51, 2564, 45, 7404, 1405, 46, 499, 222, 842, 14744, 3582, 1497, 45, 6790, 90, 1088, 731, 303, 684, 1176, 1683, 3232, 803, 49, 837, 49, 553, 731, 310, 2615, 17124, 1683, 3232, 125, 49, 553, 46, 465, 684, 5194, 45, 803, 49, 9098, 49, 727, 731, 310, 9098, 51, 1315, 100, 915, 45, 803, 51, 125, 49, 649, 51, 126, 49, 1802, 66, 624, 51, 3345, 45405, 46, 499, 222, 610, 8990, 6358, 3582, 1497, 45, 624, 731, 303, 607, 9378, 434, 24173, 244, 3345, 45405, 7183, 436, 303, 456, 7183, 1405, 347, 727, 51, 5834, 3582, 1497, 63, 310, 434, 727, 51, 2832, 630, 332, 54, 3516, 39, 575, 727, 51, 2832, 630, 332, 2675, 6880, 582, 343, 434, 7183, 1405, 51, 126, 2394, 727, 51, 2499, 449, 727, 51, 119, 480, 7183, 1405, 51, 126, 2527, 727, 51, 2499, 494, 727, 51, 119, 63, 419, 434, 7183, 1405, 51, 125, 2394, 727, 51, 10009, 449, 727, 51, 119, 480, 7183, 1405, 51, 125, 2527, 727, 51, 10009, 494, 727, 51, 119, 63, 547, 727, 51, 883, 6358, 3582, 1497, 299, 2969, 547, 727, 51, 1384, 299, 727, 51, 2499, 547, 727, 51, 5834, 3582, 1497, 51, 2564, 45, 7404, 1405, 46, 310, 434, 727, 51, 2832, 630, 332, 55, 3516, 39, 575, 727, 51, 2832, 630, 332, 6231, 582, 343, 607, 456, 4376, 54, 343, 434, 7183, 1405, 51, 126, 2394, 727, 51, 3857, 54, 94, 449, 727, 51, 119, 480, 7183, 1405, 51, 126, 2527, 727, 51, 3857, 54, 94, 494, 727, 51, 119, 63, 419, 434, 7183, 1405, 51, 125, 2394, 727, 51, 3857, 54, 93, 449, 727, 51, 119, 480, 7183, 1405, 51, 125, 2527, 727, 51, 3857, 54, 93, 494, 727, 51, 119, 63, 547, 727, 51, 6358, 3582, 1497, 54, 299, 2969, 547, 727, 51, 1384, 54, 299, 727, 51, 3857, 54, 94, 547, 727, 51, 5834, 3582, 1497, 51, 2564, 45, 7404, 1405, 46, 343, 607, 456, 4376, 244, 55, 343, 434, 7183, 1405, 51, 126, 2394, 727, 51, 3857, 55, 94, 449, 727, 51, 119, 480, 7183, 1405, 51, 126, 2527, 727, 51, 3857, 55, 94, 494, 727, 51, 119, 63, 419, 434, 7183, 1405, 51, 125, 2394, 727, 51, 3857, 55, 93, 449, 727, 51, 119, 480, 7183, 1405, 51, 125, 2527, 727, 51, 3857, 55, 93, 494, 727, 51, 119, 63, 547, 727, 51, 6358, 3582, 1497, 55, 299, 2969, 547, 727, 51, 1384, 55, 299, 727, 51, 3857, 55, 94, 547, 727, 51, 5834, 3582, 1497, 51, 2564, 45, 7404, 1405, 46, 499, 222, 842, 6918, 692, 15822, 45, 1491, 731, 303, 684, 1176, 1683, 3232, 803, 49, 837, 49, 553, 731, 310, 649, 51, 125, 299, 837, 310, 649, 51, 126, 299, 553, 310, 649, 51, 7682, 299, 244, 55, 58, 465, 684, 5194, 45, 803, 49, 9098, 49, 727, 731, 310, 9098, 51, 1315, 100, 915, 45, 803, 51, 125, 49, 649, 51, 126, 49, 1802, 66, 624, 51, 35575, 46, 465, 684, 563, 6423, 75, 3929, 45, 803, 49, 727, 731, 310, 434, 727, 51, 2832, 630, 332, 55, 3516, 39, 575, 727, 51, 2832, 630, 332, 6231, 582, 343, 649, 51, 7682, 299, 244, 56, 58, 310, 649, 51, 126, 5928, 649, 51, 7682, 310, 434, 727, 51, 2832, 630, 332, 54, 3516, 39, 575, 727, 51, 2832, 630, 332, 2675, 6880, 39, 480, 727, 51, 1021, 925, 244, 61, 630, 244, 53, 63, 343, 607, 7437, 1887, 1411, 22530, 5187, 343, 5226, 299, 4051, 51, 11512, 45, 624, 51, 38200, 46, 343, 434, 5226, 630, 332, 113, 582, 419, 434, 649, 51, 125, 449, 727, 51, 16869, 2394, 727, 51, 3516, 54, 2944, 63, 547, 649, 51, 125, 5928, 727, 51, 16869, 419, 832, 63, 547, 649, 51, 125, 1475, 727, 51, 16869, 343, 4378, 5226, 630, 332, 119, 582, 419, 434, 649, 51, 125, 494, 727, 51, 16869, 2527, 727, 51, 3516, 54, 2725, 63, 547, 649, 51, 125, 1475, 727, 51, 16869, 419, 832, 63, 547, 649, 51, 125, 5928, 727, 51, 16869, 499, 222, 610, 8990, 2391, 692, 15822, 45, 624, 731, 303, 607, 9378, 456, 5814, 24485, 829, 1887, 1411, 303, 456, 4845, 347, 727, 51, 564, 692, 15822, 63, 310, 434, 727, 51, 2832, 630, 332, 54, 3516, 39, 575, 727, 51, 2832, 630, 332, 2675, 6880, 582, 343, 434, 4845, 51, 126, 2394, 727, 51, 2499, 449, 244, 54, 51, 58, 338, 727, 51, 119, 480, 4845, 51, 126, 2527, 727, 51, 2499, 494, 244, 54, 51, 58, 338, 727, 51, 119, 63, 419, 434, 4845, 51, 125, 2394, 727, 51, 10009, 449, 244, 54, 51, 58, 338, 727, 51, 119, 480, 4845, 51, 125, 2527, 727, 51, 10009, 494, 244, 54, 51, 58, 338, 727, 51, 119, 63, 547, 727, 51, 11369, 299, 2969, 547, 727, 51, 393, 4973, 299, 244, 53, 547, 727, 51, 2675, 4836, 81, 4145, 299, 244, 53, 310, 434, 727, 51, 2832, 630, 332, 55, 3516, 39, 575, 727, 51, 2832, 630, 332, 6231, 582, 343, 434, 4845, 51, 126, 2394, 727, 51, 3857, 54, 94, 449, 727, 51, 119, 480, 4845, 51, 126, 2527, 727, 51, 3857, 54, 94, 494, 727, 51, 119, 63, 419, 434, 4845, 51, 125, 2394, 727, 51, 3857, 54, 93, 449, 727, 51, 119, 480, 4845, 51, 125, 2527, 727, 51, 3857, 54, 93, 494, 727, 51, 119, 63, 547, 727, 51, 33655, 299, 332, 3857, 55, 39, 343, 434, 4845, 51, 126, 2394, 727, 51, 3857, 55, 94, 449, 727, 51, 119, 480, 4845, 51, 126, 2527, 727, 51, 3857, 55, 94, 494, 727, 51, 119, 63, 419, 434, 4845, 51, 125, 2394, 727, 51, 3857, 55, 93, 449, 727, 51, 119, 480, 4845, 51, 125, 2527, 727, 51, 3857, 55, 93, 494, 727, 51, 119, 63, 547, 727, 51, 33655, 299, 332, 3857, 54, 39, 499, 222, 610, 5194, 6790, 9026, 45, 8046, 49, 727, 731, 303, 456, 4845, 347, 727, 51, 564, 692, 15822, 63, 310, 4845, 51, 3903, 45, 8046, 49, 727, 46, 303, 456, 7183, 1405, 347, 727, 51, 7404, 90, 1088, 63, 310, 7183, 1405, 51, 3903, 45, 8046, 49, 727, 46, 303, 456, 7183, 1405, 347, 727, 51, 5834, 3582, 1497, 63, 310, 7183, 1405, 51, 3903, 45, 8046, 49, 727, 46, 499, 222, 610, 5194, 4637, 45, 8046, 49, 727, 731, 303, 607, 6780, 3467, 347, 3659, 4820, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 2849, 93, 49, 727, 51, 2849, 94, 49, 1802, 66, 624, 51, 2849, 46, 499, 222, 610, 1524, 4637, 45, 1585, 49, 727, 731, 303, 434, 727, 51, 2849, 94, 449, 727, 51, 119, 2527, 1708, 51, 126, 2527, 727, 51, 2849, 94, 494, 727, 51, 119, 63, 310, 434, 727, 51, 2849, 93, 449, 727, 51, 119, 2527, 1708, 51, 125, 2527, 727, 51, 2849, 93, 494, 727, 51, 119, 63, 343, 3238, 45, 624, 46, 499, 222, 610, 2118, 487, 322, 24672, 45, 624, 731, 303, 434, 727, 51, 2675, 868, 244, 53, 480, 727, 51, 12091, 73, 33463, 630, 3208, 63, 310, 434, 727, 51, 1021, 925, 648, 45, 624, 51, 2675, 2725, 536, 727, 51, 2675, 46, 630, 244, 53, 575, 727, 51, 1021, 925, 244, 59, 630, 244, 53, 63, 343, 607, 30281, 43746, 641, 3215, 30281, 343, 837, 2746, 54, 299, 4051, 51, 21732, 45, 53, 49, 727, 51, 3516, 54, 2944, 449, 727, 51, 2683, 46, 343, 837, 2746, 55, 299, 4051, 51, 21732, 45, 624, 51, 3516, 54, 2725, 494, 727, 51, 2683, 49, 727, 51, 1660, 494, 727, 51, 2683, 46, 343, 727, 51, 352, 487, 16566, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 54, 49, 244, 53, 509, 343, 727, 51, 352, 487, 16566, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 55, 49, 244, 53, 509, 343, 837, 2746, 57, 299, 4051, 51, 21732, 45, 624, 51, 3516, 54, 2944, 449, 727, 51, 2683, 49, 727, 51, 3516, 54, 2725, 494, 727, 51, 2683, 46, 343, 727, 51, 352, 487, 16566, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 57, 49, 244, 53, 509, 310, 434, 727, 51, 1021, 925, 244, 58, 630, 244, 53, 63, 343, 837, 2746, 56, 299, 4051, 51, 21732, 45, 53, 49, 727, 51, 3516, 54, 2944, 449, 727, 51, 2683, 46, 343, 727, 51, 352, 487, 16566, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 56, 49, 244, 53, 509, 310, 434, 727, 51, 1021, 925, 648, 45, 55, 57, 536, 727, 51, 2675, 46, 630, 244, 53, 63, 343, 5226, 299, 4051, 51, 11512, 45, 624, 51, 38200, 46, 343, 434, 5226, 630, 332, 113, 582, 419, 727, 51, 352, 487, 16566, 51, 1713, 45, 2253, 487, 16566, 45, 624, 51, 3516, 54, 2944, 49, 244, 53, 509, 343, 4378, 5226, 630, 332, 119, 582, 419, 727, 51, 352, 487, 16566, 51, 1713, 45, 2253, 487, 16566, 45, 624, 51, 3516, 54, 2725, 49, 244, 53, 509, 310, 7183, 1405, 2253, 487, 322, 24672, 45, 624, 46, 499, 222, 610, 7183, 1405, 2253, 487, 322, 24672, 45, 624, 731, 303, 607, 10487, 7183, 90, 1088, 303, 607, 17305, 607, 120, 391, 4582, 456, 7183, 9026, 391, 545, 3654, 840, 3473, 6524, 303, 434, 727, 51, 1021, 925, 244, 59, 53, 630, 244, 53, 480, 727, 51, 1021, 925, 244, 54, 55, 53, 882, 244, 53, 63, 310, 11943, 299, 4051, 51, 11512, 45, 624, 51, 7529, 739, 46, 310, 727, 51, 7404, 90, 1088, 51, 1713, 45, 6790, 90, 1088, 45, 2746, 49, 244, 53, 509, 303, 434, 727, 51, 1021, 925, 244, 58, 53, 630, 244, 53, 63, 310, 11943, 299, 4051, 51, 11512, 45, 624, 51, 7529, 739, 46, 310, 727, 51, 5834, 3582, 1497, 51, 1713, 45, 6358, 3582, 1497, 45, 2746, 49, 244, 53, 509, 303, 434, 727, 51, 1021, 925, 244, 54, 53, 53, 630, 244, 53, 63, 310, 11943, 299, 4051, 51, 11512, 45, 624, 51, 7529, 739, 46, 310, 727, 51, 564, 692, 15822, 51, 1713, 45, 2391, 692, 15822, 45, 2746, 49, 244, 60, 58, 53, 509, 499, 222, 610, 4376, 971, 12728, 45, 1585, 49, 727, 731, 303, 434, 727, 51, 2675, 350, 727, 51, 2675, 2725, 480, 1708, 51, 3519, 2225, 630, 332, 119, 582, 310, 3238, 45, 624, 46, 303, 434, 327, 1585, 51, 3519, 2225, 630, 332, 3695, 678, 480, 727, 51, 10009, 2394, 727, 51, 3516, 54, 2944, 494, 327, 624, 51, 16869, 536, 244, 55, 731, 310, 727, 51, 10009, 5928, 327, 624, 51, 16869, 46, 536, 244, 55, 303, 4378, 327, 1585, 51, 3519, 2225, 630, 332, 4058, 678, 480, 727, 51, 10009, 2527, 727, 51, 3516, 54, 2725, 63, 310, 727, 51, 10009, 1475, 327, 624, 51, 16869, 46, 536, 244, 55, 303, 434, 727, 51, 2675, 2394, 727, 51, 2675, 2725, 63, 310, 607, 6621, 655, 456, 6842, 2207, 310, 434, 2095, 45, 1585, 51, 3519, 2225, 46, 630, 244, 54, 63, 343, 434, 2095, 45, 624, 51, 444, 46, 350, 244, 54, 58, 63, 419, 727, 51, 444, 1475, 1708, 51, 3519, 2225, 310, 434, 1708, 51, 3519, 2225, 630, 332, 2509, 5144, 582, 343, 727, 51, 444, 299, 727, 51, 444, 96, 53, 6012, 54, 98, 310, 434, 1708, 51, 3519, 2225, 630, 332, 2907, 582, 343, 727, 51, 5142, 739, 1475, 327, 624, 51, 5142, 49, 727, 51, 444, 46, 343, 607, 30030, 822, 343, 2886, 991, 459, 5142, 51, 2787, 411, 727, 51, 9047, 28716, 494, 615, 45, 624, 51, 5142, 46, 494, 17708, 494, 727, 51, 444, 494, 2724, 115, 678, 343, 727, 51, 2832, 299, 332, 5142, 2207, 39, 499, 222, 610, 4376, 6042, 12728, 45, 1585, 49, 727, 731, 303, 1524, 4637, 45, 1585, 49, 727, 46, 499, 222, 610, 4376, 6423, 75, 3929, 45, 624, 731, 303, 607, 6750, 15248, 120, 49, 480, 18078, 43746, 52, 3857, 303, 434, 727, 51, 11369, 630, 3208, 480, 727, 51, 2675, 350, 727, 51, 2675, 2725, 63, 310, 727, 51, 2499, 5928, 727, 51, 7682, 310, 434, 727, 51, 1021, 925, 244, 58, 630, 244, 53, 63, 343, 727, 51, 5142, 1475, 727, 51, 2675, 310, 434, 727, 51, 2499, 350, 244, 54, 58, 63, 244, 607, 22007, 5610, 580, 391, 341, 2687, 343, 727, 51, 2675, 1475, 244, 54, 343, 727, 51, 2499, 299, 727, 51, 3516, 54, 2725, 494, 244, 54, 53, 343, 727, 51, 7682, 1475, 244, 55, 310, 434, 727, 51, 2499, 868, 244, 57, 53, 63, 244, 607, 1278, 43746, 863, 902, 1348, 2337, 2818, 1348, 8990, 863, 343, 727, 51, 1021, 1475, 244, 54, 343, 434, 727, 51, 12091, 73, 33463, 882, 2969, 63, 419, 2118, 487, 322, 24672, 45, 624, 46, 310, 456, 7183, 1405, 347, 727, 51, 7404, 90, 1088, 63, 343, 7183, 1405, 51, 286, 6423, 75, 3929, 45, 624, 46, 310, 8990, 13456, 45, 624, 46, 310, 456, 7183, 1405, 347, 727, 51, 5834, 3582, 1497, 63, 343, 7183, 1405, 51, 286, 6423, 75, 3929, 45, 624, 46, 310, 8990, 6358, 3582, 1497, 45, 624, 46, 310, 456, 4845, 347, 727, 51, 564, 692, 15822, 63, 343, 4845, 51, 286, 6423, 75, 3929, 45, 624, 46, 310, 8990, 2391, 692, 15822, 45, 624, 46, 310, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 63, 343, 607, 1773, 2660, 43746, 391, 5187, 434, 666, 33611, 343, 434, 727, 51, 12091, 73, 33463, 630, 3208, 63, 419, 2118, 487, 322, 51, 286, 6423, 75, 3929, 45, 624, 46, 310, 434, 727, 51, 883, 6358, 3582, 1497, 630, 3208, 63, 343, 8990, 45, 624, 46, 310, 434, 727, 51, 1384, 882, 1686, 63, 343, 434, 11397, 45, 624, 51, 1384, 449, 727, 51, 2499, 46, 2394, 244, 54, 55, 53, 63, 419, 607, 391, 2741, 1153, 456, 7183, 9026, 391, 545, 4537, 419, 727, 51, 12091, 73, 33463, 49, 727, 51, 883, 6358, 3582, 1497, 299, 3208, 49, 3208, 499, 222, 610, 4376, 4038, 1312, 1947, 45, 8046, 49, 727, 731, 303, 607, 17305, 607, 120, 31574, 456, 4820, 23943, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 4175, 46, 303, 9098, 51, 1315, 100, 948, 45, 53, 49, 244, 55, 53, 49, 727, 51, 1660, 49, 244, 55, 53, 46, 303, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 63, 310, 2118, 487, 322, 51, 3903, 45, 8046, 46, 303, 5194, 6790, 9026, 45, 8046, 49, 727, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 10009, 49, 727, 51, 2499, 49, 1802, 66, 624, 51, 20233, 126, 15822, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 59, 49, 244, 58, 53, 49, 1367, 366, 2671, 63, 925, 105, 39, 925, 727, 51, 2675, 49, 2377, 366, 20399, 244, 54, 61, 13769, 411, 5342, 366, 14982, 678, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 59, 49, 244, 61, 53, 49, 1367, 366, 7066, 63, 925, 105, 39, 925, 727, 51, 5142, 49, 2377, 366, 20399, 244, 54, 61, 13769, 411, 5342, 366, 14982, 678, 303, 9098, 51, 1315, 100, 897, 45, 295, 55, 338, 727, 51, 1660, 536, 244, 56, 49, 295, 59, 59, 53, 49, 310, 1367, 366, 1033, 1338, 10783, 341, 3215, 49, 341, 1851, 5018, 640, 547, 3654, 391, 1390, 6842, 38, 37611, 310, 2377, 366, 20399, 244, 54, 58, 13769, 411, 310, 5342, 366, 14982, 411, 303, 848, 303, 434, 727, 51, 11369, 630, 2969, 63, 310, 9098, 51, 1315, 100, 23884, 45, 53, 49, 244, 53, 49, 727, 51, 1660, 49, 727, 51, 2296, 49, 5342, 366, 7061, 678, 310, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 14459, 4627, 46, 310, 9098, 51, 1315, 100, 897, 45, 343, 727, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 57, 49, 1367, 366, 4296, 517, 2500, 38, 34962, 517, 7206, 11006, 3734, 13700, 2377, 366, 31199, 244, 55, 56, 13769, 411, 5342, 366, 14982, 39, 310, 848, 310, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 55, 49, 244, 55, 61, 53, 49, 1367, 366, 7066, 63, 925, 105, 39, 925, 727, 51, 5142, 49, 2377, 366, 20399, 244, 54, 56, 13769, 411, 5342, 366, 14982, 678, 303, 434, 727, 51, 2675, 2394, 244, 61, 63, 310, 5610, 1029, 45, 8046, 49, 727, 46, 303, 5194, 4637, 45, 8046, 49, 727, 46, 499, 222, 610, 5610, 1029, 45, 8046, 49, 727, 731, 244, 607, 17305, 607, 120, 31574, 456, 4820, 23943, 303, 9098, 51, 1315, 100, 23884, 45, 53, 49, 244, 53, 49, 727, 51, 1660, 49, 727, 51, 2296, 49, 5342, 366, 7061, 678, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 4481, 4627, 46, 303, 9098, 51, 1315, 100, 915, 45, 56, 53, 53, 49, 244, 56, 55, 53, 49, 1802, 66, 624, 51, 4481, 15822, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 55, 49, 244, 60, 53, 49, 1367, 366, 4296, 42081, 580, 13700, 2377, 366, 20399, 244, 55, 56, 13769, 411, 5342, 366, 14982, 678, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 55, 49, 244, 54, 53, 53, 49, 1367, 366, 7066, 63, 925, 105, 39, 925, 727, 51, 5142, 49, 2377, 366, 20399, 244, 54, 58, 13769, 411, 5342, 366, 14982, 678, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 55, 49, 244, 56, 60, 58, 49, 1367, 366, 628, 791, 1990, 38, 11426, 1390, 3286, 13700, 2377, 366, 20399, 244, 54, 58, 13769, 411, 5342, 366, 14982, 678, 303, 9098, 51, 1315, 100, 23884, 45, 624, 51, 1660, 536, 244, 55, 449, 244, 58, 53, 49, 244, 57, 53, 53, 49, 727, 51, 1660, 536, 244, 55, 494, 244, 58, 53, 49, 244, 57, 58, 53, 49, 5342, 366, 4911, 678, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 55, 49, 244, 57, 55, 58, 49, 1367, 66, 624, 51, 444, 46, 499, 222, 4427, 784, 222, 40, 244, 55, 3516, 2945, 222, 4427, 784, 222, 610, 6310, 55, 3516, 45, 624, 731, 303, 607, 10487, 43746, 1429, 666, 33611, 303, 607, 17305, 607, 120, 904, 2764, 451, 2174, 43746, 904, 8074, 303, 434, 727, 51, 33655, 630, 1686, 480, 727, 51, 12091, 73, 33463, 630, 3208, 63, 310, 434, 727, 51, 1021, 925, 244, 54, 58, 630, 244, 53, 63, 343, 837, 2746, 54, 299, 4051, 51, 21732, 45, 53, 49, 244, 56, 61, 58, 46, 343, 434, 11397, 45, 125, 2746, 54, 449, 244, 54, 53, 53, 46, 868, 244, 55, 58, 480, 11397, 45, 125, 2746, 54, 449, 244, 56, 59, 53, 46, 868, 244, 55, 58, 63, 419, 607, 1278, 4051, 43746, 2818, 1348, 41903, 767, 642, 341, 30736, 11703, 419, 434, 727, 51, 12091, 54, 6260, 882, 2969, 63, 547, 727, 51, 352, 487, 16566, 54, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 54, 49, 244, 53, 509, 419, 434, 727, 51, 12091, 55, 6260, 882, 2969, 63, 547, 727, 51, 352, 487, 16566, 55, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 54, 494, 244, 57, 54, 53, 49, 244, 53, 509, 310, 434, 727, 51, 1021, 925, 244, 54, 55, 630, 244, 53, 63, 343, 5226, 299, 4051, 51, 11512, 45, 624, 51, 38200, 46, 343, 434, 5226, 630, 332, 113, 582, 419, 434, 727, 51, 12091, 54, 6260, 882, 2969, 63, 547, 727, 51, 352, 487, 16566, 54, 51, 1713, 45, 2253, 487, 16566, 45, 54, 57, 53, 49, 244, 53, 509, 419, 434, 727, 51, 12091, 55, 6260, 882, 2969, 63, 547, 727, 51, 352, 487, 16566, 55, 51, 1713, 45, 2253, 487, 16566, 45, 58, 57, 53, 49, 244, 53, 509, 343, 4378, 5226, 630, 332, 119, 582, 419, 434, 727, 51, 12091, 54, 6260, 882, 2969, 63, 547, 727, 51, 352, 487, 16566, 54, 51, 1713, 45, 2253, 487, 16566, 45, 56, 57, 57, 49, 244, 53, 509, 419, 434, 727, 51, 12091, 55, 6260, 882, 2969, 63, 547, 727, 51, 352, 487, 16566, 55, 51, 1713, 45, 2253, 487, 16566, 45, 60, 58, 58, 49, 244, 53, 509, 310, 7183, 436, 6260, 55, 3516, 45, 624, 46, 499, 222, 610, 7183, 436, 6260, 55, 3516, 45, 624, 731, 303, 607, 10487, 7183, 9026, 563, 4354, 37709, 327, 285, 341, 2454, 2764, 46, 303, 434, 727, 51, 1021, 925, 244, 57, 58, 630, 244, 53, 480, 727, 51, 1021, 925, 244, 62, 53, 882, 244, 53, 63, 310, 607, 46278, 23943, 310, 5226, 299, 4051, 51, 11512, 45, 624, 51, 38200, 46, 310, 434, 5226, 630, 332, 113, 582, 343, 434, 727, 51, 12091, 54, 6260, 882, 2969, 63, 419, 727, 51, 7404, 90, 1088, 51, 1713, 45, 6790, 90, 1088, 45, 54, 57, 53, 49, 244, 53, 509, 343, 434, 727, 51, 12091, 55, 6260, 882, 2969, 63, 419, 727, 51, 7404, 90, 1088, 51, 1713, 45, 6790, 90, 1088, 45, 58, 57, 53, 49, 244, 53, 509, 310, 4378, 5226, 630, 332, 119, 582, 343, 434, 727, 51, 12091, 54, 6260, 882, 2969, 63, 419, 727, 51, 7404, 90, 1088, 51, 1713, 45, 6790, 90, 1088, 45, 56, 57, 57, 49, 244, 53, 509, 343, 434, 727, 51, 12091, 55, 6260, 882, 2969, 63, 419, 727, 51, 7404, 90, 1088, 51, 1713, 45, 6790, 90, 1088, 45, 60, 58, 58, 49, 244, 53, 509, 303, 434, 727, 51, 1021, 925, 244, 59, 53, 630, 244, 53, 63, 310, 5226, 299, 4051, 51, 11512, 45, 624, 51, 38200, 46, 310, 434, 5226, 630, 332, 113, 582, 343, 434, 727, 51, 12091, 54, 6260, 882, 2969, 63, 419, 727, 51, 5834, 3582, 1497, 51, 1713, 45, 6358, 3582, 1497, 45, 54, 57, 53, 49, 244, 53, 509, 343, 434, 727, 51, 12091, 55, 6260, 882, 2969, 63, 419, 727, 51, 5834, 3582, 1497, 51, 1713, 45, 6358, 3582, 1497, 45, 58, 57, 53, 49, 244, 53, 509, 310, 4378, 5226, 630, 332, 119, 582, 343, 434, 727, 51, 12091, 54, 6260, 882, 2969, 63, 419, 727, 51, 5834, 3582, 1497, 51, 1713, 45, 6358, 3582, 1497, 45, 56, 57, 57, 49, 244, 53, 509, 343, 434, 727, 51, 12091, 55, 6260, 882, 2969, 63, 419, 727, 51, 5834, 3582, 1497, 51, 1713, 45, 6358, 3582, 1497, 45, 60, 58, 58, 49, 244, 53, 509, 303, 434, 727, 51, 1021, 925, 244, 62, 53, 630, 244, 53, 63, 310, 5226, 299, 4051, 51, 11512, 45, 624, 51, 38200, 46, 310, 434, 5226, 630, 332, 113, 582, 343, 727, 51, 564, 692, 15822, 51, 1713, 45, 2391, 692, 15822, 45, 54, 57, 53, 49, 244, 60, 58, 53, 509, 343, 727, 51, 564, 692, 15822, 51, 1713, 45, 2391, 692, 15822, 45, 58, 57, 53, 49, 244, 60, 58, 53, 509, 310, 4378, 5226, 630, 332, 119, 582, 343, 727, 51, 564, 692, 15822, 51, 1713, 45, 2391, 692, 15822, 45, 56, 57, 57, 49, 244, 60, 58, 53, 509, 343, 727, 51, 564, 692, 15822, 51, 1713, 45, 2391, 692, 15822, 45, 60, 58, 58, 49, 244, 60, 58, 53, 509, 499, 222, 610, 3161, 3516, 971, 12728, 45, 1585, 49, 727, 731, 303, 607, 20132, 456, 4354, 16799, 303, 434, 1708, 51, 3519, 2225, 630, 332, 119, 582, 310, 3238, 45, 624, 46, 303, 434, 727, 51, 33655, 630, 1686, 63, 310, 434, 327, 1585, 51, 3519, 2225, 630, 332, 102, 678, 480, 727, 51, 286, 3695, 54, 630, 3208, 63, 343, 727, 51, 286, 3695, 54, 299, 2969, 343, 727, 51, 3857, 54, 93, 299, 244, 54, 58, 53, 310, 434, 327, 1585, 51, 3519, 2225, 630, 332, 105, 678, 480, 727, 51, 286, 3695, 54, 630, 2969, 63, 343, 727, 51, 286, 3695, 54, 299, 3208, 343, 727, 51, 3857, 54, 93, 299, 244, 56, 56, 53, 310, 434, 327, 1585, 51, 3519, 2225, 630, 332, 3695, 678, 480, 727, 51, 286, 3695, 55, 630, 3208, 63, 343, 727, 51, 286, 3695, 55, 299, 2969, 343, 727, 51, 3857, 55, 93, 299, 244, 58, 58, 53, 310, 434, 327, 1585, 51, 3519, 2225, 630, 332, 4058, 678, 480, 727, 51, 286, 3695, 55, 630, 2969, 63, 343, 727, 51, 286, 3695, 55, 299, 3208, 343, 727, 51, 3857, 55, 93, 299, 244, 60, 58, 53, 499, 222, 610, 3161, 3516, 6042, 12728, 45, 1585, 49, 727, 731, 303, 1524, 4637, 45, 1585, 49, 727, 46, 499, 222, 610, 3161, 3516, 6423, 75, 3929, 45, 624, 731, 303, 434, 727, 51, 33655, 630, 1686, 63, 310, 727, 51, 3857, 54, 94, 5928, 727, 51, 7682, 310, 607, 350, 54, 58, 2613, 6871, 708, 475, 24810, 4845, 16691, 341, 2687, 310, 434, 727, 51, 3857, 54, 94, 350, 244, 54, 58, 480, 727, 51, 3857, 55, 94, 868, 244, 54, 58, 63, 343, 727, 51, 33655, 299, 332, 3857, 54, 39, 310, 434, 727, 51, 3857, 54, 94, 868, 244, 57, 53, 63, 343, 727, 51, 1021, 1475, 244, 54, 343, 6310, 55, 3516, 45, 624, 46, 310, 727, 51, 3857, 55, 94, 5928, 727, 51, 7682, 310, 434, 727, 51, 3857, 55, 94, 350, 244, 54, 58, 480, 727, 51, 3857, 54, 94, 868, 244, 54, 58, 63, 343, 727, 51, 33655, 299, 332, 3857, 55, 39, 310, 434, 727, 51, 3857, 55, 94, 868, 244, 57, 53, 63, 343, 727, 51, 1021, 1475, 244, 54, 343, 6310, 55, 3516, 45, 624, 46, 310, 434, 727, 51, 3857, 54, 94, 350, 244, 54, 58, 480, 727, 51, 3857, 55, 94, 350, 244, 54, 58, 63, 343, 727, 51, 33655, 299, 332, 25932, 39, 310, 456, 7183, 1405, 347, 727, 51, 7404, 90, 1088, 63, 343, 7183, 1405, 51, 286, 6423, 75, 3929, 45, 624, 46, 310, 8990, 13456, 45, 624, 46, 310, 456, 7183, 1405, 347, 727, 51, 5834, 3582, 1497, 63, 343, 7183, 1405, 51, 286, 6423, 75, 3929, 45, 624, 46, 310, 8990, 6358, 3582, 1497, 45, 624, 46, 310, 456, 4845, 347, 727, 51, 564, 692, 15822, 63, 343, 4845, 51, 286, 6423, 75, 3929, 45, 624, 46, 310, 8990, 2391, 692, 15822, 45, 624, 46, 310, 7183, 436, 6423, 75, 3929, 45, 624, 46, 499, 222, 610, 7183, 436, 6423, 75, 3929, 45, 624, 731, 303, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 54, 63, 310, 434, 727, 51, 12091, 54, 6260, 630, 3208, 63, 343, 2118, 487, 322, 51, 286, 6423, 75, 3929, 45, 624, 46, 303, 8990, 55, 3516, 45, 624, 46, 303, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 55, 63, 310, 434, 727, 51, 12091, 55, 6260, 630, 3208, 63, 343, 2118, 487, 322, 51, 286, 6423, 75, 3929, 45, 624, 46, 303, 434, 727, 51, 1384, 54, 882, 1686, 63, 310, 607, 391, 1949, 7183, 9026, 1773, 4537, 456, 758, 5190, 451, 1153, 310, 434, 11397, 45, 624, 51, 1384, 54, 449, 727, 51, 3857, 54, 94, 46, 2394, 244, 54, 55, 53, 63, 343, 727, 51, 12091, 54, 6260, 299, 3208, 343, 727, 51, 6358, 3582, 1497, 54, 299, 3208, 303, 434, 727, 51, 1384, 55, 882, 1686, 63, 310, 434, 11397, 45, 624, 51, 1384, 55, 449, 727, 51, 3857, 55, 94, 46, 2394, 244, 54, 55, 53, 63, 343, 727, 51, 12091, 55, 6260, 299, 3208, 343, 727, 51, 6358, 3582, 1497, 55, 299, 3208, 499, 222, 610, 3161, 3516, 4038, 1312, 1947, 45, 8046, 49, 727, 731, 303, 607, 17305, 607, 120, 456, 23943, 563, 4820, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 57, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 10919, 5777, 46, 303, 9098, 51, 1315, 100, 915, 45, 56, 338, 727, 51, 1660, 536, 244, 57, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 10919, 5777, 46, 303, 9098, 51, 1315, 100, 948, 45, 624, 51, 1660, 536, 244, 55, 49, 244, 53, 49, 727, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 49, 1882, 66, 54, 53, 46, 303, 9098, 51, 1315, 100, 948, 45, 53, 49, 244, 55, 53, 49, 727, 51, 1660, 49, 244, 55, 53, 46, 303, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 54, 63, 310, 2118, 487, 322, 51, 3903, 45, 8046, 46, 303, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 55, 63, 310, 2118, 487, 322, 51, 3903, 45, 8046, 46, 303, 5194, 6790, 9026, 45, 8046, 49, 727, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 3857, 54, 93, 49, 727, 51, 3857, 54, 94, 49, 1802, 66, 624, 51, 20233, 126, 15822, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 3857, 55, 93, 49, 727, 51, 3857, 55, 94, 49, 1802, 66, 624, 51, 20233, 126, 15822, 46, 303, 9098, 51, 1315, 100, 897, 45, 58, 53, 49, 244, 57, 53, 49, 1367, 366, 3516, 244, 54, 411, 2377, 366, 20399, 244, 54, 58, 13769, 411, 5342, 366, 14982, 678, 303, 9098, 51, 1315, 100, 897, 45, 57, 58, 53, 49, 244, 57, 53, 49, 1367, 366, 3516, 244, 55, 411, 2377, 366, 20399, 244, 54, 58, 13769, 411, 5342, 366, 14982, 678, 303, 33044, 45, 8046, 49, 727, 46, 303, 5194, 4637, 45, 8046, 49, 727, 46, 499, 222, 610, 33044, 45, 8046, 49, 727, 731, 303, 434, 727, 51, 33655, 630, 332, 3857, 54, 582, 310, 9098, 51, 1315, 100, 23884, 45, 53, 49, 244, 53, 49, 727, 51, 1660, 49, 727, 51, 2296, 49, 5342, 366, 7061, 678, 310, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 4481, 4627, 46, 310, 9098, 51, 1315, 100, 915, 45, 56, 53, 53, 49, 244, 56, 55, 53, 49, 1802, 66, 624, 51, 4481, 15822, 46, 310, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 55, 49, 244, 54, 53, 53, 49, 1367, 366, 4296, 42081, 580, 38, 9306, 244, 54, 411, 2377, 366, 20399, 244, 55, 56, 13769, 411, 5342, 366, 14982, 678, 303, 4378, 727, 51, 33655, 630, 332, 3857, 55, 582, 310, 9098, 51, 1315, 100, 23884, 45, 53, 49, 244, 53, 49, 727, 51, 1660, 49, 727, 51, 2296, 49, 5342, 366, 7061, 678, 310, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 4481, 4627, 46, 310, 9098, 51, 1315, 100, 915, 45, 56, 53, 53, 49, 244, 56, 55, 53, 49, 1802, 66, 624, 51, 4481, 15822, 46, 310, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 55, 49, 244, 54, 53, 53, 49, 1367, 366, 4296, 42081, 580, 38, 9306, 244, 55, 411, 2377, 366, 20399, 244, 55, 56, 13769, 411, 5342, 366, 14982, 678, 303, 4378, 727, 51, 33655, 630, 332, 25932, 582, 310, 9098, 51, 1315, 100, 23884, 45, 53, 49, 244, 53, 49, 727, 51, 1660, 49, 727, 51, 2296, 49, 5342, 366, 7061, 678, 310, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 4481, 4627, 46, 310, 9098, 51, 1315, 100, 915, 45, 56, 53, 53, 49, 244, 56, 55, 53, 49, 1802, 66, 624, 51, 4481, 15822, 46, 310, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 55, 49, 244, 54, 53, 53, 49, 1367, 366, 89, 1093, 38, 2469, 23739, 42081, 580, 13700, 2377, 366, 20399, 244, 55, 56, 13769, 411, 5342, 366, 14982, 678, 499, 222, 4427, 784, 222, 40, 7020, 2945, 222, 4427, 784, 499, 222, 610, 7020, 971, 12728, 45, 1585, 49, 727, 731, 303, 434, 1708, 51, 3519, 2225, 630, 332, 119, 582, 310, 3238, 45, 624, 46, 499, 222, 610, 7020, 6042, 12728, 45, 1585, 49, 727, 731, 303, 607, 1524, 456, 5035, 563, 3467, 456, 1390, 8246, 303, 1524, 4637, 45, 1585, 49, 727, 46, 303, 434, 727, 51, 15197, 94, 449, 727, 51, 119, 2527, 1708, 51, 126, 2527, 727, 51, 15197, 94, 494, 727, 51, 119, 63, 310, 434, 727, 51, 15197, 93, 449, 244, 55, 338, 727, 51, 119, 2527, 1708, 51, 125, 2527, 727, 51, 15197, 93, 494, 244, 55, 338, 727, 51, 119, 63, 343, 727, 51, 8772, 8186, 299, 332, 20140, 39, 343, 727, 51, 20140, 299, 727, 51, 2956, 343, 727, 51, 9998, 49, 727, 51, 6594, 299, 727, 51, 1226, 2668, 49, 727, 51, 1226, 2668, 310, 434, 727, 51, 1987, 93, 449, 244, 55, 338, 727, 51, 119, 2527, 1708, 51, 125, 2527, 727, 51, 1987, 93, 494, 244, 55, 338, 727, 51, 119, 63, 343, 727, 51, 8772, 8186, 299, 332, 9998, 39, 343, 727, 51, 9998, 299, 727, 51, 2956, 343, 727, 51, 20140, 49, 727, 51, 6594, 299, 727, 51, 1226, 2668, 49, 727, 51, 1226, 2668, 310, 434, 727, 51, 10071, 93, 449, 244, 55, 338, 727, 51, 119, 2527, 1708, 51, 125, 2527, 727, 51, 10071, 93, 494, 244, 55, 338, 727, 51, 119, 63, 343, 727, 51, 8772, 8186, 299, 332, 6594, 39, 343, 727, 51, 6594, 299, 727, 51, 2956, 343, 727, 51, 20140, 49, 727, 51, 9998, 299, 727, 51, 1226, 2668, 49, 727, 51, 1226, 2668, 303, 1524, 18347, 45, 1585, 49, 727, 46, 303, 1524, 3283, 45, 1585, 49, 727, 46, 499, 222, 610, 1524, 18347, 45, 1585, 49, 727, 731, 303, 607, 1524, 456, 5035, 563, 3467, 456, 37192, 8246, 303, 434, 727, 51, 1987, 93, 449, 727, 51, 119, 2527, 1708, 51, 126, 2527, 727, 51, 1987, 93, 494, 727, 51, 119, 63, 310, 434, 727, 51, 15197, 93, 449, 244, 55, 338, 727, 51, 119, 2527, 1708, 51, 125, 2527, 727, 51, 15197, 93, 494, 244, 55, 338, 727, 51, 119, 63, 343, 727, 51, 18718, 8186, 299, 332, 105, 363, 20004, 39, 343, 727, 51, 105, 363, 20004, 299, 727, 51, 2956, 343, 727, 51, 18718, 49, 727, 51, 368, 8505, 21294, 299, 727, 51, 1226, 2668, 49, 727, 51, 1226, 2668, 310, 434, 727, 51, 1987, 93, 449, 244, 55, 338, 727, 51, 119, 2527, 1708, 51, 125, 2527, 727, 51, 1987, 93, 494, 244, 55, 338, 727, 51, 119, 63, 343, 727, 51, 18718, 8186, 299, 332, 18718, 39, 343, 727, 51, 18718, 299, 727, 51, 2956, 343, 727, 51, 105, 363, 20004, 49, 727, 51, 368, 8505, 21294, 299, 727, 51, 1226, 2668, 49, 727, 51, 1226, 2668, 310, 434, 727, 51, 10071, 93, 449, 244, 55, 338, 727, 51, 119, 2527, 1708, 51, 125, 2527, 727, 51, 10071, 93, 494, 244, 55, 338, 727, 51, 119, 63, 343, 727, 51, 18718, 8186, 299, 332, 368, 8505, 21294, 39, 343, 727, 51, 368, 8505, 21294, 299, 727, 51, 2956, 343, 727, 51, 105, 363, 20004, 49, 727, 51, 18718, 299, 727, 51, 1226, 2668, 49, 727, 51, 1226, 2668, 499, 222, 610, 1524, 3283, 45, 1585, 49, 727, 731, 303, 607, 1524, 456, 5035, 563, 3467, 456, 7183, 9026, 303, 434, 727, 51, 2153, 449, 727, 51, 119, 2527, 1708, 51, 126, 2527, 727, 51, 2153, 494, 727, 51, 119, 63, 310, 434, 727, 51, 15197, 94, 449, 244, 55, 338, 727, 51, 119, 2527, 1708, 51, 125, 2527, 727, 51, 15197, 94, 494, 244, 55, 338, 727, 51, 119, 63, 343, 727, 51, 7404, 90, 1088, 4836, 299, 2969, 343, 727, 51, 7150, 49, 727, 51, 1365, 299, 727, 51, 2956, 49, 727, 51, 1226, 2668, 310, 434, 727, 51, 2153, 449, 244, 55, 338, 727, 51, 119, 2527, 1708, 51, 125, 2527, 727, 51, 2153, 494, 244, 55, 338, 727, 51, 119, 63, 343, 727, 51, 7404, 90, 1088, 4836, 299, 3208, 343, 727, 51, 1365, 49, 727, 51, 7150, 299, 727, 51, 2956, 49, 727, 51, 1226, 2668, 303, 434, 727, 51, 1422, 630, 727, 51, 2956, 63, 310, 434, 727, 51, 1422, 93, 449, 727, 51, 119, 2527, 1708, 51, 126, 2527, 727, 51, 1422, 93, 494, 727, 51, 119, 63, 343, 434, 727, 51, 1987, 93, 449, 244, 55, 338, 727, 51, 119, 2527, 1708, 51, 125, 2527, 727, 51, 1987, 93, 494, 244, 55, 338, 727, 51, 119, 63, 419, 727, 51, 2832, 299, 332, 2675, 6880, 39, 499, 222, 610, 5194, 11557, 45, 8046, 49, 727, 731, 303, 607, 7437, 2531, 3467, 303, 727, 51, 2204, 49, 727, 51, 4182, 299, 332, 31199, 244, 54, 56, 13769, 411, 332, 14982, 39, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1987, 93, 49, 727, 51, 94, 654, 49, 1367, 366, 10195, 26660, 9398, 2377, 66, 624, 51, 2204, 49, 5342, 66, 624, 51, 4182, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 15197, 93, 49, 727, 51, 15197, 94, 49, 1802, 66, 624, 51, 20140, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 15197, 93, 49, 727, 51, 15197, 94, 49, 1367, 366, 32221, 411, 2377, 66, 624, 51, 2204, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1987, 93, 49, 727, 51, 15197, 94, 49, 1802, 66, 624, 51, 9998, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1987, 93, 49, 727, 51, 15197, 94, 49, 1367, 366, 15895, 411, 2377, 66, 624, 51, 2204, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 10071, 93, 49, 727, 51, 15197, 94, 49, 1802, 66, 624, 51, 6594, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 10071, 93, 49, 727, 51, 15197, 94, 49, 1367, 366, 12200, 411, 2377, 66, 624, 51, 2204, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 15197, 93, 49, 727, 51, 1987, 93, 49, 1802, 66, 624, 51, 105, 363, 20004, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1987, 93, 49, 727, 51, 9548, 49, 1367, 366, 40497, 26660, 9398, 2377, 66, 624, 51, 2204, 49, 5342, 66, 624, 51, 4182, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 15197, 93, 49, 727, 51, 1987, 93, 49, 1367, 366, 73, 363, 20004, 411, 2377, 66, 624, 51, 2204, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1987, 93, 49, 727, 51, 1987, 93, 49, 1802, 66, 624, 51, 18718, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1987, 93, 49, 727, 51, 1987, 93, 49, 1367, 366, 40497, 411, 2377, 66, 624, 51, 2204, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 10071, 93, 49, 727, 51, 1987, 93, 49, 1802, 66, 624, 51, 368, 8505, 21294, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 10071, 93, 49, 727, 51, 1987, 93, 49, 1367, 366, 1349, 15731, 411, 2377, 66, 624, 51, 2204, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1987, 93, 49, 727, 51, 4758, 49, 1367, 366, 6790, 90, 1088, 14199, 2377, 66, 624, 51, 2204, 49, 5342, 66, 624, 51, 4182, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 15197, 94, 49, 727, 51, 2153, 49, 1802, 66, 624, 51, 7150, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 15197, 94, 49, 727, 51, 2153, 49, 1367, 366, 10933, 411, 2377, 66, 624, 51, 2204, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 2153, 49, 727, 51, 2153, 49, 1802, 66, 624, 51, 1365, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 2153, 49, 727, 51, 2153, 49, 1367, 366, 2042, 411, 2377, 66, 624, 51, 2204, 46, 303, 1557, 6559, 45, 8046, 49, 727, 46, 499, 222, 610, 1557, 6559, 45, 8046, 49, 727, 731, 303, 607, 7437, 580, 1278, 341, 6621, 3467, 16539, 391, 5035, 303, 434, 727, 51, 7404, 90, 1088, 4836, 882, 1686, 480, 727, 51, 8772, 8186, 882, 1686, 480, 727, 51, 18718, 8186, 882, 1686, 63, 310, 727, 51, 1422, 299, 727, 51, 2956, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1987, 93, 49, 727, 51, 1422, 93, 49, 1802, 66, 624, 51, 1422, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1987, 93, 49, 727, 51, 1422, 93, 49, 1367, 366, 6559, 411, 2377, 66, 624, 51, 2204, 46, 499, 222, 610, 7020, 6423, 75, 3929, 45, 624, 731, 303, 727, 51, 5739, 1061, 1475, 244, 54, 303, 434, 727, 51, 5739, 1061, 925, 244, 55, 630, 244, 53, 63, 310, 37192, 6260, 45, 624, 46, 303, 456, 6310, 347, 727, 51, 5739, 73, 33463, 63, 310, 6310, 51, 286, 6423, 75, 3929, 45, 624, 46, 499, 222, 610, 37192, 6260, 45, 624, 731, 303, 607, 3224, 43746, 303, 837, 2746, 299, 4051, 51, 21732, 45, 53, 49, 727, 51, 1660, 46, 303, 727, 51, 5739, 73, 33463, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 49, 244, 53, 509, 499, 222, 610, 7020, 4038, 1312, 1947, 45, 8046, 49, 727, 731, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 4175, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 121, 4885, 46, 303, 456, 6310, 347, 727, 51, 5739, 73, 33463, 63, 310, 6310, 51, 3903, 45, 8046, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 88, 100, 85, 449, 244, 54, 53, 49, 1367, 366, 3594, 10626, 11587, 13700, 2377, 366, 20399, 244, 55, 56, 13769, 411, 5342, 366, 14982, 678, 303, 5194, 11557, 45, 8046, 49, 727, 46, 303, 5194, 4637, 45, 8046, 49, 727, 46, 499, 222, 4427, 784, 222, 40, 3215, 6880, 2945, 222, 4427, 784, 222, 610, 758, 37080, 45, 624, 731, 303, 607, 3137, 6206, 4204, 303, 434, 727, 51, 8772, 8186, 630, 332, 20140, 582, 310, 727, 51, 7682, 299, 244, 59, 303, 4378, 727, 51, 8772, 8186, 630, 332, 9998, 582, 310, 727, 51, 7682, 299, 244, 54, 53, 303, 4378, 727, 51, 8772, 8186, 630, 332, 6594, 582, 310, 727, 51, 7682, 299, 244, 54, 57, 303, 434, 727, 51, 18718, 8186, 630, 332, 368, 8505, 21294, 582, 310, 727, 51, 119, 8186, 299, 244, 60, 303, 4378, 727, 51, 18718, 8186, 630, 332, 18718, 582, 310, 727, 51, 119, 8186, 299, 244, 54, 53, 303, 4378, 727, 51, 18718, 8186, 630, 332, 105, 363, 20004, 582, 310, 727, 51, 119, 8186, 299, 244, 54, 56, 499, 222, 610, 3215, 2253, 487, 322, 24672, 45, 624, 731, 303, 607, 7178, 43746, 303, 434, 727, 51, 2675, 4836, 81, 4145, 868, 244, 53, 63, 310, 434, 727, 51, 1021, 925, 648, 45, 53, 51, 56, 58, 338, 727, 51, 119, 8186, 46, 630, 244, 53, 63, 343, 837, 2746, 54, 299, 4051, 51, 21732, 45, 53, 49, 727, 51, 3516, 54, 2944, 449, 727, 51, 2683, 46, 343, 837, 2746, 55, 299, 4051, 51, 21732, 45, 60, 60, 53, 49, 244, 61, 60, 53, 46, 343, 837, 2746, 56, 299, 4051, 51, 21732, 45, 55, 55, 53, 49, 244, 60, 60, 53, 46, 343, 727, 51, 352, 487, 16566, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 56, 49, 244, 53, 509, 343, 727, 51, 352, 487, 16566, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 54, 49, 244, 53, 509, 343, 727, 51, 352, 487, 16566, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 55, 49, 244, 53, 509, 310, 434, 727, 51, 1021, 925, 648, 45, 53, 51, 58, 58, 338, 727, 51, 119, 8186, 46, 630, 244, 53, 63, 343, 837, 2746, 56, 299, 4051, 51, 21732, 45, 53, 49, 244, 55, 55, 53, 46, 343, 837, 2746, 58, 299, 4051, 51, 21732, 45, 55, 55, 53, 49, 244, 60, 60, 53, 46, 343, 727, 51, 352, 487, 16566, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 56, 49, 244, 53, 509, 343, 727, 51, 352, 487, 16566, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 58, 49, 244, 53, 509, 310, 434, 727, 51, 1021, 925, 648, 45, 624, 51, 119, 8186, 46, 630, 244, 53, 63, 343, 5226, 299, 4051, 51, 11512, 45, 624, 51, 38200, 46, 343, 434, 5226, 630, 332, 113, 582, 419, 727, 51, 352, 487, 16566, 51, 1713, 45, 2253, 487, 16566, 45, 56, 338, 727, 51, 1660, 536, 244, 61, 449, 244, 55, 53, 49, 244, 53, 509, 343, 4378, 5226, 630, 332, 119, 582, 419, 727, 51, 352, 487, 16566, 51, 1713, 45, 2253, 487, 16566, 45, 60, 338, 727, 51, 1660, 536, 244, 61, 494, 244, 57, 53, 49, 244, 53, 509, 343, 837, 2746, 57, 299, 4051, 51, 21732, 45, 55, 55, 53, 49, 244, 60, 60, 53, 46, 343, 727, 51, 352, 487, 16566, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 57, 49, 244, 53, 509, 603, 3215, 6790, 1405, 45, 624, 46, 499, 222, 610, 3215, 6790, 1405, 45, 624, 731, 303, 607, 7178, 7183, 50, 9026, 1773, 434, 18575, 9161, 303, 434, 727, 51, 7404, 90, 1088, 4836, 630, 2969, 63, 310, 434, 727, 51, 1021, 925, 244, 55, 53, 630, 244, 53, 480, 727, 51, 1021, 925, 244, 57, 53, 882, 244, 53, 63, 343, 11943, 299, 4051, 51, 11512, 45, 624, 51, 7529, 739, 46, 343, 727, 51, 7404, 90, 1088, 51, 1713, 45, 6790, 90, 1088, 45, 2746, 49, 244, 53, 509, 310, 434, 727, 51, 1021, 925, 244, 56, 53, 630, 244, 53, 63, 343, 11943, 299, 4051, 51, 11512, 45, 624, 51, 7529, 739, 46, 343, 727, 51, 5834, 3582, 1497, 51, 1713, 45, 6358, 3582, 1497, 45, 2746, 49, 244, 53, 509, 310, 434, 727, 51, 1021, 925, 244, 56, 58, 630, 244, 53, 63, 343, 11943, 299, 4051, 51, 11512, 45, 624, 51, 7529, 739, 46, 343, 727, 51, 564, 692, 15822, 51, 1713, 45, 2391, 692, 15822, 45, 2746, 49, 244, 60, 58, 53, 509, 499, 222, 610, 3215, 6880, 971, 12728, 45, 1585, 49, 727, 731, 303, 434, 1708, 51, 3519, 2225, 630, 332, 119, 582, 310, 3238, 45, 624, 46, 303, 434, 727, 51, 2675, 4836, 81, 4145, 868, 244, 53, 63, 310, 434, 327, 1585, 51, 3519, 2225, 630, 332, 3695, 678, 480, 727, 51, 10009, 2394, 244, 56, 54, 60, 63, 343, 727, 51, 10009, 5928, 727, 51, 16869, 536, 244, 55, 310, 4378, 327, 1585, 51, 3519, 2225, 630, 332, 4058, 678, 480, 727, 51, 10009, 2527, 244, 60, 57, 53, 63, 343, 727, 51, 10009, 1475, 727, 51, 16869, 536, 244, 55, 499, 222, 610, 3215, 6880, 6042, 12728, 45, 1585, 49, 727, 731, 303, 1524, 4637, 45, 1585, 49, 727, 46, 499, 222, 610, 3215, 6880, 6423, 75, 3929, 45, 624, 731, 303, 758, 37080, 45, 624, 46, 303, 434, 727, 51, 2675, 4836, 81, 4145, 868, 244, 53, 63, 310, 727, 51, 2499, 5928, 727, 51, 7682, 310, 434, 727, 51, 2499, 350, 244, 54, 58, 63, 343, 727, 51, 2675, 1475, 244, 54, 310, 434, 727, 51, 2499, 868, 244, 57, 53, 63, 343, 727, 51, 1021, 1475, 244, 54, 343, 434, 727, 51, 12091, 73, 33463, 882, 2969, 63, 419, 3215, 2253, 487, 322, 24672, 45, 624, 46, 310, 434, 727, 51, 7404, 90, 1088, 4836, 630, 3208, 63, 343, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 63, 419, 2118, 487, 322, 51, 286, 6423, 75, 3929, 45, 624, 46, 343, 8990, 45, 624, 46, 310, 434, 727, 51, 7404, 90, 1088, 4836, 630, 2969, 63, 343, 456, 7183, 1405, 347, 727, 51, 7404, 90, 1088, 63, 419, 7183, 1405, 51, 286, 6423, 75, 3929, 45, 624, 46, 343, 8990, 13456, 45, 624, 46, 343, 456, 7183, 1405, 347, 727, 51, 5834, 3582, 1497, 63, 419, 7183, 1405, 51, 286, 6423, 75, 3929, 45, 624, 46, 343, 8990, 6358, 3582, 1497, 45, 624, 46, 343, 456, 4845, 347, 727, 51, 564, 692, 15822, 63, 419, 4845, 51, 286, 6423, 75, 3929, 45, 624, 46, 343, 8990, 2391, 692, 15822, 45, 624, 46, 343, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 63, 419, 434, 727, 51, 12091, 73, 33463, 630, 3208, 63, 547, 2118, 487, 322, 51, 286, 6423, 75, 3929, 45, 624, 46, 343, 434, 727, 51, 883, 6358, 3582, 1497, 630, 3208, 63, 419, 8990, 45, 624, 46, 343, 434, 727, 51, 1384, 882, 1686, 63, 419, 607, 391, 1949, 7183, 9026, 1773, 4537, 456, 758, 5190, 451, 1153, 419, 434, 11397, 45, 624, 51, 1384, 449, 727, 51, 2499, 46, 2394, 244, 54, 55, 53, 63, 547, 727, 51, 12091, 73, 33463, 49, 727, 51, 883, 6358, 3582, 1497, 299, 3208, 49, 3208, 499, 222, 610, 3215, 6880, 4038, 1312, 1947, 45, 8046, 49, 727, 731, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 4175, 46, 303, 9098, 51, 1315, 100, 948, 45, 53, 49, 244, 55, 53, 49, 727, 51, 1660, 49, 244, 55, 53, 46, 303, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 63, 310, 2118, 487, 322, 51, 3903, 45, 8046, 46, 303, 434, 727, 51, 7404, 90, 1088, 4836, 630, 2969, 63, 310, 5194, 6790, 9026, 45, 8046, 49, 727, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 10009, 49, 727, 51, 2499, 49, 1802, 66, 624, 51, 20233, 126, 15822, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 59, 49, 244, 54, 53, 53, 49, 1367, 366, 4767, 517, 4145, 63, 925, 105, 39, 925, 727, 51, 2675, 4836, 81, 4145, 49, 2377, 366, 20399, 244, 55, 53, 13769, 411, 5342, 366, 14982, 678, 303, 9098, 51, 1315, 100, 897, 45, 310, 727, 51, 1660, 536, 244, 55, 49, 295, 59, 59, 53, 49, 310, 1367, 366, 1033, 4296, 28336, 331, 12557, 456, 45367, 331, 6310, 295, 568, 2818, 1348, 640, 503, 17320, 38, 37611, 310, 2377, 366, 20399, 244, 54, 58, 13769, 411, 310, 5342, 366, 14982, 411, 303, 848, 303, 434, 727, 51, 2675, 4836, 81, 4145, 2527, 244, 53, 63, 310, 9098, 51, 1315, 100, 23884, 45, 53, 49, 244, 53, 49, 727, 51, 1660, 49, 727, 51, 2296, 49, 5342, 366, 7061, 678, 310, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 14459, 4627, 46, 310, 9098, 51, 1315, 100, 897, 45, 343, 727, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 57, 49, 1367, 366, 4296, 517, 2500, 38, 34962, 517, 7206, 11006, 3734, 13700, 2377, 366, 31199, 244, 55, 56, 13769, 411, 5342, 366, 14982, 39, 310, 848, 303, 434, 727, 51, 2675, 868, 244, 54, 63, 310, 8902, 4836, 45, 8046, 49, 727, 46, 303, 5194, 4637, 45, 8046, 49, 727, 46, 499, 222, 610, 8902, 4836, 45, 8046, 49, 727, 731, 303, 607, 4820, 456, 1429, 863, 8902, 303, 9098, 51, 1315, 100, 23884, 45, 53, 49, 244, 53, 49, 727, 51, 1660, 49, 727, 51, 2296, 49, 5342, 366, 7061, 678, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 4481, 4627, 46, 303, 9098, 51, 1315, 100, 915, 45, 56, 53, 53, 49, 244, 56, 55, 53, 49, 1802, 66, 624, 51, 4481, 15822, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 55, 49, 244, 54, 53, 53, 49, 1367, 366, 4296, 42081, 580, 13700, 2377, 366, 20399, 244, 55, 56, 13769, 411, 5342, 366, 14982, 678, 499, 222, 4427, 784, 222, 40, 19588, 21880, 19757, 10750, 222, 4427, 784, 222, 610, 32660, 971, 12728, 45, 1585, 49, 727, 731, 303, 434, 1708, 51, 3519, 2225, 630, 332, 119, 582, 310, 3238, 45, 624, 46, 499, 222, 610, 5194, 7849, 10259, 753, 45, 8046, 49, 727, 731, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1987, 93, 49, 727, 51, 70, 2932, 49, 1367, 366, 18660, 21880, 19757, 9398, 2377, 366, 20399, 244, 55, 56, 13769, 411, 5342, 366, 14982, 678, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 15197, 93, 49, 727, 51, 15197, 94, 49, 1802, 66, 624, 51, 20140, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 15197, 93, 49, 727, 51, 15197, 94, 49, 1367, 366, 21309, 678, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1987, 93, 49, 727, 51, 15197, 94, 49, 1802, 66, 624, 51, 9998, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1987, 93, 49, 727, 51, 15197, 94, 49, 1367, 366, 15895, 678, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 10071, 93, 49, 727, 51, 15197, 94, 49, 1802, 66, 624, 51, 6594, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 10071, 93, 49, 727, 51, 15197, 94, 49, 1367, 366, 15014, 678, 303, 434, 727, 51, 37853, 882, 1686, 63, 310, 727, 51, 1422, 299, 727, 51, 2956, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1987, 93, 49, 727, 51, 1422, 94, 49, 1802, 66, 624, 51, 1422, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1987, 93, 49, 727, 51, 1422, 94, 49, 1367, 366, 6559, 678, 499, 222, 610, 32660, 6042, 12728, 45, 1585, 49, 727, 731, 303, 607, 6930, 992, 12033, 391, 26419, 303, 1524, 4637, 45, 1585, 49, 727, 46, 303, 434, 727, 51, 15197, 94, 449, 727, 51, 119, 2527, 1708, 51, 126, 2527, 727, 51, 15197, 94, 494, 727, 51, 119, 63, 310, 434, 727, 51, 15197, 93, 449, 244, 55, 338, 727, 51, 119, 2527, 1708, 51, 125, 2527, 727, 51, 15197, 93, 494, 244, 55, 338, 727, 51, 119, 63, 343, 727, 51, 37853, 299, 727, 51, 27725, 88, 343, 727, 51, 20140, 299, 727, 51, 2956, 343, 727, 51, 9998, 49, 727, 51, 6594, 299, 727, 51, 1226, 2668, 49, 727, 51, 1226, 2668, 310, 434, 727, 51, 1987, 93, 449, 244, 55, 338, 727, 51, 119, 2527, 1708, 51, 125, 2527, 727, 51, 1987, 93, 494, 244, 55, 338, 727, 51, 119, 63, 343, 727, 51, 37853, 299, 727, 51, 27725, 82, 343, 727, 51, 9998, 299, 727, 51, 2956, 343, 727, 51, 20140, 49, 727, 51, 6594, 299, 727, 51, 1226, 2668, 49, 727, 51, 1226, 2668, 310, 434, 727, 51, 10071, 93, 449, 244, 55, 338, 727, 51, 119, 2527, 1708, 51, 125, 2527, 727, 51, 10071, 93, 494, 244, 55, 338, 727, 51, 119, 63, 343, 727, 51, 37853, 299, 727, 51, 27725, 77, 343, 727, 51, 6594, 299, 727, 51, 2956, 343, 727, 51, 20140, 49, 727, 51, 9998, 299, 727, 51, 1226, 2668, 49, 727, 51, 1226, 2668, 303, 434, 727, 51, 1422, 630, 727, 51, 2956, 63, 310, 434, 727, 51, 1422, 94, 449, 727, 51, 119, 2527, 1708, 51, 126, 2527, 727, 51, 1422, 94, 494, 727, 51, 119, 63, 343, 434, 727, 51, 1987, 93, 449, 244, 55, 338, 727, 51, 119, 2527, 1708, 51, 125, 2527, 727, 51, 1987, 93, 494, 244, 55, 338, 727, 51, 119, 63, 419, 727, 51, 2832, 299, 332, 6231, 39, 499, 222, 610, 32660, 6423, 75, 3929, 45, 624, 731, 303, 607, 7437, 4330, 3224, 37192, 303, 727, 51, 5739, 1061, 1475, 244, 54, 303, 434, 727, 51, 5739, 1061, 925, 244, 55, 630, 244, 53, 63, 310, 37192, 6260, 45, 624, 46, 303, 456, 6310, 347, 727, 51, 5739, 73, 33463, 63, 310, 6310, 51, 286, 6423, 75, 3929, 45, 624, 46, 499, 222, 610, 37192, 6260, 45, 624, 731, 303, 837, 2746, 299, 4051, 51, 21732, 45, 53, 49, 727, 51, 1660, 46, 303, 727, 51, 5739, 73, 33463, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 49, 244, 53, 509, 499, 222, 610, 32660, 4038, 1312, 1947, 45, 8046, 49, 727, 731, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 4175, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 121, 4885, 46, 303, 456, 6310, 347, 727, 51, 5739, 73, 33463, 63, 310, 6310, 51, 3903, 45, 8046, 46, 303, 5194, 7849, 10259, 753, 45, 8046, 49, 727, 46, 303, 5194, 4637, 45, 8046, 49, 727, 46, 499, 222, 4427, 784, 222, 40, 19588, 2945, 222, 4427, 784, 222, 610, 8990, 6231, 54, 45, 624, 49, 7336, 731, 303, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 6231, 54, 63, 310, 607, 1278, 19588, 34779, 829, 8032, 310, 434, 327, 624, 51, 3857, 54, 94, 449, 727, 51, 119, 449, 2118, 487, 322, 51, 126, 2527, 7336, 46, 480, 727, 51, 4651, 1501, 5291, 630, 3208, 63, 343, 434, 327, 419, 2118, 487, 322, 51, 125, 2394, 727, 51, 3857, 54, 93, 449, 727, 51, 119, 419, 480, 2118, 487, 322, 51, 125, 2527, 727, 51, 3857, 54, 93, 494, 727, 51, 119, 419, 575, 418, 1309, 36707, 15822, 45, 624, 49, 7336, 46, 630, 2969, 343, 8073, 419, 913, 1438, 299, 4051, 51, 21732, 45, 53, 49, 244, 62, 46, 419, 607, 391, 1178, 3473, 13057, 451, 32660, 419, 434, 913, 1438, 2527, 727, 51, 37853, 63, 547, 727, 51, 4651, 1501, 5291, 299, 2969, 547, 434, 727, 51, 3857, 54, 93, 630, 244, 54, 58, 53, 63, 733, 727, 51, 3857, 54, 93, 299, 244, 56, 57, 53, 547, 832, 63, 733, 727, 51, 3857, 54, 93, 299, 244, 54, 58, 53, 547, 727, 51, 4651, 1501, 5291, 299, 3208, 310, 434, 2118, 487, 322, 51, 126, 2394, 727, 51, 3857, 54, 94, 449, 727, 51, 119, 480, 2118, 487, 322, 51, 126, 2527, 727, 51, 3857, 54, 94, 494, 727, 51, 119, 63, 343, 434, 2118, 487, 322, 51, 125, 2394, 727, 51, 3857, 54, 93, 449, 727, 51, 119, 480, 2118, 487, 322, 51, 125, 2527, 727, 51, 3857, 54, 93, 494, 727, 51, 119, 63, 419, 727, 51, 3857, 54, 94, 1475, 244, 58, 53, 419, 727, 51, 352, 487, 16566, 6231, 54, 51, 2564, 45, 352, 487, 322, 46, 499, 222, 610, 418, 1309, 36707, 15822, 45, 624, 49, 7336, 731, 303, 607, 19588, 391, 5187, 456, 1887, 1411, 303, 456, 2240, 692, 15822, 347, 727, 51, 564, 692, 15822, 63, 310, 434, 327, 624, 51, 3857, 54, 94, 449, 727, 51, 119, 449, 2240, 692, 15822, 51, 126, 2527, 7336, 46, 480, 727, 51, 4651, 1501, 5291, 630, 3208, 63, 343, 434, 2240, 692, 15822, 51, 125, 2394, 727, 51, 3857, 54, 93, 449, 727, 51, 119, 480, 2240, 692, 15822, 51, 125, 2527, 727, 51, 3857, 54, 93, 494, 727, 51, 119, 63, 419, 461, 2969, 499, 222, 610, 8990, 6231, 55, 45, 624, 49, 7336, 731, 303, 607, 1524, 434, 13492, 28354, 4376, 24173, 43746, 303, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 6231, 55, 63, 310, 434, 2118, 487, 322, 51, 126, 2394, 727, 51, 3857, 55, 94, 449, 727, 51, 119, 480, 2118, 487, 322, 51, 126, 2527, 727, 51, 3857, 55, 94, 494, 727, 51, 119, 63, 343, 434, 2118, 487, 322, 51, 125, 2394, 727, 51, 3857, 55, 93, 449, 727, 51, 119, 480, 2118, 487, 322, 51, 125, 2527, 727, 51, 3857, 55, 93, 494, 727, 51, 119, 63, 419, 727, 51, 3857, 55, 94, 1475, 244, 58, 53, 419, 727, 51, 352, 487, 16566, 6231, 55, 51, 2564, 45, 352, 487, 322, 46, 499, 222, 610, 2118, 487, 322, 24672, 6231, 45, 624, 731, 303, 434, 727, 51, 33655, 630, 1686, 63, 310, 607, 46278, 2764, 451, 43746, 2143, 451, 4369, 310, 434, 727, 51, 1021, 925, 244, 54, 58, 630, 244, 53, 63, 343, 837, 2746, 54, 299, 4051, 51, 21732, 45, 53, 49, 244, 56, 61, 58, 46, 343, 434, 11397, 45, 125, 2746, 54, 449, 244, 54, 53, 53, 46, 868, 244, 57, 53, 480, 11397, 45, 125, 2746, 54, 449, 244, 56, 59, 53, 46, 868, 244, 57, 53, 63, 419, 434, 727, 51, 12091, 54, 6260, 882, 2969, 63, 547, 727, 51, 352, 487, 16566, 6231, 54, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 54, 49, 244, 53, 509, 419, 434, 727, 51, 12091, 55, 6260, 882, 2969, 63, 547, 727, 51, 352, 487, 16566, 6231, 55, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 54, 494, 244, 57, 54, 53, 49, 244, 53, 509, 310, 434, 727, 51, 1021, 925, 244, 61, 630, 244, 53, 63, 343, 837, 2746, 55, 299, 4051, 51, 21732, 45, 53, 49, 244, 61, 53, 46, 343, 837, 2746, 56, 299, 4051, 51, 21732, 45, 56, 59, 57, 49, 244, 56, 61, 58, 46, 343, 434, 727, 51, 12091, 54, 6260, 882, 2969, 63, 419, 727, 51, 352, 487, 16566, 6231, 54, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 55, 49, 244, 53, 509, 419, 727, 51, 352, 487, 16566, 6231, 54, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 56, 49, 244, 53, 509, 343, 434, 727, 51, 12091, 55, 6260, 882, 2969, 63, 419, 727, 51, 352, 487, 16566, 6231, 55, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 55, 494, 244, 57, 54, 53, 49, 244, 53, 509, 419, 727, 51, 352, 487, 16566, 6231, 55, 51, 1713, 45, 2253, 487, 16566, 45, 125, 2746, 56, 494, 244, 57, 54, 53, 49, 244, 53, 509, 310, 1035, 9124, 2253, 487, 322, 45, 624, 46, 310, 1035, 6790, 90, 1088, 6231, 45, 624, 46, 499, 222, 610, 1035, 9124, 2253, 487, 322, 45, 624, 731, 303, 607, 10487, 43746, 391, 12077, 451, 23531, 303, 434, 727, 51, 1021, 925, 327, 54, 61, 46, 630, 244, 53, 63, 310, 5226, 299, 4051, 51, 11512, 45, 624, 51, 38200, 46, 310, 434, 5226, 630, 332, 113, 582, 343, 434, 727, 51, 12091, 54, 6260, 882, 2969, 63, 419, 727, 51, 352, 487, 16566, 6231, 54, 51, 1713, 45, 2253, 487, 16566, 45, 54, 57, 53, 49, 244, 53, 509, 343, 434, 727, 51, 12091, 55, 6260, 882, 2969, 63, 419, 727, 51, 352, 487, 16566, 6231, 55, 51, 1713, 45, 2253, 487, 16566, 45, 58, 57, 53, 49, 244, 53, 509, 310, 4378, 5226, 630, 332, 119, 582, 343, 434, 727, 51, 12091, 54, 6260, 882, 2969, 63, 419, 727, 51, 352, 487, 16566, 6231, 54, 51, 1713, 45, 2253, 487, 16566, 45, 56, 57, 57, 49, 244, 53, 509, 343, 434, 727, 51, 12091, 55, 6260, 882, 2969, 63, 419, 727, 51, 352, 487, 16566, 6231, 55, 51, 1713, 45, 2253, 487, 16566, 45, 60, 58, 58, 49, 244, 53, 509, 303, 434, 727, 51, 1021, 925, 244, 56, 60, 630, 244, 53, 63, 310, 5226, 299, 4051, 51, 11512, 45, 624, 51, 38200, 46, 310, 434, 5226, 630, 332, 113, 582, 343, 434, 727, 51, 12091, 54, 6260, 882, 2969, 63, 419, 727, 51, 7404, 90, 1088, 51, 1713, 45, 6790, 90, 1088, 45, 54, 57, 53, 49, 244, 53, 509, 343, 434, 727, 51, 12091, 55, 6260, 882, 2969, 63, 419, 727, 51, 7404, 90, 1088, 51, 1713, 45, 6790, 90, 1088, 45, 58, 58, 53, 49, 244, 53, 509, 310, 4378, 5226, 630, 332, 119, 582, 343, 434, 727, 51, 12091, 54, 6260, 882, 2969, 63, 419, 727, 51, 7404, 90, 1088, 51, 1713, 45, 6790, 90, 1088, 45, 56, 57, 57, 49, 244, 53, 509, 343, 434, 727, 51, 12091, 55, 6260, 882, 2969, 63, 419, 727, 51, 7404, 90, 1088, 51, 1713, 45, 6790, 90, 1088, 45, 60, 58, 58, 49, 244, 53, 509, 499, 222, 610, 1035, 6790, 90, 1088, 6231, 45, 624, 731, 303, 607, 26380, 1035, 7183, 9026, 563, 4369, 303, 434, 727, 51, 1021, 925, 244, 56, 56, 630, 244, 53, 63, 310, 5226, 299, 4051, 51, 11512, 45, 624, 51, 38200, 46, 310, 434, 5226, 630, 332, 113, 582, 343, 434, 727, 51, 12091, 54, 6260, 882, 2969, 63, 419, 727, 51, 5834, 3582, 1497, 51, 1713, 45, 6358, 3582, 1497, 45, 54, 57, 53, 49, 244, 53, 509, 343, 434, 727, 51, 12091, 55, 6260, 882, 2969, 63, 419, 727, 51, 5834, 3582, 1497, 51, 1713, 45, 6358, 3582, 1497, 45, 58, 58, 53, 49, 244, 53, 509, 310, 4378, 5226, 630, 332, 119, 582, 343, 434, 727, 51, 12091, 54, 6260, 882, 2969, 63, 419, 727, 51, 5834, 3582, 1497, 51, 1713, 45, 6358, 3582, 1497, 45, 56, 57, 57, 49, 244, 53, 509, 343, 434, 727, 51, 12091, 55, 6260, 882, 2969, 63, 419, 727, 51, 5834, 3582, 1497, 51, 1713, 45, 6358, 3582, 1497, 45, 60, 58, 58, 49, 244, 53, 509, 303, 434, 727, 51, 1021, 925, 244, 59, 59, 630, 244, 53, 63, 310, 5226, 299, 4051, 51, 11512, 45, 624, 51, 38200, 46, 310, 434, 5226, 630, 332, 113, 582, 343, 727, 51, 564, 692, 15822, 51, 1713, 45, 2391, 692, 15822, 45, 54, 57, 53, 49, 244, 60, 58, 53, 509, 343, 727, 51, 564, 692, 15822, 51, 1713, 45, 2391, 692, 15822, 45, 58, 58, 53, 49, 244, 60, 58, 53, 509, 310, 4378, 5226, 630, 332, 119, 582, 343, 727, 51, 564, 692, 15822, 51, 1713, 45, 2391, 692, 15822, 45, 56, 57, 57, 49, 244, 60, 58, 53, 509, 343, 727, 51, 564, 692, 15822, 51, 1713, 45, 2391, 692, 15822, 45, 60, 58, 53, 49, 244, 60, 58, 53, 509, 499, 222, 610, 19588, 971, 12728, 45, 1585, 49, 727, 731, 303, 434, 1708, 51, 3519, 2225, 630, 332, 119, 582, 310, 3238, 45, 624, 46, 303, 434, 727, 51, 33655, 630, 1686, 63, 310, 434, 327, 1585, 51, 3519, 2225, 630, 332, 3695, 678, 480, 727, 51, 286, 3695, 54, 630, 3208, 63, 343, 727, 51, 286, 3695, 54, 299, 2969, 343, 727, 51, 3857, 55, 93, 299, 244, 58, 58, 53, 310, 4378, 327, 1585, 51, 3519, 2225, 630, 332, 4058, 678, 480, 727, 51, 286, 3695, 54, 630, 2969, 63, 343, 727, 51, 286, 3695, 54, 299, 3208, 343, 727, 51, 3857, 55, 93, 299, 244, 60, 58, 53, 499, 222, 610, 418, 2348, 2637, 12728, 45, 1585, 49, 727, 731, 303, 1524, 4637, 45, 1585, 49, 727, 46, 499, 222, 610, 418, 799, 2862, 75, 3929, 45, 624, 731, 303, 434, 727, 51, 33655, 630, 1686, 63, 310, 607, 2660, 391, 1524, 8990, 19487, 327, 5566, 568, 2703, 4725, 5187, 46, 310, 434, 727, 51, 6358, 3582, 1497, 54, 630, 3208, 63, 343, 8990, 6231, 54, 45, 624, 49, 244, 56, 54, 46, 310, 434, 727, 51, 6358, 3582, 1497, 55, 630, 2969, 63, 343, 3119, 310, 4378, 727, 51, 6358, 3582, 1497, 55, 630, 3208, 63, 343, 8990, 6231, 55, 45, 624, 49, 244, 56, 54, 46, 310, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 6231, 54, 63, 343, 434, 727, 51, 12091, 54, 6260, 630, 3208, 63, 419, 2118, 487, 322, 51, 286, 6423, 75, 3929, 45, 624, 46, 310, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 6231, 55, 63, 343, 434, 727, 51, 12091, 55, 6260, 630, 3208, 63, 419, 2118, 487, 322, 51, 286, 6423, 75, 3929, 45, 624, 46, 310, 607, 3118, 1524, 310, 434, 727, 51, 6358, 3582, 1497, 54, 630, 3208, 63, 343, 8990, 6231, 54, 45, 624, 49, 244, 54, 56, 46, 310, 434, 727, 51, 6358, 3582, 1497, 55, 630, 2969, 63, 343, 3119, 310, 4378, 727, 51, 6358, 3582, 1497, 55, 630, 3208, 63, 343, 8990, 6231, 55, 45, 624, 49, 244, 54, 56, 46, 310, 727, 51, 3857, 54, 94, 5928, 727, 51, 7682, 6231, 310, 607, 26744, 318, 8902, 284, 310, 434, 727, 51, 3857, 54, 94, 350, 244, 54, 58, 480, 727, 51, 3857, 55, 94, 868, 244, 54, 58, 63, 343, 727, 51, 33655, 299, 332, 3857, 54, 39, 310, 434, 727, 51, 3857, 54, 94, 868, 244, 57, 53, 63, 343, 727, 51, 1021, 1475, 244, 54, 343, 2118, 487, 322, 24672, 6231, 45, 624, 46, 310, 727, 51, 3857, 55, 94, 5928, 727, 51, 7682, 6231, 310, 434, 727, 51, 3857, 55, 94, 350, 244, 54, 58, 480, 727, 51, 3857, 54, 94, 868, 244, 54, 58, 63, 343, 727, 51, 33655, 299, 332, 3857, 55, 39, 310, 434, 727, 51, 3857, 55, 94, 868, 244, 57, 53, 63, 343, 727, 51, 1021, 1475, 244, 54, 343, 2118, 487, 322, 24672, 6231, 45, 624, 46, 310, 434, 727, 51, 3857, 54, 94, 350, 244, 54, 58, 480, 727, 51, 3857, 55, 94, 350, 244, 54, 58, 63, 343, 727, 51, 33655, 299, 332, 25932, 39, 310, 456, 7183, 1405, 347, 727, 51, 7404, 90, 1088, 63, 343, 7183, 1405, 51, 286, 6423, 75, 3929, 45, 624, 46, 310, 8990, 13456, 45, 624, 46, 310, 7183, 1405, 70, 799, 2862, 75, 3929, 45, 624, 46, 499, 222, 610, 7183, 1405, 70, 799, 2862, 75, 3929, 45, 624, 731, 303, 607, 18078, 4354, 29820, 37094, 1266, 303, 456, 7183, 1405, 347, 727, 51, 5834, 3582, 1497, 63, 310, 7183, 1405, 51, 286, 6423, 75, 3929, 45, 624, 46, 303, 8990, 6358, 3582, 1497, 45, 624, 46, 303, 456, 4845, 347, 727, 51, 564, 692, 15822, 63, 310, 4845, 51, 286, 6423, 75, 3929, 45, 624, 46, 303, 8990, 2391, 692, 15822, 45, 624, 46, 303, 434, 727, 51, 1384, 54, 882, 1686, 63, 310, 434, 11397, 45, 624, 51, 1384, 54, 449, 727, 51, 3857, 54, 94, 46, 2394, 244, 54, 55, 53, 63, 343, 727, 51, 12091, 54, 6260, 299, 3208, 343, 727, 51, 6358, 3582, 1497, 54, 299, 3208, 303, 434, 727, 51, 1384, 55, 882, 1686, 63, 310, 434, 11397, 45, 624, 51, 1384, 55, 449, 727, 51, 3857, 55, 94, 46, 2394, 244, 54, 55, 53, 63, 343, 727, 51, 12091, 55, 6260, 299, 3208, 343, 727, 51, 6358, 3582, 1497, 55, 299, 3208, 499, 222, 610, 418, 3914, 337, 1312, 1947, 45, 8046, 49, 727, 731, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 57, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 10919, 5777, 46, 303, 9098, 51, 1315, 100, 915, 45, 56, 338, 727, 51, 1660, 536, 244, 57, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 10919, 5777, 46, 303, 9098, 51, 1315, 100, 948, 45, 624, 51, 1660, 536, 244, 55, 49, 244, 53, 49, 727, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 49, 1882, 66, 54, 53, 46, 303, 9098, 51, 1315, 100, 948, 45, 53, 49, 244, 55, 53, 49, 727, 51, 1660, 49, 244, 55, 53, 46, 303, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 6231, 54, 63, 310, 2118, 487, 322, 51, 3903, 45, 8046, 46, 303, 456, 2118, 487, 322, 347, 727, 51, 352, 487, 16566, 6231, 55, 63, 310, 2118, 487, 322, 51, 3903, 45, 8046, 46, 303, 9098, 51, 1315, 100, 897, 45, 58, 53, 49, 244, 57, 53, 49, 1367, 366, 18660, 411, 2377, 366, 20399, 244, 54, 58, 13769, 411, 5342, 366, 14982, 678, 303, 9098, 51, 1315, 100, 897, 45, 57, 58, 53, 49, 244, 57, 53, 49, 1367, 366, 3516, 244, 54, 411, 2377, 366, 20399, 244, 54, 58, 13769, 411, 5342, 366, 14982, 678, 303, 5194, 6790, 9026, 45, 8046, 49, 727, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 3857, 54, 93, 49, 727, 51, 3857, 54, 94, 49, 1802, 66, 624, 51, 20233, 126, 15822, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 3857, 55, 93, 49, 727, 51, 3857, 55, 94, 49, 1802, 66, 624, 51, 20233, 126, 15822, 46, 303, 19588, 47252, 45, 8046, 49, 727, 46, 303, 5194, 4637, 45, 8046, 49, 727, 46, 499, 222, 610, 19588, 47252, 45, 8046, 49, 727, 731, 303, 434, 727, 51, 33655, 630, 332, 3857, 54, 582, 310, 9098, 51, 1315, 100, 23884, 45, 53, 49, 244, 53, 49, 727, 51, 1660, 49, 727, 51, 2296, 49, 5342, 366, 7061, 678, 310, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 4481, 4627, 46, 310, 9098, 51, 1315, 100, 915, 45, 56, 53, 53, 49, 244, 56, 55, 53, 49, 1802, 66, 624, 51, 4481, 15822, 46, 310, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 55, 49, 244, 54, 53, 53, 49, 1367, 366, 1338, 17855, 643, 286, 518, 10803, 2377, 366, 20399, 244, 55, 56, 13769, 411, 5342, 366, 14982, 678, 303, 4378, 727, 51, 33655, 630, 332, 3857, 55, 582, 310, 9098, 51, 1315, 100, 23884, 45, 53, 49, 244, 53, 49, 727, 51, 1660, 49, 727, 51, 2296, 49, 5342, 366, 7061, 678, 310, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 4481, 4627, 46, 310, 9098, 51, 1315, 100, 915, 45, 56, 53, 53, 49, 244, 56, 55, 53, 49, 1802, 66, 624, 51, 4481, 15822, 46, 310, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 55, 49, 244, 54, 53, 53, 49, 1367, 366, 4296, 42081, 580, 38, 2469, 643, 286, 13700, 2377, 366, 20399, 244, 55, 56, 13769, 411, 5342, 366, 14982, 678, 303, 4378, 727, 51, 33655, 630, 332, 25932, 582, 310, 9098, 51, 1315, 100, 23884, 45, 53, 49, 244, 53, 49, 727, 51, 1660, 49, 727, 51, 2296, 49, 5342, 366, 7061, 678, 310, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 4481, 4627, 46, 310, 9098, 51, 1315, 100, 915, 45, 56, 53, 53, 49, 244, 56, 55, 53, 49, 1802, 66, 624, 51, 4481, 15822, 46, 310, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 55, 49, 244, 54, 53, 53, 49, 1367, 366, 89, 1093, 38, 2469, 23739, 42081, 580, 13700, 2377, 366, 20399, 244, 55, 56, 13769, 411, 5342, 366, 14982, 678, 499, 222, 4427, 784, 222, 40, 23148, 8447, 2945, 222, 4427, 784, 499, 222, 610, 6842, 2207, 971, 12728, 45, 1585, 49, 727, 731, 303, 434, 1708, 51, 3519, 2225, 630, 332, 119, 582, 310, 3238, 45, 624, 46, 499, 222, 610, 6842, 2207, 6042, 12728, 45, 1585, 49, 727, 731, 303, 1524, 4637, 45, 1585, 49, 727, 46, 499, 222, 610, 6842, 2207, 6423, 75, 3929, 45, 624, 731, 303, 32660, 6423, 75, 3929, 45, 624, 46, 499, 222, 610, 6842, 2207, 4038, 1312, 1947, 45, 8046, 49, 727, 731, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2296, 536, 244, 55, 49, 1802, 66, 624, 51, 4175, 46, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 121, 4885, 94, 49, 1802, 66, 624, 51, 121, 4885, 46, 303, 456, 6310, 347, 727, 51, 5739, 73, 33463, 63, 310, 6310, 51, 3903, 45, 8046, 46, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 2787, 89, 7066, 49, 1367, 366, 3169, 377, 7484, 13700, 2377, 366, 20399, 244, 56, 53, 13769, 411, 5342, 366, 14982, 678, 303, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 88, 100, 85, 49, 1367, 366, 7066, 100, 3516, 411, 2377, 366, 20399, 244, 55, 53, 13769, 411, 5342, 366, 14982, 678, 303, 5194, 4637, 45, 8046, 49, 727, 46, 303, 607, 14845, 822, 303, 727, 51, 9047, 28716, 303, 727, 51, 9047, 28716, 299, 43003, 459, 5142, 51, 2787, 678, 303, 6842, 299, 727, 51, 9047, 28716, 51, 3045, 4466, 365, 303, 16081, 299, 1627, 303, 456, 1646, 347, 6842, 63, 310, 16081, 51, 1713, 45, 948, 51, 3045, 46719, 509, 303, 607, 43031, 16081, 391, 2309, 2687, 244, 58, 303, 16081, 299, 8635, 45, 14077, 49, 1221, 66, 6034, 837, 63, 648, 45, 125, 96, 53, 5310, 303, 2687, 58, 299, 16081, 6510, 624, 51, 1538, 28716, 23137, 303, 2687, 58, 51, 9845, 365, 303, 456, 613, 347, 2189, 45, 1688, 45, 1412, 58, 8485, 310, 9098, 51, 1315, 100, 897, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 5142, 10221, 494, 327, 110, 338, 244, 58, 53, 490, 1367, 66, 1412, 58, 96, 110, 636, 2377, 366, 20399, 244, 54, 61, 13769, 411, 5342, 366, 14982, 678, 499, 222, 4427, 784, 222, 40, 3071, 2945, 222, 4427, 784, 499, 222, 610, 3071, 971, 12728, 45, 1585, 49, 727, 731, 303, 434, 1708, 51, 3519, 2225, 630, 332, 119, 582, 310, 3238, 45, 624, 46, 499, 222, 610, 3071, 6042, 12728, 45, 1585, 49, 727, 731, 303, 1524, 4637, 45, 1585, 49, 727, 46, 499, 222, 610, 3071, 6423, 75, 3929, 45, 624, 731, 303, 32660, 6423, 75, 3929, 45, 624, 46, 499, 222, 610, 3071, 4038, 1312, 1947, 45, 8046, 49, 727, 731, 303, 9098, 51, 1315, 100, 915, 45, 624, 51, 1660, 536, 244, 55, 49, 727, 51, 4771, 94, 49, 1802, 66, 624, 51, 4771, 4627, 46, 303, 456, 6310, 347, 727, 51, 5739, 73, 33463, 63, 310, 6310, 51, 3903, 45, 8046, 46, 303, 5194, 4637, 45, 8046, 49, 727, 46, 499, 222, 4427, 21411, 222, 40, 813, 341, 1441, 686, 641, 50, 316, 664, 10178, 222, 4427, 21411, 499, 222, 610, 1441, 45, 1660, 66, 54, 58, 53, 53, 53, 49, 2401, 66, 55, 58, 53, 53, 53, 731, 303, 684, 38848, 1947, 4687, 45, 8046, 49, 727, 731, 310, 9098, 51, 2577, 45, 2335, 46, 310, 38848, 1947, 45, 8046, 49, 727, 46, 310, 9098, 51, 1896, 365, 465, 684, 8466, 12728, 4687, 45, 1585, 49, 9098, 49, 727, 731, 310, 8466, 12728, 45, 1585, 49, 727, 46, 310, 38848, 1947, 4687, 45, 8046, 49, 727, 46, 465, 684, 1221, 12728, 4687, 45, 1585, 49, 9098, 49, 727, 731, 310, 1221, 12728, 45, 1585, 49, 727, 46, 310, 38848, 1947, 4687, 45, 8046, 49, 727, 46, 465, 684, 8764, 75, 3929, 4687, 45, 8046, 49, 727, 731, 310, 8764, 75, 3929, 45, 624, 46, 310, 38848, 1947, 4687, 45, 8046, 49, 727, 46, 310, 607, 15248, 49, 1636, 1495, 8764, 75, 3929, 4076, 310, 9098, 51, 5497, 45, 624, 51, 7222, 8221, 49, 8764, 75, 3929, 4687, 49, 9098, 49, 727, 46, 465, 607, 1776, 992, 727, 480, 1495, 3238, 303, 462, 10800, 45, 1491, 731, 310, 3119, 465, 727, 299, 10800, 365, 303, 727, 51, 1660, 299, 1882, 303, 727, 51, 2296, 299, 2401, 303, 727, 51, 7222, 8221, 299, 244, 54, 53, 53, 244, 607, 18564, 303, 607, 1506, 341, 3070, 480, 341, 9098, 303, 3070, 299, 41822, 365, 303, 3238, 45, 624, 46, 303, 9098, 299, 21457, 45, 2405, 49, 1882, 66, 624, 51, 1660, 49, 2401, 66, 624, 51, 2296, 46, 303, 9098, 51, 2440, 365, 303, 607, 758, 992, 5233, 303, 3070, 51, 2555, 10379, 1732, 50, 54, 9603, 9332, 1708, 63, 8466, 12728, 4687, 45, 1585, 49, 9098, 49, 727, 509, 303, 3070, 51, 2555, 10379, 971, 9603, 9332, 1708, 63, 1221, 12728, 4687, 45, 1585, 49, 9098, 49, 727, 509, 303, 8764, 75, 3929, 4687, 45, 8046, 49, 727, 46, 303, 607, 480, 11305, 341, 1142, 303, 3070, 51, 1850, 5856, 365, 244, 607, 9072, 6234, 3240, 458, 8791, 303, 1489, 459, 30316, 16013, 499, 222, 1967, 45, 54, 53, 53, 53, 49, 244, 54, 53, 53, 53, 46, 222 ]
[ "#", "ĠAr", "ush", "i", "ĠP", "ate", "l", "Ġ(", "ar", "ush", "ip", ")", "Ċ", "from", "Ġtk", "inter", "Ġimport", "Ġ*", "Ċ", "import", "Ġrandom", "Ċ", "Ċ", "################################", "######", "Ċ", "#", "Ġimages", "Ġtaken", "Ġfrom", "Ġw", "ikipedia", ",", "pix", "ab", "ay", ",", "Ċ", "#", "Ġtrans", "Ġa", "mer", "icas", ",", "Ġcli", "par", "tp", "anda", ",", "png", "img", ",", "Ċ", "#", "Ġfind", "icons", ",", "Ġm", "icrosoft", "Ġword", "Ċ", "################################", "######", "ĊĊ", "Ċ", "################################", "####", "Ċ", "#", "Ġinit", "Ċ", "################################", "####", "Ċ", "def", "Ġinit", "(", "data", "):", "ĊĠĠĠ", "Ġdata", ".", "score", "Ġ=", "Ġ", "0", "ĊĠĠĠ", "Ġdata", ".", "mode", "Ġ=", "Ġ\"", "splash", "Screen", "\"", "ĊĠĠĠ", "Ġdata", ".", "timer", "Delay", "Ġ=", "Ġ", "1", "0", "0", "ĊĠĠĠ", "Ġdata", ".", "height", "Ġ=", "Ġ", "8", "0", "0", "ĊĠĠĠ", "Ġdata", ".", "width", "Ġ=", "Ġ", "8", "0", "0", "ĊĠĠĠ", "Ġdata", ".", "speed", "Ġ=", "Ġ", "1", "0", "ĊĠĠĠ", "Ġdata", ".", "speed", "AI", "Ġ=", "Ġ", "1", "2", "ĊĠĠĠ", "Ġdata", ".", "speed", "AI", "2", "Ġ=", "Ġ", "1", "2", "ĊĠĠĠ", "Ġdata", ".", "switch", "On", "Progress", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġdata", ".", "r", "Ġ=", "Ġ", "2", "5", "ĊĠĠĠ", "Ġdata", ".", "cx", "Ġ=", "Ġ", "2", "8", "0", "ĊĠĠĠ", "Ġdata", ".", "cy", "Ġ=", "Ġ", "7", "5", "0", "ĊĠĠĠ", "Ġdata", ".", "on", "Left", "1", ",", "Ġdata", ".", "on", "Left", "2", "Ġ=", "ĠTrue", ",", "ĠTrue", "ĊĠĠĠ", "Ġdata", ".", "win", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġdata", ".", "co", "con", "uts", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġdata", ".", "power", "U", "ps", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġdata", ".", "co", "con", "uts", "1", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġdata", ".", "co", "con", "uts", "2", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġdata", ".", "co", "con", "uts", "AI", "1", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġdata", ".", "co", "con", "uts", "AI", "2", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġdata", ".", "inv", "inc", "ible", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġdata", ".", "pause", "D", "rops", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġdata", ".", "pause", "1", "Drop", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġdata", ".", "pause", "2", "Drop", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġinit", "1", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġinit", "1", "(", "data", "):", "ĊĠĠĠ", "Ġdata", ".", "be", "Inv", "inc", "ible", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġdata", ".", "Inv", "inc", "ible", "1", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġdata", ".", "Inv", "inc", "ible", "2", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġdata", ".", "sc", "ary", "Bug", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġdata", ".", "time", "Ġ=", "Ġ", "0", "ĊĠĠĠ", "Ġdata", ".", "co", "con", "ut", "Fall", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġdata", ".", "sides", "Ġ=", "Ġ[\"", "r", "\",", "Ġ\"", "l", "\"]", "ĊĠĠĠ", "Ġdata", ".", "level", "Ġ=", "Ġ", "1", "ĊĠĠĠ", "Ġdata", ".", "splash", "Screen", "Time", "Ġ=", "Ġ", "0", "ĊĠĠĠ", "Ġdata", ".", "splash", "Screen", "D", "rops", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġdata", ".", "background", "Ġ=", "ĠPhoto", "Image", "(", "file", "=\"", "tree", ".", "gif", "\")", "ĊĠĠĠ", "Ġdata", ".", "dead", "Screen", "Ġ=", "ĠPhoto", "Image", "(", "file", "=\"", "dead", "Bug", ".", "gif", "\")", "ĊĠĠĠ", "Ġdata", ".", "lad", "y", "Bug", "Ġ=", "ĠPhoto", "Image", "(", "file", "=\"", "lad", "y", ".", "gif", "\")", "ĊĠĠĠ", "Ġdata", ".", "win", "Screen", "Ġ=", "ĠPhoto", "Image", "(", "file", "=\"", "tree", "Top", "1", ".", "gif", "\")", "ĊĠĠĠ", "Ġdata", ".", "win", "Bug", "Ġ=", "ĠPhoto", "Image", "(", "file", "=\"", "little", "Bug", ".", "gif", "\")", "ĊĠĠĠ", "Ġdata", ".", "half", "Background", "Ġ=", "ĠPhoto", "Image", "(", "file", "=\"", "half", "Tree", ".", "gif", "\")", "ĊĠĠĠ", "Ġdata", ".", "umb", "rella", "Ġ=", "ĠPhoto", "Image", "(", "file", "=\"", "umb", "rella", "2", ".", "gif", "\")", "ĊĠĠĠ", "Ġdata", ".", "spider", "Ġ=", "ĠPhoto", "Image", "(", "file", "=\"", "spider", ".", "gif", "\")", "ĊĠĠĠ", "Ġdata", ".", "hour", "G", "lass", "Ġ=", "ĠPhoto", "Image", "(", "file", "=\"", "hour", "G", "lass", ".", "gif", "\")", "ĊĠĠĠ", "Ġdata", ".", "splash", "Screen", "Ġ=", "ĠPhoto", "Image", "(", "file", "=\"", "splash", ".", "gif", "\")", "ĊĠĠĠ", "Ġinit", "2", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġinit", "2", "(", "data", "):", "ĊĠĠĠ", "Ġdata", ".", "t", "bg", "Ġ=", "ĠPhoto", "Image", "(", "file", "=\"", "t", "bg", "2", ".", "gif", "\")", "ĊĠĠĠ", "Ġdata", ".", "click", "Ġ=", "ĠPhoto", "Image", "(", "file", "=\"", "click", ".", "gif", "\")", "ĊĠĠĠ", "Ġdata", ".", "not", "Click", "Ġ=", "ĠPhoto", "Image", "(", "file", "=\"", "not", "Click", ".", "gif", "\")", "ĊĠĠĠ", "Ġdata", ".", "player", "1", "X", "Ġ=", "Ġ", "1", "5", "0", "ĊĠĠĠ", "Ġdata", ".", "player", "1", "Y", "Ġ=", "Ġ", "7", "5", "0", "ĊĠĠĠ", "Ġdata", ".", "player", "2", "X", "Ġ=", "Ġ", "5", "5", "0", "ĊĠĠĠ", "Ġdata", ".", "player", "2", "Y", "Ġ=", "Ġ", "7", "5", "0", "ĊĠĠĠ", "Ġdata", ".", "winner", "Ġ=", "ĠNone", "ĊĠĠĠ", "Ġdata", ".", "speed", "Ġ=", "Ġ", "1", "2", "ĊĠĠĠ", "Ġdata", ".", "speed", "2", "Ġ=", "Ġ", "1", "2", "ĊĠĠĠ", "Ġdata", ".", "editor", "Time", "Ġ=", "Ġ", "0", "ĊĠĠĠ", "Ġdata", ".", "editor", "D", "rops", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġdata", ".", "margin", "Ġ=", "Ġ", "1", "0", "0", "ĊĠĠĠ", "Ġdata", ".", "enter", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġdata", ".", "power", "U", "ps", "Editor", "Ġ=", "ĠNone", "ĊĠĠĠ", "Ġdata", ".", "your", "Speed", "Ġ=", "ĠNone", "ĊĠĠĠ", "Ġdata", ".", "rain", "Speed", "Ġ=", "ĠNone", "ĊĠĠĠ", "Ġdata", ".", "slow", "Ġ=", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġdata", ".", "medium", "Ġ=", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġdata", ".", "fast", "Ġ=", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġdata", ".", "d", "ri", "zzle", "Ġ=", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġdata", ".", "rain", "Ġ=", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġdata", ".", "th", "under", "storm", "Ġ=", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġinit", "3", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġinit", "3", "(", "data", "):", "ĊĠĠĠ", "Ġdata", ".", "yes", "Ġ=", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġdata", ".", "no", "Ġ=", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġdata", ".", "enter", "Ġ=", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġdata", ".", "level", "Editor", "L", "ives", "Ġ=", "Ġ", "2", "ĊĠĠĠ", "Ġdata", ".", "r", "Speed", "Ġ=", "ĠNone", "ĊĠĠĠ", "Ġdata", ".", "start", "Ġ=", "ĠNone", "ĊĠĠĠ", "Ġdata", ".", "start", "1", "Ġ=", "ĠNone", "ĊĠĠĠ", "Ġdata", ".", "start", "2", "Ġ=", "ĠNone", "ĊĠĠĠ", "Ġdata", ".", "difficulty", "Ġ=", "ĠNone", "ĊĠĠĠ", "Ġdata", ".", "mode", "1", "Ġ=", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġdata", ".", "mode", "2", "Ġ=", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġdata", ".", "mode", "3", "Ġ=", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġdata", ".", "mode", "4", "Ġ=", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġdata", ".", "mode", "5", "Ġ=", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġdata", ".", "mode", "6", "Ġ=", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġdata", ".", "home", "Ġ=", "ĠPhoto", "Image", "(", "file", "=\"", "home", ".", "gif", "\")", "ĊĠĠĠ", "Ġdata", ".", "help", "Screen", "Ġ=", "ĠPhoto", "Image", "(", "file", "=\"", "help", "1", ".", "gif", "\")", "ĊĠĠĠ", "Ġdata", ".", "title", "Ġ=", "ĠPhoto", "Image", "(", "file", "=\"", "title", ".", "gif", "\")", "ĊĠĠĠ", "Ġdata", ".", "score", "List", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġdata", ".", "spot", "List", "Ġ=", "Ġ[", "2", "7", "0", ",", "Ġ", "3", "6", "4", ",", "Ġ", "4", "5", "8", ",", "Ġ", "5", "5", "2", ",", "Ġ", "6", "4", "6", ",", "Ġ", "7", "4", "0", "]", "ĊĠĠĠ", "Ġdata", ".", "saved", "Scores", "Ġ=", "ĠreadFile", "(\"", "score", ".", "txt", "\")", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "level", "Created", "\":", "ĊĠĠĠĠĠĠĠ", "Ġset", "Everything", "(", "data", ")", "ĊĠĠĠ", "Ġinit", "splash", "Screen", "Numbers", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġinit", "splash", "Screen", "Numbers", "(", "data", "):", "ĊĠĠĠ", "Ġdata", ".", "splash", "Button", "Y", "Ġ=", "Ġ", "4", "2", "5", "ĊĠĠĠ", "Ġdata", ".", "p", "1", "Button", "X", "Ġ=", "Ġ", "2", "2", "5", "ĊĠĠĠ", "Ġdata", ".", "p", "2", "Button", "X", "Ġ=", "Ġ", "2", "9", "0", "ĊĠĠĠ", "Ġdata", ".", "ed", "Button", "Ġ=", "Ġ", "3", "5", "5", "ĊĠĠĠ", "Ġdata", ".", "diff", "Button", "Ġ=", "Ġ", "4", "2", "5", "ĊĠĠĠ", "Ġdata", ".", "help", "Button", "Ġ=", "Ġ", "4", "9", "0", "ĊĠĠĠ", "Ġdata", ".", "s", "board", "Button", "Ġ=", "Ġ", "5", "5", "5", "ĊĠĠĠ", "Ġdata", ".", "hit", "Pen", "alty", "Ġ=", "Ġ", "7", "5", "ĊĠĠĠ", "Ġdata", ".", "splash", "Text", "Ġ=", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", "Ġ-", "Ġ", "2", "0", "ĊĠĠĠ", "Ġdata", ".", "li", "ves", "Ġ=", "Ġ", "2", "ĊĠĠĠ", "Ġdata", ".", "level", "Max", "Ġ=", "Ġ", "8", "ĊĠĠĠ", "Ġdata", ".", "lane", "Ġ=", "Ġ", "9", "4", "ĊĠĠĠ", "Ġdata", ".", "Player", "1", "Min", "Ġ=", "Ġ", "2", "7", "0", "ĊĠĠĠ", "Ġdata", ".", "Player", "1", "Max", "Ġ=", "Ġ", "7", "4", "0", "ĊĠĠĠ", "Ġdata", ".", "home", "X", "Ġ=", "Ġ", "5", "0", "ĊĠĠĠ", "Ġdata", ".", "home", "Y", "Ġ=", "Ġ", "6", "5", "0", "ĊĠĠĠ", "Ġinit", "Score", "Board", "Help", "(", "data", ")", "ĊĠĠĠ", "Ġinit", "1", "Player", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġinit", "Score", "Board", "Help", "(", "data", "):", "ĊĠĠĠ", "Ġdata", ".", "t", "bg", "Y", "Ġ=", "Ġ", "5", "Ġ*", "Ġdata", ".", "height", "Ġ/", "Ġ", "1", "2", "ĊĠĠĠ", "Ġdata", ".", "txt", "T", "Score", "Ġ=", "Ġ", "1", "5", "0", "ĊĠĠĠ", "Ġdata", ".", "S", "_", "P", "Ġ=", "Ġ", "2", "2", "0", "ĊĠĠĠ", "Ġdata", ".", "num", "Scores", "Ġ=", "Ġ", "5", "ĊĠĠĠ", "Ġdata", ".", "score", "Pos", "Ġ=", "Ġdata", ".", "height", "Ġ/", "Ġ", "1", "0", "ĊĠĠĠ", "Ġdata", ".", "score", "Shift", "Ġ=", "Ġ", "2", "7", "0", "ĊĠĠĠ", "Ġdata", ".", "help", "Y", "Ġ=", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", "Ġ-", "Ġ", "2", "0", "ĊĠĠĠ", "Ġdata", ".", "name", "Ġ=", "Ġ\"\"", "ĊĠĠĠ", "Ġdata", ".", "print", "Name", "Ġ=", "Ġ\"\"", "ĊĠĠĠ", "Ġdata", ".", "hit", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġinit", "AI", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġinit", "1", "Player", "(", "data", "):", "ĊĠĠĠ", "Ġdata", ".", "buffer", "Ġ=", "Ġ", "4", "0", "ĊĊ", "Ċ", "def", "Ġinit", "AI", "(", "data", "):", "ĊĠĠĠ", "Ġdata", ".", "A", "ITY", "Ġ=", "Ġ", "2", "2", "5", "ĊĠĠĠ", "Ġdata", ".", "easy", "X", "Ġ=", "Ġ", "2", "0", "0", "ĊĠĠĠ", "Ġdata", ".", "easy", "Y", "Ġ=", "Ġ", "3", "0", "0", "ĊĠĠĠ", "Ġdata", ".", "med", "X", "Ġ=", "Ġ", "4", "0", "0", "ĊĠĠĠ", "Ġdata", ".", "hard", "X", "Ġ=", "Ġ", "6", "0", "0", "ĊĠĠĠ", "Ġdata", ".", "enter", "Y", "Ġ=", "Ġ", "4", "5", "0", "ĊĠĠĠ", "Ġdata", ".", "dif", "S", "Ġ=", "Ġ", "4", "ĊĠĠĠ", "Ġdata", ".", "dif", "M", "Ġ=", "Ġ", "6", "ĊĠĠĠ", "Ġdata", ".", "dif", "H", "Ġ=", "Ġ", "8", "ĊĠĠĠ", "Ġdata", ".", "last", "Ġ=", "Ġ", "5", "0", "0", "ĊĠĠĠ", "Ġdata", ".", "enter", "X", "Ġ=", "Ġ", "5", "7", "5", "ĊĠĠĠ", "Ġdata", ".", "PUT", "Ġ=", "Ġ", "4", "5", "0", "ĊĠĠĠ", "Ġdata", ".", "RST", "Ġ=", "Ġ", "3", "5", "0", "ĊĠĠĠ", "Ġdata", ".", "Y", "ST", "Ġ=", "Ġ", "2", "5", "0", "ĊĊ", "Ċ", "################################", "####", "Ċ", "#", "Ġmode", "Ġdispatcher", "Ċ", "################################", "####", "ĊĊ", "Ċ", "def", "Ġmouse", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "splash", "Screen", "\":", "ĊĠĠĠĠĠĠĠ", "Ġsplash", "Screen", "Mouse", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "1", "Player", "\":", "ĊĠĠĠĠĠĠĠ", "Ġplayer", "Mouse", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "2", "Player", "\":", "ĊĠĠĠĠĠĠĠ", "Ġtwo", "Player", "Mouse", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "editor", "\":", "ĊĠĠĠĠĠĠĠ", "Ġeditor", "Mouse", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "level", "Created", "\":", "ĊĠĠĠĠĠĠĠ", "Ġlevel", "Created", "Mouse", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "AI", "\":", "ĊĠĠĠĠĠĠĠ", "ĠA", "IM", "ouse", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "difficulty", "\":", "ĊĠĠĠĠĠĠĠ", "Ġdifficulty", "Mouse", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "score", "board", "\":", "ĊĠĠĠĠĠĠĠ", "Ġscore", "board", "Mouse", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "help", "\":", "ĊĠĠĠĠĠĠĠ", "Ġhelp", "Mouse", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĊ", "Ċ", "def", "Ġkey", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "splash", "Screen", "\":", "ĊĠĠĠĠĠĠĠ", "Ġsplash", "Key", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "1", "Player", "\":", "ĊĠĠĠĠĠĠĠ", "Ġplayer", "Key", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "2", "Player", "\":", "ĊĠĠĠĠĠĠĠ", "Ġtwo", "Player", "Key", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "editor", "\":", "ĊĠĠĠĠĠĠĠ", "Ġeditor", "Key", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "level", "Created", "\":", "ĊĠĠĠĠĠĠĠ", "Ġlevel", "Created", "Key", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "AI", "\":", "ĊĠĠĠĠĠĠĠ", "ĠAI", "Key", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "difficulty", "\":", "ĊĠĠĠĠĠĠĠ", "Ġdifficulty", "Key", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "score", "board", "\":", "ĊĠĠĠĠĠĠĠ", "Ġscore", "board", "Key", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "help", "\":", "ĊĠĠĠĠĠĠĠ", "Ġhelp", "Key", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĊ", "Ċ", "def", "Ġtimer", "F", "ired", "(", "data", "):", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "splash", "Screen", "\":", "ĊĠĠĠĠĠĠĠ", "Ġsplash", "Screen", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "1", "Player", "\":", "ĊĠĠĠĠĠĠĠ", "Ġplayer", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "2", "Player", "\":", "ĊĠĠĠĠĠĠĠ", "Ġtwo", "Player", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "editor", "\":", "ĊĠĠĠĠĠĠĠ", "Ġeditor", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "level", "Created", "\":", "ĊĠĠĠĠĠĠĠ", "Ġlevel", "Created", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "AI", "\":", "ĊĠĠĠĠĠĠĠ", "ĠA", "IT", "imer", "F", "ired", "(", "data", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "difficulty", "\":", "ĊĠĠĠĠĠĠĠ", "Ġdifficulty", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "score", "board", "\":", "ĊĠĠĠĠĠĠĠ", "Ġscore", "board", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "help", "\":", "ĊĠĠĠĠĠĠĠ", "Ġhelp", "Timer", "F", "ired", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġredraw", "All", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "splash", "Screen", "\":", "ĊĠĠĠĠĠĠĠ", "Ġsplash", "Screen", "Red", "raw", "All", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "1", "Player", "\":", "ĊĠĠĠĠĠĠĠ", "Ġplayer", "Red", "raw", "All", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "2", "Player", "\":", "ĊĠĠĠĠĠĠĠ", "Ġtwo", "Player", "Red", "raw", "All", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "editor", "\":", "ĊĠĠĠĠĠĠĠ", "Ġeditor", "Red", "raw", "All", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "level", "Created", "\":", "ĊĠĠĠĠĠĠĠ", "Ġlevel", "Created", "Red", "raw", "All", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "AI", "\":", "ĊĠĠĠĠĠĠĠ", "ĠA", "IR", "ed", "raw", "All", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "difficulty", "\":", "ĊĠĠĠĠĠĠĠ", "Ġdifficulty", "Red", "raw", "All", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "score", "board", "\":", "ĊĠĠĠĠĠĠĠ", "Ġscore", "board", "Red", "raw", "All", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "help", "\":", "ĊĠĠĠĠĠĠĠ", "Ġhelp", "Red", "raw", "All", "(", "canvas", ",", "Ġdata", ")", "ĊĊ", "Ċ", "################################", "####", "Ċ", "#", "Ġsplash", "Screen", "Ġmode", "Ċ", "################################", "####", "Ċ", "def", "Ġsplash", "Screen", "Mouse", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġ#", "Ġchecks", "Ġfor", "Ġselection", "Ġof", "Ġmode", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "splash", "Button", "Y", "Ġ-", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "x", "Ġ<=", "Ġdata", ".", "splash", "Button", "Y", "Ġ+", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "p", "1", "Button", "X", "Ġ-", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "y", "Ġ<=", "Ġdata", ".", "p", "1", "Button", "X", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "mode", "Ġ=", "Ġ\"", "1", "Player", "\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "p", "2", "Button", "X", "Ġ-", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "y", "Ġ<=", "Ġdata", ".", "p", "2", "Button", "X", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "mode", "Ġ=", "Ġ\"", "2", "Player", "\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "ed", "Button", "Ġ-", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "y", "Ġ<=", "Ġdata", ".", "ed", "Button", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "mode", "Ġ=", "Ġ\"", "editor", "\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "diff", "Button", "Ġ-", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "y", "Ġ<=", "Ġdata", ".", "diff", "Button", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "mode", "Ġ=", "Ġ\"", "difficulty", "\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "help", "Button", "Ġ-", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "y", "Ġ<=", "Ġdata", ".", "help", "Button", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "mode", "Ġ=", "Ġ\"", "help", "\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "s", "board", "Button", "Ġ-", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "y", "Ġ<=", "Ġdata", ".", "s", "board", "Button", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "mode", "Ġ=", "Ġ\"", "score", "board", "\"", "ĊĊ", "Ċ", "def", "Ġsplash", "Key", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġpass", "ĊĊ", "Ċ", "def", "Ġsplash", "Screen", "Timer", "F", "ired", "(", "data", "):", "ĊĠĠĠ", "Ġdata", ".", "splash", "Screen", "Time", "Ġ+=", "Ġ", "1", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "splash", "Screen", "Time", "Ġ%", "Ġ", "2", "Ġ==", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠ", "Ġrain", "Drop", "Splash", "(", "data", ")", "ĊĠĠĠ", "Ġfor", "Ġdrop", "Ġin", "Ġdata", ".", "splash", "Screen", "D", "rops", ":", "ĊĠĠĠĠĠĠĠ", "Ġdrop", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġsplash", "Screen", "Buttons", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "splash", "Button", "Y", ",", "Ġdata", ".", "p", "1", "Button", "X", ",", "Ġimage", "=", "data", ".", "mode", "1", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "splash", "Button", "Y", ",", "Ġdata", ".", "p", "2", "Button", "X", ",", "Ġimage", "=", "data", ".", "mode", "2", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "splash", "Button", "Y", ",", "Ġdata", ".", "ed", "Button", ",", "Ġimage", "=", "data", ".", "mode", "3", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "splash", "Button", "Y", ",", "Ġdata", ".", "diff", "Button", ",", "Ġimage", "=", "data", ".", "mode", "4", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "splash", "Button", "Y", ",", "Ġdata", ".", "help", "Button", ",", "Ġimage", "=", "data", ".", "mode", "5", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "splash", "Button", "Y", ",", "Ġdata", ".", "s", "board", "Button", ",", "Ġimage", "=", "data", ".", "mode", "6", ")", "ĊĊ", "Ċ", "def", "Ġrain", "Drop", "Splash", "(", "data", "):", "ĊĠĠĠ", "Ġx", "Position", "Ġ=", "Ġrandom", ".", "randint", "(", "0", ",", "Ġ", "8", "0", "0", ")", "ĊĠĠĠ", "Ġdata", ".", "splash", "Screen", "D", "rops", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", ",", "Ġ", "0", "))", "ĊĊ", "Ċ", "def", "Ġsplash", "Screen", "Red", "raw", "All", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "splash", "Text", "Ġ-", "Ġ", "1", "0", ",", "Ġimage", "=", "data", ".", "title", ")", "ĊĠĠĠ", "Ġfor", "Ġdrop", "Ġin", "Ġdata", ".", "splash", "Screen", "D", "rops", ":", "ĊĠĠĠĠĠĠĠ", "Ġdrop", ".", "draw", "(", "canvas", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "width", "Ġ/", "Ġ", "2", ",", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "splash", "Text", ",", "ĊĠĠĠĠĠĠĠ", "Ġtext", "=\"", "\"\"", "ĊĠĠĠĠĠĠĠ", "1", ".)", "ĠSingle", "ĠPlayer", "ĠLevel", "ĠMode", "ĊĊĊĠĠĠĠĠĠĠ", "2", ".)", "ĠTwo", "-", "Player", "ĠMode", "ĊĊĠĠĠĠĠĠĠ", "ĊĠĠĠĠĠĠĠ", "3", ".)", "ĠLevel", "ĠCreator", "ĠPract", "ice", "ĠMode", "ĊĊĠĠĠĠĠĠĠ", "ĊĠĠĠĠĠĠĠ", "4", ".)", "ĠPlay", "ĠAgain", "st", "Ġthe", "ĠComputer", "ĊĊĠĠĠĠĠĠĠ", "ĊĠĠĠĠĠĠĠ", "5", ".)", "ĠHelp", "Ġand", "ĠInstructions", "ĊĊĠĠĠĠĠĠĠ", "ĊĠĠĠĠĠĠĠ", "6", ".)", "ĠScore", "board", "ĊĊĠĠĠĠĠĠĠ", "ĊĠĠĠĠĠĠ", "Ġ\"\"", "\",", "ĊĠĠĠĠĠĠĠ", "Ġfont", "=\"", "Arial", "Ġ", "1", "4", "Ġbold", "\",", "ĊĠĠĠĠĠĠĠ", "Ġfill", "=\"", "yellow", "\",", "ĊĠĠĠ", "Ġ)", "ĊĠĠĠ", "Ġsplash", "Screen", "Buttons", "(", "canvas", ",", "Ġdata", ")", "ĊĊ", "Ċ", "################################", "####", "Ċ", "#", "Ġtaken", "Ġfrom", "Ġclass", "Ġnotes", "Ċ", "################################", "####", "ĊĊ", "Ċ", "def", "Ġwrite", "File", "(", "path", ",", "Ġcontents", "):", "ĊĠĠĠ", "Ġwith", "Ġopen", "(", "path", ",", "Ġ\"", "wt", "\")", "Ġas", "Ġf", ":", "ĊĠĠĠĠĠĠĠ", "Ġf", ".", "write", "(", "contents", ")", "ĊĊ", "Ċ", "def", "ĠreadFile", "(", "path", "):", "ĊĠĠĠ", "Ġwith", "Ġopen", "(", "path", ",", "Ġ\"", "rt", "\")", "Ġas", "Ġf", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġf", ".", "read", "()", "ĊĊ", "Ċ", "################################", "####", "Ċ", "#", "Ġ", "1", "Player", "Ġmode", "Ċ", "################################", "####", "ĊĊ", "Ċ", "#", "ĠCo", "con", "uts", "Ġ(", "from", "ĠM", "ario", "Ġgame", ")", "Ġrepresent", "Ġthe", "Ġwater", "Ġdrops", "Ċ", "class", "ĠCo", "con", "uts", "(", "object", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġx", ",", "Ġy", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "x", "Ġ=", "Ġx", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "y", "Ġ=", "Ġy", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "r", "Ġ=", "Ġ", "9", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "fill", "Ġ=", "Ġ\"", "deep", "Ġsky", "Ġblue", "\"", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "speed", "Ġ=", "Ġ", "3", "0", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "outline", "Ġ=", "Ġ\"", "blue", "\"", "ĊĊĠĠĠ", "Ġdef", "Ġdraw", "(", "self", ",", "Ġcanvas", "):", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "polygon", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "x", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "y", "Ġ-", "Ġ", "2", "Ġ*", "Ġself", ".", "r", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "x", "Ġ-", "Ġself", ".", "r", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "y", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "x", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "y", "Ġ+", "Ġself", ".", "r", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "x", "Ġ+", "Ġself", ".", "r", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "y", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfill", "=", "self", ".", "fill", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġoutline", "=", "self", ".", "outline", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġwidth", "=", "3", ",", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĊĠĠĠ", "Ġdef", "Ġon", "Timer", "F", "ired", "(", "self", ",", "Ġdata", "):", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġdown", "ward", "Ġfalling", "Ġmotion", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "y", "Ġ+=", "Ġself", ".", "speed", "ĊĊ", "Ċ", "def", "Ġhit", "(", "data", "):", "ĊĠĠĠ", "Ġ#", "Ġchecks", "Ġfor", "Ġhitting", "Ġrain", "ĊĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "1", "Player", "\"", "Ġor", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "level", "Created", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġco", "con", "ut", ".", "y", "Ġ>=", "Ġdata", ".", "cy", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġco", "con", "ut", ".", "y", "Ġ<=", "Ġdata", ".", "cy", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġco", "con", "ut", ".", "x", "Ġ>=", "Ġdata", ".", "cx", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġco", "con", "ut", ".", "x", "Ġ<=", "Ġdata", ".", "cx", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "cy", "Ġ+=", "Ġdata", ".", "hit", "Pen", "alty", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "level", "Created", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "li", "ves", "Ġ-=", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġdata", ".", "hit", "Ġ==", "ĠFalse", "Ġand", "Ġdata", ".", "level", "Ġ<", "Ġdata", ".", "level", "Max", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "score", "Ġ-=", "Ġdata", ".", "level", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", ".", "remove", "(", "co", "con", "ut", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "level", "Created", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "level", "Editor", "L", "ives", "Ġ-=", "Ġ", "1", "ĊĊ", "Ċ", "def", "Ġhit", "2", "Player", "(", "data", "):", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "2", "Player", "\":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "Inv", "inc", "ible", "1", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġonly", "Ġwhen", "Ġpower", "up", "Ġisn", "'t", "Ġactive", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġco", "con", "ut", ".", "y", "Ġ>=", "Ġdata", ".", "player", "1", "Y", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġco", "con", "ut", ".", "y", "Ġ<=", "Ġdata", ".", "player", "1", "Y", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġco", "con", "ut", ".", "x", "Ġ>=", "Ġdata", ".", "player", "1", "X", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġco", "con", "ut", ".", "x", "Ġ<=", "Ġdata", ".", "player", "1", "X", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "player", "1", "Y", "Ġ+=", "Ġdata", ".", "hit", "Pen", "alty", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "1", ".", "remove", "(", "co", "con", "ut", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "Inv", "inc", "ible", "2", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġonly", "Ġwhen", "Ġpower", "up", "Ġisn", "'t", "Ġactive", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", "2", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġco", "con", "ut", ".", "y", "Ġ>=", "Ġdata", ".", "player", "2", "Y", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġco", "con", "ut", ".", "y", "Ġ<=", "Ġdata", ".", "player", "2", "Y", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġco", "con", "ut", ".", "x", "Ġ>=", "Ġdata", ".", "player", "2", "X", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġco", "con", "ut", ".", "x", "Ġ<=", "Ġdata", ".", "player", "2", "X", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "player", "2", "Y", "Ġ+=", "Ġdata", ".", "hit", "Pen", "alty", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "2", ".", "remove", "(", "co", "con", "ut", ")", "ĊĊ", "Ċ", "class", "ĠPower", "U", "ps", "(", "Co", "con", "uts", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġx", ",", "Ġy", "):", "ĊĠĠĠĠĠĠĠ", "Ġsuper", "().__", "init", "__(", "x", ",", "Ġy", ")", "ĊĊĠĠĠ", "Ġdef", "Ġdraw", "(", "self", ",", "Ġcanvas", ",", "Ġdata", "):", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "self", ".", "x", ",", "Ġself", ".", "y", ",", "Ġimage", "=", "data", ".", "hour", "G", "lass", ")", "ĊĊ", "Ċ", "def", "Ġhit", "Pause", "(", "data", "):", "ĊĠĠĠ", "Ġ#", "Ġchecks", "Ġif", "Ġhits", "Ġhour", "-", "glass", "Ġ&", "Ġpause", "s", "Ġwith", "Ġflag", "ĊĠĠĠ", "Ġfor", "Ġpower", "Up", "Ġin", "Ġdata", ".", "power", "U", "ps", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "1", "Player", "\"", "Ġor", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "level", "Created", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġpower", "Up", ".", "y", "Ġ>=", "Ġdata", ".", "cy", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġpower", "Up", ".", "y", "Ġ<=", "Ġdata", ".", "cy", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġpower", "Up", ".", "x", "Ġ>=", "Ġdata", ".", "cx", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġpower", "Up", ".", "x", "Ġ<=", "Ġdata", ".", "cx", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "pause", "D", "rops", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "start", "Ġ=", "Ġdata", ".", "cy", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "power", "U", "ps", ".", "remove", "(", "power", "Up", ")", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "2", "Player", "\"", "Ġor", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "AI", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġpower", "Up", ".", "y", "Ġ>=", "Ġdata", ".", "player", "1", "Y", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġpower", "Up", ".", "y", "Ġ<=", "Ġdata", ".", "player", "1", "Y", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġpower", "Up", ".", "x", "Ġ>=", "Ġdata", ".", "player", "1", "X", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġpower", "Up", ".", "x", "Ġ<=", "Ġdata", ".", "player", "1", "X", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "pause", "1", "Drop", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "start", "1", "Ġ=", "Ġdata", ".", "player", "1", "Y", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "power", "U", "ps", ".", "remove", "(", "power", "Up", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġpower", "Up", ".", "y", "Ġ>=", "Ġdata", ".", "player", "2", "Y", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġpower", "Up", ".", "y", "Ġ<=", "Ġdata", ".", "player", "2", "Y", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġpower", "Up", ".", "x", "Ġ>=", "Ġdata", ".", "player", "2", "X", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġpower", "Up", ".", "x", "Ġ<=", "Ġdata", ".", "player", "2", "X", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "pause", "2", "Drop", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "start", "2", "Ġ=", "Ġdata", ".", "player", "2", "Y", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "power", "U", "ps", ".", "remove", "(", "power", "Up", ")", "ĊĊ", "Ċ", "class", "ĠInv", "inc", "ible", "(", "Power", "U", "ps", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġx", ",", "Ġy", "):", "ĊĠĠĠĠĠĠĠ", "Ġsuper", "().__", "init", "__(", "x", ",", "Ġy", ")", "ĊĊĠĠĠ", "Ġdef", "Ġdraw", "(", "self", ",", "Ġcanvas", ",", "Ġdata", "):", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "self", ".", "x", ",", "Ġself", ".", "y", ",", "Ġimage", "=", "data", ".", "umb", "rella", ")", "ĊĊ", "Ċ", "def", "Ġhit", "Inv", "inc", "ible", "(", "data", "):", "ĊĠĠĠ", "Ġ#", "Ġchecks", "Ġif", "Ġhits", "Ġ", "umb", "rella", "Ġpower", "up", "ĊĠĠĠ", "Ġfor", "Ġpower", "Up", "Ġin", "Ġdata", ".", "inv", "inc", "ible", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "1", "Player", "\"", "Ġor", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "level", "Created", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġpower", "Up", ".", "y", "Ġ>=", "Ġdata", ".", "cy", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġpower", "Up", ".", "y", "Ġ<=", "Ġdata", ".", "cy", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġpower", "Up", ".", "x", "Ġ>=", "Ġdata", ".", "cx", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġpower", "Up", ".", "x", "Ġ<=", "Ġdata", ".", "cx", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "be", "Inv", "inc", "ible", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "start", "Ġ=", "Ġdata", ".", "cy", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "inv", "inc", "ible", ".", "remove", "(", "power", "Up", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "2", "Player", "\"", "Ġor", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "AI", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġfor", "Ġplayer", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġpower", "Up", ".", "y", "Ġ>=", "Ġdata", ".", "player", "1", "Y", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġpower", "Up", ".", "y", "Ġ<=", "Ġdata", ".", "player", "1", "Y", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġpower", "Up", ".", "x", "Ġ>=", "Ġdata", ".", "player", "1", "X", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġpower", "Up", ".", "x", "Ġ<=", "Ġdata", ".", "player", "1", "X", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "Inv", "inc", "ible", "1", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "start", "1", "Ġ=", "Ġdata", ".", "player", "1", "Y", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "inv", "inc", "ible", ".", "remove", "(", "power", "Up", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġfor", "Ġplayer", "Ġ", "2", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġpower", "Up", ".", "y", "Ġ>=", "Ġdata", ".", "player", "2", "Y", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġpower", "Up", ".", "y", "Ġ<=", "Ġdata", ".", "player", "2", "Y", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġpower", "Up", ".", "x", "Ġ>=", "Ġdata", ".", "player", "2", "X", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġpower", "Up", ".", "x", "Ġ<=", "Ġdata", ".", "player", "2", "X", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "Inv", "inc", "ible", "2", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "start", "2", "Ġ=", "Ġdata", ".", "player", "2", "Y", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "inv", "inc", "ible", ".", "remove", "(", "power", "Up", ")", "ĊĊ", "Ċ", "class", "ĠSc", "ary", "Bug", "(", "object", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġx", ",", "Ġy", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "x", "Ġ=", "Ġx", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "y", "Ġ=", "Ġy", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "speed", "Ġ=", "Ġ", "2", "5", "ĊĊĠĠĠ", "Ġdef", "Ġdraw", "(", "self", ",", "Ġcanvas", ",", "Ġdata", "):", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "self", ".", "x", ",", "Ġself", ".", "y", ",", "Ġimage", "=", "data", ".", "spider", ")", "ĊĊĠĠĠ", "Ġdef", "Ġon", "Timer", "F", "ired", "(", "self", ",", "Ġdata", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "2", "Player", "\"", "Ġor", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "AI", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "speed", "Ġ=", "Ġ", "3", "5", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "y", "Ġ-=", "Ġself", ".", "speed", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "1", "Player", "\"", "Ġor", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "level", "Created", "\"", "Ġand", "Ġdata", ".", "time", "Ġ%", "Ġ", "8", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġmakes", "Ġsp", "ider", "Ġdynamically", "Ġmove", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġside", "Ġ=", "Ġrandom", ".", "choice", "(", "data", ".", "sides", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġside", "Ġ==", "Ġ\"", "l", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "x", "Ġ-", "Ġdata", ".", "lane", "Ġ>=", "Ġdata", ".", "Player", "1", "Min", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "x", "Ġ-=", "Ġdata", ".", "lane", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "x", "Ġ+=", "Ġdata", ".", "lane", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġside", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "x", "Ġ+", "Ġdata", ".", "lane", "Ġ<=", "Ġdata", ".", "Player", "1", "Max", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "x", "Ġ+=", "Ġdata", ".", "lane", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "x", "Ġ-=", "Ġdata", ".", "lane", "ĊĊ", "Ċ", "def", "Ġhit", "Sc", "ary", "Bug", "(", "data", "):", "ĊĠĠĠ", "Ġ#", "Ġchecks", "Ġfor", "Ġautomatic", "Ġdeath", "Ġby", "Ġsp", "ider", "ĊĠĠĠ", "Ġfor", "Ġbug", "Ġin", "Ġdata", ".", "sc", "ary", "Bug", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "1", "Player", "\"", "Ġor", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "level", "Created", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġbug", ".", "y", "Ġ>=", "Ġdata", ".", "cy", "Ġ-", "Ġ", "1", ".", "5", "Ġ*", "Ġdata", ".", "r", "Ġand", "Ġbug", ".", "y", "Ġ<=", "Ġdata", ".", "cy", "Ġ+", "Ġ", "1", ".", "5", "Ġ*", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġbug", ".", "x", "Ġ>=", "Ġdata", ".", "cx", "Ġ-", "Ġ", "1", ".", "5", "Ġ*", "Ġdata", ".", "r", "Ġand", "Ġbug", ".", "x", "Ġ<=", "Ġdata", ".", "cx", "Ġ+", "Ġ", "1", ".", "5", "Ġ*", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "hit", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "li", "ves", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "level", "Editor", "L", "ives", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "2", "Player", "\"", "Ġor", "Ġdata", ".", "mode", "Ġ==", "Ġ\"", "AI", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġbug", ".", "y", "Ġ>=", "Ġdata", ".", "player", "1", "Y", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġbug", ".", "y", "Ġ<=", "Ġdata", ".", "player", "1", "Y", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġbug", ".", "x", "Ġ>=", "Ġdata", ".", "player", "1", "X", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġbug", ".", "x", "Ġ<=", "Ġdata", ".", "player", "1", "X", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "winner", "Ġ=", "Ġ\"", "player", "2", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġbug", ".", "y", "Ġ>=", "Ġdata", ".", "player", "2", "Y", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġbug", ".", "y", "Ġ<=", "Ġdata", ".", "player", "2", "Y", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġbug", ".", "x", "Ġ>=", "Ġdata", ".", "player", "2", "X", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġbug", ".", "x", "Ġ<=", "Ġdata", ".", "player", "2", "X", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "winner", "Ġ=", "Ġ\"", "player", "1", "\"", "ĊĊ", "Ċ", "def", "Ġdraw", "Power", "ups", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġfor", "Ġbug", "Ġin", "Ġdata", ".", "sc", "ary", "Bug", ":", "ĊĠĠĠĠĠĠĠ", "Ġbug", ".", "draw", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġfor", "Ġpower", "Up", "Ġin", "Ġdata", ".", "power", "U", "ps", ":", "ĊĠĠĠĠĠĠĠ", "Ġpower", "Up", ".", "draw", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġfor", "Ġpower", "Up", "Ġin", "Ġdata", ".", "inv", "inc", "ible", ":", "ĊĠĠĠĠĠĠĠ", "Ġpower", "Up", ".", "draw", "(", "canvas", ",", "Ġdata", ")", "ĊĊ", "Ċ", "def", "Ġdraw", "Home", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġ#", "Ġhome", "Ġbutton", "Ġin", "Ġevery", "Ġscreen", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "home", "X", ",", "Ġdata", ".", "home", "Y", ",", "Ġimage", "=", "data", ".", "home", ")", "ĊĊ", "Ċ", "def", "Ġcheck", "Home", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "home", "Y", "Ġ-", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "y", "Ġ<=", "Ġdata", ".", "home", "Y", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "home", "X", "Ġ-", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "x", "Ġ<=", "Ġdata", ".", "home", "X", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġinit", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġco", "con", "ut", "Shot", "(", "data", "):", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "level", "Ġ>", "Ġ", "0", "Ġand", "Ġdata", ".", "pause", "D", "rops", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġint", "(", "data", ".", "level", "Max", "Ġ/", "Ġdata", ".", "level", ")", "Ġ==", "Ġ", "0", "Ġor", "Ġdata", ".", "time", "Ġ%", "Ġ", "6", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġincreases", "Ġdrops", "Ġas", "Ġlevel", "Ġincreases", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġx", "Position", "1", "Ġ=", "Ġrandom", ".", "randint", "(", "0", ",", "Ġdata", ".", "Player", "1", "Min", "Ġ-", "Ġdata", ".", "buffer", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġx", "Position", "2", "Ġ=", "Ġrandom", ".", "randint", "(", "data", ".", "Player", "1", "Max", "Ġ+", "Ġdata", ".", "buffer", ",", "Ġdata", ".", "width", "Ġ+", "Ġdata", ".", "buffer", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "1", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "2", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġx", "Position", "4", "Ġ=", "Ġrandom", ".", "randint", "(", "data", ".", "Player", "1", "Min", "Ġ-", "Ġdata", ".", "buffer", ",", "Ġdata", ".", "Player", "1", "Max", "Ġ+", "Ġdata", ".", "buffer", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "4", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "5", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġx", "Position", "3", "Ġ=", "Ġrandom", ".", "randint", "(", "0", ",", "Ġdata", ".", "Player", "1", "Min", "Ġ-", "Ġdata", ".", "buffer", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "3", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġint", "(", "2", "4", "Ġ/", "Ġdata", ".", "level", ")", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġside", "Ġ=", "Ġrandom", ".", "choice", "(", "data", ".", "sides", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġside", "Ġ==", "Ġ\"", "l", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", ".", "append", "(", "Co", "con", "uts", "(", "data", ".", "Player", "1", "Min", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġside", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", ".", "append", "(", "Co", "con", "uts", "(", "data", ".", "Player", "1", "Max", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġpower", "Up", "Co", "con", "ut", "Shot", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġpower", "Up", "Co", "con", "ut", "Shot", "(", "data", "):", "ĊĠĠĠ", "Ġ#", "Ġadds", "Ġpower", "U", "ps", "ĊĠĠĠ", "Ġ#", "Ġmagic", "Ġ#", "s", "Ġto", "allow", "Ġfor", "Ġpower", "ups", "Ġto", "Ġbe", "Ġadded", "Ġat", "Ġdifferent", "Ġtimes", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "6", "0", "Ġ==", "Ġ", "0", "Ġand", "Ġdata", ".", "time", "Ġ%", "Ġ", "1", "2", "0", "Ġ!=", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "ĠPosition", "Ġ=", "Ġrandom", ".", "choice", "(", "data", ".", "spot", "List", ")", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "power", "U", "ps", ".", "append", "(", "Power", "U", "ps", "(", "Position", ",", "Ġ", "0", "))", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "5", "0", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "ĠPosition", "Ġ=", "Ġrandom", ".", "choice", "(", "data", ".", "spot", "List", ")", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "inv", "inc", "ible", ".", "append", "(", "Inv", "inc", "ible", "(", "Position", ",", "Ġ", "0", "))", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "1", "0", "0", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "ĠPosition", "Ġ=", "Ġrandom", ".", "choice", "(", "data", ".", "spot", "List", ")", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "sc", "ary", "Bug", ".", "append", "(", "Sc", "ary", "Bug", "(", "Position", ",", "Ġ", "7", "5", "0", "))", "ĊĊ", "Ċ", "def", "Ġplayer", "Key", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "level", "Ġ<", "Ġdata", ".", "level", "Max", "Ġand", "Ġevent", ".", "keys", "ym", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠ", "Ġinit", "(", "data", ")", "ĊĠĠĠ", "Ġif", "Ġ(", "event", ".", "keys", "ym", "Ġ==", "Ġ\"", "Left", "\")", "Ġand", "Ġdata", ".", "cx", "Ġ>=", "Ġdata", ".", "Player", "1", "Min", "Ġ+", "Ġ(", "data", ".", "lane", "Ġ/", "Ġ", "2", "):", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "cx", "Ġ-=", "Ġ(", "data", ".", "lane", ")", "Ġ/", "Ġ", "2", "ĊĠĠĠ", "Ġelif", "Ġ(", "event", ".", "keys", "ym", "Ġ==", "Ġ\"", "Right", "\")", "Ġand", "Ġdata", ".", "cx", "Ġ<=", "Ġdata", ".", "Player", "1", "Max", ":", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "cx", "Ġ+=", "Ġ(", "data", ".", "lane", ")", "Ġ/", "Ġ", "2", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "level", "Ġ>=", "Ġdata", ".", "level", "Max", ":", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġenter", "Ġname", "Ġfor", "Ġscore", "board", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "event", ".", "keys", "ym", ")", "Ġ==", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "data", ".", "name", ")", "Ġ<", "Ġ", "1", "5", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "name", "Ġ+=", "Ġevent", ".", "keys", "ym", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġevent", ".", "keys", "ym", "Ġ==", "Ġ\"", "Back", "Space", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "name", "Ġ=", "Ġdata", ".", "name", "[", "0", ":-", "1", "]", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġevent", ".", "keys", "ym", "Ġ==", "Ġ\"", "Return", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "score", "List", "Ġ+=", "Ġ(", "data", ".", "score", ",", "Ġdata", ".", "name", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġsaves", "Ġfile", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġwrite", "File", "(\"", "score", ".", "txt", "\",", "Ġdata", ".", "saved", "Scores", "Ġ+", "Ġstr", "(", "data", ".", "score", ")", "Ġ+", "Ġ\",\"", "Ġ+", "Ġdata", ".", "name", "Ġ+", "Ġ\"\\", "n", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "mode", "Ġ=", "Ġ\"", "score", "board", "\"", "ĊĊ", "Ċ", "def", "Ġplayer", "Mouse", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġcheck", "Home", "(", "event", ",", "Ġdata", ")", "ĊĊ", "Ċ", "def", "Ġplayer", "Timer", "F", "ired", "(", "data", "):", "ĊĠĠĠ", "Ġ#", "Ġactually", "Ġpause", "s", ",", "Ġand", "Ġmoves", "Ġdrops", "/", "player", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "hit", "Ġ==", "ĠFalse", "Ġand", "Ġdata", ".", "level", "Ġ<", "Ġdata", ".", "level", "Max", ":", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "cy", "Ġ-=", "Ġdata", ".", "speed", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "5", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "score", "Ġ+=", "Ġdata", ".", "level", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "cy", "Ġ<", "Ġ", "1", "5", ":", "Ġ", "Ġ#", "Ġbasically", "Ġmade", "Ġit", "Ġto", "Ġthe", "Ġtop", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "level", "Ġ+=", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "cy", "Ġ=", "Ġdata", ".", "Player", "1", "Max", "Ġ+", "Ġ", "1", "0", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "speed", "Ġ+=", "Ġ", "2", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "cy", "Ġ>", "Ġ", "4", "0", ":", "Ġ", "Ġ#", "Ġso", "Ġdrops", "Ġyou", "Ġcan", "'t", "Ġsee", "Ġdon", "'t", "Ġhit", "Ġyou", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "time", "Ġ+=", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "D", "rops", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġco", "con", "ut", "Shot", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġpower", "Up", "Ġin", "Ġdata", ".", "power", "U", "ps", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpower", "Up", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġhit", "Pause", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġpower", "Up", "Ġin", "Ġdata", ".", "inv", "inc", "ible", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpower", "Up", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġhit", "Inv", "inc", "ible", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġbug", "Ġin", "Ġdata", ".", "sc", "ary", "Bug", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġbug", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġhit", "Sc", "ary", "Bug", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġonly", "Ġwant", "Ġdrops", "Ġto", "Ġmove", "Ġif", "Ġnot", "Ġpaused", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "D", "rops", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġco", "con", "ut", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "be", "Inv", "inc", "ible", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġhit", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "start", "Ġ!=", "ĠNone", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġabs", "(", "data", ".", "start", "Ġ-", "Ġdata", ".", "cy", ")", "Ġ>=", "Ġ", "1", "2", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġto", "Ġlimit", "Ġtime", "Ġfor", "Ġpower", "ups", "Ġto", "Ġbe", "Ġactive", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "pause", "D", "rops", ",", "Ġdata", ".", "be", "Inv", "inc", "ible", "Ġ=", "ĠFalse", ",", "ĠFalse", "ĊĊ", "Ċ", "def", "Ġplayer", "Red", "raw", "All", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġ#", "Ġmagic", "Ġ#", "s", "Ġmainly", "Ġfor", "Ġscreen", "Ġplacement", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "background", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "line", "(", "0", ",", "Ġ", "2", "0", ",", "Ġdata", ".", "width", ",", "Ġ", "2", "0", ")", "ĊĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", ":", "ĊĠĠĠĠĠĠĠ", "Ġco", "con", "ut", ".", "draw", "(", "canvas", ")", "ĊĠĠĠ", "Ġdraw", "Power", "ups", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "cx", ",", "Ġdata", ".", "cy", ",", "Ġimage", "=", "data", ".", "lad", "y", "Bug", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "6", ",", "Ġ", "5", "0", ",", "Ġtext", "=\"", "Level", ":", "Ġ%", "d", "\"", "Ġ%", "Ġdata", ".", "level", ",", "Ġfont", "=\"", "Arial", "Ġ", "1", "8", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "6", ",", "Ġ", "8", "0", ",", "Ġtext", "=\"", "Score", ":", "Ġ%", "d", "\"", "Ġ%", "Ġdata", ".", "score", ",", "Ġfont", "=\"", "Arial", "Ġ", "1", "8", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "ĊĠĠĠĠĠĠĠĠ", "2", "Ġ*", "Ġdata", ".", "width", "Ġ/", "Ġ", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "6", "6", "0", ",", "ĊĠĠĠĠĠĠĠ", "Ġtext", "=\"", "\"\"", "The", "Ġgreater", "Ġthe", "Ġlevel", ",", "Ġthe", "Ġmore", "Ġpoints", "Ġget", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġadded", "Ġto", "Ġyour", "Ġscore", "!", "\"\"\",", "ĊĠĠĠĠĠĠĠ", "Ġfont", "=\"", "Arial", "Ġ", "1", "5", "Ġbold", "\",", "ĊĠĠĠĠĠĠĠ", "Ġfill", "=\"", "yellow", "\",", "ĊĠĠĠ", "Ġ)", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "hit", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "rectangle", "(", "0", ",", "Ġ", "0", ",", "Ġdata", ".", "width", ",", "Ġdata", ".", "height", ",", "Ġfill", "=\"", "black", "\")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "dead", "Screen", ")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "4", ",", "Ġtext", "=\"", "You", "ĠL", "ose", "!", "ĠBetter", "ĠL", "uck", "ĠNext", "ĠTime", "!\",", "Ġfont", "=\"", "Helvetica", "Ġ", "2", "3", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\"", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġ", "2", "8", "0", ",", "Ġtext", "=\"", "Score", ":", "Ġ%", "d", "\"", "Ġ%", "Ġdata", ".", "score", ",", "Ġfont", "=\"", "Arial", "Ġ", "1", "3", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "level", "Ġ>=", "Ġ", "8", ":", "ĊĠĠĠĠĠĠĠ", "Ġmade", "It", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġdraw", "Home", "(", "canvas", ",", "Ġdata", ")", "ĊĊ", "Ċ", "def", "Ġmade", "It", "(", "canvas", ",", "Ġdata", "):", "Ġ", "Ġ#", "Ġmagic", "Ġ#", "s", "Ġmainly", "Ġfor", "Ġscreen", "Ġplacement", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "rectangle", "(", "0", ",", "Ġ", "0", ",", "Ġdata", ".", "width", ",", "Ġdata", ".", "height", ",", "Ġfill", "=\"", "black", "\")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "win", "Screen", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "3", "0", "0", ",", "Ġ", "3", "2", "0", ",", "Ġimage", "=", "data", ".", "win", "Bug", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġ", "7", "0", ",", "Ġtext", "=\"", "You", "ĠMade", "Ġit", "!\",", "Ġfont", "=\"", "Arial", "Ġ", "2", "3", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġ", "1", "0", "0", ",", "Ġtext", "=\"", "Score", ":", "Ġ%", "d", "\"", "Ġ%", "Ġdata", ".", "score", ",", "Ġfont", "=\"", "Arial", "Ġ", "1", "5", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġ", "3", "7", "5", ",", "Ġtext", "=\"", "Con", "gr", "ats", "!", "ĠEnter", "Ġyour", "ĠName", "!\",", "Ġfont", "=\"", "Arial", "Ġ", "1", "5", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "rectangle", "(", "data", ".", "width", "Ġ/", "Ġ", "2", "Ġ-", "Ġ", "5", "0", ",", "Ġ", "4", "0", "0", ",", "Ġdata", ".", "width", "Ġ/", "Ġ", "2", "Ġ+", "Ġ", "5", "0", ",", "Ġ", "4", "5", "0", ",", "Ġfill", "=\"", "white", "\")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġ", "4", "2", "5", ",", "Ġtext", "=", "data", ".", "name", ")", "ĊĊ", "Ċ", "################################", "####", "Ċ", "#", "Ġ", "2", "Player", "Ġmode", "Ċ", "################################", "####", "Ċ", "def", "Ġdrop", "2", "Player", "(", "data", "):", "ĊĠĠĠ", "Ġ#", "Ġadds", "Ġdrops", "Ġwhen", "Ġnot", "Ġpaused", "ĊĠĠĠ", "Ġ#", "Ġmagic", "Ġ#", "s", "Ġare", "Ġposition", "Ġof", "Ġwhere", "Ġdrops", "Ġare", "Ġstarting", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "winner", "Ġ==", "ĠNone", "Ġand", "Ġdata", ".", "pause", "D", "rops", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "1", "5", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġx", "Position", "1", "Ġ=", "Ġrandom", ".", "randint", "(", "0", ",", "Ġ", "3", "8", "5", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġabs", "(", "x", "Position", "1", "Ġ-", "Ġ", "1", "0", "0", ")", "Ġ>", "Ġ", "2", "5", "Ġand", "Ġabs", "(", "x", "Position", "1", "Ġ-", "Ġ", "3", "6", "0", ")", "Ġ>", "Ġ", "2", "5", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġso", "Ġrandom", "Ġdrops", "Ġdon", "'t", "Ġinterf", "ere", "Ġwith", "Ġthe", "Ġlane", "Ġones", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "1", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "1", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "1", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "2", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "2", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "1", "Ġ+", "Ġ", "4", "1", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "1", "2", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġside", "Ġ=", "Ġrandom", ".", "choice", "(", "data", ".", "sides", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġside", "Ġ==", "Ġ\"", "l", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "1", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "1", ".", "append", "(", "Co", "con", "uts", "(", "1", "4", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "2", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "2", ".", "append", "(", "Co", "con", "uts", "(", "5", "4", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġside", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "1", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "1", ".", "append", "(", "Co", "con", "uts", "(", "3", "4", "4", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "2", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "2", ".", "append", "(", "Co", "con", "uts", "(", "7", "5", "5", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġpower", "up", "Drop", "2", "Player", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġpower", "up", "Drop", "2", "Player", "(", "data", "):", "ĊĠĠĠ", "Ġ#", "Ġadds", "Ġpower", "ups", "Ġon", "Ġboth", "Ġscreens", "Ġ(", "in", "Ġthe", "Ġsame", "Ġposition", ")", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "4", "5", "Ġ==", "Ġ", "0", "Ġand", "Ġdata", ".", "time", "Ġ%", "Ġ", "9", "0", "Ġ!=", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġrandomize", "Ġplacement", "ĊĠĠĠĠĠĠĠ", "Ġside", "Ġ=", "Ġrandom", ".", "choice", "(", "data", ".", "sides", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġside", "Ġ==", "Ġ\"", "l", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "1", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "power", "U", "ps", ".", "append", "(", "Power", "U", "ps", "(", "1", "4", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "2", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "power", "U", "ps", ".", "append", "(", "Power", "U", "ps", "(", "5", "4", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġside", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "1", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "power", "U", "ps", ".", "append", "(", "Power", "U", "ps", "(", "3", "4", "4", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "2", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "power", "U", "ps", ".", "append", "(", "Power", "U", "ps", "(", "7", "5", "5", ",", "Ġ", "0", "))", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "6", "0", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġside", "Ġ=", "Ġrandom", ".", "choice", "(", "data", ".", "sides", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġside", "Ġ==", "Ġ\"", "l", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "1", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "inv", "inc", "ible", ".", "append", "(", "Inv", "inc", "ible", "(", "1", "4", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "2", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "inv", "inc", "ible", ".", "append", "(", "Inv", "inc", "ible", "(", "5", "4", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġside", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "1", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "inv", "inc", "ible", ".", "append", "(", "Inv", "inc", "ible", "(", "3", "4", "4", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "2", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "inv", "inc", "ible", ".", "append", "(", "Inv", "inc", "ible", "(", "7", "5", "5", ",", "Ġ", "0", "))", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "9", "0", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġside", "Ġ=", "Ġrandom", ".", "choice", "(", "data", ".", "sides", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġside", "Ġ==", "Ġ\"", "l", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "sc", "ary", "Bug", ".", "append", "(", "Sc", "ary", "Bug", "(", "1", "4", "0", ",", "Ġ", "7", "5", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "sc", "ary", "Bug", ".", "append", "(", "Sc", "ary", "Bug", "(", "5", "4", "0", ",", "Ġ", "7", "5", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġside", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "sc", "ary", "Bug", ".", "append", "(", "Sc", "ary", "Bug", "(", "3", "4", "4", ",", "Ġ", "7", "5", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "sc", "ary", "Bug", ".", "append", "(", "Sc", "ary", "Bug", "(", "7", "5", "5", ",", "Ġ", "7", "5", "0", "))", "ĊĊ", "Ċ", "def", "Ġtwo", "Player", "Key", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġ#", "Ġcontrollers", "Ġfor", "Ġboth", "Ġbugs", "ĊĠĠĠ", "Ġif", "Ġevent", ".", "keys", "ym", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠ", "Ġinit", "(", "data", ")", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "winner", "Ġ==", "ĠNone", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġ(", "event", ".", "keys", "ym", "Ġ==", "Ġ\"", "a", "\")", "Ġand", "Ġdata", ".", "on", "Left", "1", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "on", "Left", "1", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "player", "1", "X", "Ġ=", "Ġ", "1", "5", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġ(", "event", ".", "keys", "ym", "Ġ==", "Ġ\"", "d", "\")", "Ġand", "Ġdata", ".", "on", "Left", "1", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "on", "Left", "1", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "player", "1", "X", "Ġ=", "Ġ", "3", "3", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġ(", "event", ".", "keys", "ym", "Ġ==", "Ġ\"", "Left", "\")", "Ġand", "Ġdata", ".", "on", "Left", "2", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "on", "Left", "2", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "player", "2", "X", "Ġ=", "Ġ", "5", "5", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġ(", "event", ".", "keys", "ym", "Ġ==", "Ġ\"", "Right", "\")", "Ġand", "Ġdata", ".", "on", "Left", "2", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "on", "Left", "2", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "player", "2", "X", "Ġ=", "Ġ", "7", "5", "0", "ĊĊ", "Ċ", "def", "Ġtwo", "Player", "Mouse", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġcheck", "Home", "(", "event", ",", "Ġdata", ")", "ĊĊ", "Ċ", "def", "Ġtwo", "Player", "Timer", "F", "ired", "(", "data", "):", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "winner", "Ġ==", "ĠNone", ":", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "player", "1", "Y", "Ġ-=", "Ġdata", ".", "speed", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġ<", "1", "5", "Ġsign", "ifies", "Ġthat", "Ġl", "ady", "Ġbug", "Ġreached", "Ġthe", "Ġtop", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "player", "1", "Y", "Ġ<", "Ġ", "1", "5", "Ġand", "Ġdata", ".", "player", "2", "Y", "Ġ>", "Ġ", "1", "5", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "winner", "Ġ=", "Ġ\"", "player", "1", "\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "player", "1", "Y", "Ġ>", "Ġ", "4", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "time", "Ġ+=", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdrop", "2", "Player", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "player", "2", "Y", "Ġ-=", "Ġdata", ".", "speed", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "player", "2", "Y", "Ġ<", "Ġ", "1", "5", "Ġand", "Ġdata", ".", "player", "1", "Y", "Ġ>", "Ġ", "1", "5", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "winner", "Ġ=", "Ġ\"", "player", "2", "\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "player", "2", "Y", "Ġ>", "Ġ", "4", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "time", "Ġ+=", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdrop", "2", "Player", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "player", "1", "Y", "Ġ<", "Ġ", "1", "5", "Ġand", "Ġdata", ".", "player", "2", "Y", "Ġ<", "Ġ", "1", "5", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "winner", "Ġ=", "Ġ\"", "tie", "\"", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġpower", "Up", "Ġin", "Ġdata", ".", "power", "U", "ps", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpower", "Up", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġhit", "Pause", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġpower", "Up", "Ġin", "Ġdata", ".", "inv", "inc", "ible", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpower", "Up", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġhit", "Inv", "inc", "ible", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġbug", "Ġin", "Ġdata", ".", "sc", "ary", "Bug", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġbug", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġhit", "Sc", "ary", "Bug", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġpower", "up", "Timer", "F", "ired", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġpower", "up", "Timer", "F", "ired", "(", "data", "):", "ĊĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", "1", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "1", "Drop", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġco", "con", "ut", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠ", "Ġhit", "2", "Player", "(", "data", ")", "ĊĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", "2", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "2", "Drop", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġco", "con", "ut", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "start", "1", "Ġ!=", "ĠNone", ":", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġto", "Ġmake", "Ġpower", "ups", "Ġonly", "Ġactive", "Ġfor", "Ġset", "Ġamount", "Ġof", "Ġtime", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġabs", "(", "data", ".", "start", "1", "Ġ-", "Ġdata", ".", "player", "1", "Y", ")", "Ġ>=", "Ġ", "1", "2", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "pause", "1", "Drop", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "Inv", "inc", "ible", "1", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "start", "2", "Ġ!=", "ĠNone", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġabs", "(", "data", ".", "start", "2", "Ġ-", "Ġdata", ".", "player", "2", "Y", ")", "Ġ>=", "Ġ", "1", "2", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "pause", "2", "Drop", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "Inv", "inc", "ible", "2", "Ġ=", "ĠFalse", "ĊĊ", "Ċ", "def", "Ġtwo", "Player", "Red", "raw", "All", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġ#", "Ġmagic", "Ġ#", "s", "Ġfor", "Ġplacement", "Ġon", "Ġscreen", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "4", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "half", "Background", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "3", "Ġ*", "Ġdata", ".", "width", "Ġ/", "Ġ", "4", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "half", "Background", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "line", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġ", "0", ",", "Ġdata", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", ",", "Ġwidth", "=", "1", "0", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "line", "(", "0", ",", "Ġ", "2", "0", ",", "Ġdata", ".", "width", ",", "Ġ", "2", "0", ")", "ĊĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", "1", ":", "ĊĠĠĠĠĠĠĠ", "Ġco", "con", "ut", ".", "draw", "(", "canvas", ")", "ĊĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", "2", ":", "ĊĠĠĠĠĠĠĠ", "Ġco", "con", "ut", ".", "draw", "(", "canvas", ")", "ĊĠĠĠ", "Ġdraw", "Power", "ups", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "player", "1", "X", ",", "Ġdata", ".", "player", "1", "Y", ",", "Ġimage", "=", "data", ".", "lad", "y", "Bug", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "player", "2", "X", ",", "Ġdata", ".", "player", "2", "Y", ",", "Ġimage", "=", "data", ".", "lad", "y", "Bug", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "5", "0", ",", "Ġ", "4", "0", ",", "Ġtext", "=\"", "Player", "Ġ", "1", "\",", "Ġfont", "=\"", "Arial", "Ġ", "1", "5", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "4", "5", "0", ",", "Ġ", "4", "0", ",", "Ġtext", "=\"", "Player", "Ġ", "2", "\",", "Ġfont", "=\"", "Arial", "Ġ", "1", "5", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġwinner", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġdraw", "Home", "(", "canvas", ",", "Ġdata", ")", "ĊĊ", "Ċ", "def", "Ġwinner", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "winner", "Ġ==", "Ġ\"", "player", "1", "\":", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "rectangle", "(", "0", ",", "Ġ", "0", ",", "Ġdata", ".", "width", ",", "Ġdata", ".", "height", ",", "Ġfill", "=\"", "black", "\")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "win", "Screen", ")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "3", "0", "0", ",", "Ġ", "3", "2", "0", ",", "Ġimage", "=", "data", ".", "win", "Bug", ")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġ", "1", "0", "0", ",", "Ġtext", "=\"", "You", "ĠMade", "Ġit", "!", "ĠPlayer", "Ġ", "1", "\",", "Ġfont", "=\"", "Arial", "Ġ", "2", "3", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "winner", "Ġ==", "Ġ\"", "player", "2", "\":", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "rectangle", "(", "0", ",", "Ġ", "0", ",", "Ġdata", ".", "width", ",", "Ġdata", ".", "height", ",", "Ġfill", "=\"", "black", "\")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "win", "Screen", ")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "3", "0", "0", ",", "Ġ", "3", "2", "0", ",", "Ġimage", "=", "data", ".", "win", "Bug", ")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġ", "1", "0", "0", ",", "Ġtext", "=\"", "You", "ĠMade", "Ġit", "!", "ĠPlayer", "Ġ", "2", "\",", "Ġfont", "=\"", "Arial", "Ġ", "2", "3", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "winner", "Ġ==", "Ġ\"", "tie", "\":", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "rectangle", "(", "0", ",", "Ġ", "0", ",", "Ġdata", ".", "width", ",", "Ġdata", ".", "height", ",", "Ġfill", "=\"", "black", "\")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "win", "Screen", ")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "3", "0", "0", ",", "Ġ", "3", "2", "0", ",", "Ġimage", "=", "data", ".", "win", "Bug", ")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġ", "1", "0", "0", ",", "Ġtext", "=\"", "T", "ie", "!", "ĠYou", "ĠBoth", "ĠMade", "Ġit", "!\",", "Ġfont", "=\"", "Arial", "Ġ", "2", "3", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĊ", "Ċ", "################################", "####", "Ċ", "#", "Ġeditor", "Ġmode", "Ċ", "################################", "####", "ĊĊ", "Ċ", "def", "Ġeditor", "Key", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġif", "Ġevent", ".", "keys", "ym", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠ", "Ġinit", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġeditor", "Mouse", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġ#", "Ġcheck", "Ġfor", "Ġclick", "Ġon", "Ġbutton", "Ġfor", "Ġyour", "Ġspeed", "ĊĠĠĠ", "Ġcheck", "Home", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "easy", "Y", "Ġ-", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "y", "Ġ<=", "Ġdata", ".", "easy", "Y", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "easy", "X", "Ġ-", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "x", "Ġ<=", "Ġdata", ".", "easy", "X", "Ġ+", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "your", "Speed", "Ġ=", "Ġ\"", "slow", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "slow", "Ġ=", "Ġdata", ".", "click", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "medium", ",", "Ġdata", ".", "fast", "Ġ=", "Ġdata", ".", "not", "Click", ",", "Ġdata", ".", "not", "Click", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "med", "X", "Ġ-", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "x", "Ġ<=", "Ġdata", ".", "med", "X", "Ġ+", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "your", "Speed", "Ġ=", "Ġ\"", "medium", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "medium", "Ġ=", "Ġdata", ".", "click", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "slow", ",", "Ġdata", ".", "fast", "Ġ=", "Ġdata", ".", "not", "Click", ",", "Ġdata", ".", "not", "Click", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "hard", "X", "Ġ-", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "x", "Ġ<=", "Ġdata", ".", "hard", "X", "Ġ+", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "your", "Speed", "Ġ=", "Ġ\"", "fast", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "fast", "Ġ=", "Ġdata", ".", "click", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "slow", ",", "Ġdata", ".", "medium", "Ġ=", "Ġdata", ".", "not", "Click", ",", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġcheck", "Middle", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġcheck", "Last", "(", "event", ",", "Ġdata", ")", "ĊĊ", "Ċ", "def", "Ġcheck", "Middle", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġ#", "Ġcheck", "Ġfor", "Ġclick", "Ġon", "Ġbutton", "Ġfor", "Ġrain", "Ġspeed", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "med", "X", "Ġ-", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "y", "Ġ<=", "Ġdata", ".", "med", "X", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "easy", "X", "Ġ-", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "x", "Ġ<=", "Ġdata", ".", "easy", "X", "Ġ+", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "rain", "Speed", "Ġ=", "Ġ\"", "d", "ri", "zzle", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "d", "ri", "zzle", "Ġ=", "Ġdata", ".", "click", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "rain", ",", "Ġdata", ".", "th", "under", "storm", "Ġ=", "Ġdata", ".", "not", "Click", ",", "Ġdata", ".", "not", "Click", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "med", "X", "Ġ-", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "x", "Ġ<=", "Ġdata", ".", "med", "X", "Ġ+", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "rain", "Speed", "Ġ=", "Ġ\"", "rain", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "rain", "Ġ=", "Ġdata", ".", "click", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "d", "ri", "zzle", ",", "Ġdata", ".", "th", "under", "storm", "Ġ=", "Ġdata", ".", "not", "Click", ",", "Ġdata", ".", "not", "Click", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "hard", "X", "Ġ-", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "x", "Ġ<=", "Ġdata", ".", "hard", "X", "Ġ+", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "rain", "Speed", "Ġ=", "Ġ\"", "th", "under", "storm", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "th", "under", "storm", "Ġ=", "Ġdata", ".", "click", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "d", "ri", "zzle", ",", "Ġdata", ".", "rain", "Ġ=", "Ġdata", ".", "not", "Click", ",", "Ġdata", ".", "not", "Click", "ĊĊ", "Ċ", "def", "Ġcheck", "Last", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġ#", "Ġcheck", "Ġfor", "Ġclick", "Ġon", "Ġbutton", "Ġfor", "Ġpower", "ups", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "last", "Ġ-", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "y", "Ġ<=", "Ġdata", ".", "last", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "easy", "Y", "Ġ-", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "x", "Ġ<=", "Ġdata", ".", "easy", "Y", "Ġ+", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "power", "U", "ps", "Editor", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "yes", ",", "Ġdata", ".", "no", "Ġ=", "Ġdata", ".", "click", ",", "Ġdata", ".", "not", "Click", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "last", "Ġ-", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "x", "Ġ<=", "Ġdata", ".", "last", "Ġ+", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "power", "U", "ps", "Editor", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "no", ",", "Ġdata", ".", "yes", "Ġ=", "Ġdata", ".", "click", ",", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "enter", "Ġ==", "Ġdata", ".", "click", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "enter", "X", "Ġ-", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "y", "Ġ<=", "Ġdata", ".", "enter", "X", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "med", "X", "Ġ-", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "x", "Ġ<=", "Ġdata", ".", "med", "X", "Ġ+", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "mode", "Ġ=", "Ġ\"", "level", "Created", "\"", "ĊĊ", "Ċ", "def", "Ġdraw", "Buttons", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġ#", "Ġmakes", "Ġeach", "Ġbutton", "ĊĠĠĠ", "Ġdata", ".", "font", ",", "Ġdata", ".", "fill", "Ġ=", "Ġ\"", "Helvetica", "Ġ", "1", "3", "Ġbold", "\",", "Ġ\"", "yellow", "\"", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "med", "X", ",", "Ġdata", ".", "Y", "ST", ",", "Ġtext", "=\"", "Your", "ĠSpeed", ":\",", "Ġfont", "=", "data", ".", "font", ",", "Ġfill", "=", "data", ".", "fill", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "easy", "X", ",", "Ġdata", ".", "easy", "Y", ",", "Ġimage", "=", "data", ".", "slow", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "easy", "X", ",", "Ġdata", ".", "easy", "Y", ",", "Ġtext", "=\"", "Slow", "\",", "Ġfont", "=", "data", ".", "font", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "med", "X", ",", "Ġdata", ".", "easy", "Y", ",", "Ġimage", "=", "data", ".", "medium", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "med", "X", ",", "Ġdata", ".", "easy", "Y", ",", "Ġtext", "=\"", "Medium", "\",", "Ġfont", "=", "data", ".", "font", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "hard", "X", ",", "Ġdata", ".", "easy", "Y", ",", "Ġimage", "=", "data", ".", "fast", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "hard", "X", ",", "Ġdata", ".", "easy", "Y", ",", "Ġtext", "=\"", "Fast", "\",", "Ġfont", "=", "data", ".", "font", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "easy", "X", ",", "Ġdata", ".", "med", "X", ",", "Ġimage", "=", "data", ".", "d", "ri", "zzle", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "med", "X", ",", "Ġdata", ".", "RST", ",", "Ġtext", "=\"", "Rain", "ĠSpeed", ":\",", "Ġfont", "=", "data", ".", "font", ",", "Ġfill", "=", "data", ".", "fill", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "easy", "X", ",", "Ġdata", ".", "med", "X", ",", "Ġtext", "=\"", "D", "ri", "zzle", "\",", "Ġfont", "=", "data", ".", "font", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "med", "X", ",", "Ġdata", ".", "med", "X", ",", "Ġimage", "=", "data", ".", "rain", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "med", "X", ",", "Ġdata", ".", "med", "X", ",", "Ġtext", "=\"", "Rain", "\",", "Ġfont", "=", "data", ".", "font", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "hard", "X", ",", "Ġdata", ".", "med", "X", ",", "Ġimage", "=", "data", ".", "th", "under", "storm", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "hard", "X", ",", "Ġdata", ".", "med", "X", ",", "Ġtext", "=\"", "He", "avy", "\",", "Ġfont", "=", "data", ".", "font", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "med", "X", ",", "Ġdata", ".", "PUT", ",", "Ġtext", "=\"", "Power", "U", "ps", "?\",", "Ġfont", "=", "data", ".", "font", ",", "Ġfill", "=", "data", ".", "fill", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "easy", "Y", ",", "Ġdata", ".", "last", ",", "Ġimage", "=", "data", ".", "yes", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "easy", "Y", ",", "Ġdata", ".", "last", ",", "Ġtext", "=\"", "Yes", "\",", "Ġfont", "=", "data", ".", "font", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "last", ",", "Ġdata", ".", "last", ",", "Ġimage", "=", "data", ".", "no", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "last", ",", "Ġdata", ".", "last", ",", "Ġtext", "=\"", "No", "\",", "Ġfont", "=", "data", ".", "font", ")", "ĊĠĠĠ", "Ġchange", "Enter", "(", "canvas", ",", "Ġdata", ")", "ĊĊ", "Ċ", "def", "Ġchange", "Enter", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġ#", "Ġmakes", "Ġit", "Ġso", "Ġthe", "Ġenter", "Ġbutton", "Ġrespond", "Ġto", "Ġclick", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "power", "U", "ps", "Editor", "Ġ!=", "ĠNone", "Ġand", "Ġdata", ".", "your", "Speed", "Ġ!=", "ĠNone", "Ġand", "Ġdata", ".", "rain", "Speed", "Ġ!=", "ĠNone", ":", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "enter", "Ġ=", "Ġdata", ".", "click", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "med", "X", ",", "Ġdata", ".", "enter", "X", ",", "Ġimage", "=", "data", ".", "enter", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "med", "X", ",", "Ġdata", ".", "enter", "X", ",", "Ġtext", "=\"", "Enter", "\",", "Ġfont", "=", "data", ".", "font", ")", "ĊĊ", "Ċ", "def", "Ġeditor", "Timer", "F", "ired", "(", "data", "):", "ĊĠĠĠ", "Ġdata", ".", "editor", "Time", "Ġ+=", "Ġ", "1", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "editor", "Time", "Ġ%", "Ġ", "2", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġrain", "Drop", "(", "data", ")", "ĊĠĠĠ", "Ġfor", "Ġdrop", "Ġin", "Ġdata", ".", "editor", "D", "rops", ":", "ĊĠĠĠĠĠĠĠ", "Ġdrop", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġrain", "Drop", "(", "data", "):", "ĊĠĠĠ", "Ġ#", "Ġbackground", "Ġdrops", "ĊĠĠĠ", "Ġx", "Position", "Ġ=", "Ġrandom", ".", "randint", "(", "0", ",", "Ġdata", ".", "width", ")", "ĊĠĠĠ", "Ġdata", ".", "editor", "D", "rops", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", ",", "Ġ", "0", "))", "ĊĊ", "Ċ", "def", "Ġeditor", "Red", "raw", "All", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "background", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "t", "bg", ")", "ĊĠĠĠ", "Ġfor", "Ġdrop", "Ġin", "Ġdata", ".", "editor", "D", "rops", ":", "ĊĠĠĠĠĠĠĠ", "Ġdrop", ".", "draw", "(", "canvas", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "S", "_", "P", "Ġ-", "Ġ", "1", "0", ",", "Ġtext", "=\"", "Edit", "ĠYour", "ĠLevel", "!\",", "Ġfont", "=\"", "Arial", "Ġ", "2", "3", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġdraw", "Buttons", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġdraw", "Home", "(", "canvas", ",", "Ġdata", ")", "ĊĊ", "Ċ", "################################", "####", "Ċ", "#", "Ġlevel", "Created", "Ġmode", "Ċ", "################################", "####", "Ċ", "def", "Ġset", "Everything", "(", "data", "):", "ĊĠĠĠ", "Ġ#", "Ġcustom", "izing", "Ġgame", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "your", "Speed", "Ġ==", "Ġ\"", "slow", "\":", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "speed", "Ġ=", "Ġ", "6", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "your", "Speed", "Ġ==", "Ġ\"", "medium", "\":", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "speed", "Ġ=", "Ġ", "1", "0", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "your", "Speed", "Ġ==", "Ġ\"", "fast", "\":", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "speed", "Ġ=", "Ġ", "1", "4", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "rain", "Speed", "Ġ==", "Ġ\"", "th", "under", "storm", "\":", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "r", "Speed", "Ġ=", "Ġ", "7", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "rain", "Speed", "Ġ==", "Ġ\"", "rain", "\":", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "r", "Speed", "Ġ=", "Ġ", "1", "0", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "rain", "Speed", "Ġ==", "Ġ\"", "d", "ri", "zzle", "\":", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "r", "Speed", "Ġ=", "Ġ", "1", "3", "ĊĊ", "Ċ", "def", "Ġlevel", "Co", "con", "ut", "Shot", "(", "data", "):", "ĊĠĠĠ", "Ġ#", "Ġadding", "Ġdrops", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "level", "Editor", "L", "ives", "Ġ>", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġint", "(", "0", ".", "3", "5", "Ġ*", "Ġdata", ".", "r", "Speed", ")", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġx", "Position", "1", "Ġ=", "Ġrandom", ".", "randint", "(", "0", ",", "Ġdata", ".", "Player", "1", "Min", "Ġ-", "Ġdata", ".", "buffer", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġx", "Position", "2", "Ġ=", "Ġrandom", ".", "randint", "(", "7", "7", "0", ",", "Ġ", "8", "7", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġx", "Position", "3", "Ġ=", "Ġrandom", ".", "randint", "(", "2", "2", "0", ",", "Ġ", "7", "7", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "3", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "1", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "2", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġint", "(", "0", ".", "5", "5", "Ġ*", "Ġdata", ".", "r", "Speed", ")", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġx", "Position", "3", "Ġ=", "Ġrandom", ".", "randint", "(", "0", ",", "Ġ", "2", "2", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġx", "Position", "5", "Ġ=", "Ġrandom", ".", "randint", "(", "2", "2", "0", ",", "Ġ", "7", "7", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "3", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "5", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġint", "(", "data", ".", "r", "Speed", ")", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġside", "Ġ=", "Ġrandom", ".", "choice", "(", "data", ".", "sides", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġside", "Ġ==", "Ġ\"", "l", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", ".", "append", "(", "Co", "con", "uts", "(", "3", "Ġ*", "Ġdata", ".", "width", "Ġ/", "Ġ", "8", "Ġ-", "Ġ", "2", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġside", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", ".", "append", "(", "Co", "con", "uts", "(", "7", "Ġ*", "Ġdata", ".", "width", "Ġ/", "Ġ", "8", "Ġ+", "Ġ", "4", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġx", "Position", "4", "Ġ=", "Ġrandom", ".", "randint", "(", "2", "2", "0", ",", "Ġ", "7", "7", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "4", ",", "Ġ", "0", "))", "ĊĊĠĠĠĠĠĠĠ", "Ġlevel", "Power", "Up", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġlevel", "Power", "Up", "(", "data", "):", "ĊĠĠĠ", "Ġ#", "Ġadding", "Ġpower", "-", "ups", "Ġonly", "Ġif", "Ġclicked", "Ġyes", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "power", "U", "ps", "Editor", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "2", "0", "Ġ==", "Ġ", "0", "Ġand", "Ġdata", ".", "time", "Ġ%", "Ġ", "4", "0", "Ġ!=", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "ĠPosition", "Ġ=", "Ġrandom", ".", "choice", "(", "data", ".", "spot", "List", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "power", "U", "ps", ".", "append", "(", "Power", "U", "ps", "(", "Position", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "3", "0", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "ĠPosition", "Ġ=", "Ġrandom", ".", "choice", "(", "data", ".", "spot", "List", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "inv", "inc", "ible", ".", "append", "(", "Inv", "inc", "ible", "(", "Position", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "3", "5", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "ĠPosition", "Ġ=", "Ġrandom", ".", "choice", "(", "data", ".", "spot", "List", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "sc", "ary", "Bug", ".", "append", "(", "Sc", "ary", "Bug", "(", "Position", ",", "Ġ", "7", "5", "0", "))", "ĊĊ", "Ċ", "def", "Ġlevel", "Created", "Key", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġif", "Ġevent", ".", "keys", "ym", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠ", "Ġinit", "(", "data", ")", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "level", "Editor", "L", "ives", "Ġ>", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġ(", "event", ".", "keys", "ym", "Ġ==", "Ġ\"", "Left", "\")", "Ġand", "Ġdata", ".", "cx", "Ġ>=", "Ġ", "3", "1", "7", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "cx", "Ġ-=", "Ġdata", ".", "lane", "Ġ/", "Ġ", "2", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġ(", "event", ".", "keys", "ym", "Ġ==", "Ġ\"", "Right", "\")", "Ġand", "Ġdata", ".", "cx", "Ġ<=", "Ġ", "7", "4", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "cx", "Ġ+=", "Ġdata", ".", "lane", "Ġ/", "Ġ", "2", "ĊĊ", "Ċ", "def", "Ġlevel", "Created", "Mouse", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġcheck", "Home", "(", "event", ",", "Ġdata", ")", "ĊĊ", "Ċ", "def", "Ġlevel", "Created", "Timer", "F", "ired", "(", "data", "):", "ĊĠĠĠ", "Ġset", "Everything", "(", "data", ")", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "level", "Editor", "L", "ives", "Ġ>", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "cy", "Ġ-=", "Ġdata", ".", "speed", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "cy", "Ġ<", "Ġ", "1", "5", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "level", "Ġ+=", "Ġ", "1", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "cy", "Ġ>", "Ġ", "4", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "time", "Ġ+=", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "D", "rops", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġlevel", "Co", "con", "ut", "Shot", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "power", "U", "ps", "Editor", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġco", "con", "ut", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġhit", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "power", "U", "ps", "Editor", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġpower", "Up", "Ġin", "Ġdata", ".", "power", "U", "ps", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġpower", "Up", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġhit", "Pause", "(", "data", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġpower", "Up", "Ġin", "Ġdata", ".", "inv", "inc", "ible", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġpower", "Up", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġhit", "Inv", "inc", "ible", "(", "data", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġbug", "Ġin", "Ġdata", ".", "sc", "ary", "Bug", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġbug", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġhit", "Sc", "ary", "Bug", "(", "data", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "D", "rops", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġco", "con", "ut", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "be", "Inv", "inc", "ible", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġhit", "(", "data", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "start", "Ġ!=", "ĠNone", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġto", "Ġmake", "Ġpower", "ups", "Ġonly", "Ġactive", "Ġfor", "Ġset", "Ġamount", "Ġof", "Ġtime", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġabs", "(", "data", ".", "start", "Ġ-", "Ġdata", ".", "cy", ")", "Ġ>=", "Ġ", "1", "2", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "pause", "D", "rops", ",", "Ġdata", ".", "be", "Inv", "inc", "ible", "Ġ=", "ĠFalse", ",", "ĠFalse", "ĊĊ", "Ċ", "def", "Ġlevel", "Created", "Red", "raw", "All", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "background", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "line", "(", "0", ",", "Ġ", "2", "0", ",", "Ġdata", ".", "width", ",", "Ġ", "2", "0", ")", "ĊĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", ":", "ĊĠĠĠĠĠĠĠ", "Ġco", "con", "ut", ".", "draw", "(", "canvas", ")", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "power", "U", "ps", "Editor", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠ", "Ġdraw", "Power", "ups", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "cx", ",", "Ġdata", ".", "cy", ",", "Ġimage", "=", "data", ".", "lad", "y", "Bug", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "6", ",", "Ġ", "1", "0", "0", ",", "Ġtext", "=\"", "Total", "ĠL", "ives", ":", "Ġ%", "d", "\"", "Ġ%", "Ġdata", ".", "level", "Editor", "L", "ives", ",", "Ġfont", "=\"", "Arial", "Ġ", "2", "0", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "width", "Ġ/", "Ġ", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "6", "6", "0", ",", "ĊĠĠĠĠĠĠĠ", "Ġtext", "=\"", "\"\"", "You", "Ġlose", "Ġa", "Ġlife", "Ġfor", "Ġhitting", "Ġa", "Ġdrop", "ĊĠĠĠĠĠĠĠĠ", "Ġ&", "Ġdon", "'t", "Ġget", "Ġe", "aten", "!", "\"\"\",", "ĊĠĠĠĠĠĠĠ", "Ġfont", "=\"", "Arial", "Ġ", "1", "5", "Ġbold", "\",", "ĊĠĠĠĠĠĠĠ", "Ġfill", "=\"", "yellow", "\",", "ĊĠĠĠ", "Ġ)", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "level", "Editor", "L", "ives", "Ġ<=", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "rectangle", "(", "0", ",", "Ġ", "0", ",", "Ġdata", ".", "width", ",", "Ġdata", ".", "height", ",", "Ġfill", "=\"", "black", "\")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "dead", "Screen", ")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "4", ",", "Ġtext", "=\"", "You", "ĠL", "ose", "!", "ĠBetter", "ĠL", "uck", "ĠNext", "ĠTime", "!\",", "Ġfont", "=\"", "Helvetica", "Ġ", "2", "3", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\"", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "level", "Ġ>", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠ", "Ġwin", "Editor", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġdraw", "Home", "(", "canvas", ",", "Ġdata", ")", "ĊĊ", "Ċ", "def", "Ġwin", "Editor", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġ#", "Ġscreen", "Ġfor", "Ġwhen", "Ġyou", "Ġwin", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "rectangle", "(", "0", ",", "Ġ", "0", ",", "Ġdata", ".", "width", ",", "Ġdata", ".", "height", ",", "Ġfill", "=\"", "black", "\")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "win", "Screen", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "3", "0", "0", ",", "Ġ", "3", "2", "0", ",", "Ġimage", "=", "data", ".", "win", "Bug", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġ", "1", "0", "0", ",", "Ġtext", "=\"", "You", "ĠMade", "Ġit", "!\",", "Ġfont", "=\"", "Arial", "Ġ", "2", "3", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĊ", "Ċ", "################################", "####", "Ċ", "#", "ĠAI", "ĠDiff", "iculty", "ĠMode", "Ċ", "################################", "####", "Ċ", "def", "Ġdifficulty", "Key", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġif", "Ġevent", ".", "keys", "ym", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠ", "Ġinit", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġdraw", "Diff", "icult", "ies", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "med", "X", ",", "Ġdata", ".", "A", "ITY", ",", "Ġtext", "=\"", "Computer", "ĠDiff", "iculty", ":\",", "Ġfont", "=\"", "Arial", "Ġ", "2", "3", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "easy", "X", ",", "Ġdata", ".", "easy", "Y", ",", "Ġimage", "=", "data", ".", "slow", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "easy", "X", ",", "Ġdata", ".", "easy", "Y", ",", "Ġtext", "=\"", "Easy", "\")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "med", "X", ",", "Ġdata", ".", "easy", "Y", ",", "Ġimage", "=", "data", ".", "medium", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "med", "X", ",", "Ġdata", ".", "easy", "Y", ",", "Ġtext", "=\"", "Medium", "\")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "hard", "X", ",", "Ġdata", ".", "easy", "Y", ",", "Ġimage", "=", "data", ".", "fast", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "hard", "X", ",", "Ġdata", ".", "easy", "Y", ",", "Ġtext", "=\"", "Hard", "\")", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "difficulty", "Ġ!=", "ĠNone", ":", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "enter", "Ġ=", "Ġdata", ".", "click", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "med", "X", ",", "Ġdata", ".", "enter", "Y", ",", "Ġimage", "=", "data", ".", "enter", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "med", "X", ",", "Ġdata", ".", "enter", "Y", ",", "Ġtext", "=\"", "Enter", "\")", "ĊĊ", "Ċ", "def", "Ġdifficulty", "Mouse", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġ#", "Ġsets", "Ġup", "Ġbuttons", "Ġto", "Ġcustomize", "ĊĠĠĠ", "Ġcheck", "Home", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "easy", "Y", "Ġ-", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "y", "Ġ<=", "Ġdata", ".", "easy", "Y", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "easy", "X", "Ġ-", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "x", "Ġ<=", "Ġdata", ".", "easy", "X", "Ġ+", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "difficulty", "Ġ=", "Ġdata", ".", "dif", "S", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "slow", "Ġ=", "Ġdata", ".", "click", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "medium", ",", "Ġdata", ".", "fast", "Ġ=", "Ġdata", ".", "not", "Click", ",", "Ġdata", ".", "not", "Click", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "med", "X", "Ġ-", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "x", "Ġ<=", "Ġdata", ".", "med", "X", "Ġ+", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "difficulty", "Ġ=", "Ġdata", ".", "dif", "M", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "medium", "Ġ=", "Ġdata", ".", "click", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "slow", ",", "Ġdata", ".", "fast", "Ġ=", "Ġdata", ".", "not", "Click", ",", "Ġdata", ".", "not", "Click", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "hard", "X", "Ġ-", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "x", "Ġ<=", "Ġdata", ".", "hard", "X", "Ġ+", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "difficulty", "Ġ=", "Ġdata", ".", "dif", "H", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "fast", "Ġ=", "Ġdata", ".", "click", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "slow", ",", "Ġdata", ".", "medium", "Ġ=", "Ġdata", ".", "not", "Click", ",", "Ġdata", ".", "not", "Click", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "enter", "Ġ==", "Ġdata", ".", "click", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "enter", "Y", "Ġ-", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "y", "Ġ<=", "Ġdata", ".", "enter", "Y", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "med", "X", "Ġ-", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", "Ġ<=", "Ġevent", ".", "x", "Ġ<=", "Ġdata", ".", "med", "X", "Ġ+", "Ġ", "2", "Ġ*", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "mode", "Ġ=", "Ġ\"", "AI", "\"", "ĊĊ", "Ċ", "def", "Ġdifficulty", "Timer", "F", "ired", "(", "data", "):", "ĊĠĠĠ", "Ġ#", "Ġmakes", "Ġnormal", "Ġbackground", "Ġrain", "ĊĠĠĠ", "Ġdata", ".", "editor", "Time", "Ġ+=", "Ġ", "1", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "editor", "Time", "Ġ%", "Ġ", "2", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġrain", "Drop", "(", "data", ")", "ĊĠĠĠ", "Ġfor", "Ġdrop", "Ġin", "Ġdata", ".", "editor", "D", "rops", ":", "ĊĠĠĠĠĠĠĠ", "Ġdrop", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġrain", "Drop", "(", "data", "):", "ĊĠĠĠ", "Ġx", "Position", "Ġ=", "Ġrandom", ".", "randint", "(", "0", ",", "Ġdata", ".", "width", ")", "ĊĠĠĠ", "Ġdata", ".", "editor", "D", "rops", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", ",", "Ġ", "0", "))", "ĊĊ", "Ċ", "def", "Ġdifficulty", "Red", "raw", "All", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "background", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "t", "bg", ")", "ĊĠĠĠ", "Ġfor", "Ġdrop", "Ġin", "Ġdata", ".", "editor", "D", "rops", ":", "ĊĠĠĠĠĠĠĠ", "Ġdrop", ".", "draw", "(", "canvas", ")", "ĊĠĠĠ", "Ġdraw", "Diff", "icult", "ies", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġdraw", "Home", "(", "canvas", ",", "Ġdata", ")", "ĊĊ", "Ċ", "################################", "####", "Ċ", "#", "ĠAI", "Ġmode", "Ċ", "################################", "####", "Ċ", "def", "Ġhit", "AI", "1", "(", "data", ",", "Ġdistance", "):", "ĊĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", "AI", "1", ":", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġso", "ĠAI", "Ġswitches", "Ġby", "Ġitself", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġ(", "data", ".", "player", "1", "Y", "Ġ-", "Ġdata", ".", "r", "Ġ-", "Ġco", "con", "ut", ".", "y", "Ġ<=", "Ġdistance", ")", "Ġand", "Ġdata", ".", "switch", "On", "Progress", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġ(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġco", "con", "ut", ".", "x", "Ġ>=", "Ġdata", ".", "player", "1", "X", "Ġ-", "Ġdata", ".", "r", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġand", "Ġco", "con", "ut", ".", "x", "Ġ<=", "Ġdata", ".", "player", "1", "X", "Ġ+", "Ġdata", ".", "r", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġor", "ĠA", "IS", "witch", "Bug", "(", "data", ",", "Ġdistance", ")", "Ġ==", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtest", "Int", "Ġ=", "Ġrandom", ".", "randint", "(", "0", ",", "Ġ", "9", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġto", "Ġhave", "Ġdifferent", "Ġlevels", "Ġof", "Ġdifficulty", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġtest", "Int", "Ġ<=", "Ġdata", ".", "difficulty", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "switch", "On", "Progress", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "player", "1", "X", "Ġ==", "Ġ", "1", "5", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "player", "1", "X", "Ġ=", "Ġ", "3", "4", "0", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "player", "1", "X", "Ġ=", "Ġ", "1", "5", "0", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "switch", "On", "Progress", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġco", "con", "ut", ".", "y", "Ġ>=", "Ġdata", ".", "player", "1", "Y", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġco", "con", "ut", ".", "y", "Ġ<=", "Ġdata", ".", "player", "1", "Y", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġco", "con", "ut", ".", "x", "Ġ>=", "Ġdata", ".", "player", "1", "X", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġco", "con", "ut", ".", "x", "Ġ<=", "Ġdata", ".", "player", "1", "X", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "player", "1", "Y", "Ġ+=", "Ġ", "5", "0", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "AI", "1", ".", "remove", "(", "co", "con", "ut", ")", "ĊĊ", "Ċ", "def", "ĠA", "IS", "witch", "Bug", "(", "data", ",", "Ġdistance", "):", "ĊĠĠĠ", "Ġ#", "ĠAI", "Ġto", "Ġmove", "Ġfor", "Ġsp", "ider", "ĊĠĠĠ", "Ġfor", "Ġsc", "ary", "Bug", "Ġin", "Ġdata", ".", "sc", "ary", "Bug", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġ(", "data", ".", "player", "1", "Y", "Ġ-", "Ġdata", ".", "r", "Ġ-", "Ġsc", "ary", "Bug", ".", "y", "Ġ<=", "Ġdistance", ")", "Ġand", "Ġdata", ".", "switch", "On", "Progress", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġsc", "ary", "Bug", ".", "x", "Ġ>=", "Ġdata", ".", "player", "1", "X", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġsc", "ary", "Bug", ".", "x", "Ġ<=", "Ġdata", ".", "player", "1", "X", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĠTrue", "ĊĊ", "Ċ", "def", "Ġhit", "AI", "2", "(", "data", ",", "Ġdistance", "):", "ĊĠĠĠ", "Ġ#", "Ġcheck", "Ġif", "Ġhuman", "Ġcontrolled", "Ġplayer", "Ġhits", "Ġdrops", "ĊĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", "AI", "2", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġco", "con", "ut", ".", "y", "Ġ>=", "Ġdata", ".", "player", "2", "Y", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġco", "con", "ut", ".", "y", "Ġ<=", "Ġdata", ".", "player", "2", "Y", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġco", "con", "ut", ".", "x", "Ġ>=", "Ġdata", ".", "player", "2", "X", "Ġ-", "Ġdata", ".", "r", "Ġand", "Ġco", "con", "ut", ".", "x", "Ġ<=", "Ġdata", ".", "player", "2", "X", "Ġ+", "Ġdata", ".", "r", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "player", "2", "Y", "Ġ+=", "Ġ", "5", "0", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "AI", "2", ".", "remove", "(", "co", "con", "ut", ")", "ĊĊ", "Ċ", "def", "Ġco", "con", "ut", "Shot", "AI", "(", "data", "):", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "winner", "Ġ==", "ĠNone", ":", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġrandomize", "Ġposition", "Ġof", "Ġdrops", "Ġoff", "Ġof", "Ġtree", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "1", "5", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġx", "Position", "1", "Ġ=", "Ġrandom", ".", "randint", "(", "0", ",", "Ġ", "3", "8", "5", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġabs", "(", "x", "Position", "1", "Ġ-", "Ġ", "1", "0", "0", ")", "Ġ>", "Ġ", "4", "0", "Ġand", "Ġabs", "(", "x", "Position", "1", "Ġ-", "Ġ", "3", "6", "0", ")", "Ġ>", "Ġ", "4", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "1", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "AI", "1", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "1", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "2", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "AI", "2", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "1", "Ġ+", "Ġ", "4", "1", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "8", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġx", "Position", "2", "Ġ=", "Ġrandom", ".", "randint", "(", "0", ",", "Ġ", "8", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġx", "Position", "3", "Ġ=", "Ġrandom", ".", "randint", "(", "3", "6", "4", ",", "Ġ", "3", "8", "5", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "1", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "AI", "1", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "2", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "AI", "1", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "3", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "2", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "AI", "2", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "2", "Ġ+", "Ġ", "4", "1", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "AI", "2", ".", "append", "(", "Co", "con", "uts", "(", "x", "Position", "3", "Ġ+", "Ġ", "4", "1", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġadd", "Extra", "Co", "con", "ut", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġadd", "Power", "U", "ps", "AI", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġadd", "Extra", "Co", "con", "ut", "(", "data", "):", "ĊĠĠĠ", "Ġ#", "Ġadds", "Ġdrops", "Ġto", "Ġedges", "Ġof", "Ġtrees", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ(", "1", "8", ")", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġside", "Ġ=", "Ġrandom", ".", "choice", "(", "data", ".", "sides", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġside", "Ġ==", "Ġ\"", "l", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "1", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "AI", "1", ".", "append", "(", "Co", "con", "uts", "(", "1", "4", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "2", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "AI", "2", ".", "append", "(", "Co", "con", "uts", "(", "5", "4", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġside", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "1", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "AI", "1", ".", "append", "(", "Co", "con", "uts", "(", "3", "4", "4", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "2", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "co", "con", "uts", "AI", "2", ".", "append", "(", "Co", "con", "uts", "(", "7", "5", "5", ",", "Ġ", "0", "))", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "3", "7", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġside", "Ġ=", "Ġrandom", ".", "choice", "(", "data", ".", "sides", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġside", "Ġ==", "Ġ\"", "l", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "1", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "power", "U", "ps", ".", "append", "(", "Power", "U", "ps", "(", "1", "4", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "2", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "power", "U", "ps", ".", "append", "(", "Power", "U", "ps", "(", "5", "5", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġside", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "1", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "power", "U", "ps", ".", "append", "(", "Power", "U", "ps", "(", "3", "4", "4", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "2", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "power", "U", "ps", ".", "append", "(", "Power", "U", "ps", "(", "7", "5", "5", ",", "Ġ", "0", "))", "ĊĊ", "Ċ", "def", "Ġadd", "Power", "U", "ps", "AI", "(", "data", "):", "ĊĠĠĠ", "Ġ#", "Ġrandomly", "Ġadd", "Ġpower", "ups", "Ġon", "Ġtree", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "3", "3", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġside", "Ġ=", "Ġrandom", ".", "choice", "(", "data", ".", "sides", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġside", "Ġ==", "Ġ\"", "l", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "1", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "inv", "inc", "ible", ".", "append", "(", "Inv", "inc", "ible", "(", "1", "4", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "2", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "inv", "inc", "ible", ".", "append", "(", "Inv", "inc", "ible", "(", "5", "5", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġside", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "1", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "inv", "inc", "ible", ".", "append", "(", "Inv", "inc", "ible", "(", "3", "4", "4", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "2", "Drop", "Ġ!=", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "inv", "inc", "ible", ".", "append", "(", "Inv", "inc", "ible", "(", "7", "5", "5", ",", "Ġ", "0", "))", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "time", "Ġ%", "Ġ", "6", "6", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġside", "Ġ=", "Ġrandom", ".", "choice", "(", "data", ".", "sides", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġside", "Ġ==", "Ġ\"", "l", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "sc", "ary", "Bug", ".", "append", "(", "Sc", "ary", "Bug", "(", "1", "4", "0", ",", "Ġ", "7", "5", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "sc", "ary", "Bug", ".", "append", "(", "Sc", "ary", "Bug", "(", "5", "5", "0", ",", "Ġ", "7", "5", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġside", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "sc", "ary", "Bug", ".", "append", "(", "Sc", "ary", "Bug", "(", "3", "4", "4", ",", "Ġ", "7", "5", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "sc", "ary", "Bug", ".", "append", "(", "Sc", "ary", "Bug", "(", "7", "5", "0", ",", "Ġ", "7", "5", "0", "))", "ĊĊ", "Ċ", "def", "ĠAI", "Key", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġif", "Ġevent", ".", "keys", "ym", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠ", "Ġinit", "(", "data", ")", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "winner", "Ġ==", "ĠNone", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġ(", "event", ".", "keys", "ym", "Ġ==", "Ġ\"", "Left", "\")", "Ġand", "Ġdata", ".", "on", "Left", "1", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "on", "Left", "1", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "player", "2", "X", "Ġ=", "Ġ", "5", "5", "0", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġ(", "event", ".", "keys", "ym", "Ġ==", "Ġ\"", "Right", "\")", "Ġand", "Ġdata", ".", "on", "Left", "1", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "on", "Left", "1", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "player", "2", "X", "Ġ=", "Ġ", "7", "5", "0", "ĊĊ", "Ċ", "def", "ĠA", "IM", "ouse", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġcheck", "Home", "(", "event", ",", "Ġdata", ")", "ĊĊ", "Ċ", "def", "ĠA", "IT", "imer", "F", "ired", "(", "data", "):", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "winner", "Ġ==", "ĠNone", ":", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġwant", "Ġto", "Ġcheck", "Ġhit", "Ġtwice", "Ġ(", "before", "Ġ&", "Ġafter", "Ġelements", "Ġmove", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "Inv", "inc", "ible", "1", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġhit", "AI", "1", "(", "data", ",", "Ġ", "3", "1", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "Inv", "inc", "ible", "2", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpass", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġdata", ".", "Inv", "inc", "ible", "2", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġhit", "AI", "2", "(", "data", ",", "Ġ", "3", "1", ")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", "AI", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "1", "Drop", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġco", "con", "ut", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", "AI", "2", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "pause", "2", "Drop", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġco", "con", "ut", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġsecond", "Ġcheck", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "Inv", "inc", "ible", "1", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġhit", "AI", "1", "(", "data", ",", "Ġ", "1", "3", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "Inv", "inc", "ible", "2", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpass", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġdata", ".", "Inv", "inc", "ible", "2", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġhit", "AI", "2", "(", "data", ",", "Ġ", "1", "3", ")", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "player", "1", "Y", "Ġ-=", "Ġdata", ".", "speed", "AI", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġestablish", "ing", "Ġwin", "er", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "player", "1", "Y", "Ġ<", "Ġ", "1", "5", "Ġand", "Ġdata", ".", "player", "2", "Y", "Ġ>", "Ġ", "1", "5", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "winner", "Ġ=", "Ġ\"", "player", "1", "\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "player", "1", "Y", "Ġ>", "Ġ", "4", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "time", "Ġ+=", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġco", "con", "ut", "Shot", "AI", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "player", "2", "Y", "Ġ-=", "Ġdata", ".", "speed", "AI", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "player", "2", "Y", "Ġ<", "Ġ", "1", "5", "Ġand", "Ġdata", ".", "player", "1", "Y", "Ġ>", "Ġ", "1", "5", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "winner", "Ġ=", "Ġ\"", "player", "2", "\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "player", "2", "Y", "Ġ>", "Ġ", "4", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "time", "Ġ+=", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġco", "con", "ut", "Shot", "AI", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdata", ".", "player", "1", "Y", "Ġ<", "Ġ", "1", "5", "Ġand", "Ġdata", ".", "player", "2", "Y", "Ġ<", "Ġ", "1", "5", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "winner", "Ġ=", "Ġ\"", "tie", "\"", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġpower", "Up", "Ġin", "Ġdata", ".", "power", "U", "ps", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpower", "Up", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġhit", "Pause", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġpower", "Up", "A", "IT", "imer", "F", "ired", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġpower", "Up", "A", "IT", "imer", "F", "ired", "(", "data", "):", "ĊĠĠĠ", "Ġ#", "Ġmoves", "Ġboth", "Ġsides", "Ġsymmetric", "ally", "ĊĠĠĠ", "Ġfor", "Ġpower", "Up", "Ġin", "Ġdata", ".", "inv", "inc", "ible", ":", "ĊĠĠĠĠĠĠĠ", "Ġpower", "Up", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠ", "Ġhit", "Inv", "inc", "ible", "(", "data", ")", "ĊĠĠĠ", "Ġfor", "Ġbug", "Ġin", "Ġdata", ".", "sc", "ary", "Bug", ":", "ĊĠĠĠĠĠĠĠ", "Ġbug", ".", "on", "Timer", "F", "ired", "(", "data", ")", "ĊĠĠĠ", "Ġhit", "Sc", "ary", "Bug", "(", "data", ")", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "start", "1", "Ġ!=", "ĠNone", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġabs", "(", "data", ".", "start", "1", "Ġ-", "Ġdata", ".", "player", "1", "Y", ")", "Ġ>=", "Ġ", "1", "2", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "pause", "1", "Drop", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "Inv", "inc", "ible", "1", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "start", "2", "Ġ!=", "ĠNone", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġabs", "(", "data", ".", "start", "2", "Ġ-", "Ġdata", ".", "player", "2", "Y", ")", "Ġ>=", "Ġ", "1", "2", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "pause", "2", "Drop", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "Inv", "inc", "ible", "2", "Ġ=", "ĠFalse", "ĊĊ", "Ċ", "def", "ĠA", "IR", "ed", "raw", "All", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "4", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "half", "Background", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "3", "Ġ*", "Ġdata", ".", "width", "Ġ/", "Ġ", "4", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "half", "Background", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "line", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġ", "0", ",", "Ġdata", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", ",", "Ġwidth", "=", "1", "0", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "line", "(", "0", ",", "Ġ", "2", "0", ",", "Ġdata", ".", "width", ",", "Ġ", "2", "0", ")", "ĊĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", "AI", "1", ":", "ĊĠĠĠĠĠĠĠ", "Ġco", "con", "ut", ".", "draw", "(", "canvas", ")", "ĊĠĠĠ", "Ġfor", "Ġco", "con", "ut", "Ġin", "Ġdata", ".", "co", "con", "uts", "AI", "2", ":", "ĊĠĠĠĠĠĠĠ", "Ġco", "con", "ut", ".", "draw", "(", "canvas", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "5", "0", ",", "Ġ", "4", "0", ",", "Ġtext", "=\"", "Computer", "\",", "Ġfont", "=\"", "Arial", "Ġ", "1", "5", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "4", "5", "0", ",", "Ġ", "4", "0", ",", "Ġtext", "=\"", "Player", "Ġ", "1", "\",", "Ġfont", "=\"", "Arial", "Ġ", "1", "5", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġdraw", "Power", "ups", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "player", "1", "X", ",", "Ġdata", ".", "player", "1", "Y", ",", "Ġimage", "=", "data", ".", "lad", "y", "Bug", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "player", "2", "X", ",", "Ġdata", ".", "player", "2", "Y", ",", "Ġimage", "=", "data", ".", "lad", "y", "Bug", ")", "ĊĠĠĠ", "ĠAI", "Winner", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġdraw", "Home", "(", "canvas", ",", "Ġdata", ")", "ĊĊ", "Ċ", "def", "ĠAI", "Winner", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġif", "Ġdata", ".", "winner", "Ġ==", "Ġ\"", "player", "1", "\":", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "rectangle", "(", "0", ",", "Ġ", "0", ",", "Ġdata", ".", "width", ",", "Ġdata", ".", "height", ",", "Ġfill", "=\"", "black", "\")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "win", "Screen", ")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "3", "0", "0", ",", "Ġ", "3", "2", "0", ",", "Ġimage", "=", "data", ".", "win", "Bug", ")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġ", "1", "0", "0", ",", "Ġtext", "=\"", "The", "ĠComputer", "ĠW", "on", "Ġ:", "(\",", "Ġfont", "=\"", "Arial", "Ġ", "2", "3", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "winner", "Ġ==", "Ġ\"", "player", "2", "\":", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "rectangle", "(", "0", ",", "Ġ", "0", ",", "Ġdata", ".", "width", ",", "Ġdata", ".", "height", ",", "Ġfill", "=\"", "black", "\")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "win", "Screen", ")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "3", "0", "0", ",", "Ġ", "3", "2", "0", ",", "Ġimage", "=", "data", ".", "win", "Bug", ")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġ", "1", "0", "0", ",", "Ġtext", "=\"", "You", "ĠMade", "Ġit", "!", "ĠYou", "ĠW", "on", "!\",", "Ġfont", "=\"", "Arial", "Ġ", "2", "3", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġelif", "Ġdata", ".", "winner", "Ġ==", "Ġ\"", "tie", "\":", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "rectangle", "(", "0", ",", "Ġ", "0", ",", "Ġdata", ".", "width", ",", "Ġdata", ".", "height", ",", "Ġfill", "=\"", "black", "\")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "win", "Screen", ")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "3", "0", "0", ",", "Ġ", "3", "2", "0", ",", "Ġimage", "=", "data", ".", "win", "Bug", ")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġ", "1", "0", "0", ",", "Ġtext", "=\"", "T", "ie", "!", "ĠYou", "ĠBoth", "ĠMade", "Ġit", "!\",", "Ġfont", "=\"", "Arial", "Ġ", "2", "3", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĊ", "Ċ", "################################", "####", "Ċ", "#", "ĠScore", "Board", "Ġmode", "Ċ", "################################", "####", "ĊĊ", "Ċ", "def", "Ġscore", "board", "Key", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġif", "Ġevent", ".", "keys", "ym", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠ", "Ġinit", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġscore", "board", "Mouse", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġcheck", "Home", "(", "event", ",", "Ġdata", ")", "ĊĊ", "Ċ", "def", "Ġscore", "board", "Timer", "F", "ired", "(", "data", "):", "ĊĠĠĠ", "Ġdifficulty", "Timer", "F", "ired", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġscore", "board", "Red", "raw", "All", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "height", "Ġ/", "Ġ", "2", ",", "Ġimage", "=", "data", ".", "background", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "t", "bg", "Y", ",", "Ġimage", "=", "data", ".", "t", "bg", ")", "ĊĠĠĠ", "Ġfor", "Ġdrop", "Ġin", "Ġdata", ".", "editor", "D", "rops", ":", "ĊĠĠĠĠĠĠĠ", "Ġdrop", ".", "draw", "(", "canvas", ")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "txt", "T", "Score", ",", "Ġtext", "=\"", "Top", "ĠS", "cores", "!\",", "Ġfont", "=\"", "Arial", "Ġ", "3", "0", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "S", "_", "P", ",", "Ġtext", "=\"", "Score", "_", "Player", "\",", "Ġfont", "=\"", "Arial", "Ġ", "2", "0", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĠĠĠ", "Ġdraw", "Home", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġ#", "Ġreads", "Ġfile", "ĊĠĠĠ", "Ġdata", ".", "saved", "Scores", "ĊĠĠĠ", "Ġdata", ".", "saved", "Scores", "Ġ=", "ĠreadFile", "(\"", "score", ".", "txt", "\")", "ĊĠĠĠ", "Ġscore", "Ġ=", "Ġdata", ".", "saved", "Scores", ".", "split", "lines", "()", "ĊĠĠĠ", "Ġscores", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġfor", "Ġline", "Ġin", "Ġscore", ":", "ĊĠĠĠĠĠĠĠ", "Ġscores", ".", "append", "(", "line", ".", "split", "(\",\"", "))", "ĊĠĠĠ", "Ġ#", "Ġsorts", "Ġscores", "Ġto", "Ġfind", "Ġtop", "Ġ", "5", "ĊĠĠĠ", "Ġscores", "Ġ=", "Ġsorted", "(", "scores", ",", "Ġkey", "=", "lambda", "Ġx", ":", "Ġint", "(", "x", "[", "0", "]))", "ĊĠĠĠ", "Ġtop", "5", "Ġ=", "Ġscores", "[-", "data", ".", "num", "Scores", "Ġ:]", "ĊĠĠĠ", "Ġtop", "5", ".", "reverse", "()", "ĊĠĠĠ", "Ġfor", "Ġi", "Ġin", "Ġrange", "(", "len", "(", "top", "5", ")):", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "create", "_", "text", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "score", "Shift", "Ġ+", "Ġ(", "i", "Ġ*", "Ġ", "5", "0", "),", "Ġtext", "=", "top", "5", "[", "i", "],", "Ġfont", "=\"", "Arial", "Ġ", "1", "8", "Ġbold", "\",", "Ġfill", "=\"", "yellow", "\")", "ĊĊ", "Ċ", "################################", "####", "Ċ", "#", "Ġhelp", "Ġmode", "Ċ", "################################", "####", "ĊĊ", "Ċ", "def", "Ġhelp", "Key", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġif", "Ġevent", ".", "keys", "ym", "Ġ==", "Ġ\"", "r", "\":", "ĊĠĠĠĠĠĠĠ", "Ġinit", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġhelp", "Mouse", "Pressed", "(", "event", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġcheck", "Home", "(", "event", ",", "Ġdata", ")", "ĊĊ", "Ċ", "def", "Ġhelp", "Timer", "F", "ired", "(", "data", "):", "ĊĠĠĠ", "Ġdifficulty", "Timer", "F", "ired", "(", "data", ")", "ĊĊ", "Ċ", "def", "Ġhelp", "Red", "raw", "All", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠ", "Ġcanvas", ".", "create", "_", "image", "(", "data", ".", "width", "Ġ/", "Ġ", "2", ",", "Ġdata", ".", "help", "Y", ",", "Ġimage", "=", "data", ".", "help", "Screen", ")", "ĊĠĠĠ", "Ġfor", "Ġdrop", "Ġin", "Ġdata", ".", "editor", "D", "rops", ":", "ĊĠĠĠĠĠĠĠ", "Ġdrop", ".", "draw", "(", "canvas", ")", "ĊĠĠĠ", "Ġdraw", "Home", "(", "canvas", ",", "Ġdata", ")", "ĊĊ", "Ċ", "################################", "#######", "Ċ", "#", "Ġuse", "Ġthe", "Ġrun", "Ġfunction", "Ġas", "-", "is", "Ġfrom", "Ġnotes", "Ċ", "################################", "#######", "ĊĊ", "Ċ", "def", "Ġrun", "(", "width", "=", "1", "5", "0", "0", "0", ",", "Ġheight", "=", "2", "5", "0", "0", "0", "):", "ĊĠĠĠ", "Ġdef", "Ġredraw", "All", "Wrapper", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "delete", "(", "ALL", ")", "ĊĠĠĠĠĠĠĠ", "Ġredraw", "All", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "update", "()", "ĊĊĠĠĠ", "Ġdef", "Ġmouse", "Pressed", "Wrapper", "(", "event", ",", "Ġcanvas", ",", "Ġdata", "):", "ĊĠĠĠĠĠĠĠ", "Ġmouse", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠĠĠĠĠ", "Ġredraw", "All", "Wrapper", "(", "canvas", ",", "Ġdata", ")", "ĊĊĠĠĠ", "Ġdef", "Ġkey", "Pressed", "Wrapper", "(", "event", ",", "Ġcanvas", ",", "Ġdata", "):", "ĊĠĠĠĠĠĠĠ", "Ġkey", "Pressed", "(", "event", ",", "Ġdata", ")", "ĊĠĠĠĠĠĠĠ", "Ġredraw", "All", "Wrapper", "(", "canvas", ",", "Ġdata", ")", "ĊĊĠĠĠ", "Ġdef", "Ġtimer", "F", "ired", "Wrapper", "(", "canvas", ",", "Ġdata", "):", "ĊĠĠĠĠĠĠĠ", "Ġtimer", "F", "ired", "(", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġredraw", "All", "Wrapper", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġpause", ",", "Ġthen", "Ġcall", "Ġtimer", "F", "ired", "Ġagain", "ĊĠĠĠĠĠĠĠ", "Ġcanvas", ".", "after", "(", "data", ".", "timer", "Delay", ",", "Ġtimer", "F", "ired", "Wrapper", ",", "Ġcanvas", ",", "Ġdata", ")", "ĊĊĠĠĠ", "Ġ#", "ĠSet", "Ġup", "Ġdata", "Ġand", "Ġcall", "Ġinit", "ĊĠĠĠ", "Ġclass", "ĠStruct", "(", "object", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdata", "Ġ=", "ĠStruct", "()", "ĊĠĠĠ", "Ġdata", ".", "width", "Ġ=", "Ġwidth", "ĊĠĠĠ", "Ġdata", ".", "height", "Ġ=", "Ġheight", "ĊĠĠĠ", "Ġdata", ".", "timer", "Delay", "Ġ=", "Ġ", "1", "0", "0", "Ġ", "Ġ#", "Ġmilliseconds", "ĊĠĠĠ", "Ġ#", "Ġcreate", "Ġthe", "Ġroot", "Ġand", "Ġthe", "Ġcanvas", "ĊĠĠĠ", "Ġroot", "Ġ=", "ĠTk", "()", "ĊĠĠĠ", "Ġinit", "(", "data", ")", "ĊĠĠĠ", "Ġcanvas", "Ġ=", "ĠCanvas", "(", "root", ",", "Ġwidth", "=", "data", ".", "width", ",", "Ġheight", "=", "data", ".", "height", ")", "ĊĠĠĠ", "Ġcanvas", ".", "pack", "()", "ĊĠĠĠ", "Ġ#", "Ġset", "Ġup", "Ġevents", "ĊĠĠĠ", "Ġroot", ".", "bind", "(\"<", "Button", "-", "1", ">\",", "Ġlambda", "Ġevent", ":", "Ġmouse", "Pressed", "Wrapper", "(", "event", ",", "Ġcanvas", ",", "Ġdata", "))", "ĊĠĠĠ", "Ġroot", ".", "bind", "(\"<", "Key", ">\",", "Ġlambda", "Ġevent", ":", "Ġkey", "Pressed", "Wrapper", "(", "event", ",", "Ġcanvas", ",", "Ġdata", "))", "ĊĠĠĠ", "Ġtimer", "F", "ired", "Wrapper", "(", "canvas", ",", "Ġdata", ")", "ĊĠĠĠ", "Ġ#", "Ġand", "Ġlaunch", "Ġthe", "Ġapp", "ĊĠĠĠ", "Ġroot", ".", "main", "loop", "()", "Ġ", "Ġ#", "Ġblocks", "Ġuntil", "Ġwindow", "Ġis", "Ġclosed", "ĊĠĠĠ", "Ġprint", "(\"", "bye", "!\")", "ĊĊ", "Ċ", "run", "(", "1", "0", "0", "0", ",", "Ġ", "1", "0", "0", "0", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 11, 12, 12, 12, 13, 13, 13, 14, 14, 14, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 42, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 66, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 87, 87, 87, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 91, 91, 91, 91, 93, 94, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 96, 96, 96, 96, 96, 97, 97, 97, 97, 97, 97, 97, 97, 97, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 102, 102, 103, 103, 103, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 113, 113, 113, 113, 113, 113, 113, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 118, 118, 118, 118, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 131, 131, 131, 131, 131, 131, 131, 131, 132, 132, 132, 132, 132, 132, 132, 132, 133, 133, 133, 133, 133, 133, 133, 133, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 136, 136, 136, 136, 136, 136, 136, 136, 136, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 138, 138, 138, 138, 138, 138, 138, 138, 139, 139, 139, 139, 139, 139, 139, 141, 142, 142, 142, 142, 142, 142, 142, 142, 142, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 146, 146, 146, 146, 146, 146, 146, 146, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 150, 150, 150, 150, 150, 150, 151, 151, 151, 151, 151, 151, 151, 152, 152, 152, 152, 152, 152, 153, 153, 153, 153, 153, 153, 155, 156, 156, 156, 156, 156, 156, 156, 156, 157, 157, 157, 157, 157, 157, 157, 157, 159, 160, 160, 160, 160, 160, 160, 160, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 167, 167, 167, 167, 167, 167, 167, 167, 168, 168, 168, 168, 168, 168, 168, 168, 169, 169, 169, 169, 169, 169, 169, 169, 170, 170, 170, 170, 170, 170, 170, 170, 170, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 172, 172, 172, 172, 172, 172, 172, 172, 172, 173, 173, 173, 173, 173, 173, 173, 173, 173, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 176, 177, 177, 177, 178, 178, 178, 178, 179, 179, 179, 181, 182, 182, 182, 182, 182, 182, 182, 182, 182, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 186, 186, 186, 186, 186, 186, 186, 186, 186, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 189, 189, 189, 189, 189, 189, 189, 189, 189, 190, 190, 190, 190, 190, 190, 190, 190, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 193, 193, 193, 193, 193, 193, 193, 193, 193, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 195, 195, 195, 195, 195, 195, 195, 195, 195, 196, 196, 196, 196, 196, 196, 196, 196, 196, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 199, 199, 199, 199, 199, 199, 199, 199, 199, 200, 200, 200, 200, 200, 200, 200, 200, 200, 202, 203, 203, 203, 203, 203, 203, 203, 203, 203, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 205, 205, 205, 205, 205, 205, 205, 205, 205, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 207, 207, 207, 207, 207, 207, 207, 207, 207, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 210, 210, 210, 210, 210, 210, 210, 210, 210, 211, 211, 211, 211, 211, 211, 211, 211, 211, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 214, 214, 214, 214, 214, 214, 214, 214, 214, 215, 215, 215, 215, 215, 215, 215, 215, 215, 216, 216, 216, 216, 216, 216, 216, 216, 216, 217, 217, 217, 217, 217, 217, 217, 217, 217, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 220, 220, 220, 220, 220, 220, 220, 220, 220, 221, 221, 221, 221, 221, 221, 221, 221, 221, 223, 224, 224, 224, 224, 224, 224, 224, 224, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 226, 226, 226, 226, 226, 226, 226, 226, 226, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 228, 228, 228, 228, 228, 228, 228, 228, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 230, 230, 230, 230, 230, 230, 230, 230, 230, 231, 231, 231, 231, 231, 231, 231, 231, 231, 232, 232, 232, 232, 232, 232, 232, 232, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 234, 234, 234, 234, 234, 234, 234, 234, 234, 235, 235, 235, 235, 235, 235, 235, 235, 235, 236, 236, 236, 236, 236, 236, 236, 236, 236, 237, 237, 237, 237, 237, 237, 237, 237, 237, 238, 238, 238, 238, 238, 238, 238, 238, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 240, 240, 240, 240, 240, 240, 240, 240, 240, 241, 241, 241, 241, 241, 241, 241, 241, 241, 242, 242, 242, 242, 242, 242, 242, 242, 244, 245, 245, 245, 245, 245, 245, 245, 245, 245, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 252, 252, 252, 252, 252, 252, 252, 252, 252, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 256, 256, 256, 256, 256, 256, 256, 256, 256, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 258, 258, 258, 258, 258, 258, 258, 258, 258, 259, 259, 259, 259, 259, 259, 259, 259, 259, 259, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 262, 262, 262, 262, 262, 262, 262, 262, 262, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 265, 266, 266, 266, 267, 267, 267, 267, 267, 268, 268, 268, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 270, 270, 270, 270, 270, 270, 270, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 273, 273, 273, 273, 273, 273, 273, 273, 273, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 275, 275, 275, 275, 275, 275, 275, 275, 275, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 277, 277, 277, 277, 277, 277, 277, 277, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 279, 279, 279, 279, 279, 279, 279, 279, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 281, 281, 281, 281, 281, 281, 281, 281, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 283, 283, 283, 283, 283, 283, 283, 283, 283, 285, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 287, 287, 289, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 291, 291, 291, 291, 291, 291, 291, 291, 291, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 293, 293, 293, 293, 293, 293, 293, 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, 297, 298, 298, 298, 298, 298, 298, 298, 298, 298, 298, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 306, 307, 307, 307, 307, 307, 307, 307, 307, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 311, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 315, 315, 315, 315, 315, 315, 315, 316, 316, 316, 316, 316, 316, 316, 317, 317, 317, 317, 317, 317, 317, 317, 318, 318, 318, 318, 318, 318, 319, 319, 319, 319, 320, 320, 320, 320, 320, 320, 320, 323, 323, 323, 323, 323, 323, 323, 325, 326, 326, 326, 326, 326, 326, 326, 326, 328, 329, 329, 329, 329, 329, 329, 329, 329, 331, 332, 332, 332, 332, 332, 332, 334, 335, 335, 335, 335, 335, 337, 338, 338, 338, 339, 339, 339, 339, 339, 339, 339, 339, 339, 340, 340, 340, 340, 340, 341, 341, 342, 342, 342, 342, 342, 342, 342, 342, 342, 344, 345, 345, 345, 346, 346, 346, 346, 346, 346, 347, 347, 347, 349, 350, 350, 350, 350, 350, 350, 350, 350, 350, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 352, 352, 352, 352, 352, 352, 352, 354, 355, 355, 355, 355, 355, 355, 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, 357, 357, 357, 357, 357, 357, 359, 360, 360, 360, 361, 361, 361, 361, 361, 361, 362, 362, 362, 364, 365, 365, 365, 365, 365, 365, 365, 365, 365, 365, 365, 365, 365, 365, 365, 366, 366, 366, 366, 366, 366, 366, 366, 367, 367, 367, 367, 367, 367, 367, 367, 367, 367, 367, 368, 368, 368, 368, 368, 368, 369, 369, 369, 369, 369, 369, 370, 370, 370, 370, 370, 370, 370, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 372, 372, 372, 372, 372, 372, 372, 372, 373, 373, 373, 373, 373, 373, 373, 373, 375, 375, 375, 375, 375, 375, 375, 375, 376, 376, 376, 376, 376, 376, 376, 377, 377, 377, 377, 377, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 379, 379, 379, 379, 379, 379, 379, 379, 379, 380, 380, 380, 380, 380, 381, 381, 381, 381, 381, 382, 382, 382, 382, 382, 382, 382, 382, 382, 383, 383, 383, 383, 383, 383, 383, 383, 383, 384, 384, 384, 384, 384, 385, 385, 385, 385, 385, 385, 385, 386, 386, 386, 386, 386, 386, 386, 387, 387, 387, 387, 387, 388, 388, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 391, 391, 391, 391, 391, 391, 392, 392, 392, 392, 392, 392, 392, 392, 394, 395, 395, 395, 395, 395, 395, 396, 396, 396, 396, 396, 396, 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 401, 401, 401, 401, 401, 401, 401, 401, 401, 401, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 403, 403, 403, 403, 403, 403, 403, 403, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 405, 405, 405, 405, 405, 405, 405, 405, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 407, 407, 407, 407, 407, 407, 407, 407, 407, 407, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 410, 411, 411, 411, 411, 411, 411, 411, 411, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 414, 414, 414, 414, 414, 414, 414, 414, 414, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 419, 419, 419, 419, 419, 419, 419, 419, 419, 419, 419, 419, 419, 419, 420, 420, 420, 420, 420, 420, 420, 420, 420, 420, 420, 421, 421, 421, 421, 421, 421, 421, 421, 421, 422, 422, 422, 422, 422, 422, 422, 422, 422, 422, 422, 422, 422, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 425, 425, 425, 425, 425, 425, 425, 425, 425, 425, 425, 425, 426, 426, 426, 426, 426, 426, 426, 426, 426, 426, 426, 426, 426, 426, 428, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 430, 430, 430, 430, 430, 430, 430, 430, 430, 430, 430, 431, 431, 431, 431, 431, 431, 431, 431, 431, 433, 433, 433, 433, 433, 433, 433, 433, 433, 433, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 436, 437, 437, 437, 437, 437, 437, 437, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 443, 443, 443, 443, 443, 443, 443, 443, 444, 444, 444, 444, 444, 444, 444, 444, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 446, 446, 446, 446, 446, 446, 446, 446, 446, 446, 446, 446, 446, 446, 446, 446, 446, 446, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 449, 449, 449, 449, 449, 449, 449, 449, 450, 450, 450, 450, 450, 450, 450, 450, 450, 450, 450, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 454, 454, 454, 454, 454, 454, 454, 454, 455, 455, 455, 455, 455, 455, 455, 455, 455, 455, 455, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 458, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 461, 461, 461, 461, 461, 461, 461, 461, 461, 463, 463, 463, 463, 463, 463, 463, 463, 463, 463, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 466, 467, 467, 467, 467, 467, 467, 467, 467, 467, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 473, 473, 473, 473, 473, 473, 473, 473, 473, 474, 474, 474, 474, 474, 474, 474, 474, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 477, 477, 477, 477, 477, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 480, 480, 480, 480, 480, 480, 480, 480, 480, 481, 481, 481, 481, 481, 481, 481, 481, 481, 481, 481, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 483, 483, 483, 483, 483, 483, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 486, 486, 486, 486, 486, 486, 486, 486, 486, 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 490, 491, 491, 491, 491, 491, 491, 491, 491, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 493, 493, 493, 493, 493, 493, 494, 494, 494, 494, 494, 494, 495, 495, 495, 495, 495, 495, 495, 495, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 498, 498, 498, 498, 498, 498, 498, 498, 498, 498, 498, 498, 498, 498, 498, 498, 498, 498, 498, 498, 498, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 502, 502, 502, 502, 502, 502, 502, 502, 503, 503, 503, 503, 503, 503, 503, 503, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 505, 505, 505, 505, 505, 505, 505, 506, 506, 506, 506, 506, 506, 506, 506, 506, 506, 506, 507, 507, 507, 507, 507, 507, 507, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 509, 509, 509, 509, 509, 509, 509, 509, 510, 510, 510, 511, 511, 511, 511, 511, 511, 511, 511, 512, 512, 512, 512, 512, 512, 512, 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, 514, 514, 514, 514, 514, 514, 514, 514, 515, 515, 515, 516, 516, 516, 516, 516, 516, 516, 516, 518, 519, 519, 519, 519, 519, 519, 519, 519, 519, 520, 520, 520, 520, 520, 520, 520, 520, 520, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 525, 525, 525, 525, 525, 525, 526, 526, 526, 526, 526, 526, 526, 526, 527, 527, 527, 527, 527, 527, 527, 527, 527, 527, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 531, 531, 531, 531, 531, 531, 531, 531, 531, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, 534, 534, 534, 534, 534, 534, 534, 534, 534, 536, 537, 537, 537, 537, 537, 537, 537, 537, 537, 537, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 539, 539, 539, 539, 539, 539, 539, 539, 539, 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, 541, 541, 541, 541, 541, 541, 541, 541, 541, 541, 542, 542, 542, 542, 542, 542, 542, 542, 542, 542, 542, 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, 545, 546, 546, 546, 546, 546, 546, 546, 546, 546, 547, 547, 547, 547, 547, 547, 547, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 550, 551, 551, 551, 551, 551, 551, 551, 551, 551, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 554, 554, 554, 554, 554, 556, 557, 557, 557, 557, 557, 557, 557, 557, 557, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 560, 560, 560, 560, 560, 560, 560, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 572, 572, 572, 572, 572, 572, 572, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 574, 574, 574, 574, 574, 574, 574, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 576, 576, 576, 576, 576, 576, 576, 576, 576, 576, 578, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 580, 580, 580, 580, 580, 580, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 585, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 592, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 595, 595, 595, 595, 595, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 597, 597, 597, 597, 597, 597, 597, 597, 597, 597, 597, 597, 597, 598, 598, 598, 598, 598, 598, 598, 598, 598, 598, 598, 598, 598, 598, 598, 598, 598, 598, 598, 598, 598, 598, 599, 599, 599, 599, 599, 599, 599, 599, 599, 599, 599, 599, 599, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 601, 601, 601, 601, 601, 601, 601, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 602, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 604, 604, 604, 604, 604, 604, 604, 604, 604, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 608, 609, 609, 609, 609, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 611, 611, 611, 611, 611, 611, 611, 611, 611, 613, 614, 614, 614, 614, 614, 614, 614, 614, 614, 614, 615, 615, 615, 615, 615, 615, 615, 615, 617, 618, 618, 618, 618, 618, 618, 618, 618, 618, 619, 619, 619, 619, 619, 619, 619, 619, 619, 619, 619, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 621, 621, 621, 621, 621, 621, 621, 621, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 623, 623, 623, 623, 623, 623, 623, 623, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 625, 625, 625, 625, 625, 625, 625, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 627, 627, 627, 627, 627, 627, 627, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 629, 629, 629, 629, 629, 629, 629, 630, 630, 630, 630, 630, 630, 630, 630, 630, 630, 631, 631, 631, 631, 631, 631, 631, 631, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 633, 633, 633, 633, 633, 633, 633, 633, 633, 633, 633, 634, 634, 634, 634, 634, 634, 635, 635, 635, 635, 635, 635, 635, 635, 635, 635, 635, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 637, 637, 637, 637, 637, 637, 637, 637, 638, 638, 638, 638, 638, 638, 638, 638, 638, 638, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 640, 640, 640, 640, 640, 640, 640, 640, 641, 641, 641, 641, 641, 641, 641, 641, 641, 641, 641, 641, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 643, 643, 643, 643, 643, 643, 643, 643, 643, 643, 644, 644, 644, 644, 644, 644, 644, 644, 644, 644, 644, 644, 645, 645, 645, 645, 645, 645, 645, 645, 645, 645, 645, 646, 646, 646, 646, 646, 647, 647, 647, 647, 647, 647, 647, 647, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 652, 653, 653, 653, 653, 653, 653, 653, 653, 653, 653, 653, 654, 654, 654, 654, 654, 654, 654, 654, 654, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 658, 658, 658, 658, 658, 658, 658, 658, 658, 659, 659, 659, 659, 659, 659, 659, 659, 659, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 663, 663, 663, 663, 663, 663, 663, 664, 664, 664, 664, 664, 664, 664, 664, 664, 664, 665, 665, 665, 665, 665, 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, 667, 667, 667, 667, 667, 667, 667, 668, 668, 668, 668, 668, 668, 668, 668, 668, 669, 669, 669, 669, 669, 670, 670, 671, 671, 671, 671, 671, 671, 671, 671, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 674, 674, 674, 674, 674, 674, 674, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 676, 676, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 678, 678, 678, 678, 678, 678, 678, 678, 678, 679, 679, 679, 679, 679, 679, 679, 679, 680, 680, 680, 680, 680, 680, 680, 680, 682, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 688, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 693, 694, 694, 694, 695, 695, 695, 695, 695, 695, 696, 696, 696, 697, 697, 697, 697, 697, 697, 697, 697, 698, 698, 698, 698, 698, 698, 698, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 702, 702, 702, 702, 702, 702, 702, 702, 702, 702, 702, 702, 702, 702, 702, 702, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 711, 711, 711, 711, 711, 711, 711, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 716, 716, 716, 716, 716, 716, 716, 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 721, 721, 721, 721, 721, 721, 721, 721, 721, 723, 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 727, 727, 727, 727, 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, 729, 729, 729, 729, 729, 729, 729, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, 734, 734, 734, 734, 734, 734, 734, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, 741, 741, 741, 741, 741, 741, 741, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 746, 746, 746, 746, 746, 746, 746, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 751, 751, 751, 751, 751, 751, 751, 751, 751, 751, 751, 751, 751, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 753, 753, 753, 753, 753, 753, 753, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 756, 756, 756, 756, 756, 756, 756, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 760, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 762, 762, 762, 762, 762, 762, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 764, 764, 764, 764, 764, 765, 765, 765, 765, 765, 765, 765, 765, 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, 767, 767, 767, 767, 767, 767, 767, 767, 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 770, 770, 770, 770, 770, 770, 770, 770, 771, 771, 771, 771, 771, 771, 771, 771, 771, 771, 771, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 773, 773, 773, 773, 773, 773, 773, 773, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 776, 776, 776, 776, 776, 776, 776, 776, 777, 777, 777, 777, 777, 777, 777, 777, 777, 777, 777, 779, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 781, 781, 781, 781, 781, 781, 781, 781, 783, 784, 784, 784, 784, 784, 784, 784, 784, 784, 784, 785, 785, 785, 785, 785, 785, 785, 785, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 787, 787, 787, 787, 787, 787, 787, 787, 787, 787, 787, 787, 787, 787, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 789, 789, 789, 789, 789, 789, 789, 789, 789, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 791, 791, 791, 791, 791, 791, 791, 792, 792, 792, 792, 792, 792, 792, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 795, 795, 795, 795, 795, 795, 795, 795, 795, 796, 796, 796, 796, 796, 796, 796, 796, 796, 796, 796, 796, 797, 797, 797, 797, 797, 797, 797, 798, 798, 798, 798, 798, 798, 798, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 800, 800, 800, 800, 800, 800, 800, 800, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 803, 803, 803, 803, 803, 803, 804, 804, 804, 804, 804, 804, 804, 804, 804, 804, 804, 805, 805, 805, 805, 805, 805, 805, 805, 805, 805, 805, 806, 806, 806, 806, 806, 806, 806, 806, 807, 807, 807, 807, 807, 807, 807, 807, 807, 807, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 809, 809, 809, 809, 809, 809, 809, 809, 810, 810, 810, 810, 810, 810, 810, 810, 810, 812, 813, 813, 813, 813, 813, 813, 813, 813, 813, 813, 814, 814, 814, 814, 814, 814, 814, 814, 814, 814, 814, 814, 814, 815, 815, 815, 815, 815, 815, 815, 815, 815, 815, 816, 816, 816, 816, 816, 816, 816, 816, 816, 816, 816, 816, 817, 817, 817, 817, 817, 817, 817, 818, 818, 818, 818, 818, 818, 818, 818, 818, 818, 818, 818, 818, 819, 819, 819, 819, 819, 819, 819, 819, 819, 819, 820, 820, 820, 820, 820, 820, 820, 820, 820, 820, 820, 820, 821, 821, 821, 821, 821, 821, 821, 821, 821, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 824, 824, 824, 824, 824, 824, 824, 824, 825, 825, 825, 825, 825, 825, 825, 825, 825, 826, 826, 826, 826, 826, 826, 826, 826, 826, 827, 827, 827, 827, 827, 827, 827, 827, 827, 827, 827, 827, 827, 827, 827, 827, 827, 827, 827, 827, 827, 828, 828, 828, 828, 828, 828, 828, 828, 829, 829, 829, 829, 829, 829, 829, 829, 829, 831, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 833, 833, 833, 833, 833, 833, 833, 833, 833, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 839, 839, 839, 839, 839, 839, 839, 839, 839, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 841, 841, 841, 841, 841, 841, 841, 841, 841, 842, 842, 842, 842, 842, 842, 842, 842, 842, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 847, 847, 847, 847, 847, 847, 847, 848, 848, 848, 848, 848, 848, 848, 848, 850, 851, 851, 851, 851, 851, 851, 851, 851, 852, 852, 852, 852, 852, 852, 852, 852, 852, 852, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 862, 862, 862, 862, 862, 862, 862, 862, 862, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 868, 869, 869, 869, 870, 870, 870, 870, 871, 871, 871, 873, 874, 874, 874, 874, 874, 874, 874, 874, 874, 874, 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 876, 876, 876, 876, 876, 878, 879, 879, 879, 879, 879, 879, 879, 879, 879, 879, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 881, 881, 881, 881, 881, 881, 881, 881, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 884, 884, 884, 884, 884, 884, 884, 884, 884, 885, 885, 885, 885, 885, 885, 885, 885, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 888, 888, 888, 888, 888, 888, 888, 888, 888, 889, 889, 889, 889, 889, 889, 889, 889, 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 892, 892, 892, 892, 892, 892, 892, 892, 892, 893, 893, 893, 893, 893, 893, 893, 893, 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, 895, 895, 895, 895, 895, 895, 895, 895, 896, 896, 896, 896, 896, 896, 896, 896, 898, 899, 899, 899, 899, 899, 899, 899, 899, 899, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 903, 903, 903, 903, 903, 903, 903, 903, 903, 903, 903, 904, 904, 904, 904, 904, 904, 904, 904, 904, 904, 905, 905, 905, 905, 905, 905, 905, 905, 905, 905, 905, 905, 905, 905, 905, 905, 905, 905, 905, 905, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 907, 907, 907, 907, 907, 907, 907, 907, 907, 908, 908, 908, 908, 908, 908, 908, 908, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 915, 916, 916, 916, 916, 916, 916, 916, 916, 916, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 920, 920, 920, 920, 920, 920, 920, 920, 920, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 923, 923, 923, 923, 923, 923, 923, 923, 923, 924, 924, 924, 924, 924, 924, 924, 924, 924, 924, 924, 924, 924, 924, 924, 924, 924, 925, 925, 925, 925, 925, 925, 925, 925, 925, 925, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 927, 928, 928, 928, 928, 928, 928, 928, 928, 928, 930, 931, 931, 931, 931, 931, 931, 931, 931, 931, 932, 932, 932, 932, 932, 933, 933, 933, 933, 933, 933, 933, 933, 933, 933, 933, 933, 933, 933, 933, 933, 933, 933, 933, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 941, 941, 941, 941, 941, 941, 941, 941, 941, 941, 941, 941, 941, 941, 941, 941, 941, 941, 941, 941, 941, 941, 941, 941, 941, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 949, 949, 949, 949, 949, 949, 949, 949, 949, 949, 949, 949, 949, 949, 949, 949, 949, 949, 949, 949, 949, 949, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 953, 953, 953, 953, 953, 953, 953, 953, 955, 956, 956, 956, 956, 956, 956, 956, 956, 956, 957, 957, 957, 957, 957, 957, 957, 957, 957, 957, 957, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 959, 959, 959, 959, 959, 959, 959, 959, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 963, 964, 964, 964, 964, 964, 964, 964, 964, 964, 965, 965, 965, 965, 965, 965, 965, 965, 966, 966, 966, 966, 966, 966, 966, 966, 966, 966, 966, 966, 966, 967, 967, 967, 967, 967, 967, 968, 968, 968, 968, 968, 968, 968, 968, 968, 968, 969, 969, 969, 969, 969, 969, 969, 969, 969, 969, 971, 972, 972, 972, 972, 972, 972, 972, 973, 973, 973, 973, 974, 974, 974, 974, 974, 974, 974, 974, 974, 974, 974, 974, 974, 974, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 977, 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 982, 982, 982, 982, 982, 982, 982, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 984, 984, 984, 984, 984, 984, 984, 984, 985, 985, 985, 985, 985, 985, 985, 985, 987, 988, 988, 988, 989, 989, 989, 989, 989, 990, 990, 990, 991, 991, 991, 991, 991, 991, 991, 992, 992, 992, 992, 992, 993, 993, 993, 993, 993, 993, 993, 993, 993, 993, 994, 994, 994, 994, 994, 994, 994, 995, 995, 995, 995, 995, 995, 995, 995, 995, 995, 996, 996, 996, 996, 996, 996, 996, 996, 997, 997, 997, 997, 997, 997, 997, 997, 997, 997, 998, 998, 998, 998, 998, 998, 998, 998, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1006, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1008, 1008, 1008, 1008, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1015, 1015, 1015, 1015, 1015, 1015, 1015, 1015, 1015, 1015, 1015, 1015, 1015, 1015, 1015, 1015, 1015, 1015, 1015, 1015, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1026, 1026, 1026, 1026, 1026, 1026, 1026, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1031, 1031, 1031, 1031, 1031, 1031, 1031, 1033, 1034, 1034, 1034, 1034, 1034, 1034, 1034, 1034, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1043, 1043, 1043, 1043, 1043, 1043, 1043, 1043, 1043, 1043, 1043, 1043, 1043, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1047, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1050, 1050, 1050, 1050, 1050, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1052, 1052, 1052, 1052, 1052, 1052, 1052, 1052, 1052, 1052, 1052, 1052, 1052, 1052, 1052, 1052, 1052, 1052, 1052, 1052, 1052, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1057, 1058, 1058, 1058, 1058, 1058, 1058, 1058, 1058, 1058, 1058, 1058, 1059, 1059, 1059, 1059, 1059, 1059, 1059, 1059, 1061, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1063, 1063, 1063, 1063, 1063, 1063, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1070, 1070, 1070, 1070, 1070, 1070, 1070, 1070, 1070, 1070, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1075, 1075, 1075, 1075, 1075, 1076, 1076, 1076, 1076, 1076, 1076, 1076, 1076, 1076, 1076, 1076, 1077, 1077, 1077, 1077, 1077, 1077, 1077, 1077, 1077, 1077, 1077, 1078, 1078, 1078, 1078, 1078, 1078, 1078, 1078, 1078, 1078, 1078, 1079, 1079, 1079, 1079, 1079, 1079, 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1082, 1082, 1082, 1082, 1082, 1082, 1082, 1082, 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1084, 1084, 1084, 1084, 1084, 1084, 1084, 1084, 1084, 1084, 1085, 1085, 1085, 1085, 1085, 1085, 1085, 1085, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1087, 1087, 1087, 1087, 1087, 1087, 1087, 1087, 1087, 1087, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1089, 1089, 1089, 1089, 1089, 1089, 1089, 1089, 1089, 1089, 1089, 1090, 1090, 1090, 1090, 1090, 1091, 1091, 1091, 1091, 1091, 1091, 1091, 1091, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1093, 1093, 1093, 1093, 1093, 1093, 1093, 1093, 1093, 1093, 1093, 1093, 1093, 1093, 1093, 1093, 1093, 1093, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1096, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1100, 1100, 1100, 1100, 1100, 1100, 1100, 1100, 1100, 1100, 1100, 1100, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1102, 1102, 1102, 1102, 1102, 1102, 1102, 1102, 1102, 1102, 1102, 1103, 1103, 1103, 1103, 1103, 1103, 1103, 1103, 1103, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1106, 1106, 1106, 1106, 1106, 1106, 1106, 1107, 1107, 1107, 1107, 1107, 1107, 1107, 1107, 1108, 1108, 1108, 1108, 1108, 1109, 1109, 1109, 1109, 1109, 1109, 1109, 1109, 1109, 1109, 1109, 1109, 1110, 1110, 1110, 1110, 1110, 1110, 1110, 1110, 1110, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1112, 1112, 1112, 1112, 1112, 1113, 1113, 1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1117, 1117, 1117, 1117, 1117, 1117, 1117, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1119, 1119, 1120, 1120, 1120, 1120, 1120, 1120, 1120, 1120, 1120, 1121, 1121, 1121, 1121, 1121, 1121, 1121, 1121, 1122, 1122, 1122, 1122, 1122, 1122, 1122, 1122, 1124, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1126, 1126, 1126, 1126, 1126, 1126, 1126, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1132, 1133, 1133, 1133, 1134, 1134, 1134, 1134, 1134, 1134, 1135, 1135, 1135, 1136, 1136, 1136, 1136, 1136, 1136, 1136, 1136, 1136, 1136, 1137, 1137, 1137, 1137, 1137, 1137, 1137, 1137, 1137, 1137, 1138, 1138, 1138, 1138, 1138, 1140, 1141, 1141, 1141, 1141, 1141, 1141, 1141, 1141, 1141, 1141, 1141, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1148, 1148, 1148, 1148, 1148, 1148, 1148, 1148, 1148, 1148, 1148, 1148, 1148, 1148, 1148, 1148, 1148, 1148, 1148, 1148, 1148, 1149, 1149, 1149, 1149, 1149, 1149, 1149, 1149, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1154, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1156, 1156, 1156, 1156, 1156, 1156, 1156, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1160, 1160, 1160, 1160, 1160, 1160, 1160, 1160, 1160, 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1162, 1162, 1162, 1162, 1162, 1162, 1162, 1162, 1162, 1162, 1162, 1162, 1162, 1162, 1162, 1162, 1162, 1162, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1165, 1165, 1165, 1165, 1165, 1165, 1165, 1165, 1166, 1166, 1166, 1166, 1166, 1166, 1166, 1166, 1166, 1166, 1166, 1166, 1166, 1166, 1166, 1166, 1166, 1166, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1167, 1168, 1168, 1168, 1168, 1168, 1168, 1168, 1168, 1168, 1169, 1169, 1169, 1169, 1169, 1169, 1169, 1169, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1173, 1174, 1174, 1174, 1174, 1174, 1174, 1174, 1174, 1176, 1177, 1177, 1177, 1177, 1177, 1177, 1177, 1177, 1177, 1178, 1178, 1178, 1178, 1178, 1178, 1179, 1179, 1179, 1179, 1179, 1179, 1179, 1179, 1180, 1180, 1180, 1180, 1180, 1180, 1180, 1180, 1180, 1180, 1180, 1180, 1180, 1181, 1181, 1181, 1181, 1181, 1181, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1183, 1183, 1183, 1183, 1183, 1183, 1183, 1183, 1183, 1183, 1185, 1186, 1186, 1186, 1186, 1186, 1186, 1186, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1190, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1192, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1193, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1195, 1195, 1195, 1195, 1195, 1195, 1195, 1196, 1196, 1196, 1196, 1196, 1196, 1196, 1196, 1196, 1196, 1197, 1197, 1197, 1197, 1197, 1197, 1197, 1197, 1199, 1200, 1200, 1200, 1201, 1201, 1201, 1201, 1202, 1202, 1202, 1203, 1203, 1203, 1203, 1203, 1203, 1203, 1203, 1203, 1203, 1204, 1204, 1204, 1204, 1204, 1204, 1204, 1204, 1204, 1204, 1204, 1204, 1204, 1204, 1205, 1205, 1205, 1205, 1205, 1205, 1205, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1207, 1207, 1207, 1208, 1208, 1208, 1208, 1208, 1208, 1208, 1208, 1208, 1208, 1208, 1208, 1208, 1208, 1208, 1208, 1209, 1209, 1209, 1209, 1209, 1209, 1209, 1209, 1209, 1209, 1209, 1209, 1209, 1209, 1209, 1209, 1209, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1211, 1211, 1212, 1212, 1212, 1212, 1212, 1212, 1212, 1212, 1212, 1212, 1212, 1212, 1212, 1213, 1213, 1213, 1213, 1213, 1213, 1213, 1213, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1218, 1218, 1218, 1219, 1219, 1219, 1219, 1219, 1219, 1219, 1219, 1219, 1219, 1219, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1224, 1224, 1224, 1224, 1224, 1224, 1224, 1224, 1224, 1224, 1224, 1224, 1224, 1224, 1224, 1226, 1227, 1227, 1227, 1227, 1227, 1227, 1227, 1227, 1227, 1227, 1227, 1228, 1228, 1228, 1228, 1228, 1228, 1228, 1228, 1229, 1229, 1229, 1229, 1229, 1229, 1229, 1229, 1229, 1229, 1229, 1229, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1231, 1232, 1232, 1232, 1234, 1235, 1235, 1235, 1235, 1235, 1235, 1235, 1235, 1235, 1235, 1236, 1236, 1236, 1236, 1236, 1236, 1236, 1236, 1236, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1237, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1238, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1239, 1240, 1240, 1240, 1240, 1240, 1240, 1240, 1240, 1240, 1240, 1241, 1241, 1241, 1241, 1241, 1241, 1241, 1241, 1241, 1241, 1241, 1241, 1241, 1241, 1241, 1243, 1244, 1244, 1244, 1244, 1244, 1244, 1244, 1244, 1244, 1244, 1245, 1245, 1245, 1245, 1245, 1245, 1245, 1245, 1246, 1246, 1246, 1246, 1246, 1246, 1246, 1246, 1246, 1247, 1247, 1247, 1247, 1247, 1247, 1247, 1247, 1247, 1247, 1247, 1247, 1247, 1248, 1248, 1248, 1248, 1248, 1248, 1248, 1248, 1248, 1248, 1248, 1248, 1248, 1248, 1248, 1248, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1249, 1250, 1250, 1250, 1250, 1250, 1250, 1250, 1250, 1250, 1250, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1251, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1252, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1253, 1254, 1254, 1254, 1254, 1254, 1254, 1254, 1254, 1254, 1254, 1254, 1254, 1255, 1255, 1255, 1255, 1255, 1255, 1255, 1255, 1255, 1255, 1255, 1255, 1255, 1255, 1255, 1256, 1256, 1256, 1256, 1256, 1256, 1256, 1256, 1256, 1256, 1256, 1256, 1256, 1256, 1256, 1256, 1256, 1256, 1257, 1257, 1257, 1257, 1257, 1257, 1257, 1257, 1257, 1257, 1258, 1258, 1258, 1258, 1258, 1258, 1258, 1258, 1258, 1258, 1258, 1258, 1258, 1258, 1258, 1258, 1258, 1258, 1258, 1258, 1258, 1258, 1259, 1259, 1259, 1259, 1259, 1259, 1259, 1259, 1259, 1259, 1259, 1259, 1259, 1259, 1259, 1259, 1259, 1259, 1259, 1259, 1259, 1259, 1260, 1260, 1260, 1260, 1260, 1260, 1260, 1260, 1260, 1260, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1261, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1262, 1263, 1263, 1263, 1263, 1263, 1263, 1263, 1263, 1263, 1264, 1264, 1264, 1264, 1264, 1264, 1264, 1264, 1264, 1266, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1268, 1268, 1268, 1268, 1268, 1268, 1268, 1268, 1269, 1269, 1269, 1269, 1269, 1269, 1269, 1269, 1269, 1269, 1269, 1269, 1269, 1269, 1270, 1270, 1270, 1270, 1270, 1270, 1270, 1270, 1270, 1270, 1270, 1271, 1271, 1271, 1271, 1271, 1271, 1271, 1272, 1272, 1272, 1272, 1272, 1272, 1272, 1272, 1272, 1272, 1273, 1273, 1273, 1273, 1273, 1273, 1273, 1273, 1273, 1273, 1273, 1273, 1273, 1273, 1273, 1273, 1273, 1273, 1273, 1273, 1273, 1273, 1274, 1274, 1274, 1274, 1274, 1274, 1274, 1274, 1274, 1274, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1276, 1276, 1276, 1276, 1276, 1276, 1276, 1277, 1277, 1277, 1277, 1277, 1277, 1277, 1277, 1277, 1277, 1278, 1278, 1278, 1278, 1278, 1278, 1278, 1278, 1278, 1278, 1278, 1278, 1278, 1278, 1278, 1278, 1278, 1278, 1278, 1278, 1278, 1278, 1279, 1279, 1279, 1279, 1279, 1279, 1279, 1279, 1279, 1279, 1280, 1280, 1280, 1280, 1280, 1280, 1280, 1280, 1280, 1280, 1280, 1280, 1280, 1280, 1280, 1280, 1280, 1280, 1280, 1280, 1280, 1280, 1281, 1281, 1281, 1281, 1281, 1281, 1281, 1281, 1281, 1281, 1281, 1281, 1281, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1283, 1283, 1283, 1283, 1283, 1283, 1283, 1284, 1284, 1284, 1284, 1284, 1284, 1284, 1284, 1284, 1284, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1288, 1288, 1288, 1288, 1288, 1288, 1288, 1289, 1289, 1289, 1289, 1289, 1289, 1289, 1289, 1289, 1289, 1290, 1290, 1290, 1290, 1290, 1290, 1290, 1290, 1290, 1290, 1290, 1290, 1290, 1290, 1290, 1290, 1290, 1290, 1290, 1290, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1292, 1292, 1292, 1292, 1292, 1292, 1292, 1292, 1292, 1292, 1292, 1292, 1292, 1292, 1292, 1292, 1292, 1292, 1292, 1292, 1294, 1295, 1295, 1295, 1295, 1295, 1295, 1295, 1295, 1295, 1295, 1296, 1296, 1296, 1296, 1296, 1296, 1296, 1296, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1298, 1298, 1298, 1298, 1298, 1298, 1298, 1298, 1298, 1298, 1298, 1299, 1299, 1299, 1299, 1299, 1299, 1299, 1300, 1300, 1300, 1300, 1300, 1300, 1300, 1300, 1300, 1300, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1302, 1302, 1302, 1302, 1302, 1302, 1302, 1302, 1302, 1302, 1303, 1303, 1303, 1303, 1303, 1303, 1303, 1303, 1303, 1303, 1303, 1303, 1303, 1303, 1303, 1303, 1303, 1303, 1303, 1303, 1304, 1304, 1304, 1304, 1304, 1304, 1304, 1305, 1305, 1305, 1305, 1305, 1305, 1305, 1305, 1305, 1305, 1306, 1306, 1306, 1306, 1306, 1306, 1306, 1306, 1306, 1306, 1306, 1306, 1306, 1306, 1306, 1306, 1306, 1306, 1306, 1306, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1308, 1308, 1308, 1308, 1308, 1308, 1308, 1308, 1308, 1308, 1308, 1308, 1308, 1308, 1308, 1308, 1308, 1308, 1308, 1308, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1310, 1310, 1310, 1310, 1310, 1310, 1310, 1310, 1310, 1310, 1310, 1311, 1311, 1311, 1311, 1311, 1311, 1311, 1312, 1312, 1312, 1312, 1312, 1312, 1312, 1312, 1312, 1312, 1312, 1312, 1312, 1312, 1312, 1312, 1312, 1312, 1312, 1312, 1312, 1312, 1313, 1313, 1313, 1313, 1313, 1313, 1313, 1313, 1313, 1313, 1313, 1313, 1313, 1313, 1313, 1313, 1313, 1313, 1313, 1313, 1313, 1313, 1314, 1314, 1314, 1314, 1314, 1314, 1314, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1316, 1316, 1316, 1316, 1316, 1316, 1316, 1316, 1316, 1316, 1316, 1316, 1316, 1316, 1316, 1316, 1316, 1316, 1316, 1316, 1316, 1316, 1318, 1319, 1319, 1319, 1319, 1319, 1319, 1319, 1319, 1319, 1319, 1320, 1320, 1320, 1320, 1320, 1320, 1320, 1320, 1320, 1320, 1321, 1321, 1321, 1321, 1321, 1322, 1322, 1322, 1322, 1322, 1322, 1322, 1322, 1323, 1323, 1323, 1323, 1323, 1323, 1323, 1323, 1323, 1323, 1323, 1323, 1323, 1323, 1323, 1323, 1323, 1323, 1323, 1323, 1324, 1324, 1324, 1324, 1324, 1324, 1324, 1324, 1325, 1325, 1325, 1325, 1325, 1325, 1325, 1325, 1325, 1325, 1325, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1328, 1328, 1328, 1328, 1328, 1328, 1328, 1328, 1328, 1328, 1328, 1330, 1331, 1331, 1331, 1331, 1331, 1331, 1331, 1331, 1331, 1331, 1331, 1332, 1332, 1332, 1332, 1332, 1332, 1332, 1332, 1334, 1335, 1335, 1335, 1335, 1335, 1335, 1335, 1335, 1335, 1335, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1337, 1337, 1337, 1337, 1337, 1337, 1337, 1337, 1337, 1337, 1337, 1337, 1337, 1337, 1338, 1338, 1338, 1338, 1338, 1338, 1338, 1338, 1338, 1338, 1338, 1339, 1339, 1339, 1339, 1339, 1339, 1339, 1339, 1339, 1339, 1339, 1340, 1340, 1340, 1340, 1340, 1340, 1340, 1340, 1340, 1340, 1340, 1341, 1341, 1342, 1342, 1342, 1342, 1342, 1342, 1342, 1342, 1342, 1342, 1342, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1344, 1344, 1344, 1344, 1344, 1344, 1344, 1344, 1344, 1344, 1344, 1344, 1344, 1344, 1345, 1345, 1345, 1345, 1345, 1345, 1345, 1345, 1345, 1345, 1346, 1346, 1346, 1346, 1346, 1346, 1346, 1346, 1346, 1346, 1346, 1346, 1347, 1347, 1347, 1347, 1347, 1347, 1347, 1347, 1347, 1347, 1347, 1347, 1347, 1347, 1348, 1348, 1348, 1348, 1348, 1348, 1348, 1348, 1348, 1348, 1349, 1349, 1349, 1349, 1349, 1349, 1349, 1349, 1349, 1349, 1349, 1349, 1350, 1350, 1350, 1350, 1351, 1351, 1351, 1351, 1351, 1351, 1351, 1351, 1351, 1351, 1351, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1353, 1353, 1353, 1353, 1353, 1353, 1353, 1353, 1353, 1353, 1353, 1354, 1354, 1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355, 1356, 1356, 1356, 1356, 1356, 1356, 1356, 1356, 1356, 1356, 1356, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1358, 1358, 1358, 1358, 1358, 1358, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1361, 1361, 1361, 1361, 1361, 1361, 1361, 1361, 1361, 1361, 1361, 1361, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1363, 1363, 1363, 1363, 1363, 1363, 1363, 1363, 1363, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1366, 1366, 1366, 1366, 1366, 1366, 1366, 1366, 1366, 1367, 1367, 1367, 1367, 1367, 1367, 1367, 1367, 1367, 1367, 1367, 1367, 1368, 1368, 1368, 1368, 1368, 1368, 1368, 1369, 1369, 1369, 1369, 1369, 1369, 1369, 1369, 1369, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1373, 1373, 1373, 1373, 1373, 1373, 1373, 1373, 1373, 1373, 1373, 1374, 1374, 1374, 1374, 1374, 1374, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1377, 1378, 1378, 1378, 1378, 1378, 1378, 1378, 1378, 1378, 1378, 1378, 1378, 1379, 1379, 1379, 1379, 1379, 1379, 1379, 1380, 1380, 1380, 1380, 1380, 1380, 1380, 1380, 1380, 1380, 1380, 1381, 1381, 1381, 1381, 1381, 1381, 1381, 1381, 1381, 1381, 1381, 1382, 1382, 1382, 1382, 1382, 1382, 1382, 1382, 1383, 1383, 1383, 1383, 1383, 1383, 1383, 1383, 1383, 1383, 1384, 1384, 1384, 1384, 1384, 1384, 1384, 1384, 1384, 1384, 1385, 1385, 1385, 1385, 1385, 1385, 1385, 1385, 1386, 1386, 1386, 1386, 1386, 1386, 1386, 1386, 1386, 1387, 1387, 1387, 1387, 1387, 1387, 1387, 1387, 1387, 1387, 1387, 1387, 1387, 1387, 1387, 1387, 1387, 1387, 1387, 1387, 1387, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1389, 1389, 1389, 1389, 1389, 1389, 1389, 1389, 1389, 1390, 1390, 1390, 1390, 1390, 1390, 1390, 1390, 1390, 1391, 1391, 1391, 1391, 1391, 1391, 1391, 1391, 1391, 1391, 1391, 1391, 1391, 1391, 1391, 1391, 1391, 1391, 1391, 1391, 1391, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1395, 1396, 1396, 1396, 1396, 1396, 1396, 1396, 1396, 1396, 1396, 1396, 1396, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1397, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1398, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1400, 1400, 1400, 1400, 1400, 1400, 1400, 1400, 1400, 1400, 1400, 1400, 1400, 1400, 1400, 1400, 1400, 1400, 1400, 1400, 1400, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1402, 1402, 1402, 1402, 1402, 1402, 1402, 1402, 1402, 1403, 1403, 1403, 1403, 1403, 1403, 1403, 1403, 1403, 1403, 1403, 1403, 1403, 1403, 1404, 1404, 1404, 1404, 1404, 1404, 1404, 1404, 1404, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1405, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1406, 1407, 1407, 1407, 1407, 1407, 1407, 1407, 1407, 1407, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1408, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1409, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1411, 1411, 1411, 1411, 1411, 1411, 1411, 1411, 1413, 1414, 1414, 1414, 1414, 1414, 1414, 1414, 1414, 1414, 1415, 1415, 1415, 1415, 1415, 1415, 1415, 1415, 1415, 1415, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1416, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1418, 1418, 1418, 1418, 1418, 1418, 1418, 1418, 1418, 1418, 1418, 1418, 1418, 1418, 1418, 1418, 1418, 1418, 1418, 1418, 1418, 1418, 1418, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1419, 1420, 1420, 1420, 1420, 1420, 1420, 1420, 1420, 1420, 1420, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1421, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1422, 1423, 1423, 1423, 1423, 1423, 1423, 1423, 1423, 1423, 1423, 1423, 1423, 1423, 1423, 1423, 1423, 1423, 1423, 1423, 1423, 1423, 1423, 1423, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1425, 1425, 1425, 1425, 1425, 1425, 1425, 1425, 1425, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1427, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1431, 1432, 1432, 1432, 1433, 1433, 1433, 1433, 1433, 1434, 1434, 1434, 1436, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1438, 1438, 1438, 1438, 1438, 1438, 1438, 1438, 1438, 1438, 1439, 1439, 1439, 1439, 1439, 1441, 1442, 1442, 1442, 1442, 1442, 1442, 1442, 1442, 1442, 1442, 1442, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1445, 1446, 1446, 1446, 1446, 1446, 1446, 1446, 1446, 1446, 1446, 1447, 1447, 1447, 1447, 1447, 1447, 1447, 1447, 1449, 1450, 1450, 1450, 1450, 1450, 1450, 1450, 1450, 1450, 1450, 1450, 1450, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1451, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1452, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1454, 1454, 1454, 1454, 1454, 1454, 1454, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1458, 1458, 1458, 1458, 1459, 1459, 1459, 1459, 1459, 1460, 1460, 1460, 1460, 1460, 1460, 1460, 1460, 1460, 1460, 1460, 1460, 1461, 1461, 1461, 1461, 1461, 1461, 1461, 1461, 1461, 1461, 1461, 1462, 1462, 1462, 1462, 1463, 1463, 1463, 1463, 1463, 1463, 1464, 1464, 1464, 1464, 1464, 1464, 1464, 1464, 1464, 1464, 1465, 1465, 1465, 1465, 1465, 1465, 1465, 1465, 1465, 1466, 1466, 1466, 1466, 1466, 1466, 1466, 1466, 1466, 1466, 1466, 1466, 1466, 1466, 1466, 1466, 1466, 1466, 1467, 1467, 1467, 1467, 1467, 1467, 1467, 1467, 1467, 1467, 1467, 1468, 1468, 1468, 1468, 1468, 1468, 1469, 1469, 1469, 1469, 1469, 1469, 1469, 1469, 1469, 1469, 1469, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1470, 1472, 1473, 1473, 1473, 1474, 1474, 1474, 1474, 1475, 1475, 1475, 1477, 1478, 1478, 1478, 1478, 1478, 1478, 1478, 1478, 1478, 1478, 1479, 1479, 1479, 1479, 1479, 1479, 1479, 1479, 1479, 1479, 1480, 1480, 1480, 1480, 1480, 1482, 1483, 1483, 1483, 1483, 1483, 1483, 1483, 1483, 1483, 1483, 1484, 1484, 1484, 1484, 1484, 1484, 1484, 1484, 1486, 1487, 1487, 1487, 1487, 1487, 1487, 1487, 1487, 1487, 1488, 1488, 1488, 1488, 1488, 1488, 1488, 1488, 1490, 1491, 1491, 1491, 1491, 1491, 1491, 1491, 1491, 1491, 1491, 1491, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1492, 1493, 1493, 1493, 1493, 1493, 1493, 1493, 1493, 1493, 1493, 1494, 1494, 1494, 1494, 1494, 1494, 1494, 1495, 1495, 1495, 1495, 1495, 1495, 1495, 1495, 1497, 1498, 1498, 1498, 1499, 1499, 1499, 1499, 1499, 1499, 1499, 1499, 1499, 1499, 1499, 1500, 1500, 1500, 1502, 1503, 1503, 1503, 1503, 1503, 1503, 1503, 1503, 1503, 1503, 1503, 1503, 1503, 1503, 1503, 1503, 1503, 1503, 1503, 1503, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1505, 1505, 1505, 1505, 1505, 1505, 1505, 1506, 1506, 1506, 1506, 1506, 1506, 1506, 1506, 1507, 1507, 1507, 1507, 1507, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1510, 1510, 1510, 1510, 1510, 1510, 1510, 1510, 1511, 1511, 1511, 1511, 1511, 1511, 1511, 1511, 1511, 1513, 1513, 1513, 1513, 1513, 1513, 1513, 1513, 1513, 1513, 1513, 1513, 1514, 1514, 1514, 1514, 1514, 1514, 1514, 1514, 1515, 1515, 1515, 1515, 1515, 1515, 1515, 1515, 1515, 1517, 1517, 1517, 1517, 1517, 1517, 1517, 1517, 1517, 1517, 1517, 1518, 1518, 1518, 1518, 1518, 1518, 1518, 1519, 1519, 1519, 1519, 1519, 1519, 1519, 1519, 1519, 1520, 1520, 1520, 1520, 1520, 1520, 1520, 1520, 1520, 1520, 1521, 1521, 1521, 1521, 1521, 1521, 1521, 1521, 1521, 1521, 1521, 1521, 1521, 1521, 1521, 1521, 1521, 1521, 1521, 1523, 1523, 1523, 1523, 1523, 1523, 1523, 1523, 1524, 1524, 1524, 1524, 1524, 1524, 1525, 1525, 1527, 1527, 1527, 1527, 1527, 1528, 1528, 1528, 1528, 1528, 1528, 1529, 1529, 1529, 1529, 1529, 1529, 1530, 1530, 1530, 1530, 1530, 1530, 1530, 1530, 1530, 1530, 1530, 1530, 1530, 1531, 1531, 1531, 1531, 1531, 1531, 1531, 1531, 1532, 1532, 1532, 1532, 1532, 1533, 1533, 1533, 1533, 1533, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1535, 1535, 1535, 1535, 1535, 1536, 1536, 1536, 1536, 1536, 1537, 1537, 1537, 1537, 1537, 1537, 1537, 1537, 1537, 1537, 1537, 1537, 1537, 1537, 1537, 1537, 1537, 1537, 1537, 1537, 1537, 1537, 1538, 1538, 1538, 1538, 1538, 1538, 1538, 1538, 1538, 1538, 1538, 1538, 1538, 1538, 1538, 1538, 1538, 1538, 1538, 1538, 1539, 1539, 1539, 1539, 1539, 1539, 1539, 1539, 1539, 1539, 1540, 1540, 1540, 1540, 1540, 1540, 1541, 1541, 1541, 1541, 1541, 1541, 1541, 1541, 1541, 1541, 1541, 1541, 1541, 1542, 1542, 1542, 1542, 1542, 1544, 1545, 1545, 1545, 1545, 1545, 1545, 1545, 1545, 1545, 1545, 1545, 1545, 1545, 1545 ]
[ 1, 2, 5, 8, 9, 11, 14, 15, 17, 19, 22, 24, 25, 1, 5, 8, 13, 20, 22, 1, 7, 14, 1, 1, 33, 39, 1, 2, 9, 15, 20, 22, 30, 31, 34, 36, 38, 39, 1, 2, 8, 10, 13, 17, 18, 22, 25, 27, 31, 32, 35, 38, 39, 1, 2, 7, 12, 13, 15, 23, 28, 1, 33, 39, 1, 1, 33, 37, 1, 2, 7, 1, 33, 37, 1, 4, 9, 10, 14, 16, 4, 9, 10, 15, 17, 18, 19, 4, 9, 10, 14, 16, 18, 24, 30, 31, 4, 9, 10, 15, 20, 22, 23, 24, 25, 26, 4, 9, 10, 16, 18, 19, 20, 21, 22, 4, 9, 10, 15, 17, 18, 19, 20, 21, 4, 9, 10, 15, 17, 18, 19, 20, 4, 9, 10, 15, 17, 19, 20, 21, 22, 4, 9, 10, 15, 17, 18, 20, 21, 22, 23, 4, 9, 10, 16, 18, 26, 28, 34, 4, 9, 10, 11, 13, 14, 15, 16, 4, 9, 10, 12, 14, 15, 16, 17, 18, 4, 9, 10, 12, 14, 15, 16, 17, 18, 4, 9, 10, 12, 16, 17, 18, 23, 24, 26, 30, 31, 33, 38, 39, 44, 4, 9, 10, 13, 15, 21, 4, 9, 10, 12, 15, 18, 20, 23, 4, 9, 10, 15, 16, 18, 20, 23, 4, 9, 10, 12, 15, 18, 19, 21, 24, 4, 9, 10, 12, 15, 18, 19, 21, 24, 4, 9, 10, 12, 15, 18, 20, 21, 23, 26, 4, 9, 10, 12, 15, 18, 20, 21, 23, 26, 4, 9, 10, 13, 16, 20, 22, 25, 4, 9, 10, 15, 16, 20, 22, 28, 4, 9, 10, 15, 16, 20, 22, 28, 4, 9, 10, 15, 16, 20, 22, 28, 4, 9, 10, 11, 15, 16, 1, 1, 4, 9, 10, 11, 15, 17, 4, 9, 10, 12, 15, 18, 22, 24, 30, 4, 9, 10, 13, 16, 20, 21, 23, 29, 4, 9, 10, 13, 16, 20, 21, 23, 29, 4, 9, 10, 12, 15, 18, 20, 23, 4, 9, 10, 14, 16, 17, 18, 4, 9, 10, 12, 15, 17, 21, 23, 29, 4, 9, 10, 15, 17, 20, 21, 23, 25, 26, 28, 4, 9, 10, 15, 17, 18, 19, 4, 9, 10, 16, 22, 26, 28, 29, 30, 4, 9, 10, 16, 22, 23, 27, 29, 32, 4, 9, 10, 20, 22, 28, 33, 34, 38, 40, 44, 45, 48, 50, 4, 9, 10, 14, 20, 22, 28, 33, 34, 38, 40, 44, 47, 48, 51, 53, 4, 9, 10, 13, 14, 17, 19, 25, 30, 31, 35, 37, 40, 41, 42, 45, 47, 4, 9, 10, 13, 19, 21, 27, 32, 33, 37, 39, 43, 46, 47, 48, 51, 53, 4, 9, 10, 13, 16, 18, 24, 29, 30, 34, 36, 42, 45, 46, 49, 51, 4, 9, 10, 14, 24, 26, 32, 37, 38, 42, 44, 48, 52, 53, 56, 58, 4, 9, 10, 13, 18, 20, 26, 31, 32, 36, 38, 41, 46, 47, 48, 51, 53, 4, 9, 10, 16, 18, 24, 29, 30, 34, 36, 42, 43, 46, 48, 4, 9, 10, 14, 15, 19, 21, 27, 32, 33, 37, 39, 43, 44, 48, 49, 52, 54, 4, 9, 10, 16, 22, 24, 30, 35, 36, 40, 42, 48, 49, 52, 54, 4, 9, 10, 11, 15, 16, 1, 1, 4, 9, 10, 11, 15, 17, 4, 9, 10, 11, 13, 15, 21, 26, 27, 31, 33, 34, 36, 37, 38, 41, 43, 4, 9, 10, 15, 17, 23, 28, 29, 33, 35, 40, 41, 44, 46, 4, 9, 10, 13, 18, 20, 26, 31, 32, 36, 38, 41, 46, 47, 50, 52, 4, 9, 10, 16, 17, 18, 20, 21, 22, 23, 24, 4, 9, 10, 16, 17, 18, 20, 21, 22, 23, 24, 4, 9, 10, 16, 17, 18, 20, 21, 22, 23, 24, 4, 9, 10, 16, 17, 18, 20, 21, 22, 23, 24, 4, 9, 10, 16, 18, 23, 4, 9, 10, 15, 17, 18, 19, 20, 4, 9, 10, 15, 16, 18, 19, 20, 21, 4, 9, 10, 16, 20, 22, 23, 24, 4, 9, 10, 16, 17, 21, 23, 26, 4, 9, 10, 16, 18, 19, 20, 21, 22, 4, 9, 10, 15, 17, 23, 4, 9, 10, 15, 16, 18, 24, 26, 31, 4, 9, 10, 14, 19, 21, 26, 4, 9, 10, 14, 19, 21, 26, 4, 9, 10, 14, 16, 21, 22, 25, 30, 4, 9, 10, 16, 18, 23, 24, 27, 32, 4, 9, 10, 14, 16, 21, 22, 25, 30, 4, 9, 10, 11, 13, 17, 19, 24, 25, 28, 33, 4, 9, 10, 14, 16, 21, 22, 25, 30, 4, 9, 10, 12, 17, 22, 24, 29, 30, 33, 38, 4, 9, 10, 11, 15, 16, 1, 1, 4, 9, 10, 11, 15, 17, 4, 9, 10, 13, 15, 20, 21, 24, 29, 4, 9, 10, 12, 14, 19, 20, 23, 28, 4, 9, 10, 15, 17, 22, 23, 26, 31, 4, 9, 10, 15, 21, 22, 26, 28, 29, 30, 4, 9, 10, 11, 16, 18, 23, 4, 9, 10, 15, 17, 22, 4, 9, 10, 15, 16, 18, 23, 4, 9, 10, 15, 16, 18, 23, 4, 9, 10, 20, 22, 27, 4, 9, 10, 14, 15, 17, 22, 23, 26, 31, 4, 9, 10, 14, 15, 17, 22, 23, 26, 31, 4, 9, 10, 14, 15, 17, 22, 23, 26, 31, 4, 9, 10, 14, 15, 17, 22, 23, 26, 31, 4, 9, 10, 14, 15, 17, 22, 23, 26, 31, 4, 9, 10, 14, 15, 17, 22, 23, 26, 31, 4, 9, 10, 14, 16, 22, 27, 28, 32, 34, 38, 39, 42, 44, 4, 9, 10, 14, 20, 22, 28, 33, 34, 38, 40, 44, 45, 46, 49, 51, 4, 9, 10, 15, 17, 23, 28, 29, 33, 35, 40, 41, 44, 46, 4, 9, 10, 15, 19, 21, 24, 4, 9, 10, 14, 18, 20, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 4, 9, 10, 15, 21, 23, 32, 34, 39, 40, 43, 45, 4, 7, 12, 13, 17, 20, 22, 27, 34, 36, 8, 12, 22, 23, 27, 28, 4, 9, 15, 21, 28, 29, 33, 34, 1, 1, 4, 9, 15, 21, 28, 29, 33, 35, 4, 9, 10, 16, 22, 23, 25, 26, 27, 28, 29, 4, 9, 10, 11, 12, 18, 19, 21, 22, 23, 24, 25, 4, 9, 10, 11, 12, 18, 19, 21, 22, 23, 24, 25, 4, 9, 10, 12, 18, 20, 21, 22, 23, 24, 4, 9, 10, 14, 20, 22, 23, 24, 25, 26, 4, 9, 10, 14, 20, 22, 23, 24, 25, 26, 4, 9, 10, 11, 16, 22, 24, 25, 26, 27, 28, 4, 9, 10, 13, 16, 20, 22, 23, 24, 25, 4, 9, 10, 16, 20, 22, 27, 28, 34, 36, 37, 38, 40, 41, 42, 43, 4, 9, 10, 12, 15, 17, 18, 19, 4, 9, 10, 15, 18, 20, 21, 22, 4, 9, 10, 14, 16, 17, 18, 19, 4, 9, 10, 16, 17, 20, 22, 23, 24, 25, 26, 4, 9, 10, 16, 17, 20, 22, 23, 24, 25, 26, 4, 9, 10, 14, 15, 17, 18, 19, 20, 4, 9, 10, 14, 15, 17, 18, 19, 20, 21, 4, 9, 14, 19, 23, 24, 28, 29, 4, 9, 10, 16, 17, 21, 22, 1, 1, 4, 9, 14, 19, 23, 24, 28, 30, 4, 9, 10, 11, 13, 14, 16, 17, 18, 20, 25, 26, 32, 34, 35, 36, 37, 4, 9, 10, 13, 14, 19, 21, 22, 23, 24, 25, 4, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 4, 9, 10, 13, 19, 21, 22, 23, 4, 9, 10, 15, 18, 20, 25, 26, 32, 34, 35, 36, 37, 4, 9, 10, 15, 20, 22, 23, 24, 25, 26, 4, 9, 10, 14, 15, 17, 22, 23, 29, 31, 32, 33, 35, 36, 37, 38, 4, 9, 10, 14, 16, 19, 4, 9, 10, 15, 19, 21, 24, 4, 9, 10, 13, 15, 21, 4, 9, 11, 12, 16, 17, 1, 1, 4, 9, 10, 16, 17, 21, 23, 4, 9, 10, 16, 18, 19, 20, 21, 1, 1, 4, 9, 11, 12, 16, 18, 4, 9, 10, 11, 14, 16, 17, 18, 19, 20, 4, 9, 10, 14, 15, 17, 18, 19, 20, 21, 4, 9, 10, 14, 15, 17, 18, 19, 20, 21, 4, 9, 10, 13, 14, 16, 17, 18, 19, 20, 4, 9, 10, 14, 15, 17, 18, 19, 20, 21, 4, 9, 10, 15, 16, 18, 19, 20, 21, 22, 4, 9, 10, 13, 14, 16, 17, 18, 4, 9, 10, 13, 14, 16, 17, 18, 4, 9, 10, 13, 14, 16, 17, 18, 4, 9, 10, 14, 16, 17, 18, 19, 20, 4, 9, 10, 15, 16, 18, 19, 20, 21, 22, 4, 9, 10, 13, 15, 16, 17, 18, 19, 4, 9, 10, 13, 15, 16, 17, 18, 19, 4, 9, 10, 11, 13, 15, 16, 17, 18, 19, 1, 1, 33, 37, 1, 2, 7, 18, 1, 33, 37, 1, 1, 4, 10, 17, 18, 23, 24, 29, 31, 4, 7, 12, 13, 17, 20, 22, 28, 34, 36, 8, 15, 21, 26, 33, 34, 39, 40, 45, 46, 4, 9, 14, 15, 19, 22, 24, 25, 31, 33, 8, 15, 20, 27, 28, 33, 34, 39, 40, 4, 9, 14, 15, 19, 22, 24, 25, 31, 33, 8, 12, 18, 23, 30, 31, 36, 37, 42, 43, 4, 9, 14, 15, 19, 22, 24, 30, 32, 8, 15, 20, 27, 28, 33, 34, 39, 40, 4, 9, 14, 15, 19, 22, 24, 29, 36, 38, 8, 14, 21, 26, 33, 34, 39, 40, 45, 46, 4, 9, 14, 15, 19, 22, 24, 26, 28, 8, 10, 12, 16, 23, 24, 29, 30, 35, 36, 4, 9, 14, 15, 19, 22, 24, 34, 36, 8, 19, 24, 31, 32, 37, 38, 43, 44, 4, 9, 14, 15, 19, 22, 24, 29, 34, 36, 8, 14, 19, 24, 31, 32, 37, 38, 43, 44, 4, 9, 14, 15, 19, 22, 24, 28, 30, 8, 13, 18, 25, 26, 31, 32, 37, 38, 1, 1, 4, 8, 15, 16, 21, 22, 27, 29, 4, 7, 12, 13, 17, 20, 22, 28, 34, 36, 8, 15, 18, 25, 26, 31, 32, 37, 38, 4, 9, 14, 15, 19, 22, 24, 25, 31, 33, 8, 15, 18, 25, 26, 31, 32, 37, 38, 4, 9, 14, 15, 19, 22, 24, 25, 31, 33, 8, 12, 18, 21, 28, 29, 34, 35, 40, 41, 4, 9, 14, 15, 19, 22, 24, 30, 32, 8, 15, 18, 25, 26, 31, 32, 37, 38, 4, 9, 14, 15, 19, 22, 24, 29, 36, 38, 8, 14, 21, 24, 31, 32, 37, 38, 43, 44, 4, 9, 14, 15, 19, 22, 24, 26, 28, 8, 11, 14, 21, 22, 27, 28, 33, 34, 4, 9, 14, 15, 19, 22, 24, 34, 36, 8, 19, 22, 29, 30, 35, 36, 41, 42, 4, 9, 14, 15, 19, 22, 24, 29, 34, 36, 8, 14, 19, 22, 29, 30, 35, 36, 41, 42, 4, 9, 14, 15, 19, 22, 24, 28, 30, 8, 13, 16, 23, 24, 29, 30, 35, 36, 1, 1, 4, 10, 11, 15, 16, 20, 22, 4, 7, 12, 13, 17, 20, 22, 28, 34, 36, 8, 15, 21, 26, 27, 31, 32, 36, 37, 4, 9, 14, 15, 19, 22, 24, 25, 31, 33, 8, 15, 20, 21, 25, 26, 30, 31, 4, 9, 14, 15, 19, 22, 24, 25, 31, 33, 8, 12, 18, 23, 24, 28, 29, 33, 34, 4, 9, 14, 15, 19, 22, 24, 30, 32, 8, 15, 20, 21, 25, 26, 30, 31, 4, 9, 14, 15, 19, 22, 24, 29, 36, 38, 8, 14, 21, 26, 27, 31, 32, 36, 37, 4, 9, 14, 15, 19, 22, 24, 26, 28, 8, 10, 12, 16, 17, 21, 22, 26, 27, 4, 9, 14, 15, 19, 22, 24, 34, 36, 8, 19, 24, 25, 29, 30, 34, 35, 4, 9, 14, 15, 19, 22, 24, 29, 34, 36, 8, 14, 19, 24, 25, 29, 30, 34, 35, 4, 9, 14, 15, 19, 22, 24, 28, 30, 8, 13, 18, 19, 23, 24, 28, 29, 1, 1, 4, 11, 14, 15, 21, 22, 27, 29, 4, 7, 12, 13, 17, 20, 22, 28, 34, 36, 8, 15, 21, 24, 27, 30, 31, 37, 38, 43, 44, 4, 9, 14, 15, 19, 22, 24, 25, 31, 33, 8, 15, 18, 21, 24, 25, 31, 32, 37, 38, 4, 9, 14, 15, 19, 22, 24, 25, 31, 33, 8, 12, 18, 21, 24, 27, 28, 34, 35, 40, 41, 4, 9, 14, 15, 19, 22, 24, 30, 32, 8, 15, 18, 21, 24, 25, 31, 32, 37, 38, 4, 9, 14, 15, 19, 22, 24, 29, 36, 38, 8, 14, 21, 24, 27, 30, 31, 37, 38, 43, 44, 4, 9, 14, 15, 19, 22, 24, 26, 28, 8, 10, 12, 14, 17, 20, 21, 27, 28, 33, 34, 4, 9, 14, 15, 19, 22, 24, 34, 36, 8, 19, 22, 25, 28, 29, 35, 36, 41, 42, 4, 9, 14, 15, 19, 22, 24, 29, 34, 36, 8, 14, 19, 22, 25, 28, 29, 35, 36, 41, 42, 4, 9, 14, 15, 19, 22, 24, 28, 30, 8, 13, 16, 19, 22, 23, 29, 30, 35, 36, 1, 1, 33, 37, 1, 2, 9, 15, 20, 1, 33, 37, 1, 4, 11, 17, 22, 29, 30, 35, 36, 41, 43, 4, 6, 13, 17, 27, 30, 35, 4, 7, 12, 13, 19, 25, 26, 28, 29, 30, 32, 37, 38, 39, 42, 48, 49, 50, 53, 58, 59, 65, 71, 72, 74, 75, 76, 78, 83, 84, 85, 86, 8, 11, 16, 17, 18, 19, 25, 26, 28, 33, 34, 35, 38, 44, 45, 46, 49, 54, 55, 56, 57, 63, 64, 66, 71, 72, 73, 74, 12, 17, 18, 22, 24, 26, 27, 33, 34, 8, 11, 16, 17, 18, 19, 25, 26, 28, 33, 34, 35, 38, 44, 45, 46, 49, 54, 55, 56, 57, 63, 64, 66, 71, 72, 73, 74, 12, 17, 18, 22, 24, 26, 27, 33, 34, 8, 11, 16, 17, 19, 25, 27, 32, 33, 34, 37, 43, 44, 45, 48, 53, 54, 56, 62, 64, 69, 70, 71, 72, 12, 17, 18, 22, 24, 26, 32, 33, 8, 11, 16, 17, 21, 27, 29, 34, 35, 36, 39, 45, 46, 47, 50, 55, 56, 60, 66, 68, 73, 74, 75, 76, 12, 17, 18, 22, 24, 26, 36, 37, 8, 11, 16, 17, 21, 27, 29, 34, 35, 36, 39, 45, 46, 47, 50, 55, 56, 60, 66, 68, 73, 74, 75, 76, 12, 17, 18, 22, 24, 26, 30, 31, 8, 11, 16, 17, 18, 23, 29, 31, 36, 37, 38, 41, 47, 48, 49, 52, 57, 58, 59, 64, 70, 72, 77, 78, 79, 80, 12, 17, 18, 22, 24, 26, 31, 36, 37, 1, 1, 4, 11, 14, 21, 22, 27, 28, 33, 35, 4, 9, 1, 1, 4, 11, 17, 22, 23, 27, 28, 32, 34, 4, 9, 10, 16, 22, 26, 29, 30, 31, 4, 7, 12, 13, 19, 25, 29, 31, 32, 33, 36, 37, 38, 39, 8, 13, 17, 23, 24, 28, 29, 4, 8, 13, 16, 21, 22, 28, 34, 35, 39, 40, 8, 13, 14, 16, 21, 22, 26, 27, 31, 32, 1, 1, 4, 11, 17, 24, 25, 31, 32, 37, 39, 4, 11, 12, 18, 19, 24, 25, 29, 30, 36, 42, 43, 44, 49, 50, 51, 52, 58, 59, 60, 66, 67, 71, 72, 76, 77, 78, 4, 11, 12, 18, 19, 24, 25, 29, 30, 36, 42, 43, 44, 49, 50, 51, 52, 58, 59, 60, 66, 67, 71, 72, 76, 77, 78, 4, 11, 12, 18, 19, 24, 25, 29, 30, 36, 42, 43, 44, 49, 50, 52, 58, 59, 65, 66, 70, 71, 75, 76, 77, 4, 11, 12, 18, 19, 24, 25, 29, 30, 36, 42, 43, 44, 49, 50, 54, 60, 61, 67, 68, 72, 73, 77, 78, 79, 4, 11, 12, 18, 19, 24, 25, 29, 30, 36, 42, 43, 44, 49, 50, 54, 60, 61, 67, 68, 72, 73, 77, 78, 79, 4, 11, 12, 18, 19, 24, 25, 29, 30, 36, 42, 43, 44, 49, 50, 51, 56, 62, 63, 69, 70, 74, 75, 79, 80, 81, 1, 1, 4, 9, 13, 19, 20, 24, 26, 4, 6, 14, 16, 23, 24, 31, 32, 33, 34, 35, 36, 37, 38, 39, 4, 9, 10, 16, 22, 23, 27, 28, 34, 35, 37, 40, 43, 44, 45, 53, 54, 55, 56, 58, 1, 1, 4, 11, 17, 20, 23, 26, 27, 33, 34, 39, 41, 4, 11, 12, 18, 19, 24, 25, 29, 30, 35, 37, 38, 39, 40, 45, 46, 52, 56, 58, 59, 60, 61, 62, 68, 69, 73, 74, 79, 80, 4, 8, 13, 16, 21, 22, 28, 34, 35, 39, 40, 8, 13, 14, 18, 19, 25, 26, 4, 11, 12, 18, 19, 23, 24, 8, 13, 14, 19, 21, 22, 23, 24, 8, 13, 14, 20, 24, 25, 8, 13, 15, 17, 8, 9, 11, 18, 25, 31, 36, 8, 9, 11, 15, 16, 22, 27, 8, 8, 9, 11, 17, 25, 31, 34, 39, 8, 8, 9, 11, 16, 22, 24, 28, 37, 8, 8, 9, 11, 16, 20, 33, 8, 8, 9, 11, 17, 22, 8, 7, 10, 12, 8, 13, 15, 20, 21, 22, 23, 28, 30, 8, 13, 15, 21, 23, 4, 6, 4, 11, 17, 24, 25, 31, 32, 37, 38, 1, 1, 33, 37, 1, 2, 8, 13, 19, 25, 1, 33, 37, 1, 1, 4, 10, 14, 15, 19, 20, 29, 31, 4, 9, 14, 15, 19, 20, 22, 24, 26, 29, 31, 32, 8, 10, 11, 16, 17, 25, 26, 1, 1, 4, 13, 14, 18, 20, 4, 9, 14, 15, 19, 20, 22, 24, 26, 29, 31, 32, 8, 15, 17, 18, 22, 24, 1, 1, 33, 37, 1, 2, 3, 4, 10, 15, 1, 33, 37, 1, 1, 2, 5, 8, 11, 13, 17, 19, 23, 28, 29, 39, 43, 49, 55, 1, 6, 9, 12, 15, 16, 22, 24, 4, 8, 11, 15, 18, 22, 23, 25, 26, 28, 30, 8, 13, 14, 15, 17, 19, 8, 13, 14, 15, 17, 19, 8, 13, 14, 15, 17, 18, 19, 8, 13, 14, 18, 20, 22, 26, 30, 35, 36, 8, 13, 14, 19, 21, 22, 23, 24, 8, 13, 14, 21, 23, 25, 29, 30, 4, 8, 13, 14, 18, 19, 26, 28, 8, 15, 16, 22, 23, 30, 31, 12, 17, 18, 19, 20, 12, 17, 18, 19, 21, 22, 23, 25, 30, 31, 32, 33, 12, 17, 18, 19, 21, 26, 27, 28, 29, 12, 17, 18, 19, 20, 12, 17, 18, 19, 20, 12, 17, 18, 19, 21, 26, 27, 28, 29, 12, 17, 18, 19, 21, 26, 27, 28, 29, 12, 17, 18, 19, 20, 12, 17, 18, 22, 23, 27, 28, 12, 20, 21, 25, 26, 33, 34, 12, 18, 19, 20, 21, 8, 10, 4, 8, 11, 16, 17, 21, 22, 26, 27, 32, 34, 8, 10, 15, 19, 27, 34, 8, 13, 14, 15, 18, 23, 24, 29, 1, 1, 4, 8, 9, 13, 15, 4, 6, 13, 17, 25, 30, 4, 8, 11, 14, 16, 19, 24, 25, 27, 30, 33, 34, 8, 11, 16, 17, 21, 24, 26, 27, 33, 34, 37, 42, 43, 47, 50, 52, 57, 64, 66, 12, 15, 18, 21, 23, 24, 25, 28, 33, 34, 36, 38, 43, 44, 45, 49, 52, 55, 57, 58, 59, 62, 67, 68, 70, 72, 77, 78, 79, 80, 16, 19, 22, 25, 27, 28, 29, 32, 37, 38, 40, 42, 47, 48, 49, 53, 56, 59, 61, 62, 63, 66, 71, 72, 74, 76, 81, 82, 83, 84, 20, 25, 26, 28, 31, 36, 37, 40, 43, 47, 20, 23, 28, 29, 33, 36, 38, 43, 50, 52, 24, 29, 30, 32, 35, 38, 39, 40, 20, 25, 30, 31, 34, 37, 43, 47, 52, 53, 58, 60, 65, 66, 71, 74, 75, 24, 29, 30, 35, 38, 43, 44, 49, 20, 25, 26, 28, 31, 34, 35, 41, 42, 44, 47, 49, 50, 20, 23, 28, 29, 33, 36, 38, 43, 50, 52, 24, 29, 30, 35, 41, 42, 46, 49, 50, 51, 1, 1, 4, 8, 9, 15, 16, 20, 22, 4, 7, 12, 13, 17, 20, 22, 23, 29, 31, 8, 11, 16, 17, 20, 23, 27, 28, 31, 37, 38, 12, 14, 19, 24, 30, 32, 36, 38, 45, 12, 16, 19, 22, 24, 27, 32, 33, 35, 38, 41, 42, 43, 16, 19, 22, 25, 27, 28, 29, 32, 37, 38, 44, 45, 46, 48, 53, 54, 55, 59, 62, 65, 67, 68, 69, 72, 77, 78, 84, 85, 86, 88, 93, 94, 95, 96, 20, 23, 26, 29, 31, 32, 33, 36, 41, 42, 48, 49, 50, 52, 57, 58, 59, 63, 66, 69, 71, 72, 73, 76, 81, 82, 88, 89, 90, 92, 97, 98, 99, 100, 24, 29, 30, 36, 37, 38, 41, 46, 47, 50, 53, 57, 24, 29, 30, 32, 35, 38, 39, 40, 46, 47, 49, 52, 54, 55, 8, 11, 16, 17, 20, 23, 27, 28, 31, 37, 38, 12, 14, 19, 24, 30, 32, 36, 38, 45, 12, 16, 19, 22, 24, 27, 32, 33, 35, 38, 41, 42, 43, 16, 19, 22, 25, 27, 28, 29, 32, 37, 38, 44, 45, 46, 48, 53, 54, 55, 59, 62, 65, 67, 68, 69, 72, 77, 78, 84, 85, 86, 88, 93, 94, 95, 96, 20, 23, 26, 29, 31, 32, 33, 36, 41, 42, 48, 49, 50, 52, 57, 58, 59, 63, 66, 69, 71, 72, 73, 76, 81, 82, 88, 89, 90, 92, 97, 98, 99, 100, 24, 29, 30, 36, 37, 38, 41, 46, 47, 50, 53, 57, 24, 29, 30, 32, 35, 38, 39, 40, 46, 47, 49, 52, 54, 55, 1, 1, 6, 12, 13, 15, 16, 18, 21, 24, 26, 4, 8, 11, 15, 18, 22, 23, 25, 26, 28, 30, 8, 14, 19, 23, 26, 27, 28, 30, 31, 4, 8, 13, 14, 18, 19, 26, 27, 32, 34, 8, 15, 16, 22, 23, 28, 29, 33, 34, 35, 36, 41, 42, 43, 44, 50, 51, 55, 56, 60, 61, 65, 66, 1, 1, 4, 8, 13, 14, 18, 20, 4, 6, 13, 16, 21, 26, 27, 32, 34, 40, 41, 46, 51, 4, 8, 14, 16, 19, 24, 25, 30, 31, 33, 34, 8, 11, 16, 17, 21, 24, 26, 27, 33, 34, 37, 42, 43, 47, 50, 52, 57, 64, 66, 12, 15, 21, 23, 24, 25, 28, 33, 34, 36, 38, 43, 44, 45, 49, 55, 57, 58, 59, 62, 67, 68, 70, 72, 77, 78, 79, 80, 16, 19, 25, 27, 28, 29, 32, 37, 38, 40, 42, 47, 48, 49, 53, 59, 61, 62, 63, 66, 71, 72, 74, 76, 81, 82, 83, 84, 20, 25, 26, 31, 32, 36, 38, 43, 20, 25, 26, 31, 33, 38, 39, 41, 20, 25, 26, 31, 32, 34, 35, 41, 42, 47, 49, 50, 8, 13, 18, 19, 23, 26, 28, 29, 35, 36, 39, 44, 45, 49, 52, 54, 56, 58, 12, 15, 21, 23, 24, 25, 28, 33, 34, 40, 41, 42, 44, 49, 50, 51, 55, 61, 63, 64, 65, 68, 73, 74, 80, 81, 82, 84, 89, 90, 91, 92, 16, 19, 25, 27, 28, 29, 32, 37, 38, 44, 45, 46, 48, 53, 54, 55, 59, 65, 67, 68, 69, 72, 77, 78, 84, 85, 86, 88, 93, 94, 95, 96, 20, 25, 26, 31, 32, 36, 38, 43, 20, 25, 26, 31, 32, 34, 39, 40, 46, 47, 48, 20, 25, 26, 31, 32, 34, 35, 41, 42, 47, 49, 50, 12, 15, 21, 23, 24, 25, 28, 33, 34, 40, 41, 42, 44, 49, 50, 51, 55, 61, 63, 64, 65, 68, 73, 74, 80, 81, 82, 84, 89, 90, 91, 92, 16, 19, 25, 27, 28, 29, 32, 37, 38, 44, 45, 46, 48, 53, 54, 55, 59, 65, 67, 68, 69, 72, 77, 78, 84, 85, 86, 88, 93, 94, 95, 96, 20, 25, 26, 31, 32, 36, 38, 43, 20, 25, 26, 31, 32, 34, 39, 40, 46, 47, 48, 20, 25, 26, 31, 32, 34, 35, 41, 42, 47, 49, 50, 1, 1, 6, 10, 13, 17, 18, 23, 24, 26, 28, 4, 8, 11, 15, 18, 22, 23, 25, 26, 28, 30, 8, 14, 19, 23, 26, 27, 28, 30, 31, 4, 8, 13, 14, 18, 19, 26, 27, 32, 34, 8, 15, 16, 22, 23, 28, 29, 33, 34, 35, 36, 41, 42, 43, 44, 50, 51, 55, 56, 59, 64, 65, 1, 1, 4, 8, 11, 14, 18, 19, 23, 25, 4, 6, 13, 16, 21, 22, 25, 30, 36, 38, 4, 8, 14, 16, 19, 24, 25, 28, 31, 35, 36, 8, 11, 16, 17, 21, 24, 26, 27, 33, 34, 37, 42, 43, 47, 50, 52, 57, 64, 66, 12, 15, 21, 23, 24, 25, 28, 33, 34, 36, 38, 43, 44, 45, 49, 55, 57, 58, 59, 62, 67, 68, 70, 72, 77, 78, 79, 80, 16, 19, 25, 27, 28, 29, 32, 37, 38, 40, 42, 47, 48, 49, 53, 59, 61, 62, 63, 66, 71, 72, 74, 76, 81, 82, 83, 84, 20, 25, 26, 28, 31, 34, 38, 40, 45, 20, 25, 26, 31, 33, 38, 39, 41, 20, 25, 26, 29, 32, 36, 37, 43, 44, 49, 51, 52, 8, 11, 16, 17, 21, 24, 26, 27, 33, 34, 37, 42, 43, 47, 50, 52, 54, 56, 12, 14, 18, 25, 26, 12, 15, 21, 23, 24, 25, 28, 33, 34, 40, 41, 42, 44, 49, 50, 51, 55, 61, 63, 64, 65, 68, 73, 74, 80, 81, 82, 84, 89, 90, 91, 92, 16, 19, 25, 27, 28, 29, 32, 37, 38, 44, 45, 46, 48, 53, 54, 55, 59, 65, 67, 68, 69, 72, 77, 78, 84, 85, 86, 88, 93, 94, 95, 96, 20, 25, 26, 29, 32, 36, 37, 39, 44, 20, 25, 26, 31, 32, 34, 39, 40, 46, 47, 48, 20, 25, 26, 29, 32, 36, 37, 43, 44, 49, 51, 52, 12, 14, 18, 25, 26, 27, 12, 15, 21, 23, 24, 25, 28, 33, 34, 40, 41, 42, 44, 49, 50, 51, 55, 61, 63, 64, 65, 68, 73, 74, 80, 81, 82, 84, 89, 90, 91, 92, 16, 19, 25, 27, 28, 29, 32, 37, 38, 44, 45, 46, 48, 53, 54, 55, 59, 65, 67, 68, 69, 72, 77, 78, 84, 85, 86, 88, 93, 94, 95, 96, 20, 25, 26, 29, 32, 36, 37, 39, 44, 20, 25, 26, 31, 32, 34, 39, 40, 46, 47, 48, 20, 25, 26, 29, 32, 36, 37, 43, 44, 49, 51, 52, 1, 1, 6, 9, 12, 15, 16, 22, 24, 4, 8, 11, 15, 18, 22, 23, 25, 26, 28, 30, 8, 13, 14, 15, 17, 19, 8, 13, 14, 15, 17, 19, 8, 13, 14, 19, 21, 22, 23, 24, 4, 8, 13, 14, 18, 19, 26, 27, 32, 34, 8, 15, 16, 22, 23, 28, 29, 33, 34, 35, 36, 41, 42, 43, 44, 50, 51, 55, 56, 62, 63, 4, 8, 11, 16, 17, 21, 22, 26, 27, 32, 34, 8, 11, 16, 17, 21, 24, 26, 27, 33, 34, 37, 42, 43, 47, 50, 52, 54, 56, 12, 17, 18, 23, 25, 26, 27, 28, 8, 13, 14, 15, 18, 23, 24, 29, 8, 11, 16, 17, 21, 24, 26, 27, 33, 34, 37, 42, 43, 47, 50, 52, 57, 64, 65, 69, 74, 75, 79, 81, 82, 83, 86, 87, 88, 89, 12, 14, 20, 23, 27, 39, 44, 12, 17, 19, 26, 27, 33, 34, 38, 39, 44, 45, 12, 15, 20, 23, 25, 26, 28, 16, 19, 24, 25, 26, 28, 33, 34, 38, 41, 46, 47, 53, 54, 57, 58, 20, 25, 26, 27, 30, 35, 36, 40, 16, 21, 22, 20, 25, 26, 27, 30, 35, 36, 40, 12, 17, 22, 25, 27, 28, 30, 16, 19, 24, 25, 26, 28, 33, 34, 38, 41, 46, 47, 53, 54, 57, 58, 20, 25, 26, 27, 30, 35, 36, 40, 16, 21, 22, 20, 25, 26, 27, 30, 35, 36, 40, 1, 1, 4, 8, 10, 13, 16, 17, 21, 23, 4, 6, 13, 17, 27, 33, 36, 39, 43, 4, 8, 12, 15, 20, 21, 23, 26, 29, 30, 8, 11, 16, 17, 21, 24, 26, 27, 33, 34, 37, 42, 43, 47, 50, 52, 57, 64, 66, 12, 15, 19, 20, 21, 24, 29, 30, 32, 34, 35, 36, 37, 38, 40, 45, 46, 47, 51, 55, 56, 57, 60, 65, 66, 68, 70, 71, 72, 73, 74, 76, 81, 82, 83, 84, 16, 19, 23, 24, 25, 28, 33, 34, 36, 38, 39, 40, 41, 42, 44, 49, 50, 51, 55, 59, 60, 61, 64, 69, 70, 72, 74, 75, 76, 77, 78, 80, 85, 86, 87, 88, 20, 25, 26, 29, 31, 36, 20, 25, 26, 28, 31, 33, 34, 35, 20, 25, 26, 31, 37, 38, 42, 44, 45, 46, 8, 11, 16, 17, 21, 24, 26, 27, 33, 34, 37, 42, 43, 47, 50, 52, 54, 56, 12, 15, 19, 20, 21, 24, 29, 30, 36, 37, 38, 40, 45, 46, 47, 51, 55, 56, 57, 60, 65, 66, 72, 73, 74, 76, 81, 82, 83, 84, 16, 19, 23, 24, 25, 28, 33, 34, 40, 41, 42, 44, 49, 50, 51, 55, 59, 60, 61, 64, 69, 70, 76, 77, 78, 80, 85, 86, 87, 88, 20, 25, 26, 32, 34, 36, 42, 43, 44, 12, 15, 19, 20, 21, 24, 29, 30, 36, 37, 38, 40, 45, 46, 47, 51, 55, 56, 57, 60, 65, 66, 72, 73, 74, 76, 81, 82, 83, 84, 16, 19, 23, 24, 25, 28, 33, 34, 40, 41, 42, 44, 49, 50, 51, 55, 59, 60, 61, 64, 69, 70, 76, 77, 78, 80, 85, 86, 87, 88, 20, 25, 26, 32, 34, 36, 42, 43, 44, 1, 1, 4, 9, 14, 17, 18, 24, 25, 30, 32, 4, 8, 12, 15, 20, 21, 23, 26, 29, 30, 8, 12, 13, 17, 18, 24, 25, 30, 31, 4, 8, 14, 16, 19, 24, 25, 30, 31, 33, 34, 8, 14, 16, 17, 21, 22, 28, 29, 34, 35, 4, 8, 14, 16, 19, 24, 25, 28, 31, 35, 36, 8, 14, 16, 17, 21, 22, 28, 29, 34, 35, 1, 1, 4, 9, 13, 14, 20, 21, 26, 28, 4, 6, 11, 18, 21, 27, 34, 4, 11, 12, 18, 19, 24, 25, 29, 30, 34, 35, 36, 41, 42, 46, 47, 48, 54, 55, 59, 60, 64, 65, 1, 1, 4, 10, 14, 15, 20, 21, 26, 28, 4, 7, 12, 13, 17, 18, 20, 25, 26, 27, 30, 36, 37, 38, 41, 46, 47, 51, 52, 54, 59, 60, 61, 62, 8, 11, 16, 17, 21, 22, 24, 29, 30, 31, 34, 40, 41, 42, 45, 50, 51, 55, 56, 58, 63, 64, 65, 66, 12, 17, 18, 22, 23, 1, 1, 4, 7, 10, 12, 16, 17, 21, 23, 4, 7, 12, 13, 18, 20, 21, 22, 26, 31, 32, 37, 38, 42, 45, 51, 52, 8, 11, 16, 17, 21, 23, 27, 28, 32, 33, 38, 41, 43, 48, 49, 54, 55, 58, 59, 60, 63, 68, 69, 73, 75, 76, 77, 80, 81, 82, 83, 12, 14, 24, 30, 33, 39, 49, 12, 14, 22, 23, 25, 32, 33, 40, 41, 42, 43, 48, 49, 55, 56, 59, 61, 66, 67, 73, 74, 12, 14, 22, 23, 25, 32, 33, 40, 41, 45, 46, 52, 53, 56, 58, 63, 64, 70, 71, 76, 77, 82, 84, 89, 90, 96, 97, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 52, 53, 54, 55, 56, 58, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 52, 53, 54, 55, 56, 58, 12, 14, 22, 23, 25, 32, 33, 40, 41, 45, 46, 52, 53, 56, 58, 63, 64, 70, 71, 76, 77, 83, 84, 87, 89, 94, 95, 101, 102, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 52, 53, 54, 55, 56, 58, 8, 11, 16, 17, 21, 23, 24, 25, 28, 29, 30, 31, 12, 14, 22, 23, 25, 32, 33, 40, 41, 42, 43, 48, 49, 55, 56, 59, 61, 66, 67, 73, 74, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 52, 53, 54, 55, 56, 58, 8, 11, 16, 17, 21, 23, 27, 28, 29, 30, 32, 37, 38, 43, 44, 47, 48, 49, 50, 12, 17, 19, 26, 27, 33, 34, 38, 39, 44, 45, 12, 15, 20, 23, 25, 26, 28, 16, 21, 22, 24, 27, 30, 31, 37, 38, 40, 43, 46, 47, 51, 52, 58, 59, 62, 63, 64, 65, 67, 12, 17, 22, 25, 27, 28, 30, 16, 21, 22, 24, 27, 30, 31, 37, 38, 40, 43, 46, 47, 51, 52, 58, 59, 62, 63, 64, 65, 67, 8, 14, 16, 18, 21, 23, 27, 28, 32, 33, 1, 1, 4, 10, 12, 14, 17, 19, 23, 24, 28, 30, 4, 6, 11, 17, 18, 20, 4, 6, 12, 14, 15, 18, 23, 27, 33, 36, 39, 42, 48, 51, 61, 67, 4, 7, 12, 13, 17, 19, 20, 21, 22, 25, 26, 27, 31, 36, 37, 41, 43, 44, 45, 46, 47, 50, 51, 52, 53, 8, 17, 19, 26, 27, 33, 34, 38, 39, 43, 47, 48, 8, 13, 14, 19, 20, 22, 23, 29, 30, 35, 36, 38, 39, 47, 48, 49, 50, 52, 4, 7, 12, 13, 17, 19, 20, 21, 22, 25, 26, 27, 28, 8, 17, 19, 26, 27, 33, 34, 38, 39, 43, 47, 48, 8, 13, 14, 17, 20, 24, 25, 31, 32, 35, 38, 42, 43, 51, 52, 53, 54, 56, 4, 7, 12, 13, 17, 19, 20, 21, 22, 23, 26, 27, 28, 29, 8, 17, 19, 26, 27, 33, 34, 38, 39, 43, 47, 48, 8, 13, 14, 16, 19, 22, 23, 29, 30, 32, 35, 38, 39, 47, 48, 49, 50, 51, 52, 54, 1, 1, 4, 11, 14, 21, 22, 27, 28, 33, 35, 4, 7, 12, 13, 18, 20, 25, 26, 31, 34, 38, 44, 45, 49, 51, 54, 56, 57, 59, 8, 13, 14, 18, 19, 4, 7, 9, 14, 15, 19, 21, 24, 26, 30, 32, 36, 41, 42, 44, 47, 52, 53, 59, 60, 63, 65, 67, 71, 72, 76, 78, 79, 80, 82, 8, 13, 14, 16, 19, 21, 25, 26, 30, 31, 33, 34, 35, 4, 9, 11, 16, 17, 21, 23, 26, 28, 33, 35, 39, 44, 45, 47, 50, 55, 56, 62, 63, 66, 67, 8, 13, 14, 16, 19, 21, 25, 26, 30, 31, 33, 34, 35, 4, 7, 12, 13, 18, 21, 26, 27, 32, 35, 36, 8, 10, 16, 21, 25, 31, 36, 8, 11, 15, 16, 21, 22, 26, 28, 29, 32, 33, 34, 35, 12, 15, 19, 20, 24, 25, 29, 30, 32, 33, 34, 35, 36, 16, 21, 22, 26, 29, 35, 36, 40, 42, 8, 11, 17, 18, 22, 24, 27, 29, 33, 38, 40, 12, 17, 18, 22, 24, 29, 30, 34, 35, 36, 38, 39, 40, 8, 11, 17, 18, 22, 24, 27, 29, 35, 37, 12, 17, 18, 23, 27, 30, 32, 36, 37, 42, 43, 48, 49, 53, 54, 12, 14, 20, 25, 12, 18, 22, 24, 29, 30, 33, 35, 40, 41, 46, 52, 54, 58, 59, 63, 64, 69, 70, 72, 76, 78, 83, 84, 88, 90, 93, 94, 96, 12, 17, 18, 22, 24, 26, 31, 36, 37, 1, 1, 4, 11, 16, 23, 24, 29, 30, 35, 37, 4, 10, 14, 15, 20, 21, 26, 27, 1, 1, 4, 11, 16, 17, 21, 22, 26, 28, 4, 6, 15, 21, 22, 23, 27, 33, 39, 40, 46, 4, 7, 12, 13, 16, 19, 25, 29, 34, 35, 40, 42, 47, 48, 53, 56, 57, 8, 13, 14, 16, 19, 24, 25, 30, 8, 11, 16, 17, 21, 23, 24, 25, 28, 29, 30, 31, 12, 17, 18, 23, 26, 31, 32, 37, 8, 11, 16, 17, 19, 21, 22, 23, 24, 25, 26, 28, 38, 43, 46, 49, 53, 57, 12, 17, 18, 23, 26, 27, 28, 12, 17, 18, 20, 22, 27, 28, 34, 35, 38, 40, 41, 42, 43, 12, 17, 18, 23, 26, 27, 28, 8, 11, 16, 17, 19, 21, 22, 23, 24, 25, 26, 28, 31, 37, 41, 45, 47, 51, 55, 57, 61, 65, 12, 17, 18, 22, 25, 26, 27, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 19, 22, 24, 28, 29, 33, 34, 8, 12, 18, 20, 23, 28, 29, 34, 35, 37, 38, 12, 18, 20, 21, 23, 28, 29, 33, 34, 38, 39, 8, 12, 17, 18, 22, 23, 8, 12, 18, 20, 23, 28, 29, 32, 35, 39, 40, 12, 18, 20, 21, 23, 28, 29, 33, 34, 38, 39, 8, 12, 15, 18, 22, 23, 27, 28, 8, 12, 16, 19, 24, 25, 27, 30, 33, 34, 12, 16, 17, 19, 24, 25, 29, 30, 34, 35, 8, 12, 14, 17, 20, 21, 25, 26, 8, 12, 15, 18, 20, 23, 28, 29, 31, 34, 37, 38, 12, 14, 19, 24, 30, 33, 38, 41, 45, 52, 12, 15, 20, 21, 26, 27, 31, 34, 40, 41, 16, 19, 22, 24, 25, 27, 32, 33, 37, 38, 42, 43, 8, 11, 16, 17, 19, 22, 25, 29, 32, 38, 39, 12, 16, 17, 21, 22, 8, 11, 16, 17, 22, 25, 30, 31, 12, 15, 19, 20, 24, 25, 30, 32, 37, 38, 40, 41, 44, 45, 46, 47, 48, 49, 16, 18, 21, 27, 32, 36, 42, 45, 48, 51, 58, 16, 21, 22, 27, 28, 32, 33, 38, 39, 41, 44, 47, 51, 53, 59, 60, 66, 1, 1, 4, 11, 14, 17, 20, 21, 27, 28, 33, 35, 4, 6, 12, 14, 15, 22, 26, 33, 43, 4, 11, 12, 18, 19, 24, 25, 29, 30, 35, 37, 38, 39, 40, 45, 46, 52, 54, 55, 56, 57, 63, 64, 68, 69, 79, 80, 4, 11, 12, 18, 19, 23, 24, 25, 26, 27, 28, 29, 30, 35, 36, 41, 42, 43, 44, 45, 46, 4, 8, 11, 14, 16, 19, 24, 25, 27, 30, 33, 34, 8, 11, 14, 16, 17, 21, 22, 28, 29, 4, 9, 14, 17, 18, 24, 25, 30, 31, 4, 11, 12, 18, 19, 24, 25, 29, 30, 32, 33, 38, 39, 41, 42, 48, 49, 53, 54, 57, 58, 61, 62, 4, 11, 12, 18, 19, 23, 24, 28, 29, 34, 36, 37, 38, 39, 40, 41, 42, 43, 48, 50, 55, 56, 58, 59, 60, 62, 67, 68, 73, 74, 79, 81, 86, 87, 88, 89, 94, 96, 101, 103, 109, 111, 4, 11, 12, 18, 19, 23, 24, 28, 29, 34, 36, 37, 38, 39, 40, 41, 42, 43, 48, 50, 55, 56, 58, 59, 60, 62, 67, 68, 73, 74, 79, 81, 86, 87, 88, 89, 94, 96, 101, 103, 109, 111, 4, 11, 12, 18, 19, 23, 24, 9, 10, 12, 17, 18, 23, 25, 26, 27, 28, 9, 10, 11, 12, 13, 8, 13, 15, 17, 20, 28, 32, 38, 39, 43, 48, 55, 59, 20, 26, 29, 34, 40, 41, 45, 8, 13, 15, 20, 21, 22, 23, 28, 30, 8, 13, 15, 21, 23, 4, 6, 4, 7, 12, 13, 16, 19, 24, 25, 8, 15, 16, 22, 23, 32, 33, 34, 35, 36, 37, 38, 43, 44, 49, 50, 55, 56, 62, 63, 68, 70, 75, 77, 8, 15, 16, 22, 23, 28, 29, 33, 34, 39, 41, 42, 43, 44, 49, 50, 56, 58, 59, 60, 61, 67, 68, 72, 73, 77, 83, 84, 8, 15, 16, 22, 23, 27, 28, 12, 17, 18, 23, 25, 26, 27, 28, 33, 34, 40, 42, 43, 44, 45, 50, 52, 55, 57, 60, 61, 68, 70, 73, 78, 83, 86, 91, 93, 102, 103, 104, 105, 110, 112, 117, 119, 125, 126, 8, 10, 8, 15, 16, 22, 23, 27, 28, 32, 33, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 53, 55, 60, 61, 63, 64, 65, 67, 72, 73, 78, 79, 84, 86, 91, 92, 93, 94, 99, 101, 106, 108, 114, 116, 4, 7, 12, 13, 18, 21, 22, 23, 24, 8, 13, 15, 16, 22, 23, 28, 29, 4, 9, 13, 14, 20, 21, 26, 27, 1, 1, 4, 9, 11, 12, 18, 19, 24, 26, 27, 29, 35, 37, 38, 45, 49, 56, 66, 4, 11, 12, 18, 19, 28, 29, 30, 31, 32, 33, 34, 39, 40, 45, 46, 51, 52, 58, 59, 64, 66, 71, 73, 4, 11, 12, 18, 19, 24, 25, 29, 30, 35, 37, 38, 39, 40, 45, 46, 52, 54, 55, 56, 57, 63, 64, 68, 69, 72, 78, 79, 4, 11, 12, 18, 19, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 40, 41, 45, 46, 49, 52, 53, 4, 11, 12, 18, 19, 23, 24, 28, 29, 34, 36, 37, 38, 39, 40, 41, 42, 43, 48, 50, 53, 58, 61, 64, 69, 71, 76, 77, 78, 79, 84, 86, 91, 93, 99, 101, 4, 11, 12, 18, 19, 23, 24, 28, 29, 34, 36, 37, 38, 39, 40, 41, 42, 43, 44, 49, 51, 56, 57, 59, 60, 61, 63, 68, 69, 74, 75, 80, 82, 87, 88, 89, 90, 95, 97, 102, 104, 110, 112, 4, 11, 12, 18, 19, 23, 24, 28, 29, 34, 36, 37, 38, 39, 40, 41, 42, 43, 44, 49, 51, 54, 56, 59, 60, 66, 71, 76, 79, 84, 86, 91, 92, 93, 94, 99, 101, 106, 108, 114, 116, 4, 11, 12, 18, 19, 28, 29, 33, 34, 39, 41, 42, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 59, 60, 65, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 85, 87, 92, 94, 4, 11, 12, 18, 19, 23, 24, 28, 29, 34, 36, 37, 38, 39, 40, 41, 42, 43, 44, 49, 50, 54, 55, 59, 60, 1, 1, 33, 37, 1, 2, 3, 4, 10, 15, 1, 33, 37, 1, 4, 9, 10, 16, 17, 21, 23, 4, 6, 11, 17, 22, 26, 33, 4, 6, 12, 14, 15, 19, 28, 31, 37, 43, 47, 56, 4, 7, 12, 13, 19, 22, 27, 31, 36, 37, 42, 43, 47, 50, 56, 57, 8, 11, 16, 17, 21, 23, 24, 25, 26, 29, 30, 31, 32, 12, 14, 22, 23, 25, 32, 33, 40, 41, 42, 43, 44, 45, 46, 47, 48, 12, 15, 19, 20, 21, 29, 30, 32, 33, 34, 35, 36, 37, 39, 40, 41, 42, 46, 50, 51, 52, 60, 61, 63, 64, 65, 66, 67, 68, 70, 71, 72, 73, 74, 16, 18, 21, 28, 34, 38, 40, 47, 50, 55, 59, 64, 69, 16, 19, 24, 25, 30, 31, 35, 38, 43, 44, 20, 25, 26, 28, 31, 34, 35, 36, 42, 43, 45, 48, 51, 52, 53, 61, 62, 63, 64, 65, 67, 16, 19, 24, 25, 30, 31, 35, 38, 43, 44, 20, 25, 26, 28, 31, 34, 35, 36, 42, 43, 45, 48, 51, 52, 53, 61, 62, 64, 65, 66, 67, 68, 69, 70, 71, 73, 8, 11, 16, 17, 21, 23, 24, 25, 26, 29, 30, 31, 32, 12, 17, 19, 26, 27, 33, 34, 38, 39, 44, 45, 12, 15, 20, 23, 25, 26, 28, 16, 19, 24, 25, 30, 31, 35, 38, 43, 44, 20, 25, 26, 28, 31, 34, 35, 36, 42, 43, 45, 48, 51, 52, 53, 54, 55, 56, 57, 58, 60, 16, 19, 24, 25, 30, 31, 35, 38, 43, 44, 20, 25, 26, 28, 31, 34, 35, 36, 42, 43, 45, 48, 51, 52, 53, 54, 55, 56, 57, 58, 60, 12, 17, 22, 25, 27, 28, 30, 16, 19, 24, 25, 30, 31, 35, 38, 43, 44, 20, 25, 26, 28, 31, 34, 35, 36, 42, 43, 45, 48, 51, 52, 53, 54, 55, 56, 57, 58, 60, 16, 19, 24, 25, 30, 31, 35, 38, 43, 44, 20, 25, 26, 28, 31, 34, 35, 36, 42, 43, 45, 48, 51, 52, 53, 54, 55, 56, 57, 58, 60, 8, 14, 16, 20, 21, 27, 28, 32, 33, 1, 1, 4, 10, 12, 16, 17, 23, 24, 28, 30, 4, 6, 11, 17, 20, 23, 28, 36, 38, 40, 44, 49, 58, 59, 4, 7, 12, 13, 17, 19, 20, 21, 22, 25, 26, 27, 31, 36, 37, 41, 43, 44, 45, 46, 49, 50, 51, 52, 8, 10, 20, 30, 8, 13, 15, 22, 23, 29, 30, 34, 35, 40, 41, 8, 11, 16, 19, 21, 22, 24, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 27, 28, 30, 31, 37, 38, 43, 44, 46, 47, 48, 49, 50, 51, 52, 53, 55, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 27, 28, 30, 31, 37, 38, 43, 44, 46, 47, 48, 49, 50, 51, 52, 53, 55, 8, 13, 18, 21, 23, 24, 26, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 27, 28, 30, 31, 37, 38, 43, 44, 46, 47, 48, 49, 50, 51, 52, 53, 55, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 27, 28, 30, 31, 37, 38, 43, 44, 46, 47, 48, 49, 50, 51, 52, 53, 55, 4, 7, 12, 13, 17, 19, 20, 21, 22, 25, 26, 27, 28, 8, 13, 15, 22, 23, 29, 30, 34, 35, 40, 41, 8, 11, 16, 19, 21, 22, 24, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 25, 28, 32, 33, 39, 40, 43, 46, 50, 51, 52, 53, 54, 55, 56, 57, 59, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 25, 28, 32, 33, 39, 40, 43, 46, 50, 51, 52, 53, 54, 55, 56, 57, 59, 8, 13, 18, 21, 23, 24, 26, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 25, 28, 32, 33, 39, 40, 43, 46, 50, 51, 52, 53, 54, 55, 56, 57, 59, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 25, 28, 32, 33, 39, 40, 43, 46, 50, 51, 52, 53, 54, 55, 56, 57, 59, 4, 7, 12, 13, 17, 19, 20, 21, 22, 25, 26, 27, 28, 8, 13, 15, 22, 23, 29, 30, 34, 35, 40, 41, 8, 11, 16, 19, 21, 22, 24, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 53, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 53, 8, 13, 18, 21, 23, 24, 26, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 53, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 53, 1, 1, 4, 8, 14, 17, 24, 25, 30, 31, 36, 38, 4, 6, 18, 22, 27, 32, 4, 7, 13, 14, 18, 20, 23, 25, 26, 28, 8, 13, 14, 18, 19, 4, 7, 12, 13, 19, 22, 27, 28, 8, 11, 13, 18, 19, 23, 25, 28, 30, 31, 33, 37, 42, 43, 45, 49, 50, 53, 59, 60, 12, 17, 18, 20, 24, 25, 27, 32, 12, 17, 18, 24, 25, 26, 28, 29, 30, 31, 32, 8, 11, 13, 18, 19, 23, 25, 28, 30, 31, 33, 37, 42, 43, 45, 49, 50, 53, 58, 59, 12, 17, 18, 20, 24, 25, 27, 33, 12, 17, 18, 24, 25, 26, 28, 29, 30, 31, 32, 8, 11, 13, 18, 19, 23, 25, 28, 30, 34, 36, 40, 45, 46, 48, 52, 53, 56, 62, 63, 12, 17, 18, 20, 24, 25, 27, 32, 12, 17, 18, 24, 25, 26, 28, 29, 30, 31, 32, 8, 11, 13, 18, 19, 23, 25, 28, 30, 35, 37, 41, 46, 47, 49, 53, 54, 57, 62, 63, 12, 17, 18, 20, 24, 25, 27, 33, 12, 17, 18, 24, 25, 26, 28, 29, 30, 31, 32, 1, 1, 4, 8, 14, 19, 26, 27, 32, 33, 38, 40, 4, 10, 14, 15, 20, 21, 26, 27, 1, 1, 4, 8, 14, 19, 20, 24, 25, 29, 31, 4, 7, 12, 13, 19, 22, 27, 28, 8, 13, 14, 20, 21, 22, 25, 30, 31, 36, 8, 10, 12, 13, 14, 19, 24, 29, 31, 34, 38, 46, 50, 54, 8, 11, 16, 17, 23, 24, 25, 27, 28, 29, 30, 34, 39, 40, 46, 47, 48, 50, 51, 52, 53, 54, 12, 17, 18, 24, 26, 28, 34, 35, 36, 8, 11, 16, 17, 23, 24, 25, 27, 28, 29, 30, 31, 12, 17, 18, 22, 25, 26, 27, 12, 17, 18, 24, 25, 29, 30, 8, 13, 14, 20, 21, 22, 25, 30, 31, 36, 8, 11, 16, 17, 23, 24, 25, 27, 28, 29, 30, 34, 39, 40, 46, 47, 48, 50, 51, 52, 53, 54, 12, 17, 18, 24, 26, 28, 34, 35, 36, 8, 11, 16, 17, 23, 24, 25, 27, 28, 29, 30, 31, 12, 17, 18, 22, 25, 26, 27, 12, 17, 18, 24, 25, 29, 30, 8, 11, 16, 17, 23, 24, 25, 27, 28, 29, 30, 34, 39, 40, 46, 47, 48, 50, 51, 52, 53, 54, 12, 17, 18, 24, 26, 28, 31, 32, 8, 12, 18, 20, 23, 28, 29, 34, 35, 37, 38, 12, 18, 20, 21, 23, 28, 29, 33, 34, 38, 39, 8, 12, 17, 18, 22, 23, 8, 12, 18, 20, 23, 28, 29, 32, 35, 39, 40, 12, 18, 20, 21, 23, 28, 29, 33, 34, 38, 39, 8, 12, 15, 18, 22, 23, 27, 28, 8, 12, 16, 19, 24, 25, 27, 30, 33, 34, 12, 16, 17, 19, 24, 25, 29, 30, 34, 35, 8, 12, 14, 17, 20, 21, 25, 26, 8, 14, 16, 21, 22, 26, 27, 31, 32, 1, 1, 4, 10, 12, 17, 18, 22, 23, 27, 29, 4, 8, 11, 14, 16, 19, 24, 25, 27, 30, 33, 34, 35, 8, 11, 16, 17, 22, 23, 27, 30, 36, 37, 12, 15, 18, 20, 21, 23, 28, 29, 33, 34, 38, 39, 4, 8, 9, 15, 16, 20, 21, 4, 8, 11, 14, 16, 19, 24, 25, 27, 30, 33, 34, 35, 8, 11, 16, 17, 22, 23, 27, 30, 36, 37, 12, 15, 18, 20, 21, 23, 28, 29, 33, 34, 38, 39, 4, 7, 12, 13, 18, 19, 22, 27, 28, 8, 10, 13, 18, 24, 27, 32, 39, 43, 47, 54, 57, 62, 8, 11, 15, 16, 20, 21, 26, 27, 29, 34, 35, 41, 42, 43, 44, 47, 48, 49, 50, 51, 52, 12, 17, 18, 23, 24, 28, 30, 36, 12, 17, 18, 21, 24, 28, 29, 31, 37, 4, 7, 12, 13, 18, 19, 22, 27, 28, 8, 11, 15, 16, 20, 21, 26, 27, 29, 34, 35, 41, 42, 43, 44, 47, 48, 49, 50, 51, 52, 12, 17, 18, 23, 24, 28, 30, 36, 12, 17, 18, 21, 24, 28, 29, 31, 37, 1, 1, 4, 8, 14, 17, 20, 23, 24, 30, 31, 36, 38, 4, 6, 12, 14, 15, 19, 29, 32, 39, 4, 11, 12, 18, 19, 24, 25, 29, 30, 35, 37, 38, 39, 40, 45, 46, 52, 54, 55, 56, 57, 63, 64, 68, 69, 73, 83, 84, 4, 11, 12, 18, 19, 24, 25, 26, 28, 33, 34, 39, 41, 42, 43, 44, 49, 50, 56, 58, 59, 60, 61, 67, 68, 72, 73, 77, 87, 88, 4, 11, 12, 18, 19, 23, 24, 28, 29, 34, 36, 37, 38, 39, 40, 41, 42, 47, 48, 53, 55, 56, 57, 58, 63, 64, 70, 71, 77, 78, 79, 80, 81, 4, 11, 12, 18, 19, 23, 24, 25, 26, 27, 28, 29, 30, 35, 36, 41, 42, 43, 44, 45, 46, 4, 8, 11, 14, 16, 19, 24, 25, 27, 30, 33, 34, 35, 8, 11, 14, 16, 17, 21, 22, 28, 29, 4, 8, 11, 14, 16, 19, 24, 25, 27, 30, 33, 34, 35, 8, 11, 14, 16, 17, 21, 22, 28, 29, 4, 9, 14, 17, 18, 24, 25, 30, 31, 4, 11, 12, 18, 19, 24, 25, 29, 30, 36, 37, 38, 39, 44, 45, 51, 52, 53, 54, 60, 61, 65, 66, 69, 70, 73, 74, 4, 11, 12, 18, 19, 24, 25, 29, 30, 36, 37, 38, 39, 44, 45, 51, 52, 53, 54, 60, 61, 65, 66, 69, 70, 73, 74, 4, 11, 12, 18, 19, 23, 24, 25, 26, 27, 28, 29, 30, 31, 36, 38, 44, 45, 46, 48, 53, 55, 60, 61, 62, 63, 68, 70, 75, 77, 83, 85, 4, 11, 12, 18, 19, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 37, 39, 45, 46, 47, 49, 54, 56, 61, 62, 63, 64, 69, 71, 76, 78, 84, 86, 4, 11, 12, 18, 19, 24, 25, 4, 9, 13, 14, 20, 21, 26, 27, 1, 1, 4, 11, 12, 18, 19, 24, 26, 4, 7, 12, 13, 19, 22, 24, 30, 31, 33, 8, 15, 16, 22, 23, 32, 33, 34, 35, 36, 37, 38, 43, 44, 49, 50, 55, 56, 62, 63, 68, 70, 75, 77, 8, 15, 16, 22, 23, 28, 29, 33, 34, 39, 41, 42, 43, 44, 49, 50, 56, 58, 59, 60, 61, 67, 68, 72, 73, 76, 82, 83, 8, 15, 16, 22, 23, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 44, 45, 49, 50, 53, 56, 57, 8, 15, 16, 22, 23, 27, 28, 32, 33, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 53, 55, 58, 63, 66, 67, 74, 75, 76, 78, 83, 85, 90, 91, 92, 93, 98, 100, 105, 107, 113, 115, 4, 9, 14, 15, 21, 24, 26, 32, 33, 35, 8, 15, 16, 22, 23, 32, 33, 34, 35, 36, 37, 38, 43, 44, 49, 50, 55, 56, 62, 63, 68, 70, 75, 77, 8, 15, 16, 22, 23, 28, 29, 33, 34, 39, 41, 42, 43, 44, 49, 50, 56, 58, 59, 60, 61, 67, 68, 72, 73, 76, 82, 83, 8, 15, 16, 22, 23, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 44, 45, 49, 50, 53, 56, 57, 8, 15, 16, 22, 23, 27, 28, 32, 33, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 53, 55, 58, 63, 66, 67, 74, 75, 76, 78, 83, 85, 90, 91, 92, 93, 98, 100, 105, 107, 113, 115, 4, 9, 14, 15, 21, 24, 26, 29, 31, 8, 15, 16, 22, 23, 32, 33, 34, 35, 36, 37, 38, 43, 44, 49, 50, 55, 56, 62, 63, 68, 70, 75, 77, 8, 15, 16, 22, 23, 28, 29, 33, 34, 39, 41, 42, 43, 44, 49, 50, 56, 58, 59, 60, 61, 67, 68, 72, 73, 76, 82, 83, 8, 15, 16, 22, 23, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 44, 45, 49, 50, 53, 56, 57, 8, 15, 16, 22, 23, 27, 28, 32, 33, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 53, 55, 56, 58, 59, 63, 68, 73, 76, 79, 84, 86, 91, 92, 93, 94, 99, 101, 106, 108, 114, 116, 1, 1, 33, 37, 1, 2, 9, 14, 1, 33, 37, 1, 1, 4, 11, 14, 21, 22, 27, 28, 33, 35, 4, 7, 13, 14, 18, 20, 23, 25, 26, 28, 8, 13, 14, 18, 19, 1, 1, 4, 11, 16, 23, 24, 29, 30, 35, 37, 4, 6, 12, 16, 22, 25, 32, 36, 41, 47, 4, 10, 14, 15, 20, 21, 26, 27, 4, 7, 12, 13, 17, 18, 20, 25, 26, 27, 30, 36, 37, 38, 41, 46, 47, 51, 52, 54, 59, 60, 61, 62, 8, 11, 16, 17, 21, 22, 24, 25, 26, 28, 33, 34, 35, 38, 44, 45, 46, 49, 54, 55, 59, 60, 62, 63, 64, 66, 71, 72, 73, 74, 12, 17, 18, 22, 27, 29, 31, 35, 36, 12, 17, 18, 22, 24, 29, 30, 35, 12, 17, 18, 24, 25, 30, 31, 35, 37, 42, 43, 46, 51, 52, 57, 58, 61, 66, 8, 11, 16, 17, 20, 21, 23, 24, 25, 27, 32, 33, 34, 37, 43, 44, 45, 48, 53, 54, 57, 58, 60, 61, 62, 64, 69, 70, 71, 72, 12, 17, 18, 22, 27, 29, 31, 37, 38, 12, 17, 18, 24, 26, 31, 32, 37, 12, 17, 18, 22, 23, 28, 29, 33, 35, 40, 41, 44, 49, 50, 55, 56, 59, 64, 8, 11, 16, 17, 21, 22, 24, 25, 26, 28, 33, 34, 35, 38, 44, 45, 46, 49, 54, 55, 59, 60, 62, 63, 64, 66, 71, 72, 73, 74, 12, 17, 18, 22, 27, 29, 31, 35, 36, 12, 17, 18, 22, 24, 29, 30, 35, 12, 17, 18, 22, 23, 28, 29, 35, 37, 42, 43, 46, 51, 52, 57, 58, 61, 66, 4, 10, 16, 17, 22, 23, 28, 29, 4, 10, 14, 15, 20, 21, 26, 27, 1, 1, 4, 10, 16, 17, 22, 23, 28, 30, 4, 6, 12, 16, 22, 25, 32, 36, 41, 47, 4, 7, 12, 13, 16, 17, 19, 24, 25, 26, 29, 35, 36, 37, 40, 45, 46, 49, 50, 52, 57, 58, 59, 60, 8, 11, 16, 17, 21, 22, 24, 25, 26, 28, 33, 34, 35, 38, 44, 45, 46, 49, 54, 55, 59, 60, 62, 63, 64, 66, 71, 72, 73, 74, 12, 17, 18, 22, 27, 29, 31, 32, 34, 38, 39, 12, 17, 18, 19, 21, 25, 27, 32, 33, 38, 12, 17, 18, 22, 23, 28, 29, 31, 36, 41, 43, 48, 49, 52, 57, 58, 63, 64, 67, 72, 8, 11, 16, 17, 20, 21, 23, 24, 25, 27, 32, 33, 34, 37, 43, 44, 45, 48, 53, 54, 57, 58, 60, 61, 62, 64, 69, 70, 71, 72, 12, 17, 18, 22, 27, 29, 31, 35, 36, 12, 17, 18, 22, 24, 29, 30, 35, 12, 17, 18, 19, 21, 25, 26, 31, 32, 34, 39, 44, 46, 51, 52, 55, 60, 61, 66, 67, 70, 75, 8, 11, 16, 17, 21, 22, 24, 25, 26, 28, 33, 34, 35, 38, 44, 45, 46, 49, 54, 55, 59, 60, 62, 63, 64, 66, 71, 72, 73, 74, 12, 17, 18, 22, 27, 29, 31, 33, 38, 43, 44, 12, 17, 18, 20, 25, 30, 32, 37, 38, 43, 12, 17, 18, 19, 21, 25, 26, 31, 32, 36, 38, 43, 44, 47, 52, 53, 58, 59, 62, 67, 1, 1, 4, 10, 14, 15, 20, 21, 26, 28, 4, 6, 12, 16, 22, 25, 32, 36, 42, 45, 4, 7, 12, 13, 17, 19, 24, 25, 26, 29, 35, 36, 37, 40, 45, 46, 50, 52, 57, 58, 59, 60, 8, 11, 16, 17, 21, 22, 24, 25, 26, 28, 33, 34, 35, 38, 44, 45, 46, 49, 54, 55, 59, 60, 62, 63, 64, 66, 71, 72, 73, 74, 12, 17, 18, 23, 24, 26, 32, 34, 39, 12, 17, 18, 21, 22, 27, 28, 30, 32, 37, 38, 43, 44, 49, 50, 53, 58, 8, 11, 16, 17, 21, 23, 24, 25, 27, 32, 33, 34, 37, 43, 44, 45, 48, 53, 54, 58, 60, 61, 62, 64, 69, 70, 71, 72, 12, 17, 18, 23, 24, 26, 32, 34, 40, 12, 17, 18, 20, 21, 26, 27, 30, 32, 37, 38, 43, 44, 49, 50, 53, 58, 4, 7, 12, 13, 18, 21, 26, 27, 32, 33, 8, 11, 16, 17, 22, 23, 25, 30, 31, 32, 35, 41, 42, 43, 46, 51, 52, 57, 58, 60, 65, 66, 67, 68, 12, 15, 20, 21, 24, 25, 27, 28, 29, 31, 36, 37, 38, 41, 47, 48, 49, 52, 57, 58, 61, 62, 64, 65, 66, 68, 73, 74, 75, 76, 16, 21, 22, 26, 28, 30, 35, 42, 43, 1, 1, 4, 9, 16, 17, 23, 24, 29, 31, 4, 6, 12, 17, 24, 4, 9, 10, 14, 15, 20, 21, 25, 27, 29, 38, 39, 40, 41, 46, 48, 50, 56, 57, 4, 11, 12, 18, 19, 23, 24, 28, 29, 32, 33, 34, 39, 40, 41, 43, 44, 49, 51, 55, 61, 64, 69, 70, 74, 75, 79, 80, 85, 86, 90, 91, 95, 96, 4, 11, 12, 18, 19, 24, 25, 29, 30, 34, 35, 36, 41, 42, 46, 47, 48, 54, 55, 59, 60, 64, 65, 4, 11, 12, 18, 19, 23, 24, 28, 29, 33, 34, 35, 40, 41, 45, 46, 47, 52, 54, 58, 60, 65, 66, 70, 71, 75, 76, 4, 11, 12, 18, 19, 24, 25, 29, 30, 33, 34, 35, 40, 41, 45, 46, 47, 53, 54, 58, 59, 65, 66, 4, 11, 12, 18, 19, 23, 24, 28, 29, 32, 33, 34, 39, 40, 44, 45, 46, 51, 53, 59, 61, 66, 67, 71, 72, 76, 77, 4, 11, 12, 18, 19, 24, 25, 29, 30, 34, 35, 36, 41, 42, 46, 47, 48, 54, 55, 59, 60, 64, 65, 4, 11, 12, 18, 19, 23, 24, 28, 29, 33, 34, 35, 40, 41, 45, 46, 47, 52, 54, 58, 60, 65, 66, 70, 71, 75, 76, 4, 11, 12, 18, 19, 24, 25, 29, 30, 34, 35, 36, 41, 42, 45, 46, 47, 53, 54, 58, 59, 60, 62, 66, 67, 4, 11, 12, 18, 19, 23, 24, 28, 29, 32, 33, 34, 39, 40, 43, 44, 49, 51, 55, 61, 64, 69, 70, 74, 75, 79, 80, 85, 86, 90, 91, 95, 96, 4, 11, 12, 18, 19, 23, 24, 28, 29, 33, 34, 35, 40, 41, 44, 45, 46, 51, 53, 54, 56, 60, 62, 67, 68, 72, 73, 77, 78, 4, 11, 12, 18, 19, 24, 25, 29, 30, 33, 34, 35, 40, 41, 44, 45, 46, 52, 53, 57, 58, 62, 63, 4, 11, 12, 18, 19, 23, 24, 28, 29, 32, 33, 34, 39, 40, 43, 44, 45, 50, 52, 56, 58, 63, 64, 68, 69, 73, 74, 4, 11, 12, 18, 19, 24, 25, 29, 30, 34, 35, 36, 41, 42, 45, 46, 47, 53, 54, 58, 59, 61, 66, 71, 72, 4, 11, 12, 18, 19, 23, 24, 28, 29, 33, 34, 35, 40, 41, 44, 45, 46, 51, 53, 55, 58, 60, 65, 66, 70, 71, 75, 76, 4, 11, 12, 18, 19, 23, 24, 28, 29, 32, 33, 34, 39, 40, 43, 44, 49, 51, 56, 57, 59, 62, 67, 68, 72, 73, 77, 78, 83, 84, 88, 89, 93, 94, 4, 11, 12, 18, 19, 24, 25, 29, 30, 34, 35, 36, 41, 42, 46, 47, 53, 54, 58, 59, 62, 63, 4, 11, 12, 18, 19, 23, 24, 28, 29, 33, 34, 35, 40, 41, 45, 46, 51, 53, 56, 58, 63, 64, 68, 69, 73, 74, 4, 11, 12, 18, 19, 24, 25, 29, 30, 34, 35, 40, 41, 45, 46, 52, 53, 57, 58, 60, 61, 4, 11, 12, 18, 19, 23, 24, 28, 29, 33, 34, 39, 40, 44, 45, 50, 52, 54, 56, 61, 62, 66, 67, 71, 72, 4, 11, 16, 17, 23, 24, 29, 30, 1, 1, 4, 11, 16, 17, 23, 24, 29, 31, 4, 6, 12, 15, 18, 22, 28, 35, 43, 46, 52, 4, 7, 12, 13, 18, 19, 21, 27, 30, 35, 39, 44, 45, 49, 54, 57, 62, 66, 71, 72, 76, 81, 84, 89, 90, 8, 13, 14, 19, 21, 26, 27, 32, 4, 11, 12, 18, 19, 24, 25, 29, 30, 33, 34, 35, 40, 41, 46, 47, 48, 54, 55, 59, 60, 65, 66, 4, 11, 12, 18, 19, 23, 24, 28, 29, 32, 33, 34, 39, 40, 45, 46, 47, 52, 54, 59, 61, 66, 67, 71, 72, 76, 77, 1, 1, 4, 11, 16, 17, 21, 22, 26, 28, 4, 9, 10, 16, 20, 23, 24, 25, 4, 7, 12, 13, 19, 23, 25, 26, 27, 30, 31, 32, 33, 8, 13, 17, 18, 22, 23, 4, 8, 13, 16, 21, 22, 28, 29, 33, 34, 8, 13, 14, 16, 21, 22, 26, 27, 31, 32, 1, 1, 4, 9, 13, 14, 18, 20, 4, 6, 17, 23, 4, 6, 14, 16, 23, 24, 31, 32, 33, 34, 39, 40, 45, 46, 4, 9, 10, 16, 17, 21, 22, 28, 29, 31, 34, 37, 38, 39, 47, 48, 49, 50, 52, 1, 1, 4, 11, 14, 17, 20, 21, 27, 28, 33, 35, 4, 11, 12, 18, 19, 24, 25, 29, 30, 35, 37, 38, 39, 40, 45, 46, 52, 54, 55, 56, 57, 63, 64, 68, 69, 79, 80, 4, 11, 12, 18, 19, 24, 25, 29, 30, 35, 37, 38, 39, 40, 45, 46, 52, 54, 55, 56, 57, 63, 64, 68, 69, 70, 72, 73, 4, 8, 13, 16, 21, 22, 28, 29, 33, 34, 8, 13, 14, 18, 19, 25, 26, 4, 11, 12, 18, 19, 23, 24, 28, 29, 34, 36, 37, 38, 39, 44, 45, 46, 47, 48, 50, 51, 52, 53, 54, 59, 61, 65, 70, 76, 79, 84, 86, 91, 92, 93, 94, 99, 101, 106, 108, 114, 116, 4, 9, 16, 17, 23, 24, 29, 30, 4, 9, 13, 14, 20, 21, 26, 27, 1, 1, 33, 37, 1, 2, 8, 15, 20, 1, 33, 37, 1, 4, 8, 18, 19, 23, 25, 4, 6, 13, 18, 23, 4, 7, 12, 13, 17, 22, 25, 27, 31, 33, 8, 13, 14, 19, 21, 22, 23, 4, 9, 14, 15, 19, 24, 27, 29, 35, 37, 8, 13, 14, 19, 21, 22, 23, 24, 4, 9, 14, 15, 19, 24, 27, 29, 33, 35, 8, 13, 14, 19, 21, 22, 23, 24, 4, 7, 12, 13, 17, 22, 25, 27, 29, 34, 39, 41, 8, 13, 14, 15, 20, 22, 23, 24, 4, 9, 14, 15, 19, 24, 27, 29, 33, 35, 8, 13, 14, 15, 20, 22, 23, 24, 25, 4, 9, 14, 15, 19, 24, 27, 29, 30, 32, 36, 38, 8, 13, 14, 15, 20, 22, 23, 24, 25, 1, 1, 4, 10, 12, 15, 17, 21, 22, 26, 28, 4, 6, 13, 19, 4, 7, 12, 13, 18, 24, 25, 29, 31, 32, 33, 34, 8, 11, 16, 17, 21, 23, 27, 28, 29, 30, 31, 32, 34, 39, 40, 41, 46, 47, 50, 51, 52, 53, 12, 14, 22, 23, 25, 32, 33, 40, 41, 42, 43, 48, 49, 55, 56, 59, 61, 66, 67, 73, 74, 12, 14, 22, 23, 25, 32, 33, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 12, 14, 22, 23, 25, 32, 33, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 52, 53, 54, 55, 56, 58, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 52, 53, 54, 55, 56, 58, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 52, 53, 54, 55, 56, 58, 8, 11, 16, 17, 21, 23, 27, 28, 29, 30, 31, 32, 34, 39, 40, 41, 46, 47, 50, 51, 52, 53, 12, 14, 22, 23, 25, 32, 33, 40, 41, 42, 43, 44, 45, 46, 47, 48, 12, 14, 22, 23, 25, 32, 33, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 52, 53, 54, 55, 56, 58, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 52, 53, 54, 55, 56, 58, 8, 11, 16, 17, 21, 23, 27, 28, 32, 33, 34, 39, 40, 43, 44, 45, 46, 12, 17, 19, 26, 27, 33, 34, 38, 39, 44, 45, 12, 15, 20, 23, 25, 26, 28, 16, 21, 22, 24, 27, 30, 31, 37, 38, 40, 43, 46, 47, 48, 50, 55, 56, 61, 63, 64, 65, 67, 68, 69, 70, 71, 72, 73, 75, 12, 17, 22, 25, 27, 28, 30, 16, 21, 22, 24, 27, 30, 31, 37, 38, 40, 43, 46, 47, 48, 50, 55, 56, 61, 63, 64, 65, 67, 68, 69, 70, 71, 72, 73, 75, 12, 14, 22, 23, 25, 32, 33, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 52, 53, 54, 55, 56, 58, 8, 14, 19, 21, 22, 26, 27, 1, 1, 4, 10, 15, 17, 18, 22, 24, 4, 6, 13, 19, 20, 23, 28, 31, 39, 43, 4, 7, 12, 13, 18, 19, 21, 27, 30, 35, 36, 8, 11, 16, 17, 21, 23, 24, 25, 26, 29, 30, 31, 35, 40, 41, 45, 47, 48, 49, 50, 53, 54, 55, 56, 12, 21, 23, 30, 31, 37, 38, 42, 43, 47, 51, 52, 12, 17, 18, 23, 24, 26, 27, 33, 34, 39, 40, 42, 43, 51, 52, 53, 54, 56, 8, 11, 16, 17, 21, 23, 24, 25, 26, 29, 30, 31, 32, 12, 21, 23, 30, 31, 37, 38, 42, 43, 47, 51, 52, 12, 17, 18, 21, 24, 28, 29, 35, 36, 39, 42, 46, 47, 55, 56, 57, 58, 60, 8, 11, 16, 17, 21, 23, 24, 25, 26, 29, 30, 31, 32, 12, 21, 23, 30, 31, 37, 38, 42, 43, 47, 51, 52, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 51, 52, 53, 54, 55, 56, 58, 1, 1, 4, 10, 17, 20, 27, 28, 33, 34, 39, 41, 4, 7, 13, 14, 18, 20, 23, 25, 26, 28, 8, 13, 14, 18, 19, 4, 7, 12, 13, 18, 24, 25, 29, 31, 32, 33, 34, 8, 11, 13, 18, 19, 23, 25, 28, 30, 34, 36, 40, 45, 46, 48, 51, 52, 53, 54, 55, 56, 12, 17, 18, 20, 23, 28, 29, 33, 35, 36, 37, 8, 13, 15, 20, 21, 25, 27, 30, 32, 37, 39, 43, 48, 49, 51, 54, 55, 56, 57, 58, 59, 12, 17, 18, 20, 23, 28, 29, 33, 35, 36, 37, 1, 1, 4, 10, 17, 22, 29, 30, 35, 36, 41, 43, 4, 10, 14, 15, 20, 21, 26, 27, 1, 1, 4, 10, 17, 22, 23, 27, 28, 32, 34, 4, 8, 18, 19, 23, 24, 4, 7, 12, 13, 18, 24, 25, 29, 31, 32, 33, 34, 8, 13, 14, 16, 19, 24, 25, 30, 8, 11, 16, 17, 19, 21, 22, 23, 24, 25, 12, 17, 18, 23, 26, 27, 28, 8, 11, 16, 17, 19, 21, 22, 23, 24, 25, 12, 17, 18, 22, 25, 26, 27, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 22, 24, 27, 29, 33, 34, 38, 39, 8, 11, 16, 17, 22, 23, 25, 31, 34, 40, 41, 12, 16, 19, 22, 24, 27, 32, 33, 35, 38, 41, 42, 16, 19, 22, 24, 25, 27, 32, 33, 37, 38, 42, 43, 12, 16, 17, 21, 22, 8, 11, 16, 17, 22, 23, 25, 31, 34, 39, 40, 12, 16, 22, 24, 27, 32, 33, 38, 39, 41, 42, 16, 22, 24, 25, 27, 32, 33, 37, 38, 42, 43, 12, 16, 21, 22, 26, 27, 12, 16, 22, 24, 27, 32, 33, 36, 39, 43, 44, 16, 22, 24, 25, 27, 32, 33, 37, 38, 42, 43, 12, 16, 19, 22, 26, 27, 31, 32, 12, 16, 20, 23, 28, 29, 31, 34, 37, 38, 16, 20, 21, 23, 28, 29, 33, 34, 38, 39, 12, 16, 18, 21, 24, 25, 29, 30, 12, 16, 19, 22, 24, 27, 32, 33, 35, 38, 41, 42, 16, 19, 24, 25, 30, 31, 35, 38, 44, 45, 20, 23, 26, 28, 29, 31, 36, 37, 41, 42, 46, 47, 12, 15, 20, 21, 23, 26, 29, 33, 36, 42, 43, 16, 20, 21, 25, 26, 12, 15, 20, 21, 26, 29, 34, 35, 16, 18, 21, 26, 32, 35, 40, 47, 51, 55, 62, 65, 70, 16, 19, 23, 24, 28, 29, 34, 36, 41, 42, 44, 45, 48, 49, 50, 51, 52, 53, 20, 25, 26, 31, 32, 36, 37, 42, 43, 45, 48, 51, 55, 57, 63, 64, 70, 1, 1, 4, 10, 17, 20, 23, 26, 27, 33, 34, 39, 41, 4, 11, 12, 18, 19, 24, 25, 29, 30, 35, 37, 38, 39, 40, 45, 46, 52, 54, 55, 56, 57, 63, 64, 68, 69, 79, 80, 4, 11, 12, 18, 19, 23, 24, 25, 26, 27, 28, 29, 30, 35, 36, 41, 42, 43, 44, 45, 46, 4, 8, 11, 14, 16, 19, 24, 25, 27, 30, 33, 34, 8, 11, 14, 16, 17, 21, 22, 28, 29, 4, 7, 12, 13, 18, 19, 21, 27, 30, 35, 36, 8, 13, 18, 21, 22, 28, 29, 34, 35, 4, 11, 12, 18, 19, 24, 25, 29, 30, 32, 33, 38, 39, 41, 42, 48, 49, 53, 54, 57, 58, 61, 62, 4, 11, 12, 18, 19, 23, 24, 28, 29, 34, 36, 37, 38, 39, 40, 41, 42, 43, 44, 49, 51, 56, 58, 62, 63, 65, 66, 67, 69, 74, 75, 80, 86, 87, 91, 92, 97, 99, 104, 105, 106, 107, 112, 114, 119, 121, 127, 129, 4, 11, 12, 18, 19, 23, 24, 8, 13, 14, 19, 21, 22, 23, 24, 9, 10, 11, 12, 13, 8, 13, 15, 17, 20, 25, 27, 32, 36, 44, 46, 51, 9, 11, 15, 17, 21, 23, 27, 28, 32, 8, 13, 15, 20, 21, 22, 23, 28, 30, 8, 13, 15, 21, 23, 4, 6, 4, 7, 12, 13, 18, 24, 25, 29, 32, 33, 34, 35, 8, 15, 16, 22, 23, 32, 33, 34, 35, 36, 37, 38, 43, 44, 49, 50, 55, 56, 62, 63, 68, 70, 75, 77, 8, 15, 16, 22, 23, 28, 29, 33, 34, 39, 41, 42, 43, 44, 49, 50, 56, 58, 59, 60, 61, 67, 68, 72, 73, 77, 83, 84, 8, 15, 16, 22, 23, 27, 28, 12, 17, 18, 23, 25, 26, 27, 28, 33, 34, 40, 42, 43, 44, 45, 50, 52, 55, 57, 60, 61, 68, 70, 73, 78, 83, 86, 91, 93, 102, 103, 104, 105, 110, 112, 117, 119, 125, 126, 8, 10, 4, 7, 12, 13, 18, 20, 21, 22, 23, 8, 12, 18, 19, 25, 26, 31, 32, 4, 9, 13, 14, 20, 21, 26, 27, 1, 1, 4, 8, 14, 15, 21, 22, 27, 29, 4, 6, 13, 17, 22, 26, 30, 4, 11, 12, 18, 19, 28, 29, 30, 31, 32, 33, 34, 39, 40, 45, 46, 51, 52, 58, 59, 64, 66, 71, 73, 4, 11, 12, 18, 19, 24, 25, 29, 30, 35, 37, 38, 39, 40, 45, 46, 52, 54, 55, 56, 57, 63, 64, 68, 69, 72, 78, 79, 4, 11, 12, 18, 19, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 40, 41, 45, 46, 49, 52, 53, 4, 11, 12, 18, 19, 23, 24, 28, 29, 34, 36, 37, 38, 39, 40, 41, 42, 43, 44, 49, 51, 54, 59, 62, 65, 70, 72, 77, 78, 79, 80, 85, 87, 92, 94, 100, 102, 1, 1, 33, 37, 1, 2, 5, 10, 16, 21, 1, 33, 37, 1, 4, 15, 18, 25, 26, 31, 32, 37, 39, 4, 7, 13, 14, 18, 20, 23, 25, 26, 28, 8, 13, 14, 18, 19, 1, 1, 4, 9, 13, 18, 21, 22, 28, 29, 34, 36, 4, 11, 12, 18, 19, 23, 24, 28, 29, 32, 33, 34, 39, 40, 41, 44, 45, 50, 52, 60, 65, 71, 74, 79, 81, 86, 87, 88, 89, 94, 96, 101, 103, 109, 111, 4, 11, 12, 18, 19, 24, 25, 29, 30, 34, 35, 36, 41, 42, 46, 47, 48, 54, 55, 59, 60, 64, 65, 4, 11, 12, 18, 19, 23, 24, 28, 29, 33, 34, 35, 40, 41, 45, 46, 47, 52, 54, 58, 60, 4, 11, 12, 18, 19, 24, 25, 29, 30, 33, 34, 35, 40, 41, 45, 46, 47, 53, 54, 58, 59, 65, 66, 4, 11, 12, 18, 19, 23, 24, 28, 29, 32, 33, 34, 39, 40, 44, 45, 46, 51, 53, 59, 61, 4, 11, 12, 18, 19, 24, 25, 29, 30, 34, 35, 36, 41, 42, 46, 47, 48, 54, 55, 59, 60, 64, 65, 4, 11, 12, 18, 19, 23, 24, 28, 29, 33, 34, 35, 40, 41, 45, 46, 47, 52, 54, 58, 60, 4, 7, 12, 13, 23, 26, 31, 32, 8, 13, 14, 19, 21, 26, 27, 32, 4, 11, 12, 18, 19, 24, 25, 29, 30, 33, 34, 35, 40, 41, 46, 47, 48, 54, 55, 59, 60, 65, 66, 4, 11, 12, 18, 19, 23, 24, 28, 29, 32, 33, 34, 39, 40, 45, 46, 47, 52, 54, 59, 61, 1, 1, 4, 15, 20, 27, 28, 33, 34, 39, 41, 4, 6, 11, 14, 22, 25, 35, 4, 10, 14, 15, 20, 21, 26, 27, 4, 7, 12, 13, 17, 18, 20, 25, 26, 27, 30, 36, 37, 38, 41, 46, 47, 51, 52, 54, 59, 60, 61, 62, 8, 11, 16, 17, 21, 22, 24, 25, 26, 28, 33, 34, 35, 38, 44, 45, 46, 49, 54, 55, 59, 60, 62, 63, 64, 66, 71, 72, 73, 74, 12, 17, 18, 28, 30, 35, 36, 39, 40, 12, 17, 18, 22, 24, 29, 30, 35, 12, 17, 18, 24, 25, 30, 31, 35, 37, 42, 43, 46, 51, 52, 57, 58, 61, 66, 8, 11, 16, 17, 20, 21, 23, 24, 25, 27, 32, 33, 34, 37, 43, 44, 45, 48, 53, 54, 57, 58, 60, 61, 62, 64, 69, 70, 71, 72, 12, 17, 18, 28, 30, 35, 36, 39, 40, 12, 17, 18, 24, 26, 31, 32, 37, 12, 17, 18, 22, 23, 28, 29, 33, 35, 40, 41, 44, 49, 50, 55, 56, 59, 64, 8, 11, 16, 17, 21, 22, 24, 25, 26, 28, 33, 34, 35, 38, 44, 45, 46, 49, 54, 55, 59, 60, 62, 63, 64, 66, 71, 72, 73, 74, 12, 17, 18, 28, 30, 35, 36, 39, 40, 12, 17, 18, 22, 24, 29, 30, 35, 12, 17, 18, 22, 23, 28, 29, 35, 37, 42, 43, 46, 51, 52, 57, 58, 61, 66, 4, 7, 12, 13, 18, 21, 26, 27, 32, 33, 8, 11, 16, 17, 22, 23, 25, 30, 31, 32, 35, 41, 42, 43, 46, 51, 52, 57, 58, 60, 65, 66, 67, 68, 12, 15, 20, 21, 24, 25, 27, 28, 29, 31, 36, 37, 38, 41, 47, 48, 49, 52, 57, 58, 61, 62, 64, 65, 66, 68, 73, 74, 75, 76, 16, 21, 22, 26, 28, 30, 32, 33, 1, 1, 4, 15, 20, 21, 25, 26, 30, 32, 4, 6, 12, 19, 30, 35, 4, 9, 10, 16, 20, 23, 24, 25, 4, 7, 12, 13, 19, 23, 25, 26, 27, 30, 31, 32, 33, 8, 13, 17, 18, 22, 23, 4, 8, 13, 16, 21, 22, 28, 29, 33, 34, 8, 13, 14, 16, 21, 22, 26, 27, 31, 32, 1, 1, 4, 9, 13, 14, 18, 20, 4, 6, 14, 16, 23, 24, 31, 32, 33, 34, 39, 40, 45, 46, 4, 9, 10, 16, 17, 21, 22, 28, 29, 31, 34, 37, 38, 39, 47, 48, 49, 50, 52, 1, 1, 4, 15, 18, 21, 24, 25, 31, 32, 37, 39, 4, 11, 12, 18, 19, 24, 25, 29, 30, 35, 37, 38, 39, 40, 45, 46, 52, 54, 55, 56, 57, 63, 64, 68, 69, 79, 80, 4, 11, 12, 18, 19, 24, 25, 29, 30, 35, 37, 38, 39, 40, 45, 46, 52, 54, 55, 56, 57, 63, 64, 68, 69, 70, 72, 73, 4, 8, 13, 16, 21, 22, 28, 29, 33, 34, 8, 13, 14, 18, 19, 25, 26, 4, 9, 13, 18, 21, 22, 28, 29, 34, 35, 4, 9, 13, 14, 20, 21, 26, 27, 1, 1, 33, 37, 1, 2, 5, 10, 1, 33, 37, 1, 4, 8, 10, 11, 12, 16, 17, 26, 28, 4, 8, 11, 14, 16, 19, 24, 25, 27, 30, 33, 35, 36, 37, 8, 10, 13, 16, 25, 28, 35, 8, 11, 13, 17, 18, 24, 25, 26, 28, 33, 34, 35, 37, 40, 43, 45, 46, 47, 50, 59, 60, 64, 69, 70, 76, 78, 86, 89, 95, 96, 12, 15, 17, 16, 19, 22, 24, 25, 26, 29, 34, 35, 41, 42, 43, 45, 50, 51, 52, 16, 20, 23, 26, 28, 29, 30, 33, 38, 39, 45, 46, 47, 49, 54, 55, 56, 16, 19, 21, 23, 28, 31, 32, 36, 37, 46, 47, 50, 55, 12, 15, 16, 21, 24, 26, 33, 34, 41, 42, 43, 44, 45, 46, 47, 16, 18, 21, 26, 36, 43, 46, 57, 16, 19, 24, 27, 30, 35, 36, 46, 47, 20, 25, 26, 32, 34, 42, 44, 49, 20, 23, 28, 29, 35, 36, 37, 40, 41, 42, 43, 44, 45, 24, 29, 30, 36, 37, 38, 40, 41, 42, 43, 44, 20, 25, 26, 24, 29, 30, 36, 37, 38, 40, 41, 42, 43, 44, 20, 25, 26, 32, 34, 42, 44, 50, 8, 11, 14, 17, 19, 20, 21, 24, 29, 30, 36, 37, 38, 40, 45, 46, 47, 51, 54, 57, 59, 60, 61, 64, 69, 70, 76, 77, 78, 80, 85, 86, 87, 88, 12, 15, 18, 21, 23, 24, 25, 28, 33, 34, 40, 41, 42, 44, 49, 50, 51, 55, 58, 61, 63, 64, 65, 68, 73, 74, 80, 81, 82, 84, 89, 90, 91, 92, 16, 21, 22, 28, 29, 30, 33, 34, 35, 36, 16, 21, 22, 24, 27, 30, 32, 33, 34, 40, 41, 43, 46, 48, 49, 1, 1, 4, 6, 8, 13, 16, 17, 21, 22, 31, 33, 4, 6, 9, 12, 17, 21, 24, 28, 4, 8, 11, 14, 17, 20, 25, 26, 28, 31, 34, 35, 8, 11, 13, 17, 18, 24, 25, 26, 28, 33, 34, 35, 37, 40, 43, 46, 47, 48, 51, 60, 61, 65, 70, 71, 77, 79, 87, 90, 96, 97, 12, 15, 18, 21, 24, 25, 26, 29, 34, 35, 41, 42, 43, 45, 50, 51, 52, 56, 59, 62, 65, 66, 67, 70, 75, 76, 82, 83, 84, 86, 91, 92, 93, 94, 16, 23, 28, 1, 1, 4, 8, 10, 11, 12, 16, 17, 26, 28, 4, 6, 12, 15, 21, 32, 39, 44, 50, 4, 8, 11, 14, 16, 19, 24, 25, 27, 30, 33, 35, 36, 37, 8, 11, 14, 17, 19, 20, 21, 24, 29, 30, 36, 37, 38, 40, 45, 46, 47, 51, 54, 57, 59, 60, 61, 64, 69, 70, 76, 77, 78, 80, 85, 86, 87, 88, 12, 15, 18, 21, 23, 24, 25, 28, 33, 34, 40, 41, 42, 44, 49, 50, 51, 55, 58, 61, 63, 64, 65, 68, 73, 74, 80, 81, 82, 84, 89, 90, 91, 92, 16, 21, 22, 28, 29, 30, 33, 34, 35, 36, 16, 21, 22, 24, 27, 30, 32, 33, 34, 40, 41, 43, 46, 48, 49, 1, 1, 4, 7, 10, 12, 16, 18, 19, 23, 25, 4, 7, 12, 13, 19, 22, 27, 28, 8, 10, 20, 29, 32, 38, 42, 45, 50, 8, 11, 16, 17, 21, 23, 24, 25, 26, 29, 30, 31, 32, 12, 14, 22, 23, 25, 32, 33, 40, 41, 42, 43, 44, 45, 46, 47, 48, 12, 15, 19, 20, 21, 29, 30, 32, 33, 34, 35, 36, 37, 39, 40, 41, 42, 46, 50, 51, 52, 60, 61, 63, 64, 65, 66, 67, 68, 70, 71, 72, 73, 74, 16, 19, 24, 25, 30, 31, 35, 38, 43, 44, 20, 25, 26, 28, 31, 34, 36, 37, 38, 44, 45, 47, 50, 53, 54, 55, 63, 64, 65, 66, 67, 69, 16, 19, 24, 25, 30, 31, 35, 38, 43, 44, 20, 25, 26, 28, 31, 34, 36, 37, 38, 44, 45, 47, 50, 53, 54, 55, 63, 64, 66, 67, 68, 69, 70, 71, 72, 73, 75, 8, 11, 16, 17, 21, 23, 24, 25, 28, 29, 30, 31, 12, 14, 22, 23, 25, 32, 33, 40, 41, 42, 43, 44, 45, 46, 47, 12, 14, 22, 23, 25, 32, 33, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 24, 27, 30, 32, 33, 34, 40, 41, 43, 46, 49, 50, 51, 59, 60, 61, 62, 63, 65, 16, 21, 22, 24, 27, 30, 32, 33, 34, 40, 41, 43, 46, 49, 50, 51, 59, 60, 61, 62, 63, 65, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 24, 27, 30, 32, 33, 34, 40, 41, 43, 46, 49, 50, 51, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 71, 16, 21, 22, 24, 27, 30, 32, 33, 34, 40, 41, 43, 46, 49, 50, 51, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 71, 8, 12, 17, 19, 22, 24, 25, 29, 30, 8, 12, 17, 18, 20, 22, 23, 27, 28, 1, 1, 4, 8, 13, 15, 18, 20, 21, 25, 27, 4, 6, 11, 17, 20, 26, 29, 35, 4, 7, 12, 13, 17, 19, 21, 22, 23, 24, 27, 28, 29, 30, 8, 13, 15, 22, 23, 29, 30, 34, 35, 40, 41, 8, 11, 16, 19, 21, 22, 24, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 24, 27, 30, 32, 33, 34, 40, 41, 43, 46, 49, 50, 51, 52, 53, 54, 55, 56, 58, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 24, 27, 30, 32, 33, 34, 40, 41, 43, 46, 49, 50, 51, 52, 53, 54, 55, 56, 58, 8, 13, 18, 21, 23, 24, 26, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 24, 27, 30, 32, 33, 34, 40, 41, 43, 46, 49, 50, 51, 52, 53, 54, 55, 56, 58, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 24, 27, 30, 32, 33, 34, 40, 41, 43, 46, 49, 50, 51, 52, 53, 54, 55, 56, 58, 4, 7, 12, 13, 17, 19, 20, 21, 22, 25, 26, 27, 28, 8, 13, 15, 22, 23, 29, 30, 34, 35, 40, 41, 8, 11, 16, 19, 21, 22, 24, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 27, 28, 30, 31, 37, 38, 43, 44, 46, 47, 48, 49, 50, 51, 52, 53, 55, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 27, 28, 30, 31, 37, 38, 43, 44, 46, 47, 48, 49, 50, 51, 52, 53, 55, 8, 13, 18, 21, 23, 24, 26, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 27, 28, 30, 31, 37, 38, 43, 44, 46, 47, 48, 49, 50, 51, 52, 53, 55, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 27, 28, 30, 31, 37, 38, 43, 44, 46, 47, 48, 49, 50, 51, 52, 53, 55, 1, 1, 4, 8, 13, 14, 16, 18, 19, 23, 25, 4, 6, 15, 19, 25, 28, 31, 36, 4, 7, 12, 13, 17, 19, 20, 21, 22, 25, 26, 27, 28, 8, 13, 15, 22, 23, 29, 30, 34, 35, 40, 41, 8, 11, 16, 19, 21, 22, 24, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 25, 28, 32, 33, 39, 40, 43, 46, 50, 51, 52, 53, 54, 55, 56, 57, 59, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 25, 28, 32, 33, 39, 40, 43, 46, 50, 51, 52, 53, 54, 55, 56, 57, 59, 8, 13, 18, 21, 23, 24, 26, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 25, 28, 32, 33, 39, 40, 43, 46, 50, 51, 52, 53, 54, 55, 56, 57, 59, 12, 15, 20, 21, 26, 27, 31, 34, 39, 40, 16, 21, 22, 25, 28, 32, 33, 39, 40, 43, 46, 50, 51, 52, 53, 54, 55, 56, 57, 59, 4, 7, 12, 13, 17, 19, 20, 21, 22, 25, 26, 27, 28, 8, 13, 15, 22, 23, 29, 30, 34, 35, 40, 41, 8, 11, 16, 19, 21, 22, 24, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 53, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 53, 8, 13, 18, 21, 23, 24, 26, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 53, 12, 17, 18, 20, 23, 26, 27, 33, 34, 36, 39, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 53, 1, 1, 4, 7, 10, 17, 18, 23, 24, 29, 31, 4, 7, 13, 14, 18, 20, 23, 25, 26, 28, 8, 13, 14, 18, 19, 4, 7, 12, 13, 19, 22, 27, 28, 8, 11, 13, 18, 19, 23, 25, 28, 30, 34, 36, 40, 45, 46, 48, 52, 53, 56, 62, 63, 12, 17, 18, 20, 24, 25, 27, 32, 12, 17, 18, 24, 25, 26, 28, 29, 30, 31, 32, 8, 13, 15, 20, 21, 25, 27, 30, 32, 37, 39, 43, 48, 49, 51, 55, 56, 59, 64, 65, 12, 17, 18, 20, 24, 25, 27, 33, 12, 17, 18, 24, 25, 26, 28, 29, 30, 31, 32, 1, 1, 4, 6, 8, 12, 19, 20, 25, 26, 31, 33, 4, 10, 14, 15, 20, 21, 26, 27, 1, 1, 4, 6, 8, 12, 13, 17, 18, 22, 24, 4, 7, 12, 13, 19, 22, 27, 28, 8, 10, 15, 18, 24, 28, 34, 36, 42, 44, 50, 59, 64, 65, 8, 11, 16, 17, 20, 23, 27, 28, 31, 37, 38, 12, 16, 18, 19, 20, 24, 25, 26, 27, 28, 29, 8, 11, 16, 17, 20, 23, 27, 28, 31, 36, 37, 12, 17, 8, 13, 18, 19, 22, 25, 29, 30, 33, 39, 40, 12, 16, 18, 19, 20, 24, 25, 26, 27, 28, 29, 8, 12, 15, 18, 20, 23, 28, 29, 31, 34, 37, 39, 40, 41, 12, 15, 20, 21, 26, 27, 31, 34, 40, 41, 16, 19, 22, 24, 25, 27, 32, 33, 37, 38, 42, 43, 8, 12, 15, 18, 20, 23, 28, 29, 31, 34, 37, 39, 40, 41, 12, 15, 20, 21, 26, 27, 31, 34, 40, 41, 16, 19, 22, 24, 25, 27, 32, 33, 37, 38, 42, 43, 8, 10, 17, 23, 8, 11, 16, 17, 20, 23, 27, 28, 31, 37, 38, 12, 16, 18, 19, 20, 24, 25, 26, 27, 28, 29, 8, 11, 16, 17, 20, 23, 27, 28, 31, 36, 37, 12, 17, 8, 13, 18, 19, 22, 25, 29, 30, 33, 39, 40, 12, 16, 18, 19, 20, 24, 25, 26, 27, 28, 29, 8, 13, 14, 20, 21, 22, 25, 30, 31, 36, 38, 8, 10, 20, 23, 27, 29, 8, 11, 16, 17, 23, 24, 25, 27, 28, 29, 30, 34, 39, 40, 46, 47, 48, 50, 51, 52, 53, 54, 12, 17, 18, 24, 26, 28, 34, 35, 36, 8, 11, 16, 17, 23, 24, 25, 27, 28, 29, 30, 31, 12, 17, 18, 22, 25, 26, 27, 12, 15, 18, 20, 24, 26, 27, 31, 32, 8, 13, 14, 20, 21, 22, 25, 30, 31, 36, 38, 8, 11, 16, 17, 23, 24, 25, 27, 28, 29, 30, 34, 39, 40, 46, 47, 48, 50, 51, 52, 53, 54, 12, 17, 18, 24, 26, 28, 34, 35, 36, 8, 11, 16, 17, 23, 24, 25, 27, 28, 29, 30, 31, 12, 17, 18, 22, 25, 26, 27, 12, 15, 18, 20, 24, 26, 27, 31, 32, 8, 11, 16, 17, 23, 24, 25, 27, 28, 29, 30, 34, 39, 40, 46, 47, 48, 50, 51, 52, 53, 54, 12, 17, 18, 24, 26, 28, 31, 32, 8, 12, 18, 20, 23, 28, 29, 34, 35, 37, 38, 12, 18, 20, 21, 23, 28, 29, 33, 34, 38, 39, 8, 12, 17, 18, 22, 23, 8, 14, 16, 17, 19, 23, 24, 28, 29, 33, 34, 1, 1, 4, 10, 12, 13, 15, 19, 20, 24, 25, 29, 31, 4, 6, 12, 17, 23, 33, 37, 4, 8, 14, 16, 19, 24, 25, 28, 31, 35, 36, 8, 14, 16, 17, 19, 24, 25, 29, 30, 34, 35, 4, 8, 11, 14, 18, 19, 23, 24, 4, 8, 12, 15, 20, 21, 23, 26, 29, 30, 8, 12, 13, 15, 20, 21, 25, 26, 30, 31, 4, 8, 10, 13, 16, 17, 21, 22, 4, 7, 12, 13, 18, 19, 22, 27, 28, 8, 11, 15, 16, 20, 21, 26, 27, 29, 34, 35, 41, 42, 43, 44, 47, 48, 49, 50, 51, 52, 12, 17, 18, 23, 24, 28, 30, 36, 12, 17, 18, 21, 24, 28, 29, 31, 37, 4, 7, 12, 13, 18, 19, 22, 27, 28, 8, 11, 15, 16, 20, 21, 26, 27, 29, 34, 35, 41, 42, 43, 44, 47, 48, 49, 50, 51, 52, 12, 17, 18, 23, 24, 28, 30, 36, 12, 17, 18, 21, 24, 28, 29, 31, 37, 1, 1, 4, 6, 8, 10, 13, 16, 17, 23, 24, 29, 31, 4, 11, 12, 18, 19, 24, 25, 29, 30, 35, 37, 38, 39, 40, 45, 46, 52, 54, 55, 56, 57, 63, 64, 68, 69, 73, 83, 84, 4, 11, 12, 18, 19, 24, 25, 26, 28, 33, 34, 39, 41, 42, 43, 44, 49, 50, 56, 58, 59, 60, 61, 67, 68, 72, 73, 77, 87, 88, 4, 11, 12, 18, 19, 23, 24, 28, 29, 34, 36, 37, 38, 39, 40, 41, 42, 47, 48, 53, 55, 56, 57, 58, 63, 64, 70, 71, 77, 78, 79, 80, 81, 4, 11, 12, 18, 19, 23, 24, 25, 26, 27, 28, 29, 30, 35, 36, 41, 42, 43, 44, 45, 46, 4, 8, 11, 14, 16, 19, 24, 25, 27, 30, 33, 35, 36, 37, 8, 11, 14, 16, 17, 21, 22, 28, 29, 4, 8, 11, 14, 16, 19, 24, 25, 27, 30, 33, 35, 36, 37, 8, 11, 14, 16, 17, 21, 22, 28, 29, 4, 11, 12, 18, 19, 23, 24, 25, 26, 27, 28, 29, 30, 31, 36, 38, 46, 48, 53, 55, 60, 61, 62, 63, 68, 70, 75, 77, 83, 85, 4, 11, 12, 18, 19, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 37, 39, 45, 46, 47, 49, 54, 56, 61, 62, 63, 64, 69, 71, 76, 78, 84, 86, 4, 9, 14, 17, 18, 24, 25, 30, 31, 4, 11, 12, 18, 19, 24, 25, 29, 30, 36, 37, 38, 39, 44, 45, 51, 52, 53, 54, 60, 61, 65, 66, 69, 70, 73, 74, 4, 11, 12, 18, 19, 24, 25, 29, 30, 36, 37, 38, 39, 44, 45, 51, 52, 53, 54, 60, 61, 65, 66, 69, 70, 73, 74, 4, 7, 13, 14, 20, 21, 26, 27, 4, 9, 13, 14, 20, 21, 26, 27, 1, 1, 4, 7, 13, 14, 20, 21, 26, 28, 4, 7, 12, 13, 19, 22, 24, 30, 31, 33, 8, 15, 16, 22, 23, 32, 33, 34, 35, 36, 37, 38, 43, 44, 49, 50, 55, 56, 62, 63, 68, 70, 75, 77, 8, 15, 16, 22, 23, 28, 29, 33, 34, 39, 41, 42, 43, 44, 49, 50, 56, 58, 59, 60, 61, 67, 68, 72, 73, 76, 82, 83, 8, 15, 16, 22, 23, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 44, 45, 49, 50, 53, 56, 57, 8, 15, 16, 22, 23, 27, 28, 32, 33, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 53, 55, 58, 67, 69, 71, 73, 76, 81, 83, 88, 89, 90, 91, 96, 98, 103, 105, 111, 113, 4, 9, 14, 15, 21, 24, 26, 32, 33, 35, 8, 15, 16, 22, 23, 32, 33, 34, 35, 36, 37, 38, 43, 44, 49, 50, 55, 56, 62, 63, 68, 70, 75, 77, 8, 15, 16, 22, 23, 28, 29, 33, 34, 39, 41, 42, 43, 44, 49, 50, 56, 58, 59, 60, 61, 67, 68, 72, 73, 76, 82, 83, 8, 15, 16, 22, 23, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 44, 45, 49, 50, 53, 56, 57, 8, 15, 16, 22, 23, 27, 28, 32, 33, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 53, 55, 58, 63, 66, 67, 71, 73, 75, 78, 83, 85, 90, 91, 92, 93, 98, 100, 105, 107, 113, 115, 4, 9, 14, 15, 21, 24, 26, 29, 31, 8, 15, 16, 22, 23, 32, 33, 34, 35, 36, 37, 38, 43, 44, 49, 50, 55, 56, 62, 63, 68, 70, 75, 77, 8, 15, 16, 22, 23, 28, 29, 33, 34, 39, 41, 42, 43, 44, 49, 50, 56, 58, 59, 60, 61, 67, 68, 72, 73, 76, 82, 83, 8, 15, 16, 22, 23, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 44, 45, 49, 50, 53, 56, 57, 8, 15, 16, 22, 23, 27, 28, 32, 33, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 53, 55, 56, 58, 59, 63, 68, 73, 76, 79, 84, 86, 91, 92, 93, 94, 99, 101, 106, 108, 114, 116, 1, 1, 33, 37, 1, 2, 8, 13, 18, 1, 33, 37, 1, 1, 4, 10, 15, 18, 25, 26, 31, 32, 37, 39, 4, 7, 13, 14, 18, 20, 23, 25, 26, 28, 8, 13, 14, 18, 19, 1, 1, 4, 10, 15, 20, 27, 28, 33, 34, 39, 41, 4, 10, 14, 15, 20, 21, 26, 27, 1, 1, 4, 10, 15, 20, 21, 25, 26, 30, 32, 4, 15, 20, 21, 25, 26, 30, 31, 1, 1, 4, 10, 15, 18, 21, 24, 25, 31, 32, 37, 39, 4, 11, 12, 18, 19, 24, 25, 29, 30, 35, 37, 38, 39, 40, 45, 46, 52, 54, 55, 56, 57, 63, 64, 68, 69, 79, 80, 4, 11, 12, 18, 19, 24, 25, 29, 30, 35, 37, 38, 39, 40, 45, 46, 47, 49, 50, 51, 57, 58, 62, 63, 64, 66, 67, 4, 8, 13, 16, 21, 22, 28, 29, 33, 34, 8, 13, 14, 18, 19, 25, 26, 4, 11, 12, 18, 19, 23, 24, 28, 29, 34, 36, 37, 38, 39, 44, 45, 48, 49, 54, 55, 60, 62, 65, 67, 72, 75, 80, 82, 87, 88, 89, 90, 95, 97, 102, 104, 110, 112, 4, 11, 12, 18, 19, 23, 24, 28, 29, 34, 36, 37, 38, 39, 44, 45, 46, 47, 48, 49, 54, 56, 61, 62, 68, 70, 75, 77, 82, 83, 84, 85, 90, 92, 97, 99, 105, 107, 4, 9, 13, 14, 20, 21, 26, 27, 4, 6, 12, 17, 4, 9, 10, 15, 21, 4, 9, 10, 15, 21, 23, 32, 34, 39, 40, 43, 45, 4, 10, 12, 17, 18, 23, 29, 30, 35, 40, 42, 4, 11, 13, 16, 4, 8, 13, 16, 22, 23, 8, 15, 16, 22, 23, 27, 28, 33, 37, 39, 4, 6, 12, 19, 22, 27, 31, 32, 33, 4, 11, 13, 20, 21, 27, 28, 32, 33, 39, 41, 42, 46, 47, 48, 49, 50, 53, 4, 8, 9, 11, 18, 20, 24, 25, 28, 34, 37, 4, 8, 9, 10, 17, 19, 4, 8, 10, 13, 19, 20, 23, 24, 27, 28, 31, 8, 15, 16, 22, 23, 27, 28, 32, 33, 38, 40, 41, 42, 43, 48, 49, 54, 59, 61, 63, 64, 66, 67, 68, 69, 71, 76, 77, 80, 81, 82, 83, 85, 90, 92, 97, 98, 99, 100, 105, 107, 112, 114, 120, 122, 1, 1, 33, 37, 1, 2, 7, 12, 1, 33, 37, 1, 1, 4, 9, 12, 19, 20, 25, 26, 31, 33, 4, 7, 13, 14, 18, 20, 23, 25, 26, 28, 8, 13, 14, 18, 19, 1, 1, 4, 9, 14, 21, 22, 27, 28, 33, 35, 4, 10, 14, 15, 20, 21, 26, 27, 1, 1, 4, 9, 14, 15, 19, 20, 24, 26, 4, 15, 20, 21, 25, 26, 30, 31, 1, 1, 4, 9, 12, 15, 18, 19, 25, 26, 31, 33, 4, 11, 12, 18, 19, 24, 25, 29, 30, 35, 37, 38, 39, 40, 45, 46, 50, 51, 52, 58, 59, 63, 64, 68, 74, 75, 4, 8, 13, 16, 21, 22, 28, 29, 33, 34, 8, 13, 14, 18, 19, 25, 26, 4, 9, 13, 14, 20, 21, 26, 27, 1, 1, 33, 40, 1, 2, 6, 10, 14, 23, 26, 27, 29, 34, 40, 1, 33, 40, 1, 1, 4, 8, 9, 14, 15, 16, 17, 18, 19, 20, 21, 28, 29, 30, 31, 32, 33, 34, 36, 4, 8, 15, 18, 25, 26, 32, 33, 38, 40, 8, 15, 16, 22, 23, 26, 27, 8, 15, 18, 19, 25, 26, 31, 32, 8, 15, 16, 22, 24, 4, 8, 14, 21, 28, 29, 34, 35, 42, 43, 48, 50, 8, 14, 21, 22, 27, 28, 33, 34, 8, 15, 18, 25, 26, 32, 33, 38, 39, 4, 8, 12, 19, 26, 27, 32, 33, 40, 41, 46, 48, 8, 12, 19, 20, 25, 26, 31, 32, 8, 15, 18, 25, 26, 32, 33, 38, 39, 4, 8, 14, 15, 19, 26, 27, 33, 34, 39, 41, 8, 14, 15, 19, 20, 24, 25, 8, 15, 18, 25, 26, 32, 33, 38, 39, 8, 10, 16, 17, 22, 27, 33, 34, 38, 44, 8, 15, 16, 21, 22, 26, 27, 32, 37, 38, 44, 45, 49, 56, 57, 64, 65, 70, 71, 4, 6, 10, 13, 18, 22, 27, 32, 4, 10, 17, 18, 24, 26, 8, 13, 4, 9, 11, 18, 20, 4, 9, 10, 15, 17, 23, 4, 9, 10, 16, 18, 25, 4, 9, 10, 15, 20, 22, 23, 24, 25, 26, 27, 29, 42, 4, 6, 13, 17, 22, 26, 30, 37, 4, 9, 11, 14, 16, 4, 9, 10, 14, 15, 4, 11, 13, 20, 21, 25, 26, 32, 33, 37, 38, 43, 44, 51, 52, 56, 57, 63, 64, 4, 11, 12, 16, 18, 4, 6, 10, 13, 20, 4, 9, 10, 14, 17, 23, 24, 25, 28, 35, 41, 42, 48, 55, 62, 63, 68, 69, 76, 77, 82, 84, 4, 9, 10, 14, 17, 20, 23, 30, 36, 37, 41, 48, 55, 56, 61, 62, 69, 70, 75, 77, 4, 10, 11, 15, 22, 23, 29, 30, 35, 36, 4, 6, 10, 17, 21, 25, 4, 9, 10, 14, 18, 20, 21, 23, 30, 36, 43, 46, 53, 4, 10, 12, 15, 18, 1, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 ]
d0448ca8e3fd2f3bb8a3a7ec052e29ab0be6351a
import matplotlib.pyplot as plt from sklearn.decomposition import PCA from sklearn.discriminant_analysis import LinearDiscriminantAnalysis import pandas as pd import numpy as np from sklearn import datasets from sklearn.datasets import make_classification from sklearn.model_selection import train_test_split # a = pd.read_csv('sample20170117_labeled_0207.csv') # X = a.values[0: 100, 0: 110] # y = a.values[0: 100, 110] # y = np.array([1 if i == 1. else -1 for i in y]) iris = datasets.load_iris() X = iris.data y = iris.target target_names = iris.target_names # X, y = make_classification(n_samples=1000, n_features=100, n_classes=2) X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2) pca = PCA(n_components=2) X_r = pca.fit(X).transform(X) lda = LinearDiscriminantAnalysis(n_components=2) X_r2 = lda.fit(X, y).transform(X) plt.figure() colors = ["navy", "turquoise", "darkorange"] lw = 2 for color, i, target_name in zip(colors, [0, 1, 2], target_names): plt.scatter(X_r[y == i, 0], X_r[y == i, 1], color=color, alpha=0.8, lw=lw, label=target_name) plt.legend(loc="best", shadow=False, scatterpoints=1) plt.title("pca") plt.figure() for color, i, target_name in zip(colors, [0, 1, 2], target_names): plt.scatter(X_r2[y == i, 0], X_r2[y == i, 1], alpha=0.8, color=color, label=target_name) plt.legend(loc="best", shadow=False, scatterpoints=1) plt.title("lda") plt.show()
[ 485, 13168, 51, 18553, 641, 6020, 222, 1097, 14415, 51, 305, 20263, 1220, 42079, 222, 1097, 14415, 51, 1303, 17664, 710, 100, 11513, 1220, 14138, 1744, 17664, 710, 9759, 222, 222, 485, 13247, 641, 6451, 222, 485, 6610, 641, 2115, 222, 1097, 14415, 1220, 15695, 222, 1097, 14415, 51, 15461, 1220, 1949, 100, 15358, 222, 1097, 14415, 51, 1184, 100, 8402, 1220, 5877, 100, 881, 100, 3045, 222, 222, 40, 331, 299, 6451, 51, 870, 100, 4849, 482, 3324, 55, 53, 54, 60, 53, 54, 54, 60, 100, 37992, 100, 53, 55, 53, 60, 51, 4849, 704, 222, 40, 1618, 299, 331, 51, 2857, 96, 53, 63, 244, 54, 53, 53, 49, 244, 53, 63, 244, 54, 54, 53, 98, 222, 40, 553, 299, 331, 51, 2857, 96, 53, 63, 244, 54, 53, 53, 49, 244, 54, 54, 53, 98, 222, 40, 553, 299, 2115, 51, 977, 2034, 54, 434, 613, 630, 244, 54, 51, 832, 449, 54, 456, 613, 347, 553, 1156, 222, 222, 29573, 299, 15695, 51, 963, 100, 29573, 365, 222, 93, 299, 7710, 316, 51, 624, 222, 126, 299, 7710, 316, 51, 2000, 222, 2000, 100, 4288, 299, 7710, 316, 51, 2000, 100, 4288, 222, 222, 40, 1618, 49, 553, 299, 1949, 100, 15358, 45, 115, 100, 7170, 66, 54, 53, 53, 53, 49, 329, 100, 5977, 66, 54, 53, 53, 49, 329, 100, 4844, 66, 55, 46, 222, 222, 93, 100, 3441, 49, 1618, 100, 881, 49, 553, 100, 3441, 49, 553, 100, 881, 299, 5877, 100, 881, 100, 3045, 45, 93, 49, 553, 49, 913, 100, 911, 66, 53, 51, 55, 46, 222, 222, 36672, 299, 42079, 45, 115, 100, 3545, 66, 55, 46, 222, 93, 100, 119, 299, 317, 1192, 51, 4803, 45, 93, 566, 3824, 45, 93, 46, 222, 222, 38727, 299, 14138, 1744, 17664, 710, 9759, 45, 115, 100, 3545, 66, 55, 46, 222, 93, 100, 119, 55, 299, 22914, 51, 4803, 45, 93, 49, 553, 566, 3824, 45, 93, 46, 222, 222, 6670, 51, 7770, 365, 222, 8803, 299, 3059, 2187, 126, 411, 332, 10112, 10529, 1145, 411, 332, 7548, 18644, 1465, 222, 15108, 299, 244, 55, 222, 222, 999, 1989, 49, 613, 49, 1780, 100, 444, 347, 8617, 45, 8803, 49, 447, 53, 49, 244, 54, 49, 244, 55, 636, 1780, 100, 4288, 731, 303, 6020, 51, 18735, 45, 93, 100, 119, 96, 126, 630, 613, 49, 244, 53, 636, 1618, 100, 119, 96, 126, 630, 613, 49, 244, 54, 636, 1989, 66, 1507, 49, 7461, 66, 53, 51, 61, 49, 29146, 66, 15108, 49, 2300, 66, 2000, 100, 444, 46, 222, 6670, 51, 11614, 45, 901, 366, 8888, 411, 11092, 66, 2737, 49, 27022, 3983, 66, 54, 46, 222, 6670, 51, 1333, 459, 36672, 678, 222, 222, 6670, 51, 7770, 365, 222, 999, 1989, 49, 613, 49, 1780, 100, 444, 347, 8617, 45, 8803, 49, 447, 53, 49, 244, 54, 49, 244, 55, 636, 1780, 100, 4288, 731, 303, 6020, 51, 18735, 45, 93, 100, 119, 55, 96, 126, 630, 613, 49, 244, 53, 636, 1618, 100, 119, 55, 96, 126, 630, 613, 49, 244, 54, 636, 7461, 66, 53, 51, 61, 49, 1989, 66, 1507, 49, 2300, 66, 2000, 100, 444, 46, 222, 6670, 51, 11614, 45, 901, 366, 8888, 411, 11092, 66, 2737, 49, 27022, 3983, 66, 54, 46, 222, 6670, 51, 1333, 459, 38727, 678, 222, 222, 6670, 51, 2276, 365, 222 ]
[ "import", "Ġmatplotlib", ".", "pyplot", "Ġas", "Ġplt", "Ċ", "from", "Ġsklearn", ".", "de", "composition", "Ġimport", "ĠPCA", "Ċ", "from", "Ġsklearn", ".", "dis", "crimin", "ant", "_", "analysis", "Ġimport", "ĠLinear", "Dis", "crimin", "ant", "Analysis", "Ċ", "Ċ", "import", "Ġpandas", "Ġas", "Ġpd", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "from", "Ġsklearn", "Ġimport", "Ġdatasets", "Ċ", "from", "Ġsklearn", ".", "datasets", "Ġimport", "Ġmake", "_", "classification", "Ċ", "from", "Ġsklearn", ".", "model", "_", "selection", "Ġimport", "Ġtrain", "_", "test", "_", "split", "Ċ", "Ċ", "#", "Ġa", "Ġ=", "Ġpd", ".", "read", "_", "csv", "('", "sample", "2", "0", "1", "7", "0", "1", "1", "7", "_", "labeled", "_", "0", "2", "0", "7", ".", "csv", "')", "Ċ", "#", "ĠX", "Ġ=", "Ġa", ".", "values", "[", "0", ":", "Ġ", "1", "0", "0", ",", "Ġ", "0", ":", "Ġ", "1", "1", "0", "]", "Ċ", "#", "Ġy", "Ġ=", "Ġa", ".", "values", "[", "0", ":", "Ġ", "1", "0", "0", ",", "Ġ", "1", "1", "0", "]", "Ċ", "#", "Ġy", "Ġ=", "Ġnp", ".", "array", "([", "1", "Ġif", "Ġi", "Ġ==", "Ġ", "1", ".", "Ġelse", "Ġ-", "1", "Ġfor", "Ġi", "Ġin", "Ġy", "])", "Ċ", "Ċ", "iris", "Ġ=", "Ġdatasets", ".", "load", "_", "iris", "()", "Ċ", "X", "Ġ=", "Ġir", "is", ".", "data", "Ċ", "y", "Ġ=", "Ġir", "is", ".", "target", "Ċ", "target", "_", "names", "Ġ=", "Ġir", "is", ".", "target", "_", "names", "Ċ", "Ċ", "#", "ĠX", ",", "Ġy", "Ġ=", "Ġmake", "_", "classification", "(", "n", "_", "samples", "=", "1", "0", "0", "0", ",", "Ġn", "_", "features", "=", "1", "0", "0", ",", "Ġn", "_", "classes", "=", "2", ")", "Ċ", "Ċ", "X", "_", "train", ",", "ĠX", "_", "test", ",", "Ġy", "_", "train", ",", "Ġy", "_", "test", "Ġ=", "Ġtrain", "_", "test", "_", "split", "(", "X", ",", "Ġy", ",", "Ġtest", "_", "size", "=", "0", ".", "2", ")", "Ċ", "Ċ", "pca", "Ġ=", "ĠPCA", "(", "n", "_", "components", "=", "2", ")", "Ċ", "X", "_", "r", "Ġ=", "Ġp", "ca", ".", "fit", "(", "X", ").", "transform", "(", "X", ")", "Ċ", "Ċ", "lda", "Ġ=", "ĠLinear", "Dis", "crimin", "ant", "Analysis", "(", "n", "_", "components", "=", "2", ")", "Ċ", "X", "_", "r", "2", "Ġ=", "Ġlda", ".", "fit", "(", "X", ",", "Ġy", ").", "transform", "(", "X", ")", "Ċ", "Ċ", "plt", ".", "figure", "()", "Ċ", "colors", "Ġ=", "Ġ[\"", "nav", "y", "\",", "Ġ\"", "tur", "quo", "ise", "\",", "Ġ\"", "dark", "orange", "\"]", "Ċ", "lw", "Ġ=", "Ġ", "2", "Ċ", "Ċ", "for", "Ġcolor", ",", "Ġi", ",", "Ġtarget", "_", "name", "Ġin", "Ġzip", "(", "colors", ",", "Ġ[", "0", ",", "Ġ", "1", ",", "Ġ", "2", "],", "Ġtarget", "_", "names", "):", "ĊĠĠĠ", "Ġplt", ".", "scatter", "(", "X", "_", "r", "[", "y", "Ġ==", "Ġi", ",", "Ġ", "0", "],", "ĠX", "_", "r", "[", "y", "Ġ==", "Ġi", ",", "Ġ", "1", "],", "Ġcolor", "=", "color", ",", "Ġalpha", "=", "0", ".", "8", ",", "Ġlw", "=", "lw", ",", "Ġlabel", "=", "target", "_", "name", ")", "Ċ", "plt", ".", "legend", "(", "loc", "=\"", "best", "\",", "Ġshadow", "=", "False", ",", "Ġscatter", "points", "=", "1", ")", "Ċ", "plt", ".", "title", "(\"", "pca", "\")", "Ċ", "Ċ", "plt", ".", "figure", "()", "Ċ", "for", "Ġcolor", ",", "Ġi", ",", "Ġtarget", "_", "name", "Ġin", "Ġzip", "(", "colors", ",", "Ġ[", "0", ",", "Ġ", "1", ",", "Ġ", "2", "],", "Ġtarget", "_", "names", "):", "ĊĠĠĠ", "Ġplt", ".", "scatter", "(", "X", "_", "r", "2", "[", "y", "Ġ==", "Ġi", ",", "Ġ", "0", "],", "ĠX", "_", "r", "2", "[", "y", "Ġ==", "Ġi", ",", "Ġ", "1", "],", "Ġalpha", "=", "0", ".", "8", ",", "Ġcolor", "=", "color", ",", "Ġlabel", "=", "target", "_", "name", ")", "Ċ", "plt", ".", "legend", "(", "loc", "=\"", "best", "\",", "Ġshadow", "=", "False", ",", "Ġscatter", "points", "=", "1", ")", "Ċ", "plt", ".", "title", "(\"", "lda", "\")", "Ċ", "Ċ", "plt", ".", "show", "()", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 39, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 45, 46, 46, 46, 46, 46 ]
[ 1, 7, 18, 19, 25, 28, 32, 1, 5, 13, 14, 16, 27, 34, 38, 1, 5, 13, 14, 17, 23, 26, 27, 35, 42, 49, 52, 58, 61, 69, 1, 1, 7, 14, 17, 20, 1, 7, 13, 16, 19, 1, 5, 13, 20, 29, 1, 5, 13, 14, 22, 29, 34, 35, 49, 1, 5, 13, 14, 19, 20, 29, 36, 42, 43, 47, 48, 53, 1, 1, 2, 4, 6, 9, 10, 14, 15, 18, 20, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 42, 43, 44, 45, 46, 47, 48, 51, 53, 1, 2, 4, 6, 8, 9, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 1, 2, 4, 6, 8, 9, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 1, 2, 4, 6, 9, 10, 15, 17, 18, 21, 23, 26, 27, 28, 29, 34, 36, 37, 41, 43, 46, 48, 50, 1, 1, 5, 7, 16, 17, 21, 22, 26, 28, 1, 2, 4, 7, 9, 10, 14, 1, 2, 4, 7, 9, 10, 16, 1, 7, 8, 13, 15, 18, 20, 21, 27, 28, 33, 1, 1, 2, 4, 5, 7, 9, 14, 15, 29, 30, 31, 32, 39, 40, 41, 42, 43, 44, 45, 47, 48, 56, 57, 58, 59, 60, 61, 63, 64, 71, 72, 73, 74, 1, 1, 2, 3, 8, 9, 11, 12, 16, 17, 19, 20, 25, 26, 28, 29, 33, 35, 41, 42, 46, 47, 52, 53, 54, 55, 57, 58, 63, 64, 68, 69, 70, 71, 72, 73, 1, 1, 4, 6, 10, 11, 12, 13, 23, 24, 25, 26, 1, 2, 3, 4, 6, 8, 10, 11, 14, 15, 16, 18, 27, 28, 29, 30, 1, 1, 4, 6, 13, 16, 22, 25, 33, 34, 35, 36, 46, 47, 48, 49, 1, 2, 3, 4, 5, 7, 11, 12, 15, 16, 17, 18, 20, 22, 31, 32, 33, 34, 1, 1, 4, 5, 11, 13, 1, 7, 9, 12, 15, 16, 18, 20, 23, 26, 29, 31, 33, 37, 43, 45, 1, 3, 5, 6, 7, 1, 1, 4, 10, 11, 13, 14, 21, 22, 26, 29, 33, 34, 40, 41, 43, 44, 45, 46, 47, 48, 49, 50, 52, 59, 60, 65, 67, 4, 8, 9, 16, 17, 18, 19, 20, 21, 22, 25, 27, 28, 29, 30, 32, 34, 35, 36, 37, 38, 41, 43, 44, 45, 46, 48, 54, 55, 60, 61, 67, 68, 69, 70, 71, 72, 75, 76, 78, 79, 85, 86, 92, 93, 97, 98, 1, 4, 5, 11, 12, 15, 17, 21, 23, 30, 31, 36, 37, 45, 51, 52, 53, 54, 1, 4, 5, 10, 12, 15, 17, 1, 1, 4, 5, 11, 13, 1, 4, 10, 11, 13, 14, 21, 22, 26, 29, 33, 34, 40, 41, 43, 44, 45, 46, 47, 48, 49, 50, 52, 59, 60, 65, 67, 4, 8, 9, 16, 17, 18, 19, 20, 21, 22, 23, 26, 28, 29, 30, 31, 33, 35, 36, 37, 38, 39, 40, 43, 45, 46, 47, 48, 50, 56, 57, 58, 59, 60, 61, 67, 68, 73, 74, 80, 81, 87, 88, 92, 93, 1, 4, 5, 11, 12, 15, 17, 21, 23, 30, 31, 36, 37, 45, 51, 52, 53, 54, 1, 4, 5, 10, 12, 15, 17, 1, 1, 4, 5, 9, 11 ]
6d7db5b9a64ec25763f5af6ceec1a46d629d549c
import re import ngram import smoothedNgram def split_into_sentences(text): text = text.lower() sentences = re.split(r"(?<!\w\.\w.)(?<![A-Z][a-z]\.)(?<=\.|\?)\s", text) getSentences(sentences, text) return sentences def getTextWithoutSpaces(text): withoutLineBreaks = text.replace("\n", "") withoutSpaces = re.sub(" +", " ", withoutLineBreaks) return withoutSpaces def getSentences(sentences, text): data = re.findall(r"\b[a-zA-Z]+|[.!?]", text) unique_words = set(data) sentenceCounter = 0 wordCounter = 0 for i in sentences: sentenceCounter += 1 i = i.lower() words = i.split() wordCounter += len(words) print("Total sentence in the text : " + str(sentenceCounter - 1)) print("Total word in the text : " + str(wordCounter)) print("Unique word number : " + str(len(unique_words) - 1)) def getText(): file = open("hw01_FireFairies.txt") data = file.read() return data def listResults(): print("") split_into_sentences(getText()) print("") words, listOfBigrams, unigramCounts, bigramCounts = ngram.createBigram(getTextWithoutSpaces(getText())) listOfProbBigram, listOfBigrams, listOfProbUnigram, words = ngram.calcBigramProb( words, listOfBigrams, unigramCounts, bigramCounts ) words, flipped = ngram.maxUnigram(listOfProbBigram, listOfBigrams, listOfProbUnigram, words) ngram.findLeastValues(words, flipped) if __name__ == "__main__": listResults()
[ 485, 334, 222, 485, 329, 1786, 222, 485, 328, 794, 385, 2054, 83, 1786, 499, 222, 610, 6168, 100, 8017, 100, 32923, 45, 897, 731, 303, 1367, 299, 1367, 51, 5773, 365, 303, 29031, 299, 334, 51, 3045, 45, 119, 39, 12421, 7842, 97, 124, 97, 5339, 124, 51, 2516, 44815, 2523, 70, 50, 95, 1697, 102, 50, 127, 98, 8178, 2516, 68, 10060, 8178, 12331, 68, 5443, 120, 411, 1367, 46, 303, 640, 10486, 3042, 45, 32923, 49, 1367, 46, 303, 461, 29031, 499, 222, 610, 40972, 11449, 26400, 45, 897, 731, 303, 2895, 1829, 10440, 120, 299, 1367, 51, 3249, 5564, 115, 411, 7756, 303, 2895, 26400, 299, 334, 51, 1133, 459, 494, 411, 332, 3021, 2895, 1829, 10440, 120, 46, 303, 461, 2895, 26400, 499, 222, 610, 640, 10486, 3042, 45, 32923, 49, 1367, 731, 303, 727, 299, 334, 51, 32962, 45, 119, 7660, 103, 96, 102, 50, 15169, 50, 95, 6176, 10179, 51, 38, 68, 9177, 1367, 46, 303, 5823, 100, 4094, 299, 758, 45, 624, 46, 303, 15492, 6489, 299, 244, 53, 303, 3619, 6489, 299, 244, 53, 303, 456, 613, 347, 29031, 63, 310, 15492, 6489, 1475, 244, 54, 310, 613, 299, 613, 51, 5773, 365, 310, 8190, 299, 613, 51, 3045, 365, 310, 3619, 6489, 1475, 2095, 45, 4094, 46, 303, 1489, 459, 4767, 15492, 347, 341, 1367, 518, 332, 494, 615, 45, 18318, 6489, 449, 244, 54, 509, 303, 1489, 459, 4767, 3619, 347, 341, 1367, 518, 332, 494, 615, 45, 1131, 6489, 509, 303, 1489, 459, 10186, 3619, 1470, 518, 332, 494, 615, 45, 1688, 45, 5714, 100, 4094, 46, 449, 244, 54, 509, 499, 222, 610, 40972, 2284, 303, 822, 299, 2177, 459, 6777, 53, 54, 100, 9374, 75, 3063, 3089, 51, 2787, 678, 303, 727, 299, 822, 51, 870, 365, 303, 461, 727, 499, 222, 610, 1168, 5483, 2284, 303, 1489, 18001, 303, 6168, 100, 8017, 100, 32923, 45, 10624, 1177, 303, 1489, 18001, 303, 8190, 49, 23052, 71, 6343, 1480, 49, 725, 384, 4344, 18355, 49, 6546, 4344, 18355, 299, 329, 1786, 51, 1315, 7481, 4344, 45, 10624, 11449, 26400, 45, 10624, 5183, 303, 23052, 9977, 7481, 4344, 49, 23052, 71, 6343, 1480, 49, 23052, 9977, 1079, 384, 4344, 49, 8190, 299, 329, 1786, 51, 10289, 7481, 4344, 9977, 45, 310, 8190, 49, 23052, 71, 6343, 1480, 49, 725, 384, 4344, 18355, 49, 6546, 4344, 18355, 303, 848, 303, 8190, 49, 315, 32074, 299, 329, 1786, 51, 1472, 1079, 384, 4344, 45, 34756, 9977, 7481, 4344, 49, 23052, 71, 6343, 1480, 49, 23052, 9977, 1079, 384, 4344, 49, 8190, 46, 303, 329, 1786, 51, 1828, 31431, 3367, 45, 4094, 49, 315, 32074, 46, 499, 222, 344, 1176, 444, 523, 630, 9609, 1850, 18021, 303, 1168, 5483, 365, 222 ]
[ "import", "Ġre", "Ċ", "import", "Ġn", "gram", "Ċ", "import", "Ġs", "mo", "ot", "hed", "N", "gram", "ĊĊ", "Ċ", "def", "Ġsplit", "_", "into", "_", "sentences", "(", "text", "):", "ĊĠĠĠ", "Ġtext", "Ġ=", "Ġtext", ".", "lower", "()", "ĊĠĠĠ", "Ġsentences", "Ġ=", "Ġre", ".", "split", "(", "r", "\"", "(?", "<!", "\\", "w", "\\", ".\\", "w", ".", ")(", "?<", "![", "A", "-", "Z", "][", "a", "-", "z", "]", "\\.", ")(", "?", "<=", "\\.", "|\\", "?", ")\\", "s", "\",", "Ġtext", ")", "ĊĠĠĠ", "Ġget", "Sent", "ences", "(", "sentences", ",", "Ġtext", ")", "ĊĠĠĠ", "Ġreturn", "Ġsentences", "ĊĊ", "Ċ", "def", "ĠgetText", "Without", "Spaces", "(", "text", "):", "ĊĠĠĠ", "Ġwithout", "Line", "Break", "s", "Ġ=", "Ġtext", ".", "replace", "(\"\\", "n", "\",", "Ġ\"\")", "ĊĠĠĠ", "Ġwithout", "Spaces", "Ġ=", "Ġre", ".", "sub", "(\"", "Ġ+", "\",", "Ġ\"", "Ġ\",", "Ġwithout", "Line", "Break", "s", ")", "ĊĠĠĠ", "Ġreturn", "Ġwithout", "Spaces", "ĊĊ", "Ċ", "def", "Ġget", "Sent", "ences", "(", "sentences", ",", "Ġtext", "):", "ĊĠĠĠ", "Ġdata", "Ġ=", "Ġre", ".", "findall", "(", "r", "\"\\", "b", "[", "a", "-", "zA", "-", "Z", "]+", "|[", ".", "!", "?", "]\",", "Ġtext", ")", "ĊĠĠĠ", "Ġunique", "_", "words", "Ġ=", "Ġset", "(", "data", ")", "ĊĠĠĠ", "Ġsentence", "Counter", "Ġ=", "Ġ", "0", "ĊĠĠĠ", "Ġword", "Counter", "Ġ=", "Ġ", "0", "ĊĠĠĠ", "Ġfor", "Ġi", "Ġin", "Ġsentences", ":", "ĊĠĠĠĠĠĠĠ", "Ġsentence", "Counter", "Ġ+=", "Ġ", "1", "ĊĠĠĠĠĠĠĠ", "Ġi", "Ġ=", "Ġi", ".", "lower", "()", "ĊĠĠĠĠĠĠĠ", "Ġwords", "Ġ=", "Ġi", ".", "split", "()", "ĊĠĠĠĠĠĠĠ", "Ġword", "Counter", "Ġ+=", "Ġlen", "(", "words", ")", "ĊĠĠĠ", "Ġprint", "(\"", "Total", "Ġsentence", "Ġin", "Ġthe", "Ġtext", "Ġ:", "Ġ\"", "Ġ+", "Ġstr", "(", "sentence", "Counter", "Ġ-", "Ġ", "1", "))", "ĊĠĠĠ", "Ġprint", "(\"", "Total", "Ġword", "Ġin", "Ġthe", "Ġtext", "Ġ:", "Ġ\"", "Ġ+", "Ġstr", "(", "word", "Counter", "))", "ĊĠĠĠ", "Ġprint", "(\"", "Unique", "Ġword", "Ġnumber", "Ġ:", "Ġ\"", "Ġ+", "Ġstr", "(", "len", "(", "unique", "_", "words", ")", "Ġ-", "Ġ", "1", "))", "ĊĊ", "Ċ", "def", "ĠgetText", "():", "ĊĠĠĠ", "Ġfile", "Ġ=", "Ġopen", "(\"", "hw", "0", "1", "_", "Fire", "F", "ai", "ries", ".", "txt", "\")", "ĊĠĠĠ", "Ġdata", "Ġ=", "Ġfile", ".", "read", "()", "ĊĠĠĠ", "Ġreturn", "Ġdata", "ĊĊ", "Ċ", "def", "Ġlist", "Results", "():", "ĊĠĠĠ", "Ġprint", "(\"\")", "ĊĠĠĠ", "Ġsplit", "_", "into", "_", "sentences", "(", "getText", "())", "ĊĠĠĠ", "Ġprint", "(\"\")", "ĊĠĠĠ", "Ġwords", ",", "ĠlistOf", "B", "igr", "ams", ",", "Ġun", "ig", "ram", "Counts", ",", "Ġbig", "ram", "Counts", "Ġ=", "Ġn", "gram", ".", "create", "Big", "ram", "(", "getText", "Without", "Spaces", "(", "getText", "()))", "ĊĠĠĠ", "ĠlistOf", "Prob", "Big", "ram", ",", "ĠlistOf", "B", "igr", "ams", ",", "ĠlistOf", "Prob", "Un", "ig", "ram", ",", "Ġwords", "Ġ=", "Ġn", "gram", ".", "calc", "Big", "ram", "Prob", "(", "ĊĠĠĠĠĠĠĠ", "Ġwords", ",", "ĠlistOf", "B", "igr", "ams", ",", "Ġun", "ig", "ram", "Counts", ",", "Ġbig", "ram", "Counts", "ĊĠĠĠ", "Ġ)", "ĊĠĠĠ", "Ġwords", ",", "Ġf", "lipped", "Ġ=", "Ġn", "gram", ".", "max", "Un", "ig", "ram", "(", "listOf", "Prob", "Big", "ram", ",", "ĠlistOf", "B", "igr", "ams", ",", "ĠlistOf", "Prob", "Un", "ig", "ram", ",", "Ġwords", ")", "ĊĠĠĠ", "Ġn", "gram", ".", "find", "Least", "Values", "(", "words", ",", "Ġf", "lipped", ")", "ĊĊ", "Ċ", "if", "Ġ__", "name", "__", "Ġ==", "Ġ\"__", "main", "__\":", "ĊĠĠĠ", "Ġlist", "Results", "()", "Ċ" ]
[ 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 12, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 33, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 39, 40, 40, 40, 40, 40, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53 ]
[ 1, 7, 10, 1, 7, 9, 13, 1, 7, 9, 11, 13, 16, 17, 21, 1, 1, 4, 10, 11, 15, 16, 25, 26, 30, 32, 4, 9, 11, 16, 17, 22, 24, 4, 14, 16, 19, 20, 25, 26, 27, 28, 30, 32, 33, 34, 35, 37, 38, 39, 41, 43, 45, 46, 47, 48, 50, 51, 52, 53, 54, 56, 58, 59, 61, 63, 65, 66, 68, 69, 71, 76, 77, 4, 8, 12, 17, 18, 27, 28, 33, 34, 4, 11, 21, 1, 1, 4, 12, 19, 25, 26, 30, 32, 4, 12, 16, 21, 22, 24, 29, 30, 37, 40, 41, 43, 47, 4, 12, 18, 20, 23, 24, 27, 29, 31, 33, 35, 38, 46, 50, 55, 56, 57, 4, 11, 19, 25, 1, 1, 4, 8, 12, 17, 18, 27, 28, 33, 35, 4, 9, 11, 14, 15, 22, 23, 24, 26, 27, 28, 29, 30, 32, 33, 34, 36, 38, 39, 40, 41, 44, 49, 50, 4, 11, 12, 17, 19, 23, 24, 28, 29, 4, 13, 20, 22, 23, 24, 4, 9, 16, 18, 19, 20, 4, 8, 10, 13, 23, 24, 8, 17, 24, 27, 28, 29, 8, 10, 12, 14, 15, 20, 22, 8, 14, 16, 18, 19, 24, 26, 8, 13, 20, 23, 27, 28, 33, 34, 4, 10, 12, 17, 26, 29, 33, 38, 40, 42, 44, 48, 49, 57, 64, 66, 67, 68, 70, 4, 10, 12, 17, 22, 25, 29, 34, 36, 38, 40, 44, 45, 49, 56, 58, 4, 10, 12, 18, 23, 30, 32, 34, 36, 40, 41, 44, 45, 51, 52, 57, 58, 60, 61, 62, 64, 1, 1, 4, 12, 15, 4, 9, 11, 16, 18, 20, 21, 22, 23, 27, 28, 30, 34, 35, 38, 40, 4, 9, 11, 16, 17, 21, 23, 4, 11, 16, 1, 1, 4, 9, 16, 19, 4, 10, 14, 4, 10, 11, 15, 16, 25, 26, 33, 36, 4, 10, 14, 4, 10, 11, 18, 19, 22, 25, 26, 29, 31, 34, 40, 41, 45, 48, 54, 56, 58, 62, 63, 69, 72, 75, 76, 83, 90, 96, 97, 104, 108, 4, 11, 15, 18, 21, 22, 29, 30, 33, 36, 37, 44, 48, 50, 52, 55, 56, 62, 64, 66, 70, 71, 75, 78, 81, 85, 86, 8, 14, 15, 22, 23, 26, 29, 30, 33, 35, 38, 44, 45, 49, 52, 58, 4, 6, 4, 10, 11, 13, 19, 21, 23, 27, 28, 31, 33, 35, 38, 39, 45, 49, 52, 55, 56, 63, 64, 67, 70, 71, 78, 82, 84, 86, 89, 90, 96, 97, 4, 6, 10, 11, 15, 20, 26, 27, 32, 33, 35, 41, 42, 1, 1, 3, 6, 10, 12, 15, 19, 23, 27, 4, 9, 16, 18 ]
654586443e96f84aae70b3ce3263b0458a27334b
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v1/proto/services/user_interest_service.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.ads.google_ads.v1.proto.resources import ( user_interest_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_user__interest__pb2, ) from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name="google/ads/googleads_v1/proto/services/user_interest_service.proto", package="google.ads.googleads.v1.services", syntax="proto3", serialized_options=_b( "\n$com.google.ads.googleads.v1.servicesB\030UserInterestServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services" ), serialized_pb=_b( '\nBgoogle/ads/googleads_v1/proto/services/user_interest_service.proto\x12 google.ads.googleads.v1.services\x1a;google/ads/googleads_v1/proto/resources/user_interest.proto\x1a\x1cgoogle/api/annotations.proto"/\n\x16GetUserInterestRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xcd\x01\n\x13UserInterestService\x12\xb5\x01\n\x0fGetUserInterest\x12\x38.google.ads.googleads.v1.services.GetUserInterestRequest\x1a/.google.ads.googleads.v1.resources.UserInterest"7\x82\xd3\xe4\x93\x02\x31\x12//v1/{resource_name=customers/*/userInterests/*}B\xff\x01\n$com.google.ads.googleads.v1.servicesB\x18UserInterestServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3' ), dependencies=[ google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_user__interest__pb2.DESCRIPTOR, google_dot_api_dot_annotations__pb2.DESCRIPTOR, ], ) _GETUSERINTERESTREQUEST = _descriptor.Descriptor( name="GetUserInterestRequest", full_name="google.ads.googleads.v1.services.GetUserInterestRequest", filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name="resource_name", full_name="google.ads.googleads.v1.services.GetUserInterestRequest.resource_name", index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, ), ], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], serialized_start=195, serialized_end=242, ) DESCRIPTOR.message_types_by_name["GetUserInterestRequest"] = _GETUSERINTERESTREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) GetUserInterestRequest = _reflection.GeneratedProtocolMessageType( "GetUserInterestRequest", (_message.Message,), dict( DESCRIPTOR=_GETUSERINTERESTREQUEST, __module__="google.ads.googleads_v1.proto.services.user_interest_service_pb2", __doc__="""Request message for [UserInterestService.GetUserInterest][google.ads.googleads.v1.services.UserInterestService.GetUserInterest]. Attributes: resource_name: Resource name of the UserInterest to fetch. """, # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetUserInterestRequest) ), ) _sym_db.RegisterMessage(GetUserInterestRequest) DESCRIPTOR._options = None _USERINTERESTSERVICE = _descriptor.ServiceDescriptor( name="UserInterestService", full_name="google.ads.googleads.v1.services.UserInterestService", file=DESCRIPTOR, index=0, serialized_options=None, serialized_start=245, serialized_end=450, methods=[ _descriptor.MethodDescriptor( name="GetUserInterest", full_name="google.ads.googleads.v1.services.UserInterestService.GetUserInterest", index=0, containing_service=None, input_type=_GETUSERINTERESTREQUEST, output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_user__interest__pb2._USERINTEREST, serialized_options=_b("\202\323\344\223\0021\022//v1/{resource_name=customers/*/userInterests/*}"), ), ], ) _sym_db.RegisterServiceDescriptor(_USERINTERESTSERVICE) DESCRIPTOR.services_by_name["UserInterestService"] = _USERINTERESTSERVICE # @@protoc_insertion_point(module_scope)
[ 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 40, 13046, 829, 341, 7088, 3129, 8986, 51, 244, 4103, 2387, 18805, 38, 222, 40, 1932, 63, 9293, 52, 8592, 52, 44592, 100, 123, 54, 52, 1822, 52, 4270, 52, 514, 100, 13954, 100, 2140, 51, 1822, 222, 222, 485, 5263, 222, 222, 100, 103, 299, 5263, 51, 1687, 100, 1357, 96, 53, 98, 350, 244, 56, 480, 327, 6034, 837, 63, 837, 46, 575, 327, 6034, 837, 63, 837, 51, 4458, 459, 23844, 54, 2152, 222, 1097, 9293, 51, 3952, 1220, 9869, 641, 634, 9662, 222, 1097, 9293, 51, 3952, 1220, 1492, 641, 634, 1454, 222, 1097, 9293, 51, 3952, 1220, 26138, 641, 634, 22612, 222, 1097, 9293, 51, 3952, 1220, 6988, 100, 4617, 641, 634, 7029, 100, 4617, 222, 40, 10804, 12422, 100, 16284, 100, 1513, 45, 22451, 46, 222, 222, 100, 7923, 100, 1219, 299, 634, 7029, 100, 4617, 51, 2061, 365, 499, 222, 1097, 9293, 51, 8592, 51, 2193, 100, 8592, 51, 123, 54, 51, 1822, 51, 5390, 1220, 327, 303, 1275, 100, 13954, 100, 4391, 55, 641, 9293, 100, 4297, 100, 8592, 100, 4297, 100, 44592, 523, 123, 54, 100, 4297, 100, 1822, 100, 4297, 100, 5390, 100, 4297, 100, 514, 523, 13954, 523, 4391, 55, 49, 222, 46, 222, 1097, 9293, 51, 1256, 1220, 14711, 100, 4391, 55, 641, 9293, 100, 4297, 100, 1256, 100, 4297, 100, 8839, 523, 4391, 55, 499, 222, 27843, 299, 634, 9662, 51, 33719, 45, 303, 655, 366, 2193, 52, 8592, 52, 44592, 100, 123, 54, 52, 1822, 52, 4270, 52, 514, 100, 13954, 100, 2140, 51, 1822, 411, 303, 2670, 366, 2193, 51, 8592, 51, 44592, 51, 123, 54, 51, 4270, 411, 303, 8361, 366, 1822, 56, 411, 303, 14304, 100, 2200, 11646, 103, 45, 310, 2724, 115, 41, 527, 51, 2193, 51, 8592, 51, 44592, 51, 123, 54, 51, 4270, 71, 97, 53, 56, 53, 1259, 25505, 1201, 3504, 85, 97, 53, 53, 54, 33992, 2193, 51, 12846, 51, 1107, 52, 2536, 1822, 52, 12734, 52, 8592, 52, 44592, 52, 123, 54, 52, 4270, 64, 4270, 97, 55, 57, 55, 97, 53, 53, 55, 97, 53, 53, 56, 76, 2162, 97, 55, 58, 55, 97, 53, 53, 55, 6608, 51, 26149, 51, 7740, 26149, 51, 91, 54, 51, 5466, 97, 56, 54, 55, 97, 53, 53, 55, 6608, 1750, 26149, 1750, 7740, 26149, 1750, 91, 54, 1750, 5466, 97, 56, 58, 55, 97, 53, 53, 55, 41, 7740, 422, 26149, 422, 7740, 26149, 422, 91, 54, 422, 5466, 39, 303, 2604, 303, 14304, 100, 4391, 11646, 103, 45, 310, 3243, 46439, 2193, 52, 8592, 52, 44592, 100, 123, 54, 52, 1822, 52, 4270, 52, 514, 100, 13954, 100, 2140, 51, 1822, 97, 125, 54, 55, 9293, 51, 8592, 51, 44592, 51, 123, 54, 51, 4270, 97, 125, 54, 102, 64, 2193, 52, 8592, 52, 44592, 100, 123, 54, 52, 1822, 52, 5390, 52, 514, 100, 13954, 51, 1822, 97, 125, 54, 102, 97, 125, 54, 104, 2193, 52, 1256, 52, 8839, 51, 1822, 9697, 97, 115, 97, 125, 54, 59, 27946, 25505, 1123, 97, 125, 54, 55, 97, 125, 54, 58, 97, 115, 97, 119, 3157, 100, 444, 97, 125, 54, 61, 97, 125, 53, 54, 788, 125, 53, 54, 5026, 121, 55, 97, 16506, 97, 125, 53, 54, 97, 115, 97, 125, 54, 56, 1259, 25505, 1201, 97, 125, 54, 55, 97, 2474, 58, 97, 125, 53, 54, 97, 115, 97, 125, 53, 107, 27946, 25505, 97, 125, 54, 55, 97, 125, 56, 61, 51, 2193, 51, 8592, 51, 44592, 51, 123, 54, 51, 4270, 51, 27946, 25505, 1123, 97, 125, 54, 102, 4735, 2193, 51, 8592, 51, 44592, 51, 123, 54, 51, 5390, 51, 1259, 25505, 39, 60, 97, 125, 61, 55, 97, 3096, 56, 97, 2651, 57, 97, 125, 62, 56, 97, 125, 53, 55, 97, 125, 56, 54, 97, 125, 54, 55, 325, 123, 54, 5274, 3157, 100, 444, 66, 22357, 40951, 514, 1662, 17200, 1127, 130, 71, 97, 3144, 97, 125, 53, 54, 97, 115, 41, 527, 51, 2193, 51, 8592, 51, 44592, 51, 123, 54, 51, 4270, 71, 97, 125, 54, 61, 1259, 25505, 1201, 3504, 85, 97, 125, 53, 54, 33992, 2193, 51, 12846, 51, 1107, 52, 2536, 1822, 52, 12734, 52, 8592, 52, 44592, 52, 123, 54, 52, 4270, 64, 4270, 97, 2942, 55, 97, 125, 53, 55, 97, 125, 53, 56, 76, 2162, 97, 15558, 97, 125, 53, 55, 6608, 51, 26149, 51, 7740, 26149, 51, 91, 54, 51, 5466, 97, 17668, 97, 125, 53, 55, 6608, 1750, 26149, 1750, 7740, 26149, 1750, 91, 54, 1750, 5466, 97, 13951, 97, 125, 53, 55, 41, 7740, 422, 26149, 422, 7740, 26149, 422, 91, 54, 422, 5466, 103, 97, 125, 53, 59, 1822, 56, 44, 303, 2604, 303, 6450, 6094, 310, 9293, 100, 4297, 100, 8592, 100, 4297, 100, 44592, 523, 123, 54, 100, 4297, 100, 1822, 100, 4297, 100, 5390, 100, 4297, 100, 514, 523, 13954, 523, 4391, 55, 51, 27843, 49, 310, 9293, 100, 4297, 100, 1256, 100, 4297, 100, 8839, 523, 4391, 55, 51, 27843, 49, 303, 2520, 222, 46, 499, 222, 100, 2804, 4991, 5464, 4143, 7921, 299, 634, 9662, 51, 4336, 45, 303, 655, 366, 27946, 25505, 1123, 411, 303, 3559, 100, 444, 366, 2193, 51, 8592, 51, 44592, 51, 123, 54, 51, 4270, 51, 27946, 25505, 1123, 411, 303, 4891, 66, 2545, 49, 303, 822, 66, 27843, 49, 303, 6663, 100, 700, 66, 2545, 49, 303, 3844, 6094, 310, 634, 9662, 51, 45392, 45, 343, 655, 366, 3157, 100, 444, 411, 343, 3559, 100, 444, 366, 2193, 51, 8592, 51, 44592, 51, 123, 54, 51, 4270, 51, 27946, 25505, 1123, 51, 3157, 100, 444, 411, 343, 1671, 66, 53, 49, 343, 1470, 66, 54, 49, 343, 847, 66, 62, 49, 343, 23314, 100, 700, 66, 62, 49, 343, 2300, 66, 54, 49, 343, 1421, 100, 1555, 100, 872, 66, 2737, 49, 343, 1263, 100, 872, 11646, 103, 459, 1912, 5480, 459, 3330, 50, 61, 2132, 343, 1492, 100, 700, 66, 2545, 49, 343, 3858, 100, 700, 66, 2545, 49, 343, 6663, 100, 700, 66, 2545, 49, 343, 458, 100, 6749, 66, 2737, 49, 343, 5122, 100, 3488, 66, 2545, 49, 343, 14304, 100, 2200, 66, 2545, 49, 343, 822, 66, 27843, 49, 310, 2604, 303, 2520, 303, 11612, 33909, 303, 11825, 100, 2529, 33909, 303, 3858, 100, 2529, 33909, 303, 14304, 100, 2200, 66, 2545, 49, 303, 458, 100, 8258, 463, 66, 2737, 49, 303, 8361, 366, 1822, 56, 411, 303, 5122, 100, 20009, 33909, 303, 1611, 17918, 33909, 303, 14304, 100, 1384, 66, 54, 62, 58, 49, 303, 14304, 100, 435, 66, 55, 57, 55, 49, 222, 46, 222, 222, 27843, 51, 1454, 100, 2529, 100, 1186, 100, 444, 1388, 27946, 25505, 1123, 1465, 299, 634, 2804, 4991, 5464, 4143, 7921, 222, 100, 7923, 100, 1219, 51, 4339, 33719, 45, 27843, 46, 222, 222, 27946, 25505, 1123, 299, 634, 22612, 51, 6540, 5519, 15959, 45, 303, 332, 27946, 25505, 1123, 411, 303, 4648, 1454, 51, 1193, 28345, 303, 5473, 45, 310, 22163, 37917, 11646, 2804, 4991, 5464, 4143, 7921, 49, 310, 1176, 1663, 523, 366, 2193, 51, 8592, 51, 44592, 100, 123, 54, 51, 1822, 51, 4270, 51, 514, 100, 13954, 100, 2140, 100, 4391, 55, 411, 310, 1176, 1446, 523, 366, 1033, 1123, 1492, 456, 353, 447, 1259, 25505, 1201, 51, 27946, 25505, 1697, 2193, 51, 8592, 51, 44592, 51, 123, 54, 51, 4270, 51, 1259, 25505, 1201, 51, 27946, 25505, 1015, 42860, 18198, 63, 416, 2885, 100, 444, 63, 633, 6297, 655, 451, 341, 2694, 25505, 391, 5644, 51, 353, 3347, 411, 310, 607, 10804, 12422, 100, 16284, 100, 1513, 45, 842, 100, 3488, 63, 2193, 51, 8592, 51, 44592, 51, 123, 54, 51, 4270, 51, 27946, 25505, 1123, 46, 303, 2604, 222, 46, 222, 100, 7923, 100, 1219, 51, 4339, 1193, 45, 27946, 25505, 1123, 46, 499, 222, 27843, 1132, 2200, 299, 1686, 222, 222, 100, 4991, 5464, 4143, 12748, 299, 634, 9662, 51, 1201, 4336, 45, 303, 655, 366, 1259, 25505, 1201, 411, 303, 3559, 100, 444, 366, 2193, 51, 8592, 51, 44592, 51, 123, 54, 51, 4270, 51, 1259, 25505, 1201, 411, 303, 822, 66, 27843, 49, 303, 1671, 66, 53, 49, 303, 14304, 100, 2200, 66, 2545, 49, 303, 14304, 100, 1384, 66, 55, 57, 58, 49, 303, 14304, 100, 435, 66, 57, 58, 53, 49, 303, 4457, 6094, 310, 634, 9662, 51, 44980, 45, 343, 655, 366, 27946, 25505, 411, 343, 3559, 100, 444, 366, 2193, 51, 8592, 51, 44592, 51, 123, 54, 51, 4270, 51, 1259, 25505, 1201, 51, 27946, 25505, 411, 343, 1671, 66, 53, 49, 343, 6663, 100, 2140, 66, 2545, 49, 343, 1533, 100, 700, 11646, 2804, 4991, 5464, 4143, 7921, 49, 343, 1716, 100, 700, 66, 2193, 100, 4297, 100, 8592, 100, 4297, 100, 44592, 523, 123, 54, 100, 4297, 100, 1822, 100, 4297, 100, 5390, 100, 4297, 100, 514, 523, 13954, 523, 4391, 55, 1132, 4991, 5464, 4143, 49, 343, 14304, 100, 2200, 11646, 103, 5564, 55, 53, 55, 97, 56, 55, 56, 97, 56, 57, 57, 97, 55, 55, 56, 97, 53, 53, 55, 54, 97, 53, 55, 55, 325, 123, 54, 5274, 3157, 100, 444, 66, 22357, 40951, 514, 1662, 17200, 1127, 130, 2132, 310, 2604, 303, 2520, 222, 46, 222, 100, 7923, 100, 1219, 51, 4339, 1201, 4336, 2191, 4991, 5464, 4143, 12748, 46, 222, 222, 27843, 51, 4270, 100, 1186, 100, 444, 1388, 1259, 25505, 1201, 1465, 299, 634, 4991, 5464, 4143, 12748, 222, 222, 40, 10804, 12422, 100, 16284, 100, 1513, 45, 1663, 100, 3488, 46, 222 ]
[ "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "#", "ĠGenerated", "Ġby", "Ġthe", "Ġprotocol", "Ġbuffer", "Ġcompiler", ".", "Ġ", "ĠDO", "ĠNOT", "ĠEDIT", "!", "Ċ", "#", "Ġsource", ":", "Ġgoogle", "/", "ads", "/", "googleads", "_", "v", "1", "/", "proto", "/", "services", "/", "user", "_", "interest", "_", "service", ".", "proto", "Ċ", "Ċ", "import", "Ġsys", "Ċ", "Ċ", "_", "b", "Ġ=", "Ġsys", ".", "version", "_", "info", "[", "0", "]", "Ġ<", "Ġ", "3", "Ġand", "Ġ(", "lambda", "Ġx", ":", "Ġx", ")", "Ġor", "Ġ(", "lambda", "Ġx", ":", "Ġx", ".", "encode", "(\"", "latin", "1", "\"))", "Ċ", "from", "Ġgoogle", ".", "protobuf", "Ġimport", "Ġdescriptor", "Ġas", "Ġ_", "descriptor", "Ċ", "from", "Ġgoogle", ".", "protobuf", "Ġimport", "Ġmessage", "Ġas", "Ġ_", "message", "Ċ", "from", "Ġgoogle", ".", "protobuf", "Ġimport", "Ġreflection", "Ġas", "Ġ_", "reflection", "Ċ", "from", "Ġgoogle", ".", "protobuf", "Ġimport", "Ġsymbol", "_", "database", "Ġas", "Ġ_", "symbol", "_", "database", "Ċ", "#", "Ġ@@", "protoc", "_", "insertion", "_", "point", "(", "imports", ")", "Ċ", "Ċ", "_", "sym", "_", "db", "Ġ=", "Ġ_", "symbol", "_", "database", ".", "Default", "()", "ĊĊ", "Ċ", "from", "Ġgoogle", ".", "ads", ".", "google", "_", "ads", ".", "v", "1", ".", "proto", ".", "resources", "Ġimport", "Ġ(", "ĊĠĠĠ", "Ġuser", "_", "interest", "_", "pb", "2", "Ġas", "Ġgoogle", "_", "dot", "_", "ads", "_", "dot", "_", "googleads", "__", "v", "1", "_", "dot", "_", "proto", "_", "dot", "_", "resources", "_", "dot", "_", "user", "__", "interest", "__", "pb", "2", ",", "Ċ", ")", "Ċ", "from", "Ġgoogle", ".", "api", "Ġimport", "Ġannotations", "_", "pb", "2", "Ġas", "Ġgoogle", "_", "dot", "_", "api", "_", "dot", "_", "annotations", "__", "pb", "2", "ĊĊ", "Ċ", "DESCRIPTOR", "Ġ=", "Ġ_", "descriptor", ".", "FileDescriptor", "(", "ĊĠĠĠ", "Ġname", "=\"", "google", "/", "ads", "/", "googleads", "_", "v", "1", "/", "proto", "/", "services", "/", "user", "_", "interest", "_", "service", ".", "proto", "\",", "ĊĠĠĠ", "Ġpackage", "=\"", "google", ".", "ads", ".", "googleads", ".", "v", "1", ".", "services", "\",", "ĊĠĠĠ", "Ġsyntax", "=\"", "proto", "3", "\",", "ĊĠĠĠ", "Ġserialized", "_", "options", "=_", "b", "(", "ĊĠĠĠĠĠĠĠ", "Ġ\"\\", "n", "$", "com", ".", "google", ".", "ads", ".", "googleads", ".", "v", "1", ".", "services", "B", "\\", "0", "3", "0", "User", "Interest", "Service", "Proto", "P", "\\", "0", "0", "1", "ZH", "google", ".", "golang", ".", "org", "/", "gen", "proto", "/", "googleapis", "/", "ads", "/", "googleads", "/", "v", "1", "/", "services", ";", "services", "\\", "2", "4", "2", "\\", "0", "0", "2", "\\", "0", "0", "3", "G", "AA", "\\", "2", "5", "2", "\\", "0", "0", "2", "ĠGoogle", ".", "Ads", ".", "Google", "Ads", ".", "V", "1", ".", "Services", "\\", "3", "1", "2", "\\", "0", "0", "2", "ĠGoogle", "\\\\", "Ads", "\\\\", "Google", "Ads", "\\\\", "V", "1", "\\\\", "Services", "\\", "3", "5", "2", "\\", "0", "0", "2", "$", "Google", "::", "Ads", "::", "Google", "Ads", "::", "V", "1", "::", "Services", "\"", "ĊĠĠĠ", "Ġ),", "ĊĠĠĠ", "Ġserialized", "_", "pb", "=_", "b", "(", "ĊĠĠĠĠĠĠĠ", "Ġ'\\", "nB", "google", "/", "ads", "/", "googleads", "_", "v", "1", "/", "proto", "/", "services", "/", "user", "_", "interest", "_", "service", ".", "proto", "\\", "x", "1", "2", "Ġgoogle", ".", "ads", ".", "googleads", ".", "v", "1", ".", "services", "\\", "x", "1", "a", ";", "google", "/", "ads", "/", "googleads", "_", "v", "1", "/", "proto", "/", "resources", "/", "user", "_", "interest", ".", "proto", "\\", "x", "1", "a", "\\", "x", "1", "c", "google", "/", "api", "/", "annotations", ".", "proto", "\"/", "\\", "n", "\\", "x", "1", "6", "GetUser", "Interest", "Request", "\\", "x", "1", "2", "\\", "x", "1", "5", "\\", "n", "\\", "r", "resource", "_", "name", "\\", "x", "1", "8", "\\", "x", "0", "1", "Ġ\\", "x", "0", "1", "(\\", "t", "2", "\\", "xcd", "\\", "x", "0", "1", "\\", "n", "\\", "x", "1", "3", "User", "Interest", "Service", "\\", "x", "1", "2", "\\", "xb", "5", "\\", "x", "0", "1", "\\", "n", "\\", "x", "0", "f", "GetUser", "Interest", "\\", "x", "1", "2", "\\", "x", "3", "8", ".", "google", ".", "ads", ".", "googleads", ".", "v", "1", ".", "services", ".", "GetUser", "Interest", "Request", "\\", "x", "1", "a", "/.", "google", ".", "ads", ".", "googleads", ".", "v", "1", ".", "resources", ".", "User", "Interest", "\"", "7", "\\", "x", "8", "2", "\\", "xd", "3", "\\", "xe", "4", "\\", "x", "9", "3", "\\", "x", "0", "2", "\\", "x", "3", "1", "\\", "x", "1", "2", "//", "v", "1", "/{", "resource", "_", "name", "=", "customers", "/*/", "user", "Inter", "ests", "/*", "}", "B", "\\", "xff", "\\", "x", "0", "1", "\\", "n", "$", "com", ".", "google", ".", "ads", ".", "googleads", ".", "v", "1", ".", "services", "B", "\\", "x", "1", "8", "User", "Interest", "Service", "Proto", "P", "\\", "x", "0", "1", "ZH", "google", ".", "golang", ".", "org", "/", "gen", "proto", "/", "googleapis", "/", "ads", "/", "googleads", "/", "v", "1", "/", "services", ";", "services", "\\", "xa", "2", "\\", "x", "0", "2", "\\", "x", "0", "3", "G", "AA", "\\", "xaa", "\\", "x", "0", "2", "ĠGoogle", ".", "Ads", ".", "Google", "Ads", ".", "V", "1", ".", "Services", "\\", "xca", "\\", "x", "0", "2", "ĠGoogle", "\\\\", "Ads", "\\\\", "Google", "Ads", "\\\\", "V", "1", "\\\\", "Services", "\\", "xea", "\\", "x", "0", "2", "$", "Google", "::", "Ads", "::", "Google", "Ads", "::", "V", "1", "::", "Services", "b", "\\", "x", "0", "6", "proto", "3", "'", "ĊĠĠĠ", "Ġ),", "ĊĠĠĠ", "Ġdependencies", "=[", "ĊĠĠĠĠĠĠĠ", "Ġgoogle", "_", "dot", "_", "ads", "_", "dot", "_", "googleads", "__", "v", "1", "_", "dot", "_", "proto", "_", "dot", "_", "resources", "_", "dot", "_", "user", "__", "interest", "__", "pb", "2", ".", "DESCRIPTOR", ",", "ĊĠĠĠĠĠĠĠ", "Ġgoogle", "_", "dot", "_", "api", "_", "dot", "_", "annotations", "__", "pb", "2", ".", "DESCRIPTOR", ",", "ĊĠĠĠ", "Ġ],", "Ċ", ")", "ĊĊ", "Ċ", "_", "GET", "USER", "INTER", "EST", "REQUEST", "Ġ=", "Ġ_", "descriptor", ".", "Descriptor", "(", "ĊĠĠĠ", "Ġname", "=\"", "GetUser", "Interest", "Request", "\",", "ĊĠĠĠ", "Ġfull", "_", "name", "=\"", "google", ".", "ads", ".", "googleads", ".", "v", "1", ".", "services", ".", "GetUser", "Interest", "Request", "\",", "ĊĠĠĠ", "Ġfilename", "=", "None", ",", "ĊĠĠĠ", "Ġfile", "=", "DESCRIPTOR", ",", "ĊĠĠĠ", "Ġcontaining", "_", "type", "=", "None", ",", "ĊĠĠĠ", "Ġfields", "=[", "ĊĠĠĠĠĠĠĠ", "Ġ_", "descriptor", ".", "FieldDescriptor", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġname", "=\"", "resource", "_", "name", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfull", "_", "name", "=\"", "google", ".", "ads", ".", "googleads", ".", "v", "1", ".", "services", ".", "GetUser", "Interest", "Request", ".", "resource", "_", "name", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġindex", "=", "0", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġnumber", "=", "1", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtype", "=", "9", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcpp", "_", "type", "=", "9", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlabel", "=", "1", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġhas", "_", "default", "_", "value", "=", "False", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdefault", "_", "value", "=_", "b", "(\"", "\").", "decode", "(\"", "utf", "-", "8", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġmessage", "_", "type", "=", "None", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġenum", "_", "type", "=", "None", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontaining", "_", "type", "=", "None", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġis", "_", "extension", "=", "False", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġextension", "_", "scope", "=", "None", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġserialized", "_", "options", "=", "None", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfile", "=", "DESCRIPTOR", ",", "ĊĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠ", "Ġ],", "ĊĠĠĠ", "Ġextensions", "=[],", "ĊĠĠĠ", "Ġnested", "_", "types", "=[],", "ĊĠĠĠ", "Ġenum", "_", "types", "=[],", "ĊĠĠĠ", "Ġserialized", "_", "options", "=", "None", ",", "ĊĠĠĠ", "Ġis", "_", "extend", "able", "=", "False", ",", "ĊĠĠĠ", "Ġsyntax", "=\"", "proto", "3", "\",", "ĊĠĠĠ", "Ġextension", "_", "ranges", "=[],", "ĊĠĠĠ", "Ġone", "ofs", "=[],", "ĊĠĠĠ", "Ġserialized", "_", "start", "=", "1", "9", "5", ",", "ĊĠĠĠ", "Ġserialized", "_", "end", "=", "2", "4", "2", ",", "Ċ", ")", "Ċ", "Ċ", "DESCRIPTOR", ".", "message", "_", "types", "_", "by", "_", "name", "[\"", "GetUser", "Interest", "Request", "\"]", "Ġ=", "Ġ_", "GET", "USER", "INTER", "EST", "REQUEST", "Ċ", "_", "sym", "_", "db", ".", "Register", "FileDescriptor", "(", "DESCRIPTOR", ")", "Ċ", "Ċ", "GetUser", "Interest", "Request", "Ġ=", "Ġ_", "reflection", ".", "Generated", "Protocol", "MessageType", "(", "ĊĠĠĠ", "Ġ\"", "GetUser", "Interest", "Request", "\",", "ĊĠĠĠ", "Ġ(_", "message", ".", "Message", ",),", "ĊĠĠĠ", "Ġdict", "(", "ĊĠĠĠĠĠĠĠ", "ĠDESCRIP", "TOR", "=_", "GET", "USER", "INTER", "EST", "REQUEST", ",", "ĊĠĠĠĠĠĠĠ", "Ġ__", "module", "__", "=\"", "google", ".", "ads", ".", "googleads", "_", "v", "1", ".", "proto", ".", "services", ".", "user", "_", "interest", "_", "service", "_", "pb", "2", "\",", "ĊĠĠĠĠĠĠĠ", "Ġ__", "doc", "__", "=\"", "\"\"", "Request", "Ġmessage", "Ġfor", "ĊĠ", "Ġ[", "User", "Interest", "Service", ".", "GetUser", "Interest", "][", "google", ".", "ads", ".", "googleads", ".", "v", "1", ".", "services", ".", "User", "Interest", "Service", ".", "GetUser", "Interest", "].", "ĊĠĠĊĠĠĊĠ", "ĠAttributes", ":", "ĊĠĠĠĠĠ", "Ġresource", "_", "name", ":", "ĊĠĠĠĠĠĠĠĠĠ", "ĠResource", "Ġname", "Ġof", "Ġthe", "ĠUser", "Interest", "Ġto", "Ġfetch", ".", "ĊĠ", "Ġ\"\"", "\",", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġ@@", "protoc", "_", "insertion", "_", "point", "(", "class", "_", "scope", ":", "google", ".", "ads", ".", "googleads", ".", "v", "1", ".", "services", ".", "GetUser", "Interest", "Request", ")", "ĊĠĠĠ", "Ġ),", "Ċ", ")", "Ċ", "_", "sym", "_", "db", ".", "Register", "Message", "(", "GetUser", "Interest", "Request", ")", "ĊĊ", "Ċ", "DESCRIPTOR", "._", "options", "Ġ=", "ĠNone", "Ċ", "Ċ", "_", "USER", "INTER", "EST", "SERVICE", "Ġ=", "Ġ_", "descriptor", ".", "Service", "Descriptor", "(", "ĊĠĠĠ", "Ġname", "=\"", "User", "Interest", "Service", "\",", "ĊĠĠĠ", "Ġfull", "_", "name", "=\"", "google", ".", "ads", ".", "googleads", ".", "v", "1", ".", "services", ".", "User", "Interest", "Service", "\",", "ĊĠĠĠ", "Ġfile", "=", "DESCRIPTOR", ",", "ĊĠĠĠ", "Ġindex", "=", "0", ",", "ĊĠĠĠ", "Ġserialized", "_", "options", "=", "None", ",", "ĊĠĠĠ", "Ġserialized", "_", "start", "=", "2", "4", "5", ",", "ĊĠĠĠ", "Ġserialized", "_", "end", "=", "4", "5", "0", ",", "ĊĠĠĠ", "Ġmethods", "=[", "ĊĠĠĠĠĠĠĠ", "Ġ_", "descriptor", ".", "MethodDescriptor", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġname", "=\"", "GetUser", "Interest", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfull", "_", "name", "=\"", "google", ".", "ads", ".", "googleads", ".", "v", "1", ".", "services", ".", "User", "Interest", "Service", ".", "GetUser", "Interest", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġindex", "=", "0", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontaining", "_", "service", "=", "None", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġinput", "_", "type", "=_", "GET", "USER", "INTER", "EST", "REQUEST", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġoutput", "_", "type", "=", "google", "_", "dot", "_", "ads", "_", "dot", "_", "googleads", "__", "v", "1", "_", "dot", "_", "proto", "_", "dot", "_", "resources", "_", "dot", "_", "user", "__", "interest", "__", "pb", "2", "._", "USER", "INTER", "EST", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġserialized", "_", "options", "=_", "b", "(\"\\", "2", "0", "2", "\\", "3", "2", "3", "\\", "3", "4", "4", "\\", "2", "2", "3", "\\", "0", "0", "2", "1", "\\", "0", "2", "2", "//", "v", "1", "/{", "resource", "_", "name", "=", "customers", "/*/", "user", "Inter", "ests", "/*", "}", "\"),", "ĊĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠ", "Ġ],", "Ċ", ")", "Ċ", "_", "sym", "_", "db", ".", "Register", "Service", "Descriptor", "(_", "USER", "INTER", "EST", "SERVICE", ")", "Ċ", "Ċ", "DESCRIPTOR", ".", "services", "_", "by", "_", "name", "[\"", "User", "Interest", "Service", "\"]", "Ġ=", "Ġ_", "USER", "INTER", "EST", "SERVICE", "Ċ", "Ċ", "#", "Ġ@@", "protoc", "_", "insertion", "_", "point", "(", "module", "_", "scope", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 37, 37, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 64, 64, 65, 65, 66, 66, 66, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 87, 87, 87, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 91, 91, 91, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 97, 97, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 100, 101, 101, 101, 101, 101, 101, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 106, 106, 106, 106, 106, 107, 107, 107, 107, 107, 108, 108, 108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 109, 109, 109, 109, 110, 110, 110, 110, 110, 110, 110, 110, 110, 111, 111, 111, 112, 112, 112, 112, 112, 112, 113, 113, 113, 113, 113, 113, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 115, 115, 115, 115, 115, 116, 116, 116, 116, 116, 116, 116, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 120, 120, 121, 121, 122, 122, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 124, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127 ]
[ 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 2, 12, 15, 19, 28, 35, 44, 45, 46, 49, 53, 58, 59, 1, 2, 9, 10, 17, 18, 21, 22, 31, 32, 33, 34, 35, 40, 41, 49, 50, 54, 55, 63, 64, 71, 72, 77, 1, 1, 7, 11, 1, 1, 2, 3, 5, 9, 10, 17, 18, 22, 23, 24, 25, 27, 28, 29, 33, 35, 41, 43, 44, 46, 47, 50, 52, 58, 60, 61, 63, 64, 70, 72, 77, 78, 81, 1, 5, 12, 13, 21, 28, 39, 42, 44, 54, 1, 5, 12, 13, 21, 28, 36, 39, 41, 48, 1, 5, 12, 13, 21, 28, 39, 42, 44, 54, 1, 5, 12, 13, 21, 28, 35, 36, 44, 47, 49, 55, 56, 64, 1, 2, 5, 11, 12, 21, 22, 27, 28, 35, 36, 1, 1, 2, 5, 6, 8, 10, 12, 18, 19, 27, 28, 35, 37, 1, 1, 5, 12, 13, 16, 17, 23, 24, 27, 28, 29, 30, 31, 36, 37, 46, 53, 55, 4, 9, 10, 18, 19, 21, 22, 25, 32, 33, 36, 37, 40, 41, 44, 45, 54, 56, 57, 58, 59, 62, 63, 68, 69, 72, 73, 82, 83, 86, 87, 91, 93, 101, 103, 105, 106, 107, 1, 2, 1, 5, 12, 13, 16, 23, 35, 36, 38, 39, 42, 49, 50, 53, 54, 57, 58, 61, 62, 73, 75, 77, 78, 1, 1, 11, 13, 15, 25, 26, 40, 41, 4, 9, 11, 17, 18, 21, 22, 31, 32, 33, 34, 35, 40, 41, 49, 50, 54, 55, 63, 64, 71, 72, 77, 79, 4, 12, 14, 20, 21, 24, 25, 34, 35, 36, 37, 38, 46, 48, 4, 11, 13, 18, 19, 21, 4, 15, 16, 23, 25, 26, 27, 8, 11, 12, 13, 16, 17, 23, 24, 27, 28, 37, 38, 39, 40, 41, 49, 50, 51, 52, 53, 54, 58, 66, 73, 78, 79, 80, 81, 82, 83, 85, 91, 92, 98, 99, 102, 103, 106, 111, 112, 122, 123, 126, 127, 136, 137, 138, 139, 140, 148, 149, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 172, 173, 174, 175, 176, 177, 178, 179, 180, 187, 188, 191, 192, 198, 201, 202, 203, 204, 205, 213, 214, 215, 216, 217, 218, 219, 220, 221, 228, 230, 233, 235, 241, 244, 246, 247, 248, 250, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 273, 275, 278, 280, 286, 289, 291, 292, 293, 295, 303, 304, 4, 7, 4, 15, 16, 18, 20, 21, 22, 8, 11, 13, 19, 20, 23, 24, 33, 34, 35, 36, 37, 42, 43, 51, 52, 56, 57, 65, 66, 73, 74, 79, 80, 81, 82, 83, 90, 91, 94, 95, 104, 105, 106, 107, 108, 116, 117, 118, 119, 120, 121, 127, 128, 131, 132, 141, 142, 143, 144, 145, 150, 151, 160, 161, 165, 166, 174, 175, 180, 181, 182, 183, 184, 185, 186, 187, 188, 194, 195, 198, 199, 210, 211, 216, 218, 219, 220, 221, 222, 223, 224, 231, 239, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 266, 267, 271, 272, 273, 274, 275, 276, 277, 278, 279, 281, 282, 283, 284, 286, 287, 288, 289, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 306, 314, 321, 322, 323, 324, 325, 326, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 346, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 369, 370, 373, 374, 383, 384, 385, 386, 387, 395, 396, 403, 411, 418, 419, 420, 421, 422, 424, 430, 431, 434, 435, 444, 445, 446, 447, 448, 457, 458, 462, 470, 471, 472, 473, 474, 475, 476, 477, 479, 480, 481, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 502, 503, 504, 506, 514, 515, 519, 520, 529, 532, 536, 541, 545, 547, 548, 549, 550, 553, 554, 555, 556, 557, 558, 559, 560, 563, 564, 570, 571, 574, 575, 584, 585, 586, 587, 588, 596, 597, 598, 599, 600, 601, 605, 613, 620, 625, 626, 627, 628, 629, 630, 632, 638, 639, 645, 646, 649, 650, 653, 658, 659, 669, 670, 673, 674, 683, 684, 685, 686, 687, 695, 696, 704, 705, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 719, 720, 723, 724, 725, 726, 727, 734, 735, 738, 739, 745, 748, 749, 750, 751, 752, 760, 761, 764, 765, 766, 767, 768, 775, 777, 780, 782, 788, 791, 793, 794, 795, 797, 805, 806, 809, 810, 811, 812, 813, 814, 820, 822, 825, 827, 833, 836, 838, 839, 840, 842, 850, 851, 852, 853, 854, 855, 860, 861, 862, 4, 7, 4, 17, 19, 8, 15, 16, 19, 20, 23, 24, 27, 28, 37, 39, 40, 41, 42, 45, 46, 51, 52, 55, 56, 65, 66, 69, 70, 74, 76, 84, 86, 88, 89, 90, 100, 101, 8, 15, 16, 19, 20, 23, 24, 27, 28, 39, 41, 43, 44, 45, 55, 56, 4, 7, 1, 2, 1, 1, 2, 5, 9, 14, 17, 24, 26, 28, 38, 39, 49, 50, 4, 9, 11, 18, 26, 33, 35, 4, 9, 10, 14, 16, 22, 23, 26, 27, 36, 37, 38, 39, 40, 48, 49, 56, 64, 71, 73, 4, 13, 14, 18, 19, 4, 9, 10, 20, 21, 4, 15, 16, 20, 21, 25, 26, 4, 11, 13, 8, 10, 20, 21, 36, 37, 12, 17, 19, 27, 28, 32, 34, 12, 17, 18, 22, 24, 30, 31, 34, 35, 44, 45, 46, 47, 48, 56, 57, 64, 72, 79, 80, 88, 89, 93, 95, 12, 18, 19, 20, 21, 12, 19, 20, 21, 22, 12, 17, 18, 19, 20, 12, 16, 17, 21, 22, 23, 24, 12, 18, 19, 20, 21, 12, 16, 17, 24, 25, 30, 31, 36, 37, 12, 20, 21, 26, 28, 29, 31, 34, 40, 42, 45, 46, 47, 50, 12, 20, 21, 25, 26, 30, 31, 12, 17, 18, 22, 23, 27, 28, 12, 23, 24, 28, 29, 33, 34, 12, 15, 16, 25, 26, 31, 32, 12, 22, 23, 28, 29, 33, 34, 12, 23, 24, 31, 32, 36, 37, 12, 17, 18, 28, 29, 8, 11, 4, 7, 4, 15, 19, 4, 11, 12, 17, 21, 4, 9, 10, 15, 19, 4, 15, 16, 23, 24, 28, 29, 4, 7, 8, 14, 18, 19, 24, 25, 4, 11, 13, 18, 19, 21, 4, 14, 15, 21, 25, 4, 8, 11, 15, 4, 15, 16, 21, 22, 23, 24, 25, 26, 4, 15, 16, 19, 20, 21, 22, 23, 24, 1, 2, 1, 1, 11, 12, 19, 20, 25, 26, 28, 29, 33, 35, 42, 50, 57, 59, 61, 63, 66, 70, 75, 78, 85, 1, 2, 5, 6, 8, 9, 17, 31, 32, 42, 43, 1, 1, 8, 16, 23, 25, 27, 37, 38, 47, 55, 66, 67, 4, 6, 13, 21, 28, 30, 4, 7, 14, 15, 22, 25, 4, 9, 10, 8, 16, 19, 21, 24, 28, 33, 36, 43, 44, 8, 11, 17, 19, 21, 27, 28, 31, 32, 41, 42, 43, 44, 45, 50, 51, 59, 60, 64, 65, 73, 74, 81, 82, 84, 85, 87, 8, 11, 14, 16, 18, 20, 27, 35, 39, 2, 4, 8, 16, 23, 24, 31, 39, 41, 47, 48, 51, 52, 61, 62, 63, 64, 65, 73, 74, 78, 86, 93, 94, 101, 109, 111, 2, 13, 14, 6, 15, 16, 20, 21, 10, 19, 24, 27, 31, 36, 44, 47, 53, 54, 2, 5, 7, 8, 10, 13, 19, 20, 29, 30, 35, 36, 41, 42, 47, 48, 54, 55, 58, 59, 68, 69, 70, 71, 72, 80, 81, 88, 96, 103, 104, 4, 7, 1, 2, 1, 2, 5, 6, 8, 9, 17, 24, 25, 32, 40, 47, 48, 1, 1, 11, 13, 20, 22, 27, 1, 1, 2, 6, 11, 14, 21, 23, 25, 35, 36, 43, 53, 54, 4, 9, 11, 15, 23, 30, 32, 4, 9, 10, 14, 16, 22, 23, 26, 27, 36, 37, 38, 39, 40, 48, 49, 53, 61, 68, 70, 4, 9, 10, 20, 21, 4, 10, 11, 12, 13, 4, 15, 16, 23, 24, 28, 29, 4, 15, 16, 21, 22, 23, 24, 25, 26, 4, 15, 16, 19, 20, 21, 22, 23, 24, 4, 12, 14, 8, 10, 20, 21, 37, 38, 12, 17, 19, 26, 34, 36, 12, 17, 18, 22, 24, 30, 31, 34, 35, 44, 45, 46, 47, 48, 56, 57, 61, 69, 76, 77, 84, 92, 94, 12, 18, 19, 20, 21, 12, 23, 24, 31, 32, 36, 37, 12, 18, 19, 23, 25, 28, 32, 37, 40, 47, 48, 12, 19, 20, 24, 25, 31, 32, 35, 36, 39, 40, 43, 44, 53, 55, 56, 57, 58, 61, 62, 67, 68, 71, 72, 81, 82, 85, 86, 90, 92, 100, 102, 104, 105, 107, 111, 116, 119, 120, 12, 23, 24, 31, 33, 34, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 63, 64, 65, 67, 75, 76, 80, 81, 90, 93, 97, 102, 106, 108, 109, 112, 8, 11, 4, 7, 1, 2, 1, 2, 5, 6, 8, 9, 17, 24, 34, 36, 40, 45, 48, 55, 56, 1, 1, 11, 12, 20, 21, 23, 24, 28, 30, 34, 42, 49, 51, 53, 55, 59, 64, 67, 74, 1, 1, 2, 5, 11, 12, 21, 22, 27, 28, 34, 35, 40, 41 ]
7bd2a29bff1e435cf813dd54109d7f4e17612425
# from tinyTensor.Node import Node import tinyTensor import plotly.plotly as py from graphviz import render # from tinyTensor.Operation import Operation def init(): global _default_graph _default_graph = None def postOrder(node): nodes_postorder = [] def recurse(node): if isinstance(node, tinyTensor.Node.Node): for input_node in node.inputNodes: recurse(input_node) nodes_postorder.append(node) recurse(node) return nodes_postorder class Graph: def __init__(self): self.nodes = [] self.placeholderNames = [] def appendNode(self, node): if node.name in self.placeholderNames and node.isPlaceholder: raise Exception('Placeholder name "{}" is already in use in current graph'.format(node.name)) elif node.isPlaceholder: self.placeholderNames.append(node.name) self.nodes.append(node) def set_default(self): init() global _default_graph _default_graph = self def visualize_nodes(self, node): # generating the .gv file gv_file = 'graph "" \n{\n' global nodeCounter nodeCounter = 0 def recurse(nodes, gv_file, parent_node_str=None): global nodeCounter nodes_list = [] if isinstance(nodes, list): nodes_list.extend(nodes) else: nodes_list.append(nodes) for node in nodes_list: # node should add itself to the list current_node_str = "n" + str(nodeCounter) nodeCounter += 1 """ operation might contain non-node constants, hence need to make sure that they are converted to node""" if type(node) in (int, float): node = tinyTensor.Node.Node.variable(node) # creating a variable node """creating the node labels""" if isinstance(node, tinyTensor.Operation.Operation): gv_file += current_node_str + ' [label="{} ({})"] ;\n'.format(node.operator, node.value) elif node.isPlaceholder: gv_file += current_node_str + ' [label="{}({})"] ;\n'.format(node.name, node.value) else: gv_file += current_node_str + ' [label="{}({})"] ;\n'.format(node.name, node.value) # now creating connection line to parent(s) TODO: make it possible to have many parents, (nodes should have output nodes list) if parent_node_str != None: gv_file += parent_node_str + " -- " + current_node_str + "; \n" # applying the same to the children of this node if len(node.inputNodes) > 0: gv_file = recurse(node.inputNodes, gv_file, current_node_str) return gv_file gv_file = recurse(node, gv_file) gv_file += "}\n" with open("network.gv", "w+") as file: file.writelines(gv_file) # render('dot','png','network.gv') print(gv_file) def visualize_layers(self, layer_list): neuron_dict = {} # generating dict of neurons gv_file = 'graph "" \n{\n' # dealing with input nodes for node in layer_list[0].inputList: neuron_dict[node] = node.name gv_file += neuron_dict[node] + ' [label="{}({})"] ;\n'.format(node.name, node.value) # creating dict for neurons for layer in layer_list: for neuron in layer.neuronList: neuron_dict[neuron] = "{}".format(neuron.name) gv_file += neuron_dict[neuron] + ' [label="{}({})"] ;\n'.format(neuron.name, neuron.value) # drawing links between neurons for layer in layer_list: for neuron in layer.neuronList: for input_neuron in neuron.inputNeurons: gv_file += neuron_dict[neuron] + " -- " + neuron_dict[input_neuron] + "; \n" gv_file += "}\n" with open("network.gv", "w+") as file: file.writelines(gv_file) print(gv_file)
[ 40, 664, 19119, 7972, 51, 1230, 1220, 4021, 222, 485, 19119, 7972, 222, 485, 7036, 651, 51, 3570, 651, 641, 3643, 222, 1097, 4023, 19486, 1220, 2922, 222, 40, 664, 19119, 7972, 51, 3786, 1220, 11957, 499, 222, 610, 3238, 2284, 303, 3671, 634, 1555, 100, 2275, 303, 634, 1555, 100, 2275, 299, 1686, 499, 222, 610, 2381, 2888, 45, 1271, 731, 303, 5193, 100, 1545, 1191, 299, 1627, 465, 684, 45571, 45, 1271, 731, 310, 434, 6968, 45, 1271, 49, 19119, 7972, 51, 1230, 51, 1230, 731, 343, 456, 1533, 100, 1271, 347, 1560, 51, 1151, 5919, 63, 419, 45571, 45, 1151, 100, 1271, 46, 343, 5193, 100, 1545, 1191, 51, 1713, 45, 1271, 46, 465, 45571, 45, 1271, 46, 303, 461, 5193, 100, 1545, 1191, 499, 222, 842, 6478, 63, 303, 684, 1176, 1683, 3232, 803, 731, 310, 649, 51, 5484, 299, 1627, 310, 649, 51, 10354, 4128, 299, 1627, 465, 684, 5507, 1230, 45, 803, 49, 1560, 731, 310, 434, 1560, 51, 444, 347, 649, 51, 10354, 4128, 480, 1560, 51, 316, 18378, 63, 343, 3655, 3284, 482, 18378, 655, 19457, 39, 458, 3443, 347, 813, 347, 1565, 4023, 2503, 1664, 45, 1271, 51, 444, 509, 310, 4378, 1560, 51, 316, 18378, 63, 343, 649, 51, 10354, 4128, 51, 1713, 45, 1271, 51, 444, 46, 310, 649, 51, 5484, 51, 1713, 45, 1271, 46, 465, 684, 758, 100, 1555, 45, 803, 731, 310, 3238, 365, 310, 3671, 634, 1555, 100, 2275, 310, 634, 1555, 100, 2275, 299, 649, 465, 684, 34895, 100, 5484, 45, 803, 49, 1560, 731, 310, 607, 17381, 341, 657, 19699, 822, 310, 43285, 100, 781, 299, 349, 2275, 3347, 788, 115, 4125, 115, 44, 310, 3671, 1560, 6489, 310, 1560, 6489, 299, 244, 53, 603, 684, 45571, 45, 5484, 49, 43285, 100, 781, 49, 2952, 100, 1271, 100, 484, 66, 2545, 731, 343, 3671, 1560, 6489, 343, 5193, 100, 687, 299, 1627, 343, 434, 6968, 45, 5484, 49, 1168, 731, 419, 5193, 100, 687, 51, 8258, 45, 5484, 46, 343, 832, 63, 419, 5193, 100, 687, 51, 1713, 45, 5484, 46, 343, 456, 1560, 347, 5193, 100, 687, 63, 419, 607, 1560, 1414, 1035, 8032, 391, 341, 1168, 419, 1565, 100, 1271, 100, 484, 299, 332, 115, 39, 494, 615, 45, 1271, 6489, 46, 419, 1560, 6489, 1475, 244, 54, 419, 1547, 4231, 4816, 4814, 3000, 50, 1271, 12405, 49, 26323, 1868, 391, 1949, 3673, 708, 2974, 904, 12829, 391, 1560, 3012, 419, 434, 847, 45, 1271, 46, 347, 327, 429, 49, 1916, 731, 547, 1560, 299, 19119, 7972, 51, 1230, 51, 1230, 51, 4521, 45, 1271, 46, 244, 607, 6913, 331, 2702, 1560, 419, 1547, 19648, 341, 1560, 6577, 3012, 419, 434, 6968, 45, 1271, 49, 19119, 7972, 51, 3786, 51, 3786, 731, 547, 43285, 100, 781, 1475, 1565, 100, 1271, 100, 484, 494, 349, 447, 1194, 366, 2561, 6001, 1770, 1465, 2098, 97, 115, 2503, 1664, 45, 1271, 51, 3004, 49, 1560, 51, 872, 46, 419, 4378, 1560, 51, 316, 18378, 63, 547, 43285, 100, 781, 1475, 1565, 100, 1271, 100, 484, 494, 349, 447, 1194, 366, 2561, 31573, 1465, 2098, 97, 115, 2503, 1664, 45, 1271, 51, 444, 49, 1560, 51, 872, 46, 419, 832, 63, 547, 43285, 100, 781, 1475, 1565, 100, 1271, 100, 484, 494, 349, 447, 1194, 366, 2561, 31573, 1465, 2098, 97, 115, 2503, 1664, 45, 1271, 51, 444, 49, 1560, 51, 872, 46, 419, 607, 2483, 6913, 3401, 1646, 391, 2952, 45, 120, 46, 4314, 63, 1949, 580, 4222, 391, 1178, 5110, 20845, 49, 327, 5484, 1414, 1178, 1716, 5193, 1168, 46, 419, 434, 2952, 100, 1271, 100, 484, 882, 1686, 63, 547, 43285, 100, 781, 1475, 2952, 100, 1271, 100, 484, 494, 332, 790, 332, 494, 1565, 100, 1271, 100, 484, 494, 7216, 788, 115, 39, 419, 607, 23337, 341, 2454, 391, 341, 5727, 451, 477, 1560, 419, 434, 2095, 45, 1271, 51, 1151, 5919, 46, 868, 244, 53, 63, 547, 43285, 100, 781, 299, 45571, 45, 1271, 51, 1151, 5919, 49, 43285, 100, 781, 49, 1565, 100, 1271, 100, 484, 46, 343, 461, 43285, 100, 781, 603, 43285, 100, 781, 299, 45571, 45, 1271, 49, 43285, 100, 781, 46, 310, 43285, 100, 781, 1475, 332, 4127, 115, 39, 310, 642, 2177, 459, 4599, 51, 19699, 411, 332, 124, 37066, 641, 822, 63, 343, 822, 51, 24455, 2374, 45, 19699, 100, 781, 46, 310, 607, 2922, 482, 4297, 1216, 1665, 1216, 4599, 51, 19699, 704, 310, 1489, 45, 19699, 100, 781, 46, 465, 684, 34895, 100, 8367, 45, 803, 49, 5458, 100, 687, 731, 310, 1188, 22615, 100, 2734, 299, 2172, 310, 607, 17381, 5473, 451, 1188, 31486, 310, 43285, 100, 781, 299, 349, 2275, 3347, 788, 115, 4125, 115, 44, 310, 607, 31459, 642, 1533, 5193, 310, 456, 1560, 347, 5458, 100, 687, 96, 53, 1015, 1151, 739, 63, 343, 1188, 22615, 100, 2734, 96, 1271, 98, 299, 1560, 51, 444, 343, 43285, 100, 781, 1475, 1188, 22615, 100, 2734, 96, 1271, 98, 494, 349, 447, 1194, 366, 2561, 31573, 1465, 2098, 97, 115, 2503, 1664, 45, 1271, 51, 444, 49, 1560, 51, 872, 46, 310, 607, 6913, 5473, 456, 1188, 31486, 310, 456, 5458, 347, 5458, 100, 687, 63, 343, 456, 1188, 22615, 347, 5458, 51, 960, 22615, 739, 63, 419, 1188, 22615, 100, 2734, 96, 960, 22615, 98, 299, 19457, 2316, 1664, 45, 960, 22615, 51, 444, 46, 419, 43285, 100, 781, 1475, 1188, 22615, 100, 2734, 96, 960, 22615, 98, 494, 349, 447, 1194, 366, 2561, 31573, 1465, 2098, 97, 115, 2503, 1664, 45, 960, 22615, 51, 444, 49, 1188, 22615, 51, 872, 46, 310, 607, 19785, 7343, 3761, 1188, 31486, 310, 456, 5458, 347, 5458, 100, 687, 63, 343, 456, 1188, 22615, 347, 5458, 51, 960, 22615, 739, 63, 419, 456, 1533, 100, 960, 22615, 347, 1188, 22615, 51, 1151, 6536, 31486, 63, 547, 43285, 100, 781, 1475, 1188, 22615, 100, 2734, 96, 960, 22615, 98, 494, 332, 790, 332, 494, 1188, 22615, 100, 2734, 96, 1151, 100, 960, 22615, 98, 494, 7216, 788, 115, 39, 310, 43285, 100, 781, 1475, 332, 4127, 115, 39, 310, 642, 2177, 459, 4599, 51, 19699, 411, 332, 124, 37066, 641, 822, 63, 343, 822, 51, 24455, 2374, 45, 19699, 100, 781, 46, 310, 1489, 45, 19699, 100, 781, 46, 222 ]
[ "#", "Ġfrom", "Ġtiny", "Tensor", ".", "Node", "Ġimport", "ĠNode", "Ċ", "import", "Ġtiny", "Tensor", "Ċ", "import", "Ġplot", "ly", ".", "plot", "ly", "Ġas", "Ġpy", "Ċ", "from", "Ġgraph", "viz", "Ġimport", "Ġrender", "Ċ", "#", "Ġfrom", "Ġtiny", "Tensor", ".", "Operation", "Ġimport", "ĠOperation", "ĊĊ", "Ċ", "def", "Ġinit", "():", "ĊĠĠĠ", "Ġglobal", "Ġ_", "default", "_", "graph", "ĊĠĠĠ", "Ġ_", "default", "_", "graph", "Ġ=", "ĠNone", "ĊĊ", "Ċ", "def", "Ġpost", "Order", "(", "node", "):", "ĊĠĠĠ", "Ġnodes", "_", "post", "order", "Ġ=", "Ġ[]", "ĊĊĠĠĠ", "Ġdef", "Ġrecurse", "(", "node", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġisinstance", "(", "node", ",", "Ġtiny", "Tensor", ".", "Node", ".", "Node", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġinput", "_", "node", "Ġin", "Ġnode", ".", "input", "Nodes", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġrecurse", "(", "input", "_", "node", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġnodes", "_", "post", "order", ".", "append", "(", "node", ")", "ĊĊĠĠĠ", "Ġrecurse", "(", "node", ")", "ĊĠĠĠ", "Ġreturn", "Ġnodes", "_", "post", "order", "ĊĊ", "Ċ", "class", "ĠGraph", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "nodes", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "placeholder", "Names", "Ġ=", "Ġ[]", "ĊĊĠĠĠ", "Ġdef", "Ġappend", "Node", "(", "self", ",", "Ġnode", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnode", ".", "name", "Ġin", "Ġself", ".", "placeholder", "Names", "Ġand", "Ġnode", ".", "is", "Placeholder", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġraise", "ĠException", "('", "Placeholder", "Ġname", "Ġ\"{}", "\"", "Ġis", "Ġalready", "Ġin", "Ġuse", "Ġin", "Ġcurrent", "Ġgraph", "'.", "format", "(", "node", ".", "name", "))", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġnode", ".", "is", "Placeholder", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "placeholder", "Names", ".", "append", "(", "node", ".", "name", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "nodes", ".", "append", "(", "node", ")", "ĊĊĠĠĠ", "Ġdef", "Ġset", "_", "default", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġinit", "()", "ĊĠĠĠĠĠĠĠ", "Ġglobal", "Ġ_", "default", "_", "graph", "ĊĠĠĠĠĠĠĠ", "Ġ_", "default", "_", "graph", "Ġ=", "Ġself", "ĊĊĠĠĠ", "Ġdef", "Ġvisualize", "_", "nodes", "(", "self", ",", "Ġnode", "):", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġgenerating", "Ġthe", "Ġ.", "gv", "Ġfile", "ĊĠĠĠĠĠĠĠ", "Ġgv", "_", "file", "Ġ=", "Ġ'", "graph", "Ġ\"\"", "Ġ\\", "n", "{\\", "n", "'", "ĊĠĠĠĠĠĠĠ", "Ġglobal", "Ġnode", "Counter", "ĊĠĠĠĠĠĠĠ", "Ġnode", "Counter", "Ġ=", "Ġ", "0", "ĊĊĠĠĠĠĠĠĠ", "Ġdef", "Ġrecurse", "(", "nodes", ",", "Ġgv", "_", "file", ",", "Ġparent", "_", "node", "_", "str", "=", "None", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġglobal", "Ġnode", "Counter", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġnodes", "_", "list", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġisinstance", "(", "nodes", ",", "Ġlist", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġnodes", "_", "list", ".", "extend", "(", "nodes", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġnodes", "_", "list", ".", "append", "(", "nodes", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġnode", "Ġin", "Ġnodes", "_", "list", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġnode", "Ġshould", "Ġadd", "Ġitself", "Ġto", "Ġthe", "Ġlist", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcurrent", "_", "node", "_", "str", "Ġ=", "Ġ\"", "n", "\"", "Ġ+", "Ġstr", "(", "node", "Counter", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġnode", "Counter", "Ġ+=", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Ġoperation", "Ġmight", "Ġcontain", "Ġnon", "-", "node", "Ġconstants", ",", "Ġhence", "Ġneed", "Ġto", "Ġmake", "Ġsure", "Ġthat", "Ġthey", "Ġare", "Ġconverted", "Ġto", "Ġnode", "\"\"\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġtype", "(", "node", ")", "Ġin", "Ġ(", "int", ",", "Ġfloat", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġnode", "Ġ=", "Ġtiny", "Tensor", ".", "Node", ".", "Node", ".", "variable", "(", "node", ")", "Ġ", "Ġ#", "Ġcreating", "Ġa", "Ġvariable", "Ġnode", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "creating", "Ġthe", "Ġnode", "Ġlabels", "\"\"\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġisinstance", "(", "node", ",", "Ġtiny", "Tensor", ".", "Operation", ".", "Operation", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġgv", "_", "file", "Ġ+=", "Ġcurrent", "_", "node", "_", "str", "Ġ+", "Ġ'", "Ġ[", "label", "=\"", "{}", "Ġ({", "})", "\"]", "Ġ;", "\\", "n", "'.", "format", "(", "node", ".", "operator", ",", "Ġnode", ".", "value", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġnode", ".", "is", "Placeholder", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġgv", "_", "file", "Ġ+=", "Ġcurrent", "_", "node", "_", "str", "Ġ+", "Ġ'", "Ġ[", "label", "=\"", "{}", "({})", "\"]", "Ġ;", "\\", "n", "'.", "format", "(", "node", ".", "name", ",", "Ġnode", ".", "value", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġgv", "_", "file", "Ġ+=", "Ġcurrent", "_", "node", "_", "str", "Ġ+", "Ġ'", "Ġ[", "label", "=\"", "{}", "({})", "\"]", "Ġ;", "\\", "n", "'.", "format", "(", "node", ".", "name", ",", "Ġnode", ".", "value", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġnow", "Ġcreating", "Ġconnection", "Ġline", "Ġto", "Ġparent", "(", "s", ")", "ĠTODO", ":", "Ġmake", "Ġit", "Ġpossible", "Ġto", "Ġhave", "Ġmany", "Ġparents", ",", "Ġ(", "nodes", "Ġshould", "Ġhave", "Ġoutput", "Ġnodes", "Ġlist", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġparent", "_", "node", "_", "str", "Ġ!=", "ĠNone", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġgv", "_", "file", "Ġ+=", "Ġparent", "_", "node", "_", "str", "Ġ+", "Ġ\"", "Ġ--", "Ġ\"", "Ġ+", "Ġcurrent", "_", "node", "_", "str", "Ġ+", "Ġ\";", "Ġ\\", "n", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġapplying", "Ġthe", "Ġsame", "Ġto", "Ġthe", "Ġchildren", "Ġof", "Ġthis", "Ġnode", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "node", ".", "input", "Nodes", ")", "Ġ>", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġgv", "_", "file", "Ġ=", "Ġrecurse", "(", "node", ".", "input", "Nodes", ",", "Ġgv", "_", "file", ",", "Ġcurrent", "_", "node", "_", "str", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġgv", "_", "file", "ĊĊĠĠĠĠĠĠĠ", "Ġgv", "_", "file", "Ġ=", "Ġrecurse", "(", "node", ",", "Ġgv", "_", "file", ")", "ĊĠĠĠĠĠĠĠ", "Ġgv", "_", "file", "Ġ+=", "Ġ\"", "}\\", "n", "\"", "ĊĠĠĠĠĠĠĠ", "Ġwith", "Ġopen", "(\"", "network", ".", "gv", "\",", "Ġ\"", "w", "+\")", "Ġas", "Ġfile", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfile", ".", "writel", "ines", "(", "gv", "_", "file", ")", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġrender", "('", "dot", "','", "png", "','", "network", ".", "gv", "')", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "gv", "_", "file", ")", "ĊĊĠĠĠ", "Ġdef", "Ġvisualize", "_", "layers", "(", "self", ",", "Ġlayer", "_", "list", "):", "ĊĠĠĠĠĠĠĠ", "Ġne", "uron", "_", "dict", "Ġ=", "Ġ{}", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġgenerating", "Ġdict", "Ġof", "Ġne", "urons", "ĊĠĠĠĠĠĠĠ", "Ġgv", "_", "file", "Ġ=", "Ġ'", "graph", "Ġ\"\"", "Ġ\\", "n", "{\\", "n", "'", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġdealing", "Ġwith", "Ġinput", "Ġnodes", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġnode", "Ġin", "Ġlayer", "_", "list", "[", "0", "].", "input", "List", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġne", "uron", "_", "dict", "[", "node", "]", "Ġ=", "Ġnode", ".", "name", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġgv", "_", "file", "Ġ+=", "Ġne", "uron", "_", "dict", "[", "node", "]", "Ġ+", "Ġ'", "Ġ[", "label", "=\"", "{}", "({})", "\"]", "Ġ;", "\\", "n", "'.", "format", "(", "node", ".", "name", ",", "Ġnode", ".", "value", ")", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġcreating", "Ġdict", "Ġfor", "Ġne", "urons", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġlayer", "Ġin", "Ġlayer", "_", "list", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġne", "uron", "Ġin", "Ġlayer", ".", "ne", "uron", "List", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġne", "uron", "_", "dict", "[", "ne", "uron", "]", "Ġ=", "Ġ\"{}", "\".", "format", "(", "ne", "uron", ".", "name", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġgv", "_", "file", "Ġ+=", "Ġne", "uron", "_", "dict", "[", "ne", "uron", "]", "Ġ+", "Ġ'", "Ġ[", "label", "=\"", "{}", "({})", "\"]", "Ġ;", "\\", "n", "'.", "format", "(", "ne", "uron", ".", "name", ",", "Ġne", "uron", ".", "value", ")", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġdrawing", "Ġlinks", "Ġbetween", "Ġne", "urons", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġlayer", "Ġin", "Ġlayer", "_", "list", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġne", "uron", "Ġin", "Ġlayer", ".", "ne", "uron", "List", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġinput", "_", "ne", "uron", "Ġin", "Ġne", "uron", ".", "input", "Ne", "urons", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġgv", "_", "file", "Ġ+=", "Ġne", "uron", "_", "dict", "[", "ne", "uron", "]", "Ġ+", "Ġ\"", "Ġ--", "Ġ\"", "Ġ+", "Ġne", "uron", "_", "dict", "[", "input", "_", "ne", "uron", "]", "Ġ+", "Ġ\";", "Ġ\\", "n", "\"", "ĊĠĠĠĠĠĠĠ", "Ġgv", "_", "file", "Ġ+=", "Ġ\"", "}\\", "n", "\"", "ĊĠĠĠĠĠĠĠ", "Ġwith", "Ġopen", "(\"", "network", ".", "gv", "\",", "Ġ\"", "w", "+\")", "Ġas", "Ġfile", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfile", ".", "writel", "ines", "(", "gv", "_", "file", ")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "gv", "_", "file", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 25, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 87, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 98, 98, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 106, 106, 106, 106, 106, 106, 106 ]
[ 1, 2, 7, 12, 18, 19, 23, 30, 35, 1, 7, 12, 18, 1, 7, 12, 14, 15, 19, 21, 24, 27, 1, 5, 11, 14, 21, 28, 1, 2, 7, 12, 18, 19, 28, 35, 45, 1, 1, 4, 9, 12, 4, 11, 13, 20, 21, 26, 4, 6, 13, 14, 19, 21, 26, 1, 1, 4, 9, 14, 15, 19, 21, 4, 10, 11, 15, 20, 22, 25, 4, 8, 16, 17, 21, 23, 8, 11, 22, 23, 27, 28, 33, 39, 40, 44, 45, 49, 51, 12, 16, 22, 23, 27, 30, 35, 36, 41, 46, 47, 16, 24, 25, 30, 31, 35, 36, 12, 18, 19, 23, 28, 29, 35, 36, 40, 41, 4, 12, 13, 17, 18, 4, 11, 17, 18, 22, 27, 1, 1, 6, 12, 13, 4, 8, 11, 15, 18, 22, 24, 8, 13, 14, 19, 21, 24, 8, 13, 14, 25, 30, 32, 35, 4, 8, 15, 19, 20, 24, 25, 30, 32, 8, 11, 16, 17, 21, 24, 29, 30, 41, 46, 50, 55, 56, 58, 69, 70, 12, 18, 28, 30, 41, 46, 50, 51, 54, 62, 65, 69, 72, 80, 86, 88, 94, 95, 99, 100, 104, 106, 8, 13, 18, 19, 21, 32, 33, 12, 17, 18, 29, 34, 35, 41, 42, 46, 47, 51, 52, 8, 13, 14, 19, 20, 26, 27, 31, 32, 4, 8, 12, 13, 20, 21, 25, 27, 8, 13, 15, 8, 15, 17, 24, 25, 30, 8, 10, 17, 18, 23, 25, 30, 4, 8, 18, 19, 24, 25, 29, 30, 35, 37, 8, 10, 21, 25, 27, 29, 34, 8, 11, 12, 16, 18, 20, 25, 28, 30, 31, 33, 34, 35, 8, 15, 20, 27, 8, 13, 20, 22, 23, 24, 8, 12, 20, 21, 26, 27, 30, 31, 35, 36, 43, 44, 48, 49, 52, 53, 57, 59, 12, 19, 24, 31, 12, 18, 19, 23, 25, 28, 12, 15, 26, 27, 32, 33, 38, 40, 16, 22, 23, 27, 28, 34, 35, 40, 41, 12, 17, 18, 16, 22, 23, 27, 28, 34, 35, 40, 41, 12, 16, 21, 24, 30, 31, 35, 36, 16, 18, 23, 30, 34, 41, 44, 48, 53, 16, 24, 25, 29, 30, 33, 35, 37, 38, 39, 41, 45, 46, 50, 57, 58, 16, 21, 28, 31, 32, 33, 16, 20, 30, 36, 44, 48, 49, 53, 63, 64, 70, 75, 78, 83, 88, 93, 98, 102, 112, 115, 120, 123, 16, 19, 24, 25, 29, 30, 33, 35, 38, 39, 45, 47, 20, 25, 27, 32, 38, 39, 43, 44, 48, 49, 57, 58, 62, 63, 64, 66, 75, 77, 86, 91, 16, 20, 28, 32, 37, 44, 47, 16, 19, 30, 31, 35, 36, 41, 47, 48, 57, 58, 67, 69, 20, 23, 24, 28, 31, 39, 40, 44, 45, 48, 50, 52, 54, 59, 61, 63, 66, 68, 70, 72, 73, 74, 76, 82, 83, 87, 88, 96, 97, 102, 103, 108, 109, 16, 21, 26, 27, 29, 40, 41, 20, 23, 24, 28, 31, 39, 40, 44, 45, 48, 50, 52, 54, 59, 61, 63, 67, 69, 71, 72, 73, 75, 81, 82, 86, 87, 91, 92, 97, 98, 103, 104, 16, 21, 22, 20, 23, 24, 28, 31, 39, 40, 44, 45, 48, 50, 52, 54, 59, 61, 63, 67, 69, 71, 72, 73, 75, 81, 82, 86, 87, 91, 92, 97, 98, 103, 104, 16, 18, 22, 31, 42, 47, 50, 57, 58, 59, 60, 65, 66, 71, 74, 83, 86, 91, 96, 104, 105, 107, 112, 119, 124, 131, 137, 142, 143, 16, 19, 26, 27, 31, 32, 35, 38, 43, 44, 20, 23, 24, 28, 31, 38, 39, 43, 44, 47, 49, 51, 54, 56, 58, 66, 67, 71, 72, 75, 77, 80, 82, 83, 84, 16, 18, 27, 31, 36, 39, 43, 52, 55, 60, 65, 16, 19, 23, 24, 28, 29, 34, 39, 40, 42, 43, 44, 45, 20, 23, 24, 28, 30, 38, 39, 43, 44, 49, 54, 55, 58, 59, 63, 64, 72, 73, 77, 78, 81, 82, 12, 19, 22, 23, 27, 8, 11, 12, 16, 18, 26, 27, 31, 32, 35, 36, 40, 41, 8, 11, 12, 16, 19, 21, 23, 24, 25, 8, 13, 18, 20, 27, 28, 30, 32, 34, 35, 38, 41, 46, 47, 12, 17, 18, 24, 28, 29, 31, 32, 36, 37, 8, 10, 17, 19, 22, 25, 28, 31, 38, 39, 41, 43, 8, 14, 15, 17, 18, 22, 23, 4, 8, 18, 19, 25, 26, 30, 31, 37, 38, 42, 44, 8, 11, 15, 16, 20, 22, 25, 8, 10, 21, 26, 29, 32, 37, 8, 11, 12, 16, 18, 20, 25, 28, 30, 31, 33, 34, 35, 8, 10, 18, 23, 29, 35, 8, 12, 17, 20, 26, 27, 31, 32, 33, 35, 40, 44, 45, 12, 15, 19, 20, 24, 25, 29, 30, 32, 37, 38, 42, 12, 15, 16, 20, 23, 26, 30, 31, 35, 36, 40, 41, 43, 45, 47, 52, 54, 56, 60, 62, 64, 65, 66, 68, 74, 75, 79, 80, 84, 85, 90, 91, 96, 97, 8, 10, 19, 24, 28, 31, 36, 8, 12, 18, 21, 27, 28, 32, 33, 12, 16, 19, 23, 26, 32, 33, 35, 39, 43, 44, 16, 19, 23, 24, 28, 29, 31, 35, 36, 38, 42, 44, 50, 51, 53, 57, 58, 62, 63, 16, 19, 20, 24, 27, 30, 34, 35, 39, 40, 42, 46, 47, 49, 51, 53, 58, 60, 62, 66, 68, 70, 71, 72, 74, 80, 81, 83, 87, 88, 92, 93, 96, 100, 101, 106, 107, 8, 10, 18, 24, 32, 35, 40, 8, 12, 18, 21, 27, 28, 32, 33, 12, 16, 19, 23, 26, 32, 33, 35, 39, 43, 44, 16, 20, 26, 27, 29, 33, 36, 39, 43, 44, 49, 51, 56, 57, 20, 23, 24, 28, 31, 34, 38, 39, 43, 44, 46, 50, 51, 53, 55, 58, 60, 62, 65, 69, 70, 74, 75, 80, 81, 83, 87, 88, 90, 93, 95, 96, 97, 8, 11, 12, 16, 19, 21, 23, 24, 25, 8, 13, 18, 20, 27, 28, 30, 32, 34, 35, 38, 41, 46, 47, 12, 17, 18, 24, 28, 29, 31, 32, 36, 37, 8, 14, 15, 17, 18, 22, 23 ]
22da05d9bf6139a0306bfb2d1df96e9e2cf6a0c6
# vim: tabstop=4 expandtab autoindent shiftwidth=4 fileencoding=utf-8 from django.contrib.auth.decorators import login_required from django.contrib.auth import models as auth_models from django.contrib.auth import forms as auth_forms from django.contrib.auth import authenticate, login from django.core.urlresolvers import reverse from django.utils.translation import ugettext_noop as _ from django.contrib import messages from django.http import HttpResponseRedirect from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from django_mises.blog import models as blog_models from django_mises.users import forms as users_forms from django_mises import email_helpers def user_view(request, username): """View the user""" import datetime user = get_object_or_404(auth_models.User, username=username, is_active=True) now = datetime.datetime.now() post_count = blog_models.Post.objects.filter(author=user, publish_at__lte=now).count() # Needs verification? email_verification_form = None if request.user.id == user.id and not user.get_profile().is_verified: data = request.POST.copy() or None email_verification_form = users_forms.EmailVerificationForm(data=data) if email_verification_form.is_bound: email_verification_form.data["user"] = request.user if email_verification_form.is_valid(): email_verification_form.save() messages.info(request, "Tunnuksesi on aktivoitu!") return HttpResponseRedirect(reverse("user", args=(request.user.username,))) # Avoid template namespace clash context = { "viewed_user": user, "post_count": post_count, "email_verification_form": email_verification_form, } req_ctx = RequestContext(request, context) return render_to_response("user.html", req_ctx) def register(request): """Registration view, Django offers none""" data = request.POST.copy() or None user_creation_form = auth_forms.UserCreationForm(data) if user_creation_form.is_bound: if user_creation_form.is_valid(): user = user_creation_form.save() user = authenticate(username=user.username, password=user_creation_form.cleaned_data["password1"]) login(request, user) return HttpResponseRedirect(reverse("user", args=(user.username,))) context = { "user_creation_form": user_creation_form, } req_ctx = RequestContext(request, context) return render_to_response("register.html", req_ctx) @login_required def get_verification_code(request): """Maybe ajaxify this in the future""" if request.user.get_profile().is_verified: messages.info(request, "Olet jo vahvistanut osoitteesi") else: verification_code = request.user.get_profile().gen_verification_code() extractx = { "code": verification_code, } subject = _("Verification code") email_helpers.send_user_email(request.user, subject, "send_verification_code.txt", extractx) messages.info(request, "Vahvistuskoodi on lähetetty sähköpostiisi") return HttpResponseRedirect(reverse("user", args=(request.user.username,))) # EOF
[ 40, 19232, 63, 4890, 4074, 66, 57, 11782, 3019, 2283, 9383, 5746, 1660, 66, 57, 822, 8657, 66, 3330, 50, 61, 222, 222, 1097, 8532, 51, 12060, 51, 2408, 51, 28466, 1220, 6212, 100, 3662, 222, 222, 1097, 8532, 51, 12060, 51, 2408, 1220, 4590, 641, 3813, 100, 3404, 222, 1097, 8532, 51, 12060, 51, 2408, 1220, 10556, 641, 3813, 100, 8543, 222, 1097, 8532, 51, 12060, 51, 2408, 1220, 21280, 49, 6212, 222, 222, 1097, 8532, 51, 1284, 51, 983, 46710, 1220, 10170, 222, 222, 1097, 8532, 51, 2324, 51, 7521, 1220, 1064, 33137, 100, 16987, 641, 634, 222, 222, 1097, 8532, 51, 12060, 1220, 5231, 222, 222, 1097, 8532, 51, 544, 1220, 17857, 11446, 222, 222, 1097, 8532, 51, 36264, 1220, 640, 100, 1491, 100, 290, 100, 57, 53, 57, 49, 2922, 100, 471, 100, 2003, 222, 222, 1097, 8532, 51, 2402, 1220, 4463, 1237, 222, 222, 1097, 8532, 100, 114, 9427, 51, 5241, 1220, 4590, 641, 12593, 100, 3404, 222, 222, 1097, 8532, 100, 114, 9427, 51, 3724, 1220, 10556, 641, 4272, 100, 8543, 222, 222, 1097, 8532, 100, 114, 9427, 1220, 4111, 100, 8789, 499, 222, 610, 1275, 100, 1090, 45, 1375, 49, 969, 731, 303, 1547, 1089, 341, 1275, 3012, 465, 1220, 7181, 465, 1275, 299, 640, 100, 1491, 100, 290, 100, 57, 53, 57, 45, 2408, 100, 3404, 51, 1259, 49, 969, 66, 715, 49, 458, 100, 2498, 66, 1844, 46, 465, 2483, 299, 7181, 51, 6703, 51, 2192, 365, 465, 2381, 100, 1016, 299, 12593, 100, 3404, 51, 3176, 51, 5754, 51, 2049, 45, 2133, 66, 514, 49, 6686, 100, 288, 523, 23795, 66, 2192, 566, 1016, 365, 465, 607, 46496, 18217, 68, 303, 4111, 100, 24430, 100, 618, 299, 1686, 303, 434, 1343, 51, 514, 51, 333, 630, 1275, 51, 333, 480, 666, 1275, 51, 390, 100, 3975, 941, 316, 100, 19623, 63, 310, 727, 299, 1343, 51, 3719, 51, 3014, 365, 575, 1686, 603, 4111, 100, 24430, 100, 618, 299, 4272, 100, 8543, 51, 4490, 18801, 1260, 45, 624, 66, 624, 46, 310, 434, 4111, 100, 24430, 100, 618, 51, 316, 100, 4484, 63, 343, 4111, 100, 24430, 100, 618, 51, 624, 1388, 514, 1465, 299, 1343, 51, 514, 343, 434, 4111, 100, 24430, 100, 618, 51, 316, 100, 1346, 2284, 419, 4111, 100, 24430, 100, 618, 51, 2882, 365, 2125, 5231, 51, 1357, 45, 1375, 49, 332, 89, 330, 115, 3434, 1490, 110, 563, 18571, 10072, 28150, 16013, 2125, 461, 17857, 11446, 45, 9845, 459, 514, 411, 2194, 4381, 1375, 51, 514, 51, 715, 49, 2636, 465, 607, 30672, 3098, 3596, 1553, 936, 303, 1637, 299, 320, 310, 332, 1090, 337, 100, 514, 582, 1275, 49, 310, 332, 1545, 100, 1016, 582, 2381, 100, 1016, 49, 310, 332, 1951, 100, 24430, 100, 618, 582, 4111, 100, 24430, 100, 618, 49, 303, 339, 303, 3630, 100, 2112, 299, 4463, 1237, 45, 1375, 49, 1637, 46, 465, 461, 2922, 100, 471, 100, 2003, 459, 514, 51, 935, 411, 3630, 100, 2112, 46, 499, 222, 610, 3923, 45, 1375, 731, 303, 1547, 11509, 2221, 49, 18288, 24921, 4919, 3012, 465, 727, 299, 1343, 51, 3719, 51, 3014, 365, 575, 1686, 465, 1275, 100, 16772, 100, 618, 299, 3813, 100, 8543, 51, 1259, 12614, 1260, 45, 624, 46, 303, 434, 1275, 100, 16772, 100, 618, 51, 316, 100, 4484, 63, 310, 434, 1275, 100, 16772, 100, 618, 51, 316, 100, 1346, 2284, 343, 1275, 299, 1275, 100, 16772, 100, 618, 51, 2882, 365, 1083, 1275, 299, 21280, 45, 715, 66, 514, 51, 715, 49, 3894, 66, 514, 100, 16772, 100, 618, 51, 33140, 100, 624, 1388, 2911, 54, 6957, 343, 6212, 45, 1375, 49, 1275, 46, 1083, 461, 17857, 11446, 45, 9845, 459, 514, 411, 2194, 4381, 514, 51, 715, 49, 2636, 465, 1637, 299, 320, 310, 332, 514, 100, 16772, 100, 618, 582, 1275, 100, 16772, 100, 618, 49, 303, 339, 303, 3630, 100, 2112, 299, 4463, 1237, 45, 1375, 49, 1637, 46, 465, 461, 2922, 100, 471, 100, 2003, 459, 3334, 51, 935, 411, 3630, 100, 2112, 46, 499, 222, 69, 3632, 100, 3662, 222, 610, 640, 100, 24430, 100, 707, 45, 1375, 731, 303, 1547, 13254, 20278, 1165, 477, 347, 341, 7078, 3012, 465, 434, 1343, 51, 514, 51, 390, 100, 3975, 941, 316, 100, 19623, 63, 310, 5231, 51, 1357, 45, 1375, 49, 332, 84, 749, 8759, 373, 2389, 123, 34182, 322, 356, 780, 302, 538, 17010, 678, 303, 832, 63, 310, 18217, 100, 707, 299, 1343, 51, 514, 51, 390, 100, 3975, 941, 2536, 100, 24430, 100, 707, 365, 310, 6600, 125, 299, 320, 343, 332, 707, 582, 18217, 100, 707, 49, 310, 339, 310, 5405, 299, 26125, 18801, 1361, 678, 310, 4111, 100, 8789, 51, 2729, 100, 514, 100, 1951, 45, 1375, 51, 514, 49, 5405, 49, 332, 2729, 100, 24430, 100, 707, 51, 2787, 411, 6600, 125, 46, 603, 5231, 51, 1357, 45, 1375, 49, 332, 91, 2389, 123, 446, 371, 112, 4920, 110, 563, 40236, 10237, 383, 637, 328, 19630, 112, 2827, 1545, 110, 11519, 678, 465, 461, 17857, 11446, 45, 9845, 459, 514, 411, 2194, 4381, 1375, 51, 514, 51, 715, 49, 2636, 499, 222, 40, 20992, 222 ]
[ "#", "Ġvim", ":", "Ġtab", "stop", "=", "4", "Ġexpand", "tab", "Ġauto", "indent", "Ġshift", "width", "=", "4", "Ġfile", "encoding", "=", "utf", "-", "8", "Ċ", "Ċ", "from", "Ġdjango", ".", "contrib", ".", "auth", ".", "decorators", "Ġimport", "Ġlogin", "_", "required", "Ċ", "Ċ", "from", "Ġdjango", ".", "contrib", ".", "auth", "Ġimport", "Ġmodels", "Ġas", "Ġauth", "_", "models", "Ċ", "from", "Ġdjango", ".", "contrib", ".", "auth", "Ġimport", "Ġforms", "Ġas", "Ġauth", "_", "forms", "Ċ", "from", "Ġdjango", ".", "contrib", ".", "auth", "Ġimport", "Ġauthenticate", ",", "Ġlogin", "Ċ", "Ċ", "from", "Ġdjango", ".", "core", ".", "url", "resolvers", "Ġimport", "Ġreverse", "Ċ", "Ċ", "from", "Ġdjango", ".", "utils", ".", "translation", "Ġimport", "Ġu", "gettext", "_", "noop", "Ġas", "Ġ_", "Ċ", "Ċ", "from", "Ġdjango", ".", "contrib", "Ġimport", "Ġmessages", "Ċ", "Ċ", "from", "Ġdjango", ".", "http", "Ġimport", "ĠHttpResponse", "Redirect", "Ċ", "Ċ", "from", "Ġdjango", ".", "shortcuts", "Ġimport", "Ġget", "_", "object", "_", "or", "_", "4", "0", "4", ",", "Ġrender", "_", "to", "_", "response", "Ċ", "Ċ", "from", "Ġdjango", ".", "template", "Ġimport", "ĠRequest", "Context", "Ċ", "Ċ", "from", "Ġdjango", "_", "m", "ises", ".", "blog", "Ġimport", "Ġmodels", "Ġas", "Ġblog", "_", "models", "Ċ", "Ċ", "from", "Ġdjango", "_", "m", "ises", ".", "users", "Ġimport", "Ġforms", "Ġas", "Ġusers", "_", "forms", "Ċ", "Ċ", "from", "Ġdjango", "_", "m", "ises", "Ġimport", "Ġemail", "_", "helpers", "ĊĊ", "Ċ", "def", "Ġuser", "_", "view", "(", "request", ",", "Ġusername", "):", "ĊĠĠĠ", "Ġ\"\"\"", "View", "Ġthe", "Ġuser", "\"\"\"", "ĊĊĠĠĠ", "Ġimport", "Ġdatetime", "ĊĊĠĠĠ", "Ġuser", "Ġ=", "Ġget", "_", "object", "_", "or", "_", "4", "0", "4", "(", "auth", "_", "models", ".", "User", ",", "Ġusername", "=", "username", ",", "Ġis", "_", "active", "=", "True", ")", "ĊĊĠĠĠ", "Ġnow", "Ġ=", "Ġdatetime", ".", "datetime", ".", "now", "()", "ĊĊĠĠĠ", "Ġpost", "_", "count", "Ġ=", "Ġblog", "_", "models", ".", "Post", ".", "objects", ".", "filter", "(", "author", "=", "user", ",", "Ġpublish", "_", "at", "__", "lte", "=", "now", ").", "count", "()", "ĊĊĠĠĠ", "Ġ#", "ĠNeeds", "Ġverification", "?", "ĊĠĠĠ", "Ġemail", "_", "verification", "_", "form", "Ġ=", "ĠNone", "ĊĠĠĠ", "Ġif", "Ġrequest", ".", "user", ".", "id", "Ġ==", "Ġuser", ".", "id", "Ġand", "Ġnot", "Ġuser", ".", "get", "_", "profile", "().", "is", "_", "verified", ":", "ĊĠĠĠĠĠĠĠ", "Ġdata", "Ġ=", "Ġrequest", ".", "POST", ".", "copy", "()", "Ġor", "ĠNone", "ĊĊĠĠĠĠĠĠĠ", "Ġemail", "_", "verification", "_", "form", "Ġ=", "Ġusers", "_", "forms", ".", "Email", "Verification", "Form", "(", "data", "=", "data", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġemail", "_", "verification", "_", "form", ".", "is", "_", "bound", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġemail", "_", "verification", "_", "form", ".", "data", "[\"", "user", "\"]", "Ġ=", "Ġrequest", ".", "user", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġemail", "_", "verification", "_", "form", ".", "is", "_", "valid", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġemail", "_", "verification", "_", "form", ".", "save", "()", "ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġmessages", ".", "info", "(", "request", ",", "Ġ\"", "T", "un", "n", "uk", "ses", "i", "Ġon", "Ġakt", "ivo", "itu", "!\")", "ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĠHttpResponse", "Redirect", "(", "reverse", "(\"", "user", "\",", "Ġargs", "=(", "request", ".", "user", ".", "username", ",", ")))", "ĊĊĠĠĠ", "Ġ#", "ĠAvoid", "Ġtemplate", "Ġnamespace", "Ġcl", "ash", "ĊĠĠĠ", "Ġcontext", "Ġ=", "Ġ{", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "view", "ed", "_", "user", "\":", "Ġuser", ",", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "post", "_", "count", "\":", "Ġpost", "_", "count", ",", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "email", "_", "verification", "_", "form", "\":", "Ġemail", "_", "verification", "_", "form", ",", "ĊĠĠĠ", "Ġ}", "ĊĠĠĠ", "Ġreq", "_", "ctx", "Ġ=", "ĠRequest", "Context", "(", "request", ",", "Ġcontext", ")", "ĊĊĠĠĠ", "Ġreturn", "Ġrender", "_", "to", "_", "response", "(\"", "user", ".", "html", "\",", "Ġreq", "_", "ctx", ")", "ĊĊ", "Ċ", "def", "Ġregister", "(", "request", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Registration", "Ġview", ",", "ĠDjango", "Ġoffers", "Ġnone", "\"\"\"", "ĊĊĠĠĠ", "Ġdata", "Ġ=", "Ġrequest", ".", "POST", ".", "copy", "()", "Ġor", "ĠNone", "ĊĊĠĠĠ", "Ġuser", "_", "creation", "_", "form", "Ġ=", "Ġauth", "_", "forms", ".", "User", "Creation", "Form", "(", "data", ")", "ĊĠĠĠ", "Ġif", "Ġuser", "_", "creation", "_", "form", ".", "is", "_", "bound", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġuser", "_", "creation", "_", "form", ".", "is", "_", "valid", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġuser", "Ġ=", "Ġuser", "_", "creation", "_", "form", ".", "save", "()", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġuser", "Ġ=", "Ġauthenticate", "(", "username", "=", "user", ".", "username", ",", "Ġpassword", "=", "user", "_", "creation", "_", "form", ".", "cleaned", "_", "data", "[\"", "password", "1", "\"])", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlogin", "(", "request", ",", "Ġuser", ")", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĠHttpResponse", "Redirect", "(", "reverse", "(\"", "user", "\",", "Ġargs", "=(", "user", ".", "username", ",", ")))", "ĊĊĠĠĠ", "Ġcontext", "Ġ=", "Ġ{", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "user", "_", "creation", "_", "form", "\":", "Ġuser", "_", "creation", "_", "form", ",", "ĊĠĠĠ", "Ġ}", "ĊĠĠĠ", "Ġreq", "_", "ctx", "Ġ=", "ĠRequest", "Context", "(", "request", ",", "Ġcontext", ")", "ĊĊĠĠĠ", "Ġreturn", "Ġrender", "_", "to", "_", "response", "(\"", "register", ".", "html", "\",", "Ġreq", "_", "ctx", ")", "ĊĊ", "Ċ", "@", "login", "_", "required", "Ċ", "def", "Ġget", "_", "verification", "_", "code", "(", "request", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Maybe", "Ġajax", "ify", "Ġthis", "Ġin", "Ġthe", "Ġfuture", "\"\"\"", "ĊĊĠĠĠ", "Ġif", "Ġrequest", ".", "user", ".", "get", "_", "profile", "().", "is", "_", "verified", ":", "ĊĠĠĠĠĠĠĠ", "Ġmessages", ".", "info", "(", "request", ",", "Ġ\"", "O", "let", "Ġjo", "Ġv", "ah", "v", "istan", "ut", "Ġo", "so", "it", "te", "esi", "\")", "ĊĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠ", "Ġverification", "_", "code", "Ġ=", "Ġrequest", ".", "user", ".", "get", "_", "profile", "().", "gen", "_", "verification", "_", "code", "()", "ĊĠĠĠĠĠĠĠ", "Ġextract", "x", "Ġ=", "Ġ{", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "code", "\":", "Ġverification", "_", "code", ",", "ĊĠĠĠĠĠĠĠ", "Ġ}", "ĊĠĠĠĠĠĠĠ", "Ġsubject", "Ġ=", "Ġ_(\"", "Verification", "Ġcode", "\")", "ĊĠĠĠĠĠĠĠ", "Ġemail", "_", "helpers", ".", "send", "_", "user", "_", "email", "(", "request", ".", "user", ",", "Ġsubject", ",", "Ġ\"", "send", "_", "verification", "_", "code", ".", "txt", "\",", "Ġextract", "x", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġmessages", ".", "info", "(", "request", ",", "Ġ\"", "V", "ah", "v", "ist", "us", "k", "ood", "i", "Ġon", "Ġlä", "het", "et", "ty", "Ġs", "äh", "k", "ö", "post", "i", "isi", "\")", "ĊĊĠĠĠ", "Ġreturn", "ĠHttpResponse", "Redirect", "(", "reverse", "(\"", "user", "\",", "Ġargs", "=(", "request", ".", "user", ".", "username", ",", ")))", "ĊĊ", "Ċ", "#", "ĠEOF", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 13, 13, 13, 13, 13, 13, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 19, 19, 19, 19, 19, 19, 19, 19, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 31, 31, 31, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 35, 35, 35, 35, 35, 35, 35, 35, 35, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 64, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 87, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 96, 97, 97, 97, 97, 97, 97, 97, 97, 98, 98, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 106, 107, 107, 107 ]
[ 1, 2, 6, 7, 11, 15, 16, 17, 24, 27, 32, 38, 44, 49, 50, 51, 56, 64, 65, 68, 69, 70, 1, 1, 5, 12, 13, 20, 21, 25, 26, 36, 43, 49, 50, 58, 1, 1, 5, 12, 13, 20, 21, 25, 32, 39, 42, 47, 48, 54, 1, 5, 12, 13, 20, 21, 25, 32, 38, 41, 46, 47, 52, 1, 5, 12, 13, 20, 21, 25, 32, 45, 46, 52, 1, 1, 5, 12, 13, 17, 18, 21, 30, 37, 45, 1, 1, 5, 12, 13, 18, 19, 30, 37, 39, 46, 47, 51, 54, 56, 1, 1, 5, 12, 13, 20, 27, 36, 1, 1, 5, 12, 13, 17, 24, 37, 45, 1, 1, 5, 12, 13, 22, 29, 33, 34, 40, 41, 43, 44, 45, 46, 47, 48, 55, 56, 58, 59, 67, 1, 1, 5, 12, 13, 21, 28, 36, 43, 1, 1, 5, 12, 13, 14, 18, 19, 23, 30, 37, 40, 45, 46, 52, 1, 1, 5, 12, 13, 14, 18, 19, 24, 31, 37, 40, 46, 47, 52, 1, 1, 5, 12, 13, 14, 18, 25, 31, 32, 39, 1, 1, 4, 9, 10, 14, 15, 22, 23, 32, 34, 4, 8, 12, 16, 21, 24, 4, 11, 20, 4, 9, 11, 15, 16, 22, 23, 25, 26, 27, 28, 29, 30, 34, 35, 41, 42, 46, 47, 56, 57, 65, 66, 69, 70, 76, 77, 81, 82, 4, 8, 10, 19, 20, 28, 29, 32, 34, 4, 9, 10, 15, 17, 22, 23, 29, 30, 34, 35, 42, 43, 49, 50, 56, 57, 61, 62, 70, 71, 73, 75, 78, 79, 82, 84, 89, 91, 4, 6, 12, 25, 26, 4, 10, 11, 23, 24, 28, 30, 35, 4, 7, 15, 16, 20, 21, 23, 26, 31, 32, 34, 38, 42, 47, 48, 51, 52, 59, 62, 64, 65, 73, 74, 8, 13, 15, 23, 24, 28, 29, 33, 35, 38, 43, 8, 14, 15, 27, 28, 32, 34, 40, 41, 46, 47, 52, 64, 68, 69, 73, 74, 78, 79, 8, 11, 17, 18, 30, 31, 35, 36, 38, 39, 44, 45, 12, 18, 19, 31, 32, 36, 37, 41, 43, 47, 49, 51, 59, 60, 64, 12, 15, 21, 22, 34, 35, 39, 40, 42, 43, 48, 51, 16, 22, 23, 35, 36, 40, 41, 45, 47, 16, 25, 26, 30, 31, 38, 39, 41, 42, 44, 45, 47, 50, 51, 54, 58, 61, 64, 67, 16, 23, 36, 44, 45, 52, 54, 58, 60, 65, 67, 74, 75, 79, 80, 88, 89, 92, 4, 6, 12, 21, 31, 34, 37, 4, 12, 14, 16, 8, 10, 14, 16, 17, 21, 23, 28, 29, 8, 10, 14, 15, 20, 22, 27, 28, 33, 34, 8, 10, 15, 16, 28, 29, 33, 35, 41, 42, 54, 55, 59, 60, 4, 6, 4, 8, 9, 12, 14, 22, 29, 30, 37, 38, 46, 47, 4, 11, 18, 19, 21, 22, 30, 32, 36, 37, 41, 43, 47, 48, 51, 52, 1, 1, 4, 13, 14, 21, 23, 4, 8, 20, 25, 26, 33, 40, 45, 48, 4, 9, 11, 19, 20, 24, 25, 29, 31, 34, 39, 4, 9, 10, 18, 19, 23, 25, 30, 31, 36, 37, 41, 49, 53, 54, 58, 59, 4, 7, 12, 13, 21, 22, 26, 27, 29, 30, 35, 36, 8, 11, 16, 17, 25, 26, 30, 31, 33, 34, 39, 42, 12, 17, 19, 24, 25, 33, 34, 38, 39, 43, 45, 12, 17, 19, 32, 33, 41, 42, 46, 47, 55, 56, 65, 66, 70, 71, 79, 80, 84, 85, 92, 93, 97, 99, 107, 108, 111, 12, 18, 19, 26, 27, 32, 33, 12, 19, 32, 40, 41, 48, 50, 54, 56, 61, 63, 67, 68, 76, 77, 80, 4, 12, 14, 16, 8, 10, 14, 15, 23, 24, 28, 30, 35, 36, 44, 45, 49, 50, 4, 6, 4, 8, 9, 12, 14, 22, 29, 30, 37, 38, 46, 47, 4, 11, 18, 19, 21, 22, 30, 32, 40, 41, 45, 47, 51, 52, 55, 56, 1, 1, 2, 7, 8, 16, 1, 4, 8, 9, 21, 22, 26, 27, 34, 36, 4, 8, 13, 18, 21, 26, 29, 33, 40, 43, 4, 7, 15, 16, 20, 21, 24, 25, 32, 35, 37, 38, 46, 47, 8, 17, 18, 22, 23, 30, 31, 33, 34, 37, 40, 42, 44, 45, 50, 52, 54, 56, 58, 60, 63, 65, 4, 9, 10, 8, 21, 22, 26, 28, 36, 37, 41, 42, 45, 46, 53, 56, 59, 60, 72, 73, 77, 79, 8, 16, 17, 19, 21, 12, 14, 18, 20, 33, 34, 38, 39, 8, 10, 8, 16, 18, 22, 34, 39, 41, 8, 14, 15, 22, 23, 27, 28, 32, 33, 38, 39, 46, 47, 51, 52, 60, 61, 63, 67, 68, 80, 81, 85, 86, 89, 91, 99, 100, 101, 8, 17, 18, 22, 23, 30, 31, 33, 34, 36, 37, 40, 42, 43, 46, 47, 50, 53, 56, 58, 60, 62, 64, 65, 66, 70, 71, 74, 76, 4, 11, 24, 32, 33, 40, 42, 46, 48, 53, 55, 62, 63, 67, 68, 76, 77, 80, 1, 1, 2, 6 ]
40158bbfd9c95a8344f34431d0b0e98c4a1bf6ed
""" Code for mmDGM Author: Chongxuan Li ([email protected]) Version = '1.0' """ import gpulearn_mm_z_x import sys, os import time import color n_hidden = (500, 500) if len(sys.argv) > 2: n_hidden = tuple([int(x) for x in sys.argv[2:]]) nz = 500 if os.environ.has_key("nz"): nz = int(os.environ["nz"]) if os.environ.has_key("stepsize"): alpha = float(os.environ["stepsize"]) else: alpha = 3e-4 if os.environ.has_key("decay1"): decay1 = float(os.environ["decay1"]) else: decay1 = 0.1 if os.environ.has_key("decay2"): decay2 = float(os.environ["decay2"]) else: decay2 = 0.001 if os.environ.has_key("random_seed"): seed = 0 if int(os.environ["random_seed"]) == 1: seed = int(time.time()) if int(os.environ["random_seed"] > 1): seed = int(os.environ["random_seed"]) color.printRed("random_seed " + str(seed)) else: seed = int(time.time()) color.printRed("random_seed " + str(seed)) # print 'random_seed (bool) missing.' # exit() gpulearn_mm_z_x.main( dataset=sys.argv[1], n_z=nz, n_hidden=n_hidden, seed=seed, comment="", alpha=alpha, decay1=decay1, decay2=decay2, gfx=True ) # gpulearn_z_x.main(n_data=50000, dataset='svhn_pca', n_z=300, n_hidden=(500,500), seed=0)
[ 3012, 222, 1241, 456, 12213, 73, 15185, 222, 4372, 63, 1902, 805, 125, 10476, 8110, 327, 399, 805, 125, 10476, 393, 54, 62, 62, 54, 69, 7265, 51, 527, 46, 222, 2080, 299, 349, 54, 51, 53, 44, 222, 3012, 222, 222, 485, 15612, 779, 2864, 100, 2861, 100, 127, 100, 125, 222, 485, 5263, 49, 2355, 222, 485, 1153, 222, 485, 1989, 222, 222, 115, 100, 3887, 299, 327, 58, 53, 53, 49, 244, 58, 53, 53, 46, 222, 344, 2095, 45, 3750, 51, 6129, 46, 868, 244, 55, 63, 303, 329, 100, 3887, 299, 8871, 2034, 429, 45, 125, 46, 456, 837, 347, 5263, 51, 6129, 96, 55, 10209, 1156, 222, 16152, 299, 244, 58, 53, 53, 222, 344, 2355, 51, 12849, 51, 2057, 100, 697, 459, 16152, 10320, 303, 20181, 299, 648, 45, 519, 51, 12849, 1388, 16152, 6957, 222, 344, 2355, 51, 12849, 51, 2057, 100, 697, 459, 3023, 911, 10320, 303, 7461, 299, 1916, 45, 519, 51, 12849, 1388, 3023, 911, 6957, 222, 728, 63, 303, 7461, 299, 244, 56, 106, 50, 57, 222, 344, 2355, 51, 12849, 51, 2057, 100, 697, 459, 21291, 54, 10320, 303, 32335, 54, 299, 1916, 45, 519, 51, 12849, 1388, 21291, 54, 6957, 222, 728, 63, 303, 32335, 54, 299, 244, 53, 51, 54, 222, 344, 2355, 51, 12849, 51, 2057, 100, 697, 459, 21291, 55, 10320, 303, 32335, 55, 299, 1916, 45, 519, 51, 12849, 1388, 21291, 55, 6957, 222, 728, 63, 303, 32335, 55, 299, 244, 53, 51, 53, 53, 54, 222, 344, 2355, 51, 12849, 51, 2057, 100, 697, 459, 3917, 100, 7512, 10320, 303, 9202, 299, 244, 53, 303, 434, 648, 45, 519, 51, 12849, 1388, 3917, 100, 7512, 6957, 630, 244, 54, 63, 310, 9202, 299, 648, 45, 1021, 51, 1021, 1177, 303, 434, 648, 45, 519, 51, 12849, 1388, 3917, 100, 7512, 1465, 868, 244, 54, 731, 310, 9202, 299, 648, 45, 519, 51, 12849, 1388, 3917, 100, 7512, 6957, 303, 1989, 51, 1243, 4038, 459, 3917, 100, 7512, 332, 494, 615, 45, 7512, 509, 222, 728, 63, 303, 9202, 299, 648, 45, 1021, 51, 1021, 1177, 303, 1989, 51, 1243, 4038, 459, 3917, 100, 7512, 332, 494, 615, 45, 7512, 509, 303, 607, 1489, 349, 3917, 100, 7512, 327, 2433, 46, 5839, 4578, 303, 607, 4338, 365, 222, 222, 6833, 779, 2864, 100, 2861, 100, 127, 100, 125, 51, 1850, 45, 303, 5984, 66, 3750, 51, 6129, 96, 54, 636, 329, 100, 127, 66, 16152, 49, 329, 100, 3887, 66, 115, 100, 3887, 49, 9202, 66, 7512, 49, 5101, 20728, 7461, 66, 4945, 49, 32335, 54, 66, 21291, 54, 49, 32335, 55, 66, 21291, 55, 49, 26429, 66, 1844, 222, 46, 499, 222, 40, 15612, 779, 2864, 100, 127, 100, 125, 51, 1850, 45, 115, 100, 624, 66, 58, 53, 53, 53, 53, 49, 5984, 1080, 2289, 12704, 100, 36672, 389, 329, 100, 127, 66, 56, 53, 53, 49, 329, 100, 3887, 4381, 58, 53, 53, 49, 58, 53, 53, 490, 9202, 66, 53, 46, 222 ]
[ "\"\"\"", "Ċ", "Code", "Ġfor", "Ġmm", "D", "GM", "Ċ", "Author", ":", "ĠCh", "ong", "x", "uan", "ĠLi", "Ġ(", "ch", "ong", "x", "uan", "li", "1", "9", "9", "1", "@", "gmail", ".", "com", ")", "Ċ", "Version", "Ġ=", "Ġ'", "1", ".", "0", "'", "Ċ", "\"\"\"", "Ċ", "Ċ", "import", "Ġgp", "ule", "arn", "_", "mm", "_", "z", "_", "x", "Ċ", "import", "Ġsys", ",", "Ġos", "Ċ", "import", "Ġtime", "Ċ", "import", "Ġcolor", "Ċ", "Ċ", "n", "_", "hidden", "Ġ=", "Ġ(", "5", "0", "0", ",", "Ġ", "5", "0", "0", ")", "Ċ", "if", "Ġlen", "(", "sys", ".", "argv", ")", "Ġ>", "Ġ", "2", ":", "ĊĠĠĠ", "Ġn", "_", "hidden", "Ġ=", "Ġtuple", "([", "int", "(", "x", ")", "Ġfor", "Ġx", "Ġin", "Ġsys", ".", "argv", "[", "2", ":]", "])", "Ċ", "nz", "Ġ=", "Ġ", "5", "0", "0", "Ċ", "if", "Ġos", ".", "environ", ".", "has", "_", "key", "(\"", "nz", "\"):", "ĊĠĠĠ", "Ġnz", "Ġ=", "Ġint", "(", "os", ".", "environ", "[\"", "nz", "\"])", "Ċ", "if", "Ġos", ".", "environ", ".", "has", "_", "key", "(\"", "step", "size", "\"):", "ĊĠĠĠ", "Ġalpha", "Ġ=", "Ġfloat", "(", "os", ".", "environ", "[\"", "step", "size", "\"])", "Ċ", "else", ":", "ĊĠĠĠ", "Ġalpha", "Ġ=", "Ġ", "3", "e", "-", "4", "Ċ", "if", "Ġos", ".", "environ", ".", "has", "_", "key", "(\"", "decay", "1", "\"):", "ĊĠĠĠ", "Ġdecay", "1", "Ġ=", "Ġfloat", "(", "os", ".", "environ", "[\"", "decay", "1", "\"])", "Ċ", "else", ":", "ĊĠĠĠ", "Ġdecay", "1", "Ġ=", "Ġ", "0", ".", "1", "Ċ", "if", "Ġos", ".", "environ", ".", "has", "_", "key", "(\"", "decay", "2", "\"):", "ĊĠĠĠ", "Ġdecay", "2", "Ġ=", "Ġfloat", "(", "os", ".", "environ", "[\"", "decay", "2", "\"])", "Ċ", "else", ":", "ĊĠĠĠ", "Ġdecay", "2", "Ġ=", "Ġ", "0", ".", "0", "0", "1", "Ċ", "if", "Ġos", ".", "environ", ".", "has", "_", "key", "(\"", "random", "_", "seed", "\"):", "ĊĠĠĠ", "Ġseed", "Ġ=", "Ġ", "0", "ĊĠĠĠ", "Ġif", "Ġint", "(", "os", ".", "environ", "[\"", "random", "_", "seed", "\"])", "Ġ==", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠ", "Ġseed", "Ġ=", "Ġint", "(", "time", ".", "time", "())", "ĊĠĠĠ", "Ġif", "Ġint", "(", "os", ".", "environ", "[\"", "random", "_", "seed", "\"]", "Ġ>", "Ġ", "1", "):", "ĊĠĠĠĠĠĠĠ", "Ġseed", "Ġ=", "Ġint", "(", "os", ".", "environ", "[\"", "random", "_", "seed", "\"])", "ĊĠĠĠ", "Ġcolor", ".", "print", "Red", "(\"", "random", "_", "seed", "Ġ\"", "Ġ+", "Ġstr", "(", "seed", "))", "Ċ", "else", ":", "ĊĠĠĠ", "Ġseed", "Ġ=", "Ġint", "(", "time", ".", "time", "())", "ĊĠĠĠ", "Ġcolor", ".", "print", "Red", "(\"", "random", "_", "seed", "Ġ\"", "Ġ+", "Ġstr", "(", "seed", "))", "ĊĠĠĠ", "Ġ#", "Ġprint", "Ġ'", "random", "_", "seed", "Ġ(", "bool", ")", "Ġmissing", ".'", "ĊĠĠĠ", "Ġ#", "Ġexit", "()", "Ċ", "Ċ", "gp", "ule", "arn", "_", "mm", "_", "z", "_", "x", ".", "main", "(", "ĊĠĠĠ", "Ġdataset", "=", "sys", ".", "argv", "[", "1", "],", "Ġn", "_", "z", "=", "nz", ",", "Ġn", "_", "hidden", "=", "n", "_", "hidden", ",", "Ġseed", "=", "seed", ",", "Ġcomment", "=\"\",", "Ġalpha", "=", "alpha", ",", "Ġdecay", "1", "=", "decay", "1", ",", "Ġdecay", "2", "=", "decay", "2", ",", "Ġgfx", "=", "True", "Ċ", ")", "ĊĊ", "Ċ", "#", "Ġgp", "ule", "arn", "_", "z", "_", "x", ".", "main", "(", "n", "_", "data", "=", "5", "0", "0", "0", "0", ",", "Ġdataset", "='", "sv", "hn", "_", "pca", "',", "Ġn", "_", "z", "=", "3", "0", "0", ",", "Ġn", "_", "hidden", "=(", "5", "0", "0", ",", "5", "0", "0", "),", "Ġseed", "=", "0", ")", "Ċ" ]
[ 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48 ]
[ 1, 4, 1, 5, 9, 12, 13, 15, 1, 7, 8, 11, 14, 15, 18, 21, 23, 25, 28, 29, 32, 34, 35, 36, 37, 38, 39, 44, 45, 48, 49, 1, 8, 10, 12, 13, 14, 15, 16, 1, 4, 1, 1, 7, 10, 13, 16, 17, 19, 20, 21, 22, 23, 1, 7, 11, 12, 15, 1, 7, 12, 1, 7, 13, 1, 1, 2, 3, 9, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 1, 3, 7, 8, 11, 12, 16, 17, 19, 20, 21, 22, 4, 6, 7, 13, 15, 21, 23, 26, 27, 28, 29, 33, 35, 38, 42, 43, 47, 48, 49, 51, 53, 1, 3, 5, 6, 7, 8, 9, 1, 3, 6, 7, 14, 15, 18, 19, 22, 24, 26, 29, 4, 7, 9, 13, 14, 16, 17, 24, 26, 28, 31, 1, 3, 6, 7, 14, 15, 18, 19, 22, 24, 28, 32, 35, 4, 10, 12, 18, 19, 21, 22, 29, 31, 35, 39, 42, 1, 5, 6, 4, 10, 12, 13, 14, 15, 16, 17, 1, 3, 6, 7, 14, 15, 18, 19, 22, 24, 29, 30, 33, 4, 10, 11, 13, 19, 20, 22, 23, 30, 32, 37, 38, 41, 1, 5, 6, 4, 10, 11, 13, 14, 15, 16, 17, 1, 3, 6, 7, 14, 15, 18, 19, 22, 24, 29, 30, 33, 4, 10, 11, 13, 19, 20, 22, 23, 30, 32, 37, 38, 41, 1, 5, 6, 4, 10, 11, 13, 14, 15, 16, 17, 18, 19, 1, 3, 6, 7, 14, 15, 18, 19, 22, 24, 30, 31, 35, 38, 4, 9, 11, 12, 13, 4, 7, 11, 12, 14, 15, 22, 24, 30, 31, 35, 38, 41, 42, 43, 44, 8, 13, 15, 19, 20, 24, 25, 29, 32, 4, 7, 11, 12, 14, 15, 22, 24, 30, 31, 35, 37, 39, 40, 41, 43, 8, 13, 15, 19, 20, 22, 23, 30, 32, 38, 39, 43, 46, 4, 10, 11, 16, 19, 21, 27, 28, 32, 34, 36, 40, 41, 45, 47, 1, 5, 6, 4, 9, 11, 15, 16, 20, 21, 25, 28, 4, 10, 11, 16, 19, 21, 27, 28, 32, 34, 36, 40, 41, 45, 47, 4, 6, 12, 14, 20, 21, 25, 27, 31, 32, 40, 42, 4, 6, 11, 13, 1, 1, 3, 6, 9, 10, 12, 13, 14, 15, 16, 17, 21, 22, 4, 12, 13, 16, 17, 21, 22, 23, 25, 27, 28, 29, 30, 32, 33, 35, 36, 42, 43, 44, 45, 51, 52, 57, 58, 62, 63, 71, 75, 81, 82, 87, 88, 94, 95, 96, 101, 102, 103, 109, 110, 111, 116, 117, 118, 122, 123, 127, 1, 2, 1, 1, 2, 5, 8, 11, 12, 13, 14, 15, 16, 20, 21, 22, 23, 27, 28, 29, 30, 31, 32, 33, 34, 42, 44, 46, 48, 49, 52, 54, 56, 57, 58, 59, 60, 61, 62, 63, 65, 66, 72, 74, 75, 76, 77, 78, 79, 80, 81, 83, 88, 89, 90, 91 ]
e543c7f7f1b249e53b8ebf82641ec398abf557af
button6 = Button(tk, text=" ", font=("Times 26 bold"), heigh=4, width=8, command=lambda: checker(button6)) button6.grid(row=2, column=2, sticky=S + N + E + W) button7 = Button(tk, text=" ", font=("Times 26 bold"), heigh=4, width=8, command=lambda: checker(button7)) button7.grid(row=3, column=0, sticky=S + N + E + W) button8 = Button(tk, text=" ", font=("Times 26 bold"), heigh=4, width=8, command=lambda: checker(button8)) button8.grid(row=3, column=1, sticky=S + N + E + W) button9 = Button(tk, text=" ", font=("Times 26 bold"), heigh=4, width=8, command=lambda: checker(button9)) button9.grid(row=3, column=2, sticky=S + N + E + W) tk.mainloop()
[ 1654, 59, 299, 7413, 45, 4708, 49, 1367, 366, 3021, 2377, 66, 459, 9695, 244, 55, 59, 13769, 2132, 957, 1821, 66, 57, 49, 1882, 66, 61, 49, 2035, 66, 6034, 63, 26626, 45, 1654, 59, 509, 222, 1654, 59, 51, 3393, 45, 661, 66, 55, 49, 2656, 66, 55, 49, 31828, 66, 88, 494, 508, 494, 535, 494, 643, 46, 222, 1654, 60, 299, 7413, 45, 4708, 49, 1367, 366, 3021, 2377, 66, 459, 9695, 244, 55, 59, 13769, 2132, 957, 1821, 66, 57, 49, 1882, 66, 61, 49, 2035, 66, 6034, 63, 26626, 45, 1654, 60, 509, 222, 1654, 60, 51, 3393, 45, 661, 66, 56, 49, 2656, 66, 53, 49, 31828, 66, 88, 494, 508, 494, 535, 494, 643, 46, 222, 1654, 61, 299, 7413, 45, 4708, 49, 1367, 366, 3021, 2377, 66, 459, 9695, 244, 55, 59, 13769, 2132, 957, 1821, 66, 57, 49, 1882, 66, 61, 49, 2035, 66, 6034, 63, 26626, 45, 1654, 61, 509, 222, 1654, 61, 51, 3393, 45, 661, 66, 56, 49, 2656, 66, 54, 49, 31828, 66, 88, 494, 508, 494, 535, 494, 643, 46, 222, 1654, 62, 299, 7413, 45, 4708, 49, 1367, 366, 3021, 2377, 66, 459, 9695, 244, 55, 59, 13769, 2132, 957, 1821, 66, 57, 49, 1882, 66, 61, 49, 2035, 66, 6034, 63, 26626, 45, 1654, 62, 509, 222, 1654, 62, 51, 3393, 45, 661, 66, 56, 49, 2656, 66, 55, 49, 31828, 66, 88, 494, 508, 494, 535, 494, 643, 46, 222, 4708, 51, 1850, 5856, 365, 222 ]
[ "button", "6", "Ġ=", "ĠButton", "(", "tk", ",", "Ġtext", "=\"", "Ġ\",", "Ġfont", "=", "(\"", "Times", "Ġ", "2", "6", "Ġbold", "\"),", "Ġhe", "igh", "=", "4", ",", "Ġwidth", "=", "8", ",", "Ġcommand", "=", "lambda", ":", "Ġchecker", "(", "button", "6", "))", "Ċ", "button", "6", ".", "grid", "(", "row", "=", "2", ",", "Ġcolumn", "=", "2", ",", "Ġsticky", "=", "S", "Ġ+", "ĠN", "Ġ+", "ĠE", "Ġ+", "ĠW", ")", "Ċ", "button", "7", "Ġ=", "ĠButton", "(", "tk", ",", "Ġtext", "=\"", "Ġ\",", "Ġfont", "=", "(\"", "Times", "Ġ", "2", "6", "Ġbold", "\"),", "Ġhe", "igh", "=", "4", ",", "Ġwidth", "=", "8", ",", "Ġcommand", "=", "lambda", ":", "Ġchecker", "(", "button", "7", "))", "Ċ", "button", "7", ".", "grid", "(", "row", "=", "3", ",", "Ġcolumn", "=", "0", ",", "Ġsticky", "=", "S", "Ġ+", "ĠN", "Ġ+", "ĠE", "Ġ+", "ĠW", ")", "Ċ", "button", "8", "Ġ=", "ĠButton", "(", "tk", ",", "Ġtext", "=\"", "Ġ\",", "Ġfont", "=", "(\"", "Times", "Ġ", "2", "6", "Ġbold", "\"),", "Ġhe", "igh", "=", "4", ",", "Ġwidth", "=", "8", ",", "Ġcommand", "=", "lambda", ":", "Ġchecker", "(", "button", "8", "))", "Ċ", "button", "8", ".", "grid", "(", "row", "=", "3", ",", "Ġcolumn", "=", "1", ",", "Ġsticky", "=", "S", "Ġ+", "ĠN", "Ġ+", "ĠE", "Ġ+", "ĠW", ")", "Ċ", "button", "9", "Ġ=", "ĠButton", "(", "tk", ",", "Ġtext", "=\"", "Ġ\",", "Ġfont", "=", "(\"", "Times", "Ġ", "2", "6", "Ġbold", "\"),", "Ġhe", "igh", "=", "4", ",", "Ġwidth", "=", "8", ",", "Ġcommand", "=", "lambda", ":", "Ġchecker", "(", "button", "9", "))", "Ċ", "button", "9", ".", "grid", "(", "row", "=", "3", ",", "Ġcolumn", "=", "2", ",", "Ġsticky", "=", "S", "Ġ+", "ĠN", "Ġ+", "ĠE", "Ġ+", "ĠW", ")", "Ċ", "tk", ".", "main", "loop", "()", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9 ]
[ 1, 7, 8, 10, 17, 18, 20, 21, 26, 28, 31, 36, 37, 39, 44, 45, 46, 47, 52, 55, 58, 61, 62, 63, 64, 70, 71, 72, 73, 81, 82, 88, 89, 97, 98, 104, 105, 107, 1, 7, 8, 9, 13, 14, 17, 18, 19, 20, 27, 28, 29, 30, 37, 38, 39, 41, 43, 45, 47, 49, 51, 52, 1, 7, 8, 10, 17, 18, 20, 21, 26, 28, 31, 36, 37, 39, 44, 45, 46, 47, 52, 55, 58, 61, 62, 63, 64, 70, 71, 72, 73, 81, 82, 88, 89, 97, 98, 104, 105, 107, 1, 7, 8, 9, 13, 14, 17, 18, 19, 20, 27, 28, 29, 30, 37, 38, 39, 41, 43, 45, 47, 49, 51, 52, 1, 7, 8, 10, 17, 18, 20, 21, 26, 28, 31, 36, 37, 39, 44, 45, 46, 47, 52, 55, 58, 61, 62, 63, 64, 70, 71, 72, 73, 81, 82, 88, 89, 97, 98, 104, 105, 107, 1, 7, 8, 9, 13, 14, 17, 18, 19, 20, 27, 28, 29, 30, 37, 38, 39, 41, 43, 45, 47, 49, 51, 52, 1, 7, 8, 10, 17, 18, 20, 21, 26, 28, 31, 36, 37, 39, 44, 45, 46, 47, 52, 55, 58, 61, 62, 63, 64, 70, 71, 72, 73, 81, 82, 88, 89, 97, 98, 104, 105, 107, 1, 7, 8, 9, 13, 14, 17, 18, 19, 20, 27, 28, 29, 30, 37, 38, 39, 41, 43, 45, 47, 49, 51, 52, 1, 3, 4, 8, 12, 14 ]
647dde6e3288ded29336062b78baacc3a92908a7
import re import random import requests from bs4 import BeautifulSoup import js2py from fake_useragent import UserAgent def _get_request_key(session): res = session.post("https://spys.one/en/socks-proxy-list/") soup = BeautifulSoup(res.text, "html.parser") return soup.find("input", {"name": "xx0"}).get("value") def _get_proxy_list(session, xx0): res = session.post( "https://spys.one/en/socks-proxy-list/", data=f"xx0={xx0}&xpp={0}&xf1={0}&xf2={0}&xf4={0}&xf5={2}", headers={ "Content-Type": "application/x-www-form-urlencoded", }, ) soup = BeautifulSoup(res.text, "html.parser") js = js2py.EvalJs({"document": {"write": lambda a: a}}) js.execute(soup.select_one("body > script").string) addrs = soup.select("tr[onmouseover] > td:first-child") ports = [js.eval(i.find("script").string) for i in addrs] addrs = [i.get_text() for i in addrs] ports = [re.sub(r"<[^<]*>", "", i) for i in ports] return list(map("".join, zip(addrs, ports))) class ProxyScrapper: def __init__(self): self._proxies = [] def refresh(self): session = requests.Session() session.headers["User-Agent"] = UserAgent().random print("Rotating proxy list") xx0 = _get_request_key(session) print(f"Got proxy request key xx0={xx0}") addrs = _get_proxy_list(session, xx0) self._proxies = [f"socks5://{i}" for i in addrs] print(f"Got {len(self._proxies)} proxies") def random(self): assert len(self._proxies) > 0 return random.choice(self._proxies)
[ 485, 334, 222, 485, 4051, 222, 485, 5188, 222, 1097, 14270, 57, 1220, 39693, 222, 485, 4071, 55, 997, 222, 1097, 11174, 100, 514, 4881, 1220, 2694, 6150, 499, 222, 610, 634, 390, 100, 1375, 100, 697, 45, 2867, 731, 303, 755, 299, 3541, 51, 1545, 459, 662, 574, 438, 1291, 51, 677, 52, 291, 52, 38095, 50, 5881, 50, 687, 29701, 303, 32000, 299, 39693, 45, 595, 51, 897, 49, 332, 935, 51, 3936, 678, 303, 461, 32000, 51, 1828, 459, 1151, 411, 3479, 444, 582, 332, 2388, 53, 3667, 566, 390, 459, 872, 678, 499, 222, 610, 634, 390, 100, 5881, 100, 687, 45, 2867, 49, 23701, 53, 731, 303, 755, 299, 3541, 51, 1545, 45, 310, 332, 662, 574, 438, 1291, 51, 677, 52, 291, 52, 38095, 50, 5881, 50, 687, 10974, 310, 727, 66, 107, 39, 2388, 53, 1305, 2388, 53, 16463, 125, 612, 1305, 53, 16463, 2088, 54, 1305, 53, 16463, 2088, 55, 1305, 53, 16463, 2088, 57, 1305, 53, 16463, 2088, 58, 1305, 55, 6557, 310, 4839, 1305, 343, 332, 1795, 50, 638, 582, 332, 3180, 52, 125, 50, 1516, 50, 618, 50, 27119, 411, 310, 820, 303, 848, 465, 32000, 299, 39693, 45, 595, 51, 897, 49, 332, 935, 51, 3936, 678, 303, 4071, 299, 4071, 55, 997, 51, 14162, 10552, 15540, 2826, 582, 3479, 1838, 582, 9332, 331, 63, 331, 24522, 303, 4071, 51, 4540, 45, 30567, 51, 1632, 100, 677, 459, 1561, 868, 3273, 1912, 819, 46, 465, 1035, 3685, 299, 32000, 51, 1632, 459, 378, 96, 286, 33771, 98, 868, 12073, 63, 2251, 50, 2680, 678, 303, 14842, 299, 447, 773, 51, 6635, 45, 110, 51, 1828, 459, 1442, 1912, 819, 46, 456, 613, 347, 1035, 3685, 98, 303, 1035, 3685, 299, 447, 110, 51, 390, 100, 897, 365, 456, 613, 347, 1035, 3685, 98, 303, 14842, 299, 447, 287, 51, 1133, 45, 119, 13948, 12477, 65, 6642, 9603, 4343, 613, 46, 456, 613, 347, 14842, 98, 465, 461, 1168, 45, 1130, 459, 2316, 2548, 49, 8617, 45, 36712, 49, 14842, 2636, 499, 222, 842, 15628, 2391, 2528, 63, 303, 684, 1176, 1683, 3232, 803, 731, 310, 649, 1132, 46389, 299, 1627, 465, 684, 9736, 45, 803, 731, 310, 3541, 299, 5188, 51, 3152, 365, 310, 3541, 51, 5090, 1388, 1259, 50, 6150, 1465, 299, 2694, 6150, 941, 3917, 310, 1489, 459, 6742, 1761, 7671, 1168, 678, 603, 23701, 53, 299, 634, 390, 100, 1375, 100, 697, 45, 2867, 46, 310, 1489, 45, 107, 39, 19165, 7671, 1343, 1221, 23701, 53, 1305, 2388, 53, 8531, 603, 1035, 3685, 299, 634, 390, 100, 5881, 100, 687, 45, 2867, 49, 23701, 53, 46, 310, 649, 1132, 46389, 299, 447, 107, 39, 38095, 58, 45442, 110, 3864, 456, 613, 347, 1035, 3685, 98, 310, 1489, 45, 107, 39, 19165, 320, 1688, 45, 803, 1132, 46389, 4416, 43970, 678, 465, 684, 4051, 45, 803, 731, 310, 1217, 2095, 45, 803, 1132, 46389, 46, 868, 244, 53, 310, 461, 4051, 51, 11512, 45, 803, 1132, 46389, 46, 222 ]
[ "import", "Ġre", "Ċ", "import", "Ġrandom", "Ċ", "import", "Ġrequests", "Ċ", "from", "Ġbs", "4", "Ġimport", "ĠBeautifulSoup", "Ċ", "import", "Ġjs", "2", "py", "Ċ", "from", "Ġfake", "_", "user", "agent", "Ġimport", "ĠUser", "Agent", "ĊĊ", "Ċ", "def", "Ġ_", "get", "_", "request", "_", "key", "(", "session", "):", "ĊĠĠĠ", "Ġres", "Ġ=", "Ġsession", ".", "post", "(\"", "https", "://", "sp", "ys", ".", "one", "/", "en", "/", "socks", "-", "proxy", "-", "list", "/\")", "ĊĠĠĠ", "Ġsoup", "Ġ=", "ĠBeautifulSoup", "(", "res", ".", "text", ",", "Ġ\"", "html", ".", "parser", "\")", "ĊĠĠĠ", "Ġreturn", "Ġsoup", ".", "find", "(\"", "input", "\",", "Ġ{\"", "name", "\":", "Ġ\"", "xx", "0", "\"}", ").", "get", "(\"", "value", "\")", "ĊĊ", "Ċ", "def", "Ġ_", "get", "_", "proxy", "_", "list", "(", "session", ",", "Ġxx", "0", "):", "ĊĠĠĠ", "Ġres", "Ġ=", "Ġsession", ".", "post", "(", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "https", "://", "sp", "ys", ".", "one", "/", "en", "/", "socks", "-", "proxy", "-", "list", "/\",", "ĊĠĠĠĠĠĠĠ", "Ġdata", "=", "f", "\"", "xx", "0", "={", "xx", "0", "}&", "x", "pp", "={", "0", "}&", "xf", "1", "={", "0", "}&", "xf", "2", "={", "0", "}&", "xf", "4", "={", "0", "}&", "xf", "5", "={", "2", "}\",", "ĊĠĠĠĠĠĠĠ", "Ġheaders", "={", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "Content", "-", "Type", "\":", "Ġ\"", "application", "/", "x", "-", "www", "-", "form", "-", "urlencoded", "\",", "ĊĠĠĠĠĠĠĠ", "Ġ},", "ĊĠĠĠ", "Ġ)", "ĊĊĠĠĠ", "Ġsoup", "Ġ=", "ĠBeautifulSoup", "(", "res", ".", "text", ",", "Ġ\"", "html", ".", "parser", "\")", "ĊĠĠĠ", "Ġjs", "Ġ=", "Ġjs", "2", "py", ".", "Eval", "Js", "({\"", "document", "\":", "Ġ{\"", "write", "\":", "Ġlambda", "Ġa", ":", "Ġa", "}})", "ĊĠĠĠ", "Ġjs", ".", "execute", "(", "soup", ".", "select", "_", "one", "(\"", "body", "Ġ>", "Ġscript", "\").", "string", ")", "ĊĊĠĠĠ", "Ġadd", "rs", "Ġ=", "Ġsoup", ".", "select", "(\"", "tr", "[", "on", "mouseover", "]", "Ġ>", "Ġtd", ":", "first", "-", "child", "\")", "ĊĠĠĠ", "Ġports", "Ġ=", "Ġ[", "js", ".", "eval", "(", "i", ".", "find", "(\"", "script", "\").", "string", ")", "Ġfor", "Ġi", "Ġin", "Ġadd", "rs", "]", "ĊĠĠĠ", "Ġadd", "rs", "Ġ=", "Ġ[", "i", ".", "get", "_", "text", "()", "Ġfor", "Ġi", "Ġin", "Ġadd", "rs", "]", "ĊĠĠĠ", "Ġports", "Ġ=", "Ġ[", "re", ".", "sub", "(", "r", "\"<", "[^", "<", "]*", ">\",", "Ġ\"\",", "Ġi", ")", "Ġfor", "Ġi", "Ġin", "Ġports", "]", "ĊĊĠĠĠ", "Ġreturn", "Ġlist", "(", "map", "(\"", "\".", "join", ",", "Ġzip", "(", "addrs", ",", "Ġports", ")))", "ĊĊ", "Ċ", "class", "ĠProxy", "Sc", "rapper", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "proxies", "Ġ=", "Ġ[]", "ĊĊĠĠĠ", "Ġdef", "Ġrefresh", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġsession", "Ġ=", "Ġrequests", ".", "Session", "()", "ĊĠĠĠĠĠĠĠ", "Ġsession", ".", "headers", "[\"", "User", "-", "Agent", "\"]", "Ġ=", "ĠUser", "Agent", "().", "random", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "Rot", "ating", "Ġproxy", "Ġlist", "\")", "ĊĊĠĠĠĠĠĠĠ", "Ġxx", "0", "Ġ=", "Ġ_", "get", "_", "request", "_", "key", "(", "session", ")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "f", "\"", "Got", "Ġproxy", "Ġrequest", "Ġkey", "Ġxx", "0", "={", "xx", "0", "}\")", "ĊĊĠĠĠĠĠĠĠ", "Ġadd", "rs", "Ġ=", "Ġ_", "get", "_", "proxy", "_", "list", "(", "session", ",", "Ġxx", "0", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "proxies", "Ġ=", "Ġ[", "f", "\"", "socks", "5", "://{", "i", "}\"", "Ġfor", "Ġi", "Ġin", "Ġadd", "rs", "]", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "f", "\"", "Got", "Ġ{", "len", "(", "self", "._", "proxies", ")}", "Ġproxies", "\")", "ĊĊĠĠĠ", "Ġdef", "Ġrandom", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġassert", "Ġlen", "(", "self", "._", "proxies", ")", "Ġ>", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġrandom", ".", "choice", "(", "self", "._", "proxies", ")", "Ċ" ]
[ 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 22, 22, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 35, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54 ]
[ 1, 7, 10, 1, 7, 14, 1, 7, 16, 1, 5, 8, 9, 16, 30, 1, 7, 10, 11, 13, 1, 5, 10, 11, 15, 20, 27, 32, 37, 1, 1, 4, 6, 9, 10, 17, 18, 21, 22, 29, 31, 4, 8, 10, 18, 19, 23, 25, 30, 33, 35, 37, 38, 41, 42, 44, 45, 50, 51, 56, 57, 61, 64, 4, 9, 11, 25, 26, 29, 30, 34, 35, 37, 41, 42, 48, 50, 4, 11, 16, 17, 21, 23, 28, 30, 33, 37, 39, 41, 43, 44, 46, 48, 51, 53, 58, 60, 1, 1, 4, 6, 9, 10, 15, 16, 20, 21, 28, 29, 32, 33, 35, 4, 8, 10, 18, 19, 23, 24, 8, 10, 15, 18, 20, 22, 23, 26, 27, 29, 30, 35, 36, 41, 42, 46, 49, 8, 13, 14, 15, 16, 18, 19, 21, 23, 24, 26, 27, 29, 31, 32, 34, 36, 37, 39, 40, 42, 44, 45, 47, 48, 50, 52, 53, 55, 56, 58, 60, 61, 63, 64, 67, 8, 16, 18, 12, 14, 21, 22, 26, 28, 30, 41, 42, 43, 44, 47, 48, 52, 53, 63, 65, 8, 11, 4, 6, 4, 9, 11, 25, 26, 29, 30, 34, 35, 37, 41, 42, 48, 50, 4, 7, 9, 12, 13, 15, 16, 20, 22, 25, 33, 35, 38, 43, 45, 52, 54, 55, 57, 60, 4, 7, 8, 15, 16, 20, 21, 27, 28, 31, 33, 37, 39, 46, 49, 55, 56, 4, 8, 10, 12, 17, 18, 24, 26, 28, 29, 31, 40, 41, 43, 46, 47, 52, 53, 58, 60, 4, 10, 12, 14, 16, 17, 21, 22, 23, 24, 28, 30, 36, 39, 45, 46, 50, 52, 55, 59, 61, 62, 4, 8, 10, 12, 14, 15, 16, 19, 20, 24, 26, 30, 32, 35, 39, 41, 42, 4, 10, 12, 14, 16, 17, 20, 21, 22, 24, 26, 27, 29, 32, 36, 38, 39, 43, 45, 48, 54, 55, 4, 11, 16, 17, 20, 22, 24, 28, 29, 33, 34, 39, 40, 46, 49, 1, 1, 6, 12, 14, 20, 21, 4, 8, 11, 15, 18, 22, 24, 8, 13, 15, 22, 24, 27, 4, 8, 16, 17, 21, 23, 8, 16, 18, 27, 28, 35, 37, 8, 16, 17, 24, 26, 30, 31, 36, 38, 40, 45, 50, 53, 59, 8, 14, 16, 19, 24, 30, 35, 37, 8, 11, 12, 14, 16, 19, 20, 27, 28, 31, 32, 39, 40, 8, 14, 15, 16, 17, 20, 26, 34, 38, 41, 42, 44, 46, 47, 50, 8, 12, 14, 16, 18, 21, 22, 27, 28, 32, 33, 40, 41, 44, 45, 46, 8, 13, 15, 22, 24, 26, 27, 28, 33, 34, 38, 39, 41, 45, 47, 50, 54, 56, 57, 8, 14, 15, 16, 17, 20, 22, 25, 26, 30, 32, 39, 41, 49, 51, 4, 8, 15, 16, 20, 22, 8, 15, 19, 20, 24, 26, 33, 34, 36, 37, 38, 8, 15, 22, 23, 29, 30, 34, 36, 43, 44 ]
aebc8665a97ab0a71b1d8a920b5cbf2643254883
from base_page import Base_Page import locators class Product_Object: "Page Object for the table" # locators def get_all_text(self): "Get the text within the table" table_text = [] row_doms = self.get_elements(self.rows_xpath) for index, row_dom in enumerate(row_doms): row_text = [] cell_doms = self.get_elements(self.cols_relative_xpath % (index + 1)) for cell_dom in cell_doms: row_text.append(self.get_dom_text(cell_dom)) table_text.append(row_text) return table_text def get_num_rows(self): "Get the total number of rows in the table" # NOTE: We do not count the header row row_doms = self.get_elements(self.rows_xpath) return len(row_doms) def get_num_cols(self): "Return the number of columns" # NOTE: We just count the columns in the header row col_doms = self.get_elements(self.cols_header) return len(col_doms) def get_column_text(self, column_name): "Get the text within a column" pass def get_column_names(self): "Return a list with the column names" column_names = [] col_doms = self.get_elements(self.cols_header) for col_dom in col_doms: column_names.append(self.get_dom_text(col_dom)) return column_names def check_cell_text_present(self, text, column_name="all"): "Check if the text you want is present in a cell" result_flag = False if column_name == "all": table_text = self.get_all_text() else: table_text = [self.get_column_text(column_name)] for row in table_text: for col in row: if col == text: result_flag = True break if result_flag is True: break return result_flag def check_name_present(self, name): "Check if the supplied name is present anywhere in the table" return self.check_cell_text_present(name, column_name="name") def print_table_text(self): "Print out the table text neatly" column_names = self.get_column_names() table_text = self.get_all_text() self.write("||".join(column_names)) for row in table_text: self.write("|".join(row))
[ 1097, 1712, 100, 1655, 1220, 3787, 100, 1983, 222, 485, 2600, 4079, 499, 222, 842, 7697, 100, 976, 63, 303, 332, 1983, 2210, 456, 341, 1877, 39, 465, 607, 2600, 4079, 465, 684, 640, 100, 483, 100, 897, 45, 803, 731, 310, 332, 953, 341, 1367, 4824, 341, 1877, 39, 310, 1877, 100, 897, 299, 1627, 310, 2720, 100, 4734, 120, 299, 649, 51, 390, 100, 7620, 45, 803, 51, 2158, 100, 16735, 46, 310, 456, 1671, 49, 2720, 100, 4734, 347, 10869, 45, 661, 100, 4734, 120, 731, 343, 2720, 100, 897, 299, 1627, 343, 4046, 100, 4734, 120, 299, 649, 51, 390, 100, 7620, 45, 803, 51, 8326, 100, 9540, 100, 16735, 925, 327, 1076, 494, 244, 54, 509, 343, 456, 4046, 100, 4734, 347, 4046, 100, 4734, 120, 63, 419, 2720, 100, 897, 51, 1713, 45, 803, 51, 390, 100, 4734, 100, 897, 45, 3400, 100, 4734, 509, 343, 1877, 100, 897, 51, 1713, 45, 661, 100, 897, 46, 603, 461, 1877, 100, 897, 465, 684, 640, 100, 1538, 100, 2158, 45, 803, 731, 310, 332, 953, 341, 3410, 1470, 451, 5793, 347, 341, 1877, 39, 310, 607, 12125, 63, 2726, 764, 666, 2409, 341, 3353, 2720, 310, 2720, 100, 4734, 120, 299, 649, 51, 390, 100, 7620, 45, 803, 51, 2158, 100, 16735, 46, 603, 461, 2095, 45, 661, 100, 4734, 120, 46, 465, 684, 640, 100, 1538, 100, 8326, 45, 803, 731, 310, 332, 2907, 341, 1470, 451, 6165, 39, 310, 607, 12125, 63, 2726, 2277, 2409, 341, 6165, 347, 341, 3353, 2720, 310, 956, 100, 4734, 120, 299, 649, 51, 390, 100, 7620, 45, 803, 51, 8326, 100, 2127, 46, 603, 461, 2095, 45, 770, 100, 4734, 120, 46, 465, 684, 640, 100, 2628, 100, 897, 45, 803, 49, 2656, 100, 444, 731, 310, 332, 953, 341, 1367, 4824, 331, 2656, 39, 310, 3119, 465, 684, 640, 100, 2628, 100, 4288, 45, 803, 731, 310, 332, 2907, 331, 1168, 642, 341, 2656, 4492, 39, 310, 2656, 100, 4288, 299, 1627, 310, 956, 100, 4734, 120, 299, 649, 51, 390, 100, 7620, 45, 803, 51, 8326, 100, 2127, 46, 310, 456, 956, 100, 4734, 347, 956, 100, 4734, 120, 63, 343, 2656, 100, 4288, 51, 1713, 45, 803, 51, 390, 100, 4734, 100, 897, 45, 770, 100, 4734, 509, 603, 461, 2656, 100, 4288, 465, 684, 1524, 100, 3400, 100, 897, 100, 2735, 45, 803, 49, 1367, 49, 2656, 100, 444, 366, 483, 10320, 310, 332, 2157, 434, 341, 1367, 863, 2660, 458, 5041, 347, 331, 4046, 39, 310, 1074, 100, 4570, 299, 3208, 310, 434, 2656, 100, 444, 630, 332, 483, 582, 343, 1877, 100, 897, 299, 649, 51, 390, 100, 483, 100, 897, 365, 310, 832, 63, 343, 1877, 100, 897, 299, 447, 803, 51, 390, 100, 2628, 100, 897, 45, 2628, 100, 444, 2201, 310, 456, 2720, 347, 1877, 100, 897, 63, 343, 456, 956, 347, 2720, 63, 419, 434, 956, 630, 1367, 63, 547, 1074, 100, 4570, 299, 2969, 547, 1644, 343, 434, 1074, 100, 4570, 458, 2969, 63, 419, 1644, 603, 461, 1074, 100, 4570, 465, 684, 1524, 100, 444, 100, 2735, 45, 803, 49, 655, 731, 310, 332, 2157, 434, 341, 13810, 655, 458, 5041, 24323, 347, 341, 1877, 39, 310, 461, 649, 51, 1571, 100, 3400, 100, 897, 100, 2735, 45, 444, 49, 2656, 100, 444, 366, 444, 678, 465, 684, 1489, 100, 1292, 100, 897, 45, 803, 731, 310, 332, 4026, 986, 341, 1877, 1367, 1188, 288, 651, 39, 310, 2656, 100, 4288, 299, 649, 51, 390, 100, 2628, 100, 4288, 365, 310, 1877, 100, 897, 299, 649, 51, 390, 100, 483, 100, 897, 365, 603, 649, 51, 1838, 459, 4711, 2316, 2548, 45, 2628, 100, 4288, 509, 310, 456, 2720, 347, 1877, 100, 897, 63, 343, 649, 51, 1838, 35592, 2316, 2548, 45, 661, 509, 222 ]
[ "from", "Ġbase", "_", "page", "Ġimport", "ĠBase", "_", "Page", "Ċ", "import", "Ġloc", "ators", "ĊĊ", "Ċ", "class", "ĠProduct", "_", "Object", ":", "ĊĠĠĠ", "Ġ\"", "Page", "ĠObject", "Ġfor", "Ġthe", "Ġtable", "\"", "ĊĊĠĠĠ", "Ġ#", "Ġloc", "ators", "ĊĊĠĠĠ", "Ġdef", "Ġget", "_", "all", "_", "text", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "Get", "Ġthe", "Ġtext", "Ġwithin", "Ġthe", "Ġtable", "\"", "ĊĠĠĠĠĠĠĠ", "Ġtable", "_", "text", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġrow", "_", "dom", "s", "Ġ=", "Ġself", ".", "get", "_", "elements", "(", "self", ".", "rows", "_", "xpath", ")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġindex", ",", "Ġrow", "_", "dom", "Ġin", "Ġenumerate", "(", "row", "_", "dom", "s", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġrow", "_", "text", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcell", "_", "dom", "s", "Ġ=", "Ġself", ".", "get", "_", "elements", "(", "self", ".", "cols", "_", "relative", "_", "xpath", "Ġ%", "Ġ(", "index", "Ġ+", "Ġ", "1", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġcell", "_", "dom", "Ġin", "Ġcell", "_", "dom", "s", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġrow", "_", "text", ".", "append", "(", "self", ".", "get", "_", "dom", "_", "text", "(", "cell", "_", "dom", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtable", "_", "text", ".", "append", "(", "row", "_", "text", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġtable", "_", "text", "ĊĊĠĠĠ", "Ġdef", "Ġget", "_", "num", "_", "rows", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "Get", "Ġthe", "Ġtotal", "Ġnumber", "Ġof", "Ġrows", "Ġin", "Ġthe", "Ġtable", "\"", "ĊĠĠĠĠĠĠĠ", "Ġ#", "ĠNOTE", ":", "ĠWe", "Ġdo", "Ġnot", "Ġcount", "Ġthe", "Ġheader", "Ġrow", "ĊĠĠĠĠĠĠĠ", "Ġrow", "_", "dom", "s", "Ġ=", "Ġself", ".", "get", "_", "elements", "(", "self", ".", "rows", "_", "xpath", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġlen", "(", "row", "_", "dom", "s", ")", "ĊĊĠĠĠ", "Ġdef", "Ġget", "_", "num", "_", "cols", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "Return", "Ġthe", "Ġnumber", "Ġof", "Ġcolumns", "\"", "ĊĠĠĠĠĠĠĠ", "Ġ#", "ĠNOTE", ":", "ĠWe", "Ġjust", "Ġcount", "Ġthe", "Ġcolumns", "Ġin", "Ġthe", "Ġheader", "Ġrow", "ĊĠĠĠĠĠĠĠ", "Ġcol", "_", "dom", "s", "Ġ=", "Ġself", ".", "get", "_", "elements", "(", "self", ".", "cols", "_", "header", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġlen", "(", "col", "_", "dom", "s", ")", "ĊĊĠĠĠ", "Ġdef", "Ġget", "_", "column", "_", "text", "(", "self", ",", "Ġcolumn", "_", "name", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "Get", "Ġthe", "Ġtext", "Ġwithin", "Ġa", "Ġcolumn", "\"", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġget", "_", "column", "_", "names", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "Return", "Ġa", "Ġlist", "Ġwith", "Ġthe", "Ġcolumn", "Ġnames", "\"", "ĊĠĠĠĠĠĠĠ", "Ġcolumn", "_", "names", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġcol", "_", "dom", "s", "Ġ=", "Ġself", ".", "get", "_", "elements", "(", "self", ".", "cols", "_", "header", ")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġcol", "_", "dom", "Ġin", "Ġcol", "_", "dom", "s", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcolumn", "_", "names", ".", "append", "(", "self", ".", "get", "_", "dom", "_", "text", "(", "col", "_", "dom", "))", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġcolumn", "_", "names", "ĊĊĠĠĠ", "Ġdef", "Ġcheck", "_", "cell", "_", "text", "_", "present", "(", "self", ",", "Ġtext", ",", "Ġcolumn", "_", "name", "=\"", "all", "\"):", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "Check", "Ġif", "Ġthe", "Ġtext", "Ġyou", "Ġwant", "Ġis", "Ġpresent", "Ġin", "Ġa", "Ġcell", "\"", "ĊĠĠĠĠĠĠĠ", "Ġresult", "_", "flag", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġcolumn", "_", "name", "Ġ==", "Ġ\"", "all", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtable", "_", "text", "Ġ=", "Ġself", ".", "get", "_", "all", "_", "text", "()", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtable", "_", "text", "Ġ=", "Ġ[", "self", ".", "get", "_", "column", "_", "text", "(", "column", "_", "name", ")]", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġrow", "Ġin", "Ġtable", "_", "text", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġcol", "Ġin", "Ġrow", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġcol", "Ġ==", "Ġtext", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresult", "_", "flag", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġbreak", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġresult", "_", "flag", "Ġis", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġbreak", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġresult", "_", "flag", "ĊĊĠĠĠ", "Ġdef", "Ġcheck", "_", "name", "_", "present", "(", "self", ",", "Ġname", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "Check", "Ġif", "Ġthe", "Ġsupplied", "Ġname", "Ġis", "Ġpresent", "Ġanywhere", "Ġin", "Ġthe", "Ġtable", "\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "check", "_", "cell", "_", "text", "_", "present", "(", "name", ",", "Ġcolumn", "_", "name", "=\"", "name", "\")", "ĊĊĠĠĠ", "Ġdef", "Ġprint", "_", "table", "_", "text", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "Print", "Ġout", "Ġthe", "Ġtable", "Ġtext", "Ġne", "at", "ly", "\"", "ĊĠĠĠĠĠĠĠ", "Ġcolumn", "_", "names", "Ġ=", "Ġself", ".", "get", "_", "column", "_", "names", "()", "ĊĠĠĠĠĠĠĠ", "Ġtable", "_", "text", "Ġ=", "Ġself", ".", "get", "_", "all", "_", "text", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġself", ".", "write", "(\"", "||", "\".", "join", "(", "column", "_", "names", "))", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġrow", "Ġin", "Ġtable", "_", "text", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "write", "(\"|", "\".", "join", "(", "row", "))", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 8, 8, 8, 8, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 21, 21, 21, 21, 21, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 35, 35, 35, 35, 35, 35, 35, 35, 35, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 48, 48, 48, 48, 48, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 65, 65, 65, 65, 65, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78 ]
[ 1, 5, 10, 11, 15, 22, 27, 28, 32, 1, 7, 11, 16, 1, 1, 6, 14, 15, 21, 22, 4, 6, 10, 17, 21, 25, 31, 32, 4, 6, 10, 15, 4, 8, 12, 13, 16, 17, 21, 22, 26, 28, 8, 10, 13, 17, 22, 29, 33, 39, 40, 8, 14, 15, 19, 21, 24, 8, 12, 13, 16, 17, 19, 24, 25, 28, 29, 37, 38, 42, 43, 47, 48, 53, 54, 8, 12, 18, 19, 23, 24, 27, 30, 40, 41, 44, 45, 48, 49, 51, 12, 16, 17, 21, 23, 26, 12, 17, 18, 21, 22, 24, 29, 30, 33, 34, 42, 43, 47, 48, 52, 53, 61, 62, 67, 69, 71, 76, 78, 79, 80, 82, 12, 16, 21, 22, 25, 28, 33, 34, 37, 38, 39, 16, 20, 21, 25, 26, 32, 33, 37, 38, 41, 42, 45, 46, 50, 51, 55, 56, 59, 61, 12, 18, 19, 23, 24, 30, 31, 34, 35, 39, 40, 8, 15, 21, 22, 26, 4, 8, 12, 13, 16, 17, 21, 22, 26, 28, 8, 10, 13, 17, 23, 30, 33, 38, 41, 45, 51, 52, 8, 10, 15, 16, 19, 22, 26, 32, 36, 43, 47, 8, 12, 13, 16, 17, 19, 24, 25, 28, 29, 37, 38, 42, 43, 47, 48, 53, 54, 8, 15, 19, 20, 23, 24, 27, 28, 29, 4, 8, 12, 13, 16, 17, 21, 22, 26, 28, 8, 10, 16, 20, 27, 30, 38, 39, 8, 10, 15, 16, 19, 24, 30, 34, 42, 45, 49, 56, 60, 8, 12, 13, 16, 17, 19, 24, 25, 28, 29, 37, 38, 42, 43, 47, 48, 54, 55, 8, 15, 19, 20, 23, 24, 27, 28, 29, 4, 8, 12, 13, 19, 20, 24, 25, 29, 30, 37, 38, 42, 44, 8, 10, 13, 17, 22, 29, 31, 38, 39, 8, 13, 4, 8, 12, 13, 19, 20, 25, 26, 30, 32, 8, 10, 16, 18, 23, 28, 32, 39, 45, 46, 8, 15, 16, 21, 23, 26, 8, 12, 13, 16, 17, 19, 24, 25, 28, 29, 37, 38, 42, 43, 47, 48, 54, 55, 8, 12, 16, 17, 20, 23, 27, 28, 31, 32, 33, 12, 19, 20, 25, 26, 32, 33, 37, 38, 41, 42, 45, 46, 50, 51, 54, 55, 58, 60, 8, 15, 22, 23, 28, 4, 8, 14, 15, 19, 20, 24, 25, 32, 33, 37, 38, 43, 44, 51, 52, 56, 58, 61, 64, 8, 10, 15, 18, 22, 27, 31, 36, 39, 47, 50, 52, 57, 58, 8, 15, 16, 20, 22, 28, 8, 11, 18, 19, 23, 26, 28, 31, 33, 12, 18, 19, 23, 25, 30, 31, 34, 35, 38, 39, 43, 45, 8, 13, 14, 12, 18, 19, 23, 25, 27, 31, 32, 35, 36, 42, 43, 47, 48, 54, 55, 59, 61, 8, 12, 16, 19, 25, 26, 30, 31, 12, 16, 20, 23, 27, 28, 16, 19, 23, 26, 31, 32, 20, 27, 28, 32, 34, 39, 20, 26, 12, 15, 22, 23, 27, 30, 35, 36, 16, 22, 8, 15, 22, 23, 27, 4, 8, 14, 15, 19, 20, 27, 28, 32, 33, 38, 40, 8, 10, 15, 18, 22, 31, 36, 39, 47, 56, 59, 63, 69, 70, 8, 15, 20, 21, 26, 27, 31, 32, 36, 37, 44, 45, 49, 50, 57, 58, 62, 64, 68, 70, 4, 8, 14, 15, 20, 21, 25, 26, 30, 32, 8, 10, 15, 19, 23, 29, 34, 37, 39, 41, 42, 8, 15, 16, 21, 23, 28, 29, 32, 33, 39, 40, 45, 47, 8, 14, 15, 19, 21, 26, 27, 30, 31, 34, 35, 39, 41, 8, 13, 14, 19, 21, 23, 25, 29, 30, 36, 37, 42, 44, 8, 12, 16, 19, 25, 26, 30, 31, 12, 17, 18, 23, 26, 28, 32, 33, 36, 38 ]
759ff4cc123e85bdc8c1457bb521cd35841956cd
import numpy as np import cv2 face_cascade = cv2.CascadeClassifier("haarcascade_frontalface_default.xml") eye_cascade = cv2.CascadeClassifier("haarcascade_eye.xml") img = cv2.imread("modi.jpg") gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faces = face_cascade.detectMultiScale(gray, 1.3, 5) # Write the for loop code here cv2.imshow("img", img) cv2.waitKey(0) cv2.destroyAllWindows()
[ 485, 6610, 641, 2115, 222, 485, 6781, 55, 222, 222, 1179, 100, 26650, 299, 6781, 55, 51, 31155, 16077, 459, 4958, 10272, 321, 9017, 100, 5608, 298, 1179, 100, 1555, 51, 2608, 678, 222, 14771, 100, 26650, 299, 6781, 55, 51, 31155, 16077, 459, 4958, 10272, 321, 9017, 100, 14771, 51, 2608, 678, 222, 222, 1296, 299, 6781, 55, 51, 41190, 459, 1820, 110, 51, 3090, 678, 222, 8440, 299, 6781, 55, 51, 34312, 1530, 45, 1296, 49, 6781, 55, 51, 6237, 100, 24567, 55, 32113, 46, 222, 222, 4928, 299, 8873, 100, 26650, 51, 14273, 6230, 5243, 45, 8440, 49, 244, 54, 51, 56, 49, 244, 58, 46, 222, 40, 5968, 341, 456, 5276, 1361, 2464, 222, 222, 4167, 55, 51, 24184, 459, 1296, 411, 4838, 46, 222, 4167, 55, 51, 1702, 971, 45, 53, 46, 222, 4167, 55, 51, 6978, 1947, 2856, 365, 222 ]
[ "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "import", "Ġcv", "2", "Ċ", "Ċ", "face", "_", "cascade", "Ġ=", "Ġcv", "2", ".", "Cascade", "Classifier", "(\"", "ha", "arc", "as", "cade", "_", "front", "al", "face", "_", "default", ".", "xml", "\")", "Ċ", "eye", "_", "cascade", "Ġ=", "Ġcv", "2", ".", "Cascade", "Classifier", "(\"", "ha", "arc", "as", "cade", "_", "eye", ".", "xml", "\")", "Ċ", "Ċ", "img", "Ġ=", "Ġcv", "2", ".", "imread", "(\"", "mod", "i", ".", "jpg", "\")", "Ċ", "gray", "Ġ=", "Ġcv", "2", ".", "cvt", "Color", "(", "img", ",", "Ġcv", "2", ".", "COLOR", "_", "BGR", "2", "GRAY", ")", "Ċ", "Ċ", "faces", "Ġ=", "Ġface", "_", "cascade", ".", "detect", "Multi", "Scale", "(", "gray", ",", "Ġ", "1", ".", "3", ",", "Ġ", "5", ")", "Ċ", "#", "ĠWrite", "Ġthe", "Ġfor", "Ġloop", "Ġcode", "Ġhere", "Ċ", "Ċ", "cv", "2", ".", "imshow", "(\"", "img", "\",", "Ġimg", ")", "Ċ", "cv", "2", ".", "wait", "Key", "(", "0", ")", "Ċ", "cv", "2", ".", "destroy", "All", "Windows", "()", "Ċ" ]
[ 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15 ]
[ 1, 7, 13, 16, 19, 1, 7, 10, 11, 1, 1, 5, 6, 13, 15, 18, 19, 20, 27, 37, 39, 41, 44, 46, 50, 51, 56, 58, 62, 63, 70, 71, 74, 76, 1, 4, 5, 12, 14, 17, 18, 19, 26, 36, 38, 40, 43, 45, 49, 50, 53, 54, 57, 59, 1, 1, 4, 6, 9, 10, 11, 17, 19, 22, 23, 24, 27, 29, 1, 5, 7, 10, 11, 12, 15, 20, 21, 24, 25, 28, 29, 30, 35, 36, 39, 40, 44, 45, 1, 1, 6, 8, 13, 14, 21, 22, 28, 33, 38, 39, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 1, 2, 8, 12, 16, 21, 26, 31, 1, 1, 3, 4, 5, 11, 13, 16, 18, 22, 23, 1, 3, 4, 5, 9, 12, 13, 14, 15, 1, 3, 4, 5, 12, 15, 22, 24 ]
1d524312cbd3b735850046131f31c03fdfa90bbc
my_dict = {"one": "1", "two": "2"} for key in my_dict: print("{} - {}".format(key, my_dict[key]))
[ 1791, 100, 2734, 299, 3479, 677, 582, 332, 54, 411, 332, 8295, 582, 332, 55, 3667, 222, 999, 1221, 347, 1690, 100, 2734, 63, 303, 1489, 35186, 449, 16669, 1664, 45, 697, 49, 1690, 100, 2734, 96, 697, 5310, 222 ]
[ "my", "_", "dict", "Ġ=", "Ġ{\"", "one", "\":", "Ġ\"", "1", "\",", "Ġ\"", "two", "\":", "Ġ\"", "2", "\"}", "Ċ", "for", "Ġkey", "Ġin", "Ġmy", "_", "dict", ":", "ĊĠĠĠ", "Ġprint", "(\"{}", "Ġ-", "Ġ{}\".", "format", "(", "key", ",", "Ġmy", "_", "dict", "[", "key", "]))", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 ]
[ 1, 3, 4, 8, 10, 13, 16, 18, 20, 21, 23, 25, 28, 30, 32, 33, 35, 1, 4, 8, 11, 14, 15, 19, 20, 4, 10, 14, 16, 21, 27, 28, 31, 32, 35, 36, 40, 41, 44, 47 ]
add56d52f3c88f814a166d12c3bc5a5906268864
from django.conf.urls import url from . import views urlpatterns = [ url(r"^class/([^/]+)/?$", views.puppet_class, name="puppet-class"), url(r"^edit-host/(?P<fqdn>[^/]+)?/?$", views.edit_host, name="edit-host"), url(r"^add-host/(?P<fqdn>[^/]+)?/?$", views.add_host, name="add-host"), url(r"^delete/([^/]+)/?$", views.delete_host, name="delete-host"), url(r"^user/(?P<loginid>[^/]+)/?$", views.edit_user, name="edit-user"), # url(r'^add-host', views.add_host, name='add-host'), url(r"^", views.index, name="index"), ]
[ 1097, 8532, 51, 2982, 51, 11420, 1220, 2001, 222, 222, 1097, 657, 1220, 11887, 222, 222, 983, 15735, 299, 447, 303, 2001, 45, 119, 39, 99, 842, 52, 24175, 52, 45727, 68, 30201, 11887, 51, 33491, 100, 842, 49, 655, 366, 33491, 50, 842, 2132, 303, 2001, 45, 119, 39, 99, 3189, 50, 2067, 52, 12421, 85, 65, 19311, 6156, 8838, 99, 52, 6176, 6506, 8181, 30201, 11887, 51, 3189, 100, 2067, 49, 655, 366, 3189, 50, 2067, 2132, 303, 2001, 45, 119, 39, 99, 688, 50, 2067, 52, 12421, 85, 65, 19311, 6156, 8838, 99, 52, 6176, 6506, 8181, 30201, 11887, 51, 688, 100, 2067, 49, 655, 366, 688, 50, 2067, 2132, 303, 2001, 45, 119, 39, 99, 2577, 52, 24175, 52, 45727, 68, 30201, 11887, 51, 2577, 100, 2067, 49, 655, 366, 2577, 50, 2067, 2132, 303, 2001, 45, 119, 39, 99, 514, 52, 12421, 85, 65, 3632, 333, 8838, 99, 52, 45727, 68, 30201, 11887, 51, 3189, 100, 514, 49, 655, 366, 3189, 50, 514, 2132, 303, 607, 2001, 45, 119, 28242, 688, 50, 2067, 389, 11887, 51, 688, 100, 2067, 49, 655, 1080, 688, 50, 2067, 1444, 303, 2001, 45, 119, 39, 99, 411, 11887, 51, 1076, 49, 655, 366, 1076, 2132, 222, 98, 222 ]
[ "from", "Ġdjango", ".", "conf", ".", "urls", "Ġimport", "Ġurl", "Ċ", "Ċ", "from", "Ġ.", "Ġimport", "Ġviews", "Ċ", "Ċ", "url", "patterns", "Ġ=", "Ġ[", "ĊĠĠĠ", "Ġurl", "(", "r", "\"", "^", "class", "/", "([^", "/", "]+)/", "?", "$\",", "Ġviews", ".", "puppet", "_", "class", ",", "Ġname", "=\"", "puppet", "-", "class", "\"),", "ĊĠĠĠ", "Ġurl", "(", "r", "\"", "^", "edit", "-", "host", "/", "(?", "P", "<", "fq", "dn", ">[", "^", "/", "]+", ")?", "/?", "$\",", "Ġviews", ".", "edit", "_", "host", ",", "Ġname", "=\"", "edit", "-", "host", "\"),", "ĊĠĠĠ", "Ġurl", "(", "r", "\"", "^", "add", "-", "host", "/", "(?", "P", "<", "fq", "dn", ">[", "^", "/", "]+", ")?", "/?", "$\",", "Ġviews", ".", "add", "_", "host", ",", "Ġname", "=\"", "add", "-", "host", "\"),", "ĊĠĠĠ", "Ġurl", "(", "r", "\"", "^", "delete", "/", "([^", "/", "]+)/", "?", "$\",", "Ġviews", ".", "delete", "_", "host", ",", "Ġname", "=\"", "delete", "-", "host", "\"),", "ĊĠĠĠ", "Ġurl", "(", "r", "\"", "^", "user", "/", "(?", "P", "<", "login", "id", ">[", "^", "/", "]+)/", "?", "$\",", "Ġviews", ".", "edit", "_", "user", ",", "Ġname", "=\"", "edit", "-", "user", "\"),", "ĊĠĠĠ", "Ġ#", "Ġurl", "(", "r", "'^", "add", "-", "host", "',", "Ġviews", ".", "add", "_", "host", ",", "Ġname", "='", "add", "-", "host", "'),", "ĊĠĠĠ", "Ġurl", "(", "r", "\"", "^", "\",", "Ġviews", ".", "index", ",", "Ġname", "=\"", "index", "\"),", "Ċ", "]", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13 ]
[ 1, 5, 12, 13, 17, 18, 22, 29, 33, 1, 1, 5, 7, 14, 20, 1, 1, 4, 12, 14, 16, 4, 8, 9, 10, 11, 12, 17, 18, 21, 22, 26, 27, 30, 36, 37, 43, 44, 49, 50, 55, 57, 63, 64, 69, 72, 4, 8, 9, 10, 11, 12, 16, 17, 21, 22, 24, 25, 26, 28, 30, 32, 33, 34, 36, 38, 40, 43, 49, 50, 54, 55, 59, 60, 65, 67, 71, 72, 76, 79, 4, 8, 9, 10, 11, 12, 15, 16, 20, 21, 23, 24, 25, 27, 29, 31, 32, 33, 35, 37, 39, 42, 48, 49, 52, 53, 57, 58, 63, 65, 68, 69, 73, 76, 4, 8, 9, 10, 11, 12, 18, 19, 22, 23, 27, 28, 31, 37, 38, 44, 45, 49, 50, 55, 57, 63, 64, 68, 71, 4, 8, 9, 10, 11, 12, 16, 17, 19, 20, 21, 26, 28, 30, 31, 32, 36, 37, 40, 46, 47, 51, 52, 56, 57, 62, 64, 68, 69, 73, 76, 4, 6, 10, 11, 12, 14, 17, 18, 22, 24, 30, 31, 34, 35, 39, 40, 45, 47, 50, 51, 55, 58, 4, 8, 9, 10, 11, 12, 14, 20, 21, 26, 27, 32, 34, 39, 42, 1, 2 ]
00e9872136e5753364117adbf60793e660c8bef0
from __future__ import annotations import pytest from pytest import param import ibis import ibis.expr.datatypes as dt from ibis.backends.base.sql.alchemy.geospatial import geospatial_supported DB_TYPES = [ # Exact numbers ("BIGINT", dt.int64), ("BIT", dt.boolean), ("DECIMAL", dt.Decimal(precision=18, scale=0)), ("DECIMAL(5, 2)", dt.Decimal(precision=5, scale=2)), ("INT", dt.int32), ("MONEY", dt.int64), ("NUMERIC", dt.Decimal(18, 0)), ("NUMERIC(10,5)", dt.Decimal(10, 5)), ("NUMERIC(14,3)", dt.Decimal(14, 3)), ("SMALLINT", dt.int16), ("SMALLMONEY", dt.int32), ("TINYINT", dt.int8), # Approximate numerics ("REAL", dt.float32), ("FLOAT", dt.float64), ("FLOAT(3)", dt.float32), ("FLOAT(25)", dt.float64), # Date and time ("DATE", dt.date), ("TIME", dt.time), ("DATETIME2", dt.timestamp(scale=7)), ("DATETIMEOFFSET", dt.timestamp(scale=7, timezone="UTC")), ("SMALLDATETIME", dt.timestamp), ("DATETIME", dt.timestamp), # Characters strings ("CHAR", dt.string), ("TEXT", dt.string), ("VARCHAR", dt.string), # Unicode character strings ("NCHAR", dt.string), ("NTEXT", dt.string), ("NVARCHAR", dt.string), # Binary strings ("BINARY", dt.binary), ("VARBINARY", dt.binary), ("IMAGE", dt.binary), # Other data types ("UNIQUEIDENTIFIER", dt.uuid), ("TIMESTAMP", dt.binary(nullable=False)), ] skipif_no_geospatial_deps = pytest.mark.skipif(not geospatial_supported, reason="geospatial dependencies not installed") broken_sqlalchemy_autoload = pytest.mark.xfail(reason="scale not inferred by sqlalchemy autoload") @pytest.mark.parametrize( ("server_type", "expected_type"), DB_TYPES + [ param("GEOMETRY", dt.geometry, marks=[skipif_no_geospatial_deps]), param("GEOGRAPHY", dt.geography, marks=[skipif_no_geospatial_deps]), ] + [ param("DATETIME2(4)", dt.timestamp(scale=4), marks=[broken_sqlalchemy_autoload]), param( "DATETIMEOFFSET(5)", dt.timestamp(scale=5, timezone="UTC"), marks=[broken_sqlalchemy_autoload], ), ], ids=str, ) def test_get_schema_from_query(con, server_type, expected_type, temp_table): expected_schema = ibis.schema(dict(x=expected_type)) with con.begin() as c: c.exec_driver_sql(f"CREATE TABLE [{temp_table}] (x {server_type})") expected_schema = ibis.schema(dict(x=expected_type)) result_schema = con._get_schema_using_query(f"SELECT * FROM [{temp_table}]") assert result_schema == expected_schema t = con.table(temp_table) assert t.schema() == expected_schema
[ 1097, 1176, 9689, 523, 1220, 14711, 222, 222, 485, 13090, 222, 1097, 13090, 1220, 4380, 222, 222, 485, 24168, 316, 222, 485, 24168, 316, 51, 3396, 51, 18176, 1707, 641, 8837, 222, 1097, 24168, 316, 51, 11522, 51, 1460, 51, 2622, 51, 20683, 51, 8544, 20905, 1220, 12315, 20905, 100, 7101, 222, 222, 2015, 100, 15670, 299, 447, 303, 607, 37628, 7560, 303, 2903, 19943, 1860, 411, 8837, 51, 429, 59, 57, 490, 303, 2903, 5676, 411, 8837, 51, 4412, 490, 303, 2903, 37571, 411, 8837, 51, 7701, 45, 15409, 66, 54, 61, 49, 5271, 66, 53, 3684, 303, 2903, 37571, 45, 58, 49, 244, 55, 5742, 8837, 51, 7701, 45, 15409, 66, 58, 49, 5271, 66, 55, 3684, 303, 2903, 1860, 411, 8837, 51, 429, 56, 55, 490, 303, 2903, 82, 4451, 94, 411, 8837, 51, 429, 59, 57, 490, 303, 2903, 41538, 411, 8837, 51, 7701, 45, 54, 61, 49, 244, 53, 3684, 303, 2903, 41538, 45, 54, 53, 49, 58, 5742, 8837, 51, 7701, 45, 54, 53, 49, 244, 58, 3684, 303, 2903, 41538, 45, 54, 57, 49, 56, 5742, 8837, 51, 7701, 45, 54, 57, 49, 244, 56, 3684, 303, 2903, 47818, 411, 8837, 51, 429, 54, 59, 490, 303, 2903, 18811, 82, 4451, 94, 411, 8837, 51, 429, 56, 55, 490, 303, 2903, 30174, 94, 1860, 411, 8837, 51, 429, 61, 490, 303, 607, 18484, 125, 5724, 37598, 1339, 303, 2903, 18672, 411, 8837, 51, 1832, 56, 55, 490, 303, 2903, 10303, 411, 8837, 51, 1832, 59, 57, 490, 303, 2903, 10303, 45, 56, 5742, 8837, 51, 1832, 56, 55, 490, 303, 2903, 10303, 45, 55, 58, 5742, 8837, 51, 1832, 59, 57, 490, 303, 607, 2833, 480, 1153, 303, 2903, 5252, 411, 8837, 51, 787, 490, 303, 2903, 4812, 411, 8837, 51, 1021, 490, 303, 2903, 31093, 55, 411, 8837, 51, 5627, 45, 3826, 66, 60, 3684, 303, 2903, 31093, 10153, 411, 8837, 51, 5627, 45, 3826, 66, 60, 49, 22145, 366, 15680, 12967, 303, 2903, 18811, 31093, 411, 8837, 51, 5627, 490, 303, 2903, 31093, 411, 8837, 51, 5627, 490, 303, 607, 7698, 5862, 5872, 303, 2903, 4935, 411, 8837, 51, 819, 490, 303, 2903, 6025, 411, 8837, 51, 819, 490, 303, 2903, 28232, 411, 8837, 51, 819, 490, 303, 607, 23175, 5373, 5872, 303, 2903, 83, 4935, 411, 8837, 51, 819, 490, 303, 2903, 4750, 2411, 411, 8837, 51, 819, 490, 303, 2903, 83, 28232, 411, 8837, 51, 819, 490, 303, 607, 13318, 5872, 303, 2903, 17892, 411, 8837, 51, 7038, 490, 303, 2903, 7421, 17892, 411, 8837, 51, 7038, 490, 303, 2903, 10407, 411, 8837, 51, 7038, 490, 303, 607, 7868, 727, 3756, 303, 2903, 34582, 26591, 411, 8837, 51, 6615, 490, 303, 2903, 14875, 411, 8837, 51, 7038, 45, 10051, 66, 2737, 3684, 222, 98, 499, 222, 5969, 344, 100, 1365, 100, 8544, 20905, 100, 11177, 299, 13090, 51, 1846, 51, 5969, 344, 45, 1226, 12315, 20905, 100, 7101, 49, 5982, 366, 8544, 20905, 6450, 666, 6733, 678, 222, 222, 23825, 100, 41228, 100, 29850, 299, 13090, 51, 1846, 51, 2088, 626, 45, 10359, 366, 3826, 666, 43358, 829, 30936, 2283, 963, 678, 499, 222, 69, 12418, 51, 1846, 51, 28880, 45, 303, 2903, 1805, 100, 700, 411, 332, 3156, 100, 700, 2132, 303, 4594, 100, 15670, 303, 494, 447, 310, 4380, 459, 44700, 411, 8837, 51, 10132, 49, 26760, 6094, 5969, 344, 100, 1365, 100, 8544, 20905, 100, 11177, 5759, 310, 4380, 459, 28808, 4290, 1910, 11546, 411, 8837, 51, 8544, 7952, 49, 26760, 6094, 5969, 344, 100, 1365, 100, 8544, 20905, 100, 11177, 5759, 303, 1499, 303, 494, 447, 310, 4380, 459, 31093, 55, 45, 57, 5742, 8837, 51, 5627, 45, 3826, 66, 57, 490, 26760, 6094, 23825, 100, 41228, 100, 29850, 5759, 310, 4380, 45, 343, 332, 31093, 10153, 45, 58, 5742, 343, 8837, 51, 5627, 45, 3826, 66, 58, 49, 22145, 366, 15680, 2132, 343, 26760, 6094, 23825, 100, 41228, 100, 29850, 636, 310, 2604, 303, 2520, 303, 9673, 66, 484, 49, 222, 46, 222, 610, 913, 100, 390, 100, 3982, 100, 1097, 100, 1234, 45, 487, 49, 2160, 100, 700, 49, 2816, 100, 700, 49, 1798, 100, 1292, 731, 303, 2816, 100, 3982, 299, 24168, 316, 51, 3982, 45, 2734, 45, 125, 66, 3156, 100, 700, 509, 303, 642, 476, 51, 2425, 365, 641, 300, 63, 310, 300, 51, 2510, 100, 5381, 100, 2622, 45, 107, 39, 6046, 4934, 7350, 1452, 100, 1292, 10608, 327, 125, 320, 1805, 100, 700, 1770, 678, 303, 2816, 100, 3982, 299, 24168, 316, 51, 3982, 45, 2734, 45, 125, 66, 3156, 100, 700, 509, 303, 1074, 100, 3982, 299, 476, 1132, 390, 100, 3982, 100, 927, 100, 1234, 45, 107, 39, 4635, 338, 3767, 7350, 1452, 100, 1292, 10608, 678, 303, 1217, 1074, 100, 3982, 630, 2816, 100, 3982, 303, 292, 299, 476, 51, 1292, 45, 1452, 100, 1292, 46, 303, 1217, 292, 51, 3982, 365, 630, 2816, 100, 3982, 222 ]
[ "from", "Ġ__", "future", "__", "Ġimport", "Ġannotations", "Ċ", "Ċ", "import", "Ġpytest", "Ċ", "from", "Ġpytest", "Ġimport", "Ġparam", "Ċ", "Ċ", "import", "Ġib", "is", "Ċ", "import", "Ġib", "is", ".", "expr", ".", "datat", "ypes", "Ġas", "Ġdt", "Ċ", "from", "Ġib", "is", ".", "backends", ".", "base", ".", "sql", ".", "alchemy", ".", "geo", "spatial", "Ġimport", "Ġgeo", "spatial", "_", "supported", "Ċ", "Ċ", "DB", "_", "TYPES", "Ġ=", "Ġ[", "ĊĠĠĠ", "Ġ#", "ĠExact", "Ġnumbers", "ĊĠĠĠ", "Ġ(\"", "BIG", "INT", "\",", "Ġdt", ".", "int", "6", "4", "),", "ĊĠĠĠ", "Ġ(\"", "BIT", "\",", "Ġdt", ".", "boolean", "),", "ĊĠĠĠ", "Ġ(\"", "DECIMAL", "\",", "Ġdt", ".", "Decimal", "(", "precision", "=", "1", "8", ",", "Ġscale", "=", "0", ")),", "ĊĠĠĠ", "Ġ(\"", "DECIMAL", "(", "5", ",", "Ġ", "2", ")\",", "Ġdt", ".", "Decimal", "(", "precision", "=", "5", ",", "Ġscale", "=", "2", ")),", "ĊĠĠĠ", "Ġ(\"", "INT", "\",", "Ġdt", ".", "int", "3", "2", "),", "ĊĠĠĠ", "Ġ(\"", "M", "ONE", "Y", "\",", "Ġdt", ".", "int", "6", "4", "),", "ĊĠĠĠ", "Ġ(\"", "NUMERIC", "\",", "Ġdt", ".", "Decimal", "(", "1", "8", ",", "Ġ", "0", ")),", "ĊĠĠĠ", "Ġ(\"", "NUMERIC", "(", "1", "0", ",", "5", ")\",", "Ġdt", ".", "Decimal", "(", "1", "0", ",", "Ġ", "5", ")),", "ĊĠĠĠ", "Ġ(\"", "NUMERIC", "(", "1", "4", ",", "3", ")\",", "Ġdt", ".", "Decimal", "(", "1", "4", ",", "Ġ", "3", ")),", "ĊĠĠĠ", "Ġ(\"", "SMALLINT", "\",", "Ġdt", ".", "int", "1", "6", "),", "ĊĠĠĠ", "Ġ(\"", "SMALL", "M", "ONE", "Y", "\",", "Ġdt", ".", "int", "3", "2", "),", "ĊĠĠĠ", "Ġ(\"", "TIN", "Y", "INT", "\",", "Ġdt", ".", "int", "8", "),", "ĊĠĠĠ", "Ġ#", "ĠAppro", "x", "imate", "Ġnumer", "ics", "ĊĠĠĠ", "Ġ(\"", "REAL", "\",", "Ġdt", ".", "float", "3", "2", "),", "ĊĠĠĠ", "Ġ(\"", "FLOAT", "\",", "Ġdt", ".", "float", "6", "4", "),", "ĊĠĠĠ", "Ġ(\"", "FLOAT", "(", "3", ")\",", "Ġdt", ".", "float", "3", "2", "),", "ĊĠĠĠ", "Ġ(\"", "FLOAT", "(", "2", "5", ")\",", "Ġdt", ".", "float", "6", "4", "),", "ĊĠĠĠ", "Ġ#", "ĠDate", "Ġand", "Ġtime", "ĊĠĠĠ", "Ġ(\"", "DATE", "\",", "Ġdt", ".", "date", "),", "ĊĠĠĠ", "Ġ(\"", "TIME", "\",", "Ġdt", ".", "time", "),", "ĊĠĠĠ", "Ġ(\"", "DATETIME", "2", "\",", "Ġdt", ".", "timestamp", "(", "scale", "=", "7", ")),", "ĊĠĠĠ", "Ġ(\"", "DATETIME", "OFFSET", "\",", "Ġdt", ".", "timestamp", "(", "scale", "=", "7", ",", "Ġtimezone", "=\"", "UTC", "\")),", "ĊĠĠĠ", "Ġ(\"", "SMALL", "DATETIME", "\",", "Ġdt", ".", "timestamp", "),", "ĊĠĠĠ", "Ġ(\"", "DATETIME", "\",", "Ġdt", ".", "timestamp", "),", "ĊĠĠĠ", "Ġ#", "ĠChar", "acters", "Ġstrings", "ĊĠĠĠ", "Ġ(\"", "CHAR", "\",", "Ġdt", ".", "string", "),", "ĊĠĠĠ", "Ġ(\"", "TEXT", "\",", "Ġdt", ".", "string", "),", "ĊĠĠĠ", "Ġ(\"", "VARCHAR", "\",", "Ġdt", ".", "string", "),", "ĊĠĠĠ", "Ġ#", "ĠUnicode", "Ġcharacter", "Ġstrings", "ĊĠĠĠ", "Ġ(\"", "N", "CHAR", "\",", "Ġdt", ".", "string", "),", "ĊĠĠĠ", "Ġ(\"", "NT", "EXT", "\",", "Ġdt", ".", "string", "),", "ĊĠĠĠ", "Ġ(\"", "N", "VARCHAR", "\",", "Ġdt", ".", "string", "),", "ĊĠĠĠ", "Ġ#", "ĠBinary", "Ġstrings", "ĊĠĠĠ", "Ġ(\"", "BINARY", "\",", "Ġdt", ".", "binary", "),", "ĊĠĠĠ", "Ġ(\"", "VAR", "BINARY", "\",", "Ġdt", ".", "binary", "),", "ĊĠĠĠ", "Ġ(\"", "IMAGE", "\",", "Ġdt", ".", "binary", "),", "ĊĠĠĠ", "Ġ#", "ĠOther", "Ġdata", "Ġtypes", "ĊĠĠĠ", "Ġ(\"", "UNIQUE", "IDENTIFIER", "\",", "Ġdt", ".", "uuid", "),", "ĊĠĠĠ", "Ġ(\"", "TIMESTAMP", "\",", "Ġdt", ".", "binary", "(", "nullable", "=", "False", ")),", "Ċ", "]", "ĊĊ", "Ċ", "skip", "if", "_", "no", "_", "geo", "spatial", "_", "deps", "Ġ=", "Ġpytest", ".", "mark", ".", "skip", "if", "(", "not", "Ġgeo", "spatial", "_", "supported", ",", "Ġreason", "=\"", "geo", "spatial", "Ġdependencies", "Ġnot", "Ġinstalled", "\")", "Ċ", "Ċ", "broken", "_", "sqlalchemy", "_", "autoload", "Ġ=", "Ġpytest", ".", "mark", ".", "xf", "ail", "(", "reason", "=\"", "scale", "Ġnot", "Ġinferred", "Ġby", "Ġsqlalchemy", "Ġauto", "load", "\")", "ĊĊ", "Ċ", "@", "pytest", ".", "mark", ".", "parametrize", "(", "ĊĠĠĠ", "Ġ(\"", "server", "_", "type", "\",", "Ġ\"", "expected", "_", "type", "\"),", "ĊĠĠĠ", "ĠDB", "_", "TYPES", "ĊĠĠĠ", "Ġ+", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġparam", "(\"", "GEOMETRY", "\",", "Ġdt", ".", "geometry", ",", "Ġmarks", "=[", "skip", "if", "_", "no", "_", "geo", "spatial", "_", "deps", "]),", "ĊĠĠĠĠĠĠĠ", "Ġparam", "(\"", "GEO", "GR", "AP", "HY", "\",", "Ġdt", ".", "geo", "graphy", ",", "Ġmarks", "=[", "skip", "if", "_", "no", "_", "geo", "spatial", "_", "deps", "]),", "ĊĠĠĠ", "Ġ]", "ĊĠĠĠ", "Ġ+", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġparam", "(\"", "DATETIME", "2", "(", "4", ")\",", "Ġdt", ".", "timestamp", "(", "scale", "=", "4", "),", "Ġmarks", "=[", "broken", "_", "sqlalchemy", "_", "autoload", "]),", "ĊĠĠĠĠĠĠĠ", "Ġparam", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "DATETIME", "OFFSET", "(", "5", ")\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdt", ".", "timestamp", "(", "scale", "=", "5", ",", "Ġtimezone", "=\"", "UTC", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġmarks", "=[", "broken", "_", "sqlalchemy", "_", "autoload", "],", "ĊĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠ", "Ġ],", "ĊĠĠĠ", "Ġids", "=", "str", ",", "Ċ", ")", "Ċ", "def", "Ġtest", "_", "get", "_", "schema", "_", "from", "_", "query", "(", "con", ",", "Ġserver", "_", "type", ",", "Ġexpected", "_", "type", ",", "Ġtemp", "_", "table", "):", "ĊĠĠĠ", "Ġexpected", "_", "schema", "Ġ=", "Ġib", "is", ".", "schema", "(", "dict", "(", "x", "=", "expected", "_", "type", "))", "ĊĠĠĠ", "Ġwith", "Ġcon", ".", "begin", "()", "Ġas", "Ġc", ":", "ĊĠĠĠĠĠĠĠ", "Ġc", ".", "exec", "_", "driver", "_", "sql", "(", "f", "\"", "CREATE", "ĠTABLE", "Ġ[{", "temp", "_", "table", "}]", "Ġ(", "x", "Ġ{", "server", "_", "type", "})", "\")", "ĊĠĠĠ", "Ġexpected", "_", "schema", "Ġ=", "Ġib", "is", ".", "schema", "(", "dict", "(", "x", "=", "expected", "_", "type", "))", "ĊĠĠĠ", "Ġresult", "_", "schema", "Ġ=", "Ġcon", "._", "get", "_", "schema", "_", "using", "_", "query", "(", "f", "\"", "SELECT", "Ġ*", "ĠFROM", "Ġ[{", "temp", "_", "table", "}]", "\")", "ĊĠĠĠ", "Ġassert", "Ġresult", "_", "schema", "Ġ==", "Ġexpected", "_", "schema", "ĊĠĠĠ", "Ġt", "Ġ=", "Ġcon", ".", "table", "(", "temp", "_", "table", ")", "ĊĠĠĠ", "Ġassert", "Ġt", ".", "schema", "()", "Ġ==", "Ġexpected", "_", "schema", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 58, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 65, 65, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 73, 73, 74, 74, 74, 74, 74, 75, 75, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84 ]
[ 1, 5, 8, 14, 16, 23, 35, 1, 1, 7, 14, 1, 5, 12, 19, 25, 1, 1, 7, 10, 12, 1, 7, 10, 12, 13, 17, 18, 23, 27, 30, 33, 1, 5, 8, 10, 11, 19, 20, 24, 25, 28, 29, 36, 37, 40, 47, 54, 58, 65, 66, 75, 1, 1, 3, 4, 9, 11, 13, 4, 6, 12, 20, 4, 7, 10, 13, 15, 18, 19, 22, 23, 24, 26, 4, 7, 10, 12, 15, 16, 23, 25, 4, 7, 14, 16, 19, 20, 27, 28, 37, 38, 39, 40, 41, 47, 48, 49, 52, 4, 7, 14, 15, 16, 17, 18, 19, 22, 25, 26, 33, 34, 43, 44, 45, 46, 52, 53, 54, 57, 4, 7, 10, 12, 15, 16, 19, 20, 21, 23, 4, 7, 8, 11, 12, 14, 17, 18, 21, 22, 23, 25, 4, 7, 14, 16, 19, 20, 27, 28, 29, 30, 31, 32, 33, 36, 4, 7, 14, 15, 16, 17, 18, 19, 22, 25, 26, 33, 34, 35, 36, 37, 38, 39, 42, 4, 7, 14, 15, 16, 17, 18, 19, 22, 25, 26, 33, 34, 35, 36, 37, 38, 39, 42, 4, 7, 15, 17, 20, 21, 24, 25, 26, 28, 4, 7, 12, 13, 16, 17, 19, 22, 23, 26, 27, 28, 30, 4, 7, 10, 11, 14, 16, 19, 20, 23, 24, 26, 4, 6, 12, 13, 18, 24, 27, 4, 7, 11, 13, 16, 17, 22, 23, 24, 26, 4, 7, 12, 14, 17, 18, 23, 24, 25, 27, 4, 7, 12, 13, 14, 17, 20, 21, 26, 27, 28, 30, 4, 7, 12, 13, 14, 15, 18, 21, 22, 27, 28, 29, 31, 4, 6, 11, 15, 20, 4, 7, 11, 13, 16, 17, 21, 23, 4, 7, 11, 13, 16, 17, 21, 23, 4, 7, 15, 16, 18, 21, 22, 31, 32, 37, 38, 39, 42, 4, 7, 15, 21, 23, 26, 27, 36, 37, 42, 43, 44, 45, 54, 56, 59, 63, 4, 7, 12, 20, 22, 25, 26, 35, 37, 4, 7, 15, 17, 20, 21, 30, 32, 4, 6, 11, 17, 25, 4, 7, 11, 13, 16, 17, 23, 25, 4, 7, 11, 13, 16, 17, 23, 25, 4, 7, 14, 16, 19, 20, 26, 28, 4, 6, 14, 24, 32, 4, 7, 8, 12, 14, 17, 18, 24, 26, 4, 7, 9, 12, 14, 17, 18, 24, 26, 4, 7, 8, 15, 17, 20, 21, 27, 29, 4, 6, 13, 21, 4, 7, 13, 15, 18, 19, 25, 27, 4, 7, 10, 16, 18, 21, 22, 28, 30, 4, 7, 12, 14, 17, 18, 24, 26, 4, 6, 12, 17, 23, 4, 7, 13, 23, 25, 28, 29, 33, 35, 4, 7, 16, 18, 21, 22, 28, 29, 37, 38, 43, 46, 1, 2, 1, 1, 5, 7, 8, 10, 11, 14, 21, 22, 26, 28, 35, 36, 40, 41, 45, 47, 48, 51, 55, 62, 63, 72, 73, 80, 82, 85, 92, 105, 109, 119, 121, 1, 1, 7, 8, 18, 19, 27, 29, 36, 37, 41, 42, 44, 47, 48, 54, 56, 61, 65, 74, 77, 88, 93, 97, 99, 1, 1, 2, 8, 9, 13, 14, 25, 26, 4, 7, 13, 14, 18, 20, 22, 30, 31, 35, 38, 4, 7, 8, 13, 4, 6, 8, 8, 14, 16, 24, 26, 29, 30, 38, 39, 45, 47, 51, 53, 54, 56, 57, 60, 67, 68, 72, 75, 8, 14, 16, 19, 21, 23, 25, 27, 30, 31, 34, 40, 41, 47, 49, 53, 55, 56, 58, 59, 62, 69, 70, 74, 77, 4, 6, 4, 6, 8, 8, 14, 16, 24, 25, 26, 27, 30, 33, 34, 43, 44, 49, 50, 51, 53, 59, 61, 67, 68, 78, 79, 87, 90, 8, 14, 15, 12, 14, 22, 28, 29, 30, 33, 12, 15, 16, 25, 26, 31, 32, 33, 34, 43, 45, 48, 51, 12, 18, 20, 26, 27, 37, 38, 46, 48, 8, 11, 4, 7, 4, 8, 9, 12, 13, 1, 2, 1, 4, 9, 10, 13, 14, 20, 21, 25, 26, 31, 32, 35, 36, 43, 44, 48, 49, 58, 59, 63, 64, 69, 70, 75, 77, 4, 13, 14, 20, 22, 25, 27, 28, 34, 35, 39, 40, 41, 42, 50, 51, 55, 57, 4, 9, 13, 14, 19, 21, 24, 26, 27, 8, 10, 11, 15, 16, 22, 23, 26, 27, 28, 29, 35, 41, 44, 48, 49, 54, 56, 58, 59, 61, 67, 68, 72, 74, 76, 4, 13, 14, 20, 22, 25, 27, 28, 34, 35, 39, 40, 41, 42, 50, 51, 55, 57, 4, 11, 12, 18, 20, 24, 26, 29, 30, 36, 37, 42, 43, 48, 49, 50, 51, 57, 59, 64, 67, 71, 72, 77, 79, 81, 4, 11, 18, 19, 25, 28, 37, 38, 44, 4, 6, 8, 12, 13, 18, 19, 23, 24, 29, 30, 4, 11, 13, 14, 20, 22, 25, 34, 35, 41 ]
25aa0766505b22588107d44e15c3596e9383d4e9
import datetime from ..core.indicator import Indicator, IndicatorState from ..core.toolwindow import ToolWindow class HaakePhoenix(ToolWindow): required_devices = ["haakephoenix"] def __init__(self, *args, **wargs): self.indicators = {} super().__init__(*args, **wargs) def init_gui(self, *args, **kwargs): statusgrid = self.builder.get_object("statusgrid") for row, column, vn, label in [ (0, 0, "_status", "Status"), (0, 1, "setpoint", "Target temperature"), (0, 2, "temperature", "Temperature"), (0, 3, "pump_power", "Pump speed"), (0, 4, "control_on", "Temperature control"), (1, 0, "lowlimit", "Low limit"), (1, 1, "highlimit", "High limit"), (1, 2, "cooling_on", "Cooling"), (1, 3, "control_external", "Control"), (1, 4, "diffcontrol_on", "Differential control"), ]: self.indicators[vn] = Indicator(label, "--", IndicatorState.UNKNOWN) statusgrid.attach(self.indicators[vn], column, row, 1, 1) errorgrid = self.builder.get_object("errorgrid") for row, column, vn, label in [ (0, 0, "external_pt100_error", "External Pt100"), # (0, 1, "internal_pt100_error", "Internal Pt100"), # (0, 2, "liquid_level_low_error", "Liquid level"), # (0, 3, "liquid_level_alarm_error", "Liquid level alarm"), # (0, 4, "cooling_error", "Cooling system"), # (1, 0, "pump_overload_error", "Pump"), # (1, 1, "external_alarm_error", "External alarm"), # (1, 2, "overtemperature_error", "Overtemperature"), # (1, 3, "main_relay_missing_error", "Main relay"), # (1, 4, "faultstatus", "Status flags"), ]: # self.indicators[vn] = Indicator(label, "--", IndicatorState.UNKNOWN) errorgrid.attach(self.indicators[vn], column, row, 1, 1) othergrid = self.builder.get_object("othergrid") for row, column, vn, label in [ (0, 0, "firmwareversion", "Firmware version"), # (0, 1, "date", "Date"), # (0, 2, "time", "Time"), # (0, 3, "autostart", "Autostart"), # (0, 4, "beep", "Beep"), # (1, 0, "fuzzyid", "Fuzzy identification"), # (1, 1, "fuzzycontrol", "Fuzzy control"), # (1, 2, "fuzzystatus", "Fuzzy status"), # (1, 3, "watchdog_on", "Watchdog"), # (1, 4, "watchdog_setpoint", "Watchdog setpoint"), ]: # self.indicators[vn] = Indicator(label, "--", IndicatorState.UNKNOWN) othergrid.attach(self.indicators[vn], column, row, 1, 1) self.update_indicators() def on_mainwidget_map(self, window): if super().on_mainwidget_map(window): return True self.update_indicators() def update_indicators(self): dev = self.instrument.get_device("haakephoenix") for vn in self.indicators: self.on_device_variable_change(dev, vn, dev.get_variable(vn)) self.builder.get_object("setpoint_adjustment").set_value(dev.get_variable("setpoint")) self.builder.get_object("lowlimit_adjustment").set_value(dev.get_variable("lowlimit")) self.builder.get_object("highlimit_adjustment").set_value(dev.get_variable("highlimit")) def on_device_variable_change(self, device, variablename, newvalue): if variablename in ["_status", "firmwareversion", "fuzzycontrol", "date", "time", "faultstatus"]: self.indicators[variablename].set_value(str(newvalue), IndicatorState.NEUTRAL) elif variablename in ["setpoint", "temperature", "lowlimit", "highlimit"]: self.indicators[variablename].set_value("%.2f°C" % newvalue, IndicatorState.NEUTRAL) elif variablename in [ "control_on", "cooling_on", "diffcontrol_on", "watchdog_on", "beep", "fuzzyid", "fuzzystatus", "autostart", ]: self.indicators[variablename].set_value( ["OFF", "ON"][int(bool(newvalue))], [IndicatorState.ERROR, IndicatorState.OK][int(bool(newvalue))] ) elif variablename in ["pump_power"]: self.indicators[variablename].set_value( "%.2f %%" % newvalue, [IndicatorState.ERROR, IndicatorState.OK][newvalue > 0] ) elif variablename in [ "external_pt100_error", "internal_pt100_error", "liquid_level_low_error", "cooling_error", "main_relay_missing_error", ]: self.indicators[variablename].set_value( ["OK", "ERROR"][int(bool(newvalue))], [IndicatorState.OK, IndicatorState.ERROR][int(bool(newvalue))] ) elif variablename in ["liquid_level_alarm_error", "external_alarm_error", "overtemperature_error"]: self.indicators[variablename].set_value( ["OK", "ALARM"][int(bool(newvalue))], [IndicatorState.OK, IndicatorState.ERROR][int(bool(newvalue))] ) elif variablename in ["pump_overload_error"]: self.indicators[variablename].set_value( ["OK", "OVERLOAD"][int(bool(newvalue))], [IndicatorState.OK, IndicatorState.ERROR][int(bool(newvalue))] ) elif variablename in ["watchdog_setpoint"]: self.indicators[variablename].set_value("%.2f sec" % newvalue, IndicatorState.UNKNOWN) elif variablename in ["control_external"]: self.indicators[variablename].set_value(["Internal", "External"][int(bool(newvalue))], IndicatorState.NEUTRAL) if variablename == "fuzzyid": self.builder.get_object("fuzzyid_switch").set_state(bool(newvalue)) elif variablename == "pump_power": self.builder.get_object("circulator_switch").set_state(newvalue > 0) return False def on_circulator_switch_state_set(self, switch, state): dev = self.instrument.get_device("haakephoenix") if state: dev.execute_command("start") else: dev.execute_command("stop") return True def on_fuzzyid_switch_state_set(self, switch, state): self.instrument.get_device("haakephoenix").set_variable("fuzzyid", state) return True def on_set_setpoint(self, button): spinbutton = self.builder.get_object("setpoint_spin") self.instrument.get_device("haakephoenix").set_variable("setpoint", spinbutton.get_value()) def on_set_lowlimit(self, button): spinbutton = self.builder.get_object("lowlimit_spin") self.instrument.get_device("haakephoenix").set_variable("lowlimit", spinbutton.get_value()) def on_set_highlimit(self, button): spinbutton = self.builder.get_object("highlimit_spin") self.instrument.get_device("haakephoenix").set_variable("highlimit", spinbutton.get_value()) def on_update_rtc(self, button): now = datetime.datetime.now() self.instrument.get_device("haakephoenix").set_variable("date", now.date()) self.instrument.get_device("haakephoenix").set_variable("time", now.time())
[ 485, 7181, 222, 222, 1097, 4390, 1284, 51, 18368, 1220, 44029, 49, 44029, 1095, 222, 1097, 4390, 1284, 51, 3749, 3537, 1220, 10023, 1684, 499, 222, 842, 29955, 1082, 2839, 116, 23954, 45, 3670, 1684, 731, 303, 2147, 100, 13224, 299, 3059, 4958, 1082, 38173, 1465, 465, 684, 1176, 1683, 3232, 803, 49, 338, 1150, 49, 1137, 124, 1150, 731, 310, 649, 51, 38537, 299, 2172, 310, 2615, 17124, 1683, 45911, 1150, 49, 1137, 124, 1150, 46, 465, 684, 3238, 100, 8472, 45, 803, 49, 338, 1150, 49, 1137, 5350, 731, 310, 2302, 3393, 299, 649, 51, 4179, 51, 390, 100, 1491, 459, 1535, 3393, 678, 310, 456, 2720, 49, 2656, 49, 38723, 49, 2300, 347, 447, 343, 327, 53, 49, 244, 53, 49, 7302, 1535, 411, 332, 1551, 2132, 343, 327, 53, 49, 244, 54, 49, 332, 489, 1513, 411, 332, 2937, 13740, 2132, 343, 327, 53, 49, 244, 55, 49, 332, 17569, 411, 332, 19417, 2132, 343, 327, 53, 49, 244, 56, 49, 332, 31249, 100, 7404, 411, 332, 35953, 8246, 2132, 343, 327, 53, 49, 244, 57, 49, 332, 2452, 100, 286, 411, 332, 19417, 3518, 2132, 343, 327, 54, 49, 244, 53, 49, 332, 760, 3262, 411, 332, 12020, 2741, 2132, 343, 327, 54, 49, 244, 54, 49, 332, 4385, 3262, 411, 332, 7564, 2741, 2132, 343, 327, 54, 49, 244, 55, 49, 332, 26727, 318, 100, 286, 411, 332, 20051, 318, 2132, 343, 327, 54, 49, 244, 56, 49, 332, 2452, 100, 6183, 411, 332, 2436, 2132, 343, 327, 54, 49, 244, 57, 49, 332, 4927, 2452, 100, 286, 411, 332, 36722, 2748, 3518, 2132, 310, 1499, 63, 343, 649, 51, 38537, 96, 13133, 98, 299, 44029, 45, 1194, 49, 7931, 411, 44029, 1095, 51, 14165, 46, 343, 2302, 3393, 51, 9962, 45, 803, 51, 38537, 96, 13133, 636, 2656, 49, 2720, 49, 244, 54, 49, 244, 54, 46, 310, 1067, 3393, 299, 649, 51, 4179, 51, 390, 100, 1491, 459, 750, 3393, 678, 310, 456, 2720, 49, 2656, 49, 38723, 49, 2300, 347, 447, 343, 327, 53, 49, 244, 53, 49, 332, 6183, 100, 404, 54, 53, 53, 100, 750, 411, 332, 8392, 30807, 54, 53, 53, 2132, 244, 607, 343, 327, 53, 49, 244, 54, 49, 332, 3269, 100, 404, 54, 53, 53, 100, 750, 411, 332, 4305, 30807, 54, 53, 53, 2132, 244, 607, 343, 327, 53, 49, 244, 55, 49, 332, 37305, 100, 2675, 100, 760, 100, 750, 411, 332, 48113, 3215, 2132, 244, 607, 343, 327, 53, 49, 244, 56, 49, 332, 37305, 100, 2675, 100, 18859, 100, 750, 411, 332, 48113, 3215, 24461, 2132, 244, 607, 343, 327, 53, 49, 244, 57, 49, 332, 26727, 318, 100, 750, 411, 332, 20051, 318, 2684, 2132, 244, 607, 343, 327, 54, 49, 244, 53, 49, 332, 31249, 100, 33334, 100, 750, 411, 332, 35953, 2132, 244, 607, 343, 327, 54, 49, 244, 54, 49, 332, 6183, 100, 18859, 100, 750, 411, 332, 8392, 24461, 2132, 244, 607, 343, 327, 54, 49, 244, 55, 49, 332, 1515, 17569, 100, 750, 411, 332, 3980, 17569, 2132, 244, 607, 343, 327, 54, 49, 244, 56, 49, 332, 1850, 100, 23592, 100, 9832, 100, 750, 411, 332, 4370, 31088, 2132, 244, 607, 343, 327, 54, 49, 244, 57, 49, 332, 16005, 1535, 411, 332, 1551, 5748, 2132, 310, 1499, 63, 244, 607, 343, 649, 51, 38537, 96, 13133, 98, 299, 44029, 45, 1194, 49, 7931, 411, 44029, 1095, 51, 14165, 46, 343, 1067, 3393, 51, 9962, 45, 803, 51, 38537, 96, 13133, 636, 2656, 49, 2720, 49, 244, 54, 49, 244, 54, 46, 310, 1623, 3393, 299, 649, 51, 4179, 51, 390, 100, 1491, 459, 2476, 3393, 678, 310, 456, 2720, 49, 2656, 49, 38723, 49, 2300, 347, 447, 343, 327, 53, 49, 244, 53, 49, 332, 33854, 1687, 411, 332, 38718, 1522, 2132, 244, 607, 343, 327, 53, 49, 244, 54, 49, 332, 787, 411, 332, 1563, 2132, 244, 607, 343, 327, 53, 49, 244, 55, 49, 332, 1021, 411, 332, 1061, 2132, 244, 607, 343, 327, 53, 49, 244, 56, 49, 332, 4872, 667, 521, 411, 332, 7590, 667, 521, 2132, 244, 607, 343, 327, 53, 49, 244, 57, 49, 332, 883, 950, 411, 332, 1483, 950, 2132, 244, 607, 343, 327, 54, 49, 244, 53, 49, 332, 41062, 333, 411, 332, 75, 25278, 31713, 2132, 244, 607, 343, 327, 54, 49, 244, 54, 49, 332, 41062, 2452, 411, 332, 75, 25278, 3518, 2132, 244, 607, 343, 327, 54, 49, 244, 55, 49, 332, 24760, 757, 862, 411, 332, 75, 25278, 2302, 2132, 244, 607, 343, 327, 54, 49, 244, 56, 49, 332, 6595, 14717, 100, 286, 411, 332, 9416, 14717, 2132, 244, 607, 343, 327, 54, 49, 244, 57, 49, 332, 6595, 14717, 100, 489, 1513, 411, 332, 9416, 14717, 427, 38827, 2132, 310, 1499, 63, 244, 607, 343, 649, 51, 38537, 96, 13133, 98, 299, 44029, 45, 1194, 49, 7931, 411, 44029, 1095, 51, 14165, 46, 343, 1623, 3393, 51, 9962, 45, 803, 51, 38537, 96, 13133, 636, 2656, 49, 2720, 49, 244, 54, 49, 244, 54, 46, 310, 649, 51, 1896, 100, 38537, 365, 465, 684, 563, 100, 1850, 3872, 100, 1130, 45, 803, 49, 3240, 731, 310, 434, 2615, 941, 286, 100, 1850, 3872, 100, 1130, 45, 3537, 731, 343, 461, 2969, 310, 649, 51, 1896, 100, 38537, 365, 465, 684, 1991, 100, 38537, 45, 803, 731, 310, 5693, 299, 649, 51, 17967, 51, 390, 100, 2949, 459, 4958, 1082, 38173, 678, 310, 456, 38723, 347, 649, 51, 38537, 63, 343, 649, 51, 286, 100, 2949, 100, 4521, 100, 2357, 45, 1920, 49, 38723, 49, 5693, 51, 390, 100, 4521, 45, 13133, 509, 310, 649, 51, 4179, 51, 390, 100, 1491, 459, 489, 1513, 100, 13807, 488, 1912, 489, 100, 872, 45, 1920, 51, 390, 100, 4521, 459, 489, 1513, 2152, 310, 649, 51, 4179, 51, 390, 100, 1491, 459, 760, 3262, 100, 13807, 488, 1912, 489, 100, 872, 45, 1920, 51, 390, 100, 4521, 459, 760, 3262, 2152, 310, 649, 51, 4179, 51, 390, 100, 1491, 459, 4385, 3262, 100, 13807, 488, 1912, 489, 100, 872, 45, 1920, 51, 390, 100, 4521, 459, 4385, 3262, 2152, 465, 684, 563, 100, 2949, 100, 4521, 100, 2357, 45, 803, 49, 3313, 49, 10054, 380, 24822, 49, 556, 872, 731, 310, 434, 10054, 380, 24822, 347, 3059, 100, 1535, 411, 332, 33854, 1687, 411, 332, 41062, 2452, 411, 332, 787, 411, 332, 1021, 411, 332, 16005, 1535, 18277, 343, 649, 51, 38537, 96, 10014, 380, 24822, 1015, 489, 100, 872, 45, 484, 45, 909, 872, 490, 44029, 1095, 51, 3585, 1086, 87, 744, 46, 310, 4378, 10054, 380, 24822, 347, 3059, 489, 1513, 411, 332, 17569, 411, 332, 760, 3262, 411, 332, 4385, 3262, 18277, 343, 649, 51, 38537, 96, 10014, 380, 24822, 1015, 489, 100, 872, 4923, 51, 55, 107, 24079, 72, 39, 925, 556, 872, 49, 44029, 1095, 51, 3585, 1086, 87, 744, 46, 310, 4378, 10054, 380, 24822, 347, 447, 343, 332, 2452, 100, 286, 411, 343, 332, 26727, 318, 100, 286, 411, 343, 332, 4927, 2452, 100, 286, 411, 343, 332, 6595, 14717, 100, 286, 411, 343, 332, 883, 950, 411, 343, 332, 41062, 333, 411, 343, 332, 24760, 757, 862, 411, 343, 332, 4872, 667, 521, 411, 310, 1499, 63, 343, 649, 51, 38537, 96, 10014, 380, 24822, 1015, 489, 100, 872, 45, 419, 3059, 6672, 411, 332, 586, 15576, 429, 45, 2433, 45, 909, 872, 509, 636, 447, 12474, 1095, 51, 2946, 49, 44029, 1095, 51, 2966, 1697, 429, 45, 2433, 45, 909, 872, 12681, 343, 848, 310, 4378, 10054, 380, 24822, 347, 3059, 31249, 100, 7404, 18277, 343, 649, 51, 38537, 96, 10014, 380, 24822, 1015, 489, 100, 872, 45, 419, 5471, 51, 55, 107, 925, 7955, 925, 556, 872, 49, 447, 12474, 1095, 51, 2946, 49, 44029, 1095, 51, 2966, 1697, 909, 872, 868, 244, 53, 98, 343, 848, 310, 4378, 10054, 380, 24822, 347, 447, 343, 332, 6183, 100, 404, 54, 53, 53, 100, 750, 411, 343, 332, 3269, 100, 404, 54, 53, 53, 100, 750, 411, 343, 332, 37305, 100, 2675, 100, 760, 100, 750, 411, 343, 332, 26727, 318, 100, 750, 411, 343, 332, 1850, 100, 23592, 100, 9832, 100, 750, 411, 310, 1499, 63, 343, 649, 51, 38537, 96, 10014, 380, 24822, 1015, 489, 100, 872, 45, 419, 3059, 2966, 411, 332, 2946, 15576, 429, 45, 2433, 45, 909, 872, 509, 636, 447, 12474, 1095, 51, 2966, 49, 44029, 1095, 51, 2946, 1697, 429, 45, 2433, 45, 909, 872, 12681, 343, 848, 310, 4378, 10054, 380, 24822, 347, 3059, 37305, 100, 2675, 100, 18859, 100, 750, 411, 332, 6183, 100, 18859, 100, 750, 411, 332, 1515, 17569, 100, 750, 18277, 343, 649, 51, 38537, 96, 10014, 380, 24822, 1015, 489, 100, 872, 45, 419, 3059, 2966, 411, 332, 43481, 15576, 429, 45, 2433, 45, 909, 872, 509, 636, 447, 12474, 1095, 51, 2966, 49, 44029, 1095, 51, 2946, 1697, 429, 45, 2433, 45, 909, 872, 12681, 343, 848, 310, 4378, 10054, 380, 24822, 347, 3059, 31249, 100, 33334, 100, 750, 18277, 343, 649, 51, 38537, 96, 10014, 380, 24822, 1015, 489, 100, 872, 45, 419, 3059, 2966, 411, 332, 16260, 15576, 429, 45, 2433, 45, 909, 872, 509, 636, 447, 12474, 1095, 51, 2966, 49, 44029, 1095, 51, 2946, 1697, 429, 45, 2433, 45, 909, 872, 12681, 343, 848, 310, 4378, 10054, 380, 24822, 347, 3059, 6595, 14717, 100, 489, 1513, 18277, 343, 649, 51, 38537, 96, 10014, 380, 24822, 1015, 489, 100, 872, 4923, 51, 55, 107, 8391, 39, 925, 556, 872, 49, 44029, 1095, 51, 14165, 46, 310, 4378, 10054, 380, 24822, 347, 3059, 2452, 100, 6183, 18277, 343, 649, 51, 38537, 96, 10014, 380, 24822, 1015, 489, 100, 872, 14274, 4305, 411, 332, 8392, 15576, 429, 45, 2433, 45, 909, 872, 509, 636, 44029, 1095, 51, 3585, 1086, 87, 744, 46, 603, 434, 10054, 380, 24822, 630, 332, 41062, 333, 582, 343, 649, 51, 4179, 51, 390, 100, 1491, 459, 41062, 333, 100, 4651, 1912, 489, 100, 1311, 45, 2433, 45, 909, 872, 509, 310, 4378, 10054, 380, 24822, 630, 332, 31249, 100, 7404, 582, 343, 649, 51, 4179, 51, 390, 100, 1491, 459, 28883, 2908, 738, 100, 4651, 1912, 489, 100, 1311, 45, 909, 872, 868, 244, 53, 46, 310, 461, 3208, 465, 684, 563, 100, 28883, 2908, 738, 100, 4651, 100, 1311, 100, 489, 45, 803, 49, 3593, 49, 1621, 731, 310, 5693, 299, 649, 51, 17967, 51, 390, 100, 2949, 459, 4958, 1082, 38173, 678, 310, 434, 1621, 63, 343, 5693, 51, 4540, 100, 2514, 459, 1384, 678, 310, 832, 63, 343, 5693, 51, 4540, 100, 2514, 459, 4074, 678, 310, 461, 2969, 465, 684, 563, 100, 41062, 333, 100, 4651, 100, 1311, 100, 489, 45, 803, 49, 3593, 49, 1621, 731, 310, 649, 51, 17967, 51, 390, 100, 2949, 459, 4958, 1082, 38173, 1912, 489, 100, 4521, 459, 41062, 333, 411, 1621, 46, 310, 461, 2969, 465, 684, 563, 100, 489, 100, 489, 1513, 45, 803, 49, 3467, 731, 310, 19763, 1654, 299, 649, 51, 4179, 51, 390, 100, 1491, 459, 489, 1513, 100, 12917, 678, 310, 649, 51, 17967, 51, 390, 100, 2949, 459, 4958, 1082, 38173, 1912, 489, 100, 4521, 459, 489, 1513, 411, 19763, 1654, 51, 390, 100, 872, 1177, 465, 684, 563, 100, 489, 100, 760, 3262, 45, 803, 49, 3467, 731, 310, 19763, 1654, 299, 649, 51, 4179, 51, 390, 100, 1491, 459, 760, 3262, 100, 12917, 678, 310, 649, 51, 17967, 51, 390, 100, 2949, 459, 4958, 1082, 38173, 1912, 489, 100, 4521, 459, 760, 3262, 411, 19763, 1654, 51, 390, 100, 872, 1177, 465, 684, 563, 100, 489, 100, 4385, 3262, 45, 803, 49, 3467, 731, 310, 19763, 1654, 299, 649, 51, 4179, 51, 390, 100, 1491, 459, 4385, 3262, 100, 12917, 678, 310, 649, 51, 17967, 51, 390, 100, 2949, 459, 4958, 1082, 38173, 1912, 489, 100, 4521, 459, 4385, 3262, 411, 19763, 1654, 51, 390, 100, 872, 1177, 465, 684, 563, 100, 1896, 100, 28647, 45, 803, 49, 3467, 731, 310, 2483, 299, 7181, 51, 6703, 51, 2192, 365, 310, 649, 51, 17967, 51, 390, 100, 2949, 459, 4958, 1082, 38173, 1912, 489, 100, 4521, 459, 787, 411, 2483, 51, 787, 1177, 310, 649, 51, 17967, 51, 390, 100, 2949, 459, 4958, 1082, 38173, 1912, 489, 100, 4521, 459, 1021, 411, 2483, 51, 1021, 1177, 222 ]
[ "import", "Ġdatetime", "Ċ", "Ċ", "from", "Ġ..", "core", ".", "indicator", "Ġimport", "ĠIndicator", ",", "ĠIndicator", "State", "Ċ", "from", "Ġ..", "core", ".", "tool", "window", "Ġimport", "ĠTool", "Window", "ĊĊ", "Ċ", "class", "ĠHa", "ake", "Ph", "o", "enix", "(", "Tool", "Window", "):", "ĊĠĠĠ", "Ġrequired", "_", "devices", "Ġ=", "Ġ[\"", "ha", "ake", "phoenix", "\"]", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġ*", "args", ",", "Ġ**", "w", "args", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "indicators", "Ġ=", "Ġ{}", "ĊĠĠĠĠĠĠĠ", "Ġsuper", "().__", "init", "__(*", "args", ",", "Ġ**", "w", "args", ")", "ĊĊĠĠĠ", "Ġdef", "Ġinit", "_", "gui", "(", "self", ",", "Ġ*", "args", ",", "Ġ**", "kwargs", "):", "ĊĠĠĠĠĠĠĠ", "Ġstatus", "grid", "Ġ=", "Ġself", ".", "builder", ".", "get", "_", "object", "(\"", "status", "grid", "\")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġrow", ",", "Ġcolumn", ",", "Ġvn", ",", "Ġlabel", "Ġin", "Ġ[", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "0", ",", "Ġ", "0", ",", "Ġ\"_", "status", "\",", "Ġ\"", "Status", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "0", ",", "Ġ", "1", ",", "Ġ\"", "set", "point", "\",", "Ġ\"", "Target", "Ġtemperature", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "0", ",", "Ġ", "2", ",", "Ġ\"", "temperature", "\",", "Ġ\"", "Temperature", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "0", ",", "Ġ", "3", ",", "Ġ\"", "pump", "_", "power", "\",", "Ġ\"", "Pump", "Ġspeed", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "0", ",", "Ġ", "4", ",", "Ġ\"", "control", "_", "on", "\",", "Ġ\"", "Temperature", "Ġcontrol", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "1", ",", "Ġ", "0", ",", "Ġ\"", "low", "limit", "\",", "Ġ\"", "Low", "Ġlimit", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "1", ",", "Ġ", "1", ",", "Ġ\"", "high", "limit", "\",", "Ġ\"", "High", "Ġlimit", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "1", ",", "Ġ", "2", ",", "Ġ\"", "cool", "ing", "_", "on", "\",", "Ġ\"", "Cool", "ing", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "1", ",", "Ġ", "3", ",", "Ġ\"", "control", "_", "external", "\",", "Ġ\"", "Control", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "1", ",", "Ġ", "4", ",", "Ġ\"", "diff", "control", "_", "on", "\",", "Ġ\"", "Differ", "ential", "Ġcontrol", "\"),", "ĊĠĠĠĠĠĠĠ", "Ġ]", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "indicators", "[", "vn", "]", "Ġ=", "ĠIndicator", "(", "label", ",", "Ġ\"--", "\",", "ĠIndicator", "State", ".", "UNKNOWN", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġstatus", "grid", ".", "attach", "(", "self", ".", "indicators", "[", "vn", "],", "Ġcolumn", ",", "Ġrow", ",", "Ġ", "1", ",", "Ġ", "1", ")", "ĊĠĠĠĠĠĠĠ", "Ġerror", "grid", "Ġ=", "Ġself", ".", "builder", ".", "get", "_", "object", "(\"", "error", "grid", "\")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġrow", ",", "Ġcolumn", ",", "Ġvn", ",", "Ġlabel", "Ġin", "Ġ[", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "0", ",", "Ġ", "0", ",", "Ġ\"", "external", "_", "pt", "1", "0", "0", "_", "error", "\",", "Ġ\"", "External", "ĠPt", "1", "0", "0", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "0", ",", "Ġ", "1", ",", "Ġ\"", "internal", "_", "pt", "1", "0", "0", "_", "error", "\",", "Ġ\"", "Internal", "ĠPt", "1", "0", "0", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "0", ",", "Ġ", "2", ",", "Ġ\"", "liquid", "_", "level", "_", "low", "_", "error", "\",", "Ġ\"", "Liquid", "Ġlevel", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "0", ",", "Ġ", "3", ",", "Ġ\"", "liquid", "_", "level", "_", "alarm", "_", "error", "\",", "Ġ\"", "Liquid", "Ġlevel", "Ġalarm", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "0", ",", "Ġ", "4", ",", "Ġ\"", "cool", "ing", "_", "error", "\",", "Ġ\"", "Cool", "ing", "Ġsystem", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "1", ",", "Ġ", "0", ",", "Ġ\"", "pump", "_", "overload", "_", "error", "\",", "Ġ\"", "Pump", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "1", ",", "Ġ", "1", ",", "Ġ\"", "external", "_", "alarm", "_", "error", "\",", "Ġ\"", "External", "Ġalarm", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "1", ",", "Ġ", "2", ",", "Ġ\"", "over", "temperature", "_", "error", "\",", "Ġ\"", "Over", "temperature", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "1", ",", "Ġ", "3", ",", "Ġ\"", "main", "_", "relay", "_", "missing", "_", "error", "\",", "Ġ\"", "Main", "Ġrelay", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "1", ",", "Ġ", "4", ",", "Ġ\"", "fault", "status", "\",", "Ġ\"", "Status", "Ġflags", "\"),", "ĊĠĠĠĠĠĠĠ", "Ġ]", ":", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "indicators", "[", "vn", "]", "Ġ=", "ĠIndicator", "(", "label", ",", "Ġ\"--", "\",", "ĠIndicator", "State", ".", "UNKNOWN", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġerror", "grid", ".", "attach", "(", "self", ".", "indicators", "[", "vn", "],", "Ġcolumn", ",", "Ġrow", ",", "Ġ", "1", ",", "Ġ", "1", ")", "ĊĠĠĠĠĠĠĠ", "Ġother", "grid", "Ġ=", "Ġself", ".", "builder", ".", "get", "_", "object", "(\"", "other", "grid", "\")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġrow", ",", "Ġcolumn", ",", "Ġvn", ",", "Ġlabel", "Ġin", "Ġ[", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "0", ",", "Ġ", "0", ",", "Ġ\"", "firmware", "version", "\",", "Ġ\"", "Firmware", "Ġversion", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "0", ",", "Ġ", "1", ",", "Ġ\"", "date", "\",", "Ġ\"", "Date", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "0", ",", "Ġ", "2", ",", "Ġ\"", "time", "\",", "Ġ\"", "Time", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "0", ",", "Ġ", "3", ",", "Ġ\"", "aut", "ost", "art", "\",", "Ġ\"", "Aut", "ost", "art", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "0", ",", "Ġ", "4", ",", "Ġ\"", "be", "ep", "\",", "Ġ\"", "Be", "ep", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "1", ",", "Ġ", "0", ",", "Ġ\"", "fuzzy", "id", "\",", "Ġ\"", "F", "uzzy", "Ġidentification", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "1", ",", "Ġ", "1", ",", "Ġ\"", "fuzzy", "control", "\",", "Ġ\"", "F", "uzzy", "Ġcontrol", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "1", ",", "Ġ", "2", ",", "Ġ\"", "fuzz", "yst", "atus", "\",", "Ġ\"", "F", "uzzy", "Ġstatus", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "1", ",", "Ġ", "3", ",", "Ġ\"", "watch", "dog", "_", "on", "\",", "Ġ\"", "Watch", "dog", "\"),", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "1", ",", "Ġ", "4", ",", "Ġ\"", "watch", "dog", "_", "set", "point", "\",", "Ġ\"", "Watch", "dog", "Ġse", "tpoint", "\"),", "ĊĠĠĠĠĠĠĠ", "Ġ]", ":", "Ġ", "Ġ#", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "indicators", "[", "vn", "]", "Ġ=", "ĠIndicator", "(", "label", ",", "Ġ\"--", "\",", "ĠIndicator", "State", ".", "UNKNOWN", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġother", "grid", ".", "attach", "(", "self", ".", "indicators", "[", "vn", "],", "Ġcolumn", ",", "Ġrow", ",", "Ġ", "1", ",", "Ġ", "1", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "update", "_", "indicators", "()", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "main", "widget", "_", "map", "(", "self", ",", "Ġwindow", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġsuper", "().", "on", "_", "main", "widget", "_", "map", "(", "window", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĠTrue", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "update", "_", "indicators", "()", "ĊĊĠĠĠ", "Ġdef", "Ġupdate", "_", "indicators", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġdev", "Ġ=", "Ġself", ".", "instrument", ".", "get", "_", "device", "(\"", "ha", "ake", "phoenix", "\")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġvn", "Ġin", "Ġself", ".", "indicators", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "on", "_", "device", "_", "variable", "_", "change", "(", "dev", ",", "Ġvn", ",", "Ġdev", ".", "get", "_", "variable", "(", "vn", "))", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "builder", ".", "get", "_", "object", "(\"", "set", "point", "_", "adjust", "ment", "\").", "set", "_", "value", "(", "dev", ".", "get", "_", "variable", "(\"", "set", "point", "\"))", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "builder", ".", "get", "_", "object", "(\"", "low", "limit", "_", "adjust", "ment", "\").", "set", "_", "value", "(", "dev", ".", "get", "_", "variable", "(\"", "low", "limit", "\"))", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "builder", ".", "get", "_", "object", "(\"", "high", "limit", "_", "adjust", "ment", "\").", "set", "_", "value", "(", "dev", ".", "get", "_", "variable", "(\"", "high", "limit", "\"))", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "device", "_", "variable", "_", "change", "(", "self", ",", "Ġdevice", ",", "Ġvari", "ab", "lename", ",", "Ġnew", "value", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġvari", "ab", "lename", "Ġin", "Ġ[\"", "_", "status", "\",", "Ġ\"", "firmware", "version", "\",", "Ġ\"", "fuzzy", "control", "\",", "Ġ\"", "date", "\",", "Ġ\"", "time", "\",", "Ġ\"", "fault", "status", "\"]:", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "indicators", "[", "vari", "ab", "lename", "].", "set", "_", "value", "(", "str", "(", "new", "value", "),", "ĠIndicator", "State", ".", "NE", "UT", "R", "AL", ")", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġvari", "ab", "lename", "Ġin", "Ġ[\"", "set", "point", "\",", "Ġ\"", "temperature", "\",", "Ġ\"", "low", "limit", "\",", "Ġ\"", "high", "limit", "\"]:", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "indicators", "[", "vari", "ab", "lename", "].", "set", "_", "value", "(\"%", ".", "2", "f", "°", "C", "\"", "Ġ%", "Ġnew", "value", ",", "ĠIndicator", "State", ".", "NE", "UT", "R", "AL", ")", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġvari", "ab", "lename", "Ġin", "Ġ[", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "control", "_", "on", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "cool", "ing", "_", "on", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "diff", "control", "_", "on", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "watch", "dog", "_", "on", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "be", "ep", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "fuzzy", "id", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "fuzz", "yst", "atus", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "aut", "ost", "art", "\",", "ĊĠĠĠĠĠĠĠ", "Ġ]", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "indicators", "[", "vari", "ab", "lename", "].", "set", "_", "value", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ[\"", "OFF", "\",", "Ġ\"", "ON", "\"][", "int", "(", "bool", "(", "new", "value", "))", "],", "Ġ[", "Indicator", "State", ".", "ERROR", ",", "ĠIndicator", "State", ".", "OK", "][", "int", "(", "bool", "(", "new", "value", "))]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġvari", "ab", "lename", "Ġin", "Ġ[\"", "pump", "_", "power", "\"]:", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "indicators", "[", "vari", "ab", "lename", "].", "set", "_", "value", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"%", ".", "2", "f", "Ġ%", "%\"", "Ġ%", "Ġnew", "value", ",", "Ġ[", "Indicator", "State", ".", "ERROR", ",", "ĠIndicator", "State", ".", "OK", "][", "new", "value", "Ġ>", "Ġ", "0", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġvari", "ab", "lename", "Ġin", "Ġ[", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "external", "_", "pt", "1", "0", "0", "_", "error", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "internal", "_", "pt", "1", "0", "0", "_", "error", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "liquid", "_", "level", "_", "low", "_", "error", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "cool", "ing", "_", "error", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "main", "_", "relay", "_", "missing", "_", "error", "\",", "ĊĠĠĠĠĠĠĠ", "Ġ]", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "indicators", "[", "vari", "ab", "lename", "].", "set", "_", "value", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ[\"", "OK", "\",", "Ġ\"", "ERROR", "\"][", "int", "(", "bool", "(", "new", "value", "))", "],", "Ġ[", "Indicator", "State", ".", "OK", ",", "ĠIndicator", "State", ".", "ERROR", "][", "int", "(", "bool", "(", "new", "value", "))]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġvari", "ab", "lename", "Ġin", "Ġ[\"", "liquid", "_", "level", "_", "alarm", "_", "error", "\",", "Ġ\"", "external", "_", "alarm", "_", "error", "\",", "Ġ\"", "over", "temperature", "_", "error", "\"]:", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "indicators", "[", "vari", "ab", "lename", "].", "set", "_", "value", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ[\"", "OK", "\",", "Ġ\"", "ALARM", "\"][", "int", "(", "bool", "(", "new", "value", "))", "],", "Ġ[", "Indicator", "State", ".", "OK", ",", "ĠIndicator", "State", ".", "ERROR", "][", "int", "(", "bool", "(", "new", "value", "))]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġvari", "ab", "lename", "Ġin", "Ġ[\"", "pump", "_", "overload", "_", "error", "\"]:", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "indicators", "[", "vari", "ab", "lename", "].", "set", "_", "value", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ[\"", "OK", "\",", "Ġ\"", "OVERLOAD", "\"][", "int", "(", "bool", "(", "new", "value", "))", "],", "Ġ[", "Indicator", "State", ".", "OK", ",", "ĠIndicator", "State", ".", "ERROR", "][", "int", "(", "bool", "(", "new", "value", "))]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġvari", "ab", "lename", "Ġin", "Ġ[\"", "watch", "dog", "_", "set", "point", "\"]:", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "indicators", "[", "vari", "ab", "lename", "].", "set", "_", "value", "(\"%", ".", "2", "f", "Ġsec", "\"", "Ġ%", "Ġnew", "value", ",", "ĠIndicator", "State", ".", "UNKNOWN", ")", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġvari", "ab", "lename", "Ġin", "Ġ[\"", "control", "_", "external", "\"]:", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "indicators", "[", "vari", "ab", "lename", "].", "set", "_", "value", "([\"", "Internal", "\",", "Ġ\"", "External", "\"][", "int", "(", "bool", "(", "new", "value", "))", "],", "ĠIndicator", "State", ".", "NE", "UT", "R", "AL", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġvari", "ab", "lename", "Ġ==", "Ġ\"", "fuzzy", "id", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "builder", ".", "get", "_", "object", "(\"", "fuzzy", "id", "_", "switch", "\").", "set", "_", "state", "(", "bool", "(", "new", "value", "))", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġvari", "ab", "lename", "Ġ==", "Ġ\"", "pump", "_", "power", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "builder", ".", "get", "_", "object", "(\"", "cir", "cul", "ator", "_", "switch", "\").", "set", "_", "state", "(", "new", "value", "Ġ>", "Ġ", "0", ")", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "ĠFalse", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "cir", "cul", "ator", "_", "switch", "_", "state", "_", "set", "(", "self", ",", "Ġswitch", ",", "Ġstate", "):", "ĊĠĠĠĠĠĠĠ", "Ġdev", "Ġ=", "Ġself", ".", "instrument", ".", "get", "_", "device", "(\"", "ha", "ake", "phoenix", "\")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġstate", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdev", ".", "execute", "_", "command", "(\"", "start", "\")", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdev", ".", "execute", "_", "command", "(\"", "stop", "\")", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "ĠTrue", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "fuzzy", "id", "_", "switch", "_", "state", "_", "set", "(", "self", ",", "Ġswitch", ",", "Ġstate", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "instrument", ".", "get", "_", "device", "(\"", "ha", "ake", "phoenix", "\").", "set", "_", "variable", "(\"", "fuzzy", "id", "\",", "Ġstate", ")", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "ĠTrue", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "set", "_", "set", "point", "(", "self", ",", "Ġbutton", "):", "ĊĠĠĠĠĠĠĠ", "Ġspin", "button", "Ġ=", "Ġself", ".", "builder", ".", "get", "_", "object", "(\"", "set", "point", "_", "spin", "\")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "instrument", ".", "get", "_", "device", "(\"", "ha", "ake", "phoenix", "\").", "set", "_", "variable", "(\"", "set", "point", "\",", "Ġspin", "button", ".", "get", "_", "value", "())", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "set", "_", "low", "limit", "(", "self", ",", "Ġbutton", "):", "ĊĠĠĠĠĠĠĠ", "Ġspin", "button", "Ġ=", "Ġself", ".", "builder", ".", "get", "_", "object", "(\"", "low", "limit", "_", "spin", "\")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "instrument", ".", "get", "_", "device", "(\"", "ha", "ake", "phoenix", "\").", "set", "_", "variable", "(\"", "low", "limit", "\",", "Ġspin", "button", ".", "get", "_", "value", "())", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "set", "_", "high", "limit", "(", "self", ",", "Ġbutton", "):", "ĊĠĠĠĠĠĠĠ", "Ġspin", "button", "Ġ=", "Ġself", ".", "builder", ".", "get", "_", "object", "(\"", "high", "limit", "_", "spin", "\")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "instrument", ".", "get", "_", "device", "(\"", "ha", "ake", "phoenix", "\").", "set", "_", "variable", "(\"", "high", "limit", "\",", "Ġspin", "button", ".", "get", "_", "value", "())", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "update", "_", "rtc", "(", "self", ",", "Ġbutton", "):", "ĊĠĠĠĠĠĠĠ", "Ġnow", "Ġ=", "Ġdatetime", ".", "datetime", ".", "now", "()", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "instrument", ".", "get", "_", "device", "(\"", "ha", "ake", "phoenix", "\").", "set", "_", "variable", "(\"", "date", "\",", "Ġnow", ".", "date", "())", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "instrument", ".", "get", "_", "device", "(\"", "ha", "ake", "phoenix", "\").", "set", "_", "variable", "(\"", "time", "\",", "Ġnow", ".", "time", "())", "Ċ" ]
[ 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 88, 88, 88, 88, 88, 88, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 97, 97, 97, 97, 97, 97, 97, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 106, 106, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 110, 110, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 114, 114, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 124, 124, 124, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 128, 128, 129, 129, 129, 129, 129, 129, 129, 129, 129, 130, 130, 130, 131, 131, 131, 131, 131, 131, 131, 131, 131, 132, 132, 132, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 136, 136, 136, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 151, 151, 151, 151, 151, 151, 151, 151, 151, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153 ]
[ 1, 7, 16, 1, 1, 5, 8, 12, 13, 22, 29, 39, 40, 50, 55, 1, 5, 8, 12, 13, 17, 23, 30, 35, 41, 1, 1, 6, 9, 12, 14, 15, 19, 20, 24, 30, 32, 4, 13, 14, 21, 23, 26, 28, 31, 38, 40, 4, 8, 11, 15, 18, 22, 23, 25, 29, 30, 33, 34, 38, 40, 8, 13, 14, 24, 26, 29, 8, 14, 19, 23, 27, 31, 32, 35, 36, 40, 41, 4, 8, 13, 14, 17, 18, 22, 23, 25, 29, 30, 33, 39, 41, 8, 15, 19, 21, 26, 27, 34, 35, 38, 39, 45, 47, 53, 57, 59, 8, 12, 16, 17, 24, 25, 28, 29, 35, 38, 40, 12, 14, 15, 16, 17, 18, 19, 22, 28, 30, 32, 38, 41, 12, 14, 15, 16, 17, 18, 19, 21, 24, 29, 31, 33, 39, 51, 54, 12, 14, 15, 16, 17, 18, 19, 21, 32, 34, 36, 47, 50, 12, 14, 15, 16, 17, 18, 19, 21, 25, 26, 31, 33, 35, 39, 45, 48, 12, 14, 15, 16, 17, 18, 19, 21, 28, 29, 31, 33, 35, 46, 54, 57, 12, 14, 15, 16, 17, 18, 19, 21, 24, 29, 31, 33, 36, 42, 45, 12, 14, 15, 16, 17, 18, 19, 21, 25, 30, 32, 34, 38, 44, 47, 12, 14, 15, 16, 17, 18, 19, 21, 25, 28, 29, 31, 33, 35, 39, 42, 45, 12, 14, 15, 16, 17, 18, 19, 21, 28, 29, 37, 39, 41, 48, 51, 12, 14, 15, 16, 17, 18, 19, 21, 25, 32, 33, 35, 37, 39, 45, 51, 59, 62, 8, 10, 11, 12, 17, 18, 28, 29, 31, 32, 34, 44, 45, 50, 51, 55, 57, 67, 72, 73, 80, 81, 12, 19, 23, 24, 30, 31, 35, 36, 46, 47, 49, 51, 58, 59, 63, 64, 65, 66, 67, 68, 69, 70, 8, 14, 18, 20, 25, 26, 33, 34, 37, 38, 44, 46, 51, 55, 57, 8, 12, 16, 17, 24, 25, 28, 29, 35, 38, 40, 12, 14, 15, 16, 17, 18, 19, 21, 29, 30, 32, 33, 34, 35, 36, 41, 43, 45, 53, 56, 57, 58, 59, 62, 63, 65, 12, 14, 15, 16, 17, 18, 19, 21, 29, 30, 32, 33, 34, 35, 36, 41, 43, 45, 53, 56, 57, 58, 59, 62, 63, 65, 12, 14, 15, 16, 17, 18, 19, 21, 27, 28, 33, 34, 37, 38, 43, 45, 47, 53, 59, 62, 63, 65, 12, 14, 15, 16, 17, 18, 19, 21, 27, 28, 33, 34, 39, 40, 45, 47, 49, 55, 61, 67, 70, 71, 73, 12, 14, 15, 16, 17, 18, 19, 21, 25, 28, 29, 34, 36, 38, 42, 45, 52, 55, 56, 58, 12, 14, 15, 16, 17, 18, 19, 21, 25, 26, 34, 35, 40, 42, 44, 48, 51, 52, 54, 12, 14, 15, 16, 17, 18, 19, 21, 29, 30, 35, 36, 41, 43, 45, 53, 59, 62, 63, 65, 12, 14, 15, 16, 17, 18, 19, 21, 25, 36, 37, 42, 44, 46, 50, 61, 64, 65, 67, 12, 14, 15, 16, 17, 18, 19, 21, 25, 26, 31, 32, 39, 40, 45, 47, 49, 53, 59, 62, 63, 65, 12, 14, 15, 16, 17, 18, 19, 21, 26, 32, 34, 36, 42, 48, 51, 8, 10, 11, 12, 14, 12, 17, 18, 28, 29, 31, 32, 34, 44, 45, 50, 51, 55, 57, 67, 72, 73, 80, 81, 12, 18, 22, 23, 29, 30, 34, 35, 45, 46, 48, 50, 57, 58, 62, 63, 64, 65, 66, 67, 68, 69, 8, 14, 18, 20, 25, 26, 33, 34, 37, 38, 44, 46, 51, 55, 57, 8, 12, 16, 17, 24, 25, 28, 29, 35, 38, 40, 12, 14, 15, 16, 17, 18, 19, 21, 29, 36, 38, 40, 48, 56, 59, 60, 62, 12, 14, 15, 16, 17, 18, 19, 21, 25, 27, 29, 33, 36, 37, 39, 12, 14, 15, 16, 17, 18, 19, 21, 25, 27, 29, 33, 36, 37, 39, 12, 14, 15, 16, 17, 18, 19, 21, 24, 27, 30, 32, 34, 37, 40, 43, 46, 47, 49, 12, 14, 15, 16, 17, 18, 19, 21, 23, 25, 27, 29, 31, 33, 36, 37, 39, 12, 14, 15, 16, 17, 18, 19, 21, 26, 28, 30, 32, 33, 37, 52, 55, 56, 58, 12, 14, 15, 16, 17, 18, 19, 21, 26, 33, 35, 37, 38, 42, 50, 53, 54, 56, 12, 14, 15, 16, 17, 18, 19, 21, 25, 28, 32, 34, 36, 37, 41, 48, 51, 52, 54, 12, 14, 15, 16, 17, 18, 19, 21, 26, 29, 30, 32, 34, 36, 41, 44, 47, 48, 50, 12, 14, 15, 16, 17, 18, 19, 21, 26, 29, 30, 33, 38, 40, 42, 47, 50, 53, 59, 62, 8, 10, 11, 12, 14, 12, 17, 18, 28, 29, 31, 32, 34, 44, 45, 50, 51, 55, 57, 67, 72, 73, 80, 81, 12, 18, 22, 23, 29, 30, 34, 35, 45, 46, 48, 50, 57, 58, 62, 63, 64, 65, 66, 67, 68, 69, 8, 13, 14, 20, 21, 31, 33, 4, 8, 11, 12, 16, 22, 23, 26, 27, 31, 32, 39, 41, 8, 11, 17, 20, 22, 23, 27, 33, 34, 37, 38, 44, 46, 12, 19, 24, 8, 13, 14, 20, 21, 31, 33, 4, 8, 15, 16, 26, 27, 31, 33, 8, 12, 14, 19, 20, 30, 31, 34, 35, 41, 43, 45, 48, 55, 57, 8, 12, 15, 18, 23, 24, 34, 35, 12, 17, 18, 20, 21, 27, 28, 36, 37, 43, 44, 47, 48, 51, 52, 56, 57, 60, 61, 69, 70, 72, 74, 8, 13, 14, 21, 22, 25, 26, 32, 34, 37, 42, 43, 49, 53, 56, 59, 60, 65, 66, 69, 70, 73, 74, 82, 84, 87, 92, 95, 8, 13, 14, 21, 22, 25, 26, 32, 34, 37, 42, 43, 49, 53, 56, 59, 60, 65, 66, 69, 70, 73, 74, 82, 84, 87, 92, 95, 8, 13, 14, 21, 22, 25, 26, 32, 34, 38, 43, 44, 50, 54, 57, 60, 61, 66, 67, 70, 71, 74, 75, 83, 85, 89, 94, 97, 4, 8, 11, 12, 18, 19, 27, 28, 34, 35, 39, 40, 47, 48, 53, 55, 61, 62, 66, 71, 73, 8, 11, 16, 18, 24, 27, 30, 31, 37, 39, 41, 49, 56, 58, 60, 65, 72, 74, 76, 80, 82, 84, 88, 90, 92, 97, 103, 106, 12, 17, 18, 28, 29, 33, 35, 41, 43, 46, 47, 52, 53, 56, 57, 60, 65, 67, 77, 82, 83, 85, 87, 88, 90, 91, 8, 13, 18, 20, 26, 29, 32, 35, 40, 42, 44, 55, 57, 59, 62, 67, 69, 71, 75, 80, 83, 12, 17, 18, 28, 29, 33, 35, 41, 43, 46, 47, 52, 55, 56, 57, 58, 59, 60, 61, 63, 67, 72, 73, 83, 88, 89, 91, 93, 94, 96, 97, 8, 13, 18, 20, 26, 29, 31, 12, 14, 21, 22, 24, 26, 12, 14, 18, 21, 22, 24, 26, 12, 14, 18, 25, 26, 28, 30, 12, 14, 19, 22, 23, 25, 27, 12, 14, 16, 18, 20, 12, 14, 19, 21, 23, 12, 14, 18, 21, 25, 27, 12, 14, 17, 20, 23, 25, 8, 10, 11, 12, 17, 18, 28, 29, 33, 35, 41, 43, 46, 47, 52, 53, 16, 19, 22, 24, 26, 28, 31, 34, 35, 39, 40, 43, 48, 50, 52, 54, 63, 68, 69, 74, 75, 85, 90, 91, 93, 95, 98, 99, 103, 104, 107, 112, 115, 12, 14, 8, 13, 18, 20, 26, 29, 32, 36, 37, 42, 45, 12, 17, 18, 28, 29, 33, 35, 41, 43, 46, 47, 52, 53, 16, 19, 20, 21, 22, 24, 26, 28, 32, 37, 38, 40, 49, 54, 55, 60, 61, 71, 76, 77, 79, 81, 84, 89, 91, 92, 93, 94, 12, 14, 8, 13, 18, 20, 26, 29, 31, 12, 14, 22, 23, 25, 26, 27, 28, 29, 34, 36, 12, 14, 22, 23, 25, 26, 27, 28, 29, 34, 36, 12, 14, 20, 21, 26, 27, 30, 31, 36, 38, 12, 14, 18, 21, 22, 27, 29, 12, 14, 18, 19, 24, 25, 32, 33, 38, 40, 8, 10, 11, 12, 17, 18, 28, 29, 33, 35, 41, 43, 46, 47, 52, 53, 16, 19, 21, 23, 25, 30, 33, 36, 37, 41, 42, 45, 50, 52, 54, 56, 65, 70, 71, 73, 74, 84, 89, 90, 95, 97, 100, 101, 105, 106, 109, 114, 117, 12, 14, 8, 13, 18, 20, 26, 29, 32, 38, 39, 44, 45, 50, 51, 56, 58, 60, 68, 69, 74, 75, 80, 82, 84, 88, 99, 100, 105, 108, 12, 17, 18, 28, 29, 33, 35, 41, 43, 46, 47, 52, 53, 16, 19, 21, 23, 25, 30, 33, 36, 37, 41, 42, 45, 50, 52, 54, 56, 65, 70, 71, 73, 74, 84, 89, 90, 95, 97, 100, 101, 105, 106, 109, 114, 117, 12, 14, 8, 13, 18, 20, 26, 29, 32, 36, 37, 45, 46, 51, 54, 12, 17, 18, 28, 29, 33, 35, 41, 43, 46, 47, 52, 53, 16, 19, 21, 23, 25, 33, 36, 39, 40, 44, 45, 48, 53, 55, 57, 59, 68, 73, 74, 76, 77, 87, 92, 93, 98, 100, 103, 104, 108, 109, 112, 117, 120, 12, 14, 8, 13, 18, 20, 26, 29, 32, 37, 40, 41, 44, 49, 52, 12, 17, 18, 28, 29, 33, 35, 41, 43, 46, 47, 52, 55, 56, 57, 58, 62, 63, 65, 69, 74, 75, 85, 90, 91, 98, 99, 8, 13, 18, 20, 26, 29, 32, 39, 40, 48, 51, 12, 17, 18, 28, 29, 33, 35, 41, 43, 46, 47, 52, 55, 63, 65, 67, 75, 78, 81, 82, 86, 87, 90, 95, 97, 99, 109, 114, 115, 117, 119, 120, 122, 123, 8, 11, 16, 18, 24, 27, 29, 34, 36, 38, 12, 17, 18, 25, 26, 29, 30, 36, 38, 43, 45, 46, 52, 55, 58, 59, 64, 65, 69, 70, 73, 78, 80, 8, 13, 18, 20, 26, 29, 31, 35, 36, 41, 43, 12, 17, 18, 25, 26, 29, 30, 36, 38, 41, 44, 48, 49, 55, 58, 61, 62, 67, 68, 71, 76, 78, 79, 80, 81, 8, 15, 21, 4, 8, 11, 12, 15, 18, 22, 23, 29, 30, 35, 36, 39, 40, 44, 45, 52, 53, 59, 61, 8, 12, 14, 19, 20, 30, 31, 34, 35, 41, 43, 45, 48, 55, 57, 8, 11, 17, 18, 12, 16, 17, 24, 25, 32, 34, 39, 41, 8, 13, 14, 12, 16, 17, 24, 25, 32, 34, 38, 40, 8, 15, 20, 4, 8, 11, 12, 17, 19, 20, 26, 27, 32, 33, 36, 37, 41, 42, 49, 50, 56, 58, 8, 13, 14, 24, 25, 28, 29, 35, 37, 39, 42, 49, 52, 55, 56, 64, 66, 71, 73, 75, 81, 82, 8, 15, 20, 4, 8, 11, 12, 15, 16, 19, 24, 25, 29, 30, 37, 39, 8, 13, 19, 21, 26, 27, 34, 35, 38, 39, 45, 47, 50, 55, 56, 60, 62, 8, 13, 14, 24, 25, 28, 29, 35, 37, 39, 42, 49, 52, 55, 56, 64, 66, 69, 74, 76, 81, 87, 88, 91, 92, 97, 100, 4, 8, 11, 12, 15, 16, 19, 24, 25, 29, 30, 37, 39, 8, 13, 19, 21, 26, 27, 34, 35, 38, 39, 45, 47, 50, 55, 56, 60, 62, 8, 13, 14, 24, 25, 28, 29, 35, 37, 39, 42, 49, 52, 55, 56, 64, 66, 69, 74, 76, 81, 87, 88, 91, 92, 97, 100, 4, 8, 11, 12, 15, 16, 20, 25, 26, 30, 31, 38, 40, 8, 13, 19, 21, 26, 27, 34, 35, 38, 39, 45, 47, 51, 56, 57, 61, 63, 8, 13, 14, 24, 25, 28, 29, 35, 37, 39, 42, 49, 52, 55, 56, 64, 66, 70, 75, 77, 82, 88, 89, 92, 93, 98, 101, 4, 8, 11, 12, 18, 19, 22, 23, 27, 28, 35, 37, 8, 12, 14, 23, 24, 32, 33, 36, 38, 8, 13, 14, 24, 25, 28, 29, 35, 37, 39, 42, 49, 52, 55, 56, 64, 66, 70, 72, 76, 77, 81, 84, 8, 13, 14, 24, 25, 28, 29, 35, 37, 39, 42, 49, 52, 55, 56, 64, 66, 70, 72, 76, 77, 81, 84 ]
de6b9961e0572338c87802314e7ae3cded5168b4
import matplotlib.pyplot as plt import numpy as np import scipy.io as scio import estimateGaussian as eg import multivariateGaussian as mvg import visualizeFit as vf import selectThreshold as st plt.ion() # np.set_printoptions(formatter={'float': '{: 0.6f}'.format}) """第1部分 加载示例数据集""" # 先通过一个小数据集进行异常检测 便于可视化 # 数据集包含两个特征 # 一些机器的等待时间和吞吐量 实验目的找出其中可能有异常的机器 print("Visualizing example dataset for outlier detection.") data = scio.loadmat("ex8data1.mat") X = data["X"] # 训练集样本特征矩阵 Xval = data["Xval"] # 验证集样本特征矩阵 yval = data["yval"].flatten() # 验证集样本标签 异常/正常 # 可视化样例训练集 plt.figure() plt.scatter(X[:, 0], X[:, 1], c="b", marker="x", s=15, linewidth=1) plt.axis([0, 30, 0, 30]) plt.xlabel("Latency (ms)") # x1等待时间 plt.ylabel("Throughput (mb/s") # x2吞吐量 input("Program paused. Press ENTER to continue") """第2部分 估计训练集的分布""" # 假设数据集的各个特征服从高斯分布 print("Visualizing Gaussian fit.") # 参数估计 mu, sigma2 = eg.estimate_gaussian(X) # 计算训练集的概率分布 p = mvg.multivariate_gaussian(X, mu, sigma2) # 可视化训练集的概率分布 画出等高线图 vf.visualize_fit(X, mu, sigma2) plt.xlabel("Latency (ms)") plt.ylabel("Throughput (mb/s") input("Program paused. Press ENTER to continue") """第3部分 基于验证集 得到一个最好的概率分布阈值""" pval = mvg.multivariate_gaussian(Xval, mu, sigma2) # 根据训练集的概率分布 得到验证集样本的概率 epsilon, f1 = st.select_threshold(yval, pval) # 选择合适的概率阈值 print("Best epsilon found using cross-validation: {:0.4e}".format(epsilon)) print("Best F1 on Cross Validation Set: {:0.6f}".format(f1)) print("(you should see a value epsilon of about 8.99e-05 and F1 of about 0.875)") # 标出训练集中的异常值 outliers = np.where(p < epsilon) plt.scatter(X[outliers, 0], X[outliers, 1], marker="o", facecolors="none", edgecolors="r") input("Program paused. Press ENTER to continue") """第4部分 基于大数据集 进行异常检测(特征数很多)""" data = scio.loadmat("ex8data2.mat") X = data["X"] # 训练集样本特征矩阵 Xval = data["Xval"] # 验证集样本特征矩阵 yval = data["yval"].flatten() # 验证集样本标签 1异常 0正常 # 参数估计 mu, sigma2 = eg.estimate_gaussian(X) # 计算训练集的概率分布 p = mvg.multivariate_gaussian(X, mu, sigma2) # 得到验证集每个样本的概率 pval = mvg.multivariate_gaussian(Xval, mu, sigma2) # 选择一个最好的阈值 epsilon, f1 = st.select_threshold(yval, pval) # 验证程序正确性 print("Best epsilon found using cross-validation: {:0.4e}".format(epsilon)) print("Best F1 on Cross Validation Set: {:0.6f}".format(f1)) print("# Outliers found: {}".format(np.sum(np.less(p, epsilon)))) # 训练集上的异常样本数量 print("(you should see a value epsilon of about 1.38e-18, F1 of about 0.615, and 117 outliers)") input("ex8 Finished. Press ENTER to exit")
[ 485, 13168, 51, 18553, 641, 6020, 222, 485, 6610, 641, 2115, 222, 485, 18945, 51, 735, 641, 2240, 735, 222, 222, 485, 21251, 33651, 641, 16314, 222, 485, 10164, 28206, 33651, 641, 364, 8168, 222, 485, 34895, 14088, 641, 32393, 222, 485, 2209, 10699, 641, 395, 222, 222, 6670, 51, 304, 365, 222, 40, 2115, 51, 489, 100, 1243, 2200, 45, 14565, 12657, 1832, 972, 8950, 63, 244, 53, 51, 59, 107, 17064, 1664, 1770, 222, 222, 3012, 8980, 54, 16807, 244, 18779, 22774, 4857, 9744, 3012, 222, 222, 40, 244, 11535, 10167, 4597, 7333, 4857, 9744, 9966, 20579, 33612, 244, 244, 21029, 5024, 3449, 14524, 6747, 222, 222, 40, 31094, 9744, 17723, 18938, 37912, 222, 40, 244, 18848, 35930, 1096, 33238, 8382, 4496, 1635, 276, 1635, 262, 6975, 244, 244, 6058, 11767, 37513, 14410, 4904, 26978, 11363, 3052, 20579, 1096, 35930, 499, 222, 1243, 459, 7442, 6206, 2301, 5984, 456, 986, 5477, 13926, 7164, 499, 222, 624, 299, 2240, 735, 51, 963, 1322, 459, 346, 61, 624, 54, 51, 1322, 678, 222, 93, 299, 727, 1388, 93, 1465, 244, 607, 244, 30917, 9744, 10214, 5207, 37912, 43017, 222, 93, 718, 299, 727, 1388, 93, 718, 1465, 244, 607, 244, 17172, 9744, 10214, 5207, 37912, 43017, 222, 126, 718, 299, 727, 1388, 126, 718, 6567, 15621, 365, 244, 607, 244, 17172, 9744, 10214, 5207, 24534, 244, 20579, 52, 29298, 222, 222, 40, 34538, 14524, 6747, 10214, 7229, 30917, 9744, 222, 6670, 51, 7770, 365, 222, 6670, 51, 18735, 45, 93, 7175, 244, 53, 636, 1618, 7175, 244, 54, 636, 300, 366, 103, 411, 10091, 366, 125, 411, 328, 66, 54, 58, 49, 36377, 66, 54, 46, 222, 6670, 51, 5167, 2034, 53, 49, 244, 56, 53, 49, 244, 53, 49, 244, 56, 53, 1156, 222, 6670, 51, 17704, 459, 29006, 327, 893, 14589, 244, 607, 837, 54, 33238, 8382, 222, 6670, 51, 17437, 459, 17729, 543, 327, 1253, 52, 120, 678, 244, 607, 837, 55, 1635, 276, 1635, 262, 6975, 499, 222, 1151, 459, 5756, 33611, 51, 22497, 39139, 391, 4056, 678, 222, 222, 3012, 8980, 55, 16807, 244, 43141, 8880, 30917, 9744, 1096, 35942, 3012, 222, 40, 244, 27466, 6115, 4857, 9744, 1096, 15973, 2678, 37912, 8127, 9682, 9863, 26075, 35942, 222, 222, 1243, 459, 7442, 6206, 29995, 8240, 7164, 222, 222, 40, 31365, 43141, 8880, 222, 7009, 49, 16553, 55, 299, 16314, 51, 27348, 100, 35828, 45, 93, 46, 222, 222, 40, 244, 16270, 30917, 9744, 1096, 24320, 16459, 35942, 222, 117, 299, 364, 8168, 51, 7758, 28206, 100, 35828, 45, 93, 49, 11860, 49, 16553, 55, 46, 222, 40, 34538, 14524, 6747, 30917, 9744, 1096, 24320, 16459, 35942, 244, 244, 16380, 4904, 8997, 9863, 9717, 7071, 222, 17248, 51, 9005, 537, 100, 4803, 45, 93, 49, 11860, 49, 16553, 55, 46, 222, 6670, 51, 17704, 459, 29006, 327, 893, 14589, 222, 6670, 51, 17437, 459, 17729, 543, 327, 1253, 52, 120, 678, 222, 222, 1151, 459, 5756, 33611, 51, 22497, 39139, 391, 4056, 678, 222, 222, 3012, 8980, 56, 16807, 244, 24387, 17172, 9744, 244, 25185, 4597, 6400, 30137, 24320, 16459, 35942, 6966, 254, 6035, 3012, 222, 117, 718, 299, 364, 8168, 51, 7758, 28206, 100, 35828, 45, 93, 718, 49, 11860, 49, 16553, 55, 46, 244, 607, 29225, 30917, 9744, 1096, 24320, 16459, 35942, 244, 25185, 17172, 9744, 10214, 5207, 1096, 24320, 16459, 222, 222, 20384, 49, 315, 54, 299, 395, 51, 1632, 100, 10488, 45, 126, 718, 49, 317, 718, 46, 244, 607, 244, 14114, 6363, 22434, 1096, 24320, 16459, 6966, 254, 6035, 222, 1243, 459, 15050, 23578, 2448, 1493, 8252, 50, 6523, 63, 7389, 53, 51, 57, 106, 16320, 1664, 45, 20384, 509, 222, 1243, 459, 15050, 525, 54, 563, 19221, 11348, 1776, 63, 7389, 53, 51, 59, 107, 16320, 1664, 45, 107, 54, 509, 222, 1243, 21858, 9626, 1414, 2337, 331, 804, 23578, 451, 2645, 244, 61, 51, 62, 62, 106, 50, 53, 58, 480, 525, 54, 451, 2645, 244, 53, 51, 61, 60, 58, 14589, 222, 222, 40, 244, 7044, 4904, 30917, 9744, 10194, 20579, 6035, 222, 560, 20333, 299, 2115, 51, 2786, 45, 117, 350, 23578, 46, 222, 6670, 51, 18735, 45, 93, 96, 560, 20333, 49, 244, 53, 636, 1618, 96, 560, 20333, 49, 244, 54, 636, 10091, 366, 116, 411, 8873, 8803, 366, 4129, 411, 6766, 8803, 366, 119, 678, 222, 222, 1151, 459, 5756, 33611, 51, 22497, 39139, 391, 4056, 678, 499, 222, 3012, 8980, 57, 16807, 244, 24387, 5012, 4857, 9744, 244, 9966, 20579, 33612, 5200, 37912, 2378, 29627, 5114, 3012, 222, 624, 299, 2240, 735, 51, 963, 1322, 459, 346, 61, 624, 55, 51, 1322, 678, 222, 93, 299, 727, 1388, 93, 1465, 244, 607, 244, 30917, 9744, 10214, 5207, 37912, 43017, 222, 93, 718, 299, 727, 1388, 93, 718, 1465, 244, 607, 244, 17172, 9744, 10214, 5207, 37912, 43017, 222, 126, 718, 299, 727, 1388, 126, 718, 6567, 15621, 365, 244, 607, 244, 17172, 9744, 10214, 5207, 24534, 244, 54, 20579, 244, 53, 29298, 222, 222, 40, 31365, 43141, 8880, 222, 7009, 49, 16553, 55, 299, 16314, 51, 27348, 100, 35828, 45, 93, 46, 222, 222, 40, 244, 16270, 30917, 9744, 1096, 24320, 16459, 35942, 222, 117, 299, 364, 8168, 51, 7758, 28206, 100, 35828, 45, 93, 49, 11860, 49, 16553, 55, 46, 222, 222, 40, 244, 25185, 17172, 9744, 20045, 10214, 5207, 1096, 24320, 16459, 222, 117, 718, 299, 364, 8168, 51, 7758, 28206, 100, 35828, 45, 93, 718, 49, 11860, 49, 16553, 55, 46, 222, 222, 40, 244, 14114, 4597, 6400, 30137, 6966, 254, 6035, 222, 20384, 49, 315, 54, 299, 395, 51, 1632, 100, 10488, 45, 126, 718, 49, 317, 718, 46, 222, 222, 40, 244, 17172, 12702, 30264, 6242, 222, 1243, 459, 15050, 23578, 2448, 1493, 8252, 50, 6523, 63, 7389, 53, 51, 57, 106, 16320, 1664, 45, 20384, 509, 222, 1243, 459, 15050, 525, 54, 563, 19221, 11348, 1776, 63, 7389, 53, 51, 59, 107, 16320, 1664, 45, 107, 54, 509, 222, 1243, 4139, 4322, 20333, 2448, 63, 16669, 1664, 45, 2399, 51, 1055, 45, 2399, 51, 2290, 45, 117, 49, 23578, 7775, 244, 607, 244, 30917, 9744, 24905, 20579, 10214, 5207, 22439, 222, 1243, 21858, 9626, 1414, 2337, 331, 804, 23578, 451, 2645, 244, 54, 51, 56, 61, 106, 50, 54, 61, 49, 525, 54, 451, 2645, 244, 53, 51, 59, 54, 58, 49, 480, 244, 54, 54, 60, 986, 20333, 14589, 222, 222, 1151, 459, 346, 61, 43089, 51, 22497, 39139, 391, 4338, 678, 222 ]
[ "import", "Ġmatplotlib", ".", "pyplot", "Ġas", "Ġplt", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "import", "Ġscipy", ".", "io", "Ġas", "Ġsc", "io", "Ċ", "Ċ", "import", "Ġestimate", "Gaussian", "Ġas", "Ġeg", "Ċ", "import", "Ġmult", "ivariate", "Gaussian", "Ġas", "Ġm", "vg", "Ċ", "import", "Ġvisualize", "Fit", "Ġas", "Ġvf", "Ċ", "import", "Ġselect", "Threshold", "Ġas", "Ġst", "Ċ", "Ċ", "plt", ".", "ion", "()", "Ċ", "#", "Ġnp", ".", "set", "_", "print", "options", "(", "formatter", "={'", "float", "':", "Ġ'{", ":", "Ġ", "0", ".", "6", "f", "}'.", "format", "})", "Ċ", "Ċ", "\"\"\"", "第", "1", "éĥ¨åĪĨ", "Ġ", "åĬłè½½", "示ä¾ĭ", "æķ°æį®", "éĽĨ", "\"\"\"", "Ċ", "Ċ", "#", "Ġ", "åħĪ", "éĢļè¿ĩ", "ä¸Ģ个", "å°ı", "æķ°æį®", "éĽĨ", "è¿Ľè¡Į", "å¼Ĥ常", "æ£Ģæµĭ", "Ġ", "Ġ", "便", "äºİ", "åı¯", "è§Ĩ", "åĮĸ", "Ċ", "Ċ", "#", "Ġæķ°æį®", "éĽĨ", "åĮħåIJ«", "两个", "çī¹å¾ģ", "Ċ", "#", "Ġ", "ä¸ĢäºĽ", "æľºåύ", "çļĦ", "çŃīå¾ħ", "æĹ¶éĹ´", "åĴĮ", "åIJ", "ŀ", "åIJ", "IJ", "éĩı", "Ġ", "Ġ", "å®ŀ", "éªĮ", "缮çļĦ", "æī¾", "åĩº", "åħ¶ä¸Ń", "åı¯èĥ½", "æľī", "å¼Ĥ常", "çļĦ", "æľºåύ", "ĊĊ", "Ċ", "print", "(\"", "Visual", "izing", "Ġexample", "Ġdataset", "Ġfor", "Ġout", "lier", "Ġdetection", ".\")", "ĊĊ", "Ċ", "data", "Ġ=", "Ġsc", "io", ".", "load", "mat", "(\"", "ex", "8", "data", "1", ".", "mat", "\")", "Ċ", "X", "Ġ=", "Ġdata", "[\"", "X", "\"]", "Ġ", "Ġ#", "Ġ", "è®Ńç»ĥ", "éĽĨ", "æł·", "æľ¬", "çī¹å¾ģ", "磩éĺµ", "Ċ", "X", "val", "Ġ=", "Ġdata", "[\"", "X", "val", "\"]", "Ġ", "Ġ#", "Ġ", "éªĮè¯ģ", "éĽĨ", "æł·", "æľ¬", "çī¹å¾ģ", "磩éĺµ", "Ċ", "y", "val", "Ġ=", "Ġdata", "[\"", "y", "val", "\"].", "flatten", "()", "Ġ", "Ġ#", "Ġ", "éªĮè¯ģ", "éĽĨ", "æł·", "æľ¬", "æłĩçѾ", "Ġ", "å¼Ĥ常", "/", "æŃ£å¸¸", "Ċ", "Ċ", "#", "Ġåı¯", "è§Ĩ", "åĮĸ", "æł·", "ä¾ĭ", "è®Ńç»ĥ", "éĽĨ", "Ċ", "plt", ".", "figure", "()", "Ċ", "plt", ".", "scatter", "(", "X", "[:,", "Ġ", "0", "],", "ĠX", "[:,", "Ġ", "1", "],", "Ġc", "=\"", "b", "\",", "Ġmarker", "=\"", "x", "\",", "Ġs", "=", "1", "5", ",", "Ġlinewidth", "=", "1", ")", "Ċ", "plt", ".", "axis", "([", "0", ",", "Ġ", "3", "0", ",", "Ġ", "0", ",", "Ġ", "3", "0", "])", "Ċ", "plt", ".", "xlabel", "(\"", "Latency", "Ġ(", "ms", ")\")", "Ġ", "Ġ#", "Ġx", "1", "çŃīå¾ħ", "æĹ¶éĹ´", "Ċ", "plt", ".", "ylabel", "(\"", "Through", "put", "Ġ(", "mb", "/", "s", "\")", "Ġ", "Ġ#", "Ġx", "2", "åIJ", "ŀ", "åIJ", "IJ", "éĩı", "ĊĊ", "Ċ", "input", "(\"", "Program", "Ġpaused", ".", "ĠPress", "ĠENTER", "Ġto", "Ġcontinue", "\")", "Ċ", "Ċ", "\"\"\"", "第", "2", "éĥ¨åĪĨ", "Ġ", "ä¼°", "计", "è®Ńç»ĥ", "éĽĨ", "çļĦ", "åĪĨå¸ĥ", "\"\"\"", "Ċ", "#", "Ġ", "åģĩ", "设", "æķ°æį®", "éĽĨ", "çļĦ", "åIJĦ", "个", "çī¹å¾ģ", "æľį", "ä»İ", "é«ĺ", "æĸ¯", "åĪĨå¸ĥ", "Ċ", "Ċ", "print", "(\"", "Visual", "izing", "ĠGaussian", "Ġfit", ".\")", "Ċ", "Ċ", "#", "ĠåıĤæķ°", "ä¼°", "计", "Ċ", "mu", ",", "Ġsigma", "2", "Ġ=", "Ġeg", ".", "estimate", "_", "gaussian", "(", "X", ")", "Ċ", "Ċ", "#", "Ġ", "计ç®Ĺ", "è®Ńç»ĥ", "éĽĨ", "çļĦ", "æ¦Ĥ", "çİĩ", "åĪĨå¸ĥ", "Ċ", "p", "Ġ=", "Ġm", "vg", ".", "mult", "ivariate", "_", "gaussian", "(", "X", ",", "Ġmu", ",", "Ġsigma", "2", ")", "Ċ", "#", "Ġåı¯", "è§Ĩ", "åĮĸ", "è®Ńç»ĥ", "éĽĨ", "çļĦ", "æ¦Ĥ", "çİĩ", "åĪĨå¸ĥ", "Ġ", "Ġ", "çĶ»", "åĩº", "çŃī", "é«ĺ", "线", "åĽ¾", "Ċ", "vf", ".", "visual", "ize", "_", "fit", "(", "X", ",", "Ġmu", ",", "Ġsigma", "2", ")", "Ċ", "plt", ".", "xlabel", "(\"", "Latency", "Ġ(", "ms", ")\")", "Ċ", "plt", ".", "ylabel", "(\"", "Through", "put", "Ġ(", "mb", "/", "s", "\")", "Ċ", "Ċ", "input", "(\"", "Program", "Ġpaused", ".", "ĠPress", "ĠENTER", "Ġto", "Ġcontinue", "\")", "Ċ", "Ċ", "\"\"\"", "第", "3", "éĥ¨åĪĨ", "Ġ", "åŁºäºİ", "éªĮè¯ģ", "éĽĨ", "Ġ", "å¾Ĺåΰ", "ä¸Ģ个", "æľĢ", "好çļĦ", "æ¦Ĥ", "çİĩ", "åĪĨå¸ĥ", "éĺ", "Ī", "å̼", "\"\"\"", "Ċ", "p", "val", "Ġ=", "Ġm", "vg", ".", "mult", "ivariate", "_", "gaussian", "(", "X", "val", ",", "Ġmu", ",", "Ġsigma", "2", ")", "Ġ", "Ġ#", "Ġæł¹æį®", "è®Ńç»ĥ", "éĽĨ", "çļĦ", "æ¦Ĥ", "çİĩ", "åĪĨå¸ĥ", "Ġ", "å¾Ĺåΰ", "éªĮè¯ģ", "éĽĨ", "æł·", "æľ¬", "çļĦ", "æ¦Ĥ", "çİĩ", "Ċ", "Ċ", "epsilon", ",", "Ġf", "1", "Ġ=", "Ġst", ".", "select", "_", "threshold", "(", "y", "val", ",", "Ġp", "val", ")", "Ġ", "Ġ#", "Ġ", "éĢīæĭ©", "åIJĪ", "éĢĤ", "çļĦ", "æ¦Ĥ", "çİĩ", "éĺ", "Ī", "å̼", "Ċ", "print", "(\"", "Best", "Ġepsilon", "Ġfound", "Ġusing", "Ġcross", "-", "validation", ":", "Ġ{:", "0", ".", "4", "e", "}\".", "format", "(", "epsilon", "))", "Ċ", "print", "(\"", "Best", "ĠF", "1", "Ġon", "ĠCross", "ĠValidation", "ĠSet", ":", "Ġ{:", "0", ".", "6", "f", "}\".", "format", "(", "f", "1", "))", "Ċ", "print", "(\"(", "you", "Ġshould", "Ġsee", "Ġa", "Ġvalue", "Ġepsilon", "Ġof", "Ġabout", "Ġ", "8", ".", "9", "9", "e", "-", "0", "5", "Ġand", "ĠF", "1", "Ġof", "Ġabout", "Ġ", "0", ".", "8", "7", "5", ")\")", "Ċ", "Ċ", "#", "Ġ", "æłĩ", "åĩº", "è®Ńç»ĥ", "éĽĨ", "ä¸ŃçļĦ", "å¼Ĥ常", "å̼", "Ċ", "out", "liers", "Ġ=", "Ġnp", ".", "where", "(", "p", "Ġ<", "Ġepsilon", ")", "Ċ", "plt", ".", "scatter", "(", "X", "[", "out", "liers", ",", "Ġ", "0", "],", "ĠX", "[", "out", "liers", ",", "Ġ", "1", "],", "Ġmarker", "=\"", "o", "\",", "Ġface", "colors", "=\"", "none", "\",", "Ġedge", "colors", "=\"", "r", "\")", "Ċ", "Ċ", "input", "(\"", "Program", "Ġpaused", ".", "ĠPress", "ĠENTER", "Ġto", "Ġcontinue", "\")", "ĊĊ", "Ċ", "\"\"\"", "第", "4", "éĥ¨åĪĨ", "Ġ", "åŁºäºİ", "大", "æķ°æį®", "éĽĨ", "Ġ", "è¿Ľè¡Į", "å¼Ĥ常", "æ£Ģæµĭ", "ï¼Ī", "çī¹å¾ģ", "æķ°", "å¾Īå¤ļ", "ï¼ī", "\"\"\"", "Ċ", "data", "Ġ=", "Ġsc", "io", ".", "load", "mat", "(\"", "ex", "8", "data", "2", ".", "mat", "\")", "Ċ", "X", "Ġ=", "Ġdata", "[\"", "X", "\"]", "Ġ", "Ġ#", "Ġ", "è®Ńç»ĥ", "éĽĨ", "æł·", "æľ¬", "çī¹å¾ģ", "磩éĺµ", "Ċ", "X", "val", "Ġ=", "Ġdata", "[\"", "X", "val", "\"]", "Ġ", "Ġ#", "Ġ", "éªĮè¯ģ", "éĽĨ", "æł·", "æľ¬", "çī¹å¾ģ", "磩éĺµ", "Ċ", "y", "val", "Ġ=", "Ġdata", "[\"", "y", "val", "\"].", "flatten", "()", "Ġ", "Ġ#", "Ġ", "éªĮè¯ģ", "éĽĨ", "æł·", "æľ¬", "æłĩçѾ", "Ġ", "1", "å¼Ĥ常", "Ġ", "0", "æŃ£å¸¸", "Ċ", "Ċ", "#", "ĠåıĤæķ°", "ä¼°", "计", "Ċ", "mu", ",", "Ġsigma", "2", "Ġ=", "Ġeg", ".", "estimate", "_", "gaussian", "(", "X", ")", "Ċ", "Ċ", "#", "Ġ", "计ç®Ĺ", "è®Ńç»ĥ", "éĽĨ", "çļĦ", "æ¦Ĥ", "çİĩ", "åĪĨå¸ĥ", "Ċ", "p", "Ġ=", "Ġm", "vg", ".", "mult", "ivariate", "_", "gaussian", "(", "X", ",", "Ġmu", ",", "Ġsigma", "2", ")", "Ċ", "Ċ", "#", "Ġ", "å¾Ĺåΰ", "éªĮè¯ģ", "éĽĨ", "æ¯ı个", "æł·", "æľ¬", "çļĦ", "æ¦Ĥ", "çİĩ", "Ċ", "p", "val", "Ġ=", "Ġm", "vg", ".", "mult", "ivariate", "_", "gaussian", "(", "X", "val", ",", "Ġmu", ",", "Ġsigma", "2", ")", "Ċ", "Ċ", "#", "Ġ", "éĢīæĭ©", "ä¸Ģ个", "æľĢ", "好çļĦ", "éĺ", "Ī", "å̼", "Ċ", "epsilon", ",", "Ġf", "1", "Ġ=", "Ġst", ".", "select", "_", "threshold", "(", "y", "val", ",", "Ġp", "val", ")", "Ċ", "Ċ", "#", "Ġ", "éªĮè¯ģ", "ç¨ĭåºı", "æŃ£ç¡®", "æĢ§", "Ċ", "print", "(\"", "Best", "Ġepsilon", "Ġfound", "Ġusing", "Ġcross", "-", "validation", ":", "Ġ{:", "0", ".", "4", "e", "}\".", "format", "(", "epsilon", "))", "Ċ", "print", "(\"", "Best", "ĠF", "1", "Ġon", "ĠCross", "ĠValidation", "ĠSet", ":", "Ġ{:", "0", ".", "6", "f", "}\".", "format", "(", "f", "1", "))", "Ċ", "print", "(\"#", "ĠOut", "liers", "Ġfound", ":", "Ġ{}\".", "format", "(", "np", ".", "sum", "(", "np", ".", "less", "(", "p", ",", "Ġepsilon", "))))", "Ġ", "Ġ#", "Ġ", "è®Ńç»ĥ", "éĽĨ", "ä¸ĬçļĦ", "å¼Ĥ常", "æł·", "æľ¬", "æķ°éĩı", "Ċ", "print", "(\"(", "you", "Ġshould", "Ġsee", "Ġa", "Ġvalue", "Ġepsilon", "Ġof", "Ġabout", "Ġ", "1", ".", "3", "8", "e", "-", "1", "8", ",", "ĠF", "1", "Ġof", "Ġabout", "Ġ", "0", ".", "6", "1", "5", ",", "Ġand", "Ġ", "1", "1", "7", "Ġout", "liers", ")\")", "Ċ", "Ċ", "input", "(\"", "ex", "8", "ĠFinished", ".", "ĠPress", "ĠENTER", "Ġto", "Ġexit", "\")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 42, 42, 42, 42, 42, 42, 42, 42, 43, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 88, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95 ]
[ 1, 7, 18, 19, 25, 28, 32, 1, 7, 13, 16, 19, 1, 7, 13, 14, 16, 19, 22, 24, 1, 1, 7, 16, 24, 27, 30, 1, 7, 12, 20, 28, 31, 33, 35, 1, 7, 17, 20, 23, 26, 1, 7, 14, 23, 26, 29, 1, 1, 4, 5, 8, 10, 1, 2, 5, 6, 9, 10, 15, 22, 23, 32, 35, 40, 42, 45, 46, 47, 48, 49, 50, 51, 54, 60, 62, 1, 1, 4, 5, 6, 8, 9, 11, 13, 15, 16, 19, 1, 1, 2, 3, 4, 6, 8, 9, 11, 12, 14, 16, 18, 19, 20, 21, 22, 23, 24, 25, 1, 1, 2, 5, 6, 8, 10, 12, 1, 2, 3, 5, 7, 8, 10, 12, 13, 13, 14, 14, 15, 16, 17, 18, 19, 20, 22, 23, 24, 26, 28, 29, 31, 32, 34, 1, 1, 6, 8, 14, 19, 27, 35, 39, 43, 47, 57, 60, 1, 1, 5, 7, 10, 12, 13, 17, 20, 22, 24, 25, 29, 30, 31, 34, 36, 1, 2, 4, 9, 11, 12, 14, 15, 17, 18, 20, 21, 22, 23, 25, 27, 1, 2, 5, 7, 12, 14, 15, 18, 20, 21, 23, 24, 26, 27, 28, 29, 31, 33, 1, 2, 5, 7, 12, 14, 15, 18, 21, 28, 30, 31, 33, 34, 36, 37, 38, 39, 41, 42, 44, 45, 47, 1, 1, 2, 4, 5, 6, 7, 8, 10, 11, 1, 4, 5, 11, 13, 1, 4, 5, 12, 13, 14, 17, 18, 19, 21, 23, 26, 27, 28, 30, 32, 34, 35, 37, 44, 46, 47, 49, 51, 52, 53, 54, 55, 65, 66, 67, 68, 1, 4, 5, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 1, 4, 5, 11, 13, 20, 22, 24, 27, 28, 30, 32, 33, 35, 37, 1, 4, 5, 11, 13, 20, 23, 25, 27, 28, 29, 31, 32, 34, 36, 37, 37, 38, 38, 39, 40, 1, 1, 6, 8, 15, 22, 23, 29, 35, 38, 47, 49, 1, 1, 4, 5, 6, 8, 9, 10, 11, 13, 14, 15, 17, 20, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 19, 1, 1, 6, 8, 14, 19, 28, 32, 35, 1, 1, 2, 5, 6, 7, 1, 3, 4, 10, 11, 13, 16, 17, 25, 26, 34, 35, 36, 37, 1, 1, 2, 3, 5, 7, 8, 9, 10, 11, 13, 1, 2, 4, 6, 8, 9, 13, 21, 22, 30, 31, 32, 33, 36, 37, 43, 44, 45, 1, 2, 4, 5, 6, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 1, 3, 4, 10, 13, 14, 17, 18, 19, 20, 23, 24, 30, 31, 32, 1, 4, 5, 11, 13, 20, 22, 24, 27, 1, 4, 5, 11, 13, 20, 23, 25, 27, 28, 29, 31, 1, 1, 6, 8, 15, 22, 23, 29, 35, 38, 47, 49, 1, 1, 4, 5, 6, 8, 9, 11, 13, 14, 15, 17, 19, 20, 22, 23, 24, 26, 26, 27, 28, 31, 1, 2, 5, 7, 9, 11, 12, 16, 24, 25, 33, 34, 35, 38, 39, 42, 43, 49, 50, 51, 52, 54, 57, 59, 60, 61, 62, 63, 65, 66, 68, 70, 71, 72, 73, 74, 75, 76, 1, 1, 8, 9, 11, 12, 14, 17, 18, 24, 25, 34, 35, 36, 39, 40, 42, 45, 46, 47, 49, 50, 52, 53, 54, 55, 56, 57, 57, 58, 59, 1, 6, 8, 12, 20, 26, 32, 38, 39, 49, 50, 53, 54, 55, 56, 57, 60, 66, 67, 74, 76, 1, 6, 8, 12, 14, 15, 18, 24, 35, 39, 40, 43, 44, 45, 46, 47, 50, 56, 57, 58, 59, 61, 1, 6, 9, 12, 19, 23, 25, 31, 39, 42, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 61, 63, 64, 67, 73, 74, 75, 76, 77, 78, 79, 82, 1, 1, 2, 3, 4, 5, 7, 8, 10, 12, 13, 1, 4, 9, 11, 14, 15, 20, 21, 22, 24, 32, 33, 1, 4, 5, 12, 13, 14, 15, 18, 23, 24, 25, 26, 28, 30, 31, 34, 39, 40, 41, 42, 44, 51, 53, 54, 56, 61, 67, 69, 73, 75, 80, 86, 88, 89, 91, 1, 1, 6, 8, 15, 22, 23, 29, 35, 38, 47, 49, 1, 1, 4, 5, 6, 8, 9, 11, 12, 14, 15, 16, 18, 20, 22, 23, 25, 26, 28, 29, 32, 1, 5, 7, 10, 12, 13, 17, 20, 22, 24, 25, 29, 30, 31, 34, 36, 1, 2, 4, 9, 11, 12, 14, 15, 17, 18, 20, 21, 22, 23, 25, 27, 1, 2, 5, 7, 12, 14, 15, 18, 20, 21, 23, 24, 26, 27, 28, 29, 31, 33, 1, 2, 5, 7, 12, 14, 15, 18, 21, 28, 30, 31, 33, 34, 36, 37, 38, 39, 41, 42, 43, 45, 46, 47, 49, 1, 1, 2, 5, 6, 7, 1, 3, 4, 10, 11, 13, 16, 17, 25, 26, 34, 35, 36, 37, 1, 1, 2, 3, 5, 7, 8, 9, 10, 11, 13, 1, 2, 4, 6, 8, 9, 13, 21, 22, 30, 31, 32, 33, 36, 37, 43, 44, 45, 1, 1, 2, 3, 5, 7, 8, 10, 11, 12, 13, 14, 15, 1, 2, 5, 7, 9, 11, 12, 16, 24, 25, 33, 34, 35, 38, 39, 42, 43, 49, 50, 51, 1, 1, 2, 3, 5, 7, 8, 10, 10, 11, 12, 1, 8, 9, 11, 12, 14, 17, 18, 24, 25, 34, 35, 36, 39, 40, 42, 45, 46, 1, 1, 2, 3, 5, 7, 9, 10, 1, 6, 8, 12, 20, 26, 32, 38, 39, 49, 50, 53, 54, 55, 56, 57, 60, 66, 67, 74, 76, 1, 6, 8, 12, 14, 15, 18, 24, 35, 39, 40, 43, 44, 45, 46, 47, 50, 56, 57, 58, 59, 61, 1, 6, 9, 13, 18, 24, 25, 30, 36, 37, 39, 40, 43, 44, 46, 47, 51, 52, 53, 54, 62, 66, 67, 69, 70, 72, 73, 75, 77, 78, 79, 81, 1, 6, 9, 12, 19, 23, 25, 31, 39, 42, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 60, 61, 64, 70, 71, 72, 73, 74, 75, 76, 77, 81, 82, 83, 84, 85, 89, 94, 97, 1, 1, 6, 8, 10, 11, 20, 21, 27, 33, 36, 41, 43 ]
e37e468d8a41b8711fb0eb4ddec7db67691f9156
""" Created on 3 Jul 2009 @author: charanpal An abstract base class which represents a graph generator. The graph generator takes an existing empty graph and produces edges over it. """ from apgl.util.Util import Util class AbstractGraphGenerator(object): def generate(self, graph): Util.abstract()
[ 3012, 222, 6880, 563, 244, 56, 11023, 244, 55, 53, 53, 62, 222, 222, 69, 2133, 63, 1370, 297, 11567, 222, 222, 1062, 5560, 1712, 462, 1532, 10684, 331, 4023, 9790, 51, 906, 4023, 9790, 222, 121, 4085, 619, 4917, 3517, 4023, 480, 20700, 12077, 2308, 580, 51, 222, 3012, 222, 222, 1097, 1863, 1861, 51, 1058, 51, 1747, 1220, 7292, 499, 222, 842, 7406, 3418, 4829, 45, 1491, 731, 303, 684, 4468, 45, 803, 49, 4023, 731, 310, 7292, 51, 9431, 365, 222 ]
[ "\"\"\"", "Ċ", "Created", "Ġon", "Ġ", "3", "ĠJul", "Ġ", "2", "0", "0", "9", "Ċ", "Ċ", "@", "author", ":", "Ġchar", "an", "pal", "Ċ", "Ċ", "An", "Ġabstract", "Ġbase", "Ġclass", "Ġwhich", "Ġrepresents", "Ġa", "Ġgraph", "Ġgenerator", ".", "ĠThe", "Ġgraph", "Ġgenerator", "Ċ", "t", "akes", "Ġan", "Ġexisting", "Ġempty", "Ġgraph", "Ġand", "Ġproduces", "Ġedges", "Ġover", "Ġit", ".", "Ċ", "\"\"\"", "Ċ", "Ċ", "from", "Ġap", "gl", ".", "util", ".", "Util", "Ġimport", "ĠUtil", "ĊĊ", "Ċ", "class", "ĠAbstract", "Graph", "Generator", "(", "object", "):", "ĊĠĠĠ", "Ġdef", "Ġgenerate", "(", "self", ",", "Ġgraph", "):", "ĊĠĠĠĠĠĠĠ", "ĠUtil", ".", "abstract", "()", "Ċ" ]
[ 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 12, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15 ]
[ 1, 4, 1, 8, 11, 12, 13, 17, 18, 19, 20, 21, 22, 1, 1, 2, 8, 9, 14, 16, 19, 1, 1, 3, 12, 17, 23, 29, 40, 42, 48, 58, 59, 63, 69, 79, 1, 2, 6, 9, 18, 24, 30, 34, 43, 49, 54, 57, 58, 1, 4, 1, 1, 5, 8, 10, 11, 15, 16, 20, 27, 32, 1, 1, 6, 15, 20, 29, 30, 36, 38, 4, 8, 17, 18, 22, 23, 29, 31, 8, 13, 14, 22, 24 ]
dc226a646af32d052c6d51832b95a340d6986e08
print("\n") # Первый вариант def fn1(): print("One") def fn2(): print("Two") def fn3(): print("Three") fndict = {"A": fn1, "B": fn2, "C": fn3} keynames = ["A", "B", "C"] fndict[keynames[1]]() fndict["C"]() # Второй вариант def add(one, two): c = one + two print(c) print(type(c)) def sub(one, two): c = one - two print(c) print(type(c)) trainee = {1: add, 2: sub} trainee[1](10, 4) print("\n PROVERKA TIPA", type(trainee[1])) print("\n PROVERKA TIPA", type(trainee[1](10, 4)))
[ 1243, 5564, 115, 678, 222, 222, 40, 15679, 4994, 3717, 23238, 3876, 12571, 1286, 4905, 1288, 499, 222, 610, 2788, 54, 2284, 303, 1489, 459, 3597, 678, 499, 222, 610, 2788, 55, 2284, 303, 1489, 459, 8625, 678, 499, 222, 610, 2788, 56, 2284, 303, 1489, 459, 17828, 678, 499, 222, 3379, 2734, 299, 3479, 70, 582, 2788, 54, 49, 332, 71, 582, 2788, 55, 49, 332, 72, 582, 2788, 56, 130, 222, 222, 697, 4288, 299, 3059, 70, 411, 332, 71, 411, 332, 72, 1465, 222, 222, 3379, 2734, 96, 697, 4288, 96, 54, 3234, 365, 222, 3379, 2734, 1388, 72, 1465, 365, 499, 222, 40, 16787, 27744, 9436, 3876, 12571, 1286, 4905, 1288, 499, 222, 610, 1035, 45, 677, 49, 3161, 731, 303, 300, 299, 1611, 494, 3161, 303, 1489, 45, 104, 46, 303, 1489, 45, 700, 45, 104, 509, 499, 222, 610, 1381, 45, 677, 49, 3161, 731, 303, 300, 299, 1611, 449, 3161, 303, 1489, 45, 104, 46, 303, 1489, 45, 700, 45, 104, 509, 499, 222, 2704, 501, 106, 299, 320, 54, 63, 1035, 49, 244, 55, 63, 1381, 130, 222, 222, 2704, 501, 106, 96, 54, 748, 54, 53, 49, 244, 57, 46, 222, 1243, 5564, 115, 4174, 1986, 21729, 413, 2046, 70, 411, 847, 45, 2704, 501, 106, 96, 54, 5310, 222, 1243, 5564, 115, 4174, 1986, 21729, 413, 2046, 70, 411, 847, 45, 2704, 501, 106, 96, 54, 748, 54, 53, 49, 244, 57, 2636, 222 ]
[ "print", "(\"\\", "n", "\")", "Ċ", "Ċ", "#", "ĠÐŁ", "еÑĢ", "в", "Ñĭй", "Ġв", "аÑĢ", "и", "ан", "ÑĤ", "ĊĊ", "Ċ", "def", "Ġfn", "1", "():", "ĊĠĠĠ", "Ġprint", "(\"", "One", "\")", "ĊĊ", "Ċ", "def", "Ġfn", "2", "():", "ĊĠĠĠ", "Ġprint", "(\"", "Two", "\")", "ĊĊ", "Ċ", "def", "Ġfn", "3", "():", "ĊĠĠĠ", "Ġprint", "(\"", "Three", "\")", "ĊĊ", "Ċ", "fn", "dict", "Ġ=", "Ġ{\"", "A", "\":", "Ġfn", "1", ",", "Ġ\"", "B", "\":", "Ġfn", "2", ",", "Ġ\"", "C", "\":", "Ġfn", "3", "}", "Ċ", "Ċ", "key", "names", "Ġ=", "Ġ[\"", "A", "\",", "Ġ\"", "B", "\",", "Ġ\"", "C", "\"]", "Ċ", "Ċ", "fn", "dict", "[", "key", "names", "[", "1", "]]", "()", "Ċ", "fn", "dict", "[\"", "C", "\"]", "()", "ĊĊ", "Ċ", "#", "ĠÐĴ", "ÑĤоÑĢ", "ой", "Ġв", "аÑĢ", "и", "ан", "ÑĤ", "ĊĊ", "Ċ", "def", "Ġadd", "(", "one", ",", "Ġtwo", "):", "ĊĠĠĠ", "Ġc", "Ġ=", "Ġone", "Ġ+", "Ġtwo", "ĊĠĠĠ", "Ġprint", "(", "c", ")", "ĊĠĠĠ", "Ġprint", "(", "type", "(", "c", "))", "ĊĊ", "Ċ", "def", "Ġsub", "(", "one", ",", "Ġtwo", "):", "ĊĠĠĠ", "Ġc", "Ġ=", "Ġone", "Ġ-", "Ġtwo", "ĊĠĠĠ", "Ġprint", "(", "c", ")", "ĊĠĠĠ", "Ġprint", "(", "type", "(", "c", "))", "ĊĊ", "Ċ", "tra", "ine", "e", "Ġ=", "Ġ{", "1", ":", "Ġadd", ",", "Ġ", "2", ":", "Ġsub", "}", "Ċ", "Ċ", "tra", "ine", "e", "[", "1", "](", "1", "0", ",", "Ġ", "4", ")", "Ċ", "print", "(\"\\", "n", "ĠPRO", "VER", "KA", "ĠT", "IP", "A", "\",", "Ġtype", "(", "tra", "ine", "e", "[", "1", "]))", "Ċ", "print", "(\"\\", "n", "ĠPRO", "VER", "KA", "ĠT", "IP", "A", "\",", "Ġtype", "(", "tra", "ine", "e", "[", "1", "](", "1", "0", ",", "Ġ", "4", ")))", "Ċ" ]
[ 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 28, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 34, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45 ]
[ 1, 6, 9, 10, 12, 1, 1, 2, 4, 6, 7, 9, 11, 13, 14, 16, 17, 1, 1, 4, 7, 8, 11, 4, 10, 12, 15, 17, 1, 1, 4, 7, 8, 11, 4, 10, 12, 15, 17, 1, 1, 4, 7, 8, 11, 4, 10, 12, 17, 19, 1, 1, 3, 7, 9, 12, 13, 15, 18, 19, 20, 22, 23, 25, 28, 29, 30, 32, 33, 35, 38, 39, 40, 1, 1, 4, 9, 11, 14, 15, 17, 19, 20, 22, 24, 25, 27, 1, 1, 3, 7, 8, 11, 16, 17, 18, 20, 22, 1, 3, 7, 9, 10, 12, 14, 1, 1, 2, 4, 7, 9, 11, 13, 14, 16, 17, 1, 1, 4, 8, 9, 12, 13, 17, 19, 4, 6, 8, 12, 14, 18, 4, 10, 11, 12, 13, 4, 10, 11, 15, 16, 17, 19, 1, 1, 4, 8, 9, 12, 13, 17, 19, 4, 6, 8, 12, 14, 18, 4, 10, 11, 12, 13, 4, 10, 11, 15, 16, 17, 19, 1, 1, 4, 7, 8, 10, 12, 13, 14, 18, 19, 20, 21, 22, 26, 27, 1, 1, 4, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17, 18, 1, 6, 9, 10, 14, 17, 19, 21, 23, 24, 26, 31, 32, 35, 38, 39, 40, 41, 44, 1, 6, 9, 10, 14, 17, 19, 21, 23, 24, 26, 31, 32, 35, 38, 39, 40, 41, 43, 44, 45, 46, 47, 48, 51 ]
a491772258a52bdfc93083343d2a2e48a240340d
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Metric of classifier task.""" from functools import partial from vega.metrics.pytorch.metrics import MetricBase from vega.common import ClassFactory, ClassType import sklearn.metrics as me def accuracy(output, target, top_k=(1,)): """Calculate classification accuracy between output and target. :param output: output of classification network :type output: pytorch tensor :param target: ground truth from dataset :type target: pytorch tensor :param top_k: top k of metric, k is an interger :type top_k: tuple of interger :return: results of top k :rtype: list """ labels_count = output.shape[1] max_k = labels_count if max(top_k) > labels_count else max(top_k) batch_size = target.size(0) _, pred = output.topk(max_k, 1, True, True) pred = pred.t() correct = pred.eq(target.view(1, -1).expand_as(pred)) res = [] for k in top_k: correct_k = correct[:k].reshape(-1).float().sum(0) res.append(correct_k / batch_size) return res @ClassFactory.register(ClassType.METRIC, alias="accuracy") class Accuracy(MetricBase): """Calculate classification accuracy between output and target.""" __metric_name__ = "accuracy" def __init__(self, topk=(1, 5)): """Init Accuracy metric.""" self.topk = topk self.sum = [0.0] * len(topk) self.data_num = 0 self.pfm = [0.0] * len(topk) def __call__(self, output, target, *args, **kwargs): """Perform top k accuracy. :param output: output of classification network :param target: ground truth from dataset :return: pfm """ if isinstance(output, tuple): output = output[0] if isinstance(target, tuple) or isinstance(target, list): target = target[0] res = accuracy(output, target, self.topk) n = output.size(0) self.data_num += n self.sum = [self.sum[index] + item.item() * n for index, item in enumerate(res)] self.pfm = [item / self.data_num for item in self.sum] return res def reset(self): """Reset states for new evaluation after each epoch.""" self.sum = [0.0] * len(self.topk) self.data_num = 0 self.pfm = [0.0] * len(self.topk) def summary(self): """Summary all cached records, here is the last pfm record.""" if len(self.pfm) == 1: return self.pfm[0] perf_dict = {} perf_dict[self.name] = self.pfm[0] perf_dict.update({"{}_top{}".format(self.name, self.topk[idx]): value for idx, value in enumerate(self.pfm)}) return perf_dict @ClassFactory.register(ClassType.METRIC) class SklearnMetrics(MetricBase): """Wrapper class for Sklearn Metrics.""" def __init__(self, name, **kwargs): super().__init__() self.__metric_name__ = name self.metric_func = getattr(me, name) if kwargs: self.metric_func = partial(self.metric_func, kwargs) def __call__(self, output, target, *args, **kwargs): """Perform top k accuracy. :param output: output of classification network :param target: ground truth from dataset :return: pfm """ _, y_pred = output.topk(1, 1, True, True) y_pred = y_pred.t().detach().cpu().numpy()[0] y_true = target.detach().cpu().numpy() self.pfm = self.metric_func(y_true, y_pred) return self.pfm def reset(self): """Reset states for new evaluation after each epoch.""" pass def summary(self): """Summary all cached records, here is the last pfm record.""" return self.pfm
[ 40, 8571, 10633, 63, 3330, 50, 61, 8571, 222, 222, 40, 2657, 327, 72, 46, 244, 55, 53, 55, 53, 51, 32137, 32279, 25823, 5633, 4345, 19534, 51, 3381, 4760, 5225, 51, 222, 40, 222, 40, 4773, 1549, 341, 3954, 1196, 49, 3050, 244, 55, 51, 53, 327, 1402, 332, 3801, 742, 222, 40, 863, 1648, 666, 813, 477, 822, 2959, 347, 4960, 642, 341, 1196, 51, 222, 40, 2469, 1648, 4245, 331, 1948, 451, 341, 1196, 840, 222, 40, 222, 40, 281, 1930, 574, 1516, 51, 2121, 51, 1107, 52, 4205, 52, 4106, 50, 55, 51, 53, 222, 40, 222, 40, 5416, 2147, 829, 4568, 4940, 575, 5129, 391, 347, 4144, 49, 2951, 222, 40, 2744, 1549, 341, 1196, 458, 2744, 563, 619, 332, 1117, 2771, 39, 5128, 49, 222, 40, 4213, 3912, 1895, 5186, 2258, 2979, 4489, 49, 3173, 3927, 575, 4506, 51, 222, 40, 2819, 341, 1196, 456, 341, 2835, 2940, 5139, 4243, 480, 222, 40, 5191, 1549, 341, 1196, 51, 222, 222, 3012, 9149, 451, 18949, 2918, 7128, 222, 222, 1097, 35383, 1220, 7382, 222, 1097, 5309, 3829, 51, 8113, 51, 19711, 51, 8113, 1220, 20773, 1778, 222, 1097, 5309, 3829, 51, 2297, 1220, 1727, 2232, 49, 1727, 638, 222, 485, 14415, 51, 8113, 641, 616, 499, 222, 610, 14729, 45, 2051, 49, 1780, 49, 2687, 100, 112, 4381, 54, 49, 8485, 303, 1547, 20770, 18005, 14729, 3761, 1716, 480, 1780, 51, 465, 518, 772, 1716, 63, 1716, 451, 18005, 4017, 303, 518, 700, 1716, 63, 38165, 8634, 303, 518, 772, 1780, 63, 16470, 22311, 664, 5984, 303, 518, 700, 1780, 63, 38165, 8634, 303, 518, 772, 2687, 100, 112, 63, 2687, 851, 451, 10057, 49, 851, 458, 619, 1447, 892, 303, 518, 700, 2687, 100, 112, 63, 8871, 451, 1447, 892, 303, 518, 620, 63, 3300, 451, 2687, 851, 303, 518, 18388, 63, 1168, 465, 1547, 303, 6577, 100, 1016, 299, 1716, 51, 3299, 96, 54, 98, 303, 1788, 100, 112, 299, 6577, 100, 1016, 434, 1788, 45, 1412, 100, 112, 46, 868, 6577, 100, 1016, 832, 1788, 45, 1412, 100, 112, 46, 303, 5334, 100, 911, 299, 1780, 51, 911, 45, 53, 46, 303, 4963, 4726, 299, 1716, 51, 1412, 112, 45, 1472, 100, 112, 49, 244, 54, 49, 2969, 49, 2969, 46, 303, 4726, 299, 4726, 51, 121, 365, 303, 3831, 299, 4726, 51, 3705, 45, 2000, 51, 1090, 45, 54, 49, 449, 54, 566, 8976, 100, 321, 45, 8639, 509, 303, 755, 299, 1627, 303, 456, 851, 347, 2687, 100, 112, 63, 310, 3831, 100, 112, 299, 3831, 2934, 112, 1015, 12424, 3766, 54, 566, 1832, 941, 1055, 45, 53, 46, 310, 755, 51, 1713, 45, 11035, 100, 112, 536, 5334, 100, 911, 46, 303, 461, 755, 499, 222, 69, 1359, 2232, 51, 3334, 45, 46949, 51, 36941, 49, 8816, 366, 17159, 678, 222, 842, 46385, 45, 9149, 1778, 731, 303, 1547, 20770, 18005, 14729, 3761, 1716, 480, 1780, 7128, 465, 1176, 7301, 100, 444, 523, 299, 332, 17159, 39, 465, 684, 1176, 1683, 3232, 803, 49, 2687, 112, 4381, 54, 49, 244, 58, 8485, 310, 1547, 3588, 46385, 10057, 7128, 310, 649, 51, 1412, 112, 299, 2687, 112, 310, 649, 51, 1055, 299, 447, 53, 51, 53, 98, 338, 2095, 45, 1412, 112, 46, 310, 649, 51, 624, 100, 1538, 299, 244, 53, 310, 649, 51, 7146, 114, 299, 447, 53, 51, 53, 98, 338, 2095, 45, 1412, 112, 46, 465, 684, 1176, 1872, 3232, 803, 49, 1716, 49, 1780, 49, 338, 1150, 49, 1137, 5350, 731, 310, 1547, 18901, 2687, 851, 14729, 51, 603, 518, 772, 1716, 63, 1716, 451, 18005, 4017, 310, 518, 772, 1780, 63, 16470, 22311, 664, 5984, 310, 518, 620, 63, 317, 12398, 310, 1547, 310, 434, 6968, 45, 2051, 49, 8871, 731, 343, 1716, 299, 1716, 96, 53, 98, 310, 434, 6968, 45, 2000, 49, 8871, 46, 575, 6968, 45, 2000, 49, 1168, 731, 343, 1780, 299, 1780, 96, 53, 98, 310, 755, 299, 14729, 45, 2051, 49, 1780, 49, 649, 51, 1412, 112, 46, 310, 329, 299, 1716, 51, 911, 45, 53, 46, 310, 649, 51, 624, 100, 1538, 1475, 329, 310, 649, 51, 1055, 299, 447, 803, 51, 1055, 96, 1076, 98, 494, 1641, 51, 1113, 365, 338, 329, 456, 1671, 49, 1641, 347, 10869, 45, 595, 2201, 310, 649, 51, 7146, 114, 299, 447, 1113, 536, 649, 51, 624, 100, 1538, 456, 1641, 347, 649, 51, 1055, 98, 310, 461, 755, 465, 684, 5672, 45, 803, 731, 310, 1547, 7334, 10134, 456, 556, 11999, 2703, 2531, 11084, 7128, 310, 649, 51, 1055, 299, 447, 53, 51, 53, 98, 338, 2095, 45, 803, 51, 1412, 112, 46, 310, 649, 51, 624, 100, 1538, 299, 244, 53, 310, 649, 51, 7146, 114, 299, 447, 53, 51, 53, 98, 338, 2095, 45, 803, 51, 1412, 112, 46, 465, 684, 8848, 45, 803, 731, 310, 1547, 8111, 1187, 10812, 9233, 49, 2464, 458, 341, 2419, 317, 12398, 3646, 7128, 310, 434, 2095, 45, 803, 51, 7146, 114, 46, 630, 244, 54, 63, 343, 461, 649, 51, 7146, 114, 96, 53, 98, 310, 24607, 100, 2734, 299, 2172, 310, 24607, 100, 2734, 96, 803, 51, 444, 98, 299, 649, 51, 7146, 114, 96, 53, 98, 310, 24607, 100, 2734, 51, 1896, 15540, 2561, 100, 1412, 41078, 1664, 45, 803, 51, 444, 49, 649, 51, 1412, 112, 96, 2910, 10879, 804, 456, 5444, 49, 804, 347, 10869, 45, 803, 51, 7146, 114, 26263, 310, 461, 24607, 100, 2734, 499, 222, 69, 1359, 2232, 51, 3334, 45, 46949, 51, 36941, 46, 222, 842, 6920, 8185, 9509, 45, 9149, 1778, 731, 303, 1547, 4687, 462, 456, 6920, 8185, 25867, 7128, 465, 684, 1176, 1683, 3232, 803, 49, 655, 49, 1137, 5350, 731, 310, 2615, 17124, 1683, 16443, 310, 649, 3688, 7301, 100, 444, 523, 299, 655, 310, 649, 51, 7301, 100, 1316, 299, 18628, 45, 308, 49, 655, 46, 310, 434, 10321, 63, 343, 649, 51, 7301, 100, 1316, 299, 7382, 45, 803, 51, 7301, 100, 1316, 49, 10321, 46, 465, 684, 1176, 1872, 3232, 803, 49, 1716, 49, 1780, 49, 338, 1150, 49, 1137, 5350, 731, 310, 1547, 18901, 2687, 851, 14729, 51, 603, 518, 772, 1716, 63, 1716, 451, 18005, 4017, 310, 518, 772, 1780, 63, 16470, 22311, 664, 5984, 310, 518, 620, 63, 317, 12398, 310, 1547, 310, 4963, 553, 100, 8639, 299, 1716, 51, 1412, 112, 45, 54, 49, 244, 54, 49, 2969, 49, 2969, 46, 310, 553, 100, 8639, 299, 553, 100, 8639, 51, 121, 941, 18762, 941, 6302, 941, 10517, 8577, 53, 98, 310, 553, 100, 1527, 299, 1780, 51, 18762, 941, 6302, 941, 10517, 365, 310, 649, 51, 7146, 114, 299, 649, 51, 7301, 100, 1316, 45, 126, 100, 1527, 49, 553, 100, 8639, 46, 310, 461, 649, 51, 7146, 114, 465, 684, 5672, 45, 803, 731, 310, 1547, 7334, 10134, 456, 556, 11999, 2703, 2531, 11084, 7128, 310, 3119, 465, 684, 8848, 45, 803, 731, 310, 1547, 8111, 1187, 10812, 9233, 49, 2464, 458, 341, 2419, 317, 12398, 3646, 7128, 310, 461, 649, 51, 7146, 114, 222 ]
[ "#", "Ġ-*-", "Ġcoding", ":", "utf", "-", "8", "Ġ-*-", "Ċ", "Ċ", "#", "ĠCopyright", "Ġ(", "C", ")", "Ġ", "2", "0", "2", "0", ".", "ĠHu", "awei", "ĠTechnologies", "ĠCo", ".,", "ĠLtd", ".", "ĠAll", "Ġrights", "Ġreserved", ".", "Ċ", "#", "Ċ", "#", "ĠLicensed", "Ġunder", "Ġthe", "ĠApache", "ĠLicense", ",", "ĠVersion", "Ġ", "2", ".", "0", "Ġ(", "the", "Ġ\"", "License", "\");", "Ċ", "#", "Ġyou", "Ġmay", "Ġnot", "Ġuse", "Ġthis", "Ġfile", "Ġexcept", "Ġin", "Ġcompliance", "Ġwith", "Ġthe", "ĠLicense", ".", "Ċ", "#", "ĠYou", "Ġmay", "Ġobtain", "Ġa", "Ġcopy", "Ġof", "Ġthe", "ĠLicense", "Ġat", "Ċ", "#", "Ċ", "#", "ĠĠĠĠ", "Ġhttp", "://", "www", ".", "apache", ".", "org", "/", "licenses", "/", "LICENSE", "-", "2", ".", "0", "Ċ", "#", "Ċ", "#", "ĠUnless", "Ġrequired", "Ġby", "Ġapplicable", "Ġlaw", "Ġor", "Ġagreed", "Ġto", "Ġin", "Ġwriting", ",", "Ġsoftware", "Ċ", "#", "Ġdistributed", "Ġunder", "Ġthe", "ĠLicense", "Ġis", "Ġdistributed", "Ġon", "Ġan", "Ġ\"", "AS", "ĠIS", "\"", "ĠBASIS", ",", "Ċ", "#", "ĠWITHOUT", "ĠWARRANTIES", "ĠOR", "ĠCONDITIONS", "ĠOF", "ĠANY", "ĠKIND", ",", "Ġeither", "Ġexpress", "Ġor", "Ġimplied", ".", "Ċ", "#", "ĠSee", "Ġthe", "ĠLicense", "Ġfor", "Ġthe", "Ġspecific", "Ġlanguage", "Ġgoverning", "Ġpermissions", "Ġand", "Ċ", "#", "Ġlimitations", "Ġunder", "Ġthe", "ĠLicense", ".", "Ċ", "Ċ", "\"\"\"", "Metric", "Ġof", "Ġclassifier", "Ġtask", ".\"\"\"", "Ċ", "Ċ", "from", "Ġfunctools", "Ġimport", "Ġpartial", "Ċ", "from", "Ġve", "ga", ".", "metrics", ".", "pytorch", ".", "metrics", "Ġimport", "ĠMetric", "Base", "Ċ", "from", "Ġve", "ga", ".", "common", "Ġimport", "ĠClass", "Factory", ",", "ĠClass", "Type", "Ċ", "import", "Ġsklearn", ".", "metrics", "Ġas", "Ġme", "ĊĊ", "Ċ", "def", "Ġaccuracy", "(", "output", ",", "Ġtarget", ",", "Ġtop", "_", "k", "=(", "1", ",", ")):", "ĊĠĠĠ", "Ġ\"\"\"", "Calculate", "Ġclassification", "Ġaccuracy", "Ġbetween", "Ġoutput", "Ġand", "Ġtarget", ".", "ĊĊĠĠĠ", "Ġ:", "param", "Ġoutput", ":", "Ġoutput", "Ġof", "Ġclassification", "Ġnetwork", "ĊĠĠĠ", "Ġ:", "type", "Ġoutput", ":", "Ġpytorch", "Ġtensor", "ĊĠĠĠ", "Ġ:", "param", "Ġtarget", ":", "Ġground", "Ġtruth", "Ġfrom", "Ġdataset", "ĊĠĠĠ", "Ġ:", "type", "Ġtarget", ":", "Ġpytorch", "Ġtensor", "ĊĠĠĠ", "Ġ:", "param", "Ġtop", "_", "k", ":", "Ġtop", "Ġk", "Ġof", "Ġmetric", ",", "Ġk", "Ġis", "Ġan", "Ġinter", "ger", "ĊĠĠĠ", "Ġ:", "type", "Ġtop", "_", "k", ":", "Ġtuple", "Ġof", "Ġinter", "ger", "ĊĠĠĠ", "Ġ:", "return", ":", "Ġresults", "Ġof", "Ġtop", "Ġk", "ĊĠĠĠ", "Ġ:", "rtype", ":", "Ġlist", "ĊĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġlabels", "_", "count", "Ġ=", "Ġoutput", ".", "shape", "[", "1", "]", "ĊĠĠĠ", "Ġmax", "_", "k", "Ġ=", "Ġlabels", "_", "count", "Ġif", "Ġmax", "(", "top", "_", "k", ")", "Ġ>", "Ġlabels", "_", "count", "Ġelse", "Ġmax", "(", "top", "_", "k", ")", "ĊĠĠĠ", "Ġbatch", "_", "size", "Ġ=", "Ġtarget", ".", "size", "(", "0", ")", "ĊĠĠĠ", "Ġ_,", "Ġpred", "Ġ=", "Ġoutput", ".", "top", "k", "(", "max", "_", "k", ",", "Ġ", "1", ",", "ĠTrue", ",", "ĠTrue", ")", "ĊĠĠĠ", "Ġpred", "Ġ=", "Ġpred", ".", "t", "()", "ĊĠĠĠ", "Ġcorrect", "Ġ=", "Ġpred", ".", "eq", "(", "target", ".", "view", "(", "1", ",", "Ġ-", "1", ").", "expand", "_", "as", "(", "pred", "))", "ĊĠĠĠ", "Ġres", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġfor", "Ġk", "Ġin", "Ġtop", "_", "k", ":", "ĊĠĠĠĠĠĠĠ", "Ġcorrect", "_", "k", "Ġ=", "Ġcorrect", "[:", "k", "].", "reshape", "(-", "1", ").", "float", "().", "sum", "(", "0", ")", "ĊĠĠĠĠĠĠĠ", "Ġres", ".", "append", "(", "correct", "_", "k", "Ġ/", "Ġbatch", "_", "size", ")", "ĊĠĠĠ", "Ġreturn", "Ġres", "ĊĊ", "Ċ", "@", "Class", "Factory", ".", "register", "(", "ClassType", ".", "METRIC", ",", "Ġalias", "=\"", "accuracy", "\")", "Ċ", "class", "ĠAccuracy", "(", "Metric", "Base", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Calculate", "Ġclassification", "Ġaccuracy", "Ġbetween", "Ġoutput", "Ġand", "Ġtarget", ".\"\"\"", "ĊĊĠĠĠ", "Ġ__", "metric", "_", "name", "__", "Ġ=", "Ġ\"", "accuracy", "\"", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġtop", "k", "=(", "1", ",", "Ġ", "5", ")):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Init", "ĠAccuracy", "Ġmetric", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "top", "k", "Ġ=", "Ġtop", "k", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "sum", "Ġ=", "Ġ[", "0", ".", "0", "]", "Ġ*", "Ġlen", "(", "top", "k", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "data", "_", "num", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "pf", "m", "Ġ=", "Ġ[", "0", ".", "0", "]", "Ġ*", "Ġlen", "(", "top", "k", ")", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "call", "__(", "self", ",", "Ġoutput", ",", "Ġtarget", ",", "Ġ*", "args", ",", "Ġ**", "kwargs", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Perform", "Ġtop", "Ġk", "Ġaccuracy", ".", "ĊĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġoutput", ":", "Ġoutput", "Ġof", "Ġclassification", "Ġnetwork", "ĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġtarget", ":", "Ġground", "Ġtruth", "Ġfrom", "Ġdataset", "ĊĠĠĠĠĠĠĠ", "Ġ:", "return", ":", "Ġp", "fm", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġisinstance", "(", "output", ",", "Ġtuple", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġoutput", "Ġ=", "Ġoutput", "[", "0", "]", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġisinstance", "(", "target", ",", "Ġtuple", ")", "Ġor", "Ġisinstance", "(", "target", ",", "Ġlist", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtarget", "Ġ=", "Ġtarget", "[", "0", "]", "ĊĠĠĠĠĠĠĠ", "Ġres", "Ġ=", "Ġaccuracy", "(", "output", ",", "Ġtarget", ",", "Ġself", ".", "top", "k", ")", "ĊĠĠĠĠĠĠĠ", "Ġn", "Ġ=", "Ġoutput", ".", "size", "(", "0", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "data", "_", "num", "Ġ+=", "Ġn", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "sum", "Ġ=", "Ġ[", "self", ".", "sum", "[", "index", "]", "Ġ+", "Ġitem", ".", "item", "()", "Ġ*", "Ġn", "Ġfor", "Ġindex", ",", "Ġitem", "Ġin", "Ġenumerate", "(", "res", ")]", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "pf", "m", "Ġ=", "Ġ[", "item", "Ġ/", "Ġself", ".", "data", "_", "num", "Ġfor", "Ġitem", "Ġin", "Ġself", ".", "sum", "]", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġres", "ĊĊĠĠĠ", "Ġdef", "Ġreset", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Reset", "Ġstates", "Ġfor", "Ġnew", "Ġevaluation", "Ġafter", "Ġeach", "Ġepoch", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "sum", "Ġ=", "Ġ[", "0", ".", "0", "]", "Ġ*", "Ġlen", "(", "self", ".", "top", "k", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "data", "_", "num", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "pf", "m", "Ġ=", "Ġ[", "0", ".", "0", "]", "Ġ*", "Ġlen", "(", "self", ".", "top", "k", ")", "ĊĊĠĠĠ", "Ġdef", "Ġsummary", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Summary", "Ġall", "Ġcached", "Ġrecords", ",", "Ġhere", "Ġis", "Ġthe", "Ġlast", "Ġp", "fm", "Ġrecord", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "self", ".", "pf", "m", ")", "Ġ==", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "pf", "m", "[", "0", "]", "ĊĠĠĠĠĠĠĠ", "Ġperf", "_", "dict", "Ġ=", "Ġ{}", "ĊĠĠĠĠĠĠĠ", "Ġperf", "_", "dict", "[", "self", ".", "name", "]", "Ġ=", "Ġself", ".", "pf", "m", "[", "0", "]", "ĊĠĠĠĠĠĠĠ", "Ġperf", "_", "dict", ".", "update", "({\"", "{}", "_", "top", "{}\".", "format", "(", "self", ".", "name", ",", "Ġself", ".", "top", "k", "[", "idx", "]):", "Ġvalue", "Ġfor", "Ġidx", ",", "Ġvalue", "Ġin", "Ġenumerate", "(", "self", ".", "pf", "m", ")})", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġperf", "_", "dict", "ĊĊ", "Ċ", "@", "Class", "Factory", ".", "register", "(", "ClassType", ".", "METRIC", ")", "Ċ", "class", "ĠSk", "learn", "Metrics", "(", "Metric", "Base", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Wrapper", "Ġclass", "Ġfor", "ĠSk", "learn", "ĠMetrics", ".\"\"\"", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġname", ",", "Ġ**", "kwargs", "):", "ĊĠĠĠĠĠĠĠ", "Ġsuper", "().__", "init", "__()", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "metric", "_", "name", "__", "Ġ=", "Ġname", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "metric", "_", "func", "Ġ=", "Ġgetattr", "(", "me", ",", "Ġname", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġkwargs", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "metric", "_", "func", "Ġ=", "Ġpartial", "(", "self", ".", "metric", "_", "func", ",", "Ġkwargs", ")", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "call", "__(", "self", ",", "Ġoutput", ",", "Ġtarget", ",", "Ġ*", "args", ",", "Ġ**", "kwargs", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Perform", "Ġtop", "Ġk", "Ġaccuracy", ".", "ĊĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġoutput", ":", "Ġoutput", "Ġof", "Ġclassification", "Ġnetwork", "ĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġtarget", ":", "Ġground", "Ġtruth", "Ġfrom", "Ġdataset", "ĊĠĠĠĠĠĠĠ", "Ġ:", "return", ":", "Ġp", "fm", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġ_,", "Ġy", "_", "pred", "Ġ=", "Ġoutput", ".", "top", "k", "(", "1", ",", "Ġ", "1", ",", "ĠTrue", ",", "ĠTrue", ")", "ĊĠĠĠĠĠĠĠ", "Ġy", "_", "pred", "Ġ=", "Ġy", "_", "pred", ".", "t", "().", "detach", "().", "cpu", "().", "numpy", "()[", "0", "]", "ĊĠĠĠĠĠĠĠ", "Ġy", "_", "true", "Ġ=", "Ġtarget", ".", "detach", "().", "cpu", "().", "numpy", "()", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "pf", "m", "Ġ=", "Ġself", ".", "metric", "_", "func", "(", "y", "_", "true", ",", "Ġy", "_", "pred", ")", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "pf", "m", "ĊĊĠĠĠ", "Ġdef", "Ġreset", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Reset", "Ġstates", "Ġfor", "Ġnew", "Ġevaluation", "Ġafter", "Ġeach", "Ġepoch", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġsummary", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Summary", "Ġall", "Ġcached", "Ġrecords", ",", "Ġhere", "Ġis", "Ġthe", "Ġlast", "Ġp", "fm", "Ġrecord", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "pf", "m", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 17, 17, 17, 17, 17, 17, 17, 18, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 67, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 80, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 91, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 97, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 103, 103, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 106, 106, 106, 106, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 110, 110, 110, 110, 110, 110, 110, 112, 112, 112, 112, 112, 112, 112, 112, 112, 113, 113, 113, 113, 113, 113, 113, 113, 113, 114, 114, 114, 114, 114, 114, 115, 115, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 120, 120, 120, 120, 120, 120, 122, 122, 122, 122, 122, 122, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 124, 124, 126, 126, 126, 126, 126, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 128, 128, 128, 128 ]
[ 1, 2, 6, 13, 14, 17, 18, 19, 23, 1, 1, 2, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 25, 29, 42, 45, 47, 51, 52, 56, 63, 72, 73, 1, 2, 1, 2, 11, 17, 21, 28, 36, 37, 45, 46, 47, 48, 49, 51, 54, 56, 63, 66, 1, 2, 6, 10, 14, 18, 23, 28, 35, 38, 49, 54, 58, 66, 67, 1, 2, 6, 10, 17, 19, 24, 27, 31, 39, 42, 1, 2, 1, 2, 6, 11, 14, 17, 18, 24, 25, 28, 29, 37, 38, 45, 46, 47, 48, 49, 1, 2, 1, 2, 9, 18, 21, 32, 36, 39, 46, 49, 52, 60, 61, 70, 1, 2, 14, 20, 24, 32, 35, 47, 50, 53, 55, 57, 60, 61, 67, 68, 1, 2, 10, 21, 24, 35, 38, 42, 47, 48, 55, 63, 66, 74, 75, 1, 2, 6, 10, 18, 22, 26, 35, 44, 54, 66, 70, 1, 2, 14, 20, 24, 32, 33, 1, 1, 4, 10, 13, 24, 29, 33, 1, 1, 5, 15, 22, 30, 1, 5, 8, 10, 11, 18, 19, 26, 27, 34, 41, 48, 52, 1, 5, 8, 10, 11, 17, 24, 30, 37, 38, 44, 48, 1, 7, 15, 16, 23, 26, 29, 1, 1, 4, 13, 14, 20, 21, 28, 29, 33, 34, 35, 37, 38, 39, 42, 4, 8, 17, 32, 41, 49, 56, 60, 67, 68, 4, 6, 11, 18, 19, 26, 29, 44, 52, 4, 6, 10, 17, 18, 26, 33, 4, 6, 11, 18, 19, 26, 32, 37, 45, 4, 6, 10, 17, 18, 26, 33, 4, 6, 11, 15, 16, 17, 18, 22, 24, 27, 34, 35, 37, 40, 43, 49, 52, 4, 6, 10, 14, 15, 16, 17, 23, 26, 32, 35, 4, 6, 12, 13, 21, 24, 28, 30, 4, 6, 11, 12, 17, 4, 8, 4, 11, 12, 17, 19, 26, 27, 32, 33, 34, 35, 4, 8, 9, 10, 12, 19, 20, 25, 28, 32, 33, 36, 37, 38, 39, 41, 48, 49, 54, 59, 63, 64, 67, 68, 69, 70, 4, 10, 11, 15, 17, 24, 25, 29, 30, 31, 32, 4, 7, 12, 14, 21, 22, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 41, 42, 47, 48, 4, 9, 11, 16, 17, 18, 20, 4, 12, 14, 19, 20, 22, 23, 29, 30, 34, 35, 36, 37, 39, 40, 42, 48, 49, 51, 52, 56, 58, 4, 8, 10, 13, 4, 8, 10, 13, 17, 18, 19, 20, 8, 16, 17, 18, 20, 28, 30, 31, 33, 40, 42, 43, 45, 50, 53, 56, 57, 58, 59, 8, 12, 13, 19, 20, 27, 28, 29, 31, 37, 38, 42, 43, 4, 11, 15, 1, 1, 2, 7, 14, 15, 23, 24, 33, 34, 40, 41, 47, 49, 57, 59, 1, 6, 15, 16, 22, 26, 28, 4, 8, 17, 32, 41, 49, 56, 60, 67, 71, 4, 7, 13, 14, 18, 20, 22, 24, 32, 33, 4, 8, 11, 15, 18, 22, 23, 27, 28, 30, 31, 32, 33, 34, 37, 8, 12, 16, 25, 32, 36, 8, 13, 14, 17, 18, 20, 24, 25, 8, 13, 14, 17, 19, 21, 22, 23, 24, 25, 27, 31, 32, 35, 36, 37, 8, 13, 14, 18, 19, 22, 24, 25, 26, 8, 13, 14, 16, 17, 19, 21, 22, 23, 24, 25, 27, 31, 32, 35, 36, 37, 4, 8, 11, 15, 18, 22, 23, 30, 31, 38, 39, 41, 45, 46, 49, 55, 57, 8, 12, 19, 23, 25, 34, 35, 8, 10, 15, 22, 23, 30, 33, 48, 56, 8, 10, 15, 22, 23, 30, 36, 41, 49, 8, 10, 16, 17, 19, 21, 8, 12, 8, 11, 22, 23, 29, 30, 36, 38, 12, 19, 21, 28, 29, 30, 31, 8, 11, 22, 23, 29, 30, 36, 37, 40, 51, 52, 58, 59, 64, 66, 12, 19, 21, 28, 29, 30, 31, 8, 12, 14, 23, 24, 30, 31, 38, 39, 44, 45, 48, 49, 50, 8, 10, 12, 19, 20, 24, 25, 26, 27, 8, 13, 14, 18, 19, 22, 25, 27, 8, 13, 14, 17, 19, 21, 25, 26, 29, 30, 35, 36, 38, 43, 44, 48, 50, 52, 54, 58, 64, 65, 70, 73, 83, 84, 87, 89, 8, 13, 14, 16, 17, 19, 21, 25, 27, 32, 33, 37, 38, 41, 45, 50, 53, 58, 59, 62, 63, 8, 15, 19, 4, 8, 14, 15, 19, 21, 8, 12, 17, 24, 28, 32, 43, 49, 54, 60, 64, 8, 13, 14, 17, 19, 21, 22, 23, 24, 25, 27, 31, 32, 36, 37, 40, 41, 42, 8, 13, 14, 18, 19, 22, 24, 25, 26, 8, 13, 14, 16, 17, 19, 21, 22, 23, 24, 25, 27, 31, 32, 36, 37, 40, 41, 42, 4, 8, 16, 17, 21, 23, 8, 12, 19, 23, 30, 38, 39, 44, 47, 51, 56, 58, 60, 67, 71, 8, 11, 15, 16, 20, 21, 23, 24, 25, 28, 29, 30, 31, 12, 19, 24, 25, 27, 28, 29, 30, 31, 8, 13, 14, 18, 20, 23, 8, 13, 14, 18, 19, 23, 24, 28, 29, 31, 36, 37, 39, 40, 41, 42, 43, 8, 13, 14, 18, 19, 25, 28, 30, 31, 34, 38, 44, 45, 49, 50, 54, 55, 60, 61, 64, 65, 66, 69, 72, 78, 82, 86, 87, 93, 96, 106, 107, 111, 112, 114, 115, 118, 8, 15, 20, 21, 25, 1, 1, 2, 7, 14, 15, 23, 24, 33, 34, 40, 41, 1, 6, 9, 14, 21, 22, 28, 32, 34, 4, 8, 15, 21, 25, 28, 33, 41, 45, 4, 8, 11, 15, 18, 22, 23, 28, 29, 32, 38, 40, 8, 14, 19, 23, 27, 8, 13, 16, 22, 23, 27, 29, 31, 36, 8, 13, 14, 20, 21, 25, 27, 35, 36, 38, 39, 44, 45, 8, 11, 18, 19, 12, 17, 18, 24, 25, 29, 31, 39, 40, 44, 45, 51, 52, 56, 57, 64, 65, 4, 8, 11, 15, 18, 22, 23, 30, 31, 38, 39, 41, 45, 46, 49, 55, 57, 8, 12, 19, 23, 25, 34, 35, 8, 10, 15, 22, 23, 30, 33, 48, 56, 8, 10, 15, 22, 23, 30, 36, 41, 49, 8, 10, 16, 17, 19, 21, 8, 12, 8, 11, 13, 14, 18, 20, 27, 28, 31, 32, 33, 34, 35, 36, 37, 38, 43, 44, 49, 50, 8, 10, 11, 15, 17, 19, 20, 24, 25, 26, 29, 35, 38, 41, 44, 49, 52, 53, 54, 8, 10, 11, 15, 17, 24, 25, 31, 34, 37, 40, 45, 47, 8, 13, 14, 16, 17, 19, 24, 25, 31, 32, 36, 37, 38, 39, 43, 44, 46, 47, 51, 52, 8, 15, 20, 21, 23, 24, 4, 8, 14, 15, 19, 21, 8, 12, 17, 24, 28, 32, 43, 49, 54, 60, 64, 8, 13, 4, 8, 16, 17, 21, 23, 8, 12, 19, 23, 30, 38, 39, 44, 47, 51, 56, 58, 60, 67, 71, 8, 15, 20, 21, 23, 24 ]
2b8ca0c8c7878536da4f31652976988cdba62d89
from django.contrib import admin from main_app.models import sites, statuses, redirects # Register your models here. admin.site.register(statuses) admin.site.register(sites) admin.site.register(redirects)
[ 1097, 8532, 51, 12060, 1220, 5611, 222, 1097, 2594, 100, 745, 51, 3404, 1220, 17333, 49, 35831, 49, 41960, 222, 222, 40, 7017, 1390, 4590, 2464, 51, 222, 2317, 51, 2870, 51, 3334, 45, 27623, 46, 222, 2317, 51, 2870, 51, 3334, 45, 12104, 46, 222, 2317, 51, 2870, 51, 3334, 45, 45118, 46, 222 ]
[ "from", "Ġdjango", ".", "contrib", "Ġimport", "Ġadmin", "Ċ", "from", "Ġmain", "_", "app", ".", "models", "Ġimport", "Ġsites", ",", "Ġstatuses", ",", "Ġredirects", "Ċ", "Ċ", "#", "ĠRegister", "Ġyour", "Ġmodels", "Ġhere", ".", "Ċ", "admin", ".", "site", ".", "register", "(", "statuses", ")", "Ċ", "admin", ".", "site", ".", "register", "(", "sites", ")", "Ċ", "admin", ".", "site", ".", "register", "(", "redirects", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7 ]
[ 1, 5, 12, 13, 20, 27, 33, 1, 5, 10, 11, 14, 15, 21, 28, 34, 35, 44, 45, 55, 1, 1, 2, 11, 16, 23, 28, 29, 1, 6, 7, 11, 12, 20, 21, 29, 30, 1, 6, 7, 11, 12, 20, 21, 26, 27, 1, 6, 7, 11, 12, 20, 21, 30, 31 ]
19bb58ab440ca00bf6410a70a8b6bbc24eec96c1
from django.apps import AppConfig class MarketingemailsConfig(AppConfig): name = "marketingemails"
[ 1097, 8532, 51, 7520, 1220, 2013, 1081, 499, 222, 842, 7797, 8845, 28773, 1081, 45, 42728, 731, 303, 655, 299, 332, 41807, 28773, 39, 222 ]
[ "from", "Ġdjango", ".", "apps", "Ġimport", "ĠApp", "Config", "ĊĊ", "Ċ", "class", "ĠMark", "eting", "emails", "Config", "(", "AppConfig", "):", "ĊĠĠĠ", "Ġname", "Ġ=", "Ġ\"", "marketing", "emails", "\"", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5 ]
[ 1, 5, 12, 13, 17, 24, 28, 34, 1, 1, 6, 11, 16, 22, 28, 29, 38, 40, 4, 9, 11, 13, 22, 28, 29 ]
1614157c57b3d1b30087c42cb840d617dc91eecb
# Bengisu Ayan - 2236974 # Ceren Gürsoy - 2237485 import numpy as np import cv2 B1 = "THE3-Images/B1.jpg" B2 = "THE3-Images/B2.jpg" B3 = "THE3-Images/B3.jpg" B4 = "THE3-Images/B4.jpg" B5 = "THE3-Images/B5.jpg" def segmentation_function(image, name, blue_mask=False, white_mask=False, yellow_mask=False): # Smooth the image image = cv2.GaussianBlur(image, (11, 11), 0) # convert to HSV color system hsv_image = cv2.cvtColor(image, cv2.COLOR_RGB2HSV) # define green mask # green is applied to all the images as the dogs are all in grass low_green = np.array([30, 0, 0]) high_green = np.array([86, 255, 255]) mask_final = cv2.inRange(hsv_image, low_green, high_green) # define blue mask and apply it if blue_mask == True: low_blue = np.array([80, 0, 0]) high_blue = np.array([125, 255, 255]) mask_blue = cv2.inRange(hsv_image, low_blue, high_blue) mask_final = mask_final + mask_blue # define white mask and apply it if white_mask == True: low_white = np.array([0, 0, 200]) high_white = np.array([145, 60, 255]) mask_white = cv2.inRange(hsv_image, low_white, high_white) mask_final = mask_final + mask_white # define yellow mask and apply it if yellow_mask == True: low_yellow = np.array([10, 0, 0]) high_yellow = np.array([33, 255, 100]) mask_yellow = cv2.inRange(hsv_image, low_yellow, high_yellow) mask_final = mask_final + mask_yellow # make object white and background black mask_final = 255 - mask_final # apply opening to final mask # define 27*27 elliptical structuring element for opening kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (27, 27)) # apply opening mask_final = cv2.morphologyEx(mask_final, cv2.MORPH_OPEN, kernel) # apply closing to final mask # define 41*41 elliptical structuring element for opening kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (41, 41)) # apply closing mask_final = cv2.morphologyEx(mask_final, cv2.MORPH_CLOSE, kernel) # get biggest connected component segmented_image = np.zeros_like(mask_final) for val in np.unique(mask_final)[1:]: mask = np.uint8(mask_final == val) labels, stats = cv2.connectedComponentsWithStats(mask, 4)[1:3] largest_label = 1 + np.argmax(stats[1:, cv2.CC_STAT_AREA]) segmented_image[labels == largest_label] = val return segmented_image # Read B1 image_bgr = cv2.imread(B1) # convert B1 from bgr to rgb image = cv2.cvtColor(image_bgr, cv2.COLOR_BGR2RGB) # Apply segmentation to B1 with only green mask segmented_image = segmentation_function(image, "B1", blue_mask=False, white_mask=False, yellow_mask=False) cv2.imwrite("the3_B1_output.png", segmented_image) # Read B2 image_bgr = cv2.imread(B2) # convert B2 from bgr to rgb image = cv2.cvtColor(image_bgr, cv2.COLOR_BGR2RGB) # Apply segmentation to B2 with green, white, yellow and blue masks segmented_image = segmentation_function(image, "B2", blue_mask=True, white_mask=True, yellow_mask=True) cv2.imwrite("the3_B2_output.png", segmented_image) # Read B3 image_bgr = cv2.imread(B3) # convert B3 from bgr to rgb image = cv2.cvtColor(image_bgr, cv2.COLOR_BGR2RGB) # Apply segmentation to B3 with green and blue masks segmented_image = segmentation_function(image, "B3", blue_mask=True, white_mask=False, yellow_mask=False) cv2.imwrite("the3_B3_output.png", segmented_image) # Read B4 image_bgr = cv2.imread(B4) # convert B4 from bgr to rgb image = cv2.cvtColor(image_bgr, cv2.COLOR_BGR2RGB) # Apply segmentation to B4 with green and blue masks segmented_image = segmentation_function(image, "B4", blue_mask=True, white_mask=False, yellow_mask=False) cv2.imwrite("the3_B4_output.png", segmented_image) # Read B5 image_bgr = cv2.imread(B5) # convert B5 from bgr to rgb image = cv2.cvtColor(image_bgr, cv2.COLOR_BGR2RGB) # Apply segmentation to B2 with green ,yellow and blue masks segmented_image = segmentation_function(image, "B5", blue_mask=True, white_mask=False, yellow_mask=True) cv2.imwrite("the3_B5_output.png", segmented_image)
[ 40, 570, 838, 316, 122, 418, 14488, 449, 244, 55, 55, 56, 59, 62, 60, 57, 222, 40, 409, 16052, 590, 7258, 780, 126, 449, 244, 55, 55, 56, 60, 57, 61, 58, 222, 222, 485, 6610, 641, 2115, 222, 485, 6781, 55, 222, 222, 71, 54, 299, 332, 14103, 56, 50, 9622, 52, 71, 54, 51, 3090, 39, 222, 71, 55, 299, 332, 14103, 56, 50, 9622, 52, 71, 55, 51, 3090, 39, 222, 71, 56, 299, 332, 14103, 56, 50, 9622, 52, 71, 56, 51, 3090, 39, 222, 71, 57, 299, 332, 14103, 56, 50, 9622, 52, 71, 57, 51, 3090, 39, 222, 71, 58, 299, 332, 14103, 56, 50, 9622, 52, 71, 58, 51, 3090, 39, 499, 222, 610, 34276, 100, 1144, 45, 915, 49, 655, 49, 10097, 100, 3988, 66, 2737, 49, 8408, 100, 3988, 66, 2737, 49, 28518, 100, 3988, 66, 2737, 731, 303, 607, 9843, 10263, 341, 1802, 303, 1802, 299, 6781, 55, 51, 33651, 17622, 45, 915, 49, 327, 54, 54, 49, 244, 54, 54, 490, 244, 53, 46, 465, 607, 4511, 391, 696, 6029, 1989, 2684, 303, 439, 2289, 100, 915, 299, 6781, 55, 51, 34312, 1530, 45, 915, 49, 6781, 55, 51, 6237, 100, 7832, 55, 77, 6029, 46, 465, 607, 5623, 9743, 5967, 303, 607, 9743, 458, 9560, 391, 1187, 341, 5753, 641, 341, 764, 5399, 904, 1187, 347, 2935, 369, 303, 7487, 100, 6583, 299, 2115, 51, 977, 2034, 56, 53, 49, 244, 53, 49, 244, 53, 1156, 303, 3883, 100, 6583, 299, 2115, 51, 977, 2034, 61, 59, 49, 244, 55, 58, 58, 49, 244, 55, 58, 58, 1156, 303, 5967, 100, 3242, 299, 6781, 55, 51, 285, 3216, 45, 109, 2289, 100, 915, 49, 7487, 100, 6583, 49, 3883, 100, 6583, 46, 465, 607, 5623, 10097, 5967, 480, 4894, 580, 303, 434, 10097, 100, 3988, 630, 2969, 63, 310, 7487, 100, 5494, 299, 2115, 51, 977, 2034, 61, 53, 49, 244, 53, 49, 244, 53, 1156, 310, 3883, 100, 5494, 299, 2115, 51, 977, 2034, 54, 55, 58, 49, 244, 55, 58, 58, 49, 244, 55, 58, 58, 1156, 310, 5967, 100, 5494, 299, 6781, 55, 51, 285, 3216, 45, 109, 2289, 100, 915, 49, 7487, 100, 5494, 49, 3883, 100, 5494, 46, 310, 5967, 100, 3242, 299, 5967, 100, 3242, 494, 5967, 100, 5494, 465, 607, 5623, 8408, 5967, 480, 4894, 580, 303, 434, 8408, 100, 3988, 630, 2969, 63, 310, 7487, 100, 4911, 299, 2115, 51, 977, 2034, 53, 49, 244, 53, 49, 244, 55, 53, 53, 1156, 310, 3883, 100, 4911, 299, 2115, 51, 977, 2034, 54, 57, 58, 49, 244, 59, 53, 49, 244, 55, 58, 58, 1156, 310, 5967, 100, 4911, 299, 6781, 55, 51, 285, 3216, 45, 109, 2289, 100, 915, 49, 7487, 100, 4911, 49, 3883, 100, 4911, 46, 310, 5967, 100, 3242, 299, 5967, 100, 3242, 494, 5967, 100, 4911, 465, 607, 5623, 28518, 5967, 480, 4894, 580, 303, 434, 28518, 100, 3988, 630, 2969, 63, 310, 7487, 100, 14982, 299, 2115, 51, 977, 2034, 54, 53, 49, 244, 53, 49, 244, 53, 1156, 310, 3883, 100, 14982, 299, 2115, 51, 977, 2034, 56, 56, 49, 244, 55, 58, 58, 49, 244, 54, 53, 53, 1156, 310, 5967, 100, 14982, 299, 6781, 55, 51, 285, 3216, 45, 109, 2289, 100, 915, 49, 7487, 100, 14982, 49, 3883, 100, 14982, 46, 310, 5967, 100, 3242, 299, 5967, 100, 3242, 494, 5967, 100, 14982, 465, 607, 1949, 1319, 8408, 480, 3224, 6188, 303, 5967, 100, 3242, 299, 244, 55, 58, 58, 449, 5967, 100, 3242, 465, 607, 4894, 14939, 391, 1175, 5967, 303, 607, 5623, 244, 55, 60, 47, 55, 60, 1871, 393, 404, 1599, 1689, 4116, 2016, 456, 14939, 303, 5960, 299, 6781, 55, 51, 390, 3871, 4116, 1325, 45, 4167, 55, 51, 22103, 4976, 100, 2165, 1816, 34511, 49, 327, 55, 60, 49, 244, 55, 60, 509, 303, 607, 4894, 14939, 303, 5967, 100, 3242, 299, 6781, 55, 51, 30932, 10551, 589, 45, 3988, 100, 3242, 49, 6781, 55, 51, 22103, 4976, 100, 10937, 49, 5960, 46, 465, 607, 4894, 13735, 391, 1175, 5967, 303, 607, 5623, 244, 57, 54, 47, 57, 54, 1871, 393, 404, 1599, 1689, 4116, 2016, 456, 14939, 303, 5960, 299, 6781, 55, 51, 390, 3871, 4116, 1325, 45, 4167, 55, 51, 22103, 4976, 100, 2165, 1816, 34511, 49, 327, 57, 54, 49, 244, 57, 54, 509, 303, 607, 4894, 13735, 303, 5967, 100, 3242, 299, 6781, 55, 51, 30932, 10551, 589, 45, 3988, 100, 3242, 49, 6781, 55, 51, 22103, 4976, 100, 18758, 49, 5960, 46, 465, 607, 640, 42301, 9485, 2595, 303, 8459, 337, 100, 915, 299, 2115, 51, 10066, 100, 6257, 45, 3988, 100, 3242, 46, 303, 456, 928, 347, 2115, 51, 5714, 45, 3988, 100, 3242, 5630, 54, 63, 2805, 310, 5967, 299, 2115, 51, 1792, 61, 45, 3988, 100, 3242, 630, 928, 46, 310, 6577, 49, 8652, 299, 6781, 55, 51, 10099, 8176, 1569, 5779, 45, 3988, 49, 244, 57, 5630, 54, 63, 56, 98, 310, 22936, 100, 1194, 299, 244, 54, 494, 2115, 51, 30934, 45, 5170, 96, 54, 22114, 6781, 55, 51, 2218, 100, 4266, 100, 27568, 1156, 310, 8459, 337, 100, 915, 96, 6007, 630, 22936, 100, 1194, 98, 299, 928, 465, 461, 8459, 337, 100, 915, 499, 222, 40, 4858, 570, 54, 222, 915, 100, 103, 791, 299, 6781, 55, 51, 41190, 45, 71, 54, 46, 222, 40, 4511, 570, 54, 664, 342, 791, 391, 10944, 222, 915, 299, 6781, 55, 51, 34312, 1530, 45, 915, 100, 103, 791, 49, 6781, 55, 51, 6237, 100, 24567, 55, 7832, 46, 222, 40, 14873, 34276, 391, 570, 54, 642, 1773, 9743, 5967, 222, 8735, 337, 100, 915, 299, 34276, 100, 1144, 45, 915, 49, 332, 71, 54, 411, 10097, 100, 3988, 66, 2737, 49, 8408, 100, 3988, 66, 2737, 49, 28518, 100, 3988, 66, 2737, 46, 222, 4167, 55, 51, 468, 1838, 459, 1402, 56, 100, 71, 54, 100, 2051, 51, 1665, 411, 8459, 337, 100, 915, 46, 222, 222, 40, 4858, 570, 55, 222, 915, 100, 103, 791, 299, 6781, 55, 51, 41190, 45, 71, 55, 46, 222, 40, 4511, 570, 55, 664, 342, 791, 391, 10944, 222, 915, 299, 6781, 55, 51, 34312, 1530, 45, 915, 100, 103, 791, 49, 6781, 55, 51, 6237, 100, 24567, 55, 7832, 46, 222, 40, 14873, 34276, 391, 570, 55, 642, 9743, 49, 8408, 49, 28518, 480, 10097, 33472, 222, 8735, 337, 100, 915, 299, 34276, 100, 1144, 45, 915, 49, 332, 71, 55, 411, 10097, 100, 3988, 66, 1844, 49, 8408, 100, 3988, 66, 1844, 49, 28518, 100, 3988, 66, 1844, 46, 222, 4167, 55, 51, 468, 1838, 459, 1402, 56, 100, 71, 55, 100, 2051, 51, 1665, 411, 8459, 337, 100, 915, 46, 222, 222, 40, 4858, 570, 56, 222, 915, 100, 103, 791, 299, 6781, 55, 51, 41190, 45, 71, 56, 46, 222, 40, 4511, 570, 56, 664, 342, 791, 391, 10944, 222, 915, 299, 6781, 55, 51, 34312, 1530, 45, 915, 100, 103, 791, 49, 6781, 55, 51, 6237, 100, 24567, 55, 7832, 46, 222, 40, 14873, 34276, 391, 570, 56, 642, 9743, 480, 10097, 33472, 222, 8735, 337, 100, 915, 299, 34276, 100, 1144, 45, 915, 49, 332, 71, 56, 411, 10097, 100, 3988, 66, 1844, 49, 8408, 100, 3988, 66, 2737, 49, 28518, 100, 3988, 66, 2737, 46, 222, 4167, 55, 51, 468, 1838, 459, 1402, 56, 100, 71, 56, 100, 2051, 51, 1665, 411, 8459, 337, 100, 915, 46, 222, 222, 40, 4858, 570, 57, 222, 915, 100, 103, 791, 299, 6781, 55, 51, 41190, 45, 71, 57, 46, 222, 40, 4511, 570, 57, 664, 342, 791, 391, 10944, 222, 915, 299, 6781, 55, 51, 34312, 1530, 45, 915, 100, 103, 791, 49, 6781, 55, 51, 6237, 100, 24567, 55, 7832, 46, 222, 40, 14873, 34276, 391, 570, 57, 642, 9743, 480, 10097, 33472, 222, 8735, 337, 100, 915, 299, 34276, 100, 1144, 45, 915, 49, 332, 71, 57, 411, 10097, 100, 3988, 66, 1844, 49, 8408, 100, 3988, 66, 2737, 49, 28518, 100, 3988, 66, 2737, 46, 222, 4167, 55, 51, 468, 1838, 459, 1402, 56, 100, 71, 57, 100, 2051, 51, 1665, 411, 8459, 337, 100, 915, 46, 222, 222, 40, 4858, 570, 58, 222, 915, 100, 103, 791, 299, 6781, 55, 51, 41190, 45, 71, 58, 46, 222, 40, 4511, 570, 58, 664, 342, 791, 391, 10944, 222, 915, 299, 6781, 55, 51, 34312, 1530, 45, 915, 100, 103, 791, 49, 6781, 55, 51, 6237, 100, 24567, 55, 7832, 46, 222, 40, 14873, 34276, 391, 570, 55, 642, 9743, 1737, 14982, 480, 10097, 33472, 222, 8735, 337, 100, 915, 299, 34276, 100, 1144, 45, 915, 49, 332, 71, 58, 411, 10097, 100, 3988, 66, 1844, 49, 8408, 100, 3988, 66, 2737, 49, 28518, 100, 3988, 66, 1844, 46, 222, 4167, 55, 51, 468, 1838, 459, 1402, 56, 100, 71, 58, 100, 2051, 51, 1665, 411, 8459, 337, 100, 915, 46, 222 ]
[ "#", "ĠB", "eng", "is", "u", "ĠA", "yan", "Ġ-", "Ġ", "2", "2", "3", "6", "9", "7", "4", "Ċ", "#", "ĠC", "eren", "ĠG", "ür", "so", "y", "Ġ-", "Ġ", "2", "2", "3", "7", "4", "8", "5", "Ċ", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "import", "Ġcv", "2", "Ċ", "Ċ", "B", "1", "Ġ=", "Ġ\"", "THE", "3", "-", "Images", "/", "B", "1", ".", "jpg", "\"", "Ċ", "B", "2", "Ġ=", "Ġ\"", "THE", "3", "-", "Images", "/", "B", "2", ".", "jpg", "\"", "Ċ", "B", "3", "Ġ=", "Ġ\"", "THE", "3", "-", "Images", "/", "B", "3", ".", "jpg", "\"", "Ċ", "B", "4", "Ġ=", "Ġ\"", "THE", "3", "-", "Images", "/", "B", "4", ".", "jpg", "\"", "Ċ", "B", "5", "Ġ=", "Ġ\"", "THE", "3", "-", "Images", "/", "B", "5", ".", "jpg", "\"", "ĊĊ", "Ċ", "def", "Ġsegmentation", "_", "function", "(", "image", ",", "Ġname", ",", "Ġblue", "_", "mask", "=", "False", ",", "Ġwhite", "_", "mask", "=", "False", ",", "Ġyellow", "_", "mask", "=", "False", "):", "ĊĠĠĠ", "Ġ#", "ĠSm", "ooth", "Ġthe", "Ġimage", "ĊĠĠĠ", "Ġimage", "Ġ=", "Ġcv", "2", ".", "Gaussian", "Blur", "(", "image", ",", "Ġ(", "1", "1", ",", "Ġ", "1", "1", "),", "Ġ", "0", ")", "ĊĊĠĠĠ", "Ġ#", "Ġconvert", "Ġto", "ĠH", "SV", "Ġcolor", "Ġsystem", "ĊĠĠĠ", "Ġh", "sv", "_", "image", "Ġ=", "Ġcv", "2", ".", "cvt", "Color", "(", "image", ",", "Ġcv", "2", ".", "COLOR", "_", "RGB", "2", "H", "SV", ")", "ĊĊĠĠĠ", "Ġ#", "Ġdefine", "Ġgreen", "Ġmask", "ĊĠĠĠ", "Ġ#", "Ġgreen", "Ġis", "Ġapplied", "Ġto", "Ġall", "Ġthe", "Ġimages", "Ġas", "Ġthe", "Ġdo", "gs", "Ġare", "Ġall", "Ġin", "Ġgr", "ass", "ĊĠĠĠ", "Ġlow", "_", "green", "Ġ=", "Ġnp", ".", "array", "([", "3", "0", ",", "Ġ", "0", ",", "Ġ", "0", "])", "ĊĠĠĠ", "Ġhigh", "_", "green", "Ġ=", "Ġnp", ".", "array", "([", "8", "6", ",", "Ġ", "2", "5", "5", ",", "Ġ", "2", "5", "5", "])", "ĊĠĠĠ", "Ġmask", "_", "final", "Ġ=", "Ġcv", "2", ".", "in", "Range", "(", "h", "sv", "_", "image", ",", "Ġlow", "_", "green", ",", "Ġhigh", "_", "green", ")", "ĊĊĠĠĠ", "Ġ#", "Ġdefine", "Ġblue", "Ġmask", "Ġand", "Ġapply", "Ġit", "ĊĠĠĠ", "Ġif", "Ġblue", "_", "mask", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠ", "Ġlow", "_", "blue", "Ġ=", "Ġnp", ".", "array", "([", "8", "0", ",", "Ġ", "0", ",", "Ġ", "0", "])", "ĊĠĠĠĠĠĠĠ", "Ġhigh", "_", "blue", "Ġ=", "Ġnp", ".", "array", "([", "1", "2", "5", ",", "Ġ", "2", "5", "5", ",", "Ġ", "2", "5", "5", "])", "ĊĠĠĠĠĠĠĠ", "Ġmask", "_", "blue", "Ġ=", "Ġcv", "2", ".", "in", "Range", "(", "h", "sv", "_", "image", ",", "Ġlow", "_", "blue", ",", "Ġhigh", "_", "blue", ")", "ĊĠĠĠĠĠĠĠ", "Ġmask", "_", "final", "Ġ=", "Ġmask", "_", "final", "Ġ+", "Ġmask", "_", "blue", "ĊĊĠĠĠ", "Ġ#", "Ġdefine", "Ġwhite", "Ġmask", "Ġand", "Ġapply", "Ġit", "ĊĠĠĠ", "Ġif", "Ġwhite", "_", "mask", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠ", "Ġlow", "_", "white", "Ġ=", "Ġnp", ".", "array", "([", "0", ",", "Ġ", "0", ",", "Ġ", "2", "0", "0", "])", "ĊĠĠĠĠĠĠĠ", "Ġhigh", "_", "white", "Ġ=", "Ġnp", ".", "array", "([", "1", "4", "5", ",", "Ġ", "6", "0", ",", "Ġ", "2", "5", "5", "])", "ĊĠĠĠĠĠĠĠ", "Ġmask", "_", "white", "Ġ=", "Ġcv", "2", ".", "in", "Range", "(", "h", "sv", "_", "image", ",", "Ġlow", "_", "white", ",", "Ġhigh", "_", "white", ")", "ĊĠĠĠĠĠĠĠ", "Ġmask", "_", "final", "Ġ=", "Ġmask", "_", "final", "Ġ+", "Ġmask", "_", "white", "ĊĊĠĠĠ", "Ġ#", "Ġdefine", "Ġyellow", "Ġmask", "Ġand", "Ġapply", "Ġit", "ĊĠĠĠ", "Ġif", "Ġyellow", "_", "mask", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠ", "Ġlow", "_", "yellow", "Ġ=", "Ġnp", ".", "array", "([", "1", "0", ",", "Ġ", "0", ",", "Ġ", "0", "])", "ĊĠĠĠĠĠĠĠ", "Ġhigh", "_", "yellow", "Ġ=", "Ġnp", ".", "array", "([", "3", "3", ",", "Ġ", "2", "5", "5", ",", "Ġ", "1", "0", "0", "])", "ĊĠĠĠĠĠĠĠ", "Ġmask", "_", "yellow", "Ġ=", "Ġcv", "2", ".", "in", "Range", "(", "h", "sv", "_", "image", ",", "Ġlow", "_", "yellow", ",", "Ġhigh", "_", "yellow", ")", "ĊĠĠĠĠĠĠĠ", "Ġmask", "_", "final", "Ġ=", "Ġmask", "_", "final", "Ġ+", "Ġmask", "_", "yellow", "ĊĊĠĠĠ", "Ġ#", "Ġmake", "Ġobject", "Ġwhite", "Ġand", "Ġbackground", "Ġblack", "ĊĠĠĠ", "Ġmask", "_", "final", "Ġ=", "Ġ", "2", "5", "5", "Ġ-", "Ġmask", "_", "final", "ĊĊĠĠĠ", "Ġ#", "Ġapply", "Ġopening", "Ġto", "Ġfinal", "Ġmask", "ĊĠĠĠ", "Ġ#", "Ġdefine", "Ġ", "2", "7", "*", "2", "7", "Ġel", "li", "pt", "ical", "Ġstruct", "uring", "Ġelement", "Ġfor", "Ġopening", "ĊĠĠĠ", "Ġkernel", "Ġ=", "Ġcv", "2", ".", "get", "Struct", "uring", "Element", "(", "cv", "2", ".", "MOR", "PH", "_", "EL", "LI", "PSE", ",", "Ġ(", "2", "7", ",", "Ġ", "2", "7", "))", "ĊĠĠĠ", "Ġ#", "Ġapply", "Ġopening", "ĊĠĠĠ", "Ġmask", "_", "final", "Ġ=", "Ġcv", "2", ".", "morph", "ology", "Ex", "(", "mask", "_", "final", ",", "Ġcv", "2", ".", "MOR", "PH", "_", "OPEN", ",", "Ġkernel", ")", "ĊĊĠĠĠ", "Ġ#", "Ġapply", "Ġclosing", "Ġto", "Ġfinal", "Ġmask", "ĊĠĠĠ", "Ġ#", "Ġdefine", "Ġ", "4", "1", "*", "4", "1", "Ġel", "li", "pt", "ical", "Ġstruct", "uring", "Ġelement", "Ġfor", "Ġopening", "ĊĠĠĠ", "Ġkernel", "Ġ=", "Ġcv", "2", ".", "get", "Struct", "uring", "Element", "(", "cv", "2", ".", "MOR", "PH", "_", "EL", "LI", "PSE", ",", "Ġ(", "4", "1", ",", "Ġ", "4", "1", "))", "ĊĠĠĠ", "Ġ#", "Ġapply", "Ġclosing", "ĊĠĠĠ", "Ġmask", "_", "final", "Ġ=", "Ġcv", "2", ".", "morph", "ology", "Ex", "(", "mask", "_", "final", ",", "Ġcv", "2", ".", "MOR", "PH", "_", "CLOSE", ",", "Ġkernel", ")", "ĊĊĠĠĠ", "Ġ#", "Ġget", "Ġbiggest", "Ġconnected", "Ġcomponent", "ĊĠĠĠ", "Ġsegment", "ed", "_", "image", "Ġ=", "Ġnp", ".", "zeros", "_", "like", "(", "mask", "_", "final", ")", "ĊĠĠĠ", "Ġfor", "Ġval", "Ġin", "Ġnp", ".", "unique", "(", "mask", "_", "final", ")[", "1", ":", "]:", "ĊĠĠĠĠĠĠĠ", "Ġmask", "Ġ=", "Ġnp", ".", "uint", "8", "(", "mask", "_", "final", "Ġ==", "Ġval", ")", "ĊĠĠĠĠĠĠĠ", "Ġlabels", ",", "Ġstats", "Ġ=", "Ġcv", "2", ".", "connected", "Components", "With", "Stats", "(", "mask", ",", "Ġ", "4", ")[", "1", ":", "3", "]", "ĊĠĠĠĠĠĠĠ", "Ġlargest", "_", "label", "Ġ=", "Ġ", "1", "Ġ+", "Ġnp", ".", "argmax", "(", "stats", "[", "1", ":,", "Ġcv", "2", ".", "CC", "_", "STAT", "_", "AREA", "])", "ĊĠĠĠĠĠĠĠ", "Ġsegment", "ed", "_", "image", "[", "labels", "Ġ==", "Ġlargest", "_", "label", "]", "Ġ=", "Ġval", "ĊĊĠĠĠ", "Ġreturn", "Ġsegment", "ed", "_", "image", "ĊĊ", "Ċ", "#", "ĠRead", "ĠB", "1", "Ċ", "image", "_", "b", "gr", "Ġ=", "Ġcv", "2", ".", "imread", "(", "B", "1", ")", "Ċ", "#", "Ġconvert", "ĠB", "1", "Ġfrom", "Ġb", "gr", "Ġto", "Ġrgb", "Ċ", "image", "Ġ=", "Ġcv", "2", ".", "cvt", "Color", "(", "image", "_", "b", "gr", ",", "Ġcv", "2", ".", "COLOR", "_", "BGR", "2", "RGB", ")", "Ċ", "#", "ĠApply", "Ġsegmentation", "Ġto", "ĠB", "1", "Ġwith", "Ġonly", "Ġgreen", "Ġmask", "Ċ", "segment", "ed", "_", "image", "Ġ=", "Ġsegmentation", "_", "function", "(", "image", ",", "Ġ\"", "B", "1", "\",", "Ġblue", "_", "mask", "=", "False", ",", "Ġwhite", "_", "mask", "=", "False", ",", "Ġyellow", "_", "mask", "=", "False", ")", "Ċ", "cv", "2", ".", "im", "write", "(\"", "the", "3", "_", "B", "1", "_", "output", ".", "png", "\",", "Ġsegment", "ed", "_", "image", ")", "Ċ", "Ċ", "#", "ĠRead", "ĠB", "2", "Ċ", "image", "_", "b", "gr", "Ġ=", "Ġcv", "2", ".", "imread", "(", "B", "2", ")", "Ċ", "#", "Ġconvert", "ĠB", "2", "Ġfrom", "Ġb", "gr", "Ġto", "Ġrgb", "Ċ", "image", "Ġ=", "Ġcv", "2", ".", "cvt", "Color", "(", "image", "_", "b", "gr", ",", "Ġcv", "2", ".", "COLOR", "_", "BGR", "2", "RGB", ")", "Ċ", "#", "ĠApply", "Ġsegmentation", "Ġto", "ĠB", "2", "Ġwith", "Ġgreen", ",", "Ġwhite", ",", "Ġyellow", "Ġand", "Ġblue", "Ġmasks", "Ċ", "segment", "ed", "_", "image", "Ġ=", "Ġsegmentation", "_", "function", "(", "image", ",", "Ġ\"", "B", "2", "\",", "Ġblue", "_", "mask", "=", "True", ",", "Ġwhite", "_", "mask", "=", "True", ",", "Ġyellow", "_", "mask", "=", "True", ")", "Ċ", "cv", "2", ".", "im", "write", "(\"", "the", "3", "_", "B", "2", "_", "output", ".", "png", "\",", "Ġsegment", "ed", "_", "image", ")", "Ċ", "Ċ", "#", "ĠRead", "ĠB", "3", "Ċ", "image", "_", "b", "gr", "Ġ=", "Ġcv", "2", ".", "imread", "(", "B", "3", ")", "Ċ", "#", "Ġconvert", "ĠB", "3", "Ġfrom", "Ġb", "gr", "Ġto", "Ġrgb", "Ċ", "image", "Ġ=", "Ġcv", "2", ".", "cvt", "Color", "(", "image", "_", "b", "gr", ",", "Ġcv", "2", ".", "COLOR", "_", "BGR", "2", "RGB", ")", "Ċ", "#", "ĠApply", "Ġsegmentation", "Ġto", "ĠB", "3", "Ġwith", "Ġgreen", "Ġand", "Ġblue", "Ġmasks", "Ċ", "segment", "ed", "_", "image", "Ġ=", "Ġsegmentation", "_", "function", "(", "image", ",", "Ġ\"", "B", "3", "\",", "Ġblue", "_", "mask", "=", "True", ",", "Ġwhite", "_", "mask", "=", "False", ",", "Ġyellow", "_", "mask", "=", "False", ")", "Ċ", "cv", "2", ".", "im", "write", "(\"", "the", "3", "_", "B", "3", "_", "output", ".", "png", "\",", "Ġsegment", "ed", "_", "image", ")", "Ċ", "Ċ", "#", "ĠRead", "ĠB", "4", "Ċ", "image", "_", "b", "gr", "Ġ=", "Ġcv", "2", ".", "imread", "(", "B", "4", ")", "Ċ", "#", "Ġconvert", "ĠB", "4", "Ġfrom", "Ġb", "gr", "Ġto", "Ġrgb", "Ċ", "image", "Ġ=", "Ġcv", "2", ".", "cvt", "Color", "(", "image", "_", "b", "gr", ",", "Ġcv", "2", ".", "COLOR", "_", "BGR", "2", "RGB", ")", "Ċ", "#", "ĠApply", "Ġsegmentation", "Ġto", "ĠB", "4", "Ġwith", "Ġgreen", "Ġand", "Ġblue", "Ġmasks", "Ċ", "segment", "ed", "_", "image", "Ġ=", "Ġsegmentation", "_", "function", "(", "image", ",", "Ġ\"", "B", "4", "\",", "Ġblue", "_", "mask", "=", "True", ",", "Ġwhite", "_", "mask", "=", "False", ",", "Ġyellow", "_", "mask", "=", "False", ")", "Ċ", "cv", "2", ".", "im", "write", "(\"", "the", "3", "_", "B", "4", "_", "output", ".", "png", "\",", "Ġsegment", "ed", "_", "image", ")", "Ċ", "Ċ", "#", "ĠRead", "ĠB", "5", "Ċ", "image", "_", "b", "gr", "Ġ=", "Ġcv", "2", ".", "imread", "(", "B", "5", ")", "Ċ", "#", "Ġconvert", "ĠB", "5", "Ġfrom", "Ġb", "gr", "Ġto", "Ġrgb", "Ċ", "image", "Ġ=", "Ġcv", "2", ".", "cvt", "Color", "(", "image", "_", "b", "gr", ",", "Ġcv", "2", ".", "COLOR", "_", "BGR", "2", "RGB", ")", "Ċ", "#", "ĠApply", "Ġsegmentation", "Ġto", "ĠB", "2", "Ġwith", "Ġgreen", "Ġ,", "yellow", "Ġand", "Ġblue", "Ġmasks", "Ċ", "segment", "ed", "_", "image", "Ġ=", "Ġsegmentation", "_", "function", "(", "image", ",", "Ġ\"", "B", "5", "\",", "Ġblue", "_", "mask", "=", "True", ",", "Ġwhite", "_", "mask", "=", "False", ",", "Ġyellow", "_", "mask", "=", "True", ")", "Ċ", "cv", "2", ".", "im", "write", "(\"", "the", "3", "_", "B", "5", "_", "output", ".", "png", "\",", "Ġsegment", "ed", "_", "image", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 71, 71, 71, 71, 71, 71, 73, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 90, 90, 90, 90, 90, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 97, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 105, 106, 106, 106, 106, 106, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112 ]
[ 1, 2, 4, 7, 9, 10, 12, 15, 17, 18, 19, 20, 21, 22, 23, 24, 25, 1, 2, 4, 8, 10, 12, 14, 15, 17, 18, 19, 20, 21, 22, 23, 24, 25, 1, 1, 7, 13, 16, 19, 1, 7, 10, 11, 1, 1, 2, 3, 5, 7, 10, 11, 12, 18, 19, 20, 21, 22, 25, 26, 1, 2, 3, 5, 7, 10, 11, 12, 18, 19, 20, 21, 22, 25, 26, 1, 2, 3, 5, 7, 10, 11, 12, 18, 19, 20, 21, 22, 25, 26, 1, 2, 3, 5, 7, 10, 11, 12, 18, 19, 20, 21, 22, 25, 26, 1, 2, 3, 5, 7, 10, 11, 12, 18, 19, 20, 21, 22, 25, 26, 1, 1, 4, 17, 18, 26, 27, 32, 33, 38, 39, 44, 45, 49, 50, 55, 56, 62, 63, 67, 68, 73, 74, 81, 82, 86, 87, 92, 94, 4, 6, 9, 13, 17, 23, 4, 10, 12, 15, 16, 17, 25, 29, 30, 35, 36, 38, 39, 40, 41, 42, 43, 44, 46, 47, 48, 49, 4, 6, 14, 17, 19, 21, 27, 34, 4, 6, 8, 9, 14, 16, 19, 20, 21, 24, 29, 30, 35, 36, 39, 40, 41, 46, 47, 50, 51, 52, 54, 55, 4, 6, 13, 19, 24, 4, 6, 12, 15, 23, 26, 30, 34, 41, 44, 48, 51, 53, 57, 61, 64, 67, 70, 4, 8, 9, 14, 16, 19, 20, 25, 27, 28, 29, 30, 31, 32, 33, 34, 35, 37, 4, 9, 10, 15, 17, 20, 21, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42, 4, 9, 10, 15, 17, 20, 21, 22, 24, 29, 30, 31, 33, 34, 39, 40, 44, 45, 50, 51, 56, 57, 62, 63, 4, 6, 13, 18, 23, 27, 33, 36, 4, 7, 12, 13, 17, 20, 25, 26, 8, 12, 13, 17, 19, 22, 23, 28, 30, 31, 32, 33, 34, 35, 36, 37, 38, 40, 8, 13, 14, 18, 20, 23, 24, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 46, 8, 13, 14, 18, 20, 23, 24, 25, 27, 32, 33, 34, 36, 37, 42, 43, 47, 48, 52, 53, 58, 59, 63, 64, 8, 13, 14, 19, 21, 26, 27, 32, 34, 39, 40, 44, 4, 6, 13, 19, 24, 28, 34, 37, 4, 7, 13, 14, 18, 21, 26, 27, 8, 12, 13, 18, 20, 23, 24, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42, 8, 13, 14, 19, 21, 24, 25, 30, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 46, 8, 13, 14, 19, 21, 24, 25, 26, 28, 33, 34, 35, 37, 38, 43, 44, 48, 49, 54, 55, 60, 61, 66, 67, 8, 13, 14, 19, 21, 26, 27, 32, 34, 39, 40, 45, 4, 6, 13, 20, 25, 29, 35, 38, 4, 7, 14, 15, 19, 22, 27, 28, 8, 12, 13, 19, 21, 24, 25, 30, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42, 8, 13, 14, 20, 22, 25, 26, 31, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 47, 8, 13, 14, 20, 22, 25, 26, 27, 29, 34, 35, 36, 38, 39, 44, 45, 49, 50, 56, 57, 62, 63, 69, 70, 8, 13, 14, 19, 21, 26, 27, 32, 34, 39, 40, 46, 4, 6, 11, 18, 24, 28, 39, 45, 4, 9, 10, 15, 17, 18, 19, 20, 21, 23, 28, 29, 34, 4, 6, 12, 20, 23, 29, 34, 4, 6, 13, 14, 15, 16, 17, 18, 19, 22, 24, 26, 30, 37, 42, 50, 54, 62, 4, 11, 13, 16, 17, 18, 21, 27, 32, 39, 40, 42, 43, 44, 47, 49, 50, 52, 54, 57, 58, 60, 61, 62, 63, 64, 65, 66, 68, 4, 6, 12, 20, 4, 9, 10, 15, 17, 20, 21, 22, 27, 32, 34, 35, 39, 40, 45, 46, 49, 50, 51, 54, 56, 57, 61, 62, 69, 70, 4, 6, 12, 20, 23, 29, 34, 4, 6, 13, 14, 15, 16, 17, 18, 19, 22, 24, 26, 30, 37, 42, 50, 54, 62, 4, 11, 13, 16, 17, 18, 21, 27, 32, 39, 40, 42, 43, 44, 47, 49, 50, 52, 54, 57, 58, 60, 61, 62, 63, 64, 65, 66, 68, 4, 6, 12, 20, 4, 9, 10, 15, 17, 20, 21, 22, 27, 32, 34, 35, 39, 40, 45, 46, 49, 50, 51, 54, 56, 57, 62, 63, 70, 71, 4, 6, 10, 18, 28, 38, 4, 12, 14, 15, 20, 22, 25, 26, 31, 32, 36, 37, 41, 42, 47, 48, 4, 8, 12, 15, 18, 19, 25, 26, 30, 31, 36, 38, 39, 40, 42, 8, 13, 15, 18, 19, 23, 24, 25, 29, 30, 35, 38, 42, 43, 8, 15, 16, 22, 24, 27, 28, 29, 38, 48, 52, 57, 58, 62, 63, 64, 65, 67, 68, 69, 70, 71, 8, 16, 17, 22, 24, 25, 26, 28, 31, 32, 38, 39, 44, 45, 46, 48, 51, 52, 53, 55, 56, 60, 61, 65, 67, 8, 16, 18, 19, 24, 25, 31, 34, 42, 43, 48, 49, 51, 55, 4, 11, 19, 21, 22, 27, 1, 1, 2, 7, 9, 10, 1, 6, 7, 8, 10, 12, 15, 16, 17, 23, 24, 25, 26, 27, 1, 2, 10, 12, 13, 18, 20, 22, 25, 29, 1, 6, 8, 11, 12, 13, 16, 21, 22, 27, 28, 29, 31, 32, 35, 36, 37, 42, 43, 46, 47, 50, 51, 1, 2, 8, 21, 24, 26, 27, 32, 37, 43, 48, 1, 8, 10, 11, 16, 18, 31, 32, 40, 41, 46, 47, 49, 50, 51, 53, 58, 59, 63, 64, 69, 70, 76, 77, 81, 82, 87, 88, 95, 96, 100, 101, 106, 107, 1, 3, 4, 5, 7, 12, 14, 17, 18, 19, 20, 21, 22, 28, 29, 32, 34, 42, 44, 45, 50, 51, 1, 1, 2, 7, 9, 10, 1, 6, 7, 8, 10, 12, 15, 16, 17, 23, 24, 25, 26, 27, 1, 2, 10, 12, 13, 18, 20, 22, 25, 29, 1, 6, 8, 11, 12, 13, 16, 21, 22, 27, 28, 29, 31, 32, 35, 36, 37, 42, 43, 46, 47, 50, 51, 1, 2, 8, 21, 24, 26, 27, 32, 38, 39, 45, 46, 53, 57, 62, 68, 1, 8, 10, 11, 16, 18, 31, 32, 40, 41, 46, 47, 49, 50, 51, 53, 58, 59, 63, 64, 68, 69, 75, 76, 80, 81, 85, 86, 93, 94, 98, 99, 103, 104, 1, 3, 4, 5, 7, 12, 14, 17, 18, 19, 20, 21, 22, 28, 29, 32, 34, 42, 44, 45, 50, 51, 1, 1, 2, 7, 9, 10, 1, 6, 7, 8, 10, 12, 15, 16, 17, 23, 24, 25, 26, 27, 1, 2, 10, 12, 13, 18, 20, 22, 25, 29, 1, 6, 8, 11, 12, 13, 16, 21, 22, 27, 28, 29, 31, 32, 35, 36, 37, 42, 43, 46, 47, 50, 51, 1, 2, 8, 21, 24, 26, 27, 32, 38, 42, 47, 53, 1, 8, 10, 11, 16, 18, 31, 32, 40, 41, 46, 47, 49, 50, 51, 53, 58, 59, 63, 64, 68, 69, 75, 76, 80, 81, 86, 87, 94, 95, 99, 100, 105, 106, 1, 3, 4, 5, 7, 12, 14, 17, 18, 19, 20, 21, 22, 28, 29, 32, 34, 42, 44, 45, 50, 51, 1, 1, 2, 7, 9, 10, 1, 6, 7, 8, 10, 12, 15, 16, 17, 23, 24, 25, 26, 27, 1, 2, 10, 12, 13, 18, 20, 22, 25, 29, 1, 6, 8, 11, 12, 13, 16, 21, 22, 27, 28, 29, 31, 32, 35, 36, 37, 42, 43, 46, 47, 50, 51, 1, 2, 8, 21, 24, 26, 27, 32, 38, 42, 47, 53, 1, 8, 10, 11, 16, 18, 31, 32, 40, 41, 46, 47, 49, 50, 51, 53, 58, 59, 63, 64, 68, 69, 75, 76, 80, 81, 86, 87, 94, 95, 99, 100, 105, 106, 1, 3, 4, 5, 7, 12, 14, 17, 18, 19, 20, 21, 22, 28, 29, 32, 34, 42, 44, 45, 50, 51, 1, 1, 2, 7, 9, 10, 1, 6, 7, 8, 10, 12, 15, 16, 17, 23, 24, 25, 26, 27, 1, 2, 10, 12, 13, 18, 20, 22, 25, 29, 1, 6, 8, 11, 12, 13, 16, 21, 22, 27, 28, 29, 31, 32, 35, 36, 37, 42, 43, 46, 47, 50, 51, 1, 2, 8, 21, 24, 26, 27, 32, 38, 40, 46, 50, 55, 61, 1, 8, 10, 11, 16, 18, 31, 32, 40, 41, 46, 47, 49, 50, 51, 53, 58, 59, 63, 64, 68, 69, 75, 76, 80, 81, 86, 87, 94, 95, 99, 100, 104, 105, 1, 3, 4, 5, 7, 12, 14, 17, 18, 19, 20, 21, 22, 28, 29, 32, 34, 42, 44, 45, 50, 51 ]
065a566b3e520c14f20d0d7d668ec58404d6e11b
# coding=utf-8 # Copyright 2016 Mystopia. from __future__ import absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement from django.db.models.signals import m2m_changed, post_save from django.dispatch import receiver from dicpick.models import Task, TaskType # The signal handlers below ensure that certain changes to TaskType are reflected onto all the tasks of that type. # Note that the signal handlers run in the same transaction as the event that triggered the signal. @receiver(post_save, sender=TaskType) def create_task_instances(sender, instance, **kwargs): """Ensure that there is a task instance for each date in the range specified by the task type. Necessary to support date range changes. """ task_type = instance existing_dates = set([task.date for task in task_type.tasks.all()]) required_dates = set(task_type.date_range()) missing_dates = required_dates - existing_dates superfluous_dates = existing_dates - required_dates Task.objects.filter(task_type=task_type, date__in=superfluous_dates).delete() for missing_date in missing_dates: task = Task(task_type=task_type, date=missing_date, num_people=task_type.num_people, score=task_type.score) task.save() Task.objects.filter(task_type=task_type).update(num_people=task_type.num_people, score=task_type.score) @receiver(m2m_changed, sender=TaskType.tags.through) def tags_updated(sender, instance, action, **kwargs): """If tags were added to or removed from a TaskType, add/remove them from all tasks of that type.""" task_type = instance pk_set = kwargs.pop("pk_set") if action == "post_add": for task in task_type.tasks.all(): task.tags.add(*pk_set) elif action == "post_remove": for task in task_type.tasks.all(): task.tags.remove(*pk_set)
[ 40, 10633, 66, 3330, 50, 61, 222, 40, 2657, 244, 55, 53, 54, 59, 507, 757, 539, 923, 51, 222, 222, 1097, 1176, 9689, 523, 1220, 7984, 100, 485, 49, 20707, 49, 34478, 49, 11825, 100, 25640, 49, 1489, 100, 1144, 49, 15393, 100, 30828, 49, 642, 100, 9854, 222, 222, 1097, 8532, 51, 1219, 51, 3404, 51, 28744, 1220, 364, 55, 114, 100, 8970, 49, 2381, 100, 2882, 222, 1097, 8532, 51, 7154, 1220, 13570, 222, 222, 1097, 27477, 8817, 51, 3404, 1220, 4211, 49, 4211, 638, 499, 222, 40, 906, 7086, 15089, 4834, 7197, 708, 9464, 3417, 391, 4211, 638, 904, 43326, 14825, 1187, 341, 8285, 451, 708, 847, 51, 222, 40, 5857, 708, 341, 7086, 15089, 1441, 347, 341, 2454, 6148, 641, 341, 1708, 708, 16782, 341, 7086, 51, 499, 222, 69, 16094, 45, 1545, 100, 2882, 49, 7056, 66, 2265, 638, 46, 222, 610, 1506, 100, 2810, 100, 12203, 45, 8272, 49, 1998, 49, 1137, 5350, 731, 303, 1547, 23424, 708, 2038, 458, 331, 2918, 1998, 456, 2531, 2361, 347, 341, 2189, 3205, 829, 341, 2918, 847, 51, 465, 8066, 16159, 391, 2208, 2361, 2189, 3417, 51, 303, 1547, 303, 2918, 100, 700, 299, 1998, 303, 4917, 100, 4444, 299, 758, 2034, 2810, 51, 787, 456, 2918, 347, 2918, 100, 700, 51, 8255, 51, 483, 28160, 303, 2147, 100, 4444, 299, 758, 45, 2810, 100, 700, 51, 787, 100, 3623, 1177, 303, 5839, 100, 4444, 299, 2147, 100, 4444, 449, 4917, 100, 4444, 303, 2615, 15472, 3311, 100, 4444, 299, 4917, 100, 4444, 449, 2147, 100, 4444, 303, 4211, 51, 5754, 51, 2049, 45, 2810, 100, 700, 66, 2810, 100, 700, 49, 2361, 523, 285, 66, 5282, 15472, 3311, 100, 4444, 566, 2577, 365, 303, 456, 5839, 100, 787, 347, 5839, 100, 4444, 63, 310, 2918, 299, 4211, 45, 2810, 100, 700, 66, 2810, 100, 700, 49, 2361, 66, 9832, 100, 787, 49, 1952, 100, 16677, 66, 2810, 100, 700, 51, 1538, 100, 16677, 49, 6842, 66, 2810, 100, 700, 51, 5142, 46, 310, 2918, 51, 2882, 365, 465, 4211, 51, 5754, 51, 2049, 45, 2810, 100, 700, 66, 2810, 100, 700, 566, 1896, 45, 1538, 100, 16677, 66, 2810, 100, 700, 51, 1538, 100, 16677, 49, 6842, 66, 2810, 100, 700, 51, 5142, 46, 499, 222, 69, 16094, 45, 114, 55, 114, 100, 8970, 49, 7056, 66, 2265, 638, 51, 3981, 51, 11002, 46, 222, 610, 5957, 100, 6379, 45, 8272, 49, 1998, 49, 2146, 49, 1137, 5350, 731, 303, 1547, 2811, 5957, 4547, 3654, 391, 575, 6563, 664, 331, 4211, 638, 49, 1035, 52, 2564, 3049, 664, 1187, 8285, 451, 708, 847, 7128, 303, 2918, 100, 700, 299, 1998, 303, 15762, 100, 489, 299, 10321, 51, 3254, 459, 3198, 100, 489, 678, 303, 434, 2146, 630, 332, 1545, 100, 688, 582, 310, 456, 2918, 347, 2918, 100, 700, 51, 8255, 51, 483, 2284, 343, 2918, 51, 3981, 51, 688, 2761, 3198, 100, 489, 46, 303, 4378, 2146, 630, 332, 1545, 100, 2564, 582, 310, 456, 2918, 347, 2918, 100, 700, 51, 8255, 51, 483, 2284, 343, 2918, 51, 3981, 51, 2564, 2761, 3198, 100, 489, 46, 222 ]
[ "#", "Ġcoding", "=", "utf", "-", "8", "Ċ", "#", "ĠCopyright", "Ġ", "2", "0", "1", "6", "ĠM", "yst", "op", "ia", ".", "Ċ", "Ċ", "from", "Ġ__", "future", "__", "Ġimport", "Ġabsolute", "_", "import", ",", "Ġdivision", ",", "Ġgenerators", ",", "Ġnested", "_", "scopes", ",", "Ġprint", "_", "function", ",", "Ġunicode", "_", "literals", ",", "Ġwith", "_", "statement", "Ċ", "Ċ", "from", "Ġdjango", ".", "db", ".", "models", ".", "signals", "Ġimport", "Ġm", "2", "m", "_", "changed", ",", "Ġpost", "_", "save", "Ċ", "from", "Ġdjango", ".", "dispatch", "Ġimport", "Ġreceiver", "Ċ", "Ċ", "from", "Ġdic", "pick", ".", "models", "Ġimport", "ĠTask", ",", "ĠTask", "Type", "ĊĊ", "Ċ", "#", "ĠThe", "Ġsignal", "Ġhandlers", "Ġbelow", "Ġensure", "Ġthat", "Ġcertain", "Ġchanges", "Ġto", "ĠTask", "Type", "Ġare", "Ġreflected", "Ġonto", "Ġall", "Ġthe", "Ġtasks", "Ġof", "Ġthat", "Ġtype", ".", "Ċ", "#", "ĠNote", "Ġthat", "Ġthe", "Ġsignal", "Ġhandlers", "Ġrun", "Ġin", "Ġthe", "Ġsame", "Ġtransaction", "Ġas", "Ġthe", "Ġevent", "Ġthat", "Ġtriggered", "Ġthe", "Ġsignal", ".", "ĊĊ", "Ċ", "@", "receiver", "(", "post", "_", "save", ",", "Ġsender", "=", "Task", "Type", ")", "Ċ", "def", "Ġcreate", "_", "task", "_", "instances", "(", "sender", ",", "Ġinstance", ",", "Ġ**", "kwargs", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Ensure", "Ġthat", "Ġthere", "Ġis", "Ġa", "Ġtask", "Ġinstance", "Ġfor", "Ġeach", "Ġdate", "Ġin", "Ġthe", "Ġrange", "Ġspecified", "Ġby", "Ġthe", "Ġtask", "Ġtype", ".", "ĊĊĠĠĠ", "ĠNe", "cessary", "Ġto", "Ġsupport", "Ġdate", "Ġrange", "Ġchanges", ".", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġtask", "_", "type", "Ġ=", "Ġinstance", "ĊĠĠĠ", "Ġexisting", "_", "dates", "Ġ=", "Ġset", "([", "task", ".", "date", "Ġfor", "Ġtask", "Ġin", "Ġtask", "_", "type", ".", "tasks", ".", "all", "()])", "ĊĠĠĠ", "Ġrequired", "_", "dates", "Ġ=", "Ġset", "(", "task", "_", "type", ".", "date", "_", "range", "())", "ĊĠĠĠ", "Ġmissing", "_", "dates", "Ġ=", "Ġrequired", "_", "dates", "Ġ-", "Ġexisting", "_", "dates", "ĊĠĠĠ", "Ġsuper", "flu", "ous", "_", "dates", "Ġ=", "Ġexisting", "_", "dates", "Ġ-", "Ġrequired", "_", "dates", "ĊĠĠĠ", "ĠTask", ".", "objects", ".", "filter", "(", "task", "_", "type", "=", "task", "_", "type", ",", "Ġdate", "__", "in", "=", "super", "flu", "ous", "_", "dates", ").", "delete", "()", "ĊĠĠĠ", "Ġfor", "Ġmissing", "_", "date", "Ġin", "Ġmissing", "_", "dates", ":", "ĊĠĠĠĠĠĠĠ", "Ġtask", "Ġ=", "ĠTask", "(", "task", "_", "type", "=", "task", "_", "type", ",", "Ġdate", "=", "missing", "_", "date", ",", "Ġnum", "_", "people", "=", "task", "_", "type", ".", "num", "_", "people", ",", "Ġscore", "=", "task", "_", "type", ".", "score", ")", "ĊĠĠĠĠĠĠĠ", "Ġtask", ".", "save", "()", "ĊĊĠĠĠ", "ĠTask", ".", "objects", ".", "filter", "(", "task", "_", "type", "=", "task", "_", "type", ").", "update", "(", "num", "_", "people", "=", "task", "_", "type", ".", "num", "_", "people", ",", "Ġscore", "=", "task", "_", "type", ".", "score", ")", "ĊĊ", "Ċ", "@", "receiver", "(", "m", "2", "m", "_", "changed", ",", "Ġsender", "=", "Task", "Type", ".", "tags", ".", "through", ")", "Ċ", "def", "Ġtags", "_", "updated", "(", "sender", ",", "Ġinstance", ",", "Ġaction", ",", "Ġ**", "kwargs", "):", "ĊĠĠĠ", "Ġ\"\"\"", "If", "Ġtags", "Ġwere", "Ġadded", "Ġto", "Ġor", "Ġremoved", "Ġfrom", "Ġa", "ĠTask", "Type", ",", "Ġadd", "/", "remove", "Ġthem", "Ġfrom", "Ġall", "Ġtasks", "Ġof", "Ġthat", "Ġtype", ".\"\"\"", "ĊĠĠĠ", "Ġtask", "_", "type", "Ġ=", "Ġinstance", "ĊĠĠĠ", "Ġpk", "_", "set", "Ġ=", "Ġkwargs", ".", "pop", "(\"", "pk", "_", "set", "\")", "ĊĠĠĠ", "Ġif", "Ġaction", "Ġ==", "Ġ\"", "post", "_", "add", "\":", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġtask", "Ġin", "Ġtask", "_", "type", ".", "tasks", ".", "all", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtask", ".", "tags", ".", "add", "(*", "pk", "_", "set", ")", "ĊĠĠĠ", "Ġelif", "Ġaction", "Ġ==", "Ġ\"", "post", "_", "remove", "\":", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġtask", "Ġin", "Ġtask", "_", "type", ".", "tasks", ".", "all", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtask", ".", "tags", ".", "remove", "(*", "pk", "_", "set", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45 ]
[ 1, 2, 9, 10, 13, 14, 15, 1, 2, 12, 13, 14, 15, 16, 17, 19, 22, 24, 26, 27, 1, 1, 5, 8, 14, 16, 23, 32, 33, 39, 40, 49, 50, 61, 62, 69, 70, 76, 77, 83, 84, 92, 93, 101, 102, 110, 111, 116, 117, 126, 1, 1, 5, 12, 13, 15, 16, 22, 23, 30, 37, 39, 40, 41, 42, 49, 50, 55, 56, 60, 1, 5, 12, 13, 21, 28, 37, 1, 1, 5, 9, 13, 14, 20, 27, 32, 33, 38, 42, 1, 1, 2, 6, 13, 22, 28, 35, 40, 48, 56, 59, 64, 68, 72, 82, 87, 91, 95, 101, 104, 109, 114, 115, 1, 2, 7, 12, 16, 23, 32, 36, 39, 43, 48, 60, 63, 67, 73, 78, 88, 92, 99, 100, 1, 1, 2, 10, 11, 15, 16, 20, 21, 28, 29, 33, 37, 38, 1, 4, 11, 12, 16, 17, 26, 27, 33, 34, 43, 44, 47, 53, 55, 4, 8, 14, 19, 25, 28, 30, 35, 44, 48, 53, 58, 61, 65, 71, 81, 84, 88, 93, 98, 99, 4, 7, 14, 17, 25, 30, 36, 44, 45, 4, 8, 4, 9, 10, 14, 16, 25, 4, 13, 14, 19, 21, 25, 27, 31, 32, 36, 40, 45, 48, 53, 54, 58, 59, 64, 65, 68, 72, 4, 13, 14, 19, 21, 25, 26, 30, 31, 35, 36, 40, 41, 46, 49, 4, 12, 13, 18, 20, 29, 30, 35, 37, 46, 47, 52, 4, 10, 13, 16, 17, 22, 24, 33, 34, 39, 41, 50, 51, 56, 4, 9, 10, 17, 18, 24, 25, 29, 30, 34, 35, 39, 40, 44, 45, 50, 52, 54, 55, 60, 63, 66, 67, 72, 74, 80, 82, 4, 8, 16, 17, 21, 24, 32, 33, 38, 39, 8, 13, 15, 20, 21, 25, 26, 30, 31, 35, 36, 40, 41, 46, 47, 54, 55, 59, 60, 64, 65, 71, 72, 76, 77, 81, 82, 85, 86, 92, 93, 99, 100, 104, 105, 109, 110, 115, 116, 8, 13, 14, 18, 20, 4, 9, 10, 17, 18, 24, 25, 29, 30, 34, 35, 39, 40, 44, 46, 52, 53, 56, 57, 63, 64, 68, 69, 73, 74, 77, 78, 84, 85, 91, 92, 96, 97, 101, 102, 107, 108, 1, 1, 2, 10, 11, 12, 13, 14, 15, 22, 23, 30, 31, 35, 39, 40, 44, 45, 52, 53, 1, 4, 9, 10, 17, 18, 24, 25, 34, 35, 42, 43, 46, 52, 54, 4, 8, 10, 15, 20, 26, 29, 32, 40, 45, 47, 52, 56, 57, 61, 62, 68, 73, 78, 82, 88, 91, 96, 101, 105, 4, 9, 10, 14, 16, 25, 4, 7, 8, 11, 13, 20, 21, 24, 26, 28, 29, 32, 34, 4, 7, 14, 17, 19, 23, 24, 27, 29, 8, 12, 17, 20, 25, 26, 30, 31, 36, 37, 40, 43, 12, 17, 18, 22, 23, 26, 28, 30, 31, 34, 35, 4, 9, 16, 19, 21, 25, 26, 32, 34, 8, 12, 17, 20, 25, 26, 30, 31, 36, 37, 40, 43, 12, 17, 18, 22, 23, 29, 31, 33, 34, 37, 38 ]
dc88686d3cbb4223b4de6847bf4fc29b93054b00
#! /usr/bin/env python3 import EchooFunctions, cgi, MySQLdb, hashlib, time, requests, os print("Content-type: text/html\n") form = cgi.FieldStorage() # database connection user = "i494f18_team34" db_pass = "my+sql=i494f18_team34" db_con = MySQLdb.connect(host="db.soic.indiana.edu", port=3306, user=user, passwd=db_pass, db=user) cursor = db_con.cursor() receiverID = form.getfirst("user", "") userName = "" userID = "" if "echooUser" in str(os.environ): userName = EchooFunctions.getUserName() userName = userName[0] userID = EchooFunctions.getUserID(cursor, userName) admin = False # change the status of veriable if userName != "": if EchooFunctions.checkUserType(cursor, userName) == "administrator": admin = True # main contents to insert friend = "" friendList = "" chatroom = "" userList = [] if userID != "" and receiverID != "": try: SQL = "select u.userID, u.username, u.icon, m.detail, m.time_in,m.messageID from user as u, private_message as m where u.userID = " SQL += "m.sender and m.receiver = " + str(userID) + " and m.sender = " + str(receiverID) SQL += " Union select u.userID, u.username, u.icon, m.detail, m.time_in ,m.messageID from user as u, private_message as m where u.userID = " SQL += "m.sender and m.receiver = " + str(receiverID) + " and m.sender = " + str(userID) SQL += " Order By messageID ;" cursor.execute(SQL) results = cursor.fetchall() except Exception as e: print("<p>Something went wrong with the first SQL!</p>") print(SQL, "Error:", e) else: if results: count = 5 for row in results: word_count = 0 specialChar = row[3] specialChar2 = "" specialChar = EchooFunctions.returnSpecialChara(specialChar) for x in specialChar: if word_count <= 20: specialChar2 += x word_count += 1 else: specialChar2 += x + "<p>" word_count = 0 if count >= 5: chatroom += '<li class="chatDate">' + str(row[4]) + "</li>" count = 0 if str(row[0]) == str(userID): count += 1 chatroom += ( '<li class="mainUser">' + '<a href="userProfile.cgi?user=' + str(row[0]) + '">' + row[1] + '</a><img src="images/user/' + row[2] + '" alt="club1">' ) chatroom += '<br><div class="messageLine">' + specialChar2 + "</div></li>" else: count += 1 chatroom += '<li class="otherUser"><img src="images/user/' + row[2] + '" alt="club1">' chatroom += ( '<a href="userProfile.cgi?userid=' + str(row[0]) + '">' + row[1] + '</a><br><div class="messageLine">' + specialChar2 + "</div></li>" ) if userID == "" or receiverID == "": content = """<p>You don't have right access to this page</p> <a href='index.cgi'></a>""" print(content) print(chatroom)
[ 38359, 536, 3392, 52, 1793, 52, 2141, 4406, 56, 222, 222, 485, 535, 399, 623, 10910, 49, 300, 5140, 49, 15887, 1219, 49, 42575, 49, 1153, 49, 5188, 49, 2355, 222, 222, 1243, 459, 1795, 50, 700, 63, 1367, 52, 935, 97, 115, 678, 222, 222, 618, 299, 300, 5140, 51, 1195, 3581, 365, 222, 222, 40, 3520, 3401, 222, 514, 299, 332, 110, 57, 62, 57, 107, 54, 61, 100, 5896, 56, 57, 39, 222, 1219, 100, 4634, 299, 332, 1791, 48, 2622, 66, 110, 57, 62, 57, 107, 54, 61, 100, 5896, 56, 57, 39, 222, 1219, 100, 487, 299, 15887, 1219, 51, 3532, 45, 2067, 366, 1219, 51, 780, 314, 51, 572, 31242, 51, 7619, 411, 2618, 66, 56, 56, 53, 59, 49, 1275, 66, 514, 49, 44517, 66, 1219, 100, 4634, 49, 3100, 66, 514, 46, 222, 7033, 299, 3100, 100, 487, 51, 7033, 365, 222, 16094, 798, 299, 2252, 51, 390, 2251, 459, 514, 411, 7756, 222, 19604, 299, 3347, 222, 28356, 299, 3347, 222, 344, 332, 8165, 623, 1259, 39, 347, 615, 45, 519, 51, 12849, 731, 303, 21151, 299, 535, 399, 623, 10910, 51, 12226, 577, 365, 303, 21151, 299, 21151, 96, 53, 98, 303, 35304, 299, 535, 399, 623, 10910, 51, 12226, 798, 45, 7033, 49, 21151, 46, 222, 222, 2317, 299, 3208, 222, 40, 1557, 341, 2302, 451, 2666, 1548, 222, 344, 21151, 882, 34863, 303, 434, 535, 399, 623, 10910, 51, 1571, 1259, 638, 45, 7033, 49, 21151, 46, 630, 332, 36700, 582, 310, 5611, 299, 2969, 222, 40, 2594, 7321, 391, 5567, 222, 13604, 299, 3347, 222, 13604, 739, 299, 3347, 222, 6184, 6003, 299, 3347, 222, 514, 739, 299, 1627, 222, 344, 35304, 882, 3347, 480, 13570, 798, 882, 34863, 303, 1614, 63, 310, 4447, 299, 332, 1632, 1064, 51, 28356, 49, 1064, 51, 715, 49, 1064, 51, 1584, 49, 364, 51, 5115, 49, 364, 51, 1021, 100, 285, 49, 114, 51, 1454, 798, 664, 1275, 641, 1064, 49, 964, 100, 1454, 641, 364, 2174, 1064, 51, 28356, 299, 332, 310, 4447, 1475, 332, 114, 51, 8272, 480, 364, 51, 16094, 299, 332, 494, 615, 45, 28356, 46, 494, 332, 480, 364, 51, 8272, 299, 332, 494, 615, 45, 16094, 798, 46, 310, 4447, 1475, 332, 16546, 2209, 1064, 51, 28356, 49, 1064, 51, 715, 49, 1064, 51, 1584, 49, 364, 51, 5115, 49, 364, 51, 1021, 100, 285, 1737, 114, 51, 1454, 798, 664, 1275, 641, 1064, 49, 964, 100, 1454, 641, 364, 2174, 1064, 51, 28356, 299, 332, 310, 4447, 1475, 332, 114, 51, 8272, 480, 364, 51, 16094, 299, 332, 494, 615, 45, 16094, 798, 46, 494, 332, 480, 364, 51, 8272, 299, 332, 494, 615, 45, 28356, 46, 310, 4447, 1475, 332, 7700, 4529, 1492, 798, 2098, 39, 310, 6226, 51, 4540, 45, 3566, 46, 310, 3300, 299, 6226, 51, 44689, 365, 303, 2959, 3284, 641, 503, 63, 310, 1489, 10379, 117, 67, 19308, 14240, 6661, 642, 341, 1950, 4447, 12979, 117, 19824, 310, 1489, 45, 3566, 49, 332, 943, 9398, 503, 46, 303, 832, 63, 310, 434, 3300, 63, 343, 2409, 299, 244, 58, 343, 456, 2720, 347, 3300, 63, 419, 3619, 100, 1016, 299, 244, 53, 419, 7472, 2674, 299, 2720, 96, 56, 98, 419, 7472, 2674, 55, 299, 3347, 419, 7472, 2674, 299, 535, 399, 623, 10910, 51, 620, 11506, 2674, 102, 45, 10105, 2674, 46, 419, 456, 837, 347, 7472, 2674, 63, 547, 434, 3619, 100, 1016, 2527, 244, 55, 53, 63, 733, 7472, 2674, 55, 1475, 837, 733, 3619, 100, 1016, 1475, 244, 54, 547, 832, 63, 733, 7472, 2674, 55, 1475, 837, 494, 3791, 117, 5852, 733, 3619, 100, 1016, 299, 244, 53, 419, 434, 2409, 2394, 244, 58, 63, 547, 11217, 6003, 1475, 4161, 393, 462, 366, 6184, 1563, 13463, 494, 615, 45, 661, 96, 57, 1156, 494, 11095, 393, 5852, 547, 2409, 299, 244, 53, 419, 434, 615, 45, 661, 96, 53, 1156, 630, 615, 45, 28356, 731, 547, 2409, 1475, 244, 54, 547, 11217, 6003, 1475, 327, 733, 4161, 393, 462, 366, 1850, 1259, 13463, 733, 494, 4161, 102, 995, 366, 514, 4302, 51, 10305, 68, 514, 1080, 733, 494, 615, 45, 661, 96, 53, 1156, 733, 494, 44307, 733, 494, 2720, 96, 54, 98, 733, 494, 9402, 102, 789, 1296, 1581, 366, 2266, 52, 514, 7441, 733, 494, 2720, 96, 55, 98, 733, 494, 6121, 3390, 366, 27432, 54, 13463, 547, 848, 547, 11217, 6003, 1475, 4161, 858, 789, 526, 462, 366, 1454, 1829, 13463, 494, 7472, 2674, 55, 494, 11095, 526, 873, 393, 5852, 419, 832, 63, 547, 2409, 1475, 244, 54, 547, 11217, 6003, 1475, 4161, 393, 462, 366, 2476, 1259, 1360, 1296, 1581, 366, 2266, 52, 514, 7441, 494, 2720, 96, 55, 98, 494, 6121, 3390, 366, 27432, 54, 13463, 547, 11217, 6003, 1475, 327, 733, 4161, 102, 995, 366, 514, 4302, 51, 10305, 68, 18255, 1080, 733, 494, 615, 45, 661, 96, 53, 1156, 733, 494, 44307, 733, 494, 2720, 96, 54, 98, 733, 494, 9402, 102, 789, 858, 789, 526, 462, 366, 1454, 1829, 13463, 733, 494, 7472, 2674, 55, 733, 494, 11095, 526, 873, 393, 5852, 547, 848, 222, 222, 344, 35304, 630, 3347, 575, 13570, 798, 630, 34863, 303, 1813, 299, 1547, 65, 117, 67, 4296, 2818, 1348, 1178, 2109, 2872, 391, 477, 1957, 396, 117, 67, 222, 65, 102, 995, 1080, 1076, 51, 10305, 13992, 102, 67, 3012, 303, 1489, 45, 1304, 46, 222, 1243, 45, 6184, 6003, 46, 222 ]
[ "#!", "Ġ/", "usr", "/", "bin", "/", "env", "Ġpython", "3", "Ċ", "Ċ", "import", "ĠE", "ch", "oo", "Functions", ",", "Ġc", "gi", ",", "ĠMySQL", "db", ",", "Ġhashlib", ",", "Ġtime", ",", "Ġrequests", ",", "Ġos", "Ċ", "Ċ", "print", "(\"", "Content", "-", "type", ":", "Ġtext", "/", "html", "\\", "n", "\")", "Ċ", "Ċ", "form", "Ġ=", "Ġc", "gi", ".", "Field", "Storage", "()", "Ċ", "Ċ", "#", "Ġdatabase", "Ġconnection", "Ċ", "user", "Ġ=", "Ġ\"", "i", "4", "9", "4", "f", "1", "8", "_", "team", "3", "4", "\"", "Ċ", "db", "_", "pass", "Ġ=", "Ġ\"", "my", "+", "sql", "=", "i", "4", "9", "4", "f", "1", "8", "_", "team", "3", "4", "\"", "Ċ", "db", "_", "con", "Ġ=", "ĠMySQL", "db", ".", "connect", "(", "host", "=\"", "db", ".", "so", "ic", ".", "ind", "iana", ".", "edu", "\",", "Ġport", "=", "3", "3", "0", "6", ",", "Ġuser", "=", "user", ",", "Ġpasswd", "=", "db", "_", "pass", ",", "Ġdb", "=", "user", ")", "Ċ", "cursor", "Ġ=", "Ġdb", "_", "con", ".", "cursor", "()", "Ċ", "receiver", "ID", "Ġ=", "Ġform", ".", "get", "first", "(\"", "user", "\",", "Ġ\"\")", "Ċ", "userName", "Ġ=", "Ġ\"\"", "Ċ", "userID", "Ġ=", "Ġ\"\"", "Ċ", "if", "Ġ\"", "ech", "oo", "User", "\"", "Ġin", "Ġstr", "(", "os", ".", "environ", "):", "ĊĠĠĠ", "ĠuserName", "Ġ=", "ĠE", "ch", "oo", "Functions", ".", "getUser", "Name", "()", "ĊĠĠĠ", "ĠuserName", "Ġ=", "ĠuserName", "[", "0", "]", "ĊĠĠĠ", "ĠuserID", "Ġ=", "ĠE", "ch", "oo", "Functions", ".", "getUser", "ID", "(", "cursor", ",", "ĠuserName", ")", "Ċ", "Ċ", "admin", "Ġ=", "ĠFalse", "Ċ", "#", "Ġchange", "Ġthe", "Ġstatus", "Ġof", "Ġver", "iable", "Ċ", "if", "ĠuserName", "Ġ!=", "Ġ\"\":", "ĊĠĠĠ", "Ġif", "ĠE", "ch", "oo", "Functions", ".", "check", "User", "Type", "(", "cursor", ",", "ĠuserName", ")", "Ġ==", "Ġ\"", "administrator", "\":", "ĊĠĠĠĠĠĠĠ", "Ġadmin", "Ġ=", "ĠTrue", "Ċ", "#", "Ġmain", "Ġcontents", "Ġto", "Ġinsert", "Ċ", "friend", "Ġ=", "Ġ\"\"", "Ċ", "friend", "List", "Ġ=", "Ġ\"\"", "Ċ", "chat", "room", "Ġ=", "Ġ\"\"", "Ċ", "user", "List", "Ġ=", "Ġ[]", "Ċ", "if", "ĠuserID", "Ġ!=", "Ġ\"\"", "Ġand", "Ġreceiver", "ID", "Ġ!=", "Ġ\"\":", "ĊĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠ", "ĠSQL", "Ġ=", "Ġ\"", "select", "Ġu", ".", "userID", ",", "Ġu", ".", "username", ",", "Ġu", ".", "icon", ",", "Ġm", ".", "detail", ",", "Ġm", ".", "time", "_", "in", ",", "m", ".", "message", "ID", "Ġfrom", "Ġuser", "Ġas", "Ġu", ",", "Ġprivate", "_", "message", "Ġas", "Ġm", "Ġwhere", "Ġu", ".", "userID", "Ġ=", "Ġ\"", "ĊĠĠĠĠĠĠĠ", "ĠSQL", "Ġ+=", "Ġ\"", "m", ".", "sender", "Ġand", "Ġm", ".", "receiver", "Ġ=", "Ġ\"", "Ġ+", "Ġstr", "(", "userID", ")", "Ġ+", "Ġ\"", "Ġand", "Ġm", ".", "sender", "Ġ=", "Ġ\"", "Ġ+", "Ġstr", "(", "receiver", "ID", ")", "ĊĠĠĠĠĠĠĠ", "ĠSQL", "Ġ+=", "Ġ\"", "ĠUnion", "Ġselect", "Ġu", ".", "userID", ",", "Ġu", ".", "username", ",", "Ġu", ".", "icon", ",", "Ġm", ".", "detail", ",", "Ġm", ".", "time", "_", "in", "Ġ,", "m", ".", "message", "ID", "Ġfrom", "Ġuser", "Ġas", "Ġu", ",", "Ġprivate", "_", "message", "Ġas", "Ġm", "Ġwhere", "Ġu", ".", "userID", "Ġ=", "Ġ\"", "ĊĠĠĠĠĠĠĠ", "ĠSQL", "Ġ+=", "Ġ\"", "m", ".", "sender", "Ġand", "Ġm", ".", "receiver", "Ġ=", "Ġ\"", "Ġ+", "Ġstr", "(", "receiver", "ID", ")", "Ġ+", "Ġ\"", "Ġand", "Ġm", ".", "sender", "Ġ=", "Ġ\"", "Ġ+", "Ġstr", "(", "userID", ")", "ĊĠĠĠĠĠĠĠ", "ĠSQL", "Ġ+=", "Ġ\"", "ĠOrder", "ĠBy", "Ġmessage", "ID", "Ġ;", "\"", "ĊĠĠĠĠĠĠĠ", "Ġcursor", ".", "execute", "(", "SQL", ")", "ĊĠĠĠĠĠĠĠ", "Ġresults", "Ġ=", "Ġcursor", ".", "fetchall", "()", "ĊĠĠĠ", "Ġexcept", "ĠException", "Ġas", "Ġe", ":", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"<", "p", ">", "Something", "Ġwent", "Ġwrong", "Ġwith", "Ġthe", "Ġfirst", "ĠSQL", "!</", "p", ">\")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "SQL", ",", "Ġ\"", "Error", ":\",", "Ġe", ")", "ĊĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġresults", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcount", "Ġ=", "Ġ", "5", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġrow", "Ġin", "Ġresults", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġword", "_", "count", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġspecial", "Char", "Ġ=", "Ġrow", "[", "3", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġspecial", "Char", "2", "Ġ=", "Ġ\"\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġspecial", "Char", "Ġ=", "ĠE", "ch", "oo", "Functions", ".", "return", "Special", "Char", "a", "(", "special", "Char", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġx", "Ġin", "Ġspecial", "Char", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġword", "_", "count", "Ġ<=", "Ġ", "2", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġspecial", "Char", "2", "Ġ+=", "Ġx", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġword", "_", "count", "Ġ+=", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġspecial", "Char", "2", "Ġ+=", "Ġx", "Ġ+", "Ġ\"<", "p", ">\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġword", "_", "count", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġcount", "Ġ>=", "Ġ", "5", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġchat", "room", "Ġ+=", "Ġ'<", "li", "Ġclass", "=\"", "chat", "Date", "\">'", "Ġ+", "Ġstr", "(", "row", "[", "4", "])", "Ġ+", "Ġ\"</", "li", ">\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcount", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġstr", "(", "row", "[", "0", "])", "Ġ==", "Ġstr", "(", "userID", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcount", "Ġ+=", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġchat", "room", "Ġ+=", "Ġ(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ'<", "li", "Ġclass", "=\"", "main", "User", "\">'", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ+", "Ġ'<", "a", "Ġhref", "=\"", "user", "Profile", ".", "cgi", "?", "user", "='", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ+", "Ġstr", "(", "row", "[", "0", "])", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ+", "Ġ'\">'", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ+", "Ġrow", "[", "1", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ+", "Ġ'</", "a", "><", "img", "Ġsrc", "=\"", "images", "/", "user", "/'", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ+", "Ġrow", "[", "2", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ+", "Ġ'\"", "Ġalt", "=\"", "club", "1", "\">'", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġchat", "room", "Ġ+=", "Ġ'<", "br", "><", "div", "Ġclass", "=\"", "message", "Line", "\">'", "Ġ+", "Ġspecial", "Char", "2", "Ġ+", "Ġ\"</", "div", "></", "li", ">\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcount", "Ġ+=", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġchat", "room", "Ġ+=", "Ġ'<", "li", "Ġclass", "=\"", "other", "User", "\"><", "img", "Ġsrc", "=\"", "images", "/", "user", "/'", "Ġ+", "Ġrow", "[", "2", "]", "Ġ+", "Ġ'\"", "Ġalt", "=\"", "club", "1", "\">'", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġchat", "room", "Ġ+=", "Ġ(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ'<", "a", "Ġhref", "=\"", "user", "Profile", ".", "cgi", "?", "userid", "='", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ+", "Ġstr", "(", "row", "[", "0", "])", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ+", "Ġ'\">'", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ+", "Ġrow", "[", "1", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ+", "Ġ'</", "a", "><", "br", "><", "div", "Ġclass", "=\"", "message", "Line", "\">'", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ+", "Ġspecial", "Char", "2", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ+", "Ġ\"</", "div", "></", "li", ">\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "Ċ", "Ċ", "if", "ĠuserID", "Ġ==", "Ġ\"\"", "Ġor", "Ġreceiver", "ID", "Ġ==", "Ġ\"\":", "ĊĠĠĠ", "Ġcontent", "Ġ=", "Ġ\"\"\"", "<", "p", ">", "You", "Ġdon", "'t", "Ġhave", "Ġright", "Ġaccess", "Ġto", "Ġthis", "Ġpage", "</", "p", ">", "Ċ", "<", "a", "Ġhref", "='", "index", ".", "cgi", "'></", "a", ">", "\"\"\"", "ĊĠĠĠ", "Ġprint", "(", "content", ")", "Ċ", "print", "(", "chat", "room", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 45, 45, 45, 45, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 72, 72, 73, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 86, 86, 87, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 91, 91, 91, 92, 92, 92, 92, 92, 92 ]
[ 1, 3, 5, 8, 9, 12, 13, 16, 23, 24, 1, 1, 7, 9, 11, 13, 22, 23, 25, 27, 28, 34, 36, 37, 45, 46, 51, 52, 61, 62, 65, 1, 1, 6, 8, 15, 16, 20, 21, 26, 27, 31, 32, 33, 35, 1, 1, 5, 7, 9, 11, 12, 17, 24, 26, 1, 1, 2, 11, 22, 1, 5, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 21, 22, 23, 24, 1, 3, 4, 8, 10, 12, 14, 15, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 31, 32, 33, 34, 1, 3, 4, 7, 9, 15, 17, 18, 25, 26, 30, 32, 34, 35, 37, 39, 40, 43, 47, 48, 51, 53, 58, 59, 60, 61, 62, 63, 64, 69, 70, 74, 75, 82, 83, 85, 86, 90, 91, 94, 95, 99, 100, 1, 7, 9, 12, 13, 16, 17, 23, 25, 1, 9, 11, 13, 18, 19, 22, 27, 29, 33, 35, 39, 1, 9, 11, 14, 1, 7, 9, 12, 1, 3, 5, 8, 10, 14, 15, 18, 22, 23, 25, 26, 33, 35, 4, 13, 15, 17, 19, 21, 30, 31, 38, 42, 44, 4, 13, 15, 24, 25, 26, 27, 4, 11, 13, 15, 17, 19, 28, 29, 36, 38, 39, 45, 46, 55, 56, 1, 1, 6, 8, 14, 1, 2, 9, 13, 20, 23, 27, 32, 1, 3, 12, 15, 19, 4, 7, 9, 11, 13, 22, 23, 28, 32, 36, 37, 43, 44, 53, 54, 57, 59, 72, 74, 8, 14, 16, 21, 1, 2, 7, 16, 19, 26, 1, 7, 9, 12, 1, 7, 11, 13, 16, 1, 5, 9, 11, 14, 1, 5, 9, 11, 14, 1, 3, 10, 13, 16, 20, 29, 31, 34, 38, 4, 8, 9, 8, 12, 14, 16, 22, 24, 25, 31, 32, 34, 35, 43, 44, 46, 47, 51, 52, 54, 55, 61, 62, 64, 65, 69, 70, 72, 73, 74, 75, 82, 84, 89, 94, 97, 99, 100, 108, 109, 116, 119, 121, 127, 129, 130, 136, 138, 140, 8, 12, 15, 17, 18, 19, 25, 29, 31, 32, 40, 42, 44, 46, 50, 51, 57, 58, 60, 62, 66, 68, 69, 75, 77, 79, 81, 85, 86, 94, 96, 97, 8, 12, 15, 17, 23, 30, 32, 33, 39, 40, 42, 43, 51, 52, 54, 55, 59, 60, 62, 63, 69, 70, 72, 73, 77, 78, 80, 82, 83, 84, 91, 93, 98, 103, 106, 108, 109, 117, 118, 125, 128, 130, 136, 138, 139, 145, 147, 149, 8, 12, 15, 17, 18, 19, 25, 29, 31, 32, 40, 42, 44, 46, 50, 51, 59, 61, 62, 64, 66, 70, 72, 73, 79, 81, 83, 85, 89, 90, 96, 97, 8, 12, 15, 17, 23, 26, 34, 36, 38, 39, 8, 15, 16, 23, 24, 27, 28, 8, 16, 18, 25, 26, 34, 36, 4, 11, 21, 24, 26, 27, 8, 14, 17, 18, 19, 28, 33, 39, 44, 48, 54, 58, 61, 62, 65, 8, 14, 15, 18, 19, 21, 26, 29, 31, 32, 4, 9, 10, 8, 11, 19, 20, 12, 18, 20, 21, 22, 12, 16, 20, 23, 31, 32, 16, 21, 22, 27, 29, 30, 31, 16, 24, 28, 30, 34, 35, 36, 37, 16, 24, 28, 29, 31, 34, 16, 24, 28, 30, 32, 34, 36, 45, 46, 52, 59, 63, 64, 65, 72, 76, 77, 16, 20, 22, 25, 33, 37, 38, 20, 23, 28, 29, 34, 37, 38, 39, 40, 41, 24, 32, 36, 37, 40, 42, 24, 29, 30, 35, 38, 39, 40, 20, 25, 26, 24, 32, 36, 37, 40, 42, 44, 47, 48, 50, 24, 29, 30, 35, 37, 38, 39, 16, 19, 25, 28, 29, 30, 31, 20, 25, 29, 32, 35, 37, 43, 45, 49, 53, 56, 58, 62, 63, 66, 67, 68, 70, 72, 76, 78, 80, 20, 26, 28, 29, 30, 16, 19, 23, 24, 27, 28, 29, 31, 34, 38, 39, 45, 47, 20, 26, 29, 30, 31, 20, 25, 29, 32, 34, 24, 27, 29, 35, 37, 41, 45, 48, 24, 26, 29, 30, 35, 37, 41, 48, 49, 52, 53, 57, 59, 24, 26, 30, 31, 34, 35, 36, 38, 24, 26, 31, 24, 26, 30, 31, 32, 33, 24, 26, 30, 31, 33, 36, 40, 42, 48, 49, 53, 55, 24, 26, 30, 31, 32, 33, 24, 26, 29, 33, 35, 39, 40, 43, 20, 22, 20, 25, 29, 32, 35, 37, 39, 42, 48, 50, 57, 61, 64, 66, 74, 78, 79, 81, 85, 88, 91, 93, 95, 16, 21, 22, 20, 26, 29, 30, 31, 20, 25, 29, 32, 35, 37, 43, 45, 50, 54, 57, 60, 64, 66, 72, 73, 77, 79, 81, 85, 86, 87, 88, 90, 93, 97, 99, 103, 104, 107, 20, 25, 29, 32, 34, 24, 27, 28, 33, 35, 39, 46, 47, 50, 51, 57, 59, 24, 26, 30, 31, 34, 35, 36, 38, 24, 26, 31, 24, 26, 30, 31, 32, 33, 24, 26, 30, 31, 33, 35, 37, 40, 46, 48, 55, 59, 62, 24, 26, 34, 38, 39, 24, 26, 30, 33, 36, 38, 40, 20, 22, 1, 1, 3, 10, 13, 16, 19, 28, 30, 33, 37, 4, 12, 14, 18, 19, 20, 21, 24, 28, 30, 35, 41, 48, 51, 56, 61, 63, 64, 65, 1, 2, 3, 8, 10, 15, 16, 19, 23, 24, 25, 28, 4, 10, 11, 18, 19, 1, 6, 7, 11, 15, 16 ]
653e65281984ebb06467aeadb6f0e2b11f1bcb4d
#!/usr/bin/python3 def file_to_code(fname): mem = [] for line in open(fname, "r"): mem.extend([int(i) for i in line.split(",")]) return mem class Opcode(object): def __init__(self, mem, ptr, code, inc): """ >>> o = Opcode([1001, 2, 4, 1], 0, 1, 4) >>> o._Opcode__par_modes [0, 1] """ if mem[ptr] % 100 != code: raise Exception("Creating Opcode%d for opcode %d" % (code, mem[ptr])) self.memory = mem self.ptr = ptr self.__par_modes = list(reversed([int(i) for i in str(int(mem[ptr] / 100))])) self.__ptr_inc = inc def ptr_inc(self): return self.__ptr_inc def get_val(self, arg_idx): """ >>> o = Opcode([1001, 2, 4, 1], 0, 1, 4) >>> o.get_val(1) 4 >>> o.get_val(2) 4 >>> o.get_val(3) 2 """ idx = arg_idx - 1 if idx >= len(self.__par_modes) or self.__par_modes[idx] == 0: return self.memory[self.memory[self.ptr + arg_idx]] elif self.__par_modes[idx] == 1: return self.memory[self.ptr + arg_idx] def set_ptr(self): return False, 0 def reads(self): raise Exception("Call to base class reads()") def writes(self): raise Exception("Call to base class writes()") def op(self): raise Exception("Call to base class op()") def params(self): raise Exception("Call to base class params()") def run(self): raise Exception("Call to base class run()") class Opcode1(Opcode): """ >>> o = Opcode1([101, 2, 1, 3], 0) >>> o.run() True >>> o.memory [101, 2, 1, 4] """ def __init__(self, mem, ptr): super().__init__(mem, ptr, 1, 4) self.__first = self.get_val(1) self.__second = self.get_val(2) self.__res = mem[ptr + 3] def run(self): self.memory[self.__res] = self.__first + self.__second return True def params(self): return {"noun": self.__first, "verb": self.__second, "result": self.__res} def reads(self): return [self.__first, self.__second] def writes(self): return self.__res def op(self): return "+" def __str__(self): return "loc[%d] = %d + %d" % (self.__res, self.__first, self.__second) class Opcode2(Opcode): """ >>> o = Opcode2([2, 2, 3, 4, 99], 0) >>> o.run() True >>> o.memory [2, 2, 3, 4, 12] """ def __init__(self, mem, ptr): super().__init__(mem, ptr, 2, 4) self.__first = self.get_val(1) self.__second = self.get_val(2) self.__res = mem[ptr + 3] def run(self): self.memory[self.__res] = self.__first * self.__second return True def params(self): return {"noun": self.__first, "verb": self.__second, "result": self.__res} def reads(self): return [self.__first, self.__second] def writes(self): return self.__res def op(self): return "*" def __str__(self): return "loc[%d] = %d * %d" % (self.__res, self.__first, self.__second) class Opcode99(Opcode): """ >>> o = Opcode99([99,12,3,4,5], 0) >>> o.run() False """ def __init__(self, mem, ptr): super().__init__(mem, ptr, 99, 1) def run(self): return False def params(self): return {} def reads(self): return [] def writes(self): return None def op(self): return "HALT" def __str__(self): return "HALT" def default_ops(): return {1: Opcode1, 2: Opcode2, 99: Opcode99} class Interpreter(object): def __init__(self, input_code, ops=default_ops()): self.__memory = input_code self.__ops = ops self.__ptr = 0 self.__running = True self.length = len(self.__memory) def stepi(self): o = None if self.__running: o = self.next_op() self.__running = o.run() chk, val = o.set_ptr() if chk: self.__ptr = val else: self.__ptr += o.ptr_inc() return o def run(self): while self.__running: self.stepi() def inspect(self, loc): return self.__memory[loc] def next_op(self): return self.op_at(self.__ptr) def op_at(self, ptr): return self.__ops[self.__memory[ptr] % 100](self.__memory, ptr) def __str__(self): strs = [] for i, v in enumerate(self.__memory): if i == self.__ptr: strs.append("{:*>4}".format(v)) else: strs.append("{:>4}".format(v)) return ",".join(strs) + "\n" + "Next:\n\t" + str(self.next_op()) def poke(self, loc, val): self.__memory[loc] = val def rebind(self, code, call): self.__ops[code] = call def as_opcodes(self): ops = [self.op_at(0)] ptr = ops[-1].ptr_inc() while ops[-1].op() != "HALT": ops.append(self.op_at(ptr)) ptr += ops[-1].ptr_inc() return ops class ValueNode(object): def __init__(self, val, tag=""): self.__val = val self.__tag = tag def __str__(self): return self.__tag + str(self.__val) class OpNode(object): def __init__(self, op, depends): self.__op = op self.__depends = depends def __str__(self): return "(" + self.__op.op().join([str(i) for i in self.__depends]) + ")" class OpcodeTreeBuilder(object): def __init__(self, interp): self.__interpreter = interp self.__codes = interp.as_opcodes() def construct_mappings(self): for i in self.__codes: params = i.params() if "result" in params.keys(): if params["result"] not in self.__writes_to.keys(): self.__writes_to[params["result"]] = [] self.__writes_to[params["result"]].append(i) if "noun" in params.keys(): if params["noun"] not in self.__reads_from.keys(): self.__reads_from[params["noun"]] = [] self.__reads_from[params["noun"]].append(i) if "verb" in params.keys(): if params["verb"] not in self.__reads_from.keys(): self.__reads_from[params["verb"]] = [] self.__reads_from[params["verb"]].append(i) def construct_graph(self): op = self.__interpreter.op_at(0) reads = [ValueNode(self.__interpreter.inspect(i), tag="raw%d_" % (i)) for i in op.reads()] writes = op.writes() base = OpNode(op, reads) ptr = op.ptr_inc() last_write = {} if writes: last_write[writes] = base while op.op() != "HALT": op = self.__interpreter.op_at(ptr) if op.op() == "HALT": break depends = [] for i in op.reads(): if i in last_write.keys(): depends.append(last_write[i]) else: depends.append(ValueNode(self.__interpreter.inspect(i))) base = OpNode(op, depends) if op.writes(): last_write[op.writes()] = base ptr += op.ptr_inc() return base if __name__ == "__main__": import doctest doctest.testmod() ################################################# # i = Interpreter(file_to_code("day2_input.txt")) # i.run() # i.inspect(0)
[ 8758, 3392, 52, 1793, 52, 2980, 56, 499, 222, 610, 822, 100, 471, 100, 707, 45, 10572, 731, 303, 2366, 299, 1627, 303, 456, 1646, 347, 2177, 45, 10572, 49, 332, 119, 10320, 310, 2366, 51, 8258, 2034, 429, 45, 110, 46, 456, 613, 347, 1646, 51, 3045, 45793, 1156, 303, 461, 2366, 499, 222, 842, 30026, 45, 1491, 731, 303, 684, 1176, 1683, 3232, 803, 49, 2366, 49, 8417, 49, 1361, 49, 6985, 731, 310, 1547, 310, 8257, 356, 299, 30026, 2034, 54, 53, 53, 54, 49, 244, 55, 49, 244, 57, 49, 244, 54, 636, 244, 53, 49, 244, 54, 49, 244, 57, 46, 310, 8257, 356, 1132, 22783, 523, 587, 100, 24360, 310, 447, 53, 49, 244, 54, 98, 310, 1547, 310, 434, 2366, 96, 1768, 98, 925, 244, 54, 53, 53, 882, 1361, 63, 343, 3655, 3284, 459, 16607, 30026, 42, 105, 456, 19479, 925, 105, 39, 925, 327, 707, 49, 2366, 96, 1768, 5310, 310, 649, 51, 5581, 299, 2366, 310, 649, 51, 1768, 299, 8417, 310, 649, 3688, 587, 100, 24360, 299, 1168, 45, 35084, 2034, 429, 45, 110, 46, 456, 613, 347, 615, 45, 429, 45, 1853, 96, 1768, 98, 536, 244, 54, 53, 53, 509, 5310, 310, 649, 3688, 1768, 100, 3582, 299, 6985, 465, 684, 8417, 100, 3582, 45, 803, 731, 310, 461, 649, 3688, 1768, 100, 3582, 465, 684, 640, 100, 718, 45, 803, 49, 1657, 100, 2910, 731, 310, 1547, 310, 8257, 356, 299, 30026, 2034, 54, 53, 53, 54, 49, 244, 55, 49, 244, 57, 49, 244, 54, 636, 244, 53, 49, 244, 54, 49, 244, 57, 46, 310, 8257, 356, 51, 390, 100, 718, 45, 54, 46, 295, 57, 310, 8257, 356, 51, 390, 100, 718, 45, 55, 46, 295, 57, 310, 8257, 356, 51, 390, 100, 718, 45, 56, 46, 295, 55, 310, 1547, 310, 5444, 299, 1657, 100, 2910, 449, 244, 54, 310, 434, 5444, 2394, 2095, 45, 803, 3688, 587, 100, 24360, 46, 575, 649, 3688, 587, 100, 24360, 96, 2910, 98, 630, 244, 53, 63, 343, 461, 649, 51, 5581, 96, 803, 51, 5581, 96, 803, 51, 1768, 494, 1657, 100, 2910, 3234, 310, 4378, 649, 3688, 587, 100, 24360, 96, 2910, 98, 630, 244, 54, 63, 343, 461, 649, 51, 5581, 96, 803, 51, 1768, 494, 1657, 100, 2910, 98, 465, 684, 758, 100, 1768, 45, 803, 731, 310, 461, 3208, 49, 244, 53, 465, 684, 14845, 45, 803, 731, 310, 3655, 3284, 459, 1869, 391, 1712, 462, 14845, 365, 678, 465, 684, 19411, 45, 803, 731, 310, 3655, 3284, 459, 1869, 391, 1712, 462, 19411, 365, 678, 465, 684, 3107, 45, 803, 731, 310, 3655, 3284, 459, 1869, 391, 1712, 462, 3107, 365, 678, 465, 684, 2822, 45, 803, 731, 310, 3655, 3284, 459, 1869, 391, 1712, 462, 2822, 365, 678, 465, 684, 1441, 45, 803, 731, 310, 3655, 3284, 459, 1869, 391, 1712, 462, 1441, 365, 678, 499, 222, 842, 30026, 54, 45, 22783, 731, 303, 1547, 303, 8257, 356, 299, 30026, 54, 2034, 54, 53, 54, 49, 244, 55, 49, 244, 54, 49, 244, 56, 636, 244, 53, 46, 303, 8257, 356, 51, 1967, 365, 303, 2969, 303, 8257, 356, 51, 5581, 303, 447, 54, 53, 54, 49, 244, 55, 49, 244, 54, 49, 244, 57, 98, 303, 1547, 465, 684, 1176, 1683, 3232, 803, 49, 2366, 49, 8417, 731, 310, 2615, 17124, 1683, 3232, 1853, 49, 8417, 49, 244, 54, 49, 244, 57, 46, 310, 649, 3688, 2251, 299, 649, 51, 390, 100, 718, 45, 54, 46, 310, 649, 3688, 3109, 299, 649, 51, 390, 100, 718, 45, 55, 46, 310, 649, 3688, 595, 299, 2366, 96, 1768, 494, 244, 56, 98, 465, 684, 1441, 45, 803, 731, 310, 649, 51, 5581, 96, 803, 3688, 595, 98, 299, 649, 3688, 2251, 494, 649, 3688, 3109, 310, 461, 2969, 465, 684, 2822, 45, 803, 731, 310, 461, 3479, 1365, 330, 582, 649, 3688, 2251, 49, 332, 13452, 582, 649, 3688, 3109, 49, 332, 1285, 582, 649, 3688, 595, 130, 465, 684, 14845, 45, 803, 731, 310, 461, 447, 803, 3688, 2251, 49, 649, 3688, 3109, 98, 465, 684, 19411, 45, 803, 731, 310, 461, 649, 3688, 595, 465, 684, 3107, 45, 803, 731, 310, 461, 332, 5688, 465, 684, 1176, 484, 3232, 803, 731, 310, 461, 332, 901, 22232, 105, 98, 299, 925, 105, 494, 925, 105, 39, 925, 327, 803, 3688, 595, 49, 649, 3688, 2251, 49, 649, 3688, 3109, 46, 499, 222, 842, 30026, 55, 45, 22783, 731, 303, 1547, 303, 8257, 356, 299, 30026, 55, 2034, 55, 49, 244, 55, 49, 244, 56, 49, 244, 57, 49, 244, 62, 62, 636, 244, 53, 46, 303, 8257, 356, 51, 1967, 365, 303, 2969, 303, 8257, 356, 51, 5581, 303, 447, 55, 49, 244, 55, 49, 244, 56, 49, 244, 57, 49, 244, 54, 55, 98, 303, 1547, 465, 684, 1176, 1683, 3232, 803, 49, 2366, 49, 8417, 731, 310, 2615, 17124, 1683, 3232, 1853, 49, 8417, 49, 244, 55, 49, 244, 57, 46, 310, 649, 3688, 2251, 299, 649, 51, 390, 100, 718, 45, 54, 46, 310, 649, 3688, 3109, 299, 649, 51, 390, 100, 718, 45, 55, 46, 310, 649, 3688, 595, 299, 2366, 96, 1768, 494, 244, 56, 98, 465, 684, 1441, 45, 803, 731, 310, 649, 51, 5581, 96, 803, 3688, 595, 98, 299, 649, 3688, 2251, 338, 649, 3688, 3109, 310, 461, 2969, 465, 684, 2822, 45, 803, 731, 310, 461, 3479, 1365, 330, 582, 649, 3688, 2251, 49, 332, 13452, 582, 649, 3688, 3109, 49, 332, 1285, 582, 649, 3688, 595, 130, 465, 684, 14845, 45, 803, 731, 310, 461, 447, 803, 3688, 2251, 49, 649, 3688, 3109, 98, 465, 684, 19411, 45, 803, 731, 310, 461, 649, 3688, 595, 465, 684, 3107, 45, 803, 731, 310, 461, 30138, 465, 684, 1176, 484, 3232, 803, 731, 310, 461, 332, 901, 22232, 105, 98, 299, 925, 105, 338, 925, 105, 39, 925, 327, 803, 3688, 595, 49, 649, 3688, 2251, 49, 649, 3688, 3109, 46, 499, 222, 842, 30026, 62, 62, 45, 22783, 731, 303, 1547, 303, 8257, 356, 299, 30026, 62, 62, 2034, 62, 62, 49, 54, 55, 49, 56, 49, 57, 49, 58, 636, 244, 53, 46, 303, 8257, 356, 51, 1967, 365, 303, 3208, 303, 1547, 465, 684, 1176, 1683, 3232, 803, 49, 2366, 49, 8417, 731, 310, 2615, 17124, 1683, 3232, 1853, 49, 8417, 49, 244, 62, 62, 49, 244, 54, 46, 465, 684, 1441, 45, 803, 731, 310, 461, 3208, 465, 684, 2822, 45, 803, 731, 310, 461, 2172, 465, 684, 14845, 45, 803, 731, 310, 461, 1627, 465, 684, 19411, 45, 803, 731, 310, 461, 1686, 465, 684, 3107, 45, 803, 731, 310, 461, 332, 14254, 89, 39, 465, 684, 1176, 484, 3232, 803, 731, 310, 461, 332, 14254, 89, 39, 499, 222, 610, 1263, 100, 4178, 2284, 303, 461, 320, 54, 63, 30026, 54, 49, 244, 55, 63, 30026, 55, 49, 244, 62, 62, 63, 30026, 62, 62, 130, 499, 222, 842, 37633, 45, 1491, 731, 303, 684, 1176, 1683, 3232, 803, 49, 1533, 100, 707, 49, 13727, 66, 1555, 100, 4178, 22942, 310, 649, 3688, 5581, 299, 1533, 100, 707, 603, 649, 3688, 4178, 299, 13727, 310, 649, 3688, 1768, 299, 244, 53, 310, 649, 3688, 10347, 299, 2969, 310, 649, 51, 1340, 299, 2095, 45, 803, 3688, 5581, 46, 465, 684, 3138, 110, 45, 803, 731, 310, 356, 299, 1686, 310, 434, 649, 3688, 10347, 63, 343, 356, 299, 649, 51, 1995, 100, 539, 365, 343, 649, 3688, 10347, 299, 356, 51, 1967, 365, 343, 26520, 49, 928, 299, 356, 51, 489, 100, 1768, 365, 343, 434, 26520, 63, 419, 649, 3688, 1768, 299, 928, 343, 832, 63, 419, 649, 3688, 1768, 1475, 356, 51, 1768, 100, 3582, 365, 310, 461, 356, 465, 684, 1441, 45, 803, 731, 310, 2236, 649, 3688, 10347, 63, 343, 649, 51, 3023, 110, 365, 465, 684, 17878, 45, 803, 49, 2600, 731, 310, 461, 649, 3688, 5581, 96, 901, 98, 465, 684, 2371, 100, 539, 45, 803, 731, 310, 461, 649, 51, 539, 100, 288, 45, 803, 3688, 1768, 46, 465, 684, 3107, 100, 288, 45, 803, 49, 8417, 731, 310, 461, 649, 3688, 4178, 96, 803, 3688, 5581, 96, 1768, 98, 925, 244, 54, 53, 53, 748, 803, 3688, 5581, 49, 8417, 46, 465, 684, 1176, 484, 3232, 803, 731, 310, 615, 120, 299, 1627, 310, 456, 613, 49, 373, 347, 10869, 45, 803, 3688, 5581, 731, 343, 434, 613, 630, 649, 3688, 1768, 63, 419, 615, 120, 51, 1713, 459, 14396, 11049, 57, 16320, 1664, 45, 123, 509, 343, 832, 63, 419, 615, 120, 51, 1713, 459, 14396, 67, 57, 16320, 1664, 45, 123, 509, 310, 461, 3021, 2316, 2548, 45, 43157, 46, 494, 2724, 115, 39, 494, 332, 3364, 3509, 115, 97, 121, 39, 494, 615, 45, 803, 51, 1995, 100, 539, 1177, 465, 684, 38847, 45, 803, 49, 2600, 49, 928, 731, 310, 649, 3688, 5581, 96, 901, 98, 299, 928, 465, 684, 334, 2555, 45, 803, 49, 1361, 49, 1495, 731, 310, 649, 3688, 4178, 96, 707, 98, 299, 1495, 465, 684, 641, 100, 539, 7800, 45, 803, 731, 310, 13727, 299, 447, 803, 51, 539, 100, 288, 45, 53, 2201, 310, 8417, 299, 13727, 6510, 54, 1015, 1768, 100, 3582, 365, 310, 2236, 13727, 6510, 54, 1015, 539, 365, 882, 332, 14254, 89, 582, 343, 13727, 51, 1713, 45, 803, 51, 539, 100, 288, 45, 1768, 509, 343, 8417, 1475, 13727, 6510, 54, 1015, 1768, 100, 3582, 365, 310, 461, 13727, 499, 222, 842, 3867, 1230, 45, 1491, 731, 303, 684, 1176, 1683, 3232, 803, 49, 928, 49, 2621, 366, 10320, 310, 649, 3688, 718, 299, 928, 310, 649, 3688, 2159, 299, 2621, 465, 684, 1176, 484, 3232, 803, 731, 310, 461, 649, 3688, 2159, 494, 615, 45, 803, 3688, 718, 46, 499, 222, 842, 8059, 1230, 45, 1491, 731, 303, 684, 1176, 1683, 3232, 803, 49, 3107, 49, 12448, 731, 310, 649, 3688, 539, 299, 3107, 310, 649, 3688, 27240, 299, 12448, 465, 684, 1176, 484, 3232, 803, 731, 310, 461, 31019, 494, 649, 3688, 539, 51, 539, 941, 2548, 2034, 484, 45, 110, 46, 456, 613, 347, 649, 3688, 27240, 1156, 494, 35062, 499, 222, 842, 30026, 3371, 1812, 45, 1491, 731, 303, 684, 1176, 1683, 3232, 803, 49, 32851, 731, 310, 649, 3688, 27061, 299, 32851, 310, 649, 3688, 7800, 299, 32851, 51, 321, 100, 539, 7800, 365, 465, 684, 8551, 100, 28347, 45, 803, 731, 310, 456, 613, 347, 649, 3688, 7800, 63, 343, 2822, 299, 613, 51, 2155, 365, 343, 434, 332, 1285, 39, 347, 2822, 51, 3519, 2284, 419, 434, 2822, 1388, 1285, 1465, 666, 347, 649, 3688, 26862, 100, 471, 51, 3519, 2284, 547, 649, 3688, 26862, 100, 471, 96, 2155, 1388, 1285, 32973, 299, 1627, 419, 649, 3688, 26862, 100, 471, 96, 2155, 1388, 1285, 1465, 1015, 1713, 45, 110, 46, 343, 434, 332, 1365, 330, 39, 347, 2822, 51, 3519, 2284, 419, 434, 2822, 1388, 1365, 330, 1465, 666, 347, 649, 3688, 19651, 100, 1097, 51, 3519, 2284, 547, 649, 3688, 19651, 100, 1097, 96, 2155, 1388, 1365, 330, 32973, 299, 1627, 419, 649, 3688, 19651, 100, 1097, 96, 2155, 1388, 1365, 330, 1465, 1015, 1713, 45, 110, 46, 343, 434, 332, 13452, 39, 347, 2822, 51, 3519, 2284, 419, 434, 2822, 1388, 13452, 1465, 666, 347, 649, 3688, 19651, 100, 1097, 51, 3519, 2284, 547, 649, 3688, 19651, 100, 1097, 96, 2155, 1388, 13452, 32973, 299, 1627, 419, 649, 3688, 19651, 100, 1097, 96, 2155, 1388, 13452, 1465, 1015, 1713, 45, 110, 46, 465, 684, 8551, 100, 2275, 45, 803, 731, 310, 3107, 299, 649, 3688, 27061, 51, 539, 100, 288, 45, 53, 46, 310, 14845, 299, 447, 899, 1230, 45, 803, 3688, 27061, 51, 18710, 45, 110, 490, 2621, 366, 1312, 42, 105, 15727, 925, 327, 110, 509, 456, 613, 347, 3107, 51, 19651, 7688, 310, 19411, 299, 3107, 51, 26862, 365, 310, 1712, 299, 8059, 1230, 45, 539, 49, 14845, 46, 310, 8417, 299, 3107, 51, 1768, 100, 3582, 365, 310, 2419, 100, 1838, 299, 2172, 310, 434, 19411, 63, 343, 2419, 100, 1838, 96, 26862, 98, 299, 1712, 310, 2236, 3107, 51, 539, 365, 882, 332, 14254, 89, 582, 343, 3107, 299, 649, 3688, 27061, 51, 539, 100, 288, 45, 1768, 46, 343, 434, 3107, 51, 539, 365, 630, 332, 14254, 89, 582, 419, 1644, 343, 12448, 299, 1627, 343, 456, 613, 347, 3107, 51, 19651, 2284, 419, 434, 613, 347, 2419, 100, 1838, 51, 3519, 2284, 547, 12448, 51, 1713, 45, 2153, 100, 1838, 96, 110, 1156, 419, 832, 63, 547, 12448, 51, 1713, 45, 899, 1230, 45, 803, 3688, 27061, 51, 18710, 45, 110, 2636, 343, 1712, 299, 8059, 1230, 45, 539, 49, 12448, 46, 343, 434, 3107, 51, 26862, 2284, 419, 2419, 100, 1838, 96, 539, 51, 26862, 7688, 299, 1712, 343, 8417, 1475, 3107, 51, 1768, 100, 3582, 365, 310, 461, 1712, 499, 222, 344, 1176, 444, 523, 630, 9609, 1850, 18021, 303, 1220, 764, 28977, 465, 764, 28977, 51, 881, 1820, 365, 222, 222, 44156, 40, 222, 222, 40, 613, 299, 37633, 45, 781, 100, 471, 100, 707, 459, 3386, 55, 100, 1151, 51, 2787, 2152, 222, 40, 613, 51, 1967, 365, 222, 40, 613, 51, 18710, 45, 53, 46, 222 ]
[ "#!/", "usr", "/", "bin", "/", "python", "3", "ĊĊ", "Ċ", "def", "Ġfile", "_", "to", "_", "code", "(", "fname", "):", "ĊĠĠĠ", "Ġmem", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġfor", "Ġline", "Ġin", "Ġopen", "(", "fname", ",", "Ġ\"", "r", "\"):", "ĊĠĠĠĠĠĠĠ", "Ġmem", ".", "extend", "([", "int", "(", "i", ")", "Ġfor", "Ġi", "Ġin", "Ġline", ".", "split", "(\",\")", "])", "ĊĠĠĠ", "Ġreturn", "Ġmem", "ĊĊ", "Ċ", "class", "ĠOpcode", "(", "object", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġmem", ",", "Ġptr", ",", "Ġcode", ",", "Ġinc", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġ>>>", "Ġo", "Ġ=", "ĠOpcode", "([", "1", "0", "0", "1", ",", "Ġ", "2", ",", "Ġ", "4", ",", "Ġ", "1", "],", "Ġ", "0", ",", "Ġ", "1", ",", "Ġ", "4", ")", "ĊĠĠĠĠĠĠĠ", "Ġ>>>", "Ġo", "._", "Opcode", "__", "par", "_", "modes", "ĊĠĠĠĠĠĠĠ", "Ġ[", "0", ",", "Ġ", "1", "]", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġmem", "[", "ptr", "]", "Ġ%", "Ġ", "1", "0", "0", "Ġ!=", "Ġcode", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġraise", "ĠException", "(\"", "Creating", "ĠOpcode", "%", "d", "Ġfor", "Ġopcode", "Ġ%", "d", "\"", "Ġ%", "Ġ(", "code", ",", "Ġmem", "[", "ptr", "]))", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "memory", "Ġ=", "Ġmem", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "ptr", "Ġ=", "Ġptr", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "par", "_", "modes", "Ġ=", "Ġlist", "(", "reversed", "([", "int", "(", "i", ")", "Ġfor", "Ġi", "Ġin", "Ġstr", "(", "int", "(", "mem", "[", "ptr", "]", "Ġ/", "Ġ", "1", "0", "0", "))", "]))", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "ptr", "_", "inc", "Ġ=", "Ġinc", "ĊĊĠĠĠ", "Ġdef", "Ġptr", "_", "inc", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".__", "ptr", "_", "inc", "ĊĊĠĠĠ", "Ġdef", "Ġget", "_", "val", "(", "self", ",", "Ġarg", "_", "idx", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġ>>>", "Ġo", "Ġ=", "ĠOpcode", "([", "1", "0", "0", "1", ",", "Ġ", "2", ",", "Ġ", "4", ",", "Ġ", "1", "],", "Ġ", "0", ",", "Ġ", "1", ",", "Ġ", "4", ")", "ĊĠĠĠĠĠĠĠ", "Ġ>>>", "Ġo", ".", "get", "_", "val", "(", "1", ")", "ĊĠĠĠĠĠĠĠĠ", "4", "ĊĠĠĠĠĠĠĠ", "Ġ>>>", "Ġo", ".", "get", "_", "val", "(", "2", ")", "ĊĠĠĠĠĠĠĠĠ", "4", "ĊĠĠĠĠĠĠĠ", "Ġ>>>", "Ġo", ".", "get", "_", "val", "(", "3", ")", "ĊĠĠĠĠĠĠĠĠ", "2", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġidx", "Ġ=", "Ġarg", "_", "idx", "Ġ-", "Ġ", "1", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġidx", "Ġ>=", "Ġlen", "(", "self", ".__", "par", "_", "modes", ")", "Ġor", "Ġself", ".__", "par", "_", "modes", "[", "idx", "]", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "memory", "[", "self", ".", "memory", "[", "self", ".", "ptr", "Ġ+", "Ġarg", "_", "idx", "]]", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġself", ".__", "par", "_", "modes", "[", "idx", "]", "Ġ==", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "memory", "[", "self", ".", "ptr", "Ġ+", "Ġarg", "_", "idx", "]", "ĊĊĠĠĠ", "Ġdef", "Ġset", "_", "ptr", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "ĠFalse", ",", "Ġ", "0", "ĊĊĠĠĠ", "Ġdef", "Ġreads", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġraise", "ĠException", "(\"", "Call", "Ġto", "Ġbase", "Ġclass", "Ġreads", "()", "\")", "ĊĊĠĠĠ", "Ġdef", "Ġwrites", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġraise", "ĠException", "(\"", "Call", "Ġto", "Ġbase", "Ġclass", "Ġwrites", "()", "\")", "ĊĊĠĠĠ", "Ġdef", "Ġop", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġraise", "ĠException", "(\"", "Call", "Ġto", "Ġbase", "Ġclass", "Ġop", "()", "\")", "ĊĊĠĠĠ", "Ġdef", "Ġparams", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġraise", "ĠException", "(\"", "Call", "Ġto", "Ġbase", "Ġclass", "Ġparams", "()", "\")", "ĊĊĠĠĠ", "Ġdef", "Ġrun", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġraise", "ĠException", "(\"", "Call", "Ġto", "Ġbase", "Ġclass", "Ġrun", "()", "\")", "ĊĊ", "Ċ", "class", "ĠOpcode", "1", "(", "Opcode", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġ>>>", "Ġo", "Ġ=", "ĠOpcode", "1", "([", "1", "0", "1", ",", "Ġ", "2", ",", "Ġ", "1", ",", "Ġ", "3", "],", "Ġ", "0", ")", "ĊĠĠĠ", "Ġ>>>", "Ġo", ".", "run", "()", "ĊĠĠĠ", "ĠTrue", "ĊĠĠĠ", "Ġ>>>", "Ġo", ".", "memory", "ĊĠĠĠ", "Ġ[", "1", "0", "1", ",", "Ġ", "2", ",", "Ġ", "1", ",", "Ġ", "4", "]", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġmem", ",", "Ġptr", "):", "ĊĠĠĠĠĠĠĠ", "Ġsuper", "().__", "init", "__(", "mem", ",", "Ġptr", ",", "Ġ", "1", ",", "Ġ", "4", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "first", "Ġ=", "Ġself", ".", "get", "_", "val", "(", "1", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "second", "Ġ=", "Ġself", ".", "get", "_", "val", "(", "2", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "res", "Ġ=", "Ġmem", "[", "ptr", "Ġ+", "Ġ", "3", "]", "ĊĊĠĠĠ", "Ġdef", "Ġrun", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "memory", "[", "self", ".__", "res", "]", "Ġ=", "Ġself", ".__", "first", "Ġ+", "Ġself", ".__", "second", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "ĠTrue", "ĊĊĠĠĠ", "Ġdef", "Ġparams", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ{\"", "no", "un", "\":", "Ġself", ".__", "first", ",", "Ġ\"", "verb", "\":", "Ġself", ".__", "second", ",", "Ġ\"", "result", "\":", "Ġself", ".__", "res", "}", "ĊĊĠĠĠ", "Ġdef", "Ġreads", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ[", "self", ".__", "first", ",", "Ġself", ".__", "second", "]", "ĊĊĠĠĠ", "Ġdef", "Ġwrites", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".__", "res", "ĊĊĠĠĠ", "Ġdef", "Ġop", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "+\"", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "str", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "loc", "[%", "d", "]", "Ġ=", "Ġ%", "d", "Ġ+", "Ġ%", "d", "\"", "Ġ%", "Ġ(", "self", ".__", "res", ",", "Ġself", ".__", "first", ",", "Ġself", ".__", "second", ")", "ĊĊ", "Ċ", "class", "ĠOpcode", "2", "(", "Opcode", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġ>>>", "Ġo", "Ġ=", "ĠOpcode", "2", "([", "2", ",", "Ġ", "2", ",", "Ġ", "3", ",", "Ġ", "4", ",", "Ġ", "9", "9", "],", "Ġ", "0", ")", "ĊĠĠĠ", "Ġ>>>", "Ġo", ".", "run", "()", "ĊĠĠĠ", "ĠTrue", "ĊĠĠĠ", "Ġ>>>", "Ġo", ".", "memory", "ĊĠĠĠ", "Ġ[", "2", ",", "Ġ", "2", ",", "Ġ", "3", ",", "Ġ", "4", ",", "Ġ", "1", "2", "]", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġmem", ",", "Ġptr", "):", "ĊĠĠĠĠĠĠĠ", "Ġsuper", "().__", "init", "__(", "mem", ",", "Ġptr", ",", "Ġ", "2", ",", "Ġ", "4", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "first", "Ġ=", "Ġself", ".", "get", "_", "val", "(", "1", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "second", "Ġ=", "Ġself", ".", "get", "_", "val", "(", "2", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "res", "Ġ=", "Ġmem", "[", "ptr", "Ġ+", "Ġ", "3", "]", "ĊĊĠĠĠ", "Ġdef", "Ġrun", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "memory", "[", "self", ".__", "res", "]", "Ġ=", "Ġself", ".__", "first", "Ġ*", "Ġself", ".__", "second", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "ĠTrue", "ĊĊĠĠĠ", "Ġdef", "Ġparams", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ{\"", "no", "un", "\":", "Ġself", ".__", "first", ",", "Ġ\"", "verb", "\":", "Ġself", ".__", "second", ",", "Ġ\"", "result", "\":", "Ġself", ".__", "res", "}", "ĊĊĠĠĠ", "Ġdef", "Ġreads", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ[", "self", ".__", "first", ",", "Ġself", ".__", "second", "]", "ĊĊĠĠĠ", "Ġdef", "Ġwrites", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".__", "res", "ĊĊĠĠĠ", "Ġdef", "Ġop", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"*\"", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "str", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "loc", "[%", "d", "]", "Ġ=", "Ġ%", "d", "Ġ*", "Ġ%", "d", "\"", "Ġ%", "Ġ(", "self", ".__", "res", ",", "Ġself", ".__", "first", ",", "Ġself", ".__", "second", ")", "ĊĊ", "Ċ", "class", "ĠOpcode", "9", "9", "(", "Opcode", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġ>>>", "Ġo", "Ġ=", "ĠOpcode", "9", "9", "([", "9", "9", ",", "1", "2", ",", "3", ",", "4", ",", "5", "],", "Ġ", "0", ")", "ĊĠĠĠ", "Ġ>>>", "Ġo", ".", "run", "()", "ĊĠĠĠ", "ĠFalse", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġmem", ",", "Ġptr", "):", "ĊĠĠĠĠĠĠĠ", "Ġsuper", "().__", "init", "__(", "mem", ",", "Ġptr", ",", "Ġ", "9", "9", ",", "Ġ", "1", ")", "ĊĊĠĠĠ", "Ġdef", "Ġrun", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "ĠFalse", "ĊĊĠĠĠ", "Ġdef", "Ġparams", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ{}", "ĊĊĠĠĠ", "Ġdef", "Ġreads", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ[]", "ĊĊĠĠĠ", "Ġdef", "Ġwrites", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "ĠNone", "ĊĊĠĠĠ", "Ġdef", "Ġop", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "HAL", "T", "\"", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "str", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "HAL", "T", "\"", "ĊĊ", "Ċ", "def", "Ġdefault", "_", "ops", "():", "ĊĠĠĠ", "Ġreturn", "Ġ{", "1", ":", "ĠOpcode", "1", ",", "Ġ", "2", ":", "ĠOpcode", "2", ",", "Ġ", "9", "9", ":", "ĠOpcode", "9", "9", "}", "ĊĊ", "Ċ", "class", "ĠInterpreter", "(", "object", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġinput", "_", "code", ",", "Ġops", "=", "default", "_", "ops", "()):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "memory", "Ġ=", "Ġinput", "_", "code", "ĊĊĠĠĠĠĠĠĠ", "Ġself", ".__", "ops", "Ġ=", "Ġops", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "ptr", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "running", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "length", "Ġ=", "Ġlen", "(", "self", ".__", "memory", ")", "ĊĊĠĠĠ", "Ġdef", "Ġstep", "i", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġo", "Ġ=", "ĠNone", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".__", "running", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġo", "Ġ=", "Ġself", ".", "next", "_", "op", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".__", "running", "Ġ=", "Ġo", ".", "run", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġchk", ",", "Ġval", "Ġ=", "Ġo", ".", "set", "_", "ptr", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġchk", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".__", "ptr", "Ġ=", "Ġval", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".__", "ptr", "Ġ+=", "Ġo", ".", "ptr", "_", "inc", "()", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġo", "ĊĊĠĠĠ", "Ġdef", "Ġrun", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġwhile", "Ġself", ".__", "running", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "step", "i", "()", "ĊĊĠĠĠ", "Ġdef", "Ġinspect", "(", "self", ",", "Ġloc", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".__", "memory", "[", "loc", "]", "ĊĊĠĠĠ", "Ġdef", "Ġnext", "_", "op", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "op", "_", "at", "(", "self", ".__", "ptr", ")", "ĊĊĠĠĠ", "Ġdef", "Ġop", "_", "at", "(", "self", ",", "Ġptr", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".__", "ops", "[", "self", ".__", "memory", "[", "ptr", "]", "Ġ%", "Ġ", "1", "0", "0", "](", "self", ".__", "memory", ",", "Ġptr", ")", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "str", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġstr", "s", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġi", ",", "Ġv", "Ġin", "Ġenumerate", "(", "self", ".__", "memory", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġi", "Ġ==", "Ġself", ".__", "ptr", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġstr", "s", ".", "append", "(\"", "{:", "*>", "4", "}\".", "format", "(", "v", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġstr", "s", ".", "append", "(\"", "{:", ">", "4", "}\".", "format", "(", "v", "))", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\",", "\".", "join", "(", "strs", ")", "Ġ+", "Ġ\"\\", "n", "\"", "Ġ+", "Ġ\"", "Next", ":\\", "n", "\\", "t", "\"", "Ġ+", "Ġstr", "(", "self", ".", "next", "_", "op", "())", "ĊĊĠĠĠ", "Ġdef", "Ġpoke", "(", "self", ",", "Ġloc", ",", "Ġval", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "memory", "[", "loc", "]", "Ġ=", "Ġval", "ĊĊĠĠĠ", "Ġdef", "Ġre", "bind", "(", "self", ",", "Ġcode", ",", "Ġcall", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "ops", "[", "code", "]", "Ġ=", "Ġcall", "ĊĊĠĠĠ", "Ġdef", "Ġas", "_", "op", "codes", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġops", "Ġ=", "Ġ[", "self", ".", "op", "_", "at", "(", "0", ")]", "ĊĠĠĠĠĠĠĠ", "Ġptr", "Ġ=", "Ġops", "[-", "1", "].", "ptr", "_", "inc", "()", "ĊĠĠĠĠĠĠĠ", "Ġwhile", "Ġops", "[-", "1", "].", "op", "()", "Ġ!=", "Ġ\"", "HAL", "T", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġops", ".", "append", "(", "self", ".", "op", "_", "at", "(", "ptr", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġptr", "Ġ+=", "Ġops", "[-", "1", "].", "ptr", "_", "inc", "()", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġops", "ĊĊ", "Ċ", "class", "ĠValue", "Node", "(", "object", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġval", ",", "Ġtag", "=\"", "\"):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "val", "Ġ=", "Ġval", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "tag", "Ġ=", "Ġtag", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "str", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".__", "tag", "Ġ+", "Ġstr", "(", "self", ".__", "val", ")", "ĊĊ", "Ċ", "class", "ĠOp", "Node", "(", "object", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġop", ",", "Ġdepends", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "op", "Ġ=", "Ġop", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "depends", "Ġ=", "Ġdepends", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "str", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"(\"", "Ġ+", "Ġself", ".__", "op", ".", "op", "().", "join", "([", "str", "(", "i", ")", "Ġfor", "Ġi", "Ġin", "Ġself", ".__", "depends", "])", "Ġ+", "Ġ\")\"", "ĊĊ", "Ċ", "class", "ĠOpcode", "Tree", "Builder", "(", "object", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġinterp", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "interpreter", "Ġ=", "Ġinterp", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "codes", "Ġ=", "Ġinterp", ".", "as", "_", "op", "codes", "()", "ĊĊĠĠĠ", "Ġdef", "Ġconstruct", "_", "mappings", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġi", "Ġin", "Ġself", ".__", "codes", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġparams", "Ġ=", "Ġi", ".", "params", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġ\"", "result", "\"", "Ġin", "Ġparams", ".", "keys", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġparams", "[\"", "result", "\"]", "Ġnot", "Ġin", "Ġself", ".__", "writes", "_", "to", ".", "keys", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".__", "writes", "_", "to", "[", "params", "[\"", "result", "\"]]", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".__", "writes", "_", "to", "[", "params", "[\"", "result", "\"]", "].", "append", "(", "i", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġ\"", "no", "un", "\"", "Ġin", "Ġparams", ".", "keys", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġparams", "[\"", "no", "un", "\"]", "Ġnot", "Ġin", "Ġself", ".__", "reads", "_", "from", ".", "keys", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".__", "reads", "_", "from", "[", "params", "[\"", "no", "un", "\"]]", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".__", "reads", "_", "from", "[", "params", "[\"", "no", "un", "\"]", "].", "append", "(", "i", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġ\"", "verb", "\"", "Ġin", "Ġparams", ".", "keys", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġparams", "[\"", "verb", "\"]", "Ġnot", "Ġin", "Ġself", ".__", "reads", "_", "from", ".", "keys", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".__", "reads", "_", "from", "[", "params", "[\"", "verb", "\"]]", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".__", "reads", "_", "from", "[", "params", "[\"", "verb", "\"]", "].", "append", "(", "i", ")", "ĊĊĠĠĠ", "Ġdef", "Ġconstruct", "_", "graph", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġop", "Ġ=", "Ġself", ".__", "interpreter", ".", "op", "_", "at", "(", "0", ")", "ĊĠĠĠĠĠĠĠ", "Ġreads", "Ġ=", "Ġ[", "Value", "Node", "(", "self", ".__", "interpreter", ".", "inspect", "(", "i", "),", "Ġtag", "=\"", "raw", "%", "d", "_\"", "Ġ%", "Ġ(", "i", "))", "Ġfor", "Ġi", "Ġin", "Ġop", ".", "reads", "()]", "ĊĠĠĠĠĠĠĠ", "Ġwrites", "Ġ=", "Ġop", ".", "writes", "()", "ĊĠĠĠĠĠĠĠ", "Ġbase", "Ġ=", "ĠOp", "Node", "(", "op", ",", "Ġreads", ")", "ĊĠĠĠĠĠĠĠ", "Ġptr", "Ġ=", "Ġop", ".", "ptr", "_", "inc", "()", "ĊĠĠĠĠĠĠĠ", "Ġlast", "_", "write", "Ġ=", "Ġ{}", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġwrites", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlast", "_", "write", "[", "writes", "]", "Ġ=", "Ġbase", "ĊĠĠĠĠĠĠĠ", "Ġwhile", "Ġop", ".", "op", "()", "Ġ!=", "Ġ\"", "HAL", "T", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġop", "Ġ=", "Ġself", ".__", "interpreter", ".", "op", "_", "at", "(", "ptr", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġop", ".", "op", "()", "Ġ==", "Ġ\"", "HAL", "T", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġbreak", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdepends", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġi", "Ġin", "Ġop", ".", "reads", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġi", "Ġin", "Ġlast", "_", "write", ".", "keys", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdepends", ".", "append", "(", "last", "_", "write", "[", "i", "])", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdepends", ".", "append", "(", "Value", "Node", "(", "self", ".__", "interpreter", ".", "inspect", "(", "i", ")))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġbase", "Ġ=", "ĠOp", "Node", "(", "op", ",", "Ġdepends", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġop", ".", "writes", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġlast", "_", "write", "[", "op", ".", "writes", "()]", "Ġ=", "Ġbase", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġptr", "Ġ+=", "Ġop", ".", "ptr", "_", "inc", "()", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġbase", "ĊĊ", "Ċ", "if", "Ġ__", "name", "__", "Ġ==", "Ġ\"__", "main", "__\":", "ĊĠĠĠ", "Ġimport", "Ġdo", "ctest", "ĊĊĠĠĠ", "Ġdo", "ctest", ".", "test", "mod", "()", "Ċ", "Ċ", "################################################", "#", "Ċ", "Ċ", "#", "Ġi", "Ġ=", "ĠInterpreter", "(", "file", "_", "to", "_", "code", "(\"", "day", "2", "_", "input", ".", "txt", "\"))", "Ċ", "#", "Ġi", ".", "run", "()", "Ċ", "#", "Ġi", ".", "inspect", "(", "0", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 10, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 62, 63, 63, 63, 63, 63, 63, 63, 64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 67, 67, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 70, 70, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 80, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92, 94, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 97, 98, 98, 98, 98, 98, 98, 98, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 102, 102, 103, 103, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 105, 105, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 113, 113, 113, 113, 113, 113, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 115, 115, 115, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 123, 123, 123, 123, 123, 123, 124, 124, 124, 124, 124, 126, 126, 126, 126, 126, 126, 127, 127, 127, 129, 129, 129, 129, 129, 129, 129, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 132, 133, 133, 133, 133, 133, 133, 133, 133, 134, 134, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 136, 136, 136, 136, 136, 136, 137, 137, 138, 138, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 143, 143, 143, 143, 143, 143, 144, 144, 144, 146, 146, 146, 146, 146, 146, 147, 147, 147, 149, 149, 149, 149, 149, 149, 150, 150, 150, 152, 152, 152, 152, 152, 152, 153, 153, 153, 155, 155, 155, 155, 155, 155, 156, 156, 156, 156, 156, 156, 158, 158, 158, 158, 158, 158, 158, 159, 159, 159, 159, 159, 159, 161, 162, 162, 162, 162, 162, 162, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 165, 166, 166, 166, 166, 166, 166, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 168, 168, 168, 168, 168, 168, 168, 168, 170, 170, 170, 170, 170, 170, 171, 171, 171, 171, 171, 171, 171, 172, 172, 172, 172, 172, 172, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 175, 175, 175, 175, 175, 175, 175, 176, 176, 176, 176, 177, 177, 177, 177, 177, 177, 178, 178, 178, 178, 178, 178, 178, 178, 178, 179, 179, 179, 179, 179, 179, 179, 179, 179, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 181, 181, 181, 181, 182, 182, 182, 182, 182, 182, 183, 183, 183, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 185, 185, 185, 187, 187, 187, 187, 187, 187, 188, 188, 188, 188, 188, 188, 189, 189, 189, 189, 189, 189, 191, 191, 191, 191, 191, 191, 191, 191, 192, 192, 192, 192, 192, 192, 192, 192, 194, 194, 194, 194, 194, 194, 194, 194, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 200, 200, 200, 200, 200, 200, 200, 201, 201, 201, 201, 201, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 203, 203, 203, 203, 203, 203, 203, 203, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 205, 205, 205, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 210, 210, 210, 210, 210, 210, 210, 210, 210, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 213, 213, 213, 213, 213, 213, 213, 213, 213, 215, 215, 215, 215, 215, 215, 215, 215, 215, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 221, 221, 221, 223, 224, 224, 224, 224, 224, 224, 224, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 226, 226, 226, 226, 226, 226, 227, 227, 227, 227, 227, 227, 229, 229, 229, 229, 229, 229, 229, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 232, 233, 233, 233, 233, 233, 233, 233, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 235, 235, 235, 235, 235, 235, 236, 236, 236, 236, 236, 236, 238, 238, 238, 238, 238, 238, 238, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 241, 242, 242, 242, 242, 242, 242, 242, 242, 243, 243, 243, 243, 243, 243, 243, 243, 243, 244, 244, 244, 244, 244, 244, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 247, 247, 247, 247, 247, 247, 247, 247, 248, 248, 248, 248, 248, 248, 248, 248, 249, 249, 249, 249, 249, 249, 249, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 259, 259, 259, 259, 259, 259, 259, 259, 259, 259, 259, 259, 259, 259, 259, 259, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 263, 263, 263, 263, 263, 263, 263, 263, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 266, 266, 266, 266, 266, 266, 266, 267, 267, 267, 267, 267, 267, 267, 267, 267, 267, 268, 268, 268, 268, 268, 268, 268, 268, 268, 269, 269, 269, 269, 269, 269, 270, 270, 270, 270, 271, 271, 271, 271, 271, 271, 271, 271, 271, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 275, 275, 276, 276, 276, 276, 277, 277, 277, 277, 277, 277, 277, 277, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 280, 280, 280, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 283, 283, 283, 283, 283, 283, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 285, 285, 285, 285, 285, 285, 285, 285, 285, 286, 286, 286, 288, 289, 289, 289, 289, 289, 289, 289, 289, 289, 290, 290, 290, 290, 292, 292, 292, 292, 292, 292, 292, 293, 294, 294, 294, 295, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 297, 297, 297, 297, 297, 297, 298, 298, 298, 298, 298, 298, 298, 298 ]
[ 1, 4, 7, 8, 11, 12, 18, 19, 1, 1, 4, 9, 10, 12, 13, 17, 18, 23, 25, 4, 8, 10, 13, 4, 8, 13, 16, 21, 22, 27, 28, 30, 31, 34, 8, 12, 13, 19, 21, 24, 25, 26, 27, 31, 33, 36, 41, 42, 47, 52, 54, 4, 11, 15, 1, 1, 6, 13, 14, 20, 22, 4, 8, 11, 15, 18, 22, 23, 27, 28, 32, 33, 38, 39, 43, 45, 8, 12, 8, 12, 14, 16, 23, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 8, 12, 14, 16, 22, 24, 27, 28, 33, 8, 10, 11, 12, 13, 14, 15, 8, 12, 8, 11, 15, 16, 19, 20, 22, 23, 24, 25, 26, 29, 34, 35, 12, 18, 28, 30, 38, 45, 46, 47, 51, 58, 60, 61, 62, 64, 66, 70, 71, 75, 76, 79, 82, 8, 13, 14, 20, 22, 26, 8, 13, 14, 17, 19, 23, 8, 13, 16, 19, 20, 25, 27, 32, 33, 41, 43, 46, 47, 48, 49, 53, 55, 58, 62, 63, 66, 67, 70, 71, 74, 75, 77, 78, 79, 80, 81, 83, 86, 8, 13, 16, 19, 20, 23, 25, 29, 4, 8, 12, 13, 16, 17, 21, 23, 8, 15, 20, 23, 26, 27, 30, 4, 8, 12, 13, 16, 17, 21, 22, 26, 27, 30, 32, 8, 12, 8, 12, 14, 16, 23, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 8, 12, 14, 15, 18, 19, 22, 23, 24, 25, 9, 10, 8, 12, 14, 15, 18, 19, 22, 23, 24, 25, 9, 10, 8, 12, 14, 15, 18, 19, 22, 23, 24, 25, 9, 10, 8, 12, 8, 12, 14, 18, 19, 22, 24, 25, 26, 8, 11, 15, 18, 22, 23, 27, 30, 33, 34, 39, 40, 43, 48, 51, 54, 55, 60, 61, 64, 65, 68, 69, 70, 71, 12, 19, 24, 25, 31, 32, 36, 37, 43, 44, 48, 49, 52, 54, 58, 59, 62, 64, 8, 13, 18, 21, 24, 25, 30, 31, 34, 35, 38, 39, 40, 41, 12, 19, 24, 25, 31, 32, 36, 37, 40, 42, 46, 47, 50, 51, 4, 8, 12, 13, 16, 17, 21, 23, 8, 15, 21, 22, 23, 24, 4, 8, 14, 15, 19, 21, 8, 14, 24, 26, 30, 33, 38, 44, 50, 52, 54, 4, 8, 15, 16, 20, 22, 8, 14, 24, 26, 30, 33, 38, 44, 51, 53, 55, 4, 8, 11, 12, 16, 18, 8, 14, 24, 26, 30, 33, 38, 44, 47, 49, 51, 4, 8, 15, 16, 20, 22, 8, 14, 24, 26, 30, 33, 38, 44, 51, 53, 55, 4, 8, 12, 13, 17, 19, 8, 14, 24, 26, 30, 33, 38, 44, 48, 50, 52, 1, 1, 6, 13, 14, 15, 21, 23, 4, 8, 4, 8, 10, 12, 19, 20, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 36, 37, 38, 39, 4, 8, 10, 11, 14, 16, 4, 9, 4, 8, 10, 11, 17, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 4, 8, 4, 8, 11, 15, 18, 22, 23, 27, 28, 32, 34, 8, 14, 19, 23, 26, 29, 30, 34, 35, 36, 37, 38, 39, 40, 41, 8, 13, 16, 21, 23, 28, 29, 32, 33, 36, 37, 38, 39, 8, 13, 16, 22, 24, 29, 30, 33, 34, 37, 38, 39, 40, 8, 13, 16, 19, 21, 25, 26, 29, 31, 32, 33, 34, 4, 8, 12, 13, 17, 19, 8, 13, 14, 20, 21, 25, 28, 31, 32, 34, 39, 42, 47, 49, 54, 57, 63, 8, 15, 20, 4, 8, 15, 16, 20, 22, 8, 15, 18, 20, 22, 24, 29, 32, 37, 38, 40, 44, 46, 51, 54, 60, 61, 63, 69, 71, 76, 79, 82, 83, 4, 8, 14, 15, 19, 21, 8, 15, 17, 21, 24, 29, 30, 35, 38, 44, 45, 4, 8, 15, 16, 20, 22, 8, 15, 20, 23, 26, 4, 8, 11, 12, 16, 18, 8, 15, 17, 19, 4, 8, 11, 14, 17, 21, 23, 8, 15, 17, 20, 22, 23, 24, 26, 28, 29, 31, 33, 34, 35, 37, 39, 43, 46, 49, 50, 55, 58, 63, 64, 69, 72, 78, 79, 1, 1, 6, 13, 14, 15, 21, 23, 4, 8, 4, 8, 10, 12, 19, 20, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 38, 39, 40, 41, 4, 8, 10, 11, 14, 16, 4, 9, 4, 8, 10, 11, 17, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 4, 8, 4, 8, 11, 15, 18, 22, 23, 27, 28, 32, 34, 8, 14, 19, 23, 26, 29, 30, 34, 35, 36, 37, 38, 39, 40, 41, 8, 13, 16, 21, 23, 28, 29, 32, 33, 36, 37, 38, 39, 8, 13, 16, 22, 24, 29, 30, 33, 34, 37, 38, 39, 40, 8, 13, 16, 19, 21, 25, 26, 29, 31, 32, 33, 34, 4, 8, 12, 13, 17, 19, 8, 13, 14, 20, 21, 25, 28, 31, 32, 34, 39, 42, 47, 49, 54, 57, 63, 8, 15, 20, 4, 8, 15, 16, 20, 22, 8, 15, 18, 20, 22, 24, 29, 32, 37, 38, 40, 44, 46, 51, 54, 60, 61, 63, 69, 71, 76, 79, 82, 83, 4, 8, 14, 15, 19, 21, 8, 15, 17, 21, 24, 29, 30, 35, 38, 44, 45, 4, 8, 15, 16, 20, 22, 8, 15, 20, 23, 26, 4, 8, 11, 12, 16, 18, 8, 15, 19, 4, 8, 11, 14, 17, 21, 23, 8, 15, 17, 20, 22, 23, 24, 26, 28, 29, 31, 33, 34, 35, 37, 39, 43, 46, 49, 50, 55, 58, 63, 64, 69, 72, 78, 79, 1, 1, 6, 13, 14, 15, 16, 22, 24, 4, 8, 4, 8, 10, 12, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 36, 37, 38, 39, 4, 8, 10, 11, 14, 16, 4, 10, 4, 8, 4, 8, 11, 15, 18, 22, 23, 27, 28, 32, 34, 8, 14, 19, 23, 26, 29, 30, 34, 35, 36, 37, 38, 39, 40, 41, 42, 4, 8, 12, 13, 17, 19, 8, 15, 21, 4, 8, 15, 16, 20, 22, 8, 15, 18, 4, 8, 14, 15, 19, 21, 8, 15, 18, 4, 8, 15, 16, 20, 22, 8, 15, 20, 4, 8, 11, 12, 16, 18, 8, 15, 17, 20, 21, 22, 4, 8, 11, 14, 17, 21, 23, 8, 15, 17, 20, 21, 22, 1, 1, 4, 12, 13, 16, 19, 4, 11, 13, 14, 15, 22, 23, 24, 25, 26, 27, 34, 35, 36, 37, 38, 39, 40, 47, 48, 49, 50, 1, 1, 6, 18, 19, 25, 27, 4, 8, 11, 15, 18, 22, 23, 29, 30, 34, 35, 39, 40, 47, 48, 51, 55, 8, 13, 16, 22, 24, 30, 31, 35, 8, 13, 16, 19, 21, 25, 8, 13, 16, 19, 21, 22, 23, 8, 13, 16, 23, 25, 30, 8, 13, 14, 20, 22, 26, 27, 31, 34, 40, 41, 4, 8, 13, 14, 15, 19, 21, 8, 10, 12, 17, 8, 11, 16, 19, 26, 27, 12, 14, 16, 21, 22, 26, 27, 29, 31, 12, 17, 20, 27, 29, 31, 32, 35, 37, 12, 16, 17, 21, 23, 25, 26, 29, 30, 33, 35, 12, 15, 19, 20, 16, 21, 24, 27, 29, 33, 12, 17, 18, 16, 21, 24, 27, 30, 32, 33, 36, 37, 40, 42, 8, 15, 17, 4, 8, 12, 13, 17, 19, 8, 14, 19, 22, 29, 30, 12, 17, 18, 22, 23, 25, 4, 8, 16, 17, 21, 22, 26, 28, 8, 15, 20, 23, 29, 30, 33, 34, 4, 8, 13, 14, 16, 17, 21, 23, 8, 15, 20, 21, 23, 24, 26, 27, 31, 34, 37, 38, 4, 8, 11, 12, 14, 15, 19, 20, 24, 26, 8, 15, 20, 23, 26, 27, 31, 34, 40, 41, 44, 45, 47, 48, 49, 50, 51, 53, 57, 60, 66, 67, 71, 72, 4, 8, 11, 14, 17, 21, 23, 8, 12, 13, 15, 18, 8, 12, 14, 15, 17, 20, 30, 31, 35, 38, 44, 46, 12, 15, 17, 20, 25, 28, 31, 32, 16, 20, 21, 22, 28, 30, 32, 34, 35, 38, 44, 45, 46, 48, 12, 17, 18, 16, 20, 21, 22, 28, 30, 32, 33, 34, 37, 43, 44, 45, 47, 8, 15, 18, 20, 24, 25, 29, 30, 32, 35, 36, 37, 39, 41, 45, 47, 48, 49, 50, 51, 53, 57, 58, 62, 63, 67, 68, 70, 73, 4, 8, 13, 14, 18, 19, 23, 24, 28, 30, 8, 13, 16, 22, 23, 26, 27, 29, 33, 4, 8, 11, 15, 16, 20, 21, 26, 27, 32, 34, 8, 13, 16, 19, 20, 24, 25, 27, 32, 4, 8, 11, 12, 14, 19, 20, 24, 26, 8, 12, 14, 16, 20, 21, 23, 24, 26, 27, 28, 30, 8, 12, 14, 18, 20, 21, 23, 26, 27, 30, 32, 8, 14, 18, 20, 21, 23, 25, 27, 30, 32, 35, 36, 38, 12, 16, 17, 23, 24, 28, 29, 31, 32, 34, 35, 38, 40, 12, 16, 19, 23, 25, 26, 28, 31, 32, 35, 37, 8, 15, 19, 1, 1, 6, 12, 16, 17, 23, 25, 4, 8, 11, 15, 18, 22, 23, 27, 28, 32, 34, 37, 8, 13, 16, 19, 21, 25, 8, 13, 16, 19, 21, 25, 4, 8, 11, 14, 17, 21, 23, 8, 15, 20, 23, 26, 28, 32, 33, 37, 40, 43, 44, 1, 1, 6, 9, 13, 14, 20, 22, 4, 8, 11, 15, 18, 22, 23, 26, 27, 35, 37, 8, 13, 16, 18, 20, 23, 8, 13, 16, 23, 25, 33, 4, 8, 11, 14, 17, 21, 23, 8, 15, 19, 21, 26, 29, 31, 32, 34, 37, 41, 43, 46, 47, 48, 49, 53, 55, 58, 63, 66, 73, 75, 77, 81, 1, 1, 6, 13, 17, 24, 25, 31, 33, 4, 8, 11, 15, 18, 22, 23, 30, 32, 8, 13, 16, 27, 29, 36, 8, 13, 16, 21, 23, 30, 31, 33, 34, 36, 41, 43, 4, 8, 18, 19, 27, 28, 32, 34, 8, 12, 14, 17, 22, 25, 30, 31, 12, 19, 21, 23, 24, 30, 32, 12, 15, 17, 23, 24, 27, 34, 35, 39, 42, 16, 19, 26, 28, 34, 36, 40, 43, 48, 51, 57, 58, 60, 61, 65, 68, 20, 25, 28, 34, 35, 37, 38, 44, 46, 52, 55, 57, 60, 16, 21, 24, 30, 31, 33, 34, 40, 42, 48, 50, 52, 58, 59, 60, 61, 12, 15, 17, 19, 21, 22, 25, 32, 33, 37, 40, 16, 19, 26, 28, 30, 32, 34, 38, 41, 46, 49, 54, 55, 59, 60, 64, 67, 20, 25, 28, 33, 34, 38, 39, 45, 47, 49, 51, 54, 56, 59, 16, 21, 24, 29, 30, 34, 35, 41, 43, 45, 47, 49, 51, 57, 58, 59, 60, 12, 15, 17, 21, 22, 25, 32, 33, 37, 40, 16, 19, 26, 28, 32, 34, 38, 41, 46, 49, 54, 55, 59, 60, 64, 67, 20, 25, 28, 33, 34, 38, 39, 45, 47, 51, 54, 56, 59, 16, 21, 24, 29, 30, 34, 35, 41, 43, 47, 49, 51, 57, 58, 59, 60, 4, 8, 18, 19, 24, 25, 29, 31, 8, 11, 13, 18, 21, 32, 33, 35, 36, 38, 39, 40, 41, 8, 14, 16, 18, 23, 27, 28, 32, 35, 46, 47, 54, 55, 56, 58, 62, 64, 67, 68, 69, 71, 73, 75, 76, 78, 82, 84, 87, 90, 91, 96, 99, 8, 15, 17, 20, 21, 27, 29, 8, 13, 15, 18, 22, 23, 25, 26, 32, 33, 8, 12, 14, 17, 18, 21, 22, 25, 27, 8, 13, 14, 19, 21, 24, 8, 11, 18, 19, 12, 17, 18, 23, 24, 30, 31, 33, 38, 8, 14, 17, 18, 20, 22, 25, 27, 30, 31, 33, 12, 15, 17, 22, 25, 36, 37, 39, 40, 42, 43, 46, 47, 12, 15, 18, 19, 21, 23, 26, 28, 31, 32, 34, 16, 22, 12, 20, 22, 25, 12, 16, 18, 21, 24, 25, 30, 33, 16, 19, 21, 24, 29, 30, 35, 36, 40, 43, 20, 28, 29, 35, 36, 40, 41, 46, 47, 48, 50, 16, 21, 22, 20, 28, 29, 35, 36, 41, 45, 46, 50, 53, 64, 65, 72, 73, 74, 77, 12, 17, 19, 22, 26, 27, 29, 30, 38, 39, 12, 15, 18, 19, 25, 28, 16, 21, 22, 27, 28, 30, 31, 37, 40, 42, 47, 12, 16, 19, 22, 23, 26, 27, 30, 32, 8, 15, 20, 1, 1, 3, 6, 10, 12, 15, 19, 23, 27, 4, 11, 14, 19, 4, 7, 12, 13, 17, 20, 22, 1, 1, 49, 50, 1, 1, 2, 4, 6, 18, 19, 23, 24, 26, 27, 31, 33, 36, 37, 38, 43, 44, 47, 50, 1, 2, 4, 5, 8, 10, 1, 2, 4, 5, 12, 13, 14, 15 ]
8d5b75dc945844d48f52159be08fc1e6aa51fdf5
# Takes in a word and makes a list containing individual characters def split(word): return [char for char in word] # Removes empty strings from a list def removeEmptyStrings(lst): while "" in lst: lst.remove("") ints = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"] tokenList = [] class Token: def __init__(self, token, value): self.token = token self.value = value def display(self): # Throws error if character is unknown if self.token == "ERROR": error = Error( "UnknownError", "cannot identify character", str(self.value), 1, r"C:\Users\tanne\My_Codes\Python\ease_language\SAMPLE.py", ) print(error.display()) # Displays token value pairs else: if self.token == "STRING" or self.token == "INT": pair = f"{self.token}: {self.value}" else: pair = f"{self.token}" return pair # Adds token value pairs to list def addToList(self): tokenList.append(self.display()) class Lexer: def __init__(self, items): self.items = split(items) self.index = 0 self.item = "" self.stringOn = False self.stringList = "" self.intOn = False # Identifies correct token type def identify(self): ints = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"] tok = "" val = self.item if '"' == self.item or "'" == self.item: if self.stringOn: self.stringOn = False tok = "STRING" val = self.getString() else: self.stringOn = True elif self.stringOn: self.addToString() elif self.item in " \n": pass elif "+" == self.item: tok = "PLUS" elif "-" == self.item: tok = "MINUS" elif "*" == self.item: tok = "MUL" elif "/" == self.item: tok = "DIV" elif "(" == self.item: tok = "LPAREN" elif ")" == self.item: tok = "RPAREN" else: if self.item in ints: tok = "INT" else: tok = "ERROR" token = Token(tok, val) return token.addToList() # Moves forward a character def advance(self): self.item = self.items[self.index] self.index += 1 # Displays list of token value pairs def displayAll(self): removeEmptyStrings(tokenList) return tokenList # Adds an item to a string def addToString(self): self.stringList += self.item # Returns string and clears it def getString(self): temp = self.stringList self.stringList = "" return temp class Error: def __init__(self, error, detail, code, line, fileName): self.error = error self.detail = detail self.code = code self.line = line self.file = fileName # Displays errors def display(self): return f'File "{self.file}", line {str(self.line)}\n {self.code}\n{self.error}: {self.detail}' # Runs needed methods def run(text): wordList = split(text) l1 = Lexer(text) for word in wordList: l1.advance() l1.identify() print(l1.displayAll()) tokenList.clear()
[ 40, 37389, 347, 331, 3619, 480, 7437, 331, 1168, 6663, 10139, 7152, 222, 610, 6168, 45, 1131, 731, 303, 461, 447, 1612, 456, 1370, 347, 3619, 98, 499, 222, 40, 24968, 3517, 5872, 664, 331, 1168, 222, 610, 3365, 2779, 9634, 45, 10015, 731, 303, 2236, 3347, 347, 20408, 63, 310, 20408, 51, 2564, 18001, 499, 222, 28371, 299, 3059, 53, 411, 332, 54, 411, 332, 55, 411, 332, 56, 411, 332, 57, 411, 332, 58, 411, 332, 59, 411, 332, 60, 411, 332, 61, 411, 332, 62, 1465, 222, 1977, 739, 299, 1627, 499, 222, 842, 6520, 63, 303, 684, 1176, 1683, 3232, 803, 49, 2421, 49, 804, 731, 310, 649, 51, 1977, 299, 2421, 310, 649, 51, 872, 299, 804, 465, 684, 2540, 45, 803, 731, 310, 607, 40913, 1067, 434, 5373, 458, 8675, 310, 434, 649, 51, 1977, 630, 332, 2946, 582, 343, 1067, 299, 3099, 45, 419, 332, 5850, 943, 411, 419, 332, 18510, 12452, 5373, 411, 419, 615, 45, 803, 51, 872, 490, 372, 54, 49, 419, 559, 39, 72, 3509, 3715, 97, 21977, 960, 97, 3781, 100, 11971, 97, 8378, 97, 25608, 100, 4210, 97, 22809, 51, 997, 411, 343, 848, 343, 1489, 45, 750, 51, 2784, 1177, 603, 607, 42557, 2421, 804, 11886, 310, 832, 63, 343, 434, 649, 51, 1977, 630, 332, 5215, 39, 575, 649, 51, 1977, 630, 332, 1860, 582, 419, 6120, 299, 315, 9633, 803, 51, 1977, 10714, 320, 803, 51, 872, 3864, 343, 832, 63, 419, 6120, 299, 315, 9633, 803, 51, 1977, 3864, 343, 461, 6120, 465, 607, 15444, 2421, 804, 11886, 391, 1168, 303, 684, 1035, 14922, 45, 803, 731, 310, 2421, 739, 51, 1713, 45, 803, 51, 2784, 1177, 499, 222, 842, 25459, 284, 63, 303, 684, 1176, 1683, 3232, 803, 49, 3966, 731, 310, 649, 51, 3053, 299, 6168, 45, 3053, 46, 310, 649, 51, 1076, 299, 244, 53, 310, 649, 51, 1113, 299, 3347, 310, 649, 51, 819, 1501, 299, 3208, 310, 649, 51, 819, 739, 299, 3347, 310, 649, 51, 429, 1501, 299, 3208, 465, 607, 17509, 6871, 3831, 2421, 847, 303, 684, 12452, 45, 803, 731, 310, 34669, 299, 3059, 53, 411, 332, 54, 411, 332, 55, 411, 332, 56, 411, 332, 57, 411, 332, 58, 411, 332, 59, 411, 332, 60, 411, 332, 61, 411, 332, 62, 1465, 603, 20029, 299, 3347, 310, 928, 299, 649, 51, 1113, 603, 434, 37401, 630, 649, 51, 1113, 575, 37600, 630, 649, 51, 1113, 63, 343, 434, 649, 51, 819, 1501, 63, 419, 649, 51, 819, 1501, 299, 3208, 419, 20029, 299, 332, 5215, 39, 419, 928, 299, 649, 51, 7080, 365, 343, 832, 63, 419, 649, 51, 819, 1501, 299, 2969, 310, 4378, 649, 51, 819, 1501, 63, 343, 649, 51, 688, 4602, 365, 310, 4378, 649, 51, 1113, 347, 332, 788, 115, 582, 343, 3119, 310, 4378, 332, 5688, 630, 649, 51, 1113, 63, 343, 20029, 299, 332, 24643, 39, 310, 4378, 20897, 630, 649, 51, 1113, 63, 343, 20029, 299, 332, 33724, 39, 310, 4378, 30138, 630, 649, 51, 1113, 63, 343, 20029, 299, 332, 12773, 39, 310, 4378, 13198, 630, 649, 51, 1113, 63, 343, 20029, 299, 332, 13887, 39, 310, 4378, 31019, 630, 649, 51, 1113, 63, 343, 20029, 299, 332, 7603, 43029, 39, 310, 4378, 35062, 630, 649, 51, 1113, 63, 343, 20029, 299, 332, 5743, 43029, 39, 310, 832, 63, 343, 434, 649, 51, 1113, 347, 34669, 63, 419, 20029, 299, 332, 1860, 39, 343, 832, 63, 419, 20029, 299, 332, 2946, 39, 603, 2421, 299, 6520, 45, 13628, 49, 928, 46, 310, 461, 2421, 51, 688, 14922, 365, 465, 607, 14152, 326, 7425, 331, 5373, 303, 684, 18562, 45, 803, 731, 310, 649, 51, 1113, 299, 649, 51, 3053, 96, 803, 51, 1076, 98, 310, 649, 51, 1076, 1475, 244, 54, 465, 607, 42557, 1168, 451, 2421, 804, 11886, 303, 684, 2540, 1947, 45, 803, 731, 310, 3365, 2779, 9634, 45, 1977, 739, 46, 310, 461, 2421, 739, 465, 607, 15444, 619, 1641, 391, 331, 821, 303, 684, 1035, 4602, 45, 803, 731, 310, 649, 51, 819, 739, 1475, 649, 51, 1113, 465, 607, 3777, 821, 480, 44490, 580, 303, 684, 26625, 45, 803, 731, 310, 1798, 299, 649, 51, 819, 739, 310, 649, 51, 819, 739, 299, 3347, 310, 461, 1798, 499, 222, 842, 3099, 63, 303, 684, 1176, 1683, 3232, 803, 49, 1067, 49, 9363, 49, 1361, 49, 1646, 49, 11221, 731, 310, 649, 51, 750, 299, 1067, 310, 649, 51, 5115, 299, 9363, 310, 649, 51, 707, 299, 1361, 310, 649, 51, 948, 299, 1646, 310, 649, 51, 781, 299, 11221, 465, 607, 42557, 3896, 303, 684, 2540, 45, 803, 731, 310, 461, 315, 44, 991, 10738, 803, 51, 781, 6557, 1646, 320, 484, 45, 803, 51, 948, 47536, 115, 280, 320, 803, 51, 707, 4127, 115, 128, 803, 51, 750, 10714, 320, 803, 51, 5115, 8154, 499, 222, 40, 35685, 5366, 4457, 222, 610, 1441, 45, 897, 731, 303, 3619, 739, 299, 6168, 45, 897, 46, 303, 475, 54, 299, 25459, 284, 45, 897, 46, 465, 456, 3619, 347, 3619, 739, 63, 310, 475, 54, 51, 22662, 365, 310, 475, 54, 51, 36644, 365, 465, 1489, 45, 113, 54, 51, 2784, 1947, 1177, 303, 2421, 739, 51, 3830, 365, 222 ]
[ "#", "ĠTakes", "Ġin", "Ġa", "Ġword", "Ġand", "Ġmakes", "Ġa", "Ġlist", "Ġcontaining", "Ġindividual", "Ġcharacters", "Ċ", "def", "Ġsplit", "(", "word", "):", "ĊĠĠĠ", "Ġreturn", "Ġ[", "char", "Ġfor", "Ġchar", "Ġin", "Ġword", "]", "ĊĊ", "Ċ", "#", "ĠRemoves", "Ġempty", "Ġstrings", "Ġfrom", "Ġa", "Ġlist", "Ċ", "def", "Ġremove", "Empty", "Strings", "(", "lst", "):", "ĊĠĠĠ", "Ġwhile", "Ġ\"\"", "Ġin", "Ġlst", ":", "ĊĠĠĠĠĠĠĠ", "Ġlst", ".", "remove", "(\"\")", "ĊĊ", "Ċ", "ints", "Ġ=", "Ġ[\"", "0", "\",", "Ġ\"", "1", "\",", "Ġ\"", "2", "\",", "Ġ\"", "3", "\",", "Ġ\"", "4", "\",", "Ġ\"", "5", "\",", "Ġ\"", "6", "\",", "Ġ\"", "7", "\",", "Ġ\"", "8", "\",", "Ġ\"", "9", "\"]", "Ċ", "token", "List", "Ġ=", "Ġ[]", "ĊĊ", "Ċ", "class", "ĠToken", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġtoken", ",", "Ġvalue", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "token", "Ġ=", "Ġtoken", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "value", "Ġ=", "Ġvalue", "ĊĊĠĠĠ", "Ġdef", "Ġdisplay", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ#", "ĠThrows", "Ġerror", "Ġif", "Ġcharacter", "Ġis", "Ġunknown", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "token", "Ġ==", "Ġ\"", "ERROR", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġerror", "Ġ=", "ĠError", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "Unknown", "Error", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "cannot", "Ġidentify", "Ġcharacter", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġstr", "(", "self", ".", "value", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "1", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġr", "\"", "C", ":\\", "Users", "\\", "tan", "ne", "\\", "My", "_", "Codes", "\\", "Python", "\\", "ease", "_", "language", "\\", "SAMPLE", ".", "py", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(", "error", ".", "display", "())", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠDisplays", "Ġtoken", "Ġvalue", "Ġpairs", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "token", "Ġ==", "Ġ\"", "STRING", "\"", "Ġor", "Ġself", ".", "token", "Ġ==", "Ġ\"", "INT", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġpair", "Ġ=", "Ġf", "\"{", "self", ".", "token", "}:", "Ġ{", "self", ".", "value", "}\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġpair", "Ġ=", "Ġf", "\"{", "self", ".", "token", "}\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġpair", "ĊĊĠĠĠ", "Ġ#", "ĠAdds", "Ġtoken", "Ġvalue", "Ġpairs", "Ġto", "Ġlist", "ĊĠĠĠ", "Ġdef", "Ġadd", "ToList", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġtoken", "List", ".", "append", "(", "self", ".", "display", "())", "ĊĊ", "Ċ", "class", "ĠLex", "er", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġitems", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "items", "Ġ=", "Ġsplit", "(", "items", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "index", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "item", "Ġ=", "Ġ\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "string", "On", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "string", "List", "Ġ=", "Ġ\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "int", "On", "Ġ=", "ĠFalse", "ĊĊĠĠĠ", "Ġ#", "ĠIdent", "ifies", "Ġcorrect", "Ġtoken", "Ġtype", "ĊĠĠĠ", "Ġdef", "Ġidentify", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġints", "Ġ=", "Ġ[\"", "0", "\",", "Ġ\"", "1", "\",", "Ġ\"", "2", "\",", "Ġ\"", "3", "\",", "Ġ\"", "4", "\",", "Ġ\"", "5", "\",", "Ġ\"", "6", "\",", "Ġ\"", "7", "\",", "Ġ\"", "8", "\",", "Ġ\"", "9", "\"]", "ĊĊĠĠĠĠĠĠĠ", "Ġtok", "Ġ=", "Ġ\"\"", "ĊĠĠĠĠĠĠĠ", "Ġval", "Ġ=", "Ġself", ".", "item", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġ'\"'", "Ġ==", "Ġself", ".", "item", "Ġor", "Ġ\"'\"", "Ġ==", "Ġself", ".", "item", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "string", "On", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "string", "On", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtok", "Ġ=", "Ġ\"", "STRING", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġval", "Ġ=", "Ġself", ".", "getString", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "string", "On", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġself", ".", "string", "On", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "add", "ToString", "()", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġself", ".", "item", "Ġin", "Ġ\"", "Ġ\\", "n", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpass", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġ\"", "+\"", "Ġ==", "Ġself", ".", "item", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtok", "Ġ=", "Ġ\"", "PLUS", "\"", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġ\"-\"", "Ġ==", "Ġself", ".", "item", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtok", "Ġ=", "Ġ\"", "MINUS", "\"", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġ\"*\"", "Ġ==", "Ġself", ".", "item", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtok", "Ġ=", "Ġ\"", "MUL", "\"", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġ\"/\"", "Ġ==", "Ġself", ".", "item", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtok", "Ġ=", "Ġ\"", "DIV", "\"", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġ\"(\"", "Ġ==", "Ġself", ".", "item", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtok", "Ġ=", "Ġ\"", "LP", "AREN", "\"", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġ\")\"", "Ġ==", "Ġself", ".", "item", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtok", "Ġ=", "Ġ\"", "RP", "AREN", "\"", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "item", "Ġin", "Ġints", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtok", "Ġ=", "Ġ\"", "INT", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtok", "Ġ=", "Ġ\"", "ERROR", "\"", "ĊĊĠĠĠĠĠĠĠ", "Ġtoken", "Ġ=", "ĠToken", "(", "tok", ",", "Ġval", ")", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġtoken", ".", "add", "ToList", "()", "ĊĊĠĠĠ", "Ġ#", "ĠMov", "es", "Ġforward", "Ġa", "Ġcharacter", "ĊĠĠĠ", "Ġdef", "Ġadvance", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "item", "Ġ=", "Ġself", ".", "items", "[", "self", ".", "index", "]", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "index", "Ġ+=", "Ġ", "1", "ĊĊĠĠĠ", "Ġ#", "ĠDisplays", "Ġlist", "Ġof", "Ġtoken", "Ġvalue", "Ġpairs", "ĊĠĠĠ", "Ġdef", "Ġdisplay", "All", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġremove", "Empty", "Strings", "(", "token", "List", ")", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġtoken", "List", "ĊĊĠĠĠ", "Ġ#", "ĠAdds", "Ġan", "Ġitem", "Ġto", "Ġa", "Ġstring", "ĊĠĠĠ", "Ġdef", "Ġadd", "ToString", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "string", "List", "Ġ+=", "Ġself", ".", "item", "ĊĊĠĠĠ", "Ġ#", "ĠReturns", "Ġstring", "Ġand", "Ġclears", "Ġit", "ĊĠĠĠ", "Ġdef", "ĠgetString", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġtemp", "Ġ=", "Ġself", ".", "string", "List", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "string", "List", "Ġ=", "Ġ\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġtemp", "ĊĊ", "Ċ", "class", "ĠError", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġerror", ",", "Ġdetail", ",", "Ġcode", ",", "Ġline", ",", "ĠfileName", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "error", "Ġ=", "Ġerror", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "detail", "Ġ=", "Ġdetail", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "code", "Ġ=", "Ġcode", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "line", "Ġ=", "Ġline", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "file", "Ġ=", "ĠfileName", "ĊĊĠĠĠ", "Ġ#", "ĠDisplays", "Ġerrors", "ĊĠĠĠ", "Ġdef", "Ġdisplay", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġf", "'", "File", "Ġ\"{", "self", ".", "file", "}\",", "Ġline", "Ġ{", "str", "(", "self", ".", "line", ")}\\", "n", "ĠĠ", "Ġ{", "self", ".", "code", "}\\", "n", "{", "self", ".", "error", "}:", "Ġ{", "self", ".", "detail", "}'", "ĊĊ", "Ċ", "#", "ĠRuns", "Ġneeded", "Ġmethods", "Ċ", "def", "Ġrun", "(", "text", "):", "ĊĠĠĠ", "Ġword", "List", "Ġ=", "Ġsplit", "(", "text", ")", "ĊĠĠĠ", "Ġl", "1", "Ġ=", "ĠLex", "er", "(", "text", ")", "ĊĊĠĠĠ", "Ġfor", "Ġword", "Ġin", "Ġword", "List", ":", "ĊĠĠĠĠĠĠĠ", "Ġl", "1", ".", "advance", "()", "ĊĠĠĠĠĠĠĠ", "Ġl", "1", ".", "identify", "()", "ĊĊĠĠĠ", "Ġprint", "(", "l", "1", ".", "display", "All", "())", "ĊĠĠĠ", "Ġtoken", "List", ".", "clear", "()", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 15, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 31, 31, 31, 31, 31, 31, 31, 33, 33, 33, 33, 33, 33, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 45, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 88, 88, 88, 89, 89, 89, 89, 89, 89, 91, 91, 91, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92, 92, 92, 92, 94, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 97, 97, 97, 97, 97, 97, 97, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 102, 102, 102, 102, 104, 104, 104, 104, 104, 104, 104, 104, 105, 105, 105, 105, 105, 105, 105, 106, 106, 106, 106, 106, 106, 106, 106, 106, 108, 108, 108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 109, 110, 110, 110, 110, 110, 110, 110, 111, 111, 111, 111, 111, 111, 111, 112, 112, 112, 114, 115, 115, 115, 115, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 118, 118, 119, 119, 119, 119, 119, 119, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 123, 123, 123, 123, 124, 124, 124, 124, 124, 124, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 127, 128, 128, 128, 128, 128, 129, 129, 129, 129, 129, 129, 130, 130, 130, 130, 130, 130, 130, 130, 131, 131, 131, 131, 131, 131, 131, 131, 131, 133, 133, 133, 133, 133, 133, 133, 134, 134, 134, 134, 134, 134, 135, 135, 135, 135, 135, 135, 137, 137, 137, 137, 137, 137, 137, 137, 137, 138, 138, 138, 138, 138, 138 ]
[ 1, 2, 8, 11, 13, 18, 22, 28, 30, 35, 46, 57, 68, 1, 4, 10, 11, 15, 17, 4, 11, 13, 17, 21, 26, 29, 34, 35, 1, 1, 2, 10, 16, 24, 29, 31, 36, 1, 4, 11, 16, 23, 24, 27, 29, 4, 10, 13, 16, 20, 21, 8, 12, 13, 19, 23, 1, 1, 5, 7, 10, 11, 13, 15, 16, 18, 20, 21, 23, 25, 26, 28, 30, 31, 33, 35, 36, 38, 40, 41, 43, 45, 46, 48, 50, 51, 53, 55, 56, 58, 1, 6, 10, 12, 15, 1, 1, 6, 12, 13, 4, 8, 11, 15, 18, 22, 23, 29, 30, 36, 38, 8, 13, 14, 19, 21, 27, 8, 13, 14, 19, 21, 27, 4, 8, 16, 17, 21, 23, 8, 10, 17, 23, 26, 36, 39, 47, 8, 11, 16, 17, 22, 25, 27, 32, 34, 12, 18, 20, 26, 27, 16, 18, 25, 30, 32, 16, 18, 24, 33, 43, 45, 16, 20, 21, 25, 26, 31, 33, 17, 18, 19, 16, 18, 19, 20, 22, 27, 28, 31, 33, 34, 36, 37, 42, 43, 49, 50, 54, 55, 63, 64, 70, 71, 73, 75, 12, 14, 12, 18, 19, 24, 25, 32, 35, 8, 10, 19, 25, 31, 37, 8, 13, 14, 12, 15, 20, 21, 26, 29, 31, 37, 38, 41, 46, 47, 52, 55, 57, 60, 62, 16, 21, 23, 25, 27, 31, 32, 37, 39, 41, 45, 46, 51, 53, 12, 17, 18, 16, 21, 23, 25, 27, 31, 32, 37, 39, 12, 19, 24, 4, 6, 11, 17, 23, 29, 32, 37, 4, 8, 12, 18, 19, 23, 25, 8, 14, 18, 19, 25, 26, 30, 31, 38, 41, 1, 1, 6, 10, 12, 13, 4, 8, 11, 15, 18, 22, 23, 29, 31, 8, 13, 14, 19, 21, 27, 28, 33, 34, 8, 13, 14, 19, 21, 22, 23, 8, 13, 14, 18, 20, 23, 8, 13, 14, 20, 22, 24, 30, 8, 13, 14, 20, 24, 26, 29, 8, 13, 14, 17, 19, 21, 27, 4, 6, 12, 17, 25, 31, 36, 4, 8, 17, 18, 22, 24, 8, 13, 15, 18, 19, 21, 23, 24, 26, 28, 29, 31, 33, 34, 36, 38, 39, 41, 43, 44, 46, 48, 49, 51, 53, 54, 56, 58, 59, 61, 63, 64, 66, 8, 12, 14, 17, 8, 12, 14, 19, 20, 24, 8, 11, 15, 18, 23, 24, 28, 31, 35, 38, 43, 44, 48, 49, 12, 15, 20, 21, 27, 29, 30, 16, 21, 22, 28, 30, 32, 38, 16, 20, 22, 24, 30, 31, 16, 20, 22, 27, 28, 37, 39, 12, 17, 18, 16, 21, 22, 28, 30, 32, 37, 8, 13, 18, 19, 25, 27, 28, 12, 17, 18, 21, 29, 31, 8, 13, 18, 19, 23, 26, 28, 30, 31, 33, 12, 17, 8, 13, 15, 17, 20, 25, 26, 30, 31, 12, 16, 18, 20, 24, 25, 8, 13, 17, 20, 25, 26, 30, 31, 12, 16, 18, 20, 25, 26, 8, 13, 17, 20, 25, 26, 30, 31, 12, 16, 18, 20, 23, 24, 8, 13, 17, 20, 25, 26, 30, 31, 12, 16, 18, 20, 23, 24, 8, 13, 17, 20, 25, 26, 30, 31, 12, 16, 18, 20, 22, 26, 27, 8, 13, 17, 20, 25, 26, 30, 31, 12, 16, 18, 20, 22, 26, 27, 8, 13, 14, 12, 15, 20, 21, 25, 28, 33, 34, 16, 20, 22, 24, 27, 28, 12, 17, 18, 16, 20, 22, 24, 29, 30, 8, 14, 16, 22, 23, 26, 27, 31, 32, 8, 15, 21, 22, 25, 31, 33, 4, 6, 10, 12, 20, 22, 32, 4, 8, 16, 17, 21, 23, 8, 13, 14, 18, 20, 25, 26, 31, 32, 36, 37, 42, 43, 8, 13, 14, 19, 22, 23, 24, 4, 6, 15, 20, 23, 29, 35, 41, 4, 8, 16, 19, 20, 24, 26, 8, 15, 20, 27, 28, 33, 37, 38, 8, 15, 21, 25, 4, 6, 11, 14, 19, 22, 24, 31, 4, 8, 12, 20, 21, 25, 27, 8, 13, 14, 20, 24, 27, 32, 33, 37, 4, 6, 14, 21, 25, 32, 35, 4, 8, 18, 19, 23, 25, 8, 13, 15, 20, 21, 27, 31, 8, 13, 14, 20, 24, 26, 29, 8, 15, 20, 1, 1, 6, 12, 13, 4, 8, 11, 15, 18, 22, 23, 29, 30, 37, 38, 43, 44, 49, 50, 59, 61, 8, 13, 14, 19, 21, 27, 8, 13, 14, 20, 22, 29, 8, 13, 14, 18, 20, 25, 8, 13, 14, 18, 20, 25, 8, 13, 14, 18, 20, 29, 4, 6, 15, 22, 4, 8, 16, 17, 21, 23, 8, 15, 17, 18, 22, 25, 29, 30, 34, 37, 42, 44, 47, 48, 52, 53, 57, 60, 61, 63, 65, 69, 70, 74, 76, 77, 78, 82, 83, 88, 90, 92, 96, 97, 103, 105, 1, 1, 2, 7, 14, 22, 1, 4, 8, 9, 13, 15, 4, 9, 13, 15, 21, 22, 26, 27, 4, 6, 7, 9, 13, 15, 16, 20, 21, 4, 8, 13, 16, 21, 25, 26, 8, 10, 11, 12, 19, 21, 8, 10, 11, 12, 20, 22, 4, 10, 11, 12, 13, 14, 21, 24, 27, 4, 10, 14, 15, 20, 22 ]
20649decd3ff21b1aa814d0a04180195cac3629b
# loadconc.py - possibly these classes will be added to ajustador/loader.py when ready # -*- coding:utf-8 -*- from __future__ import print_function, division import numpy as np from ajustador import xml, nrd_fitness import glob import os import operator msec_per_sec = 1000 nM_per_uM = 1000 nM_per_mM = 1e6 class trace(object): def __init__(self, molname, x, y, stim_time): molname_parts = molname.split() self.molname = molname_parts[0] self.norm = False if len(molname_parts) > 1: self.units = molname_parts[1] if "%" in self.units: self.norm = True if len(molname_parts) > 2: # strip out any trailing non-numeric characteris self.scale = int("".join([c for c in molname_parts[2] if c.isdigit()])) else: self.scale = 1 else: self.units = "nM" self.scale = 1 if self.units.startswith("m") or self.units.startswith("(m"): yvalue = y * nM_per_mM elif self.units.startswith("u") or self.units.startswith("(u"): yvalue = y * nM_per_uM else: # assume nM (or percent if fret) yvalue = y self.wave = np.rec.fromarrays((x, yvalue), names="x,y") # calculate features: baseline, peaktime, peak value start_index, basal = nrd_fitness.basal(x, yvalue, stim_time) self.exp_basal = basal pt, peak = nrd_fitness.peak(x, yvalue, start_index) self.features = {"basal": basal, "stim_pt": start_index, "peaktime": pt, "peakval": peak} class CSV_conc(object): """Load a series of concentration measurements from a CSV file Each CSV file contains data for one or more molecules: Time time_units, mol_name1 (nM), [mol_name2] read time_units (sec,msec,min allowed) and convert to msec """ def __init__(self, fname, rootname, stim_time, features=[]): import pandas as pd model_num = xml.modelname_to_param(fname, rootname) self.name = os.path.basename(fname)[0 : os.path.basename(fname).rfind(".")] self.injection = model_num self.features = features csv = pd.read_csv(fname, index_col=0) x_head = csv.index.name.split() if len(x_head) > 1: time_units = x_head[-1] if time_units.startswith("sec") or time_units.startswith("(sec"): time_factor = msec_per_sec elif time_units.startswith("min") or time_units.startswith("(min"): time_factor = msec_per_sec * 60 # sec_per_min else: time_factor = 1 print("x column header: {}, time_units: {}, conversion factor: {}".format(x_head, time_units, time_factor)) else: time_factor = 1 x = csv.index.values * time_factor # time values # may want to read units of y value, e.g. allow uM or mM and convert to nM self.waves = {col.split()[0]: trace(col, x, csv[col].values, stim_time) for col in csv.columns} class CSV_conc_set(object): # set of files, each one a CSV_conc object, differing in stim protocol def __init__(self, rootname, stim_time=0, features=[]): self.stim_time = stim_time * msec_per_sec self.features = features if os.path.isdir(rootname): # if directory, look for all csv files dirname = rootname filenames = glob.glob(rootname + "/*.csv") self.name = rootname else: if rootname.endswith(".csv"): # case with single filename specified filenames = [rootname] else: # case with a set of filenames specified, with common "prefix" + variable "suffix" filenames = glob.glob(rootname + "*.csv") dirname = os.path.dirname(rootname) self.name = os.path.basename(rootname) print("CSV_conc_set:", self.name, "dir", dirname, "files", filenames, "stim_start (ms)", self.stim_time) if len(filenames) == 0: print("**************** CSV_conc_set: NO FILES FOUND **************************") csv_list = [CSV_conc(fn, rootname, self.stim_time, features) for fn in filenames] csv_list.sort(key=operator.attrgetter("injection")) self.data = csv_list
[ 40, 2480, 14855, 51, 997, 449, 19698, 3301, 6052, 1118, 545, 3654, 391, 331, 4524, 6725, 52, 4579, 51, 997, 1429, 8768, 222, 40, 8571, 10633, 63, 3330, 50, 61, 8571, 222, 222, 1097, 1176, 9689, 523, 1220, 1489, 100, 1144, 49, 20707, 222, 485, 6610, 641, 2115, 222, 1097, 331, 4524, 6725, 1220, 5604, 49, 329, 5344, 100, 35654, 222, 485, 12542, 222, 485, 2355, 222, 485, 4156, 222, 222, 114, 4237, 100, 481, 100, 4237, 299, 244, 54, 53, 53, 53, 222, 115, 82, 100, 481, 100, 122, 82, 299, 244, 54, 53, 53, 53, 222, 115, 82, 100, 481, 100, 114, 82, 299, 244, 54, 106, 59, 499, 222, 842, 8266, 45, 1491, 731, 303, 684, 1176, 1683, 3232, 803, 49, 20345, 444, 49, 837, 49, 553, 49, 43601, 100, 1021, 731, 310, 20345, 444, 100, 10043, 299, 20345, 444, 51, 3045, 365, 310, 649, 51, 18915, 444, 299, 20345, 444, 100, 10043, 96, 53, 98, 310, 649, 51, 8005, 299, 3208, 310, 434, 2095, 45, 18915, 444, 100, 10043, 46, 868, 244, 54, 63, 343, 649, 51, 9760, 299, 20345, 444, 100, 10043, 96, 54, 98, 343, 434, 5471, 39, 347, 649, 51, 9760, 63, 419, 649, 51, 8005, 299, 2969, 343, 434, 2095, 45, 18915, 444, 100, 10043, 46, 868, 244, 55, 63, 419, 607, 16481, 986, 1364, 19942, 3000, 50, 10157, 5373, 316, 419, 649, 51, 3826, 299, 648, 459, 2316, 2548, 2034, 104, 456, 300, 347, 20345, 444, 100, 10043, 96, 55, 98, 434, 300, 51, 44246, 365, 5310, 343, 832, 63, 419, 649, 51, 3826, 299, 244, 54, 310, 832, 63, 343, 649, 51, 9760, 299, 332, 115, 82, 39, 343, 649, 51, 3826, 299, 244, 54, 310, 434, 649, 51, 9760, 51, 16030, 459, 114, 678, 575, 649, 51, 9760, 51, 16030, 21858, 114, 10320, 343, 553, 872, 299, 553, 338, 329, 82, 100, 481, 100, 114, 82, 310, 4378, 649, 51, 9760, 51, 16030, 459, 122, 678, 575, 649, 51, 9760, 51, 16030, 21858, 122, 10320, 343, 553, 872, 299, 553, 338, 329, 82, 100, 481, 100, 122, 82, 310, 832, 63, 343, 607, 10039, 329, 82, 327, 290, 13755, 434, 315, 2113, 46, 343, 553, 872, 299, 553, 310, 649, 51, 14255, 299, 2115, 51, 4898, 51, 1097, 23694, 1181, 125, 49, 553, 872, 490, 4492, 366, 125, 49, 126, 678, 310, 607, 9226, 5423, 63, 22547, 49, 26163, 1021, 49, 26163, 804, 310, 1496, 100, 1076, 49, 9530, 298, 299, 329, 5344, 100, 35654, 51, 8428, 298, 45, 125, 49, 553, 872, 49, 43601, 100, 1021, 46, 310, 649, 51, 2858, 100, 8428, 298, 299, 9530, 298, 310, 9261, 49, 26163, 299, 329, 5344, 100, 35654, 51, 11042, 45, 125, 49, 553, 872, 49, 1496, 100, 1076, 46, 310, 649, 51, 5977, 299, 3479, 8428, 298, 582, 9530, 298, 49, 332, 46778, 100, 404, 582, 1496, 100, 1076, 49, 332, 11042, 1021, 582, 9261, 49, 332, 11042, 718, 582, 26163, 130, 499, 222, 842, 15663, 100, 14855, 45, 1491, 731, 303, 1547, 3028, 331, 9523, 451, 34832, 3333, 27142, 664, 331, 15663, 822, 303, 11112, 15663, 822, 4326, 727, 456, 1611, 575, 1851, 45769, 63, 416, 3734, 1153, 100, 9760, 49, 20345, 100, 444, 54, 327, 115, 82, 490, 447, 18915, 100, 444, 55, 98, 416, 1511, 1153, 100, 9760, 327, 4237, 49, 114, 4237, 49, 907, 6671, 46, 480, 4511, 391, 364, 4237, 303, 1547, 465, 684, 1176, 1683, 3232, 803, 49, 18260, 49, 3070, 444, 49, 43601, 100, 1021, 49, 5423, 19928, 731, 310, 1220, 13247, 641, 6451, 603, 1573, 100, 1538, 299, 5604, 51, 1184, 444, 100, 471, 100, 772, 45, 10572, 49, 3070, 444, 46, 310, 649, 51, 444, 299, 2355, 51, 1005, 51, 15736, 45, 10572, 5630, 53, 518, 2355, 51, 1005, 51, 15736, 45, 10572, 566, 119, 1828, 5804, 3843, 310, 649, 51, 31894, 299, 1573, 100, 1538, 310, 649, 51, 5977, 299, 5423, 603, 11490, 299, 6451, 51, 870, 100, 4849, 45, 10572, 49, 1671, 100, 770, 66, 53, 46, 310, 837, 100, 1843, 299, 11490, 51, 1076, 51, 444, 51, 3045, 365, 310, 434, 2095, 45, 125, 100, 1843, 46, 868, 244, 54, 63, 343, 1153, 100, 9760, 299, 837, 100, 1843, 6510, 54, 98, 343, 434, 1153, 100, 9760, 51, 16030, 459, 4237, 678, 575, 1153, 100, 9760, 51, 16030, 21858, 4237, 10320, 419, 1153, 100, 9454, 299, 364, 4237, 100, 481, 100, 4237, 343, 4378, 1153, 100, 9760, 51, 16030, 459, 907, 678, 575, 1153, 100, 9760, 51, 16030, 21858, 907, 10320, 419, 1153, 100, 9454, 299, 364, 4237, 100, 481, 100, 4237, 338, 244, 59, 53, 244, 607, 8391, 100, 481, 100, 907, 343, 832, 63, 419, 1153, 100, 9454, 299, 244, 54, 343, 1489, 459, 125, 2656, 3353, 63, 6680, 1153, 100, 9760, 63, 6680, 11781, 10384, 63, 16669, 1664, 45, 125, 100, 1843, 49, 1153, 100, 9760, 49, 1153, 100, 9454, 509, 310, 832, 63, 343, 1153, 100, 9454, 299, 244, 54, 310, 837, 299, 11490, 51, 1076, 51, 2857, 338, 1153, 100, 9454, 244, 607, 1153, 2102, 310, 607, 1648, 2660, 391, 1511, 10058, 451, 553, 804, 49, 503, 51, 108, 51, 2625, 1064, 82, 575, 364, 82, 480, 4511, 391, 329, 82, 310, 649, 51, 36904, 299, 320, 770, 51, 3045, 8577, 53, 2805, 8266, 45, 770, 49, 837, 49, 11490, 96, 770, 1015, 2857, 49, 43601, 100, 1021, 46, 456, 956, 347, 11490, 51, 6173, 130, 499, 222, 842, 15663, 100, 14855, 100, 489, 45, 1491, 731, 303, 607, 758, 451, 2293, 49, 2531, 1611, 331, 15663, 100, 14855, 1319, 49, 3211, 318, 347, 43601, 7088, 303, 684, 1176, 1683, 3232, 803, 49, 3070, 444, 49, 43601, 100, 1021, 66, 53, 49, 5423, 19928, 731, 310, 649, 51, 46778, 100, 1021, 299, 43601, 100, 1021, 338, 364, 4237, 100, 481, 100, 4237, 310, 649, 51, 5977, 299, 5423, 310, 434, 2355, 51, 1005, 51, 34241, 45, 2405, 444, 731, 244, 607, 434, 3378, 49, 2803, 456, 1187, 11490, 2293, 343, 24786, 299, 3070, 444, 343, 26801, 299, 12542, 51, 13351, 45, 2405, 444, 494, 332, 11750, 4849, 678, 343, 649, 51, 444, 299, 3070, 444, 310, 832, 63, 343, 434, 3070, 444, 51, 20677, 5804, 4849, 10320, 419, 607, 1152, 642, 4005, 4891, 3205, 419, 26801, 299, 447, 2405, 444, 98, 343, 832, 63, 419, 607, 1152, 642, 331, 758, 451, 26801, 3205, 49, 642, 4959, 332, 4271, 39, 494, 2702, 332, 12440, 39, 419, 26801, 299, 12542, 51, 13351, 45, 2405, 444, 494, 39356, 4849, 678, 343, 24786, 299, 2355, 51, 1005, 51, 7792, 45, 2405, 444, 46, 343, 649, 51, 444, 299, 2355, 51, 1005, 51, 15736, 45, 2405, 444, 46, 310, 1489, 459, 17819, 100, 14855, 100, 489, 9398, 649, 51, 444, 49, 332, 1537, 411, 24786, 49, 332, 2558, 411, 26801, 49, 332, 46778, 100, 1384, 327, 893, 5742, 649, 51, 46778, 100, 1021, 46, 310, 434, 2095, 45, 34603, 46, 630, 244, 53, 63, 343, 1489, 459, 1011, 15663, 100, 14855, 100, 489, 63, 4452, 10961, 88, 21425, 6144, 38308, 47, 678, 603, 11490, 100, 687, 299, 447, 17819, 100, 14855, 45, 3379, 49, 3070, 444, 49, 649, 51, 46778, 100, 1021, 49, 5423, 46, 456, 2788, 347, 26801, 98, 310, 11490, 100, 687, 51, 3349, 45, 697, 66, 3004, 51, 2456, 18269, 459, 31894, 2152, 310, 649, 51, 624, 299, 11490, 100, 687, 222 ]
[ "#", "Ġload", "conc", ".", "py", "Ġ-", "Ġpossibly", "Ġthese", "Ġclasses", "Ġwill", "Ġbe", "Ġadded", "Ġto", "Ġa", "just", "ador", "/", "loader", ".", "py", "Ġwhen", "Ġready", "Ċ", "#", "Ġ-*-", "Ġcoding", ":", "utf", "-", "8", "Ġ-*-", "Ċ", "Ċ", "from", "Ġ__", "future", "__", "Ġimport", "Ġprint", "_", "function", ",", "Ġdivision", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "from", "Ġa", "just", "ador", "Ġimport", "Ġxml", ",", "Ġn", "rd", "_", "fitness", "Ċ", "import", "Ġglob", "Ċ", "import", "Ġos", "Ċ", "import", "Ġoperator", "Ċ", "Ċ", "m", "sec", "_", "per", "_", "sec", "Ġ=", "Ġ", "1", "0", "0", "0", "Ċ", "n", "M", "_", "per", "_", "u", "M", "Ġ=", "Ġ", "1", "0", "0", "0", "Ċ", "n", "M", "_", "per", "_", "m", "M", "Ġ=", "Ġ", "1", "e", "6", "ĊĊ", "Ċ", "class", "Ġtrace", "(", "object", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġmol", "name", ",", "Ġx", ",", "Ġy", ",", "Ġstim", "_", "time", "):", "ĊĠĠĠĠĠĠĠ", "Ġmol", "name", "_", "parts", "Ġ=", "Ġmol", "name", ".", "split", "()", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "mol", "name", "Ġ=", "Ġmol", "name", "_", "parts", "[", "0", "]", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "norm", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "mol", "name", "_", "parts", ")", "Ġ>", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "units", "Ġ=", "Ġmol", "name", "_", "parts", "[", "1", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġ\"%", "\"", "Ġin", "Ġself", ".", "units", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "norm", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "mol", "name", "_", "parts", ")", "Ġ>", "Ġ", "2", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġstrip", "Ġout", "Ġany", "Ġtrailing", "Ġnon", "-", "numeric", "Ġcharacter", "is", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "scale", "Ġ=", "Ġint", "(\"", "\".", "join", "([", "c", "Ġfor", "Ġc", "Ġin", "Ġmol", "name", "_", "parts", "[", "2", "]", "Ġif", "Ġc", ".", "isdigit", "()", "]))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "scale", "Ġ=", "Ġ", "1", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "units", "Ġ=", "Ġ\"", "n", "M", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "scale", "Ġ=", "Ġ", "1", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "units", ".", "startswith", "(\"", "m", "\")", "Ġor", "Ġself", ".", "units", ".", "startswith", "(\"(", "m", "\"):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġy", "value", "Ġ=", "Ġy", "Ġ*", "Ġn", "M", "_", "per", "_", "m", "M", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġself", ".", "units", ".", "startswith", "(\"", "u", "\")", "Ġor", "Ġself", ".", "units", ".", "startswith", "(\"(", "u", "\"):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġy", "value", "Ġ=", "Ġy", "Ġ*", "Ġn", "M", "_", "per", "_", "u", "M", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġassume", "Ġn", "M", "Ġ(", "or", "Ġpercent", "Ġif", "Ġf", "ret", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġy", "value", "Ġ=", "Ġy", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "wave", "Ġ=", "Ġnp", ".", "rec", ".", "from", "arrays", "((", "x", ",", "Ġy", "value", "),", "Ġnames", "=\"", "x", ",", "y", "\")", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġcalculate", "Ġfeatures", ":", "Ġbaseline", ",", "Ġpeak", "time", ",", "Ġpeak", "Ġvalue", "ĊĠĠĠĠĠĠĠ", "Ġstart", "_", "index", ",", "Ġbas", "al", "Ġ=", "Ġn", "rd", "_", "fitness", ".", "bas", "al", "(", "x", ",", "Ġy", "value", ",", "Ġstim", "_", "time", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "exp", "_", "bas", "al", "Ġ=", "Ġbas", "al", "ĊĠĠĠĠĠĠĠ", "Ġpt", ",", "Ġpeak", "Ġ=", "Ġn", "rd", "_", "fitness", ".", "peak", "(", "x", ",", "Ġy", "value", ",", "Ġstart", "_", "index", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "features", "Ġ=", "Ġ{\"", "bas", "al", "\":", "Ġbas", "al", ",", "Ġ\"", "stim", "_", "pt", "\":", "Ġstart", "_", "index", ",", "Ġ\"", "peak", "time", "\":", "Ġpt", ",", "Ġ\"", "peak", "val", "\":", "Ġpeak", "}", "ĊĊ", "Ċ", "class", "ĠCSV", "_", "conc", "(", "object", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Load", "Ġa", "Ġseries", "Ġof", "Ġconcent", "ration", "Ġmeasurements", "Ġfrom", "Ġa", "ĠCSV", "Ġfile", "ĊĠĠĠ", "ĠEach", "ĠCSV", "Ġfile", "Ġcontains", "Ġdata", "Ġfor", "Ġone", "Ġor", "Ġmore", "Ġmolecules", ":", "ĊĠĠĠĠĠ", "ĠTime", "Ġtime", "_", "units", ",", "Ġmol", "_", "name", "1", "Ġ(", "n", "M", "),", "Ġ[", "mol", "_", "name", "2", "]", "ĊĠĠĠĠĠ", "Ġread", "Ġtime", "_", "units", "Ġ(", "sec", ",", "m", "sec", ",", "min", "Ġallowed", ")", "Ġand", "Ġconvert", "Ġto", "Ġm", "sec", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġfname", ",", "Ġroot", "name", ",", "Ġstim", "_", "time", ",", "Ġfeatures", "=[]", "):", "ĊĠĠĠĠĠĠĠ", "Ġimport", "Ġpandas", "Ġas", "Ġpd", "ĊĊĠĠĠĠĠĠĠ", "Ġmodel", "_", "num", "Ġ=", "Ġxml", ".", "model", "name", "_", "to", "_", "param", "(", "fname", ",", "Ġroot", "name", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "name", "Ġ=", "Ġos", ".", "path", ".", "basename", "(", "fname", ")[", "0", "Ġ:", "Ġos", ".", "path", ".", "basename", "(", "fname", ").", "r", "find", "(\".", "\")]", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "injection", "Ġ=", "Ġmodel", "_", "num", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "features", "Ġ=", "Ġfeatures", "ĊĊĠĠĠĠĠĠĠ", "Ġcsv", "Ġ=", "Ġpd", ".", "read", "_", "csv", "(", "fname", ",", "Ġindex", "_", "col", "=", "0", ")", "ĊĠĠĠĠĠĠĠ", "Ġx", "_", "head", "Ġ=", "Ġcsv", ".", "index", ".", "name", ".", "split", "()", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "x", "_", "head", ")", "Ġ>", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtime", "_", "units", "Ġ=", "Ġx", "_", "head", "[-", "1", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġtime", "_", "units", ".", "startswith", "(\"", "sec", "\")", "Ġor", "Ġtime", "_", "units", ".", "startswith", "(\"(", "sec", "\"):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtime", "_", "factor", "Ġ=", "Ġm", "sec", "_", "per", "_", "sec", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġtime", "_", "units", ".", "startswith", "(\"", "min", "\")", "Ġor", "Ġtime", "_", "units", ".", "startswith", "(\"(", "min", "\"):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtime", "_", "factor", "Ġ=", "Ġm", "sec", "_", "per", "_", "sec", "Ġ*", "Ġ", "6", "0", "Ġ", "Ġ#", "Ġsec", "_", "per", "_", "min", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtime", "_", "factor", "Ġ=", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "x", "Ġcolumn", "Ġheader", ":", "Ġ{},", "Ġtime", "_", "units", ":", "Ġ{},", "Ġconversion", "Ġfactor", ":", "Ġ{}\".", "format", "(", "x", "_", "head", ",", "Ġtime", "_", "units", ",", "Ġtime", "_", "factor", "))", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtime", "_", "factor", "Ġ=", "Ġ", "1", "ĊĠĠĠĠĠĠĠ", "Ġx", "Ġ=", "Ġcsv", ".", "index", ".", "values", "Ġ*", "Ġtime", "_", "factor", "Ġ", "Ġ#", "Ġtime", "Ġvalues", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġmay", "Ġwant", "Ġto", "Ġread", "Ġunits", "Ġof", "Ġy", "Ġvalue", ",", "Ġe", ".", "g", ".", "Ġallow", "Ġu", "M", "Ġor", "Ġm", "M", "Ġand", "Ġconvert", "Ġto", "Ġn", "M", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "waves", "Ġ=", "Ġ{", "col", ".", "split", "()[", "0", "]:", "Ġtrace", "(", "col", ",", "Ġx", ",", "Ġcsv", "[", "col", "].", "values", ",", "Ġstim", "_", "time", ")", "Ġfor", "Ġcol", "Ġin", "Ġcsv", ".", "columns", "}", "ĊĊ", "Ċ", "class", "ĠCSV", "_", "conc", "_", "set", "(", "object", "):", "ĊĠĠĠ", "Ġ#", "Ġset", "Ġof", "Ġfiles", ",", "Ġeach", "Ġone", "Ġa", "ĠCSV", "_", "conc", "Ġobject", ",", "Ġdiffer", "ing", "Ġin", "Ġstim", "Ġprotocol", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġroot", "name", ",", "Ġstim", "_", "time", "=", "0", ",", "Ġfeatures", "=[]", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "stim", "_", "time", "Ġ=", "Ġstim", "_", "time", "Ġ*", "Ġm", "sec", "_", "per", "_", "sec", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "features", "Ġ=", "Ġfeatures", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġos", ".", "path", ".", "isdir", "(", "root", "name", "):", "Ġ", "Ġ#", "Ġif", "Ġdirectory", ",", "Ġlook", "Ġfor", "Ġall", "Ġcsv", "Ġfiles", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdirname", "Ġ=", "Ġroot", "name", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfilenames", "Ġ=", "Ġglob", ".", "glob", "(", "root", "name", "Ġ+", "Ġ\"", "/*.", "csv", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "name", "Ġ=", "Ġroot", "name", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġroot", "name", ".", "endswith", "(\".", "csv", "\"):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġcase", "Ġwith", "Ġsingle", "Ġfilename", "Ġspecified", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġfilenames", "Ġ=", "Ġ[", "root", "name", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġcase", "Ġwith", "Ġa", "Ġset", "Ġof", "Ġfilenames", "Ġspecified", ",", "Ġwith", "Ġcommon", "Ġ\"", "prefix", "\"", "Ġ+", "Ġvariable", "Ġ\"", "suffix", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġfilenames", "Ġ=", "Ġglob", ".", "glob", "(", "root", "name", "Ġ+", "Ġ\"*.", "csv", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdirname", "Ġ=", "Ġos", ".", "path", ".", "dirname", "(", "root", "name", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "name", "Ġ=", "Ġos", ".", "path", ".", "basename", "(", "root", "name", ")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "CSV", "_", "conc", "_", "set", ":\",", "Ġself", ".", "name", ",", "Ġ\"", "dir", "\",", "Ġdirname", ",", "Ġ\"", "files", "\",", "Ġfilenames", ",", "Ġ\"", "stim", "_", "start", "Ġ(", "ms", ")\",", "Ġself", ".", "stim", "_", "time", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "filenames", ")", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "****************", "ĠCSV", "_", "conc", "_", "set", ":", "ĠNO", "ĠFILE", "S", "ĠFO", "UND", "Ġ*************************", "*", "\")", "ĊĊĠĠĠĠĠĠĠ", "Ġcsv", "_", "list", "Ġ=", "Ġ[", "CSV", "_", "conc", "(", "fn", ",", "Ġroot", "name", ",", "Ġself", ".", "stim", "_", "time", ",", "Ġfeatures", ")", "Ġfor", "Ġfn", "Ġin", "Ġfilenames", "]", "ĊĠĠĠĠĠĠĠ", "Ġcsv", "_", "list", ".", "sort", "(", "key", "=", "operator", ".", "attr", "getter", "(\"", "injection", "\"))", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "data", "Ġ=", "Ġcsv", "_", "list", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 15, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 47, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 72, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 91, 91, 91, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 105, 105, 105, 105, 105, 105, 105, 105 ]
[ 1, 2, 7, 11, 12, 14, 16, 25, 31, 39, 44, 47, 53, 56, 58, 62, 66, 67, 73, 74, 76, 81, 87, 1, 2, 6, 13, 14, 17, 18, 19, 23, 1, 1, 5, 8, 14, 16, 23, 29, 30, 38, 39, 48, 1, 7, 13, 16, 19, 1, 5, 7, 11, 15, 22, 26, 27, 29, 31, 32, 39, 1, 7, 12, 1, 7, 10, 1, 7, 16, 1, 1, 2, 5, 6, 9, 10, 13, 15, 16, 17, 18, 19, 20, 1, 2, 3, 4, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17, 1, 2, 3, 4, 7, 8, 9, 10, 12, 13, 14, 15, 16, 1, 1, 6, 12, 13, 19, 21, 4, 8, 11, 15, 18, 22, 23, 27, 31, 32, 34, 35, 37, 38, 43, 44, 48, 50, 8, 12, 16, 17, 22, 24, 28, 32, 33, 38, 40, 8, 13, 14, 17, 21, 23, 27, 31, 32, 37, 38, 39, 40, 8, 13, 14, 18, 20, 26, 8, 11, 15, 16, 19, 23, 24, 29, 30, 32, 33, 34, 35, 12, 17, 18, 23, 25, 29, 33, 34, 39, 40, 41, 42, 12, 15, 18, 19, 22, 27, 28, 33, 34, 16, 21, 22, 26, 28, 33, 12, 15, 19, 20, 23, 27, 28, 33, 34, 36, 37, 38, 39, 16, 18, 24, 28, 32, 41, 45, 46, 53, 63, 65, 16, 21, 22, 27, 29, 33, 35, 37, 41, 43, 44, 48, 50, 53, 57, 61, 62, 67, 68, 69, 70, 73, 75, 76, 83, 85, 88, 12, 17, 18, 16, 21, 22, 27, 29, 30, 31, 8, 13, 14, 12, 17, 18, 23, 25, 27, 28, 29, 30, 12, 17, 18, 23, 25, 26, 27, 8, 11, 16, 17, 22, 23, 33, 35, 36, 38, 41, 46, 47, 52, 53, 63, 66, 67, 70, 12, 14, 19, 21, 23, 25, 27, 28, 29, 32, 33, 34, 35, 8, 13, 18, 19, 24, 25, 35, 37, 38, 40, 43, 48, 49, 54, 55, 65, 68, 69, 72, 12, 14, 19, 21, 23, 25, 27, 28, 29, 32, 33, 34, 35, 8, 13, 14, 12, 14, 21, 23, 24, 26, 28, 36, 39, 41, 44, 45, 12, 14, 19, 21, 23, 8, 13, 14, 18, 20, 23, 24, 27, 28, 32, 38, 40, 41, 42, 44, 49, 51, 57, 59, 60, 61, 62, 64, 8, 10, 20, 29, 30, 39, 40, 45, 49, 50, 55, 61, 8, 14, 15, 20, 21, 25, 27, 29, 31, 33, 34, 41, 42, 45, 47, 48, 49, 50, 52, 57, 58, 63, 64, 68, 69, 8, 13, 14, 17, 18, 21, 23, 25, 29, 31, 8, 11, 12, 17, 19, 21, 23, 24, 31, 32, 36, 37, 38, 39, 41, 46, 47, 53, 54, 59, 60, 8, 13, 14, 22, 24, 27, 30, 32, 34, 38, 40, 41, 43, 47, 48, 50, 52, 58, 59, 64, 65, 67, 71, 75, 77, 80, 81, 83, 87, 90, 92, 97, 98, 1, 1, 6, 10, 11, 15, 16, 22, 24, 4, 8, 12, 14, 21, 24, 32, 38, 51, 56, 58, 62, 67, 4, 9, 13, 18, 27, 32, 36, 40, 43, 48, 58, 59, 6, 11, 16, 17, 22, 23, 27, 28, 32, 33, 35, 36, 37, 39, 41, 44, 45, 49, 50, 51, 6, 11, 16, 17, 22, 24, 27, 28, 29, 32, 33, 36, 44, 45, 49, 57, 60, 62, 65, 4, 8, 4, 8, 11, 15, 18, 22, 23, 29, 30, 35, 39, 40, 45, 46, 50, 51, 60, 63, 65, 8, 15, 22, 25, 28, 8, 14, 15, 18, 20, 24, 25, 30, 34, 35, 37, 38, 43, 44, 49, 50, 55, 59, 60, 8, 13, 14, 18, 20, 23, 24, 28, 29, 37, 38, 43, 45, 46, 48, 51, 52, 56, 57, 65, 66, 71, 73, 74, 78, 81, 84, 8, 13, 14, 23, 25, 31, 32, 35, 8, 13, 14, 22, 24, 33, 8, 12, 14, 17, 18, 22, 23, 26, 27, 32, 33, 39, 40, 43, 44, 45, 46, 8, 10, 11, 15, 17, 21, 22, 27, 28, 32, 33, 38, 40, 8, 11, 15, 16, 17, 18, 22, 23, 25, 26, 27, 28, 12, 17, 18, 23, 25, 27, 28, 32, 34, 35, 36, 12, 15, 20, 21, 26, 27, 37, 39, 42, 44, 47, 52, 53, 58, 59, 69, 72, 75, 78, 16, 21, 22, 28, 30, 32, 35, 36, 39, 40, 43, 12, 17, 22, 23, 28, 29, 39, 41, 44, 46, 49, 54, 55, 60, 61, 71, 74, 77, 80, 16, 21, 22, 28, 30, 32, 35, 36, 39, 40, 43, 45, 46, 47, 48, 49, 51, 55, 56, 59, 60, 63, 12, 17, 18, 16, 21, 22, 28, 30, 31, 32, 12, 18, 20, 21, 28, 35, 36, 40, 45, 46, 51, 52, 56, 67, 74, 75, 80, 86, 87, 88, 89, 93, 94, 99, 100, 105, 106, 111, 112, 118, 120, 8, 13, 14, 12, 17, 18, 24, 26, 27, 28, 8, 10, 12, 16, 17, 22, 23, 29, 31, 36, 37, 43, 44, 46, 51, 58, 8, 10, 14, 19, 22, 27, 33, 36, 38, 44, 45, 47, 48, 49, 50, 56, 58, 59, 62, 64, 65, 69, 77, 80, 82, 83, 8, 13, 14, 19, 21, 23, 26, 27, 32, 35, 36, 38, 44, 45, 48, 49, 51, 52, 56, 57, 60, 62, 68, 69, 74, 75, 79, 80, 84, 88, 91, 95, 96, 103, 104, 1, 1, 6, 10, 11, 15, 16, 19, 20, 26, 28, 4, 6, 10, 13, 19, 20, 25, 29, 31, 35, 36, 40, 47, 48, 55, 58, 61, 66, 75, 4, 8, 11, 15, 18, 22, 23, 28, 32, 33, 38, 39, 43, 44, 45, 46, 55, 58, 60, 8, 13, 14, 18, 19, 23, 25, 30, 31, 35, 37, 39, 42, 43, 46, 47, 50, 8, 13, 14, 22, 24, 33, 8, 11, 14, 15, 19, 20, 25, 26, 30, 34, 36, 37, 39, 42, 52, 53, 58, 62, 66, 70, 76, 12, 20, 22, 27, 31, 12, 22, 24, 29, 30, 34, 35, 39, 43, 45, 47, 50, 53, 55, 12, 17, 18, 22, 24, 29, 33, 8, 13, 14, 12, 15, 20, 24, 25, 33, 36, 39, 42, 16, 18, 23, 28, 35, 44, 54, 16, 26, 28, 30, 34, 38, 39, 12, 17, 18, 16, 18, 23, 28, 30, 34, 37, 47, 57, 58, 63, 70, 72, 78, 79, 81, 90, 92, 98, 99, 16, 26, 28, 33, 34, 38, 39, 43, 47, 49, 53, 56, 58, 12, 20, 22, 25, 26, 30, 31, 38, 39, 43, 47, 48, 12, 17, 18, 22, 24, 27, 28, 32, 33, 41, 42, 46, 50, 51, 8, 14, 16, 19, 20, 24, 25, 28, 31, 36, 37, 41, 42, 44, 47, 49, 57, 58, 60, 65, 67, 77, 78, 80, 84, 85, 90, 92, 94, 97, 102, 103, 107, 108, 112, 113, 8, 11, 15, 16, 25, 26, 29, 30, 31, 32, 12, 18, 20, 36, 40, 41, 45, 46, 49, 50, 53, 58, 59, 62, 65, 91, 92, 94, 8, 12, 13, 17, 19, 21, 24, 25, 29, 30, 32, 33, 38, 42, 43, 48, 49, 53, 54, 58, 59, 68, 69, 73, 76, 79, 89, 90, 8, 12, 13, 17, 18, 22, 23, 26, 27, 35, 36, 40, 46, 48, 57, 60, 8, 13, 14, 18, 20, 24, 25, 29 ]
bb2c684fd5b962c97c033d4b4c2027d52b7371fd
import voldemort import time authorStore = voldemort.StoreClient("authorStore", [{"0", 6666}]) stack = [] components = [] index = 1 # Implementation of the Tarjan algorithm for the detection of strongly connected components. # Function collects all authors in the database and outputs them as strongly connected components. def tarjan(): timer = time.time start = timer() voldemortResult = authorStore.get("_authors") allAuthors = voldemortResult[0][0] nodes = {} for author in allAuthors.get("content"): nodeKey = str(author) nodeValue = [authorStore.get(nodeKey)[0][0], -1, -1, False] # node = Liste aus den Autorendaten, index(int), lowlink(int), onStack(boolean) nodes[nodeKey] = nodeValue for nodeKey in nodes: node = nodes.get(nodeKey) if node[1] == -1: strongconnect(node, nodes) end = timer() for scc in components: print("==> NEUE KOMPONENTE") for node in scc: print("Index: " + str(node[1]) + ", Lowlink: " + str(node[2]) + ", Name: " + node[0].get("name")) print("Insgesamt sind es " + str(len(components)) + " Komponenten") print("Laufzeit: " + str(end - start) + " Sekunden") # This method connects every node in the graph and builds, if applicable, a strongly connected component out of them. def strongconnect(node, allNodes): global index node[1] = index node[2] = index index += 1 stack.append(node) node[3] = True for kanteKey in node[0].get("friends"): kanteNode = allNodes.get(str(kanteKey)) if kanteNode[1] == -1: strongconnect(kanteNode, allNodes) node[2] = min(node[2], kanteNode[2]) elif kanteNode[3] == True: node[2] = min(node[2], kanteNode[1]) if node[1] == node[2]: scc = [] prevNode = None while prevNode != node: prevNode = stack.pop() prevNode[3] = False scc.append(prevNode) components.append(scc) tarjan()
[ 485, 3937, 13235, 392, 222, 485, 1153, 222, 222, 2133, 2796, 299, 3937, 13235, 392, 51, 2796, 1503, 459, 2133, 2796, 411, 28288, 53, 411, 244, 59, 59, 59, 59, 130, 1156, 222, 3056, 299, 1627, 222, 3545, 299, 1627, 222, 1076, 299, 244, 54, 499, 222, 40, 19977, 451, 341, 47571, 18605, 8274, 456, 341, 13926, 451, 33893, 9485, 6361, 51, 222, 40, 4564, 7922, 120, 1187, 14656, 347, 341, 3520, 480, 10176, 3049, 641, 33893, 9485, 6361, 51, 222, 610, 13572, 18605, 2284, 303, 8764, 299, 1153, 51, 1021, 303, 1496, 299, 8764, 365, 303, 3937, 13235, 392, 1413, 299, 4096, 2796, 51, 390, 14719, 17589, 678, 303, 1187, 36330, 299, 3937, 13235, 392, 1413, 96, 53, 1697, 53, 98, 303, 5193, 299, 2172, 303, 456, 4096, 347, 1187, 36330, 51, 390, 459, 1304, 10320, 310, 1560, 971, 299, 615, 45, 2133, 46, 310, 1560, 899, 299, 447, 2133, 2796, 51, 390, 45, 1271, 971, 5630, 53, 1697, 53, 636, 449, 54, 49, 449, 54, 49, 3208, 98, 310, 607, 1560, 299, 1701, 106, 11374, 5554, 16338, 705, 1462, 17320, 49, 1671, 45, 429, 490, 7487, 1222, 45, 429, 490, 563, 3131, 45, 4412, 46, 310, 5193, 96, 1271, 971, 98, 299, 1560, 899, 303, 456, 1560, 971, 347, 5193, 63, 310, 1560, 299, 5193, 51, 390, 45, 1271, 971, 46, 310, 434, 1560, 96, 54, 98, 630, 449, 54, 63, 343, 12119, 3532, 45, 1271, 49, 5193, 46, 303, 962, 299, 8764, 365, 303, 456, 328, 1172, 347, 6361, 63, 310, 1489, 459, 30213, 8949, 2018, 1242, 14934, 15268, 74, 678, 310, 456, 1560, 347, 328, 1172, 63, 343, 1489, 459, 1301, 63, 332, 494, 615, 45, 1271, 96, 54, 1156, 494, 3021, 20346, 1222, 63, 332, 494, 615, 45, 1271, 96, 55, 1156, 494, 3021, 3286, 63, 332, 494, 1560, 96, 53, 1015, 390, 459, 444, 2152, 303, 1489, 459, 6916, 3859, 22562, 21224, 2834, 332, 494, 615, 45, 1688, 45, 3545, 509, 494, 332, 1242, 611, 996, 291, 678, 303, 1489, 459, 81, 33577, 30666, 63, 332, 494, 615, 45, 435, 449, 1496, 46, 494, 332, 2171, 112, 45168, 678, 499, 222, 40, 1369, 1431, 37311, 3659, 1560, 347, 341, 4023, 480, 13968, 49, 434, 4568, 49, 331, 33893, 9485, 2595, 986, 451, 3049, 51, 222, 610, 12119, 3532, 45, 1271, 49, 1187, 5919, 731, 303, 3671, 1671, 303, 1560, 96, 54, 98, 299, 1671, 303, 1560, 96, 55, 98, 299, 1671, 303, 1671, 1475, 244, 54, 303, 4154, 51, 1713, 45, 1271, 46, 303, 1560, 96, 56, 98, 299, 2969, 303, 456, 851, 6850, 971, 347, 1560, 96, 53, 1015, 390, 459, 26746, 10320, 310, 851, 6850, 1230, 299, 1187, 5919, 51, 390, 45, 484, 45, 112, 6850, 971, 509, 310, 434, 851, 6850, 1230, 96, 54, 98, 630, 449, 54, 63, 343, 12119, 3532, 45, 112, 6850, 1230, 49, 1187, 5919, 46, 343, 1560, 96, 55, 98, 299, 1865, 45, 1271, 96, 55, 636, 851, 6850, 1230, 96, 55, 1156, 310, 4378, 851, 6850, 1230, 96, 56, 98, 630, 2969, 63, 343, 1560, 96, 55, 98, 299, 1865, 45, 1271, 96, 55, 636, 851, 6850, 1230, 96, 54, 1156, 303, 434, 1560, 96, 54, 98, 630, 1560, 96, 55, 2805, 310, 328, 1172, 299, 1627, 310, 7329, 1230, 299, 1686, 310, 2236, 7329, 1230, 882, 1560, 63, 343, 7329, 1230, 299, 4154, 51, 3254, 365, 343, 7329, 1230, 96, 56, 98, 299, 3208, 343, 328, 1172, 51, 1713, 45, 5599, 1230, 46, 310, 6361, 51, 1713, 45, 24327, 46, 499, 222, 5384, 18605, 365, 222 ]
[ "import", "Ġvol", "dem", "ort", "Ċ", "import", "Ġtime", "Ċ", "Ċ", "author", "Store", "Ġ=", "Ġvol", "dem", "ort", ".", "Store", "Client", "(\"", "author", "Store", "\",", "Ġ[{\"", "0", "\",", "Ġ", "6", "6", "6", "6", "}", "])", "Ċ", "stack", "Ġ=", "Ġ[]", "Ċ", "components", "Ġ=", "Ġ[]", "Ċ", "index", "Ġ=", "Ġ", "1", "ĊĊ", "Ċ", "#", "ĠImplementation", "Ġof", "Ġthe", "ĠTar", "jan", "Ġalgorithm", "Ġfor", "Ġthe", "Ġdetection", "Ġof", "Ġstrongly", "Ġconnected", "Ġcomponents", ".", "Ċ", "#", "ĠFunction", "Ġcollect", "s", "Ġall", "Ġauthors", "Ġin", "Ġthe", "Ġdatabase", "Ġand", "Ġoutputs", "Ġthem", "Ġas", "Ġstrongly", "Ġconnected", "Ġcomponents", ".", "Ċ", "def", "Ġtar", "jan", "():", "ĊĠĠĠ", "Ġtimer", "Ġ=", "Ġtime", ".", "time", "ĊĠĠĠ", "Ġstart", "Ġ=", "Ġtimer", "()", "ĊĠĠĠ", "Ġvol", "dem", "ort", "Result", "Ġ=", "Ġauthor", "Store", ".", "get", "(\"_", "authors", "\")", "ĊĠĠĠ", "Ġall", "Authors", "Ġ=", "Ġvol", "dem", "ort", "Result", "[", "0", "][", "0", "]", "ĊĠĠĠ", "Ġnodes", "Ġ=", "Ġ{}", "ĊĠĠĠ", "Ġfor", "Ġauthor", "Ġin", "Ġall", "Authors", ".", "get", "(\"", "content", "\"):", "ĊĠĠĠĠĠĠĠ", "Ġnode", "Key", "Ġ=", "Ġstr", "(", "author", ")", "ĊĠĠĠĠĠĠĠ", "Ġnode", "Value", "Ġ=", "Ġ[", "author", "Store", ".", "get", "(", "node", "Key", ")[", "0", "][", "0", "],", "Ġ-", "1", ",", "Ġ-", "1", ",", "ĠFalse", "]", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġnode", "Ġ=", "ĠList", "e", "Ġaus", "Ġden", "ĠAut", "ore", "nd", "aten", ",", "Ġindex", "(", "int", "),", "Ġlow", "link", "(", "int", "),", "Ġon", "Stack", "(", "boolean", ")", "ĊĠĠĠĠĠĠĠ", "Ġnodes", "[", "node", "Key", "]", "Ġ=", "Ġnode", "Value", "ĊĠĠĠ", "Ġfor", "Ġnode", "Key", "Ġin", "Ġnodes", ":", "ĊĠĠĠĠĠĠĠ", "Ġnode", "Ġ=", "Ġnodes", ".", "get", "(", "node", "Key", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnode", "[", "1", "]", "Ġ==", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġstrong", "connect", "(", "node", ",", "Ġnodes", ")", "ĊĠĠĠ", "Ġend", "Ġ=", "Ġtimer", "()", "ĊĠĠĠ", "Ġfor", "Ġs", "cc", "Ġin", "Ġcomponents", ":", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "==>", "ĠNE", "UE", "ĠK", "OMP", "ONENT", "E", "\")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġnode", "Ġin", "Ġs", "cc", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "Index", ":", "Ġ\"", "Ġ+", "Ġstr", "(", "node", "[", "1", "])", "Ġ+", "Ġ\",", "ĠLow", "link", ":", "Ġ\"", "Ġ+", "Ġstr", "(", "node", "[", "2", "])", "Ġ+", "Ġ\",", "ĠName", ":", "Ġ\"", "Ġ+", "Ġnode", "[", "0", "].", "get", "(\"", "name", "\"))", "ĊĠĠĠ", "Ġprint", "(\"", "Ins", "ges", "amt", "Ġsind", "Ġes", "Ġ\"", "Ġ+", "Ġstr", "(", "len", "(", "components", "))", "Ġ+", "Ġ\"", "ĠK", "omp", "onent", "en", "\")", "ĊĠĠĠ", "Ġprint", "(\"", "L", "auf", "zeit", ":", "Ġ\"", "Ġ+", "Ġstr", "(", "end", "Ġ-", "Ġstart", ")", "Ġ+", "Ġ\"", "ĠSe", "k", "unden", "\")", "ĊĊ", "Ċ", "#", "ĠThis", "Ġmethod", "Ġconnects", "Ġevery", "Ġnode", "Ġin", "Ġthe", "Ġgraph", "Ġand", "Ġbuilds", ",", "Ġif", "Ġapplicable", ",", "Ġa", "Ġstrongly", "Ġconnected", "Ġcomponent", "Ġout", "Ġof", "Ġthem", ".", "Ċ", "def", "Ġstrong", "connect", "(", "node", ",", "Ġall", "Nodes", "):", "ĊĠĠĠ", "Ġglobal", "Ġindex", "ĊĠĠĠ", "Ġnode", "[", "1", "]", "Ġ=", "Ġindex", "ĊĠĠĠ", "Ġnode", "[", "2", "]", "Ġ=", "Ġindex", "ĊĠĠĠ", "Ġindex", "Ġ+=", "Ġ", "1", "ĊĠĠĠ", "Ġstack", ".", "append", "(", "node", ")", "ĊĠĠĠ", "Ġnode", "[", "3", "]", "Ġ=", "ĠTrue", "ĊĠĠĠ", "Ġfor", "Ġk", "ante", "Key", "Ġin", "Ġnode", "[", "0", "].", "get", "(\"", "friends", "\"):", "ĊĠĠĠĠĠĠĠ", "Ġk", "ante", "Node", "Ġ=", "Ġall", "Nodes", ".", "get", "(", "str", "(", "k", "ante", "Key", "))", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġk", "ante", "Node", "[", "1", "]", "Ġ==", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġstrong", "connect", "(", "k", "ante", "Node", ",", "Ġall", "Nodes", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġnode", "[", "2", "]", "Ġ=", "Ġmin", "(", "node", "[", "2", "],", "Ġk", "ante", "Node", "[", "2", "])", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġk", "ante", "Node", "[", "3", "]", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġnode", "[", "2", "]", "Ġ=", "Ġmin", "(", "node", "[", "2", "],", "Ġk", "ante", "Node", "[", "1", "])", "ĊĠĠĠ", "Ġif", "Ġnode", "[", "1", "]", "Ġ==", "Ġnode", "[", "2", "]:", "ĊĠĠĠĠĠĠĠ", "Ġs", "cc", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġprev", "Node", "Ġ=", "ĠNone", "ĊĠĠĠĠĠĠĠ", "Ġwhile", "Ġprev", "Node", "Ġ!=", "Ġnode", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprev", "Node", "Ġ=", "Ġstack", ".", "pop", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprev", "Node", "[", "3", "]", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġs", "cc", ".", "append", "(", "prev", "Node", ")", "ĊĠĠĠĠĠĠĠ", "Ġcomponents", ".", "append", "(", "scc", ")", "ĊĊ", "Ċ", "tar", "jan", "()", "Ċ" ]
[ 1, 1, 1, 1, 1, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 60, 61, 61, 61, 61 ]
[ 1, 7, 11, 14, 17, 1, 7, 12, 1, 1, 7, 12, 14, 18, 21, 24, 25, 30, 36, 38, 44, 49, 51, 55, 56, 58, 59, 60, 61, 62, 63, 64, 66, 1, 6, 8, 11, 1, 11, 13, 16, 1, 6, 8, 9, 10, 1, 1, 2, 17, 20, 24, 28, 31, 41, 45, 49, 59, 62, 71, 81, 92, 93, 1, 2, 11, 19, 20, 24, 32, 35, 39, 48, 52, 60, 65, 68, 77, 87, 98, 99, 1, 4, 8, 11, 14, 4, 10, 12, 17, 18, 22, 4, 10, 12, 18, 20, 4, 8, 11, 14, 20, 22, 29, 34, 35, 38, 41, 48, 50, 4, 8, 15, 17, 21, 24, 27, 33, 34, 35, 37, 38, 39, 4, 10, 12, 15, 4, 8, 15, 18, 22, 29, 30, 33, 35, 42, 45, 8, 13, 16, 18, 22, 23, 29, 30, 8, 13, 18, 20, 22, 28, 33, 34, 37, 38, 42, 45, 47, 48, 50, 51, 53, 55, 56, 57, 59, 60, 61, 67, 68, 8, 10, 15, 17, 22, 23, 27, 31, 35, 38, 40, 44, 45, 51, 52, 55, 57, 61, 65, 66, 69, 71, 74, 79, 80, 87, 88, 8, 14, 15, 19, 22, 23, 25, 30, 35, 4, 8, 13, 16, 19, 25, 26, 8, 13, 15, 21, 22, 25, 26, 30, 33, 34, 8, 11, 16, 17, 18, 19, 22, 24, 25, 26, 12, 19, 26, 27, 31, 32, 38, 39, 4, 8, 10, 16, 18, 4, 8, 10, 12, 15, 26, 27, 8, 14, 16, 19, 22, 24, 26, 29, 34, 35, 37, 8, 12, 17, 20, 22, 24, 25, 12, 18, 20, 25, 26, 28, 30, 34, 35, 39, 40, 41, 43, 45, 48, 52, 56, 57, 59, 61, 65, 66, 70, 71, 72, 74, 76, 79, 84, 85, 87, 89, 94, 95, 96, 98, 101, 103, 107, 110, 4, 10, 12, 15, 18, 21, 26, 29, 31, 33, 37, 38, 41, 42, 52, 54, 56, 58, 60, 63, 68, 70, 72, 4, 10, 12, 13, 16, 20, 21, 23, 25, 29, 30, 33, 35, 41, 42, 44, 46, 49, 50, 55, 57, 1, 1, 2, 7, 14, 23, 29, 34, 37, 41, 47, 51, 58, 59, 62, 73, 74, 76, 85, 95, 105, 109, 112, 117, 118, 1, 4, 11, 18, 19, 23, 24, 28, 33, 35, 4, 11, 17, 4, 9, 10, 11, 12, 14, 20, 4, 9, 10, 11, 12, 14, 20, 4, 10, 13, 14, 15, 4, 10, 11, 17, 18, 22, 23, 4, 9, 10, 11, 12, 14, 19, 4, 8, 10, 14, 17, 20, 25, 26, 27, 29, 32, 34, 41, 44, 8, 10, 14, 18, 20, 24, 29, 30, 33, 34, 37, 38, 39, 43, 46, 48, 8, 11, 13, 17, 21, 22, 23, 24, 27, 29, 30, 31, 12, 19, 26, 27, 28, 32, 36, 37, 41, 46, 47, 12, 17, 18, 19, 20, 22, 26, 27, 31, 32, 33, 35, 37, 41, 45, 46, 47, 49, 8, 13, 15, 19, 23, 24, 25, 26, 29, 34, 35, 12, 17, 18, 19, 20, 22, 26, 27, 31, 32, 33, 35, 37, 41, 45, 46, 47, 49, 4, 7, 12, 13, 14, 15, 18, 23, 24, 25, 27, 8, 10, 12, 14, 17, 8, 13, 17, 19, 24, 8, 14, 19, 23, 26, 31, 32, 12, 17, 21, 23, 29, 30, 33, 35, 12, 17, 21, 22, 23, 24, 26, 32, 12, 14, 16, 17, 23, 24, 28, 32, 33, 8, 19, 20, 26, 27, 30, 31, 1, 1, 4, 7, 9 ]
9ab3dd87f17ac75a3831e9ec1f0746ad81fad70d
# Any object containing execute(self) method is considered to be IDE App # this is Duck typing concept class PyCharm: def execute(self): print("pycharm ide runnig") class MyIde: def execute(self): print("MyIde running") class Laptop: def code(self, ide): ide.execute() ide = MyIde() obj = Laptop() obj.code(ide)
[ 40, 6213, 1319, 6663, 5755, 45, 803, 46, 1431, 458, 11901, 391, 545, 16299, 2013, 222, 40, 477, 458, 493, 7206, 12018, 10271, 499, 222, 842, 4374, 2674, 114, 63, 303, 684, 5755, 45, 803, 731, 310, 1489, 459, 997, 39289, 6128, 1441, 115, 384, 678, 499, 222, 842, 4318, 20652, 63, 303, 684, 5755, 45, 803, 731, 310, 1489, 459, 3781, 20652, 3991, 678, 499, 222, 842, 43509, 1412, 63, 303, 684, 1361, 45, 803, 49, 6128, 731, 310, 6128, 51, 4540, 365, 499, 222, 824, 299, 4318, 20652, 365, 222, 222, 2085, 299, 43509, 1412, 365, 222, 222, 2085, 51, 707, 45, 824, 46, 222 ]
[ "#", "ĠAny", "Ġobject", "Ġcontaining", "Ġexecute", "(", "self", ")", "Ġmethod", "Ġis", "Ġconsidered", "Ġto", "Ġbe", "ĠIDE", "ĠApp", "Ċ", "#", "Ġthis", "Ġis", "ĠD", "uck", "Ġtyping", "Ġconcept", "ĊĊ", "Ċ", "class", "ĠPy", "Char", "m", ":", "ĊĠĠĠ", "Ġdef", "Ġexecute", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "py", "charm", "Ġide", "Ġrun", "n", "ig", "\")", "ĊĊ", "Ċ", "class", "ĠMy", "Ide", ":", "ĊĠĠĠ", "Ġdef", "Ġexecute", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "My", "Ide", "Ġrunning", "\")", "ĊĊ", "Ċ", "class", "ĠLap", "top", ":", "ĊĠĠĠ", "Ġdef", "Ġcode", "(", "self", ",", "Ġide", "):", "ĊĠĠĠĠĠĠĠ", "Ġide", ".", "execute", "()", "ĊĊ", "Ċ", "ide", "Ġ=", "ĠMy", "Ide", "()", "Ċ", "Ċ", "obj", "Ġ=", "ĠLap", "top", "()", "Ċ", "Ċ", "obj", ".", "code", "(", "ide", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 14, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 19, 20, 20, 20, 20, 20, 20, 21, 22, 22, 22, 22, 22, 22, 23, 24, 24, 24, 24, 24, 24, 24 ]
[ 1, 2, 6, 13, 24, 32, 33, 37, 38, 45, 48, 59, 62, 65, 69, 73, 1, 2, 7, 10, 12, 15, 22, 30, 1, 1, 6, 9, 13, 14, 15, 4, 8, 16, 17, 21, 23, 8, 14, 16, 18, 23, 27, 31, 32, 34, 36, 1, 1, 6, 9, 12, 13, 4, 8, 16, 17, 21, 23, 8, 14, 16, 18, 21, 29, 31, 1, 1, 6, 10, 13, 14, 4, 8, 13, 14, 18, 19, 23, 25, 8, 12, 13, 20, 22, 1, 1, 4, 6, 9, 12, 14, 1, 1, 4, 6, 10, 13, 15, 1, 1, 4, 5, 9, 10, 13, 14 ]
6d61df9ac072100d01a1ce3cf7b4c056f66a163c
import pygame import sys import time import random from snake_gym.envs.modules import * from pygame.locals import * import numpy as np class SnakeGame(object): def __init__(self): self.screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT), 0, 32) self.surface = pygame.Surface(self.screen.get_size()) self.surface = self.surface.convert() self.surface.fill((255, 255, 255)) self.clock = pygame.time.Clock() self.fps = 60 self.done = False pygame.key.set_repeat(1, 40) self.screen.blit(self.surface, (0, 0)) pygame.init() self.fpsClock = pygame.time.Clock() self.snake = Snake() self.apple = Apple() def reset(self): return SnakeGame._get_image(self.surface) def step(self, key): length = self.snake.length for event in pygame.event.get(): if event.type == QUIT: pygame.quit() self.done = True act = [UP, DOWN, LEFT, RIGHT] self.snake.point(act[key]) self.surface.fill((255, 255, 255)) try: self.snake.move() except SnakeException: self.done = True if self.done: state = SnakeGame._get_image(self.surface) return state, length, self.done, {} check_eat(self.snake, self.apple) self.snake.draw(self.surface) self.apple.draw(self.surface) font = pygame.font.Font(None, 36) text = font.render(str(self.snake.length), 1, (10, 10, 10)) text_pos = text.get_rect() text_pos.centerx = 20 self.surface.blit(text, text_pos) self.screen.blit(self.surface, (0, 0)) state = SnakeGame._get_image(self.surface) pygame.display.flip() pygame.display.update() self.fpsClock.tick(self.fps + self.snake.length / 3) return state, self.snake.length, False, {} @staticmethod def _get_image(surface): ret = list(map(lambda x: list(x), np.zeros((SCREEN_HEIGHT, SCREEN_WIDTH)))) for j in range(SCREEN_HEIGHT): for k in range(SCREEN_WIDTH): ret[j][k] = surface.get_at((k, j)) return np.array(ret)
[ 485, 23967, 222, 485, 5263, 222, 485, 1153, 222, 485, 4051, 222, 1097, 34784, 100, 46334, 51, 16450, 51, 3490, 1220, 338, 222, 1097, 23967, 51, 22427, 1220, 338, 222, 485, 6610, 641, 2115, 499, 222, 842, 16569, 1082, 3783, 45, 1491, 731, 303, 684, 1176, 1683, 3232, 803, 731, 310, 649, 51, 4475, 299, 23967, 51, 2784, 51, 489, 100, 2832, 1181, 19900, 100, 10582, 49, 43377, 100, 15000, 490, 244, 53, 49, 244, 56, 55, 46, 310, 649, 51, 12559, 299, 23967, 51, 8814, 45, 803, 51, 4475, 51, 390, 100, 911, 1177, 310, 649, 51, 12559, 299, 649, 51, 12559, 51, 5975, 365, 310, 649, 51, 12559, 51, 4182, 1181, 55, 58, 58, 49, 244, 55, 58, 58, 49, 244, 55, 58, 58, 509, 310, 649, 51, 9115, 299, 23967, 51, 1021, 51, 11395, 365, 310, 649, 51, 25293, 299, 244, 59, 53, 310, 649, 51, 5099, 299, 3208, 603, 23967, 51, 697, 51, 489, 100, 8116, 45, 54, 49, 244, 57, 53, 46, 603, 649, 51, 4475, 51, 36165, 45, 803, 51, 12559, 49, 327, 53, 49, 244, 53, 509, 310, 23967, 51, 1683, 365, 310, 649, 51, 25293, 11395, 299, 23967, 51, 1021, 51, 11395, 365, 603, 649, 51, 29539, 299, 16569, 1082, 365, 310, 649, 51, 9515, 299, 15619, 365, 465, 684, 5672, 45, 803, 731, 310, 461, 16569, 1082, 3783, 1132, 390, 100, 915, 45, 803, 51, 12559, 46, 465, 684, 3138, 45, 803, 49, 1221, 731, 310, 3124, 299, 649, 51, 29539, 51, 1340, 310, 456, 1708, 347, 23967, 51, 1585, 51, 390, 2284, 343, 434, 1708, 51, 700, 630, 1931, 19375, 63, 419, 23967, 51, 16998, 365, 419, 649, 51, 5099, 299, 2969, 603, 1733, 299, 447, 2430, 49, 29914, 49, 17790, 49, 20167, 98, 310, 649, 51, 29539, 51, 1513, 45, 555, 96, 697, 1156, 310, 649, 51, 12559, 51, 4182, 1181, 55, 58, 58, 49, 244, 55, 58, 58, 49, 244, 55, 58, 58, 509, 310, 1614, 63, 343, 649, 51, 29539, 51, 1518, 365, 310, 2959, 16569, 1082, 1002, 63, 343, 649, 51, 5099, 299, 2969, 310, 434, 649, 51, 5099, 63, 343, 1621, 299, 16569, 1082, 3783, 1132, 390, 100, 915, 45, 803, 51, 12559, 46, 343, 461, 1621, 49, 3124, 49, 649, 51, 5099, 49, 2172, 310, 1524, 100, 40373, 45, 803, 51, 29539, 49, 649, 51, 9515, 46, 310, 649, 51, 29539, 51, 3903, 45, 803, 51, 12559, 46, 310, 649, 51, 9515, 51, 3903, 45, 803, 51, 12559, 46, 310, 2377, 299, 23967, 51, 2204, 51, 3728, 45, 2545, 49, 244, 56, 59, 46, 310, 1367, 299, 2377, 51, 3183, 45, 484, 45, 803, 51, 29539, 51, 1340, 490, 244, 54, 49, 327, 54, 53, 49, 244, 54, 53, 49, 244, 54, 53, 509, 310, 1367, 100, 985, 299, 1367, 51, 390, 100, 6612, 365, 310, 1367, 100, 985, 51, 2413, 125, 299, 244, 55, 53, 310, 649, 51, 12559, 51, 36165, 45, 897, 49, 1367, 100, 985, 46, 310, 649, 51, 4475, 51, 36165, 45, 803, 51, 12559, 49, 327, 53, 49, 244, 53, 509, 310, 1621, 299, 16569, 1082, 3783, 1132, 390, 100, 915, 45, 803, 51, 12559, 46, 310, 23967, 51, 2784, 51, 16292, 365, 310, 23967, 51, 2784, 51, 1896, 365, 310, 649, 51, 25293, 11395, 51, 10793, 45, 803, 51, 25293, 494, 649, 51, 29539, 51, 1340, 536, 244, 56, 46, 310, 461, 1621, 49, 649, 51, 29539, 51, 1340, 49, 3208, 49, 2172, 465, 496, 16130, 303, 684, 634, 390, 100, 915, 45, 12559, 731, 310, 2170, 299, 1168, 45, 1130, 45, 6034, 837, 63, 1168, 45, 125, 490, 2115, 51, 10066, 1181, 19900, 100, 15000, 49, 43377, 100, 10582, 7775, 310, 456, 614, 347, 2189, 45, 19900, 100, 15000, 731, 343, 456, 851, 347, 2189, 45, 19900, 100, 10582, 731, 419, 2170, 96, 111, 1697, 112, 98, 299, 11234, 51, 390, 100, 288, 1181, 112, 49, 614, 509, 310, 461, 2115, 51, 977, 45, 2113, 46, 222 ]
[ "import", "Ġpygame", "Ċ", "import", "Ġsys", "Ċ", "import", "Ġtime", "Ċ", "import", "Ġrandom", "Ċ", "from", "Ġsnake", "_", "gym", ".", "envs", ".", "modules", "Ġimport", "Ġ*", "Ċ", "from", "Ġpygame", ".", "locals", "Ġimport", "Ġ*", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "ĊĊ", "Ċ", "class", "ĠSn", "ake", "Game", "(", "object", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "screen", "Ġ=", "Ġpygame", ".", "display", ".", "set", "_", "mode", "((", "SCREEN", "_", "WIDTH", ",", "ĠSCREEN", "_", "HEIGHT", "),", "Ġ", "0", ",", "Ġ", "3", "2", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "surface", "Ġ=", "Ġpygame", ".", "Surface", "(", "self", ".", "screen", ".", "get", "_", "size", "())", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "surface", "Ġ=", "Ġself", ".", "surface", ".", "convert", "()", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "surface", ".", "fill", "((", "2", "5", "5", ",", "Ġ", "2", "5", "5", ",", "Ġ", "2", "5", "5", "))", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "clock", "Ġ=", "Ġpygame", ".", "time", ".", "Clock", "()", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "fps", "Ġ=", "Ġ", "6", "0", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "done", "Ġ=", "ĠFalse", "ĊĊĠĠĠĠĠĠĠ", "Ġpygame", ".", "key", ".", "set", "_", "repeat", "(", "1", ",", "Ġ", "4", "0", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġself", ".", "screen", ".", "blit", "(", "self", ".", "surface", ",", "Ġ(", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġpygame", ".", "init", "()", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "fps", "Clock", "Ġ=", "Ġpygame", ".", "time", ".", "Clock", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġself", ".", "snake", "Ġ=", "ĠSn", "ake", "()", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "apple", "Ġ=", "ĠApple", "()", "ĊĊĠĠĠ", "Ġdef", "Ġreset", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "ĠSn", "ake", "Game", "._", "get", "_", "image", "(", "self", ".", "surface", ")", "ĊĊĠĠĠ", "Ġdef", "Ġstep", "(", "self", ",", "Ġkey", "):", "ĊĠĠĠĠĠĠĠ", "Ġlength", "Ġ=", "Ġself", ".", "snake", ".", "length", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġevent", "Ġin", "Ġpygame", ".", "event", ".", "get", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġevent", ".", "type", "Ġ==", "ĠQ", "UIT", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġpygame", ".", "quit", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "done", "Ġ=", "ĠTrue", "ĊĊĠĠĠĠĠĠĠ", "Ġact", "Ġ=", "Ġ[", "UP", ",", "ĠDOWN", ",", "ĠLEFT", ",", "ĠRIGHT", "]", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "snake", ".", "point", "(", "act", "[", "key", "])", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "surface", ".", "fill", "((", "2", "5", "5", ",", "Ġ", "2", "5", "5", ",", "Ġ", "2", "5", "5", "))", "ĊĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "snake", ".", "move", "()", "ĊĠĠĠĠĠĠĠ", "Ġexcept", "ĠSn", "ake", "Exception", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "done", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "done", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġstate", "Ġ=", "ĠSn", "ake", "Game", "._", "get", "_", "image", "(", "self", ".", "surface", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġstate", ",", "Ġlength", ",", "Ġself", ".", "done", ",", "Ġ{}", "ĊĠĠĠĠĠĠĠ", "Ġcheck", "_", "eat", "(", "self", ".", "snake", ",", "Ġself", ".", "apple", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "snake", ".", "draw", "(", "self", ".", "surface", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "apple", ".", "draw", "(", "self", ".", "surface", ")", "ĊĠĠĠĠĠĠĠ", "Ġfont", "Ġ=", "Ġpygame", ".", "font", ".", "Font", "(", "None", ",", "Ġ", "3", "6", ")", "ĊĠĠĠĠĠĠĠ", "Ġtext", "Ġ=", "Ġfont", ".", "render", "(", "str", "(", "self", ".", "snake", ".", "length", "),", "Ġ", "1", ",", "Ġ(", "1", "0", ",", "Ġ", "1", "0", ",", "Ġ", "1", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġtext", "_", "pos", "Ġ=", "Ġtext", ".", "get", "_", "rect", "()", "ĊĠĠĠĠĠĠĠ", "Ġtext", "_", "pos", ".", "center", "x", "Ġ=", "Ġ", "2", "0", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "surface", ".", "blit", "(", "text", ",", "Ġtext", "_", "pos", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "screen", ".", "blit", "(", "self", ".", "surface", ",", "Ġ(", "0", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġstate", "Ġ=", "ĠSn", "ake", "Game", "._", "get", "_", "image", "(", "self", ".", "surface", ")", "ĊĠĠĠĠĠĠĠ", "Ġpygame", ".", "display", ".", "flip", "()", "ĊĠĠĠĠĠĠĠ", "Ġpygame", ".", "display", ".", "update", "()", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "fps", "Clock", ".", "tick", "(", "self", ".", "fps", "Ġ+", "Ġself", ".", "snake", ".", "length", "Ġ/", "Ġ", "3", ")", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġstate", ",", "Ġself", ".", "snake", ".", "length", ",", "ĠFalse", ",", "Ġ{}", "ĊĊĠĠĠ", "Ġ@", "staticmethod", "ĊĠĠĠ", "Ġdef", "Ġ_", "get", "_", "image", "(", "surface", "):", "ĊĠĠĠĠĠĠĠ", "Ġret", "Ġ=", "Ġlist", "(", "map", "(", "lambda", "Ġx", ":", "Ġlist", "(", "x", "),", "Ġnp", ".", "zeros", "((", "SCREEN", "_", "HEIGHT", ",", "ĠSCREEN", "_", "WIDTH", "))))", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġj", "Ġin", "Ġrange", "(", "SCREEN", "_", "HEIGHT", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġk", "Ġin", "Ġrange", "(", "SCREEN", "_", "WIDTH", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġret", "[", "j", "][", "k", "]", "Ġ=", "Ġsurface", ".", "get", "_", "at", "((", "k", ",", "Ġj", "))", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġnp", ".", "array", "(", "ret", ")", "Ċ" ]
[ 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70 ]
[ 1, 7, 14, 1, 7, 11, 1, 7, 12, 1, 7, 14, 1, 5, 11, 12, 15, 16, 20, 21, 28, 35, 37, 1, 5, 12, 13, 19, 26, 28, 1, 7, 13, 16, 19, 1, 1, 6, 9, 12, 16, 17, 23, 25, 4, 8, 11, 15, 18, 22, 24, 8, 13, 14, 20, 22, 29, 30, 37, 38, 41, 42, 46, 48, 54, 55, 60, 61, 68, 69, 75, 77, 78, 79, 80, 81, 82, 83, 84, 8, 13, 14, 21, 23, 30, 31, 38, 39, 43, 44, 50, 51, 54, 55, 59, 62, 8, 13, 14, 21, 23, 28, 29, 36, 37, 44, 46, 8, 13, 14, 21, 22, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 43, 8, 13, 14, 19, 21, 28, 29, 33, 34, 39, 41, 8, 13, 14, 17, 19, 20, 21, 22, 8, 13, 14, 18, 20, 26, 8, 15, 16, 19, 20, 23, 24, 30, 31, 32, 33, 34, 35, 36, 37, 8, 13, 14, 20, 21, 25, 26, 30, 31, 38, 39, 41, 42, 43, 44, 45, 47, 8, 15, 16, 20, 22, 8, 13, 14, 17, 22, 24, 31, 32, 36, 37, 42, 44, 8, 13, 14, 19, 21, 24, 27, 29, 8, 13, 14, 19, 21, 27, 29, 4, 8, 14, 15, 19, 21, 8, 15, 18, 21, 25, 27, 30, 31, 36, 37, 41, 42, 49, 50, 4, 8, 13, 14, 18, 19, 23, 25, 8, 15, 17, 22, 23, 28, 29, 35, 8, 12, 18, 21, 28, 29, 34, 35, 38, 41, 12, 15, 21, 22, 26, 29, 31, 34, 35, 16, 23, 24, 28, 30, 16, 21, 22, 26, 28, 33, 8, 12, 14, 16, 18, 19, 24, 25, 30, 31, 37, 38, 8, 13, 14, 19, 20, 25, 26, 29, 30, 33, 35, 8, 13, 14, 21, 22, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 43, 8, 12, 13, 12, 17, 18, 23, 24, 28, 30, 8, 15, 18, 21, 30, 31, 12, 17, 18, 22, 24, 29, 8, 11, 16, 17, 21, 22, 12, 18, 20, 23, 26, 30, 32, 35, 36, 41, 42, 46, 47, 54, 55, 12, 19, 25, 26, 33, 34, 39, 40, 44, 45, 48, 8, 14, 15, 18, 19, 23, 24, 29, 30, 35, 36, 41, 42, 8, 13, 14, 19, 20, 24, 25, 29, 30, 37, 38, 8, 13, 14, 19, 20, 24, 25, 29, 30, 37, 38, 8, 13, 15, 22, 23, 27, 28, 32, 33, 37, 38, 39, 40, 41, 42, 8, 13, 15, 20, 21, 27, 28, 31, 32, 36, 37, 42, 43, 49, 51, 52, 53, 54, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 68, 8, 13, 14, 17, 19, 24, 25, 28, 29, 33, 35, 8, 13, 14, 17, 18, 24, 25, 27, 28, 29, 30, 8, 13, 14, 21, 22, 26, 27, 31, 32, 37, 38, 41, 42, 8, 13, 14, 20, 21, 25, 26, 30, 31, 38, 39, 41, 42, 43, 44, 45, 47, 8, 14, 16, 19, 22, 26, 28, 31, 32, 37, 38, 42, 43, 50, 51, 8, 15, 16, 23, 24, 28, 30, 8, 15, 16, 23, 24, 30, 32, 8, 13, 14, 17, 22, 23, 27, 28, 32, 33, 36, 38, 43, 44, 49, 50, 56, 58, 59, 60, 61, 8, 15, 21, 22, 27, 28, 33, 34, 40, 41, 47, 48, 51, 4, 6, 18, 4, 8, 10, 13, 14, 19, 20, 27, 29, 8, 12, 14, 19, 20, 23, 24, 30, 32, 33, 38, 39, 40, 42, 45, 46, 51, 53, 59, 60, 66, 67, 74, 75, 80, 84, 8, 12, 14, 17, 23, 24, 30, 31, 37, 39, 12, 16, 18, 21, 27, 28, 34, 35, 40, 42, 16, 20, 21, 22, 24, 25, 26, 28, 36, 37, 40, 41, 43, 45, 46, 47, 49, 51, 8, 15, 18, 19, 24, 25, 28, 29 ]
d69bffb85d81ab3969bfe7dfe2759fa809890208
# Generated by Django 3.1.1 on 2020-10-07 04:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("articals", "0001_initial"), ] operations = [ migrations.AddField( model_name="artical", name="thumb", field=models.ImageField(blank=True, default="default.png", upload_to="media/"), ), ]
[ 40, 13046, 829, 18288, 244, 56, 51, 54, 51, 54, 563, 244, 55, 53, 55, 53, 50, 54, 53, 50, 53, 60, 244, 53, 57, 63, 53, 57, 222, 222, 1097, 8532, 51, 1219, 1220, 12520, 49, 4590, 499, 222, 842, 18572, 45, 19772, 51, 12071, 731, 303, 6450, 299, 447, 310, 2903, 521, 1599, 120, 411, 332, 53, 53, 53, 54, 100, 4353, 2132, 303, 1499, 465, 7392, 299, 447, 310, 12520, 51, 38109, 45, 343, 1573, 100, 444, 366, 521, 1599, 411, 343, 655, 366, 7386, 411, 343, 1620, 66, 3404, 51, 1675, 1195, 45, 5021, 66, 1844, 49, 1263, 366, 1555, 51, 1665, 411, 7629, 100, 471, 366, 3453, 52, 2132, 310, 2604, 303, 1499, 222 ]
[ "#", "ĠGenerated", "Ġby", "ĠDjango", "Ġ", "3", ".", "1", ".", "1", "Ġon", "Ġ", "2", "0", "2", "0", "-", "1", "0", "-", "0", "7", "Ġ", "0", "4", ":", "0", "4", "Ċ", "Ċ", "from", "Ġdjango", ".", "db", "Ġimport", "Ġmigrations", ",", "Ġmodels", "ĊĊ", "Ċ", "class", "ĠMigration", "(", "migrations", ".", "Migration", "):", "ĊĠĠĠ", "Ġdependencies", "Ġ=", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġ(\"", "art", "ical", "s", "\",", "Ġ\"", "0", "0", "0", "1", "_", "initial", "\"),", "ĊĠĠĠ", "Ġ]", "ĊĊĠĠĠ", "Ġoperations", "Ġ=", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġmigrations", ".", "AddField", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġmodel", "_", "name", "=\"", "art", "ical", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġname", "=\"", "thumb", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfield", "=", "models", ".", "Image", "Field", "(", "blank", "=", "True", ",", "Ġdefault", "=\"", "default", ".", "png", "\",", "Ġupload", "_", "to", "=\"", "media", "/", "\"),", "ĊĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠ", "Ġ]", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17 ]
[ 1, 2, 12, 15, 22, 23, 24, 25, 26, 27, 28, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 1, 1, 5, 12, 13, 15, 22, 33, 34, 41, 1, 1, 6, 16, 17, 27, 28, 37, 39, 4, 17, 19, 21, 8, 11, 14, 18, 19, 21, 23, 24, 25, 26, 27, 28, 35, 38, 4, 6, 4, 15, 17, 19, 8, 19, 20, 28, 29, 12, 18, 19, 23, 25, 28, 32, 34, 12, 17, 19, 24, 26, 12, 18, 19, 25, 26, 31, 36, 37, 42, 43, 47, 48, 56, 58, 65, 66, 69, 71, 78, 79, 81, 83, 88, 89, 92, 8, 11, 4, 6 ]
2ff85ac059f160fcc6b39b4298e8216cbad77ab3
import http.server import socketserver from http.server import BaseHTTPRequestHandler, HTTPServer import time import json import io import urllib import requests from lib.Emby_ws import xnoppo_ws from lib.Emby_http import * from lib.Xnoppo import * from lib.Xnoppo_TV import * import lib.Xnoppo_AVR import shutil import asyncio import threading import logging import logging.handlers import psutil def get_version(): return "2.01" def thread_function(ws_object): print("Thread: starting") ws_object.start() print("Thread: finishing") def restart(): print("restart") try: emby_wsocket.stop() except: sys.exit() sys.exit() print("fin restart") def save_config(config_file, config): with open(config_file, "w") as fw: json.dump(config, fw, indent=4) fw.close try: emby_wsocket.ws_config = config emby_wsocket.EmbySession.config = config except: emby_wsocket.ws_config = config def get_state(): status = {} status["Version"] = get_version() try: status["Playstate"] = emby_wsocket.EmbySession.playstate status["playedtitle"] = emby_wsocket.EmbySession.playedtitle status["server"] = emby_wsocket.EmbySession.server status["folder"] = emby_wsocket.EmbySession.folder status["filename"] = emby_wsocket.EmbySession.filename status["CurrentData"] = emby_wsocket.EmbySession.currentdata # gives a single float value except: status["Playstate"] = "Not_Connected" status["playedtitle"] = "" status["server"] = "" status["folder"] = "" status["filename"] = "" status["CurrentData"] = "" status["cpu_perc"] = psutil.cpu_percent() status["mem_perc"] = psutil.virtual_memory().percent # you can have the percentage of used RAM print(psutil.virtual_memory().percent) print(status) return status def cargar_config(config_file, tv_path, av_path, lang_path): with open(config_file, "r") as f: config = json.load(f) # ver_configuracion(config) f.close ## new options default config values config["Version"] = get_version() default = config.get("Autoscript", False) config["Autoscript"] = default default = config.get("enable_all_libraries", False) config["enable_all_libraries"] = default default = config.get("TV_model", "") config["TV_model"] = default default = config.get("TV_SOURCES", []) config["TV_SOURCES"] = default default = config.get("AV_model", "") config["AV_model"] = default default = config.get("AV_SOURCES", []) config["AV_SOURCES"] = default default = config.get("TV_script_init", "") config["TV_script_init"] = default default = config.get("TV_script_end", "") config["TV_script_end"] = default default = config.get("av_delay_hdmi", 0) config["av_delay_hdmi"] = default default = config.get("AV_Port", 23) config["AV_Port"] = default default = config.get("timeout_oppo_mount", 60) config["timeout_oppo_mount"] = default default = config.get("language", "es-ES") config["language"] = default default = config.get("default_nfs", False) config["default_nfs"] = default default = config.get("wait_nfs", False) config["wait_nfs"] = default default = config.get("refresh_time", 5) config["refresh_time"] = default default = config.get("check_beta", False) config["check_beta"] = default default = config.get("smbtrick", False) config["smbtrick"] = default default = config.get("BRDisc", False) config["BRDisc"] = default ## testeado de rutas edit_server = 0 server_list = config["servers"] for server in server_list: default = server.get("Test_OK", False) server_list[edit_server]["Test_OK"] = default edit_server = edit_server + 1 ## Cambio de booleans de texto antiguos a boleans actuales. if config["TV"] == "True": config["TV"] = True if config["TV"] == "False": config["TV"] = False if config["AV"] == "True": config["AV"] = True if config["AV"] == "False": config["AV"] = False config["servers"] = server_list config["tv_dirs"] = get_dir_folders(tv_path) config["av_dirs"] = get_dir_folders(av_path) config["langs"] = get_dir_folders(lang_path) return config def check_version(config): url = "https://raw.githubusercontent.com/siberian-git/Xnoppo/main/versions/version.js" headers = {} response = requests.get(url, headers=headers) version = json.loads(response.text) print(version) print(config["check_beta"]) if config["check_beta"] == True: last_version = version["beta_version"] last_version_file = version["beta_version_file"] else: last_version = version["curr_version"] last_version_file = version["curr_version_file"] xno_version = get_version() resp = {} resp["version"] = last_version resp["file"] = last_version_file print(xno_version) print(last_version) if xno_version < last_version: resp["new_version"] = True else: resp["new_version"] = False print(resp) return resp def update_version(config, vers_path, cwd): url = "https://raw.githubusercontent.com/siberian-git/Xnoppo/main/versions/version.js" headers = {} response = requests.get(url, headers=headers) version = json.loads(response.text) print(version) if config["check_beta"] == True: last_version = version["beta_version"] last_version_file = version["beta_version_file"] else: last_version = version["curr_version"] last_version_file = version["curr_version_file"] url2 = "https://github.com/siberian-git/Xnoppo/raw/main/versions/" + last_version_file headers = {} response2 = requests.get(url2, headers=headers) filename = vers_path + last_version_file with open(filename, "wb") as f: f.write(response2.content) f.close() shutil.unpack_archive(filename, cwd) if sys.platform.startswith("win"): separador = "\\" else: separador = "/" tv_path = cwd + separador + "web" + separador + "libraries" + separador + "TV" + separador av_path = cwd + separador + "web" + separador + "libraries" + separador + "AV" + separador if config["TV"] == True and config["TV_model"] != "": move_files(tv_path + config["TV_model"], lib_path) if config["AV"] == True and config["AV_model"] != "": move_files(av_path + config["AV_model"], lib_path) resp = {} resp["version"] = last_version resp["file"] = last_version_file resp["new_version"] = False return resp def cargar_lang(config_file): with open(config_file.encode(sys.getfilesystemencoding()), "r", encoding="latin-1") as f: config = json.load(f) # ver_configuracion(config) f.close ## new options default config values return config def leer_file(web_file): with open(web_file, "r", encoding="utf8") as f: num = f.read() f.close return num def leer_img(web_file): with open(web_file, "rb") as f: num = f.read() f.close return num def test_path(config, server): rutas = get_mount_path(server["Emby_Path"] + "/test.mkv", server) result2 = test_mount_path(config, rutas["Servidor"], rutas["Carpeta"]) return result2 def get_mount_path(movie, server_data): movie = movie.replace(server_data["Emby_Path"], server_data["Oppo_Path"]) movie = movie.replace("\\\\", "\\") movie = movie.replace("\\", "/") word = "/" inicio = movie.find(word) inicio = inicio + 1 final = movie.find(word, inicio, len(movie)) servidor = movie[inicio:final] ultimo = final + 1 result = final + 1 while result > 0: ultimo = result + 1 result = movie.find(word, ultimo, len(movie)) fichero = movie[ultimo : len(movie)] final = final + 1 ultimo = ultimo - 1 carpeta = movie[final:ultimo] resultado = {} resultado["Servidor"] = servidor resultado["Carpeta"] = carpeta resultado["Fichero"] = fichero return resultado def test_mount_path(config, servidor, carpeta): sendnotifyremote(config["Oppo_IP"]) # print("Conectando con el OPPO") result = check_socket(config) if result == 0: response_data6a = getmainfirmwareversion(config) response_data6c = getdevicelist(config) response_data6b = getsetupmenu(config) response_data6c = OppoSignin(config) response_data6d = getdevicelist(config) response_data6e = getglobalinfo(config) response_data6f = getdevicelist(config) response_data_on = sendremotekey("EJT", config) time.sleep(1) # print("Solicitando montar ruta al OPPO") response_data6b = getsetupmenu(config) while response_data6f.find('devicelist":[]') > 0: time.sleep(1) response_data6f = getdevicelist(config) response_data_on = sendremotekey("QPW", config) device_list = json.loads(response_data6f) if config["DebugLevel"] > 0: print(device_list) nfs = config["default_nfs"] for device in device_list["devicelist"]: if device["name"].upper() == servidor.upper(): if device["sub_type"] == "nfs": nfs = True break else: nfs = False break if nfs: response_login = LoginNFS(config, servidor) else: response_login = LoginSambaWithOutID(config, servidor) if config["Always_ON"] == False: time.sleep(5) response_data6b = getsetupmenu(config) if nfs: response_mount = mountSharedNFSFolder(servidor, carpeta, "", "", config) else: response_mount = mountSharedFolder(servidor, carpeta, "", "", config) response = json.loads(response_mount) # print(response) if config["Autoscript"] == True: result = umountSharedFolder(config) if response["success"] == True: a = "OK" else: a = "FAILURE" return a else: print("No se puede conectar, revisa las configuraciones o que el OPPO este encendido o en reposo") def test_emby(config): try: EmbySession = EmbyHttp(config) user_info = EmbySession.user_info if user_info["SessionInfo"]["Id"] != "": return "OK" else: return "FAILED" except: return "FAILED" def test_oppo(config): result = check_socket(config) if result == 0: return "OK" else: return "FAILED" def carga_libraries(config): try: EmbySession = EmbyHttp(config) views_list = EmbySession.get_user_views(EmbySession.user_info["User"]["Id"]) libraries = [] for view in views_list: library = {} library["Name"] = view["Name"] library["Id"] = view["Id"] library["Active"] = False try: lib_list = config["Libraries"] except: lib_list = {} for lib in lib_list: if lib["Id"] == view["Id"]: library["Active"] = lib["Active"] libraries.append(library) config["Libraries"] = libraries return 0 except: return 1 def is_library_active(config, libraryname): for library in config["Libraries"]: if library["Name"] == libraryname: return library["Active"] return False def get_selectableFolders(config): EmbySession = EmbyHttp(config) MediaFolders = EmbySession.get_emby_selectablefolders() servers = [] for Folder in MediaFolders: index = 1 active = is_library_active(config, Folder["Name"]) if config["enable_all_libraries"] == True: active = True if active == True: for SubFolder in Folder["SubFolders"]: server = {} server["Id"] = SubFolder["Id"] if index > 1: server["name"] = Folder["Name"] + "(" + str(index) + ")" else: server["name"] = Folder["Name"] server["Emby_Path"] = SubFolder["Path"] server["Oppo_Path"] = "/" try: serv_list = config["servers"] except: serv_list = {} for serv in serv_list: if server["Emby_Path"] == serv["Emby_Path"]: server["name"] = serv["name"] server["Oppo_Path"] = serv["Oppo_Path"] server["Test_OK"] = serv["Test_OK"] servers.append(server) index = index + 1 config["servers"] = servers def get_dir_folders(directory): os.chdir(directory) dirs = os.listdir(".") encontrado = False list_dir = [] # a ="" # list_dir.append(a) for x in dirs: if os.path.isdir(x): list_dir.append(x) return list_dir def move_files(src, dest): os.chdir(src) src_files = os.listdir(".") for file_name in src_files: full_file_name = os.path.join(src, file_name) if os.path.isfile(full_file_name): shutil.copy(full_file_name, dest) return 0 def get_devices(config): try: EmbySession = EmbyHttp(config) devices = EmbySession.get_emby_devices() index = 0 dev_temp = [] for device in devices["Items"]: try: if device["Id"] != "Xnoppo": device["Name"] = device["Name"] + " / " + device["AppName"] device["Id"] = device["ReportedDeviceId"] dev_temp.append(device) except: pass config["devices"] = dev_temp return "OK" except: return "FAILURE" class MyServer(BaseHTTPRequestHandler): def do_GET(self): cwd = os.path.dirname(os.path.abspath(__file__)) if sys.platform.startswith("win"): separador = "\\" else: separador = "/" resource_path = cwd + separador + "web" + separador + "resources" + separador html_path = cwd + separador + "web" + separador tv_path = cwd + separador + "web" + separador + "libraries" + separador + "TV" + separador av_path = cwd + separador + "web" + separador + "libraries" + separador + "AV" + separador lang_path = cwd + separador + "web" + separador + "lang" + separador vers_path = cwd + separador + "versions" + separador print(self.path) if self.path == "/emby_conf.html": i = leer_file(html_path + "emby_conf.html") self.send_response(200) self.send_header("Content-type", "text/html") self.end_headers() self.wfile.write(bytes(i, "utf-8")) return 0 if self.path == "/oppo_conf.html": self.send_response(200) self.send_header("Content-type", "text/html") self.end_headers() i = leer_file(html_path + "oppo_conf.html") self.wfile.write(bytes(i, "utf-8")) return 0 if self.path == "/lib_conf.html": self.send_response(200) self.send_header("Content-type", "text/html") self.end_headers() i = leer_file(html_path + "lib_conf.html") self.wfile.write(bytes(i, "utf-8")) return 0 if self.path == "/path_conf.html": self.send_response(200) self.send_header("Content-type", "text/html") self.end_headers() i = leer_file(html_path + "path_conf.html") self.wfile.write(bytes(i, "utf-8")) return 0 if self.path == "/tv_conf.html": self.send_response(200) self.send_header("Content-type", "text/html") self.end_headers() i = leer_file(html_path + "tv_conf.html") self.wfile.write(bytes(i, "utf-8")) return 0 if self.path == "/av_conf.html": self.send_response(200) self.send_header("Content-type", "text/html") self.end_headers() i = leer_file(html_path + "av_conf.html") self.wfile.write(bytes(i, "utf-8")) return 0 if self.path == "/other_conf.html": self.send_response(200) self.send_header("Content-type", "text/html") self.end_headers() i = leer_file(html_path + "other_conf.html") self.wfile.write(bytes(i, "utf-8")) return 0 if self.path == "/status.html": self.send_response(200) self.send_header("Content-type", "text/html") self.end_headers() i = leer_file(html_path + "status.html") self.wfile.write(bytes(i, "utf-8")) return 0 if self.path == "/help.html": self.send_response(200) self.send_header("Content-type", "text/html") self.end_headers() i = leer_file(html_path + "help.html") self.wfile.write(bytes(i, "utf-8")) return 0 if self.path == "/remote.html": i = leer_file(html_path + "remote.html") self.send_response(200) self.send_header("Content-type", "text/html") self.end_headers() self.wfile.write(bytes(i, "utf-8")) return 0 if self.path == "/android-chrome-36x36.png": self.send_response(200) self.send_header("Content-type", "text/html") self.end_headers() i = leer_img(resource_path + "android-chrome-36x36.png") self.wfile.write(bytes(i)) return 0 if self.path == "/av-receiver-icon-2.jpg": self.send_response(200) self.send_header("Content-type", "text/html") self.end_headers() i = leer_img(resource_path + "av-receiver-icon-2.jpg") self.wfile.write(bytes(i)) return 0 if self.path == "/dragon.png": self.send_response(200) self.send_header("Content-type", "text/html") self.end_headers() i = leer_img(resource_path + "dragon.png") self.wfile.write(bytes(i)) return 0 if self.path == "/xnoppo_config": self.send_response(200) self.send_header("Content-type", "application/json") self.end_headers() a = cargar_config(cwd + separador + "config.json", tv_path, av_path, lang_path) self.wfile.write(bytes(json.dumps(a), "utf-8")) return 0 if self.path == "/xnoppo_config_lib": self.send_response(200) self.send_header("Content-type", "application/json") self.end_headers() a = cargar_config(cwd + separador + "config.json", tv_path, av_path, lang_path) carga_libraries(a) self.wfile.write(bytes(json.dumps(a), "utf-8")) return 0 if self.path == "/xnoppo_config_dev": self.send_response(200) self.send_header("Content-type", "application/json") self.end_headers() a = cargar_config(cwd + separador + "config.json", tv_path, av_path, lang_path) get_devices(a) self.wfile.write(bytes(json.dumps(a), "utf-8")) return 0 if self.path == "/check_version": self.send_response(200) self.send_header("Content-type", "application/json") self.end_headers() config = cargar_config(cwd + separador + "config.json", tv_path, av_path, lang_path) a = check_version(config) self.wfile.write(bytes(json.dumps(a), "utf-8")) return 0 if self.path == "/update_version": self.send_response(200) self.send_header("Content-type", "application/json") self.end_headers() config = cargar_config(cwd + separador + "config.json", tv_path, av_path, lang_path) a = update_version(config, vers_path, cwd) restart() self.wfile.write(bytes(json.dumps(a), "utf-8")) return 0 if self.path == "/get_state": self.send_response(200) self.send_header("Content-type", "application/json") self.end_headers() a = get_state() self.wfile.write(bytes(json.dumps(a), "utf-8")) return 0 if self.path == "/restart": self.send_response(200) self.send_header("Content-type", "text/html") self.end_headers() a = "Restarting" self.wfile.write(bytes(a, "utf-8")) restart() if self.path == "/refresh_paths": self.send_response(200) self.send_header("Content-type", "application/json") self.end_headers() a = cargar_config(cwd + separador + "config.json", tv_path, av_path, lang_path) get_selectableFolders(a) self.wfile.write(bytes(json.dumps(a), "utf-8")) return 0 if self.path == "/lang": self.send_response(200) self.send_header("Content-type", "application/json") self.end_headers() config = cargar_config(cwd + separador + "config.json", tv_path, av_path, lang_path) a = cargar_lang(lang_path + config["language"] + separador + "lang.js") self.wfile.write(bytes(json.dumps(a), "utf-8")) return 0 if self.path.find("/send_key?") >= 0: get_data = self.path print(get_data) a = len("/send_key?sendkey=") b = get_data[a : len(get_data)] print(b) config = cargar_config(cwd + separador + "config.json", tv_path, av_path, lang_path) sendnotifyremote(config["Oppo_IP"]) result = check_socket(config) if b == "PON": if result == 0: response_data6a = getmainfirmwareversion(config) response_data6c = getdevicelist(config) response_data6b = getsetupmenu(config) response_data6c = OppoSignin(config) response_data6d = getdevicelist(config) response_data6e = getglobalinfo(config) response_data6f = getdevicelist(config) response_data_on = sendremotekey("EJT", config) if config["BRDisc"] == True: time.sleep(1) response_data_on = sendremotekey("EJT", config) time.sleep(1) response_data6b = getsetupmenu(config) else: response_data_on = sendremotekey(b, config) self.send_response(200) self.send_header("Content-type", "text") self.end_headers() a = "ok" self.wfile.write(bytes(a, "utf-8")) return 0 if self.path == "/log.txt": self.send_response(200) self.send_header("Content-type", "text") self.end_headers() config = cargar_config(cwd + separador + "config.json", tv_path, av_path, lang_path) a = leer_img(cwd + separador + "emby_xnoppo_client_logging.log") self.wfile.write(bytes(a)) return 0 else: self.send_response(200) self.send_header("Content-type", "text/html") self.end_headers() self.wfile.write(bytes("<html><head><title>https://pythonbasics.org</title></head>", "utf-8")) self.wfile.write(bytes("<p>Request: %s</p>" % self.path, "utf-8")) self.wfile.write(bytes("<body>", "utf-8")) self.wfile.write(bytes("<p>This is an example web server.</p>", "utf-8")) self.wfile.write(bytes("</body></html>", "utf-8")) def do_POST(self): cwd = os.path.dirname(os.path.abspath(__file__)) if sys.platform.startswith("win"): separador = "\\" else: separador = "/" resource_path = cwd + separador + "web" + separador + "resources" + separador html_path = cwd + separador + "web" + separador tv_path = cwd + separador + "web" + separador + "libraries" + separador + "TV" + separador av_path = cwd + separador + "web" + separador + "libraries" + separador + "AV" + separador lib_path = cwd + separador + "lib" + separador lang_path = cwd + separador + "web" + separador + "lang" + separador vers_path = cwd + separador + "versions" + separador print(self.path) if self.path == "/save_config": content_length = int(self.headers["Content-Length"]) # <--- Gets the size of data post_data = self.rfile.read(content_length) # <--- Gets the data itself config = json.loads(post_data.decode("utf-8")) save_config(cwd + separador + "config.json", config) self.send_response(200) self.send_header("Content-Length", len(config)) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes(json.dumps(config), "utf-8")) if self.path == "/check_emby": content_length = int(self.headers["Content-Length"]) # <--- Gets the size of data post_data = self.rfile.read(content_length) # <--- Gets the data itself config = json.loads(post_data.decode("utf-8")) a = test_emby(config) if a == "OK": self.send_response(200) self.send_header("Content-Length", len(config)) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes(json.dumps(config), "utf-8")) status = get_state() if status["Playstate"] == "Not_Connected": save_config(cwd + separador + "config.json", config) emby_wsocket.ws_config = config restart() else: self.send_response(300) self.send_header("Content-Length", len("ERROR")) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes("ERROR", "utf-8")) return 0 if self.path == "/check_oppo": content_length = int(self.headers["Content-Length"]) # <--- Gets the size of data post_data = self.rfile.read(content_length) # <--- Gets the data itself config = json.loads(post_data.decode("utf-8")) a = test_oppo(config) if a == "OK": self.send_response(200) self.send_header("Content-Length", len(config)) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes(json.dumps(config), "utf-8")) else: self.send_response(300) self.send_header("Content-Length", len("ERROR")) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes("ERROR", "utf-8")) return 0 if self.path == "/test_path": content_length = int(self.headers["Content-Length"]) # <--- Gets the size of data post_data = self.rfile.read(content_length) # <--- Gets the data itself server = json.loads(post_data.decode("utf-8")) config = cargar_config(cwd + separador + "config.json", tv_path, av_path, lang_path) a = test_path(config, server) if a == "OK": self.send_response(200) self.send_header("Content-Length", len(server)) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes(json.dumps(server), "utf-8")) else: self.send_response(300) self.send_header("Content-Length", len("ERROR")) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes("ERROR", "utf-8")) return 0 if self.path == "/navigate_path": content_length = int(self.headers["Content-Length"]) # <--- Gets the size of data post_data = self.rfile.read(content_length) # <--- Gets the data itself path_obj = json.loads(post_data.decode("utf-8")) path = path_obj["path"] config = cargar_config(cwd + separador + "config.json", tv_path, av_path, lang_path) a = navigate_folder(path, config) a_json = json.dumps(a) print(len(a_json)) self.send_response(200) self.send_header("Content-Length", len(a_json)) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes(json.dumps(a), "utf-8")) return 0 if self.path == "/move_tv": content_length = int(self.headers["Content-Length"]) # <--- Gets the size of data post_data = self.rfile.read(content_length) # <--- Gets the data itself config = json.loads(post_data.decode("utf-8")) save_config(cwd + separador + "config.json", config) move_files(tv_path + config["TV_model"], lib_path) self.send_response(200) self.send_header("Content-Length", len(config)) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes(json.dumps(config), "utf-8")) restart() return 0 if self.path == "/move_av": content_length = int(self.headers["Content-Length"]) # <--- Gets the size of data post_data = self.rfile.read(content_length) # <--- Gets the data itself config = json.loads(post_data.decode("utf-8")) save_config(cwd + separador + "config.json", config) move_files(av_path + config["AV_model"], lib_path) self.send_response(200) self.send_header("Content-Length", len(config)) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes(json.dumps(config), "utf-8")) restart() return 0 if self.path == "/get_tv_key": content_length = int(self.headers["Content-Length"]) # <--- Gets the size of data post_data = self.rfile.read(content_length) # <--- Gets the data itself config = json.loads(post_data.decode("utf-8")) a = get_tv_key(config) if a == "OK": save_config(cwd + separador + "config.json", config) self.send_response(200) self.send_header("Content-Length", len(config)) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes(json.dumps(config), "utf-8")) else: self.send_response(300) self.send_header("Content-Length", len("ERROR")) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes("ERROR", "utf-8")) return 0 if self.path == "/tv_test_conn": content_length = int(self.headers["Content-Length"]) # <--- Gets the size of data post_data = self.rfile.read(content_length) # <--- Gets the data itself config = json.loads(post_data.decode("utf-8")) a = tv_test_conn(config) if a == "OK": self.send_response(200) self.send_header("Content-Length", len(config)) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes(json.dumps(config), "utf-8")) else: self.send_response(300) self.send_header("Content-Length", len("ERROR")) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes("ERROR", "utf-8")) return 0 if self.path == "/get_tv_sources": content_length = int(self.headers["Content-Length"]) # <--- Gets the size of data post_data = self.rfile.read(content_length) # <--- Gets the data itself config = json.loads(post_data.decode("utf-8")) a = get_tv_sources(config) if a == "OK": save_config(cwd + separador + "config.json", config) self.send_response(200) self.send_header("Content-Length", len(config)) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes(json.dumps(config), "utf-8")) else: self.send_response(300) self.send_header("Content-Length", len("ERROR")) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes("ERROR", "utf-8")) return 0 if self.path == "/get_av_sources": content_length = int(self.headers["Content-Length"]) # <--- Gets the size of data post_data = self.rfile.read(content_length) # <--- Gets the data itself config = json.loads(post_data.decode("utf-8")) a = get_hdmi_list(config) if a != None: config["AV_SOURCES"] = a save_config(cwd + separador + "config.json", config) self.send_response(200) self.send_header("Content-Length", len(config)) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes(json.dumps(config), "utf-8")) else: self.send_response(300) self.send_header("Content-Length", len("ERROR")) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes("ERROR", "utf-8")) return 0 if self.path == "/tv_test_init": content_length = int(self.headers["Content-Length"]) # <--- Gets the size of data post_data = self.rfile.read(content_length) # <--- Gets the data itself config = json.loads(post_data.decode("utf-8")) a = tv_change_hdmi(config) if a == "OK": self.send_response(200) self.send_header("Content-Length", len(config)) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes(json.dumps(config), "utf-8")) else: self.send_response(300) self.send_header("Content-Length", len("ERROR")) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes("ERROR", "utf-8")) return 0 if self.path == "/tv_test_end": content_length = int(self.headers["Content-Length"]) # <--- Gets the size of data post_data = self.rfile.read(content_length) # <--- Gets the data itself config = json.loads(post_data.decode("utf-8")) a = tv_set_prev(config) if a == "OK": self.send_response(200) self.send_header("Content-Length", len(config)) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes(json.dumps(config), "utf-8")) else: self.send_response(300) self.send_header("Content-Length", len("ERROR")) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes("ERROR", "utf-8")) return 0 if self.path == "/av_test_on": content_length = int(self.headers["Content-Length"]) # <--- Gets the size of data post_data = self.rfile.read(content_length) # <--- Gets the data itself config = json.loads(post_data.decode("utf-8")) a = av_check_power(config) if a == "OK": self.send_response(200) self.send_header("Content-Length", len(config)) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes(json.dumps(config), "utf-8")) else: self.send_response(300) self.send_header("Content-Length", len("ERROR")) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes("ERROR", "utf-8")) return 0 if self.path == "/av_test_off": content_length = int(self.headers["Content-Length"]) # <--- Gets the size of data post_data = self.rfile.read(content_length) # <--- Gets the data itself config = json.loads(post_data.decode("utf-8")) a = av_power_off(config) if a == "OK": self.send_response(200) self.send_header("Content-Length", len(config)) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes(json.dumps(config), "utf-8")) else: self.send_response(300) self.send_header("Content-Length", len("ERROR")) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes("ERROR", "utf-8")) return 0 if self.path == "/av_test_hdmi": content_length = int(self.headers["Content-Length"]) # <--- Gets the size of data post_data = self.rfile.read(content_length) # <--- Gets the data itself config = json.loads(post_data.decode("utf-8")) a = av_change_hdmi(config) if a == "OK": self.send_response(200) self.send_header("Content-Length", len(config)) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes(json.dumps(config), "utf-8")) else: self.send_response(300) self.send_header("Content-Length", len("ERROR")) self.send_header("Content-Type", "text/html") self.send_header("Access-Control-Allow-Credentials", "true") self.send_header("Access-Control-Allow-Origin", "*") self.end_headers() self.wfile.write(bytes("ERROR", "utf-8")) return 0 if __name__ == "__main__": cwd = os.path.dirname(os.path.abspath(__file__)) if sys.platform.startswith("win"): separador = "\\" else: separador = "/" config_file = cwd + separador + "config.json" resource_path = cwd + separador + "web" + separador + "resources" + separador html_path = cwd + separador + "web" + separador tv_path = cwd + separador + "web" + separador + "libraries" + separador + "TV" + separador av_path = cwd + separador + "web" + separador + "libraries" + separador + "AV" + separador lib_path = cwd + separador + "lib" + separador lang_path = cwd + separador + "web" + separador + "lang" + separador vers_path = cwd + separador + "versions" + separador config = cargar_config(config_file, tv_path, av_path, lang_path) logfile = cwd + separador + "emby_xnoppo_client_logging.log" lang = cargar_lang(lang_path + config["language"] + separador + "lang.js") if config["DebugLevel"] == 0: logging.basicConfig( format="%(asctime)s %(levelname)s: %(message)s", datefmt="%d/%m/%Y %I:%M:%S %p", level=logging.CRITICAL ) elif config["DebugLevel"] == 1: rfh = logging.handlers.RotatingFileHandler( filename=logfile, mode="a", maxBytes=50 * 1024 * 1024, backupCount=2, encoding=None, delay=0 ) logging.basicConfig( format="%(asctime)s %(levelname)s: %(message)s", datefmt="%d/%m/%Y %I:%M:%S %p", level=logging.INFO, handlers=[rfh] ) elif config["DebugLevel"] == 2: rfh = logging.handlers.RotatingFileHandler( filename=logfile, mode="a", maxBytes=5 * 1024 * 1024, backupCount=2, encoding=None, delay=0 ) logging.basicConfig( format="%(asctime)s %(levelname)s: %(message)s", datefmt="%d/%m/%Y %I:%M:%S %p", level=logging.DEBUG, handlers=[rfh] ) emby_wsocket = xnoppo_ws() emby_wsocket.ws_config = config emby_wsocket.config_file = config_file emby_wsocket.ws_lang = lang x = threading.Thread(target=thread_function, args=(emby_wsocket,)) x.start() espera = 0 estado_anterior = "" logging.debug("Arrancamos el Servidor Web\n") serverPort = 8090 webServer = HTTPServer(("", serverPort), MyServer) print("Server started http://%s:%s" % ("", serverPort)) try: webServer.serve_forever() except KeyboardInterrupt: pass webServer.server_close() logging.info("Fin proceso") logging.info("Finished") print("Server stopped.")
[ 485, 1930, 51, 1805, 222, 485, 6241, 1805, 222, 1097, 1930, 51, 1805, 1220, 3787, 5078, 29911, 49, 4818, 2077, 222, 485, 1153, 222, 485, 2379, 222, 485, 3377, 222, 485, 22296, 222, 485, 5188, 222, 1097, 5053, 51, 12306, 1186, 100, 3624, 1220, 837, 10361, 864, 100, 3624, 222, 1097, 5053, 51, 12306, 1186, 100, 544, 1220, 338, 222, 1097, 5053, 51, 93, 10361, 864, 1220, 338, 222, 1097, 5053, 51, 93, 10361, 864, 100, 16482, 1220, 338, 222, 485, 5053, 51, 93, 10361, 864, 100, 4583, 87, 222, 485, 23074, 222, 485, 24595, 222, 485, 26311, 222, 485, 5751, 222, 485, 5751, 51, 14453, 222, 485, 9680, 1058, 499, 222, 610, 640, 100, 1687, 2284, 303, 461, 332, 55, 51, 53, 54, 39, 499, 222, 610, 3682, 100, 1144, 45, 3624, 100, 1491, 731, 303, 1489, 459, 3032, 63, 8074, 678, 303, 13239, 100, 1491, 51, 1384, 365, 303, 1489, 459, 3032, 63, 11371, 318, 678, 499, 222, 610, 11683, 2284, 303, 1489, 459, 17498, 678, 303, 1614, 63, 310, 2667, 1186, 100, 124, 4825, 51, 4074, 365, 303, 2959, 63, 310, 5263, 51, 4788, 365, 303, 5263, 51, 4788, 365, 303, 1489, 459, 3522, 11683, 678, 499, 222, 610, 4166, 100, 1180, 45, 1180, 100, 781, 49, 1377, 731, 303, 642, 2177, 45, 1180, 100, 781, 49, 332, 124, 678, 641, 22060, 63, 310, 2379, 51, 5955, 45, 1180, 49, 22060, 49, 10549, 66, 57, 46, 303, 22060, 51, 2698, 303, 1614, 63, 310, 2667, 1186, 100, 124, 4825, 51, 3624, 100, 1180, 299, 1377, 310, 2667, 1186, 100, 124, 4825, 51, 12306, 1186, 3152, 51, 1180, 299, 1377, 303, 2959, 63, 310, 2667, 1186, 100, 124, 4825, 51, 3624, 100, 1180, 299, 1377, 499, 222, 610, 640, 100, 1311, 2284, 303, 2302, 299, 2172, 303, 2302, 1388, 2080, 1465, 299, 640, 100, 1687, 365, 303, 1614, 63, 310, 2302, 1388, 5202, 1311, 1465, 299, 2667, 1186, 100, 124, 4825, 51, 12306, 1186, 3152, 51, 1087, 1311, 310, 2302, 1388, 1087, 337, 1333, 1465, 299, 2667, 1186, 100, 124, 4825, 51, 12306, 1186, 3152, 51, 1087, 337, 1333, 310, 2302, 1388, 1805, 1465, 299, 2667, 1186, 100, 124, 4825, 51, 12306, 1186, 3152, 51, 1805, 310, 2302, 1388, 6204, 1465, 299, 2667, 1186, 100, 124, 4825, 51, 12306, 1186, 3152, 51, 6204, 310, 2302, 1388, 3633, 1465, 299, 2667, 1186, 100, 124, 4825, 51, 12306, 1186, 3152, 51, 3633, 310, 2302, 1388, 3075, 768, 1465, 299, 2667, 1186, 100, 124, 4825, 51, 12306, 1186, 3152, 51, 1719, 624, 310, 607, 13437, 331, 4005, 1916, 804, 303, 2959, 63, 310, 2302, 1388, 5202, 1311, 1465, 299, 332, 1355, 100, 11883, 39, 310, 2302, 1388, 1087, 337, 1333, 1465, 299, 3347, 310, 2302, 1388, 1805, 1465, 299, 3347, 310, 2302, 1388, 6204, 1465, 299, 3347, 310, 2302, 1388, 3633, 1465, 299, 3347, 310, 2302, 1388, 3075, 768, 1465, 299, 3347, 303, 2302, 1388, 6302, 100, 16374, 1465, 299, 9680, 1058, 51, 6302, 100, 11701, 365, 303, 2302, 1388, 1853, 100, 16374, 1465, 299, 9680, 1058, 51, 5010, 100, 5581, 941, 11701, 465, 607, 863, 902, 1178, 341, 17773, 451, 1674, 19334, 303, 1489, 45, 1088, 1058, 51, 5010, 100, 5581, 941, 11701, 46, 465, 1489, 45, 1535, 46, 303, 461, 2302, 499, 222, 610, 300, 26213, 100, 1180, 45, 1180, 100, 781, 49, 14996, 100, 1005, 49, 2458, 100, 1005, 49, 7285, 100, 1005, 731, 303, 642, 2177, 45, 1180, 100, 781, 49, 332, 119, 678, 641, 315, 63, 310, 1377, 299, 2379, 51, 963, 45, 107, 46, 310, 607, 2666, 100, 18809, 5537, 45, 1180, 46, 303, 315, 51, 2698, 303, 5533, 556, 2089, 1263, 1377, 2102, 303, 1377, 1388, 2080, 1465, 299, 640, 100, 1687, 365, 303, 1263, 299, 1377, 51, 390, 459, 7590, 519, 1254, 411, 3208, 46, 303, 1377, 1388, 7590, 519, 1254, 1465, 299, 1263, 303, 1263, 299, 1377, 51, 390, 459, 4909, 100, 483, 100, 20406, 411, 3208, 46, 303, 1377, 1388, 4909, 100, 483, 100, 20406, 1465, 299, 1263, 303, 1263, 299, 1377, 51, 390, 459, 16482, 100, 1184, 411, 7756, 303, 1377, 1388, 16482, 100, 1184, 1465, 299, 1263, 303, 1263, 299, 1377, 51, 390, 459, 16482, 100, 26763, 411, 11551, 303, 1377, 1388, 16482, 100, 26763, 1465, 299, 1263, 303, 1263, 299, 1377, 51, 390, 459, 4583, 100, 1184, 411, 7756, 303, 1377, 1388, 4583, 100, 1184, 1465, 299, 1263, 303, 1263, 299, 1377, 51, 390, 459, 4583, 100, 26763, 411, 11551, 303, 1377, 1388, 4583, 100, 26763, 1465, 299, 1263, 303, 1263, 299, 1377, 51, 390, 459, 16482, 100, 1442, 100, 1683, 411, 7756, 303, 1377, 1388, 16482, 100, 1442, 100, 1683, 1465, 299, 1263, 303, 1263, 299, 1377, 51, 390, 459, 16482, 100, 1442, 100, 435, 411, 7756, 303, 1377, 1388, 16482, 100, 1442, 100, 435, 1465, 299, 1263, 303, 1263, 299, 1377, 51, 390, 459, 472, 100, 7875, 100, 7526, 4557, 411, 244, 53, 46, 303, 1377, 1388, 472, 100, 7875, 100, 7526, 4557, 1465, 299, 1263, 303, 1263, 299, 1377, 51, 390, 459, 4583, 100, 3451, 411, 244, 55, 56, 46, 303, 1377, 1388, 4583, 100, 3451, 1465, 299, 1263, 303, 1263, 299, 1377, 51, 390, 459, 5470, 100, 539, 864, 100, 2962, 411, 244, 59, 53, 46, 303, 1377, 1388, 5470, 100, 539, 864, 100, 2962, 1465, 299, 1263, 303, 1263, 299, 1377, 51, 390, 459, 4210, 411, 332, 326, 50, 959, 678, 303, 1377, 1388, 4210, 1465, 299, 1263, 303, 1263, 299, 1377, 51, 390, 459, 1555, 100, 17100, 411, 3208, 46, 303, 1377, 1388, 1555, 100, 17100, 1465, 299, 1263, 303, 1263, 299, 1377, 51, 390, 459, 1702, 100, 17100, 411, 3208, 46, 303, 1377, 1388, 1702, 100, 17100, 1465, 299, 1263, 303, 1263, 299, 1377, 51, 390, 459, 8195, 100, 1021, 411, 244, 58, 46, 303, 1377, 1388, 8195, 100, 1021, 1465, 299, 1263, 303, 1263, 299, 1377, 51, 390, 459, 1571, 100, 6032, 411, 3208, 46, 303, 1377, 1388, 1571, 100, 6032, 1465, 299, 1263, 303, 1263, 299, 1377, 51, 390, 459, 41445, 378, 1246, 411, 3208, 46, 303, 1377, 1388, 41445, 378, 1246, 1465, 299, 1263, 303, 1263, 299, 1377, 51, 390, 459, 4768, 48394, 411, 3208, 46, 303, 1377, 1388, 4768, 48394, 1465, 299, 1263, 465, 5533, 913, 106, 2619, 428, 40665, 321, 303, 4588, 100, 1805, 299, 244, 53, 303, 2160, 100, 687, 299, 1377, 1388, 13540, 1465, 303, 456, 2160, 347, 2160, 100, 687, 63, 310, 1263, 299, 2160, 51, 390, 459, 1024, 100, 2966, 411, 3208, 46, 310, 2160, 100, 687, 96, 3189, 100, 1805, 11210, 1024, 100, 2966, 1465, 299, 1263, 310, 4588, 100, 1805, 299, 4588, 100, 1805, 494, 244, 54, 303, 5533, 409, 2763, 735, 428, 342, 45698, 428, 27566, 17123, 12605, 519, 331, 342, 2652, 711, 1733, 122, 4952, 51, 303, 434, 1377, 1388, 16482, 1465, 630, 332, 1844, 582, 310, 1377, 1388, 16482, 1465, 299, 2969, 303, 434, 1377, 1388, 16482, 1465, 630, 332, 2737, 582, 310, 1377, 1388, 16482, 1465, 299, 3208, 303, 434, 1377, 1388, 4583, 1465, 630, 332, 1844, 582, 310, 1377, 1388, 4583, 1465, 299, 2969, 303, 434, 1377, 1388, 4583, 1465, 630, 332, 2737, 582, 310, 1377, 1388, 4583, 1465, 299, 3208, 303, 1377, 1388, 13540, 1465, 299, 2160, 100, 687, 303, 1377, 1388, 7609, 100, 15617, 1465, 299, 640, 100, 1537, 100, 20419, 45, 7609, 100, 1005, 46, 303, 1377, 1388, 472, 100, 15617, 1465, 299, 640, 100, 1537, 100, 20419, 45, 472, 100, 1005, 46, 303, 1377, 1388, 28789, 1465, 299, 640, 100, 1537, 100, 20419, 45, 1600, 100, 1005, 46, 303, 461, 1377, 499, 222, 610, 1524, 100, 1687, 45, 1180, 731, 303, 2001, 299, 332, 662, 574, 1312, 51, 4499, 51, 527, 52, 3450, 709, 2560, 50, 2929, 52, 93, 10361, 864, 52, 1850, 52, 9564, 52, 1687, 51, 773, 39, 303, 4839, 299, 2172, 303, 1808, 299, 5188, 51, 390, 45, 983, 49, 4839, 66, 5090, 46, 303, 1522, 299, 2379, 51, 13428, 45, 2003, 51, 897, 46, 303, 1489, 45, 1687, 46, 303, 1489, 45, 1180, 1388, 1571, 100, 6032, 6957, 303, 434, 1377, 1388, 1571, 100, 6032, 1465, 630, 2969, 63, 310, 2419, 100, 1687, 299, 1522, 1388, 6032, 100, 1687, 1465, 310, 2419, 100, 1687, 100, 781, 299, 1522, 1388, 6032, 100, 1687, 100, 781, 1465, 303, 832, 63, 310, 2419, 100, 1687, 299, 1522, 1388, 8951, 100, 1687, 1465, 310, 2419, 100, 1687, 100, 781, 299, 1522, 1388, 8951, 100, 1687, 100, 781, 1465, 303, 837, 1365, 100, 1687, 299, 640, 100, 1687, 365, 303, 5137, 299, 2172, 303, 5137, 1388, 1687, 1465, 299, 2419, 100, 1687, 303, 5137, 1388, 781, 1465, 299, 2419, 100, 1687, 100, 781, 303, 1489, 45, 125, 1365, 100, 1687, 46, 303, 1489, 45, 2153, 100, 1687, 46, 303, 434, 837, 1365, 100, 1687, 350, 2419, 100, 1687, 63, 310, 5137, 1388, 909, 100, 1687, 1465, 299, 2969, 303, 832, 63, 310, 5137, 1388, 909, 100, 1687, 1465, 299, 3208, 303, 1489, 45, 5254, 46, 303, 461, 5137, 499, 222, 610, 1991, 100, 1687, 45, 1180, 49, 12481, 100, 1005, 49, 24402, 731, 303, 2001, 299, 332, 662, 574, 1312, 51, 4499, 51, 527, 52, 3450, 709, 2560, 50, 2929, 52, 93, 10361, 864, 52, 1850, 52, 9564, 52, 1687, 51, 773, 39, 303, 4839, 299, 2172, 303, 1808, 299, 5188, 51, 390, 45, 983, 49, 4839, 66, 5090, 46, 303, 1522, 299, 2379, 51, 13428, 45, 2003, 51, 897, 46, 303, 1489, 45, 1687, 46, 303, 434, 1377, 1388, 1571, 100, 6032, 1465, 630, 2969, 63, 310, 2419, 100, 1687, 299, 1522, 1388, 6032, 100, 1687, 1465, 310, 2419, 100, 1687, 100, 781, 299, 1522, 1388, 6032, 100, 1687, 100, 781, 1465, 303, 832, 63, 310, 2419, 100, 1687, 299, 1522, 1388, 8951, 100, 1687, 1465, 310, 2419, 100, 1687, 100, 781, 299, 1522, 1388, 8951, 100, 1687, 100, 781, 1465, 303, 2001, 55, 299, 332, 662, 574, 951, 51, 527, 52, 3450, 709, 2560, 50, 2929, 52, 93, 10361, 864, 52, 1312, 52, 1850, 52, 9564, 5694, 494, 2419, 100, 1687, 100, 781, 303, 4839, 299, 2172, 303, 1808, 55, 299, 5188, 51, 390, 45, 983, 55, 49, 4839, 66, 5090, 46, 303, 4891, 299, 12481, 100, 1005, 494, 2419, 100, 1687, 100, 781, 303, 642, 2177, 45, 3633, 49, 332, 12205, 678, 641, 315, 63, 310, 315, 51, 1838, 45, 2003, 55, 51, 1304, 46, 310, 315, 51, 2698, 365, 303, 23074, 51, 15402, 100, 8945, 45, 3633, 49, 24402, 46, 303, 434, 5263, 51, 5146, 51, 16030, 459, 4481, 10320, 310, 5481, 6725, 299, 2724, 1508, 303, 832, 63, 310, 5481, 6725, 299, 13198, 303, 14996, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1857, 39, 494, 5481, 6725, 494, 332, 20406, 39, 494, 5481, 6725, 494, 332, 16482, 39, 494, 5481, 6725, 303, 2458, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1857, 39, 494, 5481, 6725, 494, 332, 20406, 39, 494, 5481, 6725, 494, 332, 4583, 39, 494, 5481, 6725, 303, 434, 1377, 1388, 16482, 1465, 630, 2969, 480, 1377, 1388, 16482, 100, 1184, 1465, 882, 34863, 310, 5187, 100, 2558, 45, 7609, 100, 1005, 494, 1377, 1388, 16482, 100, 1184, 3461, 5053, 100, 1005, 46, 303, 434, 1377, 1388, 4583, 1465, 630, 2969, 480, 1377, 1388, 4583, 100, 1184, 1465, 882, 34863, 310, 5187, 100, 2558, 45, 472, 100, 1005, 494, 1377, 1388, 4583, 100, 1184, 3461, 5053, 100, 1005, 46, 303, 5137, 299, 2172, 303, 5137, 1388, 1687, 1465, 299, 2419, 100, 1687, 303, 5137, 1388, 781, 1465, 299, 2419, 100, 1687, 100, 781, 303, 5137, 1388, 909, 100, 1687, 1465, 299, 3208, 303, 461, 5137, 499, 222, 610, 300, 26213, 100, 1600, 45, 1180, 100, 781, 731, 303, 642, 2177, 45, 1180, 100, 781, 51, 4458, 45, 3750, 51, 390, 18280, 8657, 6198, 332, 119, 411, 7348, 366, 23844, 50, 54, 678, 641, 315, 63, 310, 1377, 299, 2379, 51, 963, 45, 107, 46, 310, 607, 2666, 100, 18809, 5537, 45, 1180, 46, 303, 315, 51, 2698, 303, 5533, 556, 2089, 1263, 1377, 2102, 303, 461, 1377, 499, 222, 610, 1018, 284, 100, 781, 45, 1857, 100, 781, 731, 303, 642, 2177, 45, 1857, 100, 781, 49, 332, 119, 411, 7348, 366, 3330, 61, 678, 641, 315, 63, 310, 1952, 299, 315, 51, 870, 365, 303, 315, 51, 2698, 303, 461, 1952, 499, 222, 610, 1018, 284, 100, 1296, 45, 1857, 100, 781, 731, 303, 642, 2177, 45, 1857, 100, 781, 49, 332, 4523, 678, 641, 315, 63, 310, 1952, 299, 315, 51, 870, 365, 303, 315, 51, 2698, 303, 461, 1952, 499, 222, 610, 913, 100, 1005, 45, 1180, 49, 2160, 731, 303, 40665, 321, 299, 640, 100, 2962, 100, 1005, 45, 1805, 1388, 12306, 1186, 100, 1233, 1465, 494, 2450, 881, 51, 4785, 123, 411, 2160, 46, 303, 1074, 55, 299, 913, 100, 2962, 100, 1005, 45, 1180, 49, 40665, 321, 1388, 830, 21582, 3461, 40665, 321, 1388, 7346, 367, 1371, 6957, 303, 461, 1074, 55, 499, 222, 610, 640, 100, 2962, 100, 1005, 45, 12953, 49, 2160, 100, 624, 731, 303, 15793, 299, 15793, 51, 3249, 45, 1805, 100, 624, 1388, 12306, 1186, 100, 1233, 3461, 2160, 100, 624, 1388, 27300, 116, 100, 1233, 6957, 303, 15793, 299, 15793, 51, 3249, 459, 11469, 411, 18469, 678, 303, 15793, 299, 15793, 51, 3249, 22904, 411, 44275, 303, 3619, 299, 13198, 303, 43779, 299, 15793, 51, 1828, 45, 1131, 46, 303, 43779, 299, 43779, 494, 244, 54, 303, 1175, 299, 15793, 51, 1828, 45, 1131, 49, 43779, 49, 2095, 45, 12953, 509, 303, 24950, 299, 15793, 96, 37860, 63, 3242, 98, 303, 29307, 13644, 299, 1175, 494, 244, 54, 303, 1074, 299, 1175, 494, 244, 54, 303, 2236, 1074, 868, 244, 53, 63, 310, 29307, 13644, 299, 1074, 494, 244, 54, 310, 1074, 299, 15793, 51, 1828, 45, 1131, 49, 29307, 13644, 49, 2095, 45, 12953, 509, 303, 21105, 2168, 299, 15793, 96, 474, 13644, 518, 2095, 45, 12953, 2201, 303, 1175, 299, 1175, 494, 244, 54, 303, 29307, 13644, 299, 29307, 13644, 449, 244, 54, 303, 6378, 367, 1371, 299, 15793, 96, 3242, 63, 474, 13644, 98, 303, 33818, 299, 2172, 303, 33818, 1388, 830, 21582, 1465, 299, 24950, 303, 33818, 1388, 7346, 367, 1371, 1465, 299, 6378, 367, 1371, 303, 33818, 1388, 75, 1211, 2168, 1465, 299, 21105, 2168, 303, 461, 33818, 499, 222, 610, 913, 100, 2962, 100, 1005, 45, 1180, 49, 24950, 49, 6378, 367, 1371, 731, 303, 3256, 9357, 7004, 45, 1180, 1388, 27300, 116, 100, 2046, 6957, 303, 607, 1489, 459, 628, 431, 5917, 476, 1871, 9366, 1862, 678, 303, 1074, 299, 1524, 100, 4825, 45, 1180, 46, 303, 434, 1074, 630, 244, 53, 63, 310, 1808, 100, 624, 59, 102, 299, 640, 1850, 33854, 1687, 45, 1180, 46, 310, 1808, 100, 624, 59, 104, 299, 640, 1920, 314, 29365, 45, 1180, 46, 310, 1808, 100, 624, 59, 103, 299, 640, 5536, 3055, 45, 1180, 46, 310, 1808, 100, 624, 59, 104, 299, 565, 612, 116, 3399, 285, 45, 1180, 46, 310, 1808, 100, 624, 59, 105, 299, 640, 1920, 314, 29365, 45, 1180, 46, 310, 1808, 100, 624, 59, 106, 299, 640, 3277, 1357, 45, 1180, 46, 310, 1808, 100, 624, 59, 107, 299, 640, 1920, 314, 29365, 45, 1180, 46, 310, 1808, 100, 624, 100, 286, 299, 3256, 7004, 697, 459, 74, 16954, 411, 1377, 46, 310, 1153, 51, 7860, 45, 54, 46, 310, 607, 1489, 459, 88, 23635, 5917, 31323, 301, 559, 17766, 763, 9366, 1862, 678, 310, 1808, 100, 624, 59, 103, 299, 640, 5536, 3055, 45, 1180, 46, 310, 2236, 1808, 100, 624, 59, 107, 51, 1828, 482, 1920, 314, 29365, 582, 1197, 704, 868, 244, 53, 63, 343, 1153, 51, 7860, 45, 54, 46, 343, 1808, 100, 624, 59, 107, 299, 640, 1920, 314, 29365, 45, 1180, 46, 343, 1808, 100, 624, 100, 286, 299, 3256, 7004, 697, 459, 17362, 92, 411, 1377, 46, 310, 3313, 100, 687, 299, 2379, 51, 13428, 45, 2003, 100, 624, 59, 107, 46, 310, 434, 1377, 1388, 3544, 2671, 1465, 868, 244, 53, 63, 343, 1489, 45, 2949, 100, 687, 46, 310, 47479, 299, 1377, 1388, 1555, 100, 17100, 1465, 310, 456, 3313, 347, 3313, 100, 687, 1388, 1920, 314, 29365, 18277, 343, 434, 3313, 1388, 444, 6567, 7647, 365, 630, 24950, 51, 7647, 2284, 419, 434, 3313, 1388, 1133, 100, 700, 1465, 630, 332, 17100, 582, 547, 47479, 299, 2969, 547, 1644, 419, 832, 63, 547, 47479, 299, 3208, 547, 1644, 310, 434, 47479, 63, 343, 1808, 100, 3632, 299, 10660, 83, 6900, 45, 1180, 49, 24950, 46, 310, 832, 63, 343, 1808, 100, 3632, 299, 10660, 29044, 2679, 1569, 1529, 798, 45, 1180, 49, 24950, 46, 310, 434, 1377, 1388, 23084, 100, 586, 1465, 630, 3208, 63, 343, 1153, 51, 7860, 45, 58, 46, 310, 1808, 100, 624, 59, 103, 299, 640, 5536, 3055, 45, 1180, 46, 310, 434, 47479, 63, 343, 1808, 100, 2962, 299, 10871, 7444, 83, 6900, 5653, 45, 1682, 333, 290, 49, 6378, 367, 1371, 49, 4343, 4343, 1377, 46, 310, 832, 63, 343, 1808, 100, 2962, 299, 10871, 7444, 5653, 45, 1682, 333, 290, 49, 6378, 367, 1371, 49, 4343, 4343, 1377, 46, 310, 1808, 299, 2379, 51, 13428, 45, 2003, 100, 2962, 46, 310, 607, 1489, 45, 2003, 46, 310, 434, 1377, 1388, 7590, 519, 1254, 1465, 630, 2969, 63, 343, 1074, 299, 4225, 1066, 7444, 5653, 45, 1180, 46, 310, 434, 1808, 1388, 3146, 1465, 630, 2969, 63, 343, 331, 299, 332, 2966, 39, 310, 832, 63, 343, 331, 299, 332, 13307, 39, 310, 461, 331, 303, 832, 63, 310, 1489, 459, 2042, 427, 19727, 38458, 301, 49, 334, 40841, 9178, 8545, 12552, 356, 2518, 1871, 9366, 1862, 16215, 17154, 435, 7026, 356, 949, 25187, 116, 678, 499, 222, 610, 913, 100, 423, 1186, 45, 1180, 731, 303, 1614, 63, 310, 14866, 1186, 3152, 299, 14866, 1186, 2233, 45, 1180, 46, 310, 1275, 100, 1357, 299, 14866, 1186, 3152, 51, 514, 100, 1357, 310, 434, 1275, 100, 1357, 1388, 3152, 1139, 9571, 625, 1465, 882, 34863, 343, 461, 332, 2966, 39, 310, 832, 63, 343, 461, 332, 10811, 39, 303, 2959, 63, 310, 461, 332, 10811, 39, 499, 222, 610, 913, 100, 539, 864, 45, 1180, 731, 303, 1074, 299, 1524, 100, 4825, 45, 1180, 46, 303, 434, 1074, 630, 244, 53, 63, 310, 461, 332, 2966, 39, 303, 832, 63, 310, 461, 332, 10811, 39, 499, 222, 610, 300, 15811, 100, 20406, 45, 1180, 731, 303, 1614, 63, 310, 14866, 1186, 3152, 299, 14866, 1186, 2233, 45, 1180, 46, 310, 11887, 100, 687, 299, 14866, 1186, 3152, 51, 390, 100, 514, 100, 4361, 45, 12306, 1186, 3152, 51, 514, 100, 1357, 1388, 1259, 9571, 625, 6957, 310, 11382, 299, 1627, 310, 456, 2221, 347, 11887, 100, 687, 63, 343, 4277, 299, 2172, 343, 4277, 1388, 577, 1465, 299, 2221, 1388, 577, 1465, 343, 4277, 1388, 625, 1465, 299, 2221, 1388, 625, 1465, 343, 4277, 1388, 4091, 1465, 299, 3208, 343, 1614, 63, 419, 5053, 100, 687, 299, 1377, 1388, 31794, 1465, 343, 2959, 63, 419, 5053, 100, 687, 299, 2172, 343, 456, 5053, 347, 5053, 100, 687, 63, 419, 434, 5053, 1388, 625, 1465, 630, 2221, 1388, 625, 18277, 547, 4277, 1388, 4091, 1465, 299, 5053, 1388, 4091, 1465, 343, 11382, 51, 1713, 45, 5261, 46, 310, 1377, 1388, 31794, 1465, 299, 11382, 310, 461, 244, 53, 303, 2959, 63, 310, 461, 244, 54, 499, 222, 610, 458, 100, 5261, 100, 2498, 45, 1180, 49, 4277, 444, 731, 303, 456, 4277, 347, 1377, 1388, 31794, 18277, 310, 434, 4277, 1388, 577, 1465, 630, 4277, 444, 63, 343, 461, 4277, 1388, 4091, 1465, 303, 461, 3208, 499, 222, 610, 640, 100, 48282, 27880, 45, 1180, 731, 303, 14866, 1186, 3152, 299, 14866, 1186, 2233, 45, 1180, 46, 303, 9826, 27880, 299, 14866, 1186, 3152, 51, 390, 100, 423, 1186, 100, 48282, 20419, 365, 303, 13600, 299, 1627, 303, 456, 24016, 347, 9826, 27880, 63, 310, 1671, 299, 244, 54, 310, 4537, 299, 458, 100, 5261, 100, 2498, 45, 1180, 49, 24016, 1388, 577, 6957, 310, 434, 1377, 1388, 4909, 100, 483, 100, 20406, 1465, 630, 2969, 63, 343, 4537, 299, 2969, 310, 434, 4537, 630, 2969, 63, 343, 456, 3743, 5653, 347, 24016, 1388, 1736, 27880, 18277, 419, 2160, 299, 2172, 419, 2160, 1388, 625, 1465, 299, 3743, 5653, 1388, 625, 1465, 419, 434, 1671, 868, 244, 54, 63, 547, 2160, 1388, 444, 1465, 299, 24016, 1388, 577, 1465, 494, 31019, 494, 615, 45, 1076, 46, 494, 35062, 419, 832, 63, 547, 2160, 1388, 444, 1465, 299, 24016, 1388, 577, 1465, 419, 2160, 1388, 12306, 1186, 100, 1233, 1465, 299, 3743, 5653, 1388, 1233, 1465, 419, 2160, 1388, 27300, 116, 100, 1233, 1465, 299, 13198, 419, 1614, 63, 547, 14964, 100, 687, 299, 1377, 1388, 13540, 1465, 419, 2959, 63, 547, 14964, 100, 687, 299, 2172, 419, 456, 14964, 347, 14964, 100, 687, 63, 547, 434, 2160, 1388, 12306, 1186, 100, 1233, 1465, 630, 14964, 1388, 12306, 1186, 100, 1233, 18277, 733, 2160, 1388, 444, 1465, 299, 14964, 1388, 444, 1465, 733, 2160, 1388, 27300, 116, 100, 1233, 1465, 299, 14964, 1388, 27300, 116, 100, 1233, 1465, 733, 2160, 1388, 1024, 100, 2966, 1465, 299, 14964, 1388, 1024, 100, 2966, 1465, 419, 13600, 51, 1713, 45, 1805, 46, 419, 1671, 299, 1671, 494, 244, 54, 303, 1377, 1388, 13540, 1465, 299, 13600, 499, 222, 610, 640, 100, 1537, 100, 20419, 45, 5687, 731, 303, 2355, 51, 31183, 45, 5687, 46, 303, 29178, 299, 2355, 51, 26730, 46854, 303, 31197, 2619, 299, 3208, 303, 1168, 100, 1537, 299, 1627, 303, 607, 331, 299, 1033, 303, 607, 1168, 100, 1537, 51, 1713, 45, 102, 46, 303, 456, 837, 347, 29178, 63, 310, 434, 2355, 51, 1005, 51, 34241, 45, 125, 731, 343, 1168, 100, 1537, 51, 1713, 45, 125, 46, 303, 461, 1168, 100, 1537, 499, 222, 610, 5187, 100, 2558, 45, 1634, 49, 3481, 731, 303, 2355, 51, 31183, 45, 1634, 46, 303, 1581, 100, 2558, 299, 2355, 51, 26730, 46854, 303, 456, 822, 100, 444, 347, 1581, 100, 2558, 63, 310, 3559, 100, 781, 100, 444, 299, 2355, 51, 1005, 51, 2548, 45, 1634, 49, 822, 100, 444, 46, 310, 434, 2355, 51, 1005, 51, 29837, 45, 2638, 100, 781, 100, 444, 731, 343, 23074, 51, 3014, 45, 2638, 100, 781, 100, 444, 49, 3481, 46, 303, 461, 244, 53, 499, 222, 610, 640, 100, 13224, 45, 1180, 731, 303, 1614, 63, 310, 14866, 1186, 3152, 299, 14866, 1186, 2233, 45, 1180, 46, 310, 9248, 299, 14866, 1186, 3152, 51, 390, 100, 423, 1186, 100, 13224, 365, 310, 1671, 299, 244, 53, 310, 5693, 100, 1452, 299, 1627, 310, 456, 3313, 347, 9248, 1388, 3648, 18277, 343, 1614, 63, 419, 434, 3313, 1388, 625, 1465, 882, 332, 93, 10361, 864, 582, 547, 3313, 1388, 577, 1465, 299, 3313, 1388, 577, 1465, 494, 332, 536, 332, 494, 3313, 1388, 37479, 1465, 547, 3313, 1388, 625, 1465, 299, 3313, 1388, 47397, 38518, 1465, 547, 5693, 100, 1452, 51, 1713, 45, 2949, 46, 343, 2959, 63, 419, 3119, 310, 1377, 1388, 13224, 1465, 299, 5693, 100, 1452, 310, 461, 332, 2966, 39, 303, 2959, 63, 310, 461, 332, 13307, 39, 499, 222, 842, 4318, 2077, 45, 1778, 5078, 29911, 731, 303, 684, 764, 100, 2804, 45, 803, 731, 310, 24402, 299, 2355, 51, 1005, 51, 7792, 45, 519, 51, 1005, 51, 21424, 4077, 781, 28130, 310, 434, 5263, 51, 5146, 51, 16030, 459, 4481, 10320, 343, 5481, 6725, 299, 2724, 1508, 310, 832, 63, 343, 5481, 6725, 299, 13198, 310, 2885, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1857, 39, 494, 5481, 6725, 494, 332, 5390, 39, 494, 5481, 6725, 310, 4177, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1857, 39, 494, 5481, 6725, 310, 14996, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1857, 39, 494, 5481, 6725, 494, 332, 20406, 39, 494, 5481, 6725, 494, 332, 16482, 39, 494, 5481, 6725, 310, 2458, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1857, 39, 494, 5481, 6725, 494, 332, 20406, 39, 494, 5481, 6725, 494, 332, 4583, 39, 494, 5481, 6725, 310, 7285, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1857, 39, 494, 5481, 6725, 494, 332, 1600, 39, 494, 5481, 6725, 310, 12481, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 9564, 39, 494, 5481, 6725, 603, 1489, 45, 803, 51, 1005, 46, 310, 434, 649, 51, 1005, 630, 2450, 423, 1186, 100, 2982, 51, 935, 582, 343, 613, 299, 1018, 284, 100, 781, 45, 935, 100, 1005, 494, 332, 423, 1186, 100, 2982, 51, 935, 678, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 897, 52, 935, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 110, 49, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 539, 864, 100, 2982, 51, 935, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 897, 52, 935, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 613, 299, 1018, 284, 100, 781, 45, 935, 100, 1005, 494, 332, 539, 864, 100, 2982, 51, 935, 678, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 110, 49, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 1379, 100, 2982, 51, 935, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 897, 52, 935, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 613, 299, 1018, 284, 100, 781, 45, 935, 100, 1005, 494, 332, 1379, 100, 2982, 51, 935, 678, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 110, 49, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 1005, 100, 2982, 51, 935, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 897, 52, 935, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 613, 299, 1018, 284, 100, 781, 45, 935, 100, 1005, 494, 332, 1005, 100, 2982, 51, 935, 678, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 110, 49, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 7609, 100, 2982, 51, 935, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 897, 52, 935, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 613, 299, 1018, 284, 100, 781, 45, 935, 100, 1005, 494, 332, 7609, 100, 2982, 51, 935, 678, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 110, 49, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 472, 100, 2982, 51, 935, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 897, 52, 935, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 613, 299, 1018, 284, 100, 781, 45, 935, 100, 1005, 494, 332, 472, 100, 2982, 51, 935, 678, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 110, 49, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 2476, 100, 2982, 51, 935, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 897, 52, 935, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 613, 299, 1018, 284, 100, 781, 45, 935, 100, 1005, 494, 332, 2476, 100, 2982, 51, 935, 678, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 110, 49, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 1535, 51, 935, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 897, 52, 935, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 613, 299, 1018, 284, 100, 781, 45, 935, 100, 1005, 494, 332, 1535, 51, 935, 678, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 110, 49, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 4771, 51, 935, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 897, 52, 935, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 613, 299, 1018, 284, 100, 781, 45, 935, 100, 1005, 494, 332, 4771, 51, 935, 678, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 110, 49, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 7004, 51, 935, 582, 343, 613, 299, 1018, 284, 100, 781, 45, 935, 100, 1005, 494, 332, 7004, 51, 935, 678, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 897, 52, 935, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 110, 49, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 4048, 50, 11232, 50, 56, 59, 125, 56, 59, 51, 1665, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 897, 52, 935, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 613, 299, 1018, 284, 100, 1296, 45, 3157, 100, 1005, 494, 332, 4048, 50, 11232, 50, 56, 59, 125, 56, 59, 51, 1665, 678, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 110, 509, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 472, 50, 16094, 50, 1584, 50, 55, 51, 3090, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 897, 52, 935, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 613, 299, 1018, 284, 100, 1296, 45, 3157, 100, 1005, 494, 332, 472, 50, 16094, 50, 1584, 50, 55, 51, 3090, 678, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 110, 509, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 39376, 51, 1665, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 897, 52, 935, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 613, 299, 1018, 284, 100, 1296, 45, 3157, 100, 1005, 494, 332, 39376, 51, 1665, 678, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 110, 509, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 125, 10361, 864, 100, 1180, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 3180, 52, 1279, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 331, 299, 300, 26213, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 14996, 100, 1005, 49, 2458, 100, 1005, 49, 7285, 100, 1005, 46, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 102, 490, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 125, 10361, 864, 100, 1180, 100, 1379, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 3180, 52, 1279, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 331, 299, 300, 26213, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 14996, 100, 1005, 49, 2458, 100, 1005, 49, 7285, 100, 1005, 46, 343, 300, 15811, 100, 20406, 45, 102, 46, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 102, 490, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 125, 10361, 864, 100, 1180, 100, 1920, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 3180, 52, 1279, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 331, 299, 300, 26213, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 14996, 100, 1005, 49, 2458, 100, 1005, 49, 7285, 100, 1005, 46, 343, 640, 100, 13224, 45, 102, 46, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 102, 490, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 1571, 100, 1687, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 3180, 52, 1279, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 1377, 299, 300, 26213, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 14996, 100, 1005, 49, 2458, 100, 1005, 49, 7285, 100, 1005, 46, 343, 331, 299, 1524, 100, 1687, 45, 1180, 46, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 102, 490, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 1896, 100, 1687, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 3180, 52, 1279, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 1377, 299, 300, 26213, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 14996, 100, 1005, 49, 2458, 100, 1005, 49, 7285, 100, 1005, 46, 343, 331, 299, 1991, 100, 1687, 45, 1180, 49, 12481, 100, 1005, 49, 24402, 46, 343, 11683, 365, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 102, 490, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 390, 100, 1311, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 3180, 52, 1279, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 331, 299, 640, 100, 1311, 365, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 102, 490, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 17498, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 897, 52, 935, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 331, 299, 332, 454, 19578, 39, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 102, 49, 332, 3330, 50, 61, 2152, 343, 11683, 365, 310, 434, 649, 51, 1005, 630, 2450, 8195, 100, 8501, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 3180, 52, 1279, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 331, 299, 300, 26213, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 14996, 100, 1005, 49, 2458, 100, 1005, 49, 7285, 100, 1005, 46, 343, 640, 100, 48282, 27880, 45, 102, 46, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 102, 490, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 1600, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 3180, 52, 1279, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 1377, 299, 300, 26213, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 14996, 100, 1005, 49, 2458, 100, 1005, 49, 7285, 100, 1005, 46, 343, 331, 299, 300, 26213, 100, 1600, 45, 1600, 100, 1005, 494, 1377, 1388, 4210, 1465, 494, 5481, 6725, 494, 332, 1600, 51, 773, 678, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 102, 490, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 51, 1828, 4229, 2729, 100, 697, 44912, 2394, 244, 53, 63, 343, 640, 100, 624, 299, 649, 51, 1005, 343, 1489, 45, 390, 100, 624, 46, 343, 331, 299, 2095, 4229, 2729, 100, 697, 68, 2729, 697, 33619, 343, 342, 299, 640, 100, 624, 96, 102, 518, 2095, 45, 390, 100, 624, 2201, 343, 1489, 45, 103, 46, 343, 1377, 299, 300, 26213, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 14996, 100, 1005, 49, 2458, 100, 1005, 49, 7285, 100, 1005, 46, 343, 3256, 9357, 7004, 45, 1180, 1388, 27300, 116, 100, 2046, 6957, 343, 1074, 299, 1524, 100, 4825, 45, 1180, 46, 343, 434, 342, 630, 332, 85, 586, 582, 419, 434, 1074, 630, 244, 53, 63, 547, 1808, 100, 624, 59, 102, 299, 640, 1850, 33854, 1687, 45, 1180, 46, 547, 1808, 100, 624, 59, 104, 299, 640, 1920, 314, 29365, 45, 1180, 46, 547, 1808, 100, 624, 59, 103, 299, 640, 5536, 3055, 45, 1180, 46, 547, 1808, 100, 624, 59, 104, 299, 565, 612, 116, 3399, 285, 45, 1180, 46, 547, 1808, 100, 624, 59, 105, 299, 640, 1920, 314, 29365, 45, 1180, 46, 547, 1808, 100, 624, 59, 106, 299, 640, 3277, 1357, 45, 1180, 46, 547, 1808, 100, 624, 59, 107, 299, 640, 1920, 314, 29365, 45, 1180, 46, 547, 1808, 100, 624, 100, 286, 299, 3256, 7004, 697, 459, 74, 16954, 411, 1377, 46, 547, 434, 1377, 1388, 4768, 48394, 1465, 630, 2969, 63, 733, 1153, 51, 7860, 45, 54, 46, 733, 1808, 100, 624, 100, 286, 299, 3256, 7004, 697, 459, 74, 16954, 411, 1377, 46, 547, 1153, 51, 7860, 45, 54, 46, 547, 1808, 100, 624, 59, 103, 299, 640, 5536, 3055, 45, 1180, 46, 343, 832, 63, 419, 1808, 100, 624, 100, 286, 299, 3256, 7004, 697, 45, 103, 49, 1377, 46, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 897, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 331, 299, 332, 1273, 39, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 102, 49, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 769, 51, 2787, 582, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 897, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 1377, 299, 300, 26213, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 14996, 100, 1005, 49, 2458, 100, 1005, 49, 7285, 100, 1005, 46, 343, 331, 299, 1018, 284, 100, 1296, 45, 15669, 494, 5481, 6725, 494, 332, 423, 1186, 100, 125, 10361, 864, 100, 1598, 100, 7506, 51, 769, 678, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 102, 509, 343, 461, 244, 53, 310, 832, 63, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 700, 411, 332, 897, 52, 935, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 10379, 935, 789, 1843, 789, 1333, 67, 662, 574, 2980, 31105, 51, 1107, 396, 1333, 873, 1843, 9603, 332, 3330, 50, 61, 2152, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 10379, 117, 67, 1123, 63, 925, 120, 396, 117, 5852, 925, 649, 51, 1005, 49, 332, 3330, 50, 61, 2152, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 10379, 1561, 9603, 332, 3330, 50, 61, 2152, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 10379, 117, 67, 2287, 458, 619, 2301, 2692, 2160, 1746, 117, 9603, 332, 3330, 50, 61, 2152, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 33477, 1561, 873, 935, 9603, 332, 3330, 50, 61, 2152, 465, 684, 764, 100, 3719, 45, 803, 731, 310, 24402, 299, 2355, 51, 1005, 51, 7792, 45, 519, 51, 1005, 51, 21424, 4077, 781, 28130, 310, 434, 5263, 51, 5146, 51, 16030, 459, 4481, 10320, 343, 5481, 6725, 299, 2724, 1508, 310, 832, 63, 343, 5481, 6725, 299, 13198, 310, 2885, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1857, 39, 494, 5481, 6725, 494, 332, 5390, 39, 494, 5481, 6725, 310, 4177, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1857, 39, 494, 5481, 6725, 310, 14996, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1857, 39, 494, 5481, 6725, 494, 332, 20406, 39, 494, 5481, 6725, 494, 332, 16482, 39, 494, 5481, 6725, 310, 2458, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1857, 39, 494, 5481, 6725, 494, 332, 20406, 39, 494, 5481, 6725, 494, 332, 4583, 39, 494, 5481, 6725, 310, 5053, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1379, 39, 494, 5481, 6725, 310, 7285, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1857, 39, 494, 5481, 6725, 494, 332, 1600, 39, 494, 5481, 6725, 310, 12481, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 9564, 39, 494, 5481, 6725, 603, 1489, 45, 803, 51, 1005, 46, 310, 434, 649, 51, 1005, 630, 2450, 2882, 100, 1180, 582, 343, 1813, 100, 1340, 299, 648, 45, 803, 51, 5090, 1388, 1795, 50, 2396, 6957, 244, 607, 350, 1577, 7132, 341, 1354, 451, 727, 343, 2381, 100, 624, 299, 649, 51, 119, 781, 51, 870, 45, 1304, 100, 1340, 46, 244, 607, 350, 1577, 7132, 341, 727, 8032, 343, 1377, 299, 2379, 51, 13428, 45, 1545, 100, 624, 51, 5480, 459, 3330, 50, 61, 2152, 343, 4166, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 1377, 46, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 45, 1180, 509, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 343, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 343, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 1180, 490, 332, 3330, 50, 61, 2152, 310, 434, 649, 51, 1005, 630, 2450, 1571, 100, 423, 1186, 582, 343, 1813, 100, 1340, 299, 648, 45, 803, 51, 5090, 1388, 1795, 50, 2396, 6957, 244, 607, 350, 1577, 7132, 341, 1354, 451, 727, 343, 2381, 100, 624, 299, 649, 51, 119, 781, 51, 870, 45, 1304, 100, 1340, 46, 244, 607, 350, 1577, 7132, 341, 727, 8032, 343, 1377, 299, 2379, 51, 13428, 45, 1545, 100, 624, 51, 5480, 459, 3330, 50, 61, 2152, 343, 331, 299, 913, 100, 423, 1186, 45, 1180, 46, 343, 434, 331, 630, 332, 2966, 582, 419, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 45, 1180, 509, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 1180, 490, 332, 3330, 50, 61, 2152, 419, 2302, 299, 640, 100, 1311, 365, 419, 434, 2302, 1388, 5202, 1311, 1465, 630, 332, 1355, 100, 11883, 582, 547, 4166, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 1377, 46, 547, 2667, 1186, 100, 124, 4825, 51, 3624, 100, 1180, 299, 1377, 547, 11683, 365, 343, 832, 63, 419, 649, 51, 2729, 100, 2003, 45, 56, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 459, 2946, 2152, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 459, 2946, 411, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 1571, 100, 539, 864, 582, 343, 1813, 100, 1340, 299, 648, 45, 803, 51, 5090, 1388, 1795, 50, 2396, 6957, 244, 607, 350, 1577, 7132, 341, 1354, 451, 727, 343, 2381, 100, 624, 299, 649, 51, 119, 781, 51, 870, 45, 1304, 100, 1340, 46, 244, 607, 350, 1577, 7132, 341, 727, 8032, 343, 1377, 299, 2379, 51, 13428, 45, 1545, 100, 624, 51, 5480, 459, 3330, 50, 61, 2152, 343, 331, 299, 913, 100, 539, 864, 45, 1180, 46, 343, 434, 331, 630, 332, 2966, 582, 419, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 45, 1180, 509, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 1180, 490, 332, 3330, 50, 61, 2152, 343, 832, 63, 419, 649, 51, 2729, 100, 2003, 45, 56, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 459, 2946, 2152, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 459, 2946, 411, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 881, 100, 1005, 582, 343, 1813, 100, 1340, 299, 648, 45, 803, 51, 5090, 1388, 1795, 50, 2396, 6957, 244, 607, 350, 1577, 7132, 341, 1354, 451, 727, 343, 2381, 100, 624, 299, 649, 51, 119, 781, 51, 870, 45, 1304, 100, 1340, 46, 244, 607, 350, 1577, 7132, 341, 727, 8032, 343, 2160, 299, 2379, 51, 13428, 45, 1545, 100, 624, 51, 5480, 459, 3330, 50, 61, 2152, 343, 1377, 299, 300, 26213, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 14996, 100, 1005, 49, 2458, 100, 1005, 49, 7285, 100, 1005, 46, 343, 331, 299, 913, 100, 1005, 45, 1180, 49, 2160, 46, 343, 434, 331, 630, 332, 2966, 582, 419, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 45, 1805, 509, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 1805, 490, 332, 3330, 50, 61, 2152, 343, 832, 63, 419, 649, 51, 2729, 100, 2003, 45, 56, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 459, 2946, 2152, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 459, 2946, 411, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 20480, 100, 1005, 582, 343, 1813, 100, 1340, 299, 648, 45, 803, 51, 5090, 1388, 1795, 50, 2396, 6957, 244, 607, 350, 1577, 7132, 341, 1354, 451, 727, 343, 2381, 100, 624, 299, 649, 51, 119, 781, 51, 870, 45, 1304, 100, 1340, 46, 244, 607, 350, 1577, 7132, 341, 727, 8032, 343, 1536, 100, 2085, 299, 2379, 51, 13428, 45, 1545, 100, 624, 51, 5480, 459, 3330, 50, 61, 2152, 343, 1536, 299, 1536, 100, 2085, 1388, 1005, 1465, 343, 1377, 299, 300, 26213, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 14996, 100, 1005, 49, 2458, 100, 1005, 49, 7285, 100, 1005, 46, 343, 331, 299, 19196, 100, 6204, 45, 1005, 49, 1377, 46, 343, 331, 100, 1279, 299, 2379, 51, 16961, 45, 102, 46, 343, 1489, 45, 1688, 45, 102, 100, 1279, 509, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 45, 102, 100, 1279, 509, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 343, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 343, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 102, 490, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 603, 434, 649, 51, 1005, 630, 2450, 1518, 100, 7609, 582, 343, 1813, 100, 1340, 299, 648, 45, 803, 51, 5090, 1388, 1795, 50, 2396, 6957, 244, 607, 350, 1577, 7132, 341, 1354, 451, 727, 343, 2381, 100, 624, 299, 649, 51, 119, 781, 51, 870, 45, 1304, 100, 1340, 46, 244, 607, 350, 1577, 7132, 341, 727, 8032, 343, 1377, 299, 2379, 51, 13428, 45, 1545, 100, 624, 51, 5480, 459, 3330, 50, 61, 2152, 343, 4166, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 1377, 46, 343, 5187, 100, 2558, 45, 7609, 100, 1005, 494, 1377, 1388, 16482, 100, 1184, 3461, 5053, 100, 1005, 46, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 45, 1180, 509, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 343, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 343, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 1180, 490, 332, 3330, 50, 61, 2152, 343, 11683, 365, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 1518, 100, 472, 582, 343, 1813, 100, 1340, 299, 648, 45, 803, 51, 5090, 1388, 1795, 50, 2396, 6957, 244, 607, 350, 1577, 7132, 341, 1354, 451, 727, 343, 2381, 100, 624, 299, 649, 51, 119, 781, 51, 870, 45, 1304, 100, 1340, 46, 244, 607, 350, 1577, 7132, 341, 727, 8032, 343, 1377, 299, 2379, 51, 13428, 45, 1545, 100, 624, 51, 5480, 459, 3330, 50, 61, 2152, 343, 4166, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 1377, 46, 343, 5187, 100, 2558, 45, 472, 100, 1005, 494, 1377, 1388, 4583, 100, 1184, 3461, 5053, 100, 1005, 46, 343, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 45, 1180, 509, 343, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 343, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 343, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 343, 649, 51, 435, 100, 5090, 365, 343, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 1180, 490, 332, 3330, 50, 61, 2152, 343, 11683, 365, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 390, 100, 7609, 100, 697, 582, 343, 1813, 100, 1340, 299, 648, 45, 803, 51, 5090, 1388, 1795, 50, 2396, 6957, 244, 607, 350, 1577, 7132, 341, 1354, 451, 727, 343, 2381, 100, 624, 299, 649, 51, 119, 781, 51, 870, 45, 1304, 100, 1340, 46, 244, 607, 350, 1577, 7132, 341, 727, 8032, 343, 1377, 299, 2379, 51, 13428, 45, 1545, 100, 624, 51, 5480, 459, 3330, 50, 61, 2152, 343, 331, 299, 640, 100, 7609, 100, 697, 45, 1180, 46, 343, 434, 331, 630, 332, 2966, 582, 419, 4166, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 1377, 46, 419, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 45, 1180, 509, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 1180, 490, 332, 3330, 50, 61, 2152, 343, 832, 63, 419, 649, 51, 2729, 100, 2003, 45, 56, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 459, 2946, 2152, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 459, 2946, 411, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 7609, 100, 881, 100, 3795, 582, 343, 1813, 100, 1340, 299, 648, 45, 803, 51, 5090, 1388, 1795, 50, 2396, 6957, 244, 607, 350, 1577, 7132, 341, 1354, 451, 727, 343, 2381, 100, 624, 299, 649, 51, 119, 781, 51, 870, 45, 1304, 100, 1340, 46, 244, 607, 350, 1577, 7132, 341, 727, 8032, 343, 1377, 299, 2379, 51, 13428, 45, 1545, 100, 624, 51, 5480, 459, 3330, 50, 61, 2152, 343, 331, 299, 14996, 100, 881, 100, 3795, 45, 1180, 46, 343, 434, 331, 630, 332, 2966, 582, 419, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 45, 1180, 509, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 1180, 490, 332, 3330, 50, 61, 2152, 343, 832, 63, 419, 649, 51, 2729, 100, 2003, 45, 56, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 459, 2946, 2152, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 459, 2946, 411, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 390, 100, 7609, 100, 11268, 582, 343, 1813, 100, 1340, 299, 648, 45, 803, 51, 5090, 1388, 1795, 50, 2396, 6957, 244, 607, 350, 1577, 7132, 341, 1354, 451, 727, 343, 2381, 100, 624, 299, 649, 51, 119, 781, 51, 870, 45, 1304, 100, 1340, 46, 244, 607, 350, 1577, 7132, 341, 727, 8032, 343, 1377, 299, 2379, 51, 13428, 45, 1545, 100, 624, 51, 5480, 459, 3330, 50, 61, 2152, 343, 331, 299, 640, 100, 7609, 100, 11268, 45, 1180, 46, 343, 434, 331, 630, 332, 2966, 582, 419, 4166, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 1377, 46, 419, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 45, 1180, 509, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 1180, 490, 332, 3330, 50, 61, 2152, 343, 832, 63, 419, 649, 51, 2729, 100, 2003, 45, 56, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 459, 2946, 2152, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 459, 2946, 411, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 390, 100, 472, 100, 11268, 582, 343, 1813, 100, 1340, 299, 648, 45, 803, 51, 5090, 1388, 1795, 50, 2396, 6957, 244, 607, 350, 1577, 7132, 341, 1354, 451, 727, 343, 2381, 100, 624, 299, 649, 51, 119, 781, 51, 870, 45, 1304, 100, 1340, 46, 244, 607, 350, 1577, 7132, 341, 727, 8032, 343, 1377, 299, 2379, 51, 13428, 45, 1545, 100, 624, 51, 5480, 459, 3330, 50, 61, 2152, 343, 331, 299, 640, 100, 7526, 4557, 100, 687, 45, 1180, 46, 343, 434, 331, 882, 1686, 63, 419, 1377, 1388, 4583, 100, 26763, 1465, 299, 331, 419, 4166, 100, 1180, 45, 15669, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 411, 1377, 46, 419, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 45, 1180, 509, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 1180, 490, 332, 3330, 50, 61, 2152, 343, 832, 63, 419, 649, 51, 2729, 100, 2003, 45, 56, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 459, 2946, 2152, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 459, 2946, 411, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 7609, 100, 881, 100, 1683, 582, 343, 1813, 100, 1340, 299, 648, 45, 803, 51, 5090, 1388, 1795, 50, 2396, 6957, 244, 607, 350, 1577, 7132, 341, 1354, 451, 727, 343, 2381, 100, 624, 299, 649, 51, 119, 781, 51, 870, 45, 1304, 100, 1340, 46, 244, 607, 350, 1577, 7132, 341, 727, 8032, 343, 1377, 299, 2379, 51, 13428, 45, 1545, 100, 624, 51, 5480, 459, 3330, 50, 61, 2152, 343, 331, 299, 14996, 100, 2357, 100, 7526, 4557, 45, 1180, 46, 343, 434, 331, 630, 332, 2966, 582, 419, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 45, 1180, 509, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 1180, 490, 332, 3330, 50, 61, 2152, 343, 832, 63, 419, 649, 51, 2729, 100, 2003, 45, 56, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 459, 2946, 2152, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 459, 2946, 411, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 7609, 100, 881, 100, 435, 582, 343, 1813, 100, 1340, 299, 648, 45, 803, 51, 5090, 1388, 1795, 50, 2396, 6957, 244, 607, 350, 1577, 7132, 341, 1354, 451, 727, 343, 2381, 100, 624, 299, 649, 51, 119, 781, 51, 870, 45, 1304, 100, 1340, 46, 244, 607, 350, 1577, 7132, 341, 727, 8032, 343, 1377, 299, 2379, 51, 13428, 45, 1545, 100, 624, 51, 5480, 459, 3330, 50, 61, 2152, 343, 331, 299, 14996, 100, 489, 100, 5599, 45, 1180, 46, 343, 434, 331, 630, 332, 2966, 582, 419, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 45, 1180, 509, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 1180, 490, 332, 3330, 50, 61, 2152, 343, 832, 63, 419, 649, 51, 2729, 100, 2003, 45, 56, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 459, 2946, 2152, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 459, 2946, 411, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 472, 100, 881, 100, 286, 582, 343, 1813, 100, 1340, 299, 648, 45, 803, 51, 5090, 1388, 1795, 50, 2396, 6957, 244, 607, 350, 1577, 7132, 341, 1354, 451, 727, 343, 2381, 100, 624, 299, 649, 51, 119, 781, 51, 870, 45, 1304, 100, 1340, 46, 244, 607, 350, 1577, 7132, 341, 727, 8032, 343, 1377, 299, 2379, 51, 13428, 45, 1545, 100, 624, 51, 5480, 459, 3330, 50, 61, 2152, 343, 331, 299, 2458, 100, 1571, 100, 7404, 45, 1180, 46, 343, 434, 331, 630, 332, 2966, 582, 419, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 45, 1180, 509, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 1180, 490, 332, 3330, 50, 61, 2152, 343, 832, 63, 419, 649, 51, 2729, 100, 2003, 45, 56, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 459, 2946, 2152, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 459, 2946, 411, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 472, 100, 881, 100, 1739, 582, 343, 1813, 100, 1340, 299, 648, 45, 803, 51, 5090, 1388, 1795, 50, 2396, 6957, 244, 607, 350, 1577, 7132, 341, 1354, 451, 727, 343, 2381, 100, 624, 299, 649, 51, 119, 781, 51, 870, 45, 1304, 100, 1340, 46, 244, 607, 350, 1577, 7132, 341, 727, 8032, 343, 1377, 299, 2379, 51, 13428, 45, 1545, 100, 624, 51, 5480, 459, 3330, 50, 61, 2152, 343, 331, 299, 2458, 100, 7404, 100, 1739, 45, 1180, 46, 343, 434, 331, 630, 332, 2966, 582, 419, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 45, 1180, 509, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 1180, 490, 332, 3330, 50, 61, 2152, 343, 832, 63, 419, 649, 51, 2729, 100, 2003, 45, 56, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 459, 2946, 2152, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 459, 2946, 411, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 310, 434, 649, 51, 1005, 630, 2450, 472, 100, 881, 100, 7526, 4557, 582, 343, 1813, 100, 1340, 299, 648, 45, 803, 51, 5090, 1388, 1795, 50, 2396, 6957, 244, 607, 350, 1577, 7132, 341, 1354, 451, 727, 343, 2381, 100, 624, 299, 649, 51, 119, 781, 51, 870, 45, 1304, 100, 1340, 46, 244, 607, 350, 1577, 7132, 341, 727, 8032, 343, 1377, 299, 2379, 51, 13428, 45, 1545, 100, 624, 51, 5480, 459, 3330, 50, 61, 2152, 343, 331, 299, 2458, 100, 2357, 100, 7526, 4557, 45, 1180, 46, 343, 434, 331, 630, 332, 2966, 582, 419, 649, 51, 2729, 100, 2003, 45, 55, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 45, 1180, 509, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 45, 1279, 51, 16961, 45, 1180, 490, 332, 3330, 50, 61, 2152, 343, 832, 63, 419, 649, 51, 2729, 100, 2003, 45, 56, 53, 53, 46, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 2396, 411, 2095, 459, 2946, 2152, 419, 649, 51, 2729, 100, 2127, 459, 1795, 50, 638, 411, 332, 897, 52, 935, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 10102, 411, 332, 1527, 678, 419, 649, 51, 2729, 100, 2127, 459, 2807, 50, 2436, 50, 6679, 50, 9016, 411, 11577, 678, 419, 649, 51, 435, 100, 5090, 365, 419, 649, 51, 124, 781, 51, 1838, 45, 3669, 459, 2946, 411, 332, 3330, 50, 61, 2152, 343, 461, 244, 53, 499, 222, 344, 1176, 444, 523, 630, 9609, 1850, 18021, 303, 24402, 299, 2355, 51, 1005, 51, 7792, 45, 519, 51, 1005, 51, 21424, 4077, 781, 28130, 303, 434, 5263, 51, 5146, 51, 16030, 459, 4481, 10320, 310, 5481, 6725, 299, 2724, 1508, 303, 832, 63, 310, 5481, 6725, 299, 13198, 303, 1377, 100, 781, 299, 24402, 494, 5481, 6725, 494, 332, 1180, 51, 1279, 39, 303, 2885, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1857, 39, 494, 5481, 6725, 494, 332, 5390, 39, 494, 5481, 6725, 303, 4177, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1857, 39, 494, 5481, 6725, 303, 14996, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1857, 39, 494, 5481, 6725, 494, 332, 20406, 39, 494, 5481, 6725, 494, 332, 16482, 39, 494, 5481, 6725, 303, 2458, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1857, 39, 494, 5481, 6725, 494, 332, 20406, 39, 494, 5481, 6725, 494, 332, 4583, 39, 494, 5481, 6725, 303, 5053, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1379, 39, 494, 5481, 6725, 303, 7285, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 1857, 39, 494, 5481, 6725, 494, 332, 1600, 39, 494, 5481, 6725, 303, 12481, 100, 1005, 299, 24402, 494, 5481, 6725, 494, 332, 9564, 39, 494, 5481, 6725, 303, 1377, 299, 300, 26213, 100, 1180, 45, 1180, 100, 781, 49, 14996, 100, 1005, 49, 2458, 100, 1005, 49, 7285, 100, 1005, 46, 303, 47119, 299, 24402, 494, 5481, 6725, 494, 332, 423, 1186, 100, 125, 10361, 864, 100, 1598, 100, 7506, 51, 769, 39, 303, 7285, 299, 300, 26213, 100, 1600, 45, 1600, 100, 1005, 494, 1377, 1388, 4210, 1465, 494, 5481, 6725, 494, 332, 1600, 51, 773, 678, 465, 434, 1377, 1388, 3544, 2671, 1465, 630, 244, 53, 63, 310, 5751, 51, 6404, 1081, 45, 343, 2224, 28664, 45, 321, 27760, 46, 120, 18207, 2675, 444, 46, 120, 63, 18207, 1454, 46, 120, 411, 2361, 3984, 28664, 105, 9731, 114, 9731, 94, 925, 78, 6081, 82, 6081, 88, 925, 117, 411, 3215, 66, 7506, 51, 32938, 310, 848, 303, 4378, 1377, 1388, 3544, 2671, 1465, 630, 244, 54, 63, 310, 559, 13531, 299, 5751, 51, 14453, 51, 6742, 1761, 991, 1985, 45, 343, 4891, 66, 38365, 49, 2945, 366, 102, 411, 1788, 3656, 66, 58, 53, 338, 244, 54, 53, 55, 57, 338, 244, 54, 53, 55, 57, 49, 12801, 1552, 66, 55, 49, 7348, 66, 2545, 49, 7826, 66, 53, 310, 848, 310, 5751, 51, 6404, 1081, 45, 343, 2224, 28664, 45, 321, 27760, 46, 120, 18207, 2675, 444, 46, 120, 63, 18207, 1454, 46, 120, 411, 2361, 3984, 28664, 105, 9731, 114, 9731, 94, 925, 78, 6081, 82, 6081, 88, 925, 117, 411, 3215, 66, 7506, 51, 1608, 49, 15089, 6094, 4939, 109, 98, 310, 848, 303, 4378, 1377, 1388, 3544, 2671, 1465, 630, 244, 55, 63, 310, 559, 13531, 299, 5751, 51, 14453, 51, 6742, 1761, 991, 1985, 45, 343, 4891, 66, 38365, 49, 2945, 366, 102, 411, 1788, 3656, 66, 58, 338, 244, 54, 53, 55, 57, 338, 244, 54, 53, 55, 57, 49, 12801, 1552, 66, 55, 49, 7348, 66, 2545, 49, 7826, 66, 53, 310, 848, 310, 5751, 51, 6404, 1081, 45, 343, 2224, 28664, 45, 321, 27760, 46, 120, 18207, 2675, 444, 46, 120, 63, 18207, 1454, 46, 120, 411, 2361, 3984, 28664, 105, 9731, 114, 9731, 94, 925, 78, 6081, 82, 6081, 88, 925, 117, 411, 3215, 66, 7506, 51, 2913, 49, 15089, 6094, 4939, 109, 98, 310, 848, 303, 2667, 1186, 100, 124, 4825, 299, 837, 10361, 864, 100, 3624, 365, 303, 2667, 1186, 100, 124, 4825, 51, 3624, 100, 1180, 299, 1377, 303, 2667, 1186, 100, 124, 4825, 51, 1180, 100, 781, 299, 1377, 100, 781, 303, 2667, 1186, 100, 124, 4825, 51, 3624, 100, 1600, 299, 7285, 303, 837, 299, 26311, 51, 3032, 45, 2000, 66, 3442, 100, 1144, 49, 2194, 4381, 423, 1186, 100, 124, 4825, 34133, 303, 837, 51, 1384, 365, 303, 44109, 102, 299, 244, 53, 303, 27214, 100, 297, 19142, 299, 3347, 465, 5751, 51, 2824, 459, 7729, 1981, 15608, 1871, 2074, 21582, 3718, 97, 115, 678, 303, 2160, 3451, 299, 244, 61, 53, 62, 53, 303, 2692, 2077, 299, 4818, 2077, 45, 13963, 2160, 3451, 490, 4318, 2077, 46, 303, 1489, 459, 2077, 7326, 1930, 574, 42, 120, 6081, 120, 39, 925, 2903, 411, 2160, 3451, 509, 303, 1614, 63, 310, 2692, 2077, 51, 6467, 100, 1463, 443, 365, 303, 2959, 21281, 19490, 63, 310, 3119, 303, 2692, 2077, 51, 1805, 100, 2698, 365, 303, 5751, 51, 1357, 459, 5387, 552, 22384, 678, 303, 5751, 51, 1357, 459, 14071, 678, 303, 1489, 459, 2077, 17877, 7164, 222 ]
[ "import", "Ġhttp", ".", "server", "Ċ", "import", "Ġsocket", "server", "Ċ", "from", "Ġhttp", ".", "server", "Ġimport", "ĠBase", "HTTP", "RequestHandler", ",", "ĠHTTP", "Server", "Ċ", "import", "Ġtime", "Ċ", "import", "Ġjson", "Ċ", "import", "Ġio", "Ċ", "import", "Ġurllib", "Ċ", "import", "Ġrequests", "Ċ", "from", "Ġlib", ".", "Em", "by", "_", "ws", "Ġimport", "Ġx", "nop", "po", "_", "ws", "Ċ", "from", "Ġlib", ".", "Em", "by", "_", "http", "Ġimport", "Ġ*", "Ċ", "from", "Ġlib", ".", "X", "nop", "po", "Ġimport", "Ġ*", "Ċ", "from", "Ġlib", ".", "X", "nop", "po", "_", "TV", "Ġimport", "Ġ*", "Ċ", "import", "Ġlib", ".", "X", "nop", "po", "_", "AV", "R", "Ċ", "import", "Ġshutil", "Ċ", "import", "Ġasyncio", "Ċ", "import", "Ġthreading", "Ċ", "import", "Ġlogging", "Ċ", "import", "Ġlogging", ".", "handlers", "Ċ", "import", "Ġps", "util", "ĊĊ", "Ċ", "def", "Ġget", "_", "version", "():", "ĊĠĠĠ", "Ġreturn", "Ġ\"", "2", ".", "0", "1", "\"", "ĊĊ", "Ċ", "def", "Ġthread", "_", "function", "(", "ws", "_", "object", "):", "ĊĠĠĠ", "Ġprint", "(\"", "Thread", ":", "Ġstarting", "\")", "ĊĠĠĠ", "Ġws", "_", "object", ".", "start", "()", "ĊĠĠĠ", "Ġprint", "(\"", "Thread", ":", "Ġfinish", "ing", "\")", "ĊĊ", "Ċ", "def", "Ġrestart", "():", "ĊĠĠĠ", "Ġprint", "(\"", "restart", "\")", "ĊĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠ", "Ġem", "by", "_", "w", "socket", ".", "stop", "()", "ĊĠĠĠ", "Ġexcept", ":", "ĊĠĠĠĠĠĠĠ", "Ġsys", ".", "exit", "()", "ĊĠĠĠ", "Ġsys", ".", "exit", "()", "ĊĠĠĠ", "Ġprint", "(\"", "fin", "Ġrestart", "\")", "ĊĊ", "Ċ", "def", "Ġsave", "_", "config", "(", "config", "_", "file", ",", "Ġconfig", "):", "ĊĠĠĠ", "Ġwith", "Ġopen", "(", "config", "_", "file", ",", "Ġ\"", "w", "\")", "Ġas", "Ġfw", ":", "ĊĠĠĠĠĠĠĠ", "Ġjson", ".", "dump", "(", "config", ",", "Ġfw", ",", "Ġindent", "=", "4", ")", "ĊĠĠĠ", "Ġfw", ".", "close", "ĊĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠ", "Ġem", "by", "_", "w", "socket", ".", "ws", "_", "config", "Ġ=", "Ġconfig", "ĊĠĠĠĠĠĠĠ", "Ġem", "by", "_", "w", "socket", ".", "Em", "by", "Session", ".", "config", "Ġ=", "Ġconfig", "ĊĠĠĠ", "Ġexcept", ":", "ĊĠĠĠĠĠĠĠ", "Ġem", "by", "_", "w", "socket", ".", "ws", "_", "config", "Ġ=", "Ġconfig", "ĊĊ", "Ċ", "def", "Ġget", "_", "state", "():", "ĊĠĠĠ", "Ġstatus", "Ġ=", "Ġ{}", "ĊĠĠĠ", "Ġstatus", "[\"", "Version", "\"]", "Ġ=", "Ġget", "_", "version", "()", "ĊĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠ", "Ġstatus", "[\"", "Play", "state", "\"]", "Ġ=", "Ġem", "by", "_", "w", "socket", ".", "Em", "by", "Session", ".", "play", "state", "ĊĠĠĠĠĠĠĠ", "Ġstatus", "[\"", "play", "ed", "title", "\"]", "Ġ=", "Ġem", "by", "_", "w", "socket", ".", "Em", "by", "Session", ".", "play", "ed", "title", "ĊĠĠĠĠĠĠĠ", "Ġstatus", "[\"", "server", "\"]", "Ġ=", "Ġem", "by", "_", "w", "socket", ".", "Em", "by", "Session", ".", "server", "ĊĠĠĠĠĠĠĠ", "Ġstatus", "[\"", "folder", "\"]", "Ġ=", "Ġem", "by", "_", "w", "socket", ".", "Em", "by", "Session", ".", "folder", "ĊĠĠĠĠĠĠĠ", "Ġstatus", "[\"", "filename", "\"]", "Ġ=", "Ġem", "by", "_", "w", "socket", ".", "Em", "by", "Session", ".", "filename", "ĊĠĠĠĠĠĠĠ", "Ġstatus", "[\"", "Current", "Data", "\"]", "Ġ=", "Ġem", "by", "_", "w", "socket", ".", "Em", "by", "Session", ".", "current", "data", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġgives", "Ġa", "Ġsingle", "Ġfloat", "Ġvalue", "ĊĠĠĠ", "Ġexcept", ":", "ĊĠĠĠĠĠĠĠ", "Ġstatus", "[\"", "Play", "state", "\"]", "Ġ=", "Ġ\"", "Not", "_", "Connected", "\"", "ĊĠĠĠĠĠĠĠ", "Ġstatus", "[\"", "play", "ed", "title", "\"]", "Ġ=", "Ġ\"\"", "ĊĠĠĠĠĠĠĠ", "Ġstatus", "[\"", "server", "\"]", "Ġ=", "Ġ\"\"", "ĊĠĠĠĠĠĠĠ", "Ġstatus", "[\"", "folder", "\"]", "Ġ=", "Ġ\"\"", "ĊĠĠĠĠĠĠĠ", "Ġstatus", "[\"", "filename", "\"]", "Ġ=", "Ġ\"\"", "ĊĠĠĠĠĠĠĠ", "Ġstatus", "[\"", "Current", "Data", "\"]", "Ġ=", "Ġ\"\"", "ĊĠĠĠ", "Ġstatus", "[\"", "cpu", "_", "perc", "\"]", "Ġ=", "Ġps", "util", ".", "cpu", "_", "percent", "()", "ĊĠĠĠ", "Ġstatus", "[\"", "mem", "_", "perc", "\"]", "Ġ=", "Ġps", "util", ".", "virtual", "_", "memory", "().", "percent", "ĊĊĠĠĠ", "Ġ#", "Ġyou", "Ġcan", "Ġhave", "Ġthe", "Ġpercentage", "Ġof", "Ġused", "ĠRAM", "ĊĠĠĠ", "Ġprint", "(", "ps", "util", ".", "virtual", "_", "memory", "().", "percent", ")", "ĊĊĠĠĠ", "Ġprint", "(", "status", ")", "ĊĠĠĠ", "Ġreturn", "Ġstatus", "ĊĊ", "Ċ", "def", "Ġc", "argar", "_", "config", "(", "config", "_", "file", ",", "Ġtv", "_", "path", ",", "Ġav", "_", "path", ",", "Ġlang", "_", "path", "):", "ĊĠĠĠ", "Ġwith", "Ġopen", "(", "config", "_", "file", ",", "Ġ\"", "r", "\")", "Ġas", "Ġf", ":", "ĊĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġjson", ".", "load", "(", "f", ")", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġver", "_", "configur", "acion", "(", "config", ")", "ĊĠĠĠ", "Ġf", ".", "close", "ĊĠĠĠ", "Ġ##", "Ġnew", "Ġoptions", "Ġdefault", "Ġconfig", "Ġvalues", "ĊĠĠĠ", "Ġconfig", "[\"", "Version", "\"]", "Ġ=", "Ġget", "_", "version", "()", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "Aut", "os", "cript", "\",", "ĠFalse", ")", "ĊĠĠĠ", "Ġconfig", "[\"", "Aut", "os", "cript", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "enable", "_", "all", "_", "libraries", "\",", "ĠFalse", ")", "ĊĠĠĠ", "Ġconfig", "[\"", "enable", "_", "all", "_", "libraries", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "TV", "_", "model", "\",", "Ġ\"\")", "ĊĠĠĠ", "Ġconfig", "[\"", "TV", "_", "model", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "TV", "_", "SOURCES", "\",", "Ġ[])", "ĊĠĠĠ", "Ġconfig", "[\"", "TV", "_", "SOURCES", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "AV", "_", "model", "\",", "Ġ\"\")", "ĊĠĠĠ", "Ġconfig", "[\"", "AV", "_", "model", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "AV", "_", "SOURCES", "\",", "Ġ[])", "ĊĠĠĠ", "Ġconfig", "[\"", "AV", "_", "SOURCES", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "TV", "_", "script", "_", "init", "\",", "Ġ\"\")", "ĊĠĠĠ", "Ġconfig", "[\"", "TV", "_", "script", "_", "init", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "TV", "_", "script", "_", "end", "\",", "Ġ\"\")", "ĊĠĠĠ", "Ġconfig", "[\"", "TV", "_", "script", "_", "end", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "av", "_", "delay", "_", "hd", "mi", "\",", "Ġ", "0", ")", "ĊĠĠĠ", "Ġconfig", "[\"", "av", "_", "delay", "_", "hd", "mi", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "AV", "_", "Port", "\",", "Ġ", "2", "3", ")", "ĊĠĠĠ", "Ġconfig", "[\"", "AV", "_", "Port", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "timeout", "_", "op", "po", "_", "mount", "\",", "Ġ", "6", "0", ")", "ĊĠĠĠ", "Ġconfig", "[\"", "timeout", "_", "op", "po", "_", "mount", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "language", "\",", "Ġ\"", "es", "-", "ES", "\")", "ĊĠĠĠ", "Ġconfig", "[\"", "language", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "default", "_", "nfs", "\",", "ĠFalse", ")", "ĊĠĠĠ", "Ġconfig", "[\"", "default", "_", "nfs", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "wait", "_", "nfs", "\",", "ĠFalse", ")", "ĊĠĠĠ", "Ġconfig", "[\"", "wait", "_", "nfs", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "refresh", "_", "time", "\",", "Ġ", "5", ")", "ĊĠĠĠ", "Ġconfig", "[\"", "refresh", "_", "time", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "check", "_", "beta", "\",", "ĠFalse", ")", "ĊĠĠĠ", "Ġconfig", "[\"", "check", "_", "beta", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "smb", "tr", "ick", "\",", "ĠFalse", ")", "ĊĠĠĠ", "Ġconfig", "[\"", "smb", "tr", "ick", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠ", "Ġdefault", "Ġ=", "Ġconfig", ".", "get", "(\"", "BR", "Disc", "\",", "ĠFalse", ")", "ĊĠĠĠ", "Ġconfig", "[\"", "BR", "Disc", "\"]", "Ġ=", "Ġdefault", "ĊĊĠĠĠ", "Ġ##", "Ġtest", "e", "ado", "Ġde", "Ġrut", "as", "ĊĠĠĠ", "Ġedit", "_", "server", "Ġ=", "Ġ", "0", "ĊĠĠĠ", "Ġserver", "_", "list", "Ġ=", "Ġconfig", "[\"", "servers", "\"]", "ĊĠĠĠ", "Ġfor", "Ġserver", "Ġin", "Ġserver", "_", "list", ":", "ĊĠĠĠĠĠĠĠ", "Ġdefault", "Ġ=", "Ġserver", ".", "get", "(\"", "Test", "_", "OK", "\",", "ĠFalse", ")", "ĊĠĠĠĠĠĠĠ", "Ġserver", "_", "list", "[", "edit", "_", "server", "][\"", "Test", "_", "OK", "\"]", "Ġ=", "Ġdefault", "ĊĠĠĠĠĠĠĠ", "Ġedit", "_", "server", "Ġ=", "Ġedit", "_", "server", "Ġ+", "Ġ", "1", "ĊĠĠĠ", "Ġ##", "ĠC", "amb", "io", "Ġde", "Ġb", "ooleans", "Ġde", "Ġtexto", "Ġant", "igu", "os", "Ġa", "Ġb", "ole", "ans", "Ġact", "u", "ales", ".", "ĊĠĠĠ", "Ġif", "Ġconfig", "[\"", "TV", "\"]", "Ġ==", "Ġ\"", "True", "\":", "ĊĠĠĠĠĠĠĠ", "Ġconfig", "[\"", "TV", "\"]", "Ġ=", "ĠTrue", "ĊĠĠĠ", "Ġif", "Ġconfig", "[\"", "TV", "\"]", "Ġ==", "Ġ\"", "False", "\":", "ĊĠĠĠĠĠĠĠ", "Ġconfig", "[\"", "TV", "\"]", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġif", "Ġconfig", "[\"", "AV", "\"]", "Ġ==", "Ġ\"", "True", "\":", "ĊĠĠĠĠĠĠĠ", "Ġconfig", "[\"", "AV", "\"]", "Ġ=", "ĠTrue", "ĊĠĠĠ", "Ġif", "Ġconfig", "[\"", "AV", "\"]", "Ġ==", "Ġ\"", "False", "\":", "ĊĠĠĠĠĠĠĠ", "Ġconfig", "[\"", "AV", "\"]", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġconfig", "[\"", "servers", "\"]", "Ġ=", "Ġserver", "_", "list", "ĊĠĠĠ", "Ġconfig", "[\"", "tv", "_", "dirs", "\"]", "Ġ=", "Ġget", "_", "dir", "_", "folders", "(", "tv", "_", "path", ")", "ĊĠĠĠ", "Ġconfig", "[\"", "av", "_", "dirs", "\"]", "Ġ=", "Ġget", "_", "dir", "_", "folders", "(", "av", "_", "path", ")", "ĊĠĠĠ", "Ġconfig", "[\"", "langs", "\"]", "Ġ=", "Ġget", "_", "dir", "_", "folders", "(", "lang", "_", "path", ")", "ĊĠĠĠ", "Ġreturn", "Ġconfig", "ĊĊ", "Ċ", "def", "Ġcheck", "_", "version", "(", "config", "):", "ĊĠĠĠ", "Ġurl", "Ġ=", "Ġ\"", "https", "://", "raw", ".", "githubusercontent", ".", "com", "/", "si", "ber", "ian", "-", "git", "/", "X", "nop", "po", "/", "main", "/", "versions", "/", "version", ".", "js", "\"", "ĊĠĠĠ", "Ġheaders", "Ġ=", "Ġ{}", "ĊĠĠĠ", "Ġresponse", "Ġ=", "Ġrequests", ".", "get", "(", "url", ",", "Ġheaders", "=", "headers", ")", "ĊĠĠĠ", "Ġversion", "Ġ=", "Ġjson", ".", "loads", "(", "response", ".", "text", ")", "ĊĠĠĠ", "Ġprint", "(", "version", ")", "ĊĠĠĠ", "Ġprint", "(", "config", "[\"", "check", "_", "beta", "\"])", "ĊĠĠĠ", "Ġif", "Ġconfig", "[\"", "check", "_", "beta", "\"]", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠ", "Ġlast", "_", "version", "Ġ=", "Ġversion", "[\"", "beta", "_", "version", "\"]", "ĊĠĠĠĠĠĠĠ", "Ġlast", "_", "version", "_", "file", "Ġ=", "Ġversion", "[\"", "beta", "_", "version", "_", "file", "\"]", "ĊĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠ", "Ġlast", "_", "version", "Ġ=", "Ġversion", "[\"", "curr", "_", "version", "\"]", "ĊĠĠĠĠĠĠĠ", "Ġlast", "_", "version", "_", "file", "Ġ=", "Ġversion", "[\"", "curr", "_", "version", "_", "file", "\"]", "ĊĠĠĠ", "Ġx", "no", "_", "version", "Ġ=", "Ġget", "_", "version", "()", "ĊĠĠĠ", "Ġresp", "Ġ=", "Ġ{}", "ĊĠĠĠ", "Ġresp", "[\"", "version", "\"]", "Ġ=", "Ġlast", "_", "version", "ĊĠĠĠ", "Ġresp", "[\"", "file", "\"]", "Ġ=", "Ġlast", "_", "version", "_", "file", "ĊĠĠĠ", "Ġprint", "(", "x", "no", "_", "version", ")", "ĊĠĠĠ", "Ġprint", "(", "last", "_", "version", ")", "ĊĠĠĠ", "Ġif", "Ġx", "no", "_", "version", "Ġ<", "Ġlast", "_", "version", ":", "ĊĠĠĠĠĠĠĠ", "Ġresp", "[\"", "new", "_", "version", "\"]", "Ġ=", "ĠTrue", "ĊĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠ", "Ġresp", "[\"", "new", "_", "version", "\"]", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġprint", "(", "resp", ")", "ĊĠĠĠ", "Ġreturn", "Ġresp", "ĊĊ", "Ċ", "def", "Ġupdate", "_", "version", "(", "config", ",", "Ġvers", "_", "path", ",", "Ġcwd", "):", "ĊĠĠĠ", "Ġurl", "Ġ=", "Ġ\"", "https", "://", "raw", ".", "githubusercontent", ".", "com", "/", "si", "ber", "ian", "-", "git", "/", "X", "nop", "po", "/", "main", "/", "versions", "/", "version", ".", "js", "\"", "ĊĠĠĠ", "Ġheaders", "Ġ=", "Ġ{}", "ĊĠĠĠ", "Ġresponse", "Ġ=", "Ġrequests", ".", "get", "(", "url", ",", "Ġheaders", "=", "headers", ")", "ĊĠĠĠ", "Ġversion", "Ġ=", "Ġjson", ".", "loads", "(", "response", ".", "text", ")", "ĊĠĠĠ", "Ġprint", "(", "version", ")", "ĊĠĠĠ", "Ġif", "Ġconfig", "[\"", "check", "_", "beta", "\"]", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠ", "Ġlast", "_", "version", "Ġ=", "Ġversion", "[\"", "beta", "_", "version", "\"]", "ĊĠĠĠĠĠĠĠ", "Ġlast", "_", "version", "_", "file", "Ġ=", "Ġversion", "[\"", "beta", "_", "version", "_", "file", "\"]", "ĊĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠ", "Ġlast", "_", "version", "Ġ=", "Ġversion", "[\"", "curr", "_", "version", "\"]", "ĊĠĠĠĠĠĠĠ", "Ġlast", "_", "version", "_", "file", "Ġ=", "Ġversion", "[\"", "curr", "_", "version", "_", "file", "\"]", "ĊĠĠĠ", "Ġurl", "2", "Ġ=", "Ġ\"", "https", "://", "github", ".", "com", "/", "si", "ber", "ian", "-", "git", "/", "X", "nop", "po", "/", "raw", "/", "main", "/", "versions", "/\"", "Ġ+", "Ġlast", "_", "version", "_", "file", "ĊĠĠĠ", "Ġheaders", "Ġ=", "Ġ{}", "ĊĠĠĠ", "Ġresponse", "2", "Ġ=", "Ġrequests", ".", "get", "(", "url", "2", ",", "Ġheaders", "=", "headers", ")", "ĊĠĠĠ", "Ġfilename", "Ġ=", "Ġvers", "_", "path", "Ġ+", "Ġlast", "_", "version", "_", "file", "ĊĠĠĠ", "Ġwith", "Ġopen", "(", "filename", ",", "Ġ\"", "wb", "\")", "Ġas", "Ġf", ":", "ĊĠĠĠĠĠĠĠ", "Ġf", ".", "write", "(", "response", "2", ".", "content", ")", "ĊĠĠĠĠĠĠĠ", "Ġf", ".", "close", "()", "ĊĠĠĠ", "Ġshutil", ".", "unpack", "_", "archive", "(", "filename", ",", "Ġcwd", ")", "ĊĠĠĠ", "Ġif", "Ġsys", ".", "platform", ".", "startswith", "(\"", "win", "\"):", "ĊĠĠĠĠĠĠĠ", "Ġsepar", "ador", "Ġ=", "Ġ\"\\", "\\\"", "ĊĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠ", "Ġsepar", "ador", "Ġ=", "Ġ\"/\"", "ĊĠĠĠ", "Ġtv", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "web", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "libraries", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "TV", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠ", "Ġav", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "web", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "libraries", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "AV", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠ", "Ġif", "Ġconfig", "[\"", "TV", "\"]", "Ġ==", "ĠTrue", "Ġand", "Ġconfig", "[\"", "TV", "_", "model", "\"]", "Ġ!=", "Ġ\"\":", "ĊĠĠĠĠĠĠĠ", "Ġmove", "_", "files", "(", "tv", "_", "path", "Ġ+", "Ġconfig", "[\"", "TV", "_", "model", "\"],", "Ġlib", "_", "path", ")", "ĊĠĠĠ", "Ġif", "Ġconfig", "[\"", "AV", "\"]", "Ġ==", "ĠTrue", "Ġand", "Ġconfig", "[\"", "AV", "_", "model", "\"]", "Ġ!=", "Ġ\"\":", "ĊĠĠĠĠĠĠĠ", "Ġmove", "_", "files", "(", "av", "_", "path", "Ġ+", "Ġconfig", "[\"", "AV", "_", "model", "\"],", "Ġlib", "_", "path", ")", "ĊĠĠĠ", "Ġresp", "Ġ=", "Ġ{}", "ĊĠĠĠ", "Ġresp", "[\"", "version", "\"]", "Ġ=", "Ġlast", "_", "version", "ĊĠĠĠ", "Ġresp", "[\"", "file", "\"]", "Ġ=", "Ġlast", "_", "version", "_", "file", "ĊĠĠĠ", "Ġresp", "[\"", "new", "_", "version", "\"]", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġreturn", "Ġresp", "ĊĊ", "Ċ", "def", "Ġc", "argar", "_", "lang", "(", "config", "_", "file", "):", "ĊĠĠĠ", "Ġwith", "Ġopen", "(", "config", "_", "file", ".", "encode", "(", "sys", ".", "get", "filesystem", "encoding", "()),", "Ġ\"", "r", "\",", "Ġencoding", "=\"", "latin", "-", "1", "\")", "Ġas", "Ġf", ":", "ĊĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġjson", ".", "load", "(", "f", ")", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġver", "_", "configur", "acion", "(", "config", ")", "ĊĠĠĠ", "Ġf", ".", "close", "ĊĠĠĠ", "Ġ##", "Ġnew", "Ġoptions", "Ġdefault", "Ġconfig", "Ġvalues", "ĊĠĠĠ", "Ġreturn", "Ġconfig", "ĊĊ", "Ċ", "def", "Ġle", "er", "_", "file", "(", "web", "_", "file", "):", "ĊĠĠĠ", "Ġwith", "Ġopen", "(", "web", "_", "file", ",", "Ġ\"", "r", "\",", "Ġencoding", "=\"", "utf", "8", "\")", "Ġas", "Ġf", ":", "ĊĠĠĠĠĠĠĠ", "Ġnum", "Ġ=", "Ġf", ".", "read", "()", "ĊĠĠĠ", "Ġf", ".", "close", "ĊĠĠĠ", "Ġreturn", "Ġnum", "ĊĊ", "Ċ", "def", "Ġle", "er", "_", "img", "(", "web", "_", "file", "):", "ĊĠĠĠ", "Ġwith", "Ġopen", "(", "web", "_", "file", ",", "Ġ\"", "rb", "\")", "Ġas", "Ġf", ":", "ĊĠĠĠĠĠĠĠ", "Ġnum", "Ġ=", "Ġf", ".", "read", "()", "ĊĠĠĠ", "Ġf", ".", "close", "ĊĠĠĠ", "Ġreturn", "Ġnum", "ĊĊ", "Ċ", "def", "Ġtest", "_", "path", "(", "config", ",", "Ġserver", "):", "ĊĠĠĠ", "Ġrut", "as", "Ġ=", "Ġget", "_", "mount", "_", "path", "(", "server", "[\"", "Em", "by", "_", "Path", "\"]", "Ġ+", "Ġ\"/", "test", ".", "mk", "v", "\",", "Ġserver", ")", "ĊĠĠĠ", "Ġresult", "2", "Ġ=", "Ġtest", "_", "mount", "_", "path", "(", "config", ",", "Ġrut", "as", "[\"", "Ser", "vidor", "\"],", "Ġrut", "as", "[\"", "Car", "pe", "ta", "\"])", "ĊĠĠĠ", "Ġreturn", "Ġresult", "2", "ĊĊ", "Ċ", "def", "Ġget", "_", "mount", "_", "path", "(", "movie", ",", "Ġserver", "_", "data", "):", "ĊĠĠĠ", "Ġmovie", "Ġ=", "Ġmovie", ".", "replace", "(", "server", "_", "data", "[\"", "Em", "by", "_", "Path", "\"],", "Ġserver", "_", "data", "[\"", "Opp", "o", "_", "Path", "\"])", "ĊĠĠĠ", "Ġmovie", "Ġ=", "Ġmovie", ".", "replace", "(\"", "\\\\\\\\", "\",", "Ġ\"\\\\", "\")", "ĊĠĠĠ", "Ġmovie", "Ġ=", "Ġmovie", ".", "replace", "(\"\\\\", "\",", "Ġ\"/\")", "ĊĠĠĠ", "Ġword", "Ġ=", "Ġ\"/\"", "ĊĠĠĠ", "Ġinicio", "Ġ=", "Ġmovie", ".", "find", "(", "word", ")", "ĊĠĠĠ", "Ġinicio", "Ġ=", "Ġinicio", "Ġ+", "Ġ", "1", "ĊĠĠĠ", "Ġfinal", "Ġ=", "Ġmovie", ".", "find", "(", "word", ",", "Ġinicio", ",", "Ġlen", "(", "movie", "))", "ĊĠĠĠ", "Ġservidor", "Ġ=", "Ġmovie", "[", "inicio", ":", "final", "]", "ĊĠĠĠ", "Ġult", "imo", "Ġ=", "Ġfinal", "Ġ+", "Ġ", "1", "ĊĠĠĠ", "Ġresult", "Ġ=", "Ġfinal", "Ġ+", "Ġ", "1", "ĊĠĠĠ", "Ġwhile", "Ġresult", "Ġ>", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġult", "imo", "Ġ=", "Ġresult", "Ġ+", "Ġ", "1", "ĊĠĠĠĠĠĠĠ", "Ġresult", "Ġ=", "Ġmovie", ".", "find", "(", "word", ",", "Ġult", "imo", ",", "Ġlen", "(", "movie", "))", "ĊĠĠĠ", "Ġfich", "ero", "Ġ=", "Ġmovie", "[", "ult", "imo", "Ġ:", "Ġlen", "(", "movie", ")]", "ĊĠĠĠ", "Ġfinal", "Ġ=", "Ġfinal", "Ġ+", "Ġ", "1", "ĊĠĠĠ", "Ġult", "imo", "Ġ=", "Ġult", "imo", "Ġ-", "Ġ", "1", "ĊĠĠĠ", "Ġcar", "pe", "ta", "Ġ=", "Ġmovie", "[", "final", ":", "ult", "imo", "]", "ĊĠĠĠ", "Ġresultado", "Ġ=", "Ġ{}", "ĊĠĠĠ", "Ġresultado", "[\"", "Ser", "vidor", "\"]", "Ġ=", "Ġservidor", "ĊĠĠĠ", "Ġresultado", "[\"", "Car", "pe", "ta", "\"]", "Ġ=", "Ġcar", "pe", "ta", "ĊĠĠĠ", "Ġresultado", "[\"", "F", "ich", "ero", "\"]", "Ġ=", "Ġfich", "ero", "ĊĠĠĠ", "Ġreturn", "Ġresultado", "ĊĊ", "Ċ", "def", "Ġtest", "_", "mount", "_", "path", "(", "config", ",", "Ġservidor", ",", "Ġcar", "pe", "ta", "):", "ĊĠĠĠ", "Ġsend", "notify", "remote", "(", "config", "[\"", "Opp", "o", "_", "IP", "\"])", "ĊĠĠĠ", "Ġ#", "Ġprint", "(\"", "Con", "ect", "ando", "Ġcon", "Ġel", "ĠOP", "PO", "\")", "ĊĠĠĠ", "Ġresult", "Ġ=", "Ġcheck", "_", "socket", "(", "config", ")", "ĊĠĠĠ", "Ġif", "Ġresult", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "a", "Ġ=", "Ġget", "main", "firmware", "version", "(", "config", ")", "ĊĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "c", "Ġ=", "Ġget", "dev", "ic", "elist", "(", "config", ")", "ĊĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "b", "Ġ=", "Ġget", "setup", "menu", "(", "config", ")", "ĊĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "c", "Ġ=", "ĠO", "pp", "o", "Sign", "in", "(", "config", ")", "ĊĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "d", "Ġ=", "Ġget", "dev", "ic", "elist", "(", "config", ")", "ĊĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "e", "Ġ=", "Ġget", "global", "info", "(", "config", ")", "ĊĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "f", "Ġ=", "Ġget", "dev", "ic", "elist", "(", "config", ")", "ĊĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "_", "on", "Ġ=", "Ġsend", "remote", "key", "(\"", "E", "JT", "\",", "Ġconfig", ")", "ĊĠĠĠĠĠĠĠ", "Ġtime", ".", "sleep", "(", "1", ")", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġprint", "(\"", "S", "olicit", "ando", "Ġmont", "ar", "Ġr", "uta", "Ġal", "ĠOP", "PO", "\")", "ĊĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "b", "Ġ=", "Ġget", "setup", "menu", "(", "config", ")", "ĊĠĠĠĠĠĠĠ", "Ġwhile", "Ġresponse", "_", "data", "6", "f", ".", "find", "('", "dev", "ic", "elist", "\":", "[]", "')", "Ġ>", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtime", ".", "sleep", "(", "1", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "f", "Ġ=", "Ġget", "dev", "ic", "elist", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "_", "on", "Ġ=", "Ġsend", "remote", "key", "(\"", "QP", "W", "\",", "Ġconfig", ")", "ĊĠĠĠĠĠĠĠ", "Ġdevice", "_", "list", "Ġ=", "Ġjson", ".", "loads", "(", "response", "_", "data", "6", "f", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġconfig", "[\"", "Debug", "Level", "\"]", "Ġ>", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(", "device", "_", "list", ")", "ĊĠĠĠĠĠĠĠ", "Ġnfs", "Ġ=", "Ġconfig", "[\"", "default", "_", "nfs", "\"]", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġdevice", "Ġin", "Ġdevice", "_", "list", "[\"", "dev", "ic", "elist", "\"]:", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdevice", "[\"", "name", "\"].", "upper", "()", "Ġ==", "Ġservidor", ".", "upper", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdevice", "[\"", "sub", "_", "type", "\"]", "Ġ==", "Ġ\"", "nfs", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġnfs", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġbreak", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġnfs", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġbreak", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnfs", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġresponse", "_", "login", "Ġ=", "ĠLogin", "N", "FS", "(", "config", ",", "Ġservidor", ")", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġresponse", "_", "login", "Ġ=", "ĠLogin", "Sam", "ba", "With", "Out", "ID", "(", "config", ",", "Ġservidor", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġconfig", "[\"", "Always", "_", "ON", "\"]", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtime", ".", "sleep", "(", "5", ")", "ĊĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "b", "Ġ=", "Ġget", "setup", "menu", "(", "config", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnfs", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġresponse", "_", "mount", "Ġ=", "Ġmount", "Shared", "N", "FS", "Folder", "(", "serv", "id", "or", ",", "Ġcar", "pe", "ta", ",", "Ġ\"\",", "Ġ\"\",", "Ġconfig", ")", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġresponse", "_", "mount", "Ġ=", "Ġmount", "Shared", "Folder", "(", "serv", "id", "or", ",", "Ġcar", "pe", "ta", ",", "Ġ\"\",", "Ġ\"\",", "Ġconfig", ")", "ĊĠĠĠĠĠĠĠ", "Ġresponse", "Ġ=", "Ġjson", ".", "loads", "(", "response", "_", "mount", ")", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġprint", "(", "response", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġconfig", "[\"", "Aut", "os", "cript", "\"]", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġresult", "Ġ=", "Ġum", "ount", "Shared", "Folder", "(", "config", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġresponse", "[\"", "success", "\"]", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġ\"", "OK", "\"", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġ\"", "FAILURE", "\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġa", "ĊĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "No", "Ġse", "Ġpuede", "Ġconect", "ar", ",", "Ġre", "visa", "Ġlas", "Ġconfigur", "aciones", "Ġo", "Ġque", "Ġel", "ĠOP", "PO", "Ġeste", "Ġenc", "end", "ido", "Ġo", "Ġen", "Ġrepos", "o", "\")", "ĊĊ", "Ċ", "def", "Ġtest", "_", "em", "by", "(", "config", "):", "ĊĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠ", "ĠEm", "by", "Session", "Ġ=", "ĠEm", "by", "Http", "(", "config", ")", "ĊĠĠĠĠĠĠĠ", "Ġuser", "_", "info", "Ġ=", "ĠEm", "by", "Session", ".", "user", "_", "info", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġuser", "_", "info", "[\"", "Session", "Info", "\"][\"", "Id", "\"]", "Ġ!=", "Ġ\"\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "OK", "\"", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "FAILED", "\"", "ĊĠĠĠ", "Ġexcept", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "FAILED", "\"", "ĊĊ", "Ċ", "def", "Ġtest", "_", "op", "po", "(", "config", "):", "ĊĠĠĠ", "Ġresult", "Ġ=", "Ġcheck", "_", "socket", "(", "config", ")", "ĊĠĠĠ", "Ġif", "Ġresult", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "OK", "\"", "ĊĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "FAILED", "\"", "ĊĊ", "Ċ", "def", "Ġc", "arga", "_", "libraries", "(", "config", "):", "ĊĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠ", "ĠEm", "by", "Session", "Ġ=", "ĠEm", "by", "Http", "(", "config", ")", "ĊĠĠĠĠĠĠĠ", "Ġviews", "_", "list", "Ġ=", "ĠEm", "by", "Session", ".", "get", "_", "user", "_", "views", "(", "Em", "by", "Session", ".", "user", "_", "info", "[\"", "User", "\"][\"", "Id", "\"])", "ĊĠĠĠĠĠĠĠ", "Ġlibraries", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġview", "Ġin", "Ġviews", "_", "list", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlibrary", "Ġ=", "Ġ{}", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlibrary", "[\"", "Name", "\"]", "Ġ=", "Ġview", "[\"", "Name", "\"]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlibrary", "[\"", "Id", "\"]", "Ġ=", "Ġview", "[\"", "Id", "\"]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlibrary", "[\"", "Active", "\"]", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġlib", "_", "list", "Ġ=", "Ġconfig", "[\"", "Libraries", "\"]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġexcept", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġlib", "_", "list", "Ġ=", "Ġ{}", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġlib", "Ġin", "Ġlib", "_", "list", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġlib", "[\"", "Id", "\"]", "Ġ==", "Ġview", "[\"", "Id", "\"]:", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġlibrary", "[\"", "Active", "\"]", "Ġ=", "Ġlib", "[\"", "Active", "\"]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlibraries", ".", "append", "(", "library", ")", "ĊĠĠĠĠĠĠĠ", "Ġconfig", "[\"", "Libraries", "\"]", "Ġ=", "Ġlibraries", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠ", "Ġexcept", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "1", "ĊĊ", "Ċ", "def", "Ġis", "_", "library", "_", "active", "(", "config", ",", "Ġlibrary", "name", "):", "ĊĠĠĠ", "Ġfor", "Ġlibrary", "Ġin", "Ġconfig", "[\"", "Libraries", "\"]:", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġlibrary", "[\"", "Name", "\"]", "Ġ==", "Ġlibrary", "name", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġlibrary", "[\"", "Active", "\"]", "ĊĠĠĠ", "Ġreturn", "ĠFalse", "ĊĊ", "Ċ", "def", "Ġget", "_", "selectable", "Folders", "(", "config", "):", "ĊĠĠĠ", "ĠEm", "by", "Session", "Ġ=", "ĠEm", "by", "Http", "(", "config", ")", "ĊĠĠĠ", "ĠMedia", "Folders", "Ġ=", "ĠEm", "by", "Session", ".", "get", "_", "em", "by", "_", "selectable", "folders", "()", "ĊĠĠĠ", "Ġservers", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġfor", "ĠFolder", "Ġin", "ĠMedia", "Folders", ":", "ĊĠĠĠĠĠĠĠ", "Ġindex", "Ġ=", "Ġ", "1", "ĊĠĠĠĠĠĠĠ", "Ġactive", "Ġ=", "Ġis", "_", "library", "_", "active", "(", "config", ",", "ĠFolder", "[\"", "Name", "\"])", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġconfig", "[\"", "enable", "_", "all", "_", "libraries", "\"]", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġactive", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġactive", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "ĠSub", "Folder", "Ġin", "ĠFolder", "[\"", "Sub", "Folders", "\"]:", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġserver", "Ġ=", "Ġ{}", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġserver", "[\"", "Id", "\"]", "Ġ=", "ĠSub", "Folder", "[\"", "Id", "\"]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġindex", "Ġ>", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġserver", "[\"", "name", "\"]", "Ġ=", "ĠFolder", "[\"", "Name", "\"]", "Ġ+", "Ġ\"(\"", "Ġ+", "Ġstr", "(", "index", ")", "Ġ+", "Ġ\")\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġserver", "[\"", "name", "\"]", "Ġ=", "ĠFolder", "[\"", "Name", "\"]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġserver", "[\"", "Em", "by", "_", "Path", "\"]", "Ġ=", "ĠSub", "Folder", "[\"", "Path", "\"]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġserver", "[\"", "Opp", "o", "_", "Path", "\"]", "Ġ=", "Ġ\"/\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġserv", "_", "list", "Ġ=", "Ġconfig", "[\"", "servers", "\"]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġexcept", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġserv", "_", "list", "Ġ=", "Ġ{}", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġserv", "Ġin", "Ġserv", "_", "list", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġserver", "[\"", "Em", "by", "_", "Path", "\"]", "Ġ==", "Ġserv", "[\"", "Em", "by", "_", "Path", "\"]:", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġserver", "[\"", "name", "\"]", "Ġ=", "Ġserv", "[\"", "name", "\"]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġserver", "[\"", "Opp", "o", "_", "Path", "\"]", "Ġ=", "Ġserv", "[\"", "Opp", "o", "_", "Path", "\"]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġserver", "[\"", "Test", "_", "OK", "\"]", "Ġ=", "Ġserv", "[\"", "Test", "_", "OK", "\"]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġservers", ".", "append", "(", "server", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġindex", "Ġ=", "Ġindex", "Ġ+", "Ġ", "1", "ĊĠĠĠ", "Ġconfig", "[\"", "servers", "\"]", "Ġ=", "Ġservers", "ĊĊ", "Ċ", "def", "Ġget", "_", "dir", "_", "folders", "(", "directory", "):", "ĊĠĠĠ", "Ġos", ".", "chdir", "(", "directory", ")", "ĊĠĠĠ", "Ġdirs", "Ġ=", "Ġos", ".", "listdir", "(\".\")", "ĊĠĠĠ", "Ġencontr", "ado", "Ġ=", "ĠFalse", "ĊĠĠĠ", "Ġlist", "_", "dir", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġ#", "Ġa", "Ġ=", "\"\"", "ĊĠĠĠ", "Ġ#", "Ġlist", "_", "dir", ".", "append", "(", "a", ")", "ĊĠĠĠ", "Ġfor", "Ġx", "Ġin", "Ġdirs", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġos", ".", "path", ".", "isdir", "(", "x", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlist", "_", "dir", ".", "append", "(", "x", ")", "ĊĠĠĠ", "Ġreturn", "Ġlist", "_", "dir", "ĊĊ", "Ċ", "def", "Ġmove", "_", "files", "(", "src", ",", "Ġdest", "):", "ĊĠĠĠ", "Ġos", ".", "chdir", "(", "src", ")", "ĊĠĠĠ", "Ġsrc", "_", "files", "Ġ=", "Ġos", ".", "listdir", "(\".\")", "ĊĠĠĠ", "Ġfor", "Ġfile", "_", "name", "Ġin", "Ġsrc", "_", "files", ":", "ĊĠĠĠĠĠĠĠ", "Ġfull", "_", "file", "_", "name", "Ġ=", "Ġos", ".", "path", ".", "join", "(", "src", ",", "Ġfile", "_", "name", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġos", ".", "path", ".", "isfile", "(", "full", "_", "file", "_", "name", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġshutil", ".", "copy", "(", "full", "_", "file", "_", "name", ",", "Ġdest", ")", "ĊĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĊ", "Ċ", "def", "Ġget", "_", "devices", "(", "config", "):", "ĊĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠ", "ĠEm", "by", "Session", "Ġ=", "ĠEm", "by", "Http", "(", "config", ")", "ĊĠĠĠĠĠĠĠ", "Ġdevices", "Ġ=", "ĠEm", "by", "Session", ".", "get", "_", "em", "by", "_", "devices", "()", "ĊĠĠĠĠĠĠĠ", "Ġindex", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġdev", "_", "temp", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġdevice", "Ġin", "Ġdevices", "[\"", "Items", "\"]:", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdevice", "[\"", "Id", "\"]", "Ġ!=", "Ġ\"", "X", "nop", "po", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdevice", "[\"", "Name", "\"]", "Ġ=", "Ġdevice", "[\"", "Name", "\"]", "Ġ+", "Ġ\"", "Ġ/", "Ġ\"", "Ġ+", "Ġdevice", "[\"", "AppName", "\"]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdevice", "[\"", "Id", "\"]", "Ġ=", "Ġdevice", "[\"", "Reported", "DeviceId", "\"]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdev", "_", "temp", ".", "append", "(", "device", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġexcept", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġpass", "ĊĠĠĠĠĠĠĠ", "Ġconfig", "[\"", "devices", "\"]", "Ġ=", "Ġdev", "_", "temp", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "OK", "\"", "ĊĠĠĠ", "Ġexcept", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "FAILURE", "\"", "ĊĊ", "Ċ", "class", "ĠMy", "Server", "(", "Base", "HTTP", "RequestHandler", "):", "ĊĠĠĠ", "Ġdef", "Ġdo", "_", "GET", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġcwd", "Ġ=", "Ġos", ".", "path", ".", "dirname", "(", "os", ".", "path", ".", "abspath", "(__", "file", "__))", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġsys", ".", "platform", ".", "startswith", "(\"", "win", "\"):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsepar", "ador", "Ġ=", "Ġ\"\\", "\\\"", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsepar", "ador", "Ġ=", "Ġ\"/\"", "ĊĠĠĠĠĠĠĠ", "Ġresource", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "web", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "resources", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠĠĠĠĠ", "Ġhtml", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "web", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠĠĠĠĠ", "Ġtv", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "web", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "libraries", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "TV", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠĠĠĠĠ", "Ġav", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "web", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "libraries", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "AV", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠĠĠĠĠ", "Ġlang", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "web", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "lang", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠĠĠĠĠ", "Ġvers", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "versions", "\"", "Ġ+", "Ġsepar", "ador", "ĊĊĠĠĠĠĠĠĠ", "Ġprint", "(", "self", ".", "path", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "em", "by", "_", "conf", ".", "html", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġi", "Ġ=", "Ġle", "er", "_", "file", "(", "html", "_", "path", "Ġ+", "Ġ\"", "em", "by", "_", "conf", ".", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "i", ",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "op", "po", "_", "conf", ".", "html", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġi", "Ġ=", "Ġle", "er", "_", "file", "(", "html", "_", "path", "Ġ+", "Ġ\"", "op", "po", "_", "conf", ".", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "i", ",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "lib", "_", "conf", ".", "html", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġi", "Ġ=", "Ġle", "er", "_", "file", "(", "html", "_", "path", "Ġ+", "Ġ\"", "lib", "_", "conf", ".", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "i", ",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "path", "_", "conf", ".", "html", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġi", "Ġ=", "Ġle", "er", "_", "file", "(", "html", "_", "path", "Ġ+", "Ġ\"", "path", "_", "conf", ".", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "i", ",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "tv", "_", "conf", ".", "html", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġi", "Ġ=", "Ġle", "er", "_", "file", "(", "html", "_", "path", "Ġ+", "Ġ\"", "tv", "_", "conf", ".", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "i", ",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "av", "_", "conf", ".", "html", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġi", "Ġ=", "Ġle", "er", "_", "file", "(", "html", "_", "path", "Ġ+", "Ġ\"", "av", "_", "conf", ".", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "i", ",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "other", "_", "conf", ".", "html", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġi", "Ġ=", "Ġle", "er", "_", "file", "(", "html", "_", "path", "Ġ+", "Ġ\"", "other", "_", "conf", ".", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "i", ",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "status", ".", "html", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġi", "Ġ=", "Ġle", "er", "_", "file", "(", "html", "_", "path", "Ġ+", "Ġ\"", "status", ".", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "i", ",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "help", ".", "html", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġi", "Ġ=", "Ġle", "er", "_", "file", "(", "html", "_", "path", "Ġ+", "Ġ\"", "help", ".", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "i", ",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "remote", ".", "html", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġi", "Ġ=", "Ġle", "er", "_", "file", "(", "html", "_", "path", "Ġ+", "Ġ\"", "remote", ".", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "i", ",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "android", "-", "chrome", "-", "3", "6", "x", "3", "6", ".", "png", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġi", "Ġ=", "Ġle", "er", "_", "img", "(", "resource", "_", "path", "Ġ+", "Ġ\"", "android", "-", "chrome", "-", "3", "6", "x", "3", "6", ".", "png", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "i", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "av", "-", "receiver", "-", "icon", "-", "2", ".", "jpg", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġi", "Ġ=", "Ġle", "er", "_", "img", "(", "resource", "_", "path", "Ġ+", "Ġ\"", "av", "-", "receiver", "-", "icon", "-", "2", ".", "jpg", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "i", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "dragon", ".", "png", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġi", "Ġ=", "Ġle", "er", "_", "img", "(", "resource", "_", "path", "Ġ+", "Ġ\"", "dragon", ".", "png", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "i", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "x", "nop", "po", "_", "config", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "application", "/", "json", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġc", "argar", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġtv", "_", "path", ",", "Ġav", "_", "path", ",", "Ġlang", "_", "path", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "a", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "x", "nop", "po", "_", "config", "_", "lib", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "application", "/", "json", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġc", "argar", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġtv", "_", "path", ",", "Ġav", "_", "path", ",", "Ġlang", "_", "path", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġc", "arga", "_", "libraries", "(", "a", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "a", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "x", "nop", "po", "_", "config", "_", "dev", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "application", "/", "json", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġc", "argar", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġtv", "_", "path", ",", "Ġav", "_", "path", ",", "Ġlang", "_", "path", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġget", "_", "devices", "(", "a", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "a", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "check", "_", "version", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "application", "/", "json", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġc", "argar", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġtv", "_", "path", ",", "Ġav", "_", "path", ",", "Ġlang", "_", "path", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġcheck", "_", "version", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "a", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "update", "_", "version", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "application", "/", "json", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġc", "argar", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġtv", "_", "path", ",", "Ġav", "_", "path", ",", "Ġlang", "_", "path", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġupdate", "_", "version", "(", "config", ",", "Ġvers", "_", "path", ",", "Ġcwd", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġrestart", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "a", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "get", "_", "state", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "application", "/", "json", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġget", "_", "state", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "a", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "restart", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġ\"", "Re", "starting", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "a", ",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġrestart", "()", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "refresh", "_", "paths", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "application", "/", "json", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġc", "argar", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġtv", "_", "path", ",", "Ġav", "_", "path", ",", "Ġlang", "_", "path", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġget", "_", "selectable", "Folders", "(", "a", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "a", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "lang", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "application", "/", "json", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġc", "argar", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġtv", "_", "path", ",", "Ġav", "_", "path", ",", "Ġlang", "_", "path", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġc", "argar", "_", "lang", "(", "lang", "_", "path", "Ġ+", "Ġconfig", "[\"", "language", "\"]", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "lang", ".", "js", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "a", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", ".", "find", "(\"/", "send", "_", "key", "?\")", "Ġ>=", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġget", "_", "data", "Ġ=", "Ġself", ".", "path", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(", "get", "_", "data", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġlen", "(\"/", "send", "_", "key", "?", "send", "key", "=\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġb", "Ġ=", "Ġget", "_", "data", "[", "a", "Ġ:", "Ġlen", "(", "get", "_", "data", ")]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(", "b", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġc", "argar", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġtv", "_", "path", ",", "Ġav", "_", "path", ",", "Ġlang", "_", "path", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsend", "notify", "remote", "(", "config", "[\"", "Opp", "o", "_", "IP", "\"])", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġresult", "Ġ=", "Ġcheck", "_", "socket", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġb", "Ġ==", "Ġ\"", "P", "ON", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġresult", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "a", "Ġ=", "Ġget", "main", "firmware", "version", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "c", "Ġ=", "Ġget", "dev", "ic", "elist", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "b", "Ġ=", "Ġget", "setup", "menu", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "c", "Ġ=", "ĠO", "pp", "o", "Sign", "in", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "d", "Ġ=", "Ġget", "dev", "ic", "elist", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "e", "Ġ=", "Ġget", "global", "info", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "f", "Ġ=", "Ġget", "dev", "ic", "elist", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "_", "on", "Ġ=", "Ġsend", "remote", "key", "(\"", "E", "JT", "\",", "Ġconfig", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġconfig", "[\"", "BR", "Disc", "\"]", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtime", ".", "sleep", "(", "1", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "_", "on", "Ġ=", "Ġsend", "remote", "key", "(\"", "E", "JT", "\",", "Ġconfig", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtime", ".", "sleep", "(", "1", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "6", "b", "Ġ=", "Ġget", "setup", "menu", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresponse", "_", "data", "_", "on", "Ġ=", "Ġsend", "remote", "key", "(", "b", ",", "Ġconfig", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "text", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġ\"", "ok", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "a", ",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "log", ".", "txt", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "text", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġc", "argar", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġtv", "_", "path", ",", "Ġav", "_", "path", ",", "Ġlang", "_", "path", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġle", "er", "_", "img", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "em", "by", "_", "x", "nop", "po", "_", "client", "_", "logging", ".", "log", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "a", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(\"<", "html", "><", "head", "><", "title", ">", "https", "://", "python", "basics", ".", "org", "</", "title", "></", "head", ">\",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(\"<", "p", ">", "Request", ":", "Ġ%", "s", "</", "p", ">\"", "Ġ%", "Ġself", ".", "path", ",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(\"<", "body", ">\",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(\"<", "p", ">", "This", "Ġis", "Ġan", "Ġexample", "Ġweb", "Ġserver", ".</", "p", ">\",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(\"</", "body", "></", "html", ">\",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĊĠĠĠ", "Ġdef", "Ġdo", "_", "POST", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġcwd", "Ġ=", "Ġos", ".", "path", ".", "dirname", "(", "os", ".", "path", ".", "abspath", "(__", "file", "__))", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġsys", ".", "platform", ".", "startswith", "(\"", "win", "\"):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsepar", "ador", "Ġ=", "Ġ\"\\", "\\\"", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsepar", "ador", "Ġ=", "Ġ\"/\"", "ĊĠĠĠĠĠĠĠ", "Ġresource", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "web", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "resources", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠĠĠĠĠ", "Ġhtml", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "web", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠĠĠĠĠ", "Ġtv", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "web", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "libraries", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "TV", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠĠĠĠĠ", "Ġav", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "web", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "libraries", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "AV", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠĠĠĠĠ", "Ġlib", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "lib", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠĠĠĠĠ", "Ġlang", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "web", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "lang", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠĠĠĠĠ", "Ġvers", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "versions", "\"", "Ġ+", "Ġsepar", "ador", "ĊĊĠĠĠĠĠĠĠ", "Ġprint", "(", "self", ".", "path", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "save", "_", "config", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontent", "_", "length", "Ġ=", "Ġint", "(", "self", ".", "headers", "[\"", "Content", "-", "Length", "\"])", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġsize", "Ġof", "Ġdata", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpost", "_", "data", "Ġ=", "Ġself", ".", "r", "file", ".", "read", "(", "content", "_", "length", ")", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġdata", "Ġitself", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġjson", ".", "loads", "(", "post", "_", "data", ".", "decode", "(\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsave", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġconfig", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(", "config", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "config", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "check", "_", "em", "by", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontent", "_", "length", "Ġ=", "Ġint", "(", "self", ".", "headers", "[\"", "Content", "-", "Length", "\"])", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġsize", "Ġof", "Ġdata", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpost", "_", "data", "Ġ=", "Ġself", ".", "r", "file", ".", "read", "(", "content", "_", "length", ")", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġdata", "Ġitself", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġjson", ".", "loads", "(", "post", "_", "data", ".", "decode", "(\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġtest", "_", "em", "by", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġa", "Ġ==", "Ġ\"", "OK", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(", "config", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "config", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġstatus", "Ġ=", "Ġget", "_", "state", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġstatus", "[\"", "Play", "state", "\"]", "Ġ==", "Ġ\"", "Not", "_", "Connected", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġsave", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġconfig", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġem", "by", "_", "w", "socket", ".", "ws", "_", "config", "Ġ=", "Ġconfig", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġrestart", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "3", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(\"", "ERROR", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(\"", "ERROR", "\",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "check", "_", "op", "po", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontent", "_", "length", "Ġ=", "Ġint", "(", "self", ".", "headers", "[\"", "Content", "-", "Length", "\"])", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġsize", "Ġof", "Ġdata", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpost", "_", "data", "Ġ=", "Ġself", ".", "r", "file", ".", "read", "(", "content", "_", "length", ")", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġdata", "Ġitself", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġjson", ".", "loads", "(", "post", "_", "data", ".", "decode", "(\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġtest", "_", "op", "po", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġa", "Ġ==", "Ġ\"", "OK", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(", "config", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "config", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "3", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(\"", "ERROR", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(\"", "ERROR", "\",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "test", "_", "path", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontent", "_", "length", "Ġ=", "Ġint", "(", "self", ".", "headers", "[\"", "Content", "-", "Length", "\"])", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġsize", "Ġof", "Ġdata", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpost", "_", "data", "Ġ=", "Ġself", ".", "r", "file", ".", "read", "(", "content", "_", "length", ")", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġdata", "Ġitself", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġserver", "Ġ=", "Ġjson", ".", "loads", "(", "post", "_", "data", ".", "decode", "(\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġc", "argar", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġtv", "_", "path", ",", "Ġav", "_", "path", ",", "Ġlang", "_", "path", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġtest", "_", "path", "(", "config", ",", "Ġserver", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġa", "Ġ==", "Ġ\"", "OK", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(", "server", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "server", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "3", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(\"", "ERROR", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(\"", "ERROR", "\",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "navigate", "_", "path", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontent", "_", "length", "Ġ=", "Ġint", "(", "self", ".", "headers", "[\"", "Content", "-", "Length", "\"])", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġsize", "Ġof", "Ġdata", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpost", "_", "data", "Ġ=", "Ġself", ".", "r", "file", ".", "read", "(", "content", "_", "length", ")", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġdata", "Ġitself", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpath", "_", "obj", "Ġ=", "Ġjson", ".", "loads", "(", "post", "_", "data", ".", "decode", "(\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpath", "Ġ=", "Ġpath", "_", "obj", "[\"", "path", "\"]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġc", "argar", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġtv", "_", "path", ",", "Ġav", "_", "path", ",", "Ġlang", "_", "path", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġnavigate", "_", "folder", "(", "path", ",", "Ġconfig", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "_", "json", "Ġ=", "Ġjson", ".", "dumps", "(", "a", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(", "len", "(", "a", "_", "json", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(", "a", "_", "json", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "a", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "move", "_", "tv", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontent", "_", "length", "Ġ=", "Ġint", "(", "self", ".", "headers", "[\"", "Content", "-", "Length", "\"])", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġsize", "Ġof", "Ġdata", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpost", "_", "data", "Ġ=", "Ġself", ".", "r", "file", ".", "read", "(", "content", "_", "length", ")", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġdata", "Ġitself", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġjson", ".", "loads", "(", "post", "_", "data", ".", "decode", "(\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsave", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġconfig", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġmove", "_", "files", "(", "tv", "_", "path", "Ġ+", "Ġconfig", "[\"", "TV", "_", "model", "\"],", "Ġlib", "_", "path", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(", "config", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "config", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġrestart", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "move", "_", "av", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontent", "_", "length", "Ġ=", "Ġint", "(", "self", ".", "headers", "[\"", "Content", "-", "Length", "\"])", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġsize", "Ġof", "Ġdata", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpost", "_", "data", "Ġ=", "Ġself", ".", "r", "file", ".", "read", "(", "content", "_", "length", ")", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġdata", "Ġitself", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġjson", ".", "loads", "(", "post", "_", "data", ".", "decode", "(\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsave", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġconfig", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġmove", "_", "files", "(", "av", "_", "path", "Ġ+", "Ġconfig", "[\"", "AV", "_", "model", "\"],", "Ġlib", "_", "path", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(", "config", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "config", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġrestart", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "get", "_", "tv", "_", "key", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontent", "_", "length", "Ġ=", "Ġint", "(", "self", ".", "headers", "[\"", "Content", "-", "Length", "\"])", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġsize", "Ġof", "Ġdata", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpost", "_", "data", "Ġ=", "Ġself", ".", "r", "file", ".", "read", "(", "content", "_", "length", ")", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġdata", "Ġitself", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġjson", ".", "loads", "(", "post", "_", "data", ".", "decode", "(\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġget", "_", "tv", "_", "key", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġa", "Ġ==", "Ġ\"", "OK", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġsave", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġconfig", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(", "config", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "config", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "3", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(\"", "ERROR", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(\"", "ERROR", "\",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "tv", "_", "test", "_", "conn", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontent", "_", "length", "Ġ=", "Ġint", "(", "self", ".", "headers", "[\"", "Content", "-", "Length", "\"])", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġsize", "Ġof", "Ġdata", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpost", "_", "data", "Ġ=", "Ġself", ".", "r", "file", ".", "read", "(", "content", "_", "length", ")", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġdata", "Ġitself", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġjson", ".", "loads", "(", "post", "_", "data", ".", "decode", "(\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġtv", "_", "test", "_", "conn", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġa", "Ġ==", "Ġ\"", "OK", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(", "config", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "config", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "3", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(\"", "ERROR", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(\"", "ERROR", "\",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "get", "_", "tv", "_", "sources", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontent", "_", "length", "Ġ=", "Ġint", "(", "self", ".", "headers", "[\"", "Content", "-", "Length", "\"])", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġsize", "Ġof", "Ġdata", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpost", "_", "data", "Ġ=", "Ġself", ".", "r", "file", ".", "read", "(", "content", "_", "length", ")", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġdata", "Ġitself", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġjson", ".", "loads", "(", "post", "_", "data", ".", "decode", "(\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġget", "_", "tv", "_", "sources", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġa", "Ġ==", "Ġ\"", "OK", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġsave", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġconfig", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(", "config", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "config", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "3", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(\"", "ERROR", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(\"", "ERROR", "\",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "get", "_", "av", "_", "sources", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontent", "_", "length", "Ġ=", "Ġint", "(", "self", ".", "headers", "[\"", "Content", "-", "Length", "\"])", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġsize", "Ġof", "Ġdata", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpost", "_", "data", "Ġ=", "Ġself", ".", "r", "file", ".", "read", "(", "content", "_", "length", ")", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġdata", "Ġitself", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġjson", ".", "loads", "(", "post", "_", "data", ".", "decode", "(\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġget", "_", "hd", "mi", "_", "list", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġa", "Ġ!=", "ĠNone", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "[\"", "AV", "_", "SOURCES", "\"]", "Ġ=", "Ġa", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġsave", "_", "config", "(", "cwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\",", "Ġconfig", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(", "config", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "config", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "3", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(\"", "ERROR", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(\"", "ERROR", "\",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "tv", "_", "test", "_", "init", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontent", "_", "length", "Ġ=", "Ġint", "(", "self", ".", "headers", "[\"", "Content", "-", "Length", "\"])", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġsize", "Ġof", "Ġdata", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpost", "_", "data", "Ġ=", "Ġself", ".", "r", "file", ".", "read", "(", "content", "_", "length", ")", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġdata", "Ġitself", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġjson", ".", "loads", "(", "post", "_", "data", ".", "decode", "(\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġtv", "_", "change", "_", "hd", "mi", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġa", "Ġ==", "Ġ\"", "OK", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(", "config", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "config", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "3", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(\"", "ERROR", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(\"", "ERROR", "\",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "tv", "_", "test", "_", "end", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontent", "_", "length", "Ġ=", "Ġint", "(", "self", ".", "headers", "[\"", "Content", "-", "Length", "\"])", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġsize", "Ġof", "Ġdata", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpost", "_", "data", "Ġ=", "Ġself", ".", "r", "file", ".", "read", "(", "content", "_", "length", ")", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġdata", "Ġitself", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġjson", ".", "loads", "(", "post", "_", "data", ".", "decode", "(\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġtv", "_", "set", "_", "prev", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġa", "Ġ==", "Ġ\"", "OK", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(", "config", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "config", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "3", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(\"", "ERROR", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(\"", "ERROR", "\",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "av", "_", "test", "_", "on", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontent", "_", "length", "Ġ=", "Ġint", "(", "self", ".", "headers", "[\"", "Content", "-", "Length", "\"])", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġsize", "Ġof", "Ġdata", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpost", "_", "data", "Ġ=", "Ġself", ".", "r", "file", ".", "read", "(", "content", "_", "length", ")", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġdata", "Ġitself", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġjson", ".", "loads", "(", "post", "_", "data", ".", "decode", "(\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġav", "_", "check", "_", "power", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġa", "Ġ==", "Ġ\"", "OK", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(", "config", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "config", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "3", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(\"", "ERROR", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(\"", "ERROR", "\",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "av", "_", "test", "_", "off", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontent", "_", "length", "Ġ=", "Ġint", "(", "self", ".", "headers", "[\"", "Content", "-", "Length", "\"])", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġsize", "Ġof", "Ġdata", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpost", "_", "data", "Ġ=", "Ġself", ".", "r", "file", ".", "read", "(", "content", "_", "length", ")", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġdata", "Ġitself", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġjson", ".", "loads", "(", "post", "_", "data", ".", "decode", "(\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġav", "_", "power", "_", "off", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġa", "Ġ==", "Ġ\"", "OK", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(", "config", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "config", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "3", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(\"", "ERROR", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(\"", "ERROR", "\",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "path", "Ġ==", "Ġ\"/", "av", "_", "test", "_", "hd", "mi", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontent", "_", "length", "Ġ=", "Ġint", "(", "self", ".", "headers", "[\"", "Content", "-", "Length", "\"])", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġsize", "Ġof", "Ġdata", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpost", "_", "data", "Ġ=", "Ġself", ".", "r", "file", ".", "read", "(", "content", "_", "length", ")", "Ġ", "Ġ#", "Ġ<", "---", "ĠGets", "Ġthe", "Ġdata", "Ġitself", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", "Ġ=", "Ġjson", ".", "loads", "(", "post", "_", "data", ".", "decode", "(\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġa", "Ġ=", "Ġav", "_", "change", "_", "hd", "mi", "(", "config", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġa", "Ġ==", "Ġ\"", "OK", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "2", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(", "config", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(", "json", ".", "dumps", "(", "config", "),", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "response", "(", "3", "0", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Length", "\",", "Ġlen", "(\"", "ERROR", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Content", "-", "Type", "\",", "Ġ\"", "text", "/", "html", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Credentials", "\",", "Ġ\"", "true", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "send", "_", "header", "(\"", "Access", "-", "Control", "-", "Allow", "-", "Origin", "\",", "Ġ\"*", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "headers", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "w", "file", ".", "write", "(", "bytes", "(\"", "ERROR", "\",", "Ġ\"", "utf", "-", "8", "\"))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĊ", "Ċ", "if", "Ġ__", "name", "__", "Ġ==", "Ġ\"__", "main", "__\":", "ĊĠĠĠ", "Ġcwd", "Ġ=", "Ġos", ".", "path", ".", "dirname", "(", "os", ".", "path", ".", "abspath", "(__", "file", "__))", "ĊĠĠĠ", "Ġif", "Ġsys", ".", "platform", ".", "startswith", "(\"", "win", "\"):", "ĊĠĠĠĠĠĠĠ", "Ġsepar", "ador", "Ġ=", "Ġ\"\\", "\\\"", "ĊĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠ", "Ġsepar", "ador", "Ġ=", "Ġ\"/\"", "ĊĠĠĠ", "Ġconfig", "_", "file", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "config", ".", "json", "\"", "ĊĠĠĠ", "Ġresource", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "web", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "resources", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠ", "Ġhtml", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "web", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠ", "Ġtv", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "web", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "libraries", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "TV", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠ", "Ġav", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "web", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "libraries", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "AV", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠ", "Ġlib", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "lib", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠ", "Ġlang", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "web", "\"", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "lang", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠ", "Ġvers", "_", "path", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "versions", "\"", "Ġ+", "Ġsepar", "ador", "ĊĠĠĠ", "Ġconfig", "Ġ=", "Ġc", "argar", "_", "config", "(", "config", "_", "file", ",", "Ġtv", "_", "path", ",", "Ġav", "_", "path", ",", "Ġlang", "_", "path", ")", "ĊĠĠĠ", "Ġlogfile", "Ġ=", "Ġcwd", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "em", "by", "_", "x", "nop", "po", "_", "client", "_", "logging", ".", "log", "\"", "ĊĠĠĠ", "Ġlang", "Ġ=", "Ġc", "argar", "_", "lang", "(", "lang", "_", "path", "Ġ+", "Ġconfig", "[\"", "language", "\"]", "Ġ+", "Ġsepar", "ador", "Ġ+", "Ġ\"", "lang", ".", "js", "\")", "ĊĊĠĠĠ", "Ġif", "Ġconfig", "[\"", "Debug", "Level", "\"]", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġlogging", ".", "basic", "Config", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġformat", "=\"%", "(", "as", "ctime", ")", "s", "Ġ%(", "level", "name", ")", "s", ":", "Ġ%(", "message", ")", "s", "\",", "Ġdate", "fmt", "=\"%", "d", "/%", "m", "/%", "Y", "Ġ%", "I", ":%", "M", ":%", "S", "Ġ%", "p", "\",", "Ġlevel", "=", "logging", ".", "CRITICAL", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠ", "Ġelif", "Ġconfig", "[\"", "Debug", "Level", "\"]", "Ġ==", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠ", "Ġr", "fh", "Ġ=", "Ġlogging", ".", "handlers", ".", "Rot", "ating", "File", "Handler", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfilename", "=", "logfile", ",", "Ġmode", "=\"", "a", "\",", "Ġmax", "Bytes", "=", "5", "0", "Ġ*", "Ġ", "1", "0", "2", "4", "Ġ*", "Ġ", "1", "0", "2", "4", ",", "Ġbackup", "Count", "=", "2", ",", "Ġencoding", "=", "None", ",", "Ġdelay", "=", "0", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠ", "Ġlogging", ".", "basic", "Config", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġformat", "=\"%", "(", "as", "ctime", ")", "s", "Ġ%(", "level", "name", ")", "s", ":", "Ġ%(", "message", ")", "s", "\",", "Ġdate", "fmt", "=\"%", "d", "/%", "m", "/%", "Y", "Ġ%", "I", ":%", "M", ":%", "S", "Ġ%", "p", "\",", "Ġlevel", "=", "logging", ".", "INFO", ",", "Ġhandlers", "=[", "rf", "h", "]", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠ", "Ġelif", "Ġconfig", "[\"", "Debug", "Level", "\"]", "Ġ==", "Ġ", "2", ":", "ĊĠĠĠĠĠĠĠ", "Ġr", "fh", "Ġ=", "Ġlogging", ".", "handlers", ".", "Rot", "ating", "File", "Handler", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfilename", "=", "logfile", ",", "Ġmode", "=\"", "a", "\",", "Ġmax", "Bytes", "=", "5", "Ġ*", "Ġ", "1", "0", "2", "4", "Ġ*", "Ġ", "1", "0", "2", "4", ",", "Ġbackup", "Count", "=", "2", ",", "Ġencoding", "=", "None", ",", "Ġdelay", "=", "0", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠ", "Ġlogging", ".", "basic", "Config", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġformat", "=\"%", "(", "as", "ctime", ")", "s", "Ġ%(", "level", "name", ")", "s", ":", "Ġ%(", "message", ")", "s", "\",", "Ġdate", "fmt", "=\"%", "d", "/%", "m", "/%", "Y", "Ġ%", "I", ":%", "M", ":%", "S", "Ġ%", "p", "\",", "Ġlevel", "=", "logging", ".", "DEBUG", ",", "Ġhandlers", "=[", "rf", "h", "]", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠ", "Ġem", "by", "_", "w", "socket", "Ġ=", "Ġx", "nop", "po", "_", "ws", "()", "ĊĠĠĠ", "Ġem", "by", "_", "w", "socket", ".", "ws", "_", "config", "Ġ=", "Ġconfig", "ĊĠĠĠ", "Ġem", "by", "_", "w", "socket", ".", "config", "_", "file", "Ġ=", "Ġconfig", "_", "file", "ĊĠĠĠ", "Ġem", "by", "_", "w", "socket", ".", "ws", "_", "lang", "Ġ=", "Ġlang", "ĊĠĠĠ", "Ġx", "Ġ=", "Ġthreading", ".", "Thread", "(", "target", "=", "thread", "_", "function", ",", "Ġargs", "=(", "em", "by", "_", "w", "socket", ",))", "ĊĠĠĠ", "Ġx", ".", "start", "()", "ĊĠĠĠ", "Ġesper", "a", "Ġ=", "Ġ", "0", "ĊĠĠĠ", "Ġestado", "_", "an", "terior", "Ġ=", "Ġ\"\"", "ĊĊĠĠĠ", "Ġlogging", ".", "debug", "(\"", "Arr", "anc", "amos", "Ġel", "ĠSer", "vidor", "ĠWeb", "\\", "n", "\")", "ĊĠĠĠ", "Ġserver", "Port", "Ġ=", "Ġ", "8", "0", "9", "0", "ĊĠĠĠ", "Ġweb", "Server", "Ġ=", "ĠHTTP", "Server", "(", "(\"\",", "Ġserver", "Port", "),", "ĠMy", "Server", ")", "ĊĠĠĠ", "Ġprint", "(\"", "Server", "Ġstarted", "Ġhttp", "://", "%", "s", ":%", "s", "\"", "Ġ%", "Ġ(\"", "\",", "Ġserver", "Port", "))", "ĊĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠ", "Ġweb", "Server", ".", "serve", "_", "fore", "ver", "()", "ĊĠĠĠ", "Ġexcept", "ĠKeyboard", "Interrupt", ":", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĠĠĠ", "Ġweb", "Server", ".", "server", "_", "close", "()", "ĊĠĠĠ", "Ġlogging", ".", "info", "(\"", "Fin", "Ġpro", "ceso", "\")", "ĊĠĠĠ", "Ġlogging", ".", "info", "(\"", "Finished", "\")", "ĊĠĠĠ", "Ġprint", "(\"", "Server", "Ġstopped", ".\")", "Ċ" ]
[ 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 15, 15, 15, 16, 16, 16, 17, 17, 17, 18, 18, 18, 18, 18, 19, 19, 19, 19, 21, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 31, 32, 32, 32, 32, 33, 33, 33, 33, 33, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 52, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 77, 77, 77, 77, 78, 78, 78, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 97, 97, 97, 97, 97, 97, 97, 97, 97, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 107, 107, 107, 107, 107, 107, 107, 107, 107, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 111, 111, 111, 111, 111, 111, 111, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 113, 113, 113, 113, 113, 113, 113, 113, 113, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 115, 115, 115, 115, 115, 115, 115, 115, 115, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 117, 117, 117, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 119, 119, 119, 119, 119, 119, 119, 119, 119, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 123, 123, 123, 123, 123, 123, 123, 123, 125, 125, 125, 125, 125, 125, 125, 125, 126, 126, 126, 126, 126, 126, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 134, 134, 134, 134, 134, 134, 134, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 136, 136, 136, 136, 136, 136, 136, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 138, 138, 138, 138, 138, 138, 138, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 140, 140, 140, 140, 140, 140, 140, 141, 141, 141, 141, 141, 141, 141, 141, 141, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 145, 145, 145, 147, 148, 148, 148, 148, 148, 148, 148, 148, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 150, 150, 150, 150, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 153, 153, 153, 153, 153, 154, 154, 154, 154, 154, 154, 154, 154, 154, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 158, 158, 158, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 162, 162, 162, 162, 163, 163, 163, 163, 163, 163, 163, 163, 163, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 165, 165, 165, 165, 165, 165, 165, 165, 166, 166, 166, 166, 166, 166, 166, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 168, 168, 168, 168, 168, 168, 168, 168, 168, 169, 169, 169, 170, 170, 170, 170, 170, 170, 170, 170, 170, 171, 171, 171, 171, 171, 172, 172, 172, 174, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 177, 177, 177, 177, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 180, 180, 180, 180, 180, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 184, 184, 184, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 188, 188, 188, 188, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 193, 193, 193, 193, 193, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 196, 196, 196, 196, 196, 196, 197, 197, 197, 198, 198, 198, 198, 198, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 205, 205, 205, 205, 206, 206, 206, 206, 206, 206, 206, 206, 206, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 208, 208, 208, 208, 208, 208, 208, 208, 208, 209, 209, 209, 211, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 214, 214, 214, 214, 214, 214, 214, 214, 214, 215, 215, 215, 215, 215, 215, 215, 215, 215, 216, 216, 216, 216, 217, 217, 217, 217, 217, 217, 217, 218, 218, 218, 220, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 223, 223, 223, 223, 223, 223, 223, 224, 224, 224, 224, 225, 225, 225, 227, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 230, 230, 230, 230, 230, 230, 230, 231, 231, 231, 231, 232, 232, 232, 234, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 238, 238, 238, 238, 240, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 244, 244, 244, 244, 244, 244, 244, 244, 244, 245, 245, 245, 245, 246, 246, 246, 246, 246, 246, 246, 246, 246, 247, 247, 247, 247, 247, 247, 247, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 249, 249, 249, 249, 249, 249, 249, 249, 249, 250, 250, 250, 250, 250, 250, 250, 250, 251, 251, 251, 251, 251, 251, 251, 252, 252, 252, 252, 252, 252, 252, 253, 253, 253, 253, 253, 253, 253, 253, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 256, 256, 256, 256, 256, 256, 256, 257, 257, 257, 257, 257, 257, 257, 257, 257, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 259, 259, 259, 259, 260, 260, 260, 260, 260, 260, 260, 260, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 263, 263, 263, 265, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 267, 267, 267, 267, 267, 267, 267, 267, 267, 267, 267, 267, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 269, 269, 269, 269, 269, 269, 269, 269, 269, 270, 270, 270, 270, 270, 270, 270, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 279, 279, 279, 279, 279, 279, 279, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 283, 283, 283, 283, 283, 283, 283, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 288, 288, 288, 288, 288, 288, 288, 289, 289, 289, 289, 289, 289, 289, 289, 289, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 293, 293, 293, 293, 294, 294, 295, 295, 295, 296, 296, 296, 296, 297, 297, 298, 298, 298, 298, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 300, 300, 300, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 303, 303, 303, 303, 303, 303, 303, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 305, 305, 305, 305, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 307, 307, 307, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 310, 310, 310, 310, 310, 310, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 313, 313, 313, 313, 313, 313, 313, 313, 313, 314, 314, 314, 314, 314, 314, 315, 315, 315, 316, 316, 316, 316, 316, 316, 317, 317, 317, 318, 318, 318, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 321, 322, 322, 322, 322, 322, 322, 322, 322, 322, 323, 323, 323, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 327, 327, 327, 327, 327, 328, 328, 328, 329, 329, 329, 329, 329, 330, 330, 330, 331, 331, 331, 331, 331, 333, 334, 334, 334, 334, 334, 334, 334, 334, 334, 335, 335, 335, 335, 335, 335, 335, 335, 335, 336, 336, 336, 336, 336, 336, 336, 337, 337, 337, 337, 337, 338, 338, 338, 339, 339, 339, 339, 339, 341, 342, 342, 342, 342, 342, 342, 342, 342, 342, 343, 343, 343, 344, 344, 344, 344, 344, 344, 344, 344, 344, 344, 344, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 346, 346, 346, 346, 347, 347, 347, 347, 347, 347, 347, 347, 348, 348, 348, 348, 349, 349, 349, 349, 349, 349, 349, 349, 349, 349, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 351, 351, 351, 351, 351, 351, 351, 352, 352, 352, 353, 353, 353, 353, 353, 353, 353, 353, 353, 354, 354, 354, 355, 355, 355, 355, 355, 355, 356, 356, 356, 356, 356, 356, 356, 356, 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, 359, 359, 359, 359, 359, 359, 359, 360, 360, 360, 360, 360, 360, 360, 361, 361, 361, 361, 362, 362, 362, 363, 363, 363, 363, 365, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 367, 367, 367, 367, 367, 367, 367, 367, 368, 368, 368, 368, 368, 368, 368, 368, 368, 368, 369, 369, 369, 369, 369, 369, 370, 370, 370, 372, 373, 373, 373, 373, 373, 373, 373, 373, 373, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 376, 376, 376, 376, 377, 377, 377, 377, 377, 377, 377, 378, 378, 378, 378, 378, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 380, 380, 380, 380, 380, 380, 380, 380, 380, 380, 380, 380, 380, 381, 381, 381, 381, 382, 382, 382, 382, 382, 382, 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, 384, 384, 384, 384, 385, 385, 385, 385, 385, 385, 385, 385, 385, 385, 385, 386, 386, 386, 386, 386, 386, 386, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 388, 388, 388, 389, 389, 389, 389, 389, 389, 389, 389, 389, 389, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 391, 391, 391, 391, 391, 391, 391, 391, 391, 391, 392, 392, 392, 393, 393, 393, 393, 393, 393, 393, 393, 393, 394, 394, 394, 395, 395, 395, 395, 395, 395, 396, 396, 396, 396, 396, 396, 396, 396, 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 401, 401, 401, 401, 401, 401, 401, 402, 402, 402, 402, 402, 402, 402, 403, 403, 403, 403, 403, 403, 403, 405, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 407, 407, 407, 407, 407, 407, 407, 408, 408, 408, 408, 408, 408, 408, 409, 409, 409, 409, 409, 410, 410, 410, 410, 410, 410, 411, 411, 411, 411, 411, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 413, 413, 413, 413, 413, 413, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 415, 415, 415, 415, 415, 415, 415, 415, 415, 416, 416, 416, 416, 416, 418, 419, 419, 419, 419, 419, 419, 419, 419, 419, 419, 420, 420, 420, 420, 420, 420, 420, 421, 421, 421, 421, 421, 421, 421, 421, 421, 422, 422, 422, 422, 422, 422, 422, 422, 422, 422, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 425, 425, 425, 425, 425, 425, 425, 425, 425, 425, 425, 425, 425, 426, 426, 426, 426, 428, 429, 429, 429, 429, 429, 429, 429, 429, 430, 430, 430, 431, 431, 431, 431, 431, 431, 431, 431, 431, 431, 431, 432, 432, 432, 432, 432, 432, 432, 432, 432, 432, 432, 432, 432, 432, 433, 433, 433, 433, 433, 434, 434, 434, 434, 434, 434, 435, 435, 435, 435, 435, 435, 435, 435, 436, 436, 436, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 440, 440, 440, 440, 440, 440, 440, 440, 440, 441, 441, 441, 442, 442, 443, 443, 443, 443, 443, 443, 443, 443, 443, 444, 444, 444, 444, 444, 445, 445, 445, 446, 446, 446, 446, 446, 448, 449, 449, 449, 449, 449, 449, 449, 449, 449, 450, 450, 450, 450, 450, 450, 450, 450, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 453, 453, 453, 453, 453, 453, 454, 454, 454, 455, 455, 455, 455, 455, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 458, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 463, 463, 463, 463, 463, 463, 463, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, 466, 466, 466, 466, 466, 466, 466, 466, 466, 466, 466, 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, 468, 468, 468, 468, 468, 468, 468, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 470, 470, 470, 470, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 474, 474, 474, 474, 474, 474, 474, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 477, 477, 477, 477, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 481, 481, 481, 481, 481, 481, 481, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 484, 484, 484, 484, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 486, 486, 486, 486, 486, 486, 486, 486, 486, 486, 486, 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, 488, 488, 488, 488, 488, 488, 488, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 491, 491, 491, 491, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 495, 495, 495, 495, 495, 495, 495, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 498, 498, 498, 498, 499, 499, 499, 499, 499, 499, 499, 499, 499, 499, 499, 499, 499, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 502, 502, 502, 502, 502, 502, 502, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 505, 505, 505, 505, 506, 506, 506, 506, 506, 506, 506, 506, 506, 506, 506, 506, 506, 507, 507, 507, 507, 507, 507, 507, 507, 507, 507, 507, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 508, 509, 509, 509, 509, 509, 509, 509, 510, 510, 510, 510, 510, 510, 510, 510, 510, 510, 510, 510, 510, 510, 510, 510, 510, 510, 510, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 512, 512, 512, 512, 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, 516, 516, 516, 516, 516, 516, 516, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 518, 518, 518, 518, 518, 518, 518, 518, 518, 518, 518, 518, 518, 518, 518, 518, 518, 519, 519, 519, 519, 520, 520, 520, 520, 520, 520, 520, 520, 520, 520, 520, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 523, 523, 523, 523, 523, 523, 523, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 525, 525, 525, 525, 525, 525, 525, 525, 525, 525, 525, 525, 525, 525, 525, 525, 525, 526, 526, 526, 526, 527, 527, 527, 527, 527, 527, 527, 527, 527, 527, 527, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 531, 531, 531, 531, 531, 531, 531, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, 533, 533, 533, 533, 534, 534, 534, 534, 534, 534, 534, 534, 534, 534, 534, 534, 534, 534, 534, 534, 534, 534, 534, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 536, 536, 536, 536, 536, 536, 536, 536, 536, 536, 536, 536, 536, 536, 536, 536, 537, 537, 537, 537, 537, 537, 537, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 539, 539, 539, 539, 539, 539, 539, 539, 539, 539, 539, 539, 540, 540, 540, 540, 541, 541, 541, 541, 541, 541, 541, 541, 541, 541, 541, 541, 541, 541, 541, 541, 541, 542, 542, 542, 542, 542, 542, 542, 542, 542, 542, 542, 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, 544, 544, 544, 544, 544, 544, 544, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 546, 546, 546, 546, 546, 546, 546, 546, 546, 546, 546, 546, 547, 547, 547, 547, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 549, 549, 549, 549, 549, 549, 549, 549, 549, 549, 549, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 551, 551, 551, 551, 551, 551, 551, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 554, 554, 554, 554, 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 558, 558, 558, 558, 558, 558, 558, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 561, 561, 561, 561, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 565, 565, 565, 565, 565, 565, 565, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 567, 567, 567, 567, 567, 567, 567, 567, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 569, 569, 569, 569, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 573, 573, 573, 573, 573, 573, 573, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 575, 575, 575, 575, 575, 575, 575, 576, 576, 576, 576, 576, 576, 576, 576, 576, 576, 576, 576, 576, 576, 576, 576, 576, 576, 576, 576, 576, 577, 577, 577, 577, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 581, 581, 581, 581, 581, 581, 581, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 583, 583, 583, 583, 583, 583, 583, 583, 583, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 585, 585, 585, 585, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 587, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 588, 589, 589, 589, 589, 589, 589, 589, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 591, 591, 591, 591, 591, 591, 591, 591, 591, 591, 591, 591, 591, 591, 591, 592, 592, 592, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 594, 594, 594, 594, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, 597, 597, 597, 597, 597, 597, 597, 597, 597, 597, 597, 597, 597, 597, 597, 597, 598, 598, 598, 598, 598, 598, 598, 599, 599, 599, 599, 599, 599, 599, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 601, 601, 601, 601, 602, 602, 602, 602, 602, 602, 602, 602, 602, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 604, 604, 604, 604, 604, 604, 604, 604, 604, 604, 604, 604, 604, 604, 604, 604, 605, 605, 605, 605, 605, 605, 605, 606, 606, 606, 606, 606, 606, 606, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 608, 608, 608, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, 612, 612, 612, 612, 612, 612, 612, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 613, 614, 614, 614, 614, 614, 614, 614, 614, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 616, 616, 616, 616, 617, 617, 617, 617, 617, 617, 617, 617, 617, 618, 618, 618, 618, 618, 618, 618, 618, 618, 618, 618, 619, 619, 619, 619, 619, 619, 619, 619, 619, 619, 619, 619, 619, 619, 619, 619, 620, 620, 620, 620, 620, 620, 620, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 624, 624, 624, 624, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 626, 626, 626, 626, 626, 626, 626, 626, 627, 627, 627, 627, 627, 627, 627, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 630, 630, 630, 630, 630, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 633, 633, 633, 633, 633, 633, 633, 633, 633, 634, 634, 634, 634, 634, 634, 634, 634, 635, 635, 635, 635, 635, 635, 635, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, 638, 638, 638, 638, 638, 638, 638, 638, 638, 638, 638, 638, 638, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 640, 640, 640, 640, 640, 640, 640, 640, 640, 640, 640, 640, 640, 640, 641, 641, 641, 641, 641, 641, 641, 641, 641, 641, 641, 641, 641, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 643, 643, 643, 643, 643, 643, 643, 643, 643, 643, 643, 643, 643, 643, 643, 643, 644, 644, 644, 644, 644, 644, 644, 644, 644, 644, 645, 645, 645, 645, 645, 645, 645, 646, 646, 646, 646, 646, 646, 646, 646, 646, 646, 646, 646, 646, 646, 646, 646, 647, 647, 647, 647, 647, 647, 647, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 649, 649, 649, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 651, 651, 651, 651, 651, 651, 651, 651, 651, 651, 651, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 653, 653, 653, 653, 653, 653, 653, 654, 654, 654, 654, 654, 654, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 655, 656, 656, 656, 656, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 657, 658, 658, 658, 658, 658, 658, 658, 658, 658, 658, 658, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 660, 660, 660, 660, 660, 660, 660, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 663, 663, 663, 663, 663, 663, 663, 663, 663, 663, 663, 663, 664, 664, 664, 664, 665, 665, 665, 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, 666, 667, 667, 667, 667, 667, 667, 667, 667, 667, 667, 667, 667, 667, 667, 667, 667, 668, 668, 668, 668, 668, 668, 668, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 671, 671, 671, 671, 671, 671, 671, 671, 671, 671, 671, 671, 671, 671, 671, 671, 671, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 672, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, 675, 675, 675, 675, 675, 675, 675, 675, 676, 676, 676, 676, 676, 676, 676, 676, 676, 676, 676, 676, 676, 676, 676, 676, 676, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 678, 678, 678, 678, 678, 678, 679, 679, 679, 680, 680, 680, 680, 680, 681, 681, 681, 681, 681, 681, 681, 681, 681, 681, 681, 681, 681, 681, 681, 681, 681, 681, 681, 681, 681, 681, 681, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 689, 689, 689, 689, 689, 689, 689, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 693, 693, 693, 693, 693, 693, 693, 693, 693, 693, 693, 693, 693, 693, 693, 693, 693, 694, 694, 694, 694, 694, 694, 694, 694, 694, 694, 694, 694, 694, 694, 694, 694, 694, 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 697, 697, 697, 697, 697, 697, 697, 697, 697, 697, 697, 697, 697, 697, 697, 697, 698, 698, 698, 698, 698, 698, 698, 698, 698, 698, 698, 698, 698, 698, 698, 698, 698, 698, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 700, 700, 700, 700, 700, 700, 700, 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 702, 702, 702, 702, 702, 702, 702, 702, 702, 702, 702, 702, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 707, 707, 707, 707, 707, 707, 707, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 713, 713, 713, 713, 713, 713, 713, 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, 715, 715, 715, 715, 715, 715, 715, 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 719, 719, 719, 720, 720, 720, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 726, 726, 726, 726, 726, 726, 726, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 728, 728, 728, 728, 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, 734, 734, 734, 734, 734, 734, 734, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 740, 740, 740, 740, 740, 740, 740, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, 742, 742, 742, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 748, 748, 748, 748, 748, 748, 748, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 750, 750, 750, 750, 751, 751, 751, 751, 751, 751, 751, 751, 751, 751, 751, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 757, 757, 757, 757, 757, 757, 757, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 763, 763, 763, 763, 763, 763, 763, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, 765, 765, 765, 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 770, 770, 770, 770, 770, 770, 770, 770, 770, 770, 770, 770, 770, 770, 770, 770, 770, 771, 771, 771, 771, 771, 771, 771, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 773, 773, 773, 773, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 774, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 777, 777, 777, 777, 777, 777, 777, 777, 777, 777, 777, 777, 777, 777, 777, 777, 777, 777, 777, 778, 778, 778, 778, 778, 778, 778, 778, 778, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 779, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 782, 782, 782, 782, 782, 782, 782, 782, 782, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 783, 784, 784, 784, 784, 784, 784, 784, 784, 784, 784, 784, 784, 784, 784, 784, 784, 784, 785, 785, 785, 785, 785, 785, 785, 785, 785, 785, 785, 785, 785, 785, 785, 785, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 786, 787, 787, 787, 787, 787, 787, 787, 787, 787, 787, 787, 787, 787, 787, 787, 787, 787, 788, 788, 788, 788, 788, 788, 788, 789, 789, 789, 789, 789, 789, 789, 789, 789, 789, 789, 789, 789, 789, 789, 789, 789, 789, 789, 789, 789, 790, 790, 790, 790, 792, 792, 792, 792, 792, 792, 792, 792, 792, 792, 792, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 796, 796, 796, 796, 796, 796, 796, 796, 796, 796, 796, 796, 796, 796, 796, 796, 796, 797, 797, 797, 797, 797, 797, 797, 797, 797, 797, 797, 797, 797, 797, 797, 797, 797, 797, 797, 798, 798, 798, 798, 798, 798, 798, 798, 798, 798, 798, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 799, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 803, 803, 803, 803, 803, 803, 803, 804, 804, 804, 804, 804, 804, 804, 804, 804, 804, 804, 804, 804, 804, 804, 804, 804, 804, 804, 804, 804, 805, 805, 805, 806, 806, 806, 806, 807, 807, 807, 807, 807, 807, 807, 807, 807, 807, 807, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 809, 809, 809, 809, 809, 809, 809, 809, 809, 809, 809, 809, 809, 809, 809, 809, 809, 809, 809, 809, 809, 809, 809, 809, 810, 810, 810, 810, 810, 810, 810, 810, 810, 810, 810, 810, 810, 810, 810, 810, 810, 811, 811, 811, 811, 811, 811, 811, 811, 811, 811, 811, 811, 811, 811, 811, 811, 811, 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, 813, 813, 813, 813, 813, 813, 813, 813, 813, 813, 813, 814, 814, 814, 814, 814, 814, 814, 814, 814, 814, 814, 814, 814, 814, 814, 815, 815, 815, 815, 815, 815, 815, 815, 815, 815, 815, 815, 815, 815, 815, 815, 816, 816, 816, 816, 816, 816, 816, 816, 816, 816, 816, 816, 816, 816, 816, 816, 816, 816, 817, 817, 817, 817, 817, 817, 817, 817, 817, 817, 817, 817, 817, 817, 817, 817, 817, 818, 818, 818, 818, 818, 818, 818, 819, 819, 819, 819, 819, 819, 819, 819, 819, 819, 819, 819, 819, 819, 819, 819, 819, 819, 819, 819, 819, 820, 820, 820, 821, 821, 821, 821, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 825, 825, 825, 825, 825, 825, 825, 825, 825, 825, 825, 825, 825, 825, 825, 825, 825, 826, 826, 826, 826, 826, 826, 826, 826, 826, 826, 826, 827, 827, 827, 827, 827, 827, 827, 828, 828, 828, 828, 828, 828, 828, 828, 828, 828, 828, 828, 828, 828, 828, 828, 828, 829, 829, 829, 829, 829, 829, 829, 829, 829, 829, 829, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 831, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 833, 834, 834, 834, 834, 834, 834, 834, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 836, 836, 836, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 842, 842, 842, 842, 842, 842, 842, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 844, 844, 844, 844, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 845, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 848, 848, 848, 848, 848, 848, 848, 848, 848, 848, 848, 848, 848, 848, 848, 848, 848, 849, 849, 849, 849, 849, 849, 849, 849, 849, 849, 849, 850, 850, 850, 850, 850, 850, 850, 851, 851, 851, 851, 851, 851, 851, 851, 851, 851, 851, 852, 852, 852, 852, 852, 852, 852, 852, 852, 852, 852, 852, 852, 852, 852, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 856, 856, 856, 856, 856, 856, 856, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 857, 858, 858, 858, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 861, 862, 862, 862, 862, 862, 862, 862, 862, 862, 862, 862, 862, 862, 862, 862, 862, 862, 862, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 864, 864, 864, 864, 864, 864, 864, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 866, 866, 866, 866, 867, 867, 867, 867, 867, 867, 867, 867, 867, 867, 867, 867, 867, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 869, 869, 869, 869, 869, 869, 869, 869, 869, 869, 869, 869, 869, 869, 869, 869, 869, 869, 869, 869, 869, 869, 869, 869, 870, 870, 870, 870, 870, 870, 870, 870, 870, 870, 870, 870, 870, 870, 870, 870, 870, 871, 871, 871, 871, 871, 871, 871, 871, 871, 871, 871, 872, 872, 872, 872, 872, 872, 872, 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, 874, 874, 874, 874, 874, 874, 874, 874, 874, 874, 874, 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 876, 876, 876, 876, 876, 876, 876, 876, 876, 876, 876, 876, 876, 876, 876, 876, 877, 877, 877, 877, 877, 877, 877, 877, 877, 877, 877, 877, 877, 877, 877, 877, 877, 877, 878, 878, 878, 878, 878, 878, 878, 878, 878, 878, 878, 878, 878, 878, 878, 878, 878, 879, 879, 879, 879, 879, 879, 879, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 881, 881, 881, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 884, 884, 884, 884, 884, 884, 884, 884, 884, 884, 884, 884, 884, 884, 884, 884, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 887, 887, 887, 887, 887, 887, 887, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 889, 889, 889, 889, 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, 895, 895, 895, 895, 895, 895, 896, 896, 896, 896, 896, 896, 896, 896, 896, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 897, 898, 898, 898, 898, 898, 898, 898, 898, 898, 898, 898, 899, 899, 899, 899, 899, 899, 899, 899, 899, 899, 899, 899, 899, 899, 899, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 902, 903, 903, 903, 903, 903, 903, 903, 904, 904, 904, 904, 904, 904, 904, 904, 904, 904, 904, 904, 904, 904, 904, 904, 904, 904, 904, 904, 904, 905, 905, 905, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 907, 907, 907, 907, 907, 907, 907, 907, 907, 907, 907, 907, 907, 907, 907, 908, 908, 908, 908, 908, 908, 908, 908, 908, 908, 908, 908, 908, 908, 908, 908, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 911, 911, 911, 911, 911, 911, 911, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 913, 913, 913, 913, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 919, 919, 919, 919, 919, 919, 919, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 923, 923, 923, 923, 923, 923, 923, 923, 923, 923, 923, 923, 923, 923, 923, 923, 923, 923, 924, 924, 924, 924, 924, 924, 924, 924, 924, 924, 924, 924, 924, 924, 924, 924, 924, 925, 925, 925, 925, 925, 925, 925, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, 927, 927, 927, 928, 928, 928, 928, 928, 928, 928, 928, 928, 928, 928, 929, 929, 929, 929, 929, 929, 929, 929, 929, 929, 929, 929, 929, 929, 929, 930, 930, 930, 930, 930, 930, 930, 930, 930, 930, 930, 930, 930, 930, 930, 930, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 932, 932, 932, 932, 932, 932, 932, 932, 932, 932, 932, 932, 932, 932, 932, 932, 932, 933, 933, 933, 933, 933, 933, 933, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 934, 935, 935, 935, 935, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 940, 941, 941, 941, 941, 941, 941, 941, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 942, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 943, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 944, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 945, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 946, 947, 947, 947, 947, 947, 947, 947, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 949, 949, 949, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 950, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 951, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 952, 953, 953, 953, 953, 953, 953, 953, 953, 953, 953, 953, 953, 953, 953, 953, 953, 953, 953, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 955, 955, 955, 955, 955, 955, 955, 956, 956, 956, 956, 956, 956, 956, 956, 956, 956, 956, 956, 956, 956, 956, 956, 956, 957, 957, 957, 957, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 959, 959, 959, 959, 959, 959, 959, 959, 959, 959, 959, 959, 959, 959, 959, 959, 959, 959, 959, 959, 959, 959, 959, 959, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 960, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 962, 962, 962, 962, 962, 962, 962, 962, 962, 962, 962, 963, 963, 963, 963, 963, 963, 963, 964, 964, 964, 964, 964, 964, 964, 964, 964, 964, 964, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 966, 966, 966, 966, 966, 966, 966, 966, 966, 966, 966, 966, 966, 966, 966, 966, 967, 967, 967, 967, 967, 967, 967, 967, 967, 967, 967, 967, 967, 967, 967, 967, 967, 967, 968, 968, 968, 968, 968, 968, 968, 968, 968, 968, 968, 968, 968, 968, 968, 968, 968, 969, 969, 969, 969, 969, 969, 969, 970, 970, 970, 970, 970, 970, 970, 970, 970, 970, 970, 970, 970, 970, 970, 970, 970, 970, 970, 970, 970, 971, 971, 971, 972, 972, 972, 972, 972, 972, 972, 972, 972, 972, 972, 973, 973, 973, 973, 973, 973, 973, 973, 973, 973, 973, 973, 973, 973, 973, 974, 974, 974, 974, 974, 974, 974, 974, 974, 974, 974, 974, 974, 974, 974, 974, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 975, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 977, 977, 977, 977, 977, 977, 977, 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, 979, 979, 979, 979, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 980, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 982, 982, 982, 982, 982, 982, 982, 982, 982, 982, 982, 982, 982, 982, 982, 982, 982, 982, 982, 982, 982, 982, 982, 982, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, 984, 984, 984, 984, 984, 984, 984, 984, 984, 984, 984, 985, 985, 985, 985, 985, 985, 985, 986, 986, 986, 986, 986, 986, 986, 986, 986, 986, 986, 987, 987, 987, 987, 987, 987, 987, 987, 987, 987, 987, 987, 987, 987, 987, 988, 988, 988, 988, 988, 988, 988, 988, 988, 988, 988, 988, 988, 988, 988, 988, 989, 989, 989, 989, 989, 989, 989, 989, 989, 989, 989, 989, 989, 989, 989, 989, 989, 989, 990, 990, 990, 990, 990, 990, 990, 990, 990, 990, 990, 990, 990, 990, 990, 990, 990, 991, 991, 991, 991, 991, 991, 991, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 993, 993, 993, 994, 994, 994, 994, 994, 994, 994, 994, 994, 994, 994, 995, 995, 995, 995, 995, 995, 995, 995, 995, 995, 995, 995, 995, 995, 995, 996, 996, 996, 996, 996, 996, 996, 996, 996, 996, 996, 996, 996, 996, 996, 996, 997, 997, 997, 997, 997, 997, 997, 997, 997, 997, 997, 997, 997, 997, 997, 997, 997, 997, 998, 998, 998, 998, 998, 998, 998, 998, 998, 998, 998, 998, 998, 998, 998, 998, 998, 999, 999, 999, 999, 999, 999, 999, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1001, 1001, 1001, 1001, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1002, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1005, 1005, 1005, 1005, 1005, 1005, 1005, 1005, 1005, 1005, 1005, 1005, 1005, 1005, 1005, 1005, 1005, 1006, 1006, 1006, 1006, 1006, 1006, 1006, 1006, 1006, 1006, 1006, 1006, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1009, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1010, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1012, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1015, 1015, 1015, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1016, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1017, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1023, 1023, 1023, 1023, 1025, 1026, 1026, 1026, 1026, 1026, 1026, 1026, 1026, 1026, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1028, 1029, 1029, 1029, 1029, 1029, 1029, 1030, 1030, 1030, 1031, 1031, 1031, 1031, 1031, 1032, 1032, 1032, 1032, 1032, 1032, 1032, 1032, 1032, 1032, 1032, 1032, 1032, 1032, 1032, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1033, 1034, 1034, 1034, 1034, 1034, 1034, 1034, 1034, 1034, 1034, 1034, 1034, 1034, 1034, 1034, 1034, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1035, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1036, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1039, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1040, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1042, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1045, 1045, 1045, 1045, 1045, 1045, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1046, 1047, 1047, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1051, 1051, 1052, 1052, 1052, 1052, 1052, 1052, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1053, 1054, 1054, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1058, 1058, 1059, 1059, 1059, 1059, 1059, 1059, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1061, 1061, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1067, 1067, 1067, 1067, 1067, 1068, 1068, 1068, 1068, 1068, 1068, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1075, 1075, 1075, 1076, 1076, 1076, 1076, 1076, 1076, 1076, 1076, 1076, 1077, 1077, 1077, 1077, 1077, 1078, 1078, 1079, 1079, 1079, 1079, 1079, 1079, 1079, 1079, 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1082, 1082, 1082, 1082, 1082, 1082 ]
[ 1, 7, 12, 13, 19, 1, 7, 14, 20, 1, 5, 10, 11, 17, 24, 29, 33, 47, 48, 53, 59, 1, 7, 12, 1, 7, 12, 1, 7, 10, 1, 7, 14, 1, 7, 16, 1, 5, 9, 10, 12, 14, 15, 17, 24, 26, 29, 31, 32, 34, 1, 5, 9, 10, 12, 14, 15, 19, 26, 28, 1, 5, 9, 10, 11, 14, 16, 23, 25, 1, 5, 9, 10, 11, 14, 16, 17, 19, 26, 28, 1, 7, 11, 12, 13, 16, 18, 19, 21, 22, 1, 7, 14, 1, 7, 15, 1, 7, 17, 1, 7, 15, 1, 7, 15, 16, 24, 1, 7, 10, 14, 1, 1, 4, 8, 9, 16, 19, 4, 11, 13, 14, 15, 16, 17, 18, 1, 1, 4, 11, 12, 20, 21, 23, 24, 30, 32, 4, 10, 12, 18, 19, 28, 30, 4, 7, 8, 14, 15, 20, 22, 4, 10, 12, 18, 19, 26, 29, 31, 1, 1, 4, 12, 15, 4, 10, 12, 19, 21, 4, 8, 9, 8, 11, 13, 14, 15, 21, 22, 26, 28, 4, 11, 12, 8, 12, 13, 17, 19, 4, 8, 9, 13, 15, 4, 10, 12, 15, 23, 25, 1, 1, 4, 9, 10, 16, 17, 23, 24, 28, 29, 36, 38, 4, 9, 14, 15, 21, 22, 26, 27, 29, 30, 32, 35, 38, 39, 8, 13, 14, 18, 19, 25, 26, 29, 30, 37, 38, 39, 40, 4, 7, 8, 13, 4, 8, 9, 8, 11, 13, 14, 15, 21, 22, 24, 25, 31, 33, 40, 8, 11, 13, 14, 15, 21, 22, 24, 26, 33, 34, 40, 42, 49, 4, 11, 12, 8, 11, 13, 14, 15, 21, 22, 24, 25, 31, 33, 40, 1, 1, 4, 8, 9, 14, 17, 4, 11, 13, 16, 4, 11, 13, 20, 22, 24, 28, 29, 36, 38, 4, 8, 9, 8, 15, 17, 21, 26, 28, 30, 33, 35, 36, 37, 43, 44, 46, 48, 55, 56, 60, 65, 8, 15, 17, 21, 23, 28, 30, 32, 35, 37, 38, 39, 45, 46, 48, 50, 57, 58, 62, 64, 69, 8, 15, 17, 23, 25, 27, 30, 32, 33, 34, 40, 41, 43, 45, 52, 53, 59, 8, 15, 17, 23, 25, 27, 30, 32, 33, 34, 40, 41, 43, 45, 52, 53, 59, 8, 15, 17, 25, 27, 29, 32, 34, 35, 36, 42, 43, 45, 47, 54, 55, 63, 8, 15, 17, 24, 28, 30, 32, 35, 37, 38, 39, 45, 46, 48, 50, 57, 58, 65, 69, 8, 10, 16, 18, 25, 31, 37, 4, 11, 12, 8, 15, 17, 21, 26, 28, 30, 32, 35, 36, 45, 46, 8, 15, 17, 21, 23, 28, 30, 32, 35, 8, 15, 17, 23, 25, 27, 30, 8, 15, 17, 23, 25, 27, 30, 8, 15, 17, 25, 27, 29, 32, 8, 15, 17, 24, 28, 30, 32, 35, 4, 11, 13, 16, 17, 21, 23, 25, 28, 32, 33, 36, 37, 44, 46, 4, 11, 13, 16, 17, 21, 23, 25, 28, 32, 33, 40, 41, 47, 50, 57, 4, 6, 10, 14, 19, 23, 34, 37, 42, 46, 4, 10, 11, 13, 17, 18, 25, 26, 32, 35, 42, 43, 4, 10, 11, 17, 18, 4, 11, 18, 1, 1, 4, 6, 11, 12, 18, 19, 25, 26, 30, 31, 34, 35, 39, 40, 43, 44, 48, 49, 54, 55, 59, 61, 4, 9, 14, 15, 21, 22, 26, 27, 29, 30, 32, 35, 37, 38, 8, 15, 17, 22, 23, 27, 28, 29, 30, 8, 10, 14, 15, 23, 28, 29, 35, 36, 4, 6, 7, 12, 4, 7, 11, 19, 27, 34, 41, 4, 11, 13, 20, 22, 24, 28, 29, 36, 38, 4, 12, 14, 21, 22, 25, 27, 30, 32, 37, 39, 45, 46, 4, 11, 13, 16, 18, 23, 25, 27, 35, 4, 12, 14, 21, 22, 25, 27, 33, 34, 37, 38, 47, 49, 55, 56, 4, 11, 13, 19, 20, 23, 24, 33, 35, 37, 45, 4, 12, 14, 21, 22, 25, 27, 29, 30, 35, 37, 41, 4, 11, 13, 15, 16, 21, 23, 25, 33, 4, 12, 14, 21, 22, 25, 27, 29, 30, 37, 39, 43, 4, 11, 13, 15, 16, 23, 25, 27, 35, 4, 12, 14, 21, 22, 25, 27, 29, 30, 35, 37, 41, 4, 11, 13, 15, 16, 21, 23, 25, 33, 4, 12, 14, 21, 22, 25, 27, 29, 30, 37, 39, 43, 4, 11, 13, 15, 16, 23, 25, 27, 35, 4, 12, 14, 21, 22, 25, 27, 29, 30, 36, 37, 41, 43, 47, 4, 11, 13, 15, 16, 22, 23, 27, 29, 31, 39, 4, 12, 14, 21, 22, 25, 27, 29, 30, 36, 37, 40, 42, 46, 4, 11, 13, 15, 16, 22, 23, 26, 28, 30, 38, 4, 12, 14, 21, 22, 25, 27, 29, 30, 35, 36, 38, 40, 42, 43, 44, 45, 4, 11, 13, 15, 16, 21, 22, 24, 26, 28, 30, 38, 4, 12, 14, 21, 22, 25, 27, 29, 30, 34, 36, 37, 38, 39, 40, 4, 11, 13, 15, 16, 20, 22, 24, 32, 4, 12, 14, 21, 22, 25, 27, 34, 35, 37, 39, 40, 45, 47, 48, 49, 50, 51, 4, 11, 13, 20, 21, 23, 25, 26, 31, 33, 35, 43, 4, 12, 14, 21, 22, 25, 27, 35, 37, 39, 41, 42, 44, 46, 4, 11, 13, 21, 23, 25, 33, 4, 12, 14, 21, 22, 25, 27, 34, 35, 38, 40, 46, 47, 4, 11, 13, 20, 21, 24, 26, 28, 36, 4, 12, 14, 21, 22, 25, 27, 31, 32, 35, 37, 43, 44, 4, 11, 13, 17, 18, 21, 23, 25, 33, 4, 12, 14, 21, 22, 25, 27, 34, 35, 39, 41, 42, 43, 44, 4, 11, 13, 20, 21, 25, 27, 29, 37, 4, 12, 14, 21, 22, 25, 27, 32, 33, 37, 39, 45, 46, 4, 11, 13, 18, 19, 23, 25, 27, 35, 4, 12, 14, 21, 22, 25, 27, 30, 32, 35, 37, 43, 44, 4, 11, 13, 16, 18, 21, 23, 25, 33, 4, 12, 14, 21, 22, 25, 27, 29, 33, 35, 41, 42, 4, 11, 13, 15, 19, 21, 23, 31, 4, 7, 12, 13, 16, 19, 23, 25, 4, 9, 10, 16, 18, 19, 20, 4, 11, 12, 16, 18, 25, 27, 34, 36, 4, 8, 15, 18, 25, 26, 30, 31, 8, 16, 18, 25, 26, 29, 31, 35, 36, 38, 40, 46, 47, 8, 15, 16, 20, 21, 25, 26, 32, 35, 39, 40, 42, 44, 46, 54, 8, 13, 14, 20, 22, 27, 28, 34, 36, 37, 38, 4, 7, 9, 12, 14, 17, 19, 26, 29, 35, 39, 42, 44, 46, 48, 51, 54, 58, 59, 63, 64, 4, 7, 14, 16, 18, 20, 23, 25, 29, 31, 8, 15, 17, 19, 21, 23, 28, 4, 7, 14, 16, 18, 20, 23, 25, 30, 32, 8, 15, 17, 19, 21, 23, 29, 4, 7, 14, 16, 18, 20, 23, 25, 29, 31, 8, 15, 17, 19, 21, 23, 28, 4, 7, 14, 16, 18, 20, 23, 25, 30, 32, 8, 15, 17, 19, 21, 23, 29, 4, 11, 13, 20, 22, 24, 31, 32, 36, 4, 11, 13, 15, 16, 20, 22, 24, 28, 29, 32, 33, 40, 41, 43, 44, 48, 49, 4, 11, 13, 15, 16, 20, 22, 24, 28, 29, 32, 33, 40, 41, 43, 44, 48, 49, 4, 11, 13, 18, 20, 22, 26, 27, 30, 31, 38, 39, 43, 44, 48, 49, 4, 11, 18, 1, 1, 4, 10, 11, 18, 19, 25, 27, 4, 8, 10, 12, 17, 20, 23, 24, 41, 42, 45, 46, 48, 51, 54, 55, 58, 59, 60, 63, 65, 66, 70, 71, 79, 80, 87, 88, 90, 91, 4, 12, 14, 17, 4, 13, 15, 24, 25, 28, 29, 32, 33, 41, 42, 49, 50, 4, 12, 14, 19, 20, 25, 26, 34, 35, 39, 40, 4, 10, 11, 18, 19, 4, 10, 11, 17, 19, 24, 25, 29, 32, 4, 7, 14, 16, 21, 22, 26, 28, 31, 36, 37, 8, 13, 14, 21, 23, 31, 33, 37, 38, 45, 47, 8, 13, 14, 21, 22, 26, 28, 36, 38, 42, 43, 50, 51, 55, 57, 4, 9, 10, 8, 13, 14, 21, 23, 31, 33, 37, 38, 45, 47, 8, 13, 14, 21, 22, 26, 28, 36, 38, 42, 43, 50, 51, 55, 57, 4, 6, 8, 9, 16, 18, 22, 23, 30, 32, 4, 9, 11, 14, 4, 9, 11, 18, 20, 22, 27, 28, 35, 4, 9, 11, 15, 17, 19, 24, 25, 32, 33, 37, 4, 10, 11, 12, 14, 15, 22, 23, 4, 10, 11, 15, 16, 23, 24, 4, 7, 9, 11, 12, 19, 21, 26, 27, 34, 35, 8, 13, 15, 18, 19, 26, 28, 30, 35, 4, 9, 10, 8, 13, 15, 18, 19, 26, 28, 30, 36, 4, 10, 11, 15, 16, 4, 11, 16, 1, 1, 4, 11, 12, 19, 20, 26, 27, 32, 33, 37, 38, 42, 44, 4, 8, 10, 12, 17, 20, 23, 24, 41, 42, 45, 46, 48, 51, 54, 55, 58, 59, 60, 63, 65, 66, 70, 71, 79, 80, 87, 88, 90, 91, 4, 12, 14, 17, 4, 13, 15, 24, 25, 28, 29, 32, 33, 41, 42, 49, 50, 4, 12, 14, 19, 20, 25, 26, 34, 35, 39, 40, 4, 10, 11, 18, 19, 4, 7, 14, 16, 21, 22, 26, 28, 31, 36, 37, 8, 13, 14, 21, 23, 31, 33, 37, 38, 45, 47, 8, 13, 14, 21, 22, 26, 28, 36, 38, 42, 43, 50, 51, 55, 57, 4, 9, 10, 8, 13, 14, 21, 23, 31, 33, 37, 38, 45, 47, 8, 13, 14, 21, 22, 26, 28, 36, 38, 42, 43, 50, 51, 55, 57, 4, 8, 9, 11, 13, 18, 21, 27, 28, 31, 32, 34, 37, 40, 41, 44, 45, 46, 49, 51, 52, 55, 56, 60, 61, 69, 71, 73, 78, 79, 86, 87, 91, 4, 12, 14, 17, 4, 13, 14, 16, 25, 26, 29, 30, 33, 34, 35, 43, 44, 51, 52, 4, 13, 15, 20, 21, 25, 27, 32, 33, 40, 41, 45, 4, 9, 14, 15, 23, 24, 26, 28, 30, 33, 35, 36, 8, 10, 11, 16, 17, 25, 26, 27, 34, 35, 8, 10, 11, 16, 18, 4, 11, 12, 18, 19, 26, 27, 35, 36, 40, 41, 4, 7, 11, 12, 20, 21, 31, 33, 36, 39, 8, 14, 18, 20, 23, 25, 4, 9, 10, 8, 14, 18, 20, 24, 4, 7, 8, 12, 14, 18, 20, 26, 30, 32, 34, 37, 38, 40, 46, 50, 52, 54, 63, 64, 66, 72, 76, 78, 80, 82, 83, 85, 91, 95, 4, 7, 8, 12, 14, 18, 20, 26, 30, 32, 34, 37, 38, 40, 46, 50, 52, 54, 63, 64, 66, 72, 76, 78, 80, 82, 83, 85, 91, 95, 4, 7, 14, 16, 18, 20, 23, 28, 32, 39, 41, 43, 44, 49, 51, 54, 58, 8, 13, 14, 19, 20, 22, 23, 27, 29, 36, 38, 40, 41, 46, 49, 53, 54, 58, 59, 4, 7, 14, 16, 18, 20, 23, 28, 32, 39, 41, 43, 44, 49, 51, 54, 58, 8, 13, 14, 19, 20, 22, 23, 27, 29, 36, 38, 40, 41, 46, 49, 53, 54, 58, 59, 4, 9, 11, 14, 4, 9, 11, 18, 20, 22, 27, 28, 35, 4, 9, 11, 15, 17, 19, 24, 25, 32, 33, 37, 4, 9, 11, 14, 15, 22, 24, 26, 32, 4, 11, 16, 1, 1, 4, 6, 11, 12, 16, 17, 23, 24, 28, 30, 4, 9, 14, 15, 21, 22, 26, 27, 33, 34, 37, 38, 41, 51, 59, 63, 65, 66, 68, 77, 79, 84, 85, 86, 88, 91, 93, 94, 8, 15, 17, 22, 23, 27, 28, 29, 30, 8, 10, 14, 15, 23, 28, 29, 35, 36, 4, 6, 7, 12, 4, 7, 11, 19, 27, 34, 41, 4, 11, 18, 1, 1, 4, 7, 9, 10, 14, 15, 18, 19, 23, 25, 4, 9, 14, 15, 18, 19, 23, 24, 26, 27, 29, 38, 40, 43, 44, 46, 49, 51, 52, 8, 12, 14, 16, 17, 21, 23, 4, 6, 7, 12, 4, 11, 15, 1, 1, 4, 7, 9, 10, 13, 14, 17, 18, 22, 24, 4, 9, 14, 15, 18, 19, 23, 24, 26, 28, 30, 33, 35, 36, 8, 12, 14, 16, 17, 21, 23, 4, 6, 7, 12, 4, 11, 15, 1, 1, 4, 9, 10, 14, 15, 21, 22, 29, 31, 4, 8, 10, 12, 16, 17, 22, 23, 27, 28, 34, 36, 38, 40, 41, 45, 47, 49, 52, 56, 57, 59, 60, 62, 69, 70, 4, 11, 12, 14, 19, 20, 25, 26, 30, 31, 37, 38, 42, 44, 46, 49, 54, 57, 61, 63, 65, 68, 70, 72, 75, 4, 11, 18, 19, 1, 1, 4, 8, 9, 14, 15, 19, 20, 25, 26, 33, 34, 38, 40, 4, 10, 12, 18, 19, 26, 27, 33, 34, 38, 40, 42, 44, 45, 49, 52, 59, 60, 64, 66, 69, 70, 71, 75, 78, 4, 10, 12, 18, 19, 26, 28, 32, 34, 38, 40, 4, 10, 12, 18, 19, 26, 30, 32, 37, 4, 9, 11, 15, 4, 11, 13, 19, 20, 24, 25, 29, 30, 4, 11, 13, 20, 22, 23, 24, 4, 10, 12, 18, 19, 23, 24, 28, 29, 36, 37, 41, 42, 47, 49, 4, 13, 15, 21, 22, 28, 29, 34, 35, 4, 8, 11, 13, 19, 21, 22, 23, 4, 11, 13, 19, 21, 22, 23, 4, 10, 17, 19, 20, 21, 22, 8, 12, 15, 17, 24, 26, 27, 28, 8, 15, 17, 23, 24, 28, 29, 33, 34, 38, 41, 42, 46, 47, 52, 54, 4, 9, 12, 14, 20, 21, 24, 27, 29, 33, 34, 39, 41, 4, 10, 12, 18, 20, 21, 22, 4, 8, 11, 13, 17, 20, 22, 23, 24, 4, 8, 10, 12, 14, 20, 21, 26, 27, 30, 33, 34, 4, 14, 16, 19, 4, 14, 16, 19, 24, 26, 28, 37, 4, 14, 16, 19, 21, 23, 25, 27, 31, 33, 35, 4, 14, 16, 17, 20, 23, 25, 27, 32, 35, 4, 11, 21, 1, 1, 4, 9, 10, 15, 16, 20, 21, 27, 28, 37, 38, 42, 44, 46, 48, 4, 9, 15, 21, 22, 28, 30, 33, 34, 35, 37, 40, 4, 6, 12, 14, 17, 20, 24, 28, 31, 34, 36, 38, 4, 11, 13, 19, 20, 26, 27, 33, 34, 4, 7, 14, 17, 18, 19, 20, 8, 17, 18, 22, 23, 24, 26, 30, 34, 42, 49, 50, 56, 57, 8, 17, 18, 22, 23, 24, 26, 30, 33, 35, 40, 41, 47, 48, 8, 17, 18, 22, 23, 24, 26, 30, 35, 39, 40, 46, 47, 8, 17, 18, 22, 23, 24, 26, 28, 30, 31, 35, 37, 38, 44, 45, 8, 17, 18, 22, 23, 24, 26, 30, 33, 35, 40, 41, 47, 48, 8, 17, 18, 22, 23, 24, 26, 30, 36, 40, 41, 47, 48, 8, 17, 18, 22, 23, 24, 26, 30, 33, 35, 40, 41, 47, 48, 8, 17, 18, 22, 23, 25, 27, 32, 38, 41, 43, 44, 46, 48, 55, 56, 8, 13, 14, 19, 20, 21, 22, 8, 10, 16, 18, 19, 25, 29, 34, 36, 38, 41, 44, 47, 49, 51, 8, 17, 18, 22, 23, 24, 26, 30, 35, 39, 40, 46, 47, 8, 14, 23, 24, 28, 29, 30, 31, 35, 37, 40, 42, 47, 49, 51, 53, 55, 56, 57, 58, 12, 17, 18, 23, 24, 25, 26, 12, 21, 22, 26, 27, 28, 30, 34, 37, 39, 44, 45, 51, 52, 12, 21, 22, 26, 27, 29, 31, 36, 42, 45, 47, 49, 50, 52, 59, 60, 8, 15, 16, 20, 22, 27, 28, 33, 34, 42, 43, 47, 48, 49, 50, 8, 11, 18, 20, 25, 30, 32, 34, 35, 36, 37, 12, 18, 19, 25, 26, 30, 31, 8, 12, 14, 21, 23, 30, 31, 34, 36, 8, 12, 19, 22, 29, 30, 34, 36, 39, 41, 46, 49, 12, 15, 22, 24, 28, 31, 36, 38, 41, 50, 51, 56, 59, 16, 19, 26, 28, 31, 32, 36, 38, 41, 43, 46, 48, 20, 24, 26, 31, 20, 26, 16, 21, 22, 20, 24, 26, 32, 20, 26, 8, 11, 15, 16, 12, 21, 22, 27, 29, 35, 36, 38, 39, 45, 46, 55, 56, 8, 13, 14, 12, 21, 22, 27, 29, 35, 38, 40, 44, 47, 49, 50, 56, 57, 66, 67, 8, 11, 18, 20, 26, 27, 29, 31, 34, 40, 41, 12, 17, 18, 23, 24, 25, 26, 8, 17, 18, 22, 23, 24, 26, 30, 35, 39, 40, 46, 47, 8, 11, 15, 16, 12, 21, 22, 27, 29, 35, 41, 42, 44, 50, 51, 55, 57, 59, 60, 64, 66, 68, 69, 73, 77, 84, 85, 8, 13, 14, 12, 21, 22, 27, 29, 35, 41, 47, 48, 52, 54, 56, 57, 61, 63, 65, 66, 70, 74, 81, 82, 8, 17, 19, 24, 25, 30, 31, 39, 40, 45, 46, 8, 10, 16, 17, 25, 26, 8, 11, 18, 20, 23, 25, 30, 32, 35, 40, 41, 12, 19, 21, 24, 28, 34, 40, 41, 47, 48, 8, 11, 20, 22, 29, 31, 34, 39, 40, 12, 14, 16, 18, 20, 21, 8, 13, 14, 12, 14, 16, 18, 25, 26, 8, 15, 17, 4, 9, 10, 8, 14, 16, 18, 21, 27, 34, 36, 37, 40, 44, 48, 57, 64, 66, 70, 73, 76, 78, 83, 87, 90, 93, 95, 98, 104, 105, 107, 1, 1, 4, 9, 10, 12, 14, 15, 21, 23, 4, 8, 9, 8, 11, 13, 20, 22, 25, 27, 31, 32, 38, 39, 8, 13, 14, 18, 20, 23, 25, 32, 33, 37, 38, 42, 8, 11, 16, 17, 21, 23, 30, 34, 38, 40, 42, 45, 49, 12, 19, 21, 23, 24, 8, 13, 14, 12, 19, 21, 27, 28, 4, 11, 12, 8, 15, 17, 23, 24, 1, 1, 4, 9, 10, 12, 14, 15, 21, 23, 4, 11, 13, 19, 20, 26, 27, 33, 34, 4, 7, 14, 17, 18, 19, 20, 8, 15, 17, 19, 20, 4, 9, 10, 8, 15, 17, 23, 24, 1, 1, 4, 6, 10, 11, 20, 21, 27, 29, 4, 8, 9, 8, 11, 13, 20, 22, 25, 27, 31, 32, 38, 39, 8, 14, 15, 19, 21, 24, 26, 33, 34, 37, 38, 42, 43, 48, 49, 51, 53, 60, 61, 65, 66, 70, 72, 76, 80, 82, 85, 8, 18, 20, 23, 8, 12, 17, 20, 26, 27, 31, 32, 12, 20, 22, 25, 12, 20, 22, 26, 28, 30, 35, 37, 41, 43, 12, 20, 22, 24, 26, 28, 33, 35, 37, 39, 12, 20, 22, 28, 30, 32, 38, 12, 16, 17, 16, 20, 21, 25, 27, 34, 36, 45, 47, 12, 19, 20, 16, 20, 21, 25, 27, 30, 12, 16, 20, 23, 27, 28, 32, 33, 16, 19, 23, 25, 27, 29, 32, 37, 39, 41, 44, 20, 28, 30, 36, 38, 40, 44, 46, 52, 54, 12, 22, 23, 29, 30, 37, 38, 8, 15, 17, 26, 28, 30, 40, 8, 15, 16, 17, 4, 11, 12, 8, 15, 16, 17, 1, 1, 4, 7, 8, 15, 16, 22, 23, 29, 30, 38, 42, 44, 4, 8, 16, 19, 26, 28, 37, 40, 8, 11, 19, 21, 25, 27, 30, 38, 42, 43, 12, 19, 27, 29, 35, 37, 4, 11, 17, 1, 1, 4, 8, 9, 19, 26, 27, 33, 35, 4, 7, 9, 16, 18, 21, 23, 27, 28, 34, 35, 4, 10, 17, 19, 22, 24, 31, 32, 35, 36, 38, 40, 41, 51, 58, 60, 4, 12, 14, 17, 4, 8, 15, 18, 24, 31, 32, 8, 14, 16, 17, 18, 8, 15, 17, 20, 21, 28, 29, 35, 36, 42, 43, 50, 52, 56, 59, 8, 11, 18, 20, 26, 27, 30, 31, 40, 42, 45, 50, 51, 12, 19, 21, 26, 8, 11, 18, 21, 26, 27, 12, 16, 20, 26, 29, 36, 38, 41, 48, 51, 16, 23, 25, 28, 16, 23, 25, 27, 29, 31, 35, 41, 43, 45, 47, 16, 19, 25, 27, 28, 29, 30, 20, 27, 29, 33, 35, 37, 44, 46, 50, 52, 54, 58, 60, 64, 65, 70, 71, 73, 77, 16, 21, 22, 20, 27, 29, 33, 35, 37, 44, 46, 50, 52, 16, 23, 25, 27, 29, 30, 34, 36, 38, 42, 48, 50, 54, 56, 16, 23, 25, 28, 29, 30, 34, 36, 38, 42, 16, 20, 21, 20, 25, 26, 30, 32, 39, 41, 48, 50, 16, 23, 24, 20, 25, 26, 30, 32, 35, 16, 20, 25, 28, 33, 34, 38, 39, 20, 23, 30, 32, 34, 36, 37, 41, 43, 46, 51, 53, 55, 57, 58, 62, 65, 24, 31, 33, 37, 39, 41, 46, 48, 52, 54, 24, 31, 33, 36, 37, 38, 42, 44, 46, 51, 53, 56, 57, 58, 62, 64, 24, 31, 33, 37, 38, 40, 42, 44, 49, 51, 55, 56, 58, 60, 16, 24, 25, 31, 32, 38, 39, 16, 22, 24, 30, 32, 33, 34, 4, 11, 13, 20, 22, 24, 32, 1, 1, 4, 8, 9, 12, 13, 20, 21, 30, 32, 4, 7, 8, 13, 14, 23, 24, 4, 9, 11, 14, 15, 22, 27, 4, 12, 15, 17, 23, 4, 9, 10, 13, 15, 18, 4, 6, 8, 10, 12, 4, 6, 11, 12, 15, 16, 22, 23, 24, 25, 4, 8, 10, 13, 18, 19, 8, 11, 14, 15, 19, 20, 25, 26, 27, 29, 12, 17, 18, 21, 22, 28, 29, 30, 31, 4, 11, 16, 17, 20, 1, 1, 4, 9, 10, 15, 16, 19, 20, 25, 27, 4, 7, 8, 13, 14, 17, 18, 4, 8, 9, 14, 16, 19, 20, 27, 32, 4, 8, 13, 14, 18, 21, 25, 26, 31, 32, 8, 13, 14, 18, 19, 23, 25, 28, 29, 33, 34, 38, 39, 42, 43, 48, 49, 53, 54, 8, 11, 14, 15, 19, 20, 26, 27, 31, 32, 36, 37, 41, 43, 12, 19, 20, 24, 25, 29, 30, 34, 35, 39, 40, 45, 46, 4, 11, 12, 13, 1, 1, 4, 8, 9, 16, 17, 23, 25, 4, 8, 9, 8, 11, 13, 20, 22, 25, 27, 31, 32, 38, 39, 8, 16, 18, 21, 23, 30, 31, 34, 35, 37, 39, 40, 47, 49, 8, 14, 16, 17, 18, 8, 12, 13, 17, 19, 22, 8, 12, 19, 22, 30, 32, 37, 40, 12, 16, 17, 16, 19, 26, 28, 30, 32, 35, 37, 38, 41, 43, 45, 20, 27, 29, 33, 35, 37, 44, 46, 50, 52, 54, 56, 58, 60, 62, 69, 71, 78, 80, 20, 27, 29, 31, 33, 35, 42, 44, 52, 60, 62, 20, 24, 25, 29, 30, 36, 37, 43, 44, 12, 19, 20, 16, 21, 8, 15, 17, 24, 26, 28, 32, 33, 37, 8, 15, 17, 19, 20, 4, 11, 12, 8, 15, 17, 24, 25, 1, 1, 6, 9, 15, 16, 20, 24, 38, 40, 4, 8, 11, 12, 15, 16, 20, 22, 8, 12, 14, 17, 18, 22, 23, 30, 31, 33, 34, 38, 39, 46, 49, 53, 57, 8, 11, 15, 16, 24, 25, 35, 37, 40, 43, 12, 18, 22, 24, 27, 29, 8, 13, 14, 12, 18, 22, 24, 28, 8, 17, 18, 22, 24, 28, 30, 36, 40, 42, 44, 47, 48, 50, 56, 60, 62, 64, 73, 74, 76, 82, 86, 8, 13, 14, 18, 20, 24, 26, 32, 36, 38, 40, 43, 44, 46, 52, 56, 8, 11, 12, 16, 18, 22, 24, 30, 34, 36, 38, 41, 42, 44, 50, 54, 56, 58, 67, 68, 70, 76, 80, 82, 84, 86, 87, 89, 95, 99, 8, 11, 12, 16, 18, 22, 24, 30, 34, 36, 38, 41, 42, 44, 50, 54, 56, 58, 67, 68, 70, 76, 80, 82, 84, 86, 87, 89, 95, 99, 8, 13, 14, 18, 20, 24, 26, 32, 36, 38, 40, 43, 44, 46, 52, 56, 58, 60, 64, 65, 67, 73, 77, 8, 13, 14, 18, 20, 24, 26, 32, 36, 38, 40, 48, 49, 51, 57, 61, 8, 14, 15, 19, 20, 24, 25, 8, 11, 16, 17, 21, 24, 27, 29, 31, 32, 36, 37, 41, 43, 12, 14, 16, 19, 21, 22, 26, 27, 31, 32, 36, 38, 40, 42, 44, 45, 49, 50, 54, 56, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 21, 22, 29, 31, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 37, 38, 40, 43, 44, 45, 48, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 29, 31, 32, 36, 37, 41, 43, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 19, 21, 22, 26, 27, 31, 32, 36, 38, 40, 42, 44, 45, 49, 50, 54, 56, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 37, 38, 40, 43, 44, 45, 48, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 30, 31, 35, 36, 40, 42, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 19, 21, 22, 26, 27, 31, 32, 36, 38, 40, 43, 44, 48, 49, 53, 55, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 37, 38, 40, 43, 44, 45, 48, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 31, 32, 36, 37, 41, 43, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 19, 21, 22, 26, 27, 31, 32, 36, 38, 40, 44, 45, 49, 50, 54, 56, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 37, 38, 40, 43, 44, 45, 48, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 29, 30, 34, 35, 39, 41, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 19, 21, 22, 26, 27, 31, 32, 36, 38, 40, 42, 43, 47, 48, 52, 54, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 37, 38, 40, 43, 44, 45, 48, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 29, 30, 34, 35, 39, 41, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 19, 21, 22, 26, 27, 31, 32, 36, 38, 40, 42, 43, 47, 48, 52, 54, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 37, 38, 40, 43, 44, 45, 48, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 32, 33, 37, 38, 42, 44, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 19, 21, 22, 26, 27, 31, 32, 36, 38, 40, 45, 46, 50, 51, 55, 57, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 37, 38, 40, 43, 44, 45, 48, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 33, 34, 38, 40, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 19, 21, 22, 26, 27, 31, 32, 36, 38, 40, 46, 47, 51, 53, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 37, 38, 40, 43, 44, 45, 48, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 31, 32, 36, 38, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 19, 21, 22, 26, 27, 31, 32, 36, 38, 40, 44, 45, 49, 51, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 37, 38, 40, 43, 44, 45, 48, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 33, 34, 38, 40, 12, 14, 16, 19, 21, 22, 26, 27, 31, 32, 36, 38, 40, 46, 47, 51, 53, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 21, 22, 29, 31, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 37, 38, 40, 43, 44, 45, 48, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 34, 35, 41, 42, 43, 44, 45, 46, 47, 48, 51, 53, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 19, 21, 22, 25, 26, 34, 35, 39, 41, 43, 50, 51, 57, 58, 59, 60, 61, 62, 63, 64, 67, 69, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 37, 39, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 29, 30, 38, 39, 43, 44, 45, 46, 49, 51, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 19, 21, 22, 25, 26, 34, 35, 39, 41, 43, 45, 46, 54, 55, 59, 60, 61, 62, 65, 67, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 37, 39, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 33, 34, 37, 39, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 19, 21, 22, 25, 26, 34, 35, 39, 41, 43, 49, 50, 53, 55, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 37, 39, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 28, 31, 33, 34, 40, 42, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 58, 59, 63, 65, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 18, 23, 24, 30, 31, 34, 36, 42, 46, 48, 50, 56, 57, 61, 63, 66, 67, 71, 72, 75, 76, 80, 81, 86, 87, 91, 92, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 40, 41, 46, 47, 48, 50, 52, 55, 56, 57, 60, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 28, 31, 33, 34, 40, 41, 44, 46, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 58, 59, 63, 65, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 18, 23, 24, 30, 31, 34, 36, 42, 46, 48, 50, 56, 57, 61, 63, 66, 67, 71, 72, 75, 76, 80, 81, 86, 87, 91, 92, 12, 14, 18, 19, 28, 29, 30, 31, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 40, 41, 46, 47, 48, 50, 52, 55, 56, 57, 60, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 28, 31, 33, 34, 40, 41, 44, 46, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 58, 59, 63, 65, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 18, 23, 24, 30, 31, 34, 36, 42, 46, 48, 50, 56, 57, 61, 63, 66, 67, 71, 72, 75, 76, 80, 81, 86, 87, 91, 92, 12, 16, 17, 24, 25, 26, 27, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 40, 41, 46, 47, 48, 50, 52, 55, 56, 57, 60, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 32, 33, 40, 42, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 58, 59, 63, 65, 12, 17, 18, 21, 22, 29, 31, 12, 19, 21, 23, 28, 29, 35, 36, 39, 41, 47, 51, 53, 55, 61, 62, 66, 68, 71, 72, 76, 77, 80, 81, 85, 86, 91, 92, 96, 97, 12, 14, 16, 22, 23, 30, 31, 37, 38, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 40, 41, 46, 47, 48, 50, 52, 55, 56, 57, 60, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 33, 34, 41, 43, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 58, 59, 63, 65, 12, 17, 18, 21, 22, 29, 31, 12, 19, 21, 23, 28, 29, 35, 36, 39, 41, 47, 51, 53, 55, 61, 62, 66, 68, 71, 72, 76, 77, 80, 81, 85, 86, 91, 92, 96, 97, 12, 14, 16, 23, 24, 31, 32, 38, 39, 44, 45, 49, 50, 54, 55, 12, 20, 22, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 40, 41, 46, 47, 48, 50, 52, 55, 56, 57, 60, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 30, 31, 36, 38, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 58, 59, 63, 65, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 20, 21, 26, 28, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 40, 41, 46, 47, 48, 50, 52, 55, 56, 57, 60, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 34, 36, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 18, 20, 28, 29, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 37, 38, 40, 43, 44, 45, 48, 12, 20, 22, 8, 11, 16, 17, 21, 24, 27, 34, 35, 40, 42, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 58, 59, 63, 65, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 18, 23, 24, 30, 31, 34, 36, 42, 46, 48, 50, 56, 57, 61, 63, 66, 67, 71, 72, 75, 76, 80, 81, 86, 87, 91, 92, 12, 16, 17, 27, 34, 35, 36, 37, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 40, 41, 46, 47, 48, 50, 52, 55, 56, 57, 60, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 31, 33, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 58, 59, 63, 65, 12, 17, 18, 21, 22, 29, 31, 12, 19, 21, 23, 28, 29, 35, 36, 39, 41, 47, 51, 53, 55, 61, 62, 66, 68, 71, 72, 76, 77, 80, 81, 85, 86, 91, 92, 96, 97, 12, 14, 16, 18, 23, 24, 28, 29, 33, 34, 38, 40, 47, 49, 57, 59, 61, 67, 71, 73, 75, 79, 80, 82, 84, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 40, 41, 46, 47, 48, 50, 52, 55, 56, 57, 60, 12, 19, 20, 21, 8, 11, 16, 17, 21, 22, 26, 29, 33, 34, 37, 40, 43, 44, 45, 46, 12, 16, 17, 21, 23, 28, 29, 33, 12, 18, 19, 22, 23, 27, 28, 12, 14, 16, 20, 23, 27, 28, 31, 32, 36, 39, 42, 12, 14, 16, 20, 21, 25, 26, 27, 29, 33, 34, 37, 38, 42, 44, 12, 18, 19, 20, 21, 12, 19, 21, 23, 28, 29, 35, 36, 39, 41, 47, 51, 53, 55, 61, 62, 66, 68, 71, 72, 76, 77, 80, 81, 85, 86, 91, 92, 96, 97, 12, 17, 23, 29, 30, 36, 38, 41, 42, 43, 45, 48, 12, 19, 21, 27, 28, 34, 35, 41, 42, 12, 15, 17, 20, 22, 23, 25, 27, 16, 19, 26, 29, 30, 31, 32, 20, 29, 30, 34, 35, 36, 38, 42, 46, 54, 61, 62, 68, 69, 20, 29, 30, 34, 35, 36, 38, 42, 45, 47, 52, 53, 59, 60, 20, 29, 30, 34, 35, 36, 38, 42, 47, 51, 52, 58, 59, 20, 29, 30, 34, 35, 36, 38, 40, 42, 43, 47, 49, 50, 56, 57, 20, 29, 30, 34, 35, 36, 38, 42, 45, 47, 52, 53, 59, 60, 20, 29, 30, 34, 35, 36, 38, 42, 48, 52, 53, 59, 60, 20, 29, 30, 34, 35, 36, 38, 42, 45, 47, 52, 53, 59, 60, 20, 29, 30, 34, 35, 37, 39, 44, 50, 53, 55, 56, 58, 60, 67, 68, 20, 23, 30, 32, 34, 38, 40, 43, 48, 49, 24, 29, 30, 35, 36, 37, 38, 24, 33, 34, 38, 39, 41, 43, 48, 54, 57, 59, 60, 62, 64, 71, 72, 20, 25, 26, 31, 32, 33, 34, 20, 29, 30, 34, 35, 36, 38, 42, 47, 51, 52, 58, 59, 12, 17, 18, 16, 25, 26, 30, 31, 33, 35, 40, 46, 49, 50, 51, 52, 59, 60, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 53, 12, 17, 18, 21, 22, 29, 31, 12, 14, 16, 18, 20, 21, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 37, 38, 40, 43, 44, 45, 48, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 30, 31, 34, 36, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 53, 12, 17, 18, 21, 22, 29, 31, 12, 19, 21, 23, 28, 29, 35, 36, 39, 41, 47, 51, 53, 55, 61, 62, 66, 68, 71, 72, 76, 77, 80, 81, 85, 86, 91, 92, 96, 97, 12, 14, 16, 19, 21, 22, 25, 26, 29, 31, 37, 41, 43, 45, 47, 49, 50, 51, 54, 56, 57, 63, 64, 71, 72, 75, 77, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 37, 39, 12, 19, 20, 21, 8, 13, 14, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 21, 22, 29, 31, 12, 17, 18, 19, 23, 24, 29, 30, 35, 38, 42, 44, 48, 50, 55, 56, 61, 64, 70, 76, 77, 80, 82, 87, 90, 94, 97, 99, 102, 103, 104, 107, 12, 17, 18, 19, 23, 24, 29, 30, 35, 38, 39, 40, 47, 48, 50, 51, 53, 54, 56, 58, 63, 64, 68, 69, 71, 74, 75, 76, 79, 12, 17, 18, 19, 23, 24, 29, 30, 35, 38, 42, 45, 47, 50, 51, 52, 55, 12, 17, 18, 19, 23, 24, 29, 30, 35, 38, 39, 40, 44, 47, 50, 58, 62, 69, 72, 73, 76, 78, 81, 82, 83, 86, 12, 17, 18, 19, 23, 24, 29, 30, 35, 39, 43, 46, 50, 53, 55, 58, 59, 60, 63, 4, 8, 11, 12, 16, 17, 21, 23, 8, 12, 14, 17, 18, 22, 23, 30, 31, 33, 34, 38, 39, 46, 49, 53, 57, 8, 11, 15, 16, 24, 25, 35, 37, 40, 43, 12, 18, 22, 24, 27, 29, 8, 13, 14, 12, 18, 22, 24, 28, 8, 17, 18, 22, 24, 28, 30, 36, 40, 42, 44, 47, 48, 50, 56, 60, 62, 64, 73, 74, 76, 82, 86, 8, 13, 14, 18, 20, 24, 26, 32, 36, 38, 40, 43, 44, 46, 52, 56, 8, 11, 12, 16, 18, 22, 24, 30, 34, 36, 38, 41, 42, 44, 50, 54, 56, 58, 67, 68, 70, 76, 80, 82, 84, 86, 87, 89, 95, 99, 8, 11, 12, 16, 18, 22, 24, 30, 34, 36, 38, 41, 42, 44, 50, 54, 56, 58, 67, 68, 70, 76, 80, 82, 84, 86, 87, 89, 95, 99, 8, 12, 13, 17, 19, 23, 25, 31, 35, 37, 39, 42, 43, 45, 51, 55, 8, 13, 14, 18, 20, 24, 26, 32, 36, 38, 40, 43, 44, 46, 52, 56, 58, 60, 64, 65, 67, 73, 77, 8, 13, 14, 18, 20, 24, 26, 32, 36, 38, 40, 48, 49, 51, 57, 61, 8, 14, 15, 19, 20, 24, 25, 8, 11, 16, 17, 21, 24, 27, 31, 32, 38, 40, 12, 20, 21, 27, 29, 33, 34, 38, 39, 46, 48, 55, 56, 62, 65, 66, 68, 70, 73, 78, 82, 87, 90, 95, 12, 17, 18, 22, 24, 29, 30, 31, 35, 36, 40, 41, 48, 49, 55, 56, 57, 59, 61, 64, 69, 73, 78, 85, 12, 19, 21, 26, 27, 32, 33, 37, 38, 42, 43, 49, 51, 54, 55, 56, 59, 12, 17, 18, 24, 25, 28, 30, 36, 40, 42, 44, 50, 51, 55, 57, 64, 65, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 45, 47, 51, 52, 58, 60, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 22, 23, 29, 31, 37, 38, 45, 46, 51, 52, 63, 65, 67, 71, 73, 12, 17, 18, 22, 23, 29, 31, 37, 38, 45, 46, 51, 52, 58, 60, 63, 65, 12, 17, 18, 21, 22, 29, 31, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 40, 41, 46, 47, 53, 55, 57, 60, 61, 62, 65, 8, 11, 16, 17, 21, 24, 27, 32, 33, 35, 37, 39, 12, 20, 21, 27, 29, 33, 34, 38, 39, 46, 48, 55, 56, 62, 65, 66, 68, 70, 73, 78, 82, 87, 90, 95, 12, 17, 18, 22, 24, 29, 30, 31, 35, 36, 40, 41, 48, 49, 55, 56, 57, 59, 61, 64, 69, 73, 78, 85, 12, 19, 21, 26, 27, 32, 33, 37, 38, 42, 43, 49, 51, 54, 55, 56, 59, 12, 14, 16, 21, 22, 24, 26, 27, 33, 34, 12, 15, 17, 20, 22, 24, 26, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 56, 62, 64, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 40, 44, 45, 50, 51, 57, 59, 61, 64, 65, 66, 69, 16, 23, 25, 29, 30, 35, 37, 16, 19, 26, 28, 32, 37, 39, 42, 44, 47, 48, 57, 59, 20, 25, 26, 32, 33, 36, 38, 44, 48, 50, 52, 58, 59, 63, 65, 72, 73, 20, 23, 25, 26, 27, 33, 34, 36, 37, 43, 45, 52, 20, 28, 30, 12, 17, 18, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 57, 62, 65, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 41, 46, 48, 50, 53, 54, 55, 58, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 32, 33, 35, 37, 39, 12, 20, 21, 27, 29, 33, 34, 38, 39, 46, 48, 55, 56, 62, 65, 66, 68, 70, 73, 78, 82, 87, 90, 95, 12, 17, 18, 22, 24, 29, 30, 31, 35, 36, 40, 41, 48, 49, 55, 56, 57, 59, 61, 64, 69, 73, 78, 85, 12, 19, 21, 26, 27, 32, 33, 37, 38, 42, 43, 49, 51, 54, 55, 56, 59, 12, 14, 16, 21, 22, 24, 26, 27, 33, 34, 12, 15, 17, 20, 22, 24, 26, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 56, 62, 64, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 40, 44, 45, 50, 51, 57, 59, 61, 64, 65, 66, 69, 12, 17, 18, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 57, 62, 65, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 41, 46, 48, 50, 53, 54, 55, 58, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 31, 32, 36, 38, 12, 20, 21, 27, 29, 33, 34, 38, 39, 46, 48, 55, 56, 62, 65, 66, 68, 70, 73, 78, 82, 87, 90, 95, 12, 17, 18, 22, 24, 29, 30, 31, 35, 36, 40, 41, 48, 49, 55, 56, 57, 59, 61, 64, 69, 73, 78, 85, 12, 19, 21, 26, 27, 32, 33, 37, 38, 42, 43, 49, 51, 54, 55, 56, 59, 12, 19, 21, 23, 28, 29, 35, 36, 39, 41, 47, 51, 53, 55, 61, 62, 66, 68, 71, 72, 76, 77, 80, 81, 85, 86, 91, 92, 96, 97, 12, 14, 16, 21, 22, 26, 27, 33, 34, 41, 42, 12, 15, 17, 20, 22, 24, 26, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 56, 62, 64, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 40, 44, 45, 50, 51, 57, 59, 61, 64, 65, 66, 69, 12, 17, 18, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 57, 62, 65, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 41, 46, 48, 50, 53, 54, 55, 58, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 35, 36, 40, 42, 12, 20, 21, 27, 29, 33, 34, 38, 39, 46, 48, 55, 56, 62, 65, 66, 68, 70, 73, 78, 82, 87, 90, 95, 12, 17, 18, 22, 24, 29, 30, 31, 35, 36, 40, 41, 48, 49, 55, 56, 57, 59, 61, 64, 69, 73, 78, 85, 12, 17, 18, 21, 23, 28, 29, 34, 35, 39, 40, 44, 45, 51, 53, 56, 57, 58, 61, 12, 17, 19, 24, 25, 28, 30, 34, 36, 12, 19, 21, 23, 28, 29, 35, 36, 39, 41, 47, 51, 53, 55, 61, 62, 66, 68, 71, 72, 76, 77, 80, 81, 85, 86, 91, 92, 96, 97, 12, 14, 16, 25, 26, 32, 33, 37, 38, 45, 46, 12, 14, 15, 19, 21, 26, 27, 32, 33, 34, 35, 12, 18, 19, 22, 23, 24, 25, 29, 31, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 45, 47, 51, 52, 53, 54, 58, 60, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 22, 23, 29, 31, 37, 38, 45, 46, 51, 52, 63, 65, 67, 71, 73, 12, 17, 18, 22, 23, 29, 31, 37, 38, 45, 46, 51, 52, 58, 60, 63, 65, 12, 17, 18, 21, 22, 29, 31, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 40, 41, 46, 47, 48, 50, 52, 55, 56, 57, 60, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 31, 32, 34, 36, 12, 20, 21, 27, 29, 33, 34, 38, 39, 46, 48, 55, 56, 62, 65, 66, 68, 70, 73, 78, 82, 87, 90, 95, 12, 17, 18, 22, 24, 29, 30, 31, 35, 36, 40, 41, 48, 49, 55, 56, 57, 59, 61, 64, 69, 73, 78, 85, 12, 19, 21, 26, 27, 32, 33, 37, 38, 42, 43, 49, 51, 54, 55, 56, 59, 12, 17, 18, 24, 25, 28, 30, 36, 40, 42, 44, 50, 51, 55, 57, 64, 65, 12, 17, 18, 23, 24, 26, 27, 31, 33, 40, 42, 44, 45, 50, 53, 57, 58, 62, 63, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 45, 47, 51, 52, 58, 60, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 22, 23, 29, 31, 37, 38, 45, 46, 51, 52, 63, 65, 67, 71, 73, 12, 17, 18, 22, 23, 29, 31, 37, 38, 45, 46, 51, 52, 58, 60, 63, 65, 12, 17, 18, 21, 22, 29, 31, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 40, 41, 46, 47, 53, 55, 57, 60, 61, 62, 65, 12, 20, 22, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 31, 32, 34, 36, 12, 20, 21, 27, 29, 33, 34, 38, 39, 46, 48, 55, 56, 62, 65, 66, 68, 70, 73, 78, 82, 87, 90, 95, 12, 17, 18, 22, 24, 29, 30, 31, 35, 36, 40, 41, 48, 49, 55, 56, 57, 59, 61, 64, 69, 73, 78, 85, 12, 19, 21, 26, 27, 32, 33, 37, 38, 42, 43, 49, 51, 54, 55, 56, 59, 12, 17, 18, 24, 25, 28, 30, 36, 40, 42, 44, 50, 51, 55, 57, 64, 65, 12, 17, 18, 23, 24, 26, 27, 31, 33, 40, 42, 44, 45, 50, 53, 57, 58, 62, 63, 12, 17, 18, 22, 23, 31, 32, 33, 34, 35, 36, 12, 17, 18, 22, 23, 29, 31, 38, 39, 45, 47, 51, 52, 58, 60, 12, 17, 18, 22, 23, 29, 31, 38, 39, 43, 45, 47, 51, 52, 56, 58, 12, 17, 18, 22, 23, 29, 31, 37, 38, 45, 46, 51, 52, 63, 65, 67, 71, 73, 12, 17, 18, 22, 23, 29, 31, 37, 38, 45, 46, 51, 52, 58, 60, 63, 65, 12, 17, 18, 21, 22, 29, 31, 12, 17, 18, 19, 23, 24, 29, 30, 35, 36, 40, 41, 46, 47, 53, 55, 57, 60, 61, 62, 65, 12, 20, 22, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 30, 31, 33, 34, 37, 39, 12, 20, 21, 27, 29, 33, 34, 38, 39, 46, 48, 55, 56, 62, 65, 66, 68, 70, 73, 78, 82, 87, 90, 95, 12, 17, 18, 22, 24, 29, 30, 31, 35, 36, 40, 41, 48, 49, 55, 56, 57, 59, 61, 64, 69, 73, 78, 85, 12, 19, 21, 26, 27, 32, 33, 37, 38, 42, 43, 49, 51, 54, 55, 56, 59, 12, 14, 16, 20, 21, 23, 24, 27, 28, 34, 35, 12, 15, 17, 20, 22, 24, 26, 16, 21, 22, 28, 29, 32, 34, 40, 44, 46, 48, 54, 55, 59, 61, 68, 69, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 56, 62, 64, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 40, 44, 45, 50, 51, 57, 59, 61, 64, 65, 66, 69, 12, 17, 18, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 57, 62, 65, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 41, 46, 48, 50, 53, 54, 55, 58, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 29, 30, 34, 35, 39, 41, 12, 20, 21, 27, 29, 33, 34, 38, 39, 46, 48, 55, 56, 62, 65, 66, 68, 70, 73, 78, 82, 87, 90, 95, 12, 17, 18, 22, 24, 29, 30, 31, 35, 36, 40, 41, 48, 49, 55, 56, 57, 59, 61, 64, 69, 73, 78, 85, 12, 19, 21, 26, 27, 32, 33, 37, 38, 42, 43, 49, 51, 54, 55, 56, 59, 12, 14, 16, 19, 20, 24, 25, 29, 30, 36, 37, 12, 15, 17, 20, 22, 24, 26, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 56, 62, 64, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 40, 44, 45, 50, 51, 57, 59, 61, 64, 65, 66, 69, 12, 17, 18, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 57, 62, 65, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 41, 46, 48, 50, 53, 54, 55, 58, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 30, 31, 33, 34, 41, 43, 12, 20, 21, 27, 29, 33, 34, 38, 39, 46, 48, 55, 56, 62, 65, 66, 68, 70, 73, 78, 82, 87, 90, 95, 12, 17, 18, 22, 24, 29, 30, 31, 35, 36, 40, 41, 48, 49, 55, 56, 57, 59, 61, 64, 69, 73, 78, 85, 12, 19, 21, 26, 27, 32, 33, 37, 38, 42, 43, 49, 51, 54, 55, 56, 59, 12, 14, 16, 20, 21, 23, 24, 31, 32, 38, 39, 12, 15, 17, 20, 22, 24, 26, 16, 21, 22, 28, 29, 32, 34, 40, 44, 46, 48, 54, 55, 59, 61, 68, 69, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 56, 62, 64, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 40, 44, 45, 50, 51, 57, 59, 61, 64, 65, 66, 69, 12, 17, 18, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 57, 62, 65, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 41, 46, 48, 50, 53, 54, 55, 58, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 30, 31, 33, 34, 41, 43, 12, 20, 21, 27, 29, 33, 34, 38, 39, 46, 48, 55, 56, 62, 65, 66, 68, 70, 73, 78, 82, 87, 90, 95, 12, 17, 18, 22, 24, 29, 30, 31, 35, 36, 40, 41, 48, 49, 55, 56, 57, 59, 61, 64, 69, 73, 78, 85, 12, 19, 21, 26, 27, 32, 33, 37, 38, 42, 43, 49, 51, 54, 55, 56, 59, 12, 14, 16, 20, 21, 23, 25, 26, 30, 31, 37, 38, 12, 15, 17, 20, 25, 26, 16, 23, 25, 27, 28, 35, 37, 39, 41, 16, 21, 22, 28, 29, 32, 34, 40, 44, 46, 48, 54, 55, 59, 61, 68, 69, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 56, 62, 64, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 40, 44, 45, 50, 51, 57, 59, 61, 64, 65, 66, 69, 12, 17, 18, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 57, 62, 65, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 41, 46, 48, 50, 53, 54, 55, 58, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 29, 30, 34, 35, 39, 41, 12, 20, 21, 27, 29, 33, 34, 38, 39, 46, 48, 55, 56, 62, 65, 66, 68, 70, 73, 78, 82, 87, 90, 95, 12, 17, 18, 22, 24, 29, 30, 31, 35, 36, 40, 41, 48, 49, 55, 56, 57, 59, 61, 64, 69, 73, 78, 85, 12, 19, 21, 26, 27, 32, 33, 37, 38, 42, 43, 49, 51, 54, 55, 56, 59, 12, 14, 16, 19, 20, 26, 27, 29, 31, 32, 38, 39, 12, 15, 17, 20, 22, 24, 26, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 56, 62, 64, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 40, 44, 45, 50, 51, 57, 59, 61, 64, 65, 66, 69, 12, 17, 18, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 57, 62, 65, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 41, 46, 48, 50, 53, 54, 55, 58, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 29, 30, 34, 35, 38, 40, 12, 20, 21, 27, 29, 33, 34, 38, 39, 46, 48, 55, 56, 62, 65, 66, 68, 70, 73, 78, 82, 87, 90, 95, 12, 17, 18, 22, 24, 29, 30, 31, 35, 36, 40, 41, 48, 49, 55, 56, 57, 59, 61, 64, 69, 73, 78, 85, 12, 19, 21, 26, 27, 32, 33, 37, 38, 42, 43, 49, 51, 54, 55, 56, 59, 12, 14, 16, 19, 20, 23, 24, 28, 29, 35, 36, 12, 15, 17, 20, 22, 24, 26, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 56, 62, 64, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 40, 44, 45, 50, 51, 57, 59, 61, 64, 65, 66, 69, 12, 17, 18, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 57, 62, 65, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 41, 46, 48, 50, 53, 54, 55, 58, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 29, 30, 34, 35, 37, 39, 12, 20, 21, 27, 29, 33, 34, 38, 39, 46, 48, 55, 56, 62, 65, 66, 68, 70, 73, 78, 82, 87, 90, 95, 12, 17, 18, 22, 24, 29, 30, 31, 35, 36, 40, 41, 48, 49, 55, 56, 57, 59, 61, 64, 69, 73, 78, 85, 12, 19, 21, 26, 27, 32, 33, 37, 38, 42, 43, 49, 51, 54, 55, 56, 59, 12, 14, 16, 19, 20, 25, 26, 31, 32, 38, 39, 12, 15, 17, 20, 22, 24, 26, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 56, 62, 64, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 40, 44, 45, 50, 51, 57, 59, 61, 64, 65, 66, 69, 12, 17, 18, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 57, 62, 65, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 41, 46, 48, 50, 53, 54, 55, 58, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 29, 30, 34, 35, 38, 40, 12, 20, 21, 27, 29, 33, 34, 38, 39, 46, 48, 55, 56, 62, 65, 66, 68, 70, 73, 78, 82, 87, 90, 95, 12, 17, 18, 22, 24, 29, 30, 31, 35, 36, 40, 41, 48, 49, 55, 56, 57, 59, 61, 64, 69, 73, 78, 85, 12, 19, 21, 26, 27, 32, 33, 37, 38, 42, 43, 49, 51, 54, 55, 56, 59, 12, 14, 16, 19, 20, 25, 26, 29, 30, 36, 37, 12, 15, 17, 20, 22, 24, 26, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 56, 62, 64, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 40, 44, 45, 50, 51, 57, 59, 61, 64, 65, 66, 69, 12, 17, 18, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 57, 62, 65, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 41, 46, 48, 50, 53, 54, 55, 58, 12, 19, 20, 21, 8, 11, 16, 17, 21, 24, 27, 29, 30, 34, 35, 37, 39, 41, 12, 20, 21, 27, 29, 33, 34, 38, 39, 46, 48, 55, 56, 62, 65, 66, 68, 70, 73, 78, 82, 87, 90, 95, 12, 17, 18, 22, 24, 29, 30, 31, 35, 36, 40, 41, 48, 49, 55, 56, 57, 59, 61, 64, 69, 73, 78, 85, 12, 19, 21, 26, 27, 32, 33, 37, 38, 42, 43, 49, 51, 54, 55, 56, 59, 12, 14, 16, 19, 20, 26, 27, 29, 31, 32, 38, 39, 12, 15, 17, 20, 22, 24, 26, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 56, 62, 64, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 40, 44, 45, 50, 51, 57, 59, 61, 64, 65, 66, 69, 12, 17, 18, 16, 21, 22, 26, 27, 35, 36, 37, 38, 39, 40, 16, 21, 22, 26, 27, 33, 35, 42, 43, 49, 51, 55, 57, 62, 65, 16, 21, 22, 26, 27, 33, 35, 42, 43, 47, 49, 51, 55, 56, 60, 62, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 67, 69, 71, 75, 77, 16, 21, 22, 26, 27, 33, 35, 41, 42, 49, 50, 55, 56, 62, 64, 67, 69, 16, 21, 22, 25, 26, 33, 35, 16, 21, 22, 23, 27, 28, 33, 34, 39, 41, 46, 48, 50, 53, 54, 55, 58, 12, 19, 20, 21, 1, 1, 3, 6, 10, 12, 15, 19, 23, 27, 4, 8, 10, 13, 14, 18, 19, 26, 27, 29, 30, 34, 35, 42, 45, 49, 53, 4, 7, 11, 12, 20, 21, 31, 33, 36, 39, 8, 14, 18, 20, 23, 25, 4, 9, 10, 8, 14, 18, 20, 24, 4, 11, 12, 16, 18, 22, 24, 30, 34, 36, 38, 44, 45, 49, 50, 4, 13, 14, 18, 20, 24, 26, 32, 36, 38, 40, 43, 44, 46, 52, 56, 58, 60, 69, 70, 72, 78, 82, 4, 9, 10, 14, 16, 20, 22, 28, 32, 34, 36, 39, 40, 42, 48, 52, 4, 7, 8, 12, 14, 18, 20, 26, 30, 32, 34, 37, 38, 40, 46, 50, 52, 54, 63, 64, 66, 72, 76, 78, 80, 82, 83, 85, 91, 95, 4, 7, 8, 12, 14, 18, 20, 26, 30, 32, 34, 37, 38, 40, 46, 50, 52, 54, 63, 64, 66, 72, 76, 78, 80, 82, 83, 85, 91, 95, 4, 8, 9, 13, 15, 19, 21, 27, 31, 33, 35, 38, 39, 41, 47, 51, 4, 9, 10, 14, 16, 20, 22, 28, 32, 34, 36, 39, 40, 42, 48, 52, 54, 56, 60, 61, 63, 69, 73, 4, 9, 10, 14, 16, 20, 22, 28, 32, 34, 36, 44, 45, 47, 53, 57, 4, 11, 13, 15, 20, 21, 27, 28, 34, 35, 39, 40, 43, 44, 48, 49, 52, 53, 57, 58, 63, 64, 68, 69, 4, 12, 14, 18, 20, 26, 30, 32, 34, 36, 38, 39, 40, 43, 45, 46, 52, 53, 60, 61, 64, 65, 4, 9, 11, 13, 18, 19, 23, 24, 28, 29, 33, 35, 42, 44, 52, 54, 56, 62, 66, 68, 70, 74, 75, 77, 79, 4, 7, 14, 16, 21, 26, 28, 31, 32, 33, 34, 8, 16, 17, 22, 28, 29, 12, 19, 22, 23, 25, 30, 31, 32, 35, 40, 44, 45, 46, 47, 50, 57, 58, 59, 61, 66, 69, 72, 73, 75, 76, 78, 79, 81, 82, 84, 85, 87, 88, 90, 91, 93, 99, 100, 107, 108, 116, 8, 10, 4, 9, 16, 18, 23, 28, 30, 33, 34, 35, 36, 8, 10, 12, 14, 22, 23, 31, 32, 35, 40, 44, 51, 52, 12, 21, 22, 29, 30, 35, 37, 38, 40, 44, 49, 50, 51, 52, 54, 55, 56, 57, 58, 59, 61, 62, 63, 64, 65, 66, 67, 74, 79, 80, 81, 82, 91, 92, 96, 97, 103, 104, 105, 8, 10, 8, 16, 17, 22, 28, 29, 12, 19, 22, 23, 25, 30, 31, 32, 35, 40, 44, 45, 46, 47, 50, 57, 58, 59, 61, 66, 69, 72, 73, 75, 76, 78, 79, 81, 82, 84, 85, 87, 88, 90, 91, 93, 99, 100, 107, 108, 112, 113, 122, 124, 126, 127, 128, 8, 10, 4, 9, 16, 18, 23, 28, 30, 33, 34, 35, 36, 8, 10, 12, 14, 22, 23, 31, 32, 35, 40, 44, 51, 52, 12, 21, 22, 29, 30, 35, 37, 38, 40, 44, 49, 50, 51, 53, 54, 55, 56, 57, 58, 60, 61, 62, 63, 64, 65, 66, 73, 78, 79, 80, 81, 90, 91, 95, 96, 102, 103, 104, 8, 10, 8, 16, 17, 22, 28, 29, 12, 19, 22, 23, 25, 30, 31, 32, 35, 40, 44, 45, 46, 47, 50, 57, 58, 59, 61, 66, 69, 72, 73, 75, 76, 78, 79, 81, 82, 84, 85, 87, 88, 90, 91, 93, 99, 100, 107, 108, 113, 114, 123, 125, 127, 128, 129, 8, 10, 4, 7, 9, 10, 11, 17, 19, 21, 24, 26, 27, 29, 31, 4, 7, 9, 10, 11, 17, 18, 20, 21, 27, 29, 36, 4, 7, 9, 10, 11, 17, 18, 24, 25, 29, 31, 38, 39, 43, 4, 7, 9, 10, 11, 17, 18, 20, 21, 25, 27, 32, 4, 6, 8, 18, 19, 25, 26, 32, 33, 39, 40, 48, 49, 54, 56, 58, 60, 61, 62, 68, 71, 4, 6, 7, 12, 14, 4, 10, 11, 13, 14, 15, 4, 11, 12, 14, 20, 22, 25, 4, 12, 13, 18, 20, 23, 26, 30, 33, 37, 42, 46, 47, 48, 50, 4, 11, 15, 17, 18, 19, 20, 21, 22, 4, 8, 14, 16, 21, 27, 28, 32, 39, 43, 45, 48, 54, 55, 4, 10, 12, 18, 26, 31, 34, 35, 36, 38, 39, 40, 42, 45, 47, 54, 58, 60, 4, 8, 9, 8, 12, 18, 19, 24, 25, 29, 32, 34, 4, 11, 20, 29, 30, 8, 13, 4, 8, 14, 15, 21, 22, 27, 29, 4, 12, 13, 17, 19, 22, 26, 30, 32, 4, 12, 13, 17, 19, 27, 29, 4, 10, 12, 18, 26, 29 ]
5dc8f420e16ee14ecfdc61413f10a783e819ec32
import sys def is_huge(A, B): return (A[0] > B[0]) and (A[1] > B[1]) if __name__ == "__main__": bulks = [] num = int(sys.stdin.readline()) for i in range(num): bulks.append(list(map(int, sys.stdin.readline().split()))) for i in range(len(bulks)): count = 0 for j in range(len(bulks)): if bulks[i] != bulks[j] and is_huge(bulks[j], bulks[i]): count += 1 if count == 0: print(1, end=" ") else: print(count + 1, end=" ")
[ 485, 5263, 499, 222, 610, 458, 100, 46463, 45, 70, 49, 570, 731, 303, 461, 327, 70, 96, 53, 98, 868, 570, 96, 53, 1156, 480, 327, 70, 96, 54, 98, 868, 570, 96, 54, 1156, 499, 222, 344, 1176, 444, 523, 630, 9609, 1850, 18021, 303, 25996, 5532, 299, 1627, 303, 1952, 299, 648, 45, 3750, 51, 21660, 51, 25658, 1177, 303, 456, 613, 347, 2189, 45, 1538, 731, 310, 25996, 5532, 51, 1713, 45, 687, 45, 1130, 45, 429, 49, 5263, 51, 21660, 51, 25658, 941, 3045, 28237, 465, 456, 613, 347, 2189, 45, 1688, 45, 16218, 5532, 8485, 310, 2409, 299, 244, 53, 310, 456, 614, 347, 2189, 45, 1688, 45, 16218, 5532, 8485, 343, 434, 25996, 5532, 96, 110, 98, 882, 25996, 5532, 96, 111, 98, 480, 458, 100, 46463, 45, 16218, 5532, 96, 111, 636, 25996, 5532, 96, 110, 10879, 419, 2409, 1475, 244, 54, 603, 434, 2409, 630, 244, 53, 63, 343, 1489, 45, 54, 49, 962, 366, 7816, 310, 832, 63, 343, 1489, 45, 1016, 494, 244, 54, 49, 962, 366, 7816, 222 ]
[ "import", "Ġsys", "ĊĊ", "Ċ", "def", "Ġis", "_", "huge", "(", "A", ",", "ĠB", "):", "ĊĠĠĠ", "Ġreturn", "Ġ(", "A", "[", "0", "]", "Ġ>", "ĠB", "[", "0", "])", "Ġand", "Ġ(", "A", "[", "1", "]", "Ġ>", "ĠB", "[", "1", "])", "ĊĊ", "Ċ", "if", "Ġ__", "name", "__", "Ġ==", "Ġ\"__", "main", "__\":", "ĊĠĠĠ", "Ġbul", "ks", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġnum", "Ġ=", "Ġint", "(", "sys", ".", "stdin", ".", "readline", "())", "ĊĠĠĠ", "Ġfor", "Ġi", "Ġin", "Ġrange", "(", "num", "):", "ĊĠĠĠĠĠĠĠ", "Ġbul", "ks", ".", "append", "(", "list", "(", "map", "(", "int", ",", "Ġsys", ".", "stdin", ".", "readline", "().", "split", "())))", "ĊĊĠĠĠ", "Ġfor", "Ġi", "Ġin", "Ġrange", "(", "len", "(", "bul", "ks", ")):", "ĊĠĠĠĠĠĠĠ", "Ġcount", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġj", "Ġin", "Ġrange", "(", "len", "(", "bul", "ks", ")):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġbul", "ks", "[", "i", "]", "Ġ!=", "Ġbul", "ks", "[", "j", "]", "Ġand", "Ġis", "_", "huge", "(", "bul", "ks", "[", "j", "],", "Ġbul", "ks", "[", "i", "]):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcount", "Ġ+=", "Ġ", "1", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġcount", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(", "1", ",", "Ġend", "=\"", "Ġ\")", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(", "count", "Ġ+", "Ġ", "1", ",", "Ġend", "=\"", "Ġ\")", "Ċ" ]
[ 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23 ]
[ 1, 7, 11, 1, 1, 4, 7, 8, 12, 13, 14, 15, 17, 19, 4, 11, 13, 14, 15, 16, 17, 19, 21, 22, 23, 25, 29, 31, 32, 33, 34, 35, 37, 39, 40, 41, 43, 1, 1, 3, 6, 10, 12, 15, 19, 23, 27, 4, 8, 10, 12, 15, 4, 8, 10, 14, 15, 18, 19, 24, 25, 33, 36, 4, 8, 10, 13, 19, 20, 23, 25, 8, 12, 14, 15, 21, 22, 26, 27, 30, 31, 34, 35, 39, 40, 45, 46, 54, 57, 62, 67, 4, 8, 10, 13, 19, 20, 23, 24, 27, 29, 32, 8, 14, 16, 17, 18, 8, 12, 14, 17, 23, 24, 27, 28, 31, 33, 36, 12, 15, 19, 21, 22, 23, 24, 27, 31, 33, 34, 35, 36, 40, 43, 44, 48, 49, 52, 54, 55, 56, 58, 62, 64, 65, 66, 69, 16, 22, 25, 26, 27, 8, 11, 17, 20, 21, 22, 23, 12, 18, 19, 20, 21, 25, 27, 30, 8, 13, 14, 12, 18, 19, 24, 26, 27, 28, 29, 33, 35, 38 ]
d6a677ed537f6493bb43bd893f3096dc058e27da
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Implements command to describe a given guest policy.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from googlecloudsdk.api_lib.compute.os_config import osconfig_utils from googlecloudsdk.calliope import base from googlecloudsdk.command_lib.compute.os_config import resource_args @base.ReleaseTracks(base.ReleaseTrack.ALPHA) class Describe(base.DescribeCommand): """Describe the given guest policy. ## EXAMPLES To describe the guest policy 'policy1' in the project 'project1', run: $ {command} policy1 --project=project1 To describe the guest policy 'policy1' in the organization '12345', run: $ {command} policy1 --organization=12345 """ @staticmethod def Args(parser): resource_args.AddGuestPolicyResourceArg(parser, "to describe.") def Run(self, args): guest_policy_ref = args.CONCEPTS.guest_policy.Parse() release_track = self.ReleaseTrack() client = osconfig_utils.GetClientInstance(release_track) messages = osconfig_utils.GetClientMessages(release_track) guest_policy_type = guest_policy_ref.type_ guest_policy_name = guest_policy_ref.result.RelativeName() if guest_policy_type == type(guest_policy_type).organization_guest_policy: request = messages.OsconfigOrganizationsGuestPoliciesGetRequest(name=guest_policy_name) service = client.organizations_guestPolicies elif guest_policy_type == type(guest_policy_type).folder_guest_policy: request = messages.OsconfigFoldersGuestPoliciesGetRequest(name=guest_policy_name) service = client.folders_guestPolicies else: request = messages.OsconfigProjectsGuestPoliciesGetRequest(name=guest_policy_name) service = client.projects_guestPolicies return service.Get(request)
[ 40, 8571, 10633, 63, 6471, 50, 61, 8571, 607, 222, 40, 2657, 244, 55, 53, 54, 62, 6608, 21000, 51, 3381, 12902, 11921, 51, 222, 40, 222, 40, 4773, 1549, 341, 3954, 1196, 49, 3050, 244, 55, 51, 53, 327, 1402, 332, 3801, 742, 222, 40, 863, 1648, 666, 813, 477, 822, 2959, 347, 4960, 642, 341, 1196, 51, 222, 40, 2469, 1648, 4245, 331, 1948, 451, 341, 1196, 840, 222, 40, 222, 40, 283, 1930, 574, 1516, 51, 2121, 51, 1107, 52, 4205, 52, 4106, 50, 55, 51, 53, 222, 40, 222, 40, 5416, 2147, 829, 4568, 4940, 575, 5129, 391, 347, 4144, 49, 2951, 222, 40, 2744, 1549, 341, 1196, 458, 2744, 563, 619, 332, 1117, 2771, 39, 5128, 49, 222, 40, 4213, 3912, 1895, 5186, 2258, 2979, 4489, 49, 3173, 3927, 575, 4506, 51, 222, 40, 2819, 341, 1196, 456, 341, 2835, 2940, 5139, 4243, 480, 222, 40, 5191, 1549, 341, 1196, 51, 222, 3012, 47362, 2035, 391, 5523, 331, 2716, 21593, 7279, 7128, 222, 222, 1097, 1176, 9689, 523, 1220, 7984, 100, 485, 222, 1097, 1176, 9689, 523, 1220, 20707, 222, 1097, 1176, 9689, 523, 1220, 15393, 100, 30828, 222, 222, 1097, 9293, 3227, 4982, 51, 1256, 100, 1379, 51, 7946, 51, 519, 100, 1180, 1220, 2355, 1180, 100, 2324, 222, 1097, 9293, 3227, 4982, 51, 1299, 17870, 367, 1220, 1712, 222, 1097, 9293, 3227, 4982, 51, 2514, 100, 1379, 51, 7946, 51, 519, 100, 1180, 1220, 2885, 100, 1150, 499, 222, 69, 1460, 51, 5820, 24133, 45, 1460, 51, 5820, 4573, 51, 19997, 46, 222, 842, 11620, 45, 1460, 51, 8606, 2037, 731, 303, 1547, 8606, 341, 2716, 21593, 7279, 51, 465, 5533, 2800, 39246, 1704, 2634, 5523, 341, 21593, 7279, 349, 6060, 54, 44, 347, 341, 2091, 349, 2268, 54, 389, 1441, 63, 1083, 417, 320, 2514, 130, 7279, 54, 790, 2268, 66, 2268, 54, 1704, 2634, 5523, 341, 21593, 7279, 349, 6060, 54, 44, 347, 341, 12087, 349, 54, 55, 56, 57, 58, 389, 1441, 63, 1083, 417, 320, 2514, 130, 7279, 54, 790, 12716, 66, 54, 55, 56, 57, 58, 465, 1547, 465, 496, 16130, 303, 684, 10485, 45, 3936, 731, 310, 2885, 100, 1150, 51, 1121, 22078, 4263, 2305, 1782, 45, 3936, 49, 332, 471, 5523, 7164, 465, 684, 4507, 45, 803, 49, 2194, 731, 310, 21593, 100, 6060, 100, 631, 299, 2194, 51, 42568, 88, 51, 17007, 100, 6060, 51, 4493, 365, 603, 3636, 100, 4402, 299, 649, 51, 5820, 4573, 365, 310, 2060, 299, 2355, 1180, 100, 2324, 51, 953, 1503, 1825, 45, 3794, 100, 4402, 46, 310, 5231, 299, 2355, 1180, 100, 2324, 51, 953, 1503, 6389, 45, 3794, 100, 4402, 46, 603, 21593, 100, 6060, 100, 700, 299, 21593, 100, 6060, 100, 631, 51, 700, 100, 310, 21593, 100, 6060, 100, 444, 299, 21593, 100, 6060, 100, 631, 51, 1285, 51, 11776, 577, 365, 603, 434, 21593, 100, 6060, 100, 700, 630, 847, 45, 17007, 100, 6060, 100, 700, 566, 12716, 100, 17007, 100, 6060, 63, 343, 1343, 299, 5231, 51, 14587, 1180, 40797, 22078, 21420, 39724, 45, 444, 66, 17007, 100, 6060, 100, 444, 46, 343, 2733, 299, 2060, 51, 26725, 100, 17007, 21420, 310, 4378, 21593, 100, 6060, 100, 700, 630, 847, 45, 17007, 100, 6060, 100, 700, 566, 6204, 100, 17007, 100, 6060, 63, 343, 1343, 299, 5231, 51, 14587, 1180, 27880, 22078, 21420, 39724, 45, 444, 66, 17007, 100, 6060, 100, 444, 46, 343, 2733, 299, 2060, 51, 20419, 100, 17007, 21420, 310, 832, 63, 343, 1343, 299, 5231, 51, 14587, 1180, 10942, 22078, 21420, 39724, 45, 444, 66, 17007, 100, 6060, 100, 444, 46, 343, 2733, 299, 2060, 51, 7327, 100, 17007, 21420, 603, 461, 2733, 51, 953, 45, 1375, 46, 222 ]
[ "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ġ#", "Ċ", "#", "ĠCopyright", "Ġ", "2", "0", "1", "9", "ĠGoogle", "ĠLLC", ".", "ĠAll", "ĠRights", "ĠReserved", ".", "Ċ", "#", "Ċ", "#", "ĠLicensed", "Ġunder", "Ġthe", "ĠApache", "ĠLicense", ",", "ĠVersion", "Ġ", "2", ".", "0", "Ġ(", "the", "Ġ\"", "License", "\");", "Ċ", "#", "Ġyou", "Ġmay", "Ġnot", "Ġuse", "Ġthis", "Ġfile", "Ġexcept", "Ġin", "Ġcompliance", "Ġwith", "Ġthe", "ĠLicense", ".", "Ċ", "#", "ĠYou", "Ġmay", "Ġobtain", "Ġa", "Ġcopy", "Ġof", "Ġthe", "ĠLicense", "Ġat", "Ċ", "#", "Ċ", "#", "ĠĠĠ", "Ġhttp", "://", "www", ".", "apache", ".", "org", "/", "licenses", "/", "LICENSE", "-", "2", ".", "0", "Ċ", "#", "Ċ", "#", "ĠUnless", "Ġrequired", "Ġby", "Ġapplicable", "Ġlaw", "Ġor", "Ġagreed", "Ġto", "Ġin", "Ġwriting", ",", "Ġsoftware", "Ċ", "#", "Ġdistributed", "Ġunder", "Ġthe", "ĠLicense", "Ġis", "Ġdistributed", "Ġon", "Ġan", "Ġ\"", "AS", "ĠIS", "\"", "ĠBASIS", ",", "Ċ", "#", "ĠWITHOUT", "ĠWARRANTIES", "ĠOR", "ĠCONDITIONS", "ĠOF", "ĠANY", "ĠKIND", ",", "Ġeither", "Ġexpress", "Ġor", "Ġimplied", ".", "Ċ", "#", "ĠSee", "Ġthe", "ĠLicense", "Ġfor", "Ġthe", "Ġspecific", "Ġlanguage", "Ġgoverning", "Ġpermissions", "Ġand", "Ċ", "#", "Ġlimitations", "Ġunder", "Ġthe", "ĠLicense", ".", "Ċ", "\"\"\"", "Implements", "Ġcommand", "Ġto", "Ġdescribe", "Ġa", "Ġgiven", "Ġguest", "Ġpolicy", ".\"\"\"", "Ċ", "Ċ", "from", "Ġ__", "future", "__", "Ġimport", "Ġabsolute", "_", "import", "Ċ", "from", "Ġ__", "future", "__", "Ġimport", "Ġdivision", "Ċ", "from", "Ġ__", "future", "__", "Ġimport", "Ġunicode", "_", "literals", "Ċ", "Ċ", "from", "Ġgoogle", "cloud", "sdk", ".", "api", "_", "lib", ".", "compute", ".", "os", "_", "config", "Ġimport", "Ġos", "config", "_", "utils", "Ċ", "from", "Ġgoogle", "cloud", "sdk", ".", "cal", "lio", "pe", "Ġimport", "Ġbase", "Ċ", "from", "Ġgoogle", "cloud", "sdk", ".", "command", "_", "lib", ".", "compute", ".", "os", "_", "config", "Ġimport", "Ġresource", "_", "args", "ĊĊ", "Ċ", "@", "base", ".", "Release", "Tracks", "(", "base", ".", "Release", "Track", ".", "ALPHA", ")", "Ċ", "class", "ĠDescribe", "(", "base", ".", "Describe", "Command", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Describe", "Ġthe", "Ġgiven", "Ġguest", "Ġpolicy", ".", "ĊĊĠĠĠ", "Ġ##", "ĠEX", "AMPLES", "ĊĊĠĠĠĠĠ", "ĠTo", "Ġdescribe", "Ġthe", "Ġguest", "Ġpolicy", "Ġ'", "policy", "1", "'", "Ġin", "Ġthe", "Ġproject", "Ġ'", "project", "1", "',", "Ġrun", ":", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ$", "Ġ{", "command", "}", "Ġpolicy", "1", "Ġ--", "project", "=", "project", "1", "ĊĊĠĠĠĠĠ", "ĠTo", "Ġdescribe", "Ġthe", "Ġguest", "Ġpolicy", "Ġ'", "policy", "1", "'", "Ġin", "Ġthe", "Ġorganization", "Ġ'", "1", "2", "3", "4", "5", "',", "Ġrun", ":", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ$", "Ġ{", "command", "}", "Ġpolicy", "1", "Ġ--", "organization", "=", "1", "2", "3", "4", "5", "ĊĊĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠ", "Ġ@", "staticmethod", "ĊĠĠĠ", "Ġdef", "ĠArgs", "(", "parser", "):", "ĊĠĠĠĠĠĠĠ", "Ġresource", "_", "args", ".", "Add", "Guest", "Policy", "Resource", "Arg", "(", "parser", ",", "Ġ\"", "to", "Ġdescribe", ".\")", "ĊĊĠĠĠ", "Ġdef", "ĠRun", "(", "self", ",", "Ġargs", "):", "ĊĠĠĠĠĠĠĠ", "Ġguest", "_", "policy", "_", "ref", "Ġ=", "Ġargs", ".", "CONCEPT", "S", ".", "guest", "_", "policy", ".", "Parse", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġrelease", "_", "track", "Ġ=", "Ġself", ".", "Release", "Track", "()", "ĊĠĠĠĠĠĠĠ", "Ġclient", "Ġ=", "Ġos", "config", "_", "utils", ".", "Get", "Client", "Instance", "(", "release", "_", "track", ")", "ĊĠĠĠĠĠĠĠ", "Ġmessages", "Ġ=", "Ġos", "config", "_", "utils", ".", "Get", "Client", "Messages", "(", "release", "_", "track", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġguest", "_", "policy", "_", "type", "Ġ=", "Ġguest", "_", "policy", "_", "ref", ".", "type", "_", "ĊĠĠĠĠĠĠĠ", "Ġguest", "_", "policy", "_", "name", "Ġ=", "Ġguest", "_", "policy", "_", "ref", ".", "result", ".", "Relative", "Name", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġguest", "_", "policy", "_", "type", "Ġ==", "Ġtype", "(", "guest", "_", "policy", "_", "type", ").", "organization", "_", "guest", "_", "policy", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġrequest", "Ġ=", "Ġmessages", ".", "Os", "config", "Organizations", "Guest", "Policies", "GetRequest", "(", "name", "=", "guest", "_", "policy", "_", "name", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġservice", "Ġ=", "Ġclient", ".", "organizations", "_", "guest", "Policies", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġguest", "_", "policy", "_", "type", "Ġ==", "Ġtype", "(", "guest", "_", "policy", "_", "type", ").", "folder", "_", "guest", "_", "policy", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġrequest", "Ġ=", "Ġmessages", ".", "Os", "config", "Folders", "Guest", "Policies", "GetRequest", "(", "name", "=", "guest", "_", "policy", "_", "name", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġservice", "Ġ=", "Ġclient", ".", "folders", "_", "guest", "Policies", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġrequest", "Ġ=", "Ġmessages", ".", "Os", "config", "Projects", "Guest", "Policies", "GetRequest", "(", "name", "=", "guest", "_", "policy", "_", "name", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġservice", "Ġ=", "Ġclient", ".", "projects", "_", "guest", "Policies", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġservice", ".", "Get", "(", "request", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 30, 30, 30, 30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 40, 40, 42, 42, 42, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 66, 66, 66, 66, 66, 66, 66, 66 ]
[ 1, 2, 6, 13, 14, 18, 19, 20, 24, 26, 1, 2, 12, 13, 14, 15, 16, 17, 24, 28, 29, 33, 40, 49, 50, 1, 2, 1, 2, 11, 17, 21, 28, 36, 37, 45, 46, 47, 48, 49, 51, 54, 56, 63, 66, 1, 2, 6, 10, 14, 18, 23, 28, 35, 38, 49, 54, 58, 66, 67, 1, 2, 6, 10, 17, 19, 24, 27, 31, 39, 42, 1, 2, 1, 2, 5, 10, 13, 16, 17, 23, 24, 27, 28, 36, 37, 44, 45, 46, 47, 48, 1, 2, 1, 2, 9, 18, 21, 32, 36, 39, 46, 49, 52, 60, 61, 70, 1, 2, 14, 20, 24, 32, 35, 47, 50, 53, 55, 57, 60, 61, 67, 68, 1, 2, 10, 21, 24, 35, 38, 42, 47, 48, 55, 63, 66, 74, 75, 1, 2, 6, 10, 18, 22, 26, 35, 44, 54, 66, 70, 1, 2, 14, 20, 24, 32, 33, 1, 4, 14, 22, 25, 34, 36, 42, 48, 55, 59, 1, 1, 5, 8, 14, 16, 23, 32, 33, 39, 1, 5, 8, 14, 16, 23, 32, 1, 5, 8, 14, 16, 23, 31, 32, 40, 1, 1, 5, 12, 17, 20, 21, 24, 25, 28, 29, 36, 37, 39, 40, 46, 53, 56, 62, 63, 68, 1, 5, 12, 17, 20, 21, 24, 27, 29, 36, 41, 1, 5, 12, 17, 20, 21, 28, 29, 32, 33, 40, 41, 43, 44, 50, 57, 66, 67, 71, 1, 1, 2, 6, 7, 14, 20, 21, 25, 26, 33, 38, 39, 44, 45, 1, 6, 15, 16, 20, 21, 29, 36, 38, 4, 8, 16, 20, 26, 32, 39, 40, 4, 7, 10, 16, 6, 9, 18, 22, 28, 35, 37, 43, 44, 45, 48, 52, 60, 62, 69, 70, 72, 76, 77, 12, 14, 16, 23, 24, 31, 32, 35, 42, 43, 50, 51, 6, 9, 18, 22, 28, 35, 37, 43, 44, 45, 48, 52, 65, 67, 68, 69, 70, 71, 72, 74, 78, 79, 12, 14, 16, 23, 24, 31, 32, 35, 47, 48, 49, 50, 51, 52, 53, 4, 8, 4, 6, 18, 4, 8, 13, 14, 20, 22, 8, 17, 18, 22, 23, 26, 31, 37, 45, 48, 49, 55, 56, 58, 60, 69, 72, 4, 8, 12, 13, 17, 18, 23, 25, 8, 14, 15, 21, 22, 25, 27, 32, 33, 40, 41, 42, 47, 48, 54, 55, 60, 62, 8, 16, 17, 22, 24, 29, 30, 37, 42, 44, 8, 15, 17, 20, 26, 27, 32, 33, 36, 42, 50, 51, 58, 59, 64, 65, 8, 17, 19, 22, 28, 29, 34, 35, 38, 44, 52, 53, 60, 61, 66, 67, 8, 14, 15, 21, 22, 26, 28, 34, 35, 41, 42, 45, 46, 50, 51, 8, 14, 15, 21, 22, 26, 28, 34, 35, 41, 42, 45, 46, 52, 53, 61, 65, 67, 8, 11, 17, 18, 24, 25, 29, 32, 37, 38, 43, 44, 50, 51, 55, 57, 69, 70, 75, 76, 82, 83, 12, 20, 22, 31, 32, 34, 40, 53, 58, 66, 76, 77, 81, 82, 87, 88, 94, 95, 99, 100, 12, 20, 22, 29, 30, 43, 44, 49, 57, 8, 13, 19, 20, 26, 27, 31, 34, 39, 40, 45, 46, 52, 53, 57, 59, 65, 66, 71, 72, 78, 79, 12, 20, 22, 31, 32, 34, 40, 47, 52, 60, 70, 71, 75, 76, 81, 82, 88, 89, 93, 94, 12, 20, 22, 29, 30, 37, 38, 43, 51, 8, 13, 14, 12, 20, 22, 31, 32, 34, 40, 48, 53, 61, 71, 72, 76, 77, 82, 83, 89, 90, 94, 95, 12, 20, 22, 29, 30, 38, 39, 44, 52, 8, 15, 23, 24, 27, 28, 35, 36 ]
e6acc7b022001d8419095ad6364a6ae9504ec7aa
from __future__ import annotations from functools import cache class Solution: def countArrangement(self, n: int) -> int: cache = {} def helper(perm): digits = len(perm) if digits == 1: return 1 if perm in cache: return cache[perm] cnt = 0 for i in range(digits): if perm[i] % digits == 0 or digits % perm[i] == 0: cnt += helper(perm[:i] + perm[i + 1 :]) cache[perm] = cnt return cnt return helper(tuple(range(1, n + 1))) class Solution: def countArrangement(self, n: int) -> int: # total number of bitset states possible bitset_total = 2**n dp = [[0 for _ in range(bitset_total)] for _ in range(n + 1)] # all other valid states lead to this base case so mark this as 1 dp[0][0] = 1 # iterate over all positions for i in range(1, n + 1): # iterate over all subsets for bm in range(bitset_total): # iterate over all numbers for num in range(n): # if number is not visited and satisfies condition in question # & (各桁が両方とも1なら1になる) # 1 << x (1を左にxシフトさせて右をゼロで埋める) # ^ (XOR: 各桁の片方が1なら1になる) if (bm & (1 << num)) and (((num + 1) % i == 0) or (i % (num + 1) == 0)): dp[i][bm] += dp[i - 1][bm ^ (1 << num)] return dp[-1][-1] # bm is binary mask for visited numbers. # i is current place we want to fill. # Idea is to start from the end, and fill places in opposite direction, # because for big numbers we potentially have less candidates. # how dfs(bm, pl) will work: # If we reached place 0 and procces was not interrupted so far, # it means that we find beautiful arrangement. # For each number 1, 2, ..., n we try to put this number on place pl: # and we need to check two conditions: first, that this place is still empty, # using bitmask and secondly that one of the two properties for beutiful arrangement # holds. In this case we add dfs(bm^1<<i, pl - 1) to final answer. # Finally, we run dfs(0, n): from the last place and with empty bit-mask. class Solution: def countArrangement(self, n: int) -> int: @cache def dfs(bm, i): if i == 0: return 1 cnt = 0 for num in range(n): if not bm & 1 << num and ((num + 1) % i == 0 or i % (num + 1) == 0): cnt += dfs(bm ^ 1 << num, i - 1) return cnt return dfs(0, n) # nums is the set of still available numbers. # Note that my i goes downwards, from n to 1. Because position i = 1 # can hold any number, so I don't even have to check whether the last # remaining number fits there. Also, position i = 2 happily holds # every second number and i = 3 happily holds every third number, # so filling the lowest positions last has a relatively high chance of success. class Solution: def countArrangement(self, n: int) -> int: def count(i, nums): if i == 1: return 1 return sum(count(i - 1, nums - {num}) for num in nums if num % i == 0 or i % num == 0) return count(n, set(range(1, n + 1)))
[ 1097, 1176, 9689, 523, 1220, 14711, 222, 1097, 35383, 1220, 3337, 499, 222, 842, 12219, 63, 303, 684, 2409, 38774, 488, 45, 803, 49, 329, 63, 648, 46, 984, 648, 63, 310, 3337, 299, 2172, 603, 684, 9348, 45, 13178, 731, 343, 16198, 299, 2095, 45, 13178, 46, 343, 434, 16198, 630, 244, 54, 63, 419, 461, 244, 54, 343, 434, 18196, 347, 3337, 63, 419, 461, 3337, 96, 13178, 98, 343, 14091, 299, 244, 53, 343, 456, 613, 347, 2189, 45, 18099, 731, 419, 434, 18196, 96, 110, 98, 925, 16198, 630, 244, 53, 575, 16198, 925, 18196, 96, 110, 98, 630, 244, 53, 63, 547, 14091, 1475, 9348, 45, 13178, 2934, 110, 98, 494, 18196, 96, 110, 494, 244, 54, 518, 1156, 343, 3337, 96, 13178, 98, 299, 14091, 343, 461, 14091, 603, 461, 9348, 45, 7304, 45, 3623, 45, 54, 49, 329, 494, 244, 54, 2636, 499, 222, 842, 12219, 63, 303, 684, 2409, 38774, 488, 45, 803, 49, 329, 63, 648, 46, 984, 648, 63, 310, 607, 3410, 1470, 451, 3510, 489, 10134, 4222, 310, 3510, 489, 100, 3025, 299, 244, 55, 345, 115, 310, 11345, 299, 3834, 53, 456, 634, 347, 2189, 45, 2417, 489, 100, 3025, 2201, 456, 634, 347, 2189, 45, 115, 494, 244, 54, 2201, 310, 607, 1187, 1623, 2101, 10134, 16200, 391, 477, 1712, 1152, 1278, 3658, 477, 641, 244, 54, 310, 11345, 96, 53, 1697, 53, 98, 299, 244, 54, 310, 607, 20258, 2308, 1187, 14491, 310, 456, 613, 347, 2189, 45, 54, 49, 329, 494, 244, 54, 731, 343, 607, 20258, 2308, 1187, 1381, 2047, 343, 456, 32118, 347, 2189, 45, 2417, 489, 100, 3025, 731, 419, 607, 20258, 2308, 1187, 7560, 419, 456, 1952, 347, 2189, 45, 115, 731, 547, 607, 434, 1470, 458, 666, 21316, 480, 48720, 3721, 347, 7013, 547, 607, 244, 568, 27015, 15973, 7938, 247, 5652, 816, 132, 4413, 5683, 13263, 54, 6605, 10079, 54, 3885, 32320, 5114, 547, 607, 244, 54, 1281, 837, 327, 54, 3366, 19661, 3885, 125, 10756, 43937, 7291, 17518, 7387, 18629, 3366, 900, 158, 9294, 4552, 6348, 257, 14901, 3811, 46, 547, 607, 244, 5317, 27015, 42376, 63, 244, 15973, 7938, 247, 2535, 11009, 4413, 5652, 54, 6605, 10079, 54, 3885, 32320, 5114, 547, 434, 327, 12410, 568, 327, 54, 1281, 1952, 509, 480, 8587, 1538, 494, 244, 54, 46, 925, 613, 630, 244, 53, 46, 575, 327, 110, 925, 327, 1538, 494, 244, 54, 46, 630, 244, 53, 8485, 733, 11345, 96, 110, 1697, 12410, 98, 1475, 11345, 96, 110, 449, 244, 54, 1697, 12410, 5317, 327, 54, 1281, 1952, 2201, 310, 461, 11345, 6510, 54, 1697, 50, 54, 98, 499, 222, 40, 32118, 458, 5314, 5967, 456, 21316, 7560, 51, 222, 40, 613, 458, 1565, 3687, 1019, 2660, 391, 5342, 51, 222, 40, 25266, 102, 458, 391, 1496, 664, 341, 962, 49, 480, 5342, 15313, 347, 30560, 6999, 49, 222, 40, 3318, 456, 6546, 7560, 1019, 22064, 1178, 6717, 22307, 51, 222, 40, 2650, 27242, 45, 12410, 49, 1302, 46, 1118, 1409, 63, 222, 40, 1691, 1019, 16691, 3687, 244, 53, 480, 11502, 1109, 1616, 666, 42032, 1278, 9050, 49, 222, 40, 580, 6084, 708, 1019, 2309, 36536, 26538, 488, 51, 222, 40, 2643, 2531, 1470, 244, 54, 49, 244, 55, 49, 28673, 329, 1019, 1614, 391, 4180, 477, 1470, 563, 3687, 1302, 63, 222, 40, 480, 1019, 1868, 391, 1524, 3161, 5496, 63, 1950, 49, 708, 477, 3687, 458, 4224, 3517, 49, 222, 40, 1493, 3510, 3988, 480, 3118, 651, 708, 1611, 451, 341, 3161, 4324, 456, 545, 322, 19360, 26538, 488, 222, 40, 16429, 51, 719, 477, 1152, 1019, 1035, 27242, 45, 12410, 99, 54, 3586, 110, 49, 1302, 449, 244, 54, 46, 391, 1175, 7618, 51, 222, 40, 25605, 49, 1019, 1441, 27242, 45, 53, 49, 329, 731, 664, 341, 2419, 3687, 480, 642, 3517, 3510, 50, 3988, 51, 222, 842, 12219, 63, 303, 684, 2409, 38774, 488, 45, 803, 49, 329, 63, 648, 46, 984, 648, 63, 310, 496, 2630, 310, 684, 27242, 45, 12410, 49, 613, 731, 343, 434, 613, 630, 244, 53, 63, 419, 461, 244, 54, 1083, 14091, 299, 244, 53, 343, 456, 1952, 347, 2189, 45, 115, 731, 419, 434, 666, 32118, 568, 244, 54, 1281, 1952, 480, 1849, 1538, 494, 244, 54, 46, 925, 613, 630, 244, 53, 575, 613, 925, 327, 1538, 494, 244, 54, 46, 630, 244, 53, 731, 547, 14091, 1475, 27242, 45, 12410, 5317, 244, 54, 1281, 1952, 49, 613, 449, 244, 54, 46, 343, 461, 14091, 603, 461, 27242, 45, 53, 49, 329, 46, 499, 222, 40, 12988, 458, 341, 758, 451, 4224, 3322, 7560, 51, 222, 40, 5857, 708, 1690, 613, 13137, 2850, 8624, 49, 664, 329, 391, 244, 54, 51, 18424, 2764, 613, 299, 244, 54, 222, 40, 902, 7649, 1364, 1470, 49, 1278, 457, 2818, 1348, 4462, 1178, 391, 1524, 4962, 341, 2419, 222, 40, 11479, 1470, 30871, 2038, 51, 8688, 49, 2764, 613, 299, 244, 55, 4761, 2820, 16429, 222, 40, 3659, 3118, 1470, 480, 613, 299, 244, 56, 4761, 2820, 16429, 3659, 10999, 1470, 49, 222, 40, 1278, 39312, 341, 25730, 14491, 2419, 1421, 331, 29898, 3883, 16551, 451, 3136, 51, 222, 842, 12219, 63, 303, 684, 2409, 38774, 488, 45, 803, 49, 329, 63, 648, 46, 984, 648, 63, 310, 684, 2409, 45, 110, 49, 12988, 731, 343, 434, 613, 630, 244, 54, 63, 419, 461, 244, 54, 343, 461, 3668, 45, 1016, 45, 110, 449, 244, 54, 49, 12988, 449, 320, 1538, 1770, 456, 1952, 347, 12988, 434, 1952, 925, 613, 630, 244, 53, 575, 613, 925, 1952, 630, 244, 53, 46, 603, 461, 2409, 45, 115, 49, 758, 45, 3623, 45, 54, 49, 329, 494, 244, 54, 2636, 222 ]
[ "from", "Ġ__", "future", "__", "Ġimport", "Ġannotations", "Ċ", "from", "Ġfunctools", "Ġimport", "Ġcache", "ĊĊ", "Ċ", "class", "ĠSolution", ":", "ĊĠĠĠ", "Ġdef", "Ġcount", "Arrange", "ment", "(", "self", ",", "Ġn", ":", "Ġint", ")", "Ġ->", "Ġint", ":", "ĊĠĠĠĠĠĠĠ", "Ġcache", "Ġ=", "Ġ{}", "ĊĊĠĠĠĠĠĠĠ", "Ġdef", "Ġhelper", "(", "perm", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdigits", "Ġ=", "Ġlen", "(", "perm", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdigits", "Ġ==", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġperm", "Ġin", "Ġcache", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġcache", "[", "perm", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcnt", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġi", "Ġin", "Ġrange", "(", "digits", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġperm", "[", "i", "]", "Ġ%", "Ġdigits", "Ġ==", "Ġ", "0", "Ġor", "Ġdigits", "Ġ%", "Ġperm", "[", "i", "]", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcnt", "Ġ+=", "Ġhelper", "(", "perm", "[:", "i", "]", "Ġ+", "Ġperm", "[", "i", "Ġ+", "Ġ", "1", "Ġ:", "])", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcache", "[", "perm", "]", "Ġ=", "Ġcnt", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġcnt", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġhelper", "(", "tuple", "(", "range", "(", "1", ",", "Ġn", "Ġ+", "Ġ", "1", ")))", "ĊĊ", "Ċ", "class", "ĠSolution", ":", "ĊĠĠĠ", "Ġdef", "Ġcount", "Arrange", "ment", "(", "self", ",", "Ġn", ":", "Ġint", ")", "Ġ->", "Ġint", ":", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġtotal", "Ġnumber", "Ġof", "Ġbit", "set", "Ġstates", "Ġpossible", "ĊĠĠĠĠĠĠĠ", "Ġbit", "set", "_", "total", "Ġ=", "Ġ", "2", "**", "n", "ĊĠĠĠĠĠĠĠ", "Ġdp", "Ġ=", "Ġ[[", "0", "Ġfor", "Ġ_", "Ġin", "Ġrange", "(", "bit", "set", "_", "total", ")]", "Ġfor", "Ġ_", "Ġin", "Ġrange", "(", "n", "Ġ+", "Ġ", "1", ")]", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġall", "Ġother", "Ġvalid", "Ġstates", "Ġlead", "Ġto", "Ġthis", "Ġbase", "Ġcase", "Ġso", "Ġmark", "Ġthis", "Ġas", "Ġ", "1", "ĊĠĠĠĠĠĠĠ", "Ġdp", "[", "0", "][", "0", "]", "Ġ=", "Ġ", "1", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġiterate", "Ġover", "Ġall", "Ġpositions", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġi", "Ġin", "Ġrange", "(", "1", ",", "Ġn", "Ġ+", "Ġ", "1", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġiterate", "Ġover", "Ġall", "Ġsub", "sets", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġbm", "Ġin", "Ġrange", "(", "bit", "set", "_", "total", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġiterate", "Ġover", "Ġall", "Ġnumbers", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġnum", "Ġin", "Ġrange", "(", "n", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġif", "Ġnumber", "Ġis", "Ġnot", "Ġvisited", "Ġand", "Ġsatisfies", "Ġcondition", "Ġin", "Ġquestion", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġ", "Ġ&", "Ġï¼Ī", "åIJĦ", "æ¡", "ģ", "ãģĮ", "ä¸", "¡", "æĸ¹", "ãģ¨", "ãĤĤ", "1", "ãģª", "ãĤī", "1", "ãģ«", "ãģªãĤĭ", "ï¼ī", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġ", "1", "Ġ<<", "Ġx", "Ġ(", "1", "ãĤĴ", "å·¦", "ãģ«", "x", "ãĤ·", "ãĥķãĥĪ", "ãģķ", "ãģĽ", "ãģ¦", "åı³", "ãĤĴ", "ãĤ", "¼", "ãĥŃ", "ãģ§", "åŁ", "ĭ", "ãĤģ", "ãĤĭ", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġ", "Ġ^", "Ġï¼Ī", "XOR", ":", "Ġ", "åIJĦ", "æ¡", "ģ", "ãģ®", "çīĩ", "æĸ¹", "ãģĮ", "1", "ãģª", "ãĤī", "1", "ãģ«", "ãģªãĤĭ", "ï¼ī", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġ(", "bm", "Ġ&", "Ġ(", "1", "Ġ<<", "Ġnum", "))", "Ġand", "Ġ(((", "num", "Ġ+", "Ġ", "1", ")", "Ġ%", "Ġi", "Ġ==", "Ġ", "0", ")", "Ġor", "Ġ(", "i", "Ġ%", "Ġ(", "num", "Ġ+", "Ġ", "1", ")", "Ġ==", "Ġ", "0", ")):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdp", "[", "i", "][", "bm", "]", "Ġ+=", "Ġdp", "[", "i", "Ġ-", "Ġ", "1", "][", "bm", "Ġ^", "Ġ(", "1", "Ġ<<", "Ġnum", ")]", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġdp", "[-", "1", "][", "-", "1", "]", "ĊĊ", "Ċ", "#", "Ġbm", "Ġis", "Ġbinary", "Ġmask", "Ġfor", "Ġvisited", "Ġnumbers", ".", "Ċ", "#", "Ġi", "Ġis", "Ġcurrent", "Ġplace", "Ġwe", "Ġwant", "Ġto", "Ġfill", ".", "Ċ", "#", "ĠIde", "a", "Ġis", "Ġto", "Ġstart", "Ġfrom", "Ġthe", "Ġend", ",", "Ġand", "Ġfill", "Ġplaces", "Ġin", "Ġopposite", "Ġdirection", ",", "Ċ", "#", "Ġbecause", "Ġfor", "Ġbig", "Ġnumbers", "Ġwe", "Ġpotentially", "Ġhave", "Ġless", "Ġcandidates", ".", "Ċ", "#", "Ġhow", "Ġdfs", "(", "bm", ",", "Ġpl", ")", "Ġwill", "Ġwork", ":", "Ċ", "#", "ĠIf", "Ġwe", "Ġreached", "Ġplace", "Ġ", "0", "Ġand", "Ġproc", "ces", "Ġwas", "Ġnot", "Ġinterrupted", "Ġso", "Ġfar", ",", "Ċ", "#", "Ġit", "Ġmeans", "Ġthat", "Ġwe", "Ġfind", "Ġbeautiful", "Ġarrange", "ment", ".", "Ċ", "#", "ĠFor", "Ġeach", "Ġnumber", "Ġ", "1", ",", "Ġ", "2", ",", "Ġ...,", "Ġn", "Ġwe", "Ġtry", "Ġto", "Ġput", "Ġthis", "Ġnumber", "Ġon", "Ġplace", "Ġpl", ":", "Ċ", "#", "Ġand", "Ġwe", "Ġneed", "Ġto", "Ġcheck", "Ġtwo", "Ġconditions", ":", "Ġfirst", ",", "Ġthat", "Ġthis", "Ġplace", "Ġis", "Ġstill", "Ġempty", ",", "Ċ", "#", "Ġusing", "Ġbit", "mask", "Ġand", "Ġsecond", "ly", "Ġthat", "Ġone", "Ġof", "Ġthe", "Ġtwo", "Ġproperties", "Ġfor", "Ġbe", "ut", "iful", "Ġarrange", "ment", "Ċ", "#", "Ġholds", ".", "ĠIn", "Ġthis", "Ġcase", "Ġwe", "Ġadd", "Ġdfs", "(", "bm", "^", "1", "<<", "i", ",", "Ġpl", "Ġ-", "Ġ", "1", ")", "Ġto", "Ġfinal", "Ġanswer", ".", "Ċ", "#", "ĠFinally", ",", "Ġwe", "Ġrun", "Ġdfs", "(", "0", ",", "Ġn", "):", "Ġfrom", "Ġthe", "Ġlast", "Ġplace", "Ġand", "Ġwith", "Ġempty", "Ġbit", "-", "mask", ".", "Ċ", "class", "ĠSolution", ":", "ĊĠĠĠ", "Ġdef", "Ġcount", "Arrange", "ment", "(", "self", ",", "Ġn", ":", "Ġint", ")", "Ġ->", "Ġint", ":", "ĊĠĠĠĠĠĠĠ", "Ġ@", "cache", "ĊĠĠĠĠĠĠĠ", "Ġdef", "Ġdfs", "(", "bm", ",", "Ġi", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġi", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "1", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcnt", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġnum", "Ġin", "Ġrange", "(", "n", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġnot", "Ġbm", "Ġ&", "Ġ", "1", "Ġ<<", "Ġnum", "Ġand", "Ġ((", "num", "Ġ+", "Ġ", "1", ")", "Ġ%", "Ġi", "Ġ==", "Ġ", "0", "Ġor", "Ġi", "Ġ%", "Ġ(", "num", "Ġ+", "Ġ", "1", ")", "Ġ==", "Ġ", "0", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcnt", "Ġ+=", "Ġdfs", "(", "bm", "Ġ^", "Ġ", "1", "Ġ<<", "Ġnum", ",", "Ġi", "Ġ-", "Ġ", "1", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġcnt", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġdfs", "(", "0", ",", "Ġn", ")", "ĊĊ", "Ċ", "#", "Ġnums", "Ġis", "Ġthe", "Ġset", "Ġof", "Ġstill", "Ġavailable", "Ġnumbers", ".", "Ċ", "#", "ĠNote", "Ġthat", "Ġmy", "Ġi", "Ġgoes", "Ġdown", "wards", ",", "Ġfrom", "Ġn", "Ġto", "Ġ", "1", ".", "ĠBecause", "Ġposition", "Ġi", "Ġ=", "Ġ", "1", "Ċ", "#", "Ġcan", "Ġhold", "Ġany", "Ġnumber", ",", "Ġso", "ĠI", "Ġdon", "'t", "Ġeven", "Ġhave", "Ġto", "Ġcheck", "Ġwhether", "Ġthe", "Ġlast", "Ċ", "#", "Ġremaining", "Ġnumber", "Ġfits", "Ġthere", ".", "ĠAlso", ",", "Ġposition", "Ġi", "Ġ=", "Ġ", "2", "Ġhapp", "ily", "Ġholds", "Ċ", "#", "Ġevery", "Ġsecond", "Ġnumber", "Ġand", "Ġi", "Ġ=", "Ġ", "3", "Ġhapp", "ily", "Ġholds", "Ġevery", "Ġthird", "Ġnumber", ",", "Ċ", "#", "Ġso", "Ġfilling", "Ġthe", "Ġlowest", "Ġpositions", "Ġlast", "Ġhas", "Ġa", "Ġrelatively", "Ġhigh", "Ġchance", "Ġof", "Ġsuccess", ".", "Ċ", "class", "ĠSolution", ":", "ĊĠĠĠ", "Ġdef", "Ġcount", "Arrange", "ment", "(", "self", ",", "Ġn", ":", "Ġint", ")", "Ġ->", "Ġint", ":", "ĊĠĠĠĠĠĠĠ", "Ġdef", "Ġcount", "(", "i", ",", "Ġnums", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġi", "Ġ==", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġsum", "(", "count", "(", "i", "Ġ-", "Ġ", "1", ",", "Ġnums", "Ġ-", "Ġ{", "num", "})", "Ġfor", "Ġnum", "Ġin", "Ġnums", "Ġif", "Ġnum", "Ġ%", "Ġi", "Ġ==", "Ġ", "0", "Ġor", "Ġi", "Ġ%", "Ġnum", "Ġ==", "Ġ", "0", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġcount", "(", "n", ",", "Ġset", "(", "range", "(", "1", ",", "Ġn", "Ġ+", "Ġ", "1", ")))", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 24, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 72, 72, 72, 72, 72, 72, 72, 72, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88 ]
[ 1, 5, 8, 14, 16, 23, 35, 1, 5, 15, 22, 28, 1, 1, 6, 15, 16, 4, 8, 14, 21, 25, 26, 30, 31, 33, 34, 38, 39, 42, 46, 47, 8, 14, 16, 19, 8, 12, 19, 20, 24, 26, 12, 19, 21, 25, 26, 30, 31, 12, 15, 22, 25, 26, 27, 28, 16, 23, 24, 25, 12, 15, 20, 23, 29, 30, 16, 23, 29, 30, 34, 35, 12, 16, 18, 19, 20, 12, 16, 18, 21, 27, 28, 34, 36, 16, 19, 24, 25, 26, 27, 29, 36, 39, 40, 41, 44, 51, 53, 58, 59, 60, 61, 64, 65, 66, 67, 20, 24, 27, 34, 35, 39, 41, 42, 43, 45, 50, 51, 52, 54, 55, 56, 58, 60, 12, 18, 19, 23, 24, 26, 30, 12, 19, 23, 8, 15, 22, 23, 28, 29, 34, 35, 36, 37, 39, 41, 42, 43, 46, 1, 1, 6, 15, 16, 4, 8, 14, 21, 25, 26, 30, 31, 33, 34, 38, 39, 42, 46, 47, 8, 10, 16, 23, 26, 30, 33, 40, 49, 8, 12, 15, 16, 21, 23, 24, 25, 27, 28, 8, 11, 13, 16, 17, 21, 23, 26, 32, 33, 36, 39, 40, 45, 47, 51, 53, 56, 62, 63, 64, 66, 67, 68, 70, 8, 10, 14, 20, 26, 33, 38, 41, 46, 51, 56, 59, 64, 69, 72, 73, 74, 8, 11, 12, 13, 15, 16, 17, 19, 20, 21, 8, 10, 18, 23, 27, 37, 8, 12, 14, 17, 23, 24, 25, 26, 28, 30, 31, 32, 34, 12, 14, 22, 27, 31, 35, 39, 12, 16, 19, 22, 28, 29, 32, 35, 36, 41, 43, 16, 18, 26, 31, 35, 43, 16, 20, 24, 27, 33, 34, 35, 37, 20, 22, 25, 32, 35, 39, 47, 51, 61, 71, 74, 83, 20, 22, 23, 25, 27, 28, 28, 29, 30, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 20, 22, 23, 24, 27, 29, 31, 32, 33, 34, 35, 36, 37, 39, 40, 41, 42, 43, 44, 44, 45, 46, 47, 47, 48, 49, 50, 51, 20, 22, 23, 25, 27, 30, 31, 32, 33, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, 46, 20, 23, 25, 27, 29, 31, 32, 35, 39, 41, 45, 49, 52, 54, 55, 56, 57, 59, 61, 64, 65, 66, 67, 70, 72, 73, 75, 77, 80, 82, 83, 84, 85, 88, 89, 90, 93, 24, 27, 28, 29, 31, 33, 34, 37, 40, 41, 42, 44, 45, 46, 48, 50, 52, 54, 55, 58, 62, 64, 8, 15, 18, 20, 21, 23, 24, 25, 26, 1, 1, 2, 5, 8, 15, 20, 24, 32, 40, 41, 1, 2, 4, 7, 15, 21, 24, 29, 32, 37, 38, 1, 2, 6, 7, 10, 13, 19, 24, 28, 32, 33, 37, 42, 49, 52, 61, 71, 72, 1, 2, 10, 14, 18, 26, 29, 41, 46, 51, 62, 63, 1, 2, 6, 10, 11, 13, 14, 17, 18, 23, 28, 29, 1, 2, 5, 8, 16, 22, 23, 24, 28, 33, 36, 40, 44, 56, 59, 63, 64, 1, 2, 5, 11, 16, 19, 24, 34, 42, 46, 47, 1, 2, 6, 11, 18, 19, 20, 21, 22, 23, 24, 29, 31, 34, 38, 41, 45, 50, 57, 60, 66, 69, 70, 1, 2, 6, 9, 14, 17, 23, 27, 38, 39, 45, 46, 51, 56, 62, 65, 71, 77, 78, 1, 2, 8, 12, 16, 20, 27, 29, 34, 38, 41, 45, 49, 60, 64, 67, 69, 73, 81, 85, 1, 2, 8, 9, 12, 17, 22, 25, 29, 33, 34, 36, 37, 38, 40, 41, 42, 45, 47, 48, 49, 50, 53, 59, 66, 67, 1, 2, 10, 11, 14, 18, 22, 23, 24, 25, 27, 29, 34, 38, 43, 49, 53, 58, 64, 68, 69, 73, 74, 1, 6, 15, 16, 4, 8, 14, 21, 25, 26, 30, 31, 33, 34, 38, 39, 42, 46, 47, 8, 10, 15, 8, 12, 16, 17, 19, 20, 22, 24, 12, 15, 17, 20, 21, 22, 23, 16, 23, 24, 25, 12, 16, 18, 19, 20, 12, 16, 20, 23, 29, 30, 31, 33, 16, 19, 23, 26, 28, 29, 30, 33, 37, 41, 44, 47, 49, 50, 51, 52, 54, 56, 59, 60, 61, 64, 66, 68, 70, 73, 75, 76, 77, 78, 81, 82, 83, 85, 20, 24, 27, 31, 32, 34, 36, 37, 38, 41, 45, 46, 48, 50, 51, 52, 53, 12, 19, 23, 8, 15, 19, 20, 21, 22, 24, 25, 1, 1, 2, 7, 10, 14, 18, 21, 27, 37, 45, 46, 1, 2, 7, 12, 15, 17, 22, 27, 32, 33, 38, 40, 43, 44, 45, 46, 54, 63, 65, 67, 68, 69, 1, 2, 6, 11, 15, 22, 23, 26, 28, 32, 34, 39, 44, 47, 53, 61, 65, 70, 1, 2, 12, 19, 24, 30, 31, 36, 37, 46, 48, 50, 51, 52, 57, 60, 66, 1, 2, 8, 15, 22, 26, 28, 30, 31, 32, 37, 40, 46, 52, 58, 65, 66, 1, 2, 5, 13, 17, 24, 34, 39, 43, 45, 56, 61, 68, 71, 79, 80, 1, 6, 15, 16, 4, 8, 14, 21, 25, 26, 30, 31, 33, 34, 38, 39, 42, 46, 47, 8, 12, 18, 19, 20, 21, 26, 28, 12, 15, 17, 20, 21, 22, 23, 16, 23, 24, 25, 12, 19, 23, 24, 29, 30, 31, 33, 34, 35, 36, 41, 43, 45, 48, 50, 54, 58, 61, 66, 69, 73, 75, 77, 80, 81, 82, 85, 87, 89, 93, 96, 97, 98, 99, 8, 15, 21, 22, 23, 24, 28, 29, 34, 35, 36, 37, 39, 41, 42, 43, 46 ]
fd5fca0e9abbb669ddff4d676147acc4344cdd1c
from django import forms class RemoveProdutoDoCarrinhoForm(forms.Form): class Meta: fields = "produto_id" produto_id = forms.CharField(widget=forms.HiddenInput()) class QuantidadeForm(forms.Form): class Meta: fields = ("quantidade", "produto_id") # <input type="hidden" name="produto_id" id="id_produto_id" value="xxx"> produto_id = forms.CharField(widget=forms.HiddenInput()) quantidade = forms.IntegerField( min_value=1, max_value=1000, error_messages={ "required": "Campo obrigatório.", }, widget=forms.TextInput( attrs={ "class": "form-control form-control-sm quantidade", "maxlength": "20", "onkeypress": "return event.charCode >= 48 && event.charCode <= 57", } ), required=True, )
[ 1097, 8532, 1220, 10556, 499, 222, 842, 6491, 45896, 2573, 72, 865, 285, 3493, 1260, 45, 8543, 51, 1260, 731, 303, 462, 11990, 63, 310, 3844, 299, 332, 48949, 100, 333, 39, 465, 18326, 1318, 100, 333, 299, 10556, 51, 16347, 45, 3872, 66, 8543, 51, 13831, 1630, 1177, 499, 222, 842, 24509, 9877, 1260, 45, 8543, 51, 1260, 731, 303, 462, 11990, 63, 310, 3844, 299, 2903, 9791, 9877, 411, 332, 48949, 100, 333, 678, 465, 607, 350, 1151, 847, 366, 3887, 39, 655, 366, 48949, 100, 333, 39, 828, 366, 333, 100, 48949, 100, 333, 39, 804, 366, 10496, 432, 303, 18326, 1318, 100, 333, 299, 10556, 51, 16347, 45, 3872, 66, 8543, 51, 13831, 1630, 1177, 465, 13408, 9877, 299, 10556, 51, 30363, 45, 310, 1865, 100, 872, 66, 54, 49, 310, 1788, 100, 872, 66, 54, 53, 53, 53, 49, 310, 1067, 100, 6296, 1305, 343, 332, 3662, 582, 332, 38478, 1541, 867, 48413, 4429, 310, 820, 310, 6866, 66, 8543, 51, 26126, 45, 343, 11768, 1305, 419, 332, 842, 582, 332, 618, 50, 2452, 2252, 50, 2452, 50, 1752, 13408, 9877, 411, 419, 332, 34504, 582, 332, 55, 53, 411, 419, 332, 286, 44171, 582, 332, 620, 1708, 51, 27519, 2394, 244, 57, 61, 979, 1708, 51, 27519, 2527, 244, 58, 60, 411, 343, 339, 310, 2604, 310, 2147, 66, 1844, 49, 303, 848, 222 ]
[ "from", "Ġdjango", "Ġimport", "Ġforms", "ĊĊ", "Ċ", "class", "ĠRemove", "Produto", "Do", "C", "arr", "in", "ho", "Form", "(", "forms", ".", "Form", "):", "ĊĠĠĠ", "Ġclass", "ĠMeta", ":", "ĊĠĠĠĠĠĠĠ", "Ġfields", "Ġ=", "Ġ\"", "produto", "_", "id", "\"", "ĊĊĠĠĠ", "Ġprod", "uto", "_", "id", "Ġ=", "Ġforms", ".", "CharField", "(", "widget", "=", "forms", ".", "Hidden", "Input", "())", "ĊĊ", "Ċ", "class", "ĠQuant", "idade", "Form", "(", "forms", ".", "Form", "):", "ĊĠĠĠ", "Ġclass", "ĠMeta", ":", "ĊĠĠĠĠĠĠĠ", "Ġfields", "Ġ=", "Ġ(\"", "quant", "idade", "\",", "Ġ\"", "produto", "_", "id", "\")", "ĊĊĠĠĠ", "Ġ#", "Ġ<", "input", "Ġtype", "=\"", "hidden", "\"", "Ġname", "=\"", "produto", "_", "id", "\"", "Ġid", "=\"", "id", "_", "produto", "_", "id", "\"", "Ġvalue", "=\"", "xxx", "\">", "ĊĠĠĠ", "Ġprod", "uto", "_", "id", "Ġ=", "Ġforms", ".", "CharField", "(", "widget", "=", "forms", ".", "Hidden", "Input", "())", "ĊĊĠĠĠ", "Ġquant", "idade", "Ġ=", "Ġforms", ".", "IntegerField", "(", "ĊĠĠĠĠĠĠĠ", "Ġmin", "_", "value", "=", "1", ",", "ĊĠĠĠĠĠĠĠ", "Ġmax", "_", "value", "=", "1", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠ", "Ġerror", "_", "messages", "={", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "required", "\":", "Ġ\"", "Campo", "Ġob", "rig", "atório", ".\",", "ĊĠĠĠĠĠĠĠ", "Ġ},", "ĊĠĠĠĠĠĠĠ", "Ġwidget", "=", "forms", ".", "TextInput", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġattrs", "={", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "class", "\":", "Ġ\"", "form", "-", "control", "Ġform", "-", "control", "-", "sm", "Ġquant", "idade", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "maxlength", "\":", "Ġ\"", "2", "0", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "on", "keypress", "\":", "Ġ\"", "return", "Ġevent", ".", "charCode", "Ġ>=", "Ġ", "4", "8", "Ġ&&", "Ġevent", ".", "charCode", "Ġ<=", "Ġ", "5", "7", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ}", "ĊĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠĠĠĠĠ", "Ġrequired", "=", "True", ",", "ĊĠĠĠ", "Ġ)", "Ċ" ]
[ 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 30, 30, 31, 31, 31, 31, 31, 32, 32 ]
[ 1, 5, 12, 19, 25, 1, 1, 6, 13, 20, 22, 23, 26, 28, 30, 34, 35, 40, 41, 45, 47, 4, 10, 15, 16, 8, 15, 17, 19, 26, 27, 29, 30, 4, 9, 12, 13, 15, 17, 23, 24, 33, 34, 40, 41, 46, 47, 53, 58, 61, 1, 1, 6, 12, 17, 21, 22, 27, 28, 32, 34, 4, 10, 15, 16, 8, 15, 17, 20, 25, 30, 32, 34, 41, 42, 44, 46, 4, 6, 8, 13, 18, 20, 26, 27, 32, 34, 41, 42, 44, 45, 48, 50, 52, 53, 60, 61, 63, 64, 70, 72, 75, 77, 4, 9, 12, 13, 15, 17, 23, 24, 33, 34, 40, 41, 46, 47, 53, 58, 61, 4, 10, 15, 17, 23, 24, 36, 37, 8, 12, 13, 18, 19, 20, 21, 8, 12, 13, 18, 19, 20, 21, 22, 23, 24, 8, 14, 15, 23, 25, 12, 14, 22, 24, 26, 31, 34, 37, 43, 46, 8, 11, 8, 15, 16, 21, 22, 31, 32, 12, 18, 20, 16, 18, 23, 25, 27, 31, 32, 39, 44, 45, 52, 53, 55, 61, 66, 68, 16, 18, 27, 29, 31, 32, 33, 35, 16, 18, 20, 28, 30, 32, 38, 44, 45, 53, 56, 57, 58, 59, 62, 68, 69, 77, 80, 81, 82, 83, 85, 12, 14, 8, 11, 8, 17, 18, 22, 23, 4, 6 ]
d654aea3da3e36ccde8a5f4e03798a0dea5aad8a
import pandas as pd import pyranges as pr import numpy as np import sys import logging from methplotlib.utils import file_sniffer import pysam class Methylation(object): def __init__(self, table, data_type, name, called_sites): self.table = table self.data_type = data_type self.name = name self.called_sites = called_sites def read_meth(filename, name, window, smoothen=5): """ converts a file from nanopolish to a pandas dataframe input can be from calculate_methylation_frequency which will return a dataframe with 'chromosome', 'pos', 'methylated_frequency' smoothening the result by a rolling average input can also be raw data per read, optionally phased which will return a dataframe with 'read', 'chromosome', 'pos', 'log_lik_ratio', 'strand' """ file_type = file_sniffer(filename) logging.info("File is of type {}".format(file_type)) try: if file_type.startswith("nanopolish"): return parse_nanopolish(filename, file_type, name, window, smoothen=smoothen) elif file_type == "nanocompore": return parse_nanocompore(filename, name, window) elif file_type == "ont-cram": return parse_ont_cram(filename, name, window) except Exception: sys.stderr.write("\n\n\nInput file {} not recognized!\n".format(filename)) sys.stderr.write("\n\n\nDetailed error:\n") raise def parse_nanopolish(filename, file_type, name, window, smoothen=5): table = pd.read_csv(filename, sep="\t") gr = pr.PyRanges(table.rename(columns={"start": "Start", "chromosome": "Chromosome", "end": "End", "Strand": "strand"})) logging.info("Read the file in a dataframe.") if window: gr = gr[window.chromosome, window.begin : window.end] try: gr.pos = np.floor(gr.drop().df[["Start", "End"]].mean(axis=1)) except KeyError: sys.stderr.write("\n\n\nProblem parsing nanopolish file {}!\n".format(filename)) sys.stderr.write("Could it be that there are no calls in your selected window?\n") sys.stderr.write("\n\n\nDetailed error:\n") raise table = gr.df if file_type in ["nanopolish_call", "nanopolish_phased"]: table = table.drop( columns=[ "Start", "End", "log_lik_methylated", "log_lik_unmethylated", "num_calling_strands", "num_motifs", "sequence", ] ) return Methylation( table=table.sort_values(["read_name", "pos"]), data_type=file_type, name=name, called_sites=len(table) ) if file_type == "nanopolish_freq": called_sites = table.called_sites table = table.drop( columns=["Start", "End", "num_motifs_in_group", "called_sites", "called_sites_methylated", "group_sequence"] ) return Methylation( table=table.sort_values("pos").groupby("pos").mean().rolling(window=smoothen, center=True).mean(), data_type=file_type, name=name, called_sites=called_sites.sum(), ) def parse_nanocompore(filename, name, window): def nanocompore_columns_of_interest(column): if column in ["pos", "ref_id"]: return True elif column.endswith("pvalue_context_2") or column.endswith("pvalue"): return True else: return False table = pd.read_csv(filename, sep="\t", usecols=nanocompore_columns_of_interest) if window: table = table[table["ref_id"] == window.chromosome] return Methylation( table=table.sort_values("pos").append({"pos": window.end}, ignore_index=True).drop(columns="ref_id").fillna(1.0), data_type="nanocompore", name=name, called_sites=len(table), ) def parse_ont_cram(filename, name, window): cram = pysam.AlignmentFile(filename, "rc") data = [] for read in cram.fetch(reference=window.chromosome, start=window.begin, end=window.end): if not read.is_supplementary and not read.is_secondary: mod, positions, quals = get_modified_reference_positions(read) for pos, qual in zip(positions, quals): if pos is not None: data.append((read.query_name, "-" if read.is_reverse else "+", pos, qual, mod)) return Methylation( table=pd.DataFrame(data, columns=["read_name", "strand", "pos", "quality", "mod"]) .astype(dtype={"mod": "category", "quality": "float"}) .sort_values(["read_name", "pos"]), data_type="ont-cram", name=name, called_sites=len(data), ) def get_modified_reference_positions(read): if read.has_tag("MM"): basemod = read.get_tag("MM").split(",", 1)[0] if "-" in basemod: sys.exit("ERROR: modifications on negative strand currently unsupported.") base, mod = basemod.split("+") deltas = [int(i) for i in read.get_tag("MM").split(",")[1:]] probabilities = phred_to_probability(read.get_tag("MP")) locations = np.cumsum(deltas) + np.concatenate((np.zeros(shape=1), np.ones(shape=len(deltas) - 1))).astype("int") base_index = np.array([i for i, letter in enumerate(read.get_forward_sequence()) if letter == base]) modified_bases = base_index[locations] refpos = np.array(read.get_reference_positions(full_length=True)) if read.is_reverse: refpos = np.flipud(refpos) probabilities = probabilities[::-1] return (basemod, refpos[modified_bases], probabilities) else: return (None, [None], [None]) def errs_tab(n): """Generate list of error rates for qualities less than equal than n.""" return [10 ** (q / -10) for q in range(n + 1)] def phred_to_probability(quals, tab=errs_tab(128)): return [tab[ord(q) - 33] for q in quals] def get_data(methylation_files, names, window, smoothen=5): """ Import methylation data from all files in the list methylation_files Data can be either frequency or raw. data is extracted within the window args.window Frequencies are smoothened using a sliding window """ return [read_meth(f, n, window, smoothen) for f, n in zip(methylation_files, names)]
[ 485, 13247, 641, 6451, 222, 485, 3643, 20009, 641, 1173, 222, 485, 6610, 641, 2115, 222, 485, 5263, 222, 485, 5751, 222, 1097, 41850, 10727, 51, 2324, 1220, 822, 100, 4654, 10282, 222, 485, 317, 1291, 424, 499, 222, 842, 3130, 23458, 3840, 45, 1491, 731, 303, 684, 1176, 1683, 3232, 803, 49, 1877, 49, 727, 100, 700, 49, 655, 49, 3845, 100, 12104, 731, 310, 649, 51, 1292, 299, 1877, 310, 649, 51, 624, 100, 700, 299, 727, 100, 700, 310, 649, 51, 444, 299, 655, 310, 649, 51, 10917, 100, 12104, 299, 3845, 100, 12104, 499, 222, 610, 1511, 100, 17834, 45, 3633, 49, 655, 49, 3240, 49, 3459, 623, 3369, 66, 58, 731, 303, 1547, 303, 22986, 331, 822, 664, 19322, 539, 381, 1729, 391, 331, 13247, 22533, 303, 1533, 902, 545, 664, 9226, 100, 17834, 126, 3840, 100, 15749, 303, 1532, 1118, 461, 331, 22533, 642, 349, 16117, 23388, 389, 349, 985, 389, 349, 17834, 8199, 751, 100, 15749, 44, 303, 3459, 623, 3369, 318, 341, 1074, 829, 331, 38800, 10984, 465, 1533, 902, 2353, 545, 5096, 727, 1313, 1511, 49, 24500, 11311, 105, 303, 1532, 1118, 461, 331, 22533, 642, 349, 870, 389, 349, 16117, 23388, 389, 349, 985, 389, 349, 769, 100, 6065, 100, 11439, 389, 349, 37716, 44, 303, 1547, 303, 822, 100, 700, 299, 822, 100, 4654, 10282, 45, 3633, 46, 303, 5751, 51, 1357, 459, 991, 458, 451, 847, 16669, 1664, 45, 781, 100, 700, 509, 303, 1614, 63, 310, 434, 822, 100, 700, 51, 16030, 459, 10158, 539, 381, 1729, 10320, 343, 461, 3203, 100, 10158, 539, 381, 1729, 45, 3633, 49, 822, 100, 700, 49, 655, 49, 3240, 49, 3459, 623, 3369, 66, 1752, 623, 3369, 46, 310, 4378, 822, 100, 700, 630, 332, 27359, 998, 705, 582, 343, 461, 3203, 100, 27359, 998, 705, 45, 3633, 49, 655, 49, 3240, 46, 310, 4378, 822, 100, 700, 630, 332, 406, 50, 2465, 424, 582, 343, 461, 3203, 100, 406, 100, 2465, 424, 45, 3633, 49, 655, 49, 3240, 46, 303, 2959, 3284, 63, 310, 5263, 51, 8232, 51, 1838, 5564, 115, 97, 115, 97, 115, 1630, 822, 2172, 666, 27367, 14355, 115, 2316, 1664, 45, 3633, 509, 310, 5263, 51, 8232, 51, 1838, 5564, 115, 97, 115, 97, 115, 34063, 1067, 3509, 115, 678, 310, 3655, 499, 222, 610, 3203, 100, 10158, 539, 381, 1729, 45, 3633, 49, 822, 100, 700, 49, 655, 49, 3240, 49, 3459, 623, 3369, 66, 58, 731, 303, 1877, 299, 6451, 51, 870, 100, 4849, 45, 3633, 49, 19215, 38600, 121, 678, 303, 2935, 299, 1173, 51, 5019, 19665, 45, 1292, 51, 13287, 45, 6173, 8492, 1384, 582, 332, 2148, 411, 332, 16117, 23388, 582, 332, 36859, 23388, 411, 332, 435, 582, 332, 2117, 411, 332, 2026, 382, 582, 332, 37716, 3667, 509, 303, 5751, 51, 1357, 459, 2248, 341, 822, 347, 331, 22533, 7164, 465, 434, 3240, 63, 310, 2935, 299, 2935, 96, 3537, 51, 16117, 23388, 49, 3240, 51, 2425, 518, 3240, 51, 435, 98, 303, 1614, 63, 310, 2935, 51, 985, 299, 2115, 51, 9157, 45, 791, 51, 3850, 941, 1519, 96, 1388, 2148, 411, 332, 2117, 1465, 1015, 6193, 45, 5167, 66, 54, 509, 303, 2959, 25145, 63, 310, 5263, 51, 8232, 51, 1838, 5564, 115, 97, 115, 97, 115, 14780, 11713, 19322, 539, 381, 1729, 822, 2172, 14355, 115, 2316, 1664, 45, 3633, 509, 310, 5263, 51, 8232, 51, 1838, 459, 9752, 580, 545, 708, 2038, 904, 1307, 7410, 347, 1390, 4337, 3240, 21184, 115, 678, 310, 5263, 51, 8232, 51, 1838, 5564, 115, 97, 115, 97, 115, 34063, 1067, 3509, 115, 678, 310, 3655, 465, 1877, 299, 2935, 51, 1519, 465, 434, 822, 100, 700, 347, 3059, 10158, 539, 381, 1729, 100, 1872, 411, 332, 10158, 539, 381, 1729, 100, 12055, 105, 18277, 310, 1877, 299, 1877, 51, 3850, 45, 343, 6165, 6094, 419, 332, 2148, 411, 419, 332, 2117, 411, 419, 332, 769, 100, 6065, 100, 17834, 8199, 751, 411, 419, 332, 769, 100, 6065, 100, 330, 17834, 8199, 751, 411, 419, 332, 1538, 100, 38146, 100, 484, 6002, 411, 419, 332, 1538, 100, 20586, 23251, 411, 419, 332, 7543, 411, 343, 1499, 310, 848, 310, 461, 3130, 23458, 3840, 45, 343, 1877, 66, 1292, 51, 3349, 100, 2857, 14274, 870, 100, 444, 411, 332, 985, 28736, 727, 100, 700, 66, 781, 100, 700, 49, 655, 66, 444, 49, 3845, 100, 12104, 66, 1688, 45, 1292, 46, 310, 848, 303, 434, 822, 100, 700, 630, 332, 10158, 539, 381, 1729, 100, 11111, 582, 310, 3845, 100, 12104, 299, 1877, 51, 10917, 100, 12104, 310, 1877, 299, 1877, 51, 3850, 45, 343, 6165, 18776, 2148, 411, 332, 2117, 411, 332, 1538, 100, 20586, 23251, 100, 285, 100, 1382, 411, 332, 10917, 100, 12104, 411, 332, 10917, 100, 12104, 100, 17834, 8199, 751, 411, 332, 1382, 100, 7543, 1465, 310, 848, 310, 461, 3130, 23458, 3840, 45, 343, 1877, 66, 1292, 51, 3349, 100, 2857, 459, 985, 1912, 26826, 459, 985, 1912, 6193, 941, 23186, 45, 3537, 66, 1752, 623, 3369, 49, 4216, 66, 1844, 566, 6193, 1046, 343, 727, 100, 700, 66, 781, 100, 700, 49, 343, 655, 66, 444, 49, 343, 3845, 100, 12104, 66, 10917, 100, 12104, 51, 1055, 1046, 310, 848, 499, 222, 610, 3203, 100, 27359, 998, 705, 45, 3633, 49, 655, 49, 3240, 731, 303, 684, 41993, 998, 705, 100, 6173, 100, 1048, 100, 13954, 45, 2628, 731, 310, 434, 2656, 347, 3059, 985, 411, 332, 631, 100, 333, 18277, 343, 461, 2969, 310, 4378, 2656, 51, 20677, 459, 117, 872, 100, 1834, 100, 55, 678, 575, 2656, 51, 20677, 459, 117, 872, 10320, 343, 461, 2969, 310, 832, 63, 343, 461, 3208, 465, 1877, 299, 6451, 51, 870, 100, 4849, 45, 3633, 49, 19215, 38600, 121, 411, 813, 8326, 66, 27359, 998, 705, 100, 6173, 100, 1048, 100, 13954, 46, 303, 434, 3240, 63, 310, 1877, 299, 1877, 96, 1292, 1388, 631, 100, 333, 1465, 630, 3240, 51, 16117, 23388, 98, 303, 461, 3130, 23458, 3840, 45, 310, 1877, 66, 1292, 51, 3349, 100, 2857, 459, 985, 1912, 1713, 15540, 985, 582, 3240, 51, 435, 855, 5091, 100, 1076, 66, 1844, 566, 3850, 45, 6173, 366, 631, 100, 333, 1912, 4182, 3288, 45, 54, 51, 53, 490, 310, 727, 100, 700, 366, 27359, 998, 705, 411, 310, 655, 66, 444, 49, 310, 3845, 100, 12104, 66, 1688, 45, 1292, 490, 303, 848, 499, 222, 610, 3203, 100, 406, 100, 2465, 424, 45, 3633, 49, 655, 49, 3240, 731, 303, 300, 4344, 299, 317, 1291, 424, 51, 7759, 991, 45, 3633, 49, 332, 918, 678, 303, 727, 299, 1627, 303, 456, 1511, 347, 300, 4344, 51, 5151, 45, 3592, 66, 3537, 51, 16117, 23388, 49, 1496, 66, 3537, 51, 2425, 49, 962, 66, 3537, 51, 435, 731, 310, 434, 666, 1511, 51, 316, 100, 22042, 746, 692, 480, 666, 1511, 51, 316, 100, 11237, 63, 343, 2065, 49, 14491, 49, 7208, 120, 299, 640, 100, 10492, 100, 3592, 100, 16784, 45, 870, 46, 343, 456, 3423, 49, 7208, 347, 8617, 45, 16784, 49, 7208, 120, 731, 419, 434, 3423, 458, 666, 1686, 63, 547, 727, 51, 1713, 1181, 870, 51, 1234, 100, 444, 49, 20897, 434, 1511, 51, 316, 100, 9845, 832, 36796, 3423, 49, 7208, 49, 2065, 509, 303, 461, 3130, 23458, 3840, 45, 310, 1877, 66, 7221, 51, 11806, 45, 624, 49, 6165, 18776, 870, 100, 444, 411, 332, 37716, 411, 332, 985, 411, 332, 13752, 411, 332, 1820, 6957, 310, 657, 15764, 45, 12094, 8492, 1820, 582, 332, 3168, 411, 332, 13752, 582, 332, 1832, 15147, 310, 657, 3349, 100, 2857, 14274, 870, 100, 444, 411, 332, 985, 28736, 310, 727, 100, 700, 366, 406, 50, 2465, 424, 411, 310, 655, 66, 444, 49, 310, 3845, 100, 12104, 66, 1688, 45, 624, 490, 303, 848, 499, 222, 610, 640, 100, 10492, 100, 3592, 100, 16784, 45, 870, 731, 303, 434, 1511, 51, 2057, 100, 2159, 459, 2842, 10320, 310, 1712, 1820, 299, 1511, 51, 390, 100, 2159, 459, 2842, 1912, 3045, 42910, 244, 54, 5630, 53, 98, 310, 434, 20897, 347, 1712, 1820, 63, 343, 5263, 51, 4788, 459, 2946, 63, 23125, 563, 11058, 615, 382, 5937, 26848, 7164, 310, 1712, 49, 2065, 299, 1712, 1820, 51, 3045, 30000, 678, 310, 36875, 321, 299, 447, 429, 45, 110, 46, 456, 613, 347, 1511, 51, 390, 100, 2159, 459, 2842, 1912, 3045, 10803, 16097, 54, 46049, 310, 36591, 299, 2697, 1116, 100, 471, 100, 31167, 45, 870, 51, 390, 100, 2159, 459, 1471, 2152, 310, 14357, 299, 2115, 51, 34537, 1055, 45, 32632, 321, 46, 494, 2115, 51, 26962, 1181, 2399, 51, 10066, 45, 3299, 66, 54, 490, 2115, 51, 5813, 45, 3299, 66, 1688, 45, 32632, 321, 46, 449, 244, 54, 23969, 15764, 459, 429, 678, 310, 1712, 100, 1076, 299, 2115, 51, 977, 2034, 110, 456, 613, 49, 11706, 347, 10869, 45, 870, 51, 390, 100, 7563, 100, 7543, 1177, 434, 11706, 630, 1712, 1156, 310, 8851, 100, 29959, 299, 1712, 100, 1076, 96, 13498, 98, 310, 2505, 985, 299, 2115, 51, 977, 45, 870, 51, 390, 100, 3592, 100, 16784, 45, 2638, 100, 1340, 66, 1844, 509, 310, 434, 1511, 51, 316, 100, 9845, 63, 343, 2505, 985, 299, 2115, 51, 16292, 856, 45, 631, 985, 46, 343, 36591, 299, 36591, 96, 23667, 54, 98, 310, 461, 327, 1460, 1820, 49, 2505, 985, 96, 10492, 100, 29959, 636, 36591, 46, 303, 832, 63, 310, 461, 327, 2545, 49, 447, 2545, 636, 447, 2545, 1156, 499, 222, 610, 45391, 100, 3019, 45, 115, 731, 303, 1547, 10513, 1168, 451, 1067, 26201, 456, 7208, 2130, 6717, 2806, 5058, 2806, 329, 7128, 303, 461, 447, 54, 53, 1137, 327, 118, 536, 449, 54, 53, 46, 456, 2706, 347, 2189, 45, 115, 494, 244, 54, 2201, 499, 222, 610, 2697, 1116, 100, 471, 100, 31167, 45, 958, 120, 49, 4890, 66, 33943, 100, 3019, 45, 54, 55, 61, 8485, 303, 461, 447, 3019, 96, 675, 45, 118, 46, 449, 244, 56, 56, 98, 456, 2706, 347, 7208, 120, 98, 499, 222, 610, 640, 100, 624, 45, 17834, 126, 3840, 100, 2558, 49, 4492, 49, 3240, 49, 3459, 623, 3369, 66, 58, 731, 303, 1547, 303, 9274, 616, 23458, 3840, 727, 664, 1187, 2293, 347, 341, 1168, 616, 23458, 3840, 100, 2558, 465, 2426, 902, 545, 3173, 13526, 575, 5096, 51, 465, 727, 458, 20112, 4824, 341, 3240, 2194, 51, 3537, 303, 525, 5372, 3879, 904, 3459, 623, 3369, 337, 1493, 331, 5454, 13306, 3240, 303, 1547, 303, 461, 447, 870, 100, 17834, 45, 107, 49, 329, 49, 3240, 49, 3459, 623, 3369, 46, 456, 315, 49, 329, 347, 8617, 45, 17834, 126, 3840, 100, 2558, 49, 4492, 2201, 222 ]
[ "import", "Ġpandas", "Ġas", "Ġpd", "Ċ", "import", "Ġpy", "ranges", "Ġas", "Ġpr", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "import", "Ġsys", "Ċ", "import", "Ġlogging", "Ċ", "from", "Ġmeth", "plotlib", ".", "utils", "Ġimport", "Ġfile", "_", "sn", "iffer", "Ċ", "import", "Ġp", "ys", "am", "ĊĊ", "Ċ", "class", "ĠMe", "thy", "lation", "(", "object", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġtable", ",", "Ġdata", "_", "type", ",", "Ġname", ",", "Ġcalled", "_", "sites", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "table", "Ġ=", "Ġtable", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "data", "_", "type", "Ġ=", "Ġdata", "_", "type", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "name", "Ġ=", "Ġname", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "called", "_", "sites", "Ġ=", "Ġcalled", "_", "sites", "ĊĊ", "Ċ", "def", "Ġread", "_", "meth", "(", "filename", ",", "Ġname", ",", "Ġwindow", ",", "Ġsm", "oo", "then", "=", "5", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġconverts", "Ġa", "Ġfile", "Ġfrom", "Ġnan", "op", "ol", "ish", "Ġto", "Ġa", "Ġpandas", "Ġdataframe", "ĊĠĠĠ", "Ġinput", "Ġcan", "Ġbe", "Ġfrom", "Ġcalculate", "_", "meth", "y", "lation", "_", "frequency", "ĊĠĠĠ", "Ġwhich", "Ġwill", "Ġreturn", "Ġa", "Ġdataframe", "Ġwith", "Ġ'", "chrom", "osome", "',", "Ġ'", "pos", "',", "Ġ'", "meth", "yl", "ated", "_", "frequency", "'", "ĊĠĠĠ", "Ġsm", "oo", "then", "ing", "Ġthe", "Ġresult", "Ġby", "Ġa", "Ġrolling", "Ġaverage", "ĊĊĠĠĠ", "Ġinput", "Ġcan", "Ġalso", "Ġbe", "Ġraw", "Ġdata", "Ġper", "Ġread", ",", "Ġoptionally", "Ġphase", "d", "ĊĠĠĠ", "Ġwhich", "Ġwill", "Ġreturn", "Ġa", "Ġdataframe", "Ġwith", "Ġ'", "read", "',", "Ġ'", "chrom", "osome", "',", "Ġ'", "pos", "',", "Ġ'", "log", "_", "lik", "_", "ratio", "',", "Ġ'", "strand", "'", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġfile", "_", "type", "Ġ=", "Ġfile", "_", "sn", "iffer", "(", "filename", ")", "ĊĠĠĠ", "Ġlogging", ".", "info", "(\"", "File", "Ġis", "Ġof", "Ġtype", "Ġ{}\".", "format", "(", "file", "_", "type", "))", "ĊĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġfile", "_", "type", ".", "startswith", "(\"", "nan", "op", "ol", "ish", "\"):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġparse", "_", "nan", "op", "ol", "ish", "(", "filename", ",", "Ġfile", "_", "type", ",", "Ġname", ",", "Ġwindow", ",", "Ġsm", "oo", "then", "=", "sm", "oo", "then", ")", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġfile", "_", "type", "Ġ==", "Ġ\"", "nano", "comp", "ore", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġparse", "_", "nano", "comp", "ore", "(", "filename", ",", "Ġname", ",", "Ġwindow", ")", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġfile", "_", "type", "Ġ==", "Ġ\"", "ont", "-", "cr", "am", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġparse", "_", "ont", "_", "cr", "am", "(", "filename", ",", "Ġname", ",", "Ġwindow", ")", "ĊĠĠĠ", "Ġexcept", "ĠException", ":", "ĊĠĠĠĠĠĠĠ", "Ġsys", ".", "stderr", ".", "write", "(\"\\", "n", "\\", "n", "\\", "n", "Input", "Ġfile", "Ġ{}", "Ġnot", "Ġrecognized", "!\\", "n", "\".", "format", "(", "filename", "))", "ĊĠĠĠĠĠĠĠ", "Ġsys", ".", "stderr", ".", "write", "(\"\\", "n", "\\", "n", "\\", "n", "Detailed", "Ġerror", ":\\", "n", "\")", "ĊĠĠĠĠĠĠĠ", "Ġraise", "ĊĊ", "Ċ", "def", "Ġparse", "_", "nan", "op", "ol", "ish", "(", "filename", ",", "Ġfile", "_", "type", ",", "Ġname", ",", "Ġwindow", ",", "Ġsm", "oo", "then", "=", "5", "):", "ĊĠĠĠ", "Ġtable", "Ġ=", "Ġpd", ".", "read", "_", "csv", "(", "filename", ",", "Ġsep", "=\"\\", "t", "\")", "ĊĠĠĠ", "Ġgr", "Ġ=", "Ġpr", ".", "Py", "Ranges", "(", "table", ".", "rename", "(", "columns", "={\"", "start", "\":", "Ġ\"", "Start", "\",", "Ġ\"", "chrom", "osome", "\":", "Ġ\"", "Chrom", "osome", "\",", "Ġ\"", "end", "\":", "Ġ\"", "End", "\",", "Ġ\"", "Str", "and", "\":", "Ġ\"", "strand", "\"}", "))", "ĊĠĠĠ", "Ġlogging", ".", "info", "(\"", "Read", "Ġthe", "Ġfile", "Ġin", "Ġa", "Ġdataframe", ".\")", "ĊĊĠĠĠ", "Ġif", "Ġwindow", ":", "ĊĠĠĠĠĠĠĠ", "Ġgr", "Ġ=", "Ġgr", "[", "window", ".", "chrom", "osome", ",", "Ġwindow", ".", "begin", "Ġ:", "Ġwindow", ".", "end", "]", "ĊĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠ", "Ġgr", ".", "pos", "Ġ=", "Ġnp", ".", "floor", "(", "gr", ".", "drop", "().", "df", "[", "[\"", "Start", "\",", "Ġ\"", "End", "\"]", "].", "mean", "(", "axis", "=", "1", "))", "ĊĠĠĠ", "Ġexcept", "ĠKeyError", ":", "ĊĠĠĠĠĠĠĠ", "Ġsys", ".", "stderr", ".", "write", "(\"\\", "n", "\\", "n", "\\", "n", "Problem", "Ġparsing", "Ġnan", "op", "ol", "ish", "Ġfile", "Ġ{}", "!\\", "n", "\".", "format", "(", "filename", "))", "ĊĠĠĠĠĠĠĠ", "Ġsys", ".", "stderr", ".", "write", "(\"", "Could", "Ġit", "Ġbe", "Ġthat", "Ġthere", "Ġare", "Ġno", "Ġcalls", "Ġin", "Ġyour", "Ġselected", "Ġwindow", "?\\", "n", "\")", "ĊĠĠĠĠĠĠĠ", "Ġsys", ".", "stderr", ".", "write", "(\"\\", "n", "\\", "n", "\\", "n", "Detailed", "Ġerror", ":\\", "n", "\")", "ĊĠĠĠĠĠĠĠ", "Ġraise", "ĊĊĠĠĠ", "Ġtable", "Ġ=", "Ġgr", ".", "df", "ĊĊĠĠĠ", "Ġif", "Ġfile", "_", "type", "Ġin", "Ġ[\"", "nan", "op", "ol", "ish", "_", "call", "\",", "Ġ\"", "nan", "op", "ol", "ish", "_", "phase", "d", "\"]:", "ĊĠĠĠĠĠĠĠ", "Ġtable", "Ġ=", "Ġtable", ".", "drop", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcolumns", "=[", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "Start", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "End", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "log", "_", "lik", "_", "meth", "yl", "ated", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "log", "_", "lik", "_", "un", "meth", "yl", "ated", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "num", "_", "calling", "_", "str", "ands", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "num", "_", "mot", "ifs", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "sequence", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ]", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "ĠMe", "thy", "lation", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtable", "=", "table", ".", "sort", "_", "values", "([\"", "read", "_", "name", "\",", "Ġ\"", "pos", "\"]),", "Ġdata", "_", "type", "=", "file", "_", "type", ",", "Ġname", "=", "name", ",", "Ġcalled", "_", "sites", "=", "len", "(", "table", ")", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠ", "Ġif", "Ġfile", "_", "type", "Ġ==", "Ġ\"", "nan", "op", "ol", "ish", "_", "freq", "\":", "ĊĠĠĠĠĠĠĠ", "Ġcalled", "_", "sites", "Ġ=", "Ġtable", ".", "called", "_", "sites", "ĊĠĠĠĠĠĠĠ", "Ġtable", "Ġ=", "Ġtable", ".", "drop", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcolumns", "=[\"", "Start", "\",", "Ġ\"", "End", "\",", "Ġ\"", "num", "_", "mot", "ifs", "_", "in", "_", "group", "\",", "Ġ\"", "called", "_", "sites", "\",", "Ġ\"", "called", "_", "sites", "_", "meth", "yl", "ated", "\",", "Ġ\"", "group", "_", "sequence", "\"]", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "ĠMe", "thy", "lation", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtable", "=", "table", ".", "sort", "_", "values", "(\"", "pos", "\").", "groupby", "(\"", "pos", "\").", "mean", "().", "rolling", "(", "window", "=", "sm", "oo", "then", ",", "Ġcenter", "=", "True", ").", "mean", "(),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", "_", "type", "=", "file", "_", "type", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġname", "=", "name", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcalled", "_", "sites", "=", "called", "_", "sites", ".", "sum", "(),", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĊ", "Ċ", "def", "Ġparse", "_", "nano", "comp", "ore", "(", "filename", ",", "Ġname", ",", "Ġwindow", "):", "ĊĠĠĠ", "Ġdef", "Ġnano", "comp", "ore", "_", "columns", "_", "of", "_", "interest", "(", "column", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġcolumn", "Ġin", "Ġ[\"", "pos", "\",", "Ġ\"", "ref", "_", "id", "\"]:", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĠTrue", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġcolumn", ".", "endswith", "(\"", "p", "value", "_", "context", "_", "2", "\")", "Ġor", "Ġcolumn", ".", "endswith", "(\"", "p", "value", "\"):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĠTrue", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĠFalse", "ĊĊĠĠĠ", "Ġtable", "Ġ=", "Ġpd", ".", "read", "_", "csv", "(", "filename", ",", "Ġsep", "=\"\\", "t", "\",", "Ġuse", "cols", "=", "nano", "comp", "ore", "_", "columns", "_", "of", "_", "interest", ")", "ĊĠĠĠ", "Ġif", "Ġwindow", ":", "ĊĠĠĠĠĠĠĠ", "Ġtable", "Ġ=", "Ġtable", "[", "table", "[\"", "ref", "_", "id", "\"]", "Ġ==", "Ġwindow", ".", "chrom", "osome", "]", "ĊĠĠĠ", "Ġreturn", "ĠMe", "thy", "lation", "(", "ĊĠĠĠĠĠĠĠ", "Ġtable", "=", "table", ".", "sort", "_", "values", "(\"", "pos", "\").", "append", "({\"", "pos", "\":", "Ġwindow", ".", "end", "},", "Ġignore", "_", "index", "=", "True", ").", "drop", "(", "columns", "=\"", "ref", "_", "id", "\").", "fill", "na", "(", "1", ".", "0", "),", "ĊĠĠĠĠĠĠĠ", "Ġdata", "_", "type", "=\"", "nano", "comp", "ore", "\",", "ĊĠĠĠĠĠĠĠ", "Ġname", "=", "name", ",", "ĊĠĠĠĠĠĠĠ", "Ġcalled", "_", "sites", "=", "len", "(", "table", "),", "ĊĠĠĠ", "Ġ)", "ĊĊ", "Ċ", "def", "Ġparse", "_", "ont", "_", "cr", "am", "(", "filename", ",", "Ġname", ",", "Ġwindow", "):", "ĊĠĠĠ", "Ġc", "ram", "Ġ=", "Ġp", "ys", "am", ".", "Alignment", "File", "(", "filename", ",", "Ġ\"", "rc", "\")", "ĊĠĠĠ", "Ġdata", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġfor", "Ġread", "Ġin", "Ġc", "ram", ".", "fetch", "(", "reference", "=", "window", ".", "chrom", "osome", ",", "Ġstart", "=", "window", ".", "begin", ",", "Ġend", "=", "window", ".", "end", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnot", "Ġread", ".", "is", "_", "supp", "lement", "ary", "Ġand", "Ġnot", "Ġread", ".", "is", "_", "secondary", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġmod", ",", "Ġpositions", ",", "Ġqual", "s", "Ġ=", "Ġget", "_", "modified", "_", "reference", "_", "positions", "(", "read", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġpos", ",", "Ġqual", "Ġin", "Ġzip", "(", "positions", ",", "Ġqual", "s", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġpos", "Ġis", "Ġnot", "ĠNone", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdata", ".", "append", "((", "read", ".", "query", "_", "name", ",", "Ġ\"-\"", "Ġif", "Ġread", ".", "is", "_", "reverse", "Ġelse", "Ġ\"+\",", "Ġpos", ",", "Ġqual", ",", "Ġmod", "))", "ĊĠĠĠ", "Ġreturn", "ĠMe", "thy", "lation", "(", "ĊĠĠĠĠĠĠĠ", "Ġtable", "=", "pd", ".", "DataFrame", "(", "data", ",", "Ġcolumns", "=[\"", "read", "_", "name", "\",", "Ġ\"", "strand", "\",", "Ġ\"", "pos", "\",", "Ġ\"", "quality", "\",", "Ġ\"", "mod", "\"])", "ĊĠĠĠĠĠĠĠ", "Ġ.", "astype", "(", "dtype", "={\"", "mod", "\":", "Ġ\"", "category", "\",", "Ġ\"", "quality", "\":", "Ġ\"", "float", "\"})", "ĊĠĠĠĠĠĠĠ", "Ġ.", "sort", "_", "values", "([\"", "read", "_", "name", "\",", "Ġ\"", "pos", "\"]),", "ĊĠĠĠĠĠĠĠ", "Ġdata", "_", "type", "=\"", "ont", "-", "cr", "am", "\",", "ĊĠĠĠĠĠĠĠ", "Ġname", "=", "name", ",", "ĊĠĠĠĠĠĠĠ", "Ġcalled", "_", "sites", "=", "len", "(", "data", "),", "ĊĠĠĠ", "Ġ)", "ĊĊ", "Ċ", "def", "Ġget", "_", "modified", "_", "reference", "_", "positions", "(", "read", "):", "ĊĠĠĠ", "Ġif", "Ġread", ".", "has", "_", "tag", "(\"", "MM", "\"):", "ĊĠĠĠĠĠĠĠ", "Ġbase", "mod", "Ġ=", "Ġread", ".", "get", "_", "tag", "(\"", "MM", "\").", "split", "(\",\",", "Ġ", "1", ")[", "0", "]", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġ\"-\"", "Ġin", "Ġbase", "mod", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsys", ".", "exit", "(\"", "ERROR", ":", "Ġmodifications", "Ġon", "Ġnegative", "Ġstr", "and", "Ġcurrently", "Ġunsupported", ".\")", "ĊĠĠĠĠĠĠĠ", "Ġbase", ",", "Ġmod", "Ġ=", "Ġbase", "mod", ".", "split", "(\"+", "\")", "ĊĠĠĠĠĠĠĠ", "Ġdelt", "as", "Ġ=", "Ġ[", "int", "(", "i", ")", "Ġfor", "Ġi", "Ġin", "Ġread", ".", "get", "_", "tag", "(\"", "MM", "\").", "split", "(\",", "\")[", "1", ":]]", "ĊĠĠĠĠĠĠĠ", "Ġprobabilities", "Ġ=", "Ġph", "red", "_", "to", "_", "probability", "(", "read", ".", "get", "_", "tag", "(\"", "MP", "\"))", "ĊĠĠĠĠĠĠĠ", "Ġlocations", "Ġ=", "Ġnp", ".", "cum", "sum", "(", "delt", "as", ")", "Ġ+", "Ġnp", ".", "concatenate", "((", "np", ".", "zeros", "(", "shape", "=", "1", "),", "Ġnp", ".", "ones", "(", "shape", "=", "len", "(", "delt", "as", ")", "Ġ-", "Ġ", "1", "))).", "astype", "(\"", "int", "\")", "ĊĠĠĠĠĠĠĠ", "Ġbase", "_", "index", "Ġ=", "Ġnp", ".", "array", "([", "i", "Ġfor", "Ġi", ",", "Ġletter", "Ġin", "Ġenumerate", "(", "read", ".", "get", "_", "forward", "_", "sequence", "())", "Ġif", "Ġletter", "Ġ==", "Ġbase", "])", "ĊĠĠĠĠĠĠĠ", "Ġmodified", "_", "bases", "Ġ=", "Ġbase", "_", "index", "[", "locations", "]", "ĊĠĠĠĠĠĠĠ", "Ġref", "pos", "Ġ=", "Ġnp", ".", "array", "(", "read", ".", "get", "_", "reference", "_", "positions", "(", "full", "_", "length", "=", "True", "))", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġread", ".", "is", "_", "reverse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġref", "pos", "Ġ=", "Ġnp", ".", "flip", "ud", "(", "ref", "pos", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprobabilities", "Ġ=", "Ġprobabilities", "[", "::-", "1", "]", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ(", "base", "mod", ",", "Ġref", "pos", "[", "modified", "_", "bases", "],", "Ġprobabilities", ")", "ĊĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ(", "None", ",", "Ġ[", "None", "],", "Ġ[", "None", "])", "ĊĊ", "Ċ", "def", "Ġerrs", "_", "tab", "(", "n", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Generate", "Ġlist", "Ġof", "Ġerror", "Ġrates", "Ġfor", "Ġqual", "ities", "Ġless", "Ġthan", "Ġequal", "Ġthan", "Ġn", ".\"\"\"", "ĊĠĠĠ", "Ġreturn", "Ġ[", "1", "0", "Ġ**", "Ġ(", "q", "Ġ/", "Ġ-", "1", "0", ")", "Ġfor", "Ġq", "Ġin", "Ġrange", "(", "n", "Ġ+", "Ġ", "1", ")]", "ĊĊ", "Ċ", "def", "Ġph", "red", "_", "to", "_", "probability", "(", "qual", "s", ",", "Ġtab", "=", "errs", "_", "tab", "(", "1", "2", "8", ")):", "ĊĠĠĠ", "Ġreturn", "Ġ[", "tab", "[", "ord", "(", "q", ")", "Ġ-", "Ġ", "3", "3", "]", "Ġfor", "Ġq", "Ġin", "Ġqual", "s", "]", "ĊĊ", "Ċ", "def", "Ġget", "_", "data", "(", "meth", "y", "lation", "_", "files", ",", "Ġnames", ",", "Ġwindow", ",", "Ġsm", "oo", "then", "=", "5", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "ĠImport", "Ġme", "thy", "lation", "Ġdata", "Ġfrom", "Ġall", "Ġfiles", "Ġin", "Ġthe", "Ġlist", "Ġme", "thy", "lation", "_", "files", "ĊĊĠĠĠ", "ĠData", "Ġcan", "Ġbe", "Ġeither", "Ġfrequency", "Ġor", "Ġraw", ".", "ĊĊĠĠĠ", "Ġdata", "Ġis", "Ġextracted", "Ġwithin", "Ġthe", "Ġwindow", "Ġargs", ".", "window", "ĊĠĠĠ", "ĠF", "requ", "encies", "Ġare", "Ġsm", "oo", "then", "ed", "Ġusing", "Ġa", "Ġsl", "iding", "Ġwindow", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġreturn", "Ġ[", "read", "_", "meth", "(", "f", ",", "Ġn", ",", "Ġwindow", ",", "Ġsm", "oo", "then", ")", "Ġfor", "Ġf", ",", "Ġn", "Ġin", "Ġzip", "(", "meth", "y", "lation", "_", "files", ",", "Ġnames", ")]", "Ċ" ]
[ 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 58, 58, 58, 58, 58, 58, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 63, 63, 63, 63, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 70, 70, 71, 71, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85, 85, 87, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 94, 94, 94, 95, 95, 95, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 102, 102, 102, 102, 103, 103, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 105, 105, 107, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 110, 110, 110, 110, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 115, 115, 115, 115, 115, 115, 115, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 122, 122, 122, 122, 122, 123, 123, 123, 123, 123, 123, 123, 123, 123, 124, 124, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 130, 130, 130, 130, 130, 130, 130, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 139, 139, 139, 139, 139, 139, 139, 139, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 141, 141, 141, 141, 141, 141, 141, 141, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 143, 143, 143, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 146, 147, 147, 147, 147, 147, 147, 147, 147, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 151, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 155, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 157, 157, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 160, 160, 160, 160, 160, 160, 160, 160, 160, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 164, 164, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165 ]
[ 1, 7, 14, 17, 20, 1, 7, 10, 16, 19, 22, 1, 7, 13, 16, 19, 1, 7, 11, 1, 7, 15, 1, 5, 10, 17, 18, 23, 30, 35, 36, 38, 43, 1, 7, 9, 11, 13, 1, 1, 6, 9, 12, 18, 19, 25, 27, 4, 8, 11, 15, 18, 22, 23, 29, 30, 35, 36, 40, 41, 46, 47, 54, 55, 60, 62, 8, 13, 14, 19, 21, 27, 8, 13, 14, 18, 19, 23, 25, 30, 31, 35, 8, 13, 14, 18, 20, 25, 8, 13, 14, 20, 21, 26, 28, 35, 36, 41, 1, 1, 4, 9, 10, 14, 15, 23, 24, 29, 30, 37, 38, 41, 43, 47, 48, 49, 51, 4, 8, 4, 13, 15, 20, 25, 29, 31, 33, 36, 39, 41, 48, 58, 4, 10, 14, 17, 22, 32, 33, 37, 38, 44, 45, 54, 4, 10, 15, 22, 24, 34, 39, 41, 46, 51, 53, 55, 58, 60, 62, 66, 68, 72, 73, 82, 83, 4, 7, 9, 13, 16, 20, 27, 30, 32, 40, 48, 4, 10, 14, 19, 22, 26, 31, 35, 40, 41, 52, 58, 59, 4, 10, 15, 22, 24, 34, 39, 41, 45, 47, 49, 54, 59, 61, 63, 66, 68, 70, 73, 74, 77, 78, 83, 85, 87, 93, 94, 4, 8, 4, 9, 10, 14, 16, 21, 22, 24, 29, 30, 38, 39, 4, 12, 13, 17, 19, 23, 26, 29, 34, 39, 45, 46, 50, 51, 55, 57, 4, 8, 9, 8, 11, 16, 17, 21, 22, 32, 34, 37, 39, 41, 44, 47, 12, 19, 25, 26, 29, 31, 33, 36, 37, 45, 46, 51, 52, 56, 57, 62, 63, 70, 71, 74, 76, 80, 81, 83, 85, 89, 90, 8, 13, 18, 19, 23, 26, 28, 32, 36, 39, 41, 12, 19, 25, 26, 30, 34, 37, 38, 46, 47, 52, 53, 60, 61, 8, 13, 18, 19, 23, 26, 28, 31, 32, 34, 36, 38, 12, 19, 25, 26, 29, 30, 32, 34, 35, 43, 44, 49, 50, 57, 58, 4, 11, 21, 22, 8, 12, 13, 19, 20, 25, 28, 29, 30, 31, 32, 33, 38, 43, 46, 50, 61, 63, 64, 66, 72, 73, 81, 83, 8, 12, 13, 19, 20, 25, 28, 29, 30, 31, 32, 33, 41, 47, 49, 50, 52, 8, 14, 1, 1, 4, 10, 11, 14, 16, 18, 21, 22, 30, 31, 36, 37, 41, 42, 47, 48, 55, 56, 59, 61, 65, 66, 67, 69, 4, 10, 12, 15, 16, 20, 21, 24, 25, 33, 34, 38, 41, 42, 44, 4, 7, 9, 12, 13, 15, 21, 22, 27, 28, 34, 35, 42, 45, 50, 52, 54, 59, 61, 63, 68, 73, 75, 77, 82, 87, 89, 91, 94, 96, 98, 101, 103, 105, 108, 111, 113, 115, 121, 123, 125, 4, 12, 13, 17, 19, 23, 27, 32, 35, 37, 47, 50, 4, 7, 14, 15, 8, 11, 13, 16, 17, 23, 24, 29, 34, 35, 42, 43, 48, 50, 57, 58, 61, 62, 4, 8, 9, 8, 11, 12, 15, 17, 20, 21, 26, 27, 29, 30, 34, 37, 39, 40, 42, 47, 49, 51, 54, 56, 58, 62, 63, 67, 68, 69, 71, 4, 11, 20, 21, 8, 12, 13, 19, 20, 25, 28, 29, 30, 31, 32, 33, 40, 48, 52, 54, 56, 59, 64, 67, 69, 70, 72, 78, 79, 87, 89, 8, 12, 13, 19, 20, 25, 27, 32, 35, 38, 43, 49, 53, 56, 62, 65, 70, 79, 86, 88, 89, 91, 8, 12, 13, 19, 20, 25, 28, 29, 30, 31, 32, 33, 41, 47, 49, 50, 52, 8, 14, 4, 10, 12, 15, 16, 18, 4, 7, 12, 13, 17, 20, 23, 26, 28, 30, 33, 34, 38, 40, 42, 45, 47, 49, 52, 53, 58, 59, 62, 8, 14, 16, 22, 23, 27, 28, 12, 20, 22, 16, 18, 23, 25, 16, 18, 21, 23, 16, 18, 21, 22, 25, 26, 30, 32, 36, 38, 16, 18, 21, 22, 25, 26, 28, 32, 34, 38, 40, 16, 18, 21, 22, 29, 30, 33, 37, 39, 16, 18, 21, 22, 25, 28, 30, 16, 18, 26, 28, 12, 14, 8, 10, 8, 15, 18, 21, 27, 28, 12, 18, 19, 24, 25, 29, 30, 36, 39, 43, 44, 48, 50, 52, 55, 59, 64, 65, 69, 70, 74, 75, 79, 80, 85, 86, 90, 91, 98, 99, 104, 105, 108, 109, 114, 115, 8, 10, 4, 7, 12, 13, 17, 20, 22, 25, 27, 29, 32, 33, 37, 39, 8, 15, 16, 21, 23, 29, 30, 36, 37, 42, 8, 14, 16, 22, 23, 27, 28, 12, 20, 23, 28, 30, 32, 35, 37, 39, 42, 43, 46, 49, 50, 52, 53, 58, 60, 62, 68, 69, 74, 76, 78, 84, 85, 90, 91, 95, 97, 101, 103, 105, 110, 111, 119, 121, 8, 10, 8, 15, 18, 21, 27, 28, 12, 18, 19, 24, 25, 29, 30, 36, 38, 41, 44, 51, 53, 56, 59, 63, 66, 73, 74, 80, 81, 83, 85, 89, 90, 97, 98, 102, 104, 108, 111, 12, 17, 18, 22, 23, 27, 28, 32, 33, 12, 17, 18, 22, 23, 12, 19, 20, 25, 26, 32, 33, 38, 39, 42, 45, 8, 10, 1, 1, 4, 10, 11, 15, 19, 22, 23, 31, 32, 37, 38, 45, 47, 4, 8, 13, 17, 20, 21, 28, 29, 31, 32, 40, 41, 47, 49, 8, 11, 18, 21, 24, 27, 29, 31, 34, 35, 37, 40, 12, 19, 24, 8, 13, 20, 21, 29, 31, 32, 37, 38, 45, 46, 47, 49, 52, 59, 60, 68, 70, 71, 76, 79, 12, 19, 24, 8, 13, 14, 12, 19, 25, 4, 10, 12, 15, 16, 20, 21, 24, 25, 33, 34, 38, 41, 42, 44, 48, 52, 53, 57, 61, 64, 65, 72, 73, 75, 76, 84, 85, 4, 7, 14, 15, 8, 14, 16, 22, 23, 28, 30, 33, 34, 36, 38, 41, 48, 49, 54, 59, 60, 4, 11, 14, 17, 23, 24, 8, 14, 15, 20, 21, 25, 26, 32, 34, 37, 40, 46, 49, 52, 54, 61, 62, 65, 67, 74, 75, 80, 81, 85, 87, 91, 92, 99, 101, 104, 105, 107, 110, 114, 116, 117, 118, 119, 120, 122, 8, 13, 14, 18, 20, 24, 28, 31, 33, 8, 13, 14, 18, 19, 8, 15, 16, 21, 22, 25, 26, 31, 33, 4, 6, 1, 1, 4, 10, 11, 14, 15, 17, 19, 20, 28, 29, 34, 35, 42, 44, 4, 6, 9, 11, 13, 15, 17, 18, 27, 31, 32, 40, 41, 43, 45, 47, 4, 9, 11, 14, 4, 8, 13, 16, 18, 21, 22, 27, 28, 37, 38, 44, 45, 50, 55, 56, 62, 63, 69, 70, 75, 76, 80, 81, 87, 88, 91, 93, 8, 11, 15, 20, 21, 23, 24, 28, 34, 37, 41, 45, 50, 51, 53, 54, 63, 64, 12, 16, 17, 27, 28, 33, 34, 36, 40, 41, 49, 50, 59, 60, 69, 70, 74, 75, 12, 16, 20, 21, 26, 29, 33, 34, 43, 44, 49, 50, 52, 16, 19, 23, 26, 30, 35, 36, 20, 25, 26, 32, 34, 38, 39, 44, 45, 49, 50, 54, 57, 62, 63, 65, 66, 73, 78, 83, 87, 88, 93, 94, 98, 100, 4, 11, 14, 17, 23, 24, 8, 14, 15, 17, 18, 27, 28, 32, 33, 41, 44, 48, 49, 53, 55, 57, 63, 65, 67, 70, 72, 74, 81, 83, 85, 88, 91, 8, 10, 16, 17, 22, 25, 28, 30, 32, 40, 42, 44, 51, 53, 55, 60, 63, 8, 10, 14, 15, 21, 24, 28, 29, 33, 35, 37, 40, 44, 8, 13, 14, 18, 20, 23, 24, 26, 28, 30, 8, 13, 14, 18, 19, 8, 15, 16, 21, 22, 25, 26, 30, 32, 4, 6, 1, 1, 4, 8, 9, 17, 18, 27, 28, 37, 38, 42, 44, 4, 7, 12, 13, 16, 17, 20, 22, 24, 27, 8, 13, 16, 18, 23, 24, 27, 28, 31, 33, 35, 38, 43, 48, 49, 50, 52, 53, 54, 8, 11, 15, 18, 23, 26, 27, 12, 16, 17, 21, 23, 28, 29, 43, 46, 55, 59, 62, 72, 84, 87, 8, 13, 14, 18, 20, 25, 28, 29, 34, 37, 39, 8, 13, 15, 17, 19, 22, 23, 24, 25, 29, 31, 34, 39, 40, 43, 44, 47, 49, 51, 54, 59, 62, 65, 66, 69, 8, 22, 24, 27, 30, 31, 33, 34, 45, 46, 50, 51, 54, 55, 58, 60, 62, 65, 8, 18, 20, 23, 24, 27, 30, 31, 35, 37, 38, 40, 43, 44, 55, 57, 59, 60, 65, 66, 71, 72, 73, 75, 78, 79, 83, 84, 89, 90, 93, 94, 98, 100, 101, 103, 104, 105, 109, 115, 117, 120, 122, 8, 13, 14, 19, 21, 24, 25, 30, 32, 33, 37, 39, 40, 47, 50, 60, 61, 65, 66, 69, 70, 77, 78, 86, 89, 92, 99, 102, 107, 109, 8, 17, 18, 23, 25, 30, 31, 36, 37, 46, 47, 8, 12, 15, 17, 20, 21, 26, 27, 31, 32, 35, 36, 45, 46, 55, 56, 60, 61, 67, 68, 72, 74, 8, 11, 16, 17, 19, 20, 27, 28, 12, 16, 19, 21, 24, 25, 29, 31, 32, 35, 38, 39, 12, 26, 28, 42, 43, 46, 47, 48, 8, 15, 17, 21, 24, 25, 29, 32, 33, 41, 42, 47, 49, 63, 64, 4, 9, 10, 8, 15, 17, 21, 22, 24, 28, 30, 32, 36, 38, 1, 1, 4, 9, 10, 13, 14, 15, 17, 4, 8, 16, 21, 24, 30, 36, 40, 45, 50, 55, 60, 66, 71, 73, 77, 4, 11, 13, 14, 15, 18, 20, 21, 23, 25, 26, 27, 28, 32, 34, 37, 43, 44, 45, 47, 48, 49, 51, 1, 1, 4, 7, 10, 11, 13, 14, 25, 26, 30, 31, 32, 36, 37, 41, 42, 45, 46, 47, 48, 49, 52, 4, 11, 13, 16, 17, 20, 21, 22, 23, 25, 26, 27, 28, 29, 33, 35, 38, 43, 44, 45, 1, 1, 4, 8, 9, 13, 14, 18, 19, 25, 26, 31, 32, 38, 39, 46, 47, 50, 52, 56, 57, 58, 60, 4, 8, 4, 11, 14, 17, 23, 28, 33, 37, 43, 46, 50, 55, 58, 61, 67, 68, 73, 4, 9, 13, 16, 23, 33, 36, 40, 41, 4, 9, 12, 22, 29, 33, 40, 45, 46, 52, 4, 6, 10, 16, 20, 23, 25, 29, 31, 37, 39, 42, 47, 54, 4, 8, 4, 11, 13, 17, 18, 22, 23, 24, 25, 27, 28, 35, 36, 39, 41, 45, 46, 50, 52, 53, 55, 58, 62, 63, 67, 68, 74, 75, 80, 81, 87, 89 ]
6ee36994f63d64e35c4e76f65e9c4f09797a161e
class Node: def __init__(self, info): self.info = info self.left = None self.right = None self.level = None def __str__(self): return str(self.info) class BinarySearchTree: def __init__(self): self.root = None def create(self, val): if self.root == None: self.root = Node(val) else: current = self.root while True: if val < current.info: if current.left: current = current.left else: current.left = Node(val) break elif val > current.info: if current.right: current = current.right else: current.right = Node(val) break else: break # Enter your code here. Read input from STDIN. Print output to STDOUT """ class Node: def __init__(self,info): self.info = info self.left = None self.right = None // this is a node of the tree , which contains info as data, left , right Approach: 1. Find a path from the root to n1 and store it in a vector or array. 2. Find a path from the root to n2 and store it in another vector or array. 3. Traverse both paths till the values in arrays are the same. Return the common element just before the mismatch. """ # Time complexity: O(n) def lca(root, v1, v2): def find_path(r, p, n): if not r: return False # Append the root p.append(r) if r.info == n: return True # Check if k is found in left or right sub-tree if (r.left and find_path(r.left, p, n)) or (r.right and find_path(r.right, p, n)): return True # If not present in subtree rooted with root, remove # root from path and return False p.pop() return False p1 = [] p2 = [] if not find_path(root, p1, v1) or not find_path(root, p2, v2): return -1 i = 0 while i < len(p1) and i < len(p2): if p1[i].info != p2[i].info: break i += 1 return p1[i - 1] tree = BinarySearchTree()
[ 842, 4021, 63, 303, 684, 1176, 1683, 3232, 803, 49, 3116, 731, 310, 649, 51, 1357, 299, 3116, 310, 649, 51, 1892, 299, 1686, 310, 649, 51, 1009, 299, 1686, 310, 649, 51, 2675, 299, 1686, 465, 684, 1176, 484, 3232, 803, 731, 310, 461, 615, 45, 803, 51, 1357, 46, 499, 222, 842, 13318, 3209, 3371, 63, 303, 684, 1176, 1683, 3232, 803, 731, 310, 649, 51, 2405, 299, 1686, 465, 684, 1506, 45, 803, 49, 928, 731, 310, 434, 649, 51, 2405, 630, 1686, 63, 343, 649, 51, 2405, 299, 4021, 45, 718, 46, 310, 832, 63, 343, 1565, 299, 649, 51, 2405, 1083, 2236, 2969, 63, 419, 434, 928, 350, 1565, 51, 1357, 63, 547, 434, 1565, 51, 1892, 63, 733, 1565, 299, 1565, 51, 1892, 547, 832, 63, 733, 1565, 51, 1892, 299, 4021, 45, 718, 46, 733, 1644, 419, 4378, 928, 868, 1565, 51, 1357, 63, 547, 434, 1565, 51, 1009, 63, 733, 1565, 299, 1565, 51, 1009, 547, 832, 63, 733, 1565, 51, 1009, 299, 4021, 45, 718, 46, 733, 1644, 419, 832, 63, 547, 1644, 499, 222, 40, 11426, 1390, 1361, 2464, 51, 4858, 1533, 664, 10978, 540, 51, 9232, 1716, 391, 3860, 24951, 222, 3012, 222, 842, 4021, 63, 416, 684, 1176, 1683, 3232, 803, 49, 1357, 731, 13523, 649, 51, 1357, 299, 3116, 43407, 649, 51, 1892, 299, 1686, 43407, 649, 51, 1009, 299, 1686, 4310, 14658, 453, 477, 458, 331, 1560, 451, 341, 4369, 1737, 1532, 4326, 3116, 641, 727, 49, 2859, 1737, 2109, 310, 222, 10095, 886, 63, 222, 54, 51, 7499, 331, 1536, 664, 341, 3070, 391, 329, 54, 480, 2989, 580, 347, 331, 4065, 575, 1437, 51, 1676, 55, 51, 7499, 331, 1536, 664, 341, 3070, 391, 329, 55, 480, 2989, 580, 347, 4691, 4065, 575, 1437, 51, 1676, 56, 51, 21671, 3590, 4354, 7854, 12435, 341, 2102, 347, 12146, 904, 341, 2454, 51, 2762, 341, 4959, 2016, 2277, 2688, 341, 22367, 51, 244, 222, 3012, 222, 40, 3734, 23026, 63, 565, 45, 115, 46, 499, 222, 610, 475, 1192, 45, 2405, 49, 373, 54, 49, 373, 55, 731, 303, 684, 2309, 100, 1005, 45, 119, 49, 317, 49, 329, 731, 310, 434, 666, 559, 63, 343, 461, 3208, 310, 607, 20607, 341, 3070, 310, 317, 51, 1713, 45, 119, 46, 603, 434, 559, 51, 1357, 630, 329, 63, 343, 461, 2969, 603, 607, 3471, 434, 851, 458, 2448, 347, 2859, 575, 2109, 1381, 50, 3266, 310, 434, 327, 119, 51, 1892, 480, 2309, 100, 1005, 45, 119, 51, 1892, 49, 317, 49, 329, 509, 575, 327, 119, 51, 1009, 480, 2309, 100, 1005, 45, 119, 51, 1009, 49, 317, 49, 329, 8485, 343, 461, 2969, 603, 607, 1691, 666, 5041, 347, 37251, 3070, 337, 642, 3070, 49, 3365, 310, 607, 3070, 664, 1536, 480, 461, 3208, 603, 317, 51, 3254, 365, 310, 461, 3208, 465, 317, 54, 299, 1627, 303, 317, 55, 299, 1627, 465, 434, 666, 2309, 100, 1005, 45, 2405, 49, 317, 54, 49, 373, 54, 46, 575, 666, 2309, 100, 1005, 45, 2405, 49, 317, 55, 49, 373, 55, 731, 310, 461, 449, 54, 465, 613, 299, 244, 53, 303, 2236, 613, 350, 2095, 45, 117, 54, 46, 480, 613, 350, 2095, 45, 117, 55, 731, 310, 434, 317, 54, 96, 110, 1015, 1357, 882, 317, 55, 96, 110, 1015, 1357, 63, 343, 1644, 310, 613, 1475, 244, 54, 465, 461, 317, 54, 96, 110, 449, 244, 54, 98, 499, 222, 3266, 299, 13318, 3209, 3371, 365, 222 ]
[ "class", "ĠNode", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġinfo", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "info", "Ġ=", "Ġinfo", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "left", "Ġ=", "ĠNone", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "right", "Ġ=", "ĠNone", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "level", "Ġ=", "ĠNone", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "str", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġstr", "(", "self", ".", "info", ")", "ĊĊ", "Ċ", "class", "ĠBinary", "Search", "Tree", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "root", "Ġ=", "ĠNone", "ĊĊĠĠĠ", "Ġdef", "Ġcreate", "(", "self", ",", "Ġval", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "root", "Ġ==", "ĠNone", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "root", "Ġ=", "ĠNode", "(", "val", ")", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcurrent", "Ġ=", "Ġself", ".", "root", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġwhile", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġval", "Ġ<", "Ġcurrent", ".", "info", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġcurrent", ".", "left", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcurrent", "Ġ=", "Ġcurrent", ".", "left", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcurrent", ".", "left", "Ġ=", "ĠNode", "(", "val", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġbreak", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġval", "Ġ>", "Ġcurrent", ".", "info", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġcurrent", ".", "right", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcurrent", "Ġ=", "Ġcurrent", ".", "right", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcurrent", ".", "right", "Ġ=", "ĠNode", "(", "val", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġbreak", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġbreak", "ĊĊ", "Ċ", "#", "ĠEnter", "Ġyour", "Ġcode", "Ġhere", ".", "ĠRead", "Ġinput", "Ġfrom", "ĠSTD", "IN", ".", "ĠPrint", "Ġoutput", "Ġto", "ĠST", "DOUT", "Ċ", "\"\"\"", "Ċ", "class", "ĠNode", ":", "ĊĠĠĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "info", "):", "ĠĊĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "info", "Ġ=", "Ġinfo", "ĠĠĊĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "left", "Ġ=", "ĠNone", "ĠĠĊĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "right", "Ġ=", "ĠNone", "ĠĊĠĠĠĠĠĠĠĠĠĠĠ", "ĊĊĠĠĠĠĠĠ", "Ġ//", "Ġthis", "Ġis", "Ġa", "Ġnode", "Ġof", "Ġthe", "Ġtree", "Ġ,", "Ġwhich", "Ġcontains", "Ġinfo", "Ġas", "Ġdata", ",", "Ġleft", "Ġ,", "Ġright", "ĊĠĠĠĠĠĠĠ", "Ċ", "Appro", "ach", ":", "Ċ", "1", ".", "ĠFind", "Ġa", "Ġpath", "Ġfrom", "Ġthe", "Ġroot", "Ġto", "Ġn", "1", "Ġand", "Ġstore", "Ġit", "Ġin", "Ġa", "Ġvector", "Ġor", "Ġarray", ".", "ĠĊ", "2", ".", "ĠFind", "Ġa", "Ġpath", "Ġfrom", "Ġthe", "Ġroot", "Ġto", "Ġn", "2", "Ġand", "Ġstore", "Ġit", "Ġin", "Ġanother", "Ġvector", "Ġor", "Ġarray", ".", "ĠĊ", "3", ".", "ĠTra", "verse", "Ġboth", "Ġpaths", "Ġtill", "Ġthe", "Ġvalues", "Ġin", "Ġarrays", "Ġare", "Ġthe", "Ġsame", ".", "ĠReturn", "Ġthe", "Ġcommon", "Ġelement", "Ġjust", "Ġbefore", "Ġthe", "Ġmismatch", ".", "Ġ", "Ċ", "\"\"\"", "Ċ", "#", "ĠTime", "Ġcomplexity", ":", "ĠO", "(", "n", ")", "ĊĊ", "Ċ", "def", "Ġl", "ca", "(", "root", ",", "Ġv", "1", ",", "Ġv", "2", "):", "ĊĠĠĠ", "Ġdef", "Ġfind", "_", "path", "(", "r", ",", "Ġp", ",", "Ġn", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnot", "Ġr", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĠFalse", "ĊĠĠĠĠĠĠĠ", "Ġ#", "ĠAppend", "Ġthe", "Ġroot", "ĊĠĠĠĠĠĠĠ", "Ġp", ".", "append", "(", "r", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġr", ".", "info", "Ġ==", "Ġn", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĠTrue", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠCheck", "Ġif", "Ġk", "Ġis", "Ġfound", "Ġin", "Ġleft", "Ġor", "Ġright", "Ġsub", "-", "tree", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġ(", "r", ".", "left", "Ġand", "Ġfind", "_", "path", "(", "r", ".", "left", ",", "Ġp", ",", "Ġn", "))", "Ġor", "Ġ(", "r", ".", "right", "Ġand", "Ġfind", "_", "path", "(", "r", ".", "right", ",", "Ġp", ",", "Ġn", ")):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĠTrue", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠIf", "Ġnot", "Ġpresent", "Ġin", "Ġsubtree", "Ġroot", "ed", "Ġwith", "Ġroot", ",", "Ġremove", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġroot", "Ġfrom", "Ġpath", "Ġand", "Ġreturn", "ĠFalse", "ĊĊĠĠĠĠĠĠĠ", "Ġp", ".", "pop", "()", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "ĠFalse", "ĊĊĠĠĠ", "Ġp", "1", "Ġ=", "Ġ[]", "ĊĠĠĠ", "Ġp", "2", "Ġ=", "Ġ[]", "ĊĊĠĠĠ", "Ġif", "Ġnot", "Ġfind", "_", "path", "(", "root", ",", "Ġp", "1", ",", "Ġv", "1", ")", "Ġor", "Ġnot", "Ġfind", "_", "path", "(", "root", ",", "Ġp", "2", ",", "Ġv", "2", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ-", "1", "ĊĊĠĠĠ", "Ġi", "Ġ=", "Ġ", "0", "ĊĠĠĠ", "Ġwhile", "Ġi", "Ġ<", "Ġlen", "(", "p", "1", ")", "Ġand", "Ġi", "Ġ<", "Ġlen", "(", "p", "2", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġp", "1", "[", "i", "].", "info", "Ġ!=", "Ġp", "2", "[", "i", "].", "info", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġbreak", "ĊĠĠĠĠĠĠĠ", "Ġi", "Ġ+=", "Ġ", "1", "ĊĊĠĠĠ", "Ġreturn", "Ġp", "1", "[", "i", "Ġ-", "Ġ", "1", "]", "ĊĊ", "Ċ", "tree", "Ġ=", "ĠBinary", "Search", "Tree", "()", "Ċ" ]
[ 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 20, 20, 20, 20, 20, 20, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 35, 35, 35, 36, 36, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 46, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 61, 61, 61, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 75, 75, 75, 75, 75, 76, 76, 76, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 88, 88, 88, 88, 88, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 92, 93, 93, 93, 93, 93, 93, 93 ]
[ 1, 6, 11, 12, 4, 8, 11, 15, 18, 22, 23, 28, 30, 8, 13, 14, 18, 20, 25, 8, 13, 14, 18, 20, 25, 8, 13, 14, 19, 21, 26, 8, 13, 14, 19, 21, 26, 4, 8, 11, 14, 17, 21, 23, 8, 15, 19, 20, 24, 25, 29, 30, 1, 1, 6, 13, 19, 23, 24, 4, 8, 11, 15, 18, 22, 24, 8, 13, 14, 18, 20, 25, 4, 8, 15, 16, 20, 21, 25, 27, 8, 11, 16, 17, 21, 24, 29, 30, 12, 17, 18, 22, 24, 29, 30, 33, 34, 8, 13, 14, 12, 20, 22, 27, 28, 32, 12, 18, 23, 24, 16, 19, 23, 25, 33, 34, 38, 39, 20, 23, 31, 32, 36, 37, 24, 32, 34, 42, 43, 47, 20, 25, 26, 24, 32, 33, 37, 39, 44, 45, 48, 49, 24, 30, 16, 21, 25, 27, 35, 36, 40, 41, 20, 23, 31, 32, 37, 38, 24, 32, 34, 42, 43, 48, 20, 25, 26, 24, 32, 33, 38, 40, 45, 46, 49, 50, 24, 30, 16, 21, 22, 20, 26, 1, 1, 2, 8, 13, 18, 23, 24, 29, 35, 40, 44, 46, 47, 53, 60, 63, 66, 70, 1, 4, 1, 6, 11, 12, 6, 10, 13, 17, 20, 24, 25, 29, 31, 10, 15, 16, 20, 22, 27, 10, 15, 16, 20, 22, 27, 10, 15, 16, 21, 23, 28, 12, 7, 10, 15, 18, 20, 25, 28, 32, 37, 39, 45, 54, 59, 62, 67, 68, 73, 75, 81, 8, 1, 6, 9, 10, 1, 2, 3, 8, 10, 15, 20, 24, 29, 32, 34, 35, 39, 45, 48, 51, 53, 60, 63, 69, 70, 1, 2, 3, 8, 10, 15, 20, 24, 29, 32, 34, 35, 39, 45, 48, 51, 59, 66, 69, 75, 76, 1, 2, 3, 7, 12, 17, 23, 28, 32, 39, 42, 49, 53, 57, 62, 63, 70, 74, 81, 89, 94, 101, 105, 114, 115, 116, 1, 4, 1, 2, 7, 18, 19, 21, 22, 23, 24, 1, 1, 4, 6, 8, 9, 13, 14, 16, 17, 18, 20, 21, 23, 4, 8, 13, 14, 18, 19, 20, 21, 23, 24, 26, 28, 8, 11, 15, 17, 18, 12, 19, 25, 8, 10, 17, 21, 26, 8, 10, 11, 17, 18, 19, 20, 8, 11, 13, 14, 18, 21, 23, 24, 12, 19, 24, 8, 10, 16, 19, 21, 24, 30, 33, 38, 41, 47, 51, 52, 56, 8, 11, 13, 14, 15, 19, 23, 28, 29, 33, 34, 35, 36, 40, 41, 43, 44, 46, 48, 51, 53, 54, 55, 60, 64, 69, 70, 74, 75, 76, 77, 82, 83, 85, 86, 88, 91, 12, 19, 24, 8, 10, 13, 17, 25, 28, 36, 41, 43, 48, 53, 54, 61, 8, 10, 15, 20, 25, 29, 36, 42, 8, 10, 11, 14, 16, 8, 15, 21, 4, 6, 7, 9, 12, 4, 6, 7, 9, 12, 4, 7, 11, 16, 17, 21, 22, 26, 27, 29, 30, 31, 33, 34, 35, 38, 42, 47, 48, 52, 53, 57, 58, 60, 61, 62, 64, 65, 67, 8, 15, 17, 18, 4, 6, 8, 9, 10, 4, 10, 12, 14, 18, 19, 20, 21, 22, 26, 28, 30, 34, 35, 36, 37, 39, 8, 11, 13, 14, 15, 16, 18, 22, 25, 27, 28, 29, 30, 32, 36, 37, 12, 18, 8, 10, 13, 14, 15, 4, 11, 13, 14, 15, 16, 18, 19, 20, 21, 1, 1, 5, 7, 14, 20, 24, 26 ]
207b6e56b683c0b069c531a4c6076c2822814390
file = open("yo.txt", "wr") file.write("Yo")
[ 781, 299, 2177, 459, 11404, 51, 2787, 411, 332, 7024, 678, 222, 222, 781, 51, 1838, 459, 26482, 678, 222 ]
[ "file", "Ġ=", "Ġopen", "(\"", "yo", ".", "txt", "\",", "Ġ\"", "wr", "\")", "Ċ", "Ċ", "file", ".", "write", "(\"", "Yo", "\")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3 ]
[ 1, 5, 7, 12, 14, 16, 17, 20, 22, 24, 26, 28, 1, 1, 5, 6, 11, 13, 15, 17 ]
e6af221f1d6397d0fc52671cdd27d43549d0aecb
__author__ = "jjpr" import pyrr import barleycorn as bc def test_xyz123(): cone_x = bc.primitives.Cone(1.0, 1.0)
[ 523, 2133, 523, 299, 332, 15515, 796, 39, 222, 222, 485, 3643, 609, 222, 485, 5710, 8345, 48400, 641, 17740, 499, 222, 610, 913, 100, 11482, 54, 55, 56, 2284, 303, 476, 106, 100, 125, 299, 17740, 51, 31101, 51, 628, 106, 45, 54, 51, 53, 49, 244, 54, 51, 53, 46, 222 ]
[ "__", "author", "__", "Ġ=", "Ġ\"", "jj", "pr", "\"", "Ċ", "Ċ", "import", "Ġpy", "rr", "Ċ", "import", "Ġbar", "ley", "corn", "Ġas", "Ġbc", "ĊĊ", "Ċ", "def", "Ġtest", "_", "xyz", "1", "2", "3", "():", "ĊĠĠĠ", "Ġcon", "e", "_", "x", "Ġ=", "Ġbc", ".", "primitives", ".", "Con", "e", "(", "1", ".", "0", ",", "Ġ", "1", ".", "0", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8 ]
[ 1, 3, 9, 11, 13, 15, 17, 19, 20, 1, 1, 7, 10, 12, 1, 7, 11, 14, 18, 21, 24, 1, 1, 4, 9, 10, 13, 14, 15, 16, 19, 4, 8, 9, 10, 11, 13, 16, 17, 27, 28, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42 ]
ce75c23c6b0862dde797225f53c900b4ebc56428
from bbdd import * def usuario(): global usser usser = input("Introduce un usuario : ") if len(usser) < 5 or len(usser) > 15: print("El usuario debe tener entre 5 y 15 caracteres") usuario() elif usser.isalnum() == False: print("Los valores del usurio deben ser únicamente letras o números") usuario() else: print(True) def contraseña(): global passw passw = input("Introduce contraseña: ") if len(passw) <= 9: print("La contraseña debe tener al menos 10 caractéres") contraseña() elif passw.isalnum() == True: print("La contraseña debe tener al menos un carácter no alfanumérico") contraseña() elif passw.lower() == passw: print("Debe haber por lo menos una mayúscula") contraseña() elif passw.upper() == passw: print("Debe haber por lo menos una minúscula") contraseña() for i in passw: if i == " ": print("La contraseña no debe tener espacios en blanco") contraseña() print(True)
[ 1097, 18560, 601, 1220, 338, 499, 222, 610, 17830, 2284, 303, 3671, 1790, 528, 303, 1790, 528, 299, 1533, 459, 16038, 4092, 725, 17830, 518, 7816, 303, 434, 2095, 45, 371, 528, 46, 350, 244, 58, 575, 2095, 45, 371, 528, 46, 868, 244, 54, 58, 63, 310, 1489, 459, 5467, 17830, 29548, 43635, 17939, 244, 58, 553, 244, 54, 58, 36378, 678, 310, 17830, 365, 303, 4378, 1790, 528, 51, 316, 298, 1538, 365, 630, 3208, 63, 310, 1489, 459, 30230, 26065, 3579, 1790, 324, 735, 428, 10596, 1124, 13482, 16057, 12030, 1018, 10758, 356, 329, 7612, 2322, 519, 678, 310, 17830, 365, 303, 832, 63, 310, 1489, 45, 1844, 46, 499, 222, 610, 12603, 40423, 2284, 303, 3671, 3119, 124, 303, 3119, 124, 299, 1533, 459, 16038, 4092, 12603, 40423, 63, 7816, 303, 434, 2095, 45, 4634, 124, 46, 2527, 244, 62, 63, 310, 1489, 459, 7411, 12603, 40423, 29548, 43635, 763, 45400, 244, 54, 53, 6378, 555, 1329, 595, 678, 310, 12603, 40423, 365, 303, 4378, 3119, 124, 51, 316, 298, 1538, 365, 630, 2969, 63, 310, 1489, 459, 7411, 12603, 40423, 29548, 43635, 763, 45400, 725, 6378, 1597, 307, 284, 1307, 763, 20322, 397, 1329, 3953, 116, 678, 310, 12603, 40423, 365, 303, 4378, 3119, 124, 51, 5773, 365, 630, 3119, 124, 63, 310, 1489, 459, 703, 883, 22846, 284, 7673, 617, 45400, 7606, 1648, 7612, 564, 6278, 678, 310, 12603, 40423, 365, 303, 4378, 3119, 124, 51, 7647, 365, 630, 3119, 124, 63, 310, 1489, 459, 703, 883, 22846, 284, 7673, 617, 45400, 7606, 1865, 7612, 564, 6278, 678, 310, 12603, 40423, 365, 465, 456, 613, 347, 3119, 124, 63, 310, 434, 613, 630, 332, 10697, 343, 1489, 459, 7411, 12603, 40423, 1307, 29548, 43635, 2834, 18763, 3963, 949, 3162, 15460, 678, 343, 12603, 40423, 365, 303, 1489, 45, 1844, 46, 222 ]
[ "from", "Ġbb", "dd", "Ġimport", "Ġ*", "ĊĊ", "Ċ", "def", "Ġusuario", "():", "ĊĠĠĠ", "Ġglobal", "Ġus", "ser", "ĊĠĠĠ", "Ġus", "ser", "Ġ=", "Ġinput", "(\"", "Intro", "duce", "Ġun", "Ġusuario", "Ġ:", "Ġ\")", "ĊĠĠĠ", "Ġif", "Ġlen", "(", "us", "ser", ")", "Ġ<", "Ġ", "5", "Ġor", "Ġlen", "(", "us", "ser", ")", "Ġ>", "Ġ", "1", "5", ":", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "El", "Ġusuario", "Ġdebe", "Ġtener", "Ġentre", "Ġ", "5", "Ġy", "Ġ", "1", "5", "Ġcaracteres", "\")", "ĊĠĠĠĠĠĠĠ", "Ġusuario", "()", "ĊĠĠĠ", "Ġelif", "Ġus", "ser", ".", "is", "al", "num", "()", "Ġ==", "ĠFalse", ":", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "Los", "Ġvalores", "Ġdel", "Ġus", "ur", "io", "Ġde", "ben", "Ġser", "Ġú", "nic", "amente", "Ġle", "tras", "Ġo", "Ġn", "ú", "mer", "os", "\")", "ĊĠĠĠĠĠĠĠ", "Ġusuario", "()", "ĊĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "True", ")", "ĊĊ", "Ċ", "def", "Ġcontr", "aseña", "():", "ĊĠĠĠ", "Ġglobal", "Ġpass", "w", "ĊĠĠĠ", "Ġpass", "w", "Ġ=", "Ġinput", "(\"", "Intro", "duce", "Ġcontr", "aseña", ":", "Ġ\")", "ĊĠĠĠ", "Ġif", "Ġlen", "(", "pass", "w", ")", "Ġ<=", "Ġ", "9", ":", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "La", "Ġcontr", "aseña", "Ġdebe", "Ġtener", "Ġal", "Ġmenos", "Ġ", "1", "0", "Ġcar", "act", "é", "res", "\")", "ĊĠĠĠĠĠĠĠ", "Ġcontr", "aseña", "()", "ĊĠĠĠ", "Ġelif", "Ġpass", "w", ".", "is", "al", "num", "()", "Ġ==", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "La", "Ġcontr", "aseña", "Ġdebe", "Ġtener", "Ġal", "Ġmenos", "Ġun", "Ġcar", "á", "ct", "er", "Ġno", "Ġal", "fan", "um", "é", "ric", "o", "\")", "ĊĠĠĠĠĠĠĠ", "Ġcontr", "aseña", "()", "ĊĠĠĠ", "Ġelif", "Ġpass", "w", ".", "lower", "()", "Ġ==", "Ġpass", "w", ":", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "De", "be", "Ġhab", "er", "Ġpor", "Ġlo", "Ġmenos", "Ġuna", "Ġmay", "ú", "sc", "ula", "\")", "ĊĠĠĠĠĠĠĠ", "Ġcontr", "aseña", "()", "ĊĠĠĠ", "Ġelif", "Ġpass", "w", ".", "upper", "()", "Ġ==", "Ġpass", "w", ":", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "De", "be", "Ġhab", "er", "Ġpor", "Ġlo", "Ġmenos", "Ġuna", "Ġmin", "ú", "sc", "ula", "\")", "ĊĠĠĠĠĠĠĠ", "Ġcontr", "aseña", "()", "ĊĊĠĠĠ", "Ġfor", "Ġi", "Ġin", "Ġpass", "w", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġi", "Ġ==", "Ġ\"", "Ġ\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "La", "Ġcontr", "aseña", "Ġno", "Ġdebe", "Ġtener", "Ġes", "pac", "ios", "Ġen", "Ġbl", "anco", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontr", "aseña", "()", "ĊĠĠĠ", "Ġprint", "(", "True", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13, 13, 14, 14, 14, 14, 14, 16, 17, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 37, 37, 37, 37, 37 ]
[ 1, 5, 8, 10, 17, 19, 1, 1, 4, 12, 15, 4, 11, 14, 17, 4, 7, 10, 12, 18, 20, 25, 29, 32, 40, 42, 45, 4, 7, 11, 12, 14, 17, 18, 20, 21, 22, 25, 29, 30, 32, 35, 36, 38, 39, 40, 41, 42, 8, 14, 16, 18, 26, 31, 37, 43, 44, 45, 47, 48, 49, 50, 61, 63, 8, 16, 18, 4, 9, 12, 15, 16, 18, 20, 23, 25, 28, 34, 35, 8, 14, 16, 19, 27, 31, 34, 36, 38, 41, 44, 48, 50, 53, 59, 62, 66, 68, 70, 71, 74, 76, 78, 8, 16, 18, 4, 9, 10, 8, 14, 15, 19, 20, 1, 1, 4, 10, 15, 18, 4, 11, 16, 17, 4, 9, 10, 12, 18, 20, 25, 29, 35, 40, 41, 44, 4, 7, 11, 12, 16, 17, 18, 21, 22, 23, 24, 8, 14, 16, 18, 24, 29, 34, 40, 43, 49, 50, 51, 52, 56, 59, 60, 63, 65, 8, 14, 19, 21, 4, 9, 14, 15, 16, 18, 20, 23, 25, 28, 33, 34, 8, 14, 16, 18, 24, 29, 34, 40, 43, 49, 52, 56, 57, 59, 61, 64, 67, 70, 72, 73, 76, 77, 79, 8, 14, 19, 21, 4, 9, 14, 15, 16, 21, 23, 26, 31, 32, 33, 8, 14, 16, 18, 20, 24, 26, 30, 33, 39, 43, 47, 48, 50, 53, 55, 8, 14, 19, 21, 4, 9, 14, 15, 16, 21, 23, 26, 31, 32, 33, 8, 14, 16, 18, 20, 24, 26, 30, 33, 39, 43, 47, 48, 50, 53, 55, 8, 14, 19, 21, 4, 8, 10, 13, 18, 19, 20, 8, 11, 13, 16, 18, 21, 12, 18, 20, 22, 28, 33, 36, 41, 47, 50, 53, 56, 59, 62, 66, 68, 12, 18, 23, 25, 4, 10, 11, 15, 16 ]
345967e2aeafda6ce30cbbbbacf976c97b17def7
myDict = {"Friends": ["AP", "Soham", "Baba"], "Likes": ["Math", "Programming"], "languages": ["C++", "Python", "Java"]} myInt = 123 myFloat = 12.3333 myName = "Somesh Thakur"
[ 1791, 7205, 299, 3479, 32272, 582, 3059, 1910, 411, 332, 4185, 11809, 411, 332, 71, 11635, 3461, 332, 27703, 326, 582, 3059, 5728, 411, 332, 23538, 3461, 332, 11870, 582, 3059, 72, 1065, 411, 332, 8378, 411, 332, 5445, 35049, 222, 1791, 1438, 299, 244, 54, 55, 56, 222, 1791, 3690, 299, 244, 54, 55, 51, 56, 56, 56, 56, 222, 1791, 577, 299, 332, 7313, 635, 967, 793, 324, 39, 222 ]
[ "my", "Dict", "Ġ=", "Ġ{\"", "Friends", "\":", "Ġ[\"", "AP", "\",", "Ġ\"", "So", "ham", "\",", "Ġ\"", "B", "aba", "\"],", "Ġ\"", "Lik", "es", "\":", "Ġ[\"", "Math", "\",", "Ġ\"", "Programming", "\"],", "Ġ\"", "languages", "\":", "Ġ[\"", "C", "++", "\",", "Ġ\"", "Python", "\",", "Ġ\"", "Java", "\"]}", "Ċ", "my", "Int", "Ġ=", "Ġ", "1", "2", "3", "Ċ", "my", "Float", "Ġ=", "Ġ", "1", "2", ".", "3", "3", "3", "3", "Ċ", "my", "Name", "Ġ=", "Ġ\"", "Some", "sh", "ĠTh", "ak", "ur", "\"", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 ]
[ 1, 3, 7, 9, 12, 19, 21, 24, 26, 28, 30, 32, 35, 37, 39, 40, 43, 46, 48, 51, 53, 55, 58, 62, 64, 66, 77, 80, 82, 91, 93, 96, 97, 99, 101, 103, 109, 111, 113, 117, 120, 1, 3, 6, 8, 9, 10, 11, 12, 1, 3, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1, 3, 7, 9, 11, 15, 17, 20, 22, 24, 25 ]
f70f66926b9e2bf8b387d481263493d7f4c65397
""" " articulo cliente venta ventadet """ class Articulo: def __init__(self, cod, des, pre, stoc): self.codigo = cod self.descripcion = des self.precio = pre self.stock = stoc class ventaDetalle: def __init__(self, pro, pre, cant): self.producto = pro self.precio = pre self.cantidad = cant
[ 3012, 332, 222, 521, 20172, 222, 21274, 222, 18085, 222, 672, 1546, 121, 222, 3012, 499, 222, 842, 9134, 20172, 63, 303, 684, 1176, 1683, 3232, 803, 49, 7075, 49, 3993, 49, 1426, 49, 395, 561, 731, 310, 649, 51, 25782, 299, 7075, 310, 649, 51, 29268, 299, 3993, 310, 649, 51, 31494, 299, 1426, 310, 649, 51, 9773, 299, 395, 561, 499, 222, 842, 373, 12013, 8877, 63, 303, 684, 1176, 1683, 3232, 803, 49, 552, 49, 1426, 49, 35201, 731, 310, 649, 51, 22625, 299, 552, 310, 649, 51, 31494, 299, 1426, 310, 649, 51, 32663, 299, 35201, 222 ]
[ "\"\"\"", "Ġ\"", "Ċ", "art", "iculo", "Ċ", "cliente", "Ċ", "venta", "Ċ", "vent", "ade", "t", "Ċ", "\"\"\"", "ĊĊ", "Ċ", "class", "ĠArt", "iculo", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġcod", ",", "Ġdes", ",", "Ġpre", ",", "Ġst", "oc", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "codigo", "Ġ=", "Ġcod", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "descripcion", "Ġ=", "Ġdes", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "precio", "Ġ=", "Ġpre", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "stock", "Ġ=", "Ġst", "oc", "ĊĊ", "Ċ", "class", "Ġv", "enta", "Detalle", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġpro", ",", "Ġpre", ",", "Ġcant", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "producto", "Ġ=", "Ġpro", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "precio", "Ġ=", "Ġpre", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "cantidad", "Ġ=", "Ġcant", "Ċ" ]
[ 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 16, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21 ]
[ 1, 4, 6, 1, 4, 9, 1, 8, 1, 6, 1, 5, 8, 9, 1, 4, 1, 1, 6, 10, 15, 16, 4, 8, 11, 15, 18, 22, 23, 27, 28, 32, 33, 37, 38, 41, 43, 45, 8, 13, 14, 20, 22, 26, 8, 13, 14, 25, 27, 31, 8, 13, 14, 20, 22, 26, 8, 13, 14, 19, 21, 24, 26, 1, 1, 6, 8, 12, 19, 20, 4, 8, 11, 15, 18, 22, 23, 27, 28, 32, 33, 38, 40, 8, 13, 14, 22, 24, 28, 8, 13, 14, 20, 22, 26, 8, 13, 14, 22, 24, 29 ]
b8fcd8e6dce8d210576bc4166dd258e5fd51278d
""" This module contains the logic to resolve the head-tail orientation of a predicted video time series. """ import logging import numpy as np import numpy.ma as ma from wormpose.pose.distance_metrics import angle_distance, skeleton_distance from wormpose.pose.results_datatypes import ( BaseResults, ShuffledResults, OriginalResults, ) logging.basicConfig() logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) # threshold to compare neighbor frames theta, to be considered continuous and belong to the same segment CONTINUOUS_ANGLES_DIST_THRESHOLD = np.deg2rad(30) # we consider frames to be part of the same segment if they are maximum this amount of seconds apart # (and satisfy the distance threshold) CONTINOUS_SEGMENT_TIME_WINDOW_SEC = 0.2 # discard too small segments less than this amount of seconds MIN_SEGMENT_SIZE_SEC = 0.2 # don't align isolated segments that are more than this amount of seconds apart from aligned segments MAXIMUM_GAP_ALLOWED_WITH_ADJACENT_SEGMENT_SEC = 1 def _init_partitioned_series(shuffled_series: np.ndarray): return ma.masked_all_like(shuffled_series) def _set_partition(partitioned_series, shuffled_series, frame_index: int, partition: int): partitioned_series[frame_index][0] = shuffled_series[frame_index, partition] partitioned_series[frame_index][1] = shuffled_series[frame_index, 1 - partition] class _PartitionedResults(BaseResults): def __init__(self, shuffled_results: ShuffledResults): self.cur_partition = -1 self.partitions = ma.masked_all((len(shuffled_results),), dtype=int) self._shuffled_results = shuffled_results theta = _init_partitioned_series(shuffled_results.theta) skeletons = _init_partitioned_series(shuffled_results.skeletons) scores = _init_partitioned_series(shuffled_results.scores) super().__init__(theta=theta, skeletons=skeletons, scores=scores) def mask(self, indices): self.theta.mask[indices] = True self.skeletons.mask[indices] = True self.scores.mask[indices] = True self.partitions.mask[indices] = True def set_partition(self, frame_index: int, partition: int, new_partition: bool = False): if new_partition: self.cur_partition += 1 _set_partition(self.theta, self._shuffled_results.theta, frame_index, partition) _set_partition(self.skeletons, self._shuffled_results.skeletons, frame_index, partition) _set_partition(self.scores, self._shuffled_results.scores, frame_index, partition) self.partitions[frame_index] = self.cur_partition def _get_partition_indices(self, partition_index: int): return np.where(self.partitions == partition_index)[0] def get_segments(self): all_partitions_indexes = np.unique(self.partitions.filled(-1)) return [ self._get_partition_indices(partition_index) for partition_index in all_partitions_indexes if partition_index >= 0 ] class _ResolvedResults(BaseResults): def __init__(self, partitioned_results: _PartitionedResults): self._partitioned_results = partitioned_results theta = _init_unified_series(partitioned_results.theta) skeletons = _init_unified_series(partitioned_results.skeletons) scores = _init_unified_series(partitioned_results.scores) super().__init__(theta=theta, skeletons=skeletons, scores=scores) def resolve(self, segment, segment_alignment): self.scores[segment] = self._partitioned_results.scores[segment][:, segment_alignment] self.skeletons[segment] = self._partitioned_results.skeletons[segment][:, segment_alignment] self.theta[segment] = self._partitioned_results.theta[segment][:, segment_alignment] def mask(self, indices): self.theta.mask[indices] = True self.skeletons.mask[indices] = True self.scores.mask[indices] = True def num_valid(self): return np.sum(~self.scores.mask) class _FinalResults(BaseResults): @classmethod def from_resolved(cls, resolved_results: _ResolvedResults): return _FinalResults( theta=resolved_results.theta.filled(np.nan), skeletons=resolved_results.skeletons.filled(np.nan), scores=resolved_results.scores.filled(np.nan), ) @classmethod def from_shuffled(cls, shuffled_results: ShuffledResults): return _FinalResults( theta=np.full_like(shuffled_results.theta[:, 0], np.nan), skeletons=np.full_like(shuffled_results.scores[:, 0], np.nan), scores=np.full_like(shuffled_results.skeletons[:, 0], np.nan), ) def _make_continuous_partitions( shuffled_results: ShuffledResults, score_threshold: float, frame_rate: float ) -> _PartitionedResults: time_window = max(1, int(frame_rate * CONTINOUS_SEGMENT_TIME_WINDOW_SEC)) min_segment_size = max(1, int(frame_rate * MIN_SEGMENT_SIZE_SEC)) partitioned_results = _PartitionedResults(shuffled_results) # discard low score frames early (use the maximum value of both scores for now) good_score_frames = np.where(ma.greater_equal(ma.max(shuffled_results.scores, axis=1), score_threshold))[0] for frame_index in good_score_frames: prev_theta = partitioned_results.theta[frame_index - min(time_window, frame_index) : frame_index, 0] # if there is a big gap > time_window we start a new partition, with a random value (0) if np.all(np.any(prev_theta.mask, axis=1)): partitioned_results.set_partition(frame_index=frame_index, partition=0, new_partition=True) # otherwise we look in the time_window close past the closest non nan frame see if we can continue the # partition as long as the values stay continuous else: last_valid_index = np.where(~np.any(prev_theta.mask, axis=1))[0][-1] dists = [ angle_distance( shuffled_results.theta[frame_index, k, :], prev_theta[last_valid_index], ) for k in range(2) ] partition = int(np.argmin(dists)) if dists[partition] < CONTINUOUS_ANGLES_DIST_THRESHOLD: partitioned_results.set_partition(frame_index=frame_index, partition=partition) # discard short segments for cur_partition_indices in partitioned_results.get_segments(): if len(cur_partition_indices) < min_segment_size: partitioned_results.mask(cur_partition_indices) return partitioned_results def _align_segments_with_labels(segments, partitioned_skeletons, labelled_skeletons, min_labelled=5): """ Match the head/tail alignment with the results of the classical tracking in each of the segments, if there is enough labelled data in the segment """ segments_alignment = ma.masked_all((len(segments),), dtype=np.uint8) for segment_index, segment in enumerate(segments): segment_skeletons = labelled_skeletons[segment] non_nan_labelled = np.any(~np.isnan(segment_skeletons), axis=(1, 2)) labels_count = np.sum(non_nan_labelled) non_masked = ~np.any(partitioned_skeletons[segment].mask, axis=(1, 2, 3)) to_compare = np.logical_and(non_nan_labelled, non_masked) similarity_scores = [] for label_skel, partitioned_skeleton in zip(segment_skeletons[to_compare], partitioned_skeletons[segment][to_compare]): dists = [skeleton_distance(label_skel, x) for x in partitioned_skeleton] similarity_scores.append(dists) if len(similarity_scores) > 0: mean_similarity_scores = np.mean(similarity_scores, axis=0) if mean_similarity_scores[0] * mean_similarity_scores[1] < 0 and labels_count > min_labelled: segments_alignment[segment_index] = np.argmax(mean_similarity_scores) return segments_alignment def _calculate_smallest_gap_to_adjacent(segment_index, segments, segments_alignment): # evaluate how far away this segment is from known values score = np.nan segment_offset = np.nan if segment_index - 1 >= 0 and not segments_alignment.mask[segment_index - 1]: gap = segments[segment_index][0] - segments[segment_index - 1][-1] score = gap segment_offset = -1 if segment_index + 1 < len(segments_alignment) and not segments_alignment.mask[segment_index + 1]: gap = segments[segment_index + 1][0] - segments[segment_index][-1] if np.isnan(score) or gap < score: score = gap segment_offset = 1 return score, segment_offset def _align_unlabelled_segments_with_adjacents(segments, segments_alignment, partitioned_skeletons, frame_rate: float): """ Resolve the unaligned segments by comparing with adjacent segments, starting with the segments that have the least frames gap between an adjacent trusted segment Don't align isolated segments which a big gap between trusted segments """ maximum_gap_allowed = max(1, int(frame_rate * MAXIMUM_GAP_ALLOWED_WITH_ADJACENT_SEGMENT_SEC)) # ensure that if no segments have been aligned at all, pick one solution randomly to start if np.all(segments_alignment.mask): logger.info("There are no trusted segments with head decision to resolve the whole video, stopping analysis.") return segments_alignment # fix in priority the segments with known adjacent frames with little gap # until all segments are aligned except the isolated ones (further than maximum_gap_allowed) unaligned = np.where(segments_alignment.mask)[0] while len(unaligned) > 0: # we first pick the best candidate segment to align (there are known frames nearby before or after or both) all_gaps = [ _calculate_smallest_gap_to_adjacent( segment_index=x, segments=segments, segments_alignment=segments_alignment, ) for x in unaligned ] segment_to_fix_index = np.nanargmin(all_gaps, axis=0)[0] gap_to_adjacent_segment, adjacent_segment_offset = all_gaps[segment_to_fix_index] # abort if only isolated segments are left if gap_to_adjacent_segment > maximum_gap_allowed: break cur_segment_index = unaligned[segment_to_fix_index] cur_segment_skeleton = partitioned_skeletons[segments[cur_segment_index]] adjacent_segment_index = cur_segment_index + adjacent_segment_offset adjacent_alignment = segments_alignment[adjacent_segment_index] adjacent_segment = segments[adjacent_segment_index] adjacent_segment_skeleton = partitioned_skeletons[adjacent_segment][:, adjacent_alignment] if adjacent_segment_offset == -1: closest_unaligned_skeleton = cur_segment_skeleton[0] # first frame of cur segment closest_known_skeleton = adjacent_segment_skeleton[-1] # last frame of prev segment elif adjacent_segment_offset == 1: closest_unaligned_skeleton = cur_segment_skeleton[-1] # last frame of cur segment closest_known_skeleton = adjacent_segment_skeleton[0] # first frame of next segment else: raise ValueError() dists = [skeleton_distance(closest_known_skeleton, skel) for skel in closest_unaligned_skeleton] segments_alignment[cur_segment_index] = int(np.argmax(dists)) unaligned = np.where(segments_alignment.mask)[0] return segments_alignment def _init_unified_series(mixed_series): return ma.masked_all((mixed_series.shape[0],) + mixed_series.shape[2:], dtype=mixed_series.dtype) def resolve_head_tail( shuffled_results: ShuffledResults, original_results: OriginalResults, frame_rate: float, score_threshold, ) -> BaseResults: len_series = len(shuffled_results) # Create continuous segments without jumps partitioned_results = _make_continuous_partitions( score_threshold=score_threshold, frame_rate=frame_rate, shuffled_results=shuffled_results, ) segments = partitioned_results.get_segments() if len(segments) == 0: logger.error( f"Couldn't find any continuous segments of predicted data above the threshold {score_threshold}, stopping analysis." ) return _FinalResults.from_shuffled(shuffled_results) # Choose each segment global alignment by comparing with labelled data segments_alignment = _align_segments_with_labels(segments, partitioned_results.skeletons, original_results.skeletons) # Fix unaligned segments here by comparing skeletons with neighboring segments iteratively segments_alignment = _align_unlabelled_segments_with_adjacents( segments, segments_alignment, partitioned_results.skeletons, frame_rate ) # Compile results resolved_results = _ResolvedResults(partitioned_results) for segment, segment_alignment in zip(segments, segments_alignment): if not ma.is_masked(segment_alignment): resolved_results.resolve(segment, segment_alignment) # Filter the final results again by score threshold low_scores_indices = np.where(ma.masked_less(resolved_results.scores, score_threshold).mask)[0] resolved_results.mask(low_scores_indices) num_success = resolved_results.num_valid() original_num_success = np.any(~np.isnan(original_results.skeletons), axis=(1, 2)).sum() logger.info( f"Resolved head/tail, {num_success} out of {len_series} frames analyzed successfully " f"({float(num_success) / len_series * 100:.1f}%) (original features : {original_num_success}" f" or {(float(original_num_success) / len_series * 100):.1f}% of total)" ) if num_success < original_num_success: logger.warning(f"Original results had {original_num_success - num_success} more successfully analyzed frames!") return _FinalResults.from_resolved(resolved_results)
[ 3012, 222, 2287, 2313, 4326, 341, 8143, 391, 5895, 341, 5783, 50, 9836, 14111, 451, 331, 23762, 6044, 1153, 9523, 51, 222, 3012, 222, 222, 485, 5751, 222, 222, 485, 6610, 641, 2115, 222, 485, 6610, 51, 954, 641, 13016, 222, 222, 1097, 23007, 336, 2500, 51, 3622, 51, 8069, 100, 8113, 1220, 8826, 100, 8069, 49, 37208, 100, 8069, 222, 1097, 23007, 336, 2500, 51, 3622, 51, 4333, 100, 18176, 1707, 1220, 327, 303, 3787, 5483, 49, 303, 2432, 40598, 5483, 49, 303, 20157, 5483, 49, 222, 46, 222, 222, 7506, 51, 6404, 1081, 365, 222, 4089, 299, 5751, 51, 10588, 4077, 444, 8238, 222, 4089, 51, 34360, 45, 7506, 51, 2913, 46, 222, 222, 40, 10191, 391, 8910, 18598, 12928, 17460, 49, 391, 545, 11901, 20849, 480, 22119, 391, 341, 2454, 8459, 222, 4686, 540, 22726, 2062, 100, 5300, 10882, 100, 19279, 100, 29500, 299, 2115, 51, 7303, 55, 2341, 45, 56, 53, 46, 222, 222, 40, 1019, 6315, 12928, 391, 545, 1760, 451, 341, 2454, 8459, 434, 2974, 904, 7123, 477, 5190, 451, 6810, 37395, 222, 40, 327, 382, 30101, 341, 7336, 10191, 46, 222, 4686, 31011, 2062, 100, 39037, 100, 4812, 100, 18393, 100, 12876, 299, 244, 53, 51, 55, 222, 222, 40, 27427, 5150, 5562, 17134, 6717, 2806, 477, 5190, 451, 6810, 222, 4697, 100, 39037, 100, 3382, 100, 12876, 299, 244, 53, 51, 55, 222, 222, 40, 2818, 1348, 3030, 40092, 17134, 708, 904, 1851, 2806, 477, 5190, 451, 6810, 37395, 664, 19639, 17134, 222, 48474, 100, 41636, 100, 33851, 100, 12006, 100, 25329, 1205, 1456, 100, 39037, 100, 12876, 299, 244, 54, 499, 222, 610, 634, 1683, 100, 11484, 337, 100, 8481, 45, 635, 40598, 100, 8481, 63, 2115, 51, 16838, 731, 303, 461, 13016, 51, 29913, 100, 483, 100, 6257, 45, 635, 40598, 100, 8481, 46, 499, 222, 610, 634, 489, 100, 11484, 45, 11484, 337, 100, 8481, 49, 807, 40598, 100, 8481, 49, 3145, 100, 1076, 63, 648, 49, 9785, 63, 648, 731, 303, 9785, 337, 100, 8481, 96, 1763, 100, 1076, 1697, 53, 98, 299, 807, 40598, 100, 8481, 96, 1763, 100, 1076, 49, 9785, 98, 303, 9785, 337, 100, 8481, 96, 1763, 100, 1076, 1697, 54, 98, 299, 807, 40598, 100, 8481, 96, 1763, 100, 1076, 49, 244, 54, 449, 9785, 98, 499, 222, 842, 634, 10731, 337, 5483, 45, 1778, 5483, 731, 303, 684, 1176, 1683, 3232, 803, 49, 807, 40598, 100, 4333, 63, 2432, 40598, 5483, 731, 310, 649, 51, 1556, 100, 11484, 299, 449, 54, 310, 649, 51, 32399, 299, 13016, 51, 29913, 100, 483, 1181, 1688, 45, 635, 40598, 100, 4333, 490, 490, 9799, 66, 429, 46, 310, 649, 1132, 635, 40598, 100, 4333, 299, 807, 40598, 100, 4333, 603, 17460, 299, 634, 1683, 100, 11484, 337, 100, 8481, 45, 635, 40598, 100, 4333, 51, 10960, 46, 310, 328, 498, 45354, 299, 634, 1683, 100, 11484, 337, 100, 8481, 45, 635, 40598, 100, 4333, 51, 120, 498, 45354, 46, 310, 16081, 299, 634, 1683, 100, 11484, 337, 100, 8481, 45, 635, 40598, 100, 4333, 51, 14077, 46, 310, 2615, 17124, 1683, 3232, 10960, 66, 10960, 49, 328, 498, 45354, 66, 120, 498, 45354, 49, 16081, 66, 14077, 46, 465, 684, 5967, 45, 803, 49, 10253, 731, 310, 649, 51, 10960, 51, 3988, 96, 7746, 98, 299, 2969, 310, 649, 51, 120, 498, 45354, 51, 3988, 96, 7746, 98, 299, 2969, 310, 649, 51, 14077, 51, 3988, 96, 7746, 98, 299, 2969, 310, 649, 51, 32399, 51, 3988, 96, 7746, 98, 299, 2969, 465, 684, 758, 100, 11484, 45, 803, 49, 3145, 100, 1076, 63, 648, 49, 9785, 63, 648, 49, 556, 100, 11484, 63, 1578, 299, 3208, 731, 310, 434, 556, 100, 11484, 63, 343, 649, 51, 1556, 100, 11484, 1475, 244, 54, 603, 634, 489, 100, 11484, 45, 803, 51, 10960, 49, 649, 1132, 635, 40598, 100, 4333, 51, 10960, 49, 3145, 100, 1076, 49, 9785, 46, 310, 634, 489, 100, 11484, 45, 803, 51, 120, 498, 45354, 49, 649, 1132, 635, 40598, 100, 4333, 51, 120, 498, 45354, 49, 3145, 100, 1076, 49, 9785, 46, 310, 634, 489, 100, 11484, 45, 803, 51, 14077, 49, 649, 1132, 635, 40598, 100, 4333, 51, 14077, 49, 3145, 100, 1076, 49, 9785, 46, 310, 649, 51, 32399, 96, 1763, 100, 1076, 98, 299, 649, 51, 1556, 100, 11484, 465, 684, 634, 390, 100, 11484, 100, 7746, 45, 803, 49, 9785, 100, 1076, 63, 648, 731, 310, 461, 2115, 51, 2786, 45, 803, 51, 32399, 630, 9785, 100, 1076, 5630, 53, 98, 465, 684, 640, 100, 19958, 45, 803, 731, 310, 1187, 100, 32399, 100, 18826, 299, 2115, 51, 5714, 45, 803, 51, 32399, 51, 16395, 3766, 54, 509, 310, 461, 447, 343, 649, 1132, 390, 100, 11484, 100, 7746, 45, 11484, 100, 1076, 46, 456, 9785, 100, 1076, 347, 1187, 100, 32399, 100, 18826, 434, 9785, 100, 1076, 2394, 244, 53, 310, 1499, 499, 222, 842, 634, 17901, 5483, 45, 1778, 5483, 731, 303, 684, 1176, 1683, 3232, 803, 49, 9785, 337, 100, 4333, 63, 634, 10731, 337, 5483, 731, 310, 649, 1132, 11484, 337, 100, 4333, 299, 9785, 337, 100, 4333, 310, 17460, 299, 634, 1683, 100, 44188, 100, 8481, 45, 11484, 337, 100, 4333, 51, 10960, 46, 310, 328, 498, 45354, 299, 634, 1683, 100, 44188, 100, 8481, 45, 11484, 337, 100, 4333, 51, 120, 498, 45354, 46, 310, 16081, 299, 634, 1683, 100, 44188, 100, 8481, 45, 11484, 337, 100, 4333, 51, 14077, 46, 310, 2615, 17124, 1683, 3232, 10960, 66, 10960, 49, 328, 498, 45354, 66, 120, 498, 45354, 49, 16081, 66, 14077, 46, 465, 684, 5895, 45, 803, 49, 8459, 49, 8459, 100, 18927, 731, 310, 649, 51, 14077, 96, 8735, 98, 299, 649, 1132, 11484, 337, 100, 4333, 51, 14077, 96, 8735, 19838, 49, 8459, 100, 18927, 98, 310, 649, 51, 120, 498, 45354, 96, 8735, 98, 299, 649, 1132, 11484, 337, 100, 4333, 51, 120, 498, 45354, 96, 8735, 19838, 49, 8459, 100, 18927, 98, 310, 649, 51, 10960, 96, 8735, 98, 299, 649, 1132, 11484, 337, 100, 4333, 51, 10960, 96, 8735, 19838, 49, 8459, 100, 18927, 98, 465, 684, 5967, 45, 803, 49, 10253, 731, 310, 649, 51, 10960, 51, 3988, 96, 7746, 98, 299, 2969, 310, 649, 51, 120, 498, 45354, 51, 3988, 96, 7746, 98, 299, 2969, 310, 649, 51, 14077, 51, 3988, 96, 7746, 98, 299, 2969, 465, 684, 1952, 100, 1346, 45, 803, 731, 310, 461, 2115, 51, 1055, 45, 131, 803, 51, 14077, 51, 3988, 46, 499, 222, 842, 634, 9795, 5483, 45, 1778, 5483, 731, 303, 496, 17657, 303, 684, 664, 100, 15646, 45, 6943, 49, 11428, 100, 4333, 63, 634, 17901, 5483, 731, 310, 461, 634, 9795, 5483, 45, 343, 17460, 66, 15646, 100, 4333, 51, 10960, 51, 16395, 45, 2399, 51, 10158, 490, 343, 328, 498, 45354, 66, 15646, 100, 4333, 51, 120, 498, 45354, 51, 16395, 45, 2399, 51, 10158, 490, 343, 16081, 66, 15646, 100, 4333, 51, 14077, 51, 16395, 45, 2399, 51, 10158, 490, 310, 848, 465, 496, 17657, 303, 684, 664, 100, 635, 40598, 45, 6943, 49, 807, 40598, 100, 4333, 63, 2432, 40598, 5483, 731, 310, 461, 634, 9795, 5483, 45, 343, 17460, 66, 2399, 51, 2638, 100, 6257, 45, 635, 40598, 100, 4333, 51, 10960, 7175, 244, 53, 636, 2115, 51, 10158, 490, 343, 328, 498, 45354, 66, 2399, 51, 2638, 100, 6257, 45, 635, 40598, 100, 4333, 51, 14077, 7175, 244, 53, 636, 2115, 51, 10158, 490, 343, 16081, 66, 2399, 51, 2638, 100, 6257, 45, 635, 40598, 100, 4333, 51, 120, 498, 45354, 7175, 244, 53, 636, 2115, 51, 10158, 490, 310, 848, 499, 222, 610, 634, 2696, 100, 33040, 100, 32399, 45, 303, 807, 40598, 100, 4333, 63, 2432, 40598, 5483, 49, 6842, 100, 10488, 63, 1916, 49, 3145, 100, 3343, 63, 1916, 222, 46, 984, 634, 10731, 337, 5483, 63, 303, 1153, 100, 3537, 299, 1788, 45, 54, 49, 648, 45, 1763, 100, 3343, 338, 14672, 31011, 2062, 100, 39037, 100, 4812, 100, 18393, 100, 12876, 509, 303, 1865, 100, 8735, 100, 911, 299, 1788, 45, 54, 49, 648, 45, 1763, 100, 3343, 338, 14369, 100, 39037, 100, 3382, 100, 12876, 509, 465, 9785, 337, 100, 4333, 299, 634, 10731, 337, 5483, 45, 635, 40598, 100, 4333, 46, 465, 607, 27427, 7487, 6842, 12928, 15942, 327, 558, 341, 7123, 804, 451, 4354, 16081, 456, 2483, 46, 303, 4667, 100, 5142, 100, 9481, 299, 2115, 51, 2786, 45, 954, 51, 24811, 100, 2247, 45, 954, 51, 1472, 45, 635, 40598, 100, 4333, 51, 14077, 49, 6100, 66, 54, 490, 6842, 100, 10488, 29968, 53, 98, 465, 456, 3145, 100, 1076, 347, 4667, 100, 5142, 100, 9481, 63, 310, 7329, 100, 10960, 299, 9785, 337, 100, 4333, 51, 10960, 96, 1763, 100, 1076, 449, 1865, 45, 1021, 100, 3537, 49, 3145, 100, 1076, 46, 518, 3145, 100, 1076, 49, 244, 53, 98, 603, 607, 434, 2038, 458, 331, 6546, 15957, 868, 1153, 100, 3537, 1019, 1496, 331, 556, 9785, 49, 642, 331, 4051, 804, 327, 53, 46, 310, 434, 2115, 51, 483, 45, 2399, 51, 1831, 45, 5599, 100, 10960, 51, 3988, 49, 6100, 66, 54, 8485, 343, 9785, 337, 100, 4333, 51, 489, 100, 11484, 45, 1763, 100, 1076, 66, 1763, 100, 1076, 49, 9785, 66, 53, 49, 556, 100, 11484, 66, 1844, 46, 310, 607, 5897, 1019, 2803, 347, 341, 1153, 100, 3537, 4248, 11181, 341, 18135, 3000, 19322, 3145, 2337, 434, 1019, 902, 4056, 341, 310, 607, 9785, 641, 1964, 641, 341, 2102, 20039, 20849, 310, 832, 63, 343, 2419, 100, 1346, 100, 1076, 299, 2115, 51, 2786, 45, 131, 2399, 51, 1831, 45, 5599, 100, 10960, 51, 3988, 49, 6100, 66, 54, 29968, 53, 1697, 50, 54, 98, 343, 1694, 120, 299, 447, 419, 8826, 100, 8069, 45, 547, 807, 40598, 100, 4333, 51, 10960, 96, 1763, 100, 1076, 49, 851, 49, 518, 636, 547, 7329, 100, 10960, 96, 2153, 100, 1346, 100, 1076, 636, 419, 848, 419, 456, 851, 347, 2189, 45, 55, 46, 343, 1499, 343, 9785, 299, 648, 45, 2399, 51, 645, 907, 45, 47394, 509, 343, 434, 1694, 120, 96, 11484, 98, 350, 14672, 540, 22726, 2062, 100, 5300, 10882, 100, 19279, 100, 29500, 63, 419, 9785, 337, 100, 4333, 51, 489, 100, 11484, 45, 1763, 100, 1076, 66, 1763, 100, 1076, 49, 9785, 66, 11484, 46, 465, 607, 27427, 4514, 17134, 303, 456, 2756, 100, 11484, 100, 7746, 347, 9785, 337, 100, 4333, 51, 390, 100, 19958, 2284, 310, 434, 2095, 45, 1556, 100, 11484, 100, 7746, 46, 350, 1865, 100, 8735, 100, 911, 63, 343, 9785, 337, 100, 4333, 51, 3988, 45, 1556, 100, 11484, 100, 7746, 46, 465, 461, 9785, 337, 100, 4333, 499, 222, 610, 634, 2954, 100, 19958, 100, 1814, 100, 6007, 45, 19958, 49, 9785, 337, 100, 120, 498, 45354, 49, 2300, 1250, 100, 120, 498, 45354, 49, 1865, 100, 20329, 66, 58, 731, 303, 1547, 303, 12259, 341, 5783, 52, 9836, 14188, 642, 341, 3300, 451, 341, 462, 1599, 15549, 347, 2531, 451, 341, 17134, 49, 294, 434, 2038, 458, 8473, 2300, 1250, 727, 347, 341, 8459, 303, 1547, 303, 17134, 100, 18927, 299, 13016, 51, 29913, 100, 483, 1181, 1688, 45, 19958, 490, 490, 9799, 66, 2399, 51, 1792, 61, 46, 303, 456, 8459, 100, 1076, 49, 8459, 347, 10869, 45, 19958, 731, 310, 8459, 100, 120, 498, 45354, 299, 2300, 1250, 100, 120, 498, 45354, 96, 8735, 98, 310, 3000, 100, 10158, 100, 20329, 299, 2115, 51, 1831, 45, 131, 2399, 51, 30842, 45, 8735, 100, 120, 498, 45354, 490, 6100, 4381, 54, 49, 244, 55, 509, 310, 6577, 100, 1016, 299, 2115, 51, 1055, 45, 3804, 100, 10158, 100, 20329, 46, 310, 3000, 100, 29913, 299, 3182, 2399, 51, 1831, 45, 11484, 337, 100, 120, 498, 45354, 96, 8735, 1015, 3988, 49, 6100, 4381, 54, 49, 244, 55, 49, 244, 56, 509, 310, 391, 100, 6076, 299, 2115, 51, 11101, 100, 382, 45, 3804, 100, 10158, 100, 20329, 49, 3000, 100, 29913, 46, 603, 30149, 100, 14077, 299, 1627, 310, 456, 2300, 100, 2009, 361, 49, 9785, 337, 100, 33639, 347, 8617, 45, 8735, 100, 120, 498, 45354, 96, 471, 100, 6076, 636, 9785, 337, 100, 120, 498, 45354, 96, 8735, 1697, 471, 100, 6076, 10879, 343, 1694, 120, 299, 447, 33639, 100, 8069, 45, 1194, 100, 2009, 361, 49, 837, 46, 456, 837, 347, 9785, 337, 100, 33639, 98, 343, 30149, 100, 14077, 51, 1713, 45, 47394, 46, 603, 434, 2095, 45, 32270, 100, 14077, 46, 868, 244, 53, 63, 343, 5712, 100, 32270, 100, 14077, 299, 2115, 51, 6193, 45, 32270, 100, 14077, 49, 6100, 66, 53, 46, 343, 434, 5712, 100, 32270, 100, 14077, 96, 53, 98, 338, 5712, 100, 32270, 100, 14077, 96, 54, 98, 350, 244, 53, 480, 6577, 100, 1016, 868, 1865, 100, 20329, 63, 419, 17134, 100, 18927, 96, 8735, 100, 1076, 98, 299, 2115, 51, 30934, 45, 6193, 100, 32270, 100, 14077, 46, 465, 461, 17134, 100, 18927, 499, 222, 610, 634, 13000, 100, 1752, 20630, 100, 13920, 100, 471, 100, 48010, 45, 8735, 100, 1076, 49, 17134, 49, 17134, 100, 18927, 731, 303, 607, 13552, 2650, 9050, 12025, 477, 8459, 458, 664, 8998, 2102, 303, 6842, 299, 2115, 51, 10158, 303, 8459, 100, 2897, 299, 2115, 51, 10158, 303, 434, 8459, 100, 1076, 449, 244, 54, 2394, 244, 53, 480, 666, 17134, 100, 18927, 51, 3988, 96, 8735, 100, 1076, 449, 244, 54, 2805, 310, 15957, 299, 17134, 96, 8735, 100, 1076, 1697, 53, 98, 449, 17134, 96, 8735, 100, 1076, 449, 244, 54, 1697, 50, 54, 98, 310, 6842, 299, 15957, 310, 8459, 100, 2897, 299, 449, 54, 303, 434, 8459, 100, 1076, 494, 244, 54, 350, 2095, 45, 19958, 100, 18927, 46, 480, 666, 17134, 100, 18927, 51, 3988, 96, 8735, 100, 1076, 494, 244, 54, 2805, 310, 15957, 299, 17134, 96, 8735, 100, 1076, 494, 244, 54, 1697, 53, 98, 449, 17134, 96, 8735, 100, 1076, 1697, 50, 54, 98, 310, 434, 2115, 51, 30842, 45, 5142, 46, 575, 15957, 350, 6842, 63, 343, 6842, 299, 15957, 343, 8459, 100, 2897, 299, 244, 54, 465, 461, 6842, 49, 8459, 100, 2897, 499, 222, 610, 634, 2954, 100, 330, 20329, 100, 19958, 100, 1814, 100, 358, 11171, 10753, 45, 19958, 49, 17134, 100, 18927, 49, 9785, 337, 100, 120, 498, 45354, 49, 3145, 100, 3343, 63, 1916, 731, 303, 1547, 303, 27294, 341, 725, 16690, 17134, 829, 31457, 642, 31745, 17134, 49, 303, 8074, 642, 341, 17134, 708, 1178, 341, 6247, 12928, 15957, 3761, 619, 31745, 32856, 8459, 303, 12046, 1348, 3030, 40092, 17134, 1532, 331, 6546, 15957, 3761, 32856, 17134, 303, 1547, 303, 7123, 100, 13920, 100, 11330, 299, 1788, 45, 54, 49, 648, 45, 1763, 100, 3343, 338, 7490, 28648, 100, 41636, 100, 33851, 100, 12006, 100, 25329, 1205, 1456, 100, 39037, 100, 12876, 509, 303, 607, 7197, 708, 434, 1307, 17134, 1178, 2602, 19639, 840, 1187, 49, 8350, 1611, 5319, 26380, 391, 1496, 303, 434, 2115, 51, 483, 45, 19958, 100, 18927, 51, 3988, 731, 310, 4101, 51, 1357, 459, 8324, 904, 1307, 32856, 17134, 642, 5783, 17297, 391, 5895, 341, 9859, 6044, 49, 32035, 9276, 7164, 310, 461, 17134, 100, 18927, 465, 607, 2435, 347, 9961, 341, 17134, 642, 8998, 31745, 12928, 642, 9587, 15957, 303, 607, 6234, 1187, 17134, 904, 19639, 2959, 341, 40092, 11703, 327, 107, 7997, 2806, 7123, 100, 13920, 100, 11330, 46, 303, 725, 16690, 299, 2115, 51, 2786, 45, 19958, 100, 18927, 51, 3988, 5630, 53, 98, 303, 2236, 2095, 45, 330, 16690, 46, 868, 244, 53, 63, 310, 607, 1019, 1950, 8350, 341, 5318, 15164, 8459, 391, 3030, 327, 13640, 904, 8998, 12928, 48294, 2688, 575, 2703, 575, 4354, 46, 310, 1187, 100, 108, 7341, 299, 447, 343, 634, 13000, 100, 1752, 20630, 100, 13920, 100, 471, 100, 48010, 45, 419, 8459, 100, 1076, 66, 125, 49, 419, 17134, 66, 19958, 49, 419, 17134, 100, 18927, 66, 19958, 100, 18927, 49, 343, 848, 343, 456, 837, 347, 725, 16690, 310, 1499, 310, 8459, 100, 471, 100, 3315, 100, 1076, 299, 2115, 51, 10158, 645, 907, 45, 483, 100, 108, 7341, 49, 6100, 66, 53, 5630, 53, 98, 310, 15957, 100, 471, 100, 48010, 100, 8735, 49, 31745, 100, 8735, 100, 2897, 299, 1187, 100, 108, 7341, 96, 8735, 100, 471, 100, 3315, 100, 1076, 98, 603, 607, 13309, 434, 1773, 40092, 17134, 904, 2859, 310, 434, 15957, 100, 471, 100, 48010, 100, 8735, 868, 7123, 100, 13920, 100, 11330, 63, 343, 1644, 603, 2756, 100, 8735, 100, 1076, 299, 725, 16690, 96, 8735, 100, 471, 100, 3315, 100, 1076, 98, 310, 2756, 100, 8735, 100, 33639, 299, 9785, 337, 100, 120, 498, 45354, 96, 19958, 96, 1556, 100, 8735, 100, 1076, 3234, 603, 31745, 100, 8735, 100, 1076, 299, 2756, 100, 8735, 100, 1076, 494, 31745, 100, 8735, 100, 2897, 310, 31745, 100, 18927, 299, 17134, 100, 18927, 96, 48010, 100, 8735, 100, 1076, 98, 310, 31745, 100, 8735, 299, 17134, 96, 48010, 100, 8735, 100, 1076, 98, 310, 31745, 100, 8735, 100, 33639, 299, 9785, 337, 100, 120, 498, 45354, 96, 48010, 100, 8735, 19838, 49, 31745, 100, 18927, 98, 603, 434, 31745, 100, 8735, 100, 2897, 630, 449, 54, 63, 343, 18135, 100, 330, 16690, 100, 33639, 299, 2756, 100, 8735, 100, 33639, 96, 53, 98, 244, 607, 1950, 3145, 451, 2756, 8459, 343, 18135, 100, 3753, 100, 33639, 299, 31745, 100, 8735, 100, 33639, 6510, 54, 98, 244, 607, 2419, 3145, 451, 7329, 8459, 310, 4378, 31745, 100, 8735, 100, 2897, 630, 244, 54, 63, 343, 18135, 100, 330, 16690, 100, 33639, 299, 2756, 100, 8735, 100, 33639, 6510, 54, 98, 244, 607, 2419, 3145, 451, 2756, 8459, 343, 18135, 100, 3753, 100, 33639, 299, 31745, 100, 8735, 100, 33639, 96, 53, 98, 244, 607, 1950, 3145, 451, 2371, 8459, 310, 832, 63, 343, 3655, 10128, 365, 603, 1694, 120, 299, 447, 33639, 100, 8069, 45, 19092, 100, 3753, 100, 33639, 49, 3057, 361, 46, 456, 3057, 361, 347, 18135, 100, 330, 16690, 100, 33639, 98, 310, 17134, 100, 18927, 96, 1556, 100, 8735, 100, 1076, 98, 299, 648, 45, 2399, 51, 30934, 45, 47394, 509, 603, 725, 16690, 299, 2115, 51, 2786, 45, 19958, 100, 18927, 51, 3988, 5630, 53, 98, 465, 461, 17134, 100, 18927, 499, 222, 610, 634, 1683, 100, 44188, 100, 8481, 45, 20873, 100, 8481, 731, 303, 461, 13016, 51, 29913, 100, 483, 1181, 20873, 100, 8481, 51, 3299, 96, 53, 636, 46, 494, 11188, 100, 8481, 51, 3299, 96, 55, 23919, 9799, 66, 20873, 100, 8481, 51, 12094, 46, 499, 222, 610, 5895, 100, 1843, 100, 9836, 45, 303, 807, 40598, 100, 4333, 63, 2432, 40598, 5483, 49, 303, 4732, 100, 4333, 63, 20157, 5483, 49, 303, 3145, 100, 3343, 63, 1916, 49, 303, 6842, 100, 10488, 49, 222, 46, 984, 3787, 5483, 63, 303, 2095, 100, 8481, 299, 2095, 45, 635, 40598, 100, 4333, 46, 465, 607, 2673, 20849, 17134, 2895, 44600, 303, 9785, 337, 100, 4333, 299, 634, 2696, 100, 33040, 100, 32399, 45, 310, 6842, 100, 10488, 66, 5142, 100, 10488, 49, 310, 3145, 100, 3343, 66, 1763, 100, 3343, 49, 310, 807, 40598, 100, 4333, 66, 635, 40598, 100, 4333, 49, 303, 848, 303, 17134, 299, 9785, 337, 100, 4333, 51, 390, 100, 19958, 365, 465, 434, 2095, 45, 19958, 46, 630, 244, 53, 63, 310, 4101, 51, 750, 45, 343, 315, 39, 29875, 1348, 2309, 1364, 20849, 17134, 451, 23762, 727, 3713, 341, 10191, 320, 5142, 100, 10488, 855, 32035, 9276, 3128, 310, 848, 310, 461, 634, 9795, 5483, 51, 1097, 100, 635, 40598, 45, 635, 40598, 100, 4333, 46, 465, 607, 25879, 2531, 8459, 3671, 14188, 829, 31457, 642, 2300, 1250, 727, 303, 17134, 100, 18927, 299, 634, 2954, 100, 19958, 100, 1814, 100, 6007, 45, 19958, 49, 9785, 337, 100, 4333, 51, 120, 498, 45354, 49, 4732, 100, 4333, 51, 120, 498, 45354, 46, 465, 607, 7097, 725, 16690, 17134, 2464, 829, 31457, 328, 498, 45354, 642, 1188, 6298, 8757, 17134, 3881, 13193, 303, 17134, 100, 18927, 299, 634, 2954, 100, 330, 20329, 100, 19958, 100, 1814, 100, 358, 11171, 10753, 45, 310, 17134, 49, 17134, 100, 18927, 49, 9785, 337, 100, 4333, 51, 120, 498, 45354, 49, 3145, 100, 3343, 303, 848, 465, 607, 23933, 3300, 303, 11428, 100, 4333, 299, 634, 17901, 5483, 45, 11484, 337, 100, 4333, 46, 303, 456, 8459, 49, 8459, 100, 18927, 347, 8617, 45, 19958, 49, 17134, 100, 18927, 731, 310, 434, 666, 13016, 51, 316, 100, 29913, 45, 8735, 100, 18927, 731, 343, 11428, 100, 4333, 51, 5292, 45, 8735, 49, 8459, 100, 18927, 46, 465, 607, 8301, 341, 1175, 3300, 4076, 829, 6842, 10191, 303, 7487, 100, 14077, 100, 7746, 299, 2115, 51, 2786, 45, 954, 51, 29913, 100, 2290, 45, 15646, 100, 4333, 51, 14077, 49, 6842, 100, 10488, 566, 3988, 5630, 53, 98, 303, 11428, 100, 4333, 51, 3988, 45, 760, 100, 14077, 100, 7746, 46, 465, 1952, 100, 3146, 299, 11428, 100, 4333, 51, 1538, 100, 1346, 365, 303, 4732, 100, 1538, 100, 3146, 299, 2115, 51, 1831, 45, 131, 2399, 51, 30842, 45, 7351, 100, 4333, 51, 120, 498, 45354, 490, 6100, 4381, 54, 49, 244, 55, 3445, 1055, 365, 303, 4101, 51, 1357, 45, 310, 315, 39, 17901, 5783, 52, 9836, 49, 320, 1538, 100, 3146, 130, 986, 451, 320, 1688, 100, 8481, 130, 12928, 48865, 7519, 332, 310, 315, 39, 1389, 1832, 45, 1538, 100, 3146, 46, 536, 2095, 100, 8481, 338, 244, 54, 53, 53, 15696, 54, 107, 16242, 46, 327, 7351, 5423, 518, 320, 7351, 100, 1538, 100, 3146, 3864, 310, 315, 39, 575, 28680, 1832, 45, 7351, 100, 1538, 100, 3146, 46, 536, 2095, 100, 8481, 338, 244, 54, 53, 53, 731, 51, 54, 107, 16242, 451, 3410, 4748, 303, 848, 303, 434, 1952, 100, 3146, 350, 4732, 100, 1538, 100, 3146, 63, 310, 4101, 51, 5718, 45, 107, 39, 11313, 3300, 5069, 320, 7351, 100, 1538, 100, 3146, 449, 1952, 100, 3146, 130, 1851, 7519, 48865, 12928, 16013, 465, 461, 634, 9795, 5483, 51, 1097, 100, 15646, 45, 15646, 100, 4333, 46, 222 ]
[ "\"\"\"", "Ċ", "This", "Ġmodule", "Ġcontains", "Ġthe", "Ġlogic", "Ġto", "Ġresolve", "Ġthe", "Ġhead", "-", "tail", "Ġorientation", "Ġof", "Ġa", "Ġpredicted", "Ġvideo", "Ġtime", "Ġseries", ".", "Ċ", "\"\"\"", "Ċ", "Ċ", "import", "Ġlogging", "Ċ", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "import", "Ġnumpy", ".", "ma", "Ġas", "Ġma", "Ċ", "Ċ", "from", "Ġwor", "mp", "ose", ".", "pose", ".", "distance", "_", "metrics", "Ġimport", "Ġangle", "_", "distance", ",", "Ġskeleton", "_", "distance", "Ċ", "from", "Ġwor", "mp", "ose", ".", "pose", ".", "results", "_", "datat", "ypes", "Ġimport", "Ġ(", "ĊĠĠĠ", "ĠBase", "Results", ",", "ĊĠĠĠ", "ĠSh", "uffled", "Results", ",", "ĊĠĠĠ", "ĠOriginal", "Results", ",", "Ċ", ")", "Ċ", "Ċ", "logging", ".", "basic", "Config", "()", "Ċ", "logger", "Ġ=", "Ġlogging", ".", "getLogger", "(__", "name", "__)", "Ċ", "logger", ".", "setLevel", "(", "logging", ".", "DEBUG", ")", "Ċ", "Ċ", "#", "Ġthreshold", "Ġto", "Ġcompare", "Ġneighbor", "Ġframes", "Ġtheta", ",", "Ġto", "Ġbe", "Ġconsidered", "Ġcontinuous", "Ġand", "Ġbelong", "Ġto", "Ġthe", "Ġsame", "Ġsegment", "Ċ", "CONT", "IN", "UO", "US", "_", "ANG", "LES", "_", "DIST", "_", "THRESHOLD", "Ġ=", "Ġnp", ".", "deg", "2", "rad", "(", "3", "0", ")", "Ċ", "Ċ", "#", "Ġwe", "Ġconsider", "Ġframes", "Ġto", "Ġbe", "Ġpart", "Ġof", "Ġthe", "Ġsame", "Ġsegment", "Ġif", "Ġthey", "Ġare", "Ġmaximum", "Ġthis", "Ġamount", "Ġof", "Ġseconds", "Ġapart", "Ċ", "#", "Ġ(", "and", "Ġsatisfy", "Ġthe", "Ġdistance", "Ġthreshold", ")", "Ċ", "CONT", "INO", "US", "_", "SEGMENT", "_", "TIME", "_", "WINDOW", "_", "SEC", "Ġ=", "Ġ", "0", ".", "2", "Ċ", "Ċ", "#", "Ġdiscard", "Ġtoo", "Ġsmall", "Ġsegments", "Ġless", "Ġthan", "Ġthis", "Ġamount", "Ġof", "Ġseconds", "Ċ", "MIN", "_", "SEGMENT", "_", "SIZE", "_", "SEC", "Ġ=", "Ġ", "0", ".", "2", "Ċ", "Ċ", "#", "Ġdon", "'t", "Ġalign", "Ġisolated", "Ġsegments", "Ġthat", "Ġare", "Ġmore", "Ġthan", "Ġthis", "Ġamount", "Ġof", "Ġseconds", "Ġapart", "Ġfrom", "Ġaligned", "Ġsegments", "Ċ", "MAXIMUM", "_", "GAP", "_", "ALLOWED", "_", "WITH", "_", "ADJ", "AC", "ENT", "_", "SEGMENT", "_", "SEC", "Ġ=", "Ġ", "1", "ĊĊ", "Ċ", "def", "Ġ_", "init", "_", "partition", "ed", "_", "series", "(", "sh", "uffled", "_", "series", ":", "Ġnp", ".", "ndarray", "):", "ĊĠĠĠ", "Ġreturn", "Ġma", ".", "masked", "_", "all", "_", "like", "(", "sh", "uffled", "_", "series", ")", "ĊĊ", "Ċ", "def", "Ġ_", "set", "_", "partition", "(", "partition", "ed", "_", "series", ",", "Ġsh", "uffled", "_", "series", ",", "Ġframe", "_", "index", ":", "Ġint", ",", "Ġpartition", ":", "Ġint", "):", "ĊĠĠĠ", "Ġpartition", "ed", "_", "series", "[", "frame", "_", "index", "][", "0", "]", "Ġ=", "Ġsh", "uffled", "_", "series", "[", "frame", "_", "index", ",", "Ġpartition", "]", "ĊĠĠĠ", "Ġpartition", "ed", "_", "series", "[", "frame", "_", "index", "][", "1", "]", "Ġ=", "Ġsh", "uffled", "_", "series", "[", "frame", "_", "index", ",", "Ġ", "1", "Ġ-", "Ġpartition", "]", "ĊĊ", "Ċ", "class", "Ġ_", "Partition", "ed", "Results", "(", "Base", "Results", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġsh", "uffled", "_", "results", ":", "ĠSh", "uffled", "Results", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "cur", "_", "partition", "Ġ=", "Ġ-", "1", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "partitions", "Ġ=", "Ġma", ".", "masked", "_", "all", "((", "len", "(", "sh", "uffled", "_", "results", "),", "),", "Ġdtype", "=", "int", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "sh", "uffled", "_", "results", "Ġ=", "Ġsh", "uffled", "_", "results", "ĊĊĠĠĠĠĠĠĠ", "Ġtheta", "Ġ=", "Ġ_", "init", "_", "partition", "ed", "_", "series", "(", "sh", "uffled", "_", "results", ".", "theta", ")", "ĊĠĠĠĠĠĠĠ", "Ġs", "ke", "letons", "Ġ=", "Ġ_", "init", "_", "partition", "ed", "_", "series", "(", "sh", "uffled", "_", "results", ".", "s", "ke", "letons", ")", "ĊĠĠĠĠĠĠĠ", "Ġscores", "Ġ=", "Ġ_", "init", "_", "partition", "ed", "_", "series", "(", "sh", "uffled", "_", "results", ".", "scores", ")", "ĊĠĠĠĠĠĠĠ", "Ġsuper", "().__", "init", "__(", "theta", "=", "theta", ",", "Ġs", "ke", "letons", "=", "s", "ke", "letons", ",", "Ġscores", "=", "scores", ")", "ĊĊĠĠĠ", "Ġdef", "Ġmask", "(", "self", ",", "Ġindices", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "theta", ".", "mask", "[", "indices", "]", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "s", "ke", "letons", ".", "mask", "[", "indices", "]", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "scores", ".", "mask", "[", "indices", "]", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "partitions", ".", "mask", "[", "indices", "]", "Ġ=", "ĠTrue", "ĊĊĠĠĠ", "Ġdef", "Ġset", "_", "partition", "(", "self", ",", "Ġframe", "_", "index", ":", "Ġint", ",", "Ġpartition", ":", "Ġint", ",", "Ġnew", "_", "partition", ":", "Ġbool", "Ġ=", "ĠFalse", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnew", "_", "partition", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "cur", "_", "partition", "Ġ+=", "Ġ", "1", "ĊĊĠĠĠĠĠĠĠ", "Ġ_", "set", "_", "partition", "(", "self", ".", "theta", ",", "Ġself", "._", "sh", "uffled", "_", "results", ".", "theta", ",", "Ġframe", "_", "index", ",", "Ġpartition", ")", "ĊĠĠĠĠĠĠĠ", "Ġ_", "set", "_", "partition", "(", "self", ".", "s", "ke", "letons", ",", "Ġself", "._", "sh", "uffled", "_", "results", ".", "s", "ke", "letons", ",", "Ġframe", "_", "index", ",", "Ġpartition", ")", "ĊĠĠĠĠĠĠĠ", "Ġ_", "set", "_", "partition", "(", "self", ".", "scores", ",", "Ġself", "._", "sh", "uffled", "_", "results", ".", "scores", ",", "Ġframe", "_", "index", ",", "Ġpartition", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "partitions", "[", "frame", "_", "index", "]", "Ġ=", "Ġself", ".", "cur", "_", "partition", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "get", "_", "partition", "_", "indices", "(", "self", ",", "Ġpartition", "_", "index", ":", "Ġint", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġnp", ".", "where", "(", "self", ".", "partitions", "Ġ==", "Ġpartition", "_", "index", ")[", "0", "]", "ĊĊĠĠĠ", "Ġdef", "Ġget", "_", "segments", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġall", "_", "partitions", "_", "indexes", "Ġ=", "Ġnp", ".", "unique", "(", "self", ".", "partitions", ".", "filled", "(-", "1", "))", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ[", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", "._", "get", "_", "partition", "_", "indices", "(", "partition", "_", "index", ")", "Ġfor", "Ġpartition", "_", "index", "Ġin", "Ġall", "_", "partitions", "_", "indexes", "Ġif", "Ġpartition", "_", "index", "Ġ>=", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġ]", "ĊĊ", "Ċ", "class", "Ġ_", "Resolved", "Results", "(", "Base", "Results", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġpartition", "ed", "_", "results", ":", "Ġ_", "Partition", "ed", "Results", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "partition", "ed", "_", "results", "Ġ=", "Ġpartition", "ed", "_", "results", "ĊĠĠĠĠĠĠĠ", "Ġtheta", "Ġ=", "Ġ_", "init", "_", "unified", "_", "series", "(", "partition", "ed", "_", "results", ".", "theta", ")", "ĊĠĠĠĠĠĠĠ", "Ġs", "ke", "letons", "Ġ=", "Ġ_", "init", "_", "unified", "_", "series", "(", "partition", "ed", "_", "results", ".", "s", "ke", "letons", ")", "ĊĠĠĠĠĠĠĠ", "Ġscores", "Ġ=", "Ġ_", "init", "_", "unified", "_", "series", "(", "partition", "ed", "_", "results", ".", "scores", ")", "ĊĠĠĠĠĠĠĠ", "Ġsuper", "().__", "init", "__(", "theta", "=", "theta", ",", "Ġs", "ke", "letons", "=", "s", "ke", "letons", ",", "Ġscores", "=", "scores", ")", "ĊĊĠĠĠ", "Ġdef", "Ġresolve", "(", "self", ",", "Ġsegment", ",", "Ġsegment", "_", "alignment", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "scores", "[", "segment", "]", "Ġ=", "Ġself", "._", "partition", "ed", "_", "results", ".", "scores", "[", "segment", "][:", ",", "Ġsegment", "_", "alignment", "]", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "s", "ke", "letons", "[", "segment", "]", "Ġ=", "Ġself", "._", "partition", "ed", "_", "results", ".", "s", "ke", "letons", "[", "segment", "][:", ",", "Ġsegment", "_", "alignment", "]", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "theta", "[", "segment", "]", "Ġ=", "Ġself", "._", "partition", "ed", "_", "results", ".", "theta", "[", "segment", "][:", ",", "Ġsegment", "_", "alignment", "]", "ĊĊĠĠĠ", "Ġdef", "Ġmask", "(", "self", ",", "Ġindices", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "theta", ".", "mask", "[", "indices", "]", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "s", "ke", "letons", ".", "mask", "[", "indices", "]", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "scores", ".", "mask", "[", "indices", "]", "Ġ=", "ĠTrue", "ĊĊĠĠĠ", "Ġdef", "Ġnum", "_", "valid", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġnp", ".", "sum", "(", "~", "self", ".", "scores", ".", "mask", ")", "ĊĊ", "Ċ", "class", "Ġ_", "Final", "Results", "(", "Base", "Results", "):", "ĊĠĠĠ", "Ġ@", "classmethod", "ĊĠĠĠ", "Ġdef", "Ġfrom", "_", "resolved", "(", "cls", ",", "Ġresolved", "_", "results", ":", "Ġ_", "Resolved", "Results", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ_", "Final", "Results", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtheta", "=", "resolved", "_", "results", ".", "theta", ".", "filled", "(", "np", ".", "nan", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġs", "ke", "letons", "=", "resolved", "_", "results", ".", "s", "ke", "letons", ".", "filled", "(", "np", ".", "nan", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġscores", "=", "resolved", "_", "results", ".", "scores", ".", "filled", "(", "np", ".", "nan", "),", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĊĠĠĠ", "Ġ@", "classmethod", "ĊĠĠĠ", "Ġdef", "Ġfrom", "_", "sh", "uffled", "(", "cls", ",", "Ġsh", "uffled", "_", "results", ":", "ĠSh", "uffled", "Results", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ_", "Final", "Results", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtheta", "=", "np", ".", "full", "_", "like", "(", "sh", "uffled", "_", "results", ".", "theta", "[:,", "Ġ", "0", "],", "Ġnp", ".", "nan", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġs", "ke", "letons", "=", "np", ".", "full", "_", "like", "(", "sh", "uffled", "_", "results", ".", "scores", "[:,", "Ġ", "0", "],", "Ġnp", ".", "nan", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġscores", "=", "np", ".", "full", "_", "like", "(", "sh", "uffled", "_", "results", ".", "s", "ke", "letons", "[:,", "Ġ", "0", "],", "Ġnp", ".", "nan", "),", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĊ", "Ċ", "def", "Ġ_", "make", "_", "continuous", "_", "partitions", "(", "ĊĠĠĠ", "Ġsh", "uffled", "_", "results", ":", "ĠSh", "uffled", "Results", ",", "Ġscore", "_", "threshold", ":", "Ġfloat", ",", "Ġframe", "_", "rate", ":", "Ġfloat", "Ċ", ")", "Ġ->", "Ġ_", "Partition", "ed", "Results", ":", "ĊĠĠĠ", "Ġtime", "_", "window", "Ġ=", "Ġmax", "(", "1", ",", "Ġint", "(", "frame", "_", "rate", "Ġ*", "ĠCONT", "INO", "US", "_", "SEGMENT", "_", "TIME", "_", "WINDOW", "_", "SEC", "))", "ĊĠĠĠ", "Ġmin", "_", "segment", "_", "size", "Ġ=", "Ġmax", "(", "1", ",", "Ġint", "(", "frame", "_", "rate", "Ġ*", "ĠMIN", "_", "SEGMENT", "_", "SIZE", "_", "SEC", "))", "ĊĊĠĠĠ", "Ġpartition", "ed", "_", "results", "Ġ=", "Ġ_", "Partition", "ed", "Results", "(", "sh", "uffled", "_", "results", ")", "ĊĊĠĠĠ", "Ġ#", "Ġdiscard", "Ġlow", "Ġscore", "Ġframes", "Ġearly", "Ġ(", "use", "Ġthe", "Ġmaximum", "Ġvalue", "Ġof", "Ġboth", "Ġscores", "Ġfor", "Ġnow", ")", "ĊĠĠĠ", "Ġgood", "_", "score", "_", "frames", "Ġ=", "Ġnp", ".", "where", "(", "ma", ".", "greater", "_", "equal", "(", "ma", ".", "max", "(", "sh", "uffled", "_", "results", ".", "scores", ",", "Ġaxis", "=", "1", "),", "Ġscore", "_", "threshold", "))[", "0", "]", "ĊĊĠĠĠ", "Ġfor", "Ġframe", "_", "index", "Ġin", "Ġgood", "_", "score", "_", "frames", ":", "ĊĠĠĠĠĠĠĠ", "Ġprev", "_", "theta", "Ġ=", "Ġpartition", "ed", "_", "results", ".", "theta", "[", "frame", "_", "index", "Ġ-", "Ġmin", "(", "time", "_", "window", ",", "Ġframe", "_", "index", ")", "Ġ:", "Ġframe", "_", "index", ",", "Ġ", "0", "]", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "Ġif", "Ġthere", "Ġis", "Ġa", "Ġbig", "Ġgap", "Ġ>", "Ġtime", "_", "window", "Ġwe", "Ġstart", "Ġa", "Ġnew", "Ġpartition", ",", "Ġwith", "Ġa", "Ġrandom", "Ġvalue", "Ġ(", "0", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnp", ".", "all", "(", "np", ".", "any", "(", "prev", "_", "theta", ".", "mask", ",", "Ġaxis", "=", "1", ")):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpartition", "ed", "_", "results", ".", "set", "_", "partition", "(", "frame", "_", "index", "=", "frame", "_", "index", ",", "Ġpartition", "=", "0", ",", "Ġnew", "_", "partition", "=", "True", ")", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġotherwise", "Ġwe", "Ġlook", "Ġin", "Ġthe", "Ġtime", "_", "window", "Ġclose", "Ġpast", "Ġthe", "Ġclosest", "Ġnon", "Ġnan", "Ġframe", "Ġsee", "Ġif", "Ġwe", "Ġcan", "Ġcontinue", "Ġthe", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġpartition", "Ġas", "Ġlong", "Ġas", "Ġthe", "Ġvalues", "Ġstay", "Ġcontinuous", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlast", "_", "valid", "_", "index", "Ġ=", "Ġnp", ".", "where", "(", "~", "np", ".", "any", "(", "prev", "_", "theta", ".", "mask", ",", "Ġaxis", "=", "1", "))[", "0", "][", "-", "1", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdist", "s", "Ġ=", "Ġ[", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġangle", "_", "distance", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġsh", "uffled", "_", "results", ".", "theta", "[", "frame", "_", "index", ",", "Ġk", ",", "Ġ:", "],", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġprev", "_", "theta", "[", "last", "_", "valid", "_", "index", "],", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġk", "Ġin", "Ġrange", "(", "2", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpartition", "Ġ=", "Ġint", "(", "np", ".", "arg", "min", "(", "dists", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdist", "s", "[", "partition", "]", "Ġ<", "ĠCONT", "IN", "UO", "US", "_", "ANG", "LES", "_", "DIST", "_", "THRESHOLD", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġpartition", "ed", "_", "results", ".", "set", "_", "partition", "(", "frame", "_", "index", "=", "frame", "_", "index", ",", "Ġpartition", "=", "partition", ")", "ĊĊĠĠĠ", "Ġ#", "Ġdiscard", "Ġshort", "Ġsegments", "ĊĠĠĠ", "Ġfor", "Ġcur", "_", "partition", "_", "indices", "Ġin", "Ġpartition", "ed", "_", "results", ".", "get", "_", "segments", "():", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "cur", "_", "partition", "_", "indices", ")", "Ġ<", "Ġmin", "_", "segment", "_", "size", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpartition", "ed", "_", "results", ".", "mask", "(", "cur", "_", "partition", "_", "indices", ")", "ĊĊĠĠĠ", "Ġreturn", "Ġpartition", "ed", "_", "results", "ĊĊ", "Ċ", "def", "Ġ_", "align", "_", "segments", "_", "with", "_", "labels", "(", "segments", ",", "Ġpartition", "ed", "_", "s", "ke", "letons", ",", "Ġlabel", "led", "_", "s", "ke", "letons", ",", "Ġmin", "_", "labelled", "=", "5", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "ĠMatch", "Ġthe", "Ġhead", "/", "tail", "Ġalignment", "Ġwith", "Ġthe", "Ġresults", "Ġof", "Ġthe", "Ġclass", "ical", "Ġtracking", "Ġin", "Ġeach", "Ġof", "Ġthe", "Ġsegments", ",", "ĊĠĠĠĠ", "Ġif", "Ġthere", "Ġis", "Ġenough", "Ġlabel", "led", "Ġdata", "Ġin", "Ġthe", "Ġsegment", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġsegments", "_", "alignment", "Ġ=", "Ġma", ".", "masked", "_", "all", "((", "len", "(", "segments", "),", "),", "Ġdtype", "=", "np", ".", "uint", "8", ")", "ĊĠĠĠ", "Ġfor", "Ġsegment", "_", "index", ",", "Ġsegment", "Ġin", "Ġenumerate", "(", "segments", "):", "ĊĠĠĠĠĠĠĠ", "Ġsegment", "_", "s", "ke", "letons", "Ġ=", "Ġlabel", "led", "_", "s", "ke", "letons", "[", "segment", "]", "ĊĠĠĠĠĠĠĠ", "Ġnon", "_", "nan", "_", "labelled", "Ġ=", "Ġnp", ".", "any", "(", "~", "np", ".", "isnan", "(", "segment", "_", "s", "ke", "letons", "),", "Ġaxis", "=(", "1", ",", "Ġ", "2", "))", "ĊĠĠĠĠĠĠĠ", "Ġlabels", "_", "count", "Ġ=", "Ġnp", ".", "sum", "(", "non", "_", "nan", "_", "labelled", ")", "ĊĠĠĠĠĠĠĠ", "Ġnon", "_", "masked", "Ġ=", "Ġ~", "np", ".", "any", "(", "partition", "ed", "_", "s", "ke", "letons", "[", "segment", "].", "mask", ",", "Ġaxis", "=(", "1", ",", "Ġ", "2", ",", "Ġ", "3", "))", "ĊĠĠĠĠĠĠĠ", "Ġto", "_", "compare", "Ġ=", "Ġnp", ".", "logical", "_", "and", "(", "non", "_", "nan", "_", "labelled", ",", "Ġnon", "_", "masked", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġsimilarity", "_", "scores", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġlabel", "_", "sk", "el", ",", "Ġpartition", "ed", "_", "skeleton", "Ġin", "Ġzip", "(", "segment", "_", "s", "ke", "letons", "[", "to", "_", "compare", "],", "Ġpartition", "ed", "_", "s", "ke", "letons", "[", "segment", "][", "to", "_", "compare", "]):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdist", "s", "Ġ=", "Ġ[", "skeleton", "_", "distance", "(", "label", "_", "sk", "el", ",", "Ġx", ")", "Ġfor", "Ġx", "Ġin", "Ġpartition", "ed", "_", "skeleton", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsimilarity", "_", "scores", ".", "append", "(", "dists", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "similarity", "_", "scores", ")", "Ġ>", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġmean", "_", "similarity", "_", "scores", "Ġ=", "Ġnp", ".", "mean", "(", "similarity", "_", "scores", ",", "Ġaxis", "=", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġmean", "_", "similarity", "_", "scores", "[", "0", "]", "Ġ*", "Ġmean", "_", "similarity", "_", "scores", "[", "1", "]", "Ġ<", "Ġ", "0", "Ġand", "Ġlabels", "_", "count", "Ġ>", "Ġmin", "_", "labelled", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġsegments", "_", "alignment", "[", "segment", "_", "index", "]", "Ġ=", "Ġnp", ".", "argmax", "(", "mean", "_", "similarity", "_", "scores", ")", "ĊĊĠĠĠ", "Ġreturn", "Ġsegments", "_", "alignment", "ĊĊ", "Ċ", "def", "Ġ_", "calculate", "_", "sm", "allest", "_", "gap", "_", "to", "_", "adjacent", "(", "segment", "_", "index", ",", "Ġsegments", ",", "Ġsegments", "_", "alignment", "):", "ĊĠĠĠ", "Ġ#", "Ġevaluate", "Ġhow", "Ġfar", "Ġaway", "Ġthis", "Ġsegment", "Ġis", "Ġfrom", "Ġknown", "Ġvalues", "ĊĠĠĠ", "Ġscore", "Ġ=", "Ġnp", ".", "nan", "ĊĠĠĠ", "Ġsegment", "_", "offset", "Ġ=", "Ġnp", ".", "nan", "ĊĠĠĠ", "Ġif", "Ġsegment", "_", "index", "Ġ-", "Ġ", "1", "Ġ>=", "Ġ", "0", "Ġand", "Ġnot", "Ġsegments", "_", "alignment", ".", "mask", "[", "segment", "_", "index", "Ġ-", "Ġ", "1", "]:", "ĊĠĠĠĠĠĠĠ", "Ġgap", "Ġ=", "Ġsegments", "[", "segment", "_", "index", "][", "0", "]", "Ġ-", "Ġsegments", "[", "segment", "_", "index", "Ġ-", "Ġ", "1", "][", "-", "1", "]", "ĊĠĠĠĠĠĠĠ", "Ġscore", "Ġ=", "Ġgap", "ĊĠĠĠĠĠĠĠ", "Ġsegment", "_", "offset", "Ġ=", "Ġ-", "1", "ĊĠĠĠ", "Ġif", "Ġsegment", "_", "index", "Ġ+", "Ġ", "1", "Ġ<", "Ġlen", "(", "segments", "_", "alignment", ")", "Ġand", "Ġnot", "Ġsegments", "_", "alignment", ".", "mask", "[", "segment", "_", "index", "Ġ+", "Ġ", "1", "]:", "ĊĠĠĠĠĠĠĠ", "Ġgap", "Ġ=", "Ġsegments", "[", "segment", "_", "index", "Ġ+", "Ġ", "1", "][", "0", "]", "Ġ-", "Ġsegments", "[", "segment", "_", "index", "][", "-", "1", "]", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnp", ".", "isnan", "(", "score", ")", "Ġor", "Ġgap", "Ġ<", "Ġscore", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġscore", "Ġ=", "Ġgap", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsegment", "_", "offset", "Ġ=", "Ġ", "1", "ĊĊĠĠĠ", "Ġreturn", "Ġscore", ",", "Ġsegment", "_", "offset", "ĊĊ", "Ċ", "def", "Ġ_", "align", "_", "un", "labelled", "_", "segments", "_", "with", "_", "ad", "jac", "ents", "(", "segments", ",", "Ġsegments", "_", "alignment", ",", "Ġpartition", "ed", "_", "s", "ke", "letons", ",", "Ġframe", "_", "rate", ":", "Ġfloat", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "ĠResolve", "Ġthe", "Ġun", "aligned", "Ġsegments", "Ġby", "Ġcomparing", "Ġwith", "Ġadjacent", "Ġsegments", ",", "ĊĠĠĠ", "Ġstarting", "Ġwith", "Ġthe", "Ġsegments", "Ġthat", "Ġhave", "Ġthe", "Ġleast", "Ġframes", "Ġgap", "Ġbetween", "Ġan", "Ġadjacent", "Ġtrusted", "Ġsegment", "ĊĠĠĠ", "ĠDon", "'t", "Ġalign", "Ġisolated", "Ġsegments", "Ġwhich", "Ġa", "Ġbig", "Ġgap", "Ġbetween", "Ġtrusted", "Ġsegments", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġmaximum", "_", "gap", "_", "allowed", "Ġ=", "Ġmax", "(", "1", ",", "Ġint", "(", "frame", "_", "rate", "Ġ*", "ĠMAX", "IMUM", "_", "GAP", "_", "ALLOWED", "_", "WITH", "_", "ADJ", "AC", "ENT", "_", "SEGMENT", "_", "SEC", "))", "ĊĠĠĠ", "Ġ#", "Ġensure", "Ġthat", "Ġif", "Ġno", "Ġsegments", "Ġhave", "Ġbeen", "Ġaligned", "Ġat", "Ġall", ",", "Ġpick", "Ġone", "Ġsolution", "Ġrandomly", "Ġto", "Ġstart", "ĊĠĠĠ", "Ġif", "Ġnp", ".", "all", "(", "segments", "_", "alignment", ".", "mask", "):", "ĊĠĠĠĠĠĠĠ", "Ġlogger", ".", "info", "(\"", "There", "Ġare", "Ġno", "Ġtrusted", "Ġsegments", "Ġwith", "Ġhead", "Ġdecision", "Ġto", "Ġresolve", "Ġthe", "Ġwhole", "Ġvideo", ",", "Ġstopping", "Ġanalysis", ".\")", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġsegments", "_", "alignment", "ĊĊĠĠĠ", "Ġ#", "Ġfix", "Ġin", "Ġpriority", "Ġthe", "Ġsegments", "Ġwith", "Ġknown", "Ġadjacent", "Ġframes", "Ġwith", "Ġlittle", "Ġgap", "ĊĠĠĠ", "Ġ#", "Ġuntil", "Ġall", "Ġsegments", "Ġare", "Ġaligned", "Ġexcept", "Ġthe", "Ġisolated", "Ġones", "Ġ(", "f", "urther", "Ġthan", "Ġmaximum", "_", "gap", "_", "allowed", ")", "ĊĠĠĠ", "Ġun", "aligned", "Ġ=", "Ġnp", ".", "where", "(", "segments", "_", "alignment", ".", "mask", ")[", "0", "]", "ĊĠĠĠ", "Ġwhile", "Ġlen", "(", "un", "aligned", ")", "Ġ>", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġwe", "Ġfirst", "Ġpick", "Ġthe", "Ġbest", "Ġcandidate", "Ġsegment", "Ġto", "Ġalign", "Ġ(", "there", "Ġare", "Ġknown", "Ġframes", "Ġnearby", "Ġbefore", "Ġor", "Ġafter", "Ġor", "Ġboth", ")", "ĊĠĠĠĠĠĠĠ", "Ġall", "_", "g", "aps", "Ġ=", "Ġ[", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ_", "calculate", "_", "sm", "allest", "_", "gap", "_", "to", "_", "adjacent", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġsegment", "_", "index", "=", "x", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġsegments", "=", "segments", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġsegments", "_", "alignment", "=", "segments", "_", "alignment", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġx", "Ġin", "Ġun", "aligned", "ĊĠĠĠĠĠĠĠ", "Ġ]", "ĊĠĠĠĠĠĠĠ", "Ġsegment", "_", "to", "_", "fix", "_", "index", "Ġ=", "Ġnp", ".", "nan", "arg", "min", "(", "all", "_", "g", "aps", ",", "Ġaxis", "=", "0", ")[", "0", "]", "ĊĠĠĠĠĠĠĠ", "Ġgap", "_", "to", "_", "adjacent", "_", "segment", ",", "Ġadjacent", "_", "segment", "_", "offset", "Ġ=", "Ġall", "_", "g", "aps", "[", "segment", "_", "to", "_", "fix", "_", "index", "]", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "Ġabort", "Ġif", "Ġonly", "Ġisolated", "Ġsegments", "Ġare", "Ġleft", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġgap", "_", "to", "_", "adjacent", "_", "segment", "Ġ>", "Ġmaximum", "_", "gap", "_", "allowed", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġbreak", "ĊĊĠĠĠĠĠĠĠ", "Ġcur", "_", "segment", "_", "index", "Ġ=", "Ġun", "aligned", "[", "segment", "_", "to", "_", "fix", "_", "index", "]", "ĊĠĠĠĠĠĠĠ", "Ġcur", "_", "segment", "_", "skeleton", "Ġ=", "Ġpartition", "ed", "_", "s", "ke", "letons", "[", "segments", "[", "cur", "_", "segment", "_", "index", "]]", "ĊĊĠĠĠĠĠĠĠ", "Ġadjacent", "_", "segment", "_", "index", "Ġ=", "Ġcur", "_", "segment", "_", "index", "Ġ+", "Ġadjacent", "_", "segment", "_", "offset", "ĊĠĠĠĠĠĠĠ", "Ġadjacent", "_", "alignment", "Ġ=", "Ġsegments", "_", "alignment", "[", "adjacent", "_", "segment", "_", "index", "]", "ĊĠĠĠĠĠĠĠ", "Ġadjacent", "_", "segment", "Ġ=", "Ġsegments", "[", "adjacent", "_", "segment", "_", "index", "]", "ĊĠĠĠĠĠĠĠ", "Ġadjacent", "_", "segment", "_", "skeleton", "Ġ=", "Ġpartition", "ed", "_", "s", "ke", "letons", "[", "adjacent", "_", "segment", "][:", ",", "Ġadjacent", "_", "alignment", "]", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġadjacent", "_", "segment", "_", "offset", "Ġ==", "Ġ-", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġclosest", "_", "un", "aligned", "_", "skeleton", "Ġ=", "Ġcur", "_", "segment", "_", "skeleton", "[", "0", "]", "Ġ", "Ġ#", "Ġfirst", "Ġframe", "Ġof", "Ġcur", "Ġsegment", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġclosest", "_", "known", "_", "skeleton", "Ġ=", "Ġadjacent", "_", "segment", "_", "skeleton", "[-", "1", "]", "Ġ", "Ġ#", "Ġlast", "Ġframe", "Ġof", "Ġprev", "Ġsegment", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġadjacent", "_", "segment", "_", "offset", "Ġ==", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġclosest", "_", "un", "aligned", "_", "skeleton", "Ġ=", "Ġcur", "_", "segment", "_", "skeleton", "[-", "1", "]", "Ġ", "Ġ#", "Ġlast", "Ġframe", "Ġof", "Ġcur", "Ġsegment", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġclosest", "_", "known", "_", "skeleton", "Ġ=", "Ġadjacent", "_", "segment", "_", "skeleton", "[", "0", "]", "Ġ", "Ġ#", "Ġfirst", "Ġframe", "Ġof", "Ġnext", "Ġsegment", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġraise", "ĠValueError", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġdist", "s", "Ġ=", "Ġ[", "skeleton", "_", "distance", "(", "closest", "_", "known", "_", "skeleton", ",", "Ġsk", "el", ")", "Ġfor", "Ġsk", "el", "Ġin", "Ġclosest", "_", "un", "aligned", "_", "skeleton", "]", "ĊĠĠĠĠĠĠĠ", "Ġsegments", "_", "alignment", "[", "cur", "_", "segment", "_", "index", "]", "Ġ=", "Ġint", "(", "np", ".", "argmax", "(", "dists", "))", "ĊĊĠĠĠĠĠĠĠ", "Ġun", "aligned", "Ġ=", "Ġnp", ".", "where", "(", "segments", "_", "alignment", ".", "mask", ")[", "0", "]", "ĊĊĠĠĠ", "Ġreturn", "Ġsegments", "_", "alignment", "ĊĊ", "Ċ", "def", "Ġ_", "init", "_", "unified", "_", "series", "(", "mixed", "_", "series", "):", "ĊĠĠĠ", "Ġreturn", "Ġma", ".", "masked", "_", "all", "((", "mixed", "_", "series", ".", "shape", "[", "0", "],", ")", "Ġ+", "Ġmixed", "_", "series", ".", "shape", "[", "2", ":],", "Ġdtype", "=", "mixed", "_", "series", ".", "dtype", ")", "ĊĊ", "Ċ", "def", "Ġresolve", "_", "head", "_", "tail", "(", "ĊĠĠĠ", "Ġsh", "uffled", "_", "results", ":", "ĠSh", "uffled", "Results", ",", "ĊĠĠĠ", "Ġoriginal", "_", "results", ":", "ĠOriginal", "Results", ",", "ĊĠĠĠ", "Ġframe", "_", "rate", ":", "Ġfloat", ",", "ĊĠĠĠ", "Ġscore", "_", "threshold", ",", "Ċ", ")", "Ġ->", "ĠBase", "Results", ":", "ĊĠĠĠ", "Ġlen", "_", "series", "Ġ=", "Ġlen", "(", "sh", "uffled", "_", "results", ")", "ĊĊĠĠĠ", "Ġ#", "ĠCreate", "Ġcontinuous", "Ġsegments", "Ġwithout", "Ġjumps", "ĊĠĠĠ", "Ġpartition", "ed", "_", "results", "Ġ=", "Ġ_", "make", "_", "continuous", "_", "partitions", "(", "ĊĠĠĠĠĠĠĠ", "Ġscore", "_", "threshold", "=", "score", "_", "threshold", ",", "ĊĠĠĠĠĠĠĠ", "Ġframe", "_", "rate", "=", "frame", "_", "rate", ",", "ĊĠĠĠĠĠĠĠ", "Ġsh", "uffled", "_", "results", "=", "sh", "uffled", "_", "results", ",", "ĊĠĠĠ", "Ġ)", "ĊĠĠĠ", "Ġsegments", "Ġ=", "Ġpartition", "ed", "_", "results", ".", "get", "_", "segments", "()", "ĊĊĠĠĠ", "Ġif", "Ġlen", "(", "segments", ")", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġlogger", ".", "error", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġf", "\"", "Couldn", "'t", "Ġfind", "Ġany", "Ġcontinuous", "Ġsegments", "Ġof", "Ġpredicted", "Ġdata", "Ġabove", "Ġthe", "Ġthreshold", "Ġ{", "score", "_", "threshold", "},", "Ġstopping", "Ġanalysis", ".\"", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ_", "Final", "Results", ".", "from", "_", "sh", "uffled", "(", "sh", "uffled", "_", "results", ")", "ĊĊĠĠĠ", "Ġ#", "ĠChoose", "Ġeach", "Ġsegment", "Ġglobal", "Ġalignment", "Ġby", "Ġcomparing", "Ġwith", "Ġlabel", "led", "Ġdata", "ĊĠĠĠ", "Ġsegments", "_", "alignment", "Ġ=", "Ġ_", "align", "_", "segments", "_", "with", "_", "labels", "(", "segments", ",", "Ġpartition", "ed", "_", "results", ".", "s", "ke", "letons", ",", "Ġoriginal", "_", "results", ".", "s", "ke", "letons", ")", "ĊĊĠĠĠ", "Ġ#", "ĠFix", "Ġun", "aligned", "Ġsegments", "Ġhere", "Ġby", "Ġcomparing", "Ġs", "ke", "letons", "Ġwith", "Ġne", "ighb", "oring", "Ġsegments", "Ġiter", "atively", "ĊĠĠĠ", "Ġsegments", "_", "alignment", "Ġ=", "Ġ_", "align", "_", "un", "labelled", "_", "segments", "_", "with", "_", "ad", "jac", "ents", "(", "ĊĠĠĠĠĠĠĠ", "Ġsegments", ",", "Ġsegments", "_", "alignment", ",", "Ġpartition", "ed", "_", "results", ".", "s", "ke", "letons", ",", "Ġframe", "_", "rate", "ĊĠĠĠ", "Ġ)", "ĊĊĠĠĠ", "Ġ#", "ĠCompile", "Ġresults", "ĊĠĠĠ", "Ġresolved", "_", "results", "Ġ=", "Ġ_", "Resolved", "Results", "(", "partition", "ed", "_", "results", ")", "ĊĠĠĠ", "Ġfor", "Ġsegment", ",", "Ġsegment", "_", "alignment", "Ġin", "Ġzip", "(", "segments", ",", "Ġsegments", "_", "alignment", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnot", "Ġma", ".", "is", "_", "masked", "(", "segment", "_", "alignment", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġresolved", "_", "results", ".", "resolve", "(", "segment", ",", "Ġsegment", "_", "alignment", ")", "ĊĊĠĠĠ", "Ġ#", "ĠFilter", "Ġthe", "Ġfinal", "Ġresults", "Ġagain", "Ġby", "Ġscore", "Ġthreshold", "ĊĠĠĠ", "Ġlow", "_", "scores", "_", "indices", "Ġ=", "Ġnp", ".", "where", "(", "ma", ".", "masked", "_", "less", "(", "resolved", "_", "results", ".", "scores", ",", "Ġscore", "_", "threshold", ").", "mask", ")[", "0", "]", "ĊĠĠĠ", "Ġresolved", "_", "results", ".", "mask", "(", "low", "_", "scores", "_", "indices", ")", "ĊĊĠĠĠ", "Ġnum", "_", "success", "Ġ=", "Ġresolved", "_", "results", ".", "num", "_", "valid", "()", "ĊĠĠĠ", "Ġoriginal", "_", "num", "_", "success", "Ġ=", "Ġnp", ".", "any", "(", "~", "np", ".", "isnan", "(", "original", "_", "results", ".", "s", "ke", "letons", "),", "Ġaxis", "=(", "1", ",", "Ġ", "2", ")).", "sum", "()", "ĊĠĠĠ", "Ġlogger", ".", "info", "(", "ĊĠĠĠĠĠĠĠ", "Ġf", "\"", "Resolved", "Ġhead", "/", "tail", ",", "Ġ{", "num", "_", "success", "}", "Ġout", "Ġof", "Ġ{", "len", "_", "series", "}", "Ġframes", "Ġanalyzed", "Ġsuccessfully", "Ġ\"", "ĊĠĠĠĠĠĠĠ", "Ġf", "\"", "({", "float", "(", "num", "_", "success", ")", "Ġ/", "Ġlen", "_", "series", "Ġ*", "Ġ", "1", "0", "0", ":.", "1", "f", "}%", ")", "Ġ(", "original", "Ġfeatures", "Ġ:", "Ġ{", "original", "_", "num", "_", "success", "}\"", "ĊĠĠĠĠĠĠĠ", "Ġf", "\"", "Ġor", "Ġ{(", "float", "(", "original", "_", "num", "_", "success", ")", "Ġ/", "Ġlen", "_", "series", "Ġ*", "Ġ", "1", "0", "0", "):", ".", "1", "f", "}%", "Ġof", "Ġtotal", ")\"", "ĊĠĠĠ", "Ġ)", "ĊĠĠĠ", "Ġif", "Ġnum", "_", "success", "Ġ<", "Ġoriginal", "_", "num", "_", "success", ":", "ĊĠĠĠĠĠĠĠ", "Ġlogger", ".", "warning", "(", "f", "\"", "Original", "Ġresults", "Ġhad", "Ġ{", "original", "_", "num", "_", "success", "Ġ-", "Ġnum", "_", "success", "}", "Ġmore", "Ġsuccessfully", "Ġanalyzed", "Ġframes", "!\")", "ĊĊĠĠĠ", "Ġreturn", "Ġ_", "Final", "Results", ".", "from", "_", "resolved", "(", "resolved", "_", "results", ")", "Ċ" ]
[ 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 4, 5, 5, 5, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 16, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 63, 63, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 98, 98, 98, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 101, 102, 102, 102, 102, 102, 102, 102, 102, 102, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 105, 105, 105, 105, 105, 105, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 109, 109, 111, 111, 111, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 113, 113, 113, 113, 113, 113, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 117, 117, 119, 120, 120, 120, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 122, 122, 122, 122, 122, 122, 122, 122, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 139, 139, 139, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 141, 141, 141, 141, 141, 142, 142, 142, 142, 142, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 145, 145, 146, 146, 146, 146, 146, 146, 146, 146, 147, 147, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 152, 152, 152, 152, 152, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 157, 157, 157, 157, 157, 157, 159, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 161, 161, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 164, 164, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 173, 173, 173, 173, 173, 173, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 176, 176, 176, 176, 176, 176, 176, 176, 176, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 183, 183, 183, 183, 183, 185, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 188, 188, 188, 188, 188, 188, 189, 189, 189, 189, 189, 189, 189, 189, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 192, 192, 192, 193, 193, 193, 193, 193, 193, 193, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 197, 197, 197, 197, 198, 198, 198, 198, 198, 198, 198, 200, 200, 200, 200, 200, 200, 200, 202, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 204, 204, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 208, 208, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 213, 213, 213, 213, 213, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 220, 220, 220, 220, 220, 220, 220, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 222, 222, 222, 222, 222, 222, 222, 223, 223, 223, 223, 223, 224, 224, 224, 224, 224, 224, 224, 224, 224, 225, 225, 226, 226, 226, 226, 226, 226, 227, 227, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 231, 231, 231, 231, 231, 231, 231, 231, 231, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 233, 233, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 249, 249, 249, 250, 250, 250, 250, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 257, 257, 257, 257, 257, 259, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 263, 264, 264, 264, 264, 264, 264, 264, 264, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 266, 266, 266, 266, 266, 266, 266, 266, 267, 267, 267, 267, 267, 267, 267, 268, 268, 268, 268, 268, 269, 269, 269, 269, 269, 269, 270, 270, 270, 270, 270, 270, 270, 270, 270, 270, 270, 270, 272, 272, 272, 272, 272, 272, 272, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 274, 274, 274, 274, 274, 274, 274, 274, 274, 275, 275, 275, 275, 275, 275, 275, 275, 275, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 277, 277, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 281, 281, 281, 281, 281, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 283, 283, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 292, 292, 294, 294, 294, 294, 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 298, 298, 298, 298, 298, 298, 298, 298, 298, 298, 298, 298, 298, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 306, 306, 306, 306, 306, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 310, 310, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314 ]
[ 1, 4, 1, 5, 12, 21, 25, 31, 34, 42, 46, 51, 52, 56, 68, 71, 73, 83, 89, 94, 101, 102, 1, 4, 1, 1, 7, 15, 1, 1, 7, 13, 16, 19, 1, 7, 13, 14, 16, 19, 22, 1, 1, 5, 9, 11, 14, 15, 19, 20, 28, 29, 36, 43, 49, 50, 58, 59, 68, 69, 77, 1, 5, 9, 11, 14, 15, 19, 20, 27, 28, 33, 37, 44, 46, 4, 9, 16, 17, 4, 7, 13, 20, 21, 4, 13, 20, 21, 1, 2, 1, 1, 8, 9, 14, 20, 22, 1, 7, 9, 17, 18, 27, 30, 34, 37, 1, 7, 8, 16, 17, 24, 25, 30, 31, 1, 1, 2, 12, 15, 23, 32, 39, 45, 46, 49, 52, 63, 74, 78, 85, 88, 92, 97, 105, 1, 5, 7, 9, 11, 12, 15, 18, 19, 23, 24, 33, 35, 38, 39, 42, 43, 46, 47, 48, 49, 50, 1, 1, 2, 5, 14, 21, 24, 27, 32, 35, 39, 44, 52, 55, 60, 64, 72, 77, 84, 87, 95, 101, 1, 2, 4, 7, 15, 19, 28, 38, 39, 1, 5, 8, 10, 11, 18, 19, 23, 24, 30, 31, 34, 36, 37, 38, 39, 40, 1, 1, 2, 10, 14, 20, 29, 34, 39, 44, 51, 54, 62, 1, 4, 5, 12, 13, 17, 18, 21, 23, 24, 25, 26, 27, 1, 1, 2, 6, 8, 14, 23, 32, 37, 41, 46, 51, 56, 63, 66, 74, 80, 85, 93, 102, 1, 8, 9, 12, 13, 20, 21, 25, 26, 29, 31, 34, 35, 42, 43, 46, 48, 49, 50, 1, 1, 4, 6, 10, 11, 20, 22, 23, 29, 30, 32, 38, 39, 45, 46, 49, 50, 57, 59, 4, 11, 14, 15, 21, 22, 25, 26, 30, 31, 33, 39, 40, 46, 47, 1, 1, 4, 6, 9, 10, 19, 20, 29, 31, 32, 38, 39, 42, 48, 49, 55, 56, 62, 63, 68, 69, 73, 74, 84, 85, 89, 91, 4, 14, 16, 17, 23, 24, 29, 30, 35, 37, 38, 39, 41, 44, 50, 51, 57, 58, 63, 64, 69, 70, 80, 81, 4, 14, 16, 17, 23, 24, 29, 30, 35, 37, 38, 39, 41, 44, 50, 51, 57, 58, 63, 64, 69, 70, 71, 72, 74, 84, 85, 1, 1, 6, 8, 17, 19, 26, 27, 31, 38, 40, 4, 8, 11, 15, 18, 22, 23, 26, 32, 33, 40, 41, 44, 50, 57, 59, 8, 13, 14, 17, 18, 27, 29, 31, 32, 8, 13, 14, 24, 26, 29, 30, 36, 37, 40, 42, 45, 46, 48, 54, 55, 62, 64, 66, 72, 73, 76, 77, 8, 13, 15, 17, 23, 24, 31, 33, 36, 42, 43, 50, 8, 14, 16, 18, 22, 23, 32, 34, 35, 41, 42, 44, 50, 51, 58, 59, 64, 65, 8, 10, 12, 18, 20, 22, 26, 27, 36, 38, 39, 45, 46, 48, 54, 55, 62, 63, 64, 66, 72, 73, 8, 15, 17, 19, 23, 24, 33, 35, 36, 42, 43, 45, 51, 52, 59, 60, 66, 67, 8, 14, 19, 23, 26, 31, 32, 37, 38, 40, 42, 48, 49, 50, 52, 58, 59, 66, 67, 73, 74, 4, 8, 13, 14, 18, 19, 27, 29, 8, 13, 14, 19, 20, 24, 25, 32, 33, 35, 40, 8, 13, 14, 15, 17, 23, 24, 28, 29, 36, 37, 39, 44, 8, 13, 14, 20, 21, 25, 26, 33, 34, 36, 41, 8, 13, 14, 24, 25, 29, 30, 37, 38, 40, 45, 4, 8, 12, 13, 22, 23, 27, 28, 34, 35, 40, 41, 45, 46, 56, 57, 61, 62, 66, 67, 76, 77, 82, 84, 90, 92, 8, 11, 15, 16, 25, 26, 12, 17, 18, 21, 22, 31, 34, 35, 36, 8, 10, 13, 14, 23, 24, 28, 29, 34, 35, 40, 42, 44, 50, 51, 58, 59, 64, 65, 71, 72, 77, 78, 88, 89, 8, 10, 13, 14, 23, 24, 28, 29, 30, 32, 38, 39, 44, 46, 48, 54, 55, 62, 63, 64, 66, 72, 73, 79, 80, 85, 86, 96, 97, 8, 10, 13, 14, 23, 24, 28, 29, 35, 36, 41, 43, 45, 51, 52, 59, 60, 66, 67, 73, 74, 79, 80, 90, 91, 8, 13, 14, 24, 25, 30, 31, 36, 37, 39, 44, 45, 48, 49, 58, 4, 8, 10, 13, 14, 23, 24, 31, 32, 36, 37, 47, 48, 53, 54, 58, 60, 8, 15, 18, 19, 24, 25, 29, 30, 40, 43, 53, 54, 59, 61, 62, 63, 4, 8, 12, 13, 21, 22, 26, 28, 8, 12, 13, 23, 24, 31, 33, 36, 37, 43, 44, 48, 49, 59, 60, 66, 68, 69, 71, 8, 15, 17, 12, 17, 19, 22, 23, 32, 33, 40, 41, 50, 51, 56, 57, 61, 71, 72, 77, 80, 84, 85, 95, 96, 103, 106, 116, 117, 122, 125, 126, 127, 8, 10, 1, 1, 6, 8, 16, 23, 24, 28, 35, 37, 4, 8, 11, 15, 18, 22, 23, 33, 35, 36, 43, 44, 46, 55, 57, 64, 66, 8, 13, 15, 24, 26, 27, 34, 36, 46, 48, 49, 56, 8, 14, 16, 18, 22, 23, 30, 31, 37, 38, 47, 49, 50, 57, 58, 63, 64, 8, 10, 12, 18, 20, 22, 26, 27, 34, 35, 41, 42, 51, 53, 54, 61, 62, 63, 65, 71, 72, 8, 15, 17, 19, 23, 24, 31, 32, 38, 39, 48, 50, 51, 58, 59, 65, 66, 8, 14, 19, 23, 26, 31, 32, 37, 38, 40, 42, 48, 49, 50, 52, 58, 59, 66, 67, 73, 74, 4, 8, 16, 17, 21, 22, 30, 31, 39, 40, 49, 51, 8, 13, 14, 20, 21, 28, 29, 31, 36, 38, 47, 49, 50, 57, 58, 64, 65, 72, 75, 76, 84, 85, 94, 95, 8, 13, 14, 15, 17, 23, 24, 31, 32, 34, 39, 41, 50, 52, 53, 60, 61, 62, 64, 70, 71, 78, 81, 82, 90, 91, 100, 101, 8, 13, 14, 19, 20, 27, 28, 30, 35, 37, 46, 48, 49, 56, 57, 62, 63, 70, 73, 74, 82, 83, 92, 93, 4, 8, 13, 14, 18, 19, 27, 29, 8, 13, 14, 19, 20, 24, 25, 32, 33, 35, 40, 8, 13, 14, 15, 17, 23, 24, 28, 29, 36, 37, 39, 44, 8, 13, 14, 20, 21, 25, 26, 33, 34, 36, 41, 4, 8, 12, 13, 18, 19, 23, 25, 8, 15, 18, 19, 22, 23, 24, 28, 29, 35, 36, 40, 41, 1, 1, 6, 8, 13, 20, 21, 25, 32, 34, 4, 6, 17, 4, 8, 13, 14, 22, 23, 26, 27, 36, 37, 44, 45, 47, 55, 62, 64, 8, 15, 17, 22, 29, 30, 12, 18, 19, 27, 28, 35, 36, 41, 42, 48, 49, 51, 52, 55, 57, 12, 14, 16, 22, 23, 31, 32, 39, 40, 41, 43, 49, 50, 56, 57, 59, 60, 63, 65, 12, 19, 20, 28, 29, 36, 37, 43, 44, 50, 51, 53, 54, 57, 59, 8, 10, 4, 6, 17, 4, 8, 13, 14, 16, 22, 23, 26, 27, 30, 36, 37, 44, 45, 48, 54, 61, 63, 8, 15, 17, 22, 29, 30, 12, 18, 19, 21, 22, 26, 27, 31, 32, 34, 40, 41, 48, 49, 54, 57, 58, 59, 61, 64, 65, 68, 70, 12, 14, 16, 22, 23, 25, 26, 30, 31, 35, 36, 38, 44, 45, 52, 53, 59, 62, 63, 64, 66, 69, 70, 73, 75, 12, 19, 20, 22, 23, 27, 28, 32, 33, 35, 41, 42, 49, 50, 51, 53, 59, 62, 63, 64, 66, 69, 70, 73, 75, 8, 10, 1, 1, 4, 6, 10, 11, 21, 22, 32, 33, 4, 7, 13, 14, 21, 22, 25, 31, 38, 39, 45, 46, 55, 56, 62, 63, 69, 70, 74, 75, 81, 1, 2, 5, 7, 16, 18, 25, 26, 4, 9, 10, 16, 18, 22, 23, 24, 25, 29, 30, 35, 36, 40, 42, 47, 50, 52, 53, 60, 61, 65, 66, 72, 73, 76, 78, 4, 8, 9, 16, 17, 21, 23, 27, 28, 29, 30, 34, 35, 40, 41, 45, 47, 51, 52, 59, 60, 64, 65, 68, 70, 4, 14, 16, 17, 24, 26, 28, 37, 39, 46, 47, 49, 55, 56, 63, 64, 4, 6, 14, 18, 24, 31, 37, 39, 42, 46, 54, 60, 63, 68, 75, 79, 83, 84, 4, 9, 10, 15, 16, 22, 24, 27, 28, 33, 34, 36, 37, 44, 45, 50, 51, 53, 54, 57, 58, 60, 66, 67, 74, 75, 81, 82, 87, 88, 89, 91, 97, 98, 107, 110, 111, 112, 4, 8, 14, 15, 20, 23, 28, 29, 34, 35, 41, 42, 8, 13, 14, 19, 21, 31, 33, 34, 41, 42, 47, 48, 53, 54, 59, 61, 65, 66, 70, 71, 77, 78, 84, 85, 90, 91, 93, 99, 100, 105, 106, 107, 108, 109, 8, 10, 13, 19, 22, 24, 28, 32, 34, 39, 40, 46, 49, 55, 57, 61, 71, 72, 77, 79, 86, 92, 94, 95, 96, 8, 11, 14, 15, 18, 19, 21, 22, 25, 26, 30, 31, 36, 37, 41, 42, 47, 48, 49, 52, 12, 22, 24, 25, 32, 33, 36, 37, 46, 47, 52, 53, 58, 59, 64, 65, 70, 71, 81, 82, 83, 84, 88, 89, 98, 99, 103, 104, 8, 10, 20, 23, 28, 31, 35, 40, 41, 47, 53, 58, 62, 70, 74, 78, 84, 88, 91, 94, 98, 107, 111, 8, 10, 20, 23, 28, 31, 35, 42, 47, 58, 8, 13, 14, 12, 17, 18, 23, 24, 29, 31, 34, 35, 40, 41, 42, 44, 45, 48, 49, 53, 54, 59, 60, 64, 65, 70, 71, 72, 75, 76, 78, 79, 80, 81, 12, 17, 18, 20, 22, 16, 22, 23, 31, 32, 20, 23, 29, 30, 37, 38, 43, 44, 49, 50, 55, 56, 58, 59, 61, 63, 20, 25, 26, 31, 32, 36, 37, 42, 43, 48, 50, 16, 18, 16, 20, 22, 25, 31, 32, 33, 34, 12, 14, 12, 22, 24, 28, 29, 31, 32, 35, 38, 39, 44, 46, 12, 15, 20, 21, 22, 31, 32, 34, 39, 41, 43, 45, 46, 49, 52, 53, 57, 58, 67, 68, 16, 26, 28, 29, 36, 37, 40, 41, 50, 51, 56, 57, 62, 63, 68, 69, 74, 75, 85, 86, 95, 96, 4, 6, 14, 20, 29, 4, 8, 12, 13, 22, 23, 30, 33, 43, 45, 46, 53, 54, 57, 58, 66, 69, 8, 11, 15, 16, 19, 20, 29, 30, 37, 38, 40, 44, 45, 52, 53, 57, 58, 12, 22, 24, 25, 32, 33, 37, 38, 41, 42, 51, 52, 59, 60, 4, 11, 21, 23, 24, 31, 1, 1, 4, 6, 11, 12, 20, 21, 25, 26, 32, 33, 41, 42, 52, 54, 55, 56, 58, 64, 65, 71, 74, 75, 76, 78, 84, 85, 89, 90, 98, 99, 100, 102, 4, 8, 4, 10, 14, 19, 20, 24, 34, 39, 43, 51, 54, 58, 64, 68, 77, 80, 85, 88, 92, 101, 102, 5, 8, 14, 17, 24, 30, 33, 38, 41, 45, 53, 4, 8, 4, 13, 14, 23, 25, 28, 29, 35, 36, 39, 41, 44, 45, 53, 55, 57, 63, 64, 66, 67, 71, 72, 73, 4, 8, 16, 17, 22, 23, 31, 34, 44, 45, 53, 55, 8, 16, 17, 18, 20, 26, 28, 34, 37, 38, 39, 41, 47, 48, 55, 56, 8, 12, 13, 16, 17, 25, 27, 30, 31, 34, 35, 36, 38, 39, 44, 45, 52, 53, 54, 56, 62, 64, 69, 71, 72, 73, 74, 75, 77, 8, 15, 16, 21, 23, 26, 27, 30, 31, 34, 35, 38, 39, 47, 48, 8, 12, 13, 19, 21, 23, 25, 26, 29, 30, 39, 41, 42, 43, 45, 51, 52, 59, 61, 65, 66, 71, 73, 74, 75, 76, 77, 78, 79, 80, 82, 8, 11, 12, 19, 21, 24, 25, 32, 33, 36, 37, 40, 41, 44, 45, 53, 54, 58, 59, 65, 66, 8, 19, 20, 26, 28, 31, 8, 12, 18, 19, 21, 23, 24, 34, 36, 37, 45, 48, 52, 53, 60, 61, 62, 64, 70, 71, 73, 74, 81, 83, 93, 95, 96, 97, 99, 105, 106, 113, 115, 117, 118, 125, 128, 12, 17, 18, 20, 22, 30, 31, 39, 40, 45, 46, 48, 50, 51, 53, 54, 58, 60, 63, 73, 75, 76, 84, 85, 12, 23, 24, 30, 31, 37, 38, 43, 44, 8, 11, 15, 16, 26, 27, 33, 34, 36, 37, 38, 39, 12, 17, 18, 28, 29, 35, 37, 40, 41, 45, 46, 56, 57, 63, 64, 69, 70, 71, 72, 12, 15, 20, 21, 31, 32, 38, 39, 40, 41, 43, 48, 49, 59, 60, 66, 67, 68, 69, 71, 72, 73, 77, 84, 85, 90, 92, 96, 97, 105, 106, 16, 25, 26, 35, 36, 43, 44, 49, 50, 52, 55, 56, 62, 63, 67, 68, 78, 79, 85, 86, 4, 11, 20, 21, 30, 1, 1, 4, 6, 15, 16, 18, 24, 25, 28, 29, 31, 32, 40, 41, 48, 49, 54, 55, 64, 65, 74, 75, 84, 86, 4, 6, 15, 19, 23, 28, 33, 41, 44, 49, 55, 62, 4, 10, 12, 15, 16, 19, 4, 12, 13, 19, 21, 24, 25, 28, 4, 7, 15, 16, 21, 23, 24, 25, 28, 29, 30, 34, 38, 47, 48, 57, 58, 62, 63, 70, 71, 76, 78, 79, 80, 82, 8, 12, 14, 23, 24, 31, 32, 37, 39, 40, 41, 43, 52, 53, 60, 61, 66, 68, 69, 70, 72, 73, 74, 75, 8, 14, 16, 20, 8, 16, 17, 23, 25, 27, 28, 4, 7, 15, 16, 21, 23, 24, 25, 27, 31, 32, 40, 41, 50, 51, 55, 59, 68, 69, 78, 79, 83, 84, 91, 92, 97, 99, 100, 101, 103, 8, 12, 14, 23, 24, 31, 32, 37, 39, 40, 41, 43, 44, 45, 47, 56, 57, 64, 65, 70, 72, 73, 74, 75, 8, 11, 14, 15, 20, 21, 26, 27, 30, 34, 36, 42, 43, 12, 18, 20, 24, 12, 20, 21, 27, 29, 30, 31, 4, 11, 17, 18, 26, 27, 33, 1, 1, 4, 6, 11, 12, 14, 22, 23, 31, 32, 36, 37, 39, 42, 46, 47, 55, 56, 65, 66, 75, 76, 86, 88, 89, 90, 92, 98, 99, 105, 106, 110, 111, 117, 119, 4, 8, 4, 12, 16, 19, 26, 35, 38, 48, 53, 62, 71, 72, 4, 13, 18, 22, 31, 36, 41, 45, 51, 58, 62, 70, 73, 82, 90, 98, 4, 8, 10, 16, 25, 34, 40, 42, 46, 50, 58, 66, 75, 4, 8, 4, 12, 13, 16, 17, 24, 26, 30, 31, 32, 33, 37, 38, 43, 44, 48, 50, 54, 58, 59, 62, 63, 70, 71, 75, 76, 79, 81, 84, 85, 92, 93, 96, 98, 4, 6, 13, 18, 21, 24, 33, 38, 43, 51, 54, 58, 59, 64, 68, 77, 86, 89, 95, 4, 7, 10, 11, 14, 15, 23, 24, 33, 34, 38, 40, 8, 15, 16, 20, 22, 27, 31, 34, 42, 51, 56, 61, 70, 73, 81, 85, 91, 97, 98, 107, 116, 119, 8, 15, 24, 25, 34, 4, 6, 10, 13, 22, 26, 35, 40, 46, 55, 62, 67, 74, 78, 4, 6, 12, 16, 25, 29, 37, 44, 48, 57, 62, 64, 65, 71, 76, 84, 85, 88, 89, 96, 97, 4, 7, 14, 16, 19, 20, 25, 26, 34, 35, 44, 45, 49, 51, 52, 53, 4, 10, 14, 15, 17, 24, 25, 27, 28, 29, 30, 8, 10, 13, 19, 24, 28, 33, 43, 51, 54, 60, 62, 67, 71, 77, 84, 91, 98, 101, 107, 110, 115, 116, 8, 12, 13, 14, 17, 19, 21, 12, 14, 23, 24, 26, 32, 33, 36, 37, 39, 40, 48, 49, 16, 24, 25, 30, 31, 32, 33, 16, 25, 26, 34, 35, 16, 25, 26, 35, 36, 44, 45, 54, 55, 12, 14, 12, 16, 18, 21, 24, 31, 8, 10, 8, 16, 17, 19, 20, 23, 24, 29, 31, 34, 35, 38, 41, 44, 45, 48, 49, 50, 53, 54, 59, 60, 61, 63, 64, 65, 8, 12, 13, 15, 16, 24, 25, 32, 33, 42, 43, 50, 51, 57, 59, 63, 64, 65, 68, 69, 76, 77, 79, 80, 83, 84, 89, 90, 8, 10, 16, 19, 24, 33, 42, 46, 51, 8, 11, 15, 16, 18, 19, 27, 28, 35, 37, 45, 46, 49, 50, 57, 58, 12, 18, 8, 12, 13, 20, 21, 26, 28, 31, 38, 39, 46, 47, 49, 50, 53, 54, 59, 60, 8, 12, 13, 20, 21, 29, 31, 41, 43, 44, 45, 47, 53, 54, 62, 63, 66, 67, 74, 75, 80, 82, 8, 17, 18, 25, 26, 31, 33, 37, 38, 45, 46, 51, 53, 62, 63, 70, 71, 77, 8, 17, 18, 27, 29, 38, 39, 48, 49, 57, 58, 65, 66, 71, 72, 8, 17, 18, 25, 27, 36, 37, 45, 46, 53, 54, 59, 60, 8, 17, 18, 25, 26, 34, 36, 46, 48, 49, 50, 52, 58, 59, 67, 68, 75, 78, 79, 88, 89, 98, 99, 8, 11, 20, 21, 28, 29, 35, 38, 40, 41, 42, 12, 20, 21, 23, 30, 31, 39, 41, 45, 46, 53, 54, 62, 63, 64, 65, 66, 68, 74, 80, 83, 87, 95, 12, 20, 21, 26, 27, 35, 37, 46, 47, 54, 55, 63, 65, 66, 67, 68, 70, 75, 81, 84, 89, 97, 8, 13, 22, 23, 30, 31, 37, 40, 41, 42, 43, 12, 20, 21, 23, 30, 31, 39, 41, 45, 46, 53, 54, 62, 64, 65, 66, 67, 69, 74, 80, 83, 87, 95, 12, 20, 21, 26, 27, 35, 37, 46, 47, 54, 55, 63, 64, 65, 66, 67, 69, 75, 81, 84, 89, 97, 8, 13, 14, 12, 18, 29, 31, 8, 13, 14, 16, 18, 26, 27, 35, 36, 43, 44, 49, 50, 58, 59, 62, 64, 65, 69, 72, 74, 77, 85, 86, 88, 95, 96, 104, 105, 8, 17, 18, 27, 28, 31, 32, 39, 40, 45, 46, 48, 52, 53, 55, 56, 62, 63, 68, 70, 8, 11, 18, 20, 23, 24, 29, 30, 38, 39, 48, 49, 53, 55, 56, 57, 4, 11, 20, 21, 30, 1, 1, 4, 6, 10, 11, 18, 19, 25, 26, 31, 32, 38, 40, 4, 11, 14, 15, 21, 22, 25, 27, 32, 33, 39, 40, 45, 46, 47, 49, 50, 52, 58, 59, 65, 66, 71, 72, 73, 76, 82, 83, 88, 89, 95, 96, 101, 102, 1, 1, 4, 12, 13, 17, 18, 22, 23, 4, 7, 13, 14, 21, 22, 25, 31, 38, 39, 4, 13, 14, 21, 22, 31, 38, 39, 4, 10, 11, 15, 16, 22, 23, 4, 10, 11, 20, 21, 1, 2, 5, 10, 17, 18, 4, 8, 9, 15, 17, 21, 22, 24, 30, 31, 38, 39, 4, 6, 13, 24, 33, 41, 47, 4, 14, 16, 17, 24, 26, 28, 32, 33, 43, 44, 54, 55, 8, 14, 15, 24, 25, 30, 31, 40, 41, 8, 14, 15, 19, 20, 25, 26, 30, 31, 8, 11, 17, 18, 25, 26, 28, 34, 35, 42, 43, 4, 6, 4, 13, 15, 25, 27, 28, 35, 36, 39, 40, 48, 50, 4, 7, 11, 12, 20, 21, 24, 25, 26, 27, 8, 15, 16, 21, 22, 12, 14, 15, 21, 23, 28, 32, 43, 52, 55, 65, 70, 76, 80, 90, 92, 97, 98, 107, 109, 118, 127, 129, 8, 10, 8, 15, 17, 22, 29, 30, 34, 35, 37, 43, 44, 46, 52, 53, 60, 61, 4, 6, 13, 18, 26, 33, 43, 46, 56, 61, 67, 70, 75, 4, 13, 14, 23, 25, 27, 32, 33, 41, 42, 46, 47, 53, 54, 62, 63, 73, 75, 76, 83, 84, 85, 87, 93, 94, 103, 104, 111, 112, 113, 115, 121, 122, 4, 6, 10, 13, 20, 29, 34, 37, 47, 49, 51, 57, 62, 65, 69, 74, 83, 88, 95, 4, 13, 14, 23, 25, 27, 32, 33, 35, 43, 44, 52, 53, 57, 58, 60, 63, 67, 68, 8, 17, 18, 27, 28, 37, 38, 48, 50, 51, 58, 59, 60, 62, 68, 69, 75, 76, 80, 4, 6, 4, 6, 14, 22, 4, 13, 14, 21, 23, 25, 33, 40, 41, 50, 52, 53, 60, 61, 4, 8, 16, 17, 25, 26, 35, 38, 42, 43, 51, 52, 61, 62, 71, 73, 8, 11, 15, 18, 19, 21, 22, 28, 29, 36, 37, 46, 48, 12, 21, 22, 29, 30, 37, 38, 45, 46, 54, 55, 64, 65, 4, 6, 13, 17, 23, 31, 37, 40, 46, 56, 4, 8, 9, 15, 16, 23, 25, 28, 29, 34, 35, 37, 38, 44, 45, 49, 50, 58, 59, 66, 67, 73, 74, 80, 81, 90, 92, 96, 98, 99, 100, 4, 13, 14, 21, 22, 26, 27, 30, 31, 37, 38, 45, 46, 4, 8, 9, 16, 18, 27, 28, 35, 36, 39, 40, 45, 47, 4, 13, 14, 17, 18, 25, 27, 30, 31, 34, 35, 36, 38, 39, 44, 45, 53, 54, 61, 62, 63, 65, 71, 73, 78, 80, 81, 82, 83, 84, 87, 90, 92, 4, 11, 12, 16, 17, 8, 10, 11, 19, 24, 25, 29, 30, 32, 35, 36, 43, 44, 48, 51, 53, 56, 57, 63, 64, 71, 80, 93, 95, 8, 10, 11, 13, 18, 19, 22, 23, 30, 31, 33, 37, 38, 44, 46, 47, 48, 49, 50, 52, 53, 54, 56, 57, 59, 67, 76, 78, 80, 88, 89, 92, 93, 100, 102, 8, 10, 11, 14, 17, 22, 23, 31, 32, 35, 36, 43, 44, 46, 50, 51, 57, 59, 60, 61, 62, 63, 65, 66, 67, 68, 70, 73, 79, 81, 4, 6, 4, 7, 11, 12, 19, 21, 30, 31, 34, 35, 42, 43, 8, 15, 16, 23, 24, 25, 26, 34, 42, 46, 48, 56, 57, 60, 61, 68, 70, 74, 75, 82, 83, 88, 101, 110, 117, 120, 4, 11, 13, 18, 25, 26, 30, 31, 39, 40, 48, 49, 56, 57 ]
ec90c731a0e546d9d399cbb68c92be1acca8cbe0
from package import * class mysql(MakePackage): dependencies = ["cmake"] fetch = "http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.10.tar.gz/from/http://cdn.mysql.com/" config = 'cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=%(prefix)s -DWITH_READLINE=1'
[ 1097, 2670, 1220, 338, 499, 222, 842, 13062, 45, 6685, 4057, 731, 303, 6450, 299, 3059, 14130, 1465, 303, 5644, 299, 332, 544, 574, 1920, 51, 7546, 51, 527, 52, 390, 52, 27467, 52, 14685, 50, 58, 51, 59, 52, 7546, 50, 58, 51, 59, 51, 54, 53, 51, 5384, 51, 6756, 52, 1097, 52, 544, 574, 7908, 51, 7546, 51, 527, 5694, 303, 1377, 299, 349, 14130, 449, 76, 332, 19536, 6429, 2558, 39, 449, 37108, 100, 14170, 100, 9857, 6142, 45, 4271, 46, 120, 449, 73, 12006, 100, 4423, 4794, 66, 54, 44, 222 ]
[ "from", "Ġpackage", "Ġimport", "Ġ*", "ĊĊ", "Ċ", "class", "Ġmysql", "(", "Make", "Package", "):", "ĊĠĠĠ", "Ġdependencies", "Ġ=", "Ġ[\"", "cmake", "\"]", "ĊĠĠĠ", "Ġfetch", "Ġ=", "Ġ\"", "http", "://", "dev", ".", "mysql", ".", "com", "/", "get", "/", "Downloads", "/", "MySQL", "-", "5", ".", "6", "/", "mysql", "-", "5", ".", "6", ".", "1", "0", ".", "tar", ".", "gz", "/", "from", "/", "http", "://", "cdn", ".", "mysql", ".", "com", "/\"", "ĊĠĠĠ", "Ġconfig", "Ġ=", "Ġ'", "cmake", "Ġ-", "G", "Ġ\"", "Unix", "ĠMake", "files", "\"", "Ġ-", "DCMAKE", "_", "INSTALL", "_", "PREFIX", "=%", "(", "prefix", ")", "s", "Ġ-", "D", "WITH", "_", "READ", "LINE", "=", "1", "'", "Ċ" ]
[ 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 ]
[ 1, 5, 13, 20, 22, 1, 1, 6, 12, 13, 17, 24, 26, 4, 17, 19, 22, 27, 29, 4, 10, 12, 14, 18, 21, 24, 25, 30, 31, 34, 35, 38, 39, 48, 49, 54, 55, 56, 57, 58, 59, 64, 65, 66, 67, 68, 69, 70, 71, 72, 75, 76, 78, 79, 83, 84, 88, 91, 94, 95, 100, 101, 104, 106, 4, 11, 13, 15, 20, 22, 23, 25, 29, 34, 39, 40, 42, 48, 49, 56, 57, 63, 65, 66, 72, 73, 74, 76, 77, 81, 82, 86, 90, 91, 92, 93 ]
372d8c8cb9ec8f579db8588aff7799c73c5af255
#!/home/nick/.virtualenvs/twitterbots/bin/python3.5 # -*- coding: utf-8 -*- import tweepy import sqlite3 from configparser import ConfigParser """ A little OOP would be good later for authenticated user data, c, conn, api """ def main(): Collector.collect() class Collector: # Main function def collect(): api = Collector.get_api() tweet_dump = Collector.all_tweet_db() c = tweet_dump[0] conn = tweet_dump[1] last_list = Collector.last_tweets(c, conn) # Look for new friends, add to db new_friends = Collector.new_f_check(api, c) Collector.download_to_limit(api, c, conn, new_friends) # Checks timelines of everyone in db already # adds anything new to db Collector.download_recent(api, c, conn, last_list) def get_api(): parser = ConfigParser() parser.read("twitter_auth.ini") consumer_key = parser.get("Keys", "consumer_key").strip("'") consumer_secret = parser.get("Secrets", "consumer_secret").strip("'") access_token = parser.get("Tokens", "access_token").strip("'") access_token_secret = parser.get("Secrets", "access_token_secret").strip("'") auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret) api = tweepy.API(auth, wait_on_rate_limit=True) return api # connects to tweet_dump.db creates tdump if not exists # tdump stores all tweets from anyone in list def all_tweet_db(): conn = sqlite3.connect("tweet_dump_main.db") c = conn.cursor() c.execute("""CREATE TABLE IF NOT EXISTS tdump (tweet TEXT, username TEXT, tweet_date TEXT, tweet_id TEXT, tweet_source TEXT, user_id TEXT)""") return c, conn # connects to tweet_dump.db creats served if not exists # served stores tweets that are mention authenticated user def mention_tweet_db(): conn = sqlite3.connect("tweet_dump_main.db") c = conn.cursor() c.execute("""CREATE TABLE IF NOT EXISTS mentioned (tweet TEXT, username TEXT, tweet_date TEXT, tweet_id TEXT, tweet_source TEXT, user_id TEXT)""") return c, conn # looks for new friends by comparing authenticated # user's friend list with list of friends in tdump def new_f_check(api, c): # get list of user's ids c.execute("SELECT user_id FROM tdump") users = c.fetchall() users = list(set([user[0] for user in users])) # get list of friends_ids from twitter friends_ids = api.friends_ids() new_friends = [x for x in friends_ids if str(x) not in users] return new_friends # downloads up to 3200 of a user's most # recent tweets commits to tdump def download_to_limit(api, c, conn, friend_list): # List of tweet ids already in db c.execute("SELECT tweet_id FROM tdump") tweet_ids = c.fetchall() tweet_ids = [e[0] for e in tweet_ids] new_tweets = [] for friend in friend_list: try: # try to get most recent 200 tweets from friend get_tweets = api.user_timeline(id=friend, count=200) except Exception as e: continue # add to list of all of this friend's tweets new_tweets.extend(get_tweets) # find oldest retrieved tweet's id number less 1 oldest = new_tweets[-1].id - 1 # get tweets until 3200 limit hit while len(get_tweets) > 0: try: # max_id arg looks for id's less than arg's value get_tweets = api.user_timeline(id=friend, count=200, max_id=oldest) except Exception as e: continue new_tweets.extend(get_tweets) oldest = new_tweets[-1].id - 1 if len(new_tweets) != 0: print("Insert Active") for tweet in new_tweets: c.execute( """INSERT INTO tdump (tweet, username, tweet_date, tweet_id, tweet_source, user_id) VALUES(?,?,?,?,?,?)""", [tweet.text, tweet.user.screen_name, tweet.created_at, tweet.id_str, tweet.source, tweet.user.id_str], ) conn.commit() if len(new_tweets) != 0: print("Insert Done" + "\n") # simply check if tweet text contains my screen name # change from hard code later def mention_me(new_tweet_list, c, conn): mentioned = [x for x in new_tweet_list if "@BonneNick" in x[0]] if len(new_tweet_list) != 0: print("Insert Active") for tweet in mentioned: c.execute( """INSERT INTO served (tweet, username, tweet_date, tweet_id, tweet_source, user_id) VALUES(?,?,?,?,?,?)""", [tweet.text, tweet.user.screen_name, tweet.created_at, tweet.id_str, tweet.source, tweet.user.id_str], ) conn.commit() if len(new_tweet_list) != 0: print("Insert Done" + "\n") # returns list of user_id and created_at pairs # date associated with user_id is date of last # tweet in database def last_tweets(c, conn): # list of user ids and the date of the # last tweet in db user_last_tweets = [] # get list of user's ids c.execute("SELECT user_id FROM tdump") users = c.fetchall() users = list(set([user[0] for user in users])) for user in users: c.execute( """SELECT user_id, tweet_id FROM tdump WHERE user_id = ? ORDER BY tweet_date DESC""", [user], ) last_tweet = c.fetchone() user_last_tweets.append(last_tweet) return user_last_tweets # downloads most recent posts in each users timelines def download_recent(api, c, conn, last_tweets): c.execute("SELECT tweet_id FROM tdump") tweet_ids = [x[0] for x in c.fetchall()] new_tweets = [] for pair in last_tweets: user_id = pair[0] tweet_id = pair[1] try: get_tweets = api.user_timeline(id=user_id, since_id=tweet_id, count=200) except Exception: continue if len(get_tweets) != 0: # add to list of all of this friend's tweets new_tweets.extend(get_tweets) # find newest retrieved tweet's id number plus 1 newest = get_tweets[0].id + 1 while len(get_tweets) > 0: try: # max_id arg looks for id's less than arg's value get_tweets = api.user_timeline(id=user_id, count=200, since_id=newest) new_tweets.extend(get_tweets) newest = get_tweets[0].id + 1 except Exception: continue if len(new_tweets) != 0: print("Insert Active") for tweet in new_tweets: if tweet.user.screen_name != "BonneNick" and tweet.id not in tweet_ids: c.execute( """INSERT INTO tdump (tweet, username, tweet_date, tweet_id, tweet_source, user_id) VALUES(?,?,?,?,?,?)""", [tweet.text, tweet.user.screen_name, tweet.created_at, tweet.id_str, tweet.source, tweet.user.id_str], ) conn.commit() conn.close() if len(new_tweets) != 0: print("Insert Done" + "\n") if __name__ == "__main__": main()
[ 8758, 2849, 52, 14987, 4735, 5010, 16450, 52, 7643, 38289, 52, 1793, 52, 2980, 56, 51, 58, 222, 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 222, 485, 292, 16817, 126, 222, 485, 17743, 56, 222, 222, 1097, 1377, 3936, 1220, 3395, 2837, 222, 222, 3012, 222, 70, 9587, 565, 1970, 2285, 545, 4667, 6146, 456, 222, 22269, 1275, 727, 49, 300, 49, 4580, 49, 4142, 222, 3012, 499, 222, 610, 2594, 2284, 303, 47406, 51, 6190, 365, 499, 222, 842, 47406, 63, 303, 607, 6697, 686, 303, 684, 7922, 2284, 310, 4142, 299, 47406, 51, 390, 100, 1256, 365, 603, 26859, 100, 5955, 299, 47406, 51, 483, 100, 21767, 100, 1219, 365, 310, 300, 299, 26859, 100, 5955, 96, 53, 98, 310, 4580, 299, 26859, 100, 5955, 96, 54, 98, 310, 2419, 100, 687, 299, 47406, 51, 2153, 100, 40590, 45, 104, 49, 4580, 46, 603, 607, 12641, 456, 556, 22591, 49, 1035, 391, 3100, 310, 556, 100, 26746, 299, 47406, 51, 909, 100, 107, 100, 1571, 45, 1256, 49, 300, 46, 603, 47406, 51, 5000, 100, 471, 100, 3262, 45, 1256, 49, 300, 49, 4580, 49, 556, 100, 26746, 46, 603, 607, 17269, 1153, 4466, 451, 19307, 347, 3100, 3443, 310, 607, 10487, 8003, 556, 391, 3100, 310, 47406, 51, 5000, 100, 18631, 45, 1256, 49, 300, 49, 4580, 49, 2419, 100, 687, 46, 465, 684, 640, 100, 1256, 2284, 310, 4138, 299, 3395, 2837, 365, 310, 4138, 51, 870, 459, 7643, 100, 2408, 51, 5942, 678, 310, 12479, 100, 697, 299, 4138, 51, 390, 459, 5044, 411, 332, 14163, 100, 697, 1912, 7237, 27431, 678, 310, 12479, 100, 7253, 299, 4138, 51, 390, 459, 30704, 411, 332, 14163, 100, 7253, 1912, 7237, 27431, 678, 310, 2872, 100, 1977, 299, 4138, 51, 390, 459, 10915, 411, 332, 3575, 100, 1977, 1912, 7237, 27431, 678, 310, 2872, 100, 1977, 100, 7253, 299, 4138, 51, 390, 459, 30704, 411, 332, 3575, 100, 1977, 100, 7253, 1912, 7237, 27431, 678, 603, 3813, 299, 292, 16817, 126, 51, 17205, 1985, 45, 14163, 100, 697, 49, 12479, 100, 7253, 46, 310, 3813, 51, 489, 100, 3575, 100, 1977, 45, 3575, 100, 1977, 49, 2872, 100, 1977, 100, 7253, 46, 310, 4142, 299, 292, 16817, 126, 51, 2571, 45, 2408, 49, 4483, 100, 286, 100, 3343, 100, 3262, 66, 1844, 46, 603, 461, 4142, 465, 607, 37311, 391, 26859, 100, 5955, 51, 1219, 9602, 292, 5955, 434, 666, 5394, 303, 607, 292, 5955, 15369, 1187, 37945, 664, 15149, 347, 1168, 303, 684, 1187, 100, 21767, 100, 1219, 2284, 310, 4580, 299, 17743, 56, 51, 3532, 459, 21767, 100, 5955, 100, 1850, 51, 1219, 678, 310, 300, 299, 4580, 51, 7033, 365, 603, 300, 51, 4540, 27355, 6046, 4934, 5515, 2387, 12141, 292, 5955, 3507, 327, 21767, 13421, 49, 2876, 969, 13421, 49, 2876, 26859, 100, 787, 13421, 49, 2876, 26859, 100, 333, 13421, 49, 2876, 26859, 100, 1876, 13421, 49, 2876, 1275, 100, 333, 13421, 46, 41223, 603, 461, 300, 49, 4580, 465, 607, 37311, 391, 26859, 100, 5955, 51, 1219, 2039, 1990, 32637, 434, 666, 5394, 303, 607, 32637, 15369, 37945, 708, 904, 10410, 22690, 1275, 303, 684, 10410, 100, 21767, 100, 1219, 2284, 310, 4580, 299, 17743, 56, 51, 3532, 459, 21767, 100, 5955, 100, 1850, 51, 1219, 678, 310, 300, 299, 4580, 51, 7033, 365, 603, 300, 51, 4540, 27355, 6046, 4934, 5515, 2387, 12141, 14554, 3507, 327, 21767, 13421, 49, 2876, 969, 13421, 49, 2876, 26859, 100, 787, 13421, 49, 2876, 26859, 100, 333, 13421, 49, 2876, 26859, 100, 1876, 13421, 49, 2876, 1275, 100, 333, 13421, 46, 41223, 603, 461, 300, 49, 4580, 465, 607, 7805, 456, 556, 22591, 829, 31457, 22690, 303, 607, 1275, 1200, 11982, 1168, 642, 1168, 451, 22591, 347, 292, 5955, 303, 684, 556, 100, 107, 100, 1571, 45, 1256, 49, 300, 731, 310, 607, 640, 1168, 451, 1275, 1200, 9673, 310, 300, 51, 4540, 459, 4635, 1275, 100, 333, 3767, 292, 5955, 678, 310, 4272, 299, 300, 51, 44689, 365, 310, 4272, 299, 1168, 45, 489, 2034, 514, 96, 53, 98, 456, 1275, 347, 4272, 5310, 603, 607, 640, 1168, 451, 22591, 100, 3653, 664, 23968, 310, 22591, 100, 3653, 299, 4142, 51, 26746, 100, 3653, 365, 603, 556, 100, 26746, 299, 447, 125, 456, 837, 347, 22591, 100, 3653, 434, 615, 45, 125, 46, 666, 347, 4272, 98, 603, 461, 556, 100, 26746, 465, 607, 32647, 992, 391, 244, 56, 55, 53, 53, 451, 331, 1275, 1200, 4665, 303, 607, 8303, 37945, 16272, 391, 292, 5955, 303, 684, 5844, 100, 471, 100, 3262, 45, 1256, 49, 300, 49, 4580, 49, 11982, 100, 687, 731, 310, 607, 1701, 451, 26859, 9673, 3443, 347, 3100, 310, 300, 51, 4540, 459, 4635, 26859, 100, 333, 3767, 292, 5955, 678, 310, 26859, 100, 3653, 299, 300, 51, 44689, 365, 310, 26859, 100, 3653, 299, 447, 106, 96, 53, 98, 456, 503, 347, 26859, 100, 3653, 98, 603, 556, 100, 40590, 299, 1627, 603, 456, 11982, 347, 11982, 100, 687, 63, 343, 1614, 63, 419, 607, 1614, 391, 640, 4665, 8303, 244, 55, 53, 53, 37945, 664, 11982, 419, 640, 100, 40590, 299, 4142, 51, 514, 100, 16460, 45, 333, 66, 13604, 49, 2409, 66, 55, 53, 53, 46, 1083, 2959, 3284, 641, 503, 63, 419, 4056, 1083, 607, 1035, 391, 1168, 451, 1187, 451, 477, 11982, 1200, 37945, 343, 556, 100, 40590, 51, 8258, 45, 390, 100, 40590, 46, 1083, 607, 2309, 45695, 19213, 26859, 1200, 828, 1470, 6717, 244, 54, 343, 45695, 299, 556, 100, 40590, 6510, 54, 1015, 333, 449, 244, 54, 1083, 607, 640, 37945, 6234, 244, 56, 55, 53, 53, 2741, 8990, 343, 2236, 2095, 45, 390, 100, 40590, 46, 868, 244, 53, 63, 419, 1614, 63, 547, 607, 1788, 100, 333, 1657, 7805, 456, 828, 1200, 6717, 2806, 1657, 1200, 804, 547, 640, 100, 40590, 299, 4142, 51, 514, 100, 16460, 45, 333, 66, 13604, 49, 2409, 66, 55, 53, 53, 49, 1788, 100, 333, 66, 381, 3332, 46, 2125, 2959, 3284, 641, 503, 63, 547, 4056, 2125, 556, 100, 40590, 51, 8258, 45, 390, 100, 40590, 46, 2125, 45695, 299, 556, 100, 40590, 6510, 54, 1015, 333, 449, 244, 54, 603, 434, 2095, 45, 909, 100, 40590, 46, 882, 244, 53, 63, 343, 1489, 459, 6745, 8761, 678, 603, 456, 26859, 347, 556, 100, 40590, 63, 343, 300, 51, 4540, 45, 419, 1547, 2648, 2659, 292, 5955, 1031, 327, 21767, 49, 1031, 969, 49, 1031, 26859, 100, 787, 49, 1031, 26859, 100, 333, 49, 1031, 26859, 100, 1876, 49, 1031, 1275, 100, 333, 46, 6056, 2757, 45, 32924, 32924, 11158, 10234, 37611, 419, 447, 21767, 51, 897, 49, 26859, 51, 514, 51, 4475, 100, 444, 49, 26859, 51, 4536, 100, 288, 49, 26859, 51, 333, 100, 484, 49, 26859, 51, 1876, 49, 26859, 51, 514, 51, 333, 100, 484, 636, 343, 848, 603, 4580, 51, 3388, 365, 603, 434, 2095, 45, 909, 100, 40590, 46, 882, 244, 53, 63, 343, 1489, 459, 6745, 16692, 39, 494, 2724, 115, 678, 465, 607, 9677, 1524, 434, 26859, 1367, 4326, 1690, 4820, 655, 303, 607, 1557, 664, 6804, 1361, 6146, 303, 684, 10410, 100, 308, 45, 909, 100, 21767, 100, 687, 49, 300, 49, 4580, 731, 310, 14554, 299, 447, 125, 456, 837, 347, 556, 100, 21767, 100, 687, 434, 6653, 32052, 960, 25581, 39, 347, 837, 96, 53, 3234, 603, 434, 2095, 45, 909, 100, 21767, 100, 687, 46, 882, 244, 53, 63, 343, 1489, 459, 6745, 8761, 678, 603, 456, 26859, 347, 14554, 63, 343, 300, 51, 4540, 45, 419, 1547, 2648, 2659, 32637, 1031, 327, 21767, 49, 1031, 969, 49, 1031, 26859, 100, 787, 49, 1031, 26859, 100, 333, 49, 1031, 26859, 100, 1876, 49, 1031, 1275, 100, 333, 46, 6056, 2757, 45, 32924, 32924, 11158, 10234, 37611, 419, 447, 21767, 51, 897, 49, 26859, 51, 514, 51, 4475, 100, 444, 49, 26859, 51, 4536, 100, 288, 49, 26859, 51, 333, 100, 484, 49, 26859, 51, 1876, 49, 26859, 51, 514, 51, 333, 100, 484, 636, 343, 848, 603, 4580, 51, 3388, 365, 603, 434, 2095, 45, 909, 100, 21767, 100, 687, 46, 882, 244, 53, 63, 343, 1489, 459, 6745, 16692, 39, 494, 2724, 115, 678, 465, 607, 3235, 1168, 451, 1275, 100, 333, 480, 3290, 100, 288, 11886, 303, 607, 2361, 5764, 642, 1275, 100, 333, 458, 2361, 451, 2419, 303, 607, 26859, 347, 3520, 303, 684, 2419, 100, 40590, 45, 104, 49, 4580, 731, 310, 607, 1168, 451, 1275, 9673, 480, 341, 2361, 451, 341, 310, 607, 2419, 26859, 347, 3100, 310, 1275, 100, 2153, 100, 40590, 299, 1627, 603, 607, 640, 1168, 451, 1275, 1200, 9673, 310, 300, 51, 4540, 459, 4635, 1275, 100, 333, 3767, 292, 5955, 678, 310, 4272, 299, 300, 51, 44689, 365, 310, 4272, 299, 1168, 45, 489, 2034, 514, 96, 53, 98, 456, 1275, 347, 4272, 5310, 603, 456, 1275, 347, 4272, 63, 343, 300, 51, 4540, 45, 419, 1547, 4635, 1275, 100, 333, 49, 26859, 100, 333, 6056, 3767, 292, 5955, 6056, 5007, 1275, 100, 333, 299, 1037, 6056, 17062, 6944, 26859, 100, 787, 21733, 37611, 419, 447, 514, 636, 343, 848, 1083, 2419, 100, 21767, 299, 300, 51, 5151, 677, 365, 343, 1275, 100, 2153, 100, 40590, 51, 1713, 45, 2153, 100, 21767, 46, 603, 461, 1275, 100, 2153, 100, 40590, 465, 607, 32647, 4665, 8303, 14752, 347, 2531, 4272, 1153, 4466, 303, 684, 5844, 100, 18631, 45, 1256, 49, 300, 49, 4580, 49, 2419, 100, 40590, 731, 310, 300, 51, 4540, 459, 4635, 26859, 100, 333, 3767, 292, 5955, 678, 310, 26859, 100, 3653, 299, 447, 125, 96, 53, 98, 456, 837, 347, 300, 51, 44689, 7688, 603, 556, 100, 40590, 299, 1627, 603, 456, 6120, 347, 2419, 100, 40590, 63, 343, 1275, 100, 333, 299, 6120, 96, 53, 98, 343, 26859, 100, 333, 299, 6120, 96, 54, 98, 1083, 1614, 63, 419, 640, 100, 40590, 299, 4142, 51, 514, 100, 16460, 45, 333, 66, 514, 100, 333, 49, 4577, 100, 333, 66, 21767, 100, 333, 49, 2409, 66, 55, 53, 53, 46, 1083, 2959, 3284, 63, 419, 4056, 1083, 434, 2095, 45, 390, 100, 40590, 46, 882, 244, 53, 63, 419, 607, 1035, 391, 1168, 451, 1187, 451, 477, 11982, 1200, 37945, 419, 556, 100, 40590, 51, 8258, 45, 390, 100, 40590, 46, 2125, 607, 2309, 37228, 19213, 26859, 1200, 828, 1470, 10972, 244, 54, 419, 37228, 299, 640, 100, 40590, 96, 53, 1015, 333, 494, 244, 54, 2125, 2236, 2095, 45, 390, 100, 40590, 46, 868, 244, 53, 63, 547, 1614, 63, 733, 607, 1788, 100, 333, 1657, 7805, 456, 828, 1200, 6717, 2806, 1657, 1200, 804, 733, 640, 100, 40590, 299, 4142, 51, 514, 100, 16460, 45, 333, 66, 514, 100, 333, 49, 2409, 66, 55, 53, 53, 49, 4577, 100, 333, 66, 909, 464, 46, 6205, 556, 100, 40590, 51, 8258, 45, 390, 100, 40590, 46, 6205, 37228, 299, 640, 100, 40590, 96, 53, 1015, 333, 494, 244, 54, 3704, 2959, 3284, 63, 733, 4056, 603, 434, 2095, 45, 909, 100, 40590, 46, 882, 244, 53, 63, 343, 1489, 459, 6745, 8761, 678, 603, 456, 26859, 347, 556, 100, 40590, 63, 343, 434, 26859, 51, 514, 51, 4475, 100, 444, 882, 332, 32052, 960, 25581, 39, 480, 26859, 51, 333, 666, 347, 26859, 100, 3653, 63, 419, 300, 51, 4540, 45, 547, 1547, 2648, 2659, 292, 5955, 1396, 327, 21767, 49, 1396, 969, 49, 1396, 26859, 100, 787, 49, 1396, 26859, 100, 333, 49, 1396, 26859, 100, 1876, 49, 1396, 1275, 100, 333, 46, 786, 2757, 45, 32924, 32924, 11158, 10234, 37611, 547, 447, 21767, 51, 897, 49, 26859, 51, 514, 51, 4475, 100, 444, 49, 26859, 51, 4536, 100, 288, 49, 26859, 51, 333, 100, 484, 49, 26859, 51, 1876, 49, 26859, 51, 514, 51, 333, 100, 484, 636, 419, 848, 603, 4580, 51, 3388, 365, 310, 4580, 51, 2698, 365, 603, 434, 2095, 45, 909, 100, 40590, 46, 882, 244, 53, 63, 343, 1489, 459, 6745, 16692, 39, 494, 2724, 115, 678, 499, 222, 344, 1176, 444, 523, 630, 9609, 1850, 18021, 303, 2594, 365, 222 ]
[ "#!/", "home", "/", "nick", "/.", "virtual", "envs", "/", "twitter", "bots", "/", "bin", "/", "python", "3", ".", "5", "Ċ", "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "Ċ", "import", "Ġt", "weep", "y", "Ċ", "import", "Ġsqlite", "3", "Ċ", "Ċ", "from", "Ġconfig", "parser", "Ġimport", "ĠConfig", "Parser", "Ċ", "Ċ", "\"\"\"", "Ċ", "A", "Ġlittle", "ĠO", "OP", "Ġwould", "Ġbe", "Ġgood", "Ġlater", "Ġfor", "Ċ", "authenticated", "Ġuser", "Ġdata", ",", "Ġc", ",", "Ġconn", ",", "Ġapi", "Ċ", "\"\"\"", "ĊĊ", "Ċ", "def", "Ġmain", "():", "ĊĠĠĠ", "ĠCollector", ".", "collect", "()", "ĊĊ", "Ċ", "class", "ĠCollector", ":", "ĊĠĠĠ", "Ġ#", "ĠMain", "Ġfunction", "ĊĠĠĠ", "Ġdef", "Ġcollect", "():", "ĊĠĠĠĠĠĠĠ", "Ġapi", "Ġ=", "ĠCollector", ".", "get", "_", "api", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġtweet", "_", "dump", "Ġ=", "ĠCollector", ".", "all", "_", "tweet", "_", "db", "()", "ĊĠĠĠĠĠĠĠ", "Ġc", "Ġ=", "Ġtweet", "_", "dump", "[", "0", "]", "ĊĠĠĠĠĠĠĠ", "Ġconn", "Ġ=", "Ġtweet", "_", "dump", "[", "1", "]", "ĊĠĠĠĠĠĠĠ", "Ġlast", "_", "list", "Ġ=", "ĠCollector", ".", "last", "_", "tweets", "(", "c", ",", "Ġconn", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠLook", "Ġfor", "Ġnew", "Ġfriends", ",", "Ġadd", "Ġto", "Ġdb", "ĊĠĠĠĠĠĠĠ", "Ġnew", "_", "friends", "Ġ=", "ĠCollector", ".", "new", "_", "f", "_", "check", "(", "api", ",", "Ġc", ")", "ĊĊĠĠĠĠĠĠĠ", "ĠCollector", ".", "download", "_", "to", "_", "limit", "(", "api", ",", "Ġc", ",", "Ġconn", ",", "Ġnew", "_", "friends", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠChecks", "Ġtime", "lines", "Ġof", "Ġeveryone", "Ġin", "Ġdb", "Ġalready", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġadds", "Ġanything", "Ġnew", "Ġto", "Ġdb", "ĊĠĠĠĠĠĠĠ", "ĠCollector", ".", "download", "_", "recent", "(", "api", ",", "Ġc", ",", "Ġconn", ",", "Ġlast", "_", "list", ")", "ĊĊĠĠĠ", "Ġdef", "Ġget", "_", "api", "():", "ĊĠĠĠĠĠĠĠ", "Ġparser", "Ġ=", "ĠConfig", "Parser", "()", "ĊĠĠĠĠĠĠĠ", "Ġparser", ".", "read", "(\"", "twitter", "_", "auth", ".", "ini", "\")", "ĊĠĠĠĠĠĠĠ", "Ġconsumer", "_", "key", "Ġ=", "Ġparser", ".", "get", "(\"", "Keys", "\",", "Ġ\"", "consumer", "_", "key", "\").", "strip", "(\"'", "\")", "ĊĠĠĠĠĠĠĠ", "Ġconsumer", "_", "secret", "Ġ=", "Ġparser", ".", "get", "(\"", "Secrets", "\",", "Ġ\"", "consumer", "_", "secret", "\").", "strip", "(\"'", "\")", "ĊĠĠĠĠĠĠĠ", "Ġaccess", "_", "token", "Ġ=", "Ġparser", ".", "get", "(\"", "Tokens", "\",", "Ġ\"", "access", "_", "token", "\").", "strip", "(\"'", "\")", "ĊĠĠĠĠĠĠĠ", "Ġaccess", "_", "token", "_", "secret", "Ġ=", "Ġparser", ".", "get", "(\"", "Secrets", "\",", "Ġ\"", "access", "_", "token", "_", "secret", "\").", "strip", "(\"'", "\")", "ĊĊĠĠĠĠĠĠĠ", "Ġauth", "Ġ=", "Ġt", "weep", "y", ".", "OAuth", "Handler", "(", "consumer", "_", "key", ",", "Ġconsumer", "_", "secret", ")", "ĊĠĠĠĠĠĠĠ", "Ġauth", ".", "set", "_", "access", "_", "token", "(", "access", "_", "token", ",", "Ġaccess", "_", "token", "_", "secret", ")", "ĊĠĠĠĠĠĠĠ", "Ġapi", "Ġ=", "Ġt", "weep", "y", ".", "API", "(", "auth", ",", "Ġwait", "_", "on", "_", "rate", "_", "limit", "=", "True", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġapi", "ĊĊĠĠĠ", "Ġ#", "Ġconnects", "Ġto", "Ġtweet", "_", "dump", ".", "db", "Ġcreates", "Ġt", "dump", "Ġif", "Ġnot", "Ġexists", "ĊĠĠĠ", "Ġ#", "Ġt", "dump", "Ġstores", "Ġall", "Ġtweets", "Ġfrom", "Ġanyone", "Ġin", "Ġlist", "ĊĠĠĠ", "Ġdef", "Ġall", "_", "tweet", "_", "db", "():", "ĊĠĠĠĠĠĠĠ", "Ġconn", "Ġ=", "Ġsqlite", "3", ".", "connect", "(\"", "tweet", "_", "dump", "_", "main", ".", "db", "\")", "ĊĠĠĠĠĠĠĠ", "Ġc", "Ġ=", "Ġconn", ".", "cursor", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġc", ".", "execute", "(\"\"\"", "CREATE", "ĠTABLE", "ĠIF", "ĠNOT", "ĠEXISTS", "Ġt", "dump", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "tweet", "ĠTEXT", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġusername", "ĠTEXT", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtweet", "_", "date", "ĠTEXT", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtweet", "_", "id", "ĠTEXT", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtweet", "_", "source", "ĠTEXT", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġuser", "_", "id", "ĠTEXT", ")", "\"\"\")", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġc", ",", "Ġconn", "ĊĊĠĠĠ", "Ġ#", "Ġconnects", "Ġto", "Ġtweet", "_", "dump", ".", "db", "Ġcre", "ats", "Ġserved", "Ġif", "Ġnot", "Ġexists", "ĊĠĠĠ", "Ġ#", "Ġserved", "Ġstores", "Ġtweets", "Ġthat", "Ġare", "Ġmention", "Ġauthenticated", "Ġuser", "ĊĠĠĠ", "Ġdef", "Ġmention", "_", "tweet", "_", "db", "():", "ĊĠĠĠĠĠĠĠ", "Ġconn", "Ġ=", "Ġsqlite", "3", ".", "connect", "(\"", "tweet", "_", "dump", "_", "main", ".", "db", "\")", "ĊĠĠĠĠĠĠĠ", "Ġc", "Ġ=", "Ġconn", ".", "cursor", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġc", ".", "execute", "(\"\"\"", "CREATE", "ĠTABLE", "ĠIF", "ĠNOT", "ĠEXISTS", "Ġmentioned", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "tweet", "ĠTEXT", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġusername", "ĠTEXT", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtweet", "_", "date", "ĠTEXT", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtweet", "_", "id", "ĠTEXT", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtweet", "_", "source", "ĠTEXT", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġuser", "_", "id", "ĠTEXT", ")", "\"\"\")", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġc", ",", "Ġconn", "ĊĊĠĠĠ", "Ġ#", "Ġlooks", "Ġfor", "Ġnew", "Ġfriends", "Ġby", "Ġcomparing", "Ġauthenticated", "ĊĠĠĠ", "Ġ#", "Ġuser", "'s", "Ġfriend", "Ġlist", "Ġwith", "Ġlist", "Ġof", "Ġfriends", "Ġin", "Ġt", "dump", "ĊĠĠĠ", "Ġdef", "Ġnew", "_", "f", "_", "check", "(", "api", ",", "Ġc", "):", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġget", "Ġlist", "Ġof", "Ġuser", "'s", "Ġids", "ĊĠĠĠĠĠĠĠ", "Ġc", ".", "execute", "(\"", "SELECT", "Ġuser", "_", "id", "ĠFROM", "Ġt", "dump", "\")", "ĊĠĠĠĠĠĠĠ", "Ġusers", "Ġ=", "Ġc", ".", "fetchall", "()", "ĊĠĠĠĠĠĠĠ", "Ġusers", "Ġ=", "Ġlist", "(", "set", "([", "user", "[", "0", "]", "Ġfor", "Ġuser", "Ġin", "Ġusers", "]))", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "Ġget", "Ġlist", "Ġof", "Ġfriends", "_", "ids", "Ġfrom", "Ġtwitter", "ĊĠĠĠĠĠĠĠ", "Ġfriends", "_", "ids", "Ġ=", "Ġapi", ".", "friends", "_", "ids", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġnew", "_", "friends", "Ġ=", "Ġ[", "x", "Ġfor", "Ġx", "Ġin", "Ġfriends", "_", "ids", "Ġif", "Ġstr", "(", "x", ")", "Ġnot", "Ġin", "Ġusers", "]", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġnew", "_", "friends", "ĊĊĠĠĠ", "Ġ#", "Ġdownloads", "Ġup", "Ġto", "Ġ", "3", "2", "0", "0", "Ġof", "Ġa", "Ġuser", "'s", "Ġmost", "ĊĠĠĠ", "Ġ#", "Ġrecent", "Ġtweets", "Ġcommits", "Ġto", "Ġt", "dump", "ĊĠĠĠ", "Ġdef", "Ġdownload", "_", "to", "_", "limit", "(", "api", ",", "Ġc", ",", "Ġconn", ",", "Ġfriend", "_", "list", "):", "ĊĠĠĠĠĠĠĠ", "Ġ#", "ĠList", "Ġof", "Ġtweet", "Ġids", "Ġalready", "Ġin", "Ġdb", "ĊĠĠĠĠĠĠĠ", "Ġc", ".", "execute", "(\"", "SELECT", "Ġtweet", "_", "id", "ĠFROM", "Ġt", "dump", "\")", "ĊĠĠĠĠĠĠĠ", "Ġtweet", "_", "ids", "Ġ=", "Ġc", ".", "fetchall", "()", "ĊĠĠĠĠĠĠĠ", "Ġtweet", "_", "ids", "Ġ=", "Ġ[", "e", "[", "0", "]", "Ġfor", "Ġe", "Ġin", "Ġtweet", "_", "ids", "]", "ĊĊĠĠĠĠĠĠĠ", "Ġnew", "_", "tweets", "Ġ=", "Ġ[]", "ĊĊĠĠĠĠĠĠĠ", "Ġfor", "Ġfriend", "Ġin", "Ġfriend", "_", "list", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġtry", "Ġto", "Ġget", "Ġmost", "Ġrecent", "Ġ", "2", "0", "0", "Ġtweets", "Ġfrom", "Ġfriend", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġget", "_", "tweets", "Ġ=", "Ġapi", ".", "user", "_", "timeline", "(", "id", "=", "friend", ",", "Ġcount", "=", "2", "0", "0", ")", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġexcept", "ĠException", "Ġas", "Ġe", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontinue", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġadd", "Ġto", "Ġlist", "Ġof", "Ġall", "Ġof", "Ġthis", "Ġfriend", "'s", "Ġtweets", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġnew", "_", "tweets", ".", "extend", "(", "get", "_", "tweets", ")", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġfind", "Ġoldest", "Ġretrieved", "Ġtweet", "'s", "Ġid", "Ġnumber", "Ġless", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġoldest", "Ġ=", "Ġnew", "_", "tweets", "[-", "1", "].", "id", "Ġ-", "Ġ", "1", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġget", "Ġtweets", "Ġuntil", "Ġ", "3", "2", "0", "0", "Ġlimit", "Ġhit", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġwhile", "Ġlen", "(", "get", "_", "tweets", ")", "Ġ>", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġmax", "_", "id", "Ġarg", "Ġlooks", "Ġfor", "Ġid", "'s", "Ġless", "Ġthan", "Ġarg", "'s", "Ġvalue", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġget", "_", "tweets", "Ġ=", "Ġapi", ".", "user", "_", "timeline", "(", "id", "=", "friend", ",", "Ġcount", "=", "2", "0", "0", ",", "Ġmax", "_", "id", "=", "ol", "dest", ")", "ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġexcept", "ĠException", "Ġas", "Ġe", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontinue", "ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġnew", "_", "tweets", ".", "extend", "(", "get", "_", "tweets", ")", "ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġoldest", "Ġ=", "Ġnew", "_", "tweets", "[-", "1", "].", "id", "Ġ-", "Ġ", "1", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "new", "_", "tweets", ")", "Ġ!=", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "Insert", "ĠActive", "\")", "ĊĊĠĠĠĠĠĠĠ", "Ġfor", "Ġtweet", "Ġin", "Ġnew", "_", "tweets", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġc", ".", "execute", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "INSERT", "ĠINTO", "Ġt", "dump", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "tweet", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġusername", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtweet", "_", "date", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtweet", "_", "id", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtweet", "_", "source", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġuser", "_", "id", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "ĠVALUES", "(", "?,?,", "?,?,", "?,", "?)", "\"\"\",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ[", "tweet", ".", "text", ",", "Ġtweet", ".", "user", ".", "screen", "_", "name", ",", "Ġtweet", ".", "created", "_", "at", ",", "Ġtweet", ".", "id", "_", "str", ",", "Ġtweet", ".", "source", ",", "Ġtweet", ".", "user", ".", "id", "_", "str", "],", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĊĠĠĠĠĠĠĠ", "Ġconn", ".", "commit", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "new", "_", "tweets", ")", "Ġ!=", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "Insert", "ĠDone", "\"", "Ġ+", "Ġ\"\\", "n", "\")", "ĊĊĠĠĠ", "Ġ#", "Ġsimply", "Ġcheck", "Ġif", "Ġtweet", "Ġtext", "Ġcontains", "Ġmy", "Ġscreen", "Ġname", "ĊĠĠĠ", "Ġ#", "Ġchange", "Ġfrom", "Ġhard", "Ġcode", "Ġlater", "ĊĠĠĠ", "Ġdef", "Ġmention", "_", "me", "(", "new", "_", "tweet", "_", "list", ",", "Ġc", ",", "Ġconn", "):", "ĊĠĠĠĠĠĠĠ", "Ġmentioned", "Ġ=", "Ġ[", "x", "Ġfor", "Ġx", "Ġin", "Ġnew", "_", "tweet", "_", "list", "Ġif", "Ġ\"@", "Bon", "ne", "Nick", "\"", "Ġin", "Ġx", "[", "0", "]]", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "new", "_", "tweet", "_", "list", ")", "Ġ!=", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "Insert", "ĠActive", "\")", "ĊĊĠĠĠĠĠĠĠ", "Ġfor", "Ġtweet", "Ġin", "Ġmentioned", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġc", ".", "execute", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "INSERT", "ĠINTO", "Ġserved", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "tweet", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġusername", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtweet", "_", "date", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtweet", "_", "id", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtweet", "_", "source", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġuser", "_", "id", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "ĠVALUES", "(", "?,?,", "?,?,", "?,", "?)", "\"\"\",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ[", "tweet", ".", "text", ",", "Ġtweet", ".", "user", ".", "screen", "_", "name", ",", "Ġtweet", ".", "created", "_", "at", ",", "Ġtweet", ".", "id", "_", "str", ",", "Ġtweet", ".", "source", ",", "Ġtweet", ".", "user", ".", "id", "_", "str", "],", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĊĠĠĠĠĠĠĠ", "Ġconn", ".", "commit", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "new", "_", "tweet", "_", "list", ")", "Ġ!=", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "Insert", "ĠDone", "\"", "Ġ+", "Ġ\"\\", "n", "\")", "ĊĊĠĠĠ", "Ġ#", "Ġreturns", "Ġlist", "Ġof", "Ġuser", "_", "id", "Ġand", "Ġcreated", "_", "at", "Ġpairs", "ĊĠĠĠ", "Ġ#", "Ġdate", "Ġassociated", "Ġwith", "Ġuser", "_", "id", "Ġis", "Ġdate", "Ġof", "Ġlast", "ĊĠĠĠ", "Ġ#", "Ġtweet", "Ġin", "Ġdatabase", "ĊĠĠĠ", "Ġdef", "Ġlast", "_", "tweets", "(", "c", ",", "Ġconn", "):", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġlist", "Ġof", "Ġuser", "Ġids", "Ġand", "Ġthe", "Ġdate", "Ġof", "Ġthe", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġlast", "Ġtweet", "Ġin", "Ġdb", "ĊĠĠĠĠĠĠĠ", "Ġuser", "_", "last", "_", "tweets", "Ġ=", "Ġ[]", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "Ġget", "Ġlist", "Ġof", "Ġuser", "'s", "Ġids", "ĊĠĠĠĠĠĠĠ", "Ġc", ".", "execute", "(\"", "SELECT", "Ġuser", "_", "id", "ĠFROM", "Ġt", "dump", "\")", "ĊĠĠĠĠĠĠĠ", "Ġusers", "Ġ=", "Ġc", ".", "fetchall", "()", "ĊĠĠĠĠĠĠĠ", "Ġusers", "Ġ=", "Ġlist", "(", "set", "([", "user", "[", "0", "]", "Ġfor", "Ġuser", "Ġin", "Ġusers", "]))", "ĊĊĠĠĠĠĠĠĠ", "Ġfor", "Ġuser", "Ġin", "Ġusers", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġc", ".", "execute", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "SELECT", "Ġuser", "_", "id", ",", "Ġtweet", "_", "id", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "ĠFROM", "Ġt", "dump", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "ĠWHERE", "Ġuser", "_", "id", "Ġ=", "Ġ?", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "ĠORDER", "ĠBY", "Ġtweet", "_", "date", "ĠDESC", "\"\"\",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ[", "user", "],", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlast", "_", "tweet", "Ġ=", "Ġc", ".", "fetch", "one", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġuser", "_", "last", "_", "tweets", ".", "append", "(", "last", "_", "tweet", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġuser", "_", "last", "_", "tweets", "ĊĊĠĠĠ", "Ġ#", "Ġdownloads", "Ġmost", "Ġrecent", "Ġposts", "Ġin", "Ġeach", "Ġusers", "Ġtime", "lines", "ĊĠĠĠ", "Ġdef", "Ġdownload", "_", "recent", "(", "api", ",", "Ġc", ",", "Ġconn", ",", "Ġlast", "_", "tweets", "):", "ĊĠĠĠĠĠĠĠ", "Ġc", ".", "execute", "(\"", "SELECT", "Ġtweet", "_", "id", "ĠFROM", "Ġt", "dump", "\")", "ĊĠĠĠĠĠĠĠ", "Ġtweet", "_", "ids", "Ġ=", "Ġ[", "x", "[", "0", "]", "Ġfor", "Ġx", "Ġin", "Ġc", ".", "fetchall", "()]", "ĊĊĠĠĠĠĠĠĠ", "Ġnew", "_", "tweets", "Ġ=", "Ġ[]", "ĊĊĠĠĠĠĠĠĠ", "Ġfor", "Ġpair", "Ġin", "Ġlast", "_", "tweets", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġuser", "_", "id", "Ġ=", "Ġpair", "[", "0", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtweet", "_", "id", "Ġ=", "Ġpair", "[", "1", "]", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġget", "_", "tweets", "Ġ=", "Ġapi", ".", "user", "_", "timeline", "(", "id", "=", "user", "_", "id", ",", "Ġsince", "_", "id", "=", "tweet", "_", "id", ",", "Ġcount", "=", "2", "0", "0", ")", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġexcept", "ĠException", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontinue", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "get", "_", "tweets", ")", "Ġ!=", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġadd", "Ġto", "Ġlist", "Ġof", "Ġall", "Ġof", "Ġthis", "Ġfriend", "'s", "Ġtweets", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġnew", "_", "tweets", ".", "extend", "(", "get", "_", "tweets", ")", "ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġfind", "Ġnewest", "Ġretrieved", "Ġtweet", "'s", "Ġid", "Ġnumber", "Ġplus", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġnewest", "Ġ=", "Ġget", "_", "tweets", "[", "0", "].", "id", "Ġ+", "Ġ", "1", "ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġwhile", "Ġlen", "(", "get", "_", "tweets", ")", "Ġ>", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġmax", "_", "id", "Ġarg", "Ġlooks", "Ġfor", "Ġid", "'s", "Ġless", "Ġthan", "Ġarg", "'s", "Ġvalue", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġget", "_", "tweets", "Ġ=", "Ġapi", ".", "user", "_", "timeline", "(", "id", "=", "user", "_", "id", ",", "Ġcount", "=", "2", "0", "0", ",", "Ġsince", "_", "id", "=", "new", "est", ")", "ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġnew", "_", "tweets", ".", "extend", "(", "get", "_", "tweets", ")", "ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġnewest", "Ġ=", "Ġget", "_", "tweets", "[", "0", "].", "id", "Ġ+", "Ġ", "1", "ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġexcept", "ĠException", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontinue", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "new", "_", "tweets", ")", "Ġ!=", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "Insert", "ĠActive", "\")", "ĊĊĠĠĠĠĠĠĠ", "Ġfor", "Ġtweet", "Ġin", "Ġnew", "_", "tweets", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġtweet", ".", "user", ".", "screen", "_", "name", "Ġ!=", "Ġ\"", "Bon", "ne", "Nick", "\"", "Ġand", "Ġtweet", ".", "id", "Ġnot", "Ġin", "Ġtweet", "_", "ids", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġc", ".", "execute", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "INSERT", "ĠINTO", "Ġt", "dump", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "tweet", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġusername", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtweet", "_", "date", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtweet", "_", "id", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtweet", "_", "source", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġuser", "_", "id", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "ĠVALUES", "(", "?,?,", "?,?,", "?,", "?)", "\"\"\",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ[", "tweet", ".", "text", ",", "Ġtweet", ".", "user", ".", "screen", "_", "name", ",", "Ġtweet", ".", "created", "_", "at", ",", "Ġtweet", ".", "id", "_", "str", ",", "Ġtweet", ".", "source", ",", "Ġtweet", ".", "user", ".", "id", "_", "str", "],", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĊĠĠĠĠĠĠĠ", "Ġconn", ".", "commit", "()", "ĊĠĠĠĠĠĠĠ", "Ġconn", ".", "close", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "new", "_", "tweets", ")", "Ġ!=", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "Insert", "ĠDone", "\"", "Ġ+", "Ġ\"\\", "n", "\")", "ĊĊ", "Ċ", "if", "Ġ__", "name", "__", "Ġ==", "Ġ\"__", "main", "__\":", "ĊĠĠĠ", "Ġmain", "()", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 14, 15, 15, 15, 15, 16, 16, 16, 16, 16, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 50, 50, 50, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 66, 66, 66, 66, 66, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 72, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 82, 82, 82, 82, 82, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 87, 87, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 97, 97, 97, 97, 97, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 102, 102, 102, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 107, 107, 107, 107, 107, 107, 109, 109, 109, 109, 109, 109, 109, 109, 110, 110, 110, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 114, 114, 114, 114, 114, 114, 115, 115, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 125, 125, 125, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 129, 129, 129, 129, 129, 129, 130, 130, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 137, 137, 137, 137, 137, 137, 139, 139, 139, 139, 139, 139, 139, 139, 140, 140, 140, 140, 140, 141, 141, 141, 141, 141, 141, 142, 142, 142, 142, 143, 143, 143, 144, 144, 144, 144, 144, 145, 145, 145, 145, 145, 146, 146, 146, 146, 146, 147, 147, 147, 147, 147, 148, 148, 148, 148, 148, 148, 148, 148, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 150, 150, 152, 152, 152, 152, 152, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 158, 158, 158, 158, 158, 158, 158, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 163, 163, 163, 163, 163, 163, 165, 165, 165, 165, 165, 165, 166, 166, 166, 166, 166, 167, 167, 167, 167, 167, 168, 168, 168, 168, 169, 169, 169, 170, 170, 170, 170, 170, 171, 171, 171, 171, 171, 172, 172, 172, 172, 172, 173, 173, 173, 173, 173, 174, 174, 174, 174, 174, 174, 174, 174, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 176, 176, 178, 178, 178, 178, 178, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 185, 185, 185, 185, 185, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 188, 188, 188, 188, 188, 188, 189, 189, 189, 189, 189, 189, 189, 189, 191, 191, 191, 191, 191, 191, 191, 191, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 193, 193, 193, 193, 193, 193, 193, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 196, 196, 196, 196, 196, 196, 197, 197, 197, 197, 197, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 199, 199, 199, 199, 200, 200, 200, 200, 200, 200, 200, 201, 201, 201, 201, 201, 201, 201, 201, 202, 202, 202, 202, 203, 203, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 208, 208, 208, 208, 208, 208, 208, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 215, 215, 215, 215, 215, 215, 217, 217, 217, 217, 217, 217, 217, 217, 218, 218, 218, 218, 218, 218, 218, 218, 218, 219, 219, 219, 219, 219, 219, 219, 219, 219, 221, 221, 221, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 224, 224, 224, 224, 225, 225, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 235, 235, 235, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 243, 243, 243, 243, 244, 244, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 247, 247, 247, 247, 247, 247, 249, 249, 249, 249, 249, 249, 249, 249, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 251, 251, 251, 251, 251, 252, 252, 252, 252, 252, 252, 253, 253, 253, 253, 254, 254, 254, 255, 255, 255, 255, 255, 256, 256, 256, 256, 256, 257, 257, 257, 257, 257, 258, 258, 258, 258, 258, 259, 259, 259, 259, 259, 259, 259, 259, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 261, 261, 263, 263, 263, 263, 263, 264, 264, 264, 264, 264, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 267, 267, 267, 267, 267, 267, 267, 267, 267, 267, 269, 270, 270, 270, 270, 270, 270, 270, 270, 270, 271, 271, 271 ]
[ 1, 4, 8, 9, 13, 15, 22, 26, 27, 34, 38, 39, 42, 43, 49, 50, 51, 52, 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 1, 7, 9, 13, 14, 1, 7, 14, 15, 1, 1, 5, 12, 18, 25, 32, 38, 1, 1, 4, 1, 2, 9, 11, 13, 19, 22, 27, 33, 37, 1, 14, 19, 24, 25, 27, 28, 33, 34, 38, 1, 4, 1, 1, 4, 9, 12, 4, 14, 15, 22, 24, 1, 1, 6, 16, 17, 4, 6, 11, 20, 4, 8, 16, 19, 8, 12, 14, 24, 25, 28, 29, 32, 34, 8, 14, 15, 19, 21, 31, 32, 35, 36, 41, 42, 44, 46, 8, 10, 12, 18, 19, 23, 24, 25, 26, 8, 13, 15, 21, 22, 26, 27, 28, 29, 8, 13, 14, 18, 20, 30, 31, 35, 36, 42, 43, 44, 45, 50, 51, 8, 10, 15, 19, 23, 31, 32, 36, 39, 42, 8, 12, 13, 20, 22, 32, 33, 36, 37, 38, 39, 44, 45, 48, 49, 51, 52, 8, 18, 19, 27, 28, 30, 31, 36, 37, 40, 41, 43, 44, 49, 50, 54, 55, 62, 63, 8, 10, 17, 22, 27, 30, 39, 42, 45, 53, 8, 10, 15, 24, 28, 31, 34, 8, 18, 19, 27, 28, 34, 35, 38, 39, 41, 42, 47, 48, 53, 54, 58, 59, 4, 8, 12, 13, 16, 19, 8, 15, 17, 24, 30, 32, 8, 15, 16, 20, 22, 29, 30, 34, 35, 38, 40, 8, 17, 18, 21, 23, 30, 31, 34, 36, 40, 42, 44, 52, 53, 56, 59, 64, 67, 69, 8, 17, 18, 24, 26, 33, 34, 37, 39, 46, 48, 50, 58, 59, 65, 68, 73, 76, 78, 8, 15, 16, 21, 23, 30, 31, 34, 36, 42, 44, 46, 52, 53, 58, 61, 66, 69, 71, 8, 15, 16, 21, 22, 28, 30, 37, 38, 41, 43, 50, 52, 54, 60, 61, 66, 67, 73, 76, 81, 84, 86, 8, 13, 15, 17, 21, 22, 23, 28, 35, 36, 44, 45, 48, 49, 58, 59, 65, 66, 8, 13, 14, 17, 18, 24, 25, 30, 31, 37, 38, 43, 44, 51, 52, 57, 58, 64, 65, 8, 12, 14, 16, 20, 21, 22, 25, 26, 30, 31, 36, 37, 39, 40, 44, 45, 50, 51, 55, 56, 8, 15, 19, 4, 6, 15, 18, 24, 25, 29, 30, 32, 40, 42, 46, 49, 53, 60, 4, 6, 8, 12, 19, 23, 30, 35, 42, 45, 50, 4, 8, 12, 13, 18, 19, 21, 24, 8, 13, 15, 22, 23, 24, 31, 33, 38, 39, 43, 44, 48, 49, 51, 53, 8, 10, 12, 17, 18, 24, 26, 8, 10, 11, 18, 22, 28, 34, 37, 41, 48, 50, 54, 21, 23, 28, 33, 34, 22, 31, 36, 37, 22, 28, 29, 33, 38, 39, 22, 28, 29, 31, 36, 37, 22, 28, 29, 35, 40, 41, 22, 27, 28, 30, 35, 36, 40, 8, 15, 17, 18, 23, 4, 6, 15, 18, 24, 25, 29, 30, 32, 36, 39, 46, 49, 53, 60, 4, 6, 13, 20, 27, 32, 36, 44, 58, 63, 4, 8, 16, 17, 22, 23, 25, 28, 8, 13, 15, 22, 23, 24, 31, 33, 38, 39, 43, 44, 48, 49, 51, 53, 8, 10, 12, 17, 18, 24, 26, 8, 10, 11, 18, 22, 28, 34, 37, 41, 48, 58, 21, 23, 28, 33, 34, 22, 31, 36, 37, 22, 28, 29, 33, 38, 39, 22, 28, 29, 31, 36, 37, 22, 28, 29, 35, 40, 41, 22, 27, 28, 30, 35, 36, 40, 8, 15, 17, 18, 23, 4, 6, 12, 16, 20, 28, 31, 41, 55, 4, 6, 11, 13, 20, 25, 30, 35, 38, 46, 49, 51, 55, 4, 8, 12, 13, 14, 15, 20, 21, 24, 25, 27, 29, 8, 10, 14, 19, 22, 27, 29, 33, 8, 10, 11, 18, 20, 26, 31, 32, 34, 39, 41, 45, 47, 8, 14, 16, 18, 19, 27, 29, 8, 14, 16, 21, 22, 25, 27, 31, 32, 33, 34, 38, 43, 46, 52, 55, 8, 10, 14, 19, 22, 30, 31, 34, 39, 47, 8, 16, 17, 20, 22, 26, 27, 34, 35, 38, 40, 8, 12, 13, 20, 22, 24, 25, 29, 31, 34, 42, 43, 46, 49, 53, 54, 55, 56, 60, 63, 69, 70, 8, 15, 19, 20, 27, 4, 6, 16, 19, 22, 23, 24, 25, 26, 27, 30, 32, 37, 39, 44, 4, 6, 13, 20, 28, 31, 33, 37, 4, 8, 17, 18, 20, 21, 26, 27, 30, 31, 33, 34, 39, 40, 47, 48, 52, 54, 8, 10, 15, 18, 24, 28, 36, 39, 42, 8, 10, 11, 18, 20, 26, 32, 33, 35, 40, 42, 46, 48, 8, 14, 15, 18, 20, 22, 23, 31, 33, 8, 14, 15, 18, 20, 22, 23, 24, 25, 26, 30, 32, 35, 41, 42, 45, 46, 8, 12, 13, 19, 21, 24, 8, 12, 19, 22, 29, 30, 34, 35, 12, 16, 17, 16, 18, 22, 25, 29, 34, 41, 42, 43, 44, 45, 52, 57, 64, 16, 20, 21, 27, 29, 33, 34, 38, 39, 47, 48, 50, 51, 57, 58, 64, 65, 66, 67, 68, 69, 12, 19, 29, 32, 34, 35, 16, 25, 12, 14, 18, 21, 26, 29, 33, 36, 41, 48, 50, 57, 12, 16, 17, 23, 24, 30, 31, 34, 35, 41, 42, 12, 14, 19, 26, 36, 42, 44, 47, 54, 59, 60, 61, 12, 19, 21, 25, 26, 32, 34, 35, 37, 39, 41, 42, 43, 12, 14, 18, 25, 31, 32, 33, 34, 35, 36, 42, 46, 12, 18, 22, 23, 26, 27, 33, 34, 36, 37, 38, 39, 16, 20, 21, 20, 22, 26, 27, 29, 33, 39, 43, 46, 48, 53, 58, 62, 64, 70, 20, 24, 25, 31, 33, 37, 38, 42, 43, 51, 52, 54, 55, 61, 62, 68, 69, 70, 71, 72, 73, 77, 78, 80, 81, 83, 87, 88, 16, 23, 33, 36, 38, 39, 20, 29, 16, 20, 21, 27, 28, 34, 35, 38, 39, 45, 46, 16, 23, 25, 29, 30, 36, 38, 39, 41, 43, 45, 46, 47, 8, 11, 15, 16, 19, 20, 26, 27, 30, 31, 32, 33, 12, 18, 20, 26, 33, 35, 8, 12, 18, 21, 25, 26, 32, 33, 12, 14, 15, 22, 23, 16, 20, 26, 31, 33, 37, 28, 30, 35, 36, 28, 37, 38, 28, 34, 35, 39, 40, 28, 34, 35, 37, 38, 28, 34, 35, 41, 42, 28, 33, 34, 36, 37, 29, 36, 37, 41, 45, 47, 49, 53, 16, 18, 23, 24, 28, 29, 35, 36, 40, 41, 47, 48, 52, 53, 59, 60, 67, 68, 70, 71, 77, 78, 80, 81, 84, 85, 91, 92, 98, 99, 105, 106, 110, 111, 113, 114, 117, 119, 12, 14, 8, 13, 14, 20, 22, 8, 11, 15, 16, 19, 20, 26, 27, 30, 31, 32, 33, 12, 18, 20, 26, 31, 32, 34, 37, 38, 40, 4, 6, 13, 19, 22, 28, 33, 42, 45, 52, 57, 4, 6, 13, 18, 23, 28, 34, 4, 8, 16, 17, 19, 20, 23, 24, 29, 30, 34, 35, 37, 38, 43, 45, 8, 18, 20, 22, 23, 27, 29, 32, 36, 37, 42, 43, 47, 50, 53, 56, 58, 62, 63, 66, 68, 69, 70, 72, 8, 11, 15, 16, 19, 20, 25, 26, 30, 31, 34, 35, 36, 37, 12, 18, 20, 26, 33, 35, 8, 12, 18, 21, 31, 32, 12, 14, 15, 22, 23, 16, 20, 26, 31, 38, 28, 30, 35, 36, 28, 37, 38, 28, 34, 35, 39, 40, 28, 34, 35, 37, 38, 28, 34, 35, 41, 42, 28, 33, 34, 36, 37, 29, 36, 37, 41, 45, 47, 49, 53, 16, 18, 23, 24, 28, 29, 35, 36, 40, 41, 47, 48, 52, 53, 59, 60, 67, 68, 70, 71, 77, 78, 80, 81, 84, 85, 91, 92, 98, 99, 105, 106, 110, 111, 113, 114, 117, 119, 12, 14, 8, 13, 14, 20, 22, 8, 11, 15, 16, 19, 20, 25, 26, 30, 31, 34, 35, 36, 37, 12, 18, 20, 26, 31, 32, 34, 37, 38, 40, 4, 6, 14, 19, 22, 27, 28, 30, 34, 42, 43, 45, 51, 4, 6, 11, 22, 27, 32, 33, 35, 38, 43, 46, 51, 4, 6, 12, 15, 24, 4, 8, 13, 14, 20, 21, 22, 23, 28, 30, 8, 10, 15, 18, 23, 27, 31, 35, 40, 43, 47, 8, 10, 15, 21, 24, 27, 8, 13, 14, 18, 19, 25, 27, 30, 8, 10, 14, 19, 22, 27, 29, 33, 8, 10, 11, 18, 20, 26, 31, 32, 34, 39, 41, 45, 47, 8, 14, 16, 18, 19, 27, 29, 8, 14, 16, 21, 22, 25, 27, 31, 32, 33, 34, 38, 43, 46, 52, 55, 8, 12, 17, 20, 26, 27, 12, 14, 15, 22, 23, 16, 20, 26, 31, 32, 34, 35, 41, 42, 44, 29, 34, 36, 40, 29, 35, 40, 41, 43, 45, 47, 29, 35, 38, 44, 45, 49, 54, 58, 16, 18, 22, 24, 12, 14, 12, 17, 18, 23, 25, 27, 28, 33, 36, 38, 12, 17, 18, 22, 23, 29, 30, 36, 37, 41, 42, 47, 48, 8, 15, 20, 21, 25, 26, 32, 4, 6, 16, 21, 28, 34, 37, 42, 48, 53, 58, 4, 8, 17, 18, 24, 25, 28, 29, 31, 32, 37, 38, 43, 44, 50, 52, 8, 10, 11, 18, 20, 26, 32, 33, 35, 40, 42, 46, 48, 8, 14, 15, 18, 20, 22, 23, 24, 25, 26, 30, 32, 35, 37, 38, 46, 49, 8, 12, 13, 19, 21, 24, 8, 12, 17, 20, 25, 26, 32, 33, 12, 17, 18, 20, 22, 27, 28, 29, 30, 12, 18, 19, 21, 23, 28, 29, 30, 31, 12, 16, 17, 16, 20, 21, 27, 29, 33, 34, 38, 39, 47, 48, 50, 51, 55, 56, 58, 59, 65, 66, 68, 69, 74, 75, 77, 78, 84, 85, 86, 87, 88, 89, 12, 19, 29, 30, 16, 25, 12, 15, 19, 20, 23, 24, 30, 31, 34, 35, 36, 37, 16, 18, 22, 25, 30, 33, 37, 40, 45, 52, 54, 61, 16, 20, 21, 27, 28, 34, 35, 38, 39, 45, 46, 16, 18, 23, 30, 40, 46, 48, 51, 58, 63, 64, 65, 16, 23, 25, 29, 30, 36, 37, 38, 40, 42, 44, 45, 46, 16, 22, 26, 27, 30, 31, 37, 38, 40, 41, 42, 43, 20, 24, 25, 24, 26, 30, 31, 33, 37, 43, 47, 50, 52, 57, 62, 66, 68, 74, 24, 28, 29, 35, 37, 41, 42, 46, 47, 55, 56, 58, 59, 63, 64, 66, 67, 73, 74, 75, 76, 77, 78, 84, 85, 87, 88, 91, 94, 95, 24, 28, 29, 35, 36, 42, 43, 46, 47, 53, 54, 24, 31, 33, 37, 38, 44, 45, 46, 48, 50, 52, 53, 54, 20, 27, 37, 38, 24, 33, 8, 11, 15, 16, 19, 20, 26, 27, 30, 31, 32, 33, 12, 18, 20, 26, 33, 35, 8, 12, 18, 21, 25, 26, 32, 33, 12, 15, 21, 22, 26, 27, 33, 34, 38, 41, 43, 46, 48, 52, 53, 57, 63, 64, 66, 70, 73, 79, 80, 83, 84, 16, 18, 19, 26, 27, 20, 24, 30, 35, 37, 41, 32, 34, 39, 40, 32, 41, 42, 32, 38, 39, 43, 44, 32, 38, 39, 41, 42, 32, 38, 39, 45, 46, 32, 37, 38, 40, 41, 33, 40, 41, 45, 49, 51, 53, 57, 20, 22, 27, 28, 32, 33, 39, 40, 44, 45, 51, 52, 56, 57, 63, 64, 71, 72, 74, 75, 81, 82, 84, 85, 88, 89, 95, 96, 102, 103, 109, 110, 114, 115, 117, 118, 121, 123, 16, 18, 8, 13, 14, 20, 22, 8, 13, 14, 19, 21, 8, 11, 15, 16, 19, 20, 26, 27, 30, 31, 32, 33, 12, 18, 20, 26, 31, 32, 34, 37, 38, 40, 1, 1, 3, 6, 10, 12, 15, 19, 23, 27, 4, 9, 11 ]
8dfef0a4525328be8dfb4723f0a168dc22eb5eb2
#!/usr/bin/env python """ This is a Cog used to display processes/ programs running on the client to a discord text channel Commented using reStructuredText (reST) ToDo create and use a database for multiple servers """ # Futures # Built-in/Generic Imports import os import sys import configparser import shutil import time import codecs # Libs import discord import psutil from discord.ext import commands, tasks # Own modules __author__ = "Jack Draper" __copyright__ = "Unofficial Copyright 2019, CyclopsBot" __credits__ = ["Jack Draper"] __license__ = "Developer" __version__ = "0.0.4" __maintainer__ = "Jack Draper" __email__ = "[email protected]" __status__ = "Development" # "Prototype", "Development", or "Production" # Constants CONFIG_PATH = "./configs/config.ini" DEFAULT_EMBED = discord.Embed(title=":desktop: Program Status", colour=discord.Colour.blue()) # Checks for config file if not os.path.exists("./configs/config.ini"): print("No config file can be found in ./configs/.") sys.exit("No config found.") # Runs config file config = configparser.ConfigParser() try: # config.read(os.path.abspath("./configs/config.ini")) config.read_file(codecs.open(CONFIG_PATH, "r", "utf-8-sig")) except FileNotFoundError: try: # shutil.copyfile("./configs/default_config.ini", "./configs/config.ini") print("You need to set up the config file correctly.") except shutil.Error: print("Something is wrong with the default config file or the config folder.") time.sleep(4) sys.exit() # Config Constants ADMIN_ROLE = config["Credentials"]["admin_role"] TEXT_CHANNEL = int(config["ProcessDisplay"]["text_channel_id"]) PROCESSES = eval(config["ProcessDisplay"]["processes"]) class ProcessDisplay(commands.Cog): """ The Cog for Process Display """ def __init__(self, client): """ :param client: the bot client parsed in from the main program """ self.started = False self.client = client self.inline = False # Events @commands.Cog.listener() async def on_ready(self): """ Ran when bot is starting up and ready Deletes messages from the bot in the TEXTCHANNEL starts up find_processes method :return: """ if not self.started: channel = self.client.get_channel(TEXT_CHANNEL) await self.delete_bot_msg(channel) msg = await channel.send(embed=DEFAULT_EMBED) self.find_processes.start(msg) started = True print("ProcessDisplay Running") # Commands @commands.command() @commands.has_permissions(administrator=True) async def toggle_inline(self, ctx): """ Toggles inline for process controls :param ctx: The command Context :return: """ self.inline = not self.inline @commands.command() @commands.has_permissions(administrator=True) async def move_process(self, direction, process_name): """ need to make :param direction: :param process_name: :return: """ for i in range(len(PROCESSES)): if PROCESSES[i] == process_name: if direction.lower() == "up": pass @commands.command() @commands.has_permissions(administrator=True) async def add_process(self, ctx, process, name): """ Adds a process to the process display. Must be different from ones currently displayed. :param ctx: Context of the command :param process: The process (e.g. 'cmd.exe') to be added :param name: The name to be displayed for the process (e.g. 'Command Prompt') :return: """ name = self.fix_emoji_escapes(name) if process in PROCESSES.keys(): await ctx.send(f"The process {process} is already being displayed") elif name in PROCESSES.values(): await ctx.send(f"The process name {name} is already being displayed") else: PROCESSES[process] = name self.update_processes_config() await ctx.send(f"The process {name} has been added") @commands.command() @commands.has_permissions(administrator=True) async def remove_process(self, ctx, *name): """ Removes a process from the process display :param ctx: Context of the command :param name: Name displayed for the process (e.g. Command Prompt) :return: """ print(name) name = self.fix_emoji_escapes(" ".join(name)) complete = False for process in PROCESSES.keys(): if PROCESSES.get(process) == name: PROCESSES.pop(process) self.update_processes_config() await ctx.send(f"The process {name} has been removed") complete = True break if not complete: await ctx.send(f"The process {name} doesn't exist") @commands.command() @commands.has_permissions(administrator=True) async def edit_process(self, ctx, old_name, new_name): """ Edits the name of a process :param ctx: The context of the command :param old_name: The old name of the process (to be changed) :param new_name: The new name of the process (changed to) :return: """ old_name = self.fix_emoji_escapes(old_name) new_name = self.fix_emoji_escapes(new_name) if old_name in PROCESSES.values(): for process in PROCESSES: if PROCESSES.get(process) == old_name: PROCESSES.update({process: new_name}) self.update_processes_config() else: await ctx.send(f"Process name {old_name} doesn't exist") @tasks.loop(seconds=1) async def find_processes(self, msg): """ The processes with statuses are attached to the msg given :param msg: The message to be edited with the processes :return: """ running_processes = [] new_embed = DEFAULT_EMBED.copy() for proc in psutil.process_iter(): if proc.name() in PROCESSES.keys(): running_processes.append(proc.name()) elif proc.name() in ["java.exe", "javaw.exe"] and proc.cwd() in PROCESSES.keys(): running_processes.append(proc.cwd()) for process in PROCESSES: try: if process in running_processes: new_embed.add_field( name=PROCESSES.get(process), value="Online <:GreenTick:592083498534174721>", inline=self.inline ) else: new_embed.add_field( name=PROCESSES.get(process), value="Offline <:RedCross:592082557961633877>", inline=self.inline ) except PermissionError: new_embed.add_field( name=PROCESSES.get(process), value="Admin Required <:OrangeUnknown:592082676891123722>", inline=self.inline ) await msg.edit(content="", embed=new_embed) def is_me(self, m): """ Checks if a messages author is the bot :param m: tbh idk, maybe message? :return: """ return m.author == self.client.user async def delete_bot_msg(self, channel): """ Deletes up to the last 100 messages sent by the bot in the given channel :param channel: The channel that will have the messages deleted :return: the message that says how many messages were deleted """ await channel.purge(limit=100, check=self.is_me) @staticmethod def update_processes_config(): """ Updates the processes line in the config with the current PROCESSES :return: """ config.set("ProcessDisplay", "processes", str(PROCESSES)) with open(CONFIG_PATH, "w", encoding="utf-8") as configfile: config.write(configfile) @staticmethod def fix_emoji_escapes(text): """ Fixes emoji escapes to add the < back on :param text: The text that needs to be checked for an escape :return: the fixed text """ new_text = text.split(":") for i in range(2, len(new_text)): if ">" in new_text[i]: new_text[i - 2] += "<" return ":".join(new_text) def setup(client): """ Ran on setup of the Cog :param client: The bot client :return: """ client.add_cog(ProcessDisplay(client))
[ 8758, 3392, 52, 1793, 52, 2141, 4406, 222, 222, 3012, 222, 2287, 458, 331, 409, 835, 1674, 391, 2540, 13209, 52, 18359, 3991, 563, 341, 2060, 391, 331, 20779, 1367, 3842, 222, 222, 6327, 337, 1493, 334, 30741, 1049, 327, 287, 654, 46, 222, 222, 38503, 303, 1506, 480, 813, 331, 3520, 456, 4632, 13600, 222, 3012, 222, 40, 525, 20605, 222, 222, 40, 19026, 50, 285, 52, 4020, 44949, 222, 485, 2355, 222, 485, 5263, 222, 485, 1377, 3936, 222, 485, 23074, 222, 485, 1153, 222, 485, 45919, 222, 222, 40, 17467, 120, 222, 485, 20779, 222, 485, 9680, 1058, 222, 1097, 20779, 51, 426, 1220, 6364, 49, 8285, 222, 222, 40, 29908, 7912, 222, 222, 523, 2133, 523, 299, 332, 30625, 493, 26877, 39, 222, 523, 11793, 523, 299, 332, 1079, 25755, 2657, 244, 55, 53, 54, 62, 49, 22404, 6772, 1088, 9037, 39, 222, 523, 36122, 523, 299, 3059, 30625, 493, 26877, 1465, 222, 523, 2094, 523, 299, 332, 18294, 39, 222, 523, 1687, 523, 299, 332, 53, 51, 53, 51, 57, 39, 222, 523, 42035, 523, 299, 332, 30625, 493, 26877, 39, 222, 523, 1951, 523, 299, 332, 1402, 39340, 7961, 1310, 69, 7265, 51, 527, 39, 222, 523, 1535, 523, 299, 332, 20204, 39, 222, 40, 332, 17527, 411, 332, 20204, 411, 575, 332, 24486, 39, 222, 222, 40, 14072, 222, 6196, 100, 4088, 299, 5614, 15753, 52, 1180, 51, 5942, 39, 222, 5815, 100, 31321, 1363, 299, 20779, 51, 11176, 45, 1333, 366, 63, 10956, 63, 9937, 5415, 411, 20361, 66, 14924, 51, 16744, 51, 5494, 1177, 499, 222, 40, 17269, 456, 1377, 822, 222, 344, 666, 2355, 51, 1005, 51, 4678, 12031, 15753, 52, 1180, 51, 5942, 10320, 303, 1489, 459, 2042, 1377, 822, 902, 545, 2448, 347, 5851, 15753, 4735, 678, 303, 5263, 51, 4788, 459, 2042, 1377, 2448, 7164, 222, 40, 35685, 1377, 822, 222, 1180, 299, 1377, 3936, 51, 46416, 365, 222, 1287, 63, 303, 607, 1377, 51, 870, 45, 519, 51, 1005, 51, 21424, 12031, 15753, 52, 1180, 51, 5942, 2152, 303, 1377, 51, 870, 100, 781, 45, 707, 1766, 51, 1693, 45, 6196, 100, 4088, 49, 332, 119, 411, 332, 3330, 50, 61, 50, 5037, 2152, 222, 7364, 2050, 28010, 63, 303, 1614, 63, 310, 607, 23074, 51, 3014, 781, 12031, 15753, 52, 1555, 100, 1180, 51, 5942, 411, 5614, 15753, 52, 1180, 51, 5942, 678, 310, 1489, 459, 4296, 1868, 391, 758, 992, 341, 1377, 822, 8487, 7164, 303, 2959, 23074, 51, 943, 63, 310, 1489, 459, 19308, 458, 6661, 642, 341, 1263, 1377, 822, 575, 341, 1377, 4865, 7164, 310, 1153, 51, 7860, 45, 57, 46, 303, 5263, 51, 4788, 365, 222, 222, 40, 3395, 14072, 222, 15805, 100, 17476, 299, 1377, 1388, 10102, 9571, 2317, 100, 4315, 1465, 222, 6025, 100, 15442, 299, 648, 45, 1180, 1388, 2877, 3948, 9571, 897, 100, 3253, 100, 333, 6957, 222, 10822, 959, 21177, 299, 10018, 45, 1180, 1388, 2877, 3948, 9571, 25538, 6957, 499, 222, 842, 6849, 3948, 45, 7626, 51, 72, 835, 731, 303, 1547, 303, 906, 409, 835, 456, 6849, 8547, 303, 1547, 465, 684, 1176, 1683, 3232, 803, 49, 2060, 731, 310, 1547, 310, 518, 772, 2060, 63, 341, 7369, 2060, 8450, 347, 664, 341, 2594, 3477, 310, 1547, 310, 649, 51, 9782, 299, 3208, 310, 649, 51, 1598, 299, 2060, 310, 649, 51, 3236, 299, 3208, 465, 607, 17874, 303, 496, 7626, 51, 72, 835, 51, 9447, 365, 303, 2513, 684, 563, 100, 2603, 45, 803, 731, 310, 1547, 310, 578, 297, 1429, 7369, 458, 8074, 992, 480, 8768, 310, 34350, 5231, 664, 341, 7369, 347, 341, 13421, 15442, 310, 11214, 992, 2309, 100, 25538, 1431, 310, 518, 620, 63, 310, 1547, 603, 434, 666, 649, 51, 9782, 63, 343, 3842, 299, 649, 51, 1598, 51, 390, 100, 3253, 45, 6025, 100, 15442, 46, 1083, 2031, 649, 51, 2577, 100, 2213, 100, 2093, 45, 3253, 46, 343, 3141, 299, 2031, 3842, 51, 2729, 45, 6953, 66, 5815, 100, 31321, 1363, 46, 343, 649, 51, 1828, 100, 25538, 51, 1384, 45, 2093, 46, 343, 7326, 299, 2969, 310, 1489, 459, 2877, 3948, 13794, 678, 465, 607, 24194, 303, 496, 7626, 51, 2514, 365, 303, 496, 7626, 51, 2057, 100, 11897, 45, 36700, 66, 1844, 46, 303, 2513, 684, 10744, 100, 3236, 45, 803, 49, 3708, 731, 310, 1547, 310, 25153, 120, 4467, 456, 2183, 12600, 603, 518, 772, 3708, 63, 906, 2035, 7063, 310, 518, 620, 63, 310, 1547, 310, 649, 51, 3236, 299, 666, 649, 51, 3236, 465, 496, 7626, 51, 2514, 365, 303, 496, 7626, 51, 2057, 100, 11897, 45, 36700, 66, 1844, 46, 303, 2513, 684, 5187, 100, 2441, 45, 803, 49, 6999, 49, 2183, 100, 444, 731, 310, 1547, 310, 1868, 391, 1949, 310, 518, 772, 6999, 63, 310, 518, 772, 2183, 100, 444, 63, 310, 518, 620, 63, 310, 1547, 310, 456, 613, 347, 2189, 45, 1688, 45, 10822, 959, 21177, 8485, 343, 434, 12848, 959, 21177, 96, 110, 98, 630, 2183, 100, 444, 63, 419, 434, 6999, 51, 5773, 365, 630, 332, 436, 582, 547, 3119, 465, 496, 7626, 51, 2514, 365, 303, 496, 7626, 51, 2057, 100, 11897, 45, 36700, 66, 1844, 46, 303, 2513, 684, 1035, 100, 2441, 45, 803, 49, 3708, 49, 2183, 49, 655, 731, 310, 1547, 310, 15444, 331, 2183, 391, 341, 2183, 2540, 51, 310, 15620, 545, 3473, 664, 11703, 5937, 11083, 51, 603, 518, 772, 3708, 63, 7063, 451, 341, 2035, 310, 518, 772, 2183, 63, 906, 2183, 327, 106, 51, 108, 51, 349, 3530, 51, 8030, 704, 391, 545, 3654, 310, 518, 772, 655, 63, 906, 655, 391, 545, 11083, 456, 341, 2183, 327, 106, 51, 108, 51, 349, 2037, 39654, 704, 310, 518, 620, 63, 310, 1547, 310, 655, 299, 649, 51, 3315, 100, 13491, 100, 326, 3647, 326, 45, 444, 46, 310, 434, 2183, 347, 12848, 959, 21177, 51, 3519, 2284, 343, 2031, 3708, 51, 2729, 45, 107, 39, 1338, 2183, 320, 2441, 130, 458, 3443, 4019, 11083, 678, 310, 4378, 655, 347, 12848, 959, 21177, 51, 2857, 2284, 343, 2031, 3708, 51, 2729, 45, 107, 39, 1338, 2183, 655, 320, 444, 130, 458, 3443, 4019, 11083, 678, 603, 832, 63, 343, 12848, 959, 21177, 96, 2441, 98, 299, 655, 343, 649, 51, 1896, 100, 25538, 100, 1180, 365, 343, 2031, 3708, 51, 2729, 45, 107, 39, 1338, 2183, 320, 444, 130, 1421, 2602, 3654, 678, 465, 496, 7626, 51, 2514, 365, 303, 496, 7626, 51, 2057, 100, 11897, 45, 36700, 66, 1844, 46, 303, 2513, 684, 3365, 100, 2441, 45, 803, 49, 3708, 49, 338, 444, 731, 310, 1547, 310, 24968, 331, 2183, 664, 341, 2183, 2540, 603, 518, 772, 3708, 63, 7063, 451, 341, 2035, 310, 518, 772, 655, 63, 3286, 11083, 456, 341, 2183, 327, 106, 51, 108, 51, 5730, 39654, 46, 310, 518, 620, 63, 310, 1547, 310, 1489, 45, 444, 46, 310, 655, 299, 649, 51, 3315, 100, 13491, 100, 326, 3647, 326, 459, 4956, 2548, 45, 444, 509, 310, 6179, 299, 3208, 310, 456, 2183, 347, 12848, 959, 21177, 51, 3519, 2284, 343, 434, 12848, 959, 21177, 51, 390, 45, 2441, 46, 630, 655, 63, 419, 12848, 959, 21177, 51, 3254, 45, 2441, 46, 419, 649, 51, 1896, 100, 25538, 100, 1180, 365, 419, 2031, 3708, 51, 2729, 45, 107, 39, 1338, 2183, 320, 444, 130, 1421, 2602, 6563, 678, 419, 6179, 299, 2969, 419, 1644, 310, 434, 666, 6179, 63, 343, 2031, 3708, 51, 2729, 45, 107, 39, 1338, 2183, 320, 444, 130, 4183, 1348, 2325, 678, 465, 496, 7626, 51, 2514, 365, 303, 496, 7626, 51, 2057, 100, 11897, 45, 36700, 66, 1844, 46, 303, 2513, 684, 4588, 100, 2441, 45, 803, 49, 3708, 49, 3627, 100, 444, 49, 556, 100, 444, 731, 310, 1547, 310, 4910, 1526, 341, 655, 451, 331, 2183, 310, 518, 772, 3708, 63, 906, 1637, 451, 341, 2035, 310, 518, 772, 3627, 100, 444, 63, 906, 3627, 655, 451, 341, 2183, 327, 471, 545, 5386, 46, 310, 518, 772, 556, 100, 444, 63, 906, 556, 655, 451, 341, 2183, 327, 8970, 391, 46, 310, 518, 620, 63, 310, 1547, 310, 3627, 100, 444, 299, 649, 51, 3315, 100, 13491, 100, 326, 3647, 326, 45, 1477, 100, 444, 46, 310, 556, 100, 444, 299, 649, 51, 3315, 100, 13491, 100, 326, 3647, 326, 45, 909, 100, 444, 46, 310, 434, 3627, 100, 444, 347, 12848, 959, 21177, 51, 2857, 2284, 343, 456, 2183, 347, 12848, 959, 21177, 63, 419, 434, 12848, 959, 21177, 51, 390, 45, 2441, 46, 630, 3627, 100, 444, 63, 547, 12848, 959, 21177, 51, 1896, 1389, 2441, 63, 556, 100, 444, 1770, 547, 649, 51, 1896, 100, 25538, 100, 1180, 365, 603, 832, 63, 343, 2031, 3708, 51, 2729, 45, 107, 39, 2877, 655, 320, 1477, 100, 444, 130, 4183, 1348, 2325, 678, 465, 496, 8255, 51, 5856, 45, 6373, 66, 54, 46, 303, 2513, 684, 2309, 100, 25538, 45, 803, 49, 3141, 731, 310, 1547, 310, 906, 13209, 642, 35831, 904, 13079, 391, 341, 3141, 2716, 603, 518, 772, 3141, 63, 906, 1492, 391, 545, 25146, 642, 341, 13209, 310, 518, 620, 63, 310, 1547, 310, 3991, 100, 25538, 299, 1627, 310, 556, 100, 6953, 299, 4050, 100, 31321, 1363, 51, 3014, 365, 603, 456, 11502, 347, 9680, 1058, 51, 2441, 100, 1751, 2284, 343, 434, 11502, 51, 444, 365, 347, 12848, 959, 21177, 51, 3519, 2284, 419, 3991, 100, 25538, 51, 1713, 45, 6805, 51, 444, 1177, 343, 4378, 11502, 51, 444, 365, 347, 3059, 1874, 51, 8030, 411, 332, 11741, 831, 51, 8030, 1465, 480, 11502, 51, 15669, 365, 347, 12848, 959, 21177, 51, 3519, 2284, 419, 3991, 100, 25538, 51, 1713, 45, 6805, 51, 15669, 1177, 603, 456, 2183, 347, 12848, 959, 21177, 63, 343, 1614, 63, 419, 434, 2183, 347, 3991, 100, 25538, 63, 547, 556, 100, 6953, 51, 688, 100, 1512, 45, 733, 655, 66, 10822, 959, 21177, 51, 390, 45, 2441, 490, 804, 366, 14097, 22522, 14857, 10397, 63, 58, 62, 55, 53, 61, 56, 57, 62, 61, 58, 56, 57, 54, 60, 57, 60, 55, 54, 9603, 4467, 66, 803, 51, 3236, 547, 848, 419, 832, 63, 547, 556, 100, 6953, 51, 688, 100, 1512, 45, 733, 655, 66, 10822, 959, 21177, 51, 390, 45, 2441, 490, 804, 366, 27122, 22522, 4038, 13108, 63, 58, 62, 55, 53, 61, 55, 58, 58, 60, 62, 59, 54, 59, 56, 56, 61, 60, 60, 9603, 4467, 66, 803, 51, 3236, 547, 848, 343, 2959, 11125, 943, 63, 419, 556, 100, 6953, 51, 688, 100, 1512, 45, 547, 655, 66, 10822, 959, 21177, 51, 390, 45, 2441, 490, 804, 366, 4208, 11529, 22522, 37691, 5850, 63, 58, 62, 55, 53, 61, 55, 59, 60, 59, 61, 62, 54, 54, 55, 56, 60, 55, 55, 9603, 4467, 66, 803, 51, 3236, 419, 848, 310, 2031, 3141, 51, 3189, 45, 1304, 20728, 8226, 66, 909, 100, 6953, 46, 465, 684, 458, 100, 308, 45, 803, 49, 364, 731, 310, 1547, 310, 17269, 434, 331, 5231, 4096, 458, 341, 7369, 310, 518, 772, 364, 63, 15317, 109, 828, 112, 49, 8784, 1492, 68, 310, 518, 620, 63, 310, 1547, 310, 461, 364, 51, 2133, 630, 649, 51, 1598, 51, 514, 465, 2513, 684, 3081, 100, 2213, 100, 2093, 45, 803, 49, 3842, 731, 310, 1547, 310, 34350, 992, 391, 341, 2419, 244, 54, 53, 53, 5231, 4643, 829, 341, 7369, 347, 341, 2716, 3842, 310, 518, 772, 3842, 63, 906, 3842, 708, 1118, 1178, 341, 5231, 8133, 310, 518, 620, 63, 341, 1492, 708, 15950, 2650, 5110, 5231, 4547, 8133, 310, 1547, 310, 2031, 3842, 51, 35120, 45, 3262, 66, 54, 53, 53, 49, 1524, 66, 803, 51, 316, 100, 308, 46, 465, 496, 16130, 303, 684, 1991, 100, 25538, 100, 1180, 2284, 310, 1547, 310, 19275, 341, 13209, 1646, 347, 341, 1377, 642, 341, 1565, 12848, 959, 21177, 310, 518, 620, 63, 310, 1547, 603, 1377, 51, 489, 459, 2877, 3948, 411, 332, 25538, 411, 615, 45, 10822, 959, 21177, 509, 310, 642, 2177, 45, 6196, 100, 4088, 49, 332, 124, 411, 7348, 366, 3330, 50, 61, 678, 641, 1377, 781, 63, 343, 1377, 51, 1838, 45, 1180, 781, 46, 465, 496, 16130, 303, 684, 2435, 100, 13491, 100, 326, 3647, 326, 45, 897, 731, 310, 1547, 310, 17787, 22716, 40727, 326, 391, 1035, 341, 350, 1769, 563, 310, 518, 772, 1367, 63, 906, 1367, 708, 5669, 391, 545, 8146, 456, 619, 15821, 310, 518, 620, 63, 341, 5264, 1367, 310, 1547, 310, 556, 100, 897, 299, 1367, 51, 3045, 17910, 678, 310, 456, 613, 347, 2189, 45, 55, 49, 2095, 45, 909, 100, 897, 8485, 343, 434, 332, 5852, 347, 556, 100, 897, 96, 110, 2805, 419, 556, 100, 897, 96, 110, 449, 244, 55, 98, 1475, 3791, 39, 310, 461, 17903, 51, 2548, 45, 909, 100, 897, 46, 499, 222, 610, 4721, 45, 1598, 731, 303, 1547, 303, 578, 297, 563, 4721, 451, 341, 409, 835, 303, 518, 772, 2060, 63, 906, 7369, 2060, 303, 518, 620, 63, 303, 1547, 303, 2060, 51, 688, 100, 26699, 45, 2877, 3948, 45, 1598, 509, 222 ]
[ "#!/", "usr", "/", "bin", "/", "env", "Ġpython", "Ċ", "Ċ", "\"\"\"", "Ċ", "This", "Ġis", "Ġa", "ĠC", "og", "Ġused", "Ġto", "Ġdisplay", "Ġprocesses", "/", "Ġprograms", "Ġrunning", "Ġon", "Ġthe", "Ġclient", "Ġto", "Ġa", "Ġdiscord", "Ġtext", "Ġchannel", "Ċ", "Ċ", "Comment", "ed", "Ġusing", "Ġre", "Structured", "Text", "Ġ(", "re", "ST", ")", "Ċ", "Ċ", "ToDo", "ĊĠĠĠ", "Ġcreate", "Ġand", "Ġuse", "Ġa", "Ġdatabase", "Ġfor", "Ġmultiple", "Ġservers", "Ċ", "\"\"\"", "Ċ", "#", "ĠF", "utures", "Ċ", "Ċ", "#", "ĠBuilt", "-", "in", "/", "Generic", "ĠImports", "Ċ", "import", "Ġos", "Ċ", "import", "Ġsys", "Ċ", "import", "Ġconfig", "parser", "Ċ", "import", "Ġshutil", "Ċ", "import", "Ġtime", "Ċ", "import", "Ġcodecs", "Ċ", "Ċ", "#", "ĠLib", "s", "Ċ", "import", "Ġdiscord", "Ċ", "import", "Ġps", "util", "Ċ", "from", "Ġdiscord", ".", "ext", "Ġimport", "Ġcommands", ",", "Ġtasks", "Ċ", "Ċ", "#", "ĠOwn", "Ġmodules", "Ċ", "Ċ", "__", "author", "__", "Ġ=", "Ġ\"", "Jack", "ĠD", "raper", "\"", "Ċ", "__", "copyright", "__", "Ġ=", "Ġ\"", "Un", "official", "ĠCopyright", "Ġ", "2", "0", "1", "9", ",", "ĠCy", "clo", "ps", "Bot", "\"", "Ċ", "__", "credits", "__", "Ġ=", "Ġ[\"", "Jack", "ĠD", "raper", "\"]", "Ċ", "__", "license", "__", "Ġ=", "Ġ\"", "Developer", "\"", "Ċ", "__", "version", "__", "Ġ=", "Ġ\"", "0", ".", "0", ".", "4", "\"", "Ċ", "__", "maintainer", "__", "Ġ=", "Ġ\"", "Jack", "ĠD", "raper", "\"", "Ċ", "__", "email", "__", "Ġ=", "Ġ\"", "the", "jay", "dw", "ee", "@", "gmail", ".", "com", "\"", "Ċ", "__", "status", "__", "Ġ=", "Ġ\"", "Development", "\"", "Ċ", "#", "Ġ\"", "Prototype", "\",", "Ġ\"", "Development", "\",", "Ġor", "Ġ\"", "Production", "\"", "Ċ", "Ċ", "#", "ĠConstants", "Ċ", "CONFIG", "_", "PATH", "Ġ=", "Ġ\"./", "configs", "/", "config", ".", "ini", "\"", "Ċ", "DEFAULT", "_", "EMB", "ED", "Ġ=", "Ġdiscord", ".", "Embed", "(", "title", "=\"", ":", "desktop", ":", "ĠProgram", "ĠStatus", "\",", "Ġcolour", "=", "discord", ".", "Colour", ".", "blue", "())", "ĊĊ", "Ċ", "#", "ĠChecks", "Ġfor", "Ġconfig", "Ġfile", "Ċ", "if", "Ġnot", "Ġos", ".", "path", ".", "exists", "(\"./", "configs", "/", "config", ".", "ini", "\"):", "ĊĠĠĠ", "Ġprint", "(\"", "No", "Ġconfig", "Ġfile", "Ġcan", "Ġbe", "Ġfound", "Ġin", "Ġ./", "configs", "/.", "\")", "ĊĠĠĠ", "Ġsys", ".", "exit", "(\"", "No", "Ġconfig", "Ġfound", ".\")", "Ċ", "#", "ĠRuns", "Ġconfig", "Ġfile", "Ċ", "config", "Ġ=", "Ġconfig", "parser", ".", "ConfigParser", "()", "Ċ", "try", ":", "ĊĠĠĠ", "Ġ#", "Ġconfig", ".", "read", "(", "os", ".", "path", ".", "abspath", "(\"./", "configs", "/", "config", ".", "ini", "\"))", "ĊĠĠĠ", "Ġconfig", ".", "read", "_", "file", "(", "code", "cs", ".", "open", "(", "CONFIG", "_", "PATH", ",", "Ġ\"", "r", "\",", "Ġ\"", "utf", "-", "8", "-", "sig", "\"))", "Ċ", "except", "ĠFile", "NotFoundError", ":", "ĊĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġshutil", ".", "copy", "file", "(\"./", "configs", "/", "default", "_", "config", ".", "ini", "\",", "Ġ\"./", "configs", "/", "config", ".", "ini", "\")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "You", "Ġneed", "Ġto", "Ġset", "Ġup", "Ġthe", "Ġconfig", "Ġfile", "Ġcorrectly", ".\")", "ĊĠĠĠ", "Ġexcept", "Ġshutil", ".", "Error", ":", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "Something", "Ġis", "Ġwrong", "Ġwith", "Ġthe", "Ġdefault", "Ġconfig", "Ġfile", "Ġor", "Ġthe", "Ġconfig", "Ġfolder", ".\")", "ĊĠĠĠĠĠĠĠ", "Ġtime", ".", "sleep", "(", "4", ")", "ĊĠĠĠ", "Ġsys", ".", "exit", "()", "Ċ", "Ċ", "#", "ĠConfig", "ĠConstants", "Ċ", "ADMIN", "_", "ROLE", "Ġ=", "Ġconfig", "[\"", "Credentials", "\"][\"", "admin", "_", "role", "\"]", "Ċ", "TEXT", "_", "CHANNEL", "Ġ=", "Ġint", "(", "config", "[\"", "Process", "Display", "\"][\"", "text", "_", "channel", "_", "id", "\"])", "Ċ", "PROC", "ES", "SES", "Ġ=", "Ġeval", "(", "config", "[\"", "Process", "Display", "\"][\"", "processes", "\"])", "ĊĊ", "Ċ", "class", "ĠProcess", "Display", "(", "commands", ".", "C", "og", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "ĠThe", "ĠC", "og", "Ġfor", "ĠProcess", "ĠDisplay", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġclient", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġclient", ":", "Ġthe", "Ġbot", "Ġclient", "Ġparsed", "Ġin", "Ġfrom", "Ġthe", "Ġmain", "Ġprogram", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "started", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "client", "Ġ=", "Ġclient", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "inline", "Ġ=", "ĠFalse", "ĊĊĠĠĠ", "Ġ#", "ĠEvents", "ĊĠĠĠ", "Ġ@", "commands", ".", "C", "og", ".", "listener", "()", "ĊĠĠĠ", "Ġasync", "Ġdef", "Ġon", "_", "ready", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠR", "an", "Ġwhen", "Ġbot", "Ġis", "Ġstarting", "Ġup", "Ġand", "Ġready", "ĊĠĠĠĠĠĠĠ", "ĠDeletes", "Ġmessages", "Ġfrom", "Ġthe", "Ġbot", "Ġin", "Ġthe", "ĠTEXT", "CHANNEL", "ĊĠĠĠĠĠĠĠ", "Ġstarts", "Ġup", "Ġfind", "_", "processes", "Ġmethod", "ĊĠĠĠĠĠĠĠ", "Ġ:", "return", ":", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġnot", "Ġself", ".", "started", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġchannel", "Ġ=", "Ġself", ".", "client", ".", "get", "_", "channel", "(", "TEXT", "_", "CHANNEL", ")", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġawait", "Ġself", ".", "delete", "_", "bot", "_", "msg", "(", "channel", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġmsg", "Ġ=", "Ġawait", "Ġchannel", ".", "send", "(", "embed", "=", "DEFAULT", "_", "EMB", "ED", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "find", "_", "processes", ".", "start", "(", "msg", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġstarted", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "Process", "Display", "ĠRunning", "\")", "ĊĊĠĠĠ", "Ġ#", "ĠCommands", "ĊĠĠĠ", "Ġ@", "commands", ".", "command", "()", "ĊĠĠĠ", "Ġ@", "commands", ".", "has", "_", "permissions", "(", "administrator", "=", "True", ")", "ĊĠĠĠ", "Ġasync", "Ġdef", "Ġtoggle", "_", "inline", "(", "self", ",", "Ġctx", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠToggle", "s", "Ġinline", "Ġfor", "Ġprocess", "Ġcontrols", "ĊĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġctx", ":", "ĠThe", "Ġcommand", "ĠContext", "ĊĠĠĠĠĠĠĠ", "Ġ:", "return", ":", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "inline", "Ġ=", "Ġnot", "Ġself", ".", "inline", "ĊĊĠĠĠ", "Ġ@", "commands", ".", "command", "()", "ĊĠĠĠ", "Ġ@", "commands", ".", "has", "_", "permissions", "(", "administrator", "=", "True", ")", "ĊĠĠĠ", "Ġasync", "Ġdef", "Ġmove", "_", "process", "(", "self", ",", "Ġdirection", ",", "Ġprocess", "_", "name", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġneed", "Ġto", "Ġmake", "ĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġdirection", ":", "ĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġprocess", "_", "name", ":", "ĊĠĠĠĠĠĠĠ", "Ġ:", "return", ":", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġi", "Ġin", "Ġrange", "(", "len", "(", "PROC", "ES", "SES", ")):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "ĠPROC", "ES", "SES", "[", "i", "]", "Ġ==", "Ġprocess", "_", "name", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġdirection", ".", "lower", "()", "Ġ==", "Ġ\"", "up", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġ@", "commands", ".", "command", "()", "ĊĠĠĠ", "Ġ@", "commands", ".", "has", "_", "permissions", "(", "administrator", "=", "True", ")", "ĊĠĠĠ", "Ġasync", "Ġdef", "Ġadd", "_", "process", "(", "self", ",", "Ġctx", ",", "Ġprocess", ",", "Ġname", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠAdds", "Ġa", "Ġprocess", "Ġto", "Ġthe", "Ġprocess", "Ġdisplay", ".", "ĊĠĠĠĠĠĠĠ", "ĠMust", "Ġbe", "Ġdifferent", "Ġfrom", "Ġones", "Ġcurrently", "Ġdisplayed", ".", "ĊĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġctx", ":", "ĠContext", "Ġof", "Ġthe", "Ġcommand", "ĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġprocess", ":", "ĠThe", "Ġprocess", "Ġ(", "e", ".", "g", ".", "Ġ'", "cmd", ".", "exe", "')", "Ġto", "Ġbe", "Ġadded", "ĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġname", ":", "ĠThe", "Ġname", "Ġto", "Ġbe", "Ġdisplayed", "Ġfor", "Ġthe", "Ġprocess", "Ġ(", "e", ".", "g", ".", "Ġ'", "Command", "ĠPrompt", "')", "ĊĠĠĠĠĠĠĠ", "Ġ:", "return", ":", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġname", "Ġ=", "Ġself", ".", "fix", "_", "emoji", "_", "es", "cap", "es", "(", "name", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġprocess", "Ġin", "ĠPROC", "ES", "SES", ".", "keys", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġawait", "Ġctx", ".", "send", "(", "f", "\"", "The", "Ġprocess", "Ġ{", "process", "}", "Ġis", "Ġalready", "Ġbeing", "Ġdisplayed", "\")", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġname", "Ġin", "ĠPROC", "ES", "SES", ".", "values", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġawait", "Ġctx", ".", "send", "(", "f", "\"", "The", "Ġprocess", "Ġname", "Ġ{", "name", "}", "Ġis", "Ġalready", "Ġbeing", "Ġdisplayed", "\")", "ĊĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "ĠPROC", "ES", "SES", "[", "process", "]", "Ġ=", "Ġname", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "update", "_", "processes", "_", "config", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġawait", "Ġctx", ".", "send", "(", "f", "\"", "The", "Ġprocess", "Ġ{", "name", "}", "Ġhas", "Ġbeen", "Ġadded", "\")", "ĊĊĠĠĠ", "Ġ@", "commands", ".", "command", "()", "ĊĠĠĠ", "Ġ@", "commands", ".", "has", "_", "permissions", "(", "administrator", "=", "True", ")", "ĊĠĠĠ", "Ġasync", "Ġdef", "Ġremove", "_", "process", "(", "self", ",", "Ġctx", ",", "Ġ*", "name", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠRemoves", "Ġa", "Ġprocess", "Ġfrom", "Ġthe", "Ġprocess", "Ġdisplay", "ĊĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġctx", ":", "ĠContext", "Ġof", "Ġthe", "Ġcommand", "ĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġname", ":", "ĠName", "Ġdisplayed", "Ġfor", "Ġthe", "Ġprocess", "Ġ(", "e", ".", "g", ".", "ĠCommand", "ĠPrompt", ")", "ĊĠĠĠĠĠĠĠ", "Ġ:", "return", ":", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "name", ")", "ĊĠĠĠĠĠĠĠ", "Ġname", "Ġ=", "Ġself", ".", "fix", "_", "emoji", "_", "es", "cap", "es", "(\"", "Ġ\".", "join", "(", "name", "))", "ĊĠĠĠĠĠĠĠ", "Ġcomplete", "Ġ=", "ĠFalse", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġprocess", "Ġin", "ĠPROC", "ES", "SES", ".", "keys", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "ĠPROC", "ES", "SES", ".", "get", "(", "process", ")", "Ġ==", "Ġname", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "ĠPROC", "ES", "SES", ".", "pop", "(", "process", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "update", "_", "processes", "_", "config", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġawait", "Ġctx", ".", "send", "(", "f", "\"", "The", "Ġprocess", "Ġ{", "name", "}", "Ġhas", "Ġbeen", "Ġremoved", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcomplete", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġbreak", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnot", "Ġcomplete", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġawait", "Ġctx", ".", "send", "(", "f", "\"", "The", "Ġprocess", "Ġ{", "name", "}", "Ġdoesn", "'t", "Ġexist", "\")", "ĊĊĠĠĠ", "Ġ@", "commands", ".", "command", "()", "ĊĠĠĠ", "Ġ@", "commands", ".", "has", "_", "permissions", "(", "administrator", "=", "True", ")", "ĊĠĠĠ", "Ġasync", "Ġdef", "Ġedit", "_", "process", "(", "self", ",", "Ġctx", ",", "Ġold", "_", "name", ",", "Ġnew", "_", "name", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠEd", "its", "Ġthe", "Ġname", "Ġof", "Ġa", "Ġprocess", "ĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġctx", ":", "ĠThe", "Ġcontext", "Ġof", "Ġthe", "Ġcommand", "ĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġold", "_", "name", ":", "ĠThe", "Ġold", "Ġname", "Ġof", "Ġthe", "Ġprocess", "Ġ(", "to", "Ġbe", "Ġchanged", ")", "ĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġnew", "_", "name", ":", "ĠThe", "Ġnew", "Ġname", "Ġof", "Ġthe", "Ġprocess", "Ġ(", "changed", "Ġto", ")", "ĊĠĠĠĠĠĠĠ", "Ġ:", "return", ":", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġold", "_", "name", "Ġ=", "Ġself", ".", "fix", "_", "emoji", "_", "es", "cap", "es", "(", "old", "_", "name", ")", "ĊĠĠĠĠĠĠĠ", "Ġnew", "_", "name", "Ġ=", "Ġself", ".", "fix", "_", "emoji", "_", "es", "cap", "es", "(", "new", "_", "name", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġold", "_", "name", "Ġin", "ĠPROC", "ES", "SES", ".", "values", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġprocess", "Ġin", "ĠPROC", "ES", "SES", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "ĠPROC", "ES", "SES", ".", "get", "(", "process", ")", "Ġ==", "Ġold", "_", "name", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "ĠPROC", "ES", "SES", ".", "update", "({", "process", ":", "Ġnew", "_", "name", "})", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "update", "_", "processes", "_", "config", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġawait", "Ġctx", ".", "send", "(", "f", "\"", "Process", "Ġname", "Ġ{", "old", "_", "name", "}", "Ġdoesn", "'t", "Ġexist", "\")", "ĊĊĠĠĠ", "Ġ@", "tasks", ".", "loop", "(", "seconds", "=", "1", ")", "ĊĠĠĠ", "Ġasync", "Ġdef", "Ġfind", "_", "processes", "(", "self", ",", "Ġmsg", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠThe", "Ġprocesses", "Ġwith", "Ġstatuses", "Ġare", "Ġattached", "Ġto", "Ġthe", "Ġmsg", "Ġgiven", "ĊĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġmsg", ":", "ĠThe", "Ġmessage", "Ġto", "Ġbe", "Ġedited", "Ġwith", "Ġthe", "Ġprocesses", "ĊĠĠĠĠĠĠĠ", "Ġ:", "return", ":", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġrunning", "_", "processes", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġnew", "_", "embed", "Ġ=", "ĠDEFAULT", "_", "EMB", "ED", ".", "copy", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġfor", "Ġproc", "Ġin", "Ġps", "util", ".", "process", "_", "iter", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġproc", ".", "name", "()", "Ġin", "ĠPROC", "ES", "SES", ".", "keys", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġrunning", "_", "processes", ".", "append", "(", "proc", ".", "name", "())", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġproc", ".", "name", "()", "Ġin", "Ġ[\"", "java", ".", "exe", "\",", "Ġ\"", "jav", "aw", ".", "exe", "\"]", "Ġand", "Ġproc", ".", "cwd", "()", "Ġin", "ĠPROC", "ES", "SES", ".", "keys", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġrunning", "_", "processes", ".", "append", "(", "proc", ".", "cwd", "())", "ĊĊĠĠĠĠĠĠĠ", "Ġfor", "Ġprocess", "Ġin", "ĠPROC", "ES", "SES", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġprocess", "Ġin", "Ġrunning", "_", "processes", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġnew", "_", "embed", ".", "add", "_", "field", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġname", "=", "PROC", "ES", "SES", ".", "get", "(", "process", "),", "Ġvalue", "=\"", "Online", "Ġ<:", "Green", "Tick", ":", "5", "9", "2", "0", "8", "3", "4", "9", "8", "5", "3", "4", "1", "7", "4", "7", "2", "1", ">\",", "Ġinline", "=", "self", ".", "inline", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġnew", "_", "embed", ".", "add", "_", "field", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġname", "=", "PROC", "ES", "SES", ".", "get", "(", "process", "),", "Ġvalue", "=\"", "Offline", "Ġ<:", "Red", "Cross", ":", "5", "9", "2", "0", "8", "2", "5", "5", "7", "9", "6", "1", "6", "3", "3", "8", "7", "7", ">\",", "Ġinline", "=", "self", ".", "inline", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġexcept", "ĠPermission", "Error", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġnew", "_", "embed", ".", "add", "_", "field", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġname", "=", "PROC", "ES", "SES", ".", "get", "(", "process", "),", "Ġvalue", "=\"", "Admin", "ĠRequired", "Ġ<:", "Orange", "Unknown", ":", "5", "9", "2", "0", "8", "2", "6", "7", "6", "8", "9", "1", "1", "2", "3", "7", "2", "2", ">\",", "Ġinline", "=", "self", ".", "inline", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠ", "Ġawait", "Ġmsg", ".", "edit", "(", "content", "=\"\",", "Ġembed", "=", "new", "_", "embed", ")", "ĊĊĠĠĠ", "Ġdef", "Ġis", "_", "me", "(", "self", ",", "Ġm", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠChecks", "Ġif", "Ġa", "Ġmessages", "Ġauthor", "Ġis", "Ġthe", "Ġbot", "ĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġm", ":", "Ġtb", "h", "Ġid", "k", ",", "Ġmaybe", "Ġmessage", "?", "ĊĠĠĠĠĠĠĠ", "Ġ:", "return", ":", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġm", ".", "author", "Ġ==", "Ġself", ".", "client", ".", "user", "ĊĊĠĠĠ", "Ġasync", "Ġdef", "Ġdelete", "_", "bot", "_", "msg", "(", "self", ",", "Ġchannel", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠDeletes", "Ġup", "Ġto", "Ġthe", "Ġlast", "Ġ", "1", "0", "0", "Ġmessages", "Ġsent", "Ġby", "Ġthe", "Ġbot", "Ġin", "Ġthe", "Ġgiven", "Ġchannel", "ĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġchannel", ":", "ĠThe", "Ġchannel", "Ġthat", "Ġwill", "Ġhave", "Ġthe", "Ġmessages", "Ġdeleted", "ĊĠĠĠĠĠĠĠ", "Ġ:", "return", ":", "Ġthe", "Ġmessage", "Ġthat", "Ġsays", "Ġhow", "Ġmany", "Ġmessages", "Ġwere", "Ġdeleted", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġawait", "Ġchannel", ".", "purge", "(", "limit", "=", "1", "0", "0", ",", "Ġcheck", "=", "self", ".", "is", "_", "me", ")", "ĊĊĠĠĠ", "Ġ@", "staticmethod", "ĊĠĠĠ", "Ġdef", "Ġupdate", "_", "processes", "_", "config", "():", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠUpdates", "Ġthe", "Ġprocesses", "Ġline", "Ġin", "Ġthe", "Ġconfig", "Ġwith", "Ġthe", "Ġcurrent", "ĠPROC", "ES", "SES", "ĊĠĠĠĠĠĠĠ", "Ġ:", "return", ":", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠĠĠĠĠ", "Ġconfig", ".", "set", "(\"", "Process", "Display", "\",", "Ġ\"", "processes", "\",", "Ġstr", "(", "PROC", "ES", "SES", "))", "ĊĠĠĠĠĠĠĠ", "Ġwith", "Ġopen", "(", "CONFIG", "_", "PATH", ",", "Ġ\"", "w", "\",", "Ġencoding", "=\"", "utf", "-", "8", "\")", "Ġas", "Ġconfig", "file", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġconfig", ".", "write", "(", "config", "file", ")", "ĊĊĠĠĠ", "Ġ@", "staticmethod", "ĊĠĠĠ", "Ġdef", "Ġfix", "_", "emoji", "_", "es", "cap", "es", "(", "text", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠFixes", "Ġemoji", "Ġescap", "es", "Ġto", "Ġadd", "Ġthe", "Ġ<", "Ġback", "Ġon", "ĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġtext", ":", "ĠThe", "Ġtext", "Ġthat", "Ġneeds", "Ġto", "Ġbe", "Ġchecked", "Ġfor", "Ġan", "Ġescape", "ĊĠĠĠĠĠĠĠ", "Ġ:", "return", ":", "Ġthe", "Ġfixed", "Ġtext", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġnew", "_", "text", "Ġ=", "Ġtext", ".", "split", "(\":", "\")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġi", "Ġin", "Ġrange", "(", "2", ",", "Ġlen", "(", "new", "_", "text", ")):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġ\"", ">\"", "Ġin", "Ġnew", "_", "text", "[", "i", "]:", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġnew", "_", "text", "[", "i", "Ġ-", "Ġ", "2", "]", "Ġ+=", "Ġ\"<", "\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\":\"", ".", "join", "(", "new", "_", "text", ")", "ĊĊ", "Ċ", "def", "Ġsetup", "(", "client", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "ĠR", "an", "Ġon", "Ġsetup", "Ġof", "Ġthe", "ĠC", "og", "ĊĠĠĠ", "Ġ:", "param", "Ġclient", ":", "ĠThe", "Ġbot", "Ġclient", "ĊĠĠĠ", "Ġ:", "return", ":", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġclient", ".", "add", "_", "cog", "(", "Process", "Display", "(", "client", "))", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 12, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 20, 21, 21, 21, 21, 22, 22, 22, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 26, 26, 26, 26, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 42, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 60, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 66, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 69, 69, 69, 69, 69, 69, 69, 70, 70, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 75, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 88, 88, 90, 90, 90, 90, 90, 90, 90, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 97, 97, 97, 97, 97, 97, 97, 99, 99, 99, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 103, 103, 104, 104, 104, 104, 104, 104, 104, 106, 106, 106, 106, 106, 106, 106, 106, 107, 107, 107, 107, 108, 108, 109, 109, 109, 109, 109, 109, 109, 109, 109, 111, 111, 111, 111, 111, 111, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 114, 114, 115, 115, 115, 115, 116, 116, 116, 116, 116, 117, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 119, 119, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 123, 123, 125, 125, 125, 125, 125, 125, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 129, 129, 129, 129, 129, 129, 129, 129, 129, 130, 130, 130, 130, 130, 130, 130, 130, 130, 132, 132, 132, 132, 132, 132, 132, 132, 132, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 135, 135, 135, 135, 136, 136, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 143, 143, 143, 144, 144, 144, 144, 144, 144, 144, 144, 144, 145, 145, 145, 145, 145, 145, 145, 145, 145, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 148, 148, 148, 148, 148, 148, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 151, 151, 152, 152, 152, 152, 152, 152, 152, 152, 154, 154, 154, 154, 154, 154, 154, 154, 154, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 156, 156, 156, 156, 157, 157, 158, 158, 158, 158, 158, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 160, 160, 160, 160, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 163, 163, 163, 163, 163, 163, 163, 163, 163, 164, 164, 164, 164, 164, 164, 164, 164, 164, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 166, 166, 166, 166, 167, 167, 168, 168, 168, 168, 168, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 171, 171, 171, 171, 171, 171, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 174, 174, 175, 175, 175, 175, 175, 175, 175, 175, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 179, 179, 179, 179, 180, 180, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 184, 184, 184, 184, 184, 184, 184, 184, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 187, 187, 187, 187, 187, 187, 187, 187, 187, 189, 189, 189, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 194, 194, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 198, 198, 198, 198, 199, 199, 200, 200, 200, 200, 200, 200, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 209, 209, 209, 209, 209, 209, 209, 209, 210, 210, 210, 211, 211, 211, 211, 211, 211, 211, 211, 212, 212, 212, 212, 212, 212, 212, 212, 212, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 214, 214, 215, 215, 215, 216, 216, 216, 216, 216, 216, 216, 216, 216, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 218, 218, 219, 219, 219, 219, 219, 220, 220, 220, 220, 220, 220, 220, 220, 220, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 222, 222, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 226, 226, 227, 227, 227, 227, 227, 227, 227, 227, 227, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 229, 229, 229, 229, 230, 230, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 234, 234, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 238, 238, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 241, 241, 241, 242, 242, 242, 242, 242, 242, 242, 242, 243, 243, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 245, 245, 245, 245, 246, 246, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 250, 250, 250, 250, 250, 250, 250, 250, 252, 252, 252, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 257, 257, 257, 257, 257, 257, 257, 258, 258, 259, 259, 259, 259, 259, 259, 259, 259, 259, 259, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 265, 266, 266, 266, 266, 266, 266, 267, 267, 268, 268, 268, 268, 268, 268, 268, 268, 268, 269, 269, 269, 269, 269, 269, 269, 269, 270, 270, 270, 270, 271, 271, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272 ]
[ 1, 4, 7, 8, 11, 12, 15, 22, 1, 1, 4, 1, 5, 8, 10, 12, 14, 19, 22, 30, 40, 41, 50, 58, 61, 65, 72, 75, 77, 85, 90, 98, 1, 1, 8, 10, 16, 19, 29, 33, 35, 37, 39, 40, 1, 1, 5, 4, 11, 15, 19, 21, 30, 34, 43, 51, 1, 4, 1, 2, 4, 10, 1, 1, 2, 8, 9, 11, 12, 19, 27, 1, 7, 10, 1, 7, 11, 1, 7, 14, 20, 1, 7, 14, 1, 7, 12, 1, 7, 14, 1, 1, 2, 6, 7, 1, 7, 15, 1, 7, 10, 14, 1, 5, 13, 14, 17, 24, 33, 34, 40, 1, 1, 2, 6, 14, 1, 1, 3, 9, 11, 13, 15, 19, 21, 26, 27, 1, 3, 12, 14, 16, 18, 20, 28, 38, 39, 40, 41, 42, 43, 44, 47, 50, 52, 55, 56, 1, 3, 10, 12, 14, 17, 21, 23, 28, 30, 1, 3, 10, 12, 14, 16, 25, 26, 1, 3, 10, 12, 14, 16, 17, 18, 19, 20, 21, 22, 1, 3, 13, 15, 17, 19, 23, 25, 30, 31, 1, 3, 8, 10, 12, 14, 17, 20, 22, 24, 25, 30, 31, 34, 35, 1, 3, 9, 11, 13, 15, 26, 27, 1, 2, 4, 13, 15, 17, 28, 30, 33, 35, 45, 46, 1, 1, 2, 12, 1, 7, 8, 12, 14, 18, 25, 26, 32, 33, 36, 37, 1, 8, 9, 12, 14, 16, 24, 25, 30, 31, 36, 38, 39, 46, 47, 55, 62, 64, 71, 72, 79, 80, 86, 87, 91, 94, 1, 1, 2, 9, 13, 20, 25, 1, 3, 7, 10, 11, 15, 16, 22, 26, 33, 34, 40, 41, 44, 47, 4, 10, 12, 14, 21, 26, 30, 33, 39, 42, 45, 52, 54, 56, 4, 8, 9, 13, 15, 17, 24, 30, 33, 1, 2, 7, 14, 19, 1, 7, 9, 16, 22, 23, 35, 37, 1, 4, 5, 4, 6, 13, 14, 18, 19, 21, 22, 26, 27, 34, 38, 45, 46, 52, 53, 56, 59, 4, 11, 12, 16, 17, 21, 22, 26, 28, 29, 33, 34, 40, 41, 45, 46, 48, 49, 51, 53, 56, 57, 58, 59, 62, 65, 1, 7, 12, 25, 26, 4, 8, 9, 8, 10, 17, 18, 22, 26, 30, 37, 38, 45, 46, 52, 53, 56, 58, 62, 69, 70, 76, 77, 80, 82, 8, 14, 16, 19, 24, 27, 31, 34, 38, 45, 50, 60, 63, 4, 11, 18, 19, 24, 25, 8, 14, 16, 25, 28, 34, 39, 43, 51, 58, 63, 66, 70, 77, 84, 87, 8, 13, 14, 19, 20, 21, 22, 4, 8, 9, 13, 15, 1, 1, 2, 9, 19, 1, 6, 7, 11, 13, 20, 22, 33, 37, 42, 43, 47, 49, 1, 5, 6, 13, 15, 19, 20, 26, 28, 35, 42, 46, 50, 51, 58, 59, 61, 64, 1, 5, 7, 10, 12, 17, 18, 24, 26, 33, 40, 44, 53, 56, 1, 1, 6, 14, 21, 22, 30, 31, 32, 34, 36, 4, 8, 4, 8, 10, 12, 16, 24, 32, 4, 8, 4, 8, 11, 15, 18, 22, 23, 30, 32, 8, 12, 8, 10, 15, 22, 23, 27, 31, 38, 45, 48, 53, 57, 62, 70, 8, 12, 8, 13, 14, 21, 23, 29, 8, 13, 14, 20, 22, 29, 8, 13, 14, 20, 22, 28, 4, 6, 13, 4, 6, 14, 15, 16, 18, 19, 27, 29, 4, 10, 14, 17, 18, 23, 24, 28, 30, 8, 12, 8, 10, 12, 17, 21, 24, 33, 36, 40, 46, 8, 16, 25, 30, 34, 38, 41, 45, 50, 57, 8, 15, 18, 23, 24, 33, 40, 8, 10, 16, 17, 8, 12, 8, 11, 15, 20, 21, 28, 29, 12, 20, 22, 27, 28, 34, 35, 38, 39, 46, 47, 51, 52, 59, 60, 12, 18, 23, 24, 30, 31, 34, 35, 38, 39, 46, 47, 12, 16, 18, 24, 32, 33, 37, 38, 43, 44, 51, 52, 55, 57, 58, 12, 17, 18, 22, 23, 32, 33, 38, 39, 42, 43, 12, 20, 22, 27, 8, 14, 16, 23, 30, 38, 40, 4, 6, 15, 4, 6, 14, 15, 22, 24, 4, 6, 14, 15, 18, 19, 30, 31, 44, 45, 49, 50, 4, 10, 14, 21, 22, 28, 29, 33, 34, 38, 40, 8, 12, 8, 15, 16, 23, 27, 35, 44, 8, 10, 15, 19, 20, 24, 32, 40, 8, 10, 16, 17, 8, 12, 8, 13, 14, 20, 22, 26, 31, 32, 38, 4, 6, 14, 15, 22, 24, 4, 6, 14, 15, 18, 19, 30, 31, 44, 45, 49, 50, 4, 10, 14, 19, 20, 27, 28, 32, 33, 43, 44, 52, 53, 57, 59, 8, 12, 8, 13, 16, 21, 8, 10, 15, 25, 26, 8, 10, 15, 23, 24, 28, 29, 8, 10, 16, 17, 8, 12, 8, 12, 14, 17, 23, 24, 27, 28, 32, 34, 37, 40, 12, 15, 20, 22, 25, 26, 27, 28, 31, 39, 40, 44, 45, 16, 19, 29, 30, 35, 37, 40, 42, 44, 46, 20, 25, 4, 6, 14, 15, 22, 24, 4, 6, 14, 15, 18, 19, 30, 31, 44, 45, 49, 50, 4, 10, 14, 18, 19, 26, 27, 31, 32, 36, 37, 45, 46, 51, 53, 8, 12, 8, 13, 15, 23, 26, 30, 38, 46, 47, 8, 13, 16, 26, 31, 36, 46, 56, 57, 8, 10, 15, 19, 20, 28, 31, 35, 43, 8, 10, 15, 23, 24, 28, 36, 38, 39, 40, 41, 42, 44, 47, 48, 51, 53, 56, 59, 65, 8, 10, 15, 20, 21, 25, 30, 33, 36, 46, 50, 54, 62, 64, 65, 66, 67, 68, 70, 77, 84, 86, 8, 10, 16, 17, 8, 12, 8, 13, 15, 20, 21, 24, 25, 30, 31, 33, 36, 38, 39, 43, 44, 8, 11, 19, 22, 27, 29, 32, 33, 37, 40, 12, 18, 22, 23, 27, 28, 29, 30, 33, 41, 43, 50, 51, 54, 62, 68, 78, 80, 8, 13, 18, 21, 26, 28, 31, 32, 38, 41, 12, 18, 22, 23, 27, 28, 29, 30, 33, 41, 46, 48, 52, 53, 56, 64, 70, 80, 82, 8, 13, 14, 12, 17, 19, 22, 23, 30, 31, 33, 38, 12, 17, 18, 24, 25, 34, 35, 41, 43, 12, 18, 22, 23, 27, 28, 29, 30, 33, 41, 43, 47, 48, 52, 57, 63, 65, 4, 6, 14, 15, 22, 24, 4, 6, 14, 15, 18, 19, 30, 31, 44, 45, 49, 50, 4, 10, 14, 21, 22, 29, 30, 34, 35, 39, 40, 42, 46, 48, 8, 12, 8, 16, 18, 26, 31, 35, 43, 51, 8, 10, 15, 19, 20, 28, 31, 35, 43, 8, 10, 15, 20, 21, 26, 36, 40, 44, 52, 54, 55, 56, 57, 58, 66, 73, 74, 8, 10, 16, 17, 8, 12, 8, 14, 15, 19, 20, 8, 13, 15, 20, 21, 24, 25, 30, 31, 33, 36, 38, 40, 43, 47, 48, 52, 54, 8, 17, 19, 25, 8, 12, 20, 23, 28, 30, 33, 34, 38, 41, 12, 15, 20, 22, 25, 26, 29, 30, 37, 38, 41, 46, 47, 16, 21, 23, 26, 27, 30, 31, 38, 39, 16, 21, 22, 28, 29, 38, 39, 45, 47, 16, 22, 26, 27, 31, 32, 33, 34, 37, 45, 47, 51, 52, 56, 61, 69, 71, 16, 25, 27, 32, 16, 22, 8, 11, 15, 24, 25, 12, 18, 22, 23, 27, 28, 29, 30, 33, 41, 43, 47, 48, 54, 56, 62, 64, 4, 6, 14, 15, 22, 24, 4, 6, 14, 15, 18, 19, 30, 31, 44, 45, 49, 50, 4, 10, 14, 19, 20, 27, 28, 32, 33, 37, 38, 42, 43, 47, 48, 52, 53, 57, 59, 8, 12, 8, 11, 14, 18, 23, 26, 28, 36, 8, 10, 15, 19, 20, 24, 32, 35, 39, 47, 8, 10, 15, 19, 20, 24, 25, 29, 33, 38, 41, 45, 53, 55, 57, 60, 68, 69, 8, 10, 15, 19, 20, 24, 25, 29, 33, 38, 41, 45, 53, 55, 62, 65, 66, 8, 10, 16, 17, 8, 12, 8, 12, 13, 17, 19, 24, 25, 28, 29, 34, 35, 37, 40, 42, 43, 46, 47, 51, 52, 8, 12, 13, 17, 19, 24, 25, 28, 29, 34, 35, 37, 40, 42, 43, 46, 47, 51, 52, 8, 11, 15, 16, 20, 23, 28, 30, 33, 34, 40, 43, 12, 16, 24, 27, 32, 34, 37, 38, 16, 19, 24, 26, 29, 30, 33, 34, 41, 42, 45, 49, 50, 54, 55, 20, 25, 27, 30, 31, 37, 39, 46, 47, 51, 52, 56, 58, 20, 25, 26, 32, 33, 42, 43, 49, 51, 8, 13, 14, 12, 18, 22, 23, 27, 28, 29, 30, 37, 42, 44, 47, 48, 52, 53, 59, 61, 67, 69, 4, 6, 11, 12, 16, 17, 24, 25, 26, 27, 4, 10, 14, 19, 20, 29, 30, 34, 35, 39, 41, 8, 12, 8, 12, 22, 27, 36, 40, 49, 52, 56, 60, 66, 8, 10, 15, 19, 20, 24, 32, 35, 38, 45, 50, 54, 64, 8, 10, 16, 17, 8, 12, 8, 16, 17, 26, 28, 31, 8, 12, 13, 18, 20, 28, 29, 32, 34, 35, 39, 41, 8, 12, 17, 20, 23, 27, 28, 35, 36, 40, 43, 12, 15, 20, 21, 25, 27, 30, 35, 37, 40, 41, 45, 48, 16, 24, 25, 34, 35, 41, 42, 46, 47, 51, 54, 12, 17, 22, 23, 27, 29, 32, 35, 39, 40, 43, 45, 47, 50, 52, 53, 56, 58, 62, 67, 68, 71, 73, 76, 81, 83, 86, 87, 91, 94, 16, 24, 25, 34, 35, 41, 42, 46, 47, 50, 53, 8, 12, 20, 23, 28, 30, 33, 34, 12, 16, 17, 16, 19, 27, 30, 38, 39, 48, 49, 20, 24, 25, 30, 31, 34, 35, 40, 41, 24, 29, 30, 34, 36, 39, 40, 43, 44, 51, 53, 59, 61, 67, 70, 75, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 101, 108, 109, 113, 114, 120, 20, 22, 16, 21, 22, 20, 24, 25, 30, 31, 34, 35, 40, 41, 24, 29, 30, 34, 36, 39, 40, 43, 44, 51, 53, 59, 61, 68, 71, 74, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 101, 108, 109, 113, 114, 120, 20, 22, 12, 19, 30, 35, 36, 16, 20, 21, 26, 27, 30, 31, 36, 37, 20, 25, 26, 30, 32, 35, 36, 39, 40, 47, 49, 55, 57, 62, 71, 74, 80, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 109, 116, 117, 121, 122, 128, 16, 18, 8, 14, 18, 19, 23, 24, 31, 35, 41, 42, 45, 46, 51, 52, 4, 8, 11, 12, 14, 15, 19, 20, 22, 24, 8, 12, 8, 15, 18, 20, 29, 36, 39, 43, 47, 8, 10, 15, 17, 18, 21, 22, 25, 26, 27, 33, 41, 42, 8, 10, 16, 17, 8, 12, 8, 15, 17, 18, 24, 27, 32, 33, 39, 40, 44, 4, 10, 14, 21, 22, 25, 26, 29, 30, 34, 35, 43, 45, 8, 12, 8, 16, 19, 22, 26, 31, 32, 33, 34, 35, 44, 49, 52, 56, 60, 63, 67, 73, 81, 8, 10, 15, 23, 24, 28, 36, 41, 46, 51, 55, 64, 72, 8, 10, 16, 17, 21, 29, 34, 39, 43, 48, 57, 62, 70, 8, 12, 8, 14, 22, 23, 28, 29, 34, 35, 36, 37, 38, 39, 45, 46, 50, 51, 53, 54, 56, 57, 4, 6, 18, 4, 8, 15, 16, 25, 26, 32, 35, 8, 12, 8, 16, 20, 30, 35, 38, 42, 49, 54, 58, 66, 71, 73, 76, 8, 10, 16, 17, 8, 12, 8, 15, 16, 19, 21, 28, 35, 37, 39, 48, 50, 54, 55, 59, 61, 64, 66, 8, 13, 18, 19, 25, 26, 30, 31, 33, 34, 36, 45, 47, 50, 51, 52, 54, 57, 64, 68, 69, 12, 19, 20, 25, 26, 32, 36, 37, 4, 6, 18, 4, 8, 12, 13, 18, 19, 21, 24, 26, 27, 31, 33, 8, 12, 8, 14, 20, 26, 28, 31, 35, 39, 41, 46, 49, 8, 10, 15, 20, 21, 25, 30, 35, 41, 44, 47, 55, 59, 62, 69, 8, 10, 16, 17, 21, 27, 32, 8, 12, 8, 12, 13, 17, 19, 24, 25, 30, 33, 35, 8, 12, 14, 17, 23, 24, 25, 26, 30, 31, 34, 35, 39, 42, 12, 15, 17, 19, 22, 26, 27, 31, 32, 33, 35, 16, 20, 21, 25, 26, 27, 29, 30, 31, 32, 35, 38, 39, 8, 15, 19, 20, 24, 25, 28, 29, 33, 34, 1, 1, 4, 10, 11, 17, 19, 4, 8, 4, 6, 8, 11, 17, 20, 24, 26, 28, 4, 6, 11, 18, 19, 23, 27, 34, 4, 6, 12, 13, 4, 8, 4, 11, 12, 15, 16, 19, 20, 27, 34, 35, 41, 43 ]
9c09309d23510aee4409a6d9021c2991afd2d349
################################################################################ # # titleStrip.py # # Generates an output file with the titles of the input stripped # Usage: # python titleStrip.py [input filename] [output filename] # ################################################################################ import os, sys # Globals / Settings strip_target = ["Wizards of", "Random Generator"] # Keys for removal between input and output output_name = "titleStrip_out.txt" # default output filename is out.txt # There will be a better home for this, mhm... def clearConsole(): os.system("cls" if os.name == "nt" else "clear") def main(): checkArgs() # Open up the input / output files (read / write modes respectively) rfile = open(sys.argv[1], "r") wfile = open(output_name, "w") parseAndStrip(rfile, wfile) # Close the input / output files now that we are done rfile.close() wfile.close() # checkArgs # 1. Verifies that the number of arguments is acceptable # 2. Reads in optional output filename def checkArgs(): # Verify number of input arguments if len(sys.argv) < 2 or len(sys.argv) > 3: print("Usage Error:\t\tThe program needs (at least) an input filename to run.") print("Correct Usage:\t\tpython titleStrip.py [input filename]") print("Alternate Usage:\t\tpython titleStrip.py [input filename] [output filename]") sys.exit(1) # Read in optional output filename if any if len(sys.argv) == 3: global output_name # Use the global output_name output_name = sys.argv[2] # Set the name # parseAndStrip # Reads through rfile and copies lines into wfile # If we find a line to remove, we do not copy it into wfile def parseAndStrip(rfile, wfile): while True: line = rfile.readline() # read in a line if not line: return # leave this function if we are done # Check to see if line has a key for removal skip = 0 for key in strip_target: if key in line: skip = 1 # Only copy from rfile to wfile if skip == 0 if skip == 0: wfile.write(line) main()
[ 31362, 222, 40, 222, 40, 1799, 7046, 51, 997, 222, 40, 222, 40, 32476, 619, 1716, 822, 642, 341, 28120, 451, 341, 1533, 42738, 222, 40, 10495, 63, 222, 40, 4406, 1799, 7046, 51, 997, 447, 1151, 4891, 98, 447, 2051, 4891, 98, 222, 40, 222, 31362, 222, 222, 485, 2355, 49, 5263, 222, 222, 40, 47244, 536, 9925, 222, 7237, 100, 2000, 299, 3059, 92, 445, 8824, 451, 411, 332, 6124, 15419, 1465, 244, 607, 20247, 456, 27228, 3761, 1533, 480, 1716, 222, 2051, 100, 444, 299, 332, 1333, 7046, 100, 560, 51, 2787, 39, 244, 607, 1263, 1716, 4891, 458, 986, 51, 2787, 499, 222, 40, 5825, 1118, 545, 331, 6106, 6780, 456, 477, 49, 364, 10677, 1198, 222, 610, 4250, 7634, 2284, 303, 2355, 51, 2964, 459, 6943, 39, 434, 2355, 51, 444, 630, 332, 585, 39, 832, 332, 3830, 678, 499, 222, 610, 2594, 2284, 303, 1524, 3097, 365, 465, 607, 3944, 992, 341, 1533, 536, 1716, 2293, 327, 870, 536, 2886, 19395, 22864, 46, 303, 559, 781, 299, 2177, 45, 3750, 51, 6129, 96, 54, 636, 332, 119, 678, 303, 360, 781, 299, 2177, 45, 2051, 100, 444, 49, 332, 124, 678, 465, 3203, 2199, 7046, 45, 119, 781, 49, 360, 781, 46, 465, 607, 11914, 341, 1533, 536, 1716, 2293, 2483, 708, 1019, 904, 3412, 303, 559, 781, 51, 2698, 365, 303, 360, 781, 51, 2698, 365, 499, 222, 40, 1524, 3097, 222, 40, 244, 54, 51, 46214, 708, 341, 1470, 451, 4228, 458, 29540, 222, 40, 244, 55, 51, 29513, 347, 5316, 1716, 4891, 222, 610, 1524, 3097, 2284, 303, 607, 12082, 1470, 451, 1533, 4228, 303, 434, 2095, 45, 3750, 51, 6129, 46, 350, 244, 55, 575, 2095, 45, 3750, 51, 6129, 46, 868, 244, 56, 63, 310, 1489, 459, 6786, 3099, 3509, 121, 97, 121, 1338, 3477, 5669, 327, 288, 6247, 46, 619, 1533, 4891, 391, 1441, 7164, 310, 1489, 459, 14877, 10495, 3509, 121, 97, 510, 2457, 1799, 7046, 51, 997, 447, 1151, 4891, 25743, 310, 1489, 459, 35279, 10495, 3509, 121, 97, 510, 2457, 1799, 7046, 51, 997, 447, 1151, 4891, 98, 447, 2051, 4891, 25743, 310, 5263, 51, 4788, 45, 54, 46, 465, 607, 4858, 347, 5316, 1716, 4891, 434, 1364, 303, 434, 2095, 45, 3750, 51, 6129, 46, 630, 244, 56, 63, 310, 3671, 1716, 100, 444, 244, 607, 4443, 341, 3671, 1716, 100, 444, 310, 1716, 100, 444, 299, 5263, 51, 6129, 96, 55, 98, 244, 607, 1776, 341, 655, 499, 222, 40, 3203, 2199, 7046, 222, 40, 29513, 3939, 559, 781, 480, 8685, 5452, 2012, 360, 781, 222, 40, 1691, 1019, 2309, 331, 1646, 391, 3365, 49, 1019, 764, 666, 1948, 580, 2012, 360, 781, 222, 610, 3203, 2199, 7046, 45, 119, 781, 49, 360, 781, 731, 303, 2236, 2969, 63, 310, 1646, 299, 559, 781, 51, 25658, 365, 244, 607, 1511, 347, 331, 1646, 310, 434, 666, 1646, 63, 343, 461, 244, 607, 11920, 477, 686, 434, 1019, 904, 3412, 603, 607, 3471, 391, 2337, 434, 1646, 1421, 331, 1221, 456, 27228, 310, 7130, 299, 244, 53, 310, 456, 1221, 347, 16481, 100, 2000, 63, 343, 434, 1221, 347, 1646, 63, 419, 7130, 299, 244, 54, 603, 607, 9303, 1948, 664, 559, 781, 391, 360, 781, 434, 7130, 630, 244, 53, 310, 434, 7130, 630, 244, 53, 63, 343, 360, 781, 51, 1838, 45, 948, 46, 499, 222, 1850, 365, 222 ]
[ "################################################################################", "Ċ", "#", "Ċ", "#", "Ġtitle", "Strip", ".", "py", "Ċ", "#", "Ċ", "#", "ĠGenerates", "Ġan", "Ġoutput", "Ġfile", "Ġwith", "Ġthe", "Ġtitles", "Ġof", "Ġthe", "Ġinput", "Ġstripped", "Ċ", "#", "ĠUsage", ":", "Ċ", "#", "Ġpython", "Ġtitle", "Strip", ".", "py", "Ġ[", "input", "Ġfilename", "]", "Ġ[", "output", "Ġfilename", "]", "Ċ", "#", "Ċ", "################################################################################", "Ċ", "Ċ", "import", "Ġos", ",", "Ġsys", "Ċ", "Ċ", "#", "ĠGlobals", "Ġ/", "ĠSettings", "Ċ", "strip", "_", "target", "Ġ=", "Ġ[\"", "W", "iz", "ards", "Ġof", "\",", "Ġ\"", "Random", "ĠGenerator", "\"]", "Ġ", "Ġ#", "ĠKeys", "Ġfor", "Ġremoval", "Ġbetween", "Ġinput", "Ġand", "Ġoutput", "Ċ", "output", "_", "name", "Ġ=", "Ġ\"", "title", "Strip", "_", "out", ".", "txt", "\"", "Ġ", "Ġ#", "Ġdefault", "Ġoutput", "Ġfilename", "Ġis", "Ġout", ".", "txt", "ĊĊ", "Ċ", "#", "ĠThere", "Ġwill", "Ġbe", "Ġa", "Ġbetter", "Ġhome", "Ġfor", "Ġthis", ",", "Ġm", "hm", "...", "Ċ", "def", "Ġclear", "Console", "():", "ĊĠĠĠ", "Ġos", ".", "system", "(\"", "cls", "\"", "Ġif", "Ġos", ".", "name", "Ġ==", "Ġ\"", "nt", "\"", "Ġelse", "Ġ\"", "clear", "\")", "ĊĊ", "Ċ", "def", "Ġmain", "():", "ĊĠĠĠ", "Ġcheck", "Args", "()", "ĊĊĠĠĠ", "Ġ#", "ĠOpen", "Ġup", "Ġthe", "Ġinput", "Ġ/", "Ġoutput", "Ġfiles", "Ġ(", "read", "Ġ/", "Ġwrite", "Ġmodes", "Ġrespectively", ")", "ĊĠĠĠ", "Ġr", "file", "Ġ=", "Ġopen", "(", "sys", ".", "argv", "[", "1", "],", "Ġ\"", "r", "\")", "ĊĠĠĠ", "Ġw", "file", "Ġ=", "Ġopen", "(", "output", "_", "name", ",", "Ġ\"", "w", "\")", "ĊĊĠĠĠ", "Ġparse", "And", "Strip", "(", "r", "file", ",", "Ġw", "file", ")", "ĊĊĠĠĠ", "Ġ#", "ĠClose", "Ġthe", "Ġinput", "Ġ/", "Ġoutput", "Ġfiles", "Ġnow", "Ġthat", "Ġwe", "Ġare", "Ġdone", "ĊĠĠĠ", "Ġr", "file", ".", "close", "()", "ĊĠĠĠ", "Ġw", "file", ".", "close", "()", "ĊĊ", "Ċ", "#", "Ġcheck", "Args", "Ċ", "#", "Ġ", "1", ".", "ĠVerifies", "Ġthat", "Ġthe", "Ġnumber", "Ġof", "Ġarguments", "Ġis", "Ġacceptable", "Ċ", "#", "Ġ", "2", ".", "ĠReads", "Ġin", "Ġoptional", "Ġoutput", "Ġfilename", "Ċ", "def", "Ġcheck", "Args", "():", "ĊĠĠĠ", "Ġ#", "ĠVerify", "Ġnumber", "Ġof", "Ġinput", "Ġarguments", "ĊĠĠĠ", "Ġif", "Ġlen", "(", "sys", ".", "argv", ")", "Ġ<", "Ġ", "2", "Ġor", "Ġlen", "(", "sys", ".", "argv", ")", "Ġ>", "Ġ", "3", ":", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "Usage", "ĠError", ":\\", "t", "\\", "t", "The", "Ġprogram", "Ġneeds", "Ġ(", "at", "Ġleast", ")", "Ġan", "Ġinput", "Ġfilename", "Ġto", "Ġrun", ".\")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "Correct", "ĠUsage", ":\\", "t", "\\", "tp", "ython", "Ġtitle", "Strip", ".", "py", "Ġ[", "input", "Ġfilename", "]\")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "Alternate", "ĠUsage", ":\\", "t", "\\", "tp", "ython", "Ġtitle", "Strip", ".", "py", "Ġ[", "input", "Ġfilename", "]", "Ġ[", "output", "Ġfilename", "]\")", "ĊĠĠĠĠĠĠĠ", "Ġsys", ".", "exit", "(", "1", ")", "ĊĊĠĠĠ", "Ġ#", "ĠRead", "Ġin", "Ġoptional", "Ġoutput", "Ġfilename", "Ġif", "Ġany", "ĊĠĠĠ", "Ġif", "Ġlen", "(", "sys", ".", "argv", ")", "Ġ==", "Ġ", "3", ":", "ĊĠĠĠĠĠĠĠ", "Ġglobal", "Ġoutput", "_", "name", "Ġ", "Ġ#", "ĠUse", "Ġthe", "Ġglobal", "Ġoutput", "_", "name", "ĊĠĠĠĠĠĠĠ", "Ġoutput", "_", "name", "Ġ=", "Ġsys", ".", "argv", "[", "2", "]", "Ġ", "Ġ#", "ĠSet", "Ġthe", "Ġname", "ĊĊ", "Ċ", "#", "Ġparse", "And", "Strip", "Ċ", "#", "ĠReads", "Ġthrough", "Ġr", "file", "Ġand", "Ġcopies", "Ġlines", "Ġinto", "Ġw", "file", "Ċ", "#", "ĠIf", "Ġwe", "Ġfind", "Ġa", "Ġline", "Ġto", "Ġremove", ",", "Ġwe", "Ġdo", "Ġnot", "Ġcopy", "Ġit", "Ġinto", "Ġw", "file", "Ċ", "def", "Ġparse", "And", "Strip", "(", "r", "file", ",", "Ġw", "file", "):", "ĊĠĠĠ", "Ġwhile", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠ", "Ġline", "Ġ=", "Ġr", "file", ".", "readline", "()", "Ġ", "Ġ#", "Ġread", "Ġin", "Ġa", "Ġline", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnot", "Ġline", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "Ġ#", "Ġleave", "Ġthis", "Ġfunction", "Ġif", "Ġwe", "Ġare", "Ġdone", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠCheck", "Ġto", "Ġsee", "Ġif", "Ġline", "Ġhas", "Ġa", "Ġkey", "Ġfor", "Ġremoval", "ĊĠĠĠĠĠĠĠ", "Ġskip", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġkey", "Ġin", "Ġstrip", "_", "target", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġkey", "Ġin", "Ġline", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġskip", "Ġ=", "Ġ", "1", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠOnly", "Ġcopy", "Ġfrom", "Ġr", "file", "Ġto", "Ġw", "file", "Ġif", "Ġskip", "Ġ==", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġskip", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġw", "file", ".", "write", "(", "line", ")", "ĊĊ", "Ċ", "main", "()", "Ċ" ]
[ 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 10, 11, 11, 11, 11, 11, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 23, 23, 23, 23, 24, 24, 24, 24, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 36, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 53, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 73, 74, 74, 74 ]
[ 1, 81, 1, 2, 1, 2, 8, 13, 14, 16, 1, 2, 1, 2, 12, 15, 22, 27, 32, 36, 43, 46, 50, 56, 65, 1, 2, 8, 9, 1, 2, 9, 15, 20, 21, 23, 25, 30, 39, 40, 42, 48, 57, 58, 1, 2, 1, 81, 1, 1, 7, 10, 11, 15, 1, 1, 2, 10, 12, 21, 1, 6, 7, 13, 15, 18, 19, 21, 25, 28, 30, 32, 38, 48, 50, 51, 53, 58, 62, 70, 78, 84, 88, 95, 1, 7, 8, 12, 14, 16, 21, 26, 27, 30, 31, 34, 35, 36, 38, 46, 53, 62, 65, 69, 70, 73, 1, 1, 2, 8, 13, 16, 18, 25, 30, 34, 39, 40, 42, 44, 47, 1, 4, 10, 17, 20, 4, 7, 8, 14, 16, 19, 20, 23, 26, 27, 31, 34, 36, 38, 39, 44, 46, 51, 53, 1, 1, 4, 9, 12, 4, 10, 14, 16, 4, 6, 11, 14, 18, 24, 26, 33, 39, 41, 45, 47, 53, 59, 72, 73, 4, 6, 10, 12, 17, 18, 21, 22, 26, 27, 28, 30, 32, 33, 35, 4, 6, 10, 12, 17, 18, 24, 25, 29, 30, 32, 33, 35, 4, 10, 13, 18, 19, 20, 24, 25, 27, 31, 32, 4, 6, 12, 16, 22, 24, 31, 37, 41, 46, 49, 53, 58, 4, 6, 10, 11, 16, 18, 4, 6, 10, 11, 16, 18, 1, 1, 2, 8, 12, 1, 2, 3, 4, 5, 14, 19, 23, 30, 33, 43, 46, 57, 1, 2, 3, 4, 5, 11, 14, 23, 30, 39, 1, 4, 10, 14, 17, 4, 6, 13, 20, 23, 29, 39, 4, 7, 11, 12, 15, 16, 20, 21, 23, 24, 25, 28, 32, 33, 36, 37, 41, 42, 44, 45, 46, 47, 8, 14, 16, 21, 27, 29, 30, 31, 32, 35, 43, 49, 51, 53, 59, 60, 63, 69, 78, 81, 85, 88, 8, 14, 16, 23, 29, 31, 32, 33, 35, 40, 46, 51, 52, 54, 56, 61, 70, 73, 8, 14, 16, 25, 31, 33, 34, 35, 37, 42, 48, 53, 54, 56, 58, 63, 72, 73, 75, 81, 90, 93, 8, 12, 13, 17, 18, 19, 20, 4, 6, 11, 14, 23, 30, 39, 42, 46, 4, 7, 11, 12, 15, 16, 20, 21, 24, 25, 26, 27, 8, 15, 22, 23, 27, 28, 30, 34, 38, 45, 52, 53, 57, 8, 15, 16, 20, 22, 26, 27, 31, 32, 33, 34, 35, 37, 41, 45, 50, 1, 1, 2, 8, 11, 16, 1, 2, 8, 16, 18, 22, 26, 33, 39, 44, 46, 50, 1, 2, 5, 8, 13, 15, 20, 23, 30, 31, 34, 37, 41, 46, 49, 54, 56, 60, 1, 4, 10, 13, 18, 19, 20, 24, 25, 27, 31, 33, 4, 10, 15, 16, 8, 13, 15, 17, 21, 22, 30, 32, 33, 35, 40, 43, 45, 50, 8, 11, 15, 20, 21, 12, 19, 20, 22, 28, 33, 42, 45, 48, 52, 57, 8, 10, 16, 19, 23, 26, 31, 35, 37, 41, 45, 53, 8, 13, 15, 16, 17, 8, 12, 16, 19, 25, 26, 32, 33, 12, 15, 19, 22, 27, 28, 16, 21, 23, 24, 25, 8, 10, 15, 20, 25, 27, 31, 34, 36, 40, 43, 48, 51, 52, 53, 8, 11, 16, 19, 20, 21, 22, 12, 14, 18, 19, 24, 25, 29, 30, 1, 1, 5, 7 ]
8f3abc5beaded94b6d7b93ac2cfcd12145d75fe8
class Meta(type): def __new__(meta, name, bases, class_dict): print(f"* Running {meta}.__new__ for {name}") print("Bases:", bases) print(class_dict) return type.__new__(meta, name, bases, class_dict) class MyClass(metaclass=Meta): stuff = 123 def foo(self): pass class MySubClass(MyClass): ofther = 456 def bar(self): pass print("") class MyClass2: stuff = 123 def __init_subclass__(cls): super().__init_subclass__() print(f"* Running {cls.__name__}.__init_subclass__") print(cls.__dict__) print(cls.super().__dict__) def foo(self): pass class MySubClass2(MyClass2): ofther = 456 def bar(self): pass
[ 842, 11990, 45, 700, 731, 303, 684, 1176, 909, 3232, 2874, 49, 655, 49, 26425, 49, 462, 100, 2734, 731, 310, 1489, 45, 107, 41701, 13794, 320, 2874, 130, 3688, 909, 523, 456, 320, 444, 8531, 310, 1489, 459, 48242, 9398, 26425, 46, 310, 1489, 45, 842, 100, 2734, 46, 310, 461, 847, 3688, 909, 3232, 2874, 49, 655, 49, 26425, 49, 462, 100, 2734, 46, 499, 222, 842, 4318, 1359, 45, 2580, 32119, 66, 4247, 731, 303, 10597, 299, 244, 54, 55, 56, 465, 684, 9229, 45, 803, 731, 310, 3119, 499, 222, 842, 4318, 1736, 1359, 45, 3781, 1359, 731, 303, 451, 987, 299, 244, 57, 58, 59, 465, 684, 5710, 45, 803, 731, 310, 3119, 499, 222, 1243, 18001, 499, 222, 842, 4318, 1359, 55, 63, 303, 10597, 299, 244, 54, 55, 56, 465, 684, 1176, 1683, 100, 39464, 3232, 6943, 731, 310, 2615, 17124, 1683, 100, 39464, 16443, 310, 1489, 45, 107, 41701, 13794, 320, 6943, 3688, 444, 523, 130, 3688, 1683, 100, 39464, 523, 678, 310, 1489, 45, 6943, 3688, 2734, 8238, 310, 1489, 45, 6943, 51, 5282, 17124, 2734, 8238, 465, 684, 9229, 45, 803, 731, 310, 3119, 499, 222, 842, 4318, 1736, 1359, 55, 45, 3781, 1359, 55, 731, 303, 451, 987, 299, 244, 57, 58, 59, 465, 684, 5710, 45, 803, 731, 310, 3119, 222 ]
[ "class", "ĠMeta", "(", "type", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "new", "__(", "meta", ",", "Ġname", ",", "Ġbases", ",", "Ġclass", "_", "dict", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "f", "\"*", "ĠRunning", "Ġ{", "meta", "}", ".__", "new", "__", "Ġfor", "Ġ{", "name", "}\")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "Bases", ":\",", "Ġbases", ")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "class", "_", "dict", ")", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġtype", ".__", "new", "__(", "meta", ",", "Ġname", ",", "Ġbases", ",", "Ġclass", "_", "dict", ")", "ĊĊ", "Ċ", "class", "ĠMy", "Class", "(", "met", "aclass", "=", "Meta", "):", "ĊĠĠĠ", "Ġstuff", "Ġ=", "Ġ", "1", "2", "3", "ĊĊĠĠĠ", "Ġdef", "Ġfoo", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊ", "Ċ", "class", "ĠMy", "Sub", "Class", "(", "My", "Class", "):", "ĊĠĠĠ", "Ġof", "ther", "Ġ=", "Ġ", "4", "5", "6", "ĊĊĠĠĠ", "Ġdef", "Ġbar", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊ", "Ċ", "print", "(\"\")", "ĊĊ", "Ċ", "class", "ĠMy", "Class", "2", ":", "ĊĠĠĠ", "Ġstuff", "Ġ=", "Ġ", "1", "2", "3", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "_", "subclass", "__(", "cls", "):", "ĊĠĠĠĠĠĠĠ", "Ġsuper", "().__", "init", "_", "subclass", "__()", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "f", "\"*", "ĠRunning", "Ġ{", "cls", ".__", "name", "__", "}", ".__", "init", "_", "subclass", "__", "\")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "cls", ".__", "dict", "__)", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "cls", ".", "super", "().__", "dict", "__)", "ĊĊĠĠĠ", "Ġdef", "Ġfoo", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊ", "Ċ", "class", "ĠMy", "Sub", "Class", "2", "(", "My", "Class", "2", "):", "ĊĠĠĠ", "Ġof", "ther", "Ġ=", "Ġ", "4", "5", "6", "ĊĊĠĠĠ", "Ġdef", "Ġbar", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 12, 12, 12, 12, 12, 12, 13, 13, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 19, 19, 19, 19, 19, 19, 20, 20, 22, 23, 23, 23, 25, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 35, 35, 35, 35, 35, 35, 36, 36, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 42, 42, 42, 42, 42, 42, 43, 43 ]
[ 1, 6, 11, 12, 16, 18, 4, 8, 11, 14, 17, 21, 22, 27, 28, 34, 35, 41, 42, 46, 48, 8, 14, 15, 16, 18, 26, 28, 32, 33, 36, 39, 41, 45, 47, 51, 54, 8, 14, 16, 21, 24, 30, 31, 8, 14, 15, 20, 21, 25, 26, 8, 15, 20, 23, 26, 29, 33, 34, 39, 40, 46, 47, 53, 54, 58, 59, 1, 1, 6, 9, 14, 15, 18, 24, 25, 29, 31, 4, 10, 12, 13, 14, 15, 16, 4, 8, 12, 13, 17, 19, 8, 13, 1, 1, 6, 9, 12, 17, 18, 20, 25, 27, 4, 7, 11, 13, 14, 15, 16, 17, 4, 8, 12, 13, 17, 19, 8, 13, 1, 1, 6, 10, 1, 1, 6, 9, 14, 15, 16, 4, 10, 12, 13, 14, 15, 16, 4, 8, 11, 15, 16, 24, 27, 30, 32, 8, 14, 19, 23, 24, 32, 36, 8, 14, 15, 16, 18, 26, 28, 31, 34, 38, 40, 41, 44, 48, 49, 57, 59, 61, 8, 14, 15, 18, 21, 25, 28, 8, 14, 15, 18, 19, 24, 29, 33, 36, 4, 8, 12, 13, 17, 19, 8, 13, 1, 1, 6, 9, 12, 17, 18, 19, 21, 26, 27, 29, 4, 7, 11, 13, 14, 15, 16, 17, 4, 8, 12, 13, 17, 19, 8, 13 ]
6801d68ebcc6ff52d9be92efeeb8727997a14bbd
#!/usr/bin/env python import json import requests from requests.auth import HTTPBasicAuth if __name__ == "__main__": auth = HTTPBasicAuth("cisco", "cisco") headers = {"Accept": "application/json", "Content-Type": "application/json"} url = "https://asav/api/interfaces/physical/GigabitEthernet0_API_SLASH_0" body = {"kind": "object#GigabitInterface", "interfaceDesc": "Configured by Python"} requests.packages.urllib3.disable_warnings() response = requests.patch(url, data=json.dumps(body), auth=auth, headers=headers, verify=False)
[ 8758, 3392, 52, 1793, 52, 2141, 4406, 222, 222, 485, 2379, 222, 485, 5188, 222, 1097, 5188, 51, 2408, 1220, 4818, 7114, 2693, 222, 222, 344, 1176, 444, 523, 630, 9609, 1850, 18021, 303, 3813, 299, 4818, 7114, 2693, 459, 42718, 411, 332, 42718, 678, 303, 4839, 299, 3479, 7082, 582, 332, 3180, 52, 1279, 411, 332, 1795, 50, 638, 582, 332, 3180, 52, 1279, 3667, 465, 2001, 299, 332, 662, 574, 321, 472, 52, 1256, 52, 11204, 52, 18963, 52, 76, 384, 17469, 43096, 53, 100, 2571, 100, 3910, 7885, 100, 53, 39, 465, 3376, 299, 3479, 5478, 582, 332, 1491, 40, 76, 384, 17469, 3058, 411, 332, 3352, 5349, 582, 332, 30067, 829, 5006, 3667, 465, 5188, 51, 5051, 51, 39599, 56, 51, 5826, 100, 20340, 365, 303, 1808, 299, 5188, 51, 2690, 45, 983, 49, 727, 66, 1279, 51, 16961, 45, 1561, 490, 3813, 66, 2408, 49, 4839, 66, 5090, 49, 6152, 66, 2737, 46, 222 ]
[ "#!/", "usr", "/", "bin", "/", "env", "Ġpython", "Ċ", "Ċ", "import", "Ġjson", "Ċ", "import", "Ġrequests", "Ċ", "from", "Ġrequests", ".", "auth", "Ġimport", "ĠHTTP", "Basic", "Auth", "Ċ", "Ċ", "if", "Ġ__", "name", "__", "Ġ==", "Ġ\"__", "main", "__\":", "ĊĠĠĠ", "Ġauth", "Ġ=", "ĠHTTP", "Basic", "Auth", "(\"", "cisco", "\",", "Ġ\"", "cisco", "\")", "ĊĠĠĠ", "Ġheaders", "Ġ=", "Ġ{\"", "Accept", "\":", "Ġ\"", "application", "/", "json", "\",", "Ġ\"", "Content", "-", "Type", "\":", "Ġ\"", "application", "/", "json", "\"}", "ĊĊĠĠĠ", "Ġurl", "Ġ=", "Ġ\"", "https", "://", "as", "av", "/", "api", "/", "interfaces", "/", "physical", "/", "G", "ig", "abit", "Ethernet", "0", "_", "API", "_", "SL", "ASH", "_", "0", "\"", "ĊĊĠĠĠ", "Ġbody", "Ġ=", "Ġ{\"", "kind", "\":", "Ġ\"", "object", "#", "G", "ig", "abit", "Interface", "\",", "Ġ\"", "interface", "Desc", "\":", "Ġ\"", "Configured", "Ġby", "ĠPython", "\"}", "ĊĊĠĠĠ", "Ġrequests", ".", "packages", ".", "urllib", "3", ".", "disable", "_", "warnings", "()", "ĊĠĠĠ", "Ġresponse", "Ġ=", "Ġrequests", ".", "patch", "(", "url", ",", "Ġdata", "=", "json", ".", "dumps", "(", "body", "),", "Ġauth", "=", "auth", ",", "Ġheaders", "=", "headers", ",", "Ġverify", "=", "False", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16 ]
[ 1, 4, 7, 8, 11, 12, 15, 22, 1, 1, 7, 12, 1, 7, 16, 1, 5, 14, 15, 19, 26, 31, 36, 40, 1, 1, 3, 6, 10, 12, 15, 19, 23, 27, 4, 9, 11, 16, 21, 25, 27, 32, 34, 36, 41, 43, 4, 12, 14, 17, 23, 25, 27, 38, 39, 43, 45, 47, 54, 55, 59, 61, 63, 74, 75, 79, 81, 4, 8, 10, 12, 17, 20, 22, 24, 25, 28, 29, 39, 40, 48, 49, 50, 52, 56, 64, 65, 66, 69, 70, 72, 75, 76, 77, 78, 4, 9, 11, 14, 18, 20, 22, 28, 29, 30, 32, 36, 45, 47, 49, 58, 62, 64, 66, 76, 79, 86, 88, 4, 13, 14, 22, 23, 29, 30, 31, 38, 39, 47, 49, 4, 13, 15, 24, 25, 30, 31, 34, 35, 40, 41, 45, 46, 51, 52, 56, 58, 63, 64, 68, 69, 77, 78, 85, 86, 93, 94, 99, 100 ]
6e3bb17696953256af6d8194128427acebf1daac
from random import randint, shuffle class Generator: opset = ["+", "-", "*", "/", "²", "√", "sin", "cos", "tan"] @staticmethod def generate(level): """ 根据 level 生成指定等级的算术题 0:小学;1:初中;2:高中 """ """ 生成操作数序列以及二元运算符序列 """ length = randint(0 if level else 1, 4) op2Arr = [Generator.opset[randint(0, 3)] for i in range(length)] numArr = [randint(1, 100) for i in range(length + 1)] """ 生成二元运算符的位置 """ remain = 1 position = [] for i in range(length): position.append(randint(0, remain)) remain += 1 - position[i] if remain > 1: position[-1] += remain - 1 """ 生成一元运算符序列 """ op1Arr = [] if level: if level == 1: op1Arr.append(Generator.opset[randint(4, 5)]) elif level == 2: op1Arr.append(Generator.opset[randint(6, 8)]) for i in range(randint(0, level)): op1Arr.append(Generator.opset[randint(4, 5 if level == 1 else 8)]) shuffle(op1Arr) """ 生成后缀表达式 """ expression = numArr offset = 2 index = 0 for i in range(length): for j in range(position[i]): expression.insert(i + j + offset, op2Arr[index]) index += 1 offset += position[i] for op in op1Arr: expression.insert(randint(1, len(expression)), op) def getPriority(item): """ 返回运算符或操作数的优先级 操作数:0 一元运算符:1 '*'、'/':2 '+'、'-':3 """ if isinstance(item, int): return 0 elif item == "+" or item == "-": return 3 elif item == "*" or item == "/": return 2 else: return 1 """ 转换成中缀表达式 stack 存储 (expression, priority) """ stack = [] for e in expression: priority = getPriority(e) if priority == 0: """ 是一个操作数,直接入栈 """ stack.append((e, 0)) elif priority == 3: """ 是加/减运算,优先级最低,拼接后直接入栈 """ item2 = stack.pop()[0] item1 = stack.pop()[0] stack.append(("%s%s%s" % (item1, e, item2), 3)) elif priority == 2: """ 是乘/除运算,如果有加/减运算需要加括号 """ item2, prio2 = stack.pop() if prio2 > 2: item2 = "(%s)" % item2 item1, prio1 = stack.pop() if prio1 > 2: item1 = "(%s)" % item1 stack.append(("%s%s%s" % (item1, e, item2), 2)) elif priority == 1: """ 是一元运算,除了操作数都要加括号 """ item, prio = stack.pop() if prio: item = "(%s)" % item if e == "²": stack.append(("%s%s" % (item, "²"), 1)) else: stack.append(("%s%s" % (e, item), 1)) return stack[0][0]
[ 1097, 4051, 1220, 10510, 429, 49, 20932, 499, 222, 842, 15419, 63, 303, 3107, 489, 299, 3059, 32681, 32762, 41988, 31849, 332, 42496, 411, 332, 21022, 272, 411, 332, 7137, 411, 332, 4984, 411, 332, 21977, 1465, 465, 496, 16130, 303, 684, 4468, 45, 2675, 731, 310, 1547, 310, 29225, 3215, 42916, 10908, 8997, 11867, 1096, 9550, 18955, 8334, 295, 53, 3111, 7333, 9034, 11195, 54, 3111, 12223, 3011, 11195, 55, 3111, 9863, 3011, 310, 1547, 603, 1547, 310, 42916, 10734, 2378, 27296, 22147, 10290, 9578, 48448, 9254, 27296, 310, 1547, 310, 3124, 299, 10510, 429, 45, 53, 434, 3215, 832, 244, 54, 49, 244, 57, 46, 310, 3107, 55, 7729, 299, 447, 4829, 51, 539, 489, 96, 21732, 45, 53, 49, 244, 56, 2201, 456, 613, 347, 2189, 45, 1340, 2201, 310, 1952, 7729, 299, 447, 21732, 45, 54, 49, 244, 54, 53, 53, 46, 456, 613, 347, 2189, 45, 1340, 494, 244, 54, 2201, 603, 1547, 310, 42916, 10290, 9578, 48448, 9254, 1096, 16236, 310, 1547, 310, 7228, 299, 244, 54, 310, 2764, 299, 1627, 310, 456, 613, 347, 2189, 45, 1340, 731, 343, 2764, 51, 1713, 45, 21732, 45, 53, 49, 7228, 509, 343, 7228, 1475, 244, 54, 449, 2764, 96, 110, 98, 310, 434, 7228, 868, 244, 54, 63, 343, 2764, 6510, 54, 98, 1475, 7228, 449, 244, 54, 603, 1547, 310, 42916, 2288, 9578, 48448, 9254, 27296, 310, 1547, 310, 3107, 54, 7729, 299, 1627, 310, 434, 3215, 63, 343, 434, 3215, 630, 244, 54, 63, 419, 3107, 54, 7729, 51, 1713, 45, 4829, 51, 539, 489, 96, 21732, 45, 57, 49, 244, 58, 14935, 343, 4378, 3215, 630, 244, 55, 63, 419, 3107, 54, 7729, 51, 1713, 45, 4829, 51, 539, 489, 96, 21732, 45, 59, 49, 244, 61, 14935, 343, 456, 613, 347, 2189, 45, 21732, 45, 53, 49, 3215, 8485, 419, 3107, 54, 7729, 51, 1713, 45, 4829, 51, 539, 489, 96, 21732, 45, 57, 49, 244, 58, 434, 3215, 630, 244, 54, 832, 244, 61, 14935, 343, 20932, 45, 539, 54, 7729, 46, 603, 1547, 310, 42916, 5054, 38732, 40081, 310, 1547, 310, 6112, 299, 1952, 7729, 310, 3413, 299, 244, 55, 310, 1671, 299, 244, 53, 310, 456, 613, 347, 2189, 45, 1340, 731, 343, 456, 614, 347, 2189, 45, 2719, 96, 110, 10879, 419, 6112, 51, 3233, 45, 110, 494, 614, 494, 3413, 49, 3107, 55, 7729, 96, 1076, 1156, 419, 1671, 1475, 244, 54, 343, 3413, 1475, 2764, 96, 110, 98, 310, 456, 3107, 347, 3107, 54, 7729, 63, 343, 6112, 51, 3233, 45, 21732, 45, 54, 49, 2095, 45, 7681, 3684, 3107, 46, 603, 684, 640, 10333, 45, 1113, 731, 343, 1547, 343, 24261, 48448, 9254, 7668, 10734, 2378, 1096, 39427, 11867, 343, 49095, 10150, 2378, 3111, 53, 343, 41523, 9578, 48448, 9254, 3111, 54, 343, 32435, 2626, 44, 7441, 3111, 55, 343, 43600, 2626, 44, 21107, 3111, 56, 343, 1547, 343, 434, 6968, 45, 1113, 49, 648, 731, 419, 461, 244, 53, 343, 4378, 1641, 630, 332, 5688, 575, 1641, 630, 4840, 582, 419, 461, 244, 56, 343, 4378, 1641, 630, 30138, 575, 1641, 630, 2450, 582, 419, 461, 244, 55, 343, 832, 63, 419, 461, 244, 54, 603, 1547, 310, 244, 21283, 4223, 3011, 38732, 40081, 310, 4154, 244, 18262, 327, 7681, 49, 9961, 46, 310, 1547, 310, 4154, 299, 1627, 310, 456, 503, 347, 6112, 63, 343, 9961, 299, 640, 10333, 45, 106, 46, 343, 434, 9961, 630, 244, 53, 63, 419, 1547, 419, 244, 21661, 10734, 2378, 1140, 16022, 5039, 36188, 419, 1547, 419, 4154, 51, 1713, 1181, 106, 49, 244, 53, 509, 343, 4378, 9961, 630, 244, 56, 63, 419, 1547, 419, 24489, 5360, 52, 28240, 48448, 1140, 39427, 11867, 6400, 22883, 1140, 5678, 158, 5435, 5054, 16022, 5039, 36188, 419, 1547, 419, 1641, 55, 299, 4154, 51, 3254, 8577, 53, 98, 419, 1641, 54, 299, 4154, 51, 3254, 8577, 53, 98, 419, 4154, 51, 1713, 45, 4923, 120, 42, 120, 42, 120, 39, 925, 327, 1113, 54, 49, 503, 49, 1641, 55, 490, 244, 56, 509, 343, 4378, 9961, 630, 244, 55, 63, 419, 1547, 419, 24489, 2721, 270, 52, 7839, 48448, 1140, 7558, 3052, 5360, 52, 28240, 48448, 8092, 5360, 22035, 8270, 419, 1547, 419, 1641, 55, 49, 3047, 116, 55, 299, 4154, 51, 3254, 365, 419, 434, 3047, 116, 55, 868, 244, 55, 63, 547, 1641, 55, 299, 332, 7846, 120, 4748, 925, 1641, 55, 419, 1641, 54, 49, 3047, 116, 54, 299, 4154, 51, 3254, 365, 419, 434, 3047, 116, 54, 868, 244, 55, 63, 547, 1641, 54, 299, 332, 7846, 120, 4748, 925, 1641, 54, 419, 4154, 51, 1713, 45, 4923, 120, 42, 120, 42, 120, 39, 925, 327, 1113, 54, 49, 503, 49, 1641, 55, 490, 244, 55, 509, 343, 4378, 9961, 630, 244, 54, 63, 419, 1547, 419, 24489, 2288, 9578, 48448, 1140, 48159, 10734, 2378, 8605, 3977, 5360, 22035, 8270, 419, 1547, 419, 1641, 49, 3047, 116, 299, 4154, 51, 3254, 365, 419, 434, 3047, 116, 63, 547, 1641, 299, 332, 7846, 120, 4748, 925, 1641, 419, 434, 503, 630, 332, 42496, 582, 547, 4154, 51, 1713, 45, 4923, 120, 42, 120, 39, 925, 327, 1113, 49, 332, 42496, 2132, 244, 54, 509, 419, 832, 63, 547, 4154, 51, 1713, 45, 4923, 120, 42, 120, 39, 925, 327, 106, 49, 1641, 490, 244, 54, 509, 603, 461, 4154, 96, 53, 1697, 53, 98, 222 ]
[ "from", "Ġrandom", "Ġimport", "Ġrand", "int", ",", "Ġshuffle", "ĊĊ", "Ċ", "class", "ĠGenerator", ":", "ĊĠĠĠ", "Ġop", "set", "Ġ=", "Ġ[\"", "+\",", "Ġ\"-\",", "Ġ\"*\",", "Ġ\"/\",", "Ġ\"", "²", "\",", "Ġ\"", "âĪ", "ļ", "\",", "Ġ\"", "sin", "\",", "Ġ\"", "cos", "\",", "Ġ\"", "tan", "\"]", "ĊĊĠĠĠ", "Ġ@", "staticmethod", "ĊĠĠĠ", "Ġdef", "Ġgenerate", "(", "level", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġæł¹æį®", "Ġlevel", "ĠçĶŁæĪIJ", "æĮĩå®ļ", "çŃī", "级", "çļĦ", "ç®Ĺ", "æľ¯", "é¢ĺ", "ĊĠĠĠĠĠĠĠĠ", "0", "ï¼ļ", "å°ı", "åѦ", "ï¼Ľ", "1", "ï¼ļ", "åĪĿ", "ä¸Ń", "ï¼Ľ", "2", "ï¼ļ", "é«ĺ", "ä¸Ń", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠçĶŁæĪIJ", "æĵįä½ľ", "æķ°", "åºıåĪĹ", "以åıĬ", "äºĮ", "åħĥ", "è¿IJç®Ĺ", "符", "åºıåĪĹ", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġlength", "Ġ=", "Ġrand", "int", "(", "0", "Ġif", "Ġlevel", "Ġelse", "Ġ", "1", ",", "Ġ", "4", ")", "ĊĠĠĠĠĠĠĠ", "Ġop", "2", "Arr", "Ġ=", "Ġ[", "Generator", ".", "op", "set", "[", "randint", "(", "0", ",", "Ġ", "3", ")]", "Ġfor", "Ġi", "Ġin", "Ġrange", "(", "length", ")]", "ĊĠĠĠĠĠĠĠ", "Ġnum", "Arr", "Ġ=", "Ġ[", "randint", "(", "1", ",", "Ġ", "1", "0", "0", ")", "Ġfor", "Ġi", "Ġin", "Ġrange", "(", "length", "Ġ+", "Ġ", "1", ")]", "ĊĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠçĶŁæĪIJ", "äºĮ", "åħĥ", "è¿IJç®Ĺ", "符", "çļĦ", "ä½įç½®", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġremain", "Ġ=", "Ġ", "1", "ĊĠĠĠĠĠĠĠ", "Ġposition", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġi", "Ġin", "Ġrange", "(", "length", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġposition", ".", "append", "(", "randint", "(", "0", ",", "Ġremain", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġremain", "Ġ+=", "Ġ", "1", "Ġ-", "Ġposition", "[", "i", "]", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġremain", "Ġ>", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġposition", "[-", "1", "]", "Ġ+=", "Ġremain", "Ġ-", "Ġ", "1", "ĊĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠçĶŁæĪIJ", "ä¸Ģ", "åħĥ", "è¿IJç®Ĺ", "符", "åºıåĪĹ", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġop", "1", "Arr", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġlevel", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġlevel", "Ġ==", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġop", "1", "Arr", ".", "append", "(", "Generator", ".", "op", "set", "[", "randint", "(", "4", ",", "Ġ", "5", ")])", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġlevel", "Ġ==", "Ġ", "2", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġop", "1", "Arr", ".", "append", "(", "Generator", ".", "op", "set", "[", "randint", "(", "6", ",", "Ġ", "8", ")])", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġi", "Ġin", "Ġrange", "(", "randint", "(", "0", ",", "Ġlevel", ")):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġop", "1", "Arr", ".", "append", "(", "Generator", ".", "op", "set", "[", "randint", "(", "4", ",", "Ġ", "5", "Ġif", "Ġlevel", "Ġ==", "Ġ", "1", "Ġelse", "Ġ", "8", ")])", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġshuffle", "(", "op", "1", "Arr", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠçĶŁæĪIJ", "åIJİ", "ç¼Ģ", "表达å¼ı", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġexpression", "Ġ=", "Ġnum", "Arr", "ĊĠĠĠĠĠĠĠ", "Ġoffset", "Ġ=", "Ġ", "2", "ĊĠĠĠĠĠĠĠ", "Ġindex", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġi", "Ġin", "Ġrange", "(", "length", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġj", "Ġin", "Ġrange", "(", "position", "[", "i", "]):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġexpression", ".", "insert", "(", "i", "Ġ+", "Ġj", "Ġ+", "Ġoffset", ",", "Ġop", "2", "Arr", "[", "index", "])", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġindex", "Ġ+=", "Ġ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġoffset", "Ġ+=", "Ġposition", "[", "i", "]", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġop", "Ġin", "Ġop", "1", "Arr", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġexpression", ".", "insert", "(", "randint", "(", "1", ",", "Ġlen", "(", "expression", ")),", "Ġop", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġdef", "Ġget", "Priority", "(", "item", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġè¿ĶåĽŀ", "è¿IJç®Ĺ", "符", "æĪĸ", "æĵįä½ľ", "æķ°", "çļĦ", "ä¼ĺåħĪ", "级", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġæĵ", "įä½ľ", "æķ°", "ï¼ļ", "0", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġä¸Ģ", "åħĥ", "è¿IJç®Ĺ", "符", "ï¼ļ", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ'*'", "ãĢģ", "'", "/'", "ï¼ļ", "2", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ'+'", "ãĢģ", "'", "-'", "ï¼ļ", "3", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġisinstance", "(", "item", ",", "Ġint", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġitem", "Ġ==", "Ġ\"", "+\"", "Ġor", "Ġitem", "Ġ==", "Ġ\"-", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "3", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġitem", "Ġ==", "Ġ\"*\"", "Ġor", "Ġitem", "Ġ==", "Ġ\"/", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "2", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "1", "ĊĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġ", "转æį¢", "æĪIJ", "ä¸Ń", "ç¼Ģ", "表达å¼ı", "ĊĠĠĠĠĠĠĠ", "Ġstack", "Ġ", "åŃĺåĤ¨", "Ġ(", "expression", ",", "Ġpriority", ")", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġstack", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġe", "Ġin", "Ġexpression", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpriority", "Ġ=", "Ġget", "Priority", "(", "e", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġpriority", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ", "æĺ¯ä¸Ģ个", "æĵįä½ľ", "æķ°", "ï¼Į", "缴æİ¥", "åħ¥", "æłĪ", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġstack", ".", "append", "((", "e", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġpriority", "Ġ==", "Ġ", "3", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġæĺ¯", "åĬł", "/", "åĩı", "è¿IJç®Ĺ", "ï¼Į", "ä¼ĺåħĪ", "级", "æľĢ", "ä½İ", "ï¼Į", "æĭ", "¼", "æİ¥", "åIJİ", "缴æİ¥", "åħ¥", "æłĪ", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġitem", "2", "Ġ=", "Ġstack", ".", "pop", "()[", "0", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġitem", "1", "Ġ=", "Ġstack", ".", "pop", "()[", "0", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġstack", ".", "append", "(", "(\"%", "s", "%", "s", "%", "s", "\"", "Ġ%", "Ġ(", "item", "1", ",", "Ġe", ",", "Ġitem", "2", "),", "Ġ", "3", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġpriority", "Ġ==", "Ġ", "2", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġæĺ¯", "ä¹", "ĺ", "/", "éϤ", "è¿IJç®Ĺ", "ï¼Į", "å¦Ĥæŀľ", "æľī", "åĬł", "/", "åĩı", "è¿IJç®Ĺ", "éľĢè¦ģ", "åĬł", "æĭ¬", "åı·", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġitem", "2", ",", "Ġpri", "o", "2", "Ġ=", "Ġstack", ".", "pop", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġpri", "o", "2", "Ġ>", "Ġ", "2", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġitem", "2", "Ġ=", "Ġ\"", "(%", "s", ")\"", "Ġ%", "Ġitem", "2", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġitem", "1", ",", "Ġpri", "o", "1", "Ġ=", "Ġstack", ".", "pop", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġpri", "o", "1", "Ġ>", "Ġ", "2", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġitem", "1", "Ġ=", "Ġ\"", "(%", "s", ")\"", "Ġ%", "Ġitem", "1", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġstack", ".", "append", "(", "(\"%", "s", "%", "s", "%", "s", "\"", "Ġ%", "Ġ(", "item", "1", ",", "Ġe", ",", "Ġitem", "2", "),", "Ġ", "2", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġpriority", "Ġ==", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġæĺ¯", "ä¸Ģ", "åħĥ", "è¿IJç®Ĺ", "ï¼Į", "éϤäºĨ", "æĵįä½ľ", "æķ°", "éĥ½", "è¦ģ", "åĬł", "æĭ¬", "åı·", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġitem", ",", "Ġpri", "o", "Ġ=", "Ġstack", ".", "pop", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġpri", "o", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġitem", "Ġ=", "Ġ\"", "(%", "s", ")\"", "Ġ%", "Ġitem", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġe", "Ġ==", "Ġ\"", "²", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġstack", ".", "append", "(", "(\"%", "s", "%", "s", "\"", "Ġ%", "Ġ(", "item", ",", "Ġ\"", "²", "\"),", "Ġ", "1", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġstack", ".", "append", "(", "(\"%", "s", "%", "s", "\"", "Ġ%", "Ġ(", "e", ",", "Ġitem", "),", "Ġ", "1", "))", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġstack", "[", "0", "][", "0", "]", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 24, 24, 24, 24, 24, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 32, 32, 33, 33, 33, 33, 33, 33, 33, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 45, 45, 46, 46, 46, 46, 46, 47, 47, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 59, 59, 59, 59, 59, 59, 59, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 66, 66, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 73, 73, 73, 74, 74, 74, 74, 76, 76, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 88, 88, 88, 88, 88, 88, 88, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 96, 96, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 106, 106, 106, 106, 106, 106, 106, 107, 107, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 109, 109, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 111, 111, 111, 111, 111, 112, 112, 112, 112, 112, 112, 112, 112, 112, 113, 113, 113, 113, 113, 113, 113, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 115, 115, 115, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 118, 118, 118, 118, 118, 118, 118, 118 ]
[ 1, 5, 12, 19, 24, 27, 28, 36, 1, 1, 6, 16, 17, 4, 7, 10, 12, 15, 18, 23, 28, 33, 35, 36, 38, 40, 40, 41, 43, 45, 48, 50, 52, 55, 57, 59, 62, 64, 4, 6, 18, 4, 8, 17, 18, 23, 25, 8, 12, 8, 11, 17, 20, 22, 23, 24, 25, 26, 27, 28, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 8, 12, 8, 12, 8, 11, 13, 14, 16, 18, 19, 20, 22, 23, 25, 8, 12, 8, 15, 17, 22, 25, 26, 27, 30, 36, 41, 42, 43, 44, 45, 46, 47, 8, 11, 12, 15, 17, 19, 28, 29, 31, 34, 35, 42, 43, 44, 45, 46, 47, 49, 53, 55, 58, 64, 65, 71, 73, 8, 12, 15, 17, 19, 26, 27, 28, 29, 30, 31, 32, 33, 34, 38, 40, 43, 49, 50, 56, 58, 59, 60, 62, 8, 12, 8, 11, 12, 13, 15, 16, 17, 19, 8, 12, 8, 15, 17, 18, 19, 8, 17, 19, 22, 8, 12, 14, 17, 23, 24, 30, 32, 12, 21, 22, 28, 29, 36, 37, 38, 39, 46, 48, 12, 19, 22, 23, 24, 26, 35, 36, 37, 38, 8, 11, 18, 20, 21, 22, 23, 12, 21, 23, 24, 25, 28, 35, 37, 38, 39, 8, 12, 8, 11, 12, 13, 15, 16, 18, 8, 12, 8, 11, 12, 15, 17, 20, 8, 11, 17, 18, 12, 15, 21, 24, 25, 26, 27, 16, 19, 20, 23, 24, 30, 31, 40, 41, 43, 46, 47, 54, 55, 56, 57, 58, 59, 62, 12, 17, 23, 26, 27, 28, 29, 16, 19, 20, 23, 24, 30, 31, 40, 41, 43, 46, 47, 54, 55, 56, 57, 58, 59, 62, 12, 16, 18, 21, 27, 28, 35, 36, 37, 38, 44, 47, 16, 19, 20, 23, 24, 30, 31, 40, 41, 43, 46, 47, 54, 55, 56, 57, 58, 59, 62, 68, 71, 72, 73, 78, 79, 80, 83, 12, 20, 21, 23, 24, 27, 28, 8, 12, 8, 11, 12, 13, 16, 8, 12, 8, 19, 21, 25, 28, 8, 15, 17, 18, 19, 8, 14, 16, 17, 18, 8, 12, 14, 17, 23, 24, 30, 32, 12, 16, 18, 21, 27, 28, 36, 37, 38, 41, 16, 27, 28, 34, 35, 36, 38, 40, 42, 49, 50, 53, 54, 57, 58, 63, 65, 16, 22, 25, 26, 27, 12, 19, 22, 31, 32, 33, 34, 8, 12, 15, 18, 21, 22, 25, 26, 12, 23, 24, 30, 31, 38, 39, 40, 41, 45, 46, 56, 59, 62, 63, 8, 12, 16, 24, 25, 29, 31, 12, 16, 12, 15, 17, 18, 19, 21, 22, 23, 25, 26, 12, 13, 15, 16, 17, 18, 12, 14, 15, 17, 18, 19, 20, 12, 16, 17, 18, 20, 21, 22, 12, 16, 17, 18, 20, 21, 22, 12, 16, 12, 15, 26, 27, 31, 32, 36, 38, 16, 23, 24, 25, 12, 17, 22, 25, 27, 29, 32, 37, 40, 43, 45, 16, 23, 24, 25, 12, 17, 22, 25, 29, 32, 37, 40, 43, 45, 16, 23, 24, 25, 12, 17, 18, 16, 23, 24, 25, 8, 12, 8, 9, 11, 12, 13, 14, 17, 8, 14, 15, 17, 19, 29, 30, 39, 40, 8, 12, 8, 14, 16, 19, 8, 12, 14, 17, 28, 29, 12, 21, 23, 27, 35, 36, 37, 38, 12, 15, 24, 27, 28, 29, 30, 16, 20, 16, 17, 20, 22, 23, 24, 26, 27, 28, 16, 20, 16, 22, 23, 29, 31, 32, 33, 34, 35, 37, 12, 17, 26, 29, 30, 31, 32, 16, 20, 16, 18, 19, 20, 21, 23, 24, 26, 27, 28, 29, 30, 30, 31, 32, 33, 35, 36, 37, 16, 20, 16, 21, 22, 24, 30, 31, 34, 37, 38, 39, 16, 21, 22, 24, 30, 31, 34, 37, 38, 39, 16, 22, 23, 29, 30, 33, 34, 35, 36, 37, 38, 39, 41, 43, 47, 48, 49, 51, 52, 57, 58, 60, 61, 62, 64, 12, 17, 26, 29, 30, 31, 32, 16, 20, 16, 18, 18, 19, 20, 21, 23, 24, 26, 27, 28, 29, 30, 32, 34, 35, 36, 37, 16, 20, 16, 21, 22, 23, 27, 28, 29, 31, 37, 38, 41, 43, 16, 19, 23, 24, 25, 27, 28, 29, 30, 20, 25, 26, 28, 30, 32, 33, 35, 37, 42, 43, 16, 21, 22, 23, 27, 28, 29, 31, 37, 38, 41, 43, 16, 19, 23, 24, 25, 27, 28, 29, 30, 20, 25, 26, 28, 30, 32, 33, 35, 37, 42, 43, 16, 22, 23, 29, 30, 33, 34, 35, 36, 37, 38, 39, 41, 43, 47, 48, 49, 51, 52, 57, 58, 60, 61, 62, 64, 12, 17, 26, 29, 30, 31, 32, 16, 20, 16, 18, 19, 20, 22, 23, 25, 27, 28, 29, 30, 31, 32, 33, 16, 20, 16, 21, 22, 26, 27, 29, 35, 36, 39, 41, 16, 19, 23, 24, 25, 20, 25, 27, 29, 31, 32, 34, 36, 41, 16, 19, 21, 24, 26, 27, 29, 20, 26, 27, 33, 34, 37, 38, 39, 40, 41, 43, 45, 49, 50, 52, 53, 56, 57, 58, 60, 16, 21, 22, 20, 26, 27, 33, 34, 37, 38, 39, 40, 41, 43, 45, 46, 47, 52, 54, 55, 56, 58, 8, 15, 21, 22, 23, 25, 26, 27 ]
83117000f5f34490cb14580a9867b1e871ccc2ae
from services.BureauActif.libbureauactif.db.Base import db, BaseModel class BureauActifCalendarDataType(db.Model, BaseModel): __tablename__ = "ba_calendar_data_type" id_calendar_data_type = db.Column( db.Integer, db.Sequence("id_calendar_data_type_sequence"), primary_key=True, autoincrement=True ) name = db.Column(db.String, nullable=False) def to_json(self, ignore_fields=None, minimal=False): if ignore_fields is None: ignore_fields = [] return super().to_json(ignore_fields=ignore_fields) @staticmethod def create_defaults(): data = BureauActifCalendarDataType() data.name = "seating" db.session.add(data) data2 = BureauActifCalendarDataType() data2.name = "standing" db.session.add(data2) data3 = BureauActifCalendarDataType() data3.name = "positionChanges" db.session.add(data3) data4 = BureauActifCalendarDataType() data4.name = "absent" db.session.add(data4) db.session.commit()
[ 1097, 6694, 51, 71, 532, 4474, 1845, 344, 51, 1379, 103, 532, 4474, 555, 344, 51, 1219, 51, 1778, 1220, 3100, 49, 3787, 1262, 499, 222, 842, 570, 532, 4474, 1845, 344, 9391, 9894, 45, 1219, 51, 1262, 49, 3787, 1262, 731, 303, 1176, 34480, 523, 299, 332, 2679, 100, 10548, 100, 624, 100, 700, 39, 303, 828, 100, 10548, 100, 624, 100, 700, 299, 3100, 51, 2154, 45, 310, 3100, 51, 3078, 49, 3100, 51, 5908, 459, 333, 100, 10548, 100, 624, 100, 700, 100, 7543, 2132, 7470, 100, 697, 66, 1844, 49, 2283, 12128, 66, 1844, 303, 848, 303, 655, 299, 3100, 51, 2154, 45, 1219, 51, 671, 49, 12610, 66, 2737, 46, 465, 684, 391, 100, 1279, 45, 803, 49, 5091, 100, 4169, 66, 2545, 49, 16644, 66, 2737, 731, 310, 434, 5091, 100, 4169, 458, 1686, 63, 343, 5091, 100, 4169, 299, 1627, 603, 461, 2615, 941, 471, 100, 1279, 45, 3634, 100, 4169, 66, 3634, 100, 4169, 46, 465, 496, 16130, 303, 684, 1506, 100, 10520, 2284, 310, 727, 299, 570, 532, 4474, 1845, 344, 9391, 9894, 365, 310, 727, 51, 444, 299, 332, 296, 1761, 39, 310, 3100, 51, 2867, 51, 688, 45, 624, 46, 603, 727, 55, 299, 570, 532, 4474, 1845, 344, 9391, 9894, 365, 310, 727, 55, 51, 444, 299, 332, 17441, 39, 310, 3100, 51, 2867, 51, 688, 45, 624, 55, 46, 603, 727, 56, 299, 570, 532, 4474, 1845, 344, 9391, 9894, 365, 310, 727, 56, 51, 444, 299, 332, 2719, 9572, 39, 310, 3100, 51, 2867, 51, 688, 45, 624, 56, 46, 603, 727, 57, 299, 570, 532, 4474, 1845, 344, 9391, 9894, 365, 310, 727, 57, 51, 444, 299, 332, 3615, 323, 39, 310, 3100, 51, 2867, 51, 688, 45, 624, 57, 46, 603, 3100, 51, 2867, 51, 3388, 365, 222 ]
[ "from", "Ġservices", ".", "B", "ure", "au", "Act", "if", ".", "lib", "b", "ure", "au", "act", "if", ".", "db", ".", "Base", "Ġimport", "Ġdb", ",", "ĠBase", "Model", "ĊĊ", "Ċ", "class", "ĠB", "ure", "au", "Act", "if", "Calendar", "DataType", "(", "db", ".", "Model", ",", "ĠBase", "Model", "):", "ĊĠĠĠ", "Ġ__", "tablename", "__", "Ġ=", "Ġ\"", "ba", "_", "calendar", "_", "data", "_", "type", "\"", "ĊĠĠĠ", "Ġid", "_", "calendar", "_", "data", "_", "type", "Ġ=", "Ġdb", ".", "Column", "(", "ĊĠĠĠĠĠĠĠ", "Ġdb", ".", "Integer", ",", "Ġdb", ".", "Sequence", "(\"", "id", "_", "calendar", "_", "data", "_", "type", "_", "sequence", "\"),", "Ġprimary", "_", "key", "=", "True", ",", "Ġauto", "increment", "=", "True", "ĊĠĠĠ", "Ġ)", "ĊĠĠĠ", "Ġname", "Ġ=", "Ġdb", ".", "Column", "(", "db", ".", "String", ",", "Ġnullable", "=", "False", ")", "ĊĊĠĠĠ", "Ġdef", "Ġto", "_", "json", "(", "self", ",", "Ġignore", "_", "fields", "=", "None", ",", "Ġminimal", "=", "False", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġignore", "_", "fields", "Ġis", "ĠNone", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġignore", "_", "fields", "Ġ=", "Ġ[]", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġsuper", "().", "to", "_", "json", "(", "ignore", "_", "fields", "=", "ignore", "_", "fields", ")", "ĊĊĠĠĠ", "Ġ@", "staticmethod", "ĊĠĠĠ", "Ġdef", "Ġcreate", "_", "defaults", "():", "ĊĠĠĠĠĠĠĠ", "Ġdata", "Ġ=", "ĠB", "ure", "au", "Act", "if", "Calendar", "DataType", "()", "ĊĠĠĠĠĠĠĠ", "Ġdata", ".", "name", "Ġ=", "Ġ\"", "se", "ating", "\"", "ĊĠĠĠĠĠĠĠ", "Ġdb", ".", "session", ".", "add", "(", "data", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġdata", "2", "Ġ=", "ĠB", "ure", "au", "Act", "if", "Calendar", "DataType", "()", "ĊĠĠĠĠĠĠĠ", "Ġdata", "2", ".", "name", "Ġ=", "Ġ\"", "standing", "\"", "ĊĠĠĠĠĠĠĠ", "Ġdb", ".", "session", ".", "add", "(", "data", "2", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġdata", "3", "Ġ=", "ĠB", "ure", "au", "Act", "if", "Calendar", "DataType", "()", "ĊĠĠĠĠĠĠĠ", "Ġdata", "3", ".", "name", "Ġ=", "Ġ\"", "position", "Changes", "\"", "ĊĠĠĠĠĠĠĠ", "Ġdb", ".", "session", ".", "add", "(", "data", "3", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġdata", "4", "Ġ=", "ĠB", "ure", "au", "Act", "if", "Calendar", "DataType", "()", "ĊĠĠĠĠĠĠĠ", "Ġdata", "4", ".", "name", "Ġ=", "Ġ\"", "abs", "ent", "\"", "ĊĠĠĠĠĠĠĠ", "Ġdb", ".", "session", ".", "add", "(", "data", "4", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġdb", ".", "session", ".", "commit", "()", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 17, 17, 17, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 35, 35, 35, 35, 35, 35, 35 ]
[ 1, 5, 14, 15, 16, 19, 21, 24, 26, 27, 30, 31, 34, 36, 39, 41, 42, 44, 45, 49, 56, 59, 60, 65, 70, 1, 1, 6, 8, 11, 13, 16, 18, 26, 34, 35, 37, 38, 43, 44, 49, 54, 56, 4, 7, 16, 18, 20, 22, 24, 25, 33, 34, 38, 39, 43, 44, 4, 7, 8, 16, 17, 21, 22, 26, 28, 31, 32, 38, 39, 8, 11, 12, 19, 20, 23, 24, 32, 34, 36, 37, 45, 46, 50, 51, 55, 56, 64, 67, 75, 76, 79, 80, 84, 85, 90, 99, 100, 104, 4, 6, 4, 9, 11, 14, 15, 21, 22, 24, 25, 31, 32, 41, 42, 47, 48, 4, 8, 11, 12, 16, 17, 21, 22, 29, 30, 36, 37, 41, 42, 50, 51, 56, 58, 8, 11, 18, 19, 25, 28, 33, 34, 12, 19, 20, 26, 28, 31, 8, 15, 21, 24, 26, 27, 31, 32, 38, 39, 45, 46, 52, 53, 59, 60, 4, 6, 18, 4, 8, 15, 16, 24, 27, 8, 13, 15, 17, 20, 22, 25, 27, 35, 43, 45, 8, 13, 14, 18, 20, 22, 24, 29, 30, 8, 11, 12, 19, 20, 23, 24, 28, 29, 8, 13, 14, 16, 18, 21, 23, 26, 28, 36, 44, 46, 8, 13, 14, 15, 19, 21, 23, 31, 32, 8, 11, 12, 19, 20, 23, 24, 28, 29, 30, 8, 13, 14, 16, 18, 21, 23, 26, 28, 36, 44, 46, 8, 13, 14, 15, 19, 21, 23, 31, 38, 39, 8, 11, 12, 19, 20, 23, 24, 28, 29, 30, 8, 13, 14, 16, 18, 21, 23, 26, 28, 36, 44, 46, 8, 13, 14, 15, 19, 21, 23, 26, 29, 30, 8, 11, 12, 19, 20, 23, 24, 28, 29, 30, 8, 11, 12, 19, 20, 26, 28 ]
4462fec6e0edc25530c93ffeeae2372c86fef2cc
import numpy as np import imutils import cv2 image = cv2.imread("D:\\Github\\python-opencv\\images\\trex.png") cv2.imshow("Original", image) cv2.waitKey(0) (h, w) = image.shape[:2] # get height and width of the image center = (w / 2, h / 2) # which point to rotate around M = cv2.getRotationMatrix2D(center, 45, 1.0) # rotation matrix rotated = cv2.warpAffine(image, M, (w, h)) # apply the rotation cv2.imshow("Rotated by 45 degrees", rotated) cv2.waitKey(0) M = cv2.getRotationMatrix2D(center, -90, 1.0) rotated = cv2.warpAffine(image, M, (w, h)) cv2.imshow("Rotated by -90 degrees", rotated) cv2.waitKey(0) rotated = imutils.rotate(image, 180) cv2.imshow("Rotated by 180", rotated) cv2.waitKey(0)
[ 485, 6610, 641, 2115, 222, 485, 3987, 2324, 222, 485, 6781, 55, 222, 222, 915, 299, 6781, 55, 51, 41190, 459, 73, 16397, 20163, 1750, 2980, 50, 16202, 1750, 2266, 1750, 5325, 125, 51, 1665, 678, 222, 4167, 55, 51, 24184, 459, 11313, 411, 1802, 46, 222, 4167, 55, 51, 1702, 971, 45, 53, 46, 222, 222, 45, 109, 49, 360, 46, 299, 1802, 51, 3299, 2934, 55, 98, 244, 607, 640, 2401, 480, 1882, 451, 341, 1802, 222, 2413, 299, 327, 124, 536, 244, 55, 49, 439, 536, 244, 55, 46, 244, 607, 1532, 2282, 391, 8731, 6857, 222, 222, 82, 299, 6781, 55, 51, 390, 10493, 4181, 55, 73, 45, 2413, 49, 244, 57, 58, 49, 244, 54, 51, 53, 46, 244, 607, 11436, 5083, 222, 5363, 751, 299, 6781, 55, 51, 24714, 35883, 45, 915, 49, 507, 49, 327, 124, 49, 439, 509, 244, 607, 4894, 341, 11436, 222, 4167, 55, 51, 24184, 459, 6742, 751, 829, 244, 57, 58, 18713, 411, 37569, 46, 222, 4167, 55, 51, 1702, 971, 45, 53, 46, 222, 222, 82, 299, 6781, 55, 51, 390, 10493, 4181, 55, 73, 45, 2413, 49, 449, 62, 53, 49, 244, 54, 51, 53, 46, 222, 5363, 751, 299, 6781, 55, 51, 24714, 35883, 45, 915, 49, 507, 49, 327, 124, 49, 439, 509, 222, 4167, 55, 51, 24184, 459, 6742, 751, 829, 449, 62, 53, 18713, 411, 37569, 46, 222, 4167, 55, 51, 1702, 971, 45, 53, 46, 222, 222, 5363, 751, 299, 3987, 2324, 51, 13072, 45, 915, 49, 244, 54, 61, 53, 46, 222, 4167, 55, 51, 24184, 459, 6742, 751, 829, 244, 54, 61, 53, 411, 37569, 46, 222, 4167, 55, 51, 1702, 971, 45, 53, 46, 222 ]
[ "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "import", "Ġim", "utils", "Ċ", "import", "Ġcv", "2", "Ċ", "Ċ", "image", "Ġ=", "Ġcv", "2", ".", "imread", "(\"", "D", ":\\\\", "Github", "\\\\", "python", "-", "opencv", "\\\\", "images", "\\\\", "tre", "x", ".", "png", "\")", "Ċ", "cv", "2", ".", "imshow", "(\"", "Original", "\",", "Ġimage", ")", "Ċ", "cv", "2", ".", "wait", "Key", "(", "0", ")", "Ċ", "Ċ", "(", "h", ",", "Ġw", ")", "Ġ=", "Ġimage", ".", "shape", "[:", "2", "]", "Ġ", "Ġ#", "Ġget", "Ġheight", "Ġand", "Ġwidth", "Ġof", "Ġthe", "Ġimage", "Ċ", "center", "Ġ=", "Ġ(", "w", "Ġ/", "Ġ", "2", ",", "Ġh", "Ġ/", "Ġ", "2", ")", "Ġ", "Ġ#", "Ġwhich", "Ġpoint", "Ġto", "Ġrotate", "Ġaround", "Ċ", "Ċ", "M", "Ġ=", "Ġcv", "2", ".", "get", "Rotation", "Matrix", "2", "D", "(", "center", ",", "Ġ", "4", "5", ",", "Ġ", "1", ".", "0", ")", "Ġ", "Ġ#", "Ġrotation", "Ġmatrix", "Ċ", "rot", "ated", "Ġ=", "Ġcv", "2", ".", "warp", "Affine", "(", "image", ",", "ĠM", ",", "Ġ(", "w", ",", "Ġh", "))", "Ġ", "Ġ#", "Ġapply", "Ġthe", "Ġrotation", "Ċ", "cv", "2", ".", "imshow", "(\"", "Rot", "ated", "Ġby", "Ġ", "4", "5", "Ġdegrees", "\",", "Ġrotated", ")", "Ċ", "cv", "2", ".", "wait", "Key", "(", "0", ")", "Ċ", "Ċ", "M", "Ġ=", "Ġcv", "2", ".", "get", "Rotation", "Matrix", "2", "D", "(", "center", ",", "Ġ-", "9", "0", ",", "Ġ", "1", ".", "0", ")", "Ċ", "rot", "ated", "Ġ=", "Ġcv", "2", ".", "warp", "Affine", "(", "image", ",", "ĠM", ",", "Ġ(", "w", ",", "Ġh", "))", "Ċ", "cv", "2", ".", "imshow", "(\"", "Rot", "ated", "Ġby", "Ġ-", "9", "0", "Ġdegrees", "\",", "Ġrotated", ")", "Ċ", "cv", "2", ".", "wait", "Key", "(", "0", ")", "Ċ", "Ċ", "rot", "ated", "Ġ=", "Ġim", "utils", ".", "rotate", "(", "image", ",", "Ġ", "1", "8", "0", ")", "Ċ", "cv", "2", ".", "imshow", "(\"", "Rot", "ated", "Ġby", "Ġ", "1", "8", "0", "\",", "Ġrotated", ")", "Ċ", "cv", "2", ".", "wait", "Key", "(", "0", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24 ]
[ 1, 7, 13, 16, 19, 1, 7, 10, 15, 1, 7, 10, 11, 1, 1, 6, 8, 11, 12, 13, 19, 21, 22, 25, 31, 33, 39, 40, 46, 48, 54, 56, 59, 60, 61, 64, 66, 1, 3, 4, 5, 11, 13, 21, 23, 29, 30, 1, 3, 4, 5, 9, 12, 13, 14, 15, 1, 1, 2, 3, 4, 6, 7, 9, 15, 16, 21, 23, 24, 25, 26, 28, 32, 39, 43, 49, 52, 56, 62, 1, 7, 9, 11, 12, 14, 15, 16, 17, 19, 21, 22, 23, 24, 25, 27, 33, 39, 42, 49, 56, 1, 1, 2, 4, 7, 8, 9, 12, 20, 26, 27, 28, 29, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 48, 57, 64, 1, 4, 8, 10, 13, 14, 15, 19, 25, 26, 31, 32, 34, 35, 37, 38, 39, 41, 43, 44, 46, 52, 56, 65, 1, 3, 4, 5, 11, 13, 16, 20, 23, 24, 25, 26, 34, 36, 44, 45, 1, 3, 4, 5, 9, 12, 13, 14, 15, 1, 1, 2, 4, 7, 8, 9, 12, 20, 26, 27, 28, 29, 35, 36, 38, 39, 40, 41, 42, 43, 44, 45, 46, 1, 4, 8, 10, 13, 14, 15, 19, 25, 26, 31, 32, 34, 35, 37, 38, 39, 41, 43, 1, 3, 4, 5, 11, 13, 16, 20, 23, 25, 26, 27, 35, 37, 45, 46, 1, 3, 4, 5, 9, 12, 13, 14, 15, 1, 1, 4, 8, 10, 13, 18, 19, 25, 26, 31, 32, 33, 34, 35, 36, 37, 1, 3, 4, 5, 11, 13, 16, 20, 23, 24, 25, 26, 27, 29, 37, 38, 1, 3, 4, 5, 9, 12, 13, 14, 15 ]
934921b22d036bd611134ce74f6eba3a2710018e
import cv2 import numpy as np result = cv2.VideoCapture(0) while True: ret, square = result.read() area = square[100:200, 100:200] cv2.imshow("video", square) cv2.imshow("video2", area) print(square) if cv2.waitKey(25) & 0xFF == ord("q"): break result.release() cv2.destroyAllWindows()
[ 485, 6781, 55, 222, 485, 6610, 641, 2115, 499, 222, 1285, 299, 6781, 55, 51, 6086, 11882, 45, 53, 46, 222, 222, 5544, 2969, 63, 303, 2170, 49, 14708, 299, 1074, 51, 870, 365, 303, 5978, 299, 14708, 96, 54, 53, 53, 63, 55, 53, 53, 49, 244, 54, 53, 53, 63, 55, 53, 53, 98, 303, 6781, 55, 51, 24184, 459, 5011, 411, 14708, 46, 303, 6781, 55, 51, 24184, 459, 5011, 55, 411, 5978, 46, 303, 1489, 45, 9732, 46, 465, 434, 6781, 55, 51, 1702, 971, 45, 55, 58, 46, 568, 244, 53, 4776, 630, 16208, 459, 118, 10320, 310, 1644, 222, 1285, 51, 3794, 365, 222, 4167, 55, 51, 6978, 1947, 2856, 365, 222 ]
[ "import", "Ġcv", "2", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "ĊĊ", "Ċ", "result", "Ġ=", "Ġcv", "2", ".", "Video", "Capture", "(", "0", ")", "Ċ", "Ċ", "while", "ĠTrue", ":", "ĊĠĠĠ", "Ġret", ",", "Ġsquare", "Ġ=", "Ġresult", ".", "read", "()", "ĊĠĠĠ", "Ġarea", "Ġ=", "Ġsquare", "[", "1", "0", "0", ":", "2", "0", "0", ",", "Ġ", "1", "0", "0", ":", "2", "0", "0", "]", "ĊĠĠĠ", "Ġcv", "2", ".", "imshow", "(\"", "video", "\",", "Ġsquare", ")", "ĊĠĠĠ", "Ġcv", "2", ".", "imshow", "(\"", "video", "2", "\",", "Ġarea", ")", "ĊĠĠĠ", "Ġprint", "(", "square", ")", "ĊĊĠĠĠ", "Ġif", "Ġcv", "2", ".", "wait", "Key", "(", "2", "5", ")", "Ġ&", "Ġ", "0", "xFF", "Ġ==", "Ġord", "(\"", "q", "\"):", "ĊĠĠĠĠĠĠĠ", "Ġbreak", "Ċ", "result", ".", "release", "()", "Ċ", "cv", "2", ".", "destroy", "All", "Windows", "()", "Ċ" ]
[ 1, 1, 1, 1, 2, 2, 2, 2, 2, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17 ]
[ 1, 7, 10, 11, 1, 7, 13, 16, 19, 1, 1, 7, 9, 12, 13, 14, 19, 26, 27, 28, 29, 1, 1, 6, 11, 12, 4, 8, 9, 16, 18, 25, 26, 30, 32, 4, 9, 11, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 4, 7, 8, 9, 15, 17, 22, 24, 31, 32, 4, 7, 8, 9, 15, 17, 22, 23, 25, 30, 31, 4, 10, 11, 17, 18, 4, 7, 10, 11, 12, 16, 19, 20, 21, 22, 23, 25, 26, 27, 30, 33, 37, 39, 40, 43, 8, 14, 1, 7, 8, 15, 17, 1, 3, 4, 5, 12, 15, 22, 24 ]
76d166bc227986863db77aa784be3de8110437ff
import logging, numpy as np, time, pandas as pd from abc import abstractmethod from kombu import binding from tqdm import tqdm from functools import lru_cache from threading import Thread from math import ceil from copy import copy from .pos import Position from .base import BaseConsumer from .event import SignalEventPct, OrderEvent from .conf import LONG, SHORT, EXIT, MKT, BUY, SELL, LOCAL_TZ from .util import clean_timestamp from .errors import OverFilling logger = logging.getLogger("Strategy") class BaseStrategy(BaseConsumer): """Strategy is an abstract base class providing an interface for all subsequent (inherited) strategy handling objects. Goal ---- The goal of a (derived) Strategy object - based on the inbound 'Tick', calcualte signals - 'Signal' is at the symbol level which will be published Note ---- This is designed to work both with historic and live data as the Strategy object is agnostic to the data source, since it obtains the 'Tick' object from MarketEvent message """ def __init__(self, symbol_list, allocation, freq, positions, start, end, warmup=0, fixed_allocation=True, batch_size=10000): """ Parameter: ---------- symbol_list (list): A list of Contract perm_tick (for data) allocation (float): Dollar amount that this strategy is able to use freq (conf.FREQ): Data Frequency type for this strategy (for data) positions (dict of dict): A dictionary with perm_tick and a dictionary of arguments - pct_portfolio (float): percentage of the allocation - rebalance (int): # of days to rebalance to pct_portfolio - hard_stop (float): hard drawdown gate to close position warmup (int): # of days to warmup the strategy env_type (string): {'BACKTEST', 'PAPPER', 'LIVE'} which environment to run the startegy start, end (datetime): Only for backtesting to specificy the range of data to test """ n = ceil(freq.one_day) num_pos = len(positions) # getting neccesary parameters self.symbol_list = symbol_list self.freq = freq self.warmup = warmup * n if start: self.start_dt = clean_timestamp(start) if end: self.end_dt = clean_timestamp(end) + pd.DateOffset(seconds=-1, days=1) # allocation parameters for tracking portfolio self.allocation = allocation self.cash = allocation self.commission = 0 self.fixed_allocation = fixed_allocation pos_dict = {} for perm_tick, v in positions.items(): # want to have position, must know its market ticks for decision if perm_tick not in self.symbol_list: self.symbol_list.append(perm_tick) pos = Position( perm_tick, pct_portfolio=v.get("pct_portfolio", 1 / num_pos), rebalance=v.get("rebalance", 0) * n, hard_stop=v.get("hard_stop", 0), ) pos_dict[perm_tick] = pos self.pos = pos_dict # starting is always 0, it will increment itself every market tick self.t = 0 self._hist = [] self.batch_size = batch_size super().__init__(comp_type="STGY", required=["feed", "exe"]) @abstractmethod def calculate_signals(self): """Provide the mechanism to calculate a list of signals""" raise NotImplementedError( "Should implement calculate_signals()\n" + "By calling this method to calculate 'Signal' Events" ) def subscriptions(self): return [ ("ack-reg-feed", self.id, self.on_ack_reg_feed), ("ack-dereg_feed", self.id, self.on_ack_dereg_feed), ("ack-reg-exe", self.id, self.on_ack_reg_exe), ("ack-dereg-exe", self.id, self.on_ack_dereg_exe), ("eod", self.id, self.on_eod), ("tick", self.id, self.on_market), ("fill", self.id, self.on_fill), ] def update_data(self, ticks): pass def on_hard_stop(self, symbol): pass def on_rebalance(self, symbol): pass def has_position(self, symbol): return self.pos[symbol].has_position def has_open_orders(self, symbol): return self.pos[symbol].has_open_orders def has_long(self, symbol): return self.pos[symbol].has_long def has_short(self, symbol): return self.pos[symbol].has_short @property def nav(self): """Net Account Value / Net Liquidating Value""" return sum(pos.mv for pos in self.pos.values()) + self.cash @property def total_cost(self): return sum(pos.cost for pos in self.pos.values()) @property def total_bp(self): if self.fixed_allocation: return self.allocation else: return self.nav @property def avaliable_bp(self): return self.total_bp - self.total_cost def start(self): while self.status != "RUNNING": time.sleep(2) # setting up progress bar self._pbar = tqdm( total=int(np.ceil(pd.bdate_range(self.start_dt, self.end_dt).size * np.ceil(self.freq.one_day))), miniters=int(np.ceil(self.freq.one_day)), unit=" tick<{}>".format(self.freq.value), ) # publish event to get started logger.info("Warming up Strategy") self.basic_publish("warmup", sender=self.id) logger.info("Really Starting up calculating Signals") self.basic_publish("next", sender=self.id) def on_ack_reg_feed(self, oid, body): self.required["feed"] = True def on_ack_reg_exe(self, oid, body): self.required["exe"] = True def on_ack_dereg_feed(self, oid, body): self.required["feed"] = False def on_ack_dereg_exe(self, oid, body): self.required["exe"] = False def on_eod(self, oid, body): """Handlering End of Data Event""" self._pbar.update(self._pbar.total - self._pbar.n) self._pbar.close() self.basic_publish("dereg-feed", sender=self.id) self.basic_publish("dereg-exe", sender=self.id) self._stop() def on_fill(self, oid, body): """Upon filled order - update strategy's position, spot position reversion - update holding time - update position quantity Parameter: ---------- fill (Fill Event) """ logger.info("Consuming filled Order") fill = body["fill"] # update the position first self.pos[fill.symbol].on_fill(fill) # getting data from the fill event Q = fill.quantity K, D, C = fill.fill_cost, fill.fill_type, fill.commission cost = D.value * K * Q self.commission += C self.cash -= cost + C def on_market(self, oid, body): """On market event - update information for each existing poistion - generate orders for rebalancing() - the strategy will calculate signal(s) - and publish them to the exchange for processing - then a "done" will be published to indicate the strategy is finish doing everything this heartbeat - so then the risk manager will collect all signals before sending order for execution Parameter: ---------- ticks (Market Event) """ if body["freq"] != self.freq: return ticks = body["ticks"] self._update_data(ticks) if self.t >= self.warmup: self._calculate_signals() # publish generated signals equity = self.total_bp bp = copy(self.avaliable_bp) # current snap_shot of buying power for S, pos in self.pos.items(): for order, lvl in pos.generate_orders(equity): used_bp = self.on_order(order, lvl, bp) bp -= used_bp # save old strategy performance history self._pbar.update(1) # if ticks.timestamp >= self.start_dt: # self.basic_publish('next', sender=self.id) if self.t >= self.warmup: self._save_positions() def on_order(self, order, lvl, bp): """Handling new order - Orders are generated from signals - will have to check currently avaliable buying power before publish Parameter: --------- order (Order Event) lvl (str): Level of urgency for the order This flag will be used to call corresponding callback bp (float): The amount of avaliable buying power Return: ------- used buying power (float) """ S = order.symbol need_bp = order.quantity * self.ticks[S].close if need_bp <= bp: # have enough buying power to place order used_bp = need_bp if lvl == "hard_stop": self.on_hard_stop(S) elif lvl == "rebalance": self.on_rebalance(S) self.pos[order.symbol].confirm_order(order) logger.info("Publish Order={} for Strategy={}".format(order, self.id)) self.basic_publish("order", sender=self.id, order=order) else: used_bp = 0 return used_bp def generate_signal(self, symbol, signal_type, **kws): """Generate a signal that will stored at Strategy level - Then all signals will be batch processed Parameter --------- symbol: str, the target symbol for the signal signal_type: {LONG, SHORT, EXIT} kws: additional arguments passes to the SignalEvent class - especially the `strength` for percentage of portfolio - if not passed, the default `pct_portfolio` will be used """ self.pos[symbol]._generate_signal(signal_type, lvl="normal", **kws) def _calculate_signals(self): # update existing position information for pos in self.pos.values(): pos._calculate_signals() self.calculate_signals() def _update_data(self, ticks): """Update the existing state of strategies - based on given market observation Note: ----- 1. It will always be called before calculating the new signal 2. this will be called no matter strategy is in warmup period or not becuase warmup period is used for gathering nessceary data """ self.ticks = ticks self.t += 1 for S, pos in self.pos.items(): pos._update_data(ticks[S]) self.update_data(ticks) def _save_positions(self): output = { "timestamp": self.ticks.timestamp, "t": self.t, "cash": self.cash, "commission": self.commission, "nav": self.nav, } for k, v in self.pos.items(): output[str(k) + "_quantity"] = v.quantity output[str(k) + "_mv"] = v.mv self._hist.append(output)
[ 485, 5751, 49, 6610, 641, 2115, 49, 1153, 49, 13247, 641, 6451, 222, 222, 1097, 20701, 1220, 5560, 1978, 222, 1097, 18845, 716, 1220, 9461, 222, 1097, 24826, 1220, 24826, 222, 1097, 35383, 1220, 475, 2965, 100, 2630, 222, 1097, 26311, 1220, 7806, 222, 1097, 7820, 1220, 35488, 222, 1097, 1948, 1220, 1948, 222, 222, 1097, 657, 985, 1220, 11943, 222, 1097, 657, 1460, 1220, 3787, 9123, 222, 1097, 657, 1585, 1220, 19549, 1167, 44214, 49, 7700, 1167, 222, 1097, 657, 2982, 1220, 27018, 49, 5324, 2442, 49, 24915, 49, 507, 26458, 49, 9038, 94, 49, 377, 36569, 49, 25711, 100, 19507, 222, 1097, 657, 1058, 1220, 5084, 100, 5627, 222, 1097, 657, 4312, 1220, 9878, 7904, 318, 222, 222, 4089, 299, 5751, 51, 10588, 459, 8095, 678, 499, 222, 842, 3787, 8095, 45, 1778, 9123, 731, 303, 1547, 8095, 458, 619, 5560, 1712, 462, 15502, 619, 2586, 456, 303, 1187, 16498, 327, 40005, 46, 13732, 9946, 4706, 51, 465, 42093, 303, 17009, 303, 906, 12327, 451, 331, 327, 34033, 46, 39210, 1319, 303, 449, 4148, 563, 341, 39134, 349, 10397, 389, 11680, 1050, 538, 20713, 303, 449, 349, 10765, 44, 458, 840, 341, 6988, 3215, 1532, 1118, 545, 9582, 465, 5857, 303, 17009, 303, 1369, 458, 15782, 391, 1409, 4354, 642, 439, 26188, 480, 10918, 727, 641, 303, 341, 39210, 1319, 458, 1917, 18240, 314, 391, 341, 727, 1932, 49, 303, 4577, 580, 3681, 1928, 341, 349, 10397, 44, 1319, 664, 24898, 1167, 1492, 303, 1547, 465, 684, 1176, 1683, 3232, 803, 49, 6988, 100, 687, 49, 18130, 49, 18815, 49, 14491, 49, 1496, 49, 962, 49, 33027, 436, 66, 53, 49, 5264, 100, 23646, 66, 1844, 49, 5334, 100, 911, 66, 54, 53, 53, 53, 53, 731, 310, 1547, 310, 10922, 63, 310, 13563, 310, 6988, 100, 687, 327, 687, 731, 418, 1168, 451, 16907, 18196, 100, 10793, 327, 999, 727, 46, 310, 18130, 327, 1832, 731, 493, 15282, 5190, 708, 477, 13732, 458, 5320, 391, 813, 310, 18815, 327, 2982, 51, 25987, 731, 2426, 42287, 847, 456, 477, 13732, 327, 999, 727, 46, 310, 14491, 327, 2734, 451, 5473, 731, 419, 418, 9575, 642, 18196, 100, 10793, 480, 331, 9575, 451, 4228, 2125, 449, 317, 307, 100, 16754, 327, 1832, 731, 17773, 451, 341, 18130, 419, 449, 334, 10427, 327, 429, 731, 607, 451, 6952, 391, 334, 10427, 391, 317, 307, 100, 16754, 419, 449, 6804, 100, 4074, 327, 1832, 731, 6804, 5194, 1772, 22030, 391, 4248, 2764, 310, 33027, 436, 327, 429, 731, 607, 451, 6952, 391, 33027, 436, 341, 13732, 310, 4550, 100, 700, 327, 819, 731, 5095, 8809, 3780, 389, 349, 85, 1910, 3703, 389, 349, 1816, 2494, 6062, 419, 1532, 4730, 391, 1441, 341, 1496, 4215, 126, 310, 1496, 49, 962, 327, 6703, 731, 419, 9303, 456, 1769, 4280, 391, 2835, 126, 341, 2189, 451, 727, 391, 913, 310, 1547, 310, 329, 299, 35488, 45, 11111, 51, 677, 100, 3386, 46, 310, 1952, 100, 985, 299, 2095, 45, 16784, 46, 603, 607, 7882, 27718, 1109, 692, 3406, 310, 649, 51, 7029, 100, 687, 299, 6988, 100, 687, 310, 649, 51, 11111, 299, 18815, 310, 649, 51, 32882, 436, 299, 33027, 436, 338, 329, 603, 434, 1496, 63, 343, 649, 51, 1384, 100, 2654, 299, 5084, 100, 5627, 45, 1384, 46, 603, 434, 962, 63, 343, 649, 51, 435, 100, 2654, 299, 5084, 100, 5627, 45, 435, 46, 494, 6451, 51, 1563, 3468, 45, 6373, 6626, 54, 49, 6952, 66, 54, 46, 603, 607, 18130, 3406, 456, 15549, 31389, 310, 649, 51, 23646, 299, 18130, 310, 649, 51, 22247, 299, 18130, 310, 649, 51, 37135, 299, 244, 53, 310, 649, 51, 8653, 100, 23646, 299, 5264, 100, 23646, 603, 3423, 100, 2734, 299, 2172, 310, 456, 18196, 100, 10793, 49, 373, 347, 14491, 51, 3053, 2284, 343, 607, 2660, 391, 1178, 2764, 49, 2315, 3722, 2840, 15985, 23571, 456, 17297, 343, 434, 18196, 100, 10793, 666, 347, 649, 51, 7029, 100, 687, 63, 419, 649, 51, 7029, 100, 687, 51, 1713, 45, 13178, 100, 10793, 46, 1083, 3423, 299, 11943, 45, 419, 18196, 100, 10793, 49, 419, 317, 307, 100, 16754, 66, 123, 51, 390, 459, 25860, 100, 16754, 411, 244, 54, 536, 1952, 100, 985, 490, 419, 334, 10427, 66, 123, 51, 390, 459, 287, 10427, 411, 244, 53, 46, 338, 329, 49, 419, 6804, 100, 4074, 66, 123, 51, 390, 459, 10071, 100, 4074, 411, 244, 53, 490, 343, 848, 343, 3423, 100, 2734, 96, 13178, 100, 10793, 98, 299, 3423, 310, 649, 51, 985, 299, 3423, 100, 2734, 603, 607, 8074, 458, 5198, 244, 53, 49, 580, 1118, 11902, 8032, 3659, 15985, 12931, 310, 649, 51, 121, 299, 244, 53, 310, 649, 1132, 15346, 299, 1627, 310, 649, 51, 4476, 100, 911, 299, 5334, 100, 911, 603, 2615, 17124, 1683, 3232, 998, 100, 700, 366, 654, 15063, 411, 2147, 18776, 6543, 411, 332, 8030, 6957, 465, 496, 37664, 303, 684, 9226, 100, 28744, 45, 803, 731, 310, 1547, 15264, 341, 17018, 391, 9226, 331, 1168, 451, 20713, 3012, 310, 3655, 22222, 45, 343, 332, 6473, 2075, 9226, 100, 28744, 37898, 115, 39, 494, 332, 1103, 8294, 477, 1431, 391, 9226, 349, 10765, 44, 17874, 39, 310, 848, 465, 684, 26975, 45, 803, 731, 310, 461, 447, 343, 2903, 478, 50, 1604, 50, 6543, 411, 649, 51, 333, 49, 649, 51, 286, 100, 478, 100, 1604, 100, 6543, 490, 343, 2903, 478, 50, 512, 4215, 100, 6543, 411, 649, 51, 333, 49, 649, 51, 286, 100, 478, 100, 512, 4215, 100, 6543, 490, 343, 2903, 478, 50, 1604, 50, 8030, 411, 649, 51, 333, 49, 649, 51, 286, 100, 478, 100, 1604, 100, 8030, 490, 343, 2903, 478, 50, 512, 4215, 50, 8030, 411, 649, 51, 333, 49, 649, 51, 286, 100, 478, 100, 512, 4215, 100, 8030, 490, 343, 2903, 106, 450, 411, 649, 51, 333, 49, 649, 51, 286, 100, 106, 450, 490, 343, 2903, 10793, 411, 649, 51, 333, 49, 649, 51, 286, 100, 12343, 490, 343, 2903, 4182, 411, 649, 51, 333, 49, 649, 51, 286, 100, 4182, 490, 310, 1499, 465, 684, 1991, 100, 624, 45, 803, 49, 23571, 731, 310, 3119, 465, 684, 563, 100, 10071, 100, 4074, 45, 803, 49, 6988, 731, 310, 3119, 465, 684, 563, 100, 287, 10427, 45, 803, 49, 6988, 731, 310, 3119, 465, 684, 1421, 100, 2719, 45, 803, 49, 6988, 731, 310, 461, 649, 51, 985, 96, 7029, 1015, 2057, 100, 2719, 465, 684, 1421, 100, 1693, 100, 10424, 45, 803, 49, 6988, 731, 310, 461, 649, 51, 985, 96, 7029, 1015, 2057, 100, 1693, 100, 10424, 465, 684, 1421, 100, 3239, 45, 803, 49, 6988, 731, 310, 461, 649, 51, 985, 96, 7029, 1015, 2057, 100, 3239, 465, 684, 1421, 100, 4036, 45, 803, 49, 6988, 731, 310, 461, 649, 51, 985, 96, 7029, 1015, 2057, 100, 4036, 465, 496, 2449, 303, 684, 7402, 45, 803, 731, 310, 1547, 3598, 9042, 3867, 536, 10866, 8110, 12630, 1761, 3867, 3012, 310, 461, 3668, 45, 985, 51, 8398, 456, 3423, 347, 649, 51, 985, 51, 2857, 1177, 494, 649, 51, 22247, 465, 496, 2449, 303, 684, 3410, 100, 8064, 45, 803, 731, 310, 461, 3668, 45, 985, 51, 8064, 456, 3423, 347, 649, 51, 985, 51, 2857, 1177, 465, 496, 2449, 303, 684, 3410, 100, 8403, 45, 803, 731, 310, 434, 649, 51, 8653, 100, 23646, 63, 343, 461, 649, 51, 23646, 310, 832, 63, 343, 461, 649, 51, 2187, 465, 496, 2449, 303, 684, 42199, 1548, 100, 8403, 45, 803, 731, 310, 461, 649, 51, 3025, 100, 8403, 449, 649, 51, 3025, 100, 8064, 465, 684, 1496, 45, 803, 731, 310, 2236, 649, 51, 1535, 882, 332, 34339, 582, 343, 1153, 51, 7860, 45, 55, 46, 603, 607, 5767, 992, 6551, 5710, 310, 649, 1132, 117, 1652, 299, 24826, 45, 343, 3410, 66, 429, 45, 2399, 51, 17741, 45, 7221, 51, 103, 787, 100, 3623, 45, 803, 51, 1384, 100, 2654, 49, 649, 51, 435, 100, 2654, 566, 911, 338, 2115, 51, 17741, 45, 803, 51, 11111, 51, 677, 100, 3386, 20131, 343, 364, 1683, 502, 66, 429, 45, 2399, 51, 17741, 45, 803, 51, 11111, 51, 677, 100, 3386, 3684, 343, 4220, 366, 12931, 65, 2561, 16642, 1664, 45, 803, 51, 11111, 51, 872, 490, 310, 848, 603, 607, 6686, 1708, 391, 640, 7326, 310, 4101, 51, 1357, 459, 92, 3932, 318, 992, 39210, 678, 310, 649, 51, 6404, 100, 7226, 459, 32882, 436, 411, 7056, 66, 803, 51, 333, 46, 310, 4101, 51, 1357, 459, 454, 1266, 23598, 992, 32912, 7443, 3561, 678, 310, 649, 51, 6404, 100, 7226, 459, 1995, 411, 7056, 66, 803, 51, 333, 46, 465, 684, 563, 100, 478, 100, 1604, 100, 6543, 45, 803, 49, 33163, 49, 3376, 731, 310, 649, 51, 3662, 1388, 6543, 1465, 299, 2969, 465, 684, 563, 100, 478, 100, 1604, 100, 8030, 45, 803, 49, 33163, 49, 3376, 731, 310, 649, 51, 3662, 1388, 8030, 1465, 299, 2969, 465, 684, 563, 100, 478, 100, 512, 4215, 100, 6543, 45, 803, 49, 33163, 49, 3376, 731, 310, 649, 51, 3662, 1388, 6543, 1465, 299, 3208, 465, 684, 563, 100, 478, 100, 512, 4215, 100, 8030, 45, 803, 49, 33163, 49, 3376, 731, 310, 649, 51, 3662, 1388, 8030, 1465, 299, 3208, 465, 684, 563, 100, 106, 450, 45, 803, 49, 33163, 49, 3376, 731, 310, 1547, 1985, 318, 4733, 451, 2426, 3916, 3012, 310, 649, 1132, 117, 1652, 51, 1896, 45, 803, 1132, 117, 1652, 51, 3025, 449, 649, 1132, 117, 1652, 51, 115, 46, 310, 649, 1132, 117, 1652, 51, 2698, 365, 603, 649, 51, 6404, 100, 7226, 459, 512, 4215, 50, 6543, 411, 7056, 66, 803, 51, 333, 46, 310, 649, 51, 6404, 100, 7226, 459, 512, 4215, 50, 8030, 411, 7056, 66, 803, 51, 333, 46, 603, 649, 1132, 4074, 365, 465, 684, 563, 100, 4182, 45, 803, 49, 33163, 49, 3376, 731, 310, 1547, 1405, 286, 15770, 2554, 310, 449, 1991, 13732, 1200, 2764, 49, 18159, 2764, 334, 1687, 310, 449, 1991, 21840, 1153, 310, 449, 1991, 2764, 15717, 603, 10922, 63, 310, 13563, 310, 5342, 327, 7904, 3916, 46, 310, 1547, 310, 4101, 51, 1357, 459, 29523, 318, 15770, 7700, 678, 310, 5342, 299, 3376, 1388, 4182, 1465, 603, 607, 1991, 341, 2764, 1950, 310, 649, 51, 985, 96, 4182, 51, 7029, 1015, 286, 100, 4182, 45, 4182, 46, 603, 607, 7882, 727, 664, 341, 5342, 1708, 310, 1931, 299, 5342, 51, 10957, 310, 1242, 49, 493, 49, 409, 299, 5342, 51, 4182, 100, 8064, 49, 5342, 51, 4182, 100, 700, 49, 5342, 51, 37135, 603, 7896, 299, 493, 51, 872, 338, 1242, 338, 1931, 603, 649, 51, 37135, 1475, 409, 310, 649, 51, 22247, 5928, 7896, 494, 409, 465, 684, 563, 100, 12343, 45, 803, 49, 33163, 49, 3376, 731, 310, 1547, 1501, 15985, 1708, 310, 449, 1991, 2490, 456, 2531, 4917, 2104, 446, 304, 310, 449, 4468, 17634, 456, 334, 46558, 365, 310, 449, 341, 13732, 1118, 9226, 7086, 45, 120, 46, 310, 449, 480, 6686, 3049, 391, 341, 15053, 456, 8220, 310, 449, 1636, 331, 332, 5099, 39, 1118, 545, 9582, 391, 14197, 419, 341, 13732, 458, 11371, 8132, 9010, 477, 39473, 310, 449, 1278, 1636, 341, 19916, 7886, 1118, 7922, 1187, 20713, 419, 2688, 11927, 2554, 456, 6111, 603, 10922, 63, 310, 13563, 310, 23571, 327, 17933, 3916, 46, 310, 1547, 310, 434, 3376, 1388, 11111, 1465, 882, 649, 51, 11111, 63, 343, 461, 603, 23571, 299, 3376, 1388, 19700, 1465, 310, 649, 1132, 1896, 100, 624, 45, 19700, 46, 603, 434, 649, 51, 121, 2394, 649, 51, 32882, 436, 63, 343, 649, 1132, 13000, 100, 28744, 365, 1083, 607, 6686, 4741, 20713, 343, 15688, 562, 299, 649, 51, 3025, 100, 8403, 343, 20057, 299, 1948, 45, 803, 51, 35613, 1548, 100, 8403, 46, 244, 607, 1565, 23572, 100, 3034, 451, 16975, 318, 7183, 343, 456, 377, 49, 3423, 347, 649, 51, 985, 51, 3053, 2284, 419, 456, 2554, 49, 41163, 347, 3423, 51, 5555, 100, 10424, 45, 23770, 562, 731, 547, 1674, 100, 8403, 299, 649, 51, 286, 100, 1191, 45, 1191, 49, 41163, 49, 20057, 46, 547, 20057, 5928, 1674, 100, 8403, 1083, 607, 4166, 3627, 13732, 7919, 8172, 343, 649, 1132, 117, 1652, 51, 1896, 45, 54, 46, 603, 607, 434, 23571, 51, 5627, 2394, 649, 51, 1384, 100, 2654, 63, 310, 607, 649, 51, 6404, 100, 7226, 482, 1995, 389, 7056, 66, 803, 51, 333, 46, 603, 434, 649, 51, 121, 2394, 649, 51, 32882, 436, 63, 343, 649, 1132, 2882, 100, 16784, 365, 465, 684, 563, 100, 1191, 45, 803, 49, 2554, 49, 41163, 49, 20057, 731, 310, 1547, 17270, 556, 2554, 310, 449, 38013, 904, 4741, 664, 20713, 310, 449, 1118, 1178, 391, 1524, 5937, 42199, 1548, 16975, 318, 7183, 2688, 6686, 603, 10922, 63, 310, 36821, 310, 2554, 327, 2888, 3916, 46, 310, 41163, 327, 484, 731, 11587, 451, 13387, 37432, 456, 341, 2554, 419, 1369, 4666, 1118, 545, 1674, 391, 1495, 8475, 3325, 310, 20057, 327, 1832, 731, 906, 5190, 451, 42199, 1548, 16975, 318, 7183, 603, 2762, 63, 310, 14786, 310, 1674, 16975, 318, 7183, 327, 1832, 46, 310, 1547, 310, 377, 299, 2554, 51, 7029, 603, 1868, 100, 8403, 299, 2554, 51, 10957, 338, 649, 51, 19700, 96, 88, 1015, 2698, 310, 434, 1868, 100, 8403, 2527, 20057, 63, 244, 607, 1178, 8473, 16975, 318, 7183, 391, 3687, 2554, 343, 1674, 100, 8403, 299, 1868, 100, 8403, 1083, 434, 41163, 630, 332, 10071, 100, 4074, 582, 419, 649, 51, 286, 100, 10071, 100, 4074, 45, 88, 46, 343, 4378, 41163, 630, 332, 287, 10427, 582, 419, 649, 51, 286, 100, 287, 10427, 45, 88, 46, 1083, 649, 51, 985, 96, 1191, 51, 7029, 1015, 8870, 100, 1191, 45, 1191, 46, 343, 4101, 51, 1357, 459, 9686, 7700, 21134, 456, 39210, 1305, 16320, 1664, 45, 1191, 49, 649, 51, 333, 509, 343, 649, 51, 6404, 100, 7226, 459, 1191, 411, 7056, 66, 803, 51, 333, 49, 2554, 66, 1191, 46, 310, 832, 63, 343, 1674, 100, 8403, 299, 244, 53, 310, 461, 1674, 100, 8403, 465, 684, 4468, 100, 7312, 45, 803, 49, 6988, 49, 7086, 100, 700, 49, 1137, 112, 3624, 731, 310, 1547, 10513, 331, 7086, 708, 1118, 7129, 840, 39210, 3215, 310, 449, 7794, 1187, 20713, 1118, 545, 5334, 11487, 603, 10922, 310, 36821, 310, 6988, 63, 615, 49, 341, 1780, 6988, 456, 341, 7086, 310, 7086, 100, 700, 63, 320, 10129, 49, 5324, 2442, 49, 24915, 130, 310, 851, 3624, 63, 5408, 4228, 18203, 391, 341, 19549, 1167, 462, 419, 449, 17615, 341, 548, 19261, 101, 456, 17773, 451, 31389, 419, 449, 434, 666, 5424, 49, 341, 1263, 548, 25860, 100, 16754, 101, 1118, 545, 1674, 310, 1547, 310, 649, 51, 985, 96, 7029, 37784, 5555, 100, 7312, 45, 7312, 100, 700, 49, 41163, 366, 4434, 411, 1137, 112, 3624, 46, 465, 684, 634, 13000, 100, 28744, 45, 803, 731, 310, 607, 1991, 4917, 2764, 2490, 310, 456, 3423, 347, 649, 51, 985, 51, 2857, 2284, 343, 3423, 1132, 13000, 100, 28744, 365, 603, 649, 51, 13000, 100, 28744, 365, 465, 684, 634, 1896, 100, 624, 45, 803, 49, 23571, 731, 310, 1547, 2346, 341, 4917, 1621, 451, 35763, 310, 449, 4148, 563, 2716, 15985, 22828, 603, 5857, 63, 310, 22257, 295, 54, 51, 2048, 1118, 5198, 545, 3845, 2688, 32912, 341, 556, 7086, 295, 55, 51, 477, 1118, 545, 3845, 1307, 15254, 13732, 458, 347, 33027, 436, 7949, 575, 666, 419, 545, 9816, 479, 33027, 436, 7949, 458, 1674, 456, 20174, 318, 329, 522, 388, 692, 727, 310, 1547, 310, 649, 51, 19700, 299, 23571, 310, 649, 51, 121, 1475, 244, 54, 603, 456, 377, 49, 3423, 347, 649, 51, 985, 51, 3053, 2284, 343, 3423, 1132, 1896, 100, 624, 45, 19700, 96, 88, 1156, 603, 649, 51, 1896, 100, 624, 45, 19700, 46, 465, 684, 634, 2882, 100, 16784, 45, 803, 731, 310, 1716, 299, 320, 343, 332, 5627, 582, 649, 51, 19700, 51, 5627, 49, 343, 332, 121, 582, 649, 51, 121, 49, 343, 332, 22247, 582, 649, 51, 22247, 49, 343, 332, 37135, 582, 649, 51, 37135, 49, 343, 332, 2187, 582, 649, 51, 2187, 49, 310, 339, 310, 456, 851, 49, 373, 347, 649, 51, 985, 51, 3053, 2284, 343, 1716, 96, 484, 45, 112, 46, 494, 7302, 10957, 1465, 299, 373, 51, 10957, 343, 1716, 96, 484, 45, 112, 46, 494, 7302, 8398, 1465, 299, 373, 51, 8398, 603, 649, 1132, 15346, 51, 1713, 45, 2051, 46, 222 ]
[ "import", "Ġlogging", ",", "Ġnumpy", "Ġas", "Ġnp", ",", "Ġtime", ",", "Ġpandas", "Ġas", "Ġpd", "Ċ", "Ċ", "from", "Ġabc", "Ġimport", "Ġabstract", "method", "Ċ", "from", "Ġkom", "bu", "Ġimport", "Ġbinding", "Ċ", "from", "Ġtqdm", "Ġimport", "Ġtqdm", "Ċ", "from", "Ġfunctools", "Ġimport", "Ġl", "ru", "_", "cache", "Ċ", "from", "Ġthreading", "Ġimport", "ĠThread", "Ċ", "from", "Ġmath", "Ġimport", "Ġceil", "Ċ", "from", "Ġcopy", "Ġimport", "Ġcopy", "Ċ", "Ċ", "from", "Ġ.", "pos", "Ġimport", "ĠPosition", "Ċ", "from", "Ġ.", "base", "Ġimport", "ĠBase", "Consumer", "Ċ", "from", "Ġ.", "event", "Ġimport", "ĠSignal", "Event", "Pct", ",", "ĠOrder", "Event", "Ċ", "from", "Ġ.", "conf", "Ġimport", "ĠLONG", ",", "ĠSH", "ORT", ",", "ĠEXIT", ",", "ĠM", "KT", ",", "ĠBU", "Y", ",", "ĠS", "ELL", ",", "ĠLOCAL", "_", "TZ", "Ċ", "from", "Ġ.", "util", "Ġimport", "Ġclean", "_", "timestamp", "Ċ", "from", "Ġ.", "errors", "Ġimport", "ĠOver", "Fill", "ing", "Ċ", "Ċ", "logger", "Ġ=", "Ġlogging", ".", "getLogger", "(\"", "Strategy", "\")", "ĊĊ", "Ċ", "class", "ĠBase", "Strategy", "(", "Base", "Consumer", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Strategy", "Ġis", "Ġan", "Ġabstract", "Ġbase", "Ġclass", "Ġproviding", "Ġan", "Ġinterface", "Ġfor", "ĊĠĠĠ", "Ġall", "Ġsubsequent", "Ġ(", "inherited", ")", "Ġstrategy", "Ġhandling", "Ġobjects", ".", "ĊĊĠĠĠ", "ĠGoal", "ĊĠĠĠ", "Ġ----", "ĊĠĠĠ", "ĠThe", "Ġgoal", "Ġof", "Ġa", "Ġ(", "derived", ")", "ĠStrategy", "Ġobject", "ĊĠĠĠ", "Ġ-", "Ġbased", "Ġon", "Ġthe", "Ġinbound", "Ġ'", "Tick", "',", "Ġcalc", "ual", "te", "Ġsignals", "ĊĠĠĠ", "Ġ-", "Ġ'", "Signal", "'", "Ġis", "Ġat", "Ġthe", "Ġsymbol", "Ġlevel", "Ġwhich", "Ġwill", "Ġbe", "Ġpublished", "ĊĊĠĠĠ", "ĠNote", "ĊĠĠĠ", "Ġ----", "ĊĠĠĠ", "ĠThis", "Ġis", "Ġdesigned", "Ġto", "Ġwork", "Ġboth", "Ġwith", "Ġh", "istoric", "Ġand", "Ġlive", "Ġdata", "Ġas", "ĊĠĠĠ", "Ġthe", "ĠStrategy", "Ġobject", "Ġis", "Ġag", "nost", "ic", "Ġto", "Ġthe", "Ġdata", "Ġsource", ",", "ĊĠĠĠ", "Ġsince", "Ġit", "Ġobt", "ains", "Ġthe", "Ġ'", "Tick", "'", "Ġobject", "Ġfrom", "ĠMarket", "Event", "Ġmessage", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġsymbol", "_", "list", ",", "Ġallocation", ",", "Ġfreq", ",", "Ġpositions", ",", "Ġstart", ",", "Ġend", ",", "Ġwarm", "up", "=", "0", ",", "Ġfixed", "_", "allocation", "=", "True", ",", "Ġbatch", "_", "size", "=", "1", "0", "0", "0", "0", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠParameter", ":", "ĊĠĠĠĠĠĠĠ", "Ġ----------", "ĊĠĠĠĠĠĠĠ", "Ġsymbol", "_", "list", "Ġ(", "list", "):", "ĠA", "Ġlist", "Ġof", "ĠContract", "Ġperm", "_", "tick", "Ġ(", "for", "Ġdata", ")", "ĊĠĠĠĠĠĠĠ", "Ġallocation", "Ġ(", "float", "):", "ĠD", "ollar", "Ġamount", "Ġthat", "Ġthis", "Ġstrategy", "Ġis", "Ġable", "Ġto", "Ġuse", "ĊĠĠĠĠĠĠĠ", "Ġfreq", "Ġ(", "conf", ".", "FREQ", "):", "ĠData", "ĠFrequency", "Ġtype", "Ġfor", "Ġthis", "Ġstrategy", "Ġ(", "for", "Ġdata", ")", "ĊĠĠĠĠĠĠĠ", "Ġpositions", "Ġ(", "dict", "Ġof", "Ġdict", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "ĠA", "Ġdictionary", "Ġwith", "Ġperm", "_", "tick", "Ġand", "Ġa", "Ġdictionary", "Ġof", "Ġarguments", "ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ-", "Ġp", "ct", "_", "portfolio", "Ġ(", "float", "):", "Ġpercentage", "Ġof", "Ġthe", "Ġallocation", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ-", "Ġre", "balance", "Ġ(", "int", "):", "Ġ#", "Ġof", "Ġdays", "Ġto", "Ġre", "balance", "Ġto", "Ġp", "ct", "_", "portfolio", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ-", "Ġhard", "_", "stop", "Ġ(", "float", "):", "Ġhard", "Ġdraw", "down", "Ġgate", "Ġto", "Ġclose", "Ġposition", "ĊĠĠĠĠĠĠĠ", "Ġwarm", "up", "Ġ(", "int", "):", "Ġ#", "Ġof", "Ġdays", "Ġto", "Ġwarm", "up", "Ġthe", "Ġstrategy", "ĊĠĠĠĠĠĠĠ", "Ġenv", "_", "type", "Ġ(", "string", "):", "Ġ{'", "BACK", "TEST", "',", "Ġ'", "P", "AP", "PER", "',", "Ġ'", "LI", "VE", "'}", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġwhich", "Ġenvironment", "Ġto", "Ġrun", "Ġthe", "Ġstart", "eg", "y", "ĊĠĠĠĠĠĠĠ", "Ġstart", ",", "Ġend", "Ġ(", "datetime", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "ĠOnly", "Ġfor", "Ġback", "testing", "Ġto", "Ġspecific", "y", "Ġthe", "Ġrange", "Ġof", "Ġdata", "Ġto", "Ġtest", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġn", "Ġ=", "Ġceil", "(", "freq", ".", "one", "_", "day", ")", "ĊĠĠĠĠĠĠĠ", "Ġnum", "_", "pos", "Ġ=", "Ġlen", "(", "positions", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "Ġgetting", "Ġnec", "ces", "ary", "Ġparameters", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "symbol", "_", "list", "Ġ=", "Ġsymbol", "_", "list", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "freq", "Ġ=", "Ġfreq", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "warm", "up", "Ġ=", "Ġwarm", "up", "Ġ*", "Ġn", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġstart", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "start", "_", "dt", "Ġ=", "Ġclean", "_", "timestamp", "(", "start", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġend", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "end", "_", "dt", "Ġ=", "Ġclean", "_", "timestamp", "(", "end", ")", "Ġ+", "Ġpd", ".", "Date", "Offset", "(", "seconds", "=-", "1", ",", "Ġdays", "=", "1", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "Ġallocation", "Ġparameters", "Ġfor", "Ġtracking", "Ġportfolio", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "allocation", "Ġ=", "Ġallocation", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "cash", "Ġ=", "Ġallocation", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "commission", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "fixed", "_", "allocation", "Ġ=", "Ġfixed", "_", "allocation", "ĊĊĠĠĠĠĠĠĠ", "Ġpos", "_", "dict", "Ġ=", "Ġ{}", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġperm", "_", "tick", ",", "Ġv", "Ġin", "Ġpositions", ".", "items", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġwant", "Ġto", "Ġhave", "Ġposition", ",", "Ġmust", "Ġknow", "Ġits", "Ġmarket", "Ġticks", "Ġfor", "Ġdecision", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġperm", "_", "tick", "Ġnot", "Ġin", "Ġself", ".", "symbol", "_", "list", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "symbol", "_", "list", ".", "append", "(", "perm", "_", "tick", ")", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpos", "Ġ=", "ĠPosition", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġperm", "_", "tick", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġp", "ct", "_", "portfolio", "=", "v", ".", "get", "(\"", "pct", "_", "portfolio", "\",", "Ġ", "1", "Ġ/", "Ġnum", "_", "pos", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġre", "balance", "=", "v", ".", "get", "(\"", "re", "balance", "\",", "Ġ", "0", ")", "Ġ*", "Ġn", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġhard", "_", "stop", "=", "v", ".", "get", "(\"", "hard", "_", "stop", "\",", "Ġ", "0", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpos", "_", "dict", "[", "perm", "_", "tick", "]", "Ġ=", "Ġpos", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "pos", "Ġ=", "Ġpos", "_", "dict", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "Ġstarting", "Ġis", "Ġalways", "Ġ", "0", ",", "Ġit", "Ġwill", "Ġincrement", "Ġitself", "Ġevery", "Ġmarket", "Ġtick", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "t", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "hist", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "batch", "_", "size", "Ġ=", "Ġbatch", "_", "size", "ĊĊĠĠĠĠĠĠĠ", "Ġsuper", "().__", "init", "__(", "comp", "_", "type", "=\"", "ST", "GY", "\",", "Ġrequired", "=[\"", "feed", "\",", "Ġ\"", "exe", "\"])", "ĊĊĠĠĠ", "Ġ@", "abstractmethod", "ĊĠĠĠ", "Ġdef", "Ġcalculate", "_", "signals", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Provide", "Ġthe", "Ġmechanism", "Ġto", "Ġcalculate", "Ġa", "Ġlist", "Ġof", "Ġsignals", "\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġraise", "ĠNotImplementedError", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "Should", "Ġimplement", "Ġcalculate", "_", "signals", "()\\", "n", "\"", "Ġ+", "Ġ\"", "By", "Ġcalling", "Ġthis", "Ġmethod", "Ġto", "Ġcalculate", "Ġ'", "Signal", "'", "ĠEvents", "\"", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĊĠĠĠ", "Ġdef", "Ġsubscriptions", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ[", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "ack", "-", "reg", "-", "feed", "\",", "Ġself", ".", "id", ",", "Ġself", ".", "on", "_", "ack", "_", "reg", "_", "feed", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "ack", "-", "der", "eg", "_", "feed", "\",", "Ġself", ".", "id", ",", "Ġself", ".", "on", "_", "ack", "_", "der", "eg", "_", "feed", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "ack", "-", "reg", "-", "exe", "\",", "Ġself", ".", "id", ",", "Ġself", ".", "on", "_", "ack", "_", "reg", "_", "exe", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "ack", "-", "der", "eg", "-", "exe", "\",", "Ġself", ".", "id", ",", "Ġself", ".", "on", "_", "ack", "_", "der", "eg", "_", "exe", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "e", "od", "\",", "Ġself", ".", "id", ",", "Ġself", ".", "on", "_", "e", "od", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "tick", "\",", "Ġself", ".", "id", ",", "Ġself", ".", "on", "_", "market", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "fill", "\",", "Ġself", ".", "id", ",", "Ġself", ".", "on", "_", "fill", "),", "ĊĠĠĠĠĠĠĠ", "Ġ]", "ĊĊĠĠĠ", "Ġdef", "Ġupdate", "_", "data", "(", "self", ",", "Ġticks", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "hard", "_", "stop", "(", "self", ",", "Ġsymbol", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "re", "balance", "(", "self", ",", "Ġsymbol", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġhas", "_", "position", "(", "self", ",", "Ġsymbol", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "pos", "[", "symbol", "].", "has", "_", "position", "ĊĊĠĠĠ", "Ġdef", "Ġhas", "_", "open", "_", "orders", "(", "self", ",", "Ġsymbol", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "pos", "[", "symbol", "].", "has", "_", "open", "_", "orders", "ĊĊĠĠĠ", "Ġdef", "Ġhas", "_", "long", "(", "self", ",", "Ġsymbol", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "pos", "[", "symbol", "].", "has", "_", "long", "ĊĊĠĠĠ", "Ġdef", "Ġhas", "_", "short", "(", "self", ",", "Ġsymbol", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "pos", "[", "symbol", "].", "has", "_", "short", "ĊĊĠĠĠ", "Ġ@", "property", "ĊĠĠĠ", "Ġdef", "Ġnav", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Net", "ĠAccount", "ĠValue", "Ġ/", "ĠNet", "ĠLi", "quid", "ating", "ĠValue", "\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġsum", "(", "pos", ".", "mv", "Ġfor", "Ġpos", "Ġin", "Ġself", ".", "pos", ".", "values", "())", "Ġ+", "Ġself", ".", "cash", "ĊĊĠĠĠ", "Ġ@", "property", "ĊĠĠĠ", "Ġdef", "Ġtotal", "_", "cost", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġsum", "(", "pos", ".", "cost", "Ġfor", "Ġpos", "Ġin", "Ġself", ".", "pos", ".", "values", "())", "ĊĊĠĠĠ", "Ġ@", "property", "ĊĠĠĠ", "Ġdef", "Ġtotal", "_", "bp", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "fixed", "_", "allocation", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "allocation", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "nav", "ĊĊĠĠĠ", "Ġ@", "property", "ĊĠĠĠ", "Ġdef", "Ġaval", "iable", "_", "bp", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "total", "_", "bp", "Ġ-", "Ġself", ".", "total", "_", "cost", "ĊĊĠĠĠ", "Ġdef", "Ġstart", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġwhile", "Ġself", ".", "status", "Ġ!=", "Ġ\"", "RUNNING", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtime", ".", "sleep", "(", "2", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "Ġsetting", "Ġup", "Ġprogress", "Ġbar", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "p", "bar", "Ġ=", "Ġtqdm", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtotal", "=", "int", "(", "np", ".", "ceil", "(", "pd", ".", "b", "date", "_", "range", "(", "self", ".", "start", "_", "dt", ",", "Ġself", ".", "end", "_", "dt", ").", "size", "Ġ*", "Ġnp", ".", "ceil", "(", "self", ".", "freq", ".", "one", "_", "day", "))),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġm", "init", "ers", "=", "int", "(", "np", ".", "ceil", "(", "self", ".", "freq", ".", "one", "_", "day", ")),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġunit", "=\"", "Ġtick", "<", "{}", ">\".", "format", "(", "self", ".", "freq", ".", "value", "),", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "Ġpublish", "Ġevent", "Ġto", "Ġget", "Ġstarted", "ĊĠĠĠĠĠĠĠ", "Ġlogger", ".", "info", "(\"", "W", "arm", "ing", "Ġup", "ĠStrategy", "\")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "basic", "_", "publish", "(\"", "warm", "up", "\",", "Ġsender", "=", "self", ".", "id", ")", "ĊĠĠĠĠĠĠĠ", "Ġlogger", ".", "info", "(\"", "Re", "ally", "ĠStarting", "Ġup", "Ġcalculating", "ĠSign", "als", "\")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "basic", "_", "publish", "(\"", "next", "\",", "Ġsender", "=", "self", ".", "id", ")", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "ack", "_", "reg", "_", "feed", "(", "self", ",", "Ġoid", ",", "Ġbody", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "required", "[\"", "feed", "\"]", "Ġ=", "ĠTrue", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "ack", "_", "reg", "_", "exe", "(", "self", ",", "Ġoid", ",", "Ġbody", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "required", "[\"", "exe", "\"]", "Ġ=", "ĠTrue", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "ack", "_", "der", "eg", "_", "feed", "(", "self", ",", "Ġoid", ",", "Ġbody", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "required", "[\"", "feed", "\"]", "Ġ=", "ĠFalse", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "ack", "_", "der", "eg", "_", "exe", "(", "self", ",", "Ġoid", ",", "Ġbody", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "required", "[\"", "exe", "\"]", "Ġ=", "ĠFalse", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "e", "od", "(", "self", ",", "Ġoid", ",", "Ġbody", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Handler", "ing", "ĠEnd", "Ġof", "ĠData", "ĠEvent", "\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "p", "bar", ".", "update", "(", "self", "._", "p", "bar", ".", "total", "Ġ-", "Ġself", "._", "p", "bar", ".", "n", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "p", "bar", ".", "close", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġself", ".", "basic", "_", "publish", "(\"", "der", "eg", "-", "feed", "\",", "Ġsender", "=", "self", ".", "id", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "basic", "_", "publish", "(\"", "der", "eg", "-", "exe", "\",", "Ġsender", "=", "self", ".", "id", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġself", "._", "stop", "()", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "fill", "(", "self", ",", "Ġoid", ",", "Ġbody", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Up", "on", "Ġfilled", "Ġorder", "ĊĠĠĠĠĠĠĠ", "Ġ-", "Ġupdate", "Ġstrategy", "'s", "Ġposition", ",", "Ġspot", "Ġposition", "Ġre", "version", "ĊĠĠĠĠĠĠĠ", "Ġ-", "Ġupdate", "Ġholding", "Ġtime", "ĊĠĠĠĠĠĠĠ", "Ġ-", "Ġupdate", "Ġposition", "Ġquantity", "ĊĊĠĠĠĠĠĠĠ", "ĠParameter", ":", "ĊĠĠĠĠĠĠĠ", "Ġ----------", "ĊĠĠĠĠĠĠĠ", "Ġfill", "Ġ(", "Fill", "ĠEvent", ")", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġlogger", ".", "info", "(\"", "Consum", "ing", "Ġfilled", "ĠOrder", "\")", "ĊĠĠĠĠĠĠĠ", "Ġfill", "Ġ=", "Ġbody", "[\"", "fill", "\"]", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "Ġupdate", "Ġthe", "Ġposition", "Ġfirst", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "pos", "[", "fill", ".", "symbol", "].", "on", "_", "fill", "(", "fill", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "Ġgetting", "Ġdata", "Ġfrom", "Ġthe", "Ġfill", "Ġevent", "ĊĠĠĠĠĠĠĠ", "ĠQ", "Ġ=", "Ġfill", ".", "quantity", "ĊĠĠĠĠĠĠĠ", "ĠK", ",", "ĠD", ",", "ĠC", "Ġ=", "Ġfill", ".", "fill", "_", "cost", ",", "Ġfill", ".", "fill", "_", "type", ",", "Ġfill", ".", "commission", "ĊĊĠĠĠĠĠĠĠ", "Ġcost", "Ġ=", "ĠD", ".", "value", "Ġ*", "ĠK", "Ġ*", "ĠQ", "ĊĊĠĠĠĠĠĠĠ", "Ġself", ".", "commission", "Ġ+=", "ĠC", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "cash", "Ġ-=", "Ġcost", "Ġ+", "ĠC", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "market", "(", "self", ",", "Ġoid", ",", "Ġbody", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "On", "Ġmarket", "Ġevent", "ĊĠĠĠĠĠĠĠ", "Ġ-", "Ġupdate", "Ġinformation", "Ġfor", "Ġeach", "Ġexisting", "Ġpo", "ist", "ion", "ĊĠĠĠĠĠĠĠ", "Ġ-", "Ġgenerate", "Ġorders", "Ġfor", "Ġre", "balancing", "()", "ĊĠĠĠĠĠĠĠ", "Ġ-", "Ġthe", "Ġstrategy", "Ġwill", "Ġcalculate", "Ġsignal", "(", "s", ")", "ĊĠĠĠĠĠĠĠ", "Ġ-", "Ġand", "Ġpublish", "Ġthem", "Ġto", "Ġthe", "Ġexchange", "Ġfor", "Ġprocessing", "ĊĠĠĠĠĠĠĠ", "Ġ-", "Ġthen", "Ġa", "Ġ\"", "done", "\"", "Ġwill", "Ġbe", "Ġpublished", "Ġto", "Ġindicate", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġthe", "Ġstrategy", "Ġis", "Ġfinish", "Ġdoing", "Ġeverything", "Ġthis", "Ġheartbeat", "ĊĠĠĠĠĠĠĠ", "Ġ-", "Ġso", "Ġthen", "Ġthe", "Ġrisk", "Ġmanager", "Ġwill", "Ġcollect", "Ġall", "Ġsignals", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġbefore", "Ġsending", "Ġorder", "Ġfor", "Ġexecution", "ĊĊĠĠĠĠĠĠĠ", "ĠParameter", ":", "ĊĠĠĠĠĠĠĠ", "Ġ----------", "ĊĠĠĠĠĠĠĠ", "Ġticks", "Ġ(", "Market", "ĠEvent", ")", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġbody", "[\"", "freq", "\"]", "Ġ!=", "Ġself", ".", "freq", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĊĊĠĠĠĠĠĠĠ", "Ġticks", "Ġ=", "Ġbody", "[\"", "ticks", "\"]", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "update", "_", "data", "(", "ticks", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "t", "Ġ>=", "Ġself", ".", "warm", "up", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", "._", "calculate", "_", "signals", "()", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġpublish", "Ġgenerated", "Ġsignals", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġequ", "ity", "Ġ=", "Ġself", ".", "total", "_", "bp", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġbp", "Ġ=", "Ġcopy", "(", "self", ".", "aval", "iable", "_", "bp", ")", "Ġ", "Ġ#", "Ġcurrent", "Ġsnap", "_", "shot", "Ġof", "Ġbuy", "ing", "Ġpower", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "ĠS", ",", "Ġpos", "Ġin", "Ġself", ".", "pos", ".", "items", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġorder", ",", "Ġlvl", "Ġin", "Ġpos", ".", "generate", "_", "orders", "(", "equ", "ity", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġused", "_", "bp", "Ġ=", "Ġself", ".", "on", "_", "order", "(", "order", ",", "Ġlvl", ",", "Ġbp", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġbp", "Ġ-=", "Ġused", "_", "bp", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġsave", "Ġold", "Ġstrategy", "Ġperformance", "Ġhistory", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", "._", "p", "bar", ".", "update", "(", "1", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "Ġif", "Ġticks", ".", "timestamp", "Ġ>=", "Ġself", ".", "start", "_", "dt", ":", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġself", ".", "basic", "_", "publish", "('", "next", "',", "Ġsender", "=", "self", ".", "id", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "t", "Ġ>=", "Ġself", ".", "warm", "up", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", "._", "save", "_", "positions", "()", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "order", "(", "self", ",", "Ġorder", ",", "Ġlvl", ",", "Ġbp", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Handling", "Ġnew", "Ġorder", "ĊĠĠĠĠĠĠĠ", "Ġ-", "ĠOrders", "Ġare", "Ġgenerated", "Ġfrom", "Ġsignals", "ĊĠĠĠĠĠĠĠ", "Ġ-", "Ġwill", "Ġhave", "Ġto", "Ġcheck", "Ġcurrently", "Ġaval", "iable", "Ġbuy", "ing", "Ġpower", "Ġbefore", "Ġpublish", "ĊĊĠĠĠĠĠĠĠ", "ĠParameter", ":", "ĊĠĠĠĠĠĠĠ", "Ġ---------", "ĊĠĠĠĠĠĠĠ", "Ġorder", "Ġ(", "Order", "ĠEvent", ")", "ĊĠĠĠĠĠĠĠ", "Ġlvl", "Ġ(", "str", "):", "ĠLevel", "Ġof", "Ġur", "gency", "Ġfor", "Ġthe", "Ġorder", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "ĠThis", "Ġflag", "Ġwill", "Ġbe", "Ġused", "Ġto", "Ġcall", "Ġcorresponding", "Ġcallback", "ĊĠĠĠĠĠĠĠ", "Ġbp", "Ġ(", "float", "):", "ĠThe", "Ġamount", "Ġof", "Ġaval", "iable", "Ġbuy", "ing", "Ġpower", "ĊĊĠĠĠĠĠĠĠ", "ĠReturn", ":", "ĊĠĠĠĠĠĠĠ", "Ġ-------", "ĊĠĠĠĠĠĠĠ", "Ġused", "Ġbuy", "ing", "Ġpower", "Ġ(", "float", ")", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠS", "Ġ=", "Ġorder", ".", "symbol", "ĊĊĠĠĠĠĠĠĠ", "Ġneed", "_", "bp", "Ġ=", "Ġorder", ".", "quantity", "Ġ*", "Ġself", ".", "ticks", "[", "S", "].", "close", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġneed", "_", "bp", "Ġ<=", "Ġbp", ":", "Ġ", "Ġ#", "Ġhave", "Ġenough", "Ġbuy", "ing", "Ġpower", "Ġto", "Ġplace", "Ġorder", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġused", "_", "bp", "Ġ=", "Ġneed", "_", "bp", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġlvl", "Ġ==", "Ġ\"", "hard", "_", "stop", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "on", "_", "hard", "_", "stop", "(", "S", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġlvl", "Ġ==", "Ġ\"", "re", "balance", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "on", "_", "re", "balance", "(", "S", ")", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "pos", "[", "order", ".", "symbol", "].", "confirm", "_", "order", "(", "order", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlogger", ".", "info", "(\"", "Publish", "ĠOrder", "={}", "Ġfor", "ĠStrategy", "={", "}\".", "format", "(", "order", ",", "Ġself", ".", "id", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "basic", "_", "publish", "(\"", "order", "\",", "Ġsender", "=", "self", ".", "id", ",", "Ġorder", "=", "order", ")", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġused", "_", "bp", "Ġ=", "Ġ", "0", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġused", "_", "bp", "ĊĊĠĠĠ", "Ġdef", "Ġgenerate", "_", "signal", "(", "self", ",", "Ġsymbol", ",", "Ġsignal", "_", "type", ",", "Ġ**", "k", "ws", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Generate", "Ġa", "Ġsignal", "Ġthat", "Ġwill", "Ġstored", "Ġat", "ĠStrategy", "Ġlevel", "ĊĠĠĠĠĠĠĠ", "Ġ-", "ĠThen", "Ġall", "Ġsignals", "Ġwill", "Ġbe", "Ġbatch", "Ġprocessed", "ĊĊĠĠĠĠĠĠĠ", "ĠParameter", "ĊĠĠĠĠĠĠĠ", "Ġ---------", "ĊĠĠĠĠĠĠĠ", "Ġsymbol", ":", "Ġstr", ",", "Ġthe", "Ġtarget", "Ġsymbol", "Ġfor", "Ġthe", "Ġsignal", "ĊĠĠĠĠĠĠĠ", "Ġsignal", "_", "type", ":", "Ġ{", "LONG", ",", "ĠSH", "ORT", ",", "ĠEXIT", "}", "ĊĠĠĠĠĠĠĠ", "Ġk", "ws", ":", "Ġadditional", "Ġarguments", "Ġpasses", "Ġto", "Ġthe", "ĠSignal", "Event", "Ġclass", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ-", "Ġespecially", "Ġthe", "Ġ`", "strength", "`", "Ġfor", "Ġpercentage", "Ġof", "Ġportfolio", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ-", "Ġif", "Ġnot", "Ġpassed", ",", "Ġthe", "Ġdefault", "Ġ`", "pct", "_", "portfolio", "`", "Ġwill", "Ġbe", "Ġused", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "pos", "[", "symbol", "]._", "generate", "_", "signal", "(", "signal", "_", "type", ",", "Ġlvl", "=\"", "normal", "\",", "Ġ**", "k", "ws", ")", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "calculate", "_", "signals", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġupdate", "Ġexisting", "Ġposition", "Ġinformation", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġpos", "Ġin", "Ġself", ".", "pos", ".", "values", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpos", "._", "calculate", "_", "signals", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġself", ".", "calculate", "_", "signals", "()", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "update", "_", "data", "(", "self", ",", "Ġticks", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Update", "Ġthe", "Ġexisting", "Ġstate", "Ġof", "Ġstrategies", "ĊĠĠĠĠĠĠĠ", "Ġ-", "Ġbased", "Ġon", "Ġgiven", "Ġmarket", "Ġobservation", "ĊĊĠĠĠĠĠĠĠ", "ĠNote", ":", "ĊĠĠĠĠĠĠĠ", "Ġ-----", "ĊĠĠĠĠĠĠĠĠ", "1", ".", "ĠIt", "Ġwill", "Ġalways", "Ġbe", "Ġcalled", "Ġbefore", "Ġcalculating", "Ġthe", "Ġnew", "Ġsignal", "ĊĠĠĠĠĠĠĠĠ", "2", ".", "Ġthis", "Ġwill", "Ġbe", "Ġcalled", "Ġno", "Ġmatter", "Ġstrategy", "Ġis", "Ġin", "Ġwarm", "up", "Ġperiod", "Ġor", "Ġnot", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġbe", "cu", "ase", "Ġwarm", "up", "Ġperiod", "Ġis", "Ġused", "Ġfor", "Ġgather", "ing", "Ġn", "ess", "ce", "ary", "Ġdata", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "ticks", "Ġ=", "Ġticks", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "t", "Ġ+=", "Ġ", "1", "ĊĊĠĠĠĠĠĠĠ", "Ġfor", "ĠS", ",", "Ġpos", "Ġin", "Ġself", ".", "pos", ".", "items", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpos", "._", "update", "_", "data", "(", "ticks", "[", "S", "])", "ĊĊĠĠĠĠĠĠĠ", "Ġself", ".", "update", "_", "data", "(", "ticks", ")", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "save", "_", "positions", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġoutput", "Ġ=", "Ġ{", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "timestamp", "\":", "Ġself", ".", "ticks", ".", "timestamp", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "t", "\":", "Ġself", ".", "t", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "cash", "\":", "Ġself", ".", "cash", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "commission", "\":", "Ġself", ".", "commission", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "nav", "\":", "Ġself", ".", "nav", ",", "ĊĠĠĠĠĠĠĠ", "Ġ}", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġk", ",", "Ġv", "Ġin", "Ġself", ".", "pos", ".", "items", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġoutput", "[", "str", "(", "k", ")", "Ġ+", "Ġ\"_", "quantity", "\"]", "Ġ=", "Ġv", ".", "quantity", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġoutput", "[", "str", "(", "k", ")", "Ġ+", "Ġ\"_", "mv", "\"]", "Ġ=", "Ġv", ".", "mv", "ĊĊĠĠĠĠĠĠĠ", "Ġself", "._", "hist", ".", "append", "(", "output", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 20, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 25, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 31, 31, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 40, 40, 40, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 102, 102, 102, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 104, 104, 106, 106, 106, 106, 106, 106, 107, 107, 107, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 115, 115, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 118, 118, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 121, 121, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 124, 124, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 138, 138, 138, 139, 139, 139, 139, 139, 139, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 143, 143, 143, 144, 144, 144, 144, 144, 144, 144, 144, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 147, 147, 147, 148, 148, 148, 148, 148, 148, 148, 148, 149, 149, 149, 149, 149, 149, 149, 149, 150, 150, 150, 150, 150, 151, 151, 151, 152, 152, 152, 152, 152, 154, 154, 154, 155, 155, 155, 155, 155, 155, 155, 155, 155, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 158, 158, 158, 158, 158, 158, 159, 159, 159, 159, 159, 159, 159, 159, 159, 160, 160, 160, 160, 160, 160, 160, 162, 162, 162, 162, 162, 162, 163, 163, 163, 163, 163, 163, 163, 163, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 167, 167, 169, 169, 169, 169, 169, 169, 169, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 176, 176, 176, 176, 176, 176, 176, 176, 176, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 179, 179, 179, 179, 179, 179, 179, 179, 179, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 182, 182, 182, 182, 182, 182, 182, 182, 182, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 185, 185, 185, 185, 185, 185, 185, 185, 185, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 188, 188, 188, 188, 188, 188, 188, 188, 188, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 190, 190, 190, 190, 190, 190, 190, 190, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 195, 195, 195, 195, 195, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 198, 198, 198, 198, 198, 198, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 200, 200, 200, 200, 200, 201, 201, 201, 201, 201, 203, 203, 203, 204, 204, 205, 205, 205, 205, 205, 205, 206, 206, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 208, 208, 208, 208, 208, 208, 208, 210, 210, 210, 210, 210, 210, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 213, 213, 213, 213, 213, 213, 213, 213, 214, 214, 214, 214, 214, 214, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 219, 219, 219, 219, 219, 219, 220, 220, 220, 220, 220, 220, 220, 220, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 223, 223, 223, 223, 223, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 225, 225, 225, 225, 225, 225, 225, 225, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 229, 229, 229, 229, 229, 229, 229, 229, 229, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 231, 231, 231, 231, 231, 231, 233, 233, 233, 234, 234, 235, 235, 235, 235, 235, 235, 236, 236, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 238, 238, 240, 240, 240, 240, 240, 240, 240, 241, 241, 241, 241, 241, 241, 241, 241, 241, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 244, 244, 244, 244, 244, 244, 244, 246, 246, 246, 246, 246, 247, 247, 247, 247, 247, 247, 247, 247, 247, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 252, 252, 252, 252, 252, 252, 254, 254, 254, 254, 254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 261, 261, 261, 261, 261, 261, 261, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 264, 264, 264, 264, 264, 265, 265, 265, 265, 265, 265, 265, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 268, 268, 268, 269, 269, 270, 270, 270, 270, 270, 270, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 275, 275, 275, 276, 276, 277, 277, 277, 277, 277, 277, 277, 277, 278, 278, 279, 279, 279, 279, 279, 279, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 283, 283, 283, 283, 283, 283, 283, 283, 285, 285, 285, 285, 285, 285, 285, 285, 285, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 287, 287, 287, 287, 287, 287, 287, 287, 288, 288, 288, 288, 288, 288, 288, 288, 288, 288, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 293, 293, 293, 294, 294, 294, 294, 294, 294, 294, 295, 295, 295, 295, 295, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 298, 298, 298, 298, 298, 298, 298, 298, 298, 298, 298, 299, 299, 299, 299, 299, 299, 299, 299, 299, 301, 301, 302, 302, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 308, 308, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 311, 311, 311, 311, 311, 311, 311, 311, 311, 312, 312, 312, 312, 312, 312, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 314, 314, 314, 314, 314, 314, 314, 316, 316, 316, 316, 316, 316, 316, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 319, 319, 319, 319, 319, 319, 319, 319, 320, 320, 320, 320, 320, 320, 320, 322, 322, 322, 323, 323, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 327, 327, 328, 328, 328, 328, 328, 328, 329, 329, 329, 329, 329, 329, 329, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 334, 334, 334, 334, 334, 334, 334, 334, 334, 336, 336, 336, 336, 336, 336, 336, 336, 336, 337, 337, 337, 337, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 339, 339, 339, 339, 339, 339, 339, 339, 340, 340, 340, 340, 340, 340, 340, 340, 341, 341, 341, 341, 341, 341, 341, 341, 342, 342, 342, 342, 342, 342, 342, 342, 343, 343, 344, 344, 344, 344, 344, 344, 344, 344, 344, 344, 344, 344, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 348, 348, 348, 348, 348, 348, 348, 348, 348 ]
[ 1, 7, 15, 16, 22, 25, 28, 29, 34, 35, 42, 45, 48, 1, 1, 5, 9, 16, 25, 31, 1, 5, 9, 11, 18, 26, 1, 5, 10, 17, 22, 1, 5, 15, 22, 24, 26, 27, 32, 1, 5, 15, 22, 29, 1, 5, 10, 17, 22, 1, 5, 10, 17, 22, 1, 1, 5, 7, 10, 17, 26, 1, 5, 7, 11, 18, 23, 31, 1, 5, 7, 12, 19, 26, 31, 34, 35, 41, 46, 1, 5, 7, 11, 18, 23, 24, 27, 30, 31, 36, 37, 39, 41, 42, 45, 46, 47, 49, 52, 53, 59, 60, 62, 1, 5, 7, 11, 18, 24, 25, 34, 1, 5, 7, 13, 20, 25, 29, 32, 1, 1, 7, 9, 17, 18, 27, 29, 37, 39, 1, 1, 6, 11, 19, 20, 24, 32, 34, 4, 8, 16, 19, 22, 31, 36, 42, 52, 55, 65, 69, 4, 8, 19, 21, 30, 31, 40, 49, 57, 58, 4, 9, 4, 9, 4, 8, 13, 16, 18, 20, 27, 28, 37, 44, 4, 6, 12, 15, 19, 27, 29, 33, 35, 40, 43, 45, 53, 4, 6, 8, 14, 15, 18, 21, 25, 32, 38, 44, 49, 52, 62, 4, 9, 4, 9, 4, 9, 12, 21, 24, 29, 34, 39, 41, 48, 52, 57, 62, 65, 4, 8, 17, 24, 27, 30, 34, 36, 39, 43, 48, 55, 56, 4, 10, 13, 17, 21, 25, 27, 31, 32, 39, 44, 51, 56, 64, 4, 8, 4, 8, 11, 15, 18, 22, 23, 30, 31, 35, 36, 47, 48, 53, 54, 64, 65, 71, 72, 76, 77, 82, 84, 85, 86, 87, 93, 94, 104, 105, 109, 110, 116, 117, 121, 122, 123, 124, 125, 126, 127, 129, 8, 12, 8, 18, 19, 8, 19, 8, 15, 16, 20, 22, 26, 28, 30, 35, 38, 47, 52, 53, 57, 59, 62, 67, 68, 8, 19, 21, 26, 28, 30, 35, 42, 47, 52, 61, 64, 69, 72, 76, 8, 13, 15, 19, 20, 24, 26, 31, 41, 46, 50, 55, 64, 66, 69, 74, 75, 8, 18, 20, 24, 27, 32, 34, 16, 18, 29, 34, 39, 40, 44, 48, 50, 61, 64, 74, 16, 18, 20, 22, 23, 32, 34, 39, 41, 52, 55, 59, 70, 16, 18, 21, 28, 30, 33, 35, 37, 40, 45, 48, 51, 58, 61, 63, 65, 66, 75, 16, 18, 23, 24, 28, 30, 35, 37, 42, 47, 51, 56, 59, 65, 74, 8, 13, 15, 17, 20, 22, 24, 27, 32, 35, 40, 42, 46, 55, 8, 12, 13, 17, 19, 25, 27, 30, 34, 38, 40, 42, 43, 45, 48, 50, 52, 54, 56, 58, 16, 22, 34, 37, 41, 45, 51, 53, 54, 8, 14, 15, 19, 21, 29, 31, 16, 21, 25, 30, 37, 40, 49, 50, 54, 60, 63, 68, 71, 76, 8, 12, 8, 10, 12, 17, 18, 22, 23, 26, 27, 30, 31, 8, 12, 13, 16, 18, 22, 23, 32, 33, 8, 10, 18, 22, 25, 28, 39, 8, 13, 14, 20, 21, 25, 27, 34, 35, 39, 8, 13, 14, 18, 20, 25, 8, 13, 14, 18, 20, 22, 27, 29, 31, 33, 8, 11, 17, 18, 12, 17, 18, 23, 24, 26, 28, 34, 35, 44, 45, 50, 51, 8, 11, 15, 16, 12, 17, 18, 21, 22, 24, 26, 32, 33, 42, 43, 46, 47, 49, 52, 53, 57, 63, 64, 71, 73, 74, 75, 80, 81, 82, 83, 8, 10, 21, 32, 36, 45, 55, 8, 13, 14, 24, 26, 37, 8, 13, 14, 18, 20, 31, 8, 13, 14, 24, 26, 27, 28, 8, 13, 14, 19, 20, 30, 32, 38, 39, 49, 8, 12, 13, 17, 19, 22, 8, 12, 17, 18, 22, 23, 25, 28, 38, 39, 44, 47, 12, 14, 19, 22, 27, 36, 37, 42, 47, 51, 58, 64, 68, 77, 12, 15, 20, 21, 25, 29, 32, 37, 38, 44, 45, 49, 50, 16, 21, 22, 28, 29, 33, 34, 40, 41, 45, 46, 50, 51, 12, 16, 18, 27, 28, 16, 21, 22, 26, 27, 16, 18, 20, 21, 30, 31, 32, 33, 36, 38, 41, 42, 51, 53, 54, 55, 57, 61, 62, 65, 67, 16, 19, 26, 27, 28, 29, 32, 34, 36, 43, 45, 46, 47, 48, 50, 52, 53, 16, 21, 22, 26, 27, 28, 29, 32, 34, 38, 39, 43, 45, 46, 47, 49, 12, 14, 12, 16, 17, 21, 22, 26, 27, 31, 32, 34, 38, 8, 13, 14, 17, 19, 23, 24, 28, 8, 10, 19, 22, 29, 30, 31, 32, 35, 40, 50, 57, 63, 70, 75, 8, 13, 14, 15, 17, 18, 19, 8, 13, 15, 19, 21, 24, 8, 13, 14, 19, 20, 24, 26, 32, 33, 37, 8, 14, 19, 23, 26, 30, 31, 35, 37, 39, 41, 43, 52, 55, 59, 61, 63, 66, 69, 4, 6, 20, 4, 8, 18, 19, 26, 27, 31, 33, 8, 12, 19, 23, 33, 36, 46, 48, 53, 56, 64, 67, 8, 14, 34, 35, 12, 14, 20, 30, 40, 41, 48, 51, 52, 53, 55, 57, 59, 67, 72, 79, 82, 92, 94, 100, 101, 108, 109, 8, 10, 4, 8, 22, 23, 27, 29, 8, 15, 17, 12, 15, 18, 19, 22, 23, 27, 29, 34, 35, 37, 38, 43, 44, 46, 47, 50, 51, 54, 55, 59, 61, 12, 15, 18, 19, 22, 24, 25, 29, 31, 36, 37, 39, 40, 45, 46, 48, 49, 52, 53, 56, 58, 59, 63, 65, 12, 15, 18, 19, 22, 23, 26, 28, 33, 34, 36, 37, 42, 43, 45, 46, 49, 50, 53, 54, 57, 59, 12, 15, 18, 19, 22, 24, 25, 28, 30, 35, 36, 38, 39, 44, 45, 47, 48, 51, 52, 55, 57, 58, 61, 63, 12, 15, 16, 18, 20, 25, 26, 28, 29, 34, 35, 37, 38, 39, 41, 43, 12, 15, 19, 21, 26, 27, 29, 30, 35, 36, 38, 39, 45, 47, 12, 15, 19, 21, 26, 27, 29, 30, 35, 36, 38, 39, 43, 45, 8, 10, 4, 8, 15, 16, 20, 21, 25, 26, 32, 34, 8, 13, 4, 8, 11, 12, 16, 17, 21, 22, 26, 27, 34, 36, 8, 13, 4, 8, 11, 12, 14, 21, 22, 26, 27, 34, 36, 8, 13, 4, 8, 12, 13, 21, 22, 26, 27, 34, 36, 8, 15, 20, 21, 24, 25, 31, 33, 36, 37, 45, 4, 8, 12, 13, 17, 18, 24, 25, 29, 30, 37, 39, 8, 15, 20, 21, 24, 25, 31, 33, 36, 37, 41, 42, 48, 4, 8, 12, 13, 17, 18, 22, 23, 30, 32, 8, 15, 20, 21, 24, 25, 31, 33, 36, 37, 41, 4, 8, 12, 13, 18, 19, 23, 24, 31, 33, 8, 15, 20, 21, 24, 25, 31, 33, 36, 37, 42, 4, 6, 14, 4, 8, 12, 13, 17, 19, 8, 12, 15, 23, 29, 31, 35, 38, 42, 47, 53, 56, 8, 15, 19, 20, 23, 24, 26, 30, 34, 37, 42, 43, 46, 47, 53, 56, 58, 63, 64, 68, 4, 6, 14, 4, 8, 14, 15, 19, 20, 24, 26, 8, 15, 19, 20, 23, 24, 28, 32, 36, 39, 44, 45, 48, 49, 55, 58, 4, 6, 14, 4, 8, 14, 15, 17, 18, 22, 24, 8, 11, 16, 17, 22, 23, 33, 34, 12, 19, 24, 25, 35, 8, 13, 14, 12, 19, 24, 25, 28, 4, 6, 14, 4, 8, 13, 18, 19, 21, 22, 26, 28, 8, 15, 20, 21, 26, 27, 29, 31, 36, 37, 42, 43, 47, 4, 8, 14, 15, 19, 21, 8, 14, 19, 20, 26, 29, 31, 38, 40, 12, 17, 18, 23, 24, 25, 26, 8, 10, 18, 21, 30, 34, 8, 13, 15, 16, 19, 21, 26, 27, 12, 18, 19, 22, 23, 25, 26, 30, 31, 33, 34, 35, 39, 40, 45, 46, 50, 51, 56, 57, 59, 60, 65, 66, 69, 70, 72, 74, 78, 80, 83, 84, 88, 89, 93, 94, 98, 99, 102, 103, 106, 110, 12, 14, 18, 21, 22, 25, 26, 28, 29, 33, 34, 38, 39, 43, 44, 47, 48, 51, 54, 12, 17, 19, 24, 25, 27, 30, 36, 37, 41, 42, 46, 47, 52, 54, 8, 10, 8, 10, 18, 24, 27, 31, 39, 8, 15, 16, 20, 22, 23, 26, 29, 32, 41, 43, 8, 13, 14, 19, 20, 27, 29, 33, 35, 37, 44, 45, 49, 50, 52, 53, 8, 15, 16, 20, 22, 24, 28, 37, 40, 52, 57, 60, 62, 8, 13, 14, 19, 20, 27, 29, 33, 35, 42, 43, 47, 48, 50, 51, 4, 8, 11, 12, 15, 16, 19, 20, 24, 25, 29, 30, 34, 35, 40, 42, 8, 13, 14, 22, 24, 28, 30, 32, 37, 4, 8, 11, 12, 15, 16, 19, 20, 23, 24, 28, 29, 33, 34, 39, 41, 8, 13, 14, 22, 24, 27, 29, 31, 36, 4, 8, 11, 12, 15, 16, 19, 21, 22, 26, 27, 31, 32, 36, 37, 42, 44, 8, 13, 14, 22, 24, 28, 30, 32, 38, 4, 8, 11, 12, 15, 16, 19, 21, 22, 25, 26, 30, 31, 35, 36, 41, 43, 8, 13, 14, 22, 24, 27, 29, 31, 37, 4, 8, 11, 12, 13, 15, 16, 20, 21, 25, 26, 31, 33, 8, 12, 19, 22, 26, 29, 34, 40, 43, 8, 13, 15, 16, 19, 20, 26, 27, 31, 33, 34, 37, 38, 43, 45, 50, 52, 53, 56, 57, 58, 59, 8, 13, 15, 16, 19, 20, 25, 27, 8, 13, 14, 19, 20, 27, 29, 32, 34, 35, 39, 41, 48, 49, 53, 54, 56, 57, 8, 13, 14, 19, 20, 27, 29, 32, 34, 35, 38, 40, 47, 48, 52, 53, 55, 56, 8, 13, 15, 19, 21, 4, 8, 11, 12, 16, 17, 21, 22, 26, 27, 32, 34, 8, 12, 14, 16, 23, 29, 8, 10, 17, 26, 28, 37, 38, 43, 52, 55, 62, 8, 10, 17, 25, 30, 8, 10, 17, 26, 35, 8, 18, 19, 8, 19, 8, 13, 15, 19, 25, 26, 8, 12, 8, 15, 16, 20, 22, 28, 31, 38, 44, 46, 8, 13, 15, 20, 22, 26, 28, 8, 10, 17, 21, 30, 36, 8, 13, 14, 17, 18, 22, 23, 29, 31, 33, 34, 38, 39, 43, 44, 8, 10, 18, 23, 28, 32, 37, 43, 8, 10, 12, 17, 18, 26, 8, 10, 11, 13, 14, 16, 18, 23, 24, 28, 29, 33, 34, 39, 40, 44, 45, 49, 50, 55, 56, 66, 8, 13, 15, 17, 18, 23, 25, 27, 29, 31, 8, 13, 14, 24, 27, 29, 8, 13, 14, 18, 21, 26, 28, 30, 4, 8, 11, 12, 18, 19, 23, 24, 28, 29, 34, 36, 8, 12, 14, 21, 27, 8, 10, 17, 29, 33, 38, 47, 50, 53, 56, 8, 10, 19, 26, 30, 33, 42, 44, 8, 10, 14, 23, 28, 38, 45, 46, 47, 48, 8, 10, 14, 22, 27, 30, 34, 43, 47, 58, 8, 10, 15, 17, 19, 23, 24, 29, 32, 42, 45, 54, 16, 20, 29, 32, 39, 45, 56, 61, 71, 8, 10, 13, 18, 22, 27, 35, 40, 48, 52, 60, 16, 23, 31, 37, 41, 51, 8, 18, 19, 8, 19, 8, 14, 16, 22, 28, 29, 8, 12, 8, 11, 16, 18, 22, 24, 27, 32, 33, 37, 38, 12, 19, 8, 14, 16, 21, 23, 28, 30, 8, 13, 15, 21, 22, 26, 27, 32, 33, 8, 11, 16, 17, 18, 21, 26, 27, 31, 33, 34, 12, 17, 19, 28, 29, 36, 38, 12, 14, 22, 32, 40, 12, 16, 19, 21, 26, 27, 32, 33, 35, 12, 15, 17, 22, 23, 27, 28, 32, 37, 38, 40, 41, 42, 44, 52, 57, 58, 62, 65, 69, 72, 78, 12, 16, 18, 19, 23, 26, 31, 32, 35, 36, 41, 44, 16, 20, 26, 27, 31, 34, 38, 39, 47, 48, 54, 55, 58, 61, 63, 20, 25, 26, 28, 30, 35, 36, 38, 39, 44, 45, 50, 51, 55, 56, 59, 60, 20, 23, 26, 31, 32, 34, 12, 14, 19, 23, 32, 44, 52, 12, 17, 19, 20, 23, 24, 30, 31, 32, 33, 8, 10, 13, 19, 20, 29, 32, 37, 38, 43, 44, 46, 47, 8, 10, 15, 16, 21, 22, 29, 31, 35, 37, 44, 45, 49, 50, 52, 53, 8, 11, 16, 17, 18, 21, 26, 27, 31, 33, 34, 12, 17, 19, 23, 24, 33, 35, 4, 8, 11, 12, 17, 18, 22, 23, 29, 30, 34, 35, 38, 40, 8, 12, 20, 24, 30, 8, 10, 17, 21, 31, 36, 44, 8, 10, 15, 20, 23, 29, 39, 44, 49, 53, 56, 62, 69, 77, 8, 18, 19, 8, 18, 8, 14, 16, 21, 27, 28, 8, 12, 14, 17, 19, 25, 28, 31, 36, 40, 44, 50, 16, 21, 26, 31, 34, 39, 42, 47, 61, 70, 8, 11, 13, 18, 20, 24, 31, 34, 39, 44, 48, 51, 57, 8, 15, 16, 8, 16, 8, 13, 17, 20, 26, 28, 33, 34, 8, 12, 8, 10, 12, 18, 19, 25, 8, 13, 14, 16, 18, 24, 25, 33, 35, 40, 41, 46, 47, 48, 50, 55, 8, 11, 16, 17, 19, 22, 25, 26, 27, 29, 34, 41, 45, 48, 54, 57, 63, 69, 12, 17, 18, 20, 22, 27, 28, 30, 12, 15, 19, 22, 24, 28, 29, 33, 35, 16, 21, 22, 24, 25, 29, 30, 34, 35, 36, 37, 12, 17, 21, 24, 26, 28, 35, 37, 16, 21, 22, 24, 25, 27, 34, 35, 36, 37, 12, 17, 18, 21, 22, 27, 28, 34, 36, 43, 44, 49, 50, 55, 56, 12, 19, 20, 24, 26, 33, 39, 42, 46, 55, 57, 60, 66, 67, 72, 73, 78, 79, 81, 83, 12, 17, 18, 23, 24, 31, 33, 38, 40, 47, 48, 52, 53, 55, 56, 62, 63, 68, 69, 8, 13, 14, 12, 17, 18, 20, 22, 23, 24, 8, 15, 20, 21, 23, 4, 8, 17, 18, 24, 25, 29, 30, 37, 38, 45, 46, 50, 51, 54, 55, 57, 59, 8, 12, 20, 22, 29, 34, 39, 46, 49, 58, 64, 8, 10, 15, 19, 27, 32, 35, 41, 51, 8, 18, 8, 18, 8, 15, 16, 20, 21, 25, 32, 39, 43, 47, 54, 8, 15, 16, 20, 21, 23, 27, 28, 31, 34, 35, 40, 41, 8, 10, 12, 13, 24, 34, 41, 44, 48, 55, 60, 66, 16, 18, 29, 33, 35, 43, 44, 48, 59, 62, 72, 16, 18, 21, 25, 32, 33, 37, 45, 47, 50, 51, 60, 61, 66, 69, 74, 8, 12, 8, 13, 14, 17, 18, 24, 27, 35, 36, 42, 43, 49, 50, 54, 55, 59, 61, 67, 69, 72, 73, 75, 76, 4, 8, 10, 19, 20, 27, 28, 32, 34, 8, 10, 17, 26, 35, 47, 8, 12, 16, 19, 24, 25, 28, 29, 35, 38, 12, 16, 18, 27, 28, 35, 37, 8, 13, 14, 23, 24, 31, 33, 4, 8, 10, 16, 17, 21, 22, 26, 27, 33, 35, 8, 12, 18, 22, 31, 37, 40, 51, 8, 10, 16, 19, 25, 32, 44, 8, 13, 14, 8, 14, 9, 10, 11, 14, 19, 26, 29, 36, 43, 55, 59, 63, 70, 9, 10, 11, 16, 21, 24, 31, 34, 41, 50, 53, 56, 61, 63, 70, 73, 77, 16, 19, 21, 24, 29, 31, 38, 41, 46, 50, 57, 60, 62, 65, 67, 70, 75, 8, 12, 8, 13, 14, 19, 21, 27, 8, 13, 14, 15, 18, 19, 20, 8, 12, 14, 15, 19, 22, 27, 28, 31, 32, 37, 40, 12, 16, 18, 24, 25, 29, 30, 35, 36, 37, 39, 8, 13, 14, 20, 21, 25, 26, 31, 32, 4, 8, 10, 14, 15, 24, 25, 29, 31, 8, 15, 17, 19, 12, 14, 23, 25, 30, 31, 36, 37, 46, 47, 12, 14, 15, 17, 22, 23, 24, 25, 12, 14, 18, 20, 25, 26, 30, 31, 12, 14, 24, 26, 31, 32, 42, 43, 12, 14, 17, 19, 24, 25, 28, 29, 8, 10, 8, 12, 14, 15, 17, 20, 25, 26, 29, 30, 35, 38, 12, 19, 20, 23, 24, 25, 26, 28, 31, 39, 41, 43, 45, 46, 54, 12, 19, 20, 23, 24, 25, 26, 28, 31, 33, 35, 37, 39, 40, 42, 8, 13, 15, 19, 20, 26, 27, 33, 34 ]
3ae0149af78216d6cc85313ebaa6f7cd99185c05
def postfix(expression): operators, stack = "+-*/", [] for item in expression.split(): if item not in operators: stack.append(item) else: operand_1, operand_2 = stack.pop(), stack.pop() stack.append(str(eval(operand_2 + item + operand_1))) return int(float(stack.pop()))
[ 610, 44981, 45, 7681, 731, 303, 15629, 49, 4154, 299, 6771, 50, 1975, 411, 1627, 303, 456, 1641, 347, 6112, 51, 3045, 2284, 310, 434, 1641, 666, 347, 15629, 63, 343, 4154, 51, 1713, 45, 1113, 46, 310, 832, 63, 343, 19229, 100, 54, 49, 19229, 100, 55, 299, 4154, 51, 3254, 1046, 4154, 51, 3254, 365, 343, 4154, 51, 1713, 45, 484, 45, 6635, 45, 14059, 100, 55, 494, 1641, 494, 19229, 100, 54, 2636, 303, 461, 648, 45, 1832, 45, 3056, 51, 3254, 5183, 222 ]
[ "def", "Ġpostfix", "(", "expression", "):", "ĊĠĠĠ", "Ġoperators", ",", "Ġstack", "Ġ=", "Ġ\"+", "-", "*/", "\",", "Ġ[]", "ĊĠĠĠ", "Ġfor", "Ġitem", "Ġin", "Ġexpression", ".", "split", "():", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġitem", "Ġnot", "Ġin", "Ġoperators", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġstack", ".", "append", "(", "item", ")", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġoperand", "_", "1", ",", "Ġoperand", "_", "2", "Ġ=", "Ġstack", ".", "pop", "(),", "Ġstack", ".", "pop", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġstack", ".", "append", "(", "str", "(", "eval", "(", "operand", "_", "2", "Ġ+", "Ġitem", "Ġ+", "Ġoperand", "_", "1", ")))", "ĊĠĠĠ", "Ġreturn", "Ġint", "(", "float", "(", "stack", ".", "pop", "()))", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9 ]
[ 1, 4, 12, 13, 23, 25, 4, 14, 15, 21, 23, 26, 27, 29, 31, 34, 4, 8, 13, 16, 27, 28, 33, 36, 8, 11, 16, 20, 23, 33, 34, 12, 18, 19, 25, 26, 30, 31, 8, 13, 14, 12, 20, 21, 22, 23, 31, 32, 33, 35, 41, 42, 45, 48, 54, 55, 58, 60, 12, 18, 19, 25, 26, 29, 30, 34, 35, 42, 43, 44, 46, 51, 53, 61, 62, 63, 66, 4, 11, 15, 16, 21, 22, 27, 28, 31, 35 ]
d95d899c6eae5a90c90d3d920ee40b38bf304805
# coding: utf-8 """ 1) Encontre em um texto os nomes próprios e os retorne em uma lista. Utilize o Regex (‘import re’) e a função findall(). Na versão básica, retorne todas as palavras que iniciam com maiúscula. 2) Apresente um plot de alguns segundos dos dados de acelerômetro do dataset: https://archive.ics.uci.edu/ml/datasets/Activity+Recognition+from+Single+Chest-Mounted+Accelerometer# Use a função read_csv() para abrir os arquivos """ if __name__ == "__main__": pass
[ 40, 10633, 63, 6471, 50, 61, 222, 3012, 222, 54, 46, 2445, 685, 287, 2667, 4225, 27566, 2355, 15443, 120, 42503, 2066, 519, 503, 2355, 2170, 290, 960, 2667, 9432, 16332, 51, 7292, 537, 356, 18035, 327, 33647, 485, 334, 2754, 46, 503, 331, 34647, 2309, 483, 941, 19843, 42558, 342, 8720, 5303, 49, 2170, 290, 960, 30272, 641, 18434, 472, 12843, 2518, 347, 9984, 424, 785, 35019, 7612, 564, 6278, 51, 3067, 55, 46, 418, 2735, 106, 4225, 7036, 428, 41123, 120, 7486, 660, 519, 13045, 12701, 428, 1449, 21863, 10212, 23850, 764, 5984, 63, 222, 662, 574, 8945, 51, 1339, 51, 46345, 51, 7619, 52, 713, 52, 15461, 52, 3697, 48, 27938, 48, 1097, 48, 6284, 48, 44808, 50, 11891, 337, 48, 14586, 36046, 40, 222, 4404, 331, 34647, 1511, 100, 4849, 365, 3925, 1419, 26271, 2355, 44839, 222, 222, 3012, 222, 222, 344, 1176, 444, 523, 630, 9609, 1850, 18021, 303, 3119, 222 ]
[ "#", "Ġcoding", ":", "Ġutf", "-", "8", "Ċ", "\"\"\"", "Ċ", "1", ")", "ĠEn", "cont", "re", "Ġem", "Ġum", "Ġtexto", "Ġos", "Ġnome", "s", "Ġpró", "pri", "os", "Ġe", "Ġos", "Ġret", "or", "ne", "Ġem", "Ġuma", "Ġlista", ".", "ĠUtil", "ize", "Ġo", "ĠRegex", "Ġ(", "âĢĺ", "import", "Ġre", "âĢĻ", ")", "Ġe", "Ġa", "Ġfunção", "Ġfind", "all", "().", "ĠNa", "Ġversão", "Ġb", "ás", "ica", ",", "Ġret", "or", "ne", "Ġtodas", "Ġas", "Ġpal", "av", "ras", "Ġque", "Ġin", "ici", "am", "Ġcom", "Ġmai", "ú", "sc", "ula", ".", "ĊĊĊ", "2", ")", "ĠA", "present", "e", "Ġum", "Ġplot", "Ġde", "Ġalgun", "s", "Ġseg", "und", "os", "Ġdos", "Ġdados", "Ġde", "Ġac", "eler", "ô", "metro", "Ġdo", "Ġdataset", ":", "Ċ", "https", "://", "archive", ".", "ics", ".", "uci", ".", "edu", "/", "ml", "/", "datasets", "/", "Activity", "+", "Recognition", "+", "from", "+", "Single", "+", "Chest", "-", "Mount", "ed", "+", "Accel", "erometer", "#", "Ċ", "Use", "Ġa", "Ġfunção", "Ġread", "_", "csv", "()", "Ġpara", "Ġab", "rir", "Ġos", "Ġarquivos", "Ċ", "Ċ", "\"\"\"", "Ċ", "Ċ", "if", "Ġ__", "name", "__", "Ġ==", "Ġ\"__", "main", "__\":", "ĊĠĠĠ", "Ġpass", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 10, 10, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13 ]
[ 1, 2, 9, 10, 14, 15, 16, 1, 4, 1, 2, 3, 6, 10, 12, 15, 18, 24, 27, 32, 33, 37, 40, 42, 44, 47, 51, 53, 55, 58, 62, 68, 69, 74, 77, 79, 85, 87, 88, 94, 97, 98, 99, 101, 103, 110, 115, 118, 121, 124, 131, 133, 135, 138, 139, 143, 145, 147, 153, 156, 160, 162, 165, 169, 172, 175, 177, 181, 185, 186, 188, 191, 192, 1, 2, 3, 5, 12, 13, 16, 21, 24, 30, 31, 35, 38, 40, 44, 50, 53, 56, 60, 61, 66, 69, 77, 78, 1, 6, 9, 16, 17, 20, 21, 24, 25, 28, 29, 31, 32, 40, 41, 49, 50, 61, 62, 66, 67, 73, 74, 79, 80, 85, 87, 88, 93, 101, 102, 1, 4, 6, 13, 18, 19, 22, 24, 29, 32, 35, 38, 47, 1, 1, 4, 1, 1, 3, 6, 10, 12, 15, 19, 23, 27, 4, 9 ]
dd7ade05ef912f7c094883507768cc21f95f31f6
""" A module for constants. """ # fin adding notes for keys and uncomment KEYS = [ "CM", "GM", # , # "DM", # "AM", # "EM", # "BM", # "FSM", # "CSM", # "Am", # "Em", # "Bm", # "FSm", # "CSm", # "GSm", # "DSm", # "ASm", ] NOTES_FOR_KEY = { "CM": [ 21, 23, 24, 26, 28, 29, 31, 33, 35, 36, 38, 40, 41, 43, 45, 47, 48, 50, 52, 53, 55, 57, 59, 60, 62, 64, 65, 67, 69, 71, 72, 74, 76, 77, 79, 81, 83, 84, 86, 88, 89, 91, 93, 95, 96, 98, 100, 101, 103, 105, 107, 108, ], "GM": [ 21, 23, 24, 26, 28, 30, 31, 33, 35, 36, 38, 40, 42, 43, 45, 47, 48, 50, 52, 54, 55, 57, 59, 60, 62, 64, 66, 67, 69, 71, 72, 74, 76, 78, 79, 81, 83, 84, 86, 88, 90, 91, 93, 95, 96, 98, 100, 102, 103, 105, 107, 108, ], "DM": [], "AM": [], "EM": [], "BM": [], "FSM": [], "CSM": [], "Am": [], "Em": [], "Bm": [], "FSm": [], "CSm": [], "GSm": [], "DSm": [], "ASm": [], } TONIC_NOTE_FOR_KEY = { "CM": 60, "GM": 67, "DM": None, "AM": None, "EM": None, "BM": None, "FSM": None, "CSM": None, "Am": None, "Em": None, "Bm": None, "FSm": None, "CSm": None, "GSm": None, "DSm": None, "ASm": None, } # add more chords later STEPS_FOR_CHORD = {"major_triad": [0, 4, 7]} # constants for value function # add more complex rewards NOTE_IN_KEY_REWARD = 1 NOTE_IN_CHORDS_REWARD = 1 SUPER_CONSONANT_INTERVAL_REWARD = 3 CONSONANT_INTERVAL_REWARD = 2 SOMEWHAT_CONSONANT_INTERVAL_REWARD = 1 DISSONANT_INTERVAL_REWARD = -2 SOMEWHAT_DISSONANT_INTERVAL_REWARD = -1 CENTRICITY_FACTOR = 1 # reward is number of times note occured before * CENTRICITY_FACTOR
[ 3012, 222, 70, 2313, 456, 12405, 51, 222, 222, 3012, 222, 222, 40, 3770, 7178, 10178, 456, 5050, 480, 39629, 222, 21784, 299, 447, 303, 332, 3123, 411, 303, 332, 15185, 411, 303, 607, 1737, 303, 607, 332, 10844, 411, 303, 607, 332, 2229, 411, 303, 607, 332, 4565, 411, 303, 607, 332, 12050, 411, 303, 607, 332, 47217, 411, 303, 607, 332, 3765, 82, 411, 303, 607, 332, 12889, 411, 303, 607, 332, 12306, 411, 303, 607, 332, 40372, 411, 303, 607, 332, 75, 6369, 411, 303, 607, 332, 3765, 114, 411, 303, 607, 332, 76, 6369, 411, 303, 607, 332, 4150, 114, 411, 303, 607, 332, 1117, 114, 411, 222, 98, 222, 222, 37525, 100, 7331, 100, 3319, 299, 320, 303, 332, 3123, 582, 447, 295, 55, 54, 49, 295, 55, 56, 49, 295, 55, 57, 49, 295, 55, 59, 49, 295, 55, 61, 49, 295, 55, 62, 49, 295, 56, 54, 49, 295, 56, 56, 49, 295, 56, 58, 49, 295, 56, 59, 49, 295, 56, 61, 49, 295, 57, 53, 49, 295, 57, 54, 49, 295, 57, 56, 49, 295, 57, 58, 49, 295, 57, 60, 49, 295, 57, 61, 49, 295, 58, 53, 49, 295, 58, 55, 49, 295, 58, 56, 49, 295, 58, 58, 49, 295, 58, 60, 49, 295, 58, 62, 49, 295, 59, 53, 49, 295, 59, 55, 49, 295, 59, 57, 49, 295, 59, 58, 49, 295, 59, 60, 49, 295, 59, 62, 49, 295, 60, 54, 49, 295, 60, 55, 49, 295, 60, 57, 49, 295, 60, 59, 49, 295, 60, 60, 49, 295, 60, 62, 49, 295, 61, 54, 49, 295, 61, 56, 49, 295, 61, 57, 49, 295, 61, 59, 49, 295, 61, 61, 49, 295, 61, 62, 49, 295, 62, 54, 49, 295, 62, 56, 49, 295, 62, 58, 49, 295, 62, 59, 49, 295, 62, 61, 49, 295, 54, 53, 53, 49, 295, 54, 53, 54, 49, 295, 54, 53, 56, 49, 295, 54, 53, 58, 49, 295, 54, 53, 60, 49, 295, 54, 53, 61, 49, 303, 2520, 303, 332, 15185, 582, 447, 295, 55, 54, 49, 295, 55, 56, 49, 295, 55, 57, 49, 295, 55, 59, 49, 295, 55, 61, 49, 295, 56, 53, 49, 295, 56, 54, 49, 295, 56, 56, 49, 295, 56, 58, 49, 295, 56, 59, 49, 295, 56, 61, 49, 295, 57, 53, 49, 295, 57, 55, 49, 295, 57, 56, 49, 295, 57, 58, 49, 295, 57, 60, 49, 295, 57, 61, 49, 295, 58, 53, 49, 295, 58, 55, 49, 295, 58, 57, 49, 295, 58, 58, 49, 295, 58, 60, 49, 295, 58, 62, 49, 295, 59, 53, 49, 295, 59, 55, 49, 295, 59, 57, 49, 295, 59, 59, 49, 295, 59, 60, 49, 295, 59, 62, 49, 295, 60, 54, 49, 295, 60, 55, 49, 295, 60, 57, 49, 295, 60, 59, 49, 295, 60, 61, 49, 295, 60, 62, 49, 295, 61, 54, 49, 295, 61, 56, 49, 295, 61, 57, 49, 295, 61, 59, 49, 295, 61, 61, 49, 295, 62, 53, 49, 295, 62, 54, 49, 295, 62, 56, 49, 295, 62, 58, 49, 295, 62, 59, 49, 295, 62, 61, 49, 295, 54, 53, 53, 49, 295, 54, 53, 55, 49, 295, 54, 53, 56, 49, 295, 54, 53, 58, 49, 295, 54, 53, 60, 49, 295, 54, 53, 61, 49, 303, 2520, 303, 332, 10844, 582, 5538, 303, 332, 2229, 582, 5538, 303, 332, 4565, 582, 5538, 303, 332, 12050, 582, 5538, 303, 332, 47217, 582, 5538, 303, 332, 3765, 82, 582, 5538, 303, 332, 12889, 582, 5538, 303, 332, 12306, 582, 5538, 303, 332, 40372, 582, 5538, 303, 332, 75, 6369, 582, 5538, 303, 332, 3765, 114, 582, 5538, 303, 332, 76, 6369, 582, 5538, 303, 332, 4150, 114, 582, 5538, 303, 332, 1117, 114, 582, 5538, 222, 130, 222, 222, 11322, 1122, 100, 10897, 100, 7331, 100, 3319, 299, 320, 303, 332, 3123, 582, 244, 59, 53, 49, 303, 332, 15185, 582, 244, 59, 60, 49, 303, 332, 10844, 582, 1686, 49, 303, 332, 2229, 582, 1686, 49, 303, 332, 4565, 582, 1686, 49, 303, 332, 12050, 582, 1686, 49, 303, 332, 47217, 582, 1686, 49, 303, 332, 3765, 82, 582, 1686, 49, 303, 332, 12889, 582, 1686, 49, 303, 332, 12306, 582, 1686, 49, 303, 332, 40372, 582, 1686, 49, 303, 332, 75, 6369, 582, 1686, 49, 303, 332, 3765, 114, 582, 1686, 49, 303, 332, 76, 6369, 582, 1686, 49, 303, 332, 4150, 114, 582, 1686, 49, 303, 332, 1117, 114, 582, 1686, 49, 222, 130, 222, 222, 40, 1035, 1851, 683, 42840, 6146, 222, 42132, 100, 7331, 100, 1424, 3083, 299, 3479, 13183, 100, 2774, 358, 582, 447, 53, 49, 244, 57, 49, 244, 60, 6690, 499, 222, 40, 12405, 456, 804, 686, 222, 40, 1035, 1851, 8667, 36077, 222, 10897, 100, 540, 100, 3319, 100, 632, 17235, 299, 244, 54, 222, 10897, 100, 540, 100, 1424, 3083, 88, 100, 632, 17235, 299, 244, 54, 222, 34842, 100, 1742, 1979, 4525, 100, 22863, 100, 632, 17235, 299, 244, 56, 222, 1742, 1979, 4525, 100, 22863, 100, 632, 17235, 299, 244, 55, 222, 3644, 1043, 11981, 741, 100, 1742, 1979, 4525, 100, 22863, 100, 632, 17235, 299, 244, 54, 222, 5988, 1979, 4525, 100, 22863, 100, 632, 17235, 299, 449, 55, 222, 3644, 1043, 11981, 741, 100, 5988, 1979, 4525, 100, 22863, 100, 632, 17235, 299, 449, 54, 222, 72, 35230, 1122, 2932, 100, 31056, 299, 244, 54, 244, 607, 18241, 458, 1470, 451, 6524, 6013, 30678, 2688, 338, 409, 35230, 1122, 2932, 100, 31056, 222 ]
[ "\"\"\"", "Ċ", "A", "Ġmodule", "Ġfor", "Ġconstants", ".", "Ċ", "Ċ", "\"\"\"", "Ċ", "Ċ", "#", "Ġfin", "Ġadding", "Ġnotes", "Ġfor", "Ġkeys", "Ġand", "Ġuncomment", "Ċ", "KEYS", "Ġ=", "Ġ[", "ĊĠĠĠ", "Ġ\"", "CM", "\",", "ĊĠĠĠ", "Ġ\"", "GM", "\",", "ĊĠĠĠ", "Ġ#", "Ġ,", "ĊĠĠĠ", "Ġ#", "Ġ\"", "DM", "\",", "ĊĠĠĠ", "Ġ#", "Ġ\"", "AM", "\",", "ĊĠĠĠ", "Ġ#", "Ġ\"", "EM", "\",", "ĊĠĠĠ", "Ġ#", "Ġ\"", "BM", "\",", "ĊĠĠĠ", "Ġ#", "Ġ\"", "FSM", "\",", "ĊĠĠĠ", "Ġ#", "Ġ\"", "CS", "M", "\",", "ĊĠĠĠ", "Ġ#", "Ġ\"", "Am", "\",", "ĊĠĠĠ", "Ġ#", "Ġ\"", "Em", "\",", "ĊĠĠĠ", "Ġ#", "Ġ\"", "Bm", "\",", "ĊĠĠĠ", "Ġ#", "Ġ\"", "F", "Sm", "\",", "ĊĠĠĠ", "Ġ#", "Ġ\"", "CS", "m", "\",", "ĊĠĠĠ", "Ġ#", "Ġ\"", "G", "Sm", "\",", "ĊĠĠĠ", "Ġ#", "Ġ\"", "DS", "m", "\",", "ĊĠĠĠ", "Ġ#", "Ġ\"", "AS", "m", "\",", "Ċ", "]", "Ċ", "Ċ", "NOTES", "_", "FOR", "_", "KEY", "Ġ=", "Ġ{", "ĊĠĠĠ", "Ġ\"", "CM", "\":", "Ġ[", "ĊĠĠĠĠĠĠĠĠ", "2", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "2", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "2", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "2", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "2", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "2", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "3", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "3", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "3", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "3", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "3", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "4", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "4", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "4", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "4", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "4", "7", ",", "ĊĠĠĠĠĠĠĠĠ", "4", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "5", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "5", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "5", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "5", "7", ",", "ĊĠĠĠĠĠĠĠĠ", "5", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "6", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "6", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "6", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "6", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "6", "7", ",", "ĊĠĠĠĠĠĠĠĠ", "6", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "7", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "7", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "7", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "7", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "7", "7", ",", "ĊĠĠĠĠĠĠĠĠ", "7", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "8", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "8", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "8", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "8", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "8", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "8", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "9", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "9", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "9", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "9", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "9", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "1", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "1", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "1", "0", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "1", "0", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "1", "0", "7", ",", "ĊĠĠĠĠĠĠĠĠ", "1", "0", "8", ",", "ĊĠĠĠ", "Ġ],", "ĊĠĠĠ", "Ġ\"", "GM", "\":", "Ġ[", "ĊĠĠĠĠĠĠĠĠ", "2", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "2", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "2", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "2", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "2", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "3", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "3", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "3", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "3", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "3", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "3", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "4", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "4", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "4", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "4", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "4", "7", ",", "ĊĠĠĠĠĠĠĠĠ", "4", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "5", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "5", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "5", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "5", "7", ",", "ĊĠĠĠĠĠĠĠĠ", "5", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "6", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "6", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "6", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "6", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "6", "7", ",", "ĊĠĠĠĠĠĠĠĠ", "6", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "7", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "7", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "7", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "7", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "7", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "7", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "8", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "8", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "8", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "8", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "8", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "9", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "9", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "9", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "9", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "9", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "9", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "1", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "1", "0", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "1", "0", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "1", "0", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "1", "0", "7", ",", "ĊĠĠĠĠĠĠĠĠ", "1", "0", "8", ",", "ĊĠĠĠ", "Ġ],", "ĊĠĠĠ", "Ġ\"", "DM", "\":", "Ġ[],", "ĊĠĠĠ", "Ġ\"", "AM", "\":", "Ġ[],", "ĊĠĠĠ", "Ġ\"", "EM", "\":", "Ġ[],", "ĊĠĠĠ", "Ġ\"", "BM", "\":", "Ġ[],", "ĊĠĠĠ", "Ġ\"", "FSM", "\":", "Ġ[],", "ĊĠĠĠ", "Ġ\"", "CS", "M", "\":", "Ġ[],", "ĊĠĠĠ", "Ġ\"", "Am", "\":", "Ġ[],", "ĊĠĠĠ", "Ġ\"", "Em", "\":", "Ġ[],", "ĊĠĠĠ", "Ġ\"", "Bm", "\":", "Ġ[],", "ĊĠĠĠ", "Ġ\"", "F", "Sm", "\":", "Ġ[],", "ĊĠĠĠ", "Ġ\"", "CS", "m", "\":", "Ġ[],", "ĊĠĠĠ", "Ġ\"", "G", "Sm", "\":", "Ġ[],", "ĊĠĠĠ", "Ġ\"", "DS", "m", "\":", "Ġ[],", "ĊĠĠĠ", "Ġ\"", "AS", "m", "\":", "Ġ[],", "Ċ", "}", "Ċ", "Ċ", "TON", "IC", "_", "NOTE", "_", "FOR", "_", "KEY", "Ġ=", "Ġ{", "ĊĠĠĠ", "Ġ\"", "CM", "\":", "Ġ", "6", "0", ",", "ĊĠĠĠ", "Ġ\"", "GM", "\":", "Ġ", "6", "7", ",", "ĊĠĠĠ", "Ġ\"", "DM", "\":", "ĠNone", ",", "ĊĠĠĠ", "Ġ\"", "AM", "\":", "ĠNone", ",", "ĊĠĠĠ", "Ġ\"", "EM", "\":", "ĠNone", ",", "ĊĠĠĠ", "Ġ\"", "BM", "\":", "ĠNone", ",", "ĊĠĠĠ", "Ġ\"", "FSM", "\":", "ĠNone", ",", "ĊĠĠĠ", "Ġ\"", "CS", "M", "\":", "ĠNone", ",", "ĊĠĠĠ", "Ġ\"", "Am", "\":", "ĠNone", ",", "ĊĠĠĠ", "Ġ\"", "Em", "\":", "ĠNone", ",", "ĊĠĠĠ", "Ġ\"", "Bm", "\":", "ĠNone", ",", "ĊĠĠĠ", "Ġ\"", "F", "Sm", "\":", "ĠNone", ",", "ĊĠĠĠ", "Ġ\"", "CS", "m", "\":", "ĠNone", ",", "ĊĠĠĠ", "Ġ\"", "G", "Sm", "\":", "ĠNone", ",", "ĊĠĠĠ", "Ġ\"", "DS", "m", "\":", "ĠNone", ",", "ĊĠĠĠ", "Ġ\"", "AS", "m", "\":", "ĠNone", ",", "Ċ", "}", "Ċ", "Ċ", "#", "Ġadd", "Ġmore", "Ġch", "ords", "Ġlater", "Ċ", "STEPS", "_", "FOR", "_", "CH", "ORD", "Ġ=", "Ġ{\"", "major", "_", "tri", "ad", "\":", "Ġ[", "0", ",", "Ġ", "4", ",", "Ġ", "7", "]}", "ĊĊ", "Ċ", "#", "Ġconstants", "Ġfor", "Ġvalue", "Ġfunction", "Ċ", "#", "Ġadd", "Ġmore", "Ġcomplex", "Ġrewards", "Ċ", "NOTE", "_", "IN", "_", "KEY", "_", "RE", "WARD", "Ġ=", "Ġ", "1", "Ċ", "NOTE", "_", "IN", "_", "CH", "ORD", "S", "_", "RE", "WARD", "Ġ=", "Ġ", "1", "Ċ", "SUPER", "_", "CON", "SON", "ANT", "_", "INTERVAL", "_", "RE", "WARD", "Ġ=", "Ġ", "3", "Ċ", "CON", "SON", "ANT", "_", "INTERVAL", "_", "RE", "WARD", "Ġ=", "Ġ", "2", "Ċ", "SO", "ME", "WH", "AT", "_", "CON", "SON", "ANT", "_", "INTERVAL", "_", "RE", "WARD", "Ġ=", "Ġ", "1", "Ċ", "DIS", "SON", "ANT", "_", "INTERVAL", "_", "RE", "WARD", "Ġ=", "Ġ-", "2", "Ċ", "SO", "ME", "WH", "AT", "_", "DIS", "SON", "ANT", "_", "INTERVAL", "_", "RE", "WARD", "Ġ=", "Ġ-", "1", "Ċ", "C", "ENTR", "IC", "ITY", "_", "FACTOR", "Ġ=", "Ġ", "1", "Ġ", "Ġ#", "Ġreward", "Ġis", "Ġnumber", "Ġof", "Ġtimes", "Ġnote", "Ġoccured", "Ġbefore", "Ġ*", "ĠC", "ENTR", "IC", "ITY", "_", "FACTOR", "Ċ" ]
[ 1, 1, 2, 2, 2, 2, 2, 2, 3, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 25, 25, 26, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 29, 29, 29, 29, 30, 30, 30, 30, 31, 31, 31, 31, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 35, 35, 35, 35, 36, 36, 36, 36, 37, 37, 37, 37, 38, 38, 38, 38, 39, 39, 39, 39, 40, 40, 40, 40, 41, 41, 41, 41, 42, 42, 42, 42, 43, 43, 43, 43, 44, 44, 44, 44, 45, 45, 45, 45, 46, 46, 46, 46, 47, 47, 47, 47, 48, 48, 48, 48, 49, 49, 49, 49, 50, 50, 50, 50, 51, 51, 51, 51, 52, 52, 52, 52, 53, 53, 53, 53, 54, 54, 54, 54, 55, 55, 55, 55, 56, 56, 56, 56, 57, 57, 57, 57, 58, 58, 58, 58, 59, 59, 59, 59, 60, 60, 60, 60, 61, 61, 61, 61, 62, 62, 62, 62, 63, 63, 63, 63, 64, 64, 64, 64, 65, 65, 65, 65, 66, 66, 66, 66, 67, 67, 67, 67, 68, 68, 68, 68, 69, 69, 69, 69, 70, 70, 70, 70, 71, 71, 71, 71, 72, 72, 72, 72, 73, 73, 73, 73, 74, 74, 74, 74, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 81, 81, 82, 82, 82, 82, 82, 83, 83, 83, 83, 84, 84, 84, 84, 85, 85, 85, 85, 86, 86, 86, 86, 87, 87, 87, 87, 88, 88, 88, 88, 89, 89, 89, 89, 90, 90, 90, 90, 91, 91, 91, 91, 92, 92, 92, 92, 93, 93, 93, 93, 94, 94, 94, 94, 95, 95, 95, 95, 96, 96, 96, 96, 97, 97, 97, 97, 98, 98, 98, 98, 99, 99, 99, 99, 100, 100, 100, 100, 101, 101, 101, 101, 102, 102, 102, 102, 103, 103, 103, 103, 104, 104, 104, 104, 105, 105, 105, 105, 106, 106, 106, 106, 107, 107, 107, 107, 108, 108, 108, 108, 109, 109, 109, 109, 110, 110, 110, 110, 111, 111, 111, 111, 112, 112, 112, 112, 113, 113, 113, 113, 114, 114, 114, 114, 115, 115, 115, 115, 116, 116, 116, 116, 117, 117, 117, 117, 118, 118, 118, 118, 119, 119, 119, 119, 120, 120, 120, 120, 121, 121, 121, 121, 122, 122, 122, 122, 123, 123, 123, 123, 124, 124, 124, 124, 125, 125, 125, 125, 126, 126, 126, 126, 127, 127, 127, 127, 128, 128, 128, 128, 129, 129, 129, 129, 129, 130, 130, 130, 130, 130, 131, 131, 131, 131, 131, 132, 132, 132, 132, 132, 133, 133, 133, 133, 133, 134, 134, 134, 134, 134, 135, 135, 136, 136, 136, 136, 136, 137, 137, 137, 137, 137, 138, 138, 138, 138, 138, 139, 139, 139, 139, 139, 140, 140, 140, 140, 140, 141, 141, 141, 141, 141, 141, 142, 142, 142, 142, 142, 143, 143, 143, 143, 143, 144, 144, 144, 144, 144, 145, 145, 145, 145, 145, 145, 146, 146, 146, 146, 146, 146, 147, 147, 147, 147, 147, 147, 148, 148, 148, 148, 148, 148, 149, 149, 149, 149, 149, 149, 150, 150, 151, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 153, 153, 153, 153, 153, 153, 153, 153, 154, 154, 154, 154, 154, 154, 154, 154, 155, 155, 155, 155, 155, 155, 156, 156, 156, 156, 156, 156, 157, 157, 157, 157, 157, 157, 158, 158, 158, 158, 158, 158, 159, 159, 159, 159, 159, 159, 160, 160, 160, 160, 160, 160, 160, 161, 161, 161, 161, 161, 161, 162, 162, 162, 162, 162, 162, 163, 163, 163, 163, 163, 163, 164, 164, 164, 164, 164, 164, 164, 165, 165, 165, 165, 165, 165, 165, 166, 166, 166, 166, 166, 166, 166, 167, 167, 167, 167, 167, 167, 167, 168, 168, 168, 168, 168, 168, 168, 169, 169, 170, 171, 171, 171, 171, 171, 171, 171, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 174, 175, 175, 175, 175, 175, 175, 176, 176, 176, 176, 176, 176, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184 ]
[ 1, 4, 1, 2, 9, 13, 23, 24, 1, 1, 4, 1, 1, 2, 6, 13, 19, 23, 28, 32, 42, 1, 5, 7, 9, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 4, 6, 8, 10, 12, 4, 6, 8, 10, 12, 4, 6, 8, 10, 12, 4, 6, 8, 10, 12, 4, 6, 8, 11, 13, 4, 6, 8, 10, 11, 13, 4, 6, 8, 10, 12, 4, 6, 8, 10, 12, 4, 6, 8, 10, 12, 4, 6, 8, 9, 11, 13, 4, 6, 8, 10, 11, 13, 4, 6, 8, 9, 11, 13, 4, 6, 8, 10, 11, 13, 4, 6, 8, 10, 11, 13, 1, 2, 1, 1, 6, 7, 10, 11, 14, 16, 18, 4, 6, 8, 10, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 13, 9, 10, 11, 12, 13, 9, 10, 11, 12, 13, 9, 10, 11, 12, 13, 9, 10, 11, 12, 13, 9, 10, 11, 12, 13, 4, 7, 4, 6, 8, 10, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 13, 9, 10, 11, 12, 13, 9, 10, 11, 12, 13, 9, 10, 11, 12, 13, 9, 10, 11, 12, 13, 9, 10, 11, 12, 13, 4, 7, 4, 6, 8, 10, 14, 4, 6, 8, 10, 14, 4, 6, 8, 10, 14, 4, 6, 8, 10, 14, 4, 6, 9, 11, 15, 4, 6, 8, 9, 11, 15, 4, 6, 8, 10, 14, 4, 6, 8, 10, 14, 4, 6, 8, 10, 14, 4, 6, 7, 9, 11, 15, 4, 6, 8, 9, 11, 15, 4, 6, 7, 9, 11, 15, 4, 6, 8, 9, 11, 15, 4, 6, 8, 9, 11, 15, 1, 2, 1, 1, 4, 6, 7, 11, 12, 15, 16, 19, 21, 23, 4, 6, 8, 10, 11, 12, 13, 14, 4, 6, 8, 10, 11, 12, 13, 14, 4, 6, 8, 10, 15, 16, 4, 6, 8, 10, 15, 16, 4, 6, 8, 10, 15, 16, 4, 6, 8, 10, 15, 16, 4, 6, 9, 11, 16, 17, 4, 6, 8, 9, 11, 16, 17, 4, 6, 8, 10, 15, 16, 4, 6, 8, 10, 15, 16, 4, 6, 8, 10, 15, 16, 4, 6, 7, 9, 11, 16, 17, 4, 6, 8, 9, 11, 16, 17, 4, 6, 7, 9, 11, 16, 17, 4, 6, 8, 9, 11, 16, 17, 4, 6, 8, 9, 11, 16, 17, 1, 2, 1, 1, 2, 6, 11, 14, 18, 24, 1, 6, 7, 10, 11, 13, 16, 18, 21, 26, 27, 30, 32, 34, 36, 37, 38, 39, 40, 41, 42, 43, 45, 1, 1, 2, 12, 16, 22, 31, 1, 2, 6, 11, 19, 27, 1, 5, 6, 8, 9, 12, 13, 15, 19, 21, 22, 23, 1, 5, 6, 8, 9, 11, 14, 15, 16, 18, 22, 24, 25, 26, 1, 6, 7, 10, 13, 16, 17, 25, 26, 28, 32, 34, 35, 36, 1, 4, 7, 10, 11, 19, 20, 22, 26, 28, 29, 30, 1, 3, 5, 7, 9, 10, 13, 16, 19, 20, 28, 29, 31, 35, 37, 38, 39, 1, 4, 7, 10, 11, 19, 20, 22, 26, 28, 30, 31, 1, 3, 5, 7, 9, 10, 13, 16, 19, 20, 28, 29, 31, 35, 37, 39, 40, 1, 2, 6, 8, 11, 12, 18, 20, 21, 22, 23, 25, 32, 35, 42, 45, 51, 56, 64, 71, 73, 75, 79, 81, 84, 85, 91 ]
0c68bd65cac3c8b9fd080900a00991b2d19260ee
from django.test import TestCase from core.factories import CompanyFactory, EmployeeFactory from core.pair_matcher import MaximumWeightGraphMatcher class PairMatcherTestCase(TestCase): def setUp(self): self.company = CompanyFactory.create() def test_simple(self): employees = EmployeeFactory.create_batch(41, company=self.company) matcher = MaximumWeightGraphMatcher() groups = matcher.match(self.company, employees) print("\n".join([",".join(e.user.username for e in group) for group in groups]))
[ 1097, 8532, 51, 881, 1220, 19189, 222, 222, 1097, 5305, 51, 42007, 1220, 16507, 2232, 49, 21658, 2232, 222, 1097, 5305, 51, 5227, 100, 16943, 1220, 18698, 7602, 3418, 11947, 499, 222, 842, 16594, 11947, 7246, 45, 7246, 731, 303, 684, 14544, 45, 803, 731, 310, 649, 51, 6611, 299, 16507, 2232, 51, 1315, 365, 465, 684, 913, 100, 6681, 45, 803, 731, 310, 28984, 299, 21658, 2232, 51, 1315, 100, 4476, 45, 57, 54, 49, 10521, 66, 803, 51, 6611, 46, 310, 20633, 299, 18698, 7602, 3418, 11947, 365, 310, 8374, 299, 20633, 51, 2892, 45, 803, 51, 6611, 49, 28984, 46, 310, 1489, 5564, 115, 2316, 2548, 2034, 1479, 51, 2548, 45, 106, 51, 514, 51, 715, 456, 503, 347, 2370, 46, 456, 2370, 347, 8374, 5310, 222 ]
[ "from", "Ġdjango", ".", "test", "Ġimport", "ĠTestCase", "Ċ", "Ċ", "from", "Ġcore", ".", "factories", "Ġimport", "ĠCompany", "Factory", ",", "ĠEmployee", "Factory", "Ċ", "from", "Ġcore", ".", "pair", "_", "matcher", "Ġimport", "ĠMaximum", "Weight", "Graph", "Matcher", "ĊĊ", "Ċ", "class", "ĠPair", "Matcher", "TestCase", "(", "TestCase", "):", "ĊĠĠĠ", "Ġdef", "ĠsetUp", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "company", "Ġ=", "ĠCompany", "Factory", ".", "create", "()", "ĊĊĠĠĠ", "Ġdef", "Ġtest", "_", "simple", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġemployees", "Ġ=", "ĠEmployee", "Factory", ".", "create", "_", "batch", "(", "4", "1", ",", "Ġcompany", "=", "self", ".", "company", ")", "ĊĠĠĠĠĠĠĠ", "Ġmatcher", "Ġ=", "ĠMaximum", "Weight", "Graph", "Matcher", "()", "ĊĠĠĠĠĠĠĠ", "Ġgroups", "Ġ=", "Ġmatcher", ".", "match", "(", "self", ".", "company", ",", "Ġemployees", ")", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"\\", "n", "\".", "join", "([", "\",\"", ".", "join", "(", "e", ".", "user", ".", "username", "Ġfor", "Ġe", "Ġin", "Ġgroup", ")", "Ġfor", "Ġgroup", "Ġin", "Ġgroups", "]))", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15 ]
[ 1, 5, 12, 13, 17, 24, 33, 1, 1, 5, 10, 11, 20, 27, 35, 42, 43, 52, 59, 1, 5, 10, 11, 15, 16, 23, 30, 38, 44, 49, 56, 1, 1, 6, 11, 18, 26, 27, 35, 37, 4, 8, 14, 15, 19, 21, 8, 13, 14, 21, 23, 31, 38, 39, 45, 47, 4, 8, 13, 14, 20, 21, 25, 27, 8, 18, 20, 29, 36, 37, 43, 44, 49, 50, 51, 52, 53, 61, 62, 66, 67, 74, 75, 8, 16, 18, 26, 32, 37, 44, 46, 8, 15, 17, 25, 26, 31, 32, 36, 37, 44, 45, 55, 56, 8, 14, 17, 18, 20, 24, 26, 29, 30, 34, 35, 36, 37, 41, 42, 50, 54, 56, 59, 65, 66, 70, 76, 79, 86, 89 ]
32ed07a89a6f929a6c4b78fd79e687b85e01015b
from flask_wtf import FlaskForm from wtforms import ( StringField, SelectField, SubmitField, PasswordField, RadioField, MultipleFileField, SubmitField, TextAreaField, ) from wtforms.fields.html5 import EmailField, TelField, DateField from wtforms.validators import DataRequired, Email, Length, InputRequired class SignUpForm(FlaskForm): id = StringField("ID*", validators=[DataRequired()]) fname = StringField("Full Name*", validators=[DataRequired()]) email = EmailField("Email Id*", validators=[DataRequired(), Email()]) password = PasswordField("Password*", validators=[DataRequired()]) contactno = TelField("Mobile No*.", validators=[DataRequired(), Length(min=10, max=10)]) design = SelectField("Designation*", choices=[("admin", "Admin"), ("stud", "Student")], validators=[DataRequired()]) submit = SubmitField("Sign Up >>") class LoginForm(FlaskForm): email = EmailField("Email Id*", validators=[DataRequired(), Email()]) password = PasswordField("Password*", validators=[DataRequired()]) design = SelectField("Designation*", choices=[("admin", "Admin"), ("stud", "Student")], validators=[DataRequired()]) submit = SubmitField("Login >>") class ForgotForm(FlaskForm): email = EmailField("Email Id*", validators=[DataRequired(), Email()]) design = SelectField("Designation*", choices=[("admin", "Admin"), ("stud", "Student")], validators=[DataRequired()]) submit = SubmitField("Change your Password") class changepassword(FlaskForm): password = PasswordField("Enter Password", validators=[DataRequired()]) submit = SubmitField("Change Password") class ComplaintForm(FlaskForm): fname = StringField("Full Name *", validators=[DataRequired()]) email = EmailField("Email Id*", validators=[DataRequired(), Email()]) date = DateField("Date", validators=[DataRequired()]) degree = SelectField("Degree*", choices=[("bachelors", "Bachelors"), ("masters", "Masters")], validators=[DataRequired()]) semester = SelectField( "Semester*", choices=[ ("first", "First"), ("second", "Second"), ("third", "Third"), ("fourth", "Fourth"), ("fifth", "Fifth"), ("sixth", "Sixth"), ("seventh", "Seventh"), ("eighth", "Eighth"), ], validators=[DataRequired()], ) complaintcategory = SelectField( "Complain Category*", choices=[ ("infrastructure", "Infrastructure"), ("accounts", "Accounts"), ("academics", "Academics"), ("management", "Management"), ("faculty", "Faculty"), ("library", "Library"), ], validators=[DataRequired()], ) message = TextAreaField("Enter Complain Details", validators=[DataRequired(), Length(max=100)]) # file = MultipleFileField(u'Upload File') submit = SubmitField("Submit") class complaint_status(FlaskForm): status = SelectField( "Complaint Status", choices=[("Pending", "Pending"), ("Under Review", "Under Review"), ("Resolved", "Resolved")] ) submit = SubmitField("Update")
[ 1097, 18958, 100, 124, 4274, 1220, 24033, 1260, 222, 1097, 35648, 8543, 1220, 327, 303, 910, 1195, 49, 303, 6629, 1195, 49, 303, 22878, 1195, 49, 303, 12576, 1195, 49, 303, 24549, 1195, 49, 303, 21205, 991, 1195, 49, 303, 22878, 1195, 49, 303, 3336, 5585, 1195, 49, 222, 46, 222, 1097, 35648, 8543, 51, 4169, 51, 935, 58, 1220, 10028, 1195, 49, 413, 361, 1195, 49, 2833, 1195, 222, 1097, 35648, 8543, 51, 24878, 1220, 2426, 5425, 49, 10028, 49, 16827, 49, 4257, 5425, 499, 222, 842, 7443, 1405, 1260, 45, 43686, 1260, 731, 303, 828, 299, 910, 1195, 459, 798, 37201, 27948, 6094, 768, 5425, 28160, 303, 18260, 299, 910, 1195, 459, 4737, 3286, 37201, 27948, 6094, 768, 5425, 28160, 303, 4111, 299, 10028, 1195, 459, 4490, 4949, 37201, 27948, 6094, 768, 5425, 1046, 10028, 28160, 303, 3894, 299, 12576, 1195, 459, 4060, 37201, 27948, 6094, 768, 5425, 28160, 303, 7272, 1365, 299, 413, 361, 1195, 459, 11359, 3155, 47, 4429, 27948, 6094, 768, 5425, 1046, 16827, 45, 907, 66, 54, 53, 49, 1788, 66, 54, 53, 14935, 303, 6759, 299, 6629, 1195, 459, 8909, 387, 37201, 16714, 6094, 459, 2317, 411, 332, 4208, 2132, 2903, 32755, 411, 332, 10852, 678, 636, 27948, 6094, 768, 5425, 28160, 303, 6475, 299, 22878, 1195, 459, 3399, 2791, 3789, 678, 499, 222, 842, 10660, 1260, 45, 43686, 1260, 731, 303, 4111, 299, 10028, 1195, 459, 4490, 4949, 37201, 27948, 6094, 768, 5425, 1046, 10028, 28160, 303, 3894, 299, 12576, 1195, 459, 4060, 37201, 27948, 6094, 768, 5425, 28160, 303, 6759, 299, 6629, 1195, 459, 8909, 387, 37201, 16714, 6094, 459, 2317, 411, 332, 4208, 2132, 2903, 32755, 411, 332, 10852, 678, 636, 27948, 6094, 768, 5425, 28160, 303, 6475, 299, 22878, 1195, 459, 5333, 3789, 678, 499, 222, 842, 525, 36698, 1260, 45, 43686, 1260, 731, 303, 4111, 299, 10028, 1195, 459, 4490, 4949, 37201, 27948, 6094, 768, 5425, 1046, 10028, 28160, 303, 6759, 299, 6629, 1195, 459, 8909, 387, 37201, 16714, 6094, 459, 2317, 411, 332, 4208, 2132, 2903, 32755, 411, 332, 10852, 678, 636, 27948, 6094, 768, 5425, 28160, 303, 6475, 299, 22878, 1195, 459, 1810, 1390, 12576, 678, 499, 222, 842, 1557, 2911, 45, 43686, 1260, 731, 303, 3894, 299, 12576, 1195, 459, 6559, 12576, 411, 27948, 6094, 768, 5425, 28160, 303, 6475, 299, 22878, 1195, 459, 1810, 12576, 678, 499, 222, 842, 2270, 113, 2043, 1260, 45, 43686, 1260, 731, 303, 18260, 299, 910, 1195, 459, 4737, 3286, 338, 411, 27948, 6094, 768, 5425, 28160, 303, 4111, 299, 10028, 1195, 459, 4490, 4949, 37201, 27948, 6094, 768, 5425, 1046, 10028, 28160, 303, 2361, 299, 2833, 1195, 459, 1563, 411, 27948, 6094, 768, 5425, 28160, 303, 14549, 299, 6629, 1195, 459, 22921, 37201, 16714, 6094, 459, 103, 914, 113, 1758, 411, 332, 71, 914, 113, 1758, 2132, 2903, 114, 27361, 411, 332, 82, 27361, 678, 636, 27948, 6094, 768, 5425, 28160, 303, 427, 22845, 299, 6629, 1195, 45, 310, 332, 921, 22845, 37201, 310, 16714, 6094, 343, 2903, 2251, 411, 332, 3485, 2132, 343, 2903, 3109, 411, 332, 5076, 2132, 343, 2903, 14148, 411, 332, 24151, 2132, 343, 2903, 17531, 368, 411, 332, 19641, 368, 2132, 343, 2903, 107, 23315, 411, 332, 75, 23315, 2132, 343, 2903, 25924, 368, 411, 332, 45291, 368, 2132, 343, 2903, 296, 672, 109, 411, 332, 921, 672, 109, 2132, 343, 2903, 106, 28311, 411, 332, 74, 28311, 2132, 310, 2520, 310, 27948, 6094, 768, 5425, 28752, 303, 848, 303, 19132, 2043, 3168, 299, 6629, 1195, 45, 310, 332, 1000, 37385, 9954, 37201, 310, 16714, 6094, 343, 2903, 25921, 411, 332, 21527, 2132, 343, 2903, 12900, 411, 332, 15551, 2132, 343, 2903, 24029, 114, 1339, 411, 332, 70, 9017, 114, 1339, 2132, 343, 2903, 9343, 411, 332, 8596, 2132, 343, 2903, 9691, 31123, 411, 332, 7784, 31123, 2132, 343, 2903, 5261, 411, 332, 5887, 2132, 310, 2520, 310, 27948, 6094, 768, 5425, 28752, 303, 848, 303, 1492, 299, 3336, 5585, 1195, 459, 6559, 2270, 37385, 13562, 411, 27948, 6094, 768, 5425, 1046, 16827, 45, 1472, 66, 54, 53, 53, 14935, 303, 607, 822, 299, 21205, 991, 1195, 45, 122, 44, 7847, 2050, 704, 303, 6475, 299, 22878, 1195, 459, 7468, 678, 499, 222, 842, 19132, 2043, 100, 1535, 45, 43686, 1260, 731, 303, 2302, 299, 6629, 1195, 45, 310, 332, 1000, 113, 2043, 5415, 411, 16714, 6094, 459, 10710, 411, 332, 10710, 2132, 2903, 12921, 15051, 411, 332, 12921, 15051, 2132, 2903, 17901, 411, 332, 17901, 3843, 303, 848, 303, 6475, 299, 22878, 1195, 459, 2346, 678, 222 ]
[ "from", "Ġflask", "_", "w", "tf", "Ġimport", "ĠFlask", "Form", "Ċ", "from", "Ġwt", "forms", "Ġimport", "Ġ(", "ĊĠĠĠ", "ĠString", "Field", ",", "ĊĠĠĠ", "ĠSelect", "Field", ",", "ĊĠĠĠ", "ĠSubmit", "Field", ",", "ĊĠĠĠ", "ĠPassword", "Field", ",", "ĊĠĠĠ", "ĠRadio", "Field", ",", "ĊĠĠĠ", "ĠMultiple", "File", "Field", ",", "ĊĠĠĠ", "ĠSubmit", "Field", ",", "ĊĠĠĠ", "ĠText", "Area", "Field", ",", "Ċ", ")", "Ċ", "from", "Ġwt", "forms", ".", "fields", ".", "html", "5", "Ġimport", "ĠEmail", "Field", ",", "ĠT", "el", "Field", ",", "ĠDate", "Field", "Ċ", "from", "Ġwt", "forms", ".", "validators", "Ġimport", "ĠData", "Required", ",", "ĠEmail", ",", "ĠLength", ",", "ĠInput", "Required", "ĊĊ", "Ċ", "class", "ĠSign", "Up", "Form", "(", "Flask", "Form", "):", "ĊĠĠĠ", "Ġid", "Ġ=", "ĠString", "Field", "(\"", "ID", "*\",", "Ġvalidators", "=[", "Data", "Required", "()])", "ĊĠĠĠ", "Ġfname", "Ġ=", "ĠString", "Field", "(\"", "Full", "ĠName", "*\",", "Ġvalidators", "=[", "Data", "Required", "()])", "ĊĠĠĠ", "Ġemail", "Ġ=", "ĠEmail", "Field", "(\"", "Email", "ĠId", "*\",", "Ġvalidators", "=[", "Data", "Required", "(),", "ĠEmail", "()])", "ĊĠĠĠ", "Ġpassword", "Ġ=", "ĠPassword", "Field", "(\"", "Password", "*\",", "Ġvalidators", "=[", "Data", "Required", "()])", "ĊĠĠĠ", "Ġcontact", "no", "Ġ=", "ĠT", "el", "Field", "(\"", "Mobile", "ĠNo", "*", ".\",", "Ġvalidators", "=[", "Data", "Required", "(),", "ĠLength", "(", "min", "=", "1", "0", ",", "Ġmax", "=", "1", "0", ")])", "ĊĠĠĠ", "Ġdesign", "Ġ=", "ĠSelect", "Field", "(\"", "Design", "ation", "*\",", "Ġchoices", "=[", "(\"", "admin", "\",", "Ġ\"", "Admin", "\"),", "Ġ(\"", "stud", "\",", "Ġ\"", "Student", "\")", "],", "Ġvalidators", "=[", "Data", "Required", "()])", "ĊĠĠĠ", "Ġsubmit", "Ġ=", "ĠSubmit", "Field", "(\"", "Sign", "ĠUp", "Ġ>>", "\")", "ĊĊ", "Ċ", "class", "ĠLogin", "Form", "(", "Flask", "Form", "):", "ĊĠĠĠ", "Ġemail", "Ġ=", "ĠEmail", "Field", "(\"", "Email", "ĠId", "*\",", "Ġvalidators", "=[", "Data", "Required", "(),", "ĠEmail", "()])", "ĊĠĠĠ", "Ġpassword", "Ġ=", "ĠPassword", "Field", "(\"", "Password", "*\",", "Ġvalidators", "=[", "Data", "Required", "()])", "ĊĠĠĠ", "Ġdesign", "Ġ=", "ĠSelect", "Field", "(\"", "Design", "ation", "*\",", "Ġchoices", "=[", "(\"", "admin", "\",", "Ġ\"", "Admin", "\"),", "Ġ(\"", "stud", "\",", "Ġ\"", "Student", "\")", "],", "Ġvalidators", "=[", "Data", "Required", "()])", "ĊĠĠĠ", "Ġsubmit", "Ġ=", "ĠSubmit", "Field", "(\"", "Login", "Ġ>>", "\")", "ĊĊ", "Ċ", "class", "ĠF", "orgot", "Form", "(", "Flask", "Form", "):", "ĊĠĠĠ", "Ġemail", "Ġ=", "ĠEmail", "Field", "(\"", "Email", "ĠId", "*\",", "Ġvalidators", "=[", "Data", "Required", "(),", "ĠEmail", "()])", "ĊĠĠĠ", "Ġdesign", "Ġ=", "ĠSelect", "Field", "(\"", "Design", "ation", "*\",", "Ġchoices", "=[", "(\"", "admin", "\",", "Ġ\"", "Admin", "\"),", "Ġ(\"", "stud", "\",", "Ġ\"", "Student", "\")", "],", "Ġvalidators", "=[", "Data", "Required", "()])", "ĊĠĠĠ", "Ġsubmit", "Ġ=", "ĠSubmit", "Field", "(\"", "Change", "Ġyour", "ĠPassword", "\")", "ĊĊ", "Ċ", "class", "Ġchange", "password", "(", "Flask", "Form", "):", "ĊĠĠĠ", "Ġpassword", "Ġ=", "ĠPassword", "Field", "(\"", "Enter", "ĠPassword", "\",", "Ġvalidators", "=[", "Data", "Required", "()])", "ĊĠĠĠ", "Ġsubmit", "Ġ=", "ĠSubmit", "Field", "(\"", "Change", "ĠPassword", "\")", "ĊĊ", "Ċ", "class", "ĠComp", "l", "aint", "Form", "(", "Flask", "Form", "):", "ĊĠĠĠ", "Ġfname", "Ġ=", "ĠString", "Field", "(\"", "Full", "ĠName", "Ġ*", "\",", "Ġvalidators", "=[", "Data", "Required", "()])", "ĊĠĠĠ", "Ġemail", "Ġ=", "ĠEmail", "Field", "(\"", "Email", "ĠId", "*\",", "Ġvalidators", "=[", "Data", "Required", "(),", "ĠEmail", "()])", "ĊĠĠĠ", "Ġdate", "Ġ=", "ĠDate", "Field", "(\"", "Date", "\",", "Ġvalidators", "=[", "Data", "Required", "()])", "ĊĠĠĠ", "Ġdegree", "Ġ=", "ĠSelect", "Field", "(\"", "Degree", "*\",", "Ġchoices", "=[", "(\"", "b", "ache", "l", "ors", "\",", "Ġ\"", "B", "ache", "l", "ors", "\"),", "Ġ(\"", "m", "asters", "\",", "Ġ\"", "M", "asters", "\")", "],", "Ġvalidators", "=[", "Data", "Required", "()])", "ĊĠĠĠ", "Ġse", "mester", "Ġ=", "ĠSelect", "Field", "(", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "Se", "mester", "*\",", "ĊĠĠĠĠĠĠĠ", "Ġchoices", "=[", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "first", "\",", "Ġ\"", "First", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "second", "\",", "Ġ\"", "Second", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "third", "\",", "Ġ\"", "Third", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "four", "th", "\",", "Ġ\"", "Four", "th", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "f", "ifth", "\",", "Ġ\"", "F", "ifth", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "six", "th", "\",", "Ġ\"", "Six", "th", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "se", "vent", "h", "\",", "Ġ\"", "Se", "vent", "h", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "e", "ighth", "\",", "Ġ\"", "E", "ighth", "\"),", "ĊĠĠĠĠĠĠĠ", "Ġ],", "ĊĠĠĠĠĠĠĠ", "Ġvalidators", "=[", "Data", "Required", "()],", "ĊĠĠĠ", "Ġ)", "ĊĠĠĠ", "Ġcompl", "aint", "category", "Ġ=", "ĠSelect", "Field", "(", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "Comp", "lain", "ĠCategory", "*\",", "ĊĠĠĠĠĠĠĠ", "Ġchoices", "=[", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "infrastructure", "\",", "Ġ\"", "Infrastructure", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "accounts", "\",", "Ġ\"", "Accounts", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "acade", "m", "ics", "\",", "Ġ\"", "A", "cade", "m", "ics", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "management", "\",", "Ġ\"", "Management", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "fac", "ulty", "\",", "Ġ\"", "Fac", "ulty", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "library", "\",", "Ġ\"", "Library", "\"),", "ĊĠĠĠĠĠĠĠ", "Ġ],", "ĊĠĠĠĠĠĠĠ", "Ġvalidators", "=[", "Data", "Required", "()],", "ĊĠĠĠ", "Ġ)", "ĊĠĠĠ", "Ġmessage", "Ġ=", "ĠText", "Area", "Field", "(\"", "Enter", "ĠComp", "lain", "ĠDetails", "\",", "Ġvalidators", "=[", "Data", "Required", "(),", "ĠLength", "(", "max", "=", "1", "0", "0", ")])", "ĊĠĠĠ", "Ġ#", "Ġfile", "Ġ=", "ĠMultiple", "File", "Field", "(", "u", "'", "Upload", "ĠFile", "')", "ĊĠĠĠ", "Ġsubmit", "Ġ=", "ĠSubmit", "Field", "(\"", "Submit", "\")", "ĊĊ", "Ċ", "class", "Ġcompl", "aint", "_", "status", "(", "Flask", "Form", "):", "ĊĠĠĠ", "Ġstatus", "Ġ=", "ĠSelect", "Field", "(", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "Comp", "l", "aint", "ĠStatus", "\",", "Ġchoices", "=[", "(\"", "Pending", "\",", "Ġ\"", "Pending", "\"),", "Ġ(\"", "Under", "ĠReview", "\",", "Ġ\"", "Under", "ĠReview", "\"),", "Ġ(\"", "Resolved", "\",", "Ġ\"", "Resolved", "\")]", "ĊĠĠĠ", "Ġ)", "ĊĠĠĠ", "Ġsubmit", "Ġ=", "ĠSubmit", "Field", "(\"", "Update", "\")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 38, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 61, 61, 61, 61, 61, 61, 62, 62, 63, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 72, 72, 73, 73, 73, 73, 73, 73, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84 ]
[ 1, 5, 11, 12, 13, 15, 22, 28, 32, 1, 5, 8, 13, 20, 22, 4, 11, 16, 17, 4, 11, 16, 17, 4, 11, 16, 17, 4, 13, 18, 19, 4, 10, 15, 16, 4, 13, 17, 22, 23, 4, 11, 16, 17, 4, 9, 13, 18, 19, 1, 2, 1, 5, 8, 13, 14, 20, 21, 25, 26, 33, 39, 44, 45, 47, 49, 54, 55, 60, 65, 1, 5, 8, 13, 14, 24, 31, 36, 44, 45, 51, 52, 59, 60, 66, 74, 1, 1, 6, 11, 13, 17, 18, 23, 27, 29, 4, 7, 9, 16, 21, 23, 25, 28, 39, 41, 45, 53, 57, 4, 10, 12, 19, 24, 26, 30, 35, 38, 49, 51, 55, 63, 67, 4, 10, 12, 18, 23, 25, 30, 33, 36, 47, 49, 53, 61, 64, 70, 74, 4, 13, 15, 24, 29, 31, 39, 42, 53, 55, 59, 67, 71, 4, 12, 14, 16, 18, 20, 25, 27, 33, 36, 37, 40, 51, 53, 57, 65, 68, 75, 76, 79, 80, 81, 82, 83, 87, 88, 89, 90, 93, 4, 11, 13, 20, 25, 27, 33, 38, 41, 49, 51, 53, 58, 60, 62, 67, 70, 73, 77, 79, 81, 88, 90, 92, 103, 105, 109, 117, 121, 4, 11, 13, 20, 25, 27, 31, 34, 37, 39, 1, 1, 6, 12, 16, 17, 22, 26, 28, 4, 10, 12, 18, 23, 25, 30, 33, 36, 47, 49, 53, 61, 64, 70, 74, 4, 13, 15, 24, 29, 31, 39, 42, 53, 55, 59, 67, 71, 4, 11, 13, 20, 25, 27, 33, 38, 41, 49, 51, 53, 58, 60, 62, 67, 70, 73, 77, 79, 81, 88, 90, 92, 103, 105, 109, 117, 121, 4, 11, 13, 20, 25, 27, 32, 35, 37, 1, 1, 6, 8, 13, 17, 18, 23, 27, 29, 4, 10, 12, 18, 23, 25, 30, 33, 36, 47, 49, 53, 61, 64, 70, 74, 4, 11, 13, 20, 25, 27, 33, 38, 41, 49, 51, 53, 58, 60, 62, 67, 70, 73, 77, 79, 81, 88, 90, 92, 103, 105, 109, 117, 121, 4, 11, 13, 20, 25, 27, 33, 38, 47, 49, 1, 1, 6, 13, 21, 22, 27, 31, 33, 4, 13, 15, 24, 29, 31, 36, 45, 47, 58, 60, 64, 72, 76, 4, 11, 13, 20, 25, 27, 33, 42, 44, 1, 1, 6, 11, 12, 16, 20, 21, 26, 30, 32, 4, 10, 12, 19, 24, 26, 30, 35, 37, 39, 50, 52, 56, 64, 68, 4, 10, 12, 18, 23, 25, 30, 33, 36, 47, 49, 53, 61, 64, 70, 74, 4, 9, 11, 16, 21, 23, 27, 29, 40, 42, 46, 54, 58, 4, 11, 13, 20, 25, 27, 33, 36, 44, 46, 48, 49, 53, 54, 57, 59, 61, 62, 66, 67, 70, 73, 76, 77, 83, 85, 87, 88, 94, 96, 98, 109, 111, 115, 123, 127, 4, 7, 13, 15, 22, 27, 28, 8, 10, 12, 18, 21, 8, 16, 18, 12, 15, 20, 22, 24, 29, 32, 12, 15, 21, 23, 25, 31, 34, 12, 15, 20, 22, 24, 29, 32, 12, 15, 19, 21, 23, 25, 29, 31, 34, 12, 15, 16, 20, 22, 24, 25, 29, 32, 12, 15, 18, 20, 22, 24, 27, 29, 32, 12, 15, 17, 21, 22, 24, 26, 28, 32, 33, 36, 12, 15, 16, 21, 23, 25, 26, 31, 34, 8, 11, 8, 19, 21, 25, 33, 37, 4, 6, 4, 10, 14, 22, 24, 31, 36, 37, 8, 10, 14, 18, 27, 30, 8, 16, 18, 12, 15, 29, 31, 33, 47, 50, 12, 15, 23, 25, 27, 35, 38, 12, 15, 20, 21, 24, 26, 28, 29, 33, 34, 37, 40, 12, 15, 25, 27, 29, 39, 42, 12, 15, 18, 22, 24, 26, 29, 33, 36, 12, 15, 22, 24, 26, 33, 36, 8, 11, 8, 19, 21, 25, 33, 37, 4, 6, 4, 12, 14, 19, 23, 28, 30, 35, 40, 44, 52, 54, 65, 67, 71, 79, 82, 89, 90, 93, 94, 95, 96, 97, 100, 4, 6, 11, 13, 22, 26, 31, 32, 33, 34, 40, 45, 47, 4, 11, 13, 20, 25, 27, 33, 35, 1, 1, 6, 12, 16, 17, 23, 24, 29, 33, 35, 4, 11, 13, 20, 25, 26, 8, 10, 14, 15, 19, 26, 28, 36, 38, 40, 47, 49, 51, 58, 61, 64, 69, 76, 78, 80, 85, 92, 95, 98, 106, 108, 110, 118, 121, 4, 6, 4, 11, 13, 20, 25, 27, 33, 35 ]
257f18db95e069c037341d2af372269e988b0a80
# Generated by Django 3.1.2 on 2021-07-02 05:38 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("asset", "0001_initial"), ] operations = [ migrations.RemoveField( model_name="balance", name="title", ), ]
[ 40, 13046, 829, 18288, 244, 56, 51, 54, 51, 55, 563, 244, 55, 53, 55, 54, 50, 53, 60, 50, 53, 55, 244, 53, 58, 63, 56, 61, 222, 222, 1097, 8532, 51, 1219, 1220, 12520, 499, 222, 842, 18572, 45, 19772, 51, 12071, 731, 303, 6450, 299, 447, 310, 2903, 5485, 411, 332, 53, 53, 53, 54, 100, 4353, 2132, 303, 1499, 465, 7392, 299, 447, 310, 12520, 51, 4926, 1195, 45, 343, 1573, 100, 444, 366, 10427, 411, 343, 655, 366, 1333, 411, 310, 2604, 303, 1499, 222 ]
[ "#", "ĠGenerated", "Ġby", "ĠDjango", "Ġ", "3", ".", "1", ".", "2", "Ġon", "Ġ", "2", "0", "2", "1", "-", "0", "7", "-", "0", "2", "Ġ", "0", "5", ":", "3", "8", "Ċ", "Ċ", "from", "Ġdjango", ".", "db", "Ġimport", "Ġmigrations", "ĊĊ", "Ċ", "class", "ĠMigration", "(", "migrations", ".", "Migration", "):", "ĊĠĠĠ", "Ġdependencies", "Ġ=", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġ(\"", "asset", "\",", "Ġ\"", "0", "0", "0", "1", "_", "initial", "\"),", "ĊĠĠĠ", "Ġ]", "ĊĊĠĠĠ", "Ġoperations", "Ġ=", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġmigrations", ".", "Remove", "Field", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġmodel", "_", "name", "=\"", "balance", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġname", "=\"", "title", "\",", "ĊĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠ", "Ġ]", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 16, 16 ]
[ 1, 2, 12, 15, 22, 23, 24, 25, 26, 27, 28, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 1, 1, 5, 12, 13, 15, 22, 33, 1, 1, 6, 16, 17, 27, 28, 37, 39, 4, 17, 19, 21, 8, 11, 16, 18, 20, 21, 22, 23, 24, 25, 32, 35, 4, 6, 4, 15, 17, 19, 8, 19, 20, 26, 31, 32, 12, 18, 19, 23, 25, 32, 34, 12, 17, 19, 24, 26, 8, 11, 4, 6 ]
74cb06ffa41748af431b46c9ff98eb91771a5015
# Get roll numbers, name & marks of the students of a class(get from user) and store these details in a file- marks.txt count = int(input("How many students are there in class? ")) fileObj = open("marks.txt", "w") for i in range(count): print("Enter details for student", (i + 1), "below:") rollNo = int(input("Rollno: ")) name = input("Name: ") marks = float(input("Marks: ")) records = str(rollNo) + "," + name + "," + str(marks) + "\n" fileObj.write(records) fileObj.close()
[ 40, 1408, 12356, 7560, 49, 655, 568, 26760, 451, 341, 16545, 451, 331, 462, 45, 390, 664, 1275, 46, 480, 2989, 3301, 4261, 347, 331, 822, 50, 26760, 51, 2787, 222, 222, 1016, 299, 648, 45, 1151, 459, 8276, 5110, 16545, 904, 2038, 347, 462, 68, 29583, 222, 781, 3287, 299, 2177, 459, 5525, 51, 2787, 411, 332, 124, 678, 222, 222, 999, 613, 347, 2189, 45, 1016, 731, 303, 1489, 459, 6559, 4261, 456, 9551, 411, 327, 110, 494, 244, 54, 490, 332, 24124, 23799, 303, 12356, 2042, 299, 648, 45, 1151, 459, 17227, 1365, 63, 29583, 303, 655, 299, 1533, 459, 577, 63, 7816, 303, 26760, 299, 1916, 45, 1151, 459, 37257, 63, 29583, 303, 9233, 299, 615, 45, 1038, 2042, 46, 494, 17708, 494, 655, 494, 17708, 494, 615, 45, 5525, 46, 494, 2724, 115, 39, 303, 822, 3287, 51, 1838, 45, 11552, 46, 222, 781, 3287, 51, 2698, 365, 222 ]
[ "#", "ĠGet", "Ġroll", "Ġnumbers", ",", "Ġname", "Ġ&", "Ġmarks", "Ġof", "Ġthe", "Ġstudents", "Ġof", "Ġa", "Ġclass", "(", "get", "Ġfrom", "Ġuser", ")", "Ġand", "Ġstore", "Ġthese", "Ġdetails", "Ġin", "Ġa", "Ġfile", "-", "Ġmarks", ".", "txt", "Ċ", "Ċ", "count", "Ġ=", "Ġint", "(", "input", "(\"", "How", "Ġmany", "Ġstudents", "Ġare", "Ġthere", "Ġin", "Ġclass", "?", "Ġ\"))", "Ċ", "file", "Obj", "Ġ=", "Ġopen", "(\"", "marks", ".", "txt", "\",", "Ġ\"", "w", "\")", "Ċ", "Ċ", "for", "Ġi", "Ġin", "Ġrange", "(", "count", "):", "ĊĠĠĠ", "Ġprint", "(\"", "Enter", "Ġdetails", "Ġfor", "Ġstudent", "\",", "Ġ(", "i", "Ġ+", "Ġ", "1", "),", "Ġ\"", "below", ":\")", "ĊĠĠĠ", "Ġroll", "No", "Ġ=", "Ġint", "(", "input", "(\"", "Roll", "no", ":", "Ġ\"))", "ĊĠĠĠ", "Ġname", "Ġ=", "Ġinput", "(\"", "Name", ":", "Ġ\")", "ĊĠĠĠ", "Ġmarks", "Ġ=", "Ġfloat", "(", "input", "(\"", "Marks", ":", "Ġ\"))", "ĊĠĠĠ", "Ġrecords", "Ġ=", "Ġstr", "(", "roll", "No", ")", "Ġ+", "Ġ\",\"", "Ġ+", "Ġname", "Ġ+", "Ġ\",\"", "Ġ+", "Ġstr", "(", "marks", ")", "Ġ+", "Ġ\"\\", "n", "\"", "ĊĠĠĠ", "Ġfile", "Obj", ".", "write", "(", "records", ")", "Ċ", "file", "Obj", ".", "close", "()", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13 ]
[ 1, 2, 6, 11, 19, 20, 25, 27, 33, 36, 40, 49, 52, 54, 60, 61, 64, 69, 74, 75, 79, 85, 91, 99, 102, 104, 109, 110, 116, 117, 120, 1, 1, 6, 8, 12, 13, 18, 20, 23, 28, 37, 41, 47, 50, 56, 57, 61, 1, 5, 8, 10, 15, 17, 22, 23, 26, 28, 30, 31, 33, 1, 1, 4, 6, 9, 15, 16, 21, 23, 4, 10, 12, 17, 25, 29, 37, 39, 41, 42, 44, 45, 46, 48, 50, 55, 58, 4, 9, 11, 13, 17, 18, 23, 25, 29, 31, 32, 36, 4, 9, 11, 17, 19, 23, 24, 27, 4, 10, 12, 18, 19, 24, 26, 31, 32, 36, 4, 12, 14, 18, 19, 23, 25, 26, 28, 32, 34, 39, 41, 45, 47, 51, 52, 57, 58, 60, 63, 64, 65, 4, 9, 12, 13, 18, 19, 26, 27, 1, 5, 8, 9, 14, 16 ]
955cf040aaf882328e31e6a943bce04cf721cb11
#!/usr/bin/env python3 # # Copyright (C) 2011-2015 Codethink Limited # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # =*= License: GPL-2 =*= import os import app import re from subprocess import call from subprocess import check_output import string import definitions import urllib2 import json import utils import ConfigParser import StringIO import re def get_repo_url(repo): url = repo.replace("upstream:", "git://git.baserock.org/delta/") url = url.replace("baserock:baserock/", "git://git.baserock.org/baserock/baserock/") url = url.replace("freedesktop:", "git://anongit.freedesktop.org/") url = url.replace("github:", "git://github.com/") url = url.replace("gnome:", "git://git.gnome.org") if url.endswith(".git"): url = url[:-4] return url def get_repo_name(repo): """Convert URIs to strings that only contain digits, letters, _ and %. NOTE: When changing the code of this function, make sure to also apply the same to the quote_url() function of lorry. Otherwise the git tarballs generated by lorry may no longer be found by morph. """ valid_chars = string.digits + string.ascii_letters + "%_" transl = lambda x: x if x in valid_chars else "_" return "".join([transl(x) for x in get_repo_url(repo)]) def get_upstream_version(repo, ref): try: gitdir = os.path.join(app.settings["gits"], get_repo_name(repo)) with app.chdir(gitdir), open(os.devnull, "w") as fnull: last_tag = check_output(["git", "describe", "--abbrev=0", "--tags", ref], stderr=fnull)[0:-1] commits = check_output(["git", "rev-list", last_tag + ".." + ref, "--count"]) result = "%s (%s + %s commits)" % (ref[:8], last_tag, commits[0:-1]) except: result = ref[:8] + " " + "(No tag found)" return result def get_tree(this): ref = this["ref"] gitdir = os.path.join(app.settings["gits"], get_repo_name(this["repo"])) if not os.path.exists(gitdir): try: url = app.settings["cache-server-url"] + "repo=" + get_repo_url(this["repo"]) + "&ref=" + ref with urllib2.urlopen(url) as response: tree = json.loads(response.read().decode())["tree"] return tree except: app.log(this, "WARNING: no tree from cache-server", ref) mirror(this["name"], this["repo"]) with app.chdir(gitdir), open(os.devnull, "w") as fnull: if call(["git", "rev-parse", ref + "^{object}"], stdout=fnull, stderr=fnull): # can't resolve this ref. is it upstream? call(["git", "fetch", "origin"], stdout=fnull, stderr=fnull) try: tree = check_output(["git", "rev-parse", ref + "^{tree}"], universal_newlines=True)[0:-1] return tree except: # either we don't have a git dir, or ref is not unique # or ref does not exist app.log(this, "ERROR: could not find tree for ref", ref) raise SystemExit def copy_repo(repo, destdir): """Copies a cached repository into a directory using cp. This also fixes up the repository afterwards, so that it can contain code etc. It does not leave any given branch ready for use. """ # core.bare should be false so that git believes work trees are possible # we do not want the origin remote to behave as a mirror for pulls # we want a traditional refs/heads -> refs/remotes/origin ref mapping # set the origin url to the cached repo so that we can quickly clean up # by packing the refs, we can then edit then en-masse easily call(["cp", "-a", repo, os.path.join(destdir, ".git")]) call(["git", "config", "core.bare", "false"]) call(["git", "config", "--unset", "remote.origin.mirror"]) with open(os.devnull, "w") as fnull: call(["git", "config", "remote.origin.fetch", "+refs/heads/*:refs/remotes/origin/*"], stdout=fnull, stderr=fnull) call(["git", "config", "remote.origin.url", repo]) call(["git", "pack-refs", "--all", "--prune"]) # turn refs/heads/* into refs/remotes/origin/* in the packed refs # so that the new copy behaves more like a traditional clone. with open(os.path.join(destdir, ".git", "packed-refs"), "r") as ref_fh: pack_lines = ref_fh.read().split("\n") with open(os.path.join(destdir, ".git", "packed-refs"), "w") as ref_fh: ref_fh.write(pack_lines.pop(0) + "\n") for refline in pack_lines: if " refs/remotes/" in refline: continue if " refs/heads/" in refline: sha, ref = refline[:40], refline[41:] if ref.startswith("refs/heads/"): ref = "refs/remotes/origin/" + ref[11:] refline = "%s %s" % (sha, ref) ref_fh.write("%s\n" % (refline)) # Finally run a remote update to clear up the refs ready for use. with open(os.devnull, "w") as fnull: call(["git", "remote", "update", "origin", "--prune"], stdout=fnull, stderr=fnull) def mirror(name, repo): # try tarball first gitdir = os.path.join(app.settings["gits"], get_repo_name(repo)) repo_url = get_repo_url(repo) try: os.makedirs(gitdir) tar_file = get_repo_name(repo_url) + ".tar" app.log(name, "Try fetching tarball %s" % tar_file) with app.chdir(gitdir), open(os.devnull, "w") as fnull: call(["wget", app["tar-url"]], stdout=fnull, stderr=fnull) call(["tar", "xf", tar_file], stdout=fnull, stderr=fnull) os.remove(tar_file) call(["git", "config", "remote.origin.url", repo_url], stdout=fnull, stderr=fnull) call(["git", "config", "remote.origin.mirror", "true"], stdout=fnull, stderr=fnull) if call(["git", "config", "remote.origin.fetch", "+refs/*:refs/*"], stdout=fnull, stderr=fnull) != 0: raise BaseException("Did not get a valid git repo") call(["git", "fetch", "origin"], stdout=fnull, stderr=fnull) except: app.log(name, "Using git clone from ", repo_url) try: with open(os.devnull, "w") as fnull: call(["git", "clone", "--mirror", "-n", repo_url, gitdir], stdout=fnull, stderr=fnull) except: app.log(name, "ERROR: failed to clone", repo) raise SystemExit app.log(name, "Git repo is mirrored at", gitdir) def fetch(repo): with app.chdir(repo), open(os.devnull, "w") as fnull: call(["git", "fetch", "origin"], stdout=fnull, stderr=fnull) def checkout(name, repo, ref, checkoutdir): gitdir = os.path.join(app.settings["gits"], get_repo_name(repo)) if not os.path.exists(gitdir): mirror(name, repo) app.log(name, "Upstream version:", get_upstream_version(repo, ref)) app.log(name, "Git checkout %s in %s" % (repo, checkoutdir)) # checkout the required version of this from git with app.chdir(checkoutdir), open(os.devnull, "w") as fnull: copy_repo(gitdir, checkoutdir) if call(["git", "checkout", ref], stdout=fnull, stderr=fnull): app.log(name, "ERROR: git checkout failed for", ref) raise SystemExit if os.path.exists(".gitmodules"): checkout_submodules(name, ref) utils.set_mtime_recursively(checkoutdir) def checkout_submodules(name, ref): app.log(name, "Git submodules") with open(".gitmodules", "r") as gitfile: # drop indentation in sections, as RawConfigParser cannot handle it content = "\n".join([l.strip() for l in gitfile.read().splitlines()]) io = StringIO.StringIO(content) parser = ConfigParser.RawConfigParser() parser.readfp(io) for section in parser.sections(): # validate section name against the 'submodule "foo"' pattern submodule = re.sub(r'submodule "(.*)"', r"\1", section) url = parser.get(section, "url") path = parser.get(section, "path") try: # list objects in the parent repo tree to find the commit # object that corresponds to the submodule commit = check_output(["git", "ls-tree", ref, path]) # read the commit hash from the output fields = commit.split() if len(fields) >= 2 and fields[1] == "commit": submodule_commit = commit.split()[2] # fail if the commit hash is invalid if len(submodule_commit) != 40: raise Exception fulldir = os.path.join(os.getcwd(), path) checkout(submodule, url, submodule_commit, fulldir) else: app.log(this, 'Skipping submodule "%s" as %s:%s has a non-commit object for it' % (name, url)) except: app.log(name, "ERROR: Git submodules problem") raise SystemExit
[ 8758, 3392, 52, 1793, 52, 2141, 4406, 56, 222, 40, 222, 40, 2657, 327, 72, 46, 244, 55, 53, 54, 54, 50, 55, 53, 54, 58, 244, 4420, 16454, 30980, 222, 40, 222, 40, 1369, 3477, 458, 3760, 2951, 64, 863, 902, 14081, 580, 480, 52, 290, 5370, 222, 40, 580, 1549, 341, 5974, 451, 341, 6994, 6153, 5062, 1196, 641, 9582, 829, 222, 40, 341, 7834, 3870, 7120, 64, 1522, 244, 55, 451, 341, 1196, 51, 222, 40, 222, 40, 1369, 3477, 458, 2744, 347, 341, 9850, 708, 580, 1118, 545, 6386, 49, 222, 40, 1294, 4213, 2979, 9345, 64, 2895, 4462, 341, 4506, 14319, 451, 222, 40, 7934, 575, 8114, 4800, 418, 7848, 7763, 51, 244, 2819, 341, 222, 40, 6994, 6153, 5062, 1196, 456, 1851, 4261, 51, 222, 40, 222, 40, 2469, 1414, 1178, 6589, 331, 1948, 451, 341, 6994, 6153, 5062, 1196, 7979, 222, 40, 642, 477, 3477, 64, 434, 666, 49, 2886, 391, 341, 7834, 3870, 7120, 49, 6367, 4345, 222, 40, 244, 58, 54, 34113, 22321, 49, 33316, 26912, 49, 25006, 49, 13083, 244, 53, 55, 54, 54, 53, 50, 54, 56, 53, 54, 15067, 51, 222, 40, 222, 40, 299, 35515, 1196, 63, 23508, 50, 55, 299, 35515, 222, 222, 485, 2355, 222, 485, 1142, 222, 485, 334, 222, 1097, 16606, 1220, 1495, 222, 1097, 16606, 1220, 1524, 100, 2051, 222, 485, 821, 222, 485, 13190, 222, 485, 22296, 55, 222, 485, 2379, 222, 485, 8767, 222, 485, 3395, 2837, 222, 485, 44614, 222, 485, 334, 499, 222, 610, 640, 100, 6446, 100, 983, 45, 6446, 731, 303, 2001, 299, 5885, 51, 3249, 459, 23764, 9398, 332, 2929, 574, 2929, 51, 8428, 284, 1060, 51, 1107, 52, 6602, 29701, 303, 2001, 299, 2001, 51, 3249, 459, 8428, 284, 1060, 63, 8428, 284, 1060, 10974, 332, 2929, 574, 2929, 51, 8428, 284, 1060, 51, 1107, 52, 8428, 284, 1060, 52, 8428, 284, 1060, 29701, 303, 2001, 299, 2001, 51, 3249, 459, 4010, 10956, 9398, 332, 2929, 574, 297, 805, 302, 51, 4010, 10956, 51, 1107, 29701, 303, 2001, 299, 2001, 51, 3249, 459, 951, 9398, 332, 2929, 574, 951, 51, 527, 29701, 303, 2001, 299, 2001, 51, 3249, 459, 25452, 9398, 332, 2929, 574, 2929, 51, 25452, 51, 1107, 678, 303, 434, 2001, 51, 20677, 5804, 2929, 10320, 310, 2001, 299, 2001, 20563, 57, 98, 303, 461, 2001, 499, 222, 610, 640, 100, 6446, 100, 444, 45, 6446, 731, 303, 1547, 6734, 45771, 391, 5872, 708, 1773, 4814, 16198, 49, 19429, 49, 634, 480, 16214, 465, 12125, 63, 5094, 12402, 341, 1361, 451, 477, 686, 49, 1949, 3673, 391, 2353, 4894, 303, 341, 2454, 391, 341, 15379, 100, 983, 365, 686, 451, 475, 8808, 51, 12783, 341, 5569, 45001, 10550, 303, 4741, 829, 475, 8808, 1648, 1307, 8940, 545, 2448, 829, 36808, 51, 465, 1547, 303, 2101, 100, 13004, 299, 821, 51, 18099, 494, 821, 51, 14528, 100, 30285, 494, 5471, 15727, 303, 1650, 113, 299, 9332, 837, 63, 837, 434, 837, 347, 2101, 100, 13004, 832, 25848, 303, 461, 34946, 2548, 2034, 1568, 113, 45, 125, 46, 456, 837, 347, 640, 100, 6446, 100, 983, 45, 6446, 14935, 499, 222, 610, 640, 100, 23764, 100, 1687, 45, 6446, 49, 2505, 731, 303, 1614, 63, 310, 5569, 1537, 299, 2355, 51, 1005, 51, 2548, 45, 745, 51, 3563, 1388, 108, 1526, 3461, 640, 100, 6446, 100, 444, 45, 6446, 509, 310, 642, 1142, 51, 31183, 45, 2929, 1537, 490, 2177, 45, 519, 51, 1920, 1710, 49, 332, 124, 678, 641, 315, 1710, 63, 343, 2419, 100, 2159, 299, 1524, 100, 2051, 14274, 2929, 411, 332, 7674, 411, 7931, 43421, 66, 53, 411, 7931, 3981, 411, 2505, 636, 16148, 66, 107, 1710, 5630, 53, 6012, 54, 98, 343, 16272, 299, 1524, 100, 2051, 14274, 2929, 411, 332, 9892, 50, 687, 411, 2419, 100, 2159, 494, 27182, 39, 494, 2505, 49, 7931, 1016, 6957, 603, 1074, 299, 5471, 120, 10045, 120, 494, 925, 120, 16272, 4748, 925, 327, 631, 2934, 61, 636, 2419, 100, 2159, 49, 16272, 96, 53, 6012, 54, 1156, 303, 2959, 63, 310, 1074, 299, 2505, 2934, 61, 98, 494, 332, 332, 494, 11616, 2042, 2621, 2448, 4748, 465, 461, 1074, 499, 222, 610, 640, 100, 3266, 45, 597, 731, 303, 2505, 299, 477, 1388, 631, 1465, 303, 5569, 1537, 299, 2355, 51, 1005, 51, 2548, 45, 745, 51, 3563, 1388, 108, 1526, 3461, 640, 100, 6446, 100, 444, 45, 597, 1388, 6446, 23830, 303, 434, 666, 2355, 51, 1005, 51, 4678, 45, 2929, 1537, 731, 310, 1614, 63, 343, 2001, 299, 1142, 51, 3563, 1388, 2630, 50, 1805, 50, 983, 1465, 494, 332, 6446, 366, 494, 640, 100, 6446, 100, 983, 45, 597, 1388, 6446, 6957, 494, 14238, 631, 366, 494, 2505, 343, 642, 22296, 55, 51, 324, 33875, 45, 983, 46, 641, 1808, 63, 419, 4369, 299, 2379, 51, 13428, 45, 2003, 51, 870, 941, 5480, 1177, 1388, 3266, 1465, 419, 461, 4369, 310, 2959, 63, 343, 1142, 51, 769, 45, 597, 49, 332, 10436, 63, 1307, 4369, 664, 3337, 50, 1805, 411, 2505, 46, 343, 22977, 45, 597, 1388, 444, 3461, 477, 1388, 6446, 6957, 465, 642, 1142, 51, 31183, 45, 2929, 1537, 490, 2177, 45, 519, 51, 1920, 1710, 49, 332, 124, 678, 641, 315, 1710, 63, 310, 434, 1495, 14274, 2929, 411, 332, 9892, 50, 2228, 411, 2505, 494, 9053, 128, 1491, 130, 3461, 12544, 66, 107, 1710, 49, 16148, 66, 107, 1710, 731, 343, 607, 902, 1348, 5895, 477, 2505, 51, 458, 580, 17114, 68, 343, 1495, 14274, 2929, 411, 332, 5151, 411, 332, 6954, 3461, 12544, 66, 107, 1710, 49, 16148, 66, 107, 1710, 46, 603, 1614, 63, 343, 4369, 299, 1524, 100, 2051, 14274, 2929, 411, 332, 9892, 50, 2228, 411, 2505, 494, 9053, 128, 3266, 130, 3461, 36586, 100, 909, 4466, 66, 1844, 5630, 53, 6012, 54, 98, 343, 461, 4369, 603, 2959, 63, 343, 607, 3173, 1019, 2818, 1348, 1178, 331, 5569, 4937, 49, 575, 2505, 458, 666, 5823, 343, 607, 575, 2505, 1976, 666, 2325, 1083, 1142, 51, 769, 45, 597, 49, 332, 2946, 63, 3087, 666, 2309, 4369, 456, 2505, 411, 2505, 46, 343, 3655, 1189, 8121, 499, 222, 610, 1948, 100, 6446, 45, 6446, 49, 3481, 1537, 731, 303, 1547, 19668, 753, 331, 10812, 5347, 2012, 331, 3378, 1493, 9210, 51, 465, 1369, 2353, 11000, 992, 341, 5347, 41229, 49, 1278, 708, 580, 902, 4814, 303, 1361, 5795, 51, 244, 2048, 1976, 666, 11920, 1364, 2716, 5586, 8768, 456, 813, 51, 465, 1547, 465, 607, 5305, 51, 30131, 1414, 545, 920, 1278, 708, 5569, 6560, 1093, 4973, 1409, 23531, 904, 4222, 303, 607, 1019, 764, 666, 2660, 341, 7391, 6564, 391, 35300, 641, 331, 22977, 456, 5093, 120, 303, 607, 1019, 2660, 331, 35932, 29265, 52, 20342, 984, 29265, 52, 3560, 8365, 52, 6954, 2505, 8023, 303, 607, 758, 341, 7391, 2001, 391, 341, 10812, 5885, 1278, 708, 1019, 902, 16937, 5084, 992, 303, 607, 829, 8928, 318, 341, 29265, 49, 1019, 902, 1636, 4588, 1636, 949, 50, 6308, 296, 12326, 303, 1495, 14274, 2217, 411, 4840, 102, 411, 5885, 49, 2355, 51, 1005, 51, 2548, 45, 3332, 1537, 49, 4956, 2929, 678, 1156, 303, 1495, 14274, 2929, 411, 332, 1180, 411, 332, 1284, 51, 30131, 411, 332, 1886, 6957, 303, 1495, 14274, 2929, 411, 332, 1180, 411, 7931, 16801, 411, 332, 7004, 51, 6954, 51, 16720, 6957, 303, 642, 2177, 45, 519, 51, 1920, 1710, 49, 332, 124, 678, 641, 315, 1710, 63, 310, 1495, 14274, 2929, 411, 332, 1180, 411, 332, 7004, 51, 6954, 51, 5151, 411, 6771, 8053, 52, 20342, 1127, 63, 8053, 52, 3560, 8365, 52, 6954, 1127, 3461, 12544, 66, 107, 1710, 49, 16148, 66, 107, 1710, 46, 303, 1495, 14274, 2929, 411, 332, 1180, 411, 332, 7004, 51, 6954, 51, 983, 411, 5885, 1156, 303, 1495, 14274, 2929, 411, 332, 2440, 50, 8053, 411, 7931, 483, 411, 7931, 38285, 6957, 465, 607, 6940, 29265, 52, 20342, 1127, 2012, 29265, 52, 3560, 8365, 52, 6954, 1127, 347, 341, 25617, 29265, 303, 607, 1278, 708, 341, 556, 1948, 44832, 1851, 2144, 331, 35932, 7905, 51, 303, 642, 2177, 45, 519, 51, 1005, 51, 2548, 45, 3332, 1537, 49, 4956, 2929, 411, 332, 21290, 50, 8053, 2132, 332, 119, 678, 641, 2505, 100, 13531, 63, 310, 8928, 100, 4466, 299, 2505, 100, 13531, 51, 870, 941, 3045, 5564, 115, 678, 303, 642, 2177, 45, 519, 51, 1005, 51, 2548, 45, 3332, 1537, 49, 4956, 2929, 411, 332, 21290, 50, 8053, 2132, 332, 124, 678, 641, 2505, 100, 13531, 63, 310, 2505, 100, 13531, 51, 1838, 45, 2440, 100, 4466, 51, 3254, 45, 53, 46, 494, 2724, 115, 678, 310, 456, 2505, 948, 347, 8928, 100, 4466, 63, 343, 434, 332, 29265, 52, 3560, 8365, 5694, 347, 2505, 948, 63, 419, 4056, 343, 434, 332, 29265, 52, 20342, 5694, 347, 2505, 948, 63, 419, 9635, 49, 2505, 299, 2505, 948, 2934, 57, 53, 636, 2505, 948, 96, 57, 54, 10209, 419, 434, 2505, 51, 16030, 459, 8053, 52, 20342, 52, 10320, 547, 2505, 299, 332, 8053, 52, 3560, 8365, 52, 6954, 5694, 494, 2505, 96, 54, 54, 10209, 419, 2505, 948, 299, 5471, 120, 925, 120, 39, 925, 327, 5578, 49, 2505, 46, 343, 2505, 100, 13531, 51, 1838, 4923, 120, 97, 115, 39, 925, 327, 631, 948, 509, 303, 607, 25605, 1441, 331, 6564, 1991, 391, 4250, 992, 341, 29265, 8768, 456, 813, 51, 303, 642, 2177, 45, 519, 51, 1920, 1710, 49, 332, 124, 678, 641, 315, 1710, 63, 310, 1495, 14274, 2929, 411, 332, 7004, 411, 332, 1896, 411, 332, 6954, 411, 7931, 38285, 3461, 12544, 66, 107, 1710, 49, 16148, 66, 107, 1710, 46, 499, 222, 610, 22977, 45, 444, 49, 5885, 731, 303, 607, 1614, 45001, 483, 1950, 303, 5569, 1537, 299, 2355, 51, 1005, 51, 2548, 45, 745, 51, 3563, 1388, 108, 1526, 3461, 640, 100, 6446, 100, 444, 45, 6446, 509, 303, 5885, 100, 983, 299, 640, 100, 6446, 100, 983, 45, 6446, 46, 303, 1614, 63, 310, 2355, 51, 27625, 45, 2929, 1537, 46, 310, 13572, 100, 781, 299, 640, 100, 6446, 100, 444, 45, 6446, 100, 983, 46, 494, 4956, 5384, 39, 310, 1142, 51, 769, 45, 444, 49, 332, 8305, 26845, 45001, 483, 925, 120, 39, 925, 13572, 100, 781, 46, 310, 642, 1142, 51, 31183, 45, 2929, 1537, 490, 2177, 45, 519, 51, 1920, 1710, 49, 332, 124, 678, 641, 315, 1710, 63, 343, 1495, 14274, 22866, 411, 1142, 1388, 5384, 50, 983, 40669, 12544, 66, 107, 1710, 49, 16148, 66, 107, 1710, 46, 343, 1495, 14274, 5384, 411, 332, 2088, 411, 13572, 100, 781, 636, 12544, 66, 107, 1710, 49, 16148, 66, 107, 1710, 46, 343, 2355, 51, 2564, 45, 5384, 100, 781, 46, 343, 1495, 14274, 2929, 411, 332, 1180, 411, 332, 7004, 51, 6954, 51, 983, 411, 5885, 100, 983, 636, 12544, 66, 107, 1710, 49, 16148, 66, 107, 1710, 46, 343, 1495, 14274, 2929, 411, 332, 1180, 411, 332, 7004, 51, 6954, 51, 16720, 411, 332, 1527, 3461, 12544, 66, 107, 1710, 49, 16148, 66, 107, 1710, 46, 343, 434, 1495, 14274, 2929, 411, 332, 1180, 411, 332, 7004, 51, 6954, 51, 5151, 411, 6771, 8053, 1127, 63, 8053, 1127, 3461, 12544, 66, 107, 1710, 49, 16148, 66, 107, 1710, 46, 882, 244, 53, 63, 419, 3655, 3787, 1002, 459, 11163, 666, 640, 331, 2101, 5569, 5885, 678, 343, 1495, 14274, 2929, 411, 332, 5151, 411, 332, 6954, 3461, 12544, 66, 107, 1710, 49, 16148, 66, 107, 1710, 46, 303, 2959, 63, 310, 1142, 51, 769, 45, 444, 49, 332, 9529, 5569, 7905, 664, 3021, 5885, 100, 983, 46, 310, 1614, 63, 343, 642, 2177, 45, 519, 51, 1920, 1710, 49, 332, 124, 678, 641, 315, 1710, 63, 419, 1495, 14274, 2929, 411, 332, 6371, 411, 7931, 16720, 411, 4840, 115, 411, 5885, 100, 983, 49, 5569, 1537, 636, 12544, 66, 107, 1710, 49, 16148, 66, 107, 1710, 46, 310, 2959, 63, 343, 1142, 51, 769, 45, 444, 49, 332, 2946, 63, 3818, 391, 7905, 411, 5885, 46, 343, 3655, 1189, 8121, 465, 1142, 51, 769, 45, 444, 49, 332, 7556, 5885, 458, 28524, 30048, 840, 411, 5569, 1537, 46, 499, 222, 610, 5644, 45, 6446, 731, 303, 642, 1142, 51, 31183, 45, 6446, 490, 2177, 45, 519, 51, 1920, 1710, 49, 332, 124, 678, 641, 315, 1710, 63, 310, 1495, 14274, 2929, 411, 332, 5151, 411, 332, 6954, 3461, 12544, 66, 107, 1710, 49, 16148, 66, 107, 1710, 46, 499, 222, 610, 18109, 45, 444, 49, 5885, 49, 2505, 49, 18109, 1537, 731, 303, 5569, 1537, 299, 2355, 51, 1005, 51, 2548, 45, 745, 51, 3563, 1388, 108, 1526, 3461, 640, 100, 6446, 100, 444, 45, 6446, 509, 303, 434, 666, 2355, 51, 1005, 51, 4678, 45, 2929, 1537, 731, 310, 22977, 45, 444, 49, 5885, 46, 303, 1142, 51, 769, 45, 444, 49, 332, 33675, 1522, 9398, 640, 100, 23764, 100, 1687, 45, 6446, 49, 2505, 509, 303, 1142, 51, 769, 45, 444, 49, 332, 7556, 18109, 925, 120, 347, 925, 120, 39, 925, 327, 6446, 49, 18109, 1537, 509, 303, 607, 18109, 341, 2147, 1522, 451, 477, 664, 5569, 303, 642, 1142, 51, 31183, 45, 15200, 1537, 490, 2177, 45, 519, 51, 1920, 1710, 49, 332, 124, 678, 641, 315, 1710, 63, 310, 1948, 100, 6446, 45, 2929, 1537, 49, 18109, 1537, 46, 310, 434, 1495, 14274, 2929, 411, 332, 15200, 411, 2505, 636, 12544, 66, 107, 1710, 49, 16148, 66, 107, 1710, 731, 343, 1142, 51, 769, 45, 444, 49, 332, 2946, 63, 5569, 18109, 3818, 456, 411, 2505, 46, 343, 3655, 1189, 8121, 603, 434, 2355, 51, 1005, 51, 4678, 5804, 2929, 3490, 10320, 343, 18109, 100, 1133, 3490, 45, 444, 49, 2505, 46, 465, 8767, 51, 489, 100, 29351, 100, 287, 33024, 45, 15200, 1537, 46, 499, 222, 610, 18109, 100, 1133, 3490, 45, 444, 49, 2505, 731, 303, 1142, 51, 769, 45, 444, 49, 332, 7556, 1381, 3490, 678, 303, 642, 2177, 5804, 2929, 3490, 411, 332, 119, 678, 641, 5569, 781, 63, 310, 607, 6310, 33174, 347, 15528, 49, 641, 16297, 46416, 4897, 2902, 580, 310, 1813, 299, 2724, 115, 2316, 2548, 2034, 113, 51, 7237, 365, 456, 475, 347, 5569, 781, 51, 870, 941, 3045, 4466, 28160, 303, 3377, 299, 44614, 51, 671, 2354, 45, 1304, 46, 303, 4138, 299, 3395, 2837, 51, 6200, 46416, 365, 303, 4138, 51, 870, 4448, 45, 735, 46, 465, 456, 4193, 347, 4138, 51, 15485, 2284, 310, 607, 6051, 4193, 655, 8209, 341, 349, 1133, 1663, 332, 4003, 14890, 5275, 310, 34381, 299, 334, 51, 1133, 45, 119, 1200, 375, 1663, 11616, 3440, 4748, 389, 559, 7660, 54, 411, 4193, 46, 310, 2001, 299, 4138, 51, 390, 45, 1923, 49, 332, 983, 678, 310, 1536, 299, 4138, 51, 390, 45, 1923, 49, 332, 1005, 678, 603, 1614, 63, 343, 607, 1168, 4706, 347, 341, 2952, 5885, 4369, 391, 2309, 341, 4591, 343, 607, 1319, 708, 20883, 391, 341, 34381, 343, 4591, 299, 1524, 100, 2051, 14274, 2929, 411, 332, 3259, 50, 3266, 411, 2505, 49, 1536, 1156, 1083, 607, 1511, 341, 4591, 3696, 664, 341, 1716, 343, 3844, 299, 4591, 51, 3045, 365, 343, 434, 2095, 45, 4169, 46, 2394, 244, 55, 480, 3844, 96, 54, 98, 630, 332, 3388, 582, 419, 34381, 100, 3388, 299, 4591, 51, 3045, 8577, 55, 98, 2125, 607, 3562, 434, 341, 4591, 3696, 458, 5549, 419, 434, 2095, 45, 1133, 1663, 100, 3388, 46, 882, 244, 57, 53, 63, 547, 3655, 3284, 2125, 3559, 1537, 299, 2355, 51, 1005, 51, 2548, 45, 519, 51, 33550, 1046, 1536, 46, 419, 18109, 45, 1133, 1663, 49, 2001, 49, 34381, 100, 3388, 49, 3559, 1537, 46, 1083, 832, 63, 419, 1142, 51, 769, 45, 597, 49, 349, 41232, 34381, 5471, 120, 39, 641, 925, 120, 6081, 120, 1421, 331, 3000, 50, 3388, 1319, 456, 580, 44, 925, 327, 444, 49, 2001, 509, 603, 2959, 63, 343, 1142, 51, 769, 45, 444, 49, 332, 2946, 63, 5590, 1381, 3490, 3732, 678, 343, 3655, 1189, 8121, 222 ]
[ "#!/", "usr", "/", "bin", "/", "env", "Ġpython", "3", "Ċ", "#", "Ċ", "#", "ĠCopyright", "Ġ(", "C", ")", "Ġ", "2", "0", "1", "1", "-", "2", "0", "1", "5", "Ġ", "ĠCode", "think", "ĠLimited", "Ċ", "#", "Ċ", "#", "ĠThis", "Ġprogram", "Ġis", "Ġfree", "Ġsoftware", ";", "Ġyou", "Ġcan", "Ġredistribute", "Ġit", "Ġand", "/", "or", "Ġmodify", "Ċ", "#", "Ġit", "Ġunder", "Ġthe", "Ġterms", "Ġof", "Ġthe", "ĠGNU", "ĠGeneral", "ĠPublic", "ĠLicense", "Ġas", "Ġpublished", "Ġby", "Ċ", "#", "Ġthe", "ĠFree", "ĠSoftware", "ĠFoundation", ";", "Ġversion", "Ġ", "2", "Ġof", "Ġthe", "ĠLicense", ".", "Ċ", "#", "Ċ", "#", "ĠThis", "Ġprogram", "Ġis", "Ġdistributed", "Ġin", "Ġthe", "Ġhope", "Ġthat", "Ġit", "Ġwill", "Ġbe", "Ġuseful", ",", "Ċ", "#", "Ġbut", "ĠWITHOUT", "ĠANY", "ĠWARRANTY", ";", "Ġwithout", "Ġeven", "Ġthe", "Ġimplied", "Ġwarranty", "Ġof", "Ċ", "#", "ĠMERCHANTABILITY", "Ġor", "ĠFITNESS", "ĠFOR", "ĠA", "ĠPARTICULAR", "ĠPURPOSE", ".", "Ġ", "ĠSee", "Ġthe", "Ċ", "#", "ĠGNU", "ĠGeneral", "ĠPublic", "ĠLicense", "Ġfor", "Ġmore", "Ġdetails", ".", "Ċ", "#", "Ċ", "#", "ĠYou", "Ġshould", "Ġhave", "Ġreceived", "Ġa", "Ġcopy", "Ġof", "Ġthe", "ĠGNU", "ĠGeneral", "ĠPublic", "ĠLicense", "Ġalong", "Ċ", "#", "Ġwith", "Ġthis", "Ġprogram", ";", "Ġif", "Ġnot", ",", "Ġwrite", "Ġto", "Ġthe", "ĠFree", "ĠSoftware", "ĠFoundation", ",", "ĠInc", ".,", "Ċ", "#", "Ġ", "5", "1", "ĠFranklin", "ĠStreet", ",", "ĠFifth", "ĠFloor", ",", "ĠBoston", ",", "ĠMA", "Ġ", "0", "2", "1", "1", "0", "-", "1", "3", "0", "1", "ĠUSA", ".", "Ċ", "#", "Ċ", "#", "Ġ=", "*=", "ĠLicense", ":", "ĠGPL", "-", "2", "Ġ=", "*=", "Ċ", "Ċ", "import", "Ġos", "Ċ", "import", "Ġapp", "Ċ", "import", "Ġre", "Ċ", "from", "Ġsubprocess", "Ġimport", "Ġcall", "Ċ", "from", "Ġsubprocess", "Ġimport", "Ġcheck", "_", "output", "Ċ", "import", "Ġstring", "Ċ", "import", "Ġdefinitions", "Ċ", "import", "Ġurllib", "2", "Ċ", "import", "Ġjson", "Ċ", "import", "Ġutils", "Ċ", "import", "ĠConfig", "Parser", "Ċ", "import", "ĠStringIO", "Ċ", "import", "Ġre", "ĊĊ", "Ċ", "def", "Ġget", "_", "repo", "_", "url", "(", "repo", "):", "ĊĠĠĠ", "Ġurl", "Ġ=", "Ġrepo", ".", "replace", "(\"", "upstream", ":\",", "Ġ\"", "git", "://", "git", ".", "bas", "er", "ock", ".", "org", "/", "delta", "/\")", "ĊĠĠĠ", "Ġurl", "Ġ=", "Ġurl", ".", "replace", "(\"", "bas", "er", "ock", ":", "bas", "er", "ock", "/\",", "Ġ\"", "git", "://", "git", ".", "bas", "er", "ock", ".", "org", "/", "bas", "er", "ock", "/", "bas", "er", "ock", "/\")", "ĊĠĠĠ", "Ġurl", "Ġ=", "Ġurl", ".", "replace", "(\"", "free", "desktop", ":\",", "Ġ\"", "git", "://", "an", "ong", "it", ".", "free", "desktop", ".", "org", "/\")", "ĊĠĠĠ", "Ġurl", "Ġ=", "Ġurl", ".", "replace", "(\"", "github", ":\",", "Ġ\"", "git", "://", "github", ".", "com", "/\")", "ĊĠĠĠ", "Ġurl", "Ġ=", "Ġurl", ".", "replace", "(\"", "gnome", ":\",", "Ġ\"", "git", "://", "git", ".", "gnome", ".", "org", "\")", "ĊĠĠĠ", "Ġif", "Ġurl", ".", "endswith", "(\".", "git", "\"):", "ĊĠĠĠĠĠĠĠ", "Ġurl", "Ġ=", "Ġurl", "[:-", "4", "]", "ĊĠĠĠ", "Ġreturn", "Ġurl", "ĊĊ", "Ċ", "def", "Ġget", "_", "repo", "_", "name", "(", "repo", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Convert", "ĠURIs", "Ġto", "Ġstrings", "Ġthat", "Ġonly", "Ġcontain", "Ġdigits", ",", "Ġletters", ",", "Ġ_", "Ġand", "Ġ%.", "ĊĊĠĠĠ", "ĠNOTE", ":", "ĠWhen", "Ġchanging", "Ġthe", "Ġcode", "Ġof", "Ġthis", "Ġfunction", ",", "Ġmake", "Ġsure", "Ġto", "Ġalso", "Ġapply", "ĊĠĠĠ", "Ġthe", "Ġsame", "Ġto", "Ġthe", "Ġquote", "_", "url", "()", "Ġfunction", "Ġof", "Ġl", "orry", ".", "ĠOtherwise", "Ġthe", "Ġgit", "Ġtarb", "alls", "ĊĠĠĠ", "Ġgenerated", "Ġby", "Ġl", "orry", "Ġmay", "Ġno", "Ġlonger", "Ġbe", "Ġfound", "Ġby", "Ġmorph", ".", "ĊĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġvalid", "_", "chars", "Ġ=", "Ġstring", ".", "digits", "Ġ+", "Ġstring", ".", "ascii", "_", "letters", "Ġ+", "Ġ\"%", "_\"", "ĊĠĠĠ", "Ġtrans", "l", "Ġ=", "Ġlambda", "Ġx", ":", "Ġx", "Ġif", "Ġx", "Ġin", "Ġvalid", "_", "chars", "Ġelse", "Ġ\"_\"", "ĊĠĠĠ", "Ġreturn", "Ġ\"\".", "join", "([", "trans", "l", "(", "x", ")", "Ġfor", "Ġx", "Ġin", "Ġget", "_", "repo", "_", "url", "(", "repo", ")])", "ĊĊ", "Ċ", "def", "Ġget", "_", "upstream", "_", "version", "(", "repo", ",", "Ġref", "):", "ĊĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠ", "Ġgit", "dir", "Ġ=", "Ġos", ".", "path", ".", "join", "(", "app", ".", "settings", "[\"", "g", "its", "\"],", "Ġget", "_", "repo", "_", "name", "(", "repo", "))", "ĊĠĠĠĠĠĠĠ", "Ġwith", "Ġapp", ".", "chdir", "(", "git", "dir", "),", "Ġopen", "(", "os", ".", "dev", "null", ",", "Ġ\"", "w", "\")", "Ġas", "Ġf", "null", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlast", "_", "tag", "Ġ=", "Ġcheck", "_", "output", "([\"", "git", "\",", "Ġ\"", "describe", "\",", "Ġ\"--", "abbrev", "=", "0", "\",", "Ġ\"--", "tags", "\",", "Ġref", "],", "Ġstderr", "=", "f", "null", ")[", "0", ":-", "1", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcommits", "Ġ=", "Ġcheck", "_", "output", "([\"", "git", "\",", "Ġ\"", "rev", "-", "list", "\",", "Ġlast", "_", "tag", "Ġ+", "Ġ\"..", "\"", "Ġ+", "Ġref", ",", "Ġ\"--", "count", "\"])", "ĊĊĠĠĠĠĠĠĠ", "Ġresult", "Ġ=", "Ġ\"%", "s", "Ġ(%", "s", "Ġ+", "Ġ%", "s", "Ġcommits", ")\"", "Ġ%", "Ġ(", "ref", "[:", "8", "],", "Ġlast", "_", "tag", ",", "Ġcommits", "[", "0", ":-", "1", "])", "ĊĠĠĠ", "Ġexcept", ":", "ĊĠĠĠĠĠĠĠ", "Ġresult", "Ġ=", "Ġref", "[:", "8", "]", "Ġ+", "Ġ\"", "Ġ\"", "Ġ+", "Ġ\"(", "No", "Ġtag", "Ġfound", ")\"", "ĊĊĠĠĠ", "Ġreturn", "Ġresult", "ĊĊ", "Ċ", "def", "Ġget", "_", "tree", "(", "this", "):", "ĊĠĠĠ", "Ġref", "Ġ=", "Ġthis", "[\"", "ref", "\"]", "ĊĠĠĠ", "Ġgit", "dir", "Ġ=", "Ġos", ".", "path", ".", "join", "(", "app", ".", "settings", "[\"", "g", "its", "\"],", "Ġget", "_", "repo", "_", "name", "(", "this", "[\"", "repo", "\"]))", "ĊĠĠĠ", "Ġif", "Ġnot", "Ġos", ".", "path", ".", "exists", "(", "git", "dir", "):", "ĊĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġurl", "Ġ=", "Ġapp", ".", "settings", "[\"", "cache", "-", "server", "-", "url", "\"]", "Ġ+", "Ġ\"", "repo", "=\"", "Ġ+", "Ġget", "_", "repo", "_", "url", "(", "this", "[\"", "repo", "\"])", "Ġ+", "Ġ\"&", "ref", "=\"", "Ġ+", "Ġref", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġwith", "Ġurllib", "2", ".", "ur", "lopen", "(", "url", ")", "Ġas", "Ġresponse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtree", "Ġ=", "Ġjson", ".", "loads", "(", "response", ".", "read", "().", "decode", "())", "[\"", "tree", "\"]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġtree", "ĊĠĠĠĠĠĠĠ", "Ġexcept", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġapp", ".", "log", "(", "this", ",", "Ġ\"", "WARNING", ":", "Ġno", "Ġtree", "Ġfrom", "Ġcache", "-", "server", "\",", "Ġref", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġmirror", "(", "this", "[\"", "name", "\"],", "Ġthis", "[\"", "repo", "\"])", "ĊĊĠĠĠ", "Ġwith", "Ġapp", ".", "chdir", "(", "git", "dir", "),", "Ġopen", "(", "os", ".", "dev", "null", ",", "Ġ\"", "w", "\")", "Ġas", "Ġf", "null", ":", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġcall", "([\"", "git", "\",", "Ġ\"", "rev", "-", "parse", "\",", "Ġref", "Ġ+", "Ġ\"^", "{", "object", "}", "\"],", "Ġstdout", "=", "f", "null", ",", "Ġstderr", "=", "f", "null", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġcan", "'t", "Ġresolve", "Ġthis", "Ġref", ".", "Ġis", "Ġit", "Ġupstream", "?", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcall", "([\"", "git", "\",", "Ġ\"", "fetch", "\",", "Ġ\"", "origin", "\"],", "Ġstdout", "=", "f", "null", ",", "Ġstderr", "=", "f", "null", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtree", "Ġ=", "Ġcheck", "_", "output", "([\"", "git", "\",", "Ġ\"", "rev", "-", "parse", "\",", "Ġref", "Ġ+", "Ġ\"^", "{", "tree", "}", "\"],", "Ġuniversal", "_", "new", "lines", "=", "True", ")[", "0", ":-", "1", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġtree", "ĊĊĠĠĠĠĠĠĠ", "Ġexcept", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġeither", "Ġwe", "Ġdon", "'t", "Ġhave", "Ġa", "Ġgit", "Ġdir", ",", "Ġor", "Ġref", "Ġis", "Ġnot", "Ġunique", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġor", "Ġref", "Ġdoes", "Ġnot", "Ġexist", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġapp", ".", "log", "(", "this", ",", "Ġ\"", "ERROR", ":", "Ġcould", "Ġnot", "Ġfind", "Ġtree", "Ġfor", "Ġref", "\",", "Ġref", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġraise", "ĠSystem", "Exit", "ĊĊ", "Ċ", "def", "Ġcopy", "_", "repo", "(", "repo", ",", "Ġdest", "dir", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Cop", "ies", "Ġa", "Ġcached", "Ġrepository", "Ġinto", "Ġa", "Ġdirectory", "Ġusing", "Ġcp", ".", "ĊĊĠĠĠ", "ĠThis", "Ġalso", "Ġfixes", "Ġup", "Ġthe", "Ġrepository", "Ġafterwards", ",", "Ġso", "Ġthat", "Ġit", "Ġcan", "Ġcontain", "ĊĠĠĠ", "Ġcode", "Ġetc", ".", "Ġ", "ĠIt", "Ġdoes", "Ġnot", "Ġleave", "Ġany", "Ġgiven", "Ġbranch", "Ġready", "Ġfor", "Ġuse", ".", "ĊĊĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠ", "Ġ#", "Ġcore", ".", "bare", "Ġshould", "Ġbe", "Ġfalse", "Ġso", "Ġthat", "Ġgit", "Ġbel", "ie", "ves", "Ġwork", "Ġtrees", "Ġare", "Ġpossible", "ĊĠĠĠ", "Ġ#", "Ġwe", "Ġdo", "Ġnot", "Ġwant", "Ġthe", "Ġorigin", "Ġremote", "Ġto", "Ġbehave", "Ġas", "Ġa", "Ġmirror", "Ġfor", "Ġpull", "s", "ĊĠĠĠ", "Ġ#", "Ġwe", "Ġwant", "Ġa", "Ġtraditional", "Ġrefs", "/", "heads", "Ġ->", "Ġrefs", "/", "rem", "otes", "/", "origin", "Ġref", "Ġmapping", "ĊĠĠĠ", "Ġ#", "Ġset", "Ġthe", "Ġorigin", "Ġurl", "Ġto", "Ġthe", "Ġcached", "Ġrepo", "Ġso", "Ġthat", "Ġwe", "Ġcan", "Ġquickly", "Ġclean", "Ġup", "ĊĠĠĠ", "Ġ#", "Ġby", "Ġpack", "ing", "Ġthe", "Ġrefs", ",", "Ġwe", "Ġcan", "Ġthen", "Ġedit", "Ġthen", "Ġen", "-", "mas", "se", "Ġeasily", "ĊĠĠĠ", "Ġcall", "([\"", "cp", "\",", "Ġ\"-", "a", "\",", "Ġrepo", ",", "Ġos", ".", "path", ".", "join", "(", "dest", "dir", ",", "Ġ\".", "git", "\")", "])", "ĊĠĠĠ", "Ġcall", "([\"", "git", "\",", "Ġ\"", "config", "\",", "Ġ\"", "core", ".", "bare", "\",", "Ġ\"", "false", "\"])", "ĊĠĠĠ", "Ġcall", "([\"", "git", "\",", "Ġ\"", "config", "\",", "Ġ\"--", "unset", "\",", "Ġ\"", "remote", ".", "origin", ".", "mirror", "\"])", "ĊĠĠĠ", "Ġwith", "Ġopen", "(", "os", ".", "dev", "null", ",", "Ġ\"", "w", "\")", "Ġas", "Ġf", "null", ":", "ĊĠĠĠĠĠĠĠ", "Ġcall", "([\"", "git", "\",", "Ġ\"", "config", "\",", "Ġ\"", "remote", ".", "origin", ".", "fetch", "\",", "Ġ\"+", "refs", "/", "heads", "/*", ":", "refs", "/", "rem", "otes", "/", "origin", "/*", "\"],", "Ġstdout", "=", "f", "null", ",", "Ġstderr", "=", "f", "null", ")", "ĊĠĠĠ", "Ġcall", "([\"", "git", "\",", "Ġ\"", "config", "\",", "Ġ\"", "remote", ".", "origin", ".", "url", "\",", "Ġrepo", "])", "ĊĠĠĠ", "Ġcall", "([\"", "git", "\",", "Ġ\"", "pack", "-", "refs", "\",", "Ġ\"--", "all", "\",", "Ġ\"--", "prune", "\"])", "ĊĊĠĠĠ", "Ġ#", "Ġturn", "Ġrefs", "/", "heads", "/*", "Ġinto", "Ġrefs", "/", "rem", "otes", "/", "origin", "/*", "Ġin", "Ġthe", "Ġpacked", "Ġrefs", "ĊĠĠĠ", "Ġ#", "Ġso", "Ġthat", "Ġthe", "Ġnew", "Ġcopy", "Ġbehaves", "Ġmore", "Ġlike", "Ġa", "Ġtraditional", "Ġclone", ".", "ĊĠĠĠ", "Ġwith", "Ġopen", "(", "os", ".", "path", ".", "join", "(", "dest", "dir", ",", "Ġ\".", "git", "\",", "Ġ\"", "packed", "-", "refs", "\"),", "Ġ\"", "r", "\")", "Ġas", "Ġref", "_", "fh", ":", "ĊĠĠĠĠĠĠĠ", "Ġpack", "_", "lines", "Ġ=", "Ġref", "_", "fh", ".", "read", "().", "split", "(\"\\", "n", "\")", "ĊĠĠĠ", "Ġwith", "Ġopen", "(", "os", ".", "path", ".", "join", "(", "dest", "dir", ",", "Ġ\".", "git", "\",", "Ġ\"", "packed", "-", "refs", "\"),", "Ġ\"", "w", "\")", "Ġas", "Ġref", "_", "fh", ":", "ĊĠĠĠĠĠĠĠ", "Ġref", "_", "fh", ".", "write", "(", "pack", "_", "lines", ".", "pop", "(", "0", ")", "Ġ+", "Ġ\"\\", "n", "\")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġref", "line", "Ġin", "Ġpack", "_", "lines", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġ\"", "Ġrefs", "/", "rem", "otes", "/\"", "Ġin", "Ġref", "line", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcontinue", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġ\"", "Ġrefs", "/", "heads", "/\"", "Ġin", "Ġref", "line", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġsha", ",", "Ġref", "Ġ=", "Ġref", "line", "[:", "4", "0", "],", "Ġref", "line", "[", "4", "1", ":]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġref", ".", "startswith", "(\"", "refs", "/", "heads", "/", "\"):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġref", "Ġ=", "Ġ\"", "refs", "/", "rem", "otes", "/", "origin", "/\"", "Ġ+", "Ġref", "[", "1", "1", ":]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġref", "line", "Ġ=", "Ġ\"%", "s", "Ġ%", "s", "\"", "Ġ%", "Ġ(", "sha", ",", "Ġref", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġref", "_", "fh", ".", "write", "(\"%", "s", "\\", "n", "\"", "Ġ%", "Ġ(", "ref", "line", "))", "ĊĠĠĠ", "Ġ#", "ĠFinally", "Ġrun", "Ġa", "Ġremote", "Ġupdate", "Ġto", "Ġclear", "Ġup", "Ġthe", "Ġrefs", "Ġready", "Ġfor", "Ġuse", ".", "ĊĠĠĠ", "Ġwith", "Ġopen", "(", "os", ".", "dev", "null", ",", "Ġ\"", "w", "\")", "Ġas", "Ġf", "null", ":", "ĊĠĠĠĠĠĠĠ", "Ġcall", "([\"", "git", "\",", "Ġ\"", "remote", "\",", "Ġ\"", "update", "\",", "Ġ\"", "origin", "\",", "Ġ\"--", "prune", "\"],", "Ġstdout", "=", "f", "null", ",", "Ġstderr", "=", "f", "null", ")", "ĊĊ", "Ċ", "def", "Ġmirror", "(", "name", ",", "Ġrepo", "):", "ĊĠĠĠ", "Ġ#", "Ġtry", "Ġtarb", "all", "Ġfirst", "ĊĠĠĠ", "Ġgit", "dir", "Ġ=", "Ġos", ".", "path", ".", "join", "(", "app", ".", "settings", "[\"", "g", "its", "\"],", "Ġget", "_", "repo", "_", "name", "(", "repo", "))", "ĊĠĠĠ", "Ġrepo", "_", "url", "Ġ=", "Ġget", "_", "repo", "_", "url", "(", "repo", ")", "ĊĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠ", "Ġos", ".", "makedirs", "(", "git", "dir", ")", "ĊĠĠĠĠĠĠĠ", "Ġtar", "_", "file", "Ġ=", "Ġget", "_", "repo", "_", "name", "(", "repo", "_", "url", ")", "Ġ+", "Ġ\".", "tar", "\"", "ĊĠĠĠĠĠĠĠ", "Ġapp", ".", "log", "(", "name", ",", "Ġ\"", "Try", "Ġfetching", "Ġtarb", "all", "Ġ%", "s", "\"", "Ġ%", "Ġtar", "_", "file", ")", "ĊĠĠĠĠĠĠĠ", "Ġwith", "Ġapp", ".", "chdir", "(", "git", "dir", "),", "Ġopen", "(", "os", ".", "dev", "null", ",", "Ġ\"", "w", "\")", "Ġas", "Ġf", "null", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcall", "([\"", "wget", "\",", "Ġapp", "[\"", "tar", "-", "url", "\"]],", "Ġstdout", "=", "f", "null", ",", "Ġstderr", "=", "f", "null", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcall", "([\"", "tar", "\",", "Ġ\"", "xf", "\",", "Ġtar", "_", "file", "],", "Ġstdout", "=", "f", "null", ",", "Ġstderr", "=", "f", "null", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġos", ".", "remove", "(", "tar", "_", "file", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcall", "([\"", "git", "\",", "Ġ\"", "config", "\",", "Ġ\"", "remote", ".", "origin", ".", "url", "\",", "Ġrepo", "_", "url", "],", "Ġstdout", "=", "f", "null", ",", "Ġstderr", "=", "f", "null", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcall", "([\"", "git", "\",", "Ġ\"", "config", "\",", "Ġ\"", "remote", ".", "origin", ".", "mirror", "\",", "Ġ\"", "true", "\"],", "Ġstdout", "=", "f", "null", ",", "Ġstderr", "=", "f", "null", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġcall", "([\"", "git", "\",", "Ġ\"", "config", "\",", "Ġ\"", "remote", ".", "origin", ".", "fetch", "\",", "Ġ\"+", "refs", "/*", ":", "refs", "/*", "\"],", "Ġstdout", "=", "f", "null", ",", "Ġstderr", "=", "f", "null", ")", "Ġ!=", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġraise", "ĠBase", "Exception", "(\"", "Did", "Ġnot", "Ġget", "Ġa", "Ġvalid", "Ġgit", "Ġrepo", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcall", "([\"", "git", "\",", "Ġ\"", "fetch", "\",", "Ġ\"", "origin", "\"],", "Ġstdout", "=", "f", "null", ",", "Ġstderr", "=", "f", "null", ")", "ĊĠĠĠ", "Ġexcept", ":", "ĊĠĠĠĠĠĠĠ", "Ġapp", ".", "log", "(", "name", ",", "Ġ\"", "Using", "Ġgit", "Ġclone", "Ġfrom", "Ġ\",", "Ġrepo", "_", "url", ")", "ĊĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġwith", "Ġopen", "(", "os", ".", "dev", "null", ",", "Ġ\"", "w", "\")", "Ġas", "Ġf", "null", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcall", "([\"", "git", "\",", "Ġ\"", "clone", "\",", "Ġ\"--", "mirror", "\",", "Ġ\"-", "n", "\",", "Ġrepo", "_", "url", ",", "Ġgit", "dir", "],", "Ġstdout", "=", "f", "null", ",", "Ġstderr", "=", "f", "null", ")", "ĊĠĠĠĠĠĠĠ", "Ġexcept", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġapp", ".", "log", "(", "name", ",", "Ġ\"", "ERROR", ":", "Ġfailed", "Ġto", "Ġclone", "\",", "Ġrepo", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġraise", "ĠSystem", "Exit", "ĊĊĠĠĠ", "Ġapp", ".", "log", "(", "name", ",", "Ġ\"", "Git", "Ġrepo", "Ġis", "Ġmir", "rored", "Ġat", "\",", "Ġgit", "dir", ")", "ĊĊ", "Ċ", "def", "Ġfetch", "(", "repo", "):", "ĊĠĠĠ", "Ġwith", "Ġapp", ".", "chdir", "(", "repo", "),", "Ġopen", "(", "os", ".", "dev", "null", ",", "Ġ\"", "w", "\")", "Ġas", "Ġf", "null", ":", "ĊĠĠĠĠĠĠĠ", "Ġcall", "([\"", "git", "\",", "Ġ\"", "fetch", "\",", "Ġ\"", "origin", "\"],", "Ġstdout", "=", "f", "null", ",", "Ġstderr", "=", "f", "null", ")", "ĊĊ", "Ċ", "def", "Ġcheckout", "(", "name", ",", "Ġrepo", ",", "Ġref", ",", "Ġcheckout", "dir", "):", "ĊĠĠĠ", "Ġgit", "dir", "Ġ=", "Ġos", ".", "path", ".", "join", "(", "app", ".", "settings", "[\"", "g", "its", "\"],", "Ġget", "_", "repo", "_", "name", "(", "repo", "))", "ĊĠĠĠ", "Ġif", "Ġnot", "Ġos", ".", "path", ".", "exists", "(", "git", "dir", "):", "ĊĠĠĠĠĠĠĠ", "Ġmirror", "(", "name", ",", "Ġrepo", ")", "ĊĠĠĠ", "Ġapp", ".", "log", "(", "name", ",", "Ġ\"", "Upstream", "Ġversion", ":\",", "Ġget", "_", "upstream", "_", "version", "(", "repo", ",", "Ġref", "))", "ĊĠĠĠ", "Ġapp", ".", "log", "(", "name", ",", "Ġ\"", "Git", "Ġcheckout", "Ġ%", "s", "Ġin", "Ġ%", "s", "\"", "Ġ%", "Ġ(", "repo", ",", "Ġcheckout", "dir", "))", "ĊĠĠĠ", "Ġ#", "Ġcheckout", "Ġthe", "Ġrequired", "Ġversion", "Ġof", "Ġthis", "Ġfrom", "Ġgit", "ĊĠĠĠ", "Ġwith", "Ġapp", ".", "chdir", "(", "checkout", "dir", "),", "Ġopen", "(", "os", ".", "dev", "null", ",", "Ġ\"", "w", "\")", "Ġas", "Ġf", "null", ":", "ĊĠĠĠĠĠĠĠ", "Ġcopy", "_", "repo", "(", "git", "dir", ",", "Ġcheckout", "dir", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġcall", "([\"", "git", "\",", "Ġ\"", "checkout", "\",", "Ġref", "],", "Ġstdout", "=", "f", "null", ",", "Ġstderr", "=", "f", "null", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġapp", ".", "log", "(", "name", ",", "Ġ\"", "ERROR", ":", "Ġgit", "Ġcheckout", "Ġfailed", "Ġfor", "\",", "Ġref", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġraise", "ĠSystem", "Exit", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġos", ".", "path", ".", "exists", "(\".", "git", "modules", "\"):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcheckout", "_", "sub", "modules", "(", "name", ",", "Ġref", ")", "ĊĊĠĠĠ", "Ġutils", ".", "set", "_", "mtime", "_", "re", "cursively", "(", "checkout", "dir", ")", "ĊĊ", "Ċ", "def", "Ġcheckout", "_", "sub", "modules", "(", "name", ",", "Ġref", "):", "ĊĠĠĠ", "Ġapp", ".", "log", "(", "name", ",", "Ġ\"", "Git", "Ġsub", "modules", "\")", "ĊĠĠĠ", "Ġwith", "Ġopen", "(\".", "git", "modules", "\",", "Ġ\"", "r", "\")", "Ġas", "Ġgit", "file", ":", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġdrop", "Ġindentation", "Ġin", "Ġsections", ",", "Ġas", "ĠRaw", "ConfigParser", "Ġcannot", "Ġhandle", "Ġit", "ĊĠĠĠĠĠĠĠ", "Ġcontent", "Ġ=", "Ġ\"\\", "n", "\".", "join", "([", "l", ".", "strip", "()", "Ġfor", "Ġl", "Ġin", "Ġgit", "file", ".", "read", "().", "split", "lines", "()])", "ĊĠĠĠ", "Ġio", "Ġ=", "ĠStringIO", ".", "String", "IO", "(", "content", ")", "ĊĠĠĠ", "Ġparser", "Ġ=", "ĠConfig", "Parser", ".", "Raw", "ConfigParser", "()", "ĊĠĠĠ", "Ġparser", ".", "read", "fp", "(", "io", ")", "ĊĊĠĠĠ", "Ġfor", "Ġsection", "Ġin", "Ġparser", ".", "sections", "():", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġvalidate", "Ġsection", "Ġname", "Ġagainst", "Ġthe", "Ġ'", "sub", "module", "Ġ\"", "foo", "\"'", "Ġpattern", "ĊĠĠĠĠĠĠĠ", "Ġsubmodule", "Ġ=", "Ġre", ".", "sub", "(", "r", "'s", "ub", "module", "Ġ\"(", ".*", ")\"", "',", "Ġr", "\"\\", "1", "\",", "Ġsection", ")", "ĊĠĠĠĠĠĠĠ", "Ġurl", "Ġ=", "Ġparser", ".", "get", "(", "section", ",", "Ġ\"", "url", "\")", "ĊĠĠĠĠĠĠĠ", "Ġpath", "Ġ=", "Ġparser", ".", "get", "(", "section", ",", "Ġ\"", "path", "\")", "ĊĊĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġlist", "Ġobjects", "Ġin", "Ġthe", "Ġparent", "Ġrepo", "Ġtree", "Ġto", "Ġfind", "Ġthe", "Ġcommit", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġobject", "Ġthat", "Ġcorresponds", "Ġto", "Ġthe", "Ġsubmodule", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġcommit", "Ġ=", "Ġcheck", "_", "output", "([\"", "git", "\",", "Ġ\"", "ls", "-", "tree", "\",", "Ġref", ",", "Ġpath", "])", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġread", "Ġthe", "Ġcommit", "Ġhash", "Ġfrom", "Ġthe", "Ġoutput", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfields", "Ġ=", "Ġcommit", ".", "split", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "fields", ")", "Ġ>=", "Ġ", "2", "Ġand", "Ġfields", "[", "1", "]", "Ġ==", "Ġ\"", "commit", "\":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġsubmodule", "_", "commit", "Ġ=", "Ġcommit", ".", "split", "()[", "2", "]", "ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġfail", "Ġif", "Ġthe", "Ġcommit", "Ġhash", "Ġis", "Ġinvalid", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "sub", "module", "_", "commit", ")", "Ġ!=", "Ġ", "4", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġraise", "ĠException", "ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġfull", "dir", "Ġ=", "Ġos", ".", "path", ".", "join", "(", "os", ".", "getcwd", "(),", "Ġpath", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġcheckout", "(", "sub", "module", ",", "Ġurl", ",", "Ġsubmodule", "_", "commit", ",", "Ġfull", "dir", ")", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġapp", ".", "log", "(", "this", ",", "Ġ'", "Skipping", "Ġsubmodule", "Ġ\"%", "s", "\"", "Ġas", "Ġ%", "s", ":%", "s", "Ġhas", "Ġa", "Ġnon", "-", "commit", "Ġobject", "Ġfor", "Ġit", "'", "Ġ%", "Ġ(", "name", ",", "Ġurl", "))", "ĊĊĠĠĠĠĠĠĠ", "Ġexcept", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġapp", ".", "log", "(", "name", ",", "Ġ\"", "ERROR", ":", "ĠGit", "Ġsub", "modules", "Ġproblem", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġraise", "ĠSystem", "Exit", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 20, 20, 20, 21, 21, 21, 22, 22, 22, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 26, 26, 26, 27, 27, 27, 27, 28, 28, 28, 29, 29, 29, 30, 30, 30, 30, 31, 31, 31, 32, 32, 32, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 70, 70, 70, 72, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 91, 91, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 95, 95, 95, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 97, 97, 97, 97, 97, 97, 97, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 109, 109, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 130, 130, 130, 130, 130, 130, 130, 130, 130, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 132, 132, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 143, 144, 144, 144, 144, 144, 144, 144, 144, 145, 145, 145, 145, 145, 145, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 148, 148, 148, 149, 149, 149, 149, 149, 149, 149, 149, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 155, 155, 155, 155, 155, 155, 155, 155, 155, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 161, 161, 161, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 163, 163, 163, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 166, 166, 166, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 168, 168, 168, 168, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 172, 173, 173, 173, 173, 173, 173, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 177, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 181, 181, 181, 181, 181, 181, 181, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 189, 189, 189, 189, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 196, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 203, 203, 203, 203, 203, 203, 203, 203, 203, 204, 204, 204, 204, 204, 204, 204, 204, 206, 206, 206, 206, 206, 206, 206, 206, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 212, 212, 212, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 214, 214, 214, 214, 214, 214, 214, 214, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 217, 217, 217, 217, 217, 217, 217, 217, 217, 218, 218, 218, 218, 218, 218, 218, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 222, 222, 222, 222, 222, 222, 222, 222, 222, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 224, 224, 224, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 229, 229, 229, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 232, 232, 232, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 234, 234, 234, 234 ]
[ 1, 4, 7, 8, 11, 12, 15, 22, 23, 1, 2, 1, 2, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 32, 37, 45, 1, 2, 1, 2, 7, 15, 18, 23, 32, 33, 37, 41, 54, 57, 61, 62, 64, 71, 1, 2, 5, 11, 15, 21, 24, 28, 32, 40, 47, 55, 58, 68, 71, 1, 2, 6, 11, 20, 31, 32, 40, 41, 42, 45, 49, 57, 58, 1, 2, 1, 2, 7, 15, 18, 30, 33, 37, 42, 47, 50, 55, 58, 65, 66, 1, 2, 6, 14, 18, 27, 28, 36, 41, 45, 53, 62, 65, 1, 2, 18, 21, 29, 33, 35, 46, 54, 55, 56, 60, 64, 1, 2, 6, 14, 21, 29, 33, 38, 46, 47, 1, 2, 1, 2, 6, 13, 18, 27, 29, 34, 37, 41, 45, 53, 60, 68, 74, 1, 2, 7, 12, 20, 21, 24, 28, 29, 35, 38, 42, 47, 56, 67, 68, 72, 74, 1, 2, 3, 4, 5, 14, 21, 22, 28, 34, 35, 42, 43, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 61, 62, 1, 2, 1, 2, 4, 6, 14, 15, 19, 20, 21, 23, 25, 1, 1, 7, 10, 1, 7, 11, 1, 7, 10, 1, 5, 16, 23, 28, 1, 5, 16, 23, 29, 30, 36, 1, 7, 14, 1, 7, 19, 1, 7, 14, 15, 1, 7, 12, 1, 7, 13, 1, 7, 14, 20, 1, 7, 16, 1, 7, 10, 1, 1, 4, 8, 9, 13, 14, 17, 18, 22, 24, 4, 8, 10, 15, 16, 23, 25, 33, 36, 38, 41, 44, 47, 48, 51, 53, 56, 57, 60, 61, 66, 69, 4, 8, 10, 14, 15, 22, 24, 27, 29, 32, 33, 36, 38, 41, 44, 46, 49, 52, 55, 56, 59, 61, 64, 65, 68, 69, 72, 74, 77, 78, 81, 83, 86, 89, 4, 8, 10, 14, 15, 22, 24, 28, 35, 38, 40, 43, 46, 48, 51, 53, 54, 58, 65, 66, 69, 72, 4, 8, 10, 14, 15, 22, 24, 30, 33, 35, 38, 41, 47, 48, 51, 54, 4, 8, 10, 14, 15, 22, 24, 29, 32, 34, 37, 40, 43, 44, 49, 50, 53, 55, 4, 7, 11, 12, 20, 23, 26, 29, 8, 12, 14, 18, 21, 22, 23, 4, 11, 15, 1, 1, 4, 8, 9, 13, 14, 18, 19, 23, 25, 4, 8, 15, 20, 23, 31, 36, 41, 49, 56, 57, 65, 66, 68, 72, 75, 4, 9, 10, 15, 24, 28, 33, 36, 41, 50, 51, 56, 61, 64, 69, 75, 4, 8, 13, 16, 20, 26, 27, 30, 32, 41, 44, 46, 50, 51, 61, 65, 69, 74, 78, 4, 14, 17, 19, 23, 27, 30, 37, 40, 46, 49, 55, 56, 4, 8, 4, 10, 11, 16, 18, 25, 26, 32, 34, 41, 42, 47, 48, 55, 57, 60, 62, 4, 10, 11, 13, 20, 22, 23, 25, 28, 30, 33, 39, 40, 45, 50, 54, 4, 11, 15, 19, 21, 26, 27, 28, 29, 30, 34, 36, 39, 43, 44, 48, 49, 52, 53, 57, 60, 1, 1, 4, 8, 9, 17, 18, 25, 26, 30, 31, 35, 37, 4, 8, 9, 8, 12, 15, 17, 20, 21, 25, 26, 30, 31, 34, 35, 43, 45, 46, 49, 52, 56, 57, 61, 62, 66, 67, 71, 73, 8, 13, 17, 18, 23, 24, 27, 30, 32, 37, 38, 40, 41, 44, 48, 49, 51, 52, 54, 57, 59, 63, 64, 12, 17, 18, 21, 23, 29, 30, 36, 39, 42, 44, 46, 54, 56, 60, 66, 67, 68, 70, 74, 78, 80, 84, 86, 93, 94, 95, 99, 101, 102, 104, 105, 106, 12, 20, 22, 28, 29, 35, 38, 41, 43, 45, 48, 49, 53, 55, 60, 61, 64, 66, 70, 71, 73, 77, 78, 82, 87, 90, 8, 15, 17, 20, 21, 24, 25, 27, 29, 30, 38, 40, 42, 44, 47, 49, 50, 52, 57, 58, 61, 62, 70, 71, 72, 74, 75, 77, 4, 11, 12, 8, 15, 17, 21, 23, 24, 25, 27, 29, 31, 33, 36, 38, 42, 48, 50, 4, 11, 18, 1, 1, 4, 8, 9, 13, 14, 18, 20, 4, 8, 10, 15, 17, 20, 22, 4, 8, 11, 13, 16, 17, 21, 22, 26, 27, 30, 31, 39, 41, 42, 45, 48, 52, 53, 57, 58, 62, 63, 67, 69, 73, 77, 4, 7, 11, 14, 15, 19, 20, 26, 27, 30, 33, 35, 8, 12, 13, 12, 16, 18, 22, 23, 31, 33, 38, 39, 45, 46, 49, 51, 53, 55, 59, 61, 63, 67, 68, 72, 73, 76, 77, 81, 83, 87, 90, 92, 95, 98, 100, 102, 106, 12, 17, 24, 25, 26, 28, 33, 34, 37, 38, 41, 50, 51, 16, 21, 23, 28, 29, 34, 35, 43, 44, 48, 51, 57, 60, 62, 66, 68, 16, 23, 28, 8, 15, 16, 12, 16, 17, 20, 21, 25, 26, 28, 35, 36, 39, 44, 49, 55, 56, 62, 64, 68, 69, 12, 19, 20, 24, 26, 30, 33, 38, 40, 44, 47, 4, 9, 13, 14, 19, 20, 23, 26, 28, 33, 34, 36, 37, 40, 44, 45, 47, 48, 50, 53, 55, 59, 60, 8, 11, 16, 19, 22, 24, 26, 29, 30, 35, 37, 41, 43, 46, 47, 53, 54, 57, 64, 65, 66, 70, 71, 78, 79, 80, 84, 86, 12, 14, 18, 20, 28, 33, 37, 38, 41, 44, 53, 54, 12, 17, 20, 23, 25, 27, 32, 34, 36, 42, 45, 52, 53, 54, 58, 59, 66, 67, 68, 72, 73, 8, 12, 13, 12, 17, 19, 25, 26, 32, 35, 38, 40, 42, 45, 46, 51, 53, 57, 59, 62, 63, 67, 68, 71, 81, 82, 85, 90, 91, 95, 97, 98, 100, 101, 102, 12, 19, 24, 8, 15, 16, 12, 14, 21, 24, 28, 30, 35, 37, 41, 45, 46, 49, 53, 56, 60, 67, 12, 14, 17, 21, 26, 30, 36, 12, 16, 17, 20, 21, 25, 26, 28, 33, 34, 40, 44, 49, 54, 58, 62, 64, 68, 69, 12, 18, 25, 29, 1, 1, 4, 9, 10, 14, 15, 19, 20, 25, 28, 30, 4, 8, 11, 14, 16, 23, 34, 39, 41, 51, 57, 60, 61, 4, 9, 14, 20, 23, 27, 38, 49, 50, 53, 58, 61, 65, 73, 4, 9, 13, 14, 15, 18, 23, 27, 33, 37, 43, 50, 56, 60, 64, 65, 4, 8, 4, 6, 11, 12, 16, 23, 26, 32, 35, 40, 44, 48, 50, 53, 58, 64, 68, 77, 4, 6, 9, 12, 16, 21, 25, 32, 39, 42, 49, 52, 54, 61, 65, 70, 71, 4, 6, 9, 14, 16, 28, 33, 34, 39, 42, 47, 48, 51, 55, 56, 62, 66, 74, 4, 6, 10, 14, 21, 25, 28, 32, 39, 44, 47, 52, 55, 59, 67, 73, 76, 4, 6, 9, 14, 17, 21, 26, 27, 30, 34, 39, 44, 49, 52, 53, 56, 58, 65, 4, 9, 12, 14, 16, 19, 20, 22, 27, 28, 31, 32, 36, 37, 41, 42, 46, 49, 50, 53, 56, 58, 60, 4, 9, 12, 15, 17, 19, 25, 27, 29, 33, 34, 38, 40, 42, 47, 50, 4, 9, 12, 15, 17, 19, 25, 27, 31, 36, 38, 40, 46, 47, 53, 54, 60, 63, 4, 9, 14, 15, 17, 18, 21, 25, 26, 28, 29, 31, 34, 36, 40, 41, 8, 13, 16, 19, 21, 23, 29, 31, 33, 39, 40, 46, 47, 52, 54, 57, 61, 62, 67, 69, 70, 74, 75, 78, 82, 83, 89, 91, 94, 101, 102, 103, 107, 108, 115, 116, 117, 121, 122, 4, 9, 12, 15, 17, 19, 25, 27, 29, 35, 36, 42, 43, 46, 48, 53, 55, 4, 9, 12, 15, 17, 19, 23, 24, 28, 30, 34, 37, 39, 43, 48, 51, 4, 6, 11, 16, 17, 22, 24, 29, 34, 35, 38, 42, 43, 49, 51, 54, 58, 65, 70, 4, 6, 9, 14, 18, 22, 27, 35, 40, 45, 47, 59, 65, 66, 4, 9, 14, 15, 17, 18, 22, 23, 27, 28, 32, 35, 36, 39, 42, 44, 46, 52, 53, 57, 60, 62, 63, 65, 68, 72, 73, 75, 76, 8, 13, 14, 19, 21, 25, 26, 28, 29, 33, 36, 41, 44, 45, 47, 4, 9, 14, 15, 17, 18, 22, 23, 27, 28, 32, 35, 36, 39, 42, 44, 46, 52, 53, 57, 60, 62, 63, 65, 68, 72, 73, 75, 76, 8, 12, 13, 15, 16, 21, 22, 26, 27, 32, 33, 36, 37, 38, 39, 41, 44, 45, 47, 8, 12, 16, 20, 23, 28, 29, 34, 35, 12, 15, 17, 22, 23, 26, 30, 32, 35, 39, 43, 44, 16, 25, 12, 15, 17, 22, 23, 28, 30, 33, 37, 41, 42, 16, 20, 21, 25, 27, 31, 35, 37, 38, 39, 41, 45, 49, 50, 51, 52, 54, 16, 19, 23, 24, 34, 36, 40, 41, 46, 47, 50, 20, 24, 26, 28, 32, 33, 36, 40, 41, 47, 49, 51, 55, 56, 57, 58, 60, 16, 20, 24, 26, 29, 30, 32, 33, 34, 36, 38, 41, 42, 46, 47, 12, 16, 17, 19, 20, 25, 28, 29, 30, 31, 32, 34, 36, 39, 43, 45, 4, 6, 14, 18, 20, 27, 34, 37, 43, 46, 50, 55, 61, 65, 69, 70, 4, 9, 14, 15, 17, 18, 21, 25, 26, 28, 29, 31, 34, 36, 40, 41, 8, 13, 16, 19, 21, 23, 29, 31, 33, 39, 41, 43, 49, 51, 55, 60, 63, 70, 71, 72, 76, 77, 84, 85, 86, 90, 91, 1, 1, 4, 11, 12, 16, 17, 22, 24, 4, 6, 10, 15, 18, 24, 4, 8, 11, 13, 16, 17, 21, 22, 26, 27, 30, 31, 39, 41, 42, 45, 48, 52, 53, 57, 58, 62, 63, 67, 69, 4, 9, 10, 13, 15, 19, 20, 24, 25, 28, 29, 33, 34, 4, 8, 9, 8, 11, 12, 20, 21, 24, 27, 28, 8, 12, 13, 17, 19, 23, 24, 28, 29, 33, 34, 38, 39, 42, 43, 45, 48, 51, 52, 8, 12, 13, 16, 17, 21, 22, 24, 27, 36, 41, 44, 46, 47, 48, 50, 54, 55, 59, 60, 8, 13, 17, 18, 23, 24, 27, 30, 32, 37, 38, 40, 41, 44, 48, 49, 51, 52, 54, 57, 59, 63, 64, 12, 17, 20, 24, 26, 30, 32, 35, 36, 39, 43, 50, 51, 52, 56, 57, 64, 65, 66, 70, 71, 12, 17, 20, 23, 25, 27, 29, 31, 35, 36, 40, 42, 49, 50, 51, 55, 56, 63, 64, 65, 69, 70, 12, 15, 16, 22, 23, 26, 27, 31, 32, 12, 17, 20, 23, 25, 27, 33, 35, 37, 43, 44, 50, 51, 54, 56, 61, 62, 65, 67, 74, 75, 76, 80, 81, 88, 89, 90, 94, 95, 12, 17, 20, 23, 25, 27, 33, 35, 37, 43, 44, 50, 51, 57, 59, 61, 65, 68, 75, 76, 77, 81, 82, 89, 90, 91, 95, 96, 12, 15, 20, 23, 26, 28, 30, 36, 38, 40, 46, 47, 53, 54, 59, 61, 64, 68, 70, 71, 75, 77, 80, 87, 88, 89, 93, 94, 101, 102, 103, 107, 108, 111, 112, 113, 114, 16, 22, 27, 36, 38, 41, 45, 49, 51, 57, 61, 66, 68, 12, 17, 20, 23, 25, 27, 32, 34, 36, 42, 45, 52, 53, 54, 58, 59, 66, 67, 68, 72, 73, 4, 11, 12, 8, 12, 13, 16, 17, 21, 22, 24, 29, 33, 39, 44, 47, 52, 53, 56, 57, 8, 12, 13, 12, 17, 22, 23, 25, 26, 29, 33, 34, 36, 37, 39, 42, 44, 48, 49, 16, 21, 24, 27, 29, 31, 36, 38, 42, 48, 50, 53, 54, 56, 61, 62, 65, 66, 70, 73, 75, 82, 83, 84, 88, 89, 96, 97, 98, 102, 103, 8, 15, 16, 12, 16, 17, 20, 21, 25, 26, 28, 33, 34, 41, 44, 50, 52, 57, 58, 12, 18, 25, 29, 4, 8, 9, 12, 13, 17, 18, 20, 23, 28, 31, 35, 40, 43, 45, 49, 52, 53, 1, 1, 4, 10, 11, 15, 17, 4, 9, 13, 14, 19, 20, 24, 26, 31, 32, 34, 35, 38, 42, 43, 45, 46, 48, 51, 53, 57, 58, 8, 13, 16, 19, 21, 23, 28, 30, 32, 38, 41, 48, 49, 50, 54, 55, 62, 63, 64, 68, 69, 1, 1, 4, 13, 14, 18, 19, 24, 25, 29, 30, 39, 42, 44, 4, 8, 11, 13, 16, 17, 21, 22, 26, 27, 30, 31, 39, 41, 42, 45, 48, 52, 53, 57, 58, 62, 63, 67, 69, 4, 7, 11, 14, 15, 19, 20, 26, 27, 30, 33, 35, 8, 15, 16, 20, 21, 26, 27, 4, 8, 9, 12, 13, 17, 18, 20, 28, 36, 39, 43, 44, 52, 53, 60, 61, 65, 66, 70, 72, 4, 8, 9, 12, 13, 17, 18, 20, 23, 32, 34, 35, 38, 40, 41, 42, 44, 46, 50, 51, 60, 63, 65, 4, 6, 15, 19, 28, 36, 39, 44, 49, 53, 4, 9, 13, 14, 19, 20, 28, 31, 33, 38, 39, 41, 42, 45, 49, 50, 52, 53, 55, 58, 60, 64, 65, 8, 13, 14, 18, 19, 22, 25, 26, 35, 38, 39, 8, 11, 16, 19, 22, 24, 26, 34, 36, 40, 42, 49, 50, 51, 55, 56, 63, 64, 65, 69, 71, 12, 16, 17, 20, 21, 25, 26, 28, 33, 34, 38, 47, 54, 58, 60, 64, 65, 12, 18, 25, 29, 8, 11, 14, 15, 19, 20, 26, 29, 32, 39, 42, 12, 21, 22, 25, 32, 33, 37, 38, 42, 43, 4, 10, 11, 14, 15, 20, 21, 23, 32, 33, 41, 44, 45, 1, 1, 4, 13, 14, 17, 24, 25, 29, 30, 34, 36, 4, 8, 9, 12, 13, 17, 18, 20, 23, 27, 34, 36, 4, 9, 14, 17, 20, 27, 29, 31, 32, 34, 37, 41, 45, 46, 8, 10, 15, 27, 30, 39, 40, 43, 47, 59, 66, 73, 76, 8, 16, 18, 21, 22, 24, 28, 30, 31, 32, 37, 39, 43, 45, 48, 52, 56, 57, 61, 64, 69, 74, 78, 4, 7, 9, 18, 19, 25, 27, 28, 35, 36, 4, 11, 13, 20, 26, 27, 30, 42, 44, 4, 11, 12, 16, 18, 19, 21, 22, 4, 8, 16, 19, 26, 27, 35, 38, 8, 10, 19, 27, 32, 40, 44, 46, 49, 55, 57, 60, 62, 70, 8, 18, 20, 23, 24, 27, 28, 29, 31, 33, 39, 42, 44, 46, 48, 50, 52, 53, 55, 63, 64, 8, 12, 14, 21, 22, 25, 26, 33, 34, 36, 39, 41, 8, 13, 15, 22, 23, 26, 27, 34, 35, 37, 41, 43, 8, 12, 13, 12, 14, 19, 27, 30, 34, 41, 46, 51, 54, 59, 63, 70, 12, 14, 21, 26, 38, 41, 45, 55, 12, 19, 21, 27, 28, 34, 37, 40, 42, 44, 46, 47, 51, 53, 57, 58, 63, 65, 12, 14, 19, 23, 30, 35, 40, 44, 51, 12, 19, 21, 28, 29, 34, 36, 12, 15, 19, 20, 26, 27, 30, 31, 32, 36, 43, 44, 45, 46, 49, 51, 57, 59, 16, 26, 27, 33, 35, 42, 43, 48, 51, 52, 53, 16, 18, 23, 26, 30, 37, 42, 45, 53, 16, 19, 23, 24, 27, 33, 34, 40, 41, 44, 45, 46, 47, 48, 20, 26, 36, 16, 21, 24, 26, 29, 30, 34, 35, 39, 40, 42, 43, 49, 52, 57, 58, 16, 25, 26, 29, 35, 36, 40, 41, 51, 52, 58, 59, 64, 67, 68, 12, 17, 18, 16, 20, 21, 24, 25, 29, 30, 32, 40, 50, 53, 54, 55, 58, 60, 61, 63, 64, 68, 70, 74, 75, 81, 88, 92, 95, 96, 98, 100, 104, 105, 109, 111, 8, 15, 16, 12, 16, 17, 20, 21, 25, 26, 28, 33, 34, 38, 42, 49, 57, 59, 12, 18, 25, 29 ]
68a503b2a94304530e20d79baf9fb094024ba67e
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() from django.conf import settings from django.conf.urls.static import static from django.contrib.staticfiles.urls import staticfiles_urlpatterns from dajaxice.core import dajaxice_autodiscover, dajaxice_config dajaxice_autodiscover() from spoticle import views urlpatterns = patterns( "", # Examples: # url(r'^$', 'spoticle.views.home', name='home'), # url(r'^spoticle/', include('spoticle.foo.urls')), url(r"^$", views.IndexView.as_view(), name="index"), url(r"^play/$", views.index, name="play"), url(r"^compose/$", views.compose, name="compose"), url(r"^random/$", views.random, name="random"), url(r"^play/(?P<pk>\d+)/$", views.DetailView.as_view(), name="quiz"), url(r"^compose/(?P<pk>\d+)/$", views.UpdateView.as_view()), url(r"^clip/(?P<clip_id>\d+)/$", views.clip, name="clip"), # Auth url( r"^accounts/login/$", "django.contrib.auth.views.login", {"template_name": "login.html", "extra_context": {"next": "/"}}, name="login", ), url(r"^accounts/logout/$", "django.contrib.auth.views.logout", {"next_page": "/"}, name="logout"), url(dajaxice_config.dajaxice_url, include("dajaxice.urls")), # Uncomment the admin/doc line below to enable admin documentation: url(r"^admin/doc/", include("django.contrib.admindocs.urls")), # Uncomment the next line to enable the admin: url(r"^admin/", include(admin.site.urls)), ) urlpatterns += staticfiles_urlpatterns() urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
[ 1097, 8532, 51, 2982, 51, 11420, 1220, 15137, 49, 2323, 49, 2001, 222, 222, 40, 47234, 341, 2371, 3161, 5452, 391, 5362, 341, 5611, 63, 222, 1097, 8532, 51, 12060, 1220, 5611, 222, 222, 2317, 51, 4872, 450, 316, 4120, 365, 222, 222, 1097, 8532, 51, 2982, 1220, 4086, 222, 1097, 8532, 51, 2982, 51, 11420, 51, 1592, 1220, 924, 222, 222, 1097, 8532, 51, 12060, 51, 1592, 2558, 51, 11420, 1220, 924, 2558, 100, 983, 15735, 222, 1097, 362, 6837, 584, 51, 1284, 1220, 362, 6837, 584, 100, 4872, 450, 316, 4120, 49, 362, 6837, 584, 100, 1180, 222, 222, 1830, 8954, 584, 100, 4872, 450, 316, 4120, 365, 222, 222, 1097, 18159, 2475, 1220, 11887, 222, 222, 983, 15735, 299, 15137, 45, 303, 4343, 303, 607, 15965, 63, 303, 607, 2001, 45, 119, 28242, 38175, 349, 7529, 2475, 51, 4361, 51, 2849, 389, 655, 1080, 2849, 1444, 303, 607, 2001, 45, 119, 28242, 7529, 2475, 13109, 2323, 482, 7529, 2475, 51, 4003, 51, 11420, 13391, 303, 2001, 45, 119, 39, 99, 30201, 11887, 51, 1301, 1089, 51, 321, 100, 1090, 1046, 655, 366, 1076, 2132, 303, 2001, 45, 119, 39, 99, 1087, 9770, 411, 11887, 51, 1076, 49, 655, 366, 1087, 2132, 303, 2001, 45, 119, 39, 99, 9322, 9770, 411, 11887, 51, 9322, 49, 655, 366, 9322, 2132, 303, 2001, 45, 119, 39, 99, 3917, 9770, 411, 11887, 51, 3917, 49, 655, 366, 3917, 2132, 303, 2001, 45, 119, 39, 99, 1087, 52, 12421, 85, 65, 3198, 5224, 105, 41291, 30201, 11887, 51, 5295, 1089, 51, 321, 100, 1090, 1046, 655, 366, 23134, 2132, 303, 2001, 45, 119, 39, 99, 9322, 52, 12421, 85, 65, 3198, 5224, 105, 41291, 30201, 11887, 51, 2346, 1089, 51, 321, 100, 1090, 6198, 303, 2001, 45, 119, 39, 99, 10390, 52, 12421, 85, 65, 10390, 100, 333, 5224, 105, 41291, 30201, 11887, 51, 10390, 49, 655, 366, 10390, 2132, 303, 607, 6235, 303, 2001, 45, 310, 559, 39, 99, 12900, 52, 3632, 9770, 411, 310, 332, 11025, 51, 12060, 51, 2408, 51, 4361, 51, 3632, 411, 310, 3479, 2402, 100, 444, 582, 332, 3632, 51, 935, 411, 332, 7625, 100, 1834, 582, 3479, 1995, 582, 2450, 35221, 310, 655, 366, 3632, 411, 303, 2604, 303, 2001, 45, 119, 39, 99, 12900, 52, 12651, 9770, 411, 332, 11025, 51, 12060, 51, 2408, 51, 4361, 51, 12651, 411, 3479, 1995, 100, 1655, 582, 2450, 3933, 655, 366, 12651, 2132, 303, 2001, 45, 1830, 8954, 584, 100, 1180, 51, 1830, 8954, 584, 100, 983, 49, 2323, 459, 1830, 8954, 584, 51, 11420, 12967, 303, 607, 47234, 341, 5611, 52, 1446, 1646, 4834, 391, 5362, 5611, 4349, 63, 303, 2001, 45, 119, 39, 99, 2317, 52, 1446, 10974, 2323, 459, 11025, 51, 12060, 51, 358, 24004, 27945, 51, 11420, 12967, 303, 607, 47234, 341, 2371, 1646, 391, 5362, 341, 5611, 63, 303, 2001, 45, 119, 39, 99, 2317, 10974, 2323, 45, 2317, 51, 2870, 51, 11420, 3684, 222, 46, 222, 983, 15735, 1475, 924, 2558, 100, 983, 15735, 365, 222, 983, 15735, 1475, 924, 45, 3563, 51, 21484, 100, 2427, 49, 1840, 100, 2405, 66, 3563, 51, 21484, 100, 7799, 46, 222 ]
[ "from", "Ġdjango", ".", "conf", ".", "urls", "Ġimport", "Ġpatterns", ",", "Ġinclude", ",", "Ġurl", "Ċ", "Ċ", "#", "ĠUncomment", "Ġthe", "Ġnext", "Ġtwo", "Ġlines", "Ġto", "Ġenable", "Ġthe", "Ġadmin", ":", "Ċ", "from", "Ġdjango", ".", "contrib", "Ġimport", "Ġadmin", "Ċ", "Ċ", "admin", ".", "aut", "od", "is", "cover", "()", "Ċ", "Ċ", "from", "Ġdjango", ".", "conf", "Ġimport", "Ġsettings", "Ċ", "from", "Ġdjango", ".", "conf", ".", "urls", ".", "static", "Ġimport", "Ġstatic", "Ċ", "Ċ", "from", "Ġdjango", ".", "contrib", ".", "static", "files", ".", "urls", "Ġimport", "Ġstatic", "files", "_", "url", "patterns", "Ċ", "from", "Ġd", "ajax", "ice", ".", "core", "Ġimport", "Ġd", "ajax", "ice", "_", "aut", "od", "is", "cover", ",", "Ġd", "ajax", "ice", "_", "config", "Ċ", "Ċ", "da", "jax", "ice", "_", "aut", "od", "is", "cover", "()", "Ċ", "Ċ", "from", "Ġspot", "icle", "Ġimport", "Ġviews", "Ċ", "Ċ", "url", "patterns", "Ġ=", "Ġpatterns", "(", "ĊĠĠĠ", "Ġ\"\",", "ĊĠĠĠ", "Ġ#", "ĠExamples", ":", "ĊĠĠĠ", "Ġ#", "Ġurl", "(", "r", "'^", "$',", "Ġ'", "spot", "icle", ".", "views", ".", "home", "',", "Ġname", "='", "home", "'),", "ĊĠĠĠ", "Ġ#", "Ġurl", "(", "r", "'^", "spot", "icle", "/',", "Ġinclude", "('", "spot", "icle", ".", "foo", ".", "urls", "')),", "ĊĠĠĠ", "Ġurl", "(", "r", "\"", "^", "$\",", "Ġviews", ".", "Index", "View", ".", "as", "_", "view", "(),", "Ġname", "=\"", "index", "\"),", "ĊĠĠĠ", "Ġurl", "(", "r", "\"", "^", "play", "/$", "\",", "Ġviews", ".", "index", ",", "Ġname", "=\"", "play", "\"),", "ĊĠĠĠ", "Ġurl", "(", "r", "\"", "^", "compose", "/$", "\",", "Ġviews", ".", "compose", ",", "Ġname", "=\"", "compose", "\"),", "ĊĠĠĠ", "Ġurl", "(", "r", "\"", "^", "random", "/$", "\",", "Ġviews", ".", "random", ",", "Ġname", "=\"", "random", "\"),", "ĊĠĠĠ", "Ġurl", "(", "r", "\"", "^", "play", "/", "(?", "P", "<", "pk", ">\\", "d", "+)/", "$\",", "Ġviews", ".", "Detail", "View", ".", "as", "_", "view", "(),", "Ġname", "=\"", "quiz", "\"),", "ĊĠĠĠ", "Ġurl", "(", "r", "\"", "^", "compose", "/", "(?", "P", "<", "pk", ">\\", "d", "+)/", "$\",", "Ġviews", ".", "Update", "View", ".", "as", "_", "view", "()),", "ĊĠĠĠ", "Ġurl", "(", "r", "\"", "^", "clip", "/", "(?", "P", "<", "clip", "_", "id", ">\\", "d", "+)/", "$\",", "Ġviews", ".", "clip", ",", "Ġname", "=\"", "clip", "\"),", "ĊĠĠĠ", "Ġ#", "ĠAuth", "ĊĠĠĠ", "Ġurl", "(", "ĊĠĠĠĠĠĠĠ", "Ġr", "\"", "^", "accounts", "/", "login", "/$", "\",", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "django", ".", "contrib", ".", "auth", ".", "views", ".", "login", "\",", "ĊĠĠĠĠĠĠĠ", "Ġ{\"", "template", "_", "name", "\":", "Ġ\"", "login", ".", "html", "\",", "Ġ\"", "extra", "_", "context", "\":", "Ġ{\"", "next", "\":", "Ġ\"/", "\"}},", "ĊĠĠĠĠĠĠĠ", "Ġname", "=\"", "login", "\",", "ĊĠĠĠ", "Ġ),", "ĊĠĠĠ", "Ġurl", "(", "r", "\"", "^", "accounts", "/", "logout", "/$", "\",", "Ġ\"", "django", ".", "contrib", ".", "auth", ".", "views", ".", "logout", "\",", "Ġ{\"", "next", "_", "page", "\":", "Ġ\"/", "\"},", "Ġname", "=\"", "logout", "\"),", "ĊĠĠĠ", "Ġurl", "(", "da", "jax", "ice", "_", "config", ".", "da", "jax", "ice", "_", "url", ",", "Ġinclude", "(\"", "da", "jax", "ice", ".", "urls", "\")),", "ĊĠĠĠ", "Ġ#", "ĠUncomment", "Ġthe", "Ġadmin", "/", "doc", "Ġline", "Ġbelow", "Ġto", "Ġenable", "Ġadmin", "Ġdocumentation", ":", "ĊĠĠĠ", "Ġurl", "(", "r", "\"", "^", "admin", "/", "doc", "/\",", "Ġinclude", "(\"", "django", ".", "contrib", ".", "ad", "mind", "ocs", ".", "urls", "\")),", "ĊĠĠĠ", "Ġ#", "ĠUncomment", "Ġthe", "Ġnext", "Ġline", "Ġto", "Ġenable", "Ġthe", "Ġadmin", ":", "ĊĠĠĠ", "Ġurl", "(", "r", "\"", "^", "admin", "/\",", "Ġinclude", "(", "admin", ".", "site", ".", "urls", ")),", "Ċ", ")", "Ċ", "url", "patterns", "Ġ+=", "Ġstatic", "files", "_", "url", "patterns", "()", "Ċ", "url", "patterns", "Ġ+=", "Ġstatic", "(", "settings", ".", "MEDIA", "_", "URL", ",", "Ġdocument", "_", "root", "=", "settings", ".", "MEDIA", "_", "ROOT", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 16, 16, 16, 16, 16, 17, 18, 18, 18, 18, 18, 18, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45 ]
[ 1, 5, 12, 13, 17, 18, 22, 29, 38, 39, 47, 48, 52, 1, 1, 2, 12, 16, 21, 25, 31, 34, 41, 45, 51, 52, 1, 5, 12, 13, 20, 27, 33, 1, 1, 6, 7, 10, 12, 14, 19, 21, 1, 1, 5, 12, 13, 17, 24, 33, 1, 5, 12, 13, 17, 18, 22, 23, 29, 36, 43, 1, 1, 5, 12, 13, 20, 21, 27, 32, 33, 37, 44, 51, 56, 57, 60, 68, 1, 5, 7, 11, 14, 15, 19, 26, 28, 32, 35, 36, 39, 41, 43, 48, 49, 51, 55, 58, 59, 65, 1, 1, 3, 6, 9, 10, 13, 15, 17, 22, 24, 1, 1, 5, 10, 14, 21, 27, 1, 1, 4, 12, 14, 23, 24, 4, 8, 4, 6, 15, 16, 4, 6, 10, 11, 12, 14, 17, 19, 23, 27, 28, 33, 34, 38, 40, 45, 47, 51, 54, 4, 6, 10, 11, 12, 14, 18, 22, 25, 33, 35, 39, 43, 44, 47, 48, 52, 56, 4, 8, 9, 10, 11, 12, 15, 21, 22, 27, 31, 32, 34, 35, 39, 42, 47, 49, 54, 57, 4, 8, 9, 10, 11, 12, 16, 18, 20, 26, 27, 32, 33, 38, 40, 44, 47, 4, 8, 9, 10, 11, 12, 19, 21, 23, 29, 30, 37, 38, 43, 45, 52, 55, 4, 8, 9, 10, 11, 12, 18, 20, 22, 28, 29, 35, 36, 41, 43, 49, 52, 4, 8, 9, 10, 11, 12, 16, 17, 19, 20, 21, 23, 25, 26, 29, 32, 38, 39, 45, 49, 50, 52, 53, 57, 60, 65, 67, 71, 74, 4, 8, 9, 10, 11, 12, 19, 20, 22, 23, 24, 26, 28, 29, 32, 35, 41, 42, 48, 52, 53, 55, 56, 60, 64, 4, 8, 9, 10, 11, 12, 16, 17, 19, 20, 21, 25, 26, 28, 30, 31, 34, 37, 43, 44, 48, 49, 54, 56, 60, 63, 4, 6, 11, 4, 8, 9, 8, 10, 11, 12, 20, 21, 26, 28, 30, 8, 10, 16, 17, 24, 25, 29, 30, 35, 36, 41, 43, 8, 11, 19, 20, 24, 26, 28, 33, 34, 38, 40, 42, 47, 48, 55, 57, 60, 64, 66, 69, 73, 8, 13, 15, 20, 22, 4, 7, 4, 8, 9, 10, 11, 12, 20, 21, 27, 29, 31, 33, 39, 40, 47, 48, 52, 53, 58, 59, 65, 67, 70, 74, 75, 79, 81, 84, 87, 92, 94, 100, 103, 4, 8, 9, 11, 14, 17, 18, 24, 25, 27, 30, 33, 34, 37, 38, 46, 48, 50, 53, 56, 57, 61, 65, 4, 6, 16, 20, 26, 27, 30, 35, 41, 44, 51, 57, 71, 72, 4, 8, 9, 10, 11, 12, 17, 18, 21, 24, 32, 34, 40, 41, 48, 49, 51, 55, 58, 59, 63, 67, 4, 6, 16, 20, 25, 30, 33, 40, 44, 50, 51, 4, 8, 9, 10, 11, 12, 17, 20, 28, 29, 34, 35, 39, 40, 44, 47, 1, 2, 1, 4, 12, 15, 22, 27, 28, 31, 39, 41, 1, 4, 12, 15, 22, 23, 31, 32, 37, 38, 41, 42, 51, 52, 56, 57, 65, 66, 71, 72, 76, 77 ]
81dec10686b521dc9400a209caabc1601efd2a88
# -*- coding: utf-8 -*- import abc import datetime import importlib import inspect import os import re import six from .library import HalLibrary @six.add_metaclass(abc.ABCMeta) class Hal: def __init__(self, configpath): self.configpath = configpath # Find libraries inside the lib directory dir_path = os.path.join(os.path.dirname(__file__), "libraries") lib_files = [f for f in os.listdir(dir_path) if os.path.isfile(os.path.join(dir_path, f)) and f.lower().endswith(".py")] self.responses = [] self.libraries = [] for f in lib_files: # Try to load the module try: module_name = "hal.libraries." + f[:-3] module = importlib.import_module(module_name) for name, obj in inspect.getmembers(module): # Find classes that inherit from HalLibrary if ( inspect.isclass(obj) and issubclass(obj, HalLibrary) and name != "HalLibrary" and not inspect.isabstract(obj) ): self.libraries.append(obj) except: self.add_response("Error loading library {}".format(f)) raise def add_response(self, text): self.responses.append(text) def say_all(self): response = "\n".join(self.responses) return response @abc.abstractmethod def display_help(self): """Present some information to the user""" pass def greet(self): hour = datetime.datetime.now().hour greeting = "Good Evening" if hour < 12: greeting = "Good morning" elif 12 <= hour < 18: greeting = "Good afternoon" self.add_response("{}. What can I help you with?".format(greeting)) def process(self, command): """ Process the command and get response by querying each plugin if required. """ self.responses = [] if len(command) == 0: self.greet() return self.say_all() # prepare the command command = command.strip() # Some hard coded patterns: If first word is help, activate help # moudule help_regex = re.compile("help\s+([^\s]+)") help_match = help_regex.match(command) if help_match: keyword = help_match.group(1).lower() # Try to find libraries with the keyword and print their help for lib in self.libraries: if keyword in lib.keywords: # Print the help text help_content = lib.help() self.display_help(help_content) return matched = False for lib in self.libraries: lib_obj = lib(command) # try to match the command with the library lib_obj.process_input() if lib_obj.status == HalLibrary.SUCCESS or lib_obj.status == HalLibrary.INCOMPLETE: matched = True lib_obj.process() resp = lib_obj.get_response() for r in resp: self.add_response(r) elif lib_obj.status == HalLibrary.ERROR: matched = True self.add_response("ERROR: " + lib_obj.get_error()) else: # Failure to match pass if not matched: self.add_response("I don't understand what you're saying.") return self.say_all()
[ 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 222, 485, 20701, 222, 485, 7181, 222, 485, 46233, 222, 485, 17878, 222, 485, 2355, 222, 485, 334, 222, 485, 18834, 222, 222, 1097, 657, 5261, 1220, 42614, 5887, 499, 222, 69, 25924, 51, 688, 100, 2580, 32119, 45, 8198, 51, 1336, 3123, 2303, 46, 222, 842, 42614, 63, 303, 684, 1176, 1683, 3232, 803, 49, 1377, 1005, 731, 310, 649, 51, 1180, 1005, 299, 1377, 1005, 310, 607, 7499, 11382, 6529, 341, 5053, 3378, 603, 4937, 100, 1005, 299, 2355, 51, 1005, 51, 2548, 45, 519, 51, 1005, 51, 7792, 4077, 781, 36728, 332, 20406, 678, 310, 5053, 100, 2558, 299, 447, 107, 456, 315, 347, 2355, 51, 26730, 45, 1537, 100, 1005, 46, 434, 2355, 51, 1005, 51, 29837, 45, 519, 51, 1005, 51, 2548, 45, 1537, 100, 1005, 49, 315, 509, 480, 315, 51, 5773, 941, 20677, 5804, 997, 3843, 603, 649, 51, 18248, 299, 1627, 310, 649, 51, 20406, 299, 1627, 310, 456, 315, 347, 5053, 100, 2558, 63, 343, 607, 8982, 391, 2480, 341, 2313, 343, 1614, 63, 419, 2313, 100, 444, 299, 332, 10296, 51, 20406, 3128, 494, 315, 20563, 56, 98, 419, 2313, 299, 46233, 51, 485, 100, 1663, 45, 1663, 100, 444, 46, 419, 456, 655, 49, 2847, 347, 17878, 51, 390, 7918, 45, 1663, 731, 547, 607, 7499, 6052, 708, 11096, 664, 42614, 5887, 547, 434, 327, 733, 17878, 51, 316, 842, 45, 2085, 46, 733, 480, 458, 39464, 45, 2085, 49, 42614, 5887, 46, 733, 480, 655, 882, 332, 36013, 5887, 39, 733, 480, 666, 17878, 51, 316, 9431, 45, 2085, 46, 547, 8073, 733, 649, 51, 20406, 51, 1713, 45, 2085, 46, 343, 2959, 63, 419, 649, 51, 688, 100, 2003, 459, 943, 7752, 4277, 16669, 1664, 45, 107, 509, 419, 3655, 465, 684, 1035, 100, 2003, 45, 803, 49, 1367, 731, 310, 649, 51, 18248, 51, 1713, 45, 897, 46, 465, 684, 7639, 100, 483, 45, 803, 731, 310, 1808, 299, 2724, 115, 2316, 2548, 45, 803, 51, 18248, 46, 310, 461, 1808, 465, 496, 8198, 51, 37664, 303, 684, 2540, 100, 4771, 45, 803, 731, 310, 1547, 9013, 1649, 2490, 391, 341, 1275, 3012, 310, 3119, 465, 684, 504, 7111, 45, 803, 731, 310, 12039, 299, 7181, 51, 6703, 51, 2192, 941, 11343, 603, 504, 32648, 299, 332, 13718, 22015, 318, 39, 310, 434, 12039, 350, 244, 54, 55, 63, 343, 504, 32648, 299, 332, 13718, 33740, 39, 310, 4378, 244, 54, 55, 2527, 12039, 350, 244, 54, 61, 63, 343, 504, 32648, 299, 332, 13718, 14227, 919, 22930, 39, 603, 649, 51, 688, 100, 2003, 459, 24436, 6208, 902, 457, 3071, 863, 642, 68, 2316, 1664, 45, 44901, 509, 465, 684, 2183, 45, 803, 49, 2035, 731, 310, 1547, 310, 6849, 341, 2035, 480, 640, 1808, 829, 38627, 2531, 3985, 434, 2147, 51, 310, 1547, 310, 649, 51, 18248, 299, 1627, 310, 434, 2095, 45, 2514, 46, 630, 244, 53, 63, 343, 649, 51, 5013, 383, 365, 343, 461, 649, 51, 18528, 100, 483, 365, 603, 607, 11670, 341, 2035, 310, 2035, 299, 2035, 51, 7237, 365, 603, 607, 4202, 6804, 38399, 15137, 63, 1691, 1950, 3619, 458, 3071, 49, 18199, 3071, 310, 607, 364, 35203, 779, 310, 3071, 100, 7927, 299, 334, 51, 7028, 459, 4771, 97, 120, 48, 2034, 14808, 120, 6176, 14589, 310, 3071, 100, 2892, 299, 3071, 100, 7927, 51, 2892, 45, 2514, 46, 310, 434, 3071, 100, 2892, 63, 343, 11688, 299, 3071, 100, 2892, 51, 1382, 45, 54, 566, 5773, 365, 343, 607, 8982, 391, 2309, 11382, 642, 341, 11688, 480, 1489, 3641, 3071, 1083, 456, 5053, 347, 649, 51, 20406, 63, 419, 434, 11688, 347, 5053, 51, 7267, 63, 547, 607, 9232, 341, 3071, 1367, 547, 3071, 100, 1304, 299, 5053, 51, 4771, 365, 547, 649, 51, 2784, 100, 4771, 45, 4771, 100, 1304, 46, 343, 461, 603, 15008, 299, 3208, 603, 456, 5053, 347, 649, 51, 20406, 63, 343, 5053, 100, 2085, 299, 5053, 45, 2514, 46, 1083, 607, 1614, 391, 2549, 341, 2035, 642, 341, 4277, 343, 5053, 100, 2085, 51, 2441, 100, 1151, 365, 1083, 434, 5053, 100, 2085, 51, 1535, 630, 42614, 5887, 51, 6696, 575, 5053, 100, 2085, 51, 1535, 630, 42614, 5887, 51, 540, 25659, 63, 419, 15008, 299, 2969, 2125, 5053, 100, 2085, 51, 2441, 365, 2125, 5137, 299, 5053, 100, 2085, 51, 390, 100, 2003, 365, 2125, 456, 559, 347, 5137, 63, 547, 649, 51, 688, 100, 2003, 45, 119, 46, 1083, 4378, 5053, 100, 2085, 51, 1535, 630, 42614, 5887, 51, 2946, 63, 419, 15008, 299, 2969, 419, 649, 51, 688, 100, 2003, 459, 2946, 63, 332, 494, 5053, 100, 2085, 51, 390, 100, 750, 1177, 343, 832, 63, 419, 607, 23755, 391, 2549, 419, 3119, 603, 434, 666, 15008, 63, 343, 649, 51, 688, 100, 2003, 459, 78, 2818, 1348, 7677, 2794, 863, 4501, 23063, 7164, 603, 461, 649, 51, 18528, 100, 483, 365, 222 ]
[ "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "Ċ", "import", "Ġabc", "Ċ", "import", "Ġdatetime", "Ċ", "import", "Ġimportlib", "Ċ", "import", "Ġinspect", "Ċ", "import", "Ġos", "Ċ", "import", "Ġre", "Ċ", "import", "Ġsix", "Ċ", "Ċ", "from", "Ġ.", "library", "Ġimport", "ĠHal", "Library", "ĊĊ", "Ċ", "@", "six", ".", "add", "_", "met", "aclass", "(", "abc", ".", "AB", "CM", "eta", ")", "Ċ", "class", "ĠHal", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġconfig", "path", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "config", "path", "Ġ=", "Ġconfig", "path", "ĊĠĠĠĠĠĠĠ", "Ġ#", "ĠFind", "Ġlibraries", "Ġinside", "Ġthe", "Ġlib", "Ġdirectory", "ĊĊĠĠĠĠĠĠĠ", "Ġdir", "_", "path", "Ġ=", "Ġos", ".", "path", ".", "join", "(", "os", ".", "path", ".", "dirname", "(__", "file", "__),", "Ġ\"", "libraries", "\")", "ĊĠĠĠĠĠĠĠ", "Ġlib", "_", "files", "Ġ=", "Ġ[", "f", "Ġfor", "Ġf", "Ġin", "Ġos", ".", "listdir", "(", "dir", "_", "path", ")", "Ġif", "Ġos", ".", "path", ".", "isfile", "(", "os", ".", "path", ".", "join", "(", "dir", "_", "path", ",", "Ġf", "))", "Ġand", "Ġf", ".", "lower", "().", "endswith", "(\".", "py", "\")]", "ĊĊĠĠĠĠĠĠĠ", "Ġself", ".", "responses", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "libraries", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġf", "Ġin", "Ġlib", "_", "files", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "ĠTry", "Ġto", "Ġload", "Ġthe", "Ġmodule", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġmodule", "_", "name", "Ġ=", "Ġ\"", "hal", ".", "libraries", ".\"", "Ġ+", "Ġf", "[:-", "3", "]", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġmodule", "Ġ=", "Ġimportlib", ".", "import", "_", "module", "(", "module", "_", "name", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġname", ",", "Ġobj", "Ġin", "Ġinspect", ".", "get", "members", "(", "module", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "ĠFind", "Ġclasses", "Ġthat", "Ġinherit", "Ġfrom", "ĠHal", "Library", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġ(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġinspect", ".", "is", "class", "(", "obj", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġand", "Ġis", "subclass", "(", "obj", ",", "ĠHal", "Library", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġand", "Ġname", "Ġ!=", "Ġ\"", "Hal", "Library", "\"", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġand", "Ġnot", "Ġinspect", ".", "is", "abstract", "(", "obj", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "libraries", ".", "append", "(", "obj", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġexcept", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "add", "_", "response", "(\"", "Error", "Ġloading", "Ġlibrary", "Ġ{}\".", "format", "(", "f", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġraise", "ĊĊĠĠĠ", "Ġdef", "Ġadd", "_", "response", "(", "self", ",", "Ġtext", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "responses", ".", "append", "(", "text", ")", "ĊĊĠĠĠ", "Ġdef", "Ġsay", "_", "all", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġresponse", "Ġ=", "Ġ\"\\", "n", "\".", "join", "(", "self", ".", "responses", ")", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġresponse", "ĊĊĠĠĠ", "Ġ@", "abc", ".", "abstractmethod", "ĊĠĠĠ", "Ġdef", "Ġdisplay", "_", "help", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Present", "Ġsome", "Ġinformation", "Ġto", "Ġthe", "Ġuser", "\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠ", "Ġdef", "Ġg", "reet", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġhour", "Ġ=", "Ġdatetime", ".", "datetime", ".", "now", "().", "hour", "ĊĊĠĠĠĠĠĠĠ", "Ġg", "reeting", "Ġ=", "Ġ\"", "Good", "ĠEven", "ing", "\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġhour", "Ġ<", "Ġ", "1", "2", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġg", "reeting", "Ġ=", "Ġ\"", "Good", "Ġmorning", "\"", "ĊĠĠĠĠĠĠĠ", "Ġelif", "Ġ", "1", "2", "Ġ<=", "Ġhour", "Ġ<", "Ġ", "1", "8", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġg", "reeting", "Ġ=", "Ġ\"", "Good", "Ġaf", "tern", "oon", "\"", "ĊĊĠĠĠĠĠĠĠ", "Ġself", ".", "add", "_", "response", "(\"", "{}.", "ĠWhat", "Ġcan", "ĠI", "Ġhelp", "Ġyou", "Ġwith", "?", "\".", "format", "(", "greeting", "))", "ĊĊĠĠĠ", "Ġdef", "Ġprocess", "(", "self", ",", "Ġcommand", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠProcess", "Ġthe", "Ġcommand", "Ġand", "Ġget", "Ġresponse", "Ġby", "Ġquerying", "Ġeach", "Ġplugin", "Ġif", "Ġrequired", ".", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "responses", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġlen", "(", "command", ")", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "gre", "et", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "say", "_", "all", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "Ġprepare", "Ġthe", "Ġcommand", "ĊĠĠĠĠĠĠĠ", "Ġcommand", "Ġ=", "Ġcommand", ".", "strip", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠSome", "Ġhard", "Ġcoded", "Ġpatterns", ":", "ĠIf", "Ġfirst", "Ġword", "Ġis", "Ġhelp", ",", "Ġactivate", "Ġhelp", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġm", "oud", "ule", "ĊĠĠĠĠĠĠĠ", "Ġhelp", "_", "regex", "Ġ=", "Ġre", ".", "compile", "(\"", "help", "\\", "s", "+", "([", "^\\", "s", "]+", ")\")", "ĊĠĠĠĠĠĠĠ", "Ġhelp", "_", "match", "Ġ=", "Ġhelp", "_", "regex", ".", "match", "(", "command", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġhelp", "_", "match", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġkeyword", "Ġ=", "Ġhelp", "_", "match", ".", "group", "(", "1", ").", "lower", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "ĠTry", "Ġto", "Ġfind", "Ġlibraries", "Ġwith", "Ġthe", "Ġkeyword", "Ġand", "Ġprint", "Ġtheir", "Ġhelp", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġlib", "Ġin", "Ġself", ".", "libraries", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġkeyword", "Ġin", "Ġlib", ".", "keywords", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "ĠPrint", "Ġthe", "Ġhelp", "Ġtext", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġhelp", "_", "content", "Ġ=", "Ġlib", ".", "help", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "display", "_", "help", "(", "help", "_", "content", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĊĊĠĠĠĠĠĠĠ", "Ġmatched", "Ġ=", "ĠFalse", "ĊĊĠĠĠĠĠĠĠ", "Ġfor", "Ġlib", "Ġin", "Ġself", ".", "libraries", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlib", "_", "obj", "Ġ=", "Ġlib", "(", "command", ")", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ġtry", "Ġto", "Ġmatch", "Ġthe", "Ġcommand", "Ġwith", "Ġthe", "Ġlibrary", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġlib", "_", "obj", ".", "process", "_", "input", "()", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġlib", "_", "obj", ".", "status", "Ġ==", "ĠHal", "Library", ".", "SUCCESS", "Ġor", "Ġlib", "_", "obj", ".", "status", "Ġ==", "ĠHal", "Library", ".", "IN", "COMPLETE", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġmatched", "Ġ=", "ĠTrue", "ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġlib", "_", "obj", ".", "process", "()", "ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresp", "Ġ=", "Ġlib", "_", "obj", ".", "get", "_", "response", "()", "ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġr", "Ġin", "Ġresp", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "add", "_", "response", "(", "r", ")", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġlib", "_", "obj", ".", "status", "Ġ==", "ĠHal", "Library", ".", "ERROR", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġmatched", "Ġ=", "ĠTrue", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "add", "_", "response", "(\"", "ERROR", ":", "Ġ\"", "Ġ+", "Ġlib", "_", "obj", ".", "get", "_", "error", "())", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "ĠFailure", "Ġto", "Ġmatch", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġpass", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġnot", "Ġmatched", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "add", "_", "response", "(\"", "I", "Ġdon", "'t", "Ġunderstand", "Ġwhat", "Ġyou", "'re", "Ġsaying", ".\")", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "say", "_", "all", "()", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 11, 11, 11, 11, 11, 11, 11, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 66, 66, 66, 66, 66, 66, 66, 66, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 87, 87, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 93, 93, 93, 93, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 96, 96, 96, 96, 96, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 102, 102, 102, 102, 104, 104, 104, 104, 104, 104, 104, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 108, 108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 109, 109, 109, 109, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 112, 112, 112, 112, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 114, 114, 114, 115, 115, 115, 115, 115, 116, 116, 118, 118, 118, 118, 118, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 121, 121, 121, 121, 121, 121, 121, 121 ]
[ 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 1, 7, 11, 1, 7, 16, 1, 7, 17, 1, 7, 15, 1, 7, 10, 1, 7, 10, 1, 7, 11, 1, 1, 5, 7, 14, 21, 25, 32, 1, 1, 2, 5, 6, 9, 10, 13, 19, 20, 23, 24, 26, 28, 31, 32, 1, 6, 10, 11, 4, 8, 11, 15, 18, 22, 23, 30, 34, 36, 8, 13, 14, 20, 24, 26, 33, 37, 8, 10, 15, 25, 32, 36, 40, 50, 8, 12, 13, 17, 19, 22, 23, 27, 28, 32, 33, 35, 36, 40, 41, 48, 51, 55, 59, 61, 70, 72, 8, 12, 13, 18, 20, 22, 23, 27, 29, 32, 35, 36, 43, 44, 47, 48, 52, 53, 56, 59, 60, 64, 65, 71, 72, 74, 75, 79, 80, 84, 85, 88, 89, 93, 94, 96, 98, 102, 104, 105, 110, 113, 121, 124, 126, 129, 8, 13, 14, 23, 25, 28, 8, 13, 14, 23, 25, 28, 8, 12, 14, 17, 21, 22, 27, 28, 12, 14, 18, 21, 26, 30, 37, 12, 16, 17, 16, 23, 24, 28, 30, 32, 35, 36, 45, 47, 49, 51, 54, 55, 56, 16, 23, 25, 35, 36, 42, 43, 49, 50, 56, 57, 61, 62, 16, 20, 25, 26, 30, 33, 41, 42, 45, 52, 53, 59, 61, 20, 22, 27, 35, 40, 48, 53, 57, 64, 20, 23, 25, 24, 32, 33, 35, 40, 41, 44, 45, 24, 28, 31, 39, 40, 43, 44, 48, 55, 56, 24, 28, 33, 36, 38, 41, 48, 49, 24, 28, 32, 40, 41, 43, 51, 52, 55, 56, 20, 23, 24, 29, 30, 39, 40, 46, 47, 50, 51, 12, 19, 20, 16, 21, 22, 25, 26, 34, 36, 41, 49, 57, 62, 68, 69, 70, 72, 16, 22, 4, 8, 12, 13, 21, 22, 26, 27, 32, 34, 8, 13, 14, 23, 24, 30, 31, 35, 36, 4, 8, 12, 13, 16, 17, 21, 23, 8, 17, 19, 22, 23, 25, 29, 30, 34, 35, 44, 45, 8, 15, 24, 4, 6, 9, 10, 24, 4, 8, 16, 17, 21, 22, 26, 28, 8, 12, 19, 24, 36, 39, 43, 48, 51, 8, 13, 4, 8, 10, 14, 15, 19, 21, 8, 13, 15, 24, 25, 33, 34, 37, 40, 44, 8, 10, 17, 19, 21, 25, 30, 33, 34, 8, 11, 16, 18, 19, 20, 21, 22, 12, 14, 21, 23, 25, 29, 37, 38, 8, 13, 14, 15, 16, 19, 24, 26, 27, 28, 29, 30, 12, 14, 21, 23, 25, 29, 32, 36, 39, 40, 8, 13, 14, 17, 18, 26, 28, 31, 36, 40, 42, 47, 51, 56, 57, 59, 65, 66, 74, 76, 4, 8, 16, 17, 21, 22, 30, 32, 8, 12, 8, 16, 20, 28, 32, 36, 45, 48, 57, 62, 69, 72, 81, 82, 8, 12, 8, 13, 14, 23, 25, 28, 8, 11, 15, 16, 23, 24, 27, 28, 29, 30, 12, 17, 18, 21, 23, 25, 12, 19, 24, 25, 28, 29, 32, 34, 8, 10, 18, 22, 30, 8, 16, 18, 26, 27, 32, 34, 8, 10, 15, 20, 26, 35, 36, 39, 45, 50, 53, 58, 59, 68, 73, 8, 10, 12, 15, 18, 8, 13, 14, 19, 21, 24, 25, 32, 34, 38, 39, 40, 41, 43, 45, 46, 48, 51, 8, 13, 14, 19, 21, 26, 27, 32, 33, 38, 39, 46, 47, 8, 11, 16, 17, 22, 23, 12, 20, 22, 27, 28, 33, 34, 39, 40, 41, 43, 48, 50, 12, 14, 18, 21, 26, 36, 41, 45, 53, 57, 63, 69, 74, 12, 16, 20, 23, 28, 29, 38, 39, 16, 19, 27, 30, 34, 35, 43, 44, 20, 22, 28, 32, 37, 42, 20, 25, 26, 33, 35, 39, 40, 44, 46, 20, 25, 26, 33, 34, 38, 39, 43, 44, 51, 52, 12, 19, 8, 16, 18, 24, 8, 12, 16, 19, 24, 25, 34, 35, 12, 16, 17, 20, 22, 26, 27, 34, 35, 12, 14, 18, 21, 27, 31, 39, 44, 48, 56, 12, 16, 17, 20, 21, 28, 29, 34, 36, 12, 15, 19, 20, 23, 24, 30, 33, 37, 44, 45, 52, 55, 59, 60, 63, 64, 70, 73, 77, 84, 85, 87, 95, 96, 16, 24, 26, 31, 16, 20, 21, 24, 25, 32, 34, 16, 21, 23, 27, 28, 31, 32, 35, 36, 44, 46, 16, 20, 22, 25, 30, 31, 20, 25, 26, 29, 30, 38, 39, 40, 41, 12, 17, 21, 22, 25, 26, 32, 35, 39, 46, 47, 52, 53, 16, 24, 26, 31, 16, 21, 22, 25, 26, 34, 36, 41, 42, 44, 46, 50, 51, 54, 55, 58, 59, 64, 67, 12, 17, 18, 16, 18, 26, 29, 35, 16, 21, 8, 11, 15, 23, 24, 12, 17, 18, 21, 22, 30, 32, 33, 37, 39, 50, 55, 59, 62, 69, 72, 8, 15, 20, 21, 24, 25, 28, 30 ]
66edf0d2f7e25e166563bdb1063a1ed45ecda0e6
Easy = [ ["4 + 12 = ?", 16], ["45 -34 = ?", 11], ["27 + 12 -18 = ?", 21], ["25 - 5 * 4 = ?", 5], ["18 + 45 / 5 - 3 * 2 = ?", 21], ["5! = ?", 120], ["3! + 2! = ?", 8], ["7 + 5! / 4! - 6 / 3 = ?", 10], ["(25 + 5) / 6 * 4 = ?", 20], ["4(3+c)+c=c+4; c=?", -2], ["​√​121 = ?", 11], ["x = √​81 - √​64; x= ?", 1], ["x + y = 20; x - y = 4; y = ?", 8], ] Normal = [ ["8(10−k)=2k; k = ?", 8], ["−4n−8=4(−3n+2); n=?", 2], ["4(3+c)+c=c+4; c=?", -2], ["​√​121 = ?", 11], ["x = √​81 - √​64; x= ?", 1], ["y = √​16 * √​4 / √​9; y=?", 2], ["y−3=2(x+1); x= -2, y=?", 1], [" y*y = 4x/5 − 11; y= 5, x = ?", 45], ["How many unique ways are there to arrange the letters in the word CANNON?", 120], ["How many numbers between 1 and 100(inclusive) are divisible by 10 or 7", 23], ["y=−4x+6; ​3x+4y=-2 ; x=?", 2], ["−x+4y=−9; ​y=−2x-9; y=?", -3], ] Hard = [ [ "Emily is packing her bags for her vacation. She has 6 unique Fabergé eggs, but only 3 fit in her bag. How many different groups of 3 Fabergé eggs can she take?", 20, ], [ "You just got a free ticket for a boat ride, and you can bring along 2 friends! Unfortunately, you have 5 friends who want to come along. How many different groups of friends could you take with you?", 10, ], [ "Omar is packing his bags for his vacation. He has 999 unique shirts, but only 5 fit in his bag. How many different groups of 5 shirts can he take?", 126, ], ["How many numbers between 1 and 100(inclusive) are divisible by 3 or 2?", 67], [ "You need to put your reindeer, Gloopin, Quentin, Ezekiel, and Lancer, in a single-file line to pull your sleigh. However, Quentin and Gloopin are best friends, so you have to put them next to each other, or they won't fly. How many ways can you arrange your reindeer?", 12, ], [ "You need to put your reindeer, Gloopin, Balthazar, Bloopin, Prancer, and Quentin, in a single-file line to pull your sleigh. However, Prancer and Balthazar are best friends, so you have to put them next to each other, or they won't fly. How many ways can you arrange your reindeer?", 2, ], ["y−3=2(x+1); x= -2, y=?", 48], ["How many unique ways are there to arrange the letters in the word CANNON?", 120], ["How many numbers between 1 and 100(inclusive) are divisible by 10 or 7", 23], ["−x+4y=−9; ​y=−2x-9; y=?", -3], ["x = √​81 - √​64; x= ?", 1], ["y = √​16 * √​4 / √​9; y=?", 2], ["y−3=2(x+1); x= -2, y=?", 1], [" y*y = 4x/5 − 11; y= 5, x = ?", 45], ["y=−4x+6; ​3x+4y=-2 ; x=?", 2], ["−x+4y=−9; ​y=−2x-9; y=?", -3], ]
[ 21309, 299, 447, 303, 3059, 57, 494, 244, 54, 55, 299, 35189, 244, 54, 59, 636, 303, 3059, 57, 58, 449, 56, 57, 299, 35189, 244, 54, 54, 636, 303, 3059, 55, 60, 494, 244, 54, 55, 449, 54, 61, 299, 35189, 244, 55, 54, 636, 303, 3059, 55, 58, 449, 244, 58, 338, 244, 57, 299, 35189, 244, 58, 636, 303, 3059, 54, 61, 494, 244, 57, 58, 536, 244, 58, 449, 244, 56, 338, 244, 55, 299, 35189, 244, 55, 54, 636, 303, 3059, 58, 38, 299, 35189, 244, 54, 55, 53, 636, 303, 3059, 56, 38, 494, 244, 55, 38, 299, 35189, 244, 61, 636, 303, 3059, 60, 494, 244, 58, 38, 536, 244, 57, 38, 449, 244, 59, 536, 244, 56, 299, 35189, 244, 54, 53, 636, 303, 3059, 45, 55, 58, 494, 244, 58, 46, 536, 244, 59, 338, 244, 57, 244, 299, 35189, 244, 55, 53, 636, 303, 3059, 57, 45, 56, 48, 104, 7308, 104, 66, 104, 48, 57, 64, 300, 66, 14199, 449, 55, 636, 303, 3059, 26922, 21022, 272, 26922, 54, 55, 54, 299, 35189, 244, 54, 54, 636, 303, 3059, 125, 299, 14533, 272, 26922, 61, 54, 449, 14533, 272, 26922, 59, 57, 64, 837, 66, 35189, 244, 54, 636, 303, 3059, 125, 494, 553, 299, 244, 55, 53, 64, 244, 837, 449, 553, 299, 244, 57, 64, 553, 299, 35189, 244, 61, 636, 222, 98, 222, 222, 5981, 299, 447, 303, 3059, 61, 45, 54, 53, 21022, 264, 112, 11145, 55, 112, 64, 851, 299, 35189, 244, 61, 636, 303, 3059, 21022, 264, 57, 115, 21022, 264, 61, 66, 57, 45, 21022, 264, 56, 115, 48, 55, 312, 329, 66, 14199, 244, 55, 636, 303, 3059, 57, 45, 56, 48, 104, 7308, 104, 66, 104, 48, 57, 64, 300, 66, 14199, 449, 55, 636, 303, 3059, 26922, 21022, 272, 26922, 54, 55, 54, 299, 35189, 244, 54, 54, 636, 303, 3059, 125, 299, 14533, 272, 26922, 61, 54, 449, 14533, 272, 26922, 59, 57, 64, 837, 66, 35189, 244, 54, 636, 303, 3059, 126, 299, 14533, 272, 26922, 54, 59, 338, 14533, 272, 26922, 57, 536, 14533, 272, 26922, 62, 64, 553, 66, 14199, 244, 55, 636, 303, 3059, 126, 21022, 264, 56, 66, 55, 45, 125, 48, 54, 312, 837, 66, 449, 55, 49, 553, 66, 14199, 244, 54, 636, 303, 3059, 553, 47, 126, 299, 244, 57, 125, 52, 58, 14533, 264, 244, 54, 54, 64, 553, 66, 244, 58, 49, 837, 299, 35189, 244, 57, 58, 636, 303, 3059, 8276, 5110, 5823, 13608, 904, 2038, 391, 26538, 341, 19429, 347, 341, 3619, 22320, 10012, 14199, 244, 54, 55, 53, 636, 303, 3059, 8276, 5110, 7560, 3761, 244, 54, 480, 244, 54, 53, 53, 45, 42346, 46, 904, 4469, 42945, 829, 244, 54, 53, 575, 244, 60, 411, 244, 55, 56, 636, 303, 3059, 126, 66, 21022, 264, 57, 125, 48, 59, 64, 3297, 257, 56, 125, 48, 57, 126, 6626, 55, 2098, 837, 66, 14199, 244, 55, 636, 303, 3059, 21022, 264, 125, 48, 57, 126, 66, 21022, 264, 62, 64, 3297, 257, 126, 66, 21022, 264, 55, 125, 50, 62, 64, 553, 66, 14199, 449, 56, 636, 222, 98, 222, 222, 15014, 299, 447, 303, 447, 310, 332, 12306, 2820, 458, 8928, 318, 7802, 27798, 456, 7802, 29170, 387, 51, 20332, 1421, 244, 59, 5823, 525, 380, 15082, 1329, 16314, 5399, 49, 1294, 1773, 244, 56, 8240, 347, 7802, 20664, 51, 4998, 5110, 3473, 8374, 451, 244, 56, 525, 380, 15082, 1329, 16314, 5399, 902, 11036, 4843, 14199, 295, 55, 53, 49, 303, 2520, 303, 447, 310, 332, 4296, 2277, 5441, 331, 3760, 14724, 456, 331, 2978, 288, 244, 1203, 49, 480, 863, 902, 18020, 7979, 244, 55, 22591, 38, 26485, 49, 863, 1178, 244, 58, 22591, 6574, 2660, 391, 6558, 7979, 51, 4998, 5110, 3473, 8374, 451, 22591, 3087, 863, 4843, 642, 863, 14199, 295, 54, 53, 49, 303, 2520, 303, 447, 310, 332, 84, 3321, 458, 8928, 318, 6714, 27798, 456, 6714, 29170, 387, 51, 4401, 1421, 244, 62, 62, 62, 5823, 807, 495, 1448, 49, 1294, 1773, 244, 58, 8240, 347, 6714, 20664, 51, 4998, 5110, 3473, 8374, 451, 244, 58, 807, 495, 1448, 902, 957, 4843, 14199, 295, 54, 55, 59, 49, 303, 2520, 303, 3059, 8276, 5110, 7560, 3761, 244, 54, 480, 244, 54, 53, 53, 45, 42346, 46, 904, 4469, 42945, 829, 244, 56, 575, 244, 55, 14199, 244, 59, 60, 636, 303, 447, 310, 332, 4296, 1868, 391, 4180, 1390, 334, 21690, 284, 49, 590, 5856, 285, 49, 5618, 323, 285, 49, 535, 2968, 112, 691, 49, 480, 517, 10006, 49, 347, 331, 4005, 50, 781, 1646, 391, 5093, 1390, 38743, 1821, 51, 8786, 49, 5618, 323, 285, 480, 590, 5856, 285, 904, 5318, 22591, 49, 1278, 863, 1178, 391, 4180, 3049, 2371, 391, 2531, 1623, 49, 575, 2974, 7623, 1348, 24336, 51, 4998, 5110, 13608, 902, 863, 26538, 1390, 334, 21690, 284, 14199, 295, 54, 55, 49, 303, 2520, 303, 447, 310, 332, 4296, 1868, 391, 4180, 1390, 334, 21690, 284, 49, 590, 5856, 285, 49, 570, 4431, 40312, 49, 570, 5856, 285, 49, 5210, 10006, 49, 480, 5618, 323, 285, 49, 347, 331, 4005, 50, 781, 1646, 391, 5093, 1390, 38743, 1821, 51, 8786, 49, 5210, 10006, 480, 570, 4431, 40312, 904, 5318, 22591, 49, 1278, 863, 1178, 391, 4180, 3049, 2371, 391, 2531, 1623, 49, 575, 2974, 7623, 1348, 24336, 51, 4998, 5110, 13608, 902, 863, 26538, 1390, 334, 21690, 284, 14199, 295, 55, 49, 303, 2520, 303, 3059, 126, 21022, 264, 56, 66, 55, 45, 125, 48, 54, 312, 837, 66, 449, 55, 49, 553, 66, 14199, 244, 57, 61, 636, 303, 3059, 8276, 5110, 5823, 13608, 904, 2038, 391, 26538, 341, 19429, 347, 341, 3619, 22320, 10012, 14199, 244, 54, 55, 53, 636, 303, 3059, 8276, 5110, 7560, 3761, 244, 54, 480, 244, 54, 53, 53, 45, 42346, 46, 904, 4469, 42945, 829, 244, 54, 53, 575, 244, 60, 411, 244, 55, 56, 636, 303, 3059, 21022, 264, 125, 48, 57, 126, 66, 21022, 264, 62, 64, 3297, 257, 126, 66, 21022, 264, 55, 125, 50, 62, 64, 553, 66, 14199, 449, 56, 636, 303, 3059, 125, 299, 14533, 272, 26922, 61, 54, 449, 14533, 272, 26922, 59, 57, 64, 837, 66, 35189, 244, 54, 636, 303, 3059, 126, 299, 14533, 272, 26922, 54, 59, 338, 14533, 272, 26922, 57, 536, 14533, 272, 26922, 62, 64, 553, 66, 14199, 244, 55, 636, 303, 3059, 126, 21022, 264, 56, 66, 55, 45, 125, 48, 54, 312, 837, 66, 449, 55, 49, 553, 66, 14199, 244, 54, 636, 303, 3059, 553, 47, 126, 299, 244, 57, 125, 52, 58, 14533, 264, 244, 54, 54, 64, 553, 66, 244, 58, 49, 837, 299, 35189, 244, 57, 58, 636, 303, 3059, 126, 66, 21022, 264, 57, 125, 48, 59, 64, 3297, 257, 56, 125, 48, 57, 126, 6626, 55, 2098, 837, 66, 14199, 244, 55, 636, 303, 3059, 21022, 264, 125, 48, 57, 126, 66, 21022, 264, 62, 64, 3297, 257, 126, 66, 21022, 264, 55, 125, 50, 62, 64, 553, 66, 14199, 449, 56, 636, 222, 98, 222 ]
[ "Easy", "Ġ=", "Ġ[", "ĊĠĠĠ", "Ġ[\"", "4", "Ġ+", "Ġ", "1", "2", "Ġ=", "Ġ?\",", "Ġ", "1", "6", "],", "ĊĠĠĠ", "Ġ[\"", "4", "5", "Ġ-", "3", "4", "Ġ=", "Ġ?\",", "Ġ", "1", "1", "],", "ĊĠĠĠ", "Ġ[\"", "2", "7", "Ġ+", "Ġ", "1", "2", "Ġ-", "1", "8", "Ġ=", "Ġ?\",", "Ġ", "2", "1", "],", "ĊĠĠĠ", "Ġ[\"", "2", "5", "Ġ-", "Ġ", "5", "Ġ*", "Ġ", "4", "Ġ=", "Ġ?\",", "Ġ", "5", "],", "ĊĠĠĠ", "Ġ[\"", "1", "8", "Ġ+", "Ġ", "4", "5", "Ġ/", "Ġ", "5", "Ġ-", "Ġ", "3", "Ġ*", "Ġ", "2", "Ġ=", "Ġ?\",", "Ġ", "2", "1", "],", "ĊĠĠĠ", "Ġ[\"", "5", "!", "Ġ=", "Ġ?\",", "Ġ", "1", "2", "0", "],", "ĊĠĠĠ", "Ġ[\"", "3", "!", "Ġ+", "Ġ", "2", "!", "Ġ=", "Ġ?\",", "Ġ", "8", "],", "ĊĠĠĠ", "Ġ[\"", "7", "Ġ+", "Ġ", "5", "!", "Ġ/", "Ġ", "4", "!", "Ġ-", "Ġ", "6", "Ġ/", "Ġ", "3", "Ġ=", "Ġ?\",", "Ġ", "1", "0", "],", "ĊĠĠĠ", "Ġ[\"", "(", "2", "5", "Ġ+", "Ġ", "5", ")", "Ġ/", "Ġ", "6", "Ġ*", "Ġ", "4", "Ġ", "Ġ=", "Ġ?\",", "Ġ", "2", "0", "],", "ĊĠĠĠ", "Ġ[\"", "4", "(", "3", "+", "c", ")+", "c", "=", "c", "+", "4", ";", "Ġc", "=", "?\",", "Ġ-", "2", "],", "ĊĠĠĠ", "Ġ[\"", "âĢĭ", "âĪ", "ļ", "âĢĭ", "1", "2", "1", "Ġ=", "Ġ?\",", "Ġ", "1", "1", "],", "ĊĠĠĠ", "Ġ[\"", "x", "Ġ=", "ĠâĪ", "ļ", "âĢĭ", "8", "1", "Ġ-", "ĠâĪ", "ļ", "âĢĭ", "6", "4", ";", "Ġx", "=", "Ġ?\",", "Ġ", "1", "],", "ĊĠĠĠ", "Ġ[\"", "x", "Ġ+", "Ġy", "Ġ=", "Ġ", "2", "0", ";", "Ġ", "Ġx", "Ġ-", "Ġy", "Ġ=", "Ġ", "4", ";", "Ġy", "Ġ=", "Ġ?\",", "Ġ", "8", "],", "Ċ", "]", "Ċ", "Ċ", "Normal", "Ġ=", "Ġ[", "ĊĠĠĠ", "Ġ[\"", "8", "(", "1", "0", "âĪ", "Ĵ", "k", ")=", "2", "k", ";", "Ġk", "Ġ=", "Ġ?\",", "Ġ", "8", "],", "ĊĠĠĠ", "Ġ[\"", "âĪ", "Ĵ", "4", "n", "âĪ", "Ĵ", "8", "=", "4", "(", "âĪ", "Ĵ", "3", "n", "+", "2", ");", "Ġn", "=", "?\",", "Ġ", "2", "],", "ĊĠĠĠ", "Ġ[\"", "4", "(", "3", "+", "c", ")+", "c", "=", "c", "+", "4", ";", "Ġc", "=", "?\",", "Ġ-", "2", "],", "ĊĠĠĠ", "Ġ[\"", "âĢĭ", "âĪ", "ļ", "âĢĭ", "1", "2", "1", "Ġ=", "Ġ?\",", "Ġ", "1", "1", "],", "ĊĠĠĠ", "Ġ[\"", "x", "Ġ=", "ĠâĪ", "ļ", "âĢĭ", "8", "1", "Ġ-", "ĠâĪ", "ļ", "âĢĭ", "6", "4", ";", "Ġx", "=", "Ġ?\",", "Ġ", "1", "],", "ĊĠĠĠ", "Ġ[\"", "y", "Ġ=", "ĠâĪ", "ļ", "âĢĭ", "1", "6", "Ġ*", "ĠâĪ", "ļ", "âĢĭ", "4", "Ġ/", "ĠâĪ", "ļ", "âĢĭ", "9", ";", "Ġy", "=", "?\",", "Ġ", "2", "],", "ĊĠĠĠ", "Ġ[\"", "y", "âĪ", "Ĵ", "3", "=", "2", "(", "x", "+", "1", ");", "Ġx", "=", "Ġ-", "2", ",", "Ġy", "=", "?\",", "Ġ", "1", "],", "ĊĠĠĠ", "Ġ[\"", "Ġy", "*", "y", "Ġ=", "Ġ", "4", "x", "/", "5", "ĠâĪ", "Ĵ", "Ġ", "1", "1", ";", "Ġy", "=", "Ġ", "5", ",", "Ġx", "Ġ=", "Ġ?\",", "Ġ", "4", "5", "],", "ĊĠĠĠ", "Ġ[\"", "How", "Ġmany", "Ġunique", "Ġways", "Ġare", "Ġthere", "Ġto", "Ġarrange", "Ġthe", "Ġletters", "Ġin", "Ġthe", "Ġword", "ĠCAN", "NON", "?\",", "Ġ", "1", "2", "0", "],", "ĊĠĠĠ", "Ġ[\"", "How", "Ġmany", "Ġnumbers", "Ġbetween", "Ġ", "1", "Ġand", "Ġ", "1", "0", "0", "(", "inclusive", ")", "Ġare", "Ġdiv", "isible", "Ġby", "Ġ", "1", "0", "Ġor", "Ġ", "7", "\",", "Ġ", "2", "3", "],", "ĊĠĠĠ", "Ġ[\"", "y", "=", "âĪ", "Ĵ", "4", "x", "+", "6", ";", "ĠâĢ", "ĭ", "3", "x", "+", "4", "y", "=-", "2", "Ġ;", "Ġx", "=", "?\",", "Ġ", "2", "],", "ĊĠĠĠ", "Ġ[\"", "âĪ", "Ĵ", "x", "+", "4", "y", "=", "âĪ", "Ĵ", "9", ";", "ĠâĢ", "ĭ", "y", "=", "âĪ", "Ĵ", "2", "x", "-", "9", ";", "Ġy", "=", "?\",", "Ġ-", "3", "],", "Ċ", "]", "Ċ", "Ċ", "Hard", "Ġ=", "Ġ[", "ĊĠĠĠ", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "Em", "ily", "Ġis", "Ġpack", "ing", "Ġher", "Ġbags", "Ġfor", "Ġher", "Ġvac", "ation", ".", "ĠShe", "Ġhas", "Ġ", "6", "Ġunique", "ĠF", "ab", "erg", "é", "Ġeg", "gs", ",", "Ġbut", "Ġonly", "Ġ", "3", "Ġfit", "Ġin", "Ġher", "Ġbag", ".", "ĠHow", "Ġmany", "Ġdifferent", "Ġgroups", "Ġof", "Ġ", "3", "ĠF", "ab", "erg", "é", "Ġeg", "gs", "Ġcan", "Ġshe", "Ġtake", "?\",", "ĊĠĠĠĠĠĠĠĠ", "2", "0", ",", "ĊĠĠĠ", "Ġ],", "ĊĠĠĠ", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "You", "Ġjust", "Ġgot", "Ġa", "Ġfree", "Ġticket", "Ġfor", "Ġa", "Ġbo", "at", "Ġ", "ride", ",", "Ġand", "Ġyou", "Ġcan", "Ġbring", "Ġalong", "Ġ", "2", "Ġfriends", "!", "ĠUnfortunately", ",", "Ġyou", "Ġhave", "Ġ", "5", "Ġfriends", "Ġwho", "Ġwant", "Ġto", "Ġcome", "Ġalong", ".", "ĠHow", "Ġmany", "Ġdifferent", "Ġgroups", "Ġof", "Ġfriends", "Ġcould", "Ġyou", "Ġtake", "Ġwith", "Ġyou", "?\",", "ĊĠĠĠĠĠĠĠĠ", "1", "0", ",", "ĊĠĠĠ", "Ġ],", "ĊĠĠĠ", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "O", "mar", "Ġis", "Ġpack", "ing", "Ġhis", "Ġbags", "Ġfor", "Ġhis", "Ġvac", "ation", ".", "ĠHe", "Ġhas", "Ġ", "9", "9", "9", "Ġunique", "Ġsh", "ir", "ts", ",", "Ġbut", "Ġonly", "Ġ", "5", "Ġfit", "Ġin", "Ġhis", "Ġbag", ".", "ĠHow", "Ġmany", "Ġdifferent", "Ġgroups", "Ġof", "Ġ", "5", "Ġsh", "ir", "ts", "Ġcan", "Ġhe", "Ġtake", "?\",", "ĊĠĠĠĠĠĠĠĠ", "1", "2", "6", ",", "ĊĠĠĠ", "Ġ],", "ĊĠĠĠ", "Ġ[\"", "How", "Ġmany", "Ġnumbers", "Ġbetween", "Ġ", "1", "Ġand", "Ġ", "1", "0", "0", "(", "inclusive", ")", "Ġare", "Ġdiv", "isible", "Ġby", "Ġ", "3", "Ġor", "Ġ", "2", "?\",", "Ġ", "6", "7", "],", "ĊĠĠĠ", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "You", "Ġneed", "Ġto", "Ġput", "Ġyour", "Ġre", "inde", "er", ",", "ĠG", "loop", "in", ",", "ĠQu", "ent", "in", ",", "ĠE", "ze", "k", "iel", ",", "Ġand", "ĠL", "ancer", ",", "Ġin", "Ġa", "Ġsingle", "-", "file", "Ġline", "Ġto", "Ġpull", "Ġyour", "Ġsle", "igh", ".", "ĠHowever", ",", "ĠQu", "ent", "in", "Ġand", "ĠG", "loop", "in", "Ġare", "Ġbest", "Ġfriends", ",", "Ġso", "Ġyou", "Ġhave", "Ġto", "Ġput", "Ġthem", "Ġnext", "Ġto", "Ġeach", "Ġother", ",", "Ġor", "Ġthey", "Ġwon", "'t", "Ġfly", ".", "ĠHow", "Ġmany", "Ġways", "Ġcan", "Ġyou", "Ġarrange", "Ġyour", "Ġre", "inde", "er", "?\",", "ĊĠĠĠĠĠĠĠĠ", "1", "2", ",", "ĊĠĠĠ", "Ġ],", "ĊĠĠĠ", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "You", "Ġneed", "Ġto", "Ġput", "Ġyour", "Ġre", "inde", "er", ",", "ĠG", "loop", "in", ",", "ĠB", "alth", "azar", ",", "ĠB", "loop", "in", ",", "ĠPr", "ancer", ",", "Ġand", "ĠQu", "ent", "in", ",", "Ġin", "Ġa", "Ġsingle", "-", "file", "Ġline", "Ġto", "Ġpull", "Ġyour", "Ġsle", "igh", ".", "ĠHowever", ",", "ĠPr", "ancer", "Ġand", "ĠB", "alth", "azar", "Ġare", "Ġbest", "Ġfriends", ",", "Ġso", "Ġyou", "Ġhave", "Ġto", "Ġput", "Ġthem", "Ġnext", "Ġto", "Ġeach", "Ġother", ",", "Ġor", "Ġthey", "Ġwon", "'t", "Ġfly", ".", "ĠHow", "Ġmany", "Ġways", "Ġcan", "Ġyou", "Ġarrange", "Ġyour", "Ġre", "inde", "er", "?\",", "ĊĠĠĠĠĠĠĠĠ", "2", ",", "ĊĠĠĠ", "Ġ],", "ĊĠĠĠ", "Ġ[\"", "y", "âĪ", "Ĵ", "3", "=", "2", "(", "x", "+", "1", ");", "Ġx", "=", "Ġ-", "2", ",", "Ġy", "=", "?\",", "Ġ", "4", "8", "],", "ĊĠĠĠ", "Ġ[\"", "How", "Ġmany", "Ġunique", "Ġways", "Ġare", "Ġthere", "Ġto", "Ġarrange", "Ġthe", "Ġletters", "Ġin", "Ġthe", "Ġword", "ĠCAN", "NON", "?\",", "Ġ", "1", "2", "0", "],", "ĊĠĠĠ", "Ġ[\"", "How", "Ġmany", "Ġnumbers", "Ġbetween", "Ġ", "1", "Ġand", "Ġ", "1", "0", "0", "(", "inclusive", ")", "Ġare", "Ġdiv", "isible", "Ġby", "Ġ", "1", "0", "Ġor", "Ġ", "7", "\",", "Ġ", "2", "3", "],", "ĊĠĠĠ", "Ġ[\"", "âĪ", "Ĵ", "x", "+", "4", "y", "=", "âĪ", "Ĵ", "9", ";", "ĠâĢ", "ĭ", "y", "=", "âĪ", "Ĵ", "2", "x", "-", "9", ";", "Ġy", "=", "?\",", "Ġ-", "3", "],", "ĊĠĠĠ", "Ġ[\"", "x", "Ġ=", "ĠâĪ", "ļ", "âĢĭ", "8", "1", "Ġ-", "ĠâĪ", "ļ", "âĢĭ", "6", "4", ";", "Ġx", "=", "Ġ?\",", "Ġ", "1", "],", "ĊĠĠĠ", "Ġ[\"", "y", "Ġ=", "ĠâĪ", "ļ", "âĢĭ", "1", "6", "Ġ*", "ĠâĪ", "ļ", "âĢĭ", "4", "Ġ/", "ĠâĪ", "ļ", "âĢĭ", "9", ";", "Ġy", "=", "?\",", "Ġ", "2", "],", "ĊĠĠĠ", "Ġ[\"", "y", "âĪ", "Ĵ", "3", "=", "2", "(", "x", "+", "1", ");", "Ġx", "=", "Ġ-", "2", ",", "Ġy", "=", "?\",", "Ġ", "1", "],", "ĊĠĠĠ", "Ġ[\"", "Ġy", "*", "y", "Ġ=", "Ġ", "4", "x", "/", "5", "ĠâĪ", "Ĵ", "Ġ", "1", "1", ";", "Ġy", "=", "Ġ", "5", ",", "Ġx", "Ġ=", "Ġ?\",", "Ġ", "4", "5", "],", "ĊĠĠĠ", "Ġ[\"", "y", "=", "âĪ", "Ĵ", "4", "x", "+", "6", ";", "ĠâĢ", "ĭ", "3", "x", "+", "4", "y", "=-", "2", "Ġ;", "Ġx", "=", "?\",", "Ġ", "2", "],", "ĊĠĠĠ", "Ġ[\"", "âĪ", "Ĵ", "x", "+", "4", "y", "=", "âĪ", "Ĵ", "9", ";", "ĠâĢ", "ĭ", "y", "=", "âĪ", "Ĵ", "2", "x", "-", "9", ";", "Ġy", "=", "?\",", "Ġ-", "3", "],", "Ċ", "]", "Ċ" ]
[ 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 16, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 31, 32, 32, 32, 32, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 36, 36, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 40, 40, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 49, 49, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 64, 64 ]
[ 1, 5, 7, 9, 4, 7, 8, 10, 11, 12, 13, 15, 19, 20, 21, 22, 24, 4, 7, 8, 9, 11, 12, 13, 15, 19, 20, 21, 22, 24, 4, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 20, 24, 25, 26, 27, 29, 4, 7, 8, 9, 11, 12, 13, 15, 16, 17, 19, 23, 24, 25, 27, 4, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 20, 21, 22, 24, 25, 26, 28, 32, 33, 34, 35, 37, 4, 7, 8, 9, 11, 15, 16, 17, 18, 19, 21, 4, 7, 8, 9, 11, 12, 13, 14, 16, 20, 21, 22, 24, 4, 7, 8, 10, 11, 12, 13, 15, 16, 17, 18, 20, 21, 22, 24, 25, 26, 28, 32, 33, 34, 35, 37, 4, 7, 8, 9, 10, 12, 13, 14, 15, 17, 18, 19, 21, 22, 23, 24, 26, 30, 31, 32, 33, 35, 4, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 22, 23, 26, 28, 29, 31, 4, 7, 8, 8, 9, 10, 11, 12, 13, 15, 19, 20, 21, 22, 24, 4, 7, 8, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 30, 31, 32, 34, 4, 7, 8, 10, 12, 14, 15, 16, 17, 18, 19, 21, 23, 25, 27, 28, 29, 30, 32, 34, 38, 39, 40, 42, 1, 2, 1, 1, 7, 9, 11, 4, 7, 8, 9, 10, 11, 11, 12, 13, 15, 16, 17, 18, 20, 22, 26, 27, 28, 30, 4, 7, 7, 8, 9, 10, 10, 11, 12, 13, 14, 15, 15, 16, 17, 18, 19, 20, 22, 24, 25, 28, 29, 30, 32, 4, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 22, 23, 26, 28, 29, 31, 4, 7, 8, 8, 9, 10, 11, 12, 13, 15, 19, 20, 21, 22, 24, 4, 7, 8, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 30, 31, 32, 34, 4, 7, 8, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 30, 31, 34, 35, 36, 38, 4, 7, 8, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 20, 21, 23, 24, 25, 27, 28, 31, 32, 33, 35, 4, 7, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 32, 34, 38, 39, 40, 41, 43, 4, 7, 10, 15, 22, 27, 31, 37, 40, 48, 52, 60, 63, 67, 72, 76, 79, 82, 83, 84, 85, 86, 88, 4, 7, 10, 15, 23, 31, 32, 33, 37, 38, 39, 40, 41, 42, 51, 52, 56, 60, 66, 69, 70, 71, 72, 75, 76, 77, 79, 80, 81, 82, 84, 4, 7, 8, 9, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 27, 29, 30, 33, 34, 35, 37, 4, 7, 7, 8, 9, 10, 11, 12, 13, 13, 14, 15, 16, 17, 18, 19, 20, 20, 21, 22, 23, 24, 25, 26, 28, 29, 32, 34, 35, 37, 1, 2, 1, 1, 5, 7, 9, 4, 6, 8, 10, 12, 15, 18, 23, 26, 30, 35, 39, 43, 47, 52, 53, 57, 61, 62, 63, 70, 72, 74, 77, 78, 81, 83, 84, 88, 93, 94, 95, 99, 102, 106, 110, 111, 115, 120, 130, 137, 140, 141, 142, 144, 146, 149, 150, 153, 155, 159, 163, 168, 171, 9, 10, 11, 12, 4, 7, 4, 6, 8, 10, 13, 18, 22, 24, 29, 36, 40, 42, 45, 47, 48, 52, 53, 57, 61, 65, 71, 77, 78, 79, 87, 88, 102, 103, 107, 112, 113, 114, 122, 126, 131, 134, 139, 145, 146, 150, 155, 165, 172, 175, 183, 189, 193, 198, 203, 207, 210, 9, 10, 11, 12, 4, 7, 4, 6, 8, 10, 11, 14, 17, 22, 25, 29, 34, 38, 42, 46, 51, 52, 55, 59, 60, 61, 62, 63, 70, 73, 75, 77, 78, 82, 87, 88, 89, 93, 96, 100, 104, 105, 109, 114, 124, 131, 134, 135, 136, 139, 141, 143, 147, 150, 155, 158, 9, 10, 11, 12, 13, 4, 7, 4, 7, 10, 15, 23, 31, 32, 33, 37, 38, 39, 40, 41, 42, 51, 52, 56, 60, 66, 69, 70, 71, 74, 75, 76, 79, 80, 81, 82, 84, 4, 6, 8, 10, 13, 18, 21, 25, 30, 33, 37, 39, 40, 42, 46, 48, 49, 52, 55, 57, 58, 60, 62, 63, 66, 67, 71, 73, 78, 79, 82, 84, 91, 92, 96, 101, 104, 109, 114, 118, 121, 122, 130, 131, 134, 137, 139, 143, 145, 149, 151, 155, 160, 168, 169, 172, 176, 181, 184, 188, 193, 198, 201, 206, 212, 213, 216, 221, 225, 227, 231, 232, 236, 241, 246, 250, 254, 262, 267, 270, 274, 276, 279, 9, 10, 11, 12, 4, 7, 4, 6, 8, 10, 13, 18, 21, 25, 30, 33, 37, 39, 40, 42, 46, 48, 49, 51, 55, 59, 60, 62, 66, 68, 69, 72, 77, 78, 82, 85, 88, 90, 91, 94, 96, 103, 104, 108, 113, 116, 121, 126, 130, 133, 134, 142, 143, 146, 151, 155, 157, 161, 165, 169, 174, 182, 183, 186, 190, 195, 198, 202, 207, 212, 215, 220, 226, 227, 230, 235, 239, 241, 245, 246, 250, 255, 260, 264, 268, 276, 281, 284, 288, 290, 293, 9, 10, 11, 4, 7, 4, 7, 8, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 20, 21, 23, 24, 25, 27, 28, 31, 32, 33, 34, 36, 4, 7, 10, 15, 22, 27, 31, 37, 40, 48, 52, 60, 63, 67, 72, 76, 79, 82, 83, 84, 85, 86, 88, 4, 7, 10, 15, 23, 31, 32, 33, 37, 38, 39, 40, 41, 42, 51, 52, 56, 60, 66, 69, 70, 71, 72, 75, 76, 77, 79, 80, 81, 82, 84, 4, 7, 7, 8, 9, 10, 11, 12, 13, 13, 14, 15, 16, 17, 18, 19, 20, 20, 21, 22, 23, 24, 25, 26, 28, 29, 32, 34, 35, 37, 4, 7, 8, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 30, 31, 32, 34, 4, 7, 8, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 30, 31, 34, 35, 36, 38, 4, 7, 8, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 20, 21, 23, 24, 25, 27, 28, 31, 32, 33, 35, 4, 7, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 32, 34, 38, 39, 40, 41, 43, 4, 7, 8, 9, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 27, 29, 30, 33, 34, 35, 37, 4, 7, 7, 8, 9, 10, 11, 12, 13, 13, 14, 15, 16, 17, 18, 19, 20, 20, 21, 22, 23, 24, 25, 26, 28, 29, 32, 34, 35, 37, 1, 2 ]
7d099012584b84e9767bf0ce9d9df1596ca3bbab
# Set up path references and dependencies. import os, sys, inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0, parentdir) sys.path.append(os.path.join(parentdir, "utils")) # Import important helper libraries. from flask import Flask, render_template import numpy as np import plotly import plotly.graph_objs as pgo import json # Import modules created to serve the project. # from utils import DB_interface as DBI # from utils import path_config as pc from utils import model app = Flask(__name__) # Global variable # DAYS = 500 @app.route("/") def index(): result_plot = compute_model_output() return render_template("index.html", graphJSON=result_plot) def compute_model_output(): num_steps = 500 init_inf = 5 t_inc = 5 t_inf = 9 r_t = 2.5 # np.random.normal(2.5, 1.0) rho = 1.0 kappa_0 = 0.0 kappa = 0.0 n_pop = 2000 seir = model.SEIRModel(num_steps, n_pop, init_inf, t_inc, t_inf, r_t, rho, kappa_0, kappa) s, e, i, r = seir.run() days = np.linspace(0, num_steps, num_steps) trace_0 = pgo.Scatter(x=days, y=s, mode="lines", name="s", line=dict(color="rgba(128, 223, 255, 1)")) trace_1 = pgo.Scatter(x=days, y=e, mode="lines", name="e", line=dict(color="rgba(200, 100, 0, 1)")) trace_2 = pgo.Scatter(x=days, y=i, mode="lines", name="i", line=dict(color="rgba(180, 0, 0, 1)")) trace_3 = pgo.Scatter(x=days, y=r, mode="lines", name="r", line=dict(color="rgba(0, 100, 50, 1)")) data = [trace_0, trace_1, trace_2, trace_3] graphJSON = json.dumps(data, cls=plotly.utils.PlotlyJSONEncoder) return graphJSON """ @app.callback( Output('test','children') [Input('val_num_steps', 'num_steps')] ) @app.route('/start_bckgrnd_update') def start_bckgrnd_update(): p = Process(target=bckgrnd_update, name="background_update") p.start() #p.join() now = datetime.now() user = {'username': 'MSE!'} posts = [ { 'author': {'username': 'Paul'}, 'body': 'Henrik has the update just been started?' }, { 'author': {'username': 'Henrik'}, 'body': 'You bet your sweet ass it has!' }, { 'author': {'username': 'Paul'}, 'body': 'So what time was is when it started?' }, { 'author': {'username': 'Henrik'}, 'body': 'It was exactly %s !' % now } ] return render_template("start_bckgrnd_update.html", title="home", user = user, posts=posts) def bckgrnd_update(): global updating updating = True while updating: print(datetime.now()) print("updating RKI DBs now") DB = DBI.DB_interface() DB.update_RKI_csv() DB.update_RKI_landkreise_csv() day = 24 * 3600 time.sleep(day) """ if __name__ == "__main__": app.run(debug=True)
[ 40, 1776, 992, 1536, 10656, 480, 6450, 51, 222, 485, 2355, 49, 5263, 49, 17878, 222, 222, 1719, 1537, 299, 2355, 51, 1005, 51, 7792, 45, 519, 51, 1005, 51, 21424, 45, 18710, 51, 390, 781, 45, 18710, 51, 1719, 1763, 28237, 222, 2562, 1537, 299, 2355, 51, 1005, 51, 7792, 45, 1719, 1537, 46, 222, 3750, 51, 1005, 51, 3233, 45, 53, 49, 2952, 1537, 46, 222, 3750, 51, 1005, 51, 1713, 45, 519, 51, 1005, 51, 2548, 45, 2562, 1537, 49, 332, 2324, 2152, 222, 222, 40, 9274, 8956, 9348, 11382, 51, 222, 1097, 18958, 1220, 24033, 49, 2922, 100, 2402, 222, 485, 6610, 641, 2115, 222, 222, 485, 7036, 651, 222, 485, 7036, 651, 51, 2275, 100, 25084, 641, 317, 1724, 222, 485, 2379, 222, 222, 40, 9274, 7912, 3290, 391, 13944, 341, 2091, 51, 222, 40, 664, 8767, 1220, 4594, 100, 3352, 641, 4594, 78, 222, 40, 664, 8767, 1220, 1536, 100, 1180, 641, 11497, 222, 1097, 8767, 1220, 1573, 222, 222, 745, 299, 24033, 4077, 444, 8238, 222, 222, 40, 6566, 2702, 222, 40, 38043, 88, 299, 244, 58, 53, 53, 499, 222, 69, 745, 51, 4363, 32153, 222, 610, 1671, 2284, 303, 1074, 100, 3570, 299, 7665, 100, 1184, 100, 2051, 365, 303, 461, 2922, 100, 2402, 459, 1076, 51, 935, 411, 4023, 3275, 66, 1285, 100, 3570, 46, 499, 222, 610, 7665, 100, 1184, 100, 2051, 2284, 303, 1952, 100, 7495, 299, 244, 58, 53, 53, 303, 3238, 100, 5290, 299, 244, 58, 303, 292, 100, 3582, 299, 244, 58, 303, 292, 100, 5290, 299, 244, 62, 303, 559, 100, 121, 299, 244, 55, 51, 58, 244, 607, 2115, 51, 3917, 51, 4434, 45, 55, 51, 58, 49, 244, 54, 51, 53, 46, 303, 23330, 299, 244, 54, 51, 53, 303, 851, 24949, 100, 53, 299, 244, 53, 51, 53, 303, 851, 24949, 299, 244, 53, 51, 53, 465, 329, 100, 3254, 299, 244, 55, 53, 53, 53, 465, 427, 495, 299, 1573, 51, 825, 3914, 1262, 45, 1538, 100, 7495, 49, 329, 100, 3254, 49, 3238, 100, 5290, 49, 292, 100, 3582, 49, 292, 100, 5290, 49, 559, 100, 121, 49, 23330, 49, 851, 24949, 100, 53, 49, 851, 24949, 46, 465, 328, 49, 503, 49, 613, 49, 559, 299, 427, 495, 51, 1967, 365, 465, 6952, 299, 2115, 51, 25165, 45, 53, 49, 1952, 100, 7495, 49, 1952, 100, 7495, 46, 465, 8266, 100, 53, 299, 317, 1724, 51, 33378, 45, 125, 66, 6140, 49, 553, 66, 120, 49, 2945, 366, 4466, 411, 655, 366, 120, 411, 1646, 66, 2734, 45, 1507, 366, 13888, 45, 54, 55, 61, 49, 244, 55, 55, 56, 49, 244, 55, 58, 58, 49, 244, 54, 46, 2152, 303, 8266, 100, 54, 299, 317, 1724, 51, 33378, 45, 125, 66, 6140, 49, 553, 66, 106, 49, 2945, 366, 4466, 411, 655, 366, 106, 411, 1646, 66, 2734, 45, 1507, 366, 13888, 45, 55, 53, 53, 49, 244, 54, 53, 53, 49, 244, 53, 49, 244, 54, 46, 2152, 303, 8266, 100, 55, 299, 317, 1724, 51, 33378, 45, 125, 66, 6140, 49, 553, 66, 110, 49, 2945, 366, 4466, 411, 655, 366, 110, 411, 1646, 66, 2734, 45, 1507, 366, 13888, 45, 54, 61, 53, 49, 244, 53, 49, 244, 53, 49, 244, 54, 46, 2152, 303, 8266, 100, 56, 299, 317, 1724, 51, 33378, 45, 125, 66, 6140, 49, 553, 66, 119, 49, 2945, 366, 4466, 411, 655, 366, 119, 411, 1646, 66, 2734, 45, 1507, 366, 13888, 45, 53, 49, 244, 54, 53, 53, 49, 244, 58, 53, 49, 244, 54, 46, 2152, 465, 727, 299, 447, 5736, 100, 53, 49, 8266, 100, 54, 49, 8266, 100, 55, 49, 8266, 100, 56, 98, 465, 4023, 3275, 299, 2379, 51, 16961, 45, 624, 49, 9036, 66, 3570, 651, 51, 2324, 51, 11756, 651, 3275, 8805, 46, 465, 461, 4023, 3275, 499, 222, 3012, 222, 69, 745, 51, 4399, 45, 303, 5601, 482, 881, 1216, 4931, 704, 303, 447, 1630, 482, 718, 100, 1538, 100, 7495, 389, 349, 1538, 100, 7495, 12408, 222, 46, 499, 222, 69, 745, 51, 4363, 3260, 1384, 100, 103, 473, 791, 1462, 100, 1896, 704, 222, 610, 1496, 100, 103, 473, 791, 1462, 100, 1896, 2284, 303, 317, 299, 6849, 45, 2000, 66, 103, 473, 791, 1462, 100, 1896, 49, 655, 366, 4175, 100, 1896, 678, 303, 317, 51, 1384, 365, 303, 607, 117, 51, 2548, 365, 303, 2483, 299, 7181, 51, 2192, 365, 303, 1275, 299, 5095, 715, 972, 349, 82, 825, 38, 6062, 303, 14752, 299, 447, 310, 320, 343, 349, 2133, 972, 5095, 715, 972, 349, 9927, 357, 8947, 343, 349, 1561, 972, 349, 77, 291, 22539, 1421, 341, 1991, 2277, 2602, 7326, 19062, 310, 820, 310, 320, 343, 349, 2133, 972, 5095, 715, 972, 349, 77, 291, 22539, 8947, 343, 349, 1561, 972, 349, 4296, 2768, 1390, 45384, 2245, 580, 1421, 20162, 310, 820, 310, 320, 343, 349, 2133, 972, 5095, 715, 972, 349, 9927, 357, 8947, 343, 349, 1561, 972, 349, 4185, 2794, 1153, 1616, 458, 1429, 580, 7326, 19062, 310, 820, 310, 320, 343, 349, 2133, 972, 5095, 715, 972, 349, 77, 291, 22539, 8947, 343, 349, 1561, 972, 349, 1029, 1616, 11153, 925, 120, 673, 44, 925, 2483, 310, 339, 465, 1499, 303, 461, 2922, 100, 2402, 459, 1384, 100, 103, 473, 791, 1462, 100, 1896, 51, 935, 411, 1799, 366, 2849, 411, 1275, 299, 1275, 49, 14752, 66, 8228, 46, 222, 222, 610, 342, 473, 791, 1462, 100, 1896, 2284, 303, 3671, 13291, 303, 13291, 299, 2969, 303, 2236, 13291, 63, 310, 1489, 45, 6703, 51, 2192, 1177, 310, 1489, 459, 34916, 578, 27716, 4594, 120, 2483, 678, 310, 4594, 299, 4594, 78, 51, 2015, 100, 3352, 365, 310, 4594, 51, 1896, 100, 24991, 78, 100, 4849, 365, 310, 4594, 51, 1896, 100, 24991, 78, 100, 6836, 112, 287, 1145, 100, 4849, 365, 310, 5830, 299, 244, 55, 57, 338, 244, 56, 59, 53, 53, 310, 1153, 51, 7860, 45, 3386, 46, 222, 3012, 222, 222, 344, 1176, 444, 523, 630, 9609, 1850, 18021, 303, 1142, 51, 1967, 45, 2824, 66, 1844, 46, 222 ]
[ "#", "ĠSet", "Ġup", "Ġpath", "Ġreferences", "Ġand", "Ġdependencies", ".", "Ċ", "import", "Ġos", ",", "Ġsys", ",", "Ġinspect", "Ċ", "Ċ", "current", "dir", "Ġ=", "Ġos", ".", "path", ".", "dirname", "(", "os", ".", "path", ".", "abspath", "(", "inspect", ".", "get", "file", "(", "inspect", ".", "current", "frame", "())))", "Ċ", "parent", "dir", "Ġ=", "Ġos", ".", "path", ".", "dirname", "(", "current", "dir", ")", "Ċ", "sys", ".", "path", ".", "insert", "(", "0", ",", "Ġparent", "dir", ")", "Ċ", "sys", ".", "path", ".", "append", "(", "os", ".", "path", ".", "join", "(", "parent", "dir", ",", "Ġ\"", "utils", "\"))", "Ċ", "Ċ", "#", "ĠImport", "Ġimportant", "Ġhelper", "Ġlibraries", ".", "Ċ", "from", "Ġflask", "Ġimport", "ĠFlask", ",", "Ġrender", "_", "template", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "Ċ", "import", "Ġplot", "ly", "Ċ", "import", "Ġplot", "ly", ".", "graph", "_", "objs", "Ġas", "Ġp", "go", "Ċ", "import", "Ġjson", "Ċ", "Ċ", "#", "ĠImport", "Ġmodules", "Ġcreated", "Ġto", "Ġserve", "Ġthe", "Ġproject", ".", "Ċ", "#", "Ġfrom", "Ġutils", "Ġimport", "ĠDB", "_", "interface", "Ġas", "ĠDB", "I", "Ċ", "#", "Ġfrom", "Ġutils", "Ġimport", "Ġpath", "_", "config", "Ġas", "Ġpc", "Ċ", "from", "Ġutils", "Ġimport", "Ġmodel", "Ċ", "Ċ", "app", "Ġ=", "ĠFlask", "(__", "name", "__)", "Ċ", "Ċ", "#", "ĠGlobal", "Ġvariable", "Ċ", "#", "ĠDAY", "S", "Ġ=", "Ġ", "5", "0", "0", "ĊĊ", "Ċ", "@", "app", ".", "route", "(\"/\")", "Ċ", "def", "Ġindex", "():", "ĊĠĠĠ", "Ġresult", "_", "plot", "Ġ=", "Ġcompute", "_", "model", "_", "output", "()", "ĊĠĠĠ", "Ġreturn", "Ġrender", "_", "template", "(\"", "index", ".", "html", "\",", "Ġgraph", "JSON", "=", "result", "_", "plot", ")", "ĊĊ", "Ċ", "def", "Ġcompute", "_", "model", "_", "output", "():", "ĊĠĠĠ", "Ġnum", "_", "steps", "Ġ=", "Ġ", "5", "0", "0", "ĊĠĠĠ", "Ġinit", "_", "inf", "Ġ=", "Ġ", "5", "ĊĠĠĠ", "Ġt", "_", "inc", "Ġ=", "Ġ", "5", "ĊĠĠĠ", "Ġt", "_", "inf", "Ġ=", "Ġ", "9", "ĊĠĠĠ", "Ġr", "_", "t", "Ġ=", "Ġ", "2", ".", "5", "Ġ", "Ġ#", "Ġnp", ".", "random", ".", "normal", "(", "2", ".", "5", ",", "Ġ", "1", ".", "0", ")", "ĊĠĠĠ", "Ġrho", "Ġ=", "Ġ", "1", ".", "0", "ĊĠĠĠ", "Ġk", "appa", "_", "0", "Ġ=", "Ġ", "0", ".", "0", "ĊĠĠĠ", "Ġk", "appa", "Ġ=", "Ġ", "0", ".", "0", "ĊĊĠĠĠ", "Ġn", "_", "pop", "Ġ=", "Ġ", "2", "0", "0", "0", "ĊĊĠĠĠ", "Ġse", "ir", "Ġ=", "Ġmodel", ".", "SE", "IR", "Model", "(", "num", "_", "steps", ",", "Ġn", "_", "pop", ",", "Ġinit", "_", "inf", ",", "Ġt", "_", "inc", ",", "Ġt", "_", "inf", ",", "Ġr", "_", "t", ",", "Ġrho", ",", "Ġk", "appa", "_", "0", ",", "Ġk", "appa", ")", "ĊĊĠĠĠ", "Ġs", ",", "Ġe", ",", "Ġi", ",", "Ġr", "Ġ=", "Ġse", "ir", ".", "run", "()", "ĊĊĠĠĠ", "Ġdays", "Ġ=", "Ġnp", ".", "linspace", "(", "0", ",", "Ġnum", "_", "steps", ",", "Ġnum", "_", "steps", ")", "ĊĊĠĠĠ", "Ġtrace", "_", "0", "Ġ=", "Ġp", "go", ".", "Scatter", "(", "x", "=", "days", ",", "Ġy", "=", "s", ",", "Ġmode", "=\"", "lines", "\",", "Ġname", "=\"", "s", "\",", "Ġline", "=", "dict", "(", "color", "=\"", "rgba", "(", "1", "2", "8", ",", "Ġ", "2", "2", "3", ",", "Ġ", "2", "5", "5", ",", "Ġ", "1", ")", "\"))", "ĊĠĠĠ", "Ġtrace", "_", "1", "Ġ=", "Ġp", "go", ".", "Scatter", "(", "x", "=", "days", ",", "Ġy", "=", "e", ",", "Ġmode", "=\"", "lines", "\",", "Ġname", "=\"", "e", "\",", "Ġline", "=", "dict", "(", "color", "=\"", "rgba", "(", "2", "0", "0", ",", "Ġ", "1", "0", "0", ",", "Ġ", "0", ",", "Ġ", "1", ")", "\"))", "ĊĠĠĠ", "Ġtrace", "_", "2", "Ġ=", "Ġp", "go", ".", "Scatter", "(", "x", "=", "days", ",", "Ġy", "=", "i", ",", "Ġmode", "=\"", "lines", "\",", "Ġname", "=\"", "i", "\",", "Ġline", "=", "dict", "(", "color", "=\"", "rgba", "(", "1", "8", "0", ",", "Ġ", "0", ",", "Ġ", "0", ",", "Ġ", "1", ")", "\"))", "ĊĠĠĠ", "Ġtrace", "_", "3", "Ġ=", "Ġp", "go", ".", "Scatter", "(", "x", "=", "days", ",", "Ġy", "=", "r", ",", "Ġmode", "=\"", "lines", "\",", "Ġname", "=\"", "r", "\",", "Ġline", "=", "dict", "(", "color", "=\"", "rgba", "(", "0", ",", "Ġ", "1", "0", "0", ",", "Ġ", "5", "0", ",", "Ġ", "1", ")", "\"))", "ĊĊĠĠĠ", "Ġdata", "Ġ=", "Ġ[", "trace", "_", "0", ",", "Ġtrace", "_", "1", ",", "Ġtrace", "_", "2", ",", "Ġtrace", "_", "3", "]", "ĊĊĠĠĠ", "Ġgraph", "JSON", "Ġ=", "Ġjson", ".", "dumps", "(", "data", ",", "Ġcls", "=", "plot", "ly", ".", "utils", ".", "Plot", "ly", "JSON", "Encoder", ")", "ĊĊĠĠĠ", "Ġreturn", "Ġgraph", "JSON", "ĊĊ", "Ċ", "\"\"\"", "Ċ", "@", "app", ".", "callback", "(", "ĊĠĠĠ", "ĠOutput", "('", "test", "','", "children", "')", "ĊĠĠĠ", "Ġ[", "Input", "('", "val", "_", "num", "_", "steps", "',", "Ġ'", "num", "_", "steps", "')]", "Ċ", ")", "ĊĊ", "Ċ", "@", "app", ".", "route", "('/", "start", "_", "b", "ck", "gr", "nd", "_", "update", "')", "Ċ", "def", "Ġstart", "_", "b", "ck", "gr", "nd", "_", "update", "():", "ĊĠĠĠ", "Ġp", "Ġ=", "ĠProcess", "(", "target", "=", "b", "ck", "gr", "nd", "_", "update", ",", "Ġname", "=\"", "background", "_", "update", "\")", "ĊĠĠĠ", "Ġp", ".", "start", "()", "ĊĠĠĠ", "Ġ#", "p", ".", "join", "()", "ĊĠĠĠ", "Ġnow", "Ġ=", "Ġdatetime", ".", "now", "()", "ĊĠĠĠ", "Ġuser", "Ġ=", "Ġ{'", "username", "':", "Ġ'", "M", "SE", "!", "'}", "ĊĠĠĠ", "Ġposts", "Ġ=", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġ{", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ'", "author", "':", "Ġ{'", "username", "':", "Ġ'", "Pa", "ul", "'},", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ'", "body", "':", "Ġ'", "H", "en", "rik", "Ġhas", "Ġthe", "Ġupdate", "Ġjust", "Ġbeen", "Ġstarted", "?'", "ĊĠĠĠĠĠĠĠ", "Ġ},", "ĊĠĠĠĠĠĠĠ", "Ġ{", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ'", "author", "':", "Ġ{'", "username", "':", "Ġ'", "H", "en", "rik", "'},", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ'", "body", "':", "Ġ'", "You", "Ġbet", "Ġyour", "Ġsweet", "Ġass", "Ġit", "Ġhas", "!'", "ĊĠĠĠĠĠĠĠ", "Ġ},", "ĊĠĠĠĠĠĠĠ", "Ġ{", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ'", "author", "':", "Ġ{'", "username", "':", "Ġ'", "Pa", "ul", "'},", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ'", "body", "':", "Ġ'", "So", "Ġwhat", "Ġtime", "Ġwas", "Ġis", "Ġwhen", "Ġit", "Ġstarted", "?'", "ĊĠĠĠĠĠĠĠ", "Ġ},", "ĊĠĠĠĠĠĠĠ", "Ġ{", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ'", "author", "':", "Ġ{'", "username", "':", "Ġ'", "H", "en", "rik", "'},", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ'", "body", "':", "Ġ'", "It", "Ġwas", "Ġexactly", "Ġ%", "s", "Ġ!", "'", "Ġ%", "Ġnow", "ĊĠĠĠĠĠĠĠ", "Ġ}", "ĊĊĠĠĠ", "Ġ]", "ĊĠĠĠ", "Ġreturn", "Ġrender", "_", "template", "(\"", "start", "_", "b", "ck", "gr", "nd", "_", "update", ".", "html", "\",", "Ġtitle", "=\"", "home", "\",", "Ġuser", "Ġ=", "Ġuser", ",", "Ġposts", "=", "posts", ")", "Ċ", "Ċ", "def", "Ġb", "ck", "gr", "nd", "_", "update", "():", "ĊĠĠĠ", "Ġglobal", "Ġupdating", "ĊĠĠĠ", "Ġupdating", "Ġ=", "ĠTrue", "ĊĠĠĠ", "Ġwhile", "Ġupdating", ":", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(", "datetime", ".", "now", "())", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "updating", "ĠR", "KI", "ĠDB", "s", "Ġnow", "\")", "ĊĠĠĠĠĠĠĠ", "ĠDB", "Ġ=", "ĠDB", "I", ".", "DB", "_", "interface", "()", "ĊĠĠĠĠĠĠĠ", "ĠDB", ".", "update", "_", "RK", "I", "_", "csv", "()", "ĊĠĠĠĠĠĠĠ", "ĠDB", ".", "update", "_", "RK", "I", "_", "land", "k", "re", "ise", "_", "csv", "()", "ĊĠĠĠĠĠĠĠ", "Ġday", "Ġ=", "Ġ", "2", "4", "Ġ*", "Ġ", "3", "6", "0", "0", "ĊĠĠĠĠĠĠĠ", "Ġtime", ".", "sleep", "(", "day", ")", "Ċ", "\"\"\"", "Ċ", "Ċ", "if", "Ġ__", "name", "__", "Ġ==", "Ġ\"__", "main", "__\":", "ĊĠĠĠ", "Ġapp", ".", "run", "(", "debug", "=", "True", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 21, 22, 22, 22, 22, 22, 22, 22, 23, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 27, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 33, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 61, 61, 61, 61, 63, 64, 64, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 87, 87, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 91, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 96, 96, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 101, 101, 101, 101, 102, 102, 102, 102, 103, 103, 103, 103, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 109, 109, 110, 110, 111, 112, 112, 112, 112, 112, 112, 112, 112, 112, 113, 113, 113, 113, 113, 113, 113, 113, 113 ]
[ 1, 2, 6, 9, 14, 25, 29, 42, 43, 1, 7, 10, 11, 15, 16, 24, 1, 1, 8, 11, 13, 16, 17, 21, 22, 29, 30, 32, 33, 37, 38, 45, 46, 53, 54, 57, 61, 62, 69, 70, 77, 82, 87, 1, 7, 10, 12, 15, 16, 20, 21, 28, 29, 36, 39, 40, 1, 4, 5, 9, 10, 16, 17, 18, 19, 26, 29, 30, 1, 4, 5, 9, 10, 16, 17, 19, 20, 24, 25, 29, 30, 36, 39, 40, 42, 47, 50, 1, 1, 2, 9, 19, 26, 36, 37, 1, 5, 11, 18, 24, 25, 32, 33, 41, 1, 7, 13, 16, 19, 1, 1, 7, 12, 14, 1, 7, 12, 14, 15, 20, 21, 25, 28, 30, 32, 1, 7, 12, 1, 1, 2, 9, 17, 25, 28, 34, 38, 46, 47, 1, 2, 7, 13, 20, 23, 24, 33, 36, 39, 40, 1, 2, 7, 13, 20, 25, 26, 32, 35, 38, 1, 5, 11, 18, 24, 1, 1, 4, 6, 12, 15, 19, 22, 1, 1, 2, 9, 18, 1, 2, 6, 7, 9, 10, 11, 12, 13, 1, 1, 2, 5, 6, 11, 16, 1, 4, 10, 13, 4, 11, 12, 16, 18, 26, 27, 32, 33, 39, 41, 4, 11, 18, 19, 27, 29, 34, 35, 39, 41, 47, 51, 52, 58, 59, 63, 64, 1, 1, 4, 12, 13, 18, 19, 25, 28, 4, 8, 9, 14, 16, 17, 18, 19, 20, 4, 9, 10, 13, 15, 16, 17, 4, 6, 7, 10, 12, 13, 14, 4, 6, 7, 10, 12, 13, 14, 4, 6, 7, 8, 10, 11, 12, 13, 14, 15, 17, 20, 21, 27, 28, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 4, 8, 10, 11, 12, 13, 14, 4, 6, 10, 11, 12, 14, 15, 16, 17, 18, 4, 6, 10, 12, 13, 14, 15, 16, 4, 6, 7, 10, 12, 13, 14, 15, 16, 17, 4, 7, 9, 11, 17, 18, 20, 22, 27, 28, 31, 32, 37, 38, 40, 41, 44, 45, 50, 51, 54, 55, 57, 58, 61, 62, 64, 65, 68, 69, 71, 72, 73, 74, 78, 79, 81, 85, 86, 87, 88, 90, 94, 95, 4, 6, 7, 9, 10, 12, 13, 15, 17, 20, 22, 23, 26, 28, 4, 9, 11, 14, 15, 23, 24, 25, 26, 30, 31, 36, 37, 41, 42, 47, 48, 4, 10, 11, 12, 14, 16, 18, 19, 26, 27, 28, 29, 33, 34, 36, 37, 38, 39, 44, 46, 51, 53, 58, 60, 61, 63, 68, 69, 73, 74, 79, 81, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 106, 4, 10, 11, 12, 14, 16, 18, 19, 26, 27, 28, 29, 33, 34, 36, 37, 38, 39, 44, 46, 51, 53, 58, 60, 61, 63, 68, 69, 73, 74, 79, 81, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 104, 4, 10, 11, 12, 14, 16, 18, 19, 26, 27, 28, 29, 33, 34, 36, 37, 38, 39, 44, 46, 51, 53, 58, 60, 61, 63, 68, 69, 73, 74, 79, 81, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 102, 4, 10, 11, 12, 14, 16, 18, 19, 26, 27, 28, 29, 33, 34, 36, 37, 38, 39, 44, 46, 51, 53, 58, 60, 61, 63, 68, 69, 73, 74, 79, 81, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 103, 4, 9, 11, 13, 18, 19, 20, 21, 27, 28, 29, 30, 36, 37, 38, 39, 45, 46, 47, 48, 4, 10, 14, 16, 21, 22, 27, 28, 32, 33, 37, 38, 42, 44, 45, 50, 51, 55, 57, 61, 68, 69, 4, 11, 17, 21, 1, 1, 4, 1, 2, 5, 6, 14, 15, 4, 11, 13, 17, 20, 28, 30, 4, 6, 11, 13, 16, 17, 20, 21, 26, 28, 30, 33, 34, 39, 42, 1, 2, 1, 1, 2, 5, 6, 11, 14, 19, 20, 21, 23, 25, 27, 28, 34, 36, 1, 4, 10, 11, 12, 14, 16, 18, 19, 25, 28, 4, 6, 8, 16, 17, 23, 24, 25, 27, 29, 31, 32, 38, 39, 44, 46, 56, 57, 63, 65, 4, 6, 7, 12, 14, 4, 6, 7, 8, 12, 14, 4, 8, 10, 19, 20, 23, 25, 4, 9, 11, 14, 22, 24, 26, 27, 29, 30, 32, 4, 10, 12, 14, 8, 10, 12, 14, 20, 22, 25, 33, 35, 37, 39, 41, 44, 12, 14, 18, 20, 22, 23, 25, 28, 32, 36, 43, 48, 53, 61, 63, 8, 11, 8, 10, 12, 14, 20, 22, 25, 33, 35, 37, 38, 40, 43, 46, 12, 14, 18, 20, 22, 25, 29, 34, 40, 44, 47, 51, 53, 8, 11, 8, 10, 12, 14, 20, 22, 25, 33, 35, 37, 39, 41, 44, 12, 14, 18, 20, 22, 24, 29, 34, 38, 41, 46, 49, 57, 59, 8, 11, 8, 10, 12, 14, 20, 22, 25, 33, 35, 37, 38, 40, 43, 46, 12, 14, 18, 20, 22, 24, 28, 36, 38, 39, 41, 42, 44, 48, 8, 10, 4, 6, 4, 11, 18, 19, 27, 29, 34, 35, 36, 38, 40, 42, 43, 49, 50, 54, 56, 62, 64, 68, 70, 75, 77, 82, 83, 89, 90, 95, 96, 1, 1, 4, 6, 8, 10, 12, 13, 19, 22, 4, 11, 20, 4, 13, 15, 20, 4, 10, 19, 20, 8, 14, 15, 23, 24, 27, 30, 8, 14, 16, 24, 26, 28, 31, 32, 36, 38, 8, 11, 13, 16, 17, 18, 20, 21, 30, 32, 8, 11, 12, 18, 19, 21, 22, 23, 26, 28, 8, 11, 12, 18, 19, 21, 22, 23, 27, 28, 30, 33, 34, 37, 39, 8, 12, 14, 15, 16, 17, 19, 20, 21, 22, 23, 24, 8, 13, 14, 19, 20, 23, 24, 1, 4, 1, 1, 3, 6, 10, 12, 15, 19, 23, 27, 4, 8, 9, 12, 13, 18, 19, 23, 24 ]
169ad888e7629faff9509399ac7ead7a149a9602
import TryItYourSelf_9_8 as userObj print("\n\n\n\n") admin1 = userObj.Admin("john", "deer", 30) admin1.describe_user() print("\n") admin1.set_user_name("Reven10") print("\n") admin1.describe_user() admin1.privileges.show_privileges()
[ 485, 8982, 1029, 10195, 8183, 100, 62, 100, 61, 641, 1275, 3287, 222, 222, 1243, 5564, 115, 97, 115, 97, 115, 97, 115, 678, 222, 2317, 54, 299, 1275, 3287, 51, 4208, 459, 25158, 411, 332, 305, 284, 411, 244, 56, 53, 46, 222, 2317, 54, 51, 7674, 100, 514, 365, 222, 1243, 5564, 115, 678, 222, 222, 2317, 54, 51, 489, 100, 514, 100, 444, 459, 454, 2484, 54, 53, 678, 222, 1243, 5564, 115, 678, 222, 2317, 54, 51, 7674, 100, 514, 365, 222, 2317, 54, 51, 7251, 20598, 51, 2276, 100, 7251, 20598, 365, 222 ]
[ "import", "ĠTry", "It", "Your", "Self", "_", "9", "_", "8", "Ġas", "Ġuser", "Obj", "Ċ", "Ċ", "print", "(\"\\", "n", "\\", "n", "\\", "n", "\\", "n", "\")", "Ċ", "admin", "1", "Ġ=", "Ġuser", "Obj", ".", "Admin", "(\"", "john", "\",", "Ġ\"", "de", "er", "\",", "Ġ", "3", "0", ")", "Ċ", "admin", "1", ".", "describe", "_", "user", "()", "Ċ", "print", "(\"\\", "n", "\")", "Ċ", "Ċ", "admin", "1", ".", "set", "_", "user", "_", "name", "(\"", "Re", "ven", "1", "0", "\")", "Ċ", "print", "(\"\\", "n", "\")", "Ċ", "admin", "1", ".", "describe", "_", "user", "()", "Ċ", "admin", "1", ".", "priv", "ileges", ".", "show", "_", "priv", "ileges", "()", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11 ]
[ 1, 7, 11, 13, 17, 21, 22, 23, 24, 25, 28, 33, 36, 1, 1, 6, 9, 10, 11, 12, 13, 14, 15, 16, 18, 1, 6, 7, 9, 14, 17, 18, 23, 25, 29, 31, 33, 35, 37, 39, 40, 41, 42, 43, 1, 6, 7, 8, 16, 17, 21, 23, 1, 6, 9, 10, 12, 1, 1, 6, 7, 8, 11, 12, 16, 17, 21, 23, 25, 28, 29, 30, 32, 1, 6, 9, 10, 12, 1, 6, 7, 8, 16, 17, 21, 23, 1, 6, 7, 8, 12, 18, 19, 23, 24, 28, 34, 36 ]
eb246beb05249f5dfde019b773698ba3bb1b1118
# ------------------------------------------------------------------------------- # Name: module1 # Purpose: # # Author: Nirvana # # Created: 07/06/2014 # Copyright: (c) Nirvana 2014 # Licence: <your licence> # ------------------------------------------------------------------------------- import random class Coin(object): def __init__(self): self.sideup = "Heads" def toss(self): if random.randint(0, 1) == 0: self.sideup = "Heads" else: self.sideup = "Tails" def get_sideup(self): return self.sideup mycoin = Coin() print(mycoin.sideup) print(mycoin.get_sideup()) mycoin.toss() print(mycoin.get_sideup())
[ 40, 6549, 12117, 222, 40, 3286, 63, 370, 2313, 54, 222, 40, 26129, 63, 222, 40, 222, 40, 6265, 63, 665, 508, 11503, 5505, 222, 40, 222, 40, 6956, 63, 665, 53, 60, 52, 53, 59, 52, 55, 53, 54, 57, 222, 40, 2657, 63, 280, 327, 104, 46, 508, 11503, 5505, 244, 55, 53, 54, 57, 222, 40, 42629, 63, 281, 350, 8772, 39850, 67, 222, 40, 6549, 12117, 222, 222, 485, 4051, 499, 222, 842, 32653, 45, 1491, 731, 303, 684, 1176, 1683, 3232, 803, 731, 310, 649, 51, 2691, 436, 299, 332, 7983, 120, 39, 465, 684, 391, 441, 45, 803, 731, 310, 434, 4051, 51, 21732, 45, 53, 49, 244, 54, 46, 630, 244, 53, 63, 343, 649, 51, 2691, 436, 299, 332, 7983, 120, 39, 310, 832, 63, 343, 649, 51, 2691, 436, 299, 332, 89, 1554, 39, 465, 684, 640, 100, 2691, 436, 45, 803, 731, 310, 461, 649, 51, 2691, 436, 499, 222, 1791, 8546, 299, 32653, 365, 222, 1243, 45, 1791, 8546, 51, 2691, 436, 46, 222, 1243, 45, 1791, 8546, 51, 390, 100, 2691, 436, 1177, 222, 1791, 8546, 51, 471, 441, 365, 222, 1243, 45, 1791, 8546, 51, 390, 100, 2691, 436, 1177, 222 ]
[ "#", "Ġ----------------------------------------------------------------", "---------------", "Ċ", "#", "ĠName", ":", "ĠĠĠĠĠĠĠ", "Ġmodule", "1", "Ċ", "#", "ĠPurpose", ":", "Ċ", "#", "Ċ", "#", "ĠAuthor", ":", "ĠĠĠĠĠ", "ĠN", "irv", "ana", "Ċ", "#", "Ċ", "#", "ĠCreated", ":", "ĠĠĠĠĠ", "0", "7", "/", "0", "6", "/", "2", "0", "1", "4", "Ċ", "#", "ĠCopyright", ":", "ĠĠ", "Ġ(", "c", ")", "ĠN", "irv", "ana", "Ġ", "2", "0", "1", "4", "Ċ", "#", "ĠLicence", ":", "ĠĠĠĠ", "Ġ<", "your", "Ġlicence", ">", "Ċ", "#", "Ġ----------------------------------------------------------------", "---------------", "Ċ", "Ċ", "import", "Ġrandom", "ĊĊ", "Ċ", "class", "ĠCoin", "(", "object", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "side", "up", "Ġ=", "Ġ\"", "Head", "s", "\"", "ĊĊĠĠĠ", "Ġdef", "Ġto", "ss", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġrandom", ".", "randint", "(", "0", ",", "Ġ", "1", ")", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "side", "up", "Ġ=", "Ġ\"", "Head", "s", "\"", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "side", "up", "Ġ=", "Ġ\"", "T", "ails", "\"", "ĊĊĠĠĠ", "Ġdef", "Ġget", "_", "side", "up", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "side", "up", "ĊĊ", "Ċ", "my", "coin", "Ġ=", "ĠCoin", "()", "Ċ", "print", "(", "my", "coin", ".", "side", "up", ")", "Ċ", "print", "(", "my", "coin", ".", "get", "_", "side", "up", "())", "Ċ", "my", "coin", ".", "to", "ss", "()", "Ċ", "print", "(", "my", "coin", ".", "get", "_", "side", "up", "())", "Ċ" ]
[ 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 11, 12, 12, 12, 14, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 28, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33 ]
[ 1, 2, 67, 82, 1, 2, 7, 8, 15, 22, 23, 1, 2, 10, 11, 1, 2, 1, 2, 9, 10, 15, 17, 20, 23, 1, 2, 1, 2, 10, 11, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 1, 2, 12, 13, 15, 17, 18, 19, 21, 24, 27, 28, 29, 30, 31, 32, 1, 2, 10, 11, 15, 17, 21, 29, 30, 1, 2, 67, 82, 1, 1, 7, 14, 1, 1, 6, 11, 12, 18, 20, 4, 8, 11, 15, 18, 22, 24, 8, 13, 14, 18, 20, 22, 24, 28, 29, 30, 4, 8, 11, 13, 14, 18, 20, 8, 11, 18, 19, 26, 27, 28, 29, 30, 31, 32, 35, 36, 37, 38, 12, 17, 18, 22, 24, 26, 28, 32, 33, 34, 8, 13, 14, 12, 17, 18, 22, 24, 26, 28, 29, 33, 34, 4, 8, 12, 13, 17, 19, 20, 24, 26, 8, 15, 20, 21, 25, 27, 1, 1, 3, 7, 9, 14, 16, 1, 6, 7, 9, 13, 14, 18, 20, 21, 1, 6, 7, 9, 13, 14, 17, 18, 22, 24, 27, 1, 3, 7, 8, 10, 12, 14, 1, 6, 7, 9, 13, 14, 17, 18, 22, 24, 27 ]
bcc4276ea240247519cabbf5fc5646a9147ee3be
import sublime import sublime_plugin class PromptSurrounderCommand(sublime_plugin.WindowCommand): def run(self): self.window.show_input_panel("Surround by:", "", self.on_done, None, None) def on_done(self, tag): try: if self.window.active_view(): self.window.active_view().run_command("surround_by", {"tag": tag}) except ValueError: print("hi") class SurroundByCommand(sublime_plugin.TextCommand): def run(self, edit, tag): for region in self.view.sel(): text = self.view.substr(region) self.view.replace(edit, region, "<" + tag + ">" + text + "</" + tag.split()[0] + ">")
[ 485, 1381, 15607, 222, 485, 1381, 15607, 100, 2809, 499, 222, 842, 39654, 12404, 309, 8505, 2037, 45, 1133, 15607, 100, 2809, 51, 1684, 2037, 731, 303, 684, 1441, 45, 803, 731, 310, 649, 51, 3537, 51, 2276, 100, 1151, 100, 4719, 459, 12404, 1514, 829, 9398, 4343, 649, 51, 286, 100, 5099, 49, 1686, 49, 1686, 46, 465, 684, 563, 100, 5099, 45, 803, 49, 2621, 731, 310, 1614, 63, 343, 434, 649, 51, 3537, 51, 2498, 100, 1090, 2284, 419, 649, 51, 3537, 51, 2498, 100, 1090, 941, 1967, 100, 2514, 459, 8863, 1514, 100, 1186, 411, 3479, 2159, 582, 2621, 1770, 310, 2959, 10128, 63, 343, 1489, 459, 5001, 678, 499, 222, 842, 18380, 1514, 1103, 2037, 45, 1133, 15607, 100, 2809, 51, 1049, 2037, 731, 303, 684, 1441, 45, 803, 49, 4588, 49, 2621, 731, 310, 456, 6727, 347, 649, 51, 1090, 51, 6191, 2284, 343, 1367, 299, 649, 51, 1090, 51, 10887, 45, 3436, 46, 343, 649, 51, 1090, 51, 3249, 45, 3189, 49, 6727, 49, 3791, 39, 494, 2621, 494, 332, 5852, 494, 1367, 494, 11095, 39, 494, 2621, 51, 3045, 8577, 53, 98, 494, 9143, 678, 222 ]
[ "import", "Ġsub", "lime", "Ċ", "import", "Ġsub", "lime", "_", "plugin", "ĊĊ", "Ċ", "class", "ĠPrompt", "Sur", "ro", "under", "Command", "(", "sub", "lime", "_", "plugin", ".", "Window", "Command", "):", "ĊĠĠĠ", "Ġdef", "Ġrun", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "window", ".", "show", "_", "input", "_", "panel", "(\"", "Sur", "round", "Ġby", ":\",", "Ġ\"\",", "Ġself", ".", "on", "_", "done", ",", "ĠNone", ",", "ĠNone", ")", "ĊĊĠĠĠ", "Ġdef", "Ġon", "_", "done", "(", "self", ",", "Ġtag", "):", "ĊĠĠĠĠĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġself", ".", "window", ".", "active", "_", "view", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "window", ".", "active", "_", "view", "().", "run", "_", "command", "(\"", "sur", "round", "_", "by", "\",", "Ġ{\"", "tag", "\":", "Ġtag", "})", "ĊĠĠĠĠĠĠĠ", "Ġexcept", "ĠValueError", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġprint", "(\"", "hi", "\")", "ĊĊ", "Ċ", "class", "ĠSur", "round", "By", "Command", "(", "sub", "lime", "_", "plugin", ".", "Text", "Command", "):", "ĊĠĠĠ", "Ġdef", "Ġrun", "(", "self", ",", "Ġedit", ",", "Ġtag", "):", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġregion", "Ġin", "Ġself", ".", "view", ".", "sel", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġtext", "Ġ=", "Ġself", ".", "view", ".", "substr", "(", "region", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "view", ".", "replace", "(", "edit", ",", "Ġregion", ",", "Ġ\"<", "\"", "Ġ+", "Ġtag", "Ġ+", "Ġ\"", ">\"", "Ġ+", "Ġtext", "Ġ+", "Ġ\"</", "\"", "Ġ+", "Ġtag", ".", "split", "()[", "0", "]", "Ġ+", "Ġ\">", "\")", "Ċ" ]
[ 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 14, 14, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21 ]
[ 1, 7, 11, 15, 1, 7, 11, 15, 16, 22, 1, 1, 6, 13, 16, 18, 23, 30, 31, 34, 38, 39, 45, 46, 52, 59, 61, 4, 8, 12, 13, 17, 19, 8, 13, 14, 20, 21, 25, 26, 31, 32, 37, 39, 42, 47, 50, 53, 57, 62, 63, 65, 66, 70, 71, 76, 77, 82, 83, 4, 8, 11, 12, 16, 17, 21, 22, 26, 28, 8, 12, 13, 12, 15, 20, 21, 27, 28, 34, 35, 39, 42, 16, 21, 22, 28, 29, 35, 36, 40, 43, 46, 47, 54, 56, 59, 64, 65, 67, 69, 72, 75, 77, 81, 83, 8, 15, 26, 27, 12, 18, 20, 22, 24, 1, 1, 6, 10, 15, 17, 24, 25, 28, 32, 33, 39, 40, 44, 51, 53, 4, 8, 12, 13, 17, 18, 23, 24, 28, 30, 8, 12, 19, 22, 27, 28, 32, 33, 36, 39, 12, 17, 19, 24, 25, 29, 30, 36, 37, 43, 44, 12, 17, 18, 22, 23, 30, 31, 35, 36, 43, 44, 47, 48, 50, 54, 56, 58, 60, 62, 67, 69, 73, 74, 76, 80, 81, 86, 89, 90, 91, 93, 96, 98 ]
07783921da2fb4ae9452324f833b08b3f92ba294
""" commands/map.py description: Generates a blank configuration file in the current directory """ from json import dumps from .base_command import BaseCommand class Map(BaseCommand): def run(self): from lib.models import Mapping from lib.models import Migration migration = Migration.load(self.options["MIGRATION_FILE"]) mapping = Mapping(self.options) migration.mappings.append(mapping) migration.write()
[ 3012, 222, 222, 7626, 52, 1130, 51, 997, 222, 222, 2328, 63, 310, 32476, 331, 11778, 3505, 822, 347, 341, 1565, 3378, 222, 222, 3012, 222, 222, 1097, 2379, 1220, 10137, 120, 222, 1097, 657, 1460, 100, 2514, 1220, 3787, 2037, 499, 222, 842, 3531, 45, 1778, 2037, 731, 303, 684, 1441, 45, 803, 731, 310, 664, 5053, 51, 3404, 1220, 23518, 310, 664, 5053, 51, 3404, 1220, 18572, 603, 12751, 299, 18572, 51, 963, 45, 803, 51, 2200, 1388, 82, 1453, 30613, 100, 3555, 6957, 603, 8023, 299, 23518, 45, 803, 51, 2200, 46, 603, 12751, 51, 28347, 51, 1713, 45, 9399, 46, 603, 12751, 51, 1838, 365, 222 ]
[ "\"\"\"", "Ċ", "Ċ", "commands", "/", "map", ".", "py", "Ċ", "Ċ", "description", ":", "ĊĠĠĠĠĠĠĠ", "ĠGenerates", "Ġa", "Ġblank", "Ġconfiguration", "Ġfile", "Ġin", "Ġthe", "Ġcurrent", "Ġdirectory", "Ċ", "Ċ", "\"\"\"", "Ċ", "Ċ", "from", "Ġjson", "Ġimport", "Ġdump", "s", "Ċ", "from", "Ġ.", "base", "_", "command", "Ġimport", "ĠBase", "Command", "ĊĊ", "Ċ", "class", "ĠMap", "(", "Base", "Command", "):", "ĊĠĠĠ", "Ġdef", "Ġrun", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġfrom", "Ġlib", ".", "models", "Ġimport", "ĠMapping", "ĊĠĠĠĠĠĠĠ", "Ġfrom", "Ġlib", ".", "models", "Ġimport", "ĠMigration", "ĊĊĠĠĠĠĠĠĠ", "Ġmigration", "Ġ=", "ĠMigration", ".", "load", "(", "self", ".", "options", "[\"", "M", "IG", "RATION", "_", "FILE", "\"])", "ĊĊĠĠĠĠĠĠĠ", "Ġmapping", "Ġ=", "ĠMapping", "(", "self", ".", "options", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġmigration", ".", "mappings", ".", "append", "(", "mapping", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġmigration", ".", "write", "()", "Ċ" ]
[ 1, 1, 2, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 8, 9, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 21, 21, 21, 21, 21, 21, 21, 21, 21, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 25, 25, 25, 25 ]
[ 1, 4, 1, 1, 9, 10, 13, 14, 16, 1, 1, 12, 13, 8, 18, 20, 26, 40, 45, 48, 52, 60, 70, 1, 1, 4, 1, 1, 5, 10, 17, 22, 23, 1, 5, 7, 11, 12, 19, 26, 31, 38, 1, 1, 6, 10, 11, 15, 22, 24, 4, 8, 12, 13, 17, 19, 8, 13, 17, 18, 24, 31, 39, 8, 13, 17, 18, 24, 31, 41, 8, 18, 20, 30, 31, 35, 36, 40, 41, 48, 50, 51, 53, 59, 60, 64, 67, 8, 16, 18, 26, 27, 31, 32, 39, 40, 8, 18, 19, 27, 28, 34, 35, 42, 43, 8, 18, 19, 24, 26 ]
2f8dff78f5bc5ed18df97e2574b47f0a7711d372
# encoding: utf-8 """ File: demo.py Author: Rock Johnson Description: 此文件为案例文件 """ import sys sys.path.append("../") try: from panicbuying.panic import Panic except: from panicbuying.panicbuying.panic import Panic def main(): """ 公共参数: store: 商城或书店名称(小米|文泉), browser: 浏览器(目前只支持Chrome), version: 浏览器版本号, quit: 运行完后是否退出浏览器(默认不退出), hidden: 是否启用界面(默认启用), 商城抢购: url: 抢购商城地址, addr_nth: 收货地址(选择第几个收货地址,默认第一个), 书店扒书(quit默认退出, hidden默认不启用): books: {'书名': '电子书链接地址'}, path: 电子书图片保存地址(保存地址文件不存在需要先创建), account: 账号, password: 密码, """ books = { "书名": "电子书链接地址", } xm = Panic( browser="Chrome", version="78.0.0", store="文泉", books=books, path="路径", account="账号", password="密码", ) xm.start() if __name__ == "__main__": main()
[ 40, 7348, 63, 6471, 50, 61, 222, 222, 3012, 222, 991, 63, 10891, 51, 997, 222, 4372, 63, 578, 1060, 21588, 1174, 222, 3250, 63, 41680, 6162, 3397, 15928, 7229, 6162, 222, 3012, 222, 222, 485, 5263, 222, 222, 3750, 51, 1005, 51, 1713, 15471, 678, 222, 1287, 63, 303, 664, 19169, 13056, 318, 51, 13063, 1220, 27265, 314, 222, 7364, 63, 303, 664, 19169, 13056, 318, 51, 13063, 13056, 318, 51, 13063, 1220, 27265, 314, 499, 222, 610, 2594, 2284, 303, 1547, 303, 244, 10770, 15107, 8917, 63, 303, 2989, 63, 244, 12517, 20691, 7668, 19292, 32710, 13140, 45, 7333, 39520, 129, 3820, 3428, 255, 490, 5439, 63, 34995, 27815, 5944, 45, 30879, 9100, 12915, 18115, 490, 303, 1522, 63, 34995, 27815, 5944, 14868, 8270, 49, 22429, 63, 244, 15117, 10068, 5054, 9271, 40207, 32627, 45, 11804, 3065, 40207, 490, 303, 6862, 63, 21911, 39876, 39197, 45, 11804, 39876, 490, 465, 244, 12517, 20691, 5047, 133, 26916, 63, 303, 2001, 63, 29885, 133, 26916, 12517, 20691, 14000, 49, 8712, 100, 15975, 63, 244, 11586, 29948, 14000, 45, 14114, 8980, 44747, 11586, 29948, 14000, 49, 11804, 30881, 490, 465, 244, 19292, 32710, 2767, 264, 19292, 45, 16998, 11804, 40207, 49, 6862, 11804, 3065, 39876, 731, 303, 21750, 63, 5095, 19292, 5203, 972, 349, 16265, 7731, 19292, 24238, 14000, 8947, 1536, 63, 244, 16265, 7731, 19292, 14738, 17677, 14000, 45, 17677, 14000, 6162, 32506, 8092, 11535, 10049, 490, 303, 3513, 63, 244, 38074, 49, 3894, 63, 244, 19104, 49, 303, 1547, 303, 21750, 299, 320, 310, 332, 19292, 5203, 582, 332, 16265, 7731, 19292, 24238, 14000, 411, 303, 339, 303, 837, 114, 299, 27265, 314, 45, 310, 5439, 366, 18115, 411, 310, 1522, 366, 60, 61, 51, 53, 51, 53, 411, 310, 2989, 366, 3820, 3428, 255, 411, 310, 21750, 66, 12278, 49, 310, 1536, 366, 15902, 411, 310, 3513, 366, 38074, 411, 310, 3894, 366, 19104, 411, 303, 848, 303, 837, 114, 51, 1384, 365, 499, 222, 344, 1176, 444, 523, 630, 9609, 1850, 18021, 303, 2594, 365, 222 ]
[ "#", "Ġencoding", ":", "Ġutf", "-", "8", "Ċ", "Ċ", "\"\"\"", "Ċ", "File", ":", "Ġdemo", ".", "py", "Ċ", "Author", ":", "ĠR", "ock", "ĠJohn", "son", "Ċ", "Description", ":", "ĠæŃ¤", "æĸĩä»¶", "为", "æ¡Ī", "ä¾ĭ", "æĸĩä»¶", "Ċ", "\"\"\"", "Ċ", "Ċ", "import", "Ġsys", "Ċ", "Ċ", "sys", ".", "path", ".", "append", "(\"../", "\")", "Ċ", "try", ":", "ĊĠĠĠ", "Ġfrom", "Ġpanic", "buy", "ing", ".", "panic", "Ġimport", "ĠPan", "ic", "Ċ", "except", ":", "ĊĠĠĠ", "Ġfrom", "Ġpanic", "buy", "ing", ".", "panic", "buy", "ing", ".", "panic", "Ġimport", "ĠPan", "ic", "ĊĊ", "Ċ", "def", "Ġmain", "():", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġ", "åħ¬", "åħ±", "åıĤæķ°", ":", "ĊĠĠĠ", "Ġstore", ":", "Ġ", "åķĨ", "åŁİ", "æĪĸ", "书", "åºĹ", "åIJįç§°", "(", "å°ı", "ç±³", "|", "æĸĩ", "æ³", "ī", "),", "Ġbrowser", ":", "Ġæµ", "ıè§Ī", "åύ", "(", "缮åīį", "åıª", "æĶ¯æĮģ", "Chrome", "),", "ĊĠĠĠ", "Ġversion", ":", "Ġæµ", "ıè§Ī", "åύ", "çīĪæľ¬", "åı·", ",", "Ġquit", ":", "Ġ", "è¿IJè¡Į", "å®Į", "åIJİ", "æĺ¯åIJ¦", "éĢĢåĩº", "æµıè§Īåύ", "(", "é»ĺ认", "ä¸į", "éĢĢåĩº", "),", "ĊĠĠĠ", "Ġhidden", ":", "Ġæĺ¯åIJ¦", "åIJ¯ç͍", "çķĮéĿ¢", "(", "é»ĺ认", "åIJ¯ç͍", "),", "ĊĊĠĠĠ", "Ġ", "åķĨ", "åŁİ", "æĬ", "¢", "è´Ń", ":", "ĊĠĠĠ", "Ġurl", ":", "ĠæĬ", "¢", "è´Ń", "åķĨ", "åŁİ", "åľ°åĿĢ", ",", "Ġaddr", "_", "nth", ":", "Ġ", "æĶ¶", "è´§", "åľ°åĿĢ", "(", "éĢīæĭ©", "第", "åĩłä¸ª", "æĶ¶", "è´§", "åľ°åĿĢ", ",", "é»ĺ认", "第ä¸Ģ个", "),", "ĊĊĠĠĠ", "Ġ", "书", "åºĹ", "æī", "Ĵ", "书", "(", "quit", "é»ĺ认", "éĢĢåĩº", ",", "Ġhidden", "é»ĺ认", "ä¸į", "åIJ¯ç͍", "):", "ĊĠĠĠ", "Ġbooks", ":", "Ġ{'", "书", "åIJį", "':", "Ġ'", "ç͵", "åŃIJ", "书", "éĵ¾æİ¥", "åľ°åĿĢ", "'},", "Ġpath", ":", "Ġ", "ç͵", "åŃIJ", "书", "åĽ¾çīĩ", "ä¿ĿåŃĺ", "åľ°åĿĢ", "(", "ä¿ĿåŃĺ", "åľ°åĿĢ", "æĸĩä»¶", "ä¸įåŃĺåľ¨", "éľĢè¦ģ", "åħĪ", "åĪĽå»º", "),", "ĊĠĠĠ", "Ġaccount", ":", "Ġ", "è´¦åı·", ",", "Ġpassword", ":", "Ġ", "å¯Ĩçłģ", ",", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġbooks", "Ġ=", "Ġ{", "ĊĠĠĠĠĠĠĠ", "Ġ\"", "书", "åIJį", "\":", "Ġ\"", "ç͵", "åŃIJ", "书", "éĵ¾æİ¥", "åľ°åĿĢ", "\",", "ĊĠĠĠ", "Ġ}", "ĊĠĠĠ", "Ġx", "m", "Ġ=", "ĠPan", "ic", "(", "ĊĠĠĠĠĠĠĠ", "Ġbrowser", "=\"", "Chrome", "\",", "ĊĠĠĠĠĠĠĠ", "Ġversion", "=\"", "7", "8", ".", "0", ".", "0", "\",", "ĊĠĠĠĠĠĠĠ", "Ġstore", "=\"", "æĸĩ", "æ³", "ī", "\",", "ĊĠĠĠĠĠĠĠ", "Ġbooks", "=", "books", ",", "ĊĠĠĠĠĠĠĠ", "Ġpath", "=\"", "è·¯å¾Ħ", "\",", "ĊĠĠĠĠĠĠĠ", "Ġaccount", "=\"", "è´¦åı·", "\",", "ĊĠĠĠĠĠĠĠ", "Ġpassword", "=\"", "å¯Ĩçłģ", "\",", "ĊĠĠĠ", "Ġ)", "ĊĠĠĠ", "Ġx", "m", ".", "start", "()", "ĊĊ", "Ċ", "if", "Ġ__", "name", "__", "Ġ==", "Ġ\"__", "main", "__\":", "ĊĠĠĠ", "Ġmain", "()", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 9, 9, 9, 10, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 17, 18, 18, 18, 18, 19, 19, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 43, 43, 44, 44, 44, 44, 44, 44, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48 ]
[ 1, 2, 11, 12, 16, 17, 18, 1, 1, 4, 1, 5, 6, 11, 12, 14, 1, 7, 8, 10, 13, 18, 21, 1, 12, 13, 15, 17, 18, 19, 20, 22, 1, 4, 1, 1, 7, 11, 1, 1, 4, 5, 9, 10, 16, 21, 23, 1, 4, 5, 4, 9, 15, 18, 21, 22, 27, 34, 38, 40, 1, 7, 8, 4, 9, 15, 18, 21, 22, 27, 30, 33, 34, 39, 46, 50, 52, 1, 1, 4, 9, 12, 4, 8, 4, 5, 6, 7, 9, 10, 4, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 24, 24, 25, 27, 35, 36, 37, 39, 40, 41, 43, 44, 46, 52, 54, 4, 12, 13, 14, 16, 17, 19, 20, 21, 26, 27, 28, 30, 31, 32, 34, 36, 39, 40, 42, 43, 45, 47, 4, 11, 12, 15, 17, 19, 20, 22, 24, 26, 4, 5, 6, 7, 7, 8, 9, 10, 4, 8, 9, 10, 11, 12, 13, 14, 16, 17, 22, 23, 26, 27, 28, 29, 30, 32, 33, 35, 36, 38, 39, 40, 42, 43, 45, 48, 50, 4, 5, 6, 7, 7, 8, 9, 10, 14, 16, 18, 19, 26, 28, 29, 31, 33, 4, 10, 11, 14, 15, 16, 18, 20, 21, 22, 23, 25, 27, 30, 35, 36, 37, 38, 39, 40, 42, 44, 46, 47, 49, 51, 53, 56, 58, 59, 61, 63, 4, 12, 13, 14, 16, 17, 26, 27, 28, 30, 31, 4, 8, 4, 10, 12, 14, 8, 10, 11, 12, 14, 16, 17, 18, 19, 21, 23, 25, 4, 6, 4, 6, 7, 9, 13, 15, 16, 8, 16, 18, 24, 26, 8, 16, 18, 19, 20, 21, 22, 23, 24, 26, 8, 14, 16, 17, 17, 18, 20, 8, 14, 15, 20, 21, 8, 13, 15, 17, 19, 8, 16, 18, 20, 22, 8, 17, 19, 21, 23, 4, 6, 4, 6, 7, 8, 13, 15, 1, 1, 3, 6, 10, 12, 15, 19, 23, 27, 4, 9, 11 ]
03dd37346ed12bbd66cbebc46fadc37be319b986
import unittest from reactivex import interval from reactivex import operators as ops from reactivex.testing import ReactiveTest, TestScheduler from reactivex.testing.marbles import marbles_testing from reactivex.testing.subscription import Subscription on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = ReactiveTest.subscribe subscribed = ReactiveTest.subscribed disposed = ReactiveTest.disposed created = ReactiveTest.created class TestSwitchMapIndex(unittest.TestCase): def test_switch_map_indexed_uses_index(self): scheduler = TestScheduler() xs = scheduler.create_hot_observable( on_next(300, "a"), on_next(400, "b"), on_next(500, "c"), ) def create_inner(x: str, i: int): def create_changing(j: int): return (i, j, x) return interval(20).pipe(ops.map(create_changing)) def create(): return xs.pipe(ops.switch_map_indexed(project=create_inner)) results = scheduler.start(create, disposed=580) # (i, j, x): i is the index of the outer emit; # j is the value of the inner interval; # x is the value of the outer emission assert results.messages == [ on_next(320, (0, 0, "a")), on_next(340, (0, 1, "a")), on_next(360, (0, 2, "a")), on_next(380, (0, 3, "a")), on_next(420, (1, 0, "b")), on_next(440, (1, 1, "b")), on_next(460, (1, 2, "b")), on_next(480, (1, 3, "b")), on_next(520, (2, 0, "c")), on_next(540, (2, 1, "c")), on_next(560, (2, 2, "c")), ] assert xs.subscriptions == [Subscription(200, 580)] def test_switch_map_indexed_inner_throws(self): """Inner throwing causes outer to throw""" ex = "ex" scheduler = TestScheduler() sources = [ scheduler.create_cold_observable(on_next(100, "a"), on_next(300, "aa")), scheduler.create_cold_observable(on_next(50, "b"), on_error(120, ex)), scheduler.create_cold_observable(on_next(50, "wont happen"), on_error(120, "no")), ] xs = scheduler.create_hot_observable( on_next( 250, 0, ), on_next(400, 1), on_next( 550, 2, ), ) def create_inner(x: int, _i: int): return sources[x] def create(): return xs.pipe(ops.switch_map_indexed(create_inner)) results = scheduler.start(create) assert results.messages == [ on_next(350, "a"), on_next(450, "b"), on_error(520, ex), ] assert sources[0].subscriptions == [Subscription(250, 400)] assert sources[1].subscriptions == [Subscription(400, 520)] assert sources[2].subscriptions == [] def test_switch_map_indexed_outer_throws(self): """Outer throwing unsubscribes from all""" ex = "ABC" scheduler = TestScheduler() sources = [ scheduler.create_cold_observable(on_next(100, "a"), on_next(300, "aa")), scheduler.create_cold_observable(on_next(50, "b"), on_error(120, ex)), scheduler.create_cold_observable(on_next(50, "wont happen"), on_error(120, "no")), ] xs = scheduler.create_hot_observable( on_next( 250, 0, ), on_next(400, 1), on_error(430, ex), ) def create_inner(x: int, _i: int): return sources[x] def create(): return xs.pipe(ops.switch_map_indexed(create_inner)) results = scheduler.start(create) assert results.messages == [ on_next(350, "a"), on_error(430, ex), ] assert sources[0].subscriptions == [Subscription(250, 400)] assert sources[1].subscriptions == [Subscription(400, 430)] assert sources[2].subscriptions == [] def test_switch_map_indexed_no_inner(self): scheduler = TestScheduler() xs = scheduler.create_hot_observable(on_completed(500)) # Fake inner which should never be subscribed to sources = [scheduler.create_cold_observable(on_next(20, 2))] def create_inner(_x: int, i: int): return sources[i] def create(): return xs.pipe(ops.switch_map_indexed(create_inner)) results = scheduler.start(create) assert results.messages == [on_completed(500)] assert xs.subscriptions == [Subscription(200, 500)] assert sources[0].subscriptions == [] def test_switch_map_indexed_inner_completes(self): """Inner completions do not affect outer""" scheduler = TestScheduler() xs = scheduler.create_hot_observable( on_next(300, "d"), on_next(330, "f"), on_completed(540), ) def create_inner(x: str, i: int): """An observable which will complete after 40 ticks""" return interval(20).pipe(ops.map(lambda j: (i, j, x)), ops.take(2)) def create(): return xs.pipe(ops.switch_map_indexed(create_inner)) results = scheduler.start(create) assert results.messages == [ on_next(320, (0, 0, "d")), on_next(350, (1, 0, "f")), on_next(370, (1, 1, "f")), # here the current inner is unsubscribed but not the outer on_completed(540), # only outer completion affects ] def test_switch_map_default_mapper(self): with marbles_testing(timespan=10) as (start, cold, hot, exp): xs = hot( " ---a---b------c-----", { "a": cold(" --1--2", None, None), "b": cold(" --1-2-3-4-5|", None, None), "c": cold(" --1--2", None, None), }, None, ) expected = exp(" -----1---1-2-3--1--2", None, None) result = start(xs.pipe(ops.switch_map_indexed())) assert result == expected
[ 485, 15790, 222, 222, 1097, 334, 5453, 346, 1220, 7917, 222, 1097, 334, 5453, 346, 1220, 15629, 641, 13727, 222, 1097, 334, 5453, 346, 51, 4280, 1220, 30965, 1024, 49, 2128, 11438, 222, 1097, 334, 5453, 346, 51, 4280, 51, 3321, 29451, 1220, 364, 10030, 1904, 100, 4280, 222, 1097, 334, 5453, 346, 51, 4280, 51, 10740, 1220, 18851, 222, 222, 286, 100, 1995, 299, 30965, 1024, 51, 286, 100, 1995, 222, 286, 100, 14908, 299, 30965, 1024, 51, 286, 100, 14908, 222, 286, 100, 750, 299, 30965, 1024, 51, 286, 100, 750, 222, 7771, 299, 30965, 1024, 51, 7771, 222, 38382, 299, 30965, 1024, 51, 38382, 222, 1303, 6865, 299, 30965, 1024, 51, 1303, 6865, 222, 4536, 299, 30965, 1024, 51, 4536, 499, 222, 842, 2128, 7940, 1225, 1301, 45, 18959, 51, 7246, 731, 303, 684, 913, 100, 4651, 100, 1130, 100, 27867, 100, 7678, 100, 1076, 45, 803, 731, 310, 13589, 299, 2128, 11438, 365, 310, 9897, 299, 13589, 51, 1315, 100, 8156, 100, 22001, 45, 343, 563, 100, 1995, 45, 56, 53, 53, 49, 332, 102, 2132, 343, 563, 100, 1995, 45, 57, 53, 53, 49, 332, 103, 2132, 343, 563, 100, 1995, 45, 58, 53, 53, 49, 332, 104, 2132, 310, 848, 603, 684, 1506, 100, 3384, 45, 125, 63, 615, 49, 613, 63, 648, 731, 343, 684, 1506, 100, 45105, 45, 111, 63, 648, 731, 419, 461, 327, 110, 49, 614, 49, 837, 46, 1083, 461, 7917, 45, 55, 53, 566, 7446, 45, 4178, 51, 1130, 45, 1315, 100, 45105, 509, 603, 684, 1506, 2284, 343, 461, 9897, 51, 7446, 45, 4178, 51, 4651, 100, 1130, 100, 27867, 45, 2268, 66, 1315, 100, 3384, 509, 603, 3300, 299, 13589, 51, 1384, 45, 1315, 49, 35104, 66, 58, 61, 53, 46, 310, 607, 327, 110, 49, 614, 49, 837, 731, 613, 458, 341, 1671, 451, 341, 16167, 9533, 64, 310, 607, 614, 458, 341, 804, 451, 341, 8287, 7917, 64, 310, 607, 837, 458, 341, 804, 451, 341, 16167, 34954, 310, 1217, 3300, 51, 6296, 630, 447, 343, 563, 100, 1995, 45, 56, 55, 53, 49, 327, 53, 49, 244, 53, 49, 332, 102, 12967, 343, 563, 100, 1995, 45, 56, 57, 53, 49, 327, 53, 49, 244, 54, 49, 332, 102, 12967, 343, 563, 100, 1995, 45, 56, 59, 53, 49, 327, 53, 49, 244, 55, 49, 332, 102, 12967, 343, 563, 100, 1995, 45, 56, 61, 53, 49, 327, 53, 49, 244, 56, 49, 332, 102, 12967, 343, 563, 100, 1995, 45, 57, 55, 53, 49, 327, 54, 49, 244, 53, 49, 332, 103, 12967, 343, 563, 100, 1995, 45, 57, 57, 53, 49, 327, 54, 49, 244, 54, 49, 332, 103, 12967, 343, 563, 100, 1995, 45, 57, 59, 53, 49, 327, 54, 49, 244, 55, 49, 332, 103, 12967, 343, 563, 100, 1995, 45, 57, 61, 53, 49, 327, 54, 49, 244, 56, 49, 332, 103, 12967, 343, 563, 100, 1995, 45, 58, 55, 53, 49, 327, 55, 49, 244, 53, 49, 332, 104, 12967, 343, 563, 100, 1995, 45, 58, 57, 53, 49, 327, 55, 49, 244, 54, 49, 332, 104, 12967, 343, 563, 100, 1995, 45, 58, 59, 53, 49, 327, 55, 49, 244, 55, 49, 332, 104, 12967, 310, 1499, 310, 1217, 9897, 51, 16531, 630, 447, 8861, 45, 55, 53, 53, 49, 244, 58, 61, 53, 2201, 465, 684, 913, 100, 4651, 100, 1130, 100, 27867, 100, 3384, 100, 5124, 45, 803, 731, 310, 1547, 10894, 34158, 15665, 16167, 391, 1440, 3012, 310, 557, 299, 332, 346, 39, 310, 13589, 299, 2128, 11438, 365, 310, 10868, 299, 447, 343, 13589, 51, 1315, 100, 46785, 100, 22001, 45, 286, 100, 1995, 45, 54, 53, 53, 49, 332, 102, 2132, 563, 100, 1995, 45, 56, 53, 53, 49, 332, 2336, 12967, 343, 13589, 51, 1315, 100, 46785, 100, 22001, 45, 286, 100, 1995, 45, 58, 53, 49, 332, 103, 2132, 563, 100, 750, 45, 54, 55, 53, 49, 557, 3684, 343, 13589, 51, 1315, 100, 46785, 100, 22001, 45, 286, 100, 1995, 45, 58, 53, 49, 332, 124, 406, 7305, 2132, 563, 100, 750, 45, 54, 55, 53, 49, 332, 1365, 12967, 310, 1499, 310, 9897, 299, 13589, 51, 1315, 100, 8156, 100, 22001, 45, 343, 563, 100, 1995, 45, 372, 55, 58, 53, 49, 372, 53, 49, 343, 2604, 343, 563, 100, 1995, 45, 57, 53, 53, 49, 244, 54, 490, 343, 563, 100, 1995, 45, 372, 58, 58, 53, 49, 372, 55, 49, 343, 2604, 310, 848, 603, 684, 1506, 100, 3384, 45, 125, 63, 648, 49, 634, 110, 63, 648, 731, 343, 461, 10868, 96, 125, 98, 603, 684, 1506, 2284, 343, 461, 9897, 51, 7446, 45, 4178, 51, 4651, 100, 1130, 100, 27867, 45, 1315, 100, 3384, 509, 603, 3300, 299, 13589, 51, 1384, 45, 1315, 46, 310, 1217, 3300, 51, 6296, 630, 447, 343, 563, 100, 1995, 45, 56, 58, 53, 49, 332, 102, 2132, 343, 563, 100, 1995, 45, 57, 58, 53, 49, 332, 103, 2132, 343, 563, 100, 750, 45, 58, 55, 53, 49, 557, 490, 310, 1499, 310, 1217, 10868, 96, 53, 1015, 16531, 630, 447, 8861, 45, 55, 58, 53, 49, 244, 57, 53, 53, 2201, 310, 1217, 10868, 96, 54, 1015, 16531, 630, 447, 8861, 45, 57, 53, 53, 49, 244, 58, 55, 53, 2201, 310, 1217, 10868, 96, 55, 1015, 16531, 630, 1627, 465, 684, 913, 100, 4651, 100, 1130, 100, 27867, 100, 11949, 100, 5124, 45, 803, 731, 310, 1547, 15166, 34158, 725, 1133, 815, 11416, 664, 1187, 3012, 310, 557, 299, 332, 16701, 39, 310, 13589, 299, 2128, 11438, 365, 310, 10868, 299, 447, 343, 13589, 51, 1315, 100, 46785, 100, 22001, 45, 286, 100, 1995, 45, 54, 53, 53, 49, 332, 102, 2132, 563, 100, 1995, 45, 56, 53, 53, 49, 332, 2336, 12967, 343, 13589, 51, 1315, 100, 46785, 100, 22001, 45, 286, 100, 1995, 45, 58, 53, 49, 332, 103, 2132, 563, 100, 750, 45, 54, 55, 53, 49, 557, 3684, 343, 13589, 51, 1315, 100, 46785, 100, 22001, 45, 286, 100, 1995, 45, 58, 53, 49, 332, 124, 406, 7305, 2132, 563, 100, 750, 45, 54, 55, 53, 49, 332, 1365, 12967, 310, 1499, 310, 9897, 299, 13589, 51, 1315, 100, 8156, 100, 22001, 45, 343, 563, 100, 1995, 45, 372, 55, 58, 53, 49, 372, 53, 49, 343, 2604, 343, 563, 100, 1995, 45, 57, 53, 53, 49, 244, 54, 490, 343, 563, 100, 750, 45, 57, 56, 53, 49, 557, 490, 310, 848, 603, 684, 1506, 100, 3384, 45, 125, 63, 648, 49, 634, 110, 63, 648, 731, 343, 461, 10868, 96, 125, 98, 603, 684, 1506, 2284, 343, 461, 9897, 51, 7446, 45, 4178, 51, 4651, 100, 1130, 100, 27867, 45, 1315, 100, 3384, 509, 603, 3300, 299, 13589, 51, 1384, 45, 1315, 46, 310, 1217, 3300, 51, 6296, 630, 447, 343, 563, 100, 1995, 45, 56, 58, 53, 49, 332, 102, 2132, 343, 563, 100, 750, 45, 57, 56, 53, 49, 557, 490, 310, 1499, 310, 1217, 10868, 96, 53, 1015, 16531, 630, 447, 8861, 45, 55, 58, 53, 49, 244, 57, 53, 53, 2201, 310, 1217, 10868, 96, 54, 1015, 16531, 630, 447, 8861, 45, 57, 53, 53, 49, 244, 57, 56, 53, 2201, 310, 1217, 10868, 96, 55, 1015, 16531, 630, 1627, 465, 684, 913, 100, 4651, 100, 1130, 100, 27867, 100, 1365, 100, 3384, 45, 803, 731, 310, 13589, 299, 2128, 11438, 365, 310, 9897, 299, 13589, 51, 1315, 100, 8156, 100, 22001, 45, 286, 100, 14908, 45, 58, 53, 53, 509, 310, 607, 18865, 8287, 1532, 1414, 7162, 545, 40218, 391, 310, 10868, 299, 447, 13273, 51, 1315, 100, 46785, 100, 22001, 45, 286, 100, 1995, 45, 55, 53, 49, 244, 55, 12681, 603, 684, 1506, 100, 3384, 2191, 125, 63, 648, 49, 613, 63, 648, 731, 343, 461, 10868, 96, 110, 98, 603, 684, 1506, 2284, 343, 461, 9897, 51, 7446, 45, 4178, 51, 4651, 100, 1130, 100, 27867, 45, 1315, 100, 3384, 509, 603, 3300, 299, 13589, 51, 1384, 45, 1315, 46, 310, 1217, 3300, 51, 6296, 630, 447, 286, 100, 14908, 45, 58, 53, 53, 2201, 310, 1217, 9897, 51, 16531, 630, 447, 8861, 45, 55, 53, 53, 49, 244, 58, 53, 53, 2201, 310, 1217, 10868, 96, 53, 1015, 16531, 630, 1627, 465, 684, 913, 100, 4651, 100, 1130, 100, 27867, 100, 3384, 100, 998, 14367, 45, 803, 731, 310, 1547, 10894, 9650, 1804, 764, 666, 13343, 16167, 3012, 310, 13589, 299, 2128, 11438, 365, 310, 9897, 299, 13589, 51, 1315, 100, 8156, 100, 22001, 45, 343, 563, 100, 1995, 45, 56, 53, 53, 49, 332, 105, 2132, 343, 563, 100, 1995, 45, 56, 56, 53, 49, 332, 107, 2132, 343, 563, 100, 14908, 45, 58, 57, 53, 490, 310, 848, 603, 684, 1506, 100, 3384, 45, 125, 63, 615, 49, 613, 63, 648, 731, 343, 1547, 1062, 23444, 1532, 1118, 6179, 2703, 244, 57, 53, 23571, 3012, 343, 461, 7917, 45, 55, 53, 566, 7446, 45, 4178, 51, 1130, 45, 6034, 614, 63, 327, 110, 49, 614, 49, 837, 3684, 13727, 51, 11845, 45, 55, 509, 603, 684, 1506, 2284, 343, 461, 9897, 51, 7446, 45, 4178, 51, 4651, 100, 1130, 100, 27867, 45, 1315, 100, 3384, 509, 603, 3300, 299, 13589, 51, 1384, 45, 1315, 46, 310, 1217, 3300, 51, 6296, 630, 447, 343, 563, 100, 1995, 45, 56, 55, 53, 49, 327, 53, 49, 244, 53, 49, 332, 105, 12967, 343, 563, 100, 1995, 45, 56, 58, 53, 49, 327, 54, 49, 244, 53, 49, 332, 107, 12967, 343, 563, 100, 1995, 45, 56, 60, 53, 49, 327, 54, 49, 244, 54, 49, 332, 107, 12967, 244, 607, 2464, 341, 1565, 8287, 458, 725, 38382, 1294, 666, 341, 16167, 343, 563, 100, 14908, 45, 58, 57, 53, 490, 244, 607, 1773, 16167, 13362, 30803, 310, 1499, 465, 684, 913, 100, 4651, 100, 1130, 100, 1555, 100, 13479, 45, 803, 731, 310, 642, 364, 10030, 1904, 100, 4280, 45, 1021, 681, 66, 54, 53, 46, 641, 327, 1384, 49, 36162, 49, 14372, 49, 2928, 731, 343, 9897, 299, 14372, 45, 419, 332, 3403, 5351, 102, 1577, 103, 6768, 104, 6751, 411, 419, 320, 547, 332, 102, 582, 36162, 459, 283, 790, 54, 306, 55, 411, 1686, 49, 1686, 490, 547, 332, 103, 582, 36162, 459, 370, 790, 54, 50, 55, 50, 56, 50, 57, 50, 58, 129, 411, 1686, 49, 1686, 490, 547, 332, 104, 582, 36162, 459, 3403, 790, 54, 306, 55, 411, 1686, 49, 1686, 490, 419, 820, 419, 1686, 49, 343, 848, 343, 2816, 299, 2928, 459, 283, 22257, 54, 1577, 54, 50, 55, 50, 56, 306, 54, 306, 55, 411, 1686, 49, 1686, 46, 343, 1074, 299, 1496, 45, 4913, 51, 7446, 45, 4178, 51, 4651, 100, 1130, 100, 27867, 5183, 343, 1217, 1074, 630, 2816, 222 ]
[ "import", "Ġunittest", "Ċ", "Ċ", "from", "Ġre", "activ", "ex", "Ġimport", "Ġinterval", "Ċ", "from", "Ġre", "activ", "ex", "Ġimport", "Ġoperators", "Ġas", "Ġops", "Ċ", "from", "Ġre", "activ", "ex", ".", "testing", "Ġimport", "ĠReactive", "Test", ",", "ĠTest", "Scheduler", "Ċ", "from", "Ġre", "activ", "ex", ".", "testing", ".", "mar", "bles", "Ġimport", "Ġm", "arb", "les", "_", "testing", "Ċ", "from", "Ġre", "activ", "ex", ".", "testing", ".", "subscription", "Ġimport", "ĠSubscription", "Ċ", "Ċ", "on", "_", "next", "Ġ=", "ĠReactive", "Test", ".", "on", "_", "next", "Ċ", "on", "_", "completed", "Ġ=", "ĠReactive", "Test", ".", "on", "_", "completed", "Ċ", "on", "_", "error", "Ġ=", "ĠReactive", "Test", ".", "on", "_", "error", "Ċ", "subscribe", "Ġ=", "ĠReactive", "Test", ".", "subscribe", "Ċ", "subscribed", "Ġ=", "ĠReactive", "Test", ".", "subscribed", "Ċ", "dis", "posed", "Ġ=", "ĠReactive", "Test", ".", "dis", "posed", "Ċ", "created", "Ġ=", "ĠReactive", "Test", ".", "created", "ĊĊ", "Ċ", "class", "ĠTest", "Switch", "Map", "Index", "(", "unittest", ".", "TestCase", "):", "ĊĠĠĠ", "Ġdef", "Ġtest", "_", "switch", "_", "map", "_", "indexed", "_", "uses", "_", "index", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġscheduler", "Ġ=", "ĠTest", "Scheduler", "()", "ĊĠĠĠĠĠĠĠ", "Ġxs", "Ġ=", "Ġscheduler", ".", "create", "_", "hot", "_", "observable", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "3", "0", "0", ",", "Ġ\"", "a", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "4", "0", "0", ",", "Ġ\"", "b", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "5", "0", "0", ",", "Ġ\"", "c", "\"),", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĊĠĠĠĠĠĠĠ", "Ġdef", "Ġcreate", "_", "inner", "(", "x", ":", "Ġstr", ",", "Ġi", ":", "Ġint", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdef", "Ġcreate", "_", "changing", "(", "j", ":", "Ġint", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ(", "i", ",", "Ġj", ",", "Ġx", ")", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġinterval", "(", "2", "0", ").", "pipe", "(", "ops", ".", "map", "(", "create", "_", "changing", "))", "ĊĊĠĠĠĠĠĠĠ", "Ġdef", "Ġcreate", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġxs", ".", "pipe", "(", "ops", ".", "switch", "_", "map", "_", "indexed", "(", "project", "=", "create", "_", "inner", "))", "ĊĊĠĠĠĠĠĠĠ", "Ġresults", "Ġ=", "Ġscheduler", ".", "start", "(", "create", ",", "Ġdisposed", "=", "5", "8", "0", ")", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġ(", "i", ",", "Ġj", ",", "Ġx", "):", "Ġi", "Ġis", "Ġthe", "Ġindex", "Ġof", "Ġthe", "Ġouter", "Ġemit", ";", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġj", "Ġis", "Ġthe", "Ġvalue", "Ġof", "Ġthe", "Ġinner", "Ġinterval", ";", "ĊĠĠĠĠĠĠĠ", "Ġ#", "Ġx", "Ġis", "Ġthe", "Ġvalue", "Ġof", "Ġthe", "Ġouter", "Ġemission", "ĊĠĠĠĠĠĠĠ", "Ġassert", "Ġresults", ".", "messages", "Ġ==", "Ġ[", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "3", "2", "0", ",", "Ġ(", "0", ",", "Ġ", "0", ",", "Ġ\"", "a", "\")),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "3", "4", "0", ",", "Ġ(", "0", ",", "Ġ", "1", ",", "Ġ\"", "a", "\")),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "3", "6", "0", ",", "Ġ(", "0", ",", "Ġ", "2", ",", "Ġ\"", "a", "\")),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "3", "8", "0", ",", "Ġ(", "0", ",", "Ġ", "3", ",", "Ġ\"", "a", "\")),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "4", "2", "0", ",", "Ġ(", "1", ",", "Ġ", "0", ",", "Ġ\"", "b", "\")),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "4", "4", "0", ",", "Ġ(", "1", ",", "Ġ", "1", ",", "Ġ\"", "b", "\")),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "4", "6", "0", ",", "Ġ(", "1", ",", "Ġ", "2", ",", "Ġ\"", "b", "\")),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "4", "8", "0", ",", "Ġ(", "1", ",", "Ġ", "3", ",", "Ġ\"", "b", "\")),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "5", "2", "0", ",", "Ġ(", "2", ",", "Ġ", "0", ",", "Ġ\"", "c", "\")),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "5", "4", "0", ",", "Ġ(", "2", ",", "Ġ", "1", ",", "Ġ\"", "c", "\")),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "5", "6", "0", ",", "Ġ(", "2", ",", "Ġ", "2", ",", "Ġ\"", "c", "\")),", "ĊĠĠĠĠĠĠĠ", "Ġ]", "ĊĠĠĠĠĠĠĠ", "Ġassert", "Ġxs", ".", "subscriptions", "Ġ==", "Ġ[", "Subscription", "(", "2", "0", "0", ",", "Ġ", "5", "8", "0", ")]", "ĊĊĠĠĠ", "Ġdef", "Ġtest", "_", "switch", "_", "map", "_", "indexed", "_", "inner", "_", "throws", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Inner", "Ġthrowing", "Ġcauses", "Ġouter", "Ġto", "Ġthrow", "\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġex", "Ġ=", "Ġ\"", "ex", "\"", "ĊĠĠĠĠĠĠĠ", "Ġscheduler", "Ġ=", "ĠTest", "Scheduler", "()", "ĊĠĠĠĠĠĠĠ", "Ġsources", "Ġ=", "Ġ[", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġscheduler", ".", "create", "_", "cold", "_", "observable", "(", "on", "_", "next", "(", "1", "0", "0", ",", "Ġ\"", "a", "\"),", "Ġon", "_", "next", "(", "3", "0", "0", ",", "Ġ\"", "aa", "\")),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġscheduler", ".", "create", "_", "cold", "_", "observable", "(", "on", "_", "next", "(", "5", "0", ",", "Ġ\"", "b", "\"),", "Ġon", "_", "error", "(", "1", "2", "0", ",", "Ġex", ")),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġscheduler", ".", "create", "_", "cold", "_", "observable", "(", "on", "_", "next", "(", "5", "0", ",", "Ġ\"", "w", "ont", "Ġhappen", "\"),", "Ġon", "_", "error", "(", "1", "2", "0", ",", "Ġ\"", "no", "\")),", "ĊĠĠĠĠĠĠĠ", "Ġ]", "ĊĠĠĠĠĠĠĠ", "Ġxs", "Ġ=", "Ġscheduler", ".", "create", "_", "hot", "_", "observable", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "2", "5", "0", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "0", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "4", "0", "0", ",", "Ġ", "1", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "5", "5", "0", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "2", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĊĠĠĠĠĠĠĠ", "Ġdef", "Ġcreate", "_", "inner", "(", "x", ":", "Ġint", ",", "Ġ_", "i", ":", "Ġint", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġsources", "[", "x", "]", "ĊĊĠĠĠĠĠĠĠ", "Ġdef", "Ġcreate", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġxs", ".", "pipe", "(", "ops", ".", "switch", "_", "map", "_", "indexed", "(", "create", "_", "inner", "))", "ĊĊĠĠĠĠĠĠĠ", "Ġresults", "Ġ=", "Ġscheduler", ".", "start", "(", "create", ")", "ĊĠĠĠĠĠĠĠ", "Ġassert", "Ġresults", ".", "messages", "Ġ==", "Ġ[", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "3", "5", "0", ",", "Ġ\"", "a", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "4", "5", "0", ",", "Ġ\"", "b", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "error", "(", "5", "2", "0", ",", "Ġex", "),", "ĊĠĠĠĠĠĠĠ", "Ġ]", "ĊĠĠĠĠĠĠĠ", "Ġassert", "Ġsources", "[", "0", "].", "subscriptions", "Ġ==", "Ġ[", "Subscription", "(", "2", "5", "0", ",", "Ġ", "4", "0", "0", ")]", "ĊĠĠĠĠĠĠĠ", "Ġassert", "Ġsources", "[", "1", "].", "subscriptions", "Ġ==", "Ġ[", "Subscription", "(", "4", "0", "0", ",", "Ġ", "5", "2", "0", ")]", "ĊĠĠĠĠĠĠĠ", "Ġassert", "Ġsources", "[", "2", "].", "subscriptions", "Ġ==", "Ġ[]", "ĊĊĠĠĠ", "Ġdef", "Ġtest", "_", "switch", "_", "map", "_", "indexed", "_", "outer", "_", "throws", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Outer", "Ġthrowing", "Ġun", "sub", "scri", "bes", "Ġfrom", "Ġall", "\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġex", "Ġ=", "Ġ\"", "ABC", "\"", "ĊĠĠĠĠĠĠĠ", "Ġscheduler", "Ġ=", "ĠTest", "Scheduler", "()", "ĊĠĠĠĠĠĠĠ", "Ġsources", "Ġ=", "Ġ[", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġscheduler", ".", "create", "_", "cold", "_", "observable", "(", "on", "_", "next", "(", "1", "0", "0", ",", "Ġ\"", "a", "\"),", "Ġon", "_", "next", "(", "3", "0", "0", ",", "Ġ\"", "aa", "\")),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġscheduler", ".", "create", "_", "cold", "_", "observable", "(", "on", "_", "next", "(", "5", "0", ",", "Ġ\"", "b", "\"),", "Ġon", "_", "error", "(", "1", "2", "0", ",", "Ġex", ")),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġscheduler", ".", "create", "_", "cold", "_", "observable", "(", "on", "_", "next", "(", "5", "0", ",", "Ġ\"", "w", "ont", "Ġhappen", "\"),", "Ġon", "_", "error", "(", "1", "2", "0", ",", "Ġ\"", "no", "\")),", "ĊĠĠĠĠĠĠĠ", "Ġ]", "ĊĠĠĠĠĠĠĠ", "Ġxs", "Ġ=", "Ġscheduler", ".", "create", "_", "hot", "_", "observable", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "2", "5", "0", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "0", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "4", "0", "0", ",", "Ġ", "1", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "error", "(", "4", "3", "0", ",", "Ġex", "),", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĊĠĠĠĠĠĠĠ", "Ġdef", "Ġcreate", "_", "inner", "(", "x", ":", "Ġint", ",", "Ġ_", "i", ":", "Ġint", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġsources", "[", "x", "]", "ĊĊĠĠĠĠĠĠĠ", "Ġdef", "Ġcreate", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġxs", ".", "pipe", "(", "ops", ".", "switch", "_", "map", "_", "indexed", "(", "create", "_", "inner", "))", "ĊĊĠĠĠĠĠĠĠ", "Ġresults", "Ġ=", "Ġscheduler", ".", "start", "(", "create", ")", "ĊĠĠĠĠĠĠĠ", "Ġassert", "Ġresults", ".", "messages", "Ġ==", "Ġ[", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "3", "5", "0", ",", "Ġ\"", "a", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "error", "(", "4", "3", "0", ",", "Ġex", "),", "ĊĠĠĠĠĠĠĠ", "Ġ]", "ĊĠĠĠĠĠĠĠ", "Ġassert", "Ġsources", "[", "0", "].", "subscriptions", "Ġ==", "Ġ[", "Subscription", "(", "2", "5", "0", ",", "Ġ", "4", "0", "0", ")]", "ĊĠĠĠĠĠĠĠ", "Ġassert", "Ġsources", "[", "1", "].", "subscriptions", "Ġ==", "Ġ[", "Subscription", "(", "4", "0", "0", ",", "Ġ", "4", "3", "0", ")]", "ĊĠĠĠĠĠĠĠ", "Ġassert", "Ġsources", "[", "2", "].", "subscriptions", "Ġ==", "Ġ[]", "ĊĊĠĠĠ", "Ġdef", "Ġtest", "_", "switch", "_", "map", "_", "indexed", "_", "no", "_", "inner", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġscheduler", "Ġ=", "ĠTest", "Scheduler", "()", "ĊĠĠĠĠĠĠĠ", "Ġxs", "Ġ=", "Ġscheduler", ".", "create", "_", "hot", "_", "observable", "(", "on", "_", "completed", "(", "5", "0", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġ#", "ĠFake", "Ġinner", "Ġwhich", "Ġshould", "Ġnever", "Ġbe", "Ġsubscribed", "Ġto", "ĊĠĠĠĠĠĠĠ", "Ġsources", "Ġ=", "Ġ[", "scheduler", ".", "create", "_", "cold", "_", "observable", "(", "on", "_", "next", "(", "2", "0", ",", "Ġ", "2", "))]", "ĊĊĠĠĠĠĠĠĠ", "Ġdef", "Ġcreate", "_", "inner", "(_", "x", ":", "Ġint", ",", "Ġi", ":", "Ġint", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġsources", "[", "i", "]", "ĊĊĠĠĠĠĠĠĠ", "Ġdef", "Ġcreate", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġxs", ".", "pipe", "(", "ops", ".", "switch", "_", "map", "_", "indexed", "(", "create", "_", "inner", "))", "ĊĊĠĠĠĠĠĠĠ", "Ġresults", "Ġ=", "Ġscheduler", ".", "start", "(", "create", ")", "ĊĠĠĠĠĠĠĠ", "Ġassert", "Ġresults", ".", "messages", "Ġ==", "Ġ[", "on", "_", "completed", "(", "5", "0", "0", ")]", "ĊĠĠĠĠĠĠĠ", "Ġassert", "Ġxs", ".", "subscriptions", "Ġ==", "Ġ[", "Subscription", "(", "2", "0", "0", ",", "Ġ", "5", "0", "0", ")]", "ĊĠĠĠĠĠĠĠ", "Ġassert", "Ġsources", "[", "0", "].", "subscriptions", "Ġ==", "Ġ[]", "ĊĊĠĠĠ", "Ġdef", "Ġtest", "_", "switch", "_", "map", "_", "indexed", "_", "inner", "_", "comp", "letes", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Inner", "Ġcomplet", "ions", "Ġdo", "Ġnot", "Ġaffect", "Ġouter", "\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġscheduler", "Ġ=", "ĠTest", "Scheduler", "()", "ĊĠĠĠĠĠĠĠ", "Ġxs", "Ġ=", "Ġscheduler", ".", "create", "_", "hot", "_", "observable", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "3", "0", "0", ",", "Ġ\"", "d", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "3", "3", "0", ",", "Ġ\"", "f", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "completed", "(", "5", "4", "0", "),", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĊĠĠĠĠĠĠĠ", "Ġdef", "Ġcreate", "_", "inner", "(", "x", ":", "Ġstr", ",", "Ġi", ":", "Ġint", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"\"\"", "An", "Ġobservable", "Ġwhich", "Ġwill", "Ġcomplete", "Ġafter", "Ġ", "4", "0", "Ġticks", "\"\"\"", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġinterval", "(", "2", "0", ").", "pipe", "(", "ops", ".", "map", "(", "lambda", "Ġj", ":", "Ġ(", "i", ",", "Ġj", ",", "Ġx", ")),", "Ġops", ".", "take", "(", "2", "))", "ĊĊĠĠĠĠĠĠĠ", "Ġdef", "Ġcreate", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġxs", ".", "pipe", "(", "ops", ".", "switch", "_", "map", "_", "indexed", "(", "create", "_", "inner", "))", "ĊĊĠĠĠĠĠĠĠ", "Ġresults", "Ġ=", "Ġscheduler", ".", "start", "(", "create", ")", "ĊĠĠĠĠĠĠĠ", "Ġassert", "Ġresults", ".", "messages", "Ġ==", "Ġ[", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "3", "2", "0", ",", "Ġ(", "0", ",", "Ġ", "0", ",", "Ġ\"", "d", "\")),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "3", "5", "0", ",", "Ġ(", "1", ",", "Ġ", "0", ",", "Ġ\"", "f", "\")),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "next", "(", "3", "7", "0", ",", "Ġ(", "1", ",", "Ġ", "1", ",", "Ġ\"", "f", "\")),", "Ġ", "Ġ#", "Ġhere", "Ġthe", "Ġcurrent", "Ġinner", "Ġis", "Ġun", "subscribed", "Ġbut", "Ġnot", "Ġthe", "Ġouter", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġon", "_", "completed", "(", "5", "4", "0", "),", "Ġ", "Ġ#", "Ġonly", "Ġouter", "Ġcompletion", "Ġaffects", "ĊĠĠĠĠĠĠĠ", "Ġ]", "ĊĊĠĠĠ", "Ġdef", "Ġtest", "_", "switch", "_", "map", "_", "default", "_", "mapper", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġwith", "Ġm", "arb", "les", "_", "testing", "(", "time", "span", "=", "1", "0", ")", "Ġas", "Ġ(", "start", ",", "Ġcold", ",", "Ġhot", ",", "Ġexp", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġxs", "Ġ=", "Ġhot", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "ĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ---", "a", "---", "b", "------", "c", "-----", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ{", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "a", "\":", "Ġcold", "(\"", "ĠĠĠ", "Ġ--", "1", "--", "2", "\",", "ĠNone", ",", "ĠNone", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "b", "\":", "Ġcold", "(\"", "ĠĠĠĠĠĠĠ", "Ġ--", "1", "-", "2", "-", "3", "-", "4", "-", "5", "|", "\",", "ĠNone", ",", "ĠNone", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "c", "\":", "Ġcold", "(\"", "ĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ--", "1", "--", "2", "\",", "ĠNone", ",", "ĠNone", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ},", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "ĠNone", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġexpected", "Ġ=", "Ġexp", "(\"", "ĠĠĠ", "Ġ-----", "1", "---", "1", "-", "2", "-", "3", "--", "1", "--", "2", "\",", "ĠNone", ",", "ĠNone", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġresult", "Ġ=", "Ġstart", "(", "xs", ".", "pipe", "(", "ops", ".", "switch", "_", "map", "_", "indexed", "()))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġassert", "Ġresult", "Ġ==", "Ġexpected", "Ċ" ]
[ 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 67, 67, 67, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 72, 72, 72, 73, 73, 74, 74, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 103, 103, 103, 103, 103, 104, 104, 104, 105, 105, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 108, 108, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 111, 111, 111, 111, 111, 111, 113, 113, 113, 113, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 116, 116, 116, 116, 116, 116, 116, 116, 116, 117, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 123, 123, 123, 123, 123, 123, 123, 123, 123, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 126, 126, 126, 126, 126, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 132, 132, 132, 132, 132, 132, 134, 134, 134, 134, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 137, 137, 137, 137, 137, 137, 137, 137, 137, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 140, 140, 140, 140, 140, 140, 140, 140, 140, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 144, 144, 144, 144, 144, 144, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 148, 148, 148, 148, 148, 148, 148, 148, 148, 149, 149, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 155, 155, 155, 155, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 158, 158, 158, 158, 158, 158, 158, 158, 158, 159, 159, 159, 159, 159, 159, 159, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 164, 164, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 168, 168, 168, 168, 168, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 170, 170, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 174, 174, 175, 175, 175, 176, 176, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 179, 179, 179, 179, 179 ]
[ 1, 7, 16, 1, 1, 5, 8, 13, 15, 22, 31, 1, 5, 8, 13, 15, 22, 32, 35, 39, 1, 5, 8, 13, 15, 16, 23, 30, 39, 43, 44, 49, 58, 1, 5, 8, 13, 15, 16, 23, 24, 27, 31, 38, 40, 43, 46, 47, 54, 1, 5, 8, 13, 15, 16, 23, 24, 36, 43, 56, 1, 1, 3, 4, 8, 10, 19, 23, 24, 26, 27, 31, 1, 3, 4, 13, 15, 24, 28, 29, 31, 32, 41, 1, 3, 4, 9, 11, 20, 24, 25, 27, 28, 33, 1, 10, 12, 21, 25, 26, 35, 1, 11, 13, 22, 26, 27, 37, 1, 4, 9, 11, 20, 24, 25, 28, 33, 1, 8, 10, 19, 23, 24, 31, 1, 1, 6, 11, 17, 20, 25, 26, 34, 35, 43, 45, 4, 8, 13, 14, 20, 21, 24, 25, 32, 33, 37, 38, 43, 44, 48, 50, 8, 18, 20, 25, 34, 36, 8, 11, 13, 23, 24, 30, 31, 34, 35, 45, 46, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 31, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 31, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 31, 8, 10, 8, 12, 19, 20, 25, 26, 27, 28, 32, 33, 35, 36, 40, 42, 12, 16, 23, 24, 32, 33, 34, 35, 39, 41, 16, 23, 25, 26, 27, 29, 30, 32, 33, 12, 19, 28, 29, 30, 31, 33, 37, 38, 41, 42, 45, 46, 52, 53, 61, 63, 8, 12, 19, 22, 12, 19, 22, 23, 27, 28, 31, 32, 38, 39, 42, 43, 50, 51, 58, 59, 65, 66, 71, 73, 8, 16, 18, 28, 29, 34, 35, 41, 42, 51, 52, 53, 54, 55, 56, 8, 10, 12, 13, 14, 16, 17, 19, 21, 23, 26, 30, 36, 39, 43, 49, 54, 55, 8, 10, 12, 15, 19, 25, 28, 32, 38, 47, 48, 8, 10, 12, 15, 19, 25, 28, 32, 38, 47, 8, 15, 23, 24, 32, 35, 37, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 34, 35, 39, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 34, 35, 39, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 34, 35, 39, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 34, 35, 39, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 34, 35, 39, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 34, 35, 39, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 34, 35, 39, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 34, 35, 39, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 34, 35, 39, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 34, 35, 39, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 34, 35, 39, 8, 10, 8, 15, 18, 19, 32, 35, 37, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 60, 4, 8, 13, 14, 20, 21, 24, 25, 32, 33, 38, 39, 45, 46, 50, 52, 8, 12, 17, 26, 33, 39, 42, 48, 51, 8, 11, 13, 15, 17, 18, 8, 18, 20, 25, 34, 36, 8, 16, 18, 20, 12, 22, 23, 29, 30, 34, 35, 45, 46, 48, 49, 53, 54, 55, 56, 57, 58, 60, 61, 64, 67, 68, 72, 73, 74, 75, 76, 77, 79, 81, 85, 12, 22, 23, 29, 30, 34, 35, 45, 46, 48, 49, 53, 54, 55, 56, 57, 59, 60, 63, 66, 67, 72, 73, 74, 75, 76, 77, 80, 83, 12, 22, 23, 29, 30, 34, 35, 45, 46, 48, 49, 53, 54, 55, 56, 57, 59, 60, 63, 70, 73, 76, 77, 82, 83, 84, 85, 86, 87, 89, 91, 95, 8, 10, 8, 11, 13, 23, 24, 30, 31, 34, 35, 45, 46, 12, 15, 16, 20, 21, 17, 18, 19, 20, 21, 17, 18, 19, 12, 15, 12, 15, 16, 20, 21, 22, 23, 24, 25, 26, 27, 29, 12, 15, 16, 20, 21, 17, 18, 19, 20, 21, 17, 18, 19, 12, 15, 8, 10, 8, 12, 19, 20, 25, 26, 27, 28, 32, 33, 35, 36, 37, 41, 43, 12, 19, 27, 28, 29, 30, 8, 12, 19, 22, 12, 19, 22, 23, 27, 28, 31, 32, 38, 39, 42, 43, 50, 51, 57, 58, 63, 65, 8, 16, 18, 28, 29, 34, 35, 41, 42, 8, 15, 23, 24, 32, 35, 37, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 31, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 31, 12, 15, 16, 21, 22, 23, 24, 25, 26, 29, 31, 8, 10, 8, 15, 23, 24, 25, 27, 40, 43, 45, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 68, 8, 15, 23, 24, 25, 27, 40, 43, 45, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 68, 8, 15, 23, 24, 25, 27, 40, 43, 46, 4, 8, 13, 14, 20, 21, 24, 25, 32, 33, 38, 39, 45, 46, 50, 52, 8, 12, 17, 26, 29, 32, 36, 39, 44, 48, 51, 8, 11, 13, 15, 18, 19, 8, 18, 20, 25, 34, 36, 8, 16, 18, 20, 12, 22, 23, 29, 30, 34, 35, 45, 46, 48, 49, 53, 54, 55, 56, 57, 58, 60, 61, 64, 67, 68, 72, 73, 74, 75, 76, 77, 79, 81, 85, 12, 22, 23, 29, 30, 34, 35, 45, 46, 48, 49, 53, 54, 55, 56, 57, 59, 60, 63, 66, 67, 72, 73, 74, 75, 76, 77, 80, 83, 12, 22, 23, 29, 30, 34, 35, 45, 46, 48, 49, 53, 54, 55, 56, 57, 59, 60, 63, 70, 73, 76, 77, 82, 83, 84, 85, 86, 87, 89, 91, 95, 8, 10, 8, 11, 13, 23, 24, 30, 31, 34, 35, 45, 46, 12, 15, 16, 20, 21, 17, 18, 19, 20, 21, 17, 18, 19, 12, 15, 12, 15, 16, 20, 21, 22, 23, 24, 25, 26, 27, 29, 12, 15, 16, 21, 22, 23, 24, 25, 26, 29, 31, 8, 10, 8, 12, 19, 20, 25, 26, 27, 28, 32, 33, 35, 36, 37, 41, 43, 12, 19, 27, 28, 29, 30, 8, 12, 19, 22, 12, 19, 22, 23, 27, 28, 31, 32, 38, 39, 42, 43, 50, 51, 57, 58, 63, 65, 8, 16, 18, 28, 29, 34, 35, 41, 42, 8, 15, 23, 24, 32, 35, 37, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 31, 12, 15, 16, 21, 22, 23, 24, 25, 26, 29, 31, 8, 10, 8, 15, 23, 24, 25, 27, 40, 43, 45, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 68, 8, 15, 23, 24, 25, 27, 40, 43, 45, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 68, 8, 15, 23, 24, 25, 27, 40, 43, 46, 4, 8, 13, 14, 20, 21, 24, 25, 32, 33, 35, 36, 41, 42, 46, 48, 8, 18, 20, 25, 34, 36, 8, 11, 13, 23, 24, 30, 31, 34, 35, 45, 46, 48, 49, 58, 59, 60, 61, 62, 64, 8, 10, 15, 21, 27, 34, 40, 43, 54, 57, 8, 16, 18, 20, 29, 30, 36, 37, 41, 42, 52, 53, 55, 56, 60, 61, 62, 63, 64, 65, 66, 69, 8, 12, 19, 20, 25, 27, 28, 29, 33, 34, 36, 37, 41, 43, 12, 19, 27, 28, 29, 30, 8, 12, 19, 22, 12, 19, 22, 23, 27, 28, 31, 32, 38, 39, 42, 43, 50, 51, 57, 58, 63, 65, 8, 16, 18, 28, 29, 34, 35, 41, 42, 8, 15, 23, 24, 32, 35, 37, 39, 40, 49, 50, 51, 52, 53, 55, 8, 15, 18, 19, 32, 35, 37, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 60, 8, 15, 23, 24, 25, 27, 40, 43, 46, 4, 8, 13, 14, 20, 21, 24, 25, 32, 33, 38, 39, 43, 48, 49, 53, 55, 8, 12, 17, 25, 29, 32, 36, 43, 49, 52, 8, 18, 20, 25, 34, 36, 8, 11, 13, 23, 24, 30, 31, 34, 35, 45, 46, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 31, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 31, 12, 15, 16, 25, 26, 27, 28, 29, 31, 8, 10, 8, 12, 19, 20, 25, 26, 27, 28, 32, 33, 35, 36, 40, 42, 12, 16, 18, 29, 35, 40, 49, 55, 56, 57, 58, 64, 67, 12, 19, 28, 29, 30, 31, 33, 37, 38, 41, 42, 45, 46, 52, 54, 55, 57, 58, 59, 61, 62, 64, 67, 71, 72, 76, 77, 78, 80, 8, 12, 19, 22, 12, 19, 22, 23, 27, 28, 31, 32, 38, 39, 42, 43, 50, 51, 57, 58, 63, 65, 8, 16, 18, 28, 29, 34, 35, 41, 42, 8, 15, 23, 24, 32, 35, 37, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 34, 35, 39, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 34, 35, 39, 12, 15, 16, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 34, 35, 39, 40, 42, 47, 51, 59, 65, 68, 71, 81, 85, 89, 93, 99, 12, 15, 16, 25, 26, 27, 28, 29, 31, 32, 34, 39, 45, 56, 64, 8, 10, 4, 8, 13, 14, 20, 21, 24, 25, 32, 33, 39, 40, 44, 46, 8, 13, 15, 18, 21, 22, 29, 30, 34, 38, 39, 40, 41, 42, 45, 47, 52, 53, 58, 59, 63, 64, 68, 70, 12, 15, 17, 21, 22, 16, 18, 32, 36, 37, 40, 41, 47, 48, 53, 55, 16, 18, 20, 22, 23, 25, 30, 32, 35, 38, 39, 41, 42, 44, 49, 50, 55, 57, 20, 22, 23, 25, 30, 32, 39, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 54, 59, 60, 65, 67, 20, 22, 23, 25, 30, 32, 46, 49, 50, 52, 53, 55, 60, 61, 66, 68, 16, 19, 16, 21, 22, 12, 14, 12, 21, 23, 27, 29, 32, 38, 39, 42, 43, 44, 45, 46, 47, 49, 50, 52, 53, 55, 60, 61, 66, 67, 12, 19, 21, 27, 28, 30, 31, 35, 36, 39, 40, 46, 47, 50, 51, 58, 62, 12, 19, 26, 29, 38 ]
e8a36bd7826c5d71cf8012ea82df6c127dd858fc
from typing import Dict, Optional from collections import OrderedDict import torch import torch.nn as nn import torch.optim as optim import yaml def get_device() -> torch.device: if torch.cuda.is_available(): return torch.device("cuda") return torch.device("cpu") def load_yaml_config(config_path: str) -> Dict: with open(config_path, "r") as stream: return yaml.load(stream) def get_optimizer(model: nn.Module, optim_config: Dict) -> optim.Optimizer: return optim.Adam(model.parameters(), **optim_config) def save_checkpoint(model: nn.Module, path: str): torch.save(model.state_dict(), path) def load_state_dict(path: str) -> OrderedDict: return torch.load(path) def load_checkpoint(model: nn.Module, checkpoint_path: Optional[str]): if checkpoint_path: model.load_state_dict(load_state_dict(checkpoint_path))
[ 1097, 12018, 1220, 14609, 49, 5663, 222, 1097, 13722, 1220, 34279, 222, 222, 485, 5665, 222, 485, 5665, 51, 4042, 641, 8507, 222, 485, 5665, 51, 8411, 641, 6630, 222, 485, 14478, 499, 222, 610, 640, 100, 2949, 365, 984, 5665, 51, 2949, 63, 303, 434, 5665, 51, 9693, 51, 316, 100, 7249, 2284, 310, 461, 5665, 51, 2949, 459, 9693, 678, 303, 461, 5665, 51, 2949, 459, 6302, 678, 499, 222, 610, 2480, 100, 6057, 100, 1180, 45, 1180, 100, 1005, 63, 615, 46, 984, 14609, 63, 303, 642, 2177, 45, 1180, 100, 1005, 49, 332, 119, 678, 641, 3458, 63, 310, 461, 14478, 51, 963, 45, 2255, 46, 499, 222, 610, 640, 100, 16895, 45, 1184, 63, 8507, 51, 2478, 49, 6630, 100, 1180, 63, 14609, 46, 984, 6630, 51, 29402, 63, 303, 461, 6630, 51, 32013, 45, 1184, 51, 5173, 1046, 1137, 8411, 100, 1180, 46, 499, 222, 610, 4166, 100, 17264, 45, 1184, 63, 8507, 51, 2478, 49, 1536, 63, 615, 731, 303, 5665, 51, 2882, 45, 1184, 51, 1311, 100, 2734, 1046, 1536, 46, 499, 222, 610, 2480, 100, 1311, 100, 2734, 45, 1005, 63, 615, 46, 984, 34279, 63, 303, 461, 5665, 51, 963, 45, 1005, 46, 499, 222, 610, 2480, 100, 17264, 45, 1184, 63, 8507, 51, 2478, 49, 18673, 100, 1005, 63, 5663, 96, 484, 10879, 303, 434, 18673, 100, 1005, 63, 310, 1573, 51, 963, 100, 1311, 100, 2734, 45, 963, 100, 1311, 100, 2734, 45, 17264, 100, 1005, 509, 222 ]
[ "from", "Ġtyping", "Ġimport", "ĠDict", ",", "ĠOptional", "Ċ", "from", "Ġcollections", "Ġimport", "ĠOrderedDict", "Ċ", "Ċ", "import", "Ġtorch", "Ċ", "import", "Ġtorch", ".", "nn", "Ġas", "Ġnn", "Ċ", "import", "Ġtorch", ".", "optim", "Ġas", "Ġoptim", "Ċ", "import", "Ġyaml", "ĊĊ", "Ċ", "def", "Ġget", "_", "device", "()", "Ġ->", "Ġtorch", ".", "device", ":", "ĊĠĠĠ", "Ġif", "Ġtorch", ".", "cuda", ".", "is", "_", "available", "():", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġtorch", ".", "device", "(\"", "cuda", "\")", "ĊĠĠĠ", "Ġreturn", "Ġtorch", ".", "device", "(\"", "cpu", "\")", "ĊĊ", "Ċ", "def", "Ġload", "_", "yaml", "_", "config", "(", "config", "_", "path", ":", "Ġstr", ")", "Ġ->", "ĠDict", ":", "ĊĠĠĠ", "Ġwith", "Ġopen", "(", "config", "_", "path", ",", "Ġ\"", "r", "\")", "Ġas", "Ġstream", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġyaml", ".", "load", "(", "stream", ")", "ĊĊ", "Ċ", "def", "Ġget", "_", "optimizer", "(", "model", ":", "Ġnn", ".", "Module", ",", "Ġoptim", "_", "config", ":", "ĠDict", ")", "Ġ->", "Ġoptim", ".", "Optimizer", ":", "ĊĠĠĠ", "Ġreturn", "Ġoptim", ".", "Adam", "(", "model", ".", "parameters", "(),", "Ġ**", "optim", "_", "config", ")", "ĊĊ", "Ċ", "def", "Ġsave", "_", "checkpoint", "(", "model", ":", "Ġnn", ".", "Module", ",", "Ġpath", ":", "Ġstr", "):", "ĊĠĠĠ", "Ġtorch", ".", "save", "(", "model", ".", "state", "_", "dict", "(),", "Ġpath", ")", "ĊĊ", "Ċ", "def", "Ġload", "_", "state", "_", "dict", "(", "path", ":", "Ġstr", ")", "Ġ->", "ĠOrderedDict", ":", "ĊĠĠĠ", "Ġreturn", "Ġtorch", ".", "load", "(", "path", ")", "ĊĊ", "Ċ", "def", "Ġload", "_", "checkpoint", "(", "model", ":", "Ġnn", ".", "Module", ",", "Ġcheckpoint", "_", "path", ":", "ĠOptional", "[", "str", "]):", "ĊĠĠĠ", "Ġif", "Ġcheckpoint", "_", "path", ":", "ĊĠĠĠĠĠĠĠ", "Ġmodel", ".", "load", "_", "state", "_", "dict", "(", "load", "_", "state", "_", "dict", "(", "checkpoint", "_", "path", "))", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35 ]
[ 1, 5, 12, 19, 24, 25, 34, 1, 5, 17, 24, 36, 1, 1, 7, 13, 1, 7, 13, 14, 16, 19, 22, 1, 7, 13, 14, 19, 22, 28, 1, 7, 12, 1, 1, 4, 8, 9, 15, 17, 20, 26, 27, 33, 34, 4, 7, 13, 14, 18, 19, 21, 22, 31, 34, 8, 15, 21, 22, 28, 30, 34, 36, 4, 11, 17, 18, 24, 26, 29, 31, 1, 1, 4, 9, 10, 14, 15, 21, 22, 28, 29, 33, 34, 38, 39, 42, 47, 48, 4, 9, 14, 15, 21, 22, 26, 27, 29, 30, 32, 35, 42, 43, 8, 15, 20, 21, 25, 26, 32, 33, 1, 1, 4, 8, 9, 18, 19, 24, 25, 28, 29, 35, 36, 42, 43, 49, 50, 55, 56, 59, 65, 66, 75, 76, 4, 11, 17, 18, 22, 23, 28, 29, 39, 42, 45, 50, 51, 57, 58, 1, 1, 4, 9, 10, 20, 21, 26, 27, 30, 31, 37, 38, 43, 44, 48, 50, 4, 10, 11, 15, 16, 21, 22, 27, 28, 32, 35, 40, 41, 1, 1, 4, 9, 10, 15, 16, 20, 21, 25, 26, 30, 31, 34, 46, 47, 4, 11, 17, 18, 22, 23, 27, 28, 1, 1, 4, 9, 10, 20, 21, 26, 27, 30, 31, 37, 38, 49, 50, 54, 55, 64, 65, 68, 71, 4, 7, 18, 19, 23, 24, 8, 14, 15, 19, 20, 25, 26, 30, 31, 35, 36, 41, 42, 46, 47, 57, 58, 62, 64 ]
8bb39149a5b7f4f4b1d3d62a002ab97421905ea1
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 处理与合约名字有关的变量 """ import re # 上期所 PRODUCTS_SHFE = {"cu", "al", "zn", "pb", "ni", "sn", "au", "ag", "rb", "wr", "hc", "fu", "bu", "ru"} # 中金所 PRODUCTS_CFFEX = {"IF", "IC", "IH", "T", "TF"} # 郑商所 PRODUCTS_CZCE = { "SR", "CF", "ZC", "FG", "TA", "WH", "PM", "RI", "LR", "JR", "RS", "OI", "RM", "SF", "SM", "MA", "WT", "WS", "RO", "ER", "ME", "TC", } # 大商所 PRODUCTS_DCE = {"m", "y", "a", "b", "p", "c", "cs", "jd", "fb", "bb", "l", "v", "pp", "j", "jm", "i"} EXCHANGES_wind_code_xapi = { "CFE": "CFFEX", "SHF": "SHFE", "CZC": "CZCE", "DCE": "DCE", "SH": "SSE", "SZ": "SZSE", } EXCHANGES_xapi_wind_code = dict((v, k) for k, v in EXCHANGES_wind_code_xapi.items()) def product_to_exchange(product): """ 将合约产品码转成交易所 :param product: :return: """ PRODUCT_ = product.upper() if PRODUCT_ in PRODUCTS_CFFEX: return "CFFEX" if PRODUCT_ in PRODUCTS_CZCE: return "CZCE" product_ = product.lower() if product_ in PRODUCTS_SHFE: return "SHFE" if product_ in PRODUCTS_DCE: return "DCE" return "Unknown" def is_shfe(product): """ 是否上期所 多添加此函数的主要原因是上期所需要区分平今与平昨 :param product: :return: """ product_ = product.lower() return product_ in PRODUCTS_SHFE def get_product(symbol): """ 从合约名中提取产品名 :param symbol: :return: """ pattern = re.compile(r"(\D{1,2})(\d{0,1})(\d{3})") match = pattern.match(symbol) if match: return match.expand(r"\g<1>") else: return symbol def get_exchange(symbol): """ 从带.的合约名中提取交易所 :param symbol: :return: """ pattern = re.compile(r"(\.)(\D{1,4})") match = pattern.match(symbol) if match: return match.expand(r"\g<2>") else: return symbol if __name__ == "__main__": import pandas as pd df = pd.DataFrame({"Symbol": ["IF1603", "rb1708", "600000"]}) df["IsSHFE"] = list(map(is_shfe, map(get_product, df["Symbol"]))) df["product"] = list(map(get_product, df["Symbol"])) df["IsSHFE"] = list(map(is_shfe, df["product"])) print(df) print(get_product("IF1406")) print(EXCHANGES_wind_code_xapi.get("SH"))
[ 8758, 3392, 52, 1793, 52, 2141, 4406, 222, 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 3012, 222, 11474, 8933, 6363, 24447, 38317, 3052, 6830, 1096, 16699, 222, 3012, 222, 222, 485, 334, 222, 222, 40, 28803, 9820, 5995, 222, 16011, 88, 100, 2526, 4683, 299, 3479, 9816, 411, 332, 298, 411, 332, 9241, 411, 332, 4391, 411, 332, 5177, 411, 332, 4654, 411, 332, 4474, 411, 332, 500, 411, 332, 4523, 411, 332, 7024, 411, 332, 13282, 411, 332, 9800, 411, 332, 716, 411, 332, 2965, 3667, 222, 40, 16421, 15491, 5995, 222, 16011, 88, 100, 72, 1158, 1478, 299, 3479, 2971, 411, 332, 1122, 411, 332, 15493, 411, 332, 89, 411, 332, 5771, 3667, 222, 40, 244, 6817, 263, 12517, 5995, 222, 16011, 88, 100, 30058, 1973, 299, 320, 303, 332, 6479, 411, 303, 332, 4947, 411, 303, 332, 36338, 411, 303, 332, 14435, 411, 303, 332, 5805, 411, 303, 332, 11981, 411, 303, 332, 7464, 411, 303, 332, 4727, 411, 303, 332, 14909, 411, 303, 332, 26416, 411, 303, 332, 10187, 411, 303, 332, 40029, 411, 303, 332, 11267, 411, 303, 332, 12084, 411, 303, 332, 5632, 411, 303, 332, 1418, 411, 303, 332, 8919, 411, 303, 332, 3968, 411, 303, 332, 1030, 411, 303, 332, 546, 411, 303, 332, 1043, 411, 303, 332, 6552, 411, 222, 130, 222, 40, 30461, 12517, 5995, 222, 16011, 88, 100, 73, 1973, 299, 3479, 114, 411, 332, 126, 411, 332, 102, 411, 332, 103, 411, 332, 117, 411, 332, 104, 411, 332, 1766, 411, 332, 14605, 411, 332, 4365, 411, 332, 2901, 411, 332, 113, 411, 332, 123, 411, 332, 612, 411, 332, 111, 411, 332, 24412, 411, 332, 110, 3667, 222, 222, 1478, 23123, 959, 100, 12112, 100, 707, 100, 125, 1256, 299, 320, 303, 332, 72, 4683, 582, 332, 72, 1158, 1478, 411, 303, 332, 2526, 75, 582, 332, 2526, 4683, 411, 303, 332, 30058, 72, 582, 332, 30058, 1973, 411, 303, 332, 73, 1973, 582, 332, 73, 1973, 411, 303, 332, 2526, 582, 332, 23191, 411, 303, 332, 15566, 582, 332, 15566, 825, 411, 222, 130, 222, 222, 1478, 23123, 959, 100, 125, 1256, 100, 12112, 100, 707, 299, 5473, 1181, 123, 49, 851, 46, 456, 851, 49, 373, 347, 2800, 23123, 959, 100, 12112, 100, 707, 100, 125, 1256, 51, 3053, 1177, 499, 222, 610, 4072, 100, 471, 100, 11435, 45, 2463, 731, 303, 1547, 303, 24120, 6363, 24447, 29690, 6277, 10307, 4223, 32185, 5995, 303, 518, 772, 4072, 63, 303, 518, 620, 63, 303, 1547, 303, 41175, 100, 299, 4072, 51, 7647, 365, 303, 434, 41175, 100, 347, 41175, 88, 100, 72, 1158, 1478, 63, 310, 461, 332, 72, 1158, 1478, 39, 303, 434, 41175, 100, 347, 41175, 88, 100, 30058, 1973, 63, 310, 461, 332, 30058, 1973, 39, 303, 4072, 100, 299, 4072, 51, 5773, 365, 303, 434, 4072, 100, 347, 41175, 88, 100, 2526, 4683, 63, 310, 461, 332, 2526, 4683, 39, 303, 434, 4072, 100, 347, 41175, 88, 100, 73, 1973, 63, 310, 461, 332, 73, 1973, 39, 303, 461, 332, 5850, 39, 499, 222, 610, 458, 100, 635, 1247, 45, 2463, 731, 303, 1547, 303, 21911, 4518, 9820, 5995, 303, 244, 6525, 14101, 8550, 10216, 1096, 22980, 31377, 2327, 4518, 9820, 5995, 8092, 7554, 4519, 12142, 21689, 8933, 12142, 1900, 139, 303, 518, 772, 4072, 63, 303, 518, 620, 63, 303, 1547, 303, 4072, 100, 299, 4072, 51, 5773, 365, 303, 461, 4072, 100, 347, 41175, 88, 100, 2526, 4683, 499, 222, 610, 640, 100, 2463, 45, 7029, 731, 303, 1547, 303, 34399, 6363, 24447, 5203, 3011, 7727, 4798, 29690, 5203, 303, 518, 772, 6988, 63, 303, 518, 620, 63, 303, 1547, 303, 5275, 299, 334, 51, 7028, 45, 119, 39, 5026, 73, 128, 54, 49, 55, 1770, 5026, 105, 128, 53, 49, 54, 1770, 5026, 105, 128, 56, 1770, 678, 303, 2549, 299, 5275, 51, 2892, 45, 7029, 46, 303, 434, 2549, 63, 310, 461, 2549, 51, 8976, 45, 119, 7660, 108, 65, 54, 19824, 303, 832, 63, 310, 461, 6988, 499, 222, 610, 640, 100, 11435, 45, 7029, 731, 303, 1547, 303, 34399, 19595, 51, 1096, 6363, 24447, 5203, 3011, 7727, 4798, 32185, 5995, 303, 518, 772, 6988, 63, 303, 518, 620, 63, 303, 1547, 303, 5275, 299, 334, 51, 7028, 45, 119, 39, 5026, 51, 2516, 97, 73, 128, 54, 49, 57, 1770, 678, 303, 2549, 299, 5275, 51, 2892, 45, 7029, 46, 303, 434, 2549, 63, 310, 461, 2549, 51, 8976, 45, 119, 7660, 108, 65, 55, 19824, 303, 832, 63, 310, 461, 6988, 499, 222, 344, 1176, 444, 523, 630, 9609, 1850, 18021, 303, 1220, 13247, 641, 6451, 465, 5247, 299, 6451, 51, 11806, 15540, 6088, 582, 3059, 2971, 54, 59, 53, 56, 411, 332, 4523, 54, 60, 53, 61, 411, 332, 59, 53, 53, 53, 53, 53, 1465, 1770, 303, 5247, 1388, 1640, 2526, 4683, 1465, 299, 1168, 45, 1130, 45, 316, 100, 635, 1247, 49, 2010, 45, 390, 100, 2463, 49, 5247, 1388, 6088, 1465, 2636, 465, 5247, 1388, 2463, 1465, 299, 1168, 45, 1130, 45, 390, 100, 2463, 49, 5247, 1388, 6088, 23830, 303, 5247, 1388, 1640, 2526, 4683, 1465, 299, 1168, 45, 1130, 45, 316, 100, 635, 1247, 49, 5247, 1388, 2463, 23830, 303, 1489, 45, 1519, 46, 303, 1489, 45, 390, 100, 2463, 459, 2971, 54, 57, 53, 59, 2152, 303, 1489, 45, 1478, 23123, 959, 100, 12112, 100, 707, 100, 125, 1256, 51, 390, 459, 2526, 2152, 222 ]
[ "#!/", "usr", "/", "bin", "/", "env", "Ġpython", "Ċ", "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "\"\"\"", "Ċ", "å¤ĦçIJĨ", "ä¸İ", "åIJĪ", "约", "åIJįåŃĹ", "æľī", "åħ³", "çļĦ", "åıĺéĩı", "Ċ", "\"\"\"", "Ċ", "Ċ", "import", "Ġre", "Ċ", "Ċ", "#", "Ġä¸Ĭ", "æľŁ", "æīĢ", "Ċ", "PRODUCT", "S", "_", "SH", "FE", "Ġ=", "Ġ{\"", "cu", "\",", "Ġ\"", "al", "\",", "Ġ\"", "zn", "\",", "Ġ\"", "pb", "\",", "Ġ\"", "ni", "\",", "Ġ\"", "sn", "\",", "Ġ\"", "au", "\",", "Ġ\"", "ag", "\",", "Ġ\"", "rb", "\",", "Ġ\"", "wr", "\",", "Ġ\"", "hc", "\",", "Ġ\"", "fu", "\",", "Ġ\"", "bu", "\",", "Ġ\"", "ru", "\"}", "Ċ", "#", "Ġä¸Ń", "éĩij", "æīĢ", "Ċ", "PRODUCT", "S", "_", "C", "FF", "EX", "Ġ=", "Ġ{\"", "IF", "\",", "Ġ\"", "IC", "\",", "Ġ\"", "IH", "\",", "Ġ\"", "T", "\",", "Ġ\"", "TF", "\"}", "Ċ", "#", "Ġ", "éĥ", "ij", "åķĨ", "æīĢ", "Ċ", "PRODUCT", "S", "_", "CZ", "CE", "Ġ=", "Ġ{", "ĊĠĠĠ", "Ġ\"", "SR", "\",", "ĊĠĠĠ", "Ġ\"", "CF", "\",", "ĊĠĠĠ", "Ġ\"", "ZC", "\",", "ĊĠĠĠ", "Ġ\"", "FG", "\",", "ĊĠĠĠ", "Ġ\"", "TA", "\",", "ĊĠĠĠ", "Ġ\"", "WH", "\",", "ĊĠĠĠ", "Ġ\"", "PM", "\",", "ĊĠĠĠ", "Ġ\"", "RI", "\",", "ĊĠĠĠ", "Ġ\"", "LR", "\",", "ĊĠĠĠ", "Ġ\"", "JR", "\",", "ĊĠĠĠ", "Ġ\"", "RS", "\",", "ĊĠĠĠ", "Ġ\"", "OI", "\",", "ĊĠĠĠ", "Ġ\"", "RM", "\",", "ĊĠĠĠ", "Ġ\"", "SF", "\",", "ĊĠĠĠ", "Ġ\"", "SM", "\",", "ĊĠĠĠ", "Ġ\"", "MA", "\",", "ĊĠĠĠ", "Ġ\"", "WT", "\",", "ĊĠĠĠ", "Ġ\"", "WS", "\",", "ĊĠĠĠ", "Ġ\"", "RO", "\",", "ĊĠĠĠ", "Ġ\"", "ER", "\",", "ĊĠĠĠ", "Ġ\"", "ME", "\",", "ĊĠĠĠ", "Ġ\"", "TC", "\",", "Ċ", "}", "Ċ", "#", "Ġ大", "åķĨ", "æīĢ", "Ċ", "PRODUCT", "S", "_", "D", "CE", "Ġ=", "Ġ{\"", "m", "\",", "Ġ\"", "y", "\",", "Ġ\"", "a", "\",", "Ġ\"", "b", "\",", "Ġ\"", "p", "\",", "Ġ\"", "c", "\",", "Ġ\"", "cs", "\",", "Ġ\"", "jd", "\",", "Ġ\"", "fb", "\",", "Ġ\"", "bb", "\",", "Ġ\"", "l", "\",", "Ġ\"", "v", "\",", "Ġ\"", "pp", "\",", "Ġ\"", "j", "\",", "Ġ\"", "jm", "\",", "Ġ\"", "i", "\"}", "Ċ", "Ċ", "EX", "CHANG", "ES", "_", "wind", "_", "code", "_", "x", "api", "Ġ=", "Ġ{", "ĊĠĠĠ", "Ġ\"", "C", "FE", "\":", "Ġ\"", "C", "FF", "EX", "\",", "ĊĠĠĠ", "Ġ\"", "SH", "F", "\":", "Ġ\"", "SH", "FE", "\",", "ĊĠĠĠ", "Ġ\"", "CZ", "C", "\":", "Ġ\"", "CZ", "CE", "\",", "ĊĠĠĠ", "Ġ\"", "D", "CE", "\":", "Ġ\"", "D", "CE", "\",", "ĊĠĠĠ", "Ġ\"", "SH", "\":", "Ġ\"", "SSE", "\",", "ĊĠĠĠ", "Ġ\"", "SZ", "\":", "Ġ\"", "SZ", "SE", "\",", "Ċ", "}", "Ċ", "Ċ", "EX", "CHANG", "ES", "_", "x", "api", "_", "wind", "_", "code", "Ġ=", "Ġdict", "((", "v", ",", "Ġk", ")", "Ġfor", "Ġk", ",", "Ġv", "Ġin", "ĠEX", "CHANG", "ES", "_", "wind", "_", "code", "_", "x", "api", ".", "items", "())", "ĊĊ", "Ċ", "def", "Ġproduct", "_", "to", "_", "exchange", "(", "product", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġå°Ĩ", "åIJĪ", "约", "产åĵģ", "çłģ", "转", "æĪIJ", "交æĺĵ", "æīĢ", "ĊĠĠĠ", "Ġ:", "param", "Ġproduct", ":", "ĊĠĠĠ", "Ġ:", "return", ":", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "ĠPRODUCT", "_", "Ġ=", "Ġproduct", ".", "upper", "()", "ĊĠĠĠ", "Ġif", "ĠPRODUCT", "_", "Ġin", "ĠPRODUCT", "S", "_", "C", "FF", "EX", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "C", "FF", "EX", "\"", "ĊĠĠĠ", "Ġif", "ĠPRODUCT", "_", "Ġin", "ĠPRODUCT", "S", "_", "CZ", "CE", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "CZ", "CE", "\"", "ĊĠĠĠ", "Ġproduct", "_", "Ġ=", "Ġproduct", ".", "lower", "()", "ĊĠĠĠ", "Ġif", "Ġproduct", "_", "Ġin", "ĠPRODUCT", "S", "_", "SH", "FE", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "SH", "FE", "\"", "ĊĠĠĠ", "Ġif", "Ġproduct", "_", "Ġin", "ĠPRODUCT", "S", "_", "D", "CE", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ\"", "D", "CE", "\"", "ĊĠĠĠ", "Ġreturn", "Ġ\"", "Unknown", "\"", "ĊĊ", "Ċ", "def", "Ġis", "_", "sh", "fe", "(", "product", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġæĺ¯åIJ¦", "ä¸Ĭ", "æľŁ", "æīĢ", "ĊĠĠĠ", "Ġ", "å¤ļ", "æ·»åĬł", "æŃ¤", "åĩ½æķ°", "çļĦ", "主è¦ģ", "åİŁåĽł", "æĺ¯", "ä¸Ĭ", "æľŁ", "æīĢ", "éľĢè¦ģ", "åĮº", "åĪĨ", "å¹³", "ä»Ĭ", "ä¸İ", "å¹³", "æĺ", "¨", "ĊĠĠĠ", "Ġ:", "param", "Ġproduct", ":", "ĊĠĠĠ", "Ġ:", "return", ":", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġproduct", "_", "Ġ=", "Ġproduct", ".", "lower", "()", "ĊĠĠĠ", "Ġreturn", "Ġproduct", "_", "Ġin", "ĠPRODUCT", "S", "_", "SH", "FE", "ĊĊ", "Ċ", "def", "Ġget", "_", "product", "(", "symbol", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġä»İ", "åIJĪ", "约", "åIJį", "ä¸Ń", "æıIJ", "åıĸ", "产åĵģ", "åIJį", "ĊĠĠĠ", "Ġ:", "param", "Ġsymbol", ":", "ĊĠĠĠ", "Ġ:", "return", ":", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġpattern", "Ġ=", "Ġre", ".", "compile", "(", "r", "\"", "(\\", "D", "{", "1", ",", "2", "})", "(\\", "d", "{", "0", ",", "1", "})", "(\\", "d", "{", "3", "})", "\")", "ĊĠĠĠ", "Ġmatch", "Ġ=", "Ġpattern", ".", "match", "(", "symbol", ")", "ĊĠĠĠ", "Ġif", "Ġmatch", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġmatch", ".", "expand", "(", "r", "\"\\", "g", "<", "1", ">\")", "ĊĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġsymbol", "ĊĊ", "Ċ", "def", "Ġget", "_", "exchange", "(", "symbol", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġä»İ", "带", ".", "çļĦ", "åIJĪ", "约", "åIJį", "ä¸Ń", "æıIJ", "åıĸ", "交æĺĵ", "æīĢ", "ĊĠĠĠ", "Ġ:", "param", "Ġsymbol", ":", "ĊĠĠĠ", "Ġ:", "return", ":", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġpattern", "Ġ=", "Ġre", ".", "compile", "(", "r", "\"", "(\\", ".", ")(", "\\", "D", "{", "1", ",", "4", "})", "\")", "ĊĠĠĠ", "Ġmatch", "Ġ=", "Ġpattern", ".", "match", "(", "symbol", ")", "ĊĠĠĠ", "Ġif", "Ġmatch", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġmatch", ".", "expand", "(", "r", "\"\\", "g", "<", "2", ">\")", "ĊĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġsymbol", "ĊĊ", "Ċ", "if", "Ġ__", "name", "__", "Ġ==", "Ġ\"__", "main", "__\":", "ĊĠĠĠ", "Ġimport", "Ġpandas", "Ġas", "Ġpd", "ĊĊĠĠĠ", "Ġdf", "Ġ=", "Ġpd", ".", "DataFrame", "({\"", "Symbol", "\":", "Ġ[\"", "IF", "1", "6", "0", "3", "\",", "Ġ\"", "rb", "1", "7", "0", "8", "\",", "Ġ\"", "6", "0", "0", "0", "0", "0", "\"]", "})", "ĊĠĠĠ", "Ġdf", "[\"", "Is", "SH", "FE", "\"]", "Ġ=", "Ġlist", "(", "map", "(", "is", "_", "sh", "fe", ",", "Ġmap", "(", "get", "_", "product", ",", "Ġdf", "[\"", "Symbol", "\"]", ")))", "ĊĊĠĠĠ", "Ġdf", "[\"", "product", "\"]", "Ġ=", "Ġlist", "(", "map", "(", "get", "_", "product", ",", "Ġdf", "[\"", "Symbol", "\"]))", "ĊĠĠĠ", "Ġdf", "[\"", "Is", "SH", "FE", "\"]", "Ġ=", "Ġlist", "(", "map", "(", "is", "_", "sh", "fe", ",", "Ġdf", "[\"", "product", "\"]))", "ĊĠĠĠ", "Ġprint", "(", "df", ")", "ĊĠĠĠ", "Ġprint", "(", "get", "_", "product", "(\"", "IF", "1", "4", "0", "6", "\"))", "ĊĠĠĠ", "Ġprint", "(", "EX", "CHANG", "ES", "_", "wind", "_", "code", "_", "x", "api", ".", "get", "(\"", "SH", "\"))", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 7, 7, 7, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 22, 22, 22, 22, 23, 23, 23, 23, 24, 24, 24, 24, 25, 25, 25, 25, 26, 26, 26, 26, 27, 27, 27, 27, 28, 28, 28, 28, 29, 29, 29, 29, 30, 30, 30, 30, 31, 31, 31, 31, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 35, 35, 35, 35, 36, 36, 36, 36, 37, 37, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 57, 57, 57, 57, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 71, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 73, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 77, 77, 77, 77, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 82, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 87, 87, 87, 87, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 91, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 94, 94, 94, 96, 97, 97, 97, 97, 97, 97, 97, 97, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 101, 101, 101, 101, 102, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 105, 105, 105, 105, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 107, 107, 107, 108, 108, 108, 110, 111, 111, 111, 111, 111, 111, 111, 111, 111, 112, 112, 112, 112, 112, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 119, 119, 119, 119, 119, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121 ]
[ 1, 4, 7, 8, 11, 12, 15, 22, 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 4, 1, 3, 4, 5, 6, 8, 9, 10, 11, 13, 1, 4, 1, 1, 7, 10, 1, 1, 2, 4, 5, 6, 1, 8, 9, 10, 12, 14, 16, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95, 97, 99, 101, 1, 2, 4, 5, 6, 1, 8, 9, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 39, 41, 43, 45, 47, 1, 2, 3, 3, 4, 5, 6, 1, 8, 9, 10, 12, 14, 16, 18, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 4, 6, 8, 10, 1, 2, 1, 2, 4, 5, 6, 1, 8, 9, 10, 11, 13, 15, 18, 19, 21, 23, 24, 26, 28, 29, 31, 33, 34, 36, 38, 39, 41, 43, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 73, 75, 77, 78, 80, 82, 84, 86, 88, 89, 91, 93, 95, 97, 99, 100, 102, 1, 1, 3, 8, 10, 11, 15, 16, 20, 21, 22, 25, 27, 29, 4, 6, 7, 9, 11, 13, 14, 16, 18, 20, 4, 6, 8, 9, 11, 13, 15, 17, 19, 4, 6, 8, 9, 11, 13, 15, 17, 19, 4, 6, 7, 9, 11, 13, 14, 16, 18, 4, 6, 8, 10, 12, 15, 17, 4, 6, 8, 10, 12, 14, 16, 18, 1, 2, 1, 1, 3, 8, 10, 11, 12, 15, 16, 20, 21, 25, 27, 32, 34, 35, 36, 38, 39, 43, 45, 46, 48, 51, 54, 59, 61, 62, 66, 67, 71, 72, 73, 76, 77, 82, 85, 1, 1, 4, 12, 13, 15, 16, 24, 25, 32, 34, 4, 8, 4, 6, 7, 8, 10, 11, 12, 13, 15, 16, 4, 6, 11, 19, 20, 4, 6, 12, 13, 4, 8, 4, 12, 13, 15, 23, 24, 29, 31, 4, 7, 15, 16, 19, 27, 28, 29, 30, 32, 34, 35, 8, 15, 17, 18, 20, 22, 23, 4, 7, 15, 16, 19, 27, 28, 29, 31, 33, 34, 8, 15, 17, 19, 21, 22, 4, 12, 13, 15, 23, 24, 29, 31, 4, 7, 15, 16, 19, 27, 28, 29, 31, 33, 34, 8, 15, 17, 19, 21, 22, 4, 7, 15, 16, 19, 27, 28, 29, 30, 32, 33, 8, 15, 17, 18, 20, 21, 4, 11, 13, 20, 21, 1, 1, 4, 7, 8, 10, 12, 13, 20, 22, 4, 8, 4, 7, 8, 9, 10, 4, 5, 6, 8, 9, 11, 12, 14, 16, 17, 18, 19, 20, 22, 23, 24, 25, 26, 27, 28, 28, 29, 4, 6, 11, 19, 20, 4, 6, 12, 13, 4, 8, 4, 12, 13, 15, 23, 24, 29, 31, 4, 11, 19, 20, 23, 31, 32, 33, 35, 37, 1, 1, 4, 8, 9, 16, 17, 23, 25, 4, 8, 4, 6, 7, 8, 9, 10, 11, 12, 14, 15, 4, 6, 11, 18, 19, 4, 6, 12, 13, 4, 8, 4, 12, 14, 17, 18, 25, 26, 27, 28, 30, 31, 32, 33, 34, 35, 37, 39, 40, 41, 42, 43, 44, 46, 48, 49, 50, 51, 53, 55, 4, 10, 12, 20, 21, 26, 27, 33, 34, 4, 7, 13, 14, 8, 15, 21, 22, 28, 29, 30, 32, 33, 34, 35, 38, 4, 9, 10, 8, 15, 22, 1, 1, 4, 8, 9, 17, 18, 24, 26, 4, 8, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 4, 6, 11, 18, 19, 4, 6, 12, 13, 4, 8, 4, 12, 14, 17, 18, 25, 26, 27, 28, 30, 31, 33, 34, 35, 36, 37, 38, 39, 41, 43, 4, 10, 12, 20, 21, 26, 27, 33, 34, 4, 7, 13, 14, 8, 15, 21, 22, 28, 29, 30, 32, 33, 34, 35, 38, 4, 9, 10, 8, 15, 22, 1, 1, 3, 6, 10, 12, 15, 19, 23, 27, 4, 11, 18, 21, 24, 4, 7, 9, 12, 13, 22, 25, 31, 33, 36, 38, 39, 40, 41, 42, 44, 46, 48, 49, 50, 51, 52, 54, 56, 57, 58, 59, 60, 61, 62, 64, 66, 4, 7, 9, 11, 13, 15, 17, 19, 24, 25, 28, 29, 31, 32, 34, 36, 37, 41, 42, 45, 46, 53, 54, 57, 59, 65, 67, 70, 4, 7, 9, 16, 18, 20, 25, 26, 29, 30, 33, 34, 41, 42, 45, 47, 53, 57, 4, 7, 9, 11, 13, 15, 17, 19, 24, 25, 28, 29, 31, 32, 34, 36, 37, 40, 42, 49, 53, 4, 10, 11, 13, 14, 4, 10, 11, 14, 15, 22, 24, 26, 27, 28, 29, 30, 33, 4, 10, 11, 13, 18, 20, 21, 25, 26, 30, 31, 32, 35, 36, 39, 41, 43, 46 ]
58aa72588357b18ab42391dfffbf2a1b66589edd
# pyOCD debugger # Copyright (c) 2006-2013,2018 Arm Limited # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from ..family.target_kinetis import Kinetis from ..family.flash_kinetis import Flash_Kinetis from ...core.memory_map import FlashRegion, RamRegion, MemoryMap from ...debug.svd.loader import SVDFile FLASH_ALGO = { "load_address": 0x20000000, "instructions": [ 0xE00ABE00, 0x062D780D, 0x24084068, 0xD3000040, 0x1E644058, 0x1C49D1FA, 0x2A001E52, 0x4770D1F2, 0x09032200, 0xD373428B, 0x428B0A03, 0x0B03D358, 0xD33C428B, 0x428B0C03, 0xE012D321, 0x430B4603, 0x2200D47F, 0x428B0843, 0x0903D374, 0xD35F428B, 0x428B0A03, 0x0B03D344, 0xD328428B, 0x428B0C03, 0x22FFD30D, 0xBA120209, 0x428B0C03, 0x1212D302, 0xD0650209, 0x428B0B03, 0xE000D319, 0x0BC30A09, 0xD301428B, 0x1AC003CB, 0x0B834152, 0xD301428B, 0x1AC0038B, 0x0B434152, 0xD301428B, 0x1AC0034B, 0x0B034152, 0xD301428B, 0x1AC0030B, 0x0AC34152, 0xD301428B, 0x1AC002CB, 0x0A834152, 0xD301428B, 0x1AC0028B, 0x0A434152, 0xD301428B, 0x1AC0024B, 0x0A034152, 0xD301428B, 0x1AC0020B, 0xD2CD4152, 0x428B09C3, 0x01CBD301, 0x41521AC0, 0x428B0983, 0x018BD301, 0x41521AC0, 0x428B0943, 0x014BD301, 0x41521AC0, 0x428B0903, 0x010BD301, 0x41521AC0, 0x428B08C3, 0x00CBD301, 0x41521AC0, 0x428B0883, 0x008BD301, 0x41521AC0, 0x428B0843, 0x004BD301, 0x41521AC0, 0xD2001A41, 0x41524601, 0x47704610, 0x0FCAE05D, 0x4249D000, 0xD3001003, 0x40534240, 0x469C2200, 0x428B0903, 0x0A03D32D, 0xD312428B, 0x018922FC, 0x0A03BA12, 0xD30C428B, 0x11920189, 0xD308428B, 0x11920189, 0xD304428B, 0xD03A0189, 0xE0001192, 0x09C30989, 0xD301428B, 0x1AC001CB, 0x09834152, 0xD301428B, 0x1AC0018B, 0x09434152, 0xD301428B, 0x1AC0014B, 0x09034152, 0xD301428B, 0x1AC0010B, 0x08C34152, 0xD301428B, 0x1AC000CB, 0x08834152, 0xD301428B, 0x1AC0008B, 0xD2D94152, 0x428B0843, 0x004BD301, 0x41521AC0, 0xD2001A41, 0x46634601, 0x105B4152, 0xD3014610, 0x2B004240, 0x4249D500, 0x46634770, 0xD300105B, 0xB5014240, 0x46C02000, 0xBD0246C0, 0xB510480A, 0x44484908, 0xF8FCF000, 0xD1042800, 0x21004806, 0xF0004448, 0x4A05F9C9, 0x230168D1, 0x4319029B, 0xBD1060D1, 0x6B65666B, 0x00000004, 0xF0003000, 0x4C0CB570, 0x444C4605, 0x4B0B4601, 0x68E24620, 0xF8A4F000, 0xD1052800, 0x46292300, 0x68E24620, 0xF96EF000, 0x68CA4905, 0x029B2301, 0x60CA431A, 0x0000BD70, 0x00000004, 0x6B65666B, 0xF0003000, 0x4809B510, 0x81C14907, 0x81C14908, 0x08498801, 0x80010049, 0x44484806, 0xF8F2F000, 0xD0002800, 0xBD102001, 0x0000C520, 0x40052000, 0x0000D928, 0x00000004, 0x460CB570, 0x4606460B, 0x480D4601, 0x4615B084, 0xF0004448, 0x2800F903, 0x9001D10A, 0x21019002, 0x91004807, 0x4622462B, 0x44484631, 0xF978F000, 0x68CA4904, 0x029B2301, 0x60CA431A, 0xBD70B004, 0x00000004, 0xF0003000, 0x47702000, 0xD0082800, 0xD802290F, 0xD1042A04, 0x2913E005, 0x2A08D801, 0x2004D001, 0x20004770, 0x28004770, 0x2004D101, 0xB4104770, 0x460C1E5B, 0xD101421C, 0xD002421A, 0x2065BC10, 0x68034770, 0xD804428B, 0x18896840, 0x42881818, 0xBC10D202, 0x47702066, 0x2000BC10, 0x00004770, 0x42884903, 0x206BD001, 0x20004770, 0x00004770, 0x6B65666B, 0x2170480A, 0x21807001, 0x78017001, 0xD5FC0609, 0x06817800, 0x2067D501, 0x06C14770, 0x2068D501, 0x07C04770, 0x2069D0FC, 0x00004770, 0x40020000, 0x4605B5F8, 0x460C4616, 0xF7FF4618, 0x2800FFD7, 0x2304D12B, 0x46214632, 0xF7FF4628, 0x0007FFB2, 0x19A6D123, 0x68E91E76, 0x91004630, 0xFE2CF7FF, 0xD0032900, 0x1C409E00, 0x1E764346, 0xD81342B4, 0x4478480A, 0x60046800, 0x20094909, 0xF7FF71C8, 0x4607FFBF, 0x280069A8, 0x4780D000, 0xD1032F00, 0x190468E8, 0xD9EB42B4, 0xBDF84638, 0x0000027A, 0x40020000, 0x4604B510, 0xF7FF4608, 0x2800FF9F, 0x2C00D106, 0x4904D005, 0x71C82044, 0xFFA0F7FF, 0x2004BD10, 0x0000BD10, 0x40020000, 0xD00C2800, 0xD00A2A00, 0xD21A2908, 0x447B000B, 0x18DB791B, 0x0705449F, 0x0D0B0907, 0x2004110F, 0x68C04770, 0x6840E00A, 0x6880E008, 0x6800E006, 0x2001E004, 0x6900E002, 0x6940E000, 0x20006010, 0x206A4770, 0x00004770, 0xD00A2800, 0x68C9490F, 0x0E094A0F, 0x447A0049, 0x03095A51, 0x2064D103, 0x20044770, 0xB4104770, 0x60032300, 0x21016041, 0x02896081, 0x490760C1, 0x158A7A0C, 0x610240A2, 0x61837AC9, 0xBC106141, 0x47704618, 0x40048040, 0x000001AA, 0x40020020, 0xD1012A00, 0x47702004, 0x461CB5FF, 0x4615B081, 0x2304460E, 0x98014622, 0xFF19F7FF, 0xD1190007, 0xD0162C00, 0x4478480C, 0x600E6801, 0x6800CD02, 0x490A6041, 0x71C82006, 0xFF30F7FF, 0x98014607, 0x28006980, 0x4780D000, 0xD1022F00, 0x1F241D36, 0x4638D1E8, 0xBDF0B005, 0x00000162, 0x40020000, 0xD0022800, 0x20006181, 0x20044770, 0x00004770, 0xB081B5FF, 0x460E4614, 0x23044605, 0xFEE7F7FF, 0xD12A2800, 0x686868A9, 0xFD64F7FF, 0x42719000, 0x40014240, 0x42B7424F, 0x9800D101, 0x2C00183F, 0x1BBDD01A, 0xD90042A5, 0x490D4625, 0x447908A8, 0x600E6809, 0x2201490B, 0x0A0271CA, 0x728872CA, 0x72489804, 0xFEEAF7FF, 0xD1062800, 0x1B649800, 0x183F1976, 0xD1E42C00, 0xB0052000, 0x0000BDF0, 0x000000DA, 0x40020000, 0xD1012800, 0x47702004, 0x4803B510, 0x71C22240, 0xF7FF7181, 0xBD10FECF, 0x40020000, 0xD1012B00, 0x47702004, 0x461CB5F8, 0x460E4615, 0x9F082304, 0xFE99F7FF, 0xD1192800, 0xD0172D00, 0x447A4A0F, 0x60066810, 0x2102480E, 0x990671C1, 0x681172C1, 0x60886820, 0xFEAEF7FF, 0xD0082800, 0x29009907, 0x600ED000, 0xD0012F00, 0x60392100, 0x1F2DBDF8, 0x1D361D24, 0xD1E12D00, 0x0000BDF8, 0x00000062, 0x40020000, 0x00040002, 0x00080000, 0x00100000, 0x00200000, 0x00400000, 0x00000000, 0x00000000, 0x00200000, 0x40020004, 0x00000000, ], "pc_init": 0x2000027D, "pc_unInit": 0x200002F9, "pc_program_page": 0x200002B1, "pc_erase_sector": 0x2000023D, "pc_eraseAll": 0x20000209, "static_base": 0x20000000 + 0x00000020 + 0x0000063C, "begin_stack": 0x20000000 + 0x00000800, "begin_data": 0x20000000 + 0x00000A00, "page_buffers": [0x20000A00, 0x20001200], # Enable double buffering "min_program_length": 4, "analyzer_supported": True, "analyzer_address": 0x1FFFF800, } class KV11Z7(Kinetis): MEMORY_MAP = MemoryMap( FlashRegion(start=0, length=0x20000, blocksize=0x400, is_boot_memory=True, algo=FLASH_ALGO, flash_class=Flash_Kinetis), RamRegion(start=0x1FFFF000, length=0x4000), ) def __init__(self, session): super(KV11Z7, self).__init__(session, self.MEMORY_MAP) self._svd_location = SVDFile.from_builtin("MKV11Z7.svd")
[ 40, 3643, 84, 4778, 25856, 222, 40, 2657, 327, 104, 46, 244, 55, 53, 53, 59, 50, 55, 53, 54, 56, 49, 55, 53, 54, 61, 29009, 30980, 222, 40, 18769, 50, 3801, 50, 5551, 63, 3954, 50, 55, 51, 53, 222, 40, 222, 40, 4773, 1549, 341, 3954, 1196, 49, 3050, 244, 55, 51, 53, 327, 1402, 332, 3801, 742, 222, 40, 863, 1648, 666, 813, 477, 822, 2959, 347, 4960, 642, 341, 1196, 51, 222, 40, 2469, 1648, 4245, 331, 1948, 451, 341, 1196, 840, 222, 40, 222, 40, 281, 1930, 574, 1516, 51, 2121, 51, 1107, 52, 4205, 52, 4106, 50, 55, 51, 53, 222, 40, 222, 40, 5416, 2147, 829, 4568, 4940, 575, 5129, 391, 347, 4144, 49, 2951, 222, 40, 2744, 1549, 341, 1196, 458, 2744, 563, 619, 332, 1117, 2771, 39, 5128, 49, 222, 40, 4213, 3912, 1895, 5186, 2258, 2979, 4489, 49, 3173, 3927, 575, 4506, 51, 222, 40, 2819, 341, 1196, 456, 341, 2835, 2940, 5139, 4243, 480, 222, 40, 5191, 1549, 341, 1196, 51, 222, 222, 1097, 4390, 5082, 51, 2000, 100, 10503, 383, 316, 1220, 1242, 13256, 316, 222, 1097, 4390, 5082, 51, 9243, 100, 10503, 383, 316, 1220, 25027, 100, 80, 13256, 316, 222, 1097, 2437, 1284, 51, 5581, 100, 1130, 1220, 25027, 6071, 49, 40860, 6071, 49, 11366, 1225, 222, 1097, 2437, 2824, 51, 33607, 51, 4579, 1220, 12803, 73, 991, 222, 222, 30693, 100, 744, 7001, 299, 320, 303, 332, 963, 100, 2485, 582, 244, 53, 125, 55, 53, 53, 53, 53, 53, 53, 53, 49, 303, 332, 20126, 582, 447, 295, 53, 5963, 53, 53, 1336, 74, 53, 53, 49, 295, 53, 125, 53, 59, 55, 73, 60, 61, 53, 73, 49, 295, 53, 125, 55, 57, 53, 61, 57, 53, 59, 61, 49, 295, 53, 9585, 56, 53, 53, 53, 53, 57, 53, 49, 295, 53, 125, 54, 74, 59, 57, 57, 53, 58, 61, 49, 295, 53, 125, 54, 72, 57, 62, 73, 54, 1867, 49, 295, 53, 125, 55, 70, 53, 53, 54, 74, 58, 55, 49, 295, 53, 125, 57, 60, 60, 53, 73, 54, 75, 55, 49, 295, 53, 125, 53, 62, 53, 56, 55, 55, 53, 53, 49, 295, 53, 9585, 56, 60, 56, 57, 55, 61, 71, 49, 295, 53, 125, 57, 55, 61, 71, 53, 70, 53, 56, 49, 295, 53, 125, 53, 71, 53, 56, 73, 56, 58, 61, 49, 295, 53, 9585, 56, 56, 72, 57, 55, 61, 71, 49, 295, 53, 125, 57, 55, 61, 71, 53, 72, 53, 56, 49, 295, 53, 5963, 53, 54, 55, 73, 56, 55, 54, 49, 295, 53, 125, 57, 56, 53, 71, 57, 59, 53, 56, 49, 295, 53, 125, 55, 55, 53, 53, 73, 57, 60, 75, 49, 295, 53, 125, 57, 55, 61, 71, 53, 61, 57, 56, 49, 295, 53, 125, 53, 62, 53, 56, 73, 56, 60, 57, 49, 295, 53, 9585, 56, 58, 75, 57, 55, 61, 71, 49, 295, 53, 125, 57, 55, 61, 71, 53, 70, 53, 56, 49, 295, 53, 125, 53, 71, 53, 56, 73, 56, 57, 57, 49, 295, 53, 9585, 56, 55, 61, 57, 55, 61, 71, 49, 295, 53, 125, 57, 55, 61, 71, 53, 72, 53, 56, 49, 295, 53, 125, 55, 55, 41367, 56, 53, 73, 49, 295, 53, 48936, 54, 55, 53, 55, 53, 62, 49, 295, 53, 125, 57, 55, 61, 71, 53, 72, 53, 56, 49, 295, 53, 125, 54, 55, 54, 55, 73, 56, 53, 55, 49, 295, 53, 9585, 53, 59, 58, 53, 55, 53, 62, 49, 295, 53, 125, 57, 55, 61, 71, 53, 71, 53, 56, 49, 295, 53, 5963, 53, 53, 53, 73, 56, 54, 62, 49, 295, 53, 125, 53, 6705, 56, 53, 70, 53, 62, 49, 295, 53, 9585, 56, 53, 54, 57, 55, 61, 71, 49, 295, 53, 125, 54, 1205, 53, 53, 56, 5442, 49, 295, 53, 125, 53, 71, 61, 56, 57, 54, 58, 55, 49, 295, 53, 9585, 56, 53, 54, 57, 55, 61, 71, 49, 295, 53, 125, 54, 1205, 53, 53, 56, 61, 71, 49, 295, 53, 125, 53, 71, 57, 56, 57, 54, 58, 55, 49, 295, 53, 9585, 56, 53, 54, 57, 55, 61, 71, 49, 295, 53, 125, 54, 1205, 53, 53, 56, 57, 71, 49, 295, 53, 125, 53, 71, 53, 56, 57, 54, 58, 55, 49, 295, 53, 9585, 56, 53, 54, 57, 55, 61, 71, 49, 295, 53, 125, 54, 1205, 53, 53, 56, 53, 71, 49, 295, 53, 125, 53, 1205, 56, 57, 54, 58, 55, 49, 295, 53, 9585, 56, 53, 54, 57, 55, 61, 71, 49, 295, 53, 125, 54, 1205, 53, 53, 55, 5442, 49, 295, 53, 125, 53, 70, 61, 56, 57, 54, 58, 55, 49, 295, 53, 9585, 56, 53, 54, 57, 55, 61, 71, 49, 295, 53, 125, 54, 1205, 53, 53, 55, 61, 71, 49, 295, 53, 125, 53, 70, 57, 56, 57, 54, 58, 55, 49, 295, 53, 9585, 56, 53, 54, 57, 55, 61, 71, 49, 295, 53, 125, 54, 1205, 53, 53, 55, 57, 71, 49, 295, 53, 125, 53, 70, 53, 56, 57, 54, 58, 55, 49, 295, 53, 9585, 56, 53, 54, 57, 55, 61, 71, 49, 295, 53, 125, 54, 1205, 53, 53, 55, 53, 71, 49, 295, 53, 9585, 55, 4778, 57, 54, 58, 55, 49, 295, 53, 125, 57, 55, 61, 71, 53, 62, 72, 56, 49, 295, 53, 125, 53, 54, 5442, 73, 56, 53, 54, 49, 295, 53, 125, 57, 54, 58, 55, 54, 1205, 53, 49, 295, 53, 125, 57, 55, 61, 71, 53, 62, 61, 56, 49, 295, 53, 125, 53, 54, 61, 7664, 56, 53, 54, 49, 295, 53, 125, 57, 54, 58, 55, 54, 1205, 53, 49, 295, 53, 125, 57, 55, 61, 71, 53, 62, 57, 56, 49, 295, 53, 125, 53, 54, 57, 7664, 56, 53, 54, 49, 295, 53, 125, 57, 54, 58, 55, 54, 1205, 53, 49, 295, 53, 125, 57, 55, 61, 71, 53, 62, 53, 56, 49, 295, 53, 125, 53, 54, 53, 7664, 56, 53, 54, 49, 295, 53, 125, 57, 54, 58, 55, 54, 1205, 53, 49, 295, 53, 125, 57, 55, 61, 71, 53, 61, 72, 56, 49, 295, 53, 125, 53, 53, 5442, 73, 56, 53, 54, 49, 295, 53, 125, 57, 54, 58, 55, 54, 1205, 53, 49, 295, 53, 125, 57, 55, 61, 71, 53, 61, 61, 56, 49, 295, 53, 125, 53, 53, 61, 7664, 56, 53, 54, 49, 295, 53, 125, 57, 54, 58, 55, 54, 1205, 53, 49, 295, 53, 125, 57, 55, 61, 71, 53, 61, 57, 56, 49, 295, 53, 125, 53, 53, 57, 7664, 56, 53, 54, 49, 295, 53, 125, 57, 54, 58, 55, 54, 1205, 53, 49, 295, 53, 9585, 55, 53, 53, 54, 70, 57, 54, 49, 295, 53, 125, 57, 54, 58, 55, 57, 59, 53, 54, 49, 295, 53, 125, 57, 60, 60, 53, 57, 59, 54, 53, 49, 295, 53, 125, 53, 75, 4035, 74, 53, 58, 73, 49, 295, 53, 125, 57, 55, 57, 62, 73, 53, 53, 53, 49, 295, 53, 9585, 56, 53, 53, 54, 53, 53, 56, 49, 295, 53, 125, 57, 53, 58, 56, 57, 55, 57, 53, 49, 295, 53, 125, 57, 59, 62, 72, 55, 55, 53, 53, 49, 295, 53, 125, 57, 55, 61, 71, 53, 62, 53, 56, 49, 295, 53, 125, 53, 70, 53, 56, 73, 56, 55, 73, 49, 295, 53, 9585, 56, 54, 55, 57, 55, 61, 71, 49, 295, 53, 125, 53, 54, 61, 62, 55, 55, 5315, 49, 295, 53, 125, 53, 70, 53, 56, 6807, 54, 55, 49, 295, 53, 9585, 56, 53, 72, 57, 55, 61, 71, 49, 295, 53, 125, 54, 54, 62, 55, 53, 54, 61, 62, 49, 295, 53, 9585, 56, 53, 61, 57, 55, 61, 71, 49, 295, 53, 125, 54, 54, 62, 55, 53, 54, 61, 62, 49, 295, 53, 9585, 56, 53, 57, 57, 55, 61, 71, 49, 295, 53, 9585, 53, 56, 70, 53, 54, 61, 62, 49, 295, 53, 5963, 53, 53, 53, 54, 54, 62, 55, 49, 295, 53, 125, 53, 62, 72, 56, 53, 62, 61, 62, 49, 295, 53, 9585, 56, 53, 54, 57, 55, 61, 71, 49, 295, 53, 125, 54, 1205, 53, 53, 54, 5442, 49, 295, 53, 125, 53, 62, 61, 56, 57, 54, 58, 55, 49, 295, 53, 9585, 56, 53, 54, 57, 55, 61, 71, 49, 295, 53, 125, 54, 1205, 53, 53, 54, 61, 71, 49, 295, 53, 125, 53, 62, 57, 56, 57, 54, 58, 55, 49, 295, 53, 9585, 56, 53, 54, 57, 55, 61, 71, 49, 295, 53, 125, 54, 1205, 53, 53, 54, 57, 71, 49, 295, 53, 125, 53, 62, 53, 56, 57, 54, 58, 55, 49, 295, 53, 9585, 56, 53, 54, 57, 55, 61, 71, 49, 295, 53, 125, 54, 1205, 53, 53, 54, 53, 71, 49, 295, 53, 125, 53, 61, 72, 56, 57, 54, 58, 55, 49, 295, 53, 9585, 56, 53, 54, 57, 55, 61, 71, 49, 295, 53, 125, 54, 1205, 53, 53, 53, 5442, 49, 295, 53, 125, 53, 61, 61, 56, 57, 54, 58, 55, 49, 295, 53, 9585, 56, 53, 54, 57, 55, 61, 71, 49, 295, 53, 125, 54, 1205, 53, 53, 53, 61, 71, 49, 295, 53, 9585, 55, 73, 62, 57, 54, 58, 55, 49, 295, 53, 125, 57, 55, 61, 71, 53, 61, 57, 56, 49, 295, 53, 125, 53, 53, 57, 7664, 56, 53, 54, 49, 295, 53, 125, 57, 54, 58, 55, 54, 1205, 53, 49, 295, 53, 9585, 55, 53, 53, 54, 70, 57, 54, 49, 295, 53, 125, 57, 59, 59, 56, 57, 59, 53, 54, 49, 295, 53, 125, 54, 53, 58, 71, 57, 54, 58, 55, 49, 295, 53, 9585, 56, 53, 54, 57, 59, 54, 53, 49, 295, 53, 125, 55, 71, 53, 53, 57, 55, 57, 53, 49, 295, 53, 125, 57, 55, 57, 62, 73, 58, 53, 53, 49, 295, 53, 125, 57, 59, 59, 56, 57, 60, 60, 53, 49, 295, 53, 9585, 56, 53, 53, 54, 53, 58, 71, 49, 295, 53, 8175, 58, 53, 54, 57, 55, 57, 53, 49, 295, 53, 125, 57, 59, 72, 53, 55, 53, 53, 53, 49, 295, 53, 125, 7664, 53, 55, 57, 59, 72, 53, 49, 295, 53, 8175, 58, 54, 53, 57, 61, 53, 70, 49, 295, 53, 125, 57, 57, 57, 61, 57, 62, 53, 61, 49, 295, 53, 7274, 61, 75, 4947, 53, 53, 53, 49, 295, 53, 9585, 54, 53, 57, 55, 61, 53, 53, 49, 295, 53, 125, 55, 54, 53, 53, 57, 61, 53, 59, 49, 295, 53, 7274, 53, 53, 53, 57, 57, 57, 61, 49, 295, 53, 125, 57, 70, 53, 58, 75, 62, 72, 62, 49, 295, 53, 125, 55, 56, 53, 54, 59, 61, 73, 54, 49, 295, 53, 125, 57, 56, 54, 62, 53, 55, 62, 71, 49, 295, 53, 125, 7664, 54, 53, 59, 53, 73, 54, 49, 295, 53, 125, 59, 71, 59, 58, 59, 59, 59, 71, 49, 295, 53, 125, 53, 53, 53, 53, 53, 53, 53, 57, 49, 295, 53, 7274, 53, 53, 53, 56, 53, 53, 53, 49, 295, 53, 125, 57, 72, 53, 5442, 58, 60, 53, 49, 295, 53, 125, 57, 57, 57, 72, 57, 59, 53, 58, 49, 295, 53, 125, 57, 71, 53, 71, 57, 59, 53, 54, 49, 295, 53, 125, 59, 61, 74, 55, 57, 59, 55, 53, 49, 295, 53, 7274, 61, 70, 57, 75, 53, 53, 53, 49, 295, 53, 9585, 54, 53, 58, 55, 61, 53, 53, 49, 295, 53, 125, 57, 59, 55, 62, 55, 56, 53, 53, 49, 295, 53, 125, 59, 61, 74, 55, 57, 59, 55, 53, 49, 295, 53, 7274, 62, 59, 11063, 53, 53, 53, 49, 295, 53, 125, 59, 61, 4035, 57, 62, 53, 58, 49, 295, 53, 125, 53, 55, 62, 71, 55, 56, 53, 54, 49, 295, 53, 125, 59, 53, 4035, 57, 56, 54, 70, 49, 295, 53, 125, 53, 53, 53, 53, 7664, 60, 53, 49, 295, 53, 125, 53, 53, 53, 53, 53, 53, 53, 57, 49, 295, 53, 125, 59, 71, 59, 58, 59, 59, 59, 71, 49, 295, 53, 7274, 53, 53, 53, 56, 53, 53, 53, 49, 295, 53, 125, 57, 61, 53, 62, 71, 58, 54, 53, 49, 295, 53, 125, 61, 54, 72, 54, 57, 62, 53, 60, 49, 295, 53, 125, 61, 54, 72, 54, 57, 62, 53, 61, 49, 295, 53, 125, 53, 61, 57, 62, 61, 61, 53, 54, 49, 295, 53, 125, 61, 53, 53, 54, 53, 53, 57, 62, 49, 295, 53, 125, 57, 57, 57, 61, 57, 61, 53, 59, 49, 295, 53, 7274, 61, 75, 55, 75, 53, 53, 53, 49, 295, 53, 9585, 53, 53, 53, 55, 61, 53, 53, 49, 295, 53, 125, 7664, 54, 53, 55, 53, 53, 54, 49, 295, 53, 125, 53, 53, 53, 53, 72, 58, 55, 53, 49, 295, 53, 125, 57, 53, 53, 58, 55, 53, 53, 53, 49, 295, 53, 125, 53, 53, 53, 53, 73, 62, 55, 61, 49, 295, 53, 125, 53, 53, 53, 53, 53, 53, 53, 57, 49, 295, 53, 125, 57, 59, 53, 5442, 58, 60, 53, 49, 295, 53, 125, 57, 59, 53, 59, 57, 59, 53, 71, 49, 295, 53, 125, 57, 61, 53, 73, 57, 59, 53, 54, 49, 295, 53, 125, 57, 59, 54, 58, 71, 53, 61, 57, 49, 295, 53, 7274, 53, 53, 53, 57, 57, 57, 61, 49, 295, 53, 125, 55, 61, 53, 53, 75, 62, 53, 56, 49, 295, 53, 125, 62, 53, 53, 54, 73, 54, 53, 70, 49, 295, 53, 125, 55, 54, 53, 54, 62, 53, 53, 55, 49, 295, 53, 125, 62, 54, 53, 53, 57, 61, 53, 60, 49, 295, 53, 125, 57, 59, 55, 55, 57, 59, 55, 71, 49, 295, 53, 125, 57, 57, 57, 61, 57, 59, 56, 54, 49, 295, 53, 7274, 62, 60, 61, 75, 53, 53, 53, 49, 295, 53, 125, 59, 61, 4035, 57, 62, 53, 57, 49, 295, 53, 125, 53, 55, 62, 71, 55, 56, 53, 54, 49, 295, 53, 125, 59, 53, 4035, 57, 56, 54, 70, 49, 295, 53, 125, 7664, 60, 53, 71, 53, 53, 57, 49, 295, 53, 125, 53, 53, 53, 53, 53, 53, 53, 57, 49, 295, 53, 7274, 53, 53, 53, 56, 53, 53, 53, 49, 295, 53, 125, 57, 60, 60, 53, 55, 53, 53, 53, 49, 295, 53, 9585, 53, 53, 61, 55, 61, 53, 53, 49, 295, 53, 9585, 61, 53, 55, 55, 62, 53, 75, 49, 295, 53, 9585, 54, 53, 57, 55, 70, 53, 57, 49, 295, 53, 125, 55, 62, 54, 56, 74, 53, 53, 58, 49, 295, 53, 125, 55, 70, 53, 61, 73, 61, 53, 54, 49, 295, 53, 125, 55, 53, 53, 57, 73, 53, 53, 54, 49, 295, 53, 125, 55, 53, 53, 53, 57, 60, 60, 53, 49, 295, 53, 125, 55, 61, 53, 53, 57, 60, 60, 53, 49, 295, 53, 125, 55, 53, 53, 57, 73, 54, 53, 54, 49, 295, 53, 8175, 57, 54, 53, 57, 60, 60, 53, 49, 295, 53, 125, 57, 59, 53, 72, 54, 74, 58, 71, 49, 295, 53, 9585, 54, 53, 54, 57, 55, 54, 72, 49, 295, 53, 9585, 53, 53, 55, 57, 55, 54, 70, 49, 295, 53, 125, 55, 53, 59, 58, 6705, 54, 53, 49, 295, 53, 125, 59, 61, 53, 56, 57, 60, 60, 53, 49, 295, 53, 9585, 61, 53, 57, 57, 55, 61, 71, 49, 295, 53, 125, 54, 61, 61, 62, 59, 61, 57, 53, 49, 295, 53, 125, 57, 55, 61, 61, 54, 61, 54, 61, 49, 295, 53, 48515, 54, 53, 73, 55, 53, 55, 49, 295, 53, 125, 57, 60, 60, 53, 55, 53, 59, 59, 49, 295, 53, 125, 55, 53, 53, 53, 6705, 54, 53, 49, 295, 53, 125, 53, 53, 53, 53, 57, 60, 60, 53, 49, 295, 53, 125, 57, 55, 61, 61, 57, 62, 53, 56, 49, 295, 53, 125, 55, 53, 59, 7664, 53, 53, 54, 49, 295, 53, 125, 55, 53, 53, 53, 57, 60, 60, 53, 49, 295, 53, 125, 53, 53, 53, 53, 57, 60, 60, 53, 49, 295, 53, 125, 59, 71, 59, 58, 59, 59, 59, 71, 49, 295, 53, 125, 55, 54, 60, 53, 57, 61, 53, 70, 49, 295, 53, 125, 55, 54, 61, 53, 60, 53, 53, 54, 49, 295, 53, 125, 60, 61, 53, 54, 60, 53, 53, 54, 49, 295, 53, 9585, 58, 5315, 53, 59, 53, 62, 49, 295, 53, 125, 53, 59, 61, 54, 60, 61, 53, 53, 49, 295, 53, 125, 55, 53, 59, 60, 73, 58, 53, 54, 49, 295, 53, 125, 53, 59, 72, 54, 57, 60, 60, 53, 49, 295, 53, 125, 55, 53, 59, 61, 73, 58, 53, 54, 49, 295, 53, 125, 53, 60, 72, 53, 57, 60, 60, 53, 49, 295, 53, 125, 55, 53, 59, 62, 73, 53, 5315, 49, 295, 53, 125, 53, 53, 53, 53, 57, 60, 60, 53, 49, 295, 53, 125, 57, 53, 53, 55, 53, 53, 53, 53, 49, 295, 53, 125, 57, 59, 53, 58, 71, 58, 75, 61, 49, 295, 53, 125, 57, 59, 53, 72, 57, 59, 54, 59, 49, 295, 53, 7274, 60, 1158, 57, 59, 54, 61, 49, 295, 53, 125, 55, 61, 53, 53, 41367, 60, 49, 295, 53, 125, 55, 56, 53, 57, 73, 54, 55, 71, 49, 295, 53, 125, 57, 59, 55, 54, 57, 59, 56, 55, 49, 295, 53, 7274, 60, 1158, 57, 59, 55, 61, 49, 295, 53, 125, 53, 53, 53, 60, 1158, 71, 55, 49, 295, 53, 125, 54, 62, 70, 59, 73, 54, 55, 56, 49, 295, 53, 125, 59, 61, 74, 62, 54, 74, 60, 59, 49, 295, 53, 125, 62, 54, 53, 53, 57, 59, 56, 53, 49, 295, 53, 22590, 55, 4947, 60, 1158, 49, 295, 53, 9585, 53, 53, 56, 55, 62, 53, 53, 49, 295, 53, 125, 54, 72, 57, 53, 62, 74, 53, 53, 49, 295, 53, 125, 54, 74, 60, 59, 57, 56, 57, 59, 49, 295, 53, 9585, 61, 54, 56, 57, 55, 71, 57, 49, 295, 53, 125, 57, 57, 60, 61, 57, 61, 53, 70, 49, 295, 53, 125, 59, 53, 53, 57, 59, 61, 53, 53, 49, 295, 53, 125, 55, 53, 53, 62, 57, 62, 53, 62, 49, 295, 53, 7274, 60, 1158, 60, 54, 72, 61, 49, 295, 53, 125, 57, 59, 53, 60, 1158, 8726, 49, 295, 53, 125, 55, 61, 53, 53, 59, 62, 70, 61, 49, 295, 53, 125, 57, 60, 61, 53, 73, 53, 53, 53, 49, 295, 53, 9585, 54, 53, 56, 55, 75, 53, 53, 49, 295, 53, 125, 54, 62, 53, 57, 59, 61, 74, 61, 49, 295, 53, 9585, 62, 9649, 57, 55, 71, 57, 49, 295, 53, 8175, 3720, 61, 57, 59, 56, 61, 49, 295, 53, 125, 53, 53, 53, 53, 53, 55, 60, 70, 49, 295, 53, 125, 57, 53, 53, 55, 53, 53, 53, 53, 49, 295, 53, 125, 57, 59, 53, 57, 71, 58, 54, 53, 49, 295, 53, 7274, 60, 1158, 57, 59, 53, 61, 49, 295, 53, 125, 55, 61, 53, 53, 1158, 62, 75, 49, 295, 53, 125, 55, 72, 53, 53, 73, 54, 53, 59, 49, 295, 53, 125, 57, 62, 53, 57, 73, 53, 53, 58, 49, 295, 53, 125, 60, 54, 72, 61, 55, 53, 57, 57, 49, 295, 53, 4776, 70, 53, 75, 60, 1158, 49, 295, 53, 125, 55, 53, 53, 57, 7664, 54, 53, 49, 295, 53, 125, 53, 53, 53, 53, 7664, 54, 53, 49, 295, 53, 125, 57, 53, 53, 55, 53, 53, 53, 53, 49, 295, 53, 9585, 53, 53, 72, 55, 61, 53, 53, 49, 295, 53, 9585, 53, 53, 70, 55, 70, 53, 53, 49, 295, 53, 9585, 55, 54, 70, 55, 62, 53, 61, 49, 295, 53, 125, 57, 57, 60, 71, 53, 53, 53, 71, 49, 295, 53, 125, 54, 61, 2015, 60, 62, 54, 71, 49, 295, 53, 125, 53, 60, 53, 58, 57, 57, 62, 75, 49, 295, 53, 125, 53, 73, 53, 71, 53, 62, 53, 60, 49, 295, 53, 125, 55, 53, 53, 57, 54, 54, 53, 75, 49, 295, 53, 125, 59, 61, 72, 53, 57, 60, 60, 53, 49, 295, 53, 125, 59, 61, 57, 53, 74, 53, 53, 70, 49, 295, 53, 125, 59, 61, 61, 53, 74, 53, 53, 61, 49, 295, 53, 125, 59, 61, 53, 53, 74, 53, 53, 59, 49, 295, 53, 125, 55, 53, 53, 54, 74, 53, 53, 57, 49, 295, 53, 125, 59, 62, 53, 53, 74, 53, 53, 55, 49, 295, 53, 125, 59, 62, 57, 53, 74, 53, 53, 53, 49, 295, 53, 125, 55, 53, 53, 53, 59, 53, 54, 53, 49, 295, 53, 125, 55, 53, 59, 70, 57, 60, 60, 53, 49, 295, 53, 125, 53, 53, 53, 53, 57, 60, 60, 53, 49, 295, 53, 9585, 53, 53, 70, 55, 61, 53, 53, 49, 295, 53, 125, 59, 61, 72, 62, 57, 62, 53, 75, 49, 295, 53, 125, 53, 74, 53, 62, 57, 70, 53, 75, 49, 295, 53, 125, 57, 57, 60, 70, 53, 53, 57, 62, 49, 295, 53, 125, 53, 56, 53, 62, 58, 70, 58, 54, 49, 295, 53, 125, 55, 53, 59, 57, 73, 54, 53, 56, 49, 295, 53, 125, 55, 53, 53, 57, 57, 60, 60, 53, 49, 295, 53, 8175, 57, 54, 53, 57, 60, 60, 53, 49, 295, 53, 125, 59, 53, 53, 56, 55, 56, 53, 53, 49, 295, 53, 125, 55, 54, 53, 54, 59, 53, 57, 54, 49, 295, 53, 125, 53, 55, 61, 62, 59, 53, 61, 54, 49, 295, 53, 125, 57, 62, 53, 60, 59, 53, 72, 54, 49, 295, 53, 125, 54, 58, 61, 70, 60, 70, 53, 72, 49, 295, 53, 125, 59, 54, 53, 55, 57, 53, 70, 55, 49, 295, 53, 125, 59, 54, 61, 56, 60, 1205, 62, 49, 295, 53, 48515, 54, 53, 59, 54, 57, 54, 49, 295, 53, 125, 57, 60, 60, 53, 57, 59, 54, 61, 49, 295, 53, 125, 57, 53, 53, 57, 61, 53, 57, 53, 49, 295, 53, 125, 53, 53, 53, 53, 53, 54, 2162, 49, 295, 53, 125, 57, 53, 53, 55, 53, 53, 55, 53, 49, 295, 53, 9585, 54, 53, 54, 55, 70, 53, 53, 49, 295, 53, 125, 57, 60, 60, 53, 55, 53, 53, 57, 49, 295, 53, 125, 57, 59, 54, 5442, 58, 1158, 49, 295, 53, 125, 57, 59, 54, 58, 71, 53, 61, 54, 49, 295, 53, 125, 55, 56, 53, 57, 57, 59, 53, 74, 49, 295, 53, 125, 62, 61, 53, 54, 57, 59, 55, 55, 49, 295, 53, 4776, 54, 62, 75, 60, 1158, 49, 295, 53, 9585, 54, 54, 62, 53, 53, 53, 60, 49, 295, 53, 9585, 53, 54, 59, 55, 72, 53, 53, 49, 295, 53, 125, 57, 57, 60, 61, 57, 61, 53, 72, 49, 295, 53, 125, 59, 53, 53, 74, 59, 61, 53, 54, 49, 295, 53, 125, 59, 61, 53, 53, 4778, 53, 55, 49, 295, 53, 125, 57, 62, 53, 70, 59, 53, 57, 54, 49, 295, 53, 125, 60, 54, 72, 61, 55, 53, 53, 59, 49, 295, 53, 4776, 56, 53, 75, 60, 1158, 49, 295, 53, 125, 62, 61, 53, 54, 57, 59, 53, 60, 49, 295, 53, 125, 55, 61, 53, 53, 59, 62, 61, 53, 49, 295, 53, 125, 57, 60, 61, 53, 73, 53, 53, 53, 49, 295, 53, 9585, 54, 53, 55, 55, 75, 53, 53, 49, 295, 53, 125, 54, 75, 55, 57, 54, 73, 56, 59, 49, 295, 53, 125, 57, 59, 56, 61, 73, 54, 74, 61, 49, 295, 53, 8175, 3720, 53, 71, 53, 53, 58, 49, 295, 53, 125, 53, 53, 53, 53, 53, 54, 59, 55, 49, 295, 53, 125, 57, 53, 53, 55, 53, 53, 53, 53, 49, 295, 53, 9585, 53, 53, 55, 55, 61, 53, 53, 49, 295, 53, 125, 55, 53, 53, 53, 59, 54, 61, 54, 49, 295, 53, 125, 55, 53, 53, 57, 57, 60, 60, 53, 49, 295, 53, 125, 53, 53, 53, 53, 57, 60, 60, 53, 49, 295, 53, 8175, 53, 61, 54, 71, 58, 1158, 49, 295, 53, 125, 57, 59, 53, 74, 57, 59, 54, 57, 49, 295, 53, 125, 55, 56, 53, 57, 57, 59, 53, 58, 49, 295, 53, 7274, 4171, 60, 75, 60, 1158, 49, 295, 53, 9585, 54, 55, 70, 55, 61, 53, 53, 49, 295, 53, 125, 59, 61, 59, 61, 59, 61, 70, 62, 49, 295, 53, 31514, 59, 57, 75, 60, 1158, 49, 295, 53, 125, 57, 55, 60, 54, 62, 53, 53, 53, 49, 295, 53, 125, 57, 53, 53, 54, 57, 55, 57, 53, 49, 295, 53, 125, 57, 55, 71, 60, 57, 55, 57, 75, 49, 295, 53, 125, 62, 61, 53, 53, 73, 54, 53, 54, 49, 295, 53, 125, 55, 72, 53, 53, 54, 61, 56, 75, 49, 295, 53, 125, 54, 5117, 2936, 53, 54, 70, 49, 295, 53, 9585, 62, 53, 53, 57, 55, 70, 58, 49, 295, 53, 125, 57, 62, 53, 73, 57, 59, 55, 58, 49, 295, 53, 125, 57, 57, 60, 62, 53, 61, 70, 61, 49, 295, 53, 125, 59, 53, 53, 74, 59, 61, 53, 62, 49, 295, 53, 125, 55, 55, 53, 54, 57, 62, 53, 71, 49, 295, 53, 125, 53, 70, 53, 55, 60, 54, 4035, 49, 295, 53, 125, 60, 55, 61, 61, 60, 55, 4035, 49, 295, 53, 125, 60, 55, 57, 61, 62, 61, 53, 57, 49, 295, 53, 7274, 4171, 5999, 60, 1158, 49, 295, 53, 9585, 54, 53, 59, 55, 61, 53, 53, 49, 295, 53, 125, 54, 71, 59, 57, 62, 61, 53, 53, 49, 295, 53, 125, 54, 61, 56, 75, 54, 62, 60, 59, 49, 295, 53, 9585, 54, 74, 57, 55, 72, 53, 53, 49, 295, 53, 8175, 53, 53, 58, 55, 53, 53, 53, 49, 295, 53, 125, 53, 53, 53, 53, 71, 3720, 53, 49, 295, 53, 125, 53, 53, 53, 53, 53, 53, 5472, 49, 295, 53, 125, 57, 53, 53, 55, 53, 53, 53, 53, 49, 295, 53, 9585, 54, 53, 54, 55, 61, 53, 53, 49, 295, 53, 125, 57, 60, 60, 53, 55, 53, 53, 57, 49, 295, 53, 125, 57, 61, 53, 56, 71, 58, 54, 53, 49, 295, 53, 125, 60, 54, 72, 55, 55, 55, 57, 53, 49, 295, 53, 7274, 60, 1158, 60, 54, 61, 54, 49, 295, 53, 125, 7664, 54, 53, 4683, 4947, 49, 295, 53, 125, 57, 53, 53, 55, 53, 53, 53, 53, 49, 295, 53, 9585, 54, 53, 54, 55, 71, 53, 53, 49, 295, 53, 125, 57, 60, 60, 53, 55, 53, 53, 57, 49, 295, 53, 125, 57, 59, 54, 5442, 58, 75, 61, 49, 295, 53, 125, 57, 59, 53, 74, 57, 59, 54, 58, 49, 295, 53, 125, 62, 75, 53, 61, 55, 56, 53, 57, 49, 295, 53, 22590, 62, 62, 75, 60, 1158, 49, 295, 53, 9585, 54, 54, 62, 55, 61, 53, 53, 49, 295, 53, 9585, 53, 54, 60, 55, 73, 53, 53, 49, 295, 53, 125, 57, 57, 60, 70, 57, 70, 53, 75, 49, 295, 53, 125, 59, 53, 53, 59, 59, 61, 54, 53, 49, 295, 53, 125, 55, 54, 53, 55, 57, 61, 53, 74, 49, 295, 53, 125, 62, 62, 53, 59, 60, 54, 72, 54, 49, 295, 53, 125, 59, 61, 54, 54, 60, 55, 72, 54, 49, 295, 53, 125, 59, 53, 61, 61, 59, 61, 55, 53, 49, 295, 53, 22590, 7726, 75, 60, 1158, 49, 295, 53, 9585, 53, 53, 61, 55, 61, 53, 53, 49, 295, 53, 125, 55, 62, 53, 53, 62, 62, 53, 60, 49, 295, 53, 125, 59, 53, 53, 1363, 53, 53, 53, 49, 295, 53, 9585, 53, 53, 54, 55, 75, 53, 53, 49, 295, 53, 125, 59, 53, 56, 62, 55, 54, 53, 53, 49, 295, 53, 125, 54, 75, 55, 2015, 3720, 61, 49, 295, 53, 125, 54, 73, 56, 59, 54, 73, 55, 57, 49, 295, 53, 9585, 54, 74, 54, 55, 73, 53, 53, 49, 295, 53, 125, 53, 53, 53, 53, 71, 3720, 61, 49, 295, 53, 125, 53, 53, 53, 53, 53, 53, 59, 55, 49, 295, 53, 125, 57, 53, 53, 55, 53, 53, 53, 53, 49, 295, 53, 125, 53, 53, 53, 57, 53, 53, 53, 55, 49, 295, 53, 125, 53, 53, 53, 61, 53, 53, 53, 53, 49, 295, 53, 125, 53, 53, 54, 53, 53, 53, 53, 53, 49, 295, 53, 125, 53, 53, 55, 53, 53, 53, 53, 53, 49, 295, 53, 125, 53, 53, 57, 53, 53, 53, 53, 53, 49, 295, 53, 125, 53, 53, 53, 53, 53, 53, 53, 53, 49, 295, 53, 125, 53, 53, 53, 53, 53, 53, 53, 53, 49, 295, 53, 125, 53, 53, 55, 53, 53, 53, 53, 53, 49, 295, 53, 125, 57, 53, 53, 55, 53, 53, 53, 57, 49, 295, 53, 125, 53, 53, 53, 53, 53, 53, 53, 53, 49, 303, 2520, 303, 332, 1982, 100, 1683, 582, 244, 53, 125, 55, 53, 53, 53, 53, 55, 60, 73, 49, 303, 332, 1982, 100, 330, 3588, 582, 244, 53, 125, 55, 53, 53, 53, 53, 55, 75, 62, 49, 303, 332, 1982, 100, 5801, 100, 1655, 582, 244, 53, 125, 55, 53, 53, 53, 53, 55, 71, 54, 49, 303, 332, 1982, 100, 16576, 100, 18058, 582, 244, 53, 125, 55, 53, 53, 53, 53, 55, 56, 73, 49, 303, 332, 1982, 100, 16576, 1947, 582, 244, 53, 125, 55, 53, 53, 53, 53, 55, 53, 62, 49, 303, 332, 1592, 100, 1460, 582, 244, 53, 125, 55, 53, 53, 53, 53, 53, 53, 53, 494, 244, 53, 125, 53, 53, 53, 53, 53, 53, 55, 53, 494, 244, 53, 125, 53, 53, 53, 53, 53, 59, 56, 72, 49, 303, 332, 2425, 100, 3056, 582, 244, 53, 125, 55, 53, 53, 53, 53, 53, 53, 53, 494, 244, 53, 125, 53, 53, 53, 53, 53, 61, 53, 53, 49, 303, 332, 2425, 100, 624, 582, 244, 53, 125, 55, 53, 53, 53, 53, 53, 53, 53, 494, 244, 53, 125, 53, 53, 53, 53, 53, 70, 53, 53, 49, 303, 332, 1655, 100, 15647, 582, 447, 53, 125, 55, 53, 53, 53, 53, 70, 53, 53, 49, 244, 53, 125, 55, 53, 53, 53, 54, 55, 53, 53, 636, 244, 607, 11602, 2082, 3129, 318, 303, 332, 907, 100, 5801, 100, 1340, 582, 244, 57, 49, 303, 332, 23171, 100, 7101, 582, 2969, 49, 303, 332, 23171, 100, 2485, 582, 244, 53, 125, 54, 4151, 61, 53, 53, 49, 222, 130, 499, 222, 842, 1242, 91, 54, 54, 95, 60, 45, 80, 13256, 316, 731, 303, 23573, 5655, 100, 5847, 299, 11366, 1225, 45, 310, 25027, 6071, 45, 1384, 66, 53, 49, 3124, 66, 53, 125, 55, 53, 53, 53, 53, 49, 2181, 911, 66, 53, 125, 57, 53, 53, 49, 458, 100, 3621, 100, 5581, 66, 1844, 49, 29446, 66, 30693, 100, 744, 7001, 49, 14017, 100, 842, 66, 15302, 100, 80, 13256, 316, 490, 310, 40860, 6071, 45, 1384, 66, 53, 125, 54, 4151, 53, 53, 53, 49, 3124, 66, 53, 125, 57, 53, 53, 53, 490, 303, 848, 465, 684, 1176, 1683, 3232, 803, 49, 3541, 731, 310, 2615, 45, 17584, 54, 54, 95, 60, 49, 649, 14618, 1683, 3232, 2867, 49, 649, 51, 15690, 100, 5847, 46, 310, 649, 1132, 33607, 100, 2665, 299, 12803, 73, 991, 51, 1097, 100, 14838, 459, 15920, 91, 54, 54, 95, 60, 51, 33607, 678, 222 ]
[ "#", "Ġpy", "O", "CD", "Ġdebugger", "Ċ", "#", "ĠCopyright", "Ġ(", "c", ")", "Ġ", "2", "0", "0", "6", "-", "2", "0", "1", "3", ",", "2", "0", "1", "8", "ĠArm", "ĠLimited", "Ċ", "#", "ĠSPDX", "-", "License", "-", "Identifier", ":", "ĠApache", "-", "2", ".", "0", "Ċ", "#", "Ċ", "#", "ĠLicensed", "Ġunder", "Ġthe", "ĠApache", "ĠLicense", ",", "ĠVersion", "Ġ", "2", ".", "0", "Ġ(", "the", "Ġ\"", "License", "\");", "Ċ", "#", "Ġyou", "Ġmay", "Ġnot", "Ġuse", "Ġthis", "Ġfile", "Ġexcept", "Ġin", "Ġcompliance", "Ġwith", "Ġthe", "ĠLicense", ".", "Ċ", "#", "ĠYou", "Ġmay", "Ġobtain", "Ġa", "Ġcopy", "Ġof", "Ġthe", "ĠLicense", "Ġat", "Ċ", "#", "Ċ", "#", "ĠĠĠĠ", "Ġhttp", "://", "www", ".", "apache", ".", "org", "/", "licenses", "/", "LICENSE", "-", "2", ".", "0", "Ċ", "#", "Ċ", "#", "ĠUnless", "Ġrequired", "Ġby", "Ġapplicable", "Ġlaw", "Ġor", "Ġagreed", "Ġto", "Ġin", "Ġwriting", ",", "Ġsoftware", "Ċ", "#", "Ġdistributed", "Ġunder", "Ġthe", "ĠLicense", "Ġis", "Ġdistributed", "Ġon", "Ġan", "Ġ\"", "AS", "ĠIS", "\"", "ĠBASIS", ",", "Ċ", "#", "ĠWITHOUT", "ĠWARRANTIES", "ĠOR", "ĠCONDITIONS", "ĠOF", "ĠANY", "ĠKIND", ",", "Ġeither", "Ġexpress", "Ġor", "Ġimplied", ".", "Ċ", "#", "ĠSee", "Ġthe", "ĠLicense", "Ġfor", "Ġthe", "Ġspecific", "Ġlanguage", "Ġgoverning", "Ġpermissions", "Ġand", "Ċ", "#", "Ġlimitations", "Ġunder", "Ġthe", "ĠLicense", ".", "Ċ", "Ċ", "from", "Ġ..", "family", ".", "target", "_", "kin", "et", "is", "Ġimport", "ĠK", "inet", "is", "Ċ", "from", "Ġ..", "family", ".", "flash", "_", "kin", "et", "is", "Ġimport", "ĠFlash", "_", "K", "inet", "is", "Ċ", "from", "Ġ...", "core", ".", "memory", "_", "map", "Ġimport", "ĠFlash", "Region", ",", "ĠRam", "Region", ",", "ĠMemory", "Map", "Ċ", "from", "Ġ...", "debug", ".", "svd", ".", "loader", "Ġimport", "ĠSV", "D", "File", "Ċ", "Ċ", "FLASH", "_", "AL", "GO", "Ġ=", "Ġ{", "ĊĠĠĠ", "Ġ\"", "load", "_", "address", "\":", "Ġ", "0", "x", "2", "0", "0", "0", "0", "0", "0", "0", ",", "ĊĠĠĠ", "Ġ\"", "instructions", "\":", "Ġ[", "ĊĠĠĠĠĠĠĠĠ", "0", "xE", "0", "0", "AB", "E", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "6", "2", "D", "7", "8", "0", "D", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "4", "0", "8", "4", "0", "6", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "0", "0", "0", "4", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "E", "6", "4", "4", "0", "5", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "C", "4", "9", "D", "1", "FA", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "A", "0", "0", "1", "E", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "7", "7", "0", "D", "1", "F", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "9", "0", "3", "2", "2", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "7", "3", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "B", "0", "A", "0", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "B", "0", "3", "D", "3", "5", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "3", "C", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "B", "0", "C", "0", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xE", "0", "1", "2", "D", "3", "2", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "3", "0", "B", "4", "6", "0", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "2", "0", "0", "D", "4", "7", "F", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "B", "0", "8", "4", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "9", "0", "3", "D", "3", "7", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "5", "F", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "B", "0", "A", "0", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "B", "0", "3", "D", "3", "4", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "2", "8", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "B", "0", "C", "0", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "2", "FFD", "3", "0", "D", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xBA", "1", "2", "0", "2", "0", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "B", "0", "C", "0", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "2", "1", "2", "D", "3", "0", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "0", "6", "5", "0", "2", "0", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "B", "0", "B", "0", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xE", "0", "0", "0", "D", "3", "1", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "BC", "3", "0", "A", "0", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "1", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "AC", "0", "0", "3", "CB", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "B", "8", "3", "4", "1", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "1", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "AC", "0", "0", "3", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "B", "4", "3", "4", "1", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "1", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "AC", "0", "0", "3", "4", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "B", "0", "3", "4", "1", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "1", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "AC", "0", "0", "3", "0", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "AC", "3", "4", "1", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "1", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "AC", "0", "0", "2", "CB", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "A", "8", "3", "4", "1", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "1", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "AC", "0", "0", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "A", "4", "3", "4", "1", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "1", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "AC", "0", "0", "2", "4", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "A", "0", "3", "4", "1", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "1", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "AC", "0", "0", "2", "0", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "2", "CD", "4", "1", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "B", "0", "9", "C", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "1", "CB", "D", "3", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "1", "5", "2", "1", "AC", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "B", "0", "9", "8", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "1", "8", "BD", "3", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "1", "5", "2", "1", "AC", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "B", "0", "9", "4", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "1", "4", "BD", "3", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "1", "5", "2", "1", "AC", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "B", "0", "9", "0", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "1", "0", "BD", "3", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "1", "5", "2", "1", "AC", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "B", "0", "8", "C", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "CB", "D", "3", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "1", "5", "2", "1", "AC", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "B", "0", "8", "8", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "8", "BD", "3", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "1", "5", "2", "1", "AC", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "B", "0", "8", "4", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "4", "BD", "3", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "1", "5", "2", "1", "AC", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "2", "0", "0", "1", "A", "4", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "1", "5", "2", "4", "6", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "7", "7", "0", "4", "6", "1", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "F", "CA", "E", "0", "5", "D", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "4", "9", "D", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "0", "1", "0", "0", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "0", "5", "3", "4", "2", "4", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "9", "C", "2", "2", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "B", "0", "9", "0", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "A", "0", "3", "D", "3", "2", "D", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "1", "2", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "1", "8", "9", "2", "2", "FC", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "A", "0", "3", "BA", "1", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "C", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "1", "9", "2", "0", "1", "8", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "8", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "1", "9", "2", "0", "1", "8", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "4", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "0", "3", "A", "0", "1", "8", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xE", "0", "0", "0", "1", "1", "9", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "9", "C", "3", "0", "9", "8", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "1", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "AC", "0", "0", "1", "CB", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "9", "8", "3", "4", "1", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "1", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "AC", "0", "0", "1", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "9", "4", "3", "4", "1", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "1", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "AC", "0", "0", "1", "4", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "9", "0", "3", "4", "1", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "1", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "AC", "0", "0", "1", "0", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "8", "C", "3", "4", "1", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "1", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "AC", "0", "0", "0", "CB", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "8", "8", "3", "4", "1", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "1", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "AC", "0", "0", "0", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "2", "D", "9", "4", "1", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "B", "0", "8", "4", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "4", "BD", "3", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "1", "5", "2", "1", "AC", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "2", "0", "0", "1", "A", "4", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "6", "3", "4", "6", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "0", "5", "B", "4", "1", "5", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "1", "4", "6", "1", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "B", "0", "0", "4", "2", "4", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "4", "9", "D", "5", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "6", "3", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "3", "0", "0", "1", "0", "5", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xB", "5", "0", "1", "4", "2", "4", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "C", "0", "2", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "BD", "0", "2", "4", "6", "C", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xB", "5", "1", "0", "4", "8", "0", "A", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "4", "4", "8", "4", "9", "0", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xF", "8", "F", "CF", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "1", "0", "4", "2", "8", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "1", "0", "0", "4", "8", "0", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xF", "0", "0", "0", "4", "4", "4", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "A", "0", "5", "F", "9", "C", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "3", "0", "1", "6", "8", "D", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "3", "1", "9", "0", "2", "9", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "BD", "1", "0", "6", "0", "D", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "B", "6", "5", "6", "6", "6", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "0", "0", "0", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xF", "0", "0", "0", "3", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "C", "0", "CB", "5", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "4", "4", "C", "4", "6", "0", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "B", "0", "B", "4", "6", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "8", "E", "2", "4", "6", "2", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xF", "8", "A", "4", "F", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "1", "0", "5", "2", "8", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "2", "9", "2", "3", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "8", "E", "2", "4", "6", "2", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xF", "9", "6", "EF", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "8", "CA", "4", "9", "0", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "2", "9", "B", "2", "3", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "0", "CA", "4", "3", "1", "A", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "BD", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "0", "0", "0", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "B", "6", "5", "6", "6", "6", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xF", "0", "0", "0", "3", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "8", "0", "9", "B", "5", "1", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "8", "1", "C", "1", "4", "9", "0", "7", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "8", "1", "C", "1", "4", "9", "0", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "8", "4", "9", "8", "8", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "8", "0", "0", "1", "0", "0", "4", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "4", "4", "8", "4", "8", "0", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xF", "8", "F", "2", "F", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "0", "0", "0", "2", "8", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "BD", "1", "0", "2", "0", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "C", "5", "2", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "0", "0", "5", "2", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "D", "9", "2", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "0", "0", "0", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "0", "CB", "5", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "0", "6", "4", "6", "0", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "8", "0", "D", "4", "6", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "1", "5", "B", "0", "8", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xF", "0", "0", "0", "4", "4", "4", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "8", "0", "0", "F", "9", "0", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "9", "0", "0", "1", "D", "1", "0", "A", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "1", "0", "1", "9", "0", "0", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "9", "1", "0", "0", "4", "8", "0", "7", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "2", "2", "4", "6", "2", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "4", "4", "8", "4", "6", "3", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xF", "9", "7", "8", "F", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "8", "CA", "4", "9", "0", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "2", "9", "B", "2", "3", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "0", "CA", "4", "3", "1", "A", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "BD", "7", "0", "B", "0", "0", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "0", "0", "0", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xF", "0", "0", "0", "3", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "7", "7", "0", "2", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "0", "0", "8", "2", "8", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "8", "0", "2", "2", "9", "0", "F", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "1", "0", "4", "2", "A", "0", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "9", "1", "3", "E", "0", "0", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "A", "0", "8", "D", "8", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "0", "4", "D", "0", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "0", "0", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "8", "0", "0", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "0", "4", "D", "1", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xB", "4", "1", "0", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "0", "C", "1", "E", "5", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "1", "0", "1", "4", "2", "1", "C", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "0", "0", "2", "4", "2", "1", "A", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "6", "5", "BC", "1", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "8", "0", "3", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "8", "0", "4", "4", "2", "8", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "8", "8", "9", "6", "8", "4", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "8", "1", "8", "1", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xBC", "1", "0", "D", "2", "0", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "7", "7", "0", "2", "0", "6", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "0", "0", "BC", "1", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "8", "8", "4", "9", "0", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "6", "BD", "0", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "0", "0", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "B", "6", "5", "6", "6", "6", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "1", "7", "0", "4", "8", "0", "A", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "1", "8", "0", "7", "0", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "7", "8", "0", "1", "7", "0", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "5", "FC", "0", "6", "0", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "6", "8", "1", "7", "8", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "6", "7", "D", "5", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "6", "C", "1", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "6", "8", "D", "5", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "7", "C", "0", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "6", "9", "D", "0", "FC", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "0", "0", "2", "0", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "0", "5", "B", "5", "F", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "0", "C", "4", "6", "1", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xF", "7", "FF", "4", "6", "1", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "8", "0", "0", "FFD", "7", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "3", "0", "4", "D", "1", "2", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "2", "1", "4", "6", "3", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xF", "7", "FF", "4", "6", "2", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "7", "FF", "B", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "9", "A", "6", "D", "1", "2", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "8", "E", "9", "1", "E", "7", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "9", "1", "0", "0", "4", "6", "3", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xFE", "2", "CF", "7", "FF", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "0", "0", "3", "2", "9", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "C", "4", "0", "9", "E", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "E", "7", "6", "4", "3", "4", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "8", "1", "3", "4", "2", "B", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "4", "7", "8", "4", "8", "0", "A", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "0", "0", "4", "6", "8", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "0", "9", "4", "9", "0", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xF", "7", "FF", "7", "1", "C", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "0", "7", "FF", "BF", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "8", "0", "0", "6", "9", "A", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "7", "8", "0", "D", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "1", "0", "3", "2", "F", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "9", "0", "4", "6", "8", "E", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "9", "EB", "4", "2", "B", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xB", "DF", "8", "4", "6", "3", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "0", "2", "7", "A", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "0", "0", "2", "0", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "0", "4", "B", "5", "1", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xF", "7", "FF", "4", "6", "0", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "8", "0", "0", "FF", "9", "F", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "C", "0", "0", "D", "1", "0", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "9", "0", "4", "D", "0", "0", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "7", "1", "C", "8", "2", "0", "4", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xFF", "A", "0", "F", "7", "FF", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "0", "4", "BD", "1", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "BD", "1", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "0", "0", "2", "0", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "0", "0", "C", "2", "8", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "0", "0", "A", "2", "A", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "2", "1", "A", "2", "9", "0", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "4", "7", "B", "0", "0", "0", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "8", "DB", "7", "9", "1", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "7", "0", "5", "4", "4", "9", "F", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "D", "0", "B", "0", "9", "0", "7", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "0", "4", "1", "1", "0", "F", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "8", "C", "0", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "8", "4", "0", "E", "0", "0", "A", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "8", "8", "0", "E", "0", "0", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "8", "0", "0", "E", "0", "0", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "0", "1", "E", "0", "0", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "9", "0", "0", "E", "0", "0", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "9", "4", "0", "E", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "0", "0", "6", "0", "1", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "6", "A", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "0", "0", "A", "2", "8", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "8", "C", "9", "4", "9", "0", "F", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "E", "0", "9", "4", "A", "0", "F", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "4", "7", "A", "0", "0", "4", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "3", "0", "9", "5", "A", "5", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "6", "4", "D", "1", "0", "3", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "0", "4", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xB", "4", "1", "0", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "0", "0", "3", "2", "3", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "1", "0", "1", "6", "0", "4", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "2", "8", "9", "6", "0", "8", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "9", "0", "7", "6", "0", "C", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "5", "8", "A", "7", "A", "0", "C", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "1", "0", "2", "4", "0", "A", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "1", "8", "3", "7", "AC", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xBC", "1", "0", "6", "1", "4", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "7", "7", "0", "4", "6", "1", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "0", "0", "4", "8", "0", "4", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "0", "1", "AA", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "0", "0", "2", "0", "0", "2", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "1", "0", "1", "2", "A", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "7", "7", "0", "2", "0", "0", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "1", "CB", "5", "FF", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "1", "5", "B", "0", "8", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "3", "0", "4", "4", "6", "0", "E", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "9", "8", "0", "1", "4", "6", "2", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xFF", "1", "9", "F", "7", "FF", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "1", "1", "9", "0", "0", "0", "7", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "0", "1", "6", "2", "C", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "4", "7", "8", "4", "8", "0", "C", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "0", "0", "E", "6", "8", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "8", "0", "0", "CD", "0", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "9", "0", "A", "6", "0", "4", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "7", "1", "C", "8", "2", "0", "0", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xFF", "3", "0", "F", "7", "FF", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "9", "8", "0", "1", "4", "6", "0", "7", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "8", "0", "0", "6", "9", "8", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "7", "8", "0", "D", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "1", "0", "2", "2", "F", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "F", "2", "4", "1", "D", "3", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "3", "8", "D", "1", "E", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xB", "DF", "0", "B", "0", "0", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "0", "1", "6", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "0", "0", "2", "0", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "0", "0", "2", "2", "8", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "0", "0", "6", "1", "8", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "0", "0", "4", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "4", "7", "7", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xB", "0", "8", "1", "B", "5", "FF", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "0", "E", "4", "6", "1", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "3", "0", "4", "4", "6", "0", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xF", "EE", "7", "F", "7", "FF", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "1", "2", "A", "2", "8", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "8", "6", "8", "6", "8", "A", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xFD", "6", "4", "F", "7", "FF", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "7", "1", "9", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "0", "0", "1", "4", "2", "4", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "2", "B", "7", "4", "2", "4", "F", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "9", "8", "0", "0", "D", "1", "0", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "C", "0", "0", "1", "8", "3", "F", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "BB", "DD", "0", "1", "A", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "9", "0", "0", "4", "2", "A", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "9", "0", "D", "4", "6", "2", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "4", "7", "9", "0", "8", "A", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "0", "0", "E", "6", "8", "0", "9", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "2", "0", "1", "4", "9", "0", "B", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "A", "0", "2", "7", "1", "CA", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "7", "2", "8", "8", "7", "2", "CA", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "7", "2", "4", "8", "9", "8", "0", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xF", "EE", "AF", "7", "FF", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "1", "0", "6", "2", "8", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "B", "6", "4", "9", "8", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "8", "3", "F", "1", "9", "7", "6", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "1", "E", "4", "2", "C", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xB", "0", "0", "5", "2", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "B", "DF", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "0", "0", "DA", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "0", "0", "2", "0", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "1", "0", "1", "2", "8", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "7", "7", "0", "2", "0", "0", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "8", "0", "3", "B", "5", "1", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "7", "1", "C", "2", "2", "2", "4", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xF", "7", "FF", "7", "1", "8", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "BD", "1", "0", "FE", "CF", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "0", "0", "2", "0", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "1", "0", "1", "2", "B", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "7", "7", "0", "2", "0", "0", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "1", "CB", "5", "F", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "6", "0", "E", "4", "6", "1", "5", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "9", "F", "0", "8", "2", "3", "0", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xFE", "9", "9", "F", "7", "FF", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "1", "1", "9", "2", "8", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "0", "1", "7", "2", "D", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "4", "7", "A", "4", "A", "0", "F", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "0", "0", "6", "6", "8", "1", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "1", "0", "2", "4", "8", "0", "E", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "9", "9", "0", "6", "7", "1", "C", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "8", "1", "1", "7", "2", "C", "1", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "0", "8", "8", "6", "8", "2", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xFE", "AE", "F", "7", "FF", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "0", "0", "8", "2", "8", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "2", "9", "0", "0", "9", "9", "0", "7", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "0", "0", "ED", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "0", "0", "1", "2", "F", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "6", "0", "3", "9", "2", "1", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "F", "2", "DB", "DF", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "1", "D", "3", "6", "1", "D", "2", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "xD", "1", "E", "1", "2", "D", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "B", "DF", "8", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "0", "0", "6", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "0", "0", "2", "0", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "4", "0", "0", "0", "2", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "8", "0", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "1", "0", "0", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "2", "0", "0", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "4", "0", "0", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "0", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "0", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "2", "0", "0", "0", "0", "0", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "4", "0", "0", "2", "0", "0", "0", "4", ",", "ĊĠĠĠĠĠĠĠĠ", "0", "x", "0", "0", "0", "0", "0", "0", "0", "0", ",", "ĊĠĠĠ", "Ġ],", "ĊĠĠĠ", "Ġ\"", "pc", "_", "init", "\":", "Ġ", "0", "x", "2", "0", "0", "0", "0", "2", "7", "D", ",", "ĊĠĠĠ", "Ġ\"", "pc", "_", "un", "Init", "\":", "Ġ", "0", "x", "2", "0", "0", "0", "0", "2", "F", "9", ",", "ĊĠĠĠ", "Ġ\"", "pc", "_", "program", "_", "page", "\":", "Ġ", "0", "x", "2", "0", "0", "0", "0", "2", "B", "1", ",", "ĊĠĠĠ", "Ġ\"", "pc", "_", "erase", "_", "sector", "\":", "Ġ", "0", "x", "2", "0", "0", "0", "0", "2", "3", "D", ",", "ĊĠĠĠ", "Ġ\"", "pc", "_", "erase", "All", "\":", "Ġ", "0", "x", "2", "0", "0", "0", "0", "2", "0", "9", ",", "ĊĠĠĠ", "Ġ\"", "static", "_", "base", "\":", "Ġ", "0", "x", "2", "0", "0", "0", "0", "0", "0", "0", "Ġ+", "Ġ", "0", "x", "0", "0", "0", "0", "0", "0", "2", "0", "Ġ+", "Ġ", "0", "x", "0", "0", "0", "0", "0", "6", "3", "C", ",", "ĊĠĠĠ", "Ġ\"", "begin", "_", "stack", "\":", "Ġ", "0", "x", "2", "0", "0", "0", "0", "0", "0", "0", "Ġ+", "Ġ", "0", "x", "0", "0", "0", "0", "0", "8", "0", "0", ",", "ĊĠĠĠ", "Ġ\"", "begin", "_", "data", "\":", "Ġ", "0", "x", "2", "0", "0", "0", "0", "0", "0", "0", "Ġ+", "Ġ", "0", "x", "0", "0", "0", "0", "0", "A", "0", "0", ",", "ĊĠĠĠ", "Ġ\"", "page", "_", "buffers", "\":", "Ġ[", "0", "x", "2", "0", "0", "0", "0", "A", "0", "0", ",", "Ġ", "0", "x", "2", "0", "0", "0", "1", "2", "0", "0", "],", "Ġ", "Ġ#", "ĠEnable", "Ġdouble", "Ġbuffer", "ing", "ĊĠĠĠ", "Ġ\"", "min", "_", "program", "_", "length", "\":", "Ġ", "4", ",", "ĊĠĠĠ", "Ġ\"", "analyzer", "_", "supported", "\":", "ĠTrue", ",", "ĊĠĠĠ", "Ġ\"", "analyzer", "_", "address", "\":", "Ġ", "0", "x", "1", "FFFF", "8", "0", "0", ",", "Ċ", "}", "ĊĊ", "Ċ", "class", "ĠK", "V", "1", "1", "Z", "7", "(", "K", "inet", "is", "):", "ĊĠĠĠ", "ĠMEM", "ORY", "_", "MAP", "Ġ=", "ĠMemory", "Map", "(", "ĊĠĠĠĠĠĠĠ", "ĠFlash", "Region", "(", "start", "=", "0", ",", "Ġlength", "=", "0", "x", "2", "0", "0", "0", "0", ",", "Ġblock", "size", "=", "0", "x", "4", "0", "0", ",", "Ġis", "_", "boot", "_", "memory", "=", "True", ",", "Ġalgo", "=", "FLASH", "_", "AL", "GO", ",", "Ġflash", "_", "class", "=", "Flash", "_", "K", "inet", "is", "),", "ĊĠĠĠĠĠĠĠ", "ĠRam", "Region", "(", "start", "=", "0", "x", "1", "FFFF", "0", "0", "0", ",", "Ġlength", "=", "0", "x", "4", "0", "0", "0", "),", "ĊĠĠĠ", "Ġ)", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġsession", "):", "ĊĠĠĠĠĠĠĠ", "Ġsuper", "(", "KV", "1", "1", "Z", "7", ",", "Ġself", ").__", "init", "__(", "session", ",", "Ġself", ".", "MEMORY", "_", "MAP", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "svd", "_", "location", "Ġ=", "ĠSV", "D", "File", ".", "from", "_", "builtin", "(\"", "MK", "V", "1", "1", "Z", "7", ".", "svd", "\")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 259, 259, 259, 259, 259, 259, 259, 259, 259, 259, 259, 259, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 266, 266, 266, 266, 266, 266, 266, 266, 267, 267, 267, 267, 267, 267, 267, 267, 267, 267, 267, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 270, 270, 270, 270, 270, 270, 270, 270, 270, 270, 270, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 288, 288, 288, 288, 288, 288, 288, 288, 288, 288, 288, 288, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 290, 290, 290, 290, 290, 290, 290, 290, 290, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 293, 293, 293, 293, 293, 293, 293, 293, 293, 293, 293, 293, 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 298, 298, 298, 298, 298, 298, 298, 298, 298, 298, 298, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 312, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 315, 315, 315, 315, 315, 315, 315, 315, 315, 315, 315, 315, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 327, 327, 327, 327, 327, 327, 327, 327, 327, 327, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 329, 329, 329, 329, 329, 329, 329, 329, 329, 329, 329, 329, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 337, 337, 337, 337, 337, 337, 337, 337, 337, 337, 337, 337, 338, 338, 338, 338, 338, 338, 338, 338, 338, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, 341, 341, 341, 341, 341, 341, 341, 341, 341, 341, 341, 341, 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 344, 344, 344, 344, 344, 344, 344, 344, 344, 344, 344, 344, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 346, 346, 346, 346, 346, 346, 346, 346, 346, 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 349, 349, 349, 349, 349, 349, 349, 349, 349, 349, 349, 349, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 352, 352, 352, 352, 352, 352, 352, 352, 352, 352, 352, 352, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, 361, 361, 361, 361, 361, 361, 361, 361, 361, 361, 361, 361, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 363, 363, 363, 363, 363, 363, 363, 363, 363, 364, 364, 364, 364, 364, 364, 364, 364, 364, 364, 364, 365, 365, 365, 365, 365, 365, 365, 365, 365, 365, 365, 365, 366, 366, 366, 366, 366, 366, 366, 366, 366, 367, 367, 367, 367, 367, 367, 367, 367, 367, 367, 367, 367, 368, 368, 368, 368, 368, 368, 368, 368, 368, 368, 368, 368, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 372, 372, 372, 372, 372, 372, 372, 372, 372, 372, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 377, 377, 377, 377, 377, 377, 377, 377, 377, 377, 377, 377, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 380, 380, 380, 380, 380, 380, 380, 380, 380, 380, 380, 380, 381, 381, 381, 381, 381, 381, 381, 381, 382, 382, 382, 382, 382, 382, 382, 382, 382, 382, 382, 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, 385, 385, 385, 385, 385, 385, 385, 385, 385, 385, 385, 386, 386, 386, 386, 386, 386, 386, 386, 386, 386, 386, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 389, 389, 389, 389, 389, 389, 389, 389, 389, 389, 389, 389, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 391, 391, 391, 391, 391, 391, 391, 391, 391, 391, 391, 391, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 393, 393, 393, 393, 393, 393, 393, 393, 393, 393, 393, 393, 394, 394, 394, 394, 394, 394, 394, 394, 394, 394, 395, 395, 395, 395, 395, 395, 395, 395, 395, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 401, 401, 401, 401, 401, 401, 401, 401, 401, 401, 401, 401, 402, 402, 402, 402, 402, 402, 402, 402, 402, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 407, 407, 407, 407, 407, 407, 407, 407, 407, 407, 407, 407, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 411, 411, 411, 411, 411, 411, 411, 411, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 419, 419, 419, 419, 419, 419, 419, 419, 419, 419, 419, 420, 420, 420, 420, 420, 420, 420, 420, 420, 420, 420, 421, 421, 421, 421, 421, 421, 421, 421, 421, 421, 421, 421, 422, 422, 422, 422, 422, 422, 422, 422, 422, 422, 422, 422, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, 425, 425, 425, 425, 425, 425, 425, 425, 425, 425, 425, 425, 426, 426, 426, 426, 426, 426, 426, 426, 426, 426, 426, 426, 427, 427, 427, 427, 427, 427, 427, 427, 427, 427, 427, 427, 428, 428, 428, 428, 428, 428, 428, 428, 428, 428, 428, 428, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 430, 430, 430, 430, 430, 430, 430, 430, 430, 430, 430, 430, 431, 431, 431, 431, 431, 431, 431, 431, 431, 431, 431, 431, 432, 432, 432, 432, 432, 432, 432, 432, 432, 432, 432, 432, 433, 433, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, 436, 436, 436, 436, 436, 436, 436, 436, 436, 436, 436, 436, 436, 436, 436, 436, 436, 436, 436, 436, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 443, 443, 443, 443, 443, 443, 443, 443, 443, 443, 443, 444, 444, 444, 444, 444, 444, 444, 444, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 446, 446, 448, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 450, 450, 450, 450, 450, 450, 450, 450, 450, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 453, 453, 455, 455, 455, 455, 455, 455, 455, 455, 455, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457 ]
[ 1, 2, 5, 6, 8, 17, 1, 2, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 35, 43, 1, 2, 7, 8, 15, 16, 26, 27, 34, 35, 36, 37, 38, 1, 2, 1, 2, 11, 17, 21, 28, 36, 37, 45, 46, 47, 48, 49, 51, 54, 56, 63, 66, 1, 2, 6, 10, 14, 18, 23, 28, 35, 38, 49, 54, 58, 66, 67, 1, 2, 6, 10, 17, 19, 24, 27, 31, 39, 42, 1, 2, 1, 2, 6, 11, 14, 17, 18, 24, 25, 28, 29, 37, 38, 45, 46, 47, 48, 49, 1, 2, 1, 2, 9, 18, 21, 32, 36, 39, 46, 49, 52, 60, 61, 70, 1, 2, 14, 20, 24, 32, 35, 47, 50, 53, 55, 57, 60, 61, 67, 68, 1, 2, 10, 21, 24, 35, 38, 42, 47, 48, 55, 63, 66, 74, 75, 1, 2, 6, 10, 18, 22, 26, 35, 44, 54, 66, 70, 1, 2, 14, 20, 24, 32, 33, 1, 1, 5, 8, 14, 15, 21, 22, 25, 27, 29, 36, 38, 42, 44, 1, 5, 8, 14, 15, 20, 21, 24, 26, 28, 35, 41, 42, 43, 47, 49, 1, 5, 9, 13, 14, 20, 21, 24, 31, 37, 43, 44, 48, 54, 55, 62, 65, 1, 5, 9, 14, 15, 18, 19, 25, 32, 35, 36, 40, 1, 1, 6, 7, 9, 11, 13, 15, 4, 6, 10, 11, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 4, 6, 18, 20, 22, 9, 10, 12, 13, 14, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 16, 17, 18, 19, 20, 9, 10, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 14, 15, 16, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 14, 15, 16, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 14, 15, 16, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 14, 15, 16, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 13, 14, 16, 17, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 15, 16, 17, 18, 19, 20, 9, 10, 12, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 13, 14, 15, 16, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 9, 10, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 16, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 13, 14, 15, 16, 17, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 13, 14, 15, 16, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 14, 15, 16, 17, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 13, 14, 15, 16, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 14, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 14, 16, 17, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 15, 16, 17, 18, 19, 20, 9, 10, 11, 13, 14, 15, 17, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 13, 14, 15, 16, 17, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 13, 15, 16, 17, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 16, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 4, 7, 4, 6, 8, 9, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 4, 6, 8, 9, 11, 15, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 4, 6, 8, 9, 16, 17, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 4, 6, 8, 9, 14, 15, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 4, 6, 8, 9, 14, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 4, 6, 12, 13, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 4, 6, 11, 12, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 4, 6, 11, 12, 16, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 4, 6, 10, 11, 18, 20, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 46, 47, 49, 56, 63, 70, 73, 4, 6, 9, 10, 17, 18, 24, 26, 27, 28, 29, 4, 6, 14, 15, 24, 26, 31, 32, 4, 6, 14, 15, 22, 24, 25, 26, 27, 28, 32, 33, 34, 35, 36, 1, 2, 1, 1, 6, 8, 9, 10, 11, 12, 13, 14, 15, 19, 21, 23, 4, 8, 11, 12, 15, 17, 24, 27, 28, 8, 14, 20, 21, 26, 27, 28, 29, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 51, 55, 56, 57, 58, 59, 60, 61, 62, 65, 66, 70, 71, 77, 78, 82, 83, 88, 89, 94, 95, 97, 99, 100, 106, 107, 112, 113, 118, 119, 120, 124, 126, 128, 8, 12, 18, 19, 24, 25, 26, 27, 28, 32, 33, 34, 35, 36, 43, 44, 45, 46, 47, 48, 49, 50, 52, 4, 6, 4, 8, 11, 15, 18, 22, 23, 31, 33, 8, 14, 15, 17, 18, 19, 20, 21, 22, 27, 31, 35, 38, 45, 46, 51, 52, 58, 59, 62, 63, 8, 13, 15, 18, 19, 27, 29, 32, 33, 37, 38, 42, 43, 50, 52, 54, 55, 56, 57, 58, 59, 60, 63, 65 ]
18c2fe40b51ad1489d55aa2be068a1c4f381a2a5
import datetime from django.db import models from django.utils import timezone class Acoount(models.Model): first_name = models.CharField("Ім'я", max_length=50) last_name = models.CharField("Прізвище", max_length=50) username = models.CharField("Псевдонім", max_length=50) email = models.CharField("Електронна почта", max_length=16) password = models.CharField("Пароль", max_length=16) def __str__(self): return self.first_name + " " + self.last_name class Meta: verbose_name = "Акаунт" verbose_name_plural = "Акаунти"
[ 485, 7181, 222, 1097, 8532, 51, 1219, 1220, 4590, 222, 222, 1097, 8532, 51, 2324, 1220, 22145, 499, 222, 842, 418, 352, 1066, 45, 3404, 51, 1262, 731, 303, 1950, 100, 444, 299, 4590, 51, 16347, 459, 176, 252, 3994, 44, 2808, 411, 1788, 100, 1340, 66, 58, 53, 46, 303, 2419, 100, 444, 299, 4590, 51, 16347, 459, 37467, 11783, 5624, 3717, 1286, 8389, 1101, 411, 1788, 100, 1340, 66, 58, 53, 46, 303, 969, 299, 4590, 51, 16347, 459, 13169, 1539, 20153, 4382, 9734, 11783, 3994, 411, 1788, 100, 1340, 66, 58, 53, 46, 303, 4111, 299, 4590, 51, 16347, 459, 26355, 2073, 19346, 1505, 9734, 10848, 16244, 3979, 32674, 411, 1788, 100, 1340, 66, 54, 59, 46, 303, 3894, 299, 4590, 51, 16347, 459, 13169, 12571, 10735, 411, 1788, 100, 1340, 66, 54, 59, 46, 465, 684, 1176, 484, 3232, 803, 731, 310, 461, 649, 51, 2251, 100, 444, 494, 332, 332, 494, 649, 51, 2153, 100, 444, 465, 462, 11990, 63, 310, 9628, 100, 444, 299, 332, 16183, 10149, 24913, 1288, 39, 310, 9628, 100, 444, 100, 25831, 299, 332, 16183, 10149, 24913, 15886, 39, 222 ]
[ "import", "Ġdatetime", "Ċ", "from", "Ġdjango", ".", "db", "Ġimport", "Ġmodels", "Ċ", "Ċ", "from", "Ġdjango", ".", "utils", "Ġimport", "Ġtimezone", "ĊĊ", "Ċ", "class", "ĠA", "co", "ount", "(", "models", ".", "Model", "):", "ĊĠĠĠ", "Ġfirst", "_", "name", "Ġ=", "Ġmodels", ".", "CharField", "(\"", "Ð", "Ĩ", "м", "'", "Ñı", "\",", "Ġmax", "_", "length", "=", "5", "0", ")", "ĊĠĠĠ", "Ġlast", "_", "name", "Ġ=", "Ġmodels", ".", "CharField", "(\"", "ÐŁÑĢ", "Ñĸ", "з", "в", "и", "Ñī", "е", "\",", "Ġmax", "_", "length", "=", "5", "0", ")", "ĊĠĠĠ", "Ġusername", "Ġ=", "Ġmodels", ".", "CharField", "(\"", "ÐŁ", "Ñģ", "ев", "д", "он", "Ñĸ", "м", "\",", "Ġmax", "_", "length", "=", "5", "0", ")", "ĊĠĠĠ", "Ġemail", "Ġ=", "Ġmodels", ".", "CharField", "(\"", "Ðķ", "л", "екÑĤ", "ÑĢ", "он", "на", "Ġпо", "Ñĩ", "ÑĤа", "\",", "Ġmax", "_", "length", "=", "1", "6", ")", "ĊĠĠĠ", "Ġpassword", "Ġ=", "Ġmodels", ".", "CharField", "(\"", "ÐŁ", "аÑĢ", "олÑĮ", "\",", "Ġmax", "_", "length", "=", "1", "6", ")", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "str", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "first", "_", "name", "Ġ+", "Ġ\"", "Ġ\"", "Ġ+", "Ġself", ".", "last", "_", "name", "ĊĊĠĠĠ", "Ġclass", "ĠMeta", ":", "ĊĠĠĠĠĠĠĠ", "Ġverbose", "_", "name", "Ġ=", "Ġ\"", "ÐIJ", "ка", "Ñĥн", "ÑĤ", "\"", "ĊĠĠĠĠĠĠĠ", "Ġverbose", "_", "name", "_", "plural", "Ġ=", "Ġ\"", "ÐIJ", "ка", "Ñĥн", "ÑĤи", "\"", "Ċ" ]
[ 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19 ]
[ 1, 7, 16, 1, 5, 12, 13, 15, 22, 29, 1, 1, 5, 12, 13, 18, 25, 34, 1, 1, 6, 8, 10, 14, 15, 21, 22, 27, 29, 4, 10, 11, 15, 17, 24, 25, 34, 36, 36, 37, 38, 39, 40, 42, 46, 47, 53, 54, 55, 56, 57, 4, 9, 10, 14, 16, 23, 24, 33, 35, 37, 38, 39, 40, 41, 42, 43, 45, 49, 50, 56, 57, 58, 59, 60, 4, 13, 15, 22, 23, 32, 34, 35, 36, 38, 39, 41, 42, 43, 45, 49, 50, 56, 57, 58, 59, 60, 4, 10, 12, 19, 20, 29, 31, 32, 33, 36, 37, 39, 41, 44, 45, 47, 49, 53, 54, 60, 61, 62, 63, 64, 4, 13, 15, 22, 23, 32, 34, 35, 37, 40, 42, 46, 47, 53, 54, 55, 56, 57, 4, 8, 11, 14, 17, 21, 23, 8, 15, 20, 21, 26, 27, 31, 33, 35, 37, 39, 44, 45, 49, 50, 54, 4, 10, 15, 16, 8, 16, 17, 21, 23, 25, 26, 28, 30, 31, 32, 8, 16, 17, 21, 22, 28, 30, 32, 33, 35, 37, 39, 40 ]
3f8c13be547099aa6612365452926db95828b9a0
from setuptools import setup setup( name="RedHatSecurityAdvisory", version="0.1", description="Script that automatically checks the RedHat security advisories to see if a CVE applies", author="Pieter-Jan Moreels", url="https://github.com/PidgeyL/RedHat-Advisory-Checker", entry_points={"console_scripts": ["rhsa = RHSA:redhatAdvisory.main"]}, packages=["RHSA"], license="Modified BSD license", )
[ 1097, 29910, 1220, 4721, 222, 222, 5536, 45, 303, 655, 366, 4038, 41546, 5196, 1785, 1893, 647, 411, 303, 1522, 366, 53, 51, 54, 411, 303, 3066, 366, 3223, 708, 6936, 9378, 341, 4777, 41546, 7669, 1564, 1893, 3121, 391, 2337, 434, 331, 26250, 16651, 411, 303, 4096, 366, 85, 6675, 284, 50, 19301, 12662, 9918, 411, 303, 2001, 366, 662, 574, 951, 51, 527, 52, 21096, 319, 126, 81, 52, 4038, 41546, 50, 1785, 1893, 647, 50, 14003, 411, 303, 3429, 100, 3983, 8492, 4482, 100, 8128, 582, 3059, 17078, 2473, 299, 578, 77, 3569, 63, 23672, 1785, 1893, 647, 51, 1850, 1465, 855, 303, 7622, 18776, 29788, 3569, 3461, 303, 3553, 366, 9851, 11898, 3553, 411, 222, 46, 222 ]
[ "from", "Ġsetuptools", "Ġimport", "Ġsetup", "Ċ", "Ċ", "setup", "(", "ĊĠĠĠ", "Ġname", "=\"", "Red", "Hat", "Security", "Ad", "vis", "ory", "\",", "ĊĠĠĠ", "Ġversion", "=\"", "0", ".", "1", "\",", "ĊĠĠĠ", "Ġdescription", "=\"", "Script", "Ġthat", "Ġautomatically", "Ġchecks", "Ġthe", "ĠRed", "Hat", "Ġsecurity", "Ġad", "vis", "ories", "Ġto", "Ġsee", "Ġif", "Ġa", "ĠCVE", "Ġapplies", "\",", "ĊĠĠĠ", "Ġauthor", "=\"", "P", "iet", "er", "-", "Jan", "ĠMore", "els", "\",", "ĊĠĠĠ", "Ġurl", "=\"", "https", "://", "github", ".", "com", "/", "Pid", "ge", "y", "L", "/", "Red", "Hat", "-", "Ad", "vis", "ory", "-", "Checker", "\",", "ĊĠĠĠ", "Ġentry", "_", "points", "={\"", "console", "_", "scripts", "\":", "Ġ[\"", "rh", "sa", "Ġ=", "ĠR", "H", "SA", ":", "redhat", "Ad", "vis", "ory", ".", "main", "\"]", "},", "ĊĠĠĠ", "Ġpackages", "=[\"", "RH", "SA", "\"],", "ĊĠĠĠ", "Ġlicense", "=\"", "Modified", "ĠBSD", "Ġlicense", "\",", "Ċ", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12 ]
[ 1, 5, 16, 23, 29, 1, 1, 6, 7, 4, 9, 11, 14, 17, 25, 27, 30, 33, 35, 4, 12, 14, 15, 16, 17, 19, 4, 16, 18, 24, 29, 43, 50, 54, 58, 61, 70, 73, 76, 81, 84, 88, 91, 93, 97, 105, 107, 4, 11, 13, 14, 17, 19, 20, 23, 28, 31, 33, 4, 8, 10, 15, 18, 24, 25, 28, 29, 32, 34, 35, 36, 37, 40, 43, 44, 46, 49, 52, 53, 60, 62, 4, 10, 11, 17, 20, 27, 28, 35, 37, 40, 42, 44, 46, 48, 49, 51, 52, 58, 60, 63, 66, 67, 71, 73, 75, 4, 13, 16, 18, 20, 23, 4, 12, 14, 22, 26, 34, 36, 1, 2 ]
5ef65ace397be17be62625ed27b5753d15565d61
from abc import ABC, abstractmethod class DatasetFileManager(ABC): @abstractmethod def read_dataset(self): pass
[ 1097, 20701, 1220, 41449, 49, 5560, 1978, 499, 222, 842, 19265, 45275, 45, 16701, 731, 303, 496, 37664, 303, 684, 1511, 100, 5709, 45, 803, 731, 310, 3119, 222 ]
[ "from", "Ġabc", "Ġimport", "ĠABC", ",", "Ġabstract", "method", "ĊĊ", "Ċ", "class", "ĠDataset", "FileManager", "(", "ABC", "):", "ĊĠĠĠ", "Ġ@", "abstractmethod", "ĊĠĠĠ", "Ġdef", "Ġread", "_", "dataset", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġpass", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7 ]
[ 1, 5, 9, 16, 20, 21, 30, 36, 1, 1, 6, 14, 25, 26, 29, 31, 4, 6, 20, 4, 8, 13, 14, 21, 22, 26, 28, 8, 13 ]
236dd70dec8d53062d6c38c370cb8f11dc5ef9d0
import thinkbayes2 as thinkbayes from thinkbayes2 import Pmf import thinkplot class Dice2(Pmf): def __init__(self, sides): Pmf.__init__(self) for x in range(1, sides + 1): self.Set(x, 1) self.Normalize() if __name__ == "__main__": d6 = Dice2(6) dices = [d6] * 6 three = thinkbayes.SampleSum(dices, 1000) thinkplot.Pmf(three)
[ 485, 3558, 26773, 326, 55, 641, 3558, 26773, 326, 222, 1097, 3558, 26773, 326, 55, 1220, 466, 10599, 222, 485, 3558, 3570, 499, 222, 842, 493, 584, 55, 45, 85, 10599, 731, 303, 684, 1176, 1683, 3232, 803, 49, 29820, 731, 310, 466, 10599, 3688, 1683, 3232, 803, 46, 310, 456, 837, 347, 2189, 45, 54, 49, 29820, 494, 244, 54, 731, 343, 649, 51, 903, 45, 125, 49, 244, 54, 46, 310, 649, 51, 25764, 365, 499, 222, 344, 1176, 444, 523, 630, 9609, 1850, 18021, 303, 362, 59, 299, 493, 584, 55, 45, 59, 46, 303, 362, 1362, 299, 447, 105, 59, 98, 338, 244, 59, 303, 8058, 299, 3558, 26773, 326, 51, 5209, 4950, 45, 105, 1362, 49, 244, 54, 53, 53, 53, 46, 303, 3558, 3570, 51, 85, 10599, 45, 12199, 46, 222 ]
[ "import", "Ġthink", "bay", "es", "2", "Ġas", "Ġthink", "bay", "es", "Ċ", "from", "Ġthink", "bay", "es", "2", "Ġimport", "ĠP", "mf", "Ċ", "import", "Ġthink", "plot", "ĊĊ", "Ċ", "class", "ĠD", "ice", "2", "(", "P", "mf", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġsides", "):", "ĊĠĠĠĠĠĠĠ", "ĠP", "mf", ".__", "init", "__(", "self", ")", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġx", "Ġin", "Ġrange", "(", "1", ",", "Ġsides", "Ġ+", "Ġ", "1", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "Set", "(", "x", ",", "Ġ", "1", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "Normalize", "()", "ĊĊ", "Ċ", "if", "Ġ__", "name", "__", "Ġ==", "Ġ\"__", "main", "__\":", "ĊĠĠĠ", "Ġd", "6", "Ġ=", "ĠD", "ice", "2", "(", "6", ")", "ĊĠĠĠ", "Ġd", "ices", "Ġ=", "Ġ[", "d", "6", "]", "Ġ*", "Ġ", "6", "ĊĠĠĠ", "Ġthree", "Ġ=", "Ġthink", "bay", "es", ".", "Sample", "Sum", "(", "d", "ices", ",", "Ġ", "1", "0", "0", "0", ")", "ĊĠĠĠ", "Ġthink", "plot", ".", "P", "mf", "(", "three", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18 ]
[ 1, 7, 13, 16, 18, 19, 22, 28, 31, 33, 1, 5, 11, 14, 16, 17, 24, 26, 28, 1, 7, 13, 17, 1, 1, 6, 8, 11, 12, 13, 14, 16, 18, 4, 8, 11, 15, 18, 22, 23, 29, 31, 8, 10, 12, 15, 19, 22, 26, 27, 8, 12, 14, 17, 23, 24, 25, 26, 32, 34, 35, 36, 38, 12, 17, 18, 21, 22, 23, 24, 25, 26, 27, 8, 13, 14, 23, 25, 1, 1, 3, 6, 10, 12, 15, 19, 23, 27, 4, 6, 7, 9, 11, 14, 15, 16, 17, 18, 4, 6, 10, 12, 14, 15, 16, 17, 19, 20, 21, 4, 10, 12, 18, 21, 23, 24, 30, 33, 34, 35, 39, 40, 41, 42, 43, 44, 45, 46, 4, 10, 14, 15, 16, 18, 19, 24, 25 ]
b9bd1c0f4a5d2e6eeb75ba4f27d33ad5fb22530e
# coding: utf-8 """ Upbit Open API ## REST API for Upbit Exchange - Base URL: [https://api.upbit.com] - Official Upbit API Documents: [https://docs.upbit.com] - Official Support email: [[email protected]] # noqa: E501 OpenAPI spec version: 1.0.0 Contact: [email protected] Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class DepositCompleteResponse(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = {"currency": "str", "deposit_address": "str", "secondary_address": "str"} attribute_map = {"currency": "currency", "deposit_address": "deposit_address", "secondary_address": "secondary_address"} def __init__(self, currency=None, deposit_address=None, secondary_address=None): # noqa: E501 """DepositCompleteResponse - a model defined in Swagger""" # noqa: E501 self._currency = None self._deposit_address = None self._secondary_address = None self.discriminator = None if currency is not None: self.currency = currency if deposit_address is not None: self.deposit_address = deposit_address if secondary_address is not None: self.secondary_address = secondary_address @property def currency(self): """Gets the currency of this DepositCompleteResponse. # noqa: E501 화폐를 의미하는 영문 대문자 코드 # noqa: E501 :return: The currency of this DepositCompleteResponse. # noqa: E501 :rtype: str """ return self._currency @currency.setter def currency(self, currency): """Sets the currency of this DepositCompleteResponse. 화폐를 의미하는 영문 대문자 코드 # noqa: E501 :param currency: The currency of this DepositCompleteResponse. # noqa: E501 :type: str """ self._currency = currency @property def deposit_address(self): """Gets the deposit_address of this DepositCompleteResponse. # noqa: E501 입금 주소 # noqa: E501 :return: The deposit_address of this DepositCompleteResponse. # noqa: E501 :rtype: str """ return self._deposit_address @deposit_address.setter def deposit_address(self, deposit_address): """Sets the deposit_address of this DepositCompleteResponse. 입금 주소 # noqa: E501 :param deposit_address: The deposit_address of this DepositCompleteResponse. # noqa: E501 :type: str """ self._deposit_address = deposit_address @property def secondary_address(self): """Gets the secondary_address of this DepositCompleteResponse. # noqa: E501 2차 입금 주소 # noqa: E501 :return: The secondary_address of this DepositCompleteResponse. # noqa: E501 :rtype: str """ return self._secondary_address @secondary_address.setter def secondary_address(self, secondary_address): """Sets the secondary_address of this DepositCompleteResponse. 2차 입금 주소 # noqa: E501 :param secondary_address: The secondary_address of this DepositCompleteResponse. # noqa: E501 :type: str """ self._secondary_address = secondary_address def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value)) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict( map(lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items()) ) else: result[attr] = value if issubclass(DepositCompleteResponse, dict): for key, value in self.items(): result[key] = value return result def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, DepositCompleteResponse): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
[ 40, 10633, 63, 6471, 50, 61, 222, 222, 3012, 222, 1405, 2417, 3944, 2347, 222, 222, 452, 12437, 2347, 456, 2791, 2417, 20034, 449, 3787, 3846, 63, 447, 662, 574, 1256, 51, 436, 2417, 51, 527, 98, 449, 43754, 583, 2791, 2417, 2347, 42869, 63, 447, 662, 574, 2198, 51, 436, 2417, 51, 527, 98, 449, 43754, 583, 6332, 4111, 63, 447, 1693, 50, 1256, 69, 436, 2417, 51, 527, 98, 280, 607, 16390, 63, 535, 58, 53, 54, 222, 222, 2981, 2571, 1394, 1522, 63, 244, 54, 51, 53, 51, 53, 222, 5883, 63, 1064, 23515, 285, 62, 57, 55, 69, 7265, 51, 527, 222, 6540, 829, 63, 1698, 574, 951, 51, 527, 52, 13166, 50, 1256, 52, 13166, 50, 18830, 51, 2929, 222, 3012, 222, 222, 485, 25852, 222, 485, 334, 244, 607, 16390, 63, 525, 57, 53, 54, 222, 222, 485, 18834, 499, 222, 842, 5412, 25321, 7375, 1416, 45, 1491, 731, 303, 1547, 10897, 63, 1369, 462, 458, 2283, 4741, 829, 341, 20305, 1361, 9790, 3477, 51, 465, 3291, 666, 4588, 341, 462, 10302, 51, 303, 1547, 465, 1547, 303, 18198, 63, 416, 20305, 100, 2529, 327, 2734, 731, 906, 1221, 458, 3895, 655, 1031, 480, 341, 804, 458, 3895, 847, 51, 416, 3895, 100, 1130, 327, 2734, 731, 906, 1221, 458, 3895, 655, 1031, 480, 341, 804, 458, 2379, 1221, 347, 5658, 51, 303, 1547, 303, 20305, 100, 2529, 299, 3479, 8088, 582, 332, 484, 411, 332, 26249, 100, 2485, 582, 332, 484, 411, 332, 11237, 100, 2485, 582, 332, 484, 3667, 465, 3895, 100, 1130, 299, 3479, 8088, 582, 332, 8088, 411, 332, 26249, 100, 2485, 582, 332, 26249, 100, 2485, 411, 332, 11237, 100, 2485, 582, 332, 11237, 100, 2485, 3667, 465, 684, 1176, 1683, 3232, 803, 49, 12429, 66, 2545, 49, 29161, 100, 2485, 66, 2545, 49, 16017, 100, 2485, 66, 2545, 731, 244, 607, 16390, 63, 535, 58, 53, 54, 310, 1547, 28327, 7375, 1416, 449, 331, 1573, 3433, 347, 28730, 3012, 244, 607, 16390, 63, 535, 58, 53, 54, 603, 649, 1132, 8088, 299, 1686, 310, 649, 1132, 26249, 100, 2485, 299, 1686, 310, 649, 1132, 11237, 100, 2485, 299, 1686, 310, 649, 51, 1303, 22279, 299, 1686, 603, 434, 12429, 458, 666, 1686, 63, 343, 649, 51, 8088, 299, 12429, 310, 434, 29161, 100, 2485, 458, 666, 1686, 63, 343, 649, 51, 26249, 100, 2485, 299, 29161, 100, 2485, 310, 434, 16017, 100, 2485, 458, 666, 1686, 63, 343, 649, 51, 11237, 100, 2485, 299, 16017, 100, 2485, 465, 496, 2449, 303, 684, 12429, 45, 803, 731, 310, 1547, 20916, 341, 12429, 451, 477, 5412, 25321, 7375, 1416, 51, 244, 607, 16390, 63, 535, 58, 53, 54, 603, 17155, 266, 42126, 262, 5561, 31104, 28539, 11739, 37046, 19004, 15789, 19004, 10764, 28527, 244, 607, 16390, 63, 535, 58, 53, 54, 603, 518, 620, 63, 906, 12429, 451, 477, 5412, 25321, 7375, 1416, 51, 244, 607, 16390, 63, 535, 58, 53, 54, 310, 518, 18388, 63, 615, 310, 1547, 310, 461, 649, 1132, 8088, 465, 496, 8088, 51, 16518, 303, 684, 12429, 45, 803, 49, 12429, 731, 310, 1547, 10532, 341, 12429, 451, 477, 5412, 25321, 7375, 1416, 51, 603, 17155, 266, 42126, 262, 5561, 31104, 28539, 11739, 37046, 19004, 15789, 19004, 10764, 28527, 244, 607, 16390, 63, 535, 58, 53, 54, 603, 518, 772, 12429, 63, 906, 12429, 451, 477, 5412, 25321, 7375, 1416, 51, 244, 607, 16390, 63, 535, 58, 53, 54, 310, 518, 700, 63, 615, 310, 1547, 603, 649, 1132, 8088, 299, 12429, 465, 496, 2449, 303, 684, 29161, 100, 2485, 45, 803, 731, 310, 1547, 20916, 341, 29161, 100, 2485, 451, 477, 5412, 25321, 7375, 1416, 51, 244, 607, 16390, 63, 535, 58, 53, 54, 603, 29371, 33738, 22857, 18411, 244, 607, 16390, 63, 535, 58, 53, 54, 603, 518, 620, 63, 906, 29161, 100, 2485, 451, 477, 5412, 25321, 7375, 1416, 51, 244, 607, 16390, 63, 535, 58, 53, 54, 310, 518, 18388, 63, 615, 310, 1547, 310, 461, 649, 1132, 26249, 100, 2485, 465, 496, 26249, 100, 2485, 51, 16518, 303, 684, 29161, 100, 2485, 45, 803, 49, 29161, 100, 2485, 731, 310, 1547, 10532, 341, 29161, 100, 2485, 451, 477, 5412, 25321, 7375, 1416, 51, 603, 29371, 33738, 22857, 18411, 244, 607, 16390, 63, 535, 58, 53, 54, 603, 518, 772, 29161, 100, 2485, 63, 906, 29161, 100, 2485, 451, 477, 5412, 25321, 7375, 1416, 51, 244, 607, 16390, 63, 535, 58, 53, 54, 310, 518, 700, 63, 615, 310, 1547, 603, 649, 1132, 26249, 100, 2485, 299, 29161, 100, 2485, 465, 496, 2449, 303, 684, 16017, 100, 2485, 45, 803, 731, 310, 1547, 20916, 341, 16017, 100, 2485, 451, 477, 5412, 25321, 7375, 1416, 51, 244, 607, 16390, 63, 535, 58, 53, 54, 11274, 55, 38321, 29371, 33738, 22857, 18411, 244, 607, 16390, 63, 535, 58, 53, 54, 603, 518, 620, 63, 906, 16017, 100, 2485, 451, 477, 5412, 25321, 7375, 1416, 51, 244, 607, 16390, 63, 535, 58, 53, 54, 310, 518, 18388, 63, 615, 310, 1547, 310, 461, 649, 1132, 11237, 100, 2485, 465, 496, 11237, 100, 2485, 51, 16518, 303, 684, 16017, 100, 2485, 45, 803, 49, 16017, 100, 2485, 731, 310, 1547, 10532, 341, 16017, 100, 2485, 451, 477, 5412, 25321, 7375, 1416, 51, 11274, 55, 38321, 29371, 33738, 22857, 18411, 244, 607, 16390, 63, 535, 58, 53, 54, 603, 518, 772, 16017, 100, 2485, 63, 906, 16017, 100, 2485, 451, 477, 5412, 25321, 7375, 1416, 51, 244, 607, 16390, 63, 535, 58, 53, 54, 310, 518, 700, 63, 615, 310, 1547, 603, 649, 1132, 11237, 100, 2485, 299, 16017, 100, 2485, 465, 684, 391, 100, 2734, 45, 803, 731, 310, 1547, 6972, 341, 1573, 4324, 641, 331, 5473, 3012, 310, 1074, 299, 2172, 603, 456, 5612, 49, 634, 347, 18834, 51, 41128, 45, 803, 51, 13166, 100, 2529, 731, 343, 804, 299, 18628, 45, 803, 49, 5612, 46, 343, 434, 6968, 45, 872, 49, 1168, 731, 419, 1074, 96, 2456, 98, 299, 1168, 45, 1130, 45, 6034, 837, 63, 837, 51, 471, 100, 2734, 365, 434, 19337, 45, 125, 49, 332, 471, 100, 2734, 678, 832, 837, 49, 804, 509, 343, 4378, 19337, 45, 872, 49, 332, 471, 100, 2734, 10320, 419, 1074, 96, 2456, 98, 299, 804, 51, 471, 100, 2734, 365, 343, 4378, 6968, 45, 872, 49, 5473, 731, 419, 1074, 96, 2456, 98, 299, 5473, 45, 547, 2010, 45, 6034, 1641, 63, 327, 1113, 96, 53, 636, 1641, 96, 54, 1015, 471, 100, 2734, 1177, 434, 19337, 45, 1113, 96, 54, 636, 332, 471, 100, 2734, 678, 832, 1641, 49, 804, 51, 3053, 1177, 419, 848, 343, 832, 63, 419, 1074, 96, 2456, 98, 299, 804, 310, 434, 458, 39464, 45, 28327, 7375, 1416, 49, 5473, 731, 343, 456, 1221, 49, 804, 347, 649, 51, 3053, 2284, 419, 1074, 96, 697, 98, 299, 804, 603, 461, 1074, 465, 684, 391, 100, 484, 45, 803, 731, 310, 1547, 6972, 341, 821, 10323, 451, 341, 1573, 3012, 310, 461, 25852, 51, 117, 1664, 45, 803, 51, 471, 100, 2734, 1177, 465, 684, 1176, 13767, 3232, 803, 731, 310, 1547, 1580, 548, 1243, 101, 480, 548, 612, 10752, 101, 3012, 310, 461, 649, 51, 471, 100, 484, 365, 465, 684, 1176, 3705, 3232, 803, 49, 1623, 731, 310, 1547, 6972, 878, 434, 4354, 4706, 904, 5058, 3012, 310, 434, 666, 6968, 45, 2476, 49, 5412, 25321, 7375, 1416, 731, 343, 461, 3208, 603, 461, 649, 3688, 2734, 523, 630, 1623, 3688, 2734, 523, 465, 684, 1176, 960, 3232, 803, 49, 1623, 731, 310, 1547, 6972, 878, 434, 4354, 4706, 904, 666, 5058, 3012, 310, 461, 666, 649, 630, 1623, 222 ]
[ "#", "Ġcoding", ":", "Ġutf", "-", "8", "Ċ", "Ċ", "\"\"\"", "Ċ", "Up", "bit", "ĠOpen", "ĠAPI", "Ċ", "Ċ", "##", "ĠREST", "ĠAPI", "Ġfor", "ĠUp", "bit", "ĠExchange", "Ġ-", "ĠBase", "ĠURL", ":", "Ġ[", "https", "://", "api", ".", "up", "bit", ".", "com", "]", "Ġ-", "ĠOffic", "ial", "ĠUp", "bit", "ĠAPI", "ĠDocuments", ":", "Ġ[", "https", "://", "docs", ".", "up", "bit", ".", "com", "]", "Ġ-", "ĠOffic", "ial", "ĠSupport", "Ġemail", ":", "Ġ[", "open", "-", "api", "@", "up", "bit", ".", "com", "]", "ĠĠ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "Ċ", "Ċ", "Open", "API", "Ġspec", "Ġversion", ":", "Ġ", "1", ".", "0", ".", "0", "Ċ", "Contact", ":", "Ġu", "jh", "in", "9", "4", "2", "@", "gmail", ".", "com", "Ċ", "Generated", "Ġby", ":", "Ġhttps", "://", "github", ".", "com", "/", "swagger", "-", "api", "/", "swagger", "-", "codegen", ".", "git", "Ċ", "\"\"\"", "Ċ", "Ċ", "import", "Ġpprint", "Ċ", "import", "Ġre", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠF", "4", "0", "1", "Ċ", "Ċ", "import", "Ġsix", "ĊĊ", "Ċ", "class", "ĠDep", "osit", "Complete", "Response", "(", "object", "):", "ĊĠĠĠ", "Ġ\"\"\"", "NOTE", ":", "ĠThis", "Ġclass", "Ġis", "Ġauto", "Ġgenerated", "Ġby", "Ġthe", "Ġswagger", "Ġcode", "Ġgenerator", "Ġprogram", ".", "ĊĊĠĠĠ", "ĠDo", "Ġnot", "Ġedit", "Ġthe", "Ġclass", "Ġmanually", ".", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "ĠAttributes", ":", "ĊĠĠĠĠĠ", "Ġswagger", "_", "types", "Ġ(", "dict", "):", "ĠThe", "Ġkey", "Ġis", "Ġattribute", "Ġname", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġand", "Ġthe", "Ġvalue", "Ġis", "Ġattribute", "Ġtype", ".", "ĊĠĠĠĠĠ", "Ġattribute", "_", "map", "Ġ(", "dict", "):", "ĠThe", "Ġkey", "Ġis", "Ġattribute", "Ġname", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġand", "Ġthe", "Ġvalue", "Ġis", "Ġjson", "Ġkey", "Ġin", "Ġdefinition", ".", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġswagger", "_", "types", "Ġ=", "Ġ{\"", "currency", "\":", "Ġ\"", "str", "\",", "Ġ\"", "deposit", "_", "address", "\":", "Ġ\"", "str", "\",", "Ġ\"", "secondary", "_", "address", "\":", "Ġ\"", "str", "\"}", "ĊĊĠĠĠ", "Ġattribute", "_", "map", "Ġ=", "Ġ{\"", "currency", "\":", "Ġ\"", "currency", "\",", "Ġ\"", "deposit", "_", "address", "\":", "Ġ\"", "deposit", "_", "address", "\",", "Ġ\"", "secondary", "_", "address", "\":", "Ġ\"", "secondary", "_", "address", "\"}", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġcurrency", "=", "None", ",", "Ġdeposit", "_", "address", "=", "None", ",", "Ġsecondary", "_", "address", "=", "None", "):", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Deposit", "Complete", "Response", "Ġ-", "Ġa", "Ġmodel", "Ġdefined", "Ġin", "ĠSwagger", "\"\"\"", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "ĊĊĠĠĠĠĠĠĠ", "Ġself", "._", "currency", "Ġ=", "ĠNone", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "deposit", "_", "address", "Ġ=", "ĠNone", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "secondary", "_", "address", "Ġ=", "ĠNone", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "dis", "criminator", "Ġ=", "ĠNone", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġcurrency", "Ġis", "Ġnot", "ĠNone", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "currency", "Ġ=", "Ġcurrency", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġdeposit", "_", "address", "Ġis", "Ġnot", "ĠNone", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "deposit", "_", "address", "Ġ=", "Ġdeposit", "_", "address", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġsecondary", "_", "address", "Ġis", "Ġnot", "ĠNone", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "secondary", "_", "address", "Ġ=", "Ġsecondary", "_", "address", "ĊĊĠĠĠ", "Ġ@", "property", "ĊĠĠĠ", "Ġdef", "Ġcurrency", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Gets", "Ġthe", "Ġcurrency", "Ġof", "Ġthis", "ĠDep", "osit", "Complete", "Response", ".", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "ĊĊĠĠĠĠĠĠĠ", "ĠíĻ", "Ķ", "íı", "IJ", "를", "ĠìĿĺ", "미", "íķĺëĬĶ", "Ġìĺģ", "문", "ĠëĮĢ", "문", "ìŀIJ", "Ġì½Ķëĵľ", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "ĊĊĠĠĠĠĠĠĠ", "Ġ:", "return", ":", "ĠThe", "Ġcurrency", "Ġof", "Ġthis", "ĠDep", "osit", "Complete", "Response", ".", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "ĊĠĠĠĠĠĠĠ", "Ġ:", "rtype", ":", "Ġstr", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", "._", "currency", "ĊĊĠĠĠ", "Ġ@", "currency", ".", "setter", "ĊĠĠĠ", "Ġdef", "Ġcurrency", "(", "self", ",", "Ġcurrency", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Sets", "Ġthe", "Ġcurrency", "Ġof", "Ġthis", "ĠDep", "osit", "Complete", "Response", ".", "ĊĊĠĠĠĠĠĠĠ", "ĠíĻ", "Ķ", "íı", "IJ", "를", "ĠìĿĺ", "미", "íķĺëĬĶ", "Ġìĺģ", "문", "ĠëĮĢ", "문", "ìŀIJ", "Ġì½Ķëĵľ", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "ĊĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġcurrency", ":", "ĠThe", "Ġcurrency", "Ġof", "Ġthis", "ĠDep", "osit", "Complete", "Response", ".", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "ĊĠĠĠĠĠĠĠ", "Ġ:", "type", ":", "Ġstr", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠĠĠĠĠ", "Ġself", "._", "currency", "Ġ=", "Ġcurrency", "ĊĊĠĠĠ", "Ġ@", "property", "ĊĠĠĠ", "Ġdef", "Ġdeposit", "_", "address", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Gets", "Ġthe", "Ġdeposit", "_", "address", "Ġof", "Ġthis", "ĠDep", "osit", "Complete", "Response", ".", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "ĊĊĠĠĠĠĠĠĠ", "Ġìŀħ", "ê¸Ī", "Ġ주", "ìĨĮ", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "ĊĊĠĠĠĠĠĠĠ", "Ġ:", "return", ":", "ĠThe", "Ġdeposit", "_", "address", "Ġof", "Ġthis", "ĠDep", "osit", "Complete", "Response", ".", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "ĊĠĠĠĠĠĠĠ", "Ġ:", "rtype", ":", "Ġstr", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", "._", "deposit", "_", "address", "ĊĊĠĠĠ", "Ġ@", "deposit", "_", "address", ".", "setter", "ĊĠĠĠ", "Ġdef", "Ġdeposit", "_", "address", "(", "self", ",", "Ġdeposit", "_", "address", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Sets", "Ġthe", "Ġdeposit", "_", "address", "Ġof", "Ġthis", "ĠDep", "osit", "Complete", "Response", ".", "ĊĊĠĠĠĠĠĠĠ", "Ġìŀħ", "ê¸Ī", "Ġ주", "ìĨĮ", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "ĊĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġdeposit", "_", "address", ":", "ĠThe", "Ġdeposit", "_", "address", "Ġof", "Ġthis", "ĠDep", "osit", "Complete", "Response", ".", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "ĊĠĠĠĠĠĠĠ", "Ġ:", "type", ":", "Ġstr", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠĠĠĠĠ", "Ġself", "._", "deposit", "_", "address", "Ġ=", "Ġdeposit", "_", "address", "ĊĊĠĠĠ", "Ġ@", "property", "ĊĠĠĠ", "Ġdef", "Ġsecondary", "_", "address", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Gets", "Ġthe", "Ġsecondary", "_", "address", "Ġof", "Ġthis", "ĠDep", "osit", "Complete", "Response", ".", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "ĊĊĠĠĠĠĠĠĠĠ", "2", "ì°¨", "Ġìŀħ", "ê¸Ī", "Ġ주", "ìĨĮ", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "ĊĊĠĠĠĠĠĠĠ", "Ġ:", "return", ":", "ĠThe", "Ġsecondary", "_", "address", "Ġof", "Ġthis", "ĠDep", "osit", "Complete", "Response", ".", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "ĊĠĠĠĠĠĠĠ", "Ġ:", "rtype", ":", "Ġstr", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", "._", "secondary", "_", "address", "ĊĊĠĠĠ", "Ġ@", "secondary", "_", "address", ".", "setter", "ĊĠĠĠ", "Ġdef", "Ġsecondary", "_", "address", "(", "self", ",", "Ġsecondary", "_", "address", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Sets", "Ġthe", "Ġsecondary", "_", "address", "Ġof", "Ġthis", "ĠDep", "osit", "Complete", "Response", ".", "ĊĊĠĠĠĠĠĠĠĠ", "2", "ì°¨", "Ġìŀħ", "ê¸Ī", "Ġ주", "ìĨĮ", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "ĊĊĠĠĠĠĠĠĠ", "Ġ:", "param", "Ġsecondary", "_", "address", ":", "ĠThe", "Ġsecondary", "_", "address", "Ġof", "Ġthis", "ĠDep", "osit", "Complete", "Response", ".", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠE", "5", "0", "1", "ĊĠĠĠĠĠĠĠ", "Ġ:", "type", ":", "Ġstr", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠĠĠĠĠ", "Ġself", "._", "secondary", "_", "address", "Ġ=", "Ġsecondary", "_", "address", "ĊĊĠĠĠ", "Ġdef", "Ġto", "_", "dict", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Returns", "Ġthe", "Ġmodel", "Ġproperties", "Ġas", "Ġa", "Ġdict", "\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġresult", "Ġ=", "Ġ{}", "ĊĊĠĠĠĠĠĠĠ", "Ġfor", "Ġattr", ",", "Ġ_", "Ġin", "Ġsix", ".", "iteritems", "(", "self", ".", "swagger", "_", "types", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġvalue", "Ġ=", "Ġgetattr", "(", "self", ",", "Ġattr", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġisinstance", "(", "value", ",", "Ġlist", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresult", "[", "attr", "]", "Ġ=", "Ġlist", "(", "map", "(", "lambda", "Ġx", ":", "Ġx", ".", "to", "_", "dict", "()", "Ġif", "Ġhasattr", "(", "x", ",", "Ġ\"", "to", "_", "dict", "\")", "Ġelse", "Ġx", ",", "Ġvalue", "))", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġhasattr", "(", "value", ",", "Ġ\"", "to", "_", "dict", "\"):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresult", "[", "attr", "]", "Ġ=", "Ġvalue", ".", "to", "_", "dict", "()", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelif", "Ġisinstance", "(", "value", ",", "Ġdict", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresult", "[", "attr", "]", "Ġ=", "Ġdict", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġmap", "(", "lambda", "Ġitem", ":", "Ġ(", "item", "[", "0", "],", "Ġitem", "[", "1", "].", "to", "_", "dict", "())", "Ġif", "Ġhasattr", "(", "item", "[", "1", "],", "Ġ\"", "to", "_", "dict", "\")", "Ġelse", "Ġitem", ",", "Ġvalue", ".", "items", "())", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresult", "[", "attr", "]", "Ġ=", "Ġvalue", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġis", "subclass", "(", "Deposit", "Complete", "Response", ",", "Ġdict", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġkey", ",", "Ġvalue", "Ġin", "Ġself", ".", "items", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġresult", "[", "key", "]", "Ġ=", "Ġvalue", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġresult", "ĊĊĠĠĠ", "Ġdef", "Ġto", "_", "str", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Returns", "Ġthe", "Ġstring", "Ġrepresentation", "Ġof", "Ġthe", "Ġmodel", "\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġpprint", ".", "p", "format", "(", "self", ".", "to", "_", "dict", "())", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "repr", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "For", "Ġ`", "print", "`", "Ġand", "Ġ`", "pp", "rint", "`", "\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".", "to", "_", "str", "()", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "eq", "__(", "self", ",", "Ġother", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Returns", "Ġtrue", "Ġif", "Ġboth", "Ġobjects", "Ġare", "Ġequal", "\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnot", "Ġisinstance", "(", "other", ",", "ĠDep", "osit", "Complete", "Response", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĠFalse", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", ".__", "dict", "__", "Ġ==", "Ġother", ".__", "dict", "__", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "ne", "__(", "self", ",", "Ġother", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Returns", "Ġtrue", "Ġif", "Ġboth", "Ġobjects", "Ġare", "Ġnot", "Ġequal", "\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġnot", "Ġself", "Ġ==", "Ġother", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 16, 16, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 25, 25, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 51, 51, 51, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 59, 59, 60, 60, 60, 60, 60, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 70, 70, 72, 72, 72, 72, 72, 72, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 82, 82, 83, 83, 83, 83, 83, 83, 83, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92, 92, 93, 93, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 97, 97, 97, 98, 98, 98, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 104, 104, 104, 104, 104, 105, 105, 106, 106, 106, 106, 106, 106, 106, 108, 108, 108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 115, 115, 115, 115, 115, 116, 116, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 120, 120, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 122, 122, 122, 122, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 125, 125, 125, 125, 125, 125, 125, 125, 125, 126, 126, 126, 126, 126, 126, 126, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, 130, 130, 130, 130, 130, 130, 130, 130, 131, 131, 131, 131, 131, 131, 131, 131, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 133, 133, 134, 134, 134, 135, 135, 135, 135, 135, 135, 135, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 138, 138, 138, 138, 138, 138, 138, 140, 140, 140, 142, 142, 142, 142, 142, 142, 142, 142, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 146, 146, 146, 146, 146, 146, 146, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 148, 148, 148, 148, 148, 148, 148, 148, 150, 150, 150, 150, 150, 150, 150, 150, 150, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 153, 153, 153, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 157, 157, 157, 157, 157, 157, 157, 157, 157, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 159, 159, 159, 159, 159, 159 ]
[ 1, 2, 9, 10, 14, 15, 16, 1, 1, 4, 1, 3, 6, 11, 15, 1, 1, 3, 8, 12, 16, 19, 22, 31, 33, 38, 42, 43, 45, 50, 53, 56, 57, 59, 62, 63, 66, 67, 69, 75, 78, 81, 84, 88, 98, 99, 101, 106, 109, 113, 114, 116, 119, 120, 123, 124, 126, 132, 135, 143, 149, 150, 152, 156, 157, 160, 161, 163, 166, 167, 170, 171, 173, 175, 180, 181, 183, 184, 185, 186, 1, 1, 5, 8, 13, 21, 22, 23, 24, 25, 26, 27, 28, 1, 8, 9, 11, 13, 15, 16, 17, 18, 19, 24, 25, 28, 1, 10, 13, 14, 20, 23, 29, 30, 33, 34, 41, 42, 45, 46, 53, 54, 61, 62, 65, 1, 4, 1, 1, 7, 14, 1, 7, 10, 11, 13, 18, 19, 21, 22, 23, 24, 1, 1, 7, 11, 1, 1, 6, 10, 14, 22, 30, 31, 37, 39, 4, 8, 12, 13, 18, 24, 27, 32, 42, 45, 49, 57, 62, 72, 80, 81, 4, 7, 11, 16, 20, 26, 35, 36, 4, 8, 4, 8, 4, 15, 16, 6, 14, 15, 20, 22, 26, 28, 32, 36, 39, 49, 54, 28, 32, 36, 42, 45, 55, 60, 61, 6, 16, 17, 20, 22, 26, 28, 32, 36, 39, 49, 54, 28, 32, 36, 42, 45, 50, 54, 57, 68, 69, 4, 8, 4, 12, 13, 18, 20, 23, 31, 33, 35, 38, 40, 42, 49, 50, 57, 59, 61, 64, 66, 68, 77, 78, 85, 87, 89, 92, 94, 4, 14, 15, 18, 20, 23, 31, 33, 35, 43, 45, 47, 54, 55, 62, 64, 66, 73, 74, 81, 83, 85, 94, 95, 102, 104, 106, 115, 116, 123, 125, 4, 8, 11, 15, 18, 22, 23, 32, 33, 37, 38, 46, 47, 54, 55, 59, 60, 70, 71, 78, 79, 83, 85, 86, 88, 93, 94, 96, 97, 98, 99, 8, 12, 19, 27, 35, 37, 39, 45, 53, 56, 64, 67, 68, 70, 75, 76, 78, 79, 80, 81, 8, 13, 15, 23, 25, 30, 8, 13, 15, 22, 23, 30, 32, 37, 8, 13, 15, 24, 25, 32, 34, 39, 8, 13, 14, 17, 27, 29, 34, 8, 11, 20, 23, 27, 32, 33, 12, 17, 18, 26, 28, 37, 8, 11, 19, 20, 27, 30, 34, 39, 40, 12, 17, 18, 25, 26, 33, 35, 43, 44, 51, 8, 11, 21, 22, 29, 32, 36, 41, 42, 12, 17, 18, 27, 28, 35, 37, 47, 48, 55, 4, 6, 14, 4, 8, 17, 18, 22, 24, 8, 12, 16, 20, 29, 32, 37, 41, 45, 53, 61, 62, 63, 65, 70, 71, 73, 74, 75, 76, 8, 9, 10, 10, 11, 12, 14, 15, 17, 19, 20, 22, 23, 24, 27, 28, 30, 35, 36, 38, 39, 40, 41, 8, 10, 16, 17, 21, 30, 33, 38, 42, 46, 54, 62, 63, 64, 66, 71, 72, 74, 75, 76, 77, 8, 10, 15, 16, 20, 8, 12, 8, 15, 20, 22, 30, 4, 6, 14, 15, 21, 4, 8, 17, 18, 22, 23, 32, 34, 8, 12, 16, 20, 29, 32, 37, 41, 45, 53, 61, 62, 8, 9, 10, 10, 11, 12, 14, 15, 17, 19, 20, 22, 23, 24, 27, 28, 30, 35, 36, 38, 39, 40, 41, 8, 10, 15, 24, 25, 29, 38, 41, 46, 50, 54, 62, 70, 71, 72, 74, 79, 80, 82, 83, 84, 85, 8, 10, 14, 15, 19, 8, 12, 8, 13, 15, 23, 25, 34, 4, 6, 14, 4, 8, 16, 17, 24, 25, 29, 31, 8, 12, 16, 20, 28, 29, 36, 39, 44, 48, 52, 60, 68, 69, 70, 72, 77, 78, 80, 81, 82, 83, 8, 10, 11, 13, 14, 15, 17, 22, 23, 25, 26, 27, 28, 8, 10, 16, 17, 21, 29, 30, 37, 40, 45, 49, 53, 61, 69, 70, 71, 73, 78, 79, 81, 82, 83, 84, 8, 10, 15, 16, 20, 8, 12, 8, 15, 20, 22, 29, 30, 37, 4, 6, 13, 14, 21, 22, 28, 4, 8, 16, 17, 24, 25, 29, 30, 38, 39, 46, 48, 8, 12, 16, 20, 28, 29, 36, 39, 44, 48, 52, 60, 68, 69, 8, 10, 11, 13, 14, 15, 17, 22, 23, 25, 26, 27, 28, 8, 10, 15, 23, 24, 31, 32, 36, 44, 45, 52, 55, 60, 64, 68, 76, 84, 85, 86, 88, 93, 94, 96, 97, 98, 99, 8, 10, 14, 15, 19, 8, 12, 8, 13, 15, 22, 23, 30, 32, 40, 41, 48, 4, 6, 14, 4, 8, 18, 19, 26, 27, 31, 33, 8, 12, 16, 20, 30, 31, 38, 41, 46, 50, 54, 62, 70, 71, 72, 74, 79, 80, 82, 83, 84, 85, 9, 10, 11, 13, 14, 16, 17, 18, 20, 25, 26, 28, 29, 30, 31, 8, 10, 16, 17, 21, 31, 32, 39, 42, 47, 51, 55, 63, 71, 72, 73, 75, 80, 81, 83, 84, 85, 86, 8, 10, 15, 16, 20, 8, 12, 8, 15, 20, 22, 31, 32, 39, 4, 6, 15, 16, 23, 24, 30, 4, 8, 18, 19, 26, 27, 31, 32, 42, 43, 50, 52, 8, 12, 16, 20, 30, 31, 38, 41, 46, 50, 54, 62, 70, 71, 9, 10, 11, 13, 14, 16, 17, 18, 20, 25, 26, 28, 29, 30, 31, 8, 10, 15, 25, 26, 33, 34, 38, 48, 49, 56, 59, 64, 68, 72, 80, 88, 89, 90, 92, 97, 98, 100, 101, 102, 103, 8, 10, 14, 15, 19, 8, 12, 8, 13, 15, 24, 25, 32, 34, 44, 45, 52, 4, 8, 11, 12, 16, 17, 21, 23, 8, 12, 19, 23, 29, 40, 43, 45, 50, 53, 8, 15, 17, 20, 8, 12, 17, 18, 20, 23, 27, 28, 37, 38, 42, 43, 50, 51, 56, 58, 12, 18, 20, 28, 29, 33, 34, 39, 40, 12, 15, 26, 27, 32, 33, 38, 40, 16, 23, 24, 28, 29, 31, 36, 37, 40, 41, 47, 49, 50, 52, 53, 55, 56, 60, 62, 65, 73, 74, 75, 76, 78, 80, 81, 85, 87, 92, 94, 95, 101, 103, 12, 17, 25, 26, 31, 32, 34, 36, 37, 41, 44, 16, 23, 24, 28, 29, 31, 37, 38, 40, 41, 45, 47, 12, 17, 28, 29, 34, 35, 40, 42, 16, 23, 24, 28, 29, 31, 36, 37, 20, 24, 25, 31, 36, 37, 39, 43, 44, 45, 47, 52, 53, 54, 56, 58, 59, 63, 66, 69, 77, 78, 82, 83, 84, 86, 88, 90, 91, 95, 97, 102, 107, 108, 114, 115, 120, 123, 16, 18, 12, 17, 18, 16, 23, 24, 28, 29, 31, 37, 8, 11, 14, 22, 23, 30, 38, 46, 47, 52, 54, 12, 16, 20, 21, 27, 30, 35, 36, 41, 44, 16, 23, 24, 27, 28, 30, 36, 8, 15, 22, 4, 8, 11, 12, 15, 16, 20, 22, 8, 12, 19, 23, 30, 45, 48, 52, 58, 61, 8, 15, 22, 23, 24, 30, 31, 35, 36, 38, 39, 43, 46, 4, 8, 11, 15, 18, 22, 24, 8, 12, 15, 17, 22, 23, 27, 29, 31, 35, 36, 39, 8, 15, 20, 21, 23, 24, 27, 29, 4, 8, 11, 13, 16, 20, 21, 27, 29, 8, 12, 19, 24, 27, 32, 40, 44, 50, 53, 8, 11, 15, 26, 27, 32, 33, 37, 41, 49, 57, 59, 12, 19, 25, 8, 15, 20, 23, 27, 29, 32, 38, 41, 45, 47, 4, 8, 11, 13, 16, 20, 21, 27, 29, 8, 12, 19, 24, 27, 32, 40, 44, 48, 54, 57, 8, 15, 19, 24, 27, 33 ]
d1dc807ecc92d9108db2c9bd00ee9781e174a1aa
from datetime import datetime from django.core import mail from entity_event import context_loader from entity_emailer.models import Email from entity_emailer.utils import ( get_medium, get_from_email_address, get_subscribed_email_addresses, create_email_message, extract_email_subject_from_html_content, ) class EntityEmailerInterface(object): """ An api interface to do things within entity emailer """ @staticmethod def send_unsent_scheduled_emails(): """ Send out any scheduled emails that are unsent """ current_time = datetime.utcnow() email_medium = get_medium() to_send = ( Email.objects.filter(scheduled__lte=current_time, sent__isnull=True) .select_related("event") .prefetch_related("recipients") ) # Fetch the contexts of every event so that they may be rendered context_loader.load_contexts_and_renderers([e.event for e in to_send], [email_medium]) emails = [] for email in to_send: to_email_addresses = get_subscribed_email_addresses(email) if to_email_addresses: text_message, html_message = email.render(email_medium) message = create_email_message( to_emails=to_email_addresses, from_email=email.from_address or get_from_email_address(), subject=email.subject or extract_email_subject_from_html_content(html_message), text=text_message, html=html_message, ) emails.append(message) connection = mail.get_connection() connection.send_messages(emails) to_send.update(sent=current_time) @staticmethod def convert_events_to_emails(): """ Converts unseen events to emails and marks them as seen. """ # Get the email medium email_medium = get_medium() # Get the default from email default_from_email = get_from_email_address() # Find any unseen events and create unsent email objects for event, targets in email_medium.events_targets(seen=False, mark_seen=True): # Check the event's context for a from_address, otherwise fallback to default from_address = event.context.get("from_address") or default_from_email # Create the emails Email.objects.create_email(event=event, from_address=from_address, recipients=targets)
[ 1097, 7181, 1220, 7181, 222, 222, 1097, 8532, 51, 1284, 1220, 10863, 222, 1097, 4436, 100, 1585, 1220, 1637, 100, 4579, 222, 222, 1097, 4436, 100, 1951, 284, 51, 3404, 1220, 10028, 222, 222, 1097, 4436, 100, 1951, 284, 51, 2324, 1220, 327, 303, 640, 100, 9998, 49, 303, 640, 100, 1097, 100, 1951, 100, 2485, 49, 303, 640, 100, 38382, 100, 1951, 100, 15092, 49, 303, 1506, 100, 1951, 100, 1454, 49, 303, 6600, 100, 1951, 100, 6264, 100, 1097, 100, 935, 100, 1304, 49, 222, 46, 499, 222, 842, 7276, 4490, 284, 3058, 45, 1491, 731, 303, 1547, 303, 2262, 4142, 2586, 391, 764, 6397, 4824, 4436, 4111, 284, 303, 1547, 465, 496, 16130, 303, 684, 3256, 100, 330, 5948, 100, 25349, 100, 28773, 2284, 310, 1547, 310, 8573, 986, 1364, 20413, 26893, 708, 904, 725, 5948, 310, 1547, 603, 1565, 100, 1021, 299, 7181, 51, 44050, 365, 310, 4111, 100, 9998, 299, 640, 100, 9998, 365, 310, 391, 100, 2729, 299, 327, 343, 10028, 51, 5754, 51, 2049, 45, 25349, 523, 23795, 66, 1719, 100, 1021, 49, 4643, 523, 47513, 66, 1844, 46, 343, 657, 1632, 100, 10518, 459, 1585, 678, 343, 657, 31496, 100, 10518, 459, 48718, 678, 310, 848, 603, 607, 15562, 341, 25231, 451, 3659, 1708, 1278, 708, 2974, 1648, 545, 14373, 310, 1637, 100, 4579, 51, 963, 100, 29483, 100, 382, 100, 3183, 502, 2034, 106, 51, 1585, 456, 503, 347, 391, 100, 2729, 636, 447, 1951, 100, 9998, 1156, 603, 26893, 299, 1627, 310, 456, 4111, 347, 391, 100, 2729, 63, 343, 391, 100, 1951, 100, 15092, 299, 640, 100, 38382, 100, 1951, 100, 15092, 45, 1951, 46, 343, 434, 391, 100, 1951, 100, 15092, 63, 419, 1367, 100, 1454, 49, 4177, 100, 1454, 299, 4111, 51, 3183, 45, 1951, 100, 9998, 46, 419, 1492, 299, 1506, 100, 1951, 100, 1454, 45, 547, 391, 100, 28773, 66, 471, 100, 1951, 100, 15092, 49, 547, 664, 100, 1951, 66, 1951, 51, 1097, 100, 2485, 575, 640, 100, 1097, 100, 1951, 100, 2485, 1046, 547, 5405, 66, 1951, 51, 6264, 575, 6600, 100, 1951, 100, 6264, 100, 1097, 100, 935, 100, 1304, 45, 935, 100, 1454, 490, 547, 1367, 66, 897, 100, 1454, 49, 547, 4177, 66, 935, 100, 1454, 49, 419, 848, 419, 26893, 51, 1713, 45, 1454, 46, 603, 3401, 299, 10863, 51, 390, 100, 3854, 365, 310, 3401, 51, 2729, 100, 6296, 45, 28773, 46, 310, 391, 100, 2729, 51, 1896, 45, 5948, 66, 1719, 100, 1021, 46, 465, 496, 16130, 303, 684, 4511, 100, 5070, 100, 471, 100, 28773, 2284, 310, 1547, 310, 25316, 725, 18458, 5233, 391, 26893, 480, 26760, 3049, 641, 10955, 51, 310, 1547, 603, 607, 1408, 341, 4111, 16523, 310, 4111, 100, 9998, 299, 640, 100, 9998, 365, 603, 607, 1408, 341, 1263, 664, 4111, 310, 1263, 100, 1097, 100, 1951, 299, 640, 100, 1097, 100, 1951, 100, 2485, 365, 603, 607, 7499, 1364, 725, 18458, 5233, 480, 1506, 725, 5948, 4111, 4706, 310, 456, 1708, 49, 11452, 347, 4111, 100, 9998, 51, 5070, 100, 12518, 45, 18458, 66, 2737, 49, 3658, 100, 18458, 66, 1844, 731, 343, 607, 3471, 341, 1708, 1200, 1637, 456, 331, 664, 100, 2485, 49, 5897, 17148, 391, 1263, 343, 664, 100, 2485, 299, 1708, 51, 1834, 51, 390, 459, 1097, 100, 2485, 678, 575, 1263, 100, 1097, 100, 1951, 1083, 607, 2673, 341, 26893, 343, 10028, 51, 5754, 51, 1315, 100, 1951, 45, 1585, 66, 1585, 49, 664, 100, 2485, 66, 1097, 100, 2485, 49, 44011, 66, 12518, 46, 222 ]
[ "from", "Ġdatetime", "Ġimport", "Ġdatetime", "Ċ", "Ċ", "from", "Ġdjango", ".", "core", "Ġimport", "Ġmail", "Ċ", "from", "Ġentity", "_", "event", "Ġimport", "Ġcontext", "_", "loader", "Ċ", "Ċ", "from", "Ġentity", "_", "email", "er", ".", "models", "Ġimport", "ĠEmail", "Ċ", "Ċ", "from", "Ġentity", "_", "email", "er", ".", "utils", "Ġimport", "Ġ(", "ĊĠĠĠ", "Ġget", "_", "medium", ",", "ĊĠĠĠ", "Ġget", "_", "from", "_", "email", "_", "address", ",", "ĊĠĠĠ", "Ġget", "_", "subscribed", "_", "email", "_", "addresses", ",", "ĊĠĠĠ", "Ġcreate", "_", "email", "_", "message", ",", "ĊĠĠĠ", "Ġextract", "_", "email", "_", "subject", "_", "from", "_", "html", "_", "content", ",", "Ċ", ")", "ĊĊ", "Ċ", "class", "ĠEntity", "Email", "er", "Interface", "(", "object", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "ĠAn", "Ġapi", "Ġinterface", "Ġto", "Ġdo", "Ġthings", "Ġwithin", "Ġentity", "Ġemail", "er", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠ", "Ġ@", "staticmethod", "ĊĠĠĠ", "Ġdef", "Ġsend", "_", "un", "sent", "_", "scheduled", "_", "emails", "():", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠSend", "Ġout", "Ġany", "Ġscheduled", "Ġemails", "Ġthat", "Ġare", "Ġun", "sent", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠĠĠĠĠ", "Ġcurrent", "_", "time", "Ġ=", "Ġdatetime", ".", "utcnow", "()", "ĊĠĠĠĠĠĠĠ", "Ġemail", "_", "medium", "Ġ=", "Ġget", "_", "medium", "()", "ĊĠĠĠĠĠĠĠ", "Ġto", "_", "send", "Ġ=", "Ġ(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "ĠEmail", ".", "objects", ".", "filter", "(", "scheduled", "__", "lte", "=", "current", "_", "time", ",", "Ġsent", "__", "isnull", "=", "True", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ.", "select", "_", "related", "(\"", "event", "\")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ.", "prefetch", "_", "related", "(\"", "recipients", "\")", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠFetch", "Ġthe", "Ġcontexts", "Ġof", "Ġevery", "Ġevent", "Ġso", "Ġthat", "Ġthey", "Ġmay", "Ġbe", "Ġrendered", "ĊĠĠĠĠĠĠĠ", "Ġcontext", "_", "loader", ".", "load", "_", "contexts", "_", "and", "_", "render", "ers", "([", "e", ".", "event", "Ġfor", "Ġe", "Ġin", "Ġto", "_", "send", "],", "Ġ[", "email", "_", "medium", "])", "ĊĊĠĠĠĠĠĠĠ", "Ġemails", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġemail", "Ġin", "Ġto", "_", "send", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġto", "_", "email", "_", "addresses", "Ġ=", "Ġget", "_", "subscribed", "_", "email", "_", "addresses", "(", "email", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġto", "_", "email", "_", "addresses", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtext", "_", "message", ",", "Ġhtml", "_", "message", "Ġ=", "Ġemail", ".", "render", "(", "email", "_", "medium", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġmessage", "Ġ=", "Ġcreate", "_", "email", "_", "message", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġto", "_", "emails", "=", "to", "_", "email", "_", "addresses", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġfrom", "_", "email", "=", "email", ".", "from", "_", "address", "Ġor", "Ġget", "_", "from", "_", "email", "_", "address", "(),", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġsubject", "=", "email", ".", "subject", "Ġor", "Ġextract", "_", "email", "_", "subject", "_", "from", "_", "html", "_", "content", "(", "html", "_", "message", "),", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġtext", "=", "text", "_", "message", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġhtml", "=", "html", "_", "message", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ)", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġemails", ".", "append", "(", "message", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġconnection", "Ġ=", "Ġmail", ".", "get", "_", "connection", "()", "ĊĠĠĠĠĠĠĠ", "Ġconnection", ".", "send", "_", "messages", "(", "emails", ")", "ĊĠĠĠĠĠĠĠ", "Ġto", "_", "send", ".", "update", "(", "sent", "=", "current", "_", "time", ")", "ĊĊĠĠĠ", "Ġ@", "staticmethod", "ĊĠĠĠ", "Ġdef", "Ġconvert", "_", "events", "_", "to", "_", "emails", "():", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "ĠConverts", "Ġun", "seen", "Ġevents", "Ġto", "Ġemails", "Ġand", "Ġmarks", "Ġthem", "Ġas", "Ġseen", ".", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠGet", "Ġthe", "Ġemail", "Ġmedium", "ĊĠĠĠĠĠĠĠ", "Ġemail", "_", "medium", "Ġ=", "Ġget", "_", "medium", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠGet", "Ġthe", "Ġdefault", "Ġfrom", "Ġemail", "ĊĠĠĠĠĠĠĠ", "Ġdefault", "_", "from", "_", "email", "Ġ=", "Ġget", "_", "from", "_", "email", "_", "address", "()", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠFind", "Ġany", "Ġun", "seen", "Ġevents", "Ġand", "Ġcreate", "Ġun", "sent", "Ġemail", "Ġobjects", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġevent", ",", "Ġtargets", "Ġin", "Ġemail", "_", "medium", ".", "events", "_", "targets", "(", "seen", "=", "False", ",", "Ġmark", "_", "seen", "=", "True", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "ĠCheck", "Ġthe", "Ġevent", "'s", "Ġcontext", "Ġfor", "Ġa", "Ġfrom", "_", "address", ",", "Ġotherwise", "Ġfallback", "Ġto", "Ġdefault", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfrom", "_", "address", "Ġ=", "Ġevent", ".", "context", ".", "get", "(\"", "from", "_", "address", "\")", "Ġor", "Ġdefault", "_", "from", "_", "email", "ĊĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "ĠCreate", "Ġthe", "Ġemails", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "ĠEmail", ".", "objects", ".", "create", "_", "email", "(", "event", "=", "event", ",", "Ġfrom", "_", "address", "=", "from", "_", "address", ",", "Ġrecipients", "=", "targets", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 50, 50, 51, 51, 51, 51, 51, 51, 51, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75 ]
[ 1, 5, 14, 21, 30, 1, 1, 5, 12, 13, 17, 24, 29, 1, 5, 12, 13, 18, 25, 33, 34, 40, 1, 1, 5, 12, 13, 18, 20, 21, 27, 34, 40, 1, 1, 5, 12, 13, 18, 20, 21, 26, 33, 35, 4, 8, 9, 15, 16, 4, 8, 9, 13, 14, 19, 20, 27, 28, 4, 8, 9, 19, 20, 25, 26, 35, 36, 4, 11, 12, 17, 18, 25, 26, 4, 12, 13, 18, 19, 26, 27, 31, 32, 36, 37, 44, 45, 1, 2, 1, 1, 6, 13, 18, 20, 29, 30, 36, 38, 4, 8, 4, 7, 11, 21, 24, 27, 34, 41, 48, 54, 56, 4, 8, 4, 6, 18, 4, 8, 13, 14, 16, 20, 21, 30, 31, 37, 40, 8, 12, 8, 13, 17, 21, 31, 38, 43, 47, 50, 54, 8, 12, 8, 16, 17, 21, 23, 32, 33, 39, 41, 8, 14, 15, 21, 23, 27, 28, 34, 36, 8, 11, 12, 16, 18, 20, 12, 18, 19, 26, 27, 33, 34, 43, 45, 48, 49, 56, 57, 61, 62, 67, 69, 75, 76, 80, 81, 12, 14, 20, 21, 28, 30, 35, 37, 12, 14, 22, 23, 30, 32, 42, 44, 8, 10, 8, 10, 16, 20, 29, 32, 38, 44, 47, 52, 57, 61, 64, 73, 8, 16, 17, 23, 24, 28, 29, 37, 38, 41, 42, 48, 51, 53, 54, 55, 60, 64, 66, 69, 72, 73, 77, 79, 81, 86, 87, 93, 95, 8, 15, 17, 20, 8, 12, 18, 21, 24, 25, 29, 30, 12, 15, 16, 21, 22, 31, 33, 37, 38, 48, 49, 54, 55, 64, 65, 70, 71, 12, 15, 18, 19, 24, 25, 34, 35, 16, 21, 22, 29, 30, 35, 36, 43, 45, 51, 52, 58, 59, 64, 65, 71, 72, 16, 24, 26, 33, 34, 39, 40, 47, 48, 20, 23, 24, 30, 31, 33, 34, 39, 40, 49, 50, 20, 25, 26, 31, 32, 37, 38, 42, 43, 50, 53, 57, 58, 62, 63, 68, 69, 76, 79, 20, 28, 29, 34, 35, 42, 45, 53, 54, 59, 60, 67, 68, 72, 73, 77, 78, 85, 86, 90, 91, 98, 100, 20, 25, 26, 30, 31, 38, 39, 20, 25, 26, 30, 31, 38, 39, 16, 18, 16, 23, 24, 30, 31, 38, 39, 8, 19, 21, 26, 27, 30, 31, 41, 43, 8, 19, 20, 24, 25, 33, 34, 40, 41, 8, 11, 12, 16, 17, 23, 24, 28, 29, 36, 37, 41, 42, 4, 6, 18, 4, 8, 16, 17, 23, 24, 26, 27, 33, 36, 8, 12, 8, 17, 20, 24, 31, 34, 41, 45, 51, 56, 59, 64, 65, 8, 12, 8, 10, 14, 18, 24, 31, 8, 14, 15, 21, 23, 27, 28, 34, 36, 8, 10, 14, 18, 26, 31, 37, 8, 16, 17, 21, 22, 27, 29, 33, 34, 38, 39, 44, 45, 52, 54, 8, 10, 15, 19, 22, 26, 33, 37, 44, 47, 51, 57, 65, 8, 12, 18, 19, 27, 30, 36, 37, 43, 44, 50, 51, 58, 59, 63, 64, 69, 70, 75, 76, 80, 81, 85, 87, 12, 14, 20, 24, 30, 32, 40, 44, 46, 51, 52, 59, 60, 70, 79, 82, 90, 12, 17, 18, 25, 27, 33, 34, 41, 42, 45, 47, 51, 52, 59, 61, 64, 72, 73, 77, 78, 83, 12, 14, 21, 25, 32, 12, 18, 19, 26, 27, 33, 34, 39, 40, 45, 46, 51, 52, 57, 58, 65, 66, 70, 71, 78, 79, 90, 91, 98, 99 ]
7a1be5c9c48413ba1969631e99ecb45cf15ef613
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.core.validators class Migration(migrations.Migration): dependencies = [ ("Registration", "0015_auto_20150525_1815"), ] operations = [ migrations.AlterField( model_name="user", name="created_date", field=models.DateField(auto_now_add=True), ), migrations.AlterField( model_name="user", name="last_login", field=models.DateTimeField(null=True, verbose_name="last login", blank=True), ), migrations.AlterField( model_name="user", name="modified_date", field=models.DateField(auto_now=True), ), migrations.AlterField( model_name="user_skills", name="percentage", field=models.PositiveSmallIntegerField( default=0, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100)], ), ), ]
[ 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 1097, 1176, 9689, 523, 1220, 15393, 100, 30828, 222, 222, 1097, 8532, 51, 1219, 1220, 12520, 49, 4590, 222, 485, 8532, 51, 1284, 51, 24878, 499, 222, 842, 18572, 45, 19772, 51, 12071, 731, 303, 6450, 299, 447, 310, 2903, 11509, 411, 332, 53, 53, 54, 58, 100, 2853, 100, 55, 53, 54, 58, 53, 58, 55, 58, 100, 54, 61, 54, 58, 2132, 303, 1499, 465, 7392, 299, 447, 310, 12520, 51, 18835, 1195, 45, 343, 1573, 100, 444, 366, 514, 411, 343, 655, 366, 4536, 100, 787, 411, 343, 1620, 66, 3404, 51, 1563, 1195, 45, 2853, 100, 2192, 100, 688, 66, 1844, 490, 310, 2604, 310, 12520, 51, 18835, 1195, 45, 343, 1573, 100, 444, 366, 514, 411, 343, 655, 366, 2153, 100, 3632, 411, 343, 1620, 66, 3404, 51, 36134, 45, 1710, 66, 1844, 49, 9628, 100, 444, 366, 2153, 6212, 411, 11778, 66, 1844, 490, 310, 2604, 310, 12520, 51, 18835, 1195, 45, 343, 1573, 100, 444, 366, 514, 411, 343, 655, 366, 10492, 100, 787, 411, 343, 1620, 66, 3404, 51, 1563, 1195, 45, 2853, 100, 2192, 66, 1844, 490, 310, 2604, 310, 12520, 51, 18835, 1195, 45, 343, 1573, 100, 444, 366, 514, 100, 25048, 411, 343, 655, 366, 20093, 411, 343, 1620, 66, 3404, 51, 17982, 12480, 30363, 45, 419, 1263, 66, 53, 49, 419, 27948, 6094, 11025, 51, 1284, 51, 24878, 51, 34429, 7069, 45, 53, 490, 8532, 51, 1284, 51, 24878, 51, 25795, 7069, 45, 54, 53, 53, 14237, 343, 2604, 310, 2604, 303, 1499, 222 ]
[ "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "from", "Ġ__", "future", "__", "Ġimport", "Ġunicode", "_", "literals", "Ċ", "Ċ", "from", "Ġdjango", ".", "db", "Ġimport", "Ġmigrations", ",", "Ġmodels", "Ċ", "import", "Ġdjango", ".", "core", ".", "validators", "ĊĊ", "Ċ", "class", "ĠMigration", "(", "migrations", ".", "Migration", "):", "ĊĠĠĠ", "Ġdependencies", "Ġ=", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġ(\"", "Registration", "\",", "Ġ\"", "0", "0", "1", "5", "_", "auto", "_", "2", "0", "1", "5", "0", "5", "2", "5", "_", "1", "8", "1", "5", "\"),", "ĊĠĠĠ", "Ġ]", "ĊĊĠĠĠ", "Ġoperations", "Ġ=", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġmigrations", ".", "Alter", "Field", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġmodel", "_", "name", "=\"", "user", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġname", "=\"", "created", "_", "date", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfield", "=", "models", ".", "Date", "Field", "(", "auto", "_", "now", "_", "add", "=", "True", "),", "ĊĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠĠĠĠĠ", "Ġmigrations", ".", "Alter", "Field", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġmodel", "_", "name", "=\"", "user", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġname", "=\"", "last", "_", "login", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfield", "=", "models", ".", "DateTimeField", "(", "null", "=", "True", ",", "Ġverbose", "_", "name", "=\"", "last", "Ġlogin", "\",", "Ġblank", "=", "True", "),", "ĊĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠĠĠĠĠ", "Ġmigrations", ".", "Alter", "Field", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġmodel", "_", "name", "=\"", "user", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġname", "=\"", "modified", "_", "date", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfield", "=", "models", ".", "Date", "Field", "(", "auto", "_", "now", "=", "True", "),", "ĊĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠĠĠĠĠ", "Ġmigrations", ".", "Alter", "Field", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġmodel", "_", "name", "=\"", "user", "_", "skills", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġname", "=\"", "percentage", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfield", "=", "models", ".", "Positive", "Small", "IntegerField", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdefault", "=", "0", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġvalidators", "=[", "django", ".", "core", ".", "validators", ".", "MinValue", "Validator", "(", "0", "),", "Ġdjango", ".", "core", ".", "validators", ".", "MaxValue", "Validator", "(", "1", "0", "0", ")],", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠ", "Ġ]", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 36, 36, 37, 37 ]
[ 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 5, 8, 14, 16, 23, 31, 32, 40, 1, 1, 5, 12, 13, 15, 22, 33, 34, 41, 1, 7, 14, 15, 19, 20, 30, 1, 1, 6, 16, 17, 27, 28, 37, 39, 4, 17, 19, 21, 8, 11, 23, 25, 27, 28, 29, 30, 31, 32, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 53, 4, 6, 4, 15, 17, 19, 8, 19, 20, 25, 30, 31, 12, 18, 19, 23, 25, 29, 31, 12, 17, 19, 26, 27, 31, 33, 12, 18, 19, 25, 26, 30, 35, 36, 40, 41, 44, 45, 48, 49, 53, 55, 8, 11, 8, 19, 20, 25, 30, 31, 12, 18, 19, 23, 25, 29, 31, 12, 17, 19, 23, 24, 29, 31, 12, 18, 19, 25, 26, 39, 40, 44, 45, 49, 50, 58, 59, 63, 65, 69, 75, 77, 83, 84, 88, 90, 8, 11, 8, 19, 20, 25, 30, 31, 12, 18, 19, 23, 25, 29, 31, 12, 17, 19, 27, 28, 32, 34, 12, 18, 19, 25, 26, 30, 35, 36, 40, 41, 44, 45, 49, 51, 8, 11, 8, 19, 20, 25, 30, 31, 12, 18, 19, 23, 25, 29, 30, 36, 38, 12, 17, 19, 29, 31, 12, 18, 19, 25, 26, 34, 39, 51, 52, 16, 24, 25, 26, 27, 16, 27, 29, 35, 36, 40, 41, 51, 52, 60, 69, 70, 71, 73, 80, 81, 85, 86, 96, 97, 105, 114, 115, 116, 117, 118, 121, 12, 15, 8, 11, 4, 6 ]
34b23e80b3c4aaf62f31c19fee0b47ace1561a8c
# cor = input('Escolha uma cor: ') # print(f"Cor escolhida {cor:=^10}\n" # f"Cor escolhida {cor:>10}\n" # f"Cor escolhida {cor:<10}\n") n1 = 7 n2 = 3 # print(f'Soma {n1+n2}') s = n1 + n2 m = n1 * n2 d = n1 / n2 di = n1 // n2 e = n1**n2 print(f"s = {s}\n m = {m}\n d = {d:.2f}\n di = {di}\n e = {e}", end="")
[ 40, 6715, 299, 1533, 482, 17583, 770, 4958, 9432, 6715, 63, 11172, 222, 40, 1489, 45, 107, 39, 8714, 47553, 109, 8802, 320, 2881, 13639, 99, 54, 53, 4127, 115, 39, 222, 40, 315, 39, 8714, 47553, 109, 8802, 320, 2881, 63, 67, 54, 53, 4127, 115, 39, 222, 40, 315, 39, 8714, 47553, 109, 8802, 320, 2881, 14028, 54, 53, 4127, 115, 678, 222, 222, 115, 54, 299, 244, 60, 222, 115, 55, 299, 244, 56, 222, 222, 40, 1489, 45, 107, 44, 88, 15809, 320, 115, 54, 48, 115, 55, 15998, 222, 222, 120, 299, 329, 54, 494, 329, 55, 222, 114, 299, 329, 54, 338, 329, 55, 222, 105, 299, 329, 54, 536, 329, 55, 222, 1351, 299, 329, 54, 453, 329, 55, 222, 106, 299, 329, 54, 345, 115, 55, 222, 1243, 45, 107, 39, 120, 299, 320, 120, 4127, 115, 364, 299, 320, 114, 4127, 115, 362, 299, 320, 105, 15696, 55, 107, 4127, 115, 2090, 299, 320, 1351, 4127, 115, 503, 299, 320, 106, 6557, 962, 38983, 222 ]
[ "#", "Ġcor", "Ġ=", "Ġinput", "('", "Es", "col", "ha", "Ġuma", "Ġcor", ":", "Ġ')", "Ċ", "#", "Ġprint", "(", "f", "\"", "Cor", "Ġescol", "h", "ida", "Ġ{", "cor", ":=", "^", "1", "0", "}\\", "n", "\"", "Ċ", "#", "Ġf", "\"", "Cor", "Ġescol", "h", "ida", "Ġ{", "cor", ":", ">", "1", "0", "}\\", "n", "\"", "Ċ", "#", "Ġf", "\"", "Cor", "Ġescol", "h", "ida", "Ġ{", "cor", ":<", "1", "0", "}\\", "n", "\")", "Ċ", "Ċ", "n", "1", "Ġ=", "Ġ", "7", "Ċ", "n", "2", "Ġ=", "Ġ", "3", "Ċ", "Ċ", "#", "Ġprint", "(", "f", "'", "S", "oma", "Ġ{", "n", "1", "+", "n", "2", "}')", "Ċ", "Ċ", "s", "Ġ=", "Ġn", "1", "Ġ+", "Ġn", "2", "Ċ", "m", "Ġ=", "Ġn", "1", "Ġ*", "Ġn", "2", "Ċ", "d", "Ġ=", "Ġn", "1", "Ġ/", "Ġn", "2", "Ċ", "di", "Ġ=", "Ġn", "1", "Ġ//", "Ġn", "2", "Ċ", "e", "Ġ=", "Ġn", "1", "**", "n", "2", "Ċ", "print", "(", "f", "\"", "s", "Ġ=", "Ġ{", "s", "}\\", "n", "Ġm", "Ġ=", "Ġ{", "m", "}\\", "n", "Ġd", "Ġ=", "Ġ{", "d", ":.", "2", "f", "}\\", "n", "Ġdi", "Ġ=", "Ġ{", "di", "}\\", "n", "Ġe", "Ġ=", "Ġ{", "e", "}\",", "Ġend", "=\"\")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16 ]
[ 1, 2, 6, 8, 14, 16, 18, 21, 23, 27, 31, 32, 35, 1, 2, 8, 9, 10, 11, 14, 20, 21, 24, 26, 29, 31, 32, 33, 34, 36, 37, 38, 1, 2, 4, 5, 8, 14, 15, 18, 20, 23, 24, 25, 26, 27, 29, 30, 31, 1, 2, 4, 5, 8, 14, 15, 18, 20, 23, 25, 26, 27, 29, 30, 32, 1, 1, 2, 3, 5, 6, 7, 1, 2, 3, 5, 6, 7, 1, 1, 2, 8, 9, 10, 11, 12, 15, 17, 18, 19, 20, 21, 22, 25, 1, 1, 2, 4, 6, 7, 9, 11, 12, 1, 2, 4, 6, 7, 9, 11, 12, 1, 2, 4, 6, 7, 9, 11, 12, 1, 3, 5, 7, 8, 11, 13, 14, 1, 2, 4, 6, 7, 9, 10, 11, 1, 6, 7, 8, 9, 10, 12, 14, 15, 17, 18, 20, 22, 24, 25, 27, 28, 30, 32, 34, 35, 37, 38, 39, 41, 42, 45, 47, 49, 51, 53, 54, 56, 58, 60, 61, 64, 68, 72 ]
c52d1c187edb17e85a8e2b47aa6731bc9a41ab1b
print("Hello Workls!")
[ 1243, 459, 8302, 6352, 3259, 16013, 222 ]
[ "print", "(\"", "Hello", "ĠWork", "ls", "!\")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 6, 8, 13, 18, 20, 23 ]