content
stringlengths
1
1.04M
input_ids
sequencelengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# -*- coding: utf-8 -*- # space level: 4 """this module is the most importing in thie app. """ from dserver import ServerSocket as server from config import ConfManage as conf if __name__ == "__main__": # would manage conf class hostdata = conf("./conf/base.json") hostdata.setup_logging() server = server() server.standby_server() server.accept_client()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2272, 1241, 25, 604, 198, 37811, 5661, 8265, 318, 262, 749, 33332, 287, 294, 494, 598, 13, 198, 37811, 198, 198, 6738, 288, 15388, 1330, 9652, 39105, 355, 4382, 198, 6738, 4566, 1330, 7326, 5124, 496, 355, 1013, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1303, 561, 6687, 1013, 1398, 198, 220, 220, 220, 2583, 7890, 796, 1013, 7, 1911, 14, 10414, 14, 8692, 13, 17752, 4943, 198, 220, 220, 220, 2583, 7890, 13, 40406, 62, 6404, 2667, 3419, 198, 220, 220, 220, 4382, 796, 4382, 3419, 198, 220, 220, 220, 4382, 13, 1481, 1525, 62, 15388, 3419, 198, 220, 220, 220, 4382, 13, 13635, 62, 16366, 3419, 198 ]
2.87218
133
from . import db # Add your own utility classes and functions here.
[ 6738, 764, 1330, 20613, 628, 198, 198, 2, 3060, 534, 898, 10361, 6097, 290, 5499, 994, 13, 198 ]
3.944444
18
''' Search Controller Module ''' import math from bson.json_util import dumps from flask import current_app from datetime import datetime from app.models.mongodb.posts import Posts from app.models.mongodb.user import User from app.models.mongodb.search_log import SearchLog def v1_search(mongo_cur, keywords, order, user=None, rank_filter=True): ''' Search (๊ฒ€์ƒ‰) Params --------- mongo_cur > ๋ชฝ๊ณ ๋””๋น„ ์ปค๋„ฅ์…˜ Object keywords > ๊ฒ€์ƒ‰ ํ‚ค์›Œ๋“œ skip > Document num skip limit > Document num limit order > sort order Return --------- posts > ํฌ์ŠคํŠธ (list) ''' posts_model = Posts(mongo_cur) TK = current_app.config["TK"] # ํ›„๋ณด๊ตฐ ์„ ์ • keyword_split = keywords.lower().strip().split() keyword_tokens = list(set(TK.get_tk(keywords) + keyword_split)) posts = posts_model.search_posts(keywords, keyword_tokens, current_app.config['INDICATORS']['GET_SC_POST_NUM']) # ๋กœ๊น… ์ž‘์—… search_log_model = SearchLog(mongo_cur) User_model = User(mongo_cur) log_object = {'keyword_split': keyword_split, 'keyword_tokens': keyword_tokens, 'date': datetime.now()} if user: log_object['user_id'] = user['user_id'] User_model.update_list_column_push(user['user_id'], "search_list", log_object) else: log_object['user_id'] = "guest" search_log_model.insert_one(log_object) # ์œ ์‚ฌ๋„ ์ธก์ • set_keyword_tokens = set(keyword_tokens) for post in posts: post['score'] = 0 # ๊ฐ ์˜์—ญ๋ณ„ ๋งค์นญ ์œ ์‚ฌ๋„ ํ‰๊ฐ€ (ํ˜„์žฌ t_index๊ฐ€ ์—†๋Š” ๊ด€๊ณ„๋กœ title_token, token ๋‘๊ฐœ์˜ ์ปฌ๋Ÿผ์œผ๋กœ ์ง„ํ–‰ํ•จ) weight = {'title_token': current_app.config['INDICATORS']['TITLE_WEIGHT'], 'token': current_app.config['INDICATORS']['TOKEN_WEIGHT']} for _type in ['title_token', 'token']: point = weight[_type] set_post_tokens = set(post[_type]) post['score'] += match_score(set_keyword_tokens, set_post_tokens) * point # regex ๋งค์นญ ์ตœ์ข… ์œ ์‚ฌ๋„ ํ‰๊ฐ€ (ํ˜„์žฌ regex_str์ด ์—†๋Š” ๊ด€๊ณ„๋กœ title์„ ๊ธฐ์ค€์œผ๋กœ ํŒ๋‹จ) point = current_app.config['INDICATORS']['REGEX_WEIGHT'] if keywords in post['title']: post['score'] = (post['score'] * point) + 2 # ๋ฐ˜ํ™˜ ์ปฌ๋Ÿผ ์ •๋ฆฌ del post['token'] del post['title_token'] # ์ตœํ•˜์œ„ ๋žญํ‚น ์ œ๊ฑฐ posts.sort(key=lambda t:(-t['score'])) if (rank_filter is True and len(posts) != 0 and posts[0]['score'] != posts[-1]['score'] and posts[-1]['score'] <= current_app.config['INDICATORS']['LOWEST_RANK']): target = get_first_min(posts, 0, len(posts)-1, current_app.config['INDICATORS']['LOWEST_RANK']) posts = posts[:target] # ์ •๋ ฌ ์„ ํƒ if order == 1: posts.sort(key=lambda x:x['date'], reverse=True) return {'posts': dumps(posts[:current_app.config['INDICATORS']['RETURN_NUM']]), 'length': len(posts)} def match_score(set_keyword_tokens, set_post_tokens): ''' ๊ฒ€์ƒ‰ ์œ ์‚ฌ๋„ ํ‰๊ฐ€ ์ˆ˜์‹ Params --------- set_keyword_tokens > ๊ฒ€์ƒ‰ ํ‚ค์›Œ๋“œ ํ† ํฐ set_post_tokens > Post ํ† ํฐ Return --------- ๊ฒฐ๊ณผ ์ ์ˆ˜ (int) ''' mc = len(set_keyword_tokens & set_post_tokens) if len(set_keyword_tokens) != 0: mr = mc / len(set_keyword_tokens) else: mr = mc / 1 return mc * (1 + mr + math.floor(mr)) def get_first_min(data, s, e, target): ''' ์ตœํ•˜์œ„ ํƒ์ง€ (Binary search) Params --------- data > Post_list s > post ์‹œ์ž‘ idx e > post ๋ idx target > ์ตœํ•˜์œ„ ๋žญํฌ ์ ์ˆ˜ Return --------- ์ตœํ•˜์œ„ ๊ฒฐ๊ณผ index (int) ''' if s > e: return None mid = (s + e) // 2 if mid <= 0: return None if (data[mid-1]['score'] > target and data[mid]['score'] <= target): return mid elif (data[mid-1]['score'] > target and data[mid]['score'] > target): return get_first_min(data, mid+1, e, target) else: return get_first_min(data, s, mid-1, target)
[ 7061, 6, 198, 18243, 22741, 19937, 198, 7061, 6, 198, 11748, 10688, 198, 6738, 275, 1559, 13, 17752, 62, 22602, 1330, 45514, 198, 6738, 42903, 1330, 1459, 62, 1324, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 598, 13, 27530, 13, 31059, 375, 65, 13, 24875, 1330, 12043, 198, 6738, 598, 13, 27530, 13, 31059, 375, 65, 13, 7220, 1330, 11787, 198, 6738, 598, 13, 27530, 13, 31059, 375, 65, 13, 12947, 62, 6404, 1330, 11140, 11187, 628, 198, 4299, 410, 16, 62, 12947, 7, 76, 25162, 62, 22019, 11, 26286, 11, 1502, 11, 2836, 28, 14202, 11, 4279, 62, 24455, 28, 17821, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 11140, 357, 166, 110, 222, 168, 225, 231, 8, 628, 220, 220, 220, 2547, 4105, 198, 220, 220, 220, 45337, 198, 220, 220, 220, 285, 25162, 62, 22019, 1875, 31619, 103, 121, 166, 111, 254, 167, 242, 242, 167, 117, 226, 23821, 119, 97, 167, 226, 98, 168, 227, 246, 9515, 198, 220, 220, 220, 26286, 1875, 220, 166, 110, 222, 168, 225, 231, 220, 169, 224, 97, 168, 249, 234, 167, 241, 250, 198, 220, 220, 220, 14267, 1875, 16854, 997, 14267, 198, 220, 220, 220, 4179, 1875, 16854, 997, 4179, 198, 220, 220, 220, 1502, 1875, 3297, 1502, 628, 220, 220, 220, 8229, 198, 220, 220, 220, 45337, 198, 220, 220, 220, 6851, 1875, 220, 169, 237, 105, 168, 232, 97, 169, 232, 116, 357, 4868, 8, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 6851, 62, 19849, 796, 12043, 7, 76, 25162, 62, 22019, 8, 198, 220, 220, 220, 309, 42, 796, 1459, 62, 1324, 13, 11250, 14692, 51, 42, 8973, 628, 220, 220, 220, 1303, 220, 169, 249, 226, 167, 111, 112, 166, 113, 108, 23821, 226, 254, 168, 254, 243, 198, 220, 220, 220, 21179, 62, 35312, 796, 26286, 13, 21037, 22446, 36311, 22446, 35312, 3419, 198, 220, 220, 220, 21179, 62, 83, 482, 641, 796, 1351, 7, 2617, 7, 51, 42, 13, 1136, 62, 30488, 7, 2539, 10879, 8, 1343, 21179, 62, 35312, 4008, 198, 220, 220, 220, 6851, 796, 6851, 62, 19849, 13, 12947, 62, 24875, 7, 2539, 10879, 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, 21179, 62, 83, 482, 641, 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, 1459, 62, 1324, 13, 11250, 17816, 12115, 2149, 1404, 20673, 6, 7131, 6, 18851, 62, 6173, 62, 32782, 62, 41359, 6, 12962, 628, 220, 220, 220, 1303, 31619, 94, 250, 166, 117, 227, 23821, 252, 239, 168, 245, 227, 198, 220, 220, 220, 2989, 62, 6404, 62, 19849, 796, 11140, 11187, 7, 76, 25162, 62, 22019, 8, 198, 220, 220, 220, 11787, 62, 19849, 796, 11787, 7, 76, 25162, 62, 22019, 8, 198, 220, 220, 220, 2604, 62, 15252, 796, 1391, 6, 2539, 4775, 62, 35312, 10354, 21179, 62, 35312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 2539, 4775, 62, 83, 482, 641, 10354, 21179, 62, 83, 482, 641, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 4475, 10354, 4818, 8079, 13, 2197, 3419, 92, 198, 220, 220, 220, 611, 2836, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2604, 62, 15252, 17816, 7220, 62, 312, 20520, 796, 2836, 17816, 7220, 62, 312, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 11787, 62, 19849, 13, 19119, 62, 4868, 62, 28665, 62, 14689, 7, 7220, 17816, 7220, 62, 312, 6, 4357, 366, 12947, 62, 4868, 1600, 2604, 62, 15252, 8, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2604, 62, 15252, 17816, 7220, 62, 312, 20520, 796, 366, 5162, 395, 1, 198, 220, 220, 220, 2989, 62, 6404, 62, 19849, 13, 28463, 62, 505, 7, 6404, 62, 15252, 8, 628, 220, 220, 220, 1303, 23821, 250, 254, 168, 8955, 167, 237, 226, 23821, 116, 94, 168, 254, 243, 198, 220, 220, 220, 900, 62, 2539, 4775, 62, 83, 482, 641, 796, 900, 7, 2539, 4775, 62, 83, 482, 641, 8, 198, 220, 220, 220, 329, 1281, 287, 6851, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1281, 17816, 26675, 20520, 796, 657, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 166, 108, 223, 23821, 246, 223, 168, 245, 255, 167, 111, 226, 31619, 100, 97, 168, 117, 255, 23821, 250, 254, 168, 8955, 167, 237, 226, 220, 169, 237, 231, 166, 108, 222, 357, 169, 246, 226, 168, 252, 105, 256, 62, 9630, 166, 108, 222, 23821, 245, 228, 167, 232, 242, 220, 166, 112, 222, 166, 111, 226, 167, 94, 250, 3670, 62, 30001, 11, 11241, 31619, 239, 238, 166, 108, 250, 35975, 246, 23821, 119, 105, 167, 253, 120, 168, 250, 120, 167, 94, 250, 23821, 100, 226, 169, 244, 231, 47991, 101, 8, 198, 220, 220, 220, 220, 220, 220, 220, 3463, 796, 1391, 6, 7839, 62, 30001, 10354, 1459, 62, 1324, 13, 11250, 17816, 12115, 2149, 1404, 20673, 6, 7131, 6, 49560, 2538, 62, 8845, 9947, 6, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 30001, 10354, 1459, 62, 1324, 13, 11250, 17816, 12115, 2149, 1404, 20673, 6, 7131, 6, 10468, 43959, 62, 8845, 9947, 20520, 92, 198, 220, 220, 220, 220, 220, 220, 220, 329, 4808, 4906, 287, 37250, 7839, 62, 30001, 3256, 705, 30001, 6, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 966, 796, 3463, 29795, 4906, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 900, 62, 7353, 62, 83, 482, 641, 796, 900, 7, 7353, 29795, 4906, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1281, 17816, 26675, 20520, 15853, 2872, 62, 26675, 7, 2617, 62, 2539, 4775, 62, 83, 482, 641, 11, 900, 62, 7353, 62, 83, 482, 641, 8, 1635, 966, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 40364, 31619, 100, 97, 168, 117, 255, 23821, 113, 250, 168, 95, 227, 23821, 250, 254, 168, 8955, 167, 237, 226, 220, 169, 237, 231, 166, 108, 222, 357, 169, 246, 226, 168, 252, 105, 40364, 62, 2536, 35975, 112, 23821, 245, 228, 167, 232, 242, 220, 166, 112, 222, 166, 111, 226, 167, 94, 250, 3670, 35975, 226, 220, 166, 116, 108, 168, 97, 222, 168, 250, 120, 167, 94, 250, 220, 169, 234, 238, 46695, 101, 8, 198, 220, 220, 220, 220, 220, 220, 220, 966, 796, 1459, 62, 1324, 13, 11250, 17816, 12115, 2149, 1404, 20673, 6, 7131, 6, 31553, 6369, 62, 8845, 9947, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 611, 26286, 287, 1281, 17816, 7839, 6, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1281, 17816, 26675, 20520, 796, 357, 7353, 17816, 26675, 20520, 1635, 966, 8, 1343, 362, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 31619, 108, 246, 169, 247, 246, 23821, 119, 105, 167, 253, 120, 23821, 254, 243, 167, 99, 105, 198, 220, 220, 220, 220, 220, 220, 220, 1619, 1281, 17816, 30001, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 1619, 1281, 17816, 7839, 62, 30001, 20520, 628, 220, 220, 220, 1303, 23821, 113, 250, 47991, 246, 168, 250, 226, 31619, 252, 255, 169, 224, 117, 23821, 254, 250, 166, 109, 108, 198, 220, 220, 220, 6851, 13, 30619, 7, 2539, 28, 50033, 256, 25, 32590, 83, 17816, 26675, 20520, 4008, 198, 220, 220, 220, 611, 357, 43027, 62, 24455, 318, 6407, 290, 198, 220, 220, 220, 220, 220, 220, 220, 18896, 7, 24875, 8, 14512, 657, 290, 198, 220, 220, 220, 220, 220, 220, 220, 6851, 58, 15, 7131, 6, 26675, 20520, 14512, 6851, 58, 12, 16, 7131, 6, 26675, 20520, 290, 198, 220, 220, 220, 220, 220, 220, 220, 6851, 58, 12, 16, 7131, 6, 26675, 20520, 19841, 1459, 62, 1324, 13, 11250, 17816, 12115, 2149, 1404, 20673, 6, 7131, 6, 43, 3913, 6465, 62, 49, 15154, 20520, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 2496, 796, 651, 62, 11085, 62, 1084, 7, 24875, 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, 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, 220, 220, 220, 18896, 7, 24875, 13219, 16, 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, 1459, 62, 1324, 13, 11250, 17816, 12115, 2149, 1404, 20673, 6, 7131, 6, 43, 3913, 6465, 62, 49, 15154, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 6851, 796, 6851, 58, 25, 16793, 60, 628, 220, 220, 220, 1303, 23821, 254, 243, 167, 254, 105, 23821, 226, 254, 169, 225, 251, 198, 220, 220, 220, 611, 1502, 6624, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6851, 13, 30619, 7, 2539, 28, 50033, 2124, 25, 87, 17816, 4475, 6, 4357, 9575, 28, 17821, 8, 628, 220, 220, 220, 1441, 1391, 6, 24875, 10354, 45514, 7, 24875, 58, 25, 14421, 62, 1324, 13, 11250, 17816, 12115, 2149, 1404, 20673, 6, 7131, 6, 26087, 27064, 62, 41359, 6, 11907, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 13664, 10354, 18896, 7, 24875, 38165, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 198, 4299, 2872, 62, 26675, 7, 2617, 62, 2539, 4775, 62, 83, 482, 641, 11, 900, 62, 7353, 62, 83, 482, 641, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 220, 166, 110, 222, 168, 225, 231, 23821, 250, 254, 168, 8955, 167, 237, 226, 220, 169, 237, 231, 166, 108, 222, 23821, 230, 246, 168, 233, 251, 628, 220, 220, 220, 2547, 4105, 198, 220, 220, 220, 45337, 198, 220, 220, 220, 900, 62, 2539, 4775, 62, 83, 482, 641, 1875, 220, 166, 110, 222, 168, 225, 231, 220, 169, 224, 97, 168, 249, 234, 167, 241, 250, 220, 169, 228, 254, 169, 223, 108, 198, 220, 220, 220, 900, 62, 7353, 62, 83, 482, 641, 1875, 2947, 220, 169, 228, 254, 169, 223, 108, 628, 220, 220, 220, 8229, 198, 220, 220, 220, 45337, 198, 220, 220, 220, 220, 166, 110, 108, 166, 111, 120, 23821, 254, 238, 168, 230, 246, 357, 600, 8, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 36650, 796, 18896, 7, 2617, 62, 2539, 4775, 62, 83, 482, 641, 1222, 900, 62, 7353, 62, 83, 482, 641, 8, 198, 220, 220, 220, 611, 18896, 7, 2617, 62, 2539, 4775, 62, 83, 482, 641, 8, 14512, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 285, 81, 796, 36650, 1220, 18896, 7, 2617, 62, 2539, 4775, 62, 83, 482, 641, 8, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 285, 81, 796, 36650, 1220, 352, 198, 220, 220, 220, 1441, 36650, 1635, 357, 16, 1343, 285, 81, 1343, 10688, 13, 28300, 7, 43395, 4008, 628, 198, 4299, 651, 62, 11085, 62, 1084, 7, 7890, 11, 264, 11, 304, 11, 2496, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 23821, 113, 250, 47991, 246, 168, 250, 226, 220, 169, 225, 238, 168, 100, 222, 357, 33, 3219, 2989, 8, 628, 220, 220, 220, 2547, 4105, 198, 220, 220, 220, 45337, 198, 220, 220, 220, 1366, 1875, 2947, 62, 4868, 198, 220, 220, 220, 264, 1875, 1281, 23821, 233, 250, 168, 252, 239, 4686, 87, 198, 220, 220, 220, 304, 1875, 1281, 31619, 223, 251, 4686, 87, 198, 220, 220, 220, 2496, 1875, 23821, 113, 250, 47991, 246, 168, 250, 226, 31619, 252, 255, 169, 223, 105, 23821, 254, 238, 168, 230, 246, 628, 220, 220, 220, 8229, 198, 220, 220, 220, 45337, 198, 220, 220, 220, 23821, 113, 250, 47991, 246, 168, 250, 226, 220, 166, 110, 108, 166, 111, 120, 6376, 357, 600, 8, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 611, 264, 1875, 304, 25, 1441, 6045, 198, 220, 220, 220, 3095, 796, 357, 82, 1343, 304, 8, 3373, 362, 198, 220, 220, 220, 611, 3095, 19841, 657, 25, 1441, 6045, 198, 220, 220, 220, 611, 357, 7890, 58, 13602, 12, 16, 7131, 6, 26675, 20520, 1875, 2496, 290, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 58, 13602, 7131, 6, 26675, 20520, 19841, 2496, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 3095, 198, 220, 220, 220, 1288, 361, 357, 7890, 58, 13602, 12, 16, 7131, 6, 26675, 20520, 1875, 2496, 290, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 58, 13602, 7131, 6, 26675, 20520, 1875, 2496, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 651, 62, 11085, 62, 1084, 7, 7890, 11, 3095, 10, 16, 11, 304, 11, 2496, 8, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 651, 62, 11085, 62, 1084, 7, 7890, 11, 264, 11, 3095, 12, 16, 11, 2496, 8 ]
1.780157
2,288
# Copyright 2017 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. from django.conf.urls import url from mgr.samples import views urlpatterns = [ url(r'^samples/$', views.SampleList.as_view()), url(r'^api/vnfmgr/v1/reloadstub/(?P<fileName>[0-9a-zA-Z\-\_\.]+)$', views.reloadstub, name='reloadstub'), url(r'^api/vnfmgr/v1/reg2msb/(?P<msName>[0-9a-zA-Z\-\_]+)$', views.reg2msb, name='reg2msb'), url(r'^(?P<uri>[0-9a-zA-Z\-\_/]+)$', views.stub, name='stub') ]
[ 2, 15069, 2177, 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, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 285, 2164, 13, 82, 12629, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 82, 12629, 32624, 3256, 5009, 13, 36674, 8053, 13, 292, 62, 1177, 3419, 828, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 15042, 14, 85, 77, 38353, 2164, 14, 85, 16, 14, 260, 2220, 301, 549, 29006, 30, 47, 27, 7753, 5376, 36937, 15, 12, 24, 64, 12, 89, 32, 12, 57, 41441, 59, 62, 59, 8183, 28988, 3, 3256, 5009, 13, 260, 2220, 301, 549, 11, 1438, 11639, 260, 2220, 301, 549, 33809, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 15042, 14, 85, 77, 38353, 2164, 14, 85, 16, 14, 2301, 17, 907, 65, 29006, 30, 47, 27, 907, 5376, 36937, 15, 12, 24, 64, 12, 89, 32, 12, 57, 41441, 59, 62, 60, 28988, 3, 3256, 5009, 13, 2301, 17, 907, 65, 11, 1438, 11639, 2301, 17, 907, 65, 33809, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 7, 30, 47, 27, 9900, 36937, 15, 12, 24, 64, 12, 89, 32, 12, 57, 41441, 59, 62, 14, 60, 28988, 3, 3256, 5009, 13, 301, 549, 11, 1438, 11639, 301, 549, 11537, 198, 60, 198 ]
2.681081
370
# Jan28Report on General Accureacy ##################################################################################### # date = 'Jan-23-2020-22-N-noneSpark-R0-noOpt' # notes = 'noneSpark-R0-noOpt' # date = 'Jan-23-2020-21-N-UseSpark-R0-noOpt' # notes = 'UseSpark-R0-noOpt' # date = 'Jan-24-2020-2-N-UseSpark-R1-noOpt' # notes = 'UseSpark-R1-noOpt' # date = 'Jan-23-2020-22-N-noneSpark-R0-noOpt' # notes = 'noneSpark-R0-noOpt' # date = 'Jan-24-2020-3-N-UseSpark-R1-bsfKimOnly' # notes = 'UseSpark-R1-bsfKimOnly' # Jan31Report on TraditionalDTW+LBOpt vs. FastDTW+NoOpt################################################################# # date = 'Jan-30-2020-12-N-UseSpark-R1-noOptFastDTW_numSample400' # notes = 'UseSpark-R1-noOptFastDTW_numSample400' date = 'Jan-30-2020-15-N-UseSpark-R1-LBOptNormalDTW_numSample400' notes = 'UseSpark-R1-LBOptNormalDTW_numSample400' # paa_data folder is /home/apocalyvec/PycharmProjects/Genex/genex/experiments/results/
[ 2, 2365, 2078, 19100, 319, 3611, 6366, 495, 1590, 1303, 29113, 29113, 14468, 4242, 198, 2, 3128, 796, 705, 12128, 12, 1954, 12, 42334, 12, 1828, 12, 45, 12, 23108, 4561, 668, 12, 49, 15, 12, 3919, 27871, 6, 198, 2, 4710, 796, 705, 23108, 4561, 668, 12, 49, 15, 12, 3919, 27871, 6, 198, 2, 3128, 796, 705, 12128, 12, 1954, 12, 42334, 12, 2481, 12, 45, 12, 11041, 4561, 668, 12, 49, 15, 12, 3919, 27871, 6, 198, 2, 4710, 796, 705, 11041, 4561, 668, 12, 49, 15, 12, 3919, 27871, 6, 198, 2, 3128, 796, 705, 12128, 12, 1731, 12, 42334, 12, 17, 12, 45, 12, 11041, 4561, 668, 12, 49, 16, 12, 3919, 27871, 6, 198, 2, 4710, 796, 705, 11041, 4561, 668, 12, 49, 16, 12, 3919, 27871, 6, 198, 2, 3128, 796, 705, 12128, 12, 1954, 12, 42334, 12, 1828, 12, 45, 12, 23108, 4561, 668, 12, 49, 15, 12, 3919, 27871, 6, 198, 2, 4710, 796, 705, 23108, 4561, 668, 12, 49, 15, 12, 3919, 27871, 6, 198, 2, 3128, 796, 705, 12128, 12, 1731, 12, 42334, 12, 18, 12, 45, 12, 11041, 4561, 668, 12, 49, 16, 12, 1443, 69, 26374, 10049, 6, 198, 2, 4710, 796, 705, 11041, 4561, 668, 12, 49, 16, 12, 1443, 69, 26374, 10049, 6, 198, 198, 2, 2365, 3132, 19100, 319, 29065, 24544, 54, 10, 43, 8202, 457, 3691, 13, 12549, 24544, 54, 10, 2949, 27871, 29113, 29113, 2, 198, 2, 3128, 796, 705, 12128, 12, 1270, 12, 42334, 12, 1065, 12, 45, 12, 11041, 4561, 668, 12, 49, 16, 12, 3919, 27871, 22968, 24544, 54, 62, 22510, 36674, 7029, 6, 198, 2, 4710, 796, 705, 11041, 4561, 668, 12, 49, 16, 12, 3919, 27871, 22968, 24544, 54, 62, 22510, 36674, 7029, 6, 198, 4475, 796, 705, 12128, 12, 1270, 12, 42334, 12, 1314, 12, 45, 12, 11041, 4561, 668, 12, 49, 16, 12, 43, 8202, 457, 26447, 24544, 54, 62, 22510, 36674, 7029, 6, 198, 17815, 796, 705, 11041, 4561, 668, 12, 49, 16, 12, 43, 8202, 457, 26447, 24544, 54, 62, 22510, 36674, 7029, 6, 628, 198, 2, 279, 7252, 62, 7890, 9483, 318, 1220, 11195, 14, 499, 12063, 35138, 14, 20519, 354, 1670, 16775, 82, 14, 13746, 1069, 14, 5235, 1069, 14, 23100, 6800, 14, 43420, 14, 198 ]
2.483117
385
from typing import Tuple, Any, Union, List import scipy.stats from pandas import Series, DataFrame from pandas.core.generic import NDFrame from scipy.stats import zscore from IMLearn.learners.regressors import PolynomialFitting from IMLearn.utils import split_train_test import numpy as np import pandas as pd import plotly.express as px import plotly.io as pio Q2_SCATTER_PLOT_TITLE = ("Temperature in Israel as a function of Day of " "year, 1995-2007") Q2_BAR_PLOT_TITLE = ("Standard Deviation of temperature in Israel for each " "month, 1996-2007") Q4_PRINT_FORMAT = "k={},loss={}" Q4_BAR_PLOT_TITLE = ("Loss values as a function of the degree (1 <= k <= 10) " "of the polynomial fit") Q5_BAR_PLOT_TITLE = ("Loss of Polynomial fit of degree {} trained on " "Israel as a function of all other countries") COUNTRY_ISRAEL = "Israel" COUNTRY_NETHERLANDS = "The Netherlands" COUNTRY_SOUTH_AFRICA = "South Africa" COUNTRY_JORDAN = "Jordan" COL_STD = "std" COL_MEAN = "mean" COL_YEAR = "Year" COL_TEMP = "Temp" COL_DAY_OF_YEAR = "DayOfYear" COL_DATE = "Date" COL_MONTH = "Month" COL_COUNTRY = "Country" CITY_TEMPERATURE_CSV_PATH = "../datasets/City_Temperature.csv" pio.templates.default = "simple_white" def load_data(filename: str) -> pd.DataFrame: """ Load city daily temperature dataset and preprocess loaded_data. Parameters ---------- filename: str Path to house prices dataset Returns ------- Design matrix and response vector (Temp) """ loaded_data = pd.read_csv(filename, parse_dates=[COL_DATE]) loaded_data = clean_data(loaded_data) loaded_data = process_features(loaded_data) loaded_data = loaded_data.drop([COL_DATE], axis=1) return loaded_data def clean_data(X: pd.DataFrame) -> pd.DataFrame: """ Cleans the given data from extreme anomalies """ X["zscore"] = zscore(X[COL_TEMP]) X = X.drop(X[(X.zscore <= -3) | (X.zscore >= 3)].index) X = X.drop(["zscore"], axis=1) X = X.drop(X[X.Year <= 0].index) X = X.drop(X[(X.Month <= 0) | (X.Month >= 13)].index) X = X.drop(X[(X.Day <= 0) | (X.Day >= 32)].index) return X def process_features(X: pd.DataFrame) -> pd.DataFrame: """ Performs a basic processing of the given data """ X[COL_DAY_OF_YEAR] = X[COL_DATE].dt.dayofyear X[COL_YEAR] = X[COL_YEAR].astype(str) return X def explore_data_for_specific_country( country_name: str, full_data: DataFrame) -> None: """ Explores the data of a given country in the data. """ country_data = get_country_data(country_name, full_data) px.scatter(country_data, x=COL_DAY_OF_YEAR, y=COL_TEMP, color=COL_YEAR, title=Q2_SCATTER_PLOT_TITLE).show() std_per_month = country_data.groupby(COL_MONTH).Temp.agg(np.std) px.bar(std_per_month, title=Q2_BAR_PLOT_TITLE).show() def get_country_data(country_name: str, full_data: pd.DataFrame) -> DataFrame: """ Returns a subset the given data that contains samples only from the given country. """ return full_data[full_data[COL_COUNTRY] == country_name] def explore_differences_between_countries(full_data: pd.DataFrame) -> None: """ Explores the differences between the countries. """ std_and_mean_per_country_and_month = full_data.groupby( [COL_COUNTRY, COL_MONTH]).Temp.agg([np.mean, np.std]) px.line(std_and_mean_per_country_and_month, x=std_and_mean_per_country_and_month.index.get_level_values(1), y=COL_MEAN, color=std_and_mean_per_country_and_month.index.get_level_values(0), error_y=COL_STD).show() def fit_model_for_different_pol_deg( min_k: int, max_k: int, country_name: str, full_data: DataFrame) -> None: """ Fits a model (Polyfit) to a given country with different polynomial degrees. """ country_data = get_country_data(country_name, full_data) train_x, train_y, test_x, test_y = split_train_test( country_data.drop([COL_TEMP], axis=1), country_data[COL_TEMP] ) loss_values = list() for k in range(min_k, max_k + 1): polyfit = PolynomialFitting(k) polyfit.fit(train_x[COL_DAY_OF_YEAR], np.array(train_y)) loss = polyfit.loss(test_x[COL_DAY_OF_YEAR], np.array(test_y)) rounded_loss = round(loss, 2) print(Q4_PRINT_FORMAT.format(k, rounded_loss)) loss_values.append(rounded_loss) px.bar(x=range(min_k, max_k + 1), y=loss_values, title=Q4_BAR_PLOT_TITLE).show() def evaluate_fitted_model_on_different_countries( chosen_k: int, original_country_name: str, full_data: DataFrame, other_countries: List) -> None: """ Evaluates a fitted model of the given country on the given other countries. """ original_country_data = get_country_data(original_country_name, full_data) countries_losses = list() polyfit = PolynomialFitting(chosen_k) polyfit.fit(original_country_data[COL_DAY_OF_YEAR], original_country_data[COL_TEMP]) for country in other_countries: country_data = data[data[COL_COUNTRY] == country] country_loss = polyfit.loss(country_data[COL_DAY_OF_YEAR], country_data[COL_TEMP]) countries_losses.append(country_loss) px.bar(x=other_countries, y=countries_losses, title=Q5_BAR_PLOT_TITLE.format(chosen_k)).show() if __name__ == '__main__': np.random.seed(0) # Question 1 - Load and preprocessing of city temperature dataset data = load_data(CITY_TEMPERATURE_CSV_PATH) # Question 2 - Exploring data for specific country explore_data_for_specific_country(COUNTRY_ISRAEL, data) # Question 3 - Exploring differences between countries explore_differences_between_countries(data) # Question 4 - Fitting model for different values of `k` fit_model_for_different_pol_deg(1, 10, COUNTRY_ISRAEL, data) # Question 5 - Evaluating fitted model on different countries evaluate_fitted_model_on_different_countries( 5, COUNTRY_ISRAEL, data, [COUNTRY_JORDAN, COUNTRY_SOUTH_AFRICA, COUNTRY_NETHERLANDS] )
[ 6738, 19720, 1330, 309, 29291, 11, 4377, 11, 4479, 11, 7343, 198, 198, 11748, 629, 541, 88, 13, 34242, 198, 6738, 19798, 292, 1330, 7171, 11, 6060, 19778, 198, 6738, 19798, 292, 13, 7295, 13, 41357, 1330, 25524, 19778, 198, 6738, 629, 541, 88, 13, 34242, 1330, 1976, 26675, 198, 198, 6738, 314, 5805, 451, 77, 13, 35720, 364, 13, 2301, 601, 669, 1330, 12280, 26601, 498, 37, 2535, 198, 6738, 314, 5805, 451, 77, 13, 26791, 1330, 6626, 62, 27432, 62, 9288, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 7110, 306, 13, 42712, 355, 279, 87, 198, 11748, 7110, 306, 13, 952, 355, 279, 952, 628, 198, 48, 17, 62, 6173, 1404, 5781, 62, 6489, 2394, 62, 49560, 2538, 796, 5855, 42492, 287, 2692, 355, 257, 2163, 286, 3596, 286, 366, 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, 366, 1941, 11, 8735, 12, 12726, 4943, 198, 48, 17, 62, 33, 1503, 62, 6489, 2394, 62, 49560, 2538, 796, 5855, 23615, 6245, 3920, 286, 5951, 287, 2692, 329, 1123, 366, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 8424, 11, 8235, 12, 12726, 4943, 198, 48, 19, 62, 4805, 12394, 62, 21389, 1404, 796, 366, 74, 34758, 5512, 22462, 34758, 36786, 198, 48, 19, 62, 33, 1503, 62, 6489, 2394, 62, 49560, 2538, 796, 5855, 43, 793, 3815, 355, 257, 2163, 286, 262, 4922, 357, 16, 19841, 479, 19841, 838, 8, 366, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 1659, 262, 745, 6213, 49070, 4197, 4943, 198, 48, 20, 62, 33, 1503, 62, 6489, 2394, 62, 49560, 2538, 796, 5855, 43, 793, 286, 12280, 26601, 498, 4197, 286, 4922, 23884, 8776, 319, 366, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 14040, 355, 257, 2163, 286, 477, 584, 2678, 4943, 198, 198, 34, 19385, 40405, 62, 1797, 3861, 3698, 796, 366, 14040, 1, 198, 34, 19385, 40405, 62, 12884, 16879, 25697, 5258, 796, 366, 464, 12671, 1, 198, 34, 19385, 40405, 62, 50, 2606, 4221, 62, 8579, 49, 25241, 796, 366, 14942, 5478, 1, 198, 34, 19385, 40405, 62, 41, 12532, 1565, 796, 366, 34522, 1, 198, 198, 25154, 62, 32147, 796, 366, 19282, 1, 198, 25154, 62, 11682, 1565, 796, 366, 32604, 1, 198, 25154, 62, 56, 17133, 796, 366, 17688, 1, 198, 25154, 62, 51, 39494, 796, 366, 30782, 1, 198, 25154, 62, 26442, 62, 19238, 62, 56, 17133, 796, 366, 12393, 5189, 17688, 1, 198, 25154, 62, 35, 6158, 796, 366, 10430, 1, 198, 25154, 62, 27857, 4221, 796, 366, 31948, 1, 198, 25154, 62, 34, 19385, 40405, 796, 366, 33921, 1, 198, 198, 34, 9050, 62, 51, 3620, 18973, 40086, 62, 7902, 53, 62, 34219, 796, 366, 40720, 19608, 292, 1039, 14, 14941, 62, 42492, 13, 40664, 1, 198, 198, 79, 952, 13, 11498, 17041, 13, 12286, 796, 366, 36439, 62, 11186, 1, 628, 198, 4299, 3440, 62, 7890, 7, 34345, 25, 965, 8, 4613, 279, 67, 13, 6601, 19778, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 8778, 1748, 4445, 5951, 27039, 290, 662, 14681, 9639, 62, 7890, 13, 198, 220, 220, 220, 40117, 198, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 29472, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 10644, 284, 2156, 4536, 27039, 628, 220, 220, 220, 16409, 198, 220, 220, 220, 35656, 198, 220, 220, 220, 8495, 17593, 290, 2882, 15879, 357, 30782, 8, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 9639, 62, 7890, 796, 279, 67, 13, 961, 62, 40664, 7, 34345, 11, 21136, 62, 19581, 41888, 25154, 62, 35, 6158, 12962, 628, 220, 220, 220, 9639, 62, 7890, 796, 3424, 62, 7890, 7, 14578, 62, 7890, 8, 198, 220, 220, 220, 9639, 62, 7890, 796, 1429, 62, 40890, 7, 14578, 62, 7890, 8, 628, 220, 220, 220, 9639, 62, 7890, 796, 9639, 62, 7890, 13, 14781, 26933, 25154, 62, 35, 6158, 4357, 16488, 28, 16, 8, 628, 220, 220, 220, 1441, 9639, 62, 7890, 628, 198, 4299, 3424, 62, 7890, 7, 55, 25, 279, 67, 13, 6601, 19778, 8, 4613, 279, 67, 13, 6601, 19778, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3779, 504, 262, 1813, 1366, 422, 3257, 35907, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1395, 14692, 89, 26675, 8973, 796, 1976, 26675, 7, 55, 58, 25154, 62, 51, 39494, 12962, 198, 220, 220, 220, 1395, 796, 1395, 13, 14781, 7, 55, 58, 7, 55, 13, 89, 26675, 19841, 532, 18, 8, 930, 357, 55, 13, 89, 26675, 18189, 513, 25295, 9630, 8, 198, 220, 220, 220, 1395, 796, 1395, 13, 14781, 7, 14692, 89, 26675, 33116, 16488, 28, 16, 8, 628, 220, 220, 220, 1395, 796, 1395, 13, 14781, 7, 55, 58, 55, 13, 17688, 19841, 657, 4083, 9630, 8, 198, 220, 220, 220, 1395, 796, 1395, 13, 14781, 7, 55, 58, 7, 55, 13, 31948, 19841, 657, 8, 930, 357, 55, 13, 31948, 18189, 1511, 25295, 9630, 8, 198, 220, 220, 220, 1395, 796, 1395, 13, 14781, 7, 55, 58, 7, 55, 13, 12393, 19841, 657, 8, 930, 357, 55, 13, 12393, 18189, 3933, 25295, 9630, 8, 628, 220, 220, 220, 1441, 1395, 628, 198, 4299, 1429, 62, 40890, 7, 55, 25, 279, 67, 13, 6601, 19778, 8, 4613, 279, 67, 13, 6601, 19778, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2448, 23914, 257, 4096, 7587, 286, 262, 1813, 1366, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1395, 58, 25154, 62, 26442, 62, 19238, 62, 56, 17133, 60, 796, 1395, 58, 25154, 62, 35, 6158, 4083, 28664, 13, 820, 1659, 1941, 198, 220, 220, 220, 1395, 58, 25154, 62, 56, 17133, 60, 796, 1395, 58, 25154, 62, 56, 17133, 4083, 459, 2981, 7, 2536, 8, 628, 220, 220, 220, 1441, 1395, 628, 198, 4299, 7301, 62, 7890, 62, 1640, 62, 11423, 62, 19315, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1499, 62, 3672, 25, 965, 11, 1336, 62, 7890, 25, 6060, 19778, 8, 4613, 6045, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5905, 2850, 262, 1366, 286, 257, 1813, 1499, 287, 262, 1366, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1499, 62, 7890, 796, 651, 62, 19315, 62, 7890, 7, 19315, 62, 3672, 11, 1336, 62, 7890, 8, 198, 220, 220, 220, 279, 87, 13, 1416, 1436, 7, 19315, 62, 7890, 11, 2124, 28, 25154, 62, 26442, 62, 19238, 62, 56, 17133, 11, 331, 28, 25154, 62, 51, 39494, 11, 3124, 28, 25154, 62, 56, 17133, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3670, 28, 48, 17, 62, 6173, 1404, 5781, 62, 6489, 2394, 62, 49560, 2538, 737, 12860, 3419, 628, 220, 220, 220, 14367, 62, 525, 62, 8424, 796, 1499, 62, 7890, 13, 8094, 1525, 7, 25154, 62, 27857, 4221, 737, 30782, 13, 9460, 7, 37659, 13, 19282, 8, 628, 220, 220, 220, 279, 87, 13, 5657, 7, 19282, 62, 525, 62, 8424, 11, 3670, 28, 48, 17, 62, 33, 1503, 62, 6489, 2394, 62, 49560, 2538, 737, 12860, 3419, 628, 198, 4299, 651, 62, 19315, 62, 7890, 7, 19315, 62, 3672, 25, 965, 11, 1336, 62, 7890, 25, 279, 67, 13, 6601, 19778, 8, 4613, 6060, 19778, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 16409, 257, 24637, 262, 1813, 1366, 326, 4909, 8405, 691, 422, 262, 1813, 198, 220, 220, 220, 1499, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1441, 1336, 62, 7890, 58, 12853, 62, 7890, 58, 25154, 62, 34, 19385, 40405, 60, 6624, 1499, 62, 3672, 60, 628, 198, 4299, 7301, 62, 26069, 4972, 62, 23395, 62, 9127, 1678, 7, 12853, 62, 7890, 25, 279, 67, 13, 6601, 19778, 8, 4613, 6045, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5905, 2850, 262, 5400, 1022, 262, 2678, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 14367, 62, 392, 62, 32604, 62, 525, 62, 19315, 62, 392, 62, 8424, 796, 1336, 62, 7890, 13, 8094, 1525, 7, 198, 220, 220, 220, 220, 220, 220, 220, 685, 25154, 62, 34, 19385, 40405, 11, 20444, 62, 27857, 4221, 35944, 30782, 13, 9460, 26933, 37659, 13, 32604, 11, 45941, 13, 19282, 12962, 628, 220, 220, 220, 279, 87, 13, 1370, 7, 19282, 62, 392, 62, 32604, 62, 525, 62, 19315, 62, 392, 62, 8424, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 28, 19282, 62, 392, 62, 32604, 62, 525, 62, 19315, 62, 392, 62, 8424, 13, 9630, 13, 1136, 62, 5715, 62, 27160, 7, 16, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 331, 28, 25154, 62, 11682, 1565, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3124, 28, 19282, 62, 392, 62, 32604, 62, 525, 62, 19315, 62, 392, 62, 8424, 13, 9630, 13, 1136, 62, 5715, 62, 27160, 7, 15, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4049, 62, 88, 28, 25154, 62, 32147, 737, 12860, 3419, 628, 198, 4299, 4197, 62, 19849, 62, 1640, 62, 39799, 62, 16104, 62, 13500, 7, 198, 220, 220, 220, 220, 220, 220, 220, 949, 62, 74, 25, 493, 11, 3509, 62, 74, 25, 493, 11, 1499, 62, 3672, 25, 965, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1336, 62, 7890, 25, 6060, 19778, 8, 4613, 6045, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 376, 896, 257, 2746, 357, 34220, 11147, 8, 284, 257, 1813, 1499, 351, 1180, 745, 6213, 49070, 198, 220, 220, 220, 7370, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 1499, 62, 7890, 796, 651, 62, 19315, 62, 7890, 7, 19315, 62, 3672, 11, 1336, 62, 7890, 8, 628, 220, 220, 220, 4512, 62, 87, 11, 4512, 62, 88, 11, 1332, 62, 87, 11, 1332, 62, 88, 796, 6626, 62, 27432, 62, 9288, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1499, 62, 7890, 13, 14781, 26933, 25154, 62, 51, 39494, 4357, 16488, 28, 16, 828, 198, 220, 220, 220, 220, 220, 220, 220, 1499, 62, 7890, 58, 25154, 62, 51, 39494, 60, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 2994, 62, 27160, 796, 1351, 3419, 198, 220, 220, 220, 329, 479, 287, 2837, 7, 1084, 62, 74, 11, 3509, 62, 74, 1343, 352, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 7514, 11147, 796, 12280, 26601, 498, 37, 2535, 7, 74, 8, 198, 220, 220, 220, 220, 220, 220, 220, 7514, 11147, 13, 11147, 7, 27432, 62, 87, 58, 25154, 62, 26442, 62, 19238, 62, 56, 17133, 4357, 45941, 13, 18747, 7, 27432, 62, 88, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 2994, 796, 7514, 11147, 13, 22462, 7, 9288, 62, 87, 58, 25154, 62, 26442, 62, 19238, 62, 56, 17133, 4357, 45941, 13, 18747, 7, 9288, 62, 88, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 19273, 62, 22462, 796, 2835, 7, 22462, 11, 362, 8, 628, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 48, 19, 62, 4805, 12394, 62, 21389, 1404, 13, 18982, 7, 74, 11, 19273, 62, 22462, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2994, 62, 27160, 13, 33295, 7, 39262, 62, 22462, 8, 628, 220, 220, 220, 279, 87, 13, 5657, 7, 87, 28, 9521, 7, 1084, 62, 74, 11, 3509, 62, 74, 1343, 352, 828, 331, 28, 22462, 62, 27160, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3670, 28, 48, 19, 62, 33, 1503, 62, 6489, 2394, 62, 49560, 2538, 737, 12860, 3419, 628, 198, 4299, 13446, 62, 38631, 62, 19849, 62, 261, 62, 39799, 62, 9127, 1678, 7, 198, 220, 220, 220, 220, 220, 220, 220, 7147, 62, 74, 25, 493, 11, 2656, 62, 19315, 62, 3672, 25, 965, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1336, 62, 7890, 25, 6060, 19778, 11, 584, 62, 9127, 1678, 25, 7343, 8, 4613, 6045, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 26439, 12632, 257, 18235, 2746, 286, 262, 1813, 1499, 319, 262, 1813, 584, 198, 220, 220, 220, 2678, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2656, 62, 19315, 62, 7890, 796, 651, 62, 19315, 62, 7890, 7, 14986, 62, 19315, 62, 3672, 11, 1336, 62, 7890, 8, 628, 220, 220, 220, 2678, 62, 22462, 274, 796, 1351, 3419, 628, 220, 220, 220, 7514, 11147, 796, 12280, 26601, 498, 37, 2535, 7, 354, 5233, 62, 74, 8, 198, 220, 220, 220, 7514, 11147, 13, 11147, 7, 14986, 62, 19315, 62, 7890, 58, 25154, 62, 26442, 62, 19238, 62, 56, 17133, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2656, 62, 19315, 62, 7890, 58, 25154, 62, 51, 39494, 12962, 628, 220, 220, 220, 329, 1499, 287, 584, 62, 9127, 1678, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1499, 62, 7890, 796, 1366, 58, 7890, 58, 25154, 62, 34, 19385, 40405, 60, 6624, 1499, 60, 628, 220, 220, 220, 220, 220, 220, 220, 1499, 62, 22462, 796, 7514, 11147, 13, 22462, 7, 19315, 62, 7890, 58, 25154, 62, 26442, 62, 19238, 62, 56, 17133, 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, 1499, 62, 7890, 58, 25154, 62, 51, 39494, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2678, 62, 22462, 274, 13, 33295, 7, 19315, 62, 22462, 8, 628, 220, 220, 220, 279, 87, 13, 5657, 7, 87, 28, 847, 62, 9127, 1678, 11, 331, 28, 9127, 1678, 62, 22462, 274, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3670, 28, 48, 20, 62, 33, 1503, 62, 6489, 2394, 62, 49560, 2538, 13, 18982, 7, 354, 5233, 62, 74, 29720, 12860, 3419, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 45941, 13, 25120, 13, 28826, 7, 15, 8, 628, 220, 220, 220, 1303, 18233, 352, 532, 8778, 290, 662, 36948, 286, 1748, 5951, 27039, 198, 220, 220, 220, 1366, 796, 3440, 62, 7890, 7, 34, 9050, 62, 51, 3620, 18973, 40086, 62, 7902, 53, 62, 34219, 8, 628, 220, 220, 220, 1303, 18233, 362, 532, 5905, 3255, 1366, 329, 2176, 1499, 198, 220, 220, 220, 7301, 62, 7890, 62, 1640, 62, 11423, 62, 19315, 7, 34, 19385, 40405, 62, 1797, 3861, 3698, 11, 1366, 8, 628, 220, 220, 220, 1303, 18233, 513, 532, 5905, 3255, 5400, 1022, 2678, 198, 220, 220, 220, 7301, 62, 26069, 4972, 62, 23395, 62, 9127, 1678, 7, 7890, 8, 628, 220, 220, 220, 1303, 18233, 604, 532, 376, 2535, 2746, 329, 1180, 3815, 286, 4600, 74, 63, 198, 220, 220, 220, 4197, 62, 19849, 62, 1640, 62, 39799, 62, 16104, 62, 13500, 7, 16, 11, 838, 11, 31404, 40405, 62, 1797, 3861, 3698, 11, 1366, 8, 628, 220, 220, 220, 1303, 18233, 642, 532, 26439, 11927, 18235, 2746, 319, 1180, 2678, 198, 220, 220, 220, 13446, 62, 38631, 62, 19849, 62, 261, 62, 39799, 62, 9127, 1678, 7, 198, 220, 220, 220, 220, 220, 220, 220, 642, 11, 31404, 40405, 62, 1797, 3861, 3698, 11, 1366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 685, 34, 19385, 40405, 62, 41, 12532, 1565, 11, 31404, 40405, 62, 50, 2606, 4221, 62, 8579, 49, 25241, 11, 31404, 40405, 62, 12884, 16879, 25697, 5258, 60, 198, 220, 220, 220, 1267, 198 ]
2.363671
2,659
import os from datetime import datetime from functools import wraps actions = dict() @action @action @action # TODO: Remove this before releasing scbt @action
[ 11748, 28686, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 198, 4658, 796, 8633, 3419, 198, 198, 31, 2673, 198, 198, 31, 2673, 198, 198, 31, 2673, 198, 198, 2, 16926, 46, 25, 17220, 428, 878, 13011, 629, 18347, 198, 31, 2673, 198 ]
3.28
50
import requests import json from bs4 import BeautifulSoup import urlparse burp0_url = "https://business.facebook.com/ufi/reaction/profile/browser/fetch/?limit=5000&total_count=5000&ft_ent_identifier=108566350975276&fb_dtsg_ag=AQxhzRLE9rpjfoRo1DHdRZ0DSQntKVunKgX-keo45t7N2Q:AQzSCWY38h7fU8ix7KUq66CzW1lEBK6d7q6b9qF1GVuNZA&__user=100005595064283&__a=1&__dyn=7AgSXghFoHG4Q9UrJDzk2mq2W8GA5FaDJ4WqK4UqwCGawIhEnUzgjGqK5-7oG5VGwJy9pUKbnyorxuF98SmquUuF3e16xqfzQdzoS6pvh4jUXVEO489EGicGdxO3i5VokKm8yElAx6u14xl0zCypHh43Hg-ezFEmUC1uCwDxe6UGq6UpxyWBGHzooAghwyzZ5CG2e4RVo8EiyXxK9z9ooK3m6ogUkBzUy4XCxS58hx2eyojz9eawzCJ1ymiQ2q6po_zoiKm2u10zUCcx22PxuE9kbzUgxCuV8y7EKUymEjyHGiawYyHDhoG26227Rh8C9xl28rgK7lAAAzE4y2O58gyUTyUbUmDwQwxG76u4UgwNx5e8xi8KUoyE-Uqze7Vojxy2q4UrxS0D8888US2m8wHy8C6EG4u11wk8Su6EaE8K&__csr=&__req=6p&__beoa=0&__pc=PHASED:media_manager_pkg&dpr=1&__ccg=GOOD&__rev=1002593526&__s=n5qgcm:rvmawv:n7hifk&__hsi=6866983610963240940-0&__comet_req=0&jazoest=27719&__jssesw=1&ft[tn]=-a" burp0_cookies = {"datr": "ml9IXWc-hooQAZsZyGngW7lJ", "sb": "ml9IXey4Kv58ugWsRrgQRXp0", "_ga": "GA1.2.214750873.1587879017", "locale": "en_GB", "js_ver": "3892", "m_pixel_ratio": "1", "c_user": "100005595064283", "cppo": "1", "spin": "r.1002593322_b.trunk_t.1598811628_s.1_v.2_", "xs": "21%3AsAWFX-g9ae4V2A%3A2%3A1598775154%3A13272%3A4196%3A%3AAcVcdyV0_LJR0gJjSBqRwuoQhJhaDp_QlOYidiEqYKA", "fr": "1tpMIwMyIepQeqj6i.AWVuLZHlce-HqooJiS_WNa_2Daw.BdwSBm.qI.F9L.0.0.BfTGNk.AWVJSO_U", "presence": "EDvF3EtimeF1598844249EuserFA21B05595064283A2EstateFDt3F_5bDiFA2user_3a1B02305073382A2EoF1EfF1C_5dEutc3F1598844020217G598844020283CEchF_7bCC", "wd": "799x766"} burp0_headers = {"Connection": "close", "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36", "Viewport-Width": "799", "Content-Type": "application/x-www-form-urlencoded", "Accept": "*/*", "Origin": "https://business.facebook.com", "Sec-Fetch-Site": "same-origin", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Dest": "empty", "Referer": "https://business.facebook.com/creatorstudio/?mode=facebook&content_table=ALL_POSTS&post_status=ALL&tab=content_posts&post_type=ALL&collection_id=free_form_collection", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-US,en;q=0.9,hi;q=0.8,es;q=0.7,lt;q=0.6"} list_response = requests.get(burp0_url, headers=burp0_headers, cookies=burp0_cookies) json_resp = json.loads(list_response.text[9:]) list_html = json_resp["domops"][0][3]["__html"] soup = BeautifulSoup(list_html, 'html.parser') peoples_ids_list = soup.findAll("a", {"class":"_42ft _4jy0 _4jy3 _517h _51sy"}) invite_count = len(peoples_ids_list) print("Inviting "+str(invite_count)+" peoples") for people_id in peoples_ids_list: explode = urlparse.parse_qs(urlparse.urlparse(people_id["ajaxify"]).query) invitee = explode["invitee"][0] hash_value = explode["hash"][0] content_id = explode["content_id"][0] page_id = explode["page_id"][0] ext = explode["ext"][0] burp0_url = "https://www.facebook.com:443/pages/post_like_invite/send/" burp0_data = {"invitee": invitee, "page_id": page_id, "ref": "pages_post_reactor_dialogue", "content_id": content_id, "ext": ext, "hash": hash_value, "__user": "100005595064283", "__a": "1", "__dyn": "7AgSXghFoHG4Q9UrJDzk2mq2W8GA5FaDJ4WqK4UqwCGawIhEnUzgjGqK5-7oG5VGwJy9pUKbnyorxuF98SmquUuF3e16xqfzQdzoS7_h4jUXVEO489EGicGdxO3i5VokKm8yEqx6u14xl0zCypHh43Hg-ezFEmUC1uCwDxe6UGq6UpxyWBGHzooAghwyzZ5CG2e4RVo8EiyXxK9z9ooK3m6ogUkBzUy4XCxS58hx2eyojz9eawzCJ1ymiQ2q6po_zoiKm2u10zUCcx22PxuE9kbzUgxCuV8y7EKUymEjyHGiawYyHDhoG26227Rh8C9xl28rgK7lAAAzE4y2O58gyUTyUbUmDwQwxG76u4UgwNx5e8xi8KUoyE-Uqze7Vojxy2q4UrxS0D8888US2m8wHxa6EG4u11wk8Su6EaE8K", "__csr": '', "__req": "4q", "__beoa": "0", "__pc": "PHASED:media_manager_pkg", "dpr": "1", "__ccg": "GOOD", "__rev": "1002593526", "__s": "2m0lki:rvmawv:n7hifk", "__hsi": "6866983610963240940-0", "__comet_req": "0", "fb_dtsg": "AQFcQOBaGXMB:AQH33OAOqtrg", "jazoest": "21987", "__jssesw": "1"} response = requests.post(burp0_url, headers=burp0_headers, cookies=burp0_cookies, data=burp0_data) final_Response = json.loads(response.text[9:]) if final_Response.has_key("error"): print("Lets refresh our paramter values") print(final_Response["errorDescription"]) break; else: print("Invited successfully...")
[ 11748, 7007, 220, 198, 11748, 33918, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 220, 198, 11748, 19016, 29572, 220, 198, 6236, 79, 15, 62, 6371, 796, 366, 5450, 1378, 22680, 13, 19024, 13, 785, 14, 3046, 72, 14, 260, 2673, 14, 13317, 14, 40259, 14, 69, 7569, 20924, 32374, 28, 27641, 5, 23350, 62, 9127, 28, 27641, 5, 701, 62, 298, 62, 738, 7483, 28, 940, 5332, 2791, 14877, 42716, 27988, 5, 21855, 62, 67, 912, 70, 62, 363, 28, 32, 48, 87, 32179, 49, 2538, 24, 81, 79, 73, 6513, 15450, 16, 41473, 67, 49, 57, 15, 5258, 48, 429, 42, 53, 403, 42, 70, 55, 12, 365, 78, 2231, 83, 22, 45, 17, 48, 25, 32, 48, 89, 6173, 54, 56, 2548, 71, 22, 69, 52, 23, 844, 22, 42, 52, 80, 2791, 34, 89, 54, 16, 75, 30195, 42, 21, 67, 22, 80, 21, 65, 24, 80, 37, 16, 37094, 84, 45, 34892, 5, 834, 7220, 28, 49388, 2816, 31027, 2414, 30290, 5, 834, 64, 28, 16, 5, 834, 67, 2047, 28, 22, 10262, 50, 55, 456, 37, 78, 39, 38, 19, 48, 24, 16692, 37882, 89, 74, 17, 76, 80, 17, 54, 23, 9273, 20, 50110, 35028, 19, 54, 80, 42, 19, 52, 80, 86, 39816, 707, 40, 71, 4834, 52, 89, 70, 73, 38, 80, 42, 20, 12, 22, 78, 38, 20, 43490, 86, 41, 88, 24, 79, 15039, 65, 3281, 273, 87, 84, 37, 4089, 7556, 421, 52, 84, 37, 18, 68, 1433, 87, 80, 69, 89, 48, 67, 10872, 50, 21, 79, 85, 71, 19, 73, 31235, 53, 4720, 35890, 7156, 291, 38, 34350, 46, 18, 72, 20, 53, 482, 42, 76, 23, 88, 9527, 31554, 21, 84, 1415, 87, 75, 15, 89, 34, 4464, 39, 71, 3559, 39, 70, 12, 8471, 37, 10161, 9598, 16, 84, 34, 86, 35, 27705, 21, 7340, 80, 21, 4933, 5431, 45607, 23741, 2238, 32, 456, 21768, 89, 57, 20, 39816, 17, 68, 19, 49, 42144, 23, 36, 7745, 55, 87, 42, 24, 89, 24, 2238, 42, 18, 76, 21, 519, 28425, 33, 89, 52, 88, 19, 55, 34, 87, 50, 3365, 71, 87, 17, 2959, 13210, 89, 24, 68, 707, 89, 34, 41, 16, 4948, 72, 48, 17, 80, 21, 7501, 62, 10872, 72, 42, 76, 17, 84, 940, 89, 9598, 66, 87, 1828, 47, 87, 84, 36, 24, 32812, 89, 52, 70, 87, 46141, 53, 23, 88, 22, 36, 42, 52, 4948, 36, 73, 88, 39, 38, 544, 86, 56, 88, 10227, 8873, 38, 2075, 24403, 38576, 23, 34, 24, 87, 75, 2078, 41345, 42, 22, 75, 3838, 26903, 36, 19, 88, 17, 46, 3365, 1360, 3843, 88, 36609, 37280, 35, 86, 48, 49345, 38, 4304, 84, 19, 52, 70, 86, 45, 87, 20, 68, 23, 29992, 23, 42, 52, 726, 36, 12, 52, 80, 2736, 22, 53, 13210, 5431, 17, 80, 19, 16692, 87, 50, 15, 35, 3459, 3459, 2937, 17, 76, 23, 86, 21217, 23, 34, 21, 7156, 19, 84, 1157, 43021, 23, 5606, 21, 36, 64, 36, 23, 42, 5, 834, 6359, 81, 28, 5, 834, 42180, 28, 21, 79, 5, 834, 1350, 12162, 28, 15, 5, 834, 14751, 28, 11909, 42827, 25, 11431, 62, 37153, 62, 35339, 5, 67, 1050, 28, 16, 5, 834, 535, 70, 28, 11230, 3727, 5, 834, 18218, 28, 3064, 25191, 2327, 2075, 5, 834, 82, 28, 77, 20, 80, 70, 11215, 25, 81, 14761, 707, 85, 25, 77, 22, 71, 361, 74, 5, 834, 11994, 72, 28, 3104, 2791, 4089, 2623, 940, 4846, 33916, 2931, 1821, 12, 15, 5, 834, 785, 316, 62, 42180, 28, 15, 5, 73, 44299, 395, 28, 27019, 1129, 5, 834, 73, 824, 274, 86, 28, 16, 5, 701, 58, 34106, 60, 10779, 64, 1, 198, 6236, 79, 15, 62, 27916, 444, 796, 19779, 19608, 81, 1298, 366, 4029, 24, 10426, 54, 66, 12, 71, 2238, 48, 22778, 82, 57, 88, 38, 782, 54, 22, 75, 41, 1600, 366, 36299, 1298, 366, 4029, 24, 10426, 2959, 19, 42, 85, 3365, 1018, 46456, 49, 41345, 48, 49, 55, 79, 15, 1600, 45434, 4908, 1298, 366, 9273, 16, 13, 17, 13, 22291, 15426, 23, 4790, 13, 21273, 3695, 3720, 29326, 1600, 366, 17946, 1000, 1298, 366, 268, 62, 4579, 1600, 366, 8457, 62, 332, 1298, 366, 2548, 5892, 1600, 366, 76, 62, 32515, 62, 10366, 952, 1298, 366, 16, 1600, 366, 66, 62, 7220, 1298, 366, 49388, 2816, 31027, 2414, 30290, 1600, 366, 66, 16634, 1298, 366, 16, 1600, 366, 39706, 1298, 366, 81, 13, 3064, 25191, 2091, 1828, 62, 65, 13, 2213, 2954, 62, 83, 13, 19707, 3459, 18298, 2078, 62, 82, 13, 16, 62, 85, 13, 17, 62, 1600, 366, 34223, 1298, 366, 2481, 4, 18, 1722, 12298, 17213, 12, 70, 24, 3609, 19, 53, 17, 32, 4, 18, 32, 17, 4, 18, 32, 1314, 4089, 34483, 21526, 4, 18, 32, 1485, 29807, 4, 18, 32, 19, 25272, 4, 18, 32, 4, 18, 3838, 66, 53, 66, 9892, 53, 15, 62, 43, 44817, 15, 70, 41, 73, 16811, 80, 49, 86, 20895, 48, 71, 41, 3099, 35, 79, 62, 48, 75, 21414, 19830, 36, 80, 56, 25123, 1600, 366, 8310, 1298, 366, 16, 34788, 8895, 86, 3666, 40, 538, 48, 27363, 73, 21, 72, 13, 12298, 53, 84, 43, 57, 39, 75, 344, 12, 39, 80, 2238, 41, 72, 50, 62, 54, 26705, 62, 17, 35, 707, 13, 33, 67, 86, 16811, 76, 13, 80, 40, 13, 37, 24, 43, 13, 15, 13, 15, 13, 33, 69, 51, 16630, 74, 13, 12298, 53, 41, 15821, 62, 52, 1600, 366, 18302, 594, 1298, 366, 1961, 85, 37, 18, 36, 2435, 37, 19707, 3459, 2598, 21626, 36, 7220, 7708, 2481, 33, 2713, 3270, 1120, 2414, 30290, 32, 17, 36, 5219, 26009, 83, 18, 37, 62, 20, 65, 18683, 7708, 17, 7220, 62, 18, 64, 16, 33, 2999, 1270, 35378, 2091, 6469, 32, 17, 36, 78, 37, 16, 36, 69, 37, 16, 34, 62, 20, 67, 36, 315, 66, 18, 37, 19707, 3459, 25644, 19004, 1558, 38, 3270, 3459, 25644, 1238, 30290, 5222, 354, 37, 62, 22, 65, 4093, 1600, 366, 16993, 1298, 366, 45455, 87, 22, 2791, 20662, 198, 6236, 79, 15, 62, 50145, 796, 19779, 32048, 1298, 366, 19836, 1600, 366, 12982, 12, 36772, 1298, 366, 44, 8590, 5049, 14, 20, 13, 15, 357, 14155, 37638, 26, 8180, 4100, 7294, 1395, 838, 62, 1314, 62, 16, 8, 4196, 13908, 20827, 14, 46096, 13, 2623, 357, 42, 28656, 11, 588, 2269, 37549, 8, 13282, 14, 5332, 13, 15, 13, 19, 24839, 13, 5999, 23298, 14, 46096, 13, 2623, 1600, 366, 7680, 634, 12, 30916, 1298, 366, 45455, 1600, 366, 19746, 12, 6030, 1298, 366, 31438, 14, 87, 12, 2503, 12, 687, 12, 6371, 12685, 9043, 1600, 366, 38855, 1298, 366, 9, 15211, 1600, 366, 39688, 1298, 366, 5450, 1378, 22680, 13, 19024, 13, 785, 1600, 366, 6558, 12, 37, 7569, 12, 29123, 1298, 366, 31642, 12, 47103, 1600, 366, 6558, 12, 37, 7569, 12, 19076, 1298, 366, 66, 669, 1600, 366, 6558, 12, 37, 7569, 12, 24159, 1298, 366, 28920, 1600, 366, 8134, 11882, 1298, 366, 5450, 1378, 22680, 13, 19024, 13, 785, 14, 45382, 19149, 952, 20924, 14171, 28, 19024, 5, 11299, 62, 11487, 28, 7036, 62, 32782, 50, 5, 7353, 62, 13376, 28, 7036, 5, 8658, 28, 11299, 62, 24875, 5, 7353, 62, 4906, 28, 7036, 5, 43681, 62, 312, 28, 5787, 62, 687, 62, 43681, 1600, 366, 38855, 12, 27195, 7656, 1298, 366, 70, 13344, 11, 825, 17660, 1600, 366, 38855, 12, 32065, 1298, 366, 268, 12, 2937, 11, 268, 26, 80, 28, 15, 13, 24, 11, 5303, 26, 80, 28, 15, 13, 23, 11, 274, 26, 80, 28, 15, 13, 22, 11, 2528, 26, 80, 28, 15, 13, 21, 20662, 198, 4868, 62, 26209, 796, 7007, 13, 1136, 7, 6236, 79, 15, 62, 6371, 11, 24697, 28, 6236, 79, 15, 62, 50145, 11, 14746, 28, 6236, 79, 15, 62, 27916, 444, 8, 198, 17752, 62, 4363, 796, 33918, 13, 46030, 7, 4868, 62, 26209, 13, 5239, 58, 24, 25, 12962, 220, 198, 4868, 62, 6494, 796, 33918, 62, 4363, 14692, 3438, 2840, 1, 7131, 15, 7131, 18, 7131, 1, 834, 6494, 8973, 220, 198, 82, 10486, 796, 23762, 50, 10486, 7, 4868, 62, 6494, 11, 705, 6494, 13, 48610, 11537, 198, 431, 12614, 62, 2340, 62, 4868, 796, 17141, 13, 19796, 3237, 7203, 64, 1600, 19779, 4871, 2404, 62, 3682, 701, 4808, 19, 73, 88, 15, 4808, 19, 73, 88, 18, 4808, 48170, 71, 4808, 4349, 1837, 20662, 8, 198, 16340, 578, 62, 9127, 796, 18896, 7, 431, 12614, 62, 2340, 62, 4868, 8, 198, 4798, 7203, 19904, 1780, 43825, 2536, 7, 16340, 578, 62, 9127, 47762, 1, 14366, 4943, 198, 1640, 661, 62, 312, 287, 14366, 62, 2340, 62, 4868, 25, 220, 198, 197, 20676, 1098, 796, 19016, 29572, 13, 29572, 62, 48382, 7, 6371, 29572, 13, 6371, 29572, 7, 15332, 62, 312, 14692, 1228, 897, 1958, 8973, 737, 22766, 8, 198, 197, 16340, 578, 68, 796, 22818, 14692, 16340, 578, 68, 1, 7131, 15, 60, 198, 197, 17831, 62, 8367, 796, 22818, 14692, 17831, 1, 7131, 15, 60, 220, 198, 197, 11299, 62, 312, 796, 22818, 14692, 11299, 62, 312, 1, 7131, 15, 60, 198, 197, 7700, 62, 312, 796, 22818, 14692, 7700, 62, 312, 1, 7131, 15, 60, 198, 197, 2302, 796, 22818, 14692, 2302, 1, 7131, 15, 60, 198, 197, 6236, 79, 15, 62, 6371, 796, 366, 5450, 1378, 2503, 13, 19024, 13, 785, 25, 34938, 14, 31126, 14, 7353, 62, 2339, 62, 16340, 578, 14, 21280, 30487, 198, 197, 6236, 79, 15, 62, 7890, 796, 19779, 16340, 578, 68, 1298, 14037, 68, 11, 366, 7700, 62, 312, 1298, 2443, 62, 312, 11, 366, 5420, 1298, 366, 31126, 62, 7353, 62, 260, 11218, 62, 38969, 5119, 1600, 366, 11299, 62, 312, 1298, 2695, 62, 312, 11, 366, 2302, 1298, 1070, 11, 366, 17831, 1298, 12234, 62, 8367, 11, 366, 834, 7220, 1298, 366, 49388, 2816, 31027, 2414, 30290, 1600, 366, 834, 64, 1298, 366, 16, 1600, 366, 834, 67, 2047, 1298, 366, 22, 10262, 50, 55, 456, 37, 78, 39, 38, 19, 48, 24, 16692, 37882, 89, 74, 17, 76, 80, 17, 54, 23, 9273, 20, 50110, 35028, 19, 54, 80, 42, 19, 52, 80, 86, 39816, 707, 40, 71, 4834, 52, 89, 70, 73, 38, 80, 42, 20, 12, 22, 78, 38, 20, 43490, 86, 41, 88, 24, 79, 15039, 65, 3281, 273, 87, 84, 37, 4089, 7556, 421, 52, 84, 37, 18, 68, 1433, 87, 80, 69, 89, 48, 67, 10872, 50, 22, 62, 71, 19, 73, 31235, 53, 4720, 35890, 7156, 291, 38, 34350, 46, 18, 72, 20, 53, 482, 42, 76, 23, 88, 36, 80, 87, 21, 84, 1415, 87, 75, 15, 89, 34, 4464, 39, 71, 3559, 39, 70, 12, 8471, 37, 10161, 9598, 16, 84, 34, 86, 35, 27705, 21, 7340, 80, 21, 4933, 5431, 45607, 23741, 2238, 32, 456, 21768, 89, 57, 20, 39816, 17, 68, 19, 49, 42144, 23, 36, 7745, 55, 87, 42, 24, 89, 24, 2238, 42, 18, 76, 21, 519, 28425, 33, 89, 52, 88, 19, 55, 34, 87, 50, 3365, 71, 87, 17, 2959, 13210, 89, 24, 68, 707, 89, 34, 41, 16, 4948, 72, 48, 17, 80, 21, 7501, 62, 10872, 72, 42, 76, 17, 84, 940, 89, 9598, 66, 87, 1828, 47, 87, 84, 36, 24, 32812, 89, 52, 70, 87, 46141, 53, 23, 88, 22, 36, 42, 52, 4948, 36, 73, 88, 39, 38, 544, 86, 56, 88, 10227, 8873, 38, 2075, 24403, 38576, 23, 34, 24, 87, 75, 2078, 41345, 42, 22, 75, 3838, 26903, 36, 19, 88, 17, 46, 3365, 1360, 3843, 88, 36609, 37280, 35, 86, 48, 49345, 38, 4304, 84, 19, 52, 70, 86, 45, 87, 20, 68, 23, 29992, 23, 42, 52, 726, 36, 12, 52, 80, 2736, 22, 53, 13210, 5431, 17, 80, 19, 16692, 87, 50, 15, 35, 3459, 3459, 2937, 17, 76, 23, 86, 39, 27865, 21, 7156, 19, 84, 1157, 43021, 23, 5606, 21, 36, 64, 36, 23, 42, 1600, 366, 834, 6359, 81, 1298, 705, 3256, 366, 834, 42180, 1298, 366, 19, 80, 1600, 366, 834, 1350, 12162, 1298, 366, 15, 1600, 366, 834, 14751, 1298, 366, 11909, 42827, 25, 11431, 62, 37153, 62, 35339, 1600, 366, 67, 1050, 1298, 366, 16, 1600, 366, 834, 535, 70, 1298, 366, 11230, 3727, 1600, 366, 834, 18218, 1298, 366, 3064, 25191, 2327, 2075, 1600, 366, 834, 82, 1298, 366, 17, 76, 15, 75, 4106, 25, 81, 14761, 707, 85, 25, 77, 22, 71, 361, 74, 1600, 366, 834, 11994, 72, 1298, 366, 3104, 2791, 4089, 2623, 940, 4846, 33916, 2931, 1821, 12, 15, 1600, 366, 834, 785, 316, 62, 42180, 1298, 366, 15, 1600, 366, 21855, 62, 67, 912, 70, 1298, 366, 32, 48, 37, 66, 48, 9864, 64, 38, 55, 10744, 25, 32, 48, 39, 2091, 23621, 46, 80, 2213, 70, 1600, 366, 73, 44299, 395, 1298, 366, 17, 27301, 1600, 366, 834, 73, 824, 274, 86, 1298, 366, 16, 20662, 220, 198, 197, 26209, 796, 7007, 13, 7353, 7, 6236, 79, 15, 62, 6371, 11, 24697, 28, 6236, 79, 15, 62, 50145, 11, 14746, 28, 6236, 79, 15, 62, 27916, 444, 11, 1366, 28, 6236, 79, 15, 62, 7890, 8, 198, 197, 20311, 62, 31077, 796, 33918, 13, 46030, 7, 26209, 13, 5239, 58, 24, 25, 12962, 198, 197, 361, 2457, 62, 31077, 13, 10134, 62, 2539, 7203, 18224, 1, 2599, 198, 197, 197, 4798, 7203, 43, 1039, 14976, 674, 5772, 353, 3815, 4943, 198, 197, 197, 4798, 7, 20311, 62, 31077, 14692, 18224, 11828, 8973, 8, 198, 197, 197, 9032, 26, 198, 197, 17772, 25, 198, 197, 197, 4798, 7203, 19904, 863, 7675, 9313, 8, 220, 220, 198 ]
1.879913
2,290
from django.db import models # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 2, 13610, 534, 4981, 994, 13, 198 ]
3.5625
16
""" *Element* A CSS Element. """ from abc import ABCMeta
[ 37811, 628, 220, 220, 220, 1635, 20180, 9, 628, 220, 317, 17391, 11703, 13, 198, 198, 37811, 198, 198, 6738, 450, 66, 1330, 9738, 48526, 628 ]
2.615385
26
from django.db import models from django.conf import settings from django.contrib.auth.models import User , auth from django.utils import timezone # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 837, 6284, 220, 198, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 198, 2, 13610, 534, 4981, 994, 13 ]
3.591837
49
"""Unit tests.""" # pylint: disable=C0116,R0903,E0401,W0703,W1201,redefined-outer-name,missing-function-docstring,E0401,C0114,W0511,W1203,C0200,C0103,W1203 from main import run_main def test_run_main( get_args_create_section_processor, get_args_refresh_links_processor, get_args_refresh_puml_processor, get_args_refresh_map_processor, ): """logical seq""" run_main(get_args_create_section_processor + ["http://google.com/docs"]) run_main(get_args_create_section_processor + ["https://cloud.google.com/docs"]) run_main( get_args_create_section_processor + ["https://cloud.google.com/docs/overview"] ) run_main(get_args_refresh_map_processor) run_main(get_args_refresh_links_processor) run_main(get_args_refresh_puml_processor)
[ 37811, 26453, 5254, 526, 15931, 198, 2, 279, 2645, 600, 25, 15560, 28, 34, 486, 1433, 11, 49, 2931, 3070, 11, 36, 3023, 486, 11, 54, 15, 36809, 11, 54, 1065, 486, 11, 445, 18156, 12, 39605, 12, 3672, 11, 45688, 12, 8818, 12, 15390, 8841, 11, 36, 3023, 486, 11, 34, 486, 1415, 11, 54, 2713, 1157, 11, 54, 1065, 3070, 11, 34, 44613, 11, 34, 486, 3070, 11, 54, 1065, 3070, 198, 198, 6738, 1388, 1330, 1057, 62, 12417, 628, 198, 4299, 1332, 62, 5143, 62, 12417, 7, 198, 220, 220, 220, 651, 62, 22046, 62, 17953, 62, 5458, 62, 41341, 11, 198, 220, 220, 220, 651, 62, 22046, 62, 5420, 3447, 62, 28751, 62, 41341, 11, 198, 220, 220, 220, 651, 62, 22046, 62, 5420, 3447, 62, 79, 388, 75, 62, 41341, 11, 198, 220, 220, 220, 651, 62, 22046, 62, 5420, 3447, 62, 8899, 62, 41341, 11, 198, 2599, 198, 220, 220, 220, 37227, 6404, 605, 33756, 37811, 198, 220, 220, 220, 1057, 62, 12417, 7, 1136, 62, 22046, 62, 17953, 62, 5458, 62, 41341, 1343, 14631, 4023, 1378, 13297, 13, 785, 14, 31628, 8973, 8, 198, 220, 220, 220, 1057, 62, 12417, 7, 1136, 62, 22046, 62, 17953, 62, 5458, 62, 41341, 1343, 14631, 5450, 1378, 17721, 13, 13297, 13, 785, 14, 31628, 8973, 8, 198, 220, 220, 220, 1057, 62, 12417, 7, 198, 220, 220, 220, 220, 220, 220, 220, 651, 62, 22046, 62, 17953, 62, 5458, 62, 41341, 1343, 14631, 5450, 1378, 17721, 13, 13297, 13, 785, 14, 31628, 14, 2502, 1177, 8973, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 1057, 62, 12417, 7, 1136, 62, 22046, 62, 5420, 3447, 62, 8899, 62, 41341, 8, 198, 220, 220, 220, 1057, 62, 12417, 7, 1136, 62, 22046, 62, 5420, 3447, 62, 28751, 62, 41341, 8, 198, 220, 220, 220, 1057, 62, 12417, 7, 1136, 62, 22046, 62, 5420, 3447, 62, 79, 388, 75, 62, 41341, 8, 198 ]
2.418462
325
from imaginarium.storage.utils import create_database_pool
[ 6738, 25007, 17756, 13, 35350, 13, 26791, 1330, 2251, 62, 48806, 62, 7742, 628, 198 ]
4.066667
15
from .GNNExplainer_ import GNNExplainer_
[ 6738, 764, 38, 6144, 18438, 10613, 62, 1330, 402, 6144, 18438, 10613, 62, 198 ]
2.928571
14
import unittest from unittest.mock import patch, MagicMock from mypy_boto3_builder.import_helpers.internal_import_record import ( InternalImportRecord, ) from mypy_boto3_builder.import_helpers.import_string import ImportString
[ 11748, 555, 715, 395, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 11, 6139, 44, 735, 198, 198, 6738, 616, 9078, 62, 65, 2069, 18, 62, 38272, 13, 11748, 62, 16794, 364, 13, 32538, 62, 11748, 62, 22105, 1330, 357, 198, 220, 220, 220, 18628, 20939, 23739, 11, 198, 8, 198, 6738, 616, 9078, 62, 65, 2069, 18, 62, 38272, 13, 11748, 62, 16794, 364, 13, 11748, 62, 8841, 1330, 17267, 10100, 628 ]
3.106667
75
from datetime import datetime, timedelta import numpy from tradingkit.pubsub.core.event import Event from tradingkit.pubsub.core.publisher import Publisher from tradingkit.pubsub.core.subscriber import Subscriber from tradingkit.pubsub.event.book import Book from tradingkit.pubsub.event.candle import Candle from tradingkit.pubsub.event.funding import Funding from tradingkit.pubsub.event.liquidation import Liquidation from tradingkit.pubsub.event.open_order import OpenOrder from tradingkit.pubsub.event.order import Order from tradingkit.pubsub.event.plot import Plot from tradingkit.pubsub.event.trade import Trade
[ 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 198, 11748, 299, 32152, 198, 198, 6738, 7313, 15813, 13, 12984, 7266, 13, 7295, 13, 15596, 1330, 8558, 198, 6738, 7313, 15813, 13, 12984, 7266, 13, 7295, 13, 12984, 8191, 1330, 28045, 198, 6738, 7313, 15813, 13, 12984, 7266, 13, 7295, 13, 7266, 1416, 24735, 1330, 3834, 1416, 24735, 198, 6738, 7313, 15813, 13, 12984, 7266, 13, 15596, 13, 2070, 1330, 4897, 198, 6738, 7313, 15813, 13, 12984, 7266, 13, 15596, 13, 46188, 293, 1330, 44973, 198, 6738, 7313, 15813, 13, 12984, 7266, 13, 15596, 13, 25032, 1330, 35249, 198, 6738, 7313, 15813, 13, 12984, 7266, 13, 15596, 13, 39250, 341, 1330, 21020, 341, 198, 6738, 7313, 15813, 13, 12984, 7266, 13, 15596, 13, 9654, 62, 2875, 1330, 4946, 18743, 198, 6738, 7313, 15813, 13, 12984, 7266, 13, 15596, 13, 2875, 1330, 8284, 198, 6738, 7313, 15813, 13, 12984, 7266, 13, 15596, 13, 29487, 1330, 28114, 198, 6738, 7313, 15813, 13, 12984, 7266, 13, 15596, 13, 25351, 1330, 9601, 628 ]
3.664706
170
import django.db.models.deletion from django.db import migrations, models
[ 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
3.26087
23
import unittest from namecom import Transfer, Domain
[ 11748, 555, 715, 395, 198, 198, 6738, 1438, 785, 1330, 20558, 11, 20021, 198 ]
3.857143
14
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from msrest.serialization import Model class SslConfiguration(Model): """SSL configuration. If configured data-plane calls to user services will be exposed over SSL only. :param status: SSL status. Allowed values are Enabled and Disabled. Possible values include: 'Enabled', 'Disabled'. Default value: "Enabled" . :type status: str or ~azure.mgmt.machinelearningcompute.models.Status :param cert: The SSL cert data in PEM format. :type cert: str :param key: The SSL key data in PEM format. This is not returned in response of GET/PUT on the resource. To see this please call listKeys API. :type key: str :param cname: The CName of the certificate. :type cname: str """ _attribute_map = { 'status': {'key': 'status', 'type': 'str'}, 'cert': {'key': 'cert', 'type': 'str'}, 'key': {'key': 'key', 'type': 'str'}, 'cname': {'key': 'cname', 'type': 'str'}, }
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 16529, 35937, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 198, 2, 5964, 1321, 13, 198, 2, 198, 2, 6127, 7560, 416, 5413, 357, 49, 8, 11160, 19452, 6127, 35986, 13, 198, 2, 19179, 743, 2728, 11491, 4069, 290, 481, 307, 2626, 611, 262, 2438, 318, 198, 2, 16935, 515, 13, 198, 2, 16529, 35937, 198, 198, 6738, 13845, 2118, 13, 46911, 1634, 1330, 9104, 628, 198, 4871, 311, 6649, 38149, 7, 17633, 2599, 198, 220, 220, 220, 37227, 31127, 8398, 13, 1002, 17839, 1366, 12, 14382, 3848, 284, 2836, 2594, 481, 307, 198, 220, 220, 220, 7362, 625, 25952, 691, 13, 628, 220, 220, 220, 1058, 17143, 3722, 25, 25952, 3722, 13, 1439, 6972, 3815, 389, 37344, 290, 43201, 13, 198, 220, 220, 220, 220, 33671, 3815, 2291, 25, 705, 20491, 3256, 705, 7279, 4510, 4458, 15161, 1988, 25, 366, 20491, 1, 764, 198, 220, 220, 220, 1058, 4906, 3722, 25, 965, 393, 5299, 1031, 495, 13, 11296, 16762, 13, 30243, 40684, 5589, 1133, 13, 27530, 13, 19580, 198, 220, 220, 220, 1058, 17143, 5051, 25, 383, 25952, 5051, 1366, 287, 350, 3620, 5794, 13, 198, 220, 220, 220, 1058, 4906, 5051, 25, 965, 198, 220, 220, 220, 1058, 17143, 1994, 25, 383, 25952, 1994, 1366, 287, 350, 3620, 5794, 13, 770, 318, 407, 4504, 287, 198, 220, 220, 220, 220, 2882, 286, 17151, 14, 30076, 319, 262, 8271, 13, 1675, 766, 428, 3387, 869, 1351, 40729, 7824, 13, 198, 220, 220, 220, 1058, 4906, 1994, 25, 965, 198, 220, 220, 220, 1058, 17143, 269, 3672, 25, 383, 327, 5376, 286, 262, 10703, 13, 198, 220, 220, 220, 1058, 4906, 269, 3672, 25, 965, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 4808, 42348, 62, 8899, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 13376, 10354, 1391, 6, 2539, 10354, 705, 13376, 3256, 705, 4906, 10354, 705, 2536, 6, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 705, 22583, 10354, 1391, 6, 2539, 10354, 705, 22583, 3256, 705, 4906, 10354, 705, 2536, 6, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 705, 2539, 10354, 1391, 6, 2539, 10354, 705, 2539, 3256, 705, 4906, 10354, 705, 2536, 6, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 705, 66, 3672, 10354, 1391, 6, 2539, 10354, 705, 66, 3672, 3256, 705, 4906, 10354, 705, 2536, 6, 5512, 198, 220, 220, 220, 1782, 198 ]
3.331776
428
# coding=utf-8 # Copyright 2021 DeepMind Technologies Limited. # # 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. """A class that talks directly to the telnet console of the Android emulator. NOTE: This class will be deprecated in favour of gRPC-based communication. """ import os import telnetlib import threading import time from typing import List, Optional import uuid from absl import logging from android_env.components import errors from android_env.proto import raw_observation_pb2 import numpy as np class _FifoReader(threading.Thread): """A thread which reads from a Unix pipe. This thread is meant to run indefinitely, consuming from `fifo` and providing observations via `latest_observation()`. Any exceptions that are caught in `run()` are forwarded to `latest_exception()` and then execution is terminated. Users of this thread may call `stop()` to set a signal on `self._terminate_event`, which is checked periodically by this thread to end execution, but the `f.read()` call below may get stuck indefinitely causing this thread to block until the whole process is terminated. In this case, no CPU will be used, but a file descriptor will be consumed (from the `open()` call) and threading state will linger until the process dies. This thread was designed to terminate when facing possibly recoverable errors allowing its caller thread to time out when waiting on `data_ready()`, then optionally spawning a new thread to continue the work. """ def data_ready(self) -> threading.Condition: """Returns a condition variable that protects shared state.""" return self._data_ready class EmulatorConsole(): """Handles communication with the emulator.""" def __init__(self, console_port: int, auth_code: str = '', tmp_dir: str = '/tmp', pipe_read_timeout_sec: float = 20.0): """Initializes this EmulatorConsole. Args: console_port: Integer auth_code: String tmp_dir: String pipe_read_timeout_sec: Maximum amount of time in seconds to wait for reading data from a pipe. """ self._console_port = console_port self._tmp_dir = tmp_dir self._pipe_read_timeout_sec = pipe_read_timeout_sec self._read_thread = None self._setup_fifo() self._connect() self._authenticate_to_console(auth_code) self._read_thread = _FifoReader(fifo=self._fifo) self._read_thread.daemon = True self._read_thread.start() def fetch_screenshot(self) -> Optional[List[np.ndarray]]: """Returns the observation via telnet through a pipe. This makes use of a feature in the AndroidEmulator (https://android-review.googlesource.com/c/platform/external/qemu/+/891716) that saves screenshots as a binary protobuf instead of a compressed PNG, greatly improving the performance and latency. Returns: Observation Raises: errors.ReadObservationError: if the observation could not be read. """ # Ask the emulator for a screenshot. self._connection.write(b'screenrecord screenshot %s\n' % self._fifo.encode('utf-8')) with self._read_thread.data_ready(): # Check for outstanding errors before waiting. if self._read_thread.latest_exception(): raise self._read_thread.latest_exception() if self._read_thread.data_ready().wait( timeout=self._pipe_read_timeout_sec): # Check for errors while reading observations. if self._read_thread.latest_exception(): raise self._read_thread.latest_exception() # Check if the observation was successfully read. if self._read_thread.latest_observation(): return self._read_thread.latest_observation() else: raise errors.ObservationDecodingError( 'No observation from reader thread.') else: # Timed out. # _read_fifo is stuck, so we spawn a new thread. self._read_thread = _FifoReader(fifo=self._fifo) self._read_thread.daemon = True self._read_thread.start() raise errors.PipeTimedOutError() def send_mouse_action(self, x: str, y: str, down: bool = True) -> None: """Sends mouse events via the emulator telnet console connection. This functionality is already available in the emulator and is relatively fast. It sends a "one-finger" touch event to the screen (i.e. it does not support multitouch). Args: x: Integer The absolute value for the x-coordinate. y: Integer The absolute value for the y-coordinate. down: Boolean Whether the button is down. Returns: None """ self._connection.write( ('event mouse %s %s 0 %s\n' % (int(x), int(y), '1' if down else '0')).encode('utf-8')) def _setup_fifo(self): """Creates a named pipe for receiving images from the console.""" self._fifo = os.path.join(self._tmp_dir, 'screenshot_pipe-%s.pb' % uuid.uuid4()) if os.path.isfile(self._fifo): # Remove it before trying to make a new one. os.remove(self._fifo) # The following call may raise OSError if it can't create the FIFO, but we # do not want to catch it because it may hide other more serious errors. # Because we're executing this at the start of the server, we prefer to fail # fast and loud. os.mkfifo(self._fifo) def _connect(self): """Connects to the emulator console.""" logging.info('Connecting to Emulator console on port %s...', self._console_port) num_connection_attempts = 3 connected = False retries = 0 while not connected: try: self._connection = telnetlib.Telnet('localhost', self._console_port) connected = True except ConnectionRefusedError: retries += 1 if retries >= num_connection_attempts: raise errors.ConsoleConnectionError() logging.error('Console connection refused, retrying in 5 seconds.') time.sleep(5) logging.info('Done connecting to Emulator console on port %s.', self._console_port)
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 33448, 10766, 28478, 21852, 15302, 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, 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, 37811, 32, 1398, 326, 6130, 3264, 284, 262, 13632, 3262, 8624, 286, 262, 5565, 38274, 13, 198, 198, 16580, 25, 770, 1398, 481, 307, 39224, 287, 7075, 286, 308, 49, 5662, 12, 3106, 6946, 13, 198, 37811, 198, 198, 11748, 28686, 198, 11748, 13632, 3262, 8019, 198, 11748, 4704, 278, 198, 11748, 640, 198, 6738, 19720, 1330, 7343, 11, 32233, 198, 11748, 334, 27112, 198, 198, 6738, 2352, 75, 1330, 18931, 198, 6738, 19286, 62, 24330, 13, 5589, 3906, 1330, 8563, 198, 6738, 19286, 62, 24330, 13, 1676, 1462, 1330, 8246, 62, 672, 3168, 341, 62, 40842, 17, 198, 198, 11748, 299, 32152, 355, 45941, 628, 198, 4871, 4808, 44403, 78, 33634, 7, 16663, 278, 13, 16818, 2599, 198, 220, 37227, 32, 4704, 543, 9743, 422, 257, 33501, 12656, 13, 628, 220, 770, 4704, 318, 4001, 284, 1057, 24391, 11, 18587, 422, 4600, 32041, 78, 63, 290, 4955, 198, 220, 13050, 2884, 4600, 42861, 62, 672, 3168, 341, 3419, 44646, 628, 220, 4377, 13269, 326, 389, 4978, 287, 4600, 5143, 3419, 63, 389, 28308, 284, 198, 220, 4600, 42861, 62, 1069, 4516, 3419, 63, 290, 788, 9706, 318, 23083, 13, 628, 220, 18987, 286, 428, 4704, 743, 869, 4600, 11338, 3419, 63, 284, 900, 257, 6737, 319, 198, 220, 4600, 944, 13557, 23705, 378, 62, 15596, 47671, 543, 318, 10667, 26034, 416, 428, 4704, 284, 886, 198, 220, 9706, 11, 475, 262, 4600, 69, 13, 961, 3419, 63, 869, 2174, 743, 651, 7819, 24391, 6666, 198, 220, 428, 4704, 284, 2512, 1566, 262, 2187, 1429, 318, 23083, 13, 554, 428, 1339, 11, 645, 198, 220, 9135, 481, 307, 973, 11, 475, 257, 2393, 43087, 481, 307, 13529, 357, 6738, 262, 4600, 9654, 3419, 63, 198, 220, 869, 8, 290, 4704, 278, 1181, 481, 31402, 1566, 262, 1429, 10564, 13, 628, 220, 770, 4704, 373, 3562, 284, 23654, 618, 6476, 5457, 8551, 540, 8563, 198, 220, 5086, 663, 24955, 4704, 284, 640, 503, 618, 4953, 319, 4600, 7890, 62, 1493, 3419, 47671, 788, 198, 220, 42976, 38896, 257, 649, 4704, 284, 2555, 262, 670, 13, 198, 220, 37227, 628, 220, 825, 1366, 62, 1493, 7, 944, 8, 4613, 4704, 278, 13, 48362, 25, 198, 220, 220, 220, 37227, 35561, 257, 4006, 7885, 326, 17289, 4888, 1181, 526, 15931, 198, 220, 220, 220, 1441, 2116, 13557, 7890, 62, 1493, 628, 198, 4871, 2295, 8927, 47581, 33529, 198, 220, 37227, 12885, 829, 6946, 351, 262, 38274, 526, 15931, 628, 220, 825, 11593, 15003, 834, 7, 944, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8624, 62, 634, 25, 493, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6284, 62, 8189, 25, 965, 796, 705, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45218, 62, 15908, 25, 965, 796, 31051, 22065, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12656, 62, 961, 62, 48678, 62, 2363, 25, 12178, 796, 1160, 13, 15, 2599, 198, 220, 220, 220, 37227, 24243, 4340, 428, 2295, 8927, 47581, 13, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 8624, 62, 634, 25, 34142, 198, 220, 220, 220, 220, 220, 6284, 62, 8189, 25, 10903, 198, 220, 220, 220, 220, 220, 45218, 62, 15908, 25, 10903, 198, 220, 220, 220, 220, 220, 12656, 62, 961, 62, 48678, 62, 2363, 25, 22246, 2033, 286, 640, 287, 4201, 284, 4043, 329, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3555, 1366, 422, 257, 12656, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2116, 13557, 41947, 62, 634, 796, 8624, 62, 634, 198, 220, 220, 220, 2116, 13557, 22065, 62, 15908, 796, 45218, 62, 15908, 198, 220, 220, 220, 2116, 13557, 34360, 62, 961, 62, 48678, 62, 2363, 796, 12656, 62, 961, 62, 48678, 62, 2363, 198, 220, 220, 220, 2116, 13557, 961, 62, 16663, 796, 6045, 198, 220, 220, 220, 2116, 13557, 40406, 62, 32041, 78, 3419, 198, 220, 220, 220, 2116, 13557, 8443, 3419, 198, 220, 220, 220, 2116, 13557, 41299, 5344, 62, 1462, 62, 41947, 7, 18439, 62, 8189, 8, 628, 220, 220, 220, 2116, 13557, 961, 62, 16663, 796, 4808, 44403, 78, 33634, 7, 32041, 78, 28, 944, 13557, 32041, 78, 8, 198, 220, 220, 220, 2116, 13557, 961, 62, 16663, 13, 6814, 7966, 796, 6407, 198, 220, 220, 220, 2116, 13557, 961, 62, 16663, 13, 9688, 3419, 628, 220, 825, 21207, 62, 1416, 26892, 7, 944, 8, 4613, 32233, 58, 8053, 58, 37659, 13, 358, 18747, 60, 5974, 198, 220, 220, 220, 37227, 35561, 262, 13432, 2884, 13632, 3262, 832, 257, 12656, 13, 628, 220, 220, 220, 770, 1838, 779, 286, 257, 3895, 287, 262, 5565, 10161, 8927, 198, 220, 220, 220, 357, 5450, 1378, 19411, 12, 19023, 13, 2188, 519, 829, 1668, 13, 785, 14, 66, 14, 24254, 14, 22615, 14, 80, 368, 84, 28404, 14, 4531, 1558, 1433, 8, 198, 220, 220, 220, 326, 16031, 23322, 355, 257, 13934, 1237, 672, 3046, 2427, 286, 257, 25388, 36182, 11, 198, 220, 220, 220, 9257, 10068, 262, 2854, 290, 24812, 13, 628, 220, 220, 220, 16409, 25, 11086, 13208, 628, 220, 220, 220, 7567, 2696, 25, 198, 220, 220, 220, 220, 220, 8563, 13, 5569, 31310, 13208, 12331, 25, 611, 262, 13432, 714, 407, 307, 1100, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 16981, 262, 38274, 329, 257, 22032, 13, 198, 220, 220, 220, 2116, 13557, 38659, 13, 13564, 7, 65, 338, 32060, 22105, 22032, 4064, 82, 59, 77, 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, 2116, 13557, 32041, 78, 13, 268, 8189, 10786, 40477, 12, 23, 6, 4008, 628, 220, 220, 220, 351, 2116, 13557, 961, 62, 16663, 13, 7890, 62, 1493, 33529, 198, 220, 220, 220, 220, 220, 1303, 6822, 329, 11660, 8563, 878, 4953, 13, 198, 220, 220, 220, 220, 220, 611, 2116, 13557, 961, 62, 16663, 13, 42861, 62, 1069, 4516, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 5298, 2116, 13557, 961, 62, 16663, 13, 42861, 62, 1069, 4516, 3419, 628, 220, 220, 220, 220, 220, 611, 2116, 13557, 961, 62, 16663, 13, 7890, 62, 1493, 22446, 17077, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26827, 28, 944, 13557, 34360, 62, 961, 62, 48678, 62, 2363, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 6822, 329, 8563, 981, 3555, 13050, 13, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13557, 961, 62, 16663, 13, 42861, 62, 1069, 4516, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 2116, 13557, 961, 62, 16663, 13, 42861, 62, 1069, 4516, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 6822, 611, 262, 13432, 373, 7675, 1100, 13, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13557, 961, 62, 16663, 13, 42861, 62, 672, 3168, 341, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 961, 62, 16663, 13, 42861, 62, 672, 3168, 341, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 8563, 13, 31310, 13208, 10707, 7656, 12331, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 2949, 13432, 422, 9173, 4704, 2637, 8, 198, 220, 220, 220, 220, 220, 2073, 25, 220, 1303, 5045, 276, 503, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 4808, 961, 62, 32041, 78, 318, 7819, 11, 523, 356, 10922, 257, 649, 4704, 13, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 961, 62, 16663, 796, 4808, 44403, 78, 33634, 7, 32041, 78, 28, 944, 13557, 32041, 78, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 961, 62, 16663, 13, 6814, 7966, 796, 6407, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 961, 62, 16663, 13, 9688, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 5298, 8563, 13, 47, 3757, 14967, 276, 7975, 12331, 3419, 628, 220, 825, 3758, 62, 35888, 62, 2673, 7, 944, 11, 2124, 25, 965, 11, 331, 25, 965, 11, 866, 25, 20512, 796, 6407, 8, 4613, 6045, 25, 198, 220, 220, 220, 37227, 50, 2412, 10211, 2995, 2884, 262, 38274, 13632, 3262, 8624, 4637, 13, 628, 220, 220, 220, 770, 11244, 318, 1541, 1695, 287, 262, 38274, 290, 318, 5365, 198, 220, 220, 220, 3049, 13, 632, 12800, 257, 366, 505, 12, 35461, 1, 3638, 1785, 284, 262, 3159, 357, 72, 13, 68, 13, 340, 857, 407, 198, 220, 220, 220, 1104, 41785, 7673, 737, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 2124, 25, 34142, 383, 4112, 1988, 329, 262, 2124, 12, 37652, 4559, 13, 198, 220, 220, 220, 220, 220, 331, 25, 34142, 383, 4112, 1988, 329, 262, 331, 12, 37652, 4559, 13, 198, 220, 220, 220, 220, 220, 866, 25, 41146, 10127, 262, 4936, 318, 866, 13, 198, 220, 220, 220, 16409, 25, 6045, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2116, 13557, 38659, 13, 13564, 7, 198, 220, 220, 220, 220, 220, 220, 220, 19203, 15596, 10211, 4064, 82, 4064, 82, 657, 4064, 82, 59, 77, 6, 4064, 198, 220, 220, 220, 220, 220, 220, 220, 220, 357, 600, 7, 87, 828, 493, 7, 88, 828, 705, 16, 6, 611, 866, 2073, 705, 15, 11537, 737, 268, 8189, 10786, 40477, 12, 23, 6, 4008, 628, 220, 825, 4808, 40406, 62, 32041, 78, 7, 944, 2599, 198, 220, 220, 220, 37227, 16719, 274, 257, 3706, 12656, 329, 6464, 4263, 422, 262, 8624, 526, 15931, 198, 220, 220, 220, 2116, 13557, 32041, 78, 796, 28686, 13, 6978, 13, 22179, 7, 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, 705, 1416, 26892, 62, 34360, 12, 4, 82, 13, 40842, 6, 4064, 334, 27112, 13, 12303, 312, 19, 28955, 198, 220, 220, 220, 611, 28686, 13, 6978, 13, 4468, 576, 7, 944, 13557, 32041, 78, 2599, 220, 1303, 17220, 340, 878, 2111, 284, 787, 257, 649, 530, 13, 198, 220, 220, 220, 220, 220, 28686, 13, 28956, 7, 944, 13557, 32041, 78, 8, 628, 220, 220, 220, 1303, 383, 1708, 869, 743, 5298, 440, 5188, 81, 1472, 611, 340, 460, 470, 2251, 262, 376, 5064, 46, 11, 475, 356, 198, 220, 220, 220, 1303, 466, 407, 765, 284, 4929, 340, 780, 340, 743, 7808, 584, 517, 2726, 8563, 13, 198, 220, 220, 220, 1303, 4362, 356, 821, 23710, 428, 379, 262, 923, 286, 262, 4382, 11, 356, 4702, 284, 2038, 198, 220, 220, 220, 1303, 3049, 290, 7812, 13, 198, 220, 220, 220, 28686, 13, 28015, 32041, 78, 7, 944, 13557, 32041, 78, 8, 628, 220, 825, 4808, 8443, 7, 944, 2599, 198, 220, 220, 220, 37227, 13313, 82, 284, 262, 38274, 8624, 526, 15931, 198, 220, 220, 220, 18931, 13, 10951, 10786, 13313, 278, 284, 2295, 8927, 8624, 319, 2493, 4064, 82, 986, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 41947, 62, 634, 8, 198, 220, 220, 220, 997, 62, 38659, 62, 1078, 1791, 82, 796, 513, 198, 220, 220, 220, 5884, 796, 10352, 198, 220, 220, 220, 1005, 1678, 796, 657, 198, 220, 220, 220, 981, 407, 5884, 25, 198, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 38659, 796, 13632, 3262, 8019, 13, 33317, 3262, 10786, 36750, 3256, 2116, 13557, 41947, 62, 634, 8, 198, 220, 220, 220, 220, 220, 220, 220, 5884, 796, 6407, 198, 220, 220, 220, 220, 220, 2845, 26923, 8134, 1484, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1005, 1678, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1005, 1678, 18189, 997, 62, 38659, 62, 1078, 1791, 82, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 8563, 13, 47581, 32048, 12331, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 18931, 13, 18224, 10786, 47581, 4637, 6520, 11, 1005, 14992, 287, 642, 4201, 2637, 8, 198, 220, 220, 220, 220, 220, 220, 220, 640, 13, 42832, 7, 20, 8, 198, 220, 220, 220, 18931, 13, 10951, 10786, 45677, 14320, 284, 2295, 8927, 8624, 319, 2493, 4064, 82, 2637, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 41947, 62, 634, 8, 198 ]
2.901267
2,289
from django.contrib import admin from .models import * admin.site.register(Profession) admin.site.register(Service, ServiceAdmin) admin.site.register(Rating, RatingAdmin) admin.site.register(Rent, RentAdmin) admin.site.register(PriceList, PriceListAdmin) admin.site.register(Order)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 764, 27530, 1330, 1635, 628, 628, 628, 198, 28482, 13, 15654, 13, 30238, 7, 15404, 2521, 8, 198, 28482, 13, 15654, 13, 30238, 7, 16177, 11, 4809, 46787, 8, 198, 28482, 13, 15654, 13, 30238, 7, 29321, 11, 12028, 46787, 8, 198, 28482, 13, 15654, 13, 30238, 7, 49, 298, 11, 29832, 46787, 8, 198, 28482, 13, 15654, 13, 30238, 7, 18124, 8053, 11, 7886, 8053, 46787, 8, 198, 28482, 13, 15654, 13, 30238, 7, 18743, 8, 198 ]
3.247191
89
import torch from torch.nn import functional as F from torchmetrics import Metric from models.components.utils import AttentionMask
[ 11748, 28034, 198, 6738, 28034, 13, 20471, 1330, 10345, 355, 376, 198, 6738, 28034, 4164, 10466, 1330, 3395, 1173, 198, 198, 6738, 4981, 13, 5589, 3906, 13, 26791, 1330, 47406, 45195, 198 ]
4.15625
32
"""Test about view""" import pytest @pytest.mark.django_db def test_about(api_request): """Test about GET endpoint""" response = api_request("get", "common:about") assert response.status_code == 200 assert "product_name" in response.data assert "version" in response.data
[ 37811, 14402, 546, 1570, 37811, 198, 11748, 12972, 9288, 628, 198, 31, 9078, 9288, 13, 4102, 13, 28241, 14208, 62, 9945, 198, 4299, 1332, 62, 10755, 7, 15042, 62, 25927, 2599, 198, 220, 220, 220, 37227, 14402, 546, 17151, 36123, 37811, 198, 220, 220, 220, 2882, 796, 40391, 62, 25927, 7203, 1136, 1600, 366, 11321, 25, 10755, 4943, 198, 220, 220, 220, 6818, 2882, 13, 13376, 62, 8189, 6624, 939, 198, 220, 220, 220, 6818, 366, 11167, 62, 3672, 1, 287, 2882, 13, 7890, 198, 220, 220, 220, 6818, 366, 9641, 1, 287, 2882, 13, 7890, 198 ]
3.030928
97
if __name__ == "__main__": list1 = [1,4,2,5,6,5,3] print('\n\n-----Stalin Sorting Algorithm-----\n') print('unsorted list: '+str(list1)) print('sorted list: '+str(stalinSort(list1)))
[ 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1351, 16, 796, 685, 16, 11, 19, 11, 17, 11, 20, 11, 21, 11, 20, 11, 18, 60, 198, 220, 220, 220, 3601, 10786, 59, 77, 59, 77, 30934, 1273, 14414, 311, 24707, 978, 42289, 30934, 59, 77, 11537, 198, 220, 220, 220, 3601, 10786, 13271, 9741, 1351, 25, 220, 220, 705, 10, 2536, 7, 4868, 16, 4008, 198, 220, 220, 220, 3601, 10786, 82, 9741, 1351, 25, 220, 220, 220, 220, 705, 10, 2536, 7, 7757, 259, 42758, 7, 4868, 16, 22305 ]
2.080808
99
import numpy import tflearn import tensorflow import json import random import datetime from utils.utils import net, label, kata, data, sekantung_kata model = tflearn.DNN(net) model.load("model/model.tfl") if __name__ == '__main__': chat()
[ 11748, 299, 32152, 198, 11748, 256, 27919, 1501, 198, 11748, 11192, 273, 11125, 198, 11748, 33918, 198, 11748, 4738, 198, 11748, 4818, 8079, 198, 6738, 3384, 4487, 13, 26791, 1330, 2010, 11, 6167, 11, 479, 1045, 11, 1366, 11, 384, 74, 415, 2150, 62, 74, 1045, 198, 198, 19849, 796, 256, 27919, 1501, 13, 35, 6144, 7, 3262, 8, 198, 19849, 13, 2220, 7203, 19849, 14, 19849, 13, 83, 2704, 4943, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 8537, 3419, 198 ]
2.744444
90
if __name__ == '__main__': n = 4 Solution().tower_of_hanoi(n, 'A', 'B', 'C')
[ 220, 220, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 299, 796, 604, 198, 220, 28186, 22446, 36170, 62, 1659, 62, 71, 5733, 72, 7, 77, 11, 705, 32, 3256, 705, 33, 3256, 705, 34, 11537, 198 ]
2
42
from typing import List from fastapi.encoders import jsonable_encoder from sqlalchemy.orm import Session from app.core.security import encrypt_secret from app.crud.base import CRUDBase from app.models.item import Item from app.schemas.item import ItemCreate, ItemUpdate import json item = CRUDItem(Item)
[ 6738, 19720, 1330, 7343, 198, 6738, 3049, 15042, 13, 12685, 375, 364, 1330, 33918, 540, 62, 12685, 12342, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 23575, 198, 6738, 598, 13, 7295, 13, 12961, 1330, 34117, 62, 21078, 198, 6738, 598, 13, 6098, 463, 13, 8692, 1330, 8740, 8322, 14881, 198, 6738, 598, 13, 27530, 13, 9186, 1330, 9097, 198, 6738, 598, 13, 1416, 4411, 292, 13, 9186, 1330, 9097, 16447, 11, 9097, 10260, 198, 11748, 33918, 628, 198, 9186, 796, 8740, 8322, 7449, 7, 7449, 8, 198 ]
3.477273
88
for i in range(0, 10): print (i),
[ 1640, 220, 1312, 287, 2837, 7, 15, 11, 838, 2599, 198, 220, 220, 220, 3601, 357, 72, 828 ]
2.111111
18
from mongoengine import *
[ 198, 6738, 285, 25162, 18392, 1330, 1635, 198 ]
3.375
8
# -*- coding: utf-8 -*- import scrapy from vendors.items import VendorWine from vendors.utils import float_or_none
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 15881, 88, 198, 198, 6738, 17192, 13, 23814, 1330, 39896, 54, 500, 198, 6738, 17192, 13, 26791, 1330, 12178, 62, 273, 62, 23108, 628, 198 ]
2.95
40
from fisher_py.net_wrapping import NetWrapperBase from fisher_py.data import FileHeader, FileError, SequenceInfo from fisher_py.data.business import SampleInformation, BracketType from typing import List
[ 6738, 17685, 62, 9078, 13, 3262, 62, 29988, 2105, 1330, 3433, 36918, 2848, 14881, 198, 6738, 17685, 62, 9078, 13, 7890, 1330, 9220, 39681, 11, 9220, 12331, 11, 45835, 12360, 198, 6738, 17685, 62, 9078, 13, 7890, 13, 22680, 1330, 27565, 21918, 11, 1709, 8317, 6030, 198, 6738, 19720, 1330, 7343, 628, 198 ]
3.886792
53
import contextlib from pathlib import Path from typing import NamedTuple import ir_datasets from ir_datasets.util import GzipExtract, DownloadConfig, _DownloadConfig from ir_datasets.datasets.base import Dataset, YamlDocumentation from ir_datasets.formats import TsvDocs, CLIRMatrixQueries, CLIRMatrixQrels NAME = 'clirmatrix' _logger = ir_datasets.log.easy() QRELS_DEFS = { 6: "6", 5: "5", 4: "4", 3: "3", 2: "2", 1: "1", 0: "0", } collection = _init()
[ 11748, 4732, 8019, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 34441, 51, 29291, 198, 11748, 4173, 62, 19608, 292, 1039, 198, 6738, 4173, 62, 19608, 292, 1039, 13, 22602, 1330, 402, 13344, 11627, 974, 11, 10472, 16934, 11, 4808, 10002, 16934, 198, 6738, 4173, 62, 19608, 292, 1039, 13, 19608, 292, 1039, 13, 8692, 1330, 16092, 292, 316, 11, 14063, 75, 24941, 341, 198, 6738, 4173, 62, 19608, 292, 1039, 13, 687, 1381, 1330, 13146, 85, 23579, 82, 11, 7852, 4663, 46912, 4507, 10640, 11, 7852, 4663, 46912, 48, 2411, 82, 198, 198, 20608, 796, 705, 565, 2533, 265, 8609, 6, 198, 198, 62, 6404, 1362, 796, 4173, 62, 19608, 292, 1039, 13, 6404, 13, 38171, 3419, 198, 198, 48, 2200, 6561, 62, 7206, 10652, 796, 1391, 198, 220, 220, 220, 718, 25, 366, 21, 1600, 198, 220, 220, 220, 642, 25, 366, 20, 1600, 198, 220, 220, 220, 604, 25, 366, 19, 1600, 198, 220, 220, 220, 513, 25, 366, 18, 1600, 198, 220, 220, 220, 362, 25, 366, 17, 1600, 198, 220, 220, 220, 352, 25, 366, 16, 1600, 198, 220, 220, 220, 657, 25, 366, 15, 1600, 198, 92, 628, 198, 43681, 796, 4808, 15003, 3419, 198 ]
2.399015
203
n=int(input()) m=1000000007 dp=[0]*(n+1) dp[0]=1 for i in range(1,n+1): for j in range(1,7): if i-j >= 0: dp[i]=(dp[i]+dp[i-j])%m else: break print(dp[n])
[ 77, 28, 600, 7, 15414, 28955, 198, 76, 28, 16, 8269, 22, 198, 26059, 41888, 15, 60, 9, 7, 77, 10, 16, 8, 198, 26059, 58, 15, 22241, 16, 198, 1640, 1312, 287, 2837, 7, 16, 11, 77, 10, 16, 2599, 198, 220, 220, 220, 329, 474, 287, 2837, 7, 16, 11, 22, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1312, 12, 73, 18189, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 79, 58, 72, 60, 16193, 26059, 58, 72, 48688, 26059, 58, 72, 12, 73, 12962, 4, 76, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2270, 198, 4798, 7, 26059, 58, 77, 12962 ]
1.534884
129
# This is a small python snippet which introduces how to create a class with a constructor, # some functions inside the class and their usage. # Creating an instance of object x = Store("Security Books") # Adding items in stock x.add_item("Gray Hat Hacking", 34) x.add_item("Rafay Baloch", 34.42) # Total of stock items print("The total of items is: ", x.stock_price())
[ 2, 770, 318, 257, 1402, 21015, 39442, 543, 20718, 703, 284, 2251, 257, 1398, 351, 257, 23772, 11, 198, 2, 617, 5499, 2641, 262, 1398, 290, 511, 8748, 13, 198, 198, 2, 30481, 281, 4554, 286, 2134, 198, 87, 796, 9363, 7203, 24074, 13661, 4943, 198, 198, 2, 18247, 3709, 287, 4283, 198, 87, 13, 2860, 62, 9186, 7203, 46130, 10983, 367, 5430, 1600, 4974, 8, 198, 87, 13, 2860, 62, 9186, 7203, 49, 1878, 323, 8528, 5374, 1600, 4974, 13, 3682, 8, 198, 198, 2, 7472, 286, 4283, 3709, 198, 4798, 7203, 464, 2472, 286, 3709, 318, 25, 33172, 2124, 13, 13578, 62, 20888, 28955, 198 ]
3.485981
107
""" The client class has a request method that allows all sorts of generic API requests to Adobe's v1.4 REST API. To get a comprehensive overview of available APIs and methods check out the official Adobe Analytics API Explorer: https://marketing.adobe.com/developer/api-explorer """ from adobe_analytics import Client client = Client.from_json("my_path.json") # The request below returns a list of all evars available in all specified report suites. result = client.request( api="ReportSuite", method="GetEvars", data={ "rsid_list": [ "my_report_suite_id_1", "my_report_suite_id_2", "...", "my_report_suite_id_n" ] } ) print(result)
[ 37811, 198, 464, 5456, 1398, 468, 257, 2581, 2446, 326, 3578, 477, 10524, 286, 14276, 7824, 7007, 284, 21771, 338, 410, 16, 13, 19, 30617, 7824, 13, 198, 198, 2514, 651, 257, 9815, 16700, 286, 1695, 23113, 290, 5050, 2198, 503, 262, 1743, 21771, 30437, 7824, 19142, 25, 198, 5450, 1378, 10728, 278, 13, 36752, 13, 785, 14, 16244, 263, 14, 15042, 12, 20676, 11934, 198, 37811, 198, 6738, 512, 5910, 62, 38200, 14094, 1330, 20985, 198, 198, 16366, 796, 20985, 13, 6738, 62, 17752, 7203, 1820, 62, 6978, 13, 17752, 4943, 198, 198, 2, 383, 2581, 2174, 5860, 257, 1351, 286, 477, 819, 945, 1695, 287, 477, 7368, 989, 45861, 13, 198, 20274, 796, 5456, 13, 25927, 7, 198, 220, 220, 220, 40391, 2625, 19100, 5606, 578, 1600, 198, 220, 220, 220, 2446, 2625, 3855, 15200, 945, 1600, 198, 220, 220, 220, 1366, 34758, 198, 220, 220, 220, 220, 220, 220, 220, 366, 3808, 312, 62, 4868, 1298, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 1820, 62, 13116, 62, 2385, 578, 62, 312, 62, 16, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 1820, 62, 13116, 62, 2385, 578, 62, 312, 62, 17, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 9313, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 1820, 62, 13116, 62, 2385, 578, 62, 312, 62, 77, 1, 198, 220, 220, 220, 220, 220, 220, 220, 2361, 198, 220, 220, 220, 1782, 198, 8, 198, 4798, 7, 20274, 8, 198 ]
2.665428
269
import os from io import BytesIO from luabins import decode_luabins, encode_luabins
[ 11748, 28686, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 198, 6738, 300, 84, 397, 1040, 1330, 36899, 62, 2290, 397, 1040, 11, 37773, 62, 2290, 397, 1040, 628 ]
2.965517
29
from django.test import TestCase import datetime from django.utils import timezone from article.models import ArticlePost from django.contrib.auth.models import User from time import sleep from django.urls import reverse
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 11748, 4818, 8079, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 6738, 2708, 13, 27530, 1330, 10172, 6307, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 198, 6738, 640, 1330, 3993, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 628 ]
3.844828
58
import json import os from mlserver import MLModel from mlserver.types import InferenceRequest, InferenceResponse from mlserver.utils import get_model_uri from .serve.base import BaseModel from .serve.constants import ENV_TEMPO_RUNTIME_OPTIONS from .serve.loader import load from .serve.metadata import ModelFramework, RuntimeOptions from .serve.utils import PredictMethodAttr
[ 11748, 33918, 198, 11748, 28686, 198, 198, 6738, 25962, 15388, 1330, 10373, 17633, 198, 6738, 25962, 15388, 13, 19199, 1330, 554, 4288, 18453, 11, 554, 4288, 31077, 198, 6738, 25962, 15388, 13, 26791, 1330, 651, 62, 19849, 62, 9900, 198, 198, 6738, 764, 2655, 303, 13, 8692, 1330, 7308, 17633, 198, 6738, 764, 2655, 303, 13, 9979, 1187, 1330, 12964, 53, 62, 51, 3620, 16402, 62, 49, 4944, 34694, 62, 3185, 51, 11053, 198, 6738, 764, 2655, 303, 13, 29356, 1330, 3440, 198, 6738, 764, 2655, 303, 13, 38993, 1330, 9104, 21055, 6433, 11, 43160, 29046, 198, 6738, 764, 2655, 303, 13, 26791, 1330, 49461, 17410, 8086, 81, 628, 198 ]
3.463636
110
from __future__ import absolute_import from __future__ import division from __future__ import print_function import math import tensorflow as tf import tensorflow.contrib.slim as slim model_params = { 'basic': ([0, 0, 0, 0], [16, 32, 64, 128]), 'test': ([0, 1, 2, 3, 2], [64, [64,128], [128,256], [256,512], [256,512]], 3, 16), #'test': ([0, 2, 3, 4, 3], [64, [64,128], [128,256], [256,512], [256,512]], 3, 16), #'test': ([0, 3, 4, 6, 3], [64, [64,128], [128,256], [256,512], [256,512]], 3, 16), #'test': ([0, 0, 0, 0, 0], [64, [64,128], [128,256], [256,512], [256,512]], 3, 16), '50': ([0, 3, 4, 6, 3], [64, [128,256], [256,512], [512,1024], [1024, 2048]], 7, 32), '101': ([0, 3, 4, 23, 3], [64, [128,256], [256,512], [512,1024], [1024, 2048]], 7, 32), '152': ([0, 3, 8, 36, 3], [64, [128,256], [256,512], [512,1024], [1024, 2048]], 7, 32), } batch_norm_params = { # Decay for the moving averages. 'decay': 0.995, # epsilon to prevent 0s in variance. 'epsilon': 0.001, # force in-place updates of mean and variance estimates 'updates_collections': None, # Moving averages ends up in the trainable variables collection 'variables_collections': [ tf.GraphKeys.TRAINABLE_VARIABLES ], } batch_norm_params_last = { # Decay for the moving averages. 'decay': 0.995, # epsilon to prevent 0s in variance. 'epsilon': 10e-8, # force in-place updates of mean and variance estimates 'center': False, # not use beta 'scale': False, # not use gamma 'updates_collections': None, # Moving averages ends up in the trainable variables collection 'variables_collections': [ tf.GraphKeys.TRAINABLE_VARIABLES ], } activation = tf.nn.relu # Convolution with special initialization # def conv_module(net, num_res_layers, num_kernels, cardinality, stride, reuse = None, scope = None): # with tf.variable_scope(scope, 'conv', [net], reuse=reuse): # # Use convolution for the first shortcut # shortcut = convolution(net, num_kernels[1], kernel_size=1, stride=stride, padding='SAME') # for i in range(num_res_layers): # stride = stride if i==0 else 1 # net = residual_block(net, num_kernels, cardinality, stride, # reuse=reuse, scope='block_%d' % i) # print('| ---- block_%d' % i) # net = activation(net + shortcut) # shortcut = net # return shortcut # def inference(images, keep_probability, phase_train=True, bottleneck_layer_size=512, # weight_decay=1e-4, reuse=None, model_version=None): # with slim.arg_scope([slim.conv2d, slim.separable_conv2d, slim.fully_connected], # activation_fn=activation, # normalizer_fn=slim.batch_norm, # normalizer_params=batch_norm_params): # with tf.variable_scope('ResNeXt', [images], reuse=reuse): # with slim.arg_scope([slim.batch_norm, slim.dropout], # is_training=phase_train): # print('input shape:', [dim.value for dim in images.shape]) # model_version = 'test' if model_version ==None else model_version # num_layers, num_kernels, kernel_size, cardinality = model_params[model_version] # net = convolution(images, num_kernels[0], kernel_size=kernel_size, groups=1, stride=2, padding='SAME') # print('module_1 shape:', [dim.value for dim in net.shape]) # net = conv_module(net, num_layers[1], num_kernels[1], cardinality, stride=1, scope='conv2') # print('module_2 shape:', [dim.value for dim in net.shape]) # net = conv_module(net, num_layers[2], num_kernels[2], cardinality, stride=2, scope='conv3') # print('module_3 shape:', [dim.value for dim in net.shape]) # net = conv_module(net, num_layers[3], num_kernels[3], cardinality, stride=2, scope='conv4') # print('module_4 shape:', [dim.value for dim in net.shape]) # net = conv_module(net, num_layers[4], num_kernels[4], cardinality, stride=2, scope='conv5') # print('module_5 shape:', [dim.value for dim in net.shape]) # net = slim.avg_pool2d(net, net.get_shape()[1:3], scope='avgpool5') # net = slim.flatten(net) # net = slim.fully_connected(net, 256, scope='PreBottleneck', # # weights_initializer=tf.truncated_normal_initializer(stddev=0.1), # # weights_initializer=tf.constant_initializer(0.), # weights_initializer=slim.xavier_initializer()) # net = slim.fully_connected(net, 1, scope='Bottleneck', # # weights_initializer=tf.truncated_normal_initializer(stddev=0.1), # # weights_initializer=tf.constant_initializer(0.), # weights_initializer=slim.xavier_initializer(), # activation_fn=None) # return net
[ 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, 198, 11748, 10688, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 11192, 273, 11125, 13, 3642, 822, 13, 82, 2475, 355, 18862, 198, 198, 19849, 62, 37266, 796, 1391, 198, 220, 220, 220, 705, 35487, 10354, 29565, 15, 11, 657, 11, 657, 11, 657, 4357, 685, 1433, 11, 3933, 11, 5598, 11, 13108, 46570, 198, 220, 220, 220, 705, 9288, 10354, 29565, 15, 11, 352, 11, 362, 11, 513, 11, 362, 4357, 685, 2414, 11, 685, 2414, 11, 12762, 4357, 685, 12762, 11, 11645, 4357, 685, 11645, 11, 25836, 4357, 685, 11645, 11, 25836, 60, 4357, 513, 11, 1467, 828, 198, 220, 220, 220, 1303, 6, 9288, 10354, 29565, 15, 11, 362, 11, 513, 11, 604, 11, 513, 4357, 685, 2414, 11, 685, 2414, 11, 12762, 4357, 685, 12762, 11, 11645, 4357, 685, 11645, 11, 25836, 4357, 685, 11645, 11, 25836, 60, 4357, 513, 11, 1467, 828, 198, 220, 220, 220, 1303, 6, 9288, 10354, 29565, 15, 11, 513, 11, 604, 11, 718, 11, 513, 4357, 685, 2414, 11, 685, 2414, 11, 12762, 4357, 685, 12762, 11, 11645, 4357, 685, 11645, 11, 25836, 4357, 685, 11645, 11, 25836, 60, 4357, 513, 11, 1467, 828, 198, 220, 220, 220, 1303, 6, 9288, 10354, 29565, 15, 11, 657, 11, 657, 11, 657, 11, 657, 4357, 685, 2414, 11, 685, 2414, 11, 12762, 4357, 685, 12762, 11, 11645, 4357, 685, 11645, 11, 25836, 4357, 685, 11645, 11, 25836, 60, 4357, 513, 11, 1467, 828, 198, 220, 220, 220, 705, 1120, 10354, 220, 220, 29565, 15, 11, 513, 11, 604, 11, 718, 11, 513, 4357, 685, 2414, 11, 685, 12762, 11, 11645, 4357, 685, 11645, 11, 25836, 4357, 685, 25836, 11, 35500, 4357, 685, 35500, 11, 36117, 60, 4357, 767, 11, 3933, 828, 198, 220, 220, 220, 705, 8784, 10354, 220, 29565, 15, 11, 513, 11, 604, 11, 2242, 11, 513, 4357, 685, 2414, 11, 685, 12762, 11, 11645, 4357, 685, 11645, 11, 25836, 4357, 685, 25836, 11, 35500, 4357, 685, 35500, 11, 36117, 60, 4357, 767, 11, 3933, 828, 198, 220, 220, 220, 705, 17827, 10354, 220, 29565, 15, 11, 513, 11, 807, 11, 4570, 11, 513, 4357, 685, 2414, 11, 685, 12762, 11, 11645, 4357, 685, 11645, 11, 25836, 4357, 685, 25836, 11, 35500, 4357, 685, 35500, 11, 36117, 60, 4357, 767, 11, 3933, 828, 198, 92, 198, 198, 43501, 62, 27237, 62, 37266, 796, 1391, 198, 220, 220, 220, 1303, 39087, 329, 262, 3867, 25694, 13, 198, 220, 220, 220, 705, 12501, 323, 10354, 657, 13, 33438, 11, 198, 220, 220, 220, 1303, 304, 862, 33576, 284, 2948, 657, 82, 287, 24198, 13, 198, 220, 220, 220, 705, 538, 18217, 261, 10354, 657, 13, 8298, 11, 198, 220, 220, 220, 1303, 2700, 287, 12, 5372, 5992, 286, 1612, 290, 24198, 7746, 198, 220, 220, 220, 705, 929, 19581, 62, 4033, 26448, 10354, 6045, 11, 198, 220, 220, 220, 1303, 26768, 25694, 5645, 510, 287, 262, 4512, 540, 9633, 4947, 198, 220, 220, 220, 705, 25641, 2977, 62, 4033, 26448, 10354, 685, 48700, 13, 37065, 40729, 13, 51, 3861, 1268, 17534, 62, 53, 1503, 3539, 9148, 1546, 16589, 198, 92, 220, 220, 220, 198, 198, 43501, 62, 27237, 62, 37266, 62, 12957, 796, 1391, 198, 220, 220, 220, 1303, 39087, 329, 262, 3867, 25694, 13, 198, 220, 220, 220, 705, 12501, 323, 10354, 657, 13, 33438, 11, 198, 220, 220, 220, 1303, 304, 862, 33576, 284, 2948, 657, 82, 287, 24198, 13, 198, 220, 220, 220, 705, 538, 18217, 261, 10354, 838, 68, 12, 23, 11, 198, 220, 220, 220, 1303, 2700, 287, 12, 5372, 5992, 286, 1612, 290, 24198, 7746, 198, 220, 220, 220, 705, 16159, 10354, 10352, 11, 198, 220, 220, 220, 1303, 407, 779, 12159, 198, 220, 220, 220, 705, 9888, 10354, 10352, 11, 198, 220, 220, 220, 1303, 407, 779, 34236, 198, 220, 220, 220, 705, 929, 19581, 62, 4033, 26448, 10354, 6045, 11, 198, 220, 220, 220, 1303, 26768, 25694, 5645, 510, 287, 262, 4512, 540, 9633, 4947, 198, 220, 220, 220, 705, 25641, 2977, 62, 4033, 26448, 10354, 685, 48700, 13, 37065, 40729, 13, 51, 3861, 1268, 17534, 62, 53, 1503, 3539, 9148, 1546, 16589, 198, 92, 198, 198, 48545, 796, 48700, 13, 20471, 13, 260, 2290, 198, 198, 2, 34872, 2122, 351, 2041, 37588, 198, 198, 2, 825, 3063, 62, 21412, 7, 3262, 11, 997, 62, 411, 62, 75, 6962, 11, 997, 62, 74, 44930, 11, 38691, 414, 11, 33769, 11, 32349, 796, 6045, 11, 8354, 796, 6045, 2599, 198, 2, 220, 220, 220, 220, 351, 48700, 13, 45286, 62, 29982, 7, 29982, 11, 705, 42946, 3256, 685, 3262, 4357, 32349, 28, 260, 1904, 2599, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 5765, 3063, 2122, 329, 262, 717, 29401, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 29401, 796, 3063, 2122, 7, 3262, 11, 997, 62, 74, 44930, 58, 16, 4357, 9720, 62, 7857, 28, 16, 11, 33769, 28, 2536, 485, 11, 24511, 11639, 50, 10067, 11537, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 2837, 7, 22510, 62, 411, 62, 75, 6962, 2599, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33769, 796, 33769, 611, 1312, 855, 15, 2073, 352, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2010, 796, 29598, 62, 9967, 7, 3262, 11, 997, 62, 74, 44930, 11, 38691, 414, 11, 33769, 11, 220, 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, 32349, 28, 260, 1904, 11, 8354, 11639, 9967, 62, 4, 67, 6, 4064, 1312, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 91, 13498, 2512, 62, 4, 67, 6, 4064, 1312, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2010, 796, 14916, 7, 3262, 1343, 29401, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29401, 796, 2010, 198, 198, 2, 220, 220, 220, 220, 1441, 29401, 198, 198, 2, 825, 32278, 7, 17566, 11, 1394, 62, 1676, 65, 1799, 11, 7108, 62, 27432, 28, 17821, 11, 49936, 62, 29289, 62, 7857, 28, 25836, 11, 220, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3463, 62, 12501, 323, 28, 16, 68, 12, 19, 11, 32349, 28, 14202, 11, 2746, 62, 9641, 28, 14202, 2599, 198, 2, 220, 220, 220, 220, 351, 18862, 13, 853, 62, 29982, 26933, 82, 2475, 13, 42946, 17, 67, 11, 18862, 13, 25512, 540, 62, 42946, 17, 67, 11, 18862, 13, 2759, 62, 15236, 4357, 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, 14916, 62, 22184, 28, 48545, 11, 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, 3487, 7509, 62, 22184, 28, 82, 2475, 13, 43501, 62, 27237, 11, 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, 3487, 7509, 62, 37266, 28, 43501, 62, 27237, 62, 37266, 2599, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 351, 48700, 13, 45286, 62, 29982, 10786, 4965, 8199, 55, 83, 3256, 685, 17566, 4357, 32349, 28, 260, 1904, 2599, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 351, 18862, 13, 853, 62, 29982, 26933, 82, 2475, 13, 43501, 62, 27237, 11, 18862, 13, 14781, 448, 4357, 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, 318, 62, 34409, 28, 40715, 62, 27432, 2599, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 15414, 5485, 25, 3256, 685, 27740, 13, 8367, 329, 5391, 287, 4263, 13, 43358, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2746, 62, 9641, 796, 705, 9288, 6, 611, 2746, 62, 9641, 6624, 14202, 2073, 2746, 62, 9641, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 997, 62, 75, 6962, 11, 997, 62, 74, 44930, 11, 9720, 62, 7857, 11, 38691, 414, 796, 2746, 62, 37266, 58, 19849, 62, 9641, 60, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2010, 796, 3063, 2122, 7, 17566, 11, 997, 62, 74, 44930, 58, 15, 4357, 9720, 62, 7857, 28, 33885, 62, 7857, 11, 2628, 28, 16, 11, 33769, 28, 17, 11, 24511, 11639, 50, 10067, 11537, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 21412, 62, 16, 5485, 25, 3256, 685, 27740, 13, 8367, 329, 5391, 287, 2010, 13, 43358, 12962, 198, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2010, 796, 3063, 62, 21412, 7, 3262, 11, 997, 62, 75, 6962, 58, 16, 4357, 997, 62, 74, 44930, 58, 16, 4357, 38691, 414, 11, 33769, 28, 16, 11, 8354, 11639, 42946, 17, 11537, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 21412, 62, 17, 5485, 25, 3256, 685, 27740, 13, 8367, 329, 5391, 287, 2010, 13, 43358, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2010, 796, 3063, 62, 21412, 7, 3262, 11, 997, 62, 75, 6962, 58, 17, 4357, 997, 62, 74, 44930, 58, 17, 4357, 38691, 414, 11, 33769, 28, 17, 11, 8354, 11639, 42946, 18, 11537, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 21412, 62, 18, 5485, 25, 3256, 685, 27740, 13, 8367, 329, 5391, 287, 2010, 13, 43358, 12962, 198, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2010, 796, 3063, 62, 21412, 7, 3262, 11, 997, 62, 75, 6962, 58, 18, 4357, 997, 62, 74, 44930, 58, 18, 4357, 38691, 414, 11, 33769, 28, 17, 11, 8354, 11639, 42946, 19, 11537, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 21412, 62, 19, 5485, 25, 3256, 685, 27740, 13, 8367, 329, 5391, 287, 2010, 13, 43358, 12962, 198, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2010, 796, 3063, 62, 21412, 7, 3262, 11, 997, 62, 75, 6962, 58, 19, 4357, 997, 62, 74, 44930, 58, 19, 4357, 38691, 414, 11, 33769, 28, 17, 11, 8354, 11639, 42946, 20, 11537, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 21412, 62, 20, 5485, 25, 3256, 685, 27740, 13, 8367, 329, 5391, 287, 2010, 13, 43358, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2010, 796, 18862, 13, 615, 70, 62, 7742, 17, 67, 7, 3262, 11, 2010, 13, 1136, 62, 43358, 3419, 58, 16, 25, 18, 4357, 8354, 11639, 615, 70, 7742, 20, 11537, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2010, 796, 18862, 13, 2704, 41769, 7, 3262, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2010, 796, 18862, 13, 2759, 62, 15236, 7, 3262, 11, 17759, 11, 8354, 11639, 6719, 28653, 43163, 3256, 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, 220, 220, 220, 220, 220, 220, 1303, 19590, 62, 36733, 7509, 28, 27110, 13, 2213, 19524, 515, 62, 11265, 62, 36733, 7509, 7, 301, 1860, 1990, 28, 15, 13, 16, 828, 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, 220, 220, 220, 220, 220, 220, 1303, 19590, 62, 36733, 7509, 28, 27110, 13, 9979, 415, 62, 36733, 7509, 7, 15, 12179, 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, 220, 220, 220, 220, 220, 220, 19590, 62, 36733, 7509, 28, 82, 2475, 13, 87, 19492, 62, 36733, 7509, 28955, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2010, 796, 18862, 13, 2759, 62, 15236, 7, 3262, 11, 352, 11, 8354, 11639, 28653, 43163, 3256, 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, 220, 220, 220, 220, 220, 220, 1303, 19590, 62, 36733, 7509, 28, 27110, 13, 2213, 19524, 515, 62, 11265, 62, 36733, 7509, 7, 301, 1860, 1990, 28, 15, 13, 16, 828, 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, 220, 220, 220, 220, 220, 220, 1303, 19590, 62, 36733, 7509, 28, 27110, 13, 9979, 415, 62, 36733, 7509, 7, 15, 12179, 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, 220, 220, 220, 220, 220, 220, 19590, 62, 36733, 7509, 28, 82, 2475, 13, 87, 19492, 62, 36733, 7509, 22784, 220, 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, 220, 220, 220, 220, 220, 220, 14916, 62, 22184, 28, 14202, 8, 198, 198, 2, 220, 220, 220, 220, 1441, 2010, 628 ]
2.077891
2,542
#!/usr/bin/env python from __future__ import print_function import logging import sys import os import yaml import base64 import subprocess import tempfile logger = logging.getLogger() def run_command(command, env=None, cwd=None, stdin=None, get_stdout=True, get_stderr=True): """returns triple (returncode, stdout, stderr) if get_stdout is False stdout tuple element will be set to None if get_stderr is False stderr tuple element will be set to None """ logger.info('Run command {} in env {}, cwd {}'.format(command, env, cwd)) myenv = {} if env is not None: for k, v in env.items(): myenv[str(k)] = str(v) env = myenv with tempfile.TemporaryFile(suffix='stdout') as tmp_stdout: with tempfile.TemporaryFile(suffix='stderr') as tmp_stderr: if isinstance(command, list) or isinstance(command, tuple): p = subprocess.Popen(command, stdin=stdin, stdout=tmp_stdout, stderr=tmp_stderr, env=env, cwd=cwd, universal_newlines=False) else: p = subprocess.Popen(command, stdin=stdin, stdout=tmp_stdout, stderr=tmp_stderr, env=env, cwd=cwd, universal_newlines=False, shell=True) status = p.wait() if get_stdout: tmp_stdout.flush() tmp_stdout.seek(0) out = tmp_stdout.read() else: out = None if get_stderr: tmp_stderr.flush() tmp_stderr.seek(0) err = tmp_stderr.read() else: err = None logger.info('Command {} returned code: {}'.format(command, status)) return status, out, err if __name__ == "__main__": logging.basicConfig() if len(sys.argv) <= 1: print('Usage: {} kubeconfig-file'.format(sys.argv[0]), file=sys.stderr) sys.exit(0) stream = open(sys.argv[1], "r") docs = yaml.load_all(stream) for doc in docs: kind = doc.get('kind') clusters = doc.get('clusters') for cluster in clusters: cluster_data = cluster.get('cluster') cluster_name = cluster.get('name') if cluster_data: cert = get_obj_from_dict(cluster_data, 'certificate-authority-data') server = cluster_data.get('server') print('Server: {}'.format(server)) print('certificate-authority-data:') print(cert) users = doc.get('users') for user in users: user_name = user.get('name') print('User: {}'.format(user_name)) user_data = user.get('user') if user_data: cert = get_obj_from_dict(user_data, 'client-certificate-data') print('client-certificate-data:') print(cert) cert = get_obj_from_dict(user_data, 'client-key-data') print('client-key-data:') print(cert)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 18931, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 331, 43695, 198, 11748, 2779, 2414, 198, 11748, 850, 14681, 198, 11748, 20218, 7753, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 3419, 628, 198, 4299, 1057, 62, 21812, 7, 21812, 11, 17365, 28, 14202, 11, 269, 16993, 28, 14202, 11, 14367, 259, 28, 14202, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 651, 62, 19282, 448, 28, 17821, 11, 651, 62, 301, 1082, 81, 28, 17821, 2599, 198, 220, 220, 220, 37227, 7783, 82, 15055, 357, 7783, 8189, 11, 14367, 448, 11, 336, 1082, 81, 8, 198, 220, 220, 220, 611, 651, 62, 19282, 448, 318, 10352, 14367, 448, 46545, 5002, 481, 307, 900, 284, 6045, 198, 220, 220, 220, 611, 651, 62, 301, 1082, 81, 318, 10352, 336, 1082, 81, 46545, 5002, 481, 307, 900, 284, 6045, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 49706, 13, 10951, 10786, 10987, 3141, 23884, 287, 17365, 1391, 5512, 269, 16993, 23884, 4458, 18982, 7, 21812, 11, 17365, 11, 269, 16993, 4008, 628, 220, 220, 220, 616, 24330, 796, 23884, 198, 220, 220, 220, 611, 17365, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 329, 479, 11, 410, 287, 17365, 13, 23814, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 616, 24330, 58, 2536, 7, 74, 15437, 796, 965, 7, 85, 8, 198, 220, 220, 220, 17365, 796, 616, 24330, 628, 220, 220, 220, 351, 20218, 7753, 13, 12966, 5551, 8979, 7, 37333, 844, 11639, 19282, 448, 11537, 355, 45218, 62, 19282, 448, 25, 198, 220, 220, 220, 220, 220, 220, 220, 351, 20218, 7753, 13, 12966, 5551, 8979, 7, 37333, 844, 11639, 301, 1082, 81, 11537, 355, 45218, 62, 301, 1082, 81, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 318, 39098, 7, 21812, 11, 1351, 8, 393, 318, 39098, 7, 21812, 11, 46545, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 796, 850, 14681, 13, 47, 9654, 7, 21812, 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, 14367, 259, 28, 19282, 259, 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, 14367, 448, 28, 22065, 62, 19282, 448, 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, 336, 1082, 81, 28, 22065, 62, 301, 1082, 81, 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, 17365, 28, 24330, 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, 269, 16993, 28, 66, 16993, 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, 10112, 62, 3605, 6615, 28, 25101, 8, 198, 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, 279, 796, 850, 14681, 13, 47, 9654, 7, 21812, 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, 14367, 259, 28, 19282, 259, 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, 14367, 448, 28, 22065, 62, 19282, 448, 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, 336, 1082, 81, 28, 22065, 62, 301, 1082, 81, 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, 17365, 28, 24330, 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, 269, 16993, 28, 66, 16993, 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, 10112, 62, 3605, 6615, 28, 25101, 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, 7582, 28, 17821, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3722, 796, 279, 13, 17077, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 651, 62, 19282, 448, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45218, 62, 19282, 448, 13, 25925, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45218, 62, 19282, 448, 13, 36163, 7, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 503, 796, 45218, 62, 19282, 448, 13, 961, 3419, 198, 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, 503, 796, 6045, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 651, 62, 301, 1082, 81, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45218, 62, 301, 1082, 81, 13, 25925, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45218, 62, 301, 1082, 81, 13, 36163, 7, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11454, 796, 45218, 62, 301, 1082, 81, 13, 961, 3419, 198, 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, 11454, 796, 6045, 628, 220, 220, 220, 49706, 13, 10951, 10786, 21575, 23884, 4504, 2438, 25, 23884, 4458, 18982, 7, 21812, 11, 3722, 4008, 198, 220, 220, 220, 1441, 3722, 11, 503, 11, 11454, 628, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 18931, 13, 35487, 16934, 3419, 628, 220, 220, 220, 611, 18896, 7, 17597, 13, 853, 85, 8, 19841, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 28350, 25, 23884, 479, 549, 721, 261, 5647, 12, 7753, 4458, 18982, 7, 17597, 13, 853, 85, 58, 15, 46570, 2393, 28, 17597, 13, 301, 1082, 81, 8, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 37023, 7, 15, 8, 628, 220, 220, 220, 4269, 796, 1280, 7, 17597, 13, 853, 85, 58, 16, 4357, 366, 81, 4943, 198, 220, 220, 220, 34165, 796, 331, 43695, 13, 2220, 62, 439, 7, 5532, 8, 198, 220, 220, 220, 329, 2205, 287, 34165, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1611, 796, 2205, 13, 1136, 10786, 11031, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 23163, 796, 2205, 13, 1136, 10786, 565, 13654, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 329, 13946, 287, 23163, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13946, 62, 7890, 796, 13946, 13, 1136, 10786, 565, 5819, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13946, 62, 3672, 796, 13946, 13, 1136, 10786, 3672, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 13946, 62, 7890, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5051, 796, 651, 62, 26801, 62, 6738, 62, 11600, 7, 565, 5819, 62, 7890, 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, 705, 22583, 22460, 12, 9800, 414, 12, 7890, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4382, 796, 13946, 62, 7890, 13, 1136, 10786, 15388, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 10697, 25, 23884, 4458, 18982, 7, 15388, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 22583, 22460, 12, 9800, 414, 12, 7890, 25, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 22583, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2985, 796, 2205, 13, 1136, 10786, 18417, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2836, 287, 2985, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 3672, 796, 2836, 13, 1136, 10786, 3672, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 12982, 25, 23884, 4458, 18982, 7, 7220, 62, 3672, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 7890, 796, 2836, 13, 1136, 10786, 7220, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2836, 62, 7890, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5051, 796, 651, 62, 26801, 62, 6738, 62, 11600, 7, 7220, 62, 7890, 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, 705, 16366, 12, 22583, 22460, 12, 7890, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 16366, 12, 22583, 22460, 12, 7890, 25, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 22583, 8, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5051, 796, 651, 62, 26801, 62, 6738, 62, 11600, 7, 7220, 62, 7890, 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, 705, 16366, 12, 2539, 12, 7890, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 16366, 12, 2539, 12, 7890, 25, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 22583, 8, 198 ]
1.742747
2,068
from flask import render_template from app import app @app.route('/', methods=['GET', 'POST']) if __name__ == '__main__': app.run(debug=True, host="0.0.0.0")
[ 6738, 42903, 1330, 8543, 62, 28243, 198, 6738, 598, 1330, 598, 628, 198, 31, 1324, 13, 38629, 10786, 14, 3256, 5050, 28, 17816, 18851, 3256, 705, 32782, 6, 12962, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 598, 13, 5143, 7, 24442, 28, 17821, 11, 2583, 2625, 15, 13, 15, 13, 15, 13, 15, 4943, 198 ]
2.59375
64
# Copyright (c) ZenML GmbH 2021. 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: # # https://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 contextlib import ExitStack as does_not_raise import pytest from zenml.exceptions import ( PipelineConfigurationError, PipelineInterfaceError, StackValidationError, ) from zenml.pipelines import pipeline from zenml.repository import Repository from zenml.steps import BaseStepConfig, step from zenml.utils.yaml_utils import write_yaml def create_pipeline_with_config_value(config_value: int): """Creates pipeline instance with a step named 'step' which has a parameter named 'value'.""" @step @pipeline pipeline_instance = some_pipeline( step_=step_with_config(config=Config(value=config_value)) ) return pipeline_instance def test_initialize_pipeline_with_args( unconnected_two_step_pipeline, generate_empty_steps ): """Test that a pipeline can be initialized with args.""" with does_not_raise(): empty_step_1, empty_step_2 = generate_empty_steps(2) unconnected_two_step_pipeline(empty_step_1(), empty_step_2()) def test_initialize_pipeline_with_kwargs( unconnected_two_step_pipeline, generate_empty_steps ): """Test that a pipeline can be initialized with kwargs.""" with does_not_raise(): empty_step_1, empty_step_2 = generate_empty_steps(2) unconnected_two_step_pipeline( step_1=empty_step_1(), step_2=empty_step_2() ) def test_initialize_pipeline_with_args_and_kwargs( unconnected_two_step_pipeline, generate_empty_steps ): """Test that a pipeline can be initialized with a mix of args and kwargs.""" with does_not_raise(): empty_step_1, empty_step_2 = generate_empty_steps(2) unconnected_two_step_pipeline(empty_step_1(), step_2=empty_step_2()) def test_initialize_pipeline_with_too_many_args( unconnected_two_step_pipeline, generate_empty_steps ): """Test that pipeline initialization fails when too many args are passed.""" with pytest.raises(PipelineInterfaceError): empty_step_1, empty_step_2, empty_step_3 = generate_empty_steps(3) unconnected_two_step_pipeline( empty_step_1(), empty_step_2(), empty_step_3() ) def test_initialize_pipeline_with_too_many_args_and_kwargs( unconnected_two_step_pipeline, generate_empty_steps ): """Test that pipeline initialization fails when too many args and kwargs are passed.""" with pytest.raises(PipelineInterfaceError): empty_step_1, empty_step_2, empty_step_3 = generate_empty_steps(3) unconnected_two_step_pipeline( empty_step_3(), step_1=empty_step_1(), step_2=empty_step_2() ) def test_initialize_pipeline_with_missing_key( unconnected_two_step_pipeline, empty_step ): """Test that pipeline initialization fails when an argument is missing.""" with pytest.raises(PipelineInterfaceError): unconnected_two_step_pipeline(step_1=empty_step()) def test_initialize_pipeline_with_unexpected_key( unconnected_two_step_pipeline, generate_empty_steps ): """Test that pipeline initialization fails when an argument has an unexpected key.""" with pytest.raises(PipelineInterfaceError): empty_step_1, empty_step_2, empty_step_3 = generate_empty_steps(3) unconnected_two_step_pipeline( step_1=empty_step_1(), step_2=empty_step_2(), step_3=empty_step_3() ) def test_initialize_pipeline_with_repeated_args( unconnected_two_step_pipeline, empty_step ): """Test that pipeline initialization fails when same step object is used""" with pytest.raises(PipelineInterfaceError): unconnected_two_step_pipeline(empty_step(), empty_step()) def test_initialize_pipeline_with_repeated_kwargs( unconnected_two_step_pipeline, empty_step ): """Test that pipeline initialization fails when same step object is used""" with pytest.raises(PipelineInterfaceError): unconnected_two_step_pipeline(step_1=empty_step(), step_2=empty_step()) def test_initialize_pipeline_with_repeated_args_and_kwargs( unconnected_two_step_pipeline, empty_step ): """Test that pipeline initialization fails when same step object is used""" with pytest.raises(PipelineInterfaceError): unconnected_two_step_pipeline(empty_step(), step_2=empty_step()) def test_initialize_pipeline_with_wrong_arg_type( unconnected_two_step_pipeline, empty_step ): """Test that pipeline initialization fails when an arg has a wrong type.""" with pytest.raises(PipelineInterfaceError): unconnected_two_step_pipeline(1, empty_step()) def test_initialize_pipeline_with_wrong_kwarg_type( unconnected_two_step_pipeline, empty_step ): """Test that pipeline initialization fails when a kwarg has a wrong type.""" with pytest.raises(PipelineInterfaceError): unconnected_two_step_pipeline(step_1=1, step_2=empty_step()) def test_initialize_pipeline_with_missing_arg_step_brackets( unconnected_two_step_pipeline, generate_empty_steps ): """Test that pipeline initialization fails with missing arg brackets.""" with pytest.raises(PipelineInterfaceError): empty_step_1, empty_step_2 = generate_empty_steps(2) unconnected_two_step_pipeline(empty_step_1, empty_step_2) def test_initialize_pipeline_with_missing_kwarg_step_brackets( unconnected_two_step_pipeline, generate_empty_steps ): """Test that pipeline initialization fails with missing kwarg brackets.""" with pytest.raises(PipelineInterfaceError): empty_step_1, empty_step_2 = generate_empty_steps(2) unconnected_two_step_pipeline(step_1=empty_step_1, step_2=empty_step_2) def test_setting_step_parameter_with_config_object(): """Test whether step parameters can be set using a config object.""" config_value = 0 pipeline_instance = create_pipeline_with_config_value(config_value) step_instance = pipeline_instance.steps["step_"] assert step_instance.PARAM_SPEC["value"] == config_value def test_overwrite_step_parameter_with_config_yaml(tmp_path): """Test whether step parameters can be overwritten using a config yaml.""" config_value = 0 pipeline_instance = create_pipeline_with_config_value(config_value) yaml_path = os.path.join(tmp_path, "config.yaml") yaml_config_value = 1 write_yaml( yaml_path, {"steps": {"step_": {"parameters": {"value": yaml_config_value}}}}, ) pipeline_instance = pipeline_instance.with_config( yaml_path, overwrite_step_parameters=True ) step_instance = pipeline_instance.steps["step_"] assert step_instance.PARAM_SPEC["value"] == yaml_config_value def test_dont_overwrite_step_parameter_with_config_yaml(tmp_path): """Test that step parameters don't get overwritten by yaml file if not forced.""" config_value = 0 pipeline_instance = create_pipeline_with_config_value(config_value) yaml_path = os.path.join(tmp_path, "config.yaml") yaml_config_value = 1 write_yaml( yaml_path, {"steps": {"step_": {"parameters": {"value": yaml_config_value}}}}, ) pipeline_instance = pipeline_instance.with_config(yaml_path) step_instance = pipeline_instance.steps["step_"] assert step_instance.PARAM_SPEC["value"] == config_value def test_yaml_configuration_with_invalid_step_name(tmp_path): """Test that a config yaml with an invalid step name raises an exception""" pipeline_instance = create_pipeline_with_config_value(0) yaml_path = os.path.join(tmp_path, "config.yaml") write_yaml( yaml_path, {"steps": {"WRONG_STEP_NAME": {"parameters": {"value": 0}}}}, ) with pytest.raises(PipelineConfigurationError): _ = pipeline_instance.with_config(yaml_path) def test_yaml_configuration_with_invalid_parameter_name(tmp_path): """Test that a config yaml with an invalid parameter name raises an exception""" pipeline_instance = create_pipeline_with_config_value(0) yaml_path = os.path.join(tmp_path, "config.yaml") write_yaml( yaml_path, {"steps": {"step_": {"parameters": {"WRONG_PARAMETER_NAME": 0}}}}, ) with pytest.raises(PipelineConfigurationError): _ = pipeline_instance.with_config(yaml_path) def test_setting_pipeline_parameter_name_when_initializing_pipeline( one_step_pipeline, empty_step ): """Tests that initializing a pipeline with a step sets the attribute `pipeline_parameter_name` of the step.""" step_instance = empty_step() assert step_instance.pipeline_parameter_name is None one_step_pipeline(step_instance) assert step_instance.pipeline_parameter_name == "step_" def test_calling_a_pipeline_twice_raises_no_exception( one_step_pipeline, empty_step ): """Tests that calling one pipeline instance twice does not raise any exception.""" pipeline_instance = one_step_pipeline(empty_step()) with does_not_raise(): pipeline_instance.run() pipeline_instance.run() def test_pipeline_requirements(tmp_path): """Tests that the pipeline requirements are a combination of the requirements of integrations and requirements of the specified requirements file.""" from zenml.integrations.sklearn import SklearnIntegration requirements = tmp_path / "requirements.txt" requirements.write_text("any_requirement") @pipeline(required_integrations=[SklearnIntegration.NAME]) assert my_pipeline().requirements == set(SklearnIntegration.REQUIREMENTS) @pipeline(requirements=str(requirements)) assert my_pipeline().requirements == {"any_requirement"} @pipeline( required_integrations=[SklearnIntegration.NAME], requirements=str(requirements), ) assert my_pipeline().requirements == { "any_requirement", *SklearnIntegration.REQUIREMENTS, } def test_pipeline_requirements_takes_list(tmp_path): """Tests that the pipeline requirements are a combination of the requirements of integrations and requirements of the specified requirements file.""" from zenml.integrations.sklearn import SklearnIntegration requirements = tmp_path / "requirements.txt" requirements.write_text("any_requirement") @pipeline(required_integrations=[SklearnIntegration.NAME]) assert my_pipeline().requirements == set(SklearnIntegration.REQUIREMENTS) @pipeline(requirements=["any_requirement"]) assert my_pipeline().requirements == {"any_requirement"} @pipeline( required_integrations=[SklearnIntegration.NAME], requirements=["any_requirement"], ) assert my_pipeline().requirements == { "any_requirement", *SklearnIntegration.REQUIREMENTS, } def test_pipeline_run_fails_when_required_step_operator_is_missing( one_step_pipeline, ): """Tests that running a pipeline with a step that requires a custom step operator fails if the active stack does not contain this step operator.""" @step(custom_step_operator="azureml") assert not Repository().active_stack.step_operator with pytest.raises(StackValidationError): one_step_pipeline(step_that_requires_step_operator()).run()
[ 2, 220, 15069, 357, 66, 8, 14760, 5805, 402, 2022, 39, 33448, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 220, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 25, 198, 2, 198, 2, 220, 220, 220, 220, 220, 220, 3740, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 198, 2, 198, 2, 220, 17486, 2672, 416, 9723, 1099, 393, 4987, 284, 287, 3597, 11, 3788, 198, 2, 220, 9387, 739, 262, 13789, 318, 9387, 319, 281, 366, 1921, 3180, 1, 29809, 1797, 11, 198, 2, 220, 42881, 34764, 11015, 6375, 7102, 49828, 11053, 3963, 15529, 509, 12115, 11, 2035, 4911, 198, 2, 220, 393, 17142, 13, 4091, 262, 13789, 329, 262, 2176, 3303, 15030, 198, 2, 220, 21627, 290, 11247, 739, 262, 13789, 13, 198, 11748, 28686, 198, 6738, 4732, 8019, 1330, 29739, 25896, 355, 857, 62, 1662, 62, 40225, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 1976, 268, 4029, 13, 1069, 11755, 1330, 357, 198, 220, 220, 220, 37709, 38149, 12331, 11, 198, 220, 220, 220, 37709, 39317, 12331, 11, 198, 220, 220, 220, 23881, 7762, 24765, 12331, 11, 198, 8, 198, 6738, 1976, 268, 4029, 13, 79, 541, 20655, 1330, 11523, 198, 6738, 1976, 268, 4029, 13, 260, 1930, 37765, 1330, 1432, 13264, 198, 6738, 1976, 268, 4029, 13, 20214, 1330, 7308, 8600, 16934, 11, 2239, 198, 6738, 1976, 268, 4029, 13, 26791, 13, 88, 43695, 62, 26791, 1330, 3551, 62, 88, 43695, 628, 198, 4299, 2251, 62, 79, 541, 4470, 62, 4480, 62, 11250, 62, 8367, 7, 11250, 62, 8367, 25, 493, 2599, 198, 220, 220, 220, 37227, 16719, 274, 11523, 4554, 351, 257, 2239, 3706, 705, 9662, 6, 543, 468, 257, 198, 220, 220, 220, 11507, 3706, 705, 8367, 30827, 15931, 628, 220, 220, 220, 2488, 9662, 628, 220, 220, 220, 2488, 79, 541, 4470, 628, 220, 220, 220, 11523, 62, 39098, 796, 617, 62, 79, 541, 4470, 7, 198, 220, 220, 220, 220, 220, 220, 220, 2239, 62, 28, 9662, 62, 4480, 62, 11250, 7, 11250, 28, 16934, 7, 8367, 28, 11250, 62, 8367, 4008, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 1441, 11523, 62, 39098, 628, 198, 4299, 1332, 62, 36733, 1096, 62, 79, 541, 4470, 62, 4480, 62, 22046, 7, 198, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 11, 7716, 62, 28920, 62, 20214, 198, 2599, 198, 220, 220, 220, 37227, 14402, 326, 257, 11523, 460, 307, 23224, 351, 26498, 526, 15931, 198, 220, 220, 220, 351, 857, 62, 1662, 62, 40225, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 6565, 62, 9662, 62, 16, 11, 6565, 62, 9662, 62, 17, 796, 7716, 62, 28920, 62, 20214, 7, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 7, 28920, 62, 9662, 62, 16, 22784, 6565, 62, 9662, 62, 17, 28955, 628, 198, 4299, 1332, 62, 36733, 1096, 62, 79, 541, 4470, 62, 4480, 62, 46265, 22046, 7, 198, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 11, 7716, 62, 28920, 62, 20214, 198, 2599, 198, 220, 220, 220, 37227, 14402, 326, 257, 11523, 460, 307, 23224, 351, 479, 86, 22046, 526, 15931, 198, 220, 220, 220, 351, 857, 62, 1662, 62, 40225, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 6565, 62, 9662, 62, 16, 11, 6565, 62, 9662, 62, 17, 796, 7716, 62, 28920, 62, 20214, 7, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2239, 62, 16, 28, 28920, 62, 9662, 62, 16, 22784, 2239, 62, 17, 28, 28920, 62, 9662, 62, 17, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 198, 4299, 1332, 62, 36733, 1096, 62, 79, 541, 4470, 62, 4480, 62, 22046, 62, 392, 62, 46265, 22046, 7, 198, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 11, 7716, 62, 28920, 62, 20214, 198, 2599, 198, 220, 220, 220, 37227, 14402, 326, 257, 11523, 460, 307, 23224, 351, 257, 5022, 286, 26498, 290, 479, 86, 22046, 526, 15931, 198, 220, 220, 220, 351, 857, 62, 1662, 62, 40225, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 6565, 62, 9662, 62, 16, 11, 6565, 62, 9662, 62, 17, 796, 7716, 62, 28920, 62, 20214, 7, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 7, 28920, 62, 9662, 62, 16, 22784, 2239, 62, 17, 28, 28920, 62, 9662, 62, 17, 28955, 628, 198, 4299, 1332, 62, 36733, 1096, 62, 79, 541, 4470, 62, 4480, 62, 18820, 62, 21834, 62, 22046, 7, 198, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 11, 7716, 62, 28920, 62, 20214, 198, 2599, 198, 220, 220, 220, 37227, 14402, 326, 11523, 37588, 10143, 618, 1165, 867, 26498, 198, 220, 220, 220, 389, 3804, 526, 15931, 198, 220, 220, 220, 351, 12972, 9288, 13, 430, 2696, 7, 47, 541, 4470, 39317, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 6565, 62, 9662, 62, 16, 11, 6565, 62, 9662, 62, 17, 11, 6565, 62, 9662, 62, 18, 796, 7716, 62, 28920, 62, 20214, 7, 18, 8, 198, 220, 220, 220, 220, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6565, 62, 9662, 62, 16, 22784, 6565, 62, 9662, 62, 17, 22784, 6565, 62, 9662, 62, 18, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 198, 4299, 1332, 62, 36733, 1096, 62, 79, 541, 4470, 62, 4480, 62, 18820, 62, 21834, 62, 22046, 62, 392, 62, 46265, 22046, 7, 198, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 11, 7716, 62, 28920, 62, 20214, 198, 2599, 198, 220, 220, 220, 37227, 14402, 326, 11523, 37588, 10143, 618, 1165, 867, 26498, 198, 220, 220, 220, 290, 479, 86, 22046, 389, 3804, 526, 15931, 198, 220, 220, 220, 351, 12972, 9288, 13, 430, 2696, 7, 47, 541, 4470, 39317, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 6565, 62, 9662, 62, 16, 11, 6565, 62, 9662, 62, 17, 11, 6565, 62, 9662, 62, 18, 796, 7716, 62, 28920, 62, 20214, 7, 18, 8, 198, 220, 220, 220, 220, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6565, 62, 9662, 62, 18, 22784, 2239, 62, 16, 28, 28920, 62, 9662, 62, 16, 22784, 2239, 62, 17, 28, 28920, 62, 9662, 62, 17, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 198, 4299, 1332, 62, 36733, 1096, 62, 79, 541, 4470, 62, 4480, 62, 45688, 62, 2539, 7, 198, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 11, 6565, 62, 9662, 198, 2599, 198, 220, 220, 220, 37227, 14402, 326, 11523, 37588, 10143, 618, 281, 4578, 198, 220, 220, 220, 318, 4814, 526, 15931, 198, 220, 220, 220, 351, 12972, 9288, 13, 430, 2696, 7, 47, 541, 4470, 39317, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 7, 9662, 62, 16, 28, 28920, 62, 9662, 28955, 628, 198, 4299, 1332, 62, 36733, 1096, 62, 79, 541, 4470, 62, 4480, 62, 403, 40319, 62, 2539, 7, 198, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 11, 7716, 62, 28920, 62, 20214, 198, 2599, 198, 220, 220, 220, 37227, 14402, 326, 11523, 37588, 10143, 618, 281, 4578, 198, 220, 220, 220, 468, 281, 10059, 1994, 526, 15931, 198, 220, 220, 220, 351, 12972, 9288, 13, 430, 2696, 7, 47, 541, 4470, 39317, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 6565, 62, 9662, 62, 16, 11, 6565, 62, 9662, 62, 17, 11, 6565, 62, 9662, 62, 18, 796, 7716, 62, 28920, 62, 20214, 7, 18, 8, 198, 220, 220, 220, 220, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2239, 62, 16, 28, 28920, 62, 9662, 62, 16, 22784, 2239, 62, 17, 28, 28920, 62, 9662, 62, 17, 22784, 2239, 62, 18, 28, 28920, 62, 9662, 62, 18, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 198, 4299, 1332, 62, 36733, 1096, 62, 79, 541, 4470, 62, 4480, 62, 45956, 515, 62, 22046, 7, 198, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 11, 6565, 62, 9662, 198, 2599, 198, 220, 220, 220, 37227, 14402, 326, 11523, 37588, 10143, 618, 976, 2239, 198, 220, 220, 220, 2134, 318, 973, 37811, 198, 220, 220, 220, 351, 12972, 9288, 13, 430, 2696, 7, 47, 541, 4470, 39317, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 7, 28920, 62, 9662, 22784, 6565, 62, 9662, 28955, 628, 198, 4299, 1332, 62, 36733, 1096, 62, 79, 541, 4470, 62, 4480, 62, 45956, 515, 62, 46265, 22046, 7, 198, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 11, 6565, 62, 9662, 198, 2599, 198, 220, 220, 220, 37227, 14402, 326, 11523, 37588, 10143, 618, 976, 2239, 198, 220, 220, 220, 2134, 318, 973, 37811, 198, 220, 220, 220, 351, 12972, 9288, 13, 430, 2696, 7, 47, 541, 4470, 39317, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 7, 9662, 62, 16, 28, 28920, 62, 9662, 22784, 2239, 62, 17, 28, 28920, 62, 9662, 28955, 628, 198, 4299, 1332, 62, 36733, 1096, 62, 79, 541, 4470, 62, 4480, 62, 45956, 515, 62, 22046, 62, 392, 62, 46265, 22046, 7, 198, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 11, 6565, 62, 9662, 198, 2599, 198, 220, 220, 220, 37227, 14402, 326, 11523, 37588, 10143, 618, 976, 2239, 198, 220, 220, 220, 2134, 318, 973, 37811, 198, 220, 220, 220, 351, 12972, 9288, 13, 430, 2696, 7, 47, 541, 4470, 39317, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 7, 28920, 62, 9662, 22784, 2239, 62, 17, 28, 28920, 62, 9662, 28955, 628, 198, 4299, 1332, 62, 36733, 1096, 62, 79, 541, 4470, 62, 4480, 62, 36460, 62, 853, 62, 4906, 7, 198, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 11, 6565, 62, 9662, 198, 2599, 198, 220, 220, 220, 37227, 14402, 326, 11523, 37588, 10143, 618, 281, 1822, 468, 257, 2642, 2099, 526, 15931, 198, 220, 220, 220, 351, 12972, 9288, 13, 430, 2696, 7, 47, 541, 4470, 39317, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 7, 16, 11, 6565, 62, 9662, 28955, 628, 198, 4299, 1332, 62, 36733, 1096, 62, 79, 541, 4470, 62, 4480, 62, 36460, 62, 46265, 853, 62, 4906, 7, 198, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 11, 6565, 62, 9662, 198, 2599, 198, 220, 220, 220, 37227, 14402, 326, 11523, 37588, 10143, 618, 257, 479, 86, 853, 468, 257, 2642, 2099, 526, 15931, 198, 220, 220, 220, 351, 12972, 9288, 13, 430, 2696, 7, 47, 541, 4470, 39317, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 7, 9662, 62, 16, 28, 16, 11, 2239, 62, 17, 28, 28920, 62, 9662, 28955, 628, 198, 4299, 1332, 62, 36733, 1096, 62, 79, 541, 4470, 62, 4480, 62, 45688, 62, 853, 62, 9662, 62, 1671, 25180, 7, 198, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 11, 7716, 62, 28920, 62, 20214, 198, 2599, 198, 220, 220, 220, 37227, 14402, 326, 11523, 37588, 10143, 351, 4814, 1822, 28103, 526, 15931, 198, 220, 220, 220, 351, 12972, 9288, 13, 430, 2696, 7, 47, 541, 4470, 39317, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 6565, 62, 9662, 62, 16, 11, 6565, 62, 9662, 62, 17, 796, 7716, 62, 28920, 62, 20214, 7, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 7, 28920, 62, 9662, 62, 16, 11, 6565, 62, 9662, 62, 17, 8, 628, 198, 4299, 1332, 62, 36733, 1096, 62, 79, 541, 4470, 62, 4480, 62, 45688, 62, 46265, 853, 62, 9662, 62, 1671, 25180, 7, 198, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 11, 7716, 62, 28920, 62, 20214, 198, 2599, 198, 220, 220, 220, 37227, 14402, 326, 11523, 37588, 10143, 351, 4814, 479, 86, 853, 28103, 526, 15931, 198, 220, 220, 220, 351, 12972, 9288, 13, 430, 2696, 7, 47, 541, 4470, 39317, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 6565, 62, 9662, 62, 16, 11, 6565, 62, 9662, 62, 17, 796, 7716, 62, 28920, 62, 20214, 7, 17, 8, 198, 220, 220, 220, 220, 220, 220, 220, 555, 15236, 62, 11545, 62, 9662, 62, 79, 541, 4470, 7, 9662, 62, 16, 28, 28920, 62, 9662, 62, 16, 11, 2239, 62, 17, 28, 28920, 62, 9662, 62, 17, 8, 628, 198, 4299, 1332, 62, 33990, 62, 9662, 62, 17143, 2357, 62, 4480, 62, 11250, 62, 15252, 33529, 198, 220, 220, 220, 37227, 14402, 1771, 2239, 10007, 460, 307, 900, 1262, 257, 4566, 2134, 526, 15931, 198, 220, 220, 220, 4566, 62, 8367, 796, 657, 198, 220, 220, 220, 11523, 62, 39098, 796, 2251, 62, 79, 541, 4470, 62, 4480, 62, 11250, 62, 8367, 7, 11250, 62, 8367, 8, 198, 220, 220, 220, 2239, 62, 39098, 796, 11523, 62, 39098, 13, 20214, 14692, 9662, 62, 8973, 628, 220, 220, 220, 6818, 2239, 62, 39098, 13, 27082, 2390, 62, 48451, 14692, 8367, 8973, 6624, 4566, 62, 8367, 628, 198, 4299, 1332, 62, 2502, 13564, 62, 9662, 62, 17143, 2357, 62, 4480, 62, 11250, 62, 88, 43695, 7, 22065, 62, 6978, 2599, 198, 220, 220, 220, 37227, 14402, 1771, 2239, 10007, 460, 307, 6993, 9108, 1262, 257, 4566, 331, 43695, 526, 15931, 198, 220, 220, 220, 4566, 62, 8367, 796, 657, 198, 220, 220, 220, 11523, 62, 39098, 796, 2251, 62, 79, 541, 4470, 62, 4480, 62, 11250, 62, 8367, 7, 11250, 62, 8367, 8, 628, 220, 220, 220, 331, 43695, 62, 6978, 796, 28686, 13, 6978, 13, 22179, 7, 22065, 62, 6978, 11, 366, 11250, 13, 88, 43695, 4943, 198, 220, 220, 220, 331, 43695, 62, 11250, 62, 8367, 796, 352, 198, 220, 220, 220, 3551, 62, 88, 43695, 7, 198, 220, 220, 220, 220, 220, 220, 220, 331, 43695, 62, 6978, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19779, 20214, 1298, 19779, 9662, 62, 1298, 19779, 17143, 7307, 1298, 19779, 8367, 1298, 331, 43695, 62, 11250, 62, 8367, 42535, 5512, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 11523, 62, 39098, 796, 11523, 62, 39098, 13, 4480, 62, 11250, 7, 198, 220, 220, 220, 220, 220, 220, 220, 331, 43695, 62, 6978, 11, 49312, 62, 9662, 62, 17143, 7307, 28, 17821, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 2239, 62, 39098, 796, 11523, 62, 39098, 13, 20214, 14692, 9662, 62, 8973, 198, 220, 220, 220, 6818, 2239, 62, 39098, 13, 27082, 2390, 62, 48451, 14692, 8367, 8973, 6624, 331, 43695, 62, 11250, 62, 8367, 628, 198, 4299, 1332, 62, 67, 756, 62, 2502, 13564, 62, 9662, 62, 17143, 2357, 62, 4480, 62, 11250, 62, 88, 43695, 7, 22065, 62, 6978, 2599, 198, 220, 220, 220, 37227, 14402, 326, 2239, 10007, 836, 470, 651, 6993, 9108, 416, 331, 43695, 2393, 198, 220, 220, 220, 611, 407, 4137, 526, 15931, 198, 220, 220, 220, 4566, 62, 8367, 796, 657, 198, 220, 220, 220, 11523, 62, 39098, 796, 2251, 62, 79, 541, 4470, 62, 4480, 62, 11250, 62, 8367, 7, 11250, 62, 8367, 8, 628, 220, 220, 220, 331, 43695, 62, 6978, 796, 28686, 13, 6978, 13, 22179, 7, 22065, 62, 6978, 11, 366, 11250, 13, 88, 43695, 4943, 198, 220, 220, 220, 331, 43695, 62, 11250, 62, 8367, 796, 352, 198, 220, 220, 220, 3551, 62, 88, 43695, 7, 198, 220, 220, 220, 220, 220, 220, 220, 331, 43695, 62, 6978, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19779, 20214, 1298, 19779, 9662, 62, 1298, 19779, 17143, 7307, 1298, 19779, 8367, 1298, 331, 43695, 62, 11250, 62, 8367, 42535, 5512, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 11523, 62, 39098, 796, 11523, 62, 39098, 13, 4480, 62, 11250, 7, 88, 43695, 62, 6978, 8, 198, 220, 220, 220, 2239, 62, 39098, 796, 11523, 62, 39098, 13, 20214, 14692, 9662, 62, 8973, 198, 220, 220, 220, 6818, 2239, 62, 39098, 13, 27082, 2390, 62, 48451, 14692, 8367, 8973, 6624, 4566, 62, 8367, 628, 198, 4299, 1332, 62, 88, 43695, 62, 11250, 3924, 62, 4480, 62, 259, 12102, 62, 9662, 62, 3672, 7, 22065, 62, 6978, 2599, 198, 220, 220, 220, 37227, 14402, 326, 257, 4566, 331, 43695, 351, 281, 12515, 2239, 1438, 12073, 281, 6631, 37811, 198, 220, 220, 220, 11523, 62, 39098, 796, 2251, 62, 79, 541, 4470, 62, 4480, 62, 11250, 62, 8367, 7, 15, 8, 628, 220, 220, 220, 331, 43695, 62, 6978, 796, 28686, 13, 6978, 13, 22179, 7, 22065, 62, 6978, 11, 366, 11250, 13, 88, 43695, 4943, 198, 220, 220, 220, 3551, 62, 88, 43695, 7, 198, 220, 220, 220, 220, 220, 220, 220, 331, 43695, 62, 6978, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19779, 20214, 1298, 19779, 18564, 18494, 62, 42135, 62, 20608, 1298, 19779, 17143, 7307, 1298, 19779, 8367, 1298, 657, 42535, 5512, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 351, 12972, 9288, 13, 430, 2696, 7, 47, 541, 4470, 38149, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 796, 11523, 62, 39098, 13, 4480, 62, 11250, 7, 88, 43695, 62, 6978, 8, 628, 198, 4299, 1332, 62, 88, 43695, 62, 11250, 3924, 62, 4480, 62, 259, 12102, 62, 17143, 2357, 62, 3672, 7, 22065, 62, 6978, 2599, 198, 220, 220, 220, 37227, 14402, 326, 257, 4566, 331, 43695, 351, 281, 12515, 11507, 198, 220, 220, 220, 1438, 12073, 281, 6631, 37811, 198, 220, 220, 220, 11523, 62, 39098, 796, 2251, 62, 79, 541, 4470, 62, 4480, 62, 11250, 62, 8367, 7, 15, 8, 628, 220, 220, 220, 331, 43695, 62, 6978, 796, 28686, 13, 6978, 13, 22179, 7, 22065, 62, 6978, 11, 366, 11250, 13, 88, 43695, 4943, 198, 220, 220, 220, 3551, 62, 88, 43695, 7, 198, 220, 220, 220, 220, 220, 220, 220, 331, 43695, 62, 6978, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19779, 20214, 1298, 19779, 9662, 62, 1298, 19779, 17143, 7307, 1298, 19779, 18564, 18494, 62, 27082, 2390, 2767, 1137, 62, 20608, 1298, 657, 42535, 5512, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 351, 12972, 9288, 13, 430, 2696, 7, 47, 541, 4470, 38149, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 4808, 796, 11523, 62, 39098, 13, 4480, 62, 11250, 7, 88, 43695, 62, 6978, 8, 628, 198, 4299, 1332, 62, 33990, 62, 79, 541, 4470, 62, 17143, 2357, 62, 3672, 62, 12518, 62, 36733, 2890, 62, 79, 541, 4470, 7, 198, 220, 220, 220, 530, 62, 9662, 62, 79, 541, 4470, 11, 6565, 62, 9662, 198, 2599, 198, 220, 220, 220, 37227, 51, 3558, 326, 4238, 2890, 257, 11523, 351, 257, 2239, 5621, 262, 11688, 198, 220, 220, 220, 4600, 79, 541, 4470, 62, 17143, 2357, 62, 3672, 63, 286, 262, 2239, 526, 15931, 198, 220, 220, 220, 2239, 62, 39098, 796, 6565, 62, 9662, 3419, 198, 220, 220, 220, 6818, 2239, 62, 39098, 13, 79, 541, 4470, 62, 17143, 2357, 62, 3672, 318, 6045, 198, 220, 220, 220, 530, 62, 9662, 62, 79, 541, 4470, 7, 9662, 62, 39098, 8, 198, 220, 220, 220, 6818, 2239, 62, 39098, 13, 79, 541, 4470, 62, 17143, 2357, 62, 3672, 6624, 366, 9662, 62, 1, 628, 198, 4299, 1332, 62, 44714, 62, 64, 62, 79, 541, 4470, 62, 4246, 501, 62, 430, 2696, 62, 3919, 62, 1069, 4516, 7, 198, 220, 220, 220, 530, 62, 9662, 62, 79, 541, 4470, 11, 6565, 62, 9662, 198, 2599, 198, 220, 220, 220, 37227, 51, 3558, 326, 4585, 530, 11523, 4554, 5403, 857, 407, 5298, 198, 220, 220, 220, 597, 6631, 526, 15931, 628, 220, 220, 220, 11523, 62, 39098, 796, 530, 62, 9662, 62, 79, 541, 4470, 7, 28920, 62, 9662, 28955, 628, 220, 220, 220, 351, 857, 62, 1662, 62, 40225, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 11523, 62, 39098, 13, 5143, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 11523, 62, 39098, 13, 5143, 3419, 628, 198, 4299, 1332, 62, 79, 541, 4470, 62, 8897, 18883, 7, 22065, 62, 6978, 2599, 198, 220, 220, 220, 37227, 51, 3558, 326, 262, 11523, 5359, 389, 257, 6087, 286, 262, 198, 220, 220, 220, 5359, 286, 4132, 9143, 290, 5359, 286, 262, 7368, 198, 220, 220, 220, 5359, 2393, 526, 15931, 198, 220, 220, 220, 422, 1976, 268, 4029, 13, 18908, 9143, 13, 8135, 35720, 1330, 3661, 35720, 34500, 1358, 628, 220, 220, 220, 5359, 796, 45218, 62, 6978, 1220, 366, 8897, 18883, 13, 14116, 1, 198, 220, 220, 220, 5359, 13, 13564, 62, 5239, 7203, 1092, 62, 8897, 24615, 4943, 628, 220, 220, 220, 2488, 79, 541, 4470, 7, 35827, 62, 18908, 9143, 41888, 15739, 35720, 34500, 1358, 13, 20608, 12962, 628, 220, 220, 220, 6818, 616, 62, 79, 541, 4470, 22446, 8897, 18883, 6624, 900, 7, 15739, 35720, 34500, 1358, 13, 2200, 49128, 28957, 8, 628, 220, 220, 220, 2488, 79, 541, 4470, 7, 8897, 18883, 28, 2536, 7, 8897, 18883, 4008, 628, 220, 220, 220, 6818, 616, 62, 79, 541, 4470, 22446, 8897, 18883, 6624, 19779, 1092, 62, 8897, 24615, 20662, 628, 220, 220, 220, 2488, 79, 541, 4470, 7, 198, 220, 220, 220, 220, 220, 220, 220, 2672, 62, 18908, 9143, 41888, 15739, 35720, 34500, 1358, 13, 20608, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 5359, 28, 2536, 7, 8897, 18883, 828, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 6818, 616, 62, 79, 541, 4470, 22446, 8897, 18883, 6624, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 1092, 62, 8897, 24615, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 1635, 15739, 35720, 34500, 1358, 13, 2200, 49128, 28957, 11, 198, 220, 220, 220, 1782, 628, 198, 4299, 1332, 62, 79, 541, 4470, 62, 8897, 18883, 62, 83, 1124, 62, 4868, 7, 22065, 62, 6978, 2599, 198, 220, 220, 220, 37227, 51, 3558, 326, 262, 11523, 5359, 389, 257, 6087, 286, 262, 198, 220, 220, 220, 5359, 286, 4132, 9143, 290, 5359, 286, 262, 7368, 198, 220, 220, 220, 5359, 2393, 526, 15931, 198, 220, 220, 220, 422, 1976, 268, 4029, 13, 18908, 9143, 13, 8135, 35720, 1330, 3661, 35720, 34500, 1358, 628, 220, 220, 220, 5359, 796, 45218, 62, 6978, 1220, 366, 8897, 18883, 13, 14116, 1, 198, 220, 220, 220, 5359, 13, 13564, 62, 5239, 7203, 1092, 62, 8897, 24615, 4943, 628, 220, 220, 220, 2488, 79, 541, 4470, 7, 35827, 62, 18908, 9143, 41888, 15739, 35720, 34500, 1358, 13, 20608, 12962, 628, 220, 220, 220, 6818, 616, 62, 79, 541, 4470, 22446, 8897, 18883, 6624, 900, 7, 15739, 35720, 34500, 1358, 13, 2200, 49128, 28957, 8, 628, 220, 220, 220, 2488, 79, 541, 4470, 7, 8897, 18883, 28, 14692, 1092, 62, 8897, 24615, 8973, 8, 628, 220, 220, 220, 6818, 616, 62, 79, 541, 4470, 22446, 8897, 18883, 6624, 19779, 1092, 62, 8897, 24615, 20662, 628, 220, 220, 220, 2488, 79, 541, 4470, 7, 198, 220, 220, 220, 220, 220, 220, 220, 2672, 62, 18908, 9143, 41888, 15739, 35720, 34500, 1358, 13, 20608, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 5359, 28, 14692, 1092, 62, 8897, 24615, 33116, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 6818, 616, 62, 79, 541, 4470, 22446, 8897, 18883, 6624, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 1092, 62, 8897, 24615, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 1635, 15739, 35720, 34500, 1358, 13, 2200, 49128, 28957, 11, 198, 220, 220, 220, 1782, 628, 198, 4299, 1332, 62, 79, 541, 4470, 62, 5143, 62, 69, 1768, 62, 12518, 62, 35827, 62, 9662, 62, 46616, 62, 271, 62, 45688, 7, 198, 220, 220, 220, 530, 62, 9662, 62, 79, 541, 4470, 11, 198, 2599, 198, 220, 220, 220, 37227, 51, 3558, 326, 2491, 257, 11523, 351, 257, 2239, 326, 4433, 257, 2183, 2239, 198, 220, 220, 220, 10088, 10143, 611, 262, 4075, 8931, 857, 407, 3994, 428, 2239, 10088, 526, 15931, 628, 220, 220, 220, 2488, 9662, 7, 23144, 62, 9662, 62, 46616, 2625, 1031, 495, 4029, 4943, 628, 220, 220, 220, 6818, 407, 1432, 13264, 22446, 5275, 62, 25558, 13, 9662, 62, 46616, 198, 220, 220, 220, 351, 12972, 9288, 13, 430, 2696, 7, 25896, 7762, 24765, 12331, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 530, 62, 9662, 62, 79, 541, 4470, 7, 9662, 62, 5562, 62, 47911, 62, 9662, 62, 46616, 3419, 737, 5143, 3419, 198 ]
2.749417
4,290
import torch import torch.nn as nn from mmcv.cnn import normal_init from torch.autograd import Function import numpy as np from ..builder import HEADS from ...core import top_k_accuracy from .base import AvgConsensus, BaseHead @HEADS.register_module()
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 8085, 33967, 13, 66, 20471, 1330, 3487, 62, 15003, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 15553, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 11485, 38272, 1330, 39837, 50, 198, 6738, 2644, 7295, 1330, 1353, 62, 74, 62, 4134, 23843, 198, 6738, 764, 8692, 1330, 33455, 9444, 7314, 11, 7308, 13847, 628, 198, 198, 31, 37682, 50, 13, 30238, 62, 21412, 3419 ]
3.311688
77
import sys import argparse PROG = "tree" USAGE = "%(prog)s <Path> [options]" DESCRIPTION = "Featureful tree utility in Python"
[ 11748, 25064, 198, 11748, 1822, 29572, 198, 198, 4805, 7730, 796, 366, 21048, 1, 198, 2937, 11879, 796, 36521, 7, 1676, 70, 8, 82, 1279, 15235, 29, 685, 25811, 30866, 198, 30910, 40165, 796, 366, 38816, 913, 5509, 10361, 287, 11361, 1, 628, 198 ]
2.954545
44
""" SAX driver for the Pyexpat C module, based on xml.sax.expatdriver. $Id: drv_pyexpat.py,v 1.6 2000/09/26 19:53:43 loewis Exp $ """ # XXX: todo list of old drv_pyexpat.py, check whether any of these # have been fixed. # Todo on driver: # - make it support external entities (wait for pyexpat.c) # - enable configuration between reset() and feed() calls # - support lexical events? # - proper inputsource handling # - properties and features # Todo on pyexpat.c: # - support XML_ExternalEntityParserCreate # - exceptions in callouts from pyexpat to python code lose position info from xml.sax.expatreader import create_parser
[ 37811, 198, 4090, 55, 4639, 329, 262, 9485, 1069, 8071, 327, 8265, 11, 1912, 319, 35555, 13, 82, 897, 13, 1069, 8071, 26230, 13, 198, 198, 3, 7390, 25, 1553, 85, 62, 9078, 1069, 8071, 13, 9078, 11, 85, 352, 13, 21, 4751, 14, 2931, 14, 2075, 678, 25, 4310, 25, 3559, 2376, 413, 271, 5518, 720, 198, 37811, 198, 198, 2, 27713, 25, 284, 4598, 1351, 286, 1468, 1553, 85, 62, 9078, 1069, 8071, 13, 9078, 11, 2198, 1771, 597, 286, 777, 198, 2, 423, 587, 5969, 13, 198, 2, 309, 24313, 319, 4639, 25, 198, 2, 220, 532, 787, 340, 1104, 7097, 12066, 357, 17077, 329, 12972, 1069, 8071, 13, 66, 8, 198, 2, 220, 532, 7139, 8398, 1022, 13259, 3419, 290, 3745, 3419, 3848, 198, 2, 220, 532, 1104, 31191, 605, 2995, 30, 198, 2, 220, 532, 1774, 5128, 10459, 9041, 198, 2, 220, 532, 6608, 290, 3033, 198, 198, 2, 309, 24313, 319, 12972, 1069, 8071, 13, 66, 25, 198, 2, 220, 532, 1104, 23735, 62, 41506, 32398, 46677, 16447, 198, 2, 220, 532, 13269, 287, 869, 5269, 422, 12972, 1069, 8071, 284, 21015, 2438, 4425, 2292, 7508, 198, 198, 6738, 35555, 13, 82, 897, 13, 1069, 8071, 46862, 1330, 2251, 62, 48610, 198 ]
3.067308
208
import time import random from pprint import pprint global env env= { "BATTERY_LEVEL": 100, "SPOT": False, "SPOT_LOCATION": (3.0, 7.0), "GENERAL": False, "DUSTY_SPOT": False, "DUSTY_SPOT_LOCATION": (0.0, -4.0), "HOME_PATH": [], "LOCATION": (-3.0, 5.0), "FACING": (0, 1) } NODE_INITIALIZED = -1 NODE_SUCCEED = 0 NODE_RUNNING = 1 NODE_FAILED = 2 #class FailedTest(Task): # def job(self, conditions): # time.sleep(0) # print("Failed") # return False if __name__=="__main__": roomba=Roomba() roomba.run(env)
[ 11748, 640, 198, 11748, 4738, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 198, 20541, 17365, 198, 24330, 28, 1391, 198, 220, 220, 220, 366, 47379, 5781, 56, 62, 2538, 18697, 1298, 1802, 11, 198, 220, 220, 220, 366, 4303, 2394, 1298, 10352, 11, 198, 220, 220, 220, 366, 4303, 2394, 62, 29701, 6234, 1298, 357, 18, 13, 15, 11, 767, 13, 15, 828, 198, 220, 220, 220, 366, 35353, 27130, 1298, 10352, 11, 198, 220, 220, 220, 366, 35, 7759, 56, 62, 4303, 2394, 1298, 10352, 11, 198, 220, 220, 220, 366, 35, 7759, 56, 62, 4303, 2394, 62, 29701, 6234, 1298, 357, 15, 13, 15, 11, 532, 19, 13, 15, 828, 198, 220, 220, 220, 366, 39069, 62, 34219, 1298, 685, 4357, 198, 220, 220, 220, 366, 29701, 6234, 1298, 13841, 18, 13, 15, 11, 642, 13, 15, 828, 198, 220, 220, 220, 366, 37, 2246, 2751, 1298, 357, 15, 11, 352, 8, 198, 92, 198, 198, 45, 16820, 62, 1268, 2043, 12576, 14887, 1961, 796, 532, 16, 198, 45, 16820, 62, 12564, 4093, 41841, 796, 657, 198, 45, 16820, 62, 49, 4944, 15871, 796, 352, 198, 45, 16820, 62, 7708, 4146, 1961, 796, 362, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 198, 2, 4871, 22738, 14402, 7, 25714, 2599, 198, 2, 220, 220, 220, 825, 1693, 7, 944, 11, 3403, 2599, 198, 2, 220, 220, 220, 220, 220, 220, 220, 640, 13, 42832, 7, 15, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 3601, 7203, 37, 6255, 4943, 198, 2, 220, 220, 220, 220, 220, 220, 220, 1441, 10352, 628, 198, 361, 11593, 3672, 834, 855, 1, 834, 12417, 834, 1298, 198, 220, 220, 220, 2119, 7012, 28, 15450, 2381, 64, 3419, 198, 220, 220, 220, 2119, 7012, 13, 5143, 7, 24330, 8, 198 ]
1.97377
305
import nox BLACK_PATHS = ["helpers", "."] @nox.session(python="3.8") def blacken(session): """Run black. Format code to uniform standard. """ session.install("black") session.run( "black", *BLACK_PATHS, ) @nox.session(python="3.8") def unit(session): """Run the unit test suite.""" session.install("pytest") session.run("pytest")
[ 11748, 645, 87, 198, 198, 9148, 8120, 62, 47, 1404, 7998, 796, 14631, 16794, 364, 1600, 366, 526, 60, 628, 198, 31, 35420, 13, 29891, 7, 29412, 2625, 18, 13, 23, 4943, 198, 4299, 2042, 268, 7, 29891, 2599, 198, 220, 220, 220, 37227, 10987, 2042, 13, 198, 220, 220, 220, 18980, 2438, 284, 8187, 3210, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 6246, 13, 17350, 7203, 13424, 4943, 198, 220, 220, 220, 6246, 13, 5143, 7, 198, 220, 220, 220, 220, 220, 220, 220, 366, 13424, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 1635, 9148, 8120, 62, 47, 1404, 7998, 11, 198, 220, 220, 220, 1267, 628, 198, 31, 35420, 13, 29891, 7, 29412, 2625, 18, 13, 23, 4943, 198, 4299, 4326, 7, 29891, 2599, 198, 220, 220, 220, 37227, 10987, 262, 4326, 1332, 18389, 526, 15931, 198, 220, 220, 220, 6246, 13, 17350, 7203, 9078, 9288, 4943, 198, 220, 220, 220, 6246, 13, 5143, 7203, 9078, 9288, 4943, 198 ]
2.331325
166
""" Provides EventEmitter class. """ import asyncio from functools import partial from typing import ( Callable, Dict, Type, Union, Coroutine, Set, ) from .event import BaseEvent from .subscription import Subscription # pylint: disable=invalid-name EventCallbackType = Callable[[BaseEvent], Union[None, Coroutine[None, None, None]]] class EventEmitter: """ ABC for a class whose instances emit events. :ivar _event_listeners: A dictionary whose keys are subclasses of BaseEvent and whose values are lists of event handlers. Event handlers should be callables that accept a single argument: the event being emitted. """ _subscriptions: Dict[Type[BaseEvent], Set[Subscription]] def listen(self, event_type: Type[BaseEvent], callback: EventCallbackType) -> "Subscription": """ Register a callback to be fired when an event is emitted. :param event_type: The type of event (subclass of :py:class:`BaseEvent`) to listen for. :param callback: The callback to trigger when the event is emitted; should accept a single parameter which is the instance of `event_type` that was emitted. :return: """ if event_type not in self._subscriptions: self._subscriptions[event_type] = set() subscription = Subscription( callback, unsubscribe=partial(self._remove_subscription, event_type), loop=self._loop, ) self._subscriptions[event_type].add(subscription) return subscription def emit(self, event: BaseEvent): """ Emit an event. :param event: The event to be omitted. :return: """ if not isinstance(event, BaseEvent): raise ValueError(f"Events must be subclasses of BaseEvent (got {repr(event)}).") if event.target is None: event.target = self subscriptions = self._get_subscriptions_for_event_type(type(event)) for subscription in subscriptions: subscription.invoke(event) def proxy(self, emitter): """ Proxy events from another emitter. Useful in a grandparent-parent-child type pattern where the grandparent cares about events emitted in the child. :param emitter: :return: """ emitter.listen(BaseEvent, self._proxy_event) def _proxy_event(self, event): """ Emit an event via proxy. :param event: The event to proxy. :return: """ self.emit(event) def _get_subscriptions_for_event_type( self, event_type: Type, ) -> Set["Subscription"]: """ Get all handlers for an event type. This method will walk up the subclass graph so that a handler for `SomeEventType` will also handle events of type `SubclassOfSomeEventType`. :param event_type: The event type to find handlers for. :return: A list of event handlers. """ # Note: See `test_event_multiple_inheritance.py` for a description about # why we need to use a set here (rather than a list). handlers = set() if not issubclass(event_type, BaseEvent): raise ValueError(f"Event classes must extend BaseEvent (got {repr(event_type)}).") if event_type in self._subscriptions: handlers.update(self._subscriptions[event_type]) for event_supertype in event_type.__bases__: if not issubclass(event_supertype, BaseEvent): continue handlers.update(self._get_subscriptions_for_event_type(event_supertype)) return handlers
[ 37811, 198, 15946, 1460, 8558, 10161, 1967, 1398, 13, 198, 37811, 198, 198, 11748, 30351, 952, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 19720, 1330, 357, 198, 220, 220, 220, 4889, 540, 11, 198, 220, 220, 220, 360, 713, 11, 198, 220, 220, 220, 5994, 11, 198, 220, 220, 220, 4479, 11, 198, 220, 220, 220, 2744, 28399, 11, 198, 220, 220, 220, 5345, 11, 198, 8, 198, 198, 6738, 764, 15596, 1330, 7308, 9237, 198, 6738, 764, 7266, 33584, 1330, 3834, 33584, 628, 198, 2, 279, 2645, 600, 25, 15560, 28, 259, 12102, 12, 3672, 198, 9237, 47258, 6030, 796, 4889, 540, 30109, 14881, 9237, 4357, 4479, 58, 14202, 11, 2744, 28399, 58, 14202, 11, 6045, 11, 6045, 11907, 60, 628, 198, 4871, 8558, 10161, 1967, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 9738, 329, 257, 1398, 3025, 10245, 27588, 2995, 13, 628, 220, 220, 220, 1058, 452, 283, 4808, 15596, 62, 4868, 36014, 25, 317, 22155, 3025, 8251, 389, 850, 37724, 286, 7308, 9237, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 290, 3025, 3815, 389, 8341, 286, 1785, 32847, 13, 8558, 32847, 815, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 307, 869, 2977, 326, 2453, 257, 2060, 4578, 25, 262, 1785, 852, 31234, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 4808, 7266, 12048, 507, 25, 360, 713, 58, 6030, 58, 14881, 9237, 4357, 5345, 58, 7004, 33584, 11907, 628, 220, 220, 220, 825, 6004, 7, 944, 11, 1785, 62, 4906, 25, 5994, 58, 14881, 9237, 4357, 23838, 25, 8558, 47258, 6030, 8, 4613, 366, 7004, 33584, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 17296, 257, 23838, 284, 307, 6294, 618, 281, 1785, 318, 31234, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 1785, 62, 4906, 25, 383, 2099, 286, 1785, 357, 7266, 4871, 286, 1058, 9078, 25, 4871, 25, 63, 14881, 9237, 63, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 284, 6004, 329, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 23838, 25, 383, 23838, 284, 7616, 618, 262, 1785, 318, 31234, 26, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 815, 2453, 257, 2060, 11507, 543, 318, 262, 4554, 286, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4600, 15596, 62, 4906, 63, 326, 373, 31234, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1785, 62, 4906, 407, 287, 2116, 13557, 7266, 12048, 507, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 7266, 12048, 507, 58, 15596, 62, 4906, 60, 796, 900, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 14569, 796, 3834, 33584, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23838, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 32793, 12522, 28, 47172, 7, 944, 13557, 28956, 62, 7266, 33584, 11, 1785, 62, 4906, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9052, 28, 944, 13557, 26268, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 7266, 12048, 507, 58, 15596, 62, 4906, 4083, 2860, 7, 7266, 33584, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 14569, 628, 220, 220, 220, 825, 27588, 7, 944, 11, 1785, 25, 7308, 9237, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2295, 270, 281, 1785, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 1785, 25, 383, 1785, 284, 307, 22532, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 407, 318, 39098, 7, 15596, 11, 7308, 9237, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 11052, 12331, 7, 69, 1, 37103, 1276, 307, 850, 37724, 286, 7308, 9237, 357, 23442, 1391, 260, 1050, 7, 15596, 8, 30072, 19570, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1785, 13, 16793, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1785, 13, 16793, 796, 2116, 198, 220, 220, 220, 220, 220, 220, 220, 35675, 796, 2116, 13557, 1136, 62, 7266, 12048, 507, 62, 1640, 62, 15596, 62, 4906, 7, 4906, 7, 15596, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 329, 14569, 287, 35675, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14569, 13, 37669, 7, 15596, 8, 628, 220, 220, 220, 825, 15741, 7, 944, 11, 795, 1967, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 38027, 2995, 422, 1194, 795, 1967, 13, 628, 220, 220, 220, 220, 220, 220, 220, 49511, 287, 257, 4490, 8000, 12, 8000, 12, 9410, 2099, 3912, 810, 262, 4490, 8000, 198, 220, 220, 220, 220, 220, 220, 220, 16609, 546, 2995, 31234, 287, 262, 1200, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 795, 1967, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 795, 1967, 13, 4868, 268, 7, 14881, 9237, 11, 2116, 13557, 36436, 62, 15596, 8, 628, 220, 220, 220, 825, 4808, 36436, 62, 15596, 7, 944, 11, 1785, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2295, 270, 281, 1785, 2884, 15741, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 1785, 25, 383, 1785, 284, 15741, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 368, 270, 7, 15596, 8, 628, 220, 220, 220, 825, 4808, 1136, 62, 7266, 12048, 507, 62, 1640, 62, 15596, 62, 4906, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 1785, 62, 4906, 25, 5994, 11, 198, 220, 220, 220, 1267, 4613, 5345, 14692, 7004, 33584, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 3497, 477, 32847, 329, 281, 1785, 2099, 13, 628, 220, 220, 220, 220, 220, 220, 220, 770, 2446, 481, 2513, 510, 262, 47611, 4823, 523, 326, 257, 21360, 198, 220, 220, 220, 220, 220, 220, 220, 329, 4600, 4366, 9237, 6030, 63, 481, 635, 5412, 2995, 286, 2099, 198, 220, 220, 220, 220, 220, 220, 220, 4600, 7004, 4871, 5189, 4366, 9237, 6030, 44646, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 1785, 62, 4906, 25, 383, 1785, 2099, 284, 1064, 32847, 329, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 317, 1351, 286, 1785, 32847, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 5740, 25, 4091, 4600, 9288, 62, 15596, 62, 48101, 62, 259, 372, 42942, 13, 9078, 63, 329, 257, 6764, 546, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 1521, 356, 761, 284, 779, 257, 900, 994, 357, 34330, 621, 257, 1351, 737, 198, 220, 220, 220, 220, 220, 220, 220, 32847, 796, 900, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 611, 407, 1189, 549, 4871, 7, 15596, 62, 4906, 11, 7308, 9237, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 11052, 12331, 7, 69, 1, 9237, 6097, 1276, 9117, 7308, 9237, 357, 23442, 1391, 260, 1050, 7, 15596, 62, 4906, 8, 30072, 19570, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1785, 62, 4906, 287, 2116, 13557, 7266, 12048, 507, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 32847, 13, 19119, 7, 944, 13557, 7266, 12048, 507, 58, 15596, 62, 4906, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1785, 62, 16668, 4906, 287, 1785, 62, 4906, 13, 834, 65, 1386, 834, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 407, 1189, 549, 4871, 7, 15596, 62, 16668, 4906, 11, 7308, 9237, 2599, 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, 32847, 13, 19119, 7, 944, 13557, 1136, 62, 7266, 12048, 507, 62, 1640, 62, 15596, 62, 4906, 7, 15596, 62, 16668, 4906, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 32847, 198 ]
2.482166
1,514
#! /usr/bin/env python ''' A script to fix CEDAR's ASCII dispersion solution output. ABOUT: This script can be used to modify .txt files that CEDAR produce when dispersion solution output has been saved. USAGE: CEDARDispersionTXTFixer.py [-h] [-v] [-r] [-c] [-f] string [-o] srtring where: [-h] prints help [-v] verbose mode on [-r] creates an output file called dispersion.txt which is in format that can be used as an input to update_*_disp.pro scripts. [-c] compares results to TV06 six data found from CDBS [-f] user defined string that is used to search text files to be processed. User can specify wild cards e.g. "*wcal.txt". [-o] name of the output file. This does not change the name of the output file that optional argument -c produces. DEPENDS: Python 2.5 or 2.6 (not version 3.x compatible) Pyfits EXITSTA: 0: No errors AUTHOR : Sami-Matias Niemi, for STScI HISTORY: May 15 2009: Initial Version @author: Sami-Matias Niemi ''' __author__ = 'Sami-Matias Niemi' __version__ = '0.9' #Processes command line arguments #Main program begins if __name__ == '__main__': import glob import sys import pyfits as PF #command line arguments (opts, args) = process_args() if checkZeroArguments(opts) == False: process_args(True) sys.exit(-9) #verbose verbose = False if opts.verbose is True: verbose = True #CDBS TV06 files cdbspath = '/grp/hst/cdbs/lref/' fuvfile = 't2k1224el_disp.fits' nuvfile = 't2917094l_disp.fits' #search string if opts.find is not None: search = opts.find else: search = '*wcal.txt' if verbose: print '\nWill use string: %s to indetify ASCII files containing dispersion solutions' % search #finds all files containing search string txtfiles = glob.glob(search) #outputfile if opts.output is not None: out = open(opts.output, 'w') if opts.comparison is True: outcomp = open(opts.output + '.comparison', 'w') if opts.reference is not None: outref = open('dispersion.txt', 'w') if verbose: print '\n Output will be written to file %s' % opts.output outfile = opts.output else: outfile = 'CEDARDispersionTXTFixer.output' out = open(outfile, 'w') if opts.comparison is True: outcomp = open('CEDARDispersionTXTFixer.output.comparison', 'w') if opts.reference is not None: outref = open('dispersion.txt', 'w') if verbose: print '\n You did not specify output filename. Will use default CEDARDispersionTXTFixer.output' #main loop for file in txtfiles: if verbose: print '\nTrying to open file: %s' % file try: fulldata = open(file, 'r').readlines() except: if verbose: print '\nERROR: Cannot read file %s' % file pass #splits the file sdata = [line.strip().split() for line in fulldata] filename = sdata[0][0] #gets all coefficients coeffs = [] RMS = '' if verbose: print '\nSearching for coefficient values...' for line in sdata: try: if line[0].startswith('C'): if verbose: print '\nFound:', line coeffs.append([line[2], line[4]]) if line[0].startswith('RMS'): if verbose: print '\nRMS of fit was %s' % line[4] RMS = line[4] except: pass if verbose: print '\nTrying to find equivalent (%s) FITS file for header information...' % filename #Tries to open equivalent FITS file try: hdr0 = PF.open(filename)[0].header except: if verbose: print '\nERROR: Could not open %s. Will not get header information.' % filename pass #Tries to get all required header keywords try: cenwav = hdr0['CENWAVE'] stripe = hdr0['SEGMENT'] grating = hdr0['OPT_ELEM'] fppos = hdr0['FPPOS'] aperture = hdr0['APERTURE'] except: if verbose: print '\nERROR: Could not read all required header keywords of %s' % filename cenwave = 'NA' strip = 'XNA' grating = 'NA' fppos = 'NA' aperture = 'NA' #comparison to CDBS #should be rewritten, as it now opens the file for nothing on every round... if opts.comparison is True: if verbose: print '\nWill try to compare calculated results to the dispersion solution of TV06 data.' try: if stripe.startswith('N'): if verbose: print 'Trying to open %s' % cdbspath + nuvfile CDBSdata = PF.open(cdbspath + nuvfile)[1].data CDBScoeff = [line[5] for line in CDBSdata if line[0].strip() == stripe and line[1].strip() == grating and line[2].strip() == aperture and line[3] == cenwav] if stripe.startswith('F'): if verbose: print 'Trying to open %s' % cdbspath + fuvfile CDBSdata = PF.open(cdbspath + fuvfile)[1].data CDBScoeff = [line[5] for line in CDBSdata if line[0].strip() == stripe and line[1].strip() == grating and line[2].strip() == aperture and line[3] == cenwav] except: if verbose: print '\nERROR: Cannot open CDBS file...' CDBScoeff = 'NA' #lets calculate delta delta = [] for new, old in zip(coeffs, CDBScoeff[0]): delta.append(float(new[0]) - old) #some quick results to screen if verbose: print stripe, grating, aperture, cenwav, fppos, coeffs, CDBScoeff, delta #output cfs = '' CDBSfs = '' deltas = '' for x in coeffs: cfs += x[0] + ' ' + x[1] + ' ' if opts.comparison is True: for x in CDBScoeff[0]: CDBSfs += str(x) + ' ' for x in delta: deltas += str(x) + ' ' else: CDBSfs = ' ' #normal outputs if verbose: print '\nWill output data to %s' % outfile out.write(stripe + ' ' + grating + ' ' + aperture + ' ' + str(cenwav) + ' ' + str(fppos) + ' ' + cfs + CDBSfs + deltas + '\n') #output in reference file format if opts.reference is True: if verbose: print '\nWill output data to dispersion.txt' outref.write(stripe + ' ' + grating + ' ' + aperture + ' ' + str(cenwav) + ' ' + str(fppos) + ' ' + coeffs[0][0] + ' ' + coeffs[1][0] + ' ' + coeffs[2][0] + ' ' + coeffs[3][0] + '\n') #comparison output if opts.comparison is True: if verbose: print '\nWill output data to %s' % outfile + '.comparison' outcomp.write(stripe + ' ' + grating + ' ' + aperture + ' ' + str(cenwav) + ' ' + str(fppos) + ' ' + deltas + '\n') #closes open files out.close() if opts.comparison: outcomp.close() if opts.reference: outref.close() #exits if verbose: print '\n\nScripts finished...' sys.exit(0)
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 7061, 6, 198, 32, 4226, 284, 4259, 327, 1961, 1503, 338, 37101, 4596, 6900, 4610, 5072, 13, 198, 198, 6242, 12425, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 770, 4226, 460, 307, 973, 284, 13096, 764, 14116, 3696, 326, 327, 1961, 1503, 4439, 618, 198, 220, 220, 220, 220, 220, 220, 220, 220, 4596, 6900, 4610, 5072, 468, 587, 7448, 13, 220, 198, 198, 2937, 11879, 25, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 327, 1961, 1503, 7279, 79, 6900, 29551, 10234, 844, 263, 13, 9078, 25915, 71, 60, 25915, 85, 60, 25915, 81, 60, 25915, 66, 60, 25915, 69, 60, 4731, 25915, 78, 60, 264, 17034, 1806, 198, 220, 220, 220, 220, 220, 220, 220, 220, 810, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 25915, 71, 60, 20842, 1037, 198, 220, 220, 220, 220, 220, 220, 220, 220, 25915, 85, 60, 15942, 577, 4235, 319, 198, 220, 220, 220, 220, 220, 220, 220, 220, 25915, 81, 60, 8075, 281, 5072, 2393, 1444, 4596, 6900, 13, 14116, 543, 318, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 287, 5794, 326, 460, 307, 973, 355, 281, 5128, 284, 4296, 62, 9, 62, 6381, 79, 13, 1676, 14750, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 25915, 66, 60, 23008, 2482, 284, 3195, 3312, 2237, 1366, 1043, 422, 6458, 4462, 198, 220, 220, 220, 220, 220, 220, 220, 220, 25915, 69, 60, 2836, 5447, 4731, 326, 318, 973, 284, 2989, 2420, 3696, 284, 307, 13686, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11787, 460, 11986, 4295, 4116, 304, 13, 70, 13, 366, 9, 86, 9948, 13, 14116, 1911, 198, 220, 220, 220, 220, 220, 220, 220, 220, 25915, 78, 60, 1438, 286, 262, 5072, 2393, 13, 770, 857, 407, 1487, 262, 1438, 286, 262, 5072, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2393, 326, 11902, 4578, 532, 66, 11073, 13, 198, 198, 46162, 1677, 5258, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 11361, 362, 13, 20, 393, 362, 13, 21, 357, 1662, 2196, 513, 13, 87, 11670, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 9485, 21013, 198, 198, 6369, 2043, 2257, 32, 25, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 657, 25, 1400, 8563, 198, 198, 32, 24318, 1581, 1058, 198, 220, 220, 220, 220, 220, 220, 220, 220, 3409, 72, 12, 19044, 4448, 11556, 43967, 11, 329, 3563, 3351, 40, 198, 198, 39, 42480, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 1737, 1315, 3717, 25, 20768, 10628, 198, 198, 31, 9800, 25, 3409, 72, 12, 19044, 4448, 11556, 43967, 198, 7061, 6, 198, 198, 834, 9800, 834, 796, 705, 50, 6277, 12, 19044, 4448, 11556, 43967, 6, 198, 834, 9641, 834, 796, 705, 15, 13, 24, 6, 198, 198, 2, 18709, 274, 3141, 1627, 7159, 198, 198, 2, 13383, 1430, 6140, 198, 361, 11593, 3672, 834, 220, 220, 220, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1330, 15095, 198, 220, 220, 220, 1330, 25064, 198, 220, 220, 220, 1330, 12972, 21013, 355, 28223, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 21812, 1627, 7159, 198, 220, 220, 220, 357, 404, 912, 11, 26498, 8, 796, 1429, 62, 22046, 3419, 198, 220, 220, 220, 220, 198, 220, 220, 220, 611, 2198, 28667, 28100, 2886, 7, 404, 912, 8, 6624, 10352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1429, 62, 22046, 7, 17821, 8, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 13, 37023, 32590, 24, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 19011, 577, 198, 220, 220, 220, 15942, 577, 796, 10352, 198, 220, 220, 220, 611, 2172, 82, 13, 19011, 577, 318, 6407, 25, 15942, 577, 796, 6407, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 8610, 4462, 3195, 3312, 3696, 198, 220, 220, 220, 22927, 1443, 6978, 796, 31051, 2164, 79, 14, 71, 301, 14, 10210, 1443, 14, 75, 5420, 14, 6, 198, 220, 220, 220, 14035, 85, 7753, 796, 705, 83, 17, 74, 1065, 1731, 417, 62, 6381, 79, 13, 21013, 6, 198, 220, 220, 220, 14364, 85, 7753, 796, 705, 83, 1959, 1558, 2931, 19, 75, 62, 6381, 79, 13, 21013, 6, 628, 220, 220, 220, 1303, 12947, 4731, 198, 220, 220, 220, 611, 2172, 82, 13, 19796, 318, 407, 6045, 25, 2989, 796, 2172, 82, 13, 19796, 198, 220, 220, 220, 2073, 25, 2989, 796, 705, 9, 86, 9948, 13, 14116, 6, 198, 220, 220, 220, 220, 198, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 59, 77, 8743, 779, 4731, 25, 4064, 82, 284, 773, 316, 1958, 37101, 3696, 7268, 4596, 6900, 8136, 6, 4064, 2989, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 19796, 82, 477, 3696, 7268, 2989, 4731, 198, 220, 220, 220, 256, 742, 16624, 796, 15095, 13, 4743, 672, 7, 12947, 8, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 22915, 7753, 198, 220, 220, 220, 611, 2172, 82, 13, 22915, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 503, 796, 1280, 7, 404, 912, 13, 22915, 11, 705, 86, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2172, 82, 13, 785, 1845, 1653, 318, 6407, 25, 503, 5589, 796, 1280, 7, 404, 912, 13, 22915, 1343, 45302, 785, 1845, 1653, 3256, 705, 86, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2172, 82, 13, 35790, 318, 407, 6045, 25, 503, 5420, 796, 1280, 10786, 6381, 79, 6900, 13, 14116, 3256, 705, 86, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 59, 77, 25235, 481, 307, 3194, 284, 2393, 4064, 82, 6, 220, 4064, 2172, 82, 13, 22915, 198, 220, 220, 220, 220, 220, 220, 220, 503, 7753, 796, 2172, 82, 13, 22915, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 503, 7753, 796, 705, 34, 1961, 1503, 7279, 79, 6900, 29551, 10234, 844, 263, 13, 22915, 6, 198, 220, 220, 220, 220, 220, 220, 220, 503, 796, 1280, 7, 448, 7753, 11, 705, 86, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2172, 82, 13, 785, 1845, 1653, 318, 6407, 25, 503, 5589, 796, 1280, 10786, 34, 1961, 1503, 7279, 79, 6900, 29551, 10234, 844, 263, 13, 22915, 13, 785, 1845, 1653, 3256, 705, 86, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2172, 82, 13, 35790, 318, 407, 6045, 25, 503, 5420, 796, 1280, 10786, 6381, 79, 6900, 13, 14116, 3256, 705, 86, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 59, 77, 921, 750, 407, 11986, 5072, 29472, 13, 2561, 779, 4277, 327, 1961, 1503, 7279, 79, 6900, 29551, 10234, 844, 263, 13, 22915, 6, 628, 220, 220, 220, 220, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 12417, 9052, 198, 220, 220, 220, 329, 2393, 287, 256, 742, 16624, 25, 198, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 59, 77, 51, 14992, 284, 1280, 2393, 25, 4064, 82, 6, 4064, 2393, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1336, 7890, 796, 1280, 7, 7753, 11, 705, 81, 27691, 961, 6615, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 59, 77, 24908, 25, 26003, 1100, 2393, 4064, 82, 6, 4064, 2393, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1208, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 22018, 896, 262, 2393, 198, 220, 220, 220, 220, 220, 220, 220, 264, 7890, 796, 685, 1370, 13, 36311, 22446, 35312, 3419, 329, 1627, 287, 1336, 7890, 60, 198, 220, 220, 220, 220, 220, 220, 220, 29472, 796, 264, 7890, 58, 15, 7131, 15, 60, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 11407, 477, 44036, 198, 220, 220, 220, 220, 220, 220, 220, 763, 14822, 82, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 371, 5653, 796, 10148, 198, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 59, 77, 18243, 278, 329, 35381, 3815, 986, 6, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1627, 287, 264, 7890, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1627, 58, 15, 4083, 9688, 2032, 342, 10786, 34, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 59, 77, 21077, 25, 3256, 1627, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 763, 14822, 82, 13, 33295, 26933, 1370, 58, 17, 4357, 1627, 58, 19, 11907, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1627, 58, 15, 4083, 9688, 2032, 342, 10786, 49, 5653, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 59, 77, 49, 5653, 286, 4197, 373, 4064, 82, 6, 4064, 1627, 58, 19, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 371, 5653, 796, 1627, 58, 19, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2845, 25, 1208, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 59, 77, 51, 14992, 284, 1064, 7548, 37633, 82, 8, 376, 29722, 2393, 329, 13639, 1321, 986, 6, 4064, 29472, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 51, 1678, 284, 1280, 7548, 376, 29722, 2393, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 289, 7109, 15, 796, 28223, 13, 9654, 7, 34345, 38381, 15, 4083, 25677, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 59, 77, 24908, 25, 10347, 407, 1280, 4064, 82, 13, 2561, 407, 651, 13639, 1321, 2637, 4064, 29472, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1208, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 51, 1678, 284, 651, 477, 2672, 13639, 26286, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 268, 45137, 796, 289, 7109, 15, 17816, 34, 1677, 15543, 6089, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39858, 796, 289, 7109, 15, 17816, 5188, 38, 10979, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1036, 803, 796, 289, 7109, 15, 17816, 3185, 51, 62, 36, 2538, 44, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 381, 418, 796, 289, 7109, 15, 17816, 5837, 37997, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 32729, 796, 289, 7109, 15, 17816, 2969, 17395, 11335, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 59, 77, 24908, 25, 10347, 407, 1100, 477, 2672, 13639, 26286, 286, 4064, 82, 6, 4064, 29472, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 268, 19204, 796, 705, 4535, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10283, 796, 705, 55, 4535, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1036, 803, 796, 705, 4535, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 381, 418, 796, 705, 4535, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 32729, 796, 705, 4535, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 785, 1845, 1653, 284, 6458, 4462, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 21754, 307, 30101, 11, 355, 340, 783, 9808, 262, 2393, 329, 2147, 319, 790, 2835, 986, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2172, 82, 13, 785, 1845, 1653, 318, 6407, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 59, 77, 8743, 1949, 284, 8996, 10488, 2482, 284, 262, 4596, 6900, 4610, 286, 3195, 3312, 1366, 2637, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 39858, 13, 9688, 2032, 342, 10786, 45, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 51, 14992, 284, 1280, 4064, 82, 6, 4064, 22927, 1443, 6978, 1343, 14364, 85, 7753, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6458, 4462, 7890, 796, 28223, 13, 9654, 7, 10210, 1443, 6978, 1343, 14364, 85, 7753, 38381, 16, 4083, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6458, 4462, 1073, 14822, 796, 685, 1370, 58, 20, 60, 329, 1627, 287, 6458, 4462, 7890, 220, 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, 611, 1627, 58, 15, 4083, 36311, 3419, 6624, 39858, 290, 220, 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, 1627, 58, 16, 4083, 36311, 3419, 6624, 1036, 803, 290, 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, 1627, 58, 17, 4083, 36311, 3419, 6624, 32729, 290, 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, 1627, 58, 18, 60, 6624, 269, 268, 45137, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 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, 611, 39858, 13, 9688, 2032, 342, 10786, 37, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 51, 14992, 284, 1280, 4064, 82, 6, 4064, 22927, 1443, 6978, 1343, 14035, 85, 7753, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6458, 4462, 7890, 796, 28223, 13, 9654, 7, 10210, 1443, 6978, 1343, 14035, 85, 7753, 38381, 16, 4083, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6458, 4462, 1073, 14822, 796, 685, 1370, 58, 20, 60, 329, 1627, 287, 6458, 4462, 7890, 220, 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, 611, 1627, 58, 15, 4083, 36311, 3419, 6624, 39858, 290, 220, 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, 1627, 58, 16, 4083, 36311, 3419, 6624, 1036, 803, 290, 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, 1627, 58, 17, 4083, 36311, 3419, 6624, 32729, 290, 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, 1627, 58, 18, 60, 6624, 269, 268, 45137, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2845, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 59, 77, 24908, 25, 26003, 1280, 6458, 4462, 2393, 986, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6458, 4462, 1073, 14822, 796, 705, 4535, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 5289, 15284, 25979, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25979, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 649, 11, 1468, 287, 19974, 7, 1073, 14822, 82, 11, 6458, 4462, 1073, 14822, 58, 15, 60, 2599, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25979, 13, 33295, 7, 22468, 7, 3605, 58, 15, 12962, 532, 1468, 8, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 11246, 2068, 2482, 284, 3159, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 39858, 11, 1036, 803, 11, 32729, 11, 269, 268, 45137, 11, 277, 381, 418, 11, 763, 14822, 82, 11, 6458, 4462, 1073, 14822, 11, 25979, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 22915, 198, 220, 220, 220, 220, 220, 220, 220, 269, 9501, 796, 10148, 198, 220, 220, 220, 220, 220, 220, 220, 6458, 4462, 9501, 796, 10148, 198, 220, 220, 220, 220, 220, 220, 220, 1619, 83, 292, 796, 10148, 198, 220, 220, 220, 220, 220, 220, 220, 329, 2124, 287, 763, 14822, 82, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 9501, 15853, 2124, 58, 15, 60, 1343, 705, 705, 1343, 2124, 58, 16, 60, 1343, 705, 705, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2172, 82, 13, 785, 1845, 1653, 318, 6407, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 2124, 287, 6458, 4462, 1073, 14822, 58, 15, 5974, 6458, 4462, 9501, 15853, 965, 7, 87, 8, 1343, 705, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 2124, 287, 25979, 25, 1619, 83, 292, 15853, 965, 7, 87, 8, 1343, 705, 705, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6458, 4462, 9501, 796, 705, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 11265, 23862, 198, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 59, 77, 8743, 5072, 1366, 284, 4064, 82, 6, 4064, 503, 7753, 198, 220, 220, 220, 220, 220, 220, 220, 503, 13, 13564, 7, 33565, 431, 1343, 705, 705, 1343, 1036, 803, 1343, 705, 705, 1343, 32729, 1343, 705, 705, 1343, 965, 7, 66, 268, 45137, 8, 1343, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 705, 1343, 965, 7, 69, 381, 418, 8, 1343, 705, 705, 1343, 269, 9501, 1343, 6458, 4462, 9501, 1343, 1619, 83, 292, 1343, 705, 59, 77, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 22915, 287, 4941, 2393, 5794, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2172, 82, 13, 35790, 318, 6407, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 59, 77, 8743, 5072, 1366, 284, 4596, 6900, 13, 14116, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 503, 5420, 13, 13564, 7, 33565, 431, 1343, 705, 705, 1343, 1036, 803, 1343, 705, 705, 1343, 32729, 1343, 705, 705, 1343, 965, 7, 66, 268, 45137, 8, 1343, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 705, 1343, 965, 7, 69, 381, 418, 8, 1343, 705, 705, 1343, 763, 14822, 82, 58, 15, 7131, 15, 60, 1343, 705, 705, 1343, 763, 14822, 82, 58, 16, 7131, 15, 60, 1343, 705, 705, 1343, 763, 14822, 82, 58, 17, 7131, 15, 60, 1343, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 705, 1343, 763, 14822, 82, 58, 18, 7131, 15, 60, 1343, 705, 59, 77, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 785, 1845, 1653, 5072, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2172, 82, 13, 785, 1845, 1653, 318, 6407, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 59, 77, 8743, 5072, 1366, 284, 4064, 82, 6, 4064, 503, 7753, 1343, 45302, 785, 1845, 1653, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 503, 5589, 13, 13564, 7, 33565, 431, 1343, 705, 705, 1343, 1036, 803, 1343, 705, 705, 1343, 32729, 1343, 705, 705, 1343, 965, 7, 66, 268, 45137, 8, 1343, 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, 705, 705, 1343, 965, 7, 69, 381, 418, 8, 1343, 705, 705, 1343, 1619, 83, 292, 1343, 705, 59, 77, 11537, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 565, 4629, 1280, 3696, 198, 220, 220, 220, 503, 13, 19836, 3419, 198, 220, 220, 220, 611, 2172, 82, 13, 785, 1845, 1653, 25, 503, 5589, 13, 19836, 3419, 198, 220, 220, 220, 611, 2172, 82, 13, 35790, 25, 503, 5420, 13, 19836, 3419, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 1069, 896, 198, 220, 220, 220, 611, 15942, 577, 25, 3601, 705, 59, 77, 59, 77, 7391, 82, 5201, 986, 6, 198, 220, 220, 220, 25064, 13, 37023, 7, 15, 8, 198 ]
1.963568
3,980
# # Author: Henrique Pereira Coutada Miranda # Run a IP calculation using yambo # from __future__ import print_function import sys from yambopy import * from qepy import * import argparse #parse options parser = argparse.ArgumentParser(description='Test the yambopy script.') parser.add_argument('-dg','--doublegrid', action="store_true", help='Use double grid') parser.add_argument('-c', '--calc', action="store_true", help='calculate the IP absorption') parser.add_argument('-p', '--plot', action="store_true", help='plot the results') args = parser.parse_args() if len(sys.argv)==1: parser.print_help() sys.exit(1) yambo = "yambo" folder = 'ip' #check if the SAVE folder is present if not os.path.isdir('database/SAVE'): print('preparing yambo database') os.system('mkdir -p database') os.system('cd nscf/bn.save; p2y > p2y.log') os.system('cd nscf/bn.save; yambo > yambo.log') os.system('mv nscf/bn.save/SAVE database') if not os.path.isdir(folder): os.mkdir(folder) os.system('cp -r database/SAVE %s'%folder) #initialize the double grid if args.doublegrid: print("creating double grid") f = open('%s/ypp.in'%folder,'w') f.write("""kpts_map %DbGd_DB1_paths "../database_double" %""") f.close() os.system('cd %s; ypp'%folder) if args.calc: #create the yambo input file y = YamboIn('yambo -o g -V all',folder=folder) y['FFTGvecs'] = [30,'Ry'] y['BndsRnXs'] = [1,30] y['QpntsRXd'] = [[1,1],''] y['ETStpsXd'] = 500 y.write('%s/yambo_run.in'%folder) print('running yambo') os.system('cd %s; %s -F yambo_run.in -J yambo'%(folder,yambo)) if args.plot: #pack in a json file y = YamboOut(folder) y.pack()
[ 2, 198, 2, 6434, 25, 6752, 33865, 17229, 8704, 40253, 4763, 29575, 198, 2, 5660, 257, 6101, 17952, 1262, 331, 22651, 198, 2, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 25064, 198, 6738, 331, 4131, 11081, 1330, 1635, 198, 6738, 10662, 538, 88, 1330, 1635, 198, 11748, 1822, 29572, 198, 198, 2, 29572, 3689, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 11639, 14402, 262, 331, 4131, 11081, 4226, 2637, 8, 198, 48610, 13, 2860, 62, 49140, 10786, 12, 67, 70, 41707, 438, 23352, 25928, 3256, 2223, 2625, 8095, 62, 7942, 1600, 1037, 11639, 11041, 4274, 10706, 11537, 198, 48610, 13, 2860, 62, 49140, 10786, 12, 66, 3256, 705, 438, 9948, 66, 3256, 2223, 2625, 8095, 62, 7942, 1600, 1037, 11639, 9948, 3129, 378, 262, 6101, 24774, 11537, 198, 48610, 13, 2860, 62, 49140, 10786, 12, 79, 3256, 705, 438, 29487, 3256, 2223, 2625, 8095, 62, 7942, 1600, 1037, 11639, 29487, 262, 2482, 11537, 198, 22046, 796, 30751, 13, 29572, 62, 22046, 3419, 198, 198, 361, 18896, 7, 17597, 13, 853, 85, 8, 855, 16, 25, 198, 220, 220, 220, 30751, 13, 4798, 62, 16794, 3419, 198, 220, 220, 220, 25064, 13, 37023, 7, 16, 8, 198, 198, 88, 22651, 796, 366, 88, 22651, 1, 198, 43551, 796, 705, 541, 6, 198, 198, 2, 9122, 611, 262, 14719, 6089, 9483, 318, 1944, 198, 361, 407, 28686, 13, 6978, 13, 9409, 343, 10786, 48806, 14, 4090, 6089, 6, 2599, 198, 220, 220, 220, 3601, 10786, 46012, 1723, 331, 22651, 6831, 11537, 198, 220, 220, 220, 28686, 13, 10057, 10786, 28015, 15908, 532, 79, 6831, 11537, 198, 220, 220, 220, 28686, 13, 10057, 10786, 10210, 299, 1416, 69, 14, 9374, 13, 21928, 26, 279, 17, 88, 1875, 279, 17, 88, 13, 6404, 11537, 198, 220, 220, 220, 28686, 13, 10057, 10786, 10210, 299, 1416, 69, 14, 9374, 13, 21928, 26, 331, 22651, 1875, 331, 22651, 13, 6404, 11537, 198, 220, 220, 220, 28686, 13, 10057, 10786, 76, 85, 299, 1416, 69, 14, 9374, 13, 21928, 14, 4090, 6089, 6831, 11537, 198, 198, 361, 407, 28686, 13, 6978, 13, 9409, 343, 7, 43551, 2599, 198, 220, 220, 220, 28686, 13, 28015, 15908, 7, 43551, 8, 198, 220, 220, 220, 28686, 13, 10057, 10786, 13155, 532, 81, 6831, 14, 4090, 6089, 4064, 82, 6, 4, 43551, 8, 198, 198, 2, 36733, 1096, 262, 4274, 10706, 198, 361, 26498, 13, 23352, 25928, 25, 198, 220, 220, 220, 3601, 7203, 20123, 278, 4274, 10706, 4943, 198, 220, 220, 220, 277, 796, 1280, 10786, 4, 82, 14, 88, 381, 13, 259, 6, 4, 43551, 4032, 86, 11537, 198, 220, 220, 220, 277, 13, 13564, 7203, 15931, 74, 457, 82, 62, 8899, 198, 220, 220, 220, 4064, 43832, 38, 67, 62, 11012, 16, 62, 6978, 82, 198, 220, 220, 220, 366, 40720, 48806, 62, 23352, 1, 198, 220, 220, 220, 4064, 15931, 4943, 198, 220, 220, 220, 277, 13, 19836, 3419, 198, 220, 220, 220, 28686, 13, 10057, 10786, 10210, 4064, 82, 26, 331, 381, 6, 4, 43551, 8, 198, 198, 361, 26498, 13, 9948, 66, 25, 198, 220, 220, 220, 1303, 17953, 262, 331, 22651, 5128, 2393, 198, 220, 220, 220, 331, 796, 14063, 2127, 818, 10786, 88, 22651, 532, 78, 308, 532, 53, 477, 3256, 43551, 28, 43551, 8, 628, 220, 220, 220, 331, 17816, 5777, 35990, 303, 6359, 20520, 796, 685, 1270, 4032, 46987, 20520, 198, 220, 220, 220, 331, 17816, 33, 358, 82, 49, 77, 55, 82, 20520, 796, 685, 16, 11, 1270, 60, 198, 220, 220, 220, 331, 17816, 48, 79, 429, 82, 49, 55, 67, 20520, 796, 16410, 16, 11, 16, 60, 14004, 60, 198, 220, 220, 220, 331, 17816, 2767, 1273, 862, 55, 67, 20520, 796, 5323, 198, 220, 220, 220, 220, 198, 220, 220, 220, 331, 13, 13564, 10786, 4, 82, 14, 88, 22651, 62, 5143, 13, 259, 6, 4, 43551, 8, 628, 220, 220, 220, 3601, 10786, 20270, 331, 22651, 11537, 198, 220, 220, 220, 28686, 13, 10057, 10786, 10210, 4064, 82, 26, 4064, 82, 532, 37, 331, 22651, 62, 5143, 13, 259, 532, 41, 331, 22651, 6, 4, 7, 43551, 11, 88, 22651, 4008, 198, 198, 361, 26498, 13, 29487, 25, 198, 220, 220, 220, 1303, 8002, 287, 257, 33918, 2393, 198, 220, 220, 220, 331, 796, 14063, 2127, 7975, 7, 43551, 8, 198, 220, 220, 220, 331, 13, 8002, 3419, 198 ]
2.367989
731
# Generated by Django 3.1.12 on 2021-09-21 16:11 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 1065, 319, 33448, 12, 2931, 12, 2481, 1467, 25, 1157, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.875
32
from __future__ import absolute_import from __future__ import division from __future__ import print_function from .sample.ddd import DddDataset from .sample.exdet import EXDetDataset from .sample.ctdet import CTDetDataset from .sample.multi_pose import MultiPoseDataset from .dataset.coco import COCO from .dataset.pascal import PascalVOC from .dataset.kitti import KITTI from .dataset.coco_hp import COCOHP from .dataset.traffic_car_kitti import KITTI as TRATTIC_CAR from .dataset.multiview_kitti import KITTI as MULTIVIEW dataset_factory = { 'coco': COCO, 'pascal': PascalVOC, 'kitti': KITTI, 'coco_hp': COCOHP, 'traffic_car': TRATTIC_CAR, 'multiview': MULTIVIEW } _sample_factory = { 'exdet': EXDetDataset, 'ctdet': CTDetDataset, 'ddd': DddDataset, 'multi_pose': MultiPoseDataset }
[ 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, 198, 6738, 764, 39873, 13, 1860, 67, 1330, 360, 1860, 27354, 292, 316, 198, 6738, 764, 39873, 13, 1069, 15255, 1330, 7788, 11242, 27354, 292, 316, 198, 6738, 764, 39873, 13, 310, 15255, 1330, 16356, 11242, 27354, 292, 316, 198, 6738, 764, 39873, 13, 41684, 62, 3455, 1330, 15237, 47, 577, 27354, 292, 316, 198, 198, 6738, 764, 19608, 292, 316, 13, 66, 25634, 1330, 327, 4503, 46, 198, 6738, 764, 19608, 292, 316, 13, 79, 27747, 1330, 35163, 53, 4503, 198, 6738, 764, 19608, 292, 316, 13, 74, 715, 72, 1330, 509, 22470, 40, 198, 6738, 764, 19608, 292, 316, 13, 66, 25634, 62, 24831, 1330, 327, 4503, 12096, 47, 198, 6738, 764, 19608, 292, 316, 13, 9535, 2108, 62, 7718, 62, 74, 715, 72, 1330, 509, 22470, 40, 355, 7579, 17139, 2149, 62, 20034, 198, 6738, 764, 19608, 292, 316, 13, 16680, 452, 769, 62, 74, 715, 72, 1330, 509, 22470, 40, 355, 337, 16724, 3824, 40, 6217, 628, 198, 19608, 292, 316, 62, 69, 9548, 796, 1391, 198, 220, 705, 66, 25634, 10354, 327, 4503, 46, 11, 198, 220, 705, 79, 27747, 10354, 35163, 53, 4503, 11, 198, 220, 705, 74, 715, 72, 10354, 509, 22470, 40, 11, 198, 220, 705, 66, 25634, 62, 24831, 10354, 327, 4503, 12096, 47, 11, 198, 220, 705, 9535, 2108, 62, 7718, 10354, 7579, 17139, 2149, 62, 20034, 11, 198, 220, 705, 16680, 452, 769, 10354, 337, 16724, 3824, 40, 6217, 198, 92, 198, 198, 62, 39873, 62, 69, 9548, 796, 1391, 198, 220, 705, 1069, 15255, 10354, 7788, 11242, 27354, 292, 316, 11, 198, 220, 705, 310, 15255, 10354, 16356, 11242, 27354, 292, 316, 11, 198, 220, 705, 1860, 67, 10354, 360, 1860, 27354, 292, 316, 11, 198, 220, 705, 41684, 62, 3455, 10354, 15237, 47, 577, 27354, 292, 316, 198, 92, 628, 220, 220, 198 ]
2.459215
331
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-24 00:55 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 13, 18, 319, 1584, 12, 1157, 12, 1731, 3571, 25, 2816, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.736842
57
__all__ = ('MessageActivity', ) from .preinstanced import MessageActivityType class MessageActivity: """ Might be sent with a ``Message``, if it has rich presence-related chat embeds. Attributes ---------- party_id : `str` The message application's party's id. Can be empty string. type : ``MessageActivityType`` The message application's type. """ __slots__ = ('party_id', 'type',) def __init__(self, data): """ Creates a new ``MessageActivity`` from message activity data included inside of a ``Message``'s data. Parameters ---------- data : `dict` of (`str`, `Any`) items Message activity data. """ self.party_id = data.get('party_id','') self.type = MessageActivityType.get(data['type']) def __eq__(self, other): """Returns whether the two message activities are equal.""" if type(self) is not type(other): return NotImplemented if self.type is not other.type: return False if self.party_id != other.party_id: return False return True def __repr__(self): """Returns the message activity's representation.""" return f'<{self.__class__.__name__} type={self.type.name} ({self.type.value}), party_id={self.party_id!r}>'
[ 834, 439, 834, 796, 19203, 12837, 16516, 3256, 1267, 198, 198, 6738, 764, 3866, 8625, 2903, 1330, 16000, 16516, 6030, 198, 198, 4871, 16000, 16516, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 24213, 307, 1908, 351, 257, 7559, 12837, 15506, 11, 611, 340, 468, 5527, 4931, 12, 5363, 8537, 11525, 82, 13, 198, 220, 220, 220, 220, 198, 220, 220, 220, 49213, 198, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 2151, 62, 312, 1058, 4600, 2536, 63, 198, 220, 220, 220, 220, 220, 220, 220, 383, 3275, 3586, 338, 2151, 338, 4686, 13, 1680, 307, 6565, 4731, 13, 198, 220, 220, 220, 2099, 1058, 7559, 12837, 16516, 6030, 15506, 198, 220, 220, 220, 220, 220, 220, 220, 383, 3275, 3586, 338, 2099, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 11593, 6649, 1747, 834, 796, 19203, 10608, 62, 312, 3256, 705, 4906, 3256, 8, 198, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 1366, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 7921, 274, 257, 649, 7559, 12837, 16516, 15506, 422, 3275, 3842, 1366, 3017, 2641, 286, 257, 7559, 12837, 15506, 6, 82, 1366, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 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, 1366, 1058, 4600, 11600, 63, 286, 357, 63, 2536, 47671, 4600, 7149, 63, 8, 3709, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16000, 3842, 1366, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 10608, 62, 312, 796, 1366, 13, 1136, 10786, 10608, 62, 312, 3256, 7061, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 4906, 796, 16000, 16516, 6030, 13, 1136, 7, 7890, 17816, 4906, 6, 12962, 628, 220, 220, 220, 825, 11593, 27363, 834, 7, 944, 11, 584, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 35561, 1771, 262, 734, 3275, 4568, 389, 4961, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2099, 7, 944, 8, 318, 407, 2099, 7, 847, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 1892, 3546, 1154, 12061, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 4906, 318, 407, 584, 13, 4906, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 10352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 10608, 62, 312, 14512, 584, 13, 10608, 62, 312, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 10352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 6407, 198, 220, 220, 220, 220, 198, 220, 220, 220, 825, 11593, 260, 1050, 834, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 35561, 262, 3275, 3842, 338, 10552, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 277, 6, 27, 90, 944, 13, 834, 4871, 834, 13, 834, 3672, 834, 92, 2099, 34758, 944, 13, 4906, 13, 3672, 92, 37913, 944, 13, 4906, 13, 8367, 92, 828, 2151, 62, 312, 34758, 944, 13, 10608, 62, 312, 0, 81, 92, 29, 6, 198 ]
2.379898
587
import contextlib import warnings
[ 11748, 4732, 8019, 198, 11748, 14601, 628 ]
5
7
VERSION = '0.2.26'
[ 43717, 796, 705, 15, 13, 17, 13, 2075, 6, 198 ]
1.9
10
from flask_wtf import FlaskForm from wtforms import StringField,PasswordField,SubmitField,BooleanField,SubmitField,TextAreaField,RadioField from wtforms.validators import Required,Email,EqualTo from wtforms import ValidationError
[ 198, 6738, 42903, 62, 86, 27110, 1330, 46947, 8479, 198, 6738, 266, 83, 23914, 1330, 10903, 15878, 11, 35215, 15878, 11, 45135, 15878, 11, 46120, 13087, 15878, 11, 45135, 15878, 11, 8206, 30547, 15878, 11, 26093, 15878, 198, 6738, 266, 83, 23914, 13, 12102, 2024, 1330, 20906, 11, 15333, 11, 36, 13255, 2514, 198, 6738, 266, 83, 23914, 1330, 3254, 24765, 12331, 628, 198 ]
3.640625
64
from setuptools import setup, find_packages with open('requirements.txt') as f: requirements = f.readlines() setup( name ='TChatBot', version ='0.1.0', author ='Deepraj Baidya', author_email ='[email protected]', url ='https://github.com/deepraj1729/TChatBot', description ='A ChatBot framework to create customizable all purpose Chatbots using NLP, Tensorflow, Speech Recognition', long_description = readme(), long_description_content_type ="text/markdown", license ='MIT', packages = find_packages(), entry_points ={ 'console_scripts': [ 'tchatbot = TChatBot.main:main' ] }, classifiers =( "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ), keywords ='A Customizable ChatBot framework with Tensorflow,NLP,Speech Recognition', include_package_data = True, install_requires = requirements, zip_safe = False )
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 220, 198, 198, 4480, 1280, 10786, 8897, 18883, 13, 14116, 11537, 355, 277, 25, 220, 198, 197, 8897, 18883, 796, 277, 13, 961, 6615, 3419, 220, 198, 198, 40406, 7, 220, 198, 197, 197, 3672, 796, 6, 51, 30820, 20630, 3256, 220, 198, 197, 197, 9641, 796, 6, 15, 13, 16, 13, 15, 3256, 220, 198, 197, 197, 9800, 796, 6, 29744, 430, 73, 347, 1698, 3972, 3256, 220, 198, 197, 197, 9800, 62, 12888, 796, 6, 65, 22089, 430, 73, 81, 13276, 16, 31, 14816, 13, 785, 3256, 220, 198, 197, 197, 6371, 796, 6, 5450, 1378, 12567, 13, 785, 14, 22089, 430, 73, 1558, 1959, 14, 51, 30820, 20630, 3256, 220, 198, 197, 197, 11213, 796, 6, 32, 24101, 20630, 9355, 284, 2251, 38322, 477, 4007, 24101, 42478, 1262, 399, 19930, 11, 309, 22854, 11125, 11, 24709, 31517, 653, 3256, 220, 198, 197, 197, 6511, 62, 11213, 796, 1100, 1326, 22784, 220, 198, 197, 197, 6511, 62, 11213, 62, 11299, 62, 4906, 796, 1, 5239, 14, 4102, 2902, 1600, 220, 198, 197, 197, 43085, 796, 6, 36393, 3256, 220, 198, 197, 197, 43789, 796, 1064, 62, 43789, 22784, 220, 198, 197, 197, 13000, 62, 13033, 796, 90, 220, 198, 197, 197, 197, 6, 41947, 62, 46521, 10354, 685, 220, 198, 197, 197, 197, 197, 470, 17006, 13645, 796, 309, 30820, 20630, 13, 12417, 25, 12417, 6, 198, 197, 197, 197, 60, 220, 198, 197, 197, 5512, 220, 198, 197, 197, 4871, 13350, 796, 7, 220, 198, 197, 197, 197, 1, 15167, 2229, 15417, 7904, 11361, 7904, 513, 1600, 220, 198, 197, 197, 197, 1, 34156, 7904, 7294, 40, 20010, 1079, 7904, 17168, 13789, 1600, 220, 198, 197, 197, 197, 1, 18843, 803, 4482, 7904, 7294, 13362, 1600, 220, 198, 197, 197, 828, 220, 198, 197, 197, 2539, 10879, 796, 6, 32, 8562, 13821, 24101, 20630, 9355, 351, 309, 22854, 11125, 11, 45, 19930, 11, 5248, 3055, 31517, 653, 3256, 198, 197, 197, 17256, 62, 26495, 62, 7890, 796, 6407, 11, 220, 198, 197, 197, 17350, 62, 47911, 796, 5359, 11, 220, 198, 197, 197, 13344, 62, 21230, 796, 10352, 198, 8, 220, 198 ]
2.657534
365
# ----------------------------------------------------------------------------- # Program Name: calvo_trainer.py # Program Description: Rodan wrapper for Fast Calvo's classifier training # ----------------------------------------------------------------------------- # Core import logging import sys # Third-party from celery.utils.log import get_task_logger # Project from rodan.celery import app from rodan.jobs.base import RodanTask from rodan.jobs.Calvo_classifier.fast_trainer_lib import CalvoTrainer """Wrap Patchwise (Fast) Calvo classifier training in Rodan.""" logger = get_task_logger(__name__)
[ 2, 16529, 32501, 198, 2, 6118, 6530, 25, 220, 220, 220, 220, 220, 220, 220, 220, 2386, 13038, 62, 2213, 10613, 13, 9078, 198, 2, 6118, 12489, 25, 220, 6882, 272, 29908, 329, 12549, 2199, 13038, 338, 1398, 7483, 3047, 198, 2, 16529, 32501, 198, 198, 2, 7231, 198, 11748, 18931, 198, 11748, 25064, 198, 198, 2, 10467, 12, 10608, 198, 6738, 18725, 1924, 13, 26791, 13, 6404, 1330, 651, 62, 35943, 62, 6404, 1362, 198, 198, 2, 4935, 198, 6738, 15299, 272, 13, 7015, 88, 1330, 598, 198, 6738, 15299, 272, 13, 43863, 13, 8692, 1330, 6882, 272, 25714, 198, 6738, 15299, 272, 13, 43863, 13, 9771, 13038, 62, 4871, 7483, 13, 7217, 62, 2213, 10613, 62, 8019, 1330, 2199, 13038, 2898, 10613, 198, 198, 37811, 54, 2416, 17106, 3083, 357, 22968, 8, 2199, 13038, 1398, 7483, 3047, 287, 6882, 272, 526, 15931, 198, 198, 6404, 1362, 796, 651, 62, 35943, 62, 6404, 1362, 7, 834, 3672, 834, 8, 628 ]
3.850932
161
from pynflate.lz77 import Lz77
[ 6738, 279, 2047, 2704, 378, 13, 75, 89, 3324, 1330, 406, 89, 3324, 628 ]
2.285714
14
from django import forms from .models import Inscricao, Hospedagem
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 764, 27530, 1330, 554, 1416, 1173, 5488, 11, 39946, 276, 363, 368, 628, 198 ]
3.181818
22
# coding=utf-8 from flask import Response from app import app @app.route("/assert-xpath") @app.route("/assert-xpath-svg") @app.route("/assert-xpath-simple-namespaces") @app.route("/assert-xpath-namespaces")
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 42903, 1330, 18261, 198, 6738, 598, 1330, 598, 628, 198, 31, 1324, 13, 38629, 7203, 14, 30493, 12, 87, 6978, 4943, 628, 198, 31, 1324, 13, 38629, 7203, 14, 30493, 12, 87, 6978, 12, 21370, 70, 4943, 628, 198, 31, 1324, 13, 38629, 7203, 14, 30493, 12, 87, 6978, 12, 36439, 12, 14933, 43076, 4943, 628, 198, 31, 1324, 13, 38629, 7203, 14, 30493, 12, 87, 6978, 12, 14933, 43076, 4943, 198 ]
2.6875
80
# The `pyspark` shell command can be used to run an interactive shell for debugging purposes (preferably only on smaller datasets) import sys from pyspark import SparkContext, SparkConf conf = SparkConf().setAppName("Ex1") sc = SparkContext(conf=conf) text_file = sc.textFile("hdfs://localhost:9000/input/") output = text_file.map(foreach) output.saveAsTextFile("hdfs://localhost:9000/output/") sc.stop()
[ 2, 383, 4600, 79, 893, 20928, 63, 7582, 3141, 460, 307, 973, 284, 1057, 281, 14333, 7582, 329, 28769, 4959, 357, 3866, 2232, 1346, 691, 319, 4833, 40522, 8, 198, 11748, 25064, 198, 6738, 279, 893, 20928, 1330, 17732, 21947, 11, 17732, 18546, 198, 198, 10414, 796, 17732, 18546, 22446, 2617, 4677, 5376, 7203, 3109, 16, 4943, 198, 1416, 796, 17732, 21947, 7, 10414, 28, 10414, 8, 628, 198, 198, 5239, 62, 7753, 796, 629, 13, 5239, 8979, 7203, 71, 7568, 82, 1378, 36750, 25, 24, 830, 14, 15414, 14, 4943, 198, 22915, 796, 2420, 62, 7753, 13, 8899, 7, 754, 620, 8, 198, 22915, 13, 21928, 1722, 8206, 8979, 7203, 71, 7568, 82, 1378, 36750, 25, 24, 830, 14, 22915, 14, 4943, 198, 1416, 13, 11338, 3419, 198 ]
3.170543
129
# coding: utf-8 """ Yapily API To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501 OpenAPI spec version: 0.0.155 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from yapily.models.amount import Amount # noqa: F401,E501 from yapily.models.charge_details import ChargeDetails # noqa: F401,E501 from yapily.models.frequency_response import FrequencyResponse # noqa: F401,E501 from yapily.models.payee import Payee # noqa: F401,E501 from yapily.models.payment_status_details import PaymentStatusDetails # noqa: F401,E501 class PaymentResponse(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'id': 'str', 'payment_idempotency_id': 'str', 'institution_consent_id': 'str', 'payment_lifecycle_id': 'str', 'status': 'str', 'status_details': 'PaymentStatusDetails', 'payee_details': 'Payee', 'reference': 'str', 'amount': 'float', 'currency': 'str', 'amount_details': 'Amount', 'first_payment_amount': 'Amount', 'first_payment_date_time': 'datetime', 'next_payment_amount': 'Amount', 'next_payment_date_time': 'datetime', 'final_payment_amount': 'Amount', 'final_payment_date_time': 'datetime', 'created_at': 'datetime', 'previous_payment_amount': 'Amount', 'previous_payment_date_time': 'datetime', 'charge_details': 'list[ChargeDetails]', 'scheduled_payment_type': 'str', 'scheduled_payment_date_time': 'datetime', 'frequency': 'FrequencyResponse' } attribute_map = { 'id': 'id', 'payment_idempotency_id': 'paymentIdempotencyId', 'institution_consent_id': 'institutionConsentId', 'payment_lifecycle_id': 'paymentLifecycleId', 'status': 'status', 'status_details': 'statusDetails', 'payee_details': 'payeeDetails', 'reference': 'reference', 'amount': 'amount', 'currency': 'currency', 'amount_details': 'amountDetails', 'first_payment_amount': 'firstPaymentAmount', 'first_payment_date_time': 'firstPaymentDateTime', 'next_payment_amount': 'nextPaymentAmount', 'next_payment_date_time': 'nextPaymentDateTime', 'final_payment_amount': 'finalPaymentAmount', 'final_payment_date_time': 'finalPaymentDateTime', 'created_at': 'createdAt', 'previous_payment_amount': 'previousPaymentAmount', 'previous_payment_date_time': 'previousPaymentDateTime', 'charge_details': 'chargeDetails', 'scheduled_payment_type': 'scheduledPaymentType', 'scheduled_payment_date_time': 'scheduledPaymentDateTime', 'frequency': 'frequency' } def __init__(self, id=None, payment_idempotency_id=None, institution_consent_id=None, payment_lifecycle_id=None, status=None, status_details=None, payee_details=None, reference=None, amount=None, currency=None, amount_details=None, first_payment_amount=None, first_payment_date_time=None, next_payment_amount=None, next_payment_date_time=None, final_payment_amount=None, final_payment_date_time=None, created_at=None, previous_payment_amount=None, previous_payment_date_time=None, charge_details=None, scheduled_payment_type=None, scheduled_payment_date_time=None, frequency=None): # noqa: E501 """PaymentResponse - a model defined in Swagger""" # noqa: E501 self._id = None self._payment_idempotency_id = None self._institution_consent_id = None self._payment_lifecycle_id = None self._status = None self._status_details = None self._payee_details = None self._reference = None self._amount = None self._currency = None self._amount_details = None self._first_payment_amount = None self._first_payment_date_time = None self._next_payment_amount = None self._next_payment_date_time = None self._final_payment_amount = None self._final_payment_date_time = None self._created_at = None self._previous_payment_amount = None self._previous_payment_date_time = None self._charge_details = None self._scheduled_payment_type = None self._scheduled_payment_date_time = None self._frequency = None self.discriminator = None if id is not None: self.id = id if payment_idempotency_id is not None: self.payment_idempotency_id = payment_idempotency_id if institution_consent_id is not None: self.institution_consent_id = institution_consent_id if payment_lifecycle_id is not None: self.payment_lifecycle_id = payment_lifecycle_id if status is not None: self.status = status if status_details is not None: self.status_details = status_details if payee_details is not None: self.payee_details = payee_details if reference is not None: self.reference = reference if amount is not None: self.amount = amount if currency is not None: self.currency = currency if amount_details is not None: self.amount_details = amount_details if first_payment_amount is not None: self.first_payment_amount = first_payment_amount if first_payment_date_time is not None: self.first_payment_date_time = first_payment_date_time if next_payment_amount is not None: self.next_payment_amount = next_payment_amount if next_payment_date_time is not None: self.next_payment_date_time = next_payment_date_time if final_payment_amount is not None: self.final_payment_amount = final_payment_amount if final_payment_date_time is not None: self.final_payment_date_time = final_payment_date_time if created_at is not None: self.created_at = created_at if previous_payment_amount is not None: self.previous_payment_amount = previous_payment_amount if previous_payment_date_time is not None: self.previous_payment_date_time = previous_payment_date_time if charge_details is not None: self.charge_details = charge_details if scheduled_payment_type is not None: self.scheduled_payment_type = scheduled_payment_type if scheduled_payment_date_time is not None: self.scheduled_payment_date_time = scheduled_payment_date_time if frequency is not None: self.frequency = frequency @property def id(self): """Gets the id of this PaymentResponse. # noqa: E501 :return: The id of this PaymentResponse. # noqa: E501 :rtype: str """ return self._id @id.setter def id(self, id): """Sets the id of this PaymentResponse. :param id: The id of this PaymentResponse. # noqa: E501 :type: str """ self._id = id @property def payment_idempotency_id(self): """Gets the payment_idempotency_id of this PaymentResponse. # noqa: E501 :return: The payment_idempotency_id of this PaymentResponse. # noqa: E501 :rtype: str """ return self._payment_idempotency_id @payment_idempotency_id.setter def payment_idempotency_id(self, payment_idempotency_id): """Sets the payment_idempotency_id of this PaymentResponse. :param payment_idempotency_id: The payment_idempotency_id of this PaymentResponse. # noqa: E501 :type: str """ self._payment_idempotency_id = payment_idempotency_id @property def institution_consent_id(self): """Gets the institution_consent_id of this PaymentResponse. # noqa: E501 :return: The institution_consent_id of this PaymentResponse. # noqa: E501 :rtype: str """ return self._institution_consent_id @institution_consent_id.setter def institution_consent_id(self, institution_consent_id): """Sets the institution_consent_id of this PaymentResponse. :param institution_consent_id: The institution_consent_id of this PaymentResponse. # noqa: E501 :type: str """ self._institution_consent_id = institution_consent_id @property def payment_lifecycle_id(self): """Gets the payment_lifecycle_id of this PaymentResponse. # noqa: E501 :return: The payment_lifecycle_id of this PaymentResponse. # noqa: E501 :rtype: str """ return self._payment_lifecycle_id @payment_lifecycle_id.setter def payment_lifecycle_id(self, payment_lifecycle_id): """Sets the payment_lifecycle_id of this PaymentResponse. :param payment_lifecycle_id: The payment_lifecycle_id of this PaymentResponse. # noqa: E501 :type: str """ self._payment_lifecycle_id = payment_lifecycle_id @property def status(self): """Gets the status of this PaymentResponse. # noqa: E501 :return: The status of this PaymentResponse. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): """Sets the status of this PaymentResponse. :param status: The status of this PaymentResponse. # noqa: E501 :type: str """ allowed_values = ["PENDING", "FAILED", "DECLINED", "COMPLETED", "EXPIRED", "UNKNOWN", "ACTIVE", "INACTIVE"] # noqa: E501 if status not in allowed_values: raise ValueError( "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 .format(status, allowed_values) ) self._status = status @property def status_details(self): """Gets the status_details of this PaymentResponse. # noqa: E501 :return: The status_details of this PaymentResponse. # noqa: E501 :rtype: PaymentStatusDetails """ return self._status_details @status_details.setter def status_details(self, status_details): """Sets the status_details of this PaymentResponse. :param status_details: The status_details of this PaymentResponse. # noqa: E501 :type: PaymentStatusDetails """ self._status_details = status_details @property def payee_details(self): """Gets the payee_details of this PaymentResponse. # noqa: E501 :return: The payee_details of this PaymentResponse. # noqa: E501 :rtype: Payee """ return self._payee_details @payee_details.setter def payee_details(self, payee_details): """Sets the payee_details of this PaymentResponse. :param payee_details: The payee_details of this PaymentResponse. # noqa: E501 :type: Payee """ self._payee_details = payee_details @property def reference(self): """Gets the reference of this PaymentResponse. # noqa: E501 :return: The reference of this PaymentResponse. # noqa: E501 :rtype: str """ return self._reference @reference.setter def reference(self, reference): """Sets the reference of this PaymentResponse. :param reference: The reference of this PaymentResponse. # noqa: E501 :type: str """ self._reference = reference @property def amount(self): """Gets the amount of this PaymentResponse. # noqa: E501 :return: The amount of this PaymentResponse. # noqa: E501 :rtype: float """ return self._amount @amount.setter def amount(self, amount): """Sets the amount of this PaymentResponse. :param amount: The amount of this PaymentResponse. # noqa: E501 :type: float """ self._amount = amount @property def currency(self): """Gets the currency of this PaymentResponse. # noqa: E501 :return: The currency of this PaymentResponse. # noqa: E501 :rtype: str """ return self._currency @currency.setter def currency(self, currency): """Sets the currency of this PaymentResponse. :param currency: The currency of this PaymentResponse. # noqa: E501 :type: str """ self._currency = currency @property def amount_details(self): """Gets the amount_details of this PaymentResponse. # noqa: E501 :return: The amount_details of this PaymentResponse. # noqa: E501 :rtype: Amount """ return self._amount_details @amount_details.setter def amount_details(self, amount_details): """Sets the amount_details of this PaymentResponse. :param amount_details: The amount_details of this PaymentResponse. # noqa: E501 :type: Amount """ self._amount_details = amount_details @property def first_payment_amount(self): """Gets the first_payment_amount of this PaymentResponse. # noqa: E501 :return: The first_payment_amount of this PaymentResponse. # noqa: E501 :rtype: Amount """ return self._first_payment_amount @first_payment_amount.setter def first_payment_amount(self, first_payment_amount): """Sets the first_payment_amount of this PaymentResponse. :param first_payment_amount: The first_payment_amount of this PaymentResponse. # noqa: E501 :type: Amount """ self._first_payment_amount = first_payment_amount @property def first_payment_date_time(self): """Gets the first_payment_date_time of this PaymentResponse. # noqa: E501 :return: The first_payment_date_time of this PaymentResponse. # noqa: E501 :rtype: datetime """ return self._first_payment_date_time @first_payment_date_time.setter def first_payment_date_time(self, first_payment_date_time): """Sets the first_payment_date_time of this PaymentResponse. :param first_payment_date_time: The first_payment_date_time of this PaymentResponse. # noqa: E501 :type: datetime """ self._first_payment_date_time = first_payment_date_time @property def next_payment_amount(self): """Gets the next_payment_amount of this PaymentResponse. # noqa: E501 :return: The next_payment_amount of this PaymentResponse. # noqa: E501 :rtype: Amount """ return self._next_payment_amount @next_payment_amount.setter def next_payment_amount(self, next_payment_amount): """Sets the next_payment_amount of this PaymentResponse. :param next_payment_amount: The next_payment_amount of this PaymentResponse. # noqa: E501 :type: Amount """ self._next_payment_amount = next_payment_amount @property def next_payment_date_time(self): """Gets the next_payment_date_time of this PaymentResponse. # noqa: E501 :return: The next_payment_date_time of this PaymentResponse. # noqa: E501 :rtype: datetime """ return self._next_payment_date_time @next_payment_date_time.setter def next_payment_date_time(self, next_payment_date_time): """Sets the next_payment_date_time of this PaymentResponse. :param next_payment_date_time: The next_payment_date_time of this PaymentResponse. # noqa: E501 :type: datetime """ self._next_payment_date_time = next_payment_date_time @property def final_payment_amount(self): """Gets the final_payment_amount of this PaymentResponse. # noqa: E501 :return: The final_payment_amount of this PaymentResponse. # noqa: E501 :rtype: Amount """ return self._final_payment_amount @final_payment_amount.setter def final_payment_amount(self, final_payment_amount): """Sets the final_payment_amount of this PaymentResponse. :param final_payment_amount: The final_payment_amount of this PaymentResponse. # noqa: E501 :type: Amount """ self._final_payment_amount = final_payment_amount @property def final_payment_date_time(self): """Gets the final_payment_date_time of this PaymentResponse. # noqa: E501 :return: The final_payment_date_time of this PaymentResponse. # noqa: E501 :rtype: datetime """ return self._final_payment_date_time @final_payment_date_time.setter def final_payment_date_time(self, final_payment_date_time): """Sets the final_payment_date_time of this PaymentResponse. :param final_payment_date_time: The final_payment_date_time of this PaymentResponse. # noqa: E501 :type: datetime """ self._final_payment_date_time = final_payment_date_time @property def created_at(self): """Gets the created_at of this PaymentResponse. # noqa: E501 :return: The created_at of this PaymentResponse. # noqa: E501 :rtype: datetime """ return self._created_at @created_at.setter def created_at(self, created_at): """Sets the created_at of this PaymentResponse. :param created_at: The created_at of this PaymentResponse. # noqa: E501 :type: datetime """ self._created_at = created_at @property def previous_payment_amount(self): """Gets the previous_payment_amount of this PaymentResponse. # noqa: E501 :return: The previous_payment_amount of this PaymentResponse. # noqa: E501 :rtype: Amount """ return self._previous_payment_amount @previous_payment_amount.setter def previous_payment_amount(self, previous_payment_amount): """Sets the previous_payment_amount of this PaymentResponse. :param previous_payment_amount: The previous_payment_amount of this PaymentResponse. # noqa: E501 :type: Amount """ self._previous_payment_amount = previous_payment_amount @property def previous_payment_date_time(self): """Gets the previous_payment_date_time of this PaymentResponse. # noqa: E501 :return: The previous_payment_date_time of this PaymentResponse. # noqa: E501 :rtype: datetime """ return self._previous_payment_date_time @previous_payment_date_time.setter def previous_payment_date_time(self, previous_payment_date_time): """Sets the previous_payment_date_time of this PaymentResponse. :param previous_payment_date_time: The previous_payment_date_time of this PaymentResponse. # noqa: E501 :type: datetime """ self._previous_payment_date_time = previous_payment_date_time @property def charge_details(self): """Gets the charge_details of this PaymentResponse. # noqa: E501 :return: The charge_details of this PaymentResponse. # noqa: E501 :rtype: list[ChargeDetails] """ return self._charge_details @charge_details.setter def charge_details(self, charge_details): """Sets the charge_details of this PaymentResponse. :param charge_details: The charge_details of this PaymentResponse. # noqa: E501 :type: list[ChargeDetails] """ self._charge_details = charge_details @property def scheduled_payment_type(self): """Gets the scheduled_payment_type of this PaymentResponse. # noqa: E501 :return: The scheduled_payment_type of this PaymentResponse. # noqa: E501 :rtype: str """ return self._scheduled_payment_type @scheduled_payment_type.setter def scheduled_payment_type(self, scheduled_payment_type): """Sets the scheduled_payment_type of this PaymentResponse. :param scheduled_payment_type: The scheduled_payment_type of this PaymentResponse. # noqa: E501 :type: str """ self._scheduled_payment_type = scheduled_payment_type @property def scheduled_payment_date_time(self): """Gets the scheduled_payment_date_time of this PaymentResponse. # noqa: E501 :return: The scheduled_payment_date_time of this PaymentResponse. # noqa: E501 :rtype: datetime """ return self._scheduled_payment_date_time @scheduled_payment_date_time.setter def scheduled_payment_date_time(self, scheduled_payment_date_time): """Sets the scheduled_payment_date_time of this PaymentResponse. :param scheduled_payment_date_time: The scheduled_payment_date_time of this PaymentResponse. # noqa: E501 :type: datetime """ self._scheduled_payment_date_time = scheduled_payment_date_time @property def frequency(self): """Gets the frequency of this PaymentResponse. # noqa: E501 :return: The frequency of this PaymentResponse. # noqa: E501 :rtype: FrequencyResponse """ return self._frequency @frequency.setter def frequency(self, frequency): """Sets the frequency of this PaymentResponse. :param frequency: The frequency of this PaymentResponse. # noqa: E501 :type: FrequencyResponse """ self._frequency = frequency def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value return result def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, PaymentResponse): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 575, 499, 813, 7824, 628, 220, 220, 220, 1675, 1895, 886, 13033, 326, 2421, 18239, 11, 779, 534, 3586, 1994, 290, 3200, 2727, 287, 262, 16189, 3526, 357, 5450, 1378, 42460, 3526, 13, 88, 499, 813, 13, 785, 8, 220, 1303, 645, 20402, 25, 412, 33548, 628, 220, 220, 220, 4946, 17614, 1020, 2196, 25, 657, 13, 15, 13, 18742, 198, 220, 220, 220, 220, 198, 220, 220, 220, 2980, 515, 416, 25, 3740, 1378, 12567, 13, 785, 14, 2032, 7928, 12, 15042, 14, 2032, 7928, 12, 8189, 5235, 13, 18300, 198, 37811, 628, 198, 11748, 279, 4798, 198, 11748, 302, 220, 1303, 645, 20402, 25, 376, 21844, 198, 198, 11748, 2237, 198, 198, 6738, 331, 499, 813, 13, 27530, 13, 17287, 1330, 26308, 220, 1303, 645, 20402, 25, 376, 21844, 11, 36, 33548, 198, 6738, 331, 499, 813, 13, 27530, 13, 10136, 62, 36604, 1330, 20260, 24259, 220, 1303, 645, 20402, 25, 376, 21844, 11, 36, 33548, 198, 6738, 331, 499, 813, 13, 27530, 13, 35324, 62, 26209, 1330, 31902, 31077, 220, 1303, 645, 20402, 25, 376, 21844, 11, 36, 33548, 198, 6738, 331, 499, 813, 13, 27530, 13, 15577, 1453, 1330, 7119, 1453, 220, 1303, 645, 20402, 25, 376, 21844, 11, 36, 33548, 198, 6738, 331, 499, 813, 13, 27530, 13, 37301, 62, 13376, 62, 36604, 1330, 28784, 19580, 24259, 220, 1303, 645, 20402, 25, 376, 21844, 11, 36, 33548, 628, 198, 4871, 28784, 31077, 7, 15252, 2599, 198, 220, 220, 220, 37227, 16580, 25, 770, 1398, 318, 8295, 7560, 416, 262, 1509, 7928, 2438, 17301, 1430, 13, 628, 220, 220, 220, 2141, 407, 4370, 262, 1398, 14500, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 37227, 198, 220, 220, 220, 49213, 25, 198, 220, 220, 220, 220, 220, 1509, 7928, 62, 19199, 357, 11600, 2599, 383, 1994, 318, 11688, 1438, 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, 290, 262, 1988, 318, 11688, 2099, 13, 198, 220, 220, 220, 220, 220, 11688, 62, 8899, 357, 11600, 2599, 383, 1994, 318, 11688, 1438, 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, 290, 262, 1988, 318, 33918, 1994, 287, 6770, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1509, 7928, 62, 19199, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 312, 10354, 705, 2536, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 37301, 62, 28913, 13059, 1387, 62, 312, 10354, 705, 2536, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 8625, 2738, 62, 5936, 298, 62, 312, 10354, 705, 2536, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 37301, 62, 36195, 47510, 62, 312, 10354, 705, 2536, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 13376, 10354, 705, 2536, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 13376, 62, 36604, 10354, 705, 19197, 434, 19580, 24259, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 15577, 1453, 62, 36604, 10354, 705, 19197, 1453, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 35790, 10354, 705, 2536, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 17287, 10354, 705, 22468, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 34415, 10354, 705, 2536, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 17287, 62, 36604, 10354, 705, 31264, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 11085, 62, 37301, 62, 17287, 10354, 705, 31264, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 11085, 62, 37301, 62, 4475, 62, 2435, 10354, 705, 19608, 8079, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 19545, 62, 37301, 62, 17287, 10354, 705, 31264, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 19545, 62, 37301, 62, 4475, 62, 2435, 10354, 705, 19608, 8079, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 20311, 62, 37301, 62, 17287, 10354, 705, 31264, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 20311, 62, 37301, 62, 4475, 62, 2435, 10354, 705, 19608, 8079, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 25598, 62, 265, 10354, 705, 19608, 8079, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 3866, 1442, 62, 37301, 62, 17287, 10354, 705, 31264, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 3866, 1442, 62, 37301, 62, 4475, 62, 2435, 10354, 705, 19608, 8079, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 10136, 62, 36604, 10354, 705, 4868, 58, 50044, 24259, 60, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 1416, 704, 6309, 62, 37301, 62, 4906, 10354, 705, 2536, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 1416, 704, 6309, 62, 37301, 62, 4475, 62, 2435, 10354, 705, 19608, 8079, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 35324, 10354, 705, 37, 28707, 31077, 6, 198, 220, 220, 220, 1782, 628, 220, 220, 220, 11688, 62, 8899, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 312, 10354, 705, 312, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 37301, 62, 28913, 13059, 1387, 62, 312, 10354, 705, 37301, 7390, 368, 13059, 1387, 7390, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 8625, 2738, 62, 5936, 298, 62, 312, 10354, 705, 8625, 2738, 9444, 298, 7390, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 37301, 62, 36195, 47510, 62, 312, 10354, 705, 37301, 43, 361, 47510, 7390, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 13376, 10354, 705, 13376, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 13376, 62, 36604, 10354, 705, 13376, 24259, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 15577, 1453, 62, 36604, 10354, 705, 15577, 1453, 24259, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 35790, 10354, 705, 35790, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 17287, 10354, 705, 17287, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 34415, 10354, 705, 34415, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 17287, 62, 36604, 10354, 705, 17287, 24259, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 11085, 62, 37301, 62, 17287, 10354, 705, 11085, 19197, 434, 31264, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 11085, 62, 37301, 62, 4475, 62, 2435, 10354, 705, 11085, 19197, 434, 10430, 7575, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 19545, 62, 37301, 62, 17287, 10354, 705, 19545, 19197, 434, 31264, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 19545, 62, 37301, 62, 4475, 62, 2435, 10354, 705, 19545, 19197, 434, 10430, 7575, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 20311, 62, 37301, 62, 17287, 10354, 705, 20311, 19197, 434, 31264, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 20311, 62, 37301, 62, 4475, 62, 2435, 10354, 705, 20311, 19197, 434, 10430, 7575, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 25598, 62, 265, 10354, 705, 25598, 2953, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 3866, 1442, 62, 37301, 62, 17287, 10354, 705, 3866, 1442, 19197, 434, 31264, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 3866, 1442, 62, 37301, 62, 4475, 62, 2435, 10354, 705, 3866, 1442, 19197, 434, 10430, 7575, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 10136, 62, 36604, 10354, 705, 10136, 24259, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 1416, 704, 6309, 62, 37301, 62, 4906, 10354, 705, 1416, 704, 6309, 19197, 434, 6030, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 1416, 704, 6309, 62, 37301, 62, 4475, 62, 2435, 10354, 705, 1416, 704, 6309, 19197, 434, 10430, 7575, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 35324, 10354, 705, 35324, 6, 198, 220, 220, 220, 1782, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 4686, 28, 14202, 11, 6074, 62, 28913, 13059, 1387, 62, 312, 28, 14202, 11, 9901, 62, 5936, 298, 62, 312, 28, 14202, 11, 6074, 62, 36195, 47510, 62, 312, 28, 14202, 11, 3722, 28, 14202, 11, 3722, 62, 36604, 28, 14202, 11, 1414, 1453, 62, 36604, 28, 14202, 11, 4941, 28, 14202, 11, 2033, 28, 14202, 11, 7395, 28, 14202, 11, 2033, 62, 36604, 28, 14202, 11, 717, 62, 37301, 62, 17287, 28, 14202, 11, 717, 62, 37301, 62, 4475, 62, 2435, 28, 14202, 11, 1306, 62, 37301, 62, 17287, 28, 14202, 11, 1306, 62, 37301, 62, 4475, 62, 2435, 28, 14202, 11, 2457, 62, 37301, 62, 17287, 28, 14202, 11, 2457, 62, 37301, 62, 4475, 62, 2435, 28, 14202, 11, 2727, 62, 265, 28, 14202, 11, 2180, 62, 37301, 62, 17287, 28, 14202, 11, 2180, 62, 37301, 62, 4475, 62, 2435, 28, 14202, 11, 3877, 62, 36604, 28, 14202, 11, 7530, 62, 37301, 62, 4906, 28, 14202, 11, 7530, 62, 37301, 62, 4475, 62, 2435, 28, 14202, 11, 8373, 28, 14202, 2599, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 19197, 434, 31077, 532, 257, 2746, 5447, 287, 2451, 7928, 37811, 220, 1303, 645, 20402, 25, 412, 33548, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 312, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 37301, 62, 28913, 13059, 1387, 62, 312, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 8625, 2738, 62, 5936, 298, 62, 312, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 37301, 62, 36195, 47510, 62, 312, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 13376, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 13376, 62, 36604, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 15577, 1453, 62, 36604, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 35790, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 17287, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 34415, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 17287, 62, 36604, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 11085, 62, 37301, 62, 17287, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 11085, 62, 37301, 62, 4475, 62, 2435, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 19545, 62, 37301, 62, 17287, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 19545, 62, 37301, 62, 4475, 62, 2435, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 20311, 62, 37301, 62, 17287, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 20311, 62, 37301, 62, 4475, 62, 2435, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 25598, 62, 265, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 3866, 1442, 62, 37301, 62, 17287, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 3866, 1442, 62, 37301, 62, 4475, 62, 2435, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 10136, 62, 36604, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 1416, 704, 6309, 62, 37301, 62, 4906, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 1416, 704, 6309, 62, 37301, 62, 4475, 62, 2435, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 35324, 796, 6045, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 15410, 3036, 20900, 796, 6045, 628, 220, 220, 220, 220, 220, 220, 220, 611, 4686, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 312, 796, 4686, 198, 220, 220, 220, 220, 220, 220, 220, 611, 6074, 62, 28913, 13059, 1387, 62, 312, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 37301, 62, 28913, 13059, 1387, 62, 312, 796, 6074, 62, 28913, 13059, 1387, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 611, 9901, 62, 5936, 298, 62, 312, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 8625, 2738, 62, 5936, 298, 62, 312, 796, 9901, 62, 5936, 298, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 611, 6074, 62, 36195, 47510, 62, 312, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 37301, 62, 36195, 47510, 62, 312, 796, 6074, 62, 36195, 47510, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 611, 3722, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 13376, 796, 3722, 198, 220, 220, 220, 220, 220, 220, 220, 611, 3722, 62, 36604, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 13376, 62, 36604, 796, 3722, 62, 36604, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1414, 1453, 62, 36604, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 15577, 1453, 62, 36604, 796, 1414, 1453, 62, 36604, 198, 220, 220, 220, 220, 220, 220, 220, 611, 4941, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 35790, 796, 4941, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2033, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 17287, 796, 2033, 198, 220, 220, 220, 220, 220, 220, 220, 611, 7395, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 34415, 796, 7395, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2033, 62, 36604, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 17287, 62, 36604, 796, 2033, 62, 36604, 198, 220, 220, 220, 220, 220, 220, 220, 611, 717, 62, 37301, 62, 17287, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 11085, 62, 37301, 62, 17287, 796, 717, 62, 37301, 62, 17287, 198, 220, 220, 220, 220, 220, 220, 220, 611, 717, 62, 37301, 62, 4475, 62, 2435, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 11085, 62, 37301, 62, 4475, 62, 2435, 796, 717, 62, 37301, 62, 4475, 62, 2435, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1306, 62, 37301, 62, 17287, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19545, 62, 37301, 62, 17287, 796, 1306, 62, 37301, 62, 17287, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1306, 62, 37301, 62, 4475, 62, 2435, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 19545, 62, 37301, 62, 4475, 62, 2435, 796, 1306, 62, 37301, 62, 4475, 62, 2435, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2457, 62, 37301, 62, 17287, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 20311, 62, 37301, 62, 17287, 796, 2457, 62, 37301, 62, 17287, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2457, 62, 37301, 62, 4475, 62, 2435, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 20311, 62, 37301, 62, 4475, 62, 2435, 796, 2457, 62, 37301, 62, 4475, 62, 2435, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2727, 62, 265, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 25598, 62, 265, 796, 2727, 62, 265, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2180, 62, 37301, 62, 17287, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 3866, 1442, 62, 37301, 62, 17287, 796, 2180, 62, 37301, 62, 17287, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2180, 62, 37301, 62, 4475, 62, 2435, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 3866, 1442, 62, 37301, 62, 4475, 62, 2435, 796, 2180, 62, 37301, 62, 4475, 62, 2435, 198, 220, 220, 220, 220, 220, 220, 220, 611, 3877, 62, 36604, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 10136, 62, 36604, 796, 3877, 62, 36604, 198, 220, 220, 220, 220, 220, 220, 220, 611, 7530, 62, 37301, 62, 4906, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 1416, 704, 6309, 62, 37301, 62, 4906, 796, 7530, 62, 37301, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 611, 7530, 62, 37301, 62, 4475, 62, 2435, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 1416, 704, 6309, 62, 37301, 62, 4475, 62, 2435, 796, 7530, 62, 37301, 62, 4475, 62, 2435, 198, 220, 220, 220, 220, 220, 220, 220, 611, 8373, 318, 407, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 35324, 796, 8373, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 4686, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 4686, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 4686, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 312, 628, 220, 220, 220, 2488, 312, 13, 2617, 353, 198, 220, 220, 220, 825, 4686, 7, 944, 11, 4686, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 4686, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 4686, 25, 383, 4686, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 312, 796, 4686, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 6074, 62, 28913, 13059, 1387, 62, 312, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 6074, 62, 28913, 13059, 1387, 62, 312, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 6074, 62, 28913, 13059, 1387, 62, 312, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 37301, 62, 28913, 13059, 1387, 62, 312, 628, 220, 220, 220, 2488, 37301, 62, 28913, 13059, 1387, 62, 312, 13, 2617, 353, 198, 220, 220, 220, 825, 6074, 62, 28913, 13059, 1387, 62, 312, 7, 944, 11, 6074, 62, 28913, 13059, 1387, 62, 312, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 6074, 62, 28913, 13059, 1387, 62, 312, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 6074, 62, 28913, 13059, 1387, 62, 312, 25, 383, 6074, 62, 28913, 13059, 1387, 62, 312, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 37301, 62, 28913, 13059, 1387, 62, 312, 796, 6074, 62, 28913, 13059, 1387, 62, 312, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 9901, 62, 5936, 298, 62, 312, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 9901, 62, 5936, 298, 62, 312, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 9901, 62, 5936, 298, 62, 312, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 8625, 2738, 62, 5936, 298, 62, 312, 628, 220, 220, 220, 2488, 8625, 2738, 62, 5936, 298, 62, 312, 13, 2617, 353, 198, 220, 220, 220, 825, 9901, 62, 5936, 298, 62, 312, 7, 944, 11, 9901, 62, 5936, 298, 62, 312, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 9901, 62, 5936, 298, 62, 312, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 9901, 62, 5936, 298, 62, 312, 25, 383, 9901, 62, 5936, 298, 62, 312, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 8625, 2738, 62, 5936, 298, 62, 312, 796, 9901, 62, 5936, 298, 62, 312, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 6074, 62, 36195, 47510, 62, 312, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 6074, 62, 36195, 47510, 62, 312, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 6074, 62, 36195, 47510, 62, 312, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 37301, 62, 36195, 47510, 62, 312, 628, 220, 220, 220, 2488, 37301, 62, 36195, 47510, 62, 312, 13, 2617, 353, 198, 220, 220, 220, 825, 6074, 62, 36195, 47510, 62, 312, 7, 944, 11, 6074, 62, 36195, 47510, 62, 312, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 6074, 62, 36195, 47510, 62, 312, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 6074, 62, 36195, 47510, 62, 312, 25, 383, 6074, 62, 36195, 47510, 62, 312, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 37301, 62, 36195, 47510, 62, 312, 796, 6074, 62, 36195, 47510, 62, 312, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 3722, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 3722, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 3722, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 13376, 628, 220, 220, 220, 2488, 13376, 13, 2617, 353, 198, 220, 220, 220, 825, 3722, 7, 944, 11, 3722, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 3722, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 3722, 25, 383, 3722, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 3142, 62, 27160, 796, 14631, 47, 10619, 2751, 1600, 366, 7708, 4146, 1961, 1600, 366, 41374, 34509, 1961, 1600, 366, 41335, 36493, 1600, 366, 49864, 37819, 1600, 366, 4944, 44706, 1600, 366, 10659, 9306, 1600, 366, 1268, 10659, 9306, 8973, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 611, 3722, 407, 287, 3142, 62, 27160, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 11052, 12331, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 44651, 1988, 329, 4600, 13376, 63, 37913, 15, 92, 828, 1276, 307, 530, 286, 1391, 16, 36786, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 18982, 7, 13376, 11, 3142, 62, 27160, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 13376, 796, 3722, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 3722, 62, 36604, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 3722, 62, 36604, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 3722, 62, 36604, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 28784, 19580, 24259, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 13376, 62, 36604, 628, 220, 220, 220, 2488, 13376, 62, 36604, 13, 2617, 353, 198, 220, 220, 220, 825, 3722, 62, 36604, 7, 944, 11, 3722, 62, 36604, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 3722, 62, 36604, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 3722, 62, 36604, 25, 383, 3722, 62, 36604, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 28784, 19580, 24259, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 13376, 62, 36604, 796, 3722, 62, 36604, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 1414, 1453, 62, 36604, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 1414, 1453, 62, 36604, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 1414, 1453, 62, 36604, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 7119, 1453, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 15577, 1453, 62, 36604, 628, 220, 220, 220, 2488, 15577, 1453, 62, 36604, 13, 2617, 353, 198, 220, 220, 220, 825, 1414, 1453, 62, 36604, 7, 944, 11, 1414, 1453, 62, 36604, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 1414, 1453, 62, 36604, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 1414, 1453, 62, 36604, 25, 383, 1414, 1453, 62, 36604, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 7119, 1453, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 15577, 1453, 62, 36604, 796, 1414, 1453, 62, 36604, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 4941, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 4941, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 4941, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 35790, 628, 220, 220, 220, 2488, 35790, 13, 2617, 353, 198, 220, 220, 220, 825, 4941, 7, 944, 11, 4941, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 4941, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 4941, 25, 383, 4941, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 35790, 796, 4941, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 2033, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 2033, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 2033, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 12178, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 17287, 628, 220, 220, 220, 2488, 17287, 13, 2617, 353, 198, 220, 220, 220, 825, 2033, 7, 944, 11, 2033, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 2033, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 2033, 25, 383, 2033, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 12178, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 17287, 796, 2033, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 7395, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 7395, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 7395, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 34415, 628, 220, 220, 220, 2488, 34415, 13, 2617, 353, 198, 220, 220, 220, 825, 7395, 7, 944, 11, 7395, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 7395, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 7395, 25, 383, 7395, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 34415, 796, 7395, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 2033, 62, 36604, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 2033, 62, 36604, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 2033, 62, 36604, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 26308, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 17287, 62, 36604, 628, 220, 220, 220, 2488, 17287, 62, 36604, 13, 2617, 353, 198, 220, 220, 220, 825, 2033, 62, 36604, 7, 944, 11, 2033, 62, 36604, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 2033, 62, 36604, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 2033, 62, 36604, 25, 383, 2033, 62, 36604, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 26308, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 17287, 62, 36604, 796, 2033, 62, 36604, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 717, 62, 37301, 62, 17287, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 717, 62, 37301, 62, 17287, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 717, 62, 37301, 62, 17287, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 26308, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 11085, 62, 37301, 62, 17287, 628, 220, 220, 220, 2488, 11085, 62, 37301, 62, 17287, 13, 2617, 353, 198, 220, 220, 220, 825, 717, 62, 37301, 62, 17287, 7, 944, 11, 717, 62, 37301, 62, 17287, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 717, 62, 37301, 62, 17287, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 717, 62, 37301, 62, 17287, 25, 383, 717, 62, 37301, 62, 17287, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 26308, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 11085, 62, 37301, 62, 17287, 796, 717, 62, 37301, 62, 17287, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 717, 62, 37301, 62, 4475, 62, 2435, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 717, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 717, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 4818, 8079, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 11085, 62, 37301, 62, 4475, 62, 2435, 628, 220, 220, 220, 2488, 11085, 62, 37301, 62, 4475, 62, 2435, 13, 2617, 353, 198, 220, 220, 220, 825, 717, 62, 37301, 62, 4475, 62, 2435, 7, 944, 11, 717, 62, 37301, 62, 4475, 62, 2435, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 717, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 717, 62, 37301, 62, 4475, 62, 2435, 25, 383, 717, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 4818, 8079, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 11085, 62, 37301, 62, 4475, 62, 2435, 796, 717, 62, 37301, 62, 4475, 62, 2435, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 1306, 62, 37301, 62, 17287, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 1306, 62, 37301, 62, 17287, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 1306, 62, 37301, 62, 17287, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 26308, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 19545, 62, 37301, 62, 17287, 628, 220, 220, 220, 2488, 19545, 62, 37301, 62, 17287, 13, 2617, 353, 198, 220, 220, 220, 825, 1306, 62, 37301, 62, 17287, 7, 944, 11, 1306, 62, 37301, 62, 17287, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 1306, 62, 37301, 62, 17287, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 1306, 62, 37301, 62, 17287, 25, 383, 1306, 62, 37301, 62, 17287, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 26308, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 19545, 62, 37301, 62, 17287, 796, 1306, 62, 37301, 62, 17287, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 1306, 62, 37301, 62, 4475, 62, 2435, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 1306, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 1306, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 4818, 8079, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 19545, 62, 37301, 62, 4475, 62, 2435, 628, 220, 220, 220, 2488, 19545, 62, 37301, 62, 4475, 62, 2435, 13, 2617, 353, 198, 220, 220, 220, 825, 1306, 62, 37301, 62, 4475, 62, 2435, 7, 944, 11, 1306, 62, 37301, 62, 4475, 62, 2435, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 1306, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 1306, 62, 37301, 62, 4475, 62, 2435, 25, 383, 1306, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 4818, 8079, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 19545, 62, 37301, 62, 4475, 62, 2435, 796, 1306, 62, 37301, 62, 4475, 62, 2435, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 2457, 62, 37301, 62, 17287, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 2457, 62, 37301, 62, 17287, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 2457, 62, 37301, 62, 17287, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 26308, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 20311, 62, 37301, 62, 17287, 628, 220, 220, 220, 2488, 20311, 62, 37301, 62, 17287, 13, 2617, 353, 198, 220, 220, 220, 825, 2457, 62, 37301, 62, 17287, 7, 944, 11, 2457, 62, 37301, 62, 17287, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 2457, 62, 37301, 62, 17287, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 2457, 62, 37301, 62, 17287, 25, 383, 2457, 62, 37301, 62, 17287, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 26308, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 20311, 62, 37301, 62, 17287, 796, 2457, 62, 37301, 62, 17287, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 2457, 62, 37301, 62, 4475, 62, 2435, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 2457, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 2457, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 4818, 8079, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 20311, 62, 37301, 62, 4475, 62, 2435, 628, 220, 220, 220, 2488, 20311, 62, 37301, 62, 4475, 62, 2435, 13, 2617, 353, 198, 220, 220, 220, 825, 2457, 62, 37301, 62, 4475, 62, 2435, 7, 944, 11, 2457, 62, 37301, 62, 4475, 62, 2435, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 2457, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 2457, 62, 37301, 62, 4475, 62, 2435, 25, 383, 2457, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 4818, 8079, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 20311, 62, 37301, 62, 4475, 62, 2435, 796, 2457, 62, 37301, 62, 4475, 62, 2435, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 2727, 62, 265, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 2727, 62, 265, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 2727, 62, 265, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 4818, 8079, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 25598, 62, 265, 628, 220, 220, 220, 2488, 25598, 62, 265, 13, 2617, 353, 198, 220, 220, 220, 825, 2727, 62, 265, 7, 944, 11, 2727, 62, 265, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 2727, 62, 265, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 2727, 62, 265, 25, 383, 2727, 62, 265, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 4818, 8079, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 25598, 62, 265, 796, 2727, 62, 265, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 2180, 62, 37301, 62, 17287, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 2180, 62, 37301, 62, 17287, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 2180, 62, 37301, 62, 17287, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 26308, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 3866, 1442, 62, 37301, 62, 17287, 628, 220, 220, 220, 2488, 3866, 1442, 62, 37301, 62, 17287, 13, 2617, 353, 198, 220, 220, 220, 825, 2180, 62, 37301, 62, 17287, 7, 944, 11, 2180, 62, 37301, 62, 17287, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 2180, 62, 37301, 62, 17287, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 2180, 62, 37301, 62, 17287, 25, 383, 2180, 62, 37301, 62, 17287, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 26308, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 3866, 1442, 62, 37301, 62, 17287, 796, 2180, 62, 37301, 62, 17287, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 2180, 62, 37301, 62, 4475, 62, 2435, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 2180, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 2180, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 4818, 8079, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 3866, 1442, 62, 37301, 62, 4475, 62, 2435, 628, 220, 220, 220, 2488, 3866, 1442, 62, 37301, 62, 4475, 62, 2435, 13, 2617, 353, 198, 220, 220, 220, 825, 2180, 62, 37301, 62, 4475, 62, 2435, 7, 944, 11, 2180, 62, 37301, 62, 4475, 62, 2435, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 2180, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 2180, 62, 37301, 62, 4475, 62, 2435, 25, 383, 2180, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 4818, 8079, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 3866, 1442, 62, 37301, 62, 4475, 62, 2435, 796, 2180, 62, 37301, 62, 4475, 62, 2435, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 3877, 62, 36604, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 3877, 62, 36604, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 3877, 62, 36604, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 1351, 58, 50044, 24259, 60, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 10136, 62, 36604, 628, 220, 220, 220, 2488, 10136, 62, 36604, 13, 2617, 353, 198, 220, 220, 220, 825, 3877, 62, 36604, 7, 944, 11, 3877, 62, 36604, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 3877, 62, 36604, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 3877, 62, 36604, 25, 383, 3877, 62, 36604, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 1351, 58, 50044, 24259, 60, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 10136, 62, 36604, 796, 3877, 62, 36604, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 7530, 62, 37301, 62, 4906, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 7530, 62, 37301, 62, 4906, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 7530, 62, 37301, 62, 4906, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 1416, 704, 6309, 62, 37301, 62, 4906, 628, 220, 220, 220, 2488, 1416, 704, 6309, 62, 37301, 62, 4906, 13, 2617, 353, 198, 220, 220, 220, 825, 7530, 62, 37301, 62, 4906, 7, 944, 11, 7530, 62, 37301, 62, 4906, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 7530, 62, 37301, 62, 4906, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 7530, 62, 37301, 62, 4906, 25, 383, 7530, 62, 37301, 62, 4906, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 965, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 1416, 704, 6309, 62, 37301, 62, 4906, 796, 7530, 62, 37301, 62, 4906, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 7530, 62, 37301, 62, 4475, 62, 2435, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 7530, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 7530, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 4818, 8079, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 1416, 704, 6309, 62, 37301, 62, 4475, 62, 2435, 628, 220, 220, 220, 2488, 1416, 704, 6309, 62, 37301, 62, 4475, 62, 2435, 13, 2617, 353, 198, 220, 220, 220, 825, 7530, 62, 37301, 62, 4475, 62, 2435, 7, 944, 11, 7530, 62, 37301, 62, 4475, 62, 2435, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 7530, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 7530, 62, 37301, 62, 4475, 62, 2435, 25, 383, 7530, 62, 37301, 62, 4475, 62, 2435, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 4818, 8079, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 1416, 704, 6309, 62, 37301, 62, 4475, 62, 2435, 796, 7530, 62, 37301, 62, 4475, 62, 2435, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 8373, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38, 1039, 262, 8373, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 383, 8373, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 81, 4906, 25, 31902, 31077, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13557, 35324, 628, 220, 220, 220, 2488, 35324, 13, 2617, 353, 198, 220, 220, 220, 825, 8373, 7, 944, 11, 8373, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 50, 1039, 262, 8373, 286, 428, 28784, 31077, 13, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 8373, 25, 383, 8373, 286, 428, 28784, 31077, 13, 220, 1303, 645, 20402, 25, 412, 33548, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 4906, 25, 31902, 31077, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 35324, 796, 8373, 628, 220, 220, 220, 825, 284, 62, 11600, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 35561, 262, 2746, 6608, 355, 257, 8633, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 23884, 628, 220, 220, 220, 220, 220, 220, 220, 329, 708, 81, 11, 4808, 287, 2237, 13, 2676, 23814, 7, 944, 13, 2032, 7928, 62, 19199, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 796, 651, 35226, 7, 944, 11, 708, 81, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 318, 39098, 7, 8367, 11, 1351, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 35226, 60, 796, 1351, 7, 8899, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37456, 2124, 25, 2124, 13, 1462, 62, 11600, 3419, 611, 468, 35226, 7, 87, 11, 366, 1462, 62, 11600, 4943, 2073, 2124, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15306, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 468, 35226, 7, 8367, 11, 366, 1462, 62, 11600, 1, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 35226, 60, 796, 1988, 13, 1462, 62, 11600, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 318, 39098, 7, 8367, 11, 8633, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 35226, 60, 796, 8633, 7, 8899, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37456, 2378, 25, 357, 9186, 58, 15, 4357, 2378, 58, 16, 4083, 1462, 62, 11600, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 468, 35226, 7, 9186, 58, 16, 4357, 366, 1462, 62, 11600, 4943, 2073, 2378, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 13, 23814, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15306, 198, 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, 1255, 58, 35226, 60, 796, 1988, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 1255, 628, 220, 220, 220, 825, 284, 62, 2536, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 35561, 262, 4731, 10552, 286, 262, 2746, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 279, 4798, 13, 79, 18982, 7, 944, 13, 1462, 62, 11600, 28955, 628, 220, 220, 220, 825, 11593, 260, 1050, 834, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 1890, 4600, 4798, 63, 290, 4600, 381, 22272, 63, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 1462, 62, 2536, 3419, 628, 220, 220, 220, 825, 11593, 27363, 834, 7, 944, 11, 584, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 35561, 2081, 611, 1111, 5563, 389, 4961, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 611, 407, 318, 39098, 7, 847, 11, 28784, 31077, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 10352, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 834, 11600, 834, 6624, 584, 13, 834, 11600, 834, 628, 220, 220, 220, 825, 11593, 710, 834, 7, 944, 11, 584, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 35561, 2081, 611, 1111, 5563, 389, 407, 4961, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 407, 2116, 6624, 584, 198 ]
2.446533
9,576
"""Classes for interacting with the Twitter API.""" import datetime import oauth2 from urllib.parse import urlencode import json from typing import Any REQUEST_TOKEN_URL = "https://api.twitter.com/oauth/request_token" AUTHORIZE_URL = "https://api.twitter.com/oauth/authorize" ACCESS_TOKEN_URL = "https://api.twitter.com/oauth/access_token" LIST_FRIENDS_URL = "https://api.twitter.com/1.1/friends/ids.json" CREATE_LIST_URL = "https://api.twitter.com/1.1/lists/create.json" LIST_RATE_LIMITS_URL = "https://api.twitter.com/1.1/application/rate_limit_status.json" ADD_LIST_MEMBERS_URL = "https://api.twitter.com/1.1/lists/members/create_all.json" DELETE_LIST_URL = "https://api.twitter.com/1.1/lists/destroy.json" LOOKUP_FRIENDSHIPS_URL = "https://api.twitter.com/1.1/friendships/lookup.json" SHOW_USER_URL = "https://api.twitter.com/1.1/users/show.json" BASE_WEB_URL = "https://twitter.com" INVALIDATE_TOKEN_URL = "https://api.twitter.com/1.1/oauth/invalidate_token" class TwitterClient: """Class for interacting with the Twitter API on behalf of a Twitter user via OAuth.""" def __init__(self, oauth_client: Any = None, consumer_key: str = None, consumer_secret: str = None, callback_url: str = None) -> None: """Initialize an oauth2 client, or stash the one provided.""" self.callback_url = callback_url if oauth_client: self.oauth_client = oauth_client elif (consumer_key is not None) and (consumer_secret is not None): consumer = oauth2.Consumer(key=consumer_key, secret=consumer_secret) self.oauth_client = oauth2.Client(consumer) else: raise Exception("Please supply either an oauth_client argument or a consumer_key + consumer_secret pair") @classmethod def from_flask_app(cls, flask_app: Any): """Construct a TwitterClient using config from a Flask app.""" return cls(consumer_key=flask_app.config["TWITTER_CONSUMER_KEY"], consumer_secret=flask_app.config["TWITTER_CONSUMER_SECRET"], callback_url=flask_app.config["TWITTER_CALLBACK_URL"]) def get_request_token(self) -> oauth2.Token: """Get a Twitter OAuth request token for step 1 of OAuth flow.""" client = self.oauth_client callback_url = self.callback_url request_body = urlencode({'oauth_callback': callback_url}) headers, body = client.request(REQUEST_TOKEN_URL, method='POST', body=request_body) if headers.status != 200: raise OAuthRequestError("Fetching request token failed", headers, body) token = self.parse_oauth_response(headers, body) if token.callback_confirmed != "true": raise InvalidOAuthResponseError("Bad request token response - callback unconfirmed", headers, body) return token def parse_oauth_response(self, headers: Any, body: bytes) -> oauth2.Token: """Parse a Twitter OAuth request token response or an authorize token response.""" try: token = oauth2.Token.from_string(body.decode()) except ValueError: raise InvalidOAuthResponseError("Bad OAuth response - missing required values", headers, body) return token def parse_api_response(self, headers: Any, body: bytes) -> Any: """Parse a Twitter API response body and return it as a dict.""" body = body.decode() try: parsed_body = json.loads(body) except json.JSONDecodeError as e: raise TwitterError("Parsing API response failed: " + str(e), headers, body) return parsed_body def get_authorize_url_for_token(self, oauth_token: str) -> str: """Get a Twitter OAuth authorization URL for step 2 of OAuth.""" twitter_auth_url = AUTHORIZE_URL if twitter_auth_url[-1] != '?': twitter_auth_url = twitter_auth_url + '?' return twitter_auth_url + urlencode({"oauth_token": oauth_token}) def invalidate_token(self) -> bool: """Invalidate the current OAuth access token.""" headers, body = self.oauth_client.request(INVALIDATE_TOKEN_URL, method="POST") if headers.status != 200: raise OAuthRequestError("Failed to invalidate OAuth access token", headers, body) return True def get_full_list_url(self, twitter_list: dict) -> str: """Get a full Twitter URL from a twitter list returned by the API.""" return BASE_WEB_URL + twitter_list["uri"] def set_client_token(self, oauth_token: str, oauth_token_secret: str, verifier: Any = None) -> oauth2.Token: """Create an oauth2.Token and set it on our oauth_client.""" token = oauth2.Token(oauth_token, oauth_token_secret) if verifier: token.set_verifier(verifier) self.oauth_client.token = token return token def authorize_oauth_token(self, oauth_token: str, oauth_token_secret: str, oauth_verifier: str) -> oauth2.Token: """Get an OAuth token from Twitter using an authorized request token - final step of three-legged OAuth.""" self.set_client_token(oauth_token, oauth_token_secret, oauth_verifier) headers, body = self.oauth_client.request(ACCESS_TOKEN_URL, method='POST') if headers.status != 200: raise OAuthRequestError("Request token exchange failed", headers, body) token = self.parse_oauth_response(headers, body) # set authorized token on our oauth client self.oauth_client.token = token return token def get_following_user_ids(self, screen_name: str, count=5000) -> dict: """Get the stringified IDs of the full list of users who screen_name follows.""" params = {"screen_name": screen_name, "stringify_ids": "true", "count": count} headers, body = self.oauth_client.request(LIST_FRIENDS_URL + '?' + urlencode(params), method='GET') if headers.status != 200: if headers.status == RateLimitHit.status: raise RateLimitHit("Too many requests for following users in a 15-minute period!", headers, body) raise TwitterError("Fetch following users failed", headers, body) return self.parse_api_response(headers, body) def current_user_is_following_user(self, screen_name: str) -> bool: """Check if the current user is following screen_name.""" params = {"screen_name": screen_name} headers, body = self.oauth_client.request(LOOKUP_FRIENDSHIPS_URL + '?' + urlencode(params)) if headers.status != 200: if headers.status == RateLimitHit.status: raise RateLimitHit("Too many friendships lookup requests in a 15-minute window!", headers, body) raise TwitterError("Friendships lookup failed", headers, body) users = self.parse_api_response(headers, body) if len(users) != 0 and ('following' in users[0]["connections"]): return True return False def get_user_profile_img_url(self, screen_name: str) -> bool: """Get the Twitter profile image URL for <screen_name> (original size).""" params = {"screen_name": screen_name} headers, body = self.oauth_client.request(SHOW_USER_URL + '?' + urlencode(params)) if headers.status != 200: if headers.status == RateLimitHit.status: raise RateLimitHit("Too many user info lookup requests in a 15-minute window!", headers, body) raise TwitterError("User info lookup failed", headers, body) user_info = self.parse_api_response(headers, body) profile_img_url = user_info.get("profile_image_url") if profile_img_url: return profile_img_url.replace("_normal.", ".") return None def create_private_list(self, screen_name: str) -> dict: """Create a private, empty Twitter list named '<screen_name>'.""" list_settings = { "mode": "private", "name": screen_name, "description": "Feed for {} as of {}".format(screen_name, datetime.date.today().strftime("%m/%-d/%y")) } headers, body = self.oauth_client.request(CREATE_LIST_URL + '?' + urlencode(list_settings), method='POST') if headers.status != 200: if headers.status == RateLimitHit.status: raise RateLimitHit("Too many lists created in a 15-minute window!") raise TwitterError("Private list creation failed", headers, body) return self.parse_api_response(headers, body) def delete_list(self, list_id: str) -> bool: """Delete a Twitter list.""" headers, body = self.oauth_client.request(DELETE_LIST_URL + '?list_id=' + str(list_id), method='POST') if headers.status != 200: if headers.status == RateLimitHit.status: raise RateLimitHit("Too many delete requests within a 15-minute window!", headers, body) raise TwitterError("List delete failed", headers, body) return True def get_rate_limit_status(self, resource_type: str, endpoint_uri: str) -> int: """Get the remaining number of allowed API requests for a Twitter resource type and one of its endpoints. https://developer.twitter.com/en/docs/developer-utilities/rate-limit-status/api-reference/get-application-rate_limit_status N.B. Twitter simply does not return the rate limit status for some rate-limited endpoints, like /lists/create, so, don't rely too heavily on what this returns. Look at API response headers instead. """ headers, body = self.oauth_client.request(LIST_RATE_LIMITS_URL + '?resource=' + resource_type, method='GET') if headers.status != 200: if headers.status == RateLimitHit.status: raise RateLimitHit("Too many requests for rate limit status in 15-minute window!", headers, body) raise TwitterError("Failed to get rate limit status", headers, body) status_desc_res = self.parse_api_response(headers, body) endpoint_status_desc = status_desc_res['resources'].get(resource_type, {}).get(endpoint_uri, {}) return endpoint_status_desc['remaining'] def add_users_to_list(self, list_id: str, user_ids: list) -> dict: """Add a list of Twitter accounts (user_ids) to a Twitter List (list_id).""" create_params = { "list_id": list_id, "user_id": ",".join(user_ids) } headers, body = self.oauth_client.request(ADD_LIST_MEMBERS_URL, method='POST', body=urlencode(create_params)) if headers.status != 200: if headers.status == RateLimitHit.status: raise RateLimitHit("Too many members added to a list within a 15-minute window!") raise TwitterError("Failed to add users to a list", headers, body) # check for soft rate limit hit updated_list = self.parse_api_response(headers, body) if int(updated_list['member_count']) == 0: raise SoftRateLimitHit("Too many list actions performed for today!", headers, body) return updated_list class TwitterError(Exception): """Generic Twitter API response error.""" def __init__(self, message: str = None, headers: any = None, body: any = None): """Provide a default message and stash API response headers and body.""" if message is None: message = str(type(self)) super().__init__(message) self.message = message self.headers = headers self.body = body def __str__(self): """Print details about the API response.""" full_desc = self.message if self.headers or self.body: full_desc = full_desc + f'. Response details (headers - body): {str(self.headers)} - {str(self.body)}' return full_desc class OAuthRequestError(TwitterError): """Generic Twitter OAuth error.""" pass class InvalidOAuthResponseError(TwitterError): """Twitter either rejected our OAuth credentials, or the response was invalid.""" pass class RateLimitHit(TwitterError): """Twitter rate limit exceeded response error.""" status = 429 # http status class SoftRateLimitHit(TwitterError): """Twitter soft (hidden) rate limit exceeded - response is 200 but no actions were performed by Twitter. This means that the user can't perform the action again for at least the next 24 hours. """ pass class TooManyFollowing(TwitterError): """Twitter list would have too many members.""" pass class ZeroFollowing(TwitterError): """Twitter list would have zero members.""" pass class UserNotFollowingTarget(TwitterError): """Current user isn't following the target user.""" pass
[ 37811, 9487, 274, 329, 24986, 351, 262, 3009, 7824, 526, 15931, 198, 11748, 4818, 8079, 198, 11748, 267, 18439, 17, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 2956, 11925, 8189, 198, 11748, 33918, 198, 6738, 19720, 1330, 4377, 198, 198, 2200, 35780, 62, 10468, 43959, 62, 21886, 796, 366, 5450, 1378, 15042, 13, 6956, 13, 785, 14, 12162, 1071, 14, 25927, 62, 30001, 1, 198, 32, 24318, 1581, 35400, 62, 21886, 796, 366, 5450, 1378, 15042, 13, 6956, 13, 785, 14, 12162, 1071, 14, 9800, 1096, 1, 198, 26861, 7597, 62, 10468, 43959, 62, 21886, 796, 366, 5450, 1378, 15042, 13, 6956, 13, 785, 14, 12162, 1071, 14, 15526, 62, 30001, 1, 198, 45849, 62, 37, 7112, 1677, 5258, 62, 21886, 796, 366, 5450, 1378, 15042, 13, 6956, 13, 785, 14, 16, 13, 16, 14, 36154, 14, 2340, 13, 17752, 1, 198, 43387, 6158, 62, 45849, 62, 21886, 796, 366, 5450, 1378, 15042, 13, 6956, 13, 785, 14, 16, 13, 16, 14, 20713, 14, 17953, 13, 17752, 1, 198, 45849, 62, 49, 6158, 62, 43, 3955, 29722, 62, 21886, 796, 366, 5450, 1378, 15042, 13, 6956, 13, 785, 14, 16, 13, 16, 14, 31438, 14, 4873, 62, 32374, 62, 13376, 13, 17752, 1, 198, 29266, 62, 45849, 62, 44, 3620, 33, 4877, 62, 21886, 796, 366, 5450, 1378, 15042, 13, 6956, 13, 785, 14, 16, 13, 16, 14, 20713, 14, 30814, 14, 17953, 62, 439, 13, 17752, 1, 198, 7206, 2538, 9328, 62, 45849, 62, 21886, 796, 366, 5450, 1378, 15042, 13, 6956, 13, 785, 14, 16, 13, 16, 14, 20713, 14, 41659, 13, 17752, 1, 198, 43, 15308, 8577, 62, 37, 7112, 1677, 5258, 25374, 3705, 62, 21886, 796, 366, 5450, 1378, 15042, 13, 6956, 13, 785, 14, 16, 13, 16, 14, 6726, 26313, 14, 5460, 929, 13, 17752, 1, 198, 9693, 3913, 62, 29904, 62, 21886, 796, 366, 5450, 1378, 15042, 13, 6956, 13, 785, 14, 16, 13, 16, 14, 18417, 14, 12860, 13, 17752, 1, 198, 33, 11159, 62, 8845, 33, 62, 21886, 796, 366, 5450, 1378, 6956, 13, 785, 1, 198, 1268, 23428, 2389, 6158, 62, 10468, 43959, 62, 21886, 796, 366, 5450, 1378, 15042, 13, 6956, 13, 785, 14, 16, 13, 16, 14, 12162, 1071, 14, 259, 12102, 378, 62, 30001, 1, 628, 198, 4871, 3009, 11792, 25, 198, 220, 220, 220, 37227, 9487, 329, 24986, 351, 262, 3009, 7824, 319, 8378, 286, 257, 3009, 2836, 2884, 440, 30515, 526, 15931, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 267, 18439, 62, 16366, 25, 4377, 796, 6045, 11, 7172, 62, 2539, 25, 965, 796, 6045, 11, 7172, 62, 21078, 25, 965, 796, 6045, 11, 23838, 62, 6371, 25, 965, 796, 6045, 8, 4613, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 24243, 1096, 281, 267, 18439, 17, 5456, 11, 393, 38305, 262, 530, 2810, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 47423, 62, 6371, 796, 23838, 62, 6371, 198, 220, 220, 220, 220, 220, 220, 220, 611, 267, 18439, 62, 16366, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 12162, 1071, 62, 16366, 796, 267, 18439, 62, 16366, 198, 220, 220, 220, 220, 220, 220, 220, 1288, 361, 357, 49827, 62, 2539, 318, 407, 6045, 8, 290, 357, 49827, 62, 21078, 318, 407, 6045, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7172, 796, 267, 18439, 17, 13, 49106, 7, 2539, 28, 49827, 62, 2539, 11, 3200, 28, 49827, 62, 21078, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 12162, 1071, 62, 16366, 796, 267, 18439, 17, 13, 11792, 7, 49827, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 35528, 7203, 5492, 5127, 2035, 281, 267, 18439, 62, 16366, 4578, 393, 257, 7172, 62, 2539, 1343, 7172, 62, 21078, 5166, 4943, 628, 220, 220, 220, 2488, 4871, 24396, 198, 220, 220, 220, 825, 422, 62, 2704, 2093, 62, 1324, 7, 565, 82, 11, 42903, 62, 1324, 25, 4377, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 42316, 257, 3009, 11792, 1262, 4566, 422, 257, 46947, 598, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 537, 82, 7, 49827, 62, 2539, 28, 2704, 2093, 62, 1324, 13, 11250, 14692, 34551, 2043, 5781, 62, 10943, 50, 5883, 1137, 62, 20373, 33116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7172, 62, 21078, 28, 2704, 2093, 62, 1324, 13, 11250, 14692, 34551, 2043, 5781, 62, 10943, 50, 5883, 1137, 62, 23683, 26087, 33116, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23838, 62, 6371, 28, 2704, 2093, 62, 1324, 13, 11250, 14692, 34551, 2043, 5781, 62, 34, 7036, 31098, 62, 21886, 8973, 8, 628, 220, 220, 220, 825, 651, 62, 25927, 62, 30001, 7, 944, 8, 4613, 267, 18439, 17, 13, 30642, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 3855, 257, 3009, 440, 30515, 2581, 11241, 329, 2239, 352, 286, 440, 30515, 5202, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 5456, 796, 2116, 13, 12162, 1071, 62, 16366, 198, 220, 220, 220, 220, 220, 220, 220, 23838, 62, 6371, 796, 2116, 13, 47423, 62, 6371, 628, 220, 220, 220, 220, 220, 220, 220, 2581, 62, 2618, 796, 2956, 11925, 8189, 15090, 6, 12162, 1071, 62, 47423, 10354, 23838, 62, 6371, 30072, 198, 220, 220, 220, 220, 220, 220, 220, 24697, 11, 1767, 796, 5456, 13, 25927, 7, 2200, 35780, 62, 10468, 43959, 62, 21886, 11, 2446, 11639, 32782, 3256, 1767, 28, 25927, 62, 2618, 8, 628, 220, 220, 220, 220, 220, 220, 220, 611, 24697, 13, 13376, 14512, 939, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 440, 30515, 18453, 12331, 7203, 37, 7569, 278, 2581, 11241, 4054, 1600, 24697, 11, 1767, 8, 628, 220, 220, 220, 220, 220, 220, 220, 11241, 796, 2116, 13, 29572, 62, 12162, 1071, 62, 26209, 7, 50145, 11, 1767, 8, 628, 220, 220, 220, 220, 220, 220, 220, 611, 11241, 13, 47423, 62, 36349, 14512, 366, 7942, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 17665, 23621, 1071, 31077, 12331, 7203, 22069, 2581, 11241, 2882, 532, 23838, 555, 36349, 1600, 24697, 11, 1767, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 11241, 628, 220, 220, 220, 825, 21136, 62, 12162, 1071, 62, 26209, 7, 944, 11, 24697, 25, 4377, 11, 1767, 25, 9881, 8, 4613, 267, 18439, 17, 13, 30642, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 10044, 325, 257, 3009, 440, 30515, 2581, 11241, 2882, 393, 281, 29145, 11241, 2882, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11241, 796, 267, 18439, 17, 13, 30642, 13, 6738, 62, 8841, 7, 2618, 13, 12501, 1098, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 11052, 12331, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 17665, 23621, 1071, 31077, 12331, 7203, 22069, 440, 30515, 2882, 532, 4814, 2672, 3815, 1600, 24697, 11, 1767, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 11241, 628, 220, 220, 220, 825, 21136, 62, 15042, 62, 26209, 7, 944, 11, 24697, 25, 4377, 11, 1767, 25, 9881, 8, 4613, 4377, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 10044, 325, 257, 3009, 7824, 2882, 1767, 290, 1441, 340, 355, 257, 8633, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 1767, 796, 1767, 13, 12501, 1098, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 44267, 62, 2618, 796, 33918, 13, 46030, 7, 2618, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2845, 33918, 13, 40386, 10707, 1098, 12331, 355, 304, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 3009, 12331, 7203, 47, 945, 278, 7824, 2882, 4054, 25, 366, 1343, 965, 7, 68, 828, 24697, 11, 1767, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 44267, 62, 2618, 628, 220, 220, 220, 825, 651, 62, 9800, 1096, 62, 6371, 62, 1640, 62, 30001, 7, 944, 11, 267, 18439, 62, 30001, 25, 965, 8, 4613, 965, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 3855, 257, 3009, 440, 30515, 19601, 10289, 329, 2239, 362, 286, 440, 30515, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 17044, 62, 18439, 62, 6371, 796, 44746, 35400, 62, 21886, 198, 220, 220, 220, 220, 220, 220, 220, 611, 17044, 62, 18439, 62, 6371, 58, 12, 16, 60, 14512, 705, 8348, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17044, 62, 18439, 62, 6371, 796, 17044, 62, 18439, 62, 6371, 1343, 705, 8348, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 17044, 62, 18439, 62, 6371, 1343, 2956, 11925, 8189, 7, 4895, 12162, 1071, 62, 30001, 1298, 267, 18439, 62, 30001, 30072, 628, 220, 220, 220, 825, 12515, 378, 62, 30001, 7, 944, 8, 4613, 20512, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 44651, 378, 262, 1459, 440, 30515, 1895, 11241, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 24697, 11, 1767, 796, 2116, 13, 12162, 1071, 62, 16366, 13, 25927, 7, 1268, 23428, 2389, 6158, 62, 10468, 43959, 62, 21886, 11, 2446, 2625, 32782, 4943, 198, 220, 220, 220, 220, 220, 220, 220, 611, 24697, 13, 13376, 14512, 939, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 440, 30515, 18453, 12331, 7203, 37, 6255, 284, 12515, 378, 440, 30515, 1895, 11241, 1600, 24697, 11, 1767, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 6407, 628, 220, 220, 220, 825, 651, 62, 12853, 62, 4868, 62, 6371, 7, 944, 11, 17044, 62, 4868, 25, 8633, 8, 4613, 965, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 3855, 257, 1336, 3009, 10289, 422, 257, 17044, 1351, 4504, 416, 262, 7824, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 49688, 62, 8845, 33, 62, 21886, 1343, 17044, 62, 4868, 14692, 9900, 8973, 628, 220, 220, 220, 825, 900, 62, 16366, 62, 30001, 7, 944, 11, 267, 18439, 62, 30001, 25, 965, 11, 267, 18439, 62, 30001, 62, 21078, 25, 965, 11, 3326, 7483, 25, 4377, 796, 6045, 8, 4613, 267, 18439, 17, 13, 30642, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 16447, 281, 267, 18439, 17, 13, 30642, 290, 900, 340, 319, 674, 267, 18439, 62, 16366, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 11241, 796, 267, 18439, 17, 13, 30642, 7, 12162, 1071, 62, 30001, 11, 267, 18439, 62, 30001, 62, 21078, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 3326, 7483, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11241, 13, 2617, 62, 332, 7483, 7, 332, 7483, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 12162, 1071, 62, 16366, 13, 30001, 796, 11241, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 11241, 628, 220, 220, 220, 825, 29145, 62, 12162, 1071, 62, 30001, 7, 944, 11, 267, 18439, 62, 30001, 25, 965, 11, 267, 18439, 62, 30001, 62, 21078, 25, 965, 11, 267, 18439, 62, 332, 7483, 25, 965, 8, 4613, 267, 18439, 17, 13, 30642, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 3855, 281, 440, 30515, 11241, 422, 3009, 1262, 281, 10435, 2581, 11241, 532, 2457, 2239, 286, 1115, 12, 40898, 440, 30515, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 2617, 62, 16366, 62, 30001, 7, 12162, 1071, 62, 30001, 11, 267, 18439, 62, 30001, 62, 21078, 11, 267, 18439, 62, 332, 7483, 8, 198, 220, 220, 220, 220, 220, 220, 220, 24697, 11, 1767, 796, 2116, 13, 12162, 1071, 62, 16366, 13, 25927, 7, 26861, 7597, 62, 10468, 43959, 62, 21886, 11, 2446, 11639, 32782, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 611, 24697, 13, 13376, 14512, 939, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 440, 30515, 18453, 12331, 7203, 18453, 11241, 5163, 4054, 1600, 24697, 11, 1767, 8, 628, 220, 220, 220, 220, 220, 220, 220, 11241, 796, 2116, 13, 29572, 62, 12162, 1071, 62, 26209, 7, 50145, 11, 1767, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 900, 10435, 11241, 319, 674, 267, 18439, 5456, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 12162, 1071, 62, 16366, 13, 30001, 796, 11241, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 11241, 628, 220, 220, 220, 825, 651, 62, 27780, 278, 62, 7220, 62, 2340, 7, 944, 11, 3159, 62, 3672, 25, 965, 11, 954, 28, 27641, 8, 4613, 8633, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 3855, 262, 4731, 1431, 32373, 286, 262, 1336, 1351, 286, 2985, 508, 3159, 62, 3672, 5679, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 42287, 796, 19779, 9612, 62, 3672, 1298, 3159, 62, 3672, 11, 366, 8841, 1958, 62, 2340, 1298, 366, 7942, 1600, 366, 9127, 1298, 954, 92, 198, 220, 220, 220, 220, 220, 220, 220, 24697, 11, 1767, 796, 2116, 13, 12162, 1071, 62, 16366, 13, 25927, 7, 45849, 62, 37, 7112, 1677, 5258, 62, 21886, 1343, 705, 8348, 1343, 2956, 11925, 8189, 7, 37266, 828, 2446, 11639, 18851, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 611, 24697, 13, 13376, 14512, 939, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 24697, 13, 13376, 6624, 14806, 39184, 17889, 13, 13376, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 14806, 39184, 17889, 7203, 23307, 867, 7007, 329, 1708, 2985, 287, 257, 1315, 12, 11374, 2278, 40754, 24697, 11, 1767, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 3009, 12331, 7203, 37, 7569, 1708, 2985, 4054, 1600, 24697, 11, 1767, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 29572, 62, 15042, 62, 26209, 7, 50145, 11, 1767, 8, 628, 220, 220, 220, 825, 1459, 62, 7220, 62, 271, 62, 27780, 278, 62, 7220, 7, 944, 11, 3159, 62, 3672, 25, 965, 8, 4613, 20512, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 9787, 611, 262, 1459, 2836, 318, 1708, 3159, 62, 3672, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 42287, 796, 19779, 9612, 62, 3672, 1298, 3159, 62, 3672, 92, 198, 220, 220, 220, 220, 220, 220, 220, 24697, 11, 1767, 796, 2116, 13, 12162, 1071, 62, 16366, 13, 25927, 7, 43, 15308, 8577, 62, 37, 7112, 1677, 5258, 25374, 3705, 62, 21886, 1343, 705, 8348, 1343, 2956, 11925, 8189, 7, 37266, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 611, 24697, 13, 13376, 14512, 939, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 24697, 13, 13376, 6624, 14806, 39184, 17889, 13, 13376, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 14806, 39184, 17889, 7203, 23307, 867, 34596, 35847, 7007, 287, 257, 1315, 12, 11374, 4324, 40754, 24697, 11, 1767, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 3009, 12331, 7203, 23331, 26313, 35847, 4054, 1600, 24697, 11, 1767, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2985, 796, 2116, 13, 29572, 62, 15042, 62, 26209, 7, 50145, 11, 1767, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 18896, 7, 18417, 8, 14512, 657, 290, 19203, 27780, 278, 6, 287, 2985, 58, 15, 7131, 1, 8443, 507, 8973, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 6407, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 10352, 628, 220, 220, 220, 825, 651, 62, 7220, 62, 13317, 62, 9600, 62, 6371, 7, 944, 11, 3159, 62, 3672, 25, 965, 8, 4613, 20512, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 3855, 262, 3009, 7034, 2939, 10289, 329, 1279, 9612, 62, 3672, 29, 357, 14986, 2546, 21387, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 42287, 796, 19779, 9612, 62, 3672, 1298, 3159, 62, 3672, 92, 198, 220, 220, 220, 220, 220, 220, 220, 24697, 11, 1767, 796, 2116, 13, 12162, 1071, 62, 16366, 13, 25927, 7, 9693, 3913, 62, 29904, 62, 21886, 1343, 705, 8348, 1343, 2956, 11925, 8189, 7, 37266, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 611, 24697, 13, 13376, 14512, 939, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 24697, 13, 13376, 6624, 14806, 39184, 17889, 13, 13376, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 14806, 39184, 17889, 7203, 23307, 867, 2836, 7508, 35847, 7007, 287, 257, 1315, 12, 11374, 4324, 40754, 24697, 11, 1767, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 3009, 12331, 7203, 12982, 7508, 35847, 4054, 1600, 24697, 11, 1767, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 10951, 796, 2116, 13, 29572, 62, 15042, 62, 26209, 7, 50145, 11, 1767, 8, 198, 220, 220, 220, 220, 220, 220, 220, 7034, 62, 9600, 62, 6371, 796, 2836, 62, 10951, 13, 1136, 7203, 13317, 62, 9060, 62, 6371, 4943, 628, 220, 220, 220, 220, 220, 220, 220, 611, 7034, 62, 9600, 62, 6371, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 7034, 62, 9600, 62, 6371, 13, 33491, 7203, 62, 11265, 33283, 366, 19570, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 6045, 628, 220, 220, 220, 825, 2251, 62, 19734, 62, 4868, 7, 944, 11, 3159, 62, 3672, 25, 965, 8, 4613, 8633, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 16447, 257, 2839, 11, 6565, 3009, 1351, 3706, 705, 27, 9612, 62, 3672, 29, 30827, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 62, 33692, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 14171, 1298, 366, 19734, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 3672, 1298, 3159, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 11213, 1298, 366, 18332, 329, 23884, 355, 286, 23884, 1911, 18982, 7, 9612, 62, 3672, 11, 4818, 8079, 13, 4475, 13, 40838, 22446, 2536, 31387, 7203, 4, 76, 14, 33963, 67, 14, 4, 88, 48774, 198, 220, 220, 220, 220, 220, 220, 220, 1782, 198, 220, 220, 220, 220, 220, 220, 220, 24697, 11, 1767, 796, 2116, 13, 12162, 1071, 62, 16366, 13, 25927, 7, 43387, 6158, 62, 45849, 62, 21886, 1343, 705, 8348, 1343, 2956, 11925, 8189, 7, 4868, 62, 33692, 828, 2446, 11639, 32782, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 611, 24697, 13, 13376, 14512, 939, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 24697, 13, 13376, 6624, 14806, 39184, 17889, 13, 13376, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 14806, 39184, 17889, 7203, 23307, 867, 8341, 2727, 287, 257, 1315, 12, 11374, 4324, 2474, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 3009, 12331, 7203, 29067, 1351, 6282, 4054, 1600, 24697, 11, 1767, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 29572, 62, 15042, 62, 26209, 7, 50145, 11, 1767, 8, 628, 220, 220, 220, 825, 12233, 62, 4868, 7, 944, 11, 1351, 62, 312, 25, 965, 8, 4613, 20512, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 38727, 257, 3009, 1351, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 24697, 11, 1767, 796, 2116, 13, 12162, 1071, 62, 16366, 13, 25927, 7, 7206, 2538, 9328, 62, 45849, 62, 21886, 1343, 705, 30, 4868, 62, 312, 11639, 1343, 965, 7, 4868, 62, 312, 828, 2446, 11639, 32782, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 611, 24697, 13, 13376, 14512, 939, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 24697, 13, 13376, 6624, 14806, 39184, 17889, 13, 13376, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 14806, 39184, 17889, 7203, 23307, 867, 12233, 7007, 1626, 257, 1315, 12, 11374, 4324, 40754, 24697, 11, 1767, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 3009, 12331, 7203, 8053, 12233, 4054, 1600, 24697, 11, 1767, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 6407, 628, 220, 220, 220, 825, 651, 62, 4873, 62, 32374, 62, 13376, 7, 944, 11, 8271, 62, 4906, 25, 965, 11, 36123, 62, 9900, 25, 965, 8, 4613, 493, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 3855, 262, 5637, 1271, 286, 3142, 7824, 7007, 329, 257, 3009, 8271, 2099, 290, 530, 286, 663, 886, 13033, 13, 628, 220, 220, 220, 220, 220, 220, 220, 3740, 1378, 16244, 263, 13, 6956, 13, 785, 14, 268, 14, 31628, 14, 16244, 263, 12, 315, 2410, 14, 4873, 12, 32374, 12, 13376, 14, 15042, 12, 35790, 14, 1136, 12, 31438, 12, 4873, 62, 32374, 62, 13376, 198, 220, 220, 220, 220, 220, 220, 220, 399, 13, 33, 13, 3009, 2391, 857, 407, 1441, 262, 2494, 4179, 3722, 329, 617, 2494, 12, 10698, 886, 13033, 11, 588, 1220, 20713, 14, 17953, 11, 198, 220, 220, 220, 220, 220, 220, 220, 523, 11, 836, 470, 8814, 1165, 7272, 319, 644, 428, 5860, 13, 6803, 379, 7824, 2882, 24697, 2427, 13, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 24697, 11, 1767, 796, 2116, 13, 12162, 1071, 62, 16366, 13, 25927, 7, 45849, 62, 49, 6158, 62, 43, 3955, 29722, 62, 21886, 1343, 705, 30, 31092, 11639, 1343, 8271, 62, 4906, 11, 2446, 11639, 18851, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 611, 24697, 13, 13376, 14512, 939, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 24697, 13, 13376, 6624, 14806, 39184, 17889, 13, 13376, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 14806, 39184, 17889, 7203, 23307, 867, 7007, 329, 2494, 4179, 3722, 287, 1315, 12, 11374, 4324, 40754, 24697, 11, 1767, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 3009, 12331, 7203, 37, 6255, 284, 651, 2494, 4179, 3722, 1600, 24697, 11, 1767, 8, 628, 220, 220, 220, 220, 220, 220, 220, 3722, 62, 20147, 62, 411, 796, 2116, 13, 29572, 62, 15042, 62, 26209, 7, 50145, 11, 1767, 8, 198, 220, 220, 220, 220, 220, 220, 220, 36123, 62, 13376, 62, 20147, 796, 3722, 62, 20147, 62, 411, 17816, 37540, 6, 4083, 1136, 7, 31092, 62, 4906, 11, 23884, 737, 1136, 7, 437, 4122, 62, 9900, 11, 23884, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 36123, 62, 13376, 62, 20147, 17816, 2787, 1397, 20520, 628, 220, 220, 220, 825, 751, 62, 18417, 62, 1462, 62, 4868, 7, 944, 11, 1351, 62, 312, 25, 965, 11, 2836, 62, 2340, 25, 1351, 8, 4613, 8633, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 4550, 257, 1351, 286, 3009, 5504, 357, 7220, 62, 2340, 8, 284, 257, 3009, 7343, 357, 4868, 62, 312, 21387, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 2251, 62, 37266, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 4868, 62, 312, 1298, 1351, 62, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 7220, 62, 312, 1298, 366, 553, 13, 22179, 7, 7220, 62, 2340, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1782, 198, 220, 220, 220, 220, 220, 220, 220, 24697, 11, 1767, 796, 2116, 13, 12162, 1071, 62, 16366, 13, 25927, 7, 29266, 62, 45849, 62, 44, 3620, 33, 4877, 62, 21886, 11, 2446, 11639, 32782, 3256, 1767, 28, 6371, 268, 8189, 7, 17953, 62, 37266, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 611, 24697, 13, 13376, 14512, 939, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 24697, 13, 13376, 6624, 14806, 39184, 17889, 13, 13376, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 14806, 39184, 17889, 7203, 23307, 867, 1866, 2087, 284, 257, 1351, 1626, 257, 1315, 12, 11374, 4324, 2474, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 3009, 12331, 7203, 37, 6255, 284, 751, 2985, 284, 257, 1351, 1600, 24697, 11, 1767, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 2198, 329, 2705, 2494, 4179, 2277, 198, 220, 220, 220, 220, 220, 220, 220, 6153, 62, 4868, 796, 2116, 13, 29572, 62, 15042, 62, 26209, 7, 50145, 11, 1767, 8, 198, 220, 220, 220, 220, 220, 220, 220, 611, 493, 7, 43162, 62, 4868, 17816, 19522, 62, 9127, 6, 12962, 6624, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 8297, 32184, 39184, 17889, 7203, 23307, 867, 1351, 4028, 6157, 329, 1909, 40754, 24697, 11, 1767, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 6153, 62, 4868, 628, 198, 4871, 3009, 12331, 7, 16922, 2599, 198, 220, 220, 220, 37227, 46189, 3009, 7824, 2882, 4049, 526, 15931, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 3275, 25, 965, 796, 6045, 11, 24697, 25, 597, 796, 6045, 11, 1767, 25, 597, 796, 6045, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 15946, 485, 257, 4277, 3275, 290, 38305, 7824, 2882, 24697, 290, 1767, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 611, 3275, 318, 6045, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3275, 796, 965, 7, 4906, 7, 944, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2208, 22446, 834, 15003, 834, 7, 20500, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 20500, 796, 3275, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 50145, 796, 24697, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 2618, 796, 1767, 628, 220, 220, 220, 825, 11593, 2536, 834, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 18557, 3307, 546, 262, 7824, 2882, 526, 15931, 198, 220, 220, 220, 220, 220, 220, 220, 1336, 62, 20147, 796, 2116, 13, 20500, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 50145, 393, 2116, 13, 2618, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1336, 62, 20147, 796, 1336, 62, 20147, 1343, 277, 4458, 18261, 3307, 357, 50145, 532, 1767, 2599, 1391, 2536, 7, 944, 13, 50145, 38165, 532, 1391, 2536, 7, 944, 13, 2618, 38165, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 1336, 62, 20147, 628, 198, 4871, 440, 30515, 18453, 12331, 7, 14254, 12331, 2599, 198, 220, 220, 220, 37227, 46189, 3009, 440, 30515, 4049, 526, 15931, 628, 220, 220, 220, 1208, 628, 198, 4871, 17665, 23621, 1071, 31077, 12331, 7, 14254, 12331, 2599, 198, 220, 220, 220, 37227, 14254, 2035, 8606, 674, 440, 30515, 18031, 11, 393, 262, 2882, 373, 12515, 526, 15931, 628, 220, 220, 220, 1208, 628, 198, 4871, 14806, 39184, 17889, 7, 14254, 12331, 2599, 198, 220, 220, 220, 37227, 14254, 2494, 4179, 20672, 2882, 4049, 526, 15931, 628, 220, 220, 220, 3722, 796, 42313, 220, 1303, 2638, 3722, 628, 198, 4871, 8297, 32184, 39184, 17889, 7, 14254, 12331, 2599, 198, 220, 220, 220, 37227, 14254, 2705, 357, 30342, 8, 2494, 4179, 20672, 532, 2882, 318, 939, 475, 645, 4028, 547, 6157, 416, 3009, 13, 628, 220, 220, 220, 770, 1724, 326, 262, 2836, 460, 470, 1620, 262, 2223, 757, 329, 379, 1551, 262, 1306, 1987, 2250, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 1208, 628, 198, 4871, 14190, 7085, 14291, 7, 14254, 12331, 2599, 198, 220, 220, 220, 37227, 14254, 1351, 561, 423, 1165, 867, 1866, 526, 15931, 628, 220, 220, 220, 1208, 628, 198, 4871, 12169, 14291, 7, 14254, 12331, 2599, 198, 220, 220, 220, 37227, 14254, 1351, 561, 423, 6632, 1866, 526, 15931, 628, 220, 220, 220, 1208, 628, 198, 4871, 11787, 3673, 14291, 21745, 7, 14254, 12331, 2599, 198, 220, 220, 220, 37227, 11297, 2836, 2125, 470, 1708, 262, 2496, 2836, 526, 15931, 628, 220, 220, 220, 1208, 198 ]
2.640951
4,835
#snake_case #camelCase #StudlyCase #kebab-case o slug # Clase A # Clase B # Clase C # Cliente utiliza Clase A o un contenedor con objetos tipo Clase A # e.g. lista = [] de solo tipo Clase A from typing import List class Grupo: """docstring for Banda""" class GrupoMusical(Grupo): """docstring for Banda""" class GrupoBaile(Grupo): """docstring for Banda""" integrantes = ['Ana', 'Claudia', 'Sleiman', 'Irving', 'Raul'] grupo = Grupo(nombre="Diseรฑo y Arquitectura de Software Sistemas UAdeC", integrantes=integrantes[:]) #print(grupo.agregarIntegrante('Carielo').getPropiedades()) grupoMusical = GrupoMusical(nombre="Los Misticos", integrantes=integrantes[:], genero='metal') #print(grupoMusical.getPropiedades()) grupoBaile = GrupoBaile(nombre="Los Danzoneros", integrantes=integrantes[:], categoria='flamenco') #print(grupoBaile.getPropiedades()) grupos = [grupo] # type: List[Grupo] grupos.append(grupoMusical) grupos.append(grupoBaile) for grupo in grupos: if type(grupo) is GrupoMusical: print(grupo.retornaX()) else: print(type(grupo))
[ 2, 16184, 539, 62, 7442, 198, 2, 66, 17983, 20448, 198, 2, 13007, 306, 20448, 198, 2, 365, 65, 397, 12, 7442, 267, 31065, 198, 198, 2, 1012, 589, 317, 198, 220, 220, 220, 1303, 1012, 589, 347, 198, 220, 220, 220, 1303, 1012, 589, 327, 198, 198, 2, 20985, 68, 7736, 23638, 1012, 589, 317, 267, 555, 542, 2945, 273, 369, 26181, 316, 418, 8171, 78, 1012, 589, 317, 198, 2, 304, 13, 70, 13, 1351, 64, 796, 17635, 390, 12199, 8171, 78, 1012, 589, 317, 198, 198, 6738, 19720, 1330, 7343, 198, 198, 4871, 25665, 7501, 25, 628, 220, 220, 220, 37227, 15390, 8841, 329, 347, 5282, 37811, 628, 198, 4871, 25665, 7501, 10694, 605, 7, 38, 622, 7501, 2599, 628, 220, 220, 220, 37227, 15390, 8841, 329, 347, 5282, 37811, 198, 198, 4871, 25665, 7501, 34458, 576, 7, 38, 622, 7501, 2599, 628, 220, 220, 220, 37227, 15390, 8841, 329, 347, 5282, 37811, 628, 198, 18908, 5250, 274, 796, 37250, 2025, 64, 3256, 705, 2601, 3885, 544, 3256, 705, 50, 293, 24086, 3256, 705, 23820, 1075, 3256, 705, 49, 2518, 20520, 198, 48929, 7501, 796, 25665, 7501, 7, 77, 2381, 260, 2625, 35, 786, 31329, 331, 943, 421, 5712, 5330, 390, 10442, 311, 396, 368, 292, 471, 2782, 68, 34, 1600, 4132, 5250, 274, 28, 18908, 5250, 274, 58, 25, 12962, 198, 2, 4798, 7, 48929, 7501, 13, 363, 2301, 283, 34500, 5250, 68, 10786, 34, 2743, 22126, 27691, 1136, 24331, 798, 2367, 28955, 198, 198, 48929, 7501, 10694, 605, 796, 25665, 7501, 10694, 605, 7, 77, 2381, 260, 2625, 28903, 337, 2569, 418, 1600, 4132, 5250, 274, 28, 18908, 5250, 274, 58, 25, 4357, 1152, 78, 11639, 28469, 11537, 198, 2, 4798, 7, 48929, 7501, 10694, 605, 13, 1136, 24331, 798, 2367, 28955, 198, 198, 48929, 7501, 34458, 576, 796, 25665, 7501, 34458, 576, 7, 77, 2381, 260, 2625, 28903, 6035, 89, 14491, 418, 1600, 4132, 5250, 274, 28, 18908, 5250, 274, 58, 25, 4357, 4253, 7661, 11639, 69, 2543, 268, 1073, 11537, 198, 2, 4798, 7, 48929, 7501, 34458, 576, 13, 1136, 24331, 798, 2367, 28955, 198, 198, 48929, 1930, 796, 685, 48929, 7501, 60, 1303, 2099, 25, 7343, 58, 38, 622, 7501, 60, 198, 48929, 1930, 13, 33295, 7, 48929, 7501, 10694, 605, 8, 198, 48929, 1930, 13, 33295, 7, 48929, 7501, 34458, 576, 8, 198, 198, 1640, 22848, 7501, 287, 22848, 1930, 25, 198, 220, 220, 220, 611, 2099, 7, 48929, 7501, 8, 318, 25665, 7501, 10694, 605, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 48929, 7501, 13, 1186, 1211, 64, 55, 28955, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 4906, 7, 48929, 7501, 4008, 198 ]
2.414474
456
from gym import spaces import numpy as np from scipy import interpolate import yaml from navrep.envs.navreptrainenv import NavRepTrainEnv from navrep.rosnav_models.utils.reward import RewardCalculator from navrep.rosnav_models.utils.reward import RewardCalculator class RosnavTrainEncodedEnv(NavRepTrainEnv): """ takes a (2) action as input outputs encoded obs (546) """ def setup_by_configuration( self, robot_yaml_path ): """get the configuration from the yaml file, including robot radius, discrete action space and continuous action space. Args: linear_range linear_ranger): [description] """ with open(robot_yaml_path, "r") as fd: robot_data = yaml.safe_load(fd) # get robot radius for body in robot_data["bodies"]: if body["name"] == "base_footprint": for footprint in body["footprints"]: if footprint["radius"]: self._robot_radius = footprint["radius"] * 1.05 # get laser related information for plugin in robot_data["plugins"]: if plugin["type"] == "Laser": laser_angle_min = plugin["angle"]["min"] laser_angle_max = plugin["angle"]["max"] laser_angle_increment = plugin["angle"]["increment"] self.laser_range = plugin["range"] self._laser_num_beams = int( round( (laser_angle_max - laser_angle_min) / laser_angle_increment ) + 1 ) self._laser_max_range = plugin["range"] self.linear_range = robot_data["robot"]["continuous_actions"]["linear_range"] self.angular_range = robot_data["robot"]["continuous_actions"]["angular_range"] @staticmethod
[ 6738, 11550, 1330, 9029, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 39555, 378, 198, 11748, 331, 43695, 198, 198, 6738, 6812, 7856, 13, 268, 14259, 13, 28341, 260, 457, 3201, 24330, 1330, 13244, 6207, 44077, 4834, 85, 198, 6738, 6812, 7856, 13, 4951, 28341, 62, 27530, 13, 26791, 13, 260, 904, 1330, 32307, 9771, 3129, 1352, 198, 198, 6738, 6812, 7856, 13, 4951, 28341, 62, 27530, 13, 26791, 13, 260, 904, 1330, 32307, 9771, 3129, 1352, 198, 198, 4871, 10018, 28341, 44077, 27195, 9043, 4834, 85, 7, 30575, 6207, 44077, 4834, 85, 2599, 198, 220, 220, 220, 37227, 2753, 257, 357, 17, 8, 2223, 355, 5128, 198, 220, 220, 220, 23862, 30240, 10201, 357, 49489, 8, 37227, 628, 220, 220, 220, 825, 9058, 62, 1525, 62, 11250, 3924, 7, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 9379, 62, 88, 43695, 62, 6978, 198, 220, 220, 220, 15179, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 1136, 262, 8398, 422, 262, 331, 43695, 2393, 11, 1390, 9379, 16874, 11, 28810, 2223, 2272, 290, 12948, 2223, 2272, 13, 628, 220, 220, 220, 220, 220, 220, 220, 943, 14542, 25, 14174, 62, 9521, 198, 29127, 62, 81, 2564, 2599, 685, 11213, 60, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 351, 1280, 7, 305, 13645, 62, 88, 43695, 62, 6978, 11, 366, 81, 4943, 355, 277, 67, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9379, 62, 7890, 796, 331, 43695, 13, 21230, 62, 2220, 7, 16344, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 651, 9379, 16874, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1767, 287, 9379, 62, 7890, 14692, 65, 5042, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1767, 14692, 3672, 8973, 6624, 366, 8692, 62, 5898, 4798, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 24713, 287, 1767, 14692, 5898, 17190, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 24713, 14692, 42172, 1, 5974, 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, 2116, 13557, 305, 13645, 62, 42172, 796, 24713, 14692, 42172, 8973, 1635, 352, 13, 2713, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 651, 12855, 3519, 1321, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 13877, 287, 9379, 62, 7890, 14692, 37390, 1, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 13877, 14692, 4906, 8973, 6624, 366, 43, 6005, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12855, 62, 9248, 62, 1084, 796, 13877, 14692, 9248, 1, 7131, 1, 1084, 8973, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12855, 62, 9248, 62, 9806, 796, 13877, 14692, 9248, 1, 7131, 1, 9806, 8973, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12855, 62, 9248, 62, 24988, 434, 796, 13877, 14692, 9248, 1, 7131, 1, 24988, 434, 8973, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 75, 6005, 62, 9521, 796, 13877, 14692, 9521, 8973, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13557, 75, 6005, 62, 22510, 62, 1350, 4105, 796, 493, 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, 2835, 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, 357, 75, 6005, 62, 9248, 62, 9806, 532, 12855, 62, 9248, 62, 1084, 8, 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, 1220, 12855, 62, 9248, 62, 24988, 434, 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, 220, 220, 220, 220, 1343, 352, 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, 220, 220, 220, 220, 2116, 13557, 75, 6005, 62, 9806, 62, 9521, 796, 13877, 14692, 9521, 8973, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 29127, 62, 9521, 796, 9379, 62, 7890, 14692, 305, 13645, 1, 7131, 1, 18487, 5623, 62, 4658, 1, 7131, 1, 29127, 62, 9521, 8973, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 21413, 62, 9521, 796, 9379, 62, 7890, 14692, 305, 13645, 1, 7131, 1, 18487, 5623, 62, 4658, 1, 7131, 1, 21413, 62, 9521, 8973, 628, 220, 220, 220, 2488, 12708, 24396 ]
2.057292
960
from ehi_utils import load_json, dict2dotdict from mygraph import Graph_Int, Graph_Str import argparse import copy import pickle if __name__ == "__main__": parser = argparse.ArgumentParser(description="Parser feature file generator") parser.add_argument("--json_path", type=str, required=True,help="Path to the json config file") args = parser.parse_args() configs = load_json(args.json_path) main(dict2dotdict(configs))
[ 6738, 304, 5303, 62, 26791, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1330, 3440, 62, 17752, 11, 8633, 17, 26518, 11600, 198, 6738, 616, 34960, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1330, 29681, 62, 5317, 11, 29681, 62, 13290, 198, 11748, 1822, 29572, 198, 11748, 4866, 198, 11748, 2298, 293, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 30751, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 2625, 46677, 3895, 2393, 17301, 4943, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 7203, 438, 17752, 62, 6978, 1600, 2099, 28, 2536, 11, 2672, 28, 17821, 11, 16794, 2625, 15235, 284, 262, 33918, 4566, 2393, 4943, 198, 220, 220, 220, 26498, 796, 30751, 13, 29572, 62, 22046, 3419, 628, 220, 220, 220, 4566, 82, 796, 3440, 62, 17752, 7, 22046, 13, 17752, 62, 6978, 8, 198, 220, 220, 220, 1388, 7, 11600, 17, 26518, 11600, 7, 11250, 82, 4008 ]
2.732558
172
''' Demonstrates creating objects, object instancing, and object translation. ''' from pymxs import runtime as rt # pylint: disable=import-error INST = rt.Name("instance") def create_borg(obj, num, spacing): """Create a bunch of clones of the provided object""" for i in range(num): for j in range(num): for k in range(num): if i or j or k: point = rt.Point3(i * spacing, j * spacing, k * spacing) rt.MaxOps.CloneNodes(obj, cloneType=INST, offset=point) def main(): """Create a base object and turn it into a borg, whatever that is.""" obj = rt.sphere() obj.Radius = 2.0 create_borg(obj, 4, 5.0) main()
[ 7061, 6, 198, 220, 220, 220, 7814, 2536, 689, 4441, 5563, 11, 2134, 916, 5077, 11, 290, 2134, 11059, 13, 198, 7061, 6, 198, 6738, 279, 4948, 34223, 1330, 19124, 355, 374, 83, 1303, 279, 2645, 600, 25, 15560, 28, 11748, 12, 18224, 198, 198, 38604, 796, 374, 83, 13, 5376, 7203, 39098, 4943, 198, 198, 4299, 2251, 62, 23297, 7, 26801, 11, 997, 11, 31050, 2599, 198, 220, 220, 220, 37227, 16447, 257, 7684, 286, 32498, 286, 262, 2810, 2134, 37811, 198, 220, 220, 220, 329, 1312, 287, 2837, 7, 22510, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 329, 474, 287, 2837, 7, 22510, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 479, 287, 2837, 7, 22510, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1312, 393, 474, 393, 479, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 966, 796, 374, 83, 13, 12727, 18, 7, 72, 1635, 31050, 11, 474, 1635, 31050, 11, 479, 1635, 31050, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 83, 13, 11518, 41472, 13, 2601, 505, 45, 4147, 7, 26801, 11, 17271, 6030, 28, 38604, 11, 11677, 28, 4122, 8, 198, 198, 4299, 1388, 33529, 198, 220, 220, 220, 37227, 16447, 257, 2779, 2134, 290, 1210, 340, 656, 257, 275, 2398, 11, 4232, 326, 318, 526, 15931, 198, 220, 220, 220, 26181, 796, 374, 83, 13, 2777, 1456, 3419, 198, 220, 220, 220, 26181, 13, 15546, 3754, 796, 362, 13, 15, 198, 220, 220, 220, 2251, 62, 23297, 7, 26801, 11, 604, 11, 642, 13, 15, 8, 198, 198, 12417, 3419, 198 ]
2.338816
304
import willie @willie.module.commands('sandero')
[ 11748, 481, 494, 198, 198, 31, 10594, 494, 13, 21412, 13, 9503, 1746, 10786, 38142, 3529, 11537 ]
2.882353
17
import math import numpy as np import random import timeit from threading import Thread import functools dist_ar = [] # ๊ฑฐ๋ฆฌํ‘œ(global) # limit_time = 36 # ์ œํ•œ์‹œ๊ฐ„(global) cities_count = 0 # ๋„์‹œ ์ˆ˜(global) dots_list = [] # ๋„์‹œ ๋ฆฌ์ŠคํŠธ(global) # Hyper Parameter limits = (60) * 36 # ์ œํ•œ์‹œ๊ฐ„ MUT = 0.2 # ๋ณ€์ดํ™•๋ฅ  SEL = 0.85 # ์„ ํƒ์•• chrCOUNT = 50 # ํ•ด์ง‘๋‹จ ๋‚ด ์—ผ์ƒ‰์ฒด ๊ฐœ์ˆ˜ selCOUNT = 25 # selection์‹œ ์„ ํƒ๋˜๋Š” ์ƒ์œ„ ์—ผ์ƒ‰์ฒด์˜ ๊ฐœ์ˆ˜ # ์‹œ๊ฐ„์ œํ•œ ๋ฐ์ฝ”๋ ˆ์ดํ„ฐ # ๊ฑฐ๋ฆฌํ‘œ ์ œ์ž‘(param : ๋ฌธ์ œ ๊ฒฝ๋กœ) : dist_df # ๊ฑฐ๋ฆฌํ‘œ๋ฅผ ์ด์šฉํ•œ ์ ํ•ฉ๋„ ๋งค์นญ ํ•จ์ˆ˜ # 2opt-algorithm # 0 ~ ranges-1์˜ ๋ฒ”์œ„ ์ค‘ ๋‘ ๊ฐœ๋ฅผ ๋žœ๋ค์œผ๋กœ ์ƒ˜ํ”Œ๋งํ•ด์„œ list ๋ฆฌํ„ด @timeout(limits) try : start = timeit.default_timer() start_GA("2opt_dots/2opt_cycle100.in") stop = timeit.default_timer() print(stop - start) except : stop = timeit.default_timer() print(stop - start) ''' //์งˆ๋ฌธ 1. 36์ดˆ๋งŒ์— 200,000์„ธ๋Œ€๊นŒ์ง€ ๊ณ„์‚ฐํ•˜๋Š”๊ฑด ์–ด๋ ค์šด ์ผ(*GA_2์ฐจ๋ณด๊ณ ์„œ) ๊ฐ™์€๋ฐ... 36๋ถ„์ด ์•„๋‹Œ์ง€...? 2. population ์ „์ฒด์— 2opt๋ฅผ ์‹คํ–‰ํ•˜๋‹ˆ ์˜คํžˆ๋ ค ์ˆ˜๋ ด์„ ๋ชปํ•˜๋Š” ๊ฒฐ๊ณผ ๋ฐœ์ƒ... ํ•˜์œ„ *selCount๊ฐœ์˜ chromosome์— 2opt๋ฅผ ์‹œํ–‰ํ–ˆ๋”๋‹ˆ ๊ฒฐ๊ณผ๊ฐ€ ํ›จ์”ฌ ์ข‹์•˜์Œ. 2opt๋ฅผ ๊ฑฐ์นœ๋‹ค๊ณ ํ•ด์„œ fitness๊ฐ€ ๋ฌด์กฐ๊ฑด ์ข‹์•„์ง€๋Š” ๊ฒƒ์€ ์•„๋‹Œ๊ฒƒ์€ ์•Œ๊ฒ ๋Š”๋ฐ ์–ด๋–ป๊ฒŒ ์ ์šฉํ•ด์•ผ ๊ฐ€์žฅ ์ตœ์ ์ผ๊นŒ??? ex) ํ•˜์œ„ ๋ช‡ %๋งŒ ์ ์šฉ, ์ ์šฉ๊ณผ ๋ฏธ์ ์šฉ์„ ๋น„๊ตํ•ด์„œ ์ข‹์€ ๊ฒฝ์šฐ๋งŒ ๋Œ€์น˜ //์ด์Šˆ 1. python์—์„œ thread๋กœ ํ•จ์ˆ˜๋ฅผ ์ค‘๊ฐ„์— ์ฃฝ์ด๋Š”๊ฒŒ windows์—์„œ ์ผ๋ฐ˜์ ์œผ๋กœ ๋ถˆ๊ฐ€. ์‚ฝ์งˆ ๋„ˆ๋ฌด ๋งŽ์ด ํ–ˆ์Œ...ใ…  ๋ฐ์ฝ”๋ ˆ์ดํ„ฐ(?)๋ฅผ ๋งŒ๋“ค๊ณ  Thread.join (timeout) ๋ฉ”์„œ๋“œ๋ฅผ ์‚ฌ์šฉ. ์ฃฝ์ด๋Š” ๊ฒƒ์€ ์•„๋‹ˆ๋ผ์„œ ๋ฐฑ๊ทธ๋ผ์šด๋“œ์—์„œ ์‹คํ–‰ ์œ ์ง€. 2. ํŠน์ • ๋ฒ”์œ„ ๋‚ด์˜ ์ค‘๋ณต๋˜์ง€ ์•Š๋Š” ๋‘ ๊ฐœ์˜ ๋žœ๋ค์„ ๊ณจ๋ผ๋‚ด๋Š” ๊ฒƒ์—๋„ ์‚ฝ์งˆ ๋งŽ์ดํ•จ. 3. ์ฝ”๋“œ๋ฅผ ์ข€ ์ˆ˜์ •ํ•ด์„œ ๋ชจ๋“ˆํ™”๋ฅผ ์ง„ํ–‰ํ–ˆ์œผ๋‚˜ ๊ต์ˆ˜๋‹˜์ด ์ง€๋„ํ•ด์ฃผ์‹œ๊ธฐ์—” ์ข‹์ง€ ๋ชปํ•œ ๊ฒƒ ๊ฐ™์•„์„œ ๋‹ค์‹œ ํ•ฉ์นจ... //๋น„๊ต optGA : numpy + 2-opt GA numGA : numpy GA panGA : pandas GA ์‹œ๊ฐ„์ œํ•œ : 36s ํƒ€๊ฒŸ : 2opt_cycle100.in panGA : generation / fitness 356/2272 375/2349 381/2218 348/2553 381/2467 numGA : generation / fitness 1171/1836 1159/2005 1175/1812 1174/1947 1131/1931 optGA : generation / fitness 1141/1182 1142/1136 1126/1205 1128/1214 1142/1219 '''
[ 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 11748, 640, 270, 198, 6738, 4704, 278, 1330, 14122, 198, 11748, 1257, 310, 10141, 198, 198, 17080, 62, 283, 796, 17635, 1303, 220, 166, 109, 108, 167, 99, 105, 169, 239, 250, 7, 20541, 8, 198, 2, 4179, 62, 2435, 796, 4570, 1303, 23821, 254, 250, 47991, 250, 168, 233, 250, 166, 108, 226, 7, 20541, 8, 198, 66, 871, 62, 9127, 796, 657, 1303, 31619, 237, 226, 168, 233, 250, 23821, 230, 246, 7, 20541, 8, 198, 67, 1747, 62, 4868, 796, 17635, 1303, 31619, 237, 226, 168, 233, 250, 31619, 99, 105, 168, 232, 97, 169, 232, 116, 7, 20541, 8, 198, 198, 2, 15079, 25139, 2357, 198, 49196, 796, 357, 1899, 8, 1635, 4570, 1303, 23821, 254, 250, 47991, 250, 168, 233, 250, 166, 108, 226, 198, 44, 3843, 796, 657, 13, 17, 1303, 31619, 111, 222, 35975, 112, 169, 247, 243, 167, 98, 254, 198, 50, 3698, 796, 657, 13, 5332, 1303, 23821, 226, 254, 169, 225, 251, 168, 243, 243, 198, 354, 81, 34, 28270, 796, 2026, 1303, 220, 47991, 112, 168, 100, 239, 46695, 101, 31619, 224, 112, 23821, 245, 120, 168, 225, 231, 168, 110, 112, 220, 166, 108, 250, 168, 230, 246, 198, 741, 34, 28270, 796, 1679, 1303, 6356, 168, 233, 250, 23821, 226, 254, 169, 225, 251, 167, 238, 246, 167, 232, 242, 23821, 225, 223, 168, 250, 226, 23821, 245, 120, 168, 225, 231, 168, 110, 112, 35975, 246, 220, 166, 108, 250, 168, 230, 246, 198, 198, 2, 23821, 233, 250, 166, 108, 226, 168, 254, 250, 47991, 250, 31619, 235, 108, 168, 121, 242, 167, 254, 230, 35975, 112, 169, 226, 108, 198, 198, 2, 220, 166, 109, 108, 167, 99, 105, 169, 239, 250, 23821, 254, 250, 168, 252, 239, 7, 17143, 1058, 31619, 105, 116, 168, 254, 250, 220, 166, 110, 121, 167, 94, 250, 8, 1058, 1233, 62, 7568, 198, 198, 2, 220, 166, 109, 108, 167, 99, 105, 169, 239, 250, 167, 98, 120, 23821, 251, 112, 168, 248, 102, 47991, 250, 23821, 254, 223, 47991, 102, 167, 237, 226, 31619, 100, 97, 168, 117, 255, 220, 47991, 101, 168, 230, 246, 198, 198, 2, 362, 8738, 12, 282, 42289, 198, 198, 2, 657, 5299, 16069, 12, 16, 35975, 246, 31619, 110, 242, 168, 250, 226, 23821, 97, 239, 31619, 239, 238, 220, 166, 108, 250, 167, 98, 120, 31619, 252, 250, 167, 235, 97, 168, 250, 120, 167, 94, 250, 23821, 225, 246, 169, 242, 234, 167, 100, 223, 47991, 112, 168, 226, 250, 1351, 31619, 99, 105, 169, 226, 112, 198, 198, 31, 48678, 7, 49196, 8, 198, 198, 28311, 1058, 198, 220, 220, 220, 923, 796, 640, 270, 13, 12286, 62, 45016, 3419, 198, 220, 220, 220, 923, 62, 9273, 7203, 17, 8738, 62, 67, 1747, 14, 17, 8738, 62, 13696, 3064, 13, 259, 4943, 198, 220, 220, 220, 2245, 796, 640, 270, 13, 12286, 62, 45016, 3419, 198, 220, 220, 220, 3601, 7, 11338, 532, 923, 8, 198, 16341, 1058, 198, 220, 220, 220, 2245, 796, 640, 270, 13, 12286, 62, 45016, 3419, 198, 220, 220, 220, 3601, 7, 11338, 532, 923, 8, 628, 198, 7061, 6, 198, 1003, 168, 100, 230, 167, 105, 116, 198, 16, 13, 4570, 168, 112, 230, 167, 100, 234, 168, 245, 238, 939, 11, 830, 168, 226, 116, 167, 234, 222, 166, 117, 234, 168, 100, 222, 220, 166, 111, 226, 168, 224, 108, 47991, 246, 167, 232, 242, 166, 109, 112, 23821, 244, 112, 167, 254, 97, 168, 248, 112, 23821, 251, 120, 46491, 9273, 62, 17, 168, 108, 101, 167, 111, 112, 166, 111, 254, 168, 226, 250, 8, 220, 166, 108, 247, 35975, 222, 167, 235, 108, 986, 4570, 167, 114, 226, 35975, 112, 23821, 243, 226, 46695, 234, 168, 100, 222, 44825, 198, 17, 13, 3265, 23821, 254, 226, 168, 110, 112, 168, 245, 238, 362, 8738, 167, 98, 120, 23821, 233, 97, 169, 244, 231, 47991, 246, 46695, 230, 23821, 246, 97, 169, 252, 230, 167, 254, 97, 23821, 230, 246, 167, 254, 112, 35975, 226, 31619, 103, 119, 47991, 246, 167, 232, 242, 220, 166, 110, 108, 166, 111, 120, 31619, 108, 250, 168, 225, 251, 986, 220, 198, 220, 220, 220, 220, 47991, 246, 168, 250, 226, 1635, 741, 12332, 166, 108, 250, 35975, 246, 34348, 168, 245, 238, 362, 8738, 167, 98, 120, 23821, 233, 250, 169, 244, 231, 169, 244, 230, 167, 235, 242, 46695, 230, 220, 166, 110, 108, 166, 111, 120, 166, 108, 222, 220, 169, 249, 101, 168, 242, 105, 23821, 95, 233, 168, 243, 246, 35975, 234, 13, 198, 220, 220, 220, 362, 8738, 167, 98, 120, 220, 166, 109, 108, 168, 117, 250, 46695, 97, 166, 111, 254, 47991, 112, 168, 226, 250, 13547, 166, 108, 222, 31619, 105, 112, 168, 94, 108, 166, 109, 112, 23821, 95, 233, 168, 243, 226, 168, 100, 222, 167, 232, 242, 220, 166, 110, 225, 35975, 222, 23821, 243, 226, 46695, 234, 166, 110, 225, 35975, 222, 23821, 243, 234, 166, 110, 254, 167, 232, 242, 167, 235, 108, 23821, 244, 112, 167, 244, 119, 166, 110, 234, 23821, 254, 223, 168, 248, 102, 47991, 112, 168, 243, 120, 220, 166, 108, 222, 168, 252, 98, 23821, 113, 250, 168, 254, 223, 35975, 120, 166, 117, 234, 28358, 198, 220, 220, 220, 409, 8, 220, 47991, 246, 168, 250, 226, 31619, 103, 229, 4064, 167, 100, 234, 23821, 254, 223, 168, 248, 102, 11, 23821, 254, 223, 168, 248, 102, 166, 111, 120, 31619, 107, 116, 168, 254, 223, 168, 248, 102, 35975, 226, 31619, 117, 226, 166, 113, 238, 47991, 112, 168, 226, 250, 23821, 95, 233, 35975, 222, 220, 166, 110, 121, 168, 248, 108, 167, 100, 234, 31619, 234, 222, 168, 117, 246, 198, 198, 1003, 35975, 112, 168, 232, 230, 198, 16, 13, 21015, 168, 245, 238, 168, 226, 250, 4704, 167, 94, 250, 220, 47991, 101, 168, 230, 246, 167, 98, 120, 23821, 97, 239, 166, 108, 226, 168, 245, 238, 23821, 96, 121, 35975, 112, 167, 232, 242, 166, 110, 234, 9168, 168, 245, 238, 168, 226, 250, 23821, 251, 120, 167, 108, 246, 168, 254, 223, 168, 250, 120, 167, 94, 250, 31619, 114, 230, 166, 108, 222, 13, 23821, 224, 121, 168, 100, 230, 31619, 226, 230, 167, 105, 112, 31619, 100, 236, 35975, 112, 220, 169, 244, 230, 35975, 234, 986, 159, 227, 254, 198, 220, 220, 220, 31619, 235, 108, 168, 121, 242, 167, 254, 230, 35975, 112, 169, 226, 108, 7, 10091, 167, 98, 120, 31619, 100, 234, 167, 241, 97, 166, 111, 254, 14122, 13, 22179, 357, 48678, 8, 31619, 102, 242, 168, 226, 250, 167, 241, 250, 167, 98, 120, 23821, 8955, 168, 248, 102, 13, 220, 198, 220, 220, 220, 23821, 96, 121, 35975, 112, 167, 232, 242, 220, 166, 110, 225, 35975, 222, 23821, 243, 226, 46695, 230, 167, 251, 120, 168, 226, 250, 31619, 108, 109, 166, 115, 116, 167, 251, 120, 168, 248, 112, 167, 241, 250, 168, 245, 238, 168, 226, 250, 23821, 233, 97, 169, 244, 231, 23821, 250, 254, 168, 100, 222, 13, 198, 17, 13, 220, 169, 232, 117, 168, 254, 243, 31619, 110, 242, 168, 250, 226, 31619, 224, 112, 35975, 246, 23821, 97, 239, 167, 111, 113, 167, 238, 246, 168, 100, 222, 23821, 243, 232, 167, 232, 242, 31619, 239, 238, 220, 166, 108, 250, 35975, 246, 31619, 252, 250, 167, 235, 97, 35975, 226, 220, 166, 111, 101, 167, 251, 120, 167, 224, 112, 167, 232, 242, 220, 166, 110, 225, 168, 245, 238, 167, 237, 226, 23821, 224, 121, 168, 100, 230, 31619, 100, 236, 35975, 112, 47991, 101, 13, 198, 18, 13, 23821, 121, 242, 167, 241, 250, 167, 98, 120, 23821, 95, 222, 23821, 230, 246, 168, 254, 243, 47991, 112, 168, 226, 250, 31619, 103, 101, 167, 241, 230, 169, 247, 242, 167, 98, 120, 23821, 100, 226, 169, 244, 231, 169, 244, 230, 168, 250, 120, 167, 224, 246, 220, 166, 113, 238, 168, 230, 246, 46695, 246, 35975, 112, 23821, 100, 222, 167, 237, 226, 47991, 112, 168, 96, 120, 168, 233, 250, 166, 116, 108, 168, 245, 242, 23821, 95, 233, 168, 100, 222, 31619, 103, 119, 47991, 250, 220, 166, 110, 225, 220, 166, 108, 247, 168, 243, 226, 168, 226, 250, 31619, 233, 97, 168, 233, 250, 220, 47991, 102, 168, 117, 101, 986, 220, 198, 198, 1003, 167, 117, 226, 166, 113, 238, 198, 8738, 9273, 1058, 299, 32152, 1343, 362, 12, 8738, 14545, 198, 22510, 9273, 1058, 299, 32152, 14545, 198, 6839, 9273, 1058, 19798, 292, 14545, 198, 168, 233, 250, 166, 108, 226, 168, 254, 250, 47991, 250, 1058, 4570, 82, 198, 169, 225, 222, 166, 110, 253, 1058, 362, 8738, 62, 13696, 3064, 13, 259, 198, 198, 6839, 9273, 1058, 5270, 1220, 13547, 198, 220, 220, 220, 44552, 14, 1828, 4761, 198, 220, 220, 220, 29414, 14, 1954, 2920, 198, 220, 220, 220, 4353, 16, 14, 1828, 1507, 198, 220, 220, 220, 44084, 14, 1495, 4310, 198, 220, 220, 220, 4353, 16, 14, 1731, 3134, 198, 220, 220, 220, 220, 198, 22510, 9273, 1058, 5270, 1220, 13547, 198, 220, 220, 220, 1367, 4869, 14, 1507, 2623, 198, 220, 220, 220, 12279, 24, 14, 14315, 198, 220, 220, 220, 1367, 2425, 14, 1507, 1065, 198, 220, 220, 220, 1367, 4524, 14, 1129, 2857, 198, 220, 220, 220, 1367, 3132, 14, 1129, 3132, 198, 220, 220, 220, 220, 198, 8738, 9273, 1058, 5270, 1220, 13547, 198, 220, 220, 220, 1367, 3901, 14, 1157, 6469, 198, 220, 220, 220, 1367, 3682, 14, 1157, 2623, 198, 220, 220, 220, 13539, 21, 14, 1065, 2713, 198, 220, 220, 220, 352, 12762, 14, 1065, 1415, 198, 220, 220, 220, 1367, 3682, 14, 1065, 1129, 198, 7061, 6, 198 ]
1.033333
1,650
#!/usr/bin/env python3 if __name__ == "__main__": target = 999 answer = sum_divisible_upto(target, 3) + sum_divisible_upto(target, 5) - sum_divisible_upto(target, 3 * 5) print(answer)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 2496, 796, 36006, 198, 220, 220, 220, 3280, 796, 2160, 62, 7146, 12843, 62, 37623, 78, 7, 16793, 11, 513, 8, 1343, 2160, 62, 7146, 12843, 62, 37623, 78, 7, 16793, 11, 642, 8, 532, 2160, 62, 7146, 12843, 62, 37623, 78, 7, 16793, 11, 513, 1635, 642, 8, 198, 220, 220, 220, 3601, 7, 41484, 8, 198 ]
2.373494
83
import asyncio import json import logging from pathlib import Path from crawler.queues import UniqueQueue from crawler.scrapers import URLScraper logging.basicConfig( level=logging.INFO, format="%(asctime)s %(levelname)s: %(message)s", datefmt="%H:%M:%S", )
[ 11748, 30351, 952, 198, 11748, 33918, 198, 11748, 18931, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 27784, 1754, 13, 4188, 947, 1330, 30015, 34991, 198, 6738, 27784, 1754, 13, 1416, 2416, 364, 1330, 10289, 3351, 38545, 198, 198, 6404, 2667, 13, 35487, 16934, 7, 198, 220, 220, 220, 1241, 28, 6404, 2667, 13, 10778, 11, 198, 220, 220, 220, 5794, 2625, 4, 7, 292, 310, 524, 8, 82, 4064, 7, 5715, 3672, 8, 82, 25, 4064, 7, 20500, 8, 82, 1600, 198, 220, 220, 220, 3128, 69, 16762, 2625, 4, 39, 25, 4, 44, 25, 4, 50, 1600, 198, 8, 628 ]
2.650485
103
from pathlib import Path from alphafold.Data.Tools import utils from typing import Optional, Callable, Any, Mapping, Sequence
[ 6738, 3108, 8019, 1330, 10644, 198, 6738, 435, 746, 1878, 727, 13, 6601, 13, 33637, 1330, 3384, 4487, 198, 6738, 19720, 1330, 32233, 11, 4889, 540, 11, 4377, 11, 337, 5912, 11, 45835 ]
3.787879
33
"""Distributed simulation service. """ # Ensure .config is loaded - it sets up our Dask config. from .config import Config def create_app(**kws): """Create and return the simulation server Flask app. kws is passed to the SocketIO constructor. Also start up coroutines to periodically sync tasks and pack the ZODB database unless socketio.async_mode is 'threading', in which case only sync and pack once to avoid concurrency issues. async_mode can be forced by specifying it in kws, otherwise the Sockiet.IO library auto-detects and prefers Eventlet. We assume that greenthreads are safe against concurrency issues, in particular the standard library has not been monkey-patched. """ from urllib.parse import urljoin from flask_socketio import SocketIO from .tasks import TaskFlask from .auth import Auth from . import sockio, jobs, vars app = TaskFlask(__name__) app.config.from_object(Config) auth = Auth(app) p = app.config['SIMSVC_ROOT'] socketio = sockio.bind_socketio(app, path=urljoin(p, "socket.io"), **kws) app.register_blueprint(jobs.jobs_bp, url_prefix=urljoin(p, "jobs")) app.register_blueprint(vars.get_vars, url_prefix=urljoin(p, "default"), url_defaults={"vtype": "default", "job": None}) app.register_blueprint( vars.get_vars, url_prefix=urljoin(p, "jobs/<int:job>/<any(inputs, results):vtype>")) app.register_blueprint(vars.set_vars, url_prefix=urljoin(p, "default")) # As a side effect this ensures that app.db and app.client are created. # If either one is going to fail, we want to know now. app.logger.info("Connected to database %s", app.db.storage.getName()) cores = app.client.ncores() app.logger.info("%d workers with %d cores", len(cores), sum(cores.values())) if socketio.async_mode == 'threading': app.logger.info("Periodic sync & pack disabled; only doing once.") app.sync_tasks() app.db.pack(days=7) else: socketio.start_background_task(task_syncer) socketio.start_background_task(zodb_packer) return app
[ 37811, 20344, 6169, 18640, 2139, 13, 198, 37811, 198, 198, 2, 48987, 764, 11250, 318, 9639, 532, 340, 5621, 510, 674, 360, 2093, 4566, 13, 198, 6738, 764, 11250, 1330, 17056, 198, 198, 4299, 2251, 62, 1324, 7, 1174, 74, 18504, 2599, 198, 220, 220, 220, 37227, 16447, 290, 1441, 262, 18640, 4382, 46947, 598, 13, 198, 220, 220, 220, 220, 198, 220, 220, 220, 479, 18504, 318, 3804, 284, 262, 47068, 9399, 23772, 13, 198, 220, 220, 220, 220, 198, 220, 220, 220, 4418, 923, 510, 1162, 448, 1127, 284, 26034, 17510, 8861, 290, 2353, 262, 1168, 3727, 33, 198, 220, 220, 220, 6831, 4556, 17802, 952, 13, 292, 13361, 62, 14171, 318, 705, 16663, 278, 3256, 287, 543, 1339, 691, 17510, 198, 220, 220, 220, 290, 2353, 1752, 284, 3368, 1673, 13382, 2428, 13, 220, 30351, 62, 14171, 460, 307, 4137, 416, 198, 220, 220, 220, 31577, 340, 287, 479, 18504, 11, 4306, 262, 311, 735, 1155, 13, 9399, 5888, 8295, 12, 15255, 478, 82, 290, 198, 220, 220, 220, 26237, 8558, 1616, 13, 220, 775, 7048, 326, 10536, 7944, 40779, 389, 3338, 1028, 1673, 13382, 198, 220, 220, 220, 2428, 11, 287, 1948, 262, 3210, 5888, 468, 407, 587, 21657, 12, 8071, 1740, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 422, 2956, 297, 571, 13, 29572, 1330, 19016, 22179, 198, 220, 220, 220, 422, 42903, 62, 44971, 952, 1330, 47068, 9399, 628, 220, 220, 220, 422, 764, 83, 6791, 1330, 15941, 7414, 2093, 198, 220, 220, 220, 422, 764, 18439, 1330, 26828, 198, 220, 220, 220, 422, 764, 1330, 32263, 952, 11, 3946, 11, 410, 945, 628, 220, 220, 220, 598, 796, 15941, 7414, 2093, 7, 834, 3672, 834, 8, 198, 220, 220, 220, 598, 13, 11250, 13, 6738, 62, 15252, 7, 16934, 8, 628, 220, 220, 220, 6284, 796, 26828, 7, 1324, 8, 628, 220, 220, 220, 279, 796, 598, 13, 11250, 17816, 48913, 50, 15922, 62, 13252, 2394, 20520, 628, 220, 220, 220, 17802, 952, 796, 32263, 952, 13, 21653, 62, 44971, 952, 7, 1324, 11, 3108, 28, 6371, 22179, 7, 79, 11, 366, 44971, 13, 952, 12340, 12429, 74, 18504, 8, 628, 220, 220, 220, 598, 13, 30238, 62, 17585, 4798, 7, 43863, 13, 43863, 62, 46583, 11, 19016, 62, 40290, 28, 6371, 22179, 7, 79, 11, 366, 43863, 48774, 198, 220, 220, 220, 598, 13, 30238, 62, 17585, 4798, 7, 85, 945, 13, 1136, 62, 85, 945, 11, 19016, 62, 40290, 28, 6371, 22179, 7, 79, 11, 366, 12286, 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, 19016, 62, 12286, 82, 28, 4895, 85, 4906, 1298, 366, 12286, 1600, 366, 21858, 1298, 6045, 30072, 198, 220, 220, 220, 598, 13, 30238, 62, 17585, 4798, 7, 198, 220, 220, 220, 220, 220, 220, 220, 410, 945, 13, 1136, 62, 85, 945, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19016, 62, 40290, 28, 6371, 22179, 7, 79, 11, 366, 43863, 14, 27, 600, 25, 21858, 29, 14, 27, 1092, 7, 15414, 82, 11, 2482, 2599, 85, 4906, 24618, 4008, 198, 220, 220, 220, 598, 13, 30238, 62, 17585, 4798, 7, 85, 945, 13, 2617, 62, 85, 945, 11, 19016, 62, 40290, 28, 6371, 22179, 7, 79, 11, 366, 12286, 48774, 628, 220, 220, 220, 1303, 1081, 257, 1735, 1245, 428, 19047, 326, 598, 13, 9945, 290, 598, 13, 16366, 389, 2727, 13, 198, 220, 220, 220, 1303, 1002, 2035, 530, 318, 1016, 284, 2038, 11, 356, 765, 284, 760, 783, 13, 198, 220, 220, 220, 598, 13, 6404, 1362, 13, 10951, 7203, 13313, 276, 284, 6831, 4064, 82, 1600, 598, 13, 9945, 13, 35350, 13, 1136, 5376, 28955, 198, 220, 220, 220, 21758, 796, 598, 13, 16366, 13, 10782, 2850, 3419, 198, 220, 220, 220, 598, 13, 6404, 1362, 13, 10951, 7203, 4, 67, 3259, 351, 4064, 67, 21758, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18896, 7, 66, 2850, 828, 2160, 7, 66, 2850, 13, 27160, 3419, 4008, 628, 220, 220, 220, 611, 17802, 952, 13, 292, 13361, 62, 14171, 6624, 705, 16663, 278, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 598, 13, 6404, 1362, 13, 10951, 7203, 5990, 2101, 291, 17510, 1222, 2353, 10058, 26, 691, 1804, 1752, 19570, 198, 220, 220, 220, 220, 220, 220, 220, 598, 13, 27261, 62, 83, 6791, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 598, 13, 9945, 13, 8002, 7, 12545, 28, 22, 8, 198, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 17802, 952, 13, 9688, 62, 25249, 62, 35943, 7, 35943, 62, 28869, 2189, 8, 198, 220, 220, 220, 220, 220, 220, 220, 17802, 952, 13, 9688, 62, 25249, 62, 35943, 7, 89, 375, 65, 62, 8002, 263, 8, 628, 220, 220, 220, 1441, 598, 198 ]
2.634499
829
# Source : https://leetcode.com/problems/invert-binary-tree/ # Author : penpenps # Time : 2019-08-01 # BFS, iterative # Time Complexity: O(n), the number of tree's nodes # Space Complexity: O(n), the max node number by level # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None
[ 2, 8090, 1058, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 259, 1851, 12, 39491, 12, 21048, 14, 198, 2, 6434, 1058, 3112, 3617, 862, 198, 2, 3862, 220, 220, 1058, 13130, 12, 2919, 12, 486, 198, 198, 2, 347, 10652, 11, 11629, 876, 220, 198, 2, 3862, 19157, 414, 25, 440, 7, 77, 828, 262, 1271, 286, 5509, 338, 13760, 198, 2, 4687, 19157, 414, 25, 440, 7, 77, 828, 262, 3509, 10139, 1271, 416, 1241, 198, 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, 2124, 2599, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 2100, 796, 2124, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 9464, 796, 6045, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 3506, 796, 6045, 198, 220, 220, 220, 220 ]
2.459627
161
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.QuestInstanceDTO import QuestInstanceDTO
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 33918, 198, 198, 6738, 435, 541, 323, 13, 64, 404, 13, 15042, 13, 26209, 13, 2348, 541, 323, 31077, 1330, 978, 541, 323, 31077, 198, 6738, 435, 541, 323, 13, 64, 404, 13, 15042, 13, 27830, 13, 12166, 33384, 35, 10468, 1330, 6785, 33384, 35, 10468, 628 ]
2.732394
71
# ============================================================================== # Copyright (c) 2018, Yamagishi Laboratory, National Institute of Informatics # Author: Yusuke Yasuda ([email protected]) # All rights reserved. # ============================================================================== """ Models. """ import tensorflow as tf from tacotron.modules import Embedding from tacotron.tacotron_v1 import EncoderV1, DecoderV1 from tacotron.hooks import MetricsSaver, PostNetMetricsSaver from util.audio import Audio
[ 2, 38093, 25609, 28, 198, 2, 15069, 357, 66, 8, 2864, 11, 14063, 363, 21644, 18643, 11, 2351, 5136, 286, 554, 18982, 873, 198, 2, 6434, 25, 41749, 4649, 25957, 15339, 357, 88, 292, 15339, 31, 77, 4178, 13, 330, 13, 34523, 8, 198, 2, 1439, 2489, 10395, 13, 198, 2, 38093, 25609, 28, 198, 37811, 32329, 13, 37227, 198, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 26142, 313, 1313, 13, 18170, 1330, 13302, 6048, 278, 198, 6738, 26142, 313, 1313, 13, 83, 330, 313, 1313, 62, 85, 16, 1330, 14711, 12342, 53, 16, 11, 34580, 53, 16, 198, 6738, 26142, 313, 1313, 13, 25480, 82, 1330, 3395, 10466, 50, 8770, 11, 2947, 7934, 9171, 10466, 50, 8770, 198, 6738, 7736, 13, 24051, 1330, 13491, 628, 198 ]
4.124031
129
# -*- coding: utf-8 -*- from mirari.mirari.models import * from .vars import * ######################################################################################## ######################################################################################## VARS = { 'NAME':'Catรกlogo', 'PLURAL':'Catรกlogos', 'MODEL':'Catalogue', 'NEW':'NUEVO', 'NEW_GENDER': 'un nuevo', 'THIS': 'este', 'APP':APP, 'LIST': [ #{ #'field': 'code', #'title': 'Cรณdigo', #'width': '50', #'url': 'property_url_update' #}, { 'field': 'get_name_with_color', 'title': 'Nombre', 'template': '{{get_name_with_color}}', 'sortable': 'desc', 'url': 'url_update' }, { 'field': 'description', 'title': 'Descripciรณn', 'template': '<div class="kt-regular-font-size-sm5" style="line-height:15px;">{{property_get_description}}</div>', }, ], 'SERIALIZER': ('get_description','get_name_with_color'), 'SEARCH': ['name','code'], 'SORTEABLE': ['code'], 'SUMMERNOTE': ['description'], 'EXCLUDE_FORM': ['code','is_active','active','organization'], } ######################################################################################## ######################################################################################## VARS = { 'NAME':'Equipo', 'PLURAL':'Equipos', 'MODEL':'Team', 'NEW':'NUEVO', 'NEW_GENDER': 'un nuevo', 'THIS': 'este', 'APP':APP, 'LIST': [ { 'field': 'name', 'title': 'Nombre', 'url': 'property_url_update', 'width':'200', 'sorteable': True, 'serchable': True, }, { 'field': 'get_code', 'title': 'Cรณdigo', 'width':'200', }, { 'field': 'get_members', 'title': 'Miebros', 'template': '<div class="kt-regular-font-size-sm5" style="line-height:15px;">{{get_members}}</div>', }, ], 'SELECTQ': { 'members': { 'plugin': 'select2', }, }, } ######################################################################################## ######################################################################################## VARS = { 'NAME':'Manual', 'PLURAL':'Manuales', 'MODEL':'Handbook', 'NEW':'NUEVO', 'NEW_GENDER': 'un nuevo', 'THIS': 'este', 'APP':APP, 'LIST': [ { 'field': 'name', 'title': 'Nombre', 'template': """ <a href="{{file}}" target="_blank class="a-no"> {{name}} </a> """, 'url': 'url_update', 'sorteable': True, 'serchable': True, }, { 'field': 'get_notes', 'title': 'Notas', 'template': """ <small> {{get_notes}} </small> """, 'url': 'url_update', }, ], 'HIDE_BUTTONS_UPDATE': True, 'SUMMERNOTE': ['notes'], } ######################################################################################## ######################################################################################## VARS = { 'NAME':'Canal de comunicaciรณn', 'PLURAL':'Canales de comunicaciรณn', 'MODEL':'Channel', 'NEW':'NUEVO', 'NEW_GENDER': 'un nuevo', 'THIS': 'esta', 'APP':APP, 'LIST': [ { 'field': 'name', 'title': 'Nombre', }, { 'field': 'property_get_audience', 'title': 'Audiencia', }, { 'field': 'property_get_list_administrators', 'title': 'Administradores', }, ], 'SEARCH': ['title'], 'SELECTQ': { 'user_admin': { 'model': ['mirari','User'], 'plugin': 'selectmultiple', }, 'team_admin': { 'model': ['INT','Team'], 'plugin': 'selectmultiple', }, 'notify_user': { 'model': ['mirari','User'], 'plugin': 'selectmultiple', }, 'notify_team': { 'model': ['INT','Team'], 'plugin': 'selectmultiple', }, }, 'SORTEABLE': ['name'], } ####################################################################################### ####################################################################################### VARS = { 'NAME':'Notificaciรณn', 'PLURAL':'Notificaciones', 'MODEL':'Notification', 'NEW':'NUEVA', 'NEW_GENDER': 'una nueva', 'THIS': 'esta', 'APP':APP, 'LIST': [ { 'field': 'title', 'title': 'Tรญtulo', }, { 'field': 'get_channel', 'title': 'Canal', }, { 'field': 'get_creation_date', 'title': 'Creado', }, { 'field': 'get_expiration_date', 'title': 'Expira', }, { 'field': 'get_status', 'title': 'Estatus', }, ], 'FORM': ('channel','title','message','files','status','datetime_expire','hide_content',), 'SEARCH': ['name'], 'SELECTQ': { 'channel': { 'plugin': 'select2', }, }, 'SORTEABLE': ['creation_date'], 'SUMMERNOTE': ['message'], } @receiver(post_save, sender=Notification) ######################################################################################## ######################################################################################## VARS = { 'NAME':'Buzon Interno', 'PLURAL':'Buzones Internos', 'MODEL':'InternalMailBox', 'NEW':'NUEVO', 'NEW_GENDER': 'un nuevo', 'THIS': 'este', 'APP':APP, 'LIST': [ { 'field': 'name', 'title': 'Nombre', }, { 'field': 'emails', 'title': 'Destino', }, { 'field': 'description', 'title': 'Descripciรณn', }, ], 'SELECTQ': { 'availability': { 'plugin': 'selectmultiple', }, }, } ######################################################################################## ######################################################################################## VARS = { 'NAME':'Email de Buzon Interno', 'PLURAL':'Emails Buzones Internos', 'MODEL':'InternalMailBox_Mail', 'NEW':'NUEVO', 'NEW_GENDER': 'un nuevo', 'THIS': 'este', 'APP':APP, 'SUMMERNOTE': ['message'], 'FORM': [ Div( HTML('<div class="m--margin-bottom-10"><span>El mail que envies no se almacena y nos aseguramos que solo sea leido por los destinatarios del buzรณn</span></div>'), Div('message'), css_class="col-md-12" ), ], 'FORM_SIZE': 'col-xl-12', 'SUBMIT_BUTTONS': "InternalMailBox_Mail__SUBMIT_BUTTONS.html", 'EXCLUDE_PERMISSIONS': ['all'], }
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 5720, 2743, 13, 10793, 2743, 13, 27530, 1330, 1635, 198, 6738, 764, 85, 945, 1330, 1635, 628, 198, 29113, 29113, 14468, 7804, 198, 29113, 29113, 14468, 7804, 198, 53, 27415, 796, 1391, 198, 220, 220, 220, 705, 20608, 10354, 6, 21979, 6557, 6404, 78, 3256, 198, 220, 220, 220, 705, 6489, 4261, 1847, 10354, 6, 21979, 6557, 6404, 418, 3256, 198, 220, 220, 220, 705, 33365, 3698, 10354, 6, 39075, 5119, 3256, 198, 220, 220, 220, 705, 13965, 10354, 6, 45, 8924, 29516, 3256, 198, 220, 220, 220, 705, 13965, 62, 38, 10619, 1137, 10354, 705, 403, 299, 518, 13038, 3256, 198, 220, 220, 220, 705, 43559, 10354, 705, 29872, 3256, 198, 220, 220, 220, 705, 24805, 10354, 24805, 11, 198, 220, 220, 220, 705, 45849, 10354, 685, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 90, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 6, 3245, 10354, 705, 8189, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 6, 7839, 10354, 705, 34, 10205, 12894, 78, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 6, 10394, 10354, 705, 1120, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 6, 6371, 10354, 705, 26745, 62, 6371, 62, 19119, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 5512, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 1136, 62, 3672, 62, 4480, 62, 8043, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 45, 2381, 260, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 28243, 10354, 705, 27007, 1136, 62, 3672, 62, 4480, 62, 8043, 11709, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 30619, 540, 10354, 705, 20147, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 6371, 10354, 705, 6371, 62, 19119, 6, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 11213, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 24564, 5528, 979, 18840, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 28243, 10354, 705, 27, 7146, 1398, 2625, 21841, 12, 16338, 12, 10331, 12, 7857, 12, 5796, 20, 1, 3918, 2625, 1370, 12, 17015, 25, 1314, 8416, 26, 5320, 27007, 26745, 62, 1136, 62, 11213, 11709, 3556, 7146, 29, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 16589, 198, 220, 220, 220, 705, 35009, 12576, 14887, 1137, 10354, 19203, 1136, 62, 11213, 41707, 1136, 62, 3672, 62, 4480, 62, 8043, 33809, 198, 220, 220, 220, 705, 5188, 31315, 10354, 37250, 3672, 41707, 8189, 6, 4357, 198, 220, 220, 220, 705, 50, 1581, 9328, 17534, 10354, 37250, 8189, 6, 4357, 198, 220, 220, 220, 705, 50, 5883, 29296, 16580, 10354, 37250, 11213, 6, 4357, 198, 220, 220, 220, 705, 6369, 5097, 52, 7206, 62, 21389, 10354, 37250, 8189, 41707, 271, 62, 5275, 41707, 5275, 41707, 9971, 1634, 6, 4357, 198, 92, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 628, 198, 29113, 29113, 14468, 7804, 198, 29113, 29113, 14468, 7804, 198, 53, 27415, 796, 1391, 198, 220, 220, 220, 705, 20608, 10354, 6, 23588, 541, 78, 3256, 198, 220, 220, 220, 705, 6489, 4261, 1847, 10354, 6, 23588, 541, 418, 3256, 198, 220, 220, 220, 705, 33365, 3698, 10354, 6, 15592, 3256, 198, 220, 220, 220, 705, 13965, 10354, 6, 45, 8924, 29516, 3256, 198, 220, 220, 220, 705, 13965, 62, 38, 10619, 1137, 10354, 705, 403, 299, 518, 13038, 3256, 198, 220, 220, 220, 705, 43559, 10354, 705, 29872, 3256, 198, 220, 220, 220, 705, 24805, 10354, 24805, 11, 198, 220, 220, 220, 705, 45849, 10354, 685, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 3672, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 45, 2381, 260, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 6371, 10354, 705, 26745, 62, 6371, 62, 19119, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 10394, 10354, 6, 2167, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 30619, 68, 540, 10354, 6407, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 2655, 354, 540, 10354, 6407, 11, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 1136, 62, 8189, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 34, 10205, 12894, 78, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 10394, 10354, 6, 2167, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 1136, 62, 30814, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 44, 494, 65, 4951, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 28243, 10354, 705, 27, 7146, 1398, 2625, 21841, 12, 16338, 12, 10331, 12, 7857, 12, 5796, 20, 1, 3918, 2625, 1370, 12, 17015, 25, 1314, 8416, 26, 5320, 27007, 1136, 62, 30814, 11709, 3556, 7146, 29, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 16589, 198, 220, 220, 220, 705, 46506, 48, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 30814, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 33803, 10354, 705, 19738, 17, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 8964, 198, 92, 628, 198, 29113, 29113, 14468, 7804, 198, 29113, 29113, 14468, 7804, 198, 53, 27415, 796, 1391, 198, 220, 220, 220, 705, 20608, 10354, 6, 5124, 723, 3256, 198, 220, 220, 220, 705, 6489, 4261, 1847, 10354, 6, 5124, 723, 274, 3256, 198, 220, 220, 220, 705, 33365, 3698, 10354, 6, 12885, 2070, 3256, 198, 220, 220, 220, 705, 13965, 10354, 6, 45, 8924, 29516, 3256, 198, 220, 220, 220, 705, 13965, 62, 38, 10619, 1137, 10354, 705, 403, 299, 518, 13038, 3256, 198, 220, 220, 220, 705, 43559, 10354, 705, 29872, 3256, 198, 220, 220, 220, 705, 24805, 10354, 24805, 11, 198, 220, 220, 220, 705, 45849, 10354, 685, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 3672, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 45, 2381, 260, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 28243, 10354, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 64, 13291, 2625, 27007, 7753, 11709, 1, 2496, 2625, 62, 27190, 1398, 2625, 64, 12, 3919, 5320, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22935, 3672, 11709, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7359, 64, 29, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13538, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 6371, 10354, 705, 6371, 62, 19119, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 30619, 68, 540, 10354, 6407, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 2655, 354, 540, 10354, 6407, 11, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 1136, 62, 17815, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 3673, 292, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 28243, 10354, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 17470, 29, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22935, 1136, 62, 17815, 11709, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7359, 17470, 29, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13538, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 6371, 10354, 705, 6371, 62, 19119, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 16589, 198, 220, 220, 220, 705, 39, 14114, 62, 47526, 11357, 50, 62, 16977, 10354, 6407, 11, 198, 220, 220, 220, 705, 50, 5883, 29296, 16580, 10354, 37250, 17815, 6, 4357, 198, 92, 198, 220, 220, 220, 220, 628, 198, 198, 29113, 29113, 14468, 7804, 198, 29113, 29113, 14468, 7804, 198, 53, 27415, 796, 1391, 198, 220, 220, 220, 705, 20608, 10354, 6, 6090, 282, 390, 401, 46903, 32009, 18840, 3256, 198, 220, 220, 220, 705, 6489, 4261, 1847, 10354, 6, 6090, 2040, 390, 401, 46903, 32009, 18840, 3256, 198, 220, 220, 220, 705, 33365, 3698, 10354, 6, 29239, 3256, 198, 220, 220, 220, 705, 13965, 10354, 6, 45, 8924, 29516, 3256, 198, 220, 220, 220, 705, 13965, 62, 38, 10619, 1137, 10354, 705, 403, 299, 518, 13038, 3256, 198, 220, 220, 220, 705, 43559, 10354, 705, 18059, 3256, 198, 220, 220, 220, 705, 24805, 10354, 24805, 11, 198, 220, 220, 220, 705, 45849, 10354, 685, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 3672, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 45, 2381, 260, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 26745, 62, 1136, 62, 3885, 1240, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 16353, 2013, 33743, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 26745, 62, 1136, 62, 4868, 62, 39081, 18942, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 41862, 6335, 2850, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 16589, 198, 220, 220, 220, 705, 5188, 31315, 10354, 37250, 7839, 6, 4357, 198, 220, 220, 220, 705, 46506, 48, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 7220, 62, 28482, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 19849, 10354, 37250, 10793, 2743, 41707, 12982, 6, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 33803, 10354, 705, 19738, 48101, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 705, 15097, 62, 28482, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 19849, 10354, 37250, 12394, 41707, 15592, 6, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 33803, 10354, 705, 19738, 48101, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 705, 1662, 1958, 62, 7220, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 19849, 10354, 37250, 10793, 2743, 41707, 12982, 6, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 33803, 10354, 705, 19738, 48101, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 705, 1662, 1958, 62, 15097, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 19849, 10354, 37250, 12394, 41707, 15592, 6, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 33803, 10354, 705, 19738, 48101, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 8964, 198, 220, 220, 220, 705, 50, 1581, 9328, 17534, 10354, 37250, 3672, 6, 4357, 198, 92, 628, 198, 198, 29113, 29113, 14468, 4242, 21017, 198, 29113, 29113, 14468, 4242, 21017, 198, 53, 27415, 796, 1391, 198, 220, 220, 220, 705, 20608, 10354, 6, 3673, 811, 32009, 18840, 3256, 198, 220, 220, 220, 705, 6489, 4261, 1847, 10354, 6, 3673, 811, 49443, 274, 3256, 198, 220, 220, 220, 705, 33365, 3698, 10354, 6, 3673, 2649, 3256, 198, 220, 220, 220, 705, 13965, 10354, 6, 45, 8924, 11731, 3256, 198, 220, 220, 220, 705, 13965, 62, 38, 10619, 1137, 10354, 705, 9613, 299, 518, 6862, 3256, 198, 220, 220, 220, 705, 43559, 10354, 705, 18059, 3256, 198, 220, 220, 220, 705, 24805, 10354, 24805, 11, 198, 220, 220, 220, 705, 45849, 10354, 685, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 7839, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 51, 8836, 83, 43348, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 1136, 62, 17620, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 6090, 282, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 1136, 62, 38793, 62, 4475, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 34, 961, 78, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 1136, 62, 1069, 10514, 62, 4475, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 3109, 4063, 64, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 1136, 62, 13376, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 36, 13376, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 16589, 198, 220, 220, 220, 705, 21389, 10354, 19203, 17620, 41707, 7839, 41707, 20500, 41707, 16624, 41707, 13376, 41707, 19608, 8079, 62, 1069, 5111, 41707, 24717, 62, 11299, 3256, 828, 198, 220, 220, 220, 705, 5188, 31315, 10354, 37250, 3672, 6, 4357, 198, 220, 220, 220, 705, 46506, 48, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 17620, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 33803, 10354, 705, 19738, 17, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 8964, 198, 220, 220, 220, 705, 50, 1581, 9328, 17534, 10354, 37250, 38793, 62, 4475, 6, 4357, 198, 220, 220, 220, 705, 50, 5883, 29296, 16580, 10354, 37250, 20500, 6, 4357, 198, 92, 198, 198, 31, 260, 39729, 7, 7353, 62, 21928, 11, 29788, 28, 3673, 2649, 8, 628, 198, 198, 29113, 29113, 14468, 7804, 198, 29113, 29113, 14468, 7804, 198, 53, 27415, 796, 1391, 198, 220, 220, 220, 705, 20608, 10354, 6, 33, 10277, 261, 2445, 78, 3256, 198, 220, 220, 220, 705, 6489, 4261, 1847, 10354, 6, 33, 10277, 1952, 2445, 418, 3256, 198, 220, 220, 220, 705, 33365, 3698, 10354, 6, 37693, 25804, 14253, 3256, 198, 220, 220, 220, 705, 13965, 10354, 6, 45, 8924, 29516, 3256, 198, 220, 220, 220, 705, 13965, 62, 38, 10619, 1137, 10354, 705, 403, 299, 518, 13038, 3256, 198, 220, 220, 220, 705, 43559, 10354, 705, 29872, 3256, 198, 220, 220, 220, 705, 24805, 10354, 24805, 11, 198, 220, 220, 220, 705, 45849, 10354, 685, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 3672, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 45, 2381, 260, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 368, 1768, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 24159, 2879, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3245, 10354, 705, 11213, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7839, 10354, 705, 24564, 5528, 979, 18840, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 16589, 198, 220, 220, 220, 705, 46506, 48, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 47274, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 33803, 10354, 705, 19738, 48101, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 8964, 198, 92, 628, 198, 198, 29113, 29113, 14468, 7804, 198, 29113, 29113, 14468, 7804, 198, 53, 27415, 796, 1391, 198, 220, 220, 220, 705, 20608, 10354, 6, 15333, 390, 9842, 26361, 2445, 78, 3256, 198, 220, 220, 220, 705, 6489, 4261, 1847, 10354, 6, 10161, 1768, 9842, 89, 1952, 2445, 418, 3256, 198, 220, 220, 220, 705, 33365, 3698, 10354, 6, 37693, 25804, 14253, 62, 25804, 3256, 198, 220, 220, 220, 705, 13965, 10354, 6, 45, 8924, 29516, 3256, 198, 220, 220, 220, 705, 13965, 62, 38, 10619, 1137, 10354, 705, 403, 299, 518, 13038, 3256, 198, 220, 220, 220, 705, 43559, 10354, 705, 29872, 3256, 198, 220, 220, 220, 705, 24805, 10354, 24805, 11, 198, 220, 220, 220, 705, 50, 5883, 29296, 16580, 10354, 37250, 20500, 6, 4357, 198, 220, 220, 220, 705, 21389, 10354, 685, 198, 220, 220, 220, 220, 220, 220, 220, 4777, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11532, 10786, 27, 7146, 1398, 2625, 76, 438, 36153, 12, 22487, 12, 940, 22039, 12626, 29, 9527, 6920, 8358, 17365, 444, 645, 384, 435, 20285, 8107, 331, 43630, 257, 325, 45073, 321, 418, 8358, 12199, 5417, 443, 17305, 16964, 22346, 2244, 259, 265, 13010, 1619, 809, 89, 18840, 3556, 12626, 12240, 7146, 29, 33809, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4777, 10786, 20500, 33809, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 824, 62, 4871, 2625, 4033, 12, 9132, 12, 1065, 1, 198, 220, 220, 220, 220, 220, 220, 220, 10612, 198, 220, 220, 220, 16589, 198, 220, 220, 220, 705, 21389, 62, 33489, 10354, 705, 4033, 12, 87, 75, 12, 1065, 3256, 198, 220, 220, 220, 705, 50, 10526, 36393, 62, 47526, 11357, 50, 10354, 366, 37693, 25804, 14253, 62, 25804, 834, 50, 10526, 36393, 62, 47526, 11357, 50, 13, 6494, 1600, 198, 220, 220, 220, 705, 6369, 5097, 52, 7206, 62, 18973, 44, 16744, 11053, 10354, 37250, 439, 6, 4357, 198, 92 ]
2.066723
3,522
# coding: utf-8 import os import itertools import torch from tqdm import tqdm import numpy as np import toolz as tz import napari from napari.qt import thread_worker from skimage.exposure import rescale_intensity from . import unet from . import watershed as ws u_state_fn = os.path.join( os.path.dirname(__file__), 'data/unet-210525-zyxmc.pt' ) u = unet.UNet(in_channels=1, out_channels=5) IGNORE_CUDA = False map_location = torch.device('cpu') # for loading the pre-existing unet if torch.cuda.is_available() and not IGNORE_CUDA: u.cuda() map_location=None u.load_state_dict( torch.load(u_state_fn, map_location=map_location) ) @tz.curry def throttle_function(func, every_n=1000): """Return a copy of function that only runs every n calls. This is useful when attaching a slow callback to a frequent event. Parameters ---------- func : callable The input function. every_n : int Number of ignored calls before letting another call through. """ counter = 0 return throttled if __name__ == '__main__': import nd2_dask as nd2 #data_fn = '/data/platelets/200519_IVMTR69_Inj4_dmso_exp3.nd2' data_fn = os.path.expanduser( '~/Dropbox/share-files/200519_IVMTR69_Inj4_dmso_exp3.nd2' ) layer_list = nd2.nd2_reader.nd2_reader(data_fn) t_idx = 114 source_vol = layer_list[2][0] vol2predict = rescale_intensity( np.asarray(source_vol[t_idx]) ).astype(np.float32) prediction_output = np.zeros((5,) + vol2predict.shape, dtype=np.float32) size = (10, 256, 256) chunk_starts, chunk_crops = make_chunks(vol2predict.shape, size, (1, 0, 0)) viewer = napari.Viewer(ndisplay=3) l0 = viewer._add_layer_from_data(*layer_list[0])[0] l1 = viewer._add_layer_from_data(*layer_list[1])[0] l2 = viewer._add_layer_from_data(*layer_list[2])[0] offsets = -0.5 * np.asarray(l0.scale)[-3:] * np.eye(5, 3) prediction_layers = viewer.add_image( prediction_output, channel_axis=0, name=['z-aff', 'y-aff', 'x-aff', 'mask', 'centroids'], scale=l0.scale[-3:], translate=list(np.asarray(l0.translate[-3:]) + offsets), colormap=['bop purple', 'bop orange', 'bop orange', 'gray', 'gray'], visible=[False, False, False, True, False], ) viewer.dims.set_point(0, t_idx) labels = np.pad( np.zeros(prediction_output.shape[1:], dtype=np.uint32), 1, mode='constant', constant_values=0, ) labels_layer = viewer.add_labels( labels[1:-1, 1:-1, 1:-1], name='watershed', scale=prediction_layers[-1].scale, translate=prediction_layers[-1].translate, ) # closure to connect to threadworker signal refresh_labels = throttle_function(labels_layer.refresh, every_n=10000) segment_worker = thread_worker( segment, connect={'yielded': refresh_labels} ) prediction_worker = thread_worker( predict_output_chunks, connect={ 'yielded': refresh_prediction_layers, 'returned': segment_worker }, ) prediction_worker(u, vol2predict, size, prediction_output, margin=0) napari.run()
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 11748, 28686, 198, 11748, 340, 861, 10141, 198, 11748, 28034, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2891, 89, 355, 256, 89, 198, 11748, 25422, 2743, 198, 6738, 25422, 2743, 13, 39568, 1330, 4704, 62, 28816, 198, 6738, 1341, 9060, 13, 1069, 26205, 1330, 6811, 1000, 62, 47799, 198, 198, 6738, 764, 1330, 555, 316, 198, 6738, 764, 1330, 42640, 355, 266, 82, 628, 198, 84, 62, 5219, 62, 22184, 796, 28686, 13, 6978, 13, 22179, 7, 198, 220, 220, 220, 220, 220, 220, 220, 28686, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 828, 705, 7890, 14, 403, 316, 12, 17, 13348, 1495, 12, 7357, 87, 23209, 13, 457, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 198, 84, 796, 555, 316, 13, 4944, 316, 7, 259, 62, 354, 8961, 28, 16, 11, 503, 62, 354, 8961, 28, 20, 8, 198, 16284, 6965, 62, 43633, 5631, 796, 10352, 198, 8899, 62, 24886, 796, 28034, 13, 25202, 10786, 36166, 11537, 220, 1303, 329, 11046, 262, 662, 12, 25687, 555, 316, 198, 361, 28034, 13, 66, 15339, 13, 271, 62, 15182, 3419, 290, 407, 28730, 6965, 62, 43633, 5631, 25, 198, 220, 220, 220, 334, 13, 66, 15339, 3419, 198, 220, 220, 220, 3975, 62, 24886, 28, 14202, 198, 84, 13, 2220, 62, 5219, 62, 11600, 7, 198, 220, 220, 220, 220, 220, 220, 220, 28034, 13, 2220, 7, 84, 62, 5219, 62, 22184, 11, 3975, 62, 24886, 28, 8899, 62, 24886, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 198, 31, 22877, 13, 66, 16682, 198, 4299, 29976, 62, 8818, 7, 20786, 11, 790, 62, 77, 28, 12825, 2599, 198, 220, 220, 220, 37227, 13615, 257, 4866, 286, 2163, 326, 691, 4539, 790, 299, 3848, 13, 628, 220, 220, 220, 770, 318, 4465, 618, 39550, 257, 3105, 23838, 284, 257, 10792, 1785, 13, 628, 220, 220, 220, 40117, 198, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 25439, 1058, 869, 540, 198, 220, 220, 220, 220, 220, 220, 220, 383, 5128, 2163, 13, 198, 220, 220, 220, 790, 62, 77, 1058, 493, 198, 220, 220, 220, 220, 220, 220, 220, 7913, 286, 9514, 3848, 878, 9616, 1194, 869, 832, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3753, 796, 657, 628, 220, 220, 220, 1441, 46692, 992, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1330, 299, 67, 17, 62, 67, 2093, 355, 299, 67, 17, 198, 220, 220, 220, 1303, 7890, 62, 22184, 796, 31051, 7890, 14, 6816, 5289, 14, 14315, 1129, 62, 3824, 44, 5446, 3388, 62, 818, 73, 19, 62, 36020, 568, 62, 11201, 18, 13, 358, 17, 6, 198, 220, 220, 220, 1366, 62, 22184, 796, 28686, 13, 6978, 13, 11201, 392, 7220, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 93, 14, 26932, 3524, 14, 20077, 12, 16624, 14, 14315, 1129, 62, 3824, 44, 5446, 3388, 62, 818, 73, 19, 62, 36020, 568, 62, 11201, 18, 13, 358, 17, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 7679, 62, 4868, 796, 299, 67, 17, 13, 358, 17, 62, 46862, 13, 358, 17, 62, 46862, 7, 7890, 62, 22184, 8, 628, 220, 220, 220, 256, 62, 312, 87, 796, 17342, 628, 220, 220, 220, 2723, 62, 10396, 796, 7679, 62, 4868, 58, 17, 7131, 15, 60, 198, 220, 220, 220, 2322, 17, 79, 17407, 796, 6811, 1000, 62, 47799, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45941, 13, 292, 18747, 7, 10459, 62, 10396, 58, 83, 62, 312, 87, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6739, 459, 2981, 7, 37659, 13, 22468, 2624, 8, 198, 220, 220, 220, 17724, 62, 22915, 796, 45941, 13, 9107, 418, 19510, 20, 35751, 1343, 2322, 17, 79, 17407, 13, 43358, 11, 288, 4906, 28, 37659, 13, 22468, 2624, 8, 628, 220, 220, 220, 2546, 796, 357, 940, 11, 17759, 11, 17759, 8, 198, 220, 220, 220, 16058, 62, 301, 5889, 11, 16058, 62, 19915, 862, 796, 787, 62, 354, 14125, 7, 10396, 17, 79, 17407, 13, 43358, 11, 2546, 11, 357, 16, 11, 657, 11, 657, 4008, 628, 220, 220, 220, 19091, 796, 25422, 2743, 13, 7680, 263, 7, 358, 271, 1759, 28, 18, 8, 198, 220, 220, 220, 300, 15, 796, 19091, 13557, 2860, 62, 29289, 62, 6738, 62, 7890, 46491, 29289, 62, 4868, 58, 15, 12962, 58, 15, 60, 198, 220, 220, 220, 300, 16, 796, 19091, 13557, 2860, 62, 29289, 62, 6738, 62, 7890, 46491, 29289, 62, 4868, 58, 16, 12962, 58, 15, 60, 198, 220, 220, 220, 300, 17, 796, 19091, 13557, 2860, 62, 29289, 62, 6738, 62, 7890, 46491, 29289, 62, 4868, 58, 17, 12962, 58, 15, 60, 628, 220, 220, 220, 49005, 796, 532, 15, 13, 20, 1635, 45941, 13, 292, 18747, 7, 75, 15, 13, 9888, 38381, 12, 18, 47715, 1635, 45941, 13, 25379, 7, 20, 11, 513, 8, 198, 220, 220, 220, 17724, 62, 75, 6962, 796, 19091, 13, 2860, 62, 9060, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17724, 62, 22915, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6518, 62, 22704, 28, 15, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 28, 17816, 89, 12, 2001, 3256, 705, 88, 12, 2001, 3256, 705, 87, 12, 2001, 3256, 705, 27932, 3256, 705, 1087, 305, 2340, 6, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5046, 28, 75, 15, 13, 9888, 58, 12, 18, 25, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15772, 28, 4868, 7, 37659, 13, 292, 18747, 7, 75, 15, 13, 7645, 17660, 58, 12, 18, 25, 12962, 1343, 49005, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 951, 579, 499, 28, 17816, 65, 404, 14032, 3256, 705, 65, 404, 10912, 3256, 705, 65, 404, 10912, 3256, 705, 44605, 3256, 705, 44605, 6, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7424, 41888, 25101, 11, 10352, 11, 10352, 11, 6407, 11, 10352, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 19091, 13, 67, 12078, 13, 2617, 62, 4122, 7, 15, 11, 256, 62, 312, 87, 8, 628, 628, 220, 220, 220, 14722, 796, 45941, 13, 15636, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45941, 13, 9107, 418, 7, 28764, 2867, 62, 22915, 13, 43358, 58, 16, 25, 4357, 288, 4906, 28, 37659, 13, 28611, 2624, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4235, 11639, 9979, 415, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6937, 62, 27160, 28, 15, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 14722, 62, 29289, 796, 19091, 13, 2860, 62, 23912, 1424, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14722, 58, 16, 21912, 16, 11, 352, 21912, 16, 11, 352, 21912, 16, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 11639, 41555, 704, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5046, 28, 28764, 2867, 62, 75, 6962, 58, 12, 16, 4083, 9888, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15772, 28, 28764, 2867, 62, 75, 6962, 58, 12, 16, 4083, 7645, 17660, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 198, 220, 220, 220, 1303, 16512, 284, 2018, 284, 4704, 28816, 6737, 628, 220, 220, 220, 14976, 62, 23912, 1424, 796, 29976, 62, 8818, 7, 23912, 1424, 62, 29289, 13, 5420, 3447, 11, 790, 62, 77, 28, 49388, 8, 198, 220, 220, 220, 10618, 62, 28816, 796, 4704, 62, 28816, 7, 198, 220, 220, 220, 220, 220, 220, 220, 10618, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2018, 34758, 6, 88, 1164, 276, 10354, 14976, 62, 23912, 1424, 92, 198, 220, 220, 220, 1267, 628, 220, 220, 220, 17724, 62, 28816, 796, 4704, 62, 28816, 7, 198, 220, 220, 220, 220, 220, 220, 220, 4331, 62, 22915, 62, 354, 14125, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2018, 34758, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 88, 1164, 276, 10354, 14976, 62, 28764, 2867, 62, 75, 6962, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 7783, 276, 10354, 10618, 62, 28816, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 1267, 198, 220, 220, 220, 17724, 62, 28816, 7, 84, 11, 2322, 17, 79, 17407, 11, 2546, 11, 17724, 62, 22915, 11, 10330, 28, 15, 8, 628, 220, 220, 220, 25422, 2743, 13, 5143, 3419, 198 ]
2.171392
1,552
''' 3. ๅˆฉ็”จmap()ๅ‡ฝๆ•ฐๅฐ†็”จๆˆท่พ“ๅ…ฅ็š„ไธ่ง„่Œƒ็š„่‹ฑๆ–‡ๅๅญ—,ๅ˜ไธบ้ฆ–ๅญ—ๆฏๅคงๅ†™,ๅ…ถไป–ๅญ—็ฌฆๅฐๅ†™็š„ๅฝขๅผ 1) ๅ‡ๅฎš็”จๆˆท่พ“ๅ…ฅ็š„ๆ˜ฏ["lambDA", โ€œLILYโ€, โ€œaliCeโ€] ''' l=["lambDA","LILY","aliCe"] print(list(map([i[:1].upper()+i[1:].lower()for i in l,l])))
[ 7061, 6, 198, 18, 13, 10263, 230, 102, 18796, 101, 8899, 3419, 49035, 121, 46763, 108, 49546, 18796, 101, 22755, 115, 164, 122, 241, 17739, 98, 21410, 38834, 164, 100, 226, 164, 234, 225, 21410, 164, 233, 109, 23877, 229, 28938, 235, 27764, 245, 11, 20998, 246, 10310, 118, 165, 99, 244, 27764, 245, 162, 107, 235, 32014, 37863, 247, 11, 17739, 114, 20015, 244, 27764, 245, 163, 105, 99, 22887, 237, 37863, 247, 21410, 37605, 95, 28156, 237, 198, 220, 220, 352, 8, 10263, 223, 229, 22522, 248, 18796, 101, 22755, 115, 164, 122, 241, 17739, 98, 21410, 42468, 14692, 2543, 65, 5631, 1600, 564, 250, 43, 33340, 447, 251, 11, 564, 250, 7344, 34, 68, 447, 251, 60, 198, 7061, 6, 198, 75, 28, 14692, 2543, 65, 5631, 2430, 43, 33340, 2430, 7344, 34, 68, 8973, 198, 4798, 7, 4868, 7, 8899, 26933, 72, 58, 25, 16, 4083, 45828, 3419, 10, 72, 58, 16, 25, 4083, 21037, 3419, 1640, 1312, 287, 300, 11, 75, 60, 22305, 197, 198 ]
1.082353
170
#103 # Time: O(n) # Space: O(n) # Given a binary tree, return the zigzag level order traversal of # its nodes' values. (ie, from left to right, then right to left # for the next level and alternate between). # # For example: # Given binary tree [3,9,20,null,null,15,7], # 3 # / \ # 9 20 # / \ # 15 7 # return its zigzag level order traversal as: # [ # [3], # [20,9], # [15,7] # ]
[ 2, 15197, 198, 198, 2, 3862, 25, 220, 440, 7, 77, 8, 198, 2, 4687, 25, 440, 7, 77, 8, 628, 198, 2, 11259, 257, 13934, 5509, 11, 1441, 262, 1976, 328, 50183, 1241, 1502, 33038, 282, 286, 220, 198, 2, 663, 13760, 6, 3815, 13, 357, 494, 11, 422, 1364, 284, 826, 11, 788, 826, 284, 1364, 220, 198, 2, 329, 262, 1306, 1241, 290, 13527, 1022, 737, 198, 2, 198, 2, 1114, 1672, 25, 198, 2, 11259, 13934, 5509, 685, 18, 11, 24, 11, 1238, 11, 8423, 11, 8423, 11, 1314, 11, 22, 4357, 198, 2, 220, 220, 220, 220, 513, 198, 2, 220, 220, 220, 1220, 3467, 198, 2, 220, 220, 860, 220, 1160, 198, 2, 220, 220, 220, 220, 1220, 220, 3467, 198, 2, 220, 220, 220, 1315, 220, 220, 767, 198, 2, 1441, 663, 1976, 328, 50183, 1241, 1502, 33038, 282, 355, 25, 198, 2, 685, 198, 2, 220, 220, 685, 18, 4357, 198, 2, 220, 220, 685, 1238, 11, 24, 4357, 198, 2, 220, 220, 685, 1314, 11, 22, 60, 198, 2, 2361, 628 ]
2.294444
180
from setuptools import setup setup( name="electrum-server-cesc", version="1.0.20160803", scripts=['run_electrum_server_cesc','electrum-server-cesc'], install_requires=['plyvel','jsonrpclib', 'irc >= 11, <=14.0'], package_dir={ 'electrumservercesc':'src' }, py_modules=[ 'electrumservercesc.__init__', 'electrumservercesc.utils', 'electrumservercesc.storage', 'electrumservercesc.deserialize', 'electrumservercesc.networks', 'electrumservercesc.blockchain_processor', 'electrumservercesc.server_processor', 'electrumservercesc.processor', 'electrumservercesc.version', 'electrumservercesc.ircthread', 'electrumservercesc.stratum_tcp' ], description="Cryptoescudo Electrum Server", author="Marcdnd", author_email="[email protected]", license="MIT Licence", url="https://github.com/Marcdnd/electrum-server-cesc/", long_description="""Server for the Electrum Lightweight Cryptoescudo Wallet""" )
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 9509, 6582, 12, 15388, 12, 728, 66, 1600, 220, 198, 220, 220, 220, 2196, 2625, 16, 13, 15, 13, 1264, 1899, 43564, 1600, 198, 220, 220, 220, 14750, 28, 17816, 5143, 62, 9509, 6582, 62, 15388, 62, 728, 66, 41707, 9509, 6582, 12, 15388, 12, 728, 66, 6, 4357, 198, 220, 220, 220, 2721, 62, 47911, 28, 17816, 2145, 626, 41707, 17752, 81, 79, 565, 571, 3256, 705, 1980, 18189, 1367, 11, 19841, 1415, 13, 15, 6, 4357, 198, 220, 220, 220, 5301, 62, 15908, 34758, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9509, 6582, 15388, 728, 66, 10354, 6, 10677, 6, 198, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 12972, 62, 18170, 41888, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9509, 6582, 15388, 728, 66, 13, 834, 15003, 834, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9509, 6582, 15388, 728, 66, 13, 26791, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9509, 6582, 15388, 728, 66, 13, 35350, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9509, 6582, 15388, 728, 66, 13, 8906, 48499, 1096, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9509, 6582, 15388, 728, 66, 13, 3262, 5225, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9509, 6582, 15388, 728, 66, 13, 9967, 7983, 62, 41341, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9509, 6582, 15388, 728, 66, 13, 15388, 62, 41341, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9509, 6582, 15388, 728, 66, 13, 41341, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9509, 6582, 15388, 728, 66, 13, 9641, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9509, 6582, 15388, 728, 66, 13, 343, 310, 71, 961, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 705, 9509, 6582, 15388, 728, 66, 13, 2536, 21307, 62, 83, 13155, 6, 198, 220, 220, 220, 16589, 198, 220, 220, 220, 6764, 2625, 23919, 3028, 66, 12003, 5903, 6582, 9652, 1600, 198, 220, 220, 220, 1772, 2625, 22697, 67, 358, 1600, 198, 220, 220, 220, 1772, 62, 12888, 2625, 3876, 10210, 358, 31, 14816, 13, 785, 1600, 198, 220, 220, 220, 5964, 2625, 36393, 10483, 594, 1600, 198, 220, 220, 220, 19016, 2625, 5450, 1378, 12567, 13, 785, 14, 22697, 67, 358, 14, 9509, 6582, 12, 15388, 12, 728, 66, 14, 1600, 198, 220, 220, 220, 890, 62, 11213, 2625, 15931, 10697, 329, 262, 5903, 6582, 4401, 6551, 15126, 3028, 66, 12003, 37249, 37811, 198, 8, 198 ]
2.35426
446
from pandac.PandaModules import * from toontown.toonbase.ToontownGlobals import * from direct.interval.IntervalGlobal import * from direct.fsm import ClassicFSM, State from toontown.safezone import SafeZoneLoader import random from toontown.launcher import DownloadForceAcknowledge import House import Estate import HouseGlobals import random import math from toontown.coghq import MovingPlatform from direct.directnotify import DirectNotifyGlobal
[ 6738, 19798, 330, 13, 47, 5282, 5841, 5028, 1330, 1635, 198, 6738, 284, 756, 593, 13, 1462, 261, 8692, 13, 2514, 756, 593, 9861, 672, 874, 1330, 1635, 198, 6738, 1277, 13, 3849, 2100, 13, 9492, 2100, 22289, 1330, 1635, 198, 6738, 1277, 13, 69, 5796, 1330, 13449, 10652, 44, 11, 1812, 198, 6738, 284, 756, 593, 13, 49585, 8471, 505, 1330, 19978, 26961, 17401, 198, 11748, 4738, 198, 6738, 284, 756, 593, 13, 38722, 2044, 1330, 10472, 10292, 32, 5319, 2965, 198, 11748, 2097, 198, 11748, 23015, 198, 11748, 2097, 9861, 672, 874, 198, 11748, 4738, 198, 11748, 10688, 198, 6738, 284, 756, 593, 13, 1073, 456, 80, 1330, 26768, 37148, 198, 6738, 1277, 13, 12942, 1662, 1958, 1330, 4128, 3673, 1958, 22289, 198 ]
3.584
125
# Copyright (c) Meta Platforms, Inc. and 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 List, Optional, Union, cast import torch import theseus import theseus.constants from .lie_group import LieGroup from .point_types import Point3 from .so3 import SO3 rand_se3 = SE3.rand randn_se3 = SE3.randn
[ 2, 15069, 357, 66, 8, 30277, 19193, 82, 11, 3457, 13, 290, 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, 7343, 11, 32233, 11, 4479, 11, 3350, 198, 198, 11748, 28034, 198, 198, 11748, 777, 385, 198, 11748, 777, 385, 13, 9979, 1187, 198, 198, 6738, 764, 14485, 62, 8094, 1330, 12060, 13247, 198, 6738, 764, 4122, 62, 19199, 1330, 6252, 18, 198, 6738, 764, 568, 18, 1330, 12809, 18, 628, 198, 198, 25192, 62, 325, 18, 796, 7946, 18, 13, 25192, 198, 25192, 77, 62, 325, 18, 796, 7946, 18, 13, 25192, 77, 198 ]
3.330645
124
import typing import apache_beam as beam
[ 11748, 19720, 198, 198, 11748, 2471, 4891, 62, 40045, 355, 15584, 628, 198 ]
3.384615
13
""" Tests for :mod:`greenday_core.youtube_thumbnails_cache <greenday_core.youtube_thumbnails_cache>` """ from greenday_core.tests.base import AppengineTestBed from greenday_core.youtube_thumbnails_cache import YTThumbnailsCache class YTThumbnailClientTestCase(AppengineTestBed): """ Tests for :class:`greenday_core.youtube_thumbnails_cache.YTThumbnailsCache <greenday_core.youtube_thumbnails_cache.YTThumbnailsCache>` """ def test_remove_all_cached_thumbnail_images(self): """ :func:`greenday_core.youtube_thumbnails_cache.YTThumbnailsCache.remove_all_cached_thumbnail_images <greenday_core.youtube_thumbnails_cache.YTThumbnailsCache.remove_all_cached_thumbnail_images>` should remove all cached thumbnail images for a video """ yt_cache = YTThumbnailsCache('ytid') keys = [yt_cache.create_key(time) for time in (42, 1024)] for key in keys: yt_cache.cache_thumbnail('dummy content', key) for key in keys: self.assertTrue(yt_cache.fetch_cached_thumbnail(key)) yt_cache.remove_all_cached_thumbnail_images() for key in keys: self.assertFalse(yt_cache.fetch_cached_thumbnail(key))
[ 37811, 198, 220, 220, 220, 30307, 329, 1058, 4666, 25, 63, 16694, 437, 323, 62, 7295, 13, 11604, 62, 18670, 62, 23870, 1279, 16694, 437, 323, 62, 7295, 13, 11604, 62, 18670, 62, 23870, 29, 63, 198, 37811, 198, 6738, 10536, 437, 323, 62, 7295, 13, 41989, 13, 8692, 1330, 2034, 18392, 14402, 45896, 198, 6738, 10536, 437, 323, 62, 7295, 13, 11604, 62, 18670, 62, 23870, 1330, 575, 51, 817, 13668, 30562, 628, 198, 4871, 575, 51, 35523, 11792, 14402, 20448, 7, 4677, 18392, 14402, 45896, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 30307, 329, 1058, 4871, 25, 63, 16694, 437, 323, 62, 7295, 13, 11604, 62, 18670, 62, 23870, 13, 56, 51, 817, 13668, 30562, 1279, 16694, 437, 323, 62, 7295, 13, 11604, 62, 18670, 62, 23870, 13, 56, 51, 817, 13668, 30562, 29, 63, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 825, 1332, 62, 28956, 62, 439, 62, 66, 2317, 62, 400, 20566, 62, 17566, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 20786, 25, 63, 16694, 437, 323, 62, 7295, 13, 11604, 62, 18670, 62, 23870, 13, 56, 51, 817, 13668, 30562, 13, 28956, 62, 439, 62, 66, 2317, 62, 400, 20566, 62, 17566, 1279, 16694, 437, 323, 62, 7295, 13, 11604, 62, 18670, 62, 23870, 13, 56, 51, 817, 13668, 30562, 13, 28956, 62, 439, 62, 66, 2317, 62, 400, 20566, 62, 17566, 29, 63, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 815, 4781, 477, 39986, 40901, 4263, 329, 257, 2008, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 331, 83, 62, 23870, 796, 575, 51, 817, 13668, 30562, 10786, 20760, 312, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 8251, 796, 685, 20760, 62, 23870, 13, 17953, 62, 2539, 7, 2435, 8, 329, 640, 287, 357, 3682, 11, 28119, 15437, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1994, 287, 8251, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 331, 83, 62, 23870, 13, 23870, 62, 400, 20566, 10786, 67, 13513, 2695, 3256, 1994, 8, 628, 220, 220, 220, 220, 220, 220, 220, 329, 1994, 287, 8251, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 17821, 7, 20760, 62, 23870, 13, 69, 7569, 62, 66, 2317, 62, 400, 20566, 7, 2539, 4008, 628, 220, 220, 220, 220, 220, 220, 220, 331, 83, 62, 23870, 13, 28956, 62, 439, 62, 66, 2317, 62, 400, 20566, 62, 17566, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 329, 1994, 287, 8251, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 25101, 7, 20760, 62, 23870, 13, 69, 7569, 62, 66, 2317, 62, 400, 20566, 7, 2539, 4008, 198 ]
2.491903
494
import torch # torch.autograd.set_detect_anomaly(True) import torch.nn as nn import torch.nn.functional as F import numpy as np import pdb from skimage.metrics import structural_similarity, peak_signal_noise_ratio from lpips import LPIPS from hash_encoding import HashEmbedder, SHEncoder, XYZplusT_HashEmbedder from time_encoding import XYZ_TimeOnOff_Encoding, XYZ_TimePiecewiseConstant # Misc img2mse = lambda x, y : torch.mean((x - y) ** 2) img2L1 = lambda x, y : torch.mean(0.01 * (torch.sqrt(1 + ((x-y)**2).sum(dim=-1)/0.0001) - 1)) img2mse_with_uncertainty = lambda x, y, u : torch.mean(((x - y) ** 2)/(2*(u+1e-9)**2) + torch.log((u+1e-9)**2)) img2mse_perray = lambda x, y : ((x - y) ** 2).sum(dim=-1) img2mse_with_uncertainty_perray = lambda x, y, u : ((x - y) ** 2).sum(dim=-1)/(2*(u+1e-9)**2) + 0.5*torch.log((u+1e-9)**2) mse2psnr = lambda x : -10. * torch.log(x) / torch.log(torch.Tensor([10.])) to8b = lambda x : (255*np.clip(x,0,1)).astype(np.uint8) relu_act = nn.Softplus() bce_loss = nn.BCELoss() lpips_vgg = None @torch.no_grad() # Positional encoding (section 5.1) # Small NeRF for Hash embeddings class NeuralDiff_BGFGSeparate(nn.Module): ''' Static Background model uses a low-frequency grid, and Foreground model uses a high-frequency grid. ''' class BGFG_XYZT(nn.Module): ''' XYZT grid for foreground model ''' class BGFG_OnOffEncoding(nn.Module): ''' Uses OnOffEncoding for time ''' class BGFG_PiecewiseConst(nn.Module): ''' Uses OnOffEncoding for time ''' class BGFG_XYZT_Bottleneck(nn.Module): ''' XYZT grid for foreground model Foreground model also uses some information (encoding) from the BG model, which helps in triangulation ''' # Ray helpers # Hierarchical sampling (section 5.2)
[ 11748, 28034, 198, 2, 28034, 13, 2306, 519, 6335, 13, 2617, 62, 15255, 478, 62, 272, 24335, 7, 17821, 8, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 279, 9945, 198, 6738, 1341, 9060, 13, 4164, 10466, 1330, 13204, 62, 38610, 414, 11, 9103, 62, 12683, 282, 62, 3919, 786, 62, 10366, 952, 198, 6738, 300, 79, 2419, 1330, 406, 11901, 3705, 198, 198, 6738, 12234, 62, 12685, 7656, 1330, 21059, 31567, 276, 1082, 11, 6006, 27195, 12342, 11, 41420, 57, 9541, 51, 62, 26257, 31567, 276, 1082, 198, 6738, 640, 62, 12685, 7656, 1330, 41420, 57, 62, 7575, 2202, 9362, 62, 27195, 7656, 11, 41420, 57, 62, 7575, 47, 8535, 3083, 3103, 18797, 198, 198, 2, 29882, 198, 198, 9600, 17, 76, 325, 796, 37456, 2124, 11, 331, 1058, 28034, 13, 32604, 19510, 87, 532, 331, 8, 12429, 362, 8, 198, 9600, 17, 43, 16, 796, 37456, 2124, 11, 331, 1058, 28034, 13, 32604, 7, 15, 13, 486, 1635, 357, 13165, 354, 13, 31166, 17034, 7, 16, 1343, 14808, 87, 12, 88, 8, 1174, 17, 737, 16345, 7, 27740, 10779, 16, 20679, 15, 13, 18005, 8, 532, 352, 4008, 198, 9600, 17, 76, 325, 62, 4480, 62, 19524, 1425, 774, 796, 37456, 2124, 11, 331, 11, 334, 1058, 28034, 13, 32604, 19510, 7, 87, 532, 331, 8, 12429, 362, 20679, 7, 17, 9, 7, 84, 10, 16, 68, 12, 24, 8, 1174, 17, 8, 1343, 28034, 13, 6404, 19510, 84, 10, 16, 68, 12, 24, 8, 1174, 17, 4008, 198, 9600, 17, 76, 325, 62, 525, 2433, 796, 37456, 2124, 11, 331, 1058, 14808, 87, 532, 331, 8, 12429, 362, 737, 16345, 7, 27740, 10779, 16, 8, 198, 9600, 17, 76, 325, 62, 4480, 62, 19524, 1425, 774, 62, 525, 2433, 796, 37456, 2124, 11, 331, 11, 334, 1058, 14808, 87, 532, 331, 8, 12429, 362, 737, 16345, 7, 27740, 10779, 16, 20679, 7, 17, 9, 7, 84, 10, 16, 68, 12, 24, 8, 1174, 17, 8, 1343, 657, 13, 20, 9, 13165, 354, 13, 6404, 19510, 84, 10, 16, 68, 12, 24, 8, 1174, 17, 8, 198, 76, 325, 17, 862, 48624, 796, 37456, 2124, 1058, 532, 940, 13, 1635, 28034, 13, 6404, 7, 87, 8, 1220, 28034, 13, 6404, 7, 13165, 354, 13, 51, 22854, 26933, 940, 8183, 4008, 198, 1462, 23, 65, 796, 37456, 2124, 1058, 357, 13381, 9, 37659, 13, 15036, 7, 87, 11, 15, 11, 16, 29720, 459, 2981, 7, 37659, 13, 28611, 23, 8, 198, 260, 2290, 62, 529, 796, 299, 77, 13, 18380, 9541, 3419, 198, 65, 344, 62, 22462, 796, 299, 77, 13, 2749, 3698, 793, 3419, 198, 198, 34431, 2419, 62, 85, 1130, 796, 6045, 198, 198, 31, 13165, 354, 13, 3919, 62, 9744, 3419, 628, 198, 198, 2, 18574, 1859, 21004, 357, 5458, 642, 13, 16, 8, 628, 628, 198, 198, 2, 10452, 3169, 32754, 329, 21059, 11525, 67, 654, 628, 628, 628, 198, 4871, 47986, 28813, 62, 33, 21713, 14313, 538, 30748, 7, 20471, 13, 26796, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 36125, 25353, 2746, 3544, 257, 1877, 12, 35324, 10706, 11, 220, 198, 220, 220, 220, 290, 4558, 2833, 2746, 3544, 257, 1029, 12, 35324, 10706, 13, 198, 220, 220, 220, 705, 7061, 628, 198, 4871, 347, 21713, 38, 62, 34278, 57, 51, 7, 20471, 13, 26796, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 41420, 57, 51, 10706, 329, 36282, 2746, 220, 198, 220, 220, 220, 705, 7061, 628, 198, 4871, 347, 21713, 38, 62, 2202, 9362, 27195, 7656, 7, 20471, 13, 26796, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 36965, 1550, 9362, 27195, 7656, 329, 640, 198, 220, 220, 220, 705, 7061, 628, 198, 4871, 347, 21713, 38, 62, 47, 8535, 3083, 34184, 7, 20471, 13, 26796, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 36965, 1550, 9362, 27195, 7656, 329, 640, 198, 220, 220, 220, 705, 7061, 628, 198, 4871, 347, 21713, 38, 62, 34278, 57, 51, 62, 28653, 43163, 7, 20471, 13, 26796, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 41420, 57, 51, 10706, 329, 36282, 2746, 220, 198, 220, 220, 220, 4558, 2833, 2746, 635, 3544, 617, 1321, 357, 12685, 7656, 8, 422, 262, 34839, 2746, 11, 543, 5419, 287, 1333, 648, 1741, 198, 220, 220, 220, 705, 7061, 628, 198, 2, 7760, 49385, 628, 628, 628, 198, 2, 36496, 998, 605, 19232, 357, 5458, 642, 13, 17, 8, 198 ]
2.376963
764
import configparser import os from pathlib import Path import annofabapi from annofabcli.__main__ import main out_dir = Path("./tests/out/instruction") data_dir = Path("./tests/data/instruction") # ใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใƒˆใƒƒใƒ—ใซ็งปๅ‹•ใ™ใ‚‹ os.chdir(os.path.dirname(os.path.abspath(__file__)) + "/../") inifile = configparser.ConfigParser() inifile.read("./pytest.ini", "UTF-8") annofab_config = dict(inifile.items("annofab")) project_id = annofab_config["project_id"] service = annofabapi.build()
[ 11748, 4566, 48610, 198, 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 1529, 1659, 397, 15042, 198, 198, 6738, 1529, 1659, 397, 44506, 13, 834, 12417, 834, 1330, 1388, 198, 198, 448, 62, 15908, 796, 10644, 7, 1911, 14, 41989, 14, 448, 14, 8625, 2762, 4943, 198, 7890, 62, 15908, 796, 10644, 7, 1911, 14, 41989, 14, 7890, 14, 8625, 2762, 4943, 198, 198, 2, 14524, 245, 16253, 21091, 24806, 14099, 13298, 13298, 14777, 30965, 28618, 163, 100, 119, 47947, 243, 33623, 25748, 198, 418, 13, 354, 15908, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, 1343, 12813, 40720, 4943, 198, 259, 361, 576, 796, 4566, 48610, 13, 16934, 46677, 3419, 198, 259, 361, 576, 13, 961, 7, 1911, 14, 9078, 9288, 13, 5362, 1600, 366, 48504, 12, 23, 4943, 198, 1236, 1659, 397, 62, 11250, 796, 8633, 7, 259, 361, 576, 13, 23814, 7203, 1236, 1659, 397, 48774, 198, 198, 16302, 62, 312, 796, 1529, 1659, 397, 62, 11250, 14692, 16302, 62, 312, 8973, 198, 15271, 796, 1529, 1659, 397, 15042, 13, 11249, 3419, 628 ]
2.492147
191
soma = 0 count = 0 maior = 0 menor = 0 r = 'Y' while r=='Y': n = int(input('Digite um numero: ')) if count == 0 or n > maior: maior = n if count == 0 or n < menor: menor = n soma = soma + n count = count + 1 r = str(input('Quer continuar? [Y/N]: ')).upper().strip() media = soma/count print('A media e {:.2f}'.format(media)) print('O menor numero e {} e o maior numero e {}'.format(menor,maior))
[ 82, 6086, 796, 657, 198, 9127, 796, 657, 198, 2611, 1504, 796, 657, 198, 3653, 273, 796, 657, 198, 81, 796, 705, 56, 6, 198, 4514, 374, 855, 6, 56, 10354, 198, 220, 220, 220, 299, 796, 493, 7, 15414, 10786, 19511, 578, 23781, 997, 3529, 25, 705, 4008, 198, 220, 220, 220, 611, 954, 6624, 657, 393, 299, 1875, 17266, 1504, 25, 198, 220, 220, 220, 220, 220, 220, 220, 17266, 1504, 796, 299, 198, 220, 220, 220, 611, 954, 6624, 657, 393, 299, 1279, 1450, 273, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1450, 273, 796, 299, 198, 220, 220, 220, 3870, 64, 796, 3870, 64, 1343, 299, 198, 220, 220, 220, 954, 796, 954, 1343, 352, 198, 220, 220, 220, 374, 796, 965, 7, 15414, 10786, 4507, 263, 11143, 283, 30, 685, 56, 14, 45, 5974, 705, 29720, 45828, 22446, 36311, 3419, 198, 11431, 796, 3870, 64, 14, 9127, 198, 4798, 10786, 32, 2056, 304, 46110, 13, 17, 69, 92, 4458, 18982, 7, 11431, 4008, 198, 4798, 10786, 46, 1450, 273, 997, 3529, 304, 23884, 304, 267, 17266, 1504, 997, 3529, 304, 23884, 4458, 18982, 7, 3653, 273, 11, 2611, 1504, 4008 ]
2.208122
197
import unittest import datetime from http_clients import ByteportHttpGetClient, ByteportHttpPostClient
[ 11748, 555, 715, 395, 198, 11748, 4818, 8079, 198, 198, 6738, 2638, 62, 565, 2334, 1330, 2750, 83, 45813, 43481, 3855, 11792, 11, 2750, 83, 45813, 43481, 6307, 11792, 628 ]
3.5
30
""" Stack-In-A-WSGI: stackinawsgi.admin.admin.StackInAWsgiSessionManager """ import datetime import json import unittest import ddt from stackinabox.services.service import StackInABoxService from stackinabox.services.hello import HelloService from stackinawsgi.admin.admin import StackInAWsgiAdmin from stackinawsgi.session.service import ( global_sessions, StackInAWsgiSessionManager ) from stackinawsgi.wsgi.request import Request from stackinawsgi.wsgi.response import Response from stackinawsgi.test.helpers import make_environment @ddt.ddt class TestSessionManager(unittest.TestCase): """ Test the interaction of StackInAWSGI's Session Manager """ def setUp(self): """ configure env for the test """ self.manager = StackInAWsgiSessionManager() self.manager.register_service(HelloService) self.base_uri = 'test://testing-url' def tearDown(self): """ clean up after the test """ keys = tuple(global_sessions.keys()) for k in keys: del global_sessions[k] def test_construction(self): """ test basic construction of the admin interface """ admin = StackInAWsgiAdmin(self.manager, self.base_uri) self.assertIsInstance(admin, StackInABoxService) self.assertEqual(id(self.manager), id(admin.manager)) self.assertTrue(admin.base_uri.startswith(self.base_uri)) def test_property_base_uri_with_no_slash(self): """ test basic construction of the admin interface """ base_uri = 'hello' admin = StackInAWsgiAdmin(self.manager, base_uri) self.assertIsInstance(admin, StackInABoxService) self.assertEqual(id(self.manager), id(admin.manager)) self.assertTrue(admin.base_uri.startswith(base_uri)) def test_property_base_uri_start_with_slash(self): """ test basic construction of the admin interface """ base_uri = '/hello' admin = StackInAWsgiAdmin(self.manager, base_uri) self.assertIsInstance(admin, StackInABoxService) self.assertEqual(id(self.manager), id(admin.manager)) self.assertTrue(admin.base_uri.startswith(base_uri[1:])) def test_property_base_uri_ends_with_slash(self): """ test the base uri property to ensure the trailing slash is removed """ base_uri = 'hello/' admin = StackInAWsgiAdmin(self.manager, base_uri) self.assertIsInstance(admin, StackInABoxService) self.assertEqual(id(self.manager), id(admin.manager)) self.assertTrue(admin.base_uri.startswith(base_uri[:-1])) def test_helper_get_session_id(self): """ test extracting the session-id from the headers """ admin = StackInAWsgiAdmin(self.manager, self.base_uri) session_id = 'some-session-id' headers = { 'x-session-id': session_id } extracted_session_id = admin.helper_get_session_id(headers) self.assertEqual(session_id, extracted_session_id) def test_helper_get_session_id_no_session_id(self): """ test extracting the session-id from the headers """ admin = StackInAWsgiAdmin(self.manager, self.base_uri) headers = {} extracted_session_id = admin.helper_get_session_id(headers) self.assertIsNone(extracted_session_id) def test_helper_get_uri(self): """ test building the URI """ admin = StackInAWsgiAdmin(self.manager, self.base_uri) session_id = 'some-session-id' expected_uri = '{0}/{1}/'.format(self.base_uri, session_id) result_uri = admin.helper_get_uri(session_id) self.assertEqual(expected_uri, result_uri) def test_session_creation(self): """ test creating a new session """ admin = StackInAWsgiAdmin(self.manager, self.base_uri) uri = u'/' environment = make_environment( self, method='POST', path=uri[1:] ) request = Request(environment) response = Response() result = admin.create_session( request, uri, response.headers ) response.from_stackinabox( result[0], result[1], result[2] ) # validate response self.assertEqual(response.status, 201) # validate header entries self.assertIn('x-session-id', response.headers) self.assertIn('location', response.headers) # validate x-session-id session_id = response.headers['x-session-id'] self.assertIn(session_id, global_sessions) # validate location self.assertEqual( '{0}/{1}/'.format(self.base_uri, session_id), response.headers['location'] ) def test_session_creation_with_session_id(self): """ test creating a new session with a session-id """ admin = StackInAWsgiAdmin(self.manager, self.base_uri) session_id = 'my-session-id' uri = u'/' environment = make_environment( self, method='POST', path=uri[1:], headers={ 'x-session-id': session_id } ) request = Request(environment) self.assertIn('x-session-id', request.headers) self.assertEqual(session_id, request.headers['x-session-id']) response = Response() result = admin.create_session( request, uri, request.headers ) response.from_stackinabox( result[0], result[1], result[2] ) # validate response self.assertEqual(response.status, 201) # validate header entries self.assertIn('x-session-id', response.headers) self.assertIn('location', response.headers) # validate x-session-id extracted_session_id = response.headers['x-session-id'] self.assertEqual(session_id, extracted_session_id) self.assertIn(extracted_session_id, global_sessions) # validate location self.assertEqual( '{0}/{1}/'.format(self.base_uri, extracted_session_id), response.headers['location'] ) def test_session_remove(self): """ test removing a session """ admin = StackInAWsgiAdmin(self.manager, self.base_uri) session_id = self.manager.create_session() uri = u'/' environment = make_environment( self, method='DELETE', path=uri[1:], headers={ 'x-session-id': session_id } ) request = Request(environment) self.assertIn('x-session-id', request.headers) self.assertEqual(session_id, request.headers['x-session-id']) response = Response() result = admin.remove_session( request, uri, request.headers ) response.from_stackinabox( result[0], result[1], result[2] ) # validate response self.assertEqual(response.status, 204) def test_session_remove_invalid_session_id(self): """ test removing a session with an invalid session id """ admin = StackInAWsgiAdmin(self.manager, self.base_uri) session_id = 'my-session-id' uri = u'/' environment = make_environment( self, method='DELETE', path=uri[1:], headers={ 'x-session-id': session_id } ) request = Request(environment) self.assertIn('x-session-id', request.headers) self.assertEqual(session_id, request.headers['x-session-id']) response = Response() result = admin.remove_session( request, uri, request.headers ) response.from_stackinabox( result[0], result[1], result[2] ) # validate response self.assertEqual(response.status, 404) def test_session_reset(self): """ test resetting a session """ admin = StackInAWsgiAdmin(self.manager, self.base_uri) session_id = self.manager.create_session() uri = u'/' environment = make_environment( self, method='PUT', path=uri[1:], headers={ 'x-session-id': session_id } ) request = Request(environment) self.assertIn('x-session-id', request.headers) self.assertEqual(session_id, request.headers['x-session-id']) response = Response() result = admin.reset_session( request, uri, request.headers ) response.from_stackinabox( result[0], result[1], result[2] ) # validate response self.assertEqual(response.status, 205) def test_session_reset_invalid_session_id(self): """ test resetting a session with an invalid session id """ admin = StackInAWsgiAdmin(self.manager, self.base_uri) session_id = 'my-session-id' uri = u'/' environment = make_environment( self, method='PUT', path=uri[1:], headers={ 'x-session-id': session_id } ) request = Request(environment) self.assertIn('x-session-id', request.headers) self.assertEqual(session_id, request.headers['x-session-id']) response = Response() result = admin.reset_session( request, uri, request.headers ) response.from_stackinabox( result[0], result[1], result[2] ) # validate response self.assertEqual(response.status, 404) @ddt.data(0, 1, 2, 3, 5, 8, 13) def test_get_sessions(self, session_count): """ test get sessions """ admin = StackInAWsgiAdmin(self.manager, self.base_uri) uri = u'/' environment = make_environment( self, method='GET', path=uri[1:], headers={} ) request = Request(environment) for _ in range(session_count): admin.manager.create_session() response = Response() result = admin.get_sessions( request, uri, request.headers ) response.from_stackinabox( result[0], result[1], result[2] ) # validate response self.assertEqual(response.status, 200) response_body = response.body session_data = json.loads(response_body) self.assertIn('base_url', session_data) self.assertEqual(session_data['base_url'], self.base_uri) self.assertIn('services', session_data) self.assertEqual(len(session_data['services']), 1) self.assertIn('hello', session_data['services']) self.assertEqual(session_data['services']['hello'], 'HelloService') self.assertIn('sessions', session_data) self.assertEqual(len(session_data['sessions']), session_count) def test_get_session_info(self): """ test resetting a session with an invalid session id """ admin = StackInAWsgiAdmin(self.manager, self.base_uri) session_id = 'my-session-id' uri = u'/{0}'.format(session_id) environment = make_environment( self, method='GET', path=uri[1:], headers={ 'x-session-id': session_id } ) request = Request(environment) self.assertIn('x-session-id', request.headers) self.assertEqual(session_id, request.headers['x-session-id']) response_created = Response() result_create = admin.create_session( request, uri, request.headers ) response_created.from_stackinabox( result_create[0], result_create[1], result_create[2] ) self.assertEqual(response_created.status, 201) response = Response() result = admin.get_session_info( request, uri, request.headers ) response.from_stackinabox( result[0], result[1], result[2] ) # validate response self.assertEqual(response.status, 200) response_body = response.body session_data = json.loads(response_body) self.assertIn('base_url', session_data) self.assertEqual(session_data['base_url'], self.base_uri) self.assertIn('session_valid', session_data) self.assertTrue(session_data['session_valid']) self.assertIn('services', session_data) self.assertEqual(len(session_data['services']), 1) self.assertIn('hello', session_data['services']) self.assertEqual(session_data['services']['hello'], 'HelloService') self.assertIn('trackers', session_data) self.assertEqual(len(session_data['trackers']), 3) self.assertIn('created-time', session_data['trackers']) self.assertIsNotNone(session_data['trackers']['created-time']) created_time = datetime.datetime.strptime( session_data['trackers']['created-time'], "%Y-%m-%dT%H:%M:%S.%f" ) self.assertIn('accessed', session_data['trackers']) self.assertEqual(len(session_data['trackers']['accessed']), 2) self.assertIn('time', session_data['trackers']['accessed']) self.assertIsNotNone(session_data['trackers']['accessed']['time']) accessed_time = datetime.datetime.strptime( session_data['trackers']['accessed']['time'], "%Y-%m-%dT%H:%M:%S.%f" ) self.assertEqual(created_time, accessed_time) self.assertIn('count', session_data['trackers']['accessed']) self.assertIn('status', session_data['trackers']) self.assertEqual(len(session_data['trackers']['status']), 0) def test_get_session_info_invalid_session(self): """ test resetting a session with an invalid session id """ admin = StackInAWsgiAdmin(self.manager, self.base_uri) session_id = 'my-session-id' uri = u'/{0}'.format(session_id) environment = make_environment( self, method='PUT', path=uri[1:], ) request = Request(environment) response = Response() result = admin.get_session_info( request, uri, request.headers ) response.from_stackinabox( result[0], result[1], result[2] ) # validate response self.assertEqual(response.status, 200) response_body = response.body session_data = json.loads(response_body) self.assertIn('base_url', session_data) self.assertEqual(session_data['base_url'], self.base_uri) self.assertIn('session_valid', session_data) self.assertFalse(session_data['session_valid']) self.assertIn('services', session_data) self.assertEqual(len(session_data['services']), 1) self.assertIn('hello', session_data['services']) self.assertEqual(session_data['services']['hello'], 'HelloService') self.assertIn('trackers', session_data) self.assertEqual(len(session_data['trackers']), 3) self.assertIn('created-time', session_data['trackers']) self.assertIsNone(session_data['trackers']['created-time']) self.assertIn('accessed', session_data['trackers']) self.assertEqual(len(session_data['trackers']['accessed']), 2) self.assertIn('time', session_data['trackers']['accessed']) self.assertIsNone(session_data['trackers']['accessed']['time']) self.assertIn('count', session_data['trackers']['accessed']) self.assertIn('status', session_data['trackers']) self.assertEqual(len(session_data['trackers']['status']), 0) def test_extract_session_from_uri(self): """ test extracting a session from the URI - positive test """ admin = StackInAWsgiAdmin(self.manager, self.base_uri) session_id = 'my-session-id' uri = u'/{0}'.format(session_id) extracted_session_id = admin.helper_get_session_id_from_uri( uri ) self.assertEqual(session_id, extracted_session_id) def test_extract_session_from_uri_invalid(self): """ test extracting a session from the URI - negative test """ admin = StackInAWsgiAdmin(self.manager, self.base_uri) uri = u'/' extracted_session_id = admin.helper_get_session_id_from_uri( uri ) self.assertIsNone(extracted_session_id)
[ 37811, 198, 25896, 12, 818, 12, 32, 12, 19416, 18878, 25, 8931, 259, 8356, 12397, 13, 28482, 13, 28482, 13, 25896, 818, 12298, 82, 12397, 36044, 13511, 198, 37811, 198, 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 555, 715, 395, 198, 198, 11748, 288, 28664, 198, 198, 6738, 8931, 259, 397, 1140, 13, 30416, 13, 15271, 1330, 23881, 818, 6242, 1140, 16177, 198, 6738, 8931, 259, 397, 1140, 13, 30416, 13, 31373, 1330, 18435, 16177, 198, 198, 6738, 8931, 259, 8356, 12397, 13, 28482, 13, 28482, 1330, 23881, 818, 12298, 82, 12397, 46787, 198, 6738, 8931, 259, 8356, 12397, 13, 29891, 13, 15271, 1330, 357, 198, 220, 220, 220, 3298, 62, 82, 6202, 11, 198, 220, 220, 220, 23881, 818, 12298, 82, 12397, 36044, 13511, 198, 8, 198, 6738, 8931, 259, 8356, 12397, 13, 18504, 12397, 13, 25927, 1330, 19390, 198, 6738, 8931, 259, 8356, 12397, 13, 18504, 12397, 13, 26209, 1330, 18261, 198, 6738, 8931, 259, 8356, 12397, 13, 9288, 13, 16794, 364, 1330, 787, 62, 38986, 628, 198, 31, 1860, 83, 13, 1860, 83, 198, 4871, 6208, 36044, 13511, 7, 403, 715, 395, 13, 14402, 20448, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 6208, 262, 10375, 286, 23881, 818, 12298, 50, 18878, 338, 23575, 9142, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 825, 900, 4933, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 17425, 17365, 329, 262, 1332, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 37153, 796, 23881, 818, 12298, 82, 12397, 36044, 13511, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 37153, 13, 30238, 62, 15271, 7, 15496, 16177, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 8692, 62, 9900, 796, 705, 9288, 1378, 33407, 12, 6371, 6, 628, 220, 220, 220, 825, 11626, 8048, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 3424, 510, 706, 262, 1332, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 8251, 796, 46545, 7, 20541, 62, 82, 6202, 13, 13083, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 329, 479, 287, 8251, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1619, 3298, 62, 82, 6202, 58, 74, 60, 628, 220, 220, 220, 825, 1332, 62, 9979, 2762, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 4096, 5103, 286, 262, 13169, 7071, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2116, 13, 8692, 62, 9900, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 33384, 7, 28482, 11, 23881, 818, 6242, 1140, 16177, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 312, 7, 944, 13, 37153, 828, 4686, 7, 28482, 13, 37153, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 17821, 7, 28482, 13, 8692, 62, 9900, 13, 9688, 2032, 342, 7, 944, 13, 8692, 62, 9900, 4008, 628, 220, 220, 220, 825, 1332, 62, 26745, 62, 8692, 62, 9900, 62, 4480, 62, 3919, 62, 6649, 1077, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 4096, 5103, 286, 262, 13169, 7071, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2779, 62, 9900, 796, 705, 31373, 6, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2779, 62, 9900, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 33384, 7, 28482, 11, 23881, 818, 6242, 1140, 16177, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 312, 7, 944, 13, 37153, 828, 4686, 7, 28482, 13, 37153, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 17821, 7, 28482, 13, 8692, 62, 9900, 13, 9688, 2032, 342, 7, 8692, 62, 9900, 4008, 628, 220, 220, 220, 825, 1332, 62, 26745, 62, 8692, 62, 9900, 62, 9688, 62, 4480, 62, 6649, 1077, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 4096, 5103, 286, 262, 13169, 7071, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2779, 62, 9900, 796, 31051, 31373, 6, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2779, 62, 9900, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 33384, 7, 28482, 11, 23881, 818, 6242, 1140, 16177, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 312, 7, 944, 13, 37153, 828, 4686, 7, 28482, 13, 37153, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 17821, 7, 28482, 13, 8692, 62, 9900, 13, 9688, 2032, 342, 7, 8692, 62, 9900, 58, 16, 47715, 4008, 628, 220, 220, 220, 825, 1332, 62, 26745, 62, 8692, 62, 9900, 62, 2412, 62, 4480, 62, 6649, 1077, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 262, 2779, 2956, 72, 3119, 284, 4155, 262, 25462, 24632, 198, 220, 220, 220, 220, 220, 220, 220, 318, 4615, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2779, 62, 9900, 796, 705, 31373, 14, 6, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2779, 62, 9900, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 33384, 7, 28482, 11, 23881, 818, 6242, 1140, 16177, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 312, 7, 944, 13, 37153, 828, 4686, 7, 28482, 13, 37153, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 17821, 7, 28482, 13, 8692, 62, 9900, 13, 9688, 2032, 342, 7, 8692, 62, 9900, 58, 21912, 16, 60, 4008, 628, 220, 220, 220, 825, 1332, 62, 2978, 525, 62, 1136, 62, 29891, 62, 312, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 37895, 262, 6246, 12, 312, 422, 262, 24697, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2116, 13, 8692, 62, 9900, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6246, 62, 312, 796, 705, 11246, 12, 29891, 12, 312, 6, 198, 220, 220, 220, 220, 220, 220, 220, 24697, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 87, 12, 29891, 12, 312, 10354, 6246, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 1782, 628, 220, 220, 220, 220, 220, 220, 220, 21242, 62, 29891, 62, 312, 796, 13169, 13, 2978, 525, 62, 1136, 62, 29891, 62, 312, 7, 50145, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 29891, 62, 312, 11, 21242, 62, 29891, 62, 312, 8, 628, 220, 220, 220, 825, 1332, 62, 2978, 525, 62, 1136, 62, 29891, 62, 312, 62, 3919, 62, 29891, 62, 312, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 37895, 262, 6246, 12, 312, 422, 262, 24697, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2116, 13, 8692, 62, 9900, 8, 198, 220, 220, 220, 220, 220, 220, 220, 24697, 796, 23884, 628, 220, 220, 220, 220, 220, 220, 220, 21242, 62, 29891, 62, 312, 796, 13169, 13, 2978, 525, 62, 1136, 62, 29891, 62, 312, 7, 50145, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 14202, 7, 2302, 20216, 62, 29891, 62, 312, 8, 628, 220, 220, 220, 825, 1332, 62, 2978, 525, 62, 1136, 62, 9900, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 2615, 262, 43975, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2116, 13, 8692, 62, 9900, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6246, 62, 312, 796, 705, 11246, 12, 29891, 12, 312, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2938, 62, 9900, 796, 705, 90, 15, 92, 14, 90, 16, 92, 14, 4458, 18982, 7, 944, 13, 8692, 62, 9900, 11, 6246, 62, 312, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 62, 9900, 796, 13169, 13, 2978, 525, 62, 1136, 62, 9900, 7, 29891, 62, 312, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 40319, 62, 9900, 11, 1255, 62, 9900, 8, 628, 220, 220, 220, 825, 1332, 62, 29891, 62, 38793, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 4441, 257, 649, 6246, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2116, 13, 8692, 62, 9900, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 796, 334, 26488, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2858, 796, 787, 62, 38986, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2446, 11639, 32782, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3108, 28, 9900, 58, 16, 47715, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2581, 796, 19390, 7, 38986, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 796, 18261, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 13169, 13, 17953, 62, 29891, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2882, 13, 50145, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 13, 6738, 62, 25558, 259, 397, 1140, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 15, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 16, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 26571, 2882, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 26209, 13, 13376, 11, 580, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 26571, 13639, 12784, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 87, 12, 29891, 12, 312, 3256, 2882, 13, 50145, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 24886, 3256, 2882, 13, 50145, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 26571, 2124, 12, 29891, 12, 312, 198, 220, 220, 220, 220, 220, 220, 220, 6246, 62, 312, 796, 2882, 13, 50145, 17816, 87, 12, 29891, 12, 312, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 7, 29891, 62, 312, 11, 3298, 62, 82, 6202, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 26571, 4067, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 90, 15, 92, 14, 90, 16, 92, 14, 4458, 18982, 7, 944, 13, 8692, 62, 9900, 11, 6246, 62, 312, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2882, 13, 50145, 17816, 24886, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 825, 1332, 62, 29891, 62, 38793, 62, 4480, 62, 29891, 62, 312, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 4441, 257, 649, 6246, 351, 257, 6246, 12, 312, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2116, 13, 8692, 62, 9900, 8, 628, 220, 220, 220, 220, 220, 220, 220, 6246, 62, 312, 796, 705, 1820, 12, 29891, 12, 312, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 796, 334, 26488, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2858, 796, 787, 62, 38986, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2446, 11639, 32782, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3108, 28, 9900, 58, 16, 25, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24697, 34758, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 87, 12, 29891, 12, 312, 10354, 6246, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2581, 796, 19390, 7, 38986, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 87, 12, 29891, 12, 312, 3256, 2581, 13, 50145, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 29891, 62, 312, 11, 2581, 13, 50145, 17816, 87, 12, 29891, 12, 312, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 796, 18261, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 13169, 13, 17953, 62, 29891, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 13, 50145, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 13, 6738, 62, 25558, 259, 397, 1140, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 15, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 16, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 26571, 2882, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 26209, 13, 13376, 11, 580, 8, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 26571, 13639, 12784, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 87, 12, 29891, 12, 312, 3256, 2882, 13, 50145, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 24886, 3256, 2882, 13, 50145, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 26571, 2124, 12, 29891, 12, 312, 198, 220, 220, 220, 220, 220, 220, 220, 21242, 62, 29891, 62, 312, 796, 2882, 13, 50145, 17816, 87, 12, 29891, 12, 312, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 29891, 62, 312, 11, 21242, 62, 29891, 62, 312, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 7, 2302, 20216, 62, 29891, 62, 312, 11, 3298, 62, 82, 6202, 8, 628, 220, 220, 220, 220, 220, 220, 220, 1303, 26571, 4067, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 90, 15, 92, 14, 90, 16, 92, 14, 4458, 18982, 7, 944, 13, 8692, 62, 9900, 11, 21242, 62, 29891, 62, 312, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2882, 13, 50145, 17816, 24886, 20520, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 825, 1332, 62, 29891, 62, 28956, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 10829, 257, 6246, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2116, 13, 8692, 62, 9900, 8, 628, 220, 220, 220, 220, 220, 220, 220, 6246, 62, 312, 796, 2116, 13, 37153, 13, 17953, 62, 29891, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 796, 334, 26488, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2858, 796, 787, 62, 38986, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2446, 11639, 7206, 2538, 9328, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3108, 28, 9900, 58, 16, 25, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24697, 34758, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 87, 12, 29891, 12, 312, 10354, 6246, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2581, 796, 19390, 7, 38986, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 87, 12, 29891, 12, 312, 3256, 2581, 13, 50145, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 29891, 62, 312, 11, 2581, 13, 50145, 17816, 87, 12, 29891, 12, 312, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 796, 18261, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 13169, 13, 28956, 62, 29891, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 13, 50145, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 13, 6738, 62, 25558, 259, 397, 1140, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 15, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 16, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 26571, 2882, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 26209, 13, 13376, 11, 26956, 8, 628, 220, 220, 220, 825, 1332, 62, 29891, 62, 28956, 62, 259, 12102, 62, 29891, 62, 312, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 10829, 257, 6246, 351, 281, 12515, 6246, 4686, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2116, 13, 8692, 62, 9900, 8, 628, 220, 220, 220, 220, 220, 220, 220, 6246, 62, 312, 796, 705, 1820, 12, 29891, 12, 312, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 796, 334, 26488, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2858, 796, 787, 62, 38986, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2446, 11639, 7206, 2538, 9328, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3108, 28, 9900, 58, 16, 25, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24697, 34758, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 87, 12, 29891, 12, 312, 10354, 6246, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2581, 796, 19390, 7, 38986, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 87, 12, 29891, 12, 312, 3256, 2581, 13, 50145, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 29891, 62, 312, 11, 2581, 13, 50145, 17816, 87, 12, 29891, 12, 312, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 796, 18261, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 13169, 13, 28956, 62, 29891, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 13, 50145, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 13, 6738, 62, 25558, 259, 397, 1140, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 15, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 16, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 26571, 2882, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 26209, 13, 13376, 11, 32320, 8, 628, 220, 220, 220, 825, 1332, 62, 29891, 62, 42503, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 13259, 889, 257, 6246, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2116, 13, 8692, 62, 9900, 8, 628, 220, 220, 220, 220, 220, 220, 220, 6246, 62, 312, 796, 2116, 13, 37153, 13, 17953, 62, 29891, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 796, 334, 26488, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2858, 796, 787, 62, 38986, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2446, 11639, 30076, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3108, 28, 9900, 58, 16, 25, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24697, 34758, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 87, 12, 29891, 12, 312, 10354, 6246, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2581, 796, 19390, 7, 38986, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 87, 12, 29891, 12, 312, 3256, 2581, 13, 50145, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 29891, 62, 312, 11, 2581, 13, 50145, 17816, 87, 12, 29891, 12, 312, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 796, 18261, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 13169, 13, 42503, 62, 29891, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 13, 50145, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 13, 6738, 62, 25558, 259, 397, 1140, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 15, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 16, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 26571, 2882, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 26209, 13, 13376, 11, 22538, 8, 628, 220, 220, 220, 825, 1332, 62, 29891, 62, 42503, 62, 259, 12102, 62, 29891, 62, 312, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 13259, 889, 257, 6246, 351, 281, 12515, 6246, 4686, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2116, 13, 8692, 62, 9900, 8, 628, 220, 220, 220, 220, 220, 220, 220, 6246, 62, 312, 796, 705, 1820, 12, 29891, 12, 312, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 796, 334, 26488, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2858, 796, 787, 62, 38986, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2446, 11639, 30076, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3108, 28, 9900, 58, 16, 25, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24697, 34758, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 87, 12, 29891, 12, 312, 10354, 6246, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2581, 796, 19390, 7, 38986, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 87, 12, 29891, 12, 312, 3256, 2581, 13, 50145, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 29891, 62, 312, 11, 2581, 13, 50145, 17816, 87, 12, 29891, 12, 312, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 796, 18261, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 13169, 13, 42503, 62, 29891, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 13, 50145, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 13, 6738, 62, 25558, 259, 397, 1140, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 15, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 16, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 26571, 2882, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 26209, 13, 13376, 11, 32320, 8, 628, 220, 220, 220, 2488, 1860, 83, 13, 7890, 7, 15, 11, 352, 11, 362, 11, 513, 11, 642, 11, 807, 11, 1511, 8, 198, 220, 220, 220, 825, 1332, 62, 1136, 62, 82, 6202, 7, 944, 11, 6246, 62, 9127, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 651, 10991, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2116, 13, 8692, 62, 9900, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 796, 334, 26488, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2858, 796, 787, 62, 38986, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2446, 11639, 18851, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3108, 28, 9900, 58, 16, 25, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24697, 34758, 92, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2581, 796, 19390, 7, 38986, 8, 628, 220, 220, 220, 220, 220, 220, 220, 329, 4808, 287, 2837, 7, 29891, 62, 9127, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13169, 13, 37153, 13, 17953, 62, 29891, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 2882, 796, 18261, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 13169, 13, 1136, 62, 82, 6202, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 13, 50145, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 13, 6738, 62, 25558, 259, 397, 1140, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 15, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 16, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 26571, 2882, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 26209, 13, 13376, 11, 939, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2882, 62, 2618, 796, 2882, 13, 2618, 198, 220, 220, 220, 220, 220, 220, 220, 6246, 62, 7890, 796, 33918, 13, 46030, 7, 26209, 62, 2618, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 8692, 62, 6371, 3256, 6246, 62, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 29891, 62, 7890, 17816, 8692, 62, 6371, 6, 4357, 2116, 13, 8692, 62, 9900, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 30416, 3256, 6246, 62, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 11925, 7, 29891, 62, 7890, 17816, 30416, 20520, 828, 352, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 31373, 3256, 6246, 62, 7890, 17816, 30416, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 29891, 62, 7890, 17816, 30416, 6, 7131, 6, 31373, 6, 4357, 705, 15496, 16177, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 82, 6202, 3256, 6246, 62, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 11925, 7, 29891, 62, 7890, 17816, 82, 6202, 20520, 828, 6246, 62, 9127, 8, 628, 220, 220, 220, 825, 1332, 62, 1136, 62, 29891, 62, 10951, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 13259, 889, 257, 6246, 351, 281, 12515, 6246, 4686, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2116, 13, 8692, 62, 9900, 8, 628, 220, 220, 220, 220, 220, 220, 220, 6246, 62, 312, 796, 705, 1820, 12, 29891, 12, 312, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 796, 334, 26488, 90, 15, 92, 4458, 18982, 7, 29891, 62, 312, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2858, 796, 787, 62, 38986, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2446, 11639, 18851, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3108, 28, 9900, 58, 16, 25, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24697, 34758, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 87, 12, 29891, 12, 312, 10354, 6246, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1782, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2581, 796, 19390, 7, 38986, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 87, 12, 29891, 12, 312, 3256, 2581, 13, 50145, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 29891, 62, 312, 11, 2581, 13, 50145, 17816, 87, 12, 29891, 12, 312, 6, 12962, 628, 220, 220, 220, 220, 220, 220, 220, 2882, 62, 25598, 796, 18261, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 62, 17953, 796, 13169, 13, 17953, 62, 29891, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 13, 50145, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 62, 25598, 13, 6738, 62, 25558, 259, 397, 1140, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 62, 17953, 58, 15, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 62, 17953, 58, 16, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 62, 17953, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 26209, 62, 25598, 13, 13376, 11, 580, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2882, 796, 18261, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 13169, 13, 1136, 62, 29891, 62, 10951, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 13, 50145, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 13, 6738, 62, 25558, 259, 397, 1140, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 15, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 16, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 26571, 2882, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 26209, 13, 13376, 11, 939, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2882, 62, 2618, 796, 2882, 13, 2618, 198, 220, 220, 220, 220, 220, 220, 220, 6246, 62, 7890, 796, 33918, 13, 46030, 7, 26209, 62, 2618, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 8692, 62, 6371, 3256, 6246, 62, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 29891, 62, 7890, 17816, 8692, 62, 6371, 6, 4357, 2116, 13, 8692, 62, 9900, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 29891, 62, 12102, 3256, 6246, 62, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 17821, 7, 29891, 62, 7890, 17816, 29891, 62, 12102, 6, 12962, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 30416, 3256, 6246, 62, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 11925, 7, 29891, 62, 7890, 17816, 30416, 20520, 828, 352, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 31373, 3256, 6246, 62, 7890, 17816, 30416, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 29891, 62, 7890, 17816, 30416, 6, 7131, 6, 31373, 6, 4357, 705, 15496, 16177, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 11659, 364, 3256, 6246, 62, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 11925, 7, 29891, 62, 7890, 17816, 11659, 364, 20520, 828, 513, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 25598, 12, 2435, 3256, 6246, 62, 7890, 17816, 11659, 364, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 3673, 14202, 7, 29891, 62, 7890, 17816, 11659, 364, 6, 7131, 6, 25598, 12, 2435, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2727, 62, 2435, 796, 4818, 8079, 13, 19608, 8079, 13, 2536, 457, 524, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6246, 62, 7890, 17816, 11659, 364, 6, 7131, 6, 25598, 12, 2435, 6, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 36521, 56, 12, 4, 76, 12, 4, 67, 51, 4, 39, 25, 4, 44, 25, 4, 50, 13, 4, 69, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 15526, 276, 3256, 6246, 62, 7890, 17816, 11659, 364, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 11925, 7, 29891, 62, 7890, 17816, 11659, 364, 6, 7131, 6, 15526, 276, 20520, 828, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 2435, 3256, 6246, 62, 7890, 17816, 11659, 364, 6, 7131, 6, 15526, 276, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 3673, 14202, 7, 29891, 62, 7890, 17816, 11659, 364, 6, 7131, 6, 15526, 276, 6, 7131, 6, 2435, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 17535, 62, 2435, 796, 4818, 8079, 13, 19608, 8079, 13, 2536, 457, 524, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6246, 62, 7890, 17816, 11659, 364, 6, 7131, 6, 15526, 276, 6, 7131, 6, 2435, 6, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 36521, 56, 12, 4, 76, 12, 4, 67, 51, 4, 39, 25, 4, 44, 25, 4, 50, 13, 4, 69, 1, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 25598, 62, 2435, 11, 17535, 62, 2435, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 9127, 3256, 6246, 62, 7890, 17816, 11659, 364, 6, 7131, 6, 15526, 276, 6, 12962, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 13376, 3256, 6246, 62, 7890, 17816, 11659, 364, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 11925, 7, 29891, 62, 7890, 17816, 11659, 364, 6, 7131, 6, 13376, 20520, 828, 657, 8, 628, 220, 220, 220, 825, 1332, 62, 1136, 62, 29891, 62, 10951, 62, 259, 12102, 62, 29891, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 13259, 889, 257, 6246, 351, 281, 12515, 6246, 4686, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2116, 13, 8692, 62, 9900, 8, 628, 220, 220, 220, 220, 220, 220, 220, 6246, 62, 312, 796, 705, 1820, 12, 29891, 12, 312, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 796, 334, 26488, 90, 15, 92, 4458, 18982, 7, 29891, 62, 312, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2858, 796, 787, 62, 38986, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2446, 11639, 30076, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3108, 28, 9900, 58, 16, 25, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2581, 796, 19390, 7, 38986, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2882, 796, 18261, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 13169, 13, 1136, 62, 29891, 62, 10951, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 13, 50145, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 13, 6738, 62, 25558, 259, 397, 1140, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 15, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 16, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 58, 17, 60, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 26571, 2882, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 26209, 13, 13376, 11, 939, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2882, 62, 2618, 796, 2882, 13, 2618, 198, 220, 220, 220, 220, 220, 220, 220, 6246, 62, 7890, 796, 33918, 13, 46030, 7, 26209, 62, 2618, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 8692, 62, 6371, 3256, 6246, 62, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 29891, 62, 7890, 17816, 8692, 62, 6371, 6, 4357, 2116, 13, 8692, 62, 9900, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 29891, 62, 12102, 3256, 6246, 62, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 25101, 7, 29891, 62, 7890, 17816, 29891, 62, 12102, 6, 12962, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 30416, 3256, 6246, 62, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 11925, 7, 29891, 62, 7890, 17816, 30416, 20520, 828, 352, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 31373, 3256, 6246, 62, 7890, 17816, 30416, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 29891, 62, 7890, 17816, 30416, 6, 7131, 6, 31373, 6, 4357, 705, 15496, 16177, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 11659, 364, 3256, 6246, 62, 7890, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 11925, 7, 29891, 62, 7890, 17816, 11659, 364, 20520, 828, 513, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 25598, 12, 2435, 3256, 6246, 62, 7890, 17816, 11659, 364, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 14202, 7, 29891, 62, 7890, 17816, 11659, 364, 6, 7131, 6, 25598, 12, 2435, 6, 12962, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 15526, 276, 3256, 6246, 62, 7890, 17816, 11659, 364, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 11925, 7, 29891, 62, 7890, 17816, 11659, 364, 6, 7131, 6, 15526, 276, 20520, 828, 362, 8, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 2435, 3256, 6246, 62, 7890, 17816, 11659, 364, 6, 7131, 6, 15526, 276, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 14202, 7, 29891, 62, 7890, 17816, 11659, 364, 6, 7131, 6, 15526, 276, 6, 7131, 6, 2435, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 9127, 3256, 6246, 62, 7890, 17816, 11659, 364, 6, 7131, 6, 15526, 276, 6, 12962, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 818, 10786, 13376, 3256, 6246, 62, 7890, 17816, 11659, 364, 6, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 11925, 7, 29891, 62, 7890, 17816, 11659, 364, 6, 7131, 6, 13376, 20520, 828, 657, 8, 628, 220, 220, 220, 825, 1332, 62, 2302, 974, 62, 29891, 62, 6738, 62, 9900, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 37895, 257, 6246, 422, 262, 43975, 532, 3967, 1332, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2116, 13, 8692, 62, 9900, 8, 628, 220, 220, 220, 220, 220, 220, 220, 6246, 62, 312, 796, 705, 1820, 12, 29891, 12, 312, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 796, 334, 26488, 90, 15, 92, 4458, 18982, 7, 29891, 62, 312, 8, 628, 220, 220, 220, 220, 220, 220, 220, 21242, 62, 29891, 62, 312, 796, 13169, 13, 2978, 525, 62, 1136, 62, 29891, 62, 312, 62, 6738, 62, 9900, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 36, 13255, 7, 29891, 62, 312, 11, 21242, 62, 29891, 62, 312, 8, 628, 220, 220, 220, 825, 1332, 62, 2302, 974, 62, 29891, 62, 6738, 62, 9900, 62, 259, 12102, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 37895, 257, 6246, 422, 262, 43975, 532, 4633, 1332, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 13169, 796, 23881, 818, 12298, 82, 12397, 46787, 7, 944, 13, 37153, 11, 2116, 13, 8692, 62, 9900, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 796, 334, 26488, 6, 628, 220, 220, 220, 220, 220, 220, 220, 21242, 62, 29891, 62, 312, 796, 13169, 13, 2978, 525, 62, 1136, 62, 29891, 62, 312, 62, 6738, 62, 9900, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 30493, 3792, 14202, 7, 2302, 20216, 62, 29891, 62, 312, 8, 198 ]
2.116793
8,194
"""Prepare subset regions of full NIST NA12878 reference materials for evaluation. Allows preparation of exome or targeted reference materials from the full NIST NA12878 genome. Requires: vcflib: https://github.com/ekg/vcflib bedtools: http://bedtools.readthedocs.org/en/latest/ Usage: prep_rm_subset.py <input_config.yaml> """ import os import sys import subprocess import yaml import pybedtools if __name__ == "__main__": main(sys.argv[1])
[ 37811, 37534, 533, 24637, 7652, 286, 1336, 399, 8808, 11746, 12762, 3695, 4941, 5696, 329, 12660, 13, 198, 198, 34934, 11824, 286, 409, 462, 393, 7977, 4941, 5696, 422, 198, 1169, 1336, 399, 8808, 11746, 12762, 3695, 19270, 13, 198, 198, 39618, 25, 198, 220, 410, 66, 2704, 571, 25, 3740, 1378, 12567, 13, 785, 14, 988, 70, 14, 28435, 2704, 571, 198, 220, 3996, 31391, 25, 2638, 1378, 3077, 31391, 13, 961, 83, 704, 420, 82, 13, 2398, 14, 268, 14, 42861, 14, 198, 198, 28350, 25, 198, 220, 3143, 62, 26224, 62, 7266, 2617, 13, 9078, 1279, 15414, 62, 11250, 13, 88, 43695, 29, 198, 37811, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 850, 14681, 198, 198, 11748, 331, 43695, 198, 11748, 12972, 3077, 31391, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 7, 17597, 13, 853, 85, 58, 16, 12962, 198 ]
2.967532
154
#!/usr/bin/python # -*- coding: utf8 -*- import csv import argparse if __name__ == "__main__": parser = argparse.ArgumentParser(description='This generates a t2t bible.') parser.add_argument('-p', '--plan', help='plan to be used', default="nouveau-testament-commente") #parser.add_argument('-s', '--style', help='style used', #default="default") parser.add_argument('-v', help='show verses references', action='store_const', const=True, default=False) parser.add_argument('-m', help='show marks only', action='store_const', const=True, default=False) #parser.add_argument('output', help='output file') args = parser.parse_args() plan = args.plan #style = args.style #output = args.output showVerse = args.v showMarks = args.m text = "" with open('plans/' + plan + ".csv", 'rb') as csvfile: reader = csv.reader(csvfile, delimiter=',', quotechar='"') r = 0 struct = [] for row in reader: if r != 0: struct.append(row) r += 1 for i in range(len(struct)): row = struct[i] nextRow = -1 text += addTitle(row) if i != len(struct) - 1: nextRow = struct[i + 1] if nextRow != -1 and nextRow[2] == row[2] and nextRow[3] == row[3]: pass else: text += getText(row[0], row[2], row[3], row[4], row[5], row[6], showVerse, showMarks) print text
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 198, 11748, 269, 21370, 198, 11748, 1822, 29572, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 30751, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 11639, 1212, 18616, 257, 256, 17, 83, 41169, 2637, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 12, 79, 3256, 705, 438, 11578, 3256, 1037, 11639, 11578, 284, 307, 973, 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, 4277, 2625, 77, 280, 303, 559, 12, 9288, 3263, 12, 23893, 68, 4943, 198, 220, 220, 220, 1303, 48610, 13, 2860, 62, 49140, 10786, 12, 82, 3256, 705, 438, 7635, 3256, 1037, 11639, 7635, 973, 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, 1303, 12286, 2625, 12286, 4943, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 12, 85, 3256, 1037, 11639, 12860, 24752, 10288, 3256, 2223, 11639, 8095, 62, 9979, 3256, 1500, 28, 17821, 11, 4277, 28, 25101, 8, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, 10786, 12, 76, 3256, 1037, 11639, 12860, 8849, 691, 3256, 2223, 11639, 8095, 62, 9979, 3256, 1500, 28, 17821, 11, 4277, 28, 25101, 8, 628, 220, 220, 220, 1303, 48610, 13, 2860, 62, 49140, 10786, 22915, 3256, 1037, 11639, 22915, 2393, 11537, 198, 220, 220, 220, 26498, 796, 30751, 13, 29572, 62, 22046, 3419, 628, 220, 220, 220, 1410, 796, 26498, 13, 11578, 198, 220, 220, 220, 1303, 7635, 796, 26498, 13, 7635, 198, 220, 220, 220, 1303, 22915, 796, 26498, 13, 22915, 198, 220, 220, 220, 905, 13414, 325, 796, 26498, 13, 85, 198, 220, 220, 220, 905, 44, 5558, 796, 26498, 13, 76, 628, 220, 220, 220, 2420, 796, 13538, 628, 220, 220, 220, 351, 1280, 10786, 489, 504, 14, 6, 1343, 1410, 1343, 27071, 40664, 1600, 705, 26145, 11537, 355, 269, 21370, 7753, 25, 198, 220, 220, 220, 220, 220, 220, 220, 9173, 796, 269, 21370, 13, 46862, 7, 40664, 7753, 11, 46728, 2676, 28, 3256, 3256, 9577, 10641, 11639, 1, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 374, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 2878, 796, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 329, 5752, 287, 9173, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 374, 14512, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2878, 13, 33295, 7, 808, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 15853, 352, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1312, 287, 2837, 7, 11925, 7, 7249, 8, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5752, 796, 2878, 58, 72, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1306, 25166, 796, 532, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 15853, 751, 19160, 7, 808, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1312, 14512, 18896, 7, 7249, 8, 532, 352, 25, 1306, 25166, 796, 2878, 58, 72, 1343, 352, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1306, 25166, 14512, 532, 16, 290, 1306, 25166, 58, 17, 60, 6624, 5752, 58, 17, 60, 290, 1306, 25166, 58, 18, 60, 6624, 5752, 58, 18, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1208, 198, 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, 2420, 15853, 651, 8206, 7, 808, 58, 15, 4357, 5752, 58, 17, 4357, 5752, 58, 18, 4357, 5752, 58, 19, 4357, 5752, 58, 20, 4357, 5752, 58, 21, 4357, 905, 13414, 325, 11, 905, 44, 5558, 8, 628, 220, 220, 220, 220, 220, 220, 220, 3601, 2420, 198 ]
2.15309
712
Scale.default = 'indian' Root.default = 0 Clock.bpm = 80 print(Scale.names()) print(SynthDefs) print(FxList) print(PatternMethods) print(Samples) print(Clock.playing) var.ch = var([0,1],[15,3]) ~p1 >> play('W', amp=.5, dur=6, shape=.5, rate=.5, room=1, formant=[1,1,2]) ~p2 >> play('m', amp=.8, dur=2/3, sample=[0,1,0], room=1).often('stutter', 2, dur=1.5, pan=PRand([-1,1]), rate=1.5) ~s1 >> klank(var.ch+(0,var([2,3,4],6)), amp=.5, oct=4) ~s1 >> klank(var.ch+(0,var([2,3,4],6)), amp=.3, oct=4, spin=1) ~s1 >> klank(var.ch+(0,var([2,3,4],6)), amp=.2, oct=4, spin=2) ~s1 >> klank(var.ch+(0,var([2,3,4],6)), amp=.5, oct=4, spin=4) ~s2 >> blip(var.ch, amp=PWhite(0,.6), dur=PDur(4,6)*2, oct=PRand([4,4,4,5,5,6]), lpf=800, room=1).sometimes('offadd', 4) ~s3 >> sitar(var.ch+PWalk(), dur=.25, amp=PRand([0,.8])[:36], formant=1, oct=PRand([6,7,8]), vib=12, room=1) ~s1 >> klank(var.ch+(0,var([2,3,4],6)), amp=.5, oct=4, spin=4, formant=1) s3.every(6, 'degrade') Clock.future(36, s3.stop) ~p3 >> play('( k[kk ] k[ kk]) |r3|', dur=1, rate=.5, amp=.5, lpf=00, formant=1) p_all.stop()
[ 29990, 13, 12286, 796, 705, 521, 666, 6, 198, 30016, 13, 12286, 796, 657, 198, 44758, 13, 65, 4426, 796, 4019, 198, 198, 4798, 7, 29990, 13, 14933, 28955, 198, 4798, 7, 29934, 400, 7469, 82, 8, 198, 4798, 7, 37, 87, 8053, 8, 198, 4798, 7, 47546, 46202, 8, 198, 4798, 7, 50, 12629, 8, 198, 4798, 7, 44758, 13, 17916, 8, 198, 198, 7785, 13, 354, 796, 1401, 26933, 15, 11, 16, 38430, 1314, 11, 18, 12962, 198, 198, 93, 79, 16, 9609, 711, 10786, 54, 3256, 20766, 28, 13, 20, 11, 22365, 28, 21, 11, 5485, 28, 13, 20, 11, 2494, 28, 13, 20, 11, 2119, 28, 16, 11, 1296, 415, 41888, 16, 11, 16, 11, 17, 12962, 198, 93, 79, 17, 9609, 711, 10786, 76, 3256, 20766, 28, 13, 23, 11, 22365, 28, 17, 14, 18, 11, 6291, 41888, 15, 11, 16, 11, 15, 4357, 2119, 28, 16, 737, 28950, 10786, 301, 10381, 3256, 362, 11, 22365, 28, 16, 13, 20, 11, 3425, 28, 4805, 392, 26933, 12, 16, 11, 16, 46570, 2494, 28, 16, 13, 20, 8, 198, 198, 93, 82, 16, 9609, 479, 75, 962, 7, 7785, 13, 354, 33747, 15, 11, 7785, 26933, 17, 11, 18, 11, 19, 4357, 21, 36911, 20766, 28, 13, 20, 11, 19318, 28, 19, 8, 198, 93, 82, 16, 9609, 479, 75, 962, 7, 7785, 13, 354, 33747, 15, 11, 7785, 26933, 17, 11, 18, 11, 19, 4357, 21, 36911, 20766, 28, 13, 18, 11, 19318, 28, 19, 11, 7906, 28, 16, 8, 198, 93, 82, 16, 9609, 479, 75, 962, 7, 7785, 13, 354, 33747, 15, 11, 7785, 26933, 17, 11, 18, 11, 19, 4357, 21, 36911, 20766, 28, 13, 17, 11, 19318, 28, 19, 11, 7906, 28, 17, 8, 198, 93, 82, 16, 9609, 479, 75, 962, 7, 7785, 13, 354, 33747, 15, 11, 7785, 26933, 17, 11, 18, 11, 19, 4357, 21, 36911, 20766, 28, 13, 20, 11, 19318, 28, 19, 11, 7906, 28, 19, 8, 198, 198, 93, 82, 17, 9609, 698, 541, 7, 7785, 13, 354, 11, 20766, 28, 47, 12256, 7, 15, 38508, 21, 828, 22365, 28, 5760, 333, 7, 19, 11, 21, 27493, 17, 11, 19318, 28, 4805, 392, 26933, 19, 11, 19, 11, 19, 11, 20, 11, 20, 11, 21, 46570, 300, 79, 69, 28, 7410, 11, 2119, 28, 16, 737, 29810, 10786, 2364, 2860, 3256, 604, 8, 198, 198, 93, 82, 18, 9609, 1650, 283, 7, 7785, 13, 354, 10, 47, 35963, 22784, 22365, 28, 13, 1495, 11, 20766, 28, 4805, 392, 26933, 15, 38508, 23, 12962, 58, 25, 2623, 4357, 1296, 415, 28, 16, 11, 19318, 28, 4805, 392, 26933, 21, 11, 22, 11, 23, 46570, 16081, 28, 1065, 11, 2119, 28, 16, 8, 198, 198, 93, 82, 16, 9609, 479, 75, 962, 7, 7785, 13, 354, 33747, 15, 11, 7785, 26933, 17, 11, 18, 11, 19, 4357, 21, 36911, 20766, 28, 13, 20, 11, 19318, 28, 19, 11, 7906, 28, 19, 11, 1296, 415, 28, 16, 8, 198, 198, 82, 18, 13, 16833, 7, 21, 11, 705, 13500, 27585, 11537, 198, 44758, 13, 37443, 7, 2623, 11, 264, 18, 13, 11338, 8, 198, 198, 93, 79, 18, 9609, 711, 10786, 7, 479, 58, 28747, 2361, 479, 58, 479, 74, 12962, 930, 81, 18, 91, 3256, 22365, 28, 16, 11, 2494, 28, 13, 20, 11, 20766, 28, 13, 20, 11, 300, 79, 69, 28, 405, 11, 1296, 415, 28, 16, 8, 198, 198, 79, 62, 439, 13, 11338, 3419, 628 ]
1.867698
582
from collections import OrderedDict import graphene from graphene.types.generic import GenericScalar from graphene.types.objecttype import ObjectTypeOptions from graphene_sqlalchemy import SQLAlchemyConnectionField from graphene_sqlalchemy.types import sort_argument_for_object_type from graphene_sqlalchemy_auto.filter import filter_query from graphene_sqlalchemy_auto.types import SQLAlchemyObjectTypes from graphql_auto.filter import extend_query_filter class CustomConnection(graphene.relay.Connection): """ CustomConnection default add total count for query list """ total_count = graphene.Int() @staticmethod # first lower
[ 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 11748, 42463, 198, 6738, 42463, 13, 19199, 13, 41357, 1330, 42044, 3351, 282, 283, 198, 6738, 42463, 13, 19199, 13, 15252, 4906, 1330, 9515, 6030, 29046, 198, 6738, 42463, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 32048, 15878, 198, 6738, 42463, 62, 25410, 282, 26599, 13, 19199, 1330, 3297, 62, 49140, 62, 1640, 62, 15252, 62, 4906, 198, 6738, 42463, 62, 25410, 282, 26599, 62, 23736, 13, 24455, 1330, 8106, 62, 22766, 198, 6738, 42463, 62, 25410, 282, 26599, 62, 23736, 13, 19199, 1330, 16363, 2348, 26599, 10267, 31431, 198, 198, 6738, 4823, 13976, 62, 23736, 13, 24455, 1330, 9117, 62, 22766, 62, 24455, 628, 198, 198, 4871, 8562, 32048, 7, 70, 2416, 29473, 13, 2411, 323, 13, 32048, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 8562, 32048, 628, 220, 220, 220, 220, 220, 220, 220, 4277, 751, 2472, 954, 329, 12405, 1351, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2472, 62, 9127, 796, 42463, 13, 5317, 3419, 628, 220, 220, 220, 2488, 12708, 24396, 628, 198, 198, 2, 717, 2793, 628 ]
3.57754
187
from classytags.arguments import Argument from classytags.core import Tag, Options from django import template from cms.plugin_rendering import render_placeholder from cms.stacks.models import Stack register = template.Library() register.tag(StackNode)
[ 6738, 1398, 20760, 3775, 13, 853, 2886, 1330, 45751, 198, 6738, 1398, 20760, 3775, 13, 7295, 1330, 17467, 11, 18634, 198, 6738, 42625, 14208, 1330, 11055, 198, 198, 6738, 269, 907, 13, 33803, 62, 13287, 278, 1330, 8543, 62, 5372, 13829, 198, 198, 6738, 269, 907, 13, 301, 4595, 13, 27530, 1330, 23881, 198, 198, 30238, 796, 11055, 13, 23377, 3419, 628, 198, 198, 30238, 13, 12985, 7, 25896, 19667, 8, 198 ]
3.597222
72
from collections import namedtuple import pprint from enum import Enum Track = namedtuple('Track', 'direction x_low x_high y_low y_high') def make_tracks(xs, ys, points): """ Give a list of xs columns and ys rows and points, return a list of Track's and connections between the tracks. An assert will fail if each point in the point list is not covered by a column in xs or a row in ys. Connections will be models as indicies into the track list. Return: [Track], [(index into track list, index into track list)] >>> pos = [ ... (0,0), (2,0), ... (0,1), (1,1), (2,1), ... (0,2), (2,2), ... (0,3), (1,3), (2,3), ... (0,4), (2,4), ... ] >>> xs = [0, 2] >>> ys = [1, 3] >>> tracks, connections = make_tracks(xs, ys, pos) >>> print_tracks(tracks) [Track(direction='Y', x_low=0, x_high=0, y_low=0, y_high=4), Track(direction='Y', x_low=2, x_high=2, y_low=0, y_high=4), Track(direction='X', x_low=0, x_high=2, y_low=1, y_high=1), Track(direction='X', x_low=0, x_high=2, y_low=3, y_high=3)] >>> print(connections) [(3, 0), (2, 0), (2, 1)] >>> pos = [ ... (68,48), (69,48), ... (68,49), (69,49), ... (69,50), ... (69,51), ... (69,52), ... (69,53), (70,53), (71,53), (72,53)] >>> xs = [68, 69] >>> ys = [53] >>> tracks, connections = make_tracks(xs, ys, pos) >>> print_tracks(tracks) [Track(direction='Y', x_low=68, x_high=68, y_low=48, y_high=53), Track(direction='Y', x_low=69, x_high=69, y_low=48, y_high=53), Track(direction='X', x_low=68, x_high=72, y_low=53, y_high=53)] >>> print(connections) [(2, 0), (2, 1)] """ x_set = set(xs) y_set = set(ys) for x, y in points: assert x in x_set or y in y_set all_xs, all_ys = zip(*points) x_min = min(all_xs) x_max = max(all_xs) y_min = min(all_ys) y_max = max(all_ys) tracks = [] x_tracks = [] y_tracks = [] for x in xs: tracks.append(Track( direction='Y', x_low=x, x_high=x, y_low=y_min, y_high=y_max, )) y_tracks.append(len(tracks)-1) for y in ys: tracks.append(Track( direction='X', x_low=x_min, x_high=x_max, y_low=y, y_high=y, )) x_tracks.append(len(tracks)-1) if len(tracks) == 1: return tracks, [] # If there is more than 1 track, there must be a track in each dimension assert len(xs) >= 1 and len(ys) >= 1 connections = set() # Always just connect X tracks to the first Y track, and Y tracks to the # first X tracks. # # To dedup connections, the x channel track will appear first in the # connection list. for idx, track in enumerate(tracks): if track.direction == 'X': connections.add((idx, y_tracks[0])) else: assert track.direction == 'Y' connections.add((x_tracks[0], idx)) return tracks, list(connections) if __name__ == "__main__": main()
[ 6738, 17268, 1330, 3706, 83, 29291, 198, 11748, 279, 4798, 198, 6738, 33829, 1330, 2039, 388, 198, 198, 24802, 796, 3706, 83, 29291, 10786, 24802, 3256, 705, 37295, 2124, 62, 9319, 2124, 62, 8929, 331, 62, 9319, 331, 62, 8929, 11537, 198, 198, 4299, 787, 62, 46074, 7, 34223, 11, 331, 82, 11, 2173, 2599, 198, 220, 220, 220, 37227, 13786, 257, 1351, 286, 2124, 82, 15180, 290, 331, 82, 15274, 290, 2173, 11, 1441, 257, 1351, 286, 198, 220, 220, 220, 220, 220, 220, 220, 17762, 338, 290, 8787, 1022, 262, 8339, 13, 628, 220, 220, 220, 220, 220, 220, 220, 1052, 6818, 481, 2038, 611, 1123, 966, 287, 262, 966, 1351, 318, 407, 5017, 416, 198, 220, 220, 220, 220, 220, 220, 220, 257, 5721, 287, 2124, 82, 393, 257, 5752, 287, 331, 82, 13, 628, 220, 220, 220, 220, 220, 220, 220, 8113, 507, 481, 307, 4981, 355, 2699, 444, 656, 262, 2610, 1351, 13, 628, 220, 220, 220, 220, 220, 220, 220, 8229, 25, 198, 220, 220, 220, 220, 220, 220, 220, 685, 24802, 4357, 47527, 9630, 656, 2610, 1351, 11, 6376, 656, 2610, 1351, 15437, 628, 220, 220, 220, 13163, 1426, 796, 685, 198, 220, 220, 220, 2644, 357, 15, 11, 15, 828, 220, 220, 220, 220, 220, 220, 220, 357, 17, 11, 15, 828, 198, 220, 220, 220, 2644, 357, 15, 11, 16, 828, 357, 16, 11, 16, 828, 357, 17, 11, 16, 828, 198, 220, 220, 220, 2644, 357, 15, 11, 17, 828, 220, 220, 220, 220, 220, 220, 220, 357, 17, 11, 17, 828, 198, 220, 220, 220, 2644, 357, 15, 11, 18, 828, 357, 16, 11, 18, 828, 357, 17, 11, 18, 828, 198, 220, 220, 220, 2644, 357, 15, 11, 19, 828, 220, 220, 220, 220, 220, 220, 220, 357, 17, 11, 19, 828, 198, 220, 220, 220, 2644, 2361, 198, 220, 220, 220, 13163, 2124, 82, 796, 685, 15, 11, 362, 60, 198, 220, 220, 220, 13163, 331, 82, 796, 685, 16, 11, 513, 60, 198, 220, 220, 220, 13163, 8339, 11, 8787, 796, 787, 62, 46074, 7, 34223, 11, 331, 82, 11, 1426, 8, 198, 220, 220, 220, 13163, 3601, 62, 46074, 7, 46074, 8, 198, 220, 220, 220, 685, 24802, 7, 37295, 11639, 56, 3256, 2124, 62, 9319, 28, 15, 11, 2124, 62, 8929, 28, 15, 11, 331, 62, 9319, 28, 15, 11, 331, 62, 8929, 28, 19, 828, 198, 220, 220, 220, 220, 17762, 7, 37295, 11639, 56, 3256, 2124, 62, 9319, 28, 17, 11, 2124, 62, 8929, 28, 17, 11, 331, 62, 9319, 28, 15, 11, 331, 62, 8929, 28, 19, 828, 198, 220, 220, 220, 220, 17762, 7, 37295, 11639, 55, 3256, 2124, 62, 9319, 28, 15, 11, 2124, 62, 8929, 28, 17, 11, 331, 62, 9319, 28, 16, 11, 331, 62, 8929, 28, 16, 828, 198, 220, 220, 220, 220, 17762, 7, 37295, 11639, 55, 3256, 2124, 62, 9319, 28, 15, 11, 2124, 62, 8929, 28, 17, 11, 331, 62, 9319, 28, 18, 11, 331, 62, 8929, 28, 18, 15437, 198, 220, 220, 220, 13163, 3601, 7, 8443, 507, 8, 198, 220, 220, 220, 47527, 18, 11, 657, 828, 357, 17, 11, 657, 828, 357, 17, 11, 352, 15437, 628, 220, 220, 220, 13163, 1426, 796, 685, 198, 220, 220, 220, 2644, 357, 3104, 11, 2780, 828, 357, 3388, 11, 2780, 828, 198, 220, 220, 220, 2644, 357, 3104, 11, 2920, 828, 357, 3388, 11, 2920, 828, 198, 220, 220, 220, 2644, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 3388, 11, 1120, 828, 198, 220, 220, 220, 2644, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 3388, 11, 4349, 828, 198, 220, 220, 220, 2644, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 3388, 11, 4309, 828, 198, 220, 220, 220, 2644, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 3388, 11, 4310, 828, 357, 2154, 11, 4310, 828, 357, 4869, 11, 4310, 828, 357, 4761, 11, 4310, 15437, 198, 220, 220, 220, 13163, 2124, 82, 796, 685, 3104, 11, 8644, 60, 198, 220, 220, 220, 13163, 331, 82, 796, 685, 4310, 60, 198, 220, 220, 220, 13163, 8339, 11, 8787, 796, 787, 62, 46074, 7, 34223, 11, 331, 82, 11, 1426, 8, 198, 220, 220, 220, 13163, 3601, 62, 46074, 7, 46074, 8, 198, 220, 220, 220, 685, 24802, 7, 37295, 11639, 56, 3256, 2124, 62, 9319, 28, 3104, 11, 2124, 62, 8929, 28, 3104, 11, 331, 62, 9319, 28, 2780, 11, 331, 62, 8929, 28, 4310, 828, 198, 220, 220, 220, 220, 17762, 7, 37295, 11639, 56, 3256, 2124, 62, 9319, 28, 3388, 11, 2124, 62, 8929, 28, 3388, 11, 331, 62, 9319, 28, 2780, 11, 331, 62, 8929, 28, 4310, 828, 198, 220, 220, 220, 220, 17762, 7, 37295, 11639, 55, 3256, 2124, 62, 9319, 28, 3104, 11, 2124, 62, 8929, 28, 4761, 11, 331, 62, 9319, 28, 4310, 11, 331, 62, 8929, 28, 4310, 15437, 198, 220, 220, 220, 13163, 3601, 7, 8443, 507, 8, 198, 220, 220, 220, 47527, 17, 11, 657, 828, 357, 17, 11, 352, 15437, 628, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2124, 62, 2617, 796, 900, 7, 34223, 8, 198, 220, 220, 220, 331, 62, 2617, 796, 900, 7, 893, 8, 628, 220, 220, 220, 329, 2124, 11, 331, 287, 2173, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 2124, 287, 2124, 62, 2617, 393, 331, 287, 331, 62, 2617, 628, 220, 220, 220, 477, 62, 34223, 11, 477, 62, 893, 796, 19974, 46491, 13033, 8, 198, 220, 220, 220, 2124, 62, 1084, 796, 949, 7, 439, 62, 34223, 8, 198, 220, 220, 220, 2124, 62, 9806, 796, 3509, 7, 439, 62, 34223, 8, 198, 220, 220, 220, 331, 62, 1084, 796, 949, 7, 439, 62, 893, 8, 198, 220, 220, 220, 331, 62, 9806, 796, 3509, 7, 439, 62, 893, 8, 628, 220, 220, 220, 8339, 796, 17635, 198, 220, 220, 220, 2124, 62, 46074, 796, 17635, 198, 220, 220, 220, 331, 62, 46074, 796, 17635, 198, 220, 220, 220, 329, 2124, 287, 2124, 82, 25, 198, 220, 220, 220, 220, 220, 220, 220, 8339, 13, 33295, 7, 24802, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4571, 11639, 56, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 62, 9319, 28, 87, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 62, 8929, 28, 87, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 331, 62, 9319, 28, 88, 62, 1084, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 331, 62, 8929, 28, 88, 62, 9806, 11, 198, 220, 220, 220, 220, 220, 220, 220, 15306, 198, 220, 220, 220, 220, 220, 220, 220, 331, 62, 46074, 13, 33295, 7, 11925, 7, 46074, 13219, 16, 8, 628, 220, 220, 220, 329, 331, 287, 331, 82, 25, 198, 220, 220, 220, 220, 220, 220, 220, 8339, 13, 33295, 7, 24802, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4571, 11639, 55, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 62, 9319, 28, 87, 62, 1084, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2124, 62, 8929, 28, 87, 62, 9806, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 331, 62, 9319, 28, 88, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 331, 62, 8929, 28, 88, 11, 198, 220, 220, 220, 220, 220, 220, 220, 15306, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 62, 46074, 13, 33295, 7, 11925, 7, 46074, 13219, 16, 8, 628, 220, 220, 220, 611, 18896, 7, 46074, 8, 6624, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 8339, 11, 17635, 628, 220, 220, 220, 1303, 1002, 612, 318, 517, 621, 352, 2610, 11, 612, 1276, 307, 257, 2610, 287, 1123, 15793, 198, 220, 220, 220, 6818, 18896, 7, 34223, 8, 18189, 352, 290, 18896, 7, 893, 8, 18189, 352, 628, 220, 220, 220, 8787, 796, 900, 3419, 628, 220, 220, 220, 1303, 16622, 655, 2018, 1395, 8339, 284, 262, 717, 575, 2610, 11, 290, 575, 8339, 284, 262, 198, 220, 220, 220, 1303, 717, 1395, 8339, 13, 198, 220, 220, 220, 1303, 198, 220, 220, 220, 1303, 1675, 4648, 929, 8787, 11, 262, 2124, 6518, 2610, 481, 1656, 717, 287, 262, 198, 220, 220, 220, 1303, 4637, 1351, 13, 198, 220, 220, 220, 329, 4686, 87, 11, 2610, 287, 27056, 378, 7, 46074, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 611, 2610, 13, 37295, 6624, 705, 55, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8787, 13, 2860, 19510, 312, 87, 11, 331, 62, 46074, 58, 15, 60, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 2073, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6818, 2610, 13, 37295, 6624, 705, 56, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8787, 13, 2860, 19510, 87, 62, 46074, 58, 15, 4357, 4686, 87, 4008, 628, 220, 220, 220, 1441, 8339, 11, 1351, 7, 8443, 507, 8, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.00806
1,613
from PyQt4 import QtGui, QtCore from easypyqt.widget import basicwidget class ButtonGroupWidget(basicwidget.BasicWidget): """ A group of widgets with horizontal or vertical layout. EXAMPLE:: buttonList = [('test1', 'TestONE'), ('test2', 'TestTWO')] fw = ButtonGroupWidget(button_list=buttonList, label='My Test', exclusive=True) fw.show() """ FONT_GRAY = 'color: rgb(160, 160, 160)' buttonClicked = QtCore.pyqtSignal(QtGui.QPushButton) def __init__(self, button_list=None, label=None, vertical=False, exclusive=False, exclusive_color='#46c878'): """ :param button_list: *(list(tuple))* list of string tuples. [(name, label)] :param label: *(str)* visible label or "title" for the button group :param vertical: *(bool)* if True will lay buttons out vertically :param exclusive: *(bool)* if True will highlight button clicked and ghost the rest. Button can be accessed via get_exclusive_button() or get_exclusive_button_name() :param exclusive_color *(str)* hex colour to use if exclusive option is True """ super(ButtonGroupWidget, self).__init__(vertical=vertical) self.button_list = button_list or [] self.exclusive = exclusive self.exclusive_color = exclusive_color if label: label = QtGui.QLabel(label) self.basic_layout.addWidget(label) for each in self.button_list: button = QtGui.QPushButton(each[1]) button.setObjectName(each[0]) button.exclusive = False button.clicked.connect(self.button_clicked) self.basic_layout.addWidget(button) def get_button_by_name(self, name): """ Returns the QPushButton that has name matching name passed :param name: :return: """ for each in self.get_all_buttons(): if each.objectName() == name: return each def button_clicked(self): """ This executes when a button is clicked. :return: """ button = self.sender() if self.exclusive: button.setStyleSheet('background-color: {}'.format(self.exclusive_color)) button.exclusive = True for each in [x for x in self.get_all_buttons() if x.objectName() != button.objectName()]: each.exclusive = False each.setStyleSheet(self.FONT_GRAY) self.buttonClicked.emit(button) def get_exclusive_button(self): """ :return: *(QtGui.QPushButton)* """ if not self.exclusive: raise RuntimeError('This ButtonGroupWidget has not been instantiated with param exclusive = True') for each in self.get_all_buttons(): if each.exclusive: return each def get_exclusive_button_name(self): """ :return: *(str)* name of the exclusive button """ return self.get_exclusive_button().objectName() if __name__ == '__main__': import sys app = QtGui.QApplication(sys.argv) buttonList = [('test1', 'TestONE'), ('test2', 'TestTWO')] fw = ButtonGroupWidget(button_list=buttonList, label='My Test', exclusive=True) fw.show() sys.exit(app.exec_())
[ 6738, 9485, 48, 83, 19, 1330, 33734, 8205, 72, 11, 33734, 14055, 198, 198, 6738, 2562, 9078, 39568, 13, 42655, 1330, 4096, 42655, 628, 198, 4871, 20969, 13247, 38300, 7, 35487, 42655, 13, 26416, 38300, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 317, 1448, 286, 40803, 351, 16021, 393, 11723, 12461, 13, 628, 220, 220, 220, 7788, 2390, 16437, 3712, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4936, 8053, 796, 685, 10786, 9288, 16, 3256, 705, 14402, 11651, 33809, 19203, 9288, 17, 3256, 705, 14402, 34551, 46, 11537, 60, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 86, 796, 20969, 13247, 38300, 7, 16539, 62, 4868, 28, 16539, 8053, 11, 6167, 11639, 3666, 6208, 3256, 8568, 28, 17821, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 86, 13, 12860, 3419, 628, 220, 220, 220, 37227, 198, 220, 220, 220, 376, 35830, 62, 38, 30631, 796, 705, 8043, 25, 46140, 7, 14198, 11, 13454, 11, 13454, 33047, 628, 220, 220, 220, 4936, 8164, 276, 796, 33734, 14055, 13, 9078, 39568, 11712, 282, 7, 48, 83, 8205, 72, 13, 48, 49222, 21864, 8, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 4936, 62, 4868, 28, 14202, 11, 6167, 28, 14202, 11, 11723, 28, 25101, 11, 8568, 28, 25101, 11, 8568, 62, 8043, 11639, 2, 3510, 66, 23, 3695, 6, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 628, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 4936, 62, 4868, 25, 220, 220, 220, 220, 1635, 7, 4868, 7, 83, 29291, 4008, 9, 1351, 286, 4731, 12777, 2374, 13, 47527, 3672, 11, 6167, 15437, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 6167, 25, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 7, 2536, 27493, 7424, 6167, 393, 366, 7839, 1, 329, 262, 4936, 1448, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 11723, 25, 220, 220, 220, 220, 220, 220, 220, 1635, 7, 30388, 27493, 611, 6407, 481, 3830, 12163, 503, 31677, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 8568, 25, 220, 220, 220, 220, 220, 220, 1635, 7, 30388, 27493, 611, 6407, 481, 7238, 4936, 28384, 290, 10905, 262, 1334, 13, 20969, 460, 307, 17535, 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, 2884, 651, 62, 41195, 62, 16539, 3419, 393, 651, 62, 41195, 62, 16539, 62, 3672, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 8568, 62, 8043, 220, 1635, 7, 2536, 27493, 17910, 9568, 284, 779, 611, 8568, 3038, 318, 6407, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 2208, 7, 21864, 13247, 38300, 11, 2116, 737, 834, 15003, 834, 7, 1851, 605, 28, 1851, 605, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 16539, 62, 4868, 796, 4936, 62, 4868, 393, 17635, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 41195, 796, 8568, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 41195, 62, 8043, 796, 8568, 62, 8043, 628, 220, 220, 220, 220, 220, 220, 220, 611, 6167, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6167, 796, 33734, 8205, 72, 13, 9711, 9608, 7, 18242, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 35487, 62, 39786, 13, 2860, 38300, 7, 18242, 8, 628, 220, 220, 220, 220, 220, 220, 220, 329, 1123, 287, 2116, 13, 16539, 62, 4868, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4936, 796, 33734, 8205, 72, 13, 48, 49222, 21864, 7, 27379, 58, 16, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4936, 13, 2617, 10267, 5376, 7, 27379, 58, 15, 12962, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4936, 13, 41195, 796, 10352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4936, 13, 565, 9484, 13, 8443, 7, 944, 13, 16539, 62, 565, 9484, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 35487, 62, 39786, 13, 2860, 38300, 7, 16539, 8, 628, 220, 220, 220, 825, 651, 62, 16539, 62, 1525, 62, 3672, 7, 944, 11, 1438, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 16409, 262, 1195, 49222, 21864, 326, 468, 1438, 12336, 1438, 3804, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 17143, 1438, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 329, 1123, 287, 2116, 13, 1136, 62, 439, 62, 4360, 27288, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1123, 13, 15252, 5376, 3419, 6624, 1438, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 1123, 628, 220, 220, 220, 825, 4936, 62, 565, 9484, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 770, 42985, 618, 257, 4936, 318, 28384, 13, 628, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 4936, 796, 2116, 13, 82, 2194, 3419, 628, 220, 220, 220, 220, 220, 220, 220, 611, 2116, 13, 41195, 25, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4936, 13, 2617, 21466, 3347, 316, 10786, 25249, 12, 8043, 25, 23884, 4458, 18982, 7, 944, 13, 41195, 62, 8043, 4008, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4936, 13, 41195, 796, 6407, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 329, 1123, 287, 685, 87, 329, 2124, 287, 2116, 13, 1136, 62, 439, 62, 4360, 27288, 3419, 611, 2124, 13, 15252, 5376, 3419, 14512, 4936, 13, 15252, 5376, 3419, 5974, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1123, 13, 41195, 796, 10352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1123, 13, 2617, 21466, 3347, 316, 7, 944, 13, 37, 35830, 62, 38, 30631, 8, 628, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 16539, 8164, 276, 13, 368, 270, 7, 16539, 8, 628, 220, 220, 220, 825, 651, 62, 41195, 62, 16539, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 220, 220, 220, 1635, 7, 48, 83, 8205, 72, 13, 48, 49222, 21864, 27493, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 611, 407, 2116, 13, 41195, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 43160, 12331, 10786, 1212, 20969, 13247, 38300, 468, 407, 587, 9113, 12931, 351, 5772, 8568, 796, 6407, 11537, 628, 220, 220, 220, 220, 220, 220, 220, 329, 1123, 287, 2116, 13, 1136, 62, 439, 62, 4360, 27288, 33529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 1123, 13, 41195, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 1123, 628, 220, 220, 220, 825, 651, 62, 41195, 62, 16539, 62, 3672, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 7783, 25, 220, 220, 220, 1635, 7, 2536, 27493, 1438, 286, 262, 8568, 4936, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 1136, 62, 41195, 62, 16539, 22446, 15252, 5376, 3419, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1330, 25064, 628, 220, 220, 220, 598, 796, 33734, 8205, 72, 13, 48, 23416, 7, 17597, 13, 853, 85, 8, 628, 220, 220, 220, 4936, 8053, 796, 685, 10786, 9288, 16, 3256, 705, 14402, 11651, 33809, 19203, 9288, 17, 3256, 705, 14402, 34551, 46, 11537, 60, 198, 220, 220, 220, 277, 86, 796, 20969, 13247, 38300, 7, 16539, 62, 4868, 28, 16539, 8053, 11, 6167, 11639, 3666, 6208, 3256, 8568, 28, 17821, 8, 198, 220, 220, 220, 277, 86, 13, 12860, 3419, 628, 220, 220, 220, 25064, 13, 37023, 7, 1324, 13, 18558, 62, 28955, 198 ]
2.313525
1,464
import pytest from docopt import docopt, DocoptExit from we_get.core.we_get import WG from we_get.core import we_get @pytest.mark.parametrize( 'argv, exp_res', [ [None, {'arguments': None, 'parguments': {}, 'we_get_run': 0}], [['--search', 'ubuntu'], { 'arguments': { '--config': [], '--filter': [], '--genre': [], '--get-list': 0, '--help': 0, '--json': 0, '--links': 0, '--list': 0, '--quality': [], '--results': [], '--search': ['ubuntu'], '--sfw': 0, '--sort-type': [], '--target': ['all'], '--version': 0 }, 'parguments': { '--search': ['ubuntu'], '--target': ['all']}, 'we_get_run': 1 }], ] ) @pytest.mark.parametrize( 'argv, exp_res', [ [ [], { '--filter': [], '--genre': [], '--get-list': 0, '--help': 0, '--json': 0, '--links': 0, '--list': 0, '--quality': [], '--results': [], '--search': [], '--sort-type': [], '--target': ['all'], '--version': 0, '--config': [], '--sfw': 0} ], ], )
[ 11748, 12972, 9288, 198, 6738, 2205, 8738, 1330, 2205, 8738, 11, 14432, 8738, 30337, 198, 198, 6738, 356, 62, 1136, 13, 7295, 13, 732, 62, 1136, 1330, 370, 38, 198, 6738, 356, 62, 1136, 13, 7295, 1330, 356, 62, 1136, 628, 198, 31, 9078, 9288, 13, 4102, 13, 17143, 316, 380, 2736, 7, 198, 220, 220, 220, 705, 853, 85, 11, 1033, 62, 411, 3256, 198, 220, 220, 220, 685, 198, 220, 220, 220, 220, 220, 220, 220, 685, 14202, 11, 1391, 6, 853, 2886, 10354, 6045, 11, 705, 79, 853, 2886, 10354, 1391, 5512, 705, 732, 62, 1136, 62, 5143, 10354, 657, 92, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 16410, 6, 438, 12947, 3256, 705, 32230, 6, 4357, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 853, 2886, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 11250, 10354, 685, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 24455, 10354, 685, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 35850, 10354, 685, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 1136, 12, 4868, 10354, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 16794, 10354, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 17752, 10354, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 28751, 10354, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 4868, 10354, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 13237, 10354, 685, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 43420, 10354, 685, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 12947, 10354, 37250, 32230, 6, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 28202, 86, 10354, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 30619, 12, 4906, 10354, 685, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 16793, 10354, 37250, 439, 6, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 9641, 10354, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8964, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 79, 853, 2886, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 12947, 10354, 37250, 32230, 6, 4357, 705, 438, 16793, 10354, 37250, 439, 20520, 5512, 705, 732, 62, 1136, 62, 5143, 10354, 352, 198, 220, 220, 220, 220, 220, 220, 220, 1782, 4357, 198, 220, 220, 220, 2361, 198, 8, 628, 198, 31, 9078, 9288, 13, 4102, 13, 17143, 316, 380, 2736, 7, 198, 220, 220, 220, 705, 853, 85, 11, 1033, 62, 411, 3256, 198, 220, 220, 220, 685, 198, 220, 220, 220, 220, 220, 220, 220, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 24455, 10354, 685, 4357, 705, 438, 35850, 10354, 685, 4357, 705, 438, 1136, 12, 4868, 10354, 657, 11, 705, 438, 16794, 10354, 657, 11, 705, 438, 17752, 10354, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 28751, 10354, 657, 11, 705, 438, 4868, 10354, 657, 11, 705, 438, 13237, 10354, 685, 4357, 705, 438, 43420, 10354, 685, 4357, 705, 438, 12947, 10354, 685, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 438, 30619, 12, 4906, 10354, 685, 4357, 705, 438, 16793, 10354, 37250, 439, 6, 4357, 705, 438, 9641, 10354, 657, 11, 705, 438, 11250, 10354, 685, 4357, 705, 438, 28202, 86, 10354, 657, 92, 198, 220, 220, 220, 220, 220, 220, 220, 16589, 198, 220, 220, 220, 16589, 198, 8, 198 ]
1.671698
795