content
stringlengths 1
1.04M
| input_ids
sequencelengths 1
774k
| ratio_char_token
float64 0.38
22.9
| token_count
int64 1
774k
|
---|---|---|---|
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from pants.backend.python.lint import python_format_target, python_lint_target
from pants.backend.python.lint.black import rules as black_rules
| [
2,
15069,
13130,
41689,
1628,
20420,
357,
3826,
27342,
9865,
3843,
20673,
13,
9132,
737,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
3826,
38559,
24290,
737,
628,
198,
6738,
12581,
13,
1891,
437,
13,
29412,
13,
75,
600,
1330,
21015,
62,
18982,
62,
16793,
11,
21015,
62,
75,
600,
62,
16793,
198,
6738,
12581,
13,
1891,
437,
13,
29412,
13,
75,
600,
13,
13424,
1330,
3173,
355,
2042,
62,
38785,
628
] | 3.61039 | 77 |
# -*- coding: utf-8 -*-
"""
Created on Sat Aug 01 11:56:10 2015
@author: Zombie.Soc//similarities
"""
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
print ("Reconstruction of Thomson spectrometer parabolas - to check parameters")
#Parameters
# !!! 0 point coordinates in px
x0 = 825
y0 = 305
B = 0.21 #magnetic field strength in Tesla
D = 0.670 # Drift of spectrometer
q = 1.6027E-19 # elemental charge q
l = 0.05 # lenght of magnet in m
Abbildung = 0.00004521 # magnification factor m/pix
mp = 1.673E-27 # mass proton
E1 = 3.985E3 # Potential of Efield in applied Voltage
Le = 0.0098 # distance of field plates in m
EF = E1/Le
v0 = 1E7 #v0 in m/s
print("charge to mass ratio?")
ZA= input("Z/A:" ) # charge to mass number of ion
# 0.355 +/- 0.002 trace1 between C4+ und O5+
# 0.344 +/- 0.002 trace2 between C4+ und O5+
# 0.466 +/- 0.005 trace between C6+ und O7+
#0.428 +/- 0. trace after O7+
#0.405 +/-0.002 trace after C+5
#0.32 +/- 0.005 trace after C4+
#0.28 +/-0.005 trace after O5+
#now plot:
img = mpimg.imread('20140131_012ions.jpg')
imshow(img)
lum_img = img[:, :]
imgplot = plt.imshow(lum_img)
# spectral, hot, cool, ... tip was falsches ein.. dann kommen vorschläge :)
imgplot.set_cmap('binary_r')
plt.plot(xp(x0),parabely(x0,ZA),"r")
# plot - loop for elements (carbon C12, CC, O16, 015, N14, N15...)
C12 = 1.0/12.0107
C24 = 0.5/12.0107
O16 = 1.0/15.9949
O15 = 1.0/15.0031
N14 = 1.0/14.0067
N15 = 1.0/15.00011
C13 = 1.0/13.03355
C17 = 1.0/16.0226
C14 = 1.0/14.0334
C15 = 1.0/15.0106
F19 = 1.0/18.9984
#CH=1.0/(1.007276*2+12.0107)
for i in range(2,6+1):
#plt.plot(xp(x0), parabely(x0,C17*(i)),"y")
#plt.plot(xp(x0), parabely(x0,O15*(i+1)),"y")
#plt.plot(xp(x0), parabely(x0,C13*(i)),"g")
#plt.plot(xp(x0), parabely(x0,C15*(i)),"r")
#plt.plot(xp(x0), parabely(x0,C24*(i+6)),"y")
#plt.plot(xp(x0), parabely(x0,C12*(i)),"w")
plt.plot(xp(x0), parabely(x0,C12*(i)),"y")
#plt.plot(xp(x0), parabely(x0,C12*(i)+0.0015),"y--")
plt.plot(xp(x0), parabely(x0,O16*(i+1)),"b")
# plt.plot(xp(x0), parabely(x0,O16*(i+1)+0.0015),"b--")
#plt.plot(xp(x0), parabely(x0,N14*(i)),"g")
#print parabely(x0,i)
#plt.ylabel('C+',"i")0
plt.axis([0, 1032, 200, 756])
#plt.legend("+")
plt.show()
###
raw_input('press Return>')
| [
201,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
201,
198,
37811,
201,
198,
41972,
319,
7031,
2447,
5534,
1367,
25,
3980,
25,
940,
1853,
201,
198,
201,
198,
31,
9800,
25,
14609,
13,
37949,
1003,
38610,
871,
201,
198,
37811,
201,
198,
201,
198,
201,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
201,
198,
11748,
2603,
29487,
8019,
13,
9060,
355,
29034,
9600,
201,
198,
201,
198,
201,
198,
201,
198,
201,
198,
4798,
5855,
6690,
261,
15019,
286,
32425,
5444,
398,
2357,
1582,
397,
12456,
532,
284,
2198,
10007,
4943,
201,
198,
201,
198,
201,
198,
201,
198,
2,
48944,
201,
198,
2,
220,
10185,
657,
966,
22715,
287,
279,
87,
201,
198,
87,
15,
796,
807,
1495,
201,
198,
88,
15,
796,
32747,
201,
198,
33,
796,
657,
13,
2481,
1303,
19726,
9833,
2214,
4202,
287,
11938,
201,
198,
35,
796,
657,
13,
43798,
1303,
39819,
286,
5444,
398,
2357,
201,
198,
80,
796,
352,
13,
1899,
1983,
36,
12,
1129,
1303,
25601,
3877,
10662,
201,
198,
75,
796,
657,
13,
2713,
1303,
18896,
456,
83,
286,
19972,
287,
285,
201,
198,
4826,
65,
688,
2150,
796,
657,
13,
2388,
2231,
2481,
1303,
44120,
5766,
285,
14,
79,
844,
201,
198,
3149,
796,
352,
13,
45758,
36,
12,
1983,
1303,
2347,
386,
1122,
201,
198,
36,
16,
796,
513,
13,
42250,
36,
18,
1303,
32480,
286,
412,
3245,
287,
5625,
45444,
201,
198,
3123,
796,
657,
13,
405,
4089,
1303,
5253,
286,
2214,
13375,
287,
285,
201,
198,
25425,
796,
412,
16,
14,
3123,
201,
198,
85,
15,
796,
352,
36,
22,
1303,
85,
15,
287,
285,
14,
82,
201,
198,
201,
198,
4798,
7203,
10136,
284,
2347,
8064,
1701,
8,
201,
198,
34892,
28,
5128,
7203,
57,
14,
32,
11097,
1267,
1303,
3877,
284,
2347,
1271,
286,
22088,
201,
198,
201,
198,
201,
198,
2,
657,
13,
28567,
29694,
657,
13,
21601,
12854,
16,
1022,
327,
19,
10,
3318,
220,
440,
20,
10,
201,
198,
2,
657,
13,
33535,
29694,
657,
13,
21601,
12854,
17,
1022,
327,
19,
10,
3318,
440,
20,
10,
201,
198,
2,
657,
13,
42199,
29694,
657,
13,
22544,
12854,
1022,
327,
21,
10,
3318,
440,
22,
10,
201,
198,
2,
15,
13,
40173,
29694,
657,
13,
220,
220,
220,
220,
12854,
706,
440,
22,
10,
201,
198,
2,
15,
13,
26598,
29694,
15,
13,
21601,
12854,
706,
327,
10,
20,
201,
198,
2,
15,
13,
2624,
220,
29694,
657,
13,
22544,
12854,
706,
327,
19,
10,
201,
198,
2,
15,
13,
2078,
220,
29694,
15,
13,
22544,
220,
220,
12854,
706,
440,
20,
10,
201,
198,
201,
198,
201,
198,
201,
198,
201,
198,
201,
198,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
201,
198,
220,
220,
220,
220,
201,
198,
2,
2197,
7110,
25,
201,
198,
220,
220,
220,
220,
201,
198,
9600,
796,
29034,
9600,
13,
320,
961,
10786,
4967,
486,
3132,
62,
30206,
507,
13,
9479,
11537,
201,
198,
201,
198,
320,
12860,
7,
9600,
8,
201,
198,
201,
198,
75,
388,
62,
9600,
796,
33705,
58,
45299,
1058,
60,
201,
198,
201,
198,
9600,
29487,
796,
458,
83,
13,
320,
12860,
7,
75,
388,
62,
9600,
8,
201,
198,
201,
198,
2,
37410,
11,
3024,
11,
3608,
11,
2644,
8171,
373,
27807,
2052,
304,
259,
492,
288,
1236,
479,
2002,
268,
410,
669,
354,
75,
11033,
469,
14373,
201,
198,
9600,
29487,
13,
2617,
62,
66,
8899,
10786,
39491,
62,
81,
11537,
201,
198,
201,
198,
489,
83,
13,
29487,
7,
42372,
7,
87,
15,
828,
1845,
11231,
306,
7,
87,
15,
11,
34892,
27267,
81,
4943,
201,
198,
201,
198,
201,
198,
2,
7110,
532,
9052,
329,
4847,
357,
29255,
327,
1065,
11,
12624,
11,
440,
1433,
11,
5534,
20,
11,
399,
1415,
11,
399,
1314,
23029,
201,
198,
201,
198,
34,
1065,
796,
352,
13,
15,
14,
1065,
13,
486,
2998,
220,
201,
198,
201,
198,
34,
1731,
796,
657,
13,
20,
14,
1065,
13,
486,
2998,
220,
201,
198,
201,
198,
46,
1433,
796,
352,
13,
15,
14,
1314,
13,
2079,
2920,
220,
201,
198,
201,
198,
46,
1314,
796,
352,
13,
15,
14,
1314,
13,
405,
3132,
201,
198,
201,
198,
45,
1415,
796,
352,
13,
15,
14,
1415,
13,
405,
3134,
201,
198,
201,
198,
45,
1314,
796,
352,
13,
15,
14,
1314,
13,
18005,
16,
220,
201,
198,
201,
198,
34,
1485,
796,
352,
13,
15,
14,
1485,
13,
44427,
2816,
201,
198,
201,
198,
34,
1558,
796,
352,
13,
15,
14,
1433,
13,
15,
24909,
201,
198,
201,
198,
34,
1415,
796,
352,
13,
15,
14,
1415,
13,
15,
31380,
220,
201,
198,
201,
198,
34,
1314,
796,
352,
13,
15,
14,
1314,
13,
486,
3312,
220,
201,
198,
201,
198,
37,
1129,
796,
352,
13,
15,
14,
1507,
13,
2079,
5705,
201,
198,
2,
3398,
28,
16,
13,
15,
29006,
16,
13,
25816,
27988,
9,
17,
10,
1065,
13,
486,
2998,
8,
201,
198,
220,
220,
201,
198,
1640,
1312,
287,
2837,
7,
17,
11,
21,
10,
16,
2599,
201,
198,
201,
198,
220,
220,
220,
1303,
489,
83,
13,
29487,
7,
42372,
7,
87,
15,
828,
1582,
11231,
306,
7,
87,
15,
11,
34,
1558,
9,
7,
72,
4008,
553,
88,
4943,
201,
198,
220,
220,
220,
1303,
489,
83,
13,
29487,
7,
42372,
7,
87,
15,
828,
1582,
11231,
306,
7,
87,
15,
11,
46,
1314,
9,
7,
72,
10,
16,
4008,
553,
88,
4943,
201,
198,
220,
220,
220,
1303,
489,
83,
13,
29487,
7,
42372,
7,
87,
15,
828,
1582,
11231,
306,
7,
87,
15,
11,
34,
1485,
9,
7,
72,
4008,
553,
70,
4943,
201,
198,
220,
220,
220,
1303,
489,
83,
13,
29487,
7,
42372,
7,
87,
15,
828,
1582,
11231,
306,
7,
87,
15,
11,
34,
1314,
9,
7,
72,
4008,
553,
81,
4943,
201,
198,
220,
220,
220,
1303,
489,
83,
13,
29487,
7,
42372,
7,
87,
15,
828,
1582,
11231,
306,
7,
87,
15,
11,
34,
1731,
9,
7,
72,
10,
21,
4008,
553,
88,
4943,
201,
198,
220,
220,
220,
1303,
489,
83,
13,
29487,
7,
42372,
7,
87,
15,
828,
1582,
11231,
306,
7,
87,
15,
11,
34,
1065,
9,
7,
72,
4008,
553,
86,
4943,
201,
198,
220,
220,
220,
458,
83,
13,
29487,
7,
42372,
7,
87,
15,
828,
1582,
11231,
306,
7,
87,
15,
11,
34,
1065,
9,
7,
72,
4008,
553,
88,
4943,
201,
198,
220,
220,
220,
1303,
489,
83,
13,
29487,
7,
42372,
7,
87,
15,
828,
1582,
11231,
306,
7,
87,
15,
11,
34,
1065,
9,
7,
72,
47762,
15,
13,
405,
1314,
27267,
88,
438,
4943,
201,
198,
220,
220,
220,
458,
83,
13,
29487,
7,
42372,
7,
87,
15,
828,
1582,
11231,
306,
7,
87,
15,
11,
46,
1433,
9,
7,
72,
10,
16,
4008,
553,
65,
4943,
201,
198,
220,
220,
1303,
458,
83,
13,
29487,
7,
42372,
7,
87,
15,
828,
1582,
11231,
306,
7,
87,
15,
11,
46,
1433,
9,
7,
72,
10,
16,
47762,
15,
13,
405,
1314,
27267,
65,
438,
4943,
201,
198,
220,
220,
220,
1303,
489,
83,
13,
29487,
7,
42372,
7,
87,
15,
828,
1582,
11231,
306,
7,
87,
15,
11,
45,
1415,
9,
7,
72,
4008,
553,
70,
4943,
201,
198,
220,
220,
220,
1303,
4798,
1582,
11231,
306,
7,
87,
15,
11,
72,
8,
201,
198,
220,
220,
220,
1303,
489,
83,
13,
2645,
9608,
10786,
34,
10,
40264,
72,
4943,
15,
201,
198,
220,
220,
220,
220,
201,
198,
489,
83,
13,
22704,
26933,
15,
11,
838,
2624,
11,
939,
11,
767,
3980,
12962,
201,
198,
201,
198,
201,
198,
2,
489,
83,
13,
1455,
437,
7203,
10,
4943,
201,
198,
489,
83,
13,
12860,
3419,
201,
198,
201,
198,
201,
198,
201,
198,
21017,
220,
201,
198,
1831,
62,
15414,
10786,
8439,
8229,
29,
11537,
201,
198,
201,
198,
201,
198
] | 1.858093 | 1,353 |
from selenium import webdriver
import sys
from os.path import join, abspath, dirname
import logging
from selenium.webdriver.remote.remote_connection import LOGGER as ghostdriver_logger
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from locators import homePage
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from datetime import datetime
from time import sleep
logging.basicConfig(filename="python.log", level=logging.DEBUG)
| [
6738,
384,
11925,
1505,
1330,
3992,
26230,
198,
11748,
25064,
198,
6738,
28686,
13,
6978,
1330,
4654,
11,
2352,
6978,
11,
26672,
3672,
198,
11748,
18931,
198,
6738,
384,
11925,
1505,
13,
12384,
26230,
13,
47960,
13,
47960,
62,
38659,
1330,
41605,
30373,
355,
10905,
26230,
62,
6404,
1362,
198,
6738,
384,
11925,
1505,
13,
12384,
26230,
13,
11321,
13,
8906,
1202,
62,
11128,
5738,
1330,
2935,
1202,
15610,
5738,
198,
6738,
1179,
2024,
1330,
1363,
9876,
198,
6738,
384,
11925,
1505,
13,
12384,
26230,
13,
11284,
1330,
2938,
62,
17561,
1756,
198,
6738,
384,
11925,
1505,
13,
12384,
26230,
13,
11284,
13,
9019,
1330,
5313,
32103,
21321,
198,
6738,
384,
11925,
1505,
13,
12384,
26230,
13,
11321,
13,
1525,
1330,
2750,
198,
6738,
4818,
8079,
1330,
4818,
8079,
198,
6738,
640,
1330,
3993,
198,
198,
6404,
2667,
13,
35487,
16934,
7,
34345,
2625,
29412,
13,
6404,
1600,
1241,
28,
6404,
2667,
13,
30531,
8,
628
] | 3.666667 | 156 |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import io
import json
import math
import os
import numpy as np
from PIL import Image
from PIL import ImageFile
import tensorflow.compat.v2 as tf
from absl import logging
from absl import app
from absl import flags
import cv2
flags.DEFINE_string('acivity', 'swing', 'The class of test images.')
flags.DEFINE_string('input_dir', '/media/felicia/Data/mlb-youtube/%s_videos/rm_noise/videos', 'Path to videos.')
flags.DEFINE_string('name', 'image_bbgame_swing', 'Name of the dataset being created. This will'
'be used as a prefix.')
flags.DEFINE_string('file_pattern', '*.mp4', 'Pattern used to searh for files'
'in the given directory.')
flags.DEFINE_string('label_file', None, 'Provide a corresponding labels file'
'that stores per-frame or per-sequence labels. This info'
'will get stored.')
flags.DEFINE_string('output_dir', '/media/felicia/Data/object_detection/data/%s/', 'Output directory where'
'tfrecords will be stored.')
flags.DEFINE_integer('files_per_shard', 50, 'Number of videos to store in a'
'shard.')
flags.DEFINE_boolean('rotate', False, 'Rotate videos by 90 degrees before'
'creating tfrecords')
flags.DEFINE_boolean('resize', True, 'Resize videos to a given size.')
flags.DEFINE_integer('width', 1280, 'Width of frames in the TFRecord.')
flags.DEFINE_integer('height', 720, 'Height of frames in the TFRecord.')
flags.DEFINE_list(
'frame_labels', '', 'Comma separated list of descriptions '
'for labels given on a per frame basis. For example: '
'winding_up,early_cocking,acclerating,follow_through')
flags.DEFINE_integer('action_label',0 , 'Action label of all videos.') # swing:0, ball:1, strike:2, foul:3, hit:4
flags.DEFINE_integer('expected_segments', -1, 'Expected number of segments.')
flags.DEFINE_integer('fps', 10, 'Frames per second of video. If 0, fps will be '
'read from metadata of video.') # Original:
FLAGS = flags.FLAGS
gfile = tf.io.gfile
def video_to_frames(video_filename, rotate, fps=0, resize=False,
width=224, height=224):
"""Returns all frames from a video.
Args:
video_filename: string, filename of video.
rotate: Boolean: if True, rotates video by 90 degrees.
fps: Integer, frames per second of video. If 0, it will be inferred from
metadata of video.
resize: Boolean, if True resizes images to given size.
width: Integer, Width of image.
height: Integer, Height of image.
Raises:
ValueError: if fps is greater than the rate of video.
"""
logging.info('Loading %s', video_filename)
cap = cv2.VideoCapture(video_filename)
if fps == 0:
fps = cap.get(cv2.CAP_PROP_FPS)
keep_frequency = 1
else:
if fps > cap.get(cv2.CAP_PROP_FPS):
raise ValueError('Cannot sample at a frequency higher than FPS of video')
keep_frequency = int(float(cap.get(cv2.CAP_PROP_FPS)) / fps)
frames = []
timestamps = []
counter = 0
if cap.isOpened():
while True:
success, frame_bgr = cap.read()
if not success:
break
if counter % keep_frequency == 0:
# Convert BGR to RGB
frame_rgb = cv2.cvtColor(frame_bgr, cv2.COLOR_BGR2RGB)
if resize:
frame_rgb = cv2.resize(frame_rgb, (width, height))
if rotate:
frame_rgb = cv2.transpose(frame_rgb)
frame_rgb = cv2.flip(frame_rgb, 1)
frames.append(frame_rgb)
timestamps.append(cap.get(cv2.CAP_PROP_POS_MSEC) / 1000.0)
counter += 1
return frames, timestamps, fps
def create_numpy(name, output_dir, input_dir, label_file, input_pattern,
files_per_shard, action_label, frame_labels,
expected_segments, orig_fps, rotate, resize, width,
height):
"""Create Numpy file from videos in a given path.
Args:
name: string, name of the dataset being created.
output_dir: string, path to output directory.
input_dir: string, path to input videos directory.
label_file: None or string, JSON file that contains annotations.
input_pattern: string, regex pattern to look up videos in directory.
files_per_shard: int, number of files to keep in each shard.
action_label: int, Label of actions in video.
frame_labels: list, list of string describing each class. Class label is
the index in list.
expected_segments: int, expected number of segments.
orig_fps: int, frame rate at which tfrecord will be created.
rotate: boolean, if True rotate videos by 90 degrees.
resize: boolean, if True resize to given height and width.
width: int, Width of frames.
height: int, Height of frames.
Raises:
ValueError: If invalid args are passed.
"""
labels={
'swing':0,'ball':1
}
ACTIVITY=FLAGS.acivity
LABEL=labels[ACTIVITY]
input_dir=input_dir%ACTIVITY
output_path=output_dir%ACTIVITY
if not gfile.exists(output_path):
logging.info('Creating output directory: %s', output_path)
gfile.makedirs(output_path)
if not isinstance(input_pattern, list):
file_pattern = os.path.join(input_dir, input_pattern)
filenames = [os.path.basename(x) for x in gfile.glob(file_pattern)]
else:
filenames = []
for file_pattern in input_pattern:
file_pattern = os.path.join(input_dir, file_pattern)
filenames += [os.path.basename(x) for x in gfile.glob(file_pattern)]
num_shards = int(math.ceil(len(filenames)/files_per_shard))
len_num_shards = len(str(num_shards))
shard_id = 0
image_minibatch=list()
step_minibatch=list()
label_minibatch=list()
video_minibatch=list()
print('-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+')
print('shard_id',shard_id)
for i, filename in enumerate(filenames):
frames, video_timestamps, _ = video_to_frames(
os.path.join(input_dir, filename),
rotate,
orig_fps,
resize=resize,
width=width,
height=height)
vid_name=os.path.splitext(filename)[0]
vid_name=str.encode(vid_name)
image_minibatch.append(frames)
# duration=video_timestamps[1]
steps=np.array([x for x in range(len(video_timestamps))])
# print(i,filename,steps,video_timestamps)
step_minibatch.append(steps)
labels=[LABEL]*len(steps)
label_minibatch.append(labels)
vids=[vid_name]*len(steps)
video_minibatch+=vids
if (i + 1) % files_per_shard == 0 or i == len(filenames) - 1:
# if shard_id==2:
output_filename = os.path.join(
output_path,
'%s-%s-of-%s.npy' % (name,
str(shard_id).zfill(len_num_shards),
str(num_shards).zfill(len_num_shards)))
image_minibatch=np.concatenate(image_minibatch,axis=0)
step_minibatch=np.concatenate(step_minibatch,axis=0)
label_minibatch=np.concatenate(label_minibatch,axis=0)
numpy_dict={
'images':image_minibatch, # np.array: B*H*W*3
'activity':label_minibatch, # np.array: B*1
'steps':step_minibatch, # np.array:B*1
'videos':video_minibatch,# list
}
with open(output_filename,'wb') as file:
np.save(file,numpy_dict)
shard_id += 1
image_minibatch=list()
step_minibatch=list()
label_minibatch=list()
video_minibatch=list()
# print('-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+')
# print('shard_id',shard_id)
if __name__ == '__main__':
app.run(main) | [
198,
6738,
11593,
37443,
834,
1330,
4112,
62,
11748,
198,
6738,
11593,
37443,
834,
1330,
7297,
198,
6738,
11593,
37443,
834,
1330,
3601,
62,
8818,
198,
198,
11748,
33245,
198,
11748,
33918,
198,
11748,
10688,
198,
11748,
28686,
198,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
350,
4146,
1330,
7412,
198,
6738,
350,
4146,
1330,
7412,
8979,
198,
11748,
11192,
273,
11125,
13,
5589,
265,
13,
85,
17,
355,
48700,
198,
198,
6738,
2352,
75,
1330,
18931,
198,
6738,
2352,
75,
1330,
598,
198,
6738,
2352,
75,
1330,
9701,
198,
198,
11748,
269,
85,
17,
628,
628,
198,
33152,
13,
7206,
29940,
62,
8841,
10786,
330,
3458,
3256,
705,
46737,
3256,
705,
464,
1398,
286,
1332,
4263,
2637,
8,
198,
33152,
13,
7206,
29940,
62,
8841,
10786,
15414,
62,
15908,
3256,
31051,
11431,
14,
69,
417,
33577,
14,
6601,
14,
4029,
65,
12,
11604,
14,
4,
82,
62,
32861,
14,
26224,
62,
3919,
786,
14,
32861,
3256,
705,
15235,
284,
5861,
2637,
8,
198,
33152,
13,
7206,
29940,
62,
8841,
10786,
3672,
3256,
705,
9060,
62,
11848,
6057,
62,
46737,
3256,
705,
5376,
286,
262,
27039,
852,
2727,
13,
770,
481,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
1350,
973,
355,
257,
21231,
2637,
8,
198,
33152,
13,
7206,
29940,
62,
8841,
10786,
7753,
62,
33279,
3256,
705,
24620,
3149,
19,
3256,
705,
47546,
973,
284,
9622,
71,
329,
3696,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
259,
262,
1813,
8619,
2637,
8,
198,
33152,
13,
7206,
29940,
62,
8841,
10786,
18242,
62,
7753,
3256,
6045,
11,
705,
15946,
485,
257,
11188,
14722,
2393,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5562,
7000,
583,
12,
14535,
393,
583,
12,
43167,
14722,
13,
770,
7508,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
10594,
651,
8574,
2637,
8,
198,
33152,
13,
7206,
29940,
62,
8841,
10786,
22915,
62,
15908,
3256,
31051,
11431,
14,
69,
417,
33577,
14,
6601,
14,
15252,
62,
15255,
3213,
14,
7890,
14,
4,
82,
14,
3256,
705,
26410,
8619,
810,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
27110,
8344,
3669,
481,
307,
8574,
2637,
8,
198,
33152,
13,
7206,
29940,
62,
41433,
10786,
16624,
62,
525,
62,
1477,
446,
3256,
2026,
11,
705,
15057,
286,
5861,
284,
3650,
287,
257,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
1477,
446,
2637,
8,
198,
33152,
13,
7206,
29940,
62,
2127,
21052,
10786,
10599,
378,
3256,
10352,
11,
705,
24864,
378,
5861,
416,
4101,
7370,
878,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
20123,
278,
48700,
8344,
3669,
11537,
198,
33152,
13,
7206,
29940,
62,
2127,
21052,
10786,
411,
1096,
3256,
6407,
11,
705,
4965,
1096,
5861,
284,
257,
1813,
2546,
2637,
8,
198,
33152,
13,
7206,
29940,
62,
41433,
10786,
10394,
3256,
37674,
11,
705,
30916,
286,
13431,
287,
262,
24958,
23739,
2637,
8,
198,
33152,
13,
7206,
29940,
62,
41433,
10786,
17015,
3256,
26250,
11,
705,
23106,
286,
13431,
287,
262,
24958,
23739,
2637,
8,
198,
33152,
13,
7206,
29940,
62,
4868,
7,
198,
220,
220,
220,
705,
14535,
62,
23912,
1424,
3256,
705,
3256,
705,
6935,
64,
11266,
1351,
286,
16969,
705,
198,
220,
220,
220,
705,
1640,
14722,
1813,
319,
257,
583,
5739,
4308,
13,
1114,
1672,
25,
705,
198,
220,
220,
220,
705,
86,
6020,
62,
929,
11,
11458,
62,
66,
8629,
11,
330,
22902,
803,
11,
27780,
62,
9579,
11537,
198,
33152,
13,
7206,
29940,
62,
41433,
10786,
2673,
62,
18242,
3256,
15,
837,
705,
12502,
6167,
286,
477,
5861,
2637,
8,
1303,
9628,
25,
15,
11,
2613,
25,
16,
11,
5587,
25,
17,
11,
15626,
25,
18,
11,
2277,
25,
19,
198,
33152,
13,
7206,
29940,
62,
41433,
10786,
40319,
62,
325,
11726,
3256,
532,
16,
11,
705,
3109,
7254,
1271,
286,
17894,
2637,
8,
198,
33152,
13,
7206,
29940,
62,
41433,
10786,
29647,
3256,
838,
11,
705,
35439,
583,
1218,
286,
2008,
13,
1002,
657,
11,
32977,
481,
307,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
961,
422,
20150,
286,
2008,
2637,
8,
1303,
13745,
25,
198,
38948,
50,
796,
9701,
13,
38948,
50,
198,
198,
70,
7753,
796,
48700,
13,
952,
13,
70,
7753,
628,
198,
4299,
2008,
62,
1462,
62,
37805,
7,
15588,
62,
34345,
11,
23064,
11,
32977,
28,
15,
11,
47558,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9647,
28,
24137,
11,
6001,
28,
24137,
2599,
198,
220,
37227,
35561,
477,
13431,
422,
257,
2008,
13,
628,
220,
943,
14542,
25,
198,
220,
220,
220,
2008,
62,
34345,
25,
4731,
11,
29472,
286,
2008,
13,
198,
220,
220,
220,
23064,
25,
41146,
25,
611,
6407,
11,
5724,
689,
2008,
416,
4101,
7370,
13,
198,
220,
220,
220,
32977,
25,
34142,
11,
13431,
583,
1218,
286,
2008,
13,
1002,
657,
11,
340,
481,
307,
41240,
422,
198,
220,
220,
220,
220,
220,
20150,
286,
2008,
13,
198,
220,
220,
220,
47558,
25,
41146,
11,
611,
6407,
581,
4340,
4263,
284,
1813,
2546,
13,
198,
220,
220,
220,
9647,
25,
34142,
11,
38807,
286,
2939,
13,
198,
220,
220,
220,
6001,
25,
34142,
11,
27280,
286,
2939,
13,
628,
220,
7567,
2696,
25,
198,
220,
220,
220,
11052,
12331,
25,
611,
32977,
318,
3744,
621,
262,
2494,
286,
2008,
13,
198,
220,
37227,
198,
220,
18931,
13,
10951,
10786,
19031,
4064,
82,
3256,
2008,
62,
34345,
8,
198,
220,
1451,
796,
269,
85,
17,
13,
10798,
49630,
7,
15588,
62,
34345,
8,
628,
220,
611,
32977,
6624,
657,
25,
198,
220,
220,
220,
32977,
796,
1451,
13,
1136,
7,
33967,
17,
13,
33177,
62,
4805,
3185,
62,
37,
3705,
8,
198,
220,
220,
220,
1394,
62,
35324,
796,
352,
198,
220,
2073,
25,
198,
220,
220,
220,
611,
32977,
1875,
1451,
13,
1136,
7,
33967,
17,
13,
33177,
62,
4805,
3185,
62,
37,
3705,
2599,
198,
220,
220,
220,
220,
220,
5298,
11052,
12331,
10786,
34,
34574,
6291,
379,
257,
8373,
2440,
621,
22082,
286,
2008,
11537,
198,
220,
220,
220,
1394,
62,
35324,
796,
493,
7,
22468,
7,
11128,
13,
1136,
7,
33967,
17,
13,
33177,
62,
4805,
3185,
62,
37,
3705,
4008,
1220,
32977,
8,
628,
220,
13431,
796,
17635,
198,
220,
4628,
395,
9430,
796,
17635,
198,
220,
3753,
796,
657,
198,
220,
611,
1451,
13,
271,
18257,
2945,
33529,
198,
220,
220,
220,
981,
6407,
25,
198,
220,
220,
220,
220,
220,
1943,
11,
5739,
62,
65,
2164,
796,
1451,
13,
961,
3419,
198,
220,
220,
220,
220,
220,
611,
407,
1943,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
611,
3753,
4064,
1394,
62,
35324,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
38240,
347,
10761,
284,
25228,
198,
220,
220,
220,
220,
220,
220,
220,
5739,
62,
81,
22296,
796,
269,
85,
17,
13,
33967,
83,
10258,
7,
14535,
62,
65,
2164,
11,
269,
85,
17,
13,
46786,
62,
33,
10761,
17,
36982,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
47558,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5739,
62,
81,
22296,
796,
269,
85,
17,
13,
411,
1096,
7,
14535,
62,
81,
22296,
11,
357,
10394,
11,
6001,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
23064,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5739,
62,
81,
22296,
796,
269,
85,
17,
13,
7645,
3455,
7,
14535,
62,
81,
22296,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5739,
62,
81,
22296,
796,
269,
85,
17,
13,
2704,
541,
7,
14535,
62,
81,
22296,
11,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
13431,
13,
33295,
7,
14535,
62,
81,
22296,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4628,
395,
9430,
13,
33295,
7,
11128,
13,
1136,
7,
33967,
17,
13,
33177,
62,
4805,
3185,
62,
37997,
62,
5653,
2943,
8,
1220,
8576,
13,
15,
8,
198,
220,
220,
220,
220,
220,
3753,
15853,
352,
198,
220,
1441,
13431,
11,
4628,
395,
9430,
11,
32977,
628,
198,
4299,
2251,
62,
77,
32152,
7,
3672,
11,
5072,
62,
15908,
11,
5128,
62,
15908,
11,
6167,
62,
7753,
11,
5128,
62,
33279,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3696,
62,
525,
62,
1477,
446,
11,
2223,
62,
18242,
11,
5739,
62,
23912,
1424,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2938,
62,
325,
11726,
11,
1796,
62,
29647,
11,
23064,
11,
47558,
11,
9647,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6001,
2599,
198,
220,
37227,
16447,
399,
32152,
2393,
422,
5861,
287,
257,
1813,
3108,
13,
628,
220,
943,
14542,
25,
198,
220,
220,
220,
1438,
25,
4731,
11,
1438,
286,
262,
27039,
852,
2727,
13,
198,
220,
220,
220,
5072,
62,
15908,
25,
4731,
11,
3108,
284,
5072,
8619,
13,
198,
220,
220,
220,
5128,
62,
15908,
25,
4731,
11,
3108,
284,
5128,
5861,
8619,
13,
198,
220,
220,
220,
6167,
62,
7753,
25,
6045,
393,
4731,
11,
19449,
2393,
326,
4909,
37647,
13,
198,
220,
220,
220,
5128,
62,
33279,
25,
4731,
11,
40364,
3912,
284,
804,
510,
5861,
287,
8619,
13,
198,
220,
220,
220,
3696,
62,
525,
62,
1477,
446,
25,
493,
11,
1271,
286,
3696,
284,
1394,
287,
1123,
427,
446,
13,
198,
220,
220,
220,
2223,
62,
18242,
25,
493,
11,
36052,
286,
4028,
287,
2008,
13,
198,
220,
220,
220,
5739,
62,
23912,
1424,
25,
1351,
11,
1351,
286,
4731,
12059,
1123,
1398,
13,
5016,
6167,
318,
198,
220,
220,
220,
220,
220,
262,
6376,
287,
1351,
13,
198,
220,
220,
220,
2938,
62,
325,
11726,
25,
493,
11,
2938,
1271,
286,
17894,
13,
198,
220,
220,
220,
1796,
62,
29647,
25,
493,
11,
5739,
2494,
379,
543,
48700,
22105,
481,
307,
2727,
13,
198,
220,
220,
220,
23064,
25,
25131,
11,
611,
6407,
23064,
5861,
416,
4101,
7370,
13,
198,
220,
220,
220,
47558,
25,
25131,
11,
611,
6407,
47558,
284,
1813,
6001,
290,
9647,
13,
198,
220,
220,
220,
9647,
25,
493,
11,
38807,
286,
13431,
13,
198,
220,
220,
220,
6001,
25,
493,
11,
27280,
286,
13431,
13,
198,
220,
7567,
2696,
25,
198,
220,
220,
220,
11052,
12331,
25,
1002,
12515,
26498,
389,
3804,
13,
198,
220,
37227,
198,
220,
14722,
34758,
198,
220,
220,
220,
705,
46737,
10354,
15,
4032,
1894,
10354,
16,
198,
220,
1782,
628,
220,
11741,
3824,
9050,
28,
38948,
50,
13,
330,
3458,
198,
220,
406,
6242,
3698,
28,
23912,
1424,
58,
10659,
3824,
9050,
60,
628,
220,
5128,
62,
15908,
28,
15414,
62,
15908,
4,
10659,
3824,
9050,
198,
220,
5072,
62,
6978,
28,
22915,
62,
15908,
4,
10659,
3824,
9050,
628,
220,
611,
407,
308,
7753,
13,
1069,
1023,
7,
22915,
62,
6978,
2599,
198,
220,
220,
220,
18931,
13,
10951,
10786,
32071,
5072,
8619,
25,
4064,
82,
3256,
5072,
62,
6978,
8,
198,
220,
220,
220,
308,
7753,
13,
76,
4335,
17062,
7,
22915,
62,
6978,
8,
628,
220,
611,
407,
318,
39098,
7,
15414,
62,
33279,
11,
1351,
2599,
198,
220,
220,
220,
2393,
62,
33279,
796,
28686,
13,
6978,
13,
22179,
7,
15414,
62,
15908,
11,
5128,
62,
33279,
8,
198,
220,
220,
220,
1226,
268,
1047,
796,
685,
418,
13,
6978,
13,
12093,
12453,
7,
87,
8,
329,
2124,
287,
308,
7753,
13,
4743,
672,
7,
7753,
62,
33279,
15437,
198,
220,
2073,
25,
198,
220,
220,
220,
1226,
268,
1047,
796,
17635,
198,
220,
220,
220,
329,
2393,
62,
33279,
287,
5128,
62,
33279,
25,
198,
220,
220,
220,
220,
220,
2393,
62,
33279,
796,
28686,
13,
6978,
13,
22179,
7,
15414,
62,
15908,
11,
2393,
62,
33279,
8,
198,
220,
220,
220,
220,
220,
1226,
268,
1047,
15853,
685,
418,
13,
6978,
13,
12093,
12453,
7,
87,
8,
329,
2124,
287,
308,
7753,
13,
4743,
672,
7,
7753,
62,
33279,
15437,
198,
220,
220,
198,
220,
997,
62,
1477,
1371,
796,
493,
7,
11018,
13,
344,
346,
7,
11925,
7,
10379,
268,
1047,
20679,
16624,
62,
525,
62,
1477,
446,
4008,
198,
220,
18896,
62,
22510,
62,
1477,
1371,
796,
18896,
7,
2536,
7,
22510,
62,
1477,
1371,
4008,
198,
220,
427,
446,
62,
312,
796,
657,
628,
220,
2939,
62,
1084,
571,
963,
28,
4868,
3419,
198,
220,
2239,
62,
1084,
571,
963,
28,
4868,
3419,
198,
220,
6167,
62,
1084,
571,
963,
28,
4868,
3419,
198,
220,
2008,
62,
1084,
571,
963,
28,
4868,
3419,
628,
220,
3601,
10786,
42744,
42744,
42744,
42744,
42744,
42744,
42744,
42744,
27097,
19529,
11537,
198,
220,
3601,
10786,
1477,
446,
62,
312,
3256,
1477,
446,
62,
312,
8,
628,
220,
329,
1312,
11,
29472,
287,
27056,
378,
7,
10379,
268,
1047,
2599,
628,
220,
220,
220,
13431,
11,
2008,
62,
16514,
395,
9430,
11,
4808,
796,
2008,
62,
1462,
62,
37805,
7,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
6978,
13,
22179,
7,
15414,
62,
15908,
11,
29472,
828,
198,
220,
220,
220,
220,
220,
220,
220,
23064,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1796,
62,
29647,
11,
198,
220,
220,
220,
220,
220,
220,
220,
47558,
28,
411,
1096,
11,
198,
220,
220,
220,
220,
220,
220,
220,
9647,
28,
10394,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6001,
28,
17015,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
410,
312,
62,
3672,
28,
418,
13,
6978,
13,
22018,
578,
742,
7,
34345,
38381,
15,
60,
198,
220,
220,
220,
410,
312,
62,
3672,
28,
2536,
13,
268,
8189,
7,
16921,
62,
3672,
8,
628,
220,
220,
220,
2939,
62,
1084,
571,
963,
13,
33295,
7,
37805,
8,
628,
220,
220,
220,
1303,
9478,
28,
15588,
62,
16514,
395,
9430,
58,
16,
60,
198,
220,
220,
220,
4831,
28,
37659,
13,
18747,
26933,
87,
329,
2124,
287,
2837,
7,
11925,
7,
15588,
62,
16514,
395,
9430,
4008,
12962,
198,
220,
220,
220,
1303,
3601,
7,
72,
11,
34345,
11,
20214,
11,
15588,
62,
16514,
395,
9430,
8,
198,
220,
220,
220,
2239,
62,
1084,
571,
963,
13,
33295,
7,
20214,
8,
628,
220,
220,
220,
14722,
41888,
48780,
3698,
60,
9,
11925,
7,
20214,
8,
198,
220,
220,
220,
6167,
62,
1084,
571,
963,
13,
33295,
7,
23912,
1424,
8,
628,
220,
220,
220,
410,
2340,
41888,
16921,
62,
3672,
60,
9,
11925,
7,
20214,
8,
198,
220,
220,
220,
2008,
62,
1084,
571,
963,
47932,
85,
2340,
628,
220,
220,
220,
611,
357,
72,
1343,
352,
8,
4064,
3696,
62,
525,
62,
1477,
446,
6624,
657,
393,
1312,
6624,
18896,
7,
10379,
268,
1047,
8,
532,
352,
25,
198,
220,
220,
220,
220,
220,
1303,
611,
427,
446,
62,
312,
855,
17,
25,
198,
220,
220,
220,
220,
220,
5072,
62,
34345,
796,
28686,
13,
6978,
13,
22179,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5072,
62,
6978,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4,
82,
12,
4,
82,
12,
1659,
12,
4,
82,
13,
77,
9078,
6,
4064,
357,
3672,
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,
965,
7,
1477,
446,
62,
312,
737,
89,
20797,
7,
11925,
62,
22510,
62,
1477,
1371,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
7,
22510,
62,
1477,
1371,
737,
89,
20797,
7,
11925,
62,
22510,
62,
1477,
1371,
22305,
628,
220,
220,
220,
220,
220,
2939,
62,
1084,
571,
963,
28,
37659,
13,
1102,
9246,
268,
378,
7,
9060,
62,
1084,
571,
963,
11,
22704,
28,
15,
8,
198,
220,
220,
220,
220,
220,
2239,
62,
1084,
571,
963,
28,
37659,
13,
1102,
9246,
268,
378,
7,
9662,
62,
1084,
571,
963,
11,
22704,
28,
15,
8,
198,
220,
220,
220,
220,
220,
6167,
62,
1084,
571,
963,
28,
37659,
13,
1102,
9246,
268,
378,
7,
18242,
62,
1084,
571,
963,
11,
22704,
28,
15,
8,
628,
220,
220,
220,
220,
220,
299,
32152,
62,
11600,
34758,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
17566,
10354,
9060,
62,
1084,
571,
963,
11,
1303,
45941,
13,
18747,
25,
347,
9,
39,
9,
54,
9,
18,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
21797,
10354,
18242,
62,
1084,
571,
963,
11,
1303,
45941,
13,
18747,
25,
347,
9,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
20214,
10354,
9662,
62,
1084,
571,
963,
11,
1303,
45941,
13,
18747,
25,
33,
9,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
32861,
10354,
15588,
62,
1084,
571,
963,
11,
2,
1351,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
628,
220,
220,
220,
220,
220,
351,
1280,
7,
22915,
62,
34345,
4032,
39346,
11537,
355,
2393,
25,
198,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
21928,
7,
7753,
11,
77,
32152,
62,
11600,
8,
628,
220,
220,
220,
220,
220,
427,
446,
62,
312,
15853,
352,
198,
220,
220,
220,
220,
220,
2939,
62,
1084,
571,
963,
28,
4868,
3419,
198,
220,
220,
220,
220,
220,
2239,
62,
1084,
571,
963,
28,
4868,
3419,
198,
220,
220,
220,
220,
220,
6167,
62,
1084,
571,
963,
28,
4868,
3419,
198,
220,
220,
220,
220,
220,
2008,
62,
1084,
571,
963,
28,
4868,
3419,
628,
220,
220,
220,
220,
220,
1303,
3601,
10786,
42744,
42744,
42744,
42744,
42744,
42744,
42744,
42744,
27097,
19529,
11537,
198,
220,
220,
220,
220,
220,
1303,
3601,
10786,
1477,
446,
62,
312,
3256,
1477,
446,
62,
312,
8,
628,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
598,
13,
5143,
7,
12417,
8
] | 2.445607 | 3,153 |
#!/usr/bin/python3
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import padding
import sys
import os
keysdir = "./keys"
pubdir = keysdir + "/public"
pvtdir = keysdir + "/private"
pubkey = pubdir + "/mypub.pem"
pvtkey = pvtdir + "/mypvt.pem"
srvkey = pubdir + "/srvpub.pem"
public_key = ""
private_key = ""
server_public_key = ""
if __name__ == "__main__":
main()
| [
2,
48443,
14629,
14,
8800,
14,
29412,
18,
198,
198,
6738,
45898,
13,
71,
1031,
6759,
13,
1891,
2412,
1330,
4277,
62,
1891,
437,
198,
6738,
45898,
13,
71,
1031,
6759,
13,
19795,
20288,
1330,
11389,
1634,
198,
6738,
45898,
13,
71,
1031,
6759,
13,
19795,
20288,
13,
4107,
3020,
19482,
1330,
374,
11400,
198,
6738,
45898,
13,
71,
1031,
6759,
13,
19795,
20288,
1330,
46621,
198,
6738,
45898,
13,
71,
1031,
6759,
13,
19795,
20288,
13,
4107,
3020,
19482,
1330,
24511,
198,
11748,
25064,
198,
11748,
28686,
198,
198,
13083,
15908,
796,
220,
366,
19571,
13083,
1,
198,
12984,
15908,
796,
8251,
15908,
1343,
12813,
11377,
1,
198,
79,
85,
8671,
343,
796,
8251,
15908,
1343,
12813,
19734,
1,
198,
12984,
2539,
796,
2240,
15908,
1343,
12813,
1820,
12984,
13,
79,
368,
1,
198,
79,
36540,
2539,
796,
279,
85,
8671,
343,
1343,
12813,
1820,
79,
36540,
13,
79,
368,
1,
198,
27891,
85,
2539,
796,
2240,
15908,
1343,
12813,
27891,
85,
12984,
13,
79,
368,
1,
198,
198,
11377,
62,
2539,
796,
13538,
198,
19734,
62,
2539,
796,
13538,
198,
15388,
62,
11377,
62,
2539,
796,
13538,
628,
628,
628,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
1388,
3419,
198
] | 2.848341 | 211 |
# Generated by Django 3.0.7 on 2020-06-15 22:15
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| [
2,
2980,
515,
416,
37770,
513,
13,
15,
13,
22,
319,
12131,
12,
3312,
12,
1314,
2534,
25,
1314,
198,
198,
6738,
42625,
14208,
13,
10414,
1330,
6460,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
11,
4981,
198,
11748,
42625,
14208,
13,
9945,
13,
27530,
13,
2934,
1616,
295,
628
] | 3.019231 | 52 |
from abc import ABC, abstractmethod
from dataclasses import dataclass, field
from fairseq.dataclass import ChoiceEnum, FairseqDataclass
STEP_MODE_CHOICE = ChoiceEnum(['epoch', 'subepoch'])
@dataclass
| [
6738,
450,
66,
1330,
9738,
11,
12531,
24396,
198,
6738,
4818,
330,
28958,
1330,
4818,
330,
31172,
11,
2214,
198,
198,
6738,
3148,
41068,
13,
19608,
330,
31172,
1330,
18502,
4834,
388,
11,
7011,
41068,
27354,
330,
31172,
198,
198,
42135,
62,
49058,
62,
44899,
8476,
796,
18502,
4834,
388,
7,
17816,
538,
5374,
3256,
705,
7266,
538,
5374,
6,
12962,
628,
198,
31,
19608,
330,
31172,
628
] | 3.014706 | 68 |
n = int(input('Digite um numero: '))
a = n * 2
b = n * 3
c = n ** (1/2)
print('O dobro do numero seria {} \n O triplo seria {} \n A raiz quadrada seria {:.2f}'.format(a, b, c))
| [
77,
796,
493,
7,
15414,
10786,
19511,
578,
23781,
997,
3529,
25,
705,
4008,
198,
198,
64,
796,
299,
1635,
362,
198,
65,
796,
299,
1635,
513,
198,
66,
796,
299,
12429,
357,
16,
14,
17,
8,
198,
198,
4798,
10786,
46,
466,
7957,
466,
997,
3529,
1055,
544,
23884,
3467,
77,
440,
1333,
489,
78,
1055,
544,
23884,
3467,
77,
317,
2179,
528,
15094,
81,
4763,
1055,
544,
46110,
13,
17,
69,
92,
4458,
18982,
7,
64,
11,
275,
11,
269,
4008,
198
] | 2.130952 | 84 |
# FAST拐点检测,拐点检测Opencv有七种,且比skimage的方法快的多
from skimage import data, feature, img_as_float, io
import numpy as np
image = img_as_float(io.imread('/home/qiao/PythonProjects/Scikit-image_On_CT/Test_Img/10.jpg'))
gamma_corrected = feature.corner_fast(image)
points = feature.corner_peaks(gamma_corrected)
print(points)
io.imshow(image)
io.show()
| [
2,
376,
11262,
162,
233,
238,
163,
224,
117,
162,
96,
222,
38184,
233,
171,
120,
234,
162,
233,
238,
163,
224,
117,
162,
96,
222,
38184,
233,
11505,
33967,
17312,
231,
10310,
225,
163,
100,
235,
171,
120,
234,
10310,
242,
162,
107,
242,
8135,
9060,
21410,
43095,
37345,
243,
33232,
104,
21410,
13783,
248,
198,
6738,
1341,
9060,
1330,
1366,
11,
3895,
11,
33705,
62,
292,
62,
22468,
11,
33245,
198,
11748,
299,
32152,
355,
45941,
198,
9060,
796,
33705,
62,
292,
62,
22468,
7,
952,
13,
320,
961,
10786,
14,
11195,
14,
80,
13481,
14,
37906,
16775,
82,
14,
50,
979,
15813,
12,
9060,
62,
2202,
62,
4177,
14,
14402,
62,
3546,
70,
14,
940,
13,
9479,
6,
4008,
198,
28483,
2611,
62,
30283,
276,
796,
3895,
13,
10215,
1008,
62,
7217,
7,
9060,
8,
198,
13033,
796,
3895,
13,
10215,
1008,
62,
431,
4730,
7,
28483,
2611,
62,
30283,
276,
8,
198,
4798,
7,
13033,
8,
198,
952,
13,
320,
12860,
7,
9060,
8,
198,
952,
13,
12860,
3419,
628
] | 1.965517 | 174 |
import socket
from .Packet import Packet
from .PacketIpHeader import PacketIpv4Header, PacketIpv6Header
from hpimdm.tree.hpim_globals import MSG_FORMAT
from hpimdm.utils import TYPE_CHECKING
if TYPE_CHECKING:
from hpimdm.Interface import Interface
if MSG_FORMAT == "BINARY":
from .PacketHPIMHeader import PacketHPIMHeader, PacketHPIMHeader_v6
else:
from .PacketHPIMHeader import PacketHPIMHeaderJson as PacketHPIMHeader
from .PacketHPIMHeader import PacketHPIMHeaderJson as PacketHPIMHeader_v6
| [
11748,
17802,
198,
6738,
764,
47,
8317,
1330,
6400,
316,
198,
6738,
764,
47,
8317,
40,
79,
39681,
1330,
6400,
316,
40,
79,
85,
19,
39681,
11,
6400,
316,
40,
79,
85,
21,
39681,
198,
6738,
27673,
320,
36020,
13,
21048,
13,
24831,
320,
62,
4743,
672,
874,
1330,
49064,
62,
21389,
1404,
198,
6738,
27673,
320,
36020,
13,
26791,
1330,
41876,
62,
50084,
2751,
198,
198,
361,
41876,
62,
50084,
2751,
25,
198,
220,
220,
220,
422,
27673,
320,
36020,
13,
39317,
1330,
26491,
198,
198,
361,
49064,
62,
21389,
1404,
6624,
366,
33,
1268,
13153,
1298,
198,
220,
220,
220,
422,
764,
47,
8317,
14082,
3955,
39681,
1330,
6400,
316,
14082,
3955,
39681,
11,
6400,
316,
14082,
3955,
39681,
62,
85,
21,
198,
17772,
25,
198,
220,
220,
220,
422,
764,
47,
8317,
14082,
3955,
39681,
1330,
6400,
316,
14082,
3955,
39681,
41,
1559,
355,
6400,
316,
14082,
3955,
39681,
198,
220,
220,
220,
422,
764,
47,
8317,
14082,
3955,
39681,
1330,
6400,
316,
14082,
3955,
39681,
41,
1559,
355,
6400,
316,
14082,
3955,
39681,
62,
85,
21,
628,
198
] | 2.824176 | 182 |
import time
import RPi.GPIO as GPIO #Python Package Reference: https://pypi.org/project/RPi.GPIO/
# Code taken from https://learn.sparkfun.com/tutorials/raspberry-pi-safe-reboot-and-shutdown-button using the last example to minimize resources used (sleep function)
# Pin definition
reset_shutdown_pin = 17
# Suppress warnings
GPIO.setwarnings(False)
# Use "GPIO" pin numbering
GPIO.setmode(GPIO.BCM)
# Use built-in internal pullup resistor so the pin is not floating
# if using a momentary push button without a resistor.
#GPIO.setup(reset_shutdown_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
# Use Qwiic pHAT's pullup resistor so that the pin is not floating
GPIO.setup(reset_shutdown_pin, GPIO.IN)
# modular function to restart Pi
# modular function to shutdown Pi
while True:
#short delay, otherwise this code will take up a lot of the Pi's processing power
time.sleep(1)
# wait for a button press with switch debounce on the falling edge so that this script
# is not taking up too many resources in order to shutdown/reboot the Pi safely
channel = GPIO.wait_for_edge(reset_shutdown_pin, GPIO.FALLING, bouncetime=200)
if channel is None:
print('Timeout occurred')
else:
print('Edge detected on channel', channel)
# For troubleshooting, uncomment this line to output button status on command line
#print('GPIO state is = ', GPIO.input(reset_shutdown_pin))
counter = 0
while GPIO.input(reset_shutdown_pin) == False:
# For troubleshooting, uncomment this line to view the counter. If it reaches a value above 4, we will restart.
#print(counter)
counter += 1
time.sleep(0.5)
# long button press
if counter > 4:
shut_down()
#if short button press, restart!
restart()
| [
11748,
640,
198,
11748,
25812,
72,
13,
16960,
9399,
355,
50143,
1303,
37906,
15717,
20984,
25,
3740,
1378,
79,
4464,
72,
13,
2398,
14,
16302,
14,
20031,
72,
13,
16960,
9399,
14,
198,
198,
2,
6127,
2077,
422,
3740,
1378,
35720,
13,
2777,
668,
12543,
13,
785,
14,
83,
44917,
82,
14,
81,
17653,
12,
14415,
12,
21230,
12,
260,
18769,
12,
392,
12,
49625,
2902,
12,
16539,
1262,
262,
938,
1672,
284,
17775,
4133,
973,
357,
42832,
2163,
8,
198,
198,
2,
13727,
6770,
198,
42503,
62,
49625,
2902,
62,
11635,
796,
1596,
198,
198,
2,
8105,
601,
14601,
198,
16960,
9399,
13,
2617,
40539,
654,
7,
25101,
8,
198,
198,
2,
5765,
366,
16960,
9399,
1,
6757,
47622,
198,
16960,
9399,
13,
2617,
14171,
7,
16960,
9399,
13,
2749,
44,
8,
198,
198,
2,
5765,
3170,
12,
259,
5387,
2834,
929,
45032,
523,
262,
6757,
318,
407,
12462,
198,
2,
611,
1262,
257,
2589,
560,
4574,
4936,
1231,
257,
45032,
13,
198,
2,
16960,
9399,
13,
40406,
7,
42503,
62,
49625,
2902,
62,
11635,
11,
50143,
13,
1268,
11,
2834,
62,
929,
62,
2902,
28,
16960,
9399,
13,
5105,
35,
62,
8577,
8,
198,
198,
2,
5765,
1195,
37686,
291,
22918,
1404,
338,
2834,
929,
45032,
523,
326,
262,
6757,
318,
407,
12462,
198,
16960,
9399,
13,
40406,
7,
42503,
62,
49625,
2902,
62,
11635,
11,
50143,
13,
1268,
8,
198,
198,
2,
26507,
2163,
284,
15765,
13993,
198,
198,
2,
26507,
2163,
284,
18325,
13993,
628,
628,
198,
4514,
6407,
25,
198,
220,
220,
220,
1303,
19509,
5711,
11,
4306,
428,
2438,
481,
1011,
510,
257,
1256,
286,
262,
13993,
338,
7587,
1176,
198,
220,
220,
220,
640,
13,
42832,
7,
16,
8,
628,
220,
220,
220,
1303,
4043,
329,
257,
4936,
1803,
351,
5078,
1915,
8652,
319,
262,
7463,
5743,
523,
326,
428,
4226,
198,
220,
220,
220,
1303,
318,
407,
2263,
510,
1165,
867,
4133,
287,
1502,
284,
18325,
14,
260,
18769,
262,
13993,
11512,
198,
220,
220,
220,
6518,
796,
50143,
13,
17077,
62,
1640,
62,
14907,
7,
42503,
62,
49625,
2902,
62,
11635,
11,
50143,
13,
37,
7036,
2751,
11,
31283,
66,
8079,
28,
2167,
8,
628,
220,
220,
220,
611,
6518,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
48031,
5091,
11537,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
37021,
12326,
319,
6518,
3256,
6518,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1114,
14979,
35486,
11,
8820,
434,
428,
1627,
284,
5072,
4936,
3722,
319,
3141,
1627,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4798,
10786,
16960,
9399,
1181,
318,
796,
46083,
50143,
13,
15414,
7,
42503,
62,
49625,
2902,
62,
11635,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3753,
796,
657,
628,
220,
220,
220,
220,
220,
220,
220,
981,
50143,
13,
15414,
7,
42503,
62,
49625,
2902,
62,
11635,
8,
6624,
10352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1114,
14979,
35486,
11,
8820,
434,
428,
1627,
284,
1570,
262,
3753,
13,
1002,
340,
12229,
257,
1988,
2029,
604,
11,
356,
481,
15765,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4798,
7,
24588,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3753,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
15,
13,
20,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
890,
4936,
1803,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
3753,
1875,
604,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4423,
62,
2902,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
361,
1790,
4936,
1803,
11,
15765,
0,
198,
220,
220,
220,
220,
220,
220,
220,
15765,
3419,
198
] | 2.799699 | 664 |
import time
import board
import adafruit_thermistor
# these values work with the Adafruit CircuitPlayground Express.
# they may work with other thermistors as well, as they're fairly standard,
# though the pin will likely need to change (ie board.A1)
# pylint: disable=no-member
pin = board.TEMPERATURE
resistor = 10000
resistance = 10000
nominal_temp = 25
b_coefficient = 3950
thermistor = adafruit_thermistor.Thermistor(pin, resistor, resistance, nominal_temp, b_coefficient)
# print the temperature in C and F to the serial console every second
while True:
celsius = thermistor.temperature
fahrenheit = (celsius * 9 / 5) + 32
print('== Temperature ==\n{} *C\n{} *F\n'.format(celsius, fahrenheit))
time.sleep(1)
| [
11748,
640,
201,
198,
11748,
3096,
201,
198,
11748,
512,
1878,
4872,
62,
490,
76,
32380,
201,
198,
201,
198,
2,
777,
3815,
670,
351,
262,
1215,
1878,
4872,
13588,
11002,
2833,
10604,
13,
201,
198,
2,
484,
743,
670,
351,
584,
21969,
46334,
355,
880,
11,
355,
484,
821,
6547,
3210,
11,
201,
198,
2,
996,
262,
6757,
481,
1884,
761,
284,
1487,
357,
494,
3096,
13,
32,
16,
8,
201,
198,
2,
279,
2645,
600,
25,
15560,
28,
3919,
12,
19522,
201,
198,
11635,
796,
3096,
13,
51,
3620,
18973,
40086,
201,
198,
411,
32380,
796,
33028,
201,
198,
411,
9311,
796,
33028,
201,
198,
26601,
1292,
62,
29510,
796,
1679,
201,
198,
65,
62,
1073,
16814,
796,
5014,
1120,
201,
198,
201,
198,
490,
76,
32380,
796,
512,
1878,
4872,
62,
490,
76,
32380,
13,
35048,
76,
32380,
7,
11635,
11,
45032,
11,
6625,
11,
26934,
62,
29510,
11,
275,
62,
1073,
16814,
8,
201,
198,
201,
198,
2,
3601,
262,
5951,
287,
327,
290,
376,
284,
262,
11389,
8624,
790,
1218,
201,
198,
4514,
6407,
25,
201,
198,
220,
220,
220,
269,
32495,
796,
21969,
32380,
13,
11498,
21069,
201,
198,
220,
220,
220,
277,
993,
34032,
796,
357,
5276,
82,
3754,
1635,
860,
1220,
642,
8,
1343,
3933,
201,
198,
220,
220,
220,
3601,
10786,
855,
34467,
6624,
59,
77,
90,
92,
1635,
34,
59,
77,
90,
92,
1635,
37,
59,
77,
4458,
18982,
7,
5276,
82,
3754,
11,
277,
993,
34032,
4008,
201,
198,
220,
220,
220,
640,
13,
42832,
7,
16,
8,
201,
198
] | 2.89272 | 261 |
from distutils.core import setup
setup(
name = 'jellylanguage',
version = '0.1.31',
packages = [
'jelly'
],
scripts = [
'scripts/jelly'
],
install_requires = [
'sympy'
]
)
| [
6738,
1233,
26791,
13,
7295,
1330,
9058,
198,
198,
40406,
7,
198,
197,
3672,
796,
705,
73,
695,
2645,
9000,
3256,
198,
197,
9641,
796,
705,
15,
13,
16,
13,
3132,
3256,
198,
197,
43789,
796,
685,
198,
197,
197,
6,
73,
6148,
6,
198,
197,
4357,
198,
197,
46521,
796,
685,
198,
197,
197,
338,
6519,
82,
14,
73,
6148,
6,
198,
197,
4357,
198,
197,
17350,
62,
47911,
796,
685,
198,
197,
197,
338,
88,
3149,
88,
6,
198,
197,
60,
198,
8,
198
] | 2.174419 | 86 |
from distutils.core import setup, Extension
if __name__ == "__main__":
main() | [
6738,
1233,
26791,
13,
7295,
1330,
9058,
11,
27995,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
197,
12417,
3419
] | 3.16 | 25 |
from typing import Optional, Dict, List, Tuple
from bxcommon.messages.abstract_block_message import AbstractBlockMessage
from bxcommon.network.ip_endpoint import IpEndpoint
from bxcommon.utils.expiring_dict import ExpiringDict
from bxcommon.utils.object_hash import Sha256Hash
from bxgateway import log_messages
from bxgateway.connections.abstract_gateway_blockchain_connection import AbstractGatewayBlockchainConnection
from bxgateway.services.abstract_block_queuing_service import AbstractBlockQueuingService
from bxutils import logging
logger = logging.get_logger(__name__)
| [
6738,
19720,
1330,
32233,
11,
360,
713,
11,
7343,
11,
309,
29291,
198,
198,
6738,
275,
87,
11321,
13,
37348,
1095,
13,
397,
8709,
62,
9967,
62,
20500,
1330,
27741,
12235,
12837,
198,
6738,
275,
87,
11321,
13,
27349,
13,
541,
62,
437,
4122,
1330,
314,
79,
12915,
4122,
198,
6738,
275,
87,
11321,
13,
26791,
13,
11201,
3428,
62,
11600,
1330,
5518,
3428,
35,
713,
198,
6738,
275,
87,
11321,
13,
26791,
13,
15252,
62,
17831,
1330,
19413,
11645,
26257,
198,
6738,
275,
87,
10494,
1014,
1330,
2604,
62,
37348,
1095,
198,
6738,
275,
87,
10494,
1014,
13,
8443,
507,
13,
397,
8709,
62,
10494,
1014,
62,
9967,
7983,
62,
38659,
1330,
27741,
22628,
1014,
12235,
7983,
32048,
198,
6738,
275,
87,
10494,
1014,
13,
30416,
13,
397,
8709,
62,
9967,
62,
4188,
4250,
62,
15271,
1330,
27741,
12235,
15681,
4250,
16177,
198,
6738,
275,
87,
26791,
1330,
18931,
198,
198,
6404,
1362,
796,
18931,
13,
1136,
62,
6404,
1362,
7,
834,
3672,
834,
8,
628
] | 3.473054 | 167 |
#!/usr/bin/python
#-*- mode: python; coding: utf-8 -*-
#import simpleaudio as sa # This need wav files
# avconv -i audio/d/dog.mp3 -acodec pcm_u8 -ar 8000 audio/d/dog.wav
import time
import os
from gtts import gTTS
import pyglet
from subprocess import call
| [
2,
48443,
14629,
14,
8800,
14,
29412,
198,
2,
12,
9,
12,
4235,
25,
21015,
26,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
2,
11748,
2829,
24051,
355,
473,
1303,
770,
761,
266,
615,
3696,
198,
2,
1196,
42946,
532,
72,
6597,
14,
67,
14,
9703,
13,
3149,
18,
532,
330,
375,
721,
279,
11215,
62,
84,
23,
532,
283,
38055,
6597,
14,
67,
14,
9703,
13,
45137,
198,
198,
11748,
640,
198,
11748,
28686,
198,
6738,
308,
83,
912,
1330,
308,
51,
4694,
198,
11748,
12972,
70,
1616,
198,
6738,
850,
14681,
1330,
869,
628,
198
] | 2.584158 | 101 |
import sys
sys.path.insert(0, '../models')
from get_data import GetData
# from python.ultilities.get_data import GetData
import unittest
import csv
if __name__ == '__main__':
unittest.main() | [
11748,
25064,
198,
17597,
13,
6978,
13,
28463,
7,
15,
11,
705,
40720,
27530,
11537,
198,
6738,
651,
62,
7890,
1330,
3497,
6601,
198,
2,
422,
21015,
13,
586,
2410,
13,
1136,
62,
7890,
1330,
3497,
6601,
198,
11748,
555,
715,
395,
198,
11748,
269,
21370,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
555,
715,
395,
13,
12417,
3419
] | 2.867647 | 68 |
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.test import TestCase
from django.contrib import admin
from physical.admin.engine_type import EngineTypeAdmin
from physical.models import EngineType
SEARCH_FIELDS = ('name', )
LIST_FILTER = ('is_in_memory', )
LIST_FIELDS = ('name', 'is_in_memory', 'created_at')
SAVE_ON_TOP = True
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
6738,
11593,
37443,
834,
1330,
4112,
62,
11748,
11,
28000,
1098,
62,
17201,
874,
198,
6738,
42625,
14208,
13,
9288,
1330,
6208,
20448,
198,
6738,
42625,
14208,
13,
3642,
822,
1330,
13169,
198,
6738,
3518,
13,
28482,
13,
18392,
62,
4906,
1330,
7117,
6030,
46787,
198,
6738,
3518,
13,
27530,
1330,
7117,
6030,
628,
198,
5188,
31315,
62,
11674,
3698,
5258,
796,
19203,
3672,
3256,
1267,
198,
45849,
62,
46700,
5781,
796,
19203,
271,
62,
259,
62,
31673,
3256,
1267,
198,
45849,
62,
11674,
3698,
5258,
796,
19203,
3672,
3256,
705,
271,
62,
259,
62,
31673,
3256,
705,
25598,
62,
265,
11537,
198,
4090,
6089,
62,
1340,
62,
35222,
796,
6407,
628
] | 2.984127 | 126 |
# dbitem.py
import re
# Auto detect and split labels/cmd
# Return a string suitable for substring searching
| [
2,
288,
2545,
368,
13,
9078,
198,
11748,
302,
628,
198,
220,
220,
220,
1303,
11160,
4886,
290,
6626,
14722,
14,
28758,
628,
220,
220,
220,
1303,
8229,
257,
4731,
11080,
329,
3293,
1806,
10342,
198
] | 3.305556 | 36 |
from django.template.base import Variable, VariableDoesNotExist
from django.test import SimpleTestCase
| [
6738,
42625,
14208,
13,
28243,
13,
8692,
1330,
35748,
11,
35748,
13921,
3673,
3109,
396,
198,
6738,
42625,
14208,
13,
9288,
1330,
17427,
14402,
20448,
628,
198
] | 3.888889 | 27 |
# Import the agent class
from .devicemanager import DeviceManager
| [
2,
17267,
262,
5797,
1398,
198,
6738,
764,
7959,
291,
8463,
3536,
1330,
16232,
13511,
198
] | 4.125 | 16 |
def originalDigits(self, s: str) -> str:
"""
credit to ZitaoWang for being a beast (adapted sol.)
The key to this solution is in the set-up in identifying
that each number has its own unique character that defines
it. Some don't have this characteristic but they become
defined as the ones before it do
"""
char2word = {'z': 'zero', 'w': 'two', 'u': 'four', 'x': 'six', 'g': 'eight', 'o': 'one', 'r': 'three', 'f': 'five', 's': 'seven','i': 'nine'}
word2int = {'zero': '0', 'one': '1', 'two': '2', 'three': '3', \
'four': '4', 'five': '5', 'six': '6', 'seven': '7', \
'eight': '8', 'nine': '9'}
kei = list(char2word.keys())
arr = []
all = dict()
# fill dict with all letters
for letter in s:
if letter in all:
all[letter] += 1
else:
all[letter] = 1
#iterate through each key
for key in kei:
if key in all:
while all[key] != 0:
# take the key and output it to an array while subtracting the letters from all
for i in range(len(char2word[key])):
print(char2word[key][i])
all[char2word[key][i]] -= 1
arr.append(word2int[char2word[key]])
arr.sort()
return ''.join(arr) | [
4299,
2656,
19511,
896,
7,
944,
11,
264,
25,
965,
8,
4613,
965,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
3884,
284,
1168,
5350,
78,
54,
648,
329,
852,
257,
13824,
357,
42552,
276,
1540,
2014,
198,
220,
220,
220,
220,
220,
220,
220,
383,
1994,
284,
428,
4610,
318,
287,
262,
900,
12,
929,
287,
13720,
198,
220,
220,
220,
220,
220,
220,
220,
326,
1123,
1271,
468,
663,
898,
3748,
2095,
326,
15738,
198,
220,
220,
220,
220,
220,
220,
220,
340,
13,
2773,
836,
470,
423,
428,
16704,
475,
484,
1716,
220,
198,
220,
220,
220,
220,
220,
220,
220,
5447,
355,
262,
3392,
878,
340,
466,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1149,
17,
4775,
796,
1391,
6,
89,
10354,
705,
22570,
3256,
705,
86,
10354,
705,
11545,
3256,
705,
84,
10354,
705,
14337,
3256,
705,
87,
10354,
705,
19412,
3256,
705,
70,
10354,
705,
26022,
3256,
705,
78,
10354,
705,
505,
3256,
705,
81,
10354,
705,
15542,
3256,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
69,
10354,
705,
13261,
3256,
705,
82,
10354,
705,
26548,
41707,
72,
10354,
705,
30888,
6,
92,
198,
220,
220,
220,
220,
220,
220,
220,
1573,
17,
600,
796,
1391,
6,
22570,
10354,
705,
15,
3256,
705,
505,
10354,
705,
16,
3256,
705,
11545,
10354,
705,
17,
3256,
705,
15542,
10354,
705,
18,
3256,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
14337,
10354,
705,
19,
3256,
705,
13261,
10354,
705,
20,
3256,
705,
19412,
10354,
705,
21,
3256,
705,
26548,
10354,
705,
22,
3256,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
26022,
10354,
705,
23,
3256,
705,
30888,
10354,
705,
24,
6,
92,
198,
220,
220,
220,
220,
220,
220,
220,
885,
72,
796,
1351,
7,
10641,
17,
4775,
13,
13083,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
5240,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
477,
796,
8633,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
6070,
8633,
351,
477,
7475,
198,
220,
220,
220,
220,
220,
220,
220,
329,
3850,
287,
264,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
3850,
287,
477,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
58,
9291,
60,
15853,
352,
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,
477,
58,
9291,
60,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2676,
378,
832,
1123,
1994,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
287,
885,
72,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1994,
287,
477,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
981,
477,
58,
2539,
60,
14512,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1011,
262,
1994,
290,
5072,
340,
284,
281,
7177,
981,
34128,
278,
262,
7475,
422,
477,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
11925,
7,
10641,
17,
4775,
58,
2539,
12962,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
10641,
17,
4775,
58,
2539,
7131,
72,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
58,
10641,
17,
4775,
58,
2539,
7131,
72,
11907,
48185,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5240,
13,
33295,
7,
4775,
17,
600,
58,
10641,
17,
4775,
58,
2539,
11907,
8,
198,
220,
220,
220,
220,
220,
220,
220,
5240,
13,
30619,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
705,
4458,
22179,
7,
3258,
8
] | 1.912145 | 774 |
# coding=utf-8
# Django settings for bluebottle project.
import os, datetime
# Import global settings for overriding without throwing away defaults
from django.conf import global_settings
from django.utils.translation import ugettext as _
from admin_dashboard import *
from .payments import *
# Set PROJECT_ROOT to the dir of the current file
# Find the project's containing directory and normalize it to refer to
# the project's root more easily
PROJECT_ROOT = os.path.dirname(os.path.normpath(os.path.join(__file__, '..', '..')))
# DJANGO_PROJECT: the short project name
# (defaults to the basename of PROJECT_ROOT)
DJANGO_PROJECT = os.path.basename(PROJECT_ROOT.rstrip('/'))
DEBUG = True
TEST_MEMCACHE = False
TEMPLATE_DEBUG = True
COMPRESS_TEMPLATES = False
ADMINS = (
('Team Error', '[email protected]'),
)
CONTACT_EMAIL = '[email protected]'
MANAGERS = ADMINS
# Hosts/domain names that are valid for this site; required if DEBUG is False
# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
ALLOWED_HOSTS = ['.onepercentclub.com', '.1procentclub.nl', 'localhost']
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# On Unix systems, a value of None will cause Django to use the same
# timezone as the operating system.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'Europe/Amsterdam'
# Available user interface translations
# Ref: https://docs.djangoproject.com/en/1.4/ref/settings/#languages
#
# Default language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en'
# This is defined here as a do-nothing function because we can't import
# django.utils.translation -- that module depends on the settings.
gettext_noop = lambda s: s
LANGUAGES = (
('nl', gettext_noop('Dutch')),
('en', gettext_noop('English'))
)
SITE_ID = 1
# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True
# If you set this to False, Django will not format dates, numbers and
# calendars according to the current locale.
USE_L10N = True
# First one is for apps the second for the main templates
LOCALE_PATHS = ('../locale', 'locale')
# If you set this to False, Django will not use timezone-aware datetimes.
# pytz is in requirements.txt because it's "highly recommended" when using
# timezone support.
# https://docs.djangoproject.com/en/1.4/topics/i18n/timezones/
USE_TZ = True
# Static Files and Media
# ======================
#
# For staticfiles and media, the following convention is used:
#
# * '/static/media/': Application media default path
# * '/static/global/': Global static media
# * '/static/assets/<app_name>/': Static assets after running `collectstatic`
#
# The respective URL's (available only when `DEBUG=True`) are in `urls.py`.
#
# More information:
# https://docs.djangoproject.com/en/1.4/ref/contrib/staticfiles/
# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/home/media/media.lawrence.com/media/"
MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'static', 'media')
# Absolute filesystem path to the directory that will hold PRIVATE user-uploaded files.
PRIVATE_MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'private', 'media')
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
MEDIA_URL = '/static/media/'
PRIVATE_MEDIA_URL = '/private/media/'
# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/home/media/media.lawrence.com/static/"
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static', 'assets')
# URL prefix for static files.
# Example: "http://media.lawrence.com/static/"
STATIC_URL = '/static/assets/'
# Additional locations of static files
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
# You can also name this tuple like: ('css', '/path/to/css')
(os.path.join(PROJECT_ROOT, 'static', 'global')),
)
# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = [
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
]
TEMPLATE_LOADERS = [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'apptemplates.Loader', # extend AND override templates
]
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}
}
# These are basically the default values from the Django configuration, written
# as a list for easy manipulation. This way one can:
#
# 1. Easily add, remove or replace elements in the list, ie. overriding.
# 2. Know what the defaults are, if you want to change them right here. This
# way you won't have to look them up every time you want to change.
#
# Note: The first three middleware classes need to be in this order: Session, Locale, Common
# http://stackoverflow.com/questions/8092695/404-on-requests-without-trailing-slash-to-i18n-urls
MIDDLEWARE_CLASSES = [
'bluebottle.auth.middleware.UserJwtTokenMiddleware',
'apps.redirects.middleware.RedirectHashCompatMiddleware',
'bluebottle.auth.middleware.AdminOnlyCsrf',
# Have a middleware to make sure old cookies still work after we switch to domain-wide cookies.
'bluebottle.utils.middleware.SubDomainSessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'bluebottle.auth.middleware.AdminOnlySessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'bluebottle.auth.middleware.AdminOnlyAuthenticationMiddleware',
'bluebottle.bb_accounts.middleware.LocaleMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
# https://docs.djangoproject.com/en/1.4/ref/clickjacking/
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'apps.redirects.middleware.RedirectFallbackMiddleware',
'apps.crawlable.middleware.HashbangMiddleware',
'django_tools.middlewares.ThreadLocal.ThreadLocalMiddleware',
'bluebottle.auth.middleware.SlidingJwtTokenMiddleware'
]
# Browsers will block our pages from loading in an iframe no matter which site
# made the request. This setting can be overridden on a per response or a per
# view basis with the @xframe decorators.
X_FRAME_OPTIONS = 'DENY'
TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
# Makes the 'request' variable (the current HttpRequest) available in templates.
'django.core.context_processors.request',
'django.core.context_processors.i18n',
'bluebottle.utils.context_processors.installed_apps_context_processor',
'bluebottle.utils.context_processors.git_commit',
'bluebottle.utils.context_processors.conf_settings',
'bluebottle.utils.context_processors.google_maps_api_key',
'bluebottle.utils.context_processors.google_analytics_code',
'bluebottle.utils.context_processors.sentry_dsn',
'bluebottle.utils.context_processors.facebook_auth_settings',
'bluebottle.utils.context_processors.mixpanel_settings',
'social.apps.django_app.context_processors.backends',
'social.apps.django_app.context_processors.login_redirect',
)
ROOT_URLCONF = 'onepercentclub.urls'
# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = 'onepercentclub.wsgi.application'
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
os.path.join(PROJECT_ROOT, 'templates')
)
INSTALLED_APPS = (
# Django apps
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# 3rd party apps
'django_extensions',
'django_extensions.tests',
'raven.contrib.django.raven_compat',
'djcelery',
'south',
# 'django_nose',
'compressor',
'sorl.thumbnail',
'taggit',
'taggit_autocomplete_modified',
'micawber.contrib.mcdjango', # Embedding videos
'templatetag_handlebars',
'rest_framework',
'rest_framework.authtoken',
'polymorphic',
'registration',
'filetransfers',
'loginas',
#'social_auth',
'social.apps.django_app.default',
# Onepercent app to send POST requests to AFOM
'onepercent_afom',
#Widget
'bluebottle.widget',
# CMS page contents
'fluent_contents',
'fluent_contents.plugins.text',
'fluent_contents.plugins.oembeditem',
'fluent_contents.plugins.rawhtml',
'django_wysiwyg',
'tinymce',
'statici18n',
'django.contrib.humanize',
'django_tools',
# FB Auth
'bluebottle.auth',
# Password auth from old PHP site.
'legacyauth',
# Plain Bluebottle apps
'bluebottle.wallposts',
'bluebottle.utils',
'bluebottle.common',
'bluebottle.contentplugins',
'bluebottle.contact',
'bluebottle.geo',
'bluebottle.pages',
'bluebottle.news',
'bluebottle.slides',
'bluebottle.quotes',
'bluebottle.payments',
'bluebottle.payments_docdata',
'bluebottle.payments_logger',
'bluebottle.payments_voucher',
'bluebottle.redirects',
# Apps extending Bluebottle base models
# These should be before there Bb parents so the templates are overridden
'apps.members',
'apps.tasks',
'apps.projects',
'apps.organizations',
'apps.payouts',
# apps overriding bluebottle functionality should come before the bluebottle entries
# (template loaders pick the first template they find)
'apps.core',
'apps.bluebottle_salesforce',
'apps.bluebottle_dashboard',
'apps.contentplugins',
'apps.campaigns',
'apps.hbtemplates',
'apps.statistics',
'apps.homepage',
'apps.partners',
'apps.crawlable',
'apps.mchanga',
'apps.recurring_donations',
# Bluebottle apps with abstract models
'bluebottle.bb_accounts',
'bluebottle.bb_organizations',
'bluebottle.bb_projects',
'bluebottle.bb_tasks',
'bluebottle.bb_fundraisers',
'bluebottle.bb_donations',
'bluebottle.bb_orders',
'bluebottle.bb_payouts',
# Basic Bb implementations
'bluebottle.fundraisers',
'bluebottle.donations',
'bluebottle.orders',
# FIXME: Keep these just for migrations
'apps.fund',
'apps.cowry',
'apps.cowry_docdata',
# FIXME: Reimplement these apps
'apps.vouchers',
# 'apps.sepa',
# 'apps.csvimport',
# 'apps.accounting',
# Custom dashboard
'fluent_dashboard',
'admin_tools',
'admin_tools.theming',
'admin_tools.menu',
'admin_tools.dashboard',
'django.contrib.admin',
'django.contrib.admindocs',
)
# Custom User model
AUTH_USER_MODEL = 'members.Member'
PROJECTS_PROJECT_MODEL = 'projects.Project'
PROJECTS_PHASELOG_MODEL = 'projects.ProjectPhaseLog'
FUNDRAISERS_FUNDRAISER_MODEL = 'fundraisers.FundRaiser'
TASKS_TASK_MODEL = 'tasks.Task'
TASKS_SKILL_MODEL = 'tasks.Skill'
TASKS_TASKMEMBER_MODEL = 'tasks.TaskMember'
TASKS_TASKFILE_MODEL = 'tasks.TaskFile'
ORGANIZATIONS_ORGANIZATION_MODEL = 'organizations.Organization'
ORGANIZATIONS_DOCUMENT_MODEL = 'organizations.OrganizationDocument'
ORGANIZATIONS_MEMBER_MODEL = 'organizations.OrganizationMember'
ORDERS_ORDER_MODEL = 'orders.Order'
DONATIONS_DONATION_MODEL = 'donations.Donation'
PAYOUTS_PROJECTPAYOUT_MODEL = 'payouts.ProjectPayout'
PAYOUTS_ORGANIZATIONPAYOUT_MODEL = 'payouts.OrganizationPayout'
SOCIAL_AUTH_USER_MODEL = 'members.Member'
SOCIAL_AUTH_FACEBOOK_SCOPE = ['email', 'user_friends', 'public_profile', 'user_birthday']
SOCIAL_AUTH_FACEBOOK_EXTRA_DATA = [('birthday', 'birthday')]
# A sample logging configuration. The only tangible logging
# performed by this configuration is to send an email to
# the site admins on every HTTP 500 error when DEBUG=False.
# See http://docs.djangoproject.com/en/dev/topics/logging for
# more details on how to customize your logging configuration.
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'standard': {
'format': "[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s] %(message)s",
'datefmt': "%d/%b/%Y %H:%M:%S"
},
},
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse'
}
},
'handlers': {
'mail_admins': {
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler'
},
'payment_logs': {
'level': 'INFO',
'class': 'bluebottle.payments_logger.handlers.PaymentLogHandler',
}
},
'loggers': {
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
'bluebottle.salesforce': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
'payments.payment': {
'handlers': ['mail_admins', 'payment_logs'],
'level': 'INFO',
'propagate': True,
},
}
}
# log errors & warnings
import logging
logging.basicConfig(level=logging.WARNING, format='[%(asctime)s] %(levelname)-8s %(message)s', datefmt="%d/%b/%Y %H:%M:%S")
# Django Celery - asynchronous task server
import djcelery
djcelery.setup_loader()
SOCIAL_AUTH_STRATEGY = 'social.strategies.django_strategy.DjangoStrategy'
SOCIAL_AUTH_STORAGE = 'social.apps.django_app.default.models.DjangoStorage'
AUTHENTICATION_BACKENDS = (
'social.backends.facebook.FacebookAppOAuth2',
'social.backends.facebook.FacebookOAuth2',
'django.contrib.auth.backends.ModelBackend',
)
# We're using nose because it limits the tests to our apps (i.e. no Django and
# 3rd party app tests). We need this because tests in contrib.auth.user are
# failing in Django 1.4.1. Here's the ticket for the failing test:
# https://code.djangoproject.com/ticket/17966
# The new test runner in Django 1.5 will be more flexible:
#https://code.djangoproject.com/ticket/17365
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
NOSE_ARGS = [
'--detailed-errors',
'--nologcapture',
]
SKIP_BB_FUNCTIONAL_TESTS = True
SOUTH_TESTS_MIGRATE = False # Make south shut up during tests
# django-compressor http://pypi.python.org/pypi/django_compressor
# Compressor is enabled whenever DEBUG is False.
STATICFILES_FINDERS += [
# django-compressor staticfiles
'compressor.finders.CompressorFinder',
]
# TODO Enable compass here.
COMPRESS_OUTPUT_DIR = 'compressed'
COMPRESS_CSS_FILTERS = [
'compressor.filters.css_default.CssAbsoluteFilter',
#'compressor.filters.datauri.DataUriFilter',
'compressor.filters.cssmin.CSSMinFilter'
]
# Automagic CSS precompilation
#COMPRESS_PRECOMPILERS = (
# ('text/coffeescript', 'coffee --compile --stdio'),
# ('text/less', 'lessc {infile} {outfile}'),
# ('text/x-sass', 'sass {infile} {outfile}'),
# ('text/x-scss', 'sass --scss {infile} {outfile}'),
#)
# The default URL to send users to after login. This will be used when the
# 'next' URL parameter hasn't been set.
LOGIN_REDIRECT_URL = '/'
# Blog/news content configuration
FLUENT_CONTENTS_CACHE_OUTPUT = True
FLUENT_TEXT_CLEAN_HTML = True
FLUENT_TEXT_SANITIZE_HTML = True
DJANGO_WYSIWYG_FLAVOR = 'tinymce_advanced'
# Required for handlebars_template to work properly
USE_EMBER_STYLE_ATTRS = True
# Sorl Thumbnail settings
# http://sorl-thumbnail.readthedocs.org/en/latest/reference/settings.html
THUMBNAIL_QUALITY = 85
# TODO: Configure Sorl with Redis.
REST_FRAMEWORK = {
'FILTER_BACKEND': 'rest_framework.filters.DjangoFilterBackend',
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.TokenAuthentication',
)
}
JWT_AUTH = {
'JWT_EXPIRATION_DELTA': datetime.timedelta(days=7),
'JWT_LEEWAY': 0,
'JWT_VERIFY': True,
'JWT_VERIFY_EXPIRATION': True,
'JWT_ALLOW_TOKEN_RENEWAL': True,
# After the renewal limit it isn't possible to request a token refresh
# => time token first created + renewal limit.
'JWT_TOKEN_RENEWAL_LIMIT': datetime.timedelta(days=90),
}
# Time between attempts to refresh the jwt token automatically on standard request
# TODO: move this setting into the JWT_AUTH settings.
JWT_TOKEN_RENEWAL_DELTA = datetime.timedelta(minutes=30)
COWRY_RETURN_URL_BASE = 'http://127.0.0.1:8000'
COWRY_PAYMENT_METHODS = {
'dd-webmenu': {
'profile': 'webmenu',
'name': 'DocData Web Menu',
'supports_recurring': False,
'supports_single': True,
},
'dd-webdirect': {
'profile': 'webdirect',
'name': 'DocData WebDirect Direct Debit',
'restricted_countries': ('NL',),
'supports_recurring': True,
'supports_single': False,
},
}
# Default VAT percentage as string (used in payouts)
VAT_RATE = '0.21'
# Settings for organization bank account. Please set this in secrets.py
# SEPA = {
# 'iban': '',
# 'bic': '',
# 'name': '',
# 'id': ''
# }
# Salesforce app settings
SALESFORCE_QUERY_TIMEOUT = 3
DATABASE_ROUTERS = [
"salesforce.router.ModelRouter"
]
# E-mail settings
DEFAULT_FROM_EMAIL = '<[email protected]> 1%Club'
# Django-registration settings
ACCOUNT_ACTIVATION_DAYS = 4
HTML_ACTIVATION_EMAIL = True # Note this setting is from our forked version.
# Functional testing
# Selenium and Splinter settings
SELENIUM_TESTS = True
SELENIUM_WEBDRIVER = 'phantomjs' # Can be any of chrome, firefox, phantomjs
FIXTURE_DIRS = [
os.path.join(DJANGO_PROJECT, 'fixtures')
]
# PhantomJS for flat page generation.
# NOTE: This has nothing to do with testing against phantomjs.
CRAWLABLE_PHANTOMJS_DEDICATED_MODE = True
# If dedicated mode is enabled, configure the port:
CRAWLABLE_PHANTOMJS_DEDICATED_PORT = 8910
# If dedicated mode is disabled, you can specify arguments to start phantomjs.
CRAWLABLE_PHANTOMJS_ARGS = []
# Use HTTPS for PhantomJS requests.
CRAWLABLE_FORCE_HTTPS = True
# Send email to console by default
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
STATICI18N_ROOT = os.path.join(PROJECT_ROOT, 'static', 'global')
SESSION_COOKIE_NAME = 'bb-session-id'
# Support legacy passwords
PASSWORD_HASHERS = global_settings.PASSWORD_HASHERS + (
'legacyauth.hashers.LegacyPasswordHasher',
)
# Twitter handles, per language
TWITTER_HANDLES = {
'nl': '1procentclub',
'en': '1percentclub',
}
DEFAULT_TWITTER_HANDLE = TWITTER_HANDLES['nl']
MINIMAL_PAYOUT_AMOUNT = 21.00
SOCIAL_AUTH_PIPELINE = (
'social.pipeline.social_auth.social_details',
'social.pipeline.social_auth.social_uid',
'social.pipeline.social_auth.auth_allowed',
'social.pipeline.social_auth.social_user',
'social.pipeline.user.get_username',
'social.pipeline.social_auth.associate_by_email',
'social.pipeline.user.create_user',
'social.pipeline.social_auth.associate_user',
'social.pipeline.social_auth.load_extra_data',
'social.pipeline.user.user_details',
'bluebottle.auth.utils.save_profile_picture',
'bluebottle.auth.utils.get_extra_facebook_data',
'bluebottle.auth.utils.send_welcome_mail_pipe'
)
AFOM_ENABLED = False
SOCIAL_AUTH_PROTECTED_USER_FIELDS = ['email', 'first_name', 'last_name', ]
SOCIAL_AUTH_USERNAME_IS_FULL_EMAIL = True
SEND_WELCOME_MAIL = True
| [
2,
19617,
28,
40477,
12,
23,
198,
2,
37770,
6460,
329,
4171,
10985,
293,
1628,
13,
198,
198,
11748,
28686,
11,
4818,
8079,
198,
198,
2,
17267,
3298,
6460,
329,
44987,
1231,
9644,
1497,
26235,
198,
6738,
42625,
14208,
13,
10414,
1330,
3298,
62,
33692,
198,
6738,
42625,
14208,
13,
26791,
13,
41519,
1330,
334,
1136,
5239,
355,
4808,
198,
6738,
13169,
62,
42460,
3526,
1330,
1635,
198,
6738,
764,
15577,
902,
1330,
1635,
198,
198,
2,
5345,
21965,
23680,
62,
13252,
2394,
284,
262,
26672,
286,
262,
1459,
2393,
198,
2,
9938,
262,
1628,
338,
7268,
8619,
290,
3487,
1096,
340,
284,
3522,
284,
198,
2,
262,
1628,
338,
6808,
517,
3538,
198,
31190,
23680,
62,
13252,
2394,
796,
28686,
13,
6978,
13,
15908,
3672,
7,
418,
13,
6978,
13,
27237,
6978,
7,
418,
13,
6978,
13,
22179,
7,
834,
7753,
834,
11,
705,
492,
3256,
705,
492,
6,
22305,
198,
198,
2,
13004,
1565,
11230,
62,
31190,
23680,
25,
262,
1790,
1628,
1438,
198,
2,
357,
12286,
82,
284,
262,
1615,
12453,
286,
21965,
23680,
62,
13252,
2394,
8,
198,
35028,
1565,
11230,
62,
31190,
23680,
796,
28686,
13,
6978,
13,
12093,
12453,
7,
31190,
23680,
62,
13252,
2394,
13,
81,
36311,
10786,
14,
6,
4008,
198,
198,
30531,
796,
6407,
198,
51,
6465,
62,
44,
3620,
34,
2246,
13909,
796,
10352,
198,
51,
3620,
6489,
6158,
62,
30531,
796,
6407,
198,
9858,
32761,
62,
51,
3620,
6489,
29462,
796,
10352,
198,
198,
2885,
44,
20913,
796,
357,
198,
220,
220,
220,
19203,
15592,
13047,
3256,
705,
48277,
31,
505,
25067,
18664,
13,
785,
33809,
198,
8,
198,
198,
37815,
10659,
62,
27630,
4146,
796,
705,
10951,
31,
505,
25067,
18664,
13,
785,
6,
198,
198,
10725,
4760,
4877,
796,
5984,
44,
20913,
198,
198,
2,
14504,
82,
14,
27830,
3891,
326,
389,
4938,
329,
428,
2524,
26,
2672,
611,
16959,
318,
10352,
198,
2,
4091,
3740,
1378,
31628,
13,
28241,
648,
404,
305,
752,
13,
785,
14,
268,
14,
16,
13,
20,
14,
5420,
14,
33692,
31113,
40845,
12,
4774,
82,
198,
7036,
3913,
1961,
62,
39,
10892,
50,
796,
685,
4458,
505,
25067,
18664,
13,
785,
3256,
45302,
16,
1676,
1087,
18664,
13,
21283,
3256,
705,
36750,
20520,
198,
198,
2,
10714,
640,
6516,
329,
428,
9988,
13,
10031,
1063,
460,
307,
1043,
994,
25,
198,
2,
2638,
1378,
268,
13,
31266,
13,
2398,
14,
15466,
14,
8053,
62,
1659,
62,
22877,
62,
89,
1952,
62,
1525,
62,
3672,
198,
2,
3584,
407,
477,
7747,
743,
307,
1695,
319,
477,
5361,
3341,
13,
198,
2,
1550,
33501,
3341,
11,
257,
1988,
286,
6045,
481,
2728,
37770,
284,
779,
262,
976,
198,
2,
640,
11340,
355,
262,
5361,
1080,
13,
198,
2,
1002,
2491,
287,
257,
3964,
2858,
428,
1276,
307,
900,
284,
262,
976,
355,
534,
198,
2,
1080,
640,
6516,
13,
198,
34694,
62,
57,
11651,
796,
705,
16112,
14,
5840,
22506,
6,
628,
198,
2,
14898,
2836,
7071,
25231,
198,
2,
6524,
25,
3740,
1378,
31628,
13,
28241,
648,
404,
305,
752,
13,
785,
14,
268,
14,
16,
13,
19,
14,
5420,
14,
33692,
31113,
75,
33213,
198,
2,
198,
2,
15161,
3303,
2438,
329,
428,
9988,
13,
1439,
7747,
460,
307,
1043,
994,
25,
198,
2,
2638,
1378,
2503,
13,
72,
1507,
782,
4669,
13,
785,
14,
46903,
1098,
14,
16129,
12,
738,
13350,
13,
6494,
198,
43,
15567,
52,
11879,
62,
34,
16820,
796,
705,
268,
6,
198,
198,
2,
770,
318,
5447,
994,
355,
257,
466,
12,
22366,
2163,
780,
356,
460,
470,
1330,
198,
2,
42625,
14208,
13,
26791,
13,
41519,
1377,
326,
8265,
8338,
319,
262,
6460,
13,
198,
1136,
5239,
62,
3919,
404,
796,
37456,
264,
25,
264,
198,
198,
43,
15567,
52,
25552,
796,
357,
198,
220,
220,
220,
19203,
21283,
3256,
651,
5239,
62,
3919,
404,
10786,
49717,
11537,
828,
198,
220,
220,
220,
19203,
268,
3256,
651,
5239,
62,
3919,
404,
10786,
15823,
6,
4008,
198,
8,
198,
198,
50,
12709,
62,
2389,
796,
352,
198,
198,
2,
1002,
345,
900,
428,
284,
10352,
11,
37770,
481,
787,
617,
41446,
523,
355,
407,
198,
2,
284,
3440,
262,
3230,
1634,
20230,
13,
198,
19108,
62,
40,
1507,
45,
796,
6407,
198,
198,
2,
1002,
345,
900,
428,
284,
10352,
11,
37770,
481,
407,
5794,
9667,
11,
3146,
290,
198,
2,
50215,
1864,
284,
262,
1459,
36693,
13,
198,
19108,
62,
43,
940,
45,
796,
6407,
198,
198,
2,
3274,
530,
318,
329,
6725,
262,
1218,
329,
262,
1388,
24019,
198,
29701,
21358,
62,
47,
1404,
7998,
796,
19203,
40720,
17946,
1000,
3256,
705,
17946,
1000,
11537,
198,
198,
2,
1002,
345,
900,
428,
284,
10352,
11,
37770,
481,
407,
779,
640,
11340,
12,
9685,
4818,
46874,
13,
198,
2,
12972,
22877,
318,
287,
5359,
13,
14116,
780,
340,
338,
366,
47444,
7151,
1,
618,
1262,
198,
2,
640,
11340,
1104,
13,
198,
2,
3740,
1378,
31628,
13,
28241,
648,
404,
305,
752,
13,
785,
14,
268,
14,
16,
13,
19,
14,
4852,
873,
14,
72,
1507,
77,
14,
2435,
89,
1952,
14,
198,
19108,
62,
51,
57,
796,
6407,
628,
198,
2,
36125,
13283,
290,
6343,
198,
2,
36658,
1421,
28,
198,
2,
198,
2,
1114,
9037,
16624,
290,
2056,
11,
262,
1708,
9831,
318,
973,
25,
198,
2,
198,
2,
1635,
31051,
12708,
14,
11431,
14,
10354,
15678,
2056,
4277,
3108,
198,
2,
1635,
31051,
12708,
14,
20541,
14,
10354,
8060,
9037,
2056,
198,
2,
1635,
31051,
12708,
14,
19668,
14,
27,
1324,
62,
3672,
29,
14,
10354,
36125,
6798,
706,
2491,
4600,
33327,
12708,
63,
198,
2,
198,
2,
383,
11756,
10289,
338,
357,
15182,
691,
618,
4600,
30531,
28,
17821,
63,
8,
389,
287,
4600,
6371,
82,
13,
9078,
44646,
198,
2,
198,
2,
3125,
1321,
25,
198,
2,
3740,
1378,
31628,
13,
28241,
648,
404,
305,
752,
13,
785,
14,
268,
14,
16,
13,
19,
14,
5420,
14,
3642,
822,
14,
12708,
16624,
14,
198,
198,
2,
36532,
29905,
3108,
284,
262,
8619,
326,
481,
1745,
2836,
12,
25850,
276,
3696,
13,
198,
2,
17934,
25,
12813,
11195,
14,
11431,
14,
11431,
13,
6270,
6784,
13,
785,
14,
11431,
30487,
198,
30733,
3539,
62,
13252,
2394,
796,
28686,
13,
6978,
13,
22179,
7,
31190,
23680,
62,
13252,
2394,
11,
705,
12708,
3256,
705,
11431,
11537,
198,
198,
2,
36532,
29905,
3108,
284,
262,
8619,
326,
481,
1745,
4810,
3824,
6158,
2836,
12,
25850,
276,
3696,
13,
198,
4805,
3824,
6158,
62,
30733,
3539,
62,
13252,
2394,
796,
28686,
13,
6978,
13,
22179,
7,
31190,
23680,
62,
13252,
2394,
11,
705,
19734,
3256,
705,
11431,
11537,
628,
198,
2,
10289,
326,
17105,
262,
2056,
4983,
422,
26112,
3539,
62,
13252,
2394,
13,
6889,
1654,
284,
779,
257,
198,
2,
25462,
24632,
13,
198,
2,
21066,
25,
366,
4023,
1378,
11431,
13,
6270,
6784,
13,
785,
14,
11431,
14,
1600,
366,
4023,
1378,
20688,
13,
785,
14,
11431,
30487,
198,
30733,
3539,
62,
21886,
796,
31051,
12708,
14,
11431,
14,
6,
198,
4805,
3824,
6158,
62,
30733,
3539,
62,
21886,
796,
31051,
19734,
14,
11431,
14,
6,
628,
198,
2,
36532,
3108,
284,
262,
8619,
9037,
3696,
815,
307,
7723,
284,
13,
198,
2,
2094,
470,
1234,
1997,
287,
428,
8619,
3511,
26,
3650,
534,
9037,
3696,
198,
2,
287,
6725,
6,
366,
12708,
30487,
850,
12942,
1749,
290,
287,
15486,
2149,
46700,
1546,
62,
34720,
50,
13,
198,
2,
17934,
25,
12813,
11195,
14,
11431,
14,
11431,
13,
6270,
6784,
13,
785,
14,
12708,
30487,
198,
35744,
2149,
62,
13252,
2394,
796,
28686,
13,
6978,
13,
22179,
7,
31190,
23680,
62,
13252,
2394,
11,
705,
12708,
3256,
705,
19668,
11537,
198,
198,
2,
10289,
21231,
329,
9037,
3696,
13,
198,
2,
17934,
25,
366,
4023,
1378,
11431,
13,
6270,
6784,
13,
785,
14,
12708,
30487,
198,
35744,
2149,
62,
21886,
796,
31051,
12708,
14,
19668,
14,
6,
198,
198,
2,
15891,
7064,
286,
9037,
3696,
198,
35744,
2149,
46700,
1546,
62,
34720,
50,
796,
357,
198,
220,
220,
220,
1303,
5930,
13042,
994,
11,
588,
12813,
11195,
14,
6494,
14,
12708,
1,
393,
366,
34,
14079,
2503,
14,
28241,
14208,
14,
12708,
1911,
198,
220,
220,
220,
1303,
16622,
779,
2651,
1017,
7465,
11,
772,
319,
3964,
13,
198,
220,
220,
220,
1303,
2094,
470,
6044,
284,
779,
4112,
13532,
11,
407,
3585,
13532,
13,
198,
220,
220,
220,
1303,
921,
460,
635,
1438,
428,
46545,
588,
25,
19203,
25471,
3256,
31051,
6978,
14,
1462,
14,
25471,
11537,
198,
220,
220,
220,
357,
418,
13,
6978,
13,
22179,
7,
31190,
23680,
62,
13252,
2394,
11,
705,
12708,
3256,
705,
20541,
11537,
828,
198,
8,
198,
198,
2,
7343,
286,
1064,
263,
6097,
326,
760,
703,
284,
1064,
9037,
3696,
287,
198,
2,
2972,
7064,
13,
198,
35744,
2149,
46700,
1546,
62,
37,
12115,
4877,
796,
685,
198,
220,
220,
220,
705,
28241,
14208,
13,
3642,
822,
13,
12708,
16624,
13,
19796,
364,
13,
8979,
11964,
37,
5540,
3256,
198,
220,
220,
220,
705,
28241,
14208,
13,
3642,
822,
13,
12708,
16624,
13,
19796,
364,
13,
4677,
13470,
1749,
37,
5540,
3256,
198,
220,
220,
220,
1303,
705,
28241,
14208,
13,
3642,
822,
13,
12708,
16624,
13,
19796,
364,
13,
19463,
31425,
37,
5540,
3256,
198,
60,
198,
198,
51,
3620,
6489,
6158,
62,
35613,
4877,
796,
685,
198,
220,
220,
220,
705,
28241,
14208,
13,
28243,
13,
2220,
364,
13,
16624,
6781,
13,
17401,
3256,
198,
220,
220,
220,
705,
28241,
14208,
13,
28243,
13,
2220,
364,
13,
1324,
62,
12942,
1749,
13,
17401,
3256,
198,
220,
220,
220,
705,
1324,
11498,
17041,
13,
17401,
3256,
1303,
9117,
5357,
20957,
24019,
198,
60,
198,
198,
34,
16219,
1546,
796,
1391,
198,
220,
220,
220,
705,
12286,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
705,
31098,
10619,
10354,
705,
28241,
14208,
13,
7295,
13,
23870,
13,
1891,
2412,
13,
67,
13513,
13,
35,
13513,
30562,
3256,
198,
220,
220,
220,
1782,
198,
92,
198,
198,
2,
2312,
389,
6209,
262,
4277,
3815,
422,
262,
37770,
8398,
11,
3194,
198,
2,
355,
257,
1351,
329,
2562,
17512,
13,
770,
835,
530,
460,
25,
198,
2,
198,
2,
352,
13,
38647,
813,
751,
11,
4781,
393,
6330,
4847,
287,
262,
1351,
11,
37941,
13,
44987,
13,
198,
2,
362,
13,
9365,
644,
262,
26235,
389,
11,
611,
345,
765,
284,
1487,
606,
826,
994,
13,
770,
198,
2,
220,
220,
835,
345,
1839,
470,
423,
284,
804,
606,
510,
790,
640,
345,
765,
284,
1487,
13,
198,
2,
198,
2,
5740,
25,
383,
717,
1115,
3504,
1574,
6097,
761,
284,
307,
287,
428,
1502,
25,
23575,
11,
15181,
1000,
11,
8070,
198,
2,
2638,
1378,
25558,
2502,
11125,
13,
785,
14,
6138,
507,
14,
34583,
2075,
3865,
14,
26429,
12,
261,
12,
8897,
3558,
12,
19419,
12,
9535,
4386,
12,
6649,
1077,
12,
1462,
12,
72,
1507,
77,
12,
6371,
82,
198,
44,
2389,
35,
2538,
33746,
62,
31631,
1546,
796,
685,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
18439,
13,
27171,
1574,
13,
12982,
41,
46569,
30642,
34621,
1574,
3256,
198,
220,
220,
220,
705,
18211,
13,
445,
1060,
82,
13,
27171,
1574,
13,
7738,
1060,
26257,
40073,
34621,
1574,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
18439,
13,
27171,
1574,
13,
46787,
10049,
34,
27891,
69,
3256,
198,
220,
220,
220,
1303,
8192,
257,
3504,
1574,
284,
787,
1654,
1468,
14746,
991,
670,
706,
356,
5078,
284,
7386,
12,
4421,
14746,
13,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
26791,
13,
27171,
1574,
13,
7004,
43961,
36044,
34621,
1574,
3256,
198,
220,
220,
220,
705,
28241,
14208,
13,
27171,
1574,
13,
17946,
1000,
13,
33711,
1000,
34621,
1574,
3256,
198,
220,
220,
220,
705,
28241,
14208,
13,
27171,
1574,
13,
11321,
13,
17227,
34621,
1574,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
18439,
13,
27171,
1574,
13,
46787,
10049,
36044,
34621,
1574,
3256,
198,
220,
220,
220,
705,
28241,
14208,
13,
27171,
1574,
13,
6359,
41871,
13,
34,
27891,
69,
7680,
34621,
1574,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
18439,
13,
27171,
1574,
13,
46787,
10049,
47649,
3299,
34621,
1574,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
11848,
62,
23317,
82,
13,
27171,
1574,
13,
33711,
1000,
34621,
1574,
3256,
198,
220,
220,
220,
705,
28241,
14208,
13,
3642,
822,
13,
37348,
1095,
13,
27171,
1574,
13,
12837,
34621,
1574,
3256,
198,
220,
220,
220,
1303,
3740,
1378,
31628,
13,
28241,
648,
404,
305,
752,
13,
785,
14,
268,
14,
16,
13,
19,
14,
5420,
14,
12976,
73,
5430,
14,
198,
220,
220,
220,
705,
28241,
14208,
13,
27171,
1574,
13,
12976,
73,
5430,
13,
55,
19778,
29046,
34621,
1574,
3256,
198,
220,
220,
220,
705,
28241,
14208,
13,
27171,
1574,
13,
7645,
2673,
13,
48720,
34621,
1574,
3256,
198,
220,
220,
220,
705,
18211,
13,
445,
1060,
82,
13,
27171,
1574,
13,
7738,
1060,
24750,
1891,
34621,
1574,
3256,
198,
220,
220,
220,
705,
18211,
13,
66,
13132,
540,
13,
27171,
1574,
13,
26257,
36668,
34621,
1574,
3256,
198,
220,
220,
220,
705,
28241,
14208,
62,
31391,
13,
27171,
86,
3565,
13,
16818,
14565,
13,
16818,
14565,
34621,
1574,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
18439,
13,
27171,
1574,
13,
11122,
2530,
41,
46569,
30642,
34621,
1574,
6,
198,
60,
198,
198,
2,
347,
8516,
364,
481,
2512,
674,
5468,
422,
11046,
287,
281,
611,
28073,
645,
2300,
543,
2524,
198,
2,
925,
262,
2581,
13,
770,
4634,
460,
307,
23170,
4651,
319,
257,
583,
2882,
393,
257,
583,
198,
2,
1570,
4308,
351,
262,
2488,
87,
14535,
11705,
2024,
13,
198,
55,
62,
10913,
10067,
62,
3185,
51,
11053,
796,
705,
41819,
56,
6,
628,
198,
51,
3620,
6489,
6158,
62,
10943,
32541,
62,
4805,
4503,
7597,
20673,
796,
3298,
62,
33692,
13,
51,
3620,
6489,
6158,
62,
10943,
32541,
62,
4805,
4503,
7597,
20673,
1343,
357,
198,
220,
220,
220,
1303,
27433,
262,
705,
25927,
6,
7885,
357,
1169,
1459,
367,
29281,
18453,
8,
1695,
287,
24019,
13,
198,
220,
220,
220,
705,
28241,
14208,
13,
7295,
13,
22866,
62,
14681,
669,
13,
25927,
3256,
198,
220,
220,
220,
705,
28241,
14208,
13,
7295,
13,
22866,
62,
14681,
669,
13,
72,
1507,
77,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
26791,
13,
22866,
62,
14681,
669,
13,
37050,
62,
18211,
62,
22866,
62,
41341,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
26791,
13,
22866,
62,
14681,
669,
13,
18300,
62,
41509,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
26791,
13,
22866,
62,
14681,
669,
13,
10414,
62,
33692,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
26791,
13,
22866,
62,
14681,
669,
13,
13297,
62,
31803,
62,
15042,
62,
2539,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
26791,
13,
22866,
62,
14681,
669,
13,
13297,
62,
38200,
14094,
62,
8189,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
26791,
13,
22866,
62,
14681,
669,
13,
82,
13000,
62,
9310,
77,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
26791,
13,
22866,
62,
14681,
669,
13,
19024,
62,
18439,
62,
33692,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
26791,
13,
22866,
62,
14681,
669,
13,
19816,
35330,
62,
33692,
3256,
198,
220,
220,
220,
705,
14557,
13,
18211,
13,
28241,
14208,
62,
1324,
13,
22866,
62,
14681,
669,
13,
1891,
2412,
3256,
198,
220,
220,
220,
705,
14557,
13,
18211,
13,
28241,
14208,
62,
1324,
13,
22866,
62,
14681,
669,
13,
38235,
62,
445,
1060,
3256,
198,
8,
198,
198,
13252,
2394,
62,
4261,
5639,
1340,
37,
796,
705,
505,
25067,
18664,
13,
6371,
82,
6,
198,
198,
2,
11361,
38745,
3108,
284,
262,
25290,
18878,
3586,
973,
416,
37770,
338,
1057,
15388,
13,
198,
19416,
18878,
62,
2969,
31484,
6234,
796,
705,
505,
25067,
18664,
13,
18504,
12397,
13,
31438,
6,
198,
198,
51,
3620,
6489,
6158,
62,
34720,
50,
796,
357,
198,
220,
220,
220,
1303,
5930,
13042,
994,
11,
588,
12813,
11195,
14,
6494,
14,
28241,
14208,
62,
11498,
17041,
1911,
198,
220,
220,
220,
1303,
16622,
779,
2651,
1017,
7465,
11,
772,
319,
3964,
13,
198,
220,
220,
220,
1303,
2094,
470,
6044,
284,
779,
4112,
13532,
11,
407,
3585,
13532,
13,
198,
220,
220,
220,
28686,
13,
6978,
13,
22179,
7,
31190,
23680,
62,
13252,
2394,
11,
705,
11498,
17041,
11537,
198,
8,
198,
198,
38604,
7036,
1961,
62,
2969,
3705,
796,
357,
198,
220,
220,
220,
1303,
37770,
6725,
198,
220,
220,
220,
705,
28241,
14208,
13,
3642,
822,
13,
18439,
3256,
198,
220,
220,
220,
705,
28241,
14208,
13,
3642,
822,
13,
11299,
19199,
3256,
198,
220,
220,
220,
705,
28241,
14208,
13,
3642,
822,
13,
82,
6202,
3256,
198,
220,
220,
220,
705,
28241,
14208,
13,
3642,
822,
13,
49315,
3256,
198,
220,
220,
220,
705,
28241,
14208,
13,
3642,
822,
13,
37348,
1095,
3256,
198,
220,
220,
220,
705,
28241,
14208,
13,
3642,
822,
13,
12708,
16624,
3256,
628,
220,
220,
220,
1303,
513,
4372,
2151,
6725,
198,
220,
220,
220,
705,
28241,
14208,
62,
2302,
5736,
3256,
198,
220,
220,
220,
705,
28241,
14208,
62,
2302,
5736,
13,
41989,
3256,
198,
220,
220,
220,
705,
430,
574,
13,
3642,
822,
13,
28241,
14208,
13,
430,
574,
62,
5589,
265,
3256,
198,
220,
220,
220,
705,
28241,
7015,
88,
3256,
198,
220,
220,
220,
705,
35782,
3256,
198,
220,
220,
220,
1303,
705,
28241,
14208,
62,
77,
577,
3256,
198,
220,
220,
220,
705,
5589,
44292,
3256,
198,
220,
220,
220,
705,
82,
273,
75,
13,
400,
20566,
3256,
198,
220,
220,
220,
705,
83,
9460,
270,
3256,
198,
220,
220,
220,
705,
83,
9460,
270,
62,
2306,
42829,
6677,
62,
41771,
3256,
198,
220,
220,
220,
705,
9383,
707,
527,
13,
3642,
822,
13,
76,
10210,
73,
14208,
3256,
220,
1303,
13302,
6048,
278,
5861,
198,
220,
220,
220,
705,
11498,
489,
265,
316,
363,
62,
28144,
34046,
3256,
198,
220,
220,
220,
705,
2118,
62,
30604,
3256,
198,
220,
220,
220,
705,
2118,
62,
30604,
13,
18439,
30001,
3256,
198,
220,
220,
220,
705,
35428,
24503,
291,
3256,
198,
220,
220,
220,
705,
2301,
33397,
3256,
198,
220,
220,
220,
705,
7753,
7645,
69,
364,
3256,
198,
220,
220,
220,
705,
6404,
24252,
3256,
198,
220,
220,
220,
1303,
6,
14557,
62,
18439,
3256,
198,
220,
220,
220,
705,
14557,
13,
18211,
13,
28241,
14208,
62,
1324,
13,
12286,
3256,
628,
220,
220,
220,
1303,
1881,
25067,
598,
284,
3758,
24582,
7007,
284,
12341,
2662,
198,
220,
220,
220,
705,
505,
25067,
62,
1878,
296,
3256,
628,
220,
220,
220,
1303,
38300,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
42655,
3256,
628,
220,
220,
220,
1303,
40773,
2443,
10154,
198,
220,
220,
220,
705,
69,
28216,
62,
3642,
658,
3256,
198,
220,
220,
220,
705,
69,
28216,
62,
3642,
658,
13,
37390,
13,
5239,
3256,
198,
220,
220,
220,
705,
69,
28216,
62,
3642,
658,
13,
37390,
13,
78,
20521,
9186,
3256,
198,
220,
220,
220,
705,
69,
28216,
62,
3642,
658,
13,
37390,
13,
1831,
6494,
3256,
198,
220,
220,
220,
705,
28241,
14208,
62,
86,
893,
14246,
35641,
3256,
198,
220,
220,
220,
705,
44152,
76,
344,
3256,
198,
220,
220,
220,
705,
12708,
72,
1507,
77,
3256,
198,
220,
220,
220,
705,
28241,
14208,
13,
3642,
822,
13,
10734,
1096,
3256,
198,
220,
220,
220,
705,
28241,
14208,
62,
31391,
3256,
628,
220,
220,
220,
1303,
13186,
26828,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
18439,
3256,
628,
220,
220,
220,
1303,
30275,
6284,
422,
1468,
19599,
2524,
13,
198,
220,
220,
220,
705,
1455,
1590,
18439,
3256,
628,
198,
220,
220,
220,
1303,
28847,
4518,
10985,
293,
6725,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
11930,
24875,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
26791,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
11321,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
11299,
37390,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
32057,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
469,
78,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
31126,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
10827,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
6649,
1460,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
421,
6421,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
15577,
902,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
15577,
902,
62,
15390,
7890,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
15577,
902,
62,
6404,
1362,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
15577,
902,
62,
85,
280,
2044,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
445,
1060,
82,
3256,
628,
220,
220,
220,
1303,
27710,
16610,
4518,
10985,
293,
2779,
4981,
198,
220,
220,
220,
1303,
2312,
815,
307,
878,
612,
347,
65,
3397,
523,
262,
24019,
389,
23170,
4651,
198,
220,
220,
220,
705,
18211,
13,
30814,
3256,
198,
220,
220,
220,
705,
18211,
13,
83,
6791,
3256,
198,
220,
220,
220,
705,
18211,
13,
42068,
3256,
198,
220,
220,
220,
705,
18211,
13,
9971,
4582,
3256,
198,
220,
220,
220,
705,
18211,
13,
15577,
5269,
3256,
628,
220,
220,
220,
1303,
6725,
44987,
4171,
10985,
293,
11244,
815,
1282,
878,
262,
4171,
10985,
293,
12784,
198,
220,
220,
220,
1303,
357,
28243,
3440,
364,
2298,
262,
717,
11055,
484,
1064,
8,
198,
220,
220,
220,
705,
18211,
13,
7295,
3256,
198,
220,
220,
220,
705,
18211,
13,
17585,
10985,
293,
62,
82,
2040,
3174,
3256,
628,
220,
220,
220,
705,
18211,
13,
17585,
10985,
293,
62,
42460,
3526,
3256,
198,
220,
220,
220,
705,
18211,
13,
11299,
37390,
3256,
198,
220,
220,
220,
705,
18211,
13,
35012,
82,
3256,
198,
220,
220,
220,
705,
18211,
13,
71,
65,
11498,
17041,
3256,
198,
220,
220,
220,
705,
18211,
13,
14269,
3969,
3256,
198,
220,
220,
220,
705,
18211,
13,
11195,
7700,
3256,
198,
220,
220,
220,
705,
18211,
13,
3911,
2741,
3256,
198,
220,
220,
220,
705,
18211,
13,
66,
13132,
540,
3256,
198,
220,
220,
220,
705,
18211,
13,
76,
354,
16484,
3256,
198,
220,
220,
220,
705,
18211,
13,
8344,
14924,
62,
9099,
602,
3256,
628,
198,
220,
220,
220,
1303,
4518,
10985,
293,
6725,
351,
12531,
4981,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
11848,
62,
23317,
82,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
11848,
62,
9971,
4582,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
11848,
62,
42068,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
11848,
62,
83,
6791,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
11848,
62,
10990,
430,
21572,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
11848,
62,
9099,
602,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
11848,
62,
6361,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
11848,
62,
15577,
5269,
3256,
628,
220,
220,
220,
1303,
14392,
347,
65,
25504,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
10990,
430,
21572,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
9099,
602,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
6361,
3256,
628,
220,
220,
220,
1303,
44855,
11682,
25,
9175,
777,
655,
329,
15720,
602,
198,
220,
220,
220,
705,
18211,
13,
10990,
3256,
198,
220,
220,
220,
705,
18211,
13,
8232,
563,
3256,
198,
220,
220,
220,
705,
18211,
13,
8232,
563,
62,
15390,
7890,
3256,
628,
220,
220,
220,
1303,
44855,
11682,
25,
797,
320,
26908,
777,
6725,
198,
220,
220,
220,
705,
18211,
13,
85,
280,
3533,
3256,
198,
220,
220,
220,
1303,
705,
18211,
13,
325,
8957,
3256,
198,
220,
220,
220,
1303,
705,
18211,
13,
40664,
11748,
3256,
198,
220,
220,
220,
1303,
705,
18211,
13,
23317,
278,
3256,
628,
198,
220,
220,
220,
1303,
8562,
30415,
198,
220,
220,
220,
705,
69,
28216,
62,
42460,
3526,
3256,
198,
220,
220,
220,
705,
28482,
62,
31391,
3256,
198,
220,
220,
220,
705,
28482,
62,
31391,
13,
1169,
2229,
3256,
198,
220,
220,
220,
705,
28482,
62,
31391,
13,
26272,
3256,
198,
220,
220,
220,
705,
28482,
62,
31391,
13,
42460,
3526,
3256,
198,
220,
220,
220,
705,
28241,
14208,
13,
3642,
822,
13,
28482,
3256,
198,
220,
220,
220,
705,
28241,
14208,
13,
3642,
822,
13,
324,
10155,
420,
82,
3256,
198,
8,
198,
198,
2,
8562,
11787,
2746,
198,
32,
24318,
62,
29904,
62,
33365,
3698,
796,
705,
30814,
13,
27608,
6,
198,
198,
31190,
41,
2943,
4694,
62,
31190,
23680,
62,
33365,
3698,
796,
705,
42068,
13,
16775,
6,
198,
31190,
41,
2943,
4694,
62,
11909,
1921,
3698,
7730,
62,
33365,
3698,
796,
705,
42068,
13,
16775,
35645,
11187,
6,
198,
198,
42296,
35,
3861,
1797,
4877,
62,
42296,
35,
3861,
1797,
1137,
62,
33365,
3698,
796,
705,
10990,
430,
21572,
13,
24553,
21762,
5847,
6,
198,
198,
51,
1921,
27015,
62,
51,
1921,
42,
62,
33365,
3698,
796,
705,
83,
6791,
13,
25714,
6,
198,
51,
1921,
27015,
62,
18831,
8267,
62,
33365,
3698,
796,
705,
83,
6791,
13,
35040,
6,
198,
51,
1921,
27015,
62,
51,
1921,
42,
44,
28952,
62,
33365,
3698,
796,
705,
83,
6791,
13,
25714,
27608,
6,
198,
51,
1921,
27015,
62,
51,
1921,
42,
25664,
62,
33365,
3698,
796,
705,
83,
6791,
13,
25714,
8979,
6,
198,
198,
1581,
45028,
14887,
18421,
62,
1581,
45028,
14887,
6234,
62,
33365,
3698,
796,
705,
9971,
4582,
13,
26121,
1634,
6,
198,
1581,
45028,
14887,
18421,
62,
38715,
5883,
3525,
62,
33365,
3698,
796,
705,
9971,
4582,
13,
26121,
1634,
24941,
6,
198,
1581,
45028,
14887,
18421,
62,
44,
28952,
62,
33365,
3698,
796,
705,
9971,
4582,
13,
26121,
1634,
27608,
6,
198,
198,
12532,
4877,
62,
12532,
1137,
62,
33365,
3698,
796,
705,
6361,
13,
18743,
6,
198,
41173,
18421,
62,
41173,
6234,
62,
33365,
3698,
796,
705,
9099,
602,
13,
3987,
341,
6,
198,
198,
4537,
36981,
4694,
62,
31190,
23680,
4537,
56,
12425,
62,
33365,
3698,
796,
705,
15577,
5269,
13,
16775,
19197,
448,
6,
198,
4537,
36981,
4694,
62,
1581,
45028,
14887,
6234,
4537,
56,
12425,
62,
33365,
3698,
796,
705,
15577,
5269,
13,
26121,
1634,
19197,
448,
6,
198,
198,
50,
4503,
12576,
62,
32,
24318,
62,
29904,
62,
33365,
3698,
796,
705,
30814,
13,
27608,
6,
198,
50,
4503,
12576,
62,
32,
24318,
62,
49836,
39453,
62,
6173,
32135,
796,
37250,
12888,
3256,
705,
7220,
62,
36154,
3256,
705,
11377,
62,
13317,
3256,
705,
7220,
62,
24280,
820,
20520,
198,
50,
4503,
12576,
62,
32,
24318,
62,
49836,
39453,
62,
13918,
3861,
62,
26947,
796,
685,
10786,
24280,
820,
3256,
705,
24280,
820,
11537,
60,
198,
198,
2,
317,
6291,
18931,
8398,
13,
383,
691,
24607,
18931,
198,
2,
6157,
416,
428,
8398,
318,
284,
3758,
281,
3053,
284,
198,
2,
262,
2524,
44563,
319,
790,
14626,
5323,
4049,
618,
16959,
28,
25101,
13,
198,
2,
4091,
2638,
1378,
31628,
13,
28241,
648,
404,
305,
752,
13,
785,
14,
268,
14,
7959,
14,
4852,
873,
14,
6404,
2667,
329,
198,
2,
517,
3307,
319,
703,
284,
24184,
534,
18931,
8398,
13,
198,
25294,
38,
2751,
796,
1391,
198,
220,
220,
220,
705,
9641,
10354,
352,
11,
198,
220,
220,
220,
705,
40223,
62,
25687,
62,
6404,
5355,
10354,
10352,
11,
198,
220,
220,
220,
705,
18982,
1010,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
705,
20307,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
18982,
10354,
12878,
4,
7,
292,
310,
524,
8,
82,
60,
4064,
7,
5715,
3672,
8,
82,
685,
4,
7,
3672,
8,
82,
25,
4,
7,
2815,
23397,
8,
82,
60,
4064,
7,
20500,
8,
82,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4475,
69,
16762,
10354,
36521,
67,
14,
4,
65,
14,
4,
56,
4064,
39,
25,
4,
44,
25,
4,
50,
1,
198,
220,
220,
220,
220,
220,
220,
220,
8964,
198,
220,
220,
220,
8964,
198,
220,
220,
220,
705,
10379,
1010,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
705,
46115,
62,
24442,
62,
9562,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3419,
10354,
705,
28241,
14208,
13,
26791,
13,
6404,
13,
16844,
557,
27509,
25101,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
8964,
198,
220,
220,
220,
705,
4993,
8116,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
705,
4529,
62,
324,
42951,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5715,
10354,
705,
24908,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
10379,
1010,
10354,
37250,
46115,
62,
24442,
62,
9562,
6,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4871,
10354,
705,
28241,
14208,
13,
26791,
13,
6404,
13,
46787,
15333,
25060,
6,
198,
220,
220,
220,
220,
220,
220,
220,
8964,
198,
220,
220,
220,
220,
220,
220,
220,
705,
37301,
62,
6404,
82,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5715,
10354,
705,
10778,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4871,
10354,
705,
17585,
10985,
293,
13,
15577,
902,
62,
6404,
1362,
13,
4993,
8116,
13,
19197,
434,
11187,
25060,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
8964,
198,
220,
220,
220,
705,
6404,
5355,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
705,
28241,
14208,
13,
25927,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4993,
8116,
10354,
37250,
4529,
62,
324,
42951,
6,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5715,
10354,
705,
24908,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
22930,
37861,
10354,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
8964,
198,
220,
220,
220,
220,
220,
220,
220,
705,
17585,
10985,
293,
13,
82,
2040,
3174,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4993,
8116,
10354,
37250,
4529,
62,
324,
42951,
6,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5715,
10354,
705,
24908,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
22930,
37861,
10354,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
8964,
198,
220,
220,
220,
220,
220,
220,
220,
705,
15577,
902,
13,
37301,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4993,
8116,
10354,
37250,
4529,
62,
324,
42951,
3256,
705,
37301,
62,
6404,
82,
6,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5715,
10354,
705,
10778,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
22930,
37861,
10354,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
8964,
198,
220,
220,
220,
1782,
198,
92,
628,
198,
2,
2604,
8563,
1222,
14601,
198,
11748,
18931,
198,
6404,
2667,
13,
35487,
16934,
7,
5715,
28,
6404,
2667,
13,
31502,
11,
5794,
11639,
58,
4,
7,
292,
310,
524,
8,
82,
60,
4064,
7,
5715,
3672,
13219,
23,
82,
4064,
7,
20500,
8,
82,
3256,
3128,
69,
16762,
2625,
4,
67,
14,
4,
65,
14,
4,
56,
4064,
39,
25,
4,
44,
25,
4,
50,
4943,
628,
198,
2,
37770,
15248,
1924,
532,
39354,
4876,
4382,
198,
11748,
42625,
7015,
88,
198,
28241,
7015,
88,
13,
40406,
62,
29356,
3419,
198,
198,
50,
4503,
12576,
62,
32,
24318,
62,
18601,
6158,
31212,
796,
705,
14557,
13,
2536,
2397,
444,
13,
28241,
14208,
62,
2536,
4338,
13,
35,
73,
14208,
13290,
4338,
6,
198,
50,
4503,
12576,
62,
32,
24318,
62,
2257,
1581,
11879,
796,
705,
14557,
13,
18211,
13,
28241,
14208,
62,
1324,
13,
12286,
13,
27530,
13,
35,
73,
14208,
31425,
6,
198,
198,
32,
24318,
3525,
2149,
6234,
62,
31098,
1677,
5258,
796,
357,
198,
220,
220,
220,
705,
14557,
13,
1891,
2412,
13,
19024,
13,
12025,
4677,
23621,
1071,
17,
3256,
198,
220,
220,
220,
705,
14557,
13,
1891,
2412,
13,
19024,
13,
12025,
23621,
1071,
17,
3256,
198,
220,
220,
220,
705,
28241,
14208,
13,
3642,
822,
13,
18439,
13,
1891,
2412,
13,
17633,
7282,
437,
3256,
198,
8,
198,
198,
2,
775,
821,
1262,
9686,
780,
340,
7095,
262,
5254,
284,
674,
6725,
357,
72,
13,
68,
13,
645,
37770,
290,
198,
2,
513,
4372,
2151,
598,
5254,
737,
775,
761,
428,
780,
5254,
287,
542,
822,
13,
18439,
13,
7220,
389,
198,
2,
9894,
287,
37770,
352,
13,
19,
13,
16,
13,
3423,
338,
262,
7846,
329,
262,
9894,
1332,
25,
198,
2,
3740,
1378,
8189,
13,
28241,
648,
404,
305,
752,
13,
785,
14,
43350,
14,
21738,
2791,
198,
2,
383,
649,
1332,
17490,
287,
37770,
352,
13,
20,
481,
307,
517,
12846,
25,
198,
2,
5450,
1378,
8189,
13,
28241,
648,
404,
305,
752,
13,
785,
14,
43350,
14,
1558,
24760,
198,
51,
6465,
62,
49,
4944,
21479,
796,
705,
28241,
14208,
62,
77,
577,
13,
45,
577,
14402,
5606,
578,
49493,
6,
198,
45,
14058,
62,
1503,
14313,
796,
685,
198,
220,
220,
220,
705,
438,
15255,
6255,
12,
48277,
3256,
198,
220,
220,
220,
705,
438,
77,
928,
27144,
495,
3256,
198,
60,
198,
198,
18831,
4061,
62,
15199,
62,
42296,
4177,
2849,
1847,
62,
51,
1546,
4694,
796,
6407,
628,
198,
50,
2606,
4221,
62,
51,
1546,
4694,
62,
44,
3528,
49,
6158,
796,
10352,
220,
1303,
6889,
5366,
4423,
510,
1141,
5254,
628,
198,
2,
42625,
14208,
12,
5589,
44292,
2638,
1378,
79,
4464,
72,
13,
29412,
13,
2398,
14,
79,
4464,
72,
14,
28241,
14208,
62,
5589,
44292,
198,
2,
3082,
44292,
318,
9343,
8797,
16959,
318,
10352,
13,
198,
35744,
2149,
46700,
1546,
62,
37,
12115,
4877,
15853,
685,
198,
220,
220,
220,
1303,
42625,
14208,
12,
5589,
44292,
9037,
16624,
198,
220,
220,
220,
705,
5589,
44292,
13,
19796,
364,
13,
7293,
44292,
37,
5540,
3256,
198,
60,
198,
198,
2,
16926,
46,
27882,
31855,
994,
13,
198,
9858,
32761,
62,
2606,
7250,
3843,
62,
34720,
796,
705,
5589,
2790,
6,
198,
9858,
32761,
62,
49155,
62,
46700,
51,
4877,
796,
685,
198,
220,
220,
220,
705,
5589,
44292,
13,
10379,
1010,
13,
25471,
62,
12286,
13,
34,
824,
24849,
3552,
22417,
3256,
198,
220,
220,
220,
1303,
6,
5589,
44292,
13,
10379,
1010,
13,
7890,
9900,
13,
6601,
52,
380,
22417,
3256,
198,
220,
220,
220,
705,
5589,
44292,
13,
10379,
1010,
13,
25471,
1084,
13,
49155,
9452,
22417,
6,
198,
60,
198,
198,
2,
17406,
9083,
17391,
662,
5589,
10520,
198,
2,
9858,
32761,
62,
46437,
9858,
47,
4146,
4877,
796,
357,
198,
2,
220,
220,
220,
19203,
5239,
14,
1073,
487,
2841,
6519,
3256,
705,
1073,
5853,
1377,
5589,
576,
1377,
19282,
952,
33809,
198,
2,
220,
220,
220,
19203,
5239,
14,
1203,
3256,
705,
1203,
66,
1391,
259,
7753,
92,
1391,
448,
7753,
92,
33809,
198,
2,
220,
220,
220,
19203,
5239,
14,
87,
12,
82,
562,
3256,
705,
82,
562,
1391,
259,
7753,
92,
1391,
448,
7753,
92,
33809,
198,
2,
220,
220,
220,
19203,
5239,
14,
87,
12,
1416,
824,
3256,
705,
82,
562,
1377,
1416,
824,
1391,
259,
7753,
92,
1391,
448,
7753,
92,
33809,
198,
2,
8,
198,
198,
2,
383,
4277,
10289,
284,
3758,
2985,
284,
706,
17594,
13,
770,
481,
307,
973,
618,
262,
198,
2,
705,
19545,
6,
10289,
11507,
5818,
470,
587,
900,
13,
198,
25294,
1268,
62,
22083,
40,
23988,
62,
21886,
796,
31051,
6,
628,
198,
2,
14001,
14,
10827,
2695,
8398,
198,
3697,
52,
3525,
62,
37815,
15365,
62,
34,
2246,
13909,
62,
2606,
7250,
3843,
796,
6407,
198,
3697,
52,
3525,
62,
32541,
62,
29931,
1565,
62,
28656,
796,
6407,
198,
3697,
52,
3525,
62,
32541,
62,
36753,
2043,
35400,
62,
28656,
796,
6407,
198,
35028,
1565,
11230,
62,
54,
56,
11584,
54,
56,
38,
62,
3697,
10116,
1581,
796,
705,
44152,
76,
344,
62,
32225,
2903,
6,
628,
198,
2,
20906,
329,
5412,
34046,
62,
28243,
284,
670,
6105,
198,
19108,
62,
28952,
62,
2257,
56,
2538,
62,
1404,
5446,
50,
796,
6407,
198,
198,
2,
15423,
75,
536,
20566,
6460,
198,
2,
2638,
1378,
82,
273,
75,
12,
400,
20566,
13,
961,
83,
704,
420,
82,
13,
2398,
14,
268,
14,
42861,
14,
35790,
14,
33692,
13,
6494,
198,
4221,
5883,
33,
4535,
4146,
62,
10917,
1847,
9050,
796,
7600,
198,
2,
16926,
46,
25,
17056,
495,
15423,
75,
351,
2297,
271,
13,
198,
198,
49,
6465,
62,
10913,
2390,
6217,
14670,
796,
1391,
198,
220,
220,
220,
705,
46700,
5781,
62,
31098,
10619,
10354,
705,
2118,
62,
30604,
13,
10379,
1010,
13,
35,
73,
14208,
22417,
7282,
437,
3256,
198,
220,
220,
220,
705,
7206,
38865,
62,
32,
24318,
3525,
2149,
6234,
62,
31631,
1546,
10354,
357,
198,
220,
220,
220,
220,
220,
220,
220,
705,
2118,
62,
30604,
62,
73,
46569,
13,
41299,
3299,
13,
40386,
13908,
30642,
47649,
3299,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
2118,
62,
30604,
13,
41299,
3299,
13,
36044,
47649,
3299,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
2118,
62,
30604,
13,
41299,
3299,
13,
30642,
47649,
3299,
3256,
198,
220,
220,
220,
1267,
198,
92,
198,
198,
41,
39386,
62,
32,
24318,
796,
1391,
198,
220,
220,
220,
705,
41,
39386,
62,
49864,
4663,
6234,
62,
35,
3698,
5603,
10354,
4818,
8079,
13,
16514,
276,
12514,
7,
12545,
28,
22,
828,
198,
220,
220,
220,
705,
41,
39386,
62,
2538,
6217,
4792,
10354,
657,
11,
198,
220,
220,
220,
705,
41,
39386,
62,
5959,
5064,
56,
10354,
6407,
11,
198,
220,
220,
220,
705,
41,
39386,
62,
5959,
5064,
56,
62,
49864,
4663,
6234,
10354,
6407,
11,
628,
220,
220,
220,
705,
41,
39386,
62,
7036,
3913,
62,
10468,
43959,
62,
49,
1677,
6217,
1847,
10354,
6407,
11,
198,
220,
220,
220,
1303,
2293,
262,
22901,
4179,
340,
2125,
470,
1744,
284,
2581,
257,
11241,
14976,
198,
220,
220,
220,
1303,
5218,
640,
11241,
717,
2727,
1343,
22901,
4179,
13,
198,
220,
220,
220,
705,
41,
39386,
62,
10468,
43959,
62,
49,
1677,
6217,
1847,
62,
43,
3955,
2043,
10354,
4818,
8079,
13,
16514,
276,
12514,
7,
12545,
28,
3829,
828,
198,
92,
198,
2,
3862,
1022,
6370,
284,
14976,
262,
474,
46569,
11241,
6338,
319,
3210,
2581,
198,
2,
16926,
46,
25,
1445,
428,
4634,
656,
262,
449,
39386,
62,
32,
24318,
6460,
13,
198,
41,
39386,
62,
10468,
43959,
62,
49,
1677,
6217,
1847,
62,
35,
3698,
5603,
796,
4818,
8079,
13,
16514,
276,
12514,
7,
1084,
1769,
28,
1270,
8,
198,
198,
34,
3913,
18276,
62,
26087,
27064,
62,
21886,
62,
33,
11159,
796,
705,
4023,
1378,
16799,
13,
15,
13,
15,
13,
16,
25,
33942,
6,
198,
198,
34,
3913,
18276,
62,
4537,
56,
10979,
62,
49273,
50,
796,
1391,
198,
220,
220,
220,
705,
1860,
12,
12384,
26272,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
705,
13317,
10354,
705,
12384,
26272,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
3672,
10354,
705,
23579,
6601,
5313,
21860,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
18608,
2096,
62,
8344,
14924,
10354,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
705,
18608,
2096,
62,
29762,
10354,
6407,
11,
198,
220,
220,
220,
8964,
628,
220,
220,
220,
705,
1860,
12,
12384,
12942,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
705,
13317,
10354,
705,
12384,
12942,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
3672,
10354,
705,
23579,
6601,
5313,
13470,
4128,
1024,
2545,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
49343,
62,
9127,
1678,
10354,
19203,
32572,
3256,
828,
198,
220,
220,
220,
220,
220,
220,
220,
705,
18608,
2096,
62,
8344,
14924,
10354,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
705,
18608,
2096,
62,
29762,
10354,
10352,
11,
198,
220,
220,
220,
8964,
198,
92,
198,
198,
2,
15161,
32313,
5873,
355,
4731,
357,
1484,
287,
1414,
5269,
8,
198,
53,
1404,
62,
49,
6158,
796,
705,
15,
13,
2481,
6,
198,
198,
2,
16163,
329,
4009,
3331,
1848,
13,
4222,
900,
428,
287,
13141,
13,
9078,
198,
2,
7946,
4537,
796,
1391,
198,
2,
220,
220,
220,
220,
705,
14278,
10354,
705,
3256,
198,
2,
220,
220,
220,
220,
705,
65,
291,
10354,
705,
3256,
198,
2,
220,
220,
220,
220,
705,
3672,
10354,
705,
3256,
198,
2,
220,
220,
220,
220,
705,
312,
10354,
10148,
198,
2,
1782,
198,
198,
2,
17329,
3174,
598,
6460,
198,
50,
1847,
1546,
13775,
5222,
62,
10917,
19664,
62,
34694,
12425,
796,
513,
198,
35,
1404,
6242,
11159,
62,
49,
12425,
4877,
796,
685,
198,
220,
220,
220,
366,
82,
2040,
3174,
13,
472,
353,
13,
17633,
49,
39605,
1,
198,
60,
198,
198,
2,
412,
12,
4529,
6460,
198,
7206,
38865,
62,
10913,
2662,
62,
27630,
4146,
796,
705,
27,
732,
12485,
31,
505,
25067,
18664,
13,
785,
29,
352,
4,
42350,
6,
628,
198,
2,
37770,
12,
2301,
33397,
6460,
198,
26861,
28270,
62,
10659,
3824,
6234,
62,
26442,
50,
796,
604,
198,
28656,
62,
10659,
3824,
6234,
62,
27630,
4146,
796,
6407,
220,
1303,
5740,
428,
4634,
318,
422,
674,
329,
9091,
2196,
13,
198,
198,
2,
44224,
4856,
198,
2,
15300,
47477,
290,
13341,
3849,
6460,
198,
50,
3698,
1677,
41796,
62,
51,
1546,
4694,
796,
6407,
198,
50,
3698,
1677,
41796,
62,
8845,
33,
7707,
38757,
796,
705,
746,
11456,
8457,
6,
220,
1303,
1680,
307,
597,
286,
32030,
11,
2046,
12792,
11,
36381,
8457,
198,
198,
47084,
51,
11335,
62,
34720,
50,
796,
685,
198,
220,
220,
220,
28686,
13,
6978,
13,
22179,
7,
35028,
1565,
11230,
62,
31190,
23680,
11,
705,
69,
25506,
11537,
198,
60,
198,
198,
2,
14407,
20120,
329,
6228,
2443,
5270,
13,
198,
2,
24550,
25,
770,
468,
2147,
284,
466,
351,
4856,
1028,
36381,
8457,
13,
198,
34,
20530,
43,
17534,
62,
11909,
8643,
2662,
20120,
62,
35,
1961,
2149,
11617,
62,
49058,
796,
6407,
198,
2,
1002,
7256,
4235,
318,
9343,
11,
17425,
262,
2493,
25,
198,
34,
20530,
43,
17534,
62,
11909,
8643,
2662,
20120,
62,
35,
1961,
2149,
11617,
62,
15490,
796,
9919,
940,
198,
2,
1002,
7256,
4235,
318,
10058,
11,
345,
460,
11986,
7159,
284,
923,
36381,
8457,
13,
198,
34,
20530,
43,
17534,
62,
11909,
8643,
2662,
20120,
62,
1503,
14313,
796,
17635,
198,
2,
5765,
38288,
329,
14407,
20120,
7007,
13,
198,
34,
20530,
43,
17534,
62,
13775,
5222,
62,
6535,
28820,
796,
6407,
198,
198,
2,
16290,
3053,
284,
8624,
416,
4277,
198,
27630,
4146,
62,
31098,
10619,
796,
705,
28241,
14208,
13,
7295,
13,
4529,
13,
1891,
2412,
13,
41947,
13,
15333,
7282,
437,
6,
198,
198,
35744,
2149,
40,
1507,
45,
62,
13252,
2394,
796,
28686,
13,
6978,
13,
22179,
7,
31190,
23680,
62,
13252,
2394,
11,
705,
12708,
3256,
705,
20541,
11537,
198,
198,
50,
47621,
62,
34,
15308,
10008,
62,
20608,
796,
705,
11848,
12,
29891,
12,
312,
6,
198,
198,
2,
7929,
10655,
21442,
198,
47924,
54,
12532,
62,
39,
11211,
4877,
796,
3298,
62,
33692,
13,
47924,
54,
12532,
62,
39,
11211,
4877,
1343,
357,
198,
220,
220,
220,
705,
1455,
1590,
18439,
13,
10134,
7084,
13,
11484,
1590,
35215,
19242,
372,
3256,
198,
8,
198,
198,
2,
3009,
17105,
11,
583,
3303,
198,
34551,
2043,
5781,
62,
39,
6981,
28378,
796,
1391,
198,
220,
220,
220,
705,
21283,
10354,
705,
16,
1676,
1087,
18664,
3256,
198,
220,
220,
220,
705,
268,
10354,
705,
16,
25067,
18664,
3256,
198,
92,
198,
7206,
38865,
62,
34551,
2043,
5781,
62,
39,
6981,
2538,
796,
17306,
2043,
5781,
62,
39,
6981,
28378,
17816,
21283,
20520,
198,
198,
23678,
3955,
1847,
62,
4537,
56,
12425,
62,
2390,
28270,
796,
2310,
13,
405,
198,
50,
4503,
12576,
62,
32,
24318,
62,
47,
4061,
3698,
8881,
796,
357,
198,
220,
220,
220,
705,
14557,
13,
79,
541,
4470,
13,
14557,
62,
18439,
13,
14557,
62,
36604,
3256,
198,
220,
220,
220,
705,
14557,
13,
79,
541,
4470,
13,
14557,
62,
18439,
13,
14557,
62,
27112,
3256,
198,
220,
220,
220,
705,
14557,
13,
79,
541,
4470,
13,
14557,
62,
18439,
13,
18439,
62,
40845,
3256,
198,
220,
220,
220,
705,
14557,
13,
79,
541,
4470,
13,
14557,
62,
18439,
13,
14557,
62,
7220,
3256,
198,
220,
220,
220,
705,
14557,
13,
79,
541,
4470,
13,
7220,
13,
1136,
62,
29460,
3256,
198,
220,
220,
220,
705,
14557,
13,
79,
541,
4470,
13,
14557,
62,
18439,
13,
562,
47615,
62,
1525,
62,
12888,
3256,
198,
220,
220,
220,
705,
14557,
13,
79,
541,
4470,
13,
7220,
13,
17953,
62,
7220,
3256,
198,
220,
220,
220,
705,
14557,
13,
79,
541,
4470,
13,
14557,
62,
18439,
13,
562,
47615,
62,
7220,
3256,
198,
220,
220,
220,
705,
14557,
13,
79,
541,
4470,
13,
14557,
62,
18439,
13,
2220,
62,
26086,
62,
7890,
3256,
198,
220,
220,
220,
705,
14557,
13,
79,
541,
4470,
13,
7220,
13,
7220,
62,
36604,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
18439,
13,
26791,
13,
21928,
62,
13317,
62,
34053,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
18439,
13,
26791,
13,
1136,
62,
26086,
62,
19024,
62,
7890,
3256,
198,
220,
220,
220,
705,
17585,
10985,
293,
13,
18439,
13,
26791,
13,
21280,
62,
86,
9571,
62,
4529,
62,
34360,
6,
198,
8,
198,
198,
8579,
2662,
62,
1677,
6242,
30465,
796,
10352,
198,
198,
50,
4503,
12576,
62,
32,
24318,
62,
4805,
2394,
9782,
1961,
62,
29904,
62,
11674,
3698,
5258,
796,
37250,
12888,
3256,
705,
11085,
62,
3672,
3256,
705,
12957,
62,
3672,
3256,
2361,
198,
50,
4503,
12576,
62,
32,
24318,
62,
29904,
20608,
62,
1797,
62,
37,
9994,
62,
27630,
4146,
796,
6407,
198,
198,
50,
10619,
62,
54,
3698,
9858,
36,
62,
5673,
4146,
796,
6407,
198
] | 2.622068 | 7,758 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Los valores reales eran
#La altura inicial es 0.5 [m]
#La gravedad es 9.8 [m/s^2]
#El ángulo es 25 [grados]
#La velocidad inicial es 5 [m/s]
#El Xmax es 2.724 [m]
#El Ymax es 0.728 [m]
import math, sys
#PARA REVISAR RÁPIDAMENTE
n=15
x=[0.100,0.250,0.400,0.550,0.700,0.850,1.000,1.150,1.300,1.450,1.600,1.750,1.900,2.050,2.200]
y=[0.553,0.605,0.657,0.693,0.711,0.733,0.734,0.724,0.710,0.676,0.639,0.594,0.525,0.462,0.380]
t=[0.029,0.064,0.091,0.130,0.158,0.193,0.225,0.262,0.288,0.326,0.353,0.392,0.421,0.458,0.494]
#POR ENTRADA POR CONSOLA
#n=int(input("¿Cuántos datos son?"))
#x=[]
#y=[]
#t=[]
#
#if n<=0:
# print("El número de datos debe ser mayor a cero")
# sys.exit()
#else:
# for i in range(0,n):
# print("Ingrese el dato x%d") % (i)
# x.append(float(input()))
# print("Ingrese el dato y%d") % (i)
# y.append(float(input()))
# print("Ingrese el dato t%d") % (i)
# t.append(float(input()))
sol1=reglineal(x,t,n)
sol2=regcuad(y,t,n)
print sol1
#sol1[0]-->m
#sol1[1]-->b
#sol2[0]-->cc
#sol2[1]-->bc
#sol2[2]-->ac
y0 = sol2[2]
g = -2.0*sol2[0]
theta = math.atan(sol2[1]/sol1[0]) #En radianes
V0 = sol1[0]/math.cos(theta)
if ((V0*math.sin(theta))**2.0+2.0*g*y0)==0:
print("Los datos arrojan tiempos complejos")
sys.exit()
else:
tmax1 = (-1.0*V0*math.sin(theta) + math.sqrt((V0*math.sin(theta))**2.0+2.0*g*y0))/(-1.0*g)
tmax2 = (-1.0*V0*math.sin(theta) - math.sqrt((V0*math.sin(theta))**2.0+2.0*g*y0))/(-1.0*g)
if tmax1>0:
xmax = V0*math.cos(theta)*tmax1
elif tmax2>0:
xmax = V0*math.cos(theta)*tmax2
else:
print("Tiempos negativos hay un error en sus datos")
sys.exit()
ts = V0*math.sin(theta)/g
if ts<0:
print("Tiempos negativos hay un error en sus datos")
else:
ymax = y0 - 0.5*g*ts**2 + V0*math.sin(theta)*ts
print ("La altura inicial es %.3f [m]\nLa gravedad es %.3f [m/s^2]\nEl ángulo es %.3f [grados] \nLa velocidad inicial es %.3f [m/s] \nEl Xmax es %.3f [m] \nEl Ymax es %.3f [m]") % (y0,g,math.degrees(theta),V0,xmax,ymax)
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
2,
28903,
1188,
2850,
1103,
274,
1931,
272,
198,
2,
14772,
5988,
5330,
287,
6652,
1658,
657,
13,
20,
685,
76,
60,
198,
2,
14772,
7933,
1079,
324,
1658,
860,
13,
23,
685,
76,
14,
82,
61,
17,
60,
198,
2,
9527,
6184,
94,
782,
43348,
1658,
1679,
685,
9744,
418,
60,
220,
198,
2,
14772,
11555,
420,
32482,
287,
6652,
1658,
642,
685,
76,
14,
82,
60,
220,
198,
2,
9527,
1395,
9806,
1658,
362,
13,
22,
1731,
685,
76,
60,
220,
198,
2,
9527,
575,
9806,
1658,
657,
13,
48524,
685,
76,
60,
628,
198,
11748,
10688,
11,
25064,
198,
198,
2,
47,
24401,
4526,
29817,
1503,
371,
127,
223,
47,
2389,
2390,
3525,
36,
197,
198,
77,
28,
1314,
198,
87,
41888,
15,
13,
3064,
11,
15,
13,
9031,
11,
15,
13,
7029,
11,
15,
13,
22730,
11,
15,
13,
9879,
11,
15,
13,
25764,
11,
16,
13,
830,
11,
16,
13,
8628,
11,
16,
13,
6200,
11,
16,
13,
17885,
11,
16,
13,
8054,
11,
16,
13,
15426,
11,
16,
13,
12865,
11,
17,
13,
28669,
11,
17,
13,
2167,
60,
198,
88,
41888,
15,
13,
48096,
11,
15,
13,
32417,
11,
15,
13,
37680,
11,
15,
13,
48528,
11,
15,
13,
22,
1157,
11,
15,
13,
49995,
11,
15,
13,
22,
2682,
11,
15,
13,
22,
1731,
11,
15,
13,
43147,
11,
15,
13,
42548,
11,
15,
13,
21,
2670,
11,
15,
13,
46438,
11,
15,
13,
39088,
11,
15,
13,
39997,
11,
15,
13,
23734,
60,
198,
83,
41888,
15,
13,
48891,
11,
15,
13,
15,
2414,
11,
15,
13,
2931,
16,
11,
15,
13,
12952,
11,
15,
13,
21273,
11,
15,
13,
24943,
11,
15,
13,
18182,
11,
15,
13,
29119,
11,
15,
13,
25270,
11,
15,
13,
39195,
11,
15,
13,
33319,
11,
15,
13,
32321,
11,
15,
13,
46636,
11,
15,
13,
29334,
11,
15,
13,
39449,
60,
198,
198,
2,
44680,
12964,
5446,
26853,
350,
1581,
39537,
3535,
32,
198,
198,
2,
77,
28,
600,
7,
15414,
7203,
126,
123,
46141,
6557,
429,
418,
4818,
418,
3367,
1701,
4008,
198,
2,
87,
28,
21737,
198,
2,
88,
28,
21737,
198,
2,
83,
28,
21737,
198,
2,
198,
2,
361,
299,
27,
28,
15,
25,
198,
2,
197,
4798,
7203,
9527,
299,
21356,
647,
78,
390,
4818,
418,
390,
1350,
1055,
9591,
257,
269,
3529,
4943,
198,
2,
197,
17597,
13,
37023,
3419,
198,
2,
17772,
25,
198,
2,
197,
1640,
1312,
287,
2837,
7,
15,
11,
77,
2599,
198,
2,
197,
197,
4798,
7203,
27682,
260,
325,
1288,
4818,
78,
2124,
4,
67,
4943,
4064,
357,
72,
8,
198,
2,
197,
197,
87,
13,
33295,
7,
22468,
7,
15414,
3419,
4008,
198,
2,
197,
197,
4798,
7203,
27682,
260,
325,
1288,
4818,
78,
331,
4,
67,
4943,
4064,
357,
72,
8,
198,
2,
197,
197,
88,
13,
33295,
7,
22468,
7,
15414,
3419,
4008,
198,
2,
197,
197,
4798,
7203,
27682,
260,
325,
1288,
4818,
78,
256,
4,
67,
4943,
4064,
357,
72,
8,
198,
2,
197,
197,
83,
13,
33295,
7,
22468,
7,
15414,
3419,
4008,
198,
197,
197,
197,
198,
197,
198,
34453,
16,
28,
2301,
1370,
282,
7,
87,
11,
83,
11,
77,
8,
198,
34453,
17,
28,
2301,
27399,
324,
7,
88,
11,
83,
11,
77,
8,
198,
198,
4798,
1540,
16,
198,
2,
34453,
16,
58,
15,
60,
46904,
76,
198,
2,
34453,
16,
58,
16,
60,
46904,
65,
198,
2,
34453,
17,
58,
15,
60,
46904,
535,
198,
2,
34453,
17,
58,
16,
60,
46904,
15630,
198,
2,
34453,
17,
58,
17,
60,
46904,
330,
198,
198,
88,
15,
220,
220,
220,
796,
1540,
17,
58,
17,
60,
198,
70,
220,
220,
220,
220,
796,
532,
17,
13,
15,
9,
34453,
17,
58,
15,
60,
198,
1169,
8326,
796,
10688,
13,
39036,
7,
34453,
17,
58,
16,
60,
14,
34453,
16,
58,
15,
12962,
1303,
4834,
2511,
666,
274,
198,
53,
15,
220,
220,
220,
796,
1540,
16,
58,
15,
60,
14,
11018,
13,
6966,
7,
1169,
8326,
8,
628,
198,
361,
14808,
53,
15,
9,
11018,
13,
31369,
7,
1169,
8326,
4008,
1174,
17,
13,
15,
10,
17,
13,
15,
9,
70,
9,
88,
15,
8,
855,
15,
25,
198,
197,
4798,
7203,
28903,
4818,
418,
610,
305,
13881,
256,
26597,
1930,
1224,
73,
418,
4943,
198,
197,
17597,
13,
37023,
3419,
198,
17772,
25,
198,
197,
83,
9806,
16,
796,
13841,
16,
13,
15,
9,
53,
15,
9,
11018,
13,
31369,
7,
1169,
8326,
8,
1343,
10688,
13,
31166,
17034,
19510,
53,
15,
9,
11018,
13,
31369,
7,
1169,
8326,
4008,
1174,
17,
13,
15,
10,
17,
13,
15,
9,
70,
9,
88,
15,
4008,
29006,
12,
16,
13,
15,
9,
70,
8,
198,
197,
83,
9806,
17,
796,
13841,
16,
13,
15,
9,
53,
15,
9,
11018,
13,
31369,
7,
1169,
8326,
8,
532,
10688,
13,
31166,
17034,
19510,
53,
15,
9,
11018,
13,
31369,
7,
1169,
8326,
4008,
1174,
17,
13,
15,
10,
17,
13,
15,
9,
70,
9,
88,
15,
4008,
29006,
12,
16,
13,
15,
9,
70,
8,
198,
197,
361,
256,
9806,
16,
29,
15,
25,
198,
197,
197,
87,
9806,
796,
569,
15,
9,
11018,
13,
6966,
7,
1169,
8326,
27493,
83,
9806,
16,
198,
197,
417,
361,
256,
9806,
17,
29,
15,
25,
198,
197,
197,
87,
9806,
796,
569,
15,
9,
11018,
13,
6966,
7,
1169,
8326,
27493,
83,
9806,
17,
198,
197,
17772,
25,
198,
197,
197,
4798,
7203,
51,
26597,
1930,
2469,
265,
452,
418,
27678,
555,
4049,
551,
2341,
4818,
418,
4943,
198,
197,
197,
17597,
13,
37023,
3419,
198,
198,
912,
220,
220,
796,
569,
15,
9,
11018,
13,
31369,
7,
1169,
8326,
20679,
70,
198,
361,
40379,
27,
15,
25,
198,
197,
4798,
7203,
51,
26597,
1930,
2469,
265,
452,
418,
27678,
555,
4049,
551,
2341,
4818,
418,
4943,
198,
17772,
25,
198,
197,
4948,
897,
796,
331,
15,
532,
657,
13,
20,
9,
70,
9,
912,
1174,
17,
1343,
569,
15,
9,
11018,
13,
31369,
7,
1169,
8326,
27493,
912,
198,
198,
4798,
5855,
14772,
5988,
5330,
287,
6652,
1658,
4064,
13,
18,
69,
685,
76,
60,
59,
77,
14772,
7933,
1079,
324,
1658,
4064,
13,
18,
69,
685,
76,
14,
82,
61,
17,
60,
59,
77,
9527,
6184,
94,
782,
43348,
1658,
4064,
13,
18,
69,
685,
9744,
418,
60,
3467,
77,
14772,
11555,
420,
32482,
287,
6652,
1658,
4064,
13,
18,
69,
685,
76,
14,
82,
60,
3467,
77,
9527,
1395,
9806,
1658,
4064,
13,
18,
69,
685,
76,
60,
3467,
77,
9527,
575,
9806,
1658,
4064,
13,
18,
69,
685,
76,
60,
4943,
197,
4,
357,
88,
15,
11,
70,
11,
11018,
13,
13500,
6037,
7,
1169,
8326,
828,
53,
15,
11,
87,
9806,
11,
4948,
897,
8,
628,
628,
197,
198,
197,
198,
197,
198,
197,
198,
197,
198,
197,
198
] | 1.751494 | 1,171 |
# Copyright (c) 2020 Chris Richardson & Matthew Scroggs
# FEniCS Project
# SPDX-License-Identifier: MIT
import sympy
import basix
import numpy as np
| [
2,
15069,
357,
66,
8,
12131,
5180,
21679,
1222,
9308,
1446,
305,
1130,
82,
198,
2,
376,
4834,
72,
7902,
4935,
198,
2,
30628,
55,
12,
34156,
12,
33234,
7483,
25,
17168,
198,
198,
11748,
10558,
88,
198,
11748,
1615,
844,
198,
11748,
299,
32152,
355,
45941,
628,
628
] | 3.122449 | 49 |
from enum import Enum
if __name__ == '__main__':
pass
| [
6738,
33829,
1330,
2039,
388,
628,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1208,
198
] | 2.541667 | 24 |
#!/usr/bin/env python3
"""
Visualize results of Gaussian process bootstrapping.
"""
import argparse
import math
import os
import pathlib
import pandas as pd
import matplotlib.pyplot as mpl
def parse_args():
"""
Parse command line arguments.
"""
parser = argparse.ArgumentParser(description=__doc__.strip())
parser.add_argument("--dirpath", type=str, default="results", help="path to results directory")
parser.add_argument("--save", action="store_true", help="save figures under output directory")
parser.add_argument("--output", type=str, default="figures", help="output directory")
return parser.parse_args()
def read_result_tsv(path_tsv, length=300):
"""
Parse TSV file and returns basename of file and list of test accuracy.
"""
def is_test_row(line):
"""
Returns true if the given line is a row of test score.
"""
return line.startswith("Test: ")
def get_test_accuracy(line):
"""
Returns test accuracy based on the supposition that the given `line` is a test score row.
"""
return float(line.split("\t")[0].split("=")[-1].strip())
# Compute base name.
basename = path_tsv.name[:-len(path_tsv.suffix)]
# Read file and get test accuracy scores.
scores = [get_test_accuracy(line) for line in path_tsv.open() if is_test_row(line)]
# Normalize list length.
if len(scores) < length: scores += [0.0] * (length - len(scores))
else : scores = scores[:length]
return (basename, scores)
def read_result_txt(path_txt, apply_sqrt=True):
"""
Parse TXT file and returns a list of variance.
"""
def is_variance_row(line):
"""
Returns true if the given line is a row of test score.
"""
return all(char in ".0123456789e+-" for char in line.strip())
output = [float(line.strip()) for line in path_txt.open("rt") if is_variance_row(line)]
if apply_sqrt: return list(map(math.sqrt, output))
else : return output
def plot_trends(scores, keys, header, args):
"""
Plot test accuracy plotting for both with/without data augmentation.
"""
# Plot accuracies without data augmentation.
mpl.figure(figsize=(8, 5))
mpl.title(f"{header}: without data augmentation")
for key in keys:
mpl.plot(100 * scores[key], "-o", label=key, lw=1, markersize=2, alpha=0.8)
mpl.xlim(0, 150)
mpl.ylim(60, 75)
mpl.legend(loc="lower right", ncol=2)
mpl.grid(linestyle="dotted")
mpl.xlabel("Epoch")
mpl.ylabel("Accuracy on CIFAR10 [%]")
if args.save:
filepath = "trend_" + header.lower().replace(" ", "_") + ".png"
mpl.savefig(os.path.join(args.output, filepath))
# Plot accuracies with data augmentation.
mpl.figure(figsize=(8, 5))
mpl.title(f"{header}: with data augmentation")
for key in keys:
mpl.plot(100 * scores[key + "_da"], "-o", label=key, lw=1, markersize=2, alpha=0.8)
mpl.xlim(0, 300)
mpl.ylim(75, 85)
mpl.legend(loc="lower right", ncol=2)
mpl.grid(linestyle="dotted")
mpl.xlabel("Epoch")
mpl.ylabel("Accuracy on CIFAR10 [%]")
if args.save:
filepath = "trend_" + header.lower().replace(" ", "_") + "_da.png"
mpl.savefig(os.path.join(args.output, filepath))
def plot_topval(scores, keys, header, args):
"""
Plot top accuracy of test data for both with/without data augmentation.
"""
# Plot top accuracies without data augmentation.
ks = keys
xs = list(range(len(ks)))
ys = [100 * max(scores[key]) for key in ks]
mpl.figure(figsize=(8, 5))
mpl.title(f"{header}: top scores without data augmentation")
mpl.bar(xs, ys, color=[f"C{x}" for x in xs])
for x, y in enumerate(ys):
mpl.text(x - 0.25, y + 0.1, f"{y:.2f}", color=f"C{x}", fontweight="bold")
mpl.xticks(xs, ks, rotation=20)
mpl.ylim(70, 75)
mpl.grid(linestyle="dotted")
mpl.ylabel("Accuracy on CIFAR10 [%]")
if args.save:
filepath = "topscore_" + header.lower().replace(" ", "_") + ".png"
mpl.savefig(os.path.join(args.output, filepath))
# Plot top accuracies with data augmentation.
ks = [k + "_da" for k in keys]
xs = list(range(len(ks)))
ys = [100 * max(scores[key]) for key in ks]
mpl.figure(figsize=(8, 5))
mpl.title(f"{header}: top scores with data augmentation")
mpl.bar(xs, ys, color=[f"C{x}" for x in xs])
for x, y in enumerate(ys):
mpl.text(x - 0.25, y + 0.1, f"{y:.2f}", color=f"C{x}", fontweight="bold")
mpl.xticks(xs, ks, rotation=20)
mpl.ylim(80, 82.5)
mpl.grid(linestyle="dotted")
mpl.ylabel("Accuracy on CIFAR10 [%]")
if args.save:
filepath = "topscore_" + header.lower().replace(" ", "_") + "_da.png"
mpl.savefig(os.path.join(args.output, filepath))
def plot_stdhist(std_plain, std_gpb_b, args):
"""
Plot histogram of feature standard deviation.
"""
mpl.figure(figsize=(8, 5))
mpl.title("Histogram of feature standard deviation (N = 10,000)")
mpl.hist(std_plain, bins=101, histtype="step", label="plain")
mpl.hist(std_gpb_b, bins=101, histtype="step", label="gpb_b")
mpl.grid(linestyle="dotted")
mpl.xlabel("Standard deviation of features")
mpl.ylabel("Frequency")
mpl.legend()
if args.save:
filepath = "histogram_standard_deviation.png"
mpl.savefig(os.path.join(args.output, filepath))
def main(args):
"""
Main function.
"""
# Path to the result directory.
dirpath = pathlib.Path(args.dirpath)
# Read test accuracy scores.
scores = pd.DataFrame({name:score for name, score in map(read_result_tsv, sorted(dirpath.glob("*.tsv")))})
# Target base names.
keys1 = ["baseline", "gpb_tmx", "gpb_xmb", "gpb_tmb"]
keys2 = ["baseline", "gpb_txx", "gpb_xmx", "gpb_xxb", "gpb_xmb", "gpb_txb", "gpb_tmx", "gpb_tmb"]
# Plot figures and show them.
plot_trends(scores, keys1, "Main results", args)
plot_trends(scores, keys2, "Exhaustive results", args)
plot_topval(scores, keys2, "Exhaustive results", args)
# Read test accuracy scores.
std_plain = read_result_txt(dirpath / "variance_plain_da.txt", apply_sqrt=True)
std_gpb_b = read_result_txt(dirpath / "variance_gpb_b_da.txt", apply_sqrt=True)
# Plot figures and show them.
plot_stdhist(std_plain, std_gpb_b, args)
mpl.show()
if __name__ == "__main__":
main(parse_args())
# vim: expandtab tabstop=4 shiftwidth=4 fdm=marker
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
198,
37811,
198,
36259,
1096,
2482,
286,
12822,
31562,
1429,
6297,
12044,
2105,
13,
198,
37811,
198,
198,
11748,
1822,
29572,
198,
11748,
10688,
198,
11748,
28686,
198,
11748,
3108,
8019,
198,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
285,
489,
628,
198,
4299,
21136,
62,
22046,
33529,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2547,
325,
3141,
1627,
7159,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
30751,
796,
1822,
29572,
13,
28100,
1713,
46677,
7,
11213,
28,
834,
15390,
834,
13,
36311,
28955,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
15908,
6978,
1600,
2099,
28,
2536,
11,
4277,
2625,
43420,
1600,
1037,
2625,
6978,
284,
2482,
8619,
4943,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
21928,
1600,
2223,
2625,
8095,
62,
7942,
1600,
1037,
2625,
21928,
5538,
739,
5072,
8619,
4943,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
22915,
1600,
2099,
28,
2536,
11,
4277,
2625,
5647,
942,
1600,
1037,
2625,
22915,
8619,
4943,
198,
220,
220,
220,
1441,
30751,
13,
29572,
62,
22046,
3419,
628,
198,
4299,
1100,
62,
20274,
62,
912,
85,
7,
6978,
62,
912,
85,
11,
4129,
28,
6200,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2547,
325,
26136,
53,
2393,
290,
5860,
1615,
12453,
286,
2393,
290,
1351,
286,
1332,
9922,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
825,
318,
62,
9288,
62,
808,
7,
1370,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
2081,
611,
262,
1813,
1627,
318,
257,
5752,
286,
1332,
4776,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1627,
13,
9688,
2032,
342,
7203,
14402,
25,
366,
8,
628,
220,
220,
220,
825,
651,
62,
9288,
62,
4134,
23843,
7,
1370,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
1332,
9922,
1912,
319,
262,
802,
3507,
326,
262,
1813,
4600,
1370,
63,
318,
257,
1332,
4776,
5752,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
12178,
7,
1370,
13,
35312,
7203,
59,
83,
4943,
58,
15,
4083,
35312,
7203,
2625,
38381,
12,
16,
4083,
36311,
28955,
628,
220,
220,
220,
1303,
3082,
1133,
2779,
1438,
13,
198,
220,
220,
220,
1615,
12453,
796,
3108,
62,
912,
85,
13,
3672,
58,
21912,
11925,
7,
6978,
62,
912,
85,
13,
37333,
844,
15437,
628,
220,
220,
220,
1303,
4149,
2393,
290,
651,
1332,
9922,
8198,
13,
198,
220,
220,
220,
8198,
796,
685,
1136,
62,
9288,
62,
4134,
23843,
7,
1370,
8,
329,
1627,
287,
3108,
62,
912,
85,
13,
9654,
3419,
611,
318,
62,
9288,
62,
808,
7,
1370,
15437,
628,
220,
220,
220,
1303,
14435,
1096,
1351,
4129,
13,
198,
220,
220,
220,
611,
18896,
7,
1416,
2850,
8,
1279,
4129,
25,
8198,
15853,
685,
15,
13,
15,
60,
1635,
357,
13664,
532,
18896,
7,
1416,
2850,
4008,
198,
220,
220,
220,
2073,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
8198,
796,
8198,
58,
25,
13664,
60,
628,
220,
220,
220,
1441,
357,
12093,
12453,
11,
8198,
8,
628,
198,
4299,
1100,
62,
20274,
62,
14116,
7,
6978,
62,
14116,
11,
4174,
62,
31166,
17034,
28,
17821,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2547,
325,
15326,
51,
2393,
290,
5860,
257,
1351,
286,
24198,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
825,
318,
62,
25641,
590,
62,
808,
7,
1370,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
2081,
611,
262,
1813,
1627,
318,
257,
5752,
286,
1332,
4776,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
477,
7,
10641,
287,
27071,
486,
1954,
2231,
3134,
4531,
68,
10,
21215,
329,
1149,
287,
1627,
13,
36311,
28955,
628,
220,
220,
220,
5072,
796,
685,
22468,
7,
1370,
13,
36311,
28955,
329,
1627,
287,
3108,
62,
14116,
13,
9654,
7203,
17034,
4943,
611,
318,
62,
25641,
590,
62,
808,
7,
1370,
15437,
628,
220,
220,
220,
611,
4174,
62,
31166,
17034,
25,
1441,
1351,
7,
8899,
7,
11018,
13,
31166,
17034,
11,
5072,
4008,
198,
220,
220,
220,
2073,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
1441,
5072,
628,
198,
4299,
7110,
62,
83,
10920,
82,
7,
1416,
2850,
11,
8251,
11,
13639,
11,
26498,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
28114,
1332,
9922,
29353,
329,
1111,
351,
14,
19419,
1366,
16339,
14374,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1303,
28114,
4431,
13433,
1231,
1366,
16339,
14374,
13,
198,
220,
220,
220,
285,
489,
13,
26875,
7,
5647,
7857,
16193,
23,
11,
642,
4008,
198,
220,
220,
220,
285,
489,
13,
7839,
7,
69,
1,
90,
25677,
38362,
1231,
1366,
16339,
14374,
4943,
198,
220,
220,
220,
329,
1994,
287,
8251,
25,
198,
220,
220,
220,
220,
220,
220,
220,
285,
489,
13,
29487,
7,
3064,
1635,
8198,
58,
2539,
4357,
27444,
78,
1600,
6167,
28,
2539,
11,
300,
86,
28,
16,
11,
19736,
1096,
28,
17,
11,
17130,
28,
15,
13,
23,
8,
198,
220,
220,
220,
285,
489,
13,
87,
2475,
7,
15,
11,
6640,
8,
198,
220,
220,
220,
285,
489,
13,
88,
2475,
7,
1899,
11,
5441,
8,
198,
220,
220,
220,
285,
489,
13,
1455,
437,
7,
17946,
2625,
21037,
826,
1600,
299,
4033,
28,
17,
8,
198,
220,
220,
220,
285,
489,
13,
25928,
7,
2815,
10992,
2625,
67,
8426,
4943,
198,
220,
220,
220,
285,
489,
13,
87,
18242,
7203,
13807,
5374,
4943,
198,
220,
220,
220,
285,
489,
13,
2645,
9608,
7203,
17320,
23843,
319,
327,
5064,
1503,
940,
685,
39850,
4943,
198,
220,
220,
220,
611,
26498,
13,
21928,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2393,
6978,
796,
366,
83,
10920,
62,
1,
1343,
13639,
13,
21037,
22446,
33491,
7203,
33172,
45434,
4943,
1343,
27071,
11134,
1,
198,
220,
220,
220,
220,
220,
220,
220,
285,
489,
13,
21928,
5647,
7,
418,
13,
6978,
13,
22179,
7,
22046,
13,
22915,
11,
2393,
6978,
4008,
628,
220,
220,
220,
1303,
28114,
4431,
13433,
351,
1366,
16339,
14374,
13,
198,
220,
220,
220,
285,
489,
13,
26875,
7,
5647,
7857,
16193,
23,
11,
642,
4008,
198,
220,
220,
220,
285,
489,
13,
7839,
7,
69,
1,
90,
25677,
38362,
351,
1366,
16339,
14374,
4943,
198,
220,
220,
220,
329,
1994,
287,
8251,
25,
198,
220,
220,
220,
220,
220,
220,
220,
285,
489,
13,
29487,
7,
3064,
1635,
8198,
58,
2539,
1343,
45434,
6814,
33116,
27444,
78,
1600,
6167,
28,
2539,
11,
300,
86,
28,
16,
11,
19736,
1096,
28,
17,
11,
17130,
28,
15,
13,
23,
8,
198,
220,
220,
220,
285,
489,
13,
87,
2475,
7,
15,
11,
5867,
8,
198,
220,
220,
220,
285,
489,
13,
88,
2475,
7,
2425,
11,
7600,
8,
198,
220,
220,
220,
285,
489,
13,
1455,
437,
7,
17946,
2625,
21037,
826,
1600,
299,
4033,
28,
17,
8,
198,
220,
220,
220,
285,
489,
13,
25928,
7,
2815,
10992,
2625,
67,
8426,
4943,
198,
220,
220,
220,
285,
489,
13,
87,
18242,
7203,
13807,
5374,
4943,
198,
220,
220,
220,
285,
489,
13,
2645,
9608,
7203,
17320,
23843,
319,
327,
5064,
1503,
940,
685,
39850,
4943,
198,
220,
220,
220,
611,
26498,
13,
21928,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2393,
6978,
796,
366,
83,
10920,
62,
1,
1343,
13639,
13,
21037,
22446,
33491,
7203,
33172,
45434,
4943,
1343,
45434,
6814,
13,
11134,
1,
198,
220,
220,
220,
220,
220,
220,
220,
285,
489,
13,
21928,
5647,
7,
418,
13,
6978,
13,
22179,
7,
22046,
13,
22915,
11,
2393,
6978,
4008,
628,
198,
4299,
7110,
62,
4852,
2100,
7,
1416,
2850,
11,
8251,
11,
13639,
11,
26498,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
28114,
1353,
9922,
286,
1332,
1366,
329,
1111,
351,
14,
19419,
1366,
16339,
14374,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1303,
28114,
1353,
4431,
13433,
1231,
1366,
16339,
14374,
13,
198,
220,
220,
220,
479,
82,
796,
8251,
198,
220,
220,
220,
2124,
82,
796,
1351,
7,
9521,
7,
11925,
7,
591,
22305,
198,
220,
220,
220,
331,
82,
796,
685,
3064,
1635,
3509,
7,
1416,
2850,
58,
2539,
12962,
329,
1994,
287,
479,
82,
60,
198,
220,
220,
220,
285,
489,
13,
26875,
7,
5647,
7857,
16193,
23,
11,
642,
4008,
198,
220,
220,
220,
285,
489,
13,
7839,
7,
69,
1,
90,
25677,
38362,
1353,
8198,
1231,
1366,
16339,
14374,
4943,
198,
220,
220,
220,
285,
489,
13,
5657,
7,
34223,
11,
331,
82,
11,
3124,
41888,
69,
1,
34,
90,
87,
36786,
329,
2124,
287,
2124,
82,
12962,
198,
220,
220,
220,
329,
2124,
11,
331,
287,
27056,
378,
7,
893,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
285,
489,
13,
5239,
7,
87,
532,
657,
13,
1495,
11,
331,
1343,
657,
13,
16,
11,
277,
1,
90,
88,
25,
13,
17,
69,
92,
1600,
3124,
28,
69,
1,
34,
90,
87,
92,
1600,
10369,
6551,
2625,
36575,
4943,
198,
220,
220,
220,
285,
489,
13,
742,
3378,
7,
34223,
11,
479,
82,
11,
13179,
28,
1238,
8,
198,
220,
220,
220,
285,
489,
13,
88,
2475,
7,
2154,
11,
5441,
8,
198,
220,
220,
220,
285,
489,
13,
25928,
7,
2815,
10992,
2625,
67,
8426,
4943,
198,
220,
220,
220,
285,
489,
13,
2645,
9608,
7203,
17320,
23843,
319,
327,
5064,
1503,
940,
685,
39850,
4943,
198,
220,
220,
220,
611,
26498,
13,
21928,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2393,
6978,
796,
366,
4852,
26675,
62,
1,
1343,
13639,
13,
21037,
22446,
33491,
7203,
33172,
45434,
4943,
1343,
27071,
11134,
1,
198,
220,
220,
220,
220,
220,
220,
220,
285,
489,
13,
21928,
5647,
7,
418,
13,
6978,
13,
22179,
7,
22046,
13,
22915,
11,
2393,
6978,
4008,
628,
220,
220,
220,
1303,
28114,
1353,
4431,
13433,
351,
1366,
16339,
14374,
13,
198,
220,
220,
220,
479,
82,
796,
685,
74,
1343,
45434,
6814,
1,
329,
479,
287,
8251,
60,
198,
220,
220,
220,
2124,
82,
796,
1351,
7,
9521,
7,
11925,
7,
591,
22305,
198,
220,
220,
220,
331,
82,
796,
685,
3064,
1635,
3509,
7,
1416,
2850,
58,
2539,
12962,
329,
1994,
287,
479,
82,
60,
198,
220,
220,
220,
285,
489,
13,
26875,
7,
5647,
7857,
16193,
23,
11,
642,
4008,
198,
220,
220,
220,
285,
489,
13,
7839,
7,
69,
1,
90,
25677,
38362,
1353,
8198,
351,
1366,
16339,
14374,
4943,
198,
220,
220,
220,
285,
489,
13,
5657,
7,
34223,
11,
331,
82,
11,
3124,
41888,
69,
1,
34,
90,
87,
36786,
329,
2124,
287,
2124,
82,
12962,
198,
220,
220,
220,
329,
2124,
11,
331,
287,
27056,
378,
7,
893,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
285,
489,
13,
5239,
7,
87,
532,
657,
13,
1495,
11,
331,
1343,
657,
13,
16,
11,
277,
1,
90,
88,
25,
13,
17,
69,
92,
1600,
3124,
28,
69,
1,
34,
90,
87,
92,
1600,
10369,
6551,
2625,
36575,
4943,
198,
220,
220,
220,
285,
489,
13,
742,
3378,
7,
34223,
11,
479,
82,
11,
13179,
28,
1238,
8,
198,
220,
220,
220,
285,
489,
13,
88,
2475,
7,
1795,
11,
9415,
13,
20,
8,
198,
220,
220,
220,
285,
489,
13,
25928,
7,
2815,
10992,
2625,
67,
8426,
4943,
198,
220,
220,
220,
285,
489,
13,
2645,
9608,
7203,
17320,
23843,
319,
327,
5064,
1503,
940,
685,
39850,
4943,
198,
220,
220,
220,
611,
26498,
13,
21928,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2393,
6978,
796,
366,
4852,
26675,
62,
1,
1343,
13639,
13,
21037,
22446,
33491,
7203,
33172,
45434,
4943,
1343,
45434,
6814,
13,
11134,
1,
198,
220,
220,
220,
220,
220,
220,
220,
285,
489,
13,
21928,
5647,
7,
418,
13,
6978,
13,
22179,
7,
22046,
13,
22915,
11,
2393,
6978,
4008,
628,
198,
4299,
7110,
62,
19282,
10034,
7,
19282,
62,
25638,
11,
14367,
62,
31197,
65,
62,
65,
11,
26498,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
28114,
1554,
21857,
286,
3895,
3210,
28833,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
285,
489,
13,
26875,
7,
5647,
7857,
16193,
23,
11,
642,
4008,
198,
220,
220,
220,
285,
489,
13,
7839,
7203,
13749,
21857,
286,
3895,
3210,
28833,
357,
45,
796,
838,
11,
830,
8,
4943,
198,
220,
220,
220,
285,
489,
13,
10034,
7,
19282,
62,
25638,
11,
41701,
28,
8784,
11,
1554,
4906,
2625,
9662,
1600,
6167,
2625,
25638,
4943,
198,
220,
220,
220,
285,
489,
13,
10034,
7,
19282,
62,
31197,
65,
62,
65,
11,
41701,
28,
8784,
11,
1554,
4906,
2625,
9662,
1600,
6167,
2625,
31197,
65,
62,
65,
4943,
198,
220,
220,
220,
285,
489,
13,
25928,
7,
2815,
10992,
2625,
67,
8426,
4943,
198,
220,
220,
220,
285,
489,
13,
87,
18242,
7203,
23615,
28833,
286,
3033,
4943,
198,
220,
220,
220,
285,
489,
13,
2645,
9608,
7203,
37,
28707,
4943,
198,
220,
220,
220,
285,
489,
13,
1455,
437,
3419,
198,
220,
220,
220,
611,
26498,
13,
21928,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2393,
6978,
796,
366,
10034,
21857,
62,
20307,
62,
7959,
3920,
13,
11134,
1,
198,
220,
220,
220,
220,
220,
220,
220,
285,
489,
13,
21928,
5647,
7,
418,
13,
6978,
13,
22179,
7,
22046,
13,
22915,
11,
2393,
6978,
4008,
628,
198,
4299,
1388,
7,
22046,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
8774,
2163,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1303,
10644,
284,
262,
1255,
8619,
13,
198,
220,
220,
220,
26672,
6978,
796,
3108,
8019,
13,
15235,
7,
22046,
13,
15908,
6978,
8,
628,
220,
220,
220,
1303,
4149,
1332,
9922,
8198,
13,
198,
220,
220,
220,
8198,
796,
279,
67,
13,
6601,
19778,
15090,
3672,
25,
26675,
329,
1438,
11,
4776,
287,
3975,
7,
961,
62,
20274,
62,
912,
85,
11,
23243,
7,
15908,
6978,
13,
4743,
672,
7203,
24620,
912,
85,
1,
22305,
30072,
628,
220,
220,
220,
1303,
12744,
2779,
3891,
13,
198,
220,
220,
220,
8251,
16,
796,
14631,
12093,
4470,
1600,
366,
31197,
65,
62,
17209,
87,
1600,
366,
31197,
65,
62,
87,
2022,
1600,
366,
31197,
65,
62,
83,
2022,
8973,
198,
220,
220,
220,
8251,
17,
796,
14631,
12093,
4470,
1600,
366,
31197,
65,
62,
83,
5324,
1600,
366,
31197,
65,
62,
87,
36802,
1600,
366,
31197,
65,
62,
5324,
65,
1600,
366,
31197,
65,
62,
87,
2022,
1600,
366,
31197,
65,
62,
17602,
65,
1600,
366,
31197,
65,
62,
17209,
87,
1600,
366,
31197,
65,
62,
83,
2022,
8973,
628,
220,
220,
220,
1303,
28114,
5538,
290,
905,
606,
13,
198,
220,
220,
220,
7110,
62,
83,
10920,
82,
7,
1416,
2850,
11,
8251,
16,
11,
366,
13383,
2482,
1600,
220,
220,
220,
220,
220,
220,
26498,
8,
198,
220,
220,
220,
7110,
62,
83,
10920,
82,
7,
1416,
2850,
11,
8251,
17,
11,
366,
3109,
42456,
425,
2482,
1600,
26498,
8,
198,
220,
220,
220,
7110,
62,
4852,
2100,
7,
1416,
2850,
11,
8251,
17,
11,
366,
3109,
42456,
425,
2482,
1600,
26498,
8,
628,
220,
220,
220,
1303,
4149,
1332,
9922,
8198,
13,
198,
220,
220,
220,
14367,
62,
25638,
796,
1100,
62,
20274,
62,
14116,
7,
15908,
6978,
1220,
366,
25641,
590,
62,
25638,
62,
6814,
13,
14116,
1600,
4174,
62,
31166,
17034,
28,
17821,
8,
198,
220,
220,
220,
14367,
62,
31197,
65,
62,
65,
796,
1100,
62,
20274,
62,
14116,
7,
15908,
6978,
1220,
366,
25641,
590,
62,
31197,
65,
62,
65,
62,
6814,
13,
14116,
1600,
4174,
62,
31166,
17034,
28,
17821,
8,
628,
220,
220,
220,
1303,
28114,
5538,
290,
905,
606,
13,
198,
220,
220,
220,
7110,
62,
19282,
10034,
7,
19282,
62,
25638,
11,
14367,
62,
31197,
65,
62,
65,
11,
26498,
8,
628,
220,
220,
220,
285,
489,
13,
12860,
3419,
628,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
1388,
7,
29572,
62,
22046,
28955,
628,
198,
2,
43907,
25,
4292,
8658,
7400,
11338,
28,
19,
6482,
10394,
28,
19,
277,
36020,
28,
4102,
263,
198
] | 2.363472 | 2,765 |
text = input('Enter a text: ')
character = input('Enter a character that you can search in "'+text+'": ')
result = text.count(character)
print('The character "'+character+'" appears '+str(result)+' times in "'+text+'".') | [
5239,
796,
5128,
10786,
17469,
257,
2420,
25,
705,
8,
198,
22769,
796,
5128,
10786,
17469,
257,
2095,
326,
345,
460,
2989,
287,
24018,
10,
5239,
10,
6,
1298,
705,
8,
198,
198,
20274,
796,
2420,
13,
9127,
7,
22769,
8,
198,
198,
4798,
10786,
464,
2095,
24018,
10,
22769,
10,
29653,
3568,
705,
10,
2536,
7,
20274,
47762,
6,
1661,
287,
24018,
10,
5239,
10,
6,
1911,
11537
] | 3.217391 | 69 |
import torch
torch.manual_seed(0)
# from _ext import th_fft
import pytorch_fft.fft as cfft
import pytorch_fft.fft.autograd as afft
import numpy as np
import numpy.fft as nfft
if __name__ == "__main__":
if torch.cuda.is_available():
nfft3 = lambda x: nfft.fftn(x,axes=(1,2,3))
nifft3 = lambda x: nfft.ifftn(x,axes=(1,2,3))
cfs = [cfft.fft, cfft.fft2, cfft.fft3]
nfs = [nfft.fft, nfft.fft2, nfft3]
cifs = [cfft.ifft, cfft.ifft2, cfft.ifft3]
nifs = [nfft.ifft, nfft.ifft2, nifft3]
for args in zip(cfs, nfs, cifs, nifs):
test_c2c(*args)
nrfft3 = lambda x: nfft.rfftn(x,axes=(1,2,3))
nirfft3 = lambda x: nfft.irfftn(x,axes=(1,2,3))
cfs = [cfft.rfft, cfft.rfft2, cfft.rfft3]
nfs = [nfft.rfft, nfft.rfft2, nrfft3]
cifs = [cfft.irfft, cfft.irfft2, cfft.irfft3]
nifs = [nfft.irfft, nfft.irfft2, nirfft3]
for args in zip(cfs, nfs, cifs, nifs):
test_r2c(*args)
test_expand()
test_fft_gradcheck()
test_ifft_gradcheck()
test_fft2d_gradcheck()
test_ifft2d_gradcheck()
test_fft3d_gradcheck()
test_ifft3d_gradcheck()
test_rfft_gradcheck()
test_irfft_gradcheck()
test_rfft2d_gradcheck()
test_irfft2d_gradcheck()
test_rfft3d_gradcheck()
test_irfft3d_gradcheck()
else:
print("Cuda not available, cannot test.")
| [
11748,
28034,
198,
13165,
354,
13,
805,
723,
62,
28826,
7,
15,
8,
198,
2,
422,
4808,
2302,
1330,
294,
62,
487,
83,
198,
11748,
12972,
13165,
354,
62,
487,
83,
13,
487,
83,
355,
269,
487,
83,
198,
11748,
12972,
13165,
354,
62,
487,
83,
13,
487,
83,
13,
2306,
519,
6335,
355,
1527,
83,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
299,
32152,
13,
487,
83,
355,
299,
487,
83,
628,
628,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
220,
198,
220,
220,
220,
611,
28034,
13,
66,
15339,
13,
271,
62,
15182,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
299,
487,
83,
18,
796,
37456,
2124,
25,
299,
487,
83,
13,
487,
34106,
7,
87,
11,
897,
274,
16193,
16,
11,
17,
11,
18,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
299,
361,
701,
18,
796,
37456,
2124,
25,
299,
487,
83,
13,
361,
701,
77,
7,
87,
11,
897,
274,
16193,
16,
11,
17,
11,
18,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
269,
9501,
796,
685,
66,
487,
83,
13,
487,
83,
11,
269,
487,
83,
13,
487,
83,
17,
11,
269,
487,
83,
13,
487,
83,
18,
60,
198,
220,
220,
220,
220,
220,
220,
220,
299,
9501,
796,
685,
77,
487,
83,
13,
487,
83,
11,
299,
487,
83,
13,
487,
83,
17,
11,
299,
487,
83,
18,
60,
198,
220,
220,
220,
220,
220,
220,
220,
269,
361,
82,
796,
685,
66,
487,
83,
13,
361,
701,
11,
269,
487,
83,
13,
361,
701,
17,
11,
269,
487,
83,
13,
361,
701,
18,
60,
198,
220,
220,
220,
220,
220,
220,
220,
299,
361,
82,
796,
685,
77,
487,
83,
13,
361,
701,
11,
299,
487,
83,
13,
361,
701,
17,
11,
299,
361,
701,
18,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
329,
26498,
287,
19974,
7,
66,
9501,
11,
299,
9501,
11,
269,
361,
82,
11,
299,
361,
82,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
66,
17,
66,
46491,
22046,
8,
628,
220,
220,
220,
220,
220,
220,
220,
299,
81,
487,
83,
18,
796,
37456,
2124,
25,
299,
487,
83,
13,
81,
487,
34106,
7,
87,
11,
897,
274,
16193,
16,
11,
17,
11,
18,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
299,
343,
487,
83,
18,
796,
37456,
2124,
25,
299,
487,
83,
13,
343,
487,
34106,
7,
87,
11,
897,
274,
16193,
16,
11,
17,
11,
18,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
269,
9501,
796,
685,
66,
487,
83,
13,
81,
487,
83,
11,
269,
487,
83,
13,
81,
487,
83,
17,
11,
269,
487,
83,
13,
81,
487,
83,
18,
60,
198,
220,
220,
220,
220,
220,
220,
220,
299,
9501,
796,
685,
77,
487,
83,
13,
81,
487,
83,
11,
299,
487,
83,
13,
81,
487,
83,
17,
11,
299,
81,
487,
83,
18,
60,
198,
220,
220,
220,
220,
220,
220,
220,
269,
361,
82,
796,
685,
66,
487,
83,
13,
343,
487,
83,
11,
269,
487,
83,
13,
343,
487,
83,
17,
11,
269,
487,
83,
13,
343,
487,
83,
18,
60,
198,
220,
220,
220,
220,
220,
220,
220,
299,
361,
82,
796,
685,
77,
487,
83,
13,
343,
487,
83,
11,
299,
487,
83,
13,
343,
487,
83,
17,
11,
299,
343,
487,
83,
18,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
329,
26498,
287,
19974,
7,
66,
9501,
11,
299,
9501,
11,
269,
361,
82,
11,
299,
361,
82,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
81,
17,
66,
46491,
22046,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
11201,
392,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
487,
83,
62,
9744,
9122,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
361,
701,
62,
9744,
9122,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
487,
83,
17,
67,
62,
9744,
9122,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
361,
701,
17,
67,
62,
9744,
9122,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
487,
83,
18,
67,
62,
9744,
9122,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
361,
701,
18,
67,
62,
9744,
9122,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
81,
487,
83,
62,
9744,
9122,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
343,
487,
83,
62,
9744,
9122,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
81,
487,
83,
17,
67,
62,
9744,
9122,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
343,
487,
83,
17,
67,
62,
9744,
9122,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
81,
487,
83,
18,
67,
62,
9744,
9122,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
343,
487,
83,
18,
67,
62,
9744,
9122,
3419,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
34,
15339,
407,
1695,
11,
2314,
1332,
19570,
198
] | 1.657688 | 891 |
# -*- coding: utf-8 -*-
# Copyright (c) 2020, omar jaber and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe import _
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
15069,
357,
66,
8,
12131,
11,
267,
3876,
474,
27359,
290,
20420,
198,
2,
1114,
5964,
1321,
11,
3387,
766,
5964,
13,
14116,
198,
198,
6738,
11593,
37443,
834,
1330,
28000,
1098,
62,
17201,
874,
198,
11748,
5306,
27768,
198,
6738,
5306,
27768,
13,
19849,
13,
22897,
1330,
16854,
198,
6738,
5306,
27768,
1330,
4808,
198
] | 3.422535 | 71 |
import pdf2txt
#import time
import csv
from PySide import QtGui
import os
import os.path
# prove prove
my_dir = QtGui.QFileDialog.getExistingDirectory(None,'Scegli una cartella','\\srveuro\Ufficio_Tecnico\VALIDAZIONE\S10')
file_list = []
for dirpath, dirnames, filenames in os.walk(my_dir):
for filename in [f for f in filenames if f.endswith(".pdf")]:
file_list.append(os.path.join(dirpath, filename))
nome_file = raw_input('Nome del file CSV:')
#nome=[]
#nome.append('Ore')
#
#my_dir = QtGui.QFileDialog.getExistingDirectory(None,'Scegli una cartella','D:\Documenti\Lavoro\Eurocoating\Logs')
#
#
## Get folder path containing text files
#file_list = glob.glob(my_dir + '/*.csv')
#
#
#lunghezza = 5 #len(file_list)
lunghezza = len(file_list)
excel = [[0 for x in range(7)] for y in range(lunghezza)]
for f in range(0,lunghezza):
#for f in range(0,len(file_list)):
print f
reportpdf = file_list[f]
reporttxt = my_dir + '\\temp.txt'
pdf2txt.main(['', '-o', reporttxt, reportpdf])
data_raw = []
testo = open(reporttxt, 'r')
with testo as myfile:
for line in myfile:
data_raw.append(line)
#for i in range(0,len(data_raw)):
# print i, data_raw[i]
testo.close()
############## Data ##############
excel[f][0] = data_raw[2][:-1]
############## Nome #############
index = data_raw.index('[mm]\n')
excel[f][1] = data_raw[index+2][:-1]
############## Norma #############
index = data_raw.index('GAUSS\n')
if int(data_raw[index-3][:-1]) == 10:
excel[f][2] = 'EC'
if int(data_raw[index-3][:-1]) == 5:
excel[f][2] = 'NORMA'
############## Ra #############
index = data_raw.index('Ra\n')
excel[f][3] = float(data_raw[index+10][:-3])
############## Rz #############
excel[f][4] = float(data_raw[index+11][:-3])
############## Rt #############
excel[f][5] = float(data_raw[index+12][:-3])
############## Nome file #############
excel[f][6] = reportpdf
nome_csv = my_dir + "\\" + nome_file +".csv"
with open(nome_csv, "wb") as c:
writer = csv.writer(c, delimiter=";")
writer.writerows(excel)
print "Finito!" | [
11748,
37124,
17,
14116,
201,
198,
201,
198,
2,
11748,
640,
201,
198,
11748,
269,
21370,
201,
198,
6738,
9485,
24819,
1330,
33734,
8205,
72,
201,
198,
11748,
28686,
201,
198,
11748,
28686,
13,
6978,
201,
198,
201,
198,
2,
5879,
5879,
201,
198,
201,
198,
1820,
62,
15908,
796,
33734,
8205,
72,
13,
48,
8979,
44204,
13,
1136,
3109,
9665,
43055,
7,
14202,
4032,
50,
344,
70,
4528,
555,
64,
6383,
12627,
41707,
6852,
27891,
303,
1434,
59,
52,
2108,
952,
62,
51,
721,
77,
3713,
59,
23428,
2389,
22778,
2849,
36,
59,
50,
940,
11537,
201,
198,
7753,
62,
4868,
796,
17635,
201,
198,
220,
201,
198,
1640,
26672,
6978,
11,
26672,
14933,
11,
1226,
268,
1047,
287,
28686,
13,
11152,
7,
1820,
62,
15908,
2599,
201,
198,
220,
220,
220,
329,
29472,
287,
685,
69,
329,
277,
287,
1226,
268,
1047,
611,
277,
13,
437,
2032,
342,
7,
1911,
12315,
4943,
5974,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2393,
62,
4868,
13,
33295,
7,
418,
13,
6978,
13,
22179,
7,
15908,
6978,
11,
29472,
4008,
201,
198,
201,
198,
77,
462,
62,
7753,
796,
8246,
62,
15414,
10786,
45,
462,
1619,
2393,
44189,
25,
11537,
201,
198,
201,
198,
2,
77,
462,
28,
21737,
201,
198,
2,
77,
462,
13,
33295,
10786,
41543,
11537,
201,
198,
2,
201,
198,
2,
1820,
62,
15908,
796,
33734,
8205,
72,
13,
48,
8979,
44204,
13,
1136,
3109,
9665,
43055,
7,
14202,
4032,
50,
344,
70,
4528,
555,
64,
6383,
12627,
41707,
35,
7479,
24941,
72,
59,
43,
5570,
78,
59,
14398,
1073,
803,
59,
11187,
82,
11537,
201,
198,
2,
201,
198,
2,
201,
198,
2235,
3497,
9483,
3108,
7268,
2420,
3696,
201,
198,
2,
7753,
62,
4868,
796,
15095,
13,
4743,
672,
7,
1820,
62,
15908,
1343,
705,
15211,
13,
40664,
11537,
201,
198,
2,
201,
198,
2,
201,
198,
201,
198,
2,
75,
2150,
258,
34443,
796,
642,
1303,
11925,
7,
7753,
62,
4868,
8,
201,
198,
75,
2150,
258,
34443,
796,
18896,
7,
7753,
62,
4868,
8,
201,
198,
220,
220,
220,
220,
201,
198,
1069,
5276,
796,
16410,
15,
329,
2124,
287,
2837,
7,
22,
15437,
329,
331,
287,
2837,
7,
75,
2150,
258,
34443,
15437,
220,
201,
198,
201,
198,
1640,
277,
287,
2837,
7,
15,
11,
75,
2150,
258,
34443,
2599,
201,
198,
2,
1640,
277,
287,
2837,
7,
15,
11,
11925,
7,
7753,
62,
4868,
8,
2599,
201,
198,
220,
220,
220,
3601,
277,
201,
198,
220,
220,
220,
989,
12315,
796,
2393,
62,
4868,
58,
69,
60,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
989,
14116,
796,
616,
62,
15908,
1343,
705,
6852,
29510,
13,
14116,
6,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
37124,
17,
14116,
13,
12417,
7,
17816,
3256,
705,
12,
78,
3256,
989,
14116,
11,
989,
12315,
12962,
220,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1366,
62,
1831,
796,
17635,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1332,
78,
796,
1280,
7,
13116,
14116,
11,
705,
81,
11537,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
351,
1332,
78,
355,
616,
7753,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1627,
287,
616,
7753,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
1831,
13,
33295,
7,
1370,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
1640,
1312,
287,
2837,
7,
15,
11,
11925,
7,
7890,
62,
1831,
8,
2599,
201,
198,
220,
220,
220,
1303,
220,
220,
220,
3601,
1312,
11,
1366,
62,
1831,
58,
72,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1332,
78,
13,
19836,
3419,
201,
198,
220,
220,
220,
220,
201,
198,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
7804,
4242,
2,
6060,
1303,
7804,
4242,
2,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
27336,
58,
69,
7131,
15,
60,
796,
1366,
62,
1831,
58,
17,
7131,
21912,
16,
60,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
7804,
4242,
2,
399,
462,
1303,
7804,
4242,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
6376,
796,
1366,
62,
1831,
13,
9630,
10786,
58,
3020,
60,
59,
77,
11537,
201,
198,
220,
220,
220,
220,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
27336,
58,
69,
7131,
16,
60,
796,
1366,
62,
1831,
58,
9630,
10,
17,
7131,
21912,
16,
60,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
7804,
4242,
2,
11220,
64,
1303,
7804,
4242,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
6376,
796,
1366,
62,
1831,
13,
9630,
10786,
9273,
32835,
59,
77,
11537,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
611,
493,
7,
7890,
62,
1831,
58,
9630,
12,
18,
7131,
21912,
16,
12962,
6624,
838,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
27336,
58,
69,
7131,
17,
60,
796,
705,
2943,
6,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
201,
198,
220,
220,
220,
611,
493,
7,
7890,
62,
1831,
58,
9630,
12,
18,
7131,
21912,
16,
12962,
6624,
642,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
27336,
58,
69,
7131,
17,
60,
796,
705,
35510,
5673,
6,
220,
220,
220,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
7804,
4242,
2,
7567,
1303,
7804,
4242,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
6376,
796,
1366,
62,
1831,
13,
9630,
10786,
21762,
59,
77,
11537,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
27336,
58,
69,
7131,
18,
60,
796,
12178,
7,
7890,
62,
1831,
58,
9630,
10,
940,
7131,
21912,
18,
12962,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
7804,
4242,
2,
371,
89,
1303,
7804,
4242,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
27336,
58,
69,
7131,
19,
60,
796,
12178,
7,
7890,
62,
1831,
58,
9630,
10,
1157,
7131,
21912,
18,
12962,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
7804,
4242,
2,
371,
83,
1303,
7804,
4242,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
27336,
58,
69,
7131,
20,
60,
796,
12178,
7,
7890,
62,
1831,
58,
9630,
10,
1065,
7131,
21912,
18,
12962,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
1303,
7804,
4242,
2,
399,
462,
2393,
1303,
7804,
4242,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
27336,
58,
69,
7131,
21,
60,
796,
989,
12315,
201,
198,
220,
220,
220,
220,
201,
198,
220,
220,
220,
220,
201,
198,
77,
462,
62,
40664,
796,
616,
62,
15908,
1343,
366,
6852,
1,
1343,
220,
299,
462,
62,
7753,
1343,
1911,
40664,
1,
201,
198,
220,
220,
220,
220,
201,
198,
4480,
1280,
7,
77,
462,
62,
40664,
11,
366,
39346,
4943,
355,
269,
25,
201,
198,
220,
220,
220,
6260,
796,
269,
21370,
13,
16002,
7,
66,
11,
46728,
2676,
2625,
26,
4943,
201,
198,
220,
220,
220,
6260,
13,
16002,
1666,
7,
1069,
5276,
8,
201,
198,
220,
220,
220,
220,
201,
198,
4798,
366,
18467,
10094,
2474
] | 1.94177 | 1,288 |
from typing import Any, Dict, List, Optional, Union
from .muxed_account import MuxedAccount
from .sep.ed25519_public_key_signer import Ed25519PublicKeySigner
from .type_checked import type_checked
__all__ = ["Account"]
@type_checked
class Account:
"""The :class:`Account` object represents a single
account on the Stellar network and its sequence number.
Account tracks the sequence number as it is used
by :class:`TransactionBuilder <stellar_sdk.transaction_builder.TransactionBuilder>`.
Normally, you can get an :class:`Account` instance through :func:`stellar_sdk.server.Server.load_account`
or :func:`stellar_sdk.server_async.ServerAsync.load_account`.
An example::
from stellar_sdk import Keypair, Server
server = Server(horizon_url="https://horizon-testnet.stellar.org")
source = Keypair.from_secret("SBFZCHU5645DOKRWYBXVOXY2ELGJKFRX6VGGPRYUWHQ7PMXXJNDZFMKD")
# `account` can also be a muxed account
source_account = server.load_account(account=source.public_key)
See `Accounts <https://developers.stellar.org/docs/glossary/accounts/>`__ for
more information.
:param account: Account Id of the
account (ex. ``"GB3KJPLFUYN5VL6R3GU3EGCGVCKFDSD7BEDX42HWG5BWFKB3KQGJJRMA"``)
or muxed account (ex. ``"MBZSQ3YZMZEWL5ZRCEQ5CCSOTXCFCMKDGFFP4IEQN2KN6LCHCLI46AAAAAAAAAAE2L2QE"``)
:param sequence: Current sequence number of the account.
:param raw_data: Raw horizon response data.
"""
@property
def universal_account_id(self) -> str:
"""Get the universal account id,
if `account` is ed25519 public key, it will return ed25519
public key (ex. ``"GDGQVOKHW4VEJRU2TETD6DBRKEO5ERCNF353LW5WBFW3JJWQ2BRQ6KDD"``),
otherwise it will return muxed
account (ex. ``"MAAAAAAAAAAAJURAAB2X52XFQP6FBXLGT6LWOOWMEXWHEWBDVRZ7V5WH34Y22MPFBHUHY"``)
.. note::
SEP-0023 support is not enabled by default, if you want to enable it,
please set `ENABLE_SEP_0023` to ``true`` in the environment variable,
on Linux and MacOS, generally you can use ``export ENABLE_SEP_0023=true`` to set it.
:raises: :exc:`FeatureNotEnabledError <stellar_sdk.exceptions.FeatureNotEnabledError>`:
if `account_id` is a muxed account and `ENABLE_SEP_0023` is not set to ``true``.
"""
return self.account.universal_account_id
def increment_sequence_number(self) -> None:
"""Increments sequence number in this object by one."""
self.sequence += 1
@property
def load_ed25519_public_key_signers(self) -> List[Ed25519PublicKeySigner]:
"""Load ed25519 public key signers."""
if self.raw_data is None:
raise ValueError('"raw_data" is None, unable to get signers from it.')
signers = self.raw_data["signers"]
ed25519_public_key_signers = []
for signer in signers:
if signer["type"] == "ed25519_public_key":
ed25519_public_key_signers.append(
Ed25519PublicKeySigner(signer["key"], signer["weight"])
)
return ed25519_public_key_signers
@type_checked
| [
6738,
19720,
1330,
4377,
11,
360,
713,
11,
7343,
11,
32233,
11,
4479,
198,
198,
6738,
764,
76,
2821,
276,
62,
23317,
1330,
337,
2821,
276,
30116,
198,
6738,
764,
325,
79,
13,
276,
13381,
1129,
62,
11377,
62,
2539,
62,
12683,
263,
1330,
1717,
13381,
1129,
15202,
9218,
11712,
263,
198,
6738,
764,
4906,
62,
26752,
1330,
2099,
62,
26752,
198,
198,
834,
439,
834,
796,
14631,
30116,
8973,
628,
198,
31,
4906,
62,
26752,
198,
4871,
10781,
25,
198,
220,
220,
220,
37227,
464,
1058,
4871,
25,
63,
30116,
63,
2134,
6870,
257,
2060,
198,
220,
220,
220,
1848,
319,
262,
39336,
3127,
290,
663,
8379,
1271,
13,
628,
220,
220,
220,
10781,
8339,
262,
8379,
1271,
355,
340,
318,
973,
198,
220,
220,
220,
416,
1058,
4871,
25,
63,
48720,
32875,
1279,
28732,
62,
21282,
74,
13,
7645,
2673,
62,
38272,
13,
48720,
32875,
29,
44646,
628,
220,
220,
220,
29282,
11,
345,
460,
651,
281,
1058,
4871,
25,
63,
30116,
63,
4554,
832,
1058,
20786,
25,
63,
28732,
62,
21282,
74,
13,
15388,
13,
10697,
13,
2220,
62,
23317,
63,
198,
220,
220,
220,
393,
1058,
20786,
25,
63,
28732,
62,
21282,
74,
13,
15388,
62,
292,
13361,
13,
10697,
42367,
13,
2220,
62,
23317,
44646,
628,
220,
220,
220,
1052,
1672,
3712,
628,
220,
220,
220,
220,
220,
220,
220,
422,
25041,
62,
21282,
74,
1330,
7383,
24874,
11,
9652,
628,
220,
220,
220,
220,
220,
220,
220,
4382,
796,
9652,
7,
17899,
8637,
62,
6371,
2625,
5450,
1378,
17899,
8637,
12,
9288,
3262,
13,
28732,
13,
2398,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2723,
796,
7383,
24874,
13,
6738,
62,
21078,
7203,
16811,
37,
57,
3398,
52,
3980,
2231,
35,
11380,
46747,
56,
33,
55,
29516,
34278,
17,
3698,
38,
41,
42,
10913,
55,
21,
53,
11190,
4805,
56,
52,
12418,
48,
22,
5868,
8051,
41,
8575,
57,
23264,
42,
35,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4600,
23317,
63,
460,
635,
307,
257,
285,
2821,
276,
1848,
198,
220,
220,
220,
220,
220,
220,
220,
2723,
62,
23317,
796,
4382,
13,
2220,
62,
23317,
7,
23317,
28,
10459,
13,
11377,
62,
2539,
8,
628,
220,
220,
220,
4091,
4600,
30116,
82,
1279,
5450,
1378,
16244,
364,
13,
28732,
13,
2398,
14,
31628,
14,
4743,
793,
560,
14,
23317,
82,
15913,
63,
834,
329,
198,
220,
220,
220,
517,
1321,
13,
628,
220,
220,
220,
1058,
17143,
1848,
25,
10781,
5121,
286,
262,
198,
220,
220,
220,
220,
220,
220,
220,
1848,
357,
1069,
13,
7559,
1,
4579,
18,
42,
41,
6489,
38989,
40760,
20,
47468,
21,
49,
18,
38022,
18,
7156,
39816,
15922,
42,
37,
5258,
35,
22,
33,
1961,
55,
3682,
39,
54,
38,
20,
33,
48397,
22764,
18,
42,
48,
38,
32178,
49,
5673,
1,
15506,
8,
198,
220,
220,
220,
220,
220,
220,
220,
393,
285,
2821,
276,
1848,
357,
1069,
13,
7559,
1,
10744,
57,
50,
48,
18,
56,
57,
44,
57,
6217,
43,
20,
57,
49,
5222,
48,
20,
4093,
50,
2394,
55,
34,
4851,
33907,
35,
38,
5777,
47,
19,
10008,
48,
45,
17,
29132,
21,
43,
3398,
5097,
40,
3510,
43488,
3838,
36,
17,
43,
17,
48,
36,
1,
15506,
8,
198,
220,
220,
220,
1058,
17143,
8379,
25,
9236,
8379,
1271,
286,
262,
1848,
13,
198,
220,
220,
220,
1058,
17143,
8246,
62,
7890,
25,
16089,
17810,
2882,
1366,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
10112,
62,
23317,
62,
312,
7,
944,
8,
4613,
965,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
3855,
262,
10112,
1848,
4686,
11,
198,
220,
220,
220,
220,
220,
220,
220,
611,
4600,
23317,
63,
318,
1225,
13381,
1129,
1171,
1994,
11,
340,
481,
1441,
1225,
13381,
1129,
198,
220,
220,
220,
220,
220,
220,
220,
1171,
1994,
357,
1069,
13,
7559,
1,
45113,
38,
48,
53,
11380,
39,
54,
19,
6089,
44817,
52,
17,
51,
2767,
35,
21,
11012,
49,
42,
4720,
20,
47691,
21870,
33319,
43,
54,
20,
45607,
24160,
18,
32178,
54,
48,
17,
11473,
48,
21,
42,
16458,
1,
15506,
828,
198,
220,
220,
220,
220,
220,
220,
220,
4306,
340,
481,
1441,
285,
2821,
276,
198,
220,
220,
220,
220,
220,
220,
220,
1848,
357,
1069,
13,
7559,
1,
44,
43488,
29697,
41,
4261,
3838,
33,
17,
55,
4309,
55,
37,
48,
47,
21,
26001,
32457,
19555,
21,
43,
54,
46,
3913,
44,
6369,
12418,
6217,
14529,
13024,
57,
22,
53,
20,
12418,
2682,
56,
1828,
7378,
26001,
39,
52,
42598,
1,
15506,
8,
628,
220,
220,
220,
220,
220,
220,
220,
11485,
3465,
3712,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7946,
47,
12,
405,
1954,
1104,
318,
407,
9343,
416,
4277,
11,
611,
345,
765,
284,
7139,
340,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3387,
900,
4600,
1677,
17534,
62,
5188,
47,
62,
405,
1954,
63,
284,
7559,
7942,
15506,
287,
262,
2858,
7885,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
7020,
290,
4100,
2640,
11,
4143,
345,
460,
779,
7559,
39344,
412,
4535,
19146,
62,
5188,
47,
62,
405,
1954,
28,
7942,
15506,
284,
900,
340,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
430,
2696,
25,
1058,
41194,
25,
63,
38816,
3673,
20491,
12331,
1279,
28732,
62,
21282,
74,
13,
1069,
11755,
13,
38816,
3673,
20491,
12331,
29,
63,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
4600,
23317,
62,
312,
63,
318,
257,
285,
2821,
276,
1848,
290,
4600,
1677,
17534,
62,
5188,
47,
62,
405,
1954,
63,
318,
407,
900,
284,
7559,
7942,
15506,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
23317,
13,
40082,
62,
23317,
62,
312,
628,
220,
220,
220,
825,
18703,
62,
43167,
62,
17618,
7,
944,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
15562,
902,
8379,
1271,
287,
428,
2134,
416,
530,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
43167,
15853,
352,
628,
220,
220,
220,
2488,
26745,
628,
220,
220,
220,
825,
3440,
62,
276,
13381,
1129,
62,
11377,
62,
2539,
62,
12683,
364,
7,
944,
8,
4613,
7343,
58,
7407,
13381,
1129,
15202,
9218,
11712,
263,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
8912,
1225,
13381,
1129,
1171,
1994,
1051,
364,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
1831,
62,
7890,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
10786,
1,
1831,
62,
7890,
1,
318,
6045,
11,
5906,
284,
651,
1051,
364,
422,
340,
2637,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1051,
364,
796,
2116,
13,
1831,
62,
7890,
14692,
12683,
364,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
1225,
13381,
1129,
62,
11377,
62,
2539,
62,
12683,
364,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1051,
263,
287,
1051,
364,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1051,
263,
14692,
4906,
8973,
6624,
366,
276,
13381,
1129,
62,
11377,
62,
2539,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1225,
13381,
1129,
62,
11377,
62,
2539,
62,
12683,
364,
13,
33295,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1717,
13381,
1129,
15202,
9218,
11712,
263,
7,
12683,
263,
14692,
2539,
33116,
1051,
263,
14692,
6551,
8973,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1225,
13381,
1129,
62,
11377,
62,
2539,
62,
12683,
364,
628,
198,
31,
4906,
62,
26752,
198
] | 2.385075 | 1,340 |
# -*- coding: utf-8 -*-
from .apiserver import APIServer
from .apiresponse import APIResponse
__all__ = ['APIServer', 'APIResponse']
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
6738,
764,
499,
5847,
332,
1330,
3486,
1797,
18497,
198,
6738,
764,
499,
2387,
79,
2591,
1330,
3486,
4663,
9774,
2591,
198,
198,
834,
439,
834,
796,
37250,
2969,
1797,
18497,
3256,
705,
2969,
4663,
9774,
2591,
20520,
198
] | 2.5 | 54 |
#!/usr/bin/env python3
#
# fix_gpiov2_gds.py ---
#
# Special-purpose script that does the work of what ought to be a simple
# binary diff and patch. Except that no such thing exists as a standard
# offering on most Linux systems, so instead of adding another OS
# package requirement, I'm just writing a binary search-and-replace in
# python.
#
# The purpose of the patch is to correct the coordinates of the deep nwell
# and nwell layers in the cell amux_switch_1v2b, as the SkyWater cell
# contains DRC errors.
#
# Specifically, DNWELL coordinate (34.450, 0.035) is moved to (34.905, 0.035)
# and NWELL coordinate (35.055, -0.365) is moved to (35.390, -0.365)
import sys
if len(sys.argv) != 2:
print('Usage: fix_gpiov2_gds.py <filename>')
sys.exit(1)
else:
file_name = sys.argv[1]
orig_data_1 = b'\x00\x00\x86\x92\x00\x00\x00\x23\x00\x00\x86\x92'
replace_data_1 = b'\x00\x00\x88\x59\x00\x00\x00\x23\x00\x00\x88\x59'
orig_data_2 = b'\x00\x00\x88\xef\xff\xff\xff\x8d\x00\x00\x47\xef\xff\xff\xff\x8d'
replace_data_2 = b'\x00\x00\x8a\x3e\x00\x00\x00\x91\x00\x00\x47\xef\x00\x00\x00\x91'
orig_data_3 = b'\x00\x00\x88\xef\xff\xff\xfe\x93\x00\x00\x88\xef\xff\xff\xff\x8d'
replace_data_3 = b'\x00\x00\x8a\x3e\xff\xff\xfe\x93\x00\x00\x8a\x3e\x00\x00\x00\x91'
# This is not efficient, but only needs to be done once.
with open(file_name, 'rb') as ifile:
data = ifile.read()
data = data.replace(orig_data_1, replace_data_1)
data = data.replace(orig_data_2, replace_data_2)
data = data.replace(orig_data_3, replace_data_3)
# Write back into the same file
with open(file_name, 'wb') as ofile:
ofile.write(data)
print("Done!")
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
2,
198,
2,
4259,
62,
70,
14415,
709,
17,
62,
70,
9310,
13,
9078,
11420,
198,
2,
198,
2,
6093,
12,
29983,
4226,
326,
857,
262,
670,
286,
644,
10783,
284,
307,
257,
2829,
198,
2,
13934,
814,
290,
8529,
13,
220,
18181,
326,
645,
884,
1517,
7160,
355,
257,
3210,
198,
2,
6011,
319,
749,
7020,
3341,
11,
523,
2427,
286,
4375,
1194,
7294,
198,
2,
5301,
9079,
11,
314,
1101,
655,
3597,
257,
13934,
2989,
12,
392,
12,
33491,
287,
198,
2,
21015,
13,
198,
2,
198,
2,
383,
4007,
286,
262,
8529,
318,
284,
3376,
262,
22715,
286,
262,
2769,
299,
4053,
198,
2,
290,
299,
4053,
11685,
287,
262,
2685,
716,
2821,
62,
31943,
62,
16,
85,
17,
65,
11,
355,
262,
5274,
19184,
2685,
198,
2,
4909,
360,
7397,
8563,
13,
198,
2,
198,
2,
22426,
11,
45080,
8845,
3069,
20435,
357,
2682,
13,
17885,
11,
657,
13,
44215,
8,
318,
3888,
284,
357,
2682,
13,
44928,
11,
657,
13,
44215,
8,
198,
2,
290,
399,
8845,
3069,
20435,
357,
2327,
13,
47838,
11,
532,
15,
13,
24760,
8,
318,
3888,
284,
357,
2327,
13,
25964,
11,
532,
15,
13,
24760,
8,
198,
198,
11748,
25064,
198,
198,
361,
18896,
7,
17597,
13,
853,
85,
8,
14512,
362,
25,
198,
220,
220,
220,
3601,
10786,
28350,
25,
220,
4259,
62,
70,
14415,
709,
17,
62,
70,
9310,
13,
9078,
1279,
34345,
29,
11537,
198,
220,
220,
220,
25064,
13,
37023,
7,
16,
8,
198,
17772,
25,
198,
220,
220,
220,
2393,
62,
3672,
796,
25064,
13,
853,
85,
58,
16,
60,
198,
198,
11612,
62,
7890,
62,
16,
220,
220,
220,
796,
275,
6,
59,
87,
405,
59,
87,
405,
59,
87,
4521,
59,
87,
5892,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
1954,
59,
87,
405,
59,
87,
405,
59,
87,
4521,
59,
87,
5892,
6,
198,
33491,
62,
7890,
62,
16,
796,
275,
6,
59,
87,
405,
59,
87,
405,
59,
87,
3459,
59,
87,
3270,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
1954,
59,
87,
405,
59,
87,
405,
59,
87,
3459,
59,
87,
3270,
6,
198,
198,
11612,
62,
7890,
62,
17,
220,
220,
220,
796,
275,
6,
59,
87,
405,
59,
87,
405,
59,
87,
3459,
59,
87,
891,
59,
47596,
59,
47596,
59,
47596,
59,
87,
23,
67,
59,
87,
405,
59,
87,
405,
59,
87,
2857,
59,
87,
891,
59,
47596,
59,
47596,
59,
47596,
59,
87,
23,
67,
6,
198,
33491,
62,
7890,
62,
17,
796,
275,
6,
59,
87,
405,
59,
87,
405,
59,
87,
23,
64,
59,
87,
18,
68,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
6420,
59,
87,
405,
59,
87,
405,
59,
87,
2857,
59,
87,
891,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
6420,
6,
198,
198,
11612,
62,
7890,
62,
18,
220,
220,
220,
796,
275,
6,
59,
87,
405,
59,
87,
405,
59,
87,
3459,
59,
87,
891,
59,
47596,
59,
47596,
59,
87,
5036,
59,
87,
6052,
59,
87,
405,
59,
87,
405,
59,
87,
3459,
59,
87,
891,
59,
47596,
59,
47596,
59,
47596,
59,
87,
23,
67,
6,
198,
33491,
62,
7890,
62,
18,
796,
275,
6,
59,
87,
405,
59,
87,
405,
59,
87,
23,
64,
59,
87,
18,
68,
59,
47596,
59,
47596,
59,
87,
5036,
59,
87,
6052,
59,
87,
405,
59,
87,
405,
59,
87,
23,
64,
59,
87,
18,
68,
59,
87,
405,
59,
87,
405,
59,
87,
405,
59,
87,
6420,
6,
198,
198,
2,
770,
318,
407,
6942,
11,
475,
691,
2476,
284,
307,
1760,
1752,
13,
198,
198,
4480,
1280,
7,
7753,
62,
3672,
11,
705,
26145,
11537,
355,
611,
576,
25,
198,
220,
220,
220,
1366,
796,
611,
576,
13,
961,
3419,
198,
220,
220,
220,
1366,
796,
1366,
13,
33491,
7,
11612,
62,
7890,
62,
16,
11,
6330,
62,
7890,
62,
16,
8,
198,
220,
220,
220,
1366,
796,
1366,
13,
33491,
7,
11612,
62,
7890,
62,
17,
11,
6330,
62,
7890,
62,
17,
8,
198,
220,
220,
220,
1366,
796,
1366,
13,
33491,
7,
11612,
62,
7890,
62,
18,
11,
6330,
62,
7890,
62,
18,
8,
198,
198,
2,
19430,
736,
656,
262,
976,
2393,
198,
4480,
1280,
7,
7753,
62,
3672,
11,
705,
39346,
11537,
355,
286,
576,
25,
198,
220,
220,
220,
286,
576,
13,
13564,
7,
7890,
8,
198,
198,
4798,
7203,
45677,
2474,
8,
198
] | 2.193421 | 760 |
import math
import os
from copy import copy
from functools import lru_cache
from functools import partial
from os.path import join
import igl
import numpy as np
from numpy.linalg import norm
#
@lru_cache(maxsize=None)
@lru_cache(maxsize=None)
@lru_cache(maxsize=None)
@lru_cache()
def distort_unfold_to_imgcoord(distort_unfold, drop_NE=True):
"""
Parameters
----------
distort_unfold :
distorted unfold
drop_NE : bool
drop north and east as in [1]
References
----------
[1] orientation-aware semantic segmentation on icosahedron spheres, ICCV2019
"""
vertex_num = len(distort_unfold)
level = round(math.log((vertex_num - 2) // 10, 4))
width = 2 ** level + 1
height = 2 * width - 1
unfold_pts_set = set() # (vertex_id, x, y)
# remove duplicate
for key, arr in distort_unfold.items():
for val in arr:
unfold_pts_set.add((key, val[0], val[1]))
# sort
unfold_pts_set = sorted(unfold_pts_set, key=lambda x: (x[1], x[2]))
# to image coorinate
img_coord = {}
for (vertex_id, x, y) in unfold_pts_set:
rect_idxs = get_rect_idxs(x, y)
for key in rect_idxs:
if key not in img_coord:
img_coord[key] = []
img_coord[key].append(vertex_id)
# to numpy
for key in img_coord:
img_coord[key] = np.array(img_coord[key]).reshape(width, height).T
if drop_NE:
# orientation-aware semantic segmentation on icosahedron spheres form
for key in img_coord:
img_coord[key] = img_coord[key][1:, :-1]
return img_coord
@lru_cache()
| [
11748,
10688,
198,
11748,
28686,
198,
6738,
4866,
1330,
4866,
198,
6738,
1257,
310,
10141,
1330,
300,
622,
62,
23870,
198,
6738,
1257,
310,
10141,
1330,
13027,
198,
6738,
28686,
13,
6978,
1330,
4654,
198,
198,
11748,
220,
38686,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
299,
32152,
13,
75,
1292,
70,
1330,
2593,
628,
198,
2,
198,
31,
75,
622,
62,
23870,
7,
9806,
7857,
28,
14202,
8,
628,
198,
31,
75,
622,
62,
23870,
7,
9806,
7857,
28,
14202,
8,
628,
198,
31,
75,
622,
62,
23870,
7,
9806,
7857,
28,
14202,
8,
628,
198,
31,
75,
622,
62,
23870,
3419,
628,
628,
628,
628,
628,
198,
4299,
30867,
62,
403,
11379,
62,
1462,
62,
9600,
37652,
7,
17080,
419,
62,
403,
11379,
11,
4268,
62,
12161,
28,
17821,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
40117,
198,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
30867,
62,
403,
11379,
1058,
198,
220,
220,
220,
220,
220,
220,
220,
26987,
16631,
198,
220,
220,
220,
4268,
62,
12161,
1058,
20512,
198,
220,
220,
220,
220,
220,
220,
220,
4268,
5093,
290,
7627,
355,
287,
685,
16,
60,
628,
220,
220,
220,
31458,
198,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
685,
16,
60,
12852,
12,
9685,
37865,
10618,
341,
319,
14158,
8546,
704,
1313,
34126,
11,
32300,
53,
23344,
628,
220,
220,
220,
37227,
198,
220,
220,
220,
37423,
62,
22510,
796,
18896,
7,
17080,
419,
62,
403,
11379,
8,
198,
220,
220,
220,
1241,
796,
2835,
7,
11018,
13,
6404,
19510,
332,
16886,
62,
22510,
532,
362,
8,
3373,
838,
11,
604,
4008,
628,
220,
220,
220,
9647,
796,
362,
12429,
1241,
1343,
352,
198,
220,
220,
220,
6001,
796,
362,
1635,
9647,
532,
352,
628,
220,
220,
220,
16631,
62,
457,
82,
62,
2617,
796,
900,
3419,
220,
1303,
357,
332,
16886,
62,
312,
11,
2124,
11,
331,
8,
628,
220,
220,
220,
1303,
4781,
23418,
198,
220,
220,
220,
329,
1994,
11,
5240,
287,
30867,
62,
403,
11379,
13,
23814,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1188,
287,
5240,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16631,
62,
457,
82,
62,
2617,
13,
2860,
19510,
2539,
11,
1188,
58,
15,
4357,
1188,
58,
16,
60,
4008,
628,
220,
220,
220,
1303,
3297,
198,
220,
220,
220,
16631,
62,
457,
82,
62,
2617,
796,
23243,
7,
403,
11379,
62,
457,
82,
62,
2617,
11,
1994,
28,
50033,
2124,
25,
357,
87,
58,
16,
4357,
2124,
58,
17,
60,
4008,
628,
220,
220,
220,
1303,
284,
2939,
763,
273,
4559,
198,
220,
220,
220,
33705,
62,
37652,
796,
23884,
198,
220,
220,
220,
329,
357,
332,
16886,
62,
312,
11,
2124,
11,
331,
8,
287,
16631,
62,
457,
82,
62,
2617,
25,
198,
220,
220,
220,
220,
220,
220,
220,
13621,
62,
312,
34223,
796,
651,
62,
2554,
62,
312,
34223,
7,
87,
11,
331,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
287,
13621,
62,
312,
34223,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1994,
407,
287,
33705,
62,
37652,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33705,
62,
37652,
58,
2539,
60,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33705,
62,
37652,
58,
2539,
4083,
33295,
7,
332,
16886,
62,
312,
8,
628,
220,
220,
220,
1303,
284,
299,
32152,
198,
220,
220,
220,
329,
1994,
287,
33705,
62,
37652,
25,
198,
220,
220,
220,
220,
220,
220,
220,
33705,
62,
37652,
58,
2539,
60,
796,
45941,
13,
18747,
7,
9600,
62,
37652,
58,
2539,
35944,
3447,
1758,
7,
10394,
11,
6001,
737,
51,
628,
220,
220,
220,
611,
4268,
62,
12161,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
12852,
12,
9685,
37865,
10618,
341,
319,
14158,
8546,
704,
1313,
34126,
1296,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
287,
33705,
62,
37652,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33705,
62,
37652,
58,
2539,
60,
796,
33705,
62,
37652,
58,
2539,
7131,
16,
45299,
1058,
12,
16,
60,
628,
220,
220,
220,
1441,
33705,
62,
37652,
628,
198,
31,
75,
622,
62,
23870,
3419,
628,
198
] | 2.282967 | 728 |
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from configuration import DATABASE_FILE
import os
import sys
# custom module imports
from src.models import Base
if not os.path.exists(os.path.dirname(DATABASE_FILE)):
print(f"[initialize_database] Creating the database dir : {os.path.dirname(DATABASE_FILE)}")
os.makedirs(os.path.dirname(DATABASE_FILE))
engine = create_engine('sqlite:///{}'.format(DATABASE_FILE), echo=True)
Session = sessionmaker(bind=engine)
session = Session()
Base.metadata.create_all(engine)
| [
6738,
44161,
282,
26599,
1330,
2251,
62,
18392,
198,
6738,
44161,
282,
26599,
13,
579,
1330,
6246,
10297,
198,
6738,
8398,
1330,
360,
1404,
6242,
11159,
62,
25664,
198,
11748,
28686,
198,
11748,
25064,
198,
2,
2183,
8265,
17944,
198,
6738,
12351,
13,
27530,
1330,
7308,
198,
198,
361,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
418,
13,
6978,
13,
15908,
3672,
7,
35,
1404,
6242,
11159,
62,
25664,
8,
2599,
198,
220,
220,
220,
3601,
7,
69,
17912,
36733,
1096,
62,
48806,
60,
30481,
262,
6831,
26672,
1058,
1391,
418,
13,
6978,
13,
15908,
3672,
7,
35,
1404,
6242,
11159,
62,
25664,
38165,
4943,
198,
220,
220,
220,
28686,
13,
76,
4335,
17062,
7,
418,
13,
6978,
13,
15908,
3672,
7,
35,
1404,
6242,
11159,
62,
25664,
4008,
198,
198,
18392,
796,
2251,
62,
18392,
10786,
25410,
578,
1378,
14,
90,
92,
4458,
18982,
7,
35,
1404,
6242,
11159,
62,
25664,
828,
9809,
28,
17821,
8,
198,
36044,
796,
6246,
10297,
7,
21653,
28,
18392,
8,
198,
29891,
796,
23575,
3419,
198,
14881,
13,
38993,
13,
17953,
62,
439,
7,
18392,
8,
198
] | 2.989189 | 185 |
from Vertex import Vertex
INF = 10**9
| [
6738,
4643,
16886,
1330,
4643,
16886,
198,
1268,
37,
796,
838,
1174,
24,
198
] | 2.714286 | 14 |
VOWELS = ('a', 'e', 'i', 'o', 'u', 'yt', 'xr')
CONSONANTS = ('b', 'c', 'd', 'f', 'g',
'h', 'j', 'k', 'l', 'm',
'n', 'p', 'q', 'r', 's',
't', 'v', 'w', 'x', 'y',
'z', 'sh', 'sch', 'zz', 'gh',
'ch', 'th', 'qu', 'thr',
'squ')
| [
53,
3913,
37142,
796,
19203,
64,
3256,
705,
68,
3256,
705,
72,
3256,
705,
78,
3256,
705,
84,
3256,
705,
20760,
3256,
705,
87,
81,
11537,
198,
198,
10943,
11782,
1565,
4694,
796,
19203,
65,
3256,
705,
66,
3256,
705,
67,
3256,
705,
69,
3256,
705,
70,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
71,
3256,
705,
73,
3256,
705,
74,
3256,
705,
75,
3256,
705,
76,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
77,
3256,
705,
79,
3256,
705,
80,
3256,
705,
81,
3256,
705,
82,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
83,
3256,
705,
85,
3256,
705,
86,
3256,
705,
87,
3256,
705,
88,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
89,
3256,
705,
1477,
3256,
705,
20601,
3256,
705,
3019,
3256,
705,
456,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
354,
3256,
705,
400,
3256,
705,
421,
3256,
705,
400,
81,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
16485,
11537,
628
] | 1.478469 | 209 |
import os
KHAN_BASE_URL = "http://192.168.1.2:8080" # instance used by khan mini to access API
KHAN_MINI_BASE_URL = "http://192.168.1.2:8081"
KHAN_BASE_URL2 = "http://192.168.1.2" # excluding port, which will be randomly assigned from below
KHAN_INSTANCES = [8082,8083,8084,8085,8086]
khanconf = os.path.join(os.path.dirname(__file__), 'khanmini.conf')
enlishessayconf = os.path.join(os.path.dirname(__file__), 'englishessay.conf')
current_dir = os.path.dirname(os.path.abspath(__file__))
ESSAY_DB = "mysql://ase:asep4s5@localhost/ase"
| [
11748,
28686,
198,
198,
42,
39,
1565,
62,
33,
11159,
62,
21886,
796,
366,
4023,
1378,
17477,
13,
14656,
13,
16,
13,
17,
25,
1795,
1795,
1,
220,
220,
220,
220,
220,
220,
1303,
4554,
973,
416,
479,
7637,
9927,
284,
1895,
7824,
198,
42,
39,
1565,
62,
23678,
40,
62,
33,
11159,
62,
21886,
796,
366,
4023,
1378,
17477,
13,
14656,
13,
16,
13,
17,
25,
1795,
6659,
1,
198,
42,
39,
1565,
62,
33,
11159,
62,
21886,
17,
796,
366,
4023,
1378,
17477,
13,
14656,
13,
16,
13,
17,
1,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
23494,
2493,
11,
543,
481,
307,
15456,
8686,
422,
2174,
198,
42,
39,
1565,
62,
38604,
20940,
1546,
796,
685,
1795,
6469,
11,
1795,
5999,
11,
1795,
5705,
11,
1795,
5332,
11,
1795,
4521,
60,
198,
198,
74,
7637,
10414,
796,
28686,
13,
6978,
13,
22179,
7,
418,
13,
6978,
13,
15908,
3672,
7,
834,
7753,
834,
828,
705,
74,
7637,
45313,
13,
10414,
11537,
198,
268,
27999,
33979,
323,
10414,
796,
28686,
13,
6978,
13,
22179,
7,
418,
13,
6978,
13,
15908,
3672,
7,
834,
7753,
834,
828,
705,
1516,
27999,
33979,
323,
13,
10414,
11537,
198,
14421,
62,
15908,
796,
28686,
13,
6978,
13,
15908,
3672,
7,
418,
13,
6978,
13,
397,
2777,
776,
7,
834,
7753,
834,
4008,
198,
198,
1546,
27358,
62,
11012,
796,
366,
28744,
13976,
1378,
589,
25,
292,
538,
19,
82,
20,
31,
36750,
14,
589,
1,
198
] | 2.237903 | 248 |
from django.contrib import admin
from django.contrib.admin.actions import delete_selected
from .models import CustomUser
from djoser import signals, utils
from djoser.compat import get_user_email
from djoser.conf import settings
make_activate.short_description = "Ativar Usuarios"
send_confirmation_email.short_description = "Enviar Email de Confirmacao"
send_resend_activation_email.short_description = "Reenviar Email de Ativação"
send_reset_password_email.short_description = "Enviar link para Troca de Senha"
block_user.short_description = "Bloquear Usuário"
# Exclui globalmente a ação de apagar selecionados
# É necessário adicionar apenas nos que quiser conforme abaixo
admin.site.disable_action('delete_selected')
delete_selected.short_description = "Apagar Selecionados"
admin.site.site_header = 'Titulo do Topo'
admin.site.index_title = 'Titulo do Index'
admin.site.site_title = 'Titulo do Site(HTML)'
admin.site.register(CustomUser, CustomUserAdmin)
| [
6738,
42625,
14208,
13,
3642,
822,
1330,
13169,
198,
6738,
42625,
14208,
13,
3642,
822,
13,
28482,
13,
4658,
1330,
12233,
62,
34213,
198,
198,
6738,
764,
27530,
1330,
8562,
12982,
198,
6738,
42625,
13416,
1330,
10425,
11,
3384,
4487,
198,
6738,
42625,
13416,
13,
5589,
265,
1330,
651,
62,
7220,
62,
12888,
198,
6738,
42625,
13416,
13,
10414,
1330,
6460,
628,
198,
198,
15883,
62,
39022,
13,
19509,
62,
11213,
796,
366,
2953,
452,
283,
471,
2385,
13010,
1,
198,
21280,
62,
10414,
36241,
62,
12888,
13,
19509,
62,
11213,
796,
366,
4834,
8903,
283,
9570,
390,
7326,
2533,
330,
5488,
1,
198,
21280,
62,
411,
437,
62,
48545,
62,
12888,
13,
19509,
62,
11213,
796,
366,
3041,
268,
8903,
283,
9570,
390,
1629,
12151,
16175,
28749,
1,
198,
21280,
62,
42503,
62,
28712,
62,
12888,
13,
19509,
62,
11213,
796,
366,
4834,
8903,
283,
2792,
31215,
8498,
6888,
390,
2311,
3099,
1,
198,
9967,
62,
7220,
13,
19509,
62,
11213,
796,
366,
3629,
22696,
451,
471,
2385,
6557,
27250,
1,
198,
198,
2,
1475,
565,
9019,
3298,
434,
68,
257,
257,
16175,
28749,
390,
2471,
32452,
384,
293,
66,
295,
22484,
198,
2,
43052,
2418,
6557,
27250,
512,
47430,
283,
2471,
268,
292,
43630,
8358,
627,
5847,
17216,
68,
450,
64,
844,
78,
198,
28482,
13,
15654,
13,
40223,
62,
2673,
10786,
33678,
62,
34213,
11537,
198,
33678,
62,
34213,
13,
19509,
62,
11213,
796,
366,
25189,
32452,
1001,
293,
66,
295,
22484,
1,
198,
198,
28482,
13,
15654,
13,
15654,
62,
25677,
796,
705,
51,
270,
43348,
466,
5849,
78,
6,
198,
28482,
13,
15654,
13,
9630,
62,
7839,
796,
705,
51,
270,
43348,
466,
12901,
6,
198,
28482,
13,
15654,
13,
15654,
62,
7839,
796,
705,
51,
270,
43348,
466,
14413,
7,
28656,
33047,
198,
198,
28482,
13,
15654,
13,
30238,
7,
15022,
12982,
11,
8562,
12982,
46787,
8,
198
] | 3.082803 | 314 |
from flask import Flask
from flask_restful import Api
from objects import Objects
from replicate import Replicate
from restore import Restore
from object import Object
app = Flask(__name__)
api = Api(app)
api.add_resource(Objects, "/api/objects/")
api.add_resource(Replicate, "/api/replicate/<action>")
api.add_resource(Restore, "/api/restore/<server>")
api.add_resource(Object, "/api/objects/<name>")
if __name__ == "__main__":
app.run("172.26.208.232", 5000)
| [
6738,
42903,
1330,
46947,
198,
6738,
42903,
62,
2118,
913,
1330,
5949,
72,
198,
6738,
5563,
1330,
35832,
198,
6738,
24340,
1330,
18407,
5344,
198,
6738,
11169,
1330,
42019,
198,
6738,
2134,
1330,
9515,
198,
198,
1324,
796,
46947,
7,
834,
3672,
834,
8,
198,
15042,
796,
5949,
72,
7,
1324,
8,
198,
15042,
13,
2860,
62,
31092,
7,
10267,
82,
11,
12813,
15042,
14,
48205,
14,
4943,
198,
15042,
13,
2860,
62,
31092,
7,
39232,
5344,
11,
12813,
15042,
14,
35666,
5344,
14,
27,
2673,
29,
4943,
198,
15042,
13,
2860,
62,
31092,
7,
19452,
382,
11,
12813,
15042,
14,
2118,
382,
14,
27,
15388,
29,
4943,
198,
15042,
13,
2860,
62,
31092,
7,
10267,
11,
12813,
15042,
14,
48205,
14,
27,
3672,
29,
4943,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
598,
13,
5143,
7203,
23628,
13,
2075,
13,
21315,
13,
24339,
1600,
23336,
8,
198
] | 2.974522 | 157 |
pratos = ('bolinho de bacalhau',
'francesinha',
'caldo verde',
'pastel de belém',
'feijoada')
print('Cardápio principal:')
for prato in pratos:
print(f'\t{prato.title()}')
pratos = ('arroz de forno',
'farofa crocante',
'caldo verde',
'pastel de belém',
'feijoada')
print('\nCardápio revisado:')
for prato in pratos:
print(f'\t{prato.title()}')
| [
1050,
35492,
796,
19203,
28984,
20327,
390,
275,
330,
282,
71,
559,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
8310,
1817,
259,
3099,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
66,
41476,
3326,
2934,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
30119,
417,
390,
894,
2634,
76,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5036,
2926,
1170,
64,
11537,
198,
4798,
10786,
16962,
6557,
79,
952,
10033,
25,
11537,
198,
1640,
778,
5549,
287,
778,
35492,
25,
198,
220,
220,
220,
3601,
7,
69,
6,
59,
83,
90,
1050,
5549,
13,
7839,
3419,
92,
11537,
198,
198,
1050,
35492,
796,
19203,
34852,
89,
390,
329,
3919,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
16370,
1659,
64,
6763,
66,
12427,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
66,
41476,
3326,
2934,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
30119,
417,
390,
894,
2634,
76,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5036,
2926,
1170,
64,
11537,
198,
4798,
10786,
59,
77,
16962,
6557,
79,
952,
22124,
4533,
25,
11537,
198,
1640,
778,
5549,
287,
778,
35492,
25,
198,
220,
220,
220,
3601,
7,
69,
6,
59,
83,
90,
1050,
5549,
13,
7839,
3419,
92,
11537,
198
] | 1.842553 | 235 |
# Copyright 2020 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import sys
import json
import argparse
import config.config as pconfig
from avalon_sdk.connector.blockchains.ethereum.ethereum_work_order \
import EthereumWorkOrderProxyImpl
from avalon_sdk.connector.blockchains.ethereum.ethereum_worker_registry \
import EthereumWorkerRegistryImpl
from avalon_sdk.connector.blockchains.ethereum.ethereum_wrapper \
import EthereumWrapper
from ethereum_connector.ethereum_connector \
import EthereumConnector
import logging
# -----------------------------------------------------------------
# -----------------------------------------------------------------
TCF_HOME = os.environ.get("TCF_HOME", "../../../")
logging.basicConfig(
format="%(asctime)s - %(levelname)s - %(message)s", level=logging.INFO)
# -----------------------------------------------------------------
# -----------------------------------------------------------------
# -----------------------------------------------------------------
# -----------------------------------------------------------------
# -----------------------------------------------------------------
# -----------------------------------------------------------------
main()
| [
2,
15069,
12131,
8180,
10501,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
198,
2,
921,
743,
7330,
257,
4866,
286,
262,
13789,
379,
198,
2,
198,
2,
220,
220,
220,
220,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
198,
2,
198,
2,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
198,
2,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
198,
2,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
198,
2,
4091,
262,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
198,
2,
11247,
739,
262,
13789,
13,
198,
198,
11748,
28686,
198,
11748,
25064,
198,
11748,
33918,
198,
11748,
1822,
29572,
198,
11748,
4566,
13,
11250,
355,
279,
11250,
198,
198,
6738,
37441,
261,
62,
21282,
74,
13,
8443,
273,
13,
9967,
38861,
13,
316,
1456,
388,
13,
316,
1456,
388,
62,
1818,
62,
2875,
3467,
198,
220,
220,
220,
1330,
20313,
12468,
18743,
44148,
29710,
198,
6738,
37441,
261,
62,
21282,
74,
13,
8443,
273,
13,
9967,
38861,
13,
316,
1456,
388,
13,
316,
1456,
388,
62,
28816,
62,
2301,
4592,
3467,
198,
220,
220,
220,
1330,
20313,
12468,
263,
8081,
4592,
29710,
198,
6738,
37441,
261,
62,
21282,
74,
13,
8443,
273,
13,
9967,
38861,
13,
316,
1456,
388,
13,
316,
1456,
388,
62,
48553,
3467,
198,
220,
220,
220,
1330,
20313,
36918,
2848,
198,
198,
6738,
304,
17733,
62,
8443,
273,
13,
316,
1456,
388,
62,
8443,
273,
3467,
198,
220,
220,
220,
1330,
20313,
34525,
198,
198,
11748,
18931,
198,
198,
2,
16529,
12,
198,
2,
16529,
12,
198,
198,
4825,
37,
62,
39069,
796,
28686,
13,
268,
2268,
13,
1136,
7203,
4825,
37,
62,
39069,
1600,
366,
40720,
40720,
40720,
4943,
198,
198,
6404,
2667,
13,
35487,
16934,
7,
198,
220,
220,
220,
5794,
2625,
4,
7,
292,
310,
524,
8,
82,
532,
4064,
7,
5715,
3672,
8,
82,
532,
4064,
7,
20500,
8,
82,
1600,
1241,
28,
6404,
2667,
13,
10778,
8,
198,
198,
2,
16529,
12,
198,
2,
16529,
12,
628,
198,
2,
16529,
12,
198,
2,
16529,
12,
628,
198,
2,
16529,
12,
198,
2,
16529,
12,
628,
198,
12417,
3419,
198
] | 4.331707 | 410 |
"""
https://adventofcode.com/2017/day/6
"""
import unittest
from _2017 import d06_memreallocation
if __name__ == '__main__':
unittest.main()
| [
37811,
198,
5450,
1378,
324,
1151,
1659,
8189,
13,
785,
14,
5539,
14,
820,
14,
21,
198,
37811,
198,
11748,
555,
715,
395,
198,
6738,
4808,
5539,
1330,
288,
3312,
62,
11883,
260,
439,
5040,
628,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
555,
715,
395,
13,
12417,
3419,
198
] | 2.508475 | 59 |
from random import randint
from typing import Optional
from harvester.zerg_action import ZergAction
from sc2 import UnitTypeId
from sc2.ids.upgrade_id import UpgradeId
from sharpy.interfaces import IGameAnalyzer, IEnemyUnitsManager
from sharpy.managers.extensions.game_states import AirArmy
from sharpy.managers.extensions.game_states.advantage import at_least_disadvantage, at_least_advantage
from tactics.ml.base_agent_manager import BaseAgentManager
from tactics.ml.ml_build import MlBuild
| [
6738,
4738,
1330,
43720,
600,
198,
6738,
19720,
1330,
32233,
198,
198,
6738,
3971,
1158,
353,
13,
89,
6422,
62,
2673,
1330,
37509,
12502,
198,
6738,
629,
17,
1330,
11801,
6030,
7390,
198,
6738,
629,
17,
13,
2340,
13,
929,
9526,
62,
312,
1330,
24236,
7390,
198,
6738,
7786,
88,
13,
3849,
32186,
1330,
314,
8777,
37702,
9107,
11,
314,
4834,
3065,
3118,
896,
13511,
198,
6738,
7786,
88,
13,
805,
10321,
13,
2302,
5736,
13,
6057,
62,
27219,
1330,
3701,
45272,
198,
6738,
7786,
88,
13,
805,
10321,
13,
2302,
5736,
13,
6057,
62,
27219,
13,
13461,
496,
1330,
379,
62,
293,
459,
62,
6381,
13461,
496,
11,
379,
62,
293,
459,
62,
13461,
496,
198,
6738,
10815,
13,
4029,
13,
8692,
62,
25781,
62,
37153,
1330,
7308,
36772,
13511,
198,
6738,
10815,
13,
4029,
13,
4029,
62,
11249,
1330,
337,
75,
15580,
628
] | 3.413793 | 145 |
# Django
from rest_framework import serializers
# Models
from sunnysouth.marketplace.models import Category
| [
2,
37770,
198,
6738,
1334,
62,
30604,
1330,
11389,
11341,
198,
198,
2,
32329,
198,
6738,
4252,
77,
893,
1536,
13,
10728,
5372,
13,
27530,
1330,
21743,
628
] | 3.928571 | 28 |
# Copyright 2019 Open Source Robotics Foundation, Inc.
#
# 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.
"""Test parsing an include action."""
import io
from pathlib import Path
import textwrap
from launch import LaunchService
from launch.actions import IncludeLaunchDescription
from launch.frontend import Parser
from launch.launch_description_sources import AnyLaunchDescriptionSource
def test_include():
"""Parse node xml example."""
# Always use posix style paths in launch XML files.
path = (Path(__file__).parent / 'executable.xml').as_posix()
xml_file = \
"""\
<launch>
<include file="{}"/>
</launch>
""".format(path) # noqa: E501
xml_file = textwrap.dedent(xml_file)
root_entity, parser = Parser.load(io.StringIO(xml_file))
ld = parser.parse_description(root_entity)
include = ld.entities[0]
assert isinstance(include, IncludeLaunchDescription)
assert isinstance(include.launch_description_source, AnyLaunchDescriptionSource)
ls = LaunchService(debug=True)
ls.include_launch_description(ld)
assert 0 == ls.run()
if __name__ == '__main__':
test_include()
| [
2,
15069,
13130,
4946,
8090,
47061,
5693,
11,
3457,
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,
14402,
32096,
281,
2291,
2223,
526,
15931,
198,
198,
11748,
33245,
198,
6738,
3108,
8019,
1330,
10644,
198,
11748,
2420,
37150,
198,
198,
6738,
4219,
1330,
21225,
16177,
198,
6738,
4219,
13,
4658,
1330,
40348,
38296,
11828,
198,
6738,
4219,
13,
8534,
437,
1330,
23042,
263,
198,
6738,
4219,
13,
35681,
62,
11213,
62,
82,
2203,
1330,
4377,
38296,
11828,
7416,
628,
198,
4299,
1332,
62,
17256,
33529,
198,
220,
220,
220,
37227,
10044,
325,
10139,
35555,
1672,
526,
15931,
198,
220,
220,
220,
1303,
16622,
779,
1426,
844,
3918,
13532,
287,
4219,
23735,
3696,
13,
198,
220,
220,
220,
3108,
796,
357,
15235,
7,
834,
7753,
834,
737,
8000,
1220,
705,
18558,
18187,
13,
19875,
27691,
292,
62,
1930,
844,
3419,
198,
220,
220,
220,
35555,
62,
7753,
796,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
59,
198,
220,
220,
220,
220,
220,
220,
220,
1279,
35681,
29,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
17256,
2393,
2625,
90,
92,
26700,
198,
220,
220,
220,
220,
220,
220,
220,
7359,
35681,
29,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
1911,
18982,
7,
6978,
8,
220,
1303,
645,
20402,
25,
412,
33548,
198,
220,
220,
220,
35555,
62,
7753,
796,
2420,
37150,
13,
9395,
298,
7,
19875,
62,
7753,
8,
198,
220,
220,
220,
6808,
62,
26858,
11,
30751,
796,
23042,
263,
13,
2220,
7,
952,
13,
10100,
9399,
7,
19875,
62,
7753,
4008,
198,
220,
220,
220,
300,
67,
796,
30751,
13,
29572,
62,
11213,
7,
15763,
62,
26858,
8,
198,
220,
220,
220,
2291,
796,
300,
67,
13,
298,
871,
58,
15,
60,
198,
220,
220,
220,
6818,
318,
39098,
7,
17256,
11,
40348,
38296,
11828,
8,
198,
220,
220,
220,
6818,
318,
39098,
7,
17256,
13,
35681,
62,
11213,
62,
10459,
11,
4377,
38296,
11828,
7416,
8,
198,
220,
220,
220,
43979,
796,
21225,
16177,
7,
24442,
28,
17821,
8,
198,
220,
220,
220,
43979,
13,
17256,
62,
35681,
62,
11213,
7,
335,
8,
198,
220,
220,
220,
6818,
657,
6624,
43979,
13,
5143,
3419,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1332,
62,
17256,
3419,
198
] | 3.173333 | 525 |
"""
scrapple.utils.dynamicdispatch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Functions related to dynamic dispatch of objects
"""
def get_command_class(command):
"""
Called from runCLI() to select the command class for the selected command.
:param command: The command to be implemented
:return: The command class corresponding to the selected command
"""
from scrapple.commands import genconfig, generate, run, web
commandMapping = {
'genconfig': genconfig,
'generate': generate,
'run': run,
'web': web
}
cmdClass = getattr(commandMapping.get(command), command.title() + 'Command')
return cmdClass
| [
37811,
198,
1416,
430,
381,
293,
13,
26791,
13,
67,
28995,
6381,
17147,
198,
27156,
15116,
8728,
4907,
198,
198,
24629,
2733,
3519,
284,
8925,
27965,
286,
5563,
198,
37811,
198,
198,
4299,
651,
62,
21812,
62,
4871,
7,
21812,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
34099,
422,
1057,
5097,
40,
3419,
284,
2922,
262,
3141,
1398,
329,
262,
6163,
3141,
13,
628,
220,
220,
220,
1058,
17143,
3141,
25,
383,
3141,
284,
307,
9177,
198,
220,
220,
220,
1058,
7783,
25,
383,
3141,
1398,
11188,
284,
262,
6163,
3141,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
422,
19320,
381,
293,
13,
9503,
1746,
1330,
2429,
11250,
11,
7716,
11,
1057,
11,
3992,
198,
220,
220,
220,
3141,
44,
5912,
796,
1391,
198,
220,
220,
220,
220,
197,
6,
5235,
11250,
10354,
2429,
11250,
11,
198,
220,
220,
220,
220,
197,
6,
8612,
378,
10354,
7716,
11,
198,
220,
220,
220,
220,
197,
6,
5143,
10354,
1057,
11,
198,
220,
220,
220,
220,
197,
6,
12384,
10354,
3992,
198,
220,
220,
220,
1782,
198,
220,
220,
220,
23991,
9487,
796,
651,
35226,
7,
21812,
44,
5912,
13,
1136,
7,
21812,
828,
3141,
13,
7839,
3419,
1343,
705,
21575,
11537,
198,
220,
220,
220,
1441,
23991,
9487,
198
] | 3.056338 | 213 |
import tasks
from . import base
from jones import FixerAPI | [
11748,
8861,
198,
198,
6738,
764,
1330,
2779,
198,
6738,
474,
1952,
1330,
13268,
263,
17614
] | 3.6875 | 16 |
from typing import Tuple
import jax.numpy as jnp
from ase import units
from jax_md import energy
from jax_md.energy import NeighborFn
from .calculator import Calculator
from .jax_utils import EnergyFn
class LennardJones(Calculator):
"""Lennard-Jones Potential"""
implemented_properties = ["energy", "energies", "forces", "stress"]
def __init__(
self,
epsilon=1.0,
sigma=1.0,
rc=None,
ro=None,
stress=False,
dr_threshold=1 * units.Angstrom,
**kwargs
):
"""
Parameters:
sigma: The potential minimum is at 2**(1/6) * sigma, default 1.0
epsilon: The potential depth, default 1.0
rc: Cut-off for the NeighborList is set to 3 * sigma if None, the default.
ro: Onset of the cutoff function. Set to 0.8*rc if None, the default.
stress: Compute stress tensor (periodic systems only)
"""
super().__init__(**kwargs, stress=stress)
self.epsilon = epsilon
self.sigma = sigma
if rc is None:
rc = 3 * self.sigma
self.rc = rc
if ro is None:
ro = 0.8 * self.rc
self.ro = ro
self.dr_threshold = dr_threshold
| [
6738,
19720,
1330,
309,
29291,
198,
198,
11748,
474,
897,
13,
77,
32152,
355,
474,
37659,
198,
6738,
257,
325,
1330,
4991,
198,
6738,
474,
897,
62,
9132,
1330,
2568,
198,
6738,
474,
897,
62,
9132,
13,
22554,
1330,
28708,
37,
77,
198,
198,
6738,
764,
9948,
3129,
1352,
1330,
43597,
198,
6738,
764,
73,
897,
62,
26791,
1330,
6682,
37,
77,
628,
198,
4871,
28423,
446,
25784,
7,
9771,
3129,
1352,
2599,
198,
220,
220,
220,
37227,
43,
1697,
446,
12,
25784,
32480,
37811,
628,
220,
220,
220,
9177,
62,
48310,
796,
14631,
22554,
1600,
366,
877,
70,
444,
1600,
366,
27087,
1600,
366,
41494,
8973,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
11,
198,
220,
220,
220,
220,
220,
220,
220,
304,
862,
33576,
28,
16,
13,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
264,
13495,
28,
16,
13,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
48321,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
686,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5503,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1553,
62,
400,
10126,
28,
16,
1635,
4991,
13,
13450,
20282,
11,
198,
220,
220,
220,
220,
220,
220,
220,
12429,
46265,
22046,
198,
220,
220,
220,
15179,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
13495,
25,
383,
2785,
5288,
318,
379,
220,
362,
1174,
7,
16,
14,
21,
8,
1635,
264,
13495,
11,
4277,
352,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
304,
862,
33576,
25,
383,
2785,
6795,
11,
4277,
352,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
48321,
25,
9712,
12,
2364,
329,
262,
28708,
8053,
318,
900,
284,
513,
1635,
264,
13495,
611,
6045,
11,
262,
4277,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
686,
25,
1550,
2617,
286,
262,
45616,
2163,
13,
5345,
284,
657,
13,
23,
9,
6015,
611,
6045,
11,
262,
4277,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5503,
25,
3082,
1133,
5503,
11192,
273,
357,
41007,
291,
3341,
691,
8,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
1174,
46265,
22046,
11,
5503,
28,
41494,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
538,
18217,
261,
796,
304,
862,
33576,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
82,
13495,
796,
264,
13495,
628,
220,
220,
220,
220,
220,
220,
220,
611,
48321,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
48321,
796,
513,
1635,
2116,
13,
82,
13495,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6015,
796,
48321,
628,
220,
220,
220,
220,
220,
220,
220,
611,
686,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
686,
796,
657,
13,
23,
1635,
2116,
13,
6015,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
305,
796,
686,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7109,
62,
400,
10126,
796,
1553,
62,
400,
10126,
198
] | 2.168111 | 577 |
import numpy as np
from typing import Tuple, Callable, List, Union, cast
from typing_extensions import Protocol
import types
import torch
import pydrake.symbolic as sym
import pdb
import sympy
from sympy import Symbol, sympify, simplify, trigsimp
from functools import reduce
import operator
from enum import Enum
# string formatting literals
TORCH_ARGS = 'torch_args'
INTERMEDIATE_VARIABLE_PREFIX = 'var'
SYMPY_SYMBOL_PREFIX = 's'
# simplification settings
_simplifier_map = {
Simplifier.ALL: simplify,
Simplifier.TRIGONLY: trigsimp,
Simplifier.QUICKTRIG: lambda x: trigsimp(x, quick=True),
Simplifier.NONE: lambda x: x
}
# Convert an expression to a function in pytorch. The arguments for the
# returned function are be `x[i]`, where index `i` is derived from the
# ordering in `sym_args`. Returns [func, func_string]
#
# @param expr Either a pydrake.symbolic.Expression, or a list of expressions
# @param *sym_args The arguments to the symbolic expression. Multiple arguments
# can be provided.
#
# @return func A function object, which can be evaluated on a pytorch Tensor
# The function takes a variable number of arguments, matching the list in
# sym_args
# @return A string expressing the entire python function
# # # # # # # # # # # # # # # # # # # # # # # #
# helper functions / data for drake -> sympy #
# # # # # # # # # # # # # # # # # # # # # # # #
_constant_dict = {1.0: "1", -1.0: "-1"}
sympy_ops = {
sym.ExpressionKind.Add: sympy.Add,
sym.ExpressionKind.Mul: sympy.Mul,
sym.ExpressionKind.Div: lambda x, y: x / y,
sym.ExpressionKind.Log: sympy.log,
sym.ExpressionKind.Abs: sympy.Abs,
sym.ExpressionKind.Exp: sympy.exp,
sym.ExpressionKind.Pow: _fastpow,
sym.ExpressionKind.Sin: sympy.sin,
sym.ExpressionKind.Cos: sympy.cos,
sym.ExpressionKind.Tan: sympy.tan,
sym.ExpressionKind.Asin: sympy.asin,
sym.ExpressionKind.Acos: sympy.acos,
sym.ExpressionKind.Atan: sympy.atan,
sym.ExpressionKind.Atan2: sympy.atan2,
sym.ExpressionKind.Sinh: sympy.sinh,
sym.ExpressionKind.Cosh: sympy.cosh,
sym.ExpressionKind.Tanh: sympy.tanh,
sym.ExpressionKind.Min: sympy.Min,
sym.ExpressionKind.Max: sympy.Max,
sym.ExpressionKind.Ceil: sympy.ceiling,
sym.ExpressionKind.Floor: sympy.floor
}
# # # # # # # # # # # # # # # # # # # # # # # #
# helper functions / data for sympy -> torch #
# # # # # # # # # # # # # # # # # # # # # # # #
_torch_ops = {
sympy.Add: _reduction('+'),
sympy.Mul: _reduction('*'),
sympy.div: sympy_to_pytorch_simple_fun('div'),
sympy.log: sympy_to_pytorch_simple_fun('log'),
sympy.Abs: sympy_to_pytorch_simple_fun('abs'),
sympy.exp: sympy_to_pytorch_simple_fun('exp'),
sympy.Pow: _fastpow_string,
sympy.sin: sympy_to_pytorch_simple_fun('sin'),
sympy.cos: sympy_to_pytorch_simple_fun('cos'),
sympy.tan: sympy_to_pytorch_simple_fun('tan'),
sympy.asin: sympy_to_pytorch_simple_fun('asin'),
sympy.acos: sympy_to_pytorch_simple_fun('acos'),
sympy.atan: sympy_to_pytorch_simple_fun('atan'),
sympy.atan2: sympy_to_pytorch_simple_fun('atan2'),
sympy.sinh: sympy_to_pytorch_simple_fun('sinh'),
sympy.cosh: sympy_to_pytorch_simple_fun('cosh'),
sympy.tanh: sympy_to_pytorch_simple_fun('tanh'),
sympy.Min: sympy_to_pytorch_simple_fun('min'),
sympy.Max: sympy_to_pytorch_simple_fun('max'),
sympy.ceiling: sympy_to_pytorch_simple_fun('ceil'),
sympy.floor: sympy_to_pytorch_simple_fun('floor'),
}
# Convert a drake symbolic expression to sympy
#
# @param expr The drake expression to convert
# @param vardict Dictionary which corresponds drake variables to sympy Symbols
# @return The sympy expression
# Convert a sympy expression to a string. The arguments for the returned
# string will be `x[i]`, where index `i` is derived from the ordering
# in `sym_args`
#
# @param expr The sympy to convert
# @param memos Memoization dictionary of previously-seen expressions
# @param lines python lines which calculated memoized expressions
# @param vardict Dictionary which corresponds sympy Symbols to drake variables
# @param sym_args An ordered list of drake symbolic variables
# @return The variable name the expression is stored in to
| [
11748,
299,
32152,
355,
45941,
198,
6738,
19720,
1330,
309,
29291,
11,
4889,
540,
11,
7343,
11,
4479,
11,
3350,
198,
6738,
19720,
62,
2302,
5736,
1330,
20497,
198,
11748,
3858,
198,
11748,
28034,
198,
11748,
279,
5173,
33788,
13,
1837,
2022,
4160,
355,
5659,
198,
11748,
279,
9945,
198,
11748,
10558,
88,
198,
6738,
10558,
88,
1330,
38357,
11,
10558,
1958,
11,
30276,
11,
5192,
82,
11011,
198,
6738,
1257,
310,
10141,
1330,
4646,
198,
11748,
10088,
198,
6738,
33829,
1330,
2039,
388,
198,
198,
2,
4731,
33313,
4187,
874,
198,
32961,
3398,
62,
1503,
14313,
796,
705,
13165,
354,
62,
22046,
6,
198,
41358,
30733,
40,
6158,
62,
53,
1503,
3539,
19146,
62,
47,
31688,
10426,
796,
705,
7785,
6,
198,
23060,
7378,
56,
62,
23060,
10744,
3535,
62,
47,
31688,
10426,
796,
705,
82,
6,
628,
198,
2,
7106,
2649,
6460,
628,
198,
62,
14323,
489,
7483,
62,
8899,
796,
1391,
198,
220,
220,
220,
45157,
7483,
13,
7036,
25,
30276,
11,
198,
220,
220,
220,
45157,
7483,
13,
5446,
3528,
1340,
11319,
25,
5192,
82,
11011,
11,
198,
220,
220,
220,
45157,
7483,
13,
10917,
11860,
5446,
3528,
25,
37456,
2124,
25,
5192,
82,
11011,
7,
87,
11,
2068,
28,
17821,
828,
198,
220,
220,
220,
45157,
7483,
13,
45,
11651,
25,
37456,
2124,
25,
2124,
198,
92,
198,
198,
2,
38240,
281,
5408,
284,
257,
2163,
287,
12972,
13165,
354,
13,
383,
7159,
329,
262,
198,
2,
4504,
2163,
389,
307,
4600,
87,
58,
72,
60,
47671,
810,
6376,
4600,
72,
63,
318,
10944,
422,
262,
198,
2,
16216,
287,
4600,
37047,
62,
22046,
44646,
16409,
685,
20786,
11,
25439,
62,
8841,
60,
198,
2,
198,
2,
2488,
17143,
44052,
15467,
257,
279,
5173,
33788,
13,
1837,
2022,
4160,
13,
16870,
2234,
11,
393,
257,
1351,
286,
14700,
198,
2,
2488,
17143,
1635,
37047,
62,
22046,
383,
7159,
284,
262,
18975,
5408,
13,
20401,
7159,
198,
2,
220,
197,
5171,
307,
2810,
13,
198,
2,
198,
2,
2488,
7783,
25439,
317,
2163,
2134,
11,
543,
460,
307,
16726,
319,
257,
12972,
13165,
354,
309,
22854,
198,
2,
220,
197,
464,
2163,
2753,
257,
7885,
1271,
286,
7159,
11,
12336,
262,
1351,
287,
198,
2,
197,
197,
37047,
62,
22046,
198,
2,
2488,
7783,
317,
4731,
16621,
262,
2104,
21015,
2163,
628,
198,
2,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
198,
2,
31904,
5499,
1220,
1366,
329,
28841,
365,
4613,
10558,
88,
220,
1303,
198,
2,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
628,
198,
62,
9979,
415,
62,
11600,
796,
1391,
16,
13,
15,
25,
366,
16,
1600,
532,
16,
13,
15,
25,
27444,
16,
20662,
628,
198,
198,
1837,
3149,
88,
62,
2840,
796,
1391,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
4550,
25,
10558,
88,
13,
4550,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
44,
377,
25,
10558,
88,
13,
44,
377,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
24095,
25,
37456,
2124,
11,
331,
25,
2124,
1220,
331,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
11187,
25,
10558,
88,
13,
6404,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
24849,
25,
10558,
88,
13,
24849,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
16870,
25,
10558,
88,
13,
11201,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
47,
322,
25,
4808,
7217,
79,
322,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
46200,
25,
10558,
88,
13,
31369,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
36734,
25,
10558,
88,
13,
6966,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
45557,
25,
10558,
88,
13,
38006,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
1722,
259,
25,
10558,
88,
13,
47337,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
32,
6966,
25,
10558,
88,
13,
330,
418,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
2953,
272,
25,
10558,
88,
13,
39036,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
2953,
272,
17,
25,
10558,
88,
13,
39036,
17,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
46200,
71,
25,
10558,
88,
13,
31369,
71,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
34,
3768,
25,
10558,
88,
13,
66,
3768,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
45557,
71,
25,
10558,
88,
13,
38006,
71,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
9452,
25,
10558,
88,
13,
9452,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
11518,
25,
10558,
88,
13,
11518,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
34,
68,
346,
25,
10558,
88,
13,
344,
4386,
11,
198,
220,
220,
220,
5659,
13,
16870,
2234,
35854,
13,
7414,
2675,
25,
10558,
88,
13,
28300,
198,
92,
628,
198,
2,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
198,
2,
31904,
5499,
1220,
1366,
329,
10558,
88,
4613,
28034,
220,
1303,
198,
2,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
1303,
628,
628,
628,
198,
62,
13165,
354,
62,
2840,
796,
1391,
198,
220,
220,
220,
10558,
88,
13,
4550,
25,
4808,
445,
8110,
10786,
10,
33809,
198,
220,
220,
220,
10558,
88,
13,
44,
377,
25,
4808,
445,
8110,
10786,
9,
33809,
198,
220,
220,
220,
10558,
88,
13,
7146,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
7146,
33809,
198,
220,
220,
220,
10558,
88,
13,
6404,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
6404,
33809,
198,
220,
220,
220,
10558,
88,
13,
24849,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
8937,
33809,
198,
220,
220,
220,
10558,
88,
13,
11201,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
11201,
33809,
198,
220,
220,
220,
10558,
88,
13,
47,
322,
25,
4808,
7217,
79,
322,
62,
8841,
11,
198,
220,
220,
220,
10558,
88,
13,
31369,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
31369,
33809,
198,
220,
220,
220,
10558,
88,
13,
6966,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
6966,
33809,
198,
220,
220,
220,
10558,
88,
13,
38006,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
38006,
33809,
198,
220,
220,
220,
10558,
88,
13,
47337,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
47337,
33809,
198,
220,
220,
220,
10558,
88,
13,
330,
418,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
330,
418,
33809,
198,
220,
220,
220,
10558,
88,
13,
39036,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
39036,
33809,
198,
220,
220,
220,
10558,
88,
13,
39036,
17,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
39036,
17,
33809,
198,
220,
220,
220,
10558,
88,
13,
31369,
71,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
31369,
71,
33809,
198,
220,
220,
220,
10558,
88,
13,
66,
3768,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
66,
3768,
33809,
198,
220,
220,
220,
10558,
88,
13,
38006,
71,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
38006,
71,
33809,
198,
220,
220,
220,
10558,
88,
13,
9452,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
1084,
33809,
198,
220,
220,
220,
10558,
88,
13,
11518,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
9806,
33809,
198,
220,
220,
220,
10558,
88,
13,
344,
4386,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
344,
346,
33809,
198,
220,
220,
220,
10558,
88,
13,
28300,
25,
10558,
88,
62,
1462,
62,
9078,
13165,
354,
62,
36439,
62,
12543,
10786,
28300,
33809,
198,
92,
628,
198,
2,
38240,
257,
28841,
365,
18975,
5408,
284,
10558,
88,
198,
2,
198,
2,
2488,
17143,
44052,
383,
28841,
365,
5408,
284,
10385,
198,
2,
2488,
17143,
410,
446,
713,
28261,
543,
24866,
28841,
365,
9633,
284,
10558,
88,
41327,
10220,
198,
2,
2488,
7783,
383,
10558,
88,
5408,
628,
198,
2,
38240,
257,
10558,
88,
5408,
284,
257,
4731,
13,
383,
7159,
329,
262,
4504,
198,
2,
4731,
481,
307,
4600,
87,
58,
72,
60,
47671,
810,
6376,
4600,
72,
63,
318,
10944,
422,
262,
16216,
198,
2,
287,
4600,
37047,
62,
22046,
63,
198,
2,
198,
2,
2488,
17143,
44052,
383,
10558,
88,
284,
10385,
198,
2,
2488,
17143,
44940,
4942,
78,
1634,
22155,
286,
4271,
12,
15898,
14700,
198,
2,
2488,
17143,
3951,
21015,
3951,
543,
10488,
16155,
1143,
14700,
198,
2,
2488,
17143,
410,
446,
713,
28261,
543,
24866,
10558,
88,
41327,
10220,
284,
28841,
365,
9633,
198,
2,
2488,
17143,
5659,
62,
22046,
1052,
6149,
1351,
286,
28841,
365,
18975,
9633,
198,
2,
2488,
7783,
383,
7885,
1438,
262,
5408,
318,
8574,
287,
284,
628
] | 2.628942 | 1,617 |
from Mesh.System.Entity.Function import BaseFunction
from Mesh.System.Entity.Function.Tasked import TaskName
| [
6738,
47529,
13,
11964,
13,
32398,
13,
22203,
1330,
7308,
22203,
198,
6738,
47529,
13,
11964,
13,
32398,
13,
22203,
13,
25714,
276,
1330,
15941,
5376,
628
] | 4.074074 | 27 |
#!/usr/bin/env python
#
# Created on 07/11/2014 Pat Cappelaere - Vightel Corporation
#
# Output: Landsat 8 browse image
#
import os, inspect, sys
import argparse
import numpy
import scipy
import math
from scipy import ndimage
from osgeo import gdal
from osgeo import osr
from osgeo import ogr
from which import *
import config
force = 0
verbose = 0
#
# execute with verbose option
#
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Generate Landsat8 Floodmap vectors')
apg_input = parser.add_argument_group('Input')
apg_input.add_argument("-f", "--force", action='store_true', help="Forces new product to be generated")
apg_input.add_argument("-v", "--verbose", action='store_true', help="Verbose on/off")
apg_input.add_argument("-s", "--scene", help="Landsat Scene")
options = parser.parse_args()
force = options.force
verbose = options.verbose
scene = options.scene
outdir = os.path.join(config.LANDSAT8_DIR,scene)
app = Landsat8(outdir, scene)
app.process() | [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
198,
2,
15622,
319,
8753,
14,
1157,
14,
4967,
3208,
327,
1324,
10304,
567,
532,
569,
432,
417,
10501,
198,
2,
198,
2,
25235,
25,
24182,
265,
807,
25675,
2939,
198,
2,
198,
198,
11748,
28686,
11,
10104,
11,
25064,
198,
11748,
1822,
29572,
198,
198,
11748,
299,
32152,
198,
11748,
629,
541,
88,
198,
11748,
10688,
198,
198,
6738,
629,
541,
88,
1330,
299,
67,
9060,
198,
198,
6738,
28686,
469,
78,
1330,
308,
31748,
198,
6738,
28686,
469,
78,
1330,
267,
27891,
198,
6738,
28686,
469,
78,
1330,
267,
2164,
198,
6738,
543,
1330,
1635,
198,
198,
11748,
4566,
198,
198,
3174,
220,
197,
28,
657,
198,
19011,
577,
197,
28,
657,
198,
197,
2,
198,
197,
2,
12260,
351,
15942,
577,
3038,
198,
197,
2,
198,
197,
197,
198,
197,
197,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
628,
197,
48610,
796,
1822,
29572,
13,
28100,
1713,
46677,
7,
11213,
11639,
8645,
378,
24182,
265,
23,
25588,
8899,
30104,
11537,
198,
197,
499,
70,
62,
15414,
796,
30751,
13,
2860,
62,
49140,
62,
8094,
10786,
20560,
11537,
198,
197,
499,
70,
62,
15414,
13,
2860,
62,
49140,
7203,
12,
69,
1600,
366,
438,
3174,
1600,
220,
197,
2673,
11639,
8095,
62,
7942,
3256,
1037,
2625,
1890,
728,
649,
1720,
284,
307,
7560,
4943,
198,
197,
499,
70,
62,
15414,
13,
2860,
62,
49140,
7203,
12,
85,
1600,
366,
438,
19011,
577,
1600,
220,
197,
2673,
11639,
8095,
62,
7942,
3256,
1037,
2625,
13414,
65,
577,
319,
14,
2364,
4943,
198,
197,
499,
70,
62,
15414,
13,
2860,
62,
49140,
7203,
12,
82,
1600,
366,
438,
29734,
1600,
220,
197,
16794,
2625,
43,
1746,
265,
28315,
4943,
628,
197,
25811,
220,
197,
28,
30751,
13,
29572,
62,
22046,
3419,
198,
197,
3174,
197,
197,
28,
3689,
13,
3174,
198,
197,
19011,
577,
197,
197,
28,
3689,
13,
19011,
577,
198,
197,
29734,
197,
220,
197,
28,
3689,
13,
29734,
628,
197,
448,
15908,
197,
197,
28,
28686,
13,
6978,
13,
22179,
7,
11250,
13,
25697,
5258,
1404,
23,
62,
34720,
11,
29734,
8,
197,
628,
197,
1324,
220,
197,
197,
28,
24182,
265,
23,
7,
448,
15908,
11,
3715,
8,
628,
197,
1324,
13,
14681,
3419
] | 2.693717 | 382 |
nome = input('Digite seu nome: ').upper()
print(f'Seu nome possui {nome.count("A")} letra A')
print(f'O primeiro A está na posição {nome.find("A")+1}')
print(f'O último A está na posição {nome.rfind("A")+1}') | [
77,
462,
796,
5128,
10786,
19511,
578,
384,
84,
299,
462,
25,
705,
737,
45828,
3419,
198,
4798,
7,
69,
6,
4653,
84,
299,
462,
1184,
9019,
1391,
77,
462,
13,
9127,
7203,
32,
4943,
92,
1309,
430,
317,
11537,
198,
4798,
7,
69,
6,
46,
6994,
7058,
317,
1556,
6557,
12385,
1426,
72,
16175,
28749,
1391,
77,
462,
13,
19796,
7203,
32,
4943,
10,
16,
92,
11537,
198,
4798,
7,
69,
6,
46,
6184,
118,
2528,
25147,
317,
1556,
6557,
12385,
1426,
72,
16175,
28749,
1391,
77,
462,
13,
81,
19796,
7203,
32,
4943,
10,
16,
92,
11537
] | 2.10101 | 99 |
import asyncio
import datetime
import logging
import pykube
import requests
from kopf import config
from kopf.clients import auth
from kopf.structs import hierarchies
logger = logging.getLogger(__name__)
MAX_MESSAGE_LENGTH = 1024
CUT_MESSAGE_INFIX = '...'
async def post_event(*, obj=None, ref=None, type, reason, message=''):
"""
Issue an event for the object.
This is where they can also be accumulated, aggregated, grouped,
and where the rate-limits should be maintained. It can (and should)
be done by the client library, as it is done in the Go client.
"""
# Object reference - similar to the owner reference, but different.
if obj is not None and ref is not None:
raise TypeError("Only one of obj= and ref= is allowed for a posted event. Got both.")
if obj is None and ref is None:
raise TypeError("One of obj= and ref= is required for a posted event. Got none.")
if ref is None:
ref = hierarchies.build_object_reference(obj)
now = datetime.datetime.utcnow()
# See #164. For cluster-scoped objects, use the current namespace from the current context.
# It could be "default", but in some systems, we are limited to one specific namespace only.
namespace = ref.get('namespace') or auth.get_pykube_cfg().namespace
if not ref.get('namespace'):
ref = dict(ref, namespace=namespace)
# Prevent a common case of event posting errors but shortening the message.
if len(message) > MAX_MESSAGE_LENGTH:
infix = CUT_MESSAGE_INFIX
prefix = message[:MAX_MESSAGE_LENGTH // 2 - (len(infix) // 2)]
suffix = message[-MAX_MESSAGE_LENGTH // 2 + (len(infix) - len(infix) // 2):]
message = f'{prefix}{infix}{suffix}'
body = {
'metadata': {
'namespace': namespace,
'generateName': 'kopf-event-',
},
'action': 'Action?',
'type': type,
'reason': reason,
'message': message,
'reportingComponent': 'kopf',
'reportingInstance': 'dev',
'source' : {'component': 'kopf'}, # used in the "From" column in `kubectl describe`.
'involvedObject': ref,
'firstTimestamp': now.isoformat() + 'Z', # '2019-01-28T18:25:03.000000Z' -- seen in `kubectl describe ...`
'lastTimestamp': now.isoformat() + 'Z', # '2019-01-28T18:25:03.000000Z' - seen in `kubectl get events`
'eventTime': now.isoformat() + 'Z', # '2019-01-28T18:25:03.000000Z'
}
try:
api = auth.get_pykube_api()
obj = pykube.Event(api, body)
loop = asyncio.get_running_loop()
await loop.run_in_executor(config.WorkersConfig.get_syn_executor(), obj.create)
except (requests.exceptions.HTTPError, pykube.exceptions.HTTPError) as e:
# Events are helpful but auxiliary, they should not fail the handling cycle.
# Yet we want to notice that something went wrong (in logs).
logger.warning("Failed to post an event. Ignoring and continuing. "
f"Error: {e!r}. "
f"Event: type={type!r}, reason={reason!r}, message={message!r}.")
| [
11748,
30351,
952,
198,
11748,
4818,
8079,
198,
11748,
18931,
198,
198,
11748,
12972,
74,
3266,
198,
11748,
7007,
198,
198,
6738,
479,
404,
69,
1330,
4566,
198,
6738,
479,
404,
69,
13,
565,
2334,
1330,
6284,
198,
6738,
479,
404,
69,
13,
7249,
82,
1330,
28398,
444,
198,
198,
6404,
1362,
796,
18931,
13,
1136,
11187,
1362,
7,
834,
3672,
834,
8,
198,
198,
22921,
62,
44,
1546,
4090,
8264,
62,
43,
49494,
796,
28119,
198,
34,
3843,
62,
44,
1546,
4090,
8264,
62,
1268,
47084,
796,
705,
986,
6,
628,
198,
292,
13361,
825,
1281,
62,
15596,
7,
25666,
26181,
28,
14202,
11,
1006,
28,
14202,
11,
2099,
11,
1738,
11,
3275,
28,
7061,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
18232,
281,
1785,
329,
262,
2134,
13,
628,
220,
220,
220,
770,
318,
810,
484,
460,
635,
307,
22425,
11,
13262,
515,
11,
32824,
11,
198,
220,
220,
220,
290,
810,
262,
2494,
12,
49196,
815,
307,
9456,
13,
632,
460,
357,
392,
815,
8,
198,
220,
220,
220,
307,
1760,
416,
262,
5456,
5888,
11,
355,
340,
318,
1760,
287,
262,
1514,
5456,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1303,
9515,
4941,
532,
2092,
284,
262,
4870,
4941,
11,
475,
1180,
13,
198,
220,
220,
220,
611,
26181,
318,
407,
6045,
290,
1006,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
5994,
12331,
7203,
10049,
530,
286,
26181,
28,
290,
1006,
28,
318,
3142,
329,
257,
4481,
1785,
13,
11853,
1111,
19570,
198,
220,
220,
220,
611,
26181,
318,
6045,
290,
1006,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
5994,
12331,
7203,
3198,
286,
26181,
28,
290,
1006,
28,
318,
2672,
329,
257,
4481,
1785,
13,
11853,
4844,
19570,
198,
220,
220,
220,
611,
1006,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1006,
796,
28398,
444,
13,
11249,
62,
15252,
62,
35790,
7,
26801,
8,
628,
220,
220,
220,
783,
796,
4818,
8079,
13,
19608,
8079,
13,
315,
66,
2197,
3419,
628,
220,
220,
220,
1303,
4091,
1303,
23237,
13,
1114,
13946,
12,
1416,
19458,
5563,
11,
779,
262,
1459,
25745,
422,
262,
1459,
4732,
13,
198,
220,
220,
220,
1303,
632,
714,
307,
366,
12286,
1600,
475,
287,
617,
3341,
11,
356,
389,
3614,
284,
530,
2176,
25745,
691,
13,
198,
220,
220,
220,
25745,
796,
1006,
13,
1136,
10786,
14933,
10223,
11537,
393,
6284,
13,
1136,
62,
9078,
74,
3266,
62,
37581,
22446,
14933,
10223,
198,
220,
220,
220,
611,
407,
1006,
13,
1136,
10786,
14933,
10223,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1006,
796,
8633,
7,
5420,
11,
25745,
28,
14933,
10223,
8,
628,
220,
220,
220,
1303,
31572,
257,
2219,
1339,
286,
1785,
10754,
8563,
475,
1790,
3101,
262,
3275,
13,
198,
220,
220,
220,
611,
18896,
7,
20500,
8,
1875,
25882,
62,
44,
1546,
4090,
8264,
62,
43,
49494,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1167,
844,
796,
327,
3843,
62,
44,
1546,
4090,
8264,
62,
1268,
47084,
198,
220,
220,
220,
220,
220,
220,
220,
21231,
796,
3275,
58,
25,
22921,
62,
44,
1546,
4090,
8264,
62,
43,
49494,
3373,
362,
532,
357,
11925,
7,
10745,
844,
8,
3373,
362,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
35488,
796,
3275,
58,
12,
22921,
62,
44,
1546,
4090,
8264,
62,
43,
49494,
3373,
362,
1343,
357,
11925,
7,
10745,
844,
8,
532,
18896,
7,
10745,
844,
8,
3373,
362,
2599,
60,
198,
220,
220,
220,
220,
220,
220,
220,
3275,
796,
277,
6,
90,
40290,
18477,
10745,
844,
18477,
37333,
844,
92,
6,
628,
220,
220,
220,
1767,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
705,
38993,
10354,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
14933,
10223,
10354,
25745,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
8612,
378,
5376,
10354,
705,
74,
404,
69,
12,
15596,
12,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
8964,
628,
220,
220,
220,
220,
220,
220,
220,
705,
2673,
10354,
705,
12502,
30,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
4906,
10354,
2099,
11,
198,
220,
220,
220,
220,
220,
220,
220,
705,
41181,
10354,
1738,
11,
198,
220,
220,
220,
220,
220,
220,
220,
705,
20500,
10354,
3275,
11,
628,
220,
220,
220,
220,
220,
220,
220,
705,
49914,
21950,
10354,
705,
74,
404,
69,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
49914,
33384,
10354,
705,
7959,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
10459,
6,
1058,
1391,
6,
42895,
10354,
705,
74,
404,
69,
6,
5512,
220,
1303,
973,
287,
262,
366,
4863,
1,
5721,
287,
4600,
74,
549,
478,
75,
6901,
44646,
628,
220,
220,
220,
220,
220,
220,
220,
705,
44697,
10267,
10354,
1006,
11,
628,
220,
220,
220,
220,
220,
220,
220,
705,
11085,
14967,
27823,
10354,
783,
13,
26786,
18982,
3419,
1343,
705,
57,
3256,
220,
1303,
705,
23344,
12,
486,
12,
2078,
51,
1507,
25,
1495,
25,
3070,
13,
10535,
57,
6,
1377,
1775,
287,
4600,
74,
549,
478,
75,
6901,
2644,
63,
198,
220,
220,
220,
220,
220,
220,
220,
705,
12957,
14967,
27823,
10354,
783,
13,
26786,
18982,
3419,
1343,
705,
57,
3256,
220,
1303,
705,
23344,
12,
486,
12,
2078,
51,
1507,
25,
1495,
25,
3070,
13,
10535,
57,
6,
532,
1775,
287,
4600,
74,
549,
478,
75,
651,
2995,
63,
198,
220,
220,
220,
220,
220,
220,
220,
705,
15596,
7575,
10354,
783,
13,
26786,
18982,
3419,
1343,
705,
57,
3256,
220,
1303,
705,
23344,
12,
486,
12,
2078,
51,
1507,
25,
1495,
25,
3070,
13,
10535,
57,
6,
198,
220,
220,
220,
1782,
628,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
40391,
796,
6284,
13,
1136,
62,
9078,
74,
3266,
62,
15042,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
26181,
796,
12972,
74,
3266,
13,
9237,
7,
15042,
11,
1767,
8,
628,
220,
220,
220,
220,
220,
220,
220,
9052,
796,
30351,
952,
13,
1136,
62,
20270,
62,
26268,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
25507,
9052,
13,
5143,
62,
259,
62,
18558,
38409,
7,
11250,
13,
12468,
364,
16934,
13,
1136,
62,
28869,
62,
18558,
38409,
22784,
26181,
13,
17953,
8,
628,
220,
220,
220,
2845,
357,
8897,
3558,
13,
1069,
11755,
13,
40717,
12331,
11,
12972,
74,
3266,
13,
1069,
11755,
13,
40717,
12331,
8,
355,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
18715,
389,
7613,
475,
37419,
11,
484,
815,
407,
2038,
262,
9041,
6772,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
6430,
356,
765,
284,
4003,
326,
1223,
1816,
2642,
357,
259,
17259,
737,
198,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
43917,
7203,
37,
6255,
284,
1281,
281,
1785,
13,
16583,
3255,
290,
8282,
13,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
1,
12331,
25,
1391,
68,
0,
81,
27422,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
1,
9237,
25,
2099,
34758,
4906,
0,
81,
5512,
1738,
34758,
41181,
0,
81,
5512,
3275,
34758,
20500,
0,
81,
92,
19570,
198
] | 2.522472 | 1,246 |
# coding: utf-8
from __future__ import division, print_function, absolute_import
import pkg_resources
__version__ = pkg_resources.get_distribution('pypcl').version
from pypcl.common import *
| [
2,
19617,
25,
3384,
69,
12,
23,
198,
198,
6738,
11593,
37443,
834,
1330,
7297,
11,
3601,
62,
8818,
11,
4112,
62,
11748,
198,
198,
11748,
279,
10025,
62,
37540,
198,
198,
834,
9641,
834,
796,
279,
10025,
62,
37540,
13,
1136,
62,
17080,
3890,
10786,
79,
4464,
565,
27691,
9641,
198,
198,
6738,
279,
4464,
565,
13,
11321,
1330,
1635,
198
] | 3.145161 | 62 |
from . import main
from flask import render_template,abort
from flask_login import login_required
from ..models import User,Blog
from app.request import get_quote
@main.route('/')
@main.route('/user/<jina>',methods=['GET','POST'])
| [
6738,
764,
1330,
1388,
198,
6738,
42903,
1330,
8543,
62,
28243,
11,
397,
419,
198,
6738,
42903,
62,
38235,
1330,
17594,
62,
35827,
198,
6738,
11485,
27530,
1330,
11787,
11,
42383,
198,
6738,
598,
13,
25927,
1330,
651,
62,
22708,
628,
628,
198,
31,
12417,
13,
38629,
10786,
14,
11537,
628,
198,
198,
31,
12417,
13,
38629,
10786,
14,
7220,
14,
27,
73,
1437,
29,
3256,
24396,
82,
28,
17816,
18851,
41707,
32782,
6,
12962,
628
] | 3.144737 | 76 |
# lambda 는 1줄 함수.
# lambda argument: manipulate(argument)
# ex
add = lambda x, y: x + y
print(add(2,4))
# sort
a = [(1,2), (4,1), (9,10), (13,-3)]
a.sort(key = lambda x:x[1])
print(a)
# 병렬로 sort list
list1 = [1,2,3,4,5]
list2 = [9,8,5,3,1]
data = list(zip(list1, list2))
print(data)
data.sort()
list1, list2 = map(lambda t: list(t), zip(*data))
| [
198,
2,
37456,
31619,
232,
242,
352,
168,
97,
226,
220,
47991,
101,
168,
230,
246,
13,
198,
2,
37456,
4578,
25,
18510,
7,
49140,
8,
198,
198,
2,
409,
198,
2860,
796,
37456,
2124,
11,
331,
25,
2124,
1343,
331,
198,
4798,
7,
2860,
7,
17,
11,
19,
4008,
198,
198,
2,
3297,
198,
64,
796,
47527,
16,
11,
17,
828,
357,
19,
11,
16,
828,
357,
24,
11,
940,
828,
357,
1485,
12095,
18,
15437,
198,
64,
13,
30619,
7,
2539,
796,
37456,
2124,
25,
87,
58,
16,
12962,
198,
4798,
7,
64,
8,
198,
198,
2,
31619,
111,
239,
167,
254,
105,
167,
94,
250,
3297,
1351,
198,
4868,
16,
796,
685,
16,
11,
17,
11,
18,
11,
19,
11,
20,
60,
198,
4868,
17,
796,
685,
24,
11,
23,
11,
20,
11,
18,
11,
16,
60,
198,
7890,
796,
1351,
7,
13344,
7,
4868,
16,
11,
1351,
17,
4008,
198,
4798,
7,
7890,
8,
198,
7890,
13,
30619,
3419,
198,
4868,
16,
11,
1351,
17,
796,
3975,
7,
50033,
256,
25,
1351,
7,
83,
828,
19974,
46491,
7890,
4008,
198
] | 1.896739 | 184 |
import torch
import torch.nn as nn
import torch.nn.functional as F
class TripletLoss(object):
"""Modified from Tong Xiao's open-reid (https://github.com/Cysu/open-reid).
Related Triplet Loss theory can be found in paper 'In Defense of the Triplet
Loss for Person Re-Identification'."""
| [
11748,
28034,
198,
11748,
28034,
13,
20471,
355,
299,
77,
198,
11748,
28034,
13,
20471,
13,
45124,
355,
376,
628,
628,
198,
198,
4871,
19817,
83,
43,
793,
7,
15252,
2599,
198,
220,
220,
220,
37227,
5841,
1431,
422,
26565,
28249,
338,
1280,
12,
260,
312,
357,
5450,
1378,
12567,
13,
785,
14,
34,
893,
84,
14,
9654,
12,
260,
312,
737,
198,
220,
220,
220,
19809,
19817,
83,
22014,
4583,
460,
307,
1043,
287,
3348,
705,
818,
5947,
286,
262,
19817,
83,
198,
220,
220,
220,
22014,
329,
7755,
797,
12,
33234,
2649,
30827,
15931,
628,
628
] | 3.122449 | 98 |
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# 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.
#
"""Stub version of the Channel API, queues messages and writes them to a log."""
import hashlib
import logging
import random
import time
from google.appengine.api import apiproxy_stub
from google.appengine.api.channel import channel_service_pb
from google.appengine.runtime import apiproxy_errors
def _GenerateTokenHash(token):
"""Returns a MD5 hash of a token for integrity checking."""
return hashlib.md5(token).hexdigest()
class InvalidTokenError(Error):
"""A stub method was called with a syntactically invalid token."""
pass
class TokenTimedOutError(Error):
"""A stub method was called with a token that has expired or never existed."""
pass
class ChannelServiceStub(apiproxy_stub.APIProxyStub):
"""Python only channel service stub.
This stub does not use a browser channel to push messages to a client.
Instead it queues messages internally.
"""
THREADSAFE = True
CHANNEL_TIMEOUT_SECONDS = 2
XMPP_PUBLIC_IP = '0.1.0.10'
CHANNEL_TOKEN_DEFAULT_DURATION = 120
CHANNEL_TOKEN_IDENTIFIER = 'channel'
def __init__(self, log=logging.debug, service_name='channel',
time_func=time.time, request_data=None):
"""Initializer.
Args:
log: A logger, used for dependency injection.
service_name: Service name expected for all calls.
time_func: function to get the current time in seconds.
request_data: A request_info.RequestInfo instance. If None, a
request_info._LocalRequestInfo instance will be used.
"""
apiproxy_stub.APIProxyStub.__init__(self, service_name,
request_data=request_data)
self._log = log
self._time_func = time_func
self._connected_channel_messages = {}
def _Dynamic_CreateChannel(self, request, response):
"""Implementation of channel.create_channel.
Args:
request: A ChannelServiceRequest.
response: A ChannelServiceResponse
"""
client_id = request.application_key()
if not client_id:
raise apiproxy_errors.ApplicationError(
channel_service_pb.ChannelServiceError.INVALID_CHANNEL_KEY)
if request.has_duration_minutes():
duration = request.duration_minutes()
else:
duration = ChannelServiceStub.CHANNEL_TOKEN_DEFAULT_DURATION
expiration_sec = long(self._time_func() + duration * 60) + 1
raw_token = '-'.join([ChannelServiceStub.CHANNEL_TOKEN_IDENTIFIER,
str(random.randint(0, 2 ** 32)),
str(expiration_sec),
client_id])
token = '-'.join([_GenerateTokenHash(raw_token), raw_token])
self._log('Creating channel token %s with client id %s and duration %s',
token, request.application_key(), duration)
response.set_token(token)
@apiproxy_stub.Synchronized
def _Dynamic_SendChannelMessage(self, request, response):
"""Implementation of channel.send_message.
Queues a message to be retrieved by the client when it polls.
Args:
request: A SendMessageRequest.
response: A VoidProto.
"""
client_id = self.client_id_from_token(request.application_key())
if client_id is None:
client_id = request.application_key()
if not request.message():
raise apiproxy_errors.ApplicationError(
channel_service_pb.ChannelServiceError.BAD_MESSAGE)
if client_id in self._connected_channel_messages:
self._log('Sending a message (%s) to channel with key (%s)',
request.message(), client_id)
self._connected_channel_messages[client_id].append(request.message())
else:
self._log('SKIPPING message (%s) to channel with key (%s): '
'no clients connected',
request.message(), client_id)
def client_id_from_token(self, token):
"""Returns the client id from a given token.
Args:
token: A string representing an instance of a client connection to a
client id, returned by CreateChannel.
Returns:
A string representing the client id used to create this token,
or None if this token is incorrectly formed and doesn't map to a
client id.
"""
try:
return self.validate_token_and_extract_client_id(token)
except (InvalidTokenError, TokenTimedOutError):
return None
def validate_token_and_extract_client_id(self, token):
"""Ensures token is well-formed and hasn't expired, and extracts client_id.
Args:
token: a token returned by CreateChannel.
Returns:
A client_id, which is the value passed to CreateChannel.
Raises:
InvalidTokenError: The token is syntactically invalid.
TokenTimedOutError: The token expired or does not exist.
"""
pieces = token.split('-', 1)
if len(pieces) != 2 or _GenerateTokenHash(pieces[1]) != pieces[0]:
raise InvalidTokenError()
raw_token = pieces[1]
pieces = raw_token.split('-', 3)
if len(pieces) != 4:
raise InvalidTokenError()
constant_id, unused_random_id, expiration_sec, client_id = pieces
if (constant_id != ChannelServiceStub.CHANNEL_TOKEN_IDENTIFIER
or not expiration_sec.isdigit()):
raise InvalidTokenError()
if long(expiration_sec) <= self._time_func():
raise TokenTimedOutError()
return client_id
@apiproxy_stub.Synchronized
def get_channel_messages(self, token):
"""Returns the pending messages for a given channel.
Args:
token: A string representing the channel. Note that this is the token
returned by CreateChannel, not the client id.
Returns:
List of messages, or None if the channel doesn't exist. The messages are
strings.
"""
self._log('Received request for messages for channel: ' + token)
client_id = self.client_id_from_token(token)
if client_id in self._connected_channel_messages:
return self._connected_channel_messages[client_id]
return None
@apiproxy_stub.Synchronized
def has_channel_messages(self, token):
"""Checks to see if the given channel has any pending messages.
Args:
token: A string representing the channel. Note that this is the token
returned by CreateChannel, not the client id.
Returns:
True if the channel exists and has pending messages.
"""
client_id = self.client_id_from_token(token)
has_messages = (client_id in self._connected_channel_messages and
bool(self._connected_channel_messages[client_id]))
self._log('Checking for messages on channel (%s) (%s)',
token, has_messages)
return has_messages
@apiproxy_stub.Synchronized
def pop_first_message(self, token):
"""Returns and clears the first message from the message queue.
Args:
token: A string representing the channel. Note that this is the token
returned by CreateChannel, not the client id.
Returns:
The first message in the queue (a string), or None if no messages.
"""
if self.has_channel_messages(token):
client_id = self.client_id_from_token(token)
self._log('Popping first message of queue for channel (%s)', token)
return self._connected_channel_messages[client_id].pop(0)
return None
@apiproxy_stub.Synchronized
def clear_channel_messages(self, token):
"""Clears all messages from the channel.
Args:
token: A string representing the channel. Note that this is the token
returned by CreateChannel, not the client id.
"""
client_id = self.client_id_from_token(token)
if client_id:
self._log('Clearing messages on channel (' + client_id + ')')
if client_id in self._connected_channel_messages:
self._connected_channel_messages[client_id] = []
else:
self._log('Ignoring clear messages for nonexistent token (' +
token + ')')
def add_connect_event(self, client_id):
"""Tell the application that the client has connected."""
self.request_data.get_dispatcher().add_async_request(
'POST', '/_ah/channel/connected/',
[('Content-Type', 'application/x-www-form-urlencoded')],
'from=%s' % client_id,
ChannelServiceStub.XMPP_PUBLIC_IP)
@apiproxy_stub.Synchronized
def disconnect_channel_event(self, client_id):
"""Removes the channel from the list of connected channels."""
self._log('Removing channel %s', client_id)
if client_id in self._connected_channel_messages:
del self._connected_channel_messages[client_id]
self.request_data.get_dispatcher().add_async_request(
'POST', '/_ah/channel/disconnected/',
[('Content-Type', 'application/x-www-form-urlencoded')],
'from=%s' % client_id,
ChannelServiceStub.XMPP_PUBLIC_IP)
def add_disconnect_event(self, client_id):
"""Add an event to notify the app if a client has disconnected.
Args:
client_id: A client ID used for a particular channel.
"""
timeout = self._time_func() + ChannelServiceStub.CHANNEL_TIMEOUT_SECONDS
self.request_data.get_dispatcher().add_event(
DefineDisconnectCallback(client_id), timeout, 'channel-disconnect',
client_id)
@apiproxy_stub.Synchronized
def connect_channel(self, token):
"""Marks the channel identified by the token (token) as connected.
If the channel has not yet been connected, this triggers a connection event
to let the application know that the channel has been connected to.
If the channel has already been connected, this refreshes the channel's
timeout so that it will not disconnect. This should be done at regular
intervals to avoid automatic disconnection.
Args:
token: A string representing the channel. Note that this is the token
returned by CreateChannel, not the client id.
Raises:
InvalidTokenError: The token is syntactically invalid.
TokenTimedOutError: The token expired or does not exist.
"""
client_id = self.validate_token_and_extract_client_id(token)
if client_id in self._connected_channel_messages:
timeout = self._time_func() + ChannelServiceStub.CHANNEL_TIMEOUT_SECONDS
self.request_data.get_dispatcher().update_event(
timeout, 'channel-disconnect', client_id)
return
self._connected_channel_messages[client_id] = []
self.add_connect_event(client_id)
self.add_disconnect_event(client_id)
@apiproxy_stub.Synchronized
def connect_and_pop_first_message(self, token):
"""Atomically performs a connect_channel and a pop_first_message.
This is designed to be called after the channel has already been connected,
so that it refreshes the channel's timeout, and retrieves a message, in a
single atomic operation.
Args:
token: A string representing the channel. Note that this is the token
returned by CreateChannel, not the client id.
Returns:
The first message in the queue (a string), or None if no messages.
Raises:
InvalidTokenError: The token is syntactically invalid.
TokenTimedOutError: The token expired or does not exist.
"""
self.connect_channel(token)
return self.pop_first_message(token)
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
198,
2,
15069,
4343,
3012,
3457,
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,
2,
628,
628,
198,
37811,
1273,
549,
2196,
286,
262,
11102,
7824,
11,
43359,
6218,
290,
6797,
606,
284,
257,
2604,
526,
15931,
628,
628,
628,
628,
198,
11748,
12234,
8019,
198,
11748,
18931,
198,
11748,
4738,
198,
11748,
640,
198,
198,
6738,
23645,
13,
1324,
18392,
13,
15042,
1330,
2471,
541,
42059,
62,
301,
549,
198,
6738,
23645,
13,
1324,
18392,
13,
15042,
13,
17620,
1330,
6518,
62,
15271,
62,
40842,
198,
6738,
23645,
13,
1324,
18392,
13,
43282,
1330,
2471,
541,
42059,
62,
48277,
628,
198,
4299,
4808,
8645,
378,
30642,
26257,
7,
30001,
2599,
198,
220,
37227,
35561,
257,
10670,
20,
12234,
286,
257,
11241,
329,
11540,
10627,
526,
15931,
198,
220,
1441,
12234,
8019,
13,
9132,
20,
7,
30001,
737,
33095,
12894,
395,
3419,
628,
198,
198,
4871,
17665,
30642,
12331,
7,
12331,
2599,
198,
220,
37227,
32,
17071,
2446,
373,
1444,
351,
257,
7419,
529,
1146,
12515,
11241,
526,
15931,
198,
220,
1208,
628,
198,
4871,
29130,
14967,
276,
7975,
12331,
7,
12331,
2599,
198,
220,
37227,
32,
17071,
2446,
373,
1444,
351,
257,
11241,
326,
468,
21350,
393,
1239,
11196,
526,
15931,
198,
220,
1208,
628,
198,
4871,
11102,
16177,
1273,
549,
7,
499,
541,
42059,
62,
301,
549,
13,
17614,
44148,
1273,
549,
2599,
198,
220,
37227,
37906,
691,
6518,
2139,
17071,
13,
628,
220,
770,
17071,
857,
407,
779,
257,
6444,
6518,
284,
4574,
6218,
284,
257,
5456,
13,
198,
220,
5455,
340,
43359,
6218,
20947,
13,
198,
220,
37227,
628,
220,
2320,
15675,
4090,
15112,
796,
6407,
628,
628,
198,
220,
5870,
22846,
3698,
62,
34694,
12425,
62,
23683,
1340,
5258,
796,
362,
628,
628,
198,
220,
1395,
7378,
47,
62,
5105,
32936,
62,
4061,
796,
705,
15,
13,
16,
13,
15,
13,
940,
6,
628,
198,
220,
5870,
22846,
3698,
62,
10468,
43959,
62,
7206,
38865,
62,
35,
4261,
6234,
796,
7982,
628,
198,
220,
5870,
22846,
3698,
62,
10468,
43959,
62,
25256,
5064,
38311,
796,
705,
17620,
6,
628,
220,
825,
11593,
15003,
834,
7,
944,
11,
2604,
28,
6404,
2667,
13,
24442,
11,
2139,
62,
3672,
11639,
17620,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
62,
20786,
28,
2435,
13,
2435,
11,
2581,
62,
7890,
28,
14202,
2599,
198,
220,
220,
220,
37227,
24243,
7509,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
2604,
25,
317,
49706,
11,
973,
329,
20203,
16954,
13,
198,
220,
220,
220,
220,
220,
2139,
62,
3672,
25,
4809,
1438,
2938,
329,
477,
3848,
13,
198,
220,
220,
220,
220,
220,
640,
62,
20786,
25,
2163,
284,
651,
262,
1459,
640,
287,
4201,
13,
198,
220,
220,
220,
220,
220,
2581,
62,
7890,
25,
317,
2581,
62,
10951,
13,
18453,
12360,
4554,
13,
1002,
6045,
11,
257,
198,
220,
220,
220,
220,
220,
220,
220,
2581,
62,
10951,
13557,
14565,
18453,
12360,
4554,
481,
307,
973,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2471,
541,
42059,
62,
301,
549,
13,
17614,
44148,
1273,
549,
13,
834,
15003,
834,
7,
944,
11,
2139,
62,
3672,
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,
2581,
62,
7890,
28,
25927,
62,
7890,
8,
198,
220,
220,
220,
2116,
13557,
6404,
796,
2604,
198,
220,
220,
220,
2116,
13557,
2435,
62,
20786,
796,
640,
62,
20786,
628,
628,
220,
220,
220,
2116,
13557,
15236,
62,
17620,
62,
37348,
1095,
796,
23884,
628,
198,
220,
825,
4808,
44090,
62,
16447,
29239,
7,
944,
11,
2581,
11,
2882,
2599,
198,
220,
220,
220,
37227,
3546,
32851,
286,
6518,
13,
17953,
62,
17620,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
2581,
25,
317,
11102,
16177,
18453,
13,
198,
220,
220,
220,
220,
220,
2882,
25,
317,
11102,
16177,
31077,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
5456,
62,
312,
796,
2581,
13,
31438,
62,
2539,
3419,
198,
220,
220,
220,
611,
407,
5456,
62,
312,
25,
198,
220,
220,
220,
220,
220,
5298,
2471,
541,
42059,
62,
48277,
13,
23416,
12331,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6518,
62,
15271,
62,
40842,
13,
29239,
16177,
12331,
13,
1268,
23428,
2389,
62,
3398,
22846,
3698,
62,
20373,
8,
628,
220,
220,
220,
611,
2581,
13,
10134,
62,
32257,
62,
1084,
1769,
33529,
198,
220,
220,
220,
220,
220,
9478,
796,
2581,
13,
32257,
62,
1084,
1769,
3419,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
9478,
796,
11102,
16177,
1273,
549,
13,
3398,
22846,
3698,
62,
10468,
43959,
62,
7206,
38865,
62,
35,
4261,
6234,
628,
198,
220,
220,
220,
28385,
62,
2363,
796,
890,
7,
944,
13557,
2435,
62,
20786,
3419,
1343,
9478,
1635,
3126,
8,
1343,
352,
628,
220,
220,
220,
8246,
62,
30001,
796,
705,
12,
4458,
22179,
26933,
29239,
16177,
1273,
549,
13,
3398,
22846,
3698,
62,
10468,
43959,
62,
25256,
5064,
38311,
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,
965,
7,
25120,
13,
25192,
600,
7,
15,
11,
362,
12429,
3933,
36911,
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,
965,
7,
1069,
10514,
62,
2363,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5456,
62,
312,
12962,
628,
628,
220,
220,
220,
11241,
796,
705,
12,
4458,
22179,
26933,
62,
8645,
378,
30642,
26257,
7,
1831,
62,
30001,
828,
8246,
62,
30001,
12962,
628,
220,
220,
220,
2116,
13557,
6404,
10786,
32071,
6518,
11241,
4064,
82,
351,
5456,
4686,
4064,
82,
290,
9478,
4064,
82,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11241,
11,
2581,
13,
31438,
62,
2539,
22784,
9478,
8,
628,
220,
220,
220,
2882,
13,
2617,
62,
30001,
7,
30001,
8,
628,
198,
220,
2488,
499,
541,
42059,
62,
301,
549,
13,
50,
24871,
1143,
198,
220,
825,
4808,
44090,
62,
25206,
29239,
12837,
7,
944,
11,
2581,
11,
2882,
2599,
198,
220,
220,
220,
37227,
3546,
32851,
286,
6518,
13,
21280,
62,
20500,
13,
628,
220,
220,
220,
4670,
947,
257,
3275,
284,
307,
29517,
416,
262,
5456,
618,
340,
9231,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
2581,
25,
317,
16290,
12837,
18453,
13,
198,
220,
220,
220,
220,
220,
2882,
25,
317,
18331,
2964,
1462,
13,
198,
220,
220,
220,
37227,
628,
628,
220,
220,
220,
5456,
62,
312,
796,
2116,
13,
16366,
62,
312,
62,
6738,
62,
30001,
7,
25927,
13,
31438,
62,
2539,
28955,
198,
220,
220,
220,
611,
5456,
62,
312,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
5456,
62,
312,
796,
2581,
13,
31438,
62,
2539,
3419,
628,
220,
220,
220,
611,
407,
2581,
13,
20500,
33529,
198,
220,
220,
220,
220,
220,
5298,
2471,
541,
42059,
62,
48277,
13,
23416,
12331,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6518,
62,
15271,
62,
40842,
13,
29239,
16177,
12331,
13,
33,
2885,
62,
44,
1546,
4090,
8264,
8,
628,
220,
220,
220,
611,
5456,
62,
312,
287,
2116,
13557,
15236,
62,
17620,
62,
37348,
1095,
25,
198,
220,
220,
220,
220,
220,
2116,
13557,
6404,
10786,
50,
1571,
257,
3275,
37633,
82,
8,
284,
6518,
351,
1994,
37633,
82,
8,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2581,
13,
20500,
22784,
5456,
62,
312,
8,
198,
220,
220,
220,
220,
220,
2116,
13557,
15236,
62,
17620,
62,
37348,
1095,
58,
16366,
62,
312,
4083,
33295,
7,
25927,
13,
20500,
28955,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
2116,
13557,
6404,
10786,
18831,
31444,
2751,
3275,
37633,
82,
8,
284,
6518,
351,
1994,
37633,
82,
2599,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3919,
7534,
5884,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2581,
13,
20500,
22784,
5456,
62,
312,
8,
628,
220,
825,
5456,
62,
312,
62,
6738,
62,
30001,
7,
944,
11,
11241,
2599,
198,
220,
220,
220,
37227,
35561,
262,
5456,
4686,
422,
257,
1813,
11241,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
11241,
25,
317,
4731,
10200,
281,
4554,
286,
257,
5456,
4637,
284,
257,
198,
220,
220,
220,
220,
220,
220,
5456,
4686,
11,
4504,
416,
13610,
29239,
13,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
317,
4731,
10200,
262,
5456,
4686,
973,
284,
2251,
428,
11241,
11,
198,
220,
220,
220,
220,
220,
220,
393,
6045,
611,
428,
11241,
318,
23175,
7042,
290,
1595,
470,
3975,
284,
257,
198,
220,
220,
220,
220,
220,
220,
5456,
4686,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
1441,
2116,
13,
12102,
378,
62,
30001,
62,
392,
62,
2302,
974,
62,
16366,
62,
312,
7,
30001,
8,
198,
220,
220,
220,
2845,
357,
44651,
30642,
12331,
11,
29130,
14967,
276,
7975,
12331,
2599,
198,
220,
220,
220,
220,
220,
1441,
6045,
628,
220,
825,
26571,
62,
30001,
62,
392,
62,
2302,
974,
62,
16366,
62,
312,
7,
944,
11,
11241,
2599,
198,
220,
220,
220,
37227,
4834,
82,
942,
11241,
318,
880,
12,
12214,
290,
5818,
470,
21350,
11,
290,
32139,
5456,
62,
312,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
11241,
25,
257,
11241,
4504,
416,
13610,
29239,
13,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
317,
5456,
62,
312,
11,
543,
318,
262,
1988,
3804,
284,
13610,
29239,
13,
628,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
17665,
30642,
12331,
25,
383,
11241,
318,
7419,
529,
1146,
12515,
13,
198,
220,
220,
220,
220,
220,
29130,
14967,
276,
7975,
12331,
25,
383,
11241,
21350,
393,
857,
407,
2152,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
5207,
796,
11241,
13,
35312,
10786,
12,
3256,
352,
8,
198,
220,
220,
220,
611,
18896,
7,
34154,
8,
14512,
362,
393,
4808,
8645,
378,
30642,
26257,
7,
34154,
58,
16,
12962,
14512,
5207,
58,
15,
5974,
198,
220,
220,
220,
220,
220,
5298,
17665,
30642,
12331,
3419,
198,
220,
220,
220,
8246,
62,
30001,
796,
5207,
58,
16,
60,
628,
198,
220,
220,
220,
5207,
796,
8246,
62,
30001,
13,
35312,
10786,
12,
3256,
513,
8,
198,
220,
220,
220,
611,
18896,
7,
34154,
8,
14512,
604,
25,
198,
220,
220,
220,
220,
220,
5298,
17665,
30642,
12331,
3419,
628,
220,
220,
220,
6937,
62,
312,
11,
21958,
62,
25120,
62,
312,
11,
28385,
62,
2363,
11,
5456,
62,
312,
796,
5207,
198,
220,
220,
220,
611,
357,
9979,
415,
62,
312,
14512,
11102,
16177,
1273,
549,
13,
3398,
22846,
3698,
62,
10468,
43959,
62,
25256,
5064,
38311,
198,
220,
220,
220,
220,
220,
220,
220,
393,
407,
28385,
62,
2363,
13,
9409,
328,
270,
3419,
2599,
198,
220,
220,
220,
220,
220,
5298,
17665,
30642,
12331,
3419,
198,
220,
220,
220,
611,
890,
7,
1069,
10514,
62,
2363,
8,
19841,
2116,
13557,
2435,
62,
20786,
33529,
198,
220,
220,
220,
220,
220,
5298,
29130,
14967,
276,
7975,
12331,
3419,
628,
220,
220,
220,
1441,
5456,
62,
312,
628,
220,
2488,
499,
541,
42059,
62,
301,
549,
13,
50,
24871,
1143,
198,
220,
825,
651,
62,
17620,
62,
37348,
1095,
7,
944,
11,
11241,
2599,
198,
220,
220,
220,
37227,
35561,
262,
13310,
6218,
329,
257,
1813,
6518,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
11241,
25,
317,
4731,
10200,
262,
6518,
13,
5740,
326,
428,
318,
262,
11241,
198,
220,
220,
220,
220,
220,
220,
220,
4504,
416,
13610,
29239,
11,
407,
262,
5456,
4686,
13,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
7343,
286,
6218,
11,
393,
6045,
611,
262,
6518,
1595,
470,
2152,
13,
383,
6218,
389,
198,
220,
220,
220,
220,
220,
13042,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2116,
13557,
6404,
10786,
3041,
6471,
2581,
329,
6218,
329,
6518,
25,
705,
1343,
11241,
8,
198,
220,
220,
220,
5456,
62,
312,
796,
2116,
13,
16366,
62,
312,
62,
6738,
62,
30001,
7,
30001,
8,
198,
220,
220,
220,
611,
5456,
62,
312,
287,
2116,
13557,
15236,
62,
17620,
62,
37348,
1095,
25,
198,
220,
220,
220,
220,
220,
1441,
2116,
13557,
15236,
62,
17620,
62,
37348,
1095,
58,
16366,
62,
312,
60,
628,
220,
220,
220,
1441,
6045,
628,
220,
2488,
499,
541,
42059,
62,
301,
549,
13,
50,
24871,
1143,
198,
220,
825,
468,
62,
17620,
62,
37348,
1095,
7,
944,
11,
11241,
2599,
198,
220,
220,
220,
37227,
7376,
4657,
284,
766,
611,
262,
1813,
6518,
468,
597,
13310,
6218,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
11241,
25,
317,
4731,
10200,
262,
6518,
13,
5740,
326,
428,
318,
262,
11241,
198,
220,
220,
220,
220,
220,
220,
220,
4504,
416,
13610,
29239,
11,
407,
262,
5456,
4686,
13,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
6407,
611,
262,
6518,
7160,
290,
468,
13310,
6218,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
5456,
62,
312,
796,
2116,
13,
16366,
62,
312,
62,
6738,
62,
30001,
7,
30001,
8,
198,
220,
220,
220,
468,
62,
37348,
1095,
796,
357,
16366,
62,
312,
287,
2116,
13557,
15236,
62,
17620,
62,
37348,
1095,
290,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20512,
7,
944,
13557,
15236,
62,
17620,
62,
37348,
1095,
58,
16366,
62,
312,
60,
4008,
198,
220,
220,
220,
2116,
13557,
6404,
10786,
9787,
278,
329,
6218,
319,
6518,
37633,
82,
8,
37633,
82,
8,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11241,
11,
468,
62,
37348,
1095,
8,
198,
220,
220,
220,
1441,
468,
62,
37348,
1095,
628,
220,
2488,
499,
541,
42059,
62,
301,
549,
13,
50,
24871,
1143,
198,
220,
825,
1461,
62,
11085,
62,
20500,
7,
944,
11,
11241,
2599,
198,
220,
220,
220,
37227,
35561,
290,
37526,
262,
717,
3275,
422,
262,
3275,
16834,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
11241,
25,
317,
4731,
10200,
262,
6518,
13,
5740,
326,
428,
318,
262,
11241,
198,
220,
220,
220,
220,
220,
220,
220,
4504,
416,
13610,
29239,
11,
407,
262,
5456,
4686,
13,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
383,
717,
3275,
287,
262,
16834,
357,
64,
4731,
828,
393,
6045,
611,
645,
6218,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
2116,
13,
10134,
62,
17620,
62,
37348,
1095,
7,
30001,
2599,
198,
220,
220,
220,
220,
220,
5456,
62,
312,
796,
2116,
13,
16366,
62,
312,
62,
6738,
62,
30001,
7,
30001,
8,
198,
220,
220,
220,
220,
220,
2116,
13557,
6404,
10786,
18833,
2105,
717,
3275,
286,
16834,
329,
6518,
37633,
82,
8,
3256,
11241,
8,
198,
220,
220,
220,
220,
220,
1441,
2116,
13557,
15236,
62,
17620,
62,
37348,
1095,
58,
16366,
62,
312,
4083,
12924,
7,
15,
8,
628,
220,
220,
220,
1441,
6045,
628,
220,
2488,
499,
541,
42059,
62,
301,
549,
13,
50,
24871,
1143,
198,
220,
825,
1598,
62,
17620,
62,
37348,
1095,
7,
944,
11,
11241,
2599,
198,
220,
220,
220,
37227,
34349,
945,
477,
6218,
422,
262,
6518,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
11241,
25,
317,
4731,
10200,
262,
6518,
13,
5740,
326,
428,
318,
262,
11241,
198,
220,
220,
220,
220,
220,
220,
220,
4504,
416,
13610,
29239,
11,
407,
262,
5456,
4686,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
5456,
62,
312,
796,
2116,
13,
16366,
62,
312,
62,
6738,
62,
30001,
7,
30001,
8,
198,
220,
220,
220,
611,
5456,
62,
312,
25,
198,
220,
220,
220,
220,
220,
2116,
13557,
6404,
10786,
34349,
1723,
6218,
319,
6518,
19203,
1343,
5456,
62,
312,
1343,
705,
8,
11537,
198,
220,
220,
220,
220,
220,
611,
5456,
62,
312,
287,
2116,
13557,
15236,
62,
17620,
62,
37348,
1095,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15236,
62,
17620,
62,
37348,
1095,
58,
16366,
62,
312,
60,
796,
17635,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
2116,
13557,
6404,
10786,
32916,
3255,
1598,
6218,
329,
42601,
11241,
19203,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11241,
1343,
705,
8,
11537,
628,
220,
825,
751,
62,
8443,
62,
15596,
7,
944,
11,
5456,
62,
312,
2599,
198,
220,
220,
220,
37227,
24446,
262,
3586,
326,
262,
5456,
468,
5884,
526,
15931,
198,
220,
220,
220,
2116,
13,
25927,
62,
7890,
13,
1136,
62,
6381,
8071,
2044,
22446,
2860,
62,
292,
13361,
62,
25927,
7,
198,
220,
220,
220,
220,
220,
220,
220,
705,
32782,
3256,
31051,
62,
993,
14,
17620,
14,
15236,
14,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
685,
10786,
19746,
12,
6030,
3256,
705,
31438,
14,
87,
12,
2503,
12,
687,
12,
6371,
12685,
9043,
11537,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
705,
6738,
28,
4,
82,
6,
4064,
5456,
62,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
11102,
16177,
1273,
549,
13,
55,
7378,
47,
62,
5105,
32936,
62,
4061,
8,
628,
220,
2488,
499,
541,
42059,
62,
301,
549,
13,
50,
24871,
1143,
198,
220,
825,
22837,
62,
17620,
62,
15596,
7,
944,
11,
5456,
62,
312,
2599,
198,
220,
220,
220,
37227,
8413,
5241,
262,
6518,
422,
262,
1351,
286,
5884,
9619,
526,
15931,
198,
220,
220,
220,
2116,
13557,
6404,
10786,
8413,
5165,
6518,
4064,
82,
3256,
5456,
62,
312,
8,
198,
220,
220,
220,
611,
5456,
62,
312,
287,
2116,
13557,
15236,
62,
17620,
62,
37348,
1095,
25,
198,
220,
220,
220,
220,
220,
1619,
2116,
13557,
15236,
62,
17620,
62,
37348,
1095,
58,
16366,
62,
312,
60,
198,
220,
220,
220,
2116,
13,
25927,
62,
7890,
13,
1136,
62,
6381,
8071,
2044,
22446,
2860,
62,
292,
13361,
62,
25927,
7,
198,
220,
220,
220,
220,
220,
220,
220,
705,
32782,
3256,
31051,
62,
993,
14,
17620,
14,
6381,
15236,
14,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
685,
10786,
19746,
12,
6030,
3256,
705,
31438,
14,
87,
12,
2503,
12,
687,
12,
6371,
12685,
9043,
11537,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
705,
6738,
28,
4,
82,
6,
4064,
5456,
62,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
11102,
16177,
1273,
549,
13,
55,
7378,
47,
62,
5105,
32936,
62,
4061,
8,
628,
220,
825,
751,
62,
6381,
8443,
62,
15596,
7,
944,
11,
5456,
62,
312,
2599,
198,
220,
220,
220,
37227,
4550,
281,
1785,
284,
19361,
262,
598,
611,
257,
5456,
468,
28597,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
5456,
62,
312,
25,
220,
317,
5456,
4522,
973,
329,
257,
1948,
6518,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
26827,
796,
2116,
13557,
2435,
62,
20786,
3419,
1343,
11102,
16177,
1273,
549,
13,
3398,
22846,
3698,
62,
34694,
12425,
62,
23683,
1340,
5258,
628,
628,
220,
220,
220,
2116,
13,
25927,
62,
7890,
13,
1136,
62,
6381,
8071,
2044,
22446,
2860,
62,
15596,
7,
198,
220,
220,
220,
220,
220,
220,
220,
2896,
500,
7279,
8443,
47258,
7,
16366,
62,
312,
828,
26827,
11,
705,
17620,
12,
6381,
8443,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
5456,
62,
312,
8,
628,
220,
2488,
499,
541,
42059,
62,
301,
549,
13,
50,
24871,
1143,
198,
220,
825,
2018,
62,
17620,
7,
944,
11,
11241,
2599,
198,
220,
220,
220,
37227,
44,
5558,
262,
6518,
5174,
416,
262,
11241,
357,
30001,
8,
355,
5884,
13,
628,
220,
220,
220,
1002,
262,
6518,
468,
407,
1865,
587,
5884,
11,
428,
20022,
257,
4637,
1785,
198,
220,
220,
220,
284,
1309,
262,
3586,
760,
326,
262,
6518,
468,
587,
5884,
284,
13,
628,
220,
220,
220,
1002,
262,
6518,
468,
1541,
587,
5884,
11,
428,
17434,
956,
262,
6518,
338,
198,
220,
220,
220,
26827,
523,
326,
340,
481,
407,
22837,
13,
770,
815,
307,
1760,
379,
3218,
198,
220,
220,
220,
20016,
284,
3368,
11353,
22837,
295,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
11241,
25,
317,
4731,
10200,
262,
6518,
13,
5740,
326,
428,
318,
262,
11241,
198,
220,
220,
220,
220,
220,
220,
220,
4504,
416,
13610,
29239,
11,
407,
262,
5456,
4686,
13,
628,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
17665,
30642,
12331,
25,
383,
11241,
318,
7419,
529,
1146,
12515,
13,
198,
220,
220,
220,
220,
220,
29130,
14967,
276,
7975,
12331,
25,
383,
11241,
21350,
393,
857,
407,
2152,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
5456,
62,
312,
796,
2116,
13,
12102,
378,
62,
30001,
62,
392,
62,
2302,
974,
62,
16366,
62,
312,
7,
30001,
8,
628,
628,
220,
220,
220,
611,
5456,
62,
312,
287,
2116,
13557,
15236,
62,
17620,
62,
37348,
1095,
25,
198,
220,
220,
220,
220,
220,
26827,
796,
2116,
13557,
2435,
62,
20786,
3419,
1343,
11102,
16177,
1273,
549,
13,
3398,
22846,
3698,
62,
34694,
12425,
62,
23683,
1340,
5258,
628,
220,
220,
220,
220,
220,
2116,
13,
25927,
62,
7890,
13,
1136,
62,
6381,
8071,
2044,
22446,
19119,
62,
15596,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26827,
11,
705,
17620,
12,
6381,
8443,
3256,
5456,
62,
312,
8,
198,
220,
220,
220,
220,
220,
1441,
628,
628,
220,
220,
220,
2116,
13557,
15236,
62,
17620,
62,
37348,
1095,
58,
16366,
62,
312,
60,
796,
17635,
198,
220,
220,
220,
2116,
13,
2860,
62,
8443,
62,
15596,
7,
16366,
62,
312,
8,
198,
220,
220,
220,
2116,
13,
2860,
62,
6381,
8443,
62,
15596,
7,
16366,
62,
312,
8,
628,
220,
2488,
499,
541,
42059,
62,
301,
549,
13,
50,
24871,
1143,
198,
220,
825,
2018,
62,
392,
62,
12924,
62,
11085,
62,
20500,
7,
944,
11,
11241,
2599,
198,
220,
220,
220,
37227,
2953,
296,
1146,
17706,
257,
2018,
62,
17620,
290,
257,
1461,
62,
11085,
62,
20500,
13,
628,
220,
220,
220,
770,
318,
3562,
284,
307,
1444,
706,
262,
6518,
468,
1541,
587,
5884,
11,
198,
220,
220,
220,
523,
326,
340,
17434,
956,
262,
6518,
338,
26827,
11,
290,
13236,
1158,
257,
3275,
11,
287,
257,
198,
220,
220,
220,
2060,
17226,
4905,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
11241,
25,
317,
4731,
10200,
262,
6518,
13,
5740,
326,
428,
318,
262,
11241,
198,
220,
220,
220,
220,
220,
220,
220,
4504,
416,
13610,
29239,
11,
407,
262,
5456,
4686,
13,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
383,
717,
3275,
287,
262,
16834,
357,
64,
4731,
828,
393,
6045,
611,
645,
6218,
13,
628,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
17665,
30642,
12331,
25,
383,
11241,
318,
7419,
529,
1146,
12515,
13,
198,
220,
220,
220,
220,
220,
29130,
14967,
276,
7975,
12331,
25,
383,
11241,
21350,
393,
857,
407,
2152,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2116,
13,
8443,
62,
17620,
7,
30001,
8,
198,
220,
220,
220,
1441,
2116,
13,
12924,
62,
11085,
62,
20500,
7,
30001,
8,
198
] | 2.819332 | 4,190 |
from eax import gf_double, xorstrings
# these classes simulate the way it could be done in C in online mode, byte by byte
# wrappers for the online stream api to test it
| [
6738,
304,
897,
1330,
308,
69,
62,
23352,
11,
2124,
273,
37336,
201,
198,
201,
198,
2,
777,
6097,
29308,
262,
835,
340,
714,
307,
1760,
287,
327,
287,
2691,
4235,
11,
18022,
416,
18022,
201,
198,
201,
198,
201,
198,
2,
7917,
11799,
329,
262,
2691,
4269,
40391,
284,
1332,
340,
201,
198,
201,
198
] | 3.232143 | 56 |
import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="body-mass-index",
version="1.0.1",
author="Romen Rodriguez-Gil",
author_email="[email protected]",
description="Utilities related to the Body Mass Index (BMI): Calculating it, calculating healthy weight, ranges, " +
"boundaries,...",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/romenrg/body-mass-index",
packages=setuptools.find_packages(),
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
)
| [
11748,
900,
37623,
10141,
198,
198,
4480,
1280,
7203,
15675,
11682,
13,
9132,
1600,
366,
81,
1600,
21004,
2625,
40477,
12,
23,
4943,
355,
277,
71,
25,
198,
220,
220,
220,
890,
62,
11213,
796,
277,
71,
13,
961,
3419,
198,
198,
2617,
37623,
10141,
13,
40406,
7,
198,
220,
220,
220,
1438,
2625,
2618,
12,
22208,
12,
9630,
1600,
198,
220,
220,
220,
2196,
2625,
16,
13,
15,
13,
16,
1600,
198,
220,
220,
220,
1772,
2625,
49,
3674,
19391,
12,
40747,
1600,
198,
220,
220,
220,
1772,
62,
12888,
2625,
32057,
31,
398,
268,
41345,
13,
785,
1600,
198,
220,
220,
220,
6764,
2625,
18274,
2410,
3519,
284,
262,
12290,
5674,
12901,
357,
33,
8895,
2599,
27131,
803,
340,
11,
26019,
5448,
3463,
11,
16069,
11,
366,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
7784,
3166,
11,
9313,
11,
198,
220,
220,
220,
890,
62,
11213,
28,
6511,
62,
11213,
11,
198,
220,
220,
220,
890,
62,
11213,
62,
11299,
62,
4906,
2625,
5239,
14,
4102,
2902,
1600,
198,
220,
220,
220,
19016,
2625,
5450,
1378,
12567,
13,
785,
14,
398,
268,
41345,
14,
2618,
12,
22208,
12,
9630,
1600,
198,
220,
220,
220,
10392,
28,
2617,
37623,
10141,
13,
19796,
62,
43789,
22784,
198,
220,
220,
220,
2291,
62,
26495,
62,
7890,
28,
17821,
11,
198,
220,
220,
220,
1398,
13350,
41888,
198,
220,
220,
220,
220,
220,
220,
220,
366,
15167,
2229,
15417,
7904,
11361,
7904,
513,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
34156,
7904,
7294,
40,
20010,
1079,
7904,
17168,
13789,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
18843,
803,
4482,
7904,
7294,
13362,
1600,
198,
220,
220,
220,
16589,
198,
220,
220,
220,
21015,
62,
47911,
11639,
29,
28,
18,
13,
21,
3256,
198,
8,
198
] | 2.635484 | 310 |
from db.models import Trade, Asset
ass1 = Asset(name="Algo", asset_id="0", network="mainnet")
ass2 = Asset(name="Choice", asset_id="297995609", network="mainnet")
ass1.save()
ass2.save()
trade = Trade(
wallet_address="Replace With Address",
asset1=ass1,
asset2=ass2,
asset_in=ass2,
asset_in_amount=10,
slippage=0.5,
min_sell_price=0.003,
do_redeem=False,
network="mainnet"
)
trade.save() | [
6738,
20613,
13,
27530,
1330,
9601,
11,
31433,
198,
198,
562,
16,
796,
31433,
7,
3672,
2625,
2348,
2188,
1600,
11171,
62,
312,
2625,
15,
1600,
3127,
2625,
12417,
3262,
4943,
198,
562,
17,
796,
31433,
7,
3672,
2625,
46770,
1600,
11171,
62,
312,
2625,
26561,
33438,
31751,
1600,
3127,
2625,
12417,
3262,
4943,
198,
198,
562,
16,
13,
21928,
3419,
198,
562,
17,
13,
21928,
3419,
198,
198,
25351,
796,
9601,
7,
198,
220,
220,
220,
13008,
62,
21975,
2625,
3041,
5372,
2080,
17917,
1600,
198,
220,
220,
220,
11171,
16,
28,
562,
16,
11,
198,
220,
220,
220,
11171,
17,
28,
562,
17,
11,
198,
220,
220,
220,
11171,
62,
259,
28,
562,
17,
11,
198,
220,
220,
220,
11171,
62,
259,
62,
17287,
28,
940,
11,
198,
220,
220,
220,
1017,
3974,
496,
28,
15,
13,
20,
11,
198,
220,
220,
220,
949,
62,
7255,
62,
20888,
28,
15,
13,
11245,
11,
198,
220,
220,
220,
466,
62,
445,
13761,
28,
25101,
11,
198,
220,
220,
220,
3127,
2625,
12417,
3262,
1,
198,
220,
220,
220,
1267,
198,
198,
25351,
13,
21928,
3419
] | 2.317204 | 186 |
"""This example changes the fill, brightness, blink rates,
shows number and text printing, displays a counter
and then shows off the new marquee features."""
from time import sleep
from adafruit_featherwing import alphanum_featherwing
display = alphanum_featherwing.AlphaNumFeatherWing()
#Fill and empty all segments
for count in range(0, 3):
display.fill(True)
sleep(0.5)
display.fill(False)
sleep(0.5)
#Display a number and text
display.print(1234)
sleep(1)
display.print('Text')
#Change brightness
for brightness in range(0, 16):
display.brightness = brightness
sleep(0.1)
#Change blink rate
for blink_rate in range(3, 0, -1):
display.blink_rate = blink_rate
sleep(4)
display.blink_rate = 0
#Show a counter using decimals
count = 975.0
while count < 1025:
count += 1
display.print(count)
sleep(0.1)
#Show the Marquee
display.marquee('This is a really long message!!! ', 0.2)
| [
37811,
1212,
1672,
2458,
262,
6070,
11,
22204,
11,
21019,
3965,
11,
198,
49596,
1271,
290,
2420,
13570,
11,
11298,
257,
3753,
198,
392,
788,
2523,
572,
262,
649,
50089,
3033,
526,
15931,
198,
198,
6738,
640,
1330,
3993,
198,
6738,
512,
1878,
4872,
62,
5036,
1032,
5469,
1330,
435,
19080,
388,
62,
5036,
1032,
5469,
198,
198,
13812,
796,
435,
19080,
388,
62,
5036,
1032,
5469,
13,
38077,
33111,
14304,
1032,
35612,
3419,
198,
198,
2,
33762,
290,
6565,
477,
17894,
198,
1640,
954,
287,
2837,
7,
15,
11,
513,
2599,
198,
220,
220,
220,
3359,
13,
20797,
7,
17821,
8,
198,
220,
220,
220,
3993,
7,
15,
13,
20,
8,
198,
220,
220,
220,
3359,
13,
20797,
7,
25101,
8,
198,
220,
220,
220,
3993,
7,
15,
13,
20,
8,
198,
198,
2,
23114,
257,
1271,
290,
2420,
198,
13812,
13,
4798,
7,
1065,
2682,
8,
198,
42832,
7,
16,
8,
198,
13812,
13,
4798,
10786,
8206,
11537,
198,
198,
2,
19400,
22204,
198,
1640,
22204,
287,
2837,
7,
15,
11,
1467,
2599,
198,
220,
220,
220,
3359,
13,
29199,
1108,
796,
22204,
198,
220,
220,
220,
3993,
7,
15,
13,
16,
8,
198,
198,
2,
19400,
21019,
2494,
198,
1640,
21019,
62,
4873,
287,
2837,
7,
18,
11,
657,
11,
532,
16,
2599,
198,
220,
220,
220,
3359,
13,
2436,
676,
62,
4873,
796,
21019,
62,
4873,
198,
220,
220,
220,
3993,
7,
19,
8,
198,
13812,
13,
2436,
676,
62,
4873,
796,
657,
198,
198,
2,
15307,
257,
3753,
1262,
875,
320,
874,
198,
9127,
796,
860,
2425,
13,
15,
198,
4514,
954,
1279,
838,
1495,
25,
198,
220,
220,
220,
954,
15853,
352,
198,
220,
220,
220,
3359,
13,
4798,
7,
9127,
8,
198,
220,
220,
220,
3993,
7,
15,
13,
16,
8,
198,
198,
2,
15307,
262,
28382,
1453,
198,
13812,
13,
3876,
421,
1453,
10786,
1212,
318,
257,
1107,
890,
3275,
10185,
220,
46083,
657,
13,
17,
8,
198
] | 2.855828 | 326 |
import argparse
import numpy as np
import os
import torch
from torch import nn
from torch.autograd import Variable
from torch.backends import cudnn
from torch.utils import data
from utils.mpnet import MPNet
from utils.plan_class import plan_dataset
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--path', type=str, default='/scratch/rkm350/mpnet/dataset',
help='location of dataset directory')
parser.add_argument('--num_epochs', type=int, default=100, help='number of epochs')
parser.add_argument('--batch_size', type=int, default=32, help='batch size')
parser.add_argument('--learning_rate', type=float, default=0.001, help='Learning rate')
parser.add_argument('--num_files', type=int, default=10000, help='num of files')
parser.add_argument('--num_workers', type=int, default=6, help='number of sub processes for loading data')
parser.add_argument('--lam', type=float, default=0.001, help='lambda value for the CAE network')
parser.add_argument('--cuda', type=str, default='cuda', help='Cuda for processing the network')
args = parser.parse_args()
main(args)
| [
11748,
1822,
29572,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
28686,
198,
198,
11748,
28034,
198,
6738,
28034,
1330,
299,
77,
198,
6738,
28034,
13,
2306,
519,
6335,
1330,
35748,
198,
6738,
28034,
13,
1891,
2412,
1330,
269,
463,
20471,
198,
6738,
28034,
13,
26791,
1330,
1366,
198,
198,
6738,
3384,
4487,
13,
3149,
3262,
1330,
4904,
7934,
198,
6738,
3384,
4487,
13,
11578,
62,
4871,
1330,
1410,
62,
19608,
292,
316,
628,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
30751,
796,
1822,
29572,
13,
28100,
1713,
46677,
3419,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
6978,
3256,
2099,
28,
2536,
11,
4277,
11639,
14,
1416,
36722,
14,
81,
13276,
14877,
14,
3149,
3262,
14,
19608,
292,
316,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
24886,
286,
27039,
8619,
11537,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
22510,
62,
538,
5374,
82,
3256,
2099,
28,
600,
11,
4277,
28,
3064,
11,
1037,
11639,
17618,
286,
36835,
82,
11537,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
43501,
62,
7857,
3256,
2099,
28,
600,
11,
4277,
28,
2624,
11,
1037,
11639,
43501,
2546,
11537,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
40684,
62,
4873,
3256,
2099,
28,
22468,
11,
4277,
28,
15,
13,
8298,
11,
1037,
11639,
41730,
2494,
11537,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
22510,
62,
16624,
3256,
2099,
28,
600,
11,
4277,
28,
49388,
11,
1037,
11639,
22510,
286,
3696,
11537,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
22510,
62,
22896,
3256,
2099,
28,
600,
11,
4277,
28,
21,
11,
1037,
11639,
17618,
286,
850,
7767,
329,
11046,
1366,
11537,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
2543,
3256,
2099,
28,
22468,
11,
4277,
28,
15,
13,
8298,
11,
1037,
11639,
50033,
1988,
329,
262,
7257,
36,
3127,
11537,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
66,
15339,
3256,
2099,
28,
2536,
11,
4277,
11639,
66,
15339,
3256,
1037,
11639,
34,
15339,
329,
7587,
262,
3127,
11537,
198,
220,
220,
220,
26498,
796,
30751,
13,
29572,
62,
22046,
3419,
198,
220,
220,
220,
1388,
7,
22046,
8,
198
] | 2.912935 | 402 |
from django.shortcuts import render, HttpResponse, HttpResponseRedirect
# importing calculators
from .calculatorDilution import DilutionForm
from .calculatorDilution import *
from .calculatorPCR import PCRForm
from .calculatorPCR import *
from .calculatorUnitConvert import ConversionForm
from .calculatorUnitConvert import *
from .calculatorCuttingReaction import CuttingEdgeForm
from .calculatorCuttingReaction import *
from .opentrons import RandomNumGenerator
from .opentrons import *
# from .models import Person
import time
# Create your views here.
# CALCULATORS
# DILUTION CALCULATOR
# GLOBAL VARIABLES
INPUTVOL = None
INPUTCONC = None
INPUTSOLUTE = None
FINALVOL = None
FINALCONC = None
ADDEDSOLUTE = None
ADDEDWATER = None
MOLARMASS = None
# PCR CALCULATOR
# GLOBAL VARIABLES
RESULTtotalVol = None
RESULTwaterVol = None
RESULTPCRBufferVol = None
RESULTPCRBufferInitConc = None
RESULTPCRBufferFinalConc = None
RESULTpolymeraseVol = None
RESULTpolymeraseConc = None
RESULTdNTPVol = None
RESULTdNTPConc = None
RESULTMgCl2Vol = None
RESULTMgCl2Conc = None
RESULTforwardPrimerVol = None
RESULTforwardPrimerConc = None
RESULTbackwardPrimerVol = None
RESULTbackwardPrimerConc = None
RESULTtemplateDNAVol = None
RESULTtemplateDNAConc = None
RESULTDMSOOptionalVol = None
RESULTDMSOOptionalConc = None
ERRORMSG = ""
# UNIT CONVERSION CALCULATOR
# GLOBAL VARIABLES
INPUTVALUE = None
INPUTUNIT = None
OUTPUTVALUE = None
OUTPUTUNIT = None
MOLARMASS = None
ERROR = False
######################################## CUTTING REACTION CALCULATOR #######################################
# GLOBAL VARIABLES
TOTALVOL = None
TEMPLATEDNAVOL = None
TEMPLATEDNAINITCONC = None
TEMPLATEDNAFINALMASS = None
BUFFERVOL = None
BUFFERCONC = None
RESTRICTIONENZYMEVOL = None
RESTRICTIONENZYMECONC = None
WATERVOL = None
ERRORMSG = ""
# totalVol = cuttingform.cleaned_data['TOTALVOL']
# templateDNAVol = cuttingform.cleaned_data['templateDNAVol']
# templateDNAInitConc = cuttingform.cleaned_data['templateDNAInitConc']
# templateDNAFinalMass = cuttingform.cleaned_data['templateDNAFinalMass']
# bufferVol = cuttingform.cleaned_data['bufferVol']
# bufferConc = cuttingform.cleaned_data['bufferConc']
# restrictionEnzymeVol = cuttingform.cleaned_data['restrictionEnzymeVol']
# restrictionEnzymeConc = cuttingform.cleaned_data['restrictionEnzymeConc']
# TODO: Define global variables --> Work on the results page
######################################## AR OPENTRONS CALCULATOR #######################################
# global variable
FLOOR = None
CEILING = None
OPENTRONS_RESULT = None
# ####### TRIAL DEPENDENT DROPDOWN AAA AAAA #########
# from django.views.generic import ListView, CreateView, UpdateView
# from django.urls import reverse_lazy
# class PersonListView(ListView):
# model = Person
# context_object_name = 'people'
# class PersonCreateView(CreateView):
# model = Person
# form_class = PersonForm
# success_url = reverse_lazy('person_changelist')
# class PersonUpdateView(UpdateView):
# model = Person
# form_class = PersonForm
# success_url = reverse_lazy('person_changelist')
| [
6738,
42625,
14208,
13,
19509,
23779,
1330,
8543,
11,
367,
29281,
31077,
11,
367,
29281,
31077,
7738,
1060,
198,
198,
2,
33332,
5204,
2024,
198,
6738,
764,
9948,
3129,
1352,
35,
346,
1009,
1330,
29328,
1009,
8479,
198,
6738,
764,
9948,
3129,
1352,
35,
346,
1009,
1330,
1635,
198,
6738,
764,
9948,
3129,
1352,
5662,
49,
1330,
45154,
8479,
198,
6738,
764,
9948,
3129,
1352,
5662,
49,
1330,
1635,
198,
6738,
764,
9948,
3129,
1352,
26453,
3103,
1851,
1330,
44101,
8479,
198,
6738,
764,
9948,
3129,
1352,
26453,
3103,
1851,
1330,
1635,
198,
6738,
764,
9948,
3129,
1352,
26254,
889,
3041,
2673,
1330,
40152,
37021,
8479,
198,
6738,
764,
9948,
3129,
1352,
26254,
889,
3041,
2673,
1330,
1635,
198,
6738,
764,
404,
298,
12212,
1330,
14534,
33111,
8645,
1352,
198,
6738,
764,
404,
298,
12212,
1330,
1635,
628,
198,
2,
422,
764,
27530,
1330,
7755,
198,
198,
11748,
640,
198,
198,
2,
13610,
534,
5009,
994,
13,
628,
628,
628,
198,
2,
33290,
34,
6239,
1404,
20673,
198,
2,
360,
4146,
35354,
33290,
34,
6239,
25633,
198,
2,
10188,
9864,
1847,
569,
1503,
3539,
9148,
1546,
198,
1268,
30076,
44558,
796,
6045,
198,
1268,
30076,
10943,
34,
796,
6045,
198,
1268,
30076,
50,
3535,
37780,
796,
6045,
198,
37,
17961,
44558,
796,
6045,
198,
37,
17961,
10943,
34,
796,
6045,
198,
29266,
1961,
50,
3535,
37780,
796,
6045,
198,
29266,
1961,
54,
23261,
796,
6045,
198,
44,
3535,
33456,
10705,
796,
6045,
628,
628,
198,
198,
2,
45154,
33290,
34,
6239,
25633,
198,
2,
10188,
9864,
1847,
569,
1503,
3539,
9148,
1546,
198,
19535,
16724,
23350,
16598,
796,
6045,
198,
19535,
6239,
5080,
729,
16598,
796,
6045,
198,
19535,
16724,
5662,
27912,
13712,
16598,
796,
6045,
198,
19535,
16724,
5662,
27912,
13712,
31768,
3103,
66,
796,
6045,
198,
19535,
16724,
5662,
27912,
13712,
19006,
3103,
66,
796,
6045,
198,
19535,
16724,
35428,
647,
589,
16598,
796,
6045,
198,
19535,
16724,
35428,
647,
589,
3103,
66,
796,
6045,
198,
19535,
16724,
67,
45,
7250,
16598,
796,
6045,
198,
19535,
16724,
67,
45,
7250,
3103,
66,
796,
6045,
198,
19535,
6239,
15972,
70,
2601,
17,
16598,
796,
6045,
198,
19535,
6239,
15972,
70,
2601,
17,
3103,
66,
796,
6045,
198,
19535,
16724,
11813,
23828,
263,
16598,
796,
6045,
198,
19535,
16724,
11813,
23828,
263,
3103,
66,
796,
6045,
198,
19535,
16724,
1891,
904,
23828,
263,
16598,
796,
6045,
198,
19535,
16724,
1891,
904,
23828,
263,
3103,
66,
796,
6045,
198,
19535,
16724,
28243,
28886,
16598,
796,
6045,
198,
19535,
16724,
28243,
35504,
2246,
261,
66,
796,
6045,
198,
19535,
16724,
35,
5653,
6684,
1159,
282,
16598,
796,
6045,
198,
19535,
16724,
35,
5653,
6684,
1159,
282,
3103,
66,
796,
6045,
198,
24908,
5653,
38,
796,
13538,
628,
628,
198,
198,
2,
4725,
2043,
7102,
43717,
33290,
34,
6239,
25633,
198,
2,
10188,
9864,
1847,
569,
1503,
3539,
9148,
1546,
198,
1268,
30076,
39488,
796,
6045,
198,
1268,
30076,
4944,
2043,
796,
6045,
198,
2606,
7250,
3843,
39488,
796,
6045,
198,
2606,
7250,
3843,
4944,
2043,
796,
6045,
198,
44,
3535,
33456,
10705,
796,
6045,
198,
24908,
796,
10352,
628,
628,
198,
198,
29113,
7804,
327,
3843,
48996,
4526,
44710,
33290,
34,
6239,
25633,
1303,
29113,
4242,
2235,
198,
2,
10188,
9864,
1847,
569,
1503,
3539,
9148,
1546,
198,
51,
27510,
44558,
796,
6045,
198,
51,
3620,
6489,
11617,
4535,
44558,
796,
6045,
198,
51,
3620,
6489,
11617,
4535,
1268,
2043,
10943,
34,
796,
6045,
198,
51,
3620,
6489,
11617,
4535,
37,
17961,
44,
10705,
796,
6045,
198,
19499,
45746,
44558,
796,
6045,
198,
19499,
45746,
10943,
34,
796,
6045,
198,
19535,
5446,
18379,
2849,
1677,
57,
56,
11682,
44558,
796,
6045,
198,
19535,
5446,
18379,
2849,
1677,
57,
56,
44,
2943,
1340,
34,
796,
6045,
198,
54,
23261,
44558,
796,
6045,
198,
24908,
5653,
38,
796,
13538,
628,
198,
2,
2472,
16598,
796,
7720,
687,
13,
2375,
22739,
62,
7890,
17816,
51,
27510,
44558,
20520,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11055,
28886,
16598,
796,
7720,
687,
13,
2375,
22739,
62,
7890,
17816,
28243,
28886,
16598,
20520,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11055,
28886,
31768,
3103,
66,
796,
7720,
687,
13,
2375,
22739,
62,
7890,
17816,
28243,
28886,
31768,
3103,
66,
20520,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11055,
28886,
19006,
20273,
796,
7720,
687,
13,
2375,
22739,
62,
7890,
17816,
28243,
28886,
19006,
20273,
20520,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11876,
16598,
796,
7720,
687,
13,
2375,
22739,
62,
7890,
17816,
22252,
16598,
20520,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11876,
3103,
66,
796,
7720,
687,
13,
2375,
22739,
62,
7890,
17816,
22252,
3103,
66,
20520,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17504,
4834,
24266,
16598,
796,
7720,
687,
13,
2375,
22739,
62,
7890,
17816,
2118,
46214,
4834,
24266,
16598,
20520,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17504,
4834,
24266,
3103,
66,
796,
7720,
687,
13,
2375,
22739,
62,
7890,
17816,
2118,
46214,
4834,
24266,
3103,
66,
20520,
628,
198,
198,
2,
16926,
46,
25,
2896,
500,
3298,
9633,
14610,
5521,
319,
262,
2482,
2443,
628,
198,
29113,
7804,
5923,
13349,
3525,
49,
19213,
33290,
34,
6239,
25633,
1303,
29113,
4242,
2235,
198,
198,
2,
3298,
7885,
198,
3697,
46,
1581,
796,
6045,
198,
5222,
4146,
2751,
796,
6045,
198,
3185,
3525,
49,
19213,
62,
19535,
16724,
796,
6045,
628,
628,
198,
198,
2,
46424,
2235,
37679,
1847,
5550,
47,
10619,
3525,
10560,
3185,
41925,
25734,
25734,
32,
1303,
7804,
198,
2,
422,
42625,
14208,
13,
33571,
13,
41357,
1330,
7343,
7680,
11,
13610,
7680,
11,
10133,
7680,
198,
2,
422,
42625,
14208,
13,
6371,
82,
1330,
9575,
62,
75,
12582,
198,
198,
2,
1398,
7755,
8053,
7680,
7,
8053,
7680,
2599,
198,
2,
220,
220,
220,
220,
2746,
796,
7755,
198,
2,
220,
220,
220,
220,
4732,
62,
15252,
62,
3672,
796,
705,
15332,
6,
198,
198,
2,
1398,
7755,
16447,
7680,
7,
16447,
7680,
2599,
198,
2,
220,
220,
220,
220,
2746,
796,
7755,
198,
2,
220,
220,
220,
220,
1296,
62,
4871,
796,
7755,
8479,
198,
2,
220,
220,
220,
220,
1943,
62,
6371,
796,
9575,
62,
75,
12582,
10786,
6259,
62,
354,
8368,
396,
11537,
198,
198,
2,
1398,
7755,
10260,
7680,
7,
10260,
7680,
2599,
198,
2,
220,
220,
220,
220,
2746,
796,
7755,
198,
2,
220,
220,
220,
220,
1296,
62,
4871,
796,
7755,
8479,
198,
2,
220,
220,
220,
220,
1943,
62,
6371,
796,
9575,
62,
75,
12582,
10786,
6259,
62,
354,
8368,
396,
11537,
628
] | 2.854867 | 1,130 |
# scrapes Townes van Zandt lyrics
# sample code so I don't have to remember all of this stuff
# the next time I want to source some verses
from bs4 import BeautifulSoup as soup
import requests
import string
punctuation_trans_table = str.maketrans("", "", string.punctuation)
base_url = "http://ippc2.orst.edu/coopl/lyrics/"
index = requests.get(base_url + "albums.html")
parsed_index = soup(index.text)
all_links = parsed_index.find_all("a") # get all <a> tags
links = [l for l in all_links if l.text] # filter out image links
def to_filename(s, path="texts/townes_van_zandt/"):
'''Quick and dirty snake-casing'''
s = s.replace("&", "and") # special case, "Poncho & Lefty"
s = strip_punctuation(s)
s = s.lower()
s = s.replace(" ", "_")
s = path + s + ".txt"
return s
| [
2,
15881,
274,
8329,
274,
5719,
1168,
392,
83,
15844,
198,
2,
6291,
2438,
523,
314,
836,
470,
423,
284,
3505,
477,
286,
428,
3404,
198,
2,
262,
1306,
640,
314,
765,
284,
2723,
617,
24752,
198,
198,
6738,
275,
82,
19,
1330,
23762,
50,
10486,
355,
17141,
198,
11748,
7007,
198,
11748,
4731,
198,
198,
79,
16260,
2288,
62,
7645,
62,
11487,
796,
965,
13,
76,
461,
21879,
504,
7203,
1600,
366,
1600,
4731,
13,
79,
16260,
2288,
8,
628,
198,
198,
8692,
62,
6371,
796,
366,
4023,
1378,
3974,
66,
17,
13,
29422,
13,
15532,
14,
1073,
20106,
14,
306,
10466,
30487,
198,
198,
9630,
796,
7007,
13,
1136,
7,
8692,
62,
6371,
1343,
366,
40916,
82,
13,
6494,
4943,
198,
79,
945,
276,
62,
9630,
796,
17141,
7,
9630,
13,
5239,
8,
198,
198,
439,
62,
28751,
796,
44267,
62,
9630,
13,
19796,
62,
439,
7203,
64,
4943,
220,
220,
220,
1303,
651,
477,
1279,
64,
29,
15940,
198,
28751,
796,
685,
75,
329,
300,
287,
477,
62,
28751,
611,
300,
13,
5239,
60,
220,
1303,
8106,
503,
2939,
6117,
628,
198,
4299,
284,
62,
34345,
7,
82,
11,
3108,
2625,
5239,
82,
14,
12735,
274,
62,
10438,
62,
89,
392,
83,
30487,
2599,
198,
220,
220,
220,
705,
7061,
21063,
290,
11841,
17522,
12,
66,
2313,
7061,
6,
198,
220,
220,
220,
264,
796,
264,
13,
33491,
7203,
5,
696,
26,
1600,
366,
392,
4943,
220,
1303,
2041,
1339,
11,
366,
47,
261,
6679,
1222,
9578,
88,
1,
198,
220,
220,
220,
264,
796,
10283,
62,
79,
16260,
2288,
7,
82,
8,
198,
220,
220,
220,
264,
796,
264,
13,
21037,
3419,
198,
220,
220,
220,
264,
796,
264,
13,
33491,
7203,
33172,
45434,
4943,
198,
220,
220,
220,
264,
796,
3108,
1343,
264,
1343,
27071,
14116,
1,
198,
220,
220,
220,
1441,
264,
628
] | 2.634304 | 309 |
from django.core import management
from django.core.management.base import BaseCommand
| [
6738,
42625,
14208,
13,
7295,
1330,
4542,
201,
198,
6738,
42625,
14208,
13,
7295,
13,
27604,
13,
8692,
1330,
7308,
21575,
201,
198,
201,
198
] | 3.64 | 25 |
"""
Display all visible SSIDs
"""
import NetworkManager
for dev in NetworkManager.NetworkManager.GetDevices():
if dev.DeviceType != NetworkManager.NM_DEVICE_TYPE_WIFI:
continue
for ap in dev.GetAccessPoints():
print('%-30s %dMHz %d%%' % (ap.Ssid, ap.Frequency, ap.Strength))
| [
37811,
198,
23114,
477,
7424,
6723,
47954,
198,
37811,
198,
198,
11748,
7311,
13511,
198,
198,
1640,
1614,
287,
7311,
13511,
13,
26245,
13511,
13,
3855,
13603,
1063,
33529,
198,
220,
220,
220,
611,
1614,
13,
24728,
6030,
14512,
7311,
13511,
13,
32755,
62,
7206,
27389,
62,
25216,
62,
54,
5064,
40,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
329,
2471,
287,
1614,
13,
3855,
15457,
40710,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
33963,
1270,
82,
4064,
67,
25983,
4064,
67,
16626,
6,
4064,
357,
499,
13,
50,
30255,
11,
2471,
13,
37,
28707,
11,
2471,
13,
45027,
4008,
198
] | 2.6875 | 112 |
import requests
import time
import csv
import sys
from itertools import groupby
import Utils
# ====================================================================
# **Description**
# This script takes the list of train stations we found on wikipedia
# --> Extracts: train station number, train station name, train station category
# --> Calls the db-stations API to recieve:
# --> GeoJSON (Point) [longitude, latitude] for every train station
# --> Saves the successfull recieved data in a new .csv file
# --> Saves the train stations where the request failed in a new .csv file
# (Depending on the size of the failed request, repeat the steps)
# read train stations from csv file (where data begins in second row)
# function to handle the api call and save the data
#utility function to quickly check if all values of the array are equal
# function to handle the auth tokens
# array with the important station data
stations = read_station("/home/bigdata/db-ripper/misc/Mappe1.csv")
# the URL for db API requests regarding train station data
base_request_string = "https://api.deutschebahn.com/stada/v2/stations/"
# the array of successfull collected train station data
resultArr = []
# the array of unsuccessfull collected train station data
failArr = []
# the array of auth tokens that are subscribed to the db-api stations
tokenArr = Utils.tokens_timetable_parking
# the array of headers needed for the request containing the auth tokens
headers_arr = []
for token in tokenArr:
header = {'Accept': 'application/json', 'Authorization': token}
headers_arr.append(header)
# the array of counters for each auth token, to make sure every auth token is only used n-times before
# the next token has to be used, if all tokens have been used n-times the loop needs to sleep to garant access
counter_arr = []
for i in range(30):
counter_arr.append(0)
# work
compute_geo_data(stations, base_request_string, headers_arr,
resultArr, failArr, counter_arr=counter_arr)
#write successes data in a new file 'test_table_result.csv'
with open("/home/bigdata/db-ripper/misc/test_table_result.csv", "w", newline='', encoding='utf-8') as resultfile:
writer = csv.writer(resultfile)
for result in resultArr:
writer.writerow(result)
#write failures in a new file 'test_table_fail.csv'
with open("/home/bigdata/db-ripper/misc/test_table_fail.csv", "w", newline='', encoding='utf-8') as failfile:
writer = csv.writer(failfile)
for fail in failArr:
writer.writerow(fail)
| [
11748,
7007,
198,
11748,
640,
198,
11748,
269,
21370,
198,
11748,
25064,
198,
6738,
340,
861,
10141,
1330,
1448,
1525,
198,
11748,
7273,
4487,
198,
198,
2,
38093,
18604,
198,
2,
12429,
11828,
1174,
198,
2,
770,
4226,
2753,
262,
1351,
286,
4512,
8985,
356,
1043,
319,
47145,
11151,
198,
2,
14610,
29677,
82,
25,
4512,
4429,
1271,
11,
4512,
4429,
1438,
11,
4512,
4429,
6536,
198,
2,
14610,
27592,
262,
20613,
12,
301,
602,
7824,
284,
664,
12311,
25,
198,
2,
14610,
32960,
40386,
357,
12727,
8,
685,
6511,
3984,
11,
32477,
60,
329,
790,
4512,
4429,
198,
2,
14610,
311,
3080,
262,
1943,
12853,
664,
39591,
1366,
287,
257,
649,
764,
40664,
2393,
198,
2,
14610,
311,
3080,
262,
4512,
8985,
810,
262,
2581,
4054,
287,
257,
649,
764,
40664,
2393,
198,
2,
357,
41156,
319,
262,
2546,
286,
262,
4054,
2581,
11,
9585,
262,
4831,
8,
198,
198,
2,
1100,
4512,
8985,
422,
269,
21370,
2393,
357,
3003,
1366,
6140,
287,
1218,
5752,
8,
198,
198,
2,
2163,
284,
5412,
262,
40391,
869,
290,
3613,
262,
1366,
198,
198,
2,
315,
879,
2163,
284,
2952,
2198,
611,
477,
3815,
286,
262,
7177,
389,
4961,
198,
198,
2,
2163,
284,
5412,
262,
6284,
16326,
628,
198,
2,
7177,
351,
262,
1593,
4429,
1366,
198,
301,
602,
796,
1100,
62,
17529,
7203,
14,
11195,
14,
14261,
7890,
14,
9945,
12,
380,
2848,
14,
44374,
14,
44,
1324,
68,
16,
13,
40664,
4943,
198,
198,
2,
262,
10289,
329,
20613,
7824,
7007,
5115,
4512,
4429,
1366,
198,
8692,
62,
25927,
62,
8841,
796,
366,
5450,
1378,
15042,
13,
2934,
30433,
65,
15386,
13,
785,
14,
301,
4763,
14,
85,
17,
14,
301,
602,
30487,
198,
198,
2,
262,
7177,
286,
1943,
12853,
7723,
4512,
4429,
1366,
198,
20274,
3163,
81,
796,
17635,
198,
198,
2,
262,
7177,
286,
555,
13138,
12853,
7723,
4512,
4429,
1366,
198,
32165,
3163,
81,
796,
17635,
198,
198,
2,
262,
7177,
286,
6284,
16326,
326,
389,
45794,
284,
262,
20613,
12,
15042,
8985,
198,
30001,
3163,
81,
796,
7273,
4487,
13,
83,
482,
641,
62,
16514,
316,
540,
62,
20928,
278,
198,
198,
2,
262,
7177,
286,
24697,
2622,
329,
262,
2581,
7268,
262,
6284,
16326,
220,
198,
50145,
62,
3258,
796,
17635,
198,
1640,
11241,
287,
11241,
3163,
81,
25,
198,
220,
220,
220,
13639,
796,
1391,
6,
38855,
10354,
705,
31438,
14,
17752,
3256,
705,
13838,
1634,
10354,
11241,
92,
198,
220,
220,
220,
24697,
62,
3258,
13,
33295,
7,
25677,
8,
198,
2,
262,
7177,
286,
21154,
329,
1123,
6284,
11241,
11,
284,
787,
1654,
790,
6284,
11241,
318,
691,
973,
299,
12,
22355,
878,
198,
2,
262,
1306,
11241,
468,
284,
307,
973,
11,
611,
477,
16326,
423,
587,
973,
299,
12,
22355,
262,
9052,
2476,
284,
3993,
284,
308,
4741,
1895,
198,
24588,
62,
3258,
796,
17635,
198,
1640,
1312,
287,
2837,
7,
1270,
2599,
198,
220,
220,
220,
3753,
62,
3258,
13,
33295,
7,
15,
8,
198,
198,
2,
670,
198,
5589,
1133,
62,
469,
78,
62,
7890,
7,
301,
602,
11,
2779,
62,
25927,
62,
8841,
11,
24697,
62,
3258,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
3163,
81,
11,
2038,
3163,
81,
11,
3753,
62,
3258,
28,
24588,
62,
3258,
8,
198,
198,
2,
13564,
23682,
1366,
287,
257,
649,
2393,
705,
9288,
62,
11487,
62,
20274,
13,
40664,
6,
198,
4480,
1280,
7203,
14,
11195,
14,
14261,
7890,
14,
9945,
12,
380,
2848,
14,
44374,
14,
9288,
62,
11487,
62,
20274,
13,
40664,
1600,
366,
86,
1600,
649,
1370,
11639,
3256,
21004,
11639,
40477,
12,
23,
11537,
355,
1255,
7753,
25,
198,
220,
220,
220,
6260,
796,
269,
21370,
13,
16002,
7,
20274,
7753,
8,
198,
220,
220,
220,
329,
1255,
287,
1255,
3163,
81,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6260,
13,
16002,
322,
7,
20274,
8,
198,
198,
2,
13564,
15536,
287,
257,
649,
2393,
705,
9288,
62,
11487,
62,
32165,
13,
40664,
6,
198,
198,
4480,
1280,
7203,
14,
11195,
14,
14261,
7890,
14,
9945,
12,
380,
2848,
14,
44374,
14,
9288,
62,
11487,
62,
32165,
13,
40664,
1600,
366,
86,
1600,
649,
1370,
11639,
3256,
21004,
11639,
40477,
12,
23,
11537,
355,
2038,
7753,
25,
198,
220,
220,
220,
6260,
796,
269,
21370,
13,
16002,
7,
32165,
7753,
8,
198,
220,
220,
220,
329,
2038,
287,
2038,
3163,
81,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6260,
13,
16002,
322,
7,
32165,
8,
198
] | 3.335535 | 757 |
#! /usr/bin/env python
import glob
import time
import torch
import click
import os.path
import random
import logging
import pathlib
import datetime
import numpy as np
import torchvision.transforms as tf
from PIL import Image, ImageDraw
from pathlib import Path
from rich.logging import RichHandler
from pytorch_lightning import Trainer
from pytorch_lightning.callbacks import ModelCheckpoint, StochasticWeightAveraging
from curt.models import CurtCurveModel, MaskedCurtCurveModel
from curt.dataset import CurveDataModule
from curt.progress import KrakenTrainProgressBar
from curt.util.misc import NestedTensor
from curt.transforms import BezierCoeff
# raise default max image size to 20k * 20k pixels
Image.MAX_IMAGE_PIXELS = 20000 ** 2
logging.captureWarnings(True)
logger = logging.getLogger()
torch.multiprocessing.set_sharing_strategy('file_system')
def _validate_merging(ctx, param, value):
"""
Maps baseline/region merging to a dict of merge structures.
"""
if not value:
return None
merge_dict = {}
try:
for m in value:
k, v = m.split(':')
merge_dict[v] = k # type: ignore
except Exception:
raise click.BadParameter('Mappings must be in format target:src')
return merge_dict
@click.group()
@click.pass_context
@click.option('-v', '--verbose', default=0, count=True)
@click.option('-s', '--seed', default=None, type=click.INT,
help='Seed for numpy\'s and torch\'s RNG. Set to a fixed value to '
'ensure reproducible random splits of data')
@cli.command('polytrain')
@click.pass_context
@click.option('--precision', default='32', type=click.Choice(['64', '32', '16', 'bf16']), help='set tensor precision')
@click.option('-lr', '--learning-rate', default=0.0006, help='Learning rate')
@click.option('-blr', '--backbone-learning-rate', default=0.00006, help='Learning rate')
@click.option('-B', '--batch-size', default=1, help='Batch size')
@click.option('-w', '--weight-decay', default=0.01, help='Weight decay in optimizer')
@click.option('-N', '--epochs', default=25, help='Number of epochs to train for')
@click.option('-F', '--freq', show_default=True, default=1.0, type=click.FLOAT,
help='Model saving and report generation frequency in epochs '
'during training. If frequency is >1 it must be an integer, '
'i.e. running validation every n-th epoch.')
@click.option('-lr-drop', '--lr-drop', default=15, help='Reduction factor of learning rate over time')
@click.option('--dropout', default=0.1, help='Dropout applied in the transformer')
@click.option('--match-cost-class', default=1.0, help='Class coefficient in the matching cost')
@click.option('--match-cost-curve', default=5.0, help='L1 curve coefficient in the matching cost')
@click.option('--curve-loss-coef', default=5.0, help='L1 curve coefficient in the loss')
@click.option('--eos-coef', default=0.1, help='Relative classification weight of the no-object class')
@click.option('--mask-loss-coef', default=1.0, help='Mask loss coefficient')
@click.option('--dice-loss-coef', default=1.0, help='Mask dice loss coefficient')
@click.option('-i', '--load', show_default=True, type=click.Path(exists=True, readable=True), help='Load existing file to continue training')
@click.option('-o', '--output', show_default=True, type=click.Path(), default='curt_model', help='Pytorch lightning output directory')
@click.option('-p', '--partition', show_default=True, default=0.9,
help='Ground truth data partition ratio between train/validation set')
@click.option('-t', '--training-files', show_default=True, default=None, multiple=True,
callback=_validate_manifests, type=click.File(mode='r', lazy=True),
help='File(s) with additional paths to training data')
@click.option('-e', '--evaluation-files', show_default=True, default=None, multiple=True,
callback=_validate_manifests, type=click.File(mode='r', lazy=True),
help='File(s) with paths to evaluation data. Overrides the `-p` parameter')
@click.option('-vb', '--valid-baselines', show_default=True, default=None, multiple=True,
help='Valid baseline types in training data. May be used multiple times.')
@click.option('-mb',
'--merge-baselines',
show_default=True,
default=None,
help='Baseline type merge mapping. Same syntax as `--merge-regions`',
multiple=True,
callback=_validate_merging)
@click.option('--merge-all-baselines/--no-merge-baselines',
show_default=True,
default=False,
help='Merge all baseline types into `default`')
@click.option('--workers', show_default=True, default=2, help='Number of data loader workers.')
@click.option('-d', '--device', show_default=True, default='1', help='Select device to use (1, ...)')
@click.argument('ground_truth', nargs=-1, callback=_expand_gt, type=click.Path(exists=False, dir_okay=False))
@cli.command('train')
@click.pass_context
@click.option('--precision', default='32', type=click.Choice(['64', '32', '16', 'bf16']), help='set tensor precision')
@click.option('-lr', '--learning-rate', default=1e-4, help='Learning rate')
@click.option('-blr', '--backbone-learning-rate', default=1e-4, help='Learning rate')
@click.option('-B', '--batch-size', default=1, help='Batch size')
@click.option('-w', '--weight-decay', default=1e-4, help='Weight decay in optimizer')
@click.option('-N', '--epochs', default=300, help='Number of epochs to train for')
@click.option('-F', '--freq', show_default=True, default=1.0, type=click.FLOAT,
help='Model saving and report generation frequency in epochs '
'during training. If frequency is >1 it must be an integer, '
'i.e. running validation every n-th epoch.')
@click.option('-lr-drop', '--lr-drop', default=200, help='Reduction factor of learning rate over time')
@click.option('--encoder', default='mit_b0', type=click.Choice(['mit_b0', 'mit_b1', 'mit_b2', 'mit_b3', 'mit_b4', 'mit_b5']), help='Encoding max transformers architecture')
@click.option('-dl', '--decoder-layers', default=3, help='Number of decoder layers in the transformer')
@click.option('-dff', '--dim-ff', default=2048, help='Intermediate size of the feedforward layers in the transformer block')
@click.option('-edd', '--embedding-dim', default=256, help='Size of the embeddings (dimension of the transformer')
@click.option('--dropout', default=0.1, help='Dropout applied in the transformer')
@click.option('-nh', '--num-heads', default=8, help="Number of attention heads inside the transformer's attentions")
@click.option('-nq', '--num-queries', default=500, help='Number of query slots (#lines + #regions detectable in an image)')
@click.option('--match-cost-class', default=1.0, help='Class coefficient in the matching cost')
@click.option('--match-cost-curve', default=5.0, help='L1 curve coefficient in the matching cost')
@click.option('--curve-loss-coef', default=5.0, help='L1 curve coefficient in the loss')
@click.option('--eos-coef', default=0.1, help='Relative classification weight of the no-object class')
@click.option('-i', '--load', show_default=True, type=click.Path(exists=True, readable=True), help='Load existing file to continue training')
@click.option('-o', '--output', show_default=True, type=click.Path(), default='curt_model', help='Pytorch lightning output directory')
@click.option('-p', '--partition', show_default=True, default=0.9,
help='Ground truth data partition ratio between train/validation set')
@click.option('-t', '--training-files', show_default=True, default=None, multiple=True,
callback=_validate_manifests, type=click.File(mode='r', lazy=True),
help='File(s) with additional paths to training data')
@click.option('-e', '--evaluation-files', show_default=True, default=None, multiple=True,
callback=_validate_manifests, type=click.File(mode='r', lazy=True),
help='File(s) with paths to evaluation data. Overrides the `-p` parameter')
@click.option('-vb', '--valid-baselines', show_default=True, default=None, multiple=True,
help='Valid baseline types in training data. May be used multiple times.')
@click.option('-mb',
'--merge-baselines',
show_default=True,
default=None,
help='Baseline type merge mapping. Same syntax as `--merge-regions`',
multiple=True,
callback=_validate_merging)
@click.option('--merge-all-baselines/--no-merge-baselines',
show_default=True,
default=False,
help='Merge all baseline types into `default`')
@click.option('--set-matcher/--dummy-matcher', show_default=True, default=True, help='Use the set criterion or dummy matching.')
@click.option('--aux-loss/--no-aux-loss', show_default=True, default=True, help='Enable auxiliary losses in decoder.')
@click.option('--workers', show_default=True, default=2, help='Number of data loader workers.')
@click.option('-d', '--device', show_default=True, default='1', help='Select device to use')
@click.argument('ground_truth', nargs=-1, callback=_expand_gt, type=click.Path(exists=False, dir_okay=False))
@cli.command('pred')
@click.pass_context
@click.option('-i', '--load', help='Input model')
@click.option('-o', '--suffix', default='.overlay.png', show_default=True, help='Suffix for output files')
@click.option('-t', '--threshold', default=0.9, show_default=True, help='Minimum score for objectness')
@click.option('-d', '--device', show_default=True, default='cpu', help='Select device to use (cpu, cuda:0, cuda:1, ...)')
@click.argument('input_files', nargs=-1, callback=_expand_gt, type=click.Path(exists=False, dir_okay=False))
if __name__ == '__main__':
cli()
| [
2,
0,
1220,
14629,
14,
8800,
14,
24330,
21015,
198,
11748,
15095,
198,
11748,
640,
198,
11748,
28034,
198,
11748,
3904,
198,
11748,
28686,
13,
6978,
198,
11748,
4738,
198,
11748,
18931,
198,
11748,
3108,
8019,
198,
11748,
4818,
8079,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
28034,
10178,
13,
7645,
23914,
355,
48700,
198,
198,
6738,
350,
4146,
1330,
7412,
11,
7412,
25302,
198,
6738,
3108,
8019,
1330,
10644,
198,
6738,
5527,
13,
6404,
2667,
1330,
3998,
25060,
198,
6738,
12972,
13165,
354,
62,
2971,
768,
1330,
31924,
198,
6738,
12972,
13165,
354,
62,
2971,
768,
13,
13345,
10146,
1330,
9104,
9787,
4122,
11,
520,
5374,
3477,
25844,
32,
332,
3039,
198,
198,
6738,
1090,
83,
13,
27530,
1330,
19569,
26628,
303,
17633,
11,
18007,
276,
34,
3325,
26628,
303,
17633,
198,
6738,
1090,
83,
13,
19608,
292,
316,
1330,
46300,
6601,
26796,
198,
6738,
1090,
83,
13,
33723,
1330,
43392,
44077,
32577,
10374,
198,
6738,
1090,
83,
13,
22602,
13,
44374,
1330,
399,
7287,
51,
22854,
198,
6738,
1090,
83,
13,
7645,
23914,
1330,
1355,
89,
959,
34,
2577,
487,
628,
198,
2,
5298,
4277,
3509,
2939,
2546,
284,
1160,
74,
1635,
1160,
74,
17848,
198,
5159,
13,
22921,
62,
3955,
11879,
62,
47,
10426,
37142,
796,
939,
405,
12429,
362,
198,
198,
6404,
2667,
13,
27144,
495,
54,
1501,
654,
7,
17821,
8,
198,
6404,
1362,
796,
18931,
13,
1136,
11187,
1362,
3419,
198,
198,
13165,
354,
13,
16680,
541,
305,
919,
278,
13,
2617,
62,
21987,
62,
2536,
4338,
10786,
7753,
62,
10057,
11537,
628,
198,
198,
4299,
4808,
12102,
378,
62,
647,
2667,
7,
49464,
11,
5772,
11,
1988,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
20347,
14805,
14,
36996,
35981,
284,
257,
8633,
286,
20121,
8573,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
407,
1988,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
198,
220,
220,
220,
20121,
62,
11600,
796,
23884,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
329,
285,
287,
1988,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
11,
410,
796,
285,
13,
35312,
7,
10354,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20121,
62,
11600,
58,
85,
60,
796,
479,
220,
1303,
2099,
25,
8856,
198,
220,
220,
220,
2845,
35528,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
3904,
13,
22069,
36301,
10786,
44,
39242,
1276,
307,
287,
5794,
2496,
25,
10677,
11537,
198,
220,
220,
220,
1441,
20121,
62,
11600,
628,
198,
31,
12976,
13,
8094,
3419,
198,
31,
12976,
13,
6603,
62,
22866,
198,
31,
12976,
13,
18076,
10786,
12,
85,
3256,
705,
438,
19011,
577,
3256,
4277,
28,
15,
11,
954,
28,
17821,
8,
198,
31,
12976,
13,
18076,
10786,
12,
82,
3256,
705,
438,
28826,
3256,
4277,
28,
14202,
11,
2099,
28,
12976,
13,
12394,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
50,
2308,
329,
299,
32152,
43054,
82,
290,
28034,
43054,
82,
371,
10503,
13,
5345,
284,
257,
5969,
1988,
284,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
641,
495,
8186,
37369,
4738,
30778,
286,
1366,
11537,
198,
198,
31,
44506,
13,
21812,
10786,
35428,
27432,
11537,
198,
31,
12976,
13,
6603,
62,
22866,
198,
31,
12976,
13,
18076,
10786,
438,
3866,
16005,
3256,
4277,
11639,
2624,
3256,
2099,
28,
12976,
13,
46770,
7,
17816,
2414,
3256,
705,
2624,
3256,
705,
1433,
3256,
705,
19881,
1433,
20520,
828,
1037,
11639,
2617,
11192,
273,
15440,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
14050,
3256,
705,
438,
40684,
12,
4873,
3256,
4277,
28,
15,
13,
830,
21,
11,
1037,
11639,
41730,
2494,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
2436,
81,
3256,
705,
438,
1891,
15992,
12,
40684,
12,
4873,
3256,
4277,
28,
15,
13,
2388,
21,
11,
1037,
11639,
41730,
2494,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
33,
3256,
705,
438,
43501,
12,
7857,
3256,
4277,
28,
16,
11,
1037,
11639,
33,
963,
2546,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
86,
3256,
705,
438,
6551,
12,
12501,
323,
3256,
4277,
28,
15,
13,
486,
11,
1037,
11639,
25844,
22119,
287,
6436,
7509,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
45,
3256,
705,
438,
538,
5374,
82,
3256,
4277,
28,
1495,
11,
1037,
11639,
15057,
286,
36835,
82,
284,
4512,
329,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
37,
3256,
705,
438,
19503,
80,
3256,
905,
62,
12286,
28,
17821,
11,
4277,
28,
16,
13,
15,
11,
2099,
28,
12976,
13,
3697,
46,
1404,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
17633,
8914,
290,
989,
5270,
8373,
287,
36835,
82,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
42122,
3047,
13,
1002,
8373,
318,
1875,
16,
340,
1276,
307,
281,
18253,
11,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
72,
13,
68,
13,
2491,
21201,
790,
299,
12,
400,
36835,
2637,
8,
198,
31,
12976,
13,
18076,
10786,
12,
14050,
12,
14781,
3256,
705,
438,
14050,
12,
14781,
3256,
4277,
28,
1314,
11,
1037,
11639,
7738,
8110,
5766,
286,
4673,
2494,
625,
640,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
14781,
448,
3256,
4277,
28,
15,
13,
16,
11,
1037,
11639,
26932,
448,
5625,
287,
262,
47385,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
15699,
12,
15805,
12,
4871,
3256,
4277,
28,
16,
13,
15,
11,
1037,
11639,
9487,
35381,
287,
262,
12336,
1575,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
15699,
12,
15805,
12,
22019,
303,
3256,
4277,
28,
20,
13,
15,
11,
1037,
11639,
43,
16,
12133,
35381,
287,
262,
12336,
1575,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
22019,
303,
12,
22462,
12,
1073,
891,
3256,
4277,
28,
20,
13,
15,
11,
1037,
11639,
43,
16,
12133,
35381,
287,
262,
2994,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
68,
418,
12,
1073,
891,
3256,
4277,
28,
15,
13,
16,
11,
1037,
11639,
6892,
876,
17923,
3463,
286,
262,
645,
12,
15252,
1398,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
27932,
12,
22462,
12,
1073,
891,
3256,
4277,
28,
16,
13,
15,
11,
1037,
11639,
45195,
2994,
35381,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
67,
501,
12,
22462,
12,
1073,
891,
3256,
4277,
28,
16,
13,
15,
11,
1037,
11639,
45195,
17963,
2994,
35381,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
72,
3256,
705,
438,
2220,
3256,
905,
62,
12286,
28,
17821,
11,
2099,
28,
12976,
13,
15235,
7,
1069,
1023,
28,
17821,
11,
31744,
28,
17821,
828,
1037,
11639,
8912,
4683,
2393,
284,
2555,
3047,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
78,
3256,
705,
438,
22915,
3256,
905,
62,
12286,
28,
17821,
11,
2099,
28,
12976,
13,
15235,
22784,
4277,
11639,
66,
3325,
62,
19849,
3256,
1037,
11639,
20519,
13165,
354,
14357,
5072,
8619,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
79,
3256,
705,
438,
3911,
653,
3256,
905,
62,
12286,
28,
17821,
11,
4277,
28,
15,
13,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
35539,
3872,
1366,
18398,
8064,
1022,
4512,
14,
12102,
341,
900,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
83,
3256,
705,
438,
34409,
12,
16624,
3256,
905,
62,
12286,
28,
17821,
11,
4277,
28,
14202,
11,
3294,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23838,
28,
62,
12102,
378,
62,
805,
361,
3558,
11,
2099,
28,
12976,
13,
8979,
7,
14171,
11639,
81,
3256,
16931,
28,
17821,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
8979,
7,
82,
8,
351,
3224,
13532,
284,
3047,
1366,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
68,
3256,
705,
438,
18206,
2288,
12,
16624,
3256,
905,
62,
12286,
28,
17821,
11,
4277,
28,
14202,
11,
3294,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23838,
28,
62,
12102,
378,
62,
805,
361,
3558,
11,
2099,
28,
12976,
13,
8979,
7,
14171,
11639,
81,
3256,
16931,
28,
17821,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
8979,
7,
82,
8,
351,
13532,
284,
12660,
1366,
13,
3827,
81,
1460,
262,
4600,
12,
79,
63,
11507,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
85,
65,
3256,
705,
438,
12102,
12,
12093,
20655,
3256,
905,
62,
12286,
28,
17821,
11,
4277,
28,
14202,
11,
3294,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
47139,
14805,
3858,
287,
3047,
1366,
13,
1737,
307,
973,
3294,
1661,
2637,
8,
198,
31,
12976,
13,
18076,
10786,
12,
2022,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
647,
469,
12,
12093,
20655,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
905,
62,
12286,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
15522,
4470,
2099,
20121,
16855,
13,
16766,
15582,
355,
4600,
438,
647,
469,
12,
2301,
507,
63,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3294,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23838,
28,
62,
12102,
378,
62,
647,
2667,
8,
198,
31,
12976,
13,
18076,
10786,
438,
647,
469,
12,
439,
12,
12093,
20655,
14,
438,
3919,
12,
647,
469,
12,
12093,
20655,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
905,
62,
12286,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
13102,
469,
477,
14805,
3858,
656,
4600,
12286,
63,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
22896,
3256,
905,
62,
12286,
28,
17821,
11,
4277,
28,
17,
11,
1037,
11639,
15057,
286,
1366,
40213,
3259,
2637,
8,
198,
31,
12976,
13,
18076,
10786,
12,
67,
3256,
705,
438,
25202,
3256,
905,
62,
12286,
28,
17821,
11,
4277,
11639,
16,
3256,
1037,
11639,
17563,
3335,
284,
779,
357,
16,
11,
2644,
8,
11537,
198,
31,
12976,
13,
49140,
10786,
2833,
62,
35310,
3256,
299,
22046,
10779,
16,
11,
23838,
28,
62,
11201,
392,
62,
13655,
11,
2099,
28,
12976,
13,
15235,
7,
1069,
1023,
28,
25101,
11,
26672,
62,
482,
323,
28,
25101,
4008,
628,
198,
198,
31,
44506,
13,
21812,
10786,
27432,
11537,
198,
31,
12976,
13,
6603,
62,
22866,
198,
31,
12976,
13,
18076,
10786,
438,
3866,
16005,
3256,
4277,
11639,
2624,
3256,
2099,
28,
12976,
13,
46770,
7,
17816,
2414,
3256,
705,
2624,
3256,
705,
1433,
3256,
705,
19881,
1433,
20520,
828,
1037,
11639,
2617,
11192,
273,
15440,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
14050,
3256,
705,
438,
40684,
12,
4873,
3256,
4277,
28,
16,
68,
12,
19,
11,
1037,
11639,
41730,
2494,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
2436,
81,
3256,
705,
438,
1891,
15992,
12,
40684,
12,
4873,
3256,
4277,
28,
16,
68,
12,
19,
11,
1037,
11639,
41730,
2494,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
33,
3256,
705,
438,
43501,
12,
7857,
3256,
4277,
28,
16,
11,
1037,
11639,
33,
963,
2546,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
86,
3256,
705,
438,
6551,
12,
12501,
323,
3256,
4277,
28,
16,
68,
12,
19,
11,
1037,
11639,
25844,
22119,
287,
6436,
7509,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
45,
3256,
705,
438,
538,
5374,
82,
3256,
4277,
28,
6200,
11,
1037,
11639,
15057,
286,
36835,
82,
284,
4512,
329,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
37,
3256,
705,
438,
19503,
80,
3256,
905,
62,
12286,
28,
17821,
11,
4277,
28,
16,
13,
15,
11,
2099,
28,
12976,
13,
3697,
46,
1404,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
17633,
8914,
290,
989,
5270,
8373,
287,
36835,
82,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
42122,
3047,
13,
1002,
8373,
318,
1875,
16,
340,
1276,
307,
281,
18253,
11,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
72,
13,
68,
13,
2491,
21201,
790,
299,
12,
400,
36835,
2637,
8,
198,
31,
12976,
13,
18076,
10786,
12,
14050,
12,
14781,
3256,
705,
438,
14050,
12,
14781,
3256,
4277,
28,
2167,
11,
1037,
11639,
7738,
8110,
5766,
286,
4673,
2494,
625,
640,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
12685,
12342,
3256,
4277,
11639,
2781,
62,
65,
15,
3256,
2099,
28,
12976,
13,
46770,
7,
17816,
2781,
62,
65,
15,
3256,
705,
2781,
62,
65,
16,
3256,
705,
2781,
62,
65,
17,
3256,
705,
2781,
62,
65,
18,
3256,
705,
2781,
62,
65,
19,
3256,
705,
2781,
62,
65,
20,
20520,
828,
1037,
11639,
27195,
7656,
3509,
6121,
364,
10959,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
25404,
3256,
705,
438,
12501,
12342,
12,
75,
6962,
3256,
4277,
28,
18,
11,
1037,
11639,
15057,
286,
875,
12342,
11685,
287,
262,
47385,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
67,
487,
3256,
705,
438,
27740,
12,
487,
3256,
4277,
28,
1238,
2780,
11,
1037,
11639,
9492,
13857,
2546,
286,
262,
3745,
11813,
11685,
287,
262,
47385,
2512,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
6048,
3256,
705,
438,
20521,
12083,
12,
27740,
3256,
4277,
28,
11645,
11,
1037,
11639,
10699,
286,
262,
11525,
67,
654,
357,
46156,
286,
262,
47385,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
14781,
448,
3256,
4277,
28,
15,
13,
16,
11,
1037,
11639,
26932,
448,
5625,
287,
262,
47385,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
77,
71,
3256,
705,
438,
22510,
12,
16600,
3256,
4277,
28,
23,
11,
1037,
2625,
15057,
286,
3241,
6665,
2641,
262,
47385,
338,
32649,
507,
4943,
198,
31,
12976,
13,
18076,
10786,
12,
77,
80,
3256,
705,
438,
22510,
12,
421,
10640,
3256,
4277,
28,
4059,
11,
1037,
11639,
15057,
286,
12405,
17314,
17426,
6615,
1343,
1303,
2301,
507,
44187,
287,
281,
2939,
8,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
15699,
12,
15805,
12,
4871,
3256,
4277,
28,
16,
13,
15,
11,
1037,
11639,
9487,
35381,
287,
262,
12336,
1575,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
15699,
12,
15805,
12,
22019,
303,
3256,
4277,
28,
20,
13,
15,
11,
1037,
11639,
43,
16,
12133,
35381,
287,
262,
12336,
1575,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
22019,
303,
12,
22462,
12,
1073,
891,
3256,
4277,
28,
20,
13,
15,
11,
1037,
11639,
43,
16,
12133,
35381,
287,
262,
2994,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
68,
418,
12,
1073,
891,
3256,
4277,
28,
15,
13,
16,
11,
1037,
11639,
6892,
876,
17923,
3463,
286,
262,
645,
12,
15252,
1398,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
72,
3256,
705,
438,
2220,
3256,
905,
62,
12286,
28,
17821,
11,
2099,
28,
12976,
13,
15235,
7,
1069,
1023,
28,
17821,
11,
31744,
28,
17821,
828,
1037,
11639,
8912,
4683,
2393,
284,
2555,
3047,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
78,
3256,
705,
438,
22915,
3256,
905,
62,
12286,
28,
17821,
11,
2099,
28,
12976,
13,
15235,
22784,
4277,
11639,
66,
3325,
62,
19849,
3256,
1037,
11639,
20519,
13165,
354,
14357,
5072,
8619,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
79,
3256,
705,
438,
3911,
653,
3256,
905,
62,
12286,
28,
17821,
11,
4277,
28,
15,
13,
24,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
35539,
3872,
1366,
18398,
8064,
1022,
4512,
14,
12102,
341,
900,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
83,
3256,
705,
438,
34409,
12,
16624,
3256,
905,
62,
12286,
28,
17821,
11,
4277,
28,
14202,
11,
3294,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23838,
28,
62,
12102,
378,
62,
805,
361,
3558,
11,
2099,
28,
12976,
13,
8979,
7,
14171,
11639,
81,
3256,
16931,
28,
17821,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
8979,
7,
82,
8,
351,
3224,
13532,
284,
3047,
1366,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
68,
3256,
705,
438,
18206,
2288,
12,
16624,
3256,
905,
62,
12286,
28,
17821,
11,
4277,
28,
14202,
11,
3294,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23838,
28,
62,
12102,
378,
62,
805,
361,
3558,
11,
2099,
28,
12976,
13,
8979,
7,
14171,
11639,
81,
3256,
16931,
28,
17821,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
8979,
7,
82,
8,
351,
13532,
284,
12660,
1366,
13,
3827,
81,
1460,
262,
4600,
12,
79,
63,
11507,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
85,
65,
3256,
705,
438,
12102,
12,
12093,
20655,
3256,
905,
62,
12286,
28,
17821,
11,
4277,
28,
14202,
11,
3294,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
47139,
14805,
3858,
287,
3047,
1366,
13,
1737,
307,
973,
3294,
1661,
2637,
8,
198,
31,
12976,
13,
18076,
10786,
12,
2022,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
647,
469,
12,
12093,
20655,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
905,
62,
12286,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
15522,
4470,
2099,
20121,
16855,
13,
16766,
15582,
355,
4600,
438,
647,
469,
12,
2301,
507,
63,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3294,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23838,
28,
62,
12102,
378,
62,
647,
2667,
8,
198,
31,
12976,
13,
18076,
10786,
438,
647,
469,
12,
439,
12,
12093,
20655,
14,
438,
3919,
12,
647,
469,
12,
12093,
20655,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
905,
62,
12286,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
11639,
13102,
469,
477,
14805,
3858,
656,
4600,
12286,
63,
11537,
198,
31,
12976,
13,
18076,
10786,
438,
2617,
12,
6759,
2044,
14,
438,
67,
13513,
12,
6759,
2044,
3256,
905,
62,
12286,
28,
17821,
11,
4277,
28,
17821,
11,
1037,
11639,
11041,
262,
900,
34054,
393,
31548,
12336,
2637,
8,
198,
31,
12976,
13,
18076,
10786,
438,
14644,
12,
22462,
14,
438,
3919,
12,
14644,
12,
22462,
3256,
905,
62,
12286,
28,
17821,
11,
4277,
28,
17821,
11,
1037,
11639,
36695,
37419,
9089,
287,
875,
12342,
2637,
8,
198,
31,
12976,
13,
18076,
10786,
438,
22896,
3256,
905,
62,
12286,
28,
17821,
11,
4277,
28,
17,
11,
1037,
11639,
15057,
286,
1366,
40213,
3259,
2637,
8,
198,
31,
12976,
13,
18076,
10786,
12,
67,
3256,
705,
438,
25202,
3256,
905,
62,
12286,
28,
17821,
11,
4277,
11639,
16,
3256,
1037,
11639,
17563,
3335,
284,
779,
11537,
198,
31,
12976,
13,
49140,
10786,
2833,
62,
35310,
3256,
299,
22046,
10779,
16,
11,
23838,
28,
62,
11201,
392,
62,
13655,
11,
2099,
28,
12976,
13,
15235,
7,
1069,
1023,
28,
25101,
11,
26672,
62,
482,
323,
28,
25101,
4008,
628,
198,
31,
44506,
13,
21812,
10786,
28764,
11537,
198,
31,
12976,
13,
6603,
62,
22866,
198,
31,
12976,
13,
18076,
10786,
12,
72,
3256,
705,
438,
2220,
3256,
1037,
11639,
20560,
2746,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
78,
3256,
705,
438,
37333,
844,
3256,
4277,
28,
4458,
2502,
10724,
13,
11134,
3256,
905,
62,
12286,
28,
17821,
11,
1037,
11639,
50,
1648,
844,
329,
5072,
3696,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
83,
3256,
705,
438,
400,
10126,
3256,
4277,
28,
15,
13,
24,
11,
905,
62,
12286,
28,
17821,
11,
1037,
11639,
44046,
4776,
329,
2134,
1108,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
67,
3256,
705,
438,
25202,
3256,
905,
62,
12286,
28,
17821,
11,
4277,
11639,
36166,
3256,
1037,
11639,
17563,
3335,
284,
779,
357,
36166,
11,
269,
15339,
25,
15,
11,
269,
15339,
25,
16,
11,
2644,
8,
11537,
198,
31,
12976,
13,
49140,
10786,
15414,
62,
16624,
3256,
299,
22046,
10779,
16,
11,
23838,
28,
62,
11201,
392,
62,
13655,
11,
2099,
28,
12976,
13,
15235,
7,
1069,
1023,
28,
25101,
11,
26672,
62,
482,
323,
28,
25101,
4008,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
537,
72,
3419,
198
] | 2.740956 | 3,621 |
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 |
# -*- coding: utf-8 -*-
import argparse
import os
import re
import shutil
import zipfile
parser = argparse.ArgumentParser()
parser.add_argument('directory', type=str, nargs=1)
group = parser.add_mutually_exclusive_group(required = True)
group.add_argument('--extract', action='store_true')
group.add_argument('--compress', action='store_true')
args = parser.parse_args()
for root, dirs, files in os.walk(args.directory[0]):
if args.extract:
for f in files:
if re.match(r".+\.(zip|stromx)", f):
path = os.path.join(root, f)
try:
with zipfile.ZipFile(path, 'r') as archive:
dirname = "{0}.extracted".format(f)
dirpath = os.path.join(root, dirname)
os.mkdir(dirpath)
archive.extractall(dirpath)
print "Created {0}".format(dirpath)
except zipfile.BadZipfile:
print "Failed to open {0}".format(path)
else:
for d in dirs:
if re.match(r".+\.(zip|stromx).extracted", d):
f = d[:-len(".extracted")]
filePath = os.path.join(root, f)
dirPath = os.path.join(root, d)
with zipfile.ZipFile(filePath, 'w') as archive:
for member in os.listdir(dirPath):
memberPath = os.path.join(root, d, member)
archive.write(memberPath, member)
shutil.rmtree(dirPath)
print "Created {0}".format(filePath) | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
11748,
1822,
29572,
198,
11748,
28686,
198,
11748,
302,
198,
11748,
4423,
346,
198,
11748,
19974,
7753,
198,
198,
48610,
796,
1822,
29572,
13,
28100,
1713,
46677,
3419,
198,
48610,
13,
2860,
62,
49140,
10786,
34945,
3256,
2099,
28,
2536,
11,
299,
22046,
28,
16,
8,
198,
8094,
796,
30751,
13,
2860,
62,
21973,
935,
62,
41195,
62,
8094,
7,
35827,
796,
6407,
8,
198,
8094,
13,
2860,
62,
49140,
10786,
438,
2302,
974,
3256,
2223,
11639,
8095,
62,
7942,
11537,
198,
8094,
13,
2860,
62,
49140,
10786,
438,
5589,
601,
3256,
2223,
11639,
8095,
62,
7942,
11537,
198,
198,
22046,
796,
30751,
13,
29572,
62,
22046,
3419,
198,
198,
1640,
6808,
11,
288,
17062,
11,
3696,
287,
28686,
13,
11152,
7,
22046,
13,
34945,
58,
15,
60,
2599,
198,
220,
220,
220,
611,
26498,
13,
2302,
974,
25,
198,
220,
220,
220,
220,
220,
220,
220,
329,
277,
287,
3696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
302,
13,
15699,
7,
81,
1911,
10,
59,
12195,
13344,
91,
20282,
87,
42501,
277,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3108,
796,
28686,
13,
6978,
13,
22179,
7,
15763,
11,
277,
8,
198,
220,
220,
220,
220,
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,
220,
220,
220,
220,
351,
19974,
7753,
13,
41729,
8979,
7,
6978,
11,
705,
81,
11537,
355,
15424,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26672,
3672,
796,
45144,
15,
27422,
2302,
20216,
1911,
18982,
7,
69,
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,
26672,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
15763,
11,
26672,
3672,
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,
28686,
13,
28015,
15908,
7,
15908,
6978,
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,
15424,
13,
2302,
974,
439,
7,
15908,
6978,
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,
3601,
366,
41972,
1391,
15,
92,
1911,
18982,
7,
15908,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
19974,
7753,
13,
22069,
41729,
7753,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
366,
37,
6255,
284,
1280,
1391,
15,
92,
1911,
18982,
7,
6978,
8,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
329,
288,
287,
288,
17062,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
302,
13,
15699,
7,
81,
1911,
10,
59,
12195,
13344,
91,
20282,
87,
737,
2302,
20216,
1600,
288,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
796,
288,
58,
21912,
11925,
7,
1911,
2302,
20216,
4943,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
15235,
796,
28686,
13,
6978,
13,
22179,
7,
15763,
11,
277,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26672,
15235,
796,
28686,
13,
6978,
13,
22179,
7,
15763,
11,
288,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
19974,
7753,
13,
41729,
8979,
7,
7753,
15235,
11,
705,
86,
11537,
355,
15424,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
2888,
287,
28686,
13,
4868,
15908,
7,
15908,
15235,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2888,
15235,
796,
28686,
13,
6978,
13,
22179,
7,
15763,
11,
288,
11,
2888,
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,
15424,
13,
13564,
7,
19522,
15235,
11,
2888,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4423,
346,
13,
81,
16762,
631,
7,
15908,
15235,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
366,
41972,
1391,
15,
92,
1911,
18982,
7,
7753,
15235,
8
] | 1.906921 | 838 |
"""TESTING STRATEGY
Function: generate(self)
1. Ensure the correct # of problems are generated.
2. Generated problems are of proper type
3. Ensure prediction problems are generated in order of
Filter->Row->Transformation->Aggregation
"""
import unittest
import pandas as pd
from mock import MagicMock, call, patch
from trane.core.prediction_problem_generator import PredictionProblemGenerator
from trane.ops.aggregation_ops import * # noqa
from trane.ops.filter_ops import * # noqa
from trane.ops.row_ops import * # noqa
from trane.ops.transformation_ops import * # noqa
from trane.utils.table_meta import TableMeta
class TestPredictionProblemGeneratorValidation(unittest.TestCase):
'''
TestPredictionProblemGeneratorValidation has its own class, because unlike
other tests, the ensure_valid_inputs method cannot be mocked out.
'''
def create_patch(self, name, return_value=None):
'''helper method for creating patches'''
patcher = patch(name)
thing = patcher.start()
self.addCleanup(patcher.stop)
if return_value:
thing.return_value = return_value
return thing
| [
37811,
51,
6465,
2751,
19269,
6158,
31212,
198,
22203,
25,
7716,
7,
944,
8,
198,
16,
13,
48987,
262,
3376,
1303,
286,
2761,
389,
7560,
13,
198,
17,
13,
2980,
515,
2761,
389,
286,
1774,
2099,
198,
18,
13,
48987,
17724,
2761,
389,
7560,
287,
1502,
286,
198,
220,
220,
25853,
3784,
25166,
3784,
8291,
1161,
3784,
46384,
43068,
198,
37811,
198,
11748,
555,
715,
395,
198,
198,
11748,
19798,
292,
355,
279,
67,
198,
6738,
15290,
1330,
6139,
44,
735,
11,
869,
11,
8529,
198,
198,
6738,
491,
1531,
13,
7295,
13,
28764,
2867,
62,
45573,
62,
8612,
1352,
1330,
46690,
40781,
8645,
1352,
198,
6738,
491,
1531,
13,
2840,
13,
9460,
43068,
62,
2840,
1330,
1635,
220,
1303,
645,
20402,
198,
6738,
491,
1531,
13,
2840,
13,
24455,
62,
2840,
1330,
1635,
220,
1303,
645,
20402,
198,
6738,
491,
1531,
13,
2840,
13,
808,
62,
2840,
1330,
1635,
220,
1303,
645,
20402,
198,
6738,
491,
1531,
13,
2840,
13,
7645,
1161,
62,
2840,
1330,
1635,
220,
1303,
645,
20402,
198,
6738,
491,
1531,
13,
26791,
13,
11487,
62,
28961,
1330,
8655,
48526,
628,
198,
198,
4871,
6208,
39156,
2867,
40781,
8645,
1352,
7762,
24765,
7,
403,
715,
395,
13,
14402,
20448,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
6208,
39156,
2867,
40781,
8645,
1352,
7762,
24765,
468,
663,
898,
1398,
11,
780,
5023,
198,
220,
220,
220,
584,
5254,
11,
262,
4155,
62,
12102,
62,
15414,
82,
2446,
2314,
307,
29180,
503,
13,
198,
220,
220,
220,
705,
7061,
628,
220,
220,
220,
825,
2251,
62,
17147,
7,
944,
11,
1438,
11,
1441,
62,
8367,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
2978,
525,
2446,
329,
4441,
16082,
7061,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1458,
2044,
796,
8529,
7,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1517,
796,
1458,
2044,
13,
9688,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2860,
32657,
929,
7,
8071,
2044,
13,
11338,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
1441,
62,
8367,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1517,
13,
7783,
62,
8367,
796,
1441,
62,
8367,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
1517,
198
] | 2.997409 | 386 |
"""The |pydwf.core.api.digital_spi| module implements a single class: |DigitalSpi|."""
from typing import List
from pydwf.core.dwf_device_subapi import AbstractDwfDeviceSubApi
from pydwf.core.auxiliary.typespec_ctypes import typespec_ctypes
from pydwf.core.auxiliary.constants import RESULT_SUCCESS
from pydwf.core.auxiliary.enum_types import DwfDigitalOutIdle
class DigitalSpi(AbstractDwfDeviceSubApi):
"""The |DigitalSpi| class provides access to the SPI protocol functionality of a |DwfDevice:link|.
Attention:
Users of |pydwf| should not create instances of this class directly.
It is instantiated during initialization of a |DwfDevice| and subsequently assigned to its public
|digitalSpi:link| attribute for access by the user.
"""
def reset(self) -> None:
"""Reset the SPI protocol support.
Raises:
DwfLibraryError: An error occurred while executing the *reset* operation.
"""
result = self.lib.FDwfDigitalSpiReset(self.hdwf)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
def frequencySet(self, frequency: float) -> None:
"""Set the SPI frequency, in Hz.
Parameters:
frequency (float): SPI frequency, in Hz.
Raises:
DwfLibraryError: An error occurred while executing the operation.
"""
result = self.lib.FDwfDigitalSpiFrequencySet(self.hdwf, frequency)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
def clockSet(self, channel_index: int) -> None:
"""Set the digital channel (pin) for the SPI clock signal.
Parameters:
channel_index (int):
The digital channel (pin) where the SPI clock signal will be generated.
Raises:
DwfLibraryError: An error occurred while executing the operation.
"""
result = self.lib.FDwfDigitalSpiClockSet(self.hdwf, channel_index)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
def dataSet(self, spi_data_bit: int, channel_index: int) -> None:
"""Set the digital channel (pin) for an SPI data bit.
Parameters:
spi_data_bit (int):
The data bit to configure:
* 0 — DQ0 / MOSI / SISO
* 1 — DQ1 / MISO
* 2 — DQ2
* 3 — DQ3
channel_index (int):
The digital channel (pin) for this data bit.
Raises:
DwfLibraryError: An error occurred while executing the operation.
"""
result = self.lib.FDwfDigitalSpiDataSet(self.hdwf, spi_data_bit, channel_index)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
def idleSet(self, spi_data_bit: int, idle_mode: DwfDigitalOutIdle) -> None:
"""Set the idle behavior for an SPI data bit.
Parameters:
spi_data_bit (int):
The data bit to configure:
* 0 — DQ0 / MOSI / SISO
* 1 — DQ1 / MISO
* 2 — DQ2
* 3 — DQ3
idle_mode (DwfDigitalOutIdle):
The idle behavior of this bit.
Raises:
DwfLibraryError: An error occurred while executing the operation.
"""
result = self.lib.FDwfDigitalSpiIdleSet(self.hdwf, spi_data_bit, idle_mode.value)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
def modeSet(self, spi_mode: int) -> None:
"""Set the SPI mode.
Parameters:
spi_mode (int):
The values for CPOL (polarity) and CPHA (phase) to use with the attached slave device:
* 0 — CPOL = 0, CPHA = 0
* 1 — CPOL = 0, CPHA = 1
* 2 — CPOL = 1, CPHA = 0
* 3 — CPOL = 1, CPHA = 1
Refer to the slave device's datasheet to select the correct value.
Raises:
DwfLibraryError: An error occurred while executing the operation.
"""
result = self.lib.FDwfDigitalSpiModeSet(self.hdwf, spi_mode)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
def orderSet(self, bit_order: int) -> None:
"""Set the SPI data bit order.
Parameters:
bit_order (int):
Select the bit order of each word sent out:
* 1 — MSB first, LSB last
* 0 — LSB first, MSB last
Raises:
DwfLibraryError: An error occurred while executing the operation.
"""
result = self.lib.FDwfDigitalSpiOrderSet(self.hdwf, bit_order)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
def select(self, channel_index: int, level: int) -> None:
"""Set the chip select (CS) status.
Parameters:
channel_index (int):
The digital channel (pin) for the Chip Select signal.
level (int):
The Chip Select level to configure.
* 0 — low
* 1 — high
* -1 — Z (high impedance)
The CS (chip select) is usually an active-low signal, from the
SPI bus master to a specific SPI slave device. Before starting a bus
request, the master should set CS to 0 for the chip it wants to talk to.
Usually, each slave on an SPI bus has its own CS line. At most one of them
should be selected at any time.
Raises:
DwfLibraryError: An error occurred while executing the operation.
"""
result = self.lib.FDwfDigitalSpiSelect(self.hdwf, channel_index, level)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
def writeRead(self, transfer_type: int, bits_per_word: int, tx: List[int]) -> List[int]:
"""Write and read multiple SPI data-words, with up to 8 bits per data-word.
Parameters:
transfer_type (int):
* 0 — SISO
* 1 — MOSI/MISO
* 2 — dual
* 4 — quad
bits_per_word (int):
The number of bits per data-word (1…8).
tx (List[int]):
The data-words to write.
Returns:
List[int]: The data-words received.
Raises:
DwfLibraryError: An error occurred while executing the write/read operation.
"""
tx_list = list(tx)
number_of_words = len(tx_list)
buffer_type = typespec_ctypes.c_unsigned_char * number_of_words
tx_buffer = buffer_type(*tx_list)
rx_buffer = buffer_type()
result = self.lib.FDwfDigitalSpiWriteRead(
self.hdwf,
transfer_type,
bits_per_word,
tx_buffer,
number_of_words,
rx_buffer,
number_of_words)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
rx_list = list(rx_buffer)
return rx_list
def writeRead16(self, transfer_type: int, bits_per_word: int, tx: List[int]) -> List[int]:
"""Write and read multiple SPI data-words, with up to 16 bits per data-word.
Parameters:
transfer_type (int):
* 0 — SISO
* 1 — MOSI/MISO
* 2 — dual
* 4 — quad
bits_per_word (int):
The number of bits per data-word (1…16).
tx (List[int]):
The data-words to write.
Returns:
List[int]: The data-words received.
Raises:
DwfLibraryError: An error occurred while executing the write/read operation.
"""
tx_list = list(tx)
number_of_words = len(tx_list)
buffer_type = typespec_ctypes.c_unsigned_short * number_of_words
tx_buffer = buffer_type(*tx_list)
rx_buffer = buffer_type()
result = self.lib.FDwfDigitalSpiWriteRead16(
self.hdwf,
transfer_type,
bits_per_word,
tx_buffer,
number_of_words,
rx_buffer,
number_of_words)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
rx_list = list(rx_buffer)
return rx_list
def writeRead32(self, transfer_type: int, bits_per_word: int, tx: List[int]) -> List[int]:
"""Write and read multiple SPI data-words, with up to 32 bits per data-word.
Parameters:
transfer_type (int):
* 0 — SISO
* 1 — MOSI/MISO
* 2 — dual
* 4 — quad
bits_per_word (int):
The number of bits per data-word (1…32).
tx (List[int]):
The data-words to write.
Returns:
List[int]: The data-words received.
Raises:
DwfLibraryError: An error occurred while executing the write/read operation.
"""
tx_list = list(tx)
number_of_words = len(tx_list)
buffer_type = typespec_ctypes.c_unsigned_int * number_of_words
tx_buffer = buffer_type(*tx_list)
rx_buffer = buffer_type()
result = self.lib.FDwfDigitalSpiWriteRead32(
self.hdwf,
transfer_type,
bits_per_word,
tx_buffer,
number_of_words,
rx_buffer,
number_of_words)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
rx_list = list(rx_buffer)
return rx_list
def read(self, transfer_type: int, bits_per_word: int, number_of_words: int) -> List[int]:
"""Read multiple SPI data-words, with up to 8 bits per data-word.
Parameters:
transfer_type (int):
* 0 — SISO
* 1 — MOSI/MISO
* 2 — dual
* 4 — quad
bits_per_word (int):
The number of bits per data-word (1…8).
number_of_words (int):
The number of data-words to read.
Returns:
List[int]: The data-words received.
Raises:
DwfLibraryError: An error occurred while executing the read operation.
"""
buffer_type = typespec_ctypes.c_unsigned_char * number_of_words
rx_buffer = buffer_type()
result = self.lib.FDwfDigitalSpiRead(
self.hdwf,
transfer_type,
bits_per_word,
rx_buffer,
number_of_words)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
rx_list = list(rx_buffer)
return rx_list
def read16(self, transfer_type: int, bits_per_word: int, number_of_words: int) -> List[int]:
"""Read multiple SPI data-words, with up to 16 bits per data-word.
Parameters:
transfer_type (int):
* 0 — SISO
* 1 — MOSI/MISO
* 2 — dual
* 4 — quad
bits_per_word (int):
The number of bits per data-word (1…16).
number_of_words (int):
The number of data-words to read.
Returns:
List[int]: The data-words received.
Raises:
DwfLibraryError: An error occurred while executing the read operation.
"""
buffer_type = typespec_ctypes.c_unsigned_short * number_of_words
rx_buffer = buffer_type()
result = self.lib.FDwfDigitalSpiRead16(
self.hdwf,
transfer_type,
bits_per_word,
rx_buffer,
number_of_words)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
rx_list = list(rx_buffer)
return rx_list
def read32(self, transfer_type: int, bits_per_word: int, number_of_words: int) -> List[int]:
"""Read multiple SPI data-words, with up to 32 bits per data-word.
Parameters:
transfer_type (int):
* 0 — SISO
* 1 — MOSI/MISO
* 2 — dual
* 4 — quad
bits_per_word (int):
The number of bits per data-word (1…32).
number_of_words (int):
The number of data-words to read.
Returns:
List[int]: The data-words received.
Raises:
DwfLibraryError: An error occurred while executing the read operation.
"""
buffer_type = typespec_ctypes.c_unsigned_int * number_of_words
rx_buffer = buffer_type()
result = self.lib.FDwfDigitalSpiRead32(
self.hdwf,
transfer_type,
bits_per_word,
rx_buffer,
number_of_words)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
rx_list = list(rx_buffer)
return rx_list
def readOne(self, transfer_type: int, bits_per_word: int) -> int:
"""Read a single SPI data-word, with up to 32 bits.
Parameters:
transfer_type (int):
* 0 — SISO
* 1 — MOSI/MISO
* 2 — dual
* 4 — quad
bits_per_word (int):
The number of bits of the data-word (1…32).
Returns:
int: The data-word received.
Raises:
DwfLibraryError: An error occurred while executing the read operation.
"""
c_rx = typespec_ctypes.c_unsigned_int()
result = self.lib.FDwfDigitalSpiReadOne(self.hdwf, transfer_type, bits_per_word, c_rx)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
rx = c_rx.value
return rx
def write(self, transfer_type: int, bits_per_word: int, tx: List[int]) -> None:
"""Write multiple SPI data-words, with up to 32 bits per data-word.
Parameters:
transfer_type (int):
* 0 — SISO
* 1 — MOSI/MISO
* 2 — dual
* 4 — quad
bits_per_word (int):
The number of bits per data-word (1…32).
tx (List[int]):
The data-words to write.
Raises:
DwfLibraryError: An error occurred while executing the write operation.
"""
tx_list = list(tx)
number_of_words = len(tx_list)
buffer_type = typespec_ctypes.c_unsigned_char * number_of_words
tx_buffer = buffer_type(*tx_list)
result = self.lib.FDwfDigitalSpiWrite(
self.hdwf,
transfer_type,
bits_per_word,
tx_buffer,
number_of_words)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
def write16(self, transfer_type: int, bits_per_word: int, tx: List[int]) -> None:
"""Write multiple SPI data-words, with up to 16 bits per data-word.
Parameters:
transfer_type (int):
* 0 — SISO
* 1 — MOSI/MISO
* 2 — dual
* 4 — quad
bits_per_word (int):
The number of bits per data-word (1…16).
tx (List[int]):
The data-words to write.
Raises:
DwfLibraryError: An error occurred while executing the write operation.
"""
tx_list = list(tx)
number_of_words = len(tx_list)
buffer_type = typespec_ctypes.c_unsigned_short * number_of_words
tx_buffer = buffer_type(*tx_list)
result = self.lib.FDwfDigitalSpiWrite16(
self.hdwf,
transfer_type,
bits_per_word,
tx_buffer,
number_of_words)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
def write32(self, transfer_type: int, bits_per_word: int, tx: List[int]) -> None:
"""Write multiple SPI data-words, with up to 32 bits per data-word.
Parameters:
transfer_type (int):
* 0 — SISO
* 1 — MOSI/MISO
* 2 — dual
* 4 — quad
bits_per_word (int):
The number of bits per data-word (1…32).
tx (List[int]):
The data-words to write.
Raises:
DwfLibraryError: An error occurred while executing the write operation.
"""
tx_list = list(tx)
number_of_words = len(tx_list)
buffer_type = typespec_ctypes.c_unsigned_int * number_of_words
tx_buffer = buffer_type(*tx_list)
result = self.lib.FDwfDigitalSpiWrite32(
self.hdwf,
transfer_type,
bits_per_word,
tx_buffer, number_of_words)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
def writeOne(self, transfer_type: int, bits_per_word: int, tx: int) -> None:
"""Write a single SPI data-word, with up to 32 bits.
Parameters:
transfer_type (int):
* 0 — SISO
* 1 — MOSI/MISO
* 2 — dual
* 4 — quad
bits_per_word (int):
The number of bits of the data-word (1…32).
tx (int):
The data-word to write.
Raises:
DwfLibraryError: An error occurred while executing the write operation.
"""
result = self.lib.FDwfDigitalSpiWriteOne(self.hdwf, transfer_type, bits_per_word, tx)
if result != RESULT_SUCCESS:
raise self.dwf.exception()
| [
37811,
464,
930,
79,
5173,
86,
69,
13,
7295,
13,
15042,
13,
34725,
62,
2777,
72,
91,
8265,
23986,
257,
2060,
1398,
25,
930,
27640,
4561,
72,
91,
526,
15931,
198,
198,
6738,
19720,
1330,
7343,
198,
198,
6738,
279,
5173,
86,
69,
13,
7295,
13,
67,
86,
69,
62,
25202,
62,
7266,
15042,
1330,
27741,
35,
86,
69,
24728,
7004,
32,
14415,
198,
198,
6738,
279,
5173,
86,
69,
13,
7295,
13,
14644,
28129,
13,
19199,
43106,
62,
310,
9497,
1330,
3858,
43106,
62,
310,
9497,
198,
6738,
279,
5173,
86,
69,
13,
7295,
13,
14644,
28129,
13,
9979,
1187,
1330,
15731,
16724,
62,
12564,
4093,
7597,
198,
6738,
279,
5173,
86,
69,
13,
7295,
13,
14644,
28129,
13,
44709,
62,
19199,
1330,
19113,
69,
27640,
7975,
7390,
293,
628,
198,
4871,
10231,
4561,
72,
7,
23839,
35,
86,
69,
24728,
7004,
32,
14415,
2599,
198,
220,
220,
220,
37227,
464,
930,
27640,
4561,
72,
91,
1398,
3769,
1895,
284,
262,
49091,
8435,
11244,
286,
257,
930,
35,
86,
69,
24728,
25,
8726,
91,
13,
628,
220,
220,
220,
47406,
25,
198,
220,
220,
220,
220,
220,
220,
220,
18987,
286,
930,
79,
5173,
86,
69,
91,
815,
407,
2251,
10245,
286,
428,
1398,
3264,
13,
628,
220,
220,
220,
220,
220,
220,
220,
632,
318,
9113,
12931,
1141,
37588,
286,
257,
930,
35,
86,
69,
24728,
91,
290,
12412,
8686,
284,
663,
1171,
198,
220,
220,
220,
220,
220,
220,
220,
930,
34725,
4561,
72,
25,
8726,
91,
11688,
329,
1895,
416,
262,
2836,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
13259,
7,
944,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
4965,
316,
262,
49091,
8435,
1104,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
1635,
42503,
9,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
4965,
316,
7,
944,
13,
31298,
86,
69,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
628,
220,
220,
220,
825,
8373,
7248,
7,
944,
11,
8373,
25,
12178,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
49091,
8373,
11,
287,
26109,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8373,
357,
22468,
2599,
49091,
8373,
11,
287,
26109,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
37,
28707,
7248,
7,
944,
13,
31298,
86,
69,
11,
8373,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
628,
220,
220,
220,
825,
8801,
7248,
7,
944,
11,
6518,
62,
9630,
25,
493,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
4875,
6518,
357,
11635,
8,
329,
262,
49091,
8801,
6737,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6518,
62,
9630,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
4875,
6518,
357,
11635,
8,
810,
262,
49091,
8801,
6737,
481,
307,
7560,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
44758,
7248,
7,
944,
13,
31298,
86,
69,
11,
6518,
62,
9630,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
628,
220,
220,
220,
825,
1366,
7248,
7,
944,
11,
599,
72,
62,
7890,
62,
2545,
25,
493,
11,
6518,
62,
9630,
25,
493,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
4875,
6518,
357,
11635,
8,
329,
281,
49091,
1366,
1643,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
599,
72,
62,
7890,
62,
2545,
357,
600,
2599,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1366,
1643,
284,
17425,
25,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
657,
851,
360,
48,
15,
1220,
337,
2640,
40,
1220,
311,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
352,
851,
360,
48,
16,
1220,
337,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
362,
851,
360,
48,
17,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
513,
851,
360,
48,
18,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6518,
62,
9630,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
4875,
6518,
357,
11635,
8,
329,
428,
1366,
1643,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
6601,
7248,
7,
944,
13,
31298,
86,
69,
11,
599,
72,
62,
7890,
62,
2545,
11,
6518,
62,
9630,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
628,
220,
220,
220,
825,
21696,
7248,
7,
944,
11,
599,
72,
62,
7890,
62,
2545,
25,
493,
11,
21696,
62,
14171,
25,
19113,
69,
27640,
7975,
7390,
293,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
21696,
4069,
329,
281,
49091,
1366,
1643,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
599,
72,
62,
7890,
62,
2545,
357,
600,
2599,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1366,
1643,
284,
17425,
25,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
657,
851,
360,
48,
15,
1220,
337,
2640,
40,
1220,
311,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
352,
851,
360,
48,
16,
1220,
337,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
362,
851,
360,
48,
17,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
513,
851,
360,
48,
18,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21696,
62,
14171,
357,
35,
86,
69,
27640,
7975,
7390,
293,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
21696,
4069,
286,
428,
1643,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
7390,
293,
7248,
7,
944,
13,
31298,
86,
69,
11,
599,
72,
62,
7890,
62,
2545,
11,
21696,
62,
14171,
13,
8367,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
628,
220,
220,
220,
825,
4235,
7248,
7,
944,
11,
599,
72,
62,
14171,
25,
493,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
49091,
4235,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
599,
72,
62,
14171,
357,
600,
2599,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
3815,
329,
16932,
3535,
357,
79,
6192,
414,
8,
290,
16932,
7801,
357,
40715,
8,
284,
779,
351,
262,
7223,
11778,
3335,
25,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
657,
851,
16932,
3535,
796,
657,
11,
16932,
7801,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
352,
851,
16932,
3535,
796,
657,
11,
16932,
7801,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
362,
851,
16932,
3535,
796,
352,
11,
16932,
7801,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
513,
851,
16932,
3535,
796,
352,
11,
16932,
7801,
796,
352,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33973,
284,
262,
11778,
3335,
338,
19395,
25473,
284,
2922,
262,
3376,
1988,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
19076,
7248,
7,
944,
13,
31298,
86,
69,
11,
599,
72,
62,
14171,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
628,
220,
220,
220,
825,
1502,
7248,
7,
944,
11,
1643,
62,
2875,
25,
493,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
49091,
1366,
1643,
1502,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1643,
62,
2875,
357,
600,
2599,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9683,
262,
1643,
1502,
286,
1123,
1573,
1908,
503,
25,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
352,
851,
6579,
33,
717,
11,
406,
16811,
938,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
657,
851,
406,
16811,
717,
11,
6579,
33,
938,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
18743,
7248,
7,
944,
13,
31298,
86,
69,
11,
1643,
62,
2875,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
628,
220,
220,
220,
825,
2922,
7,
944,
11,
6518,
62,
9630,
25,
493,
11,
1241,
25,
493,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
11594,
2922,
357,
7902,
8,
3722,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6518,
62,
9630,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
4875,
6518,
357,
11635,
8,
329,
262,
17869,
9683,
6737,
13,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1241,
357,
600,
2599,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
17869,
9683,
1241,
284,
17425,
13,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
220,
657,
851,
1877,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
220,
352,
851,
1029,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
532,
16,
851,
1168,
357,
8929,
47472,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
9429,
357,
35902,
2922,
8,
318,
3221,
281,
4075,
12,
9319,
6737,
11,
422,
262,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49091,
1323,
4958,
284,
257,
2176,
49091,
11778,
3335,
13,
7413,
3599,
257,
1323,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2581,
11,
262,
4958,
815,
900,
9429,
284,
657,
329,
262,
11594,
340,
3382,
284,
1561,
284,
13,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19672,
11,
1123,
11778,
319,
281,
49091,
1323,
468,
663,
898,
9429,
1627,
13,
1629,
749,
530,
286,
606,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
815,
307,
6163,
379,
597,
640,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
17563,
7,
944,
13,
31298,
86,
69,
11,
6518,
62,
9630,
11,
1241,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
628,
220,
220,
220,
825,
3551,
5569,
7,
944,
11,
4351,
62,
4906,
25,
493,
11,
10340,
62,
525,
62,
4775,
25,
493,
11,
27765,
25,
7343,
58,
600,
12962,
4613,
7343,
58,
600,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
16594,
290,
1100,
3294,
49091,
1366,
12,
10879,
11,
351,
510,
284,
807,
10340,
583,
1366,
12,
4775,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
657,
851,
311,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
352,
851,
337,
2640,
40,
14,
44,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
362,
851,
10668,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
604,
851,
15094,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1271,
286,
10340,
583,
1366,
12,
4775,
357,
16,
1399,
23,
737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27765,
357,
8053,
58,
600,
60,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1366,
12,
10879,
284,
3551,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7343,
58,
600,
5974,
383,
1366,
12,
10879,
2722,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
3551,
14,
961,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
4868,
796,
1351,
7,
17602,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
796,
18896,
7,
17602,
62,
4868,
8,
628,
220,
220,
220,
220,
220,
220,
220,
11876,
62,
4906,
796,
3858,
43106,
62,
310,
9497,
13,
66,
62,
43375,
62,
10641,
1635,
1271,
62,
1659,
62,
10879,
628,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
22252,
796,
11876,
62,
4906,
46491,
17602,
62,
4868,
8,
198,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
22252,
796,
11876,
62,
4906,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
16594,
5569,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31298,
86,
69,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
22252,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
22252,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
4868,
796,
1351,
7,
40914,
62,
22252,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
374,
87,
62,
4868,
628,
220,
220,
220,
825,
3551,
5569,
1433,
7,
944,
11,
4351,
62,
4906,
25,
493,
11,
10340,
62,
525,
62,
4775,
25,
493,
11,
27765,
25,
7343,
58,
600,
12962,
4613,
7343,
58,
600,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
16594,
290,
1100,
3294,
49091,
1366,
12,
10879,
11,
351,
510,
284,
1467,
10340,
583,
1366,
12,
4775,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
657,
851,
311,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
352,
851,
337,
2640,
40,
14,
44,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
362,
851,
10668,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
604,
851,
15094,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1271,
286,
10340,
583,
1366,
12,
4775,
357,
16,
1399,
1433,
737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27765,
357,
8053,
58,
600,
60,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1366,
12,
10879,
284,
3551,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7343,
58,
600,
5974,
383,
1366,
12,
10879,
2722,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
3551,
14,
961,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
4868,
796,
1351,
7,
17602,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
796,
18896,
7,
17602,
62,
4868,
8,
628,
220,
220,
220,
220,
220,
220,
220,
11876,
62,
4906,
796,
3858,
43106,
62,
310,
9497,
13,
66,
62,
43375,
62,
19509,
1635,
1271,
62,
1659,
62,
10879,
628,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
22252,
796,
11876,
62,
4906,
46491,
17602,
62,
4868,
8,
198,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
22252,
796,
11876,
62,
4906,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
16594,
5569,
1433,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31298,
86,
69,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
22252,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
22252,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
4868,
796,
1351,
7,
40914,
62,
22252,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
374,
87,
62,
4868,
628,
220,
220,
220,
825,
3551,
5569,
2624,
7,
944,
11,
4351,
62,
4906,
25,
493,
11,
10340,
62,
525,
62,
4775,
25,
493,
11,
27765,
25,
7343,
58,
600,
12962,
4613,
7343,
58,
600,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
16594,
290,
1100,
3294,
49091,
1366,
12,
10879,
11,
351,
510,
284,
3933,
10340,
583,
1366,
12,
4775,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
657,
851,
311,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
352,
851,
337,
2640,
40,
14,
44,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
362,
851,
10668,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
604,
851,
15094,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1271,
286,
10340,
583,
1366,
12,
4775,
357,
16,
1399,
2624,
737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27765,
357,
8053,
58,
600,
60,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1366,
12,
10879,
284,
3551,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7343,
58,
600,
5974,
383,
1366,
12,
10879,
2722,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
3551,
14,
961,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
4868,
796,
1351,
7,
17602,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
796,
18896,
7,
17602,
62,
4868,
8,
628,
220,
220,
220,
220,
220,
220,
220,
11876,
62,
4906,
796,
3858,
43106,
62,
310,
9497,
13,
66,
62,
43375,
62,
600,
1635,
1271,
62,
1659,
62,
10879,
628,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
22252,
796,
11876,
62,
4906,
46491,
17602,
62,
4868,
8,
198,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
22252,
796,
11876,
62,
4906,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
16594,
5569,
2624,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31298,
86,
69,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
22252,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
22252,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
4868,
796,
1351,
7,
40914,
62,
22252,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
374,
87,
62,
4868,
628,
220,
220,
220,
825,
1100,
7,
944,
11,
4351,
62,
4906,
25,
493,
11,
10340,
62,
525,
62,
4775,
25,
493,
11,
1271,
62,
1659,
62,
10879,
25,
493,
8,
4613,
7343,
58,
600,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
5569,
3294,
49091,
1366,
12,
10879,
11,
351,
510,
284,
807,
10340,
583,
1366,
12,
4775,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
657,
851,
311,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
352,
851,
337,
2640,
40,
14,
44,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
362,
851,
10668,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
604,
851,
15094,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1271,
286,
10340,
583,
1366,
12,
4775,
357,
16,
1399,
23,
737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1271,
286,
1366,
12,
10879,
284,
1100,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7343,
58,
600,
5974,
383,
1366,
12,
10879,
2722,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
1100,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
11876,
62,
4906,
796,
3858,
43106,
62,
310,
9497,
13,
66,
62,
43375,
62,
10641,
1635,
1271,
62,
1659,
62,
10879,
628,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
22252,
796,
11876,
62,
4906,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
5569,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31298,
86,
69,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
22252,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
4868,
796,
1351,
7,
40914,
62,
22252,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
374,
87,
62,
4868,
628,
220,
220,
220,
825,
1100,
1433,
7,
944,
11,
4351,
62,
4906,
25,
493,
11,
10340,
62,
525,
62,
4775,
25,
493,
11,
1271,
62,
1659,
62,
10879,
25,
493,
8,
4613,
7343,
58,
600,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
5569,
3294,
49091,
1366,
12,
10879,
11,
351,
510,
284,
1467,
10340,
583,
1366,
12,
4775,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
657,
851,
311,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
352,
851,
337,
2640,
40,
14,
44,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
362,
851,
10668,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
604,
851,
15094,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1271,
286,
10340,
583,
1366,
12,
4775,
357,
16,
1399,
1433,
737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1271,
286,
1366,
12,
10879,
284,
1100,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7343,
58,
600,
5974,
383,
1366,
12,
10879,
2722,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
1100,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
11876,
62,
4906,
796,
3858,
43106,
62,
310,
9497,
13,
66,
62,
43375,
62,
19509,
1635,
1271,
62,
1659,
62,
10879,
628,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
22252,
796,
11876,
62,
4906,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
5569,
1433,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31298,
86,
69,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
22252,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
4868,
796,
1351,
7,
40914,
62,
22252,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
374,
87,
62,
4868,
628,
220,
220,
220,
825,
1100,
2624,
7,
944,
11,
4351,
62,
4906,
25,
493,
11,
10340,
62,
525,
62,
4775,
25,
493,
11,
1271,
62,
1659,
62,
10879,
25,
493,
8,
4613,
7343,
58,
600,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
5569,
3294,
49091,
1366,
12,
10879,
11,
351,
510,
284,
3933,
10340,
583,
1366,
12,
4775,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
657,
851,
311,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
352,
851,
337,
2640,
40,
14,
44,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
362,
851,
10668,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
604,
851,
15094,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1271,
286,
10340,
583,
1366,
12,
4775,
357,
16,
1399,
2624,
737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1271,
286,
1366,
12,
10879,
284,
1100,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7343,
58,
600,
5974,
383,
1366,
12,
10879,
2722,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
1100,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
11876,
62,
4906,
796,
3858,
43106,
62,
310,
9497,
13,
66,
62,
43375,
62,
600,
1635,
1271,
62,
1659,
62,
10879,
628,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
22252,
796,
11876,
62,
4906,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
5569,
2624,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31298,
86,
69,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
22252,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
374,
87,
62,
4868,
796,
1351,
7,
40914,
62,
22252,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
374,
87,
62,
4868,
628,
220,
220,
220,
825,
1100,
3198,
7,
944,
11,
4351,
62,
4906,
25,
493,
11,
10340,
62,
525,
62,
4775,
25,
493,
8,
4613,
493,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
5569,
257,
2060,
49091,
1366,
12,
4775,
11,
351,
510,
284,
3933,
10340,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
657,
851,
311,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
352,
851,
337,
2640,
40,
14,
44,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
362,
851,
10668,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
604,
851,
15094,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1271,
286,
10340,
286,
262,
1366,
12,
4775,
357,
16,
1399,
2624,
737,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
493,
25,
383,
1366,
12,
4775,
2722,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
1100,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
269,
62,
40914,
796,
3858,
43106,
62,
310,
9497,
13,
66,
62,
43375,
62,
600,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
5569,
3198,
7,
944,
13,
31298,
86,
69,
11,
4351,
62,
4906,
11,
10340,
62,
525,
62,
4775,
11,
269,
62,
40914,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
374,
87,
796,
269,
62,
40914,
13,
8367,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
374,
87,
628,
220,
220,
220,
825,
3551,
7,
944,
11,
4351,
62,
4906,
25,
493,
11,
10340,
62,
525,
62,
4775,
25,
493,
11,
27765,
25,
7343,
58,
600,
12962,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
16594,
3294,
49091,
1366,
12,
10879,
11,
351,
510,
284,
3933,
10340,
583,
1366,
12,
4775,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
657,
851,
311,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
352,
851,
337,
2640,
40,
14,
44,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
362,
851,
10668,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
604,
851,
15094,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1271,
286,
10340,
583,
1366,
12,
4775,
357,
16,
1399,
2624,
737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27765,
357,
8053,
58,
600,
60,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1366,
12,
10879,
284,
3551,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
3551,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
4868,
796,
1351,
7,
17602,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
796,
18896,
7,
17602,
62,
4868,
8,
628,
220,
220,
220,
220,
220,
220,
220,
11876,
62,
4906,
796,
3858,
43106,
62,
310,
9497,
13,
66,
62,
43375,
62,
10641,
1635,
1271,
62,
1659,
62,
10879,
628,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
22252,
796,
11876,
62,
4906,
46491,
17602,
62,
4868,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
16594,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31298,
86,
69,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
22252,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
628,
220,
220,
220,
825,
3551,
1433,
7,
944,
11,
4351,
62,
4906,
25,
493,
11,
10340,
62,
525,
62,
4775,
25,
493,
11,
27765,
25,
7343,
58,
600,
12962,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
16594,
3294,
49091,
1366,
12,
10879,
11,
351,
510,
284,
1467,
10340,
583,
1366,
12,
4775,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
657,
851,
311,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
352,
851,
337,
2640,
40,
14,
44,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
362,
851,
10668,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
604,
851,
15094,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1271,
286,
10340,
583,
1366,
12,
4775,
357,
16,
1399,
1433,
737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27765,
357,
8053,
58,
600,
60,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1366,
12,
10879,
284,
3551,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
3551,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
4868,
796,
1351,
7,
17602,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
796,
18896,
7,
17602,
62,
4868,
8,
628,
220,
220,
220,
220,
220,
220,
220,
11876,
62,
4906,
796,
3858,
43106,
62,
310,
9497,
13,
66,
62,
43375,
62,
19509,
1635,
1271,
62,
1659,
62,
10879,
628,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
22252,
796,
11876,
62,
4906,
46491,
17602,
62,
4868,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
16594,
1433,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31298,
86,
69,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
22252,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
628,
220,
220,
220,
825,
3551,
2624,
7,
944,
11,
4351,
62,
4906,
25,
493,
11,
10340,
62,
525,
62,
4775,
25,
493,
11,
27765,
25,
7343,
58,
600,
12962,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
16594,
3294,
49091,
1366,
12,
10879,
11,
351,
510,
284,
3933,
10340,
583,
1366,
12,
4775,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
657,
851,
311,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
352,
851,
337,
2640,
40,
14,
44,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
362,
851,
10668,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
604,
851,
15094,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1271,
286,
10340,
583,
1366,
12,
4775,
357,
16,
1399,
2624,
737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27765,
357,
8053,
58,
600,
60,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1366,
12,
10879,
284,
3551,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
3551,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
4868,
796,
1351,
7,
17602,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
1659,
62,
10879,
796,
18896,
7,
17602,
62,
4868,
8,
628,
220,
220,
220,
220,
220,
220,
220,
11876,
62,
4906,
796,
3858,
43106,
62,
310,
9497,
13,
66,
62,
43375,
62,
600,
1635,
1271,
62,
1659,
62,
10879,
628,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
22252,
796,
11876,
62,
4906,
46491,
17602,
62,
4868,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
16594,
2624,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31298,
86,
69,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27765,
62,
22252,
11,
1271,
62,
1659,
62,
10879,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
628,
220,
220,
220,
825,
3551,
3198,
7,
944,
11,
4351,
62,
4906,
25,
493,
11,
10340,
62,
525,
62,
4775,
25,
493,
11,
27765,
25,
493,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
16594,
257,
2060,
49091,
1366,
12,
4775,
11,
351,
510,
284,
3933,
10340,
13,
628,
220,
220,
220,
220,
220,
220,
220,
40117,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4351,
62,
4906,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
657,
851,
311,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
352,
851,
337,
2640,
40,
14,
44,
40734,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
362,
851,
10668,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
604,
851,
15094,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10340,
62,
525,
62,
4775,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1271,
286,
10340,
286,
262,
1366,
12,
4775,
357,
16,
1399,
2624,
737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27765,
357,
600,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1366,
12,
4775,
284,
3551,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19113,
69,
23377,
12331,
25,
1052,
4049,
5091,
981,
23710,
262,
3551,
4905,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
8019,
13,
26009,
86,
69,
27640,
4561,
72,
16594,
3198,
7,
944,
13,
31298,
86,
69,
11,
4351,
62,
4906,
11,
10340,
62,
525,
62,
4775,
11,
27765,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
14512,
15731,
16724,
62,
12564,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2116,
13,
67,
86,
69,
13,
1069,
4516,
3419,
198
] | 2.004766 | 8,813 |
#created [email protected]
#created: May 2015
#Based on twitter bootstrap
import os
import sys
import re
import time
import datetime
# set an include path
sys.path.append("./_bootstrap/_scripts")
import zBMS
import scan
import whatsNew
# import repairMenu
outputFileName = "index.html"
ignoreFolders = ['trash', '_trash', '_bootstrap', '__pychache__', 'aspnet_client', '.vscode', '.git']
print("Starting to compile the Project Documentation...")
print("compiling static parts..")
projectconfig = scan.loadCSVFile('config.txt')
fin = open("./_bootstrap/_parts/1head.html", "r")
document = fin.read()
fin.close()
fout = open(outputFileName, "w")
fout.write(document)
fout.close()
scan.mergeFile(outputFileName, "./_bootstrap/_parts/2bodyStart.html")
# build the menu system
scan.mergeFile(outputFileName,"./_bootstrap/_parts/34menuHeader.html")
scan.buildDropDownMenu("dropdownmenu.txt", "./", ignoreFolders)
scan.mergeFile(outputFileName, "dropdownmenu.txt")
scan.mergeFile(outputFileName,"./_bootstrap/_parts/35menuSideBarHeader.html")
scan.buildSideBarMenu("sidebarmenu.txt", "./", ignoreFolders)
scan.mergeFile(outputFileName, "sidebarmenu.txt")
scan.mergeFile(outputFileName,"./_bootstrap/_parts/5title.html")
#create the whatsnew section
whatsNew.whatsnew("tmp.txt", "./", ignoreFolders)
# scan folders and sub folders and build all links...
scan.scanFolders("tmp.txt", "./", ignoreFolders)
now = datetime.datetime.now()
compileStr = projectconfig['projectid'] + " Updated: " + now.strftime("%d/%m/%y %H:%M")
print(compileStr)
scan.wordSearchReplace(outputFileName, "compileInfo", compileStr )
scan.wordSearchReplace(outputFileName, "projectname", projectconfig['projectname'] )
scan.wordSearchReplace(outputFileName, "projectsummary", projectconfig['projectsummary'] )
scan.wordSearchReplace(outputFileName, "browsertabname", projectconfig['browsertabname'] )
scan.mergeFile(outputFileName,"tmp.txt")
os.remove("tmp.txt")
#Overview pages...
scan.mergeFile(outputFileName,"./_bootstrap/_parts/about.html")
scan.mergeFile(outputFileName,"./_bootstrap/_parts/contact.html")
scan.mergeFile(outputFileName,"./_bootstrap/_parts/overview.html")
os.remove("dropdownmenu.txt")
os.remove("sidebarmenu.txt")
#readme section with 2 boxes
print("Adding readme...")
scan.mergeFile(outputFileName,"./_bootstrap/_parts/readme.html")
print("Adding the closing tags to the page...")
scan.mergeFile(outputFileName,"./_bootstrap/_parts/99lastPart.html")
# print("Zipping the entire Portal into a all-in-one so users can self serve...")
# zBMS.zipEntireBMS(".")
print("Complete;-)")
| [
2,
25598,
279,
13,
74,
1697,
4716,
31,
69,
1018,
305,
13,
785,
198,
2,
25598,
25,
1737,
1853,
198,
2,
15001,
319,
17044,
6297,
26418,
198,
198,
11748,
28686,
198,
11748,
25064,
198,
11748,
302,
198,
11748,
640,
198,
11748,
4818,
8079,
198,
198,
2,
900,
281,
2291,
3108,
198,
17597,
13,
6978,
13,
33295,
7,
1911,
47835,
18769,
26418,
47835,
46521,
4943,
220,
198,
11748,
1976,
33,
5653,
198,
11748,
9367,
197,
198,
11748,
45038,
3791,
198,
198,
2,
1330,
9185,
23381,
198,
22915,
8979,
5376,
796,
366,
9630,
13,
6494,
1,
198,
46430,
37,
727,
364,
796,
37250,
2213,
1077,
3256,
705,
62,
2213,
1077,
3256,
705,
62,
18769,
26418,
3256,
705,
834,
9078,
354,
4891,
834,
3256,
705,
5126,
3262,
62,
16366,
3256,
45302,
85,
1416,
1098,
3256,
45302,
18300,
20520,
198,
198,
4798,
7203,
22851,
284,
17632,
262,
4935,
43925,
9313,
8,
198,
4798,
7203,
5589,
4386,
9037,
3354,
492,
4943,
198,
198,
16302,
11250,
796,
9367,
13,
2220,
7902,
53,
8979,
10786,
11250,
13,
14116,
11537,
198,
198,
15643,
796,
1280,
7,
1911,
47835,
18769,
26418,
47835,
42632,
14,
16,
2256,
13,
6494,
1600,
366,
81,
4943,
198,
22897,
796,
957,
13,
961,
3419,
198,
15643,
13,
19836,
3419,
198,
69,
448,
796,
1280,
7,
22915,
8979,
5376,
11,
366,
86,
4943,
198,
69,
448,
13,
13564,
7,
22897,
8,
198,
69,
448,
13,
19836,
3419,
198,
198,
35836,
13,
647,
469,
8979,
7,
22915,
8979,
5376,
11,
366,
19571,
62,
18769,
26418,
47835,
42632,
14,
17,
2618,
10434,
13,
6494,
4943,
198,
198,
2,
1382,
262,
6859,
1080,
198,
35836,
13,
647,
469,
8979,
7,
22915,
8979,
5376,
553,
19571,
62,
18769,
26418,
47835,
42632,
14,
2682,
26272,
39681,
13,
6494,
4943,
198,
35836,
13,
11249,
26932,
8048,
23381,
7203,
14781,
2902,
26272,
13,
14116,
1600,
366,
19571,
1600,
8856,
37,
727,
364,
8,
198,
35836,
13,
647,
469,
8979,
7,
22915,
8979,
5376,
11,
366,
14781,
2902,
26272,
13,
14116,
4943,
198,
198,
35836,
13,
647,
469,
8979,
7,
22915,
8979,
5376,
553,
19571,
62,
18769,
26418,
47835,
42632,
14,
2327,
26272,
24819,
10374,
39681,
13,
6494,
4943,
198,
35836,
13,
11249,
24819,
10374,
23381,
7203,
1589,
65,
1670,
268,
84,
13,
14116,
1600,
366,
19571,
1600,
8856,
37,
727,
364,
8,
198,
35836,
13,
647,
469,
8979,
7,
22915,
8979,
5376,
11,
366,
1589,
65,
1670,
268,
84,
13,
14116,
4943,
198,
198,
35836,
13,
647,
469,
8979,
7,
22915,
8979,
5376,
553,
19571,
62,
18769,
26418,
47835,
42632,
14,
20,
7839,
13,
6494,
4943,
198,
198,
2,
17953,
262,
45038,
3605,
2665,
198,
1929,
1381,
3791,
13,
1929,
1381,
3605,
7203,
22065,
13,
14116,
1600,
366,
19571,
1600,
8856,
37,
727,
364,
8,
198,
198,
2,
9367,
24512,
290,
850,
24512,
290,
1382,
477,
6117,
986,
198,
35836,
13,
35836,
37,
727,
364,
7203,
22065,
13,
14116,
1600,
366,
19571,
1600,
8856,
37,
727,
364,
8,
198,
198,
2197,
796,
4818,
8079,
13,
19608,
8079,
13,
2197,
3419,
198,
5589,
576,
13290,
796,
1628,
11250,
17816,
16302,
312,
20520,
1343,
366,
19433,
25,
366,
1343,
783,
13,
2536,
31387,
7203,
4,
67,
14,
4,
76,
14,
4,
88,
4064,
39,
25,
4,
44,
4943,
198,
4798,
7,
5589,
576,
13290,
8,
198,
35836,
13,
4775,
18243,
3041,
5372,
7,
22915,
8979,
5376,
11,
366,
5589,
576,
12360,
1600,
17632,
13290,
1267,
198,
35836,
13,
4775,
18243,
3041,
5372,
7,
22915,
8979,
5376,
11,
366,
16302,
3672,
1600,
1628,
11250,
17816,
16302,
3672,
20520,
1267,
198,
35836,
13,
4775,
18243,
3041,
5372,
7,
22915,
8979,
5376,
11,
366,
16302,
49736,
1600,
1628,
11250,
17816,
16302,
49736,
20520,
1267,
198,
35836,
13,
4775,
18243,
3041,
5372,
7,
22915,
8979,
5376,
11,
366,
65,
8516,
861,
397,
3672,
1600,
1628,
11250,
17816,
65,
8516,
861,
397,
3672,
20520,
1267,
198,
198,
35836,
13,
647,
469,
8979,
7,
22915,
8979,
5376,
553,
22065,
13,
14116,
4943,
198,
418,
13,
28956,
7203,
22065,
13,
14116,
4943,
198,
198,
2,
29064,
5468,
986,
198,
35836,
13,
647,
469,
8979,
7,
22915,
8979,
5376,
553,
19571,
62,
18769,
26418,
47835,
42632,
14,
10755,
13,
6494,
4943,
198,
35836,
13,
647,
469,
8979,
7,
22915,
8979,
5376,
553,
19571,
62,
18769,
26418,
47835,
42632,
14,
32057,
13,
6494,
4943,
198,
35836,
13,
647,
469,
8979,
7,
22915,
8979,
5376,
553,
19571,
62,
18769,
26418,
47835,
42632,
14,
2502,
1177,
13,
6494,
4943,
198,
198,
418,
13,
28956,
7203,
14781,
2902,
26272,
13,
14116,
4943,
198,
418,
13,
28956,
7203,
1589,
65,
1670,
268,
84,
13,
14116,
4943,
198,
198,
2,
961,
1326,
2665,
351,
362,
10559,
198,
4798,
7203,
32901,
1100,
1326,
9313,
8,
198,
35836,
13,
647,
469,
8979,
7,
22915,
8979,
5376,
553,
19571,
62,
18769,
26418,
47835,
42632,
14,
961,
1326,
13,
6494,
4943,
198,
198,
4798,
7203,
32901,
262,
9605,
15940,
284,
262,
2443,
9313,
8,
198,
35836,
13,
647,
469,
8979,
7,
22915,
8979,
5376,
553,
19571,
62,
18769,
26418,
47835,
42632,
14,
2079,
12957,
7841,
13,
6494,
4943,
198,
198,
2,
3601,
7203,
57,
4501,
262,
2104,
25663,
656,
257,
477,
12,
259,
12,
505,
523,
2985,
460,
2116,
4691,
9313,
8,
198,
2,
1976,
33,
5653,
13,
13344,
14539,
557,
33,
5653,
7203,
19570,
198,
198,
4798,
7203,
20988,
26,
25106,
4943,
198
] | 2.937642 | 882 |
import abc
from abc import ABC
from typing import Any
import numpy as np
| [
11748,
450,
66,
198,
6738,
450,
66,
1330,
9738,
198,
6738,
19720,
1330,
4377,
198,
198,
11748,
299,
32152,
355,
45941,
628
] | 3.409091 | 22 |
from srcs.environments.MazeEnv import MazeEnv
from srcs.agent.POMCP import POMCP
import time
import math
if __name__ == "__main__":
# Create the environment
MAZE_FILE_NAME = "5.maze"
env = MazeEnv("./mazes/" + MAZE_FILE_NAME)
LOCAL_MINIMA = env.get_local_minima(MAZE_FILE_NAME)
S = env.states_list()
A = env.actions_list()
O = env.observations_list()
# Hyper-parameters
NB_SIMULATIONS = 100
NB_ACTION_PERCEPTION_CYCLES = 20
GAMMA = 0.9
TIMEOUT = 500
NO_PARTICLES = 100
EXP_CONST = 5
# Performance tracking variables
exec_times = []
perf = [0 for i in range(0, len(LOCAL_MINIMA) + 2)]
# Run the simulations
for j in range(0, NB_SIMULATIONS):
# Create the agent
agent = POMCP(S, A, O, env, c=EXP_CONST, gamma=GAMMA, timeout=TIMEOUT, no_particles=NO_PARTICLES)
# Action-perception cycles
start = time.time()
# env.render() # TODO
for t in range(0, NB_ACTION_PERCEPTION_CYCLES):
action = agent.search()
obs, _, done = env.step(action)
# env.render() # TODO
if done:
break
agent.update_belief(action, obs)
agent.tree.prune_after_action(action, obs)
# Track execution time and performance
exec_times.append(time.time() - start)
perf = env.track(perf, LOCAL_MINIMA)
# Reset the environment to its initial state
env.reset()
# Display hyperparameters setting
print("MAZE_FILE_NAME={}".format(MAZE_FILE_NAME))
print("NB_SIMULATIONS={}".format(NB_SIMULATIONS))
print("NB_ACTION_PERCEPTION_CYCLES={}".format(NB_ACTION_PERCEPTION_CYCLES))
print("GAMMA={}".format(GAMMA))
print("TIMEOUT={}".format(TIMEOUT))
print("NO_PARTICLES={}".format(NO_PARTICLES))
print("EXP_CONST={}".format(EXP_CONST))
print()
# Display execution time and performance of the POMCP agent
avg = sum(exec_times) / len(exec_times)
var = sum((x - avg)**2 for x in exec_times) / (len(exec_times) - 1)
print("Time: {} +/- {}\n".format(avg, math.sqrt(var)))
total = sum(perf)
print("P(global): {}".format(perf[len(perf) - 1] / total))
for i in range(0, len(LOCAL_MINIMA)):
print("P(local {}): {}".format(i + 1, perf[i + 1] / total))
print("P(other): {}".format(perf[0] / total))
| [
6738,
12351,
82,
13,
268,
12103,
13,
44,
6201,
4834,
85,
1330,
33412,
4834,
85,
198,
6738,
12351,
82,
13,
25781,
13,
47,
2662,
8697,
1330,
350,
2662,
8697,
198,
11748,
640,
198,
11748,
10688,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
628,
220,
220,
220,
1303,
13610,
262,
2858,
198,
220,
220,
220,
8779,
21211,
62,
25664,
62,
20608,
796,
366,
20,
13,
76,
6201,
1,
198,
220,
220,
220,
17365,
796,
33412,
4834,
85,
7,
1911,
14,
76,
36096,
30487,
1343,
8779,
21211,
62,
25664,
62,
20608,
8,
198,
220,
220,
220,
37347,
1847,
62,
23678,
3955,
32,
796,
17365,
13,
1136,
62,
12001,
62,
1084,
8083,
7,
5673,
21211,
62,
25664,
62,
20608,
8,
198,
220,
220,
220,
311,
796,
17365,
13,
27219,
62,
4868,
3419,
198,
220,
220,
220,
317,
796,
17365,
13,
4658,
62,
4868,
3419,
198,
220,
220,
220,
440,
796,
17365,
13,
672,
3168,
602,
62,
4868,
3419,
628,
220,
220,
220,
1303,
15079,
12,
17143,
7307,
198,
220,
220,
220,
41354,
62,
48913,
6239,
18421,
796,
1802,
198,
220,
220,
220,
41354,
62,
44710,
62,
18973,
42006,
2849,
62,
34,
56,
5097,
1546,
796,
1160,
198,
220,
220,
220,
49965,
5673,
796,
657,
13,
24,
198,
220,
220,
220,
20460,
12425,
796,
5323,
198,
220,
220,
220,
8005,
62,
30709,
2149,
28378,
796,
1802,
198,
220,
220,
220,
25703,
62,
10943,
2257,
796,
642,
628,
220,
220,
220,
1303,
15193,
9646,
9633,
198,
220,
220,
220,
2452,
62,
22355,
796,
17635,
198,
220,
220,
220,
23035,
796,
685,
15,
329,
1312,
287,
2837,
7,
15,
11,
18896,
7,
29701,
1847,
62,
23678,
3955,
32,
8,
1343,
362,
15437,
628,
220,
220,
220,
1303,
5660,
262,
27785,
198,
220,
220,
220,
329,
474,
287,
2837,
7,
15,
11,
41354,
62,
48913,
6239,
18421,
2599,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
13610,
262,
5797,
198,
220,
220,
220,
220,
220,
220,
220,
5797,
796,
350,
2662,
8697,
7,
50,
11,
317,
11,
440,
11,
17365,
11,
269,
28,
49864,
62,
10943,
2257,
11,
34236,
28,
38,
2390,
5673,
11,
26827,
28,
34694,
12425,
11,
645,
62,
3911,
2983,
28,
15285,
62,
30709,
2149,
28378,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
7561,
12,
525,
4516,
16006,
198,
220,
220,
220,
220,
220,
220,
220,
923,
796,
640,
13,
2435,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
17365,
13,
13287,
3419,
220,
1303,
16926,
46,
198,
220,
220,
220,
220,
220,
220,
220,
329,
256,
287,
2837,
7,
15,
11,
41354,
62,
44710,
62,
18973,
42006,
2849,
62,
34,
56,
5097,
1546,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2223,
796,
5797,
13,
12947,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10201,
11,
4808,
11,
1760,
796,
17365,
13,
9662,
7,
2673,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
17365,
13,
13287,
3419,
220,
1303,
16926,
46,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1760,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5797,
13,
19119,
62,
6667,
2086,
7,
2673,
11,
10201,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5797,
13,
21048,
13,
1050,
1726,
62,
8499,
62,
2673,
7,
2673,
11,
10201,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
17762,
9706,
640,
290,
2854,
198,
220,
220,
220,
220,
220,
220,
220,
2452,
62,
22355,
13,
33295,
7,
2435,
13,
2435,
3419,
532,
923,
8,
198,
220,
220,
220,
220,
220,
220,
220,
23035,
796,
17365,
13,
11659,
7,
525,
69,
11,
37347,
1847,
62,
23678,
3955,
32,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
30027,
262,
2858,
284,
663,
4238,
1181,
198,
220,
220,
220,
220,
220,
220,
220,
17365,
13,
42503,
3419,
628,
220,
220,
220,
1303,
16531,
8718,
17143,
7307,
4634,
198,
220,
220,
220,
3601,
7203,
5673,
21211,
62,
25664,
62,
20608,
34758,
92,
1911,
18982,
7,
5673,
21211,
62,
25664,
62,
20608,
4008,
198,
220,
220,
220,
3601,
7203,
32819,
62,
48913,
6239,
18421,
34758,
92,
1911,
18982,
7,
32819,
62,
48913,
6239,
18421,
4008,
198,
220,
220,
220,
3601,
7203,
32819,
62,
44710,
62,
18973,
42006,
2849,
62,
34,
56,
5097,
1546,
34758,
92,
1911,
18982,
7,
32819,
62,
44710,
62,
18973,
42006,
2849,
62,
34,
56,
5097,
1546,
4008,
198,
220,
220,
220,
3601,
7203,
38,
2390,
5673,
34758,
92,
1911,
18982,
7,
38,
2390,
5673,
4008,
198,
220,
220,
220,
3601,
7203,
34694,
12425,
34758,
92,
1911,
18982,
7,
34694,
12425,
4008,
198,
220,
220,
220,
3601,
7203,
15285,
62,
30709,
2149,
28378,
34758,
92,
1911,
18982,
7,
15285,
62,
30709,
2149,
28378,
4008,
198,
220,
220,
220,
3601,
7203,
49864,
62,
10943,
2257,
34758,
92,
1911,
18982,
7,
49864,
62,
10943,
2257,
4008,
198,
220,
220,
220,
3601,
3419,
628,
220,
220,
220,
1303,
16531,
9706,
640,
290,
2854,
286,
262,
350,
2662,
8697,
5797,
198,
220,
220,
220,
42781,
796,
2160,
7,
18558,
62,
22355,
8,
1220,
18896,
7,
18558,
62,
22355,
8,
198,
220,
220,
220,
1401,
796,
2160,
19510,
87,
532,
42781,
8,
1174,
17,
329,
2124,
287,
2452,
62,
22355,
8,
1220,
357,
11925,
7,
18558,
62,
22355,
8,
532,
352,
8,
198,
220,
220,
220,
3601,
7203,
7575,
25,
23884,
29694,
23884,
59,
77,
1911,
18982,
7,
615,
70,
11,
10688,
13,
31166,
17034,
7,
7785,
22305,
628,
220,
220,
220,
2472,
796,
2160,
7,
525,
69,
8,
198,
220,
220,
220,
3601,
7203,
47,
7,
20541,
2599,
23884,
1911,
18982,
7,
525,
69,
58,
11925,
7,
525,
69,
8,
532,
352,
60,
1220,
2472,
4008,
198,
220,
220,
220,
329,
1312,
287,
2837,
7,
15,
11,
18896,
7,
29701,
1847,
62,
23678,
3955,
32,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
47,
7,
12001,
23884,
2599,
23884,
1911,
18982,
7,
72,
1343,
352,
11,
23035,
58,
72,
1343,
352,
60,
1220,
2472,
4008,
198,
220,
220,
220,
3601,
7203,
47,
7,
847,
2599,
23884,
1911,
18982,
7,
525,
69,
58,
15,
60,
1220,
2472,
4008,
198
] | 2.248106 | 1,056 |
import numpy as np
from os import getcwd, path
from cv2 import imread, IMREAD_COLOR
def read_image(path=None):
'''
Read an image from a path
Path is relative path or full path
'''
base_path = getcwd()
full_path = path.join(base_path,path)
if base_path in path:
full_path = path
if not(path.exists(full_path)):
print('The path \" {}\"does not exist. Make just that the file exist').fromat(full_path)
return None
else:
image = imread(full_path,IMREAD_COLOR)
return image
| [
11748,
299,
32152,
355,
45941,
198,
6738,
28686,
1330,
651,
66,
16993,
11,
3108,
198,
6738,
269,
85,
17,
1330,
545,
961,
11,
8959,
15675,
62,
46786,
198,
198,
4299,
1100,
62,
9060,
7,
6978,
28,
14202,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
4149,
281,
2939,
422,
257,
3108,
198,
220,
220,
220,
220,
220,
220,
220,
10644,
318,
3585,
3108,
393,
1336,
3108,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
2779,
62,
6978,
796,
651,
66,
16993,
3419,
198,
220,
220,
220,
1336,
62,
6978,
796,
3108,
13,
22179,
7,
8692,
62,
6978,
11,
6978,
8,
198,
220,
220,
220,
611,
2779,
62,
6978,
287,
3108,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
6978,
796,
3108,
198,
220,
220,
220,
220,
198,
220,
220,
220,
611,
407,
7,
6978,
13,
1069,
1023,
7,
12853,
62,
6978,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
464,
3108,
19990,
23884,
7879,
22437,
407,
2152,
13,
6889,
655,
326,
262,
2393,
2152,
27691,
6738,
265,
7,
12853,
62,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2939,
796,
545,
961,
7,
12853,
62,
6978,
11,
3955,
15675,
62,
46786,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2939,
198
] | 2.35865 | 237 |
# Copyright 2018-2020 Xanadu Quantum Technologies Inc.
# 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.
"""Unit tests for the autograd interface"""
import pytest
from pennylane import numpy as np
import pennylane as qml
from pennylane.tape import JacobianTape
from pennylane.tape.interfaces.autograd import AutogradInterface
class TestAutogradQuantumTape:
"""Test the autograd interface applied to a tape"""
def test_interface_str(self):
"""Test that the interface string is correctly identified as autograd"""
with AutogradInterface.apply(JacobianTape()) as tape:
qml.RX(0.5, wires=0)
qml.expval(qml.PauliX(0))
assert tape.interface == "autograd"
assert isinstance(tape, AutogradInterface)
def test_get_parameters(self):
"""Test that the get_parameters function correctly gets the trainable parameters and all
parameters, depending on the trainable_only argument"""
a = np.array(0.1, requires_grad=True)
b = np.array(0.2, requires_grad=False)
c = np.array(0.3, requires_grad=True)
d = np.array(0.4, requires_grad=False)
with AutogradInterface.apply(JacobianTape()) as tape:
qml.Rot(a, b, c, wires=0)
qml.RX(d, wires=1)
qml.CNOT(wires=[0, 1])
qml.expval(qml.PauliX(0))
assert tape.trainable_params == {0, 2}
assert np.all(tape.get_parameters(trainable_only=True) == [a, c])
assert np.all(tape.get_parameters(trainable_only=False) == [a, b, c, d])
def test_execution(self):
"""Test execution"""
a = np.array(0.1, requires_grad=True)
b = np.array(0.2, requires_grad=False)
dev = qml.device("default.qubit", wires=1)
res = cost(a, b, device=dev)
assert res.shape == (1,)
def test_scalar_jacobian(self, tol):
"""Test scalar jacobian calculation"""
a = np.array(0.1, requires_grad=True)
dev = qml.device("default.qubit", wires=2)
res = qml.jacobian(cost)(a, device=dev)
assert res.shape == (1,)
# compare to standard tape jacobian
with JacobianTape() as tape:
qml.RY(a, wires=0)
qml.expval(qml.PauliZ(0))
tape.trainable_params = {0}
expected = tape.jacobian(dev)
assert expected.shape == (1, 1)
assert np.allclose(res, np.squeeze(expected), atol=tol, rtol=0)
def test_jacobian(self, tol):
"""Test jacobian calculation"""
a = np.array(0.1, requires_grad=True)
b = np.array(0.2, requires_grad=True)
dev = qml.device("default.qubit", wires=2)
res = cost(a, b, device=dev)
expected = [np.cos(a), -np.cos(a) * np.sin(b)]
assert np.allclose(res, expected, atol=tol, rtol=0)
res = qml.jacobian(cost)(a, b, device=dev)
assert res.shape == (2, 2)
expected = [[-np.sin(a), 0], [np.sin(a) * np.sin(b), -np.cos(a) * np.cos(b)]]
assert np.allclose(res, expected, atol=tol, rtol=0)
def test_jacobian_options(self, mocker, tol):
"""Test setting jacobian options"""
spy = mocker.spy(JacobianTape, "numeric_pd")
a = np.array([0.1, 0.2], requires_grad=True)
dev = qml.device("default.qubit", wires=1)
res = qml.jacobian(cost)(a, device=dev)
for args in spy.call_args_list:
assert args[1]["order"] == 2
assert args[1]["h"] == 1e-8
def test_reusing_quantum_tape(self, tol):
"""Test re-using a quantum tape by passing new parameters"""
a = np.array(0.1, requires_grad=True)
b = np.array(0.2, requires_grad=True)
dev = qml.device("default.qubit", wires=2)
with AutogradInterface.apply(JacobianTape()) as tape:
qml.RY(a, wires=0)
qml.RX(b, wires=1)
qml.CNOT(wires=[0, 1])
qml.expval(qml.PauliZ(0))
qml.expval(qml.PauliY(1))
assert tape.trainable_params == {0, 1}
jac_fn = qml.jacobian(cost)
jac = jac_fn(a, b)
a = np.array(0.54, requires_grad=True)
b = np.array(0.8, requires_grad=True)
res2 = cost(2 * a, b)
expected = [np.cos(2 * a), -np.cos(2 * a) * np.sin(b)]
assert np.allclose(res2, expected, atol=tol, rtol=0)
jac_fn = qml.jacobian(lambda a, b: cost(2 * a, b))
jac = jac_fn(a, b)
expected = [
[-2 * np.sin(2 * a), 0],
[2 * np.sin(2 * a) * np.sin(b), -np.cos(2 * a) * np.cos(b)],
]
assert np.allclose(jac, expected, atol=tol, rtol=0)
def test_classical_processing(self, tol):
"""Test classical processing within the quantum tape"""
a = np.array(0.1, requires_grad=True)
b = np.array(0.2, requires_grad=False)
c = np.array(0.3, requires_grad=True)
dev = qml.device("default.qubit", wires=2)
res = qml.jacobian(cost)(a, b, c, device=dev)
assert res.shape == (1, 2)
def test_no_trainable_parameters(self, tol):
"""Test evaluation and Jacobian if there are no trainable parameters"""
a = np.array(0.1, requires_grad=False)
b = np.array(0.2, requires_grad=False)
dev = qml.device("default.qubit", wires=2)
res = cost(a, b, device=dev)
assert res.shape == (2,)
res = qml.jacobian(cost)(a, b, device=dev)
assert not res
with pytest.warns(UserWarning, match="Output seems independent"):
res = qml.grad(loss)(a, b)
assert not res
def test_matrix_parameter(self, tol):
"""Test that the autograd interface works correctly
with a matrix parameter"""
U = np.array([[0, 1], [1, 0]], requires_grad=False)
a = np.array(0.1, requires_grad=True)
dev = qml.device("default.qubit", wires=2)
res = cost(a, U, device=dev)
assert np.allclose(res, -np.cos(a), atol=tol, rtol=0)
jac_fn = qml.jacobian(cost)
res = jac_fn(a, U, device=dev)
assert np.allclose(res, np.sin(a), atol=tol, rtol=0)
def test_differentiable_expand(self, mocker, tol):
"""Test that operation and nested tapes expansion
is differentiable"""
mock = mocker.patch.object(qml.operation.Operation, "do_check_domain", False)
a = np.array(0.1, requires_grad=False)
p = np.array([0.1, 0.2, 0.3], requires_grad=True)
dev = qml.device("default.qubit", wires=1)
res = cost_fn(a, p, device=dev)
expected = np.cos(a) * np.cos(p[1]) * np.sin(p[0]) + np.sin(a) * (
np.cos(p[2]) * np.sin(p[1]) + np.cos(p[0]) * np.cos(p[1]) * np.sin(p[2])
)
assert np.allclose(res, expected, atol=tol, rtol=0)
jac_fn = qml.jacobian(cost_fn)
res = jac_fn(a, p, device=dev)
expected = np.array(
[
np.cos(p[1]) * (np.cos(a) * np.cos(p[0]) - np.sin(a) * np.sin(p[0]) * np.sin(p[2])),
np.cos(p[1]) * np.cos(p[2]) * np.sin(a)
- np.sin(p[1])
* (np.cos(a) * np.sin(p[0]) + np.cos(p[0]) * np.sin(a) * np.sin(p[2])),
np.sin(a)
* (np.cos(p[0]) * np.cos(p[1]) * np.cos(p[2]) - np.sin(p[1]) * np.sin(p[2])),
]
)
assert np.allclose(res, expected, atol=tol, rtol=0)
def test_probability_differentiation(self, tol):
"""Tests correct output shape and evaluation for a tape
with prob outputs"""
dev = qml.device("default.qubit", wires=2)
x = np.array(0.543, requires_grad=True)
y = np.array(-0.654, requires_grad=True)
res = cost(x, y, device=dev)
expected = np.array(
[
[np.cos(x / 2) ** 2, np.sin(x / 2) ** 2],
[(1 + np.cos(x) * np.cos(y)) / 2, (1 - np.cos(x) * np.cos(y)) / 2],
]
)
assert np.allclose(res, expected, atol=tol, rtol=0)
jac_fn = qml.jacobian(cost)
res = jac_fn(x, y, device=dev)
assert res.shape == (2, 2, 2)
expected = np.array(
[
[[-np.sin(x) / 2, 0], [-np.sin(x) * np.cos(y) / 2, -np.cos(x) * np.sin(y) / 2]],
[
[np.sin(x) / 2, 0],
[np.cos(y) * np.sin(x) / 2, np.cos(x) * np.sin(y) / 2],
],
]
)
assert np.allclose(res, expected, atol=tol, rtol=0)
def test_ragged_differentiation(self, tol):
"""Tests correct output shape and evaluation for a tape
with prob and expval outputs"""
dev = qml.device("default.qubit", wires=2)
x = np.array(0.543, requires_grad=True)
y = np.array(-0.654, requires_grad=True)
res = cost(x, y, device=dev)
expected = np.array(
[np.cos(x), (1 + np.cos(x) * np.cos(y)) / 2, (1 - np.cos(x) * np.cos(y)) / 2]
)
assert np.allclose(res, expected, atol=tol, rtol=0)
jac_fn = qml.jacobian(cost)
res = jac_fn(x, y, device=dev)
expected = np.array(
[
[-np.sin(x), 0],
[-np.sin(x) * np.cos(y) / 2, -np.cos(x) * np.sin(y) / 2],
[np.cos(y) * np.sin(x) / 2, np.cos(x) * np.sin(y) / 2],
]
)
assert np.allclose(res, expected, atol=tol, rtol=0)
def test_sampling(self):
"""Test sampling works as expected"""
dev = qml.device("default.qubit", wires=2, shots=10)
x = np.array(0.543, requires_grad=True)
res = cost(x, device=dev)
assert res.shape == (2, 10)
class TestAutogradPassthru:
"""Test that the quantum tape works with an autograd passthru
device.
These tests are very similar to the tests above, with three key differences:
* We do **not** apply the autograd interface. These tapes simply use passthru
backprop, no custom gradient registration needed.
* We do not test the trainable_params attribute. Since these tapes have no
autograd interface, the tape does not need to bookkeep which parameters
are trainable; this is done by autograd internally.
* We use mock.spy to ensure that the tape's Jacobian method is not being called.
"""
def test_execution(self):
"""Test execution"""
a = np.array(0.1, requires_grad=True)
b = np.array(0.2, requires_grad=False)
dev = qml.device("default.qubit.autograd", wires=1)
res = cost(a, b, device=dev)
assert res.shape == (1,)
def test_scalar_jacobian(self, tol, mocker):
"""Test scalar jacobian calculation"""
spy = mocker.spy(JacobianTape, "jacobian")
a = np.array(0.1, requires_grad=True)
dev = qml.device("default.qubit.autograd", wires=2)
res = qml.jacobian(cost)(a, device=dev)
spy.assert_not_called()
assert res.shape == (1,)
# compare to standard tape jacobian
with JacobianTape() as tape:
qml.RY(a, wires=0)
qml.expval(qml.PauliZ(0))
expected = tape.jacobian(dev)
assert expected.shape == (1, 1)
assert np.allclose(res, np.squeeze(expected), atol=tol, rtol=0)
def test_jacobian(self, mocker, tol):
"""Test jacobian calculation"""
spy = mocker.spy(JacobianTape, "jacobian")
a = np.array(0.1, requires_grad=True)
b = np.array(0.2, requires_grad=True)
dev = qml.device("default.qubit.autograd", wires=2)
res = qml.jacobian(cost)(a, b, device=dev)
spy.assert_not_called()
assert res.shape == (2, 2)
# compare to standard tape jacobian
with JacobianTape() as tape:
qml.RY(a, wires=0)
qml.RX(b, wires=0)
qml.expval(qml.PauliZ(0))
qml.expval(qml.PauliY(0))
expected = tape.jacobian(dev)
assert expected.shape == (2, 2)
assert np.allclose(res, expected, atol=tol, rtol=0)
def test_classical_processing(self, mocker, tol):
"""Test classical processing within the quantum tape"""
spy = mocker.spy(JacobianTape, "jacobian")
a = np.array(0.1, requires_grad=True)
b = np.array(0.2, requires_grad=False)
c = np.array(0.3, requires_grad=True)
dev = qml.device("default.qubit.autograd", wires=2)
res = qml.jacobian(cost)(a, b, c, device=dev)
assert res.shape == (1, 2)
spy.assert_not_called()
def test_no_trainable_parameters(self, mocker, tol):
"""Test evaluation and Jacobian if there are no trainable parameters"""
spy = mocker.spy(JacobianTape, "jacobian")
a = np.array(0.1, requires_grad=False)
b = np.array(0.2, requires_grad=False)
dev = qml.device("default.qubit.autograd", wires=2)
res = cost(a, b, device=dev)
assert res.shape == (2,)
spy.assert_not_called()
res = qml.jacobian(cost)(a, b, device=dev)
assert not res
with pytest.warns(UserWarning, match="Output seems independent"):
res = qml.grad(loss)(a, b)
assert not res
def test_matrix_parameter(self, mocker, tol):
"""Test jacobian computation when the tape includes a matrix parameter"""
spy = mocker.spy(JacobianTape, "jacobian")
U = np.array([[0, 1], [1, 0]], requires_grad=False)
a = np.array(0.1, requires_grad=True)
dev = qml.device("default.qubit.autograd", wires=2)
res = cost(a, U, device=dev)
assert np.allclose(res, -np.cos(a), atol=tol, rtol=0)
jac_fn = qml.jacobian(cost)
res = jac_fn(a, U, device=dev)
assert np.allclose(res, np.sin(a), atol=tol, rtol=0)
spy.assert_not_called()
def test_differentiable_expand(self, mocker, tol):
"""Test that operation and nested tapes expansion
is differentiable"""
spy = mocker.spy(JacobianTape, "jacobian")
mock = mocker.patch.object(qml.operation.Operation, "do_check_domain", False)
a = np.array(0.1, requires_grad=False)
p = np.array([0.1, 0.2, 0.3], requires_grad=True)
dev = qml.device("default.qubit.autograd", wires=1)
res = cost_fn(a, p, device=dev)
expected = np.cos(a) * np.cos(p[1]) * np.sin(p[0]) + np.sin(a) * (
np.cos(p[2]) * np.sin(p[1]) + np.cos(p[0]) * np.cos(p[1]) * np.sin(p[2])
)
assert np.allclose(res, expected, atol=tol, rtol=0)
jac_fn = qml.jacobian(cost_fn)
res = jac_fn(a, p, device=dev)
expected = np.array(
[
np.cos(p[1]) * (np.cos(a) * np.cos(p[0]) - np.sin(a) * np.sin(p[0]) * np.sin(p[2])),
np.cos(p[1]) * np.cos(p[2]) * np.sin(a)
- np.sin(p[1])
* (np.cos(a) * np.sin(p[0]) + np.cos(p[0]) * np.sin(a) * np.sin(p[2])),
np.sin(a)
* (np.cos(p[0]) * np.cos(p[1]) * np.cos(p[2]) - np.sin(p[1]) * np.sin(p[2])),
]
)
assert np.allclose(res, expected, atol=tol, rtol=0)
spy.assert_not_called()
def test_probability_differentiation(self, mocker, tol):
"""Tests correct output shape and evaluation for a tape
with prob and expval outputs"""
spy = mocker.spy(JacobianTape, "jacobian")
dev = qml.device("default.qubit.autograd", wires=2)
x = np.array(0.543, requires_grad=True)
y = np.array(-0.654, requires_grad=True)
res = cost(x, y, device=dev)
expected = np.array(
[
[np.cos(x / 2) ** 2, np.sin(x / 2) ** 2],
[(1 + np.cos(x) * np.cos(y)) / 2, (1 - np.cos(x) * np.cos(y)) / 2],
]
)
assert np.allclose(res, expected, atol=tol, rtol=0)
jac_fn = qml.jacobian(cost)
res = jac_fn(x, y, device=dev)
assert res.shape == (2, 2, 2)
expected = np.array(
[
[[-np.sin(x) / 2, 0], [-np.sin(x) * np.cos(y) / 2, -np.cos(x) * np.sin(y) / 2]],
[
[np.sin(x) / 2, 0],
[np.cos(y) * np.sin(x) / 2, np.cos(x) * np.sin(y) / 2],
],
]
)
assert np.allclose(res, expected, atol=tol, rtol=0)
spy.assert_not_called()
def test_ragged_differentiation(self, mocker, monkeypatch, tol):
"""Tests correct output shape and evaluation for a tape
with prob and expval outputs"""
spy = mocker.spy(JacobianTape, "jacobian")
dev = qml.device("default.qubit.autograd", wires=2)
# The current DefaultQubitAutograd device provides an _asarray method that does
# not work correctly for ragged arrays. For ragged arrays, we would like _asarray to
# flatten the array. Here, we patch the _asarray method on the device to achieve this
# behaviour; once the tape has moved from the beta folder, we should implement
# this change directly in the device.
monkeypatch.setattr(dev, "_asarray", _asarray)
x = np.array(0.543, requires_grad=True)
y = np.array(-0.654, requires_grad=True)
res = cost(x, y, device=dev)
expected = np.array(
[np.cos(x), (1 + np.cos(x) * np.cos(y)) / 2, (1 - np.cos(x) * np.cos(y)) / 2]
)
assert np.allclose(res, expected, atol=tol, rtol=0)
jac_fn = qml.jacobian(cost)
res = jac_fn(x, y, device=dev)
expected = np.array(
[
[-np.sin(x), 0],
[-np.sin(x) * np.cos(y) / 2, -np.cos(x) * np.sin(y) / 2],
[np.cos(y) * np.sin(x) / 2, np.cos(x) * np.sin(y) / 2],
]
)
assert np.allclose(res, expected, atol=tol, rtol=0)
spy.assert_not_called()
def test_sampling(self):
"""Test sampling works as expected"""
dev = qml.device("default.qubit.autograd", wires=2, shots=10)
x = np.array(0.543, requires_grad=True)
res = cost(x, device=dev)
assert res.shape == (2, 10)
| [
2,
15069,
2864,
12,
42334,
47482,
324,
84,
29082,
21852,
3457,
13,
201,
198,
201,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
201,
198,
2,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
201,
198,
2,
921,
743,
7330,
257,
4866,
286,
262,
13789,
379,
201,
198,
201,
198,
2,
220,
220,
220,
220,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
201,
198,
201,
198,
2,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
201,
198,
2,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
201,
198,
2,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
201,
198,
2,
4091,
262,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
201,
198,
2,
11247,
739,
262,
13789,
13,
201,
198,
37811,
26453,
5254,
329,
262,
1960,
519,
6335,
7071,
37811,
201,
198,
11748,
12972,
9288,
201,
198,
6738,
22429,
2645,
1531,
1330,
299,
32152,
355,
45941,
201,
198,
201,
198,
11748,
22429,
2645,
1531,
355,
10662,
4029,
201,
198,
6738,
22429,
2645,
1531,
13,
83,
1758,
1330,
12806,
666,
51,
1758,
201,
198,
6738,
22429,
2645,
1531,
13,
83,
1758,
13,
3849,
32186,
13,
2306,
519,
6335,
1330,
5231,
519,
6335,
39317,
201,
198,
201,
198,
201,
198,
4871,
6208,
16541,
519,
6335,
24915,
388,
51,
1758,
25,
201,
198,
220,
220,
220,
37227,
14402,
262,
1960,
519,
6335,
7071,
5625,
284,
257,
9154,
37811,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
39994,
62,
2536,
7,
944,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
326,
262,
7071,
4731,
318,
9380,
5174,
355,
1960,
519,
6335,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
351,
5231,
519,
6335,
39317,
13,
39014,
7,
46751,
666,
51,
1758,
28955,
355,
9154,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
49,
55,
7,
15,
13,
20,
11,
19474,
28,
15,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
11201,
2100,
7,
80,
4029,
13,
12041,
72,
55,
7,
15,
4008,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
9154,
13,
39994,
6624,
366,
2306,
519,
6335,
1,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
318,
39098,
7,
83,
1758,
11,
5231,
519,
6335,
39317,
8,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
1136,
62,
17143,
7307,
7,
944,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
326,
262,
651,
62,
17143,
7307,
2163,
9380,
3011,
262,
4512,
540,
10007,
290,
477,
201,
198,
220,
220,
220,
220,
220,
220,
220,
10007,
11,
6906,
319,
262,
4512,
540,
62,
8807,
4578,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
7,
15,
13,
16,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
275,
796,
45941,
13,
18747,
7,
15,
13,
17,
11,
4433,
62,
9744,
28,
25101,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
269,
796,
45941,
13,
18747,
7,
15,
13,
18,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
288,
796,
45941,
13,
18747,
7,
15,
13,
19,
11,
4433,
62,
9744,
28,
25101,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
351,
5231,
519,
6335,
39317,
13,
39014,
7,
46751,
666,
51,
1758,
28955,
355,
9154,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
24864,
7,
64,
11,
275,
11,
269,
11,
19474,
28,
15,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
49,
55,
7,
67,
11,
19474,
28,
16,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
34,
11929,
7,
86,
2387,
41888,
15,
11,
352,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
11201,
2100,
7,
80,
4029,
13,
12041,
72,
55,
7,
15,
4008,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
9154,
13,
27432,
540,
62,
37266,
6624,
1391,
15,
11,
362,
92,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
7,
83,
1758,
13,
1136,
62,
17143,
7307,
7,
27432,
540,
62,
8807,
28,
17821,
8,
6624,
685,
64,
11,
269,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
7,
83,
1758,
13,
1136,
62,
17143,
7307,
7,
27432,
540,
62,
8807,
28,
25101,
8,
6624,
685,
64,
11,
275,
11,
269,
11,
288,
12962,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
18558,
1009,
7,
944,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
9706,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
7,
15,
13,
16,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
275,
796,
45941,
13,
18747,
7,
15,
13,
17,
11,
4433,
62,
9744,
28,
25101,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
1600,
19474,
28,
16,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
1575,
7,
64,
11,
275,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
581,
13,
43358,
6624,
357,
16,
35751,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
1416,
282,
283,
62,
30482,
672,
666,
7,
944,
11,
284,
75,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
16578,
283,
474,
330,
672,
666,
17952,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
7,
15,
13,
16,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
1600,
19474,
28,
17,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
5769,
64,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
581,
13,
43358,
6624,
357,
16,
35751,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
8996,
284,
3210,
9154,
474,
330,
672,
666,
201,
198,
220,
220,
220,
220,
220,
220,
220,
351,
12806,
666,
51,
1758,
3419,
355,
9154,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
18276,
7,
64,
11,
19474,
28,
15,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
11201,
2100,
7,
80,
4029,
13,
12041,
72,
57,
7,
15,
4008,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
9154,
13,
27432,
540,
62,
37266,
796,
1391,
15,
92,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
9154,
13,
30482,
672,
666,
7,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2938,
13,
43358,
6624,
357,
16,
11,
352,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
45941,
13,
16485,
1453,
2736,
7,
40319,
828,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
30482,
672,
666,
7,
944,
11,
284,
75,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
474,
330,
672,
666,
17952,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
7,
15,
13,
16,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
275,
796,
45941,
13,
18747,
7,
15,
13,
17,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
1600,
19474,
28,
17,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
1575,
7,
64,
11,
275,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
685,
37659,
13,
6966,
7,
64,
828,
532,
37659,
13,
6966,
7,
64,
8,
1635,
45941,
13,
31369,
7,
65,
15437,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
2938,
11,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
5769,
64,
11,
275,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
581,
13,
43358,
6624,
357,
17,
11,
362,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
16410,
12,
37659,
13,
31369,
7,
64,
828,
657,
4357,
685,
37659,
13,
31369,
7,
64,
8,
1635,
45941,
13,
31369,
7,
65,
828,
532,
37659,
13,
6966,
7,
64,
8,
1635,
45941,
13,
6966,
7,
65,
8,
11907,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
2938,
11,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
30482,
672,
666,
62,
25811,
7,
944,
11,
285,
12721,
11,
284,
75,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
4634,
474,
330,
672,
666,
3689,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
13997,
796,
285,
12721,
13,
2777,
88,
7,
46751,
666,
51,
1758,
11,
366,
77,
39223,
62,
30094,
4943,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
26933,
15,
13,
16,
11,
657,
13,
17,
4357,
4433,
62,
9744,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
1600,
19474,
28,
16,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
5769,
64,
11,
3335,
28,
7959,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
329,
26498,
287,
13997,
13,
13345,
62,
22046,
62,
4868,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
26498,
58,
16,
7131,
1,
2875,
8973,
6624,
362,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
26498,
58,
16,
7131,
1,
71,
8973,
6624,
352,
68,
12,
23,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
260,
3500,
62,
40972,
388,
62,
83,
1758,
7,
944,
11,
284,
75,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
302,
12,
3500,
257,
14821,
9154,
416,
6427,
649,
10007,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
7,
15,
13,
16,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
275,
796,
45941,
13,
18747,
7,
15,
13,
17,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
1600,
19474,
28,
17,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
351,
5231,
519,
6335,
39317,
13,
39014,
7,
46751,
666,
51,
1758,
28955,
355,
9154,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
18276,
7,
64,
11,
19474,
28,
15,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
49,
55,
7,
65,
11,
19474,
28,
16,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
34,
11929,
7,
86,
2387,
41888,
15,
11,
352,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
11201,
2100,
7,
80,
4029,
13,
12041,
72,
57,
7,
15,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
11201,
2100,
7,
80,
4029,
13,
12041,
72,
56,
7,
16,
4008,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
9154,
13,
27432,
540,
62,
37266,
6624,
1391,
15,
11,
352,
92,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
474,
330,
62,
22184,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
474,
330,
796,
474,
330,
62,
22184,
7,
64,
11,
275,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
7,
15,
13,
4051,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
275,
796,
45941,
13,
18747,
7,
15,
13,
23,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
17,
796,
1575,
7,
17,
1635,
257,
11,
275,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
685,
37659,
13,
6966,
7,
17,
1635,
257,
828,
532,
37659,
13,
6966,
7,
17,
1635,
257,
8,
1635,
45941,
13,
31369,
7,
65,
15437,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
17,
11,
2938,
11,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
474,
330,
62,
22184,
796,
10662,
4029,
13,
30482,
672,
666,
7,
50033,
257,
11,
275,
25,
1575,
7,
17,
1635,
257,
11,
275,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
474,
330,
796,
474,
330,
62,
22184,
7,
64,
11,
275,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
685,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25915,
17,
1635,
45941,
13,
31369,
7,
17,
1635,
257,
828,
657,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
17,
1635,
45941,
13,
31369,
7,
17,
1635,
257,
8,
1635,
45941,
13,
31369,
7,
65,
828,
532,
37659,
13,
6966,
7,
17,
1635,
257,
8,
1635,
45941,
13,
6966,
7,
65,
8,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
30482,
11,
2938,
11,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
4871,
605,
62,
36948,
7,
944,
11,
284,
75,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
15993,
7587,
1626,
262,
14821,
9154,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
7,
15,
13,
16,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
275,
796,
45941,
13,
18747,
7,
15,
13,
17,
11,
4433,
62,
9744,
28,
25101,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
269,
796,
45941,
13,
18747,
7,
15,
13,
18,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
1600,
19474,
28,
17,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
5769,
64,
11,
275,
11,
269,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
581,
13,
43358,
6624,
357,
16,
11,
362,
8,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
3919,
62,
27432,
540,
62,
17143,
7307,
7,
944,
11,
284,
75,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
12660,
290,
12806,
666,
611,
612,
389,
645,
4512,
540,
10007,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
7,
15,
13,
16,
11,
4433,
62,
9744,
28,
25101,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
275,
796,
45941,
13,
18747,
7,
15,
13,
17,
11,
4433,
62,
9744,
28,
25101,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
1600,
19474,
28,
17,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
1575,
7,
64,
11,
275,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
581,
13,
43358,
6624,
357,
17,
35751,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
5769,
64,
11,
275,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
407,
581,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
351,
12972,
9288,
13,
40539,
82,
7,
12982,
20361,
11,
2872,
2625,
26410,
2331,
4795,
1,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
796,
10662,
4029,
13,
9744,
7,
22462,
5769,
64,
11,
275,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
407,
581,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
6759,
8609,
62,
17143,
2357,
7,
944,
11,
284,
75,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
326,
262,
1960,
519,
6335,
7071,
2499,
9380,
201,
198,
220,
220,
220,
220,
220,
220,
220,
351,
257,
17593,
11507,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
471,
796,
45941,
13,
18747,
26933,
58,
15,
11,
352,
4357,
685,
16,
11,
657,
60,
4357,
4433,
62,
9744,
28,
25101,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
7,
15,
13,
16,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
1600,
19474,
28,
17,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
1575,
7,
64,
11,
471,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
532,
37659,
13,
6966,
7,
64,
828,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
474,
330,
62,
22184,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
474,
330,
62,
22184,
7,
64,
11,
471,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
45941,
13,
31369,
7,
64,
828,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
39799,
3379,
62,
11201,
392,
7,
944,
11,
285,
12721,
11,
284,
75,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
326,
4905,
290,
28376,
23695,
7118,
201,
198,
220,
220,
220,
220,
220,
220,
220,
318,
1180,
3379,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
15290,
796,
285,
12721,
13,
17147,
13,
15252,
7,
80,
4029,
13,
27184,
13,
32180,
11,
366,
4598,
62,
9122,
62,
27830,
1600,
10352,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
7,
15,
13,
16,
11,
4433,
62,
9744,
28,
25101,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
796,
45941,
13,
18747,
26933,
15,
13,
16,
11,
657,
13,
17,
11,
657,
13,
18,
4357,
4433,
62,
9744,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
1600,
19474,
28,
16,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
1575,
62,
22184,
7,
64,
11,
279,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
45941,
13,
6966,
7,
64,
8,
1635,
45941,
13,
6966,
7,
79,
58,
16,
12962,
1635,
45941,
13,
31369,
7,
79,
58,
15,
12962,
1343,
45941,
13,
31369,
7,
64,
8,
1635,
357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
6966,
7,
79,
58,
17,
12962,
1635,
45941,
13,
31369,
7,
79,
58,
16,
12962,
1343,
45941,
13,
6966,
7,
79,
58,
15,
12962,
1635,
45941,
13,
6966,
7,
79,
58,
16,
12962,
1635,
45941,
13,
31369,
7,
79,
58,
17,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
2938,
11,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
474,
330,
62,
22184,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
62,
22184,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
474,
330,
62,
22184,
7,
64,
11,
279,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
45941,
13,
18747,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
6966,
7,
79,
58,
16,
12962,
1635,
357,
37659,
13,
6966,
7,
64,
8,
1635,
45941,
13,
6966,
7,
79,
58,
15,
12962,
532,
45941,
13,
31369,
7,
64,
8,
1635,
45941,
13,
31369,
7,
79,
58,
15,
12962,
1635,
45941,
13,
31369,
7,
79,
58,
17,
12962,
828,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
6966,
7,
79,
58,
16,
12962,
1635,
45941,
13,
6966,
7,
79,
58,
17,
12962,
1635,
45941,
13,
31369,
7,
64,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
532,
45941,
13,
31369,
7,
79,
58,
16,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
357,
37659,
13,
6966,
7,
64,
8,
1635,
45941,
13,
31369,
7,
79,
58,
15,
12962,
1343,
45941,
13,
6966,
7,
79,
58,
15,
12962,
1635,
45941,
13,
31369,
7,
64,
8,
1635,
45941,
13,
31369,
7,
79,
58,
17,
12962,
828,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
31369,
7,
64,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
357,
37659,
13,
6966,
7,
79,
58,
15,
12962,
1635,
45941,
13,
6966,
7,
79,
58,
16,
12962,
1635,
45941,
13,
6966,
7,
79,
58,
17,
12962,
532,
45941,
13,
31369,
7,
79,
58,
16,
12962,
1635,
45941,
13,
31369,
7,
79,
58,
17,
12962,
828,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
2938,
11,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
1676,
65,
1799,
62,
39799,
3920,
7,
944,
11,
284,
75,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
51,
3558,
3376,
5072,
5485,
290,
12660,
329,
257,
9154,
201,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1861,
23862,
37811,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
1600,
19474,
28,
17,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
45941,
13,
18747,
7,
15,
13,
20,
3559,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
331,
796,
45941,
13,
18747,
32590,
15,
13,
39111,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
1575,
7,
87,
11,
331,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
45941,
13,
18747,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
37659,
13,
6966,
7,
87,
1220,
362,
8,
12429,
362,
11,
45941,
13,
31369,
7,
87,
1220,
362,
8,
12429,
362,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
47527,
16,
1343,
45941,
13,
6966,
7,
87,
8,
1635,
45941,
13,
6966,
7,
88,
4008,
1220,
362,
11,
357,
16,
532,
45941,
13,
6966,
7,
87,
8,
1635,
45941,
13,
6966,
7,
88,
4008,
1220,
362,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
2938,
11,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
474,
330,
62,
22184,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
474,
330,
62,
22184,
7,
87,
11,
331,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
581,
13,
43358,
6624,
357,
17,
11,
362,
11,
362,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
45941,
13,
18747,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16410,
12,
37659,
13,
31369,
7,
87,
8,
1220,
362,
11,
657,
4357,
25915,
37659,
13,
31369,
7,
87,
8,
1635,
45941,
13,
6966,
7,
88,
8,
1220,
362,
11,
532,
37659,
13,
6966,
7,
87,
8,
1635,
45941,
13,
31369,
7,
88,
8,
1220,
362,
60,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
37659,
13,
31369,
7,
87,
8,
1220,
362,
11,
657,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
37659,
13,
6966,
7,
88,
8,
1635,
45941,
13,
31369,
7,
87,
8,
1220,
362,
11,
45941,
13,
6966,
7,
87,
8,
1635,
45941,
13,
31369,
7,
88,
8,
1220,
362,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16589,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
2938,
11,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
81,
14655,
62,
39799,
3920,
7,
944,
11,
284,
75,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
51,
3558,
3376,
5072,
5485,
290,
12660,
329,
257,
9154,
201,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1861,
290,
1033,
2100,
23862,
37811,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
1600,
19474,
28,
17,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
45941,
13,
18747,
7,
15,
13,
20,
3559,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
331,
796,
45941,
13,
18747,
32590,
15,
13,
39111,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
1575,
7,
87,
11,
331,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
45941,
13,
18747,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
37659,
13,
6966,
7,
87,
828,
357,
16,
1343,
45941,
13,
6966,
7,
87,
8,
1635,
45941,
13,
6966,
7,
88,
4008,
1220,
362,
11,
357,
16,
532,
45941,
13,
6966,
7,
87,
8,
1635,
45941,
13,
6966,
7,
88,
4008,
1220,
362,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
2938,
11,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
474,
330,
62,
22184,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
474,
330,
62,
22184,
7,
87,
11,
331,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
45941,
13,
18747,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25915,
37659,
13,
31369,
7,
87,
828,
657,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25915,
37659,
13,
31369,
7,
87,
8,
1635,
45941,
13,
6966,
7,
88,
8,
1220,
362,
11,
532,
37659,
13,
6966,
7,
87,
8,
1635,
45941,
13,
31369,
7,
88,
8,
1220,
362,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
37659,
13,
6966,
7,
88,
8,
1635,
45941,
13,
31369,
7,
87,
8,
1220,
362,
11,
45941,
13,
6966,
7,
87,
8,
1635,
45941,
13,
31369,
7,
88,
8,
1220,
362,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
2938,
11,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
37687,
11347,
7,
944,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
19232,
2499,
355,
2938,
37811,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
1600,
19474,
28,
17,
11,
6934,
28,
940,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
45941,
13,
18747,
7,
15,
13,
20,
3559,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
1575,
7,
87,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
581,
13,
43358,
6624,
357,
17,
11,
838,
8,
201,
198,
201,
198,
201,
198,
4871,
6208,
16541,
519,
6335,
47,
292,
48476,
622,
25,
201,
198,
220,
220,
220,
37227,
14402,
326,
262,
14821,
9154,
2499,
351,
281,
1960,
519,
6335,
38836,
48476,
622,
201,
198,
220,
220,
220,
3335,
13,
201,
198,
201,
198,
220,
220,
220,
2312,
5254,
389,
845,
2092,
284,
262,
5254,
2029,
11,
351,
1115,
1994,
5400,
25,
201,
198,
201,
198,
220,
220,
220,
1635,
775,
466,
12429,
1662,
1174,
4174,
262,
1960,
519,
6335,
7071,
13,
2312,
23695,
2391,
779,
38836,
48476,
622,
201,
198,
220,
220,
220,
220,
220,
736,
22930,
11,
645,
2183,
31312,
9352,
2622,
13,
201,
198,
201,
198,
220,
220,
220,
1635,
775,
466,
407,
1332,
262,
4512,
540,
62,
37266,
11688,
13,
4619,
777,
23695,
423,
645,
201,
198,
220,
220,
220,
220,
220,
1960,
519,
6335,
7071,
11,
262,
9154,
857,
407,
761,
284,
1492,
14894,
543,
10007,
201,
198,
220,
220,
220,
220,
220,
389,
4512,
540,
26,
428,
318,
1760,
416,
1960,
519,
6335,
20947,
13,
201,
198,
201,
198,
220,
220,
220,
1635,
775,
779,
15290,
13,
2777,
88,
284,
4155,
326,
262,
9154,
338,
12806,
666,
2446,
318,
407,
852,
1444,
13,
201,
198,
220,
220,
220,
37227,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
18558,
1009,
7,
944,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
9706,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
7,
15,
13,
16,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
275,
796,
45941,
13,
18747,
7,
15,
13,
17,
11,
4433,
62,
9744,
28,
25101,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
13,
2306,
519,
6335,
1600,
19474,
28,
16,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
1575,
7,
64,
11,
275,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
581,
13,
43358,
6624,
357,
16,
35751,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
1416,
282,
283,
62,
30482,
672,
666,
7,
944,
11,
284,
75,
11,
285,
12721,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
16578,
283,
474,
330,
672,
666,
17952,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
13997,
796,
285,
12721,
13,
2777,
88,
7,
46751,
666,
51,
1758,
11,
366,
30482,
672,
666,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
7,
15,
13,
16,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
13,
2306,
519,
6335,
1600,
19474,
28,
17,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
5769,
64,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
13997,
13,
30493,
62,
1662,
62,
7174,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
581,
13,
43358,
6624,
357,
16,
35751,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
8996,
284,
3210,
9154,
474,
330,
672,
666,
201,
198,
220,
220,
220,
220,
220,
220,
220,
351,
12806,
666,
51,
1758,
3419,
355,
9154,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
18276,
7,
64,
11,
19474,
28,
15,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
11201,
2100,
7,
80,
4029,
13,
12041,
72,
57,
7,
15,
4008,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
9154,
13,
30482,
672,
666,
7,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2938,
13,
43358,
6624,
357,
16,
11,
352,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
45941,
13,
16485,
1453,
2736,
7,
40319,
828,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
30482,
672,
666,
7,
944,
11,
285,
12721,
11,
284,
75,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
474,
330,
672,
666,
17952,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
13997,
796,
285,
12721,
13,
2777,
88,
7,
46751,
666,
51,
1758,
11,
366,
30482,
672,
666,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
7,
15,
13,
16,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
275,
796,
45941,
13,
18747,
7,
15,
13,
17,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
13,
2306,
519,
6335,
1600,
19474,
28,
17,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
5769,
64,
11,
275,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
13997,
13,
30493,
62,
1662,
62,
7174,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
581,
13,
43358,
6624,
357,
17,
11,
362,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
8996,
284,
3210,
9154,
474,
330,
672,
666,
201,
198,
220,
220,
220,
220,
220,
220,
220,
351,
12806,
666,
51,
1758,
3419,
355,
9154,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
18276,
7,
64,
11,
19474,
28,
15,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
49,
55,
7,
65,
11,
19474,
28,
15,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
11201,
2100,
7,
80,
4029,
13,
12041,
72,
57,
7,
15,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
4029,
13,
11201,
2100,
7,
80,
4029,
13,
12041,
72,
56,
7,
15,
4008,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
9154,
13,
30482,
672,
666,
7,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2938,
13,
43358,
6624,
357,
17,
11,
362,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
2938,
11,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
4871,
605,
62,
36948,
7,
944,
11,
285,
12721,
11,
284,
75,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
15993,
7587,
1626,
262,
14821,
9154,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
13997,
796,
285,
12721,
13,
2777,
88,
7,
46751,
666,
51,
1758,
11,
366,
30482,
672,
666,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
7,
15,
13,
16,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
275,
796,
45941,
13,
18747,
7,
15,
13,
17,
11,
4433,
62,
9744,
28,
25101,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
269,
796,
45941,
13,
18747,
7,
15,
13,
18,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
13,
2306,
519,
6335,
1600,
19474,
28,
17,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
5769,
64,
11,
275,
11,
269,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
581,
13,
43358,
6624,
357,
16,
11,
362,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
13997,
13,
30493,
62,
1662,
62,
7174,
3419,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
3919,
62,
27432,
540,
62,
17143,
7307,
7,
944,
11,
285,
12721,
11,
284,
75,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
12660,
290,
12806,
666,
611,
612,
389,
645,
4512,
540,
10007,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
13997,
796,
285,
12721,
13,
2777,
88,
7,
46751,
666,
51,
1758,
11,
366,
30482,
672,
666,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
7,
15,
13,
16,
11,
4433,
62,
9744,
28,
25101,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
275,
796,
45941,
13,
18747,
7,
15,
13,
17,
11,
4433,
62,
9744,
28,
25101,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
13,
2306,
519,
6335,
1600,
19474,
28,
17,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
1575,
7,
64,
11,
275,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
581,
13,
43358,
6624,
357,
17,
35751,
201,
198,
220,
220,
220,
220,
220,
220,
220,
13997,
13,
30493,
62,
1662,
62,
7174,
3419,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
5769,
64,
11,
275,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
407,
581,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
351,
12972,
9288,
13,
40539,
82,
7,
12982,
20361,
11,
2872,
2625,
26410,
2331,
4795,
1,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
796,
10662,
4029,
13,
9744,
7,
22462,
5769,
64,
11,
275,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
407,
581,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
6759,
8609,
62,
17143,
2357,
7,
944,
11,
285,
12721,
11,
284,
75,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
474,
330,
672,
666,
29964,
618,
262,
9154,
3407,
257,
17593,
11507,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
13997,
796,
285,
12721,
13,
2777,
88,
7,
46751,
666,
51,
1758,
11,
366,
30482,
672,
666,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
471,
796,
45941,
13,
18747,
26933,
58,
15,
11,
352,
4357,
685,
16,
11,
657,
60,
4357,
4433,
62,
9744,
28,
25101,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
7,
15,
13,
16,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
13,
2306,
519,
6335,
1600,
19474,
28,
17,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
1575,
7,
64,
11,
471,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
532,
37659,
13,
6966,
7,
64,
828,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
474,
330,
62,
22184,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
474,
330,
62,
22184,
7,
64,
11,
471,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
45941,
13,
31369,
7,
64,
828,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
13997,
13,
30493,
62,
1662,
62,
7174,
3419,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
39799,
3379,
62,
11201,
392,
7,
944,
11,
285,
12721,
11,
284,
75,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
326,
4905,
290,
28376,
23695,
7118,
201,
198,
220,
220,
220,
220,
220,
220,
220,
318,
1180,
3379,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
13997,
796,
285,
12721,
13,
2777,
88,
7,
46751,
666,
51,
1758,
11,
366,
30482,
672,
666,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
15290,
796,
285,
12721,
13,
17147,
13,
15252,
7,
80,
4029,
13,
27184,
13,
32180,
11,
366,
4598,
62,
9122,
62,
27830,
1600,
10352,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
45941,
13,
18747,
7,
15,
13,
16,
11,
4433,
62,
9744,
28,
25101,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
279,
796,
45941,
13,
18747,
26933,
15,
13,
16,
11,
657,
13,
17,
11,
657,
13,
18,
4357,
4433,
62,
9744,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
13,
2306,
519,
6335,
1600,
19474,
28,
16,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
1575,
62,
22184,
7,
64,
11,
279,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
45941,
13,
6966,
7,
64,
8,
1635,
45941,
13,
6966,
7,
79,
58,
16,
12962,
1635,
45941,
13,
31369,
7,
79,
58,
15,
12962,
1343,
45941,
13,
31369,
7,
64,
8,
1635,
357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
6966,
7,
79,
58,
17,
12962,
1635,
45941,
13,
31369,
7,
79,
58,
16,
12962,
1343,
45941,
13,
6966,
7,
79,
58,
15,
12962,
1635,
45941,
13,
6966,
7,
79,
58,
16,
12962,
1635,
45941,
13,
31369,
7,
79,
58,
17,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
2938,
11,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
474,
330,
62,
22184,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
62,
22184,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
474,
330,
62,
22184,
7,
64,
11,
279,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
45941,
13,
18747,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
6966,
7,
79,
58,
16,
12962,
1635,
357,
37659,
13,
6966,
7,
64,
8,
1635,
45941,
13,
6966,
7,
79,
58,
15,
12962,
532,
45941,
13,
31369,
7,
64,
8,
1635,
45941,
13,
31369,
7,
79,
58,
15,
12962,
1635,
45941,
13,
31369,
7,
79,
58,
17,
12962,
828,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
6966,
7,
79,
58,
16,
12962,
1635,
45941,
13,
6966,
7,
79,
58,
17,
12962,
1635,
45941,
13,
31369,
7,
64,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
532,
45941,
13,
31369,
7,
79,
58,
16,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
357,
37659,
13,
6966,
7,
64,
8,
1635,
45941,
13,
31369,
7,
79,
58,
15,
12962,
1343,
45941,
13,
6966,
7,
79,
58,
15,
12962,
1635,
45941,
13,
31369,
7,
64,
8,
1635,
45941,
13,
31369,
7,
79,
58,
17,
12962,
828,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
31369,
7,
64,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
357,
37659,
13,
6966,
7,
79,
58,
15,
12962,
1635,
45941,
13,
6966,
7,
79,
58,
16,
12962,
1635,
45941,
13,
6966,
7,
79,
58,
17,
12962,
532,
45941,
13,
31369,
7,
79,
58,
16,
12962,
1635,
45941,
13,
31369,
7,
79,
58,
17,
12962,
828,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
2938,
11,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
13997,
13,
30493,
62,
1662,
62,
7174,
3419,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
1676,
65,
1799,
62,
39799,
3920,
7,
944,
11,
285,
12721,
11,
284,
75,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
51,
3558,
3376,
5072,
5485,
290,
12660,
329,
257,
9154,
201,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1861,
290,
1033,
2100,
23862,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
13997,
796,
285,
12721,
13,
2777,
88,
7,
46751,
666,
51,
1758,
11,
366,
30482,
672,
666,
4943,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
13,
2306,
519,
6335,
1600,
19474,
28,
17,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
45941,
13,
18747,
7,
15,
13,
20,
3559,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
331,
796,
45941,
13,
18747,
32590,
15,
13,
39111,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
1575,
7,
87,
11,
331,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
45941,
13,
18747,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
37659,
13,
6966,
7,
87,
1220,
362,
8,
12429,
362,
11,
45941,
13,
31369,
7,
87,
1220,
362,
8,
12429,
362,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
47527,
16,
1343,
45941,
13,
6966,
7,
87,
8,
1635,
45941,
13,
6966,
7,
88,
4008,
1220,
362,
11,
357,
16,
532,
45941,
13,
6966,
7,
87,
8,
1635,
45941,
13,
6966,
7,
88,
4008,
1220,
362,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
2938,
11,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
474,
330,
62,
22184,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
474,
330,
62,
22184,
7,
87,
11,
331,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
581,
13,
43358,
6624,
357,
17,
11,
362,
11,
362,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
45941,
13,
18747,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16410,
12,
37659,
13,
31369,
7,
87,
8,
1220,
362,
11,
657,
4357,
25915,
37659,
13,
31369,
7,
87,
8,
1635,
45941,
13,
6966,
7,
88,
8,
1220,
362,
11,
532,
37659,
13,
6966,
7,
87,
8,
1635,
45941,
13,
31369,
7,
88,
8,
1220,
362,
60,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
37659,
13,
31369,
7,
87,
8,
1220,
362,
11,
657,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
37659,
13,
6966,
7,
88,
8,
1635,
45941,
13,
31369,
7,
87,
8,
1220,
362,
11,
45941,
13,
6966,
7,
87,
8,
1635,
45941,
13,
31369,
7,
88,
8,
1220,
362,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16589,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
2938,
11,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
13997,
13,
30493,
62,
1662,
62,
7174,
3419,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
81,
14655,
62,
39799,
3920,
7,
944,
11,
285,
12721,
11,
21657,
17147,
11,
284,
75,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
51,
3558,
3376,
5072,
5485,
290,
12660,
329,
257,
9154,
201,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1861,
290,
1033,
2100,
23862,
37811,
201,
198,
220,
220,
220,
220,
220,
220,
220,
13997,
796,
285,
12721,
13,
2777,
88,
7,
46751,
666,
51,
1758,
11,
366,
30482,
672,
666,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
13,
2306,
519,
6335,
1600,
19474,
28,
17,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
383,
1459,
15161,
48,
549,
270,
16541,
519,
6335,
3335,
3769,
281,
4808,
292,
18747,
2446,
326,
857,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
407,
670,
9380,
329,
374,
14655,
26515,
13,
1114,
374,
14655,
26515,
11,
356,
561,
588,
4808,
292,
18747,
284,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
27172,
268,
262,
7177,
13,
3423,
11,
356,
8529,
262,
4808,
292,
18747,
2446,
319,
262,
3335,
284,
4620,
428,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
9172,
26,
1752,
262,
9154,
468,
3888,
422,
262,
12159,
9483,
11,
356,
815,
3494,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
428,
1487,
3264,
287,
262,
3335,
13,
201,
198,
220,
220,
220,
220,
220,
220,
220,
21657,
17147,
13,
2617,
35226,
7,
7959,
11,
45434,
292,
18747,
1600,
4808,
292,
18747,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
45941,
13,
18747,
7,
15,
13,
20,
3559,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
331,
796,
45941,
13,
18747,
32590,
15,
13,
39111,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
1575,
7,
87,
11,
331,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
45941,
13,
18747,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
37659,
13,
6966,
7,
87,
828,
357,
16,
1343,
45941,
13,
6966,
7,
87,
8,
1635,
45941,
13,
6966,
7,
88,
4008,
1220,
362,
11,
357,
16,
532,
45941,
13,
6966,
7,
87,
8,
1635,
45941,
13,
6966,
7,
88,
4008,
1220,
362,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
2938,
11,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
474,
330,
62,
22184,
796,
10662,
4029,
13,
30482,
672,
666,
7,
15805,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
474,
330,
62,
22184,
7,
87,
11,
331,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2938,
796,
45941,
13,
18747,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25915,
37659,
13,
31369,
7,
87,
828,
657,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25915,
37659,
13,
31369,
7,
87,
8,
1635,
45941,
13,
6966,
7,
88,
8,
1220,
362,
11,
532,
37659,
13,
6966,
7,
87,
8,
1635,
45941,
13,
31369,
7,
88,
8,
1220,
362,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
37659,
13,
6966,
7,
88,
8,
1635,
45941,
13,
31369,
7,
87,
8,
1220,
362,
11,
45941,
13,
6966,
7,
87,
8,
1635,
45941,
13,
31369,
7,
88,
8,
1220,
362,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
411,
11,
2938,
11,
379,
349,
28,
83,
349,
11,
374,
83,
349,
28,
15,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
13997,
13,
30493,
62,
1662,
62,
7174,
3419,
201,
198,
201,
198,
220,
220,
220,
825,
1332,
62,
37687,
11347,
7,
944,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
19232,
2499,
355,
2938,
37811,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
796,
10662,
4029,
13,
25202,
7203,
12286,
13,
421,
2545,
13,
2306,
519,
6335,
1600,
19474,
28,
17,
11,
6934,
28,
940,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
45941,
13,
18747,
7,
15,
13,
20,
3559,
11,
4433,
62,
9744,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
1575,
7,
87,
11,
3335,
28,
7959,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
581,
13,
43358,
6624,
357,
17,
11,
838,
8,
201,
198
] | 1.94377 | 9,799 |
import requests_html
from pytest import fixture
from requests_html import HTMLResponse
from wsgiadapter import WSGIAdapter
from tests.endpoints import login
from warehouse14 import create_app
@fixture
@fixture
| [
11748,
7007,
62,
6494,
198,
6738,
12972,
9288,
1330,
29220,
198,
6738,
7007,
62,
6494,
1330,
11532,
31077,
198,
6738,
266,
82,
12397,
324,
3429,
1330,
25290,
18878,
47307,
198,
198,
6738,
5254,
13,
437,
13033,
1330,
17594,
198,
6738,
20933,
1415,
1330,
2251,
62,
1324,
628,
198,
31,
69,
9602,
628,
198,
31,
69,
9602,
628,
628,
198
] | 3.711864 | 59 |
l=input("CANDIES: ").lstrip("[").rstrip("]")
t=l.split(",")
boolist=[]
n= int(input("EXTRA CANDIES: "))
for i in range(len(t)):
if int(t[i])+n>=int(max(t)):
boolist.append("True")
else:
boolist.append("False")
print(boolist)
| [
75,
28,
15414,
7203,
34,
6981,
11015,
25,
366,
737,
75,
36311,
7203,
58,
11074,
81,
36311,
7203,
60,
4943,
198,
83,
28,
75,
13,
35312,
7,
2430,
8,
198,
30388,
396,
28,
21737,
198,
77,
28,
493,
7,
15414,
7203,
13918,
3861,
327,
6981,
11015,
25,
366,
4008,
198,
1640,
1312,
287,
2837,
7,
11925,
7,
83,
8,
2599,
198,
220,
220,
220,
611,
493,
7,
83,
58,
72,
12962,
10,
77,
29,
28,
600,
7,
9806,
7,
83,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
20512,
396,
13,
33295,
7203,
17821,
4943,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
20512,
396,
13,
33295,
7203,
25101,
4943,
220,
220,
220,
198,
4798,
7,
30388,
396,
8,
198
] | 1.96875 | 128 |
import pandas as pd
from mock import MagicMock
from ..plotlygraphs.graphbase import GraphBase
from ..plotlygraphs.piegraph import PieGraph
from ..plotlygraphs.datagraph import DataGraph
from ..widget.encoding import Encoding
from ..widget.invalidencodingerror import InvalidEncodingError
| [
11748,
19798,
292,
355,
279,
67,
198,
6738,
15290,
1330,
6139,
44,
735,
198,
198,
6738,
11485,
29487,
306,
34960,
82,
13,
34960,
8692,
1330,
29681,
14881,
198,
6738,
11485,
29487,
306,
34960,
82,
13,
79,
15702,
1470,
1330,
21690,
37065,
198,
6738,
11485,
29487,
306,
34960,
82,
13,
19608,
6111,
1330,
6060,
37065,
198,
6738,
11485,
42655,
13,
12685,
7656,
1330,
14711,
7656,
198,
6738,
11485,
42655,
13,
259,
12102,
12685,
375,
3889,
1472,
1330,
17665,
27195,
7656,
12331,
628,
628,
628,
198
] | 3.511905 | 84 |
# NOTE(cutwater): This migration is replaced by v2_4_0 and should be
# deleted once superseding migration is merged into master.
from django.db import migrations
| [
2,
24550,
7,
8968,
7050,
2599,
770,
13472,
318,
6928,
416,
410,
17,
62,
19,
62,
15,
290,
815,
307,
198,
2,
220,
220,
13140,
1752,
22754,
8228,
13472,
318,
23791,
656,
4958,
13,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
628
] | 3.75 | 44 |
# todo: handle cases where the boundary crosses the dateline
# usage:
# python landgrab.py [osm id] [zoom level] [optional list-only flag]
import requests, json, math, sys, os
import xml.etree.ElementTree as ET
import pprint
if len(sys.argv) < 3:
print "At least 2 arguments needed - please enter an OSM ID and zoom level."
sys.exit()
# get the OpenStreetMap ID
OSMID=sys.argv[1]
zoom=[]
# handle multi-part ranges, eg "3-4, 5, 6-7"
for part in sys.argv[2].split(','):
if '-' in part:
a, b = part.split('-')
a, b = int(a), int(b)
zoom.extend(range(a, b + 1))
else:
a = int(part)
zoom.append(a)
coordsonly=0
if len(sys.argv) > 3:
coordsonly=int(sys.argv[3])
print coordsonly
success = False
try:
INFILE = 'http://www.openstreetmap.org/api/0.6/relation/'+OSMID+'/full'
print "Downloading", INFILE
r = requests.get(INFILE)
r.raise_for_status()
success = True
except Exception, e:
print e
if not success:
try:
INFILE = 'http://www.openstreetmap.org/api/0.6/way/'+OSMID+'/full'
print "Downloading", INFILE
r = requests.get(INFILE)
r.raise_for_status()
success = True
except Exception, e:
print e
if not success:
try:
INFILE = 'http://www.openstreetmap.org/api/0.6/node/'+OSMID
print "Downloading", INFILE
r = requests.get(INFILE)
r.raise_for_status()
success = True
except Exception, e:
print e
print "Element not found, exiting"
sys.exit()
# print r.encoding
open('outfile.xml', 'w').close() # clear existing OUTFILE
with open('outfile.xml', 'w') as fd:
fd.write(r.text.encode("UTF-8"))
fd.close()
try:
tree = ET.parse('outfile.xml')
except Exception, e:
print e
print "XML parse failed, please check outfile.xml"
sys.exit()
root = tree.getroot()
##
## HELPER FUNCTIONS
##
tile_size = 256
half_circumference_meters = 20037508.342789244;
# Convert lat-lng to mercator meters
# convert from tile-space coords to meters, depending on zoom
# Given a point in mercator meters and a zoom level, return the tile X/Y/Z that the point lies in
# Convert tile location to mercator meters - multiply by pixels per tile, then by meters per pixel, adjust for map origin
##
## PROCESSING points
##
print "Processing:"
points = []
for node in root:
if node.tag == "node":
lat = float(node.attrib["lat"])
lon = float(node.attrib["lon"])
points.append({'y':lat, 'x':lon})
##
## GET TILES for all zoom levels
##
for z in zoom:
getTiles(points,z)
| [
2,
284,
4598,
25,
5412,
2663,
810,
262,
18645,
24234,
262,
3128,
1370,
198,
2,
8748,
25,
198,
2,
21015,
1956,
32393,
13,
9078,
685,
418,
76,
4686,
60,
685,
89,
4207,
1241,
60,
685,
25968,
1351,
12,
8807,
6056,
60,
198,
198,
11748,
7007,
11,
33918,
11,
10688,
11,
25064,
11,
28686,
198,
11748,
35555,
13,
316,
631,
13,
20180,
27660,
355,
12152,
198,
11748,
279,
4798,
198,
198,
361,
18896,
7,
17597,
13,
853,
85,
8,
1279,
513,
25,
198,
220,
220,
220,
3601,
366,
2953,
1551,
362,
7159,
2622,
532,
3387,
3802,
281,
7294,
44,
4522,
290,
19792,
1241,
526,
198,
220,
220,
220,
25064,
13,
37023,
3419,
198,
198,
2,
651,
262,
4946,
34356,
13912,
4522,
198,
2640,
44,
2389,
28,
17597,
13,
853,
85,
58,
16,
60,
198,
198,
89,
4207,
28,
21737,
198,
2,
5412,
5021,
12,
3911,
16069,
11,
29206,
366,
18,
12,
19,
11,
642,
11,
718,
12,
22,
1,
198,
1640,
636,
287,
25064,
13,
853,
85,
58,
17,
4083,
35312,
7,
41707,
2599,
198,
220,
220,
220,
611,
705,
19355,
287,
636,
25,
198,
220,
220,
220,
220,
220,
220,
220,
257,
11,
275,
796,
636,
13,
35312,
10786,
12,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
257,
11,
275,
796,
493,
7,
64,
828,
493,
7,
65,
8,
198,
220,
220,
220,
220,
220,
220,
220,
19792,
13,
2302,
437,
7,
9521,
7,
64,
11,
275,
1343,
352,
4008,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
493,
7,
3911,
8,
198,
220,
220,
220,
220,
220,
220,
220,
19792,
13,
33295,
7,
64,
8,
198,
198,
37652,
1559,
306,
28,
15,
198,
361,
18896,
7,
17597,
13,
853,
85,
8,
1875,
513,
25,
198,
220,
220,
220,
6349,
1559,
306,
28,
600,
7,
17597,
13,
853,
85,
58,
18,
12962,
198,
220,
220,
220,
3601,
6349,
1559,
306,
198,
198,
13138,
796,
10352,
198,
28311,
25,
198,
220,
220,
220,
3268,
25664,
796,
705,
4023,
1378,
2503,
13,
9654,
25662,
8899,
13,
2398,
14,
15042,
14,
15,
13,
21,
14,
49501,
14,
6,
10,
2640,
44,
2389,
10,
26488,
12853,
6,
198,
220,
220,
220,
3601,
366,
10002,
278,
1600,
3268,
25664,
198,
220,
220,
220,
374,
796,
7007,
13,
1136,
7,
1268,
25664,
8,
198,
220,
220,
220,
374,
13,
40225,
62,
1640,
62,
13376,
3419,
198,
220,
220,
220,
1943,
796,
6407,
198,
16341,
35528,
11,
304,
25,
198,
220,
220,
220,
3601,
304,
198,
198,
361,
407,
1943,
25,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3268,
25664,
796,
705,
4023,
1378,
2503,
13,
9654,
25662,
8899,
13,
2398,
14,
15042,
14,
15,
13,
21,
14,
1014,
14,
6,
10,
2640,
44,
2389,
10,
26488,
12853,
6,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
366,
10002,
278,
1600,
3268,
25664,
198,
220,
220,
220,
220,
220,
220,
220,
374,
796,
7007,
13,
1136,
7,
1268,
25664,
8,
198,
220,
220,
220,
220,
220,
220,
220,
374,
13,
40225,
62,
1640,
62,
13376,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1943,
796,
6407,
198,
220,
220,
220,
2845,
35528,
11,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
304,
198,
198,
361,
407,
1943,
25,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3268,
25664,
796,
705,
4023,
1378,
2503,
13,
9654,
25662,
8899,
13,
2398,
14,
15042,
14,
15,
13,
21,
14,
17440,
14,
6,
10,
2640,
44,
2389,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
366,
10002,
278,
1600,
3268,
25664,
198,
220,
220,
220,
220,
220,
220,
220,
374,
796,
7007,
13,
1136,
7,
1268,
25664,
8,
198,
220,
220,
220,
220,
220,
220,
220,
374,
13,
40225,
62,
1640,
62,
13376,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1943,
796,
6407,
198,
220,
220,
220,
2845,
35528,
11,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
304,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
366,
20180,
407,
1043,
11,
33895,
1,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
37023,
3419,
198,
198,
2,
3601,
374,
13,
12685,
7656,
198,
9654,
10786,
448,
7753,
13,
19875,
3256,
705,
86,
27691,
19836,
3419,
1303,
1598,
4683,
16289,
25664,
198,
198,
4480,
1280,
10786,
448,
7753,
13,
19875,
3256,
705,
86,
11537,
355,
277,
67,
25,
198,
220,
277,
67,
13,
13564,
7,
81,
13,
5239,
13,
268,
8189,
7203,
48504,
12,
23,
48774,
198,
220,
277,
67,
13,
19836,
3419,
198,
198,
28311,
25,
198,
220,
220,
220,
5509,
796,
12152,
13,
29572,
10786,
448,
7753,
13,
19875,
11537,
198,
16341,
35528,
11,
304,
25,
198,
220,
220,
220,
3601,
304,
198,
220,
220,
220,
3601,
366,
55,
5805,
21136,
4054,
11,
3387,
2198,
503,
7753,
13,
19875,
1,
198,
220,
220,
220,
25064,
13,
37023,
3419,
198,
198,
15763,
796,
5509,
13,
1136,
15763,
3419,
198,
198,
2235,
198,
2235,
36255,
18973,
29397,
4177,
11053,
198,
2235,
198,
198,
40927,
62,
7857,
796,
17759,
198,
13959,
62,
21170,
388,
4288,
62,
4164,
364,
796,
939,
2718,
33042,
13,
2682,
1983,
4531,
25707,
26,
198,
198,
2,
38240,
3042,
12,
75,
782,
284,
11991,
1352,
10700,
198,
198,
2,
10385,
422,
17763,
12,
13200,
763,
3669,
284,
10700,
11,
6906,
319,
19792,
198,
198,
2,
11259,
257,
966,
287,
11991,
1352,
10700,
290,
257,
19792,
1241,
11,
1441,
262,
17763,
1395,
14,
56,
14,
57,
326,
262,
966,
7363,
287,
198,
198,
2,
38240,
17763,
4067,
284,
11991,
1352,
10700,
532,
29162,
416,
17848,
583,
17763,
11,
788,
416,
10700,
583,
17465,
11,
4532,
329,
3975,
8159,
198,
198,
2235,
198,
2235,
41755,
7597,
2751,
2173,
198,
2235,
198,
198,
4798,
366,
18709,
278,
11097,
198,
198,
13033,
796,
17635,
198,
1640,
10139,
287,
6808,
25,
198,
220,
220,
220,
611,
10139,
13,
12985,
6624,
366,
17440,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
3042,
796,
12178,
7,
17440,
13,
1078,
822,
14692,
15460,
8973,
8,
198,
220,
220,
220,
220,
220,
220,
220,
300,
261,
796,
12178,
7,
17440,
13,
1078,
822,
14692,
14995,
8973,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2173,
13,
33295,
15090,
6,
88,
10354,
15460,
11,
705,
87,
10354,
14995,
30072,
198,
198,
2235,
198,
2235,
17151,
309,
4146,
1546,
329,
477,
19792,
2974,
198,
2235,
198,
1640,
1976,
287,
19792,
25,
198,
220,
220,
220,
651,
51,
2915,
7,
13033,
11,
89,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220
] | 2.380563 | 1,101 |
import tweepy
from keys import keys
CONSUMER_KEY = keys['consumer_key']
CONSUMER_SECRET = keys['consumer_secret']
ACCESS_TOKEN = keys['access_token']
ACCESS_TOKEN_SECRET = keys['access_token_secret']
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
api = tweepy.API(auth)
while 1:
twt = api.search(q="Jyo_Test_1")
#list of specific strings we want to check for in Tweets
t = ['Jyo_Test_1']
for s in twt:
for i in t:
if i == s.text:
sn = s.user.screen_name
m = "@%s Hello! We will resolve your complaint" % (sn)
s = api.update_status(m, s.id)
| [
11748,
4184,
538,
88,
198,
6738,
8251,
1330,
8251,
198,
220,
198,
10943,
50,
5883,
1137,
62,
20373,
796,
8251,
17816,
49827,
62,
2539,
20520,
198,
10943,
50,
5883,
1137,
62,
23683,
26087,
796,
8251,
17816,
49827,
62,
21078,
20520,
198,
26861,
7597,
62,
10468,
43959,
796,
8251,
17816,
15526,
62,
30001,
20520,
198,
26861,
7597,
62,
10468,
43959,
62,
23683,
26087,
796,
8251,
17816,
15526,
62,
30001,
62,
21078,
20520,
198,
220,
198,
18439,
796,
4184,
538,
88,
13,
23621,
1071,
25060,
7,
10943,
50,
5883,
1137,
62,
20373,
11,
39537,
5883,
1137,
62,
23683,
26087,
8,
198,
18439,
13,
2617,
62,
15526,
62,
30001,
7,
26861,
7597,
62,
10468,
43959,
11,
15859,
7597,
62,
10468,
43959,
62,
23683,
26087,
8,
198,
15042,
796,
4184,
538,
88,
13,
17614,
7,
18439,
8,
198,
198,
4514,
352,
25,
198,
220,
220,
220,
665,
83,
796,
40391,
13,
12947,
7,
80,
2625,
41,
8226,
62,
14402,
62,
16,
4943,
220,
220,
220,
220,
220,
198,
220,
198,
220,
220,
220,
1303,
4868,
286,
2176,
13042,
356,
765,
284,
2198,
329,
287,
24205,
1039,
198,
220,
220,
220,
256,
796,
37250,
41,
8226,
62,
14402,
62,
16,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
628,
220,
220,
220,
329,
264,
287,
665,
83,
25,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
256,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1312,
6624,
264,
13,
5239,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3013,
796,
264,
13,
7220,
13,
9612,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
796,
44212,
4,
82,
18435,
0,
775,
481,
10568,
534,
8224,
1,
4064,
357,
16184,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
796,
40391,
13,
19119,
62,
13376,
7,
76,
11,
264,
13,
312,
8,
198
] | 2.125 | 336 |
from constants import *
from polytropes import *
from potentials import *
| [
6738,
38491,
1330,
1635,
198,
6738,
7514,
48385,
274,
1330,
1635,
198,
6738,
2785,
82,
1330,
1635,
198
] | 4.111111 | 18 |
from webApp.utils.app.routes import *
from webApp.utils.app.forms import auth | [
6738,
3992,
4677,
13,
26791,
13,
1324,
13,
81,
448,
274,
1330,
1635,
198,
6738,
3992,
4677,
13,
26791,
13,
1324,
13,
23914,
1330,
6284
] | 3.08 | 25 |
# This file is Copyright (c) 2020 Gregory Davill <[email protected]>
# License: BSD
from migen import *
from litex.soc.interconnect.stream import Endpoint
from rtl.edge_detect import EdgeDetect
from litex.soc.interconnect.csr import AutoCSR, CSR, CSRStatus, CSRStorage
from litex.soc.interconnect.stream import Endpoint, EndpointDescription, AsyncFIFO | [
2,
770,
2393,
318,
15069,
357,
66,
8,
12131,
20653,
2544,
359,
1279,
9903,
13,
67,
615,
359,
31,
14816,
13,
785,
29,
198,
2,
13789,
25,
347,
10305,
198,
198,
6738,
285,
9324,
1330,
1635,
198,
6738,
300,
578,
87,
13,
35634,
13,
3849,
8443,
13,
5532,
1330,
5268,
4122,
198,
6738,
374,
28781,
13,
14907,
62,
15255,
478,
1330,
13113,
47504,
198,
198,
6738,
300,
578,
87,
13,
35634,
13,
3849,
8443,
13,
6359,
81,
1330,
11160,
7902,
49,
11,
9429,
49,
11,
9429,
49,
19580,
11,
9429,
49,
31425,
198,
6738,
300,
578,
87,
13,
35634,
13,
3849,
8443,
13,
5532,
1330,
5268,
4122,
11,
5268,
4122,
11828,
11,
1081,
13361,
37,
5064,
46
] | 3.051282 | 117 |
from globals import *
import life as lfe
import historygen
import judgement
import survival
import speech
import groups
import combat
import camps
import sight
import brain
import zones
import bad_numbers
import logging
import random
MAX_INFLUENCE_FROM = 80
MAX_INTROVERSION = 10
MAX_CHARISMA = 9 | [
6738,
15095,
874,
1330,
1635,
198,
198,
11748,
1204,
355,
300,
5036,
198,
198,
11748,
2106,
5235,
198,
11748,
23071,
198,
11748,
9441,
198,
11748,
4046,
198,
11748,
2628,
198,
11748,
5249,
198,
11748,
11665,
198,
11748,
6504,
198,
11748,
3632,
198,
11748,
14123,
198,
198,
11748,
2089,
62,
77,
17024,
198,
11748,
18931,
198,
11748,
4738,
198,
198,
22921,
62,
1268,
3697,
52,
18310,
62,
10913,
2662,
796,
4019,
198,
22921,
62,
1268,
5446,
8874,
4877,
2849,
796,
838,
198,
22921,
62,
38019,
1797,
5673,
796,
860
] | 3.409091 | 88 |
from qgis.core import QgsProcessing
from qgis.core import QgsProcessingAlgorithm
from qgis.core import QgsProcessingMultiStepFeedback
from qgis.core import QgsProcessingParameterRasterLayer
from qgis.core import QgsProcessingParameterRasterDestination
import processing
| [
6738,
10662,
70,
271,
13,
7295,
1330,
1195,
14542,
18709,
278,
198,
6738,
10662,
70,
271,
13,
7295,
1330,
1195,
14542,
18709,
278,
2348,
42289,
198,
6738,
10662,
70,
271,
13,
7295,
1330,
1195,
14542,
18709,
278,
29800,
8600,
18332,
1891,
198,
6738,
10662,
70,
271,
13,
7295,
1330,
1195,
14542,
18709,
278,
36301,
49,
1603,
49925,
198,
6738,
10662,
70,
271,
13,
7295,
1330,
1195,
14542,
18709,
278,
36301,
49,
1603,
24159,
1883,
198,
11748,
7587,
628
] | 3.474359 | 78 |
import torch.nn as nn
import torch.nn.functional as F
import torch
from sklearn.cluster import KMeans
from sklearn.metrics.pairwise import pairwise_distances
import numpy as np
def initialize_bof_layers(model, data_loader, n_samples=100, n_feature_samples=5000, batch_size=32, k_means_max_iters=300,
k_means_n_init=4):
"""
Initializes the BoF layers of a model
:param model: the model
:param data: data to be used for initializing the model
:param n_samples: number of data samples used for the initializes
:param n_feature_samples: number of feature vectors to be used for the clustering process
:param batch_size:
:param k_means_max_iters: the maximum number of iterations for the clustering algorithm (k-means)
:param k_means_n_init: defines how many times to run the k-means algorithm
:return:
"""
features = {}
iternum = int(n_samples / batch_size + 0.5)
for name, layer in model.named_modules():
if isinstance(layer, BoF_Pooling):
print("Found BoF layer (layer %s), initializing..." % name)
# Compile a function for getting the feature vectors
# get_features = K.function([model.input] + [model.training], [model.layers[i - 1].output])
features[name] = []
handler = layer.register_forward_pre_hook(get_features(name))
# iterate dataset to trigger hook to get features
for i in range(iternum):
data, labels = data_loader.__iter__().next()
if len(list(data.shape)) == 5:
data = data[:, 0]
if torch.cuda.is_available():
data = data.cuda()
output = model(data)
handler.remove()
layer_features = np.concatenate(features[name])
np.random.shuffle(layer_features)
layer_features = layer_features[:n_feature_samples]
# Cluster the features
kmeans = KMeans(n_clusters=layer.N_k, n_init=k_means_n_init, max_iter=k_means_max_iters)
kmeans.fit(layer_features)
# V of BoF pooling layer
V = kmeans.cluster_centers_
V = V.reshape((V.shape[0], V.shape[1], 1, 1))
# Set the value for the codebook
layer.V.data = torch.tensor(np.float32(V)).cuda() if torch.cuda.is_available() else \
torch.tensor(np.float32(V))
# Get the mean distance for initializing the sigmas
mean_dist = np.mean(pairwise_distances(layer_features[:100]))
# Set the value for sigmas
sigmas = np.ones((1, layer.N_k, 1, 1)) * (mean_dist ** 2)
layer.sigmas.data = torch.tensor(np.float32(sigmas)).cuda() if torch.cuda.is_available() else \
torch.tensor(np.float32(sigmas))
if __name__ == '__main__':
x = torch.ones(size=(32, 32, 11, 11)) * 0.5
model = BoF_Pooling(64, features=32, spatial_level=1)
y = model(x)
print(y.mean())
| [
11748,
28034,
13,
20471,
355,
299,
77,
198,
11748,
28034,
13,
20471,
13,
45124,
355,
376,
198,
11748,
28034,
198,
6738,
1341,
35720,
13,
565,
5819,
1330,
509,
5308,
504,
198,
6738,
1341,
35720,
13,
4164,
10466,
13,
24874,
3083,
1330,
5166,
3083,
62,
17080,
1817,
198,
11748,
299,
32152,
355,
45941,
628,
198,
4299,
41216,
62,
65,
1659,
62,
75,
6962,
7,
19849,
11,
1366,
62,
29356,
11,
299,
62,
82,
12629,
28,
3064,
11,
299,
62,
30053,
62,
82,
12629,
28,
27641,
11,
15458,
62,
7857,
28,
2624,
11,
479,
62,
1326,
504,
62,
9806,
62,
270,
364,
28,
6200,
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,
479,
62,
1326,
504,
62,
77,
62,
15003,
28,
19,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
20768,
4340,
262,
3248,
37,
11685,
286,
257,
2746,
198,
220,
220,
220,
1058,
17143,
2746,
25,
262,
2746,
198,
220,
220,
220,
1058,
17143,
1366,
25,
1366,
284,
307,
973,
329,
4238,
2890,
262,
2746,
198,
220,
220,
220,
1058,
17143,
299,
62,
82,
12629,
25,
1271,
286,
1366,
8405,
973,
329,
262,
4238,
4340,
198,
220,
220,
220,
1058,
17143,
299,
62,
30053,
62,
82,
12629,
25,
1271,
286,
3895,
30104,
284,
307,
973,
329,
262,
32966,
1586,
1429,
198,
220,
220,
220,
1058,
17143,
15458,
62,
7857,
25,
198,
220,
220,
220,
1058,
17143,
479,
62,
1326,
504,
62,
9806,
62,
270,
364,
25,
262,
5415,
1271,
286,
34820,
329,
262,
32966,
1586,
11862,
357,
74,
12,
1326,
504,
8,
198,
220,
220,
220,
1058,
17143,
479,
62,
1326,
504,
62,
77,
62,
15003,
25,
15738,
703,
867,
1661,
284,
1057,
262,
479,
12,
1326,
504,
11862,
198,
220,
220,
220,
1058,
7783,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3033,
796,
23884,
628,
220,
220,
220,
340,
1142,
388,
796,
493,
7,
77,
62,
82,
12629,
1220,
15458,
62,
7857,
1343,
657,
13,
20,
8,
198,
220,
220,
220,
329,
1438,
11,
7679,
287,
2746,
13,
13190,
62,
18170,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
29289,
11,
3248,
37,
62,
27201,
278,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
21077,
3248,
37,
7679,
357,
29289,
4064,
82,
828,
4238,
2890,
9313,
4064,
1438,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3082,
576,
257,
2163,
329,
1972,
262,
3895,
30104,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
651,
62,
40890,
796,
509,
13,
8818,
26933,
19849,
13,
15414,
60,
1343,
685,
19849,
13,
34409,
4357,
685,
19849,
13,
75,
6962,
58,
72,
532,
352,
4083,
22915,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3033,
58,
3672,
60,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21360,
796,
7679,
13,
30238,
62,
11813,
62,
3866,
62,
25480,
7,
1136,
62,
40890,
7,
3672,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
11629,
378,
27039,
284,
7616,
8011,
284,
651,
3033,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
270,
1142,
388,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
11,
14722,
796,
1366,
62,
29356,
13,
834,
2676,
834,
22446,
19545,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
4868,
7,
7890,
13,
43358,
4008,
6624,
642,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
1366,
58,
45299,
657,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
28034,
13,
66,
15339,
13,
271,
62,
15182,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
1366,
13,
66,
15339,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5072,
796,
2746,
7,
7890,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21360,
13,
28956,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7679,
62,
40890,
796,
45941,
13,
1102,
9246,
268,
378,
7,
40890,
58,
3672,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
25120,
13,
1477,
18137,
7,
29289,
62,
40890,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7679,
62,
40890,
796,
7679,
62,
40890,
58,
25,
77,
62,
30053,
62,
82,
12629,
60,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
38279,
262,
3033,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
1326,
504,
796,
509,
5308,
504,
7,
77,
62,
565,
13654,
28,
29289,
13,
45,
62,
74,
11,
299,
62,
15003,
28,
74,
62,
1326,
504,
62,
77,
62,
15003,
11,
3509,
62,
2676,
28,
74,
62,
1326,
504,
62,
9806,
62,
270,
364,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
1326,
504,
13,
11147,
7,
29289,
62,
40890,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
569,
286,
3248,
37,
5933,
278,
7679,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
569,
796,
479,
1326,
504,
13,
565,
5819,
62,
1087,
364,
62,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
569,
796,
569,
13,
3447,
1758,
19510,
53,
13,
43358,
58,
15,
4357,
569,
13,
43358,
58,
16,
4357,
352,
11,
352,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5345,
262,
1988,
329,
262,
2438,
2070,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7679,
13,
53,
13,
7890,
796,
28034,
13,
83,
22854,
7,
37659,
13,
22468,
2624,
7,
53,
29720,
66,
15339,
3419,
611,
28034,
13,
66,
15339,
13,
271,
62,
15182,
3419,
2073,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28034,
13,
83,
22854,
7,
37659,
13,
22468,
2624,
7,
53,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3497,
262,
1612,
5253,
329,
4238,
2890,
262,
43237,
5356,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1612,
62,
17080,
796,
45941,
13,
32604,
7,
24874,
3083,
62,
17080,
1817,
7,
29289,
62,
40890,
58,
25,
3064,
60,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5345,
262,
1988,
329,
43237,
5356,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43237,
5356,
796,
45941,
13,
1952,
19510,
16,
11,
7679,
13,
45,
62,
74,
11,
352,
11,
352,
4008,
1635,
357,
32604,
62,
17080,
12429,
362,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7679,
13,
82,
328,
5356,
13,
7890,
796,
28034,
13,
83,
22854,
7,
37659,
13,
22468,
2624,
7,
82,
328,
5356,
29720,
66,
15339,
3419,
611,
28034,
13,
66,
15339,
13,
271,
62,
15182,
3419,
2073,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28034,
13,
83,
22854,
7,
37659,
13,
22468,
2624,
7,
82,
328,
5356,
4008,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
2124,
796,
28034,
13,
1952,
7,
7857,
16193,
2624,
11,
3933,
11,
1367,
11,
1367,
4008,
1635,
657,
13,
20,
198,
220,
220,
220,
2746,
796,
3248,
37,
62,
27201,
278,
7,
2414,
11,
3033,
28,
2624,
11,
21739,
62,
5715,
28,
16,
8,
198,
220,
220,
220,
331,
796,
2746,
7,
87,
8,
198,
220,
220,
220,
3601,
7,
88,
13,
32604,
28955,
198
] | 2.226804 | 1,358 |
#!/usr/bin/env python3
from gevent import monkey; monkey.patch_all()
from arago.actors import Actor, Root
import arago.actors.pattern_matching as matching
from arago.common.logging import getCustomLogger
logger = getCustomLogger(level="WARNING")
players = [PingPong(name="Player One"), PingPong(name="Player Two")]
players[0].serve(opponent=players[1])
Root(name="root", children=players)
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
6738,
4903,
1151,
1330,
21657,
26,
21657,
13,
17147,
62,
439,
3419,
198,
6738,
610,
3839,
13,
529,
669,
1330,
27274,
11,
20410,
198,
11748,
610,
3839,
13,
529,
669,
13,
33279,
62,
15699,
278,
355,
12336,
198,
6738,
610,
3839,
13,
11321,
13,
6404,
2667,
1330,
651,
15022,
11187,
1362,
198,
198,
6404,
1362,
796,
651,
15022,
11187,
1362,
7,
5715,
2625,
31502,
4943,
198,
198,
32399,
796,
685,
49806,
47,
506,
7,
3672,
2625,
14140,
1881,
12340,
34263,
47,
506,
7,
3672,
2625,
14140,
4930,
4943,
60,
198,
198,
32399,
58,
15,
4083,
2655,
303,
7,
10365,
3471,
28,
32399,
58,
16,
12962,
198,
198,
30016,
7,
3672,
2625,
15763,
1600,
1751,
28,
32399,
8,
198
] | 3.070313 | 128 |
import pyspark
import random
if __name__ == "__main__":
sc_conf = pyspark.SparkConf()
sc_conf.setAppName("pi-app")
sc_conf.setMaster('spark://spark-master-01:7077')
sc_conf.set('spark.executor.cores','1')
sc_conf.set("spark.executor.memory", '1g')
sc = pyspark.SparkContext(conf=sc_conf)
num_samples = 1000000000
count = sc.parallelize(range(0, num_samples)).filter(inside).count()
pi = 4 * count / num_samples
print(pi)
sc.stop()
| [
11748,
279,
893,
20928,
198,
11748,
4738,
220,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
629,
62,
10414,
796,
279,
893,
20928,
13,
4561,
668,
18546,
3419,
198,
220,
629,
62,
10414,
13,
2617,
4677,
5376,
7203,
14415,
12,
1324,
4943,
198,
220,
629,
62,
10414,
13,
2617,
18254,
10786,
2777,
668,
1378,
2777,
668,
12,
9866,
12,
486,
25,
2154,
3324,
11537,
198,
220,
629,
62,
10414,
13,
2617,
10786,
2777,
668,
13,
18558,
38409,
13,
66,
2850,
41707,
16,
11537,
198,
220,
629,
62,
10414,
13,
2617,
7203,
2777,
668,
13,
18558,
38409,
13,
31673,
1600,
705,
16,
70,
11537,
628,
220,
629,
796,
279,
893,
20928,
13,
4561,
668,
21947,
7,
10414,
28,
1416,
62,
10414,
8,
628,
220,
997,
62,
82,
12629,
796,
1802,
24598,
628,
220,
954,
796,
629,
13,
1845,
29363,
1096,
7,
9521,
7,
15,
11,
997,
62,
82,
12629,
29720,
24455,
7,
48787,
737,
9127,
3419,
628,
220,
31028,
796,
604,
1635,
954,
1220,
997,
62,
82,
12629,
198,
220,
3601,
7,
14415,
8,
628,
220,
629,
13,
11338,
3419,
628
] | 2.478495 | 186 |
from Products.CMFPlone.utils import safe_unicode
from bika.lims import logger, to_utf8
from bika.lims.interfaces import IJSONReadExtender
from bika.lims.jsonapi import get_include_fields
from plone.jsonapi.core import router
from plone.jsonapi.core.interfaces import IRouteProvider
from plone.protect.authenticator import AuthenticatorView
from bika.lims.jsonapi import load_brain_metadata
from bika.lims.jsonapi import load_field_values
from Products.CMFCore.utils import getToolByName
from zope import interface
from zope.component import getAdapters
import re
import App
| [
6738,
18675,
13,
24187,
37,
3646,
505,
13,
26791,
1330,
3338,
62,
46903,
1098,
198,
6738,
275,
9232,
13,
2475,
82,
1330,
49706,
11,
284,
62,
40477,
23,
198,
6738,
275,
9232,
13,
2475,
82,
13,
3849,
32186,
1330,
314,
40386,
5569,
11627,
2194,
198,
6738,
275,
9232,
13,
2475,
82,
13,
17752,
15042,
1330,
651,
62,
17256,
62,
25747,
198,
6738,
458,
505,
13,
17752,
15042,
13,
7295,
1330,
20264,
198,
6738,
458,
505,
13,
17752,
15042,
13,
7295,
13,
3849,
32186,
1330,
14826,
13192,
29495,
198,
6738,
458,
505,
13,
35499,
13,
41299,
26407,
1330,
31885,
26407,
7680,
198,
6738,
275,
9232,
13,
2475,
82,
13,
17752,
15042,
1330,
3440,
62,
27825,
62,
38993,
198,
6738,
275,
9232,
13,
2475,
82,
13,
17752,
15042,
1330,
3440,
62,
3245,
62,
27160,
198,
6738,
18675,
13,
24187,
4851,
382,
13,
26791,
1330,
651,
25391,
3886,
5376,
198,
6738,
1976,
3008,
1330,
7071,
198,
6738,
1976,
3008,
13,
42895,
1330,
651,
2782,
12126,
198,
11748,
302,
198,
11748,
2034,
628,
198
] | 3.388235 | 170 |
'''
Function:
关卡切换界面
Author:
Charles
微信公众号:
Charles的皮卡丘
'''
import pygame
from .....utils import QuitGame
'''关卡切换界面''' | [
7061,
6,
198,
22203,
25,
198,
220,
220,
220,
10263,
227,
111,
39355,
94,
26344,
229,
162,
235,
95,
45911,
234,
165,
251,
95,
198,
13838,
25,
198,
220,
220,
220,
7516,
198,
36181,
106,
46479,
94,
17739,
105,
27670,
245,
20998,
115,
25,
198,
220,
220,
220,
7516,
21410,
19021,
106,
39355,
94,
10310,
246,
198,
7061,
6,
198,
11748,
12972,
6057,
198,
6738,
11485,
986,
26791,
1330,
48887,
8777,
628,
198,
7061,
6,
17739,
111,
39355,
94,
26344,
229,
162,
235,
95,
45911,
234,
165,
251,
95,
7061,
6
] | 1.450549 | 91 |
# -*- coding: utf-8 -*-
"""
Reads in the raw data fetched from ENTSO-E Transparency Platform, refactors the
data and fills in missing data
"""
import pandas as pd
import numpy as np
from datetime import datetime, date, time, timezone, timedelta
import pickle
import os
import logging
#%%
def aggregate_entso(dictionary, start=None, end=None, start2=None):
""" Receives dictionary of raw data queried from ENTSO-E Transparency Portal
and start and end of sub-annual period desired (optional)
Calculates the size in timesteps between samples (rows) and checks
if they are identical (i.e., even timesteps throughout time series)
"""
new_dict = {}
summed_dict = {}
no_trade = []
for key, value in dictionary.items():
timestep_list = []
if (start is not None) and (end is not None) and (not isinstance(value, float)):
try:
value_tmp = value.loc[start:end]
if value_tmp.empty and (start2 is not None):
print(f'{key} does not have an entry for {start}. Sampling closest hour instead')
value_tmp = value.loc[start2:start2 + timedelta(minutes=1)]
# entsotime = value.index
except KeyError:
if isinstance(key, tuple):
print(f'No trade for {key} at {start}')
except AttributeError:
if isinstance(key, tuple):
no_trade.append(key)
else:
print(f'No dataframe for {key}, cannot take slice!')
raise
except Exception as e:
print('Ran into a problem!')
print(e)
raise
value = value_tmp
# try:
if isinstance(value, pd.DataFrame) or isinstance(value, pd.Series):
# we don't need timesteps if we have a single time period (i.e., footprint analysis)
for i in range(0, value.shape[0]-1):
try:
timestep = (value.index[i+1] - value.index[i]).total_seconds() / 3600 # get timestep in hours
timestep_list.append(timestep)
except IndexError:
print(f'IndexError {i}')
except Exception as e:
print('Could not perform!')
print(e)
# Make sure timesteps are all equal length before calculating
# NB: this is made obsolete by using bentso's fullyear=True
if checkEqual(timestep_list):
if (isinstance(value, pd.DataFrame)):
# ENTSO-E data from 2020 introduces MultiIndex headers
if type(value.columns) == pd.MultiIndex:
value = value.loc(axis=1)[:, 'Actual Aggregated'] # drop "Actual Consumption"
value.columns = value.columns.droplevel(1)
if (value.columns.str.contains('Hydro Pumped Storage').sum() == 1):
# check if value is the production matrix and if so, if the country has pumped storage
logging.info(f'Correcting for negative pumped hydropower in {key}')
value = value.apply(distribute_neg_hydro, axis=1) # correct for negative pumped hydro
if value.shape[0] -1 > 0:
summed_dict[key] = (value * timestep_list[0] / 1e6).sum() # To calculate electricity generated; take power per timestep and multiply by length of time period. Sum over whole year
elif value.shape[0] - 1 == 0:
summed_dict[key] = (value / 1e6).sum()
new_dict[key] = value
else:
print(f'warning: unequal time steps for {key}')
logging.warning(f'unequal time steps for %s', key)
if min(timestep_list) == 1:
logging.info(f'resampling data to 1 hour increments in {key}')
new_dict[key] = value.resample('1H').interpolate()
summed_dict[key] = (new_dict[key] * timestep_list[0] / 1e6).sum()
print('1 hour')
elif min(timestep_list) == 0.25:
logging.info(f'resampling data to 15 minute increments in {key}')
new_dict[key] = value.resample('15T').interpolate()
summed_dict[key] = (new_dict[key] * timestep_list[0] / 1e6).sum()
print('15 minutes')
else:
print('very uneven timesteps')
#value = (value*timestep_list[0]/1000).sum()
# except Exception as e:
# print(f'something went wrong in {key}')
# print(e)
return summed_dict, new_dict #, entsotime
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
198,
4149,
82,
287,
262,
8246,
1366,
11351,
1740,
422,
12964,
4694,
46,
12,
36,
49165,
19193,
11,
1006,
529,
669,
262,
198,
1366,
290,
23816,
287,
4814,
1366,
198,
37811,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
4818,
8079,
1330,
4818,
8079,
11,
3128,
11,
640,
11,
640,
11340,
11,
28805,
12514,
198,
11748,
2298,
293,
198,
11748,
28686,
198,
11748,
18931,
198,
198,
2,
16626,
198,
198,
4299,
19406,
62,
298,
568,
7,
67,
14188,
11,
923,
28,
14202,
11,
886,
28,
14202,
11,
923,
17,
28,
14202,
2599,
198,
220,
220,
220,
37227,
19520,
1083,
22155,
286,
8246,
1366,
42517,
798,
422,
12964,
4694,
46,
12,
36,
49165,
25663,
198,
220,
220,
220,
220,
220,
220,
220,
290,
923,
290,
886,
286,
850,
12,
1236,
723,
2278,
10348,
357,
25968,
8,
198,
220,
220,
220,
220,
220,
220,
220,
27131,
689,
262,
2546,
287,
4628,
395,
25386,
1022,
8405,
357,
8516,
8,
290,
8794,
198,
220,
220,
220,
220,
220,
220,
220,
611,
484,
389,
10411,
357,
72,
13,
68,
1539,
772,
4628,
395,
25386,
3690,
640,
2168,
8,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
649,
62,
11600,
796,
23884,
198,
220,
220,
220,
32794,
62,
11600,
796,
23884,
198,
220,
220,
220,
645,
62,
25351,
796,
17635,
628,
220,
220,
220,
329,
1994,
11,
1988,
287,
22155,
13,
23814,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
4628,
395,
538,
62,
4868,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
611,
357,
9688,
318,
407,
6045,
8,
290,
357,
437,
318,
407,
6045,
8,
290,
357,
1662,
318,
39098,
7,
8367,
11,
12178,
8,
2599,
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,
1988,
62,
22065,
796,
1988,
13,
17946,
58,
9688,
25,
437,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1988,
62,
22065,
13,
28920,
290,
357,
9688,
17,
318,
407,
6045,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
69,
6,
90,
2539,
92,
857,
407,
423,
281,
5726,
329,
1391,
9688,
27422,
3409,
11347,
11706,
1711,
2427,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
62,
22065,
796,
1988,
13,
17946,
58,
9688,
17,
25,
9688,
17,
1343,
28805,
12514,
7,
1084,
1769,
28,
16,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
658,
313,
524,
796,
1988,
13,
9630,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
7383,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
2539,
11,
46545,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
69,
6,
2949,
3292,
329,
1391,
2539,
92,
379,
1391,
9688,
92,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
3460,
4163,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
2539,
11,
46545,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
645,
62,
25351,
13,
33295,
7,
2539,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
69,
6,
2949,
1366,
14535,
329,
1391,
2539,
5512,
2314,
1011,
16416,
0,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
355,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
49,
272,
656,
257,
1917,
0,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
68,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
1988,
62,
22065,
198,
2,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
8367,
11,
279,
67,
13,
6601,
19778,
8,
393,
318,
39098,
7,
8367,
11,
279,
67,
13,
27996,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
356,
836,
470,
761,
4628,
395,
25386,
611,
356,
423,
257,
2060,
640,
2278,
357,
72,
13,
68,
1539,
24713,
3781,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
15,
11,
1988,
13,
43358,
58,
15,
45297,
16,
2599,
198,
220,
220,
220,
220,
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,
220,
220,
220,
220,
4628,
395,
538,
796,
357,
8367,
13,
9630,
58,
72,
10,
16,
60,
532,
1988,
13,
9630,
58,
72,
35944,
23350,
62,
43012,
3419,
1220,
4570,
405,
220,
1303,
651,
4628,
395,
538,
287,
2250,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4628,
395,
538,
62,
4868,
13,
33295,
7,
16514,
395,
538,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
12901,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
69,
6,
15732,
12331,
1391,
72,
92,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
355,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
23722,
407,
1620,
0,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
68,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
6889,
1654,
4628,
395,
25386,
389,
477,
4961,
4129,
878,
26019,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
41354,
25,
428,
318,
925,
26533,
416,
1262,
17157,
568,
338,
1336,
1941,
28,
17821,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2198,
36,
13255,
7,
16514,
395,
538,
62,
4868,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
357,
271,
39098,
7,
8367,
11,
279,
67,
13,
6601,
19778,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
12964,
4694,
46,
12,
36,
1366,
422,
12131,
20718,
15237,
15732,
24697,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2099,
7,
8367,
13,
28665,
82,
8,
6624,
279,
67,
13,
29800,
15732,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
1988,
13,
17946,
7,
22704,
28,
16,
38381,
45299,
705,
6398,
723,
19015,
2301,
515,
20520,
220,
1303,
4268,
366,
6398,
723,
42158,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
13,
28665,
82,
796,
1988,
13,
28665,
82,
13,
22285,
1154,
626,
7,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
357,
8367,
13,
28665,
82,
13,
2536,
13,
3642,
1299,
10786,
40436,
305,
23220,
276,
20514,
27691,
16345,
3419,
6624,
352,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2198,
611,
1988,
318,
262,
3227,
17593,
290,
611,
523,
11,
611,
262,
1499,
468,
29104,
6143,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18931,
13,
10951,
7,
69,
6,
42779,
278,
329,
4633,
29104,
7409,
1773,
789,
287,
1391,
2539,
92,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
1988,
13,
39014,
7,
17080,
4163,
62,
12480,
62,
15511,
305,
11,
16488,
28,
16,
8,
220,
1303,
3376,
329,
4633,
29104,
17173,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1988,
13,
43358,
58,
15,
60,
532,
16,
1875,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32794,
62,
11600,
58,
2539,
60,
796,
357,
8367,
1635,
4628,
395,
538,
62,
4868,
58,
15,
60,
1220,
352,
68,
21,
737,
16345,
3419,
1303,
1675,
15284,
8744,
7560,
26,
1011,
1176,
583,
4628,
395,
538,
290,
29162,
416,
4129,
286,
640,
2278,
13,
5060,
625,
2187,
614,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
1988,
13,
43358,
58,
15,
60,
532,
352,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32794,
62,
11600,
58,
2539,
60,
796,
357,
8367,
1220,
352,
68,
21,
737,
16345,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
649,
62,
11600,
58,
2539,
60,
796,
1988,
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,
3601,
7,
69,
6,
43917,
25,
37334,
640,
4831,
329,
1391,
2539,
92,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18931,
13,
43917,
7,
69,
6,
1726,
13255,
640,
4831,
329,
4064,
82,
3256,
1994,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
949,
7,
16514,
395,
538,
62,
4868,
8,
6624,
352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18931,
13,
10951,
7,
69,
821,
37687,
11347,
1366,
284,
352,
1711,
41867,
287,
1391,
2539,
92,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
649,
62,
11600,
58,
2539,
60,
796,
1988,
13,
411,
1403,
10786,
16,
39,
27691,
3849,
16104,
378,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32794,
62,
11600,
58,
2539,
60,
796,
357,
3605,
62,
11600,
58,
2539,
60,
1635,
4628,
395,
538,
62,
4868,
58,
15,
60,
1220,
352,
68,
21,
737,
16345,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
16,
1711,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
949,
7,
16514,
395,
538,
62,
4868,
8,
6624,
657,
13,
1495,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18931,
13,
10951,
7,
69,
821,
37687,
11347,
1366,
284,
1315,
5664,
41867,
287,
1391,
2539,
92,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
649,
62,
11600,
58,
2539,
60,
796,
1988,
13,
411,
1403,
10786,
1314,
51,
27691,
3849,
16104,
378,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32794,
62,
11600,
58,
2539,
60,
796,
357,
3605,
62,
11600,
58,
2539,
60,
1635,
4628,
395,
538,
62,
4868,
58,
15,
60,
1220,
352,
68,
21,
737,
16345,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
1314,
2431,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
548,
30690,
4628,
395,
25386,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
8367,
796,
357,
8367,
9,
16514,
395,
538,
62,
4868,
58,
15,
60,
14,
12825,
737,
16345,
3419,
198,
2,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
355,
304,
25,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
69,
338,
8370,
1816,
2642,
287,
1391,
2539,
92,
11537,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
68,
8,
198,
220,
220,
220,
1441,
32794,
62,
11600,
11,
649,
62,
11600,
1303,
11,
220,
658,
313,
524,
198
] | 2.049061 | 2,344 |
"""
A dictionary of words.
:Author: Maded Batara III
:Version: v20181010
"""
from collections import Counter
from .dictionary_query import DictionaryQuery
class Dictionary(DictionaryQuery):
"""A dictionary of words.
As this is a subclass of DictionaryQuery, this class supports all its
methods."""
def __init__(self, filename):
"""
Initializes a new dictionary.
Args:
filename (str): Filename of the dictionary to be loaded in.
"""
with open(filename) as dictionary_file:
self.words = {
word: Counter(word)
for word in dictionary_file.read().splitlines()
}
def __repr__(self):
"""Implements repr(Dictionary)."""
return "Dictionary(words={0})".format(len(self))
def __str__(self):
"""Implements str(Dictionary)."""
return "Dictionary with {0} entries".format(len(self))
| [
37811,
198,
32,
22155,
286,
2456,
13,
198,
198,
25,
13838,
25,
220,
220,
220,
220,
4627,
276,
6577,
3301,
6711,
198,
25,
14815,
25,
220,
220,
220,
410,
1264,
6659,
20943,
198,
37811,
198,
198,
6738,
17268,
1330,
15034,
198,
198,
6738,
764,
67,
14188,
62,
22766,
1330,
28261,
20746,
198,
198,
4871,
28261,
7,
35,
14188,
20746,
2599,
198,
220,
220,
220,
37227,
32,
22155,
286,
2456,
13,
628,
220,
220,
220,
1081,
428,
318,
257,
47611,
286,
28261,
20746,
11,
428,
1398,
6971,
477,
663,
198,
220,
220,
220,
5050,
526,
15931,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
29472,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
20768,
4340,
257,
649,
22155,
13,
628,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29472,
357,
2536,
2599,
7066,
12453,
286,
262,
22155,
284,
307,
9639,
287,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
34345,
8,
355,
22155,
62,
7753,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
10879,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1573,
25,
15034,
7,
4775,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1573,
287,
22155,
62,
7753,
13,
961,
22446,
35312,
6615,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
628,
220,
220,
220,
825,
11593,
260,
1050,
834,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
3546,
1154,
902,
41575,
7,
35,
14188,
21387,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
366,
35,
14188,
7,
10879,
34758,
15,
30072,
1911,
18982,
7,
11925,
7,
944,
4008,
628,
220,
220,
220,
825,
11593,
2536,
834,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
3546,
1154,
902,
965,
7,
35,
14188,
21387,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
366,
35,
14188,
351,
1391,
15,
92,
12784,
1911,
18982,
7,
11925,
7,
944,
4008,
198
] | 2.477807 | 383 |
from myhdl import *
@block
def cr(pc_next,branch_offset,r6_r7_data,cr_data,clk,rst,int0,int1,int2,int3,mem_read,mem_write,mem_ok,branch,selector,cr_write,ret,apc,jmp,bra
,main_state):
'''
:param clk: 1 in clk
:param rst: 1 in rst
:param int0: 1 in interrupt
:param int1: 1 in interrupt
:param int2: 1 in interrupt
:param int3: 1 in interrupt
:param mem_read: 1 in memory read
:param mem_write: 1 in memory write
:param mem_ok: 1 in memory ok
:param branch: 1 in branch
:param selector: 3 in selectors
:param cr_write:1 in cr write
:param ret: 1 in return
:param apc: 1 in apc
:param jmp: 1 in jmp
:param bra: 1 in branch if
:param main_state: 1 out main state
:param pc_next: 16 out program counter next
:param branch_offset: 16 in branch offset
:param r6_r7_data: 16 in data from r6 and r7 (pointer
:param cr_data: 16 out cr register data
:return:
'''
states = enum ('status','ie','epc','cpc','tvec0','tvec1','tvec2','tvec3')
CPC = Signal(intbv(0)[16:])
#TEMP = Signal(intbv(0)[16:])
TVEC0 = Signal(intbv(0)[16:])
TVEC1 = Signal(intbv(0)[16:])
TVEC2 = Signal(intbv(0)[16:])
TVEC3 = Signal(intbv(0)[16:])
EPC = Signal(intbv(0)[16:])
PC = Signal(intbv(0)[16:])
GIE = Signal(bool(0))
PGIE = Signal(bool(0))
IE0 = Signal(bool(0))
IE1 = Signal(bool(0))
IE2 = Signal(bool(0))
IE3 = Signal(bool(0))
int_acc = Signal(bool(0))
tvec = Signal(intbv(0)[16:])
int0_acc = Signal(bool(0))
int1_acc = Signal(bool(0))
int2_acc = Signal(bool(0))
int3_acc = Signal(bool(0))
@always_comb
@always_comb
'''
@always_comb
def comb_logic3():
if selector=='000000001':
cr_data[16:2].next = intbv(0)[14:]
cr_data[1].next = PGIE
cr_data[0].next = GIE
elif selector=='000000010':
cr_data[16:4].next = intbv(0)[12:]
cr_data[3].next = IE3
cr_data[2].next = IE2
cr_data[1].next = IE1
cr_data[0].next = IE0
elif selector=='000000100':
cr_data.next = EPC
elif selector=='000001000':
cr_data.next = CPC
elif selector == '000010000':
cr_data.next = TVEC0
elif selector == '000100000':
cr_data.next = TVEC1
elif selector == '001000000':
cr_data.next = TVEC2
elif selector == '010000000':
cr_data.next = TVEC3
else:
cr_data.next = 0
'''
@always_comb
@always_seq(clk.posedge,reset = rst)
@always_seq(clk.posedge, reset=rst)
@always_seq(clk.posedge, reset=rst)
@always_seq(clk.posedge, reset=rst)
@always_seq(clk.posedge, reset=rst)
@always_seq(clk.posedge, reset=rst)
@always_seq(clk.posedge, reset=rst)
@always_comb
@always_comb
return instances()
| [
6738,
616,
71,
25404,
1330,
1635,
198,
198,
31,
9967,
198,
4299,
1067,
7,
14751,
62,
19545,
11,
1671,
3702,
62,
28968,
11,
81,
21,
62,
81,
22,
62,
7890,
11,
6098,
62,
7890,
11,
565,
74,
11,
81,
301,
11,
600,
15,
11,
600,
16,
11,
600,
17,
11,
600,
18,
11,
11883,
62,
961,
11,
11883,
62,
13564,
11,
11883,
62,
482,
11,
1671,
3702,
11,
19738,
273,
11,
6098,
62,
13564,
11,
1186,
11,
499,
66,
11,
73,
3149,
11,
16057,
198,
220,
220,
220,
220,
220,
220,
837,
12417,
62,
5219,
2599,
628,
220,
220,
220,
705,
7061,
628,
220,
220,
220,
1058,
17143,
537,
74,
25,
352,
287,
537,
74,
198,
220,
220,
220,
1058,
17143,
374,
301,
25,
352,
287,
374,
301,
198,
220,
220,
220,
1058,
17143,
493,
15,
25,
352,
287,
11313,
198,
220,
220,
220,
1058,
17143,
493,
16,
25,
352,
287,
11313,
198,
220,
220,
220,
1058,
17143,
493,
17,
25,
352,
287,
11313,
198,
220,
220,
220,
1058,
17143,
493,
18,
25,
352,
287,
11313,
198,
220,
220,
220,
1058,
17143,
1066,
62,
961,
25,
352,
287,
4088,
1100,
198,
220,
220,
220,
1058,
17143,
1066,
62,
13564,
25,
352,
287,
4088,
3551,
198,
220,
220,
220,
1058,
17143,
1066,
62,
482,
25,
352,
287,
4088,
12876,
198,
220,
220,
220,
1058,
17143,
8478,
25,
220,
352,
287,
8478,
198,
220,
220,
220,
1058,
17143,
31870,
25,
220,
513,
287,
2922,
669,
198,
220,
220,
220,
1058,
17143,
1067,
62,
13564,
25,
16,
287,
1067,
3551,
198,
220,
220,
220,
1058,
17143,
1005,
25,
352,
287,
1441,
198,
220,
220,
220,
1058,
17143,
2471,
66,
25,
352,
287,
2471,
66,
198,
220,
220,
220,
1058,
17143,
474,
3149,
25,
352,
287,
474,
3149,
198,
220,
220,
220,
1058,
17143,
8290,
25,
352,
287,
8478,
611,
198,
220,
220,
220,
1058,
17143,
1388,
62,
5219,
25,
352,
503,
1388,
1181,
198,
220,
220,
220,
1058,
17143,
40653,
62,
19545,
25,
1467,
503,
1430,
3753,
1306,
198,
220,
220,
220,
1058,
17143,
8478,
62,
28968,
25,
1467,
287,
8478,
11677,
198,
220,
220,
220,
1058,
17143,
374,
21,
62,
81,
22,
62,
7890,
25,
1467,
287,
220,
1366,
422,
374,
21,
290,
374,
22,
357,
29536,
198,
220,
220,
220,
1058,
17143,
1067,
62,
7890,
25,
1467,
503,
1067,
7881,
1366,
198,
220,
220,
220,
1058,
7783,
25,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
2585,
796,
33829,
19203,
13376,
41707,
494,
41707,
538,
66,
41707,
13155,
66,
41707,
83,
35138,
15,
41707,
83,
35138,
16,
41707,
83,
35138,
17,
41707,
83,
35138,
18,
11537,
198,
220,
220,
220,
41190,
796,
26484,
7,
600,
65,
85,
7,
15,
38381,
1433,
25,
12962,
198,
220,
220,
220,
1303,
51,
39494,
796,
26484,
7,
600,
65,
85,
7,
15,
38381,
1433,
25,
12962,
198,
220,
220,
220,
3195,
2943,
15,
796,
26484,
7,
600,
65,
85,
7,
15,
38381,
1433,
25,
12962,
198,
220,
220,
220,
3195,
2943,
16,
796,
26484,
7,
600,
65,
85,
7,
15,
38381,
1433,
25,
12962,
198,
220,
220,
220,
3195,
2943,
17,
796,
26484,
7,
600,
65,
85,
7,
15,
38381,
1433,
25,
12962,
198,
220,
220,
220,
3195,
2943,
18,
796,
26484,
7,
600,
65,
85,
7,
15,
38381,
1433,
25,
12962,
198,
220,
220,
220,
412,
5662,
796,
26484,
7,
600,
65,
85,
7,
15,
38381,
1433,
25,
12962,
198,
220,
220,
220,
4217,
796,
26484,
7,
600,
65,
85,
7,
15,
38381,
1433,
25,
12962,
198,
220,
220,
220,
402,
10008,
796,
26484,
7,
30388,
7,
15,
4008,
198,
220,
220,
220,
23842,
10008,
796,
26484,
7,
30388,
7,
15,
4008,
198,
220,
220,
220,
28157,
15,
796,
26484,
7,
30388,
7,
15,
4008,
198,
220,
220,
220,
28157,
16,
796,
26484,
7,
30388,
7,
15,
4008,
198,
220,
220,
220,
28157,
17,
796,
26484,
7,
30388,
7,
15,
4008,
198,
220,
220,
220,
28157,
18,
796,
26484,
7,
30388,
7,
15,
4008,
198,
220,
220,
220,
493,
62,
4134,
796,
26484,
7,
30388,
7,
15,
4008,
198,
220,
220,
220,
256,
35138,
796,
26484,
7,
600,
65,
85,
7,
15,
38381,
1433,
25,
12962,
198,
220,
220,
220,
493,
15,
62,
4134,
796,
26484,
7,
30388,
7,
15,
4008,
198,
220,
220,
220,
493,
16,
62,
4134,
796,
26484,
7,
30388,
7,
15,
4008,
198,
220,
220,
220,
493,
17,
62,
4134,
796,
26484,
7,
30388,
7,
15,
4008,
198,
220,
220,
220,
493,
18,
62,
4134,
796,
26484,
7,
30388,
7,
15,
4008,
628,
220,
220,
220,
2488,
33770,
62,
24011,
628,
220,
220,
220,
2488,
33770,
62,
24011,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
2488,
33770,
62,
24011,
198,
220,
220,
220,
825,
1974,
62,
6404,
291,
18,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
611,
31870,
855,
6,
8269,
16,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1067,
62,
7890,
58,
1433,
25,
17,
4083,
19545,
796,
493,
65,
85,
7,
15,
38381,
1415,
47715,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1067,
62,
7890,
58,
16,
4083,
19545,
796,
23842,
10008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1067,
62,
7890,
58,
15,
4083,
19545,
796,
402,
10008,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
31870,
855,
6,
10535,
20943,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1067,
62,
7890,
58,
1433,
25,
19,
4083,
19545,
796,
493,
65,
85,
7,
15,
38381,
1065,
47715,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1067,
62,
7890,
58,
18,
4083,
19545,
796,
28157,
18,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1067,
62,
7890,
58,
17,
4083,
19545,
796,
28157,
17,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1067,
62,
7890,
58,
16,
4083,
19545,
796,
28157,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1067,
62,
7890,
58,
15,
4083,
19545,
796,
28157,
15,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
31870,
855,
6,
10535,
3064,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1067,
62,
7890,
13,
19545,
796,
412,
5662,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
31870,
855,
6,
2388,
486,
830,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1067,
62,
7890,
13,
19545,
796,
41190,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
31870,
6624,
705,
2388,
49388,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1067,
62,
7890,
13,
19545,
796,
3195,
2943,
15,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
31870,
6624,
705,
18005,
20483,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1067,
62,
7890,
13,
19545,
796,
3195,
2943,
16,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
31870,
6624,
705,
8298,
10535,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1067,
62,
7890,
13,
19545,
796,
3195,
2943,
17,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
31870,
6624,
705,
486,
24598,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1067,
62,
7890,
13,
19545,
796,
3195,
2943,
18,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1067,
62,
7890,
13,
19545,
796,
657,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
2488,
33770,
62,
24011,
628,
198,
220,
220,
220,
2488,
33770,
62,
41068,
7,
565,
74,
13,
29813,
469,
11,
42503,
796,
374,
301,
8,
198,
220,
220,
220,
2488,
33770,
62,
41068,
7,
565,
74,
13,
29813,
469,
11,
13259,
28,
81,
301,
8,
628,
220,
220,
220,
2488,
33770,
62,
41068,
7,
565,
74,
13,
29813,
469,
11,
13259,
28,
81,
301,
8,
628,
220,
220,
220,
2488,
33770,
62,
41068,
7,
565,
74,
13,
29813,
469,
11,
13259,
28,
81,
301,
8,
628,
220,
220,
220,
2488,
33770,
62,
41068,
7,
565,
74,
13,
29813,
469,
11,
13259,
28,
81,
301,
8,
628,
220,
220,
220,
2488,
33770,
62,
41068,
7,
565,
74,
13,
29813,
469,
11,
13259,
28,
81,
301,
8,
628,
220,
220,
220,
2488,
33770,
62,
41068,
7,
565,
74,
13,
29813,
469,
11,
13259,
28,
81,
301,
8,
628,
220,
220,
220,
2488,
33770,
62,
24011,
198,
220,
220,
220,
2488,
33770,
62,
24011,
628,
198,
220,
220,
220,
1441,
10245,
3419,
198
] | 2.029026 | 1,447 |
import sys
from os import path
import inspect
from keystoneauth1 import identity
from keystoneauth1 import session
from cinderclient import client
import re
METRIC_NAME_PREFIX = "openstack."
CINDER_LIMIT_PREFIX = "cinder.limit."
CINDER_VOLUME_PREFIX = "cinder.volume."
CINDER_SNAPSHOT_PREFIX = "cinder.snapshot."
DEFAULT_CINDER_CLIENT_VERSION = "2.0"
| [
11748,
25064,
198,
6738,
28686,
1330,
3108,
198,
11748,
10104,
198,
198,
6738,
1994,
6440,
18439,
16,
1330,
5369,
198,
6738,
1994,
6440,
18439,
16,
1330,
6246,
198,
6738,
269,
5540,
16366,
1330,
5456,
198,
11748,
302,
198,
198,
47123,
41132,
62,
20608,
62,
47,
31688,
10426,
796,
366,
9654,
25558,
526,
198,
34,
12115,
1137,
62,
43,
3955,
2043,
62,
47,
31688,
10426,
796,
366,
66,
5540,
13,
32374,
526,
198,
34,
12115,
1137,
62,
44558,
38340,
62,
47,
31688,
10426,
796,
366,
66,
5540,
13,
29048,
526,
198,
34,
12115,
1137,
62,
15571,
2969,
9693,
2394,
62,
47,
31688,
10426,
796,
366,
66,
5540,
13,
45380,
9442,
526,
198,
7206,
38865,
62,
34,
12115,
1137,
62,
5097,
28495,
62,
43717,
796,
366,
17,
13,
15,
1,
628
] | 2.744186 | 129 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.