content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# -*- coding: utf-8 -*- import zmq import cPickle from zsync_logger import MYLOGGER as logging from collections import deque import zhelpers import time
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 1976, 76, 80, 198, 11748, 269, 31686, 293, 198, 6738, 1976, 27261, 62, 6404, 1362, 1330, 17615, 25294, 30373, 355, 18931, 198, 6738, 17268, 1330, 390, 4188, 198, 11748, 1976, 16794, 364, 198, 11748, 640, 628, 628 ]
2.962264
53
from django.views.generic import TemplateView, DetailView, CreateView from .models import User
[ 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 37350, 7680, 11, 42585, 7680, 11, 13610, 7680, 198, 198, 6738, 764, 27530, 1330, 11787, 628, 628, 198 ]
3.846154
26
from dataclasses import dataclass @dataclass @dataclass @dataclass @dataclass
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 628, 198, 31, 19608, 330, 31172, 628, 198, 31, 19608, 330, 31172, 628, 198, 31, 19608, 330, 31172, 628, 198, 31, 19608, 330, 31172, 198 ]
2.606061
33
from django import forms
[ 6738, 42625, 14208, 1330, 5107 ]
4.8
5
# Copyright (c) 2018 ISP RAS (http://www.ispras.ru) # Ivannikov Institute for System Programming of the Russian Academy of Sciences # # 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. import re from clade import Clade
[ 2, 15069, 357, 66, 8, 2864, 33086, 371, 1921, 357, 4023, 1378, 2503, 13, 271, 1050, 292, 13, 622, 8, 198, 2, 16975, 1236, 1134, 709, 5136, 329, 4482, 30297, 286, 262, 3394, 8581, 286, 13473, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2, 198, 2, 220, 220, 220, 220, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 198, 2, 198, 2, 17486, 2672, 416, 9723, 1099, 393, 4987, 284, 287, 3597, 11, 3788, 198, 2, 9387, 739, 262, 13789, 318, 9387, 319, 281, 366, 1921, 3180, 1, 29809, 1797, 11, 198, 2, 42881, 34764, 11015, 6375, 7102, 49828, 11053, 3963, 15529, 509, 12115, 11, 2035, 4911, 393, 17142, 13, 198, 2, 4091, 262, 13789, 329, 262, 2176, 3303, 15030, 21627, 290, 198, 2, 11247, 739, 262, 13789, 13, 198, 198, 11748, 302, 198, 198, 6738, 537, 671, 1330, 1012, 671, 628 ]
3.743455
191
from django.contrib import admin from rent.models import Rent,Car # Register your models here. admin.site.register(Rent,RentAdmin) admin.site.register(Car,CarAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 5602, 13, 27530, 1330, 29832, 11, 9914, 198, 2, 17296, 534, 4981, 994, 13, 198, 198, 28482, 13, 15654, 13, 30238, 7, 49, 298, 11, 49, 298, 46787, 8, 198, 198, 28482, 13, 15654, 13, 30238, 7, 9914, 11, 9914, 46787, 8, 628 ]
3.169811
53
""" Handles /webhooks endpoint Doc: https://developers.mailersend.com/api/v1/webhooks.html """ import requests from mailersend.base import base data = {} class NewWebhook(base.NewAPIClient): """ Instantiates the /webhooks endpoint object """ def __init__(self): """ NewWebhook constructor """ pass def get_webhooks(self, domain_id): """ Returns a JSON response from the MailerSend API @params: domain_id (str): A domain ID """ request = requests.get( f"{self.api_base}/webhooks", headers=self.headers_default, json={"domain_id": domain_id}, ) return request.text def get_webhook_by_id(self, webhook_id): """ Returns a JSON response from the MailerSend API @params: webhook_id (str): A webhook ID """ request = requests.get( f"{self.api_base}/webhooks/{webhook_id}", headers=self.headers_default ) return request.text def set_webhook_url(self, webhook_url): """ Sets the webhook 'url' field @params: webhook_url (str): A webhook URL """ data["url"] = webhook_url def set_webhook_name(self, webhook_name): """ Sets the webhook 'name' field @params: webhook_name (str): A webhook name """ data["name"] = webhook_name def set_webhook_events(self, events): """ Sets the webhook 'events' field @params: events (list): A list containing valid events """ data["events"] = events def set_webhook_enabled(self, enabled=True): """ Sets the webhook 'enabled' status field @params: enabled (bool): Controls webhook status """ data["enabled"] = enabled def set_webhook_domain(self, domain_id): """ Sets the webhook 'domain_id' status field @params: domain_id (str): A valid domain ID """ data["domain_id"] = domain_id def update_webhook(self, webhook_id, key, value): """ Updates a webhook setting @params: webhook_id (str): A valid webhook ID key (str): A setting key value (str): Corresponding keys value """ request = requests.put( f"{self.api_base}/webhooks/{webhook_id}", headers=self.headers_default, json={f"{key}": value}, ) return request.text def delete_webhook(self, webhook_id): """ Returns a JSON response from the MailerSend API @params: webhook_id (str): A valid webhook ID """ request = requests.delete( f"{self.api_base}/webhooks/{webhook_id}", headers=self.headers_default ) return request.text def create_webhook(self): """ Returns a JSON response from the MailerSend API """ request = requests.post( f"{self.api_base}/webhooks", headers=self.headers_default, json=data ) return request.text
[ 37811, 198, 12885, 829, 1220, 12384, 25480, 82, 36123, 198, 23579, 25, 3740, 1378, 16244, 364, 13, 4529, 364, 437, 13, 785, 14, 15042, 14, 85, 16, 14, 12384, 25480, 82, 13, 6494, 198, 37811, 198, 198, 11748, 7007, 198, 6738, 6920, 364, 437, 13, 8692, 1330, 2779, 198, 198, 7890, 796, 23884, 628, 198, 4871, 968, 13908, 25480, 7, 8692, 13, 3791, 2969, 2149, 75, 1153, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2262, 17096, 689, 262, 1220, 12384, 25480, 82, 36123, 2134, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 968, 13908, 25480, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 628, 220, 220, 220, 825, 651, 62, 12384, 25480, 82, 7, 944, 11, 7386, 62, 312, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 16409, 257, 19449, 2882, 422, 262, 11099, 263, 25206, 7824, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 37266, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7386, 62, 312, 357, 2536, 2599, 317, 7386, 4522, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2581, 796, 7007, 13, 1136, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 1, 90, 944, 13, 15042, 62, 8692, 92, 14, 12384, 25480, 82, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24697, 28, 944, 13, 50145, 62, 12286, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33918, 28, 4895, 27830, 62, 312, 1298, 7386, 62, 312, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2581, 13, 5239, 628, 220, 220, 220, 825, 651, 62, 12384, 25480, 62, 1525, 62, 312, 7, 944, 11, 3992, 25480, 62, 312, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 16409, 257, 19449, 2882, 422, 262, 11099, 263, 25206, 7824, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 37266, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3992, 25480, 62, 312, 357, 2536, 2599, 317, 3992, 25480, 4522, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2581, 796, 7007, 13, 1136, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 1, 90, 944, 13, 15042, 62, 8692, 92, 14, 12384, 25480, 82, 14, 90, 12384, 25480, 62, 312, 92, 1600, 24697, 28, 944, 13, 50145, 62, 12286, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2581, 13, 5239, 628, 220, 220, 220, 825, 900, 62, 12384, 25480, 62, 6371, 7, 944, 11, 3992, 25480, 62, 6371, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 21394, 262, 3992, 25480, 705, 6371, 6, 2214, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 37266, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3992, 25480, 62, 6371, 357, 2536, 2599, 317, 3992, 25480, 10289, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 14692, 6371, 8973, 796, 3992, 25480, 62, 6371, 628, 220, 220, 220, 825, 900, 62, 12384, 25480, 62, 3672, 7, 944, 11, 3992, 25480, 62, 3672, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 21394, 262, 3992, 25480, 705, 3672, 6, 2214, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 37266, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3992, 25480, 62, 3672, 357, 2536, 2599, 317, 3992, 25480, 1438, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 1366, 14692, 3672, 8973, 796, 3992, 25480, 62, 3672, 628, 220, 220, 220, 825, 900, 62, 12384, 25480, 62, 31534, 7, 944, 11, 2995, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 21394, 262, 3992, 25480, 705, 31534, 6, 2214, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 37266, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2995, 357, 4868, 2599, 317, 1351, 7268, 4938, 2995, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 14692, 31534, 8973, 796, 2995, 628, 220, 220, 220, 825, 900, 62, 12384, 25480, 62, 25616, 7, 944, 11, 9343, 28, 17821, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 21394, 262, 3992, 25480, 705, 25616, 6, 3722, 2214, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 37266, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9343, 357, 30388, 2599, 36357, 3992, 25480, 3722, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 1366, 14692, 25616, 8973, 796, 9343, 628, 220, 220, 220, 825, 900, 62, 12384, 25480, 62, 27830, 7, 944, 11, 7386, 62, 312, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 21394, 262, 3992, 25480, 705, 27830, 62, 312, 6, 3722, 2214, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 37266, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7386, 62, 312, 357, 2536, 2599, 317, 4938, 7386, 4522, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 1366, 14692, 27830, 62, 312, 8973, 796, 7386, 62, 312, 628, 220, 220, 220, 825, 4296, 62, 12384, 25480, 7, 944, 11, 3992, 25480, 62, 312, 11, 1994, 11, 1988, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 28090, 257, 3992, 25480, 4634, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 37266, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3992, 25480, 62, 312, 357, 2536, 2599, 317, 4938, 3992, 25480, 4522, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1994, 357, 2536, 2599, 317, 4634, 1994, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 357, 2536, 2599, 34428, 278, 8251, 1988, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2581, 796, 7007, 13, 1996, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 1, 90, 944, 13, 15042, 62, 8692, 92, 14, 12384, 25480, 82, 14, 90, 12384, 25480, 62, 312, 92, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24697, 28, 944, 13, 50145, 62, 12286, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33918, 34758, 69, 1, 90, 2539, 92, 1298, 1988, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2581, 13, 5239, 628, 220, 220, 220, 825, 12233, 62, 12384, 25480, 7, 944, 11, 3992, 25480, 62, 312, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 16409, 257, 19449, 2882, 422, 262, 11099, 263, 25206, 7824, 628, 220, 220, 220, 220, 220, 220, 220, 2488, 37266, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3992, 25480, 62, 312, 357, 2536, 2599, 317, 4938, 3992, 25480, 4522, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2581, 796, 7007, 13, 33678, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 1, 90, 944, 13, 15042, 62, 8692, 92, 14, 12384, 25480, 82, 14, 90, 12384, 25480, 62, 312, 92, 1600, 24697, 28, 944, 13, 50145, 62, 12286, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2581, 13, 5239, 628, 220, 220, 220, 825, 2251, 62, 12384, 25480, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 16409, 257, 19449, 2882, 422, 262, 11099, 263, 25206, 7824, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2581, 796, 7007, 13, 7353, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 1, 90, 944, 13, 15042, 62, 8692, 92, 14, 12384, 25480, 82, 1600, 24697, 28, 944, 13, 50145, 62, 12286, 11, 33918, 28, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2581, 13, 5239, 198 ]
2.132402
1,503
# -*- coding: utf-8 -*- # # Copyright (C) 2020-2021 CERN. # Copyright (C) 2020-2021 Northwestern University. # # Flask-Resources is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Utility for rendering URI template links.""" from ..base import Link class RecordLink(Link): """Short cut for writing record links.""" @staticmethod def vars(record, vars): """Variables for the URI template.""" vars.update({"id": record.pid.pid_value}) def pagination_links(tpl): """Create pagination links (prev/selv/next) from the same template.""" return { "prev": Link( tpl, when=lambda pagination, ctx: pagination.has_prev, vars=lambda pagination, vars: vars["args"].update( {"page": pagination.prev_page.page} ), ), "self": Link(tpl), "next": Link( tpl, when=lambda pagination, ctx: pagination.has_next, vars=lambda pagination, vars: vars["args"].update( {"page": pagination.next_page.page} ), ), }
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 34, 8, 12131, 12, 1238, 2481, 327, 28778, 13, 198, 2, 15069, 357, 34, 8, 12131, 12, 1238, 2481, 30197, 2059, 13, 198, 2, 198, 2, 46947, 12, 33236, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 340, 198, 2, 739, 262, 2846, 286, 262, 17168, 13789, 26, 766, 38559, 24290, 2393, 329, 517, 3307, 13, 198, 198, 37811, 18274, 879, 329, 14837, 43975, 11055, 6117, 526, 15931, 198, 198, 6738, 11485, 8692, 1330, 7502, 628, 198, 4871, 13266, 11280, 7, 11280, 2599, 198, 220, 220, 220, 37227, 16438, 2005, 329, 3597, 1700, 6117, 526, 15931, 628, 220, 220, 220, 2488, 12708, 24396, 198, 220, 220, 220, 825, 410, 945, 7, 22105, 11, 410, 945, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 23907, 2977, 329, 262, 43975, 11055, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 410, 945, 13, 19119, 7, 4895, 312, 1298, 1700, 13, 35317, 13, 35317, 62, 8367, 30072, 628, 198, 4299, 42208, 1883, 62, 28751, 7, 83, 489, 2599, 198, 220, 220, 220, 37227, 16447, 42208, 1883, 6117, 357, 47050, 14, 741, 85, 14, 19545, 8, 422, 262, 976, 11055, 526, 15931, 198, 220, 220, 220, 1441, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 47050, 1298, 7502, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 489, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 618, 28, 50033, 42208, 1883, 11, 269, 17602, 25, 42208, 1883, 13, 10134, 62, 47050, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 410, 945, 28, 50033, 42208, 1883, 11, 410, 945, 25, 410, 945, 14692, 22046, 1, 4083, 19119, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19779, 7700, 1298, 42208, 1883, 13, 47050, 62, 7700, 13, 7700, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 366, 944, 1298, 7502, 7, 83, 489, 828, 198, 220, 220, 220, 220, 220, 220, 220, 366, 19545, 1298, 7502, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 489, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 618, 28, 50033, 42208, 1883, 11, 269, 17602, 25, 42208, 1883, 13, 10134, 62, 19545, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 410, 945, 28, 50033, 42208, 1883, 11, 410, 945, 25, 410, 945, 14692, 22046, 1, 4083, 19119, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19779, 7700, 1298, 42208, 1883, 13, 19545, 62, 7700, 13, 7700, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 1782, 198 ]
2.299029
515
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Motors_widget.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 47733, 669, 62, 42655, 13, 9019, 6, 198, 2, 198, 2, 15622, 416, 25, 9485, 48, 83, 20, 12454, 2438, 17301, 642, 13, 1485, 13, 15, 198, 2, 198, 2, 39410, 0, 1439, 2458, 925, 287, 428, 2393, 481, 307, 2626, 0, 628, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 14055, 11, 33734, 8205, 72, 11, 33734, 54, 312, 11407, 628 ]
2.83908
87
#!/usr/bin/python # -*- encoding: utf-8 -*- from io import BytesIO import time import base64 import json import requests key = "-fd9YqPnrLnmugQGAhQoimCkQd0t8N8L" secret = "0GLyRIHDnrjKSlDuflLPO8a6U32hyDUy" beautify.url = 'https://api-cn.faceplusplus.com/facepp/v2/beautify' rank.url = 'https://api-cn.faceplusplus.com/facepp/v3/detect'
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 11748, 640, 198, 198, 11748, 2779, 2414, 198, 11748, 33918, 198, 11748, 7007, 198, 198, 2539, 796, 27444, 16344, 24, 56, 80, 47, 48624, 43, 21533, 1018, 48, 9273, 71, 48, 78, 320, 34, 74, 48, 67, 15, 83, 23, 45, 23, 43, 1, 198, 21078, 796, 366, 15, 8763, 88, 7112, 10227, 48624, 73, 42, 11122, 35660, 2704, 43, 16402, 23, 64, 21, 52, 2624, 12114, 35, 52, 88, 1, 628, 628, 198, 198, 40544, 1958, 13, 6371, 796, 705, 5450, 1378, 15042, 12, 31522, 13, 2550, 9541, 9541, 13, 785, 14, 2550, 381, 14, 85, 17, 14, 40544, 1958, 6, 198, 43027, 13, 6371, 796, 705, 5450, 1378, 15042, 12, 31522, 13, 2550, 9541, 9541, 13, 785, 14, 2550, 381, 14, 85, 18, 14, 15255, 478, 6, 198 ]
2.157233
159
#!/usr/bin/env python3 # coding: utf-8 # @Author: ArthurBernard # @Email: [email protected] # @Date: 2020-09-18 21:15:59 # @Last modified by: ArthurBernard # @Last modified time: 2020-09-18 22:21:22 """ Rolling functions. """ # Built-in packages # Third party packages import numpy as np # Local packages from fynance.features.roll_functions_cy import * from fynance._wrappers import WrapperArray __all__ = ["roll_min", "roll_max"] # =========================================================================== # # Min Max # # =========================================================================== # @WrapperArray('dtype', 'axis', 'window') def roll_min(X, w=None, axis=0, dtype=None): r""" Compute simple rolling minimum of size `w` for each `X`' series. .. math:: roll\_min^w_t(X) = min(X_{t - w}, ..., X_t) Parameters ---------- X : np.ndarray[dtype, ndim=1 or 2] Elements to compute the rolling minimum. w : int, optional Size of the lagged window of the rolling minimum, must be positive. If ``w is None`` or ``w=0``, then ``w=X.shape[axis]``. Default is None. axis : {0, 1}, optional Axis along wich the computation is done. Default is 0. dtype : np.dtype, optional The type of the output array. If `dtype` is not given, infer the data type from `X` input. Returns ------- np.ndarray[dtype, ndim=1 or 2] Simple rolling minimum of each series. Examples -------- >>> X = np.array([60, 100, 80, 120, 160, 80]) >>> roll_min(X, w=3, dtype=np.float64, axis=0) array([60., 60., 60., 80., 80., 80.]) >>> X = np.array([[60, 60], [100, 100], [80, 80], ... [120, 120], [160, 160], [80, 80]]) >>> roll_min(X, w=3, dtype=np.float64, axis=0) array([[60., 60.], [60., 60.], [60., 60.], [80., 80.], [80., 80.], [80., 80.]]) >>> roll_min(X, w=3, dtype=np.float64, axis=1) array([[ 60., 60.], [100., 100.], [ 80., 80.], [120., 120.], [160., 160.], [ 80., 80.]]) See Also -------- roll_max """ return _roll_min(X, w) @WrapperArray('dtype', 'axis', 'window') def roll_max(X, w=None, axis=0, dtype=None): r""" Compute simple rolling maximum of size `w` for each `X`' series. .. math:: roll\_max^w_t(X) = max(X_{t - w}, ..., X_t) Parameters ---------- X : np.ndarray[dtype, ndim=1 or 2] Elements to compute the rolling maximum. w : int, optional Size of the lagged window of the rolling maximum, must be positive. If ``w is None`` or ``w=0``, then ``w=X.shape[axis]``. Default is None. axis : {0, 1}, optional Axis along wich the computation is done. Default is 0. dtype : np.dtype, optional The type of the output array. If `dtype` is not given, infer the data type from `X` input. Returns ------- np.ndarray[dtype, ndim=1 or 2] Simple rolling maximum of each series. Examples -------- >>> X = np.array([60, 100, 80, 120, 160, 80]) >>> roll_max(X, w=3, dtype=np.float64, axis=0) array([ 60., 100., 100., 120., 160., 160.]) >>> X = np.array([[60, 60], [100, 100], [80, 80], ... [120, 120], [160, 160], [80, 80]]) >>> roll_max(X, w=3, dtype=np.float64, axis=0) array([[ 60., 60.], [100., 100.], [100., 100.], [120., 120.], [160., 160.], [160., 160.]]) >>> roll_max(X, w=3, dtype=np.float64, axis=1) array([[ 60., 60.], [100., 100.], [ 80., 80.], [120., 120.], [160., 160.], [ 80., 80.]]) See Also -------- roll_max """ return _roll_max(X, w)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 2488, 13838, 25, 13514, 23927, 446, 198, 2, 2488, 15333, 25, 610, 11098, 13, 33900, 446, 13, 5892, 31, 14816, 13, 785, 198, 2, 2488, 10430, 25, 12131, 12, 2931, 12, 1507, 2310, 25, 1314, 25, 3270, 198, 2, 2488, 5956, 9518, 416, 25, 13514, 23927, 446, 198, 2, 2488, 5956, 9518, 640, 25, 12131, 12, 2931, 12, 1507, 2534, 25, 2481, 25, 1828, 198, 198, 37811, 21567, 5499, 13, 37227, 198, 198, 2, 28477, 12, 259, 10392, 198, 198, 2, 10467, 2151, 10392, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 10714, 10392, 198, 6738, 277, 2047, 590, 13, 40890, 13, 2487, 62, 12543, 2733, 62, 948, 1330, 1635, 198, 6738, 277, 2047, 590, 13557, 29988, 11799, 1330, 27323, 2848, 19182, 198, 198, 834, 439, 834, 796, 14631, 2487, 62, 1084, 1600, 366, 2487, 62, 9806, 8973, 628, 198, 2, 38093, 2559, 855, 1303, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1855, 5436, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 198, 2, 38093, 2559, 855, 1303, 628, 198, 31, 36918, 2848, 19182, 10786, 67, 4906, 3256, 705, 22704, 3256, 705, 17497, 11537, 198, 4299, 4836, 62, 1084, 7, 55, 11, 266, 28, 14202, 11, 16488, 28, 15, 11, 288, 4906, 28, 14202, 2599, 198, 220, 220, 220, 374, 37811, 3082, 1133, 2829, 10708, 5288, 286, 2546, 4600, 86, 63, 329, 1123, 4600, 55, 63, 6, 2168, 13, 628, 220, 220, 220, 11485, 10688, 3712, 628, 220, 220, 220, 220, 220, 220, 220, 4836, 59, 62, 1084, 61, 86, 62, 83, 7, 55, 8, 796, 949, 7, 55, 23330, 83, 532, 266, 5512, 2644, 11, 1395, 62, 83, 8, 628, 220, 220, 220, 40117, 198, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 1395, 1058, 45941, 13, 358, 18747, 58, 67, 4906, 11, 299, 27740, 28, 16, 393, 362, 60, 198, 220, 220, 220, 220, 220, 220, 220, 26632, 284, 24061, 262, 10708, 5288, 13, 198, 220, 220, 220, 266, 1058, 493, 11, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 12849, 286, 262, 300, 14655, 4324, 286, 262, 10708, 5288, 11, 1276, 307, 3967, 13, 1002, 198, 220, 220, 220, 220, 220, 220, 220, 7559, 86, 318, 6045, 15506, 393, 7559, 86, 28, 15, 15506, 11, 788, 7559, 86, 28, 55, 13, 43358, 58, 22704, 60, 15506, 13, 15161, 318, 6045, 13, 198, 220, 220, 220, 16488, 1058, 1391, 15, 11, 352, 5512, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 38349, 1863, 266, 488, 262, 29964, 318, 1760, 13, 15161, 318, 657, 13, 198, 220, 220, 220, 288, 4906, 1058, 45941, 13, 67, 4906, 11, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 383, 2099, 286, 262, 5072, 7177, 13, 220, 1002, 4600, 67, 4906, 63, 318, 407, 1813, 11, 13249, 262, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 422, 4600, 55, 63, 5128, 13, 628, 220, 220, 220, 16409, 198, 220, 220, 220, 35656, 198, 220, 220, 220, 45941, 13, 358, 18747, 58, 67, 4906, 11, 299, 27740, 28, 16, 393, 362, 60, 198, 220, 220, 220, 220, 220, 220, 220, 17427, 10708, 5288, 286, 1123, 2168, 13, 628, 220, 220, 220, 21066, 198, 220, 220, 220, 24200, 198, 220, 220, 220, 13163, 1395, 796, 45941, 13, 18747, 26933, 1899, 11, 1802, 11, 4019, 11, 7982, 11, 13454, 11, 4019, 12962, 198, 220, 220, 220, 13163, 4836, 62, 1084, 7, 55, 11, 266, 28, 18, 11, 288, 4906, 28, 37659, 13, 22468, 2414, 11, 16488, 28, 15, 8, 198, 220, 220, 220, 7177, 26933, 1899, 1539, 3126, 1539, 3126, 1539, 4019, 1539, 4019, 1539, 4019, 8183, 8, 198, 220, 220, 220, 13163, 1395, 796, 45941, 13, 18747, 26933, 58, 1899, 11, 3126, 4357, 685, 3064, 11, 1802, 4357, 685, 1795, 11, 4019, 4357, 198, 220, 220, 220, 2644, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 10232, 11, 7982, 4357, 685, 14198, 11, 13454, 4357, 685, 1795, 11, 4019, 11907, 8, 198, 220, 220, 220, 13163, 4836, 62, 1084, 7, 55, 11, 266, 28, 18, 11, 288, 4906, 28, 37659, 13, 22468, 2414, 11, 16488, 28, 15, 8, 198, 220, 220, 220, 7177, 26933, 58, 1899, 1539, 3126, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 1899, 1539, 3126, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 1899, 1539, 3126, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 1795, 1539, 4019, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 1795, 1539, 4019, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 1795, 1539, 4019, 8183, 12962, 198, 220, 220, 220, 13163, 4836, 62, 1084, 7, 55, 11, 266, 28, 18, 11, 288, 4906, 28, 37659, 13, 22468, 2414, 11, 16488, 28, 16, 8, 198, 220, 220, 220, 7177, 26933, 58, 3126, 1539, 220, 3126, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 3064, 1539, 1802, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 4019, 1539, 220, 4019, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 10232, 1539, 7982, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 14198, 1539, 13454, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 4019, 1539, 220, 4019, 8183, 12962, 628, 198, 220, 220, 220, 4091, 4418, 198, 220, 220, 220, 24200, 198, 220, 220, 220, 4836, 62, 9806, 628, 220, 220, 220, 37227, 198, 220, 220, 220, 1441, 4808, 2487, 62, 1084, 7, 55, 11, 266, 8, 628, 198, 198, 31, 36918, 2848, 19182, 10786, 67, 4906, 3256, 705, 22704, 3256, 705, 17497, 11537, 198, 4299, 4836, 62, 9806, 7, 55, 11, 266, 28, 14202, 11, 16488, 28, 15, 11, 288, 4906, 28, 14202, 2599, 198, 220, 220, 220, 374, 37811, 3082, 1133, 2829, 10708, 5415, 286, 2546, 4600, 86, 63, 329, 1123, 4600, 55, 63, 6, 2168, 13, 628, 220, 220, 220, 11485, 10688, 3712, 628, 220, 220, 220, 220, 220, 220, 220, 4836, 59, 62, 9806, 61, 86, 62, 83, 7, 55, 8, 796, 3509, 7, 55, 23330, 83, 532, 266, 5512, 2644, 11, 1395, 62, 83, 8, 628, 220, 220, 220, 40117, 198, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 1395, 1058, 45941, 13, 358, 18747, 58, 67, 4906, 11, 299, 27740, 28, 16, 393, 362, 60, 198, 220, 220, 220, 220, 220, 220, 220, 26632, 284, 24061, 262, 10708, 5415, 13, 198, 220, 220, 220, 266, 1058, 493, 11, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 12849, 286, 262, 300, 14655, 4324, 286, 262, 10708, 5415, 11, 1276, 307, 3967, 13, 1002, 198, 220, 220, 220, 220, 220, 220, 220, 7559, 86, 318, 6045, 15506, 393, 7559, 86, 28, 15, 15506, 11, 788, 7559, 86, 28, 55, 13, 43358, 58, 22704, 60, 15506, 13, 15161, 318, 6045, 13, 198, 220, 220, 220, 16488, 1058, 1391, 15, 11, 352, 5512, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 38349, 1863, 266, 488, 262, 29964, 318, 1760, 13, 15161, 318, 657, 13, 198, 220, 220, 220, 288, 4906, 1058, 45941, 13, 67, 4906, 11, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 383, 2099, 286, 262, 5072, 7177, 13, 220, 1002, 4600, 67, 4906, 63, 318, 407, 1813, 11, 13249, 262, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 422, 4600, 55, 63, 5128, 13, 628, 220, 220, 220, 16409, 198, 220, 220, 220, 35656, 198, 220, 220, 220, 45941, 13, 358, 18747, 58, 67, 4906, 11, 299, 27740, 28, 16, 393, 362, 60, 198, 220, 220, 220, 220, 220, 220, 220, 17427, 10708, 5415, 286, 1123, 2168, 13, 628, 220, 220, 220, 21066, 198, 220, 220, 220, 24200, 198, 220, 220, 220, 13163, 1395, 796, 45941, 13, 18747, 26933, 1899, 11, 1802, 11, 4019, 11, 7982, 11, 13454, 11, 4019, 12962, 198, 220, 220, 220, 13163, 4836, 62, 9806, 7, 55, 11, 266, 28, 18, 11, 288, 4906, 28, 37659, 13, 22468, 2414, 11, 16488, 28, 15, 8, 198, 220, 220, 220, 7177, 26933, 3126, 1539, 1802, 1539, 1802, 1539, 7982, 1539, 13454, 1539, 13454, 8183, 8, 198, 220, 220, 220, 13163, 1395, 796, 45941, 13, 18747, 26933, 58, 1899, 11, 3126, 4357, 685, 3064, 11, 1802, 4357, 685, 1795, 11, 4019, 4357, 198, 220, 220, 220, 2644, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 10232, 11, 7982, 4357, 685, 14198, 11, 13454, 4357, 685, 1795, 11, 4019, 11907, 8, 198, 220, 220, 220, 13163, 4836, 62, 9806, 7, 55, 11, 266, 28, 18, 11, 288, 4906, 28, 37659, 13, 22468, 2414, 11, 16488, 28, 15, 8, 198, 220, 220, 220, 7177, 26933, 58, 3126, 1539, 220, 3126, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 3064, 1539, 1802, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 3064, 1539, 1802, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 10232, 1539, 7982, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 14198, 1539, 13454, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 14198, 1539, 13454, 8183, 12962, 198, 220, 220, 220, 13163, 4836, 62, 9806, 7, 55, 11, 266, 28, 18, 11, 288, 4906, 28, 37659, 13, 22468, 2414, 11, 16488, 28, 16, 8, 198, 220, 220, 220, 7177, 26933, 58, 3126, 1539, 220, 3126, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 3064, 1539, 1802, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 4019, 1539, 220, 4019, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 10232, 1539, 7982, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 14198, 1539, 13454, 13, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 4019, 1539, 220, 4019, 8183, 12962, 628, 198, 220, 220, 220, 4091, 4418, 198, 220, 220, 220, 24200, 198, 220, 220, 220, 4836, 62, 9806, 628, 220, 220, 220, 37227, 198, 220, 220, 220, 1441, 4808, 2487, 62, 9806, 7, 55, 11, 266, 8, 628 ]
2.178749
1,807
""" Test some basic behaviour of msodde.py Ensure that - doc and docx are read without error - garbage returns error return status - dde-links are found where appropriate """ from __future__ import print_function import unittest from oletools import msodde from tests.test_utils import DATA_BASE_DIR as BASE_DIR import os from os.path import join from traceback import print_exc class TestReturnCode(unittest.TestCase): """ check return codes and exception behaviour (not text output) """ def test_valid_doc(self): """ check that a valid doc file leads to 0 exit status """ for filename in ( 'dde-test-from-office2003', 'dde-test-from-office2016', 'harmless-clean', 'dde-test-from-office2013-utf_16le-korean'): self.do_test_validity(join(BASE_DIR, 'msodde', filename + '.doc')) def test_valid_docx(self): """ check that a valid docx file leads to 0 exit status """ for filename in 'dde-test', 'harmless-clean': self.do_test_validity(join(BASE_DIR, 'msodde', filename + '.docx')) def test_valid_docm(self): """ check that a valid docm file leads to 0 exit status """ for filename in 'dde-test', 'harmless-clean': self.do_test_validity(join(BASE_DIR, 'msodde', filename + '.docm')) def test_valid_xml(self): """ check that xml leads to 0 exit status """ for filename in 'harmless-clean-2003.xml', 'dde-in-excel2003.xml', \ 'dde-in-word2003.xml', 'dde-in-word2007.xml': self.do_test_validity(join(BASE_DIR, 'msodde', filename)) def test_invalid_none(self): """ check that no file argument leads to non-zero exit status """ self.do_test_validity('', True) def test_invalid_empty(self): """ check that empty file argument leads to non-zero exit status """ self.do_test_validity(join(BASE_DIR, 'basic/empty'), True) def test_invalid_text(self): """ check that text file argument leads to non-zero exit status """ self.do_test_validity(join(BASE_DIR, 'basic/text'), True) def test_encrypted(self): """ check that encrypted files lead to non-zero exit status Currently, only the encryption applied by Office 2010 (CryptoApi RC4 Encryption) is tested. """ CRYPT_DIR = join(BASE_DIR, 'encrypted') ADD_ARGS = '', '-j', '-d', '-f', '-a' for filename in os.listdir(CRYPT_DIR): full_name = join(CRYPT_DIR, filename) for args in ADD_ARGS: self.do_test_validity(args + ' ' + full_name, True) def do_test_validity(self, args, expect_error=False): """ helper for test_valid_doc[x] """ have_exception = False try: msodde.process_file(args, msodde.FIELD_FILTER_BLACKLIST) except Exception: have_exception = True print_exc() except SystemExit as exc: # sys.exit() was called have_exception = True if exc.code is None: have_exception = False self.assertEqual(expect_error, have_exception, msg='Args={0}, expect={1}, exc={2}' .format(args, expect_error, have_exception)) class TestDdeLinks(unittest.TestCase): """ capture output of msodde and check dde-links are found correctly """ @staticmethod def get_dde_from_output(output): """ helper to read dde links from captured output """ return [o for o in output.splitlines()] def test_with_dde(self): """ check that dde links appear on stdout """ filename = 'dde-test-from-office2003.doc' output = msodde.process_file( join(BASE_DIR, 'msodde', filename), msodde.FIELD_FILTER_BLACKLIST) self.assertNotEqual(len(self.get_dde_from_output(output)), 0, msg='Found no dde links in output of ' + filename) def test_no_dde(self): """ check that no dde links appear on stdout """ filename = 'harmless-clean.doc' output = msodde.process_file( join(BASE_DIR, 'msodde', filename), msodde.FIELD_FILTER_BLACKLIST) self.assertEqual(len(self.get_dde_from_output(output)), 0, msg='Found dde links in output of ' + filename) def test_with_dde_utf16le(self): """ check that dde links appear on stdout """ filename = 'dde-test-from-office2013-utf_16le-korean.doc' output = msodde.process_file( join(BASE_DIR, 'msodde', filename), msodde.FIELD_FILTER_BLACKLIST) self.assertNotEqual(len(self.get_dde_from_output(output)), 0, msg='Found no dde links in output of ' + filename) def test_excel(self): """ check that dde links are found in excel 2007+ files """ expect = ['DDE-Link cmd /c calc.exe', ] for extn in 'xlsx', 'xlsm', 'xlsb': output = msodde.process_file( join(BASE_DIR, 'msodde', 'dde-test.' + extn), msodde.FIELD_FILTER_BLACKLIST) self.assertEqual(expect, self.get_dde_from_output(output), msg='unexpected output for dde-test.{0}: {1}' .format(extn, output)) def test_xml(self): """ check that dde in xml from word / excel is found """ for name_part in 'excel2003', 'word2003', 'word2007': filename = 'dde-in-' + name_part + '.xml' output = msodde.process_file( join(BASE_DIR, 'msodde', filename), msodde.FIELD_FILTER_BLACKLIST) links = self.get_dde_from_output(output) self.assertEqual(len(links), 1, 'found {0} dde-links in {1}' .format(len(links), filename)) self.assertTrue('cmd' in links[0], 'no "cmd" in dde-link for {0}' .format(filename)) self.assertTrue('calc' in links[0], 'no "calc" in dde-link for {0}' .format(filename)) def test_clean_rtf_blacklist(self): """ find a lot of hyperlinks in rtf spec """ filename = 'RTF-Spec-1.7.rtf' output = msodde.process_file( join(BASE_DIR, 'msodde', filename), msodde.FIELD_FILTER_BLACKLIST) self.assertEqual(len(self.get_dde_from_output(output)), 1413) def test_clean_rtf_ddeonly(self): """ find no dde links in rtf spec """ filename = 'RTF-Spec-1.7.rtf' output = msodde.process_file( join(BASE_DIR, 'msodde', filename), msodde.FIELD_FILTER_DDE) self.assertEqual(len(self.get_dde_from_output(output)), 0, msg='Found dde links in output of ' + filename) if __name__ == '__main__': unittest.main()
[ 37811, 6208, 617, 4096, 9172, 286, 13845, 375, 2934, 13, 9078, 198, 198, 4834, 19532, 326, 198, 12, 2205, 290, 2205, 87, 389, 1100, 1231, 4049, 198, 12, 15413, 5860, 4049, 1441, 3722, 198, 12, 288, 2934, 12, 28751, 389, 1043, 810, 5035, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 555, 715, 395, 198, 6738, 267, 1616, 10141, 1330, 13845, 375, 2934, 198, 6738, 5254, 13, 9288, 62, 26791, 1330, 42865, 62, 33, 11159, 62, 34720, 355, 49688, 62, 34720, 198, 11748, 28686, 198, 6738, 28686, 13, 6978, 1330, 4654, 198, 6738, 12854, 1891, 1330, 3601, 62, 41194, 628, 198, 4871, 6208, 13615, 10669, 7, 403, 715, 395, 13, 14402, 20448, 2599, 198, 220, 220, 220, 37227, 2198, 1441, 12416, 290, 6631, 9172, 357, 1662, 2420, 5072, 8, 37227, 198, 220, 220, 220, 825, 1332, 62, 12102, 62, 15390, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 2198, 326, 257, 4938, 2205, 2393, 5983, 284, 657, 8420, 3722, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 329, 29472, 287, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 1860, 68, 12, 9288, 12, 6738, 12, 31810, 16088, 3256, 705, 1860, 68, 12, 9288, 12, 6738, 12, 31810, 5304, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 29155, 1203, 12, 27773, 3256, 705, 1860, 68, 12, 9288, 12, 6738, 12, 31810, 6390, 12, 40477, 62, 1433, 293, 12, 74, 29456, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 4598, 62, 9288, 62, 12102, 414, 7, 22179, 7, 33, 11159, 62, 34720, 11, 705, 907, 375, 2934, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29472, 1343, 45302, 15390, 6, 4008, 628, 220, 220, 220, 825, 1332, 62, 12102, 62, 15390, 87, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 2198, 326, 257, 4938, 2205, 87, 2393, 5983, 284, 657, 8420, 3722, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 329, 29472, 287, 705, 1860, 68, 12, 9288, 3256, 705, 29155, 1203, 12, 27773, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 4598, 62, 9288, 62, 12102, 414, 7, 22179, 7, 33, 11159, 62, 34720, 11, 705, 907, 375, 2934, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29472, 1343, 45302, 15390, 87, 6, 4008, 628, 220, 220, 220, 825, 1332, 62, 12102, 62, 15390, 76, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 2198, 326, 257, 4938, 2205, 76, 2393, 5983, 284, 657, 8420, 3722, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 329, 29472, 287, 705, 1860, 68, 12, 9288, 3256, 705, 29155, 1203, 12, 27773, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 4598, 62, 9288, 62, 12102, 414, 7, 22179, 7, 33, 11159, 62, 34720, 11, 705, 907, 375, 2934, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29472, 1343, 45302, 15390, 76, 6, 4008, 628, 220, 220, 220, 825, 1332, 62, 12102, 62, 19875, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 2198, 326, 35555, 5983, 284, 657, 8420, 3722, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 329, 29472, 287, 705, 29155, 1203, 12, 27773, 12, 16088, 13, 19875, 3256, 705, 1860, 68, 12, 259, 12, 1069, 5276, 16088, 13, 19875, 3256, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 1860, 68, 12, 259, 12, 4775, 16088, 13, 19875, 3256, 705, 1860, 68, 12, 259, 12, 4775, 12726, 13, 19875, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 4598, 62, 9288, 62, 12102, 414, 7, 22179, 7, 33, 11159, 62, 34720, 11, 705, 907, 375, 2934, 3256, 29472, 4008, 628, 220, 220, 220, 825, 1332, 62, 259, 12102, 62, 23108, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 2198, 326, 645, 2393, 4578, 5983, 284, 1729, 12, 22570, 8420, 3722, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 4598, 62, 9288, 62, 12102, 414, 10786, 3256, 6407, 8, 628, 220, 220, 220, 825, 1332, 62, 259, 12102, 62, 28920, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 2198, 326, 6565, 2393, 4578, 5983, 284, 1729, 12, 22570, 8420, 3722, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 4598, 62, 9288, 62, 12102, 414, 7, 22179, 7, 33, 11159, 62, 34720, 11, 705, 35487, 14, 28920, 33809, 6407, 8, 628, 220, 220, 220, 825, 1332, 62, 259, 12102, 62, 5239, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 2198, 326, 2420, 2393, 4578, 5983, 284, 1729, 12, 22570, 8420, 3722, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 4598, 62, 9288, 62, 12102, 414, 7, 22179, 7, 33, 11159, 62, 34720, 11, 705, 35487, 14, 5239, 33809, 6407, 8, 628, 220, 220, 220, 825, 1332, 62, 43628, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2198, 326, 19365, 3696, 1085, 284, 1729, 12, 22570, 8420, 3722, 628, 220, 220, 220, 220, 220, 220, 220, 16888, 11, 691, 262, 15835, 5625, 416, 4452, 3050, 357, 23919, 78, 32, 14415, 13987, 19, 198, 220, 220, 220, 220, 220, 220, 220, 14711, 13168, 8, 318, 6789, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 8740, 56, 11571, 62, 34720, 796, 4654, 7, 33, 11159, 62, 34720, 11, 705, 43628, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 27841, 62, 1503, 14313, 796, 705, 3256, 705, 12, 73, 3256, 705, 12, 67, 3256, 705, 12, 69, 3256, 705, 12, 64, 6, 198, 220, 220, 220, 220, 220, 220, 220, 329, 29472, 287, 28686, 13, 4868, 15908, 7, 9419, 56, 11571, 62, 34720, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1336, 62, 3672, 796, 4654, 7, 9419, 56, 11571, 62, 34720, 11, 29472, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 26498, 287, 27841, 62, 1503, 14313, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 4598, 62, 9288, 62, 12102, 414, 7, 22046, 1343, 705, 705, 1343, 1336, 62, 3672, 11, 6407, 8, 628, 220, 220, 220, 825, 466, 62, 9288, 62, 12102, 414, 7, 944, 11, 26498, 11, 1607, 62, 18224, 28, 25101, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 31904, 329, 1332, 62, 12102, 62, 15390, 58, 87, 60, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 423, 62, 1069, 4516, 796, 10352, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13845, 375, 2934, 13, 14681, 62, 7753, 7, 22046, 11, 13845, 375, 2934, 13, 44603, 62, 46700, 5781, 62, 9148, 8120, 45849, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 35528, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 423, 62, 1069, 4516, 796, 6407, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 62, 41194, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 4482, 30337, 355, 2859, 25, 220, 220, 220, 220, 1303, 25064, 13, 37023, 3419, 373, 1444, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 423, 62, 1069, 4516, 796, 6407, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2859, 13, 8189, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 423, 62, 1069, 4516, 796, 10352, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 1069, 806, 62, 18224, 11, 423, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31456, 11639, 42035, 34758, 15, 5512, 1607, 34758, 16, 5512, 2859, 34758, 17, 92, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 18982, 7, 22046, 11, 1607, 62, 18224, 11, 423, 62, 1069, 4516, 4008, 628, 198, 4871, 6208, 35, 2934, 31815, 7, 403, 715, 395, 13, 14402, 20448, 2599, 198, 220, 220, 220, 37227, 8006, 5072, 286, 13845, 375, 2934, 290, 2198, 288, 2934, 12, 28751, 389, 1043, 9380, 37227, 628, 220, 220, 220, 2488, 12708, 24396, 198, 220, 220, 220, 825, 651, 62, 1860, 68, 62, 6738, 62, 22915, 7, 22915, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 31904, 284, 1100, 288, 2934, 6117, 422, 7907, 5072, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 685, 78, 329, 267, 287, 5072, 13, 35312, 6615, 3419, 60, 628, 220, 220, 220, 825, 1332, 62, 4480, 62, 1860, 68, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 2198, 326, 288, 2934, 6117, 1656, 319, 14367, 448, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 29472, 796, 705, 1860, 68, 12, 9288, 12, 6738, 12, 31810, 16088, 13, 15390, 6, 198, 220, 220, 220, 220, 220, 220, 220, 5072, 796, 13845, 375, 2934, 13, 14681, 62, 7753, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4654, 7, 33, 11159, 62, 34720, 11, 705, 907, 375, 2934, 3256, 29472, 828, 13845, 375, 2934, 13, 44603, 62, 46700, 5781, 62, 9148, 8120, 45849, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3673, 36, 13255, 7, 11925, 7, 944, 13, 1136, 62, 1860, 68, 62, 6738, 62, 22915, 7, 22915, 36911, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31456, 11639, 21077, 645, 288, 2934, 6117, 287, 5072, 286, 705, 1343, 29472, 8, 628, 220, 220, 220, 825, 1332, 62, 3919, 62, 1860, 68, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 2198, 326, 645, 288, 2934, 6117, 1656, 319, 14367, 448, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 29472, 796, 705, 29155, 1203, 12, 27773, 13, 15390, 6, 198, 220, 220, 220, 220, 220, 220, 220, 5072, 796, 13845, 375, 2934, 13, 14681, 62, 7753, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4654, 7, 33, 11159, 62, 34720, 11, 705, 907, 375, 2934, 3256, 29472, 828, 13845, 375, 2934, 13, 44603, 62, 46700, 5781, 62, 9148, 8120, 45849, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 11925, 7, 944, 13, 1136, 62, 1860, 68, 62, 6738, 62, 22915, 7, 22915, 36911, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31456, 11639, 21077, 288, 2934, 6117, 287, 5072, 286, 705, 1343, 29472, 8, 628, 220, 220, 220, 825, 1332, 62, 4480, 62, 1860, 68, 62, 40477, 1433, 293, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 2198, 326, 288, 2934, 6117, 1656, 319, 14367, 448, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 29472, 796, 705, 1860, 68, 12, 9288, 12, 6738, 12, 31810, 6390, 12, 40477, 62, 1433, 293, 12, 74, 29456, 13, 15390, 6, 198, 220, 220, 220, 220, 220, 220, 220, 5072, 796, 13845, 375, 2934, 13, 14681, 62, 7753, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4654, 7, 33, 11159, 62, 34720, 11, 705, 907, 375, 2934, 3256, 29472, 828, 13845, 375, 2934, 13, 44603, 62, 46700, 5781, 62, 9148, 8120, 45849, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3673, 36, 13255, 7, 11925, 7, 944, 13, 1136, 62, 1860, 68, 62, 6738, 62, 22915, 7, 22915, 36911, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31456, 11639, 21077, 645, 288, 2934, 6117, 287, 5072, 286, 705, 1343, 29472, 8, 628, 220, 220, 220, 825, 1332, 62, 1069, 5276, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 2198, 326, 288, 2934, 6117, 389, 1043, 287, 27336, 4343, 10, 3696, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1607, 796, 37250, 35, 7206, 12, 11280, 23991, 1220, 66, 42302, 13, 13499, 3256, 2361, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1070, 77, 287, 705, 87, 7278, 87, 3256, 705, 87, 75, 5796, 3256, 705, 87, 7278, 65, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5072, 796, 13845, 375, 2934, 13, 14681, 62, 7753, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4654, 7, 33, 11159, 62, 34720, 11, 705, 907, 375, 2934, 3256, 705, 1860, 68, 12, 9288, 2637, 1343, 1070, 77, 828, 13845, 375, 2934, 13, 44603, 62, 46700, 5781, 62, 9148, 8120, 45849, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 1069, 806, 11, 2116, 13, 1136, 62, 1860, 68, 62, 6738, 62, 22915, 7, 22915, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31456, 11639, 403, 40319, 5072, 329, 288, 2934, 12, 9288, 13, 90, 15, 38362, 1391, 16, 92, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 18982, 7, 2302, 77, 11, 5072, 4008, 628, 220, 220, 220, 825, 1332, 62, 19875, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 2198, 326, 288, 2934, 287, 35555, 422, 1573, 1220, 27336, 318, 1043, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1438, 62, 3911, 287, 705, 1069, 5276, 16088, 3256, 705, 4775, 16088, 3256, 705, 4775, 12726, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29472, 796, 705, 1860, 68, 12, 259, 19355, 1343, 1438, 62, 3911, 1343, 45302, 19875, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5072, 796, 13845, 375, 2934, 13, 14681, 62, 7753, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4654, 7, 33, 11159, 62, 34720, 11, 705, 907, 375, 2934, 3256, 29472, 828, 13845, 375, 2934, 13, 44603, 62, 46700, 5781, 62, 9148, 8120, 45849, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6117, 796, 2116, 13, 1136, 62, 1860, 68, 62, 6738, 62, 22915, 7, 22915, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 11925, 7, 28751, 828, 352, 11, 705, 9275, 1391, 15, 92, 288, 2934, 12, 28751, 287, 1391, 16, 92, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 18982, 7, 11925, 7, 28751, 828, 29472, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 17821, 10786, 28758, 6, 287, 6117, 58, 15, 4357, 705, 3919, 366, 28758, 1, 287, 288, 2934, 12, 8726, 329, 1391, 15, 92, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 18982, 7, 34345, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 17821, 10786, 9948, 66, 6, 287, 6117, 58, 15, 4357, 705, 3919, 366, 9948, 66, 1, 287, 288, 2934, 12, 8726, 329, 1391, 15, 92, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 18982, 7, 34345, 4008, 628, 220, 220, 220, 825, 1332, 62, 27773, 62, 17034, 69, 62, 13424, 4868, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 1064, 257, 1256, 286, 8718, 28751, 287, 374, 27110, 1020, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 29472, 796, 705, 49, 10234, 12, 22882, 12, 16, 13, 22, 13, 17034, 69, 6, 198, 220, 220, 220, 220, 220, 220, 220, 5072, 796, 13845, 375, 2934, 13, 14681, 62, 7753, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4654, 7, 33, 11159, 62, 34720, 11, 705, 907, 375, 2934, 3256, 29472, 828, 13845, 375, 2934, 13, 44603, 62, 46700, 5781, 62, 9148, 8120, 45849, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 11925, 7, 944, 13, 1136, 62, 1860, 68, 62, 6738, 62, 22915, 7, 22915, 36911, 1478, 1485, 8, 628, 220, 220, 220, 825, 1332, 62, 27773, 62, 17034, 69, 62, 1860, 68, 8807, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 1064, 645, 288, 2934, 6117, 287, 374, 27110, 1020, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 29472, 796, 705, 49, 10234, 12, 22882, 12, 16, 13, 22, 13, 17034, 69, 6, 198, 220, 220, 220, 220, 220, 220, 220, 5072, 796, 13845, 375, 2934, 13, 14681, 62, 7753, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4654, 7, 33, 11159, 62, 34720, 11, 705, 907, 375, 2934, 3256, 29472, 828, 13845, 375, 2934, 13, 44603, 62, 46700, 5781, 62, 35, 7206, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 11925, 7, 944, 13, 1136, 62, 1860, 68, 62, 6738, 62, 22915, 7, 22915, 36911, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31456, 11639, 21077, 288, 2934, 6117, 287, 5072, 286, 705, 1343, 29472, 8, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
2.129562
3,288
# -!- coding: utf-8 -!- # Author : AWACS # Time : 2020/06/12 # ------------------------------------ """ batch change place2dTexture Node for texture in Hypershade Editor, if you think the default command that come with maya: ---(hold middle mouse button + Ctrl key ,and drag a place2dTexture to the texture node to plug all those slot) is kind of trouble, or you have too many texture node to operating,here's the solution,a command with maya gui. - How to install : you can simply run this in script editor of maya,or add it in the shelf, or run as file like add this in the shelf : import sys sys.path.append( your script path(add quotation marks(") on the both side of your path ) ) import Batch_Change_Place2D_GUI reload (Batch_Change_Place2D_GUI) - How to use : just select place2d node to confirm,and select the multiple texture node to excute """ # ------------------------------------ """在Hypershade批量替换place2dTexture节点 如果你觉得maya自带的命令: ---(按住鼠标中键+Ctrl,拽住place2dTexture节点,来连接到各种贴图节点) 有点麻烦的话,或者是你有太多贴图节点要连了, 这里是解决方案,一个有maya界面的命令 - 安装方式:你可以直接在maya的script editor里直接运行,或者添加到工具架,再或者在工具架上添加这个来以文件方式运行: import sys sys.path.append( 你的脚本路径(需要添加引号(")在路径两侧) ) import Batch_Change_Place2D_GUI reload (Batch_Change_Place2D_GUI) - 使用方式:选择好place2dTexture节点,然后点确认(Confirm),然后选好贴图节点执行连接就行了 """ import maya.cmds as cmds Batch_Change_Place2D_GUI()
[ 2, 532, 0, 12, 19617, 25, 3384, 69, 12, 23, 532, 0, 12, 201, 198, 2, 6434, 220, 1058, 14356, 2246, 50, 201, 198, 2, 3862, 220, 220, 220, 1058, 12131, 14, 3312, 14, 1065, 201, 198, 201, 198, 2, 20368, 650, 201, 198, 201, 198, 37811, 15458, 1487, 1295, 17, 67, 32742, 19081, 329, 11743, 287, 21209, 364, 71, 671, 12058, 11, 201, 198, 361, 345, 892, 262, 4277, 3141, 326, 1282, 351, 743, 64, 25, 201, 198, 6329, 7, 2946, 3504, 10211, 4936, 1343, 19212, 1994, 837, 392, 6715, 257, 1295, 17, 67, 32742, 284, 262, 11743, 10139, 284, 6107, 477, 883, 10852, 8, 201, 198, 271, 1611, 286, 5876, 11, 393, 345, 423, 1165, 867, 11743, 10139, 284, 5361, 11, 1456, 338, 262, 4610, 11, 64, 3141, 351, 743, 64, 11774, 13, 201, 198, 201, 198, 12, 1374, 284, 2721, 1058, 345, 460, 2391, 1057, 428, 287, 4226, 5464, 286, 743, 64, 11, 273, 751, 340, 287, 262, 18316, 11, 201, 198, 273, 1057, 355, 2393, 588, 751, 428, 287, 262, 18316, 1058, 201, 198, 201, 198, 11748, 25064, 201, 198, 17597, 13, 6978, 13, 33295, 7, 534, 4226, 3108, 7, 2860, 35777, 8849, 7, 4943, 319, 262, 1111, 1735, 286, 534, 3108, 1267, 1267, 201, 198, 11748, 347, 963, 62, 19400, 62, 27271, 17, 35, 62, 40156, 201, 198, 260, 2220, 357, 33, 963, 62, 19400, 62, 27271, 17, 35, 62, 40156, 8, 201, 198, 201, 198, 12, 1374, 284, 779, 1058, 655, 2922, 1295, 17, 67, 10139, 284, 6216, 11, 392, 2922, 262, 3294, 11743, 10139, 284, 2859, 1133, 201, 198, 37811, 201, 198, 2, 20368, 650, 201, 198, 201, 198, 37811, 28839, 101, 49926, 364, 71, 671, 33699, 117, 34932, 237, 162, 249, 123, 162, 235, 95, 5372, 17, 67, 32742, 164, 232, 224, 163, 224, 117, 201, 198, 36685, 224, 162, 252, 250, 19526, 254, 164, 100, 231, 36181, 245, 11261, 64, 164, 229, 103, 30585, 99, 21410, 37772, 121, 20015, 97, 171, 120, 248, 201, 198, 6329, 7, 162, 234, 231, 19526, 237, 165, 120, 254, 43718, 229, 40792, 165, 242, 106, 10, 40069, 171, 120, 234, 162, 233, 121, 19526, 237, 5372, 17, 67, 32742, 164, 232, 224, 163, 224, 117, 171, 120, 234, 30266, 98, 32573, 252, 162, 236, 98, 26344, 108, 28938, 226, 163, 100, 235, 164, 112, 112, 32368, 122, 164, 232, 224, 163, 224, 117, 8, 201, 198, 17312, 231, 163, 224, 117, 165, 118, 119, 163, 225, 99, 21410, 46237, 251, 171, 120, 234, 22755, 244, 38519, 42468, 19526, 254, 17312, 231, 13783, 103, 13783, 248, 164, 112, 112, 32368, 122, 164, 232, 224, 163, 224, 117, 17358, 223, 32573, 252, 12859, 228, 171, 120, 234, 201, 198, 32573, 247, 34932, 234, 42468, 164, 100, 96, 37863, 111, 43095, 162, 94, 230, 171, 120, 234, 31660, 10310, 103, 17312, 231, 11261, 64, 45911, 234, 165, 251, 95, 21410, 37772, 121, 20015, 97, 201, 198, 201, 198, 12, 10263, 106, 231, 35318, 43095, 28156, 237, 171, 120, 248, 19526, 254, 20998, 107, 20015, 98, 33566, 112, 162, 236, 98, 28839, 101, 11261, 64, 21410, 12048, 5464, 34932, 234, 33566, 112, 162, 236, 98, 32573, 238, 26193, 234, 171, 120, 234, 22755, 244, 38519, 162, 115, 119, 27950, 254, 26344, 108, 32432, 98, 17739, 115, 162, 252, 114, 171, 120, 234, 37863, 235, 22755, 244, 38519, 28839, 101, 32432, 98, 17739, 115, 162, 252, 114, 41468, 162, 115, 119, 27950, 254, 32573, 247, 10310, 103, 30266, 98, 20015, 98, 23877, 229, 20015, 114, 43095, 28156, 237, 32573, 238, 26193, 234, 171, 120, 248, 201, 198, 201, 198, 11748, 25064, 201, 198, 17597, 13, 6978, 13, 33295, 7, 220, 19526, 254, 21410, 164, 226, 248, 17312, 105, 164, 115, 107, 36181, 226, 7, 165, 250, 222, 17358, 223, 162, 115, 119, 27950, 254, 28156, 243, 20998, 115, 7, 4943, 28839, 101, 164, 115, 107, 36181, 226, 10310, 97, 160, 122, 100, 8, 1267, 201, 198, 11748, 347, 963, 62, 19400, 62, 27271, 17, 35, 62, 40156, 201, 198, 260, 2220, 357, 33, 963, 62, 19400, 62, 27271, 17, 35, 62, 40156, 8, 201, 198, 201, 198, 12, 220, 45635, 18796, 101, 43095, 28156, 237, 171, 120, 248, 34460, 231, 162, 233, 102, 25001, 121, 5372, 17, 67, 32742, 164, 232, 224, 163, 224, 117, 171, 120, 234, 47078, 114, 28938, 236, 163, 224, 117, 163, 94, 106, 164, 106, 97, 7, 18546, 2533, 8, 171, 120, 234, 47078, 114, 28938, 236, 34460, 231, 25001, 121, 164, 112, 112, 32368, 122, 164, 232, 224, 163, 224, 117, 33699, 100, 26193, 234, 32573, 252, 162, 236, 98, 22887, 109, 26193, 234, 12859, 228, 201, 198, 37811, 201, 198, 201, 198, 11748, 743, 64, 13, 28758, 82, 355, 23991, 82, 201, 198, 201, 198, 33, 963, 62, 19400, 62, 27271, 17, 35, 62, 40156, 3419 ]
1.732254
803
U_scr = 0.5 K_scr = 40 T_air = 298.15 T_top = 303.15 g = 9.8 p_air = air_density(T_air) p_top = air_density(T_top) p_mean_air = (p_air + p_top)/2 input_tuple = (U_scr, K_scr, T_air, T_top, g, p_mean_air, p_air, p_top) # The tuple order is U_ src, K_Scr , T_air, T_top, gravitational coefficient,p_mean_air, p_air, p_Top a = air_flow_rate(input_tuple) print(MC_air_top(a))
[ 201, 198, 201, 198, 52, 62, 1416, 81, 796, 657, 13, 20, 201, 198, 42, 62, 1416, 81, 796, 2319, 201, 198, 51, 62, 958, 796, 37576, 13, 1314, 201, 198, 51, 62, 4852, 796, 30727, 13, 1314, 201, 198, 70, 796, 860, 13, 23, 201, 198, 79, 62, 958, 796, 1633, 62, 43337, 7, 51, 62, 958, 8, 201, 198, 79, 62, 4852, 796, 1633, 62, 43337, 7, 51, 62, 4852, 8, 201, 198, 79, 62, 32604, 62, 958, 796, 357, 79, 62, 958, 1343, 279, 62, 4852, 20679, 17, 201, 198, 15414, 62, 83, 29291, 796, 357, 52, 62, 1416, 81, 11, 509, 62, 1416, 81, 11, 309, 62, 958, 11, 309, 62, 4852, 11, 308, 11, 279, 62, 32604, 62, 958, 11, 279, 62, 958, 11, 279, 62, 4852, 8, 201, 198, 2, 383, 46545, 1502, 318, 471, 62, 12351, 11, 509, 62, 3351, 81, 837, 309, 62, 958, 11, 309, 62, 4852, 11, 29973, 35381, 11, 79, 62, 32604, 62, 958, 11, 279, 62, 958, 11, 279, 62, 9126, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 64, 796, 1633, 62, 11125, 62, 4873, 7, 15414, 62, 83, 29291, 8, 201, 198, 4798, 7, 9655, 62, 958, 62, 4852, 7, 64, 4008, 201, 198 ]
1.885714
210
from marshmallow import fields from ....decorators.pagination import Page from ....util import expand_message_class from .base import AdminHolderMessage @expand_message_class class PresList(AdminHolderMessage): """Presentation get list response message.""" message_type = "presentations-list" class Fields: """Fields for presentation list message.""" results = fields.List(fields.Dict(), description="Retrieved presentations.") page = fields.Nested( Page.Schema, required=False, data_key="~page", description="Pagination decorator.", )
[ 6738, 22397, 42725, 1330, 7032, 198, 198, 6738, 19424, 12501, 273, 2024, 13, 79, 363, 1883, 1330, 7873, 198, 6738, 19424, 22602, 1330, 4292, 62, 20500, 62, 4871, 198, 6738, 764, 8692, 1330, 32053, 39, 19892, 12837, 628, 198, 31, 11201, 392, 62, 20500, 62, 4871, 198, 4871, 1763, 8053, 7, 46787, 39, 19892, 12837, 2599, 198, 220, 220, 220, 37227, 34695, 341, 651, 1351, 2882, 3275, 526, 15931, 628, 220, 220, 220, 3275, 62, 4906, 796, 366, 25579, 602, 12, 4868, 1, 628, 220, 220, 220, 1398, 23948, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 15878, 82, 329, 10470, 1351, 3275, 526, 15931, 628, 220, 220, 220, 220, 220, 220, 220, 2482, 796, 7032, 13, 8053, 7, 25747, 13, 35, 713, 22784, 6764, 2625, 9781, 28130, 27709, 19570, 198, 220, 220, 220, 220, 220, 220, 220, 2443, 796, 7032, 13, 45, 7287, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7873, 13, 27054, 2611, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2672, 28, 25101, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 62, 2539, 2625, 93, 7700, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 2625, 47, 363, 1883, 11705, 1352, 33283, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198 ]
2.768559
229
#!/usr/bin/env python3 """ Update Wikifeat couchdb databases from 0.4.0a to 0.5.0 Note: Requires python3 Changes: 1. Added getImageFileIndex view to wiki design documents """ import json import common import sys wiki_ddoc = 'wikit' getImageFileIndex = dict() getImageFileIndex['map'] = """ function(doc){ if(doc.type==="file"){ const att=doc._attachments; const contentType=att[Object.keys(att)[0]].content_type; if(contentType.substring(0,6)==="image/"){ emit(doc.name,doc); } } } """ getImageFileIndex['reduce'] = "_count" args = common.parse_args() conn = common.get_connection(args.use_ssl, args.couch_server, args.couch_port) credentials = common.get_credentials(args.adminuser, args.adminpass) get_headers = common.get_headers(credentials) put_headers = common.put_headers(credentials) # Update all the wiki design docs conn.request("GET", '/_all_dbs', headers=get_headers) db_list = common.decode_response(conn.getresponse()) wiki_list = [db for db in db_list if db[0:5] == "wiki_"] # Update the wiki dbs for wiki in wiki_list: print("Examining " + wiki) # Fetch design doc ddoc_uri = '/' + wiki + '/_design/' + wiki_ddoc conn.request("GET", ddoc_uri, headers=get_headers) resp = conn.getresponse() ddoc = common.decode_response(resp) print("Updating " + wiki) ddoc['views']['getImageFileIndex'] = getImageFileIndex req_body = json.dumps(ddoc) conn.request("PUT", ddoc_uri, body=req_body, headers=put_headers) resp = conn.getresponse() common.decode_response(resp) if resp.getcode() == 201 or resp.getcode() == 200: print("Update successful.") else: print("Update failed.") # Lastly, close the connection conn.close()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 37811, 198, 220, 220, 220, 10133, 11145, 901, 265, 18507, 9945, 20083, 422, 657, 13, 19, 13, 15, 64, 284, 657, 13, 20, 13, 15, 198, 220, 220, 220, 5740, 25, 26848, 21015, 18, 628, 220, 220, 220, 19179, 25, 198, 220, 220, 220, 352, 13, 220, 10687, 651, 5159, 8979, 15732, 1570, 284, 22719, 1486, 4963, 198, 37811, 198, 198, 11748, 33918, 198, 11748, 2219, 198, 11748, 25064, 198, 198, 15466, 62, 1860, 420, 796, 705, 20763, 270, 6, 198, 198, 1136, 5159, 8979, 15732, 796, 8633, 3419, 198, 198, 1136, 5159, 8979, 15732, 17816, 8899, 20520, 796, 37227, 198, 8818, 7, 15390, 19953, 198, 220, 220, 220, 611, 7, 15390, 13, 4906, 855, 2625, 7753, 4943, 90, 198, 220, 220, 220, 220, 220, 220, 220, 1500, 708, 28, 15390, 13557, 47348, 902, 26, 198, 220, 220, 220, 220, 220, 220, 220, 1500, 2695, 6030, 28, 1078, 58, 10267, 13, 13083, 7, 1078, 38381, 15, 60, 4083, 11299, 62, 4906, 26, 198, 220, 220, 220, 220, 220, 220, 220, 611, 7, 11299, 6030, 13, 7266, 8841, 7, 15, 11, 21, 8, 855, 2625, 9060, 14, 4943, 90, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27588, 7, 15390, 13, 3672, 11, 15390, 1776, 198, 220, 220, 220, 220, 220, 220, 220, 1782, 198, 220, 220, 220, 1782, 198, 92, 198, 37811, 198, 198, 1136, 5159, 8979, 15732, 17816, 445, 7234, 20520, 796, 45434, 9127, 1, 198, 198, 22046, 796, 2219, 13, 29572, 62, 22046, 3419, 198, 37043, 796, 2219, 13, 1136, 62, 38659, 7, 22046, 13, 1904, 62, 45163, 11, 26498, 13, 66, 7673, 62, 15388, 11, 26498, 13, 66, 7673, 62, 634, 8, 198, 198, 66, 445, 14817, 796, 2219, 13, 1136, 62, 66, 445, 14817, 7, 22046, 13, 28482, 7220, 11, 26498, 13, 28482, 6603, 8, 198, 1136, 62, 50145, 796, 2219, 13, 1136, 62, 50145, 7, 66, 445, 14817, 8, 198, 1996, 62, 50145, 796, 2219, 13, 1996, 62, 50145, 7, 66, 445, 14817, 8, 198, 198, 2, 10133, 477, 262, 22719, 1486, 34165, 198, 37043, 13, 25927, 7203, 18851, 1600, 31051, 62, 439, 62, 67, 1443, 3256, 24697, 28, 1136, 62, 50145, 8, 198, 9945, 62, 4868, 796, 2219, 13, 12501, 1098, 62, 26209, 7, 37043, 13, 1136, 26209, 28955, 198, 15466, 62, 4868, 796, 685, 9945, 329, 20613, 287, 20613, 62, 4868, 611, 20613, 58, 15, 25, 20, 60, 6624, 366, 15466, 62, 8973, 198, 198, 2, 10133, 262, 22719, 288, 1443, 198, 1640, 22719, 287, 22719, 62, 4868, 25, 198, 220, 220, 220, 3601, 7203, 3109, 321, 3191, 366, 1343, 22719, 8, 198, 220, 220, 220, 1303, 376, 7569, 1486, 2205, 198, 220, 220, 220, 288, 15390, 62, 9900, 796, 31051, 6, 1343, 22719, 1343, 31051, 62, 26124, 14, 6, 1343, 22719, 62, 1860, 420, 198, 220, 220, 220, 48260, 13, 25927, 7203, 18851, 1600, 288, 15390, 62, 9900, 11, 24697, 28, 1136, 62, 50145, 8, 198, 220, 220, 220, 1217, 796, 48260, 13, 1136, 26209, 3419, 198, 220, 220, 220, 288, 15390, 796, 2219, 13, 12501, 1098, 62, 26209, 7, 4363, 8, 198, 220, 220, 220, 3601, 7203, 4933, 38734, 366, 1343, 22719, 8, 198, 220, 220, 220, 288, 15390, 17816, 33571, 6, 7131, 6, 1136, 5159, 8979, 15732, 20520, 796, 651, 5159, 8979, 15732, 198, 220, 220, 220, 43089, 62, 2618, 796, 33918, 13, 67, 8142, 7, 1860, 420, 8, 198, 220, 220, 220, 48260, 13, 25927, 7203, 30076, 1600, 288, 15390, 62, 9900, 11, 1767, 28, 42180, 62, 2618, 11, 24697, 28, 1996, 62, 50145, 8, 198, 220, 220, 220, 1217, 796, 48260, 13, 1136, 26209, 3419, 198, 220, 220, 220, 2219, 13, 12501, 1098, 62, 26209, 7, 4363, 8, 198, 220, 220, 220, 611, 1217, 13, 1136, 8189, 3419, 6624, 580, 393, 1217, 13, 1136, 8189, 3419, 6624, 939, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 10260, 4388, 19570, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 10260, 4054, 19570, 198, 198, 2, 36778, 11, 1969, 262, 4637, 198, 37043, 13, 19836, 3419, 198 ]
2.569364
692
# Binary Logistic Regression Demo import numpy as np from TinyFlow.Datasets import spiral_data from TinyFlow.Metrics import model_accuracy_sigmoid from TinyFlow.Layers import Layer_Dense from TinyFlow.Activations import Activation_ReLU, Activation_Sigmoid from TinyFlow.Loss import Loss_BinaryCrossEntropy from TinyFlow.Optimizers import Optimizer_Adam # Create dataset X, y = spiral_data(100, 2) # Reshape the labels as they aren't sparse anymore, They're binary, 0 & 1 # Reshape the labels to be a list of lists # Inner list contains one output (either 0 or 1) # per each output neuron, 1 in this case # # We do this reshaping as spiral data values are mapped directly to # the sparse class values taht were the ideal "one hot index from # the network's output". However in this case we're trying to represent # Binary output. IN this example we have a single output neuron, of a target # value of either 0 or 1. y = y.reshape(-1, 1) # Create a dense layer with 2 input features and 3 output values # first dense layer, 2 inputs (each sample has 2 features), 64 outputs dense1 = Layer_Dense(2, 64, weight_regularizer_l2=5e-4, bias_regulariser_l2=5e-4) # Create ReLU activation activation1 = Activation_ReLU() # Create second dense layer with 64 input features # (as we take output of previous layer here) and 1 output dense2 = Layer_Dense(64, 1) # Create Sigmoid Activation activation2 = Activation_Sigmoid() # Create a loss function loss_function = Loss_BinaryCrossEntropy() # Create an optimizer optimizer = Optimizer_Adam(decay=1e-8) # Train in loop for epoch in range(10001): # Make a forward pass of our training adaa through this layer dense1.forward(X) # Make a forward pass through our activation function activation1.forward(dense1.output) # Make forward pass through second dense layer dense2.forward(activation1.output) # Make a forward pass through the second activation function activation2.forward(dense2.output) # Calculate the losses from the second activation function sample_losses = loss_function.forward(activation2.output, y) # Calculate mean loss data_loss = np.mean(sample_losses) # Calculate regularization penalty regularization_loss = loss_function.regularization_loss( dense1) + loss_function.regularization_loss(dense2) # Overall loss loss = data_loss + regularization_loss # Calculate accuracy from output of activation2 and targets # Part in the brackets returns a binary maskk - array consisting # of True/False values, multiplying it by 1 changes it into array of 1s and 0s accuracy = model_accuracy_sigmoid(activation2.output, y) if not epoch % 100: print(f'epoch: {epoch}, acc: {accuracy:.3f}, loss: {loss:.3f} (data_loss: {data_loss:.3f}, reg_loss: {regularization_loss:.3f}), lr: {optimizer.current_learning_rate:.5f}') # Backward pass loss_function.backward(activation2.output, y) activation2.backward(loss_function.dvalues) dense2.backward(activation2.dvalues) activation1.backward(dense2.dvalues) dense1.backward(activation1.dvalues) # Update weights optimizer.pre_update_params() optimizer.update_params(dense1) optimizer.update_params(dense2) optimizer.post_update_params() # Validate model # Create test dataset X_test ,y_test = spiral_data(100, 2) # Reshape labels to be a list of lists # Inner list contains one output (either 0 or 1) # per output neuron, 1 in this case y_test = y_test.reshape(-1, 1) # Make a forward pass of the testing data though this layer dense1.forward(X_test) # Make a forward pass through the activation function activation1.forward(dense1.output) # Make a forward pass through the second dense layer dense2.forward(activation1.output) # Make a forward pass through the second activation function activation2.forward(dense2.output) # Calculate the sample loses from output of activation2 and targets sample_losses = loss_function.forward(activation2.output, y_test) # Calculate mean loss loss = np.mean(sample_losses) # Calculate accuracy over test data accuracy = model_accuracy_sigmoid(activation2.output, y_test) print(f'validation, acc: {accuracy:.3f}, loss: {loss:.3f}')
[ 2, 45755, 5972, 2569, 3310, 2234, 34588, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 20443, 37535, 13, 27354, 292, 1039, 1330, 23642, 62, 7890, 198, 6738, 20443, 37535, 13, 9171, 10466, 1330, 2746, 62, 4134, 23843, 62, 82, 17225, 1868, 198, 6738, 20443, 37535, 13, 43, 6962, 1330, 34398, 62, 35, 1072, 198, 6738, 20443, 37535, 13, 25526, 602, 1330, 13144, 341, 62, 3041, 41596, 11, 13144, 341, 62, 50, 17225, 1868, 198, 6738, 20443, 37535, 13, 43, 793, 1330, 22014, 62, 33, 3219, 21544, 14539, 28338, 198, 6738, 20443, 37535, 13, 27871, 320, 11341, 1330, 30011, 7509, 62, 23159, 198, 198, 2, 13610, 27039, 198, 55, 11, 331, 796, 23642, 62, 7890, 7, 3064, 11, 362, 8, 198, 198, 2, 1874, 71, 1758, 262, 14722, 355, 484, 3588, 470, 29877, 7471, 11, 1119, 821, 13934, 11, 657, 1222, 352, 198, 2, 1874, 71, 1758, 262, 14722, 284, 307, 257, 1351, 286, 8341, 198, 2, 24877, 1351, 4909, 530, 5072, 357, 31336, 657, 393, 352, 8, 198, 2, 583, 1123, 5072, 43164, 11, 352, 287, 428, 1339, 198, 2, 198, 2, 775, 466, 428, 27179, 9269, 355, 23642, 1366, 3815, 389, 27661, 3264, 284, 198, 2, 262, 29877, 1398, 3815, 256, 993, 83, 547, 262, 7306, 366, 505, 3024, 6376, 422, 198, 2, 262, 3127, 338, 5072, 1911, 2102, 287, 428, 1339, 356, 821, 2111, 284, 2380, 198, 2, 45755, 5072, 13, 3268, 428, 1672, 356, 423, 257, 2060, 5072, 43164, 11, 286, 257, 2496, 198, 2, 1988, 286, 2035, 657, 393, 352, 13, 198, 88, 796, 331, 13, 3447, 1758, 32590, 16, 11, 352, 8, 198, 198, 2, 13610, 257, 15715, 7679, 351, 362, 5128, 3033, 290, 513, 5072, 3815, 198, 2, 717, 15715, 7679, 11, 362, 17311, 357, 27379, 6291, 468, 362, 3033, 828, 5598, 23862, 198, 67, 1072, 16, 796, 34398, 62, 35, 1072, 7, 17, 11, 5598, 11, 3463, 62, 16338, 7509, 62, 75, 17, 28, 20, 68, 12, 19, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10690, 62, 16338, 5847, 62, 75, 17, 28, 20, 68, 12, 19, 8, 198, 198, 2, 13610, 797, 41596, 14916, 198, 48545, 16, 796, 13144, 341, 62, 3041, 41596, 3419, 198, 198, 2, 13610, 1218, 15715, 7679, 351, 5598, 5128, 3033, 198, 2, 357, 292, 356, 1011, 5072, 286, 2180, 7679, 994, 8, 290, 352, 5072, 198, 67, 1072, 17, 796, 34398, 62, 35, 1072, 7, 2414, 11, 352, 8, 198, 198, 2, 13610, 311, 17225, 1868, 13144, 341, 198, 48545, 17, 796, 13144, 341, 62, 50, 17225, 1868, 3419, 198, 198, 2, 13610, 257, 2994, 2163, 198, 22462, 62, 8818, 796, 22014, 62, 33, 3219, 21544, 14539, 28338, 3419, 198, 198, 2, 13610, 281, 6436, 7509, 198, 40085, 7509, 796, 30011, 7509, 62, 23159, 7, 12501, 323, 28, 16, 68, 12, 23, 8, 198, 198, 2, 16835, 287, 9052, 198, 1640, 36835, 287, 2837, 7, 3064, 486, 2599, 628, 220, 220, 220, 1303, 6889, 257, 2651, 1208, 286, 674, 3047, 512, 7252, 832, 428, 7679, 198, 220, 220, 220, 15715, 16, 13, 11813, 7, 55, 8, 628, 220, 220, 220, 1303, 6889, 257, 2651, 1208, 832, 674, 14916, 2163, 198, 220, 220, 220, 14916, 16, 13, 11813, 7, 67, 1072, 16, 13, 22915, 8, 628, 220, 220, 220, 1303, 6889, 2651, 1208, 832, 1218, 15715, 7679, 198, 220, 220, 220, 15715, 17, 13, 11813, 7, 48545, 16, 13, 22915, 8, 628, 220, 220, 220, 1303, 6889, 257, 2651, 1208, 832, 262, 1218, 14916, 2163, 198, 220, 220, 220, 14916, 17, 13, 11813, 7, 67, 1072, 17, 13, 22915, 8, 628, 220, 220, 220, 1303, 27131, 378, 262, 9089, 422, 262, 1218, 14916, 2163, 198, 220, 220, 220, 6291, 62, 22462, 274, 796, 2994, 62, 8818, 13, 11813, 7, 48545, 17, 13, 22915, 11, 331, 8, 628, 220, 220, 220, 1303, 27131, 378, 1612, 2994, 198, 220, 220, 220, 1366, 62, 22462, 796, 45941, 13, 32604, 7, 39873, 62, 22462, 274, 8, 628, 220, 220, 220, 1303, 27131, 378, 3218, 1634, 7389, 198, 220, 220, 220, 3218, 1634, 62, 22462, 796, 2994, 62, 8818, 13, 16338, 1634, 62, 22462, 7, 198, 220, 220, 220, 220, 220, 220, 220, 15715, 16, 8, 1343, 2994, 62, 8818, 13, 16338, 1634, 62, 22462, 7, 67, 1072, 17, 8, 628, 220, 220, 220, 1303, 14674, 2994, 198, 220, 220, 220, 2994, 796, 1366, 62, 22462, 1343, 3218, 1634, 62, 22462, 628, 220, 220, 220, 1303, 27131, 378, 9922, 422, 5072, 286, 14916, 17, 290, 6670, 198, 220, 220, 220, 1303, 2142, 287, 262, 28103, 5860, 257, 13934, 9335, 74, 532, 7177, 17747, 198, 220, 220, 220, 1303, 286, 6407, 14, 25101, 3815, 11, 48816, 340, 416, 352, 2458, 340, 656, 7177, 286, 352, 82, 290, 657, 82, 198, 220, 220, 220, 9922, 796, 2746, 62, 4134, 23843, 62, 82, 17225, 1868, 7, 48545, 17, 13, 22915, 11, 331, 8, 628, 220, 220, 220, 611, 407, 36835, 4064, 1802, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 69, 6, 538, 5374, 25, 1391, 538, 5374, 5512, 697, 25, 1391, 4134, 23843, 25, 13, 18, 69, 5512, 2994, 25, 1391, 22462, 25, 13, 18, 69, 92, 357, 7890, 62, 22462, 25, 1391, 7890, 62, 22462, 25, 13, 18, 69, 5512, 842, 62, 22462, 25, 1391, 16338, 1634, 62, 22462, 25, 13, 18, 69, 92, 828, 300, 81, 25, 1391, 40085, 7509, 13, 14421, 62, 40684, 62, 4873, 25, 13, 20, 69, 92, 11537, 628, 220, 220, 220, 1303, 5157, 904, 1208, 198, 220, 220, 220, 2994, 62, 8818, 13, 1891, 904, 7, 48545, 17, 13, 22915, 11, 331, 8, 198, 220, 220, 220, 14916, 17, 13, 1891, 904, 7, 22462, 62, 8818, 13, 67, 27160, 8, 198, 220, 220, 220, 15715, 17, 13, 1891, 904, 7, 48545, 17, 13, 67, 27160, 8, 198, 220, 220, 220, 14916, 16, 13, 1891, 904, 7, 67, 1072, 17, 13, 67, 27160, 8, 198, 220, 220, 220, 15715, 16, 13, 1891, 904, 7, 48545, 16, 13, 67, 27160, 8, 628, 220, 220, 220, 1303, 10133, 19590, 198, 220, 220, 220, 6436, 7509, 13, 3866, 62, 19119, 62, 37266, 3419, 198, 220, 220, 220, 6436, 7509, 13, 19119, 62, 37266, 7, 67, 1072, 16, 8, 198, 220, 220, 220, 6436, 7509, 13, 19119, 62, 37266, 7, 67, 1072, 17, 8, 198, 220, 220, 220, 6436, 7509, 13, 7353, 62, 19119, 62, 37266, 3419, 198, 198, 2, 3254, 20540, 2746, 198, 198, 2, 13610, 1332, 27039, 198, 55, 62, 9288, 837, 88, 62, 9288, 796, 23642, 62, 7890, 7, 3064, 11, 362, 8, 198, 198, 2, 1874, 71, 1758, 14722, 284, 307, 257, 1351, 286, 8341, 198, 2, 24877, 1351, 4909, 530, 5072, 357, 31336, 657, 393, 352, 8, 198, 2, 583, 5072, 43164, 11, 352, 287, 428, 1339, 198, 88, 62, 9288, 796, 331, 62, 9288, 13, 3447, 1758, 32590, 16, 11, 352, 8, 198, 198, 2, 6889, 257, 2651, 1208, 286, 262, 4856, 1366, 996, 428, 7679, 198, 67, 1072, 16, 13, 11813, 7, 55, 62, 9288, 8, 198, 198, 2, 6889, 257, 2651, 1208, 832, 262, 14916, 2163, 198, 48545, 16, 13, 11813, 7, 67, 1072, 16, 13, 22915, 8, 198, 198, 2, 6889, 257, 2651, 1208, 832, 262, 1218, 15715, 7679, 198, 67, 1072, 17, 13, 11813, 7, 48545, 16, 13, 22915, 8, 198, 198, 2, 6889, 257, 2651, 1208, 832, 262, 1218, 14916, 2163, 198, 48545, 17, 13, 11813, 7, 67, 1072, 17, 13, 22915, 8, 198, 198, 2, 27131, 378, 262, 6291, 14754, 422, 5072, 286, 14916, 17, 290, 6670, 198, 39873, 62, 22462, 274, 796, 2994, 62, 8818, 13, 11813, 7, 48545, 17, 13, 22915, 11, 331, 62, 9288, 8, 198, 198, 2, 27131, 378, 1612, 2994, 198, 22462, 796, 45941, 13, 32604, 7, 39873, 62, 22462, 274, 8, 198, 198, 2, 27131, 378, 9922, 625, 1332, 1366, 198, 4134, 23843, 796, 2746, 62, 4134, 23843, 62, 82, 17225, 1868, 7, 48545, 17, 13, 22915, 11, 331, 62, 9288, 8, 198, 198, 4798, 7, 69, 6, 12102, 341, 11, 697, 25, 1391, 4134, 23843, 25, 13, 18, 69, 5512, 2994, 25, 1391, 22462, 25, 13, 18, 69, 92, 11537 ]
3.111437
1,364
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ FBNet classification models Example code to create the model: from mobile_cv.model_zoo.models.fbnet_v2 import fbnet model = fbnet("fbnet_cse", pretrained=True) model.eval() Full example code is available at `examples/run_fbnet_v2.py`. All suported architectures could be found in: mobile_cv/arch/fbnet_v2/fbnet_modeldef_cls*.py Architectures with pretrained weights could be found in: mobile_cv/model_zoo/models/model_info/fbnet_v2/*.json """ import typing import torch import torch.nn as nn from mobile_cv.arch.fbnet_v2 import fbnet_builder as mbuilder from mobile_cv.arch.fbnet_v2 import fbnet_modeldef_cls as modeldef from mobile_cv.arch.utils import misc from mobile_cv.model_zoo.models import hub_utils, utils PRETRAINED_MODELS = _load_pretrained_info() NAME_MAPPING = { # external name : internal name "FBNet_a": "fbnet_a", "FBNet_b": "fbnet_b", "FBNet_c": "fbnet_c", "FBNet_ase": "fbnet_ase", "FBNet_bse": "fbnet_ase", "FBNet_cse": "fbnet_ase", "MobileNetV3": "mnv3", "FBNetV2_F1": "dmasking_f1", "FBNetV2_F5": "dmasking_l2", } class ClsConvHead(nn.Module): """Global average pooling + conv head for classification """ def fbnet(arch_name, pretrained=False, progress=True, **kwargs): """ Constructs a FBNet architecture named `arch_name` Args: arch_name (str): Architecture name pretrained (bool): If True, returns a model pre-trained on ImageNet progress (bool): If True, displays a progress bar of the download to stderr """ if isinstance(arch_name, str) and arch_name in NAME_MAPPING: arch_name = NAME_MAPPING[arch_name] model = FBNet(arch_name, **kwargs) if pretrained: assert ( arch_name in PRETRAINED_MODELS ), f"Invalid arch {arch_name}, supported arch {PRETRAINED_MODELS.keys()}" model_info = PRETRAINED_MODELS[arch_name] model_path = model_info["model_path"] state_dict = _load_fbnet_state_dict(model_path, progress=progress) model.load_state_dict(state_dict) model.model_info = model_info return model
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 6923, 33876, 198, 198, 37811, 198, 26001, 7934, 17923, 4981, 198, 198, 16281, 2438, 284, 2251, 262, 2746, 25, 198, 220, 220, 220, 422, 5175, 62, 33967, 13, 19849, 62, 89, 2238, 13, 27530, 13, 21855, 3262, 62, 85, 17, 1330, 277, 65, 3262, 198, 220, 220, 220, 2746, 796, 277, 65, 3262, 7203, 21855, 3262, 62, 66, 325, 1600, 2181, 13363, 28, 17821, 8, 198, 220, 220, 220, 2746, 13, 18206, 3419, 198, 198, 13295, 1672, 2438, 318, 1695, 379, 4600, 1069, 12629, 14, 5143, 62, 21855, 3262, 62, 85, 17, 13, 9078, 44646, 198, 198, 3237, 424, 9213, 45619, 714, 307, 1043, 287, 25, 198, 220, 220, 220, 5175, 62, 33967, 14, 998, 14, 21855, 3262, 62, 85, 17, 14, 21855, 3262, 62, 14171, 335, 891, 62, 565, 82, 24620, 9078, 198, 198, 19895, 5712, 942, 351, 2181, 13363, 19590, 714, 307, 1043, 287, 25, 198, 220, 220, 220, 5175, 62, 33967, 14, 19849, 62, 89, 2238, 14, 27530, 14, 19849, 62, 10951, 14, 21855, 3262, 62, 85, 17, 15211, 13, 17752, 198, 37811, 198, 198, 11748, 19720, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 6738, 5175, 62, 33967, 13, 998, 13, 21855, 3262, 62, 85, 17, 1330, 277, 65, 3262, 62, 38272, 355, 285, 38272, 198, 6738, 5175, 62, 33967, 13, 998, 13, 21855, 3262, 62, 85, 17, 1330, 277, 65, 3262, 62, 14171, 335, 891, 62, 565, 82, 355, 4235, 335, 891, 198, 6738, 5175, 62, 33967, 13, 998, 13, 26791, 1330, 12747, 198, 6738, 5175, 62, 33967, 13, 19849, 62, 89, 2238, 13, 27530, 1330, 12575, 62, 26791, 11, 3384, 4487, 628, 198, 198, 47, 26087, 3861, 1268, 1961, 62, 33365, 37142, 796, 4808, 2220, 62, 5310, 13363, 62, 10951, 3419, 198, 198, 20608, 62, 44, 24805, 2751, 796, 1391, 198, 220, 220, 220, 1303, 7097, 1438, 1058, 5387, 1438, 198, 220, 220, 220, 366, 26001, 7934, 62, 64, 1298, 366, 21855, 3262, 62, 64, 1600, 198, 220, 220, 220, 366, 26001, 7934, 62, 65, 1298, 366, 21855, 3262, 62, 65, 1600, 198, 220, 220, 220, 366, 26001, 7934, 62, 66, 1298, 366, 21855, 3262, 62, 66, 1600, 198, 220, 220, 220, 366, 26001, 7934, 62, 589, 1298, 366, 21855, 3262, 62, 589, 1600, 198, 220, 220, 220, 366, 26001, 7934, 62, 65, 325, 1298, 366, 21855, 3262, 62, 589, 1600, 198, 220, 220, 220, 366, 26001, 7934, 62, 66, 325, 1298, 366, 21855, 3262, 62, 589, 1600, 198, 220, 220, 220, 366, 17066, 7934, 53, 18, 1298, 366, 10295, 85, 18, 1600, 198, 220, 220, 220, 366, 26001, 7934, 53, 17, 62, 37, 16, 1298, 366, 67, 27932, 278, 62, 69, 16, 1600, 198, 220, 220, 220, 366, 26001, 7934, 53, 17, 62, 37, 20, 1298, 366, 67, 27932, 278, 62, 75, 17, 1600, 198, 92, 628, 628, 198, 4871, 1012, 82, 3103, 85, 13847, 7, 20471, 13, 26796, 2599, 198, 220, 220, 220, 37227, 22289, 2811, 5933, 278, 1343, 3063, 1182, 329, 17923, 198, 220, 220, 220, 37227, 628, 628, 198, 4299, 277, 65, 3262, 7, 998, 62, 3672, 11, 2181, 13363, 28, 25101, 11, 4371, 28, 17821, 11, 12429, 46265, 22046, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 28407, 82, 257, 13186, 7934, 10959, 3706, 4600, 998, 62, 3672, 63, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3934, 62, 3672, 357, 2536, 2599, 29778, 1438, 198, 220, 220, 220, 220, 220, 220, 220, 2181, 13363, 357, 30388, 2599, 1002, 6407, 11, 5860, 257, 2746, 662, 12, 35311, 319, 7412, 7934, 198, 220, 220, 220, 220, 220, 220, 220, 4371, 357, 30388, 2599, 1002, 6407, 11, 11298, 257, 4371, 2318, 286, 262, 4321, 284, 336, 1082, 81, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 611, 318, 39098, 7, 998, 62, 3672, 11, 965, 8, 290, 3934, 62, 3672, 287, 36751, 62, 44, 24805, 2751, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3934, 62, 3672, 796, 36751, 62, 44, 24805, 2751, 58, 998, 62, 3672, 60, 628, 220, 220, 220, 2746, 796, 13186, 7934, 7, 998, 62, 3672, 11, 12429, 46265, 22046, 8, 198, 220, 220, 220, 611, 2181, 13363, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3934, 62, 3672, 287, 22814, 51, 3861, 1268, 1961, 62, 33365, 37142, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 277, 1, 44651, 3934, 1391, 998, 62, 3672, 5512, 4855, 3934, 1391, 47, 26087, 3861, 1268, 1961, 62, 33365, 37142, 13, 13083, 3419, 36786, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 62, 10951, 796, 22814, 51, 3861, 1268, 1961, 62, 33365, 37142, 58, 998, 62, 3672, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 62, 6978, 796, 2746, 62, 10951, 14692, 19849, 62, 6978, 8973, 198, 220, 220, 220, 220, 220, 220, 220, 1181, 62, 11600, 796, 4808, 2220, 62, 21855, 3262, 62, 5219, 62, 11600, 7, 19849, 62, 6978, 11, 4371, 28, 33723, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 13, 2220, 62, 5219, 62, 11600, 7, 5219, 62, 11600, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 13, 19849, 62, 10951, 796, 2746, 62, 10951, 198, 220, 220, 220, 1441, 2746, 198 ]
2.463146
909
""" Author: @ayushmankumar7 Paste this file (prepare_train_mask.py) in "leftImg8bit_trainvaltest/leftImg8bit". There are 3 folder in this directory - test, train, val. Paste the file inside the folder containing the 3 folders. In Command Prompt or Terminal : python prepare_train_image.py Link for the label: https://www.cityscapes-dataset.com/file-handling/?packageID=1 """ import os import cv2 import numpy as np import glob try: os.makedirs("train_image") except: pass print("It might take a few time. Be patient! Let this program run in background.") files = glob.glob("train/*") for file in files: images = glob.glob(file+"\\*.png") for image in images: img_name = image.split("\\")[-1] img = cv2.imread(image) # print(f"train_image/{image}") cv2.imwrite(f"train_image/{img_name}", img) print(image, "----> DONE") print("You train Images is stored in './train_image' successfully! \n You may proceed. \n Thank you")
[ 37811, 198, 13838, 25, 2488, 323, 1530, 805, 74, 44844, 22, 198, 198, 47, 4594, 428, 2393, 357, 46012, 533, 62, 27432, 62, 27932, 13, 9078, 8, 287, 366, 9464, 3546, 70, 23, 2545, 62, 27432, 2100, 9288, 14, 9464, 3546, 70, 23, 2545, 1911, 220, 198, 1858, 389, 513, 9483, 287, 428, 8619, 532, 1332, 11, 4512, 11, 1188, 13, 220, 198, 47, 4594, 262, 2393, 2641, 262, 9483, 7268, 262, 513, 24512, 13, 198, 198, 818, 9455, 45965, 393, 24523, 1058, 220, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21015, 8335, 62, 27432, 62, 9060, 13, 9078, 628, 198, 11280, 329, 262, 6167, 25, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3740, 1378, 2503, 13, 19205, 1416, 7916, 12, 19608, 292, 316, 13, 785, 14, 7753, 12, 4993, 1359, 20924, 26495, 2389, 28, 16, 198, 198, 37811, 198, 198, 11748, 28686, 220, 198, 11748, 269, 85, 17, 220, 198, 11748, 299, 32152, 355, 45941, 220, 198, 11748, 15095, 220, 198, 198, 28311, 25, 198, 220, 220, 220, 28686, 13, 76, 4335, 17062, 7203, 27432, 62, 9060, 4943, 198, 16341, 25, 198, 220, 220, 220, 1208, 220, 198, 198, 4798, 7203, 1026, 1244, 1011, 257, 1178, 640, 13, 1355, 5827, 0, 3914, 428, 1430, 1057, 287, 4469, 19570, 628, 198, 16624, 796, 15095, 13, 4743, 672, 7203, 27432, 15211, 4943, 198, 198, 1640, 2393, 287, 3696, 25, 198, 220, 220, 220, 4263, 796, 15095, 13, 4743, 672, 7, 7753, 10, 1, 6852, 24620, 11134, 4943, 198, 220, 220, 220, 329, 2939, 287, 4263, 25, 198, 220, 220, 220, 220, 220, 220, 220, 33705, 62, 3672, 796, 2939, 13, 35312, 7203, 6852, 4943, 58, 12, 16, 60, 198, 220, 220, 220, 220, 220, 220, 220, 33705, 796, 269, 85, 17, 13, 320, 961, 7, 9060, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 3601, 7, 69, 1, 27432, 62, 9060, 14, 90, 9060, 92, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 269, 85, 17, 13, 320, 13564, 7, 69, 1, 27432, 62, 9060, 14, 90, 9600, 62, 3672, 92, 1600, 33705, 8, 628, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 9060, 11, 366, 650, 29, 360, 11651, 4943, 198, 220, 220, 220, 220, 198, 198, 4798, 7203, 1639, 4512, 5382, 318, 8574, 287, 705, 19571, 27432, 62, 9060, 6, 7675, 0, 3467, 77, 921, 743, 5120, 13, 3467, 77, 6952, 345, 4943, 198 ]
2.509756
410
from django.test import TestCase from .models import * from django.contrib.auth.models import User # Create your tests here. # test for checking instance # test for saving # test for deleting Driver or Editor
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 764, 27530, 1330, 1635, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 2, 13610, 534, 5254, 994, 13, 628, 198, 220, 220, 220, 1303, 1332, 329, 10627, 4554, 628, 220, 220, 220, 1303, 1332, 329, 8914, 628, 220, 220, 220, 1303, 1332, 329, 34817, 12434, 393, 12058, 198 ]
3.515625
64
# @lc app=leetcode id=653 lang=python3 # # [653] Two Sum IV - Input is a BST # # https://leetcode.com/problems/two-sum-iv-input-is-a-bst/description/ # # algorithms # Easy (57.56%) # Likes: 2752 # Dislikes: 175 # Total Accepted: 248.7K # Total Submissions: 430.4K # Testcase Example: '[5,3,6,2,4,null,7]\n9' # # Given the root of a Binary Search Tree and a target number k, return true if # there exist two elements in the BST such that their sum is equal to the given # target. # # # Example 1: # # # Input: root = [5,3,6,2,4,null,7], k = 9 # Output: true # # # Example 2: # # # Input: root = [5,3,6,2,4,null,7], k = 28 # Output: false # # # Example 3: # # # Input: root = [2,1,3], k = 4 # Output: true # # # Example 4: # # # Input: root = [2,1,3], k = 1 # Output: false # # # Example 5: # # # Input: root = [2,1,3], k = 3 # Output: true # # # # Constraints: # # # The number of nodes in the tree is in the range [1, 10^4]. # -10^4 <= Node.val <= 10^4 # root is guaranteed to be a valid binary search tree. # -10^5 <= k <= 10^5 # # # # @lc tags=tree # @lc imports=start from imports import * # @lc imports=end # @lc idea=start # # 在二叉搜索树中,判断是否有两个数字和为指定值。 # 直接遍历。 # # @lc idea=end # @lc group= # @lc rank= # @lc code=start # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right # @lc code=end # @lc main=start if __name__ == '__main__': print('Example 1:') print('Input : ') print('root = [5,3,6,2,4,null,7], k = 9') print('Exception :') print('true') print('Output :') print( str(Solution().findTarget(listToTreeNode([5, 3, 6, 2, 4, None, 7]), 9))) print() print('Example 2:') print('Input : ') print('root = [5,3,6,2,4,null,7], k = 28') print('Exception :') print('false') print('Output :') print( str(Solution().findTarget(listToTreeNode([5, 3, 6, 2, 4, None, 7]), 28))) print() print('Example 3:') print('Input : ') print('root = [2,1,3], k = 4') print('Exception :') print('true') print('Output :') print(str(Solution().findTarget(listToTreeNode([2, 1, 3]), 4))) print() print('Example 4:') print('Input : ') print('root = [2,1,3], k = 1') print('Exception :') print('false') print('Output :') print(str(Solution().findTarget(listToTreeNode([2, 1, 3]), 1))) print() print('Example 5:') print('Input : ') print('root = [2,1,3], k = 3') print('Exception :') print('true') print('Output :') print(str(Solution().findTarget(listToTreeNode([2, 1, 3]), 3))) print() print(str(Solution().findTarget(listToTreeNode([1]), 2))) pass # @lc main=end
[ 2, 2488, 44601, 598, 28, 293, 316, 8189, 4686, 28, 46435, 42392, 28, 29412, 18, 198, 2, 198, 2, 685, 46435, 60, 4930, 5060, 8363, 532, 23412, 318, 257, 44992, 198, 2, 198, 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 11545, 12, 16345, 12, 452, 12, 15414, 12, 271, 12, 64, 12, 65, 301, 14, 11213, 14, 198, 2, 198, 2, 16113, 198, 2, 16789, 357, 3553, 13, 3980, 4407, 198, 2, 46077, 25, 220, 220, 220, 25829, 17, 198, 2, 360, 3044, 7938, 25, 19038, 198, 2, 7472, 21699, 276, 25, 220, 220, 220, 32996, 13, 22, 42, 198, 2, 7472, 3834, 8481, 25, 35090, 13, 19, 42, 198, 2, 6208, 7442, 17934, 25, 220, 44438, 20, 11, 18, 11, 21, 11, 17, 11, 19, 11, 8423, 11, 22, 60, 59, 77, 24, 6, 198, 2, 198, 2, 11259, 262, 6808, 286, 257, 45755, 11140, 12200, 290, 257, 2496, 1271, 479, 11, 1441, 2081, 611, 198, 2, 612, 2152, 734, 4847, 287, 262, 44992, 884, 326, 511, 2160, 318, 4961, 284, 262, 1813, 198, 2, 2496, 13, 198, 2, 198, 2, 198, 2, 17934, 352, 25, 198, 2, 198, 2, 198, 2, 23412, 25, 6808, 796, 685, 20, 11, 18, 11, 21, 11, 17, 11, 19, 11, 8423, 11, 22, 4357, 479, 796, 860, 198, 2, 25235, 25, 2081, 198, 2, 198, 2, 198, 2, 17934, 362, 25, 198, 2, 198, 2, 198, 2, 23412, 25, 6808, 796, 685, 20, 11, 18, 11, 21, 11, 17, 11, 19, 11, 8423, 11, 22, 4357, 479, 796, 2579, 198, 2, 25235, 25, 3991, 198, 2, 198, 2, 198, 2, 17934, 513, 25, 198, 2, 198, 2, 198, 2, 23412, 25, 6808, 796, 685, 17, 11, 16, 11, 18, 4357, 479, 796, 604, 198, 2, 25235, 25, 2081, 198, 2, 198, 2, 198, 2, 17934, 604, 25, 198, 2, 198, 2, 198, 2, 23412, 25, 6808, 796, 685, 17, 11, 16, 11, 18, 4357, 479, 796, 352, 198, 2, 25235, 25, 3991, 198, 2, 198, 2, 198, 2, 17934, 642, 25, 198, 2, 198, 2, 198, 2, 23412, 25, 6808, 796, 685, 17, 11, 16, 11, 18, 4357, 479, 796, 513, 198, 2, 25235, 25, 2081, 198, 2, 198, 2, 198, 2, 198, 2, 1482, 2536, 6003, 25, 198, 2, 198, 2, 198, 2, 383, 1271, 286, 13760, 287, 262, 5509, 318, 287, 262, 2837, 685, 16, 11, 838, 61, 19, 4083, 198, 2, 532, 940, 61, 19, 1849, 27, 28, 19081, 13, 2100, 19841, 838, 61, 19, 198, 2, 6808, 318, 11462, 284, 307, 257, 4938, 13934, 2989, 5509, 13, 198, 2, 532, 940, 61, 20, 1849, 27, 28, 479, 19841, 838, 61, 20, 198, 2, 198, 2, 198, 2, 198, 198, 2, 2488, 44601, 15940, 28, 21048, 198, 198, 2, 2488, 44601, 17944, 28, 9688, 198, 6738, 17944, 1330, 1635, 198, 198, 2, 2488, 44601, 17944, 28, 437, 198, 198, 2, 2488, 44601, 2126, 28, 9688, 198, 2, 198, 2, 10263, 250, 101, 12859, 234, 20998, 231, 162, 238, 250, 163, 112, 95, 43718, 239, 40792, 171, 120, 234, 26344, 97, 23877, 255, 42468, 28938, 99, 17312, 231, 10310, 97, 10310, 103, 46763, 108, 27764, 245, 161, 240, 234, 10310, 118, 162, 234, 229, 22522, 248, 161, 222, 120, 16764, 198, 2, 13328, 249, 112, 162, 236, 98, 34402, 235, 43889, 228, 16764, 198, 2, 198, 2, 2488, 44601, 2126, 28, 437, 198, 198, 2, 2488, 44601, 1448, 28, 198, 198, 2, 2488, 44601, 4279, 28, 628, 198, 2, 2488, 44601, 2438, 28, 9688, 198, 2, 30396, 329, 257, 13934, 5509, 10139, 13, 198, 2, 1398, 12200, 19667, 25, 198, 2, 220, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 1188, 28, 15, 11, 1364, 28, 14202, 11, 826, 28, 14202, 2599, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 2100, 796, 1188, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 9464, 796, 1364, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 3506, 796, 826, 628, 198, 2, 2488, 44601, 2438, 28, 437, 198, 198, 2, 2488, 44601, 1388, 28, 9688, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 628, 220, 220, 220, 3601, 10786, 16281, 352, 25, 11537, 198, 220, 220, 220, 3601, 10786, 20560, 1058, 705, 8, 198, 220, 220, 220, 3601, 10786, 15763, 796, 685, 20, 11, 18, 11, 21, 11, 17, 11, 19, 11, 8423, 11, 22, 4357, 479, 796, 860, 11537, 198, 220, 220, 220, 3601, 10786, 16922, 1058, 11537, 198, 220, 220, 220, 3601, 10786, 7942, 11537, 198, 220, 220, 220, 3601, 10786, 26410, 1058, 11537, 198, 220, 220, 220, 3601, 7, 198, 220, 220, 220, 220, 220, 220, 220, 965, 7, 46344, 22446, 19796, 21745, 7, 4868, 2514, 27660, 19667, 26933, 20, 11, 513, 11, 718, 11, 362, 11, 604, 11, 6045, 11, 767, 46570, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 860, 22305, 198, 220, 220, 220, 3601, 3419, 628, 220, 220, 220, 3601, 10786, 16281, 362, 25, 11537, 198, 220, 220, 220, 3601, 10786, 20560, 1058, 705, 8, 198, 220, 220, 220, 3601, 10786, 15763, 796, 685, 20, 11, 18, 11, 21, 11, 17, 11, 19, 11, 8423, 11, 22, 4357, 479, 796, 2579, 11537, 198, 220, 220, 220, 3601, 10786, 16922, 1058, 11537, 198, 220, 220, 220, 3601, 10786, 9562, 11537, 198, 220, 220, 220, 3601, 10786, 26410, 1058, 11537, 198, 220, 220, 220, 3601, 7, 198, 220, 220, 220, 220, 220, 220, 220, 965, 7, 46344, 22446, 19796, 21745, 7, 4868, 2514, 27660, 19667, 26933, 20, 11, 513, 11, 718, 11, 362, 11, 604, 11, 6045, 11, 767, 46570, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2579, 22305, 198, 220, 220, 220, 3601, 3419, 628, 220, 220, 220, 3601, 10786, 16281, 513, 25, 11537, 198, 220, 220, 220, 3601, 10786, 20560, 1058, 705, 8, 198, 220, 220, 220, 3601, 10786, 15763, 796, 685, 17, 11, 16, 11, 18, 4357, 479, 796, 604, 11537, 198, 220, 220, 220, 3601, 10786, 16922, 1058, 11537, 198, 220, 220, 220, 3601, 10786, 7942, 11537, 198, 220, 220, 220, 3601, 10786, 26410, 1058, 11537, 198, 220, 220, 220, 3601, 7, 2536, 7, 46344, 22446, 19796, 21745, 7, 4868, 2514, 27660, 19667, 26933, 17, 11, 352, 11, 513, 46570, 604, 22305, 198, 220, 220, 220, 3601, 3419, 628, 220, 220, 220, 3601, 10786, 16281, 604, 25, 11537, 198, 220, 220, 220, 3601, 10786, 20560, 1058, 705, 8, 198, 220, 220, 220, 3601, 10786, 15763, 796, 685, 17, 11, 16, 11, 18, 4357, 479, 796, 352, 11537, 198, 220, 220, 220, 3601, 10786, 16922, 1058, 11537, 198, 220, 220, 220, 3601, 10786, 9562, 11537, 198, 220, 220, 220, 3601, 10786, 26410, 1058, 11537, 198, 220, 220, 220, 3601, 7, 2536, 7, 46344, 22446, 19796, 21745, 7, 4868, 2514, 27660, 19667, 26933, 17, 11, 352, 11, 513, 46570, 352, 22305, 198, 220, 220, 220, 3601, 3419, 628, 220, 220, 220, 3601, 10786, 16281, 642, 25, 11537, 198, 220, 220, 220, 3601, 10786, 20560, 1058, 705, 8, 198, 220, 220, 220, 3601, 10786, 15763, 796, 685, 17, 11, 16, 11, 18, 4357, 479, 796, 513, 11537, 198, 220, 220, 220, 3601, 10786, 16922, 1058, 11537, 198, 220, 220, 220, 3601, 10786, 7942, 11537, 198, 220, 220, 220, 3601, 10786, 26410, 1058, 11537, 198, 220, 220, 220, 3601, 7, 2536, 7, 46344, 22446, 19796, 21745, 7, 4868, 2514, 27660, 19667, 26933, 17, 11, 352, 11, 513, 46570, 513, 22305, 198, 220, 220, 220, 3601, 3419, 198, 220, 220, 220, 3601, 7, 2536, 7, 46344, 22446, 19796, 21745, 7, 4868, 2514, 27660, 19667, 26933, 16, 46570, 362, 22305, 198, 220, 220, 220, 1208, 198, 2, 2488, 44601, 1388, 28, 437 ]
2.136228
1,336
# Given an unsorted array of integers, find the length of longest continuous increasing subsequence. # Example 1: # Input: [1,3,5,4,7] # Output: 3 # Explanation: The longest continuous increasing subsequence is [1,3,5], its length is 3. # Even though [1,3,5,7] is also an increasing subsequence, it's not a continuous one where 5 and 7 are separated by 4. # Example 2: # Input: [2,2,2,2,2] # Output: 1 # Explanation: The longest continuous increasing subsequence is [2], its length is 1. # Note: Length of the array will not exceed 10,000. # simple DP
[ 2, 11259, 281, 5576, 9741, 7177, 286, 37014, 11, 1064, 262, 4129, 286, 14069, 12948, 3649, 6399, 594, 13, 198, 198, 2, 17934, 352, 25, 198, 2, 23412, 25, 685, 16, 11, 18, 11, 20, 11, 19, 11, 22, 60, 198, 2, 25235, 25, 513, 198, 2, 50125, 341, 25, 383, 14069, 12948, 3649, 6399, 594, 318, 685, 16, 11, 18, 11, 20, 4357, 663, 4129, 318, 513, 13, 220, 198, 2, 3412, 996, 685, 16, 11, 18, 11, 20, 11, 22, 60, 318, 635, 281, 3649, 6399, 594, 11, 340, 338, 407, 257, 12948, 530, 810, 642, 290, 767, 389, 11266, 416, 604, 13, 220, 198, 2, 17934, 362, 25, 198, 2, 23412, 25, 685, 17, 11, 17, 11, 17, 11, 17, 11, 17, 60, 198, 2, 25235, 25, 352, 198, 2, 50125, 341, 25, 383, 14069, 12948, 3649, 6399, 594, 318, 685, 17, 4357, 663, 4129, 318, 352, 13, 220, 198, 2, 5740, 25, 22313, 286, 262, 7177, 481, 407, 7074, 838, 11, 830, 13, 198, 2, 2829, 27704, 198 ]
3.232558
172
''' ############################# # Gerardo Galan Garzafox # # A00821196 # # # # alebrije_lexer.py # # Created_at 2021-09-25 # # # ############################# ''' import sys import ply.lex as lex reserved = { 'program' : 'PROGRAM', 'main' : 'MAIN', 'vars' : 'VARS', 'int' : 'INT', 'float' : 'FLOAT', 'bool' : 'BOOL', 'char': 'CHAR', 'string' : 'STRING', 'function' : 'FUNCTION', 'return' : 'RETURN', 'read' : 'READ', 'write' : 'WRITE', 'if' : 'IF', 'else' : 'ELSE', 'while' : 'WHILE', 'for' : 'FOR', 'to' : 'TO', 'void' : 'VOID', 'and' : 'AND', 'or' : 'OR', 'median' : 'MEDIAN', 'mode' : 'MODE', 'mean' : 'MEAN', 'variance' : 'VARIANCE', 'regression' : 'REGRESSION', 'plotxy' : 'PLOTXY', 'max' : 'MAX', 'min' : 'MIN', } tokens = list(reserved.values()) + [ 'LESS', 'GREATER', 'LESS_EQ', 'GREATER_EQ', 'EQUIVALENT', 'DIFFERENT', 'EQUAL', 'MULT', 'DIV', 'PLUS', 'MINUS', 'REMAINDER', 'EXP', 'MULT_EQ', 'DIV_EQ', 'PLUS_EQ', 'MINUS_EQ', 'L_BRACE', 'R_BRACE', 'L_BRACKET', 'R_BRACKET', 'L_PAR', 'R_PAR', 'COLON', 'SEMICOLON', 'COMMA', 'ID', 'CTE_INT', 'CTE_FLOAT', 'CTE_BOOL', 'CTE_CHAR', 'CTE_STRING' ] # Simple tokens t_LESS = r'\<' t_GREATER = r'\>' t_LESS_EQ = r'\<\=' t_GREATER_EQ = r'\>\=' t_EQUAL = r'\=' t_MULT = r'\*' t_DIV = r'\/' t_PLUS = r'\+' t_MINUS = r'\-' t_REMAINDER = r'\%' t_EXP = r'\^' t_MULT_EQ = r'\*\=' t_DIV_EQ = r'\/\=' t_PLUS_EQ = r'\+\=' t_MINUS_EQ = r'\-\=' t_L_BRACE = r'\{' t_R_BRACE = r'\}' t_L_BRACKET = r'\[' t_R_BRACKET = r'\]' t_L_PAR = r'\(' t_R_PAR = r'\)' t_COLON = r'\:' t_SEMICOLON = r'\;' t_COMMA = r'\,' t_EQUIVALENT = r'\=\=' t_DIFFERENT = r'\!\=' t_ignore = ' \t' t_ignore_COMMENT = r'\/\/.*' # complex tokens def t_CTE_BOOL(t): r'(True|true|False|false)' t.type = 'CTE_BOOL' return t def t_ID(t): r'[a-zA-Z][a-zA-Z_0-9]*' reserved_type = reserved.get(t.value, False) if reserved_type: t.type = reserved_type return t else: t.type = 'ID' return t def t_CTE_FLOAT(t): r'-?\d+\.\d+' t.value = float(t.value) return t def t_CTE_INT(t): r'-?\d+' t.value = int(t.value) return t def t_CTE_CHAR(t): r'(\'((?!\').)\')|(\"((?!\").)\")' t.type = 'CTE_CHAR' return t ''' the regex does a negative look ahead(?!) for ' or ' depending on the case, so \'\'\' is invalid and so is ' ''' def t_CTE_STRING(t): r'(\'((?!\').)*\')|(\"((?!\").)*\")' t.type = 'CTE_STRING' return t # Define a rule so we can track line numbers def t_newline(t): r'\n+' t.lexer.lineno += len(t.value) # build the lexer lexer = lex.lex() # Tokenize if __name__ == '__main__': code = '' if len(sys.argv) > 1: file = open('{0}'.format(sys.argv[1]), 'r') else: file = open('Test/test_func.alebrije', 'r') for line in file: code += line # Give the lexer some input lexer.input(code) while True: tok = lexer.token() if not tok: break # No more input print(tok)
[ 7061, 6, 198, 14468, 7804, 4242, 2, 198, 2, 220, 220, 13573, 13109, 5027, 272, 7164, 89, 1878, 1140, 220, 1303, 198, 2, 220, 220, 317, 25257, 2481, 25272, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 198, 2, 220, 220, 31341, 65, 380, 18015, 62, 2588, 263, 13, 9078, 220, 220, 220, 220, 220, 220, 1303, 198, 2, 220, 220, 15622, 62, 265, 33448, 12, 2931, 12, 1495, 220, 220, 1303, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 198, 14468, 7804, 4242, 2, 198, 7061, 6, 220, 198, 11748, 25064, 198, 11748, 35960, 13, 2588, 355, 31191, 198, 198, 411, 8520, 796, 1391, 198, 220, 220, 220, 705, 23065, 6, 1058, 705, 4805, 7730, 24115, 3256, 198, 220, 220, 220, 705, 12417, 6, 1058, 705, 5673, 1268, 3256, 198, 220, 220, 220, 705, 85, 945, 6, 1058, 705, 53, 27415, 3256, 198, 220, 220, 220, 705, 600, 6, 1058, 705, 12394, 3256, 198, 220, 220, 220, 705, 22468, 6, 1058, 705, 3697, 46, 1404, 3256, 198, 220, 220, 220, 705, 30388, 6, 1058, 705, 8202, 3535, 3256, 198, 220, 220, 220, 705, 10641, 10354, 705, 38019, 3256, 198, 220, 220, 220, 705, 8841, 6, 1058, 705, 18601, 2751, 3256, 198, 220, 220, 220, 705, 8818, 6, 1058, 705, 42296, 4177, 2849, 3256, 198, 220, 220, 220, 705, 7783, 6, 1058, 705, 26087, 27064, 3256, 198, 220, 220, 220, 705, 961, 6, 1058, 705, 15675, 3256, 198, 220, 220, 220, 705, 13564, 6, 1058, 705, 18564, 12709, 3256, 198, 220, 220, 220, 705, 361, 6, 1058, 705, 5064, 3256, 198, 220, 220, 220, 705, 17772, 6, 1058, 705, 3698, 5188, 3256, 198, 220, 220, 220, 705, 4514, 6, 1058, 705, 12418, 41119, 3256, 198, 220, 220, 220, 705, 1640, 6, 1058, 705, 13775, 3256, 198, 220, 220, 220, 705, 1462, 6, 1058, 705, 10468, 3256, 198, 220, 220, 220, 705, 19382, 6, 1058, 705, 29516, 2389, 3256, 198, 220, 220, 220, 705, 392, 6, 1058, 705, 6981, 3256, 198, 220, 220, 220, 705, 273, 6, 1058, 705, 1581, 3256, 198, 220, 220, 220, 705, 1150, 666, 6, 1058, 705, 30733, 16868, 3256, 198, 220, 220, 220, 705, 14171, 6, 1058, 705, 49058, 3256, 198, 220, 220, 220, 705, 32604, 6, 1058, 705, 11682, 1565, 3256, 198, 220, 220, 220, 705, 25641, 590, 6, 1058, 705, 53, 1503, 16868, 5222, 3256, 198, 220, 220, 220, 705, 2301, 2234, 6, 1058, 705, 2200, 10761, 47621, 3256, 198, 220, 220, 220, 705, 29487, 5431, 6, 1058, 705, 6489, 2394, 34278, 3256, 198, 220, 220, 220, 705, 9806, 6, 1058, 705, 22921, 3256, 198, 220, 220, 220, 705, 1084, 6, 1058, 705, 23678, 3256, 198, 92, 628, 198, 83, 482, 641, 796, 1351, 7, 411, 8520, 13, 27160, 28955, 1343, 685, 198, 220, 220, 220, 705, 48481, 3256, 198, 220, 220, 220, 705, 28934, 23261, 3256, 198, 220, 220, 220, 705, 48481, 62, 36, 48, 3256, 198, 220, 220, 220, 705, 28934, 23261, 62, 36, 48, 3256, 198, 220, 220, 220, 705, 36, 10917, 3824, 1847, 3525, 3256, 198, 220, 220, 220, 705, 35, 5064, 24302, 3525, 3256, 198, 220, 220, 220, 705, 36, 10917, 1847, 3256, 198, 220, 220, 220, 705, 44, 16724, 3256, 198, 220, 220, 220, 705, 33569, 3256, 198, 220, 220, 220, 705, 6489, 2937, 3256, 198, 220, 220, 220, 705, 23678, 2937, 3256, 198, 220, 220, 220, 705, 2200, 5673, 12115, 1137, 3256, 198, 220, 220, 220, 705, 49864, 3256, 198, 220, 220, 220, 705, 44, 16724, 62, 36, 48, 3256, 198, 220, 220, 220, 705, 33569, 62, 36, 48, 3256, 198, 220, 220, 220, 705, 6489, 2937, 62, 36, 48, 3256, 198, 220, 220, 220, 705, 23678, 2937, 62, 36, 48, 3256, 198, 220, 220, 220, 705, 43, 62, 11473, 11598, 3256, 198, 220, 220, 220, 705, 49, 62, 11473, 11598, 3256, 198, 220, 220, 220, 705, 43, 62, 11473, 8120, 2767, 3256, 198, 220, 220, 220, 705, 49, 62, 11473, 8120, 2767, 3256, 198, 220, 220, 220, 705, 43, 62, 27082, 3256, 198, 220, 220, 220, 705, 49, 62, 27082, 3256, 198, 220, 220, 220, 705, 25154, 1340, 3256, 198, 220, 220, 220, 705, 50, 3620, 2149, 3535, 1340, 3256, 198, 220, 220, 220, 705, 9858, 5673, 3256, 198, 220, 220, 220, 705, 2389, 3256, 198, 220, 220, 220, 705, 4177, 36, 62, 12394, 3256, 198, 220, 220, 220, 705, 4177, 36, 62, 3697, 46, 1404, 3256, 198, 220, 220, 220, 705, 4177, 36, 62, 8202, 3535, 3256, 198, 220, 220, 220, 705, 4177, 36, 62, 38019, 3256, 198, 220, 220, 220, 705, 4177, 36, 62, 18601, 2751, 6, 198, 60, 220, 198, 198, 2, 17427, 16326, 198, 83, 62, 48481, 796, 374, 6, 49778, 6, 198, 83, 62, 28934, 23261, 796, 374, 6, 59, 29, 6, 198, 83, 62, 48481, 62, 36, 48, 796, 374, 6, 49778, 59, 11639, 198, 83, 62, 28934, 23261, 62, 36, 48, 796, 374, 6, 59, 29, 59, 11639, 220, 198, 83, 62, 36, 10917, 1847, 796, 374, 6, 59, 11639, 198, 83, 62, 44, 16724, 796, 374, 6, 59, 9, 6, 198, 83, 62, 33569, 796, 374, 6, 11139, 6, 198, 83, 62, 6489, 2937, 796, 374, 6, 59, 10, 6, 198, 83, 62, 23678, 2937, 796, 374, 6, 59, 19355, 198, 83, 62, 2200, 5673, 12115, 1137, 796, 374, 6, 59, 4, 6, 198, 83, 62, 49864, 796, 374, 6, 59, 61, 6, 198, 83, 62, 44, 16724, 62, 36, 48, 796, 374, 6, 59, 9, 59, 11639, 198, 83, 62, 33569, 62, 36, 48, 796, 374, 6, 11139, 59, 11639, 198, 83, 62, 6489, 2937, 62, 36, 48, 796, 374, 6, 59, 10, 59, 11639, 198, 83, 62, 23678, 2937, 62, 36, 48, 796, 374, 6, 41441, 59, 11639, 198, 83, 62, 43, 62, 11473, 11598, 796, 374, 6, 59, 90, 6, 198, 83, 62, 49, 62, 11473, 11598, 796, 374, 6, 59, 92, 6, 198, 83, 62, 43, 62, 11473, 8120, 2767, 796, 374, 6, 59, 17816, 198, 83, 62, 49, 62, 11473, 8120, 2767, 796, 374, 6, 59, 49946, 198, 83, 62, 43, 62, 27082, 796, 374, 6, 59, 10786, 198, 83, 62, 49, 62, 27082, 796, 374, 6, 22725, 6, 198, 83, 62, 25154, 1340, 796, 374, 6, 59, 32105, 198, 83, 62, 50, 3620, 2149, 3535, 1340, 796, 374, 6, 59, 26, 6, 198, 83, 62, 9858, 5673, 796, 374, 6, 59, 4032, 198, 83, 62, 36, 10917, 3824, 1847, 3525, 796, 374, 6, 59, 28, 59, 11639, 198, 83, 62, 35, 5064, 24302, 3525, 796, 374, 6, 59, 0, 59, 11639, 198, 83, 62, 46430, 796, 705, 3467, 83, 6, 198, 83, 62, 46430, 62, 9858, 10979, 796, 374, 6, 45422, 15885, 6, 198, 198, 2, 3716, 16326, 198, 220, 220, 220, 220, 198, 4299, 256, 62, 4177, 36, 62, 8202, 3535, 7, 83, 2599, 198, 220, 220, 220, 374, 6, 7, 17821, 91, 7942, 91, 25101, 91, 9562, 33047, 198, 220, 220, 220, 256, 13, 4906, 796, 705, 4177, 36, 62, 8202, 3535, 6, 198, 220, 220, 220, 1441, 256, 198, 198, 4299, 256, 62, 2389, 7, 83, 2599, 198, 220, 220, 220, 374, 6, 58, 64, 12, 89, 32, 12, 57, 7131, 64, 12, 89, 32, 12, 57, 62, 15, 12, 24, 60, 9, 6, 198, 220, 220, 220, 10395, 62, 4906, 220, 796, 10395, 13, 1136, 7, 83, 13, 8367, 11, 10352, 8, 198, 220, 220, 220, 611, 10395, 62, 4906, 25, 198, 220, 220, 220, 220, 220, 220, 220, 256, 13, 4906, 796, 10395, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 256, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 256, 13, 4906, 796, 705, 2389, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 256, 198, 198, 4299, 256, 62, 4177, 36, 62, 3697, 46, 1404, 7, 83, 2599, 198, 220, 220, 220, 374, 29001, 30, 59, 67, 10, 17405, 59, 67, 10, 6, 198, 220, 220, 220, 256, 13, 8367, 796, 12178, 7, 83, 13, 8367, 8, 198, 220, 220, 220, 1441, 256, 198, 198, 4299, 256, 62, 4177, 36, 62, 12394, 7, 83, 2599, 198, 220, 220, 220, 374, 29001, 30, 59, 67, 10, 6, 198, 220, 220, 220, 256, 13, 8367, 796, 493, 7, 83, 13, 8367, 8, 198, 220, 220, 220, 1441, 256, 198, 198, 4299, 256, 62, 4177, 36, 62, 38019, 7, 83, 2599, 198, 220, 220, 220, 374, 6, 38016, 6, 19510, 12248, 59, 27691, 19415, 11537, 91, 7, 7879, 19510, 12248, 7879, 737, 19415, 4943, 6, 198, 220, 220, 220, 256, 13, 4906, 796, 705, 4177, 36, 62, 38019, 6, 198, 220, 220, 220, 1441, 256, 198, 198, 7061, 6, 198, 1169, 40364, 857, 257, 4633, 804, 4058, 7, 30, 8133, 329, 705, 393, 705, 6906, 198, 261, 262, 1339, 11, 523, 34373, 43054, 43054, 318, 12515, 290, 523, 318, 705, 198, 7061, 6, 198, 4299, 256, 62, 4177, 36, 62, 18601, 2751, 7, 83, 2599, 198, 220, 220, 220, 374, 6, 38016, 6, 19510, 12248, 59, 27691, 27493, 59, 11537, 91, 7, 7879, 19510, 12248, 7879, 737, 27493, 59, 4943, 6, 198, 220, 220, 220, 256, 13, 4906, 796, 705, 4177, 36, 62, 18601, 2751, 6, 198, 220, 220, 220, 1441, 256, 198, 198, 2, 2896, 500, 257, 3896, 523, 356, 460, 2610, 1627, 3146, 198, 4299, 256, 62, 3605, 1370, 7, 83, 2599, 198, 220, 220, 220, 374, 6, 59, 77, 10, 6, 198, 220, 220, 220, 256, 13, 2588, 263, 13, 2815, 23397, 15853, 18896, 7, 83, 13, 8367, 8, 628, 198, 2, 1382, 262, 31191, 263, 198, 2588, 263, 796, 31191, 13, 2588, 3419, 198, 198, 2, 29130, 1096, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 2438, 796, 10148, 198, 220, 220, 220, 611, 18896, 7, 17597, 13, 853, 85, 8, 1875, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2393, 796, 1280, 10786, 90, 15, 92, 4458, 18982, 7, 17597, 13, 853, 85, 58, 16, 46570, 705, 81, 11537, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2393, 796, 1280, 10786, 14402, 14, 9288, 62, 20786, 13, 32100, 380, 18015, 3256, 705, 81, 11537, 198, 220, 220, 220, 329, 1627, 287, 2393, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2438, 15853, 1627, 628, 220, 220, 220, 1303, 13786, 262, 31191, 263, 617, 5128, 198, 220, 220, 220, 31191, 263, 13, 15414, 7, 8189, 8, 628, 220, 220, 220, 981, 6407, 25, 198, 220, 220, 220, 220, 220, 220, 220, 284, 74, 796, 31191, 263, 13, 30001, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 611, 407, 284, 74, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2270, 220, 1303, 1400, 517, 5128, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 83, 482, 8 ]
1.777658
1,862
import unittest from travel_distance_map import GPSPoint, Position
[ 11748, 555, 715, 395, 198, 6738, 3067, 62, 30246, 62, 8899, 1330, 15472, 12727, 11, 23158, 628, 198 ]
3.833333
18
import numpy as np import re import json import os if __name__=='__main__': import argparse import os import json from tqdm import tqdm import pickle from multiprocessing import Pool parser = argparse.ArgumentParser() parser.add_argument("--src_dir", help="source dir", required=True ) parser.add_argument("--dst_file", help="destnation file", required=True ) parser.add_argument("--language", help="use language (ja/hi/ta/japanese/hindi/tamil)", required=True ) parser.add_argument("--num_process", help="process num", type=int, default=8 ) parser.add_argument("--combine", help="Concatenate files with <|endoftext|> separator into chunks of this minimum size", type=int, default=50000 ) parser.add_argument('--clean_text', action='store_true') args = parser.parse_args() language = args.language.lower()[:2] assert language in ["ja","hi","ta"], f"unsupported language: {lang}" vocabulary = os.path.join("vocabulary", language+"-swe24k.txt") enc = get_encoder(vocabulary, "emoji.json", language!="ja") array_file = [] for curDir, dirs, files in os.walk(args.src_dir): array_file.append((curDir, dirs, files)) with Pool(args.num_process) as p: p.map(_proc, list(range(args.num_process))) token_chunks = [] for i in range(args.num_process): with open('tmp%d.pkl'%i, 'rb') as f: token_chunks.extend(pickle.load(f)) np.savez_compressed(args.dst_file, *token_chunks) for i in range(args.num_process): os.remove('tmp%d.pkl'%i) print("end")
[ 11748, 299, 32152, 355, 45941, 198, 11748, 302, 198, 11748, 33918, 198, 11748, 28686, 198, 198, 361, 11593, 3672, 834, 855, 6, 834, 12417, 834, 10354, 198, 220, 220, 220, 1330, 1822, 29572, 198, 220, 220, 220, 1330, 28686, 198, 220, 220, 220, 1330, 33918, 198, 220, 220, 220, 422, 256, 80, 36020, 1330, 256, 80, 36020, 198, 220, 220, 220, 1330, 2298, 293, 198, 220, 220, 220, 422, 18540, 305, 919, 278, 1330, 19850, 198, 220, 220, 220, 30751, 796, 1822, 29572, 13, 28100, 1713, 46677, 3419, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 7203, 438, 10677, 62, 15908, 1600, 1037, 2625, 10459, 26672, 1600, 2672, 28, 17821, 1267, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 7203, 438, 67, 301, 62, 7753, 1600, 1037, 2625, 16520, 25729, 2393, 1600, 2672, 28, 17821, 1267, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 7203, 438, 16129, 1600, 1037, 2625, 1904, 3303, 357, 6592, 14, 5303, 14, 8326, 14, 73, 2674, 2771, 14, 71, 521, 72, 14, 83, 321, 346, 42501, 2672, 28, 17821, 1267, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 7203, 438, 22510, 62, 14681, 1600, 1037, 2625, 14681, 997, 1600, 2099, 28, 600, 11, 4277, 28, 23, 1267, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 7203, 438, 24011, 500, 1600, 1037, 2625, 3103, 9246, 268, 378, 3696, 351, 220, 50256, 2880, 1352, 656, 22716, 286, 428, 5288, 2546, 1600, 2099, 28, 600, 11, 4277, 28, 20, 2388, 1267, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 27773, 62, 5239, 3256, 2223, 11639, 8095, 62, 7942, 11537, 198, 220, 220, 220, 26498, 796, 30751, 13, 29572, 62, 22046, 3419, 628, 220, 220, 220, 3303, 796, 26498, 13, 16129, 13, 21037, 3419, 58, 25, 17, 60, 198, 220, 220, 220, 6818, 3303, 287, 14631, 6592, 2430, 5303, 2430, 8326, 33116, 277, 1, 403, 15999, 3303, 25, 1391, 17204, 36786, 198, 220, 220, 220, 25818, 796, 28686, 13, 6978, 13, 22179, 7203, 18893, 22528, 1600, 3303, 10, 26793, 46280, 1731, 74, 13, 14116, 4943, 198, 220, 220, 220, 2207, 796, 651, 62, 12685, 12342, 7, 18893, 22528, 11, 366, 368, 31370, 13, 17752, 1600, 3303, 0, 2625, 6592, 4943, 628, 220, 220, 220, 7177, 62, 7753, 796, 17635, 628, 220, 220, 220, 329, 1090, 35277, 11, 288, 17062, 11, 3696, 287, 28686, 13, 11152, 7, 22046, 13, 10677, 62, 15908, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 7177, 62, 7753, 13, 33295, 19510, 22019, 35277, 11, 288, 17062, 11, 3696, 4008, 628, 220, 220, 220, 351, 19850, 7, 22046, 13, 22510, 62, 14681, 8, 355, 279, 25, 198, 220, 220, 220, 220, 220, 220, 220, 279, 13, 8899, 28264, 36942, 11, 1351, 7, 9521, 7, 22046, 13, 22510, 62, 14681, 22305, 628, 220, 220, 220, 11241, 62, 354, 14125, 796, 17635, 198, 220, 220, 220, 329, 1312, 287, 2837, 7, 22046, 13, 22510, 62, 14681, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 351, 1280, 10786, 22065, 4, 67, 13, 79, 41582, 6, 4, 72, 11, 705, 26145, 11537, 355, 277, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11241, 62, 354, 14125, 13, 2302, 437, 7, 27729, 293, 13, 2220, 7, 69, 4008, 628, 220, 220, 220, 45941, 13, 21928, 89, 62, 5589, 2790, 7, 22046, 13, 67, 301, 62, 7753, 11, 1635, 30001, 62, 354, 14125, 8, 628, 220, 220, 220, 329, 1312, 287, 2837, 7, 22046, 13, 22510, 62, 14681, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 28956, 10786, 22065, 4, 67, 13, 79, 41582, 6, 4, 72, 8, 198, 220, 220, 220, 3601, 7203, 437, 4943, 198 ]
2.595432
613
from django.db import migrations, models
[ 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
3.818182
11
"""Insall script.""" from setuptools import setup setup( name="symbexpr", version="0.0.1a1", py_modules=["symbexpr"], zip_safe=True, author="Alan Cristhian", author_email="[email protected]", description="Systems of equalities, inequalities and constraints.", license="MIT", keywords="data structure", url="https://github.com/AlanCristhian/symbexpr", )
[ 37811, 20376, 439, 4226, 526, 15931, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 1837, 2022, 31937, 1600, 198, 220, 220, 220, 2196, 2625, 15, 13, 15, 13, 16, 64, 16, 1600, 198, 220, 220, 220, 12972, 62, 18170, 28, 14692, 1837, 2022, 31937, 33116, 628, 220, 220, 220, 19974, 62, 21230, 28, 17821, 11, 198, 220, 220, 220, 1772, 2625, 36235, 24568, 71, 666, 1600, 198, 220, 220, 220, 1772, 62, 12888, 2625, 25786, 13, 66, 1585, 71, 31, 14816, 13, 785, 1600, 198, 220, 220, 220, 6764, 2625, 11964, 82, 286, 4961, 871, 11, 45460, 290, 17778, 33283, 198, 220, 220, 220, 5964, 2625, 36393, 1600, 198, 220, 220, 220, 26286, 2625, 7890, 4645, 1600, 198, 220, 220, 220, 19016, 2625, 5450, 1378, 12567, 13, 785, 14, 36235, 34, 1585, 71, 666, 14, 1837, 2022, 31937, 1600, 198, 8, 198 ]
2.631579
152
#!/usr/bin/env python # Copyright 2016 Andy Chu. 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 """ cmd_parse.py - Parse high level shell commands. """ from __future__ import print_function from asdl import const from core import alloc from core import util from core.meta import syntax_asdl, types_asdl, Id, Kind from frontend import match from frontend import reader from osh import braces from osh import bool_parse from osh import word log = util.log p_die = util.p_die assign_op_e = syntax_asdl.assign_op_e command = syntax_asdl.command command_e = syntax_asdl.command_e lhs_expr = syntax_asdl.lhs_expr redir = syntax_asdl.redir word_part = syntax_asdl.word_part word_e = syntax_asdl.word_e osh_word = syntax_asdl.word # TODO: rename lex_mode_e = types_asdl.lex_mode_e def _MakeLiteralHereLines(here_lines, arena): """Create a line_span and a token for each line.""" tokens = [] for line_id, line, start_offset in here_lines: line_span = syntax_asdl.line_span(line_id, start_offset, len(line)) span_id = arena.AddLineSpan(line_span) t = syntax_asdl.token(Id.Lit_Chars, line[start_offset:], span_id) tokens.append(t) return [word_part.LiteralPart(t) for t in tokens] def _ParseHereDocBody(parse_ctx, h, line_reader, arena): """Fill in attributes of a pending here doc node.""" # "If any character in word is quoted, the delimiter shall be formed by # performing quote removal on word, and the here-document lines shall not # be expanded. Otherwise, the delimiter shall be the word itself." # NOTE: \EOF counts, or even E\OF ok, delimiter, delim_quoted = word.StaticEval(h.here_begin) if not ok: p_die('Invalid here doc delimiter', word=h.here_begin) here_lines, last_line = _ReadHereLines(line_reader, h, delimiter) if delim_quoted: # << 'EOF' # LiteralPart for each line. h.stdin_parts = _MakeLiteralHereLines(here_lines, arena) else: line_reader = reader.VirtualLineReader(here_lines, arena) w_parser = parse_ctx.MakeWordParserForHereDoc(line_reader) w_parser.ReadHereDocBody(h.stdin_parts) # fills this in end_line_id, end_line, end_pos = last_line # Create a span with the end terminator. Maintains the invariant that # the spans "add up". line_span = syntax_asdl.line_span(end_line_id, end_pos, len(end_line)) h.here_end_span_id = arena.AddLineSpan(line_span) def _MakeAssignPair(parse_ctx, preparsed): """Create an assign_pair from a 4-tuples from DetectAssignment.""" left_token, close_token, part_offset, w = preparsed if left_token.id == Id.Lit_VarLike: # s=1 if left_token.val[-2] == '+': var_name = left_token.val[:-2] op = assign_op_e.PlusEqual else: var_name = left_token.val[:-1] op = assign_op_e.Equal lhs = lhs_expr.LhsName(var_name) lhs.spids.append(left_token.span_id) elif left_token.id == Id.Lit_ArrayLhsOpen: # a[x++]=1 var_name = left_token.val[:-1] if close_token.val[-2] == '+': op = assign_op_e.PlusEqual else: op = assign_op_e.Equal # Adapted from tools/osh2oil.py Cursor.PrintUntil # TODO: Make a method like arena.AppendPieces(start, end, []), and share # with alias. pieces = [] for span_id in xrange(left_token.span_id + 1, close_token.span_id): span = parse_ctx.arena.GetLineSpan(span_id) line = parse_ctx.arena.GetLine(span.line_id) piece = line[span.col : span.col + span.length] pieces.append(piece) # Now reparse everything between here code_str = ''.join(pieces) # NOTE: It's possible that an alias expansion underlies this, not a real file! # We have to use a SideArena since this will happen during translation. line_num = 99 source_name = 'TODO' arena = alloc.SideArena('<LHS array index at line %d of %s>' % (line_num, source_name)) a_parser = parse_ctx.MakeArithParser(code_str, arena) expr = a_parser.Parse() # raises util.ParseError # TODO: It reports from the wrong arena! lhs = lhs_expr.LhsIndexedName(var_name, expr) lhs.spids.append(left_token.span_id) else: raise AssertionError # TODO: Should we also create a rhs_exp.ArrayLiteral here? n = len(w.parts) if part_offset == n: val = osh_word.EmptyWord() else: val = osh_word.CompoundWord(w.parts[part_offset:]) val = word.TildeDetect(val) or val pair = syntax_asdl.assign_pair(lhs, op, val) pair.spids.append(left_token.span_id) # Do we need this? return pair def _AppendMoreEnv(preparsed_list, more_env): """Helper to modify a SimpleCommand node. Args: preparsed: a list of 4-tuples from DetectAssignment more_env: a list to append env_pairs to """ for left_token, close_token, part_offset, w in preparsed_list: if left_token.id != Id.Lit_VarLike: # can't be a[x]=1 p_die("Environment binding shouldn't look like an array assignment", token=left_token) if left_token.val[-2] == '+': p_die('Expected = in environment binding, got +=', token=left_token) var_name = left_token.val[:-1] n = len(w.parts) if part_offset == n: val = osh_word.EmptyWord() else: val = osh_word.CompoundWord(w.parts[part_offset:]) pair = syntax_asdl.env_pair(var_name, val) pair.spids.append(left_token.span_id) # Do we need this? more_env.append(pair) def _MakeAssignment(parse_ctx, assign_kw, suffix_words): """Create an command.Assignment node from a keyword and a list of words. NOTE: We don't allow dynamic assignments like: local $1 This can be replaced with eval 'local $1' """ # First parse flags, e.g. -r -x -a -A. None of the flags have arguments. flags = [] n = len(suffix_words) i = 1 while i < n: w = suffix_words[i] ok, static_val, quoted = word.StaticEval(w) if not ok or quoted: break # can't statically evaluate if static_val.startswith('-'): flags.append(static_val) else: break # not a flag, rest are args i += 1 # Now parse bindings or variable names pairs = [] while i < n: w = suffix_words[i] # declare x[y]=1 is valid left_token, close_token, part_offset = word.DetectAssignment(w) if left_token: pair = _MakeAssignPair(parse_ctx, (left_token, close_token, part_offset, w)) else: # In aboriginal in variables/sources: export_if_blank does export "$1". # We should allow that. # Parse this differently then? # dynamic-export? It sets global # variables. ok, static_val, quoted = word.StaticEval(w) if not ok or quoted: p_die("Variable names must be unquoted constants", word=w) # No value is equivalent to '' if not match.IsValidVarName(static_val): p_die('Invalid variable name %r', static_val, word=w) lhs = lhs_expr.LhsName(static_val) lhs.spids.append(word.LeftMostSpanForWord(w)) pair = syntax_asdl.assign_pair(lhs, assign_op_e.Equal, None) left_spid = word.LeftMostSpanForWord(w) pair.spids.append(left_spid) pairs.append(pair) i += 1 node = command.Assignment(assign_kw, flags, pairs) return node def _SplitSimpleCommandPrefix(words): """Second pass of SimpleCommand parsing: look for assignment words.""" preparsed_list = [] suffix_words = [] done_prefix = False for w in words: if done_prefix: suffix_words.append(w) continue left_token, close_token, part_offset = word.DetectAssignment(w) if left_token: preparsed_list.append((left_token, close_token, part_offset, w)) else: done_prefix = True suffix_words.append(w) return preparsed_list, suffix_words def _MakeSimpleCommand(preparsed_list, suffix_words, redirects): """Create an command.SimpleCommand node.""" # FOO=(1 2 3) ls is not allowed. for _, _, _, w in preparsed_list: if word.HasArrayPart(w): p_die("Environment bindings can't contain array literals", word=w) # echo FOO=(1 2 3) is not allowed (but we should NOT fail on echo FOO[x]=1). for w in suffix_words: if word.HasArrayPart(w): p_die("Commands can't contain array literals", word=w) # NOTE: # In bash, {~bob,~jane}/src works, even though ~ isn't the leading # character of the initial word. # However, this means we must do tilde detection AFTER brace EXPANSION, not # just after brace DETECTION like we're doing here. # The BracedWordTree instances have to be expanded into CompoundWord # instances for the tilde detection to work. words2 = braces.BraceDetectAll(suffix_words) words3 = word.TildeDetectAll(words2) node = command.SimpleCommand() node.words = words3 node.redirects = redirects _AppendMoreEnv(preparsed_list, node.more_env) return node NOT_FIRST_WORDS = ( Id.KW_Do, Id.KW_Done, Id.KW_Then, Id.KW_Fi, Id.KW_Elif, Id.KW_Else, Id.KW_Esac ) class CommandParser(object): """ Args: word_parse: to get a stream of words lexer: for lookahead in function def, PushHint of () line_reader: for here doc """ def Reset(self): """Reset our own internal state. Called by the interactive loop. """ # Cursor state set by _Peek() self.next_lex_mode = lex_mode_e.Outer self.cur_word = None # current word self.c_kind = Kind.Undefined self.c_id = Id.Undefined_Tok self.pending_here_docs = [] def ResetInputObjects(self): """Reset the internal state of our inputs. Called by the interactive loop. """ self.w_parser.Reset() self.lexer.ResetInputObjects() self.line_reader.Reset() # NOTE: If our approach to _MaybeExpandAliases isn't sufficient, we could # have an expand_alias=True flag here? We would litter the parser with calls # to this like dash and bash. # # Although it might be possible that you really need to mutate the parser # state, and not just provide a parameter to _Next(). # You might also need a flag to indicate whether the previous expansion ends # with ' '. I didn't see that in dash or bash code. def _Next(self, lex_mode=lex_mode_e.Outer): """Helper method.""" self.next_lex_mode = lex_mode def Peek(self): """Public method for REPL.""" self._Peek() return self.cur_word def _Peek(self): """Helper method. Returns True for success and False on error. Error examples: bad command sub word, or unterminated quoted string, etc. """ if self.next_lex_mode != lex_mode_e.Undefined: w = self.w_parser.ReadWord(self.next_lex_mode) assert w is not None # Here docs only happen in command mode, so other kinds of newlines don't # count. if w.tag == word_e.TokenWord and w.token.id == Id.Op_Newline: for h in self.pending_here_docs: _ParseHereDocBody(self.parse_ctx, h, self.line_reader, self.arena) del self.pending_here_docs[:] # No .clear() until Python 3.3. self.cur_word = w self.c_kind = word.CommandKind(self.cur_word) self.c_id = word.CommandId(self.cur_word) self.next_lex_mode = lex_mode_e.Undefined def _Eat(self, c_id): """Consume a word of a type. If it doesn't match, return False. Args: c_id: either EKeyword.* or a token type like Id.Right_Subshell. TODO: Rationalize / type check this. """ self._Peek() # TODO: Printing something like KW_Do is not friendly. We can map # backwards using the _KEYWORDS list in osh/lex.py. if self.c_id != c_id: p_die('Expected word type %s, got %s', c_id, word.CommandId(self.cur_word), word=self.cur_word) self._Next() def _NewlineOk(self): """Check for optional newline and consume it.""" self._Peek() if self.c_id == Id.Op_Newline: self._Next() self._Peek() def ParseRedirect(self): """ Problem: You don't know which kind of redir_node to instantiate before this? You could stuff them all in one node, and then have a switch() on the type. You need different types. """ self._Peek() assert self.c_kind == Kind.Redir, self.cur_word op = self.cur_word.token # For now only supporting single digit descriptor first_char = self.cur_word.token.val[0] if first_char.isdigit(): fd = int(first_char) else: fd = const.NO_INTEGER if op.id in (Id.Redir_DLess, Id.Redir_DLessDash): # here doc node = redir.HereDoc() node.op = op node.fd = fd self._Next() self._Peek() node.here_begin = self.cur_word self._Next() self.pending_here_docs.append(node) # will be filled on next newline. else: node = redir.Redir() node.op = op node.fd = fd self._Next() self._Peek() if self.c_kind != Kind.Word: p_die('Invalid token after redirect operator', word=self.cur_word) new_word = word.TildeDetect(self.cur_word) node.arg_word = new_word or self.cur_word self._Next() return node def _ParseRedirectList(self): """Try parsing any redirects at the cursor. This is used for blocks only, not commands. Return None on error. """ redirects = [] while True: self._Peek() # This prediction needs to ONLY accept redirect operators. Should we # make them a separate TokeNkind? if self.c_kind != Kind.Redir: break node = self.ParseRedirect() redirects.append(node) self._Next() return redirects def _ScanSimpleCommand(self): """First pass: Split into redirects and words.""" redirects = [] words = [] # Set a reference so we can inspect state after a failed parse! self.parse_ctx.trail.SetLatestWords(words, redirects) while True: self._Peek() if self.c_kind == Kind.Redir: node = self.ParseRedirect() redirects.append(node) elif self.c_kind == Kind.Word: words.append(self.cur_word) else: break self._Next() return redirects, words def _MaybeExpandAliases(self, words, cur_aliases): """Try to expand aliases. Our implementation of alias has two design choices: - Where to insert it in parsing. We do it at the end of ParseSimpleCommand. - What grammar rule to parse the expanded alias buffer with. In our case it's ParseCommand(). This doesn't quite match what other shells do, but I can't figure out a better places. Most test cases pass, except for ones like: alias LBRACE='{' LBRACE echo one; echo two; } alias MULTILINE='echo 1 echo 2 echo 3' MULTILINE NOTE: dash handles aliases in a totally diferrent way. It has a global variable checkkwd in parser.c. It assigns it all over the grammar, like this: checkkwd = CHKNL | CHKKWD | CHKALIAS; The readtoken() function checks (checkkwd & CHKALIAS) and then calls lookupalias(). This seems to provide a consistent behavior among shells, but it's less modular and testable. Bash also uses a global 'parser_state & PST_ALEXPNEXT'. Returns: A command node if any aliases were expanded, or None otherwise. """ # The last char that we might parse. right_spid = word.RightMostSpanForWord(words[-1]) first_word_str = None # for error message expanded = [] i = 0 n = len(words) while i < n: w = words[i] ok, word_str, quoted = word.StaticEval(w) if not ok or quoted: break alias_exp = self.aliases.get(word_str) if alias_exp is None: break # Prevent infinite loops. This is subtle: we want to prevent infinite # expansion of alias echo='echo x'. But we don't want to prevent # expansion of the second word in 'echo echo', so we add 'i' to # "cur_aliases". if (word_str, i) in cur_aliases: break if i == 0: first_word_str = word_str # for error message #log('%r -> %r', word_str, alias_exp) cur_aliases.append((word_str, i)) expanded.append(alias_exp) i += 1 if not alias_exp.endswith(' '): # alias e='echo [ ' is the same expansion as # alias e='echo [' # The trailing space indicates whether we should continue to expand # aliases; it's not part of it. expanded.append(' ') break # No more expansions if not expanded: # No expansions; caller does parsing. return None # We got some expansion. Now copy the rest of the words. # We need each NON-REDIRECT word separately! For example: # $ echo one >out two # dash/mksh/zsh go beyond the first redirect! while i < n: w = words[i] left_spid = word.LeftMostSpanForWord(w) right_spid = word.RightMostSpanForWord(w) # Adapted from tools/osh2oil.py Cursor.PrintUntil for span_id in xrange(left_spid, right_spid + 1): span = self.arena.GetLineSpan(span_id) line = self.arena.GetLine(span.line_id) piece = line[span.col : span.col + span.length] expanded.append(piece) expanded.append(' ') # Put space back between words. i += 1 code_str = ''.join(expanded) lines = code_str.splitlines(True) # Keep newlines line_info = [] # TODO: Add location information self.arena.PushSource( '<expansion of alias %r at line %d of %s>' % (first_word_str, -1, 'TODO')) try: for i, line in enumerate(lines): line_id = self.arena.AddLine(line, i+1) line_info.append((line_id, line, 0)) finally: self.arena.PopSource() line_reader = reader.VirtualLineReader(line_info, self.arena) cp = self.parse_ctx.MakeOshParser(line_reader) try: node = cp.ParseCommand(cur_aliases=cur_aliases) except util.ParseError as e: # Failure to parse alias expansion is a fatal error # We don't need more handling here/ raise if 0: log('AFTER expansion:') from osh import ast_lib ast_lib.PrettyPrint(node) return node # Flags that indicate an assignment should be parsed like a command. _ASSIGN_COMMANDS = set([ (Id.Assign_Declare, '-f'), # function defs (Id.Assign_Declare, '-F'), # function names (Id.Assign_Declare, '-p'), # print (Id.Assign_Typeset, '-f'), (Id.Assign_Typeset, '-F'), (Id.Assign_Typeset, '-p'), (Id.Assign_Local, '-p'), (Id.Assign_Readonly, '-p'), # Hm 'export -p' is more like a command. But we're parsing it # dynamically now because of some wrappers. # Maybe we could change this. #(Id.Assign_Export, '-p'), ]) # Flags to parse like assignments: -a -r -x (and maybe -i) def ParseSimpleCommand(self, cur_aliases): """ Fixed transcription of the POSIX grammar (TODO: port to grammar/Shell.g) io_file : '<' filename | LESSAND filename ... io_here : DLESS here_end | DLESSDASH here_end redirect : IO_NUMBER (io_redirect | io_here) prefix_part : ASSIGNMENT_WORD | redirect cmd_part : WORD | redirect assign_kw : Declare | Export | Local | Readonly # Without any words it is parsed as a command, not an assigment assign_listing : assign_kw # Now we have something to do (might be changing assignment flags too) # NOTE: any prefixes should be a warning, but they are allowed in shell. assignment : prefix_part* assign_kw (WORD | ASSIGNMENT_WORD)+ # an external command, a function call, or a builtin -- a "word_command" word_command : prefix_part* cmd_part+ simple_command : assign_listing | assignment | proc_command Simple imperative algorithm: 1) Read a list of words and redirects. Append them to separate lists. 2) Look for the first non-assignment word. If it's declare, etc., then keep parsing words AND assign words. Otherwise, just parse words. 3) If there are no non-assignment words, then it's a global assignment. { redirects, global assignments } OR { redirects, prefix_bindings, words } OR { redirects, ERROR_prefix_bindings, keyword, assignments, words } THEN CHECK that prefix bindings don't have any array literal parts! global assignment and keyword assignments can have the of course. well actually EXPORT shouldn't have them either -- WARNING 3 cases we want to warn: prefix_bindings for assignment, and array literal in prefix bindings, or export A command can be an assignment word, word, or redirect on its own. ls >out.txt >out.txt FOO=bar # this touches the file, and hten Or any sequence: ls foo bar <in.txt ls foo bar >out.txt <in.txt ls >out.txt foo bar Or add one or more environment bindings: VAR=val env >out.txt VAR=val env here_end vs filename is a matter of whether we test that it's quoted. e.g. <<EOF vs <<'EOF'. """ result = self._ScanSimpleCommand() redirects, words = result if not words: # e.g. >out.txt # redirect without words node = command.SimpleCommand() node.redirects = redirects return node preparsed_list, suffix_words = _SplitSimpleCommandPrefix(words) if not suffix_words: # ONE=1 a[x]=1 TWO=2 (with no other words) if redirects: left_token, _, _, _ = preparsed_list[0] p_die("Global assignment shouldn't have redirects", token=left_token) pairs = [] for preparsed in preparsed_list: pairs.append(_MakeAssignPair(self.parse_ctx, preparsed)) node = command.Assignment(Id.Assign_None, [], pairs) left_spid = word.LeftMostSpanForWord(words[0]) node.spids.append(left_spid) # no keyword spid to skip past return node kind, kw_token = word.KeywordToken(suffix_words[0]) if kind == Kind.Assign: # Here we StaticEval suffix_words[1] to see if we have an ASSIGNMENT COMMAND # like 'typeset -p', which lists variables -- a SimpleCommand rather than # an Assignment. # # Note we're not handling duplicate flags like 'typeset -pf'. I see this # in bashdb (bash debugger) but it can just be changed to 'typeset -p # -f'. is_command = False if len(suffix_words) > 1: ok, val, _ = word.StaticEval(suffix_words[1]) if ok and (kw_token.id, val) in self._ASSIGN_COMMANDS: is_command = True if is_command: # declare -f, declare -p, typeset -p, etc. node = _MakeSimpleCommand(preparsed_list, suffix_words, redirects) return node if redirects: # Attach the error location to the keyword. It would be more precise # to attach it to the p_die("Assignments shouldn't have redirects", token=kw_token) if preparsed_list: # FOO=bar local spam=eggs not allowed # Use the location of the first value. TODO: Use the whole word # before splitting. left_token, _, _, _ = preparsed_list[0] p_die("Assignments shouldn't have environment bindings", token=left_token) # declare str='', declare -a array=() node = _MakeAssignment(self.parse_ctx, kw_token.id, suffix_words) node.spids.append(kw_token.span_id) return node if kind == Kind.ControlFlow: if redirects: p_die("Control flow shouldn't have redirects", token=kw_token) if preparsed_list: # FOO=bar local spam=eggs not allowed # TODO: Change location as above left_token, _, _, _ = preparsed_list[0] p_die("Control flow shouldn't have environment bindings", token=left_token) # Attach the token for errors. (Assignment may not need it.) if len(suffix_words) == 1: arg_word = None elif len(suffix_words) == 2: arg_word = suffix_words[1] else: p_die('Unexpected argument to %r', kw_token.val, word=suffix_words[2]) return command.ControlFlow(kw_token, arg_word) # If any expansions were detected, then parse again. node = self._MaybeExpandAliases(suffix_words, cur_aliases) if node: # NOTE: There are other types of nodes with redirects. Do they matter? if node.tag == command_e.SimpleCommand: node.redirects = redirects _AppendMoreEnv(preparsed_list, node.more_env) return node # TODO check that we don't have env1=x x[1]=y env2=z here. # FOO=bar printenv.py FOO node = _MakeSimpleCommand(preparsed_list, suffix_words, redirects) return node def ParseBraceGroup(self): """ brace_group : LBrace command_list RBrace ; """ left_spid = word.LeftMostSpanForWord(self.cur_word) self._Eat(Id.Lit_LBrace) c_list = self._ParseCommandList() assert c_list is not None # Not needed #right_spid = word.LeftMostSpanForWord(self.cur_word) self._Eat(Id.Lit_RBrace) node = command.BraceGroup(c_list.children) node.spids.append(left_spid) return node def ParseDoGroup(self): """ Used by ForEach, ForExpr, While, Until. Should this be a Do node? do_group : Do command_list Done ; /* Apply rule 6 */ """ self._Eat(Id.KW_Do) do_spid = word.LeftMostSpanForWord(self.cur_word) # after _Eat c_list = self._ParseCommandList() # could be any thing assert c_list is not None self._Eat(Id.KW_Done) done_spid = word.LeftMostSpanForWord(self.cur_word) # after _Eat node = command.DoGroup(c_list.children) node.spids.extend((do_spid, done_spid)) return node def ParseForWords(self): """ for_words : WORD* for_sep ; for_sep : ';' newline_ok | NEWLINES ; """ words = [] # The span_id of any semi-colon, so we can remove it. semi_spid = const.NO_INTEGER while True: self._Peek() if self.c_id == Id.Op_Semi: semi_spid = self.cur_word.token.span_id # TokenWord self._Next() self._NewlineOk() break elif self.c_id == Id.Op_Newline: self._Next() break if self.cur_word.tag != word_e.CompoundWord: # TODO: Can we also show a pointer to the 'for' keyword? p_die('Invalid word in for loop', word=self.cur_word) words.append(self.cur_word) self._Next() return words, semi_spid def _ParseForExprLoop(self): """ for (( init; cond; update )) for_sep? do_group """ node = self.w_parser.ReadForExpression() assert node is not None self._Next() self._Peek() if self.c_id == Id.Op_Semi: self._Next() self._NewlineOk() elif self.c_id == Id.Op_Newline: self._Next() elif self.c_id == Id.KW_Do: # missing semicolon/newline allowed pass else: p_die('Invalid word after for expression', word=self.cur_word) body_node = self.ParseDoGroup() assert body_node is not None node.body = body_node return node def ParseFor(self): """ for_clause : For for_name newline_ok (in for_words? for_sep)? do_group ; | For '((' ... TODO """ self._Eat(Id.KW_For) self._Peek() if self.c_id == Id.Op_DLeftParen: node = self._ParseForExprLoop() else: node = self._ParseForEachLoop() return node def ParseWhileUntil(self): """ while_clause : While command_list do_group ; until_clause : Until command_list do_group ; """ keyword = self.cur_word.parts[0].token # This is ensured by the caller assert keyword.id in (Id.KW_While, Id.KW_Until), keyword self._Next() # skip while cond_node = self._ParseCommandList() assert cond_node is not None body_node = self.ParseDoGroup() assert body_node is not None return command.WhileUntil(keyword, cond_node.children, body_node) def ParseCaseItem(self): """ case_item: '('? pattern ('|' pattern)* ')' newline_ok command_term? trailer? ; """ self.lexer.PushHint(Id.Op_RParen, Id.Right_CasePat) left_spid = word.LeftMostSpanForWord(self.cur_word) if self.c_id == Id.Op_LParen: self._Next() pat_words = [] while True: self._Peek() pat_words.append(self.cur_word) self._Next() self._Peek() if self.c_id == Id.Op_Pipe: self._Next() else: break rparen_spid = word.LeftMostSpanForWord(self.cur_word) self._Eat(Id.Right_CasePat) self._NewlineOk() if self.c_id not in (Id.Op_DSemi, Id.KW_Esac): c_list = self._ParseCommandTerm() assert c_list is not None action_children = c_list.children else: action_children = [] dsemi_spid = const.NO_INTEGER last_spid = const.NO_INTEGER self._Peek() if self.c_id == Id.KW_Esac: last_spid = word.LeftMostSpanForWord(self.cur_word) elif self.c_id == Id.Op_DSemi: dsemi_spid = word.LeftMostSpanForWord(self.cur_word) self._Next() else: # Happens on EOF p_die('Expected ;; or esac', word=self.cur_word) self._NewlineOk() arm = syntax_asdl.case_arm(pat_words, action_children) arm.spids.extend((left_spid, rparen_spid, dsemi_spid, last_spid)) return arm def ParseCaseList(self, arms): """ case_list: case_item (DSEMI newline_ok case_item)* DSEMI? newline_ok; """ self._Peek() while True: # case item begins with a command word or ( if self.c_id == Id.KW_Esac: break if self.c_kind != Kind.Word and self.c_id != Id.Op_LParen: break arm = self.ParseCaseItem() assert arm is not None arms.append(arm) self._Peek() # Now look for DSEMI or ESAC def ParseCase(self): """ case_clause : Case WORD newline_ok in newline_ok case_list? Esac ; """ case_node = command.Case() case_spid = word.LeftMostSpanForWord(self.cur_word) self._Next() # skip case self._Peek() case_node.to_match = self.cur_word self._Next() self._NewlineOk() in_spid = word.LeftMostSpanForWord(self.cur_word) self._Eat(Id.KW_In) self._NewlineOk() if self.c_id != Id.KW_Esac: # empty case list self.ParseCaseList(case_node.arms) # TODO: should it return a list of nodes, and extend? self._Peek() esac_spid = word.LeftMostSpanForWord(self.cur_word) self._Eat(Id.KW_Esac) self._Next() case_node.spids.extend((case_spid, in_spid, esac_spid)) return case_node def _ParseElifElse(self, if_node): """ else_part: (Elif command_list Then command_list)* Else command_list ; """ arms = if_node.arms self._Peek() while self.c_id == Id.KW_Elif: elif_spid = word.LeftMostSpanForWord(self.cur_word) self._Next() # skip elif cond = self._ParseCommandList() assert cond is not None then_spid = word.LeftMostSpanForWord(self.cur_word) self._Eat(Id.KW_Then) body = self._ParseCommandList() assert body is not None arm = syntax_asdl.if_arm(cond.children, body.children) arm.spids.extend((elif_spid, then_spid)) arms.append(arm) if self.c_id == Id.KW_Else: else_spid = word.LeftMostSpanForWord(self.cur_word) self._Next() body = self._ParseCommandList() assert body is not None if_node.else_action = body.children else: else_spid = const.NO_INTEGER if_node.spids.append(else_spid) def ParseIf(self): """ if_clause : If command_list Then command_list else_part? Fi ; """ if_node = command.If() self._Next() # skip if cond = self._ParseCommandList() assert cond is not None then_spid = word.LeftMostSpanForWord(self.cur_word) self._Eat(Id.KW_Then) body = self._ParseCommandList() assert body is not None arm = syntax_asdl.if_arm(cond.children, body.children) arm.spids.extend((const.NO_INTEGER, then_spid)) # no if spid at first? if_node.arms.append(arm) if self.c_id in (Id.KW_Elif, Id.KW_Else): self._ParseElifElse(if_node) else: if_node.spids.append(const.NO_INTEGER) # no else spid fi_spid = word.LeftMostSpanForWord(self.cur_word) self._Eat(Id.KW_Fi) if_node.spids.append(fi_spid) return if_node def ParseTime(self): """ time [-p] pipeline According to bash help. """ self._Next() # skip time pipeline = self.ParsePipeline() assert pipeline is not None return command.TimeBlock(pipeline) def ParseCompoundCommand(self): """ compound_command : brace_group | subshell | for_clause | while_clause | until_clause | if_clause | case_clause | time_clause | [[ BoolExpr ]] | (( ArithExpr )) ; """ if self.c_id == Id.Lit_LBrace: return self.ParseBraceGroup() if self.c_id == Id.Op_LParen: return self.ParseSubshell() if self.c_id == Id.KW_For: return self.ParseFor() if self.c_id in (Id.KW_While, Id.KW_Until): return self.ParseWhileUntil() if self.c_id == Id.KW_If: return self.ParseIf() if self.c_id == Id.KW_Case: return self.ParseCase() if self.c_id == Id.KW_Time: return self.ParseTime() # Example of redirect that is observable: # $ (( $(echo one 1>&2; echo 2) > 0 )) 2> out.txt if self.c_id == Id.KW_DLeftBracket: return self.ParseDBracket() if self.c_id == Id.Op_DLeftParen: return self.ParseDParen() # This never happens? p_die('Unexpected word while parsing compound command', word=self.cur_word) def ParseFunctionBody(self, func): """ function_body : compound_command io_redirect* ; /* Apply rule 9 */ """ body = self.ParseCompoundCommand() assert body is not None redirects = self._ParseRedirectList() assert redirects is not None func.body = body func.redirects = redirects def ParseFunctionDef(self): """ function_header : fname '(' ')' function_def : function_header newline_ok function_body ; Precondition: Looking at the function name. Post condition: NOTE: There is an ambiguity with: function foo ( echo hi ) and function foo () ( echo hi ) Bash only accepts the latter, though it doesn't really follow a grammar. """ left_spid = word.LeftMostSpanForWord(self.cur_word) ok, name = word.AsFuncName(self.cur_word) if not ok: p_die('Invalid function name', word=self.cur_word) self._Next() # skip function name # Must be true beacuse of lookahead self._Peek() assert self.c_id == Id.Op_LParen, self.cur_word self.lexer.PushHint(Id.Op_RParen, Id.Right_FuncDef) self._Next() self._Eat(Id.Right_FuncDef) after_name_spid = word.LeftMostSpanForWord(self.cur_word) + 1 self._NewlineOk() func = command.FuncDef() func.name = name self.ParseFunctionBody(func) func.spids.append(left_spid) func.spids.append(after_name_spid) return func def ParseKshFunctionDef(self): """ ksh_function_def : 'function' fname ( '(' ')' )? newline_ok function_body """ left_spid = word.LeftMostSpanForWord(self.cur_word) self._Next() # skip past 'function' self._Peek() ok, name = word.AsFuncName(self.cur_word) if not ok: p_die('Invalid KSH-style function name', word=self.cur_word) after_name_spid = word.LeftMostSpanForWord(self.cur_word) + 1 self._Next() # skip past 'function name self._Peek() if self.c_id == Id.Op_LParen: self.lexer.PushHint(Id.Op_RParen, Id.Right_FuncDef) self._Next() self._Eat(Id.Right_FuncDef) # Change it: after ) after_name_spid = word.LeftMostSpanForWord(self.cur_word) + 1 self._NewlineOk() func = command.FuncDef() func.name = name self.ParseFunctionBody(func) func.spids.append(left_spid) func.spids.append(after_name_spid) return func def ParseCoproc(self): """ TODO: """ raise NotImplementedError def ParseDBracket(self): """ Pass the underlying word parser off to the boolean expression parser. """ maybe_error_word = self.cur_word # TODO: Test interactive. Without closing ]], you should get > prompt # (PS2) self._Next() # skip [[ b_parser = bool_parse.BoolParser(self.w_parser) bnode = b_parser.Parse() # May raise return command.DBracket(bnode) def ParseCommand(self, cur_aliases=None): """ command : simple_command | compound_command io_redirect* | function_def | ksh_function_def ; """ cur_aliases = cur_aliases or [] self._Peek() if self.c_id in NOT_FIRST_WORDS: p_die('Unexpected word when parsing command', word=self.cur_word) if self.c_id == Id.KW_Function: return self.ParseKshFunctionDef() # NOTE: We should have another Kind for "initial keywords". And then # NOT_FIRST_WORDS are "secondary keywords". if self.c_id in ( Id.KW_DLeftBracket, Id.Op_DLeftParen, Id.Op_LParen, Id.Lit_LBrace, Id.KW_For, Id.KW_While, Id.KW_Until, Id.KW_If, Id.KW_Case, Id.KW_Time): node = self.ParseCompoundCommand() assert node is not None if node.tag != command_e.TimeBlock: # The only one without redirects node.redirects = self._ParseRedirectList() assert node.redirects is not None return node # NOTE: I added this to fix cases in parse-errors.test.sh, but it doesn't # work because Lit_RBrace is in END_LIST below. # TODO: KW_Do is also invalid here. if self.c_id == Id.Lit_RBrace: p_die('Unexpected right brace', word=self.cur_word) if self.c_kind == Kind.Redir: # Leading redirect return self.ParseSimpleCommand(cur_aliases) if self.c_kind == Kind.Word: if (self.w_parser.LookAhead() == Id.Op_LParen and not word.IsVarLike(self.cur_word)): return self.ParseFunctionDef() # f() { echo; } # function # echo foo # f=(a b c) # array # array[1+2]+=1 return self.ParseSimpleCommand(cur_aliases) if self.c_kind == Kind.Eof: p_die("Unexpected EOF while parsing command", word=self.cur_word) # e.g. ) p_die("Invalid word while parsing command", word=self.cur_word) def ParsePipeline(self): """ pipeline : Bang? command ( '|' newline_ok command )* ; """ negated = False self._Peek() if self.c_id == Id.KW_Bang: negated = True self._Next() child = self.ParseCommand() assert child is not None children = [child] self._Peek() if self.c_id not in (Id.Op_Pipe, Id.Op_PipeAmp): if negated: node = command.Pipeline(children, negated) return node else: return child pipe_index = 0 stderr_indices = [] if self.c_id == Id.Op_PipeAmp: stderr_indices.append(pipe_index) pipe_index += 1 while True: self._Next() # skip past Id.Op_Pipe or Id.Op_PipeAmp self._NewlineOk() child = self.ParseCommand() assert child is not None children.append(child) self._Peek() if self.c_id not in (Id.Op_Pipe, Id.Op_PipeAmp): break if self.c_id == Id.Op_PipeAmp: stderr_indices.append(pipe_index) pipe_index += 1 node = command.Pipeline(children, negated) node.stderr_indices = stderr_indices return node def ParseAndOr(self): """ and_or : and_or ( AND_IF | OR_IF ) newline_ok pipeline | pipeline Note that it is left recursive and left associative. We parse it iteratively with a token of lookahead. """ child = self.ParsePipeline() assert child is not None self._Peek() if self.c_id not in (Id.Op_DPipe, Id.Op_DAmp): return child ops = [] children = [child] while True: ops.append(self.c_id) self._Next() # skip past || && self._NewlineOk() child = self.ParsePipeline() assert child is not None children.append(child) self._Peek() if self.c_id not in (Id.Op_DPipe, Id.Op_DAmp): break node = command.AndOr(ops, children) return node # NOTE: _ParseCommandLine and _ParseCommandTerm are similar, but different. # At the top level, We want to execute after every line: # - to process alias # - to process 'exit', because invalid syntax might appear after it # But for say a while loop body, we want to parse the whole thing at once, and # then execute it. We don't want to parse it over and over again! # COMPARE # command_line : and_or (sync_op and_or)* trailer? ; # TOP LEVEL # command_term : and_or (trailer and_or)* ; # CHILDREN def _ParseCommandLine(self): """ command_line : and_or (sync_op and_or)* trailer? ; trailer : sync_op newline_ok | NEWLINES; sync_op : '&' | ';'; NOTE: This rule causes LL(k > 1) behavior. We would have to peek to see if there is another command word after the sync op. But it's easier to express imperatively. Do the following in a loop: 1. ParseAndOr 2. Peek. a. If there's a newline, then return. (We're only parsing a single line.) b. If there's a sync_op, process it. Then look for a newline and return. Otherwise, parse another AndOr. """ # NOTE: This is slightly different than END_LIST in _ParseCommandTerm, and # unfortunately somewhat ad hoc. END_LIST = (Id.Op_Newline, Id.Eof_Real, Id.Op_RParen) children = [] done = False while not done: child = self.ParseAndOr() assert child is not None self._Peek() if self.c_id in (Id.Op_Semi, Id.Op_Amp): # also Id.Op_Amp. child = command.Sentence(child, self.cur_word.token) self._Next() self._Peek() if self.c_id in END_LIST: done = True elif self.c_id in END_LIST: done = True else: # e.g. echo a(b) p_die('Unexpected word while parsing command line', word=self.cur_word) children.append(child) # Simplify the AST. if len(children) > 1: return command.CommandList(children) else: return children[0] def _ParseCommandTerm(self): """" command_term : and_or (trailer and_or)* ; trailer : sync_op newline_ok | NEWLINES; sync_op : '&' | ';'; This is handled in imperative style, like _ParseCommandLine. Called by _ParseCommandList for all blocks, and also for ParseCaseItem, which is slightly different. (HOW? Is it the DSEMI?) Returns: syntax_asdl.command """ # Token types that will end the command term. END_LIST = (self.eof_id, Id.Right_Subshell, Id.Lit_RBrace, Id.Op_DSemi) # NOTE: This is similar to _ParseCommandLine. # # - Why aren't we doing END_LIST in _ParseCommandLine? # - Because you will never be inside $() at the top level. # - We also know it will end in a newline. It can't end in "fi"! # - example: if true; then { echo hi; } fi children = [] done = False while not done: self._Peek() # Most keywords are valid "first words". But do/done/then do not BEGIN # commands, so they are not valid. if self.c_id in NOT_FIRST_WORDS: break child = self.ParseAndOr() assert child is not None self._Peek() if self.c_id == Id.Op_Newline: self._Next() self._Peek() if self.c_id in END_LIST: done = True elif self.c_id in (Id.Op_Semi, Id.Op_Amp): child = command.Sentence(child, self.cur_word.token) self._Next() self._Peek() if self.c_id == Id.Op_Newline: self._Next() # skip over newline # Test if we should keep going. There might be another command after # the semi and newline. self._Peek() if self.c_id in END_LIST: # \n EOF done = True elif self.c_id in END_LIST: # ; EOF done = True elif self.c_id in END_LIST: # EOF done = True else: pass # e.g. "} done", "fi fi", ") fi", etc. is OK children.append(child) self._Peek() return command.CommandList(children) # TODO: Make this private. def _ParseCommandList(self): """ command_list : newline_ok command_term trailer? ; This one is called by all the compound commands. It's basically a command block. NOTE: Rather than translating the CFG directly, the code follows a style more like this: more like this: (and_or trailer)+. It makes capture easier. """ self._NewlineOk() node = self._ParseCommandTerm() assert node is not None return node def ParseLogicalLine(self): """Parse a single line for main_loop. A wrapper around _ParseCommandLine(). Similar but not identical to _ParseCommandList() and ParseCommandSub(). Raises: ParseError We want to be able catch ParseError all in one place. """ self._NewlineOk() self._Peek() if self.c_id == Id.Eof_Real: return None node = self._ParseCommandLine() assert node is not None return node def ParseCommandSub(self): """Parse $(echo hi) and `echo hi` for word_parse.py. They can have multiple lines, like this: echo $( echo one echo two ) """ self._NewlineOk() if self.c_kind == Kind.Eof: # e.g. $() return command.NoOp() # This calls ParseAndOr(), but I think it should be a loop that calls # _ParseCommandLine(), like oil.InteractiveLoop. node = self._ParseCommandTerm() assert node is not None return node
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 1584, 12382, 25459, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2, 198, 2, 220, 220, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 198, 37811, 198, 28758, 62, 29572, 13, 9078, 532, 2547, 325, 1029, 1241, 7582, 9729, 13, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 6738, 355, 25404, 1330, 1500, 198, 198, 6738, 4755, 1330, 36836, 198, 6738, 4755, 1330, 7736, 198, 6738, 4755, 13, 28961, 1330, 15582, 62, 292, 25404, 11, 3858, 62, 292, 25404, 11, 5121, 11, 14927, 198, 198, 6738, 2166, 437, 1330, 2872, 198, 6738, 2166, 437, 1330, 9173, 198, 198, 6738, 267, 1477, 1330, 47241, 198, 6738, 267, 1477, 1330, 20512, 62, 29572, 198, 6738, 267, 1477, 1330, 1573, 198, 198, 6404, 796, 7736, 13, 6404, 198, 79, 62, 11979, 796, 7736, 13, 79, 62, 11979, 198, 198, 562, 570, 62, 404, 62, 68, 796, 15582, 62, 292, 25404, 13, 562, 570, 62, 404, 62, 68, 198, 21812, 796, 15582, 62, 292, 25404, 13, 21812, 198, 21812, 62, 68, 796, 15582, 62, 292, 25404, 13, 21812, 62, 68, 198, 75, 11994, 62, 31937, 796, 15582, 62, 292, 25404, 13, 75, 11994, 62, 31937, 198, 445, 343, 796, 15582, 62, 292, 25404, 13, 445, 343, 198, 4775, 62, 3911, 796, 15582, 62, 292, 25404, 13, 4775, 62, 3911, 198, 4775, 62, 68, 796, 15582, 62, 292, 25404, 13, 4775, 62, 68, 198, 3768, 62, 4775, 796, 15582, 62, 292, 25404, 13, 4775, 220, 1303, 16926, 46, 25, 36265, 198, 198, 2588, 62, 14171, 62, 68, 796, 3858, 62, 292, 25404, 13, 2588, 62, 14171, 62, 68, 628, 198, 198, 4299, 4808, 12050, 43, 270, 1691, 4342, 43, 1127, 7, 1456, 62, 6615, 11, 13478, 2599, 198, 220, 37227, 16447, 257, 1627, 62, 12626, 290, 257, 11241, 329, 1123, 1627, 526, 15931, 198, 220, 16326, 796, 17635, 198, 220, 329, 1627, 62, 312, 11, 1627, 11, 923, 62, 28968, 287, 994, 62, 6615, 25, 198, 220, 220, 220, 1627, 62, 12626, 796, 15582, 62, 292, 25404, 13, 1370, 62, 12626, 7, 1370, 62, 312, 11, 923, 62, 28968, 11, 18896, 7, 1370, 4008, 198, 220, 220, 220, 11506, 62, 312, 796, 13478, 13, 4550, 13949, 4561, 272, 7, 1370, 62, 12626, 8, 198, 220, 220, 220, 256, 796, 15582, 62, 292, 25404, 13, 30001, 7, 7390, 13, 43, 270, 62, 1925, 945, 11, 1627, 58, 9688, 62, 28968, 25, 4357, 11506, 62, 312, 8, 198, 220, 220, 220, 16326, 13, 33295, 7, 83, 8, 198, 220, 1441, 685, 4775, 62, 3911, 13, 43, 270, 1691, 7841, 7, 83, 8, 329, 256, 287, 16326, 60, 628, 198, 4299, 4808, 10044, 325, 4342, 23579, 25842, 7, 29572, 62, 49464, 11, 289, 11, 1627, 62, 46862, 11, 13478, 2599, 198, 220, 37227, 33762, 287, 12608, 286, 257, 13310, 994, 2205, 10139, 526, 15931, 198, 220, 1303, 366, 1532, 597, 2095, 287, 1573, 318, 10947, 11, 262, 46728, 2676, 2236, 307, 7042, 416, 198, 220, 1303, 9489, 9577, 9934, 319, 1573, 11, 290, 262, 994, 12, 22897, 3951, 2236, 407, 198, 220, 1303, 307, 9902, 13, 15323, 11, 262, 46728, 2676, 2236, 307, 262, 1573, 2346, 526, 198, 220, 1303, 24550, 25, 3467, 4720, 37, 9853, 11, 393, 772, 412, 59, 19238, 198, 220, 12876, 11, 46728, 2676, 11, 46728, 62, 421, 5191, 796, 1573, 13, 45442, 36, 2100, 7, 71, 13, 1456, 62, 27471, 8, 198, 220, 611, 407, 12876, 25, 198, 220, 220, 220, 279, 62, 11979, 10786, 44651, 994, 2205, 46728, 2676, 3256, 1573, 28, 71, 13, 1456, 62, 27471, 8, 628, 220, 994, 62, 6615, 11, 938, 62, 1370, 796, 4808, 5569, 4342, 43, 1127, 7, 1370, 62, 46862, 11, 289, 11, 46728, 2676, 8, 628, 220, 611, 46728, 62, 421, 5191, 25, 220, 1303, 9959, 705, 4720, 37, 6, 198, 220, 220, 220, 1303, 25659, 1691, 7841, 329, 1123, 1627, 13, 198, 220, 220, 220, 289, 13, 19282, 259, 62, 42632, 796, 4808, 12050, 43, 270, 1691, 4342, 43, 1127, 7, 1456, 62, 6615, 11, 13478, 8, 198, 220, 2073, 25, 198, 220, 220, 220, 1627, 62, 46862, 796, 9173, 13, 37725, 13949, 33634, 7, 1456, 62, 6615, 11, 13478, 8, 198, 220, 220, 220, 266, 62, 48610, 796, 21136, 62, 49464, 13, 12050, 26449, 46677, 1890, 4342, 23579, 7, 1370, 62, 46862, 8, 198, 220, 220, 220, 266, 62, 48610, 13, 5569, 4342, 23579, 25842, 7, 71, 13, 19282, 259, 62, 42632, 8, 220, 1303, 23816, 428, 287, 628, 220, 886, 62, 1370, 62, 312, 11, 886, 62, 1370, 11, 886, 62, 1930, 796, 938, 62, 1370, 628, 220, 1303, 13610, 257, 11506, 351, 262, 886, 5651, 1352, 13, 220, 337, 2913, 1299, 262, 25275, 415, 326, 198, 220, 1303, 262, 32727, 366, 2860, 510, 1911, 198, 220, 1627, 62, 12626, 796, 15582, 62, 292, 25404, 13, 1370, 62, 12626, 7, 437, 62, 1370, 62, 312, 11, 886, 62, 1930, 11, 18896, 7, 437, 62, 1370, 4008, 198, 220, 289, 13, 1456, 62, 437, 62, 12626, 62, 312, 796, 13478, 13, 4550, 13949, 4561, 272, 7, 1370, 62, 12626, 8, 628, 198, 4299, 4808, 12050, 8021, 570, 47, 958, 7, 29572, 62, 49464, 11, 3143, 945, 276, 2599, 198, 220, 37227, 16447, 281, 8333, 62, 24874, 422, 257, 604, 12, 28047, 2374, 422, 35874, 8021, 16747, 526, 15931, 628, 220, 1364, 62, 30001, 11, 1969, 62, 30001, 11, 636, 62, 28968, 11, 266, 796, 3143, 945, 276, 628, 220, 611, 1364, 62, 30001, 13, 312, 6624, 5121, 13, 43, 270, 62, 19852, 7594, 25, 220, 1303, 264, 28, 16, 198, 220, 220, 220, 611, 1364, 62, 30001, 13, 2100, 58, 12, 17, 60, 6624, 705, 10, 10354, 198, 220, 220, 220, 220, 220, 1401, 62, 3672, 796, 1364, 62, 30001, 13, 2100, 58, 21912, 17, 60, 198, 220, 220, 220, 220, 220, 1034, 796, 8333, 62, 404, 62, 68, 13, 17860, 36, 13255, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 1401, 62, 3672, 796, 1364, 62, 30001, 13, 2100, 58, 21912, 16, 60, 198, 220, 220, 220, 220, 220, 1034, 796, 8333, 62, 404, 62, 68, 13, 36, 13255, 628, 220, 220, 220, 300, 11994, 796, 300, 11994, 62, 31937, 13, 43, 11994, 5376, 7, 7785, 62, 3672, 8, 198, 220, 220, 220, 300, 11994, 13, 2777, 2340, 13, 33295, 7, 9464, 62, 30001, 13, 12626, 62, 312, 8, 628, 220, 1288, 361, 1364, 62, 30001, 13, 312, 6624, 5121, 13, 43, 270, 62, 19182, 43, 11994, 11505, 25, 220, 1303, 257, 58, 87, 4880, 22241, 16, 198, 220, 220, 220, 1401, 62, 3672, 796, 1364, 62, 30001, 13, 2100, 58, 21912, 16, 60, 198, 220, 220, 220, 611, 1969, 62, 30001, 13, 2100, 58, 12, 17, 60, 6624, 705, 10, 10354, 198, 220, 220, 220, 220, 220, 1034, 796, 8333, 62, 404, 62, 68, 13, 17860, 36, 13255, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 1034, 796, 8333, 62, 404, 62, 68, 13, 36, 13255, 628, 220, 220, 220, 1303, 30019, 276, 422, 4899, 14, 3768, 17, 9437, 13, 9078, 327, 21471, 13, 18557, 18273, 198, 220, 220, 220, 1303, 16926, 46, 25, 6889, 257, 2446, 588, 13478, 13, 4677, 437, 48223, 728, 7, 9688, 11, 886, 11, 17635, 828, 290, 2648, 198, 220, 220, 220, 1303, 351, 16144, 13, 198, 220, 220, 220, 5207, 796, 17635, 198, 220, 220, 220, 329, 11506, 62, 312, 287, 2124, 9521, 7, 9464, 62, 30001, 13, 12626, 62, 312, 1343, 352, 11, 1969, 62, 30001, 13, 12626, 62, 312, 2599, 198, 220, 220, 220, 220, 220, 11506, 796, 21136, 62, 49464, 13, 533, 2616, 13, 3855, 13949, 4561, 272, 7, 12626, 62, 312, 8, 198, 220, 220, 220, 220, 220, 1627, 796, 21136, 62, 49464, 13, 533, 2616, 13, 3855, 13949, 7, 12626, 13, 1370, 62, 312, 8, 198, 220, 220, 220, 220, 220, 3704, 796, 1627, 58, 12626, 13, 4033, 1058, 11506, 13, 4033, 1343, 11506, 13, 13664, 60, 198, 220, 220, 220, 220, 220, 5207, 13, 33295, 7, 12239, 8, 628, 220, 220, 220, 1303, 2735, 1128, 17208, 2279, 1022, 994, 198, 220, 220, 220, 2438, 62, 2536, 796, 705, 4458, 22179, 7, 34154, 8, 628, 220, 220, 220, 1303, 24550, 25, 632, 338, 1744, 326, 281, 16144, 7118, 739, 13508, 428, 11, 407, 257, 1103, 2393, 0, 198, 220, 220, 220, 1303, 775, 423, 284, 779, 257, 12075, 43199, 64, 1201, 428, 481, 1645, 1141, 11059, 13, 198, 220, 220, 220, 1627, 62, 22510, 796, 7388, 198, 220, 220, 220, 2723, 62, 3672, 796, 705, 51, 3727, 46, 6, 198, 220, 220, 220, 13478, 796, 36836, 13, 24819, 43199, 64, 10786, 27, 43, 7998, 7177, 6376, 379, 1627, 4064, 67, 286, 4064, 82, 29, 6, 4064, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 1370, 62, 22510, 11, 2723, 62, 3672, 4008, 628, 220, 220, 220, 257, 62, 48610, 796, 21136, 62, 49464, 13, 12050, 3163, 342, 46677, 7, 8189, 62, 2536, 11, 13478, 8, 198, 220, 220, 220, 44052, 796, 257, 62, 48610, 13, 10044, 325, 3419, 220, 1303, 12073, 7736, 13, 10044, 325, 12331, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 16926, 46, 25, 632, 3136, 422, 262, 2642, 13478, 0, 198, 220, 220, 220, 300, 11994, 796, 300, 11994, 62, 31937, 13, 43, 11994, 15732, 276, 5376, 7, 7785, 62, 3672, 11, 44052, 8, 198, 220, 220, 220, 300, 11994, 13, 2777, 2340, 13, 33295, 7, 9464, 62, 30001, 13, 12626, 62, 312, 8, 628, 220, 2073, 25, 198, 220, 220, 220, 5298, 2195, 861, 295, 12331, 628, 220, 1303, 16926, 46, 25, 10358, 356, 635, 2251, 257, 9529, 82, 62, 11201, 13, 19182, 43, 270, 1691, 994, 30, 198, 220, 299, 796, 18896, 7, 86, 13, 42632, 8, 198, 220, 611, 636, 62, 28968, 6624, 299, 25, 198, 220, 220, 220, 1188, 796, 267, 1477, 62, 4775, 13, 40613, 26449, 3419, 198, 220, 2073, 25, 198, 220, 220, 220, 1188, 796, 267, 1477, 62, 4775, 13, 7293, 633, 26449, 7, 86, 13, 42632, 58, 3911, 62, 28968, 25, 12962, 198, 220, 220, 220, 1188, 796, 1573, 13, 51, 44725, 47504, 7, 2100, 8, 393, 1188, 628, 220, 5166, 796, 15582, 62, 292, 25404, 13, 562, 570, 62, 24874, 7, 75, 11994, 11, 1034, 11, 1188, 8, 198, 220, 5166, 13, 2777, 2340, 13, 33295, 7, 9464, 62, 30001, 13, 12626, 62, 312, 8, 220, 1303, 2141, 356, 761, 428, 30, 198, 220, 1441, 5166, 628, 198, 4299, 4808, 4677, 437, 5167, 4834, 85, 7, 46012, 945, 276, 62, 4868, 11, 517, 62, 24330, 2599, 198, 220, 37227, 47429, 284, 13096, 257, 17427, 21575, 10139, 13, 628, 220, 943, 14542, 25, 198, 220, 220, 220, 3143, 945, 276, 25, 257, 1351, 286, 604, 12, 28047, 2374, 422, 35874, 8021, 16747, 198, 220, 220, 220, 517, 62, 24330, 25, 257, 1351, 284, 24443, 17365, 62, 79, 3468, 284, 198, 220, 37227, 628, 220, 329, 1364, 62, 30001, 11, 1969, 62, 30001, 11, 636, 62, 28968, 11, 266, 287, 3143, 945, 276, 62, 4868, 25, 198, 220, 220, 220, 611, 1364, 62, 30001, 13, 312, 14512, 5121, 13, 43, 270, 62, 19852, 7594, 25, 220, 1303, 460, 470, 307, 257, 58, 87, 22241, 16, 198, 220, 220, 220, 220, 220, 279, 62, 11979, 7203, 31441, 12765, 6584, 470, 804, 588, 281, 7177, 16237, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11241, 28, 9464, 62, 30001, 8, 628, 220, 220, 220, 611, 1364, 62, 30001, 13, 2100, 58, 12, 17, 60, 6624, 705, 10, 10354, 198, 220, 220, 220, 220, 220, 279, 62, 11979, 10786, 3109, 7254, 796, 287, 2858, 12765, 11, 1392, 15853, 3256, 11241, 28, 9464, 62, 30001, 8, 628, 220, 220, 220, 1401, 62, 3672, 796, 1364, 62, 30001, 13, 2100, 58, 21912, 16, 60, 198, 220, 220, 220, 299, 796, 18896, 7, 86, 13, 42632, 8, 198, 220, 220, 220, 611, 636, 62, 28968, 6624, 299, 25, 198, 220, 220, 220, 220, 220, 1188, 796, 267, 1477, 62, 4775, 13, 40613, 26449, 3419, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 1188, 796, 267, 1477, 62, 4775, 13, 7293, 633, 26449, 7, 86, 13, 42632, 58, 3911, 62, 28968, 25, 12962, 628, 220, 220, 220, 5166, 796, 15582, 62, 292, 25404, 13, 24330, 62, 24874, 7, 7785, 62, 3672, 11, 1188, 8, 198, 220, 220, 220, 5166, 13, 2777, 2340, 13, 33295, 7, 9464, 62, 30001, 13, 12626, 62, 312, 8, 220, 1303, 2141, 356, 761, 428, 30, 628, 220, 220, 220, 517, 62, 24330, 13, 33295, 7, 24874, 8, 628, 198, 4299, 4808, 12050, 8021, 16747, 7, 29572, 62, 49464, 11, 8333, 62, 46265, 11, 35488, 62, 10879, 2599, 198, 220, 37227, 16447, 281, 3141, 13, 8021, 16747, 10139, 422, 257, 21179, 290, 257, 1351, 286, 2456, 13, 628, 220, 24550, 25, 775, 836, 470, 1249, 8925, 25815, 588, 25, 628, 220, 1957, 720, 16, 628, 220, 770, 460, 307, 6928, 351, 5418, 705, 12001, 720, 16, 6, 198, 220, 37227, 198, 220, 1303, 3274, 21136, 9701, 11, 304, 13, 70, 13, 532, 81, 532, 87, 532, 64, 532, 32, 13, 220, 6045, 286, 262, 9701, 423, 7159, 13, 198, 220, 9701, 796, 17635, 198, 220, 299, 796, 18896, 7, 37333, 844, 62, 10879, 8, 198, 220, 1312, 796, 352, 198, 220, 981, 1312, 1279, 299, 25, 198, 220, 220, 220, 266, 796, 35488, 62, 10879, 58, 72, 60, 198, 220, 220, 220, 12876, 11, 9037, 62, 2100, 11, 10947, 796, 1573, 13, 45442, 36, 2100, 7, 86, 8, 198, 220, 220, 220, 611, 407, 12876, 393, 10947, 25, 198, 220, 220, 220, 220, 220, 2270, 220, 1303, 460, 470, 47746, 13446, 628, 220, 220, 220, 611, 9037, 62, 2100, 13, 9688, 2032, 342, 10786, 19355, 2599, 198, 220, 220, 220, 220, 220, 9701, 13, 33295, 7, 12708, 62, 2100, 8, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 2270, 220, 1303, 407, 257, 6056, 11, 1334, 389, 26498, 198, 220, 220, 220, 1312, 15853, 352, 628, 220, 1303, 2735, 21136, 34111, 393, 7885, 3891, 198, 220, 14729, 796, 17635, 198, 220, 981, 1312, 1279, 299, 25, 198, 220, 220, 220, 266, 796, 35488, 62, 10879, 58, 72, 60, 198, 220, 220, 220, 1303, 13627, 2124, 58, 88, 22241, 16, 318, 4938, 198, 220, 220, 220, 1364, 62, 30001, 11, 1969, 62, 30001, 11, 636, 62, 28968, 796, 1573, 13, 47504, 8021, 16747, 7, 86, 8, 198, 220, 220, 220, 611, 1364, 62, 30001, 25, 198, 220, 220, 220, 220, 220, 5166, 796, 4808, 12050, 8021, 570, 47, 958, 7, 29572, 62, 49464, 11, 357, 9464, 62, 30001, 11, 1969, 62, 30001, 11, 636, 62, 28968, 11, 266, 4008, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 1303, 554, 48328, 287, 9633, 14, 82, 2203, 25, 10784, 62, 361, 62, 27190, 857, 10784, 17971, 16, 1911, 198, 220, 220, 220, 220, 220, 1303, 775, 815, 1249, 326, 13, 628, 220, 220, 220, 220, 220, 1303, 2547, 325, 428, 10338, 788, 30, 220, 1303, 8925, 12, 39344, 30, 220, 632, 5621, 3298, 198, 220, 220, 220, 220, 220, 1303, 9633, 13, 198, 220, 220, 220, 220, 220, 12876, 11, 9037, 62, 2100, 11, 10947, 796, 1573, 13, 45442, 36, 2100, 7, 86, 8, 198, 220, 220, 220, 220, 220, 611, 407, 12876, 393, 10947, 25, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 11979, 7203, 43015, 3891, 1276, 307, 555, 421, 5191, 38491, 1600, 1573, 28, 86, 8, 628, 220, 220, 220, 220, 220, 1303, 1400, 1988, 318, 7548, 284, 10148, 198, 220, 220, 220, 220, 220, 611, 407, 2872, 13, 3792, 47139, 19852, 5376, 7, 12708, 62, 2100, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 11979, 10786, 44651, 7885, 1438, 4064, 81, 3256, 9037, 62, 2100, 11, 1573, 28, 86, 8, 628, 220, 220, 220, 220, 220, 300, 11994, 796, 300, 11994, 62, 31937, 13, 43, 11994, 5376, 7, 12708, 62, 2100, 8, 198, 220, 220, 220, 220, 220, 300, 11994, 13, 2777, 2340, 13, 33295, 7, 4775, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 86, 4008, 198, 220, 220, 220, 220, 220, 5166, 796, 15582, 62, 292, 25404, 13, 562, 570, 62, 24874, 7, 75, 11994, 11, 8333, 62, 404, 62, 68, 13, 36, 13255, 11, 6045, 8, 628, 220, 220, 220, 220, 220, 1364, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 86, 8, 198, 220, 220, 220, 220, 220, 5166, 13, 2777, 2340, 13, 33295, 7, 9464, 62, 2777, 312, 8, 198, 220, 220, 220, 14729, 13, 33295, 7, 24874, 8, 628, 220, 220, 220, 1312, 15853, 352, 628, 220, 10139, 796, 3141, 13, 8021, 16747, 7, 562, 570, 62, 46265, 11, 9701, 11, 14729, 8, 198, 220, 1441, 10139, 628, 198, 4299, 4808, 41205, 26437, 21575, 36698, 844, 7, 10879, 2599, 198, 220, 37227, 12211, 1208, 286, 17427, 21575, 32096, 25, 804, 329, 16237, 2456, 526, 15931, 198, 220, 3143, 945, 276, 62, 4868, 796, 17635, 198, 220, 35488, 62, 10879, 796, 17635, 628, 220, 1760, 62, 40290, 796, 10352, 198, 220, 329, 266, 287, 2456, 25, 198, 220, 220, 220, 611, 1760, 62, 40290, 25, 198, 220, 220, 220, 220, 220, 35488, 62, 10879, 13, 33295, 7, 86, 8, 198, 220, 220, 220, 220, 220, 2555, 628, 220, 220, 220, 1364, 62, 30001, 11, 1969, 62, 30001, 11, 636, 62, 28968, 796, 1573, 13, 47504, 8021, 16747, 7, 86, 8, 198, 220, 220, 220, 611, 1364, 62, 30001, 25, 198, 220, 220, 220, 220, 220, 3143, 945, 276, 62, 4868, 13, 33295, 19510, 9464, 62, 30001, 11, 1969, 62, 30001, 11, 636, 62, 28968, 11, 266, 4008, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 1760, 62, 40290, 796, 6407, 198, 220, 220, 220, 220, 220, 35488, 62, 10879, 13, 33295, 7, 86, 8, 628, 220, 1441, 3143, 945, 276, 62, 4868, 11, 35488, 62, 10879, 628, 198, 4299, 4808, 12050, 26437, 21575, 7, 46012, 945, 276, 62, 4868, 11, 35488, 62, 10879, 11, 18941, 82, 2599, 198, 220, 37227, 16447, 281, 3141, 13, 26437, 21575, 10139, 526, 15931, 628, 220, 1303, 376, 6684, 16193, 16, 362, 513, 8, 43979, 318, 407, 3142, 13, 198, 220, 329, 4808, 11, 4808, 11, 4808, 11, 266, 287, 3143, 945, 276, 62, 4868, 25, 198, 220, 220, 220, 611, 1573, 13, 19242, 19182, 7841, 7, 86, 2599, 198, 220, 220, 220, 220, 220, 279, 62, 11979, 7203, 31441, 34111, 460, 470, 3994, 7177, 4187, 874, 1600, 1573, 28, 86, 8, 628, 220, 1303, 9809, 376, 6684, 16193, 16, 362, 513, 8, 318, 407, 3142, 357, 4360, 356, 815, 5626, 2038, 319, 9809, 376, 6684, 58, 87, 22241, 16, 737, 198, 220, 329, 266, 287, 35488, 62, 10879, 25, 198, 220, 220, 220, 611, 1573, 13, 19242, 19182, 7841, 7, 86, 2599, 198, 220, 220, 220, 220, 220, 279, 62, 11979, 7203, 6935, 1746, 460, 470, 3994, 7177, 4187, 874, 1600, 1573, 28, 86, 8, 628, 220, 1303, 24550, 25, 1303, 554, 27334, 11, 1391, 93, 65, 672, 11, 93, 73, 1531, 92, 14, 10677, 2499, 11, 772, 996, 5299, 2125, 470, 262, 3756, 198, 220, 1303, 2095, 286, 262, 4238, 1573, 13, 198, 220, 1303, 2102, 11, 428, 1724, 356, 1276, 466, 256, 44725, 13326, 36050, 22581, 25703, 15037, 2849, 11, 407, 198, 220, 1303, 655, 706, 22581, 38267, 24565, 588, 356, 821, 1804, 994, 13, 198, 220, 1303, 383, 1709, 2286, 26449, 27660, 10245, 423, 284, 307, 9902, 656, 3082, 633, 26449, 198, 220, 1303, 10245, 329, 262, 256, 44725, 13326, 284, 670, 13, 198, 220, 2456, 17, 796, 47241, 13, 9414, 558, 47504, 3237, 7, 37333, 844, 62, 10879, 8, 198, 220, 2456, 18, 796, 1573, 13, 51, 44725, 47504, 3237, 7, 10879, 17, 8, 628, 220, 10139, 796, 3141, 13, 26437, 21575, 3419, 198, 220, 10139, 13, 10879, 796, 2456, 18, 198, 220, 10139, 13, 445, 1060, 82, 796, 18941, 82, 198, 220, 4808, 4677, 437, 5167, 4834, 85, 7, 46012, 945, 276, 62, 4868, 11, 10139, 13, 3549, 62, 24330, 8, 198, 220, 1441, 10139, 628, 198, 11929, 62, 39776, 2257, 62, 45359, 5258, 796, 357, 198, 220, 220, 220, 5121, 13, 42, 54, 62, 5211, 11, 5121, 13, 42, 54, 62, 45677, 11, 5121, 13, 42, 54, 62, 6423, 11, 5121, 13, 42, 54, 62, 10547, 11, 5121, 13, 42, 54, 62, 9527, 361, 11, 198, 220, 220, 220, 5121, 13, 42, 54, 62, 40674, 11, 5121, 13, 42, 54, 62, 23041, 330, 198, 8, 628, 198, 4871, 9455, 46677, 7, 15252, 2599, 198, 220, 37227, 198, 220, 943, 14542, 25, 198, 220, 220, 220, 1573, 62, 29572, 25, 284, 651, 257, 4269, 286, 2456, 198, 220, 220, 220, 31191, 263, 25, 329, 804, 38204, 287, 2163, 825, 11, 23691, 39, 600, 286, 7499, 198, 220, 220, 220, 1627, 62, 46862, 25, 329, 994, 2205, 198, 220, 37227, 628, 220, 825, 30027, 7, 944, 2599, 198, 220, 220, 220, 37227, 4965, 316, 674, 898, 5387, 1181, 13, 628, 220, 220, 220, 34099, 416, 262, 14333, 9052, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 327, 21471, 1181, 900, 416, 4808, 6435, 988, 3419, 198, 220, 220, 220, 2116, 13, 19545, 62, 2588, 62, 14171, 796, 31191, 62, 14171, 62, 68, 13, 7975, 263, 198, 220, 220, 220, 2116, 13, 22019, 62, 4775, 796, 6045, 220, 1303, 1459, 1573, 198, 220, 220, 220, 2116, 13, 66, 62, 11031, 796, 14927, 13, 31319, 18156, 198, 220, 220, 220, 2116, 13, 66, 62, 312, 796, 5121, 13, 31319, 18156, 62, 19042, 628, 220, 220, 220, 2116, 13, 79, 1571, 62, 1456, 62, 31628, 796, 17635, 628, 220, 825, 30027, 20560, 10267, 82, 7, 944, 2599, 198, 220, 220, 220, 37227, 4965, 316, 262, 5387, 1181, 286, 674, 17311, 13, 628, 220, 220, 220, 34099, 416, 262, 14333, 9052, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2116, 13, 86, 62, 48610, 13, 4965, 316, 3419, 198, 220, 220, 220, 2116, 13, 2588, 263, 13, 4965, 316, 20560, 10267, 82, 3419, 198, 220, 220, 220, 2116, 13, 1370, 62, 46862, 13, 4965, 316, 3419, 628, 220, 1303, 24550, 25, 1002, 674, 3164, 284, 4808, 13300, 16870, 392, 37893, 1386, 2125, 470, 6751, 11, 356, 714, 198, 220, 1303, 423, 281, 4292, 62, 26011, 28, 17821, 6056, 994, 30, 220, 775, 561, 25359, 262, 30751, 351, 3848, 198, 220, 1303, 284, 428, 588, 14470, 290, 27334, 13, 198, 220, 1303, 198, 220, 1303, 4900, 340, 1244, 307, 1744, 326, 345, 1107, 761, 284, 4517, 378, 262, 30751, 198, 220, 1303, 1181, 11, 290, 407, 655, 2148, 257, 11507, 284, 4808, 10019, 22446, 198, 220, 1303, 921, 1244, 635, 761, 257, 6056, 284, 7603, 1771, 262, 2180, 7118, 5645, 198, 220, 1303, 351, 705, 45302, 220, 314, 1422, 470, 766, 326, 287, 14470, 393, 27334, 2438, 13, 628, 220, 825, 4808, 10019, 7, 944, 11, 31191, 62, 14171, 28, 2588, 62, 14171, 62, 68, 13, 7975, 263, 2599, 198, 220, 220, 220, 37227, 47429, 2446, 526, 15931, 198, 220, 220, 220, 2116, 13, 19545, 62, 2588, 62, 14171, 796, 31191, 62, 14171, 628, 220, 825, 2631, 988, 7, 944, 2599, 198, 220, 220, 220, 37227, 15202, 2446, 329, 45285, 526, 15931, 198, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 1441, 2116, 13, 22019, 62, 4775, 628, 220, 825, 4808, 6435, 988, 7, 944, 2599, 198, 220, 220, 220, 37227, 47429, 2446, 13, 628, 220, 220, 220, 16409, 6407, 329, 1943, 290, 10352, 319, 4049, 13, 220, 13047, 6096, 25, 2089, 3141, 198, 220, 220, 220, 850, 1573, 11, 393, 555, 23705, 515, 10947, 4731, 11, 3503, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 611, 2116, 13, 19545, 62, 2588, 62, 14171, 14512, 31191, 62, 14171, 62, 68, 13, 31319, 18156, 25, 198, 220, 220, 220, 220, 220, 266, 796, 2116, 13, 86, 62, 48610, 13, 5569, 26449, 7, 944, 13, 19545, 62, 2588, 62, 14171, 8, 198, 220, 220, 220, 220, 220, 6818, 266, 318, 407, 6045, 628, 220, 220, 220, 220, 220, 1303, 3423, 34165, 691, 1645, 287, 3141, 4235, 11, 523, 584, 6982, 286, 649, 6615, 836, 470, 198, 220, 220, 220, 220, 220, 1303, 954, 13, 198, 220, 220, 220, 220, 220, 611, 266, 13, 12985, 6624, 1573, 62, 68, 13, 30642, 26449, 290, 266, 13, 30001, 13, 312, 6624, 5121, 13, 18257, 62, 3791, 1370, 25, 198, 220, 220, 220, 220, 220, 220, 220, 329, 289, 287, 2116, 13, 79, 1571, 62, 1456, 62, 31628, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 10044, 325, 4342, 23579, 25842, 7, 944, 13, 29572, 62, 49464, 11, 289, 11, 2116, 13, 1370, 62, 46862, 11, 2116, 13, 533, 2616, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1619, 2116, 13, 79, 1571, 62, 1456, 62, 31628, 58, 47715, 220, 1303, 1400, 764, 20063, 3419, 1566, 11361, 513, 13, 18, 13, 628, 220, 220, 220, 220, 220, 2116, 13, 22019, 62, 4775, 796, 266, 628, 220, 220, 220, 220, 220, 2116, 13, 66, 62, 11031, 796, 1573, 13, 21575, 35854, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 220, 220, 2116, 13, 66, 62, 312, 796, 1573, 13, 21575, 7390, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 220, 220, 2116, 13, 19545, 62, 2588, 62, 14171, 796, 31191, 62, 14171, 62, 68, 13, 31319, 18156, 628, 220, 825, 4808, 47659, 7, 944, 11, 269, 62, 312, 2599, 198, 220, 220, 220, 37227, 9444, 2454, 257, 1573, 286, 257, 2099, 13, 220, 1002, 340, 1595, 470, 2872, 11, 1441, 10352, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 269, 62, 312, 25, 2035, 412, 9218, 4775, 15885, 393, 257, 11241, 2099, 588, 5121, 13, 11028, 62, 7004, 29149, 13, 198, 220, 220, 220, 220, 220, 16926, 46, 25, 46863, 1096, 1220, 2099, 2198, 428, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 1303, 16926, 46, 25, 44118, 1223, 588, 509, 54, 62, 5211, 318, 407, 8030, 13, 220, 775, 460, 3975, 198, 220, 220, 220, 1303, 16196, 1262, 262, 4808, 20373, 45359, 5258, 1351, 287, 267, 1477, 14, 2588, 13, 9078, 13, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 14512, 269, 62, 312, 25, 198, 220, 220, 220, 220, 220, 279, 62, 11979, 10786, 3109, 7254, 1573, 2099, 4064, 82, 11, 1392, 4064, 82, 3256, 269, 62, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1573, 13, 21575, 7390, 7, 944, 13, 22019, 62, 4775, 828, 1573, 28, 944, 13, 22019, 62, 4775, 8, 628, 220, 220, 220, 2116, 13557, 10019, 3419, 628, 220, 825, 4808, 3791, 1370, 18690, 7, 944, 2599, 198, 220, 220, 220, 37227, 9787, 329, 11902, 649, 1370, 290, 15000, 340, 526, 15931, 198, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 18257, 62, 3791, 1370, 25, 198, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 198, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 628, 220, 825, 2547, 325, 7738, 1060, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 20647, 25, 921, 836, 470, 760, 543, 1611, 286, 2266, 343, 62, 17440, 284, 9113, 9386, 878, 198, 220, 220, 220, 428, 30, 220, 921, 714, 3404, 606, 477, 287, 530, 10139, 11, 290, 788, 423, 257, 5078, 3419, 319, 198, 220, 220, 220, 262, 2099, 13, 628, 220, 220, 220, 921, 761, 1180, 3858, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 6818, 2116, 13, 66, 62, 11031, 6624, 14927, 13, 7738, 343, 11, 2116, 13, 22019, 62, 4775, 628, 220, 220, 220, 1034, 796, 2116, 13, 22019, 62, 4775, 13, 30001, 628, 220, 220, 220, 1303, 1114, 783, 691, 6493, 2060, 16839, 43087, 198, 220, 220, 220, 717, 62, 10641, 796, 2116, 13, 22019, 62, 4775, 13, 30001, 13, 2100, 58, 15, 60, 198, 220, 220, 220, 611, 717, 62, 10641, 13, 9409, 328, 270, 33529, 198, 220, 220, 220, 220, 220, 277, 67, 796, 493, 7, 11085, 62, 10641, 8, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 277, 67, 796, 1500, 13, 15285, 62, 12394, 7156, 1137, 628, 220, 220, 220, 611, 1034, 13, 312, 287, 357, 7390, 13, 7738, 343, 62, 19260, 408, 11, 5121, 13, 7738, 343, 62, 19260, 408, 43041, 2599, 220, 1303, 994, 2205, 198, 220, 220, 220, 220, 220, 10139, 796, 2266, 343, 13, 4342, 23579, 3419, 198, 220, 220, 220, 220, 220, 10139, 13, 404, 796, 1034, 198, 220, 220, 220, 220, 220, 10139, 13, 16344, 796, 277, 67, 198, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 628, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 220, 220, 10139, 13, 1456, 62, 27471, 796, 2116, 13, 22019, 62, 4775, 198, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 628, 220, 220, 220, 220, 220, 2116, 13, 79, 1571, 62, 1456, 62, 31628, 13, 33295, 7, 17440, 8, 220, 1303, 481, 307, 5901, 319, 1306, 649, 1370, 13, 628, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 10139, 796, 2266, 343, 13, 7738, 343, 3419, 198, 220, 220, 220, 220, 220, 10139, 13, 404, 796, 1034, 198, 220, 220, 220, 220, 220, 10139, 13, 16344, 796, 277, 67, 198, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 628, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 220, 220, 611, 2116, 13, 66, 62, 11031, 14512, 14927, 13, 26449, 25, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 11979, 10786, 44651, 11241, 706, 18941, 10088, 3256, 1573, 28, 944, 13, 22019, 62, 4775, 8, 628, 220, 220, 220, 220, 220, 649, 62, 4775, 796, 1573, 13, 51, 44725, 47504, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 220, 220, 10139, 13, 853, 62, 4775, 796, 649, 62, 4775, 393, 2116, 13, 22019, 62, 4775, 198, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 628, 220, 220, 220, 1441, 10139, 628, 220, 825, 4808, 10044, 325, 7738, 1060, 8053, 7, 944, 2599, 198, 220, 220, 220, 37227, 23433, 32096, 597, 18941, 82, 379, 262, 23493, 13, 628, 220, 220, 220, 770, 318, 973, 329, 7021, 691, 11, 407, 9729, 13, 628, 220, 220, 220, 8229, 6045, 319, 4049, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 18941, 82, 796, 17635, 198, 220, 220, 220, 981, 6407, 25, 198, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 628, 220, 220, 220, 220, 220, 1303, 770, 17724, 2476, 284, 22224, 2453, 18941, 12879, 13, 220, 10358, 356, 198, 220, 220, 220, 220, 220, 1303, 787, 606, 257, 4553, 1675, 365, 45, 11031, 30, 198, 220, 220, 220, 220, 220, 611, 2116, 13, 66, 62, 11031, 14512, 14927, 13, 7738, 343, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 628, 220, 220, 220, 220, 220, 10139, 796, 2116, 13, 10044, 325, 7738, 1060, 3419, 198, 220, 220, 220, 220, 220, 18941, 82, 13, 33295, 7, 17440, 8, 198, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 198, 220, 220, 220, 1441, 18941, 82, 628, 220, 825, 4808, 33351, 26437, 21575, 7, 944, 2599, 198, 220, 220, 220, 37227, 5962, 1208, 25, 27758, 656, 18941, 82, 290, 2456, 526, 15931, 198, 220, 220, 220, 18941, 82, 796, 17635, 198, 220, 220, 220, 2456, 796, 17635, 198, 220, 220, 220, 1303, 5345, 257, 4941, 523, 356, 460, 10104, 1181, 706, 257, 4054, 21136, 0, 198, 220, 220, 220, 2116, 13, 29572, 62, 49464, 13, 9535, 346, 13, 7248, 39478, 37117, 7, 10879, 11, 18941, 82, 8, 198, 220, 220, 220, 981, 6407, 25, 198, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 220, 220, 611, 2116, 13, 66, 62, 11031, 6624, 14927, 13, 7738, 343, 25, 198, 220, 220, 220, 220, 220, 220, 220, 10139, 796, 2116, 13, 10044, 325, 7738, 1060, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 18941, 82, 13, 33295, 7, 17440, 8, 628, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 66, 62, 11031, 6624, 14927, 13, 26449, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2456, 13, 33295, 7, 944, 13, 22019, 62, 4775, 8, 628, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 628, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 198, 220, 220, 220, 1441, 18941, 82, 11, 2456, 628, 220, 825, 4808, 13300, 16870, 392, 37893, 1386, 7, 944, 11, 2456, 11, 1090, 62, 7344, 1386, 2599, 198, 220, 220, 220, 37227, 23433, 284, 4292, 47217, 13, 628, 220, 220, 220, 3954, 7822, 286, 16144, 468, 734, 1486, 7747, 25, 198, 220, 220, 220, 532, 6350, 284, 7550, 340, 287, 32096, 13, 220, 775, 466, 340, 379, 262, 886, 286, 2547, 325, 26437, 21575, 13, 198, 220, 220, 220, 532, 1867, 23491, 3896, 284, 21136, 262, 9902, 16144, 11876, 351, 13, 220, 554, 674, 1339, 198, 220, 220, 220, 220, 220, 340, 338, 2547, 325, 21575, 22446, 628, 220, 220, 220, 770, 1595, 470, 2407, 2872, 644, 584, 19679, 466, 11, 475, 314, 460, 470, 3785, 503, 257, 198, 220, 220, 220, 1365, 4113, 13, 628, 220, 220, 220, 4042, 1332, 2663, 1208, 11, 2845, 329, 3392, 588, 25, 628, 220, 220, 220, 16144, 406, 11473, 11598, 11639, 90, 6, 198, 220, 220, 220, 406, 11473, 11598, 9809, 530, 26, 9809, 734, 26, 1782, 628, 220, 220, 220, 16144, 337, 16724, 4146, 8881, 11639, 30328, 352, 198, 220, 220, 220, 9809, 362, 198, 220, 220, 220, 9809, 513, 6, 198, 220, 220, 220, 337, 16724, 4146, 8881, 628, 220, 220, 220, 24550, 25, 14470, 17105, 47217, 287, 257, 6635, 288, 7087, 1156, 835, 13, 220, 632, 468, 257, 3298, 198, 220, 220, 220, 7885, 2198, 74, 16993, 287, 30751, 13, 66, 13, 220, 632, 46974, 340, 477, 625, 262, 23491, 11, 588, 198, 220, 220, 220, 428, 25, 628, 220, 220, 220, 2198, 74, 16993, 796, 5870, 29132, 43, 930, 5870, 16601, 22332, 930, 5870, 42, 1847, 43429, 26, 628, 220, 220, 220, 383, 1100, 30001, 3419, 2163, 8794, 357, 9122, 74, 16993, 1222, 5870, 42, 1847, 43429, 8, 290, 788, 3848, 198, 220, 220, 220, 35847, 26011, 22446, 220, 770, 2331, 284, 2148, 257, 6414, 4069, 1871, 19679, 11, 198, 220, 220, 220, 475, 340, 338, 1342, 26507, 290, 1332, 540, 13, 628, 220, 220, 220, 15743, 635, 3544, 257, 3298, 705, 48610, 62, 5219, 1222, 28220, 62, 1847, 6369, 13137, 13918, 4458, 628, 220, 220, 220, 16409, 25, 198, 220, 220, 220, 220, 220, 317, 3141, 10139, 611, 597, 47217, 547, 9902, 11, 393, 6045, 4306, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 383, 938, 1149, 326, 356, 1244, 21136, 13, 198, 220, 220, 220, 826, 62, 2777, 312, 796, 1573, 13, 11028, 6943, 4561, 272, 1890, 26449, 7, 10879, 58, 12, 16, 12962, 198, 220, 220, 220, 717, 62, 4775, 62, 2536, 796, 6045, 220, 1303, 329, 4049, 3275, 628, 220, 220, 220, 9902, 796, 17635, 198, 220, 220, 220, 1312, 796, 657, 198, 220, 220, 220, 299, 796, 18896, 7, 10879, 8, 628, 220, 220, 220, 981, 1312, 1279, 299, 25, 198, 220, 220, 220, 220, 220, 266, 796, 2456, 58, 72, 60, 628, 220, 220, 220, 220, 220, 12876, 11, 1573, 62, 2536, 11, 10947, 796, 1573, 13, 45442, 36, 2100, 7, 86, 8, 198, 220, 220, 220, 220, 220, 611, 407, 12876, 393, 10947, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 628, 220, 220, 220, 220, 220, 16144, 62, 11201, 796, 2116, 13, 7344, 1386, 13, 1136, 7, 4775, 62, 2536, 8, 198, 220, 220, 220, 220, 220, 611, 16144, 62, 11201, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 628, 220, 220, 220, 220, 220, 1303, 31572, 15541, 23607, 13, 220, 770, 318, 11800, 25, 356, 765, 284, 2948, 15541, 198, 220, 220, 220, 220, 220, 1303, 7118, 286, 16144, 9809, 11639, 30328, 2124, 4458, 220, 887, 356, 836, 470, 765, 284, 2948, 198, 220, 220, 220, 220, 220, 1303, 7118, 286, 262, 1218, 1573, 287, 705, 30328, 9809, 3256, 523, 356, 751, 705, 72, 6, 284, 198, 220, 220, 220, 220, 220, 1303, 366, 22019, 62, 7344, 1386, 1911, 198, 220, 220, 220, 220, 220, 611, 357, 4775, 62, 2536, 11, 1312, 8, 287, 1090, 62, 7344, 1386, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 628, 220, 220, 220, 220, 220, 611, 1312, 6624, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 717, 62, 4775, 62, 2536, 796, 1573, 62, 2536, 220, 1303, 329, 4049, 3275, 628, 220, 220, 220, 220, 220, 1303, 6404, 10786, 4, 81, 4613, 4064, 81, 3256, 1573, 62, 2536, 11, 16144, 62, 11201, 8, 198, 220, 220, 220, 220, 220, 1090, 62, 7344, 1386, 13, 33295, 19510, 4775, 62, 2536, 11, 1312, 4008, 198, 220, 220, 220, 220, 220, 9902, 13, 33295, 7, 26011, 62, 11201, 8, 198, 220, 220, 220, 220, 220, 1312, 15853, 352, 628, 220, 220, 220, 220, 220, 611, 407, 16144, 62, 11201, 13, 437, 2032, 342, 10786, 705, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 16144, 304, 11639, 30328, 685, 705, 318, 262, 976, 7118, 355, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 16144, 304, 11639, 30328, 37250, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 383, 25462, 2272, 9217, 1771, 356, 815, 2555, 284, 4292, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 47217, 26, 340, 338, 407, 636, 286, 340, 13, 198, 220, 220, 220, 220, 220, 220, 220, 9902, 13, 33295, 10786, 705, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 220, 1303, 1400, 517, 36383, 628, 220, 220, 220, 611, 407, 9902, 25, 220, 1303, 1400, 36383, 26, 24955, 857, 32096, 13, 198, 220, 220, 220, 220, 220, 1441, 6045, 628, 220, 220, 220, 1303, 775, 1392, 617, 7118, 13, 220, 2735, 4866, 262, 1334, 286, 262, 2456, 13, 628, 220, 220, 220, 1303, 775, 761, 1123, 44521, 12, 22083, 40, 23988, 1573, 13869, 0, 220, 1114, 1672, 25, 198, 220, 220, 220, 1303, 720, 9809, 530, 1875, 448, 734, 198, 220, 220, 220, 1303, 14470, 14, 76, 50133, 14, 89, 1477, 467, 3675, 262, 717, 18941, 0, 198, 220, 220, 220, 981, 1312, 1279, 299, 25, 198, 220, 220, 220, 220, 220, 266, 796, 2456, 58, 72, 60, 198, 220, 220, 220, 220, 220, 1364, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 86, 8, 198, 220, 220, 220, 220, 220, 826, 62, 2777, 312, 796, 1573, 13, 11028, 6943, 4561, 272, 1890, 26449, 7, 86, 8, 628, 220, 220, 220, 220, 220, 1303, 30019, 276, 422, 4899, 14, 3768, 17, 9437, 13, 9078, 327, 21471, 13, 18557, 18273, 198, 220, 220, 220, 220, 220, 329, 11506, 62, 312, 287, 2124, 9521, 7, 9464, 62, 2777, 312, 11, 826, 62, 2777, 312, 1343, 352, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 11506, 796, 2116, 13, 533, 2616, 13, 3855, 13949, 4561, 272, 7, 12626, 62, 312, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1627, 796, 2116, 13, 533, 2616, 13, 3855, 13949, 7, 12626, 13, 1370, 62, 312, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3704, 796, 1627, 58, 12626, 13, 4033, 1058, 11506, 13, 4033, 1343, 11506, 13, 13664, 60, 198, 220, 220, 220, 220, 220, 220, 220, 9902, 13, 33295, 7, 12239, 8, 628, 220, 220, 220, 220, 220, 9902, 13, 33295, 10786, 705, 8, 220, 1303, 5930, 2272, 736, 1022, 2456, 13, 198, 220, 220, 220, 220, 220, 1312, 15853, 352, 628, 220, 220, 220, 2438, 62, 2536, 796, 705, 4458, 22179, 7, 11201, 12249, 8, 198, 220, 220, 220, 3951, 796, 2438, 62, 2536, 13, 35312, 6615, 7, 17821, 8, 220, 1303, 9175, 649, 6615, 628, 220, 220, 220, 1627, 62, 10951, 796, 17635, 198, 220, 220, 220, 1303, 16926, 46, 25, 3060, 4067, 1321, 198, 220, 220, 220, 2116, 13, 533, 2616, 13, 49222, 7416, 7, 198, 220, 220, 220, 220, 220, 220, 220, 705, 27, 11201, 5487, 286, 16144, 4064, 81, 379, 1627, 4064, 67, 286, 4064, 82, 29, 6, 4064, 198, 220, 220, 220, 220, 220, 220, 220, 357, 11085, 62, 4775, 62, 2536, 11, 532, 16, 11, 705, 51, 3727, 46, 6, 4008, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 329, 1312, 11, 1627, 287, 27056, 378, 7, 6615, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1627, 62, 312, 796, 2116, 13, 533, 2616, 13, 4550, 13949, 7, 1370, 11, 1312, 10, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1627, 62, 10951, 13, 33295, 19510, 1370, 62, 312, 11, 1627, 11, 657, 4008, 198, 220, 220, 220, 3443, 25, 198, 220, 220, 220, 220, 220, 2116, 13, 533, 2616, 13, 16979, 7416, 3419, 628, 220, 220, 220, 1627, 62, 46862, 796, 9173, 13, 37725, 13949, 33634, 7, 1370, 62, 10951, 11, 2116, 13, 533, 2616, 8, 198, 220, 220, 220, 31396, 796, 2116, 13, 29572, 62, 49464, 13, 12050, 46, 1477, 46677, 7, 1370, 62, 46862, 8, 628, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 10139, 796, 31396, 13, 10044, 325, 21575, 7, 22019, 62, 7344, 1386, 28, 22019, 62, 7344, 1386, 8, 198, 220, 220, 220, 2845, 7736, 13, 10044, 325, 12331, 355, 304, 25, 198, 220, 220, 220, 220, 220, 1303, 25743, 284, 21136, 16144, 7118, 318, 257, 10800, 4049, 198, 220, 220, 220, 220, 220, 1303, 775, 836, 470, 761, 517, 9041, 994, 14, 198, 220, 220, 220, 220, 220, 5298, 628, 220, 220, 220, 611, 657, 25, 198, 220, 220, 220, 220, 220, 2604, 10786, 8579, 5781, 7118, 25, 11537, 198, 220, 220, 220, 220, 220, 422, 267, 1477, 1330, 6468, 62, 8019, 198, 220, 220, 220, 220, 220, 6468, 62, 8019, 13, 35700, 18557, 7, 17440, 8, 198, 220, 220, 220, 1441, 10139, 628, 220, 1303, 34771, 326, 7603, 281, 16237, 815, 307, 44267, 588, 257, 3141, 13, 198, 220, 4808, 10705, 16284, 62, 9858, 10725, 5258, 796, 900, 26933, 198, 220, 220, 220, 220, 220, 357, 7390, 13, 8021, 570, 62, 37835, 533, 11, 705, 12, 69, 33809, 220, 1303, 2163, 825, 82, 198, 220, 220, 220, 220, 220, 357, 7390, 13, 8021, 570, 62, 37835, 533, 11, 705, 12, 37, 33809, 220, 1303, 2163, 3891, 198, 220, 220, 220, 220, 220, 357, 7390, 13, 8021, 570, 62, 37835, 533, 11, 705, 12, 79, 33809, 220, 1303, 3601, 628, 220, 220, 220, 220, 220, 357, 7390, 13, 8021, 570, 62, 31431, 316, 11, 705, 12, 69, 33809, 198, 220, 220, 220, 220, 220, 357, 7390, 13, 8021, 570, 62, 31431, 316, 11, 705, 12, 37, 33809, 198, 220, 220, 220, 220, 220, 357, 7390, 13, 8021, 570, 62, 31431, 316, 11, 705, 12, 79, 33809, 628, 220, 220, 220, 220, 220, 357, 7390, 13, 8021, 570, 62, 14565, 11, 705, 12, 79, 33809, 198, 220, 220, 220, 220, 220, 357, 7390, 13, 8021, 570, 62, 5569, 8807, 11, 705, 12, 79, 33809, 198, 220, 220, 220, 220, 220, 1303, 367, 76, 705, 39344, 532, 79, 6, 318, 517, 588, 257, 3141, 13, 220, 887, 356, 821, 32096, 340, 198, 220, 220, 220, 220, 220, 1303, 32366, 783, 780, 286, 617, 7917, 11799, 13, 198, 220, 220, 220, 220, 220, 1303, 6674, 356, 714, 1487, 428, 13, 198, 220, 220, 220, 220, 220, 1303, 7, 7390, 13, 8021, 570, 62, 43834, 11, 705, 12, 79, 33809, 198, 220, 33761, 198, 220, 1303, 34771, 284, 21136, 588, 25815, 25, 532, 64, 532, 81, 532, 87, 357, 392, 3863, 532, 72, 8, 628, 220, 825, 2547, 325, 26437, 21575, 7, 944, 11, 1090, 62, 7344, 1386, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 10832, 26955, 286, 262, 28069, 10426, 23491, 357, 51, 3727, 46, 25, 2493, 284, 23491, 14, 23248, 13, 70, 8, 628, 220, 220, 220, 33245, 62, 7753, 220, 220, 220, 220, 220, 220, 220, 1058, 705, 27, 6, 220, 220, 220, 220, 220, 220, 29472, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 406, 7597, 6981, 220, 220, 29472, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2644, 628, 220, 220, 220, 33245, 62, 1456, 220, 220, 220, 220, 220, 220, 220, 1058, 23641, 7597, 220, 220, 220, 220, 994, 62, 437, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 23641, 7597, 35, 11211, 994, 62, 437, 628, 220, 220, 220, 18941, 220, 220, 220, 220, 220, 220, 1058, 24418, 62, 41359, 13246, 357, 952, 62, 445, 1060, 930, 33245, 62, 1456, 8, 628, 220, 220, 220, 21231, 62, 3911, 220, 220, 220, 1058, 24994, 16284, 10979, 62, 54, 12532, 930, 18941, 198, 220, 220, 220, 23991, 62, 3911, 220, 220, 220, 220, 220, 220, 1058, 370, 12532, 930, 18941, 628, 220, 220, 220, 8333, 62, 46265, 220, 220, 220, 220, 220, 1058, 16691, 533, 930, 36472, 930, 10714, 930, 4149, 8807, 628, 220, 220, 220, 1303, 9170, 597, 2456, 340, 318, 44267, 355, 257, 3141, 11, 407, 281, 840, 328, 434, 198, 220, 220, 220, 8333, 62, 4868, 278, 1058, 8333, 62, 46265, 628, 220, 220, 220, 1303, 2735, 356, 423, 1223, 284, 466, 357, 44092, 307, 5609, 16237, 9701, 1165, 8, 198, 220, 220, 220, 1303, 24550, 25, 597, 21231, 274, 815, 307, 257, 6509, 11, 475, 484, 389, 3142, 287, 7582, 13, 198, 220, 220, 220, 16237, 220, 220, 220, 220, 1058, 21231, 62, 3911, 9, 8333, 62, 46265, 357, 54, 12532, 930, 24994, 16284, 10979, 62, 54, 12532, 47762, 628, 220, 220, 220, 1303, 281, 7097, 3141, 11, 257, 2163, 869, 11, 393, 257, 3170, 259, 1377, 257, 366, 4775, 62, 21812, 1, 198, 220, 220, 220, 1573, 62, 21812, 220, 220, 1058, 21231, 62, 3911, 9, 23991, 62, 3911, 10, 628, 220, 220, 220, 2829, 62, 21812, 1058, 8333, 62, 4868, 278, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 16237, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 13834, 62, 21812, 628, 220, 220, 220, 17427, 23602, 11862, 25, 628, 220, 220, 220, 352, 8, 4149, 257, 1351, 286, 2456, 290, 18941, 82, 13, 220, 2034, 437, 606, 284, 4553, 8341, 13, 198, 220, 220, 220, 362, 8, 6803, 329, 262, 717, 1729, 12, 562, 16747, 1573, 13, 220, 1002, 340, 338, 13627, 11, 3503, 1539, 788, 198, 220, 220, 220, 1394, 32096, 2456, 5357, 8333, 2456, 13, 220, 15323, 11, 655, 21136, 2456, 13, 198, 220, 220, 220, 513, 8, 1002, 612, 389, 645, 1729, 12, 562, 16747, 2456, 11, 788, 340, 338, 257, 3298, 16237, 13, 628, 220, 220, 220, 1391, 18941, 82, 11, 3298, 25815, 1782, 6375, 198, 220, 220, 220, 1391, 18941, 82, 11, 21231, 62, 21653, 654, 11, 2456, 1782, 6375, 198, 220, 220, 220, 1391, 18941, 82, 11, 33854, 62, 40290, 62, 21653, 654, 11, 21179, 11, 25815, 11, 2456, 1782, 628, 220, 220, 220, 42243, 5870, 25171, 326, 21231, 34111, 836, 470, 423, 597, 7177, 18875, 3354, 0, 198, 220, 220, 220, 3298, 16237, 290, 21179, 25815, 460, 423, 262, 286, 1781, 13, 198, 220, 220, 220, 880, 1682, 7788, 15490, 6584, 470, 423, 606, 2035, 1377, 39410, 628, 220, 220, 220, 513, 2663, 356, 765, 284, 9828, 25, 21231, 62, 21653, 654, 329, 16237, 11, 290, 7177, 18875, 198, 220, 220, 220, 287, 21231, 34111, 11, 393, 10784, 628, 220, 220, 220, 317, 3141, 460, 307, 281, 16237, 1573, 11, 1573, 11, 393, 18941, 319, 663, 898, 13, 628, 220, 220, 220, 220, 220, 220, 220, 43979, 198, 220, 220, 220, 220, 220, 220, 220, 1875, 448, 13, 14116, 628, 220, 220, 220, 220, 220, 220, 220, 1875, 448, 13, 14116, 376, 6684, 28, 5657, 220, 220, 1303, 428, 18105, 262, 2393, 11, 290, 289, 1452, 628, 220, 220, 220, 1471, 597, 8379, 25, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 22944, 2318, 198, 220, 220, 220, 220, 220, 220, 220, 1279, 259, 13, 14116, 43979, 22944, 2318, 1875, 448, 13, 14116, 198, 220, 220, 220, 220, 220, 220, 220, 1279, 259, 13, 14116, 43979, 1875, 448, 13, 14116, 22944, 2318, 628, 220, 220, 220, 1471, 751, 530, 393, 517, 2858, 34111, 25, 198, 220, 220, 220, 220, 220, 220, 220, 569, 1503, 28, 2100, 17365, 198, 220, 220, 220, 220, 220, 220, 220, 1875, 448, 13, 14116, 569, 1503, 28, 2100, 17365, 628, 220, 220, 220, 994, 62, 437, 3691, 29472, 318, 257, 2300, 286, 1771, 356, 1332, 326, 340, 338, 10947, 13, 220, 304, 13, 70, 13, 198, 220, 220, 220, 9959, 4720, 37, 3691, 9959, 6, 4720, 37, 4458, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1255, 796, 2116, 13557, 33351, 26437, 21575, 3419, 198, 220, 220, 220, 18941, 82, 11, 2456, 796, 1255, 628, 220, 220, 220, 611, 407, 2456, 25, 220, 1303, 304, 13, 70, 13, 220, 1875, 448, 13, 14116, 220, 1303, 18941, 1231, 2456, 198, 220, 220, 220, 220, 220, 10139, 796, 3141, 13, 26437, 21575, 3419, 198, 220, 220, 220, 220, 220, 10139, 13, 445, 1060, 82, 796, 18941, 82, 198, 220, 220, 220, 220, 220, 1441, 10139, 628, 220, 220, 220, 3143, 945, 276, 62, 4868, 11, 35488, 62, 10879, 796, 4808, 41205, 26437, 21575, 36698, 844, 7, 10879, 8, 628, 220, 220, 220, 611, 407, 35488, 62, 10879, 25, 220, 1303, 16329, 28, 16, 257, 58, 87, 22241, 16, 35288, 28, 17, 220, 357, 4480, 645, 584, 2456, 8, 198, 220, 220, 220, 220, 220, 611, 18941, 82, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1364, 62, 30001, 11, 4808, 11, 4808, 11, 4808, 796, 3143, 945, 276, 62, 4868, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 11979, 7203, 22289, 16237, 6584, 470, 423, 18941, 82, 1600, 11241, 28, 9464, 62, 30001, 8, 628, 220, 220, 220, 220, 220, 14729, 796, 17635, 198, 220, 220, 220, 220, 220, 329, 3143, 945, 276, 287, 3143, 945, 276, 62, 4868, 25, 198, 220, 220, 220, 220, 220, 220, 220, 14729, 13, 33295, 28264, 12050, 8021, 570, 47, 958, 7, 944, 13, 29572, 62, 49464, 11, 3143, 945, 276, 4008, 628, 220, 220, 220, 220, 220, 10139, 796, 3141, 13, 8021, 16747, 7, 7390, 13, 8021, 570, 62, 14202, 11, 685, 4357, 14729, 8, 198, 220, 220, 220, 220, 220, 1364, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 10879, 58, 15, 12962, 198, 220, 220, 220, 220, 220, 10139, 13, 2777, 2340, 13, 33295, 7, 9464, 62, 2777, 312, 8, 220, 1303, 645, 21179, 599, 312, 284, 14267, 1613, 198, 220, 220, 220, 220, 220, 1441, 10139, 628, 220, 220, 220, 1611, 11, 479, 86, 62, 30001, 796, 1573, 13, 9218, 4775, 30642, 7, 37333, 844, 62, 10879, 58, 15, 12962, 628, 220, 220, 220, 611, 1611, 6624, 14927, 13, 8021, 570, 25, 198, 220, 220, 220, 220, 220, 1303, 3423, 356, 36125, 36, 2100, 35488, 62, 10879, 58, 16, 60, 284, 766, 611, 356, 423, 281, 24994, 16284, 10979, 22240, 6981, 198, 220, 220, 220, 220, 220, 1303, 588, 705, 19199, 316, 532, 79, 3256, 543, 8341, 9633, 1377, 257, 17427, 21575, 2138, 621, 198, 220, 220, 220, 220, 220, 1303, 281, 50144, 13, 198, 220, 220, 220, 220, 220, 1303, 198, 220, 220, 220, 220, 220, 1303, 5740, 356, 821, 407, 9041, 23418, 9701, 588, 705, 19199, 316, 532, 79, 69, 4458, 220, 314, 766, 428, 198, 220, 220, 220, 220, 220, 1303, 287, 27334, 9945, 357, 41757, 49518, 8, 475, 340, 460, 655, 307, 3421, 284, 705, 19199, 316, 532, 79, 198, 220, 220, 220, 220, 220, 1303, 532, 69, 4458, 198, 220, 220, 220, 220, 220, 318, 62, 21812, 796, 10352, 198, 220, 220, 220, 220, 220, 611, 18896, 7, 37333, 844, 62, 10879, 8, 1875, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 12876, 11, 1188, 11, 4808, 796, 1573, 13, 45442, 36, 2100, 7, 37333, 844, 62, 10879, 58, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 611, 12876, 290, 357, 46265, 62, 30001, 13, 312, 11, 1188, 8, 287, 2116, 13557, 10705, 16284, 62, 9858, 10725, 5258, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 21812, 796, 6407, 628, 220, 220, 220, 220, 220, 611, 318, 62, 21812, 25, 220, 1303, 13627, 532, 69, 11, 13627, 532, 79, 11, 3858, 316, 532, 79, 11, 3503, 13, 198, 220, 220, 220, 220, 220, 220, 220, 10139, 796, 4808, 12050, 26437, 21575, 7, 46012, 945, 276, 62, 4868, 11, 35488, 62, 10879, 11, 18941, 82, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 10139, 628, 220, 220, 220, 220, 220, 611, 18941, 82, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 3460, 620, 262, 4049, 4067, 284, 262, 21179, 13, 220, 632, 561, 307, 517, 7141, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 284, 10199, 340, 284, 262, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 11979, 7203, 8021, 570, 902, 6584, 470, 423, 18941, 82, 1600, 11241, 28, 46265, 62, 30001, 8, 628, 220, 220, 220, 220, 220, 611, 3143, 945, 276, 62, 4868, 25, 220, 1303, 376, 6684, 28, 5657, 1957, 18084, 28, 33856, 82, 407, 3142, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 5765, 262, 4067, 286, 262, 717, 1988, 13, 220, 16926, 46, 25, 5765, 262, 2187, 1573, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 878, 26021, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1364, 62, 30001, 11, 4808, 11, 4808, 11, 4808, 796, 3143, 945, 276, 62, 4868, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 11979, 7203, 8021, 570, 902, 6584, 470, 423, 2858, 34111, 1600, 11241, 28, 9464, 62, 30001, 8, 628, 220, 220, 220, 220, 220, 1303, 13627, 965, 11639, 3256, 13627, 532, 64, 7177, 28, 3419, 198, 220, 220, 220, 220, 220, 10139, 796, 4808, 12050, 8021, 16747, 7, 944, 13, 29572, 62, 49464, 11, 479, 86, 62, 30001, 13, 312, 11, 35488, 62, 10879, 8, 198, 220, 220, 220, 220, 220, 10139, 13, 2777, 2340, 13, 33295, 7, 46265, 62, 30001, 13, 12626, 62, 312, 8, 198, 220, 220, 220, 220, 220, 1441, 10139, 628, 220, 220, 220, 611, 1611, 6624, 14927, 13, 15988, 37535, 25, 198, 220, 220, 220, 220, 220, 611, 18941, 82, 25, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 11979, 7203, 15988, 5202, 6584, 470, 423, 18941, 82, 1600, 11241, 28, 46265, 62, 30001, 8, 628, 220, 220, 220, 220, 220, 611, 3143, 945, 276, 62, 4868, 25, 220, 1303, 376, 6684, 28, 5657, 1957, 18084, 28, 33856, 82, 407, 3142, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 16926, 46, 25, 9794, 4067, 355, 2029, 198, 220, 220, 220, 220, 220, 220, 220, 1364, 62, 30001, 11, 4808, 11, 4808, 11, 4808, 796, 3143, 945, 276, 62, 4868, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 11979, 7203, 15988, 5202, 6584, 470, 423, 2858, 34111, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11241, 28, 9464, 62, 30001, 8, 628, 220, 220, 220, 220, 220, 1303, 3460, 620, 262, 11241, 329, 8563, 13, 220, 357, 8021, 16747, 743, 407, 761, 340, 2014, 198, 220, 220, 220, 220, 220, 611, 18896, 7, 37333, 844, 62, 10879, 8, 6624, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1822, 62, 4775, 796, 6045, 198, 220, 220, 220, 220, 220, 1288, 361, 18896, 7, 37333, 844, 62, 10879, 8, 6624, 362, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1822, 62, 4775, 796, 35488, 62, 10879, 58, 16, 60, 198, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 11979, 10786, 52, 42072, 4578, 284, 4064, 81, 3256, 479, 86, 62, 30001, 13, 2100, 11, 1573, 28, 37333, 844, 62, 10879, 58, 17, 12962, 628, 220, 220, 220, 220, 220, 1441, 3141, 13, 15988, 37535, 7, 46265, 62, 30001, 11, 1822, 62, 4775, 8, 628, 220, 220, 220, 1303, 1002, 597, 36383, 547, 12326, 11, 788, 21136, 757, 13, 198, 220, 220, 220, 10139, 796, 2116, 13557, 13300, 16870, 392, 37893, 1386, 7, 37333, 844, 62, 10879, 11, 1090, 62, 7344, 1386, 8, 198, 220, 220, 220, 611, 10139, 25, 198, 220, 220, 220, 220, 220, 1303, 24550, 25, 1318, 389, 584, 3858, 286, 13760, 351, 18941, 82, 13, 220, 2141, 484, 2300, 30, 198, 220, 220, 220, 220, 220, 611, 10139, 13, 12985, 6624, 3141, 62, 68, 13, 26437, 21575, 25, 198, 220, 220, 220, 220, 220, 220, 220, 10139, 13, 445, 1060, 82, 796, 18941, 82, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 4677, 437, 5167, 4834, 85, 7, 46012, 945, 276, 62, 4868, 11, 10139, 13, 3549, 62, 24330, 8, 198, 220, 220, 220, 220, 220, 1441, 10139, 628, 220, 220, 220, 1303, 16926, 46, 2198, 326, 356, 836, 470, 423, 17365, 16, 28, 87, 2124, 58, 16, 22241, 88, 17365, 17, 28, 89, 994, 13, 628, 220, 220, 220, 1303, 376, 6684, 28, 5657, 3601, 24330, 13, 9078, 376, 6684, 198, 220, 220, 220, 10139, 796, 4808, 12050, 26437, 21575, 7, 46012, 945, 276, 62, 4868, 11, 35488, 62, 10879, 11, 18941, 82, 8, 198, 220, 220, 220, 1441, 10139, 628, 220, 825, 2547, 325, 9414, 558, 13247, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 22581, 62, 8094, 220, 220, 220, 220, 220, 1058, 406, 9414, 558, 3141, 62, 4868, 371, 9414, 558, 2162, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1364, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 2116, 13557, 47659, 7, 7390, 13, 43, 270, 62, 43, 9414, 558, 8, 628, 220, 220, 220, 269, 62, 4868, 796, 2116, 13557, 10044, 325, 21575, 8053, 3419, 198, 220, 220, 220, 6818, 269, 62, 4868, 318, 407, 6045, 628, 220, 220, 220, 1303, 1892, 2622, 198, 220, 220, 220, 1303, 3506, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 2116, 13557, 47659, 7, 7390, 13, 43, 270, 62, 49, 9414, 558, 8, 628, 220, 220, 220, 10139, 796, 3141, 13, 9414, 558, 13247, 7, 66, 62, 4868, 13, 17197, 8, 198, 220, 220, 220, 10139, 13, 2777, 2340, 13, 33295, 7, 9464, 62, 2777, 312, 8, 198, 220, 220, 220, 1441, 10139, 628, 220, 825, 2547, 325, 5211, 13247, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 16718, 416, 1114, 10871, 11, 1114, 3109, 1050, 11, 2893, 11, 14303, 13, 220, 10358, 428, 307, 257, 2141, 10139, 30, 628, 220, 220, 220, 466, 62, 8094, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 2141, 3141, 62, 4868, 24429, 2162, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11900, 27967, 3896, 718, 9466, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2116, 13557, 47659, 7, 7390, 13, 42, 54, 62, 5211, 8, 198, 220, 220, 220, 466, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 220, 1303, 706, 4808, 47659, 628, 220, 220, 220, 269, 62, 4868, 796, 2116, 13557, 10044, 325, 21575, 8053, 3419, 220, 1303, 714, 307, 597, 1517, 198, 220, 220, 220, 6818, 269, 62, 4868, 318, 407, 6045, 628, 220, 220, 220, 2116, 13557, 47659, 7, 7390, 13, 42, 54, 62, 45677, 8, 198, 220, 220, 220, 1760, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 220, 1303, 706, 4808, 47659, 628, 220, 220, 220, 10139, 796, 3141, 13, 5211, 13247, 7, 66, 62, 4868, 13, 17197, 8, 198, 220, 220, 220, 10139, 13, 2777, 2340, 13, 2302, 437, 19510, 4598, 62, 2777, 312, 11, 1760, 62, 2777, 312, 4008, 198, 220, 220, 220, 1441, 10139, 628, 220, 825, 2547, 325, 1890, 37117, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 329, 62, 10879, 220, 220, 220, 220, 220, 220, 220, 1058, 370, 12532, 9, 329, 62, 325, 79, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2162, 198, 220, 220, 220, 329, 62, 325, 79, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 705, 26, 6, 649, 1370, 62, 482, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 12682, 34509, 1546, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2162, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2456, 796, 17635, 198, 220, 220, 220, 1303, 383, 11506, 62, 312, 286, 597, 10663, 12, 4033, 261, 11, 523, 356, 460, 4781, 340, 13, 198, 220, 220, 220, 10663, 62, 2777, 312, 796, 1500, 13, 15285, 62, 12394, 7156, 1137, 628, 220, 220, 220, 981, 6407, 25, 198, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 18257, 62, 13900, 72, 25, 198, 220, 220, 220, 220, 220, 220, 220, 10663, 62, 2777, 312, 796, 2116, 13, 22019, 62, 4775, 13, 30001, 13, 12626, 62, 312, 220, 1303, 29130, 26449, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 3791, 1370, 18690, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 198, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 66, 62, 312, 6624, 5121, 13, 18257, 62, 3791, 1370, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 198, 220, 220, 220, 220, 220, 611, 2116, 13, 22019, 62, 4775, 13, 12985, 14512, 1573, 62, 68, 13, 7293, 633, 26449, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 16926, 46, 25, 1680, 356, 635, 905, 257, 17562, 284, 262, 705, 1640, 6, 21179, 30, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 11979, 10786, 44651, 1573, 287, 329, 9052, 3256, 1573, 28, 944, 13, 22019, 62, 4775, 8, 628, 220, 220, 220, 220, 220, 2456, 13, 33295, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 198, 220, 220, 220, 1441, 2456, 11, 10663, 62, 2777, 312, 628, 220, 825, 4808, 10044, 325, 1890, 3109, 1050, 39516, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 329, 14808, 2315, 26, 1779, 26, 4296, 15306, 329, 62, 325, 79, 30, 466, 62, 8094, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 10139, 796, 2116, 13, 86, 62, 48610, 13, 5569, 1890, 16870, 2234, 3419, 198, 220, 220, 220, 6818, 10139, 318, 407, 6045, 198, 220, 220, 220, 2116, 13557, 10019, 3419, 628, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 18257, 62, 13900, 72, 25, 198, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 198, 220, 220, 220, 220, 220, 2116, 13557, 3791, 1370, 18690, 3419, 198, 220, 220, 220, 1288, 361, 2116, 13, 66, 62, 312, 6624, 5121, 13, 18257, 62, 3791, 1370, 25, 198, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 198, 220, 220, 220, 1288, 361, 2116, 13, 66, 62, 312, 6624, 5121, 13, 42, 54, 62, 5211, 25, 220, 1303, 4814, 5026, 27045, 261, 14, 3605, 1370, 3142, 198, 220, 220, 220, 220, 220, 1208, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 279, 62, 11979, 10786, 44651, 1573, 706, 329, 5408, 3256, 1573, 28, 944, 13, 22019, 62, 4775, 8, 628, 220, 220, 220, 1767, 62, 17440, 796, 2116, 13, 10044, 325, 5211, 13247, 3419, 198, 220, 220, 220, 6818, 1767, 62, 17440, 318, 407, 6045, 628, 220, 220, 220, 10139, 13, 2618, 796, 1767, 62, 17440, 198, 220, 220, 220, 1441, 10139, 628, 220, 825, 2547, 325, 1890, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 329, 62, 565, 682, 1058, 1114, 329, 62, 3672, 649, 1370, 62, 482, 357, 259, 329, 62, 10879, 30, 329, 62, 325, 79, 19427, 466, 62, 8094, 2162, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 1114, 29513, 10786, 2644, 16926, 46, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2116, 13557, 47659, 7, 7390, 13, 42, 54, 62, 1890, 8, 628, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 18257, 62, 35, 18819, 47, 5757, 25, 198, 220, 220, 220, 220, 220, 10139, 796, 2116, 13557, 10044, 325, 1890, 3109, 1050, 39516, 3419, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 10139, 796, 2116, 13557, 10044, 325, 1890, 10871, 39516, 3419, 628, 220, 220, 220, 1441, 10139, 628, 220, 825, 2547, 325, 3633, 18273, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 981, 62, 565, 682, 220, 220, 220, 220, 1058, 2893, 3141, 62, 4868, 466, 62, 8094, 2162, 198, 220, 220, 220, 1566, 62, 565, 682, 220, 220, 220, 220, 1058, 14303, 3141, 62, 4868, 466, 62, 8094, 2162, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 21179, 796, 2116, 13, 22019, 62, 4775, 13, 42632, 58, 15, 4083, 30001, 198, 220, 220, 220, 1303, 770, 318, 30169, 416, 262, 24955, 198, 220, 220, 220, 6818, 21179, 13, 312, 287, 357, 7390, 13, 42, 54, 62, 3633, 11, 5121, 13, 42, 54, 62, 18273, 828, 21179, 198, 220, 220, 220, 2116, 13557, 10019, 3419, 220, 1303, 14267, 981, 628, 220, 220, 220, 1779, 62, 17440, 796, 2116, 13557, 10044, 325, 21575, 8053, 3419, 198, 220, 220, 220, 6818, 1779, 62, 17440, 318, 407, 6045, 628, 220, 220, 220, 1767, 62, 17440, 796, 2116, 13, 10044, 325, 5211, 13247, 3419, 198, 220, 220, 220, 6818, 1767, 62, 17440, 318, 407, 6045, 628, 220, 220, 220, 1441, 3141, 13, 3633, 18273, 7, 2539, 4775, 11, 1779, 62, 17440, 13, 17197, 11, 1767, 62, 17440, 8, 628, 220, 825, 2547, 325, 20448, 7449, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1339, 62, 9186, 25, 705, 10786, 30, 3912, 19203, 91, 6, 3912, 27493, 705, 33047, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 649, 1370, 62, 482, 3141, 62, 4354, 30, 12268, 30, 2162, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2116, 13, 2588, 263, 13, 49222, 39, 600, 7, 7390, 13, 18257, 62, 20031, 5757, 11, 5121, 13, 11028, 62, 20448, 12130, 8, 628, 220, 220, 220, 1364, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 18257, 62, 19930, 5757, 25, 198, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 628, 220, 220, 220, 1458, 62, 10879, 796, 17635, 198, 220, 220, 220, 981, 6407, 25, 198, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 220, 220, 1458, 62, 10879, 13, 33295, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 628, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 18257, 62, 47, 3757, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 198, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 628, 220, 220, 220, 374, 11730, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 2116, 13557, 47659, 7, 7390, 13, 11028, 62, 20448, 12130, 8, 198, 220, 220, 220, 2116, 13557, 3791, 1370, 18690, 3419, 628, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 407, 287, 357, 7390, 13, 18257, 62, 5258, 43967, 11, 5121, 13, 42, 54, 62, 23041, 330, 2599, 198, 220, 220, 220, 220, 220, 269, 62, 4868, 796, 2116, 13557, 10044, 325, 21575, 40596, 3419, 198, 220, 220, 220, 220, 220, 6818, 269, 62, 4868, 318, 407, 6045, 198, 220, 220, 220, 220, 220, 2223, 62, 17197, 796, 269, 62, 4868, 13, 17197, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 2223, 62, 17197, 796, 17635, 628, 220, 220, 220, 288, 325, 11632, 62, 2777, 312, 796, 1500, 13, 15285, 62, 12394, 7156, 1137, 198, 220, 220, 220, 938, 62, 2777, 312, 796, 1500, 13, 15285, 62, 12394, 7156, 1137, 198, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 42, 54, 62, 23041, 330, 25, 198, 220, 220, 220, 220, 220, 938, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 1288, 361, 2116, 13, 66, 62, 312, 6624, 5121, 13, 18257, 62, 5258, 43967, 25, 198, 220, 220, 220, 220, 220, 288, 325, 11632, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 1303, 18321, 641, 319, 412, 19238, 198, 220, 220, 220, 220, 220, 279, 62, 11979, 10786, 3109, 7254, 36792, 393, 1658, 330, 3256, 1573, 28, 944, 13, 22019, 62, 4775, 8, 628, 220, 220, 220, 2116, 13557, 3791, 1370, 18690, 3419, 628, 220, 220, 220, 3211, 796, 15582, 62, 292, 25404, 13, 7442, 62, 1670, 7, 8071, 62, 10879, 11, 2223, 62, 17197, 8, 198, 220, 220, 220, 3211, 13, 2777, 2340, 13, 2302, 437, 19510, 9464, 62, 2777, 312, 11, 374, 11730, 62, 2777, 312, 11, 288, 325, 11632, 62, 2777, 312, 11, 938, 62, 2777, 312, 4008, 198, 220, 220, 220, 1441, 3211, 628, 220, 825, 2547, 325, 20448, 8053, 7, 944, 11, 5101, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1339, 62, 4868, 25, 1339, 62, 9186, 357, 5258, 3620, 40, 649, 1370, 62, 482, 1339, 62, 9186, 27493, 17400, 3620, 40, 30, 649, 1370, 62, 482, 26, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 628, 220, 220, 220, 981, 6407, 25, 198, 220, 220, 220, 220, 220, 1303, 1339, 2378, 6140, 351, 257, 3141, 1573, 393, 357, 198, 220, 220, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 42, 54, 62, 23041, 330, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 198, 220, 220, 220, 220, 220, 611, 2116, 13, 66, 62, 11031, 14512, 14927, 13, 26449, 290, 2116, 13, 66, 62, 312, 14512, 5121, 13, 18257, 62, 19930, 5757, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 198, 220, 220, 220, 220, 220, 3211, 796, 2116, 13, 10044, 325, 20448, 7449, 3419, 198, 220, 220, 220, 220, 220, 6818, 3211, 318, 407, 6045, 628, 220, 220, 220, 220, 220, 5101, 13, 33295, 7, 1670, 8, 198, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 220, 220, 1303, 2735, 804, 329, 17400, 3620, 40, 393, 13380, 2246, 628, 220, 825, 2547, 325, 20448, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1339, 62, 565, 682, 220, 220, 220, 220, 220, 1058, 8913, 370, 12532, 649, 1370, 62, 482, 287, 649, 1370, 62, 482, 1339, 62, 4868, 30, 8678, 330, 2162, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1339, 62, 17440, 796, 3141, 13, 20448, 3419, 628, 220, 220, 220, 1339, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 2116, 13557, 10019, 3419, 220, 1303, 14267, 1339, 628, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 1339, 62, 17440, 13, 1462, 62, 15699, 796, 2116, 13, 22019, 62, 4775, 198, 220, 220, 220, 2116, 13557, 10019, 3419, 628, 220, 220, 220, 2116, 13557, 3791, 1370, 18690, 3419, 198, 220, 220, 220, 287, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 2116, 13557, 47659, 7, 7390, 13, 42, 54, 62, 818, 8, 198, 220, 220, 220, 2116, 13557, 3791, 1370, 18690, 3419, 628, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 14512, 5121, 13, 42, 54, 62, 23041, 330, 25, 220, 1303, 6565, 1339, 1351, 198, 220, 220, 220, 220, 220, 2116, 13, 10044, 325, 20448, 8053, 7, 7442, 62, 17440, 13, 8357, 8, 198, 220, 220, 220, 220, 220, 1303, 16926, 46, 25, 815, 340, 1441, 257, 1351, 286, 13760, 11, 290, 9117, 30, 198, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 628, 220, 220, 220, 1658, 330, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 2116, 13557, 47659, 7, 7390, 13, 42, 54, 62, 23041, 330, 8, 198, 220, 220, 220, 2116, 13557, 10019, 3419, 628, 220, 220, 220, 1339, 62, 17440, 13, 2777, 2340, 13, 2302, 437, 19510, 7442, 62, 2777, 312, 11, 287, 62, 2777, 312, 11, 1658, 330, 62, 2777, 312, 4008, 198, 220, 220, 220, 1441, 1339, 62, 17440, 628, 220, 825, 4808, 10044, 325, 9527, 361, 40674, 7, 944, 11, 611, 62, 17440, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2073, 62, 3911, 25, 357, 9527, 361, 3141, 62, 4868, 3244, 3141, 62, 4868, 27493, 25974, 3141, 62, 4868, 2162, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5101, 796, 611, 62, 17440, 13, 8357, 628, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 981, 2116, 13, 66, 62, 312, 6624, 5121, 13, 42, 54, 62, 9527, 361, 25, 198, 220, 220, 220, 220, 220, 1288, 361, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 628, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 220, 1303, 14267, 1288, 361, 198, 220, 220, 220, 220, 220, 1779, 796, 2116, 13557, 10044, 325, 21575, 8053, 3419, 198, 220, 220, 220, 220, 220, 6818, 1779, 318, 407, 6045, 628, 220, 220, 220, 220, 220, 788, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 220, 220, 2116, 13557, 47659, 7, 7390, 13, 42, 54, 62, 6423, 8, 628, 220, 220, 220, 220, 220, 1767, 796, 2116, 13557, 10044, 325, 21575, 8053, 3419, 198, 220, 220, 220, 220, 220, 6818, 1767, 318, 407, 6045, 628, 220, 220, 220, 220, 220, 3211, 796, 15582, 62, 292, 25404, 13, 361, 62, 1670, 7, 17561, 13, 17197, 11, 1767, 13, 17197, 8, 198, 220, 220, 220, 220, 220, 3211, 13, 2777, 2340, 13, 2302, 437, 19510, 417, 361, 62, 2777, 312, 11, 788, 62, 2777, 312, 4008, 198, 220, 220, 220, 220, 220, 5101, 13, 33295, 7, 1670, 8, 628, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 42, 54, 62, 40674, 25, 198, 220, 220, 220, 220, 220, 2073, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 198, 220, 220, 220, 220, 220, 1767, 796, 2116, 13557, 10044, 325, 21575, 8053, 3419, 198, 220, 220, 220, 220, 220, 6818, 1767, 318, 407, 6045, 198, 220, 220, 220, 220, 220, 611, 62, 17440, 13, 17772, 62, 2673, 796, 1767, 13, 17197, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 2073, 62, 2777, 312, 796, 1500, 13, 15285, 62, 12394, 7156, 1137, 628, 220, 220, 220, 611, 62, 17440, 13, 2777, 2340, 13, 33295, 7, 17772, 62, 2777, 312, 8, 628, 220, 825, 2547, 325, 1532, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 611, 62, 565, 682, 220, 220, 220, 220, 220, 220, 220, 1058, 1002, 3141, 62, 4868, 3244, 3141, 62, 4868, 2073, 62, 3911, 30, 23238, 2162, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 611, 62, 17440, 796, 3141, 13, 1532, 3419, 198, 220, 220, 220, 2116, 13557, 10019, 3419, 220, 1303, 14267, 611, 628, 220, 220, 220, 1779, 796, 2116, 13557, 10044, 325, 21575, 8053, 3419, 198, 220, 220, 220, 6818, 1779, 318, 407, 6045, 628, 220, 220, 220, 788, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 2116, 13557, 47659, 7, 7390, 13, 42, 54, 62, 6423, 8, 628, 220, 220, 220, 1767, 796, 2116, 13557, 10044, 325, 21575, 8053, 3419, 198, 220, 220, 220, 6818, 1767, 318, 407, 6045, 628, 220, 220, 220, 3211, 796, 15582, 62, 292, 25404, 13, 361, 62, 1670, 7, 17561, 13, 17197, 11, 1767, 13, 17197, 8, 198, 220, 220, 220, 3211, 13, 2777, 2340, 13, 2302, 437, 19510, 9979, 13, 15285, 62, 12394, 7156, 1137, 11, 788, 62, 2777, 312, 4008, 220, 1303, 645, 611, 599, 312, 379, 717, 30, 198, 220, 220, 220, 611, 62, 17440, 13, 8357, 13, 33295, 7, 1670, 8, 628, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 287, 357, 7390, 13, 42, 54, 62, 9527, 361, 11, 5121, 13, 42, 54, 62, 40674, 2599, 198, 220, 220, 220, 220, 220, 2116, 13557, 10044, 325, 9527, 361, 40674, 7, 361, 62, 17440, 8, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 611, 62, 17440, 13, 2777, 2340, 13, 33295, 7, 9979, 13, 15285, 62, 12394, 7156, 1137, 8, 220, 1303, 645, 2073, 599, 312, 628, 220, 220, 220, 25912, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 2116, 13557, 47659, 7, 7390, 13, 42, 54, 62, 10547, 8, 628, 220, 220, 220, 611, 62, 17440, 13, 2777, 2340, 13, 33295, 7, 12463, 62, 2777, 312, 8, 198, 220, 220, 220, 1441, 611, 62, 17440, 628, 220, 825, 2547, 325, 7575, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 640, 25915, 79, 60, 11523, 628, 220, 220, 220, 4784, 284, 27334, 1037, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2116, 13557, 10019, 3419, 220, 1303, 14267, 640, 628, 220, 220, 220, 11523, 796, 2116, 13, 10044, 325, 47, 541, 4470, 3419, 198, 220, 220, 220, 6818, 11523, 318, 407, 6045, 198, 220, 220, 220, 1441, 3141, 13, 7575, 12235, 7, 79, 541, 4470, 8, 628, 220, 825, 2547, 325, 7293, 633, 21575, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 13061, 62, 21812, 1058, 22581, 62, 8094, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 6352, 12758, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 329, 62, 565, 682, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 981, 62, 565, 682, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 1566, 62, 565, 682, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 611, 62, 565, 682, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 1339, 62, 565, 682, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 640, 62, 565, 682, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 16410, 347, 970, 3109, 1050, 2361, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 14808, 943, 342, 3109, 1050, 15306, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2162, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 43, 270, 62, 43, 9414, 558, 25, 198, 220, 220, 220, 220, 220, 1441, 2116, 13, 10044, 325, 9414, 558, 13247, 3419, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 18257, 62, 19930, 5757, 25, 198, 220, 220, 220, 220, 220, 1441, 2116, 13, 10044, 325, 7004, 29149, 3419, 628, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 42, 54, 62, 1890, 25, 198, 220, 220, 220, 220, 220, 1441, 2116, 13, 10044, 325, 1890, 3419, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 287, 357, 7390, 13, 42, 54, 62, 3633, 11, 5121, 13, 42, 54, 62, 18273, 2599, 198, 220, 220, 220, 220, 220, 1441, 2116, 13, 10044, 325, 3633, 18273, 3419, 628, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 42, 54, 62, 1532, 25, 198, 220, 220, 220, 220, 220, 1441, 2116, 13, 10044, 325, 1532, 3419, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 42, 54, 62, 20448, 25, 198, 220, 220, 220, 220, 220, 1441, 2116, 13, 10044, 325, 20448, 3419, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 42, 54, 62, 7575, 25, 198, 220, 220, 220, 220, 220, 1441, 2116, 13, 10044, 325, 7575, 3419, 628, 220, 220, 220, 1303, 17934, 286, 18941, 326, 318, 42550, 25, 198, 220, 220, 220, 1303, 720, 14808, 29568, 30328, 530, 352, 29, 5, 17, 26, 9809, 362, 8, 1875, 657, 15306, 362, 29, 503, 13, 14116, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 42, 54, 62, 35, 18819, 9414, 8317, 25, 198, 220, 220, 220, 220, 220, 1441, 2116, 13, 10044, 325, 35, 9414, 8317, 3419, 628, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 18257, 62, 35, 18819, 47, 5757, 25, 198, 220, 220, 220, 220, 220, 1441, 2116, 13, 10044, 325, 6322, 5757, 3419, 628, 220, 220, 220, 1303, 770, 1239, 4325, 30, 198, 220, 220, 220, 279, 62, 11979, 10786, 52, 42072, 1573, 981, 32096, 13061, 3141, 3256, 1573, 28, 944, 13, 22019, 62, 4775, 8, 628, 220, 825, 2547, 325, 22203, 25842, 7, 944, 11, 25439, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2163, 62, 2618, 220, 220, 220, 1058, 13061, 62, 21812, 33245, 62, 445, 1060, 9, 2162, 11900, 27967, 3896, 860, 9466, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1767, 796, 2116, 13, 10044, 325, 7293, 633, 21575, 3419, 198, 220, 220, 220, 6818, 1767, 318, 407, 6045, 628, 220, 220, 220, 18941, 82, 796, 2116, 13557, 10044, 325, 7738, 1060, 8053, 3419, 198, 220, 220, 220, 6818, 18941, 82, 318, 407, 6045, 628, 220, 220, 220, 25439, 13, 2618, 796, 1767, 198, 220, 220, 220, 25439, 13, 445, 1060, 82, 796, 18941, 82, 628, 220, 825, 2547, 325, 22203, 7469, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2163, 62, 25677, 1058, 277, 3672, 705, 10786, 705, 33047, 198, 220, 220, 220, 2163, 62, 4299, 220, 220, 220, 220, 1058, 2163, 62, 25677, 649, 1370, 62, 482, 2163, 62, 2618, 2162, 628, 220, 220, 220, 3771, 31448, 25, 15616, 379, 262, 2163, 1438, 13, 198, 220, 220, 220, 2947, 4006, 25, 628, 220, 220, 220, 24550, 25, 1318, 318, 281, 33985, 351, 25, 628, 220, 220, 220, 2163, 22944, 357, 9809, 23105, 1267, 290, 198, 220, 220, 220, 2163, 22944, 7499, 357, 9809, 23105, 1267, 628, 220, 220, 220, 15743, 691, 18178, 262, 6846, 11, 996, 340, 1595, 470, 1107, 1061, 257, 23491, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1364, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 628, 220, 220, 220, 12876, 11, 1438, 796, 1573, 13, 1722, 37, 19524, 5376, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 611, 407, 12876, 25, 198, 220, 220, 220, 220, 220, 279, 62, 11979, 10786, 44651, 2163, 1438, 3256, 1573, 28, 944, 13, 22019, 62, 4775, 8, 628, 220, 220, 220, 2116, 13557, 10019, 3419, 220, 1303, 14267, 2163, 1438, 628, 220, 220, 220, 1303, 12039, 307, 2081, 307, 330, 1904, 286, 804, 38204, 198, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 6818, 2116, 13, 66, 62, 312, 6624, 5121, 13, 18257, 62, 19930, 5757, 11, 2116, 13, 22019, 62, 4775, 628, 220, 220, 220, 2116, 13, 2588, 263, 13, 49222, 39, 600, 7, 7390, 13, 18257, 62, 20031, 5757, 11, 5121, 13, 11028, 62, 37, 19524, 7469, 8, 198, 220, 220, 220, 2116, 13557, 10019, 3419, 628, 220, 220, 220, 2116, 13557, 47659, 7, 7390, 13, 11028, 62, 37, 19524, 7469, 8, 198, 220, 220, 220, 706, 62, 3672, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 1343, 352, 628, 220, 220, 220, 2116, 13557, 3791, 1370, 18690, 3419, 628, 220, 220, 220, 25439, 796, 3141, 13, 37, 19524, 7469, 3419, 198, 220, 220, 220, 25439, 13, 3672, 796, 1438, 628, 220, 220, 220, 2116, 13, 10044, 325, 22203, 25842, 7, 20786, 8, 628, 220, 220, 220, 25439, 13, 2777, 2340, 13, 33295, 7, 9464, 62, 2777, 312, 8, 198, 220, 220, 220, 25439, 13, 2777, 2340, 13, 33295, 7, 8499, 62, 3672, 62, 2777, 312, 8, 198, 220, 220, 220, 1441, 25439, 628, 220, 825, 2547, 325, 42, 1477, 22203, 7469, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 479, 1477, 62, 8818, 62, 4299, 1058, 705, 8818, 6, 277, 3672, 357, 705, 10786, 705, 33047, 1267, 30, 649, 1370, 62, 482, 2163, 62, 2618, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1364, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 628, 220, 220, 220, 2116, 13557, 10019, 3419, 220, 1303, 14267, 1613, 705, 8818, 6, 628, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 12876, 11, 1438, 796, 1573, 13, 1722, 37, 19524, 5376, 7, 944, 13, 22019, 62, 4775, 8, 198, 220, 220, 220, 611, 407, 12876, 25, 198, 220, 220, 220, 220, 220, 279, 62, 11979, 10786, 44651, 509, 9693, 12, 7635, 2163, 1438, 3256, 1573, 28, 944, 13, 22019, 62, 4775, 8, 628, 220, 220, 220, 706, 62, 3672, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 1343, 352, 198, 220, 220, 220, 2116, 13557, 10019, 3419, 220, 1303, 14267, 1613, 705, 8818, 1438, 628, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 18257, 62, 19930, 5757, 25, 198, 220, 220, 220, 220, 220, 2116, 13, 2588, 263, 13, 49222, 39, 600, 7, 7390, 13, 18257, 62, 20031, 5757, 11, 5121, 13, 11028, 62, 37, 19524, 7469, 8, 198, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 198, 220, 220, 220, 220, 220, 2116, 13557, 47659, 7, 7390, 13, 11028, 62, 37, 19524, 7469, 8, 198, 220, 220, 220, 220, 220, 1303, 9794, 340, 25, 706, 1267, 198, 220, 220, 220, 220, 220, 706, 62, 3672, 62, 2777, 312, 796, 1573, 13, 18819, 6943, 4561, 272, 1890, 26449, 7, 944, 13, 22019, 62, 4775, 8, 1343, 352, 628, 220, 220, 220, 2116, 13557, 3791, 1370, 18690, 3419, 628, 220, 220, 220, 25439, 796, 3141, 13, 37, 19524, 7469, 3419, 198, 220, 220, 220, 25439, 13, 3672, 796, 1438, 628, 220, 220, 220, 2116, 13, 10044, 325, 22203, 25842, 7, 20786, 8, 628, 220, 220, 220, 25439, 13, 2777, 2340, 13, 33295, 7, 9464, 62, 2777, 312, 8, 198, 220, 220, 220, 25439, 13, 2777, 2340, 13, 33295, 7, 8499, 62, 3672, 62, 2777, 312, 8, 198, 220, 220, 220, 1441, 25439, 628, 220, 825, 2547, 325, 13379, 12204, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 16926, 46, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5298, 1892, 3546, 1154, 12061, 12331, 628, 220, 825, 2547, 325, 35, 9414, 8317, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 6251, 262, 10238, 1573, 30751, 572, 284, 262, 25131, 5408, 30751, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3863, 62, 18224, 62, 4775, 796, 2116, 13, 22019, 62, 4775, 198, 220, 220, 220, 1303, 16926, 46, 25, 6208, 14333, 13, 220, 9170, 9605, 2361, 4357, 345, 815, 651, 1875, 6152, 198, 220, 220, 220, 1303, 357, 3705, 17, 8, 628, 220, 220, 220, 2116, 13557, 10019, 3419, 220, 1303, 14267, 16410, 198, 220, 220, 220, 275, 62, 48610, 796, 20512, 62, 29572, 13, 33, 970, 46677, 7, 944, 13, 86, 62, 48610, 8, 198, 220, 220, 220, 275, 17440, 796, 275, 62, 48610, 13, 10044, 325, 3419, 220, 1303, 1737, 5298, 198, 220, 220, 220, 1441, 3141, 13, 35, 9414, 8317, 7, 9374, 1098, 8, 628, 220, 825, 2547, 325, 21575, 7, 944, 11, 1090, 62, 7344, 1386, 28, 14202, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3141, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 2829, 62, 21812, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 13061, 62, 21812, 33245, 62, 445, 1060, 9, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 2163, 62, 4299, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 479, 1477, 62, 8818, 62, 4299, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2162, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1090, 62, 7344, 1386, 796, 1090, 62, 7344, 1386, 393, 17635, 628, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 628, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 287, 5626, 62, 39776, 2257, 62, 45359, 5258, 25, 198, 220, 220, 220, 220, 220, 279, 62, 11979, 10786, 52, 42072, 1573, 618, 32096, 3141, 3256, 1573, 28, 944, 13, 22019, 62, 4775, 8, 628, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 42, 54, 62, 22203, 25, 198, 220, 220, 220, 220, 220, 1441, 2116, 13, 10044, 325, 42, 1477, 22203, 7469, 3419, 628, 220, 220, 220, 1303, 24550, 25, 775, 815, 423, 1194, 14927, 329, 366, 36733, 26286, 1911, 220, 843, 788, 198, 220, 220, 220, 1303, 5626, 62, 39776, 2257, 62, 45359, 5258, 389, 366, 38238, 26286, 1911, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 287, 357, 198, 220, 220, 220, 220, 220, 220, 220, 5121, 13, 42, 54, 62, 35, 18819, 9414, 8317, 11, 5121, 13, 18257, 62, 35, 18819, 47, 5757, 11, 5121, 13, 18257, 62, 19930, 5757, 11, 5121, 13, 43, 270, 62, 43, 9414, 558, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5121, 13, 42, 54, 62, 1890, 11, 5121, 13, 42, 54, 62, 3633, 11, 5121, 13, 42, 54, 62, 18273, 11, 5121, 13, 42, 54, 62, 1532, 11, 5121, 13, 42, 54, 62, 20448, 11, 5121, 13, 42, 54, 62, 7575, 2599, 198, 220, 220, 220, 220, 220, 10139, 796, 2116, 13, 10044, 325, 7293, 633, 21575, 3419, 198, 220, 220, 220, 220, 220, 6818, 10139, 318, 407, 6045, 198, 220, 220, 220, 220, 220, 611, 10139, 13, 12985, 14512, 3141, 62, 68, 13, 7575, 12235, 25, 220, 1303, 383, 691, 530, 1231, 18941, 82, 198, 220, 220, 220, 220, 220, 220, 220, 10139, 13, 445, 1060, 82, 796, 2116, 13557, 10044, 325, 7738, 1060, 8053, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 10139, 13, 445, 1060, 82, 318, 407, 6045, 198, 220, 220, 220, 220, 220, 1441, 10139, 628, 220, 220, 220, 1303, 24550, 25, 314, 2087, 428, 284, 4259, 2663, 287, 21136, 12, 48277, 13, 9288, 13, 1477, 11, 475, 340, 1595, 470, 198, 220, 220, 220, 1303, 670, 780, 25659, 62, 49, 9414, 558, 318, 287, 23578, 62, 45849, 2174, 13, 628, 220, 220, 220, 1303, 16926, 46, 25, 509, 54, 62, 5211, 318, 635, 12515, 994, 13, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 43, 270, 62, 49, 9414, 558, 25, 198, 220, 220, 220, 220, 220, 279, 62, 11979, 10786, 52, 42072, 826, 22581, 3256, 1573, 28, 944, 13, 22019, 62, 4775, 8, 628, 220, 220, 220, 611, 2116, 13, 66, 62, 11031, 6624, 14927, 13, 7738, 343, 25, 220, 1303, 43225, 18941, 198, 220, 220, 220, 220, 220, 1441, 2116, 13, 10044, 325, 26437, 21575, 7, 22019, 62, 7344, 1386, 8, 628, 220, 220, 220, 611, 2116, 13, 66, 62, 11031, 6624, 14927, 13, 26449, 25, 198, 220, 220, 220, 220, 220, 611, 357, 944, 13, 86, 62, 48610, 13, 8567, 32, 2256, 3419, 6624, 5121, 13, 18257, 62, 19930, 5757, 290, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 407, 1573, 13, 3792, 19852, 7594, 7, 944, 13, 22019, 62, 4775, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 10044, 325, 22203, 7469, 3419, 220, 1303, 277, 3419, 1391, 9809, 26, 1782, 220, 1303, 2163, 198, 220, 220, 220, 220, 220, 1303, 9809, 22944, 198, 220, 220, 220, 220, 220, 1303, 277, 16193, 64, 275, 269, 8, 220, 1303, 7177, 198, 220, 220, 220, 220, 220, 1303, 7177, 58, 16, 10, 17, 60, 47932, 16, 198, 220, 220, 220, 220, 220, 1441, 2116, 13, 10044, 325, 26437, 21575, 7, 22019, 62, 7344, 1386, 8, 628, 220, 220, 220, 611, 2116, 13, 66, 62, 11031, 6624, 14927, 13, 36, 1659, 25, 198, 220, 220, 220, 220, 220, 279, 62, 11979, 7203, 52, 42072, 412, 19238, 981, 32096, 3141, 1600, 1573, 28, 944, 13, 22019, 62, 4775, 8, 628, 220, 220, 220, 1303, 304, 13, 70, 13, 1267, 198, 220, 220, 220, 279, 62, 11979, 7203, 44651, 1573, 981, 32096, 3141, 1600, 1573, 28, 944, 13, 22019, 62, 4775, 8, 628, 220, 825, 2547, 325, 47, 541, 4470, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11523, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 9801, 30, 3141, 357, 705, 91, 6, 649, 1370, 62, 482, 3141, 1267, 9, 2162, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2469, 515, 796, 10352, 628, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 42, 54, 62, 43984, 25, 198, 220, 220, 220, 220, 220, 2469, 515, 796, 6407, 198, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 628, 220, 220, 220, 1200, 796, 2116, 13, 10044, 325, 21575, 3419, 198, 220, 220, 220, 6818, 1200, 318, 407, 6045, 628, 220, 220, 220, 1751, 796, 685, 9410, 60, 628, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 407, 287, 357, 7390, 13, 18257, 62, 47, 3757, 11, 5121, 13, 18257, 62, 47, 3757, 32, 3149, 2599, 198, 220, 220, 220, 220, 220, 611, 2469, 515, 25, 198, 220, 220, 220, 220, 220, 220, 220, 10139, 796, 3141, 13, 47, 541, 4470, 7, 17197, 11, 2469, 515, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 10139, 198, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 1200, 628, 220, 220, 220, 12656, 62, 9630, 796, 657, 198, 220, 220, 220, 336, 1082, 81, 62, 521, 1063, 796, 17635, 628, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 18257, 62, 47, 3757, 32, 3149, 25, 198, 220, 220, 220, 220, 220, 336, 1082, 81, 62, 521, 1063, 13, 33295, 7, 34360, 62, 9630, 8, 198, 220, 220, 220, 12656, 62, 9630, 15853, 352, 628, 220, 220, 220, 981, 6407, 25, 198, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 220, 1303, 14267, 1613, 5121, 13, 18257, 62, 47, 3757, 393, 5121, 13, 18257, 62, 47, 3757, 32, 3149, 628, 220, 220, 220, 220, 220, 2116, 13557, 3791, 1370, 18690, 3419, 628, 220, 220, 220, 220, 220, 1200, 796, 2116, 13, 10044, 325, 21575, 3419, 198, 220, 220, 220, 220, 220, 6818, 1200, 318, 407, 6045, 198, 220, 220, 220, 220, 220, 1751, 13, 33295, 7, 9410, 8, 628, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 407, 287, 357, 7390, 13, 18257, 62, 47, 3757, 11, 5121, 13, 18257, 62, 47, 3757, 32, 3149, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 628, 220, 220, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 18257, 62, 47, 3757, 32, 3149, 25, 198, 220, 220, 220, 220, 220, 220, 220, 336, 1082, 81, 62, 521, 1063, 13, 33295, 7, 34360, 62, 9630, 8, 198, 220, 220, 220, 220, 220, 12656, 62, 9630, 15853, 352, 628, 220, 220, 220, 10139, 796, 3141, 13, 47, 541, 4470, 7, 17197, 11, 2469, 515, 8, 198, 220, 220, 220, 10139, 13, 301, 1082, 81, 62, 521, 1063, 796, 336, 1082, 81, 62, 521, 1063, 198, 220, 220, 220, 1441, 10139, 628, 220, 825, 2547, 325, 1870, 5574, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 290, 62, 273, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 290, 62, 273, 357, 5357, 62, 5064, 930, 6375, 62, 5064, 1267, 649, 1370, 62, 482, 11523, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 11523, 628, 220, 220, 220, 5740, 326, 340, 318, 1364, 45115, 290, 1364, 2570, 876, 13, 220, 775, 21136, 340, 198, 220, 220, 220, 11629, 9404, 351, 257, 11241, 286, 804, 38204, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1200, 796, 2116, 13, 10044, 325, 47, 541, 4470, 3419, 198, 220, 220, 220, 6818, 1200, 318, 407, 6045, 628, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 407, 287, 357, 7390, 13, 18257, 62, 6322, 3757, 11, 5121, 13, 18257, 62, 5631, 3149, 2599, 198, 220, 220, 220, 220, 220, 1441, 1200, 628, 220, 220, 220, 39628, 796, 17635, 198, 220, 220, 220, 1751, 796, 685, 9410, 60, 628, 220, 220, 220, 981, 6407, 25, 198, 220, 220, 220, 220, 220, 39628, 13, 33295, 7, 944, 13, 66, 62, 312, 8, 628, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 220, 1303, 14267, 1613, 8614, 11405, 198, 220, 220, 220, 220, 220, 2116, 13557, 3791, 1370, 18690, 3419, 628, 220, 220, 220, 220, 220, 1200, 796, 2116, 13, 10044, 325, 47, 541, 4470, 3419, 198, 220, 220, 220, 220, 220, 6818, 1200, 318, 407, 6045, 628, 220, 220, 220, 220, 220, 1751, 13, 33295, 7, 9410, 8, 628, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 407, 287, 357, 7390, 13, 18257, 62, 6322, 3757, 11, 5121, 13, 18257, 62, 5631, 3149, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 628, 220, 220, 220, 10139, 796, 3141, 13, 1870, 5574, 7, 2840, 11, 1751, 8, 198, 220, 220, 220, 1441, 10139, 628, 220, 1303, 24550, 25, 4808, 10044, 325, 21575, 13949, 290, 4808, 10044, 325, 21575, 40596, 389, 2092, 11, 475, 1180, 13, 628, 220, 1303, 1629, 262, 1353, 1241, 11, 775, 765, 284, 12260, 706, 790, 1627, 25, 198, 220, 1303, 532, 284, 1429, 16144, 198, 220, 1303, 532, 284, 1429, 705, 37023, 3256, 780, 12515, 15582, 1244, 1656, 706, 340, 628, 220, 1303, 887, 329, 910, 257, 981, 9052, 1767, 11, 356, 765, 284, 21136, 262, 2187, 1517, 379, 1752, 11, 290, 198, 220, 1303, 788, 12260, 340, 13, 220, 775, 836, 470, 765, 284, 21136, 340, 625, 290, 625, 757, 0, 628, 220, 1303, 24301, 12203, 198, 220, 1303, 3141, 62, 1370, 220, 220, 220, 220, 1058, 290, 62, 273, 357, 27261, 62, 404, 290, 62, 273, 27493, 12268, 30, 2162, 220, 220, 1303, 28662, 49277, 198, 220, 1303, 3141, 62, 4354, 220, 220, 220, 220, 1058, 290, 62, 273, 357, 9535, 5329, 290, 62, 273, 27493, 2162, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 5870, 4146, 7707, 1677, 628, 220, 825, 4808, 10044, 325, 21575, 13949, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3141, 62, 1370, 220, 220, 220, 220, 1058, 290, 62, 273, 357, 27261, 62, 404, 290, 62, 273, 27493, 12268, 30, 2162, 198, 220, 220, 220, 12268, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 17510, 62, 404, 649, 1370, 62, 482, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 12682, 34509, 1546, 26, 198, 220, 220, 220, 17510, 62, 404, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 705, 5, 6, 930, 705, 26, 17020, 628, 220, 220, 220, 24550, 25, 770, 3896, 5640, 27140, 7, 74, 1875, 352, 8, 4069, 13, 220, 775, 561, 423, 284, 27185, 284, 766, 611, 198, 220, 220, 220, 612, 318, 1194, 3141, 1573, 706, 262, 17510, 1034, 13, 628, 220, 220, 220, 887, 340, 338, 4577, 284, 4911, 11071, 9404, 13, 220, 2141, 262, 1708, 287, 257, 9052, 25, 198, 220, 220, 220, 352, 13, 2547, 325, 1870, 5574, 198, 220, 220, 220, 362, 13, 2631, 988, 13, 198, 220, 220, 220, 220, 220, 220, 257, 13, 1002, 612, 338, 257, 649, 1370, 11, 788, 1441, 13, 220, 357, 1135, 821, 691, 32096, 257, 2060, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1627, 2014, 198, 220, 220, 220, 220, 220, 220, 275, 13, 1002, 612, 338, 257, 17510, 62, 404, 11, 1429, 340, 13, 220, 3244, 804, 329, 257, 649, 1370, 290, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 13, 220, 15323, 11, 21136, 1194, 843, 5574, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 24550, 25, 770, 318, 4622, 1180, 621, 23578, 62, 45849, 287, 4808, 10044, 325, 21575, 40596, 11, 290, 198, 220, 220, 220, 1303, 12716, 6454, 512, 39158, 13, 198, 220, 220, 220, 23578, 62, 45849, 796, 357, 7390, 13, 18257, 62, 3791, 1370, 11, 5121, 13, 36, 1659, 62, 15633, 11, 5121, 13, 18257, 62, 20031, 5757, 8, 628, 220, 220, 220, 1751, 796, 17635, 198, 220, 220, 220, 1760, 796, 10352, 198, 220, 220, 220, 981, 407, 1760, 25, 198, 220, 220, 220, 220, 220, 1200, 796, 2116, 13, 10044, 325, 1870, 5574, 3419, 198, 220, 220, 220, 220, 220, 6818, 1200, 318, 407, 6045, 628, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 287, 357, 7390, 13, 18257, 62, 13900, 72, 11, 5121, 13, 18257, 62, 32, 3149, 2599, 220, 1303, 635, 5121, 13, 18257, 62, 32, 3149, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1200, 796, 3141, 13, 31837, 594, 7, 9410, 11, 2116, 13, 22019, 62, 4775, 13, 30001, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 287, 23578, 62, 45849, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1760, 796, 6407, 628, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 66, 62, 312, 287, 23578, 62, 45849, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1760, 796, 6407, 628, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 304, 13, 70, 13, 9809, 257, 7, 65, 8, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 11979, 10786, 52, 42072, 1573, 981, 32096, 3141, 1627, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1573, 28, 944, 13, 22019, 62, 4775, 8, 628, 220, 220, 220, 220, 220, 1751, 13, 33295, 7, 9410, 8, 628, 220, 220, 220, 1303, 45157, 1958, 262, 29273, 13, 198, 220, 220, 220, 611, 18896, 7, 17197, 8, 1875, 352, 25, 198, 220, 220, 220, 220, 220, 1441, 3141, 13, 21575, 8053, 7, 17197, 8, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 1441, 1751, 58, 15, 60, 628, 220, 825, 4808, 10044, 325, 21575, 40596, 7, 944, 2599, 198, 220, 220, 220, 13538, 15931, 198, 220, 220, 220, 3141, 62, 4354, 220, 220, 220, 220, 1058, 290, 62, 273, 357, 9535, 5329, 290, 62, 273, 27493, 2162, 198, 220, 220, 220, 12268, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 17510, 62, 404, 649, 1370, 62, 482, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 12682, 34509, 1546, 26, 198, 220, 220, 220, 17510, 62, 404, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 705, 5, 6, 930, 705, 26, 17020, 628, 220, 220, 220, 770, 318, 12118, 287, 23602, 3918, 11, 588, 4808, 10044, 325, 21575, 13949, 13, 198, 220, 220, 220, 34099, 416, 4808, 10044, 325, 21575, 8053, 329, 477, 7021, 11, 290, 635, 329, 2547, 325, 20448, 7449, 11, 198, 220, 220, 220, 543, 318, 4622, 1180, 13, 220, 357, 37181, 30, 220, 1148, 340, 262, 17400, 3620, 40, 10091, 628, 220, 220, 220, 16409, 25, 198, 220, 220, 220, 220, 220, 15582, 62, 292, 25404, 13, 21812, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 29130, 3858, 326, 481, 886, 262, 3141, 3381, 13, 198, 220, 220, 220, 23578, 62, 45849, 796, 357, 944, 13, 68, 1659, 62, 312, 11, 5121, 13, 11028, 62, 7004, 29149, 11, 5121, 13, 43, 270, 62, 49, 9414, 558, 11, 5121, 13, 18257, 62, 5258, 43967, 8, 628, 220, 220, 220, 1303, 24550, 25, 770, 318, 2092, 284, 4808, 10044, 325, 21575, 13949, 13, 198, 220, 220, 220, 1303, 198, 220, 220, 220, 1303, 532, 4162, 3588, 470, 356, 1804, 23578, 62, 45849, 287, 4808, 10044, 325, 21575, 13949, 30, 198, 220, 220, 220, 1303, 220, 220, 532, 4362, 345, 481, 1239, 307, 2641, 720, 3419, 379, 262, 1353, 1241, 13, 198, 220, 220, 220, 1303, 220, 220, 532, 775, 635, 760, 340, 481, 886, 287, 257, 649, 1370, 13, 220, 632, 460, 470, 886, 287, 366, 12463, 40484, 198, 220, 220, 220, 1303, 220, 220, 532, 1672, 25, 611, 2081, 26, 788, 1391, 9809, 23105, 26, 1782, 25912, 628, 220, 220, 220, 1751, 796, 17635, 198, 220, 220, 220, 1760, 796, 10352, 198, 220, 220, 220, 981, 407, 1760, 25, 198, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 628, 220, 220, 220, 220, 220, 1303, 4042, 26286, 389, 4938, 366, 11085, 2456, 1911, 220, 887, 466, 14, 28060, 14, 8524, 466, 407, 347, 43312, 198, 220, 220, 220, 220, 220, 1303, 9729, 11, 523, 484, 389, 407, 4938, 13, 198, 220, 220, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 287, 5626, 62, 39776, 2257, 62, 45359, 5258, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 628, 220, 220, 220, 220, 220, 1200, 796, 2116, 13, 10044, 325, 1870, 5574, 3419, 198, 220, 220, 220, 220, 220, 6818, 1200, 318, 407, 6045, 628, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 18257, 62, 3791, 1370, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 287, 23578, 62, 45849, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1760, 796, 6407, 628, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 66, 62, 312, 287, 357, 7390, 13, 18257, 62, 13900, 72, 11, 5121, 13, 18257, 62, 32, 3149, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1200, 796, 3141, 13, 31837, 594, 7, 9410, 11, 2116, 13, 22019, 62, 4775, 13, 30001, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 18257, 62, 3791, 1370, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 10019, 3419, 220, 1303, 14267, 625, 649, 1370, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 6208, 611, 356, 815, 1394, 1016, 13, 220, 1318, 1244, 307, 1194, 3141, 706, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 262, 10663, 290, 649, 1370, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 287, 23578, 62, 45849, 25, 220, 1303, 3467, 77, 412, 19238, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1760, 796, 6407, 628, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 66, 62, 312, 287, 23578, 62, 45849, 25, 220, 1303, 2162, 412, 19238, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1760, 796, 6407, 628, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 66, 62, 312, 287, 23578, 62, 45849, 25, 220, 1303, 412, 19238, 198, 220, 220, 220, 220, 220, 220, 220, 1760, 796, 6407, 628, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 220, 1303, 304, 13, 70, 13, 366, 92, 1760, 1600, 366, 12463, 25912, 1600, 366, 8, 25912, 1600, 3503, 13, 318, 7477, 628, 220, 220, 220, 220, 220, 1751, 13, 33295, 7, 9410, 8, 628, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 628, 220, 220, 220, 1441, 3141, 13, 21575, 8053, 7, 17197, 8, 628, 220, 1303, 16926, 46, 25, 6889, 428, 2839, 13, 198, 220, 825, 4808, 10044, 325, 21575, 8053, 7, 944, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3141, 62, 4868, 220, 220, 220, 220, 1058, 649, 1370, 62, 482, 3141, 62, 4354, 12268, 30, 2162, 628, 220, 220, 220, 770, 530, 318, 1444, 416, 477, 262, 13061, 9729, 13, 220, 632, 338, 6209, 257, 3141, 198, 220, 220, 220, 2512, 13, 628, 220, 220, 220, 24550, 25, 11317, 621, 34665, 262, 18551, 38, 3264, 11, 262, 2438, 5679, 257, 3918, 198, 220, 220, 220, 517, 588, 428, 25, 517, 588, 428, 25, 357, 392, 62, 273, 12268, 8, 27613, 220, 632, 1838, 8006, 198, 220, 220, 220, 4577, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2116, 13557, 3791, 1370, 18690, 3419, 198, 220, 220, 220, 10139, 796, 2116, 13557, 10044, 325, 21575, 40596, 3419, 198, 220, 220, 220, 6818, 10139, 318, 407, 6045, 198, 220, 220, 220, 1441, 10139, 628, 220, 825, 2547, 325, 11187, 605, 13949, 7, 944, 2599, 198, 220, 220, 220, 37227, 10044, 325, 257, 2060, 1627, 329, 1388, 62, 26268, 13, 628, 220, 220, 220, 317, 29908, 1088, 4808, 10044, 325, 21575, 13949, 22446, 220, 11014, 475, 407, 10411, 284, 198, 220, 220, 220, 4808, 10044, 325, 21575, 8053, 3419, 290, 2547, 325, 21575, 7004, 22446, 628, 220, 220, 220, 7567, 2696, 25, 198, 220, 220, 220, 220, 220, 2547, 325, 12331, 628, 220, 220, 220, 775, 765, 284, 307, 1498, 4929, 2547, 325, 12331, 477, 287, 530, 1295, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2116, 13557, 3791, 1370, 18690, 3419, 198, 220, 220, 220, 2116, 13557, 6435, 988, 3419, 628, 220, 220, 220, 611, 2116, 13, 66, 62, 312, 6624, 5121, 13, 36, 1659, 62, 15633, 25, 198, 220, 220, 220, 220, 220, 1441, 6045, 628, 220, 220, 220, 10139, 796, 2116, 13557, 10044, 325, 21575, 13949, 3419, 198, 220, 220, 220, 6818, 10139, 318, 407, 6045, 198, 220, 220, 220, 1441, 10139, 628, 220, 825, 2547, 325, 21575, 7004, 7, 944, 2599, 198, 220, 220, 220, 37227, 10044, 325, 29568, 30328, 23105, 8, 290, 4600, 30328, 23105, 63, 329, 1573, 62, 29572, 13, 9078, 13, 628, 220, 220, 220, 1119, 460, 423, 3294, 3951, 11, 588, 428, 25, 198, 220, 220, 220, 9809, 29568, 198, 220, 220, 220, 220, 220, 9809, 530, 198, 220, 220, 220, 220, 220, 9809, 734, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2116, 13557, 3791, 1370, 18690, 3419, 628, 220, 220, 220, 611, 2116, 13, 66, 62, 11031, 6624, 14927, 13, 36, 1659, 25, 220, 1303, 304, 13, 70, 13, 720, 3419, 198, 220, 220, 220, 220, 220, 1441, 3141, 13, 2949, 18257, 3419, 628, 220, 220, 220, 1303, 770, 3848, 2547, 325, 1870, 5574, 22784, 475, 314, 892, 340, 815, 307, 257, 9052, 326, 3848, 198, 220, 220, 220, 1303, 4808, 10044, 325, 21575, 13949, 22784, 588, 3056, 13, 9492, 5275, 39516, 13, 198, 220, 220, 220, 10139, 796, 2116, 13557, 10044, 325, 21575, 40596, 3419, 198, 220, 220, 220, 6818, 10139, 318, 407, 6045, 198, 220, 220, 220, 1441, 10139, 198 ]
2.404145
19,300
from abc import abstractmethod from typing import Union import numpy as np class GLIDEError(Exception): """Raised when an error related to the ASF classes is encountered. """ class GLIDEBase: """ Implements the non-differentiable variant of GLIDE-II as proposed in Ruiz, Francisco, Mariano Luque, and Kaisa Miettinen. "Improving the computational efficiency in a global formulation (GLIDE) for interactive multiobjective optimization." Annals of Operations Research 197.1 (2012): 47-70. Note: Additional contraints produced by the GLIDE-II formulation are implemented such that if the returned values are negative, the corresponding constraint is violated. The returned value may be positive. In such cases, the returned value is a measure of how close or far the corresponding feasible solution is from violating the constraint. Args: utopian (np.ndarray, optional): The utopian point. Defaults to None. nadir (np.ndarray, optional): The nadir point. Defaults to None. rho (float, optional): The augmentation term for the scalarization function. Defaults to 1e-6. """ def __call__(self, objective_vector: np.ndarray, preference: dict) -> np.ndarray: """Evaluate the scalarization function value based on objective vectors and DM preference. Args: objective_vector (np.ndarray): 2-dimensional array of objective values of solutions. preference (dict): The preference given by the decision maker. The required dictionary keys and their meanings can be found in self.required_keys variable. Returns: np.ndarray: The scalarized value obtained by using GLIDE-II over objective_vector. """ self.preference = preference self.objective_vector = objective_vector f_minus_q = np.atleast_2d(objective_vector - self.q) mu = np.atleast_2d(self.mu) I_alpha = self.I_alpha max_term = np.max(mu[:, I_alpha] * f_minus_q[:, I_alpha], axis=1) sum_term = self.rho * np.sum(self.w * f_minus_q, axis=1) return max_term + sum_term def evaluate_constraints( self, objective_vector: np.ndarray, preference: dict ) -> Union[None, np.ndarray]: """Evaluate the additional contraints generated by the GLIDE-II formulation. Note: Additional contraints produced by the GLIDE-II formulation are implemented such that if the returned values are negative, the corresponding constraint is violated. The returned value may be positive. In such cases, the returned value is a measure of how close or far the corresponding feasible solution is from violating the constraint. Args: objective_vector (np.ndarray): [description] preference (dict): [description] Returns: Union[None, np.ndarray]: [description] """ if not self.has_additional_constraints: return None self.preference = preference self.objective_vector = objective_vector constraints = ( self.epsilon[self.I_epsilon] + self.s_epsilon * self.delta_epsilon[self.I_epsilon] - objective_vector[:, self.I_epsilon] ) return constraints @property @abstractmethod @property @abstractmethod @property @abstractmethod @property @abstractmethod @property @abstractmethod @property @abstractmethod @property @abstractmethod @property @abstractmethod class reference_point_method_GLIDE(GLIDEBase): """ Implements the reference point method of preference elicitation and scalarization using the non-differentiable variant of GLIDE-II as proposed in: Ruiz, Francisco, Mariano Luque, and Kaisa Miettinen. "Improving the computational efficiency in a global formulation (GLIDE) for interactive multiobjective optimization." Annals of Operations Research 197.1 (2012): 47-70. Args: utopian (np.ndarray, optional): The utopian point. Defaults to None. nadir (np.ndarray, optional): The nadir point. Defaults to None. rho (float, optional): The augmentation term for the scalarization function. Defaults to 1e-6. """ @property @property @property @property @property @property @property @property class GUESS_GLIDE(GLIDEBase): """ Implements the GUESS method of preference elicitation and scalarization using the non-differentiable variant of GLIDE-II as proposed in: Ruiz, Francisco, Mariano Luque, and Kaisa Miettinen. "Improving the computational efficiency in a global formulation (GLIDE) for interactive multiobjective optimization." Annals of Operations Research 197.1 (2012): 47-70. Args: utopian (np.ndarray, optional): The utopian point. Defaults to None. nadir (np.ndarray, optional): The nadir point. Defaults to None. rho (float, optional): The augmentation term for the scalarization function. Defaults to 1e-6. """ @property @property @property @property @property @property @property @property class AUG_GUESS_GLIDE(GUESS_GLIDE): """ Implements the Augmented GUESS method of preference elicitation and scalarization using the non-differentiable variant of GLIDE-II as proposed in: Ruiz, Francisco, Mariano Luque, and Kaisa Miettinen. "Improving the computational efficiency in a global formulation (GLIDE) for interactive multiobjective optimization." Annals of Operations Research 197.1 (2012): 47-70. Args: utopian (np.ndarray, optional): The utopian point. Defaults to None. nadir (np.ndarray, optional): The nadir point. Defaults to None. rho (float, optional): The augmentation term for the scalarization function. Defaults to 1e-6. """ class NIMBUS_GLIDE(GLIDEBase): """ Implements the NIMBUS method of preference elicitation and scalarization using the non-differentiable variant of GLIDE-II as proposed in: Ruiz, Francisco, Mariano Luque, and Kaisa Miettinen. "Improving the computational efficiency in a global formulation (GLIDE) for interactive multiobjective optimization." Annals of Operations Research 197.1 (2012): 47-70. Args: utopian (np.ndarray, optional): The utopian point. Defaults to None. nadir (np.ndarray, optional): The nadir point. Defaults to None. rho (float, optional): The augmentation term for the scalarization function. Defaults to 1e-6. """ @property @property @property @property @property @property @property @property @property @property @property @property @property class STEP_GLIDE(GLIDEBase): """ Implements the STEP method of preference elicitation and scalarization using the non-differentiable variant of GLIDE-II as proposed in: Ruiz, Francisco, Mariano Luque, and Kaisa Miettinen. "Improving the computational efficiency in a global formulation (GLIDE) for interactive multiobjective optimization." Annals of Operations Research 197.1 (2012): 47-70. Args: utopian (np.ndarray, optional): The utopian point. Defaults to None. nadir (np.ndarray, optional): The nadir point. Defaults to None. rho (float, optional): The augmentation term for the scalarization function. Defaults to 1e-6. """ @property @property @property @property @property @property @property @property @property @property class STOM_GLIDE(GLIDEBase): """ Implements the STOM method of preference elicitation and scalarization using the non-differentiable variant of GLIDE-II as proposed in: Ruiz, Francisco, Mariano Luque, and Kaisa Miettinen. "Improving the computational efficiency in a global formulation (GLIDE) for interactive multiobjective optimization." Annals of Operations Research 197.1 (2012): 47-70. Args: utopian (np.ndarray, optional): The utopian point. Defaults to None. nadir (np.ndarray, optional): The nadir point. Has no effect on STOM calculation. Defaults to None. rho (float, optional): The augmentation term for the scalarization function. Defaults to 1e-6. """ @property @property @property @property @property @property @property @property class AUG_STOM_GLIDE(STOM_GLIDE): """ Implements the Augmented STOM method of preference elicitation and scalarization using the non-differentiable variant of GLIDE-II as proposed in: Ruiz, Francisco, Mariano Luque, and Kaisa Miettinen. "Improving the computational efficiency in a global formulation (GLIDE) for interactive multiobjective optimization." Annals of Operations Research 197.1 (2012): 47-70. Args: utopian (np.ndarray, optional): The utopian point. Defaults to None. nadir (np.ndarray, optional): The nadir point. Has no effect on STOM calculation. Defaults to None. rho (float, optional): The augmentation term for the scalarization function. Defaults to 1e-6. """ class Tchebycheff_GLIDE(GLIDEBase): """ Implements the Tchebycheff method of preference elicitation and scalarization using the non-differentiable variant of GLIDE-II as proposed in: Ruiz, Francisco, Mariano Luque, and Kaisa Miettinen. "Improving the computational efficiency in a global formulation (GLIDE) for interactive multiobjective optimization." Annals of Operations Research 197.1 (2012): 47-70. Args: utopian (np.ndarray, optional): The utopian point. Defaults to None. nadir (np.ndarray, optional): The nadir point. Defaults to None. rho (float, optional): The augmentation term for the scalarization function. Defaults to 1e-6. """ @property @property @property @property @property @property @property @property class PROJECT_GLIDE(GLIDEBase): """ Implements the PROJECT method of preference elicitation and scalarization using the non-differentiable variant of GLIDE-II as proposed in: Ruiz, Francisco, Mariano Luque, and Kaisa Miettinen. "Improving the computational efficiency in a global formulation (GLIDE) for interactive multiobjective optimization." Annals of Operations Research 197.1 (2012): 47-70. Args: utopian (np.ndarray, optional): The utopian point. Defaults to None. nadir (np.ndarray, optional): The nadir point. Defaults to None. rho (float, optional): The augmentation term for the scalarization function. Defaults to 1e-6. """ @property @property @property @property @property @property @property @property
[ 6738, 450, 66, 1330, 12531, 24396, 198, 6738, 19720, 1330, 4479, 198, 198, 11748, 299, 32152, 355, 45941, 628, 198, 4871, 10188, 2389, 6500, 81, 1472, 7, 16922, 2599, 198, 220, 220, 220, 37227, 21762, 1417, 618, 281, 4049, 3519, 284, 262, 7054, 37, 6097, 318, 12956, 13, 628, 220, 220, 220, 37227, 628, 198, 4871, 10188, 14114, 14881, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1846, 1154, 902, 262, 1729, 12, 39799, 3379, 15304, 286, 10188, 14114, 12, 3978, 355, 5150, 287, 198, 220, 220, 220, 11667, 528, 11, 6033, 11, 1526, 10115, 6026, 4188, 11, 290, 11611, 9160, 337, 1155, 83, 42326, 13, 198, 220, 220, 220, 366, 23028, 1075, 262, 31350, 9332, 287, 257, 3298, 31760, 357, 8763, 14114, 8, 198, 220, 220, 220, 329, 14333, 5021, 15252, 425, 23989, 526, 198, 220, 220, 220, 5506, 874, 286, 16205, 4992, 29903, 13, 16, 357, 6999, 2599, 6298, 12, 2154, 13, 628, 220, 220, 220, 5740, 25, 198, 220, 220, 220, 220, 220, 220, 220, 15891, 542, 15517, 4635, 416, 262, 10188, 14114, 12, 3978, 31760, 389, 9177, 198, 220, 220, 220, 220, 220, 220, 220, 884, 326, 611, 262, 4504, 3815, 389, 4633, 11, 262, 11188, 32315, 318, 198, 220, 220, 220, 220, 220, 220, 220, 13998, 13, 383, 4504, 1988, 743, 307, 3967, 13, 554, 884, 2663, 11, 262, 4504, 1988, 198, 220, 220, 220, 220, 220, 220, 220, 318, 257, 3953, 286, 703, 1969, 393, 1290, 262, 11188, 23498, 4610, 318, 422, 198, 220, 220, 220, 220, 220, 220, 220, 18134, 262, 32315, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 49678, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 49678, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 299, 324, 343, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 299, 324, 343, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 8873, 357, 22468, 11, 11902, 2599, 383, 16339, 14374, 3381, 329, 262, 16578, 283, 1634, 2163, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2896, 13185, 284, 352, 68, 12, 21, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 825, 11593, 13345, 834, 7, 944, 11, 9432, 62, 31364, 25, 45941, 13, 358, 18747, 11, 12741, 25, 8633, 8, 4613, 45941, 13, 358, 18747, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 36, 2100, 4985, 262, 16578, 283, 1634, 2163, 1988, 1912, 319, 9432, 30104, 290, 198, 220, 220, 220, 220, 220, 220, 220, 14848, 12741, 13, 628, 220, 220, 220, 220, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9432, 62, 31364, 357, 37659, 13, 358, 18747, 2599, 362, 12, 19577, 7177, 286, 9432, 3815, 286, 8136, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12741, 357, 11600, 2599, 383, 12741, 1813, 416, 262, 2551, 16009, 13, 383, 2672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22155, 8251, 290, 511, 26368, 460, 307, 1043, 287, 2116, 13, 35827, 62, 13083, 7885, 13, 628, 220, 220, 220, 220, 220, 220, 220, 16409, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45941, 13, 358, 18747, 25, 383, 16578, 283, 1143, 1988, 6492, 416, 1262, 10188, 14114, 12, 3978, 625, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9432, 62, 31364, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 3866, 4288, 796, 12741, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 15252, 425, 62, 31364, 796, 9432, 62, 31364, 628, 220, 220, 220, 220, 220, 220, 220, 277, 62, 40191, 62, 80, 796, 45941, 13, 265, 293, 459, 62, 17, 67, 7, 15252, 425, 62, 31364, 532, 2116, 13, 80, 8, 198, 220, 220, 220, 220, 220, 220, 220, 38779, 796, 45941, 13, 265, 293, 459, 62, 17, 67, 7, 944, 13, 30300, 8, 198, 220, 220, 220, 220, 220, 220, 220, 314, 62, 26591, 796, 2116, 13, 40, 62, 26591, 628, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 4354, 796, 45941, 13, 9806, 7, 30300, 58, 45299, 314, 62, 26591, 60, 1635, 277, 62, 40191, 62, 80, 58, 45299, 314, 62, 26591, 4357, 16488, 28, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 62, 4354, 796, 2116, 13, 81, 8873, 1635, 45941, 13, 16345, 7, 944, 13, 86, 1635, 277, 62, 40191, 62, 80, 11, 16488, 28, 16, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 3509, 62, 4354, 1343, 2160, 62, 4354, 628, 220, 220, 220, 825, 13446, 62, 1102, 2536, 6003, 7, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 9432, 62, 31364, 25, 45941, 13, 358, 18747, 11, 12741, 25, 8633, 198, 220, 220, 220, 1267, 4613, 4479, 58, 14202, 11, 45941, 13, 358, 18747, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 36, 2100, 4985, 262, 3224, 542, 15517, 7560, 416, 262, 10188, 14114, 12, 3978, 31760, 13, 628, 220, 220, 220, 220, 220, 220, 220, 5740, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15891, 542, 15517, 4635, 416, 262, 10188, 14114, 12, 3978, 31760, 389, 9177, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 884, 326, 611, 262, 4504, 3815, 389, 4633, 11, 262, 11188, 32315, 318, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13998, 13, 383, 4504, 1988, 743, 307, 3967, 13, 554, 884, 2663, 11, 262, 4504, 1988, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 257, 3953, 286, 703, 1969, 393, 1290, 262, 11188, 23498, 4610, 318, 422, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18134, 262, 32315, 13, 628, 220, 220, 220, 220, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9432, 62, 31364, 357, 37659, 13, 358, 18747, 2599, 685, 11213, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12741, 357, 11600, 2599, 685, 11213, 60, 628, 220, 220, 220, 220, 220, 220, 220, 16409, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4479, 58, 14202, 11, 45941, 13, 358, 18747, 5974, 685, 11213, 60, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 407, 2116, 13, 10134, 62, 2860, 1859, 62, 1102, 2536, 6003, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 6045, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 3866, 4288, 796, 12741, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 15252, 425, 62, 31364, 796, 9432, 62, 31364, 628, 220, 220, 220, 220, 220, 220, 220, 17778, 796, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 538, 18217, 261, 58, 944, 13, 40, 62, 538, 18217, 261, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1343, 2116, 13, 82, 62, 538, 18217, 261, 1635, 2116, 13, 67, 12514, 62, 538, 18217, 261, 58, 944, 13, 40, 62, 538, 18217, 261, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 532, 9432, 62, 31364, 58, 45299, 2116, 13, 40, 62, 538, 18217, 261, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 17778, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 2488, 397, 8709, 24396, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 2488, 397, 8709, 24396, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 2488, 397, 8709, 24396, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 2488, 397, 8709, 24396, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 2488, 397, 8709, 24396, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 2488, 397, 8709, 24396, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 2488, 397, 8709, 24396, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 2488, 397, 8709, 24396, 628, 198, 4871, 4941, 62, 4122, 62, 24396, 62, 8763, 14114, 7, 8763, 14114, 14881, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1846, 1154, 902, 262, 4941, 966, 2446, 286, 12741, 25487, 3780, 290, 16578, 283, 1634, 198, 220, 220, 220, 1262, 262, 1729, 12, 39799, 3379, 15304, 286, 10188, 14114, 12, 3978, 355, 5150, 287, 25, 198, 220, 220, 220, 11667, 528, 11, 6033, 11, 1526, 10115, 6026, 4188, 11, 290, 11611, 9160, 337, 1155, 83, 42326, 13, 198, 220, 220, 220, 366, 23028, 1075, 262, 31350, 9332, 287, 257, 3298, 31760, 357, 8763, 14114, 8, 198, 220, 220, 220, 329, 14333, 5021, 15252, 425, 23989, 526, 198, 220, 220, 220, 5506, 874, 286, 16205, 4992, 29903, 13, 16, 357, 6999, 2599, 6298, 12, 2154, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 49678, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 49678, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 299, 324, 343, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 299, 324, 343, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 8873, 357, 22468, 11, 11902, 2599, 383, 16339, 14374, 3381, 329, 262, 16578, 283, 1634, 2163, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2896, 13185, 284, 352, 68, 12, 21, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 198, 4871, 19348, 7597, 62, 8763, 14114, 7, 8763, 14114, 14881, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1846, 1154, 902, 262, 19348, 7597, 2446, 286, 12741, 25487, 3780, 290, 16578, 283, 1634, 198, 220, 220, 220, 1262, 262, 1729, 12, 39799, 3379, 15304, 286, 10188, 14114, 12, 3978, 355, 5150, 287, 25, 198, 220, 220, 220, 11667, 528, 11, 6033, 11, 1526, 10115, 6026, 4188, 11, 290, 11611, 9160, 337, 1155, 83, 42326, 13, 198, 220, 220, 220, 366, 23028, 1075, 262, 31350, 9332, 287, 257, 3298, 31760, 357, 8763, 14114, 8, 198, 220, 220, 220, 329, 14333, 5021, 15252, 425, 23989, 526, 198, 220, 220, 220, 5506, 874, 286, 16205, 4992, 29903, 13, 16, 357, 6999, 2599, 6298, 12, 2154, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 49678, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 49678, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 299, 324, 343, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 299, 324, 343, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 8873, 357, 22468, 11, 11902, 2599, 383, 16339, 14374, 3381, 329, 262, 16578, 283, 1634, 2163, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2896, 13185, 284, 352, 68, 12, 21, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 198, 4871, 317, 7340, 62, 38022, 7597, 62, 8763, 14114, 7, 38022, 7597, 62, 8763, 14114, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1846, 1154, 902, 262, 2447, 12061, 19348, 7597, 2446, 286, 12741, 25487, 3780, 290, 16578, 283, 1634, 198, 220, 220, 220, 1262, 262, 1729, 12, 39799, 3379, 15304, 286, 10188, 14114, 12, 3978, 355, 5150, 287, 25, 198, 220, 220, 220, 11667, 528, 11, 6033, 11, 1526, 10115, 6026, 4188, 11, 290, 11611, 9160, 337, 1155, 83, 42326, 13, 198, 220, 220, 220, 366, 23028, 1075, 262, 31350, 9332, 287, 257, 3298, 31760, 357, 8763, 14114, 8, 198, 220, 220, 220, 329, 14333, 5021, 15252, 425, 23989, 526, 198, 220, 220, 220, 5506, 874, 286, 16205, 4992, 29903, 13, 16, 357, 6999, 2599, 6298, 12, 2154, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 49678, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 49678, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 299, 324, 343, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 299, 324, 343, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 8873, 357, 22468, 11, 11902, 2599, 383, 16339, 14374, 3381, 329, 262, 16578, 283, 1634, 2163, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2896, 13185, 284, 352, 68, 12, 21, 13, 198, 220, 220, 220, 37227, 628, 198, 4871, 399, 3955, 45346, 62, 8763, 14114, 7, 8763, 14114, 14881, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1846, 1154, 902, 262, 399, 3955, 45346, 2446, 286, 12741, 25487, 3780, 290, 16578, 283, 1634, 198, 220, 220, 220, 1262, 262, 1729, 12, 39799, 3379, 15304, 286, 10188, 14114, 12, 3978, 355, 5150, 287, 25, 198, 220, 220, 220, 11667, 528, 11, 6033, 11, 1526, 10115, 6026, 4188, 11, 290, 11611, 9160, 337, 1155, 83, 42326, 13, 198, 220, 220, 220, 366, 23028, 1075, 262, 31350, 9332, 287, 257, 3298, 31760, 357, 8763, 14114, 8, 198, 220, 220, 220, 329, 14333, 5021, 15252, 425, 23989, 526, 198, 220, 220, 220, 5506, 874, 286, 16205, 4992, 29903, 13, 16, 357, 6999, 2599, 6298, 12, 2154, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 49678, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 49678, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 299, 324, 343, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 299, 324, 343, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 8873, 357, 22468, 11, 11902, 2599, 383, 16339, 14374, 3381, 329, 262, 16578, 283, 1634, 2163, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2896, 13185, 284, 352, 68, 12, 21, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 198, 4871, 49154, 62, 8763, 14114, 7, 8763, 14114, 14881, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1846, 1154, 902, 262, 49154, 2446, 286, 12741, 25487, 3780, 290, 16578, 283, 1634, 198, 220, 220, 220, 1262, 262, 1729, 12, 39799, 3379, 15304, 286, 10188, 14114, 12, 3978, 355, 5150, 287, 25, 198, 220, 220, 220, 11667, 528, 11, 6033, 11, 1526, 10115, 6026, 4188, 11, 290, 11611, 9160, 337, 1155, 83, 42326, 13, 198, 220, 220, 220, 366, 23028, 1075, 262, 31350, 9332, 287, 257, 3298, 31760, 357, 8763, 14114, 8, 198, 220, 220, 220, 329, 14333, 5021, 15252, 425, 23989, 526, 198, 220, 220, 220, 5506, 874, 286, 16205, 4992, 29903, 13, 16, 357, 6999, 2599, 6298, 12, 2154, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 49678, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 49678, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 299, 324, 343, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 299, 324, 343, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 8873, 357, 22468, 11, 11902, 2599, 383, 16339, 14374, 3381, 329, 262, 16578, 283, 1634, 2163, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2896, 13185, 284, 352, 68, 12, 21, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 198, 4871, 3563, 2662, 62, 8763, 14114, 7, 8763, 14114, 14881, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1846, 1154, 902, 262, 3563, 2662, 2446, 286, 12741, 25487, 3780, 290, 16578, 283, 1634, 198, 220, 220, 220, 1262, 262, 1729, 12, 39799, 3379, 15304, 286, 10188, 14114, 12, 3978, 355, 5150, 287, 25, 198, 220, 220, 220, 11667, 528, 11, 6033, 11, 1526, 10115, 6026, 4188, 11, 290, 11611, 9160, 337, 1155, 83, 42326, 13, 198, 220, 220, 220, 366, 23028, 1075, 262, 31350, 9332, 287, 257, 3298, 31760, 357, 8763, 14114, 8, 198, 220, 220, 220, 329, 14333, 5021, 15252, 425, 23989, 526, 198, 220, 220, 220, 5506, 874, 286, 16205, 4992, 29903, 13, 16, 357, 6999, 2599, 6298, 12, 2154, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 49678, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 49678, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 299, 324, 343, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 299, 324, 343, 966, 13, 7875, 645, 1245, 319, 3563, 2662, 17952, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 8873, 357, 22468, 11, 11902, 2599, 383, 16339, 14374, 3381, 329, 262, 16578, 283, 1634, 2163, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2896, 13185, 284, 352, 68, 12, 21, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 198, 4871, 317, 7340, 62, 2257, 2662, 62, 8763, 14114, 7, 2257, 2662, 62, 8763, 14114, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1846, 1154, 902, 262, 2447, 12061, 3563, 2662, 2446, 286, 12741, 25487, 3780, 290, 16578, 283, 1634, 198, 220, 220, 220, 1262, 262, 1729, 12, 39799, 3379, 15304, 286, 10188, 14114, 12, 3978, 355, 5150, 287, 25, 198, 220, 220, 220, 11667, 528, 11, 6033, 11, 1526, 10115, 6026, 4188, 11, 290, 11611, 9160, 337, 1155, 83, 42326, 13, 198, 220, 220, 220, 366, 23028, 1075, 262, 31350, 9332, 287, 257, 3298, 31760, 357, 8763, 14114, 8, 198, 220, 220, 220, 329, 14333, 5021, 15252, 425, 23989, 526, 198, 220, 220, 220, 5506, 874, 286, 16205, 4992, 29903, 13, 16, 357, 6999, 2599, 6298, 12, 2154, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 49678, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 49678, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 299, 324, 343, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 299, 324, 343, 966, 13, 7875, 645, 1245, 319, 3563, 2662, 17952, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 8873, 357, 22468, 11, 11902, 2599, 383, 16339, 14374, 3381, 329, 262, 16578, 283, 1634, 2163, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2896, 13185, 284, 352, 68, 12, 21, 13, 198, 220, 220, 220, 37227, 628, 198, 4871, 309, 2395, 1525, 2395, 487, 62, 8763, 14114, 7, 8763, 14114, 14881, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1846, 1154, 902, 262, 309, 2395, 1525, 2395, 487, 2446, 286, 12741, 25487, 3780, 290, 16578, 283, 1634, 198, 220, 220, 220, 1262, 262, 1729, 12, 39799, 3379, 15304, 286, 10188, 14114, 12, 3978, 355, 5150, 287, 25, 198, 220, 220, 220, 11667, 528, 11, 6033, 11, 1526, 10115, 6026, 4188, 11, 290, 11611, 9160, 337, 1155, 83, 42326, 13, 198, 220, 220, 220, 366, 23028, 1075, 262, 31350, 9332, 287, 257, 3298, 31760, 357, 8763, 14114, 8, 198, 220, 220, 220, 329, 14333, 5021, 15252, 425, 23989, 526, 198, 220, 220, 220, 5506, 874, 286, 16205, 4992, 29903, 13, 16, 357, 6999, 2599, 6298, 12, 2154, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 49678, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 49678, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 299, 324, 343, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 299, 324, 343, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 8873, 357, 22468, 11, 11902, 2599, 383, 16339, 14374, 3381, 329, 262, 16578, 283, 1634, 2163, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2896, 13185, 284, 352, 68, 12, 21, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 198, 4871, 21965, 23680, 62, 8763, 14114, 7, 8763, 14114, 14881, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1846, 1154, 902, 262, 21965, 23680, 2446, 286, 12741, 25487, 3780, 290, 16578, 283, 1634, 198, 220, 220, 220, 1262, 262, 1729, 12, 39799, 3379, 15304, 286, 10188, 14114, 12, 3978, 355, 5150, 287, 25, 198, 220, 220, 220, 11667, 528, 11, 6033, 11, 1526, 10115, 6026, 4188, 11, 290, 11611, 9160, 337, 1155, 83, 42326, 13, 198, 220, 220, 220, 366, 23028, 1075, 262, 31350, 9332, 287, 257, 3298, 31760, 357, 8763, 14114, 8, 198, 220, 220, 220, 329, 14333, 5021, 15252, 425, 23989, 526, 198, 220, 220, 220, 5506, 874, 286, 16205, 4992, 29903, 13, 16, 357, 6999, 2599, 6298, 12, 2154, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 49678, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 49678, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 299, 324, 343, 357, 37659, 13, 358, 18747, 11, 11902, 2599, 383, 299, 324, 343, 966, 13, 2896, 13185, 284, 6045, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 8873, 357, 22468, 11, 11902, 2599, 383, 16339, 14374, 3381, 329, 262, 16578, 283, 1634, 2163, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2896, 13185, 284, 352, 68, 12, 21, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 628, 220, 220, 220, 2488, 26745, 198 ]
2.794184
3,989
import numpy as np from statespace_model import solver from scipy.spatial.distance import cdist from pyomac.misc import mac_value, err_rel
[ 11748, 299, 32152, 355, 45941, 198, 6738, 2585, 10223, 62, 19849, 1330, 1540, 332, 198, 6738, 629, 541, 88, 13, 2777, 34961, 13, 30246, 1330, 269, 17080, 198, 6738, 12972, 296, 330, 13, 44374, 1330, 8352, 62, 8367, 11, 11454, 62, 2411, 628, 628 ]
3.227273
44
# encoding: utf-8 from __future__ import print_function from pybooru import Danbooru from pybooru import Moebooru konachan = Moebooru("konachan") kona_tags = konachan.tag_list(order='date') print(konachan.last_call) kona_post = konachan.post_list() print(konachan.last_call) lolibooru = Moebooru("lolibooru") kona_tags = lolibooru.tag_list(order='date') print(lolibooru.last_call) kona_post = lolibooru.post_list() print(lolibooru.last_call) danbooru = Danbooru('danbooru') dan_tags = danbooru.tag_list(order='name') print(danbooru.last_call) dan_post = danbooru.post_list(tags="computer") print(danbooru.last_call)
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 12972, 2127, 27786, 1330, 6035, 2127, 27786, 198, 6738, 12972, 2127, 27786, 1330, 4270, 1765, 2675, 84, 198, 198, 74, 261, 620, 272, 796, 4270, 1765, 2675, 84, 7203, 74, 261, 620, 272, 4943, 198, 198, 74, 4450, 62, 31499, 796, 479, 261, 620, 272, 13, 12985, 62, 4868, 7, 2875, 11639, 4475, 11537, 198, 4798, 7, 74, 261, 620, 272, 13, 12957, 62, 13345, 8, 198, 74, 4450, 62, 7353, 796, 479, 261, 620, 272, 13, 7353, 62, 4868, 3419, 198, 4798, 7, 74, 261, 620, 272, 13, 12957, 62, 13345, 8, 198, 198, 47288, 571, 2675, 84, 796, 4270, 1765, 2675, 84, 7203, 47288, 571, 2675, 84, 4943, 198, 198, 74, 4450, 62, 31499, 796, 19462, 571, 2675, 84, 13, 12985, 62, 4868, 7, 2875, 11639, 4475, 11537, 198, 4798, 7, 47288, 571, 2675, 84, 13, 12957, 62, 13345, 8, 198, 74, 4450, 62, 7353, 796, 19462, 571, 2675, 84, 13, 7353, 62, 4868, 3419, 198, 4798, 7, 47288, 571, 2675, 84, 13, 12957, 62, 13345, 8, 198, 198, 25604, 2127, 27786, 796, 6035, 2127, 27786, 10786, 25604, 2127, 27786, 11537, 198, 198, 25604, 62, 31499, 796, 46078, 2127, 27786, 13, 12985, 62, 4868, 7, 2875, 11639, 3672, 11537, 198, 4798, 7, 25604, 2127, 27786, 13, 12957, 62, 13345, 8, 198, 25604, 62, 7353, 796, 46078, 2127, 27786, 13, 7353, 62, 4868, 7, 31499, 2625, 33215, 4943, 198, 4798, 7, 25604, 2127, 27786, 13, 12957, 62, 13345, 8, 198 ]
2.401544
259
str_year = input("what is your birth year:") year = int(str_year) age = 2020-year-1 print(f"hello, your age is {age}")
[ 2536, 62, 1941, 796, 5128, 7203, 10919, 318, 534, 4082, 614, 25, 4943, 198, 198, 1941, 796, 493, 7, 2536, 62, 1941, 8, 198, 198, 496, 796, 12131, 12, 1941, 12, 16, 628, 198, 4798, 7, 69, 1, 31373, 11, 534, 2479, 318, 1391, 496, 92, 4943, 628 ]
2.583333
48
import threading import base64 import hashlib import webbrowser import secrets from time import sleep from werkzeug.serving import make_server from flask import Flask, request global_dict = { 'received_callback': False, 'received_state': None, 'authorization_code': None, 'error_message': None } app = Flask(__name__) @app.route("/callback") def callback(): """ The callback is invoked after a completed login attempt (succesful or otherwise). It sets global variables with the auth code or error messages, then sets the polling flag received_callback. :return: """ if 'error' in request.args: global_dict['error_message'] = request.args['error'] + ': ' + request.args['error_description'] else: global_dict['authorization_code'] = request.args['code'] global_dict['received_state'] = request.args['state'] global_dict['received_callback'] = True return "Please close this window and return to python-neurostore." class ServerThread(threading.Thread): """ The Flask server is done this way to allow shutting down after a single request has been received. """ def auth0_url_encode(byte_data): """ Safe encoding handles + and /, and also replace = with nothing :param byte_data: :return: """ return base64.urlsafe_b64encode(byte_data).decode('utf-8').replace('=', '')
[ 11748, 4704, 278, 198, 11748, 2779, 2414, 198, 11748, 12234, 8019, 198, 11748, 3992, 40259, 198, 11748, 13141, 198, 6738, 640, 1330, 3993, 198, 6738, 266, 9587, 2736, 1018, 13, 31293, 1330, 787, 62, 15388, 198, 6738, 42903, 1330, 46947, 11, 2581, 628, 198, 20541, 62, 11600, 796, 1391, 198, 220, 220, 220, 705, 47844, 62, 47423, 10354, 10352, 11, 198, 220, 220, 220, 705, 47844, 62, 5219, 10354, 6045, 11, 198, 220, 220, 220, 705, 9800, 1634, 62, 8189, 10354, 6045, 11, 198, 220, 220, 220, 705, 18224, 62, 20500, 10354, 6045, 198, 220, 220, 220, 1782, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 198, 31, 1324, 13, 38629, 7203, 14, 47423, 4943, 198, 4299, 23838, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 383, 23838, 318, 24399, 706, 257, 5668, 17594, 2230, 357, 2385, 535, 274, 913, 393, 4306, 737, 198, 220, 220, 220, 632, 5621, 3298, 9633, 351, 262, 6284, 2438, 393, 4049, 6218, 11, 788, 5621, 262, 198, 220, 220, 220, 13985, 6056, 2722, 62, 47423, 13, 198, 220, 220, 220, 1058, 7783, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 611, 705, 18224, 6, 287, 2581, 13, 22046, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3298, 62, 11600, 17816, 18224, 62, 20500, 20520, 796, 2581, 13, 22046, 17816, 18224, 20520, 1343, 705, 25, 705, 1343, 2581, 13, 22046, 17816, 18224, 62, 11213, 20520, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3298, 62, 11600, 17816, 9800, 1634, 62, 8189, 20520, 796, 2581, 13, 22046, 17816, 8189, 20520, 198, 220, 220, 220, 3298, 62, 11600, 17816, 47844, 62, 5219, 20520, 796, 2581, 13, 22046, 17816, 5219, 20520, 198, 220, 220, 220, 3298, 62, 11600, 17816, 47844, 62, 47423, 20520, 796, 6407, 198, 220, 220, 220, 1441, 366, 5492, 1969, 428, 4324, 290, 1441, 284, 21015, 12, 710, 1434, 8095, 526, 628, 198, 4871, 9652, 16818, 7, 16663, 278, 13, 16818, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 383, 46947, 4382, 318, 1760, 428, 835, 284, 1249, 25136, 866, 706, 257, 2060, 2581, 468, 587, 2722, 13, 198, 220, 220, 220, 37227, 198, 198, 4299, 6284, 15, 62, 6371, 62, 268, 8189, 7, 26327, 62, 7890, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 19978, 21004, 17105, 1343, 290, 1220, 11, 290, 635, 6330, 796, 351, 2147, 198, 220, 220, 220, 1058, 17143, 18022, 62, 7890, 25, 198, 220, 220, 220, 1058, 7783, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1441, 2779, 2414, 13, 6371, 21230, 62, 65, 2414, 268, 8189, 7, 26327, 62, 7890, 737, 12501, 1098, 10786, 40477, 12, 23, 27691, 33491, 10786, 28, 3256, 10148, 8 ]
3.04386
456
# -*- coding: utf-8 -*- from pas.plugins.ldap.plugin import LDAPPlugin from zope.component.hooks import getSite TITLE = "LDAP plugin (pas.plugins.ldap)" def remove_persistent_import_step(context): """Remove broken persistent import step. profile/import_steps.xml defined an import step with id "pas.plugins.ldap.setup" which pointed to pas.plugins.ldap.setuphandlers.setupPlugin. This function no longer exists, and the import step is not needed, because a post_install handler is now used for this. But you get an error in the log whenever you import a profile: GenericSetup Step pas.plugins.ldap.setup has an invalid import handler So we remove the step. """ registry = context.getImportStepRegistry() import_step = "pas.plugins.ldap.setup" if import_step in registry._registered: registry.unregisterStep(import_step)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 38836, 13, 37390, 13, 335, 499, 13, 33803, 1330, 27178, 2969, 37233, 198, 6738, 1976, 3008, 13, 42895, 13, 25480, 82, 1330, 651, 29123, 628, 198, 49560, 2538, 796, 366, 11163, 2969, 13877, 357, 44429, 13, 37390, 13, 335, 499, 16725, 628, 198, 4299, 4781, 62, 19276, 7609, 62, 11748, 62, 9662, 7, 22866, 2599, 198, 220, 220, 220, 37227, 27914, 5445, 16218, 1330, 2239, 13, 628, 220, 220, 220, 7034, 14, 11748, 62, 20214, 13, 19875, 5447, 281, 1330, 2239, 351, 4686, 198, 220, 220, 220, 366, 44429, 13, 37390, 13, 335, 499, 13, 40406, 1, 543, 6235, 284, 198, 220, 220, 220, 38836, 13, 37390, 13, 335, 499, 13, 2617, 25689, 392, 8116, 13, 40406, 37233, 13, 198, 220, 220, 220, 770, 2163, 645, 2392, 7160, 11, 290, 262, 1330, 2239, 318, 407, 2622, 11, 198, 220, 220, 220, 780, 257, 1281, 62, 17350, 21360, 318, 783, 973, 329, 428, 13, 198, 220, 220, 220, 887, 345, 651, 281, 4049, 287, 262, 2604, 8797, 345, 1330, 257, 7034, 25, 628, 220, 220, 220, 220, 220, 42044, 40786, 5012, 38836, 13, 37390, 13, 335, 499, 13, 40406, 468, 281, 12515, 1330, 21360, 628, 220, 220, 220, 1406, 356, 4781, 262, 2239, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 20478, 796, 4732, 13, 1136, 20939, 8600, 8081, 4592, 3419, 198, 220, 220, 220, 1330, 62, 9662, 796, 366, 44429, 13, 37390, 13, 335, 499, 13, 40406, 1, 198, 220, 220, 220, 611, 1330, 62, 9662, 287, 20478, 13557, 33736, 25, 198, 220, 220, 220, 220, 220, 220, 220, 20478, 13, 403, 30238, 8600, 7, 11748, 62, 9662, 8, 628, 198 ]
3.09375
288
# Copyright 2016 ZTE Corporation. # # 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. import logging import sys import traceback import threading from lcm.pub.nfvi.vim.api.openstack import glancebase from lcm.pub.nfvi.vim.lib.syscomm import fun_name from lcm.pub.nfvi.vim import const logger = logging.getLogger(__name__)
[ 2, 15069, 1584, 1168, 9328, 10501, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 198, 2, 198, 2, 17486, 2672, 416, 9723, 1099, 393, 4987, 284, 287, 3597, 11, 3788, 198, 2, 9387, 739, 262, 13789, 318, 9387, 319, 281, 366, 1921, 3180, 1, 29809, 1797, 11, 198, 2, 42881, 34764, 11015, 6375, 7102, 49828, 11053, 3963, 15529, 509, 12115, 11, 2035, 4911, 393, 17142, 13, 198, 2, 4091, 262, 13789, 329, 262, 2176, 3303, 15030, 21627, 290, 198, 2, 11247, 739, 262, 13789, 13, 198, 198, 11748, 18931, 198, 11748, 25064, 198, 11748, 12854, 1891, 198, 11748, 4704, 278, 198, 198, 6738, 300, 11215, 13, 12984, 13, 77, 69, 8903, 13, 31124, 13, 15042, 13, 9654, 25558, 1330, 16086, 8692, 198, 6738, 300, 11215, 13, 12984, 13, 77, 69, 8903, 13, 31124, 13, 8019, 13, 17597, 9503, 1330, 1257, 62, 3672, 198, 6738, 300, 11215, 13, 12984, 13, 77, 69, 8903, 13, 31124, 1330, 1500, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 628, 628, 198 ]
3.411523
243
"""This script is responsible for building the API reference. The API reference is located in docs/api. The script scans through all the modules, classes, and functions. It processes the __doc__ of each object and formats it so that MkDocs can process it in turn. """ import argparse import functools import importlib import inspect import os import pathlib import re import shutil from numpydoc.docscrape import ClassDoc, FunctionDoc from yamp import md from yamp import utils def print_docstring(obj, file, depth, linkifier): """Prints a classes's docstring to a file.""" doc = ClassDoc(obj) if inspect.isclass(obj) else FunctionDoc(obj) printf = functools.partial(print, file=file) printf(md.h1(obj.__name__)) printf(linkifier.linkify_fences(md.line(concat_lines(doc["Summary"])), depth)) printf( linkifier.linkify_fences(md.line(concat_lines(doc["Extended Summary"])), depth) ) # We infer the type annotations from the signatures, and therefore rely on the signature # instead of the docstring for documenting parameters try: signature = inspect.signature(obj) except ValueError: signature = ( inspect.Signature() ) # TODO: this is necessary for Cython classes, but it's not correct params_desc = {param.name: " ".join(param.desc) for param in doc["Parameters"]} # Parameters if signature.parameters: printf(md.h2("Parameters")) for param in signature.parameters.values(): # Name printf(f"- **{param.name}**", end="") # Type annotation if param.annotation is not param.empty: anno = inspect.formatannotation(param.annotation) anno = linkifier.linkify_dotted(anno, depth) printf(f" (*{anno}*)", end="") # Default value if param.default is not param.empty: printf(f" – defaults to `{param.default}`", end="") printf("\n", file=file) # Description desc = params_desc[param.name] if desc: printf(f" {desc}\n") printf("") # Attributes if doc["Attributes"]: printf(md.h2("Attributes")) for attr in doc["Attributes"]: # Name printf(f"- **{attr.name}**", end="") # Type annotation if attr.type: printf(f" (*{attr.type}*)", end="") printf("\n", file=file) # Description desc = " ".join(attr.desc) if desc: printf(f" {desc}\n") printf("") # Examples if doc["Examples"]: printf(md.h2("Examples")) in_code = False after_space = False for line in inspect.cleandoc("\n".join(doc["Examples"])).splitlines(): if ( in_code and after_space and line and not line.startswith(">>>") and not line.startswith("...") ): printf("```\n") in_code = False after_space = False if not in_code and line.startswith(">>>"): printf("```python") in_code = True after_space = False if not line: after_space = True printf(line) if in_code: printf("```") printf("") # Methods if inspect.isclass(obj) and doc["Methods"]: printf(md.h2("Methods")) printf_indent = lambda x, **kwargs: printf(f" {x}", **kwargs) for meth in doc["Methods"]: printf(md.line(f'???- note "{meth.name}"')) # Parse method docstring docstring = utils.find_method_docstring(klass=obj, method=meth.name) if not docstring: continue meth_doc = FunctionDoc(func=None, doc=docstring) printf_indent(md.line(" ".join(meth_doc["Summary"]))) if meth_doc["Extended Summary"]: printf_indent(md.line(" ".join(meth_doc["Extended Summary"]))) # We infer the type annotations from the signatures, and therefore rely on the signature # instead of the docstring for documenting parameters signature = utils.find_method_signature(obj, meth.name) params_desc = { param.name: " ".join(param.desc) for param in doc["Parameters"] } # Parameters if ( len(signature.parameters) > 1 ): # signature is never empty, but self doesn't count printf_indent("**Parameters**\n") for param in signature.parameters.values(): if param.name == "self": continue # Name printf_indent(f"- **{param.name}**", end="") # Type annotation if param.annotation is not param.empty: printf_indent( f" (*{inspect.formatannotation(param.annotation)}*)", end="" ) # Default value if param.default is not param.empty: printf_indent(f" – defaults to `{param.default}`", end="") printf_indent("", file=file) # Description desc = params_desc.get(param.name) if desc: printf_indent(f" {desc}") printf_indent("") # Returns if meth_doc["Returns"]: printf_indent("**Returns**\n") return_val = meth_doc["Returns"][0] if signature.return_annotation is not inspect._empty: if inspect.isclass(signature.return_annotation): printf_indent( f"*{signature.return_annotation.__name__}*: ", end="" ) else: printf_indent(f"*{signature.return_annotation}*: ", end="") printf_indent(return_val.type) printf_indent("") # Notes if doc["Notes"]: printf(md.h2("Notes")) printf(md.line("\n".join(doc["Notes"]))) # References if doc["References"]: printf(md.h2("References")) printf(md.line("\n".join(doc["References"]))) def cli_hook(): """Command-line interface.""" parser = argparse.ArgumentParser() parser.add_argument( "library", nargs="?", help="the library to document", ) parser.add_argument("--out", default="docs/api", help="where to dump the docs") parser.add_argument("--verbose", dest="verbose", action="store_true") parser.set_defaults(verbose=False) args = parser.parse_args() print_library( library=args.library, output_dir=pathlib.Path(args.out), verbose=args.verbose )
[ 37811, 1212, 4226, 318, 4497, 329, 2615, 262, 7824, 4941, 13, 383, 7824, 4941, 318, 5140, 287, 198, 31628, 14, 15042, 13, 383, 4226, 23824, 832, 477, 262, 13103, 11, 6097, 11, 290, 5499, 13, 632, 7767, 198, 1169, 11593, 15390, 834, 286, 1123, 2134, 290, 17519, 340, 523, 326, 24798, 23579, 82, 460, 1429, 340, 287, 1210, 13, 198, 198, 37811, 198, 11748, 1822, 29572, 198, 11748, 1257, 310, 10141, 198, 11748, 1330, 8019, 198, 11748, 10104, 198, 11748, 28686, 198, 11748, 3108, 8019, 198, 11748, 302, 198, 11748, 4423, 346, 198, 198, 6738, 299, 931, 5173, 420, 13, 15390, 1416, 13484, 1330, 5016, 23579, 11, 15553, 23579, 198, 198, 6738, 331, 696, 1330, 45243, 198, 6738, 331, 696, 1330, 3384, 4487, 628, 628, 198, 4299, 3601, 62, 15390, 8841, 7, 26801, 11, 2393, 11, 6795, 11, 2792, 7483, 2599, 198, 220, 220, 220, 37227, 18557, 82, 257, 6097, 338, 2205, 8841, 284, 257, 2393, 526, 15931, 628, 220, 220, 220, 2205, 796, 5016, 23579, 7, 26801, 8, 611, 10104, 13, 271, 4871, 7, 26801, 8, 2073, 15553, 23579, 7, 26801, 8, 628, 220, 220, 220, 30812, 796, 1257, 310, 10141, 13, 47172, 7, 4798, 11, 2393, 28, 7753, 8, 628, 220, 220, 220, 30812, 7, 9132, 13, 71, 16, 7, 26801, 13, 834, 3672, 834, 4008, 198, 220, 220, 220, 30812, 7, 8726, 7483, 13, 8726, 1958, 62, 69, 3007, 7, 9132, 13, 1370, 7, 1102, 9246, 62, 6615, 7, 15390, 14692, 22093, 8973, 36911, 6795, 4008, 198, 220, 220, 220, 30812, 7, 198, 220, 220, 220, 220, 220, 220, 220, 2792, 7483, 13, 8726, 1958, 62, 69, 3007, 7, 9132, 13, 1370, 7, 1102, 9246, 62, 6615, 7, 15390, 14692, 11627, 1631, 21293, 8973, 36911, 6795, 8, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 1303, 775, 13249, 262, 2099, 37647, 422, 262, 17239, 11, 290, 4361, 8814, 319, 262, 9877, 198, 220, 220, 220, 1303, 2427, 286, 262, 2205, 8841, 329, 33045, 10007, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 9877, 796, 10104, 13, 12683, 1300, 7, 26801, 8, 198, 220, 220, 220, 2845, 11052, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 9877, 796, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10104, 13, 11712, 1300, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 220, 1303, 16926, 46, 25, 428, 318, 3306, 329, 327, 7535, 6097, 11, 475, 340, 338, 407, 3376, 198, 220, 220, 220, 42287, 62, 20147, 796, 1391, 17143, 13, 3672, 25, 366, 27071, 22179, 7, 17143, 13, 20147, 8, 329, 5772, 287, 2205, 14692, 48944, 8973, 92, 628, 220, 220, 220, 1303, 40117, 198, 220, 220, 220, 611, 9877, 13, 17143, 7307, 25, 198, 220, 220, 220, 220, 220, 220, 220, 30812, 7, 9132, 13, 71, 17, 7203, 48944, 48774, 198, 220, 220, 220, 329, 5772, 287, 9877, 13, 17143, 7307, 13, 27160, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 6530, 198, 220, 220, 220, 220, 220, 220, 220, 30812, 7, 69, 26793, 12429, 90, 17143, 13, 3672, 92, 1174, 1600, 886, 2625, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 5994, 23025, 198, 220, 220, 220, 220, 220, 220, 220, 611, 5772, 13, 1236, 14221, 318, 407, 5772, 13, 28920, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1529, 78, 796, 10104, 13, 18982, 1236, 14221, 7, 17143, 13, 1236, 14221, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1529, 78, 796, 2792, 7483, 13, 8726, 1958, 62, 67, 8426, 7, 1236, 78, 11, 6795, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 7, 69, 1, 20789, 90, 1236, 78, 92, 28104, 1600, 886, 2625, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 15161, 1988, 198, 220, 220, 220, 220, 220, 220, 220, 611, 5772, 13, 12286, 318, 407, 5772, 13, 28920, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 7, 69, 1, 784, 26235, 284, 4600, 90, 17143, 13, 12286, 92, 63, 1600, 886, 2625, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 30812, 7203, 59, 77, 1600, 2393, 28, 7753, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 12489, 198, 220, 220, 220, 220, 220, 220, 220, 1715, 796, 42287, 62, 20147, 58, 17143, 13, 3672, 60, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1715, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 7, 69, 1, 220, 220, 220, 1391, 20147, 32239, 77, 4943, 198, 220, 220, 220, 30812, 7203, 4943, 628, 220, 220, 220, 1303, 49213, 198, 220, 220, 220, 611, 2205, 14692, 29021, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 30812, 7, 9132, 13, 71, 17, 7203, 29021, 48774, 198, 220, 220, 220, 329, 708, 81, 287, 2205, 14692, 29021, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 6530, 198, 220, 220, 220, 220, 220, 220, 220, 30812, 7, 69, 26793, 12429, 90, 35226, 13, 3672, 92, 1174, 1600, 886, 2625, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 5994, 23025, 198, 220, 220, 220, 220, 220, 220, 220, 611, 708, 81, 13, 4906, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 7, 69, 1, 20789, 90, 35226, 13, 4906, 92, 28104, 1600, 886, 2625, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 30812, 7203, 59, 77, 1600, 2393, 28, 7753, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 12489, 198, 220, 220, 220, 220, 220, 220, 220, 1715, 796, 366, 27071, 22179, 7, 35226, 13, 20147, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1715, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 7, 69, 1, 220, 220, 220, 1391, 20147, 32239, 77, 4943, 198, 220, 220, 220, 30812, 7203, 4943, 628, 220, 220, 220, 1303, 21066, 198, 220, 220, 220, 611, 2205, 14692, 27730, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 30812, 7, 9132, 13, 71, 17, 7203, 27730, 48774, 628, 220, 220, 220, 220, 220, 220, 220, 287, 62, 8189, 796, 10352, 198, 220, 220, 220, 220, 220, 220, 220, 706, 62, 13200, 796, 10352, 628, 220, 220, 220, 220, 220, 220, 220, 329, 1627, 287, 10104, 13, 2375, 392, 420, 7203, 59, 77, 1911, 22179, 7, 15390, 14692, 27730, 8973, 29720, 35312, 6615, 33529, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 287, 62, 8189, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 290, 706, 62, 13200, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 290, 1627, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 290, 407, 1627, 13, 9688, 2032, 342, 7203, 33409, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 290, 407, 1627, 13, 9688, 2032, 342, 7203, 9313, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15179, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 7203, 15506, 63, 59, 77, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 287, 62, 8189, 796, 10352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 706, 62, 13200, 796, 10352, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 407, 287, 62, 8189, 290, 1627, 13, 9688, 2032, 342, 7203, 4211, 24618, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 7203, 15506, 63, 29412, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 287, 62, 8189, 796, 6407, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 706, 62, 13200, 796, 10352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 407, 1627, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 706, 62, 13200, 796, 6407, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 7, 1370, 8, 628, 220, 220, 220, 220, 220, 220, 220, 611, 287, 62, 8189, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 7203, 15506, 63, 4943, 198, 220, 220, 220, 30812, 7203, 4943, 628, 220, 220, 220, 1303, 25458, 198, 220, 220, 220, 611, 10104, 13, 271, 4871, 7, 26801, 8, 290, 2205, 14692, 46202, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 30812, 7, 9132, 13, 71, 17, 7203, 46202, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 30812, 62, 521, 298, 796, 37456, 2124, 11, 12429, 46265, 22046, 25, 30812, 7, 69, 1, 220, 220, 220, 1391, 87, 92, 1600, 12429, 46265, 22046, 8, 628, 220, 220, 220, 220, 220, 220, 220, 329, 11248, 287, 2205, 14692, 46202, 1, 5974, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 7, 9132, 13, 1370, 7, 69, 6, 28358, 12, 3465, 45144, 76, 2788, 13, 3672, 92, 30543, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 2547, 325, 2446, 2205, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2205, 8841, 796, 3384, 4487, 13, 19796, 62, 24396, 62, 15390, 8841, 7, 74, 31172, 28, 26801, 11, 2446, 28, 76, 2788, 13, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 407, 2205, 8841, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11248, 62, 15390, 796, 15553, 23579, 7, 20786, 28, 14202, 11, 2205, 28, 15390, 8841, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 62, 521, 298, 7, 9132, 13, 1370, 7203, 27071, 22179, 7, 76, 2788, 62, 15390, 14692, 22093, 8973, 22305, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 11248, 62, 15390, 14692, 11627, 1631, 21293, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 62, 521, 298, 7, 9132, 13, 1370, 7203, 27071, 22179, 7, 76, 2788, 62, 15390, 14692, 11627, 1631, 21293, 8973, 22305, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 775, 13249, 262, 2099, 37647, 422, 262, 17239, 11, 290, 4361, 8814, 319, 262, 9877, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 2427, 286, 262, 2205, 8841, 329, 33045, 10007, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9877, 796, 3384, 4487, 13, 19796, 62, 24396, 62, 12683, 1300, 7, 26801, 11, 11248, 13, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42287, 62, 20147, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5772, 13, 3672, 25, 366, 27071, 22179, 7, 17143, 13, 20147, 8, 329, 5772, 287, 2205, 14692, 48944, 8973, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 40117, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18896, 7, 12683, 1300, 13, 17143, 7307, 8, 1875, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15179, 220, 1303, 9877, 318, 1239, 6565, 11, 475, 2116, 1595, 470, 954, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 62, 521, 298, 7203, 1174, 48944, 1174, 59, 77, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 5772, 287, 9877, 13, 17143, 7307, 13, 27160, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 5772, 13, 3672, 6624, 366, 944, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 6530, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 62, 521, 298, 7, 69, 26793, 12429, 90, 17143, 13, 3672, 92, 1174, 1600, 886, 2625, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 5994, 23025, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 5772, 13, 1236, 14221, 318, 407, 5772, 13, 28920, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 62, 521, 298, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 1, 20789, 90, 1040, 806, 13, 18982, 1236, 14221, 7, 17143, 13, 1236, 14221, 38165, 28104, 1600, 886, 33151, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 15161, 1988, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 5772, 13, 12286, 318, 407, 5772, 13, 28920, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 62, 521, 298, 7, 69, 1, 784, 26235, 284, 4600, 90, 17143, 13, 12286, 92, 63, 1600, 886, 2625, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 62, 521, 298, 7203, 1600, 2393, 28, 7753, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 12489, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1715, 796, 42287, 62, 20147, 13, 1136, 7, 17143, 13, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1715, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 62, 521, 298, 7, 69, 1, 220, 220, 220, 1391, 20147, 92, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 62, 521, 298, 7203, 4943, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 16409, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 11248, 62, 15390, 14692, 35561, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 62, 521, 298, 7203, 1174, 35561, 1174, 59, 77, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 62, 2100, 796, 11248, 62, 15390, 14692, 35561, 1, 7131, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 9877, 13, 7783, 62, 1236, 14221, 318, 407, 10104, 13557, 28920, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 10104, 13, 271, 4871, 7, 12683, 1300, 13, 7783, 62, 1236, 14221, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 62, 521, 298, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 1, 9, 90, 12683, 1300, 13, 7783, 62, 1236, 14221, 13, 834, 3672, 834, 92, 47026, 33172, 886, 33151, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 62, 521, 298, 7, 69, 1, 9, 90, 12683, 1300, 13, 7783, 62, 1236, 14221, 92, 47026, 33172, 886, 2625, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 62, 521, 298, 7, 7783, 62, 2100, 13, 4906, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30812, 62, 521, 298, 7203, 4943, 628, 220, 220, 220, 1303, 11822, 198, 220, 220, 220, 611, 2205, 14692, 16130, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 30812, 7, 9132, 13, 71, 17, 7203, 16130, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 30812, 7, 9132, 13, 1370, 7203, 59, 77, 1911, 22179, 7, 15390, 14692, 16130, 8973, 22305, 628, 220, 220, 220, 1303, 31458, 198, 220, 220, 220, 611, 2205, 14692, 19927, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 30812, 7, 9132, 13, 71, 17, 7203, 19927, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 30812, 7, 9132, 13, 1370, 7203, 59, 77, 1911, 22179, 7, 15390, 14692, 19927, 8973, 22305, 628, 628, 198, 4299, 537, 72, 62, 25480, 33529, 198, 220, 220, 220, 37227, 21575, 12, 1370, 7071, 526, 15931, 198, 220, 220, 220, 30751, 796, 1822, 29572, 13, 28100, 1713, 46677, 3419, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 7, 198, 220, 220, 220, 220, 220, 220, 220, 366, 32016, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 299, 22046, 2625, 35379, 198, 220, 220, 220, 220, 220, 220, 220, 1037, 2625, 1169, 5888, 284, 3188, 1600, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 7203, 438, 448, 1600, 4277, 2625, 31628, 14, 15042, 1600, 1037, 2625, 3003, 284, 10285, 262, 34165, 4943, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 7203, 438, 19011, 577, 1600, 2244, 2625, 19011, 577, 1600, 2223, 2625, 8095, 62, 7942, 4943, 198, 220, 220, 220, 30751, 13, 2617, 62, 12286, 82, 7, 19011, 577, 28, 25101, 8, 198, 220, 220, 220, 26498, 796, 30751, 13, 29572, 62, 22046, 3419, 198, 220, 220, 220, 3601, 62, 32016, 7, 198, 220, 220, 220, 220, 220, 220, 220, 5888, 28, 22046, 13, 32016, 11, 5072, 62, 15908, 28, 6978, 8019, 13, 15235, 7, 22046, 13, 448, 828, 15942, 577, 28, 22046, 13, 19011, 577, 198, 220, 220, 220, 1267, 198 ]
2.121015
3,231
# Script to run several runs after each other. The runs are specified by the run-configurations # located in the folder runs/several_runs/ import sys import os sys.path.append('..') import run_script run_files = os.listdir("runs/several_runs/") run_files.sort() for run_file_name in run_files: try: run_script.main(["run_several.py", run_file_name], "runs/several_runs/") except Exception as e: print((str(type(e)) + ": " + str(e)).replace('\n', ' ')) #os.system("shutdown now -h")
[ 2, 12327, 284, 1057, 1811, 4539, 706, 1123, 584, 13, 383, 4539, 389, 7368, 416, 262, 1057, 12, 11250, 20074, 220, 198, 2, 5140, 287, 262, 9483, 4539, 14, 28116, 282, 62, 48381, 14, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 198, 17597, 13, 6978, 13, 33295, 10786, 492, 11537, 198, 11748, 1057, 62, 12048, 198, 198, 5143, 62, 16624, 796, 28686, 13, 4868, 15908, 7203, 48381, 14, 28116, 282, 62, 48381, 14, 4943, 198, 5143, 62, 16624, 13, 30619, 3419, 198, 198, 1640, 1057, 62, 7753, 62, 3672, 287, 1057, 62, 16624, 25, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1057, 62, 12048, 13, 12417, 7, 14692, 5143, 62, 28116, 282, 13, 9078, 1600, 1057, 62, 7753, 62, 3672, 4357, 366, 48381, 14, 28116, 282, 62, 48381, 14, 4943, 198, 220, 220, 220, 2845, 35528, 355, 304, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 19510, 2536, 7, 4906, 7, 68, 4008, 1343, 366, 25, 366, 1343, 965, 7, 68, 29720, 33491, 10786, 59, 77, 3256, 705, 705, 4008, 198, 2, 418, 13, 10057, 7203, 49625, 2902, 783, 532, 71, 4943 ]
2.65625
192
from django.db import models from Client.models import Student, Parent, Teacher, Subject, Course from django.contrib.auth.models import User
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 20985, 13, 27530, 1330, 13613, 11, 16774, 11, 32019, 11, 15540, 11, 20537, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 628, 198 ]
3.864865
37
# stdlib from typing import List from typing import Optional # syft relative from .serde.serializable import Serializable from .uid import UID
[ 2, 14367, 8019, 198, 6738, 19720, 1330, 7343, 198, 6738, 19720, 1330, 32233, 198, 198, 2, 827, 701, 3585, 198, 6738, 764, 2655, 2934, 13, 46911, 13821, 1330, 23283, 13821, 198, 6738, 764, 27112, 1330, 25105, 628 ]
3.918919
37
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from .. import _utilities, _tables from . import outputs from ._inputs import * __all__ = ['DataTransferConfig']
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 24118, 687, 10290, 357, 27110, 5235, 8, 16984, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760, 644, 345, 389, 1804, 0, 17202, 198, 198, 11748, 14601, 198, 11748, 17472, 12994, 198, 11748, 17472, 12994, 13, 43282, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 11, 337, 5912, 11, 32233, 11, 309, 29291, 11, 4479, 198, 6738, 11485, 1330, 4808, 315, 2410, 11, 4808, 83, 2977, 198, 6738, 764, 1330, 23862, 198, 6738, 47540, 15414, 82, 1330, 1635, 198, 198, 834, 439, 834, 796, 37250, 6601, 43260, 16934, 20520, 628, 198 ]
3.537815
119
# -*- coding: utf-8 -*- """Tags for dependency injection.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from django import template from ralph.util.di import get_extra_data register = template.Library() @register.simple_tag
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 36142, 329, 20203, 16954, 526, 15931, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 1330, 11055, 198, 198, 6738, 374, 17307, 13, 22602, 13, 10989, 1330, 651, 62, 26086, 62, 7890, 198, 198, 30238, 796, 11055, 13, 23377, 3419, 628, 198, 31, 30238, 13, 36439, 62, 12985, 198 ]
3.463918
97
import sys import os.path from urlparse import urljoin import time import urllib2 from bs4 import BeautifulSoup
[ 11748, 25064, 198, 11748, 28686, 13, 6978, 198, 6738, 19016, 29572, 1330, 19016, 22179, 198, 11748, 640, 198, 11748, 2956, 297, 571, 17, 198, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 628, 220, 220, 220, 220, 220, 220, 220, 220 ]
2.904762
42
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __all__ = [ 'ListRemoteRenderingAccountKeysResult', 'AwaitableListRemoteRenderingAccountKeysResult', 'list_remote_rendering_account_keys', ] @pulumi.output_type class ListRemoteRenderingAccountKeysResult: """ Developer Keys of account """ @property @pulumi.getter(name="primaryKey") def primary_key(self) -> str: """ value of primary key. """ return pulumi.get(self, "primary_key") @property @pulumi.getter(name="secondaryKey") def secondary_key(self) -> str: """ value of secondary key. """ return pulumi.get(self, "secondary_key") # pylint: disable=using-constant-test def list_remote_rendering_account_keys(account_name: Optional[str] = None, resource_group_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListRemoteRenderingAccountKeysResult: """ Developer Keys of account :param str account_name: Name of an Mixed Reality Account. :param str resource_group_name: Name of an Azure resource group. """ __args__ = dict() __args__['accountName'] = account_name __args__['resourceGroupName'] = resource_group_name if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke('azure-native:mixedreality/v20210301preview:listRemoteRenderingAccountKeys', __args__, opts=opts, typ=ListRemoteRenderingAccountKeysResult).value return AwaitableListRemoteRenderingAccountKeysResult( primary_key=__ret__.primary_key, secondary_key=__ret__.secondary_key)
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 26144, 35986, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760, 644, 345, 389, 1804, 0, 17202, 198, 198, 11748, 14601, 198, 11748, 17472, 12994, 198, 11748, 17472, 12994, 13, 43282, 198, 6738, 19720, 1330, 4377, 11, 337, 5912, 11, 32233, 11, 45835, 11, 4479, 11, 31754, 198, 6738, 2644, 1330, 4808, 315, 2410, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 705, 8053, 36510, 49, 437, 1586, 30116, 40729, 23004, 3256, 198, 220, 220, 220, 705, 32, 17077, 540, 8053, 36510, 49, 437, 1586, 30116, 40729, 23004, 3256, 198, 220, 220, 220, 705, 4868, 62, 47960, 62, 13287, 278, 62, 23317, 62, 13083, 3256, 198, 60, 198, 198, 31, 79, 377, 12994, 13, 22915, 62, 4906, 198, 4871, 7343, 36510, 49, 437, 1586, 30116, 40729, 23004, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 23836, 26363, 286, 1848, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 2488, 79, 377, 12994, 13, 1136, 353, 7, 3672, 2625, 39754, 9218, 4943, 198, 220, 220, 220, 825, 4165, 62, 2539, 7, 944, 8, 4613, 965, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 286, 4165, 1994, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 17472, 12994, 13, 1136, 7, 944, 11, 366, 39754, 62, 2539, 4943, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 2488, 79, 377, 12994, 13, 1136, 353, 7, 3672, 2625, 38238, 9218, 4943, 198, 220, 220, 220, 825, 9233, 62, 2539, 7, 944, 8, 4613, 965, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 286, 9233, 1994, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 17472, 12994, 13, 1136, 7, 944, 11, 366, 38238, 62, 2539, 4943, 628, 220, 220, 220, 1303, 279, 2645, 600, 25, 15560, 28, 3500, 12, 9979, 415, 12, 9288, 628, 198, 4299, 1351, 62, 47960, 62, 13287, 278, 62, 23317, 62, 13083, 7, 23317, 62, 3672, 25, 32233, 58, 2536, 60, 796, 6045, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8271, 62, 8094, 62, 3672, 25, 32233, 58, 2536, 60, 796, 6045, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2172, 82, 25, 32233, 58, 79, 377, 12994, 13, 19904, 2088, 29046, 60, 796, 6045, 8, 4613, 5851, 4548, 540, 8053, 36510, 49, 437, 1586, 30116, 40729, 23004, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 23836, 26363, 286, 1848, 628, 198, 220, 220, 220, 1058, 17143, 965, 1848, 62, 3672, 25, 6530, 286, 281, 35250, 22520, 10781, 13, 198, 220, 220, 220, 1058, 17143, 965, 8271, 62, 8094, 62, 3672, 25, 6530, 286, 281, 22134, 8271, 1448, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11593, 22046, 834, 796, 8633, 3419, 198, 220, 220, 220, 11593, 22046, 834, 17816, 23317, 5376, 20520, 796, 1848, 62, 3672, 198, 220, 220, 220, 11593, 22046, 834, 17816, 31092, 13247, 5376, 20520, 796, 8271, 62, 8094, 62, 3672, 198, 220, 220, 220, 611, 2172, 82, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2172, 82, 796, 17472, 12994, 13, 19904, 2088, 29046, 3419, 198, 220, 220, 220, 611, 2172, 82, 13, 9641, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2172, 82, 13, 9641, 796, 4808, 315, 2410, 13, 1136, 62, 9641, 3419, 198, 220, 220, 220, 11593, 1186, 834, 796, 17472, 12994, 13, 43282, 13, 37669, 10786, 1031, 495, 12, 30191, 25, 76, 2966, 46290, 14, 85, 19004, 15197, 486, 3866, 1177, 25, 4868, 36510, 49, 437, 1586, 30116, 40729, 3256, 11593, 22046, 834, 11, 2172, 82, 28, 404, 912, 11, 2170, 28, 8053, 36510, 49, 437, 1586, 30116, 40729, 23004, 737, 8367, 628, 220, 220, 220, 1441, 5851, 4548, 540, 8053, 36510, 49, 437, 1586, 30116, 40729, 23004, 7, 198, 220, 220, 220, 220, 220, 220, 220, 4165, 62, 2539, 28, 834, 1186, 834, 13, 39754, 62, 2539, 11, 198, 220, 220, 220, 220, 220, 220, 220, 9233, 62, 2539, 28, 834, 1186, 834, 13, 38238, 62, 2539, 8, 198 ]
2.598742
795
# Generated by Django 3.1.5 on 2021-03-24 21:08 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 20, 319, 33448, 12, 3070, 12, 1731, 2310, 25, 2919, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, 628 ]
2.818182
44
from core import models from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin """Need to import the default Django user admin, need to change some of the class variables to support our custom user admin using email instead of username""" from django.utils.translation import gettext as _ """Import gettext function to convert strings in python to human readable text, in this context, the strings get passed through the transalation engine so we're not doing anything with translation. If you want to extend the code to support multiple languages then this would make easier for you to do that bcoz you just set up the transalation files and then it'll convert the text appropriately""" class UserAdmin(BaseUserAdmin): """"Create our custom user admin by extending the BaseUserAdmin""" ordering = ['id'] list_display = ['email', 'name'] """Define the field set for test 2, each bracket is a section, 1st section: no title, contains 2 fields email, pw 2nd section: title: personal info, contains 1 field, needs to add a comma after the only field otherwise it'll be recognised as a string and won't work 3rd section: permission, contains 3 fields 4th section: Important dates, contains 1 field""" fieldsets = ( (None, {'fields': ('email', 'password')}), (_('Personal Info'), {'fields': ('name',)}), ( _('Permissions'), {'fields': ('is_active', 'is_staff', 'is_superuser')} ), (_('Important dates'), {'fields': ('last_login',)}), ) """Define the additional field set for test 3 to include email, password, password 2 to create a new user. The user admin by default takes an add field sets which defines the fields that you include on the add page which is the same as the create user page, remember to add the comma at the end of the first item as it's the only item, w/o the comma, python will be confused it as a string. Classes assigned to the form: default option""" add_fieldsets = ( (None, { 'classes': ('wide',), 'fields': ('email', 'password1', 'password2') }), ) admin.site.register(models.User, UserAdmin) """Register the site in the Django admin"""
[ 6738, 4755, 1330, 4981, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 28482, 1330, 11787, 46787, 355, 7308, 12982, 46787, 198, 37811, 23037, 284, 1330, 262, 4277, 37770, 2836, 13169, 11, 761, 284, 1487, 617, 198, 1659, 262, 1398, 9633, 284, 1104, 674, 2183, 2836, 13169, 1262, 3053, 198, 38070, 286, 20579, 37811, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 651, 5239, 355, 4808, 198, 37811, 20939, 651, 5239, 2163, 284, 10385, 13042, 287, 21015, 284, 1692, 198, 46155, 2420, 11, 287, 428, 4732, 11, 262, 13042, 651, 3804, 832, 262, 198, 7645, 282, 341, 3113, 523, 356, 821, 407, 1804, 1997, 351, 11059, 13, 198, 1532, 345, 765, 284, 9117, 262, 2438, 284, 1104, 3294, 8950, 788, 428, 198, 19188, 787, 4577, 329, 345, 284, 466, 326, 275, 1073, 89, 345, 655, 900, 510, 262, 1007, 282, 341, 198, 16624, 290, 788, 340, 1183, 10385, 262, 2420, 20431, 37811, 628, 198, 4871, 11787, 46787, 7, 14881, 12982, 46787, 2599, 198, 220, 220, 220, 13538, 15931, 16447, 674, 2183, 2836, 13169, 416, 16610, 262, 7308, 12982, 46787, 37811, 198, 220, 220, 220, 16216, 796, 37250, 312, 20520, 198, 220, 220, 220, 1351, 62, 13812, 796, 37250, 12888, 3256, 705, 3672, 20520, 198, 220, 220, 220, 37227, 7469, 500, 262, 2214, 900, 329, 1332, 362, 11, 1123, 19096, 318, 257, 2665, 11, 198, 220, 220, 220, 352, 301, 2665, 25, 645, 3670, 11, 4909, 362, 7032, 3053, 11, 279, 86, 198, 220, 220, 220, 362, 358, 2665, 25, 3670, 25, 2614, 7508, 11, 4909, 352, 2214, 11, 2476, 284, 198, 220, 220, 220, 751, 257, 39650, 706, 262, 691, 2214, 4306, 340, 1183, 307, 20915, 355, 198, 220, 220, 220, 257, 4731, 290, 1839, 470, 670, 198, 220, 220, 220, 513, 4372, 2665, 25, 7170, 11, 4909, 513, 7032, 198, 220, 220, 220, 604, 400, 2665, 25, 28511, 9667, 11, 4909, 352, 2214, 37811, 198, 220, 220, 220, 7032, 1039, 796, 357, 198, 220, 220, 220, 220, 220, 220, 220, 357, 14202, 11, 1391, 6, 25747, 10354, 19203, 12888, 3256, 705, 28712, 11537, 92, 828, 198, 220, 220, 220, 220, 220, 220, 220, 44104, 10786, 30228, 14151, 33809, 1391, 6, 25747, 10354, 19203, 3672, 3256, 38165, 828, 198, 220, 220, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 10786, 5990, 8481, 33809, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1391, 6, 25747, 10354, 19203, 271, 62, 5275, 3256, 705, 271, 62, 28120, 3256, 705, 271, 62, 16668, 7220, 11537, 92, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 44104, 10786, 33796, 9667, 33809, 1391, 6, 25747, 10354, 19203, 12957, 62, 38235, 3256, 38165, 828, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 37227, 7469, 500, 262, 3224, 2214, 900, 329, 1332, 513, 284, 2291, 3053, 11, 198, 220, 220, 220, 9206, 11, 9206, 362, 284, 2251, 257, 649, 2836, 13, 383, 2836, 13169, 416, 198, 220, 220, 220, 4277, 2753, 281, 751, 2214, 5621, 543, 15738, 262, 7032, 326, 345, 198, 220, 220, 220, 2291, 319, 262, 751, 2443, 543, 318, 262, 976, 355, 262, 2251, 2836, 2443, 11, 198, 220, 220, 220, 3505, 284, 751, 262, 39650, 379, 262, 886, 286, 262, 717, 2378, 355, 340, 338, 262, 198, 220, 220, 220, 691, 2378, 11, 266, 14, 78, 262, 39650, 11, 21015, 481, 307, 10416, 340, 355, 257, 4731, 13, 198, 220, 220, 220, 38884, 8686, 284, 262, 1296, 25, 4277, 3038, 37811, 198, 220, 220, 220, 751, 62, 25747, 1039, 796, 357, 198, 220, 220, 220, 220, 220, 220, 220, 357, 14202, 11, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 37724, 10354, 19203, 4421, 3256, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 25747, 10354, 19203, 12888, 3256, 705, 28712, 16, 3256, 705, 28712, 17, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 828, 198, 220, 220, 220, 1267, 628, 198, 28482, 13, 15654, 13, 30238, 7, 27530, 13, 12982, 11, 11787, 46787, 8, 198, 37811, 38804, 262, 2524, 287, 262, 37770, 13169, 37811, 198 ]
3.20306
719
import numpy as np import math from compas.datastructures import Mesh import compas_slicer.utilities as utils import logging import networkx as nx from compas_slicer.slicers.slice_utilities import create_graph_from_mesh_vkeys from compas_slicer.pre_processing.preprocessing_utils.geodesics import get_igl_EXACT_geodesic_distances, \ get_custom_HEAT_geodesic_distances import statistics logger = logging.getLogger('logger') __all__ = ['CompoundTarget', 'blend_union_list', 'stairs_union_list', 'chamfer_union_list'] class CompoundTarget: """ Represents a desired user-provided target. It acts as a key-frame that controls the print paths orientations. After the curved slicing , the print paths will be aligned to the compound target close to its area. The vertices that belong to the target are marked with their vertex attributes; they have data['v_attr'] = value. Attributes ---------- mesh: :class:`compas.datastructures.Mesh` v_attr : str The key of the attribute dict to be checked. value: int The value of the attribute dict with key=v_attr. If in a vertex data[v_attr]==value then the vertex is part of this target. DATA_PATH: str has_blend_union: bool blend_radius : float geodesics_method: str 'exact_igl' exact igl geodesic distances 'heat' custom heat geodesic distances anisotropic_scaling: bool This is not yet implemented """ # --- Neighborhoods clustering def find_targets_connected_components(self): """ Clusters all the vertices that belong to the target into neighborhoods using a graph. Each target can have an arbitrary number of neighborhoods/clusters. Fills in the attributes: self.all_target_vkeys, self.clustered_vkeys, self.number_of_boundaries """ self.all_target_vkeys = [vkey for vkey, data in self.mesh.vertices(data=True) if data[self.v_attr] == self.value] assert len(self.all_target_vkeys) > 0, "There are no vertices in the mesh with the attribute : " \ + self.v_attr + ", value : %d" % self.value + " .Probably you made a " \ "mistake while creating the targets. " G = create_graph_from_mesh_vkeys(self.mesh, self.all_target_vkeys) assert len(list(G.nodes())) == len(self.all_target_vkeys) self.number_of_boundaries = len(list(nx.connected_components(G))) for i, cp in enumerate(nx.connected_components(G)): self.clustered_vkeys.append(list(cp)) logger.info("Compound target with 'boundary'=%d. Number of connected_components : %d" % ( self.value, len(list(nx.connected_components(G))))) # --- Geodesic distances def compute_geodesic_distances(self): """ Computes the geodesic distances from each of the target's neighborhoods to all the mesh vertices. Fills in the distances attributes. """ if self.geodesics_method == 'exact_igl': distances_lists = [get_igl_EXACT_geodesic_distances(self.mesh, vstarts) for vstarts in self.clustered_vkeys] elif self.geodesics_method == 'heat': distances_lists = [get_custom_HEAT_geodesic_distances(self.mesh, vstarts, self.OUTPUT_PATH) for vstarts in self.clustered_vkeys] else: raise ValueError('Unknown geodesics method : ' + self.geodesics_method) distances_lists = [list(dl) for dl in distances_lists] # number_of_boundaries x #V self.update_distances_lists(distances_lists) def update_distances_lists(self, distances_lists): """ Fills in the distances attributes. """ self._distances_lists = distances_lists self._distances_lists_flipped = [] # empty for i in range(self.VN): current_values = [self._distances_lists[list_index][i] for list_index in range(self.number_of_boundaries)] self._distances_lists_flipped.append(current_values) self._np_distances_lists_flipped = np.array(self._distances_lists_flipped) self._max_dist = np.max(self._np_distances_lists_flipped) # --- Uneven weights @property def has_uneven_weights(self): """ Returns True if the target has uneven_weights calculated, False otherwise. """ return len(self.weight_max_per_cluster) > 0 def compute_uneven_boundaries_weight_max(self, other_target): """ If the target has multiple neighborhoods/clusters of vertices, then it computes their maximum distance from the other_target. Based on that it calculates their weight_max for the interpolation process """ if self.number_of_boundaries > 1: ds_avg_HIGH = self.get_boundaries_rel_dist_from_other_target(other_target) max_param = max(ds_avg_HIGH) for i, d in enumerate(ds_avg_HIGH): # offset all distances except the maximum one if abs(d - max_param) > 0.01: # if it isn't the max value ds_avg_HIGH[i] = d + self.offset self.weight_max_per_cluster = [d / max_param for d in ds_avg_HIGH] logger.info('weight_max_per_cluster : ' + str(self.weight_max_per_cluster)) else: logger.info("Did not compute_norm_of_gradient uneven boundaries, target consists of single component") # --- Relation to other target def get_boundaries_rel_dist_from_other_target(self, other_target, avg_type='median'): """ Returns a list, one relative distance value per connected boundary neighborhood. That is the average of the distances of the vertices of that boundary neighborhood from the other_target. """ distances = [] for vi_starts in self.clustered_vkeys: ds = [other_target.get_distance(vi) for vi in vi_starts] if avg_type == 'mean': distances.append(statistics.mean(ds)) else: # 'median' distances.append(statistics.median(ds)) return distances def get_avg_distances_from_other_target(self, other_target): """ Returns the minimum and maximum distance of the vertices of this target from the other_target """ extreme_distances = [] for v_index in other_target.all_target_vkeys: extreme_distances.append(self.get_all_distances()[v_index]) return np.average(np.array(extreme_distances)) ############################# # --- get all distances # All distances def get_all_distances(self): """ Returns the resulting distances per every vertex. """ return [self.get_distance(i) for i in range(self.VN)] def get_all_clusters_distances_dict(self): """ Returns dict. keys: index of connected target neighborhood, value: list, distances (one per vertex). """ return {i: self._distances_lists[i] for i in range(self.number_of_boundaries)} def get_max_dist(self): """ Returns the maximum distance that the target has on a mesh vertex. """ return self._max_dist ############################# # --- per vkey distances def get_all_distances_for_vkey(self, i): """ Returns distances from each cluster separately for vertex i. Smooth union doesn't play here any role. """ return [self._distances_lists[list_index][i] for list_index in range(self.number_of_boundaries)] def get_distance(self, i): """ Return get_distance for vertex with vkey i. """ if self.union_method == 'min': # --- simple union return np.min(self._np_distances_lists_flipped[i]) elif self.union_method == 'smooth': # --- blend (smooth) union return blend_union_list(values=self._np_distances_lists_flipped[i], r=self.union_params[0]) elif self.union_method == 'chamfer': # --- blend (smooth) union return chamfer_union_list(values=self._np_distances_lists_flipped[i], r=self.union_params[0]) elif self.union_method == 'stairs': # --- stairs union return stairs_union_list(values=self._np_distances_lists_flipped[i], r=self.union_params[0], n=self.union_params[1]) else: raise ValueError("Unknown Union method : ", self.union_method) ############################# # --- scalar field smoothing def laplacian_smoothing(self, iterations, strength): """ Smooth the distances on the mesh, using iterative laplacian smoothing. """ L = utils.get_mesh_cotmatrix_igl(self.mesh, fix_boundaries=True) new_distances_lists = [] logger.info('Laplacian smoothing of all distances') for i, a in enumerate(self._distances_lists): a = np.array(a) # a: numpy array containing the attribute to be smoothed for _ in range(iterations): # iterative smoothing a_prime = a + strength * L * a a = a_prime new_distances_lists.append(list(a)) self.update_distances_lists(new_distances_lists) ############################# # ------ output def save_distances(self, name): """ Save distances to json. Saves one list with distance values (one per vertex). Parameters ---------- name: str, name of json to be saved """ utils.save_to_json(self.get_all_distances(), self.OUTPUT_PATH, name) # ------ assign new Mesh def assign_new_mesh(self, mesh): """ When the base mesh changes, a new mesh needs to be assigned. """ mesh.to_json(self.OUTPUT_PATH + "/temp.obj") mesh = Mesh.from_json(self.OUTPUT_PATH + "/temp.obj") self.mesh = mesh self.VN = len(list(self.mesh.vertices())) #################### # unions on lists def blend_union_list(values, r): """ Returns a smooth union of all the elements in the list, with blend radius blend_radius. """ d_result = 9999999 # very big number for d in values: d_result = blend_union(d_result, d, r) return d_result def stairs_union_list(values, r, n): """ Returns a stairs union of all the elements in the list, with blend radius r and number of peaks n-1.""" d_result = 9999999 # very big number for i, d in enumerate(values): d_result = stairs_union(d_result, d, r, n) return d_result #################### # unions on pairs def blend_union(da, db, r): """ Returns a smooth union of the two elements da, db with blend radius blend_radius. """ e = max(r - abs(da - db), 0) return min(da, db) - e * e * 0.25 / r def chamfer_union(a, b, r): """ Returns a chamfer union of the two elements da, db with radius r. """ return min(min(a, b), (a - r + b) * math.sqrt(0.5)) def stairs_union(a, b, r, n): """ Returns a stairs union of the two elements da, db with radius r. """ s = r / n u = b - r return min(min(a, b), 0.5 * (u + a + abs((u - a + s) % (2 * s) - s))) if __name__ == "__main__": pass
[ 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 6738, 552, 292, 13, 19608, 459, 1356, 942, 1330, 47529, 198, 11748, 552, 292, 62, 82, 677, 263, 13, 315, 2410, 355, 3384, 4487, 198, 11748, 18931, 198, 11748, 3127, 87, 355, 299, 87, 198, 6738, 552, 292, 62, 82, 677, 263, 13, 82, 677, 364, 13, 48369, 62, 315, 2410, 1330, 2251, 62, 34960, 62, 6738, 62, 76, 5069, 62, 85, 13083, 198, 6738, 552, 292, 62, 82, 677, 263, 13, 3866, 62, 36948, 13, 3866, 36948, 62, 26791, 13, 469, 4147, 873, 1330, 651, 62, 38686, 62, 6369, 10659, 62, 469, 4147, 291, 62, 17080, 1817, 11, 3467, 198, 220, 220, 220, 651, 62, 23144, 62, 13909, 1404, 62, 469, 4147, 291, 62, 17080, 1817, 198, 198, 11748, 7869, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 10786, 6404, 1362, 11537, 198, 198, 834, 439, 834, 796, 37250, 7293, 633, 21745, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 2436, 437, 62, 24592, 62, 4868, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 17617, 62, 24592, 62, 4868, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 49869, 2232, 62, 24592, 62, 4868, 20520, 628, 198, 4871, 3082, 633, 21745, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1432, 6629, 257, 10348, 2836, 12, 41279, 2496, 13, 632, 6529, 355, 257, 1994, 12, 14535, 326, 6973, 262, 3601, 13532, 198, 220, 220, 220, 11367, 602, 13, 2293, 262, 26929, 49289, 837, 262, 3601, 13532, 481, 307, 19874, 284, 262, 13061, 2496, 1969, 284, 198, 220, 220, 220, 663, 1989, 13, 383, 9421, 1063, 326, 5594, 284, 262, 2496, 389, 7498, 351, 511, 37423, 12608, 26, 484, 423, 198, 220, 220, 220, 1366, 17816, 85, 62, 35226, 20520, 796, 1988, 13, 628, 220, 220, 220, 49213, 198, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 19609, 25, 1058, 4871, 25, 63, 5589, 292, 13, 19608, 459, 1356, 942, 13, 37031, 63, 198, 220, 220, 220, 410, 62, 35226, 1058, 965, 198, 220, 220, 220, 220, 220, 220, 220, 383, 1994, 286, 262, 11688, 8633, 284, 307, 10667, 13, 198, 220, 220, 220, 1988, 25, 493, 198, 220, 220, 220, 220, 220, 220, 220, 383, 1988, 286, 262, 11688, 8633, 351, 1994, 28, 85, 62, 35226, 13, 1002, 287, 257, 37423, 1366, 58, 85, 62, 35226, 60, 855, 8367, 788, 262, 37423, 318, 636, 286, 198, 220, 220, 220, 220, 220, 220, 220, 428, 2496, 13, 198, 220, 220, 220, 42865, 62, 34219, 25, 965, 198, 220, 220, 220, 468, 62, 2436, 437, 62, 24592, 25, 20512, 198, 220, 220, 220, 13516, 62, 42172, 1058, 12178, 198, 220, 220, 220, 4903, 4147, 873, 62, 24396, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 705, 1069, 529, 62, 38686, 6, 220, 2748, 220, 38686, 4903, 4147, 291, 18868, 198, 220, 220, 220, 220, 220, 220, 220, 705, 25080, 6, 220, 220, 2183, 4894, 4903, 4147, 291, 18868, 198, 220, 220, 220, 281, 271, 46084, 62, 1416, 4272, 25, 20512, 198, 220, 220, 220, 220, 220, 220, 220, 770, 318, 407, 1865, 9177, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 1303, 220, 11420, 37914, 82, 32966, 1586, 198, 220, 220, 220, 825, 1064, 62, 83, 853, 1039, 62, 15236, 62, 5589, 3906, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1012, 13654, 477, 262, 9421, 1063, 326, 5594, 284, 262, 2496, 656, 14287, 1262, 257, 4823, 13, 198, 220, 220, 220, 220, 220, 220, 220, 5501, 2496, 460, 423, 281, 14977, 1271, 286, 14287, 14, 565, 13654, 13, 198, 220, 220, 220, 220, 220, 220, 220, 376, 2171, 287, 262, 12608, 25, 2116, 13, 439, 62, 16793, 62, 85, 13083, 11, 2116, 13, 565, 436, 1068, 62, 85, 13083, 11, 2116, 13, 17618, 62, 1659, 62, 7784, 3166, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 439, 62, 16793, 62, 85, 13083, 796, 685, 85, 2539, 329, 410, 2539, 11, 1366, 287, 2116, 13, 76, 5069, 13, 1851, 1063, 7, 7890, 28, 17821, 8, 611, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 58, 944, 13, 85, 62, 35226, 60, 6624, 2116, 13, 8367, 60, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 18896, 7, 944, 13, 439, 62, 16793, 62, 85, 13083, 8, 1875, 657, 11, 366, 1858, 389, 645, 9421, 1063, 287, 262, 19609, 351, 262, 11688, 1058, 366, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1343, 2116, 13, 85, 62, 35226, 1343, 33172, 1988, 1058, 4064, 67, 1, 4064, 2116, 13, 8367, 1343, 366, 764, 34784, 345, 925, 257, 366, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 37980, 539, 981, 4441, 262, 6670, 13, 366, 198, 220, 220, 220, 220, 220, 220, 220, 402, 796, 2251, 62, 34960, 62, 6738, 62, 76, 5069, 62, 85, 13083, 7, 944, 13, 76, 5069, 11, 2116, 13, 439, 62, 16793, 62, 85, 13083, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 18896, 7, 4868, 7, 38, 13, 77, 4147, 3419, 4008, 6624, 18896, 7, 944, 13, 439, 62, 16793, 62, 85, 13083, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 17618, 62, 1659, 62, 7784, 3166, 796, 18896, 7, 4868, 7, 77, 87, 13, 15236, 62, 5589, 3906, 7, 38, 22305, 628, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 11, 31396, 287, 27056, 378, 7, 77, 87, 13, 15236, 62, 5589, 3906, 7, 38, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 565, 436, 1068, 62, 85, 13083, 13, 33295, 7, 4868, 7, 13155, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 49706, 13, 10951, 7203, 7293, 633, 2496, 351, 705, 7784, 560, 6, 28, 4, 67, 13, 7913, 286, 5884, 62, 5589, 3906, 1058, 4064, 67, 1, 4064, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 8367, 11, 18896, 7, 4868, 7, 77, 87, 13, 15236, 62, 5589, 3906, 7, 38, 4008, 22305, 628, 220, 220, 220, 1303, 220, 11420, 2269, 4147, 291, 18868, 198, 220, 220, 220, 825, 24061, 62, 469, 4147, 291, 62, 17080, 1817, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 3082, 1769, 262, 4903, 4147, 291, 18868, 422, 1123, 286, 262, 2496, 338, 14287, 220, 284, 477, 262, 19609, 9421, 1063, 13, 198, 220, 220, 220, 220, 220, 220, 220, 376, 2171, 287, 262, 18868, 12608, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 469, 4147, 873, 62, 24396, 6624, 705, 1069, 529, 62, 38686, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18868, 62, 20713, 796, 685, 1136, 62, 38686, 62, 6369, 10659, 62, 469, 4147, 291, 62, 17080, 1817, 7, 944, 13, 76, 5069, 11, 410, 301, 5889, 8, 329, 410, 301, 5889, 287, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 565, 436, 1068, 62, 85, 13083, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 469, 4147, 873, 62, 24396, 6624, 705, 25080, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18868, 62, 20713, 796, 685, 1136, 62, 23144, 62, 13909, 1404, 62, 469, 4147, 291, 62, 17080, 1817, 7, 944, 13, 76, 5069, 11, 410, 301, 5889, 11, 2116, 13, 2606, 7250, 3843, 62, 34219, 8, 329, 410, 301, 5889, 287, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 565, 436, 1068, 62, 85, 13083, 60, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 11052, 12331, 10786, 20035, 4903, 4147, 873, 2446, 1058, 705, 1343, 2116, 13, 469, 4147, 873, 62, 24396, 8, 628, 220, 220, 220, 220, 220, 220, 220, 18868, 62, 20713, 796, 685, 4868, 7, 25404, 8, 329, 288, 75, 287, 18868, 62, 20713, 60, 220, 1303, 1271, 62, 1659, 62, 7784, 3166, 2124, 1303, 53, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19119, 62, 17080, 1817, 62, 20713, 7, 17080, 1817, 62, 20713, 8, 628, 220, 220, 220, 825, 4296, 62, 17080, 1817, 62, 20713, 7, 944, 11, 18868, 62, 20713, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 376, 2171, 287, 262, 18868, 12608, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 17080, 1817, 62, 20713, 796, 18868, 62, 20713, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 17080, 1817, 62, 20713, 62, 2704, 3949, 796, 17635, 220, 1303, 6565, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 2837, 7, 944, 13, 53, 45, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1459, 62, 27160, 796, 685, 944, 13557, 17080, 1817, 62, 20713, 58, 4868, 62, 9630, 7131, 72, 60, 329, 1351, 62, 9630, 287, 2837, 7, 944, 13, 17618, 62, 1659, 62, 7784, 3166, 15437, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 17080, 1817, 62, 20713, 62, 2704, 3949, 13, 33295, 7, 14421, 62, 27160, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 37659, 62, 17080, 1817, 62, 20713, 62, 2704, 3949, 796, 45941, 13, 18747, 7, 944, 13557, 17080, 1817, 62, 20713, 62, 2704, 3949, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 9806, 62, 17080, 796, 45941, 13, 9806, 7, 944, 13557, 37659, 62, 17080, 1817, 62, 20713, 62, 2704, 3949, 8, 628, 220, 220, 220, 1303, 220, 11420, 471, 710, 574, 19590, 198, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 468, 62, 1726, 574, 62, 43775, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 16409, 6407, 611, 262, 2496, 468, 30690, 62, 43775, 10488, 11, 10352, 4306, 13, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 18896, 7, 944, 13, 6551, 62, 9806, 62, 525, 62, 565, 5819, 8, 1875, 657, 628, 220, 220, 220, 825, 24061, 62, 1726, 574, 62, 7784, 3166, 62, 6551, 62, 9806, 7, 944, 11, 584, 62, 16793, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1002, 262, 2496, 468, 3294, 14287, 14, 565, 13654, 286, 9421, 1063, 11, 788, 340, 552, 1769, 511, 5415, 5253, 422, 198, 220, 220, 220, 220, 220, 220, 220, 262, 584, 62, 16793, 13, 13403, 319, 326, 340, 43707, 511, 3463, 62, 9806, 329, 262, 39555, 341, 1429, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 17618, 62, 1659, 62, 7784, 3166, 1875, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 82, 62, 615, 70, 62, 39, 18060, 796, 2116, 13, 1136, 62, 7784, 3166, 62, 2411, 62, 17080, 62, 6738, 62, 847, 62, 16793, 7, 847, 62, 16793, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 17143, 796, 3509, 7, 9310, 62, 615, 70, 62, 39, 18060, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 11, 288, 287, 27056, 378, 7, 9310, 62, 615, 70, 62, 39, 18060, 2599, 220, 1303, 11677, 477, 18868, 2845, 262, 5415, 530, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2352, 7, 67, 532, 3509, 62, 17143, 8, 1875, 657, 13, 486, 25, 220, 1303, 611, 340, 2125, 470, 262, 3509, 1988, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 82, 62, 615, 70, 62, 39, 18060, 58, 72, 60, 796, 288, 1343, 2116, 13, 28968, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 6551, 62, 9806, 62, 525, 62, 565, 5819, 796, 685, 67, 1220, 3509, 62, 17143, 329, 288, 287, 288, 82, 62, 615, 70, 62, 39, 18060, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49706, 13, 10951, 10786, 6551, 62, 9806, 62, 525, 62, 565, 5819, 1058, 705, 1343, 965, 7, 944, 13, 6551, 62, 9806, 62, 525, 62, 565, 5819, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49706, 13, 10951, 7203, 11633, 407, 24061, 62, 27237, 62, 1659, 62, 49607, 30690, 13215, 11, 2496, 10874, 286, 2060, 7515, 4943, 628, 220, 220, 220, 1303, 220, 11420, 4718, 341, 284, 584, 2496, 198, 220, 220, 220, 825, 651, 62, 7784, 3166, 62, 2411, 62, 17080, 62, 6738, 62, 847, 62, 16793, 7, 944, 11, 584, 62, 16793, 11, 42781, 62, 4906, 11639, 1150, 666, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 16409, 257, 1351, 11, 530, 3585, 5253, 1988, 583, 5884, 18645, 6232, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1320, 318, 262, 2811, 286, 262, 18868, 286, 262, 9421, 1063, 286, 326, 18645, 6232, 422, 262, 584, 62, 16793, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 18868, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 329, 25357, 62, 301, 5889, 287, 2116, 13, 565, 436, 1068, 62, 85, 13083, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 82, 796, 685, 847, 62, 16793, 13, 1136, 62, 30246, 7, 8903, 8, 329, 25357, 287, 25357, 62, 301, 5889, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 42781, 62, 4906, 6624, 705, 32604, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18868, 13, 33295, 7, 14269, 3969, 13, 32604, 7, 9310, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 220, 1303, 705, 1150, 666, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18868, 13, 33295, 7, 14269, 3969, 13, 1150, 666, 7, 9310, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 18868, 628, 220, 220, 220, 825, 651, 62, 615, 70, 62, 17080, 1817, 62, 6738, 62, 847, 62, 16793, 7, 944, 11, 584, 62, 16793, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 16409, 262, 5288, 290, 5415, 5253, 286, 262, 9421, 1063, 286, 428, 2496, 422, 262, 584, 62, 16793, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 3257, 62, 17080, 1817, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 329, 410, 62, 9630, 287, 584, 62, 16793, 13, 439, 62, 16793, 62, 85, 13083, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3257, 62, 17080, 1817, 13, 33295, 7, 944, 13, 1136, 62, 439, 62, 17080, 1817, 3419, 58, 85, 62, 9630, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 45941, 13, 23913, 7, 37659, 13, 18747, 7, 29896, 62, 17080, 1817, 4008, 628, 220, 220, 220, 1303, 14468, 7804, 4242, 198, 220, 220, 220, 1303, 220, 11420, 651, 477, 18868, 628, 220, 220, 220, 1303, 1439, 18868, 198, 220, 220, 220, 825, 651, 62, 439, 62, 17080, 1817, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 16409, 262, 7186, 18868, 583, 790, 37423, 13, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 685, 944, 13, 1136, 62, 30246, 7, 72, 8, 329, 1312, 287, 2837, 7, 944, 13, 53, 45, 15437, 628, 220, 220, 220, 825, 651, 62, 439, 62, 565, 13654, 62, 17080, 1817, 62, 11600, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 16409, 8633, 13, 8251, 25, 6376, 286, 5884, 2496, 6232, 11, 1988, 25, 1351, 11, 18868, 357, 505, 583, 37423, 737, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 1391, 72, 25, 2116, 13557, 17080, 1817, 62, 20713, 58, 72, 60, 329, 1312, 287, 2837, 7, 944, 13, 17618, 62, 1659, 62, 7784, 3166, 38165, 628, 220, 220, 220, 825, 651, 62, 9806, 62, 17080, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 16409, 262, 5415, 5253, 326, 262, 2496, 468, 319, 257, 19609, 37423, 13, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 9806, 62, 17080, 628, 220, 220, 220, 1303, 14468, 7804, 4242, 198, 220, 220, 220, 1303, 220, 11420, 583, 410, 2539, 18868, 628, 220, 220, 220, 825, 651, 62, 439, 62, 17080, 1817, 62, 1640, 62, 85, 2539, 7, 944, 11, 1312, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 16409, 18868, 422, 1123, 13946, 13869, 329, 37423, 1312, 13, 37002, 6441, 1595, 470, 711, 994, 597, 2597, 13, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 685, 944, 13557, 17080, 1817, 62, 20713, 58, 4868, 62, 9630, 7131, 72, 60, 329, 1351, 62, 9630, 287, 2837, 7, 944, 13, 17618, 62, 1659, 62, 7784, 3166, 15437, 628, 220, 220, 220, 825, 651, 62, 30246, 7, 944, 11, 1312, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 8229, 651, 62, 30246, 329, 37423, 351, 410, 2539, 1312, 13, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 24592, 62, 24396, 6624, 705, 1084, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 11420, 2829, 6441, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 45941, 13, 1084, 7, 944, 13557, 37659, 62, 17080, 1817, 62, 20713, 62, 2704, 3949, 58, 72, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 24592, 62, 24396, 6624, 705, 5796, 5226, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 11420, 13516, 357, 5796, 5226, 8, 6441, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 13516, 62, 24592, 62, 4868, 7, 27160, 28, 944, 13557, 37659, 62, 17080, 1817, 62, 20713, 62, 2704, 3949, 58, 72, 4357, 374, 28, 944, 13, 24592, 62, 37266, 58, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 24592, 62, 24396, 6624, 705, 49869, 2232, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 11420, 13516, 357, 5796, 5226, 8, 6441, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 442, 321, 2232, 62, 24592, 62, 4868, 7, 27160, 28, 944, 13557, 37659, 62, 17080, 1817, 62, 20713, 62, 2704, 3949, 58, 72, 4357, 374, 28, 944, 13, 24592, 62, 37266, 58, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 2116, 13, 24592, 62, 24396, 6624, 705, 17617, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 11420, 16046, 6441, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 16046, 62, 24592, 62, 4868, 7, 27160, 28, 944, 13557, 37659, 62, 17080, 1817, 62, 20713, 62, 2704, 3949, 58, 72, 4357, 374, 28, 944, 13, 24592, 62, 37266, 58, 15, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 28, 944, 13, 24592, 62, 37266, 58, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 11052, 12331, 7203, 20035, 4479, 2446, 1058, 33172, 2116, 13, 24592, 62, 24396, 8, 628, 220, 220, 220, 1303, 14468, 7804, 4242, 198, 220, 220, 220, 1303, 220, 11420, 16578, 283, 2214, 32746, 722, 628, 220, 220, 220, 825, 8591, 489, 330, 666, 62, 5796, 1025, 722, 7, 944, 11, 34820, 11, 4202, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 37002, 262, 18868, 319, 262, 19609, 11, 1262, 11629, 876, 8591, 489, 330, 666, 32746, 722, 13, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 406, 796, 3384, 4487, 13, 1136, 62, 76, 5069, 62, 25557, 6759, 8609, 62, 38686, 7, 944, 13, 76, 5069, 11, 4259, 62, 7784, 3166, 28, 17821, 8, 198, 220, 220, 220, 220, 220, 220, 220, 649, 62, 17080, 1817, 62, 20713, 796, 17635, 628, 220, 220, 220, 220, 220, 220, 220, 49706, 13, 10951, 10786, 14772, 489, 330, 666, 32746, 722, 286, 477, 18868, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 11, 257, 287, 27056, 378, 7, 944, 13557, 17080, 1817, 62, 20713, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 257, 796, 45941, 13, 18747, 7, 64, 8, 220, 1303, 257, 25, 299, 32152, 7177, 7268, 262, 11688, 284, 307, 32746, 704, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 4808, 287, 2837, 7, 2676, 602, 2599, 220, 1303, 11629, 876, 32746, 722, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 257, 62, 35505, 796, 257, 1343, 4202, 1635, 406, 1635, 257, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 257, 796, 257, 62, 35505, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 649, 62, 17080, 1817, 62, 20713, 13, 33295, 7, 4868, 7, 64, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19119, 62, 17080, 1817, 62, 20713, 7, 3605, 62, 17080, 1817, 62, 20713, 8, 628, 220, 220, 220, 1303, 14468, 7804, 4242, 198, 220, 220, 220, 1303, 220, 40103, 5072, 198, 220, 220, 220, 825, 3613, 62, 17080, 1817, 7, 944, 11, 1438, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 12793, 18868, 284, 33918, 13, 198, 220, 220, 220, 220, 220, 220, 220, 311, 3080, 530, 1351, 351, 5253, 3815, 357, 505, 583, 37423, 737, 628, 220, 220, 220, 220, 220, 220, 220, 40117, 198, 220, 220, 220, 220, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 25, 965, 11, 1438, 286, 33918, 284, 307, 7448, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 3384, 4487, 13, 21928, 62, 1462, 62, 17752, 7, 944, 13, 1136, 62, 439, 62, 17080, 1817, 22784, 2116, 13, 2606, 7250, 3843, 62, 34219, 11, 1438, 8, 628, 220, 220, 220, 1303, 220, 40103, 8333, 649, 47529, 198, 220, 220, 220, 825, 8333, 62, 3605, 62, 76, 5069, 7, 944, 11, 19609, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 1649, 262, 2779, 19609, 2458, 11, 257, 649, 19609, 2476, 284, 307, 8686, 13, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 19609, 13, 1462, 62, 17752, 7, 944, 13, 2606, 7250, 3843, 62, 34219, 1343, 12813, 29510, 13, 26801, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 19609, 796, 47529, 13, 6738, 62, 17752, 7, 944, 13, 2606, 7250, 3843, 62, 34219, 1343, 12813, 29510, 13, 26801, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 76, 5069, 796, 19609, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 53, 45, 796, 18896, 7, 4868, 7, 944, 13, 76, 5069, 13, 1851, 1063, 3419, 4008, 628, 198, 14468, 4242, 198, 2, 220, 11936, 319, 8341, 198, 198, 4299, 13516, 62, 24592, 62, 4868, 7, 27160, 11, 374, 2599, 198, 220, 220, 220, 37227, 16409, 257, 7209, 6441, 286, 477, 262, 4847, 287, 262, 1351, 11, 351, 13516, 16874, 13516, 62, 42172, 13, 37227, 198, 220, 220, 220, 288, 62, 20274, 796, 860, 24214, 2079, 220, 1303, 845, 1263, 1271, 198, 220, 220, 220, 329, 288, 287, 3815, 25, 198, 220, 220, 220, 220, 220, 220, 220, 288, 62, 20274, 796, 13516, 62, 24592, 7, 67, 62, 20274, 11, 288, 11, 374, 8, 198, 220, 220, 220, 1441, 288, 62, 20274, 628, 198, 4299, 16046, 62, 24592, 62, 4868, 7, 27160, 11, 374, 11, 299, 2599, 198, 220, 220, 220, 37227, 16409, 257, 16046, 6441, 286, 477, 262, 4847, 287, 262, 1351, 11, 351, 13516, 16874, 374, 290, 1271, 286, 25740, 299, 12, 16, 526, 15931, 198, 220, 220, 220, 288, 62, 20274, 796, 860, 24214, 2079, 220, 1303, 845, 1263, 1271, 198, 220, 220, 220, 329, 1312, 11, 288, 287, 27056, 378, 7, 27160, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 288, 62, 20274, 796, 16046, 62, 24592, 7, 67, 62, 20274, 11, 288, 11, 374, 11, 299, 8, 198, 220, 220, 220, 1441, 288, 62, 20274, 628, 198, 198, 14468, 4242, 198, 2, 220, 11936, 319, 14729, 198, 198, 4299, 13516, 62, 24592, 7, 6814, 11, 20613, 11, 374, 2599, 198, 220, 220, 220, 37227, 16409, 257, 7209, 6441, 286, 262, 734, 4847, 12379, 11, 20613, 351, 13516, 16874, 13516, 62, 42172, 13, 37227, 198, 220, 220, 220, 304, 796, 3509, 7, 81, 532, 2352, 7, 6814, 532, 20613, 828, 657, 8, 198, 220, 220, 220, 1441, 949, 7, 6814, 11, 20613, 8, 532, 304, 1635, 304, 1635, 657, 13, 1495, 1220, 374, 628, 198, 4299, 442, 321, 2232, 62, 24592, 7, 64, 11, 275, 11, 374, 2599, 198, 220, 220, 220, 37227, 16409, 257, 442, 321, 2232, 6441, 286, 262, 734, 4847, 12379, 11, 20613, 351, 16874, 374, 13, 37227, 198, 220, 220, 220, 1441, 949, 7, 1084, 7, 64, 11, 275, 828, 357, 64, 532, 374, 1343, 275, 8, 1635, 10688, 13, 31166, 17034, 7, 15, 13, 20, 4008, 628, 198, 4299, 16046, 62, 24592, 7, 64, 11, 275, 11, 374, 11, 299, 2599, 198, 220, 220, 220, 37227, 16409, 257, 16046, 6441, 286, 262, 734, 4847, 12379, 11, 20613, 351, 16874, 374, 13, 37227, 198, 220, 220, 220, 264, 796, 374, 1220, 299, 198, 220, 220, 220, 334, 796, 275, 532, 374, 198, 220, 220, 220, 1441, 949, 7, 1084, 7, 64, 11, 275, 828, 657, 13, 20, 1635, 357, 84, 1343, 257, 1343, 2352, 19510, 84, 532, 257, 1343, 264, 8, 4064, 357, 17, 1635, 264, 8, 532, 264, 22305, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1208, 198 ]
2.43133
4,660
#---------------------------------- # Models / new_app #---------------------------------- from django.db import models #------------------------------------------------------------------------- #------------------------------------------------------------------------- #-------------------------------------------------------------------------
[ 2, 3880, 438, 198, 2, 220, 197, 197, 220, 32329, 1220, 649, 62, 1324, 198, 2, 3880, 438, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 2, 10097, 45537, 198, 198, 2, 10097, 45537, 198, 198, 2, 10097, 45537 ]
8.380952
42
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # 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 typing import List, Type from ....core import OperandType, ChunkGraph from ..core import Optimizer, OptimizationRule, OptimizationRecords class ChunkOptimizer(Optimizer): """ Tileable Optimizer """
[ 2, 15069, 7358, 12, 1238, 2481, 41992, 4912, 31703, 12052, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2, 198, 2, 220, 220, 220, 220, 220, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 198, 2, 198, 2, 17486, 2672, 416, 9723, 1099, 393, 4987, 284, 287, 3597, 11, 3788, 198, 2, 9387, 739, 262, 13789, 318, 9387, 319, 281, 366, 1921, 3180, 1, 29809, 1797, 11, 198, 2, 42881, 34764, 11015, 6375, 7102, 49828, 11053, 3963, 15529, 509, 12115, 11, 2035, 4911, 393, 17142, 13, 198, 2, 4091, 262, 13789, 329, 262, 2176, 3303, 15030, 21627, 290, 198, 2, 11247, 739, 262, 13789, 13, 628, 198, 6738, 19720, 1330, 7343, 11, 5994, 198, 198, 6738, 19424, 7295, 1330, 6564, 392, 6030, 11, 609, 2954, 37065, 198, 6738, 11485, 7295, 1330, 30011, 7509, 11, 30011, 1634, 31929, 11, 30011, 1634, 6690, 3669, 628, 198, 4871, 609, 2954, 27871, 320, 7509, 7, 27871, 320, 7509, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 47870, 540, 30011, 7509, 198, 220, 220, 220, 37227, 628, 198 ]
3.651786
224
import logging import platform from pathlib import Path logger = Log("caterpillar_log")
[ 11748, 18931, 198, 11748, 3859, 198, 6738, 3108, 8019, 1330, 10644, 628, 198, 198, 6404, 1362, 796, 5972, 7203, 66, 729, 41643, 62, 6404, 4943, 198 ]
3.5
26
#!/usr/bin/env python3 us_invasion = [{'ip':'10.10.1.2', 'un':'john', 'pw':'allstar'}, {'ip':'10.10.1.3', 'un':'paul', 'pw':'iils20s3'}, {'ip':'10.10.1.4', 'un':'george', 'pw':'hunkydoryzory'}, {'ip':'10.10.1.5', 'un':'stuart', 'pw':'alta3'}, {'ip':'10.10.1.6', 'un':'pete', 'pw':'a8dd827z3'}] listbyusername = sorted(us_invasion, key=byUserName) print('\nThe list us_invasion looks like: ', us_invasion) print('\nResult of sorted(us_invasion, key=byUserName): ', listbyusername) print('\nBut the value of the list us_invasion hasn\'t actually changed: ', us_invasion)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 385, 62, 16340, 4247, 796, 685, 90, 6, 541, 10354, 6, 940, 13, 940, 13, 16, 13, 17, 3256, 705, 403, 10354, 6, 30686, 3256, 705, 79, 86, 10354, 6, 439, 7364, 6, 5512, 1391, 6, 541, 10354, 6, 940, 13, 940, 13, 16, 13, 18, 3256, 705, 403, 10354, 6, 79, 2518, 3256, 705, 79, 86, 10354, 6, 72, 4487, 1238, 82, 18, 6, 5512, 1391, 6, 541, 10354, 6, 940, 13, 940, 13, 16, 13, 19, 3256, 705, 403, 10354, 6, 469, 3643, 3256, 705, 79, 86, 10354, 6, 20088, 2584, 67, 652, 89, 652, 6, 5512, 1391, 6, 541, 10354, 6, 940, 13, 940, 13, 16, 13, 20, 3256, 705, 403, 10354, 6, 301, 19986, 3256, 705, 79, 86, 10354, 6, 2501, 64, 18, 6, 5512, 1391, 6, 541, 10354, 6, 940, 13, 940, 13, 16, 13, 21, 3256, 705, 403, 10354, 6, 6449, 68, 3256, 705, 79, 86, 10354, 6, 64, 23, 1860, 23, 1983, 89, 18, 6, 92, 60, 198, 198, 4868, 1525, 29460, 796, 23243, 7, 385, 62, 16340, 4247, 11, 1994, 28, 1525, 12982, 5376, 8, 198, 198, 4798, 10786, 59, 77, 464, 1351, 514, 62, 16340, 4247, 3073, 588, 25, 46083, 514, 62, 16340, 4247, 8, 198, 198, 4798, 10786, 59, 77, 23004, 286, 23243, 7, 385, 62, 16340, 4247, 11, 1994, 28, 1525, 12982, 5376, 2599, 46083, 1351, 1525, 29460, 8, 198, 198, 4798, 10786, 59, 77, 1537, 262, 1988, 286, 262, 1351, 514, 62, 16340, 4247, 5818, 43054, 83, 1682, 3421, 25, 46083, 514, 62, 16340, 4247, 8, 198 ]
2.125926
270
from flask_wtf import FlaskForm from wtforms import ValidationError from wtforms.validators import Required, Email, EqualTo from wtforms import StringField, PasswordField, SubmitField from .models import User
[ 6738, 42903, 62, 86, 27110, 1330, 46947, 8479, 198, 6738, 266, 83, 23914, 1330, 3254, 24765, 12331, 198, 6738, 266, 83, 23914, 13, 12102, 2024, 1330, 20906, 11, 9570, 11, 28701, 2514, 198, 6738, 266, 83, 23914, 1330, 10903, 15878, 11, 30275, 15878, 11, 39900, 15878, 198, 198, 6738, 764, 27530, 1330, 11787, 628, 628 ]
3.872727
55
# # @lc app=leetcode id=362 lang=python3 # # [362] Design Hit Counter # import collections # @lc code=start # Your HitCounter object will be instantiated and called as such: # obj = HitCounter() # ls = [[1],[2],[3],[300],[301]] # for param in ls: # obj.hit(param[0]) # print(obj.q) # # param_2 = obj.getHits(timestamp) # @lc code=end
[ 2, 198, 2, 2488, 44601, 598, 28, 293, 316, 8189, 4686, 28, 35667, 42392, 28, 29412, 18, 198, 2, 198, 2, 685, 35667, 60, 8495, 7286, 15034, 198, 2, 198, 11748, 17268, 198, 2, 2488, 44601, 2438, 28, 9688, 628, 198, 198, 2, 3406, 7286, 31694, 2134, 481, 307, 9113, 12931, 290, 1444, 355, 884, 25, 198, 2, 26181, 796, 7286, 31694, 3419, 198, 2, 43979, 796, 16410, 16, 38430, 17, 38430, 18, 38430, 6200, 38430, 18938, 11907, 198, 2, 329, 5772, 287, 43979, 25, 198, 2, 220, 220, 220, 220, 26181, 13, 17945, 7, 17143, 58, 15, 12962, 198, 2, 220, 220, 220, 220, 3601, 7, 26801, 13, 80, 8, 198, 2, 1303, 5772, 62, 17, 796, 26181, 13, 1136, 39, 896, 7, 16514, 27823, 8, 198, 2, 2488, 44601, 2438, 28, 437, 628 ]
2.562963
135
# date: 2019.07.09 # https://stackoverflow.com/questions/56951383/tkinter-disable-buttons-while-thread-is-running/56953613#56953613 import tkinter as tk from threading import Thread import time #----------------------------------------------------- # counter displayed when thread is running counter = 0 root = tk.Tk() l = tk.Label(root) l.pack() b = tk.Button(root, text="Start", command=start_thread) b.pack() root.mainloop()
[ 198, 2, 3128, 25, 13130, 13, 2998, 13, 2931, 198, 2, 3740, 1378, 25558, 2502, 11125, 13, 785, 14, 6138, 507, 14, 20, 37381, 1485, 5999, 14, 30488, 3849, 12, 40223, 12, 4360, 27288, 12, 4514, 12, 16663, 12, 271, 12, 20270, 14, 20, 37381, 2623, 1485, 2, 20, 37381, 2623, 1485, 198, 198, 11748, 256, 74, 3849, 355, 256, 74, 198, 6738, 4704, 278, 1330, 14122, 198, 11748, 640, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2, 3880, 19351, 12, 198, 198, 2, 3753, 9066, 618, 4704, 318, 2491, 220, 220, 220, 220, 220, 220, 220, 220, 198, 24588, 796, 657, 198, 198, 15763, 796, 256, 74, 13, 51, 74, 3419, 198, 198, 75, 796, 256, 74, 13, 33986, 7, 15763, 8, 198, 75, 13, 8002, 3419, 198, 198, 65, 796, 256, 74, 13, 21864, 7, 15763, 11, 2420, 2625, 10434, 1600, 3141, 28, 9688, 62, 16663, 8, 198, 65, 13, 8002, 3419, 198, 198, 15763, 13, 12417, 26268, 3419, 198 ]
2.739394
165
from robot.api import logger class MyLibrary: """マイライブラリ | =タイトル= | =もう一つタイトル= | | 1行1列目 | 1行2列目 | | | 1列目が空白 | | 2列目が空白 | | = カスタムセクション = ここがカスタムセクション = 次のセクション = `カスタムセクション` へのリンク セクションへのリンク - `introduction` - `importing` - `shortcuts` - `keywords` *太字です* _イタリックです_ 普通です - リスト1 - リスト2 Googleへ https://google.co.jp こちらも [https://google.co.jp|Googleへ] `Hello World` へ ``インラインコードスタイル`` 複数行の *bold\n try* みる """ ROBOT_LIBRARY_SCOPE = 'TEST SUITE' def hello_world(self, name='foo'): """ハローワールドを出力します""" logger.console(f'hello, world {name} !')
[ 6738, 9379, 13, 15042, 1330, 49706, 628, 198, 4871, 2011, 23377, 25, 198, 220, 220, 220, 37227, 20115, 11482, 9263, 11482, 24001, 9263, 12675, 628, 220, 220, 220, 930, 796, 23376, 42396, 9202, 28, 930, 796, 43266, 29557, 31660, 2515, 97, 23376, 42396, 9202, 28, 930, 198, 220, 220, 220, 930, 352, 26193, 234, 16, 26344, 245, 33566, 106, 930, 352, 26193, 234, 17, 26344, 245, 33566, 106, 930, 198, 220, 220, 220, 930, 930, 352, 26344, 245, 33566, 106, 35585, 163, 102, 118, 163, 50159, 930, 198, 220, 220, 220, 930, 362, 26344, 245, 33566, 106, 35585, 163, 102, 118, 163, 50159, 930, 930, 628, 220, 220, 220, 796, 17433, 104, 8943, 23376, 25795, 47271, 14099, 15661, 1209, 100, 6527, 796, 628, 220, 220, 220, 23294, 241, 46036, 35585, 21763, 8943, 23376, 25795, 47271, 14099, 15661, 1209, 100, 6527, 628, 220, 220, 220, 796, 10545, 105, 94, 5641, 47271, 14099, 15661, 1209, 100, 6527, 796, 628, 220, 220, 220, 4600, 21763, 8943, 23376, 25795, 47271, 14099, 15661, 1209, 100, 6527, 63, 23294, 116, 5641, 12675, 6527, 14099, 628, 220, 220, 220, 17433, 119, 14099, 15661, 1209, 100, 6527, 2515, 116, 5641, 12675, 6527, 14099, 628, 220, 220, 220, 532, 4600, 27427, 596, 63, 198, 220, 220, 220, 532, 4600, 11748, 278, 63, 198, 220, 220, 220, 532, 4600, 19509, 23779, 63, 198, 220, 220, 220, 532, 4600, 2539, 10879, 63, 628, 220, 220, 220, 1635, 13783, 103, 27764, 245, 30640, 33623, 9, 198, 220, 220, 220, 4808, 11482, 23376, 12675, 35702, 30640, 33623, 62, 198, 220, 220, 220, 10545, 247, 106, 34460, 248, 30640, 33623, 628, 220, 220, 220, 532, 220, 12675, 43302, 16, 198, 220, 220, 220, 532, 220, 12675, 43302, 17, 628, 220, 220, 220, 3012, 2515, 116, 3740, 1378, 13297, 13, 1073, 13, 34523, 198, 220, 220, 220, 23294, 241, 2515, 94, 36853, 43266, 685, 5450, 1378, 13297, 13, 1073, 13, 34523, 91, 11708, 2515, 116, 60, 628, 220, 220, 220, 4600, 15496, 2159, 63, 23294, 116, 628, 220, 220, 220, 7559, 11482, 6527, 9263, 11482, 6527, 24679, 12045, 231, 8943, 23376, 11482, 9202, 15506, 628, 220, 220, 220, 5525, 97, 229, 46763, 108, 26193, 234, 5641, 1635, 36575, 59, 77, 198, 220, 220, 220, 1949, 9, 23294, 123, 25748, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 36449, 2394, 62, 40347, 49, 13153, 62, 6173, 32135, 796, 705, 51, 6465, 13558, 12709, 6, 628, 220, 220, 220, 825, 23748, 62, 6894, 7, 944, 11, 1438, 11639, 21943, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 37412, 16253, 12045, 107, 43353, 13765, 31758, 49035, 118, 27950, 249, 22180, 30159, 33623, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 49706, 13, 41947, 7, 69, 6, 31373, 11, 995, 1391, 3672, 92, 5145, 11537, 198 ]
1.484848
462
""" Django settings for auswertung project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os from django.contrib.messages import constants as messages from django.utils.translation import ugettext_lazy as _ BASE_DIR = os.path.dirname(os.path.dirname(__file__)) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'ys-#t((t5g8^p-@9sn3@artu2_5my==hvd&vgmc1ho_@$nu(gw' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'bootstrap3', 'widget_tweaks', 'common', 'athletes', 'clubs', 'utils', 'squads', 'streams', 'teams', 'tournaments', 'debug_toolbar', ) MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware', ) ROOT_URLCONF = 'Turnauswertung.urls' WSGI_APPLICATION = 'Turnauswertung.wsgi.application' MEDIA_ROOT = 'static/' # Database # https://docs.djangoproject.com/en/1.7/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'TURNAUSWERTUNG', 'USER': 'root', 'PASSWORD': 'root', }, 'sqlite_fallback': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } # Internationalization # https://docs.djangoproject.com/en/1.7/topics/i18n/ # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # although not all choices may be available on all operating systems. # In a Windows environment this must be set to your system time zone. TIME_ZONE = 'Europe/Berlin' # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGE_CODE = 'en-us' # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. USE_I18N = True # If you set this to False, Django will not format dates, numbers and # calendars according to the current locale. USE_L10N = True # USE_THOUSAND_SEPARATOR = True # If you set this to False, Django will not use timezone-aware datetimes. USE_TZ = False # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.7/howto/static-files/ STATIC_URL = '/static/' # List of finder classes that know how to find static files in # various locations. STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'django.contrib.staticfiles.finders.DefaultStorageFinder', ) MESSAGE_TAGS = { messages.ERROR: 'danger' } # Multi-language support LOCALE_PATHS = ( os.path.join(BASE_DIR, 'locale/'), ) LANGUAGES = ( ('en', _('English')), ('de', _('German')), ) TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates')], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.contrib.auth.context_processors.auth', 'django.template.context_processors.i18n', ], 'debug': DEBUG, }, }, ]
[ 37811, 198, 35, 73, 14208, 6460, 329, 257, 385, 86, 861, 2150, 1628, 13, 198, 198, 1890, 517, 1321, 319, 428, 2393, 11, 766, 198, 5450, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 16, 13, 22, 14, 4852, 873, 14, 33692, 14, 198, 198, 1890, 262, 1336, 1351, 286, 6460, 290, 511, 3815, 11, 766, 198, 5450, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 16, 13, 22, 14, 5420, 14, 33692, 14, 198, 37811, 198, 198, 2, 10934, 13532, 2641, 262, 1628, 588, 428, 25, 28686, 13, 6978, 13, 22179, 7, 33, 11159, 62, 34720, 11, 2644, 8, 198, 11748, 28686, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 37348, 1095, 1330, 38491, 355, 6218, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 198, 33, 11159, 62, 34720, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 628, 198, 2, 12029, 12, 9688, 2478, 6460, 532, 48092, 4674, 329, 3227, 198, 2, 4091, 3740, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 16, 13, 22, 14, 4919, 1462, 14, 2934, 1420, 434, 14, 9122, 4868, 14, 198, 198, 2, 10729, 4261, 9050, 39410, 25, 1394, 262, 3200, 1994, 973, 287, 3227, 3200, 0, 198, 23683, 26087, 62, 20373, 796, 705, 893, 12, 2, 83, 19510, 83, 20, 70, 23, 61, 79, 12, 31, 24, 16184, 18, 31, 433, 84, 17, 62, 20, 1820, 855, 71, 20306, 5, 45119, 23209, 16, 8873, 62, 31, 3, 28803, 7, 70, 86, 6, 198, 198, 2, 10729, 4261, 9050, 39410, 25, 836, 470, 1057, 351, 14257, 2900, 319, 287, 3227, 0, 198, 30531, 796, 6407, 198, 198, 7036, 3913, 1961, 62, 39, 10892, 50, 796, 17635, 628, 198, 2, 15678, 6770, 198, 198, 38604, 7036, 1961, 62, 2969, 3705, 796, 357, 198, 220, 220, 220, 705, 28241, 14208, 13, 3642, 822, 13, 28482, 3256, 198, 220, 220, 220, 705, 28241, 14208, 13, 3642, 822, 13, 18439, 3256, 198, 220, 220, 220, 705, 28241, 14208, 13, 3642, 822, 13, 11299, 19199, 3256, 198, 220, 220, 220, 705, 28241, 14208, 13, 3642, 822, 13, 82, 6202, 3256, 198, 220, 220, 220, 705, 28241, 14208, 13, 3642, 822, 13, 37348, 1095, 3256, 198, 220, 220, 220, 705, 28241, 14208, 13, 3642, 822, 13, 12708, 16624, 3256, 628, 220, 220, 220, 705, 18769, 26418, 18, 3256, 198, 220, 220, 220, 705, 42655, 62, 83, 732, 4730, 3256, 628, 220, 220, 220, 705, 11321, 3256, 198, 220, 220, 220, 705, 776, 40676, 3256, 198, 220, 220, 220, 705, 18664, 82, 3256, 198, 220, 220, 220, 705, 26791, 3256, 198, 220, 220, 220, 705, 16485, 5643, 3256, 198, 220, 220, 220, 705, 5532, 82, 3256, 198, 220, 220, 220, 705, 660, 4105, 3256, 198, 220, 220, 220, 705, 83, 16950, 3256, 628, 220, 220, 220, 705, 24442, 62, 25981, 5657, 3256, 198, 8, 198, 198, 44, 2389, 35, 2538, 33746, 62, 31631, 1546, 796, 357, 198, 220, 220, 220, 705, 28241, 14208, 13, 3642, 822, 13, 82, 6202, 13, 27171, 1574, 13, 36044, 34621, 1574, 3256, 198, 220, 220, 220, 705, 28241, 14208, 13, 27171, 1574, 13, 17946, 1000, 13, 33711, 1000, 34621, 1574, 3256, 198, 220, 220, 220, 705, 28241, 14208, 13, 27171, 1574, 13, 11321, 13, 17227, 34621, 1574, 3256, 198, 220, 220, 220, 705, 28241, 14208, 13, 27171, 1574, 13, 6359, 41871, 13, 34, 27891, 69, 7680, 34621, 1574, 3256, 198, 220, 220, 220, 705, 28241, 14208, 13, 3642, 822, 13, 18439, 13, 27171, 1574, 13, 47649, 3299, 34621, 1574, 3256, 198, 220, 220, 220, 705, 28241, 14208, 13, 3642, 822, 13, 18439, 13, 27171, 1574, 13, 36044, 47649, 3299, 34621, 1574, 3256, 198, 220, 220, 220, 705, 28241, 14208, 13, 3642, 822, 13, 37348, 1095, 13, 27171, 1574, 13, 12837, 34621, 1574, 3256, 198, 220, 220, 220, 705, 28241, 14208, 13, 27171, 1574, 13, 12976, 73, 5430, 13, 55, 19778, 29046, 34621, 1574, 3256, 198, 220, 220, 220, 705, 24442, 62, 25981, 5657, 13, 27171, 1574, 13, 27509, 25391, 5657, 34621, 1574, 3256, 198, 8, 198, 198, 13252, 2394, 62, 4261, 5639, 1340, 37, 796, 705, 17278, 8717, 86, 861, 2150, 13, 6371, 82, 6, 198, 198, 19416, 18878, 62, 2969, 31484, 6234, 796, 705, 17278, 8717, 86, 861, 2150, 13, 18504, 12397, 13, 31438, 6, 198, 198, 30733, 3539, 62, 13252, 2394, 796, 705, 12708, 14, 6, 628, 198, 2, 24047, 198, 2, 3740, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 16, 13, 22, 14, 5420, 14, 33692, 31113, 19608, 18826, 198, 198, 35, 1404, 6242, 1921, 1546, 796, 1391, 198, 220, 220, 220, 705, 12286, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 26808, 8881, 10354, 705, 28241, 14208, 13, 9945, 13, 1891, 2412, 13, 28744, 13976, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 20608, 10354, 705, 51, 4261, 4535, 2937, 54, 17395, 4944, 38, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 29904, 10354, 705, 15763, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 47924, 54, 12532, 10354, 705, 15763, 3256, 198, 220, 220, 220, 8964, 198, 220, 220, 220, 705, 25410, 578, 62, 7207, 1891, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 26808, 8881, 10354, 705, 28241, 14208, 13, 9945, 13, 1891, 2412, 13, 25410, 578, 18, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 20608, 10354, 28686, 13, 6978, 13, 22179, 7, 33, 11159, 62, 34720, 11, 705, 9945, 13, 25410, 578, 18, 33809, 198, 220, 220, 220, 1782, 198, 92, 198, 198, 2, 4037, 1634, 198, 2, 3740, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 16, 13, 22, 14, 4852, 873, 14, 72, 1507, 77, 14, 198, 198, 2, 10714, 640, 6516, 329, 428, 9988, 13, 10031, 1063, 460, 307, 1043, 994, 25, 198, 2, 2638, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 8053, 62, 1659, 62, 22877, 62, 89, 1952, 62, 1525, 62, 3672, 198, 2, 3584, 407, 477, 7747, 743, 307, 1695, 319, 477, 5361, 3341, 13, 198, 2, 554, 257, 3964, 2858, 428, 1276, 307, 900, 284, 534, 1080, 640, 6516, 13, 198, 34694, 62, 57, 11651, 796, 705, 16112, 14, 24814, 2815, 6, 198, 198, 2, 15417, 2438, 329, 428, 9988, 13, 1439, 7747, 460, 307, 1043, 994, 25, 198, 2, 2638, 1378, 2503, 13, 72, 1507, 782, 4669, 13, 785, 14, 46903, 1098, 14, 16129, 12, 738, 13350, 13, 6494, 198, 43, 15567, 52, 11879, 62, 34, 16820, 796, 705, 268, 12, 385, 6, 198, 198, 2, 1002, 345, 900, 428, 284, 10352, 11, 37770, 481, 787, 617, 41446, 523, 355, 407, 198, 2, 284, 3440, 262, 3230, 1634, 20230, 13, 198, 19108, 62, 40, 1507, 45, 796, 6407, 198, 198, 2, 1002, 345, 900, 428, 284, 10352, 11, 37770, 481, 407, 5794, 9667, 11, 3146, 290, 198, 2, 50215, 1864, 284, 262, 1459, 36693, 13, 198, 19108, 62, 43, 940, 45, 796, 6407, 198, 2, 23210, 62, 4221, 20958, 6981, 62, 5188, 27082, 25633, 796, 6407, 198, 198, 2, 1002, 345, 900, 428, 284, 10352, 11, 37770, 481, 407, 779, 640, 11340, 12, 9685, 4818, 46874, 13, 198, 19108, 62, 51, 57, 796, 10352, 628, 198, 2, 36125, 3696, 357, 49155, 11, 11933, 11, 5382, 8, 198, 2, 3740, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 16, 13, 22, 14, 4919, 1462, 14, 12708, 12, 16624, 14, 198, 198, 35744, 2149, 62, 21886, 796, 31051, 12708, 14, 6, 198, 198, 2, 7343, 286, 1064, 263, 6097, 326, 760, 703, 284, 1064, 9037, 3696, 287, 198, 2, 2972, 7064, 13, 198, 35744, 2149, 46700, 1546, 62, 37, 12115, 4877, 796, 357, 198, 220, 220, 220, 705, 28241, 14208, 13, 3642, 822, 13, 12708, 16624, 13, 19796, 364, 13, 8979, 11964, 37, 5540, 3256, 198, 220, 220, 220, 705, 28241, 14208, 13, 3642, 822, 13, 12708, 16624, 13, 19796, 364, 13, 4677, 13470, 1749, 37, 5540, 3256, 198, 220, 220, 220, 705, 28241, 14208, 13, 3642, 822, 13, 12708, 16624, 13, 19796, 364, 13, 19463, 31425, 37, 5540, 3256, 198, 8, 628, 198, 44, 1546, 4090, 8264, 62, 42197, 50, 796, 1391, 198, 220, 220, 220, 6218, 13, 24908, 25, 705, 38537, 6, 198, 92, 628, 198, 2, 15237, 12, 16129, 1104, 198, 29701, 21358, 62, 47, 1404, 7998, 796, 357, 198, 220, 220, 220, 28686, 13, 6978, 13, 22179, 7, 33, 11159, 62, 34720, 11, 705, 17946, 1000, 14, 33809, 198, 8, 198, 198, 43, 15567, 52, 25552, 796, 357, 198, 220, 220, 220, 19203, 268, 3256, 4808, 10786, 15823, 11537, 828, 198, 220, 220, 220, 19203, 2934, 3256, 4808, 10786, 16010, 11537, 828, 198, 8, 198, 198, 51, 3620, 6489, 29462, 796, 685, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 31098, 10619, 10354, 705, 28241, 14208, 13, 28243, 13, 1891, 2412, 13, 28241, 14208, 13, 35, 73, 14208, 12966, 17041, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 34720, 50, 10354, 685, 418, 13, 6978, 13, 22179, 7, 33, 11159, 62, 34720, 11, 705, 11498, 17041, 11537, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 705, 24805, 62, 34720, 50, 10354, 6407, 11, 198, 220, 220, 220, 220, 220, 220, 220, 705, 3185, 51, 11053, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 22866, 62, 14681, 669, 10354, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 28241, 14208, 13, 3642, 822, 13, 18439, 13, 22866, 62, 14681, 669, 13, 18439, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 28241, 14208, 13, 28243, 13, 22866, 62, 14681, 669, 13, 72, 1507, 77, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16589, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 24442, 10354, 16959, 11, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 8964, 198, 60, 198 ]
2.51261
1,705
"""Support for Telegram bot using polling.""" import logging from telegram import Update from telegram.error import NetworkError, RetryAfter, TelegramError, TimedOut from telegram.ext import CallbackContext, TypeHandler, Updater from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP from . import BaseTelegramBotEntity _LOGGER = logging.getLogger(__name__) async def async_setup_platform(hass, bot, config): """Set up the Telegram polling platform.""" pollbot = PollBot(hass, bot, config) hass.bus.async_listen_once(EVENT_HOMEASSISTANT_START, pollbot.start_polling) hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, pollbot.stop_polling) return True def process_error(update: Update, context: CallbackContext): """Telegram bot error handler.""" try: raise context.error except (TimedOut, NetworkError, RetryAfter): # Long polling timeout or connection problem. Nothing serious. pass except TelegramError: _LOGGER.error('Update "%s" caused error: "%s"', update, context.error) class PollBot(BaseTelegramBotEntity): """ Controls the Updater object that holds the bot and a dispatcher. The dispatcher is set up by the super class to pass telegram updates to `self.handle_update` """ def __init__(self, hass, bot, config): """Create Updater and Dispatcher before calling super().""" self.bot = bot self.updater = Updater(bot=bot, workers=4) self.dispatcher = self.updater.dispatcher self.dispatcher.add_handler(TypeHandler(Update, self.handle_update)) self.dispatcher.add_error_handler(process_error) super().__init__(hass, config) def start_polling(self, event=None): """Start the polling task.""" _LOGGER.debug("Starting polling") self.updater.start_polling() def stop_polling(self, event=None): """Stop the polling task.""" _LOGGER.debug("Stopping polling") self.updater.stop()
[ 37811, 15514, 329, 50203, 10214, 1262, 13985, 526, 15931, 198, 11748, 18931, 198, 198, 6738, 573, 30536, 1330, 10133, 198, 6738, 573, 30536, 13, 18224, 1330, 7311, 12331, 11, 4990, 563, 3260, 11, 50203, 12331, 11, 5045, 276, 7975, 198, 6738, 573, 30536, 13, 2302, 1330, 4889, 1891, 21947, 11, 5994, 25060, 11, 3205, 67, 729, 198, 198, 6738, 1363, 562, 10167, 13, 9979, 1330, 49261, 62, 39069, 10705, 8808, 8643, 62, 2257, 7227, 11, 49261, 62, 39069, 10705, 8808, 8643, 62, 2257, 3185, 198, 198, 6738, 764, 1330, 7308, 6767, 30536, 20630, 32398, 198, 198, 62, 25294, 30373, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 198, 292, 13361, 825, 30351, 62, 40406, 62, 24254, 7, 71, 562, 11, 10214, 11, 4566, 2599, 198, 220, 220, 220, 37227, 7248, 510, 262, 50203, 13985, 3859, 526, 15931, 198, 220, 220, 220, 3278, 13645, 796, 12868, 20630, 7, 71, 562, 11, 10214, 11, 4566, 8, 628, 220, 220, 220, 468, 82, 13, 10885, 13, 292, 13361, 62, 4868, 268, 62, 27078, 7, 20114, 3525, 62, 39069, 10705, 8808, 8643, 62, 2257, 7227, 11, 3278, 13645, 13, 9688, 62, 30393, 278, 8, 198, 220, 220, 220, 468, 82, 13, 10885, 13, 292, 13361, 62, 4868, 268, 62, 27078, 7, 20114, 3525, 62, 39069, 10705, 8808, 8643, 62, 2257, 3185, 11, 3278, 13645, 13, 11338, 62, 30393, 278, 8, 628, 220, 220, 220, 1441, 6407, 628, 198, 4299, 1429, 62, 18224, 7, 19119, 25, 10133, 11, 4732, 25, 4889, 1891, 21947, 2599, 198, 220, 220, 220, 37227, 6767, 30536, 10214, 4049, 21360, 526, 15931, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 5298, 4732, 13, 18224, 198, 220, 220, 220, 2845, 357, 14967, 276, 7975, 11, 7311, 12331, 11, 4990, 563, 3260, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 5882, 13985, 26827, 393, 4637, 1917, 13, 10528, 2726, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 198, 220, 220, 220, 2845, 50203, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 25294, 30373, 13, 18224, 10786, 10260, 36521, 82, 1, 4073, 4049, 25, 36521, 82, 1, 3256, 4296, 11, 4732, 13, 18224, 8, 628, 198, 4871, 12868, 20630, 7, 14881, 6767, 30536, 20630, 32398, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 36357, 262, 3205, 67, 729, 2134, 326, 6622, 262, 10214, 290, 257, 49952, 13, 628, 220, 220, 220, 383, 49952, 318, 900, 510, 416, 262, 2208, 1398, 284, 1208, 573, 30536, 5992, 284, 4600, 944, 13, 28144, 62, 19119, 63, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 468, 82, 11, 10214, 11, 4566, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 16447, 3205, 67, 729, 290, 3167, 8071, 2044, 878, 4585, 2208, 3419, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 13645, 796, 10214, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 929, 67, 729, 796, 3205, 67, 729, 7, 13645, 28, 13645, 11, 3259, 28, 19, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 6381, 8071, 2044, 796, 2116, 13, 929, 67, 729, 13, 6381, 8071, 2044, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 6381, 8071, 2044, 13, 2860, 62, 30281, 7, 6030, 25060, 7, 10260, 11, 2116, 13, 28144, 62, 19119, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 6381, 8071, 2044, 13, 2860, 62, 18224, 62, 30281, 7, 14681, 62, 18224, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2208, 22446, 834, 15003, 834, 7, 71, 562, 11, 4566, 8, 628, 220, 220, 220, 825, 923, 62, 30393, 278, 7, 944, 11, 1785, 28, 14202, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 10434, 262, 13985, 4876, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 25294, 30373, 13, 24442, 7203, 22851, 13985, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 929, 67, 729, 13, 9688, 62, 30393, 278, 3419, 628, 220, 220, 220, 825, 2245, 62, 30393, 278, 7, 944, 11, 1785, 28, 14202, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 19485, 262, 13985, 4876, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 25294, 30373, 13, 24442, 7203, 1273, 33307, 13985, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 929, 67, 729, 13, 11338, 3419, 198 ]
2.734143
741
''' Problem: Xenny and Partially Sorted Strings Accept number of testcases as t for each test case: Given 3 integers N, K, M for each test case. Do the following steps- Accept all N number of strings and store them in a list sort the list by only considering first m charcaters in every element of list output the Kth element from the above sorted list ''' #Accept the first integer which denotes the number of testcases #For accepting input as int use int() function while accepting the input() #The accepted input is stored in variable t t=int(input()) #Now iterating through every testcase i.e for each testcase #As we neednot store the number of that iteration we can use '_' here for _ in range(t): #Accept 3 integers N,K,M respectively #input() function accepts the input #split function is used to convert the accepted input in to a list based on delimiters like space or empty #int function is used to convert the accepted input to Integers #map function maps or applies the int function to the each and every element of list and assigns to n,k,m variables n,k,m=map(int,input().split()) #Declaring an empty list to store 'n' strings l=[] #As n denotes the number of strings ,we use a for loop to accept input 'n' times for _ in range(n): #In each iteration an input is accepted using input() and then converted to string #We use append method of list to store the accepted string for future computation l.append(str(input())) #Hence by end of 'n' interations we will have a list containing of 'n' string which need to be sorted #The sorting need to be done based on only first m charcaters of each string in the list #List has inbuilt sort method to sort elements in a list #Sort method has 2 paramenters #reverse: It accepts a boolean value(true/false) i.e to sort in descending or acending order #key: On what basis/condition/criteria we need to sort the list(like sort based on lengths etc) #Incase of sorting on criteria of lengths we use len function i.e key=len will be assigned #This will make the list sorted based on length of strings #We can use lambda which is an anonmyous function #Hence in order to sort based on first 'm' charcaters of each element we assign as follows #key=lambda x:x[0:m] #Here x[0:m]------>returns first m charcater of an element #key condition is applied to each and every element of the list #So as all the first m charcaters are identified sorting is done based on them #sort function is an inplace function which means that it sorts and places the sorted order in the same list, here it is 'l' l.sort(key=lambda x:x[0:m]) #As we need kth string ,for suppose we want 2nd string will be at index '1' i.e (2-1) #Therefore similarly if we want kth string then we need to access (k-1) index print(l[k-1])
[ 7061, 6, 198, 40781, 25, 220, 1395, 11870, 290, 2142, 1927, 311, 9741, 4285, 654, 198, 38855, 1271, 286, 1332, 33964, 355, 256, 198, 1640, 1123, 1332, 1339, 25, 198, 220, 220, 220, 11259, 513, 37014, 399, 11, 509, 11, 337, 329, 1123, 1332, 1339, 13, 2141, 262, 1708, 4831, 12, 198, 220, 220, 220, 220, 220, 220, 220, 21699, 477, 399, 1271, 286, 13042, 290, 3650, 606, 287, 257, 1351, 198, 220, 220, 220, 220, 220, 220, 220, 3297, 262, 1351, 416, 691, 6402, 717, 285, 1149, 66, 8605, 287, 790, 5002, 286, 1351, 220, 198, 220, 220, 220, 220, 220, 220, 220, 5072, 262, 509, 400, 5002, 422, 262, 2029, 23243, 1351, 198, 7061, 6, 198, 2, 38855, 262, 717, 18253, 543, 43397, 262, 1271, 286, 1332, 33964, 198, 2, 1890, 12598, 5128, 355, 493, 779, 493, 3419, 2163, 981, 12598, 262, 5128, 3419, 198, 2, 464, 6292, 220, 5128, 318, 8574, 287, 7885, 256, 198, 83, 28, 600, 7, 15414, 28955, 628, 198, 2, 3844, 11629, 803, 832, 790, 1332, 7442, 1312, 13, 68, 329, 1123, 1332, 7442, 198, 2, 1722, 356, 761, 1662, 3650, 262, 1271, 286, 326, 24415, 356, 460, 779, 705, 62, 6, 994, 198, 1640, 4808, 287, 2837, 7, 83, 2599, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 38855, 513, 37014, 399, 11, 42, 11, 44, 8148, 220, 198, 220, 220, 220, 1303, 15414, 3419, 2163, 18178, 262, 5128, 198, 220, 220, 220, 1303, 35312, 2163, 318, 973, 284, 10385, 262, 6292, 5128, 287, 284, 257, 1351, 1912, 319, 46728, 270, 364, 588, 2272, 393, 6565, 198, 220, 220, 220, 1303, 600, 2163, 318, 973, 284, 10385, 262, 6292, 5128, 284, 15995, 364, 198, 220, 220, 220, 1303, 8899, 2163, 8739, 393, 8991, 262, 493, 2163, 284, 262, 1123, 290, 790, 5002, 286, 1351, 290, 46974, 284, 299, 11, 74, 11, 76, 9633, 198, 220, 220, 220, 299, 11, 74, 11, 76, 28, 8899, 7, 600, 11, 15414, 22446, 35312, 28955, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 37835, 1723, 281, 6565, 1351, 284, 3650, 705, 77, 6, 13042, 220, 198, 220, 220, 220, 300, 28, 21737, 628, 220, 220, 220, 1303, 1722, 299, 43397, 262, 1271, 286, 13042, 837, 732, 779, 257, 329, 9052, 284, 2453, 5128, 705, 77, 6, 1661, 198, 220, 220, 220, 329, 4808, 287, 2837, 7, 77, 2599, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 818, 1123, 24415, 281, 5128, 318, 6292, 1262, 5128, 3419, 290, 788, 11513, 284, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 1135, 779, 24443, 2446, 286, 1351, 284, 3650, 262, 6292, 4731, 329, 2003, 29964, 198, 220, 220, 220, 220, 220, 220, 220, 300, 13, 33295, 7, 2536, 7, 15414, 3419, 4008, 628, 220, 220, 220, 1303, 39, 594, 416, 886, 286, 705, 77, 6, 987, 602, 356, 481, 423, 257, 1351, 7268, 286, 705, 77, 6, 4731, 543, 761, 284, 307, 23243, 198, 220, 220, 220, 1303, 464, 29407, 761, 284, 307, 1760, 1912, 319, 691, 717, 285, 1149, 66, 8605, 286, 1123, 4731, 287, 262, 1351, 198, 220, 220, 220, 1303, 8053, 468, 287, 18780, 3297, 2446, 284, 3297, 4847, 287, 220, 257, 1351, 198, 220, 220, 220, 1303, 42758, 2446, 468, 362, 1582, 3263, 364, 220, 198, 220, 220, 220, 220, 220, 220, 1303, 50188, 25, 632, 18178, 257, 25131, 1988, 7, 7942, 14, 9562, 8, 1312, 13, 68, 284, 3297, 287, 31491, 393, 936, 1571, 1502, 198, 220, 220, 220, 220, 220, 220, 1303, 2539, 25, 1550, 644, 4308, 14, 31448, 14, 22213, 5142, 356, 761, 284, 3297, 262, 1351, 7, 2339, 3297, 1912, 319, 20428, 3503, 8, 198, 220, 220, 220, 220, 220, 220, 1303, 818, 7442, 286, 29407, 319, 9987, 286, 20428, 356, 779, 18896, 2163, 1312, 13, 68, 1994, 28, 11925, 481, 307, 8686, 198, 220, 220, 220, 220, 220, 220, 1303, 1212, 481, 787, 262, 1351, 23243, 1912, 319, 4129, 286, 13042, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 1135, 460, 779, 37456, 543, 318, 281, 281, 261, 1820, 516, 2163, 198, 220, 220, 220, 1303, 39, 594, 287, 1502, 284, 3297, 1912, 319, 717, 705, 76, 6, 1149, 66, 8605, 286, 1123, 5002, 356, 8333, 355, 5679, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2539, 28, 50033, 2124, 25, 87, 58, 15, 25, 76, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 4342, 2124, 58, 15, 25, 76, 60, 23031, 29, 7783, 82, 717, 285, 1149, 66, 729, 286, 281, 5002, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2539, 4006, 318, 5625, 284, 1123, 290, 790, 5002, 286, 262, 1351, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 2396, 355, 477, 262, 717, 285, 1149, 66, 8605, 389, 5174, 29407, 318, 1760, 1912, 319, 606, 198, 220, 220, 220, 1303, 30619, 2163, 318, 281, 287, 5372, 2163, 543, 1724, 326, 340, 10524, 290, 4113, 262, 23243, 1502, 287, 262, 976, 1351, 11, 994, 340, 318, 705, 75, 6, 198, 220, 220, 220, 300, 13, 30619, 7, 2539, 28, 50033, 2124, 25, 87, 58, 15, 25, 76, 12962, 628, 220, 220, 220, 1303, 1722, 356, 761, 479, 400, 4731, 837, 1640, 11691, 356, 765, 362, 358, 4731, 481, 307, 379, 6376, 705, 16, 6, 1312, 13, 68, 357, 17, 12, 16, 8, 198, 220, 220, 220, 1303, 26583, 12470, 611, 356, 765, 479, 400, 4731, 788, 356, 761, 284, 1895, 357, 74, 12, 16, 8, 6376, 198, 220, 220, 220, 3601, 7, 75, 58, 74, 12, 16, 12962, 198 ]
3.212973
925
from store.api.handlers.base import BaseView from http import HTTPStatus from typing import Generator from datetime import datetime from aiohttp.web_response import Response from aiohttp.web_exceptions import HTTPNotFound from aiohttp_apispec import docs, request_schema, response_schema from sqlalchemy import and_, or_ from store.api.schema import OrdersAssignPostRequestSchema, OrdersAssignPostResponseSchema from store.db.schema import orders_table, couriers_table, orders_delivery_hours_table, delivery_hours_table, \ working_hours_table, couriers_working_hours_table from ..query import AVAILABLE_ORDERS_QUERY from ...domain import CouriersOrdersResolver, CourierConfigurator
[ 6738, 3650, 13, 15042, 13, 4993, 8116, 13, 8692, 1330, 7308, 7680, 198, 198, 6738, 2638, 1330, 14626, 19580, 198, 6738, 19720, 1330, 35986, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 257, 952, 4023, 13, 12384, 62, 26209, 1330, 18261, 198, 6738, 257, 952, 4023, 13, 12384, 62, 1069, 11755, 1330, 14626, 3673, 21077, 198, 6738, 257, 952, 4023, 62, 499, 271, 43106, 1330, 34165, 11, 2581, 62, 15952, 2611, 11, 2882, 62, 15952, 2611, 198, 6738, 44161, 282, 26599, 1330, 290, 62, 11, 393, 62, 198, 198, 6738, 3650, 13, 15042, 13, 15952, 2611, 1330, 30689, 8021, 570, 6307, 18453, 27054, 2611, 11, 30689, 8021, 570, 6307, 31077, 27054, 2611, 198, 6738, 3650, 13, 9945, 13, 15952, 2611, 1330, 6266, 62, 11487, 11, 2284, 8910, 62, 11487, 11, 6266, 62, 12381, 6315, 62, 24425, 62, 11487, 11, 7585, 62, 24425, 62, 11487, 11, 3467, 198, 220, 220, 220, 1762, 62, 24425, 62, 11487, 11, 2284, 8910, 62, 16090, 62, 24425, 62, 11487, 198, 198, 6738, 11485, 22766, 1330, 317, 11731, 4146, 17534, 62, 12532, 4877, 62, 10917, 19664, 198, 6738, 2644, 27830, 1330, 15062, 8910, 35422, 364, 4965, 14375, 11, 34268, 16934, 333, 1352, 628 ]
3.484848
198
from enum import Enum from nest import Create, Connect from the_second_level.src.tools.multimeter import add_multimeter
[ 6738, 33829, 1330, 2039, 388, 198, 6738, 16343, 1330, 13610, 11, 8113, 198, 6738, 262, 62, 12227, 62, 5715, 13, 10677, 13, 31391, 13, 16680, 16912, 1330, 751, 62, 16680, 16912, 628, 628 ]
3.727273
33
import pytest from demisto_sdk.commands.common.constants import PACKS_DIR, PLAYBOOKS_DIR from demisto_sdk.commands.common.content.errors import (ContentInitializeError, ContentSerializeError) from demisto_sdk.commands.common.content.objects.abstract_objects import \ YAMLObject from demisto_sdk.commands.common.handlers import YAML_Handler from demisto_sdk.commands.common.tools import src_root TEST_DATA = src_root() / 'tests' / 'test_files' TEST_CONTENT_REPO = TEST_DATA / 'content_slim' TEST_VALID_YAML = TEST_CONTENT_REPO / PACKS_DIR / 'Sample01' / PLAYBOOKS_DIR / 'playbook-sample_new.yml' TEST_NOT_VALID_YAML = TEST_DATA / 'malformed.yaml' yaml = YAML_Handler(width=50000)
[ 11748, 12972, 9288, 198, 198, 6738, 1357, 396, 78, 62, 21282, 74, 13, 9503, 1746, 13, 11321, 13, 9979, 1187, 1330, 47035, 50, 62, 34720, 11, 28180, 39453, 50, 62, 34720, 198, 6738, 1357, 396, 78, 62, 21282, 74, 13, 9503, 1746, 13, 11321, 13, 11299, 13, 48277, 1330, 357, 19746, 24243, 1096, 12331, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14041, 32634, 1096, 12331, 8, 198, 6738, 1357, 396, 78, 62, 21282, 74, 13, 9503, 1746, 13, 11321, 13, 11299, 13, 48205, 13, 397, 8709, 62, 48205, 1330, 3467, 198, 220, 220, 220, 575, 2390, 43, 10267, 198, 6738, 1357, 396, 78, 62, 21282, 74, 13, 9503, 1746, 13, 11321, 13, 4993, 8116, 1330, 575, 2390, 43, 62, 25060, 198, 6738, 1357, 396, 78, 62, 21282, 74, 13, 9503, 1746, 13, 11321, 13, 31391, 1330, 12351, 62, 15763, 198, 198, 51, 6465, 62, 26947, 796, 12351, 62, 15763, 3419, 1220, 705, 41989, 6, 1220, 705, 9288, 62, 16624, 6, 198, 51, 6465, 62, 37815, 3525, 62, 2200, 16402, 796, 43001, 62, 26947, 1220, 705, 11299, 62, 82, 2475, 6, 198, 51, 6465, 62, 23428, 2389, 62, 56, 2390, 43, 796, 43001, 62, 37815, 3525, 62, 2200, 16402, 1220, 47035, 50, 62, 34720, 1220, 705, 36674, 486, 6, 1220, 28180, 39453, 50, 62, 34720, 1220, 705, 1759, 2070, 12, 39873, 62, 3605, 13, 88, 4029, 6, 198, 51, 6465, 62, 11929, 62, 23428, 2389, 62, 56, 2390, 43, 796, 43001, 62, 26947, 1220, 705, 7617, 12214, 13, 88, 43695, 6, 198, 198, 88, 43695, 796, 575, 2390, 43, 62, 25060, 7, 10394, 28, 20, 2388, 8, 628, 198 ]
2.339623
318
#!/usr/bin/env python # # Copyright (c) 2016, SICS, Swedish ICT # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. Neither the name of the Institute nor the names of its contributors # may be used to endorse or promote products derived from this software # without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # Author: Joakim Eriksson, [email protected] # # import sys, binascii, argparse, re parser = argparse.ArgumentParser(description='convert hex to binary - and add padding.') parser.add_argument("-i", help="input file - stdin is default.") parser.add_argument("-o", help="input file - stdout is default.") parser.add_argument("-c", help="byte value for padding - 0xff is default.") parser.add_argument("-p", help="number of pad bytes AFTER infile or with minus - the total size of the file to pad.") parser.add_argument("-P", help="number of pad bytes BEFORE infile.") parser.add_argument("-B", action="store_true", help="file is binary - no hex to bin conversion.") parser.add_argument("-V", action="store_true", help="print version and exit.") args = parser.parse_args() if args.V: print "Sparrow binfile tool - Version 1.0" exit() # setup the in and out files infile = open(args.i, 'r') if args.i else sys.stdin outfile = open(args.o, 'w') if args.o else sys.stdout padc = chr(int(args.c if args.c else "0xff", 16)) pad_after = int(args.p if args.p else 0) pad_before = int(args.P if args.P else 0) data = infile.read() if not args.B: data = re.sub(r'(?m)^#.*\n?', '', data) data = binascii.unhexlify(''.join(data.split())) # pad at the end if pad_after < 0: data = data + padc * ((-pad_after) - len(data)) else: data = data + padc * pad_after # pad at start data = padc * pad_before + data # write the file outfile.write(data)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 357, 66, 8, 1584, 11, 311, 19505, 11, 14023, 314, 4177, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431, 2810, 326, 262, 1708, 3403, 198, 2, 389, 1138, 25, 198, 2, 352, 13, 2297, 396, 2455, 507, 286, 2723, 2438, 1276, 12377, 262, 2029, 6634, 198, 2, 220, 220, 220, 4003, 11, 428, 1351, 286, 3403, 290, 262, 1708, 37592, 13, 198, 2, 362, 13, 2297, 396, 2455, 507, 287, 13934, 1296, 1276, 22919, 262, 2029, 6634, 198, 2, 220, 220, 220, 4003, 11, 428, 1351, 286, 3403, 290, 262, 1708, 37592, 287, 262, 198, 2, 220, 220, 220, 10314, 290, 14, 273, 584, 5696, 2810, 351, 262, 6082, 13, 198, 2, 513, 13, 16126, 262, 1438, 286, 262, 5136, 4249, 262, 3891, 286, 663, 20420, 198, 2, 220, 220, 220, 743, 307, 973, 284, 11438, 393, 7719, 3186, 10944, 422, 428, 3788, 198, 2, 220, 220, 220, 1231, 2176, 3161, 3194, 7170, 13, 198, 2, 198, 2, 12680, 47466, 3180, 36592, 2389, 1961, 11050, 3336, 40589, 2043, 37780, 5357, 27342, 9865, 3843, 20673, 7559, 1921, 3180, 7061, 5357, 198, 2, 15529, 7788, 32761, 6375, 8959, 49094, 34764, 11015, 11, 47783, 2751, 11, 21728, 5626, 40880, 5390, 11, 3336, 198, 2, 8959, 49094, 34764, 11015, 3963, 34482, 3398, 1565, 5603, 25382, 5357, 376, 46144, 7473, 317, 16652, 2149, 37232, 33079, 48933, 198, 2, 15986, 13954, 48778, 1961, 13, 220, 3268, 8005, 49261, 50163, 3336, 40589, 2043, 37780, 6375, 27342, 9865, 3843, 20673, 9348, 43031, 19146, 198, 2, 7473, 15529, 42242, 11, 3268, 17931, 23988, 11, 19387, 25256, 1847, 11, 38846, 11, 7788, 3620, 6489, 13153, 11, 6375, 7102, 5188, 10917, 3525, 12576, 198, 2, 29506, 25552, 357, 1268, 39149, 2751, 11, 21728, 5626, 40880, 5390, 11, 41755, 11335, 10979, 3963, 28932, 2257, 2043, 37780, 21090, 50, 198, 2, 6375, 49254, 26, 406, 18420, 3963, 23210, 11, 42865, 11, 6375, 4810, 19238, 29722, 26, 6375, 43949, 44180, 23255, 49, 8577, 24131, 8, 198, 2, 29630, 36, 5959, 7257, 2937, 1961, 5357, 6177, 15529, 3336, 15513, 3963, 43031, 25382, 11, 7655, 2767, 16879, 3268, 27342, 10659, 11, 19269, 18379, 198, 2, 43031, 25382, 11, 6375, 309, 9863, 357, 1268, 39149, 2751, 399, 7156, 43, 3528, 18310, 6375, 25401, 54, 24352, 8, 5923, 1797, 2751, 3268, 15529, 34882, 198, 2, 16289, 3963, 3336, 23210, 3963, 12680, 47466, 11, 45886, 16876, 5984, 29817, 1961, 3963, 3336, 28069, 11584, 25382, 3963, 198, 2, 13558, 3398, 29506, 11879, 13, 198, 2, 198, 2, 6434, 25, 5302, 461, 320, 412, 39370, 1559, 11, 2525, 461, 524, 31, 82, 873, 13, 325, 198, 2, 198, 2, 198, 11748, 25064, 11, 9874, 292, 979, 72, 11, 1822, 29572, 11, 302, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 11639, 1102, 1851, 17910, 284, 13934, 532, 290, 751, 24511, 2637, 8, 198, 48610, 13, 2860, 62, 49140, 7203, 12, 72, 1600, 1037, 2625, 15414, 2393, 532, 14367, 259, 318, 4277, 19570, 198, 48610, 13, 2860, 62, 49140, 7203, 12, 78, 1600, 1037, 2625, 15414, 2393, 532, 14367, 448, 318, 4277, 19570, 198, 48610, 13, 2860, 62, 49140, 7203, 12, 66, 1600, 1037, 2625, 26327, 1988, 329, 24511, 532, 657, 47596, 318, 4277, 19570, 198, 48610, 13, 2860, 62, 49140, 7203, 12, 79, 1600, 1037, 2625, 17618, 286, 14841, 9881, 36050, 1167, 576, 393, 351, 20208, 532, 262, 2472, 2546, 286, 262, 2393, 284, 14841, 19570, 198, 48610, 13, 2860, 62, 49140, 7203, 12, 47, 1600, 1037, 2625, 17618, 286, 14841, 9881, 38331, 1167, 576, 19570, 198, 48610, 13, 2860, 62, 49140, 7203, 12, 33, 1600, 2223, 2625, 8095, 62, 7942, 1600, 1037, 2625, 7753, 318, 13934, 532, 645, 17910, 284, 9874, 11315, 19570, 198, 48610, 13, 2860, 62, 49140, 7203, 12, 53, 1600, 2223, 2625, 8095, 62, 7942, 1600, 1037, 2625, 4798, 2196, 290, 8420, 19570, 198, 198, 22046, 796, 30751, 13, 29572, 62, 22046, 3419, 198, 198, 361, 26498, 13, 53, 25, 198, 220, 220, 220, 3601, 366, 50, 1845, 808, 9874, 7753, 2891, 532, 10628, 352, 13, 15, 1, 198, 220, 220, 220, 8420, 3419, 198, 198, 2, 9058, 262, 287, 290, 503, 3696, 198, 259, 7753, 796, 1280, 7, 22046, 13, 72, 11, 705, 81, 11537, 611, 26498, 13, 72, 2073, 25064, 13, 19282, 259, 198, 448, 7753, 796, 1280, 7, 22046, 13, 78, 11, 705, 86, 11537, 611, 26498, 13, 78, 2073, 25064, 13, 19282, 448, 198, 198, 15636, 66, 796, 442, 81, 7, 600, 7, 22046, 13, 66, 611, 26498, 13, 66, 2073, 366, 15, 47596, 1600, 1467, 4008, 198, 15636, 62, 8499, 796, 493, 7, 22046, 13, 79, 611, 26498, 13, 79, 2073, 657, 8, 198, 15636, 62, 19052, 796, 493, 7, 22046, 13, 47, 611, 26498, 13, 47, 2073, 657, 8, 198, 198, 7890, 796, 1167, 576, 13, 961, 3419, 198, 198, 361, 407, 26498, 13, 33, 25, 198, 220, 220, 220, 1366, 796, 302, 13, 7266, 7, 81, 6, 7, 30, 76, 8, 61, 2, 15885, 59, 77, 30, 3256, 705, 3256, 1366, 8, 198, 220, 220, 220, 1366, 796, 9874, 292, 979, 72, 13, 403, 33095, 75, 1958, 10786, 4458, 22179, 7, 7890, 13, 35312, 3419, 4008, 198, 198, 2, 14841, 379, 262, 886, 198, 361, 14841, 62, 8499, 1279, 657, 25, 198, 220, 220, 220, 1366, 796, 1366, 1343, 14841, 66, 1635, 14808, 12, 15636, 62, 8499, 8, 532, 18896, 7, 7890, 4008, 198, 17772, 25, 198, 220, 220, 220, 1366, 796, 1366, 1343, 14841, 66, 1635, 14841, 62, 8499, 198, 198, 2, 14841, 379, 923, 198, 7890, 796, 14841, 66, 1635, 14841, 62, 19052, 1343, 1366, 198, 198, 2, 3551, 262, 2393, 198, 448, 7753, 13, 13564, 7, 7890, 8, 198 ]
3.108136
971
#!/usr/bin/env python2.6 # # Copyright (C) 2011 The Android Open Source Project # # 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. # # # Generates a table of prime numbers for use in BasicHashtable.cpp. # # Each prime is chosen such that it is a little more than twice as large as # the previous prime in the table. This makes it easier to choose a new # hashtable size when the underlying array is grown by as nominal factor # of two each time. # print "static size_t PRIMES[] = {" n = 5 max = 2**31 - 1 while n < max: print " %d," % (n) n = n * 2 + 1 while not is_odd_prime(n): n += 2 print " 0," print "};"
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 21, 198, 2, 198, 2, 15069, 357, 34, 8, 2813, 383, 5565, 4946, 8090, 4935, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2, 198, 2, 220, 220, 220, 220, 220, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 198, 2, 198, 2, 17486, 2672, 416, 9723, 1099, 393, 4987, 284, 287, 3597, 11, 3788, 198, 2, 9387, 739, 262, 13789, 318, 9387, 319, 281, 366, 1921, 3180, 1, 29809, 1797, 11, 198, 2, 42881, 34764, 11015, 6375, 7102, 49828, 11053, 3963, 15529, 509, 12115, 11, 2035, 4911, 393, 17142, 13, 198, 2, 4091, 262, 13789, 329, 262, 2176, 3303, 15030, 21627, 290, 198, 2, 11247, 739, 262, 13789, 13, 198, 2, 198, 198, 2, 198, 2, 2980, 689, 257, 3084, 286, 6994, 3146, 329, 779, 287, 14392, 26257, 11487, 13, 20322, 13, 198, 2, 198, 2, 5501, 6994, 318, 7147, 884, 326, 340, 318, 257, 1310, 517, 621, 5403, 355, 1588, 355, 198, 2, 262, 2180, 6994, 287, 262, 3084, 13, 220, 770, 1838, 340, 4577, 284, 3853, 257, 649, 198, 2, 20267, 540, 2546, 618, 262, 10238, 7177, 318, 7334, 416, 355, 26934, 5766, 198, 2, 286, 734, 1123, 640, 13, 198, 2, 198, 198, 4798, 366, 12708, 2546, 62, 83, 4810, 3955, 1546, 21737, 796, 19779, 198, 198, 77, 796, 642, 198, 9806, 796, 362, 1174, 3132, 532, 352, 198, 4514, 299, 1279, 3509, 25, 198, 220, 3601, 366, 220, 220, 220, 4064, 67, 553, 4064, 357, 77, 8, 198, 220, 299, 796, 299, 1635, 362, 1343, 352, 198, 220, 981, 407, 318, 62, 5088, 62, 35505, 7, 77, 2599, 198, 220, 220, 220, 299, 15853, 362, 198, 198, 4798, 366, 220, 220, 220, 657, 553, 198, 4798, 366, 19629, 1, 198 ]
3.285714
343
""" In this file, I am messing around with using generator functions to handle things like pattern matching in LifeEventRules and timestep sizes when handling level-of-detail changes """ from abc import abstractmethod from typing import Generator, List, Protocol, Tuple from dataclasses import dataclass from neighborly.core.ecs import GameObject, Component from neighborly.core.life_event import ( ILifeEventListener, LifeEvent, check_gameobject_preconditions, handle_gameobject_effects, ) strength_greater_than_10 = strength_greater_than(10) @dataclass @dataclass if __name__ == "__main__": main()
[ 37811, 198, 818, 428, 2393, 11, 314, 716, 37241, 1088, 351, 1262, 17301, 5499, 198, 1462, 5412, 1243, 588, 3912, 12336, 287, 5155, 9237, 37766, 290, 198, 16514, 395, 538, 10620, 618, 9041, 1241, 12, 1659, 12, 49170, 2458, 198, 37811, 198, 6738, 450, 66, 1330, 12531, 24396, 198, 6738, 19720, 1330, 35986, 11, 7343, 11, 20497, 11, 309, 29291, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 4780, 306, 13, 7295, 13, 721, 82, 1330, 3776, 10267, 11, 35100, 198, 6738, 4780, 306, 13, 7295, 13, 6042, 62, 15596, 1330, 357, 198, 220, 220, 220, 14639, 901, 9237, 33252, 11, 198, 220, 220, 220, 5155, 9237, 11, 198, 220, 220, 220, 2198, 62, 6057, 15252, 62, 3866, 17561, 1756, 11, 198, 220, 220, 220, 5412, 62, 6057, 15252, 62, 34435, 11, 198, 8, 628, 628, 198, 198, 41402, 62, 18223, 263, 62, 14813, 62, 940, 796, 4202, 62, 18223, 263, 62, 14813, 7, 940, 8, 628, 198, 31, 19608, 330, 31172, 628, 198, 31, 19608, 330, 31172, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
3.308901
191
""" This file implements different preprocessing utils functions. """ import pandas as pd import re from stopwords import stopwords_nltk, stopwords_specific import spacy import unicodedata def preprocess_string(nlp, input_string): """ Wraps all operations to ensure common normalization. """ processed_string = input_string.lower() processed_string = special_structures(processed_string) #NA for match processed_string = remove_stopwords(processed_string) processed_string = replace_digit(processed_string) processed_string = remove_trailings(processed_string) processed_string = strip_accents(processed_string) #processed_string = lemmatize(nlp, processed_string) return processed_string """#############""" """Sub-functions""" """#############""" def lemmatize(nlp, input_string): """ Lemmatizes an input string """ # Can use spacy pipeline to increase speed doc = nlp(input_string) return " ".join([token.lemma_ for token in doc]) def remove_stopwords(input_string): """ This function removes stopwords from an input string. """ stopwords = stopwords_nltk + stopwords_specific output_string = " ".join( [word for word in input_string.split() if word not in stopwords] ) return output_string def replace_digit(input_string): """ Remove all digits from an input string (Slow on large corpuses). """ output_string = "".join([i for i in input_string if not i.isdigit()]) return output_string def remove_trailings(input_string): """ Remove duplicated spaces. """ output_string = " ".join(input_string.split()) return output_string def special_structures(input_string): """ Replace some special structures by space. """ input_string = input_string.replace("'", " ") input_string = input_string.replace("(", " ") input_string = input_string.replace(")", " ") input_string = input_string.replace("1er ", " ") input_string = input_string.replace(",", " ") input_string = input_string.replace("«", " ") input_string = input_string.replace("»", " ") output_string = input_string.replace("n°", " ") return output_string def strip_accents(text): """ Removes accents. """ try: text = unicode(text, 'utf-8') except NameError: # unicode is a default on python 3 pass text = unicodedata.normalize('NFD', text)\ .encode('ascii', 'ignore')\ .decode("utf-8") return str(text) # UNUSED def regex_loi(input_series: pd.Series) -> pd.Series: """ Finds the law patterns that match a given token. """ token = r"(\w+).*\s\d{4}\s" replace_by = "<LOI> " # Finds patterns that match tokens types = input_series.apply( lambda s: m.group(1).lower() if (m := re.match(token, s)) else None ) types = set(types) types.discard(None) # Change "arrêté du ... 2021" en <LOI> patterns = [rf"{type_loi}(.*?)\s\d{{4}}\s" for type_loi in types] for pattern in patterns: output_series = input_series.apply( lambda s: re.sub(pattern, replace_by, s, flags=re.IGNORECASE) ) return output_series
[ 37811, 198, 1212, 2393, 23986, 1180, 662, 36948, 3384, 4487, 5499, 13, 198, 37811, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 302, 198, 6738, 2245, 10879, 1330, 2245, 10879, 62, 77, 2528, 74, 11, 2245, 10879, 62, 11423, 198, 11748, 599, 1590, 198, 11748, 28000, 9043, 1045, 198, 198, 4299, 662, 14681, 62, 8841, 7, 21283, 79, 11, 5128, 62, 8841, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 27323, 862, 477, 4560, 284, 4155, 2219, 3487, 1634, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 13686, 62, 8841, 796, 5128, 62, 8841, 13, 21037, 3419, 198, 220, 220, 220, 13686, 62, 8841, 796, 2041, 62, 7249, 942, 7, 14681, 276, 62, 8841, 8, 198, 220, 220, 220, 1303, 4535, 329, 2872, 13686, 62, 8841, 796, 4781, 62, 11338, 10879, 7, 14681, 276, 62, 8841, 8, 198, 220, 220, 220, 13686, 62, 8841, 796, 6330, 62, 27003, 7, 14681, 276, 62, 8841, 8, 198, 220, 220, 220, 13686, 62, 8841, 796, 4781, 62, 9535, 43271, 7, 14681, 276, 62, 8841, 8, 198, 220, 220, 220, 13686, 62, 8841, 796, 10283, 62, 4134, 658, 7, 14681, 276, 62, 8841, 8, 198, 220, 220, 220, 1303, 14681, 276, 62, 8841, 796, 443, 3020, 265, 1096, 7, 21283, 79, 11, 13686, 62, 8841, 8, 198, 220, 220, 220, 1441, 13686, 62, 8841, 628, 198, 37811, 7804, 4242, 2, 37811, 198, 37811, 7004, 12, 12543, 2733, 37811, 198, 37811, 7804, 4242, 2, 37811, 198, 198, 4299, 443, 3020, 265, 1096, 7, 21283, 79, 11, 5128, 62, 8841, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 20607, 6759, 4340, 281, 5128, 4731, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 1680, 779, 599, 1590, 11523, 284, 2620, 2866, 198, 220, 220, 220, 2205, 796, 299, 34431, 7, 15414, 62, 8841, 8, 198, 220, 220, 220, 1441, 366, 27071, 22179, 26933, 30001, 13, 10671, 2611, 62, 329, 11241, 287, 2205, 12962, 198, 220, 220, 220, 220, 198, 198, 4299, 4781, 62, 11338, 10879, 7, 15414, 62, 8841, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 770, 2163, 20694, 2245, 10879, 422, 281, 5128, 4731, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2245, 10879, 796, 2245, 10879, 62, 77, 2528, 74, 1343, 2245, 10879, 62, 11423, 198, 220, 220, 220, 5072, 62, 8841, 796, 366, 27071, 22179, 7, 198, 220, 220, 220, 220, 220, 220, 220, 685, 4775, 329, 1573, 287, 5128, 62, 8841, 13, 35312, 3419, 611, 1573, 407, 287, 2245, 10879, 60, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 1441, 5072, 62, 8841, 628, 198, 4299, 6330, 62, 27003, 7, 15414, 62, 8841, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 17220, 477, 19561, 422, 281, 5128, 4731, 357, 36423, 319, 1588, 24614, 2664, 737, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5072, 62, 8841, 796, 366, 1911, 22179, 26933, 72, 329, 1312, 287, 5128, 62, 8841, 611, 407, 1312, 13, 9409, 328, 270, 3419, 12962, 198, 220, 220, 220, 1441, 5072, 62, 8841, 628, 198, 4299, 4781, 62, 9535, 43271, 7, 15414, 62, 8841, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 17220, 14184, 3474, 9029, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5072, 62, 8841, 796, 366, 27071, 22179, 7, 15414, 62, 8841, 13, 35312, 28955, 198, 220, 220, 220, 1441, 5072, 62, 8841, 628, 198, 4299, 2041, 62, 7249, 942, 7, 15414, 62, 8841, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 40177, 617, 2041, 8573, 416, 2272, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5128, 62, 8841, 796, 5128, 62, 8841, 13, 33491, 7203, 6, 1600, 366, 366, 8, 198, 220, 220, 220, 5128, 62, 8841, 796, 5128, 62, 8841, 13, 33491, 7203, 7, 1600, 366, 366, 8, 198, 220, 220, 220, 5128, 62, 8841, 796, 5128, 62, 8841, 13, 33491, 7, 4943, 1600, 366, 366, 8, 198, 220, 220, 220, 5128, 62, 8841, 796, 5128, 62, 8841, 13, 33491, 7203, 16, 263, 33172, 366, 366, 8, 198, 220, 220, 220, 5128, 62, 8841, 796, 5128, 62, 8841, 13, 33491, 7, 2430, 11, 366, 366, 8, 198, 220, 220, 220, 5128, 62, 8841, 796, 5128, 62, 8841, 13, 33491, 7203, 24328, 1600, 366, 366, 8, 198, 220, 220, 220, 5128, 62, 8841, 796, 5128, 62, 8841, 13, 33491, 7203, 17730, 1600, 366, 366, 8, 198, 220, 220, 220, 5072, 62, 8841, 796, 5128, 62, 8841, 13, 33491, 7203, 77, 7200, 1600, 366, 366, 8, 628, 220, 220, 220, 1441, 5072, 62, 8841, 198, 198, 4299, 10283, 62, 4134, 658, 7, 5239, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3982, 5241, 39271, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 28000, 1098, 7, 5239, 11, 705, 40477, 12, 23, 11537, 198, 220, 220, 220, 2845, 6530, 12331, 25, 1303, 28000, 1098, 318, 257, 4277, 319, 21015, 513, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1208, 628, 220, 220, 220, 2420, 796, 28000, 9043, 1045, 13, 11265, 1096, 10786, 21870, 35, 3256, 2420, 19415, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 268, 8189, 10786, 292, 979, 72, 3256, 705, 46430, 11537, 59, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 12501, 1098, 7203, 40477, 12, 23, 4943, 628, 220, 220, 220, 1441, 965, 7, 5239, 8, 198, 198, 2, 4725, 2937, 1961, 198, 4299, 40364, 62, 5439, 72, 7, 15414, 62, 25076, 25, 279, 67, 13, 27996, 8, 4613, 279, 67, 13, 27996, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 9938, 82, 262, 1099, 7572, 326, 2872, 257, 1813, 11241, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11241, 796, 374, 18109, 59, 86, 10, 737, 9, 59, 82, 59, 67, 90, 19, 32239, 82, 1, 198, 220, 220, 220, 6330, 62, 1525, 796, 33490, 21982, 40, 29, 366, 628, 220, 220, 220, 1303, 9938, 82, 7572, 326, 2872, 16326, 198, 220, 220, 220, 3858, 796, 5128, 62, 25076, 13, 39014, 7, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 264, 25, 285, 13, 8094, 7, 16, 737, 21037, 3419, 611, 357, 76, 19039, 302, 13, 15699, 7, 30001, 11, 264, 4008, 2073, 6045, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 3858, 796, 900, 7, 19199, 8, 198, 220, 220, 220, 3858, 13, 15410, 446, 7, 14202, 8, 628, 220, 220, 220, 1303, 9794, 366, 3258, 25792, 83, 2634, 7043, 2644, 33448, 1, 551, 1279, 21982, 40, 29, 198, 220, 220, 220, 7572, 796, 685, 41871, 1, 90, 4906, 62, 5439, 72, 92, 7, 15885, 10091, 59, 82, 59, 67, 27007, 19, 11709, 59, 82, 1, 329, 2099, 62, 5439, 72, 287, 3858, 60, 628, 220, 220, 220, 329, 3912, 287, 7572, 25, 198, 220, 220, 220, 220, 220, 220, 220, 5072, 62, 25076, 796, 5128, 62, 25076, 13, 39014, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37456, 264, 25, 302, 13, 7266, 7, 33279, 11, 6330, 62, 1525, 11, 264, 11, 9701, 28, 260, 13, 16284, 1581, 2943, 11159, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 1441, 5072, 62, 25076, 198 ]
2.645902
1,220
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Any, Dict, List, Tuple, Union import torch import torch.utils.checkpoint as checkpoint from fairseq import utils def checkpoint_wrapper(m): """ A friendlier wrapper for performing activation checkpointing. Compared to the PyTorch version, this version: - wraps an nn.Module, so that all subsequent calls will use checkpointing - handles keyword arguments in the forward - handles non-Tensor outputs from the forward Usage:: checkpointed_module = checkpoint_wrapper(my_module) a, b = checkpointed_module(x, y=3, z=torch.Tensor([1])) """ original_forward = m.forward m.forward = _checkpointed_forward return m def pack_kwargs(*args, **kwargs) -> Tuple[List[str], List[Any]]: """ Usage:: kwarg_keys, flat_args = pack_kwargs(1, 2, a=3, b=4) args, kwargs = unpack_kwargs(kwarg_keys, flat_args) assert args == [1, 2] assert kwargs == {"a": 3, "b": 4} """ kwarg_keys = [] flat_args = list(args) for k, v in kwargs.items(): kwarg_keys.append(k) flat_args.append(v) return kwarg_keys, flat_args def split_non_tensors( mixed: Union[torch.Tensor, Tuple[Any]] ) -> Tuple[Tuple[torch.Tensor], Dict[str, List[Any]]]: """ Usage:: x = torch.Tensor([1]) y = torch.Tensor([2]) tensors, packed_non_tensors = split_non_tensors((x, y, None, 3)) recon = unpack_non_tensors(tensors, packed_non_tensors) assert recon == (x, y, None, 3) """ if isinstance(mixed, torch.Tensor): return (mixed,), None tensors = [] packed_non_tensors = {"is_tensor": [], "objects": []} for o in mixed: if isinstance(o, torch.Tensor): packed_non_tensors["is_tensor"].append(True) tensors.append(o) else: packed_non_tensors["is_tensor"].append(False) packed_non_tensors["objects"].append(o) return tuple(tensors), packed_non_tensors class CheckpointFunction(torch.autograd.Function): """Similar to the torch version, but support non-Tensor outputs. The caller is expected to provide a dict (*parent_ctx_dict*) that will hold the non-Tensor outputs. These should be combined with the Tensor *outputs* by calling ``unpack_non_tensors``. """ @staticmethod @staticmethod
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, 198, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 11, 309, 29291, 11, 4479, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 26791, 13, 9122, 4122, 355, 26954, 198, 198, 6738, 3148, 41068, 1330, 3384, 4487, 628, 198, 4299, 26954, 62, 48553, 7, 76, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 317, 1545, 2505, 29908, 329, 9489, 14916, 26954, 278, 13, 198, 220, 220, 220, 27492, 284, 262, 9485, 15884, 354, 2196, 11, 428, 2196, 25, 198, 220, 220, 220, 532, 27521, 281, 299, 77, 13, 26796, 11, 523, 326, 477, 8840, 3848, 481, 779, 26954, 278, 198, 220, 220, 220, 532, 17105, 21179, 7159, 287, 262, 2651, 198, 220, 220, 220, 532, 17105, 1729, 12, 51, 22854, 23862, 422, 262, 2651, 198, 220, 220, 220, 29566, 3712, 198, 220, 220, 220, 220, 220, 220, 220, 26954, 276, 62, 21412, 796, 26954, 62, 48553, 7, 1820, 62, 21412, 8, 198, 220, 220, 220, 220, 220, 220, 220, 257, 11, 275, 796, 26954, 276, 62, 21412, 7, 87, 11, 331, 28, 18, 11, 1976, 28, 13165, 354, 13, 51, 22854, 26933, 16, 60, 4008, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2656, 62, 11813, 796, 285, 13, 11813, 628, 220, 220, 220, 285, 13, 11813, 796, 4808, 9122, 4122, 276, 62, 11813, 198, 220, 220, 220, 1441, 285, 628, 198, 4299, 2353, 62, 46265, 22046, 46491, 22046, 11, 12429, 46265, 22046, 8, 4613, 309, 29291, 58, 8053, 58, 2536, 4357, 7343, 58, 7149, 60, 5974, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 29566, 3712, 198, 220, 220, 220, 220, 220, 220, 220, 479, 86, 853, 62, 13083, 11, 6228, 62, 22046, 796, 2353, 62, 46265, 22046, 7, 16, 11, 362, 11, 257, 28, 18, 11, 275, 28, 19, 8, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 11, 479, 86, 22046, 796, 555, 8002, 62, 46265, 22046, 7, 46265, 853, 62, 13083, 11, 6228, 62, 22046, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 26498, 6624, 685, 16, 11, 362, 60, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 479, 86, 22046, 6624, 19779, 64, 1298, 513, 11, 366, 65, 1298, 604, 92, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 479, 86, 853, 62, 13083, 796, 17635, 198, 220, 220, 220, 6228, 62, 22046, 796, 1351, 7, 22046, 8, 198, 220, 220, 220, 329, 479, 11, 410, 287, 479, 86, 22046, 13, 23814, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 479, 86, 853, 62, 13083, 13, 33295, 7, 74, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6228, 62, 22046, 13, 33295, 7, 85, 8, 198, 220, 220, 220, 1441, 479, 86, 853, 62, 13083, 11, 6228, 62, 22046, 628, 198, 198, 4299, 6626, 62, 13159, 62, 83, 641, 669, 7, 198, 220, 220, 220, 7668, 25, 4479, 58, 13165, 354, 13, 51, 22854, 11, 309, 29291, 58, 7149, 11907, 198, 8, 4613, 309, 29291, 58, 51, 29291, 58, 13165, 354, 13, 51, 22854, 4357, 360, 713, 58, 2536, 11, 7343, 58, 7149, 11907, 5974, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 29566, 3712, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 796, 28034, 13, 51, 22854, 26933, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 331, 796, 28034, 13, 51, 22854, 26933, 17, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 11192, 669, 11, 11856, 62, 13159, 62, 83, 641, 669, 796, 6626, 62, 13159, 62, 83, 641, 669, 19510, 87, 11, 331, 11, 6045, 11, 513, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 8195, 796, 555, 8002, 62, 13159, 62, 83, 641, 669, 7, 83, 641, 669, 11, 11856, 62, 13159, 62, 83, 641, 669, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 8195, 6624, 357, 87, 11, 331, 11, 6045, 11, 513, 8, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 611, 318, 39098, 7, 76, 2966, 11, 28034, 13, 51, 22854, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 357, 76, 2966, 11, 828, 6045, 198, 220, 220, 220, 11192, 669, 796, 17635, 198, 220, 220, 220, 11856, 62, 13159, 62, 83, 641, 669, 796, 19779, 271, 62, 83, 22854, 1298, 685, 4357, 366, 48205, 1298, 17635, 92, 198, 220, 220, 220, 329, 267, 287, 7668, 25, 198, 220, 220, 220, 220, 220, 220, 220, 611, 318, 39098, 7, 78, 11, 28034, 13, 51, 22854, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11856, 62, 13159, 62, 83, 641, 669, 14692, 271, 62, 83, 22854, 1, 4083, 33295, 7, 17821, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11192, 669, 13, 33295, 7, 78, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11856, 62, 13159, 62, 83, 641, 669, 14692, 271, 62, 83, 22854, 1, 4083, 33295, 7, 25101, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11856, 62, 13159, 62, 83, 641, 669, 14692, 48205, 1, 4083, 33295, 7, 78, 8, 198, 220, 220, 220, 1441, 46545, 7, 83, 641, 669, 828, 11856, 62, 13159, 62, 83, 641, 669, 628, 198, 198, 4871, 6822, 4122, 22203, 7, 13165, 354, 13, 2306, 519, 6335, 13, 22203, 2599, 198, 220, 220, 220, 37227, 18925, 284, 262, 28034, 2196, 11, 475, 1104, 1729, 12, 51, 22854, 23862, 13, 198, 220, 220, 220, 383, 24955, 318, 2938, 284, 2148, 257, 8633, 20789, 8000, 62, 49464, 62, 11600, 28104, 326, 481, 1745, 198, 220, 220, 220, 262, 1729, 12, 51, 22854, 23862, 13, 2312, 815, 307, 5929, 351, 262, 309, 22854, 1635, 22915, 82, 9, 198, 220, 220, 220, 416, 4585, 7559, 403, 8002, 62, 13159, 62, 83, 641, 669, 15506, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2488, 12708, 24396, 628, 220, 220, 220, 2488, 12708, 24396, 198 ]
2.457971
1,035
from dataclasses import dataclass from civic_jabber_ingest.models.base import DataModel from civic_jabber_ingest.utils.xml import get_jinja_template @dataclass
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 198, 6738, 23265, 62, 27935, 527, 62, 278, 395, 13, 27530, 13, 8692, 1330, 6060, 17633, 198, 6738, 23265, 62, 27935, 527, 62, 278, 395, 13, 26791, 13, 19875, 1330, 651, 62, 18594, 6592, 62, 28243, 628, 198, 31, 19608, 330, 31172, 198 ]
3.134615
52
# coding=utf-8 from collections import OrderedDict EXPECTED = OrderedDict( [ ( "bibjson", OrderedDict( [ ( "abstract", "The inflammatory environment of demyelinated lesions in multiple sclerosis (MS) patients contributes to remyelination failure. Inflammation activates a cytoprotective pathway, the integrated stress response (ISR), but it remains unclear whether enhancing the ISR can improve remyelination in an inflammatory environment. To examine this possibility, the remyelination stage of experimental autoimmune encephalomyelitis (EAE), as well as a mouse model that incorporates cuprizone-induced demyelination along with CNS delivery of the proinflammatory cytokine IFN-γ were used here. We demonstrate that either genetic or pharmacological ISR enhancement significantly increased the number of remyelinating oligodendrocytes and remyelinated axons in the inflammatory lesions. Moreover, the combined treatment of the ISR modulator Sephin1 with the oligodendrocyte differentiation enhancing reagent bazedoxifene increased myelin thickness of remyelinated axons to pre-lesion levels. Taken together, our findings indicate that prolonging the ISR protects remyelinating oligodendrocytes and promotes remyelination in the presence of inflammation, suggesting that ISR enhancement may provide reparative benefit to MS patients.", ), ( "author", [ OrderedDict( [ ( "affiliation", "Department of Neurology, Division of Multiple Sclerosis and Neuroimmunology, Northwestern University Feinberg School of Medicine, Chicago, United States", ), ("name", "Yanan Chen"), ( "orcid_id", "https://orcid.org/0000-0001-5510-231X", ), ] ), OrderedDict( [ ( "affiliation", "Department of Neurology, Division of Multiple Sclerosis and Neuroimmunology, Northwestern University Feinberg School of Medicine, Chicago, United States", ), ("name", "Rejani B Kunjamma"), ] ), OrderedDict( [ ( "affiliation", "Department of Neurology, Division of Multiple Sclerosis and Neuroimmunology, Northwestern University Feinberg School of Medicine, Chicago, United States", ), ("name", "Molly Weiner"), ] ), OrderedDict( [ ( "affiliation", "Weill Institute for Neuroscience, Department of Neurology, University of California, San Francisco, San Francisco, United States", ), ("name", "Jonah R Chan"), ( "orcid_id", "https://orcid.org/0000-0002-2176-1242", ), ] ), OrderedDict( [ ( "affiliation", "Department of Neurology, Division of Multiple Sclerosis and Neuroimmunology, Northwestern University Feinberg School of Medicine, Chicago, United States", ), ("name", "Brian Popko"), ( "orcid_id", "https://orcid.org/0000-0001-9948-2553", ), ] ), ], ), ( "identifier", [ OrderedDict( [("id", "10.7554/eLife.65469"), ("type", "doi")] ), OrderedDict([("id", "2050-084X"), ("type", "eissn")]), OrderedDict([("id", "e65469"), ("type", "elocationid")]), ], ), ("journal", OrderedDict([("volume", "10")])), ( "keywords", [ "integrated stress response", "remyelination", "interferon gamma", "oligodendrocyte", "cuprizone", "multiple sclerosis", ], ), ( "link", [ OrderedDict( [ ("content_type", "text/html"), ("type", "fulltext"), ("url", "https://elifesciences.org/articles/65469"), ] ) ], ), ("month", "3"), ( "title", "Prolonging the integrated stress response enhances CNS remyelination in an inflammatory environment", ), ("year", "2021"), ] ), ) ] )
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 49864, 9782, 1961, 796, 14230, 1068, 35, 713, 7, 198, 220, 220, 220, 685, 198, 220, 220, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 65, 571, 17752, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14230, 1068, 35, 713, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 397, 8709, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 464, 23760, 2858, 286, 1357, 88, 417, 3898, 35258, 287, 3294, 46225, 357, 5653, 8, 3871, 22625, 284, 816, 88, 417, 1883, 5287, 13, 4806, 11199, 341, 36206, 257, 3075, 4852, 10599, 13967, 21182, 11, 262, 11521, 5503, 2882, 357, 1797, 49, 828, 475, 340, 3793, 10061, 1771, 27496, 262, 3180, 49, 460, 2987, 816, 88, 417, 1883, 287, 281, 23760, 2858, 13, 1675, 10716, 428, 5885, 11, 262, 816, 88, 417, 1883, 3800, 286, 11992, 46938, 551, 43996, 9145, 417, 11815, 357, 36, 14242, 828, 355, 880, 355, 257, 10211, 2746, 326, 33181, 6508, 380, 11340, 12, 17223, 1357, 88, 417, 1883, 1863, 351, 48935, 7585, 286, 262, 386, 32272, 42440, 500, 16876, 45, 12, 42063, 547, 973, 994, 13, 775, 10176, 326, 2035, 8513, 393, 25702, 2770, 3180, 49, 28554, 5566, 3220, 262, 1271, 286, 816, 88, 417, 6010, 24869, 375, 437, 305, 948, 4879, 290, 816, 88, 417, 3898, 7877, 684, 287, 262, 23760, 35258, 13, 10968, 11, 262, 5929, 3513, 286, 262, 3180, 49, 953, 8927, 8621, 20079, 16, 351, 262, 24869, 375, 437, 305, 948, 660, 32488, 27496, 302, 25781, 275, 13865, 1140, 361, 1734, 3220, 616, 27176, 20735, 286, 816, 88, 417, 3898, 7877, 684, 284, 662, 12, 829, 295, 2974, 13, 30222, 1978, 11, 674, 6373, 7603, 326, 16761, 278, 262, 3180, 49, 17289, 816, 88, 417, 6010, 24869, 375, 437, 305, 948, 4879, 290, 21068, 816, 88, 417, 1883, 287, 262, 4931, 286, 20881, 11, 9524, 326, 3180, 49, 28554, 743, 2148, 1128, 283, 876, 4414, 284, 6579, 3871, 33283, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 9800, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14230, 1068, 35, 713, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 2001, 15547, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 36261, 286, 49115, 88, 11, 7458, 286, 20401, 311, 31399, 290, 13782, 320, 6199, 1435, 11, 30197, 2059, 45711, 3900, 3961, 286, 11558, 11, 4842, 11, 1578, 1829, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5855, 3672, 1600, 366, 56, 27870, 12555, 12340, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 24449, 312, 62, 312, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 5450, 1378, 24449, 312, 13, 2398, 14, 2388, 12, 18005, 12, 2816, 940, 12, 25667, 55, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2361, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14230, 1068, 35, 713, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 2001, 15547, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 36261, 286, 49115, 88, 11, 7458, 286, 20401, 311, 31399, 290, 13782, 320, 6199, 1435, 11, 30197, 2059, 45711, 3900, 3961, 286, 11558, 11, 4842, 11, 1578, 1829, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5855, 3672, 1600, 366, 3041, 73, 3216, 347, 22673, 39159, 2611, 12340, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2361, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14230, 1068, 35, 713, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 2001, 15547, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 36261, 286, 49115, 88, 11, 7458, 286, 20401, 311, 31399, 290, 13782, 320, 6199, 1435, 11, 30197, 2059, 45711, 3900, 3961, 286, 11558, 11, 4842, 11, 1578, 1829, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5855, 3672, 1600, 366, 44, 5098, 35055, 12340, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2361, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14230, 1068, 35, 713, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 2001, 15547, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 1135, 359, 5136, 329, 38917, 11, 2732, 286, 49115, 88, 11, 2059, 286, 3442, 11, 2986, 6033, 11, 2986, 6033, 11, 1578, 1829, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5855, 3672, 1600, 366, 18219, 993, 371, 18704, 12340, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 24449, 312, 62, 312, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 5450, 1378, 24449, 312, 13, 2398, 14, 2388, 12, 34215, 12, 17, 24096, 12, 1065, 3682, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2361, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14230, 1068, 35, 713, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 2001, 15547, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 36261, 286, 49115, 88, 11, 7458, 286, 20401, 311, 31399, 290, 13782, 320, 6199, 1435, 11, 30197, 2059, 45711, 3900, 3961, 286, 11558, 11, 4842, 11, 1578, 1829, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5855, 3672, 1600, 366, 24761, 8099, 7204, 12340, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 24449, 312, 62, 312, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 5450, 1378, 24449, 312, 13, 2398, 14, 2388, 12, 18005, 12, 2079, 2780, 12, 1495, 4310, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2361, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16589, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 738, 7483, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14230, 1068, 35, 713, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 7203, 312, 1600, 366, 940, 13, 2425, 4051, 14, 68, 14662, 13, 39111, 3388, 12340, 5855, 4906, 1600, 366, 34023, 4943, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14230, 1068, 35, 713, 26933, 7203, 312, 1600, 366, 1238, 1120, 12, 2919, 19, 55, 12340, 5855, 4906, 1600, 366, 68, 747, 77, 4943, 46570, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14230, 1068, 35, 713, 26933, 7203, 312, 1600, 366, 68, 39111, 3388, 12340, 5855, 4906, 1600, 366, 417, 5040, 312, 4943, 46570, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16589, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5855, 24891, 1600, 14230, 1068, 35, 713, 26933, 7203, 29048, 1600, 366, 940, 4943, 12962, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 2539, 10879, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 18908, 4111, 5503, 2882, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 260, 1820, 417, 1883, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 3849, 2232, 261, 34236, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 349, 328, 375, 437, 305, 948, 660, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 25244, 380, 11340, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 48101, 46225, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16589, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 8726, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14230, 1068, 35, 713, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5855, 11299, 62, 4906, 1600, 366, 5239, 14, 6494, 12340, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5855, 4906, 1600, 366, 12853, 5239, 12340, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5855, 6371, 1600, 366, 5450, 1378, 417, 361, 274, 979, 3007, 13, 2398, 14, 26845, 14, 39111, 3388, 12340, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2361, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16589, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5855, 8424, 1600, 366, 18, 12340, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 7839, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 2964, 6511, 278, 262, 11521, 5503, 2882, 32479, 48935, 816, 88, 417, 1883, 287, 281, 23760, 2858, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5855, 1941, 1600, 366, 1238, 2481, 12340, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2361, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 2361, 198, 8, 198 ]
1.579424
4,199
# Copyright 2022 The BladeDISC Authors. 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. import os __TF_LOG_ENV = 'TF_CPP_MIN_LOG_LEVEL' __ENV_VALUE = os.environ.get(__TF_LOG_ENV, None) try: import tf2onnx # noqa: F401 finally: if __ENV_VALUE is not None: os.environ[__TF_LOG_ENV] = __ENV_VALUE else: del os.environ[__TF_LOG_ENV]
[ 2, 15069, 33160, 383, 11671, 26288, 34, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 198, 2, 17486, 2672, 416, 9723, 1099, 393, 4987, 284, 287, 3597, 11, 3788, 198, 2, 9387, 739, 262, 13789, 318, 9387, 319, 281, 366, 1921, 3180, 1, 29809, 1797, 11, 198, 2, 42881, 34764, 11015, 6375, 7102, 49828, 11053, 3963, 15529, 509, 12115, 11, 2035, 4911, 393, 17142, 13, 198, 2, 4091, 262, 13789, 329, 262, 2176, 3303, 15030, 21627, 290, 198, 2, 11247, 739, 262, 13789, 13, 198, 198, 11748, 28686, 198, 198, 834, 10234, 62, 25294, 62, 1677, 53, 796, 705, 10234, 62, 8697, 47, 62, 23678, 62, 25294, 62, 2538, 18697, 6, 198, 834, 1677, 53, 62, 39488, 796, 28686, 13, 268, 2268, 13, 1136, 7, 834, 10234, 62, 25294, 62, 1677, 53, 11, 6045, 8, 198, 28311, 25, 198, 220, 220, 220, 1330, 48700, 17, 261, 77, 87, 220, 1303, 645, 20402, 25, 376, 21844, 198, 69, 3289, 25, 198, 220, 220, 220, 611, 11593, 1677, 53, 62, 39488, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 268, 2268, 58, 834, 10234, 62, 25294, 62, 1677, 53, 60, 796, 11593, 1677, 53, 62, 39488, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1619, 28686, 13, 268, 2268, 58, 834, 10234, 62, 25294, 62, 1677, 53, 60, 198 ]
2.996552
290
import subprocess import os import sys def download_file_from_storage(gs_file_path): """download a file from GCS into ml-engine running container Arguments: gs_ile_path: string path to the MOJO file. Returns: string: path of the downloaded file """ file_name = "{0}".format(gs_file_path.split("/")[-1]) subprocess.check_call(['gsutil','-q', 'cp', gs_file_path, file_name], stderr=sys.stdout) path = "{0}/{1}".format(os.getcwd(),file_name) return path def save_in_gcs(file_path, gcs_path): """Store a file into GCS Arguments: file_path: string with the file path. gcs_path: string path to the GCS folder """ subprocess.check_call(['gsutil','-q', 'cp', file_path, gcs_path], stderr=sys.stdout)
[ 11748, 850, 14681, 198, 11748, 28686, 198, 11748, 25064, 628, 198, 4299, 4321, 62, 7753, 62, 6738, 62, 35350, 7, 14542, 62, 7753, 62, 6978, 2599, 198, 220, 220, 220, 37227, 15002, 257, 2393, 422, 402, 7902, 656, 25962, 12, 18392, 2491, 9290, 198, 220, 220, 220, 220, 220, 220, 220, 20559, 2886, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 82, 62, 576, 62, 6978, 25, 4731, 3108, 284, 262, 13070, 45006, 2393, 13, 198, 220, 220, 220, 220, 220, 220, 220, 16409, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4731, 25, 3108, 286, 262, 15680, 2393, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2393, 62, 3672, 796, 45144, 15, 92, 1911, 18982, 7, 14542, 62, 7753, 62, 6978, 13, 35312, 7203, 14, 4943, 58, 12, 16, 12962, 198, 220, 220, 220, 850, 14681, 13, 9122, 62, 13345, 7, 17816, 14542, 22602, 3256, 29001, 80, 3256, 705, 13155, 3256, 308, 82, 62, 7753, 62, 6978, 11, 2393, 62, 3672, 4357, 336, 1082, 81, 28, 17597, 13, 19282, 448, 8, 198, 220, 220, 220, 3108, 796, 45144, 15, 92, 14, 90, 16, 92, 1911, 18982, 7, 418, 13, 1136, 66, 16993, 22784, 7753, 62, 3672, 8, 198, 220, 220, 220, 1441, 3108, 628, 198, 4299, 3613, 62, 259, 62, 70, 6359, 7, 7753, 62, 6978, 11, 308, 6359, 62, 6978, 2599, 198, 220, 220, 220, 37227, 22658, 257, 2393, 656, 402, 7902, 198, 220, 220, 220, 220, 220, 220, 220, 20559, 2886, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2393, 62, 6978, 25, 4731, 351, 262, 2393, 3108, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 6359, 62, 6978, 25, 4731, 3108, 284, 262, 402, 7902, 9483, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 850, 14681, 13, 9122, 62, 13345, 7, 17816, 14542, 22602, 3256, 29001, 80, 3256, 705, 13155, 3256, 2393, 62, 6978, 11, 308, 6359, 62, 6978, 4357, 336, 1082, 81, 28, 17597, 13, 19282, 448, 8 ]
2.314121
347
import csv import os from purchases import Purchase if __name__ == '__main__': main()
[ 11748, 269, 21370, 198, 11748, 28686, 198, 198, 6738, 13339, 1330, 27637, 628, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.939394
33
''' Collection of Text Classification Keras Algorithms for Toxic Comment Classification Challenge. https://www.kaggle.com/c/jigsaw-toxic-comment-classification-challenge ''' # Keras from keras.layers import (Dense, Input, Bidirectional, Activation, Dropout, Embedding, Flatten, CuDNNLSTM, CuDNNGRU, Conv2D, MaxPool2D, concatenate, K, Reshape, LSTM) from keras.models import Model from keras import regularizers from keras.utils import multi_gpu_model def blstm_2dcnn(maxlen, max_features, embed_size, embedding_matrix, embedding_dropout = .5, blstm_units = 300, blstm_dropout = .2, cnn_filters = 100, cnn_kernel_size = (5,5), max_pool_size = (5,5), dense_dropout = .4, l2_reg = .00001, gpus = 1): ''' Bidirectional LSTM with Two-dimensional Max Pooling :param maxlen: max length of sequence :param max_features: max number of word embeddings :param embed_size: dimension of word embeddings :param embedding_matrix: embedding matrix created from embed file :param embedding_dropout: dropout after embedding layer :param blstm_units: number of lstm units for the biderectional lstm :param blstm_dropout: dropout after the blstm layer :param cnn_filters: number of CNN filters :param cnn_kernel_size: kernel size of the convolution :param max_pool_size: max pool size :param dense_dropout: dropout before dense layer :param l2_reg: l2 kernel regularizer parameter :gpus: number of gpus :returns: Keras parallel model ''' inp = Input(shape=(maxlen, )) x = Embedding(max_features, embed_size, weights=[embedding_matrix], input_length=maxlen)(inp) x = Dropout(embedding_dropout)(x) x = Bidirectional(CuDNNLSTM(blstm_units, return_sequences=True), merge_mode='sum')(x) x = Dropout(blstm_dropout)(x) x = Reshape((maxlen, blstm_units, 1))(x) x = Conv2D(cnn_filters, kernel_size=cnn_kernel_size, padding='valid', kernel_initializer='glorot_uniform')(x) x = MaxPool2D(pool_size=max_pool_size)(x) x = Flatten()(x) x = Dropout(dense_dropout)(x) x = Dense(6, activation = "sigmoid", kernel_regularizer=regularizers.l2(l2_reg))(x) parallel_model = Model(inputs = inp, outputs = x) parallel_model = multi_gpu_model(parallel_model, gpus=gpus) parallel_model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy']) return parallel_model def bgru_2dcnn(maxlen, max_features, embed_size, embedding_matrix, embedding_dropout = .5, bgru_units = 300, bgru_dropout = .2, cnn_filters = 100, cnn_kernel_size = (5,5), max_pool_size = (5,5), dense_dropout = .4, l2_reg = .00001, gpus = 1): ''' Bidirectional GRU with Two-dimensional Max Pooling :param maxlen: max length of sequence :param max_features: max number of word embeddings :param embed_size: dimension of word embeddings :param embedding_matrix: embedding matrix created from embed file :param embedding_dropout: dropout after embedding layer :param bgru_units: number of gru units for the biderectional gru :param bgru_dropout: dropout after the bgru layer :param cnn_filters: number of cnn filters :param cnn_kernel_size: kernel size of the convolution :param max_pool_size: max pool size :param dense_dropout: dropout before dense layer :param l2_reg: l2 kernel regularizer parameter :gpus: number of gpus :returns: Keras parallel model ''' inp = Input(shape=(maxlen, )) x = Embedding(max_features, embed_size, weights=[embedding_matrix], input_length=maxlen)(inp) x = Dropout(embedding_dropout)(x) x = Bidirectional(CuDNNGRU(bgru_units, return_sequences=True), merge_mode='sum')(x) x = Dropout(bgru_dropout)(x) x = Reshape((maxlen, bgru_units, 1))(x) x = Conv2D(cnn_filters, kernel_size=cnn_kernel_size, padding='valid', kernel_initializer='glorot_uniform')(x) x = MaxPool2D(pool_size=max_pool_size)(x) x = Flatten()(x) x = Dropout(dense_dropout)(x) x = Dense(6, activation = "sigmoid", kernel_regularizer=regularizers.l2(l2_reg))(x) parallel_model = Model(inputs = inp, outputs = x) parallel_model = multi_gpu_model(parallel_model, gpus=gpus) parallel_model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy']) return parallel_model
[ 7061, 6, 198, 36307, 286, 8255, 40984, 17337, 292, 978, 7727, 907, 329, 29274, 18957, 40984, 13879, 13, 198, 5450, 1378, 2503, 13, 74, 9460, 293, 13, 785, 14, 66, 14, 73, 45636, 12, 83, 18047, 12, 23893, 12, 4871, 2649, 12, 36747, 3540, 198, 7061, 6, 198, 198, 2, 17337, 292, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 357, 35, 1072, 11, 23412, 11, 43484, 4154, 282, 11, 13144, 341, 11, 14258, 448, 11, 13302, 6048, 278, 11, 1610, 41769, 11, 14496, 35, 6144, 43, 2257, 44, 11, 14496, 35, 6144, 10761, 52, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 34872, 17, 35, 11, 5436, 27201, 17, 35, 11, 1673, 36686, 378, 11, 509, 11, 1874, 71, 1758, 11, 406, 2257, 44, 8, 198, 6738, 41927, 292, 13, 27530, 1330, 9104, 198, 6738, 41927, 292, 1330, 3218, 11341, 198, 6738, 41927, 292, 13, 26791, 1330, 5021, 62, 46999, 62, 19849, 628, 198, 198, 4299, 698, 301, 76, 62, 17, 17896, 20471, 7, 9806, 11925, 11, 3509, 62, 40890, 11, 11525, 62, 7857, 11, 11525, 12083, 62, 6759, 8609, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11525, 12083, 62, 14781, 448, 796, 764, 20, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 698, 301, 76, 62, 41667, 796, 5867, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 698, 301, 76, 62, 14781, 448, 796, 764, 17, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 20471, 62, 10379, 1010, 796, 1802, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 20471, 62, 33885, 62, 7857, 796, 357, 20, 11, 20, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 7742, 62, 7857, 796, 357, 20, 11, 20, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15715, 62, 14781, 448, 796, 764, 19, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 17, 62, 2301, 796, 764, 2388, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27809, 385, 796, 352, 2599, 198, 220, 220, 220, 220, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 43484, 4154, 282, 406, 2257, 44, 351, 4930, 12, 19577, 5436, 19850, 278, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1058, 17143, 3509, 11925, 25, 3509, 4129, 286, 8379, 198, 220, 220, 220, 1058, 17143, 3509, 62, 40890, 25, 3509, 1271, 286, 1573, 11525, 67, 654, 198, 220, 220, 220, 1058, 17143, 11525, 62, 7857, 25, 15793, 286, 1573, 11525, 67, 654, 198, 220, 220, 220, 1058, 17143, 11525, 12083, 62, 6759, 8609, 25, 11525, 12083, 17593, 2727, 422, 11525, 2393, 198, 220, 220, 220, 1058, 17143, 11525, 12083, 62, 14781, 448, 25, 4268, 448, 706, 11525, 12083, 7679, 198, 220, 220, 220, 1058, 17143, 698, 301, 76, 62, 41667, 25, 1271, 286, 300, 301, 76, 4991, 329, 262, 275, 485, 8243, 282, 300, 301, 76, 198, 220, 220, 220, 1058, 17143, 698, 301, 76, 62, 14781, 448, 25, 4268, 448, 706, 262, 698, 301, 76, 7679, 198, 220, 220, 220, 1058, 17143, 269, 20471, 62, 10379, 1010, 25, 1271, 286, 8100, 16628, 198, 220, 220, 220, 1058, 17143, 269, 20471, 62, 33885, 62, 7857, 25, 9720, 2546, 286, 262, 3063, 2122, 198, 220, 220, 220, 1058, 17143, 3509, 62, 7742, 62, 7857, 25, 3509, 5933, 2546, 198, 220, 220, 220, 1058, 17143, 15715, 62, 14781, 448, 25, 4268, 448, 878, 15715, 7679, 198, 220, 220, 220, 1058, 17143, 300, 17, 62, 2301, 25, 300, 17, 9720, 3218, 7509, 11507, 198, 220, 220, 220, 1058, 31197, 385, 25, 1271, 286, 27809, 385, 198, 220, 220, 220, 1058, 7783, 82, 25, 17337, 292, 10730, 2746, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 198, 220, 220, 220, 287, 79, 796, 23412, 7, 43358, 16193, 9806, 11925, 11, 15306, 198, 220, 220, 220, 2124, 796, 13302, 6048, 278, 7, 9806, 62, 40890, 11, 11525, 62, 7857, 11, 19590, 41888, 20521, 12083, 62, 6759, 8609, 4357, 5128, 62, 13664, 28, 9806, 11925, 5769, 259, 79, 8, 198, 220, 220, 220, 2124, 796, 14258, 448, 7, 20521, 12083, 62, 14781, 448, 5769, 87, 8, 220, 220, 220, 220, 628, 220, 220, 220, 2124, 796, 43484, 4154, 282, 7, 46141, 35, 6144, 43, 2257, 44, 7, 2436, 301, 76, 62, 41667, 11, 1441, 62, 3107, 3007, 28, 17821, 828, 20121, 62, 14171, 11639, 16345, 6, 5769, 87, 8, 198, 220, 220, 220, 2124, 796, 14258, 448, 7, 2436, 301, 76, 62, 14781, 448, 5769, 87, 8, 198, 220, 220, 220, 2124, 796, 1874, 71, 1758, 19510, 9806, 11925, 11, 698, 301, 76, 62, 41667, 11, 352, 4008, 7, 87, 8, 628, 220, 220, 220, 2124, 796, 34872, 17, 35, 7, 66, 20471, 62, 10379, 1010, 11, 9720, 62, 7857, 28, 66, 20471, 62, 33885, 62, 7857, 11, 24511, 11639, 12102, 3256, 9720, 62, 36733, 7509, 11639, 70, 4685, 313, 62, 403, 6933, 6, 5769, 87, 8, 198, 220, 220, 220, 2124, 796, 5436, 27201, 17, 35, 7, 7742, 62, 7857, 28, 9806, 62, 7742, 62, 7857, 5769, 87, 8, 628, 220, 220, 220, 2124, 796, 1610, 41769, 3419, 7, 87, 8, 198, 220, 220, 220, 2124, 796, 14258, 448, 7, 67, 1072, 62, 14781, 448, 5769, 87, 8, 198, 220, 220, 220, 2124, 796, 360, 1072, 7, 21, 11, 14916, 796, 366, 82, 17225, 1868, 1600, 220, 9720, 62, 16338, 7509, 28, 16338, 11341, 13, 75, 17, 7, 75, 17, 62, 2301, 4008, 7, 87, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 10730, 62, 19849, 796, 9104, 7, 15414, 82, 796, 287, 79, 11, 23862, 796, 2124, 8, 198, 220, 220, 220, 10730, 62, 19849, 796, 5021, 62, 46999, 62, 19849, 7, 1845, 29363, 62, 19849, 11, 27809, 385, 28, 31197, 385, 8, 198, 220, 220, 220, 10730, 62, 19849, 13, 5589, 576, 7, 22462, 11639, 39491, 62, 19692, 298, 28338, 3256, 6436, 7509, 11639, 324, 321, 3256, 20731, 28, 17816, 4134, 23843, 6, 12962, 628, 220, 220, 220, 1441, 10730, 62, 19849, 628, 198, 198, 4299, 275, 48929, 62, 17, 17896, 20471, 7, 9806, 11925, 11, 3509, 62, 40890, 11, 11525, 62, 7857, 11, 11525, 12083, 62, 6759, 8609, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11525, 12083, 62, 14781, 448, 796, 764, 20, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 48929, 62, 41667, 796, 5867, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 48929, 62, 14781, 448, 796, 764, 17, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 20471, 62, 10379, 1010, 796, 1802, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 20471, 62, 33885, 62, 7857, 796, 357, 20, 11, 20, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 7742, 62, 7857, 796, 357, 20, 11, 20, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15715, 62, 14781, 448, 796, 764, 19, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 17, 62, 2301, 796, 764, 2388, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27809, 385, 796, 352, 2599, 198, 220, 220, 220, 220, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 43484, 4154, 282, 10863, 52, 351, 4930, 12, 19577, 5436, 19850, 278, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1058, 17143, 3509, 11925, 25, 3509, 4129, 286, 8379, 198, 220, 220, 220, 1058, 17143, 3509, 62, 40890, 25, 3509, 1271, 286, 1573, 11525, 67, 654, 198, 220, 220, 220, 1058, 17143, 11525, 62, 7857, 25, 15793, 286, 1573, 11525, 67, 654, 198, 220, 220, 220, 1058, 17143, 11525, 12083, 62, 6759, 8609, 25, 11525, 12083, 17593, 2727, 422, 11525, 2393, 198, 220, 220, 220, 1058, 17143, 11525, 12083, 62, 14781, 448, 25, 4268, 448, 706, 11525, 12083, 7679, 198, 220, 220, 220, 1058, 17143, 275, 48929, 62, 41667, 25, 1271, 286, 22848, 4991, 329, 262, 275, 485, 8243, 282, 22848, 198, 220, 220, 220, 1058, 17143, 275, 48929, 62, 14781, 448, 25, 4268, 448, 706, 262, 275, 48929, 7679, 198, 220, 220, 220, 1058, 17143, 269, 20471, 62, 10379, 1010, 25, 1271, 286, 269, 20471, 16628, 198, 220, 220, 220, 1058, 17143, 269, 20471, 62, 33885, 62, 7857, 25, 9720, 2546, 286, 262, 3063, 2122, 198, 220, 220, 220, 1058, 17143, 3509, 62, 7742, 62, 7857, 25, 3509, 5933, 2546, 198, 220, 220, 220, 1058, 17143, 15715, 62, 14781, 448, 25, 4268, 448, 878, 15715, 7679, 198, 220, 220, 220, 1058, 17143, 300, 17, 62, 2301, 25, 300, 17, 9720, 3218, 7509, 11507, 198, 220, 220, 220, 1058, 31197, 385, 25, 1271, 286, 27809, 385, 198, 220, 220, 220, 1058, 7783, 82, 25, 17337, 292, 10730, 2746, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 198, 220, 220, 220, 287, 79, 796, 23412, 7, 43358, 16193, 9806, 11925, 11, 15306, 198, 220, 220, 220, 2124, 796, 13302, 6048, 278, 7, 9806, 62, 40890, 11, 11525, 62, 7857, 11, 19590, 41888, 20521, 12083, 62, 6759, 8609, 4357, 5128, 62, 13664, 28, 9806, 11925, 5769, 259, 79, 8, 198, 220, 220, 220, 2124, 796, 14258, 448, 7, 20521, 12083, 62, 14781, 448, 5769, 87, 8, 220, 220, 220, 220, 628, 220, 220, 220, 2124, 796, 43484, 4154, 282, 7, 46141, 35, 6144, 10761, 52, 7, 35904, 622, 62, 41667, 11, 1441, 62, 3107, 3007, 28, 17821, 828, 20121, 62, 14171, 11639, 16345, 6, 5769, 87, 8, 198, 220, 220, 220, 2124, 796, 14258, 448, 7, 35904, 622, 62, 14781, 448, 5769, 87, 8, 198, 220, 220, 220, 2124, 796, 1874, 71, 1758, 19510, 9806, 11925, 11, 275, 48929, 62, 41667, 11, 352, 4008, 7, 87, 8, 628, 220, 220, 220, 2124, 796, 34872, 17, 35, 7, 66, 20471, 62, 10379, 1010, 11, 9720, 62, 7857, 28, 66, 20471, 62, 33885, 62, 7857, 11, 24511, 11639, 12102, 3256, 9720, 62, 36733, 7509, 11639, 70, 4685, 313, 62, 403, 6933, 6, 5769, 87, 8, 198, 220, 220, 220, 2124, 796, 5436, 27201, 17, 35, 7, 7742, 62, 7857, 28, 9806, 62, 7742, 62, 7857, 5769, 87, 8, 628, 220, 220, 220, 2124, 796, 1610, 41769, 3419, 7, 87, 8, 198, 220, 220, 220, 2124, 796, 14258, 448, 7, 67, 1072, 62, 14781, 448, 5769, 87, 8, 198, 220, 220, 220, 2124, 796, 360, 1072, 7, 21, 11, 14916, 796, 366, 82, 17225, 1868, 1600, 220, 9720, 62, 16338, 7509, 28, 16338, 11341, 13, 75, 17, 7, 75, 17, 62, 2301, 4008, 7, 87, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 10730, 62, 19849, 796, 9104, 7, 15414, 82, 796, 287, 79, 11, 23862, 796, 2124, 8, 198, 220, 220, 220, 10730, 62, 19849, 796, 5021, 62, 46999, 62, 19849, 7, 1845, 29363, 62, 19849, 11, 27809, 385, 28, 31197, 385, 8, 198, 220, 220, 220, 10730, 62, 19849, 13, 5589, 576, 7, 22462, 11639, 39491, 62, 19692, 298, 28338, 3256, 6436, 7509, 11639, 324, 321, 3256, 20731, 28, 17816, 4134, 23843, 6, 12962, 628, 220, 220, 220, 1441, 10730, 62, 19849, 628 ]
2.352463
1,969
#!/usr/bin/python import socket from thread import * import threading from terminaltables import AsciiTable from chat_module import * reset="\033[0;0m" red="\033[38;5;9m" byellow="\033[38;5;3m" yellowb="\033[38;5;11m" blue="\033[38;5;27m" purple="\033[1;33;35m" cyan="\033[38;5;6m" white="\033[38;5;7m" orange="\033[38;5;202m" lblue="\033[38;5;117m" green="\033[38;5;2m" host = '' port = 8888 TR_num = [] clients_lists = [] TR_ip = [] TR_port = [] thread_num = 0 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) s.bind((host, port)) print "[+] Binded successfully." s.listen(5) print "[+] Listening on port {}".format(green + str(port) + reset) start_new_thread(CMD, ()) while 1: try: c, addr = s.accept() clients_lists.append(c) thread_num += 1 print "[+] Client%s connected. IP : %s PORT : %s" % (red + str(thread_num) + reset, red + str(addr[0]) + reset, red + str(addr[1]) + reset) conn_data = {'IP':str(addr[0]), 'PORT':str(addr[1])} start_new_thread(threaded, (c,thread_num, conn_data)) except KeyboardInterrupt: print "[+] Closing.." break s.close()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 17802, 220, 198, 6738, 4704, 1330, 1635, 198, 11748, 4704, 278, 198, 6738, 5651, 2501, 2977, 1330, 1081, 979, 72, 10962, 198, 6738, 8537, 62, 21412, 1330, 1635, 198, 198, 42503, 2625, 59, 44427, 58, 15, 26, 15, 76, 1, 198, 445, 2625, 59, 44427, 58, 2548, 26, 20, 26, 24, 76, 1, 198, 1525, 5037, 2625, 59, 44427, 58, 2548, 26, 20, 26, 18, 76, 1, 198, 36022, 65, 2625, 59, 44427, 58, 2548, 26, 20, 26, 1157, 76, 1, 198, 17585, 2625, 59, 44427, 58, 2548, 26, 20, 26, 1983, 76, 1, 198, 14225, 1154, 2625, 59, 44427, 58, 16, 26, 2091, 26, 2327, 76, 1, 198, 948, 272, 2625, 59, 44427, 58, 2548, 26, 20, 26, 21, 76, 1, 198, 11186, 2625, 59, 44427, 58, 2548, 26, 20, 26, 22, 76, 1, 198, 43745, 2625, 59, 44427, 58, 2548, 26, 20, 26, 19004, 76, 1, 198, 75, 17585, 2625, 59, 44427, 58, 2548, 26, 20, 26, 17657, 76, 1, 198, 14809, 2625, 59, 44427, 58, 2548, 26, 20, 26, 17, 76, 1, 628, 198, 198, 4774, 796, 10148, 198, 634, 796, 807, 28011, 198, 198, 5446, 62, 22510, 796, 17635, 198, 565, 2334, 62, 20713, 796, 17635, 198, 5446, 62, 541, 796, 17635, 198, 5446, 62, 634, 796, 17635, 628, 628, 628, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 628, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 628, 628, 628, 628, 628, 628, 198, 198, 16663, 62, 22510, 796, 657, 198, 82, 796, 17802, 13, 44971, 7, 44971, 13, 8579, 62, 1268, 2767, 11, 17802, 13, 50, 11290, 62, 2257, 32235, 8, 198, 82, 13, 28709, 735, 8738, 7, 44971, 13, 50, 3535, 62, 50, 11290, 2767, 11, 17802, 13, 15821, 62, 2200, 19108, 2885, 7707, 11, 352, 8, 198, 198, 82, 13, 21653, 19510, 4774, 11, 2493, 4008, 198, 198, 4798, 12878, 10, 60, 41211, 276, 7675, 526, 198, 198, 82, 13, 4868, 268, 7, 20, 8, 198, 198, 4798, 12878, 10, 60, 7343, 3101, 319, 2493, 23884, 1911, 18982, 7, 14809, 1343, 965, 7, 634, 8, 1343, 13259, 8, 198, 9688, 62, 3605, 62, 16663, 7, 34, 12740, 11, 32865, 628, 198, 4514, 352, 25, 628, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 269, 11, 37817, 796, 264, 13, 13635, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 7534, 62, 20713, 13, 33295, 7, 66, 8, 198, 220, 220, 220, 220, 220, 220, 220, 4704, 62, 22510, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 12878, 10, 60, 20985, 4, 82, 5884, 13, 220, 6101, 1058, 4064, 82, 350, 9863, 1058, 4064, 82, 1, 4064, 357, 445, 1343, 965, 7, 16663, 62, 22510, 8, 1343, 13259, 11, 2266, 1343, 965, 7, 29851, 58, 15, 12962, 1343, 13259, 11, 2266, 1343, 965, 7, 29851, 58, 16, 12962, 1343, 13259, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 48260, 62, 7890, 796, 1391, 6, 4061, 10354, 2536, 7, 29851, 58, 15, 46570, 705, 15490, 10354, 2536, 7, 29851, 58, 16, 12962, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 923, 62, 3605, 62, 16663, 7, 16663, 276, 11, 357, 66, 11, 16663, 62, 22510, 11, 48260, 62, 7890, 4008, 628, 198, 220, 220, 220, 2845, 31973, 9492, 3622, 25, 628, 220, 220, 220, 220, 220, 220, 220, 3601, 12878, 10, 60, 47055, 492, 1, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 198, 198, 82, 13, 19836, 3419, 628, 628, 628, 628, 628, 628, 628 ]
1.994048
672
# -*- coding: utf-8 -*- # @Time : 2019/7/11 10:32 # @Author : hoo # @Site : # @File : korok.py # @Software: PyCharm Community Edition ''' 2019/7/9 : 日志清理脚本 ''' import codecs import glob import traceback import tarfile import subprocess import sys import datetime import time import shutil import os import logging import optparse import shlex import socket import fnmatch import re import platform # python2 python3 import diff from sys import version_info if version_info.major == 2: import ConfigParser else: import configparser as ConfigParser ''' # 数据备份 [archive-eg] action=archive # 备份原路径 src=/home/ap/dev/app/logs dst=/home/ap/dev/backup pattern=/home/ap/dev/app/logs/2018*.log # 备份文件是否带时间戳 timestamp=y # 是否保存原文件 reserve=y # day-hour-minute-second mtime=0-0-0-01 ''' ''' # 数据清理 [clear-test] action=clear src=./test_folder/dst pattern=*.tar.gz mtime=0-0-0-01 timestamp=y recursive=y ''' def ParseArgs(): ''' 参数解析 :return: option args ''' parser = optparse.OptionParser() parser.add_option( "-f", "--file", type="string", dest="filename", help="Specify the Config file", default="setting.ini") parser.add_option( "-n", "--node", type="string", dest="node", help="Specify the the name of Server/Node") parser.add_option( "-s", "--section", type="string", dest="section", help="Specify the Section to Run", default="clear-test") parser.add_option( "-l", "--log", type="string", dest="log", help="Specify the log path") parser.add_option( "-d", action="store_true", default='True', dest="debug", help="Indicate whether to log debug info") (options, args) = parser.parse_args() if not options.filename: options.error( 'Error : Config file Missing. Use -f or --file to specify the config file') print('*' * 50) print(options) print('*' * 50) return options, args if __name__ == '__main__': main()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 7575, 220, 220, 220, 1058, 13130, 14, 22, 14, 1157, 838, 25, 2624, 198, 2, 2488, 13838, 220, 1058, 289, 2238, 198, 2, 2488, 29123, 220, 220, 220, 1058, 220, 198, 2, 2488, 8979, 220, 220, 220, 1058, 479, 273, 482, 13, 9078, 198, 2, 2488, 25423, 25, 9485, 1925, 1670, 8108, 5061, 198, 198, 7061, 6, 198, 23344, 14, 22, 14, 24, 1058, 10545, 245, 98, 33232, 245, 162, 116, 227, 49426, 228, 164, 226, 248, 17312, 105, 198, 7061, 6, 198, 198, 11748, 40481, 82, 198, 11748, 15095, 198, 11748, 12854, 1891, 198, 11748, 13422, 7753, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 4818, 8079, 198, 11748, 640, 198, 11748, 4423, 346, 198, 11748, 28686, 198, 11748, 18931, 198, 11748, 2172, 29572, 198, 11748, 427, 2588, 198, 11748, 17802, 198, 11748, 24714, 15699, 198, 11748, 302, 198, 11748, 3859, 198, 2, 21015, 17, 21015, 18, 1330, 814, 198, 6738, 25064, 1330, 2196, 62, 10951, 198, 361, 2196, 62, 10951, 13, 22478, 6624, 362, 25, 198, 220, 220, 220, 1330, 17056, 46677, 198, 17772, 25, 198, 220, 220, 220, 1330, 4566, 48610, 355, 17056, 46677, 628, 198, 7061, 6, 198, 2, 10545, 243, 108, 162, 235, 106, 13783, 229, 20015, 121, 198, 58, 17474, 12, 1533, 60, 198, 2673, 28, 17474, 198, 2, 36469, 229, 20015, 121, 43889, 253, 164, 115, 107, 36181, 226, 198, 10677, 33223, 11195, 14, 499, 14, 7959, 14, 1324, 14, 6404, 82, 198, 67, 301, 33223, 11195, 14, 499, 14, 7959, 14, 1891, 929, 198, 33279, 33223, 11195, 14, 499, 14, 7959, 14, 1324, 14, 6404, 82, 14, 7908, 24620, 6404, 198, 2, 36469, 229, 20015, 121, 23877, 229, 20015, 114, 42468, 28938, 99, 30585, 99, 33768, 114, 29785, 112, 22755, 111, 198, 16514, 27823, 28, 88, 198, 2, 10545, 246, 107, 28938, 99, 46479, 251, 27764, 246, 43889, 253, 23877, 229, 20015, 114, 198, 411, 3760, 28, 88, 198, 2, 1110, 12, 9769, 12, 11374, 12, 12227, 198, 76, 2435, 28, 15, 12, 15, 12, 15, 12, 486, 198, 7061, 6, 198, 198, 7061, 6, 198, 2, 10545, 243, 108, 162, 235, 106, 162, 116, 227, 49426, 228, 198, 58, 20063, 12, 9288, 60, 198, 2673, 28, 20063, 198, 10677, 28, 19571, 9288, 62, 43551, 14, 67, 301, 198, 33279, 28, 24620, 18870, 13, 34586, 198, 76, 2435, 28, 15, 12, 15, 12, 15, 12, 486, 198, 16514, 27823, 28, 88, 198, 8344, 30753, 28, 88, 198, 7061, 6, 628, 628, 198, 4299, 2547, 325, 42035, 33529, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 10263, 237, 224, 46763, 108, 164, 100, 96, 162, 252, 238, 198, 220, 220, 220, 1058, 7783, 25, 3038, 26498, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 30751, 796, 2172, 29572, 13, 19722, 46677, 3419, 198, 220, 220, 220, 30751, 13, 2860, 62, 18076, 7, 198, 220, 220, 220, 220, 220, 220, 220, 27444, 69, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 438, 7753, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 2625, 8841, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 2244, 2625, 34345, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 1037, 2625, 22882, 1958, 262, 17056, 2393, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 4277, 2625, 33990, 13, 5362, 4943, 198, 220, 220, 220, 30751, 13, 2860, 62, 18076, 7, 198, 220, 220, 220, 220, 220, 220, 220, 27444, 77, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 438, 17440, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 2625, 8841, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 2244, 2625, 17440, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 1037, 2625, 22882, 1958, 262, 262, 1438, 286, 9652, 14, 19667, 4943, 198, 220, 220, 220, 30751, 13, 2860, 62, 18076, 7, 198, 220, 220, 220, 220, 220, 220, 220, 27444, 82, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 438, 5458, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 2625, 8841, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 2244, 2625, 5458, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 1037, 2625, 22882, 1958, 262, 7275, 284, 5660, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 4277, 2625, 20063, 12, 9288, 4943, 198, 220, 220, 220, 30751, 13, 2860, 62, 18076, 7, 198, 220, 220, 220, 220, 220, 220, 220, 27444, 75, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 366, 438, 6404, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 2625, 8841, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 2244, 2625, 6404, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 1037, 2625, 22882, 1958, 262, 2604, 3108, 4943, 198, 220, 220, 220, 30751, 13, 2860, 62, 18076, 7, 198, 220, 220, 220, 220, 220, 220, 220, 27444, 67, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 2223, 2625, 8095, 62, 7942, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 4277, 11639, 17821, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 2244, 2625, 24442, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 1037, 2625, 5497, 5344, 1771, 284, 2604, 14257, 7508, 4943, 198, 220, 220, 220, 357, 25811, 11, 26498, 8, 796, 30751, 13, 29572, 62, 22046, 3419, 628, 220, 220, 220, 611, 407, 3689, 13, 34345, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3689, 13, 18224, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 12331, 1058, 17056, 2393, 25639, 13, 5765, 532, 69, 393, 1377, 7753, 284, 11986, 262, 4566, 2393, 11537, 628, 220, 220, 220, 3601, 10786, 9, 6, 1635, 2026, 8, 198, 220, 220, 220, 3601, 7, 25811, 8, 198, 220, 220, 220, 3601, 10786, 9, 6, 1635, 2026, 8, 198, 220, 220, 220, 1441, 3689, 11, 26498, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 628 ]
2.116071
1,008
import doctest from pkgutil import iter_modules
[ 11748, 10412, 395, 220, 198, 6738, 279, 10025, 22602, 1330, 11629, 62, 18170, 628 ]
3.571429
14
__version__ = '0.2.9' __title__ = 'tfpromote' __description__ = 'Compare and promote Terraform files from dev to prod environments.' __url__ = 'https://github.com/billtrust/terraform-promote' __author__ = 'Doug Kerwin' __author_email__ = '[email protected]' __license__ = 'MIT' __keywords__ = ['terraform']
[ 834, 9641, 834, 796, 705, 15, 13, 17, 13, 24, 6, 201, 198, 834, 7839, 834, 796, 705, 27110, 16963, 1258, 6, 201, 198, 834, 11213, 834, 796, 705, 41488, 290, 7719, 24118, 687, 3696, 422, 1614, 284, 40426, 12493, 2637, 201, 198, 834, 6371, 834, 796, 705, 5450, 1378, 12567, 13, 785, 14, 35546, 38087, 14, 353, 430, 687, 12, 16963, 1258, 6, 201, 198, 834, 9800, 834, 796, 705, 42297, 17337, 5404, 6, 201, 198, 834, 9800, 62, 12888, 834, 796, 705, 67, 6122, 5404, 31, 35546, 38087, 13, 785, 6, 201, 198, 834, 43085, 834, 796, 705, 36393, 6, 201, 198, 834, 2539, 10879, 834, 796, 37250, 353, 430, 687, 20520 ]
2.780702
114
from zorg.driver import Driver from multiprocessing import Queue from threading import Thread import time
[ 6738, 1976, 2398, 13, 26230, 1330, 12434, 198, 6738, 18540, 305, 919, 278, 1330, 4670, 518, 198, 6738, 4704, 278, 1330, 14122, 198, 11748, 640, 628 ]
4.115385
26
import random import uuid import os import gevent from jumpscale.clients.explorer.models import NextAction, WorkloadType from jumpscale.loader import j from jumpscale.sals.reservation_chatflow import deployer from jumpscale.sals.reservation_chatflow.deployer import DeploymentFailed from .base_component import VDCBaseComponent from .scheduler import Scheduler from textwrap import dedent VDC_PARENT_DOMAIN = j.core.config.get("VDC_PARENT_DOMAIN", "grid.tf") PROXY_SERVICE_TEMPLATE = """ kind: Service apiVersion: v1 metadata: name: {{ service_name }} spec: type: ClusterIP ports: - port: {{ port }} """ PROXY_ENDPOINT_TEMPLATE = """ kind: Endpoints apiVersion: v1 metadata: name: {{ endpoint_name }} subsets: - addresses: {% for address in addresses %} - ip: {{ address }} {% endfor %} ports: - port: {{ port }} """ PROXY_INGRESS_TEMPLATE = """ apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: {{ ingress_name }} {% if force_https %} annotations: ingress.kubernetes.io/ssl-redirect: "true" {% endif %} spec: rules: - host: {{ hostname }} http: paths: - path: / backend: serviceName: {{ service_name }} servicePort: {{ service_port }} """
[ 11748, 4738, 198, 11748, 334, 27112, 198, 11748, 28686, 198, 198, 11748, 4903, 1151, 198, 6738, 18045, 38765, 13, 565, 2334, 13, 20676, 11934, 13, 27530, 1330, 7406, 12502, 11, 5521, 2220, 6030, 198, 6738, 18045, 38765, 13, 29356, 1330, 474, 198, 6738, 18045, 38765, 13, 82, 874, 13, 411, 13208, 62, 17006, 11125, 1330, 6061, 263, 198, 6738, 18045, 38765, 13, 82, 874, 13, 411, 13208, 62, 17006, 11125, 13, 2934, 1420, 263, 1330, 34706, 434, 37, 6255, 198, 198, 6738, 764, 8692, 62, 42895, 1330, 569, 9697, 14881, 21950, 198, 6738, 764, 1416, 704, 18173, 1330, 27774, 18173, 198, 6738, 2420, 37150, 1330, 4648, 298, 198, 198, 8898, 34, 62, 27082, 3525, 62, 39170, 29833, 796, 474, 13, 7295, 13, 11250, 13, 1136, 7203, 8898, 34, 62, 27082, 3525, 62, 39170, 29833, 1600, 366, 25928, 13, 27110, 4943, 198, 198, 31190, 34278, 62, 35009, 27389, 62, 51, 3620, 6489, 6158, 796, 37227, 198, 11031, 25, 4809, 198, 15042, 14815, 25, 410, 16, 198, 38993, 25, 198, 1438, 25, 22935, 2139, 62, 3672, 34949, 198, 16684, 25, 198, 2099, 25, 38279, 4061, 198, 14090, 25, 198, 532, 2493, 25, 22935, 2493, 34949, 198, 37811, 628, 198, 31190, 34278, 62, 1677, 6322, 46, 12394, 62, 51, 3620, 6489, 6158, 796, 37227, 198, 11031, 25, 5268, 13033, 198, 15042, 14815, 25, 410, 16, 198, 38993, 25, 198, 1438, 25, 22935, 36123, 62, 3672, 34949, 198, 7266, 28709, 25, 198, 532, 9405, 25, 198, 220, 220, 220, 1391, 4, 329, 2209, 287, 9405, 4064, 92, 198, 220, 220, 220, 220, 532, 20966, 25, 22935, 2209, 34949, 198, 220, 220, 220, 1391, 4, 886, 1640, 4064, 92, 198, 220, 220, 14090, 25, 198, 220, 220, 220, 220, 532, 2493, 25, 22935, 2493, 34949, 198, 37811, 628, 198, 31190, 34278, 62, 2751, 49, 7597, 62, 51, 3620, 6489, 6158, 796, 37227, 198, 15042, 14815, 25, 19140, 13, 74, 23, 82, 13, 952, 14, 85, 16, 31361, 16, 198, 11031, 25, 554, 5914, 198, 38993, 25, 198, 220, 1438, 25, 22935, 5347, 601, 62, 3672, 34949, 198, 220, 1391, 4, 611, 2700, 62, 5450, 4064, 92, 198, 220, 37647, 25, 198, 220, 220, 220, 5347, 601, 13, 74, 18478, 3262, 274, 13, 952, 14, 45163, 12, 445, 1060, 25, 366, 7942, 1, 198, 220, 1391, 4, 45762, 4064, 92, 198, 16684, 25, 198, 220, 3173, 25, 198, 220, 220, 220, 532, 2583, 25, 22935, 2583, 3672, 34949, 198, 220, 220, 220, 220, 220, 2638, 25, 198, 220, 220, 220, 220, 220, 220, 220, 13532, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 3108, 25, 1220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30203, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2139, 5376, 25, 22935, 2139, 62, 3672, 34949, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2139, 13924, 25, 22935, 2139, 62, 634, 34949, 198, 37811, 628 ]
2.603696
487
"""UR URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.urls import path from django.conf.urls import url,include from urmovie.views import main_view,movie_view,actor_view,contact_view """ URMovie应用下的路由系统 """ urlpatterns = [ path('', main_view.index), path('index', main_view.index), path('movie_class', main_view.movie_class), path('actor_class', main_view.actor_class), path('contact', main_view.contact), url(r'^recommend-(?P<name>\d+)',movie_view.recommend), url(r'^queryMovieByAge-(?P<age>\d+)-(?P<pageid>\d+)',movie_view.queryMovieByAge), url(r'^queryMovieByCate-(?P<cate>\d+)-(?P<pageid>\d+)',movie_view.queryMovieByCate), url(r'^queryMovie-(?P<id>\d+)',movie_view.queryMovie), url(r'^queryActorByNation-(?P<nation>\d+)-(?P<pageid>\d+)',actor_view.queryActorByNation), url(r'^queryActor-(?P<id>\d+)',actor_view.queryActor) ]
[ 37811, 4261, 10289, 28373, 198, 198, 464, 4600, 6371, 33279, 82, 63, 1351, 11926, 32336, 284, 5009, 13, 1114, 517, 1321, 3387, 766, 25, 198, 220, 220, 220, 3740, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 17, 13, 15, 14, 4852, 873, 14, 4023, 14, 6371, 82, 14, 198, 27730, 25, 198, 22203, 5009, 198, 220, 220, 220, 352, 13, 3060, 281, 1330, 25, 220, 422, 616, 62, 1324, 1330, 5009, 198, 220, 220, 220, 362, 13, 3060, 257, 10289, 284, 19016, 33279, 82, 25, 220, 3108, 10786, 3256, 5009, 13, 11195, 11, 1438, 11639, 11195, 11537, 198, 9487, 12, 3106, 5009, 198, 220, 220, 220, 352, 13, 3060, 281, 1330, 25, 220, 422, 584, 62, 1324, 13, 33571, 1330, 5995, 198, 220, 220, 220, 362, 13, 3060, 257, 10289, 284, 19016, 33279, 82, 25, 220, 3108, 10786, 3256, 5995, 13, 292, 62, 1177, 22784, 1438, 11639, 11195, 11537, 198, 818, 6360, 1194, 10289, 10414, 198, 220, 220, 220, 352, 13, 17267, 262, 2291, 3419, 2163, 25, 422, 42625, 14208, 13, 6371, 82, 1330, 2291, 11, 3108, 198, 220, 220, 220, 362, 13, 3060, 257, 10289, 284, 19016, 33279, 82, 25, 220, 3108, 10786, 14036, 14, 3256, 2291, 10786, 14036, 13, 6371, 82, 6, 4008, 198, 37811, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 11, 17256, 198, 6738, 2956, 41364, 13, 33571, 1330, 1388, 62, 1177, 11, 41364, 62, 1177, 11, 11218, 62, 1177, 11, 32057, 62, 1177, 198, 198, 37811, 198, 220, 220, 220, 37902, 25097, 41753, 242, 18796, 101, 10310, 233, 21410, 164, 115, 107, 18796, 109, 163, 111, 119, 163, 119, 253, 198, 37811, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 1388, 62, 1177, 13, 9630, 828, 198, 220, 220, 220, 3108, 10786, 9630, 3256, 1388, 62, 1177, 13, 9630, 828, 198, 220, 220, 220, 3108, 10786, 41364, 62, 4871, 3256, 1388, 62, 1177, 13, 41364, 62, 4871, 828, 198, 220, 220, 220, 3108, 10786, 11218, 62, 4871, 3256, 1388, 62, 1177, 13, 11218, 62, 4871, 828, 198, 220, 220, 220, 3108, 10786, 32057, 3256, 1388, 62, 1177, 13, 32057, 828, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 47335, 437, 30420, 30, 47, 27, 3672, 29, 59, 67, 28988, 3256, 41364, 62, 1177, 13, 47335, 437, 828, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 22766, 25097, 3886, 23396, 30420, 30, 47, 27, 496, 29, 59, 67, 10, 13219, 7, 30, 47, 27, 7700, 312, 29, 59, 67, 28988, 3256, 41364, 62, 1177, 13, 22766, 25097, 3886, 23396, 828, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 22766, 25097, 3886, 34, 378, 30420, 30, 47, 27, 66, 378, 29, 59, 67, 10, 13219, 7, 30, 47, 27, 7700, 312, 29, 59, 67, 28988, 3256, 41364, 62, 1177, 13, 22766, 25097, 3886, 34, 378, 828, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 22766, 25097, 30420, 30, 47, 27, 312, 29, 59, 67, 28988, 3256, 41364, 62, 1177, 13, 22766, 25097, 828, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 22766, 40277, 3886, 46108, 30420, 30, 47, 27, 25729, 29, 59, 67, 10, 13219, 7, 30, 47, 27, 7700, 312, 29, 59, 67, 28988, 3256, 11218, 62, 1177, 13, 22766, 40277, 3886, 46108, 828, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 22766, 40277, 30420, 30, 47, 27, 312, 29, 59, 67, 28988, 3256, 11218, 62, 1177, 13, 22766, 40277, 8, 198, 60, 198 ]
2.505863
597
import os from os.path import isfile, join import time import ctypes folderpath = r"E:\All Projects\Auto Wallpaper" all_files = [ f for f in os.listdir(folderpath) if isfile(join(folderpath, f))] for image in all_files: print(image) ctypes.windll.user32.SystemParametersInfoW(20, 0, folderpath+ "\\" + image, 0) time.sleep(1)
[ 11748, 28686, 198, 6738, 28686, 13, 6978, 1330, 318, 7753, 11, 4654, 198, 11748, 640, 198, 11748, 269, 19199, 198, 198, 43551, 6978, 796, 374, 1, 36, 7479, 3237, 29898, 59, 27722, 5007, 20189, 1, 198, 198, 439, 62, 16624, 796, 685, 277, 329, 277, 287, 28686, 13, 4868, 15908, 7, 43551, 6978, 8, 611, 318, 7753, 7, 22179, 7, 43551, 6978, 11, 277, 4008, 60, 198, 198, 1640, 2939, 287, 477, 62, 16624, 25, 198, 220, 220, 220, 3601, 7, 9060, 8, 198, 220, 220, 220, 269, 19199, 13, 7972, 297, 13, 7220, 2624, 13, 11964, 48944, 12360, 54, 7, 1238, 11, 657, 11, 9483, 6978, 10, 366, 6852, 1, 1343, 2939, 11, 657, 8, 198, 220, 220, 220, 640, 13, 42832, 7, 16, 8, 198 ]
2.685039
127
import matplotlib.pyplot as plt import numpy as np import os import re plotsDir = "plots" # function to add an output, if experiment and value are both defined # function to parse a csv timeFile # with lines s.t. "experiment,logFile,elapsedTime,fileSize,timePerMB" # function to adapt a given "experimentValue" # - if load rate (of the form "0.x"), translated to rate of requests/s # - if probability (of the form "x%"), unchanged # - if name of root causing service, translated to length of corresponding cascade # function to plot "experiment" list # function to print experiment results if __name__ == "__main__": print("Generating plots...",end="",flush=True) # create folder where to store plots (if not existing) if not os.path.exists(plotsDir): os.makedirs(plotsDir) # confige plt's defaults plt.rcParams.update({'font.size': 28}) plt.figure(figsize=(7, 4.3)) # ---------------- # plot outputs # ---------------- outputs = parseOutputs("outputs.txt") for o in outputs["count"]: plot("count",outputs["count"][o],"explanations",outputs["roots"][o],"root causes",o,6) plot("success_percentage",outputs["accuracy"][o],None,None,None,o,100) # ---------------- # plot times # ---------------- times = parseTimes("times.csv") for t in times: plot("time",times[t],None,None,None,t,501) print("done!") printResults("count (cascades)",outputs["count"]) printResults("count (root causes)",outputs["roots"]) printResults("success_percentage",outputs["accuracy"]) printResults("times",times)
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 302, 198, 198, 489, 1747, 35277, 796, 366, 489, 1747, 1, 198, 198, 2, 2163, 284, 751, 281, 5072, 11, 611, 6306, 290, 1988, 389, 1111, 5447, 198, 198, 2, 2163, 284, 21136, 257, 269, 21370, 640, 8979, 198, 2, 1849, 4480, 3951, 264, 13, 83, 13, 366, 23100, 3681, 11, 6404, 8979, 11, 417, 28361, 7575, 11, 7753, 10699, 11, 2435, 5990, 10744, 1, 198, 198, 2, 1849, 8818, 284, 6068, 257, 1813, 366, 23100, 3681, 11395, 1, 220, 198, 2, 532, 611, 3440, 2494, 357, 1659, 262, 1296, 366, 15, 13, 87, 12340, 14251, 284, 2494, 286, 7007, 14, 82, 198, 2, 1849, 12, 611, 12867, 357, 1659, 262, 1296, 366, 87, 4, 12340, 21588, 198, 2, 1849, 12, 611, 1438, 286, 6808, 6666, 2139, 11, 14251, 284, 4129, 286, 11188, 44847, 198, 198, 2, 1849, 8818, 284, 7110, 366, 23100, 3681, 1, 1351, 198, 198, 2, 2163, 284, 3601, 6306, 2482, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 3601, 7203, 8645, 803, 21528, 9313, 11, 437, 2625, 1600, 25925, 28, 17821, 8, 628, 220, 220, 220, 1303, 2251, 9483, 810, 284, 3650, 21528, 357, 361, 407, 4683, 8, 198, 220, 220, 220, 611, 407, 28686, 13, 6978, 13, 1069, 1023, 7, 489, 1747, 35277, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 76, 4335, 17062, 7, 489, 1747, 35277, 8, 628, 220, 220, 220, 1303, 4566, 68, 458, 83, 338, 26235, 198, 220, 220, 220, 458, 83, 13, 6015, 10044, 4105, 13, 19119, 15090, 6, 10331, 13, 7857, 10354, 2579, 30072, 220, 198, 220, 220, 220, 458, 83, 13, 26875, 7, 5647, 7857, 16193, 22, 11, 604, 13, 18, 4008, 628, 220, 220, 220, 1303, 34400, 198, 220, 220, 220, 1303, 7110, 23862, 198, 220, 220, 220, 1303, 1849, 1783, 198, 220, 220, 220, 23862, 796, 21136, 26410, 82, 7203, 22915, 82, 13, 14116, 4943, 198, 220, 220, 220, 329, 267, 287, 23862, 14692, 9127, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 7110, 7203, 9127, 1600, 22915, 82, 14692, 9127, 1, 7131, 78, 17241, 1069, 11578, 602, 1600, 22915, 82, 14692, 19150, 1, 7131, 78, 17241, 15763, 5640, 1600, 78, 11, 21, 8, 198, 220, 220, 220, 220, 220, 220, 220, 7110, 7203, 13138, 62, 25067, 496, 1600, 22915, 82, 14692, 4134, 23843, 1, 7131, 78, 4357, 14202, 11, 14202, 11, 14202, 11, 78, 11, 3064, 8, 198, 220, 220, 220, 220, 628, 220, 220, 220, 1303, 1849, 1783, 198, 220, 220, 220, 1303, 1849, 29487, 1661, 198, 220, 220, 220, 1303, 34400, 198, 220, 220, 220, 1661, 796, 21136, 28595, 7203, 22355, 13, 40664, 4943, 198, 220, 220, 220, 329, 256, 287, 1661, 25, 198, 220, 220, 220, 220, 220, 220, 220, 7110, 7203, 2435, 1600, 22355, 58, 83, 4357, 14202, 11, 14202, 11, 14202, 11, 83, 11, 33548, 8, 628, 220, 220, 220, 3601, 7203, 28060, 2474, 8, 628, 220, 220, 220, 3601, 25468, 7203, 9127, 357, 66, 3372, 2367, 42501, 22915, 82, 14692, 9127, 8973, 8, 198, 220, 220, 220, 3601, 25468, 7203, 9127, 357, 15763, 5640, 42501, 22915, 82, 14692, 19150, 8973, 8, 198, 220, 220, 220, 3601, 25468, 7203, 13138, 62, 25067, 496, 1600, 22915, 82, 14692, 4134, 23843, 8973, 8, 198, 220, 220, 220, 3601, 25468, 7203, 22355, 1600, 22355, 8, 198, 220, 220, 220, 220 ]
2.798623
581
# -*- coding: utf-8 -*- """ DC Resistivity Forward Simulation in 2.5D ========================================= Here we use the module *SimPEG.electromagnetics.static.resistivity* to predict DC resistivity data and plot using a pseudosection. In this tutorial, we focus on the following: - How to define the survey - How to define the forward simulation - How to predict normalized voltage data for a synthetic conductivity model - How to include surface topography - The units of the model and resulting data """ ######################################################################### # Import modules # -------------- # from discretize import TreeMesh from discretize.utils import mkvc, refine_tree_xyz from SimPEG.utils import model_builder, surface2ind_topo from SimPEG.utils.io_utils.io_utils_electromagnetics import write_dcip2d_ubc from SimPEG import maps, data from SimPEG.electromagnetics.static import resistivity as dc from SimPEG.electromagnetics.static.utils.static_utils import ( generate_dcip_sources_line, apparent_resistivity_from_voltage, plot_pseudosection, ) import os import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.colors import LogNorm try: from pymatsolver import Pardiso as Solver except ImportError: from SimPEG import SolverLU as Solver write_output = False mpl.rcParams.update({"font.size": 16}) # sphinx_gallery_thumbnail_number = 3 ############################################################### # Defining Topography # ------------------- # # Here we define surface topography as an (N, 3) numpy array. Topography could # also be loaded from a file. In our case, our survey takes place within a set # of valleys that run North-South. # x_topo, y_topo = np.meshgrid( np.linspace(-3000, 3000, 601), np.linspace(-3000, 3000, 101) ) z_topo = 40.0 * np.sin(2 * np.pi * x_topo / 800) - 40.0 x_topo, y_topo, z_topo = mkvc(x_topo), mkvc(y_topo), mkvc(z_topo) topo_xyz = np.c_[x_topo, y_topo, z_topo] # Create 2D topography. Since our 3D topography only changes in the x direction, # it is easy to define the 2D topography projected along the survey line. For # arbitrary topography and for an arbitrary survey orientation, the user must # define the 2D topography along the survey line. topo_2d = np.unique(topo_xyz[:, [0, 2]], axis=0) ##################################################################### # Create Dipole-Dipole Survey # --------------------------- # # Here we define a single EW survey line that uses a dipole-dipole configuration. # For the source, we must define the AB electrode locations. For the receivers # we must define the MN electrode locations. Instead of creating the survey # from scratch (see 1D example), we will use the *generat_dcip_survey_line* utility. # # Define survey line parameters survey_type = "dipole-dipole" dimension_type = "2D" data_type = "volt" end_locations = np.r_[-400.0, 400.0] station_separation = 40.0 num_rx_per_src = 10 # Generate source list for DC survey line source_list = generate_dcip_sources_line( survey_type, data_type, dimension_type, end_locations, topo_2d, num_rx_per_src, station_separation, ) # Define survey survey = dc.survey.Survey(source_list, survey_type=survey_type) ############################################################### # Create Tree Mesh # ------------------ # # Here, we create the Tree mesh that will be used to predict DC data. # dh = 4 # base cell width dom_width_x = 3200.0 # domain width x dom_width_z = 2400.0 # domain width z nbcx = 2 ** int(np.round(np.log(dom_width_x / dh) / np.log(2.0))) # num. base cells x nbcz = 2 ** int(np.round(np.log(dom_width_z / dh) / np.log(2.0))) # num. base cells z # Define the base mesh hx = [(dh, nbcx)] hz = [(dh, nbcz)] mesh = TreeMesh([hx, hz], x0="CN") # Mesh refinement based on topography mesh = refine_tree_xyz( mesh, topo_xyz[:, [0, 2]], octree_levels=[0, 0, 4, 4], method="surface", finalize=False, ) # Mesh refinement near transmitters and receivers. First we need to obtain the # set of unique electrode locations. electrode_locations = np.c_[ survey.locations_a, survey.locations_b, survey.locations_m, survey.locations_n, ] unique_locations = np.unique( np.reshape(electrode_locations, (4 * survey.nD, 2)), axis=0 ) mesh = refine_tree_xyz( mesh, unique_locations, octree_levels=[4, 4], method="radial", finalize=False ) # Refine core mesh region xp, zp = np.meshgrid([-600.0, 600.0], [-400.0, 0.0]) xyz = np.c_[mkvc(xp), mkvc(zp)] mesh = refine_tree_xyz( mesh, xyz, octree_levels=[0, 0, 2, 8], method="box", finalize=False ) mesh.finalize() ############################################################### # Create Conductivity Model and Mapping for Tree Mesh # ----------------------------------------------------- # # It is important that electrodes are not modeled as being in the air. Even if the # electrodes are properly located along surface topography, they may lie above # the discretized topography. This step is carried out to ensure all electrodes # lie on the discretized surface. # # Define conductivity model in S/m (or resistivity model in Ohm m) air_conductivity = 1e-8 background_conductivity = 1e-2 conductor_conductivity = 1e-1 resistor_conductivity = 1e-3 # Find active cells in forward modeling (cell below surface) ind_active = surface2ind_topo(mesh, topo_xyz[:, [0, 2]]) # Define mapping from model to active cells nC = int(ind_active.sum()) conductivity_map = maps.InjectActiveCells(mesh, ind_active, air_conductivity) # Define model conductivity_model = background_conductivity * np.ones(nC) ind_conductor = model_builder.getIndicesSphere(np.r_[-120.0, -160.0], 60.0, mesh.gridCC) ind_conductor = ind_conductor[ind_active] conductivity_model[ind_conductor] = conductor_conductivity ind_resistor = model_builder.getIndicesSphere(np.r_[120.0, -100.0], 60.0, mesh.gridCC) ind_resistor = ind_resistor[ind_active] conductivity_model[ind_resistor] = resistor_conductivity # Plot Conductivity Model fig = plt.figure(figsize=(9, 4)) plotting_map = maps.InjectActiveCells(mesh, ind_active, np.nan) norm = LogNorm(vmin=1e-3, vmax=1e-1) ax1 = fig.add_axes([0.14, 0.17, 0.68, 0.7]) mesh.plot_image( plotting_map * conductivity_model, ax=ax1, grid=False, pcolor_opts={"norm": norm} ) ax1.set_xlim(-600, 600) ax1.set_ylim(-600, 0) ax1.set_title("Conductivity Model") ax1.set_xlabel("x (m)") ax1.set_ylabel("z (m)") ax2 = fig.add_axes([0.84, 0.17, 0.03, 0.7]) cbar = mpl.colorbar.ColorbarBase(ax2, norm=norm, orientation="vertical") cbar.set_label(r"$\sigma$ (S/m)", rotation=270, labelpad=15, size=12) plt.show() ############################################################### # Project Survey to Discretized Topography # ---------------------------------------- # # It is important that electrodes are not model as being in the air. Even if the # electrodes are properly located along surface topography, they may lie above # the discretized topography. This step is carried out to ensure all electrodes # like on the discretized surface. # survey.drape_electrodes_on_topography(mesh, ind_active, option="top") ####################################################################### # Predict DC Resistivity Data # --------------------------- # # Here we predict DC resistivity data. If the keyword argument *sigmaMap* is # defined, the simulation will expect a conductivity model. If the keyword # argument *rhoMap* is defined, the simulation will expect a resistivity model. # simulation = dc.simulation_2d.Simulation2DNodal( mesh, survey=survey, sigmaMap=conductivity_map, solver=Solver ) # Predict the data by running the simulation. The data are the raw voltage in # units of volts. dpred = simulation.dpred(conductivity_model) ####################################################################### # Plotting in Pseudo-Section # -------------------------- # # Here, we demonstrate how to plot 2D data in pseudo-section. # First, we plot the voltages in pseudo-section as a scatter plot. This # allows us to visualize the pseudo-sensitivity locations for our survey. # Next, we plot the apparent conductivities in pseudo-section as a filled # contour plot. # # Plot voltages pseudo-section fig = plt.figure(figsize=(12, 5)) ax1 = fig.add_axes([0.1, 0.15, 0.75, 0.78]) plot_pseudosection( survey, dobs=np.abs(dpred), plot_type="scatter", ax=ax1, scale="log", cbar_label="V/A", scatter_opts={"cmap": mpl.cm.viridis}, ) ax1.set_title("Normalized Voltages") plt.show() # Get apparent conductivities from volts and survey geometry apparent_conductivities = 1 / apparent_resistivity_from_voltage(survey, dpred) # Plot apparent conductivity pseudo-section fig = plt.figure(figsize=(12, 5)) ax1 = fig.add_axes([0.1, 0.15, 0.75, 0.78]) plot_pseudosection( survey, dobs=apparent_conductivities, plot_type="contourf", ax=ax1, scale="log", cbar_label="S/m", mask_topography=True, contourf_opts={"levels": 20, "cmap": mpl.cm.viridis}, ) ax1.set_title("Apparent Conductivity") plt.show() ####################################################################### # Optional: Write out dpred # ------------------------- # # Write DC resistivity data, topography and true model # if write_output: dir_path = os.path.dirname(__file__).split(os.path.sep) dir_path.extend(["outputs"]) dir_path = os.path.sep.join(dir_path) + os.path.sep if not os.path.exists(dir_path): os.mkdir(dir_path) # Add 10% Gaussian noise to each datum np.random.seed(225) std = 0.05 * np.abs(dpred) dc_noise = std * np.random.rand(len(dpred)) dobs = dpred + dc_noise # Create a survey with the original electrode locations # and not the shifted ones # Generate source list for DC survey line source_list = generate_dcip_sources_line( survey_type, data_type, dimension_type, end_locations, topo_xyz, num_rx_per_src, station_separation, ) survey_original = dc.survey.Survey(source_list) # Write out data at their original electrode locations (not shifted) data_obj = data.Data(survey_original, dobs=dobs, standard_deviation=std) fname = dir_path + "dc_data.obs" write_dcip2d_ubc(fname, data_obj, "volt", "dobs") fname = dir_path + "topo_xyz.txt" np.savetxt(fname, topo_xyz, fmt="%.4e")
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 9697, 36136, 3458, 19530, 41798, 287, 362, 13, 20, 35, 198, 10052, 2559, 28, 198, 198, 4342, 356, 779, 262, 8265, 1635, 8890, 47, 7156, 13, 9509, 398, 363, 3262, 873, 13, 12708, 13, 35119, 3458, 9, 284, 4331, 198, 9697, 4180, 3458, 1366, 290, 7110, 1262, 257, 25038, 577, 596, 13, 554, 428, 11808, 11, 356, 2962, 198, 261, 262, 1708, 25, 628, 220, 220, 220, 532, 1374, 284, 8160, 262, 5526, 198, 220, 220, 220, 532, 1374, 284, 8160, 262, 2651, 18640, 198, 220, 220, 220, 532, 1374, 284, 4331, 39279, 15004, 1366, 329, 257, 18512, 3189, 3458, 2746, 198, 220, 220, 220, 532, 1374, 284, 2291, 4417, 1353, 4867, 198, 220, 220, 220, 532, 383, 4991, 286, 262, 2746, 290, 7186, 1366, 628, 198, 37811, 198, 198, 29113, 29113, 7804, 2, 198, 2, 17267, 13103, 198, 2, 220, 26171, 198, 2, 198, 198, 6738, 1221, 1186, 1096, 1330, 12200, 37031, 198, 6738, 1221, 1186, 1096, 13, 26791, 1330, 33480, 28435, 11, 35139, 62, 21048, 62, 5431, 89, 198, 198, 6738, 3184, 47, 7156, 13, 26791, 1330, 2746, 62, 38272, 11, 4417, 17, 521, 62, 4852, 78, 198, 6738, 3184, 47, 7156, 13, 26791, 13, 952, 62, 26791, 13, 952, 62, 26791, 62, 9509, 398, 363, 3262, 873, 1330, 3551, 62, 17896, 541, 17, 67, 62, 549, 66, 198, 6738, 3184, 47, 7156, 1330, 8739, 11, 1366, 198, 6738, 3184, 47, 7156, 13, 9509, 398, 363, 3262, 873, 13, 12708, 1330, 4180, 3458, 355, 30736, 198, 6738, 3184, 47, 7156, 13, 9509, 398, 363, 3262, 873, 13, 12708, 13, 26791, 13, 12708, 62, 26791, 1330, 357, 198, 220, 220, 220, 7716, 62, 17896, 541, 62, 82, 2203, 62, 1370, 11, 198, 220, 220, 220, 4156, 62, 35119, 3458, 62, 6738, 62, 37764, 496, 11, 198, 220, 220, 220, 7110, 62, 7752, 463, 577, 596, 11, 198, 8, 198, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 355, 285, 489, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 13, 4033, 669, 1330, 5972, 35393, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 279, 4948, 1381, 14375, 1330, 350, 446, 26786, 355, 4294, 332, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 422, 3184, 47, 7156, 1330, 4294, 332, 41596, 355, 4294, 332, 198, 198, 13564, 62, 22915, 796, 10352, 198, 76, 489, 13, 6015, 10044, 4105, 13, 19119, 7, 4895, 10331, 13, 7857, 1298, 1467, 30072, 198, 2, 599, 20079, 87, 62, 24460, 62, 400, 20566, 62, 17618, 796, 513, 628, 198, 29113, 14468, 7804, 4242, 21017, 198, 2, 2896, 3191, 5849, 4867, 198, 2, 34400, 6329, 198, 2, 198, 2, 3423, 356, 8160, 4417, 1353, 4867, 355, 281, 357, 45, 11, 513, 8, 299, 32152, 7177, 13, 5849, 4867, 714, 198, 2, 635, 307, 9639, 422, 257, 2393, 13, 554, 674, 1339, 11, 674, 5526, 2753, 1295, 1626, 257, 900, 198, 2, 286, 43088, 326, 1057, 2258, 12, 14942, 13, 198, 2, 198, 198, 87, 62, 4852, 78, 11, 331, 62, 4852, 78, 796, 45941, 13, 76, 5069, 25928, 7, 198, 220, 220, 220, 45941, 13, 21602, 10223, 32590, 23924, 11, 20343, 11, 49231, 828, 45941, 13, 21602, 10223, 32590, 23924, 11, 20343, 11, 8949, 8, 198, 8, 198, 89, 62, 4852, 78, 796, 2319, 13, 15, 1635, 45941, 13, 31369, 7, 17, 1635, 45941, 13, 14415, 1635, 2124, 62, 4852, 78, 1220, 10460, 8, 532, 2319, 13, 15, 198, 87, 62, 4852, 78, 11, 331, 62, 4852, 78, 11, 1976, 62, 4852, 78, 796, 33480, 28435, 7, 87, 62, 4852, 78, 828, 33480, 28435, 7, 88, 62, 4852, 78, 828, 33480, 28435, 7, 89, 62, 4852, 78, 8, 198, 4852, 78, 62, 5431, 89, 796, 45941, 13, 66, 62, 58, 87, 62, 4852, 78, 11, 331, 62, 4852, 78, 11, 1976, 62, 4852, 78, 60, 198, 198, 2, 13610, 362, 35, 1353, 4867, 13, 4619, 674, 513, 35, 1353, 4867, 691, 2458, 287, 262, 2124, 4571, 11, 198, 2, 340, 318, 2562, 284, 8160, 262, 362, 35, 1353, 4867, 13301, 1863, 262, 5526, 1627, 13, 1114, 198, 2, 14977, 1353, 4867, 290, 329, 281, 14977, 5526, 12852, 11, 262, 2836, 1276, 198, 2, 8160, 262, 362, 35, 1353, 4867, 1863, 262, 5526, 1627, 13, 198, 4852, 78, 62, 17, 67, 796, 45941, 13, 34642, 7, 4852, 78, 62, 5431, 89, 58, 45299, 685, 15, 11, 362, 60, 4357, 16488, 28, 15, 8, 198, 198, 29113, 29113, 4242, 2, 198, 2, 13610, 43945, 2305, 12, 35, 541, 2305, 13084, 198, 2, 220, 22369, 6329, 198, 2, 198, 2, 3423, 356, 8160, 257, 2060, 43255, 5526, 1627, 326, 3544, 257, 19550, 2305, 12, 67, 541, 2305, 8398, 13, 198, 2, 1114, 262, 2723, 11, 356, 1276, 8160, 262, 9564, 46203, 7064, 13, 1114, 262, 19137, 198, 2, 356, 1276, 8160, 262, 29060, 46203, 7064, 13, 5455, 286, 4441, 262, 5526, 198, 2, 422, 12692, 357, 3826, 352, 35, 1672, 828, 356, 481, 779, 262, 1635, 8612, 265, 62, 17896, 541, 62, 11793, 3304, 62, 1370, 9, 10361, 13, 198, 2, 198, 198, 2, 2896, 500, 5526, 1627, 10007, 198, 11793, 3304, 62, 4906, 796, 366, 67, 541, 2305, 12, 67, 541, 2305, 1, 198, 46156, 62, 4906, 796, 366, 17, 35, 1, 198, 7890, 62, 4906, 796, 366, 37764, 1, 198, 437, 62, 17946, 602, 796, 45941, 13, 81, 62, 58, 12, 7029, 13, 15, 11, 7337, 13, 15, 60, 198, 17529, 62, 25512, 341, 796, 2319, 13, 15, 198, 22510, 62, 40914, 62, 525, 62, 10677, 796, 838, 198, 198, 2, 2980, 378, 2723, 1351, 329, 6257, 5526, 1627, 198, 10459, 62, 4868, 796, 7716, 62, 17896, 541, 62, 82, 2203, 62, 1370, 7, 198, 220, 220, 220, 5526, 62, 4906, 11, 198, 220, 220, 220, 1366, 62, 4906, 11, 198, 220, 220, 220, 15793, 62, 4906, 11, 198, 220, 220, 220, 886, 62, 17946, 602, 11, 198, 220, 220, 220, 1353, 78, 62, 17, 67, 11, 198, 220, 220, 220, 997, 62, 40914, 62, 525, 62, 10677, 11, 198, 220, 220, 220, 4429, 62, 25512, 341, 11, 198, 8, 198, 198, 2, 2896, 500, 5526, 198, 11793, 3304, 796, 30736, 13, 11793, 3304, 13, 14214, 3304, 7, 10459, 62, 4868, 11, 5526, 62, 4906, 28, 11793, 3304, 62, 4906, 8, 198, 198, 29113, 14468, 7804, 4242, 21017, 198, 2, 13610, 12200, 47529, 198, 2, 34400, 438, 198, 2, 198, 2, 3423, 11, 356, 2251, 262, 12200, 19609, 326, 481, 307, 973, 284, 4331, 6257, 1366, 13, 198, 2, 198, 198, 34985, 796, 604, 220, 1303, 2779, 2685, 9647, 198, 3438, 62, 10394, 62, 87, 796, 513, 2167, 13, 15, 220, 1303, 7386, 9647, 2124, 198, 3438, 62, 10394, 62, 89, 796, 48548, 13, 15, 220, 1303, 7386, 9647, 1976, 198, 77, 15630, 87, 796, 362, 12429, 493, 7, 37659, 13, 744, 7, 37659, 13, 6404, 7, 3438, 62, 10394, 62, 87, 1220, 34590, 8, 1220, 45941, 13, 6404, 7, 17, 13, 15, 22305, 220, 1303, 997, 13, 2779, 4778, 2124, 198, 77, 15630, 89, 796, 362, 12429, 493, 7, 37659, 13, 744, 7, 37659, 13, 6404, 7, 3438, 62, 10394, 62, 89, 1220, 34590, 8, 1220, 45941, 13, 6404, 7, 17, 13, 15, 22305, 220, 1303, 997, 13, 2779, 4778, 1976, 198, 198, 2, 2896, 500, 262, 2779, 19609, 198, 71, 87, 796, 47527, 34985, 11, 299, 15630, 87, 15437, 198, 32179, 796, 47527, 34985, 11, 299, 15630, 89, 15437, 198, 76, 5069, 796, 12200, 37031, 26933, 71, 87, 11, 289, 89, 4357, 2124, 15, 2625, 44175, 4943, 198, 198, 2, 47529, 47517, 1912, 319, 1353, 4867, 198, 76, 5069, 796, 35139, 62, 21048, 62, 5431, 89, 7, 198, 220, 220, 220, 19609, 11, 198, 220, 220, 220, 1353, 78, 62, 5431, 89, 58, 45299, 685, 15, 11, 362, 60, 4357, 198, 220, 220, 220, 19318, 631, 62, 46170, 41888, 15, 11, 657, 11, 604, 11, 604, 4357, 198, 220, 220, 220, 2446, 2625, 42029, 1600, 198, 220, 220, 220, 2457, 1096, 28, 25101, 11, 198, 8, 198, 198, 2, 47529, 47517, 1474, 21937, 1010, 290, 19137, 13, 3274, 356, 761, 284, 7330, 262, 198, 2, 900, 286, 3748, 46203, 7064, 13, 198, 9509, 305, 2934, 62, 17946, 602, 796, 45941, 13, 66, 62, 58, 198, 220, 220, 220, 5526, 13, 17946, 602, 62, 64, 11, 198, 220, 220, 220, 5526, 13, 17946, 602, 62, 65, 11, 198, 220, 220, 220, 5526, 13, 17946, 602, 62, 76, 11, 198, 220, 220, 220, 5526, 13, 17946, 602, 62, 77, 11, 198, 60, 198, 198, 34642, 62, 17946, 602, 796, 45941, 13, 34642, 7, 198, 220, 220, 220, 45941, 13, 3447, 1758, 7, 9509, 305, 2934, 62, 17946, 602, 11, 357, 19, 1635, 5526, 13, 77, 35, 11, 362, 36911, 16488, 28, 15, 198, 8, 198, 198, 76, 5069, 796, 35139, 62, 21048, 62, 5431, 89, 7, 198, 220, 220, 220, 19609, 11, 3748, 62, 17946, 602, 11, 19318, 631, 62, 46170, 41888, 19, 11, 604, 4357, 2446, 2625, 6335, 498, 1600, 2457, 1096, 28, 25101, 198, 8, 198, 198, 2, 6524, 500, 4755, 19609, 3814, 198, 42372, 11, 1976, 79, 796, 45941, 13, 76, 5069, 25928, 26933, 12, 8054, 13, 15, 11, 10053, 13, 15, 4357, 25915, 7029, 13, 15, 11, 657, 13, 15, 12962, 198, 5431, 89, 796, 45941, 13, 66, 62, 58, 28015, 28435, 7, 42372, 828, 33480, 28435, 7, 89, 79, 15437, 198, 76, 5069, 796, 35139, 62, 21048, 62, 5431, 89, 7, 198, 220, 220, 220, 19609, 11, 2124, 45579, 11, 19318, 631, 62, 46170, 41888, 15, 11, 657, 11, 362, 11, 807, 4357, 2446, 2625, 3524, 1600, 2457, 1096, 28, 25101, 198, 8, 198, 198, 76, 5069, 13, 20311, 1096, 3419, 198, 198, 29113, 14468, 7804, 4242, 21017, 198, 2, 13610, 28579, 3458, 9104, 290, 337, 5912, 329, 12200, 47529, 198, 2, 20368, 19351, 12, 198, 2, 198, 2, 632, 318, 1593, 326, 39780, 389, 407, 29563, 355, 852, 287, 262, 1633, 13, 3412, 611, 262, 198, 2, 39780, 389, 6105, 5140, 1863, 4417, 1353, 4867, 11, 484, 743, 6486, 2029, 198, 2, 262, 1221, 1186, 1143, 1353, 4867, 13, 770, 2239, 318, 5281, 503, 284, 4155, 477, 39780, 198, 2, 6486, 319, 262, 1221, 1186, 1143, 4417, 13, 198, 2, 198, 198, 2, 2896, 500, 3189, 3458, 2746, 287, 311, 14, 76, 357, 273, 4180, 3458, 2746, 287, 3966, 76, 285, 8, 198, 958, 62, 36495, 3458, 796, 352, 68, 12, 23, 198, 25249, 62, 36495, 3458, 796, 352, 68, 12, 17, 198, 17561, 33029, 62, 36495, 3458, 796, 352, 68, 12, 16, 198, 411, 32380, 62, 36495, 3458, 796, 352, 68, 12, 18, 198, 198, 2, 9938, 4075, 4778, 287, 2651, 21128, 357, 3846, 2174, 4417, 8, 198, 521, 62, 5275, 796, 4417, 17, 521, 62, 4852, 78, 7, 76, 5069, 11, 1353, 78, 62, 5431, 89, 58, 45299, 685, 15, 11, 362, 11907, 8, 198, 198, 2, 2896, 500, 16855, 422, 2746, 284, 4075, 4778, 198, 77, 34, 796, 493, 7, 521, 62, 5275, 13, 16345, 28955, 198, 36495, 3458, 62, 8899, 796, 8739, 13, 818, 752, 13739, 34, 19187, 7, 76, 5069, 11, 773, 62, 5275, 11, 1633, 62, 36495, 3458, 8, 198, 198, 2, 2896, 500, 2746, 198, 36495, 3458, 62, 19849, 796, 4469, 62, 36495, 3458, 1635, 45941, 13, 1952, 7, 77, 34, 8, 198, 198, 521, 62, 17561, 33029, 796, 2746, 62, 38272, 13, 1136, 5497, 1063, 38882, 7, 37659, 13, 81, 62, 58, 12, 10232, 13, 15, 11, 532, 14198, 13, 15, 4357, 3126, 13, 15, 11, 19609, 13, 25928, 4093, 8, 198, 521, 62, 17561, 33029, 796, 773, 62, 17561, 33029, 58, 521, 62, 5275, 60, 198, 36495, 3458, 62, 19849, 58, 521, 62, 17561, 33029, 60, 796, 39206, 62, 36495, 3458, 198, 198, 521, 62, 411, 32380, 796, 2746, 62, 38272, 13, 1136, 5497, 1063, 38882, 7, 37659, 13, 81, 62, 58, 10232, 13, 15, 11, 532, 3064, 13, 15, 4357, 3126, 13, 15, 11, 19609, 13, 25928, 4093, 8, 198, 521, 62, 411, 32380, 796, 773, 62, 411, 32380, 58, 521, 62, 5275, 60, 198, 36495, 3458, 62, 19849, 58, 521, 62, 411, 32380, 60, 796, 45032, 62, 36495, 3458, 198, 198, 2, 28114, 28579, 3458, 9104, 198, 5647, 796, 458, 83, 13, 26875, 7, 5647, 7857, 16193, 24, 11, 604, 4008, 198, 198, 29487, 889, 62, 8899, 796, 8739, 13, 818, 752, 13739, 34, 19187, 7, 76, 5069, 11, 773, 62, 5275, 11, 45941, 13, 12647, 8, 198, 27237, 796, 5972, 35393, 7, 85, 1084, 28, 16, 68, 12, 18, 11, 410, 9806, 28, 16, 68, 12, 16, 8, 198, 198, 897, 16, 796, 2336, 13, 2860, 62, 897, 274, 26933, 15, 13, 1415, 11, 657, 13, 1558, 11, 657, 13, 3104, 11, 657, 13, 22, 12962, 198, 76, 5069, 13, 29487, 62, 9060, 7, 198, 220, 220, 220, 29353, 62, 8899, 1635, 3189, 3458, 62, 19849, 11, 7877, 28, 897, 16, 11, 10706, 28, 25101, 11, 279, 8043, 62, 404, 912, 28, 4895, 27237, 1298, 2593, 92, 198, 8, 198, 897, 16, 13, 2617, 62, 87, 2475, 32590, 8054, 11, 10053, 8, 198, 897, 16, 13, 2617, 62, 88, 2475, 32590, 8054, 11, 657, 8, 198, 897, 16, 13, 2617, 62, 7839, 7203, 34, 12920, 3458, 9104, 4943, 198, 897, 16, 13, 2617, 62, 87, 18242, 7203, 87, 357, 76, 8, 4943, 198, 897, 16, 13, 2617, 62, 2645, 9608, 7203, 89, 357, 76, 8, 4943, 198, 198, 897, 17, 796, 2336, 13, 2860, 62, 897, 274, 26933, 15, 13, 5705, 11, 657, 13, 1558, 11, 657, 13, 3070, 11, 657, 13, 22, 12962, 198, 66, 5657, 796, 285, 489, 13, 8043, 5657, 13, 10258, 5657, 14881, 7, 897, 17, 11, 2593, 28, 27237, 11, 12852, 2625, 1851, 605, 4943, 198, 66, 5657, 13, 2617, 62, 18242, 7, 81, 1, 3, 59, 82, 13495, 3, 357, 50, 14, 76, 42501, 13179, 28, 20233, 11, 6167, 15636, 28, 1314, 11, 2546, 28, 1065, 8, 198, 198, 489, 83, 13, 12860, 3419, 628, 198, 29113, 14468, 7804, 4242, 21017, 198, 2, 4935, 13084, 284, 8444, 1186, 1143, 5849, 4867, 198, 2, 20368, 982, 198, 2, 198, 2, 632, 318, 1593, 326, 39780, 389, 407, 2746, 355, 852, 287, 262, 1633, 13, 3412, 611, 262, 198, 2, 39780, 389, 6105, 5140, 1863, 4417, 1353, 4867, 11, 484, 743, 6486, 2029, 198, 2, 262, 1221, 1186, 1143, 1353, 4867, 13, 770, 2239, 318, 5281, 503, 284, 4155, 477, 39780, 198, 2, 588, 319, 262, 1221, 1186, 1143, 4417, 13, 198, 2, 198, 198, 11793, 3304, 13, 67, 13484, 62, 9509, 305, 8906, 62, 261, 62, 4852, 4867, 7, 76, 5069, 11, 773, 62, 5275, 11, 3038, 2625, 4852, 4943, 628, 198, 29113, 29113, 4242, 21017, 198, 2, 49461, 6257, 36136, 3458, 6060, 198, 2, 220, 22369, 6329, 198, 2, 198, 2, 3423, 356, 4331, 6257, 4180, 3458, 1366, 13, 1002, 262, 21179, 4578, 1635, 82, 13495, 13912, 9, 318, 198, 2, 5447, 11, 262, 18640, 481, 1607, 257, 3189, 3458, 2746, 13, 1002, 262, 21179, 198, 2, 4578, 1635, 81, 8873, 13912, 9, 318, 5447, 11, 262, 18640, 481, 1607, 257, 4180, 3458, 2746, 13, 198, 2, 198, 198, 14323, 1741, 796, 30736, 13, 14323, 1741, 62, 17, 67, 13, 8890, 1741, 17, 35504, 375, 282, 7, 198, 220, 220, 220, 19609, 11, 5526, 28, 11793, 3304, 11, 264, 13495, 13912, 28, 36495, 3458, 62, 8899, 11, 1540, 332, 28, 50, 14375, 198, 8, 198, 198, 2, 49461, 262, 1366, 416, 2491, 262, 18640, 13, 383, 1366, 389, 262, 8246, 15004, 287, 198, 2, 4991, 286, 46297, 13, 198, 26059, 445, 796, 18640, 13, 26059, 445, 7, 36495, 3458, 62, 19849, 8, 198, 198, 29113, 29113, 4242, 21017, 198, 2, 28114, 889, 287, 49693, 12003, 12, 16375, 198, 2, 220, 22369, 438, 198, 2, 198, 2, 3423, 11, 356, 10176, 703, 284, 7110, 362, 35, 1366, 287, 24543, 12, 5458, 13, 198, 2, 3274, 11, 356, 7110, 262, 13161, 1095, 287, 24543, 12, 5458, 355, 257, 41058, 7110, 13, 770, 198, 2, 3578, 514, 284, 38350, 262, 24543, 12, 82, 40545, 7064, 329, 674, 5526, 13, 198, 2, 7406, 11, 356, 7110, 262, 4156, 3189, 28720, 287, 24543, 12, 5458, 355, 257, 5901, 198, 2, 542, 454, 7110, 13, 198, 2, 198, 198, 2, 28114, 13161, 1095, 24543, 12, 5458, 198, 5647, 796, 458, 83, 13, 26875, 7, 5647, 7857, 16193, 1065, 11, 642, 4008, 198, 897, 16, 796, 2336, 13, 2860, 62, 897, 274, 26933, 15, 13, 16, 11, 657, 13, 1314, 11, 657, 13, 2425, 11, 657, 13, 3695, 12962, 198, 29487, 62, 7752, 463, 577, 596, 7, 198, 220, 220, 220, 5526, 11, 198, 220, 220, 220, 466, 1443, 28, 37659, 13, 8937, 7, 26059, 445, 828, 198, 220, 220, 220, 7110, 62, 4906, 2625, 1416, 1436, 1600, 198, 220, 220, 220, 7877, 28, 897, 16, 11, 198, 220, 220, 220, 5046, 2625, 6404, 1600, 198, 220, 220, 220, 269, 5657, 62, 18242, 2625, 53, 14, 32, 1600, 198, 220, 220, 220, 41058, 62, 404, 912, 28, 4895, 66, 8899, 1298, 285, 489, 13, 11215, 13, 37040, 29207, 5512, 198, 8, 198, 897, 16, 13, 2617, 62, 7839, 7203, 26447, 1143, 22702, 1095, 4943, 198, 489, 83, 13, 12860, 3419, 198, 198, 2, 3497, 4156, 3189, 28720, 422, 46297, 290, 5526, 22939, 198, 1324, 1580, 62, 36495, 28720, 796, 352, 1220, 4156, 62, 35119, 3458, 62, 6738, 62, 37764, 496, 7, 11793, 3304, 11, 288, 28764, 8, 198, 198, 2, 28114, 4156, 3189, 3458, 24543, 12, 5458, 198, 5647, 796, 458, 83, 13, 26875, 7, 5647, 7857, 16193, 1065, 11, 642, 4008, 198, 897, 16, 796, 2336, 13, 2860, 62, 897, 274, 26933, 15, 13, 16, 11, 657, 13, 1314, 11, 657, 13, 2425, 11, 657, 13, 3695, 12962, 198, 29487, 62, 7752, 463, 577, 596, 7, 198, 220, 220, 220, 5526, 11, 198, 220, 220, 220, 466, 1443, 28, 1324, 1580, 62, 36495, 28720, 11, 198, 220, 220, 220, 7110, 62, 4906, 2625, 3642, 454, 69, 1600, 198, 220, 220, 220, 7877, 28, 897, 16, 11, 198, 220, 220, 220, 5046, 2625, 6404, 1600, 198, 220, 220, 220, 269, 5657, 62, 18242, 2625, 50, 14, 76, 1600, 198, 220, 220, 220, 9335, 62, 4852, 4867, 28, 17821, 11, 198, 220, 220, 220, 542, 454, 69, 62, 404, 912, 28, 4895, 46170, 1298, 1160, 11, 366, 66, 8899, 1298, 285, 489, 13, 11215, 13, 37040, 29207, 5512, 198, 8, 198, 897, 16, 13, 2617, 62, 7839, 7203, 4677, 1580, 28579, 3458, 4943, 198, 489, 83, 13, 12860, 3419, 198, 198, 29113, 29113, 4242, 21017, 198, 2, 32233, 25, 19430, 503, 288, 28764, 198, 2, 220, 22369, 12, 198, 2, 198, 2, 19430, 6257, 4180, 3458, 1366, 11, 1353, 4867, 290, 2081, 2746, 198, 2, 198, 198, 361, 3551, 62, 22915, 25, 628, 220, 220, 220, 26672, 62, 6978, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 737, 35312, 7, 418, 13, 6978, 13, 325, 79, 8, 198, 220, 220, 220, 26672, 62, 6978, 13, 2302, 437, 7, 14692, 22915, 82, 8973, 8, 198, 220, 220, 220, 26672, 62, 6978, 796, 28686, 13, 6978, 13, 325, 79, 13, 22179, 7, 15908, 62, 6978, 8, 1343, 28686, 13, 6978, 13, 325, 79, 628, 220, 220, 220, 611, 407, 28686, 13, 6978, 13, 1069, 1023, 7, 15908, 62, 6978, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 28015, 15908, 7, 15908, 62, 6978, 8, 628, 220, 220, 220, 1303, 3060, 838, 4, 12822, 31562, 7838, 284, 1123, 4818, 388, 198, 220, 220, 220, 45941, 13, 25120, 13, 28826, 7, 18182, 8, 198, 220, 220, 220, 14367, 796, 657, 13, 2713, 1635, 45941, 13, 8937, 7, 26059, 445, 8, 198, 220, 220, 220, 30736, 62, 3919, 786, 796, 14367, 1635, 45941, 13, 25120, 13, 25192, 7, 11925, 7, 26059, 445, 4008, 198, 220, 220, 220, 466, 1443, 796, 288, 28764, 1343, 30736, 62, 3919, 786, 628, 220, 220, 220, 1303, 13610, 257, 5526, 351, 262, 2656, 46203, 7064, 198, 220, 220, 220, 1303, 290, 407, 262, 14869, 3392, 198, 220, 220, 220, 1303, 2980, 378, 2723, 1351, 329, 6257, 5526, 1627, 198, 220, 220, 220, 2723, 62, 4868, 796, 7716, 62, 17896, 541, 62, 82, 2203, 62, 1370, 7, 198, 220, 220, 220, 220, 220, 220, 220, 5526, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 15793, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 886, 62, 17946, 602, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1353, 78, 62, 5431, 89, 11, 198, 220, 220, 220, 220, 220, 220, 220, 997, 62, 40914, 62, 525, 62, 10677, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4429, 62, 25512, 341, 11, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 5526, 62, 14986, 796, 30736, 13, 11793, 3304, 13, 14214, 3304, 7, 10459, 62, 4868, 8, 628, 220, 220, 220, 1303, 19430, 503, 1366, 379, 511, 2656, 46203, 7064, 357, 1662, 14869, 8, 198, 220, 220, 220, 1366, 62, 26801, 796, 1366, 13, 6601, 7, 11793, 3304, 62, 14986, 11, 466, 1443, 28, 67, 8158, 11, 3210, 62, 7959, 3920, 28, 19282, 8, 198, 220, 220, 220, 277, 3672, 796, 26672, 62, 6978, 1343, 366, 17896, 62, 7890, 13, 8158, 1, 198, 220, 220, 220, 3551, 62, 17896, 541, 17, 67, 62, 549, 66, 7, 69, 3672, 11, 1366, 62, 26801, 11, 366, 37764, 1600, 366, 67, 8158, 4943, 628, 220, 220, 220, 277, 3672, 796, 26672, 62, 6978, 1343, 366, 4852, 78, 62, 5431, 89, 13, 14116, 1, 198, 220, 220, 220, 45941, 13, 21928, 14116, 7, 69, 3672, 11, 1353, 78, 62, 5431, 89, 11, 46996, 2625, 7225, 19, 68, 4943, 198 ]
2.878471
3,637
#!/bin/env python3 from os import walk from os.path import abspath, dirname, join, realpath, splitext from subprocess import call from sys import argv, stderr checks = [ "clang-analyzer-*", "cppcoreguidelines-*", "llvm-namespace-comment", "modernize-*", "performance-*", "readability-*", ] if __name__ == "__main__": if len(argv) < 2: print("Specify path to build directory", file=stderr) exit(1) build_dir = argv[1] project_dir = abspath(join(dirname(realpath(__file__)), "..")) for root, _, files in walk("src"): for file in files: path = join(root, file) if splitext(path)[1] != ".cpp": continue cmd = [ "clang-tidy", "-p", build_dir, "-header-filter=" + join(project_dir, "include", "ieompp")+".*", "-checks=" + ','.join(checks), "-fix", path ] print(path) call(cmd)
[ 2, 48443, 8800, 14, 24330, 21015, 18, 198, 6738, 28686, 1330, 2513, 198, 6738, 28686, 13, 6978, 1330, 2352, 6978, 11, 26672, 3672, 11, 4654, 11, 1103, 6978, 11, 4328, 578, 742, 198, 6738, 850, 14681, 1330, 869, 198, 6738, 25064, 1330, 1822, 85, 11, 336, 1082, 81, 198, 198, 42116, 796, 685, 198, 220, 220, 220, 366, 565, 648, 12, 38200, 9107, 12, 9, 1600, 198, 220, 220, 220, 366, 20322, 7295, 5162, 7984, 12, 9, 1600, 198, 220, 220, 220, 366, 297, 14761, 12, 14933, 10223, 12, 23893, 1600, 198, 220, 220, 220, 366, 23922, 1096, 12, 9, 1600, 198, 220, 220, 220, 366, 26585, 12, 9, 1600, 198, 220, 220, 220, 366, 961, 1799, 12, 9, 1600, 198, 60, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 611, 18896, 7, 853, 85, 8, 1279, 362, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 22882, 1958, 3108, 284, 1382, 8619, 1600, 2393, 28, 301, 1082, 81, 8, 198, 220, 220, 220, 220, 220, 220, 220, 8420, 7, 16, 8, 628, 220, 220, 220, 1382, 62, 15908, 796, 1822, 85, 58, 16, 60, 198, 220, 220, 220, 1628, 62, 15908, 796, 2352, 6978, 7, 22179, 7, 15908, 3672, 7, 5305, 6978, 7, 834, 7753, 834, 36911, 366, 492, 48774, 628, 220, 220, 220, 329, 6808, 11, 4808, 11, 3696, 287, 2513, 7203, 10677, 1, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2393, 287, 3696, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3108, 796, 4654, 7, 15763, 11, 2393, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 4328, 578, 742, 7, 6978, 38381, 16, 60, 14512, 27071, 20322, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2555, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23991, 796, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 565, 648, 12, 83, 19325, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27444, 79, 1600, 1382, 62, 15908, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27444, 25677, 12, 24455, 2625, 1343, 4654, 7, 16302, 62, 15908, 11, 366, 17256, 1600, 366, 494, 296, 381, 4943, 10, 1911, 9, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27444, 42116, 2625, 1343, 705, 4032, 13, 22179, 7, 42116, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27444, 13049, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3108, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2361, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 6978, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 869, 7, 28758, 8, 198 ]
1.95977
522
import random from PIL import Image import lmdb import h5py import numpy as np import torch from torch.utils.data import Dataset import torchvision from torchvision.transforms import transforms
[ 11748, 4738, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 300, 9132, 65, 198, 11748, 289, 20, 9078, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 28034, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 198, 11748, 28034, 10178, 198, 6738, 28034, 10178, 13, 7645, 23914, 1330, 31408, 628, 628, 198 ]
3.618182
55
import pathlib import numbers import random from typing import Any, Optional import numpy as np import torch from torch import Tensor from torch.jit.annotations import List, Tuple import torch.nn.functional as F from torch.utils.data import Dataset, DataLoader from torchvision import transforms import torchvision.datasets as datasets import torchvision.transforms.functional as TF from torchvision.transforms import InterpolationMode from PIL import Image import cv2 try: import accimage except ImportError: accimage = None # Custom Augment Classes that can be put into Compose def apply_color_distortion(x: Tensor, bright: float=1., contrast: float=1., saturation: float=1., hue: float=0., gamma: float=1.) -> Tensor: """Applies the Pytorchvision functional HSV+G color adjustments in a deterministic manner. Args: x ([type]): [description] bright (float, optional): How much to adjust the brightness. Can be any non negative number. 0 gives a black image, 1 gives the original image while 2 increases the brightness by a factor of 2. Defaults to 1.. contrast (float, optional): How much to adjust the contrast. Can be any non negative number. 0 gives a solid gray image, 1 gives the original image while 2 increases the contrast by a factor of 2. Defaults to 1.. saturation (float, optional): How much to adjust the saturation. 0 will give a black and white image, 1 will give the original image while 2 will enhance the saturation by a factor of 2. Defaults to 1.. hue (float, optional): How much to shift the hue channel. Should be in [-0.5, 0.5]. 0.5 and -0.5 give complete reversal of hue channel in HSV space in positive and negative direction respectively. 0 means no shift. Therefore, both -0.5 and 0.5 will give an image with complementary colors while 0 gives the original image. Defaults to 0.. gamma (float, optional): Non negative real number, same as :math:`\gamma` in the equation. gamma larger than 1 make the shadows darker, while gamma smaller than 1 make dark regions lighter. Defaults to 1.. use_gray (bool, optional): Applies grayscale conversion after all others. Returns: PIL Image or Tensor: Gamma correction adjusted image. """ x = transforms.functional.adjust_contrast(x, contrast) x = transforms.functional.adjust_brightness(x, bright) x = transforms.functional.adjust_saturation(x, saturation) x = transforms.functional.adjust_hue(x, hue) x = transforms.functional.adjust_gamma(x, gamma) return x
[ 11748, 3108, 8019, 198, 11748, 3146, 198, 11748, 4738, 198, 6738, 19720, 1330, 4377, 11, 32233, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 28034, 1330, 309, 22854, 198, 6738, 28034, 13, 45051, 13, 34574, 602, 1330, 7343, 11, 309, 29291, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 11, 6060, 17401, 198, 6738, 28034, 10178, 1330, 31408, 198, 11748, 28034, 10178, 13, 19608, 292, 1039, 355, 40522, 198, 11748, 28034, 10178, 13, 7645, 23914, 13, 45124, 355, 24958, 198, 6738, 28034, 10178, 13, 7645, 23914, 1330, 4225, 16104, 341, 19076, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 269, 85, 17, 198, 28311, 25, 198, 220, 220, 220, 1330, 697, 9060, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 697, 9060, 796, 6045, 198, 198, 2, 8562, 2447, 434, 38884, 326, 460, 307, 1234, 656, 3082, 577, 628, 628, 198, 4299, 4174, 62, 8043, 62, 17080, 5817, 7, 87, 25, 309, 22854, 11, 6016, 25, 12178, 28, 16, 1539, 6273, 25, 12178, 28, 16, 1539, 36275, 25, 12178, 28, 16, 1539, 37409, 25, 12178, 28, 15, 1539, 34236, 25, 12178, 28, 16, 2014, 4613, 309, 22854, 25, 198, 220, 220, 220, 37227, 4677, 13508, 262, 9485, 13165, 354, 10178, 10345, 18070, 53, 10, 38, 3124, 16895, 287, 257, 2206, 49228, 5642, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 29565, 4906, 60, 2599, 685, 11213, 60, 198, 220, 220, 220, 220, 220, 220, 220, 6016, 357, 22468, 11, 11902, 2599, 1374, 881, 284, 4532, 262, 22204, 13, 1680, 307, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 597, 1729, 4633, 1271, 13, 657, 3607, 257, 2042, 2939, 11, 352, 3607, 262, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2656, 2939, 981, 362, 5732, 262, 22204, 416, 257, 5766, 286, 362, 13, 2896, 13185, 284, 352, 492, 198, 220, 220, 220, 220, 220, 220, 220, 6273, 357, 22468, 11, 11902, 2599, 1374, 881, 284, 4532, 262, 6273, 13, 1680, 307, 597, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1729, 4633, 1271, 13, 657, 3607, 257, 4735, 12768, 2939, 11, 352, 3607, 262, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2656, 2939, 981, 362, 5732, 262, 6273, 416, 257, 5766, 286, 362, 13, 2896, 13185, 284, 352, 492, 198, 220, 220, 220, 220, 220, 220, 220, 36275, 357, 22468, 11, 11902, 2599, 1374, 881, 284, 4532, 262, 36275, 13, 657, 481, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1577, 257, 2042, 290, 2330, 2939, 11, 352, 481, 1577, 262, 2656, 2939, 981, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 362, 481, 9494, 262, 36275, 416, 257, 5766, 286, 362, 13, 2896, 13185, 284, 352, 492, 198, 220, 220, 220, 220, 220, 220, 220, 37409, 357, 22468, 11, 11902, 2599, 1374, 881, 284, 6482, 262, 37409, 6518, 13, 10358, 307, 287, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25915, 15, 13, 20, 11, 657, 13, 20, 4083, 657, 13, 20, 290, 532, 15, 13, 20, 1577, 1844, 27138, 286, 37409, 6518, 287, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18070, 53, 2272, 287, 3967, 290, 4633, 4571, 8148, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 657, 1724, 645, 6482, 13, 8447, 11, 1111, 532, 15, 13, 20, 290, 657, 13, 20, 481, 1577, 281, 2939, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 351, 32150, 7577, 981, 657, 3607, 262, 2656, 2939, 13, 2896, 13185, 284, 657, 492, 198, 220, 220, 220, 220, 220, 220, 220, 34236, 357, 22468, 11, 11902, 2599, 8504, 4633, 1103, 1271, 11, 976, 355, 1058, 11018, 25, 63, 59, 28483, 2611, 63, 287, 262, 16022, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 34236, 4025, 621, 352, 787, 262, 16187, 18646, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 981, 34236, 4833, 621, 352, 787, 3223, 7652, 14871, 13, 2896, 13185, 284, 352, 492, 198, 220, 220, 220, 220, 220, 220, 220, 779, 62, 44605, 357, 30388, 11, 11902, 2599, 2034, 13508, 1036, 592, 38765, 11315, 706, 477, 1854, 13, 198, 220, 220, 220, 16409, 25, 198, 220, 220, 220, 220, 220, 220, 220, 350, 4146, 7412, 393, 309, 22854, 25, 43595, 17137, 12328, 2939, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2124, 796, 31408, 13, 45124, 13, 23032, 62, 3642, 5685, 7, 87, 11, 6273, 8, 198, 220, 220, 220, 2124, 796, 31408, 13, 45124, 13, 23032, 62, 29199, 1108, 7, 87, 11, 6016, 8, 198, 220, 220, 220, 2124, 796, 31408, 13, 45124, 13, 23032, 62, 82, 36921, 7, 87, 11, 36275, 8, 198, 220, 220, 220, 2124, 796, 31408, 13, 45124, 13, 23032, 62, 71, 518, 7, 87, 11, 37409, 8, 198, 220, 220, 220, 2124, 796, 31408, 13, 45124, 13, 23032, 62, 28483, 2611, 7, 87, 11, 34236, 8, 628, 220, 220, 220, 1441, 2124, 198 ]
3.0907
871
# Copyright 2021 NREL # 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. import os from matplotlib import pyplot as plt import pandas as pd from flasc.dataframe_operations import ( dataframe_filtering as dff, dataframe_manipulations as dfm, ) if __name__ == "__main__": # In this script, we do some very basic filtering steps, such as filtering # for negative wind speeds and power productions. We also filter the data # by one or multiple variables that inherently already tells us if data # is good or bad according to the data logger/turbine itself. In our case, # this self-flagged variable is "is_operational_normal_00x". # Load data and get properties df = load_data() num_turbines = dfm.get_num_turbines(df) root_path = os.path.dirname(os.path.abspath(__file__)) out_path = os.path.join(root_path, "data", "02_basic_filtered") figs_path = os.path.join(out_path, "figures") os.makedirs(figs_path, exist_ok=True) # Basic filters: address self flags and obviously wrong points for ti in range(num_turbines): # Specify filtering conditions conds = [ ~df["is_operation_normal_{:03d}".format(ti)], # Self-status df["ws_{:03d}".format(ti)] <= 0.0, # Non-negative wind speeds df["pow_{:03d}".format(ti)] <= 0.0, ] # Non-negative powers # Retrieve a single, combined condition array conds_combined = conds[0] for cond in conds: conds_combined = conds_combined | cond # Plot time vs filtered data fig, ax = dff.plot_highlight_data_by_conds(df, conds, ti) ax.legend( ["All data", "Bad self-status", "Negative WS", "Negative power"] ) fp = os.path.join(figs_path, "basic_filtering_%03d.png" % ti) print("Saving figure to {:s} for turbine {:03d}.".format(fp, ti)) fig.savefig(fp, dpi=200) plt.close(fig) # Apply filtering to dataframe df = dff.df_mark_turbdata_as_faulty( df, conds_combined, ti, verbose=True ) # Remove unnecessary columns after filtering self_status_cols = [ "is_operation_normal_%03d" % ti for ti in range(num_turbines) ] df = df.drop(columns=self_status_cols) # Remove self status columns # Save as a single file and as batch files fout = os.path.join(out_path, "scada_data_60s.ftr") print("Savig filtered data to {:s}.".format(fout)) os.makedirs(out_path, exist_ok=True) df = df.reset_index(drop=("time" in df.columns)) df.to_feather(fout)
[ 2, 15069, 33448, 399, 16448, 198, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 407, 198, 2, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 257, 4866, 286, 198, 2, 262, 13789, 379, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 198, 198, 2, 17486, 2672, 416, 9723, 1099, 393, 4987, 284, 287, 3597, 11, 3788, 198, 2, 9387, 739, 262, 13789, 318, 9387, 319, 281, 366, 1921, 3180, 1, 29809, 1797, 11, 42881, 198, 2, 34764, 11015, 6375, 7102, 49828, 11053, 3963, 15529, 509, 12115, 11, 2035, 4911, 393, 17142, 13, 4091, 262, 198, 2, 13789, 329, 262, 2176, 3303, 15030, 21627, 290, 11247, 739, 198, 2, 262, 13789, 13, 628, 198, 11748, 28686, 198, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 781, 3372, 13, 7890, 14535, 62, 3575, 602, 1330, 357, 198, 220, 220, 220, 1366, 14535, 62, 10379, 20212, 355, 288, 487, 11, 198, 220, 220, 220, 1366, 14535, 62, 805, 541, 5768, 355, 288, 38353, 11, 198, 8, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1303, 554, 428, 4226, 11, 356, 466, 617, 845, 4096, 25431, 4831, 11, 884, 355, 25431, 198, 220, 220, 220, 1303, 329, 4633, 2344, 12055, 290, 1176, 32260, 13, 775, 635, 8106, 262, 1366, 198, 220, 220, 220, 1303, 416, 530, 393, 3294, 9633, 326, 20108, 1541, 4952, 514, 611, 1366, 198, 220, 220, 220, 1303, 318, 922, 393, 2089, 1864, 284, 262, 1366, 49706, 14, 83, 5945, 500, 2346, 13, 554, 674, 1339, 11, 198, 220, 220, 220, 1303, 428, 2116, 12, 2704, 14655, 7885, 318, 366, 271, 62, 3575, 864, 62, 11265, 62, 405, 87, 1911, 628, 220, 220, 220, 1303, 8778, 1366, 290, 651, 6608, 198, 220, 220, 220, 47764, 796, 3440, 62, 7890, 3419, 198, 220, 220, 220, 997, 62, 83, 5945, 1127, 796, 288, 38353, 13, 1136, 62, 22510, 62, 83, 5945, 1127, 7, 7568, 8, 628, 220, 220, 220, 6808, 62, 6978, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, 198, 220, 220, 220, 503, 62, 6978, 796, 28686, 13, 6978, 13, 22179, 7, 15763, 62, 6978, 11, 366, 7890, 1600, 366, 2999, 62, 35487, 62, 10379, 4400, 4943, 198, 220, 220, 220, 2336, 82, 62, 6978, 796, 28686, 13, 6978, 13, 22179, 7, 448, 62, 6978, 11, 366, 5647, 942, 4943, 198, 220, 220, 220, 28686, 13, 76, 4335, 17062, 7, 5647, 82, 62, 6978, 11, 2152, 62, 482, 28, 17821, 8, 628, 220, 220, 220, 1303, 14392, 16628, 25, 2209, 2116, 9701, 290, 6189, 2642, 2173, 198, 220, 220, 220, 329, 46668, 287, 2837, 7, 22510, 62, 83, 5945, 1127, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 18291, 1958, 25431, 3403, 198, 220, 220, 220, 220, 220, 220, 220, 1779, 82, 796, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5299, 7568, 14692, 271, 62, 27184, 62, 11265, 23330, 25, 3070, 67, 92, 1911, 18982, 7, 20259, 8, 4357, 220, 1303, 12189, 12, 13376, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 47764, 14692, 18504, 23330, 25, 3070, 67, 92, 1911, 18982, 7, 20259, 15437, 19841, 657, 13, 15, 11, 220, 1303, 8504, 12, 31591, 2344, 12055, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 47764, 14692, 79, 322, 23330, 25, 3070, 67, 92, 1911, 18982, 7, 20259, 15437, 19841, 657, 13, 15, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2361, 220, 1303, 8504, 12, 31591, 5635, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 4990, 30227, 257, 2060, 11, 5929, 4006, 7177, 198, 220, 220, 220, 220, 220, 220, 220, 1779, 82, 62, 24011, 1389, 796, 1779, 82, 58, 15, 60, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1779, 287, 1779, 82, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1779, 82, 62, 24011, 1389, 796, 1779, 82, 62, 24011, 1389, 930, 1779, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 28114, 640, 3691, 29083, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 2336, 11, 7877, 796, 288, 487, 13, 29487, 62, 8929, 2971, 62, 7890, 62, 1525, 62, 17561, 82, 7, 7568, 11, 1779, 82, 11, 46668, 8, 198, 220, 220, 220, 220, 220, 220, 220, 7877, 13, 1455, 437, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14631, 3237, 1366, 1600, 366, 22069, 2116, 12, 13376, 1600, 366, 32863, 876, 25290, 1600, 366, 32863, 876, 1176, 8973, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 277, 79, 796, 28686, 13, 6978, 13, 22179, 7, 5647, 82, 62, 6978, 11, 366, 35487, 62, 10379, 20212, 62, 4, 3070, 67, 13, 11134, 1, 4064, 46668, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 50, 2703, 3785, 284, 46110, 82, 92, 329, 36489, 46110, 3070, 67, 92, 526, 13, 18982, 7, 46428, 11, 46668, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2336, 13, 21928, 5647, 7, 46428, 11, 288, 14415, 28, 2167, 8, 198, 220, 220, 220, 220, 220, 220, 220, 458, 83, 13, 19836, 7, 5647, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 27967, 25431, 284, 1366, 14535, 198, 220, 220, 220, 220, 220, 220, 220, 47764, 796, 288, 487, 13, 7568, 62, 4102, 62, 83, 5945, 7890, 62, 292, 62, 69, 1721, 88, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 47764, 11, 1779, 82, 62, 24011, 1389, 11, 46668, 11, 15942, 577, 28, 17821, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 1303, 17220, 13114, 15180, 706, 25431, 198, 220, 220, 220, 2116, 62, 13376, 62, 4033, 82, 796, 685, 198, 220, 220, 220, 220, 220, 220, 220, 366, 271, 62, 27184, 62, 11265, 62, 4, 3070, 67, 1, 4064, 46668, 329, 46668, 287, 2837, 7, 22510, 62, 83, 5945, 1127, 8, 198, 220, 220, 220, 2361, 198, 220, 220, 220, 47764, 796, 47764, 13, 14781, 7, 28665, 82, 28, 944, 62, 13376, 62, 4033, 82, 8, 220, 1303, 17220, 2116, 3722, 15180, 628, 220, 220, 220, 1303, 12793, 355, 257, 2060, 2393, 290, 355, 15458, 3696, 198, 220, 220, 220, 277, 448, 796, 28686, 13, 6978, 13, 22179, 7, 448, 62, 6978, 11, 366, 1416, 4763, 62, 7890, 62, 1899, 82, 13, 701, 81, 4943, 198, 220, 220, 220, 3601, 7203, 47362, 328, 29083, 1366, 284, 46110, 82, 92, 526, 13, 18982, 7, 69, 448, 4008, 198, 220, 220, 220, 28686, 13, 76, 4335, 17062, 7, 448, 62, 6978, 11, 2152, 62, 482, 28, 17821, 8, 198, 220, 220, 220, 47764, 796, 47764, 13, 42503, 62, 9630, 7, 14781, 28, 7203, 2435, 1, 287, 47764, 13, 28665, 82, 4008, 198, 220, 220, 220, 47764, 13, 1462, 62, 5036, 1032, 7, 69, 448, 8, 198 ]
2.572264
1,197
import math from scrappybara.langmodel.token_context import TokenContext from scrappybara.preprocessing.tokenizer import Tokenizer from scrappybara.utils.files import txt_file_reader from scrappybara.utils.mutables import append_to_dict_list
[ 11748, 10688, 198, 198, 6738, 19320, 14097, 39389, 13, 17204, 19849, 13, 30001, 62, 22866, 1330, 29130, 21947, 198, 6738, 19320, 14097, 39389, 13, 3866, 36948, 13, 30001, 7509, 1330, 29130, 7509, 198, 6738, 19320, 14097, 39389, 13, 26791, 13, 16624, 1330, 256, 742, 62, 7753, 62, 46862, 198, 6738, 19320, 14097, 39389, 13, 26791, 13, 21973, 2977, 1330, 24443, 62, 1462, 62, 11600, 62, 4868, 628 ]
3.641791
67
#!/usr/bin/env python3 # # Copyright 2016 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Input socket plugin. Waits for events from an output socket plugin running on another Instalog node. See socket_common.py for protocol definition. See input_socket_unittest.py for reference examples. """ import hashlib import logging import socket import tempfile import threading import time from cros.factory.instalog import datatypes from cros.factory.instalog import log_utils from cros.factory.instalog import plugin_base from cros.factory.instalog.plugins import socket_common from cros.factory.instalog.utils.arg_utils import Arg from cros.factory.instalog.utils import file_utils _DEFAULT_HOSTNAME = '0.0.0.0' class ChecksumError(Exception): """Represents a checksum mismatch.""" class InputSocketReceiver(log_utils.LoggerMixin): """Receives a request from an output socket plugin.""" def ProcessRequest(self): """Receives a request from an output socket plugin.""" # Create the temporary directory for attachments. with file_utils.TempDirectory(prefix='input_socket_') as self._tmp_dir: self.debug('Temporary directory for attachments: %s', self._tmp_dir) try: events = [] num_events = self.RecvInt() while num_events == 0: self.Pong() num_events = self.RecvInt() total_bytes = 0 start_time = time.time() for event_id in range(num_events): event_bytes, event = self.RecvEvent() self.debug('Received event[%d] size: %.2f kB', event_id, event_bytes / 1024) total_bytes += event_bytes events.append(event) receive_time = time.time() - start_time except socket.timeout: self.error('Socket timeout error, remote connection closed?') self.Close() return except ChecksumError: self.error('Checksum mismatch, abort') self.Close() return except Exception: self.exception('Unknown exception encountered') self.Close() return self.debug('Notifying transmitting side of data-received (syn)') self._conn.sendall(socket_common.DATA_RECEIVED_CHAR) self.debug('Waiting for request-emit (ack)...') if self._conn.recv(1) != socket_common.REQUEST_EMIT_CHAR: self.error('Did not receive request-emit (ack), aborting') self.Close() return self.debug('Calling Emit()...') start_time = time.time() if not self._plugin_api.Emit(events): self.error('Unable to emit, aborting') self.Close() return emit_time = time.time() - start_time try: self.debug('Success; sending emit-success to transmitting side ' '(syn-ack)') self._conn.sendall(socket_common.EMIT_SUCCESS_CHAR) except Exception: self.exception('Received events were emitted successfully, but failed ' 'to confirm success with remote side: duplicate data ' 'may occur') finally: total_kbytes = total_bytes / 1024 self.info('Received %d events, total %.2f kB in %.1f+%.1f sec ' '(%.2f kB/sec)', len(events), total_kbytes, receive_time, emit_time, total_kbytes / receive_time) self.Close() def Pong(self): """Called for an empty transfer (0 events).""" self.debug('Empty transfer: Pong!') try: self._conn.sendall(socket_common.PING_RESPONSE) except Exception: pass def Close(self): """Shuts down and closes the socket stream.""" try: self.debug('Closing socket') self._conn.shutdown(socket.SHUT_RDWR) self._conn.close() except Exception: self.exception('Error closing socket') def RecvItem(self): """Returns the next item in socket stream.""" buf = b'' while True: data = self._conn.recv(1) if not data: raise socket.timeout if data == socket_common.SEPARATOR: break buf += data return buf def RecvInt(self): """Returns the next integer in socket stream.""" return int(self.RecvItem()) def RecvFieldParts(self): """Returns a generator to retrieve the next field in socket stream.""" total = self.RecvInt() self.debug('RecvFieldParts total = %d bytes' % total) progress = 0 local_hash = hashlib.sha1() while progress < total: recv_size = total - progress # Recv may return any number of bytes <= recv_size, so it's important # to check the size of its output. out = self._conn.recv(recv_size) if not out: raise socket.timeout local_hash.update(out) progress += len(out) yield progress, out # Verify SHA1 checksum. remote_checksum = self.RecvItem() local_checksum = local_hash.hexdigest() if remote_checksum.decode('utf-8') != local_checksum: raise ChecksumError def RecvField(self): """Returns the next field in socket stream.""" buf = b'' for unused_progress, field in self.RecvFieldParts(): buf += field return buf def RecvEvent(self): """Returns the next event in socket stream. Returns: A tuple with (total bytes, Event object) """ total_bytes = 0 # Retrieve the event itself. event_field = self.RecvField() total_bytes += len(event_field) event = datatypes.Event.Deserialize(event_field.decode('utf-8')) # An event is followed by its number of attachments. num_atts = self.RecvInt() self.debug('num_atts = %d', num_atts) for att_index in range(num_atts): # Attachment format: <attachment_id> <attachment_data> att_id = self.RecvField() total_bytes += len(att_id) att_size, att_path = self.RecvAttachmentData() total_bytes += att_size self.debug('Attachment[%d] %s: %d bytes', att_index, att_id, att_size) event.attachments[att_id] = att_path self.debug('Retrieved event (%d bytes): %s', total_bytes, event) return total_bytes, event def RecvAttachmentData(self): """Receives attachment data and writes to a temporary file on disk. Returns: A tuple with (total bytes received, temporary path). """ progress = 0 with tempfile.NamedTemporaryFile('wb', dir=self._tmp_dir, delete=False) as f: for progress, bin_part in self.RecvFieldParts(): f.write(bin_part) return progress, f.name if __name__ == '__main__': plugin_base.main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 15069, 1584, 383, 18255, 1505, 7294, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043, 287, 262, 38559, 24290, 2393, 13, 198, 198, 37811, 20560, 17802, 13877, 13, 198, 198, 33484, 896, 329, 2995, 422, 281, 5072, 17802, 13877, 2491, 319, 1194, 2262, 11794, 10139, 13, 198, 198, 6214, 17802, 62, 11321, 13, 9078, 329, 8435, 6770, 13, 198, 6214, 5128, 62, 44971, 62, 403, 715, 395, 13, 9078, 329, 4941, 6096, 13, 198, 37811, 198, 198, 11748, 12234, 8019, 198, 11748, 18931, 198, 11748, 17802, 198, 11748, 20218, 7753, 198, 11748, 4704, 278, 198, 11748, 640, 198, 198, 6738, 269, 4951, 13, 69, 9548, 13, 259, 7757, 519, 1330, 4818, 265, 9497, 198, 6738, 269, 4951, 13, 69, 9548, 13, 259, 7757, 519, 1330, 2604, 62, 26791, 198, 6738, 269, 4951, 13, 69, 9548, 13, 259, 7757, 519, 1330, 13877, 62, 8692, 198, 6738, 269, 4951, 13, 69, 9548, 13, 259, 7757, 519, 13, 37390, 1330, 17802, 62, 11321, 198, 6738, 269, 4951, 13, 69, 9548, 13, 259, 7757, 519, 13, 26791, 13, 853, 62, 26791, 1330, 20559, 198, 6738, 269, 4951, 13, 69, 9548, 13, 259, 7757, 519, 13, 26791, 1330, 2393, 62, 26791, 628, 198, 62, 7206, 38865, 62, 39, 10892, 20608, 796, 705, 15, 13, 15, 13, 15, 13, 15, 6, 628, 198, 4871, 47719, 388, 12331, 7, 16922, 2599, 198, 220, 37227, 6207, 6629, 257, 8794, 388, 46318, 526, 15931, 628, 198, 198, 4871, 23412, 39105, 3041, 39729, 7, 6404, 62, 26791, 13, 11187, 1362, 35608, 259, 2599, 198, 220, 37227, 3041, 344, 1083, 257, 2581, 422, 281, 5072, 17802, 13877, 526, 15931, 628, 220, 825, 10854, 18453, 7, 944, 2599, 198, 220, 220, 220, 37227, 3041, 344, 1083, 257, 2581, 422, 281, 5072, 17802, 13877, 526, 15931, 198, 220, 220, 220, 1303, 13610, 262, 8584, 8619, 329, 32161, 13, 198, 220, 220, 220, 351, 2393, 62, 26791, 13, 30782, 43055, 7, 40290, 11639, 15414, 62, 44971, 62, 11537, 355, 2116, 13557, 22065, 62, 15908, 25, 198, 220, 220, 220, 220, 220, 2116, 13, 24442, 10786, 12966, 5551, 8619, 329, 32161, 25, 4064, 82, 3256, 2116, 13557, 22065, 62, 15908, 8, 198, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2995, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 997, 62, 31534, 796, 2116, 13, 6690, 85, 5317, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 981, 997, 62, 31534, 6624, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 47, 506, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 997, 62, 31534, 796, 2116, 13, 6690, 85, 5317, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2472, 62, 33661, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 923, 62, 2435, 796, 640, 13, 2435, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1785, 62, 312, 287, 2837, 7, 22510, 62, 31534, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 33661, 11, 1785, 796, 2116, 13, 6690, 85, 9237, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 24442, 10786, 3041, 6471, 1785, 58, 4, 67, 60, 2546, 25, 4064, 13, 17, 69, 479, 33, 3256, 1785, 62, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1785, 62, 33661, 1220, 28119, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2472, 62, 33661, 15853, 1785, 62, 33661, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2995, 13, 33295, 7, 15596, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3328, 62, 2435, 796, 640, 13, 2435, 3419, 532, 923, 62, 2435, 198, 220, 220, 220, 220, 220, 2845, 17802, 13, 48678, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 18224, 10786, 39105, 26827, 4049, 11, 6569, 4637, 4838, 8348, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 26125, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 198, 220, 220, 220, 220, 220, 2845, 47719, 388, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 18224, 10786, 7376, 4657, 388, 46318, 11, 15614, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 26125, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 198, 220, 220, 220, 220, 220, 2845, 35528, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 1069, 4516, 10786, 20035, 6631, 12956, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 26125, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 628, 220, 220, 220, 220, 220, 2116, 13, 24442, 10786, 3673, 4035, 39573, 1735, 286, 1366, 12, 47844, 357, 28869, 8, 11537, 198, 220, 220, 220, 220, 220, 2116, 13557, 37043, 13, 21280, 439, 7, 44971, 62, 11321, 13, 26947, 62, 2200, 5222, 3824, 1961, 62, 38019, 8, 198, 220, 220, 220, 220, 220, 2116, 13, 24442, 10786, 33484, 1780, 329, 2581, 12, 368, 270, 357, 441, 26513, 11537, 198, 220, 220, 220, 220, 220, 611, 2116, 13557, 37043, 13, 8344, 85, 7, 16, 8, 14512, 17802, 62, 11321, 13, 2200, 35780, 62, 3620, 2043, 62, 38019, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 18224, 10786, 11633, 407, 3328, 2581, 12, 368, 270, 357, 441, 828, 15614, 278, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 26125, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 628, 220, 220, 220, 220, 220, 2116, 13, 24442, 10786, 48593, 2295, 270, 3419, 986, 11537, 198, 220, 220, 220, 220, 220, 923, 62, 2435, 796, 640, 13, 2435, 3419, 198, 220, 220, 220, 220, 220, 611, 407, 2116, 13557, 33803, 62, 15042, 13, 36, 2781, 7, 31534, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 18224, 10786, 3118, 540, 284, 27588, 11, 15614, 278, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 26125, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 198, 220, 220, 220, 220, 220, 27588, 62, 2435, 796, 640, 13, 2435, 3419, 532, 923, 62, 2435, 628, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 24442, 10786, 33244, 26, 7216, 27588, 12, 13138, 284, 39573, 1735, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29513, 28869, 12, 441, 8, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 37043, 13, 21280, 439, 7, 44971, 62, 11321, 13, 3620, 2043, 62, 12564, 4093, 7597, 62, 38019, 8, 198, 220, 220, 220, 220, 220, 2845, 35528, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 1069, 4516, 10786, 3041, 6471, 2995, 547, 31234, 7675, 11, 475, 4054, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 1462, 6216, 1943, 351, 6569, 1735, 25, 23418, 1366, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 11261, 3051, 11537, 198, 220, 220, 220, 220, 220, 3443, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2472, 62, 74, 33661, 796, 2472, 62, 33661, 1220, 28119, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 10951, 10786, 3041, 6471, 4064, 67, 2995, 11, 2472, 4064, 13, 17, 69, 479, 33, 287, 4064, 13, 16, 69, 10, 7225, 16, 69, 792, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29513, 7225, 17, 69, 479, 33, 14, 2363, 8, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18896, 7, 31534, 828, 2472, 62, 74, 33661, 11, 3328, 62, 2435, 11, 27588, 62, 2435, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2472, 62, 74, 33661, 1220, 3328, 62, 2435, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 26125, 3419, 628, 220, 825, 350, 506, 7, 944, 2599, 198, 220, 220, 220, 37227, 34, 4262, 329, 281, 6565, 4351, 357, 15, 2995, 21387, 15931, 198, 220, 220, 220, 2116, 13, 24442, 10786, 40613, 4351, 25, 350, 506, 0, 11537, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 2116, 13557, 37043, 13, 21280, 439, 7, 44971, 62, 11321, 13, 47, 2751, 62, 19535, 47, 1340, 5188, 8, 198, 220, 220, 220, 2845, 35528, 25, 198, 220, 220, 220, 220, 220, 1208, 628, 220, 825, 13872, 7, 944, 2599, 198, 220, 220, 220, 37227, 2484, 5500, 866, 290, 20612, 262, 17802, 4269, 526, 15931, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 2116, 13, 24442, 10786, 2601, 2752, 17802, 11537, 198, 220, 220, 220, 220, 220, 2116, 13557, 37043, 13, 49625, 2902, 7, 44971, 13, 9693, 3843, 62, 35257, 18564, 8, 198, 220, 220, 220, 220, 220, 2116, 13557, 37043, 13, 19836, 3419, 198, 220, 220, 220, 2845, 35528, 25, 198, 220, 220, 220, 220, 220, 2116, 13, 1069, 4516, 10786, 12331, 9605, 17802, 11537, 628, 220, 825, 3311, 85, 7449, 7, 944, 2599, 198, 220, 220, 220, 37227, 35561, 262, 1306, 2378, 287, 17802, 4269, 526, 15931, 198, 220, 220, 220, 42684, 796, 275, 7061, 198, 220, 220, 220, 981, 6407, 25, 198, 220, 220, 220, 220, 220, 1366, 796, 2116, 13557, 37043, 13, 8344, 85, 7, 16, 8, 198, 220, 220, 220, 220, 220, 611, 407, 1366, 25, 198, 220, 220, 220, 220, 220, 220, 220, 5298, 17802, 13, 48678, 198, 220, 220, 220, 220, 220, 611, 1366, 6624, 17802, 62, 11321, 13, 5188, 27082, 25633, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2270, 198, 220, 220, 220, 220, 220, 42684, 15853, 1366, 198, 220, 220, 220, 1441, 42684, 628, 220, 825, 3311, 85, 5317, 7, 944, 2599, 198, 220, 220, 220, 37227, 35561, 262, 1306, 18253, 287, 17802, 4269, 526, 15931, 198, 220, 220, 220, 1441, 493, 7, 944, 13, 6690, 85, 7449, 28955, 628, 220, 825, 3311, 85, 15878, 42670, 7, 944, 2599, 198, 220, 220, 220, 37227, 35561, 257, 17301, 284, 19818, 262, 1306, 2214, 287, 17802, 4269, 526, 15931, 198, 220, 220, 220, 2472, 796, 2116, 13, 6690, 85, 5317, 3419, 198, 220, 220, 220, 2116, 13, 24442, 10786, 6690, 85, 15878, 42670, 2472, 796, 4064, 67, 9881, 6, 4064, 2472, 8, 198, 220, 220, 220, 4371, 796, 657, 198, 220, 220, 220, 1957, 62, 17831, 796, 12234, 8019, 13, 26270, 16, 3419, 198, 220, 220, 220, 981, 4371, 1279, 2472, 25, 198, 220, 220, 220, 220, 220, 664, 85, 62, 7857, 796, 2472, 532, 4371, 198, 220, 220, 220, 220, 220, 1303, 3311, 85, 743, 1441, 597, 1271, 286, 9881, 19841, 664, 85, 62, 7857, 11, 523, 340, 338, 1593, 198, 220, 220, 220, 220, 220, 1303, 284, 2198, 262, 2546, 286, 663, 5072, 13, 198, 220, 220, 220, 220, 220, 503, 796, 2116, 13557, 37043, 13, 8344, 85, 7, 8344, 85, 62, 7857, 8, 198, 220, 220, 220, 220, 220, 611, 407, 503, 25, 198, 220, 220, 220, 220, 220, 220, 220, 5298, 17802, 13, 48678, 198, 220, 220, 220, 220, 220, 1957, 62, 17831, 13, 19119, 7, 448, 8, 198, 220, 220, 220, 220, 220, 4371, 15853, 18896, 7, 448, 8, 198, 220, 220, 220, 220, 220, 7800, 4371, 11, 503, 628, 220, 220, 220, 1303, 49899, 25630, 16, 8794, 388, 13, 198, 220, 220, 220, 6569, 62, 42116, 388, 796, 2116, 13, 6690, 85, 7449, 3419, 198, 220, 220, 220, 1957, 62, 42116, 388, 796, 1957, 62, 17831, 13, 33095, 12894, 395, 3419, 198, 220, 220, 220, 611, 6569, 62, 42116, 388, 13, 12501, 1098, 10786, 40477, 12, 23, 11537, 14512, 1957, 62, 42116, 388, 25, 198, 220, 220, 220, 220, 220, 5298, 47719, 388, 12331, 628, 220, 825, 3311, 85, 15878, 7, 944, 2599, 198, 220, 220, 220, 37227, 35561, 262, 1306, 2214, 287, 17802, 4269, 526, 15931, 198, 220, 220, 220, 42684, 796, 275, 7061, 198, 220, 220, 220, 329, 21958, 62, 33723, 11, 2214, 287, 2116, 13, 6690, 85, 15878, 42670, 33529, 198, 220, 220, 220, 220, 220, 42684, 15853, 2214, 198, 220, 220, 220, 1441, 42684, 628, 220, 825, 3311, 85, 9237, 7, 944, 2599, 198, 220, 220, 220, 37227, 35561, 262, 1306, 1785, 287, 17802, 4269, 13, 628, 220, 220, 220, 16409, 25, 198, 220, 220, 220, 220, 220, 317, 46545, 351, 357, 23350, 9881, 11, 8558, 2134, 8, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2472, 62, 33661, 796, 657, 198, 220, 220, 220, 1303, 4990, 30227, 262, 1785, 2346, 13, 198, 220, 220, 220, 1785, 62, 3245, 796, 2116, 13, 6690, 85, 15878, 3419, 198, 220, 220, 220, 2472, 62, 33661, 15853, 18896, 7, 15596, 62, 3245, 8, 198, 220, 220, 220, 1785, 796, 4818, 265, 9497, 13, 9237, 13, 5960, 48499, 1096, 7, 15596, 62, 3245, 13, 12501, 1098, 10786, 40477, 12, 23, 6, 4008, 628, 220, 220, 220, 1303, 1052, 1785, 318, 3940, 416, 663, 1271, 286, 32161, 13, 198, 220, 220, 220, 997, 62, 30353, 796, 2116, 13, 6690, 85, 5317, 3419, 198, 220, 220, 220, 2116, 13, 24442, 10786, 22510, 62, 30353, 796, 4064, 67, 3256, 997, 62, 30353, 8, 628, 220, 220, 220, 329, 708, 62, 9630, 287, 2837, 7, 22510, 62, 30353, 2599, 198, 220, 220, 220, 220, 220, 1303, 3460, 15520, 5794, 25, 1279, 1078, 15520, 62, 312, 29, 1279, 1078, 15520, 62, 7890, 29, 198, 220, 220, 220, 220, 220, 708, 62, 312, 796, 2116, 13, 6690, 85, 15878, 3419, 198, 220, 220, 220, 220, 220, 2472, 62, 33661, 15853, 18896, 7, 1078, 62, 312, 8, 198, 220, 220, 220, 220, 220, 708, 62, 7857, 11, 708, 62, 6978, 796, 2116, 13, 6690, 85, 8086, 15520, 6601, 3419, 198, 220, 220, 220, 220, 220, 2472, 62, 33661, 15853, 708, 62, 7857, 198, 220, 220, 220, 220, 220, 2116, 13, 24442, 10786, 8086, 15520, 58, 4, 67, 60, 4064, 82, 25, 4064, 67, 9881, 3256, 708, 62, 9630, 11, 708, 62, 312, 11, 708, 62, 7857, 8, 198, 220, 220, 220, 220, 220, 1785, 13, 47348, 902, 58, 1078, 62, 312, 60, 796, 708, 62, 6978, 198, 220, 220, 220, 2116, 13, 24442, 10786, 9781, 28130, 1785, 37633, 67, 9881, 2599, 4064, 82, 3256, 2472, 62, 33661, 11, 1785, 8, 198, 220, 220, 220, 1441, 2472, 62, 33661, 11, 1785, 628, 220, 825, 3311, 85, 8086, 15520, 6601, 7, 944, 2599, 198, 220, 220, 220, 37227, 3041, 344, 1083, 18231, 1366, 290, 6797, 284, 257, 8584, 2393, 319, 11898, 13, 628, 220, 220, 220, 16409, 25, 198, 220, 220, 220, 220, 220, 317, 46545, 351, 357, 23350, 9881, 2722, 11, 8584, 3108, 737, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 4371, 796, 657, 198, 220, 220, 220, 351, 20218, 7753, 13, 45, 2434, 12966, 5551, 8979, 10786, 39346, 3256, 26672, 28, 944, 13557, 22065, 62, 15908, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12233, 28, 25101, 8, 355, 277, 25, 198, 220, 220, 220, 220, 220, 329, 4371, 11, 9874, 62, 3911, 287, 2116, 13, 6690, 85, 15878, 42670, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 277, 13, 13564, 7, 8800, 62, 3911, 8, 198, 220, 220, 220, 220, 220, 1441, 4371, 11, 277, 13, 3672, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 13877, 62, 8692, 13, 12417, 3419, 198 ]
2.506372
2,668
''' Copyright (C) 2019 Simon D. Levy MIT License ''' from gym.envs.registration import register register( id='Lander-v0', entry_point='gym_copter.envs:Lander2D', max_episode_steps=2000 ) register( id='Lander3D-v0', entry_point='gym_copter.envs:Lander3D', max_episode_steps=2000 ) register( id='Lander3D-v1', entry_point='gym_copter.envs:TargetedLander3D', max_episode_steps=2000 ) register( id='Distance-v0', entry_point='gym_copter.envs:Distance', max_episode_steps=1000 ) register( id='Takeoff-v0', entry_point='gym_copter.envs:Takeoff', max_episode_steps=1000 )
[ 7061, 6, 201, 198, 15269, 357, 34, 8, 13130, 11288, 360, 13, 32036, 201, 198, 201, 198, 36393, 13789, 201, 198, 7061, 6, 201, 198, 201, 198, 6738, 11550, 13, 268, 14259, 13, 2301, 33397, 1330, 7881, 201, 198, 201, 198, 30238, 7, 201, 198, 220, 220, 220, 4686, 11639, 43, 4066, 12, 85, 15, 3256, 201, 198, 220, 220, 220, 5726, 62, 4122, 11639, 1360, 76, 62, 22163, 353, 13, 268, 14259, 25, 43, 4066, 17, 35, 3256, 201, 198, 220, 220, 220, 3509, 62, 38668, 62, 20214, 28, 11024, 201, 198, 8, 201, 198, 201, 198, 30238, 7, 201, 198, 220, 220, 220, 4686, 11639, 43, 4066, 18, 35, 12, 85, 15, 3256, 201, 198, 220, 220, 220, 5726, 62, 4122, 11639, 1360, 76, 62, 22163, 353, 13, 268, 14259, 25, 43, 4066, 18, 35, 3256, 201, 198, 220, 220, 220, 3509, 62, 38668, 62, 20214, 28, 11024, 201, 198, 8, 201, 198, 201, 198, 30238, 7, 201, 198, 220, 220, 220, 4686, 11639, 43, 4066, 18, 35, 12, 85, 16, 3256, 201, 198, 220, 220, 220, 5726, 62, 4122, 11639, 1360, 76, 62, 22163, 353, 13, 268, 14259, 25, 21745, 276, 43, 4066, 18, 35, 3256, 201, 198, 220, 220, 220, 3509, 62, 38668, 62, 20214, 28, 11024, 201, 198, 8, 201, 198, 201, 198, 30238, 7, 201, 198, 220, 220, 220, 4686, 11639, 45767, 12, 85, 15, 3256, 201, 198, 220, 220, 220, 5726, 62, 4122, 11639, 1360, 76, 62, 22163, 353, 13, 268, 14259, 25, 45767, 3256, 201, 198, 220, 220, 220, 3509, 62, 38668, 62, 20214, 28, 12825, 201, 198, 8, 201, 198, 201, 198, 30238, 7, 201, 198, 220, 220, 220, 4686, 11639, 12322, 2364, 12, 85, 15, 3256, 201, 198, 220, 220, 220, 5726, 62, 4122, 11639, 1360, 76, 62, 22163, 353, 13, 268, 14259, 25, 12322, 2364, 3256, 201, 198, 220, 220, 220, 3509, 62, 38668, 62, 20214, 28, 12825, 201, 198, 8, 201, 198 ]
2.064815
324
import ast import logging import argparse import xml.etree.ElementTree as ET import cv2 import vision_genprog.tasks.image_processing as image_processing import vision_genprog.semanticSegmentersPop as semanticSegmentersPop import os import ast import synthetic_heatmap.generators.stop_sign as stop_sign logging.basicConfig(level=logging.DEBUG, format='%(asctime)-15s %(message)s') if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('validationPairsDirectory', help="The filepath to the validation image pairs") parser.add_argument('--primitivesFilepath', help="The filepath to the primitives xml file. Default: 'vision_genprog/tasks/image_processing.xml'", default='vision_genprog/tasks/image_processing.xml') parser.add_argument('--imageShapeHW', help="The image shape (height, width). Default='(256, 256)'", default='(256, 256)') parser.add_argument('--outputDirectory', help="The output directory. Default: './outputs'", default='./outputs') parser.add_argument('--numberOfIndividuals', help="The number of individuals. Default: 200", type=int, default=200) parser.add_argument('--levelToFunctionProbabilityDict', help="The probability to generate a function, at each level. Default: '{0: 1, 1: 1, 2: 1, 3: 1, 4: 1, 5: 1}'", default='{0: 1, 1: 1, 2: 1, 3: 1, 4: 1, 5: 1}') parser.add_argument('--proportionOfConstants', help='The probability to generate a constant, when a variable could be used. Default: 0', type=float, default=0) parser.add_argument('--constantCreationParametersList', help="The parameters to use when creating constants: [minFloat, maxFloat, minInt, maxInt, width, height]. Default: '[-1, 1, 0, 255, 256, 256]'", default='[-1, 1, 0, 255, 256, 256]') parser.add_argument('--numberOfGenerations', help="The number of generations to run. Default: 32", type=int, default=32) parser.add_argument('--weightForNumberOfNodes', help="Penalty term proportional to the number of nodes. Default: 0.001", type=float, default=0.001) parser.add_argument('--numberOfTournamentParticipants', help="The number of participants in selection tournaments. Default: 2", type=int, default=2) parser.add_argument('--mutationProbability', help="The probability to mutate a child. Default: 0.1", type=float, default=0.1) parser.add_argument('--proportionOfNewIndividuals', help="The proportion of randomly generates individuals per generation. Default: 0.1", type=float, default=0.1) parser.add_argument('--maximumNumberOfMissedCreationTrials', help="The maximum number if missed creation trials. Default: 1000", type=int, default=1000) parser.add_argument('--numberOfTrainingPairs', help="The number of generated training pairs, per epoch. Default: 160", type=int, default=160) args = parser.parse_args() imageShapeHW = ast.literal_eval(args.imageShapeHW) levelToFunctionProbabilityDict = ast.literal_eval(args.levelToFunctionProbabilityDict) constantCreationParametersList = ast.literal_eval(args.constantCreationParametersList) main( args.validationPairsDirectory, args.primitivesFilepath, imageShapeHW, args.outputDirectory, args.numberOfIndividuals, levelToFunctionProbabilityDict, args.proportionOfConstants, constantCreationParametersList, args.numberOfGenerations, args.weightForNumberOfNodes, args.numberOfTournamentParticipants, args.mutationProbability, args.proportionOfNewIndividuals, args.maximumNumberOfMissedCreationTrials, args.numberOfTrainingPairs )
[ 11748, 6468, 198, 11748, 18931, 198, 11748, 1822, 29572, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 11748, 269, 85, 17, 198, 11748, 5761, 62, 5235, 1676, 70, 13, 83, 6791, 13, 9060, 62, 36948, 355, 2939, 62, 36948, 198, 11748, 5761, 62, 5235, 1676, 70, 13, 43616, 5109, 41030, 434, 364, 16979, 355, 37865, 41030, 434, 364, 16979, 198, 11748, 28686, 198, 11748, 6468, 198, 11748, 18512, 62, 25080, 8899, 13, 8612, 2024, 13, 11338, 62, 12683, 355, 2245, 62, 12683, 198, 198, 6404, 2667, 13, 35487, 16934, 7, 5715, 28, 6404, 2667, 13, 30531, 11, 5794, 11639, 4, 7, 292, 310, 524, 13219, 1314, 82, 4064, 7, 20500, 8, 82, 11537, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 30751, 796, 1822, 29572, 13, 28100, 1713, 46677, 3419, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 12102, 341, 47, 3468, 43055, 3256, 1037, 2625, 464, 2393, 6978, 284, 262, 21201, 2939, 14729, 4943, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 19795, 20288, 8979, 6978, 3256, 1037, 2625, 464, 2393, 6978, 284, 262, 2684, 20288, 35555, 2393, 13, 15161, 25, 705, 10178, 62, 5235, 1676, 70, 14, 83, 6791, 14, 9060, 62, 36948, 13, 19875, 6, 1600, 4277, 11639, 10178, 62, 5235, 1676, 70, 14, 83, 6791, 14, 9060, 62, 36948, 13, 19875, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 9060, 33383, 39, 54, 3256, 1037, 2625, 464, 2939, 5485, 357, 17015, 11, 9647, 737, 15161, 11639, 7, 11645, 11, 17759, 33047, 1600, 4277, 11639, 7, 11645, 11, 17759, 8, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 22915, 43055, 3256, 1037, 2625, 464, 5072, 8619, 13, 15161, 25, 705, 19571, 22915, 82, 6, 1600, 4277, 28, 4458, 14, 22915, 82, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 17618, 5189, 35392, 82, 3256, 1037, 2625, 464, 1271, 286, 3925, 13, 15161, 25, 939, 1600, 2099, 28, 600, 11, 4277, 28, 2167, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 5715, 2514, 22203, 2964, 65, 1799, 35, 713, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 2625, 464, 12867, 284, 7716, 257, 2163, 11, 379, 1123, 1241, 13, 15161, 25, 705, 90, 15, 25, 352, 11, 352, 25, 352, 11, 362, 25, 352, 11, 513, 25, 352, 11, 604, 25, 352, 11, 642, 25, 352, 92, 6, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 11639, 90, 15, 25, 352, 11, 352, 25, 352, 11, 362, 25, 352, 11, 513, 25, 352, 11, 604, 25, 352, 11, 642, 25, 352, 92, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 1676, 16864, 5189, 34184, 1187, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 11639, 464, 12867, 284, 7716, 257, 6937, 11, 618, 257, 7885, 714, 307, 973, 13, 15161, 25, 657, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 28, 22468, 11, 4277, 28, 15, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 9979, 415, 12443, 341, 48944, 8053, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 2625, 464, 10007, 284, 779, 618, 4441, 38491, 25, 685, 1084, 43879, 11, 3509, 43879, 11, 949, 5317, 11, 3509, 5317, 11, 9647, 11, 6001, 4083, 15161, 25, 44438, 12, 16, 11, 352, 11, 657, 11, 14280, 11, 17759, 11, 17759, 49946, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 11639, 58, 12, 16, 11, 352, 11, 657, 11, 14280, 11, 17759, 11, 17759, 60, 11537, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 17618, 5189, 8645, 602, 3256, 1037, 2625, 464, 1271, 286, 10439, 284, 1057, 13, 15161, 25, 3933, 1600, 2099, 28, 600, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 2624, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 6551, 1890, 15057, 5189, 45, 4147, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 2625, 25553, 6017, 3381, 27111, 284, 262, 1271, 286, 13760, 13, 15161, 25, 657, 13, 8298, 1600, 2099, 28, 22468, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 15, 13, 8298, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 17618, 5189, 51, 5138, 34363, 1187, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 2625, 464, 1271, 286, 6809, 287, 6356, 18130, 13, 15161, 25, 362, 1600, 2099, 28, 600, 11, 4277, 28, 17, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 76, 7094, 2964, 65, 1799, 3256, 1037, 2625, 464, 12867, 284, 4517, 378, 257, 1200, 13, 15161, 25, 657, 13, 16, 1600, 2099, 28, 22468, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 28, 15, 13, 16, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 1676, 16864, 5189, 3791, 35392, 82, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 2625, 464, 9823, 286, 15456, 18616, 3925, 583, 5270, 13, 15161, 25, 657, 13, 16, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 28, 22468, 11, 4277, 28, 15, 13, 16, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 47033, 15057, 5189, 17140, 276, 12443, 341, 14824, 874, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1037, 2625, 464, 5415, 1271, 611, 6825, 6282, 9867, 13, 15161, 25, 8576, 1600, 2099, 28, 600, 11, 4277, 28, 12825, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 438, 17618, 5189, 44357, 47, 3468, 3256, 1037, 2625, 464, 1271, 286, 7560, 3047, 14729, 11, 583, 36835, 13, 15161, 25, 13454, 1600, 2099, 28, 600, 11, 4277, 28, 14198, 8, 198, 220, 220, 220, 26498, 796, 30751, 13, 29572, 62, 22046, 3419, 628, 220, 220, 220, 2939, 33383, 39, 54, 796, 6468, 13, 18250, 1691, 62, 18206, 7, 22046, 13, 9060, 33383, 39, 54, 8, 198, 220, 220, 220, 1241, 2514, 22203, 2964, 65, 1799, 35, 713, 796, 6468, 13, 18250, 1691, 62, 18206, 7, 22046, 13, 5715, 2514, 22203, 2964, 65, 1799, 35, 713, 8, 198, 220, 220, 220, 6937, 12443, 341, 48944, 8053, 796, 6468, 13, 18250, 1691, 62, 18206, 7, 22046, 13, 9979, 415, 12443, 341, 48944, 8053, 8, 198, 220, 220, 220, 1388, 7, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 12102, 341, 47, 3468, 43055, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 19795, 20288, 8979, 6978, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2939, 33383, 39, 54, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 22915, 43055, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 17618, 5189, 35392, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1241, 2514, 22203, 2964, 65, 1799, 35, 713, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 1676, 16864, 5189, 34184, 1187, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6937, 12443, 341, 48944, 8053, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 17618, 5189, 8645, 602, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 6551, 1890, 15057, 5189, 45, 4147, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 17618, 5189, 51, 5138, 34363, 1187, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 76, 7094, 2964, 65, 1799, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 1676, 16864, 5189, 3791, 35392, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 47033, 15057, 5189, 17140, 276, 12443, 341, 14824, 874, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26498, 13, 17618, 5189, 44357, 47, 3468, 198, 220, 220, 220, 1267 ]
2.576094
1,531
import sys from textwrap import indent as __indent_text import click CONTEXT_SETTINGS = {'help_option_names': ['-h', '--help']} UNKNOWN_OPTIONS = {'help_option_names': [], 'ignore_unknown_options': True} DEFAULT_INDENT = 4
[ 11748, 25064, 198, 6738, 2420, 37150, 1330, 33793, 355, 11593, 521, 298, 62, 5239, 198, 198, 11748, 3904, 198, 198, 10943, 32541, 62, 28480, 51, 20754, 796, 1391, 6, 16794, 62, 18076, 62, 14933, 10354, 685, 29001, 71, 3256, 705, 438, 16794, 20520, 92, 198, 4944, 44706, 62, 3185, 51, 11053, 796, 1391, 6, 16794, 62, 18076, 62, 14933, 10354, 685, 4357, 705, 46430, 62, 34680, 62, 25811, 10354, 6407, 92, 198, 7206, 38865, 62, 12115, 3525, 796, 604, 628, 628, 628, 628 ]
2.795181
83
# ------------------------------------------------------------------ # Warp Sequencer # (C) 2020 Michael DeHaan <[email protected]> & contributors # Apache2 Licensed # ------------------------------------------------------------------ # uses the code in smart.py or literal.py to evaluate a symbol that # might be supported by either of those other classes. Also processes # any mod expressions after those symbols. Used in clip evaluation. from ..api.exceptions import * from ..model.note import Note, NOTES, EQUIVALENCE from ..model.chord import Chord, CHORD_TYPES from .mod import ModExpression import functools import traceback import re import time NOTE_SHORTCUT_REGEX = re.compile("([A-Za-z#]+)([0-9]*)") CHORD_SYMBOLS = dict( I = [ 1, 'major' ], II = [ 2, 'major' ], III = [ 3, 'major' ], IV = [ 4, 'major' ], V = [ 5, 'major' ], VI = [ 6, 'major' ], VII = [ 7, 'major' ], i = [ 1, 'minor' ], ii = [ 2, 'minor' ], iii = [ 3, 'minor' ], iv = [ 4, 'minor' ], v = [ 5, 'minor' ], vi = [ 6, 'minor' ], vii = [ 7, 'minor' ], ) CHORD_KEYS = CHORD_SYMBOLS.keys()
[ 2, 16529, 438, 198, 2, 31382, 24604, 12137, 198, 2, 357, 34, 8, 12131, 3899, 1024, 23303, 272, 1279, 76, 40302, 31, 76, 488, 3609, 35209, 3099, 272, 13, 3262, 29, 1222, 20420, 198, 2, 24843, 17, 49962, 198, 2, 16529, 438, 198, 198, 2, 3544, 262, 2438, 287, 4451, 13, 9078, 393, 18875, 13, 9078, 284, 13446, 257, 6194, 326, 198, 2, 1244, 307, 4855, 416, 2035, 286, 883, 584, 6097, 13, 4418, 7767, 198, 2, 597, 953, 14700, 706, 883, 14354, 13, 220, 16718, 287, 10651, 12660, 13, 198, 198, 6738, 11485, 15042, 13, 1069, 11755, 1330, 1635, 198, 6738, 11485, 19849, 13, 11295, 1330, 5740, 11, 5626, 1546, 11, 46886, 3824, 1847, 18310, 198, 6738, 11485, 19849, 13, 354, 585, 1330, 609, 585, 11, 5870, 12532, 62, 9936, 47, 1546, 198, 6738, 764, 4666, 1330, 3401, 16870, 2234, 198, 198, 11748, 1257, 310, 10141, 198, 11748, 12854, 1891, 198, 11748, 302, 198, 11748, 640, 198, 198, 16580, 62, 9693, 1581, 4825, 3843, 62, 31553, 6369, 796, 302, 13, 5589, 576, 7203, 26933, 32, 12, 57, 64, 12, 89, 2, 48688, 5769, 58, 15, 12, 24, 60, 28104, 4943, 198, 198, 3398, 12532, 62, 23060, 10744, 3535, 50, 796, 8633, 7, 198, 220, 220, 314, 220, 220, 796, 685, 352, 11, 705, 22478, 6, 16589, 198, 220, 220, 2873, 220, 796, 685, 362, 11, 705, 22478, 6, 16589, 198, 220, 220, 6711, 796, 685, 513, 11, 705, 22478, 6, 16589, 198, 220, 220, 8363, 220, 796, 685, 604, 11, 705, 22478, 6, 16589, 198, 220, 220, 569, 220, 220, 796, 685, 642, 11, 705, 22478, 6, 16589, 198, 220, 220, 13889, 220, 796, 685, 718, 11, 705, 22478, 6, 16589, 198, 220, 220, 19691, 796, 685, 767, 11, 705, 22478, 6, 16589, 198, 220, 220, 1312, 220, 220, 796, 685, 352, 11, 705, 1084, 273, 6, 16589, 198, 220, 220, 21065, 220, 796, 685, 362, 11, 705, 1084, 273, 6, 16589, 198, 220, 220, 46955, 796, 685, 513, 11, 705, 1084, 273, 6, 16589, 198, 220, 220, 21628, 220, 796, 685, 604, 11, 705, 1084, 273, 6, 16589, 198, 220, 220, 410, 220, 220, 796, 685, 642, 11, 705, 1084, 273, 6, 16589, 198, 220, 220, 25357, 220, 796, 685, 718, 11, 705, 1084, 273, 6, 16589, 198, 220, 220, 410, 4178, 796, 685, 767, 11, 705, 1084, 273, 6, 16589, 198, 8, 198, 198, 3398, 12532, 62, 7336, 16309, 796, 5870, 12532, 62, 23060, 10744, 3535, 50, 13, 13083, 3419, 628 ]
2.741546
414
import logging from typing import Literal import arrow import discord from discord.ext import commands from naotimes.bot import naoTimesBot from naotimes.context import naoTimesContext from naotimes.converters import StealedEmote IconLiteral = Literal[ "mfa_none", "mfa_low", "mfa_medium", "mfa_high", "mfa_extreme", "boost", "s_ol", "s_off", "s_idle", "s_dnd", ]
[ 11748, 18931, 198, 6738, 19720, 1330, 25659, 1691, 198, 198, 11748, 15452, 198, 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 198, 6738, 12385, 313, 999, 13, 13645, 1330, 299, 5488, 28595, 20630, 198, 6738, 12385, 313, 999, 13, 22866, 1330, 299, 5488, 28595, 21947, 198, 6738, 12385, 313, 999, 13, 1102, 332, 1010, 1330, 47242, 276, 10161, 1258, 628, 198, 198, 19578, 43, 270, 1691, 796, 25659, 1691, 58, 198, 220, 220, 220, 366, 76, 13331, 62, 23108, 1600, 198, 220, 220, 220, 366, 76, 13331, 62, 9319, 1600, 198, 220, 220, 220, 366, 76, 13331, 62, 24132, 1600, 198, 220, 220, 220, 366, 76, 13331, 62, 8929, 1600, 198, 220, 220, 220, 366, 76, 13331, 62, 29896, 1600, 198, 220, 220, 220, 366, 39521, 1600, 198, 220, 220, 220, 366, 82, 62, 349, 1600, 198, 220, 220, 220, 366, 82, 62, 2364, 1600, 198, 220, 220, 220, 366, 82, 62, 312, 293, 1600, 198, 220, 220, 220, 366, 82, 62, 67, 358, 1600, 198, 60, 628, 628 ]
2.409357
171
import os import importlib import pbx_gs_python_utils # needed for dependency import from osbot_aws.Globals import Globals from pbx_gs_python_utils.utils.Files import Files from osbot_aws.tmp_utils.Temp_Files import Temp_Files from osbot_aws.apis.Lambda import Lambda from osbot_aws.apis.test_helpers.Temp_Aws_Roles import Temp_Aws_Roles
[ 11748, 28686, 198, 11748, 1330, 8019, 198, 198, 11748, 279, 65, 87, 62, 14542, 62, 29412, 62, 26791, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 2622, 329, 20203, 1330, 198, 6738, 28686, 13645, 62, 8356, 13, 9861, 672, 874, 1330, 40713, 874, 198, 6738, 279, 65, 87, 62, 14542, 62, 29412, 62, 26791, 13, 26791, 13, 25876, 1330, 13283, 198, 198, 6738, 28686, 13645, 62, 8356, 13, 22065, 62, 26791, 13, 30782, 62, 25876, 1330, 24189, 62, 25876, 198, 6738, 28686, 13645, 62, 8356, 13, 499, 271, 13, 43, 4131, 6814, 1330, 21114, 6814, 198, 6738, 28686, 13645, 62, 8356, 13, 499, 271, 13, 9288, 62, 16794, 364, 13, 30782, 62, 32, 18504, 62, 49, 4316, 1330, 24189, 62, 32, 18504, 62, 49, 4316, 628, 198 ]
2.283237
173
from dji_asdk_to_python.utils.message_builder import MessageBuilder from dji_asdk_to_python.errors import DJIError from dji_asdk_to_python.utils.shared import checkParameters from dji_asdk_to_python.utils.socket_utils import SocketUtils
[ 6738, 288, 7285, 62, 292, 34388, 62, 1462, 62, 29412, 13, 26791, 13, 20500, 62, 38272, 1330, 16000, 32875, 198, 6738, 288, 7285, 62, 292, 34388, 62, 1462, 62, 29412, 13, 48277, 1330, 13004, 40, 12331, 198, 6738, 288, 7285, 62, 292, 34388, 62, 1462, 62, 29412, 13, 26791, 13, 28710, 1330, 2198, 48944, 198, 6738, 288, 7285, 62, 292, 34388, 62, 1462, 62, 29412, 13, 26791, 13, 44971, 62, 26791, 1330, 47068, 18274, 4487, 628 ]
3.131579
76
# streamlit run pydantic_streamlit_input.py import streamlit as st from pydantic import BaseModel from typing import List, Dict import streamlit_pydantic as sp from pydantic import BaseModel, Field, HttpUrl from enum import Enum st.title("Use of pydantic for complex inputs") data = sp.pydantic_input(key="my_form", model=ExampleModel) if data: st.write(data)
[ 2, 4269, 18250, 1057, 279, 5173, 5109, 62, 5532, 18250, 62, 15414, 13, 9078, 198, 198, 11748, 4269, 18250, 355, 336, 198, 6738, 279, 5173, 5109, 1330, 7308, 17633, 198, 6738, 19720, 1330, 7343, 11, 360, 713, 198, 11748, 4269, 18250, 62, 79, 5173, 5109, 355, 599, 198, 6738, 279, 5173, 5109, 1330, 7308, 17633, 11, 7663, 11, 367, 29281, 28165, 198, 6738, 33829, 1330, 2039, 388, 628, 628, 198, 198, 301, 13, 7839, 7203, 11041, 286, 279, 5173, 5109, 329, 3716, 17311, 4943, 198, 7890, 796, 599, 13, 79, 5173, 5109, 62, 15414, 7, 2539, 2625, 1820, 62, 687, 1600, 2746, 28, 16281, 17633, 8, 198, 361, 1366, 25, 198, 220, 220, 220, 336, 13, 13564, 7, 7890, 8, 198 ]
3.057851
121
# Django settings for openlets project. import os # Environment path should match settings/<module name> ENVIRONMENT = os.environ.get('OPENLETS_ENV', 'dev') if ENVIRONMENT == 'dev': from .dev import * elif ENVIRONMENT == 'stage': from .stage import * elif ENVIRONMENT == 'prod': from .prod import * else: raise ImportError("Unknown environment: %s" % ENVIRONMENT) # Absolute filesystem path to the directory that will hold user-uploaded files. # Example: "/home/media/media.lawrence.com/media/" MEDIA_ROOT = '' # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash. # Examples: "http://media.lawrence.com/media/", "http://example.com/media/" MEDIA_URL = '/media/' # Absolute path to the directory static files should be collected to. # Don't put anything in this directory yourself; store your static files # in apps' "static/" subdirectories and in STATICFILES_DIRS. # Example: "/home/media/media.lawrence.com/static/" STATIC_ROOT = os.path.join(PROJECT_PATH, 'www_root') # URL prefix for static files. # Example: "http://media.lawrence.com/static/" STATIC_URL = '/m/' # URL prefix for admin static files -- CSS, JavaScript and images. # Make sure to use a trailing slash. # Examples: "http://foo.com/static/admin/", "/static/admin/". ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/' # Additional locations of static files STATICFILES_DIRS = ( ) # List of finder classes that know how to find static files in # various locations. STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', ) # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', ) ROOT_URLCONF = 'openlets.urls' TEMPLATE_DIRS = ( os.path.join(PROJECT_PATH, "openletsweb/templates"), ) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.admindocs', 'django.contrib.markup', 'openlets.core', 'openlets.openletsweb' ) # Default post-login url LOGIN_REDIRECT_URL = '/home' # User Profile class AUTH_PROFILE_MODULE = 'core.Person'
[ 2, 37770, 6460, 329, 1280, 5289, 1628, 13, 198, 198, 11748, 28686, 198, 198, 2, 9344, 3108, 815, 2872, 6460, 14, 27, 21412, 1438, 29, 198, 1677, 53, 4663, 1340, 10979, 796, 28686, 13, 268, 2268, 13, 1136, 10786, 3185, 1677, 2538, 4694, 62, 1677, 53, 3256, 705, 7959, 11537, 198, 361, 12964, 53, 4663, 1340, 10979, 6624, 705, 7959, 10354, 198, 197, 6738, 764, 7959, 1330, 1635, 198, 417, 361, 12964, 53, 4663, 1340, 10979, 6624, 705, 14247, 10354, 198, 197, 6738, 764, 14247, 1330, 1635, 198, 417, 361, 12964, 53, 4663, 1340, 10979, 6624, 705, 1676, 67, 10354, 198, 197, 6738, 764, 1676, 67, 1330, 1635, 198, 17772, 25, 198, 197, 40225, 17267, 12331, 7203, 20035, 2858, 25, 4064, 82, 1, 4064, 12964, 53, 4663, 1340, 10979, 8, 628, 198, 198, 2, 36532, 29905, 3108, 284, 262, 8619, 326, 481, 1745, 2836, 12, 25850, 276, 3696, 13, 198, 2, 17934, 25, 12813, 11195, 14, 11431, 14, 11431, 13, 6270, 6784, 13, 785, 14, 11431, 30487, 198, 30733, 3539, 62, 13252, 2394, 796, 10148, 220, 198, 198, 2, 10289, 326, 17105, 262, 2056, 4983, 422, 26112, 3539, 62, 13252, 2394, 13, 6889, 1654, 284, 779, 257, 198, 2, 25462, 24632, 13, 198, 2, 21066, 25, 366, 4023, 1378, 11431, 13, 6270, 6784, 13, 785, 14, 11431, 14, 1600, 366, 4023, 1378, 20688, 13, 785, 14, 11431, 30487, 198, 30733, 3539, 62, 21886, 796, 31051, 11431, 14, 6, 198, 198, 2, 36532, 3108, 284, 262, 8619, 9037, 3696, 815, 307, 7723, 284, 13, 198, 2, 2094, 470, 1234, 1997, 287, 428, 8619, 3511, 26, 3650, 534, 9037, 3696, 198, 2, 287, 6725, 6, 366, 12708, 30487, 850, 12942, 1749, 290, 287, 15486, 2149, 46700, 1546, 62, 34720, 50, 13, 198, 2, 17934, 25, 12813, 11195, 14, 11431, 14, 11431, 13, 6270, 6784, 13, 785, 14, 12708, 30487, 198, 35744, 2149, 62, 13252, 2394, 796, 28686, 13, 6978, 13, 22179, 7, 31190, 23680, 62, 34219, 11, 705, 2503, 62, 15763, 11537, 198, 198, 2, 10289, 21231, 329, 9037, 3696, 13, 198, 2, 17934, 25, 366, 4023, 1378, 11431, 13, 6270, 6784, 13, 785, 14, 12708, 30487, 198, 35744, 2149, 62, 21886, 796, 31051, 76, 14, 6, 198, 198, 2, 10289, 21231, 329, 13169, 9037, 3696, 1377, 17391, 11, 11933, 290, 4263, 13, 198, 2, 6889, 1654, 284, 779, 257, 25462, 24632, 13, 198, 2, 21066, 25, 366, 4023, 1378, 21943, 13, 785, 14, 12708, 14, 28482, 14, 1600, 12813, 12708, 14, 28482, 14, 1911, 198, 2885, 23678, 62, 30733, 3539, 62, 47, 31688, 10426, 796, 15486, 2149, 62, 21886, 1343, 705, 28482, 14, 6, 198, 198, 2, 15891, 7064, 286, 9037, 3696, 198, 35744, 2149, 46700, 1546, 62, 34720, 50, 796, 357, 198, 8, 198, 198, 2, 7343, 286, 1064, 263, 6097, 326, 760, 703, 284, 1064, 9037, 3696, 287, 198, 2, 2972, 7064, 13, 198, 35744, 2149, 46700, 1546, 62, 37, 12115, 4877, 796, 357, 198, 197, 1549, 73, 14208, 13, 3642, 822, 13, 12708, 16624, 13, 19796, 364, 13, 8979, 11964, 37, 5540, 3256, 198, 197, 1549, 73, 14208, 13, 3642, 822, 13, 12708, 16624, 13, 19796, 364, 13, 4677, 13470, 1749, 37, 5540, 3256, 198, 8, 198, 198, 2, 7343, 286, 869, 2977, 326, 760, 703, 284, 1330, 24019, 422, 2972, 4237, 13, 198, 51, 3620, 6489, 6158, 62, 35613, 4877, 796, 357, 198, 197, 1549, 73, 14208, 13, 28243, 13, 2220, 364, 13, 16624, 6781, 13, 17401, 3256, 198, 197, 1549, 73, 14208, 13, 28243, 13, 2220, 364, 13, 1324, 62, 12942, 1749, 13, 17401, 3256, 198, 8, 198, 198, 44, 2389, 35, 2538, 33746, 62, 31631, 1546, 796, 357, 198, 197, 1549, 73, 14208, 13, 27171, 1574, 13, 11321, 13, 17227, 34621, 1574, 3256, 198, 197, 1549, 73, 14208, 13, 3642, 822, 13, 82, 6202, 13, 27171, 1574, 13, 36044, 34621, 1574, 3256, 198, 197, 1549, 73, 14208, 13, 27171, 1574, 13, 6359, 41871, 13, 34, 27891, 69, 7680, 34621, 1574, 3256, 198, 197, 1549, 73, 14208, 13, 3642, 822, 13, 18439, 13, 27171, 1574, 13, 47649, 3299, 34621, 1574, 3256, 198, 197, 1549, 73, 14208, 13, 3642, 822, 13, 37348, 1095, 13, 27171, 1574, 13, 12837, 34621, 1574, 3256, 198, 8, 198, 198, 13252, 2394, 62, 4261, 5639, 1340, 37, 796, 705, 9654, 5289, 13, 6371, 82, 6, 198, 198, 51, 3620, 6489, 6158, 62, 34720, 50, 796, 357, 198, 197, 418, 13, 6978, 13, 22179, 7, 31190, 23680, 62, 34219, 11, 366, 9654, 5289, 12384, 14, 11498, 17041, 12340, 198, 8, 198, 198, 38604, 7036, 1961, 62, 2969, 3705, 796, 357, 198, 197, 1549, 73, 14208, 13, 3642, 822, 13, 18439, 3256, 198, 197, 1549, 73, 14208, 13, 3642, 822, 13, 11299, 19199, 3256, 198, 197, 1549, 73, 14208, 13, 3642, 822, 13, 82, 6202, 3256, 198, 197, 1549, 73, 14208, 13, 3642, 822, 13, 49315, 3256, 198, 197, 1549, 73, 14208, 13, 3642, 822, 13, 37348, 1095, 3256, 198, 197, 1549, 73, 14208, 13, 3642, 822, 13, 12708, 16624, 3256, 198, 197, 1549, 73, 14208, 13, 3642, 822, 13, 28482, 3256, 198, 197, 1549, 73, 14208, 13, 3642, 822, 13, 324, 10155, 420, 82, 3256, 198, 197, 1549, 73, 14208, 13, 3642, 822, 13, 4102, 929, 3256, 198, 197, 6, 9654, 5289, 13, 7295, 3256, 198, 197, 6, 9654, 5289, 13, 9654, 5289, 12384, 6, 198, 8, 198, 198, 2, 15161, 1281, 12, 38235, 19016, 198, 25294, 1268, 62, 22083, 40, 23988, 62, 21886, 796, 31051, 11195, 6, 198, 2, 11787, 13118, 1398, 198, 32, 24318, 62, 31190, 25664, 62, 33365, 24212, 796, 705, 7295, 13, 15439, 6, 198 ]
2.848812
926
"""The lightly.models package provides model implementations. *Note that the high-level building blocks will be deprecated with lightly version 1.2.0. Instead, use low-level building blocks to build the models yourself. Have a look at the benchmark code to see a reference implementation:* `lightly benchmarks <https://github.com/lightly-ai/lightly/tree/master/docs/source/getting_started/benchmarks>`_ The package contains an implementation of the commonly used ResNet and adaptations of the architecture which make self-supervised learning simpler. The package also hosts the Lightly model zoo - a list of downloadable ResNet checkpoints. """ # Copyright (c) 2020. Lightly AG and its affiliates. # All Rights Reserved from lightly.models.resnet import ResNetGenerator from lightly.models.barlowtwins import BarlowTwins from lightly.models.simclr import SimCLR from lightly.models.simsiam import SimSiam from lightly.models.byol import BYOL from lightly.models.moco import MoCo from lightly.models.nnclr import NNCLR from lightly.models.zoo import ZOO from lightly.models.zoo import checkpoints from lightly.models import utils
[ 37811, 464, 15376, 13, 27530, 5301, 3769, 2746, 25504, 13, 198, 198, 9, 6425, 326, 262, 1029, 12, 5715, 2615, 7021, 481, 307, 39224, 351, 220, 198, 30945, 2196, 352, 13, 17, 13, 15, 13, 5455, 11, 779, 1877, 12, 5715, 2615, 7021, 284, 1382, 262, 198, 27530, 3511, 13, 220, 198, 11980, 257, 804, 379, 262, 18335, 2438, 284, 766, 257, 4941, 7822, 25, 9, 198, 63, 30945, 31747, 1279, 5450, 1378, 12567, 13, 785, 14, 30945, 12, 1872, 14, 30945, 14, 21048, 14, 9866, 14, 31628, 14, 10459, 14, 37210, 62, 46981, 14, 26968, 14306, 29, 63, 62, 198, 198, 464, 5301, 4909, 281, 7822, 286, 262, 8811, 973, 1874, 7934, 290, 198, 42552, 602, 286, 262, 10959, 543, 787, 2116, 12, 16668, 16149, 4673, 18599, 13, 198, 198, 464, 5301, 635, 11453, 262, 4401, 306, 2746, 26626, 532, 257, 1351, 286, 41496, 1874, 7934, 198, 9122, 13033, 13, 198, 198, 37811, 198, 198, 2, 15069, 357, 66, 8, 12131, 13, 4401, 306, 13077, 290, 663, 29116, 13, 198, 2, 1439, 6923, 33876, 198, 198, 6738, 15376, 13, 27530, 13, 411, 3262, 1330, 1874, 7934, 8645, 1352, 198, 6738, 15376, 13, 27530, 13, 5657, 9319, 4246, 1040, 1330, 2409, 9319, 5080, 1040, 198, 6738, 15376, 13, 27530, 13, 14323, 565, 81, 1330, 3184, 5097, 49, 198, 6738, 15376, 13, 27530, 13, 82, 12078, 1789, 1330, 3184, 50, 1789, 198, 6738, 15376, 13, 27530, 13, 1525, 349, 1330, 11050, 3535, 198, 6738, 15376, 13, 27530, 13, 76, 25634, 1330, 4270, 7222, 198, 6738, 15376, 13, 27530, 13, 20471, 565, 81, 1330, 399, 45, 5097, 49, 198, 6738, 15376, 13, 27530, 13, 89, 2238, 1330, 1168, 6684, 198, 6738, 15376, 13, 27530, 13, 89, 2238, 1330, 36628, 198, 198, 6738, 15376, 13, 27530, 1330, 3384, 4487 ]
3.841216
296
import os def server_lcd(cmd, data): """Changes the local directory Usage: lcd /dir """ pass
[ 11748, 28686, 198, 198, 4299, 4382, 62, 75, 10210, 7, 28758, 11, 1366, 2599, 198, 220, 220, 220, 37227, 29238, 262, 1957, 8619, 628, 220, 220, 220, 29566, 25, 300, 10210, 1220, 15908, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1208, 628, 628 ]
2.533333
45
from typing import Dict class ImagePosition: """ The positions and rotations of the avatar and object for an image. Positions are stored as (x, y, z) dictionaries, for example: `{"x": 0, "y": 0, "z": 0}`. Rotations are stored as (x, y, z, w) dictionaries, for example: `{"x": 0, "y": 0, "z": 0, "w": 1}`. """ def __init__(self, avatar_position: Dict[str, float], camera_rotation: Dict[str, float], object_position: Dict[str, float], object_rotation: Dict[str, float]): """ :param avatar_position: The position of the avatar. :param camera_rotation: The rotation of the avatar. :param object_position: The position of the object. :param object_rotation: The rotation of the object. """ """:field The position of the avatar. """ self.avatar_position: Dict[str, float] = avatar_position """:field The rotation of the avatar. """ self.camera_rotation: Dict[str, float] = camera_rotation """:field The position of the object. """ self.object_position: Dict[str, float] = object_position """:field The rotation of the object. """ self.object_rotation: Dict[str, float] = object_rotation
[ 6738, 19720, 1330, 360, 713, 628, 198, 4871, 7412, 26545, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 383, 6116, 290, 5724, 602, 286, 262, 30919, 290, 2134, 329, 281, 2939, 13, 628, 220, 220, 220, 18574, 1756, 389, 8574, 355, 357, 87, 11, 331, 11, 1976, 8, 48589, 3166, 11, 329, 1672, 25, 4600, 4895, 87, 1298, 657, 11, 366, 88, 1298, 657, 11, 366, 89, 1298, 657, 92, 44646, 198, 220, 220, 220, 18481, 602, 389, 8574, 355, 357, 87, 11, 331, 11, 1976, 11, 266, 8, 48589, 3166, 11, 329, 1672, 25, 4600, 4895, 87, 1298, 657, 11, 366, 88, 1298, 657, 11, 366, 89, 1298, 657, 11, 366, 86, 1298, 352, 92, 44646, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 30919, 62, 9150, 25, 360, 713, 58, 2536, 11, 12178, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4676, 62, 10599, 341, 25, 360, 713, 58, 2536, 11, 12178, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 9150, 25, 360, 713, 58, 2536, 11, 12178, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 10599, 341, 25, 360, 713, 58, 2536, 11, 12178, 60, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 30919, 62, 9150, 25, 383, 2292, 286, 262, 30919, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 4676, 62, 10599, 341, 25, 383, 13179, 286, 262, 30919, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 2134, 62, 9150, 25, 383, 2292, 286, 262, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 2134, 62, 10599, 341, 25, 383, 13179, 286, 262, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 13538, 1298, 3245, 198, 220, 220, 220, 220, 220, 220, 220, 383, 2292, 286, 262, 30919, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 615, 9459, 62, 9150, 25, 360, 713, 58, 2536, 11, 12178, 60, 796, 30919, 62, 9150, 198, 220, 220, 220, 220, 220, 220, 220, 13538, 1298, 3245, 198, 220, 220, 220, 220, 220, 220, 220, 383, 13179, 286, 262, 30919, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 25695, 62, 10599, 341, 25, 360, 713, 58, 2536, 11, 12178, 60, 796, 4676, 62, 10599, 341, 198, 220, 220, 220, 220, 220, 220, 220, 13538, 1298, 3245, 198, 220, 220, 220, 220, 220, 220, 220, 383, 2292, 286, 262, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 15252, 62, 9150, 25, 360, 713, 58, 2536, 11, 12178, 60, 796, 2134, 62, 9150, 198, 220, 220, 220, 220, 220, 220, 220, 13538, 1298, 3245, 198, 220, 220, 220, 220, 220, 220, 220, 383, 13179, 286, 262, 2134, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 15252, 62, 10599, 341, 25, 360, 713, 58, 2536, 11, 12178, 60, 796, 2134, 62, 10599, 341, 198 ]
2.325217
575
import TestKit from UnderGUI import * from UnderGUI._Private import * from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * ################################################################################ WIDTH = 800 HEIGHT = 600 g = Global() ################################################################################ ################################################################################ if __name__ == "__main__": glutInit() glutInitDisplayMode(GLUT_RGBA) glutInitWindowSize(WIDTH, HEIGHT) x = int((glutGet(GLUT_SCREEN_WIDTH) - WIDTH) / 2) y = int((glutGet(GLUT_SCREEN_HEIGHT) - HEIGHT) / 2) glutInitWindowPosition(x, y) window = glutCreateWindow(b"OpenGL Window") glutDisplayFunc(display) glutIdleFunc(do_on_idle) glutMouseFunc(do_on_mouse) glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_CONTINUE_EXECUTION) create() glutMainLoop() destroy()
[ 11748, 6208, 20827, 198, 198, 6738, 4698, 40156, 1330, 1635, 198, 6738, 4698, 40156, 13557, 29067, 1330, 1635, 198, 198, 6738, 30672, 13, 8763, 1330, 1635, 198, 6738, 30672, 13, 8763, 52, 1330, 1635, 198, 6738, 30672, 13, 8763, 3843, 1330, 1635, 198, 198, 29113, 29113, 14468, 198, 198, 54, 2389, 4221, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 10460, 198, 13909, 9947, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 10053, 198, 70, 796, 8060, 3419, 198, 198, 29113, 29113, 14468, 628, 220, 220, 220, 220, 198, 29113, 29113, 14468, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 25276, 31768, 3419, 198, 220, 220, 220, 25276, 31768, 23114, 19076, 7, 8763, 3843, 62, 48192, 4339, 8, 198, 220, 220, 220, 25276, 31768, 27703, 10699, 7, 54, 2389, 4221, 11, 11179, 9947, 8, 628, 220, 220, 220, 2124, 796, 493, 19510, 4743, 315, 3855, 7, 8763, 3843, 62, 6173, 2200, 1677, 62, 54, 2389, 4221, 8, 532, 370, 2389, 4221, 8, 1220, 362, 8, 198, 220, 220, 220, 331, 796, 493, 19510, 4743, 315, 3855, 7, 8763, 3843, 62, 6173, 2200, 1677, 62, 13909, 9947, 8, 532, 11179, 9947, 8, 1220, 362, 8, 628, 220, 220, 220, 25276, 31768, 27703, 26545, 7, 87, 11, 331, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 4324, 796, 25276, 16447, 27703, 7, 65, 1, 11505, 8763, 26580, 4943, 198, 220, 220, 220, 25276, 23114, 37, 19524, 7, 13812, 8, 198, 220, 220, 220, 25276, 7390, 293, 37, 19524, 7, 4598, 62, 261, 62, 312, 293, 8, 220, 198, 220, 220, 220, 25276, 39643, 37, 19524, 7, 4598, 62, 261, 62, 35888, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 25276, 7248, 19722, 7, 8763, 3843, 62, 44710, 62, 1340, 62, 28929, 3913, 62, 32737, 11, 10188, 3843, 62, 44710, 62, 37815, 1268, 8924, 62, 6369, 2943, 35354, 8, 628, 220, 220, 220, 2251, 3419, 198, 220, 220, 220, 25276, 13383, 39516, 3419, 198, 220, 220, 220, 4117, 3419 ]
2.886297
343