hexsha
stringlengths 40
40
| size
int64 5
2.06M
| ext
stringclasses 10
values | lang
stringclasses 1
value | max_stars_repo_path
stringlengths 3
248
| max_stars_repo_name
stringlengths 5
125
| max_stars_repo_head_hexsha
stringlengths 40
78
| max_stars_repo_licenses
listlengths 1
10
| max_stars_count
int64 1
191k
⌀ | max_stars_repo_stars_event_min_datetime
stringlengths 24
24
⌀ | max_stars_repo_stars_event_max_datetime
stringlengths 24
24
⌀ | max_issues_repo_path
stringlengths 3
248
| max_issues_repo_name
stringlengths 5
125
| max_issues_repo_head_hexsha
stringlengths 40
78
| max_issues_repo_licenses
listlengths 1
10
| max_issues_count
int64 1
67k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 3
248
| max_forks_repo_name
stringlengths 5
125
| max_forks_repo_head_hexsha
stringlengths 40
78
| max_forks_repo_licenses
listlengths 1
10
| max_forks_count
int64 1
105k
⌀ | max_forks_repo_forks_event_min_datetime
stringlengths 24
24
⌀ | max_forks_repo_forks_event_max_datetime
stringlengths 24
24
⌀ | content
stringlengths 5
2.06M
| avg_line_length
float64 1
1.02M
| max_line_length
int64 3
1.03M
| alphanum_fraction
float64 0
1
| count_classes
int64 0
1.6M
| score_classes
float64 0
1
| count_generators
int64 0
651k
| score_generators
float64 0
1
| count_decorators
int64 0
990k
| score_decorators
float64 0
1
| count_async_functions
int64 0
235k
| score_async_functions
float64 0
1
| count_documentation
int64 0
1.04M
| score_documentation
float64 0
1
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
85eee91df955bbbecc3244390928eb3edef3f3cf
| 5,730
|
py
|
Python
|
trueWorld.py
|
str1k/dwatravel
|
47be1377a60431ffcb3ad09846be7647d44e5760
|
[
"MIT"
] | null | null | null |
trueWorld.py
|
str1k/dwatravel
|
47be1377a60431ffcb3ad09846be7647d44e5760
|
[
"MIT"
] | null | null | null |
trueWorld.py
|
str1k/dwatravel
|
47be1377a60431ffcb3ad09846be7647d44e5760
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import requests
from bs4 import BeautifulSoup
import re
import time
import MySQLdb
s = requests.Session()
login_url = "http://www.trueworldagency.com/member/login_ok.asp"
login_data = {'upw': '07092519', 'uid': '07092519'}
s.post(login_url, login_data)
counter = 0
trip_bookingID = []
trip_period = []
trip_programDN = []
trip_programName = []
trip_HasDC = []
trip_price = []
trip_seatAvailable = []
result = s.get("http://www.trueworldagency.com/index.asp?area=1#gnb").text
soup = BeautifulSoup(result, "lxml")
while(True):
counter = counter + 1
if counter = 50000:
counter = 0
if counter%50 == 0:
s.post(login_url, login_data)
conn = MySQLdb.connect(host= "localhost",
user="dwatravel",
passwd="ni00065996",
db="trueworld_DB")
x = conn.cursor()
for tag in soup.findAll('tr'):
if "chk" in str(tag):
allTd = list(tag.find_all('td'))
#Get booking ID
regRet = re.search("(?<=\()(.*)(?=\))",str(allTd[0]))
bookingItem = regRet.group().split(',')
bookingItem[1] = bookingItem[1].replace(" ","")
bookingItem[2] = bookingItem[2].replace("\'","")
bookingItem[2] = bookingItem[2].replace(" ","")
trip_bookingID.append(bookingItem)
#Get Trip period
periodItem = []
val = str(allTd[1]).split(" ")
regRet = re.search("\d{2}\/\w+\/\d{4}",val[0])
periodItem.append(regRet.group())
regRet = re.search("\d{2}\/\w+\/\d{4}",val[2])
periodItem.append(regRet.group())
trip_period.append(periodItem)
#Get Trip Code
trip_programDN.append(str(allTd[2]).replace("<td>","").replace("</td>",""))
#Get Trip Name
regRet = re.search("(?<=\>)(.*)(?=\<)",str(allTd[3]))
nameItem = regRet.group()
trip_programName.append(nameItem)
#Get price
if "</span>" in str(allTd[4]):
priceItem = []
val = str(allTd[4]).split("</span>")
regRet = re.search("\d+,\d+",val[0])
priceItem.append(regRet.group())
regRet = re.search("\d+,\d+",val[1])
priceItem.append(regRet.group())
trip_price.append(priceItem)
trip_HasDC.append(True)
else:
regRet = re.search("\d+,\d+",str(allTd[4]))
trip_price.append(regRet.group())
trip_HasDC.append(False)
#Get Available seat
if "Booking" in str(allTd[6]):
trip_seatAvailable.append(re.search("\d+",str(allTd[5])).group())
elif "Waiting" in str(allTd[6]):
trip_seatAvailable.append("0")
else:
trip_seatAvailable.append(re.search("\d+",str(allTd[5])).group())
#Get Flight code
'''
if "Agency com." in str(tag):
print(tag)
'''
'''
for i in range(0,len(trip_bookingID)):
print("Program Name : "+ str(trip_programName[i]))
print("Booking ID :"+ str(trip_bookingID[i][0]) + ": :" + str(trip_bookingID[i][1]) + ": :" + str(trip_bookingID[i][2]))
print("From " + trip_period[i][0] + " To " + trip_period[i][1])
print("Period : " + trip_programDN[i])
if trip_HasDC[i]:
print("Price : " + trip_price[i][0] + " Discounted Price : " + trip_price[i][1])
else:
print("Price : " + trip_price[i])
print("Available Seat : " + trip_seatAvailable[i])
print("\n\n")
'''
tour_desNum = "0"
for tag in soup.findAll('p'):
if "onclick" in str(tag):
regRet = re.search("\d+",str(tag))
tour_desNum = regRet.group()
print(tour_desNum)
result = s.get("http://www.trueworldagency.com/viewer/program_tour.asp?seq="+tour_desNum).text
tourDes = BeautifulSoup(result, "lxml")
for tag in tourDes.findAll('p'):
if "program" in str(tag):
print (str(tag.text))
x.execute("SELECT * FROM trip_trueworld")
queryRet = x.fetchall()
for i in range(0,len(trip_bookingID)):
booking_key = str(trip_bookingID[i][0]) + "gnb" + str(trip_bookingID[i][1])
trip_desc = str(trip_bookingID[i][0]) + "gnb"
existed = 0
foundMatchedSeat = 0
for row in queryRet:
if booking_key == row[0]:
existed = 1
foundMatchedSeat = row[5]
if existed == 1:
#UPDATE seat
#print(foundMatchedSeat + " "+ trip_seatAvailable[i])
if foundMatchedSeat != trip_seatAvailable[i]:
x.execute ("UPDATE trip_trueworld SET seat_available=%s WHERE booking_key=%s",\
(trip_seatAvailable[i], booking_key))
#x.execute ("UPDATE trip_trueworld SET seat_available=%s WHERE booking_key=%s",(1232,'1gnb1900'))
print(" Successfully update row : "+booking_key)
else:
print(" Everything is up-to-date : "+booking_key )
conn.commit()
time.sleep(0.1)
else:
#INSERT row
dep = time.strptime(trip_period[i][0], "%d/%b/%Y")
ret = time.strptime(trip_period[i][0], "%d/%b/%Y")
if trip_HasDC[i]:
x.execute("""INSERT INTO trip_trueworld VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)""",\
(booking_key,str(trip_bookingID[i][0]),str(trip_bookingID[i][1]),str(trip_bookingID[i][2]),"gnb",trip_seatAvailable[i], \
time.strftime('%Y-%m-%d %H:%M:%S', dep),time.strftime('%Y-%m-%d %H:%M:%S', ret),trip_price[i][0].replace(",",""),trip_price[i][1].replace(",",""),trip_price[i][0].replace(",",""),trip_price[i][1].replace(",",""), \
4900,8900,6900,900,300,trip_desc))
else:
x.execute("""INSERT INTO trip_trueworld VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)""",\
(booking_key,str(trip_bookingID[i][0]),str(trip_bookingID[i][1]),str(trip_bookingID[i][2]),"gnb",trip_seatAvailable[i], \
time.strftime('%Y-%m-%d %H:%M:%S', dep),time.strftime('%Y-%m-%d %H:%M:%S', ret),trip_price[i].replace(",",""),trip_price[i].replace(",",""),trip_price[i].replace(",",""),trip_price[i].replace(",",""), \
4900,8900,6900,900,300,trip_desc))
conn.commit()
time.sleep(0.1)
conn.close()
for i in range(1, 15):
print("Waiting for next update in " + str(15-i) + " sec")
time.sleep(1)
| 35.590062
| 218
| 0.621466
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1,932
| 0.337173
|
85ef49b97d17705c81cdeeb0ece8add9c7768f1d
| 6,718
|
py
|
Python
|
extract_data_1.1.py
|
stanlee321/bolivia_power
|
4c86be2be8b81fead5ba9f1d50f32233cd54c1fc
|
[
"MIT"
] | null | null | null |
extract_data_1.1.py
|
stanlee321/bolivia_power
|
4c86be2be8b81fead5ba9f1d50f32233cd54c1fc
|
[
"MIT"
] | null | null | null |
extract_data_1.1.py
|
stanlee321/bolivia_power
|
4c86be2be8b81fead5ba9f1d50f32233cd54c1fc
|
[
"MIT"
] | null | null | null |
# Code for extract the information from the web
# with the <id> information into the bolivia_power_1.csv file
# input: bolivia_power_1.id.csv
# output 6x.npy array file:
# <nodes_ids.lat,lon> <node.tags>
# <way.ids> <way.ref> <way.tags>
# ...
# v. 1.1
#import pandas as pd
import numpy as np
import pandas as pd
# Data from Bolivia_power
path_to_csv_power_data = '/notebooks/Power/data/bolivia_power_1.csv'
df_bolivia_power= pd.read_csv(path_to_csv_power_data,delimiter=',',sep=',', error_bad_lines=False)
df_bolivia_power.columns = ['type','id','name_1','name_2','name_3','name_4']
df_bolivia_power.head()
# As array Type and id
df2_type = np.asarray(df_bolivia_power['type'])
df2_id = np.asarray(df_bolivia_power['id'])
# Return to Pandas DataFrame
data_frame_type = pd.DataFrame(df2_type)
data_frame_id = pd.DataFrame(df2_id)
print(len(df2_type))
# AS a unique DataFrame
M = np.ones((len(df2_type),2))
data_frame = pd.DataFrame(M, columns=['type', 'id'])
data_frame['type'] = data_frame_type
data_frame['id'] = data_frame_id
data_frame.head()
## Extracting the data from the web
import urllib.request
from urllib.error import URLError, HTTPError
print("starting to download the files...")
# function fur Convert to pandasdataframe from str
##################FUR NODES #####################
import xml.etree.ElementTree as ET
#################################################
def iter_docs(author):
author_attr = author.attrib
for doc in author.iterfind('.//node'):
doc_dict = author_attr.copy()
doc_dict.update(doc.attrib)
doc_dict['data'] = doc.text
yield doc_dict
def extract_data():
node = []
way = []
relation= []
r = 0
for x in data_frame['type']:
n = data_frame['id'][r]
try:
page = urllib.request.urlopen('http://api.openstreetmap.org/api/0.6/' + x + '/%d' %n)
if x == 'node':
node.append(page)
print(".....node...: " + "%d" %n)
print('http://api.openstreetmap.org/api/0.6/' + x + '/%d' %n)
print(len(node), '/' , data_frame.shape[0])
node[-1] = node[-1].read().decode()
r +=1
np.array(node).dump(open('/notebooks/Power/data/nodes.npy', 'wb'))
print(node[-1])
if x == 'way':
way.append(page)
print(".....way...: " + "%d" %n)
print('http://api.openstreetmap.org/api/0.6/' + x + '/%d' %n)
print(len(node)+len(way)+len(relation), '/' ,data_frame.shape[0])
way[-1] = way[-1].read().decode()
r +=1
np.array(way).dump(open('/notebooks/Power/data/ways.npy', 'wb'))
print(way[-1])
if x == 'relation':
relation.append(page)
print(".....relation...: " + "%d" %n)
print('http://api.openstreetmap.org/api/0.6/' + x + '/%d' %n)
print(len(node)+len(way)+len(relation), '/' ,data_frame.shape[0])
relation[-1] = relation[-1].read().decode()
r +=1
np.array(relation).dump(open('/notebooks/Power/data/relations.npy', 'wb'))
print(relation[-1])
except HTTPError:
print('The server couldn\'t fulfill the request...node')
r = r + 1
#print('Error code: ', e.code)
if HTTPError == True:
pass
except URLError:
r = r + 1
print('We failed to reach a server...node')
#print('Reason: ', e.reason)
if URLError == True:
pass
print("sussessful ...!!!!!!!!!!!!")
print("check your disk... :P")
#return (node, way, relation)
extract_data()
print('finished node,way,relation')
print('saving list arrays into disk....')
#node, ways, relations = extract_data()
"""""
xml_data = node[0]
etree = ET.fromstring(xml_data) #create an ElementTree object
d = pd.DataFrame(list(iter_docs(etree)))
data_list=[] # create list for append every dataframe
for i in range(1,len(node)):
xml_data = node[i]
etree = ET.fromstring(xml_data) #create an ElementTree object
doc_df = pd.DataFrame(list(iter_docs(etree)))
data_list.append(doc_df)
d = d.append(data_list[-1],ignore_index=True)
d.head()
d.to_csv('/notebooks/Power/data/power_node.csv', sep=',', encoding='utf-8',index = False)
#########################################################################################
##############################################FUR WAYS#####################################################################
def iter_docs_way(author):
author_attr = author.attrib
for doc in author.iterfind('.//way'):
doc_dict = author_attr.copy()
doc_dict.update(doc.attrib)
doc_dict['data'] = doc.text
yield doc_dict
xml_data = node[0]
etree = ET.fromstring(xml_data) #create an ElementTree object
w = pd.DataFrame(list(iter_docs(etree)))
data_list_way=[] # create list for append every dataframe
for i in range(1,len(way)):
xml_data = node[i]
etree = ET.fromstring(xml_data) #create an ElementTree object
doc_df = pd.DataFrame(list(iter_docs_way(etree)))
data_list.append(doc_df)
w = w.append(data_list[-1],ignore_index=True)
w.head()
w.to_csv('/notebooks/Power/data/power_way.csv', sep=',', encoding='utf-8',index = False)
#########################################################################################
########################################################## FUR Relation ##################################################
def iter_docs_rel(author):
author_attr = author.attrib
for doc in author.iterfind('.//way'):
doc_dict = author_attr.copy()
doc_dict.update(doc.attrib)
doc_dict['data'] = doc.text
yield doc_dict
xml_data = node[0]
etree = ET.fromstring(xml_data) #create an ElementTree object
r = pd.DataFrame(list(iter_docs_rel(etree)))
data_list_way=[] # create list for append every dataframe
for i in range(1,len(relation)):
xml_data = node[i]
etree = ET.fromstring(xml_data) #create an ElementTree object
doc_df = pd.DataFrame(list(iter_docs_rel(etree)))
data_list.append(doc_df)
r = r.append(data_list[-1],ignore_index=True)
r.head()
r.to_csv('/notebooks/Power/data/power_rel.csv', sep=',', encoding='utf-8',index = False) """
| 28.108787
| 124
| 0.539744
| 0
| 0
| 238
| 0.035427
| 0
| 0
| 0
| 0
| 4,035
| 0.600625
|
85f0ac57ac9d5511f94d39253027463025311137
| 194
|
py
|
Python
|
tests/api/utils/test_config.py
|
Devansh3712/py-cmc
|
e3f9687914d92cd95bd5a7c04e6103345ba43a3d
|
[
"MIT"
] | 2
|
2022-02-14T07:13:12.000Z
|
2022-02-14T07:20:34.000Z
|
tests/api/utils/test_config.py
|
Devansh3712/py-cmc
|
e3f9687914d92cd95bd5a7c04e6103345ba43a3d
|
[
"MIT"
] | 6
|
2022-02-21T10:50:43.000Z
|
2022-03-03T15:44:09.000Z
|
tests/api/utils/test_config.py
|
Devansh3712/py-cmc
|
e3f9687914d92cd95bd5a7c04e6103345ba43a3d
|
[
"MIT"
] | 2
|
2022-02-20T01:43:35.000Z
|
2022-03-13T09:34:51.000Z
|
from api.utils.config import settings
def test_config_validation() -> None:
assert type(settings.host) == str
assert type(settings.port) == int
assert type(settings.expire) == int
| 24.25
| 39
| 0.71134
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
85f402a990563be3704e3ce90f8e5fbc80ebcb6e
| 526
|
py
|
Python
|
Practice/Problem Solving/MaximizingXOR.py
|
avantikasharma/HackerRank-Solutions
|
a980859ac352688853fcbcf3c7ec6d95685f99ea
|
[
"MIT"
] | 1
|
2018-07-08T15:44:15.000Z
|
2018-07-08T15:44:15.000Z
|
Practice/Problem Solving/MaximizingXOR.py
|
avantikasharma/HackerRank-Solutions
|
a980859ac352688853fcbcf3c7ec6d95685f99ea
|
[
"MIT"
] | null | null | null |
Practice/Problem Solving/MaximizingXOR.py
|
avantikasharma/HackerRank-Solutions
|
a980859ac352688853fcbcf3c7ec6d95685f99ea
|
[
"MIT"
] | 2
|
2018-08-10T06:49:34.000Z
|
2020-10-01T04:50:59.000Z
|
#!/bin/python3
import math
import os
import random
import re
import sys
# Complete the maximizingXor function below.
def maximizingXor(l, r):
result = []
for num1 in range(l,r+1):
for num2 in range(l,r+1):
xor = num1^num2
result.append(xor)
return max(result)
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
l = int(input())
r = int(input())
result = maximizingXor(l, r)
fptr.write(str(result) + '\n')
fptr.close()
| 17.533333
| 47
| 0.58365
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 88
| 0.1673
|
85f4fbb2d3d898f2e76022a95446b29026af0760
| 2,216
|
py
|
Python
|
Sketches/MH/Layout/Visualisation/Graph/GridRenderer.py
|
sparkslabs/kamaelia_orig
|
24b5f855a63421a1f7c6c7a35a7f4629ed955316
|
[
"Apache-2.0"
] | 12
|
2015-10-20T10:22:01.000Z
|
2021-07-19T10:09:44.000Z
|
Sketches/MH/Layout/Visualisation/Graph/GridRenderer.py
|
sparkslabs/kamaelia_orig
|
24b5f855a63421a1f7c6c7a35a7f4629ed955316
|
[
"Apache-2.0"
] | 2
|
2015-10-20T10:22:55.000Z
|
2017-02-13T11:05:25.000Z
|
Sketches/MH/Layout/Visualisation/Graph/GridRenderer.py
|
sparkslabs/kamaelia_orig
|
24b5f855a63421a1f7c6c7a35a7f4629ed955316
|
[
"Apache-2.0"
] | 6
|
2015-03-09T12:51:59.000Z
|
2020-03-01T13:06:21.000Z
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)
#
# (1) Kamaelia Contributors are listed in the AUTHORS file and at
# http://www.kamaelia.org/AUTHORS - please extend this file,
# not this notice.
#
# 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.
# -------------------------------------------------------------------------
# Simple topography viewer server - takes textual commands from a single socket
# and renders the appropriate graph
import pygame
class GridRenderer(object):
def __init__(self, size, colour):
super(GridRenderer,self).__init__(size, colour)
self.gridSize = int(size)
self.colour = colour
self.left = 0
self.top = 0
def render(self, surface):
yield -1
for i in range((self.top // self.gridSize) * self.gridSize - self.top,
surface.get_height(),
self.gridSize):
pygame.draw.line(surface, self.colour,
(0,i),
(surface.get_width(),i) )
for i in range((self.left // self.gridSize) * self.gridSize - self.left,
surface.get_width(),
self.gridSize):
pygame.draw.line(surface, self.colour,
(i, 0 ),
(i, surface.get_height()) )
def setOffset( self, (left,top) ):
"""Inform of a change to the coords of the top left of the drawing surface,
so that this entity can render, as if the top left had moved
"""
self.left = left
self.top = top
| 38.206897
| 83
| 0.584386
| 1,178
| 0.531588
| 680
| 0.306859
| 0
| 0
| 0
| 0
| 1,153
| 0.520307
|
85f5bac9de2e5415cb10c2fbf5dabb5fee1eb3a8
| 436
|
py
|
Python
|
config.py
|
anggerwicaksono/vehicle-brand-recognition-yolov4-python
|
b58a76481bd499ff77deb037f5791119a9572d0c
|
[
"MIT"
] | null | null | null |
config.py
|
anggerwicaksono/vehicle-brand-recognition-yolov4-python
|
b58a76481bd499ff77deb037f5791119a9572d0c
|
[
"MIT"
] | null | null | null |
config.py
|
anggerwicaksono/vehicle-brand-recognition-yolov4-python
|
b58a76481bd499ff77deb037f5791119a9572d0c
|
[
"MIT"
] | null | null | null |
# Copyright © 2020 by Spectrico
# Licensed under the MIT License
model_file = "model-weights-spectrico-car-colors-recognition-mobilenet_v3-224x224-180420.pb" # path to the car color classifier
label_file = "labelsC.txt" # path to the text file, containing list with the supported makes and models
input_layer = "input_1"
output_layer = "Predictions/Softmax/Softmax"
classifier_input_size = (224, 224) # input size of the classifier
| 48.444444
| 128
| 0.784404
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 334
| 0.764302
|
85f686d400d73419843a0643d08f81afb4fe05ef
| 4,417
|
py
|
Python
|
interface_report_interactive.py
|
hpreston/network_info_scripts
|
b25076eb6f55a7f7335f6cae1a4c3c00ce9aa191
|
[
"MIT"
] | 20
|
2019-05-11T03:08:52.000Z
|
2022-01-13T13:44:22.000Z
|
interface_report_interactive.py
|
hpreston/network_info_scripts
|
b25076eb6f55a7f7335f6cae1a4c3c00ce9aa191
|
[
"MIT"
] | 4
|
2020-02-26T23:25:59.000Z
|
2021-12-13T19:59:01.000Z
|
interface_report_interactive.py
|
hpreston/network_info_scripts
|
b25076eb6f55a7f7335f6cae1a4c3c00ce9aa191
|
[
"MIT"
] | 8
|
2019-05-20T02:27:40.000Z
|
2021-07-07T18:49:45.000Z
|
#! /usr/bin/env python
"""Exploring Genie's ability to gather details and write to CSV
This script is meant to be run line by line interactively in a Python
interpretor (such as iPython) to learn how the Genie and csv libraries work.
This script assumes you have a virl simulation running and a testbed file
created.
Example:
virl up --provision virlfiles/5_router_mesh
virl generate pyats -o testbed.yaml
Copyright (c) 2018 Cisco and/or its affiliates.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""
# Import the Genie library
from genie.conf import Genie
# Create a testbed object
testbed = Genie.init("testbed.yaml")
# Take a look at the devices that are in the testbed
print(testbed.devices)
# Create a "convenience" variable for one device
iosv1 = testbed.devices["iosv-1"]
# Connect to the router
iosv1.connect()
# Check that you are connected
iosv1.connected
# Run the "show interfaces" command and "parse" results to Python object
interfaces = iosv1.parse("show interfaces")
# Print the parsed data
print(interfaces)
# That's a lot of data, let's explore it some..
# Look at the first set of dictionary keys avialable
interfaces.keys()
# Now let's checkout one interface in a pretty printed way
from pprint import pprint
pprint(interfaces["GigabitEthernet0/0"])
# Much nicer... now let's just get the mac-address for one interface
interfaces["GigabitEthernet0/0"]["mac_address"]
# Suppose we wanted the IP address...
interfaces["GigabitEthernet0/0"]["ipv4"]
# Now let's create a CSV file of the MAC Addresses for each interface
# Import in the CSV library
import csv
# Name our CSV file
interface_file = "interfaces.csv"
# Let's setup the headers for our CSV file
report_fields = ["Interface", "MAC Address"]
# Now let's open up our file and create our report
# This whole block of text from `with` and everything
# indented under it will run at once. Copy or type it all in.
# DON'T FORGET TO SPACE OVER IF TYPING MANUALLY
with open(interface_file, "w") as f:
# Create a DictWriter object
writer = csv.DictWriter(f, report_fields)
# Write the header row
writer.writeheader()
# Loop over each interface and write a row
for interface, details in interfaces.items():
writer.writerow({"Interface": interface, "MAC Address": details["mac_address"]})
# Uh oh.. did you get a "KeyError: 'mac_address'"?
# That's because Loopbacks do NOT have mac_addresses.
# See for yourself...
interfaces["Loopback0"].keys()
# So we need to create our code so we can handle interfaces without mac-addresses
# Several ways you COULD do it, here's one. A "try... except... " block
with open(interface_file, "w") as f:
writer = csv.DictWriter(f, report_fields)
writer.writeheader()
for interface, details in interfaces.items():
# Try to write a row with a mac-address
try:
writer.writerow(
{
"Interface": interface,
"MAC Address": details["mac_address"],
}
)
except KeyError:
# If there isn't one... use "N/A"
writer.writerow(
{
"Interface": interface,
"MAC Address": "N/A"}
)
# Great... let's see what was written.
# Open up the file again for "r"eading (also the default)
with open(interface_file, "r") as f:
# Just print it out
print(f.read())
# Great job!
| 33.462121
| 88
| 0.713607
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 3,263
| 0.738737
|
85f74ccca3d8f227ec09283215d9c1ace1b61121
| 1,159
|
py
|
Python
|
app/priu.py
|
robhaswell/powerstrip-restrict-image-user
|
d6a5dbb19330f1ee5b384095c1010636af12120d
|
[
"Apache-2.0"
] | null | null | null |
app/priu.py
|
robhaswell/powerstrip-restrict-image-user
|
d6a5dbb19330f1ee5b384095c1010636af12120d
|
[
"Apache-2.0"
] | null | null | null |
app/priu.py
|
robhaswell/powerstrip-restrict-image-user
|
d6a5dbb19330f1ee5b384095c1010636af12120d
|
[
"Apache-2.0"
] | null | null | null |
import os, sys
import json as _json
from flask import Flask, Response, request
app = Flask(__name__)
app.debug = True
import lib
@app.route("/", methods=["HEAD", "GET", "POST", "DELETE", "PUT"])
def adapter():
json = request.get_data()
decoded = _json.loads(json)
docker_json = _json.loads(decoded['ClientRequest']['Body'])
image = docker_json['Image']
if "/" not in image:
user = "_"
else:
user = image.split("/")[0]
if user != app.config['ALLOWED_USER']:
return '', 403
response = lib.pre_hook_response(
decoded['ClientRequest']['Method'],
decoded['ClientRequest']['Request'],
decoded['ClientRequest']['Body'],
)
return Response(response, mimetype="application/json")
if __name__ == "__main__":
try:
app.config['ALLOWED_USER'] = os.environ['USER']
except KeyError:
sys.stdout.write("""Error: Configuration environment variable USER not provided.
Specify an image username on the Docker command-line by using docker run -e USER=<user>.
Use the user "_" to only allow official Docker images.
""")
sys.exit(1)
app.run(port=80)
| 26.340909
| 88
| 0.637619
| 0
| 0
| 0
| 0
| 630
| 0.543572
| 0
| 0
| 415
| 0.358067
|
85f7c87317fb94af50f148e6f619929fe75f47af
| 1,316
|
py
|
Python
|
app/gather/api/serializers.py
|
eHealthAfrica/gather
|
88d96009c5f9832b564d13fa66d63841a7fbcd90
|
[
"Apache-2.0"
] | 2
|
2019-09-25T18:37:30.000Z
|
2019-09-25T18:37:39.000Z
|
app/gather/api/serializers.py
|
eHealthAfrica/gather
|
88d96009c5f9832b564d13fa66d63841a7fbcd90
|
[
"Apache-2.0"
] | 41
|
2015-07-29T14:10:05.000Z
|
2021-09-13T07:07:41.000Z
|
app/gather/api/serializers.py
|
eHealthAfrica/gather
|
88d96009c5f9832b564d13fa66d63841a7fbcd90
|
[
"Apache-2.0"
] | 2
|
2019-11-12T23:09:35.000Z
|
2020-03-11T16:39:35.000Z
|
# Copyright (C) 2019 by eHealth Africa : http://www.eHealthAfrica.org
#
# See the NOTICE file distributed with this work for additional information
# regarding copyright ownership.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from aether.sdk.multitenancy.serializers import (
DynamicFieldsModelSerializer,
MtPrimaryKeyRelatedField,
MtModelSerializer,
)
from .models import Survey, Mask
class MaskSerializer(DynamicFieldsModelSerializer):
survey = MtPrimaryKeyRelatedField(
required=True,
queryset=Survey.objects.all(),
)
class Meta:
model = Mask
fields = '__all__'
class SurveySerializer(MtModelSerializer):
masks = MaskSerializer(omit=('survey', ), many=True, read_only=True)
class Meta:
model = Survey
fields = '__all__'
| 28
| 75
| 0.729483
| 407
| 0.309271
| 0
| 0
| 0
| 0
| 0
| 0
| 738
| 0.56079
|
85f9b76b3b5d2af9bcf373c178d927992a22b317
| 280
|
py
|
Python
|
CCC/CCC '19 J3 - Cold Compress.py
|
Joon7891/Competitive-Programming
|
d860b7ad932cd5a6fb91fdc8c53101da57f4a408
|
[
"MIT"
] | 2
|
2021-04-13T00:19:56.000Z
|
2021-04-13T01:19:45.000Z
|
CCC/CCC '19 J3 - Cold Compress.py
|
Joon7891/Competitive-Programming
|
d860b7ad932cd5a6fb91fdc8c53101da57f4a408
|
[
"MIT"
] | null | null | null |
CCC/CCC '19 J3 - Cold Compress.py
|
Joon7891/Competitive-Programming
|
d860b7ad932cd5a6fb91fdc8c53101da57f4a408
|
[
"MIT"
] | 1
|
2020-08-26T12:36:08.000Z
|
2020-08-26T12:36:08.000Z
|
n = int(input())
for _ in range(n):
line = input()
prev = ''
counter = 0
for char in line:
if char != prev:
if prev != '':
print(counter, prev, end = ' ')
prev = char
counter = 1
else:
counter += 1
print(counter, prev)
| 15.555556
| 39
| 0.478571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 7
| 0.025
|
85fd9ccfe64a572bc3232cd253f5cd2894061049
| 1,514
|
py
|
Python
|
src/utils/jupyter_setup.py
|
paxtonedgar/MisInfo
|
81b32fa3e7d0d204feb83e10169093f45727a2ea
|
[
"MIT"
] | null | null | null |
src/utils/jupyter_setup.py
|
paxtonedgar/MisInfo
|
81b32fa3e7d0d204feb83e10169093f45727a2ea
|
[
"MIT"
] | null | null | null |
src/utils/jupyter_setup.py
|
paxtonedgar/MisInfo
|
81b32fa3e7d0d204feb83e10169093f45727a2ea
|
[
"MIT"
] | null | null | null |
# built-in
import os
import logging
# installed
import pandas as pd
import seaborn as sns
from matplotlib import pylab
# custom
import src.settings
from src.utils.log_utils import setup_logging, LogLevel
from src.utils.config_loader import ConfigLoader, Config
def setup_jupyter(
root_dir: str, config_path: str = None,
logging_level: LogLevel = logging.DEBUG
) -> Config:
"""
Setup needed for Jupyter.
:param root_dir: [description]
:type root_dir: str
:param config_path: [description], defaults to None
:type config_path: str, optional
:param logging_level: [description], defaults to logging.DEBUG
:type logging_level: LogLevel, optional
:return: [description]
:rtype: Config
"""
src.settings.init()
cfg = ConfigLoader.load_config(config_path)
print('Config loaded.')
setup_logging(
os.path.join(root_dir, 'logging.json'), logging_level=logging_level
)
# other setup
sns.set()
palette = sns.color_palette('muted')
sns.set_palette(palette)
sns.set(rc={'figure.figsize': (12, 8)})
pd.options.display.float_format = '{:.4f}'.format
pd.set_option('max_colwidth', 800)
pd.set_option('display.max_rows', 200)
params = {
'legend.fontsize': 16,
'figure.figsize': (10, 8),
'axes.labelsize': 16,
'axes.titlesize': 16,
'xtick.labelsize': 16,
'ytick.labelsize': 16
}
pylab.rcParams.update(params)
print('Setup done')
return cfg
| 26.103448
| 75
| 0.664465
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 597
| 0.39432
|
85fdbccdde41392a6f2e6723a8450dd58d4c3c85
| 3,169
|
py
|
Python
|
EclipseOJ/contests/models.py
|
cs251-eclipse/eclipseOJ
|
ad93bf65014e87051278026f87b6b92afdaed349
|
[
"MIT"
] | null | null | null |
EclipseOJ/contests/models.py
|
cs251-eclipse/eclipseOJ
|
ad93bf65014e87051278026f87b6b92afdaed349
|
[
"MIT"
] | null | null | null |
EclipseOJ/contests/models.py
|
cs251-eclipse/eclipseOJ
|
ad93bf65014e87051278026f87b6b92afdaed349
|
[
"MIT"
] | 1
|
2020-06-06T21:05:09.000Z
|
2020-06-06T21:05:09.000Z
|
from django.db import models
from django.contrib.auth.models import User
from core.models import Profile
from array import *
from datetime import datetime
from django.utils import timezone
class Contest(models.Model):
"""
Contests models are used to store save contests as object. Contests contain problems, users register in a contest and that's how they can compete among one another.
"""
start_time = models.DateTimeField(
help_text="This is a DateTimeField used to store start time of contest"
)
end_time = models.DateTimeField(
help_text="This is a DateTimeField used to store end time of contest"
)
registered_user = models.ManyToManyField(
User, blank = True,
help_text="This is a ManyToManyField field between :model:`auth.User` and contest. Multiple users will register any contests, this field anables direct access to list of users registered for contests. Also this stores in users which contests they registered for"
)
name = models.CharField(
max_length=200,
blank=True,
help_text="This is the name of the contest"
)
completed = models.BooleanField(
default=False,
help_text="This is a boolean variable that automatically gets updated once the contests is completed."
)
def __str__(self):
return 'Contest {}: {}'.format(str(self.id), self.name)
class Score(models.Model):
"""
Score models are used to store the performance of a particular user in a particular contest.
"""
contest=models.ForeignKey(
Contest,
help_text="This is a ForeignKey relation betwen a Score object and a Contest object. The tells us that a Score model is linked to a particular contest"
)
user=models.ForeignKey(
User,
help_text="This is a ForeignKey relation betwen a Score object and a Contest object. The tells us that a Score model belongs to which user",
)
score=models.IntegerField(
default=0,
help_text="This is the score of user in a particular contest. This is calculated by checking number of problems he solved and duration it took him to solve the problems"
)
acceptedA=models.BooleanField(
default=False,
help_text="Boolean field whether A is solved or not",
)
acceptedB=models.BooleanField(
default=False,
help_text="Boolean field whether B is solved or not",
)
acceptedC=models.BooleanField(
default=False,
help_text="Boolean field whether C is solved or not",
)
acceptedD=models.BooleanField(
default=False,
help_text="Boolean field whether D is solved or not",
)
acceptedE=models.BooleanField(
default=False,
help_text="Boolean field whether E is solved or not",
)
acceptedF=models.BooleanField(
default=False,
help_text="Boolean field whether F is solved or not",
)
wins=models.IntegerField(
default=0,
help_text="It keeps track of the number of users he defeated"
)
def __str__(self):
return 'Contest '+str(self.contest.id)+': User '+str(self.user.username)
| 39.123457
| 270
| 0.688545
| 2,975
| 0.938782
| 0
| 0
| 0
| 0
| 0
| 0
| 1,553
| 0.49006
|
85fe97d41b6486d5e18a9ac451b9332abc6e4cd3
| 2,659
|
py
|
Python
|
oldnumba/special.py
|
meawoppl/numba
|
bb8df0aee99133c6d52465ae9f9df2a7996339f3
|
[
"BSD-2-Clause"
] | 1
|
2015-01-29T06:52:36.000Z
|
2015-01-29T06:52:36.000Z
|
oldnumba/special.py
|
meawoppl/numba
|
bb8df0aee99133c6d52465ae9f9df2a7996339f3
|
[
"BSD-2-Clause"
] | null | null | null |
oldnumba/special.py
|
meawoppl/numba
|
bb8df0aee99133c6d52465ae9f9df2a7996339f3
|
[
"BSD-2-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
Special compiler-recognized numba functions and attributes.
"""
from __future__ import print_function, division, absolute_import
__all__ = ['NULL', 'typeof', 'python', 'nopython', 'addressof', 'prange']
import ctypes
from numba import error
#------------------------------------------------------------------------
# Pointers
#------------------------------------------------------------------------
class NumbaDotNULL(object):
"NULL pointer"
NULL = NumbaDotNULL()
def addressof(obj, propagate=True):
"""
Take the address of a compiled jit function.
:param obj: the jit function
:param write_unraisable: whether to write uncaught exceptions to stderr
:param propagate: whether to always propagate exceptions
:return: ctypes function pointer
"""
from numba import numbawrapper
if not propagate:
raise ValueError("Writing unraisable exceptions is not yet supported")
if not isinstance(obj, (numbawrapper.NumbaCompiledWrapper,
numbawrapper.numbafunction_type)):
raise TypeError("Object is not a jit function")
if obj.lfunc_pointer is None:
assert obj.lfunc is not None, obj
from numba.codegen import llvmcontext
llvm_context = llvmcontext.LLVMContextManager()
obj.lfunc_pointer = llvm_context.get_pointer_to_function(obj.lfunc)
ctypes_sig = obj.signature.to_ctypes()
return ctypes.cast(obj.lfunc_pointer, ctypes_sig)
#------------------------------------------------------------------------
# Types
#------------------------------------------------------------------------
def typeof(value):
"""
Get the type of a variable or value.
Used outside of Numba code, infers the type for the object.
"""
from numba import typesystem
return typesystem.numba_typesystem.typeof(value)
#------------------------------------------------------------------------
# python/nopython context managers
#------------------------------------------------------------------------
class NoopContext(object):
def __init__(self, name):
self.name = name
def __enter__(self, *args):
return None
def __exit__(self, *args):
return None
def __repr__(self):
return self.name
python = NoopContext("python")
nopython = NoopContext("nopython")
#------------------------------------------------------------------------
# prange
#------------------------------------------------------------------------
def prange(start=0, stop=None, step=1):
if stop is None:
stop = start
start = 0
return range(start, stop, step)
| 27.989474
| 78
| 0.532907
| 283
| 0.106431
| 0
| 0
| 0
| 0
| 0
| 0
| 1,284
| 0.482888
|
85ff76b7f34f9abc8f910e03a1576bfe726a0de5
| 7,602
|
py
|
Python
|
mistletoe/renderers/base.py
|
executablebooks/mistletoe-ebp
|
229812436726fd9b1af85c6e66ff8c81b415758d
|
[
"MIT"
] | 2
|
2020-05-19T02:06:47.000Z
|
2020-06-27T10:01:59.000Z
|
mistletoe/renderers/base.py
|
executablebooks/mistletoe-ebp
|
229812436726fd9b1af85c6e66ff8c81b415758d
|
[
"MIT"
] | 5
|
2020-03-10T22:43:16.000Z
|
2020-03-21T22:09:09.000Z
|
mistletoe/renderers/base.py
|
ExecutableBookProject/mistletoe-ebp
|
229812436726fd9b1af85c6e66ff8c81b415758d
|
[
"MIT"
] | null | null | null |
"""
Base class for renderers.
"""
from itertools import chain
import re
import sys
from typing import Optional
from mistletoe import block_tokens, block_tokens_ext, span_tokens, span_tokens_ext
from mistletoe.parse_context import ParseContext, set_parse_context
class BaseRenderer:
"""
Base class for renderers.
All renderers should ...
* define all render functions specified in `self.render_map`;
* be a context manager (by inheriting `__enter__` and `__exit__`);
Custom renderers could ...
* set the default tokens searched for during parsing, by overriding
``default_block_tokens`` and/or ``default_span_tokens``
* add additional render functions by appending to self.render_map;
:Usage:
Suppose SomeRenderer inherits BaseRenderer, and ``fin`` is the input file.
The syntax looks something like this::
>>> from mistletoe import Document
>>> from some_renderer import SomeRenderer
>>> with SomeRenderer() as renderer:
... rendered = renderer.render(Document.read(fin))
See mistletoe.renderers.html for an implementation example.
:Naming conventions:
* The keys of `self.render_map` should exactly match the class
name of tokens;
* Render function names should be of form: `render_` + the
"snake-case" form of token's class name.
:param render_map: maps tokens to their corresponding render functions.
:type render_map: dict
"""
default_block_tokens = (
block_tokens.HTMLBlock,
block_tokens.BlockCode,
block_tokens.Heading,
block_tokens.Quote,
block_tokens.CodeFence,
block_tokens.ThematicBreak,
block_tokens.List,
block_tokens_ext.Table,
block_tokens_ext.Footnote,
block_tokens.LinkDefinition,
block_tokens.Paragraph,
)
default_span_tokens = (
span_tokens.EscapeSequence,
span_tokens.HTMLSpan,
span_tokens.AutoLink,
span_tokens.CoreTokens,
span_tokens_ext.FootReference,
span_tokens_ext.Strikethrough,
span_tokens.InlineCode,
span_tokens.LineBreak,
span_tokens.RawText,
)
_parse_name = re.compile(r"([A-Z][a-z]+|[A-Z]+(?![a-z]))")
def __init__(self, *, parse_context: Optional[ParseContext] = None):
"""Initialise the renderer.
:param parse_context: the parse context stores global parsing variables,
such as the block/span tokens to search for,
and link/footnote definitions that have been collected.
If None, a new context will be instatiated, with the default
block/span tokens for this renderer.
These will be re-instatiated on ``__enter__``.
:type parse_context: mistletoe.parse_context.ParseContext
"""
if parse_context is None:
parse_context = ParseContext(
self.default_block_tokens, self.default_span_tokens
)
self.parse_context = parse_context
set_parse_context(self.parse_context)
self.render_map = self.get_default_render_map()
for token in chain(
self.parse_context.block_tokens, self.parse_context.span_tokens
):
if token.__name__ not in self.render_map:
render_func = getattr(self, self._cls_to_func(token.__name__))
self.render_map[token.__name__] = render_func
def get_default_render_map(self):
"""Return the default map of token names to methods."""
return {
"Strong": self.render_strong,
"Emphasis": self.render_emphasis,
"InlineCode": self.render_inline_code,
"RawText": self.render_raw_text,
"Strikethrough": self.render_strikethrough,
"Image": self.render_image,
"Link": self.render_link,
"AutoLink": self.render_auto_link,
"EscapeSequence": self.render_escape_sequence,
"Heading": self.render_heading,
"SetextHeading": self.render_setext_heading,
"Quote": self.render_quote,
"Paragraph": self.render_paragraph,
"CodeFence": self.render_code_fence,
"BlockCode": self.render_block_code,
"List": self.render_list,
"ListItem": self.render_list_item,
"Table": self.render_table,
"TableRow": self.render_table_row,
"TableCell": self.render_table_cell,
"ThematicBreak": self.render_thematic_break,
"LineBreak": self.render_line_break,
"Document": self.render_document,
"LinkDefinition": self.render_link_definition,
"Footnote": self.render_footnote,
}
def render(self, token):
"""
Grabs the class name from input token and finds its corresponding
render function.
Basically a janky way to do polymorphism.
Arguments:
token: whose __class__.__name__ is in self.render_map.
"""
return self.render_map[token.__class__.__name__](token)
def render_inner(self, token):
"""
Recursively renders child tokens. Joins the rendered
strings with no space in between.
If newlines / spaces are needed between tokens, add them
in their respective templates, or override this function
in the renderer subclass, so that whitespace won't seem to
appear magically for anyone reading your program.
:param token: a branch node who has children attribute.
"""
return "".join(map(self.render, token.children or []))
def __enter__(self):
"""
Make renderer classes into context managers, reinstatiated the
originally instatiated ``parse_context``.
"""
set_parse_context(self.parse_context)
return self
def __exit__(self, exception_type, exception_val, traceback):
"""
Make renderer classes into context managers.
"""
pass
@classmethod
def _cls_to_func(cls, cls_name):
snake = "_".join(map(str.lower, cls._parse_name.findall(cls_name)))
return "render_{}".format(snake)
@staticmethod
def _tokens_from_module(module):
"""
Helper method; takes a module and returns a list of all token classes
specified in `module.__all__`. Useful when custom tokens are defined in a
separate module.
"""
return [getattr(module, name) for name in module.__all__]
def render_raw_text(self, token):
"""
Default render method for RawText. Simply return token.content.
"""
return token.content
def render_setext_heading(self, token):
"""
Default render method for SetextHeader. Simply parse to render_header.
"""
return self.render_heading(token)
def render_code_fence(self, token):
"""
Default render method for CodeFence. Simply parse to render_block_code.
"""
return self.render_block_code(token)
def render_core_tokens(self, token):
raise TypeError(
"CoreTokens span tokens should not be present in the final syntax tree"
)
def unimplemented_renderer(self, token):
raise NotImplementedError("no render method set for {}".format(token))
def __getattr__(self, name):
""""""
if name.startswith("render_"):
return self.unimplemented_renderer
raise AttributeError(name).with_traceback(sys.exc_info()[2])
| 34.089686
| 83
| 0.64654
| 7,335
| 0.964878
| 0
| 0
| 491
| 0.064588
| 0
| 0
| 3,560
| 0.468298
|
85ff94648db8e42f7e087780f32ca9e870cb3118
| 2,123
|
py
|
Python
|
deep-scratch/steps/step50.py
|
jayChung0302/myml
|
6575706aec707186037607e49342f77cde34ff52
|
[
"MIT"
] | null | null | null |
deep-scratch/steps/step50.py
|
jayChung0302/myml
|
6575706aec707186037607e49342f77cde34ff52
|
[
"MIT"
] | null | null | null |
deep-scratch/steps/step50.py
|
jayChung0302/myml
|
6575706aec707186037607e49342f77cde34ff52
|
[
"MIT"
] | null | null | null |
if '__file__' in globals():
import os, sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import math
import numpy as np
import matplotlib.pyplot as plt
import dezero
from dezero import optimizers
import dezero.functions as F
import dezero.datasets as datasets
from dezero.models import MLP
from dezero.dataloaders import DataLoader as DataLoader
t = [1, 2, 3]
x = iter(t)
print(next(x))
print(next(x))
print(next(x))
class MyIterator:
def __init__(self, max_cnt):
self.max_cnt = max_cnt
self.cnt = 0
def __iter__(self):
return self
def __next__(self):
if self.cnt == self.max_cnt:
raise StopIteration()
self.cnt += 1
return self.cnt
obj = MyIterator(5)
for x in obj:
print(x)
y = np.array([[0.2, 0.8, 0], [0.1, 0.9, 0], [0.8, 0.1, 0.1]])
t = np.array([1, 2, 0])
acc = F.accuracy(y, t)
print(acc)
max_epoch = 300
batch_size = 30
hidden_size = 10
lr = 1.0
train_set = dezero.datasets.Spiral(train=True)
test_set = dezero.datasets.Spiral(train=False)
train_loader = DataLoader(train_set, batch_size)
test_loader = DataLoader(test_set, batch_size)
model = MLP((hidden_size, 3))
optimizer = optimizers.SGD(lr).setup(model)
for ep in range(max_epoch):
sum_loss, sum_acc = 0, 0
for x, t in train_loader:
y = model(x)
loss = F.softmax_cross_entropy(y, t)
acc = F.accuracy(y, t)
model.cleargrads()
loss.backward()
optimizer.update()
sum_loss += float(loss.data) * len(t)
sum_acc += float(acc.data) * len(t)
print(f"epoch:{ep+1}")
print(f"train loss:{sum_loss/len(train_set):.4f}, accuracy:{sum_acc/len(train_set):.4f}")
sum_loss, sum_acc = 0, 0
with dezero.no_grad():
for x, t in test_loader:
y = model(x)
loss = F.softmax_cross_entropy(y, t)
acc = F.accuracy(y, t)
sum_loss += float(loss.data) * len(t)
sum_acc += float(acc.data) * len(t)
print(f"test loss: {sum_loss/len(test_set):.4f}, accuracy: {sum_acc/len(test_set):.4f}")
| 25.890244
| 93
| 0.621291
| 306
| 0.144136
| 0
| 0
| 0
| 0
| 0
| 0
| 192
| 0.090438
|
c80394afc399b78e52b09f0399ffa60c6bd99be4
| 2,807
|
py
|
Python
|
src/old/mpas-source/testing_and_setup/compass/landice/MISMIP3D/plot_speed_profiles.py
|
meteorologytoday/E3SM-sicn
|
61acadf73929399586c8972f263f0d65696cba38
|
[
"MIT"
] | null | null | null |
src/old/mpas-source/testing_and_setup/compass/landice/MISMIP3D/plot_speed_profiles.py
|
meteorologytoday/E3SM-sicn
|
61acadf73929399586c8972f263f0d65696cba38
|
[
"MIT"
] | null | null | null |
src/old/mpas-source/testing_and_setup/compass/landice/MISMIP3D/plot_speed_profiles.py
|
meteorologytoday/E3SM-sicn
|
61acadf73929399586c8972f263f0d65696cba38
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
'''
Plots velocity profiles for a diagnostic solve for a range of resolutions, with and without GLP.
'''
import numpy as np
import netCDF4
#import datetime
# import math
# from pylab import *
from optparse import OptionParser
import matplotlib.pyplot as plt
from matplotlib import cm
# from matplotlib.contour import QuadContourSet
# import time
reslist = (10000, 5000, 2000, 1000, 500, 250)
GLbit = 256
secInYr = 3600.0 * 24.0 * 365.0 # Note: this may be slightly wrong for some calendar types!
parser = OptionParser()
parser.add_option("-f", "--file", dest="filename", help="file to visualize", metavar="FILE")
parser.add_option("-t", "--time", dest="time", help="time step to visualize (0 based)", metavar="TIME")
parser.add_option("-s", "--save", action="store_true", dest="saveimages", help="include this flag to save plots as files")
parser.add_option("-n", "--nodisp", action="store_true", dest="hidefigs", help="include this flag to not display plots (usually used with -s)")
options, args = parser.parse_args()
if not options.filename:
print "No filename provided. Using output.nc."
options.filename = "output.nc"
if not options.time:
print "No time provided. Using time 0."
time_slice = 0
else:
time_slice = int(options.time)
################### DEFINE FUNCTIONS ######################
def get_data(filename):
f = netCDF4.Dataset(filename,'r')
#xtime = f.variables['xtime'][:]
xCell = f.variables['xCell'][:]
yCell = f.variables['yCell'][:]
#xEdge = f.variables['xEdge'][:]
#yEdge = f.variables['yEdge'][:]
surfaceSpeed = f.variables['surfaceSpeed'][time_slice,:]
#edgeMask = f.variables['edgeMask'] # just get the object
#vert_levs = len(f.dimensions['nVertLevels'])
# Find center row - currently files are set up to have central row at y=0
ind = np.nonzero( yCell == 0.0 )
x = xCell[ind]/1000.0
u = surfaceSpeed[ind]*secInYr
f.close()
return x, u
colors = [ cm.jet(x) for x in np.linspace(0.0, 1.0, len(reslist)) ]
fig = plt.figure(1, facecolor='w')
ax = fig.add_subplot(111)
for i in range(len(reslist)):
res = reslist[i]
# no glp first
fname = "{}m.nc".format(res)
print "Processing file", fname
x, u = get_data(fname)
plt.plot(x, u, '.-', color=colors[i], label="{}m, no GLP".format(res))
# glp next
fname = "{}m-glp.nc".format(res)
print "Processing file", fname
x, u = get_data(fname)
plt.plot(x, u, '.--', color=colors[i], label="{}m, GLP".format(res))
plt.xlabel('X-position (km)')
plt.ylabel('Speed (m/yr)')
plt.title('Profile at y=0')
plt.legend()
plt.draw()
if options.saveimages:
print "Saving figures to files."
plt.savefig('GL-position.png')
if options.hidefigs:
print "Plot display disabled with -n argument."
else:
plt.show()
| 29.239583
| 143
| 0.662629
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1,267
| 0.451372
|
c804b2aba892b4eb59eed92a1fc2059a9fcab787
| 2,713
|
py
|
Python
|
halfpipe/model/__init__.py
|
fossabot/Halfpipe-1
|
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
|
[
"FTL"
] | null | null | null |
halfpipe/model/__init__.py
|
fossabot/Halfpipe-1
|
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
|
[
"FTL"
] | null | null | null |
halfpipe/model/__init__.py
|
fossabot/Halfpipe-1
|
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
|
[
"FTL"
] | null | null | null |
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
"""
from .exclude import ExcludeSchema, rating_indices
from .spec import SpecSchema, loadspec, savespec
from .tags import BoldTagsSchema, FuncTagsSchema, entities, entity_longnames, resultdict_entities
from .file import (
File,
BidsFileSchema,
AnatFileSchema,
T1wFileSchema,
FuncFileSchema,
BoldFileSchema,
TxtEventsFileSchema,
TsvEventsFileSchema,
MatEventsFileSchema,
FmapFileSchema,
PhaseFmapFileSchema,
PhaseDiffFmapFileSchema,
EPIFmapFileSchema,
BaseFmapFileSchema,
RefFileSchema,
SpreadsheetFileSchema,
FileSchema,
)
from .setting import (
SettingSchema,
BaseSettingSchema,
SmoothingSettingSchema,
BandpassFilterSettingSchema,
GrandMeanScalingSettingSchema,
)
from .metadata import (
MetadataSchema,
templates,
direction_codes,
axis_codes,
space_codes,
slice_order_strs
)
from .resultdict import ResultdictSchema
from .filter import FilterSchema, GroupFilterSchema, TagFilterSchema, MissingFilterSchema
from .contrast import TContrastSchema, InferredTypeContrastSchema
from .model import (
Model,
ModelSchema,
FixedEffectsModelSchema,
MixedEffectsModelSchema,
LinearMixedEffectsModelSchema,
)
from .feature import Feature, FeatureSchema
from .variable import VariableSchema
__all__ = [
"ExcludeSchema",
"rating_indices",
"SpecSchema",
"loadspec",
"savespec",
"BoldTagsSchema",
"FuncTagsSchema",
"entities",
"entity_longnames",
"resultdict_entities",
"File",
"BidsFileSchema",
"AnatFileSchema",
"T1wFileSchema",
"FuncFileSchema",
"BoldFileSchema",
"TxtEventsFileSchema",
"TsvEventsFileSchema",
"MatEventsFileSchema",
"FmapFileSchema",
"PhaseFmapFileSchema",
"PhaseDiffFmapFileSchema",
"EPIFmapFileSchema",
"BaseFmapFileSchema",
"RefFileSchema",
"FileSchema",
"SettingSchema",
"BaseSettingSchema",
"SmoothingSettingSchema",
"BandpassFilterSettingSchema",
"GrandMeanScalingSettingSchema",
"MetadataSchema",
"templates",
"direction_codes",
"axis_codes",
"space_codes",
"slice_order_strs",
"ResultdictSchema",
"FilterSchema",
"GroupFilterSchema",
"TagFilterSchema",
"TContrastSchema",
"MissingFilterSchema",
"InferredTypeContrastSchema",
"Model",
"ModelSchema",
"FixedEffectsModelSchema",
"MixedEffectsModelSchema",
"LinearMixedEffectsModelSchema",
"SpreadsheetFileSchema",
"VariableSchema",
"Feature",
"FeatureSchema",
]
| 23.798246
| 97
| 0.708072
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1,066
| 0.392923
|
c804be87c5478ddfa9fadf38397429243edc770e
| 4,363
|
py
|
Python
|
play.py
|
cp1r8/metadungeon
|
e68a35c815d60bccb883436fde782868bff7f81f
|
[
"CC0-1.0"
] | null | null | null |
play.py
|
cp1r8/metadungeon
|
e68a35c815d60bccb883436fde782868bff7f81f
|
[
"CC0-1.0"
] | null | null | null |
play.py
|
cp1r8/metadungeon
|
e68a35c815d60bccb883436fde782868bff7f81f
|
[
"CC0-1.0"
] | null | null | null |
#!/usr/bin/env python3
from game import World
from game.creatures import Humanoid, Unit
from game.creatures.adventurers import Adventurer, Party
from game.objects.containers import Container
from game.places.underground import Dungeon
from game.dice import d4
from pathlib import Path
import pickle
import sys
import ui
if __name__ == '__main__':
game_file = Path.home() / '.local' / 'metadungeon.pickle'
if game_file.exists() and '--reset' not in sys.argv:
with game_file.open('rb') as input:
world, party = pickle.load(input)
else:
world = World()
dungeon = Dungeon(world)
world.add(dungeon)
if '--shop' in sys.argv:
auto_equip = False
# TODO start in town (purchase equipment manually)
else:
auto_equip = True
location = dungeon.entrance
if '--basic' in sys.argv:
party = Party.basic(location, auto_equip)
elif '--expert' in sys.argv:
party = Party.expert(location, auto_equip)
elif '--funnel' in sys.argv:
party = Party.assemble(0, sum(4*d4) + 4, location, auto_equip)
elif '--hlc' in sys.argv:
party = Party.highLevelClient(location, auto_equip)
elif '--hlf' in sys.argv:
party = Party.highLevelFighter(location, auto_equip)
elif '--hlm' in sys.argv:
party = Party.highLevelMuser(location, auto_equip)
else:
party = Party.assemble(1, sum(2*d4) + 4, location, auto_equip)
location.add(party)
# for testing
if '--zap' in sys.argv:
damage = sys.argv.count('--zap')
for entity in party.location.entities:
if isinstance(entity, Unit):
for member in entity.members:
member.hit(damage)
actions = party.location.actions(party)
for arg in sys.argv:
if arg in actions:
actions[arg]()
world.age(minutes=10)
actions = party.location.actions(party)
break
with game_file.open('wb') as output:
pickle.dump((world, party), output)
print(f"{str(world):<19} {world.now}")
print('-' * 39)
print(str(party.location))
print()
print('[ ' + ' ] [ '.join(sorted(actions.keys())) + ' ]')
print('=' * 39)
print()
for entity in sorted(party.location.entities, key=lambda entity: entity.id):
if isinstance(entity, Unit):
continue
print(str(entity))
if isinstance(entity, Container):
for item in entity.contents:
ui.print_inventory_item(item)
print('-' * 39)
print()
for entity in sorted(party.location.entities, key=lambda entity: entity.id):
if not isinstance(entity, Unit):
continue
print(str(entity))
# TODO unit "health bar"
# TODO unit status (e.g., lost/flee)
if '--stats' in sys.argv:
print(ui.unitstats(entity))
print('-' * 39)
print()
for member in sorted(entity.members, key=lambda member: member.id):
print(str(member))
if member.hits_taken > member.hit_dice:
hit_points = f"{member.hit_dice - member.hits_taken:d}/{member.hit_dice:d}"
else:
hit_points = f"{member.hits_remaining - member.partial_hit:d}/{member.hit_dice:d}"
print(
f"[{ui.health_bar(member, 28)}]",
f"{hit_points:>5} hp",
)
if '--stats' in sys.argv:
print(ui.statblock(member))
if isinstance(member, Adventurer):
if '--abilities' in sys.argv:
print(ui.abilities(member))
if '--level' in sys.argv:
# TODO calculate "bounty"
print(
f"{member.profile}",
f"1UP:{member.silver_for_next_level:,.0f}$"
)
if isinstance(member, Humanoid):
if '--inventory' in sys.argv:
ui.print_inventory(member, True)
print('-' * 39)
elif '--arms' in sys.argv:
ui.print_inventory(member)
print()
print('=' * 39)
print()
| 28.89404
| 98
| 0.544579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 669
| 0.1533
|
c80564b90308d62159da1bcee2b8ccb5be3d2c50
| 87
|
py
|
Python
|
HelloPython/Hello.py
|
itsdamslife/python-ml-udacity
|
d16b7619a05e1b42fcbd0846f64726bf9741701a
|
[
"MIT"
] | null | null | null |
HelloPython/Hello.py
|
itsdamslife/python-ml-udacity
|
d16b7619a05e1b42fcbd0846f64726bf9741701a
|
[
"MIT"
] | null | null | null |
HelloPython/Hello.py
|
itsdamslife/python-ml-udacity
|
d16b7619a05e1b42fcbd0846f64726bf9741701a
|
[
"MIT"
] | null | null | null |
class HelloPy:
def hello(self):
print("Hello Python!")
HelloPy().hello()
| 12.428571
| 30
| 0.597701
| 66
| 0.758621
| 0
| 0
| 0
| 0
| 0
| 0
| 15
| 0.172414
|
c80624c4bad650eb5277c12ff9ddd20884d61424
| 590
|
py
|
Python
|
freeze.py
|
eudemonia-research/hec
|
e65df8e4584746dcb2785327cfcffac10a66c689
|
[
"MIT"
] | 2
|
2015-11-05T16:24:31.000Z
|
2022-02-05T19:01:58.000Z
|
freeze.py
|
eudemonia-research/hec
|
e65df8e4584746dcb2785327cfcffac10a66c689
|
[
"MIT"
] | null | null | null |
freeze.py
|
eudemonia-research/hec
|
e65df8e4584746dcb2785327cfcffac10a66c689
|
[
"MIT"
] | null | null | null |
from cx_Freeze import setup, Executable
import requests.certs
# Dependencies are automatically detected, but it might need
# fine tuning.
buildOptions = dict(packages = [], excludes = [], include_msvcr=True,
include_files=[(requests.certs.where(),'cacert.pem')])
import sys
base = 'Win32GUI' if sys.platform=='win32' else None
executables = [
Executable('scripts\\hecs.py', base=base, targetName = 'hecs.exe')
]
setup(name='hecs',
version = '1.0',
description = 'Hecs',
options = dict(build_exe = buildOptions),
executables = executables)
| 29.5
| 74
| 0.676271
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 148
| 0.250847
|
c8063918c58e85541c9a3697d5b6790d29d944d4
| 103
|
py
|
Python
|
chapter2/chapter2_type_hints_01.py
|
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
|
d2218d225c5b93723ecf46c19619ed5d3f2473e6
|
[
"MIT"
] | 107
|
2021-03-26T20:18:51.000Z
|
2022-03-26T03:38:08.000Z
|
chapter2/chapter2_type_hints_01.py
|
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
|
d2218d225c5b93723ecf46c19619ed5d3f2473e6
|
[
"MIT"
] | 4
|
2021-06-09T08:48:21.000Z
|
2021-12-27T09:04:43.000Z
|
chapter2/chapter2_type_hints_01.py
|
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
|
d2218d225c5b93723ecf46c19619ed5d3f2473e6
|
[
"MIT"
] | 58
|
2021-03-12T20:51:19.000Z
|
2022-03-27T15:49:49.000Z
|
def greeting(name: str) -> str:
return f"Hello, {name}"
print(greeting("John")) # "Hello, John"
| 17.166667
| 40
| 0.61165
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 37
| 0.359223
|
c806d8b85faac4749d3297eee869e84a9a44277c
| 2,742
|
py
|
Python
|
Elasticsearch/elasticsearchconnector.py
|
krajai/testt
|
3aaf5fd7fe85e712c8c1615852b50f9ccb6737e5
|
[
"BSD-3-Clause"
] | 1,114
|
2020-09-28T07:32:23.000Z
|
2022-03-31T22:35:50.000Z
|
Elasticsearch/elasticsearchconnector.py
|
krajai/testt
|
3aaf5fd7fe85e712c8c1615852b50f9ccb6737e5
|
[
"BSD-3-Clause"
] | 298
|
2020-10-29T09:39:17.000Z
|
2022-03-31T15:24:44.000Z
|
Elasticsearch/elasticsearchconnector.py
|
krajai/testt
|
3aaf5fd7fe85e712c8c1615852b50f9ccb6737e5
|
[
"BSD-3-Clause"
] | 153
|
2020-09-29T06:07:39.000Z
|
2022-03-31T17:41:16.000Z
|
# Import elasticsearch module
from elasticsearch import Elasticsearch,ImproperlyConfigured,TransportError
import json
class ElasticsearchConnector:
def __init__(self,credobject=None):
"""
Description:
Accepts elasticsearch connection parameters and connects to elasticsearch cloud
"""
#Parameter check
try:
assert credobject is not None,"Found credentials object empty"
except AssertionError:
print("Empty Credentials")
try:
with open(credobject, "r") as f:
credentials = json.load(f)
except OSError:
print("Unable to open file. Invalid path.")
return
except TypeError:
credentials = credobject
#Initializing parameters
self.user = credentials.get('user',None)
self.password = credentials.get('password',None)
self.endpoint = credentials.get('endpoint',None)
self.port = credentials.get('port',None)
self.protocol = credentials.get('protocol',None)
self.connection = self.get_connection()
def get_connection(self):
print("Establishing connection to Elasticsearch")
try:
es = Elasticsearch([self.endpoint],http_auth=(self.user,self.password),scheme=self.protocol,port=self.port)
print("Connection established")
return es
except ImproperlyConfigured as e:
print("Unable to connect to Elasticsearch server : Invalid credentials")
def save_data(self,parameters,data):
print("Saving data to Elasticsearch")
try:
resultset = self.connection.index(index=parameters.get('index',None),doc_type=parameters.get('type',None),body=data)
return resultset
except TransportError as e:
print("Unable to save data to elasticsearch. Please check your connection credentials")
def search_data(self,parameters,query,search_type='search'):
# import pdb;pdb.set_trace()
print("Fetching data from Elasticsearch server")
if(search_type == 'search'):
try:
resultset = self.connection.search(index=parameters.get('index',None), body=query[0])
return resultset
except TransportError as e:
print("Unable to search data. Please check your query and try again")
except AttributeError as e:
print("Please connect to Elasticsearch server and try again")
elif(search_type == 'msearch'):
response = []
try:
for each in query:
req_head = {'index': parameters.get('index',None), 'type': parameters.get('type',None)}
req_body = each
response.append(self.connection.msearch(body = [req_head,req_body]))
return response
except TransportError as e:
print("Unable to search data. Please check your query and try again")
except AttributeError as e:
print("Please connect to Elasticsearch server and try again")
else:
print("Invalid Search type : Use 'search' or 'msearch' as valid search types")
| 35.153846
| 119
| 0.73523
| 2,623
| 0.956601
| 0
| 0
| 0
| 0
| 0
| 0
| 997
| 0.363603
|
c8086e05aec0c6df0ba73279af11a14fb3f20635
| 15,813
|
py
|
Python
|
Lab3.py
|
jamieaclifford/Crystal
|
d9ea44187a7673f523ad350834d38730c2d31126
|
[
"MIT"
] | null | null | null |
Lab3.py
|
jamieaclifford/Crystal
|
d9ea44187a7673f523ad350834d38730c2d31126
|
[
"MIT"
] | null | null | null |
Lab3.py
|
jamieaclifford/Crystal
|
d9ea44187a7673f523ad350834d38730c2d31126
|
[
"MIT"
] | null | null | null |
from numpy import *
from scipy.signal import correlate2d
from numpy.random import randint,choice,uniform
from matplotlib.pyplot import *
import matplotlib.pyplot as plt
from os import system
class KineticMonteCarlo(object) :
def __init__( self, Model ) :
# reference state
self.Model = Model
self.state = Model.state
# event rates and evolution rule
self.evolve = Model.evolve
self.get_rates = Model.get_rates
def time_step( self ) :
# calculate transition rate fractions
rates = self.get_rates() ### a k-dimensional array
probabilities = cumsum(rates) #### a k-dim array
print('Probabilities are'), probabilities
total_rate = probabilities[-1]
probabilities /= total_rate
# choose events according to rates
u = uniform(0,1)
#get array of true and false depending on value of random number which is compared to the intervals for events
events_index = sum(probabilities < u)
if events_index==0 :
print ('Event is adsorption')
if events_index==1 :
print ('Event is diffusion')
if events_index==2 :
print ('Event is agglomeration')
# generate waiting time
v = uniform(0,1)
dt = -log(v)/total_rate
# carry out events
self.evolve(events_index,dt)
class LatticeGas(object) :
def __init__(self, n_sites, density ) :
# initialisation of lattice gas with given denisty
self.size = 2*int(ceil(sqrt(n_sites)/2))
self.state = choice([0,1],size=(self.size,self.size),p=[1-density,density])
self.time = 0.
self.n=0
self.singles=0
self.data=[]
self.atom=[]
self.zero=[]
self.sing=[]
def alone(self):
self.n +=1
array=()
self.state==1
mask = self.state == 1
ilist,jlist = where (mask)
oneslist = zip (ilist,jlist)
k=randint(len(oneslist))
oneslist [k]
print oneslist [k]
row=ilist [k]
column=jlist [k]
nearn=self.state[(row - 1)%self.size,column%self.size]+self.state[(row + 1)%self.size,column%self.size]+self.state[row%self.size,(column-1)%self.size]+self.state[row%self.size,(column+1)%self.size]
if nearn==0:
self.singles=self.singles+1
else:
self.singles=self.singles+0
return self.singles
def empty(self):
self.n +=1
array1=()
self.state==0
mask = self.state == 0
ilist,jlist = where (mask)
zerolist= zip (ilist,jlist)
self.number_emp=len(zerolist)
print('0=',self.number_emp)
return self.number_emp
def islands(self) :
#Helper function that indicates if we can enter the cell or not
def can_enter_cell(matrix, is_visited, cur_row, cur_col) :
n_rows = len(matrix)
n_cols = len(matrix[0])
#If we are outside the bounds of the matrix or
#if the cell is already visited or if the value in cell is 0
#then we shouldn't enter the cell
if (cur_row < 0 or cur_row >= n_rows
or cur_col < 0 or cur_col >= n_cols
or is_visited[cur_row][cur_col]
or matrix[cur_row][cur_col] == 0) :
return False
return True
#Helper function to count the number of islands of 1's
#matrix: 2-D matrix consisting of 0's and 1's
#is_visited: if cell (i, j) has been visited, is_visited[i][j] is set to True
#cur_row: row of the current cell being processed
#cur_col: column of the current cell being processed
def expand_search(matrix, is_visited, cur_row, cur_col) :
n_rows = len(matrix)
n_cols = len(matrix[0])
#at the point a cell is visited via expand it will be referred to as vsited
is_visited[cur_row][cur_col] = True
#For the current cell, find out if we can continue the island of 1's
#with its neighbors. Each cell has 8 neighbors. The rows
#of neighbors will vary from cur_row - 1 to cur_row + 1
#The columns of the neighbors will vary from cur_col - 1
#to cur_col + 1
for i in range(-1, 2):
for j in range(-1, 2):
#cell part of island
is_safe_cell = can_enter_cell(matrix, is_visited, cur_row+i,
cur_col+j)
if (is_safe_cell) :
#check the neighbours for all the ranges up and down
expand_search(matrix, is_visited, cur_row+i, cur_col+j)
#Main function to find the number of islands of 1's
#matrix: 2-D matrix consisting of 0's and 1's. Should not be empty
def find_islands(matrix) :
n_rows = len(matrix)
n_cols = len(matrix[0])
#list of all the points visited as true or false (boolean)
is_visited = [ [False for x in range(n_cols)] for x in range(n_rows)]
#Search all the cells in matrix that are not yet visited
count = 0
for i in range(0, n_rows):
for j in range(0, n_cols):
if (matrix[i][j] == 1 and not is_visited[i][j]) :
#We assume we have found an island and use the atom as starting point. Now expand the island
#in all directions
#look through all the points in the lattice(represented by a matrix)
island = 1
def alone():
for i_alone in range(-1, 1):
for j_alone in range(-1, 1):
if (i_alone < 0 or i_alone >= len(matrix)
or j_alone < 0 or j_alone >= len(matrix[0])):
if(matrix[i_alone][j_alone]==1):
return False
return True
if(not alone()):
island = 1
expand_search(matrix, is_visited, i, j)
else:
island = 0
count = count + island
return count
islands = 0
tmp = self.state
array=()
tmp==1
mask = tmp == 1
ilist,jlist = where (mask)
oneslist = zip (ilist,jlist)
tmpMap = []
for i in range(32): #change for sqrt of size
tmpRow = []
for j in range(32):
#fill temp matrix with zeros
tmpRow.append(0)
tmpMap.append(tmpRow)
i = 0
for one in oneslist:
#go through the duplicated lattice and access all coordinates
tmpMap[one[0]][one[1]] = 1
#print(tmpMap)
return find_islands(tmpMap)
def get_rates(self) :
prefactor_ad=0.001
energybarrier_ad=0.01
prefactor_d=0.1
energybarrier_d=0.35
prefactor_ag=0.1
energybarrier_ag=0.5
self.rate_ad=prefactor_ad*exp(-energybarrier_ad)
self.rate_d=prefactor_d*exp(-energybarrier_d)
self.rate_ag=prefactor_ag*exp(-energybarrier_ag)
#assuming B=1.0
return array([self.rate_ad,self.rate_d,self.rate_ag])
def evolve(self,events_index,dt) :
self.n += 1
if events_index == 0 :
#adsorption
n=self.size
row_a = randint(0,self.size)
column_a = randint(0,self.size)
print row_a
print column_a
print self.state[row_a,column_a]
if self.state[row_a,column_a] == 0:
self.state[row_a,column_a]=1
print self.state
self.time= self.time + dt/self.size**2
print self.time
if events_index == 1 :
#diffusion
array=()
self.state==1
mask = self.state == 1
ilist,jlist = where (mask)
oneslist = zip (ilist,jlist)
k=randint(len(oneslist))
oneslist [k]
print oneslist [k]
row=ilist [k]
column=jlist [k]
nearn=self.state[(row - 1)%self.size,column%self.size]+self.state[(row + 1)%self.size,column%self.size]+self.state[row%self.size,(column-1)%self.size]+self.state[row%self.size,(column+1)%self.size]
if nearn > 0 :
print ("Diffusion not possible")
if nearn ==0 :
print ("Diffusion is possible")
move= []
#Checking nearest neighbours of up
nearn_up=self.state[(row- 2)%self.size,column%self.size]+self.state[(row-1)%self.size,(column-1)%self.size]+self.state[(row-1)%self.size,(column+1)%self.size]
if nearn_up > 0:
print("Cannot diffuse up")
if nearn_up == 0 :
move.append('up')
print ("Diffusion possible up")
#Checking nearet neighbours of right
nearn_right=self.state[(row- 1)%self.size,(column+1)%self.size]+self.state[row%self.size,(column+2)%self.size]+self.state[(row+1)%self.size,(column+1)%self.size]
if nearn_right > 0:
print("Cannot diffuse right")
if nearn_right == 0 :
move.append('right')
print ("Diffusion possible right")
#Checking nearest neighbours of down
nearn_down=self.state[(row+ 2)%self.size,(column-1)%self.size]+self.state[(row+2)%self.size,column%self.size]+self.state[(row+1)%self.size,(column+1)%self.size]
if nearn_down > 0:
print("Cannot diffuse down")
if nearn_down == 0 :
move.append('down')
print ("Diffusion possible down")
#Checking nearest neighbours of left
nearn_left=self.state[(row- 1)%self.size,(column-1)%self.size]+self.state[row%self.size,(column-2)%self.size]+self.state[(row+1)%self.size,(column-1)%self.size]
if nearn_left > 0:
print("Cannot diffuse left")
if nearn_left == 0 :
move.append('left')
print ("Diffusion possible left")
print move
if(len(move)>0):
chosen_move=choice(move)
print ('Chosen move is:',chosen_move)
if chosen_move=='up' :
self.state[row%self.size,column%self.size]=0
self.state[(row-1)%self.size,column%self.size]=1
elif chosen_move=='right' :
self.state[row%self.size,column%self.size]=0
self.state[row%self.size,(column+1)%self.size]=1
elif chosen_move=='down' :
self.state[row%self.size,column%self.size]=0
self.state[(row +1)%self.size,column%self.size]=1
elif chosen_move=='left' :
self.state[row%self.size,column%self.size]=0
self.state[row%self.size,(column-1)%self.size]=1
else:
self.state[row%self.size,column%self.size]=1
print ('cannot move')
self.time= self.time + dt/self.size**2
print self.time
return self.state
if events_index == 2 :
#agglomeration
array=()
self.state==1
mask = self.state == 1
ilist,jlist = where (mask)
oneslist = zip (ilist,jlist)
k=randint(len(oneslist))
oneslist [k]
print oneslist [k]
row=ilist [k]
column=jlist [k]
nearn=self.state[(row - 1)%self.size,column%self.size]+self.state[(row + 1)%self.size,column%self.size]+self.state[row%self.size,(column-1)%self.size]+self.state[row%self.size,(column+1)%self.size]
if nearn > 0 :
print ("Agglomeration not possible")
if nearn ==0 :
print ("Agglomeration is possible")
move=[]
#Checking nearest neighbours of up
nearn_up=self.state[(row- 2)%self.size,column%self.size]+self.state[(row-1)%self.size,(column-1)%self.size]+self.state[(row-1)%self.size,(column+1)%self.size]
if nearn_up > 0:
print("Agglomeration posible up")
move.append('up')
if nearn_up == 0 :
print ("Cannot Agglomerate up")
#Checking nearet neighbours of right
nearn_right=self.state[(row- 1)%self.size,(column+1)%self.size]+self.state[row%self.size,(column+2)%self.size]+self.state[(row+1)%self.size,(column+1)%self.size]
if nearn_right > 0:
print("Agglomeration posible right")
move.append('right')
if nearn_right == 0 :
print ("Cannot Agglomerate right")
#Checking nearest neighbours of down
nearn_down=self.state[(row+ 2)%self.size,(column-1)%self.size]+self.state[(row+2)%self.size,column%self.size]+self.state[(row+1)%self.size,(column+1)%self.size]
if nearn_down > 0:
print("Agglomeration posible down")
move.append('down')
if nearn_down == 0 :
print ("Cannot Agglomerate down")
#Checking nearest neighbours of left
nearn_left=self.state[(row- 1)%self.size,(column-1)%self.size]+self.state[row%self.size,(column-2)%self.size]+self.state[(row+1)%self.size,(column-1)%self.size]
if nearn_left > 0:
print("Agglomeration posible left")
move.append('left')
if nearn_left == 0 :
print ("Cannot Agglomerate left")
print move
if(len(move)>0):
chosen_move=choice(move)
print ('Chosen move is:',chosen_move)
if chosen_move=='up' :
self.state[row%self.size,column%self.size]=0
self.state[(row-1)%self.size,column%self.size]=1
elif chosen_move=='right' :
self.state[row%self.size,column%self.size]=0
self.state[row%self.size,(column+1)%self.size]=1
elif chosen_move=='down' :
self.state[row%self.size,column%self.size]=0
self.state[(row +1)%self.size,column%self.size]=1
elif chosen_move=='left' :
self.state[row%self.size,column%self.size]=0
self.state[row%self.size,(column-1)%self.size]=1
else:
self.state[row%self.size,column%self.size]=1
print("cannot move")
self.time= self.time + dt/self.size**2
print self.time
def atom(self):
nearn=self.state[(row - 1)%self.size,column%self.size]+self.state[(row + 1)%self.size,column%self.size]+self.state[row%self.size,(column-1)%self.size]+self.state[row%self.size,(column+1)%self.size]
if nearn==0 :
self.atom.append((self.time,str(nearn)))
print self.atom
def show(self) :
figure(figsize=(5,5))
suptitle('Time={:.2e}'.format(self.time))
title('#Islands(t)= '+str(model.islands()))
self.data.append((self.time,model.islands()))
self.sing.append((self.time,model.alone()))
self.zero.append((self.time,model.empty()))
imshow(self.state,interpolation="none",cmap='spring_r',vmin=0,vmax=1)
savefig(str(self.n).zfill(5)+'.png')
close()
system('rm animation.gif')
# example of how code should work
model = LatticeGas(1024,0.3)
print model.state
#model.show()
kmc = KineticMonteCarlo(model)
for n in range(0,100) :
kmc.time_step()
model.show()
#plot of empty empty space against time
f=plt.figure()
x, y = zip(*model.data)
plt.scatter(x, y)
plt.savefig('Islands_vs_Time.jpg')
f.show()
g=plt.figure()
x,y=zip(*model.sing)
plt.scatter(x,y)
plt.savefig('single_vs_time.jpg')
g.show()
h=plt.figure()
x,y=zip(*model.zero)
plt.plot(x,y)
plt.savefig('EmptySpace_vs_time.jpg')
h.show()
system('convert -delay 2 -loop 1 *.png animation.gif')
system('rm *.png')
| 34.526201
| 207
| 0.568393
| 14,901
| 0.942326
| 0
| 0
| 0
| 0
| 0
| 0
| 3,223
| 0.20382
|
c8093b0fe4419003974199d64ec5c9a63aa70c9e
| 4,434
|
py
|
Python
|
pyvino_utils/models/recognition/gaze_estimation.py
|
venky4121994/openvinoface
|
a620138b94f865fb19e6165abde2237c85ca8764
|
[
"MIT"
] | 4
|
2020-08-31T17:19:57.000Z
|
2020-10-03T13:59:10.000Z
|
pyvino_utils/models/recognition/gaze_estimation.py
|
B0N0AI/pyvino_utils
|
0d42741eb446b038eae2917b621d9c1ffbc42452
|
[
"MIT"
] | 2
|
2020-09-13T08:04:36.000Z
|
2020-09-13T08:04:58.000Z
|
pyvino_utils/models/recognition/gaze_estimation.py
|
mmphego/pyvino_utils
|
0d42741eb446b038eae2917b621d9c1ffbc42452
|
[
"MIT"
] | null | null | null |
import time
import cv2
import numpy as np
from ..openvino_base.base_model import Base
class GazeEstimation(Base):
"""Class for the Gaze Estimation Recognition Model."""
def __init__(
self,
model_name,
source_width=None,
source_height=None,
device="CPU",
threshold=0.60,
extensions=None,
**kwargs,
):
super().__init__(
model_name,
source_width,
source_height,
device,
threshold,
extensions,
**kwargs,
)
def preprocess_output(self, inference_results, image, show_bbox, **kwargs):
results = {}
gaze_vector = dict(zip(["x", "y", "z"], np.vstack(inference_results).ravel()))
# TODO: Figure out why I had to comment this code out?
# roll_val = kwargs["head_pose_angles"]["roll"]
# cos_theta = math.cos(roll_val * math.pi / 180)
# sin_theta = math.sin(roll_val * math.pi / 180)
# coords = {"x": None, "y": None}
# coords["x"] = gaze_vector["x"] * cos_theta + gaze_vector["y"] * sin_theta
# coords["y"] = gaze_vector["y"] * cos_theta - gaze_vector["x"] * sin_theta
if show_bbox:
self.draw_output(gaze_vector, image, **kwargs)
results["Gaze_Vector"] = gaze_vector
results["image"] = image
return results
@staticmethod
def draw_output(coords, image, **kwargs):
left_eye_point = kwargs["eyes_coords"]["left_eye_point"]
right_eye_point = kwargs["eyes_coords"]["right_eye_point"]
cv2.arrowedLine(
image,
(
left_eye_point[0] + int(coords["x"] * 500),
left_eye_point[1] - int(coords["y"] * 500),
),
(left_eye_point[0], left_eye_point[1]),
color=(0, 0, 255),
thickness=2,
tipLength=0.2,
)
cv2.arrowedLine(
image,
(
right_eye_point[0] + int(coords["x"] * 500),
right_eye_point[1] - int(coords["y"] * 500),
),
(right_eye_point[0], right_eye_point[1]),
color=(0, 0, 255),
thickness=2,
tipLength=0.2,
)
@staticmethod
def show_text(
image, coords, pos=550, font_scale=1.5, color=(255, 255, 255), thickness=1
):
"""Helper function for showing the text on frame."""
height, _ = image.shape[:2]
ypos = abs(height - pos)
text = "Gaze Vector: " + ", ".join(f"{x}: {y:.2f}" for x, y in coords.items())
cv2.putText(
image,
text,
(15, ypos),
fontFace=cv2.FONT_HERSHEY_PLAIN,
fontScale=font_scale,
color=color,
thickness=thickness,
)
def preprocess_input(self, image, **kwargs):
width, height = self.model.inputs["left_eye_image"].shape[2:]
p_left_eye_image = Base.preprocess_input(
Base, kwargs["eyes_coords"]["left_eye_image"], width, height
)
p_right_eye_image = Base.preprocess_input(
Base, kwargs["eyes_coords"]["right_eye_image"], width, height
)
return p_left_eye_image, p_right_eye_image
def predict(self, image, request_id=0, show_bbox=False, **kwargs):
p_left_eye_image, p_right_eye_image = self.preprocess_input(image, **kwargs)
head_pose_angles = list(kwargs.get("head_pose_angles").values())
predict_start_time = time.time()
status = self.exec_network.start_async(
request_id=request_id,
inputs={
"left_eye_image": p_left_eye_image,
"right_eye_image": p_right_eye_image,
"head_pose_angles": head_pose_angles,
},
)
status = self.exec_network.requests[request_id].wait(-1)
if status == 0:
pred_result = []
for output_name, data_ptr in self.model.outputs.items():
pred_result.append(
self.exec_network.requests[request_id].outputs[output_name]
)
predict_end_time = float(time.time() - predict_start_time) * 1000
gaze_vector, _ = self.preprocess_output(
pred_result, image, show_bbox=show_bbox, **kwargs
)
return (predict_end_time, gaze_vector)
| 32.844444
| 86
| 0.554804
| 4,343
| 0.979477
| 0
| 0
| 1,439
| 0.324538
| 0
| 0
| 769
| 0.173433
|
c8095fa9e80674ff147ce29f4d9409ee896f3519
| 1,982
|
py
|
Python
|
src/testing/task_plot_share_of_educ_participants_with_rapid_test.py
|
covid-19-impact-lab/sid-germany
|
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
|
[
"MIT"
] | 4
|
2021-04-24T14:43:47.000Z
|
2021-07-03T14:05:21.000Z
|
src/testing/task_plot_share_of_educ_participants_with_rapid_test.py
|
covid-19-impact-lab/sid-germany
|
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
|
[
"MIT"
] | 4
|
2021-04-27T10:34:45.000Z
|
2021-08-31T16:40:28.000Z
|
src/testing/task_plot_share_of_educ_participants_with_rapid_test.py
|
covid-19-impact-lab/sid-germany
|
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
|
[
"MIT"
] | null | null | null |
import warnings
import matplotlib.pyplot as plt
import pandas as pd
import pytask
import seaborn as sns
from src.config import BLD
from src.config import PLOT_END_DATE
from src.config import PLOT_SIZE
from src.config import PLOT_START_DATE
from src.config import SRC
from src.plotting.plotting import style_plot
from src.testing.shared import get_piecewise_linear_interpolation
@pytask.mark.depends_on(
{
"params": BLD / "params.pkl",
"plotting.py": SRC / "plotting" / "plotting.py",
"testing_shared.py": SRC / "testing" / "shared.py",
}
)
@pytask.mark.produces(
BLD
/ "figures"
/ "data"
/ "testing"
/ "share_of_educ_participants_with_rapid_test.pdf"
)
def task_plot_share_of_educ_participants_with_rapid_test(depends_on, produces):
params = pd.read_pickle(depends_on["params"])
with warnings.catch_warnings():
warnings.filterwarnings(
"ignore", message="indexing past lexsort depth may impact performance."
)
educ_workers_params = params.loc[("rapid_test_demand", "educ_worker_shares")]
students_params = params.loc[("rapid_test_demand", "student_shares")]
share_educ_workers = get_piecewise_linear_interpolation(educ_workers_params)
share_educ_workers = share_educ_workers.loc[PLOT_START_DATE:PLOT_END_DATE]
share_students = get_piecewise_linear_interpolation(students_params)
share_students = share_students.loc[PLOT_START_DATE:PLOT_END_DATE]
fig, ax = plt.subplots(figsize=PLOT_SIZE)
sns.lineplot(
x=share_educ_workers.index,
y=share_educ_workers,
ax=ax,
label="Teachers (School, Preschool, Nursery)",
)
sns.lineplot(
x=share_students.index,
y=share_students,
ax=ax,
label="School Students",
)
ax.set_title("Share of Students and Teachers Receiving Rapid Tests")
fig, ax = style_plot(fig, ax)
fig.tight_layout()
fig.savefig(produces)
plt.close()
| 30.492308
| 85
| 0.712916
| 0
| 0
| 0
| 0
| 1,599
| 0.806761
| 0
| 0
| 420
| 0.211907
|
c80966397626d332b933ed9036f4e46b5c441750
| 734
|
py
|
Python
|
app/models/brand.py
|
ertyurk/bugme
|
5a3ef3e089e0089055074c1c896c3fdc76600e93
|
[
"MIT"
] | null | null | null |
app/models/brand.py
|
ertyurk/bugme
|
5a3ef3e089e0089055074c1c896c3fdc76600e93
|
[
"MIT"
] | null | null | null |
app/models/brand.py
|
ertyurk/bugme
|
5a3ef3e089e0089055074c1c896c3fdc76600e93
|
[
"MIT"
] | null | null | null |
from typing import Optional
from pydantic import BaseModel, Field
class BrandModel(BaseModel):
brand: str = Field(...)
auth_key: Optional[str]
user_id: str = Field(...)
class Config:
allow_population_by_field_name = True
schema_extra = {
"example": {
"brand": "Lean Scale Bugger",
"user_id": "60a57e1d1201f43c9c51c044",
}
}
class UpdateBrandModel(BaseModel):
brand: Optional[str]
auth_key: Optional[str]
user_id: Optional[str]
class Config:
schema_extra = {
"example": {
"brand": "Lean Scale Bugger",
"user_id": "60a57e1d1201f43c9c51c044",
}
}
| 22.9375
| 54
| 0.553134
| 662
| 0.901907
| 0
| 0
| 0
| 0
| 0
| 0
| 140
| 0.190736
|
c80b2595bdb7003b8c3cf6b926f272d5aafaf2b7
| 2,917
|
py
|
Python
|
src/autoschedulers/nelli2021/cmdscale.py
|
InteonCo/Halide
|
cb38ed9942e878bf40674d75da1cdd2527b81d0a
|
[
"Apache-2.0"
] | 1
|
2021-12-30T09:27:33.000Z
|
2021-12-30T09:27:33.000Z
|
src/autoschedulers/nelli2021/cmdscale.py
|
InteonCo/Halide
|
cb38ed9942e878bf40674d75da1cdd2527b81d0a
|
[
"Apache-2.0"
] | 3
|
2021-03-16T22:01:02.000Z
|
2021-09-23T19:17:10.000Z
|
src/autoschedulers/nelli2021/cmdscale.py
|
InteonCo/Halide
|
cb38ed9942e878bf40674d75da1cdd2527b81d0a
|
[
"Apache-2.0"
] | null | null | null |
# thanks to Francis Song for this function
# source: http://www.nervouscomputer.com/hfs/cmdscale-in-python/
from __future__ import division
import numpy as np
def cmdscale(D):
"""
Classical multidimensional scaling (MDS)
Parameters
----------
D : (n, n) array
Symmetric distance matrix.
Returns
-------
Y : (n, p) array
Configuration matrix. Each column represents a dimension. Only the
p dimensions corresponding to positive eigenvalues of B are returned.
Note that each dimension is only determined up to an overall sign,
corresponding to a reflection.
e : (n,) array
Eigenvalues of B.
"""
# Number of points
n = len(D)
# Centering matrix
H = np.eye(n) - np.ones((n, n))/n
# YY^T
B = -H.dot(D**2).dot(H)/2
# Diagonalize
evals, evecs = np.linalg.eigh(B)
# Sort by eigenvalue in descending order
idx = np.argsort(evals)[::-1]
evals = evals[idx]
evecs = evecs[:,idx]
# Compute the coordinates using positive-eigenvalued components only
w, = np.where(evals > 0)
L = np.diag(np.sqrt(evals[w]))
V = evecs[:,w]
Y = V.dot(L)
return Y, evals[evals > 0]
| 56.096154
| 95
| 0.255399
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 2,458
| 0.842647
|
c80c247892056d339d30163cadca271c880389d5
| 443
|
py
|
Python
|
flaskapp/app.py
|
Chetan-Gahane/Detection-Of-Phishing-Websites
|
327c6bbd4fe77d465e290466f26a387760103ad7
|
[
"MIT"
] | null | null | null |
flaskapp/app.py
|
Chetan-Gahane/Detection-Of-Phishing-Websites
|
327c6bbd4fe77d465e290466f26a387760103ad7
|
[
"MIT"
] | null | null | null |
flaskapp/app.py
|
Chetan-Gahane/Detection-Of-Phishing-Websites
|
327c6bbd4fe77d465e290466f26a387760103ad7
|
[
"MIT"
] | null | null | null |
from flask import Flask
from flask import Flask, flash, redirect, render_template, request, session, abort
import os
import newtrain
app = Flask(__name__)
@app.route('/')
def home(x):
return x
@app.route('/login', methods=['POST'])
def do_admin_login():
url_new=request.form['username']
x=newtrain.main(url_new)
return home(x)
if __name__ == "__main__":
app.secret_key = os.urandom(12)
app.run(debug=True)
| 20.136364
| 82
| 0.683973
| 0
| 0
| 0
| 0
| 186
| 0.419865
| 0
| 0
| 37
| 0.083521
|
c80efb1904e757cf4b1d0964fcfc32592997f16d
| 178
|
py
|
Python
|
lib/__init__.py
|
irap-omp/deconv3d
|
0ab5322f99e28a19ce5540d9a27dcbe340542d0a
|
[
"MIT"
] | 3
|
2016-09-19T08:52:37.000Z
|
2018-12-07T09:33:20.000Z
|
lib/__init__.py
|
irap-omp/deconv3d
|
0ab5322f99e28a19ce5540d9a27dcbe340542d0a
|
[
"MIT"
] | 1
|
2015-04-09T12:30:14.000Z
|
2015-04-09T14:05:30.000Z
|
lib/__init__.py
|
irap-omp/deconv3d
|
0ab5322f99e28a19ce5540d9a27dcbe340542d0a
|
[
"MIT"
] | 3
|
2017-12-13T14:26:24.000Z
|
2019-07-26T18:15:37.000Z
|
from os.path import abspath, dirname
with open(dirname(abspath(__file__))+'/../VERSION', 'r') as version_file:
__version__ = version_file.read().replace('\n', '').strip()
| 25.428571
| 73
| 0.685393
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 22
| 0.123596
|
c80fb814451534b7b615ad0d3cac56241fef8195
| 9,150
|
py
|
Python
|
selection/algorithms/tests/test_sqrt_lasso.py
|
wfithian/selective-inference
|
19ea427118b04716b23b394f37aafcf126d29a53
|
[
"BSD-3-Clause"
] | null | null | null |
selection/algorithms/tests/test_sqrt_lasso.py
|
wfithian/selective-inference
|
19ea427118b04716b23b394f37aafcf126d29a53
|
[
"BSD-3-Clause"
] | null | null | null |
selection/algorithms/tests/test_sqrt_lasso.py
|
wfithian/selective-inference
|
19ea427118b04716b23b394f37aafcf126d29a53
|
[
"BSD-3-Clause"
] | 1
|
2019-07-13T04:14:12.000Z
|
2019-07-13T04:14:12.000Z
|
from __future__ import division
import numpy as np
import numpy.testing.decorators as dec
import nose.tools as nt
import statsmodels as sm
import matplotlib.pyplot as plt
from selection.algorithms.sqrt_lasso import (sqrt_lasso, choose_lambda,
estimate_sigma, data_carving, split_model)
from selection.algorithms.lasso import instance
from selection.constraints.quasi_affine import constraints_unknown_sigma
from selection.truncated import T as truncated_T
from selection.sampling.tests.test_sample_sphere import _generate_constraints
def test_class(n=20, p=40, s=2):
y = np.random.standard_normal(n) * 1.2
beta = np.zeros(p)
beta[:s] = 5
X = np.random.standard_normal((n,p)) + 0.3 * np.random.standard_normal(n)[:,None]
y += np.dot(X, beta)
lam_theor = 0.7 * choose_lambda(X, quantile=0.9)
L = sqrt_lasso(y,X,lam_theor)
L.fit(tol=1.e-10, min_its=80)
P = []
if L.active.shape[0] > 0:
np.testing.assert_array_less( \
np.dot(L.constraints.linear_part, L.y),
L.constraints.offset)
nt.assert_true(L.constraints(y))
nt.assert_true(L.quasi_affine_constraints(y))
if set(range(s)).issubset(L.active):
P = [p[1] for p in L.active_pvalues[s:]]
else:
P = []
return P
def test_estimate_sigma(n=200, p=400, s=10, sigma=3.):
y = np.random.standard_normal(n) * sigma
beta = np.zeros(p)
beta[:s] = 8 * (2 * np.random.binomial(1, 0.5, size=(s,)) - 1)
X = np.random.standard_normal((n,p)) + 0.3 * np.random.standard_normal(n)[:,None]
X /= (X.std(0)[None,:] * np.sqrt(n))
y += np.dot(X, beta) * sigma
lam_theor = choose_lambda(X, quantile=0.9)
L = sqrt_lasso(y, X, lam_theor)
L.fit(tol=1.e-12, min_its=150)
P = []
if L.active.shape[0] > 0:
return L.sigma_hat / sigma, L.sigma_E / sigma, L.df_E
else:
return (None,) * 3
@dec.slow
def test_goodness_of_fit(n=20, p=25, s=10, sigma=20.,
nsample=1000):
P = []
while True:
y = np.random.standard_normal(n) * sigma
beta = np.zeros(p)
X = np.random.standard_normal((n,p)) + 0.3 * np.random.standard_normal(n)[:,None]
X /= (X.std(0)[None,:] * np.sqrt(n))
y += np.dot(X, beta) * sigma
lam_theor = .7 * choose_lambda(X, quantile=0.9)
L = sqrt_lasso(y, X, lam_theor)
L.fit(tol=1.e-12, min_its=150, max_its=200)
pval = L.goodness_of_fit(lambda x: np.max(np.fabs(x)),
burnin=10000,
ndraw=10000)
P.append(pval)
Pa = np.array(P)
Pa = Pa[~np.isnan(Pa)]
#print (~np.isnan(np.array(Pa))).sum()
if (~np.isnan(np.array(Pa))).sum() >= nsample:
break
#print np.mean(Pa), np.std(Pa)
U = np.linspace(0,1,nsample+1)
plt.plot(U, sm.distributions.ECDF(Pa)(U))
plt.plot([0,1], [0,1])
plt.savefig("goodness_of_fit_uniform", format="pdf")
#return Pa
def test_class_R(n=100, p=20):
y = np.random.standard_normal(n)
X = np.random.standard_normal((n,p))
lam_theor = choose_lambda(X, quantile=0.25)
L = sqrt_lasso(y,X,lam_theor)
L.fit(tol=1.e-7)
if L.active.shape[0] > 0:
np.testing.assert_array_less( \
np.dot(L.constraints.linear_part, L.y),
L.constraints.offset)
return L.active_constraints.linear_part, L.active_constraints.offset / L.sigma_E, L.R_E, L._XEinv[0]
else:
return None, None, None, None
def main_sigma(nsample=1000, sigma=3, s=10):
S = []
for _ in range(nsample):
try:
v = test_estimate_sigma(sigma=sigma, s=s)
if v[0] is not None:
S.append((v[0],v[1]))
except (IndexError, ValueError):
print 'exception raised'
print np.mean(S, 0), np.std(S, 0)
def main(nsample=1000):
while True:
A, b, R, eta = test_class_R(n=10,p=6)
if A is not None:
break
def sample(A, b, R, eta):
n = A.shape[1]
df = np.diag(R).sum()
counter = 0
while True:
counter += 1
Z = np.random.standard_normal(n) * 1.5
sigma_hat = np.linalg.norm(np.dot(R, Z)) / np.sqrt(df)
if np.all(np.dot(A, Z) <= b * sigma_hat):
return Z
if counter >= 1000:
break
return None
P = []
IS = []
for i in range(nsample):
Z = sample(A, b, R, eta)
if Z is not None:
print 'new sample'
intervals, obs = constraints_unknown_sigma(A, b, Z, eta, R,
value_under_null=0.,
DEBUG=False)
df = np.diag(R).sum()
truncT = truncated_T(np.array([(interval.lower_value,
interval.upper_value) for interval in intervals]), df)
sigma_hat = np.linalg.norm(np.dot(R, Z)) / np.sqrt(df)
#print truncT.intervals, ((eta*Z).sum() / np.linalg.norm(eta)) / sigma_hat, obs, 'observed', intervals
sf = truncT.sf(obs)
pval = 2 * min(sf, 1.-sf)
P.append(float(pval))
IS.append(truncT.intervals)
return P#, IS
def test_gaussian_approx(n=100,p=200,s=10):
"""
using gaussian approximation for pvalues
"""
sigma = 3
y = np.random.standard_normal(n) * sigma
beta = np.zeros(p)
#beta[:s] = 8 * (2 * np.random.binomial(1, 0.5, size=(s,)) - 1)
beta[:s] = 18
X = np.random.standard_normal((n,p)) + 0.3 * np.random.standard_normal(n)[:,None]
X /= (X.std(0)[None,:] * np.sqrt(n))
y += np.dot(X, beta)
lam_theor = choose_lambda(X, quantile=0.75)
L = sqrt_lasso(y, X, lam_theor)
L.fit(tol=1.e-10, min_its=80)
P = []
P_gaussian = []
intervals = []
if L.active.shape[0] > 0:
np.testing.assert_array_less( \
np.dot(L.constraints.linear_part, L.y),
L.constraints.offset)
if set(range(s)).issubset(L.active):
P = [p[1] for p in L.active_pvalues[s:]]
P_gaussian = [p[1] for p in L.active_gaussian_pval[s:]]
intervals = [u for u in L.active_gaussian_intervals if u[0] in range(s)]
return P, P_gaussian, intervals, beta
def test_pval_intervals(nsample=100):
pvalues = []
gaussian_pvalues = []
coverage = 0
count = 0
for _ in range(nsample):
P, P_gaussian, intervals, beta = test_gaussian_approx()
if P != []:
pvalues.extend(P)
gaussian_pvalues.extend(P_gaussian)
for i, C in intervals:
count += 1
if beta[i] <= C[1] and beta[i] >= C[0]:
coverage += 1
return pvalues, gaussian_pvalues, coverage/count
def test_data_carving(n=100,
p=200,
s=7,
rho=0.3,
snr=7.,
split_frac=0.8,
lam_frac=1.,
ndraw=8000,
burnin=2000,
df=np.inf,
coverage=0.90,
sigma=3,
fit_args={'min_its':120, 'tol':1.e-12}):
counter = 0
while True:
counter += 1
X, y, beta, active, sigma = instance(n=n,
p=p,
s=s,
sigma=sigma,
rho=rho,
snr=snr,
df=df)
mu = np.dot(X, beta)
L, stage_one = split_model(y,
X,
lam_frac=lam_frac,
split_frac=split_frac,
fit_args=fit_args)[:2]
print L.active
if set(range(s)).issubset(L.active):
results, L = data_carving(y, X, lam_frac=lam_frac,
stage_one=stage_one,
splitting=True,
ndraw=ndraw,
burnin=burnin,
coverage=coverage,
fit_args=fit_args)
carve = [r[1] for r in results]
split = [r[3] for r in results]
Xa = X[:,L.active]
truth = np.dot(np.linalg.pinv(Xa), mu)
split_coverage = []
carve_coverage = []
for result, t in zip(results, truth):
_, _, ci, _, si = result
carve_coverage.append((ci[0] < t) * (t < ci[1]))
split_coverage.append((si[0] < t) * (t < si[1]))
return carve[s:], split[s:], carve[:s], split[:s], counter, carve_coverage, split_coverage
| 33.888889
| 114
| 0.500656
| 0
| 0
| 0
| 0
| 1,103
| 0.120546
| 0
| 0
| 378
| 0.041311
|
c8100632cb345df1cb4918dfaf696ed8e91b2f92
| 8,607
|
py
|
Python
|
training/anticausal_classifier_train.py
|
SANCHES-Pedro/Diff-SCM
|
a7e7e6ed3a2cd1c21e3bf7a3ed8ed8b29a22cb69
|
[
"Apache-2.0"
] | 6
|
2022-02-22T05:07:05.000Z
|
2022-03-29T09:48:03.000Z
|
training/anticausal_classifier_train.py
|
SANCHES-Pedro/Diff-SCM
|
a7e7e6ed3a2cd1c21e3bf7a3ed8ed8b29a22cb69
|
[
"Apache-2.0"
] | null | null | null |
training/anticausal_classifier_train.py
|
SANCHES-Pedro/Diff-SCM
|
a7e7e6ed3a2cd1c21e3bf7a3ed8ed8b29a22cb69
|
[
"Apache-2.0"
] | 2
|
2022-02-20T08:45:54.000Z
|
2022-03-09T09:51:13.000Z
|
"""
Train a noised image classifier on ImageNet.
"""
import os
import blobfile as bf
import torch as th
import torch.distributed as dist
import torch.nn.functional as F
from torch.nn.parallel.distributed import DistributedDataParallel as DDP
from torch.optim import AdamW
import torch
from pathlib import Path
import sys
sys.path.append(str(Path.cwd()))
from configs import default_mnist_configs
from utils import logger, dist_util
from utils.script_util import create_anti_causal_predictor, create_gaussian_diffusion
from utils.fp16_util import MixedPrecisionTrainer
from models.resample import create_named_schedule_sampler
from training.train_util import parse_resume_step_from_filename, log_loss_dict
from datasets import loader
def main():
config = default_mnist_configs.get_default_configs()
dist_util.setup_dist()
logger.configure(Path(config.experiment_name) / ("classifier_train_" + "_".join(config.classifier.label)),
format_strs=["log", "stdout", "csv", "tensorboard"])
logger.log("creating model and diffusion...")
diffusion = create_gaussian_diffusion(config)
model = create_anti_causal_predictor(config)
model.to(dist_util.dev())
if config.classifier.training.noised:
schedule_sampler = create_named_schedule_sampler(
config.classifier.training.schedule_sampler, diffusion
)
logger.log("creating data loader...")
data = loader.get_data_loader(config.data.path, config.classifier.training.batch_size, split_set='train',
which_label=config.classifier.label)
val_data = loader.get_data_loader(config.data.path, config.classifier.training.batch_size, split_set='val',
which_label=config.classifier.label)
logger.log("training...")
resume_step = 0
if config.classifier.training.resume_checkpoint:
resume_step = parse_resume_step_from_filename(config.classifier.training.resume_checkpoint)
if dist.get_rank() == 0:
logger.log(
f"loading model from checkpoint: {config.classifier.training.resume_checkpoint}... at {resume_step} step"
)
model.load_state_dict(
dist_util.load_state_dict(
config.classifier.training.resume_checkpoint, map_location=dist_util.dev()
)
)
# Needed for creating correct EMAs and fp16 parameters.
dist_util.sync_params(model.parameters())
mp_trainer = MixedPrecisionTrainer(
model=model, use_fp16=config.classifier.training.classifier_use_fp16, initial_lg_loss_scale=16.0
)
model = DDP(
model,
device_ids=[dist_util.dev()],
output_device=dist_util.dev(),
broadcast_buffers=False,
bucket_cap_mb=128,
find_unused_parameters=False,
)
logger.log(f"creating optimizer...")
opt = AdamW(mp_trainer.master_params, lr=config.classifier.training.lr,
weight_decay=config.classifier.training.weight_decay)
if config.classifier.training.resume_checkpoint:
opt_checkpoint = bf.join(
bf.dirname(config.classifier.training.resume_checkpoint), f"opt{resume_step:06}.pt"
)
logger.log(f"loading optimizer state from checkpoint: {opt_checkpoint}")
opt.load_state_dict(
dist_util.load_state_dict(opt_checkpoint, map_location=dist_util.dev())
)
logger.log("training classifier model...")
def forward_backward_log(data_loader, prefix="train"):
data_dict = next(data_loader)
labels = {}
for label_name in config.classifier.label:
assert label_name in list(data_dict.keys()), f'label {label_name} are not in data_dict{data_dict.keys()}'
labels[label_name] = data_dict[label_name].to(dist_util.dev())
batch = data_dict["image"].to(dist_util.dev())
# Noisy images
if config.classifier.training.noised:
t, _ = schedule_sampler.sample(batch.shape[0], dist_util.dev())
batch = diffusion.q_sample(batch, t)
else:
t = th.zeros(batch.shape[0], dtype=th.long, device=dist_util.dev())
loss_dict = get_predictor_loss(model, labels, batch, t)
loss = torch.stack(list(loss_dict.values())).sum()
losses = {f"{prefix}_{loss_name}": loss_value.detach() for loss_name, loss_value in loss_dict.items()}
log_loss_dict(diffusion, t, losses)
del losses
loss = loss.mean()
if loss.requires_grad:
mp_trainer.zero_grad()
mp_trainer.backward(loss)
for step in range(config.classifier.training.iterations - resume_step):
logger.logkv("step", step + resume_step)
logger.logkv(
"samples",
(step + resume_step + 1) * config.classifier.training.batch_size * dist.get_world_size(),
)
if config.classifier.training.anneal_lr:
set_annealed_lr(opt, config.classifier.training.lr,
(step + resume_step) / config.classifier.training.iterations)
forward_backward_log(data)
mp_trainer.optimize(opt)
if val_data is not None and not step % config.classifier.training.eval_interval:
with th.no_grad():
with model.no_sync():
model.eval()
forward_backward_log(val_data, prefix="val")
model.train()
if not step % config.classifier.training.log_interval:
logger.dumpkvs()
if (
step
and dist.get_rank() == 0
and not (step + resume_step) % config.classifier.training.save_interval
):
logger.log("saving model...")
save_model(mp_trainer, opt, step + resume_step)
if dist.get_rank() == 0:
logger.log("saving model...")
save_model(mp_trainer, opt, step + resume_step)
dist.barrier()
def get_predictor_loss(model, labels, batch, t):
output = model(batch, timesteps=t)
loss_dict = {}
loss_dict["loss"] = F.cross_entropy(output, list(labels.values())[0], reduction="mean")
return loss_dict
def set_annealed_lr(opt, base_lr, frac_done):
lr = base_lr * (1 - frac_done)
for param_group in opt.param_groups:
param_group["lr"] = lr
def save_model(mp_trainer, opt, step):
if dist.get_rank() == 0:
th.save(
mp_trainer.master_params_to_state_dict(mp_trainer.master_params),
os.path.join(logger.get_dir(), f"model{step:06d}.pt"),
)
th.save(opt.state_dict(), os.path.join(logger.get_dir(), f"opt{step:06d}.pt"))
def compute_top_k(logits, labels, k, reduction="mean"):
_, top_ks = th.topk(logits, k, dim=-1)
if reduction == "mean":
return (top_ks == labels[:, None]).float().sum(dim=-1).mean().item()
elif reduction == "none":
return (top_ks == labels[:, None]).float().sum(dim=-1)
def split_microbatches(microbatch, *args):
bs = len(args[0])
if microbatch == -1 or microbatch >= bs:
yield tuple(args)
else:
for i in range(0, bs, microbatch):
yield tuple(x[i: i + microbatch] if x is not None else None for x in args)
"""
for i, (sub_batch, sub_labels, sub_t) in enumerate(
split_microbatches(config.classifier.training.microbatch, batch, labels, t)
):
if not config.classifier.noise_conditioning:
sub_t = None
if prefix == "train" and config.classifier.training.adversarial_training:
sub_batch_perturbed = adversarial_attacker.perturb(model, sub_batch, sub_labels, sub_t)
logits_perturbed = model(sub_batch_perturbed, timesteps=sub_t)
loss += F.cross_entropy(logits_perturbed, sub_labels, reduction="none")
loss /= 2
adversarial_sub_labels = get_random_vector_excluding(sub_labels)
adversarial_sub_batch = fgsm_attack(sub_batch, sub_batch.grad.data)
adversarial_logits = model(adversarial_sub_batch, timesteps=sub_t)
"""
# FGSM attack code
def fgsm_attack(original_batch, data_grad, epsilon: float = 0.15):
epsilon = th.tensor(epsilon).to(data_grad.device)
# Collect the element-wise sign of the data gradient
sign_data_grad = data_grad.sign()
# Create the perturbed image by adjusting each pixel of the input image
perturbed_batch = original_batch + epsilon * sign_data_grad
# Adding clipping to maintain [-1,1] range
perturbed_batch = th.clamp(perturbed_batch, -1, 1)
# Return the perturbed image
return perturbed_batch
if __name__ == "__main__":
main()
| 38.084071
| 121
| 0.668526
| 0
| 0
| 275
| 0.031951
| 0
| 0
| 0
| 0
| 1,700
| 0.197514
|
c81323b7eda0896694f1dbe20031469d75f77fed
| 3,015
|
py
|
Python
|
pythonclient/karmen/karmen.py
|
jrcichra/karmen
|
4d25d635509ebffa295b085ae7fa3932e3a36344
|
[
"MIT"
] | 3
|
2020-03-02T13:09:07.000Z
|
2021-12-27T16:27:23.000Z
|
pythonclient/karmen/karmen.py
|
jrcichra/karmen
|
4d25d635509ebffa295b085ae7fa3932e3a36344
|
[
"MIT"
] | 5
|
2020-03-02T04:53:54.000Z
|
2021-12-17T23:57:12.000Z
|
pythonclient/karmen/karmen.py
|
jrcichra/karmen
|
4d25d635509ebffa295b085ae7fa3932e3a36344
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python3 -u
import threading
import time
import queue
import socket
import grpc
import karmen.karmen_pb2 as pb
import karmen.karmen_pb2_grpc as pb_grpc
class Karmen:
def __init__(self, name=socket.gethostname(), hostname="localhost", port=8080):
super().__init__()
self.name = name
self.channel = grpc.insecure_channel(f"{hostname}:{port}")
self.stub = pb_grpc.KarmenStub(self.channel)
self.actions = {}
def Pass(self) -> int:
return 200
def ping(self) -> str:
result = self.stub.PingPong(pb.Ping(message="Python!"))
return result.message
def runEvent(self, name, parameters=None, q=None):
event = pb.Event(eventName=name, timestamp=int(time.time()))
result = self.stub.EmitEvent(pb.EventRequest(
requesterName=self.name, event=event, parameters=parameters))
# if called from async, put the result in the queue
if q is not None:
q.put(result)
return result
def runEventAsync(self, name, parameters=None):
q = queue.Queue()
threading.Thread(target=self.runEvent, args=(
name, parameters, q)).start()
return q
def addAction(self, func, name):
self.actions[name] = func
def setupActions(self):
send_queue = queue.SimpleQueue()
# set up the two way connection
recv = self.stub.ActionDispatcher(
iter(send_queue.get, None))
# send who we are
send_queue.put(pb.ActionResponse(hostname=self.name))
threading.Thread(target=self.handleActions,
args=(recv, send_queue)).start()
def handleActions(self, recv, send_queue):
while True:
# blocking for actions
msg = next(recv)
# got an action
# print(f"Got an action!")
# print(msg)
# run the action
threading.Thread(target=self.handleAction,
args=(msg, send_queue)).start()
def handleAction(self, msg, send_queue):
# run the action
print(f"Running action: {msg.action.actionName}")
result = pb.ActionResponse()
self.actions[msg.action.actionName](
msg.action.parameters, result.result)
print(f"Finished running action: {msg.action.actionName}")
send_queue.put(result)
def register(self) -> int:
result = self.stub.Register(pb.RegisterRequest(
name=self.name, timestamp=int(time.time())))
self.setupActions()
return result.result.code
if __name__ == "__main__":
def sleep(parameters, result):
print(f"Sleeping for {parameters['seconds']} seconds")
time.sleep(int(parameters['seconds']))
print(f"Done sleeping for {parameters['seconds']} seconds")
result.code = 200
k = Karmen(name="bob")
print(k.ping())
k.addAction(sleep, "sleep")
k.register()
print(k.runEvent("pleaseSleep"))
| 30.15
| 83
| 0.60995
| 2,445
| 0.810945
| 0
| 0
| 0
| 0
| 0
| 0
| 503
| 0.166833
|
c81398777499e20a3165a99b2f64b68aeafcfd64
| 54
|
py
|
Python
|
emma.py
|
patrickdijusto/python.hub
|
776a6a843dbd8895c414dcb8e7730c8cb2f3894d
|
[
"MIT"
] | null | null | null |
emma.py
|
patrickdijusto/python.hub
|
776a6a843dbd8895c414dcb8e7730c8cb2f3894d
|
[
"MIT"
] | null | null | null |
emma.py
|
patrickdijusto/python.hub
|
776a6a843dbd8895c414dcb8e7730c8cb2f3894d
|
[
"MIT"
] | null | null | null |
def fun(name, age=20):
print(name, age)
fun('Emma')
| 10.8
| 22
| 0.62963
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 6
| 0.111111
|
c813a1eed5677e2bde6506474cc6f8326d3c6475
| 6,680
|
py
|
Python
|
proxy-server/proxy_server.py
|
MS17-010/python-misc
|
15fbf3215359c97b75d4809756644626e6b577ed
|
[
"MIT"
] | null | null | null |
proxy-server/proxy_server.py
|
MS17-010/python-misc
|
15fbf3215359c97b75d4809756644626e6b577ed
|
[
"MIT"
] | null | null | null |
proxy-server/proxy_server.py
|
MS17-010/python-misc
|
15fbf3215359c97b75d4809756644626e6b577ed
|
[
"MIT"
] | null | null | null |
import socket
import threading
import signal
import sys
import fnmatch
import utils
from time import gmtime, strftime, localtime
import logging
config = {
"HOST_NAME" : "192.168.0.136",
"BIND_PORT" : 12345,
"MAX_REQUEST_LEN" : 1024,
"CONNECTION_TIMEOUT" : 5,
"BLACKLIST_DOMAINS" : [ "blocked.com" ],
"HOST_ALLOWED" : [ "*" ],
"COLORED_LOGGING" : "true"
}
logging.basicConfig(level=logging.DEBUG,
format='[%(CurrentTime)-10s] (%(ThreadName)-10s) %(message)s',
)
class Server:
""" The server class """
def __init__(self, config):
signal.signal(signal.SIGINT, self.shutdown) # Shutdown on Ctrl+C
self.serverSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Create a TCP socket
self.serverSocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # Re-use the socket
self.serverSocket.bind((config['HOST_NAME'], config['BIND_PORT'])) # bind the socket to a public host, and a port
self.serverSocket.listen(10) # become a server socket
self.__clients = {}
def listenForClient(self):
""" Wait for clients to connect """
while True:
(clientSocket, client_address) = self.serverSocket.accept() # Establish the connection
d = threading.Thread(name=self._getClientName(client_address), target=self.proxy_thread, args=(clientSocket, client_address))
d.setDaemon(True)
d.start()
# The following two statements seems won't be
self.log("NORMAL", -1, "Just testing before shutdown statement
self.shutdown(0,0)
def _ishostAllowed(self, host):
""" Check if host is allowed to access the content """
for wildcard in config['HOST_ALLOWED']:
if fnmatch.fnmatch(host, wildcard):
return True
return False
def proxy_thread(self, conn, client_addr):
"""
*******************************************
*********** PROXY_THREAD FUNC *************
A thread to handle request from browser
*******************************************
"""
request = conn.recv(config['MAX_REQUEST_LEN']) # get the request from browser
first_line = request.split('\n')[0] # parse the first line
url = first_line.split(' ')[1] # get url
# Check if the host:port is blacklisted
for i in range(0,len(config['BLACKLIST_DOMAINS'])):
if config['BLACKLIST_DOMAINS'][i] in url:
self.log("FAIL", client_addr, "BLACKLISTED: " + first_line)
conn.close()
# TODO: Create response for 403 Forbidden
return
# Check if client is allowed or not
if not self._ishostAllowed(client_addr[0]):
# TODO: Create response for 403 Forbidden
return
self.log("WARNING", client_addr, "REQUEST: " + first_line)
# find the webserver and port
http_pos = url.find("://") # find pos of ://
if (http_pos==-1):
temp = url
else:
temp = url[(http_pos+3):] # get the rest of url
port_pos = temp.find(":") # find the port pos (if any)
# find end of web server
webserver_pos = temp.find("/")
if webserver_pos == -1:
webserver_pos = len(temp)
webserver = ""
port = -1
if (port_pos==-1 or webserver_pos < port_pos): # default port
port = 80
webserver = temp[:webserver_pos]
else: # specific port
port = int((temp[(port_pos+1):])[:webserver_pos-port_pos-1])
webserver = temp[:port_pos]
try:
# create a socket to connect to the web server
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(config['CONNECTION_TIMEOUT'])
s.connect((webserver, port))
s.sendall(request) # send request to webserver
while 1:
data = s.recv(config['MAX_REQUEST_LEN']) # receive data from web server
if (len(data) > 0):
conn.send(data) # send to browser
else:
break
s.close()
conn.close()
except socket.error as error_msg:
self.log("ERROR", client_addr, error_msg)
if s:
s.close()
if conn:
conn.close()
self.log("WARNING", client_addr, "Peer Reset: " + first_line)
def _getClientName(self, cli_addr):
""" Return the clientName.
"""
return "Client"
def shutdown(self, signum, frame):
""" Handle the exiting server. Clean all traces """
self.log("WARNING", -1, 'Shutting down gracefully...')
#Exit all the running threads before exiting the application.
#threading.enumerate() iterates over all the running threads,
#so we do not need to maintain a list of them.
#The behavior of threading module is unexpected when we try to end the main_thread.
# The official documentation also states this:
# join() raises a RuntimeError if an attempt is
# made to join the current thread as that would cause a deadlock.
# It is also an error to join() a thread before it has been started
# and attempts to do so raises the same exception.
main_thread = threading.currentThread() # Wait for all clients to exit
for t in threading.enumerate():
if t is main_thread:
continue
self.log("FAIL", -1, 'joining ' + t.getName())
t.join()
self.serverSocket.close()
sys.exit(0)
def log(self, log_level, client, msg):
""" Log the messages to appropriate place """
LoggerDict = {
'CurrentTime' : strftime("%a, %d %b %Y %X", localtime()),
'ThreadName' : threading.currentThread().getName()
}
if client == -1: # Main Thread
formatedMSG = msg
else: # Child threads or Request Threads
formatedMSG = '{0}:{1} {2}'.format(client[0], client[1], msg)
logging.debug('%s', utils.colorizeLog(config['COLORED_LOGGING'], log_level, formatedMSG), extra=LoggerDict)
if __name__ == "__main__":
server = Server(config)
server.listenForClient()
| 37.954545
| 137
| 0.550898
| 1,365
| 0.204341
| 0
| 0
| 0
| 0
| 0
| 0
| 2,332
| 0.349102
|
c8146b0afe8645af236462b961f5cb0186da93f4
| 9,336
|
py
|
Python
|
basestation/xbox.py
|
ksurct-officers/Mercury2018-19
|
ee90803c1b14727663c65ebc396cdb92c2b79667
|
[
"Apache-2.0"
] | null | null | null |
basestation/xbox.py
|
ksurct-officers/Mercury2018-19
|
ee90803c1b14727663c65ebc396cdb92c2b79667
|
[
"Apache-2.0"
] | null | null | null |
basestation/xbox.py
|
ksurct-officers/Mercury2018-19
|
ee90803c1b14727663c65ebc396cdb92c2b79667
|
[
"Apache-2.0"
] | null | null | null |
''' xbox.py
Responsible for getting information directly from controller
Courtesy Aaron Schif, former member
Don't touch this file, it's perfect.
'''
from math import isclose
from collections import namedtuple
import sdl2
from sdl2 import ext
ButtonEvent = namedtuple('ButtonEvent', ['time', 'state'])
AxisEvent = namedtuple('AxisEvent', ['time', 'state'])
HatEvent = namedtuple('HatEvent', ['time', 'state'])
DeviceEvent = namedtuple('DeviceEvent', ['number'])
class AbstractState(object):
def __init__(self):
pass
def __str__(self):
value = '{}'.format(self.value())
self.clear()
return value
def __repr__(self):
return str(self)
def __call__(self):
value = self.value()
self.clear()
return value
def zero(self, value):
pass
def process_event(self, event):
raise NotImplementedError()
def value(self):
raise NotImplementedError()
def clear(self):
pass
class CurrentButtonState(AbstractState):
def __init__(self):
self._value = False
def process_event(self, event):
self._value = event.state
def value(self):
return self._value
class ToggleButtonState(AbstractState):
def __init__(self):
self._value = False
def process_event(self, event):
self._value ^= event.state
def value(self):
return self._value
def clear(self):
self._value = False
class ClickedButtonState(AbstractState):
def __init__(self):
self._value = False
def process_event(self, event):
self._value |= event.state
def value(self):
return self._value
def clear(self):
self._value = False
class DecimalAxisState(AbstractState):
VAR_MAX = 32767
VAR_MIN = -32768
def __init__(self):
self.zero_value = 0
self.__value = 0
def process_event(self, event: AxisEvent):
self.__value = event.state
def value(self):
normal = self.__value - self.zero_value
if self.__value > 0:
normal = normal / (self.VAR_MAX - self.zero_value)
else:
normal = -normal / (self.VAR_MIN - self.zero_value)
if isclose(normal, 0, abs_tol=0.04):
return 0
return normal
def zero(self, current):
self.zero_value = current
class DecimalTriggerState(AbstractState):
VAR_MAX = 32767
VAR_MIN = -32768
def __init__(self):
self.zero_value = 0
self.__value = 0
def process_event(self, event: AxisEvent):
self.__value = event.state
def value(self):
return (self.__value - self.VAR_MIN) / (self.VAR_MAX - self.VAR_MIN)
class PulledTriggerState(DecimalTriggerState):
def __init__(self):
super().__init__()
self._value = False
def process_event(self, event):
super().process_event(event)
self._value |= super().value() > .9
def value(self):
return self._value
def clear(self):
self._value = False
class HatState(AbstractState):
def __init__(self):
self.__value = 0
def process_event(self, event: HatEvent):
self.__value = event.state
def value(self):
value = self.__value
if value & 1:
result = 'u'
elif value & 4:
result = 'd'
else:
result = ' '
if value & 2:
result += 'r'
elif value & 8:
result += 'l'
else:
result += ' '
return result
class HatSwitchesState(HatState):
def __init__(self):
super().__init__()
self.__value = set()
def process_event(self, event):
super().process_event(event)
self.__value.add(super().value().strip())
def value(self):
return tuple(self.__value)
def clear(self):
self.__value.clear()
class Controller(object):
'''
- Does not handle many controllers
'''
def __init__(self, number: int):
self.number = number
self.device = sdl2.joystick.SDL_JoystickOpen(number)
assert sdl2.haptic.SDL_JoystickIsHaptic(self.device)
self.haptic = sdl2.haptic.SDL_HapticOpenFromJoystick(self.device)
sdl2.haptic.SDL_HapticRumbleInit(self.haptic)
self.a = CurrentButtonState()
self.b = CurrentButtonState()
self.x = CurrentButtonState()
self.y = CurrentButtonState()
self.left_bumper = CurrentButtonState()
self.right_bumper = CurrentButtonState()
self.start_button = CurrentButtonState()
self.select_button = CurrentButtonState()
self.center_button = CurrentButtonState()
self.left_stick_button = CurrentButtonState()
self.right_stick_button = CurrentButtonState()
self.left_x = DecimalAxisState()
self.left_y = DecimalAxisState()
self.left_trigger = CurrentButtonState() # Changed from PullTrigger
self.right_x = DecimalAxisState()
self.right_y = DecimalAxisState()
self.right_trigger = CurrentButtonState() # Changed from PullTrigger
self.hat = HatState()
self.zero()
@classmethod
def init(cls):
sdl2.SDL_Init(sdl2.SDL_INIT_JOYSTICK | sdl2.SDL_INIT_HAPTIC)
def zero(self):
for i, axis in enumerate(self._axises()):
axis.zero(sdl2.joystick.SDL_JoystickGetAxis(self.device, i))
def _axises(self):
axis_array = (
self.left_x, self.left_y, self.left_trigger,
self.right_x, self.right_y, self.right_trigger)
return axis_array
def get_name(self):
return sdl2.joystick.SDL_JoystickName(self.device)
def update(self):
sdl2.SDL_JoystickUpdate()
button_array = (
self.a, self.b, self.x, self.y,
self.left_bumper, self.right_bumper,
self.start_button, self.select_button, self.center_button,
self.left_stick_button, self.right_stick_button)
axis_array = self._axises()
for event in sdl2.ext.get_events():
if event.type == sdl2.SDL_JOYBUTTONUP:
button_array[event.jbutton.button].process_event(
ButtonEvent(event.jbutton.timestamp, False))
elif event.type == sdl2.SDL_JOYBUTTONDOWN:
button_array[event.jbutton.button].process_event(
ButtonEvent(event.jbutton.timestamp, True))
elif event.type == sdl2.SDL_JOYAXISMOTION:
axis_array[event.jaxis.axis].process_event(
AxisEvent(event.jaxis.timestamp, event.jaxis.value))
elif event.type == sdl2.SDL_JOYHATMOTION:
self.hat.process_event(HatEvent(event.jhat.timestamp, event.jhat.value))
# elif event.type == sdl2.SDL_JOYDEVICEADDED:
# elif event.type == sdl2.SDL_JOYDEVICEREMOVED:
def Test():
import time
Controller.init()
controller = Controller(0)
while True:
# time.sleep(1)
controller.update()
robot = {}
# General buttons
robot['x'] = 1 if controller.x() else 0
robot['y'] = 1 if controller.y() else 0
robot['a'] = 1 if controller.a() else 0
robot['b'] = 1 if controller.b() else 0
# Triggers
robot['r_trigger'] = int(controller.right_trigger() >> 3)
robot['l_trigger'] = int(controller.left_trigger() >> 3)
# Analog sticks
r_stick_x = round(controller.right_x(), 1)
r_stick_y = round(controller.right_y(), 1)
l_stick_x = round(controller.left_x(), 1)
l_stick_y = round(controller.left_y(), 1)
robot['r_stick'] = (int(10*r_stick_x) if abs(r_stick_x) > 0.1 else 0,
int(-10*r_stick_y) if abs(r_stick_y) > 0.1 else 0 )
robot['l_stick'] = (int(10*l_stick_x) if abs(l_stick_x) > 0.1 else 0,
int(-10*l_stick_y) if abs(l_stick_y) > 0.1 else 0 )
# Bumpers
robot['r_bump'] = 1 if controller.right_bumper() else 0
robot['l_bump'] = 1 if controller.left_bumper() else 0
# D-pad
robot['left'] = 1 if str(controller.hat).strip() == 'l' else 0
robot['right'] = 1 if str(controller.hat).strip() == 'r' else 0
robot['up'] = 1 if str(controller.hat).strip() == 'u' else 0
robot['down'] = 1 if str(controller.hat).strip() == 'd' else 0
# # Left bumper combinations
# robot['lbx'] = 1 if controller.left_bumper() and controller.x() else 0
# robot['lby'] = 1 if controller.left_bumper() and controller.y() else 0
# robot['lbb'] = 1 if controller.left_bumper() and controller.b() else 0
# robot['lba'] = 1 if controller.left_bumper() and controller.a() else 0
# # Right bumper combinations
# robot['rbx'] = 1 if controller.right_bumper() and controller.x() else 0
# robot['rby'] = 1 if controller.right_bumper() and controller.y() else 0
# robot['rbb'] = 1 if controller.right_bumper() and controller.b() else 0
# robot['rba'] = 1 if controller.right_bumper() and controller.a() else 0
if(robot):
print(robot)
if __name__ == "__main__":
Test()
| 28.638037
| 88
| 0.60347
| 6,443
| 0.690124
| 0
| 0
| 100
| 0.010711
| 0
| 0
| 1,295
| 0.13871
|
c817b460ee65b13241ef6e94463df88bf762261b
| 765
|
py
|
Python
|
legacy/legacy/recommenders/visual_gmf.py
|
csmithchicago/openrec
|
5a9cf03abe0db0636107985f9f19d6351e4afe68
|
[
"MIT"
] | null | null | null |
legacy/legacy/recommenders/visual_gmf.py
|
csmithchicago/openrec
|
5a9cf03abe0db0636107985f9f19d6351e4afe68
|
[
"MIT"
] | 6
|
2020-01-28T22:51:16.000Z
|
2022-02-10T00:11:19.000Z
|
legacy/legacy/recommenders/visual_gmf.py
|
csmithchicago/openrec
|
5a9cf03abe0db0636107985f9f19d6351e4afe68
|
[
"MIT"
] | null | null | null |
from openrec.legacy.recommenders import VisualPMF
from openrec.legacy.modules.interactions import PointwiseGeCE
class VisualGMF(VisualPMF):
def _build_default_interactions(self, train=True):
self._add_module(
"interaction",
PointwiseGeCE(
user=self._get_module("user_vec", train=train).get_outputs()[0],
item=self._get_module("item_vec", train=train).get_outputs()[0],
item_bias=self._get_module("item_bias", train=train).get_outputs()[0],
labels=self._get_input("labels"),
l2_reg=self._l2_reg,
train=train,
scope="PointwiseGeCE",
reuse=not train,
),
train=train,
)
| 34.772727
| 86
| 0.589542
| 650
| 0.849673
| 0
| 0
| 0
| 0
| 0
| 0
| 67
| 0.087582
|
c818c2c94bfac62e873d6b6ae455389a5b8e8196
| 732
|
py
|
Python
|
tests/test_tag.py
|
danielwe/explore-courses-api
|
e08d219b154e7fdb16690e4cd02aa239366f6747
|
[
"MIT"
] | 7
|
2019-06-17T07:45:54.000Z
|
2022-01-31T01:09:22.000Z
|
tests/test_tag.py
|
illiteratecoder/Explore-Courses-API
|
b2dc41092882e4b2b7945609e4e85b8ac1702bc7
|
[
"MIT"
] | null | null | null |
tests/test_tag.py
|
illiteratecoder/Explore-Courses-API
|
b2dc41092882e4b2b7945609e4e85b8ac1702bc7
|
[
"MIT"
] | 1
|
2021-11-14T22:23:59.000Z
|
2021-11-14T22:23:59.000Z
|
from xml.etree import ElementTree as ET
from explorecourses import *
class TestTag(object):
@classmethod
def setup_class(cls):
text_tag = (
'<tag>'
'<organization>EARTHSYS</organization>'
'<name>energy_foundation</name>'
'</tag>'
)
cls.xml_tag = ET.fromstring(text_tag)
def test_create_tag(self):
tag = Tag(self.xml_tag)
assert tag != None
def test_tag_attributes(self):
tag = Tag(self.xml_tag)
assert tag.organization == "EARTHSYS"
assert tag.name == "energy_foundation"
def test_tag_string(self):
tag = Tag(self.xml_tag)
assert str(tag) == "EARTHSYS::energy_foundation"
| 20.914286
| 56
| 0.592896
| 660
| 0.901639
| 0
| 0
| 254
| 0.346995
| 0
| 0
| 144
| 0.196721
|
c818d2ec8f5ff64e655e15444fca7720cb2c47a4
| 385
|
py
|
Python
|
server/server.py
|
BShadid/TFKAKsubmission
|
b324ea477f5658c4b0b46fd05cde60c4c8a43b93
|
[
"MIT"
] | null | null | null |
server/server.py
|
BShadid/TFKAKsubmission
|
b324ea477f5658c4b0b46fd05cde60c4c8a43b93
|
[
"MIT"
] | null | null | null |
server/server.py
|
BShadid/TFKAKsubmission
|
b324ea477f5658c4b0b46fd05cde60c4c8a43b93
|
[
"MIT"
] | null | null | null |
from flask import Flask
import easyWik
app = Flask(__name__)
@app.route('/')
def usage():
return "you shouldn't be here."
@app.route('/<title>')
def simplify(title):
# do some magic
return easyWik.run_main(title)
# return title
if __name__ == "__main__":
context = ('yourserver.crt','yourserver.key')
app.run(host='0.0.0.0',port='5000',ssl_context=context)
| 20.263158
| 59
| 0.664935
| 0
| 0
| 0
| 0
| 181
| 0.47013
| 0
| 0
| 123
| 0.319481
|
c81a08103667814c6eb2d1d517a2b39db440ed7f
| 458
|
py
|
Python
|
SScriptCompiler/examples/thresholdcounter/states/init_s.py
|
alklasil/SScript
|
de4481bf96e79b9ee157e266ea9fe8b1bfb3701e
|
[
"MIT"
] | null | null | null |
SScriptCompiler/examples/thresholdcounter/states/init_s.py
|
alklasil/SScript
|
de4481bf96e79b9ee157e266ea9fe8b1bfb3701e
|
[
"MIT"
] | 8
|
2018-03-10T19:20:43.000Z
|
2018-04-30T18:11:17.000Z
|
SScriptCompiler/examples/thresholdcounter/states/init_s.py
|
alklasil/SScript
|
de4481bf96e79b9ee157e266ea9fe8b1bfb3701e
|
[
"MIT"
] | null | null | null |
def init_s(data):
return ("init", [
[
# set configuration time
"$getTime", "configuration_millis",
# set state initially below lower threshold
"$=(const)=", "state", "@<t",
"$printInt_ln", data['sensorIdentifier'],
# set requestStringGenerator
"$esp_setRequestStringGenerator", [
"@requestStringGeneratorState"
],
],
])
| 26.941176
| 55
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 251
| 0.548035
|
c8205acb89329008fc256d7baa124e1eca07ffcd
| 1,521
|
py
|
Python
|
slybot/slybot/linkextractor/xml.py
|
coolkunal64/ht
|
b7c52d5604dd75ea4086a6ff92eaa2db85bb145c
|
[
"BSD-3-Clause"
] | 1
|
2017-11-03T13:00:21.000Z
|
2017-11-03T13:00:21.000Z
|
slybot/slybot/linkextractor/xml.py
|
coolkunal64/ht
|
b7c52d5604dd75ea4086a6ff92eaa2db85bb145c
|
[
"BSD-3-Clause"
] | 2
|
2021-03-31T20:04:55.000Z
|
2021-12-13T20:47:09.000Z
|
slybot/slybot/linkextractor/xml.py
|
coolkunal64/ht
|
b7c52d5604dd75ea4086a6ff92eaa2db85bb145c
|
[
"BSD-3-Clause"
] | 2
|
2017-11-03T13:00:23.000Z
|
2020-08-28T19:59:40.000Z
|
"""
Link extraction for auto scraping
"""
from scrapy.link import Link
from scrapy.selector import Selector
from slybot.linkextractor.base import BaseLinkExtractor
class XmlLinkExtractor(BaseLinkExtractor):
"""Link extractor for XML sources"""
def __init__(self, xpath, **kwargs):
self.remove_namespaces = kwargs.pop('remove_namespaces', False)
super(XmlLinkExtractor, self).__init__(**kwargs)
self.xpath = xpath
def _extract_links(self, response):
type = 'html'
if response.body_as_unicode().strip().startswith('<?xml version='):
type = 'xml'
xxs = Selector(response, type=type)
if self.remove_namespaces:
xxs.remove_namespaces()
for url in xxs.xpath(self.xpath).extract():
yield Link(url.encode(response.encoding))
class RssLinkExtractor(XmlLinkExtractor):
"""Link extraction from RSS feeds"""
def __init__(self, **kwargs):
super(RssLinkExtractor, self).__init__("//item/link/text()", **kwargs)
class SitemapLinkExtractor(XmlLinkExtractor):
"""Link extraction for sitemap.xml feeds"""
def __init__(self, **kwargs):
kwargs['remove_namespaces'] = True
super(SitemapLinkExtractor, self).__init__("//urlset/url/loc/text() | //sitemapindex/sitemap/loc/text()", **kwargs)
class AtomLinkExtractor(XmlLinkExtractor):
def __init__(self, **kwargs):
kwargs['remove_namespaces'] = True
super(AtomLinkExtractor, self).__init__("//link/@href", **kwargs)
| 37.097561
| 123
| 0.680473
| 1,348
| 0.886259
| 379
| 0.249178
| 0
| 0
| 0
| 0
| 335
| 0.22025
|
c821e277e58638d63f9549aad5f4d477bf38817b
| 643
|
py
|
Python
|
advancing_hero/settings.py
|
hentt30/ces22-project
|
06f13ebdf06bbab182b83c882846701ab69e8631
|
[
"MIT"
] | 1
|
2021-04-12T01:27:34.000Z
|
2021-04-12T01:27:34.000Z
|
advancing_hero/settings.py
|
hentt30/ces22-project
|
06f13ebdf06bbab182b83c882846701ab69e8631
|
[
"MIT"
] | null | null | null |
advancing_hero/settings.py
|
hentt30/ces22-project
|
06f13ebdf06bbab182b83c882846701ab69e8631
|
[
"MIT"
] | 2
|
2021-04-01T00:13:51.000Z
|
2021-04-11T07:15:54.000Z
|
TITLE = 'Knight of Valhalla'
SCREEN_ROWS = 9
SCREEN_COLUMNS = 16
SIZE = screen_width, screen_height = 64 * 16, 64 * 9
FPS = 60
tile_size = 64
## Speeds
WORLD_SPEED = 1
DEFAULT_PLAYER_SPEED = 5
ASPHALT_SPEED = 1 * DEFAULT_PLAYER_SPEED
GRASS_SPEED = 1 * DEFAULT_PLAYER_SPEED
DIRT_SPEED = 0.6 * DEFAULT_PLAYER_SPEED
WATER_SPEED = 0.5 * DEFAULT_PLAYER_SPEED
## Block names
ASPHALT = 'black_rock'
BRICK = 'gray_rock'
GRASS = 'grass'
DIRT = 'sand'
WATER = 'water'
LAVA = 'lava'
level_1 = 'advancing_hero/world/world.json'
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
## DEBUG
DEBUG = False
| 18.911765
| 52
| 0.695179
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 133
| 0.206843
|
c821ed2774a2669777a45f15bf9913ade184edde
| 1,319
|
py
|
Python
|
questions/construct-the-rectangle/Solution.py
|
marcus-aurelianus/leetcode-solutions
|
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
|
[
"MIT"
] | 141
|
2017-12-12T21:45:53.000Z
|
2022-03-25T07:03:39.000Z
|
questions/construct-the-rectangle/Solution.py
|
marcus-aurelianus/leetcode-solutions
|
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
|
[
"MIT"
] | 32
|
2015-10-05T14:09:52.000Z
|
2021-05-30T10:28:41.000Z
|
questions/construct-the-rectangle/Solution.py
|
marcus-aurelianus/leetcode-solutions
|
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
|
[
"MIT"
] | 56
|
2015-09-30T05:23:28.000Z
|
2022-03-08T07:57:11.000Z
|
"""
A web developer needs to know how to design a web page's size. So, given a specific rectangular web page’s area, your job by now is to design a rectangular web page, whose length L and width W satisfy the following requirements:
The area of the rectangular web page you designed must equal to the given target area.
The width W should not be larger than the length L, which means L >= W.
The difference between length L and width W should be as small as possible.
Return an array [L, W] where L and W are the length and width of the web page you designed in sequence.
Example 1:
Input: area = 4
Output: [2,2]
Explanation: The target area is 4, and all the possible ways to construct it are [1,4], [2,2], [4,1].
But according to requirement 2, [1,4] is illegal; according to requirement 3, [4,1] is not optimal compared to [2,2]. So the length L is 2, and the width W is 2.
Example 2:
Input: area = 37
Output: [37,1]
Example 3:
Input: area = 122122
Output: [427,286]
Constraints:
1 <= area <= 107
"""
class Solution(object):
def constructRectangle(self, area):
"""
:type area: int
:rtype: List[int]
"""
w = int(area ** 0.5)
while w >= 1:
l, r = divmod(area, w)
if r == 0:
return [l, w]
w -= 1
| 27.479167
| 228
| 0.644428
| 295
| 0.22281
| 0
| 0
| 0
| 0
| 0
| 0
| 1,091
| 0.824018
|
c823fba7bcffc4b21c83b60516082a369618b755
| 891
|
py
|
Python
|
flask_pdv/ext/resources/transacao.py
|
evaristofm/api_transacao
|
3a8d1d1459f5f58c8df7473fe6f7ea1a438738d2
|
[
"MIT"
] | null | null | null |
flask_pdv/ext/resources/transacao.py
|
evaristofm/api_transacao
|
3a8d1d1459f5f58c8df7473fe6f7ea1a438738d2
|
[
"MIT"
] | null | null | null |
flask_pdv/ext/resources/transacao.py
|
evaristofm/api_transacao
|
3a8d1d1459f5f58c8df7473fe6f7ea1a438738d2
|
[
"MIT"
] | null | null | null |
from flask_restful import Resource, marshal
from flask_pdv.ext.api import requests
from flask_pdv.ext.db.models import TransacaoModel
from flask_pdv.ext.db.schemas import transacao_field
from flask_pdv.ext.db import db
class Transacao(Resource):
def get(self):
transacao = TransacaoModel.query.all()
return marshal(transacao, transacao_field)
def post(self):
payload = requests.only(["estabelecimento", "cliente", "valor", "descricao"])
transacao = TransacaoModel()
transacao.estabelecimento = payload["estabelecimento"]
transacao.cliente = payload["cliente"]
transacao.valor = payload["valor"]
transacao.descricao = payload["descricao"]
db.session.add(transacao)
db.session.commit()
return {"aceito": True}
def put(self):
...
def delete(self):
...
| 26.205882
| 85
| 0.65881
| 668
| 0.749719
| 0
| 0
| 0
| 0
| 0
| 0
| 96
| 0.107744
|
c825a6df3c14933bdcbd115b36ca8c69f6c6f233
| 2,434
|
py
|
Python
|
limiter/rate_limiter.py
|
sousa-andre/requests-limiter
|
ad3a5982a40e88111eca63b258e1226e15a8befa
|
[
"MIT"
] | 4
|
2020-11-14T18:13:27.000Z
|
2021-01-03T19:13:39.000Z
|
limiter/rate_limiter.py
|
sousa-andre/requests-limiter
|
ad3a5982a40e88111eca63b258e1226e15a8befa
|
[
"MIT"
] | null | null | null |
limiter/rate_limiter.py
|
sousa-andre/requests-limiter
|
ad3a5982a40e88111eca63b258e1226e15a8befa
|
[
"MIT"
] | 2
|
2021-01-03T19:13:46.000Z
|
2021-01-31T12:24:23.000Z
|
from functools import wraps
from time import sleep
from typing import List
from .rate_limit import RateLimit
from .exceptions import RateLimitHit
class OnHitAction:
raise_exception = 0
wait = 1
class RateLimiter:
def __init__(self, storage=RateLimit, *, action=OnHitAction.raise_exception):
self._limits = []
self._storage = storage
self.action = action
def _create_single_limiter(self, name, callback, defaults=None):
if defaults is None:
defaults = [(), (), ()]
self._limits.append(self._storage(name, callback, defaults))
def create_limiter(self, names, callback, defaults=None):
if isinstance(names, list):
for name in names:
self._create_single_limiter(name, callback, defaults)
elif isinstance(names, str):
self._create_single_limiter(names, callback, defaults)
else:
raise ValueError("names parameter must be either a string or a iterable")
@staticmethod
def can_request(limits):
for limit in limits:
print(limit, limit.can_request())
if not limit.can_request():
return [False, limit]
return [True, None]
@staticmethod
def is_initialized(limits):
for limit in limits:
if not limit.is_initialized():
return False
return True
@staticmethod
def register_request(limits, rt):
for limit in limits:
limit.register_request(rt)
def use(self, *limits_names):
def request_wrapper(func):
limits: List[RateLimit] = [limit for limit in self._limits if limit.name in limits_names]
@wraps(func)
def func_wrapper():
rl = RateLimiter.can_request(limits)
if rl[0]:
ret = func()
RateLimiter.register_request(limits, ret)
return ret
else:
if self.action == OnHitAction.raise_exception:
raise RateLimitHit(rl[1])
elif self.action == OnHitAction.wait:
sleep(rl[1].time_until_new_request_is_possible)
ret = func()
RateLimiter.register_request(limits, ret)
return ret
return func_wrapper
return request_wrapper
| 32.453333
| 101
| 0.582991
| 2,281
| 0.937141
| 0
| 0
| 1,164
| 0.478225
| 0
| 0
| 55
| 0.022597
|
c82642bd0188daaa561a06de4c6541a12f22393f
| 2,081
|
py
|
Python
|
pymod/amsexceptions.py
|
kevangel79/argo-ams-library
|
6824b1f6f577e688575d8f2f67f747126a856fcb
|
[
"Apache-2.0"
] | null | null | null |
pymod/amsexceptions.py
|
kevangel79/argo-ams-library
|
6824b1f6f577e688575d8f2f67f747126a856fcb
|
[
"Apache-2.0"
] | 1
|
2021-06-25T15:35:46.000Z
|
2021-06-25T15:35:46.000Z
|
pymod/amsexceptions.py
|
kevangel79/argo-ams-library
|
6824b1f6f577e688575d8f2f67f747126a856fcb
|
[
"Apache-2.0"
] | null | null | null |
import json
class AmsException(Exception):
"""Base exception class for all Argo Messaging service related errors"""
def __init__(self, *args, **kwargs):
super(AmsException, self).__init__(*args, **kwargs)
class AmsServiceException(AmsException):
"""Exception for Argo Messaging Service API errors"""
def __init__(self, json, request):
errord = dict()
self.msg = "While trying the [{0}]: {1}".format(request, json['error']['message'])
errord.update(error=self.msg)
if json['error'].get('code'):
self.code = json['error']['code']
errord.update(status_code=self.code)
if json['error'].get('status'):
self.status = json['error']['status']
errord.update(status=self.status)
super(AmsServiceException, self).__init__(errord)
class AmsBalancerException(AmsServiceException):
"""Exception for load balancer Argo Messaging Service errors"""
def __init__(self, json, request):
super(AmsBalancerException, self).__init__(json, request)
class AmsTimeoutException(AmsServiceException):
"""Exception for timeouts errors
Timeouts can be generated by the Argo Messaging Service if message was
not acknownledged in desired time frame (ackDeadlineSeconds). Also, 408
timeouts can come from load balancer for partial requests that were not
completed in required time frame.
"""
def __init__(self, json, request):
super(AmsTimeoutException, self).__init__(json, request)
class AmsConnectionException(AmsException):
"""Exception for connection related problems catched from requests library"""
def __init__(self, exp, request):
self.msg = "While trying the [{0}]: {1}".format(request, repr(exp))
super(AmsConnectionException, self).__init__(self.msg)
class AmsMessageException(AmsException):
"""Exception that indicate problems with constructing message"""
def __init__(self, msg):
self.msg = msg
super(AmsMessageException, self).__init__(self.msg)
| 33.031746
| 90
| 0.683325
| 2,052
| 0.986064
| 0
| 0
| 0
| 0
| 0
| 0
| 777
| 0.373378
|
c8284b2ce3b5bfcda541a3e925afc518ce46735a
| 18,871
|
py
|
Python
|
tests/fixtures/__init__.py
|
Lunga001/pmg-cms-2
|
10cea3979711716817b0ba2a41987df73f2c7642
|
[
"Apache-2.0"
] | 2
|
2019-06-11T20:46:43.000Z
|
2020-08-27T22:50:32.000Z
|
tests/fixtures/__init__.py
|
Lunga001/pmg-cms-2
|
10cea3979711716817b0ba2a41987df73f2c7642
|
[
"Apache-2.0"
] | 70
|
2017-05-26T14:04:06.000Z
|
2021-06-30T10:21:58.000Z
|
tests/fixtures/__init__.py
|
OpenUpSA/pmg-cms-2
|
ec5f259dae81674ac7a8cdb80f124a8b0f167780
|
[
"Apache-2.0"
] | 4
|
2017-08-29T10:09:30.000Z
|
2021-05-25T11:29:03.000Z
|
import pytz
import datetime
from fixture import DataSet, NamedDataStyle, SQLAlchemyFixture
from pmg.models import (
db,
House,
Committee,
CommitteeMeeting,
Bill,
BillType,
Province,
Party,
CommitteeMeetingAttendance,
Member,
CallForComment,
TabledCommitteeReport,
CommitteeQuestion,
Minister,
Event,
Featured,
Page,
BillStatus,
Post,
User,
Role,
Membership,
MembershipType,
EmailTemplate,
DailySchedule,
Organisation,
)
THIS_YEAR = datetime.datetime.today().year
class HouseData(DataSet):
class joint:
id = 1
name = "Joint (NA + NCOP)"
name_short = "Joint"
sphere = "national"
class ncop:
id = 2
name = "National Council of Provinces"
name_short = "NCOP"
sphere = "national"
class na:
id = 3
name = "National Assembly"
name_short = "NA"
sphere = "national"
class president:
id = 4
name = ("The President's Office",)
name_short = "President"
sphere = "national"
class western_cape:
id = 5
name = "Western Cape"
name_short = "western_cape"
sphere = "provincial"
class MinisterData(DataSet):
class minister_of_arts:
id = 1
name = "Minister of Sports, Arts and Culture"
class minister_of_transport:
id = 2
name = "Minister of Transport "
class president:
id = 3
name = "President"
class minister_in_presidency_for_women:
id = 4
name = (
"Minister in The Presidency for Women, Youth and Persons with Disabilities"
)
class minister_of_public_works:
id = 5
name = "Minister of Public Works and Infrastructure"
class CommitteeData(DataSet):
class communications:
name = "Communications"
house = HouseData.na
premium = True
class arts:
name = "Arts and Culture"
house = HouseData.na
minister = MinisterData.minister_of_arts
class constitutional_review:
name = "Constitutional Review Committee"
house = HouseData.joint
active = False
class western_cape_budget:
name = "Budget (WCPP)"
house = HouseData.western_cape
active = False
class CommitteeMeetingData(DataSet):
class arts_meeting_one:
date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
title = "Public meeting One"
committee = CommitteeData.arts
class arts_meeting_two:
date = datetime.datetime(2019, 8, 1, 0, 0, 0, tzinfo=pytz.utc)
title = "Public meeting Two"
committee = CommitteeData.arts
featured = True
class arts_future_meeting_one:
date = datetime.datetime(2020, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
title = "Public meeting 2020 one"
committee = CommitteeData.arts
class arts_future_meeting_two:
date = datetime.datetime(2020, 5, 1, 0, 0, 0, tzinfo=pytz.utc)
title = "Public meeting 2020 two"
committee = CommitteeData.arts
class premium_recent:
date = datetime.datetime(
THIS_YEAR, 11, 5, 0, 0, 0, tzinfo=pytz.FixedOffset(120)
)
title = "Premium meeting recent"
committee = CommitteeData.communications
class premium_old:
date = datetime.datetime(THIS_YEAR - 2, 11, 5, 0, 0, 0, tzinfo=pytz.utc)
title = "Premium meeting old"
committee = CommitteeData.communications
class BillTypeData(DataSet):
class section_74:
name = "Section 74"
prefix = "B"
description = "Section 74"
class section_75:
name = "Section 75"
prefix = "B"
description = "Ordinary Bills not affecting the provinces"
class section_77:
name = "Section 77"
prefix = "B"
description = "Section 77"
class private_member_bill_74:
name = "Private Member Bill: S74"
prefix = "PMB"
description = "Private Member Bill: Section 74"
class private_member_bill_77:
name = "Private Member Bill: S77"
prefix = "PMB"
description = "Private Member Bill: Section 77"
class draft:
name = "Draft"
prefix = "D"
description = "Draft bill"
class BillStatusData(DataSet):
class current:
name = "na"
description = "current"
class assent:
name = "assent"
description = "assent"
class president:
name = "president"
description = "president"
class BillData(DataSet):
"""
Enter various types of bills
"""
class food:
year = 2019
title = "Food and Health Bill"
type = BillTypeData.section_74
introduced_by = "Minister of Finance"
date_of_introduction = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
status = BillStatusData.current
class farm:
year = 2019
title = "Farm and Agricultural Bill"
type = BillTypeData.section_77
status = BillStatusData.president
class public:
year = 2019
title = "Public Investment Corporation Amendment Bill"
type = BillTypeData.private_member_bill_74
status = BillStatusData.assent
class child:
year = 2019
title = "Children's Amendment Bill"
type = BillTypeData.private_member_bill_77
class bill_with_none_number:
year = 2019
number = None
title = "Bill with None number"
type = BillTypeData.section_75
class sport:
year = 2019
number = 1
title = "2010 FIFA World Cup South Africa Special Measures Bill"
type = BillTypeData.section_75
class draft:
year = 2019
title = "Test Draft Bill"
type = BillTypeData.draft
class identical_date_events:
year = 2019
title = "Bill with multiple events"
type = BillTypeData.section_74
introduced_by = "Minister of sorting"
date_of_introduction = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
status = BillStatusData.current
class CallForCommentData(DataSet):
class arts_call_for_comment_one:
date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
title = "Feeds and Pet Food Bill - draft"
committee = CommitteeData.arts
start_date = datetime.datetime(2019, 1, 30, 0, 0, 0, tzinfo=pytz.utc)
end_date = datetime.datetime(2019, 4, 30, 0, 0, 0, tzinfo=pytz.utc)
body = "The Bill seeks to provide for: - regulation of feed and pet food, - regulation of feed ingredients used in the manufacturing of feed and pet food,"
summary = "The Department of Agriculture, Forestry and Fisheries has published the draft Feeds and Pet Food Bill, and is asking you to comment."
class communications_call_for_comment_one:
date = datetime.datetime(2020, 2, 14, 0, 0, 0, tzinfo=pytz.utc)
title = "Public Procurement Bill"
committee = CommitteeData.communications
start_date = datetime.datetime(2020, 1, 30, 0, 0, 0, tzinfo=pytz.utc)
body = "The draft Bill aims to create a single regulatory framework for public procurement"
class TabledCommitteeReportData(DataSet):
class arts_tabled_committee_report_one:
title = "ATC190710: Report of the Portfolio Committee on Agriculture, Land Reform and Rural Development on the 2019/20 Annual Performance Plan and the Budget of the Department of Agriculture, Forestry and Fisheries (Vote 24) and its Entities, dated 10 July 2019."
start_date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
committee = CommitteeData.arts
end_date = datetime.datetime(2019, 4, 30, 0, 0, 0, tzinfo=pytz.utc)
body = "The Portfolio Committee on Agriculture, Land Reform and Rural Development (hereinafter referred to as the Committee) examined Budget Vote 24: Agriculture, Forestry and Fisheries including the Annual Performance Plan of the Department of Agriculture, Forestry and Fisheries (hereinafter referred to as DAFF or the Department) for the 2019/20 financial year and budget projections for the Medium Term Expenditure Framework (MTEF) period ending in 2021/22."
class PartyData(DataSet):
class da:
name = "Democratic Alliance (DA)"
class anc:
name = "African National Congress (ANC)"
class ProvinceData(DataSet):
class western_cape:
name = "Western Cape"
class gauteng:
name = "Gauteng"
class MemberData(DataSet):
class veronica:
name = "Ms Veronica Van Dyk"
profile_pic_url = "https://www.pa.org.za/media_root/cache/02/93/0293cce7701daf86fa88fe02e1db9c58.jpg"
bio = "Ms Veronica van Dyk is the Deputy Shadow Minister for Communications in the DA, since June 2014. She is a former Ward Councillor of the Nama Khoi Local Municipality."
house = HouseData.na
party = PartyData.da
province = ProvinceData.western_cape
start_date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
pa_link = "http://www.pa.org.za"
current = True
class not_current_member:
name = "Phoebe Noxolo Abraham"
house = HouseData.na
party = PartyData.anc
start_date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
current = False
class laetitia:
name = "Laetitia Heloise Arries"
house = HouseData.joint
party = PartyData.anc
start_date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
current = True
class CommitteeMeetingAttendanceData(DataSet):
class arts_meeting_attendance_one:
date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
attendance = "P"
meeting = CommitteeMeetingData.arts_meeting_two
member = MemberData.laetitia
class arts_meeting_attendance_two:
date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
attendance = "A"
meeting = CommitteeMeetingData.arts_meeting_two
member = MemberData.veronica
class arts_future_meeting_attendance_one:
date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
attendance = "P"
meeting = CommitteeMeetingData.arts_future_meeting_one
member = MemberData.laetitia
class arts_future_meeting_attendance_two:
date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
attendance = "A"
meeting = CommitteeMeetingData.arts_future_meeting_two
member = MemberData.veronica
class CommitteeQuestionData(DataSet):
class arts_committee_question_one:
minister = MinisterData.minister_of_arts
code = "NA1"
question_number = 1
house = HouseData.na
written_number = 1
oral_number = 1
answer_type = "oral"
date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
year = 2019
question = "What programmes that promote the languages, culture and heritage of the Khoi and San has the Government implemented in each province in each of the past five years"
answer = "Through possible funding and strategic partnerships between PanSALB and my Department, PanSALB was able to initiate and support the following programmes."
question_to_name = "Minister of Sports, Arts and Culture"
intro = "Van Dyk, Ms V to ask the Minister of Sports, Arts and Culture:"
asked_by_name = "Van Dyk, Ms V"
asked_by_member = MemberData.veronica
class arts_committee_question_two:
minister = MinisterData.minister_of_arts
code = "NA1"
question_number = 2
house = HouseData.na
written_number = 2
oral_number = 2
answer_type = "oral"
date = datetime.datetime(2018, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
year = 2018
question = "What has he found were the reasons for not reporting on the 2018-19 Fourth Quarter expenditure?"
answer = "During the Fourth Quarter of the 2018-19 financial year there were no expenditure incurred on the development of the Rail Safety Bill and therefore there was no reporting."
question_to_name = "Minister of Sports, Arts and Culture"
intro = "Van Dyk, Ms V to ask the Minister of Sports, Arts and Culture:"
asked_by_name = "Van Dyk, Ms V"
asked_by_member = MemberData.veronica
class EventData(DataSet):
class arts_bill_event_one:
date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
title = "2010 FIFA World Cup South Africa Special Measures Bill [B13-2006]: Department briefing"
type = "committee-meeting"
committee = CommitteeData.arts
house = HouseData.na
bills = [BillData.public, BillData.food]
class food_bill_hansard_event:
date = datetime.datetime(2020, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
title = "Hansard event"
type = "plenary"
house = HouseData.na
bills = [BillData.food]
class identical_date_bill_event1:
date = datetime.datetime(2020, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
title = "Hansard event 2"
type = "bill-signed"
house = HouseData.na
bills = [BillData.identical_date_events]
class identical_date_bill_event2:
date = datetime.datetime(2020, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
title = "Hansard event 2"
type = "bill-introduced"
house = HouseData.na
bills = [BillData.identical_date_events]
class FeaturedData(DataSet):
class the_week_ahead:
title = "The Week Ahead: End of the First Term"
link = "https://pmg.org.za/blog/The%20Week%20Ahead:%20End%20of%20the%20First%20Term"
start_date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
class current_bills:
title = "Current Bills"
start_date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
link = "https://pmg.org.za/bills/current/"
class PageData(DataSet):
class section_25_review_process:
title = "Section 25 review process"
slug = "Section25reviewprocess"
body = "In February 2018, the National Assembly adopted a motion proposed by the EFF, with amendments by the ANC that Parliament's Constitutional Review Committee investigates mechanisms through which land can be expropriated without compensation."
date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
featured = True
class un_featured_page:
title = "Unfeatured page"
slug = "unfeaturedpage"
date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
featured = False
class PostData(DataSet):
class the_week_ahead:
title = "The Week Ahead: End of the First Term"
slug = "theweekahead"
featured = True
body = "A lot was packed into the first term of the Sixth Parliament."
date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
class first_term_review:
title = "First Term Review: Sixth Parliament"
slug = "FirstTermReview"
featured = True
body = "Parliaments first term ended last week. According to the programme, the term was 11 weeks but the main thrust of the work was compressed into the final 5 weeks of the quarter."
date = datetime.datetime(2019, 2, 17, 0, 0, 0, tzinfo=pytz.utc)
class brief_explainer:
title = "BRIEF EXPLAINER: LAPSED BILLS IN PARLIAMENT"
slug = "BriefExplainer"
featured = True
body = "There were 39 unfinished bills when the Fifth Parliament ended."
date = datetime.datetime(2019, 2, 17, 12, 0, 0, tzinfo=pytz.utc)
class government_priorities:
title = "Government's legislative priorities"
slug = "GovernmentPriorities"
featured = True
body = "The Constitution of South Africa empowers the Executive to prepare and initiate legislation. Similarly, Parliament (through its committees) and individual MPs also have initiating power but the vast majority of legislation (92%) is introduced by the Executive."
date = datetime.datetime(2018, 8, 17, 0, 0, 0, tzinfo=pytz.utc)
class RoleData(DataSet):
class admin:
name = "user-admin"
description = "user-admin"
class editor:
name = "editor"
description = "editor"
class UserData(DataSet):
class admin:
email = "admin@pmg.org.za"
name = "Admin User"
active = True
roles = [RoleData.admin, RoleData.editor]
current_login_at = datetime.datetime.utcnow()
confirmed = True
confirmed_at = datetime.datetime.utcnow()
committee_alerts = [CommitteeData.arts]
class editor:
email = "editor@pmg.org.za"
name = "Editor User"
active = True
roles = [RoleData.editor]
current_login_at = datetime.datetime.utcnow()
confirmed = True
confirmed_at = datetime.datetime.utcnow()
committee_alerts = [CommitteeData.arts]
class inactive:
email = "inactive@pmg.org.za"
name = "Inactive User"
active = False
roles = [RoleData.editor]
current_login_at = datetime.datetime.utcnow()
confirmed = True
confirmed_at = datetime.datetime.utcnow()
committee_alerts = [CommitteeData.arts]
class OrganisationData(DataSet):
class pmg:
name = "PMG"
domain = "PMG Domain"
paid_subscriber = True
expiry = datetime.datetime.utcnow() + datetime.timedelta(days=365)
contact = "pmg@pmg.com"
subscriptions = [CommitteeData.arts]
users = [UserData.admin]
class MembershipTypeData(DataSet):
class member:
name = "Member"
class MembershipData(DataSet):
class arts_membership_one:
type = MembershipTypeData.member
committee = CommitteeData.arts
member = MemberData.veronica
class EmailTemplateData(DataSet):
class template_one:
name = "Template One"
description = "Template One Description"
subject = "Template One Subject"
body = "Template One Body"
class DailyScheduleData(DataSet):
class schedule_provincial:
title = "Schedule provincial"
start_date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
body = "Schedule provincial"
house = HouseData.western_cape
class schedule_ncop:
title = "Schedule NCOP"
start_date = datetime.datetime(2019, 1, 1, 0, 0, 0, tzinfo=pytz.utc)
body = "Schedule NCOP body"
house = HouseData.ncop
dbfixture = SQLAlchemyFixture(
env=globals(), style=NamedDataStyle(), engine=db.engine, scoped_session=db.Session
)
| 33.578292
| 470
| 0.647237
| 18,105
| 0.959409
| 0
| 0
| 0
| 0
| 0
| 0
| 5,486
| 0.290711
|
c828bd04e92dcf2b104e584217bad8d4f09ebabf
| 455
|
py
|
Python
|
Google Search/GoogleSearch.py
|
cclauss/Browser-Automation
|
7baca74d40ac850f9570d7e40a47021dc0e8e387
|
[
"Apache-2.0"
] | 35
|
2016-07-16T07:05:24.000Z
|
2021-07-07T15:18:55.000Z
|
Google Search/GoogleSearch.py
|
cclauss/Browser-Automation
|
7baca74d40ac850f9570d7e40a47021dc0e8e387
|
[
"Apache-2.0"
] | null | null | null |
Google Search/GoogleSearch.py
|
cclauss/Browser-Automation
|
7baca74d40ac850f9570d7e40a47021dc0e8e387
|
[
"Apache-2.0"
] | 7
|
2016-07-27T10:25:10.000Z
|
2019-12-06T08:45:03.000Z
|
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
driver = webdriver.Chrome("D:\chromedriver\chromedriver")
driver.get("http://www.google.com")
if not "Google" in driver.title:
raise Exception("Unable to load google page!")
elem = driver.find_element_by_name("q")
elem.send_keys("selenium")
elem.submit()
print (driver.title)
driver.quit()
| 28.4375
| 78
| 0.789011
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 103
| 0.226374
|
c82a3f71eb898781a7532e4f8e200f17688bdd99
| 2,265
|
py
|
Python
|
PuppeteerLibrary/puppeteer/async_keywords/puppeteer_formelement.py
|
qahive/robotframework-puppeteer
|
6377156c2e5b3a4d3841c33a2d3ff9ab0b38854a
|
[
"Apache-2.0"
] | 37
|
2019-10-28T01:35:43.000Z
|
2022-03-31T04:11:49.000Z
|
PuppeteerLibrary/puppeteer/async_keywords/puppeteer_formelement.py
|
qahive/robotframework-puppeteer
|
6377156c2e5b3a4d3841c33a2d3ff9ab0b38854a
|
[
"Apache-2.0"
] | 61
|
2020-07-16T00:18:22.000Z
|
2022-03-24T07:12:05.000Z
|
PuppeteerLibrary/puppeteer/async_keywords/puppeteer_formelement.py
|
qahive/robotframework-puppeteer
|
6377156c2e5b3a4d3841c33a2d3ff9ab0b38854a
|
[
"Apache-2.0"
] | 10
|
2020-03-03T05:28:05.000Z
|
2022-02-14T10:03:44.000Z
|
from PuppeteerLibrary.utils.coverter import str2bool, str2str
import os
import glob
import shutil
import time
from PuppeteerLibrary.ikeywords.iformelement_async import iFormElementAsync
class PuppeteerFormElement(iFormElementAsync):
def __init__(self, library_ctx):
super().__init__(library_ctx)
async def input_text(self, locator: str, text: str, clear=True):
text = str2str(text)
clear = str2bool(clear)
if clear:
await self._clear_input_text(locator)
await self.library_ctx.get_current_page().type_with_selenium_locator(locator, text)
async def input_password(self, locator: str, text: str, clear=True):
text = str2str(text)
clear = str2bool(clear)
await self.input_text(locator, text, clear)
async def clear_element_text(self, locator: str):
await self._clear_input_text(locator)
async def download_file(self, locator: str, timeout=None):
path = os.getcwd()+''+os.sep+'tmp-download'
try:
shutil.rmtree(path)
except:
self.info('Cannot cleanup the tmp download folder.')
page = self.library_ctx.get_current_page().get_page()
await page._client.send('Page.setDownloadBehavior', {
'behavior': 'allow',
'downloadPath': path
})
await self.library_ctx.get_current_page().click_with_selenium_locator(locator)
timeout = self.timestr_to_secs_for_default_timeout(timeout)
max_time = time.time() + timeout
file = None
while time.time() < max_time:
time.sleep(1)
files = glob.glob(path+''+os.sep+'*')
if len(files) == 1:
file = files[0]
break
return file
async def upload_file(self, locator: str, file_path: str):
element = await self.library_ctx.get_current_page().querySelector_with_selenium_locator(locator)
return await element.uploadFile(file_path)
async def _clear_input_text(self, selenium_locator):
await self.library_ctx.get_current_page().click_with_selenium_locator(selenium_locator, {'clickCount': 3})
await self.library_ctx.get_current_page().get_page().keyboard.press('Backspace')
| 38.389831
| 114
| 0.666225
| 2,076
| 0.916556
| 0
| 0
| 0
| 0
| 1,906
| 0.841501
| 142
| 0.062693
|
c82ab1a64645a1b9f4d0449b2c09332ab3971afe
| 7,187
|
py
|
Python
|
cnns/nnlib/pytorch_architecture/resnet1d.py
|
anonymous-user-commits/perturb-net
|
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
|
[
"MIT"
] | 1
|
2018-03-25T13:19:46.000Z
|
2018-03-25T13:19:46.000Z
|
cnns/nnlib/pytorch_architecture/resnet1d.py
|
anonymous-user-commits/perturb-net
|
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
|
[
"MIT"
] | null | null | null |
cnns/nnlib/pytorch_architecture/resnet1d.py
|
anonymous-user-commits/perturb-net
|
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
|
[
"MIT"
] | null | null | null |
import shutil, os, csv, itertools, glob
import math
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from torch.utils.data import Dataset, DataLoader
import torch.optim as optim
from sklearn.metrics import confusion_matrix
import pandas as pd
import pickle as pk
cuda = torch.cuda.is_available()
print("is conv1D_cuda available: ", cuda)
# Utils
def load_pickle(filename):
try:
p = open(filename, 'r')
except IOError:
print("Pickle file cannot be opened.")
return None
try:
picklelicious = pk.load(p)
except ValueError:
print('load_pickle failed once, trying again')
p.close()
p = open(filename, 'r')
picklelicious = pk.load(p)
p.close()
return picklelicious
def save_pickle(data_object, filename):
pickle_file = open(filename, 'w')
pk.dump(data_object, pickle_file)
pickle_file.close()
def read_data(filename):
print("Loading Data...")
df = pd.read_csv(filename, header=None)
data = df.values
return data
def read_line(csvfile, line):
with open(csvfile, 'r') as f:
data = next(itertools.islice(csv.reader(f), line, None))
return data
## 1D Variant of ResNet taking in 200 dimensional fixed time series inputs
class BasicBlock(nn.Module):
expansion = 1
def __init__(self, inplanes, planes, stride=1, downsample=None):
super(BasicBlock, self).__init__()
self.conv1 = nn.Conv1d(inplanes, planes, kernel_size=3, padding=1,
stride=stride, bias=False)
self.bn1 = nn.BatchNorm1d(planes)
self.relu = nn.ReLU(inplace=True)
self.conv2 = nn.Conv1d(planes, planes, kernel_size=3, padding=1,
stride=stride, bias=False)
self.bn2 = nn.BatchNorm1d(planes)
self.downsample = downsample
self.stride = stride
def forward(self, x):
residual = x
out = self.conv1(x)
out = self.bn1(out)
out = self.relu(out)
out = self.conv2(out)
out = self.bn2(out)
if self.downsample is not None:
residual = self.downsample(x)
# print('out', out.size(), 'res', residual.size(), self.downsample)
out += residual
out = self.relu(out)
return out
class Bottleneck(nn.Module):
expansion = 4
def __init__(self, inplanes, planes, stride=1, downsample=None):
super(Bottleneck, self).__init__()
self.conv1 = nn.Conv1d(inplanes, planes, kernel_size=1, padding=1,
stride=stride, bias=False)
self.bn1 = nn.BatchNorm1d(planes)
self.conv2 = nn.Conv1d(planes, planes, kernel_size=1, padding=1,
stride=stride, bias=False)
self.bn2 = nn.BatchNorm1d(planes)
self.conv3 = nn.Conv1d(planes, planes * 4, kernel_size=1, padding=1,
stride=stride, bias=False)
self.bn3 = nn.BatchNorm1d(planes * 4)
self.relu = nn.ReLU(inplace=True)
self.downsample = downsample
self.stride = stride
def forward(self, x):
residual = x
out = self.conv1(x)
out = self.bn1(out)
out = self.relu(out)
out = self.conv2(out)
out = self.bn2(out)
out = self.relu(out)
out = self.conv3(out)
out = self.bn3(out)
if self.downsample is not None:
residual = self.downsample(x)
out += residual
out = self.relu(out)
return out
class ResNet(nn.Module):
def __init__(self, block, layers, num_classes, arch):
self.inplanes = 64
super(ResNet, self).__init__()
self.conv1 = nn.Conv1d(1, 64, kernel_size=7, stride=2, padding=3,
bias=False)
self.bn1 = nn.BatchNorm1d(64)
self.relu = nn.ReLU(inplace=True)
self.maxpool = nn.MaxPool1d(kernel_size=3, stride=2, padding=1)
self.layer1 = self._make_layer(block, 64, layers[0])
self.layer2 = self._make_layer(block, 128, layers[1]) # , stride=2)
self.layer3 = self._make_layer(block, 256, layers[2]) # , stride=2)
self.layer4 = self._make_layer(block, 512, layers[3]) # , stride=2)
self.avgpool = nn.AvgPool1d(7, stride=1)
self.fc = nn.Linear(22528, num_classes) # 512 * block.expansion
self.arch = arch
for m in self.modules():
if isinstance(m, nn.Conv1d):
n = m.kernel_size[0] * m.out_channels
m.weight.data.normal_(0, math.sqrt(2. / n))
elif isinstance(m, nn.BatchNorm1d):
m.weight.data.fill_(1)
m.bias.data.zero_()
def _make_layer(self, block, planes, blocks, stride=1):
downsample = None
if stride != 1 or self.inplanes != planes * block.expansion:
downsample = nn.Sequential(
nn.Conv1d(self.inplanes, planes * block.expansion,
kernel_size=1, stride=stride, bias=False),
nn.BatchNorm1d(planes * block.expansion),
)
layers = []
layers.append(block(self.inplanes, planes, stride, downsample))
self.inplanes = planes * block.expansion
for i in range(1, blocks):
layers.append(block(self.inplanes, planes))
return nn.Sequential(*layers)
def forward(self, x):
x = self.conv1(x)
x = self.bn1(x)
x = self.relu(x)
x = self.maxpool(x)
x = self.layer1(x)
x = self.layer2(x)
x = self.layer3(x)
x = self.layer4(x)
x = self.avgpool(x)
x = x.view(x.size(0), -1)
# print(x.size())
x = self.fc(x)
return x
def resnet18(pretrained=False, **kwargs):
"""Constructs a ResNet-18 model.
Arguments:
pretrained (bool): If True, returns a model pre-trained on ImageNet
"""
model = ResNet(BasicBlock, [2, 2, 2, 2], arch='resnet18', **kwargs)
return model
def resnet34(pretrained=False, **kwargs):
"""Constructs a ResNet-34 model.
Arguments:
pretrained (bool): If True, returns a model pre-trained on ImageNet
"""
model = ResNet(BasicBlock, [3, 4, 6, 3], arch='resnet34', **kwargs)
return model
def resnet50(pretrained=False, **kwargs):
"""Constructs a ResNet-50 model.
Arguments:
pretrained (bool): If True, returns a model pre-trained on ImageNet
"""
model = ResNet(Bottleneck, [3, 4, 6, 3], arch='resnet50', **kwargs)
return model
def resnet101(pretrained=False, **kwargs):
"""Constructs a ResNet-101 model.
Arguments:
pretrained (bool): If True, returns a model pre-trained on ImageNet
"""
model = ResNet(Bottleneck, [3, 4, 23, 3], arch='resnet101', **kwargs)
return model
def resnet152(pretrained=False, **kwargs):
"""Constructs a ResNet-152 model.
Arguments:
pretrained (bool): If True, returns a model pre-trained on ImageNet
"""
model = ResNet(Bottleneck, [3, 8, 36, 3], arch='resnet152', **kwargs)
return model
| 28.863454
| 76
| 0.594128
| 4,491
| 0.624878
| 0
| 0
| 0
| 0
| 0
| 0
| 1,063
| 0.147906
|
c82b86e4546012be74409a7f90dcbec90ae16446
| 12,279
|
py
|
Python
|
satori/serviceinstall.py
|
mgeisler/satori
|
dea382bae1cd043189589c0f7d4c20b4b6725ab5
|
[
"Apache-2.0"
] | 1
|
2015-01-18T19:56:28.000Z
|
2015-01-18T19:56:28.000Z
|
satori/serviceinstall.py
|
samstav/satori
|
239fa1e3c7aac78599145c670576f0ac76a41a89
|
[
"Apache-2.0"
] | null | null | null |
satori/serviceinstall.py
|
samstav/satori
|
239fa1e3c7aac78599145c670576f0ac76a41a89
|
[
"Apache-2.0"
] | null | null | null |
# Copyright (c) 2003-2012 CORE Security Technologies
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# $Id: serviceinstall.py 1141 2014-02-12 16:39:51Z bethus@gmail.com $
#
# Service Install Helper library used by psexec and smbrelayx
# You provide an already established connection and an exefile
# (or class that mimics a file class) and this will install and
# execute the service, and then uninstall (install(), uninstall().
# It tries to take care as much as possible to leave everything clean.
#
# Author:
# Alberto Solino (bethus@gmail.com)
#
"""This module has been copied from impacket.examples.serviceinstall.
It exposes a class that can be used to install services on Windows devices
"""
import random
import string
from impacket.dcerpc import dcerpc
from impacket.dcerpc import srvsvc
from impacket.dcerpc import svcctl
from impacket.dcerpc import transport
from impacket import smb
from impacket import smb3
from impacket import smbconnection
class ServiceInstall():
"""Class to manage Services on a remote windows server.
This class is slightly improved from the example in the impacket package
in a way that it allows to specify a service and executable name during
instantiation rather than using a random name by default
"""
def __init__(self, SMBObject, exeFile, serviceName=None,
binaryServiceName=None):
"""Contructor of the class.
:param SMBObject: existing SMBObject
:param exeFile: file handle or class that mimics a file
class, this will be used to create the
service
:param serviceName: name of the service to be created, will be
random if not set
:param binaryServiceName name of the uploaded file, wil be random if
not set
"""
print("In constructor now!!!")
self._rpctransport = 0
if not serviceName:
self.__service_name = ''.join(
[random.choice(string.letters) for i in range(4)])
else:
self.__service_name = serviceName
if not binaryServiceName:
self.__binary_service_name = ''.join(
[random.choice(string.letters) for i in range(8)]) + '.exe'
else:
self.__binary_service_name = binaryServiceName
self.__exeFile = exeFile
# We might receive two different types of objects, always end up
# with a SMBConnection one
if isinstance(SMBObject, smb.SMB) or isinstance(SMBObject, smb3.SMB3):
self.connection = smbconnection.SMBConnection(
existingConnection=SMBObject)
else:
self.connection = SMBObject
self.share = ''
def getShare(self):
"""Return the writable share that has been used to upload the file."""
return self.share
def getShares(self):
"""Return a list of shares on the remote windows server."""
# Setup up a DCE SMBTransport with the connection already in place
print("[*] Requesting shares on %s....." % (
self.connection.getRemoteHost()))
try:
self._rpctransport = transport.SMBTransport(
'', '', filename=r'\srvsvc', smb_connection=self.connection)
self._dce = dcerpc.DCERPC_v5(self._rpctransport)
self._dce.connect()
self._dce.bind(srvsvc.MSRPC_UUID_SRVSVC)
srv_svc = srvsvc.DCERPCSrvSvc(self._dce)
resp = srv_svc.get_share_enum_1(self._rpctransport.get_dip())
return resp
except Exception:
print("[!] Error requesting shares on %s, aborting....." % (
self.connection.getRemoteHost()))
raise
def createService(self, handle, share, path):
"""Install Service on the remote server.
This method will connect to the SVCManager on the remote server and
install the service as specified in the constructor.
"""
print("[*] Creating service %s on %s....." % (
self.__service_name, self.connection.getRemoteHost()))
# First we try to open the service in case it exists.
# If it does, we remove it.
try:
resp = self.rpcsvc.OpenServiceW(
handle, self.__service_name.encode('utf-16le'))
except Exception as e:
if e.get_error_code() == svcctl.ERROR_SERVICE_DOES_NOT_EXISTS:
# We're good, pass the exception
pass
else:
raise
else:
# It exists, remove it
self.rpcsvc.DeleteService(resp['ContextHandle'])
self.rpcsvc.CloseServiceHandle(resp['ContextHandle'])
# Create the service
command = '%s\\%s' % (path, self.__binary_service_name)
try:
resp = self.rpcsvc.CreateServiceW(
handle, self.__service_name.encode('utf-16le'),
self.__service_name.encode('utf-16le'),
command.encode('utf-16le'))
except Exception:
print("[!] Error creating service %s on %s" % (
self.__service_name, self.connection.getRemoteHost()))
raise
else:
return resp['ContextHandle']
def openSvcManager(self):
"""Connect to the SVCManager on the remote host."""
print("[*] Opening SVCManager on %s...."
"." % self.connection.getRemoteHost())
# Setup up a DCE SMBTransport with the connection already in place
self._rpctransport = transport.SMBTransport(
'', '', filename=r'\svcctl', smb_connection=self.connection)
self._dce = dcerpc.DCERPC_v5(self._rpctransport)
self._dce.connect()
self._dce.bind(svcctl.MSRPC_UUID_SVCCTL)
self.rpcsvc = svcctl.DCERPCSvcCtl(self._dce)
try:
resp = self.rpcsvc.OpenSCManagerW()
except Exception:
print("[!] Error opening SVCManager on %s...."
"." % self.connection.getRemoteHost())
raise Exception('Unable to open SVCManager')
else:
return resp['ContextHandle']
def copy_file(self, src, tree, dst):
"""Copy file to remote SMB share."""
print("[*] Uploading file %s" % dst)
if isinstance(src, str):
# We have a filename
fh = open(src, 'rb')
else:
# We have a class instance, it must have a read method
fh = src
f = dst
pathname = string.replace(f, '/', '\\')
try:
self.connection.putFile(tree, pathname, fh.read)
except Exception:
print("[!] Error uploading file %s, aborting....." % dst)
raise
fh.close()
def findWritableShare(self, shares):
"""Retrieve a list of writable shares on the remote host."""
# Check we can write a file on the shares, stop in the first one
for i in shares:
if (i['Type'] == smb.SHARED_DISK or
i['Type'] == smb.SHARED_DISK_HIDDEN):
share = i['NetName'].decode('utf-16le')[:-1]
try:
self.connection.createDirectory(share, 'BETO')
except Exception:
# Can't create, pass
print("[!] share '%s' is not writable." % share)
pass
else:
print('[*] Found writable share %s' % share)
self.connection.deleteDirectory(share, 'BETO')
return str(share)
return None
def install(self): # noqa
"""Install the service on the remote host."""
if self.connection.isGuestSession():
print("[!] Authenticated as Guest. Aborting")
self.connection.logoff()
del(self.connection)
else:
fileCopied = False
serviceCreated = False
# Do the stuff here
try:
# Let's get the shares
shares = self.getShares()
self.share = self.findWritableShare(shares)
self.copy_file(self.__exeFile,
self.share,
self.__binary_service_name)
fileCopied = True
svcManager = self.openSvcManager()
if svcManager != 0:
serverName = self.connection.getServerName()
if serverName != '':
path = '\\\\%s\\%s' % (serverName, self.share)
else:
path = '\\\\127.0.0.1\\' + self.share
service = self.createService(svcManager, self.share, path)
serviceCreated = True
if service != 0:
# Start service
print('[*] Starting service %s....'
'.' % self.__service_name)
try:
self.rpcsvc.StartServiceW(service)
except Exception:
pass
self.rpcsvc.CloseServiceHandle(service)
self.rpcsvc.CloseServiceHandle(svcManager)
return True
except Exception as e:
print("[!] Error performing the installation, cleaning up: "
"%s" % e)
try:
self.rpcsvc.StopService(service)
except Exception:
pass
if fileCopied is True:
try:
self.connection.deleteFile(self.share,
self.__binary_service_name)
except Exception:
pass
if serviceCreated is True:
try:
self.rpcsvc.DeleteService(service)
except Exception:
pass
return False
def uninstall(self):
"""Uninstall service from remote host and delete file from share."""
fileCopied = True
serviceCreated = True
# Do the stuff here
try:
# Let's get the shares
svcManager = self.openSvcManager()
if svcManager != 0:
resp = self.rpcsvc.OpenServiceA(svcManager,
self.__service_name)
service = resp['ContextHandle']
print('[*] Stoping service %s.....' % self.__service_name)
try:
self.rpcsvc.StopService(service)
except Exception:
pass
print('[*] Removing service %s.....' % self.__service_name)
self.rpcsvc.DeleteService(service)
self.rpcsvc.CloseServiceHandle(service)
self.rpcsvc.CloseServiceHandle(svcManager)
print('[*] Removing file %s.....' % self.__binary_service_name)
self.connection.deleteFile(self.share, self.__binary_service_name)
except Exception:
print("[!] Error performing the uninstallation, cleaning up")
try:
self.rpcsvc.StopService(service)
except Exception:
pass
if fileCopied is True:
try:
self.connection.deleteFile(self.share,
self.__binary_service_name)
except Exception:
try:
self.connection.deleteFile(self.share,
self.__binary_service_name)
except Exception:
pass
pass
if serviceCreated is True:
try:
self.rpcsvc.DeleteService(service)
except Exception:
pass
| 40.391447
| 79
| 0.540353
| 11,200
| 0.912126
| 0
| 0
| 0
| 0
| 0
| 0
| 3,772
| 0.307191
|
c82bebdc20706924551678f498e8c6d34044e848
| 11,879
|
py
|
Python
|
pirates/battle/DistributedBattleAvatarAI.py
|
Willy5s/Pirates-Online-Rewritten
|
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
|
[
"BSD-3-Clause"
] | 81
|
2018-04-08T18:14:24.000Z
|
2022-01-11T07:22:15.000Z
|
pirates/battle/DistributedBattleAvatarAI.py
|
Willy5s/Pirates-Online-Rewritten
|
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
|
[
"BSD-3-Clause"
] | 4
|
2018-09-13T20:41:22.000Z
|
2022-01-08T06:57:00.000Z
|
pirates/battle/DistributedBattleAvatarAI.py
|
Willy5s/Pirates-Online-Rewritten
|
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
|
[
"BSD-3-Clause"
] | 26
|
2018-05-26T12:49:27.000Z
|
2021-09-11T09:11:59.000Z
|
from direct.directnotify import DirectNotifyGlobal
from pirates.reputation. DistributedReputationAvatarAI import DistributedReputationAvatarAI
from Teamable import Teamable
from direct.distributed.ClockDelta import globalClockDelta
from pirates.piratesbase import EmoteGlobals
class DistributedBattleAvatarAI(DistributedReputationAvatarAI, Teamable):
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedBattleAvatarAI')
def __init__(self, air):
DistributedReputationAvatarAI.__init__(self, air)
Teamable.__init__(self)
self.currentWeaponId = 0
self.isWeaponDrawn = False
self.currentAmmo = 0
self.currentCharm = 0
self.isGhost = False
self.ghostColor = 0
self.ghostPowers = False
self.shipId = 0
self.maxHp = 0
self.hp = 0
self.quietly = False
self.luck = 0
self.maxLuck = 0
self.mojo = 0
self.maxMojo = 0
self.swiftness = 0
self.maxSwiftness = 0
self.power = 0
self.maxPower = 0
self.luckMod = 0
self.mojoMod = 0
self.swiftnessMod = 0
self.hasteMod = 0
self.stunMod = 0
self.powerMod = 0
self.inInvasion = False
self.attackerId = 0
self.combo = 0
self.teamCombo = 0
self.comboDamage = 0
self.skillEffects = []
self.ensaredTargetId = 0
self.level = 0
self.visZone = ''
def setAvatarType(self, avatarType):
self.avatarType = avatarType
def getAvatarType(self):
return self.avatarType
def d_setGameState(self, gameState):
self.sendUpdate('setGameState', [gameState, globalClockDelta.getRealNetworkTime(bits=16)])
def setIsGhost(self, isGhost):
self.isGhost = isGhost
def d_setIsGhost(self, isGhost):
self.sendUpdate('setIsGhost', [isGhost])
def b_setIsGhost(self, isGhost):
self.setIsGhost(isGhost)
self.d_setIsGhost(isGhost)
def getIsGhost(self):
return self.isGhost
def setGhostColor(self, ghostColor):
self.ghostColor = ghostColor
def d_setGhostColor(self, ghostColor):
self.sendUpdate("setGhostColor", [ghostColor])
def b_setGhostColor(self, ghostColor):
self.setGhostColor(ghostColor)
self.d_setGhostColor(ghostColor)
def getGhostColor(self):
return self.ghostColor
def setHasGhostPowers(self, ghostPowers):
self.ghostPowers = ghostPowers
def d_setHasGhostPowers(self, ghostPowers):
self.sendUpdate('setHasGhostPowers', [ghostPowers])
def b_setHasGhostPowers(self, ghostPowers):
self.setHasGhostPowers(ghostPowers)
self.d_setHasGhostPowers(ghostPowers)
def getHasGhostPowers(self):
return self.ghostPowers
def setCurrentWeapon(self, currentWeapon, isWeaponDrawn):
self.currentWeaponId = currentWeapon
self.isWeaponDrawn = isWeaponDrawn
def d_setCurrentWeapon(self, currentWeapon, isWeaponDrawn):
self.sendUpdate('setCurrentWeapon', [currentWeapon, isWeaponDrawn])
def b_setCurrentWeapon(self, currentWeapon, isWeaponDrawn):
self.setCurrentWeapon(currentWeapon, isWeaponDrawn)
self.d_setCurrentWeapon(currentWeapon, isWeaponDrawn)
def getCurrentWeapon(self):
return [self.currentWeaponId, self.isWeaponDrawn]
def setCurrentAmmo(self, currentAmmo):
self.currentAmmo = currentAmmo
def d_setCurrentAmmo(self, currentAmmo):
self.sendUpdate('setCurrentAmmo', [currentAmmo])
def b_setCurrentAmmo(self, currentAmmo):
self.setCurrentAmmo(currentAmmo)
self.d_setCurrentAmmo(currentAmmo)
def getCurrentAmmo(self):
return self.currentAmmo
def setCurrentCharm(self, currentCharm):
self.currentCharm = currentCharm
def d_setCurrentCharm(self, currentCharm):
self.sendUpdate('setCurrentCharm', [currentCharm])
def b_setCurrentCharm(self, currentCharm):
self.setCurrentCharm(currentCharm)
self.d_setCurrentCharm(currentCharm)
def getCurrentCharm(self):
return self.currentCharm
def setShipId(self, shipId):
self.shipId = shipId
def d_setShipId(self, shipId):
self.sendUpdate('setShipId', [shipId])
def b_setShipId(self, shipId):
self.setShipId(shipId)
self.d_setShipId(shipId)
def getShipId(self):
return self.shipId
def setMaxHp(self, maxHp):
self.maxHp = maxHp
def d_setMaxHp(self, maxHp):
self.sendUpdate('setMaxHp', [maxHp])
def b_setMaxHp(self, maxHp):
self.setMaxHp(maxHp)
self.d_setMaxHp(maxHp)
def getMaxHp(self):
return self.maxHp
def setHp(self, hp, quietly):
self.hp = hp
self.quietly = quietly
def d_setHp(self, hp, quietly):
self.sendUpdate('setHp', [hp, quietly])
def b_setHp(self, hp, quietly = False):
self.setHp(hp, quietly)
self.d_setHp(hp, quietly)
def getHp(self):
return (self.hp, self.quietly)
def setLuck(self, luck):
self.luck = luck
def d_setLuck(self, luck):
self.sendUpdate('setLuck', [luck])
def b_setLuck(self, luck):
self.setLuck(luck)
self.d_setLuck(luck)
def getLuck(self):
return self.luck
def setMaxLuck(self, maxLuck):
self.maxLuck = maxLuck
def d_setMaxLuck(self, maxLuck):
self.sendUpdate('setMaxLuck', [maxLuck])
def b_setMaxLuck(self, maxLuck):
self.setMaxLuck(maxLuck)
self.d_setMaxLuck(maxLuck)
def getMaxLuck(self):
return self.maxLuck
def setMaxMojo(self, maxMojo):
self.maxMojo = maxMojo
def d_setMaxMojo(self, maxMojo):
self.sendUpdate('setMaxMojo', [maxMojo])
def b_setMaxMojo(self, maxMojo):
self.setMaxMojo(maxMojo)
self.d_setMaxMojo(maxMojo)
def getMaxMojo(self):
return self.maxMojo
def setMojo(self, mojo):
self.mojo = mojo
def d_setMojo(self, mojo):
self.sendUpdate('setMojo', [mojo])
def b_setMojo(self, mojo):
self.setMojo(mojo)
self.d_setMojo(self.mojo)
def getMojo(self):
return self.mojo
def setSwiftness(self, swiftness):
self.swiftness = swiftness
def d_setSwiftness(self, swiftness):
self.sendUpdate('setSwiftness', [swiftness])
def b_setSwiftness(self, swiftness):
self.setSwiftness(swiftness)
self.d_setSwiftness(swiftness)
def getSwiftness(self):
return self.swiftness
def setMaxSwiftness(self, maxSwiftness):
self.maxSwiftness = maxSwiftness
def d_setMaxSwiftness(self, maxSwiftness):
self.sendUpdate('setMaxSwiftnes', [maxSwiftness])
def b_setMaxSwiftness(self, maxSwiftness):
self.setMaxSwiftnes(maxSwiftness)
self.d_setMaxSwiftness(maxSwiftness)
def getMaxSwiftness(self):
return self.maxSwiftness
def setPower(self, power):
self.power = power
def d_setPower(self, power):
self.sendUpdate('setPower', [power])
def b_setPower(self, power):
self.setPower(power)
self.d_setPower(power)
def getPower(self):
return self.power
def setMaxPower(self, maxPower):
self.maxPower = maxPower
def d_setMaxPower(self, maxPower):
self.sendUpdate('setMaxPower', [maxPower])
def b_setMaxPower(self, maxPower):
self.setMaxPower(maxPower)
self.d_setMaxPower(maxPower)
def getMaxPower(self):
return self.maxPower
def setLuckMod(self, luckMod):
self.luckMod = luckMod
def d_setLuckMod(self, luckMod):
self.sendUpdate('setLuckMod', [luckMod])
def b_setLuckMod(self, luckMod):
self.setLuckMod(luckMod)
self.d_setLuckMod(luckMod)
def getLuckMod(self):
return self.luckMod
def setMojoMod(self, mojoMod):
self.mojoMod = mojoMod
def d_setMojoMod(self, mojoMod):
self.sendUpdate('setMojoMod', [mojoMod])
def b_setMojoMod(self, mojoMod):
self.setMojoMod(mojoMod)
self.d_setMojoMod(mojoMod)
def getMojoMod(self):
return self.mojoMod
def getSwiftnessMod(self):
return self.swiftnessMod
def getHasteMod(self):
return self.hasteMod
def getStunMod(self):
return self.stunMod
def getPowerMod(self):
return self.powerMod
def setCombo(self, combo, teamCombo, comboDamage, attackerId):
self.combo = combo
self.teamCombo = teamCombo
self.comboDamage = comboDamage
self.attackerId = attackerId
def d_setCombo(self, combo, teamCombo, comboDamage, attackerId):
self.sendUpdate('setCombo', [combo, teamCombo, comboDamage, attackerId])
def b_setCombo(self, combo, teamCombo, comboDamage, attackerId):
self.setCombo(self, combo, teamCombo, comboDamage, attackerId)
self.d_setCombo(self, combo, teamCombo, comboDamage, attackerId)
def getCombo(self):
return [self.combo, self.teamCombo, self.comboDamage, self.attackerId]
def setSkillEffects(self, skillEffects):
self.skillEffects = skillEffects
def d_setSkillEffects(self, skillEffects):
self.sendUpdate('setSkillEffects', [skillEffects])
def b_setSkillEffects(self, skillEffects):
self.setSkillEffects(skillEffects)
self.d_setSkillEffects(skillEffects)
def getSkillEffects(self):
return self.skillEffects
def setEnsaredTargetId(self, ensaredTargetId):
self.ensaredTargetId = ensaredTargetId
def d_setEnsaredTargetId(self, ensaredTargetId):
self.sendUpdate('setEnsaredTargetId', [ensaredTargetId])
def b_setEnsaredTargetId(self, ensaredTargetId):
self.setEnsaredTargetId(ensaredTargetId)
self.d_setEnsaredTargetId(ensaredTargetId)
def getEnsnaredTargetId(self):
return self.ensaredTargetId
def setLevel(self, level):
self.level = level
def d_setLevel(self, level):
self.sendUpdate('setLevel', [level])
def b_setLevel(self, level):
self.setLevel(level)
self.d_setLevel(level)
def getLevel(self):
return self.level
def setInInvasion(self, inInvasion):
self.inInvasion = inInvasion
def d_setInInvasion(self, inInvasion):
self.sendUpdate('setInInvasion', [inInvasion])
def b_setInInvasion(self, inInvasion):
self.setInInvasion(inInvasion)
self.d_setInInvasion(inInvasion)
def getInInvasion(self):
return self.inInvasion
def setVisZone(self, visZone):
self.visZone = visZone
def d_setVisZone(self, visZone):
self.sendUpdate('setVisZone', [visZone])
def b_setVisZone(self, visZone):
self.setVisZone(visZone)
self.d_setVisZone(visZone)
def setEmote(self, emoteId):
if emoteId not in EmoteGlobals.emotes:
# Log potential hacking
self.air.logPotentialHacker(
message='Avatar attempted to use invalid emote',
accountId=self.air.getAccountIdFromSender(),
emoteId=emoteId)
return
prereqs = EmoteGlobals.getEmotePrereqs(emoteId)
if prereqs:
fault = False
for prereq in prereqs:
if not prereq.avIsReadyAI(self):
fault = True
break
if fault:
# Log potential hacking
self.air.logPotentialHacker(
message='Avatar attempted to use emote that does not meet requirements',
accountId=self.air.getAccountIdFromSender(),
emoteId=emoteId)
return
self.sendUpdate('playEmote', [emoteId])
| 27.819672
| 98
| 0.6562
| 11,599
| 0.976429
| 0
| 0
| 0
| 0
| 0
| 0
| 530
| 0.044617
|
c82c884ecd2fbb3f7bbb619a3ed6f25fe4c5e6e9
| 484
|
py
|
Python
|
django_migrate_project/executor.py
|
dsanders11/django-migrate-project
|
68b637d08dfb6aecdf75d836ab4736e1ba624dcc
|
[
"MIT"
] | 2
|
2018-12-27T05:15:48.000Z
|
2018-12-28T00:37:03.000Z
|
django_migrate_project/executor.py
|
dsanders11/django-migrate-project
|
68b637d08dfb6aecdf75d836ab4736e1ba624dcc
|
[
"MIT"
] | null | null | null |
django_migrate_project/executor.py
|
dsanders11/django-migrate-project
|
68b637d08dfb6aecdf75d836ab4736e1ba624dcc
|
[
"MIT"
] | null | null | null |
from __future__ import unicode_literals
from django.db.migrations.executor import MigrationExecutor
from django_migrate_project.loader import ProjectMigrationLoader
class ProjectMigrationExecutor(MigrationExecutor):
def __init__(self, connection, progress_callback=None):
super(ProjectMigrationExecutor, self).__init__(
connection, progress_callback)
# Change out the migration loader
self.loader = ProjectMigrationLoader(self.connection)
| 32.266667
| 64
| 0.789256
| 314
| 0.64876
| 0
| 0
| 0
| 0
| 0
| 0
| 33
| 0.068182
|
c82da452c1cd0b32e3a74054db0ed0b447787df9
| 31,942
|
py
|
Python
|
agora_deploy/OVF.py
|
ThinkBriK/fwap
|
b01e3b856ad29f6cfac7d5e368deb18faed7d113
|
[
"Apache-2.0"
] | null | null | null |
agora_deploy/OVF.py
|
ThinkBriK/fwap
|
b01e3b856ad29f6cfac7d5e368deb18faed7d113
|
[
"Apache-2.0"
] | null | null | null |
agora_deploy/OVF.py
|
ThinkBriK/fwap
|
b01e3b856ad29f6cfac7d5e368deb18faed7d113
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
"""
Script pour déployer une VM TAT1 dont on a récupéré les informations
Ecrit par Benoit BARTHELEMY
benoit.barthelemy2@open-groupe.com
"""
import atexit
import datetime
import re
import ssl
from argparse import ArgumentParser
from getpass import getpass
from os import path
from sys import exit
from threading import Thread
from time import sleep
import requests
from pyVim import connect
from pyVmomi import vim
from pyVmomi import vmodl
from agora_deploy import FWAP
from agora_tools import tasks
# todo Ajouter une fonction qui a partir d'un folder donne tout son path en string
def get_args():
"""
Récuépration des informations de la ligne de commande
"""
parser = ArgumentParser(description='Arguments for talking to vCenter')
parser.add_argument('--eol',
required=False,
action='store',
default='Perenne',
help='End of life of the VM (default=Perenne)')
parser.add_argument('--demandeur',
required=True,
action='store',
help='Name of the requester')
parser.add_argument('--fonction',
required=True,
action='store',
help='Function of the VM')
parser.add_argument('-s', '--vcenter',
required=True,
action='store',
help='vCenter to connect to.')
parser.add_argument('-o', '--port',
type=int,
default=443,
action='store',
help='Port to connect on.')
parser.add_argument('-u', '--user',
required=True,
action='store',
help='Username to use.')
parser.add_argument('-p', '--password',
required=False,
action='store',
help='Password to use.')
parser.add_argument('--datacenter_name',
required=False,
action='store',
default=None,
help='Name of the Datacenter you\
wish to use. If omitted, the first\
datacenter will be used.')
parser.add_argument('--datastore_name',
required=False,
action='store',
default=None,
help='Datastore you wish the VM to be deployed to. \
If left blank, VM will be put on the first \
datastore found.')
parser.add_argument('--cluster_name',
required=False,
action='store',
default=None,
help='Name of the cluster you wish the VM to\
end up on. If left blank the first cluster found\
will be used')
parser.add_argument('-v', '--vmdk_path',
required=True,
action='store',
default=None,
help='Path of the VMDK file to deploy.')
parser.add_argument('-f', '--ovf_path',
dest='ovf_path',
required=True,
action='store',
default=None,
help='Path of the OVF file to deploy.')
parser.add_argument('-n', '--name',
required=True,
action='store',
default=None,
help='Name of the new VM.')
parser.add_argument('-e', '--esxi',
required=True,
action='store',
help='ESXi to deploy to.')
args = parser.parse_args()
if not args.password:
args.password = getpass(prompt='Enter password: ')
return args
def get_ovf_descriptor(ovf_path):
"""
Lecture du descripteur OVF
"""
if path.exists(ovf_path):
with open(ovf_path, 'r') as f:
try:
ovfd = f.read()
f.close()
return ovfd
except:
print("Could not read file: %s" % ovf_path)
exit(1)
def get_obj(content, vimtype, name):
"""
Récupération des objets vsphere par nom
"""
obj = None
container = content.viewManager.CreateContainerView(content.rootFolder, vimtype, True)
for c in container.view:
if c.name == name:
obj = c
break
return obj
def get_obj_in_list(obj_name, obj_list):
"""
récupération d'un objet dans une liste par nom
"""
for o in obj_list:
if o.name == obj_name:
return o
print("Unable to find object by the name of %s in list:\n%s" %
(obj_name, map(lambda o: o.name, obj_list)))
exit(1)
def get_objects(si, datacenter=None, datastore=None, cluster=None):
"""
Retourne un dictionnaire contenant les informations nécessaires à un déploiement d'OVF.
"""
# Get datacenter object.
datacenter_list = []
for toplevel_entity in si.content.rootFolder.childEntity:
if type(toplevel_entity) == vim.Datacenter:
datacenter_list.append(toplevel_entity)
if datacenter:
datacenter_obj = get_obj_in_list(datacenter, datacenter_list)
else:
datacenter_obj = datacenter_list[0]
# Get datastore object.
datastore_list = []
for datacenter_entity in datacenter_list:
for datastore_entity in datacenter_entity.datastoreFolder.childEntity:
if type(datastore_entity) == vim.Datastore:
datastore_list.append(datastore_entity)
if datastore:
datastore_obj = get_obj_in_list(datastore, datastore_list)
elif len(datastore_list) > 0:
datastore_obj = datastore_list[0]
else:
print("No datastores found in DC (%s)." % datacenter_obj.name)
datastore_obj = None
# Get cluster object.
cluster_list = []
for datacenter_entity in datacenter_list:
for cluster_entity in datacenter_entity.hostFolder.childEntity:
if type(cluster_entity) == vim.ClusterComputeResource:
cluster_list.append(cluster_entity)
if cluster:
cluster_obj = get_obj_in_list(cluster, cluster_list)
elif len(cluster_list) > 0:
cluster_obj = cluster_list[0]
else:
print("No clusters found in DC (%s)." % datacenter_obj.name)
cluster_obj = None
# Generate resource pool.
resource_pool_obj = cluster_obj.resourcePool
return {"datacenter": datacenter_obj,
"datastore": datastore_obj,
"resource pool": resource_pool_obj}
def keep_lease_alive(lease):
"""
Garde le lease du VMDK ouvert le temps du transfert.
"""
while (True):
sleep(5)
try:
# Choosing arbitrary percentage to keep the lease alive.
lease.HttpNfcLeaseProgress(50)
if (lease.state == vim.HttpNfcLease.State.done):
return
# If the lease is released, we get an exception.
# Returning to kill the thread.
except:
return
def connect_vcenter(vcenter, user, password, port=443):
""" Renvoie un objet service_instance représentant une connexion vcenter """
# Suppression de la vérification SSL
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
context.verify_mode = ssl.CERT_NONE
try:
service_instance = connect.SmartConnect(host=vcenter,
user=user,
pwd=password,
port=port,
sslContext=context,
)
except:
print("Unable to connect to %s" % vcenter)
exit(1)
# Déconnexion auto à la fermeture
atexit.register(connect.Disconnect, service_instance)
return service_instance
def uploadOVF(url=None, fileFullPath=None):
""" Permet l'upload de l'OVF sur l'ESX voulu """
headers = {'Content-Type': 'application/x-vnd.vmware-streamVmdk'}
# Upload en Streaming vu la taille des images de VMs
with open(fileFullPath, 'rb') as f:
r = requests.post(url=url, headers=headers, data=f, verify=False)
# Gestion des erreurs
r.raise_for_status()
def run_command_in_guest(vm, command, arguments, guestUser, guestPassword, si):
""" Permet de lancer une commande via les vmWare agora_tools dans l'OS d'une VM"""
exitCode = None
try:
cmdspec = vim.vm.guest.ProcessManager.ProgramSpec(arguments=arguments, programPath=command)
# Credentials used to login to the guest system
creds = vim.vm.guest.NamePasswordAuthentication(username=guestUser, password=guestPassword)
# pid de la commande
pid = si.content.guestOperationsManager.processManager.StartProgramInGuest(vm=vm, auth=creds, spec=cmdspec)
except vim.fault.GuestComponentsOutOfDate as e:
print(e.msg)
except vim.fault.InvalidGuestLogin:
print('Login OS incorrect')
return 1
# Code Retour
while exitCode is None:
try:
exitCode = \
si.content.guestOperationsManager.processManager.ListProcessesInGuest(vm=vm, auth=creds, pids=pid)[
0].exitCode
# Si on ne peut plus se logger c'est que le MDP root a été changé
except vim.fault.InvalidGuestLogin:
exitCode = 0
sleep(1)
return exitCode
def list_process_pids_in_guest(vm, proc_name, guestUser, guestPassword, si):
""" Permet de lister tous les processus de l'OS d'une VM correspondant à un nom de process """
pids = []
try:
# Credentials used to login to the guest system
creds = vim.vm.guest.NamePasswordAuthentication(username=guestUser, password=guestPassword)
processes = si.content.guestOperationsManager.processManager.ListProcessesInGuest(vm=vm, auth=creds)
for proc in processes:
if re.search(proc_name, proc.name):
pids.append(proc.pid)
except vim.fault.GuestComponentsOutOfDate as e:
print(e.msg)
return pids
def kill_process_in_guest(vm, pid, guestUser, guestPassword, si):
"""
Permet de tuer un processus dans l'OS d'une VM
:param vm: nom de la VM
:param pid: PID du process à tuer
:param guestUser: Nom du compte dans l'OS de la VM (doit avoir les droits nécessaires)
:param guestPassword: Mot de passe du compte dans l'OS de la VM
:param si:
:return:
"""
try:
creds = vim.vm.guest.NamePasswordAuthentication(username=guestUser, password=guestPassword)
si.content.guestOperationsManager.processManager.TerminateProcessInGuest(vm=vm, auth=creds, pid=pid)
except vim.fault.GuestComponentsOutOfDate as e:
print(e.msg)
class vmDeploy(object):
""" Déploiement d'une VM Tat1 depuis un OVF """
def __init__(self, ovfpath, name, vcpu, ram, lan, datastore, esx, vmfolder, ep, rds, demandeur, fonction, eol,
vcenter, disks, deployer, mtl=None,
**kwargs):
""" Constructeur """
self.vm_name = name
self.ovf_path = ovfpath
self.ovf_descriptor = get_ovf_descriptor(ovfpath)
self.nb_cpu = vcpu
self.ram = ram
self.wanted_lan_name = lan
self.ovf_lan = lan
self.ovf_manager = None
self.datastore_name = datastore
self.esx_host = esx
self.vm_folder = vmfolder
self.ep = ep.upper()
self.rds = rds.upper()
self.disks = disks
self.deployed_disks = 0
self.demandeur = demandeur
self.fonction = fonction
self.eol = eol
self.vcenter = vcenter
self.mtl = mtl
self.deployer = deployer
def _add_disks(self, si):
"""
Ajout des disques à la VM définie par l'objet
:param si: service_instance représentant la connexion vcenter
"""
for disk in self.disks:
# print(disk)
# On déploie le disque de la taille des partitions + la taille des partitions sizées sur la RAM (+5% pour EXT3) + 64 M0 (pour LVM)
mosize = int(
disk.partsize + (disk.extra_mem_times_size * (self.ram / 1024 / 1024 + 1) * 1024 * 105 / 100) + 64)
# On arrondi aux 100 Mo supérieur
if (mosize % 100) > 0:
morounded = mosize // 100 + 1
else:
morounded = mosize / 100
self.add_disk(disk_size=morounded * 100, si=si)
def _connect_switch(self, si):
"""
Connexion aux switchs
:param si: service_instance représentant la connexion vcenter
"""
new_vm_spec = vim.vm.ConfigSpec()
# Changement de vSwitch
vm = self.vm
# Ne fonctionne wue pour la première interface
device_change = []
for device in vm.config.hardware.device:
if isinstance(device, vim.vm.device.VirtualEthernetCard):
nicspec = vim.vm.device.VirtualDeviceSpec()
nicspec.operation = vim.vm.device.VirtualDeviceSpec.Operation.edit
nicspec.device = device
nicspec.device.wakeOnLanEnabled = True
nicspec.device.backing = vim.vm.device.VirtualEthernetCard.NetworkBackingInfo()
nicspec.device.backing.network = get_obj(si.RetrieveContent(), [vim.Network],
self.wanted_lan_name)
nicspec.device.backing.deviceName = self.wanted_lan_name
nicspec.device.connectable = vim.vm.device.VirtualDevice.ConnectInfo()
nicspec.device.connectable.startConnected = True
nicspec.device.connectable.allowGuestControl = True
device_change.append(nicspec)
break
new_vm_spec.deviceChange = device_change
task = vm.ReconfigVM_Task(new_vm_spec)
task.SetTaskDescription(vmodl.LocalizableMessage(key="pyAgora_connect", message="Connecting LAN"))
tasks.wait_for_tasks(si, [task])
def _correct_cdrom(self, si):
"""
Connexion du cdrom au cdrom du client (pour éviter les problèmes avec des OVF mal faits)
:param si: service_instance représentant la connexion vcenter
"""
# Rajoute la sélection systématique du CDROM du client (si l'hôte a un CD dans le lecteur tout foire)
virtual_cdrom_device = None
for dev in self.vm.config.hardware.device:
if isinstance(dev, vim.vm.device.VirtualCdrom):
virtual_cdrom_device = dev
if not virtual_cdrom_device:
raise RuntimeError('Virtual CDROM could not '
'be found.')
virtual_cd_spec = vim.vm.device.VirtualDeviceSpec()
virtual_cd_spec.operation = vim.vm.device.VirtualDeviceSpec.Operation.edit
virtual_cd_spec.device = vim.vm.device.VirtualCdrom()
virtual_cd_spec.device.controllerKey = virtual_cdrom_device.controllerKey
virtual_cd_spec.device.key = virtual_cdrom_device.key
virtual_cd_spec.device.connectable = vim.vm.device.VirtualDevice.ConnectInfo()
virtual_cd_spec.device.backing = vim.vm.device.VirtualCdrom.RemotePassthroughBackingInfo()
# Allowing guest control
virtual_cd_spec.device.connectable.allowGuestControl = True
dev_changes = []
dev_changes.append(virtual_cd_spec)
spec = vim.vm.ConfigSpec()
spec.deviceChange = dev_changes
task = self.vm.ReconfigVM_Task(spec=spec)
task.SetTaskDescription(
vmodl.LocalizableMessage(key="pyAgora_cdrom_update", message="Connecting to client CDROM"))
tasks.wait_for_tasks(si, [task])
def resize(self, si, nb_cpu, ram):
"""
Permet de resizer les ressources compute d'une VM
:param si: service_instance représentant la connexion vcenter
:param nb_cpu: nombre de cpus
:param ram: taille de la ram en octets
"""
new_vm_spec = vim.vm.ConfigSpec()
new_vm_spec.numCPUs = nb_cpu
new_vm_spec.memoryMB = ram // 1024
task = self.vm.ReconfigVM_Task(new_vm_spec)
task.SetTaskDescription(vmodl.LocalizableMessage(key="pyAgora_resize", message="Resizing VM Compute resources"))
tasks.wait_for_tasks(si, [task])
def _ovf_deploy(self, si):
"""
Déploiement "Basique" de l'OVF, sans métadonnées et autres spécificités Agora
:param si:service_instance représentant la connexion vcenter
"""
self.ovf_manager = si.content.ovfManager
ovf_object = self.ovf_manager.ParseDescriptor(self.ovf_descriptor, vim.OvfManager.ParseDescriptorParams())
self.ovf_lan_name = ovf_object.network[0].name
wanted_lan = get_obj(si.content, vim.Network, self.wanted_lan_name)
spec_params = vim.OvfManager.CreateImportSpecParams(entityName=self.vm_name)
# On lance l'import OVF dans le resource Pool choisi en paramètre
chosen_host = get_obj(si.content, vim.HostSystem, self.esx_host)
if type(self.vm_folder) == vim.Folder:
chosen_folder = self.vm_folder
else:
chosen_folder = get_obj(si.content, vim.Folder, self.vm_folder)
# On prépare la configuration de l'import à partir des arguments
objs = {}
objs['datastore'] = get_obj(content=si.content, vimtype=vim.Datastore, name=self.datastore_name)
objs['resource pool'] = chosen_host.parent.resourcePool
if type(chosen_host.parent) == vim.ClusterComputeResource:
objs['cluster'] = chosen_host.parent
else:
objs['cluster'] = None
# On crée l'objet représentant l'import : import_spec
import_spec = self.ovf_manager.CreateImportSpec(self.ovf_descriptor,
objs["resource pool"],
objs["datastore"],
spec_params)
# TODO : Rajouter de l'error handling sur la création du Lease (nom de machine existante etc ...)
lease = objs["resource pool"].ImportVApp(import_spec.importSpec, folder=chosen_folder, host=chosen_host)
msg = {str}
keepalive_thread = Thread(target=keep_lease_alive, args=(lease,))
keepalive_thread.start()
while True:
# On attend que le système soit prêt à recevoir
if lease.state == vim.HttpNfcLease.State.ready:
# Spawn a dawmon thread to keep the lease active while POSTing
# VMDK.
keepalive_thread = Thread(target=keep_lease_alive, args=(lease,))
keepalive_thread.start()
for disk in import_spec.fileItem:
for devurl in lease.info.deviceUrl:
if devurl.importKey == disk.deviceId:
url = devurl.url.replace('*', self.vcenter)
break
fullpath = path.dirname(self.ovf_path) + '\\' + disk.path
print("Uploading %s to %s." % (fullpath, url))
# TODO faire l'upload dans un thread et MAJ l'avancement de l'upload dans vSphere
uploadOVF(url=url, fileFullPath=fullpath)
print("Upload of %s : Done." % fullpath)
lease.HttpNfcLeaseComplete()
self.vm = lease.info.entity
keepalive_thread.join()
break
elif lease.state == vim.HttpNfcLease.State.error:
print("Lease error: " + lease.state.error)
exit(1)
def _update_metadata(self):
"""
Mise à jour des attributs de la VM qui vient d'être déployée
"""
# TODO Créer une méthode publique pour mettre à jour un ou plusieurs attributs
# MAJ Attributs vSphere
self.vm.setCustomValue(key="Admin Systeme", value="POP")
self.vm.setCustomValue(key="Date creation", value=str(datetime.date.today()))
self.vm.setCustomValue(key="Date fin de vie", value=self.eol)
self.vm.setCustomValue(key="Demandeur", value=self.demandeur)
self.vm.setCustomValue(key="Environnement", value=self.ep)
self.vm.setCustomValue(key="Fonction", value=self.fonction)
self.vm.setCustomValue(key="LAN", value=self.wanted_lan_name)
def _update_annotation(self, si):
"""
Mise à jour des annotations de la VM qui vient d'être déployée (Fait en dernier pour signifier la fin du déploiement)
:param si: service_instance représentant la connexion vcenter
:return:
"""
spec = vim.vm.ConfigSpec()
text = "Déployé par : " + self.deployer
spec.annotation = self.vm.config.annotation + "\n" + len(text) * '-' + "\n" + text + "\n" + len(text) * '-'
task = self.vm.ReconfigVM_Task(spec)
task.SetTaskDescription(
vmodl.LocalizableMessage(key="pyAgora_setdeployer", message="Updating Deployer Name (End of deployment)"))
tasks.wait_for_tasks(si, [task])
def _update_ovf_properties(self, si):
"""
Mise à jour des propriétés OVF utilisées par les scripts TAT1
:param si: service_instance représentant la connexion vcenter
"""
new_vm_spec = vim.vm.ConfigSpec()
# MAJ variables OVF
new_vAppConfig = vim.vApp.VmConfigSpec()
new_vAppConfig.property = []
for ovf_property in self.vm.config.vAppConfig.property:
updated_spec = vim.vApp.PropertySpec()
updated_spec.info = ovf_property
updated_spec.operation = vim.option.ArrayUpdateSpec.Operation.edit
if ovf_property.id == 'EP':
updated_spec.info.value = self.ep
elif ovf_property.id == 'hostname':
updated_spec.info.value = self.vm_name
elif ovf_property.id == 'RDS':
updated_spec.info.value = self.rds
elif ovf_property.id == 'url_referentiel':
if self.mtl:
updated_spec.info.value = 'http://' + self.mtl + '/repo/agora/scripts'
else:
if self.ep == 'D' or self.ep == 'E':
updated_spec.info.value = 'http://a82amtl01.agora.msanet/repo/agora/scripts'
else:
updated_spec.info.value = 'http://a82amtl02.agora.msanet/repo/agora/scripts'
elif ovf_property.id == 'MTL_HOST_REPO':
if self.mtl:
updated_spec.info.value = self.mtl
else:
if self.ep == 'D' or self.ep == 'E':
updated_spec.info.value = 'a82amtl01.agora.msanet'
else:
updated_spec.info.value = 'a82amtl02.agora.msanet'
else:
continue
new_vAppConfig.property.append(updated_spec)
new_vm_spec.vAppConfig = new_vAppConfig
new_vm_spec.vAppConfigRemoved = False
task = self.vm.ReconfigVM_Task(new_vm_spec)
task.SetTaskDescription(vmodl.LocalizableMessage(key="pyAgora_writeovf", message="Writing OVF values"))
tasks.wait_for_tasks(si, [task])
def _update_root_pw_on_first_boot(self, newRootPassword, si):
"""
Changement du mot de passe root lors d'un déploiement TAT1
:param newRootPassword: nouveau mot de passe root
:param si: service_instance représentant la connexion vcenter
"""
# Changement du MDP root
# On attend que le fichier /Agora/build/config/AttenteRootpw soit créé
while True:
try:
if 0 == run_command_in_guest(vm=self.vm, command='/usr/bin/test',
arguments="-f /Agora/build/config/AttenteRootpw",
guestUser='root', guestPassword='', si=si):
break
# On catche l'exception pour éviter de planter en raison des agora_tools pas lancés
except (vim.fault.GuestOperationsUnavailable):
pass
sleep(3)
# On sette le MDP root
run_command_in_guest(vm=self.vm, command='/bin/echo',
arguments=newRootPassword + '>/Agora/build/config/rootpw', guestUser='root',
guestPassword='', si=si)
# On kille les dialog
pids = list_process_pids_in_guest(vm=self.vm, proc_name='dialog', guestUser='root', guestPassword='', si=si)
while True:
if len(pids) == 0:
break
for pid in pids:
kill_process_in_guest(vm=self.vm, pid=pid, guestUser='root', guestPassword='', si=si)
sleep(1)
pids = list_process_pids_in_guest(vm=self.vm, proc_name='dialog', guestUser='root', guestPassword='', si=si)
def add_disk(self, disk_size, si, disk_type=''):
"""
Permet d'ajouter un disque à une VM
:param disk_size: Taille du disque en Mo
:param si: service_instance représentant la connexion vcenter
:param disk_type: Si "thin" création en thin provisionning
Ajout d'un disque à la VM
"""
spec = vim.vm.ConfigSpec()
vm = self.vm
# get all disks on a VM, set unit_number to the next available
for dev in vm.config.hardware.device:
if hasattr(dev.backing, 'fileName'):
unit_number = int(dev.unitNumber) + 1 + self.deployed_disks
# unit_number 7 reserved for scsi controller
if unit_number == 7:
unit_number += 1
if unit_number >= 16:
print("Trop de disques !!!!")
exit(1)
if isinstance(dev, vim.vm.device.VirtualSCSIController):
controller = dev
# add disk here
dev_changes = []
new_disk_kb = int(disk_size) * 1024
disk_spec = vim.vm.device.VirtualDeviceSpec()
disk_spec.fileOperation = "create"
disk_spec.operation = vim.vm.device.VirtualDeviceSpec.Operation.add
disk_spec.device = vim.vm.device.VirtualDisk()
disk_spec.device.backing = \
vim.vm.device.VirtualDisk.FlatVer2BackingInfo()
if disk_type == 'thin':
disk_spec.device.backing.thinProvisioned = True
disk_spec.device.backing.diskMode = 'persistent'
disk_spec.device.unitNumber = unit_number
disk_spec.device.capacityInKB = new_disk_kb
disk_spec.device.controllerKey = controller.key
dev_changes.append(disk_spec)
spec.deviceChange = dev_changes
task = vm.ReconfigVM_Task(spec=spec)
task.SetTaskDescription(vmodl.LocalizableMessage(key="pyAgora_disk", message="Adding disks"))
tasks.wait_for_tasks(si, [task])
self.deployed_disks += 1
def boot(self, si):
"""
Boot de la VM
:param si: service_instance représentant la connexion vcenter
"""
task = self.vm.PowerOn()
tasks.wait_for_tasks(si, [task])
def deploy(self, si, guestRootPassword='aaaaa'):
"""
Déploiement d'une VM Tat1 étape par étape
:param si: service_instance représentant la connexion vcenter
:param guestRootPassword: mot de passe root de la VM
"""
self.guestRootPassword = guestRootPassword
self._ovf_deploy(si=si)
self.resize(nb_cpu=self.nb_cpu, ram=self.ram, si=si)
self._update_metadata()
self._update_ovf_properties(si=si)
self._connect_switch(si=si)
self._add_disks(si=si)
self._correct_cdrom(si=si)
self.take_snapshot(service_instance=si, snapshot_name="Avant premier boot",
description="Snapshot automatique avant premier boot")
self.boot(si=si)
self._update_root_pw_on_first_boot(newRootPassword=self.guestRootPassword, si=si)
self.upgrade_tools(si=si)
self.rebootAfterReconfig(si=si)
self._update_annotation(si=si)
def take_snapshot(self, service_instance, snapshot_name="Snapshot", description=None, dumpMemory=False,
quiesce=False):
"""
Prise d'un snapshot de la VM
:param service_instance: service_instance représentant la connexion vcenter
:param snapshot_name: Nom du snapshot
:param description: Description du snapshot
:param dumpMemory: Ajout de l'état de la mémoire dans le snapshot ? (défaut : non)
:param quiesce: Demander un état figé du système de fichier (quiescence) ? (défaut : non)
"""
vm = self.vm
task = vm.CreateSnapshot(snapshot_name, description, dumpMemory, quiesce)
tasks.wait_for_tasks(service_instance, [task])
def upgrade_tools(self, si):
"""
Mise à jour des VMware Tools
:param si: service_instance représentant la connexion vcenter
"""
# MAJ des agora_tools
task = self.vm.UpgradeTools()
tasks.wait_for_tasks(si, [task])
def rebootAfterReconfig(self, si):
"""
Reboot à la fin du reconfig (détecté par la présence du fichier /Agora/build/config/code_retour_install)
:param si: service_instance représentant la connexion vcenter
"""
# On attend la fin du reconfig
while True:
try:
if 0 == run_command_in_guest(vm=self.vm, command='/usr/bin/test',
arguments="-f /Agora/build/config/code_retour_install",
guestUser='root', guestPassword=self.guestRootPassword, si=si):
break
# On catche l'exception pour éviter de planter en raison des agora_tools pas lancés
except (vim.fault.GuestOperationsUnavailable):
pass
sleep(3)
# On reboote
self.vm.RebootGuest()
def main():
# args = get_args()
# TODO a remplacer par args une fois le programme fonctionnel
disks = []
disks.append(FWAP.ServerDisk(name='/dev/sde', vg="vg_test", lvs="lv_test", partsize=1024,
extra_mem_times_size=0))
deployment = vmDeploy(ovfpath='D:\VMs\OVF\ovf_53X_64_500u1.ova\ovf_53X_64_500u1.ovf',
name='a82aflr03',
vcpu=1,
ram=1 * 1024 * 1024,
lan='LAN Data',
cluster='Cluster_Agora',
datastore='CEDRE_005',
datacenter='Zone LAN AGORA',
esx='a82hhot20.agora.msanet',
vmfolder='_Autres',
ep='I',
rds='RXPM',
demandeur='Benoit BARTHELEMY',
fonction="tests déploiement",
eol="Temporaire",
vcenter="a82avce02.agora.msanet",
disks=disks,
deployer='c82nbar')
si = connect_vcenter(vcenter='a82avce02.agora.msanet', user='c82nbar', password='W--Vrtw2016-1')
res = deployment.deploy(si)
return res
if __name__ == "__main__":
exit(main())
| 40.794381
| 142
| 0.589475
| 19,430
| 0.606259
| 0
| 0
| 0
| 0
| 0
| 0
| 9,242
| 0.288371
|
c82e3f7cd86031ad65e19765bc6e16f53e31ebc5
| 1,393
|
py
|
Python
|
src/grokcore/formlib/tests/base/form/customautoform.py
|
zopefoundation/grokcore.formlib
|
afcb6fce344ef60e3fec2aa839c13a61228d8d23
|
[
"ZPL-2.1"
] | null | null | null |
src/grokcore/formlib/tests/base/form/customautoform.py
|
zopefoundation/grokcore.formlib
|
afcb6fce344ef60e3fec2aa839c13a61228d8d23
|
[
"ZPL-2.1"
] | null | null | null |
src/grokcore/formlib/tests/base/form/customautoform.py
|
zopefoundation/grokcore.formlib
|
afcb6fce344ef60e3fec2aa839c13a61228d8d23
|
[
"ZPL-2.1"
] | 2
|
2015-04-03T04:51:14.000Z
|
2018-01-12T06:51:36.000Z
|
"""
A form view can have a custom form_fields but reusing those fields that
were deduced automatically, using grok.AutoFields:
>>> grok.testing.grok(__name__)
We only expect a single field to be present in the form, as we omitted 'size':
>>> from zope import component
>>> from zope.publisher.browser import TestRequest
>>> request = TestRequest()
>>> view = component.getMultiAdapter((Mammoth(), request), name='edit')
>>> len(view.form_fields)
1
>>> [w.__name__ for w in view.form_fields]
['name']
>>> view = component.getMultiAdapter((Mammoth2(), request), name='edit2')
>>> len(view.form_fields)
1
>>> [w.__name__ for w in view.form_fields]
['size']
"""
import grokcore.formlib as grok
from zope import schema
from zope.interface import Interface, implementer
class IMammoth(Interface):
name = schema.TextLine(title=u"Name")
size = schema.TextLine(title=u"Size", default=u"Quite normal")
@implementer(IMammoth)
class Mammoth(grok.Context):
pass
class Edit(grok.EditForm):
grok.context(Mammoth)
form_fields = grok.AutoFields(Mammoth).omit('size')
class Mammoth2(grok.Context):
class fields:
name = schema.TextLine(title=u"Name")
size = schema.TextLine(title=u"Size", default=u"Quite normal")
class Edit2(grok.EditForm):
grok.context(Mammoth2)
form_fields = grok.AutoFields(Mammoth).omit('name')
| 24.017241
| 78
| 0.701364
| 557
| 0.399856
| 0
| 0
| 60
| 0.043073
| 0
| 0
| 760
| 0.545585
|
c82fbb8e27137ecf71edbf4cda57e644ec71cfa9
| 1,398
|
py
|
Python
|
other_models/AAN/adaptive-aggregation-networks/dataloaders/cifar100_dirmap.py
|
kreimanlab/AugMem
|
cb0e8d39eb0c469da46c7c550c19229927a2bec5
|
[
"MIT"
] | 6
|
2021-04-07T15:17:24.000Z
|
2021-07-07T04:37:29.000Z
|
other_models/Remind/image_classification_experiments/dataloaders/cifar100_dirmap.py
|
kreimanlab/AugMem
|
cb0e8d39eb0c469da46c7c550c19229927a2bec5
|
[
"MIT"
] | null | null | null |
other_models/Remind/image_classification_experiments/dataloaders/cifar100_dirmap.py
|
kreimanlab/AugMem
|
cb0e8d39eb0c469da46c7c550c19229927a2bec5
|
[
"MIT"
] | null | null | null |
import os
import sys
import pandas as pd
# USAGE: python cifar100_dirmap.py <path to cifar100 dataset directory>
# Organized cifar100 directory can be created using cifar2png: https://github.com/knjcode/cifar2png
if len(sys.argv) > 1:
DATA_DIR = sys.argv[1]
else:
DATA_DIR = "./../data/cifar100"
# Get class names
class_names = [
file for file in os.listdir(os.path.join(DATA_DIR, "train"))
if os.path.isdir(os.path.join(DATA_DIR, "train", file))
]
class_names.sort()
class_dicts = [{"class": class_names[i], "label": i} for i in range(len(class_names))]
pd.DataFrame(class_dicts).to_csv("cifar100_classes.csv", index=False)
image_list = []
for train_test_idx, train_test in enumerate(["train", "test"]):
for img_class in class_names:
img_files = [f for f in os.listdir(os.path.join(DATA_DIR, train_test, img_class)) if f.endswith(".png")]
for fname in img_files:
image_list.append({
"class": img_class,
"object": 0,
"session": train_test_idx,
"im_path": os.path.join(train_test, img_class, fname),
})
img_df = pd.DataFrame(image_list)
img_df = img_df.sort_values(by=["class", "object", "session", "im_path"], ignore_index=True)
img_df["im_num"] = img_df.groupby(["class", "object", "session"]).cumcount() + 1
img_df.to_csv("cifar100_dirmap.csv")
print(img_df.head())
| 34.95
| 112
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 395
| 0.282546
|
c82fd0f2d54b784533c3c8e4ad5838457eb0383a
| 5,616
|
py
|
Python
|
tests/integration_tests/data_steward/cdr_cleaner/cleaning_rules/remove_participant_data_past_deactivation_date_test.py
|
lrwb-aou/curation
|
e80447e56d269dc2c9c8bc79e78218d4b0dc504c
|
[
"MIT"
] | 16
|
2017-06-30T20:05:05.000Z
|
2022-03-08T21:03:19.000Z
|
tests/integration_tests/data_steward/cdr_cleaner/cleaning_rules/remove_participant_data_past_deactivation_date_test.py
|
lrwb-aou/curation
|
e80447e56d269dc2c9c8bc79e78218d4b0dc504c
|
[
"MIT"
] | 342
|
2017-06-23T21:37:40.000Z
|
2022-03-30T16:44:16.000Z
|
tests/integration_tests/data_steward/cdr_cleaner/cleaning_rules/remove_participant_data_past_deactivation_date_test.py
|
lrwb-aou/curation
|
e80447e56d269dc2c9c8bc79e78218d4b0dc504c
|
[
"MIT"
] | 33
|
2017-07-01T00:12:20.000Z
|
2022-01-26T18:06:53.000Z
|
"""
Ensures there is no data past the deactivation date for deactivated participants.
Original Issue: DC-686
The intent is to sandbox and drop records dated after the date of deactivation for participants
who have deactivated from the Program
This test will mock calling the PS API and provide a returned value. Everything
within the bounds of our team will be tested.
"""
# Python imports
import mock
import os
# Third party imports
import pandas as pd
# Project imports
from app_identity import PROJECT_ID
from common import OBSERVATION
from cdr_cleaner.cleaning_rules.remove_participant_data_past_deactivation_date import (
RemoveParticipantDataPastDeactivationDate)
from constants.retraction.retract_deactivated_pids import DEACTIVATED_PARTICIPANTS
from tests.integration_tests.data_steward.cdr_cleaner.cleaning_rules.bigquery_tests_base import BaseTest
class RemoveParticipantDataPastDeactivationDateTest(
BaseTest.CleaningRulesTestBase):
@classmethod
def setUpClass(cls):
print('**************************************************************')
print(cls.__name__)
print('**************************************************************')
super().initialize_class_vars()
# set the test project identifier
project_id = os.environ.get(PROJECT_ID)
cls.project_id = project_id
# set the expected test datasets
dataset_id = os.environ.get('COMBINED_DATASET_ID')
cls.dataset_id = dataset_id
sandbox_id = f"{dataset_id}_sandbox"
cls.sandbox_id = sandbox_id
cls.kwargs = {
'table_namer': 'bar_ds',
'api_project_id': 'foo-project-id'
}
cls.rule_instance = RemoveParticipantDataPastDeactivationDate(
project_id, dataset_id, sandbox_id, **cls.kwargs)
sb_table_names = cls.rule_instance.get_sandbox_tablenames()
cls.fq_sandbox_table_names = [
f'{project_id}.{sandbox_id}.{table_name}'
for table_name in sb_table_names
]
# append table name here to ensure proper cleanup
cls.fq_sandbox_table_names.append(
f"{project_id}.{sandbox_id}.{DEACTIVATED_PARTICIPANTS}")
cls.fq_table_names = [
f"{project_id}.{dataset_id}.{tablename}"
for tablename in cls.rule_instance.affected_tables
]
cls.fq_obs_table = [
table for table in cls.fq_table_names if 'observation' in table
][0]
# call super to set up the client, create datasets, and create
# empty test tables
# NOTE: does not create empty sandbox tables.
super().setUpClass()
def setUp(self):
"""
Add data to the tables for the rule to run on.
"""
insert_fake_data_tmpls = [
self.jinja_env.from_string("""
INSERT INTO `{{fq_table_name}}`
(observation_id, person_id, observation_concept_id, observation_date,
observation_type_concept_id, observation_source_concept_id)
VALUES
-- Values to exist after running the cleaning rule --
-- 801 is before the user deactivates --
-- 802, the user doesn't deactivate --
(801, 1, 1585899, date('2019-05-01'), 45905771, 111111),
(802, 2, 1585899, date('2019-05-01'), 45905771, 222222),
-- Values that should be removed by the cleaning rule --
-- 804 is after person 1 deactivates --
-- 805 is after user 3 deactivates --
(804, 1, 1585899, date('2020-05-01'), 45905771, null),
(805, 3, 1585899, date('2020-05-01'), 45905771, 45)
""")
]
self.load_statements = []
# create the string(s) to load the data
for tmpl in insert_fake_data_tmpls:
query = tmpl.render(fq_table_name=self.fq_obs_table)
self.load_statements.append(query)
super().setUp()
@mock.patch(
'utils.participant_summary_requests.get_deactivated_participants')
@mock.patch('retraction.retract_utils.is_deid_label_or_id')
def test_removing_data_past_deactivated_date(self, mock_deid, mock_func):
"""
Validate deactivated participant records are dropped via cleaning rule.
Validates pre-conditions, test execution and post conditions based on
the load statements and the tables_and_counts variable. Uses a mock to
return a staged data frame object for this test instead of calling
the PS API.
"""
columns = ['deactivated_date', 'person_id', 'suspension_status']
values = [
['2020-01-01', 1, 'NO_CONTACT'], # corresponds with record 804
['2020-01-01', 3, 'NO_CONTACT'] # corresponds with record 805
]
deactivated_df = pd.DataFrame(values, columns=columns)
mock_func.return_value = deactivated_df
mock_deid.return_value = False
self.load_test_data(self.load_statements)
# Using the 0 position because there is only one sandbox table and
# one affected OMOP table
obs_sandbox = [
table for table in self.fq_sandbox_table_names
if 'observation' in table
][0]
tables_and_counts = [{
'name': 'observation',
'fq_table_name': self.fq_obs_table,
'fq_sandbox_table_name': obs_sandbox,
'fields': ['observation_id'],
'loaded_ids': [801, 802, 804, 805],
'sandboxed_ids': [804, 805],
'cleaned_values': [(801,), (802,)]
}]
self.default_test(tables_and_counts)
| 37.44
| 104
| 0.639067
| 4,746
| 0.845085
| 0
| 0
| 3,395
| 0.604523
| 0
| 0
| 2,790
| 0.496795
|
c8304da49c7cd5f405be7c2e58f33877d39f8895
| 2,499
|
py
|
Python
|
accounts/views.py
|
bornamir/ThreeAttemptLogin
|
a1ac34e106df913dedef80f595b9690bbc77f674
|
[
"MIT"
] | 1
|
2019-09-03T08:40:19.000Z
|
2019-09-03T08:40:19.000Z
|
accounts/views.py
|
bornamir/ThreeAttemptLogin
|
a1ac34e106df913dedef80f595b9690bbc77f674
|
[
"MIT"
] | 5
|
2021-03-19T01:11:56.000Z
|
2022-02-10T09:59:36.000Z
|
accounts/views.py
|
bornamir/ThreeAttemptLogin
|
a1ac34e106df913dedef80f595b9690bbc77f674
|
[
"MIT"
] | null | null | null |
from django.shortcuts import render,redirect
from django.contrib import messages, auth
from django.contrib.auth.models import User
from django.http.request import HttpRequest
# Create your views here.
def home(req):
return redirect('login')
def login(req):
if req.method == 'POST':
username = req.POST['username']
password = req.POST['password']
user = auth.authenticate(request=req,username = username ,password = password)
if user is not None:
auth.login(req , user)
messages.success( req, 'You have successfully logged in')
return redirect('inside')
else:
messages.error(req, 'Username or Password is incorrect')
return redirect('login')
else:
return render(req, 'accounts/login.html')
def signup(req):
if req.method == 'POST':
username = req.POST['username']
password = req.POST['password']
password2 = req.POST['password2']
if password == password2:
if User.objects.filter(username=username).exists():
messages.error(req, 'Try another username')
return redirect(signup)
else:
user = User.objects.create_user(username = username, password=password)
user.save()
messages.success(req, 'You are registered and can log in')
return redirect('login')
else:
messages.error(req, 'Passwords do not match!')
return redirect('signup')
else:
return render(req, 'accounts/signup.html')
def logout(req):
if req.method == 'POST':
auth.logout(req)
messages.success(req, 'You have logged out')
return redirect('login')
def inside(req):
if req.user.is_authenticated:
return render(req, 'accounts/inside.html')
else:
messages.error(req, 'You must login first.')
return redirect('login')
def recover(req):
if req.method == 'POST':
username = req.POST['username']
password = ''
# using this password a fail login will happen and Axes app will be notify.
user = auth.authenticate(request=req,username = username ,password = password)
#####
# Rest of the implmentation for recovering via SMS.
#####
messages.success(req, 'Your Code will be sent.')
return redirect('login')
else:
return render(req, 'accounts/recover.html')
| 33.32
| 87
| 0.602641
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 613
| 0.245298
|
c832c2b3e3054dd7f4eba7ae39631b1e43d56773
| 1,089
|
py
|
Python
|
Modules/flashlight().py
|
SZ2G-RoboticsClub/SmartCrutch-DemoBoard
|
0d32acc9c934b384612a721ecde0259c8d90a82d
|
[
"MIT"
] | 1
|
2021-07-14T01:31:17.000Z
|
2021-07-14T01:31:17.000Z
|
Modules/flashlight().py
|
SZ2G-RoboticsClub/SmartCrutch-DemoBoard
|
0d32acc9c934b384612a721ecde0259c8d90a82d
|
[
"MIT"
] | null | null | null |
Modules/flashlight().py
|
SZ2G-RoboticsClub/SmartCrutch-DemoBoard
|
0d32acc9c934b384612a721ecde0259c8d90a82d
|
[
"MIT"
] | null | null | null |
from mpython import *
import neopixel
import time
my_rgb = neopixel.NeoPixel(Pin(Pin.P13), n=24, bpp=3, timing=1)
def flashlight():
for i in range(2):
my_rgb.fill( (255, 0, 0) )
my_rgb.write()
time.sleep_ms(50)
my_rgb.fill( (0, 0, 0) )
my_rgb.write()
time.sleep_ms(50)
my_rgb.fill( (255, 0, 0) )
my_rgb.write()
time.sleep_ms(50)
my_rgb.fill( (0, 0, 0) )
my_rgb.write()
time.sleep_ms(50)
my_rgb.fill( (0, 0, 255) )
my_rgb.write()
time.sleep_ms(50)
my_rgb.fill( (0, 0, 0) )
my_rgb.write()
time.sleep_ms(50)
my_rgb.fill( (0, 0, 255) )
my_rgb.write()
time.sleep_ms(50)
my_rgb.fill( (0, 0, 0) )
my_rgb.write()
time.sleep_ms(50)
my_rgb.fill( (255, 255, 255) )
my_rgb.write()
time.sleep_ms(50)
my_rgb.fill( (0, 0, 0) )
my_rgb.write()
time.sleep_ms(50)
while True:
flashlight()
time.sleep(2)
| 25.325581
| 67
| 0.490358
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
c8332e05cc190a6c1e47fdd51cb882fbebe47837
| 1,449
|
py
|
Python
|
src/geos/_stops_with_wrong_bearing.py
|
alex-baciu-dft/Open_NaPTAN
|
abbb3e162f2638099f5050f51d81099f5a0a72a9
|
[
"MIT"
] | 24
|
2020-07-02T12:08:39.000Z
|
2021-05-12T12:07:32.000Z
|
src/geos/_stops_with_wrong_bearing.py
|
alex-baciu-dft/Open_NaPTAN
|
abbb3e162f2638099f5050f51d81099f5a0a72a9
|
[
"MIT"
] | 11
|
2020-11-04T12:14:15.000Z
|
2022-03-12T00:38:36.000Z
|
src/geos/_stops_with_wrong_bearing.py
|
alex-baciu-dft/Open_NaPTAN
|
abbb3e162f2638099f5050f51d81099f5a0a72a9
|
[
"MIT"
] | 7
|
2020-07-03T09:32:11.000Z
|
2021-07-23T18:53:09.000Z
|
from checks import NaptanCheck
# %%
class StopsBearing(NaptanCheck):
"""[summary] top has a bearing that is different to the calculated bearing
of the road link it is connected to.
The test compensates for stops being snapped to the wrong side of the road.
Therefore if the calculated bearing is E then stops with a bearing of E or W
will be allowed.
A 22.5 degree boundary threshold is also allowed. Therefore for example if the
calculated bearing in degrees is 280 (which falls in the range for W), as this
falls within 22.5 degrees of the boundary to NW (292.5 degrees) allowed
values will be W, NW and the mirror values of E, SE.
Args:
NaptanCheck ([type]): [description]
"""
check_geographic_level = 'stops'
check_name = 'stops with wrong bearing'
check_warning_level = 'medium'
@classmethod
def stops_with_wrong_bearing(cls, gdf):
""" Descriptions: The bearing shown in the data does not correspond with
the bearing as calculated by reference to the orientation of the road
at the location of the stopping point. Note this is not the direction
of the road or the direction of travel the bus is taking necessarily.
This is the way the bus is facing when it is stationary, picking/
dropping passengers
Args:
Returns:
"""
pass
| 38.131579
| 86
| 0.664596
| 1,409
| 0.972395
| 0
| 0
| 559
| 0.385783
| 0
| 0
| 1,217
| 0.83989
|
c834981294e35ab677847178ee1ed2e7e3411bb0
| 2,476
|
py
|
Python
|
charlie2/tools/trial.py
|
sammosummo/Charlie2
|
e856b9bfc83c11e57a63d487fa14a63764e3f6ae
|
[
"MIT"
] | 5
|
2019-10-10T08:22:29.000Z
|
2021-04-09T02:34:13.000Z
|
charlie2/tools/trial.py
|
sammosummo/Charlie2
|
e856b9bfc83c11e57a63d487fa14a63764e3f6ae
|
[
"MIT"
] | 20
|
2018-06-20T21:15:48.000Z
|
2018-09-06T17:13:46.000Z
|
charlie2/tools/trial.py
|
sammosummo/Charlie2
|
e856b9bfc83c11e57a63d487fa14a63764e3f6ae
|
[
"MIT"
] | 3
|
2019-11-24T04:10:40.000Z
|
2020-04-04T07:50:57.000Z
|
"""Defines the trial class.
"""
from datetime import datetime
from logging import getLogger
logger = getLogger(__name__)
class Trial(dict):
def __init__(self, *args, **kwds) -> None:
"""Create a trial object.
Trials objects are fancy dictionaries whose items are also attributes. They are
initialised exactly like dictionaries except that the resulting object must
contain the attribute `'trial_number'`. Trials typically contain several other
attributes in addition to those listed below. Trials from the same experiment
should contain the same attributes.
"""
super(Trial, self).__init__(*args, **kwds)
logger.debug(f"initialised {type(self)}")
self.__dict__ = self
defaults = {
"block_number": 0,
"status": "pending",
"practice": False,
"resumed_from_here": False,
"started_timestamp": datetime.now(),
"correct": None,
"reason_skipped": "not skipped",
"finished_timestamp": None,
# "_remaining_trials_in_block": None,
# "_remaining_trials_in_test": None,
}
self.__dict__.update({**defaults, **self.__dict__})
assert "trial_number" in self.__dict__, "must contain trial_number"
assert isinstance(self.trial_number, int), "trial_number must be an int"
if self.block_number == 0:
self.__dict__["first_block"] = True
else:
self.__dict__["first_block"] = False
if self.trial_number == 0:
self.__dict__["first_trial_in_block"] = True
else:
self.__dict__["first_trial_in_block"] = False
if self.first_block and self.first_trial_in_block:
self.__dict__["first_trial_in_test"] = True
else:
self.__dict__["first_trial_in_test"] = False
# rtib = self._remaining_trials_in_block
# if rtib is not None:
# if len(rtib) == 0:
# self.__dict__["last_trial_in_block"] = True
# else:
# self.__dict__["last_trial_in_block"] = False
# rtit = self._remaining_trials_in_test
# if rtit is not None:
# if len(rtit) == 0:
# self.__dict__["last_trial_in_test"] = True
# else:
# self.__dict__["last_trial_in_test"] = False
logger.debug("finished constructing trial object")
| 35.884058
| 87
| 0.600969
| 2,350
| 0.949111
| 0
| 0
| 0
| 0
| 0
| 0
| 1,320
| 0.533118
|
c835c38f6e541b5231eac621e19ad8646fab5eb5
| 1,839
|
py
|
Python
|
categorize_reviews.py
|
curtislb/ReviewTranslation
|
b2d14d349b6016d275fa22532eae6b67af243a55
|
[
"Apache-2.0"
] | null | null | null |
categorize_reviews.py
|
curtislb/ReviewTranslation
|
b2d14d349b6016d275fa22532eae6b67af243a55
|
[
"Apache-2.0"
] | null | null | null |
categorize_reviews.py
|
curtislb/ReviewTranslation
|
b2d14d349b6016d275fa22532eae6b67af243a55
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
import ast
import sys
import nltk
import numpy as np
from review_data import read_reviews
###############################################################################
def main():
low = 3.0
high = 4.0
target_language = u"english"
topics = []
with open(sys.argv[1]) as infile:
for topic in infile:
topics.append(ast.literal_eval(topic))
outfiles = []
prefix = sys.argv[3]
for i in xrange(len(topics)):
outfile = []
outfile.append(open(prefix + str(i) + "-.json" ,"w"))
outfile.append(open(prefix + str(i) + "=.json" ,"w"))
outfile.append(open(prefix + str(i) + "+.json" ,"w"))
outfiles.append(outfile)
counter = 0
for review in read_reviews(sys.argv[2]):
if review['lang'] != target_language:
continue
text = review['text']
tokens = nltk.word_tokenize(text)
best_value = [0]*len(topics)
for token in tokens:
for i in xrange(len(topics)):
if token in topics[i]:
best_value[i] += topics[i][token]
rating = review['rating']
del review['lang']
del review['rating']
if rating < low:
outfiles[np.argmax(best_value)][0].write(str(review) + '\n')
elif rating > high:
outfiles[np.argmax(best_value)][2].write(str(review) + '\n')
else:
outfiles[np.argmax(best_value)][1].write(str(review) + '\n')
counter+=1
if counter %10000 == 0:
for outfile in outfiles:
for ofile in outfile:
ofile.flush()
for outfile in outfiles:
for ofile in outfile:
ofile.close()
if __name__ == '__main__':
main()
| 26.271429
| 79
| 0.504622
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 199
| 0.108211
|
c83954e71051c128691f4f8f79229509cdfd37e3
| 1,068
|
py
|
Python
|
codes/kmc/2Dim/general2d/lambdaFluc2dCreator.py
|
joshuahellier/PhDStuff
|
6fbe9e507c40e9017cde9312b0cfcc6ceefa284e
|
[
"MIT"
] | null | null | null |
codes/kmc/2Dim/general2d/lambdaFluc2dCreator.py
|
joshuahellier/PhDStuff
|
6fbe9e507c40e9017cde9312b0cfcc6ceefa284e
|
[
"MIT"
] | null | null | null |
codes/kmc/2Dim/general2d/lambdaFluc2dCreator.py
|
joshuahellier/PhDStuff
|
6fbe9e507c40e9017cde9312b0cfcc6ceefa284e
|
[
"MIT"
] | null | null | null |
import subprocess
import sys
import os
# This code is meant to manage running multiple instances of my KMCLib codes at the same time,
# in the name of time efficiency
numLambda = 512
numStepsEquilib = 1600000
numStepsAnal = 16000
numStepsSnapshot = 1000
numStepsReq = 16000
sysWidth = 32
sysLength = 32
analInterval = 1
numPasses = 100
timeInterval = 1.0
dataLocation = "dim2Runs/lambdaScan1/"
lambdaMin = 0.05
lambdaMax = 1.25
rateStepSize = (lambdaMax-lambdaMin)/float(numLambda-1)
runningJobs = []
for rateIndex in range(0, numLambda):
currentRate = lambdaMin + rateStepSize*rateIndex
botConc = 0.99
topConc = 0.01
jobInput = "2dSteadyFlow.py "+str(botConc)+" "+str(topConc)+" "+str(currentRate)+" "+str(sysWidth)+" "+str(sysLength)+" "+str(analInterval)+" "+str(numStepsEquilib)+" "+str(numStepsSnapshot)+" "+str(numStepsAnal)+" "+str(numStepsReq)+" "+str(numPasses)+" "+str(timeInterval)+" "+dataLocation+str(rateIndex)+"\n"
with open("jobInputs/testInput."+str(jobIndex), 'w') as f:
f.write(jobInput)
jobIndex += 1
| 33.375
| 323
| 0.708801
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 232
| 0.217228
|
c83adde56479731d1abd45b0e5be159767406e09
| 1,063
|
py
|
Python
|
Two_Sum_1.py
|
JazzikPeng/Algorithm-in-Python
|
915135b1cdd02a6bb8d7068a54b2f497b2ec31d4
|
[
"MIT"
] | 3
|
2018-02-05T06:15:57.000Z
|
2019-04-07T23:33:07.000Z
|
Two_Sum_1.py
|
JazzikPeng/Algorithm-in-Python
|
915135b1cdd02a6bb8d7068a54b2f497b2ec31d4
|
[
"MIT"
] | null | null | null |
Two_Sum_1.py
|
JazzikPeng/Algorithm-in-Python
|
915135b1cdd02a6bb8d7068a54b2f497b2ec31d4
|
[
"MIT"
] | null | null | null |
class Solution:
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
# fill initial set/dict
s = {target-nums[0]}
d = {nums[0]: 0}
for i in range(1, len(nums)):
if nums[i] in s:
return [d[target-nums[i]], i]
else:
s.add(target-nums[i])
d[nums[i]] = i
return None
class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
for i in nums:
nums[nums.index(i)] = 'current'
if (target - i) in nums and nums[nums.index(target - i)]!='current':
print(i, nums.index('current'), nums)
nums[nums.index('current')] = 'marked'
nums[nums.index(target - i)] = 'other'
return [nums.index('marked'), nums.index('other')]
nums[nums.index('current')] = 'visited'
| 30.371429
| 80
| 0.464722
| 1,060
| 0.997178
| 0
| 0
| 0
| 0
| 0
| 0
| 301
| 0.283161
|
c83ceb2eaee488074f590ced585bdeba5d992e16
| 589
|
py
|
Python
|
main/views.py
|
climsoft/climsoftweb
|
3be127b3c8ce0e1f89940139ea19e17d20abe386
|
[
"BSD-3-Clause"
] | 1
|
2021-08-17T07:43:18.000Z
|
2021-08-17T07:43:18.000Z
|
main/views.py
|
climsoft/climsoftweb
|
3be127b3c8ce0e1f89940139ea19e17d20abe386
|
[
"BSD-3-Clause"
] | 45
|
2019-11-16T16:59:04.000Z
|
2021-04-08T21:23:48.000Z
|
main/views.py
|
climsoft/climsoftweb
|
3be127b3c8ce0e1f89940139ea19e17d20abe386
|
[
"BSD-3-Clause"
] | null | null | null |
from django.contrib.auth.decorators import login_required
from django.shortcuts import render
@login_required
def mainmenu(request):
return render(request, 'main/mainmenu.html', {})
@login_required
def user_admin(request):
return render(request, 'main/user_admin.html', {})
@login_required
def user_profile(request):
return render(request, 'main/user_profile.html', {})
@login_required
def change_password(request):
return render(request, 'main/change_password.html', {})
@login_required
def language(request):
return render(request, 'main/language.html', {})
| 21.814815
| 59
| 0.752122
| 0
| 0
| 0
| 0
| 481
| 0.816638
| 0
| 0
| 113
| 0.191851
|
c83df5c3590f08b7881a0afefb6d8d7e7060a2fb
| 2,124
|
py
|
Python
|
anygraph/recipes/autobuilding_a_graph.py
|
gemerden/anygraph
|
c20cab82ad4a7f4117690a445e136c2b0e84f0f3
|
[
"MIT"
] | 10
|
2020-06-11T14:11:58.000Z
|
2021-12-31T11:59:26.000Z
|
anygraph/recipes/autobuilding_a_graph.py
|
gemerden/anygraph
|
c20cab82ad4a7f4117690a445e136c2b0e84f0f3
|
[
"MIT"
] | null | null | null |
anygraph/recipes/autobuilding_a_graph.py
|
gemerden/anygraph
|
c20cab82ad4a7f4117690a445e136c2b0e84f0f3
|
[
"MIT"
] | null | null | null |
"""
Here we will show how to build a graph from a class inheritance structure. Since we will n change the class of classes (type), we will use a wrapper to do this.
"""
from anygraph import Many
"""
First we define the wrapper class; because we create instances of ClassWrapper on the flight;
to detect if the class was already encountered, we need to use a custom get_id function.
"""
class ClassWrapper(object):
""" add the graph definition to the wrapper class """
base_classes = Many('sub_classes', cyclic=False, get_id=lambda w: id(w.wrapped)) # the id() of the classes themselves
sub_classes = Many('base_classes', get_id=lambda w: id(w.wrapped))
def __init__(self, wrapped):
self.wrapped = wrapped
def __getattr__(self, name):
""" simple way to access the wrapped class """
return getattr(self.wrapped, name)
""" then we define how to get from a wrapped class to its base classes"""
def get_bases(wrapper):
""" pre-wraps the classes to be able to use 'base_classes' and 'sub_classes' """
for cls in wrapper.wrapped.__bases__:
yield ClassWrapper(cls)
""" and we are ready to build the graph """
def build(cls):
wrapped_class = ClassWrapper(cls)
ClassWrapper.base_classes.build(wrapped_class, key=get_bases)
return wrapped_class
if __name__ == '__main__':
""" create some class hierarchy: """
class A(object): pass
class B(A): pass
class C(A): pass
class D(B, C): pass
class E(D): pass
start = build(E)
""" let's see what we got """
print([w.__name__ for w in ClassWrapper.base_classes(start, breadth_first=True)])
""" find the wrapper wrapping the object class """
wrapped_object = ClassWrapper.base_classes.find(start, filter=lambda w: w.wrapped is object)[0]
""" and following the 'sub_classes' reverse graph """
print([w.__name__ for w in ClassWrapper.sub_classes(wrapped_object, breadth_first=True)])
"""
Note that iterating over base_classes depth- or breadth-first, does not
always produce the same order as the mro() algorithm used by python
"""
| 32.181818
| 160
| 0.69162
| 564
| 0.265537
| 182
| 0.085687
| 0
| 0
| 0
| 0
| 1,057
| 0.497646
|
c83f4c51440116a7f88bf4d5e46dda85c09f8606
| 2,069
|
py
|
Python
|
shortest_path_revisit_and_NP/week1/apsp_johnsons.py
|
liaoaoyuan97/standford_algorithms_specialization
|
2914fdd397ce895d986ac855e78afd7a51ceff68
|
[
"MIT"
] | null | null | null |
shortest_path_revisit_and_NP/week1/apsp_johnsons.py
|
liaoaoyuan97/standford_algorithms_specialization
|
2914fdd397ce895d986ac855e78afd7a51ceff68
|
[
"MIT"
] | null | null | null |
shortest_path_revisit_and_NP/week1/apsp_johnsons.py
|
liaoaoyuan97/standford_algorithms_specialization
|
2914fdd397ce895d986ac855e78afd7a51ceff68
|
[
"MIT"
] | 1
|
2021-01-18T19:35:48.000Z
|
2021-01-18T19:35:48.000Z
|
import time
import numpy as np
from os import path
def read_graph(filename):
i = 0
with open(path.join('.', filename), 'r') as f:
for row in f.readlines():
if i == 0:
_list = row.strip("\n").split(' ')
n_vertex, n_edge = int(_list[0]), int(_list[1])
shortest_paths = np.ones((n_vertex + 1, n_vertex + 1, n_vertex + 1)) * float('inf')
i += 1
else:
_list = row.strip("\n").split(' ')
shortest_paths[int(_list[0])][int(_list[1])][0] = float(_list[2])
for i in range(1, n_vertex + 1):
shortest_paths[i][i][0] = 0
return n_vertex, shortest_paths
def compute_apsp(n_vertex, shortest_paths):
for k in range(1, n_vertex + 1):
for i in range(1, n_vertex + 1):
for j in range(1, n_vertex + 1):
if shortest_paths[i][j][k - 1] > (shortest_paths[i][k][k - 1] + shortest_paths[k][j][k - 1]):
shortest_paths[i][j][k] = shortest_paths[i][k][k - 1] + shortest_paths[k][j][k - 1]
else:
shortest_paths[i][j][k] = shortest_paths[i][j][k - 1]
for i in range(1, n_vertex + 1):
if shortest_paths[i][i][n_vertex] < 0:
return None
m = shortest_paths[1][2][n_vertex]
for i in range(1, n_vertex + 1):
for j in range(1, n_vertex + 1):
if i != j and shortest_paths[i][j][n_vertex] < m:
m = shortest_paths[i][j][n_vertex]
return m
if __name__ == "__main__":
time_start = time.time()
n_vertex, shortest_paths = read_graph("grh1.txt")
print(compute_apsp(n_vertex, shortest_paths))
print(time.time() - time_start)
time_start = time.time()
n_vertex, shortest_paths = read_graph("grh2.txt")
print(compute_apsp(n_vertex, shortest_paths))
print(time.time() - time_start)
time_start = time.time()
n_vertex, shortest_paths = read_graph("grh3.txt")
print(compute_apsp(n_vertex, shortest_paths))
print(time.time() - time_start)
| 32.84127
| 109
| 0.564524
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 65
| 0.031416
|
c84122fcd1573afd525866c481ac3a9686f3174d
| 2,448
|
py
|
Python
|
Cardio-Monitor-main/visualization.py
|
jrderek/computer-vision-exercises
|
e9735394220f8120453de70b58596ef9e87df926
|
[
"MIT"
] | null | null | null |
Cardio-Monitor-main/visualization.py
|
jrderek/computer-vision-exercises
|
e9735394220f8120453de70b58596ef9e87df926
|
[
"MIT"
] | null | null | null |
Cardio-Monitor-main/visualization.py
|
jrderek/computer-vision-exercises
|
e9735394220f8120453de70b58596ef9e87df926
|
[
"MIT"
] | null | null | null |
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
import io
import random
import numpy as np
def visualizationpreprocess(age,sex,cp,trestbps,restecg,chol,fbs,thalach,exang,oldpeak,slope,ca,thal,result):
if sex=="male":
sex=1
else: sex=0
if cp=="Typical angina":
cp=0
elif cp=="Atypical angina":
cp=1
elif cp=="Non-anginal pain":
cp=2
elif cp=="Asymptomatic":
cp=2
if exang=="Yes":
exang=1
elif exang=="No":
exang=0
if fbs=="Yes":
fbs=1
elif fbs=="No":
fbs=0
if slope=="Upsloping: better heart rate with excercise(uncommon)":
slope=0
elif slope=="Flatsloping: minimal change(typical healthy heart)":
slope=1
elif slope=="Downsloping: signs of unhealthy heart":
slope=2
if thal=="fixed defect: used to be defect but ok now":
thal=2
elif thal=="reversable defect: no proper blood movement when excercising":
thal=3
elif thal=="normal":
thal=1
if restecg=="Nothing to note":
restecg=0
elif restecg=="ST-T Wave abnormality":
restecg=1
elif restecg=="Possible or definite left ventricular hypertrophy":
restecg=2
#final_list=[int(cp),int(trestbps),int(restecg),int(chol),int(fbs),int(thalach),int(exang),float(oldpeak),int(slope),int(ca),int(thal)]
normal_value1=[0.478261,0.159420,0.449275,0.550725,1.585507,1.166667,1.166667,2.543478]
user_value1=[float(cp),float(fbs),float(restecg),float(exang),float(oldpeak),float(slope),float(ca),float(thal)]
normal_value2=[134.398551,251.086957,139.101449]
user_value2=[float(trestbps),float(chol),float(thalach)]
list1=[normal_value1,user_value1]
list2=[normal_value2,user_value2]
return list1,list2
# def create_figure1(data1):
# fig = plt.figure()
# axis = fig.add_axes([0,0,1,1])
# y1 = data1[0]
# y2 = data1[1]
# width = 0.30
# x=np.arange(8)
# axis.bar(x-0.3, y1, width, color='cyan')
# axis.bar(x, y2, width, color='orange')
# # axis.bar(xs, ys)
# # axis.xticks(x, ['cp','chol','fbs','exang','oldpeak','slope','ca','thal'])
# # axis.xlabel("Heart health defining attributes")
# axis.set_ylabel("values")
# # axis.legend(["Normal", "Yours"])
# axis.set_title('Your data corresponding to normal data')
# return fig
| 31.792208
| 139
| 0.635212
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1,138
| 0.464869
|
c8413d24c21af2dd79f48f95f23cc0565affc86b
| 6,006
|
py
|
Python
|
at_tmp/model/util/TMP_DB_OPT__.py
|
zuoleilei3253/zuoleilei
|
e188b15a0aa4a9fde00dba15e8300e4b87973e2d
|
[
"Apache-2.0"
] | null | null | null |
at_tmp/model/util/TMP_DB_OPT__.py
|
zuoleilei3253/zuoleilei
|
e188b15a0aa4a9fde00dba15e8300e4b87973e2d
|
[
"Apache-2.0"
] | null | null | null |
at_tmp/model/util/TMP_DB_OPT__.py
|
zuoleilei3253/zuoleilei
|
e188b15a0aa4a9fde00dba15e8300e4b87973e2d
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/7/15 16:36
# @Author : bxf
# @File : P_DB_OPT.py
# @Software: PyCharm
import pymysql
import json
from datetime import date, datetime
from model.util import md_Config
from model.util.PUB_LOG import *
'''
提供数据的增删改查功能:
'''
class DB_CONN():
def __init__(self):
'''
初始化连接数据,并输出连接步骤
'''
try:
conn = pymysql.Connect(
host=md_Config.getConfig("DATABASE1", "IP"),
port=int(md_Config.getConfig("DATABASE1", "port")),
user=md_Config.getConfig("DATABASE1", "user"),
passwd=md_Config.getConfig("DATABASE1", "password"),
db=md_Config.getConfig("DATABASE1", "db"),
charset=md_Config.getConfig("DATABASE1", "charset")
)
exeLog(
"数据库:【 " + md_Config.getConfig("DATABASE1", "db") + "】 连接成功!数据库环境为: " + md_Config.getConfig("DATABASE1",
"IP"))
self.conn = conn
except Exception as e:
dataOptLog("***数据库:【 " + md_Config.getConfig("DATABASE1",
"db") + "】 连接失败,请检查连接参数!错误信息:%s" % e + "数据库环境为:" + md_Config.getConfig(
"DATABASE1", "IP"))
def db_Query_Json(self, sql):
'''
获取数据json格式游标,使用需要fetchall()或fetchone()fetchmany()
:param sql: 查询语句
:return: 游标json格式 使用时需要使用fetchall()或fetchone()fetchmany()
'''
cur = self.conn.cursor(cursor=pymysql.cursors.DictCursor)
try:
cur.execute(sql)
exeLog("***查询获取游标成功!查询语句为:" + sql)
return cur
except Exception as e:
dataOptLog('***执行查询失败,请检查数据!错误信息:%s' % e + "查询语句为:" + sql)
finally:
cur.close()
self.conn.close()
#
def db_Query_tuple(self, sql):
'''
获取数据元组格式游标,使用需要fetchall()或fetchone()fetchmany()
:param sql: 查询语句
:return: 元组格式游标,使用需要fetchall()或fetchone()fetchmany()
'''
cur = self.conn.cursor()
try:
cur.execute(sql)
exeLog("***查询获取游标成功!查询语句为:" + sql)
return cur
except Exception as e:
dataOptLog('***执行查询失败,请检查数据!错误信息:%s' % e + "查询语句为:" + sql)
finally:
cur.close()
self.conn.close()
# 数据库插入
def db_Insert(self, sql, params):
'''
数据库插入
:param sql: 插入语句
:param params: 插入数据
:return: 插入成功数目
'''
cur = self.conn.cursor()
try:
data_counts = cur.execute(sql, params)
self.conn.commit()
exeLog("***数据插入成功!执行语句为:" + sql)
return data_counts
except Exception as e:
self.conn.rollback()
dataOptLog('***插入失败,请检查数据!错误信息:%s' % e + "查询语句为:" + sql)
finally:
cur.close()
self.conn.close()
# 数据库更新
def db_Update(self, sql):
'''
:param sql:
:return:
'''
cur = self.conn.cursor()
try:
data_counts = cur.execute(sql)
self.conn.commit()
exeLog("***更新数据成功!更新语句为:" + sql)
return data_counts
except Exception as e:
self.conn.rollback()
dataOptLog('***执行更新失败,请检查数据!错误信息:%s' % e + "查询语句为:" + sql)
finally:
cur.close()
self.conn.close()
# 数据库中时间转换json格式 在返回的json方法里加上cls=MyEncoder
class MyEncoder(json.JSONEncoder):
def default(self, obj):
'''
针对datetime格式的转换
:param obj: 参数数据
:return: 返回json格式
'''
try:
# if isinstance(obj, datetime.datetime):
# return int(mktime(obj.timetuple()))
if isinstance(obj, datetime):
return obj.strftime('%Y-%m-%d %H:%M:%S')
elif isinstance(obj, date):
return obj.strftime('%Y-%m-%d')
else:
return json.JSONEncoder.default(self, obj)
except Exception as e:
return False
# 数据库数据直接转换成json格式输出 无数据 返回FALSE
def getJsonFromDatabase(sql):
cur = DB_CONN().db_Query_Json(sql)
if cur.rowcount == 0:
exeLog("***数据库内容为空")
return False
else:
exeLog("***返回JSON数据成功")
return cur.fetchall()
def getTupleFromDatabase(sql):
cur = DB_CONN().db_Query_tuple(sql)
if cur.rowcount == 0:
exeLog("***数据库内容为空")
return False
else:
exeLog("***返回JSON数据成功")
return cur.fetchall()
def insertToDatabase(table,data,**kwargs):
'''
:param table: 表名
:param data: 插入数据
:return: 插入成功数
'''
col_list=dict()
# print(type(data))
# print(type(kwargs))
col_list.update(data)
col_list.update(kwargs)
col_lists=col_list.keys()
col=''
for j in col_lists:
col=col+j+','
val=[]
for i in col_lists:
val_one=col_list[i]
val.append(val_one)
var_lists=tuple(val)
sql='INSERT INTO '+table +' ( '+ col[:-1] +' ) VALUE '+str(var_lists)
exeLog("******生成添加语句成功!~~***")
result=DB_CONN().db_Update(sql)
exeLog("******记录新增成功******")
return result
def updateToDatabase(table, data, col, val):
'''
更新
:param table:表名
:param data: 更新数据
:param col: 定位
:param val:定位值
:return: 更新成功数
'''
col_lists = tuple(data.keys())
list_one = ""
for i in col_lists:
val_one = data[i]
list_one = list_one + i + '= "' + str(val_one) + '",'
sql = "UPDATE " + table + ' SET ' + list_one[:-1] + ' WHERE ' + col + ' = "' + str(val) + '"'
exeLog("生成更新语句成功!")
return sql
| 28.330189
| 129
| 0.494006
| 4,611
| 0.668455
| 0
| 0
| 0
| 0
| 0
| 0
| 2,770
| 0.401566
|
c8418b9ec302c999618cb90b60b9001c7764202e
| 448
|
py
|
Python
|
examples/pybullet/examples/logMinitaur.py
|
felipeek/bullet3
|
6a59241074720e9df119f2f86bc01765917feb1e
|
[
"Zlib"
] | 9,136
|
2015-01-02T00:41:45.000Z
|
2022-03-31T15:30:02.000Z
|
examples/pybullet/examples/logMinitaur.py
|
felipeek/bullet3
|
6a59241074720e9df119f2f86bc01765917feb1e
|
[
"Zlib"
] | 2,424
|
2015-01-05T08:55:58.000Z
|
2022-03-30T19:34:55.000Z
|
examples/pybullet/examples/logMinitaur.py
|
felipeek/bullet3
|
6a59241074720e9df119f2f86bc01765917feb1e
|
[
"Zlib"
] | 2,921
|
2015-01-02T10:19:30.000Z
|
2022-03-31T02:48:42.000Z
|
import pybullet as p
import pybullet_data
cid = p.connect(p.SHARED_MEMORY)
if (cid < 0):
p.connect(p.GUI)
p.setAdditionalSearchPath(pybullet_data.getDataPath())
p.loadURDF("plane.urdf")
quadruped = p.loadURDF("quadruped/quadruped.urdf")
logId = p.startStateLogging(p.STATE_LOGGING_MINITAUR, "LOG00048.TXT", [quadruped])
p.stepSimulation()
p.stepSimulation()
p.stepSimulation()
p.stepSimulation()
p.stepSimulation()
p.stopStateLogging(logId)
| 21.333333
| 82
| 0.776786
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 52
| 0.116071
|
c8422d03ff6c162a7a235c164df43ce7fd4202c5
| 1,025
|
py
|
Python
|
setup.py
|
drougge/wellpapp-pyclient
|
43d66a1e2a122ac87e477905c5e2460e11be3c26
|
[
"MIT"
] | null | null | null |
setup.py
|
drougge/wellpapp-pyclient
|
43d66a1e2a122ac87e477905c5e2460e11be3c26
|
[
"MIT"
] | null | null | null |
setup.py
|
drougge/wellpapp-pyclient
|
43d66a1e2a122ac87e477905c5e2460e11be3c26
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
from setuptools import setup
fuse_reqs = [
'fuse-python >= 0.3.1; python_version < "3"',
'fuse-python >= 1.0.0; python_version > "3"',
]
readme = open('README.md', 'r').read()
readme = readme.replace(
'(FUSE.md)',
'(https://github.com/drougge/wellpapp-pyclient/blob/master/FUSE.md)'
)
setup(
name='wellpapp',
version='CHANGEME.dev', # set this for each release
packages=[
'wellpapp',
'wellpapp.shell',
],
entry_points={
'console_scripts': [
'wp = wellpapp.__main__:main',
],
},
install_requires=[
'Pillow >= 3.1.2',
'PyGObject >= 3.20',
],
extras_require={
'fuse': fuse_reqs,
'all': fuse_reqs,
},
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
author='Carl Drougge',
author_email='bearded@longhaired.org',
url='https://github.com/drougge/wellpapp-pyclient',
license='MIT',
description='Client library and application for the wellpapp image tagging system.',
long_description=readme,
long_description_content_type='text/markdown',
)
| 21.808511
| 85
| 0.659512
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 600
| 0.585366
|
c8425c27ac3a898cc687ebecf30963739e854bd4
| 506
|
py
|
Python
|
project/app/models.py
|
cs-fullstack-fall-2018/django-auth1-bachmanryan
|
cb83e4bc75e1c8bfde7c43d478505ecec45d5cd8
|
[
"Apache-2.0"
] | null | null | null |
project/app/models.py
|
cs-fullstack-fall-2018/django-auth1-bachmanryan
|
cb83e4bc75e1c8bfde7c43d478505ecec45d5cd8
|
[
"Apache-2.0"
] | null | null | null |
project/app/models.py
|
cs-fullstack-fall-2018/django-auth1-bachmanryan
|
cb83e4bc75e1c8bfde7c43d478505ecec45d5cd8
|
[
"Apache-2.0"
] | null | null | null |
from django.db import models
from django.contrib.auth.models import User
from datetime import datetime
# Create your models here.
# create a new attribute in your model
class FormModel(models.Model):
username = models.ForeignKey(User, on_delete=models.SET_NULL, null=True, blank=True)
blog_title = models.CharField(max_length=200)
blog_entry = models.CharField(max_length=200)
date_created = models.DateTimeField(default=datetime.now)
def __str__(self):
return self.username
| 31.625
| 88
| 0.764822
| 334
| 0.660079
| 0
| 0
| 0
| 0
| 0
| 0
| 64
| 0.126482
|
c8427460e2bcf42333ee94274c805a7a6ae2d6ab
| 715
|
py
|
Python
|
students/K33421/Zmievskiy_Danil/Lr1/Task04/server.py
|
DanilZmievskiy/ITMO_ICT_WebDevelopment_2020-2021
|
8bb6e90e6592c04f4b959184310e0890aaa24e16
|
[
"MIT"
] | null | null | null |
students/K33421/Zmievskiy_Danil/Lr1/Task04/server.py
|
DanilZmievskiy/ITMO_ICT_WebDevelopment_2020-2021
|
8bb6e90e6592c04f4b959184310e0890aaa24e16
|
[
"MIT"
] | null | null | null |
students/K33421/Zmievskiy_Danil/Lr1/Task04/server.py
|
DanilZmievskiy/ITMO_ICT_WebDevelopment_2020-2021
|
8bb6e90e6592c04f4b959184310e0890aaa24e16
|
[
"MIT"
] | null | null | null |
import socket
import threading
conn = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
conn.bind (('', 7070))
conn.listen()
clients = []
print ('Start Server')
def new_client():
while True:
clientsocket, address = conn.accept()
if clientsocket not in clients:
clients.append(clientsocket)
threading.Thread(target = chat, args = [clientsocket, address]).start()
def chat(clientsocket, address):
print (address[0], address[1])
while True:
try:
data = clientsocket.recv(1024)
for client in clients:
if client == clientsocket:
continue
client.send(data)
except Exception:
clients.remove(clientsocket)
clientsocket.close()
threading.Thread(target=new_client()).start()
| 21.029412
| 74
| 0.711888
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 16
| 0.022378
|
c843403db7b167cca6757d1608c2ce426ef07684
| 1,563
|
py
|
Python
|
cutelog/pop_in_dialog.py
|
CS-GSI/cutelog
|
faca7a7bfd16559973178d3c87cb3b0c6667d4d3
|
[
"MIT"
] | 125
|
2018-07-27T15:23:35.000Z
|
2022-03-09T18:18:08.000Z
|
cutelog/pop_in_dialog.py
|
CS-GSI/cutelog
|
faca7a7bfd16559973178d3c87cb3b0c6667d4d3
|
[
"MIT"
] | 12
|
2019-02-02T01:02:59.000Z
|
2022-03-14T08:31:41.000Z
|
cutelog/pop_in_dialog.py
|
CS-GSI/cutelog
|
faca7a7bfd16559973178d3c87cb3b0c6667d4d3
|
[
"MIT"
] | 26
|
2018-08-24T23:49:58.000Z
|
2022-01-27T12:29:38.000Z
|
from qtpy.QtCore import Signal
from qtpy.QtWidgets import QDialog, QDialogButtonBox, QListWidget, QVBoxLayout
class PopInDialog(QDialog):
pop_in_tabs = Signal(list)
def __init__(self, parent, loggers):
super().__init__(parent)
self.loggers = loggers
self.setupUi()
def setupUi(self):
self.resize(200, 320)
self.vbox = QVBoxLayout(self)
self.listWidget = QListWidget(self)
self.listWidget.setSelectionMode(self.listWidget.MultiSelection)
self.listWidget.selectionModel().reset()
self.vbox.addWidget(self.listWidget)
self.buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel, self)
self.vbox.addWidget(self.buttonBox)
self.buttonBox.accepted.connect(self.accept)
self.listWidget.doubleClicked.connect(self.accept)
self.buttonBox.rejected.connect(self.reject)
self.fill_logger_list()
def fill_logger_list(self):
for logger in self.loggers:
if logger.popped_out:
self.listWidget.addItem(logger.name)
self.listWidget.setCurrentRow(0)
def accept(self, index=None):
names = []
if index is not None:
item = self.listWidget.itemFromIndex(index)
names.append(item.text())
else:
for item in self.listWidget.selectedItems():
names.append(item.text())
if len(names) > 0:
self.pop_in_tabs.emit(names)
self.done(0)
def reject(self):
self.done(0)
| 31.26
| 94
| 0.643634
| 1,450
| 0.927703
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
c84378df20614229cbb5ed8f3fb0fb2de32e4ad3
| 6,730
|
py
|
Python
|
MineSweeper/minesweeper.py
|
Ratnesh4193/Amazing-Python-Scripts
|
0652a6066a3eeaf31830d7235da209699c45f779
|
[
"MIT"
] | 1
|
2021-04-17T08:33:25.000Z
|
2021-04-17T08:33:25.000Z
|
MineSweeper/minesweeper.py
|
Ratnesh4193/Amazing-Python-Scripts
|
0652a6066a3eeaf31830d7235da209699c45f779
|
[
"MIT"
] | null | null | null |
MineSweeper/minesweeper.py
|
Ratnesh4193/Amazing-Python-Scripts
|
0652a6066a3eeaf31830d7235da209699c45f779
|
[
"MIT"
] | 1
|
2021-07-22T07:06:09.000Z
|
2021-07-22T07:06:09.000Z
|
# Importing required libraries
from tkinter import *
from tkinter import messagebox as mb
from tkinter import ttk
import random
# function to create screen for the game
def board():
global value,w
# initialising screen
root=Tk()
root.geometry("320x335")
root.title("MineSweeper")
root.resizable(False,False)
root.eval('tk::PlaceWindow . center')
# creating label
w = Label(root, text="Start Playing!",bg='yellow',fg='red')
# creating buttons
but11=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but11,root))
but12=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but12,root))
but13=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but13,root))
but14=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but14,root))
but15=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but15,root))
but21=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but21,root))
but22=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but22,root))
but23=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but23,root))
but24=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but24,root))
but25=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but25,root))
but31=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but31,root))
but32=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but32,root))
but33=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but33,root))
but34=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but34,root))
but35=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but35,root))
but41=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but41,root))
but42=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but42,root))
but43=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but43,root))
but44=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but44,root))
but45=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but45,root))
but51=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but51,root))
but52=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but52,root))
but53=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but53,root))
but54=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but54,root))
but55=Button(root,bg="grey", text="", padx=7.5, pady=5,bd=4,font="digifacewide 18",height=1,width=2,command=lambda:game(but55,root))
# adding buttons to the screen
but11.grid(row=1,column=1)
but12.grid(row=1,column=2)
but13.grid(row=1,column=3)
but14.grid(row=1,column=4)
but15.grid(row=1,column=5)
but21.grid(row=2,column=1)
but22.grid(row=2,column=2)
but23.grid(row=2,column=3)
but24.grid(row=2,column=4)
but25.grid(row=2,column=5)
but31.grid(row=3,column=1)
but32.grid(row=3,column=2)
but33.grid(row=3,column=3)
but34.grid(row=3,column=4)
but35.grid(row=3,column=5)
but41.grid(row=4,column=1)
but42.grid(row=4,column=2)
but43.grid(row=4,column=3)
but44.grid(row=4,column=4)
but45.grid(row=4,column=5)
but51.grid(row=5,column=1)
but52.grid(row=5,column=2)
but53.grid(row=5,column=3)
but54.grid(row=5,column=4)
but55.grid(row=5,column=5)
# adding label to the screen
w.grid(row=0,column=0,columnspan=6)
# creating values for each cell from 1-5 and "b" for bomb
butlist=[but11,but12,but13,but14,but15,but21,but22,but23,but24,but25,
but31,but32,but33,but34,but35,but41,but42,but43,but44,but45,
but51,but52,but53,but54,but55]
vallist=['1','2','3','4','1','2','3','4','1','2','3','4','1','2','3','4',
'1','2','3','4','b','b','b','b','b']
value={}
random.shuffle(vallist)# shuffle for randomness
for i in range(25):
value[butlist[i]]=vallist[i]# assining values to buttons
root.mainloop()
def game(b,tk):
if value[b]=='b': # if bomb is clicked
bomb_clicked(b,tk)
else: # if number is clicked
number_clicked(b,int(value[b]),tk)
total =0
#function when bomb is clicked
def bomb_clicked(b,tk):
# making changes to cell
b['text']="\U0001f600"
b['relief']=SUNKEN;
b['bg']="orange"
global value,total
# displaying message and asking for replay
a=mb.askquestion("YOU LOSE"," Your score : " +str(total) +"\nDo you want to play again??")
tk.destroy()# exiting current board
if a=='yes' :
total = 0
board()
def number_clicked(b,n,tk):
global value,total
if n!=0 and b['text']=="":
# making changes to cell and updating score
b['text']=n
total+=n
value[b]='0'
w['text']="Your Score : " +str(total)
if total>=50: # if player reached score of 50 he won
b['text']="\U0001f600"
b['relief']=SUNKEN;
b['bg']="orange"
# displaying message and asking for replay
a=mb.askquestion("YOU WON"," Your score : " +str(total) +"\nDo you want to play again??")
tk.destroy()# exiting current board
if a=='yes' :
total=0
board()
# showinfo("YOU WON", "YOUR SCORE : " + str(total))
tk.destroy()
board()
| 52.170543
| 136
| 0.649034
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1,679
| 0.24948
|
c84446517bb1f74fa114d36c91ba50e5edd245d3
| 125,439
|
py
|
Python
|
scripts/ui/images_rc.py
|
ROOSTER-fleet-management/multi_robot_sim
|
c5f50b271e7c21d95a843ede1d9227720974764a
|
[
"Apache-2.0"
] | 1
|
2021-02-25T19:11:03.000Z
|
2021-02-25T19:11:03.000Z
|
scripts/ui/images_rc.py
|
ROOSTER-fleet-management/multi_robot_sim
|
c5f50b271e7c21d95a843ede1d9227720974764a
|
[
"Apache-2.0"
] | null | null | null |
scripts/ui/images_rc.py
|
ROOSTER-fleet-management/multi_robot_sim
|
c5f50b271e7c21d95a843ede1d9227720974764a
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt4 (Qt v4.8.7)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x00\x05\x96\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
\x00\x00\x05\x5d\x49\x44\x41\x54\x78\xda\x95\x96\x69\x4c\x54\x57\
\x14\xc7\xff\xf7\xbd\x37\xf3\x66\x65\x66\x80\x8a\xa0\x42\xb1\x0c\
\x28\x08\x28\x0a\x55\x03\x56\xfd\x60\xda\x6a\xa3\x69\xb4\x19\xd2\
\x98\xa6\x68\xfb\xa1\xbb\xdd\xd2\x6a\x93\x7e\xeb\x87\xda\x34\xa6\
\x36\x26\xd5\x82\xda\x46\x99\x44\x53\x63\x6c\x6c\x62\x23\xae\x31\
\xad\x5a\x97\x28\x08\x6e\xd0\x61\x5f\xc2\xc0\x2c\x0c\xcc\x5b\x6e\
\xcf\x1b\x90\x92\x8a\x45\x4f\x66\xf2\x26\xf3\xe6\x9d\xdf\xfd\x9f\
\xff\xb9\xe7\x0e\xc3\x23\x22\x32\xa7\xb8\x1a\x29\xee\x2a\x26\xcb\
\xf8\xbf\xe0\x8a\x02\xf4\x06\x6b\x1c\x8d\xd7\x36\x4d\x76\x9f\x4d\
\xf6\x65\x38\xb7\xa8\x56\x2c\xce\xf3\x99\xde\x5c\x03\x74\x06\x00\
\x81\x8d\xff\x92\x89\x0c\x5c\x4b\x7c\x00\x74\x15\x30\x49\x88\xef\
\x3e\x0e\xbd\x23\xec\x77\xde\xba\x5a\x39\x25\x20\xe4\x2d\xa4\xe4\
\xb9\x3e\xf3\xe6\x17\xa1\x9e\x3e\x01\x1e\x0a\x41\x1b\xa1\x8c\xaa\
\x8e\x98\x39\x07\x7a\x6b\x03\x6c\xd3\x2d\x88\x75\x04\xe1\x5a\xec\
\x05\xd7\xe9\x21\x8b\x19\xda\xc9\xfb\xd0\x3b\x43\xfe\xa4\xc6\x6b\
\x95\x8f\x04\x04\x29\xb9\x89\x92\xcb\x6f\x50\xf2\xba\xdf\xa0\x76\
\xf6\x81\x95\x6c\x84\xb0\x60\x2e\x06\xb6\x7e\x84\xf4\xf3\x17\xd0\
\xb6\xc0\x0b\xeb\xd6\x1d\x48\xd9\xb0\x1a\x9d\xeb\x56\x20\xb9\x38\
\x9d\x14\x31\x30\x59\x84\x52\xd7\x02\xad\x2b\xec\x77\x4f\x80\x8c\
\x03\x06\xc6\x56\x2e\x6f\x7a\x1e\xda\xb9\x93\xe0\xb1\x28\x94\x9b\
\x01\xd8\xbe\x3b\x02\x69\x4e\x36\x5a\x0b\x4a\x30\xab\xfe\x4a\x02\
\xe0\x3e\x70\x1c\x8e\x7c\x2f\xfa\xbf\xfa\x14\xf6\xc1\xbf\xc1\xd9\
\x68\x2a\x66\x16\x11\x3f\x1b\x80\xde\x1d\x19\x87\x24\x6e\xf5\xe5\
\xcc\xab\x35\x15\x79\x7d\xd6\xd7\x5f\x80\x76\xe1\x24\xd0\x13\x03\
\x7b\xee\x35\x0c\xff\xf4\x23\xec\xdf\x7e\x03\xa9\x30\x1f\x2d\x79\
\x85\x78\xba\xe9\x46\x02\xe0\xda\x77\x14\xce\xe2\x7c\xf4\x7f\xf9\
\x21\xec\xe1\x66\x70\x41\x1c\x5b\xae\x01\x11\x30\x7c\xbe\x03\x5a\
\x77\xd8\x9f\xd2\x74\xbd\x92\xf5\xe6\x16\x56\x9b\x0b\x66\x57\x59\
\xab\x56\x41\x3b\x73\x8a\x8c\x53\x20\x78\xbc\x30\x7f\xb1\x1d\x03\
\x15\xcb\x61\xdb\xb5\x0b\x66\x03\x30\x87\x00\x8d\x63\x80\xbd\x04\
\x98\x4f\x80\x6d\xef\xc3\x1e\x69\x19\x03\xe8\x89\x97\xb1\x64\x43\
\xc9\xf0\x1f\xdd\x50\xfa\xa2\x35\xac\x6f\x71\x39\x77\x7d\xe6\x83\
\x7a\x96\x92\x53\x7b\xf0\xb8\x02\x66\x4b\x87\xe5\xeb\x3d\x08\x2e\
\x2e\x87\x73\xcf\x0f\xa4\xa0\x00\x81\x82\xf9\xc8\xac\xbf\x36\x06\
\x38\x42\x80\x79\x04\x78\x0f\xf6\xe0\x7d\xea\x32\x09\x9c\xf3\xd1\
\xec\x86\xeb\xa4\x44\x20\x25\xa1\x33\x6d\x60\xbd\xcb\x56\x70\xd7\
\x2b\xa5\xd0\x9a\x6e\x52\x7e\x81\xba\x66\x10\xcc\x3a\x13\xd6\xdd\
\x07\xd1\xbf\xe8\x59\x24\xed\xdf\x07\xa9\x60\x2e\xda\xcb\xca\x31\
\xe3\xe2\x79\x74\x6e\x5c\x0d\xe7\x27\xdb\xe1\x28\xca\x47\xf0\xf3\
\x77\xe1\xe8\xbf\x8b\x50\x57\x08\xce\x34\x37\x79\xc1\x61\x70\x38\
\x99\xc2\x24\x01\x91\x8b\x5d\x60\x3d\x15\xcb\xb9\xfb\x65\x02\x34\
\x36\x10\x40\x87\x16\x0c\x42\xb0\xa6\xc3\xf6\xf3\x2f\xe8\x2f\x5d\
\x42\x80\x1a\x48\xf9\x73\xd1\x9a\x91\x8d\x59\x1d\xcd\xe8\xae\x5a\
\x07\xeb\xe6\x6d\x48\x5a\x5a\x8a\xee\x0d\x6b\xd0\xdb\xdc\x85\x8c\
\xc3\x47\x31\xb8\x65\x13\xd2\x3d\xc0\xa8\x10\x02\x88\xa4\xe0\xaf\
\x6e\xb0\xae\x65\x2b\xb9\x67\x6d\x09\xf8\xbd\x26\x68\x1d\x54\xb7\
\xe6\x76\x40\x11\xe0\xaa\x0f\x20\x38\x7f\x11\x6c\xdf\xef\x84\x5c\
\xbe\x04\x3d\x4b\x57\x62\xda\x85\x3a\xc4\x4f\x9d\x03\xcf\x7b\x06\
\x72\x46\x06\xae\xb8\xac\x28\x19\x8c\x25\xfc\xbd\x5b\xec\x45\x7a\
\x3c\x0c\xfe\x94\x07\xd2\x8c\x34\x30\x97\x1d\xfd\x97\xa9\xcd\xdb\
\x16\x96\xf1\xd4\xd2\x54\xc4\xeb\x2e\xd1\xc6\x24\x05\x51\xea\x20\
\xc9\x0c\x4f\x5b\x10\x5a\x1b\x49\x4c\x75\x43\xb0\x58\x26\x1d\x13\
\x13\x01\xb7\xb2\xa7\x61\x7a\x34\x0a\x41\x36\x91\x27\xb4\xc1\x9d\
\x36\xf4\x0d\x88\x60\x4d\x8e\x24\x9e\xb9\xc2\x0b\xb5\x91\xfa\x97\
\x4c\x56\x23\x23\x24\xcf\x00\xf4\x63\xaa\x98\x08\xb8\x9a\xe6\x44\
\x96\xaa\x81\x59\x4c\x10\x65\x09\x22\x95\xa9\xad\x3d\x0a\x76\x2b\
\xc9\xc3\xb3\x2a\xb2\xc9\x83\x16\x52\xc0\xa0\x0c\xc5\x20\x98\x64\
\x78\xda\x9f\x0c\x70\x39\xd9\x86\x6c\x5d\x27\xb5\x66\x88\x66\x02\
\x08\x02\x02\x5d\x43\x60\x37\x92\xdc\x3c\x67\x49\x16\x94\xa6\x56\
\x52\xa0\x27\x14\x08\x92\x05\x9e\xae\xa9\x01\x86\xc9\x69\x87\x7e\
\x1d\x05\x10\x2c\x9b\x1c\x16\x65\x33\x2d\x50\x84\x48\x5d\x74\xbf\
\x87\x00\xd7\x1d\x6e\x9e\x5b\x96\x09\xe5\x0e\x01\xa8\x8b\xd4\xe1\
\x38\x04\xa3\x44\x3d\x03\x53\x02\xfe\xab\x66\x16\x3d\x2f\x9a\x0d\
\x05\x04\x60\x02\xee\x05\xc9\xcf\x4b\x56\x07\x2f\x2a\x9b\x8d\xf8\
\xed\x00\x68\x9b\x51\x89\xc8\x03\x2a\x51\x4a\xef\x93\x01\xf6\x52\
\xcd\xd7\x3a\x64\x6a\x10\xf2\x80\x5a\xd4\x44\xef\x9b\x06\xe0\x04\
\x93\xaa\xd3\x93\x3d\x55\x39\x2e\x9a\x21\xa1\x21\xa8\x23\x2a\xe2\
\xe1\x18\x32\x12\x0d\xfd\x78\x31\x14\x89\xe0\x8a\xd3\x89\x7c\x87\
\x8d\x1a\x44\x84\x85\xca\x73\x27\x12\x47\xb7\xa2\xd5\x24\x86\xdd\
\x31\x88\xb5\x33\x53\x93\x7d\x79\xd4\x8d\x43\x83\x51\x0c\x87\x87\
\xe0\xd9\xbe\x13\xb6\x8f\xdf\x79\x2c\xc0\x31\xa7\x0b\xcb\x46\xa2\
\xd0\x65\x0b\x64\x02\x34\xc5\xe2\x68\x57\x54\xff\x4b\x5c\xad\x1c\
\x1f\xd7\x87\x09\x92\x45\x90\x02\x51\xc7\xc0\xe0\x20\xe2\xc3\x2a\
\xb2\x1e\x43\x45\xfd\xdb\x5b\x60\xd9\x45\xe7\x83\xdd\x06\xda\x01\
\x68\x50\x34\x04\x14\xdd\xbf\x9e\x2b\xff\x8e\xeb\x07\x71\x00\xac\
\x36\xdb\xe3\xf1\x15\x71\x95\x20\x61\x44\x08\x90\x79\xf0\x10\xac\
\x95\xeb\x1f\xee\xa0\xdf\x4f\xa3\x61\xd5\x4a\x64\x90\x6f\xa9\xe4\
\x99\x2c\x49\xb8\xa1\xaa\x68\x56\x14\xff\xab\xd0\x1f\x3e\x70\x1e\
\xc4\x6e\x08\xb5\xb3\x93\x9c\xbe\x85\xba\x86\x30\xed\xcc\x38\x41\
\x14\xe3\x86\x24\x63\x44\xe7\x30\x8e\xe3\x11\x3d\x0e\x2b\x5d\xa7\
\x1b\x33\x87\x4c\xb5\x53\x59\xae\xd2\xca\xef\x6a\xaa\xbf\x6a\x42\
\xf2\x49\x01\x46\xec\x04\x6a\x73\x9d\x2e\x5f\x05\xa5\x1b\xa1\xb6\
\x4d\x14\x8a\x36\x91\x9e\xb8\xcb\x21\xd0\xb4\xe4\x46\x72\x18\xdd\
\xc2\xf0\x27\xad\xfc\xb6\xae\xf9\xdf\x02\x9f\xfa\xd0\x7f\x10\x3b\
\x80\xea\x64\xd1\x54\xc5\x34\x8d\x30\x0c\x2a\x8d\x62\x7d\xc2\x43\
\xc6\x5b\x32\x8e\x49\xba\x06\xb9\x5e\xf3\x01\xf8\xa4\x7f\x5b\xfe\
\x01\xb5\x1d\x53\x25\x7d\xa2\x87\x28\x00\x00\x00\x00\x49\x45\x4e\
\x44\xae\x42\x60\x82\
\x00\x00\x03\x02\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
\x00\x00\x02\xc9\x49\x44\x41\x54\x78\xda\xad\x94\x4d\x68\x13\x41\
\x14\xc7\xff\xb3\x49\x8a\xe8\xc1\x63\x41\xea\x07\x22\x6a\x15\x15\
\x44\xa1\xa0\x08\x11\x41\x28\x88\xb5\xc4\x52\xb1\x85\x2a\x1e\x6a\
\x15\xa9\xa0\xe2\xc1\x9b\xe7\x82\x20\x8a\x20\xf4\xe4\x41\x45\x8b\
\xb4\xe0\x49\xad\x9a\x46\x4d\x3f\x63\x69\x8a\x96\x8a\x5a\xa5\xc4\
\x36\xdb\xcd\x47\xa3\x6d\x36\xb3\xe3\xdb\xd9\x6c\x92\x05\xdb\x08\
\xdd\xc0\xf0\x26\x6f\xdf\xfc\x7f\xef\x63\x76\x19\xca\xfc\x0e\x76\
\x6e\x11\x95\xeb\x57\xc1\x5b\xe1\x73\xf8\x73\x59\x1d\xbf\x7e\x2c\
\xa0\xef\xec\x24\x5b\xee\xfc\xb2\x0f\x6d\x40\x7b\x7d\x2d\x36\xaf\
\xad\x72\xf8\xbf\xa7\x63\xe8\x78\xd2\xbd\x72\xc0\xde\x7b\x1b\xc4\
\xf5\xc6\x3a\x44\xe7\x1e\x38\xfc\xc9\x8c\x82\xb7\xa1\xd5\x18\x6e\
\x9d\x72\x01\xd0\x70\x02\x13\xa9\xc7\x0e\xbf\x96\x02\x7a\xdf\xf9\
\xdc\x01\x5c\x0b\xd4\x63\x72\xfe\x91\xfc\x2f\x68\x19\x06\x10\x4f\
\x02\xa1\xb0\x4b\x80\x2b\x04\xf8\x42\x00\x53\x98\xd3\x32\x84\x82\
\x78\x02\xe8\x1f\xf2\xb8\x04\xa8\x3f\x8e\x4f\xa9\x2e\x12\xb6\x2a\
\x30\x21\x71\x0d\x18\x8e\xb8\x04\xb8\x74\xac\x0e\x9f\xe7\x9f\x92\
\x38\x93\x10\xb3\x92\x19\x95\x63\x2c\xfa\x1f\x2d\x32\xaf\x61\x39\
\xc8\xb9\xa3\xb5\x18\x4f\x77\xe5\xdb\x43\x55\x90\x9d\x4b\x70\x9a\
\xc1\x62\xb9\xa3\x60\xfe\xce\x9d\xe2\xc6\x19\x3f\xa6\x13\xdf\x20\
\x98\x42\x22\xcc\x1a\xa4\x14\x52\x20\xb8\x82\x71\x35\x44\xb9\x7b\
\xa5\xb0\x01\x45\x5a\x9d\x02\x16\xb9\xc0\xee\xca\x1a\xf2\x19\x85\
\xca\xe4\x59\x0e\x78\x7d\x1e\x3c\x7c\x1e\x06\x3b\x74\xbf\x5a\x9c\
\x3f\xb5\x15\x91\xe9\x10\x1d\xf5\x58\x41\x82\x41\xa7\x20\x32\x72\
\xcf\x68\xa8\x06\x3d\x2b\x54\x00\x4b\xcc\x10\x02\x9c\x96\x41\x20\
\x23\xef\x13\x26\x88\xf6\x0a\x25\x34\xf8\x21\x0d\x76\xe0\x6e\xb5\
\x68\x6b\xda\x41\x80\x3e\xca\xd2\xe7\x08\xe2\x32\x23\x25\x2f\x56\
\x14\xb6\x67\x21\x81\xb0\x5a\x06\x51\xdc\x9b\xf6\x4f\x56\xc1\xd8\
\x40\x12\xac\xe6\xf6\x76\xd1\xd6\xbc\x0b\x23\x3f\x83\x50\x98\xb7\
\x28\x6c\x28\x56\x56\xa5\xc2\x54\x0d\xb7\xb3\xb7\xdb\x91\x9f\x60\
\xce\xb0\x6e\x8c\x95\x9c\x02\xfa\x54\xe1\xe3\x7b\x02\xec\xbf\x65\
\x01\x86\x09\xc0\x94\x8a\x42\x06\xa5\xc2\x5c\xb0\x62\x5b\x4a\x84\
\xed\x58\x94\x08\x1b\xd2\xc1\x91\xe3\x74\x85\x83\x04\xd8\xd7\xb1\
\x4d\x1c\xf1\x6f\x44\x74\x3a\xba\xe4\x4d\xd8\x53\xe9\xc7\x94\x11\
\x74\x08\xc7\x62\x39\xf9\x6c\x4d\xc5\xbf\xcf\x64\xb2\xc0\xc4\x68\
\x06\xac\xfa\xe6\x26\x91\x4e\x65\x97\x14\xd7\x7e\xcf\xe1\x72\x4b\
\x00\x5f\x79\xd0\x91\xf1\x0c\x01\xc2\x2f\xd5\xf2\xd7\xb4\x5c\x40\
\xd5\xd5\x75\xa2\xa5\xe1\x30\x26\x75\xbb\x02\x45\x52\xd4\xd9\xac\
\x04\x64\xee\x2c\xac\xec\x4d\x36\x01\xed\x2d\x27\x11\x4e\x74\x17\
\xfa\x6b\xf6\x5b\x55\x0d\x0c\xbe\x88\xbb\x03\xb8\xd0\x1c\xc0\x60\
\xf2\x59\x7e\x90\x1e\x59\x89\x36\xab\x63\xe8\x95\x4b\x80\xb6\xd3\
\x01\xf4\xa7\x7a\xa4\xb0\x3d\x04\x95\x00\x23\xaf\x5d\x02\xb4\x36\
\x05\x30\xa0\xf5\xc0\xd6\x37\x87\xad\xc5\x75\x44\xde\xb8\x05\xa0\
\x0a\xc2\x89\x1e\xc7\x2d\xd2\x66\x74\x8c\x06\x5d\x02\x5c\x6c\x6e\
\x44\x88\x66\x20\x2b\xc8\xbf\xb9\x09\x02\x44\x7a\x67\xdd\x01\x98\
\x36\x9d\x4d\x16\x5a\x24\x6d\x8e\x4b\x5b\x0e\xf0\x17\xa5\x35\xdf\
\xe4\xdf\x81\x57\x9f\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\
\x82\
\x00\x00\x05\x22\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
\x00\x00\x04\xe9\x49\x44\x41\x54\x78\xda\x9d\x56\x6b\x6c\x53\x65\
\x18\x7e\xbe\xf6\xb4\x5d\xef\xa7\xed\x56\xba\x75\x1d\xbb\x50\x2e\
\x9d\x4a\x40\xa3\x3f\x1c\x24\x24\xc4\x7f\xc4\x04\x95\x0d\x13\x60\
\x9b\x89\x9a\x2c\x42\x14\xff\x29\xa8\xc4\x7f\x5e\xc0\x31\x88\x44\
\x13\xfc\xe7\x06\xf8\xd7\x7f\x26\x46\x47\xcc\x12\x20\x92\xb1\x0d\
\x84\xb1\x31\x18\x5b\xef\xf7\x7b\xd7\xcf\xf7\xb4\xdd\x59\x0f\x4e\
\x49\xfc\x92\xf6\xf4\xbc\x97\xe7\x79\x9f\xf7\xfb\xde\x73\xca\x40\
\x2b\x39\x30\x38\x4a\x97\x5e\x08\x2a\xfc\xdf\xc5\xe5\x2f\x5a\xa5\
\x15\xe9\x7b\xcc\xf2\xc3\xc5\x3e\x16\x1f\x18\x18\x55\xbb\xc5\x5e\
\x95\xcb\xfc\x14\x04\xfe\x14\x54\x65\xdc\x8a\x3f\x85\xd2\x62\x7c\
\x4c\x22\xe0\x9a\x9d\xad\xca\x98\x54\x01\xdc\x9f\x84\xaa\xd3\xbe\
\x6e\x32\x97\x40\xeb\x70\x79\xba\x00\xe4\x4b\x60\x36\xbd\x22\xbc\
\xf0\xe7\x12\x58\xec\xad\x41\xae\xdd\xde\x2c\x27\x48\xc1\x2b\x93\
\xcb\x24\xb3\x0c\xe6\x34\x41\xe5\x75\xfc\x87\x02\xa2\xca\x14\x51\
\x9e\x0a\x54\x6e\x55\xbe\x26\x30\x83\x46\x56\x97\x9f\x0e\x80\x45\
\x25\x82\x67\x36\xc8\xe0\xa5\x5b\x01\x68\x77\xbd\x0c\xc1\xe7\x43\
\xe6\xfc\x05\xa8\x9a\x8c\x50\x6f\xb2\x2b\x09\x56\x8b\xc9\x50\xfc\
\x74\x08\x6a\x8f\x07\xea\xf6\x36\x14\x7e\x1f\x87\xb0\xad\x11\x4c\
\x5f\x25\xc9\xcd\x04\xc1\x22\x83\x03\x5c\xd7\xed\x44\x39\x92\x45\
\x69\x36\x02\x6d\x4f\x0f\x0c\x43\xef\x54\x25\xfe\xfa\x1b\xd2\xe7\
\x2e\x40\xd8\x28\x42\xed\x32\x2a\xdb\x42\x95\x17\x67\xaa\xe0\xa6\
\x4f\x3f\x06\x33\x1a\x90\xa1\x58\x89\x44\xb3\xd5\x41\x24\x02\x32\
\xb7\xc3\x60\xa1\x81\x7e\xae\x27\x69\xe5\x74\x11\xf9\x5a\x82\xb5\
\x96\x20\xad\x3c\x91\xa4\x28\x51\xd3\x21\x42\x70\x54\x6d\x65\x02\
\xcf\xdf\x09\x43\xb7\xab\x07\xa6\x5a\x31\xf5\xb1\x82\xd3\x00\x8d\
\xdb\x8c\xf4\xdd\x08\x58\xa0\xbf\x9f\x1b\x49\x96\x54\x5d\x99\x24\
\x67\x89\x55\x22\xb1\x7d\x76\x42\x26\xc9\x51\x62\x62\xe4\x5b\xe8\
\xda\x49\x09\x55\x96\xfd\x2b\x02\xdd\xee\x1e\x58\x86\xde\x95\xc1\
\x57\x63\x34\x76\x3d\x74\x6d\x96\x8a\x2d\x79\x2f\x0a\xe6\xef\x3f\
\xc2\x4d\x9b\x1d\x72\x73\x57\x32\x25\xa4\x09\xa0\x81\x00\xc4\x3a\
\x80\x2c\x01\xc4\x08\x40\x5a\x86\x3d\xbb\x61\x5d\xc7\xa7\xb5\x35\
\x40\xef\x31\xcb\xdb\x95\xbc\x1f\x03\x5b\x3a\x72\x84\x5b\xbc\xca\
\x4d\x5c\xa1\x16\x24\x66\xa3\xd0\xef\xde\x05\x7b\x1d\x50\xec\xfb\
\x8b\xd4\xca\x0c\xec\xc7\x86\x64\x5b\x9a\xc0\xa3\x04\x6e\x74\x9b\
\xa0\x15\x1b\x14\x73\x11\x9f\x8b\x83\x2d\x1e\x3e\xcc\xc5\x2e\x51\
\x71\x12\x79\x32\x86\x62\x30\x86\xd0\xf5\x05\x18\xf7\xee\x45\xcb\
\x99\x2f\xd6\x9d\xbd\xd8\xd8\x15\xf8\x3f\xf9\x1c\xf6\x6e\x17\x55\
\x4e\x47\xd4\x6c\x55\x4c\x61\x74\x3e\x09\xf6\xf0\xd0\x21\x6e\xa3\
\x0d\x44\x31\x8f\x72\x38\x80\x72\x34\x42\x12\x4a\xd5\x53\x44\x1b\
\xef\x9f\x0a\xc1\xfa\xda\x7e\x78\xce\x7c\xa9\x00\x7f\x7c\xf2\x14\
\x42\xdf\x5d\x84\xa3\xd3\x0a\x53\xa3\xbe\x5a\xb9\x4a\x0d\x26\x3a\
\xa0\x6a\x6c\x02\x34\x5a\x44\x16\x88\x60\xfe\xc0\x01\x6e\x37\x66\
\x50\x8e\x85\xd7\x46\xbf\xa6\x24\x11\xcc\x20\x38\x1b\x87\xf3\xed\
\x41\xb4\x9e\x3a\xa9\x20\x78\x70\xec\x43\x84\x49\x81\xdb\x67\x87\
\xce\x20\x28\x87\x51\xe2\xb2\x39\x10\x2e\x98\xc1\xa6\xbc\x5e\xee\
\xde\x66\xaf\xf9\xd6\xc0\xe3\xa1\x2c\xfc\xf7\xe3\xe8\x1c\xfe\x0a\
\x8d\xbd\xaf\xaf\xdb\xa2\xfb\xc7\x8e\x23\x72\xf9\x27\x78\xbc\x22\
\x74\x0d\xff\x24\x79\x44\xf9\x6c\xb2\x6b\x13\x6f\xdd\x22\x2a\x26\
\x34\xec\x4f\x63\xf9\x51\x0a\x5e\x02\x77\xf6\xbe\x21\x03\xde\x3d\
\xfa\x41\xe5\xea\x1d\xfe\x5a\xb6\xdd\x3b\x7a\x1c\xa1\xcb\x57\xd0\
\x4e\xad\x6a\xd0\x29\x49\x1e\xcc\x27\xc0\x6e\x76\x76\xf2\xb6\x4d\
\x36\xd9\xb8\xb0\x90\x40\x94\xa6\x7a\xeb\xf0\x69\x6c\xe8\x5b\x03\
\xbf\x4d\xe0\xa1\x4b\x57\xb0\x52\x2e\x63\x0b\xf9\x5c\x75\xbe\x3b\
\xe4\x0b\x92\xaf\x8b\xce\x7f\x85\xa4\xd6\x8d\xb9\x87\xb4\x07\x37\
\xda\x3b\x78\x47\x47\x55\xc1\xdc\xa3\x38\xc2\xd1\x1c\xba\xcf\x9e\
\x46\x73\xdf\x01\x19\x60\xea\xbd\xf7\x09\xe0\x32\x36\xb7\x89\xc8\
\xe4\x4a\x98\x5f\x4e\xc2\x47\x31\x2d\x75\x31\x13\x7b\x5e\x41\x66\
\x7a\x1a\x9b\xdd\x16\x18\xb4\x55\x92\xd9\x25\x52\x70\x6d\x63\x3b\
\xef\x6a\xb3\x62\x8e\x92\x96\xc3\x19\x3c\x37\xf2\x0d\xdc\x07\xab\
\x89\xc5\x78\x02\x33\x1f\x9d\xc0\x32\x81\x77\xbb\x45\x18\x6a\x2d\
\x08\xc6\x73\x98\x0d\x24\xf1\xec\xc8\x19\xb4\x1e\xec\xad\xd8\x4a\
\x14\x3b\xf1\xea\x7e\xa4\xa7\xa6\xe1\x73\x59\x61\xd4\x08\xb8\x4b\
\x31\x6c\xc2\xb3\x91\x7b\x5b\x2c\x48\xd3\xf3\xfc\xe6\xc3\x28\x9a\
\xa9\xe7\x3b\xcf\x0d\x13\x78\x1c\x57\xf7\x51\x02\x55\xb5\xbd\x59\
\x84\x71\x55\x7a\x6d\x9f\xfc\xc9\x2c\xee\x84\x93\xd8\x31\x32\x8c\
\xb6\x37\xab\x24\x37\x86\x8e\x62\x69\x94\x8a\x69\x34\xc3\xaa\xd5\
\xe0\x36\xf9\xd9\x1f\xee\x36\xbe\xc5\x65\xa9\x24\xa6\xf2\x45\x5c\
\x7f\x1c\x85\x9b\xa4\xc7\x26\x6f\x55\xaa\x79\xde\x25\xc2\x44\xc1\
\x95\x3d\x5a\x1d\xd2\xda\x75\x26\x9c\xc0\xe3\x4c\x0e\x2f\x9c\x3f\
\x8b\xe0\xf8\x55\x2c\xfe\x78\x09\x3b\x1b\xad\x30\x0b\xea\x6a\x6b\
\xa3\x29\xb0\xf1\x66\x0f\xf7\x35\x99\xe5\xa4\x24\x91\x4c\xf8\xa3\
\x95\xdf\x2f\x39\x6d\x30\x6b\x84\xba\xe9\x5f\x23\xe1\x35\x35\xb7\
\x62\x09\x2c\x66\xf3\xf4\x3a\x67\x78\xd1\x26\x81\x0b\x72\xdc\x64\
\x82\x08\x7e\x71\xb6\xf0\x1d\x0e\xab\x22\x39\x94\x2b\x40\xc3\x18\
\x2c\xf5\xe0\x4f\x92\xd4\xd9\xa7\x52\x29\x78\x74\x3a\x58\x84\xfa\
\x36\x72\x5c\x4b\x55\x09\x46\x5d\x3a\x6d\xaf\x8b\x02\xd6\x4b\x7e\
\x72\x78\x9e\x9c\x76\x25\x79\xdd\xa3\xa4\x58\x90\x3e\x63\x4c\xba\
\xf9\xd9\xbe\xa1\xf2\xb7\x45\xa0\xaa\x15\x6f\x2d\xf0\x7f\x05\x59\
\x07\x53\xb6\x97\xaa\x05\x8d\xed\x8b\x05\xfa\xfe\x06\x70\x77\x62\
\x0a\x02\xba\x37\x2f\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\
\x82\
\x00\x00\x06\x2c\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
\x00\x00\x05\xf3\x49\x44\x41\x54\x78\xda\x8d\x56\x6b\x6c\x14\x55\
\x14\xfe\xee\xdc\x99\x9d\x99\xed\x63\xb7\x2d\x6d\x2d\x10\xb4\x56\
\xc1\x3e\x10\x23\xa8\x04\x2c\x20\x51\x13\x50\x13\x05\x1a\x1e\x4a\
\x79\x44\x05\x0b\x8a\x44\x30\x10\xf9\x81\xd1\x04\xa2\x12\x84\xd0\
\xb5\x88\x68\x45\xd0\x6a\x2b\x26\x62\x20\x02\x51\x94\xa2\x51\x54\
\x52\xdb\xa2\x68\xd3\xaa\x20\xd0\x07\x6d\x77\xed\xb2\x3b\xbb\x33\
\x73\x3d\x33\xdb\x07\x0d\x56\xbd\xd9\x99\xd9\x9d\x7b\xee\x77\xce\
\xf9\xce\x77\xcf\x5d\x86\x7f\x19\x7c\x85\x52\x6c\x99\xd6\x3c\x84\
\xec\x19\x88\x20\x17\xc3\x7a\x27\x3a\xe8\xd2\xd1\x82\x54\xe9\x10\
\x97\x79\x95\x55\x1e\x3f\x3e\x14\x06\xfb\xa7\x97\xf2\x4a\xa5\xc8\
\xec\x8e\xd7\xf9\xb2\x93\xa4\x7b\x6e\x1d\x8d\x3b\xf3\x0b\x70\x43\
\xc6\x70\xf8\xf5\x34\x77\xbe\x3b\xd2\x85\xa6\x4b\xe7\x51\xfb\xd3\
\x69\x1c\xf9\xe1\x17\x04\x5b\xc3\xb6\xec\x57\xc6\x99\x3b\xe2\x0d\
\xff\xed\xa0\xcc\x53\x8e\xcb\xb1\xb2\x35\x8f\xdc\x8b\x07\x0a\x27\
\x23\x43\xcb\x02\x13\x1c\xa6\x6d\xc1\x86\x70\x4d\x24\x5a\x26\x4b\
\x1c\x82\x59\xb8\x14\x6d\xc3\x81\xc6\x13\x78\x65\xef\x61\xc0\xeb\
\x09\x20\x10\x5b\x31\xb4\x83\xc7\x50\x9d\x9d\xe1\x9b\xf3\xea\x63\
\xa5\x28\x4a\x2b\x24\x50\x06\x5b\x08\x28\xcc\x43\x80\x32\x01\x4b\
\xe8\x11\x31\x24\x33\x05\x61\x7a\xc2\x36\xc1\x19\x03\x97\x6c\x34\
\x74\x35\xe2\xe9\x5d\x7b\xd0\x7a\x29\x58\x83\x5d\x28\xb9\xca\x01\
\x7b\x4a\x29\xcf\xf6\x25\x95\xed\x59\xb9\x0a\xd7\x78\x46\xc1\xb0\
\x28\x5e\x61\x22\x2a\xce\xa3\xd3\xe8\xee\x37\xec\x7b\x3a\xb9\xa4\
\xa9\x7e\xe8\x6c\x24\x18\x39\x57\x25\x86\x0b\xb1\xdf\x51\xba\x63\
\x1b\x5a\x83\xe1\x80\xd8\x1e\x5f\xd1\x6f\xaf\xae\x56\x8b\x8c\xb0\
\x51\xbf\x7f\xc3\x7a\xe4\xa5\xe4\x23\x6a\xf6\xa0\x35\xfa\x33\x5a\
\xad\x26\x68\x48\x23\x23\x76\x35\x99\xc2\xf9\x08\xc4\x58\x10\xa3\
\xd4\x31\xc8\xf4\x14\x40\xe1\x3a\xce\x04\xeb\x31\xeb\xc5\x4d\x50\
\x93\xd4\xb1\xc6\x56\xa3\x21\xb1\x6c\x19\xac\x75\x0f\xcf\x92\x4a\
\xc7\xcd\xc5\xf9\x48\x13\x7e\x8f\x9e\x82\x02\xa2\x85\xa8\x10\xbd\
\xbc\xff\xd3\x90\x88\x1e\x9f\xa6\x63\xe6\xdb\x15\x58\x38\x21\x0f\
\xcd\xed\x2a\x2a\x67\xbc\x80\xdd\xa7\xf6\x61\xf3\xbe\xfd\x36\x76\
\x12\x83\xda\x1a\xb5\x58\x97\xd9\x97\xc7\xd6\xbd\x8e\xdf\xc2\x3f\
\xa2\x9d\xd2\x94\x25\x9d\x02\x96\xdc\x30\xe5\x21\x1c\x38\xdc\xab\
\xb2\x8c\x87\xde\xd9\x0d\xf1\x2c\xd9\x44\x1c\x2a\x80\xb9\x47\x27\
\xe2\xb9\x3b\x56\x60\xda\xe6\xc7\x11\x31\xc5\x14\x26\xad\x56\xca\
\x17\x4d\x9f\x5a\xb6\x64\xd2\x0c\xfc\xda\x73\x12\x1a\xf7\x82\x59\
\xa6\x0b\x3b\xc0\xf7\x95\xbf\x12\x91\xcb\x5c\x42\xc9\xde\xb7\x5c\
\xf0\x48\x38\x02\x93\xea\x95\x92\x9c\x82\x8c\x0a\x1d\x07\xe7\xbf\
\x84\x9d\xc7\x3f\xc6\xdb\x9f\x7d\x11\x60\x78\x12\xcd\x6f\xae\x5a\
\x9d\x2b\x94\x76\x97\x96\x48\x2c\x84\x34\x3d\x05\xb6\x2d\x5c\x60\
\xc3\x14\xe0\xf0\x82\xcb\x91\x7e\x89\xa6\x6a\x2a\x66\xee\xde\x09\
\xb1\x8e\x6a\x60\xc4\x48\x0c\x36\x54\x8f\x86\x23\x17\xf6\xe3\xfe\
\x9a\xd9\xd8\x35\x67\x21\xac\xe8\x30\x2c\xdd\xb6\xb5\x85\x61\x39\
\xc4\xbb\x1b\x97\x23\x1a\x31\x48\xc6\x1e\x78\xb9\x85\xf7\x1a\x4e\
\x60\xe2\x88\x31\xd0\x25\xd5\x95\x29\x7a\x33\xa0\xc0\xa1\x79\x24\
\x2c\xfa\xa0\xca\x8d\xdc\x8c\x53\xa6\xf4\x4e\x21\xaa\x0e\x9f\xab\
\x21\xf0\x12\x54\x96\x2c\x83\x11\x8f\x41\xd3\x55\x2c\xd8\x58\x01\
\xa6\xaf\xe7\xa2\x72\xd5\x13\x08\x5d\x8e\x40\xe5\x1c\xa5\xd5\xaf\
\xe3\x8f\xd9\x17\x31\x6a\xff\x35\x78\x60\x4a\x06\x74\x55\xa1\x6c\
\xe0\x82\xcb\x1e\x81\xf7\x0e\xb4\x42\xac\xa5\xdc\x2c\xe1\xa4\x43\
\xef\x19\x0e\x9f\xad\xc1\x83\x1f\x95\x60\xea\xcd\x05\x28\xbd\x71\
\x3a\xc2\xb1\x08\x52\xbd\x3a\x16\x6f\x7b\x0d\x2c\x7d\x93\x57\xec\
\x58\xb2\x14\x46\x54\x60\xd9\x27\x01\x18\xf3\x6d\x84\x8c\x10\x52\
\x7d\xa9\x60\xaf\x31\x2c\xbe\x7f\x24\x2c\x53\x22\x8a\x6c\x54\x1e\
\x38\x07\xb1\xc6\x01\x27\x60\x29\x51\x96\x4f\x09\x7c\x16\x81\xdf\
\x5a\x90\x81\x6b\x73\x74\xe4\xa8\xc3\x50\xa8\x4c\x86\xaa\x31\x3c\
\x51\xf1\x26\x98\xb6\x41\x12\x7b\x9e\x5a\x8b\x13\xed\x47\xb0\xb7\
\xb6\x0e\x1d\xf3\x4c\xfc\x11\x3a\x0b\x5d\xd1\x90\xe9\xcb\x04\xa3\
\x32\x15\xde\x04\x34\x9e\x46\x2f\xb8\x00\xe3\x89\x82\x0f\x80\x0f\
\x43\x5e\x0e\x47\x9c\xe6\x4c\x11\x47\xa6\x3c\x12\x53\xb3\x66\xa2\
\x74\xfb\xcb\x60\x29\xcf\x6b\xcd\x0b\x67\xe7\xe7\xb6\x1a\xe7\xd1\
\xd5\x69\xe3\xd8\xe9\x76\x58\x4b\x04\xda\x22\xed\xf0\x70\x05\xfe\
\x64\x7f\xa2\x04\x1e\xea\x0c\xc4\x95\x03\xee\xd0\x32\x08\x7c\x38\
\xf5\x2a\x02\x77\xca\xc5\x98\x86\x9e\x58\x18\x23\xb4\x51\x78\xe7\
\xc3\x9f\x5a\x58\xf6\x66\x6f\xf9\x98\xf1\x49\x65\xc3\x33\x55\x97\
\xe7\x33\x4d\x7f\xa1\xee\x5c\x10\xe6\xe3\x02\x5d\x97\xbb\x88\x1a\
\x4e\x92\x94\xc1\x79\xef\x53\xe1\x38\x72\xf6\x23\xe2\x7c\x16\xc6\
\x13\x2d\xd7\x65\x7b\xdd\xc8\x5d\x85\x71\xc0\x22\xfa\x24\xa2\xef\
\xcf\x36\x03\x67\xbe\x0f\x07\xd8\xf0\x2d\x29\xc5\x49\xe9\xd2\x97\
\x13\x6e\xf3\x23\x16\xb3\xa1\x28\x0c\x0d\x0d\x41\x34\x5e\x0c\xc2\
\x5e\x29\xa8\xf8\xd4\x87\x08\x5c\x93\x35\x28\x54\xf0\x2f\x2e\x1c\
\xc4\xcc\xea\xfb\x30\x81\xc0\x7d\x59\xc9\x04\x38\xb0\x11\x9d\x6f\
\x5e\x4a\x43\xd5\x38\x4e\x7e\xdb\x85\x70\xa7\x3d\xc5\x25\x33\x67\
\x4b\x92\x35\x6e\x52\xaa\xe4\xd5\x14\x57\xff\x5c\x66\x44\x57\x14\
\x9f\x9f\x6a\x83\xbd\x8a\xb4\x1e\x33\xe1\xd1\x64\x7c\xd3\x76\x14\
\xd3\xaa\xee\xc1\xed\x05\xe9\xf0\x67\xa5\xf4\x83\x3b\x77\x55\xf4\
\x65\x21\x21\x1c\x89\xa1\xee\xab\x90\x7d\xe1\x99\x70\xa2\x5a\xb9\
\x81\x94\x22\xc6\x51\x7f\xf3\xc4\x74\xca\x31\xc1\x25\xa7\xa9\xf6\
\xb6\x30\x6a\x1b\x3b\x60\x3f\x2d\xf0\x5d\xc7\x31\x14\xef\xbb\x0b\
\x77\xdf\x52\x48\x6d\xb4\x27\x21\xd3\x2b\x22\x57\x44\x42\xca\x8c\
\x82\xab\xfb\xba\xd3\x51\xda\xd8\x96\xb2\xbf\x1a\xfa\xf7\xff\xf5\
\x15\xc9\xe5\xa9\xe9\x4a\x59\x5e\xbe\x8f\x36\x90\xed\x3a\x91\xb9\
\x0d\xa3\xdb\x87\xda\xfa\x46\xb7\x33\x4d\x1e\xeb\x80\x87\x68\x31\
\x1b\x04\xee\x0c\xc5\xb9\x3c\x1c\x4d\xa7\xbb\x11\xea\x8c\x07\x9a\
\x97\xf7\x0c\xb4\xeb\xbe\x71\xe3\x1b\x49\xd5\xc9\xe9\xca\x9c\x6b\
\xf3\x7c\x24\x19\x5a\x4c\x74\x49\x92\x80\xc5\x25\x77\xde\x51\x91\
\xb0\x07\x83\x7b\x9c\xc8\x9d\x79\xb2\xfb\xad\x29\x88\x9e\xce\x78\
\xcd\xaf\x8f\x86\xaf\x3e\x70\xfa\xc6\x98\xca\xd4\x72\xaa\x69\xd9\
\x88\xd1\x3e\x68\x2a\x1d\x8b\x42\xb8\x97\xe3\x70\x70\xaf\x4e\xec\
\x62\x46\x07\x4d\x34\x6a\xe1\xcf\x5f\x82\x8e\x82\x02\x67\x16\x87\
\xfe\xe5\xc8\xec\x1d\x63\xdf\xf5\x15\x59\x71\xbb\x4e\xf7\xcb\x52\
\x5a\xba\x0a\x4f\x92\x4a\x74\x31\xf4\xd6\xd1\xe5\xda\xd1\x7d\x2c\
\x6c\x90\x18\x0c\x44\xba\x4d\x9b\x2b\xd2\xb8\xfa\x05\xc1\xff\x71\
\xe8\x5f\xe9\xe8\x7d\x7f\xb1\x04\x31\x8f\x90\x67\x50\xc3\xcc\xe5\
\x5a\xc2\xdc\xa2\xb6\x42\xad\xa2\x85\x3c\x1d\xa2\xad\x57\x55\x3f\
\xb7\x7b\xc8\xbf\x2d\x7f\x03\x43\x92\x8a\xfa\xc0\x7b\xcf\x8c\x00\
\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\x00\x00\x03\x9b\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
\x00\x00\x03\x62\x49\x44\x41\x54\x78\xda\xed\x94\x4b\x48\x14\x71\
\x1c\xc7\xbf\xff\x99\xdd\x71\xd7\x5d\x8b\xa4\x17\x6a\xba\x26\x44\
\xa1\x1d\xb2\x94\x5e\x52\x41\xf4\x84\xc8\x3c\xc4\xf6\x38\x16\xe5\
\x5a\x87\x3a\xf4\xb8\x14\x74\x29\x29\x42\xa5\xdd\x20\xa2\x42\x9a\
\x4d\xb0\x43\xa7\xea\xd0\x25\x4b\x83\x1e\xd0\x03\x2a\x2b\xdd\x72\
\xdd\x56\x2c\x4d\xdb\x99\xd9\xdd\x99\x9d\xe9\x37\xbb\x62\x5a\xbe\
\x20\xeb\xd4\x1f\x66\x0e\xc3\xfc\x3f\x9f\xdf\xeb\xff\x67\xf8\xcb\
\x8b\xfd\x17\xfc\x3b\xc1\x45\xa7\x95\xde\x5b\xb0\x2f\x72\xf3\xef\
\x08\xbc\x76\x11\x89\x84\x1b\x16\xab\x1b\xfb\xa5\x1b\x93\x2b\xb8\
\x60\x17\x67\x4c\x9b\xe9\x3e\xb4\xad\x0a\xc7\x2e\x1d\x07\x2c\x82\
\x9f\x24\x3b\x26\x47\xe0\x4d\xaf\x82\x9e\xa8\xab\xf7\x5c\xc5\xed\
\xde\x3b\x68\x0a\x3e\x40\xf8\xe9\x17\xa8\x8a\x26\xa2\x52\xda\xf9\
\x67\x02\x6f\xba\x1b\x86\x21\x9e\xdd\x7b\x1a\x9f\xf5\x10\xc4\x77\
\x0d\xb0\xf1\x36\x70\x1c\xd0\xf1\x28\x8c\xb8\xac\xbe\x1f\x2e\xf0\
\x39\xf2\xa0\xeb\x01\xfa\x63\x23\xa5\x78\x67\x4c\xb8\xcf\xb1\x0e\
\x51\xe9\xee\xb9\x03\x35\x08\x25\x3e\xe3\xfa\xbb\x1b\xb0\x71\x69\
\x60\x8c\x81\x91\x20\x98\x12\x5c\x61\x43\x36\xb8\xa1\x6a\xa2\x7b\
\xd9\x1a\xf8\x9b\xef\x01\x82\xe0\x22\xc9\xc7\x51\xe0\x79\x88\xc9\
\x01\xcf\xd6\x03\x48\xcf\x72\xa0\xbe\xd5\x3f\x08\xe7\xac\x1c\xba\
\x9e\x77\x23\xd2\x25\x07\xa8\x44\xf9\x6c\x10\x1e\xd7\xc4\xc3\x9b\
\x16\xa3\x30\x57\x41\x77\x4f\x29\x8e\x34\x5c\x06\xd2\xd2\xf2\x49\
\x12\xf8\x05\x9e\x8f\x78\xb4\xad\xaa\xbc\x12\xf3\xe7\x2c\xc0\xa9\
\x57\x67\x60\xa7\xb2\x24\xe1\x16\x82\xbf\x20\x78\x58\x6e\x87\x47\
\x9a\x9b\x6a\xb2\xcf\x59\x41\x91\x37\x9a\xf0\xdc\xe9\x1f\xd0\x1f\
\x67\xc8\xb0\x67\xe1\x5b\x5f\x11\x4e\x36\x8a\x24\x11\x86\x4b\x6a\
\xad\x7d\x1b\x4b\xd6\x4f\x29\x5f\xba\x01\xd5\xaf\x6b\xa1\xd2\x27\
\x8e\x6a\xc2\x78\x86\xde\x0f\xfd\xe8\x6d\xeb\x05\x3c\xf2\x60\x65\
\x18\xbc\x0e\x63\xed\x82\x2c\x54\x94\x48\x88\xc4\x18\x64\x9d\x21\
\xa6\x9b\xbb\x04\x68\x91\x52\x54\xdf\xba\x69\x4a\x72\x49\xd2\x81\
\x3a\xa1\xbd\xac\x68\x99\x6b\xcf\xea\xed\x38\xfd\xba\x06\x31\x18\
\x48\x10\x9c\xe3\x18\xa4\x2e\x39\x59\x1a\x58\x38\x0a\x28\x12\xf8\
\x29\xf0\x39\xb3\xa1\xe9\xc1\x5d\x2b\x9d\x28\x99\x2b\xa0\x2f\x0e\
\x44\x13\x1c\x24\xdd\x6c\x96\x00\xa6\x2c\xc1\xf9\x5b\x8d\x2a\x6d\
\x7c\x5b\x90\x5d\x50\xe4\xdd\x7a\x02\x47\x5b\x8f\x43\x31\x78\xc4\
\x0d\xce\x0c\x1f\xf2\x97\x28\xc2\xcf\xc2\x04\xe7\xa9\x6f\x91\x61\
\x7d\x1b\xe8\x81\xd3\x05\xd5\x68\x77\x97\x39\xb0\xd0\x95\x86\x7e\
\xca\x24\xaa\x73\x94\x0d\x60\x50\xf3\x04\x65\x11\xfc\x0f\x9b\x70\
\x6d\xf7\x29\x78\x3f\x5d\x44\x48\xf9\x8a\xa8\x61\x85\x46\xf0\xb8\
\xac\xa1\xa3\x25\x44\x24\xb6\x93\xe0\xe2\xaf\xf3\x30\x64\x8a\x4c\
\x89\xde\x5e\xbe\x22\x03\x85\x79\xb6\x64\x2f\xa2\x94\x85\xac\xe9\
\x48\xf0\x02\xb6\xe5\x54\xa2\x21\x28\xe2\x93\xdc\x43\xa5\xe1\x11\
\xa3\xe8\x23\x04\x0f\x3e\x4a\xc2\x87\x5d\x0f\x23\x0b\x86\x48\x36\
\x2f\xcf\xc0\xbc\xec\x74\x7c\xd7\x90\xec\x87\x92\x60\xf8\xae\xeb\
\x14\x35\x9f\x7a\xe8\x57\x53\xd0\x7a\xbf\x13\xba\xa6\xd7\x11\xfc\
\xe0\x68\xc7\xe5\xf7\x93\x3c\x20\x59\xb7\x74\x2a\x5c\x39\x76\xc8\
\x2a\x83\x42\x12\xd9\x48\x95\x4c\x36\x58\x52\xf8\xa6\x25\x0c\x4d\
\xd1\xfc\x34\xeb\x3b\xc6\x3a\x8f\x23\x5f\x15\x03\x92\x55\xa5\xa6\
\xc4\x81\x3e\xd5\x48\x36\xde\x14\xc4\x2c\x3c\x5e\x34\x87\xa1\xf4\
\xab\x77\x09\xbe\x01\xe3\xac\xd1\xef\x22\x9f\xb3\x98\xa6\xeb\xe9\
\xf2\x25\x99\x98\x95\x65\x83\x44\x99\xc4\x38\x1e\x2f\x9f\x7f\x45\
\x4f\x88\x4e\xa9\x47\xca\x1f\x0f\x3e\xb6\x20\x25\x71\x93\x44\x2c\
\x2e\xce\xc4\xec\x5c\x07\x1e\x3f\xe9\x41\x77\xa7\xdc\x86\x2a\xa9\
\x60\x22\xf0\xf1\x05\x43\x24\xd9\xae\x0c\x74\x7e\x8c\x00\x3c\x2b\
\xa0\x71\x6c\x9b\x3c\x41\x4a\x52\x41\xd7\x72\x23\x8d\x63\x0e\xc1\
\x3b\x27\x0a\x37\xd7\x0f\xc2\xf5\x84\xe5\x60\x82\x52\x9b\x00\x00\
\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\x00\x00\x04\x31\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
\x00\x00\x03\xf8\x49\x44\x41\x54\x78\xda\x95\x95\xeb\x6f\x14\x55\
\x18\xc6\x9f\x5d\x76\xb7\x14\xba\x17\x68\xb7\x96\x5e\xc1\x44\xa5\
\xda\xaa\xf1\x5b\x6d\x15\x83\x8d\x31\x48\x42\xa2\x18\xf8\x40\xd4\
\xaf\x26\xc6\x3f\xc1\x4f\x7e\xd0\x14\xeb\x35\x7e\x50\xa3\x95\x82\
\x20\x8b\xa2\x31\x6a\xd4\xc4\xc4\x20\x35\x92\x50\x5a\xaf\x40\x35\
\xd6\xd6\xdd\xd9\x96\x6d\xbb\x3b\xf7\xcb\x99\x39\xbe\x67\x86\x35\
\xab\x76\xdb\xce\x24\x27\x33\x9b\xec\x79\x7e\xef\xf3\xbc\xef\x99\
\x89\xa0\xce\xd5\x7b\x7c\x89\x1b\x36\xc7\xf6\x2d\xd0\xe4\x8a\x03\
\xc7\x71\xc1\x0d\x0f\xdc\x61\x70\x2d\x06\x46\x77\xf1\xec\x59\x6c\
\xab\xab\x58\x28\xbf\x33\x10\x59\x4d\x27\x52\x0f\xd0\xf9\xc6\x22\
\x7f\x6e\x7f\x06\xb7\xa5\xe3\xf8\x78\xd9\x85\xc1\x23\xe0\x8c\xc3\
\x70\x68\x31\x8f\xee\x1e\x18\x03\xf2\x79\x13\x53\xa7\x7f\x86\x7a\
\x62\x28\x1c\xa0\xfd\xf5\x22\x7f\xe5\x60\x33\xee\x48\xc5\xf0\xa5\
\x0c\x50\xf1\xb0\x5d\x01\x00\x4c\x02\x69\xb4\x4c\xd7\xc3\xac\xe4\
\xe0\xfb\xb7\x2e\x42\x3b\x75\x6f\x78\xc0\xe8\xc3\xcd\xe8\x23\xc0\
\xe7\x65\x0e\xdd\x25\x61\x02\x58\x54\xb9\x4e\x2e\x74\x83\xc3\xa6\
\xdd\x73\x92\x85\xe9\xf1\x49\x02\xdc\x17\x12\xf0\x9a\xc4\x47\x1f\
\x69\x41\x7f\x3a\x86\x8f\x56\x3c\x1f\xc0\x48\x5c\xb5\x41\x00\xfa\
\x6d\x91\x03\xda\x5d\xa0\x88\x7e\x39\x3e\x0d\x2d\xb7\x27\x1c\x60\
\xc7\xab\x12\x7f\xe1\xd1\x66\xf4\x27\xe3\xc8\x2d\x51\xe5\x4c\x2c\
\x0f\x9a\x15\xb8\x50\x44\x1f\x58\x04\x52\xde\xc2\xcc\xe9\x49\xe8\
\xb9\xbd\xe1\x00\x6d\x2f\x15\xf8\xe8\x21\x8a\x28\x99\xc0\x99\x52\
\x20\x68\x53\xfe\x9a\xed\xf9\x0e\x54\x5b\xf4\x00\x28\x92\x83\xd9\
\xdc\x25\xe8\x1f\xdc\x1f\xd2\xc1\x8b\x05\x3e\x42\x80\x5b\x09\x70\
\xaa\x14\x88\xda\x54\xbd\x72\x1d\xa0\xd3\x04\x19\xe4\x6a\xf1\x4f\
\x03\xf3\x9f\x4c\xc1\x38\x33\x1c\xd2\xc1\xcb\x79\x3e\x72\xb0\x05\
\xbb\x09\x70\x72\xd1\xf1\xb3\x37\x6d\x51\x39\x45\x43\xcf\xe2\xae\
\xd3\x7d\xa5\x60\xa0\xf8\xe9\x34\x39\x08\x0b\x38\xfa\x17\x7f\xfe\
\x70\x16\x37\x13\xe0\xc4\x02\x83\xaa\x7b\xfe\x19\xd0\x41\x23\xaa\
\x8b\x26\x53\x3f\x68\x92\x96\x8b\x26\x96\xbe\x98\x82\xf9\xe1\x03\
\xe1\x00\x2d\x23\x73\xfc\xe8\xe1\x56\xf4\xa6\x1a\x30\x96\x67\x28\
\xd3\x18\x99\x1e\x01\x28\x7b\x21\xae\x9a\xd4\x17\x72\x20\x4b\x3a\
\x94\xaf\x7e\x80\x71\xb6\x0e\xe0\xa6\x67\x7e\xe4\x0d\xfd\x1d\x48\
\x6c\x8d\xc3\xd6\x1c\x24\x1b\x63\x50\x0c\x06\x67\x41\xc7\x53\x0f\
\x65\xd1\xd3\x14\xc3\x59\x89\x41\x21\x41\x9b\x72\x57\x2c\x97\x9e\
\x09\x42\x2e\x34\xea\x85\xbc\x64\xc2\x98\xf8\x0d\x2c\x12\x01\x33\
\x4c\x20\x16\xff\x37\xa0\xed\xc9\x0b\x3c\x99\x6d\xc4\xde\x03\x37\
\x62\xb8\x67\x33\x06\x32\x51\xbc\x57\xa2\xe6\x51\xa5\x0e\x55\x2a\
\x8b\x79\xf7\x9b\x4a\x8b\x84\x45\x2c\x2a\xb9\xd1\x08\xa8\x5e\x77\
\xa2\xd1\x29\x87\x61\x00\xd1\x4d\x18\xb8\x2b\x8d\xef\x26\x4a\x68\
\x9b\x97\x50\x2c\xd9\x41\x44\xb5\x90\xfd\xdd\x71\xec\x24\x37\xe3\
\x92\x8b\x92\x78\xb9\xb9\x22\x16\x02\x55\xa3\x11\x00\x53\x00\x5c\
\x1f\xa0\xd3\x7f\x6c\xdd\xf2\xab\xed\xbd\x3d\x8d\x5f\x2f\xad\x20\
\xf3\xfb\x02\xca\x32\xb9\x79\x7f\x4f\xe4\x9f\xdc\x3a\x9f\xbe\xc8\
\x1b\x33\x09\x1f\xb2\xaf\x63\x13\xd2\x8d\x09\xbc\xf9\x87\xed\xcf\
\xbe\xc3\x3d\x54\x48\xd8\xf4\x01\x9e\x5f\xbd\x88\x4c\x38\x31\xc4\
\xcb\x89\xfe\xd4\x75\x4b\x0a\xf3\x57\x64\xa4\x67\x16\x50\x51\x03\
\xf1\xff\x35\x39\xf5\xf8\x79\x7e\x43\x4f\xca\x87\x1c\xda\xd5\x80\
\x6f\x8a\x36\x26\x95\x08\x09\x07\xa7\xb7\x5a\x7d\xe0\x80\xfb\xbd\
\xf2\x34\x13\xed\xbb\xb7\xa1\x70\x99\x2a\x27\xf1\x72\x8d\xf8\xaa\
\x53\x54\x85\x64\xee\xd9\x85\x67\xef\x4c\x60\xe2\x1a\xc3\x67\x79\
\x0f\xae\x13\xf4\xa4\x62\x06\xf9\x8b\x65\x56\x0c\x24\xbb\x93\x50\
\xe6\xe4\x55\xc5\xeb\x8e\x69\xea\x09\x82\x74\x07\x90\x7d\x1d\x51\
\x7c\xbd\xec\xa1\x50\xa0\x0f\x4c\x34\x78\x8b\xfa\x2e\x4a\x3a\x1a\
\xda\xb7\xc0\x2a\xe8\x68\xbd\x32\x8b\x45\xea\xf1\x7f\xc5\xd7\x3c\
\x07\x55\x88\xd7\xd7\x85\x23\x7d\x09\x1f\xf2\xd3\x8c\x05\x4e\xfd\
\x28\xcb\x1c\xd1\x74\x14\x5e\x51\xf3\xc5\xad\x68\x02\x95\xb7\x43\
\x7e\xd1\x6a\xe3\xaa\x85\x9c\x9b\x58\x06\x9a\x36\x83\xba\xee\x8b\
\x9b\x88\x43\x1e\xbb\xbb\xae\xce\x9a\x80\x5a\xc8\xf6\xae\x14\x1e\
\x1c\xcc\x22\x57\xf4\xb0\x8d\x4e\xdc\xd5\x93\x53\xb0\x84\xf8\xbb\
\x83\x6b\x6a\xac\x0b\xa8\x85\xb4\x76\xa6\x30\x3c\x94\xc5\xb1\xb1\
\xab\xb8\x46\xf1\xa8\xc7\x06\xd7\xdd\xbf\x21\x80\xb8\x9a\x1e\xfb\
\x96\xef\xd8\x99\xf6\x21\xd3\xe7\xe6\xa1\x8e\x0f\x6d\x68\xef\x86\
\x01\x55\x27\x62\x87\x3c\xb6\x7e\xe5\xd5\xeb\x6f\x13\x96\xa7\x65\
\x0a\x94\x8d\x23\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\
\x00\x00\x04\xe4\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
\x00\x00\x04\xab\x49\x44\x41\x54\x78\xda\x9d\x96\x71\x4c\x94\x75\
\x18\xc7\xbf\xbf\xf7\xf7\x1e\x70\x7a\x20\x70\x70\xc0\xc1\x29\x78\
\xdc\x81\x0a\x8d\x0c\x21\x56\x64\xae\xcc\x55\x6c\x8c\x74\x6b\x93\
\x42\x36\x75\xa3\xe5\x1f\xfd\x97\x0a\x12\xd0\x5a\xa1\xce\x9a\x2b\
\xc7\xda\x5a\x5b\x6b\x4e\xe7\x66\x2b\x56\x73\x2d\x66\x9a\x53\xb2\
\x69\x02\x39\x13\xe4\x2c\x15\x84\x3b\x36\x20\x4e\xe1\xbd\xbb\xf7\
\xfd\xf5\xbc\xef\xdd\x05\x47\xc1\x92\xe7\x1d\x7b\x8f\xdb\xef\xf7\
\x7c\x7e\xdf\xe7\x79\x7e\xcf\x73\x0c\x64\x1d\x7d\xef\x09\x2e\x85\
\xc0\x19\x16\x36\xf1\x3f\xbe\x8e\xfc\xa3\xd2\x5b\x55\x65\xbc\x51\
\xd2\xc8\xd8\x87\x57\x0f\x08\x57\x8a\x8c\xa4\x04\x01\x4d\x2c\xec\
\x9f\x31\x0d\x21\x7d\x01\x13\x10\x82\x41\xa2\x47\x3f\x0f\xc3\xec\
\xa9\xd4\xc8\x5b\x62\x0c\x93\xd3\xc0\xdd\x49\x0e\xd6\xd1\xd3\x2a\
\xd6\xda\x04\x54\x0d\xd0\x16\x39\xad\x4a\x80\x7e\x5f\x00\x19\x96\
\x10\x12\x64\x90\xda\x78\x70\x49\x26\xb0\x14\xb3\x27\xba\x55\x26\
\xee\x4d\x5f\x08\xec\xd3\x6b\x07\x84\xd3\xc6\xa1\x69\xb1\xf1\x11\
\x31\x1f\x34\x92\x1d\x42\xef\xf0\x14\x46\x27\xa6\x90\x97\x61\x42\
\x76\x92\x05\x71\x3c\x81\x40\xa6\x59\xc8\x5c\xa3\xaf\x3c\x5e\x52\
\x78\xec\xd7\x56\x51\x60\x03\xc9\xff\xf7\xe9\x85\xf1\xd0\x5b\x90\
\x42\xa1\xa0\xdb\xe3\x43\x45\xe6\x4b\x38\xd1\xf3\x05\xd6\xbb\xd3\
\x91\x9b\x9c\x0c\x59\x4a\x80\xa4\x2b\x89\x86\x2a\xb2\x5f\x22\xc0\
\xa0\x57\x05\xfb\xe4\x4a\xb3\x70\x65\xe8\x0a\xc2\xce\x34\x23\xae\
\xb4\x4e\x0b\x03\x34\xfa\xa0\x3f\xaa\xa6\xe0\x42\xff\x7d\xb4\x3c\
\xd3\x81\x11\xff\x30\xda\xba\xf6\xa2\xa2\xc0\x0e\x7b\xb2\x85\x20\
\xf1\x86\x0a\x1d\xa2\x45\x8e\x2f\x49\x0c\x83\x23\x0a\xd8\xd1\x5f\
\x9a\x45\x7e\xa6\x04\x41\x49\x20\x77\xe1\xd4\xd1\x62\x61\x38\x55\
\x49\x59\xc8\x08\x8f\x86\x00\x2e\xde\xf0\xa2\x69\xe3\xc7\x48\x4b\
\x4c\xc7\xad\xd1\x01\xb4\x9e\x6d\x42\x99\xdb\x06\x7b\xca\x0a\x4a\
\xac\x4c\x7f\xfc\x1f\x25\x8c\x12\xed\xd1\x01\x1f\x5d\x6e\x16\x05\
\x04\xe8\xbb\x3f\x83\xb1\xbf\xfc\xa4\x44\xa5\xb8\x72\x0a\x0b\xa0\
\x84\x02\x50\x14\x05\x4a\x80\x20\x04\x7a\x30\x3d\x89\xa3\xd5\x9f\
\xc1\x6e\xb5\x1b\x4e\x3c\x04\x39\x78\xfe\x20\x0a\x56\x9a\x91\x93\
\x6e\x01\x47\x1c\x79\xe6\x86\x73\x5d\x81\x67\x78\x06\xec\xf0\xa5\
\x46\xe1\xce\x96\x71\x65\xd0\x87\xad\xce\xdd\x28\x76\x94\xe0\x51\
\x2c\x18\x0c\xe2\xcd\x53\x0d\x70\x39\x97\xc1\x91\x9e\x08\x2e\x4c\
\x86\x1a\xce\x25\x0c\xe8\x80\x43\x17\x1b\x45\xbe\x5d\x42\x77\xff\
\x28\xaa\x57\xbf\x86\x0a\x67\xe5\x23\x01\x74\x53\x94\x20\x1a\x4e\
\xee\x86\x23\xdb\x8c\xc2\xdc\x54\x48\x04\x31\xc9\x32\x3c\x43\x14\
\xa2\x0f\x7e\xda\x2f\x9c\x0e\x09\x97\x6e\x8c\x60\x9b\xab\x6e\x49\
\x80\xa8\x92\x86\xe3\x0d\xb0\xdb\xcd\x28\x76\xa5\x11\x44\xc6\xe0\
\x3d\x02\xbc\x7f\x7e\xbf\x70\xe7\x70\xfc\xfc\x3b\x85\x68\x4d\x3d\
\xca\x72\xcb\x97\x04\x30\x6e\x0b\xd5\xfa\xdb\xdf\xec\x43\x8a\x55\
\x82\x7b\x95\x05\xb7\xee\x3c\x04\x6b\x3f\xd7\x24\x5c\xb9\x32\x8e\
\x7d\x77\x06\xb5\x8f\xef\x44\x7d\xf9\xae\x25\x03\x74\xdb\xd8\xbe\
\x09\x71\xcb\x38\x76\x55\x6d\xc2\xed\x7b\x41\xb0\x86\xaf\x6a\xc5\
\x74\x46\x2f\xce\x7d\xeb\x45\x6b\x75\x3b\xea\x36\xec\x58\xb2\xf3\
\xd2\xb6\x72\x8c\xfa\x86\x50\xb1\xd5\x8a\x78\x0e\x98\xbd\x45\x60\
\x45\xef\x3a\x45\xf9\xe6\x24\xfc\xd8\xe9\x43\xdb\x2b\xed\xd8\xbe\
\x7e\xfb\xd2\x9c\xbf\x53\x86\xd1\xb1\x11\x3c\xfd\xaa\x55\xef\x87\
\x46\x53\xbc\xd6\xe5\x07\x2b\x6e\x73\x8b\xd2\x2d\x89\xb8\xd0\x39\
\x86\xd7\x2b\x77\x62\xcf\x53\x7b\x10\xa0\xfa\x37\x2c\x7a\xfb\x23\
\xd7\x3f\xa8\x06\xe9\x52\x65\x19\xf7\x24\x6a\x8a\x32\x83\xf2\x96\
\x4a\x3c\x94\xbd\x28\x7b\x31\x0d\x21\x45\x18\xeb\x99\x89\xe1\xba\
\x0e\x28\x6a\x75\x8b\x27\x5e\x58\x8e\xee\xaf\xfd\x18\x1f\xf2\x43\
\x51\x03\x46\xef\x31\x4c\x9d\xd3\x22\x09\xe6\x9f\xf1\xe3\x8f\xcf\
\x07\xe1\x48\x75\x44\x2a\x27\x00\xeb\x36\x1b\xd2\x0b\x93\x50\x5a\
\x65\x85\xa6\xcc\x36\x4c\x4e\x80\xbe\x1f\x08\xb0\xb6\xd9\x2d\x4a\
\x9e\xb7\x84\x7d\x48\x73\x5a\xf6\x3c\xe3\x34\x8d\xba\x8e\xdf\xc1\
\xd5\x96\x1e\x64\xa5\x66\x19\xce\x93\xab\xd2\x90\xe6\x4c\xc4\x63\
\x35\xd4\xf4\x34\x6a\x15\xd4\xe1\xf4\x5b\xac\x9f\x4f\x07\xfc\x66\
\x00\x9a\xdc\xa2\x98\x00\x6a\x30\x76\x08\xcc\x1f\x09\x32\x6d\x38\
\x7b\xe2\x2e\x6e\x1e\x1a\x80\x46\xb3\x21\xa7\x66\x15\xb2\x9f\xb4\
\x60\xf5\x86\x44\xea\xfd\xe1\x8b\xc5\xb8\x14\xa3\xe0\xfa\xf7\x04\
\x58\xb3\x8f\x00\x5b\xc2\x00\xb1\xc8\x44\x03\x0d\x99\xcb\xa7\xbc\
\xa8\xdd\x5c\x8f\x23\x87\x8f\xc0\xf9\xb2\x15\xf6\x75\x66\xca\x87\
\x8c\x38\x72\x2e\x71\x6e\x4c\xb2\x58\xc0\x14\x58\xe1\x5e\x97\x58\
\x47\x49\x9e\xaf\x20\x46\x8d\x9e\x34\x02\xf4\x9c\x1e\xc7\x78\xff\
\x03\xe4\x3c\x67\x86\xad\x90\xe6\x80\xa0\xf6\x66\xd2\xfb\x0e\x35\
\x38\x29\x76\x60\x19\x80\x33\x04\xc8\x7f\x2b\x5f\x94\xd4\xac\x40\
\x70\x46\x5b\x18\x00\xa3\x49\xa2\xb7\x73\x12\x69\x85\x1c\x29\x0e\
\x13\xa8\xe9\xc2\x44\x8e\x75\xe7\xd2\x3c\xe7\x7a\x41\xc8\xf1\xd4\
\xa1\x4f\x4f\x80\x39\xea\xf2\xc4\xca\x67\x97\x23\xd3\x19\x4f\x9b\
\x16\x56\xa1\x17\x40\x20\x20\xc0\x65\x61\xac\x33\x06\x3e\x25\x75\
\x6e\x58\xa2\x26\x51\x41\x8c\x78\x14\xfc\xd9\xf5\x20\x5c\xe9\x39\
\x3b\xf2\x44\x42\x0a\x55\xc0\xa2\xbf\x5b\x66\xc3\xa5\x6b\x62\x11\
\xc7\xff\x95\x37\x41\x07\x99\x99\xd0\x30\xf4\xe5\x6d\xf6\x37\x8a\
\x46\xda\x39\xa3\x36\x76\x11\x00\x00\x00\x00\x49\x45\x4e\x44\xae\
\x42\x60\x82\
\x00\x00\x05\xb0\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
\x00\x00\x05\x77\x49\x44\x41\x54\x78\xda\x95\x55\x0d\x4c\x55\x65\
\x18\x7e\xce\xb9\x87\x0b\x22\x78\x41\xd8\x55\x02\x25\x53\x74\xe2\
\xcf\x6c\x96\xae\xd0\x9a\xff\xd6\x1a\xa1\x4b\x57\xe4\x48\x33\x5a\
\x98\x6b\xac\x66\xcb\x42\x5b\x2b\x7f\x58\x9a\xa3\xa5\x6d\x96\xe6\
\xcf\x56\x99\x8b\xdc\xd2\xdc\x82\xc4\x24\x51\xf9\x93\x19\x08\xe2\
\xf5\x02\x17\x2e\x70\xe1\x5e\xb8\xdc\xbf\x73\xcf\x7f\xef\x39\x26\
\x13\x81\x9a\xdf\xdd\x77\xef\x39\xe7\x7e\xdf\xfb\x7c\xef\xf3\x3c\
\xef\x7b\x18\x8c\x32\xf6\x15\x5f\xd4\x34\x95\x81\xac\xa8\xd0\xe8\
\x9e\xa5\xc9\x30\x0c\x58\x06\xf0\xf2\x2a\x4c\xf4\x60\x40\xe0\xe1\
\xf1\xfa\x60\x77\xfa\x51\xf1\xc5\x9b\xcc\x48\x71\x98\xff\x02\x58\
\x97\x31\xd7\xb8\x96\x44\x15\xbe\x70\x08\x81\xb0\x8c\xa0\x20\xa1\
\x2f\x18\x44\xbf\x5f\x01\x1f\x16\x61\xeb\xee\x42\x73\x97\x07\x02\
\xcf\x8c\x08\x32\x2a\x40\xe1\xe9\x0b\xda\xcb\xcf\xcc\xc3\x64\x6b\
\x3c\x65\xa0\x21\x14\x12\xe1\x0f\x2b\xf0\xf1\x3c\x7c\xfe\x00\x5c\
\x41\x11\x12\xdd\x37\xba\xdc\x28\xa9\xbd\x89\xa7\xa7\x4f\x45\x45\
\xb3\x03\x65\xbb\x5e\x67\x1e\x1a\x20\x20\xf1\x04\x60\xa2\x13\x4b\
\x08\x8b\x01\x84\x29\x0b\x4f\x50\x82\xa4\xaa\x68\xec\xe8\x43\x93\
\xc3\x81\xec\x45\xb3\x51\x7c\xed\x0e\x6e\x38\x5c\x43\x40\x06\x2f\
\x96\x9e\x76\x67\xa5\xcf\x8c\x5b\x32\x81\x53\x72\x26\x46\x98\x63\
\x3a\x06\x44\xae\x37\x1c\x46\xb8\x47\x45\xba\x59\xc2\x96\x15\x09\
\x08\xd3\x3d\x1f\x0c\xc1\xcf\x2b\x44\x97\x06\x51\x91\xd0\xd4\xe1\
\xc6\x35\x9b\x1d\x3b\xb2\x57\x42\x11\x65\x14\x9e\xa9\x40\x63\x7b\
\xcf\x20\x08\xb3\xa1\x46\xb2\xa4\x45\xe3\xe8\xf3\x29\xdc\xda\x69\
\x51\x80\x5b\x04\x1c\x32\x40\x74\x1b\x82\x4e\x89\x05\x6e\xba\x15\
\xec\xfe\xb6\x01\x6c\x5b\x33\x34\x49\x82\xaa\x28\xd0\x54\xcd\x38\
\x98\xd7\xe3\xc4\xfa\xec\x05\xd8\x93\xb3\x14\xce\x7e\x3f\x6e\xb5\
\xf6\xe0\xfc\x75\x1b\x6a\xec\x9d\x06\x08\x53\x78\x47\xa9\xdc\x92\
\xca\x3e\x59\xe5\x07\xec\x21\x80\x8c\x83\x31\x34\x15\xda\xaf\x50\
\x00\x3f\xfd\x26\x47\x02\xdd\x21\x19\x3e\x9b\x0f\x5b\x33\xc6\x22\
\x48\xe8\xb2\xa8\x80\xd5\x48\x83\x76\x0f\xfe\xa8\x77\x18\x00\x03\
\xbe\x00\x02\xb4\xd1\xe1\xec\x46\x71\xa5\x1d\xbf\x55\x35\x81\x59\
\x7f\x99\x3f\x5c\x30\x37\x2a\xb7\x82\x00\x52\xa3\xe9\x44\x14\xd0\
\x2b\x00\x09\x14\xb4\x37\x00\x70\x64\x47\x72\x25\xe2\xe9\xbf\x5f\
\xae\xf4\xe3\xd4\xea\x18\xf0\x64\x5d\x5d\x60\x9d\xa2\x20\x69\x51\
\x52\xd7\x6c\x64\xe3\xa7\xd3\x04\x34\xd1\xb8\xae\xbe\xdd\x89\x16\
\x67\x0f\x98\xd5\x25\x81\x0f\xb6\xcf\x8f\xde\x73\x47\x60\x70\xd1\
\x1e\x0e\xf7\x78\xf9\xbd\x92\x88\xab\x13\xe2\xd8\x13\x2f\xcd\xb5\
\x58\x5b\x82\x80\x89\x36\x68\xf4\xf5\x67\xc3\x00\x5c\xa7\x4a\x0c\
\xe5\xa8\x48\x40\x4c\x11\x55\x12\x4d\x85\x68\xd3\x68\xca\x90\x04\
\x01\x45\x3b\x57\xa2\xbe\xad\x13\x45\x67\x2b\xef\x8a\xfc\xc2\xf9\
\x81\xb7\x29\xed\x60\xd9\x9a\x84\x63\x83\xa2\x1f\x77\x2d\xde\xb7\
\xd6\x7a\xe9\xa7\x5e\xc0\xc2\xdc\xa5\xee\x52\xb5\x07\xbf\x66\x8e\
\x33\x36\x69\x2c\x4b\x85\x26\x41\x14\x49\x13\x49\x46\x48\x77\x18\
\xe9\xe3\xf6\x86\x61\x19\x17\x89\x6b\xb7\x3b\xb0\xf7\xc7\xf2\xd1\
\x6d\xfa\x5e\x69\x9f\x2b\x6f\x51\xbc\xf5\x9b\x56\x0d\x56\xb3\x06\
\x39\x86\xc5\xc5\x33\x0e\x9c\xdd\x98\x34\xb8\x46\x56\x58\x08\xaa\
\x80\xa0\x2c\x40\x08\x30\x90\xb4\x30\x01\xf0\x48\x1a\x1f\x8f\xcb\
\xb7\x1c\xd8\x76\xf4\xfc\xc8\x00\x2f\x16\xf7\x1e\x3b\x92\x99\xf8\
\xda\x61\x07\xd0\xe2\x97\xc1\x26\x70\xf8\xbb\xd4\x03\xf1\xca\x55\
\x44\xc8\x3c\xb4\x7b\x1e\xd7\x77\x93\x9b\x14\x4d\xa7\x88\x84\x22\
\xaa\x24\x49\x40\xc9\xd7\xd9\xa8\xb6\x39\xb1\xa9\xe8\xe7\xe1\x00\
\x93\x3e\x6f\xff\xf0\x5c\x5e\xf2\xae\x43\xad\x44\x89\x53\xc2\xd8\
\x44\x33\xda\x6a\x42\xd8\x22\xdb\x91\x9f\x33\x0d\x26\x86\x54\xd7\
\x68\x9b\x99\x6c\x4c\xba\x70\x0a\x43\x5a\x30\x64\x04\x09\x32\x09\
\xdf\xeb\x0f\x62\x56\xaa\x15\x97\xeb\xdb\xb1\x66\xf7\xc9\x07\x00\
\xe6\x97\xc5\x6d\xda\x9e\xde\x98\xb4\xd0\x3a\xf1\x48\x9d\x00\xab\
\xc5\x0c\xf7\x8d\x10\x36\xab\xcd\xc8\xdf\x38\x83\xc4\x54\x8d\xda\
\x8c\x00\x87\x48\xd2\x40\x24\x10\xba\x41\x94\x0e\x28\x33\x08\xea\
\x1a\xf8\x78\xa4\x3d\x12\x8f\x3a\x5b\x27\x96\x17\x7c\xf7\x00\x40\
\x5e\xd3\xbb\x87\xb6\x3e\xba\xff\xa4\xcb\x84\x2e\xaf\x0c\x8e\x33\
\x23\xea\xfb\x32\x58\x62\xbd\x43\x96\x69\xff\x76\x56\x46\xf7\x97\
\x5e\x8d\xe4\x28\xfd\x21\x43\xd9\x49\x64\xc1\xd2\xaf\xb2\xa8\x85\
\x74\x63\x55\xc1\xf1\xa1\x00\xcf\x9e\x70\x7d\x32\x31\x3d\x61\xe7\
\x0d\x2a\x06\x81\xe1\x10\x68\xea\xc7\x47\x31\x3d\xd8\xb0\x66\xd2\
\x50\x00\x0a\x66\x36\x73\x14\x4c\xa2\xb6\xcd\x51\xad\x70\x24\x85\
\x4a\x58\x26\xa3\x9d\x24\x50\xd1\x54\x36\x77\x60\xf5\x8e\x07\x00\
\x9e\x38\xd8\x59\x28\x8e\x1f\xf3\x7e\x6b\x17\x6d\x94\x23\xa0\xf4\
\x0d\xe0\xd3\xd9\x02\x36\x64\xa6\x0c\x33\x82\xc9\x64\x22\x17\xd1\
\x3a\xfa\x44\x90\x18\x3a\x4b\x3a\x81\x22\xd5\x42\x62\xec\x28\x00\
\x58\x74\x2e\x95\x49\x18\x97\x92\x9e\x91\xda\x6d\xf1\x94\xdb\xf2\
\x57\x65\xa0\xc7\xc3\xe3\x87\xdf\x1b\x30\xfa\x18\x1a\x42\xa5\x4f\
\x49\x51\x16\x6e\xb6\x13\x45\xc3\x00\xf4\xe5\xcb\x4a\x0f\x2e\xd9\
\x34\xe7\xb9\xf6\xeb\x2d\x53\xb6\x2d\x8c\x46\xee\xba\x39\xe8\xf3\
\x87\x46\x0d\xaf\x9f\x5a\x26\x01\x18\x43\x7c\x6a\x2b\x54\xde\xc9\
\x71\xb1\xa8\xa2\x0c\x86\x01\x4c\xcb\xaf\xbd\xf4\xce\xc7\x8f\x2f\
\x3e\x51\x27\xc2\x2d\x70\xb0\x74\x06\xf0\x6a\xa0\x16\x6f\x6c\x5c\
\x30\xe2\xb9\x55\x72\x92\xa2\x43\x90\x45\x4d\x2a\x4b\xa6\xe0\xc0\
\x53\x13\x9c\x10\x1f\x83\x2a\xaa\xe4\xa1\x22\x67\xfe\x35\x2f\x37\
\x2f\xed\x7a\xad\x10\x8f\x9a\x72\x72\x8d\x85\xfc\xae\x98\xb1\xa0\
\xad\x9c\x04\xf4\x8e\x7c\x7a\xe2\xdb\x48\x41\xaf\x38\xc3\x55\xf4\
\x0e\x97\xa9\x91\x1d\xcb\x41\x03\x51\xb4\x7c\xfb\x7d\x36\x1d\xbb\
\xae\xe2\xa9\xc7\xb2\xa6\x56\x74\x49\xb1\x70\x37\x7a\xc8\xdc\xfa\
\x53\x16\xcb\x06\x9a\x50\x7a\x60\x29\x1e\x76\xe8\xef\x86\x79\xb9\
\xfb\xef\xcb\x20\xf9\xcb\xe8\xb4\xcd\x8b\xab\xfd\xd3\x67\xcd\xec\
\xae\x77\x12\x80\xee\xef\x48\xbc\x15\xd3\x82\x82\xcd\xb3\x1f\x1a\
\xc0\xa0\xfc\x95\xcf\x86\x6a\x60\x9a\x71\x60\xb2\x9a\x94\x72\x41\
\x1b\x9f\x38\x95\x72\x85\xb9\xbf\x16\x6c\x1c\xbd\x28\x06\xbb\xcf\
\xff\x0f\x8d\x8a\x84\xa1\xee\x7a\x6f\xfc\x03\x0c\xd8\xd3\x26\xba\
\x32\x67\xc3\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\x00\x00\x04\x80\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
\x00\x00\x04\x47\x49\x44\x41\x54\x78\xda\xa5\x96\x6b\x6c\x14\x55\
\x14\xc7\xff\x33\xb3\x5b\xd4\x58\x65\x95\x40\xd4\x44\x3f\xf8\xf8\
\xa0\xc6\x10\x4c\xf8\xe0\x2b\x41\x2b\x3e\x88\xb5\x68\x30\x50\x62\
\x89\x20\xc6\x0f\x04\x8d\x06\x03\xb2\xab\xa2\xb5\x82\x51\x62\x23\
\x51\x13\x4d\x29\x62\xb5\xa8\x54\x49\xd4\x4a\xb6\xa0\x89\xa1\xda\
\x16\x94\x98\xda\x17\x6b\xc5\xdd\xee\xd2\x96\x6e\xbb\xec\xee\xec\
\xbc\xef\xf5\xdc\xd9\x6d\xe9\x32\x6d\x03\xf5\x4e\x66\xe7\xb9\xf7\
\x37\xe7\xff\x3f\xe7\xcc\x48\x98\x34\xde\x69\xfa\x99\x73\x26\xc1\
\x76\x18\x38\xe7\x80\x24\x41\x86\xd8\xd0\x56\x02\x52\x1a\x83\x42\
\x27\xce\x18\x1a\x92\xa9\x34\xfa\xe3\x19\xb4\xee\x7c\x46\xc2\x0c\
\x43\x3a\x17\xb0\xe2\xce\xdb\xdc\x7d\xbf\x5f\x41\x4e\xb5\x90\xd6\
\x73\xc8\xea\x36\x54\xc3\xc2\xa8\xaa\x62\x2c\xe3\x40\xd3\x4d\x44\
\x06\x4f\xa1\xef\x54\x12\x86\x26\xcd\x08\x29\xba\xb0\xe3\xab\xc3\
\x7c\xe5\x3d\x0b\x71\xed\xfc\x80\x7b\xcc\x69\xc9\xe5\x4c\x64\x74\
\x07\x69\x4d\x43\x3a\x93\xc5\x90\x6a\xc2\xa2\xe3\xee\xa1\x11\x84\
\x7f\xef\xc2\x1d\x37\x5d\x8f\xd6\xbe\x28\x7e\x7a\x73\xad\x74\x41\
\x00\xc7\xb2\xa0\xc1\x26\x80\x42\x4f\x6c\x41\x37\xb3\xd0\x29\x8a\
\x24\x45\x65\x31\x86\xee\x81\x51\xf4\x44\xa3\xa8\xbc\xeb\x56\x34\
\xb5\xfd\x8d\x3f\xa3\x43\x53\x42\x8a\x4e\xd4\x34\x1e\xe6\xab\x97\
\x14\x00\x8e\x43\x21\x30\x98\x50\xa0\xeb\x3a\x34\x35\x87\x8c\xe6\
\x90\x5c\x1c\xa6\x63\xa1\x67\x60\x04\x6d\x91\x7e\x84\x2a\x97\xc2\
\x31\x6d\xec\xf8\xb6\x15\xdd\xb1\x61\x0f\xa4\xe8\xa0\xba\xa1\x85\
\x3f\x59\xb6\x08\x17\xe7\x7e\xc5\xdc\xc6\x65\xee\xb9\xd4\xca\xef\
\xf1\x48\x75\x16\xcc\x76\xc0\x08\xca\x19\xcf\x9f\x4f\xc6\xf1\x44\
\xe5\x62\xbc\x55\x75\x2f\xe2\x63\x19\xf4\x9e\x1c\x46\xf3\x1f\x11\
\x1c\xeb\x4f\x14\x41\x8a\x00\xaf\x7f\xde\xc2\xd7\xdc\xb7\xa8\x10\
\x81\x0e\xc6\x14\x91\x48\xe0\xb4\x6a\x94\x59\x2a\x99\x6d\x9b\x0e\
\x64\x4e\x1e\xc4\x92\x38\xd4\x19\x75\x01\x67\xd2\x59\x64\x1d\x8e\
\x68\x7c\x10\x4d\xed\xfd\xf8\xa1\xa3\x07\x5d\x1f\x3d\x2f\x79\x00\
\xa1\xcf\xc2\xfc\xe9\xfb\x6f\x2f\x00\x4c\x02\xe4\x2f\x8b\x14\x75\
\x0a\x10\x61\xb0\x90\x48\x25\x2f\xc2\xc7\xfb\xdc\xeb\x99\x0c\x47\
\x96\x9b\xee\xfe\xd1\x13\x09\xfc\x13\x1f\x46\xef\xc7\x2f\x78\x01\
\x9b\xea\x7e\xe4\x1b\x96\x2d\xf6\x48\xf4\x68\x75\x6e\x22\x5e\x2a\
\x14\xe4\xed\xb1\x68\x15\xb2\x71\x5a\x6d\x58\x86\x81\xda\x57\x96\
\xa2\xf3\xdf\x04\x6a\xbf\x6b\xc7\xc9\xba\x4d\x5e\xc0\xc6\x5d\x07\
\xf8\x8b\x2b\xee\x76\x23\xb0\x69\x16\x93\xb2\xa5\xa4\x70\x8d\x17\
\x6e\xe6\xb2\x4c\x85\x66\xc1\x34\x2d\x30\x8b\xb2\x4c\x64\x18\x65\
\xdc\x48\x4a\xc7\xe5\x97\xcd\x41\xdb\x89\x01\x6c\x6f\xfc\x05\xb1\
\x4f\x5f\xf2\x02\xd6\xef\x6c\xe0\xc1\xd5\x0f\xe5\x25\x82\x90\x82\
\x81\x89\xa2\xa3\x1f\xdf\xa4\xfb\x6c\x47\x86\xc1\x0c\xa8\xb6\x01\
\x23\x2b\xc1\xe2\x3a\x01\x34\x5c\x75\x45\x00\x47\x7a\xa3\xa4\x44\
\x33\x12\x7b\x37\x7b\x01\xab\x6a\xea\xf9\xf6\x75\xe5\x1e\x89\xca\
\xdf\xc8\xe5\xcd\x1e\xcf\x0c\xf1\x2f\xca\x26\x87\x0b\x89\x88\x4e\
\x52\x59\x96\x81\xf0\x87\x95\x38\x1a\x89\xe3\xa9\xda\xfd\x18\x6a\
\xd8\xe2\x05\x94\x87\x3e\xe1\xef\x6f\x78\xcc\x8d\x20\xa9\xea\x50\
\xc4\x24\x34\xad\x8f\x64\x51\x24\x39\x9f\x4e\xa4\x99\xac\x50\x44\
\xe4\xba\x43\xab\x46\x5e\xd8\x64\xfc\xe9\x8c\x8a\x5b\xae\x9b\x8f\
\x23\x9d\x31\x2c\xaf\xd9\x8b\xd3\x5f\x6c\xf5\x02\x96\x6c\xad\xe3\
\xf5\x1b\x2b\x5c\xc0\x68\x36\xe7\x3e\xb2\x78\x6a\xce\x98\x7b\xab\
\x9f\x84\x9a\x43\x30\x53\x18\xe3\x07\x2e\x12\x40\x5b\x82\x2a\x3c\
\x48\x6b\xb8\xf1\xea\x00\x8e\x47\x12\x28\x0b\xee\x46\x72\x5f\x70\
\x7a\x80\x9c\xfc\x06\x0b\x0e\xac\x9b\x90\x68\x79\x8d\x76\xd6\x68\
\xd2\x47\xa2\xea\x76\x73\x97\x32\x0a\x6e\xd3\x95\x49\x22\x13\x2d\
\xbb\x2a\xa8\x85\x0c\xe2\x81\xe0\x1e\x8c\x7e\x19\x3c\xbf\x08\x26\
\x0f\xd1\xc1\x4b\x4a\x7c\x34\x99\x45\x6d\xdb\x47\xd2\xf9\xc8\x0a\
\x46\xac\x7c\x3b\xb9\x32\x70\x09\xda\xfb\x06\xf0\x60\x68\x0f\xc6\
\x66\x03\x10\x43\x51\x14\xca\x22\x02\xd0\xe2\x27\x33\x84\x4a\x42\
\x40\x93\x6a\x61\x5e\xe9\x79\x02\xa6\x93\xa8\x78\x14\x37\x4e\x91\
\xd0\xe1\xda\x0a\x74\xc5\x48\xa2\xff\x13\xc1\xd9\x09\xc9\x5f\xba\
\x41\x72\xcd\x17\x6d\xc4\xc1\x35\x73\x4b\xd1\x41\x11\x4c\x0b\xb8\
\xf9\xd9\xf7\x78\xf3\xb6\xaa\x09\x80\x34\x05\xc0\x2d\x01\xca\x24\
\x47\x20\x28\x45\x15\x26\xc3\xe7\xf3\x41\xa3\x26\xb8\x20\x70\x29\
\x3a\xa8\x92\x85\xc9\x33\x02\xce\x2d\xb4\x87\x5f\x4b\x15\x3f\x3d\
\xe9\xed\x86\x20\x2a\xce\xcd\x2a\x7a\x8f\xdb\x26\x7e\xab\xaf\xc2\
\x5f\x24\x51\xd9\x96\xdd\x48\x7d\x1d\xf2\x02\xe6\x3d\xfe\x2a\x3f\
\xf6\xc1\x73\x13\xaf\xcc\xd9\x0c\xf1\x6e\x58\xb8\xfe\x5d\x8c\xec\
\xdf\xe6\x05\x94\x96\xbf\xcc\xbb\xeb\x37\xcf\x7a\xf2\xf1\x71\xc3\
\xaa\x6a\xe8\x07\xdf\x9e\x1a\x20\xb6\x16\x17\x1f\x2b\xfc\x82\x26\
\x15\x9f\x39\x12\x75\xd7\xf1\x31\x0e\xf8\x0f\x7f\x52\x9c\x37\x52\
\x7b\xdf\x74\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\x00\x00\x03\xb1\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
\x00\x00\x03\x78\x49\x44\x41\x54\x78\xda\xad\xd4\x79\x4c\x93\x67\
\x00\xc7\xf1\xdf\xdb\x83\xde\x8d\x4e\x2d\x4e\x97\x25\x76\x52\xaa\
\xc6\x60\x4a\x74\x32\xc5\xe1\x74\x44\x99\xd1\xf8\x57\x9d\x2e\xcb\
\x50\xa3\xc6\x23\x9e\xdb\xfc\xc7\x7f\x97\x4d\x23\x1e\x33\x71\xd1\
\x8d\x7a\xcc\xa0\x6f\xc4\xe0\x41\x24\xc4\xa0\xbb\x40\xa9\x28\x60\
\xab\xa5\x41\x51\xa8\x80\xe5\x6c\x6b\x4b\xdb\xf7\x78\xf6\xd0\x44\
\x22\x42\x29\x87\x4f\xf2\x26\x6f\xde\x37\xcf\xe7\xfb\x9e\x0f\x83\
\xf7\x34\x5a\x0e\xa5\x05\x15\x1f\xc8\xd5\xc1\xaa\x8e\x57\xde\xa0\
\x30\x3b\xfd\x6c\x63\x5b\xef\x71\xe6\x7d\xe0\xd5\xfb\x53\x5c\x69\
\x8b\x8d\xa9\x5c\x6d\x33\x88\xbb\x0b\xfe\x97\x61\x34\x4d\xd5\x4e\
\xb5\x9c\x7e\xde\x3c\xe6\x80\xef\x59\xf9\xc9\xf3\x6c\xd1\x96\xa5\
\x8e\xd3\x98\xae\x51\x23\xe2\x0e\x42\xa8\x0f\xa3\x47\x21\x83\xe7\
\x8b\x89\x86\x31\x05\xae\xfc\x9c\x6b\x5b\xfd\x63\xfe\x77\xbd\xfb\
\xc7\xf7\x6f\xc0\x92\xcb\xf9\x30\x0a\x2a\xf0\x01\x01\x8c\x08\x74\
\x4c\xd7\xbc\x1a\x75\xc0\x95\x67\x2e\x15\x97\xfb\xbf\x2c\x2e\xce\
\xc0\xde\xbd\x97\x63\xc7\x7e\xdd\xfc\x0d\x16\x9d\xba\x00\xf3\xa4\
\x24\x70\x04\x08\xeb\x93\x46\xf7\x0e\x28\x7e\xd7\xb8\x4d\xfd\xa9\
\x44\xac\x45\x9d\x9d\xc7\xb5\x92\x55\xd8\x7e\xa0\x08\x49\x4a\xe0\
\xd4\x86\xb5\xc8\xb4\x15\x60\xc6\x78\x39\x3c\x26\xdd\xc8\x03\x14\
\x2f\xa7\x78\x06\x1f\xae\x05\x7a\x04\x28\x5b\x08\x9e\xdb\x81\xb3\
\x4f\x56\x62\xeb\x81\xab\x50\x8f\x03\xce\x6c\xfa\x16\x19\x05\xe7\
\x41\xb2\x93\x7f\x19\x51\x80\xe2\xff\x50\x7c\x61\x0c\x0f\x09\x90\
\x34\x11\x48\x79\x40\x12\x96\xa0\xcc\x26\xc5\x75\x92\x83\x3d\x79\
\x45\x50\xc2\x07\xe7\x9a\x64\x76\x49\x59\xc4\x3a\xec\x00\xc5\x2b\
\x8c\xdb\x34\xf3\xf9\x70\x4d\x1f\x2e\xe1\x00\x31\x20\x85\xe7\xfe\
\x64\xc8\x23\x01\xd4\x38\xfc\x78\xa8\xce\x44\x0e\xe7\x62\xe7\xb2\
\x6d\xd6\xde\x79\xc3\x0a\x50\xdc\x69\xdc\xa1\x9d\xc9\x87\xaa\x07\
\xe2\xf6\xc9\x10\x83\x01\x10\xc2\x83\x89\x32\xe8\x76\xcb\xd9\x79\
\xc5\xdd\xd6\x37\x73\x13\x06\x28\x5e\xf7\xc9\xae\xf1\x26\x2e\x60\
\x8f\x8b\x8b\x02\x07\xa5\x4e\x8b\xe6\x1a\x19\xfb\x59\x61\x8b\xf5\
\xed\xf9\x43\x06\x1e\xe7\x99\xea\x52\x77\x1b\x4c\x91\xc0\x3d\x20\
\xc8\xc7\xc5\x55\x14\xf7\x54\x32\xec\x82\x1b\x5e\xeb\xbb\x46\xdc\
\x80\xf3\xb0\xe9\x89\x79\x8f\xc1\x1c\xa5\x38\x19\x02\x57\x6a\x35\
\x68\xba\xcb\xb0\x99\x37\xdb\xac\x83\x39\x83\x06\x1c\x87\x52\xaa\
\x66\xec\x4b\xb6\x24\xc4\x75\x1a\x34\x96\x83\x5d\x54\xd2\x6e\x8d\
\x77\xa1\x03\x02\xce\x23\xa6\x9b\xe6\x5d\x86\x65\x89\x70\x15\xc5\
\x1b\xfe\x26\x6c\xd6\xad\x8e\xb8\xf8\x80\x80\x7d\xe7\xb4\x3f\x2d\
\x47\xa7\xac\x8b\x06\x2a\x13\x3e\x96\xfa\xbf\x08\xbb\xb4\x6c\x68\
\xbc\x5f\xa0\x70\x16\xd6\x66\x97\xe6\x5f\x90\xe9\xd7\x83\xbc\xa6\
\x3f\x4f\x23\xdd\xf8\xc1\x71\xf7\x1d\x91\xcd\xbe\xdd\x99\x10\xef\
\x17\xa8\x58\x6f\xaa\x9a\xff\x47\x9d\x45\xf4\x1d\x06\xdf\xf0\x3d\
\x98\x10\xe9\xff\x9d\x53\x5c\x41\x1f\x8b\xab\x54\x60\x97\xfd\xdb\
\x35\x2c\xbc\x2f\x70\x29\x15\x73\xb2\x7e\x3f\xfa\xd0\x60\xf9\x0a\
\x78\xdd\x09\xe2\xdd\x8a\xa8\xa7\x8a\xe2\x53\x20\x86\xe8\xed\x10\
\x8e\x2e\x64\x5a\x38\x6e\x45\xd8\x15\xff\xf9\x87\x8d\xf7\x05\x6e\
\xe7\x18\xaa\xb3\x8a\xdd\x69\xf0\xde\xa7\x6b\x6c\x33\x20\x74\x23\
\xda\xf5\x08\x4f\xcf\x9d\x83\x4c\x25\x85\x18\x4d\x42\x7d\x05\x61\
\x57\x54\xf8\x46\x84\xc7\x02\x57\xd2\x55\xd2\x36\x5e\xc2\x7f\x6d\
\xfb\x09\xba\x8f\x3e\x04\xf1\x37\x80\x89\xb4\xd2\x33\x5d\x88\xbe\
\xb0\xc3\x71\xb1\x09\x2e\x3b\xb7\x63\xdd\xe3\x9e\x13\x23\xc5\x63\
\x81\x82\x34\xe5\x6f\x95\xad\x91\xcd\xa1\x4e\x82\x83\x25\xb9\xd0\
\xa7\xd0\x48\xab\x13\xcf\x0a\x1f\xe0\xe9\x3d\x5f\x41\xbb\x97\xeb\
\xa4\xf8\xf6\xd1\xe0\xb1\x80\xcd\xa2\x27\x8e\xd6\x20\x44\x91\xe0\
\x63\xbd\x0c\x8b\x3f\x4f\xee\x79\x50\xe2\xf9\x41\xa1\x53\xa6\x53\
\x38\x77\xb4\x70\x5f\xe0\x98\x49\xde\xae\x56\x29\x26\x28\x45\x9e\
\x95\x08\x4c\x80\xa2\x1b\xc7\x8a\xbe\x3d\xfe\x07\x5e\x55\xf2\x96\
\x8f\xaa\x45\xa0\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\
\x00\x00\x04\x79\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
\x00\x00\x04\x40\x49\x44\x41\x54\x78\xda\xad\x96\x6b\x68\x1c\x55\
\x14\xc7\xff\x77\x66\x36\x91\x68\xd4\xb5\xb5\xb5\x0a\x55\xb0\xfa\
\x41\x45\x82\x82\x1f\x7c\x41\x35\x5a\x45\x08\x3e\x28\xd8\x16\x2b\
\x3e\x2a\x7e\x28\x55\x94\x4a\x6b\xb3\x48\xa5\xc6\x56\xb4\x58\x14\
\x11\x94\x34\xb5\x46\xeb\xa3\x41\x41\x8d\x92\x52\x05\x6d\x20\xa9\
\x69\x8a\x48\x5e\xdd\x6e\xc3\x66\x37\xcd\x26\xbb\xc9\x66\x67\x67\
\xe7\x7d\xaf\xe7\xce\x6e\x62\xb6\x1b\xa2\x0d\xbd\xb3\x33\x73\x1f\
\xb3\xf3\xbb\xe7\xfc\xcf\x3d\x77\x18\xe6\x94\x77\xdb\x7e\x13\x82\
\x33\x78\x3e\x87\x10\x02\x60\x0c\x0a\xe4\x8d\xee\x0c\xc8\x9a\x1c\
\x2a\x75\x4c\xdb\x26\x32\xd9\x1c\x62\x49\x1d\x9d\x7b\x5f\x60\x58\
\xa0\xb0\x73\x01\x6b\xef\xba\x35\xa8\x87\x42\x2a\x0a\x86\x8b\x9c\
\x55\x40\xde\xf2\x60\xd8\x2e\x26\x0d\x03\x53\xba\x0f\xd3\x72\x10\
\x1d\x3b\x8b\xa1\xb3\x19\xd8\x26\x5b\x10\x52\x36\xb0\xe7\x9b\xa3\
\xe2\xc9\x7b\xeb\xb0\x72\x59\x38\x68\x0b\x3a\x0a\x05\x07\xba\xe5\
\x23\x67\x9a\xc8\xe9\x79\xa4\x0c\x07\x2e\xb5\xfb\x53\x69\x74\x9c\
\xe8\xc3\x9d\x37\x5e\x8f\xce\xa1\x38\x7e\x7d\xeb\x59\x76\x5e\x00\
\xdf\x75\x61\xc2\x23\x80\x4a\x33\x76\x61\x39\x79\x58\x64\x45\x86\
\xac\x72\x39\x47\x7f\x62\x12\x03\xf1\x38\xd6\xdf\x7d\x0b\xda\xba\
\x4e\xe3\xaf\x78\x6a\x5e\x48\x59\x47\xd3\xa1\xa3\x62\xc3\xea\x12\
\xc0\xf7\xc9\x04\x0e\x07\x2a\x2c\xcb\x82\x69\x14\xa0\x9b\x3e\xb9\
\x4b\xc0\xf1\x5d\x0c\x24\xd2\xe8\x8a\xc6\x10\x59\xff\x20\x7c\xc7\
\xc3\x9e\xef\x3a\xd1\x3f\x32\x5e\x01\x29\x6b\xec\x6a\x3d\x22\x9e\
\xaa\xbf\xad\x04\x70\x20\x05\x67\x8a\x02\xcb\x27\x4b\x4c\x17\x05\
\xdb\x83\xe3\x88\xc0\x79\xbd\xb1\x04\x7a\x87\xd3\x78\x7b\xe3\x7d\
\x48\x4e\xe9\x18\x1c\x1e\x47\x7b\x6f\x14\x3d\xb1\xd1\x32\x48\x19\
\xe0\xcd\x2f\x8e\x88\xa7\xef\x9f\x01\x58\xe0\x5c\x95\x81\x04\x41\
\xa7\x49\x91\x65\x90\xd8\x9e\xe3\x43\x11\x3e\xce\x8c\xe7\xf0\x63\
\xcf\xe9\x00\x30\x9d\xcb\x23\xef\x0b\xc4\x93\x63\x68\xeb\x8e\xe1\
\xa7\xe3\x03\xe8\xfb\xf8\x65\x56\x01\x88\x7c\xde\x21\x9e\x7f\xe0\
\xf6\x59\x0b\x38\x2f\x0e\xcb\x10\xf5\x4b\x10\x29\xb0\x74\x91\x41\
\x5a\x74\x9c\x1c\x0a\xc6\x75\x5d\x20\x2f\x9c\xa0\xfe\xe7\xa9\x51\
\x9c\x49\x8e\x63\xf0\x93\x57\x2a\x01\x5b\x9b\x7f\x16\x9b\x1f\xb9\
\x63\x56\x03\x4e\x62\xce\x3c\xc4\x4a\x10\xb9\x46\x72\xb6\x80\xe7\
\x3a\xc5\x40\xb0\x38\x69\xe4\x62\x2c\x6b\xa0\xa6\x46\xc3\x89\xe8\
\x08\xf6\xfd\xd0\x8d\xe1\xe6\xad\x95\x80\x2d\x1f\x7e\x2f\x5e\x5d\
\x7b\x4f\x00\xf0\x08\xe0\x10\xa0\xaa\x34\x26\x4a\x0f\x0b\xd2\x64\
\x9a\xa2\xc9\x71\x5c\x70\x97\xb4\x91\x11\x46\xa0\x74\xd6\xc2\x65\
\x97\x56\xa3\xeb\x54\x02\xbb\x0f\xfd\x8e\x91\xcf\x5e\xab\x04\x6c\
\xda\xdb\x2a\x1a\x37\x3c\x5c\xb4\x00\xd2\x15\x1c\xd2\x86\x10\x5d\
\xb4\x39\xcf\x79\xbe\x02\x9b\xdb\x30\x3c\x1b\x76\x9e\xc1\x15\x16\
\x01\x4c\xac\xb8\x22\x8c\x63\x83\x71\xf2\x44\x3b\x46\x0f\x6e\xab\
\x04\xac\x6b\x6a\x11\xbb\x9f\x6b\x08\x00\x06\xcd\x4e\x90\x05\x74\
\x45\x35\x25\x8c\x10\xf9\xc8\xa7\x3a\xa7\x54\x51\x25\xeb\x1e\x89\
\xee\x91\x05\x36\xf5\x7a\x2e\x26\x72\x05\xac\x5a\x71\x25\xfe\xe8\
\x8b\xe3\x99\x7d\x87\x91\x6a\xdd\x5e\x09\x68\x88\x7c\x2a\x3e\xd8\
\xfc\x78\x00\xc8\x18\x16\x54\x2e\x82\x97\x6a\xe4\x16\x95\x29\xc5\
\x70\x22\x9f\x29\x2a\x59\x44\x82\xf8\x74\x9a\xdc\x85\x47\xc2\x4f\
\xe8\x06\x6e\xbe\x76\x19\x8e\xfd\x3d\x82\xc7\x9a\x0e\x62\xe2\xcb\
\x1d\x95\x80\xd5\x3b\x9a\x45\xcb\x96\x47\x03\xc0\x64\xbe\x10\x38\
\x3e\x88\xfa\x40\x6c\x86\x10\x39\xaa\x9a\x60\x8e\x14\x26\x04\x5c\
\x24\x81\x1e\x23\x6b\x49\x83\x9c\x89\x1b\xae\x0e\xe3\x64\x74\x14\
\xf5\x8d\xfb\x91\xf9\xaa\xf1\xff\x01\xe6\x16\xd9\x54\x29\x9d\xaa\
\x52\x11\x8d\x15\xc1\xf4\x0b\x11\x74\x82\x2c\x5e\xb9\xe4\x62\x0a\
\xd3\x04\xd6\x34\x1e\xc0\xe4\xd7\x8b\x01\x50\xbb\xaa\x4a\x83\x4b\
\x33\x56\x15\x8d\x5c\xa7\x81\x53\x3a\x51\x58\x31\x9d\x2c\x09\xd7\
\xa0\x7b\x28\x81\x87\x22\x07\x30\xb5\x18\x00\x02\x0b\x54\x8a\x22\
\x02\xd0\x11\x22\x31\xa4\x97\xa4\x03\x1d\x4a\x27\x4b\x6b\x2f\x00\
\xe0\xdf\x1c\xc3\x4a\x2b\x10\xc1\xa6\x64\x72\x1f\x57\xd5\x5e\x82\
\xe3\x04\x58\x73\x21\x00\x72\xd6\x32\x84\x59\x20\xbe\x4c\x23\x3e\
\xae\xb9\xbc\x76\x61\xc0\x4d\x2f\xbe\x2f\xda\x77\x6e\x9c\x05\xb0\
\x79\x00\xf2\x0f\x9c\x44\xf5\x25\x82\x42\x54\xa5\x85\xa1\x69\x1a\
\x4c\x4a\x82\xcb\xc3\x64\x41\x49\xe4\xff\x04\xa4\xa6\x75\x5a\xa1\
\xc5\x7e\xe5\x1c\x88\x69\x53\x22\xa4\xdc\xc6\x54\x9a\x3f\x45\x95\
\x46\x0b\x6f\xaa\x60\xa1\xee\xba\xe5\xe8\x89\x26\x51\xbf\x7d\x3f\
\xb2\xdf\x46\x2a\x01\x4b\x9f\x78\x43\xf4\x7c\xf4\xd2\xec\x96\xb9\
\x98\x22\xf7\x86\xba\x4d\xef\x21\x7d\x78\x67\x25\xa0\xb6\xe1\x75\
\xd1\xdf\xb2\x6d\xd1\x2f\x9f\x29\xab\xd6\xed\x82\xf5\xcb\x3b\xf3\
\x03\xe4\xdd\x15\xd2\x29\xe2\xbc\x5e\x2a\x3f\x73\x18\xe5\xaf\x99\
\x32\x03\xf8\x07\x33\xbf\x9c\x37\x4a\x11\x78\x43\x00\x00\x00\x00\
\x49\x45\x4e\x44\xae\x42\x60\x82\
\x00\x00\x05\x90\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
\x00\x00\x05\x57\x49\x44\x41\x54\x78\xda\xa5\x95\x7b\x50\x54\x55\
\x1c\xc7\xbf\xf7\xb1\xbb\x80\xe2\x63\x8a\x0c\xcc\x4c\xb0\x10\x04\
\x76\x1d\x27\x95\xd0\x41\x89\x12\x01\x51\x0a\x43\x12\xc7\x71\xd2\
\x51\x69\xa6\x3f\x6c\xa6\xd2\xa9\xd1\x46\xcb\xc9\xb2\x1a\xc7\xb1\
\x89\x19\xf3\x91\x23\x43\x60\x8a\xaf\x60\x5a\x07\x57\x5c\xe3\x31\
\x92\x92\xc3\x40\x20\x88\xca\x02\xe2\x03\x13\x77\xef\x73\x4f\xbf\
\x7b\x79\x4c\x35\x6e\x0f\x3b\xf7\xde\x73\xcf\x39\x7b\xce\xf9\xec\
\xef\xf7\x3b\xdf\xdf\xe5\x52\x8a\x3b\x59\x48\x10\x8f\x31\x21\x22\
\xc0\xe8\xe6\x80\x51\xd0\x60\x14\x5e\x14\xcc\xb1\xbf\x2d\x34\xdf\
\xaf\xe9\xe8\xef\x97\xe1\x0d\x0e\xc1\xad\x3e\xad\xc9\xb5\x34\x22\
\x66\xf8\xe7\x05\xa5\x1e\xb6\x65\x5e\x18\xac\x1c\x87\x3b\x2a\x83\
\xce\x8b\x48\xf8\xad\x15\x8f\x47\x3e\x43\x2b\xfd\x01\x36\xa5\x5d\
\x39\xcb\x9f\x86\x6e\xb7\xb7\xa2\x79\xf4\x64\xec\xbf\x74\x1b\x4d\
\x1e\x9f\xe7\x6c\xfe\x84\xf1\xe6\xd4\xbc\xe3\x1e\xf6\x5e\x52\x18\
\x9c\xbd\x2a\xee\x13\x40\xe3\x44\xe4\xdc\x6f\x40\x54\x5c\x0c\x74\
\x5d\x7f\xe8\xfe\x56\x9b\x15\xdf\x1d\x38\x04\x0b\x59\xa8\x69\x1a\
\xa6\x27\x26\x82\x49\x32\x8a\x47\x4c\xc5\x58\x91\xa1\xa6\xb5\x0f\
\x5d\xbd\xb2\xa7\x6a\xc5\xc4\xf1\x5c\xce\x91\x1b\xac\x20\x31\x0c\
\x95\x04\x30\xac\x50\x20\x60\xf1\xbd\x8b\x88\x9c\x3a\x25\x20\x20\
\x34\x24\x08\xd9\xeb\x3f\x47\xf4\xa2\x3c\xc8\xaa\x1f\x33\xbb\xcf\
\x61\xba\x3d\x01\xc5\x21\x71\xb0\x71\x3a\x6c\x22\x8f\xea\x96\x3e\
\x74\x77\xf9\x9a\xb8\x57\x4a\xae\xb1\x82\xd9\xe1\x70\xdd\x94\x21\
\x1a\x00\xb2\x20\xab\xb7\x06\x91\x09\xb1\x81\x01\xc1\x56\xac\xfc\
\xe2\x38\x1c\xaf\x2f\x07\x19\x8d\x89\xce\x42\x38\xec\x0e\x94\x8c\
\x72\xc0\xca\x34\x23\x2c\x08\xb6\x09\x28\xaf\xe9\x06\x97\x5d\x7c\
\x95\xad\x4b\x8a\x40\x65\xcf\x20\x80\xb7\x60\x61\x4f\x15\x01\xe2\
\x02\x03\x82\xac\x58\xb5\xf3\x04\xe2\x72\xf3\xa1\x30\x1e\x91\x67\
\xbe\x86\x3d\x2e\x1e\xa5\x63\x66\xc0\xea\x57\xcd\x39\x16\x0b\x8f\
\xb3\xf5\x3d\xe0\xb2\x0e\xb5\xb1\x82\xe4\xf1\x70\x7a\x24\x58\x78\
\xc3\x02\x0b\x32\x3d\x2e\x44\xd9\x03\x03\x46\x92\x05\x6b\xbe\x72\
\x22\x3e\x2f\x1f\x2a\x4d\x99\x54\xb1\x13\xb1\x09\x76\x7c\x3f\x76\
\x26\x59\x30\x08\x20\x37\x9d\xab\x27\x0b\x32\xf7\xb5\xb0\x75\xa9\
\x13\xf0\xe3\x0d\x19\x16\xb2\x4d\x11\xac\xc8\xb8\xe6\xc4\xe4\x69\
\xf1\x81\x01\x14\x83\xd7\xd6\x6d\x46\xc4\xf4\x79\x50\x74\x86\xd4\
\x31\x77\x10\xfb\xdc\xb3\x38\x3a\x2e\x19\x56\x5d\x19\xb6\xc0\x7d\
\xa1\x8b\x8e\xe9\x9e\x66\x56\x90\xfa\x34\x2a\x3a\x87\x00\x36\x2c\
\x68\x3f\x89\xc9\x0e\x7b\x40\x80\x28\x08\xb8\xda\xd6\x0e\x81\xe6\
\x33\x3f\x43\x58\xc4\x93\xe8\xbc\xd2\x86\x53\x13\xd2\x08\x20\x0f\
\x03\xce\xd7\x79\xc0\xcd\x2f\x6c\x64\x6b\x5f\x9e\x84\xf2\xeb\x03\
\x2e\x52\xc9\x82\x17\x1b\x4b\x61\x7f\x61\x06\x34\x55\x0b\xa8\x03\
\x9e\xe7\x4d\x39\x18\x3a\x14\x68\xdd\x25\x77\x2d\x9c\xb1\x39\xb0\
\x0c\x5a\x20\xd2\x11\xae\xad\xed\x00\x97\xba\xfb\x32\x5b\x3b\x3f\
\x12\x3f\x74\x48\x10\x2d\x22\x74\x4b\x10\x46\xbb\x4a\x30\x2e\xfc\
\x31\xd2\x59\x00\xa1\xfd\xa5\x18\xb0\x9e\xae\xdb\xb8\x97\xbc\x04\
\x82\x2a\x81\x23\xcb\x45\x8a\x41\x5d\x1d\x01\x52\x76\x35\xb0\xb5\
\x69\x51\x38\x76\x5d\x45\xe8\x2f\xd5\xe0\xbb\x9a\xa1\xf1\x56\xfc\
\xbb\xad\xff\x00\x31\xfe\xb5\x5f\x81\x3f\x3c\x1a\x8a\x7d\x96\xe9\
\xee\x0b\xd5\xed\xe0\xe6\x7e\x79\x91\xad\x4e\x8f\x42\xc9\x55\x15\
\xab\x6f\x95\x23\x3d\x2f\x0f\xff\x9c\x80\x02\x15\x0e\xa7\x8a\x8a\
\xb0\xff\x89\x05\x18\x21\x30\x34\xd4\x10\x60\xce\x8e\x0b\xec\x8d\
\x8c\x68\x14\x5f\x51\xb0\x81\xaf\xc6\xcc\x94\x54\x33\xb8\x82\xc0\
\x9b\x0b\xcc\xb4\x63\x54\xa6\x7c\x06\xd2\x90\x51\x71\x83\xfd\xa1\
\x97\x9f\xd6\x30\xc6\x50\x7d\xda\x89\x1d\x98\x85\x91\x94\x32\x1a\
\x6b\xaf\x80\x4b\xfc\xa4\x8e\xad\xca\x9a\x82\xa2\x16\x19\x1b\xf4\
\xf3\x48\xca\x98\x8f\xda\xf3\xf5\xe8\xe9\xb9\x05\x55\x51\x21\x2b\
\x32\xe5\x1b\x19\xb2\xa4\x42\xa3\xbe\x4a\x7d\x45\x53\xa0\xca\xd4\
\x96\x35\xd2\x81\x04\x9f\x24\x61\x52\x54\x24\xde\x7a\xfb\x4d\xb8\
\xca\x4e\xe2\x33\x6b\x12\x42\x2d\x7e\x34\x55\x19\x80\x8f\x6a\xd8\
\x8a\xc5\x31\x38\xd4\x2c\x63\xa3\xe6\xc2\x9c\x8c\x74\x33\x68\x8f\
\x5a\x5c\xc7\x4f\xe0\x53\xdb\x5c\x13\xd0\xea\x6e\x05\xf7\xfc\x96\
\x9f\x4c\xc0\xc1\x26\x19\xef\x6b\x95\x98\x9d\x9e\x66\x4e\x14\x44\
\x91\x40\x9c\xe9\x1e\x6e\xc8\x25\xd4\xe7\x87\xde\x43\x63\xdc\x80\
\x8f\x54\x45\x81\x2c\x2b\xa8\x3a\x79\x0a\xdb\x6d\x29\x26\xa0\xed\
\x5c\x0b\x01\x36\xb9\xd9\xb2\x9c\x38\x1c\xb8\xec\xc5\x07\xea\x69\
\x24\x67\x65\xc2\x59\x7e\x16\x1d\xed\x9d\xe4\x16\x09\xb2\xd7\x0b\
\xaf\x22\x41\x7a\xe0\x83\x24\x4b\x50\x24\x2f\xb9\x44\x36\xdb\xaa\
\x4c\xee\xa2\xe7\x81\xaf\x1f\xd1\xd1\x31\xd8\xbd\x77\x27\x9c\x87\
\x8f\x62\x7b\xd0\x4b\x08\x15\x75\x74\xb8\x7f\x05\x37\x6d\x63\x15\
\x5b\x96\x1b\x8f\xbd\x0d\x5e\x6c\x52\x2a\x90\xbc\x70\x21\xee\xf5\
\xf5\x41\xf7\x93\x8a\xfd\x1c\x7d\xe1\xe8\xc0\x1a\x37\x05\xd0\xb8\
\xcc\xb6\x51\x19\x5f\x3f\xe3\x32\xc6\x75\x3f\x04\x8b\x80\xf0\x88\
\x08\x9c\x29\x3b\x86\x6d\xc1\x69\xa6\x05\xdd\xee\x66\x70\x8e\x77\
\x2b\xd9\x92\xa5\x0e\xec\xfb\xd9\x8b\xcd\xea\x09\x02\x64\xfe\xaf\
\x18\x54\x12\xe0\xe3\xa0\x2c\x84\x5a\x75\xdc\x74\x37\x81\x8b\x7f\
\xe7\x34\x7b\x35\x77\x1a\xbe\xa9\xf7\x62\x8b\x5c\x86\x94\xec\x45\
\xa8\xaa\xac\x43\x77\x67\x2f\xb9\x88\xdc\x32\xe4\x22\xaf\xcf\xec\
\x1b\xcf\xb0\x8b\x8c\x13\x45\x6d\xaf\xf4\x00\x91\x51\x51\xd8\xb1\
\x6b\x3b\x2a\x4a\x4a\xb1\x35\x64\x31\x1d\x53\x1d\x77\x6b\x08\x30\
\x65\xbd\x93\x65\xe7\x3a\xb0\xe7\xa2\x0f\xdb\xbc\x87\x29\x06\x59\
\xd0\x0c\x1d\xf0\x02\x38\x1e\xc3\x81\x34\xf5\xf0\xb0\xf6\xa0\x10\
\x34\x5d\x33\x13\xdf\x99\xb2\xa3\xd8\x1c\x9a\x83\x11\xa2\x86\xfe\
\xea\x46\x70\x4f\xad\x3c\xc2\xb2\xd7\x24\xa3\xa8\xc1\x87\x0f\x6f\
\x16\x62\x51\xfe\x72\x0a\x9c\xf2\x48\xee\x31\xbe\xd5\x65\x07\xbf\
\xc5\xd6\xf0\x35\x08\x26\x7d\x78\x5d\xf5\x03\x00\x45\x1a\xc8\x9a\
\xd6\x20\x11\x63\x43\x05\x52\xf2\x7f\xcd\x44\x03\xc5\x50\xff\xdd\
\xfb\x3a\x09\x52\xa7\x43\xc2\xcc\x2c\xfb\x3b\xb0\x5f\x8b\x1a\x04\
\xce\x89\x28\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\x00\x00\x03\xed\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
\x00\x00\x03\xb4\x49\x44\x41\x54\x78\xda\xbd\x55\xdd\x6b\x5c\x45\
\x14\xff\x9d\xbb\xd9\x8d\xdd\x24\xfd\x48\x2a\x36\xa2\x0f\x8a\x68\
\x91\xaa\xb5\x50\x42\x2b\x48\x91\x12\x29\xe8\x83\xa2\x60\x11\x9f\
\xfc\x1f\xfa\x62\x8b\x8a\x54\x2c\xd2\x26\x29\xb1\x29\x22\xd6\x98\
\x54\x09\xa6\xd2\x62\x82\xf8\x49\xe9\x83\xa2\x0f\x5a\xda\x20\x29\
\xad\x49\x6d\x9b\x74\x37\xd9\x6c\x9a\xdd\x7c\x9a\x3b\x73\x7a\xe6\
\xe3\xde\xbd\x29\x56\x6b\x8a\x0e\x77\x98\x7b\xe7\xce\x9c\xdf\x39\
\xbf\xdf\x99\x33\x84\xff\xb8\xd1\xff\x02\x70\x6e\x27\xb1\x0e\x19\
\xe0\xa5\xb0\x41\x9a\xf0\xd0\x27\x7c\x5b\x4e\xd0\xc0\x8b\xc4\xf5\
\x4f\x3d\x8f\xfa\xe6\x9d\xe0\xc5\x05\x07\xa2\x19\x54\x55\x85\xe2\
\xb7\x3d\x28\x9e\x3c\x8e\x0d\x9f\x2d\x1f\x84\x7e\x79\x16\xbc\xbe\
\xa5\x17\x2b\xee\x6d\x04\xe6\xf2\xd6\x38\x58\x8b\xfb\x84\xd9\xe1\
\x21\x9c\x7b\x73\x17\x36\x9d\x58\x3e\x95\xf4\xd3\x0e\xf0\x86\x77\
\xbb\x91\xbd\x67\x05\x78\xae\x64\xdc\x07\x42\x0d\x4a\xa5\x30\x3d\
\xfc\x3b\x7e\x7b\x7b\x2f\x9a\xfa\x6f\x03\xe0\x87\x66\xf0\xa3\x07\
\xba\x51\xd3\x58\x0d\x5e\x98\xb2\xf6\xa1\x15\x28\x08\x50\x3a\x3f\
\x88\xd3\x7b\xf6\xa3\xaa\xe6\xef\x14\xfc\xeb\x69\xaa\x02\xb6\xf4\
\x81\xe8\xfb\xed\xe0\xcd\x07\xba\x50\xdb\x98\x91\x08\x04\xc0\x88\
\xa0\x0d\x8a\x80\x54\xaf\xc1\x7c\x31\x8d\x70\x76\x0a\x64\x64\x20\
\x76\x0e\x98\x91\xa5\x2b\x6d\xe9\x64\x63\xd2\x7c\x1b\xcb\x66\x14\
\xe7\xa6\x06\x4f\xe3\x42\xef\xfb\xa0\x6f\xb6\x81\x9b\xda\x3e\x46\
\xdd\xba\xb4\x00\x5c\x73\x00\xd1\x66\x79\xa8\x3a\x1b\x1b\xb2\xf3\
\x09\xc3\xf1\x9c\x71\x88\x95\x50\xeb\xf5\x13\x7a\xcb\x97\x2e\xe2\
\xe7\xb6\xf7\x40\x5f\x3e\x09\xde\xda\xda\x89\x95\x8d\x06\x60\xd2\
\x47\xc0\x96\x26\xbb\xd8\x6c\x56\xd1\x37\x57\x0c\x47\x20\xda\x03\
\xe8\xc4\x77\x00\x94\x46\x46\xf1\xe3\xe1\x2e\xd0\xf1\x2d\xe0\x6d\
\xed\x1f\x61\xd5\xba\x94\x68\x70\xcd\x6f\x84\x37\x24\x31\x2b\x55\
\xf1\xdc\x52\x27\x63\xa8\xdc\xa8\xbc\x13\x2a\xb4\x0e\xb0\x5f\x13\
\x48\x06\x4e\x5e\x1e\xc5\xa9\x8e\x6e\xd0\xb1\x26\xf0\xf6\xf6\x0f\
\xb1\xd2\x00\x58\x0d\x0c\x9f\xb2\x61\x7e\x42\x00\xa7\x01\x0b\xaa\
\xdc\x9c\xa5\x4d\xb9\x6e\xe6\xd2\xf5\x42\x87\xa8\x19\x48\x16\x64\
\xea\x64\x5e\xd6\x84\x8b\x92\xe1\x84\xe2\x95\x11\x9c\xec\xf8\x14\
\xd4\xb3\x19\xdc\x7c\xe8\x08\x56\xaf\xd5\xd0\x93\x67\xc4\xa0\x80\
\x2c\x94\x13\x3a\x78\x7a\xe4\x9d\x2d\x15\x11\x90\xe9\x8b\xf2\xcb\
\x44\xb0\x28\x7e\xa5\x11\x64\x56\x83\x6a\xee\x16\xbc\x3b\x31\x71\
\xe9\x32\xbe\xeb\x38\x0a\x3a\xba\x09\xbc\xa3\x6d\x1f\xd6\x64\x2f\
\x42\xcf\x16\x1d\xdf\xfe\x2c\x38\x5e\x43\x79\x22\x83\xde\x73\x1b\
\x85\x76\xc6\x0d\xa0\xf9\x67\x68\x13\x40\x43\x57\x10\x64\x30\x39\
\xb7\x0a\x5f\x77\x9d\x02\x75\x6e\x04\x3f\xd3\xf2\x16\xea\xeb\xae\
\x42\x4f\x17\xe2\xcd\xb1\xd7\x91\x41\x8e\x40\x5d\x04\x5a\x27\xe8\
\x4a\xac\x37\x9d\xc4\xa9\x89\xb1\x19\x7c\xd5\x3f\x0a\xfa\xe0\x11\
\xf0\x73\xad\x02\x50\x3b\x02\x5d\x1e\xf3\x99\x70\x33\x4a\x94\x3c\
\x09\x83\x3a\x12\xd8\xfd\x67\x1f\x51\x20\x09\x30\x91\x9f\x43\x7f\
\xdf\x55\xd0\xe1\x87\xc1\x2f\xb4\xbd\x81\x86\x9a\x2b\x02\x90\xb3\
\xec\x70\x94\x76\x3a\x29\xec\x0d\x94\x2c\x11\xdc\x38\xe3\xd6\x90\
\xe9\x72\x26\x0a\x63\xf3\x38\xd1\x97\x03\xb5\xaf\x07\xbf\xd4\xfa\
\x3a\x1a\x6a\xff\x80\x2e\xe5\x6d\x00\x71\xb8\x09\x03\x4b\x28\x51\
\xc9\x08\x54\xc5\xb8\x07\x32\x11\x14\xc6\x17\xf0\x79\x5f\x1e\xd4\
\xf2\x20\xf8\x95\xd6\x3d\x68\xc8\x0e\x43\x95\xc7\x2b\x87\xc8\x47\
\xa0\x63\xb1\x95\xd3\x80\x13\x94\x24\xbf\x63\xea\xb4\x4d\xd3\x71\
\x01\xe8\xf9\x42\x00\xf6\xdf\x0f\x7e\xf9\xe0\x6e\xdc\x95\x1d\x82\
\x2a\xe5\xe2\x62\xe7\x28\x49\x88\x78\x53\x4a\x94\x4f\x04\x9f\xd2\
\xd2\x52\x72\xd0\xf2\x05\x01\x38\x26\x00\xef\xdc\x07\x7e\xf5\xd0\
\x6e\xac\xcd\x0c\xc9\xf9\x1e\x8d\xf3\x5f\xeb\x5b\xe0\x3b\x34\xef\
\xa1\xbf\x43\x38\xae\xae\x52\x8a\x90\xcb\xfd\x89\xce\x5e\xd1\x60\
\xdf\x03\xe0\xc7\x9e\x7e\x02\x8f\x6f\xbc\x03\x6a\xa6\x20\x1b\x28\
\xce\x7f\x57\x36\xb8\x52\x93\x4c\xe5\x0c\x5d\xe9\xb0\x9e\xb3\xaf\
\x53\x37\xb4\x54\x8a\xf0\xeb\xc0\x0c\xce\x0e\x96\x1d\xe6\x5e\x89\
\x22\x0c\xff\xa1\xce\xff\x9b\x2b\x47\xd6\xca\x8d\x8b\xd7\x2e\xc8\
\x7d\xb0\xdc\x9b\xea\x56\xdb\x75\x05\x0e\xde\xc3\xbd\xe0\xf7\xe2\
\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\x00\x00\x31\xce\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x01\x00\x00\x00\x01\x00\x08\x06\x00\x00\x00\x5c\x72\xa8\x66\
\x00\x00\x00\x09\x70\x48\x59\x73\x00\x00\x05\xa2\x00\x00\x05\xa2\
\x01\x76\x73\x95\x66\x00\x00\x20\x00\x49\x44\x41\x54\x78\x9c\xed\
\x9d\x09\x90\x1c\xe7\x75\xdf\x5f\x77\xcf\xb5\x73\xec\x7d\x03\x8b\
\x5d\x2c\x2e\x02\x20\x71\x50\x20\x69\x1e\x32\xa1\xc3\x2e\x53\x8c\
\x42\x96\xe3\x24\x92\x22\xb9\xa8\x72\xca\x65\x47\x4e\x49\x39\x2a\
\xde\xb2\x2b\x15\xa5\x2a\x0e\xd7\xae\xca\xa1\x24\xb6\xa4\x4a\x5c\
\x46\xc5\x71\xa4\xc4\xb2\x45\x8b\xa2\xa8\x92\x28\x8b\xb0\x78\xc4\
\x22\x28\x02\x24\x00\x82\x00\x09\x72\xb1\xc0\x2e\xf6\xde\xd9\x99\
\xd9\x9d\xab\xa7\x53\xef\x9b\xee\xdd\x9e\x9e\xee\x99\xee\x9e\xee\
\x41\xf7\xcc\xfb\x55\x6d\x01\xbb\x3b\x3b\x3d\xd7\xff\xff\xbd\xef\
\x7d\xef\x7b\x1f\x27\x49\x12\x34\x9b\xc4\xf4\xf4\x09\x00\xc0\xaf\
\x09\x00\x38\x0d\x00\xdd\x00\x70\xbc\xe9\x0f\x84\x20\xee\x1c\x17\
\x00\x60\x1d\x00\x5e\x04\x80\x0f\xf0\xdf\xd4\xd4\xd4\x07\xcd\x7e\
\x34\x4d\x33\x80\xc4\xf4\xf4\x93\x00\xa0\x7c\x75\x35\xe5\xa2\x04\
\xe1\x2f\x92\x00\xf0\x0c\x7e\xa5\xa6\xa6\x9e\x69\xc6\x23\x77\xd5\
\x00\x12\xd3\xd3\x38\xba\x3f\x45\xa2\x27\x08\xcb\x28\x66\x70\x26\
\x35\x35\xf5\xa2\x5b\x2f\x9f\x2b\x06\x90\x98\x9e\x46\xd1\x7f\x89\
\xc2\x7a\x82\x70\x84\xb3\xb2\x11\x9c\x71\xfa\xe5\x74\xd4\x00\xe4\
\x11\x1f\x1f\xe4\xb8\x63\x77\x4a\x10\x84\xc2\x0c\x46\xd4\x4e\x46\
\x04\x8e\x18\x40\x62\x7a\x7a\x42\x16\xfe\xa3\x8e\x3c\x2a\x82\x20\
\x6a\x71\x56\x36\x82\x86\x93\x86\x7c\xa3\x77\x90\x98\x9e\xc6\x50\
\xff\x3c\x89\x9f\x20\x9a\x06\x6a\xed\xbc\xac\xbd\x86\xb0\x1d\x01\
\x24\xa6\xa7\xbb\xe5\x51\xff\x09\x7a\xdf\x09\xe2\x8e\xf1\x57\x72\
\x34\xb0\x6e\xe7\x01\xd8\x32\x00\x79\x1d\xff\x19\x9a\xeb\x13\x84\
\x27\xc0\xdc\xc0\x93\xa9\xa9\xa9\xf3\x56\x1f\x8c\xe5\x29\x80\x9c\
\xe8\x7b\x91\xc4\x4f\x10\x9e\x01\xb5\xf8\xa2\xac\x4d\x4b\x58\x32\
\x00\x79\x79\xef\xc7\xb4\xa6\x4f\x10\x9e\x03\x35\xf9\x63\x59\xa3\
\xa6\x31\x6d\x00\xf2\x1d\xff\x09\xbd\xef\x04\xe1\x69\xfe\xc4\x8a\
\x09\x98\xca\x01\xc8\xa1\xc5\x8f\xe9\x7d\x27\x08\xdf\xf0\x11\x33\
\xf5\x02\x75\x23\x00\x55\xc2\x8f\x20\x08\xff\xf0\x8c\xac\xdd\x9a\
\xd4\x8c\x00\xe4\xa5\xbe\xf3\x94\xf0\x23\x08\x5f\x82\xab\x03\x27\
\x6a\x2d\x11\xd6\x8b\x00\xa8\xac\x97\x20\xfc\xcb\xb8\xac\x61\x43\
\x0c\x0d\x40\xae\x32\xa2\x22\x1f\x82\xf0\x37\x4f\xd4\xaa\x18\xd4\
\x9d\x02\xc8\xb5\xfd\xe7\x69\xb9\x8f\x20\x5a\x82\xa4\x3c\x15\xa8\
\xda\x3b\x60\x14\x01\x9c\x21\xf1\x13\x44\xcb\xd0\x65\x34\x15\xa8\
\x32\x00\x79\xc9\x8f\x36\xf6\x10\x44\x6b\xf1\xa8\x5e\xa5\xa0\x5e\
\x04\xe0\x78\xd3\x01\x82\x20\x3c\x41\x95\xb6\x2b\x0c\x40\xae\x20\
\xa2\xac\x3f\x41\xb4\x26\xe3\xda\x2a\x41\x6d\x04\xd0\xf0\xfe\x62\
\x82\x20\x3c\x4d\x85\xc6\xb7\x0d\x40\x9e\x1f\x50\x0f\x3f\x82\x68\
\x6d\x8e\xab\x73\x01\xea\x08\xc0\xd2\x2e\x22\x82\x20\x7c\xcb\xb6\
\xd6\xd5\x06\xf0\x24\xbd\x9f\x04\xd1\x16\x6c\x6b\x9d\x19\x80\x7c\
\x68\x07\xad\xfb\x13\x44\x7b\xd0\x25\x6b\x7e\x3b\x02\xa0\xd1\x9f\
\x20\xda\x0b\x32\x00\x82\x68\x63\x98\xe6\xb9\xf8\xd3\x4f\xe3\x9e\
\xe1\x37\xe8\x93\x40\x10\x6d\xc7\x5e\x5e\x3e\xa5\x97\x20\x88\xf6\
\xe3\x34\x2f\x1f\xd1\x4d\x10\x44\xfb\x31\xc1\xcb\xe7\xf3\x13\x04\
\xd1\xa6\x11\x40\xb7\x07\x1e\x08\x41\x10\xcd\xa7\x9b\xa7\xf2\x5f\
\x82\x68\x5b\x8e\x37\x7c\x38\x28\x41\x10\xfe\x85\x0c\x80\x20\xda\
\x98\x00\xbd\xf9\x44\x2b\x30\x10\x0a\xc1\xa9\x44\x02\x62\x82\x00\
\x47\x62\x31\xb8\x9c\xc9\x40\x46\x14\xe1\x5c\x2a\x05\x4b\xf9\x3c\
\xbd\xc7\x06\x90\x01\x10\xbe\x06\x85\xff\x9b\xbb\x76\xc1\xe1\x58\
\xac\xe2\x69\x28\xdf\xff\xea\xc8\x08\xbc\x9d\xc9\xc0\x57\x6f\xdd\
\x22\x23\xd0\x81\xa6\x00\x84\x6f\x39\xd5\xd9\x09\xd3\xfb\xf6\x55\
\x89\x5f\x0b\xfe\x1e\x6f\xf7\x68\x4f\x0f\xbd\xd9\x1a\x28\x02\x20\
\x7c\x09\x8a\xf9\x37\x76\xed\x32\xfd\xd0\xa3\x82\xb0\x7d\xfb\xb3\
\x6b\x6b\xf4\xa6\xcb\x90\x01\x10\xae\x32\x24\x8a\xd0\x5f\x12\x21\
\x2a\x8a\x90\x07\x0e\xd6\x83\x41\x98\x11\x84\x86\x2e\x69\x55\xfc\
\x6a\xc8\x04\x2a\x21\x03\x20\x5c\xe1\x68\x21\x0f\x63\xc9\x24\xf0\
\x85\x42\xc5\xdd\xa3\xfc\x0e\xf3\x02\x64\xe2\x51\x78\x2d\x1a\x87\
\x2c\xc7\x59\xba\x7c\x23\xe2\x57\x20\x13\xd8\x81\x0c\x80\x70\x94\
\x88\x24\xc1\x23\xc9\x24\x84\xb6\x36\x0d\xef\x96\x2f\x89\x90\xd8\
\x48\xc1\xe9\xf4\x26\xbc\xd7\xd7\x07\xd7\x02\xe6\x3e\x86\x4e\x88\
\x5f\x81\x4c\xa0\x0c\x25\x01\x09\xc7\x40\xf1\x7f\x78\x6d\xb5\xa6\
\xf8\xd5\xa0\x11\x1c\x58\x5a\x64\xd1\x42\x3d\x9c\x14\xbf\x02\xde\
\x5f\xbb\x27\x06\xc9\x00\x08\x47\x50\xc4\x1f\xcc\xe5\x2c\xdf\xdd\
\xf8\xf2\x72\x4d\x13\x70\x43\xfc\x0a\xed\x6e\x02\x64\x00\x44\xc3\
\x34\x22\x7e\x05\x23\x13\x70\x53\xfc\x0a\xed\x6c\x02\x94\x03\x68\
\x23\x3a\x8b\x45\xd8\xb5\xb6\x06\xfc\x66\x06\x0a\xe9\x0c\x48\x62\
\x11\x82\xf1\x38\x40\x34\x06\xa9\xce\x4e\x98\x8d\x46\x2d\xbf\x18\
\x4e\x88\x5f\x01\x4d\x00\xfa\xfb\xe1\x52\x30\xc4\x7e\xd2\x0c\xf1\
\x2b\xb4\x6b\x4e\x80\x0c\xa0\x0d\x08\x4b\x12\x4c\x2e\x2f\x43\x71\
\x7e\x0e\x8a\x9a\xa7\x5b\x48\xa7\x01\xd2\x69\x88\x2c\x2e\xc0\x91\
\x78\x1c\x16\x77\x8f\xc1\x72\x28\x64\xea\x45\x71\x52\xfc\x0a\x8a\
\x09\xf4\x0f\x0e\x35\x4d\xfc\x0a\xed\x68\x02\x34\x05\x68\x71\x50\
\xfc\xfb\xde\xbf\xce\xc4\x5f\x0f\x34\x83\xde\x6b\xd7\x60\x12\x4d\
\xa1\x0e\x6e\x88\x5f\xe1\xa3\xa1\x50\xd3\xc5\xaf\xd0\x6e\xd3\x01\
\x32\x80\x16\x46\x11\x7f\xc1\x84\xa0\x15\x70\x5a\x20\x5c\x7f\xaf\
\xa6\x09\xb8\x29\xfe\x7d\xa3\xa3\xf0\xd0\xd1\xbb\x1d\xbf\x5f\x2b\
\xb4\x93\x09\xd0\x14\xa0\x45\xb1\x23\x7e\x35\xcc\x04\x26\xf7\xc1\
\x75\xcc\x11\xa8\xf0\xa2\xf8\x3b\x3b\x3b\xa1\xaf\xaf\x0f\x82\xc1\
\xe0\xf6\xcf\x6e\xdf\xbe\x0d\x1b\x1b\x1b\xb6\x1f\x4b\xbb\x4c\x07\
\xc8\x00\x5a\x90\x46\xc5\xaf\xa0\x35\x01\xaf\x89\x7f\x6c\x6c\x0c\
\x0e\x1e\x3c\x08\x1d\x1d\x1d\x55\xbf\xc3\x9f\xaf\xac\xac\xc0\xa5\
\x4b\x97\x6c\x1b\x41\x3b\x98\x80\x10\xfa\xf8\xc7\xbf\xec\x81\xc7\
\x41\x38\x84\x53\xe2\x57\xe0\xd7\xd6\xa0\x3b\x16\x87\xad\x60\xd0\
\x33\xe2\x8f\x46\xa3\x70\xea\xd4\x29\xd8\xbb\x77\x6f\xc5\xa8\xaf\
\x77\xbb\x5d\xbb\x76\xc1\xda\xda\x1a\x6c\x6d\x6d\xd9\x7a\x6c\xb8\
\xe3\x70\xb9\x50\x80\x99\x6c\xd6\xd6\xdf\x7b\x1d\x32\x80\x16\xc2\
\x69\xf1\x2b\x84\x37\x36\xe0\x01\xac\xd9\xd7\xd4\xf5\x3b\x81\x55\
\xf1\x63\xb8\xff\xc8\x23\x8f\x40\x5c\x33\x35\xb9\x91\x4c\xc2\x77\
\xaf\x5d\x63\x5f\x3f\xb9\x71\x03\x92\xd9\x2c\x0c\xc5\x62\x10\x0d\
\x85\x60\x64\x64\x04\x66\x66\x66\xa0\x54\x2a\xd9\x7a\xc4\xad\x6c\
\x02\x34\x05\x68\x11\xdc\x12\x7f\x50\x10\xe0\x60\x3c\x0e\x5c\x2a\
\x05\xa1\x70\x18\xf2\xbc\xb9\xbc\x71\x47\x34\x0a\xe1\x70\x18\x42\
\xf2\x92\x22\x8a\x2f\x9b\xcd\x42\x76\x6b\x0b\x8a\xc5\xf2\x62\xa4\
\x9d\x91\xff\xa1\x87\x1e\x82\x80\x6a\xef\x00\x0a\xff\x5f\xbd\xf0\
\x02\x3c\x77\xed\x5a\xd5\xed\x3b\xc3\x61\xf8\xc2\x7d\xf7\xc1\xef\
\x3c\xf2\x08\x8b\x16\xae\x5e\xbd\x6a\xfa\x5a\x5a\x5a\x75\x3a\x40\
\x06\xd0\x02\xb8\x2e\x7e\x51\x64\xdf\x73\xb9\x5c\x5d\x13\x88\x27\
\x12\x6c\x94\x0e\xe8\x6c\xf0\x89\xca\x85\x46\xc9\xf5\x24\xf4\xc7\
\xa2\x96\xe7\xfc\xc7\x8f\x1f\xaf\xb8\xdf\x3f\x7b\xeb\x2d\xf8\x8d\
\xe7\x9e\x33\xbc\xfd\x46\x2e\x07\x4f\xbf\xf4\x12\x8b\x06\x7e\xf7\
\xfe\xfb\x1b\x32\x00\x68\x51\x13\xa0\x65\x40\x9f\xd3\x2c\xf1\x2b\
\x30\x13\xd0\x09\xa5\x39\x9e\x87\xc1\xa1\x21\xe8\xed\xed\xd5\x15\
\xbf\x9a\x7d\xbb\x77\xd9\x4a\xf8\x61\xa6\x5f\xe1\x0f\x5f\x7b\xad\
\xa6\xf8\xd5\xfc\xd1\xb9\x73\xf0\x81\xcd\x1c\x80\x96\x56\x5b\x22\
\xa4\x08\xc0\xc7\x34\x5b\xfc\x0a\xda\x48\x00\xc5\x3f\x34\x34\xb4\
\x1d\xee\x2b\xdc\x58\x4f\xc2\x7c\x3a\x0d\x2b\xd9\xb2\xf8\x12\xc1\
\x20\x1c\xe8\xeb\x83\x87\xf7\x1f\xb0\xfc\x98\x30\xab\xaf\xf0\xdd\
\xab\x57\x61\xea\x47\x3f\xb2\xf4\xf7\x18\x2d\x7c\xd8\xf2\x55\xf5\
\x69\xa5\x48\x80\x0c\xc0\xa7\xdc\x29\xf1\x2b\x28\x26\x50\x08\x04\
\xaa\xc4\x8f\xa2\xff\xc9\xcc\x0c\x64\x34\x49\xc3\x05\x00\xf8\x95\
\x13\x27\x21\x60\x32\x8f\xa0\x80\x53\x0a\xf5\x52\xdf\x6f\x5b\x14\
\x3f\xf2\xe6\xe2\x22\x7c\xb8\xb3\xd3\xf2\xdf\x19\xd1\x2a\x26\x40\
\x06\xe0\x43\xec\x88\x1f\x47\xe9\x40\x40\x00\x81\x17\x80\xe3\xcb\
\x5d\x78\x4a\x62\x09\x44\x51\xdc\x4e\xca\x99\x15\xff\xf6\x7d\xe6\
\x72\x30\xd8\xd3\x53\x21\xfe\x6b\x2b\x2b\xf0\xd2\xec\xac\xee\xed\
\xfb\x63\x31\xb8\x6b\x60\xc0\xf2\x0b\xae\x0e\xfd\x71\x24\xc7\xc4\
\x9f\x55\x0a\x2e\xac\x60\xb4\x82\x09\x90\x01\xf8\x0c\x45\xfc\x62\
\x2a\x05\xbd\xb9\x3c\x44\x44\x11\x78\x49\x82\x12\xc7\x41\x56\x10\
\x60\x3d\x1c\x62\xff\x57\xe0\x38\x8e\x65\xe3\x75\xd7\xcb\xe5\xd6\
\x7c\x22\x1a\x41\xa1\x00\xfb\xa3\x1d\xa6\xc5\x8f\xe0\x5c\xbf\x13\
\xc5\x2f\x8a\x90\x13\x84\x9a\xe2\x47\xee\xb5\x59\xdf\xaf\x7e\xec\
\xcf\xda\x4c\xe4\xe5\x5d\x6a\x09\xee\x77\x13\x20\x03\xf0\x11\x6a\
\xf1\x0f\x6c\x65\x21\xa8\x4a\xc6\xa1\x09\x44\x8b\x45\xf6\xb3\xa5\
\x8e\x08\x33\x01\x14\x68\x24\x12\x61\x26\x50\x0b\x41\xe0\x61\x6f\
\xac\x0b\x38\x8b\x89\xb2\x44\x22\x51\xfe\x4f\x2e\x07\xe9\x52\xa9\
\xa6\xf8\x41\x8e\x00\x1a\x05\xd7\xf8\xed\x70\x28\x12\x71\xed\x8d\
\xf6\xb3\x09\x90\x01\xf8\x84\x5a\xe2\x57\x83\x3f\xc7\xdf\xaf\x75\
\x26\x20\xac\x29\x91\xcd\x8b\x22\x24\x73\x39\xd8\x54\x85\xc3\x41\
\x9e\x87\x91\x78\x1c\x02\xf9\x3c\x48\x3c\x6f\xa9\x58\x46\x3d\x2f\
\xff\xe9\xf5\xeb\x10\x96\x23\x01\x23\xf6\x74\x37\x9e\x3d\xdf\xb0\
\x59\x89\xf8\x90\x03\xe6\x53\x0b\xbf\x9a\x00\x2d\x03\xba\x44\x28\
\x93\x81\xae\xb9\x39\x18\xb8\x7e\x1d\xa2\xeb\xeb\x0d\x5d\xc4\xac\
\xf8\x15\xf0\xf7\x7d\x99\x0c\x70\xf2\xed\x44\xa9\x04\xb7\x33\x69\
\x78\x6f\x6d\x0d\x96\x37\x37\x99\x01\x28\x5f\x68\x08\x81\x52\x09\
\x0a\xa5\x52\xdd\x48\x41\x8b\xb2\xdc\x97\xce\xe7\x61\x21\x9d\x66\
\x39\x81\x70\x8d\x29\xc4\x8d\x75\x7b\xe2\xc0\x8d\x3d\x0a\x7b\xba\
\xba\x2c\xff\xfd\xe9\xde\x5e\x76\x82\x90\xdb\xf8\x71\x89\x90\x22\
\x00\x17\x18\xba\x72\x05\xa2\x73\x3b\xfb\xef\xe3\x1f\x7c\x00\x62\
\x47\x04\x96\x0f\x1f\x81\xcd\xee\x6e\x4b\x17\xb4\x2a\x7e\x05\xa1\
\x50\x84\xd8\xea\x2a\x6c\xf4\xf4\xc0\xcc\x46\x0a\x72\xa2\xb6\x15\
\xc8\x0e\x9d\x82\x00\xc5\x52\x89\x8d\x06\x68\x02\x92\x24\x59\x7a\
\x8c\x33\xaa\xa4\x1c\x33\x81\x70\x58\x37\x12\x58\xce\x64\x2c\xdd\
\xaf\x02\x6e\xe6\xc1\x2f\x5c\x0d\xf8\xf0\x9e\x3d\x2c\x11\x68\x16\
\x3c\x2b\xf0\x73\x43\x43\xb6\xae\x6b\x07\xbf\x45\x02\x14\x01\x38\
\xcc\xe8\x9b\xe7\x2b\xc4\xaf\x20\x6c\x65\x61\xf0\xfc\x79\xcb\xd1\
\xc0\xfe\x1b\x33\x35\xc5\xff\xec\xb3\xcf\xc2\xf7\xbf\xff\x7d\xdd\
\x1d\x6f\x68\x02\x91\xa5\x65\x10\x6b\x88\x1f\x76\x72\x81\x2c\x0a\
\xb0\x43\x41\xa7\x58\x48\x2f\x12\xf8\xd9\xad\x5b\xb6\xee\x1f\x39\
\x7f\xfe\x3c\xfb\xf7\x1f\xdd\x73\x8f\xe9\xbf\x41\xf1\xff\xeb\xbd\
\x7b\xd9\xa9\x40\xcd\xc4\x4f\x91\x00\x19\x80\x83\xa0\xf8\xc3\xcb\
\xab\x86\x77\x88\x21\xb9\x15\x13\xc0\xa6\x1c\xc5\xf5\xf5\x9a\x23\
\x3f\x8e\x8a\xb8\xc4\xf5\xca\x2b\xaf\xe8\x9a\x40\x87\x24\xc1\x91\
\xa2\x68\x2a\xd4\x93\xe4\x2f\xb3\xd4\x8a\x14\xf4\x4c\x00\x23\x80\
\x2b\x4b\x4b\x16\xae\xb0\x03\x3e\xb7\x73\xe7\xce\xc1\x83\xa3\xa3\
\xf0\x4f\x4e\x9d\xaa\x7b\xfb\x89\x8e\x0e\x26\xfe\x71\x17\x93\x7f\
\xb5\xf0\x8b\x09\xd0\x6e\x40\x87\xa8\x27\x7e\x05\x4e\x92\x20\xb6\
\xb0\x00\xf9\xee\x6e\x28\xd4\xf9\x70\x8e\x5e\xbf\x0e\x7d\xe9\x74\
\xcd\xb0\x1f\xb7\xbb\x2e\x2e\x2e\xb2\xed\xae\x73\x73\x73\x30\x38\
\x38\xc8\x42\x70\x35\xb8\x88\xd6\x2d\x49\xb0\x82\x49\x3e\x9d\xfb\
\x18\x8f\x46\x41\x90\xc5\xcc\xa6\x01\x26\x5f\x12\x5c\x9e\xc3\x1a\
\x80\x15\xbc\x76\x2a\x55\xfd\x5c\x45\x11\x04\x9e\x07\x51\x55\xf8\
\x83\x79\x80\x9f\xdb\x33\xce\x6a\x0e\xac\x92\x4e\xa7\xd9\xae\xbe\
\x8f\x4e\x4c\xc0\x03\x13\x13\x70\x7e\x69\x89\xe5\x30\xd4\xec\x8d\
\x46\xe1\x53\x83\x83\xf0\x6b\xa3\xa3\xd0\x6d\xf2\xc0\x11\x05\x34\
\x53\xdc\x65\x88\x7b\x16\xf0\x0b\xeb\x23\xec\xee\x20\x04\x79\x17\
\x21\xee\x20\x9c\x73\x61\x0b\xb5\x53\x70\xf1\xa7\x9f\xb6\x36\xe1\
\xf3\x39\xa1\x4c\x1a\x62\xb7\x17\x80\x2b\x96\x33\xe1\xb9\x9e\x5e\
\xc8\x0c\x0e\x36\xf4\xa4\xf4\xc4\x8f\x1f\x1e\xfc\xc0\x46\x63\x51\
\x08\x05\xab\x13\x50\x98\x71\x5f\x3c\x71\xc2\x30\x27\x30\xb4\xb5\
\x05\x07\x2e\x5c\x30\x35\xe7\x57\x47\x00\x28\x4a\xdc\x31\xd7\xa9\
\x53\xf5\x36\x23\xf0\x30\xaf\x53\x85\x77\xb2\xb7\x17\x94\xb1\x2a\
\xc8\x71\xa6\x0d\x00\x93\x80\xb8\xd5\x16\x2b\xfe\xbe\x75\xf9\xb2\
\xe1\xed\x24\x4d\x4e\xe0\xf1\xfd\xfb\xe1\xef\xdf\xfb\x21\x93\x57\
\xa9\x0d\x0a\x2c\x23\x47\x1a\x03\xc1\xa0\xa5\x64\x1f\x1e\x17\xfe\
\xc3\x8d\x0d\x78\x3d\x95\x82\x39\x55\x7e\xe2\x9e\xc1\x41\xb6\x83\
\xf0\xef\x1c\x3c\xc8\x12\x90\xb8\x89\xc8\x6e\x53\x91\x4d\x51\x84\
\x7f\x7a\xf5\x2a\xfb\xd7\x8b\xb4\x55\x04\xd0\x35\x33\x03\xd1\x2b\
\x6f\x03\x97\x4c\x02\x87\x59\xeb\x74\x1a\x02\xcb\x4b\x10\xdb\x48\
\xc2\xe6\xd0\xb0\xad\xfb\x34\x1a\xf9\xb1\xf0\x64\x65\x75\x05\x36\
\x37\x37\xd9\x72\x99\xa0\x19\xf1\x6a\x45\x02\x81\x62\x11\x8e\x5d\
\xba\x04\x21\x93\xd5\x6b\x78\xdf\x66\x22\x01\x89\x03\x16\x05\x68\
\xd9\x12\x45\x18\x95\x85\x13\xb0\xb0\x12\x80\xa3\x23\x56\x12\x76\
\xcb\xf5\x00\xb7\x0d\x2a\x13\xd5\x91\xc0\x70\x28\x04\xbd\xc5\x22\
\x64\xb2\x5b\x30\xd6\xa0\xf1\x22\x38\xca\xa3\xe8\xf1\x2b\x66\x21\
\xaa\xf8\xd6\xe2\x22\xfc\xc7\x1b\x37\xe0\x6a\x3a\x0d\x29\xcd\xeb\
\xbc\x98\xc9\xc0\x5f\xbc\xfd\x36\xab\x38\xfc\xd4\xbd\xf7\xb2\xd7\
\x16\xcd\x3c\x6d\xa3\xec\x1a\x97\x59\x8b\x92\x04\x97\x6d\x26\x40\
\xdd\xa6\x6d\x0c\x00\xc5\x1f\xf8\xe0\x7d\xfd\x49\x6e\x36\x6b\xcb\
\x04\x6a\x85\xfd\x38\x3a\x8a\xc5\x22\xe4\xf2\xf9\xba\x26\xb0\x39\
\x30\x00\xa2\x22\xc0\x62\x11\x4e\x5e\xba\x04\x1d\x9a\xa2\x1c\x6c\
\x6f\x35\x3b\x3b\xcb\x42\x6e\xad\xb0\x41\xc7\x04\xf0\x36\xfd\xfd\
\xfd\x15\xb7\x49\x73\x1c\xac\xe9\x18\x40\x4e\x14\x61\x30\x16\x63\
\x2d\xbf\x78\x8b\x4b\x81\x18\x7d\xe0\x3e\xff\xdd\xdd\xdd\x20\x72\
\x1c\x5b\x66\xd4\x03\x23\x99\x23\x89\x04\x9b\x6e\x20\x6b\xa9\x14\
\x33\x81\xd1\xbe\x3e\xe0\x2d\xee\x0d\x68\x94\xaf\xde\xbc\x09\xdf\
\x5f\x59\xa9\x7b\x2f\x6f\x2d\x2e\xc2\x78\x57\x17\x9c\x18\x19\x61\
\x86\x8a\xc6\x6a\xa7\xa4\x78\x22\x12\x81\xef\x60\xbb\x73\x0f\xd2\
\x16\x06\xb0\x2d\xfe\x5a\x58\x34\x01\x33\x73\x7e\x9c\x47\x9a\x31\
\x81\x08\x8e\x42\xa3\xa3\xdb\xe2\x8f\xeb\x8c\x16\x28\x7e\x0c\x45\
\x8d\x46\x77\x50\x99\x00\x0a\x0a\xc5\x1f\xd5\x1c\xf4\x71\x9b\xe7\
\x61\xd3\x40\xe0\x2b\xb9\x1c\x8c\xc7\x62\xac\xa2\xd0\x2a\x18\x05\
\x64\x32\x19\xe8\x0b\x06\x61\xa2\xb3\x13\x42\xf2\x73\x0c\x0b\x02\
\x0b\xcb\x31\x11\x87\x67\x0e\x24\xe4\xc7\x28\xca\x8f\x61\xa4\xb3\
\x0b\xa4\x62\x51\xf7\x75\x71\x0b\x14\xff\xdf\x58\x58\x89\xc1\x4d\
\x44\xd8\x54\x04\x5f\x53\x9c\x5e\xa9\x6b\x12\xcc\x82\x51\xc0\xb9\
\x8d\x0d\x48\x16\x6b\xaf\xc6\xdc\x09\x5a\x7e\x15\xc0\x94\xf8\x65\
\xa4\xb5\x35\xe8\x7f\xf3\x42\xdd\xdb\x99\x4d\xf8\x01\xdb\xc8\xd2\
\x0f\xf1\x58\x8c\x85\xcb\x0b\x18\xf2\xeb\x1c\x7f\x15\x4a\x26\x6b\
\x8a\x1f\x99\x9c\x9c\xac\x9b\xf1\x07\x39\x31\x77\xe8\xd0\xa1\x8a\
\x0d\x34\xc8\x06\xc7\xc1\x52\x8d\x91\x16\xd3\x65\xf3\xf9\x1c\x48\
\x16\x23\x00\x35\x38\xed\x29\x65\xb3\x30\xca\xf3\x70\x2c\x1a\x85\
\x93\xb1\x18\x1c\x88\x46\x2b\xe6\xe5\x4a\x3f\x81\x23\xbb\x76\xc3\
\x48\x77\x37\x8b\x38\x16\x16\x17\x5d\xd9\xac\xa3\x05\x45\x68\x45\
\xfc\x20\x77\x1c\x4a\xca\xad\xc0\x86\x87\xed\x4d\x13\x41\x5e\x92\
\xf4\x22\x2d\x6d\x00\x46\xe2\xc7\xd1\x18\xe7\x73\x7a\x19\xde\x7a\
\x26\x60\x94\xf0\xcb\xd6\xe8\x17\xa7\x35\x01\x2d\x28\x82\x5a\xe2\
\x07\x59\xd8\x4a\x72\xaf\x9e\x09\x54\x3d\x5f\x8e\x83\xab\x01\xe3\
\x0f\x60\x88\xe3\xd9\x5c\x7a\x3d\x9b\x83\x5b\x85\x7c\x43\x26\x60\
\x86\x43\xa3\xa3\x4c\xfc\x0a\xf8\xfc\x6f\x37\xc1\x04\xfe\x54\xe7\
\xb5\x37\x03\x46\x01\xa0\x6c\x7e\x72\x70\x4b\xb1\x17\x68\x59\x03\
\xa8\x35\xf2\xb3\x79\xae\x24\x31\x23\xb0\x62\x02\x46\x23\x3f\x9a\
\xc9\xc2\xe2\x02\xac\xac\x18\xcf\xf3\xd0\x04\x70\xf3\x4c\x48\xb3\
\x2b\x0f\x1f\x0b\x26\xc6\x6a\x89\x5f\xc1\x8e\x09\xa0\xf8\x2f\x07\
\x84\xed\x23\xc1\x30\x2c\xff\x87\x07\x0f\xc2\xc7\xc6\xc6\xd8\xf7\
\x71\x41\x80\xc1\xd0\xce\x63\x42\x13\xc8\xe4\xf3\x55\xc5\x3d\x4e\
\x71\x70\xef\x5e\x18\xec\xeb\xaf\xba\x37\x81\xe3\x60\x7e\x61\xc1\
\x35\x13\xc0\xd5\x82\x45\x9b\xcb\x71\x5d\xaa\xe9\x56\xad\x2e\xc4\
\x7e\xa4\x25\x0d\xa0\x5e\xd8\x8f\x3b\xe4\x78\x5e\xa8\x6b\x02\x7d\
\x97\x2e\x6e\x7f\x5f\x2b\xec\x0f\x85\xcb\x21\x6e\x3a\x93\xa9\x69\
\x02\xbd\x3d\xbd\x30\xa4\xca\x31\x28\xe2\x0f\x69\x46\x5c\xa5\xf4\
\x55\x0f\x3d\x13\x30\xa2\x28\x08\xb0\xd2\x99\x00\x41\x28\xaf\x87\
\xa3\xf8\x9f\xdc\xb7\x0f\xfa\x23\x1d\x70\x57\x4f\x2f\x3c\x3e\x3e\
\x5e\xb5\x56\xbe\x27\x14\x06\xbe\x50\x80\x42\x2e\x57\x65\x02\x4a\
\xa1\x10\x96\x0b\x2b\x5f\x56\x30\x12\xbf\x02\x36\x0a\x71\xcb\x04\
\x5e\x6b\xe0\x90\x90\x63\x0e\x94\x12\x7b\x75\x15\xa0\xe5\x0c\xc0\
\xd4\x9c\x9f\xe3\x20\x1a\xed\xa8\x6b\x02\xb0\xbc\x0c\x42\x3e\x5f\
\x77\xce\x1f\xed\x88\x42\x5f\x6f\x79\xce\x5d\xcf\x04\x14\x8c\xc4\
\x8f\x5c\xbc\x78\x11\xce\x9e\x3d\xcb\x12\x7f\x7a\x28\x26\x80\x73\
\x52\xa3\x90\xb4\x80\x75\x06\x91\x30\x5b\x82\x1b\x08\x08\x30\xde\
\xd1\x01\xbf\xb2\x6f\x3f\x13\xbf\xc2\x44\x57\x37\xdc\x3b\x3c\xb2\
\xfd\x3d\x8a\x3f\x50\xdc\x11\x1f\x33\x81\x62\x91\x2d\x63\x15\x54\
\x5f\xb9\x52\x09\xf2\xa5\x12\x33\x03\x4c\xde\x99\xc9\xe2\xd7\x13\
\xbf\x82\x5b\x26\xa0\x97\x34\x35\xc3\xe3\x07\x2a\xdb\x97\xad\x98\
\x58\x3d\xd0\x62\x35\xef\xd0\x4c\x5a\x6a\x33\x90\x95\x84\x9f\x62\
\x02\x9b\x9b\x5b\x50\x2a\x89\xcc\x04\x30\x6b\xae\xfd\x30\xef\xfe\
\xd9\xeb\xc0\x6f\xd6\xdf\x27\xaf\xf4\xa9\xc7\xb5\xff\xb4\xec\xf6\
\x7d\x06\x1f\xf8\x5a\xe2\x67\xcf\xa3\xab\x8b\x7d\xd0\x94\xfa\xf7\
\x31\x39\x5c\x57\x83\x26\x70\xdf\x7d\xf7\xe9\xfe\x3d\x8a\x5f\xe9\
\x09\x00\x2c\x0b\x2d\xc0\xc3\x7b\xf6\x54\x84\xb2\x0a\x63\xf2\xee\
\xba\xe5\xd5\xd5\x0a\xf1\x03\xdb\x45\x28\x41\x3e\x9b\x65\x4b\x8f\
\x01\x4d\xe8\x8b\xe2\x47\x13\x08\x48\x12\xab\xea\xe3\xd9\x56\x62\
\xfd\x62\x62\xb3\xe2\x57\x50\x4c\x60\x64\x68\xc8\xb1\x90\x5b\xb0\
\xb9\xd4\xf8\x05\xd5\x6b\x6c\x67\x05\x00\xf9\x9e\x47\x97\x00\xa1\
\x95\x22\x80\x5a\x09\x3f\xec\x45\x0f\x7a\xcb\x5b\x9a\x48\xa0\x58\
\xa8\x5c\xa6\xe9\xda\xdc\x82\x80\x4e\x89\xab\x11\x68\x02\xea\x48\
\x60\x75\xad\x3a\x6a\xa8\x27\x7e\xe4\xe8\xd1\xa3\xdb\xa2\x47\x13\
\x30\x8a\x04\xf4\xb0\x22\x7e\x05\x34\x81\x09\xcd\xaa\x01\x8e\xfa\
\xa2\xfc\x9a\x61\x76\xbf\x68\x30\x22\x2b\xb7\xc3\xe9\x00\xcf\x57\
\x3f\x27\xab\xe2\x57\x70\x3a\x12\x18\xb2\xb1\x27\x00\x47\x7f\xdc\
\x7d\xa8\xa0\x97\xc0\xad\xc7\x5f\x2c\x2e\x7a\xfa\x40\x91\x96\x30\
\x80\x5a\x23\x3f\x86\xf6\x98\xa5\xc7\x91\xbe\x96\x09\xe0\x41\x16\
\xc1\xd0\x4e\x40\x84\xe2\x17\x8a\x05\x28\x09\x95\x41\xd2\xcc\x8d\
\x19\x98\xbd\x39\xab\xbb\x9c\x07\x1a\x13\x28\x68\xda\x50\x99\x11\
\xbf\xc2\x89\x13\x27\x2c\x9b\x80\x1d\xf1\x2b\xf4\x74\x76\xc2\x6e\
\x39\x3f\x81\x82\x2e\x69\x5e\xab\x5a\x26\x20\xca\xd3\x27\x6d\x5e\
\xc0\xae\xf8\x15\x9c\x34\x81\x87\xfa\xfb\xd9\x41\x21\x66\xc1\x72\
\xe0\xaf\x3f\xfe\xf8\xf6\xad\xb1\xb8\xca\x8a\x11\x83\x1c\xfa\x7f\
\x4b\x5e\x41\xf0\x2a\xbe\x2f\x04\xaa\x17\xf6\xe3\xd2\x0d\xce\x63\
\x25\x09\x8d\x40\x84\x60\x30\xc0\x44\x5f\x01\x1b\xbd\xf8\xed\x0f\
\x2f\x13\x7f\x21\x0f\xa5\x8e\x0e\x56\xb3\xaf\x66\x4b\x3e\xd9\xc6\
\xa8\xb0\x07\xc1\x90\xb9\xbb\xab\xbb\xe2\xf8\x2a\x2b\xe2\x57\xc0\
\x39\x3e\x5e\x0f\x13\x82\x18\x7e\xe2\x14\xa5\xcb\xa0\x21\x46\x23\
\xe2\x57\xe8\xc0\x93\x7c\x82\x01\x58\x35\x88\x7a\xb0\xe0\x87\x8d\
\xf4\xda\x62\x26\x6c\x3f\x26\xbf\x4e\xca\x0e\xc1\x46\xc5\xaf\x80\
\xaf\xdb\x06\xee\xa9\x68\xb0\x58\x88\x2f\x95\xe0\xe8\xa1\x43\xf0\
\xc2\xfb\xf5\xa7\x88\x28\xfe\xe7\x3f\xf3\x19\xe8\x52\x45\x0d\xb8\
\x13\xd1\xca\xf9\x82\x28\x7e\x2c\x3a\xf2\x3a\xbe\x36\x00\x33\x73\
\x7e\x4e\xee\x8d\x57\xd7\x04\x94\xfb\x54\x89\x5f\x3d\xfa\x07\x31\
\x1a\xe0\x05\x26\x42\x5c\xf3\xaf\x67\x02\x6a\x6a\x65\xfb\x5f\x7f\
\xfd\x75\xf6\xef\xa0\x41\x5d\xbc\xda\x04\x70\x24\xd4\xcb\x07\x38\
\x21\x7e\x85\x8e\x70\x04\xc2\xc1\x20\xac\x1b\xd4\xbd\xeb\x99\x00\
\x27\x8f\xd6\x0a\x07\x26\x26\x1c\x11\xbf\x82\x13\x26\x80\x91\xe0\
\x63\xc7\x8e\xb1\x48\xef\x25\x83\xbe\x82\x18\x21\xfc\xf3\x07\x1f\
\x84\x33\x4f\x3c\x01\x11\xd5\xea\xc8\x85\x0b\x17\x2c\xcd\xff\xfd\
\x22\x7e\xf0\xf3\x6e\x40\x4b\x09\x3f\xf9\x03\x80\x82\xc5\x69\x00\
\xcf\x84\xdc\x51\x65\x02\x46\xe2\x0f\xe5\x72\x20\x89\x05\xe0\x84\
\x20\xe4\xc3\x61\x10\x4b\x22\xab\xb9\xc7\xb0\x98\x57\x0e\xc5\xd0\
\xd9\xf1\x07\x75\x46\x7e\x14\x35\x66\xfb\x41\x4e\xf4\x61\xd8\x6f\
\x04\x26\x05\x31\x21\xa6\xcd\xfa\x3b\x29\x7e\x35\x2b\xc9\x24\x7c\
\x70\x7b\xde\xf0\xf7\xea\xc4\x20\x3e\xc7\xb0\x2c\xcc\x7d\x7b\xc6\
\x61\x50\x93\x4f\x70\x0a\xcc\x37\x8c\x0c\x0e\xda\x4e\x0c\xe2\x6b\
\x87\xab\x27\xb8\xf3\x0f\xbb\x0b\x63\xad\x3f\x76\x33\xc2\x79\xfe\
\xb1\xc1\x41\xf6\x6f\x97\x26\x57\x80\xe2\xb7\x12\xfa\xfb\x49\xfc\
\xe0\x57\x03\xa8\x95\xf0\xc3\x11\xc2\x68\xc9\x47\x6d\x02\x38\x12\
\xa8\x47\x93\x7a\xe2\x57\xb0\x62\x02\x66\xc2\x7e\xfc\x70\xa9\xb3\
\xfd\xb5\x4c\x40\x0b\x9e\xcc\xb3\x14\x09\x6f\x4f\x53\x9c\x12\xbf\
\x82\x59\x13\xc0\x1d\x84\xb8\x12\xb0\x7f\x7c\x1c\x06\x7a\xdd\x11\
\xbf\x02\x7e\x58\x07\x07\x06\x6c\x9b\x00\x46\x54\xf8\x1a\xd7\x3b\
\xbe\x0c\xa3\x2e\x7c\x5f\xac\x2c\xfb\xf9\x4d\xfc\xe0\xc7\x29\x40\
\xad\x91\x3f\x97\xcd\x42\x49\x14\x59\x02\x4b\xef\x0d\xc6\xd0\x15\
\xc3\xff\x40\x20\x58\x5e\x16\xd2\x99\xf3\x2b\xe2\xc7\x24\xdf\xc6\
\xad\x9b\x4c\xfc\x15\x47\x5e\x49\x25\x08\x94\x24\x90\x82\xc1\x8a\
\xe9\x00\x1e\xb8\x11\x51\x8d\x1e\x66\xe7\xfc\x38\xa7\xc7\xfb\xc1\
\x10\x13\x23\x02\xfc\xe0\x99\xa9\x39\xcf\x63\xe5\x5c\x28\x04\x45\
\x9e\x63\x99\xdc\x90\x10\x70\x54\xfc\x48\x34\x62\x6e\x3a\x80\xb7\
\xc1\xb0\xdf\x6d\xf1\x83\x3c\xdd\xc8\xe0\xd4\x2b\x12\xb1\x35\x1d\
\xc0\xaa\x4d\xdc\x50\xa5\x17\x4d\x81\x1c\x69\x5d\xbb\x76\x8d\x89\
\xbf\x15\xe7\xfc\x5a\x7c\x15\x01\xd4\x0b\xfb\x8b\xf2\xd6\x54\x04\
\x47\xa6\x88\x89\xa5\x1f\xa3\x91\xbf\x94\x4c\xc2\xc2\x5c\xb9\x87\
\x5d\x6f\x5f\x6f\xd5\x79\xf4\xea\x48\x20\xb5\x91\x62\xd7\x52\xae\
\x67\x27\xe1\x67\x25\x12\xc8\xf3\x1c\xcc\x07\xf1\x00\x90\xf2\xf7\
\xf8\x61\x3e\x3d\x3e\x0e\x5d\x61\x77\xda\x5f\xd5\x8a\x04\xf0\xb9\
\x7e\xe8\xe8\xdd\x30\xd4\xef\xdc\x9c\xdf\x0c\x68\xf2\x43\x0d\x4c\
\x07\x14\xd0\x04\x94\xfb\xb0\x53\xe4\x03\x3e\x16\x3f\xf8\x29\x02\
\x30\x33\xe7\xe7\xe5\x82\x14\xa5\x95\x93\x51\x24\xb0\x7d\x9f\x35\
\xc2\x7e\x81\x93\xd8\xfd\x60\xe2\x0d\x47\x02\x21\x20\x18\x46\x02\
\x28\x7c\xf5\x75\xba\x02\x81\xaa\xdd\x5f\x38\xba\xb3\x0e\x41\x9a\
\x2d\xba\xdb\x7f\xa3\x89\x04\xf4\xb6\xf3\x82\x1c\x02\x97\x82\x41\
\xc8\x08\x3c\xfb\x3f\x86\xde\xa7\xc7\x27\xaa\xe6\xae\x4e\x52\x2b\
\x12\xb8\xf7\xc8\x11\x18\x1e\x68\xbc\xb1\x87\x55\x30\xf2\xc0\x5a\
\x8b\x46\xb7\x12\xe7\x72\x39\xf6\xfe\x5a\x19\xed\xd5\xf8\x59\xfc\
\xe0\x17\x03\xb0\x92\xf0\x33\x6b\x02\x66\xe6\xfc\x4a\x5f\xb8\x7a\
\x26\x20\x6a\xee\xbf\x2f\x1c\x06\xed\x47\x12\xb3\xfd\xb8\x9f\xbf\
\x56\x88\xaf\x98\x00\x5e\x0f\x5b\x6d\x55\x75\xf4\x61\x49\x3f\x0e\
\x93\x19\x10\xe7\x38\x28\x04\x83\xf0\xe8\xc4\x5e\x57\xc5\xaf\xa0\
\x35\x01\x14\xe0\xbd\x87\x8f\xc0\x68\x13\x5b\x6e\x6b\x71\xca\x04\
\xec\xe2\x77\xf1\x83\x1f\x0c\x40\x4f\xfc\xb8\x9c\x57\xc8\x17\x40\
\x02\x49\xb7\x0e\x5d\x6b\x02\x42\x20\x50\x71\x3b\xb3\x09\x3f\xb0\
\x61\x02\xb9\xfe\x5e\xe8\x15\x4b\xba\x8d\x35\xcc\xcc\xf3\xd1\x04\
\x70\x0a\x60\x28\x7e\x19\x4c\xbc\xdd\xbf\x6f\x3f\x24\x9a\xd8\xf5\
\x56\x31\x81\x8d\x4c\x06\xee\x3d\x7c\xf8\x8e\x8a\x5f\xe1\x4e\x99\
\x40\x2b\x88\x1f\xbc\x6e\x00\x46\x23\x3f\x8a\x3a\x27\x27\xdf\x50\
\xd8\xda\xc2\x14\x50\x4c\x80\x19\x81\xc0\x4e\xc5\x55\x8a\x7c\x42\
\xa2\x08\x91\xec\x56\x85\xf8\xd9\xe9\xb8\xa9\x14\x70\x25\x71\xfb\
\xe4\x5c\x35\x5a\x13\x88\x6a\x56\x10\x14\x13\xd8\x1c\x1e\x84\xb9\
\x63\x27\xa0\x0b\x43\x7d\x4d\x48\x69\x37\xd9\x07\x7a\xe2\x17\x04\
\x38\x72\xe0\x20\xc4\x34\x47\x7f\x35\x03\x34\x81\xc1\x9e\x5e\xd8\
\x35\x32\xd2\xf4\x6b\x1b\xd1\x6c\x13\x68\x15\xf1\x83\x97\x4b\x81\
\x6b\x85\xfd\xf8\x26\x2b\x6b\xd0\x2c\x0b\x6f\x50\x2a\x8a\xa1\x3f\
\x6e\xd5\xe5\xb8\x9d\xa7\x19\x11\x8b\x55\x23\x7f\x7e\x65\x85\x25\
\xfc\x70\x59\x0f\x8f\xcc\xd6\xa3\xaf\xbf\x8f\xed\xe7\x37\x5a\x62\
\x94\x02\x02\x04\x63\xe5\xe6\x98\xb3\x06\xe2\x50\x27\xf7\xd4\x49\
\xbf\x5a\x78\x49\xfc\x0a\xb8\x82\xb2\xe4\xb1\x0d\x2e\xcd\xea\x2c\
\xd4\x4a\xe2\x07\xaf\x46\x00\x66\xe6\xfc\x28\x6e\x9c\xdf\x2b\xb5\
\xfe\x46\x91\x80\x1a\x1c\xdd\xb9\x9e\x5e\xe0\x73\x3b\x35\xfa\x18\
\xf6\xf3\x52\xb9\x3e\x40\xe9\xec\x83\x23\xb5\x5e\x24\x80\x23\x0c\
\xae\x06\x54\x8d\x32\xe1\x08\x6c\x76\x75\x82\xb4\xb5\x09\x3d\xd9\
\x1c\xeb\xf4\xdb\x2d\xb7\xf9\xaa\x7a\x6e\x9a\x48\x00\xaf\x69\x54\
\x05\xe8\x45\xf1\x2b\xe0\xeb\x9e\xcd\xe5\x20\x66\x90\xd4\xbc\x13\
\x60\x24\x90\xdc\xdc\x84\x98\xcd\x25\xc2\x7a\xb4\x9a\xf8\xc1\x8b\
\x11\x40\x62\x6e\xce\x74\xc2\x8f\x65\xdf\x4d\x44\x02\x20\x8b\x3f\
\x73\xf7\x31\xd8\x54\xad\x55\x2b\x73\xfe\x60\x28\xc8\x0a\x79\xd0\
\x44\xb0\xb0\xa7\x56\x24\x50\x85\x2c\xfe\xed\xc7\xb4\xb6\x02\x47\
\x2f\x5f\x62\xcd\x38\x72\x06\xd1\x82\x3a\x12\x48\xaa\xce\xd5\x53\
\xe3\x65\xf1\x2b\xe0\xeb\xed\xb5\x48\x00\x3f\x0d\x73\x4b\x4b\x8e\
\x47\x02\xad\x28\x7e\xf0\x62\x1d\xc0\xc0\xcb\x2f\x41\x49\x35\x72\
\x96\x13\x7e\x45\x08\x04\x03\x86\x8d\x27\xd4\xe2\x8f\x2b\x67\xd6\
\xab\x50\xc4\xbf\x25\x1f\xd5\xb4\xe7\xd5\x57\xa0\x63\x3d\x59\x95\
\xf0\xc3\xc4\x22\x6e\xf9\xc4\xd1\x0d\x13\x7d\x38\x32\xf3\x42\x0d\
\x8f\xd4\x88\x3f\x86\xdd\x78\x8b\xd8\x28\xa3\xb4\x5d\x27\x10\x2c\
\x14\x20\x6c\xb1\x15\x95\x1f\xc4\xaf\x06\x4d\x78\xa0\xc9\x75\x00\
\xf5\xc0\x77\x76\xb4\x81\x8a\x41\x35\xad\x2a\x7e\xf0\x5a\x04\xd0\
\xb1\xb6\x56\x21\x7e\x60\xa1\xa6\x04\xf9\x7c\xce\xb8\x6b\x8f\x1c\
\x09\x04\x43\x21\xdd\x29\x80\x56\xfc\x08\xdf\xdf\xcf\x44\xaa\x45\
\x1b\x09\xac\xae\xd6\xe8\xfc\x5b\x43\xfc\x08\xab\x20\xc4\x8e\x3a\
\xc1\xa0\x61\x24\xa0\x87\xdf\xc4\x0f\x1e\x8e\x04\x6e\xd8\x3c\x87\
\x50\x4d\x2b\x8b\x1f\xbc\x66\x00\xbc\x4e\xd8\x86\x09\xa7\xba\xad\
\xbb\xe4\x96\x4f\xda\xc2\x19\x3d\xf1\x8f\xbf\xf7\x1e\x14\xd7\x56\
\xcb\x3f\xd3\x31\x0c\xb5\x09\x88\x46\x8d\x31\xeb\x88\x5f\x41\x31\
\x81\x52\x40\x00\x51\x27\xa7\xa0\xc5\x8f\xe2\x57\xf0\x9a\x09\x64\
\x25\x09\xbe\x9a\x4c\xc2\xd7\x1a\x38\x91\xb8\xd5\xc5\x0f\x5e\x33\
\x00\x3c\xa3\xaf\x2a\xf9\x66\xb6\x7f\x9f\x06\x23\xf1\x8b\x2b\xe5\
\x51\x01\x37\xd0\xd4\x32\x81\xdd\x63\xbb\x61\x68\x58\x67\x9d\xdb\
\xa4\xf8\x15\xd0\x04\x84\x6c\x16\xd0\x4a\x8a\x35\x4a\x83\xfd\x2c\
\x7e\x05\xaf\x98\x00\x8a\xff\x8f\x36\x36\xe0\x96\x28\xb2\x73\xfa\
\xed\x98\x40\x3b\x88\x1f\xbc\x98\x04\x14\x47\x77\x57\xff\xd0\xa2\
\x09\xd4\x13\xbf\x42\x2d\x13\xd0\xc5\xa2\xf8\xb7\xaf\x23\x95\x7f\
\x8f\xb5\xfb\x7a\x26\x80\x3f\xf7\xbb\xf8\x15\x98\x09\xd8\xac\xa9\
\x77\x02\xb5\xf8\x15\xd0\x04\xfe\xc3\x8d\x1b\xa6\x0f\xe8\xc4\x36\
\x5e\xed\x20\x7e\xf0\xe2\x32\x60\xb6\xb7\x97\x1d\xd1\x05\xda\x3e\
\x6a\xf2\x4e\x3e\x6c\xe8\x81\x82\xc2\x36\x54\x7a\x09\x1e\xb3\xe2\
\x57\xdf\x6f\x11\x73\x08\x98\xa8\xab\x75\x2c\x96\x4d\xf1\x57\x5c\
\x0a\x38\x76\x40\x27\x1e\x8d\x25\x01\xc7\xf6\xf0\xe3\xd4\xa0\xa4\
\x31\x05\x7c\x5e\xd8\x9e\xab\xd9\x67\xe6\x39\x05\xee\xc8\xcc\xe6\
\xf3\x4d\x5f\x22\xd4\x13\xbf\x02\x1e\xd1\xfd\xc2\xda\x1a\xeb\x29\
\x80\x67\xf5\x05\x75\x5e\x5b\x3c\x39\xe8\xbf\xcc\xce\xc2\xab\x06\
\x2b\x33\xad\x88\x67\x77\x03\xe2\xc1\x1c\xd8\x9b\xbf\x0a\x49\x62\
\x59\x7f\x8e\xe7\xab\x8a\x72\x2c\x8b\x5f\xfd\xb7\xa5\x12\x4b\x42\
\x82\xde\x28\xe1\x80\xf8\xb7\xaf\x63\xf2\xf0\x6d\x1c\xfd\x8f\x1e\
\x38\x78\x47\x6a\xdc\x9d\x22\x80\xa7\xf6\xba\xd4\x1c\x44\x4b\x2d\
\xf1\xeb\x81\xe7\x15\xaa\x37\x6c\x79\xb5\x6f\xbf\xdb\x78\x7a\x3b\
\xb0\xa1\x09\xe8\xd0\x88\xf8\x15\x98\x09\xa4\xd2\xd8\x58\xa0\xfc\
\x13\x5e\x00\x29\x12\x86\x2d\xd5\x56\xe0\x30\x1e\x71\x6d\x53\xfc\
\xdb\xd7\x21\x13\x70\x14\xab\xe2\x27\x76\xf0\x74\x8c\xb9\x7c\xec\
\x38\x70\x2a\x41\x1b\xe1\x84\xf8\x41\xce\x09\xe0\x48\xbf\x39\x38\
\x58\xfe\xea\xef\xab\x10\x3f\xc8\x1d\x73\x25\xa1\xb1\xb3\xf3\x24\
\xdd\x33\xca\xab\xc9\x6c\x6d\xc1\xa5\x6b\x57\x8d\x57\x23\x7c\x40\
\x31\x9f\x87\xdb\xb5\x96\x53\x1b\x84\xc4\xdf\x18\x9e\x9f\x64\xd6\
\x33\x01\xa7\xc4\x6f\x16\x9c\x43\xce\x01\x98\x4f\x1c\x1a\xd0\x4e\
\x26\x20\xe5\x72\x30\x6f\x32\x92\xb3\x02\x89\xbf\x71\x7c\x91\x65\
\x42\x13\x00\x9d\x4a\xb3\x66\x8b\x5f\x81\x4c\xc0\x06\xd9\xac\xa3\
\x26\x40\xe2\x77\x06\xdf\x74\x04\xda\xc2\xb2\x5c\xdc\x86\x1b\x10\
\x58\xb3\x0d\x71\x70\x08\x92\x47\x8e\x42\x5e\x15\xa2\x0f\x2f\x2e\
\x02\x37\x6f\xbf\xf0\xc3\x0a\x98\x01\xc8\x70\x1c\x24\x30\x9b\x5c\
\x6b\xf5\xc0\x04\x66\x72\x02\xd8\xd6\x7c\x1d\x3b\x05\xe1\x66\x26\
\x9f\xae\x0e\x40\xb1\x08\xe9\x62\x11\x12\x0d\x2e\x6f\x92\xf8\x9d\
\xc3\xb7\x6d\xc1\x8d\x68\x46\x04\xa0\x06\x1b\x73\x8c\x02\xe8\xaf\
\x1e\x58\xa0\x9d\x12\x83\x10\x89\xc0\x88\x89\xdc\x8e\x1e\x24\x7e\
\x67\x69\xb9\xd3\x81\x67\xf6\xed\x03\xa1\x6f\xa0\x69\xd7\xa3\xe9\
\x80\x0d\x6c\x4e\x07\x48\xfc\xce\xd3\x72\x06\x00\x64\x02\xfe\xc0\
\xa2\x09\x90\xf8\xdd\xa1\x25\x0d\x00\x7c\x6e\x02\xf7\x1c\xd0\x3f\
\xf3\x5f\x4d\x3b\x99\x00\x89\xdf\x3d\x5a\xd6\x00\xc0\xa7\x26\xf0\
\xc4\x47\x46\xe0\xf7\xbe\x78\x18\x3e\xf6\x73\xf5\x1f\x77\x3b\x98\
\x00\x89\xdf\x5d\x5a\xda\x00\xc0\x67\x26\x30\xb9\x3b\x06\x9f\xfe\
\x44\x79\x33\xd4\x17\x3f\x3b\xd9\xf6\x26\x40\xe2\x77\x9f\x96\x37\
\x00\x70\xd0\x04\x7a\xa3\x3c\x3c\x7e\x28\x08\x1d\xc1\xda\x19\x7b\
\xbb\x26\xf0\xa5\xcf\xed\x83\x58\xc7\xce\xdf\xb4\xb3\x09\x90\xf8\
\x9b\x43\x5b\x18\x00\x38\x64\x02\x0f\x8d\xf1\x10\x90\x8a\xf0\xb1\
\x49\xc1\x71\x13\xf8\xcc\x27\x76\xc3\xde\x5d\xd5\xbb\xe7\xda\xd1\
\x04\x48\xfc\xcd\xa3\x6d\x0c\x00\x1a\x34\x81\x0f\xef\x0d\x81\x20\
\x95\x3f\x90\xf8\xaf\x93\x26\xa0\x0e\xfd\xf5\xb0\x62\x02\x97\xdf\
\xbd\x06\x45\x13\x0d\x53\x3c\x4b\x36\x0b\x3f\x5d\x5a\x22\xf1\x37\
\x89\x96\x31\x80\x28\x27\xc2\x5d\xa5\xfa\x9b\x4e\xec\x98\xc0\xae\
\x2e\x01\x7a\x83\x95\xed\xca\x9c\x34\x01\x0c\xfd\xeb\x61\xc6\x04\
\x58\x5b\x6c\x49\x82\x0b\x37\x6e\xf8\xda\x04\x0e\x88\x22\x3c\xa6\
\xd3\x52\x9d\x70\x9e\x96\x31\x80\x13\x4b\xef\x40\xe4\xdd\x77\xe1\
\x58\xb1\x7e\x15\xa0\x55\x13\x38\x39\xac\x2f\x72\x27\x4c\x00\xb3\
\xfe\x7a\xa1\xbf\x1e\xb5\x4c\x80\x93\x1b\x9b\x88\x1c\x0f\xe9\x5c\
\xce\xf7\x26\x70\x94\x4c\xa0\x29\xb4\x84\x01\xdc\x5b\x98\x87\xcd\
\xd5\xf2\xa1\x95\xfc\xf5\xf7\x1d\x35\x01\x75\xe8\xaf\x47\x23\x26\
\x30\xd8\x17\xae\x19\xfa\xeb\xa1\x67\x02\x6a\xf1\x2b\x90\x09\x10\
\x66\xf0\xbd\x01\xec\x86\x4d\x28\xbd\x3f\x5b\xf1\x33\xa7\x4c\x40\
\x2f\xf4\xd7\xc3\xae\x09\xfc\xfa\xdf\x9b\xa8\xc8\xfa\x9b\x45\x6d\
\x02\x7a\xe2\x57\x20\x13\x20\xea\xe1\x7b\x03\x18\xbb\xfd\xae\xee\
\xcf\x9d\x30\x81\x13\xc3\xe6\x5f\x1e\xab\x26\x70\xcf\xa1\x6e\x78\
\xe0\x98\xbd\x0d\x31\xa0\x32\x01\x23\xf1\x2b\x90\x09\x10\xb5\xf0\
\xb5\x01\xdc\x9f\xbb\x09\x5b\x1b\x59\xc3\xdf\x37\x62\x02\xf7\xee\
\x0e\xb2\x25\x3f\x2b\x58\x31\x81\xa7\x7e\x79\x8f\xa5\xfb\xd6\x03\
\x4d\xe0\x17\x4f\xd6\x2f\x1b\x26\x13\x20\x8c\xf0\xad\x01\xf4\x71\
\x39\x10\x6f\xcd\xd7\xbd\x9d\x1d\x13\x40\x01\x8f\x45\xed\x2d\x43\
\x99\x31\x81\x27\x1e\xe8\x87\x83\x26\x13\x7f\xf5\xf8\xe2\x67\x26\
\xe0\xb1\x13\xf1\xba\xb7\x23\x13\x20\xf4\xf0\xad\x01\x1c\x5a\x7a\
\x0f\xc4\xa2\xb9\xdd\x73\x56\x4d\xe0\xd4\xee\xa0\x7c\x54\x87\x3d\
\xea\x99\xc0\x6f\x3e\xb6\xcb\xf6\x7d\xeb\x41\x26\x40\xd8\xc5\x97\
\x06\x80\xeb\xfd\x4a\xd6\xdf\x2c\x66\x4d\x20\x7b\x70\x0c\xfa\x22\
\x8d\xf7\x48\x31\x32\x01\x14\xff\x48\xaf\xf9\xb3\x02\xcd\x42\x26\
\x40\xd8\xc1\x77\x06\x80\x05\x3f\x5d\x73\x33\xb6\xfe\xd6\x8c\x09\
\xfc\x3c\xbf\xc8\x4e\xf5\xe5\x84\x80\xcd\x47\xb8\x83\xd6\x04\x12\
\x1d\x02\x7c\xf6\xf4\x70\xc3\xf7\x6b\x04\x99\x00\x61\x15\xdf\x19\
\xc0\xdd\xd9\x79\xc8\x6d\xda\x3f\xfb\xbd\x96\x09\x1c\x09\xa6\xa1\
\x27\xb3\xce\xfe\xef\x86\x09\xa0\xf8\xe3\x36\x96\xfd\xac\x40\x26\
\x40\x58\xc1\x57\x06\x60\x36\xf1\x57\x0f\x23\x13\x38\x25\x2e\x56\
\x7c\xef\xa4\x09\x3c\x7e\x38\x04\x9f\xfd\x88\x7b\xa3\xbf\x1a\x32\
\x01\xc2\x2c\xbe\x32\x80\x83\x1b\xb7\x4c\x27\xfe\xea\xa1\x35\x01\
\x1c\xfd\x23\xd9\xcd\xaa\xbf\x72\xca\x04\xee\xde\xdb\x09\xf1\x48\
\xf3\x1a\x79\x92\x09\x10\x66\xf0\x8d\x01\xe0\xe8\xbf\x35\xef\xec\
\xd1\xd3\x6a\x13\xd0\x8e\xfe\x6a\x9c\x30\x81\x8f\xdc\xef\x6c\xe6\
\xdf\x0c\x64\x02\x44\x3d\x7c\x63\x00\x38\xfa\xbb\x01\x9a\xc0\xcf\
\xc3\x6d\xdd\xd1\x5f\x4d\x23\x26\x70\x78\xb2\x07\xba\x13\x21\x57\
\x1e\x7f\x3d\xda\xcd\x04\x3e\x4a\x26\x60\x09\x5f\x18\x80\x1b\xa3\
\xbf\x9a\xa3\x99\x39\xe8\x80\xfa\x1f\x1c\xbb\x26\xf0\xe0\xf1\xa1\
\xc6\x1e\x60\x83\xb4\x8b\x09\xe4\x00\xe0\xa2\x9f\xcf\x4b\xb8\x03\
\xf8\xc2\x00\xdc\x1a\xfd\x91\x48\x80\x83\x50\xa9\x00\x90\xcb\xb9\
\x62\x02\xdd\x9d\x61\x98\xd8\x95\x68\xf0\x51\x36\x4e\xab\x9b\x00\
\x8a\xff\xff\x84\x42\xb0\xc8\x35\x76\x70\x6b\xbb\xd1\x78\x76\xcb\
\x65\xdc\x1e\xfd\x8f\x0c\xe0\x4b\x90\x2f\x7f\x83\x26\x10\x06\xd8\
\xaa\xf3\xb2\xa0\x09\x84\x72\x00\x92\x58\xdf\x30\xee\xf4\xe8\xaf\
\x06\x4d\x00\xe0\x03\x78\xfe\x7c\xed\x22\x2a\xc5\x04\x8e\xef\xd9\
\x03\x01\x1f\x1c\x43\xa6\x27\xfe\xee\x64\x12\x46\x96\x96\x20\x92\
\x2d\xef\x15\x59\xee\xeb\x83\xf9\x81\x01\x28\x06\x3c\xff\x91\x6f\
\x2a\x9e\x7f\x77\x0f\xa4\x6f\xbb\x7a\xff\x09\x5e\x23\x62\x87\x23\
\x01\x9c\xff\x7b\x89\x56\x8b\x04\xf4\xc4\x8f\x67\x44\x9e\xbc\x74\
\x89\xfd\xdb\xbd\xb1\xc1\xbe\xf6\xbf\xff\x3e\xfb\x59\x80\x72\x04\
\x15\x78\xda\x00\xb0\xea\xaf\xb0\x60\x9c\x9d\x6f\x94\xfd\x7d\x01\
\x00\xbd\x0f\xb8\x43\x26\x70\x27\x93\x7f\xb5\x40\x13\xf8\xa5\x93\
\xf5\xa7\x25\x5e\x37\x01\x23\xf1\x1f\x7e\x57\x7f\x8b\x78\x3c\x93\
\x21\x13\xd0\xe0\x69\x03\xd8\x5f\x58\x75\x6c\xdd\x5f\x8f\x81\x48\
\x8d\x5f\x3a\x60\x02\x87\x27\xbb\x9d\x7b\xb0\x0e\xf3\xa5\x4f\x8f\
\xc3\x2f\x9c\xaa\x1f\x9d\x78\xd5\x04\xac\x8a\x5f\x81\x4c\xa0\x12\
\x4f\x1b\x40\x6c\xb9\xf1\xaa\x3f\x23\xb6\x93\x7f\xb5\x68\xd0\x04\
\xee\xf2\x58\xf8\xaf\xe5\x5f\xfc\x83\x5d\xbe\x34\x01\xbb\xe2\x57\
\x20\x13\xd8\xc1\xb3\x06\x80\xad\xbe\x6a\x35\xfb\x68\x94\xc9\x1e\
\x93\xc9\x20\x9b\x26\x30\xdc\x1f\x85\x48\xc8\xfb\x4b\x52\x68\x02\
\xbf\x74\x77\x04\x02\xe9\x14\x04\x32\x69\x10\x72\xfa\xaf\xb9\x57\
\x4c\xc0\x8a\xf8\x2f\x5d\xba\x04\xaf\xbc\xf2\x0a\x6c\x6c\x6c\x54\
\xfd\x8e\x4c\xa0\x8c\x77\x0d\x20\xe3\xee\x19\xff\xdd\x21\x0b\x53\
\x0b\x1b\x26\x70\xf2\x70\x7f\x23\x0f\xaf\xa9\x7c\xe9\x57\xf7\xc3\
\xc7\xb1\xc7\xa0\x24\x01\x57\x28\x40\x60\x4b\xbf\x28\xea\x4e\x9b\
\x80\xd5\x91\x7f\x73\x73\x13\x56\x56\x56\xc8\x04\x6a\xe0\x59\x03\
\x70\x33\xf9\x87\x04\x2d\xb6\xfb\xb2\x6a\x02\x7b\x3d\xb0\xf6\x6f\
\x85\x6d\x13\x40\x44\xd1\x73\x26\x60\x27\xec\x3f\x71\xe2\x04\x74\
\x76\x76\x42\xa1\x50\xa8\x6b\x02\xed\x8a\x27\x0d\x00\x1b\x7e\xb8\
\x99\xfc\x63\xd9\x7f\xc9\xc6\xfd\x9b\x34\x01\x3e\x11\x65\x53\x00\
\xbf\xe1\x55\x13\xb0\x3b\xe7\x0f\x06\x83\xf0\xd0\x43\x0f\x99\x32\
\x01\xbc\xbf\x76\xc4\x93\x06\xa0\xec\xc9\x77\x8b\x86\x1a\xf2\x98\
\x30\x81\xc9\x11\xff\x89\x5f\xc1\xaa\x09\x14\xec\x18\xa9\x05\x1a\
\x4d\xf8\x99\x35\x81\x8e\x5c\xce\xd5\xe7\xe1\x55\x3c\x69\x00\xa5\
\x64\xd2\xd5\xfb\x8f\xf0\x0d\x8e\x5c\x75\x4c\x60\xb4\xb7\xd6\xfa\
\xa2\xf7\x31\x6b\x02\xd7\xfb\xfb\xe1\x1b\xe1\x30\xb8\x25\x9d\xbc\
\x24\x99\x12\x3f\xce\xf5\xdf\x79\xe7\x1d\x5d\x61\x83\x8e\x09\x5c\
\xbc\x78\xd1\xa5\x47\xec\x3f\x3c\x67\x00\x98\xfd\x6f\xa4\xe3\x4f\
\x3d\x70\xf9\x8f\x73\xe2\xe0\xc9\x1a\x26\x30\x39\x12\x73\xf4\x31\
\xdf\x09\xea\x99\xc0\xe2\xae\x5d\x30\xd3\xd7\xc7\xc4\x89\x22\xcd\
\x3b\x1c\x09\x14\x44\x11\x7e\x38\x37\x67\x6a\xe4\xdf\xda\xda\x82\
\xab\x57\xaf\x1a\x8e\xee\xa0\x32\x81\xe1\xe1\x61\xe8\xea\xea\xaa\
\xfa\x7d\xbb\x96\x08\x7b\xce\x00\x06\x0b\xee\x8e\xfe\x03\x71\x07\
\x9f\xb2\x81\x09\x8c\xf8\x3c\x02\x50\xd0\x9a\x00\x2f\xef\x7d\x50\
\xc4\xaf\x50\x98\x9d\x85\x9f\x5c\xb8\xc0\x44\xeb\x04\x78\x3f\x7f\
\xf3\xd6\x5b\xb0\x9a\xcf\x6f\xdf\x5b\xad\xb0\x1f\x47\xf6\x7a\x21\
\x3e\xc8\x26\x70\xdf\x7d\xf7\xc1\xd1\xa3\x47\x2b\x7e\x5e\x14\x04\
\xb6\x4f\xa0\x1d\xf1\x9c\x01\x74\xa4\x53\xae\xde\xff\x40\x87\xc3\
\x4f\x59\x63\x02\x3d\xf1\x20\x44\x42\xad\x73\xea\xba\xda\x04\xb8\
\x62\xb1\x4a\xfc\x3d\x37\x6e\x40\xf7\xbb\xef\xc2\x7a\x36\x4e\x91\
\xd0\x00\x00\x11\x74\x49\x44\x41\x54\x26\xc3\x44\xdb\xa8\x09\x28\
\xe2\xc7\xfb\x4b\x0d\x97\x5b\xa8\xd5\x9b\xf3\x9b\x9d\xe7\x1b\xf1\
\xd6\x5d\x77\x51\x04\xe0\x15\x8a\x99\x8c\xab\x8f\x24\xc2\xbb\x90\
\xb4\x52\x99\x40\x8f\x07\x6b\xff\x1b\x45\x31\x81\x8d\x58\x4c\x57\
\xfc\x0a\x8d\x9a\x80\x5a\xfc\xc5\x58\x0c\x36\xbb\xbb\x4d\x27\xfc\
\xec\x9a\xc0\xdb\xfb\xf7\xc3\xba\xce\x94\xa0\x5d\xf0\x94\x01\xe0\
\xd6\x5f\x37\xe7\xff\x48\x80\x73\x69\xe9\x4a\x36\x01\x37\x7a\xfe\
\x7b\x01\x34\x81\x07\x1f\xdc\xd9\xda\xac\x15\xbf\x82\x5d\x13\x50\
\x8b\x5f\xec\x88\xc0\xdc\xc9\x93\x96\xb2\xfd\x60\x60\x02\x98\x20\
\x34\x02\xc5\x7f\x7b\x70\xd0\xdb\x2f\xbc\xcb\x78\xca\x00\x06\x44\
\x77\x47\x7f\xc4\x91\x04\xa0\x11\xb9\x1c\x24\x42\xad\xdb\x90\xe2\
\x0f\x3e\xd9\x0b\x9f\xde\x27\x19\x8a\x5f\xc1\xaa\x09\x68\xc5\x7f\
\xeb\x43\xa7\x60\x60\x7d\x5d\x57\xfc\x98\xed\x7f\xf6\xd9\x67\x61\
\x76\x76\x56\xf7\xbe\xb4\x26\x80\x09\x42\x3d\x48\xfc\x65\x3c\x65\
\x00\x9d\x85\xda\x7d\xf9\x1a\xa5\x3b\xe2\xfe\xd3\x1d\xee\x6e\xcd\
\x08\x40\xe1\xbf\x3d\x28\xc1\xe7\x86\x2a\x1b\x8a\x88\x25\x11\xb2\
\xd9\x2c\x14\x55\x25\xb5\x66\x4d\xc0\x8a\xf8\x41\x16\x38\x72\xfe\
\xfc\xf9\x9a\x26\xf0\xe8\xa3\x8f\xc2\x27\x3f\xf9\x49\xe8\x53\x4d\
\x59\x14\x48\xfc\x3b\x78\xca\x00\x04\x55\xd6\xd7\x0d\x12\x11\xf7\
\x47\xe7\x48\xb8\xf5\x7b\xd2\xfd\x9b\x5f\xbb\x0b\x3e\xf9\xf0\xce\
\x19\x07\x85\x7c\x01\x16\x16\x17\x60\xfe\xf6\x3c\xe4\x0b\x3b\xef\
\x61\x3d\x13\xb0\x2a\x7e\x64\x72\x72\x12\xc6\xc6\xc6\xd8\xff\x6b\
\x99\x80\x11\x24\xfe\x4a\x3c\x65\x00\x9c\xc1\x4e\x34\xc2\x7b\xa8\
\x4d\x20\x18\x0a\x42\x28\x14\x82\x52\xa9\x04\x0b\x0b\x0b\xa6\x4c\
\xc0\x8e\xf8\x15\xb0\xc6\xdf\x8e\x09\x90\xf8\xab\xf1\x94\x01\xe4\
\x36\xdc\xcd\x01\x38\xbe\x04\xd8\xe6\x28\x26\x20\xf0\x02\x0c\x0e\
\x0e\x9a\x36\x81\x46\xc4\xaf\x60\xd5\x04\x48\xfc\xfa\x78\x4a\x11\
\x6e\x6e\x00\x22\xdc\x01\x4d\xe0\xf4\xbd\xfd\xa6\x4d\x60\x33\x97\
\xb3\x94\xf0\xbb\x7e\xfd\xba\xe1\xe3\x56\x9b\x40\x2d\x03\x20\xf1\
\x1b\x43\x2d\x52\x1d\x66\x7c\xd4\x5f\xdb\x80\x1b\xe5\x67\xef\xac\
\xc3\xeb\x57\xca\x9b\xb7\x14\x13\x58\x5c\x5c\x84\x7c\x3e\xcf\x4c\
\x60\x6c\xf7\xd8\xf6\x15\x50\xf4\xcf\x9f\x3b\xc7\xfe\x6f\x66\xe4\
\xc7\xf2\x5e\x04\xd7\xf3\x51\xec\x7a\x28\x5b\x7e\x95\xe4\xa0\x16\
\x12\x7f\x6d\x3c\x13\x01\xe0\x1e\x80\x56\x20\x97\x77\x71\x99\xd1\
\x63\x7c\xf7\xe5\xdb\xf0\xeb\xbf\x7f\x1e\x52\x9b\x3b\xd9\x7f\x6d\
\x24\xa0\x87\xd9\xb0\x5f\x11\x3d\x8e\xee\x18\xe6\x1b\xa1\x4e\x0c\
\xaa\x21\xf1\xd7\xc7\x33\x06\x10\xb2\xda\xa0\xc3\xa3\xdc\x5e\x6e\
\x0d\x23\xab\xc7\x37\x7f\xf0\x1e\xfc\xcb\xaf\x9c\xd3\xbd\x15\x9a\
\xc0\xc8\xf0\x08\x8c\xef\x19\xaf\xfa\x9d\x95\x39\x3f\x8a\xda\xac\
\x09\x68\x21\xf1\x9b\x83\xa6\x00\x84\x65\xbe\xf2\xcd\xcb\xf0\xef\
\xfe\xc7\x6b\xdb\x7f\x16\x8f\xd7\x3f\x67\x00\x2c\x8a\x5f\x41\x2f\
\xd1\x67\x34\x1d\x50\x20\xf1\x9b\x87\xd2\xe2\x84\x25\xfe\xed\x1f\
\x5f\x81\x3f\xfd\xc1\x22\xc4\x63\xe5\x2d\xcf\x2b\xab\x2b\x90\x4e\
\xd7\x3e\x69\x08\x54\xe2\xe7\x78\x1e\x0e\xbc\xff\x7e\xc5\xef\x94\
\xde\x7d\x46\x68\x23\x81\x5a\x89\x41\x12\xbf\x35\xc8\x00\x08\xd3\
\xa0\xf8\x9f\x7d\xb9\x7c\x52\x53\x5f\x5f\xbf\x69\x13\x50\xc4\x2f\
\x86\x42\xac\xfd\x56\x40\x53\x13\x80\xa2\xc6\xba\xfd\x5a\x21\xbe\
\xda\x04\xb0\xc4\x57\x0f\x12\xbf\x75\xda\x6a\x0a\x50\x2c\x49\xae\
\x5b\x1e\xe6\x00\x5a\x71\x25\x40\x2d\x7e\x05\x34\x01\x24\x9d\xc9\
\x40\x26\x93\xd6\x9d\x0a\xa8\xc5\x8f\x44\x74\x5a\x6f\x29\x0d\x3a\
\xea\x85\xf8\x68\x02\x7a\xc9\x3e\x20\xf1\xdb\xc6\x33\x11\x40\x92\
\x77\xbf\x86\x7e\x2d\xe7\x7e\x9d\x41\xb6\x05\x57\x01\xfe\xd9\x7f\
\xfa\x5b\x78\xe6\x27\xfa\x27\x34\xa3\x09\x0c\x0d\x0e\x41\x4f\x6f\
\x6f\xd5\xef\xb4\xe2\x47\xb2\xe1\xea\xf7\x19\xbb\xf4\xd8\x4d\xf6\
\x01\x89\xbf\x21\x3c\x63\x00\x2b\x52\x6b\x6c\xa2\x59\x68\xb1\x55\
\x80\xff\xfe\xed\x2b\xf0\xbf\x9e\xbb\xc2\xd6\xf6\x71\xd3\x8f\x1e\
\x91\x48\x04\x42\xc1\xca\x3e\x08\x7a\xe2\x47\x70\xef\x7d\x51\xe7\
\x0c\x7f\xbb\x19\x7f\x12\x7f\x63\xb4\x55\x0e\x60\x76\xdd\xfd\xd1\
\x79\x3d\xd5\x3a\xdd\x65\x71\x9d\xff\xbf\xfe\xe5\x0d\xe0\x79\x9e\
\x15\xf6\xd4\x32\x01\x35\x46\xe2\x57\x78\xfb\xc0\x01\xdd\x9f\x5b\
\x35\x01\x12\x7f\xe3\x78\xca\x00\x3a\x3a\x9b\xd0\x4b\x8f\x73\x77\
\x47\x60\xab\xd4\x01\x9c\x7d\x63\x19\xbe\xfc\xc7\x57\xd8\xc8\x3e\
\x34\x34\x64\xda\x04\xea\x89\x1f\x59\xee\xed\x65\xe2\xd5\x43\x6b\
\x02\x46\x90\xf8\x9d\xc1\x53\x49\x40\xae\x09\x7d\xd9\x4a\xbc\xb0\
\xdd\xdc\xd2\x0d\xf8\x60\x00\xe6\x57\xb3\xbe\x6e\x0c\x7a\x75\x36\
\xcd\xc4\xaf\xa0\x98\x00\xab\xef\xcf\xe7\x21\xb5\x91\x82\xee\xee\
\xea\x93\x8f\xcd\x88\x5f\x41\x11\xaf\x5e\x3d\x00\x9a\x00\x26\x06\
\x29\xdb\xef\x3e\x9e\x8a\x00\x4a\x1d\xee\xb7\xd3\xce\x95\xdc\x8b\
\x00\x78\x41\x80\x0c\x1f\x86\xf9\x15\xff\x6e\x6b\xde\xc8\x03\xfc\
\xe3\xaf\x5c\xa9\x28\xef\x05\x95\x09\x44\xc2\x61\x08\xe8\x18\xb5\
\x15\xf1\x2b\xa0\x88\x8d\x22\x01\xac\xef\xa7\x66\x1e\xee\xe3\x29\
\x03\xd8\x0c\xbb\x7f\xa2\x4e\xba\xe0\x8e\x01\xf0\x02\x0f\x5b\xc1\
\x72\x22\xf3\xfa\x6d\xff\x4e\x03\xfe\xee\x0f\x79\xb8\x72\xe4\x04\
\x13\xb4\x96\xb2\x09\x0c\x57\x2d\xf7\xd9\x11\xbf\x42\x2d\x13\xd0\
\x42\xe2\x77\x1e\x4f\x19\xc0\x6a\xc0\xfd\x08\x60\x2e\xe5\x7c\x22\
\x90\xe7\x39\xd8\x0a\x46\xa0\x24\x95\xcd\xe5\xfa\xbc\xfb\xbd\x0d\
\xdd\xe0\x77\xcf\x71\xf0\xd6\x1a\x30\x21\x33\x41\xeb\x98\x80\x96\
\x46\xc4\xaf\x60\xc6\x04\x48\xfc\xee\xe0\x29\x03\xb8\x09\xee\x47\
\x00\xeb\xd9\x12\x2a\xd6\xb1\xfb\xc3\x9c\x62\x5e\x25\x7e\x64\x2d\
\x5d\x60\x79\x00\x3f\xf1\xfc\x2c\x07\x5f\xbb\xb2\xf3\x1c\xcc\x98\
\x80\x13\xe2\x57\x40\x71\x63\x7f\x7e\x6d\x9d\x00\x7e\xff\xda\xf1\
\xe3\x24\x7e\x97\xf0\x5c\x25\x60\xb4\x37\x0e\x9b\xab\xf5\x6b\xcb\
\x1b\x21\x0f\x02\x84\xc0\x99\xf6\xe0\x52\x28\x0c\x05\x1d\x1f\xbd\
\x3e\xbf\xe9\x9b\x44\xe0\x6c\x06\xe0\x0b\xaf\x56\x4f\x8d\x14\x13\
\x18\x7d\xe3\x0d\x08\x68\xce\x6b\xc0\xbe\xfd\xd8\xba\xdb\x09\xf1\
\x2b\xe0\xea\x00\x7e\xb1\x72\xe1\x62\x91\x1d\xd6\x91\x8e\xf9\xff\
\x98\x35\x2f\xe3\x39\x03\x28\x26\x3a\x01\x5c\x36\x80\xa5\x2c\xc0\
\x2e\x07\x3e\xb7\x7c\x30\x08\x19\x83\x97\xf0\xf5\x6b\xeb\xf0\xf0\
\xd1\xea\xea\x38\x2f\xf2\x85\x57\x38\x48\x1a\xf4\x63\x45\x81\xcf\
\x3e\xf0\x00\x44\xd7\xd7\x21\xb6\xba\xca\x7e\x96\xe9\xed\x65\x87\
\x76\xb8\x05\x89\xbe\x79\x78\xce\x00\xe6\xc2\xbd\xd0\x0f\x73\xae\
\x5e\xe3\xdd\x95\x22\xec\x1a\xe5\x00\x1a\x38\xd0\x12\x93\x7e\x19\
\xde\xd8\x45\x70\x0a\xb0\x9e\x2e\x40\x77\x5c\xbf\x53\x8d\x57\xf8\
\xfa\x15\x0e\x5e\x5e\xa8\x9f\x18\x45\xc1\xbb\x29\x7a\xe2\xce\xe0\
\xb9\x4a\x40\xcc\x03\x84\xa3\xee\x8b\x26\xcf\xd9\xf7\x3e\x9c\xf7\
\x67\x83\xf5\xc3\x7b\x8c\x02\xbc\x0c\x86\xfe\xbf\xff\x66\xeb\x1e\
\x64\x42\xd4\xc7\x93\xa5\xc0\x5c\x8f\xfb\xa1\xf3\x52\x23\x39\xba\
\x60\x08\x44\xa9\xbe\x70\xbc\x6e\x00\xb5\x42\x7f\xa2\x3d\xf0\xa4\
\x01\xdc\x8c\xb9\x7f\x54\x33\x4e\x03\xec\xac\x06\x60\xb1\xcf\x26\
\x67\x2e\x42\xc1\xd5\x80\xcb\x37\xdc\x3d\xed\xd8\x2e\x2f\x2f\x80\
\xa9\xd0\x9f\x68\x6d\xbc\x69\x00\x4d\x9a\x06\xa4\x4a\xd6\xa6\x01\
\xe5\xd0\xdf\xda\xae\xc5\x97\x2f\xad\x5a\x7c\x54\xcd\xe1\xb7\x5e\
\xa5\x5e\x30\x84\x87\x77\x03\x16\x86\x86\x4d\xdc\xaa\x31\x2e\x2f\
\x59\xdc\x13\x10\x0c\x9a\x0a\xfd\xd5\x60\x51\x90\xd7\x6a\x02\xbe\
\x79\x9d\x83\x1b\xee\x2e\xb4\x10\x3e\xc1\xb3\x06\x70\x25\x34\x08\
\x42\xc0\xdd\x10\x35\x5b\x94\x20\xcf\x9b\x8b\x34\xb0\xda\x6f\x93\
\xb3\xb7\x76\xe8\xb5\x28\x80\x12\x7f\x84\x82\x67\x0d\x60\x53\x12\
\x20\x34\x50\xbd\x19\xc4\x69\xde\x5e\x31\x57\x10\x54\x0a\xda\x2f\
\x1c\xc0\x64\x20\x2e\x09\x7a\x01\x1a\xfd\x09\x35\x9e\x9e\x08\x5e\
\xed\xdc\xe5\xfa\x35\xb0\x34\xb8\x5e\x14\xc0\x6a\xfd\x1b\x2c\x99\
\xf8\xf3\x9f\xb8\x5b\xdb\x60\x96\xaf\xbd\x4d\xa3\x3f\xb1\x83\xa7\
\x0d\x00\xdb\x84\x75\x8c\xf4\xbb\x7e\x9d\x7a\x51\x40\x23\xa3\xbf\
\x02\xe6\x02\xde\xbf\xc3\xbb\x04\x2f\xae\x01\xdb\xec\x43\x10\x0a\
\x9e\x4f\x05\x37\x2b\x0a\x48\x81\xbe\xc8\x31\xf3\xdf\xe8\xe8\xaf\
\xf0\xec\xff\xbb\x6d\xee\x86\x2e\xf1\x8d\xf7\x68\xf4\x27\x2a\xf1\
\xbc\x01\x60\x14\x10\x1a\x1f\x75\xfd\x3a\x6c\x45\x40\xa7\x5d\x18\
\x17\x70\x6e\x39\x12\x57\x03\xee\x64\x42\xf0\x7b\x37\xc9\x00\x88\
\x4a\x7c\xb1\x18\x7c\x31\x32\xd2\x94\x15\x81\x5b\xb9\xea\x91\x3e\
\x2b\x38\x5b\x8f\xf0\xc2\x1b\x4b\x77\x24\x21\x88\xe1\x3f\x25\xff\
\x08\x2d\xbe\x30\x00\x5c\x11\x28\xec\x99\x70\xfd\x3a\x58\x1d\x58\
\x12\x76\x4c\x00\x37\xfc\x58\x5d\xf7\xaf\x07\x9e\x1b\xf0\xec\xdf\
\x36\x7f\x2a\xf0\xbd\x59\x1a\xfd\x89\x6a\x7c\x53\x0e\xf6\x66\x60\
\x80\xf5\x0a\x70\x9b\xb7\x96\xa5\xed\xa9\x80\xa4\xd3\xbf\xde\x09\
\x2e\xcf\xa4\x9a\x3e\x15\x78\x69\xa1\xa9\x97\x23\x7c\x82\xaf\xea\
\x41\xdf\x19\xd8\xe7\xfa\x54\x00\x13\x82\x6b\x62\x39\x0a\x28\x34\
\xb0\x63\xb0\x1e\xcd\x9e\x0a\x5c\x5c\xa3\x08\x80\xa8\xc6\x57\x06\
\x80\x09\x41\x69\x6c\xb7\xeb\xd7\x79\x73\xa1\x08\x05\x3e\xa8\xdb\
\xe9\xc7\x29\x70\x2a\xf0\x3f\x5f\x30\xee\x7b\xef\x24\xb8\xed\x97\
\x76\xfd\x11\x7a\xf8\x6e\x47\xc8\xcf\x82\x23\x10\x1b\x70\xbf\x31\
\xc5\xdb\xf9\x0e\x28\x06\xdd\xdd\x90\x84\xab\x02\x5f\x3b\xef\xfe\
\x49\x42\x94\xfc\x23\x8c\xf0\xe5\x96\xb0\x37\x7a\xdd\x9f\x0a\x6c\
\x85\xa2\xf0\x62\x70\xdc\xd5\x6b\x20\x7f\xf6\x8e\xc8\xca\x73\xdd\
\x64\x36\x43\xe1\x3f\xa1\x8f\x2f\x0d\x00\x57\x05\x16\x26\x8f\xba\
\x7a\x8d\x52\x40\x80\xeb\xc5\x08\x5c\x8e\xbb\x5b\x88\x74\x43\xec\
\x80\xdf\x39\xc7\xb1\x65\x3a\xd7\xae\x41\x11\x00\x61\x80\x6f\x37\
\x85\x63\xcf\x80\xd2\xe4\x5e\xd7\xee\x7f\x23\x58\x6e\x51\xfe\x52\
\xbe\x07\xd6\x62\x2e\x36\xc0\x2c\x09\x6c\x7e\x8e\x07\x72\x6c\x78\
\x63\xbf\x10\xd1\x46\xf8\xba\x2b\x04\x2e\x0d\xba\xb5\x57\x40\xdd\
\x33\xf0\xcf\x0b\xbb\x21\xdd\xd1\xe9\xca\x75\x14\x98\x09\xfc\x80\
\x4c\x80\x68\x2e\xbe\x6f\x0b\xf3\x6a\x62\xb2\x29\xf5\x01\xdf\x91\
\x76\x41\x3e\xec\x6e\x9f\x7f\xdc\xa8\x83\x26\x40\x10\xcd\xa2\x25\
\x3e\x6d\xe7\x07\x0e\xb9\x7e\xb4\x38\x86\xea\xdf\xe2\xf6\x3a\x6e\
\x02\x71\xbe\xf2\xa8\x32\x34\x81\xdf\xd2\x39\xa4\xa3\x11\x1e\x1e\
\xb2\xdf\xfe\x9c\x68\x6d\x5a\xc2\x00\x30\x29\x78\x61\xe4\xa8\xa3\
\x26\x10\x17\xab\x97\xe7\xd0\x04\x9e\xe7\xf7\x80\xe4\xe0\xd1\x62\
\x7b\x84\xad\xaa\x9f\xe1\xae\x3d\xa7\x4d\x80\x20\xf4\x68\x99\x78\
\x13\x4d\x60\x76\x78\xbf\x63\xcb\x83\x11\x1d\x03\x40\x16\xc4\x10\
\xfc\x28\x32\xe9\x98\x09\xf4\x72\xfa\x93\x7e\x27\x4d\xe0\xe1\x21\
\x47\xee\x86\x68\x41\x5a\x6a\xc2\x89\x2b\x03\xb8\x3c\xe8\x84\x09\
\x08\x79\xe3\xd2\x39\x5c\x1e\x74\xca\x04\x3a\xc1\xf8\x3a\x4e\x9a\
\xc0\x3d\x3d\x8e\xdc\x0d\xd1\x62\xb4\x5c\xc6\xc9\x31\x13\xc8\xd4\
\x5e\x3c\x57\x4c\xa0\xd1\x9c\x40\x7f\xb1\xf6\x51\xe2\x4e\x99\x00\
\xe5\x01\x08\x3d\x5a\x32\xe5\x8c\x26\xf0\xc1\xbe\x63\x0d\xe5\x04\
\xb6\x36\xb2\x10\xe5\xc4\x9a\xb7\x41\x13\x68\x34\x31\x18\xc9\x6e\
\x56\x25\x02\xb5\xa0\x09\x9c\x7e\xae\xb1\x25\xc2\x47\x68\x1a\x40\
\xe8\xd0\xb2\x6b\x4e\xb8\x71\xa8\xd1\xc4\xe0\xfe\x42\xfd\x2d\xbb\
\x4e\xac\x0e\x9c\x08\x6c\xd4\xbd\x8d\xb2\x44\x68\xd7\x04\x1e\x1b\
\x93\xa0\xcb\xb9\x93\xbc\x89\x16\xa1\xa5\x17\x9d\x95\xd5\x01\xbb\
\x75\x02\x89\x94\xb9\xfa\x5c\x34\x81\x33\xd2\x7e\xdb\x15\x83\x7b\
\x44\x73\xc7\x87\xa1\x09\x9c\xf8\x36\x6f\xbb\x6c\xf8\x13\x63\x34\
\x0d\x20\x2a\x69\xf9\xaa\x13\x34\x81\x57\xfa\x8f\xd8\xaa\x18\xcc\
\x2c\xad\xd7\x9d\x06\xa8\xc1\x8a\xc1\x9b\x71\xeb\xe7\x1a\xc6\xb7\
\x36\x60\x48\x30\xb7\x5f\x57\x29\x1b\x7e\xde\x46\x87\x9f\xdf\x3e\
\x46\x06\x40\x54\xd2\x36\x65\x67\x58\x31\xc8\xef\x1d\xb3\xfc\x77\
\x77\x67\xe7\x2d\xdd\xfe\x7b\xf9\x21\xb6\x81\xc8\xea\x0a\xc1\x43\
\xfc\x8a\xe9\xdb\xa2\x09\x7c\xf6\x2c\x07\x7f\x60\xf1\x84\x9f\xb1\
\x18\x25\x03\x89\x4a\xda\xaa\xee\x14\x7b\x09\x64\xf7\x5b\xab\x15\
\xe0\x96\x96\x2c\x5f\x07\x37\x10\xe1\x0a\x81\x95\x7e\x02\xfd\x5b\
\x6b\x75\x93\x81\x5a\xf0\x88\xaf\xcf\x9d\xe5\x2c\xe5\x05\xfe\xfd\
\x29\x32\x00\x62\x87\xb6\x2b\x3c\xbf\xc2\xf7\xb2\x65\x42\xb3\xc9\
\xc1\xdc\x66\x01\xee\xcf\xdd\xb4\x7c\x1d\x5c\x21\xf8\xbf\xc2\x7e\
\xd3\x9b\x88\xb8\x52\x09\x1e\x13\xac\x45\x1b\x20\x37\xfb\x7c\xf4\
\x39\xf3\x79\x81\xbb\x7b\x00\x3e\xbd\x8f\x4c\x80\x28\xd3\x96\x3b\
\x4f\x70\x99\x90\xad\x10\x98\xcc\x0b\x88\xb7\xe6\x2d\xe5\x02\x14\
\x30\x39\xf8\xbf\xc5\x3d\x70\x3d\x6e\xee\xa4\xe3\x9e\xcc\x3a\x4c\
\x06\xac\x9f\x24\x8c\xfb\xfd\xd1\x04\xbe\x7e\xc5\x5c\x64\x83\x51\
\x00\xad\x08\x10\xd0\xae\x06\x00\x72\x72\x10\xf3\x02\xd8\x53\xa0\
\xde\x94\x40\x2c\x4a\x70\x72\xf5\x3d\xdb\xd7\x7a\x21\xdf\x0f\x2f\
\x44\xf7\x9b\x9a\x12\xfc\xbc\x68\x3d\xda\x50\xc0\xc6\x22\x66\xa6\
\x04\x9d\x41\x80\x3f\x7c\x90\xa2\x00\x02\x40\x08\x7d\xfc\xe3\x5f\
\x6e\xe7\xd7\x61\x81\x8f\x41\xbe\xb7\x1f\x86\x0b\x49\x28\xe6\x8a\
\x86\xb7\x2b\x6c\x66\xa1\xbb\xa7\x03\x96\xb9\x0e\x5b\xd7\x59\x2b\
\x05\xe0\x9a\xd0\x03\xbb\xc3\x45\xe8\x28\x18\x8f\xf2\x82\x58\x84\
\x3d\x11\x11\xae\x94\x12\xb6\xae\x73\x6d\x83\x83\x33\xd7\x38\x38\
\xd8\x09\x70\xa0\xcb\xf8\x76\xf8\x3b\x6c\x16\x4a\xdd\x82\xdb\x9b\
\xb6\x37\x00\x04\xcf\xfe\xbb\x19\x1f\x82\x3d\x71\x09\xc4\xa4\xf1\
\x9a\x7c\x78\x63\x8d\x99\x85\xdd\xb3\x02\xf3\x12\x0f\x97\x4b\x9d\
\xc0\x75\x84\x61\xb8\x98\x06\x4e\xd2\x1f\x85\x63\x85\x2d\x76\x9b\
\x39\xd1\x5e\x71\x51\x4e\x04\xf8\xcb\x19\x0e\x36\xf2\x00\xf7\x0d\
\x00\x84\x0d\x8e\x37\x78\x64\x18\xe0\xaf\xe7\x38\x58\xb4\x3e\xeb\
\x20\x5a\x04\xea\x3e\xa1\xe2\xa7\xe1\xdd\xb0\x7c\xf0\x6e\xc3\x04\
\x21\x4e\x05\x0e\xce\xbf\x63\x2b\x1f\xa0\xe6\x5c\xbe\x0b\xbe\x11\
\x3a\x54\x33\x41\x78\x72\xf3\x96\xad\x7c\x80\x9a\xaf\x5d\x29\x27\
\x08\x8d\x6a\x06\x70\x2a\xf0\x9d\x5f\x2c\x51\x3e\xa0\x8d\x21\x03\
\xd0\x80\x09\xc2\x57\x87\x8f\x19\x1e\x48\x8a\x7b\x04\x1a\xc9\x07\
\x28\x28\x09\xc2\x97\x62\x13\xba\xb9\x01\x5c\x15\xf8\x58\xf6\xba\
\xe5\xa5\x41\x2d\x98\x20\xc4\x9a\x01\xa3\xdc\x00\x33\x81\x5f\x20\
\x13\x68\x57\x68\x0a\x60\xc0\xad\x40\x27\x14\xfa\xfb\x61\x44\xca\
\x40\x61\xab\xb2\x4a\x0f\xf3\x01\x7b\x43\x39\xb8\x19\x6e\x7c\x8f\
\xed\x52\x29\xc4\x72\x03\xc3\x61\x89\x85\xfe\x6a\x70\x8a\x70\x48\
\x48\xc3\xbb\x7c\x17\x9b\x3e\x34\x82\x92\x1b\x88\x08\x00\xa7\x34\
\x8b\x1f\x83\x1d\x00\x1f\x1b\x95\xe0\xdb\x33\x1c\x9b\x3e\x10\xed\
\x03\x19\x40\x0d\x70\xae\x3f\x1b\x1d\x80\xc1\xae\x10\x04\x52\x49\
\x90\x4a\x3b\xb7\x2d\xa6\x37\x1d\x33\x01\x14\x37\x26\xfd\xd6\xc2\
\x9d\x30\x2a\x64\x21\x50\xdc\x19\xaa\x31\x29\xe8\x94\x09\xa0\xb8\
\x7f\x34\xc7\xb1\x29\xc1\x81\x2e\x09\xf6\xa8\xb6\x48\x90\x09\xb4\
\x27\x64\x00\x26\xc0\x95\x82\x64\xef\x30\x8c\xc4\xb9\x8a\x24\xa1\
\x93\x26\x00\xf2\x4a\xc1\x05\xa9\x87\x25\x00\x07\xa4\x2d\xe0\x4b\
\x65\xc7\x41\x13\x38\xcc\x25\x21\x19\x8c\xb3\xdb\x34\x0a\x26\xfd\
\xbe\x71\x9d\x63\xab\x00\xf7\xf4\xc2\x76\xf8\xaf\x98\xc0\x5f\xcf\
\x73\x74\x94\x58\x9b\x40\x06\x60\x12\x3c\x27\x50\x99\x16\x8c\xf2\
\x39\x36\x0d\x00\xc5\x04\x0a\x2b\xb0\x9a\xe8\x77\xec\x2c\x41\xcc\
\xfe\xe3\xb4\xa0\x27\xc2\x41\xa2\x98\x65\x53\x01\x34\x83\xbd\xe2\
\x3a\xac\x87\x12\x8e\x98\x00\xc8\x07\x86\xa2\x11\xe0\x88\x8f\x46\
\x80\xab\x05\x68\x02\x9f\xd9\x27\xd1\xea\x40\x9b\x40\x06\x60\x11\
\x36\x2d\xe8\xe8\x83\x68\x6f\x02\x7a\x20\xcb\xf2\x03\x58\x3f\xb0\
\xbb\xb0\x06\x10\x4f\xc0\x06\x38\x73\x9e\x20\x86\xfb\xd7\xc4\x38\
\x5c\x0d\xf4\x6e\xe7\x07\xd0\x08\x26\x0b\xab\xd0\xd3\xc1\xc3\x75\
\x31\xea\xc8\x75\x50\xfc\x2f\x2f\x94\xf3\x03\x43\x1d\xe5\x52\x61\
\x34\x82\xa7\x0e\x4a\x54\x27\xd0\x06\x90\x01\xd8\x64\x8d\x0b\xb3\
\xfc\x00\x16\x07\xc5\xb2\x29\xc8\xa6\xf3\x90\x48\x2e\xc1\x40\x22\
\xc4\xa6\x0c\x4e\xa1\xe4\x07\x6e\x86\xba\x61\x28\x2c\xb2\x22\xa2\
\x9e\x7c\x1a\x0e\x85\xb2\xf0\x3e\x17\x6f\x38\x2f\xa0\x80\x46\x80\
\xfb\x0a\xf0\x9c\xc2\xee\x50\xd9\x08\x3e\x31\x06\x30\x1e\x2f\x1b\
\x04\xe5\x05\x5a\x13\x32\x80\x06\xc1\xca\xc0\x5b\x9d\x23\x2c\x51\
\x18\xde\x4a\x43\x69\x71\x05\xf6\xf1\x19\x58\x89\x76\x3b\x7a\xbc\
\x78\x46\x12\x58\x11\x91\x62\x04\x5d\x9b\x49\x96\x17\xc8\x85\x22\
\x6c\x25\xc1\x29\x70\xee\xaf\x36\x82\x4f\x4d\x4a\xf0\xcb\x13\x12\
\x6b\x46\x42\x87\x8c\xb6\x1e\x64\x00\x0e\x81\xa3\xbe\x62\x04\xc1\
\xd4\x3a\xf4\x2e\xde\x84\xae\x2e\xfb\xa5\xc3\x46\xa8\x8d\x60\x24\
\x50\x80\x43\x99\xdb\xac\x74\x18\xeb\x17\x9c\x8a\x06\x40\x63\x04\
\xb8\x5a\xf0\x7b\xa7\x24\x66\x08\xe7\x96\x29\x1a\x68\x25\xb8\xf8\
\xd3\x4f\xd3\xae\x10\x17\x98\x94\x36\x60\x78\xa5\xbc\xb1\xe7\x9d\
\x81\x7d\xac\x47\xa1\x1b\x60\x27\xa1\x0f\x09\x6b\x30\x9c\x5b\x87\
\xab\xe1\x41\xd6\x8b\xc0\x0d\xd0\x04\x3e\x3d\x29\xb1\xad\xc4\xd8\
\x87\x00\x1b\x95\x12\xfe\x07\x0d\xe0\x3c\x00\x1c\xa7\xf7\xd2\x1d\
\xfa\xb8\x1c\x1c\xdc\xb8\x05\x12\x2f\xc0\x9b\xf1\xdd\x6c\x17\xa2\
\x1b\x60\xc5\x20\x36\x17\xc5\xc2\xa5\x4b\xd0\x0d\x97\x0b\xee\x9c\
\x97\x88\x4b\x86\xd8\x5b\xf0\xf1\xdd\x00\x5f\xbd\x52\xce\x0f\x10\
\xbe\xe5\x02\x1a\xc0\x8b\x00\xf0\x28\xbd\x87\xee\x82\xfb\x07\xb0\
\xcb\x70\x40\x2a\xb2\xce\x44\x6e\x72\x24\x98\x66\x27\x0e\xcd\x95\
\x3a\x58\x63\x12\xb7\xc0\xf6\x62\x18\x19\x5c\x5c\xe5\x58\x8e\x80\
\xf0\x1d\x67\x71\x41\x99\x0c\xa0\x09\xe0\xc8\x8f\xc7\x99\x37\x03\
\xb7\x46\x7f\x2d\x38\xfa\xbf\xbc\xe0\x91\x17\x98\xb0\xc3\x8b\x98\
\x35\xfa\x80\x5e\x3a\x82\x68\x4b\x3e\x40\x03\x38\x4f\xef\x3d\x41\
\xb4\x25\xe7\x39\x49\x92\x20\x31\x3d\xbd\x8e\xf9\x1d\xfa\x0c\x10\
\x44\xdb\x90\x4c\x4d\x4d\x75\x2b\x0b\xc7\xcf\xd0\xfb\x4e\x10\x6d\
\x05\xd3\x3c\x19\x00\x41\xb4\x27\x4c\xf3\x6c\x0a\x80\xd0\x34\x80\
\x20\xda\x06\x16\xfe\x83\xa6\x25\x18\x45\x01\x04\xd1\x1e\x6c\x6b\
\x5d\x6d\x00\x67\xe8\xcd\x27\x88\xb6\x60\x5b\xeb\xdb\x53\x00\x28\
\x4f\x03\xa8\x2c\x98\x20\x5a\x9b\xb3\xa9\xa9\xa9\xd3\xca\x33\xd4\
\x6e\x1f\xfb\xcf\xf4\xe6\x13\x44\x4b\x53\x11\xe9\x57\x44\x00\x50\
\x8e\x02\xb0\x32\x70\x9c\x3e\x03\x04\xd1\x72\xcc\xa4\xa6\xa6\x26\
\xd4\x4f\x4a\x6f\x03\xf9\x53\xf4\xbe\x13\x44\x4b\x52\xa5\xed\x2a\
\x03\x48\x4d\x4d\xe1\xe6\xa0\xb3\xf4\xfe\x13\x44\x4b\x71\x56\xd6\
\x76\x05\x46\x2d\x64\xd0\x29\x92\xf4\xfe\x13\x44\x4b\x90\x34\x8a\
\xec\x75\x0d\x20\x35\x35\x85\x79\x00\x6a\x15\x46\x10\xad\xc1\x97\
\x65\x4d\x57\x51\x95\x04\x54\x93\x98\x9e\xc6\x82\x81\x27\xe8\x43\
\x40\x10\xbe\xe5\xaf\x52\x53\x53\x4f\x1a\x3d\xf8\x7a\x5d\x24\x31\
\x6c\x98\xa1\xf7\x9e\x20\x7c\xc9\x4c\xbd\xa4\x7e\x4d\x03\x48\x4d\
\x4d\xe1\xfe\x80\x27\x29\x1f\x40\x10\xbe\x03\x35\xfb\xa4\xac\x61\
\x43\xea\xf6\x91\x4e\x4d\x4d\x9d\x97\x4d\x80\x20\x08\xff\xf0\xa4\
\xac\xdd\x9a\x98\x6a\x24\x2f\x2f\x1f\x7c\x9e\xde\x7c\x82\xf0\x05\
\x9f\xd7\x5b\xf2\xd3\xc3\xf4\x49\x12\xa9\xa9\xa9\x33\x64\x02\x04\
\xe1\x79\x3e\x2f\x6b\xd5\x14\x35\x57\x01\xf4\x48\x4c\x4f\x9f\x96\
\xb7\x13\x52\xef\x00\x82\xf0\x0e\xca\x9c\xdf\xd4\xc8\xaf\x60\xf9\
\x2c\x29\xf9\x02\xa7\x69\x75\x80\x20\x3c\x03\x6a\xf1\xb4\x55\xf1\
\x83\x1d\x03\x80\x9d\xc4\xe0\x09\x5c\x63\xa4\xcf\x00\x41\xdc\x51\
\x50\x83\x27\xcc\x24\xfc\xf4\xb0\x3c\x05\xd0\x92\x98\x9e\xfe\x92\
\x5c\x35\x48\x53\x02\x82\x68\x1e\x49\xb9\xc2\xaf\xa1\x2d\xfc\x0d\
\x1b\x00\x94\x4d\x60\x42\xde\x67\x4c\x27\x0c\x11\x84\xfb\xe0\x66\
\xbd\xa7\x8c\xca\x7b\xad\xe0\x88\x01\x28\xc8\x09\xc2\x33\xd4\x4f\
\x80\x20\x5c\x61\x46\x16\xbe\xe5\xb9\xbe\x11\x8e\x1a\x80\x42\x62\
\x7a\xfa\x29\xb9\x04\x91\x22\x02\x82\x68\x1c\x1c\xf1\xcf\x58\x59\
\xde\x33\x8b\x2b\x06\xa0\x20\x47\x04\x4f\xc9\x95\x84\x94\x23\x20\
\x08\xf3\x24\xe5\xe5\xf6\x33\x4e\x8e\xf8\x5a\x5c\x35\x00\x35\x89\
\xe9\xe9\x27\x65\x23\x38\x4d\x53\x04\x82\xd0\x45\x11\xfd\x33\xa9\
\xa9\xa9\xa6\xb4\xe9\x6f\x9a\x01\xa8\x91\x93\x86\x68\x04\xca\xbf\
\xdd\xd4\x8d\x98\x68\x33\x2e\x00\x00\x6e\xd4\xc1\xd1\x1d\x93\x79\
\x2f\x3a\x91\xd4\xb3\x04\x00\xfc\x7f\x9d\x0c\x88\xd7\xcd\xd2\x3a\
\x54\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\x00\x00\x05\x32\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
\x00\x00\x04\xf9\x49\x44\x41\x54\x78\xda\xad\x55\x5d\x4c\x14\x57\
\x18\x3d\x77\x66\x76\xd9\x95\x3f\xf9\xd9\xd2\x2e\xb0\x6b\x03\x06\
\x01\x5b\x60\x09\xa0\x04\xa2\xa5\xa6\xf6\x81\x92\x50\x62\x6a\x9a\
\xd4\x27\xed\xcf\x43\x1b\x6b\x4d\xfa\x40\x4c\x88\x4d\xdb\x48\x1b\
\x4c\xa4\x49\x4d\x4d\x4c\x9a\xc6\x98\xfa\xd3\x68\x7d\x31\x7d\xd2\
\x54\x24\x28\x85\x5a\x04\x0d\xb0\x01\x64\x81\x45\x04\x2a\xb0\xc0\
\xb2\xbb\x73\xfb\xdd\x3b\xb3\x0b\x9b\x3e\xb5\xe1\x26\x3b\x77\xe6\
\xce\x37\xf7\x9c\xf3\x7d\xe7\xbb\xcb\x40\x23\xa3\x65\x60\x4f\x6a\
\x9a\xed\xc2\xfe\xa2\xa4\xec\x14\x2b\x03\xe7\x30\x86\x2a\x2e\x0c\
\x8c\x19\x8f\xd1\x99\x73\x63\x8d\xcb\xb7\x62\x28\xf2\x46\xa1\x9f\
\x2f\x10\xc1\xad\xc1\xe5\xdb\x7a\x98\xef\xf7\x7d\xe2\x0e\xb2\xf4\
\xe6\xbe\x3d\xfb\x2a\xd2\x6e\xfd\xd8\x90\x8d\x89\x25\x8e\xe8\xde\
\x72\x43\xf3\x81\x3e\x47\x84\x50\x9f\x07\x82\x08\xeb\x61\x64\x26\
\x27\x42\xd1\x18\x74\xbe\x21\xda\x44\x4b\x20\xe4\x44\x0d\x78\xf3\
\x92\x1f\xf7\x0e\x39\x19\x73\x7f\x35\xe0\xeb\xff\xbc\x30\xfb\xc6\
\xd8\x0a\x96\xd6\xa2\x8c\xc4\xae\x4a\x6c\xf3\xd1\xd9\x55\x0c\xf9\
\x17\x62\x7b\x3d\xf5\x4e\x61\x9b\x2b\x1d\x35\x1e\xd7\x3a\x80\xb2\
\x4e\xca\x9d\xa4\xc2\x12\x0e\xe1\xad\xf3\x4f\x5a\xd9\x91\xeb\xe3\
\xbc\xbe\xd4\x81\xc9\x65\x1d\x1a\x8b\x69\xa6\x78\x66\xca\x66\x18\
\x79\xb6\x8a\x43\xc5\x29\xc8\x4b\x8e\xc1\xe3\xf0\xe5\x61\xd4\x55\
\xba\x11\x0e\xeb\xeb\xa4\x28\x96\x4b\xb5\x40\x45\x86\x05\x47\x7e\
\x19\x1b\x63\x1f\x5e\x1b\xe7\x65\x3b\x1c\xd0\x23\xba\x19\xb4\xae\
\x42\x88\x10\x00\x8f\xa6\x03\xf8\xa8\x34\x3d\x0e\xa0\xbe\xbd\x1b\
\xef\xd6\x97\x10\x40\xc4\x48\x2b\xc5\x45\xdf\x52\x89\x90\x66\x53\
\xd1\x7a\x73\x1c\xac\xee\xbc\x97\x1f\xd8\xed\x94\x4c\xa2\x11\xea\
\x06\x46\x02\x60\x6a\x71\x0d\xef\x15\x26\xc7\x00\xbc\x8b\x1c\x67\
\x3b\x27\x50\xf4\xb2\x83\xd8\xea\x92\x95\x02\xc4\x7d\x6f\xb3\x28\
\x38\xf3\xdb\x28\xd8\x6b\x3f\x0c\xf2\xa6\xea\x6c\xc9\x44\x54\x8a\
\x99\xb9\x37\x1c\x23\x13\x85\xc5\xa0\x8e\x62\x87\x05\xc5\x69\x56\
\xf9\xae\x7f\x7e\x0d\x3d\xfe\x20\x5e\x4a\xb2\x12\x5b\x1e\xa7\x38\
\xfa\xad\x00\x68\xbd\x31\x06\x56\x7b\xf6\x31\x6f\xda\x9d\x83\x20\
\xa5\x48\xdb\x90\x1f\x31\xa9\xa6\x8d\x7e\x9f\x0c\x81\xfb\xa7\xe5\
\xfd\xf2\xc2\xb2\x9c\x77\x96\xba\xe1\xca\xdc\xf2\x2f\xc5\x51\x30\
\x01\xf0\x73\xf7\x34\x58\x4d\xfb\x00\x6f\xaa\xc9\x45\xd0\x4c\x11\
\x8b\xc5\x1a\x05\x53\xc8\xdc\x5d\x53\x94\xa2\xe2\x44\x34\xb8\x2c\
\x98\x5d\xd2\xd1\x31\x17\xc1\x4f\xfd\x01\xd4\x3a\x2d\x86\xf9\x65\
\xbc\x12\x23\x26\x2e\x56\x4d\xc1\x95\xae\x29\xb0\x8a\xb6\x3e\xde\
\xb8\x37\x17\x7a\x68\x5d\xa2\xca\x14\x53\x81\xb1\xd6\x31\x15\x42\
\x5b\x95\x1d\xb9\xe9\x76\xf9\x7e\x7c\x6e\x05\xc7\xba\x56\xb0\x37\
\xc7\x26\xfb\x43\x30\xd1\xe9\xa2\xc0\xec\x23\x9d\x21\xc1\x46\x00\
\x77\x27\xc0\x3c\xa7\x1e\xf0\xc6\xd7\xdd\x88\x90\x02\x51\x50\x8d\
\xf4\xce\xad\x72\x4c\xaf\xe8\x78\xba\x14\x11\x7d\x8c\x8e\x1e\x3f\
\xfa\x8f\xe6\xc7\x01\x94\xb4\x7b\xb1\xab\xec\x45\x24\x52\x2a\x1c\
\x94\xa9\x17\xec\x1a\x39\x47\xa1\xe6\x13\xbd\x40\xfb\x90\xe7\x2f\
\xdf\xf5\x81\x95\x9d\xea\xe5\x8d\x75\xdb\x30\x13\xd0\x31\x30\xb3\
\x86\xe9\x85\x30\x22\x14\xa5\xa9\x4c\xaa\x57\x35\x0b\xbc\x03\x53\
\xe8\x3b\x5e\x10\x07\x50\xde\x36\x88\xfc\x57\x9c\xd0\x75\x5d\x1e\
\x1d\x42\x86\x95\x8e\x19\x27\xb5\x71\x41\x3a\x43\x56\xa2\x05\x97\
\x6e\x93\x4d\x5d\xc7\x3a\xb8\xc3\xb3\x0d\x73\xf3\x21\xda\x4c\x91\
\x76\x53\x49\x05\x23\x99\xcc\x2a\x0a\xc8\xe0\xfd\x6b\x12\x8f\x4e\
\xec\x8c\x03\x78\xf5\xcb\x3e\xe4\x7b\xdc\xe4\x22\x6a\xb4\x08\xc5\
\x52\x39\x58\x44\xf4\x00\x93\x69\x73\xa6\x5a\x30\xd2\x3f\x09\x66\
\x7f\xfb\x1a\xcf\xaa\x2b\x03\x42\x94\x0e\x02\x10\x16\x13\x20\x8c\
\x24\x32\x51\x77\x5a\x1b\xe9\x1e\xc5\xf0\xd7\xe5\x71\x00\x45\xcd\
\xdd\xc8\xdb\x9d\x07\x2e\xcd\xc1\x64\xad\x98\x59\x6c\x51\x07\xd5\
\xaa\x60\xe2\x81\x4f\x00\x5c\xe5\x99\xb5\x1e\x2a\x52\x44\x16\x4b\
\x83\xc1\x82\x45\x1b\x8d\xf2\x3a\x76\x77\x04\xa3\xa7\xab\xe2\x00\
\x0a\x3e\xeb\x82\xab\x76\x3b\x11\xd3\xa5\xd3\x24\x19\xab\x50\xce\
\xa5\x03\x55\x55\x81\xff\x21\x01\x24\x34\x5c\xe1\xc9\x35\xa5\xc0\
\x5a\x58\x36\x99\x64\xa1\x19\x36\x15\xfe\x66\x09\x2a\x7c\x77\x06\
\x71\xfd\x9b\xbd\x64\xd3\x04\x09\xf0\xeb\x93\x20\x0e\xb4\x74\x22\
\xa7\x22\x8f\x1c\xa3\xc7\x29\x96\x1b\x28\x02\x40\xc5\xcc\x9f\x23\
\xf4\x58\xfd\xfd\xb9\xa4\x7d\xb5\x87\x15\x2b\xb5\x99\xc8\x27\xa2\
\xcd\x62\x02\x10\x50\xf0\xd9\x92\x5c\xe9\x69\x29\x93\xb3\xa7\xa5\
\x17\xf6\xad\x5b\x60\xa5\x4e\x96\x09\x61\x2c\xd6\x3b\x10\xad\x21\
\x5a\x96\x6e\x27\x6f\x76\xf9\x8d\x4c\xbc\x71\x61\xdc\x52\xb8\x3d\
\x47\xc9\xd8\x0a\x95\xce\x16\x91\x22\xd5\xfc\x43\x51\x89\x99\x42\
\x56\x5c\xf5\xcd\x63\xc5\xeb\x13\x86\x47\x6a\x45\x01\xac\x36\x4d\
\x9e\x6a\x4c\xe5\x92\x88\xa2\x2a\x12\x80\x59\x55\x84\xe6\x57\xf1\
\xf7\xfd\x87\xd0\x57\x02\xce\xf5\xe3\xb1\xb2\xed\x24\x92\x32\x3e\
\x25\xf8\x24\x70\xb3\x62\x8a\x71\xbe\x0b\x36\xaa\xc3\x21\x67\xb9\
\x09\x41\x6b\xce\x2c\xa8\xa9\x76\x23\xe7\xc4\x46\x9f\x5d\x44\x88\
\x7e\xe1\x69\x3f\x42\xcf\x17\x2f\xf1\x8e\x0f\xde\xd9\x70\xfe\xfd\
\xc7\x51\xf5\x5d\x02\x15\x6c\xd0\xbe\x67\x97\x8b\xd9\x6c\xf2\x48\
\x0c\x0e\x8d\x22\x34\x34\xfc\x3e\xee\x7f\x7c\x6e\x63\xe8\xff\x03\
\x88\xa9\x3e\xd3\xab\x54\x57\x97\x6a\xe9\x29\x08\x0f\x0c\x43\x1f\
\x1b\x2c\x47\xe7\xd1\x9e\xcd\x03\x90\x20\xdf\x5e\xc4\x8e\x92\x83\
\x58\x0d\xd2\x7f\xeb\xe3\x4a\xdc\x3b\x7e\x7f\x73\x01\xc4\x28\x3b\
\x79\x11\x29\x99\x07\x11\x98\xaf\x42\x77\xf3\xbd\xcd\x07\x10\xc3\
\xf3\xc5\x55\xda\xed\x34\xfe\x38\x71\x67\xe3\xf2\x3f\x54\x7c\xd3\
\xab\x0b\x25\xef\xbf\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\
\x82\
"
qt_resource_name = "\
\x00\x05\
\x00\x6f\xa6\x53\
\x00\x69\
\x00\x63\x00\x6f\x00\x6e\x00\x73\
\x00\x09\
\x06\x97\xd8\x67\
\x00\x41\
\x00\x62\x00\x6f\x00\x72\x00\x74\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x07\
\x07\xa7\x57\xc7\
\x00\x41\
\x00\x64\x00\x64\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x09\
\x06\x98\xc3\x27\
\x00\x43\
\x00\x6c\x00\x6f\x00\x73\x00\x65\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x06\
\x05\x3e\x57\x47\
\x00\x4f\
\x00\x4b\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x07\
\x0f\xc6\x57\xe7\
\x00\x59\
\x00\x65\x00\x73\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x08\
\x06\xe1\x5e\x27\
\x00\x44\
\x00\x6f\x00\x77\x00\x6e\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x08\
\x0c\xf7\x5d\xc7\
\x00\x4e\
\x00\x65\x00\x78\x00\x74\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x0a\
\x04\xbb\xba\x07\
\x00\x48\
\x00\x6f\x00\x77\x00\x2d\x00\x74\x00\x6f\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x08\
\x00\xa7\x5d\x27\
\x00\x4c\
\x00\x69\x00\x73\x00\x74\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x0a\
\x0f\xd2\xdc\x07\
\x00\x4d\
\x00\x6f\x00\x64\x00\x69\x00\x66\x00\x79\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x10\
\x09\x29\x3d\x67\
\x00\x4e\
\x00\x65\x00\x77\x00\x20\x00\x64\x00\x6f\x00\x63\x00\x75\x00\x6d\x00\x65\x00\x6e\x00\x74\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x08\
\x08\xc8\x5c\x67\
\x00\x53\
\x00\x61\x00\x76\x00\x65\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x0a\
\x0a\xcc\xfb\x07\
\x00\x46\
\x00\x6f\x00\x6c\x00\x64\x00\x65\x00\x72\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x15\
\x06\x50\xf8\x47\
\x00\x4c\
\x00\x61\x00\x75\x00\x6e\x00\x63\x00\x68\x00\x20\x00\x49\x00\x63\x00\x6f\x00\x6e\x00\x20\x00\x4d\x00\x75\x00\x6c\x00\x74\x00\x69\
\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x09\
\x06\xc7\xd8\x67\
\x00\x41\
\x00\x62\x00\x6f\x00\x75\x00\x74\x00\x2e\x00\x70\x00\x6e\x00\x67\
"
qt_resource_struct = "\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x0f\x00\x00\x00\x02\
\x00\x00\x00\xc0\x00\x00\x00\x00\x00\x01\x00\x00\x26\x66\
\x00\x00\x00\xa6\x00\x00\x00\x00\x00\x01\x00\x00\x20\xb2\
\x00\x00\x00\x54\x00\x00\x00\x00\x00\x01\x00\x00\x0d\xc6\
\x00\x00\x01\x46\x00\x00\x00\x00\x00\x01\x00\x00\x3c\xa1\
\x00\x00\x00\x10\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
\x00\x00\x00\x3c\x00\x00\x00\x00\x00\x01\x00\x00\x08\xa0\
\x00\x00\x01\x76\x00\x00\x00\x00\x00\x01\x00\x00\x6e\x73\
\x00\x00\x00\x7a\x00\x00\x00\x00\x00\x01\x00\x00\x17\x95\
\x00\x00\x00\x28\x00\x00\x00\x00\x00\x01\x00\x00\x05\x9a\
\x00\x00\x01\x16\x00\x00\x00\x00\x00\x01\x00\x00\x33\x1c\
\x00\x00\x00\xf0\x00\x00\x00\x00\x00\x01\x00\x00\x2e\x9f\
\x00\x00\x01\x2c\x00\x00\x00\x00\x00\x01\x00\x00\x38\xb0\
\x00\x00\x00\x90\x00\x00\x00\x00\x00\x01\x00\x00\x1b\xca\
\x00\x00\x00\x66\x00\x00\x00\x00\x00\x01\x00\x00\x13\xf6\
\x00\x00\x00\xd6\x00\x00\x00\x00\x00\x01\x00\x00\x2a\xea\
"
def qInitResources():
QtCore.qRegisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
def qCleanupResources():
QtCore.qUnregisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
qInitResources()
| 62.939789
| 129
| 0.726505
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 125,082
| 0.997154
|
c8448b25950b97138001e69363d737fca8d5fa17
| 225
|
py
|
Python
|
freedscovery_s3_connector/__init__.py
|
FreeDiscovery/FreeDiscovery-S3-connector
|
c10a6e1c26f95c199e94908f4e8534f735b94e37
|
[
"BSD-3-Clause"
] | null | null | null |
freedscovery_s3_connector/__init__.py
|
FreeDiscovery/FreeDiscovery-S3-connector
|
c10a6e1c26f95c199e94908f4e8534f735b94e37
|
[
"BSD-3-Clause"
] | null | null | null |
freedscovery_s3_connector/__init__.py
|
FreeDiscovery/FreeDiscovery-S3-connector
|
c10a6e1c26f95c199e94908f4e8534f735b94e37
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
from .constants import *
from . import io
from . import ai
from . import filters
from ._version import __version__
__version_date__ = "Sun Feb 14 14:28:51 2016 +0100"
__version_hash__ = "1d5f7f3"
| 16.071429
| 51
| 0.711111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 64
| 0.284444
|
c844d609644b8e0f8c68c6cb8c2457c055991723
| 2,309
|
py
|
Python
|
pysnmp-with-texts/ONEFS-MIB.py
|
agustinhenze/mibs.snmplabs.com
|
1fc5c07860542b89212f4c8ab807057d9a9206c7
|
[
"Apache-2.0"
] | 8
|
2019-05-09T17:04:00.000Z
|
2021-06-09T06:50:51.000Z
|
pysnmp-with-texts/ONEFS-MIB.py
|
agustinhenze/mibs.snmplabs.com
|
1fc5c07860542b89212f4c8ab807057d9a9206c7
|
[
"Apache-2.0"
] | 4
|
2019-05-31T16:42:59.000Z
|
2020-01-31T21:57:17.000Z
|
pysnmp-with-texts/ONEFS-MIB.py
|
agustinhenze/mibs.snmplabs.com
|
1fc5c07860542b89212f4c8ab807057d9a9206c7
|
[
"Apache-2.0"
] | 10
|
2019-04-30T05:51:36.000Z
|
2022-02-16T03:33:41.000Z
|
#
# PySNMP MIB module ONEFS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ONEFS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:34:48 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection")
ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup")
Unsigned32, snmpModules, IpAddress, Gauge32, enterprises, iso, Integer32, ModuleIdentity, Counter32, NotificationType, TimeTicks, Bits, Counter64, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "snmpModules", "IpAddress", "Gauge32", "enterprises", "iso", "Integer32", "ModuleIdentity", "Counter32", "NotificationType", "TimeTicks", "Bits", "Counter64", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
onefs = ModuleIdentity((1, 3, 6, 1, 4, 1, 12124))
if mibBuilder.loadTexts: onefs.setLastUpdated('0201172301Z')
if mibBuilder.loadTexts: onefs.setOrganization('COMPANY_NAME')
if mibBuilder.loadTexts: onefs.setContactInfo('COMPANY_NAME Support phone: SUPPORT_PHONE Support email: SUPPORT_EMAIL ')
if mibBuilder.loadTexts: onefs.setDescription('This is the enterprise number for OneFS')
class TimeTicks64(TextualConvention, Counter64):
description = 'A 64 bit value representing milliseconds from the epoch'
status = 'current'
subtypeSpec = Counter64.subtypeSpec + ValueRangeConstraint(0, 18446744073709551615)
mibBuilder.exportSymbols("ONEFS-MIB", PYSNMP_MODULE_ID=onefs, onefs=onefs, TimeTicks64=TimeTicks64)
| 92.36
| 533
| 0.792551
| 235
| 0.101776
| 0
| 0
| 0
| 0
| 0
| 0
| 1,090
| 0.472066
|
c845141e40b8a0dd5938ae534f453a3c938206c8
| 926
|
py
|
Python
|
ChatAPI/migrations/0002_auto_20210520_1134.py
|
swasthikshetty10/Chat-Bot-using-Deep-Learning
|
76856399e3984d8563eb72bb7412767b1b5f724a
|
[
"MIT"
] | 7
|
2021-01-05T15:27:55.000Z
|
2021-10-05T06:37:50.000Z
|
ChatAPI/migrations/0002_auto_20210520_1134.py
|
swasthikshetty10/Chat-Bot-using-Deep-Learning
|
76856399e3984d8563eb72bb7412767b1b5f724a
|
[
"MIT"
] | null | null | null |
ChatAPI/migrations/0002_auto_20210520_1134.py
|
swasthikshetty10/Chat-Bot-using-Deep-Learning
|
76856399e3984d8563eb72bb7412767b1b5f724a
|
[
"MIT"
] | 2
|
2021-01-08T12:50:33.000Z
|
2021-01-09T23:34:04.000Z
|
# Generated by Django 3.1.3 on 2021-05-20 06:04
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('ChatAPI', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Pattern',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('value', models.TextField()),
('date', models.DateTimeField(auto_now_add=True)),
('user', models.ForeignKey(default='Guest', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.DeleteModel(
name='Snippet',
),
]
| 31.931034
| 136
| 0.595032
| 759
| 0.819654
| 0
| 0
| 0
| 0
| 0
| 0
| 123
| 0.132829
|
c84571d0d767e8fe81786eba5dfb74f8e16357fc
| 1,240
|
py
|
Python
|
tests/test_session.py
|
Streetwise/streetwise-app
|
13c1649077766e0e20d6903adcd057ae3c07cc9c
|
[
"MIT"
] | 1
|
2020-05-28T06:50:01.000Z
|
2020-05-28T06:50:01.000Z
|
tests/test_session.py
|
Streetwise/streetwise-app
|
13c1649077766e0e20d6903adcd057ae3c07cc9c
|
[
"MIT"
] | 72
|
2020-05-01T11:11:17.000Z
|
2022-02-14T09:01:50.000Z
|
tests/test_session.py
|
Streetwise/streetwise-app
|
13c1649077766e0e20d6903adcd057ae3c07cc9c
|
[
"MIT"
] | 3
|
2020-05-06T20:35:32.000Z
|
2020-05-07T15:00:51.000Z
|
""" Python unit tests """
import pytest, json
from streetwise.models import Campaign
from . import app, app_context, db
@pytest.fixture(scope="module")
def client():
app.config['TESTING'] = True
return app.test_client()
def test_campaign_all(client):
with app_context:
campaign1 = Campaign()
campaign2 = Campaign()
db.session.add(campaign1)
db.session.add(campaign2)
db.session.commit()
resp = client.get('/api/campaign/all')
assert resp.status_code == 200
result = json.loads(resp.data)
assert len(result)>1
def test_campaign_sequence(client):
with app_context:
resp = client.get('/api/campaign/next')
result1 = json.loads(resp.data)
resp = client.get('/api/campaign/next')
result2 = json.loads(resp.data)
assert result1['id'] != result2['id']
def test_campaign_post(client):
with app_context:
resp = client.post('/api/campaign/next', json={'campaign_id':None})
result1 = json.loads(resp.data)
id1 = result1['id']
resp = client.post('/api/campaign/next', json={'campaign_id':id1})
result2 = json.loads(resp.data)
assert result1['id'] != result2['id']
| 28.837209
| 75
| 0.629839
| 0
| 0
| 0
| 0
| 107
| 0.08629
| 0
| 0
| 187
| 0.150806
|
c845aa5c017b1dfeb4dad13bc07e41c3088b51c3
| 303
|
py
|
Python
|
vanir/plugins/migrations/0003_delete_newcoinconfig.py
|
guanana/vanir
|
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
|
[
"Apache-2.0"
] | 1
|
2022-01-19T07:11:05.000Z
|
2022-01-19T07:11:05.000Z
|
vanir/plugins/migrations/0003_delete_newcoinconfig.py
|
guanana/vanir
|
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
|
[
"Apache-2.0"
] | 10
|
2021-11-07T14:17:07.000Z
|
2022-03-30T18:24:48.000Z
|
vanir/plugins/migrations/0003_delete_newcoinconfig.py
|
guanana/vanir
|
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
|
[
"Apache-2.0"
] | null | null | null |
# Generated by Django 3.1.13 on 2021-10-02 23:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('plugins', '0002_auto_20211002_2236'),
]
operations = [
migrations.DeleteModel(
name='NewCoinConfig',
),
]
| 17.823529
| 48
| 0.613861
| 217
| 0.716172
| 0
| 0
| 0
| 0
| 0
| 0
| 97
| 0.320132
|
c8475200f6eac06a5a76c9c297ba11ee2a7ea2ed
| 831
|
py
|
Python
|
PythonDAdata/3358OS_12_Code/code12/core.py
|
shijiale0609/Python_Data_Analysis
|
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
|
[
"MIT"
] | 1
|
2020-02-22T18:55:54.000Z
|
2020-02-22T18:55:54.000Z
|
PythonDAdata/3358OS_12_Code/code12/core.py
|
shijiale0609/Python_Data_Analysis
|
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
|
[
"MIT"
] | null | null | null |
PythonDAdata/3358OS_12_Code/code12/core.py
|
shijiale0609/Python_Data_Analysis
|
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
|
[
"MIT"
] | 1
|
2020-02-22T18:55:57.000Z
|
2020-02-22T18:55:57.000Z
|
from nltk.corpus import movie_reviews
import random
import cython_module as cm
import cytoolz
def label_docs():
docs = [(list(movie_reviews.words(fid)), cat)
for cat in movie_reviews.categories()
for fid in movie_reviews.fileids(cat)]
random.seed(42)
random.shuffle(docs)
return docs
def match(a, b):
return set(a.keys()).intersection(b)
def filter_corpus():
review_words = movie_reviews.words()
print "# Review Words", len(review_words)
res = cm.filter_sw(review_words)
print "# After filter", len(res)
return res
def select_word_features(corpus):
words = cytoolz.frequencies(corpus)
sorted_words = sorted(words, key=words.get)
N = int(.02 * len(sorted_words))
return sorted_words[-N:]
def split_data(sets):
return sets[200:], sets[:200]
| 23.742857
| 50
| 0.68231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 32
| 0.038508
|
c84abb9eac74cceda1f9caab92fdc8319c29f197
| 4,900
|
py
|
Python
|
crawler/spiders/weighted_index_spider.py
|
ChuangYuMing/futures_spread_analysis
|
71540671eed7ea3abba0a9a5af45f49dcf662ce3
|
[
"MIT"
] | 2
|
2019-09-19T05:11:00.000Z
|
2020-07-23T07:26:03.000Z
|
crawler/spiders/weighted_index_spider.py
|
ChuangYuMing/futures_spread_analysis
|
71540671eed7ea3abba0a9a5af45f49dcf662ce3
|
[
"MIT"
] | 11
|
2020-07-14T10:42:59.000Z
|
2022-03-02T14:54:10.000Z
|
crawler/spiders/weighted_index_spider.py
|
ChuangYuMing/futures_spread_analysis
|
71540671eed7ea3abba0a9a5af45f49dcf662ce3
|
[
"MIT"
] | null | null | null |
# encoding: utf-8
# pylint: disable=E1101
# 加權指數
# https://www.twse.com.tw/zh/page/trading/indices/MI_5MINS_HIST.html
import scrapy
from scrapy import signals, Spider
from urllib.parse import urlencode
import time
from random import randint
import datetime
import logging
from copy import copy
from dateutil.relativedelta import relativedelta
import collections
import json
from zoneinfo import ZoneInfo
# for cloud function call && scrapy crawl command call
# softlink package folder to root
try:
from package.tools import is_settle, format_number
from package.storage import Storage
except:
from spiders.package.tools import is_settle, format_number
from spiders.package.storage import Storage
class WeightedIndexSpider(scrapy.Spider):
name = 'weighted_index'
def __init__(self, category=None, *args, **kwargs):
super(WeightedIndexSpider, self).__init__(*args, **kwargs)
self.dataStorage = Storage(self.name)
self.data = collections.OrderedDict()
self.today = datetime.datetime.now(ZoneInfo("Asia/Taipei"))
self.url = 'https://www.twse.com.tw/indicesReport/MI_5MINS_HIST'
self.params = {
'response': 'json',
'date': '20110101'
}
self.startDate = getattr(self, 'start', self.getFormatDate(self.today))
self.endDate = getattr(self, 'end', self.getFormatDate(self.today))
self.startObj = self.parseDate(self.startDate)
self.endObj = self.parseDate(self.endDate)
def parseDate(self, dateString):
year = int(dateString[0:4])
month = int(dateString[4:6])
day = int(dateString[6:8])
return {
'year': year,
'month': month,
'day': day,
'datetime': datetime.date(year, month, day)
}
def getFormatDate(self, date):
year = str(date.year)
month = str(date.month) if len(str(date.month)) != 1 else "0" + str(date.month)
day = '01'
return year + month + day
# 西元
def format_ad_date(self, date):
date_arr = date.split('/')
year = date_arr[0]
month = date_arr[1]
day = date_arr[2]
year = str(int(year) + 1911)
return year + '/' + month + '/' + day
def start_requests(self):
print('start request - %s' % self.name)
targetDateObj = copy(self.startObj)
while(targetDateObj['datetime'] <= self.endObj['datetime']):
self.params['date'] = self.getFormatDate(targetDateObj['datetime'])
url = self.url + '?' + urlencode(self.params)
yield scrapy.Request(
url=url,
callback=self.parse,
cb_kwargs=dict(targetDateObj=copy(targetDateObj)),
errback=self.handle_failure)
targetDateObj['datetime'] = targetDateObj['datetime'] + relativedelta(months=1)
targetDateObj['year'] = targetDateObj['datetime'].year
targetDateObj['month'] = targetDateObj['datetime'].month
def handle_failure(self, failure):
self.log(failure, level=logging.ERROR)
# try with a new proxy
self.log('restart from the failed url {}'.format(failure.request.url))
time.sleep(120)
yield scrapy.Request(
url=failure.request.url,
callback=self.parse,
cb_kwargs=failure.request.cb_kwargs,
errback=self.handle_failure)
def parse(self, response, targetDateObj):
print(targetDateObj['datetime'])
result = json.loads(response.text)
data = result['data']
year = targetDateObj['year']
for item in data:
datestart = self.format_ad_date(item[0])
if year not in self.data:
self.data[year] = {}
self.data[year][datestart] = {}
self.data[year][datestart]["open"] = format_number(item[1].split(".")[0]) # 開盤
self.data[year][datestart]["high"] = format_number(item[2].split(".")[0]) # 最高
self.data[year][datestart]["low"] = format_number(item[3].split(".")[0]) # 最低
self.data[year][datestart]["w_index"] = format_number(item[4].split(".")[0]) # 收盤
self.data[year][datestart]["is_settle"] = is_settle(datestart, '/')
@classmethod
def from_crawler(cls, crawler, *args, **kwargs):
spider = super(WeightedIndexSpider, cls).from_crawler(crawler, *args, **kwargs)
crawler.signals.connect(spider.spider_closed, signal=signals.spider_closed)
return spider
def spider_closed(self, spider):
for year in self.data:
newData = self.data[year]
data = dict()
try:
data = self.dataStorage.getOldData(year)
except:
pass
data.update(newData)
self.dataStorage.saveData(year, data)
| 35.507246
| 93
| 0.610408
| 4,201
| 0.852476
| 1,166
| 0.236607
| 259
| 0.052557
| 0
| 0
| 659
| 0.133726
|
c84cd7c853b8faebaefc88697ddd7f956ce53148
| 374
|
py
|
Python
|
KahootPY/src/modules/questionStart.py
|
boiimakillu/KahootPY
|
c8d7a03a766bf061015a178cd7df2382906f91ae
|
[
"MIT"
] | null | null | null |
KahootPY/src/modules/questionStart.py
|
boiimakillu/KahootPY
|
c8d7a03a766bf061015a178cd7df2382906f91ae
|
[
"MIT"
] | null | null | null |
KahootPY/src/modules/questionStart.py
|
boiimakillu/KahootPY
|
c8d7a03a766bf061015a178cd7df2382906f91ae
|
[
"MIT"
] | 1
|
2021-11-25T12:19:27.000Z
|
2021-11-25T12:19:27.000Z
|
from json import loads
from time import time
def main(self):
def handler(message):
if message["channel"] == "/service/player" and message.get("data") and message["data"].get("id") == 2:
self.questionStartTime = int(time() * 1000)
self._emit("QuestionStart",loads(message["data"]["content"]))
self.handlers["questionStart"] = handler
| 37.4
| 110
| 0.641711
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 87
| 0.23262
|
c84d4f1ef2e89c1c188fc5c0934712deace909e7
| 2,973
|
py
|
Python
|
MNIST/util.py
|
zswdian/BinarizedSNPS
|
d1a1a1f7eea74ee8f9c2233ae94f7fa079dc11d5
|
[
"Apache-2.0"
] | null | null | null |
MNIST/util.py
|
zswdian/BinarizedSNPS
|
d1a1a1f7eea74ee8f9c2233ae94f7fa079dc11d5
|
[
"Apache-2.0"
] | null | null | null |
MNIST/util.py
|
zswdian/BinarizedSNPS
|
d1a1a1f7eea74ee8f9c2233ae94f7fa079dc11d5
|
[
"Apache-2.0"
] | null | null | null |
import torch.nn as nn
import numpy
class BinOp():
def __init__(self, model):
count_conv2d = 0
for m in model.modules():
if isinstance(m, nn.Conv2d):
count_conv2d += 1
start_range = 1
end_range = count_conv2d - 2
self.bin_range = numpy.linspace(start_range, end_range, end_range-start_range+1)\
.astype('int').tolist()
self.num_params = len(self.bin_range)
self.saved_params = []
self.target_modules = []
index = -1
for m in model.modules():
if isinstance(m, nn.Conv2d):
index += 1
if index in self.bin_range:
tmp = m.weight.data.clone()
self.saved_params.append(tmp)
self.target_modules.append(m.weight)
def binarization(self):
self.meancenterConvParams()
self.clampConvParams()
self.save_params()
self.binarizeConvParams()
def meancenterConvParams(self):
for index in range(self.num_params):
neg_mean = self.target_modules[index].data.mean(1, keepdim=True).mul(-1)\
.expand_as(self.target_modules[index].data)
self.target_modules[index].data.add_(neg_mean)
def clampConvParams(self):
for index in range(self.num_params):
self.target_modules[index].data.clamp_(-1.0, 1.0)
def save_params(self):
for index in range(self.num_params):
self.saved_params[index].copy_(self.target_modules[index].data)
def binarizeConvParams(self):
for index in range(self.num_params):
n = self.target_modules[index].data[0].nelement()
s = self.target_modules[index].data.size()
alpha = self.target_modules[index].data.norm(1, 3, keepdim=True)\
.sum(2, keepdim=True).sum(1, keepdim=True).div(n)
self.target_modules[index].data = self.target_modules[index].data.sign()\
.mul(alpha.expand(s))
def restore(self):
for index in range(self.num_params):
self.target_modules[index].data.copy_(self.saved_params[index])
def updateBinaryWeightGrad(self):
for index in range(self.num_params):
weight = self.target_modules[index].data
n = weight[0].nelement()
s = weight.size()
m = weight.norm(1, 3, keepdim=True).sum(2, keepdim=True)\
.sum(1, keepdim=True).div(n).expand(s)
m[weight.lt(-1.0)] = 0
m[weight.gt(1.0)] = 0
m = m.mul(self.target_modules[index].grad.data)
m_add = weight.sign().mul(self.target_modules[index].grad.data)
m_add = m_add.sum(3, keepdim=True).sum(2, keepdim=True)\
.sum(1, keepdim=True).div(n).expand(s)
m_add = m_add.mul(weight.sign())
self.target_modules[index].grad.data = m.add(m_add).mul(1.0-1.0/s[1]).mul(n)
| 37.1625
| 89
| 0.582913
| 2,935
| 0.987218
| 0
| 0
| 0
| 0
| 0
| 0
| 5
| 0.001682
|
c84ea79f1edbb49a2816dca5b35662a00efd9c2f
| 1,198
|
py
|
Python
|
modules/tensorflow/keras/datasets/gaussian_mixture.py
|
avogel88/compare-VAE-GAE
|
aa3419c41a58ca6c1a9c1031c0aed7e07c3d4f90
|
[
"MIT"
] | null | null | null |
modules/tensorflow/keras/datasets/gaussian_mixture.py
|
avogel88/compare-VAE-GAE
|
aa3419c41a58ca6c1a9c1031c0aed7e07c3d4f90
|
[
"MIT"
] | null | null | null |
modules/tensorflow/keras/datasets/gaussian_mixture.py
|
avogel88/compare-VAE-GAE
|
aa3419c41a58ca6c1a9c1031c0aed7e07c3d4f90
|
[
"MIT"
] | null | null | null |
import numpy as np
import os
from os.path import dirname, join
from modules.numpy import covmix, varroll
from modules.pandas import DesignMatrix
from modules.scipy.stats import gaussian_mixture
def gaussian_mixture_generate(file, train=60000, test=60000, validate=10000):
dim_x, dim_z = 784, 10
# distributions
π = [.2, .3, .5]
K, N, D = len(π), dim_z, dim_x
µ = np.zeros((K, D))
Σ = covmix(varroll(range(K), (N, D - N), (10, .1)))
x_dist = gaussian_mixture(weights=π, mean=µ, cov=Σ)
# sampling
x = DesignMatrix(x_dist.rvs(train))
y = DesignMatrix(x_dist.rvs(test))
z = DesignMatrix(x_dist.rvs(validate))
# save distribution
os.makedirs(dirname(file), exist_ok=True)
x_dist.save(file)
# save
x.to_csv(join(dirname(file), 'train.csv'))
y.to_csv(join(dirname(file), 'test.csv'))
z.to_csv(join(dirname(file), 'validate.csv'))
def gaussian_mixture_load(path):
x_dist = gaussian_mixture.load(path)
x = DesignMatrix.read_csv(join(dirname(path), 'train.csv'))
y = DesignMatrix.read_csv(join(dirname(path), 'test.csv'))
z = DesignMatrix.read_csv(join(dirname(path), 'validate.csv'))
return x_dist, x, y, z
| 29.95
| 77
| 0.674457
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 120
| 0.099585
|
c85276ff92552a878b6545824f777a6c37822c3a
| 7,860
|
py
|
Python
|
Desktop Assistant.py
|
PRASUNR0Y/Desktop-Assistant
|
6f07cd3bc50bfca3d3f243d9e01d1bb0ef2e9029
|
[
"MIT"
] | 15
|
2020-07-21T09:54:16.000Z
|
2022-02-08T15:34:25.000Z
|
Desktop Assistant.py
|
RisingStar522/Desktop-Assistant
|
6f07cd3bc50bfca3d3f243d9e01d1bb0ef2e9029
|
[
"MIT"
] | 1
|
2020-11-26T15:47:23.000Z
|
2020-11-26T15:47:23.000Z
|
Desktop Assistant.py
|
RisingStar522/Desktop-Assistant
|
6f07cd3bc50bfca3d3f243d9e01d1bb0ef2e9029
|
[
"MIT"
] | 16
|
2020-08-04T10:47:45.000Z
|
2022-01-14T19:29:35.000Z
|
import pyttsx3 #pip install pyttsx3
import speech_recognition as sr #pip install speechRecognition
import datetime
import wikipedia #pip install wikipedia
import webbrowser
import os
import smtplib
import random
engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')
# print(voices[0].id)
engine.setProperty('voice', voices[1].id)
def speak(audio):
engine.say(audio)
engine.runAndWait()
def wishMe():
hour = int(datetime.datetime.now().hour)
if hour>=0 and hour<12:
speak("Good Morning! ")
elif hour>=12 and hour<17:
speak("Good Afternoon! ")
elif hour>=17 and hour<19 :
speak("Good Evening! ")
else:
speak("Good Night! ")
speak("I am your Vertual Assistant Suzi. Please tell me how may I help you")
def takeCommand():
#It takes microphone input from the user and returns string output
rr = sr.Recognizer()
with sr.Microphone() as source:
print("Listening...")
rr.pause_threshold = 1
audio = rr.listen(source)
try:
print("Recognizing...")
query = rr.recognize_google(audio, language='en-in')
print(f"User said: {query}\n")
except Exception as e:
# print(e)
print("Say that again please...")
speak("Connection error")
return "None"
return query
def sendEmail(to, content):
server = smtplib.SMTP('smtp.gmail.com', 587)
server.ehlo()
server.starttls()
server.login('youremail@gmail.com', 'your-password')
server.sendmail('youremail@gmail.com', to, content)
server.close()
if __name__ == "__main__":
wishMe()
while True:
# if 1:
query = takeCommand().lower()
# Logic for executing tasks based on query
if 'wikipedia' in query:
speak('Searching Wikipedia...')
query = query.replace("wikipedia", "")
results = wikipedia.summary(query, sentences=2)
speak("According to Wikipedia")
print(results)
speak(results)
elif "hello" in query or "hello Suzi" in query:
hello1 = "Hello ! How May i Help you.."
print(hello1)
speak(hello1)
elif "who are you" in query or "about you" in query or "your details" in query:
who_are_you = "I am Suzi an A I based computer program but i can help you lot like a your assistant ! try me to give simple command !"
print(who_are_you)
speak(who_are_you)
elif 'who make you' in query or 'who made you' in query or 'who created you' in query or 'who develop you' in query:
speak(" For your information Prasun Roy Created me ! I can show you his Linked In profile if you want to see. Yes or no .....")
ans_from_user_who_made_you = takeCommand()
if 'yes' in ans_from_user_who_made_you or 'ok' in ans_from_user_who_made_you or 'yeah' in ans_from_user_who_made_you:
webbrowser.open("https://www.linkedin.com/in/prasun-roy-")
speak('opening his profile...... please wait')
elif 'no' in ans_from_user_who_made_you or 'no thanks' in ans_from_user_who_made_you or 'not' in ans_from_user_who_made_you:
speak("All right ! OK...")
else :
speak("I can't understand. Please say that again !")
elif 'open youtube' in query:
webbrowser.open("www.youtube.com")
speak("opening youtube")
elif 'open github' in query:
webbrowser.open("https://www.github.com")
speak("opening github")
elif 'open facebook' in query:
webbrowser.open("https://www.facebook.com")
speak("opening facebook")
elif 'open instagram' in query:
webbrowser.open("https://www.instagram.com")
speak("opening instagram")
elif 'open google' in query:
webbrowser.open("google.com")
speak("opening google")
elif 'open stackoverflow' in query:
webbrowser.open("stackoverflow.com")
speak("opening stackoverflow")
elif 'open yahoo' in query:
webbrowser.open("https://www.yahoo.com")
speak("opening yahoo")
elif 'open gmail' in query:
webbrowser.open("https://mail.google.com")
speak("opening google mail")
elif 'open snapdeal' in query:
webbrowser.open("https://www.snapdeal.com")
speak("opening snapdeal")
elif 'open amazon' in query or 'shop online' in query:
webbrowser.open("https://www.amazon.com")
speak("opening amazon")
elif 'open flipkart' in query:
webbrowser.open("https://www.flipkart.com")
speak("opening flipkart")
elif 'play music' in query:
speak("ok i am playing music")
music_dir = 'E:\\My MUSIC'
songs = os.listdir(music_dir)
print(songs)
os.startfile(os.path.join(music_dir, songs[0]))
elif 'video from pc' in query or "video" in query:
speak("ok i am playing videos")
video_dir = 'E:\\\My Videos'
Videos = os.listdir(video_dir)
print(Videos)
os.startfile(os.path.join(video_dir,Videos[0]))
elif 'good bye' in query:
speak("good bye")
exit()
elif "shutdown" in query:
speak("shutting down")
os.system('shutdown -s')
elif "your name" in query or "sweat name" in query:
naa_mme = "Thanks for Asking my self ! Suzi"
print(naa_mme)
speak(naa_mme)
elif "you feeling" in query:
print("feeling Very happy to help you")
speak("feeling Very happy to help you")
elif query == 'none':
continue
elif 'exit' in query or 'stop' in query or 'quit' in query :
exx_exit = 'See you soon. Bye'
speak(exx_exit)
exit()
elif 'the time' in query:
strTime = datetime.datetime.now().strftime("%H:%M:%S")
speak(f"the time is {strTime}")
elif 'open code' in query:
codePath = "D:\\vs\\Microsoft VS Code\\Code.exe"
os.startfile(codePath)
speak("opening visual studio code")
elif 'email to prasun' in query:
try:
speak("What should I say?")
content = takeCommand()
to = "prasunroy988@gmail.com"
sendEmail(to, content)
speak("Email has been sent!")
except Exception as e:
print(e)
speak("Sorry.... I am not able to send this email")
elif 'how are you' in query:
setMsgs = ['Just doing my thing!', 'I am fine!', 'Nice!']
ans_qus = random.choice(setMsgs)
speak(ans_qus)
speak(" How are you'")
ans_from_user_how_are_you = takeCommand()
if 'fine' in ans_from_user_how_are_you or 'happy' in ans_from_user_how_are_you or 'okey' in ans_from_user_how_are_you:
speak('Great')
elif 'not' in ans_from_user_how_are_you or 'sad' in ans_from_user_how_are_you or 'upset' in ans_from_user_how_are_you:
speak('Tell me how can i make you happy')
else :
speak("I can't understand. Please say that again !")
else:
tempp = query.replace(' ','+')
prasun_url="https://www.google.com/search?q="
res_prasun = 'sorry! i cant understand but i search from internet to give your answer !'
print(res_prasun)
speak(res_prasun)
webbrowser.open(prasun_url+tempp)
| 34.933333
| 146
| 0.575318
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 2,730
| 0.347328
|
c8530a2187ea583ad5783e02a5317fc84ce553e4
| 1,620
|
py
|
Python
|
old_version/forms/auth_form.py
|
DenisZhmakin/VK-Music-Downloader
|
217d54f462b2da74776eec47bf1c355c54b017ab
|
[
"Unlicense"
] | null | null | null |
old_version/forms/auth_form.py
|
DenisZhmakin/VK-Music-Downloader
|
217d54f462b2da74776eec47bf1c355c54b017ab
|
[
"Unlicense"
] | 1
|
2021-12-20T03:42:21.000Z
|
2021-12-20T09:57:57.000Z
|
old_version/forms/auth_form.py
|
DenisZhmakin/VK-Music-Downloader
|
217d54f462b2da74776eec47bf1c355c54b017ab
|
[
"Unlicense"
] | null | null | null |
import json
from pathlib import Path
from PyQt5 import uic
from PyQt5.QtCore import pyqtSignal
from PyQt5.QtWidgets import QWidget
from vk_api.vk_api import VkApi
from utils import print_message, validate_QLineEdit
class AuthForm(QWidget):
authorized_successfull = pyqtSignal()
def __init__(self):
QWidget.__init__(self)
uic.loadUi("designs/auth.ui", self)
self.auth_button.clicked.connect(self.auth_button_click)
def auth_button_click(self):
""" ЗАПОЛНИТЬ КОММЕНТ """
if not validate_QLineEdit(self.login_line):
print_message("Поле логина пустое. Заполните его")
return
if not validate_QLineEdit(self.password_line):
print_message("Поле пароля пустое. Заполните его")
return
session = VkApi(self.login_line.text(), self.password_line.text())
try:
session.auth(token_only=True)
auth_ok = True
except:
auth_ok = False
if auth_ok:
user_data = {
"login": self.login_line.text(),
"password": self.password_line.text()
}
with open(Path.home() / '.vkmusicload.conf', "w") as write_file:
json.dump(user_data, write_file)
self.authorized_successfull.emit()
self.close()
else:
self.login_line.clear()
self.password_line.clear()
print_message(
"Авторизация не удалась.\nВозможно, не правильный логин или пароль."
)
| 27.931034
| 84
| 0.591358
| 1,526
| 0.873998
| 0
| 0
| 0
| 0
| 0
| 0
| 345
| 0.197595
|
c8551c2705d7c8211e2870c34856750e96ab7d03
| 11,467
|
py
|
Python
|
exif_processing.py
|
Strubbl/upload-scripts
|
da2f73a322490c0ca572dcc21bc8ba7f68f76734
|
[
"MIT"
] | null | null | null |
exif_processing.py
|
Strubbl/upload-scripts
|
da2f73a322490c0ca572dcc21bc8ba7f68f76734
|
[
"MIT"
] | 1
|
2020-08-05T18:37:15.000Z
|
2020-08-07T14:12:56.000Z
|
exif_processing.py
|
Strubbl/upload-scripts
|
da2f73a322490c0ca572dcc21bc8ba7f68f76734
|
[
"MIT"
] | 1
|
2020-08-05T16:23:51.000Z
|
2020-08-05T16:23:51.000Z
|
"""Module responsible to parse Exif information from a image"""
import math
import datetime
from enum import Enum
from typing import Optional
# third party
import exifread
import piexif
MPH_TO_KMH_FACTOR = 1.60934
"""miles per hour to kilometers per hour conversion factor"""
KNOTS_TO_KMH_FACTOR = 1.852
"""knots to kilometers per hour conversion factor"""
class ExifTags(Enum):
"""This is a enumeration of exif tags. More info here
http://owl.phy.queensu.ca/~phil/exiftool/TagNames/GPS.html """
DATE_TIME_ORIGINAL = "EXIF DateTimeOriginal"
DATE_Time_DIGITIZED = "EXIF DateTimeDigitized"
# latitude
GPS_LATITUDE = "GPS GPSLatitude"
GPS_LATITUDE_REF = "GPS GPSLatitudeRef"
# longitude
GPS_LONGITUDE = "GPS GPSLongitude"
GPS_LONGITUDE_REF = "GPS GPSLongitudeRef"
# altitude
GPS_ALTITUDE_REF = "GPS GPSAltitudeRef"
GPS_ALTITUDE = "GPS GPSAltitude"
# timestamp
GPS_TIMESTAMP = "GPS GPSTimeStamp"
GPS_DATE_STAMP = "GPS GPSDateStamp"
GPS_DATE = "GPS GPSDate"
# speed
GPS_SPEED_REF = "GPS GPSSpeedRef"
GPS_SPEED = "GPS GPSSpeed"
# direction
GPS_DIRECTION_REF = "GPS GPSImgDirectionRef"
GPS_DIRECTION = "GPS GPSImgDirection"
class CardinalDirection(Enum):
"""Exif Enum with all cardinal directions"""
N = "N"
S = "S"
E = "E"
W = "W"
TrueNorth = "T"
MagneticNorth = "M"
class SeaLevel(Enum):
"""Exif Enum
If the reference is sea level and the
altitude is above sea level, 0 is given.
If the altitude is below sea level, a value of 1 is given and
the altitude is indicated as an absolute value in the GPSAltitude tag.
The reference unit is meters. Note that this tag is BYTE type,
unlike other reference tags."""
ABOVE = 0
BELOW = 1
class SpeedUnit(Enum):
"""Exif speed unit enum"""
KMH = "K"
MPH = "M"
KNOTS = "N"
@classmethod
def convert_mph_to_kmh(cls, mph) -> float:
"""This method converts from miles per hour to kilometers per hour"""
return mph * MPH_TO_KMH_FACTOR
@classmethod
def convert_knots_to_kmh(cls, knots) -> float:
"""This method converts from knots to kilometers per hour"""
return knots * KNOTS_TO_KMH_FACTOR
def all_tags(path) -> {str: str}:
"""Method to return Exif tags"""
file = open(path, "rb")
tags = exifread.process_file(file, details=False)
return tags
def __dms_to_dd(dms_value) -> float:
"""DMS is Degrees Minutes Seconds, DD is Decimal Degrees.
A typical format would be dd/1,mm/1,ss/1.
When degrees and minutes are used and, for example,
fractions of minutes are given up to two decimal places,
the format would be dd/1,mmmm/100,0/1 """
# degrees
degrees_nominator = dms_value.values[0].num
degrees_denominator = dms_value.values[0].den
degrees = float(degrees_nominator) / float(degrees_denominator)
# minutes
minutes_nominator = dms_value.values[1].num
minutes_denominator = dms_value.values[1].den
minutes = float(minutes_nominator) / float(minutes_denominator)
# seconds
seconds_nominator = dms_value.values[2].num
seconds_denominator = dms_value.values[2].den
seconds = float(seconds_nominator) / float(seconds_denominator)
# decimal degrees
return degrees + (minutes / 60.0) + (seconds / 3600.0)
def gps_latitude(gps_data: {str: str}) -> Optional[float]:
"""Exif latitude from gps_data represented by gps tags found in image exif"""
if ExifTags.GPS_LATITUDE.value in gps_data:
# latitude exists
dms_values = gps_data[ExifTags.GPS_LATITUDE.value]
_latitude = __dms_to_dd(dms_values)
if ExifTags.GPS_LATITUDE_REF.value in gps_data and \
(str(gps_data[ExifTags.GPS_LATITUDE_REF.value]) == str(CardinalDirection.S.value)):
# cardinal direction is S so the latitude should be negative
_latitude = -1 * _latitude
return _latitude
# no latitude info found
return None
def gps_longitude(gps_data: {str: str}) -> Optional[float]:
"""Exif longitude from gps_data represented by gps tags found in image exif"""
if ExifTags.GPS_LONGITUDE.value in gps_data:
# longitude exists
dms_values = gps_data[ExifTags.GPS_LONGITUDE.value]
_longitude = __dms_to_dd(dms_values)
if ExifTags.GPS_LONGITUDE_REF.value in gps_data and \
str(gps_data[ExifTags.GPS_LONGITUDE_REF.value]) == str(CardinalDirection.W.value):
# cardinal direction is W so the longitude should be negative
_longitude = -1 * _longitude
return _longitude
# no longitude info found
return None
def gps_compass(gps_data: {str: str}) -> Optional[float]:
"""Exif compass from gps_data represented by gps tags found in image exif.
reference relative to true north"""
if ExifTags.GPS_DIRECTION.value in gps_data:
# compass exists
compass_ratio = gps_data[ExifTags.GPS_DIRECTION.value].values[0]
if ExifTags.GPS_DIRECTION_REF.value in gps_data and \
gps_data[ExifTags.GPS_DIRECTION_REF.value] == CardinalDirection.MagneticNorth:
# if we find magnetic north then we don't consider a valid compass
return None
return compass_ratio.num / compass_ratio.den
# no compass found
return None
def gps_timestamp(gps_data: {str: str}) -> Optional[float]:
"""Exif gps time from gps_data represented by gps tags found in image exif.
In exif there are values giving the hour, minute, and second.
This is UTC time"""
if ExifTags.GPS_TIMESTAMP.value in gps_data:
# timestamp exists
_timestamp = gps_data[ExifTags.GPS_TIMESTAMP.value]
hours: exifread.Ratio = _timestamp.values[0]
minutes: exifread.Ratio = _timestamp.values[1]
seconds: exifread.Ratio = _timestamp.values[2]
day_timestamp = hours.num / hours.den * 3600 + \
minutes.num / minutes.den * 60 + \
seconds.num / seconds.den
if ExifTags.GPS_DATE_STAMP.value in gps_data:
# this tag is the one present in the exif documentation
# but from experience ExifTags.GPS_DATE is replacing this tag
gps_date = gps_data[ExifTags.GPS_DATE_STAMP.value].values
date_timestamp = datetime.datetime.strptime(gps_date, "%Y:%m:%d").timestamp()
return day_timestamp + date_timestamp
if ExifTags.GPS_DATE.value in gps_data:
# this tag is a replacement for ExifTags.GPS_DATE_STAMP
gps_date = gps_data[ExifTags.GPS_DATE.value].values
date_timestamp = datetime.datetime.strptime(gps_date, "%Y:%m:%d").timestamp()
return day_timestamp + date_timestamp
# no date information only hour minutes second of day -> no valid gps timestamp
return None
# no gps timestamp found
return None
def timestamp(tags: {str: str}) -> Optional[float]:
"""Original timestamp determined by the digital still camera. This is timezone corrected."""
if ExifTags.DATE_TIME_ORIGINAL.value in tags:
date_taken = tags[ExifTags.DATE_TIME_ORIGINAL.value].values
_timestamp = datetime.datetime.strptime(date_taken, "%Y:%m:%d %H:%M:%S").timestamp()
return _timestamp
if ExifTags.DATE_Time_DIGITIZED.value in tags:
date_taken = tags[ExifTags.DATE_Time_DIGITIZED.value].values
_timestamp = datetime.datetime.strptime(date_taken, "%Y:%m:%d %H:%M:%S").timestamp()
return _timestamp
# no timestamp information found
return None
def gps_altitude(gps_tags: {str: str}) -> Optional[float]:
"""GPS altitude form exif """
if ExifTags.GPS_ALTITUDE.value in gps_tags:
# altitude exists
altitude_ratio = gps_tags[ExifTags.GPS_ALTITUDE.value].values[0]
altitude = altitude_ratio.num / altitude_ratio.den
if ExifTags.GPS_ALTITUDE_REF.value in gps_tags and \
gps_tags[ExifTags.GPS_ALTITUDE_REF.value] == SeaLevel.BELOW.value:
altitude = -1 * altitude
return altitude
return None
def gps_speed(gps_tags: {str: str}) -> Optional[float]:
"""Returns GPS speed from exif in km per hour or None if no gps speed tag found"""
if ExifTags.GPS_SPEED.value in gps_tags:
# gps speed exist
speed_ratio = gps_tags[ExifTags.GPS_SPEED.value].values[0]
speed = speed_ratio.num / speed_ratio.den
if ExifTags.GPS_SPEED_REF.value in gps_tags:
if gps_tags[ExifTags.GPS_SPEED_REF.value] == SpeedUnit.MPH.value:
speed = SpeedUnit.convert_mph_to_kmh(speed)
if gps_tags[ExifTags.GPS_SPEED_REF.value] == SpeedUnit.KNOTS.value:
speed = SpeedUnit.convert_knots_to_kmh(speed)
return speed
# no gps speed tag found
return None
def add_gps_tags(path: str, gps_tags: {str: any}):
"""This method will add gps tags to the photo found at path"""
exif_dict = piexif.load(path)
for tag, tag_value in gps_tags.items():
exif_dict["GPS"][tag] = tag_value
exif_bytes = piexif.dump(exif_dict)
piexif.insert(exif_bytes, path)
def create_required_gps_tags(timestamp_gps: float,
latitude: float,
longitude: float) -> {str: any}:
"""This method will creates gps required tags """
exif_gps = {}
dms_latitude = __dd_to_dms(latitude)
dms_longitude = __dd_to_dms(longitude)
day = int(timestamp_gps / 86400) * 86400
hour = int((timestamp_gps - day) / 3600)
minutes = int((timestamp_gps - day - hour * 3600) / 60)
seconds = int(timestamp_gps - day - hour * 3600 - minutes * 60)
day_timestamp_str = datetime.date.fromtimestamp(day).strftime("%Y:%m:%d")
exif_gps[piexif.GPSIFD.GPSTimeStamp] = [(hour, 1),
(minutes, 1),
(seconds, 1)]
exif_gps[piexif.GPSIFD.GPSDateStamp] = day_timestamp_str
exif_gps[piexif.GPSIFD.GPSLatitudeRef] = "S" if latitude < 0 else "N"
exif_gps[piexif.GPSIFD.GPSLatitude] = dms_latitude
exif_gps[piexif.GPSIFD.GPSLongitudeRef] = "W" if longitude < 0 else "E"
exif_gps[piexif.GPSIFD.GPSLongitude] = dms_longitude
return exif_gps
def add_optional_gps_tags(exif_gps: {str: any},
speed: float,
altitude: float,
compass: float) -> {str: any}:
"""This method will append optional tags to exif_gps tags dictionary"""
if speed:
exif_gps[piexif.GPSIFD.GPSSpeed] = (speed, 1)
exif_gps[piexif.GPSIFD.GPSSpeedRef] = SpeedUnit.KMH.value
if altitude:
exif_gps[piexif.GPSIFD.GPSAltitude] = (altitude, 1)
sea_level = SeaLevel.BELOW.value if altitude < 0 else SeaLevel.ABOVE.value
exif_gps[piexif.GPSIFD.GPSAltitudeRef] = sea_level
if compass:
exif_gps[piexif.GPSIFD.GPSImgDirection] = (compass, 1)
exif_gps[piexif.GPSIFD.GPSImgDirectionRef] = CardinalDirection.TrueNorth.value
def __dd_to_dms(decimal_degree) -> [(float, int)]:
decimal_degree_abs = abs(decimal_degree)
degrees = math.floor(decimal_degree_abs)
minute_float = (decimal_degree_abs - degrees) * 60
minute = math.floor(minute_float)
seconds = round((minute_float - minute) * 60 * 100)
return [(degrees, 1), (minute, 1), (seconds, 100)]
| 38.871186
| 99
| 0.669574
| 1,880
| 0.163949
| 0
| 0
| 351
| 0.03061
| 0
| 0
| 3,165
| 0.276009
|
c8559b8c4871bf63b43c48e1fd50163d6997b0b7
| 1,505
|
py
|
Python
|
NPTEL - 2017 PDSA/Nptel_EX_5.py
|
Siddharth2016/PYTHON3_prog
|
9dfa258d87f5b00779d39d9de9a49c1c6cea06be
|
[
"MIT"
] | 2
|
2019-02-26T14:06:53.000Z
|
2019-02-27T17:13:01.000Z
|
NPTEL - 2017 PDSA/Nptel_EX_5.py
|
Siddharth2016/PYTHON3_prog
|
9dfa258d87f5b00779d39d9de9a49c1c6cea06be
|
[
"MIT"
] | null | null | null |
NPTEL - 2017 PDSA/Nptel_EX_5.py
|
Siddharth2016/PYTHON3_prog
|
9dfa258d87f5b00779d39d9de9a49c1c6cea06be
|
[
"MIT"
] | 2
|
2017-12-26T07:59:57.000Z
|
2018-06-24T03:35:05.000Z
|
# NPTEL EXERCISE 5
courses = {}
students = []
grades = {}
f = 0
while(True):
S = input()
if S=="EndOfInput":
break
if S=='Courses':
f = 1
continue
elif S=='Students':
f = 2
continue
elif S=='Grades':
f = 3
continue
if f==1 :
S = S.split("~")
courses[S[0]] = S[2:]
elif f==2:
S = S.split("~")
students += [S]
elif f==3:
S = S.split("~")
try:
grades[S[0]].append(S[1:])
except:
grades[S[0]] = [S[1:]]
#print(courses)
#print(students)
#print(grades)
students.sort()
for stud in students:
roll = stud[0]
gpa = 0
count = 0
for key in grades.keys():
for res in grades[key]:
if roll==res[2]:
count += 1
if res[3]=='A':
gpa += 10
elif res[3]=='AB':
gpa += 9
elif res[3]=='B':
gpa += 8
elif res[3]=='BC':
gpa += 7
elif res[3]=='C':
gpa += 6
elif res[3]=='CD':
gpa += 5
elif res[3]=='D':
gpa += 4
if gpa!=0:
gpa = (gpa/count)
ans = "~".join(stud) + "~" + "{0:3.1f}".format(gpa)
else:
ans = "~".join(stud) + "~" + str(gpa)
print(ans)
| 22.462687
| 60
| 0.348173
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 161
| 0.106977
|
c8561da14e0cfa8d9fef29a387534b2cad910276
| 5,122
|
py
|
Python
|
pytests/ent_backup_restore/provider/provider.py
|
sumedhpb/testrunner
|
9ff887231c75571624abc31a3fb5248110e01203
|
[
"Apache-2.0"
] | 14
|
2015-02-06T02:47:57.000Z
|
2020-03-14T15:06:05.000Z
|
pytests/ent_backup_restore/provider/provider.py
|
sumedhpb/testrunner
|
9ff887231c75571624abc31a3fb5248110e01203
|
[
"Apache-2.0"
] | 3
|
2019-02-27T19:29:11.000Z
|
2021-06-02T02:14:27.000Z
|
pytests/ent_backup_restore/provider/provider.py
|
sumedhpb/testrunner
|
9ff887231c75571624abc31a3fb5248110e01203
|
[
"Apache-2.0"
] | 108
|
2015-03-26T08:58:49.000Z
|
2022-03-21T05:21:39.000Z
|
#!/usr/bin/python3
import abc
import re
import logger
class Provider(metaclass=abc.ABCMeta):
def __init__(self, access_key_id, bucket, cacert, endpoint, no_ssl_verify, region, secret_access_key, staging_directory):
"""Instantiate a new 'Provider' object. Should only be created by implementing super classes. Defines all the
required shared functionality between cloud providers.
"""
self.log = logger.Logger.get_logger()
self.access_key_id = access_key_id
self.bucket = bucket
self.cacert = cacert
self.endpoint = endpoint
self.no_ssl_verify = no_ssl_verify
self.region = region
self.secret_access_key = secret_access_key
self.staging_directory = staging_directory
self.backup_pattern = "([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3])_([0-5][0-9])_([0-5][0-9]|60)(\.[0-9]+)?(([Zz])|([\+|\-]([01][0-9]|2[0-3])_[0- 5][0-9]))"
self.bucket_pattern = r".*\-[0-9a-z]{32}"
self.rift_pattern = r"index_\d+.sqlite.\d+"
@abc.abstractmethod
def schema_prefix(self):
"""Returns the schema prefix expected by cbbackupmgr for the given cloud provider."""
raise NotImplementedError
@abc.abstractmethod
def setup(self):
"""Run any pre-testing setup. For most cloud providers this will mean ensuring the bucket exists and is ready
for cbbackupmgr to use.
"""
raise NotImplementedError
@abc.abstractmethod
def teardown(self, info, remote_client):
"""Run any post-testing teardown operations. For most cloud providers this will mean removing any objects
created by cbbackupgmr.
Each cloud provider should ensure that they use the common '_remove_staging_directory' function to cleanup the
staging directory.
"""
raise NotImplementedError
@abc.abstractmethod
def remove_bucket(self):
"""Remove the storage bucket being used for testing."""
raise NotImplementedError
@abc.abstractmethod
def get_json_object(self, key):
"""Returns the object from the object store with the given key. The object must contain valid JSON."""
raise NotImplementedError
@abc.abstractmethod
def list_objects(self, prefix=None):
"""Returns a list of all the objects in the object store. If a prefix is provided, only objects with the given
prefix will be returned.
NOTE: This should return a list of paths to objects e.g. /repo/backup/backup-meta.json
"""
raise NotImplementedError
@abc.abstractmethod
def delete_objects(self, prefix):
"""Remove all the objects from the object store with the given prefix."""
raise NotImplementedError
def list_objects_matching_regex(self, pattern, prefix=None, group=True):
"""List all objects with the given prefix that match a given regex."""
objects = set()
for obj in self.list_objects(prefix=prefix):
res = pattern.search(obj)
if res:
if group:
objects.add(res.group())
else:
objects.add(res)
return list(objects)
def list_backups(self, archive, repo):
"""List all the backups that currently exist in the remote given archive/repo."""
pattern = re.compile(self.backup_pattern)
return self.list_objects_matching_regex(pattern, prefix=f"{archive}/{repo}")
def list_buckets(self, archive, repo, backup):
"""List all the buckets that currently exist in the remote given archive/repo/backup."""
backup_re, bucket_re = re.escape(backup) + "/", self.bucket_pattern
backup_pattern, backup_bucket_pattern = re.compile(backup_re), re.compile(backup_re + bucket_re)
return [backup_pattern.sub('', obj) for obj in self.list_objects_matching_regex(
backup_bucket_pattern, prefix=f"{archive}/{repo}/{backup}")]
def list_rift_indexes(self, archive, repo, backup, bucket):
"""List all the rift indexes that exist in the remote given archive/repo/backup/bucket."""
pattern = re.compile(self.rift_pattern)
return self.list_objects_matching_regex(pattern, prefix=f"{archive}/{repo}/{backup}/{bucket}/data/")
@abc.abstractmethod
def num_multipart_uploads(self):
"""Returns the number of in-progress multipart uploads (the setup/teardown) logic should abort any multipart
uploads in the event that cbbackupmgr crashes and doesn't do it itself. This will allow testing to continue
without leaking logic into the following tests.
"""
raise NotImplementedError
def _remove_staging_directory(self, info, remote_client):
if info in ('linux', 'mac'):
command = f"rm -rf {self.staging_directory}"
output, error = remote_client.execute_command(command)
remote_client.log_command_output(output, error)
elif info == 'windows':
remote_client.remove_directory_recursive(self.staging_directory)
| 43.042017
| 194
| 0.664779
| 5,065
| 0.988872
| 0
| 0
| 2,078
| 0.405701
| 0
| 0
| 2,193
| 0.428153
|
c856f5773044e5156600553546b88ed62d7ca1dd
| 235
|
py
|
Python
|
trip_distributer/admin.py
|
princegoyani/TRIP-DISTRIBUTER
|
22793ae603508c9388d03f044759dc925462595a
|
[
"BSD-3-Clause"
] | null | null | null |
trip_distributer/admin.py
|
princegoyani/TRIP-DISTRIBUTER
|
22793ae603508c9388d03f044759dc925462595a
|
[
"BSD-3-Clause"
] | null | null | null |
trip_distributer/admin.py
|
princegoyani/TRIP-DISTRIBUTER
|
22793ae603508c9388d03f044759dc925462595a
|
[
"BSD-3-Clause"
] | null | null | null |
from django.contrib import admin
from .models import User , Trip, Notification , Spending
# Register your models here.
admin.site.register(User)
admin.site.register(Trip)
admin.site.register(Notification)
admin.site.register(Spending)
| 29.375
| 56
| 0.808511
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 28
| 0.119149
|
c857514f1506cd0bc10959833eb8dedcb9973928
| 70,500
|
py
|
Python
|
cifar_net_search/syclop_cifar_gru_no_upsample.py
|
sashkarivkind/imagewalker
|
999e1ae78cfe1512e1be894d9e7891a7d0c41233
|
[
"Apache-2.0"
] | 2
|
2021-04-28T13:33:45.000Z
|
2021-11-09T14:31:09.000Z
|
cifar_net_search/syclop_cifar_gru_no_upsample.py
|
sashkarivkind/imagewalker
|
999e1ae78cfe1512e1be894d9e7891a7d0c41233
|
[
"Apache-2.0"
] | null | null | null |
cifar_net_search/syclop_cifar_gru_no_upsample.py
|
sashkarivkind/imagewalker
|
999e1ae78cfe1512e1be894d9e7891a7d0c41233
|
[
"Apache-2.0"
] | 1
|
2021-03-07T13:25:59.000Z
|
2021-03-07T13:25:59.000Z
|
'''
The follwing code runs a test lstm network on the CIFAR dataset
I will explicitly write the networks here for ease of understanding
with cnn_sropout = 0.4 and rnn dropout = 0.2and lr = 1e-3 and res = 8
################# cnn_gru_True Validation Accuracy = [0.3408, 0.411, 0.44, 0.4448, 0.466, 0.4684, 0.4802, 0.4846, 0.4848, 0.512, 0.5098, 0.5154, 0.5212, 0.5276, 0.5352, 0.5306, 0.5354, 0.5388, 0.5374, 0.5418, 0.55, 0.537, 0.5556, 0.543, 0.5458, 0.548, 0.5462, 0.554, 0.5596, 0.5438]
################# cnn_gru_True Training Accuracy = [0.2734222, 0.3752889, 0.40646666, 0.42904446, 0.44386667, 0.45495555, 0.46284443, 0.47604445, 0.4802889, 0.48911113, 0.4968222, 0.4992, 0.50622225, 0.51126665, 0.5147333, 0.52275556, 0.5224444, 0.52537775, 0.5287778, 0.53275555, 0.53286666, 0.5396444, 0.5384222, 0.5423333, 0.542, 0.5485333, 0.547, 0.5458, 0.5524222, 0.55104446]
with cnn_sropout = 0.4 and rnn dropout = 0.2and lr = 1e-3 and res = 16
################# extended_cnn_one_img Validation Accuracy = [0.416, 0.4696, 0.5168, 0.5424, 0.557, 0.5658, 0.5782, 0.5884, 0.5902, 0.5978, 0.5996, 0.6034, 0.6122, 0.606, 0.6112, 0.6104, 0.618, 0.6158, 0.6162, 0.6132, 0.6132, 0.6178, 0.6122, 0.626, 0.6168, 0.6164, 0.62, 0.6288, 0.6304, 0.6328]
################# extended_cnn_one_img Training Accuracy = [0.2964, 0.42106667, 0.46775556, 0.49335554, 0.51544446, 0.52937776, 0.5436889, 0.5556889, 0.56684446, 0.57053334, 0.5798444, 0.58955556, 0.5917778, 0.59702224, 0.6014444, 0.60657775, 0.6142222, 0.6137556, 0.6195111, 0.6193111, 0.6226444, 0.6248, 0.6245555, 0.62575555, 0.6321333, 0.6330889, 0.6327556, 0.63677776, 0.63571113, 0.6396889]
################# cnn_convlstm_True Validation Accuracy = [0.4038, 0.4724, 0.521, 0.5402, 0.52, 0.5516, 0.5658, 0.5654, 0.5904, 0.5866, 0.6024, 0.6026, 0.6114, 0.6224, 0.5982, 0.6178, 0.6314, 0.6208, 0.6158, 0.6352, 0.6412, 0.63, 0.6424, 0.6278, 0.6336, 0.6278, 0.646, 0.6272, 0.6414, 0.6406]
################# cnn_convlstm_True Training Accuracy = [0.2964, 0.42106667, 0.46775556, 0.49335554, 0.51544446, 0.52937776, 0.5436889, 0.5556889, 0.56684446, 0.57053334, 0.5798444, 0.58955556, 0.5917778, 0.59702224, 0.6014444, 0.60657775, 0.6142222, 0.6137556, 0.6195111, 0.6193111, 0.6226444, 0.6248, 0.6245555, 0.62575555, 0.6321333, 0.6330889, 0.6327556, 0.63677776, 0.63571113, 0.6396889]
with cnn_sropout = 0.4 and rnn dropout = 0.2 and lr = 5e-4 with res = 8 out.812929
################# cnn_gru_True Validation Accuracy = [0.3452, 0.41, 0.4206, 0.4382, 0.4626, 0.4786, 0.481, 0.4984, 0.5006, 0.5038, 0.5112, 0.5022, 0.522, 0.527, 0.5314, 0.5362, 0.5434,
0.53, 0.543, 0.5534, 0.5528, 0.5456, 0.548, 0.5492, 0.5602, 0.5662, 0.5554, 0.5626, 0.5732, 0.5608, 0.5612, 0.5678, 0.578, 0.5572, 0.575, 0.5674, 0.5674, 0.5678, 0.574, 0.5832, 0.567, 0.5676, 0.5872, 0.5856, 0.5908, 0.5916, 0.586, 0.5628, 0.582, 0.5772, 0.5702, 0.5756, 0.5792, 0.5726, 0.59, 0.5784, 0.576, 0.5752, 0.5894, 0.5844, 0.583, 0.5832, 0.5782, 0.5696, 0.5812, 0.589, 0.5818, 0.5826, 0.5922, 0.5896, 0.5816, 0.5798, 0.5818, 0.5834, 0.5822, 0.5836, 0.5828, 0.569, 0.5914, 0.5822, 0.5974, 0.5928, 0.5956, 0.5936, 0.5888, 0.5932, 0.5986, 0.593, 0.5802, 0.5878, 0.5876, 0.5846, 0.6018, 0.5932, 0.5862, 0.5898, 0.5902, 0.5948, 0.5952, 0.596]
################# cnn_gru_True Training Accuracy = [0.2522, 0.35944444, 0.40026668, 0.42453334, 0.4369111, 0.45024446, 0.46413332, 0.47453332, 0.47904444, 0.48753333, 0.4946, 0.50115556, 0.50531113, 0.5134, 0.5142, 0.5196222, 0.5276667, 0.529, 0.5313778, 0.5318889, 0.5356445, 0.54084444, 0.54051113, 0.5448889, 0.54855555, 0.5504444, 0.5562889, 0.5566889, 0.55655557, 0.5622889, 0.5615111, 0.5605111, 0.5638, 0.56615555, 0.5662444, 0.56953335, 0.5730444, 0.5717555, 0.5730444, 0.57368886, 0.5764889, 0.5782222, 0.58004445, 0.5802889, 0.5833778, 0.5824222, 0.58437777, 0.5869111, 0.58375555, 0.5871556, 0.5907556, 0.58444446, 0.58846664, 0.5914889, 0.59033334, 0.59257776, 0.5913333, 0.59606665, 0.5928222, 0.59577775, 0.5945333, 0.59613335, 0.5953556, 0.59786665, 0.5990222, 0.5993556, 0.60215557, 0.60344446, 0.6027111, 0.60364443, 0.6039111, 0.6062222, 0.60364443, 0.6062667, 0.6060445, 0.6081333, 0.6075778, 0.6094, 0.60568887, 0.6079556, 0.6064444, 0.61113334, 0.61322224, 0.6088667, 0.6125778, 0.61248887, 0.61282223, 0.61244446, 0.6136444, 0.61337775, 0.6174667, 0.61248887, 0.61535555, 0.6160667, 0.6134, 0.6155556, 0.6161111, 0.6158444, 0.61855555, 0.61642224]
with cnn_sropout = 0.4 and rnn dropout = 0.2 and lr = 5e-4 with res = 8 with 500 epochs out.813849
################# cnn_gru_True Validation Accuracy = [0.3136, 0.4024, 0.4436, 0.4546, 0.4648, 0.4552, 0.4766, 0.5058, 0.5028, 0.5182, 0.522, 0.5142, 0.5306, 0.5324, 0.5302, 0.5424, 0.5392, 0.543, 0.5328, 0.5276, 0.5474, 0.549, 0.5512, 0.5326, 0.5482, 0.5558, 0.5548, 0.5594, 0.5546, 0.566, 0.559, 0.5674, 0.564, 0.5584, 0.5698, 0.5718, 0.567, 0.5618, 0.5632, 0.574, 0.5696, 0.5758, 0.5636, 0.5744, 0.5706, 0.5734, 0.5508, 0.5692, 0.5802, 0.5704, 0.572, 0.5706, 0.5888, 0.5828, 0.583, 0.5812, 0.5872, 0.5748, 0.5844, 0.5784, 0.5838, 0.5862, 0.5826, 0.5838, 0.5894, 0.5942, 0.5932, 0.5818, 0.5836, 0.5914, 0.592, 0.5956, 0.5772, 0.5936, 0.5908, 0.5808, 0.5898, 0.5734, 0.578, 0.5868, 0.578, 0.5998, 0.59, 0.5956, 0.5708, 0.585, 0.5902, 0.5922, 0.5826, 0.5936, 0.5916, 0.5846, 0.6012, 0.5852, 0.5892, 0.592, 0.5806, 0.5938, 0.5916, 0.5866, 0.5952, 0.5944, 0.5956, 0.59, 0.592, 0.5922, 0.5962, 0.5906, 0.6006, 0.5912, 0.596, 0.6004, 0.596, 0.5838, 0.5918, 0.581, 0.5912, 0.587, 0.5942, 0.586, 0.591, 0.5906, 0.583, 0.5874, 0.5976, 0.5866, 0.5884, 0.5894, 0.5968, 0.5992, 0.5912, 0.5932, 0.5828, 0.5958, 0.5878, 0.5888, 0.595, 0.5948, 0.5898, 0.5956, 0.5896, 0.5942, 0.5938, 0.5884, 0.5874, 0.5954, 0.5908, 0.5948, 0.5972, 0.5986, 0.5984, 0.5952, 0.589, 0.5892, 0.6044, 0.6028, 0.5944, 0.591, 0.6018, 0.5932, 0.5982, 0.5896, 0.598, 0.6026, 0.6028, 0.6034, 0.5916, 0.5952, 0.5932, 0.597, 0.6008, 0.6026, 0.5974, 0.5954, 0.6014, 0.5988, 0.606, 0.6056, 0.5944, 0.6048, 0.6084, 0.6026, 0.599, 0.6022, 0.6022, 0.6022, 0.601, 0.5928, 0.5988, 0.6008, 0.599, 0.6016, 0.6036, 0.6056, 0.6142, 0.6064, 0.6082, 0.6032, 0.5974, 0.6082, 0.61, 0.6032, 0.6018, 0.6026, 0.6088, 0.6014, 0.6022, 0.6094, 0.6034, 0.5938, 0.6066, 0.5838, 0.5978, 0.6012, 0.5988, 0.6062, 0.6044, 0.5946, 0.597, 0.5954, 0.5944, 0.594, 0.5934, 0.5984, 0.6038, 0.607, 0.6056, 0.5948, 0.604, 0.6012, 0.5988, 0.608, 0.601, 0.6016, 0.5996, 0.6008, 0.6048, 0.6076, 0.6038, 0.6058, 0.6038, 0.6078, 0.5968, 0.605, 0.6046, 0.5982, 0.6002, 0.6092, 0.5956, 0.605, 0.6006, 0.5998, 0.5922, 0.6044, 0.5946, 0.602, 0.6008, 0.6068, 0.6018, 0.602, 0.594, 0.6046, 0.5992, 0.6006, 0.5962, 0.6092, 0.6026, 0.5984, 0.6078, 0.6024, 0.6048, 0.6032, 0.598, 0.6072, 0.6014, 0.5888, 0.6136, 0.605, 0.6032, 0.6032, 0.5988, 0.6014, 0.5988, 0.6054, 0.6038, 0.599, 0.5976, 0.5962, 0.602, 0.6028, 0.6082, 0.5936, 0.6052, 0.6014, 0.6022, 0.5976, 0.606, 0.6038, 0.6018, 0.6066, 0.601, 0.6038, 0.601, 0.6028, 0.6104, 0.5994, 0.6048, 0.5996, 0.6054, 0.597, 0.6042, 0.6048, 0.5962, 0.5968, 0.6036, 0.598, 0.6002, 0.593, 0.5972, 0.6024, 0.6018, 0.6102, 0.601, 0.6038, 0.594, 0.6068, 0.606, 0.6138, 0.6048, 0.602, 0.591, 0.6118, 0.6074, 0.5994, 0.5962, 0.6048, 0.6006, 0.6058, 0.6026, 0.6032, 0.6028, 0.608, 0.6036, 0.5968, 0.6004, 0.6054, 0.601, 0.6038, 0.6058, 0.6052, 0.5996, 0.6044, 0.598, 0.5986, 0.6018, 0.6002, 0.6064, 0.6064, 0.5918, 0.6004, 0.601, 0.605, 0.5974, 0.608, 0.608, 0.5968, 0.6042, 0.6034, 0.5984, 0.597, 0.6006, 0.6038, 0.603, 0.6004, 0.594, 0.5924, 0.5986, 0.5994, 0.6108, 0.5988, 0.6052, 0.6006, 0.6028, 0.602, 0.6016, 0.5996, 0.6012, 0.6014, 0.6042, 0.5988, 0.6064, 0.5982, 0.6, 0.6066, 0.609, 0.6096, 0.5948, 0.605, 0.6036, 0.5952, 0.6086, 0.6008, 0.5934, 0.6066, 0.608, 0.5998, 0.6042, 0.6016, 0.6018, 0.6062, 0.6068, 0.6194, 0.6032, 0.6116, 0.6058, 0.6022, 0.6056, 0.6, 0.6034, 0.6054, 0.6124, 0.6092, 0.603, 0.6016, 0.6018, 0.6084, 0.6026, 0.6154, 0.6034, 0.6118, 0.6102, 0.601, 0.603, 0.606, 0.6114, 0.6024, 0.6112, 0.6094, 0.6026, 0.598, 0.6074, 0.6066, 0.602, 0.6058, 0.603, 0.6078, 0.604, 0.605, 0.607, 0.605, 0.6044, 0.6026, 0.6006, 0.5988, 0.6056, 0.6016, 0.6054, 0.6004, 0.6024, 0.6092, 0.5954, 0.5962, 0.6036, 0.6008, 0.602, 0.6088, 0.6022, 0.6052, 0.5982, 0.6036, 0.601, 0.5956, 0.6024, 0.6104, 0.6028, 0.5898, 0.5994, 0.5946, 0.6054, 0.6064, 0.6102, 0.609, 0.6024, 0.599, 0.601, 0.6074, 0.6018, 0.595, 0.6034, 0.6028, 0.6008, 0.5996, 0.5992, 0.6006, 0.5996, 0.6018, 0.5968, 0.6016, 0.602, 0.6018]
################# cnn_gru_True Training Accuracy = [0.26466668, 0.36813334, 0.40513334, 0.4256, 0.44268888, 0.4564222, 0.46568888, 0.4769111, 0.48531112, 0.491, 0.49744445, 0.50593334, 0.5138222, 0.51564443, 0.5213778, 0.5223778, 0.5283778, 0.5326222, 0.53275555, 0.53764445, 0.54586667, 0.5451556, 0.54735553, 0.5526, 0.5533111, 0.55424446, 0.5568889, 0.56262225, 0.5646, 0.5660667, 0.56333333, 0.5680889, 0.5706889, 0.5710889, 0.5733111, 0.5754667, 0.57637775, 0.5764667, 0.5768222, 0.5766889, 0.57817775, 0.5839555, 0.5825111, 0.5855778, 0.58424443, 0.5876, 0.58786666, 0.58806664, 0.58966666, 0.5938445, 0.5907111, 0.5939556, 0.59331113, 0.59475553, 0.5945333, 0.59515554, 0.59853333, 0.59635556, 0.6008667, 0.59893334, 0.5993556, 0.6007111, 0.6008889, 0.6032889, 0.6000444, 0.6049778, 0.60246664, 0.60384446, 0.60564446, 0.6048889, 0.6089778, 0.6061111, 0.60966665, 0.60686666, 0.60895556, 0.60973334, 0.60944444, 0.6095778, 0.6099778, 0.6114889, 0.6125778, 0.6149333, 0.61322224, 0.6185333, 0.6148, 0.61682224, 0.6157333, 0.6142, 0.6166222, 0.6152, 0.6158222, 0.61653334, 0.62155557, 0.6175333, 0.6168889, 0.61995554, 0.6193778, 0.6175778, 0.6207111, 0.62277776, 0.62144446, 0.62013334, 0.62328887, 0.62633336, 0.62722224, 0.62171113, 0.6248222, 0.62586665, 0.6251778, 0.6256889, 0.6254, 0.6249111, 0.62648886, 0.62468886, 0.6260889, 0.6276, 0.6266, 0.6273556, 0.6258444, 0.6287778, 0.6277111, 0.63026667, 0.6285333, 0.62846667, 0.62813336, 0.6326889, 0.6296, 0.63177776, 0.6323778, 0.6324, 0.63215554, 0.63104445, 0.6322889, 0.6328667, 0.63173336, 0.63515556, 0.6334, 0.63575554, 0.63404447, 0.6330444, 0.63526666, 0.6344444, 0.6337778, 0.63335556, 0.63386667, 0.6336222, 0.6369333, 0.63553333, 0.63713336, 0.63677776, 0.6365333, 0.6353111, 0.6347333, 0.6371111, 0.637, 0.63688886, 0.6344, 0.6371111, 0.636, 0.6394889, 0.638, 0.63946664, 0.63566667, 0.63857776, 0.6413111, 0.6376889, 0.63493335, 0.6387111, 0.6397778, 0.64055556, 0.64073336, 0.63766664, 0.6411333, 0.6392222, 0.6402444, 0.6413556, 0.64077777, 0.6387333, 0.6377778, 0.63884443, 0.64177775, 0.6401111, 0.64, 0.6415111, 0.64166665, 0.6448, 0.6414667, 0.64228886, 0.6416889, 0.63975555, 0.6437778, 0.6429778, 0.6421555, 0.64346665, 0.64155555, 0.64284444, 0.6429333, 0.64415556, 0.64611113, 0.64555556, 0.6452444, 0.64522225, 0.64824444, 0.64275557, 0.64593333, 0.64662224, 0.6431556, 0.6444, 0.6441111, 0.64482224, 0.6471556, 0.64584446, 0.6441778, 0.6448, 0.6446, 0.64775556, 0.64764446, 0.64677775, 0.646, 0.6472222, 0.6472, 0.6481111, 0.6465333, 0.6469778, 0.6510222, 0.64677775, 0.6503556, 0.647, 0.64944446, 0.64655554, 0.64724445, 0.65128887, 0.64955556, 0.6482222, 0.6444889, 0.6488, 0.64797777, 0.6509111, 0.6520444, 0.65022224, 0.6516, 0.645, 0.65044445, 0.64702225, 0.65264446, 0.6487778, 0.64944446, 0.6492222, 0.6536889, 0.6499778, 0.6486222, 0.6539556, 0.64806664, 0.6488, 0.65055555, 0.6541778, 0.6518667, 0.6526667, 0.65155554, 0.6526, 0.65202224, 0.64977777, 0.65315557, 0.65128887, 0.64773333, 0.6536222, 0.65335554, 0.6523778, 0.6494, 0.6510889, 0.6496889, 0.6514, 0.65117776, 0.65375555, 0.65415555, 0.6495778, 0.65055555, 0.6507556, 0.65346664, 0.6548, 0.65115553, 0.6553111, 0.6517778, 0.6532889, 0.6548, 0.6546222, 0.65533334, 0.6521556, 0.6543555, 0.65217775, 0.65275556, 0.6522, 0.65555555, 0.65482223, 0.6541111, 0.6546889, 0.65533334, 0.6541111, 0.6554, 0.6537333, 0.6537778, 0.6528444, 0.65331113, 0.65455556, 0.6544, 0.65477777, 0.6572667, 0.65606666, 0.6556, 0.65606666, 0.6553556, 0.65353334, 0.6518, 0.6536667, 0.65595555, 0.65775555, 0.65657777, 0.6549778, 0.65764445, 0.6557111, 0.6556, 0.6590222, 0.6538889, 0.6591778, 0.65444446, 0.6562, 0.6564, 0.6607778, 0.6556444, 0.65826666, 0.6562, 0.6581333, 0.6578889, 0.65853333, 0.6584, 0.65782225, 0.6594667, 0.6552, 0.6586667, 0.658, 0.6588, 0.66135556, 0.65668887, 0.6561555, 0.6581111, 0.6599111, 0.6588, 0.6568, 0.6608667, 0.6603778, 0.6602889, 0.6592, 0.6594667, 0.65706664, 0.6567111, 0.6608667, 0.65886664, 0.65966666, 0.66035557, 0.66175556, 0.65584445, 0.65966666, 0.6606889, 0.65922225, 0.6595111, 0.65515554, 0.65984446, 0.6612667, 0.6605333, 0.662, 0.6613778, 0.6611556, 0.6580667, 0.66135556, 0.65882224, 0.65655553, 0.65955555, 0.65988886, 0.6593556, 0.65808886, 0.6616667, 0.6614222, 0.6634, 0.6632222, 0.6618, 0.6599778, 0.66013336, 0.6608, 0.66146666, 0.65944445, 0.65966666, 0.66135556, 0.66004443, 0.6608222, 0.6630222, 0.6620889, 0.66195554, 0.6582222, 0.6606445, 0.6629556, 0.66164446, 0.66055554, 0.6608889, 0.66175556, 0.6606, 0.6614222, 0.6640222, 0.66364443, 0.6643556, 0.66191113, 0.6626667, 0.6630222, 0.6656889, 0.6631333, 0.66293335, 0.6617778, 0.6610889, 0.6614889, 0.662, 0.6593111, 0.6612667, 0.66102225, 0.6631333, 0.66395557, 0.66282225, 0.66713333, 0.6623778, 0.6648222, 0.6622667, 0.66746664, 0.6616667, 0.6630222, 0.6622, 0.6624, 0.66415554, 0.662, 0.6612222, 0.6618222, 0.6629111, 0.66426665, 0.66315556, 0.6640667, 0.6640889, 0.66533333, 0.6626, 0.6617778, 0.66477776, 0.6654889, 0.66477776, 0.6624889, 0.6622222, 0.6642, 0.6663111, 0.66293335, 0.6636889, 0.6643556, 0.6652, 0.6680889, 0.6658222, 0.66415554, 0.6677778, 0.6622889, 0.6688, 0.6630222, 0.66848886, 0.66355556, 0.6624889, 0.6658222, 0.66602224, 0.6631778, 0.6618889, 0.6654222, 0.6662889, 0.66726667, 0.66384447, 0.6662, 0.66477776, 0.6650889, 0.66293335, 0.66484445, 0.66371113, 0.6646, 0.6661556, 0.66191113, 0.6656889, 0.6649333, 0.66686666, 0.66544443, 0.66624445, 0.66455555, 0.6698222, 0.6665556, 0.6648, 0.6663111, 0.66455555, 0.6653778, 0.6675556, 0.66404444, 0.66484445, 0.66617775]
with cnn_dropout = 0.2 and rnn dropout = 0.2and lr = 5e-4 with res = 8 out.812847
################# cnn_gru_True Validation Accuracy = [0.3598, 0.4126, 0.4454, 0.4714, 0.4722, 0.506, 0.5062, 0.5154, 0.5382, 0.5296, 0.5368, 0.5352, 0.5364, 0.5584, 0.5564, 0.5624, 0.5
704, 0.5622, 0.5612, 0.5568, 0.5656, 0.5572, 0.572, 0.5718, 0.569, 0.576, 0.5718, 0.5726, 0.5732, 0.5754, 0.5758, 0.5754, 0.5802, 0.5778, 0.5778, 0.5818, 0.5808, 0.573, 0.5764, 0.5782, 0.578, 0.5828, 0.5656, 0.5796, 0.5704, 0.5808, 0.5764, 0.5774, 0.5644, 0.5794, 0.5794, 0.5834, 0.57, 0.5724, 0.5806, 0.5784, 0.5794, 0.5834, 0.5756, 0.5786, 0.5802, 0.5746, 0.571, 0.5812, 0.569, 0.5724, 0.5794, 0.5762, 0.581, 0.5664, 0.574, 0.5782, 0.5738, 0.5714, 0.5754, 0.5716, 0.5638, 0.5696, 0.5706, 0.5758, 0.567, 0.571, 0.5716, 0.5788, 0.559, 0.5682, 0.5716, 0.5728, 0.5718, 0.5758, 0.569, 0.573, 0.5756, 0.5746, 0.5744, 0.571, 0.5762, 0.5792, 0.5688, 0.5796]
################# cnn_gru_True Training Accuracy = [0.27786666, 0.3842222, 0.42204446, 0.44537777, 0.4655111, 0.48406667, 0.49457777, 0.50564444, 0.5188889, 0.5279111, 0.5366667, 0.544, 0.5515111, 0.5573556, 0.56457776, 0.5718222, 0.5748889, 0.5826667, 0.5850222, 0.5921556, 0.59155554, 0.5960889, 0.6028889, 0.60664445, 0.6115556, 0.61553335, 0.61968887, 0.6218889, 0.6240444, 0.6262222, 0.6306889, 0.6329778, 0.6356, 0.6404, 0.6475111, 0.6451333, 0.64626664, 0.6536889, 0.65573335, 0.65842223, 0.65977776, 0.6573111, 0.6640889, 0.6664, 0.66866666, 0.6700889, 0.6704222, 0.6747556, 0.6781333, 0.6785111, 0.67693335, 0.68086666, 0.68293333, 0.6823111, 0.6862444, 0.69013333, 0.69044447, 0.6957778, 0.6952, 0.6944889, 0.69953334, 0.6963111, 0.7000222, 0.7018667, 0.7029333, 0.7018222, 0.70446664, 0.7051111, 0.7105778, 0.70993334, 0.71308887, 0.71331114, 0.71128887, 0.7160444, 0.7176222, 0.71793336, 0.71846664, 0.72062224, 0.7216222, 0.7220889, 0.72117776, 0.72617775, 0.72535557, 0.72904444, 0.72675556, 0.73215556, 0.7297556, 0.72926664, 0.7349333, 0.73224443, 0.7335778, 0.73744446, 0.73384446, 0.73735553, 0.73744446, 0.7404889, 0.73928887, 0.742, 0.7410667, 0.7395778]
with cnn_dropout = 0.4 and rnn dropout = 0.2 and lr = 5e-4 with res = 8 with 10 samples and 500 epochs out.813851
################# cnn_gru_True Validation Accuracy = [0.3354, 0.4208, 0.4522, 0.463, 0.4448, 0.4934, 0.5048, 0.5036, 0.5082, 0.5202, 0.4958, 0.5184, 0.5302, 0.5364, 0.5474, 0.5298, 0.5382, 0.5446, 0.5486, 0.5496, 0.5468, 0.5616, 0.5516, 0.5542, 0.5606, 0.5624, 0.5744, 0.5644, 0.5624, 0.5712, 0.5714, 0.5746, 0.5638, 0.5622, 0.5768, 0.5792, 0.5852, 0.5758, 0.5768, 0.5708, 0.5882, 0.5814, 0.5778, 0.5884, 0.5892, 0.5862, 0.5828, 0.5838, 0.5892, 0.58, 0.595, 0.5872, 0.58, 0.5868, 0.5888, 0.592, 0.5848, 0.5824, 0.5852, 0.5832, 0.5898, 0.5846, 0.584, 0.5942, 0.5858, 0.5918, 0.5826, 0.597, 0.5984, 0.5928, 0.5802, 0.5972, 0.5976, 0.5964, 0.5894, 0.5888, 0.5948, 0.5944, 0.594, 0.5934, 0.5952, 0.5976, 0.5994, 0.6002, 0.5926, 0.5984, 0.5976, 0.591, 0.593, 0.6076, 0.5888, 0.6018, 0.5908, 0.5964, 0.5966, 0.5968, 0.5912, 0.5976, 0.5912, 0.597, 0.5934, 0.588, 0.6014, 0.592, 0.5952, 0.606, 0.6026, 0.5932, 0.6, 0.5944, 0.5898, 0.5914, 0.5976, 0.6008, 0.5894, 0.6058, 0.6038, 0.5974, 0.5996, 0.6064, 0.6014, 0.5914, 0.6012, 0.5922, 0.5938, 0.6008, 0.6058, 0.6046, 0.6012, 0.593, 0.6, 0.6046, 0.5946, 0.5962, 0.592, 0.5968, 0.5946, 0.5966, 0.5968, 0.588, 0.6004, 0.6008, 0.592, 0.5976, 0.5998, 0.5854, 0.6012, 0.5994, 0.5908, 0.5996, 0.6056, 0.5924, 0.5974, 0.5986, 0.5926, 0.5938, 0.5902, 0.5924, 0.598, 0.5988, 0.6028, 0.601, 0.5976, 0.597, 0.6044, 0.5894, 0.5904, 0.6, 0.595, 0.5974, 0.5998, 0.594, 0.5946, 0.5968, 0.5938, 0.5858, 0.6016, 0.5934, 0.6052, 0.598, 0.608, 0.6, 0.6008, 0.5956, 0.591, 0.6024, 0.6076, 0.5986, 0.5974, 0.6004, 0.6046, 0.597, 0.6048, 0.588, 0.5902, 0.5868, 0.5928, 0.5986, 0.5994, 0.5962, 0.5946, 0.594, 0.5972, 0.592, 0.5916, 0.589, 0.6042, 0.5908, 0.5922, 0.5924, 0.5902, 0.5914, 0.6026, 0.5992, 0.5956, 0.5954, 0.6034, 0.5906, 0.6052, 0.5918, 0.6, 0.6004, 0.5912, 0.5942, 0.5972, 0.6066, 0.5946, 0.5972, 0.5854, 0.5994, 0.5954, 0.592, 0.5904, 0.5956, 0.5946, 0.5838, 0.5872, 0.5948, 0.5972, 0.5996, 0.605, 0.5962, 0.604, 0.5976, 0.6, 0.6016, 0.6014, 0.6044, 0.5928, 0.598, 0.6, 0.59, 0.5978, 0.5902, 0.5934, 0.6026, 0.5956, 0.6012, 0.5932, 0.6, 0.5952, 0.602, 0.5942, 0.5988, 0.6024, 0.597, 0.5964, 0.5882, 0.6008, 0.5958, 0.6006, 0.5964, 0.594, 0.5882, 0.6028, 0.6032, 0.5982, 0.6, 0.5988, 0.6018, 0.6028, 0.609, 0.6032, 0.5954, 0.5988, 0.6074, 0.6014, 0.6086, 0.6002, 0.605, 0.603, 0.6058, 0.6084, 0.5894, 0.6046, 0.6006, 0.605, 0.5972, 0.5964, 0.5972, 0.603, 0.5986, 0.601, 0.5972, 0.6058, 0.6028, 0.596, 0.603, 0.598, 0.6008, 0.5958, 0.5906, 0.6024, 0.6024, 0.6014, 0.6078, 0.6006, 0.5996, 0.603, 0.6068, 0.6046, 0.6064, 0.5948, 0.5988, 0.6074, 0.6024, 0.605, 0.5974, 0.6014, 0.6054, 0.5966, 0.6006, 0.601, 0.592, 0.6108, 0.5944, 0.6008, 0.599, 0.6072, 0.6034, 0.5964, 0.6104, 0.592, 0.6044, 0.6026, 0.6032, 0.6058, 0.6094, 0.6042, 0.6062, 0.6016, 0.6084, 0.6028, 0.608, 0.604, 0.6012, 0.6012, 0.6072, 0.6008, 0.607, 0.6018, 0.597, 0.6008, 0.6092, 0.6044, 0.594, 0.6026, 0.6082, 0.6078, 0.6092, 0.6064, 0.6052, 0.6052, 0.6004, 0.6078, 0.6102, 0.6, 0.615, 0.605, 0.5942, 0.6044, 0.6084, 0.6002, 0.6034, 0.5998, 0.5982, 0.5974, 0.598, 0.601, 0.597, 0.6062, 0.6036, 0.6048, 0.599, 0.604, 0.607, 0.6036, 0.5992, 0.6018, 0.6022, 0.6044, 0.5984, 0.6006, 0.5986, 0.6056, 0.6062, 0.5942, 0.6032, 0.6026, 0.5994, 0.6064, 0.599, 0.6008, 0.5986, 0.5984, 0.5962, 0.5972, 0.6016, 0.6014, 0.604, 0.6026, 0.6002, 0.6076, 0.605, 0.5988, 0.6006, 0.6006, 0.5992, 0.5994, 0.6016, 0.601, 0.5924, 0.597, 0.5998, 0.6012, 0.6064, 0.5968, 0.6012, 0.604, 0.603, 0.602, 0.595, 0.6044, 0.5952, 0.6016, 0.6058, 0.6012, 0.6042, 0.5966, 0.6054, 0.6066, 0.6016, 0.594, 0.6042, 0.607, 0.6038, 0.5942, 0.6064, 0.6044, 0.6022, 0.6056, 0.6036, 0.594, 0.605, 0.6042, 0.6062, 0.591, 0.5988, 0.6056, 0.608, 0.6014, 0.605, 0.5996, 0.6046, 0.6066, 0.6032, 0.5998, 0.6028, 0.6, 0.5948, 0.6046, 0.6066, 0.603, 0.6038, 0.6066, 0.6034, 0.6034, 0.5978, 0.6014, 0.602, 0.592, 0.6008, 0.6066, 0.6046, 0.6072, 0.6106, 0.6062, 0.6074, 0.5986, 0.6034]
################# cnn_gru_True Training Accuracy = [0.24648888, 0.3745778, 0.41557777, 0.43804446, 0.4576, 0.4678, 0.47815555, 0.4868, 0.49584445, 0.5020667, 0.50942224, 0.5155333, 0.51953334, 0.52253336, 0.5287778, 0.5311555, 0.5374, 0.5400222, 0.54744446, 0.54553336, 0.55102223, 0.55517775, 0.5588667, 0.55873334, 0.56222224, 0.56906664, 0.56704444, 0.57048887, 0.5709556, 0.57553333, 0.58104444, 0.57677776, 0.5827111, 0.5832, 0.58533335, 0.5862667, 0.5885556, 0.5909333, 0.5918, 0.59326667, 0.5958222, 0.5950222, 0.59848887, 0.59871113, 0.6015555, 0.60064447, 0.60433334, 0.6062222, 0.6030667, 0.6063333, 0.6067333, 0.6074889, 0.60944444, 0.6112889, 0.61002225, 0.61248887, 0.6134, 0.61333334, 0.6154, 0.6148, 0.61473334, 0.618, 0.6176222, 0.61884445, 0.6212889, 0.62226665, 0.6203778, 0.62186664, 0.6224667, 0.626, 0.6241111, 0.6243333, 0.62524444, 0.6258889, 0.6276444, 0.62704444, 0.62773335, 0.62866664, 0.62637776, 0.62784445, 0.63368887, 0.63137776, 0.63233334, 0.6337778, 0.63453335, 0.6339778, 0.6327556, 0.6346667, 0.6375333, 0.63571113, 0.6359111, 0.63633335, 0.63897777, 0.6382667, 0.6386667, 0.6386667, 0.6402, 0.6410889, 0.63853335, 0.6414222, 0.6431111, 0.64084446, 0.6423333, 0.6404222, 0.64386666, 0.6427778, 0.64442223, 0.64526665, 0.6431778, 0.6445111, 0.6468222, 0.6451333, 0.6484889, 0.64537776, 0.64544445, 0.6438889, 0.65073335, 0.6497333, 0.6512667, 0.6492222, 0.64784443, 0.64622223, 0.6495111, 0.6498, 0.6488889, 0.6512667, 0.6499111, 0.6527333, 0.6570889, 0.65253335, 0.65371114, 0.65015554, 0.6525111, 0.6505778, 0.64982224, 0.65437776, 0.6553778, 0.6556889, 0.6545333, 0.65713334, 0.65573335, 0.6571111, 0.65706664, 0.6573333, 0.65397775, 0.6564889, 0.6561111, 0.65691113, 0.65595555, 0.6564889, 0.6577778, 0.65757775, 0.6575111, 0.65835553, 0.6568889, 0.65746665, 0.65602225, 0.6579111, 0.65724444, 0.6560444, 0.6582222, 0.65844446, 0.6604667, 0.6612667, 0.6575111, 0.6612667, 0.6634222, 0.6617333, 0.6640889, 0.6603111, 0.66286665, 0.66135556, 0.6610889, 0.6615555, 0.6611556, 0.6604889, 0.66477776, 0.6643556, 0.6623333, 0.6612222, 0.66353333, 0.6625556, 0.66186666, 0.66333336, 0.66395557, 0.66355556, 0.66575557, 0.66433334, 0.6652, 0.6616667, 0.66602224, 0.6647556, 0.6646444, 0.66708887, 0.6645333, 0.6630667, 0.66844445, 0.6675111, 0.668, 0.6643556, 0.6670222, 0.6701111, 0.6662222, 0.66546667, 0.66364443, 0.6655333, 0.6684667, 0.6691778, 0.66922224, 0.6661111, 0.6691778, 0.66804445, 0.6721333, 0.6696889, 0.66775554, 0.66642225, 0.6698, 0.66884446, 0.6692889, 0.66713333, 0.66962224, 0.6699778, 0.67197776, 0.6676222, 0.6693556, 0.66926664, 0.67282224, 0.6721778, 0.6653111, 0.67164445, 0.6734222, 0.66951114, 0.67384446, 0.6722, 0.6716889, 0.6684667, 0.67164445, 0.6717778, 0.6716, 0.67102224, 0.6719555, 0.6747111, 0.6744222, 0.67253333, 0.672, 0.67362225, 0.6738222, 0.6768889, 0.6722, 0.67182225, 0.67775553, 0.6749111, 0.67495555, 0.6774667, 0.67304444, 0.6748667, 0.6732889, 0.67513335, 0.6786444, 0.6725111, 0.6751111, 0.6779111, 0.6733111, 0.6766667, 0.67653334, 0.6767778, 0.67755556, 0.6733556, 0.6755111, 0.67646664, 0.67513335, 0.6769556, 0.6732, 0.6803778, 0.67642224, 0.67595553, 0.6792667, 0.6769111, 0.6782889, 0.67833334, 0.67917776, 0.67422223, 0.67873335, 0.6778889, 0.67495555, 0.677, 0.67962223, 0.68053335, 0.6788222, 0.67664444, 0.6814, 0.681, 0.67826664, 0.6806222, 0.68153334, 0.6809555, 0.6798667, 0.6808889, 0.67764443, 0.6803111, 0.6794222, 0.67646664, 0.6801111, 0.6809111, 0.6828667, 0.67866665, 0.68137777, 0.6797111, 0.67991114, 0.67913336, 0.6791111, 0.68164444, 0.68042225, 0.68126667, 0.6821333, 0.6833111, 0.6835778, 0.67884445, 0.68593335, 0.6798, 0.67928886, 0.682, 0.6838667, 0.6833111, 0.68648887, 0.6845111, 0.6812889, 0.6846222, 0.6825778, 0.6810222, 0.68273336, 0.68315554, 0.6806667, 0.68648887, 0.68295556, 0.6824, 0.6821111, 0.681, 0.6835333, 0.68524444, 0.68455553, 0.6817333, 0.6833111, 0.6825333, 0.68675554, 0.6819111, 0.68475556, 0.6879333, 0.68473333, 0.68384445, 0.6862222, 0.6841111, 0.6841111, 0.68277776, 0.6884, 0.6818, 0.6853778, 0.6822444, 0.68637776, 0.6852889, 0.68615556, 0.6869556, 0.6840444, 0.6870667, 0.68564445, 0.68497777, 0.68531114, 0.6839111, 0.6844, 0.68924445, 0.68635553, 0.68484443, 0.6872, 0.6852889, 0.6884889, 0.68435556, 0.68475556, 0.6860667, 0.68664443, 0.6854889, 0.6857333, 0.68864447, 0.6874889, 0.6874, 0.6852889, 0.6850889, 0.6857778, 0.6856889, 0.6898444, 0.6896667, 0.6880222, 0.68762225, 0.68873334, 0.68815553, 0.6851111, 0.68813336, 0.6874667, 0.69233334, 0.6897111, 0.6887778, 0.68846667, 0.6905778, 0.6882222, 0.69188887, 0.6883111, 0.6878, 0.6901111, 0.6859556, 0.68902224, 0.69188887, 0.6915778, 0.69206667, 0.6874889, 0.6928, 0.689, 0.6896, 0.6896667, 0.6893111, 0.68997777, 0.6876, 0.6924667, 0.6876889, 0.6892222, 0.6910889, 0.6886, 0.6886889, 0.69391114, 0.6886889, 0.69284445, 0.69211113, 0.6900667, 0.6905556, 0.6885778, 0.6871333, 0.69188887, 0.69204444, 0.6908, 0.693, 0.69355553, 0.69211113, 0.6909556, 0.6921333, 0.6925333, 0.69126666, 0.69211113, 0.69277775, 0.6929111, 0.69075555, 0.69093335, 0.69075555, 0.6912, 0.68862224, 0.69346666, 0.6921778, 0.6904889, 0.69486666, 0.69166666, 0.6924, 0.69355553, 0.69373333, 0.6925111, 0.69295555, 0.69515556, 0.69184446, 0.69206667, 0.69537777, 0.6911111, 0.6930444, 0.69335556, 0.6888667, 0.69364446, 0.6946222, 0.6948444, 0.6927111, 0.6944444, 0.6907333, 0.69357777, 0.6952222, 0.69155556, 0.6915333, 0.69537777, 0.6924889, 0.69035554, 0.69366664, 0.6966, 0.6922, 0.6918667, 0.6926, 0.6960667, 0.6926, 0.69564444, 0.69328886, 0.6952889, 0.6944444, 0.69571114, 0.69546664, 0.694, 0.6939333, 0.6952889, 0.6956667]
with cnn_dropout = 0.4 and rnn dropout = 0.2 and lr = 5e-4 with res = 8 with 5 samples and 200 epochs, hs = 256 out.836806
################# cnn_gru_True Validation Accuracy = [0.3074, 0.3502, 0.3972, 0.4236, 0.4458, 0.4612, 0.478, 0.4846, 0.4832, 0.494, 0.4936, 0.5028, 0.511, 0.5, 0.4942, 0.5186, 0.5216, 0.5274, 0.5356, 0.5306, 0.5296, 0.535, 0.5346, 0.5346, 0.5448, 0.534, 0.5384, 0.5442, 0.5434, 0.539, 0.5478, 0.552, 0.549, 0.5404, 0.5448, 0.5434, 0.5568, 0.5462, 0.5462, 0.5558, 0.5612, 0.5484, 0.5606, 0.5666, 0.5698, 0.5582, 0.5578, 0.5744, 0.56, 0.5466, 0.5554, 0.563, 0.5592, 0.5566, 0.5674, 0.5536, 0.5606, 0.5678, 0.5618, 0.559, 0.5676, 0.571, 0.563, 0.5646, 0.563, 0.5732, 0.565, 0.5738, 0.572, 0.5774, 0.5652, 0.5636, 0.5688, 0.5718, 0.5734, 0.558, 0.571, 0.577, 0.5674, 0.579, 0.5706, 0.5764, 0.567, 0.5772, 0.5738, 0.5688, 0.5706, 0.5712, 0.575, 0.5748, 0.5804, 0.5708, 0.566, 0.57, 0.5768, 0.5814, 0.569, 0.5796, 0.5776, 0.5702, 0.5806, 0.5834, 0.5708, 0.5748, 0.5794, 0.585, 0.5792, 0.5738, 0.5736, 0.5776, 0.5812, 0.5804, 0.5762, 0.5806, 0.5822, 0.5786, 0.5768, 0.5752, 0.5822, 0.5808, 0.5822, 0.5844, 0.5876, 0.589, 0.5872, 0.5764, 0.5808, 0.5738, 0.581, 0.5828, 0.5688, 0.577, 0.5798, 0.587, 0.5766, 0.5798, 0.5834, 0.5802, 0.5826, 0.578, 0.5786, 0.565, 0.5742, 0.5894, 0.5808, 0.5708, 0.5766, 0.5866, 0.5806, 0.577, 0.5794, 0.5802, 0.5776, 0.5824, 0.586, 0.574, 0.5804, 0.5834, 0.5834, 0.578, 0.5784, 0.571, 0.5668, 0.5798, 0.5792, 0.5748, 0.5824, 0.5628, 0.5814, 0.5796, 0.581, 0.575, 0.5802, 0.5786, 0.5802, 0.5852, 0.5818, 0.5826, 0.59, 0.5762, 0.59, 0.577, 0.5798, 0.5796, 0.581, 0.5806, 0.5774, 0.5772, 0.5798, 0.585, 0.588, 0.5856, 0.5836, 0.5858, 0.5842, 0.5826, 0.5818, 0.5764, 0.5814, 0.5812]
################# cnn_gru_True Training Accuracy = [0.24148889, 0.35346666, 0.39324445, 0.4138, 0.4300222, 0.44151112, 0.45264444, 0.4583111, 0.46951112, 0.47684443, 0.48144445, 0.4867111, 0.4934, 0.49924445, 0.5006667, 0.5047333, 0.51008886, 0.5148889, 0.51364446, 0.5214889, 0.5223111, 0.5267556, 0.5283778, 0.52993333, 0.5365111, 0.5373333, 0.5393111, 0.5411556, 0.5418444, 0.5449778, 0.54704446, 0.55093336, 0.55095553, 0.5567778, 0.5597778, 0.5578, 0.55826664, 0.5587111, 0.56135553, 0.5613111, 0.5638222, 0.5689778, 0.5655111, 0.5698, 0.56924444, 0.57137775, 0.57251114, 0.57457775, 0.5736667, 0.578, 0.5786222, 0.5777556, 0.57964444, 0.5810889, 0.5809778, 0.5831556, 0.5817556, 0.584, 0.5824444, 0.5857111, 0.58357775, 0.58804446, 0.58624446, 0.5888444, 0.5892222, 0.59157777, 0.59275556, 0.5909333, 0.5932, 0.5918667, 0.59206665, 0.59437776, 0.5966, 0.5946889, 0.59984446, 0.59511113, 0.5969333, 0.6005333, 0.59893334, 0.5999333, 0.6010889, 0.60175556, 0.6009333, 0.6008, 0.60035557, 0.6005778, 0.6013778, 0.6052667, 0.6039111, 0.6061556, 0.60355556, 0.603, 0.60344446, 0.6076889, 0.6047556, 0.6068222, 0.60406667, 0.6079778, 0.60693336, 0.6074889, 0.6102889, 0.6061111, 0.61104447, 0.61002225, 0.6100444, 0.60866666, 0.6106, 0.61131114, 0.6118889, 0.61204445, 0.61377776, 0.61182225, 0.61311114, 0.61197776, 0.61635554, 0.6154889, 0.6140444, 0.61644447, 0.61704445, 0.61833334, 0.61795557, 0.6198222, 0.6174667, 0.6174, 0.61766666, 0.6165778, 0.6163778, 0.61793333, 0.61946666, 0.62144446, 0.6208444, 0.6163333, 0.61624444, 0.6175111, 0.62124443, 0.6211333, 0.6183778, 0.62288886, 0.6214667, 0.6212889, 0.6186889, 0.6230222, 0.62313336, 0.6221333, 0.6222, 0.62453336, 0.6224889, 0.6257333, 0.6224667, 0.6254445, 0.6226889, 0.62384444, 0.6247111, 0.6238889, 0.6228222, 0.6233778, 0.6265333, 0.6257333, 0.62604445, 0.6287111, 0.6253778, 0.6269111, 0.63024443, 0.6262889, 0.62766665, 0.62615556, 0.6257333, 0.6289778, 0.6282, 0.62615556, 0.62993336, 0.6257111, 0.6315111, 0.6270222, 0.6297333, 0.6268889, 0.6298222, 0.6300667, 0.6293333, 0.62995553, 0.6311333, 0.63037777, 0.6307333, 0.62993336, 0.6329111, 0.6297333, 0.63217777, 0.6298444, 0.6303333, 0.6312, 0.6305111, 0.6304, 0.6334444, 0.63204443, 0.63064444, 0.6292, 0.63317776, 0.63226664, 0.6315778, 0.6300667]
with cnn_dropout = 0.4 and rnn dropout = 0.2 and lr = 5e-4 with res = 8 with 5 samples and 500 epochs, hs = 256 out.848468
with cnn_dropout = 0.4 and rnn dropout = 0.2 and lr = 5e-4 with res = 8 with 10 samples and 200 epochs, hs = 256 out.846686
################# cnn_gru_True Validation Accuracy = [0.3584, 0.427, 0.4594, 0.4528, 0.4746, 0.4934, 0.5094, 0.5078, 0.5196, 0.5242, 0.5342, 0.5258, 0.5292, 0.533, 0.5444, 0.5422, 0.5572, 0.5486, 0.5644, 0.5618, 0.5692, 0.5666, 0.5764, 0.5676, 0.5674, 0.5466, 0.5744, 0.5802, 0.5782, 0.5784, 0.5742, 0.5786, 0.5762, 0.5692, 0.5916, 0.5654, 0.5772, 0.5744, 0.5854, 0.582, 0.5882, 0.5814, 0.595, 0.5838, 0.5866, 0.5888, 0.5876, 0.5888, 0.5866, 0.5782, 0.5958, 0.5926, 0.5914, 0.5778, 0.5944, 0.58, 0.5944, 0.5878, 0.5926, 0.5954, 0.595, 0.5844, 0.588, 0.5934, 0.5942, 0.598, 0.5974, 0.5944, 0.5924, 0.5944, 0.5908, 0.5952, 0.5966, 0.5966, 0.5992, 0.5966, 0.5956, 0.5836, 0.5956, 0.5832, 0.5938, 0.5992, 0.5976, 0.5952, 0.5904, 0.5906, 0.5924, 0.5878, 0.6094, 0.604, 0.5884, 0.5986, 0.5922, 0.5806, 0.5932, 0.5914, 0.603, 0.5888, 0.5892, 0.588, 0.5942, 0.6024, 0.5898, 0.5992, 0.6, 0.5928, 0.5958, 0.5824, 0.6004, 0.5842, 0.5914, 0.603, 0.5946, 0.5928, 0.5956, 0.5828, 0.608, 0.6058, 0.5928, 0.5934, 0.5938, 0.5958, 0.5952, 0.598, 0.5868, 0.6004, 0.5884, 0.593, 0.5936, 0.6094, 0.5996, 0.5984, 0.5976, 0.5984, 0.6084, 0.5964, 0.5886, 0.6, 0.6, 0.596, 0.5936, 0.6028, 0.5986, 0.5992, 0.5784, 0.5882, 0.5942, 0.598, 0.605, 0.5904, 0.6, 0.586, 0.5894, 0.5984, 0.5824, 0.5944, 0.5906, 0.5922, 0.588, 0.5952, 0.593, 0.5846, 0.5932, 0.5978, 0.5942, 0.5958, 0.5992, 0.5938, 0.5914, 0.5968, 0.5946, 0.5978, 0.6004, 0.588, 0.5982, 0.5992, 0.6012, 0.5976, 0.594, 0.5912, 0.5854, 0.5954, 0.5922, 0.5908, 0.5842, 0.6034, 0.5978, 0.6012, 0.5974, 0.5924, 0.5952, 0.6004, 0.5942, 0.6014, 0.5882, 0.5978, 0.5992, 0.5938, 0.5946, 0.6006]
################# cnn_gru_True Training Accuracy = [0.25715557, 0.3822, 0.41933334, 0.4448889, 0.4602, 0.47442222, 0.48344445, 0.49475557, 0.5034222, 0.5122, 0.5181111, 0.5222, 0.5295778, 0.5335111, 0.54168886, 0.54411113, 0.54735553, 0.5506667, 0.5548667, 0.56093335, 0.5622444, 0.5642889, 0.56453335, 0.56953335, 0.57226664, 0.57644445, 0.57728887, 0.5796, 0.58304447, 0.58397776, 0.5872, 0.58673334, 0.58926666, 0.59195554, 0.59515554, 0.59691113, 0.59655553, 0.5989778, 0.60253334, 0.6033111, 0.60406667, 0.60415554, 0.6044889, 0.6035333, 0.6082444, 0.6112222, 0.60873336, 0.61075556, 0.61517775, 0.61646664, 0.61586666, 0.61855555, 0.6187111, 0.6170667, 0.62135553, 0.6203778, 0.6225111, 0.62142223, 0.62326664, 0.6216889, 0.62733334, 0.6271778, 0.6263555, 0.6276444, 0.62946665, 0.6291556, 0.63175553, 0.6302222, 0.63251114, 0.63193333, 0.63204443, 0.6330444, 0.63902223, 0.63384444, 0.6354222, 0.63735557, 0.63368887, 0.6359556, 0.63611114, 0.6389111, 0.63964444, 0.6369333, 0.6382667, 0.64206666, 0.64086664, 0.6418222, 0.64115554, 0.6411778, 0.6412, 0.6436, 0.64566666, 0.64433336, 0.6452444, 0.64735556, 0.64573336, 0.6467111, 0.6476, 0.64442223, 0.6466889, 0.64964443, 0.6488889, 0.64835554, 0.649, 0.6499556, 0.65151113, 0.65037775, 0.6474444, 0.64915556, 0.6519778, 0.6518222, 0.6531111, 0.6531778, 0.6557556, 0.65566665, 0.65246665, 0.6557556, 0.65124446, 0.6572222, 0.6570889, 0.6565111, 0.65326667, 0.6576889, 0.6542889, 0.656, 0.6550889, 0.6578444, 0.6576889, 0.65628886, 0.6586, 0.6575556, 0.6598667, 0.6606445, 0.6608, 0.6623778, 0.65937775, 0.6572222, 0.66206664, 0.6606445, 0.6616, 0.6620889, 0.6596, 0.6650222, 0.6609778, 0.66595554, 0.66095555, 0.6631111, 0.6647111, 0.66466665, 0.66433334, 0.6637333, 0.6649778, 0.6666222, 0.6659778, 0.6642889, 0.6621778, 0.6644222, 0.6658889, 0.66775554, 0.6658, 0.6669111, 0.6663778, 0.67017776, 0.67053336, 0.66724443, 0.6712889, 0.6671111, 0.668, 0.6692889, 0.66815555, 0.6710889, 0.6708, 0.6714, 0.66873336, 0.6704889, 0.66646665, 0.67095554, 0.67095554, 0.67053336, 0.6717333, 0.6691778, 0.6693778, 0.67091113, 0.6690889, 0.6716667, 0.6713333, 0.6724667, 0.67404443, 0.6733556, 0.67417777, 0.6732889, 0.6716667, 0.6734222, 0.6757333, 0.672, 0.6742, 0.67446667, 0.67435557, 0.6749111, 0.67593336, 0.6772889]
with cnn_dropout = 0.4 and rnn dropout = 0.2 and lr = 5e-4 with res = 8 with 10 samples and 500 epochs, hs = 256 out.848400
################# cnn_gru_True Validation Accuracy = [0.3422, 0.4174, 0.4266, 0.4656, 0.4878, 0.4868, 0.5108, 0.4958, 0.5298, 0.5346, 0.5252, 0.5476, 0.5532, 0.5586, 0.5608, 0.56, 0.5424, 0.552, 0.565, 0.5654, 0.5628, 0.5552, 0.566, 0.5534, 0.5706, 0.57, 0.5748, 0.5714, 0.5522, 0.581, 0.5688, 0.5702, 0.5862, 0.5836, 0.5872, 0.5894, 0.5886, 0.5872, 0.5716, 0.5824, 0.5968, 0.5756, 0.5814, 0.5984, 0.6004, 0.588, 0.5806, 0.5666, 0.5892, 0.5862, 0.6026, 0.6034, 0.5834, 0.6026, 0.588, 0.5896, 0.589, 0.5998, 0.6068, 0.5786, 0.5922, 0.5984, 0.588, 0.5906, 0.6004, 0.5922, 0.5968, 0.5908, 0.5972, 0.5956, 0.6088, 0.5998, 0.5846, 0.609, 0.6006, 0.5986, 0.5984, 0.595, 0.6062, 0.5976, 0.6038, 0.5802, 0.6034, 0.593, 0.5772, 0.6036, 0.61, 0.599, 0.594, 0.6002, 0.6044, 0.592, 0.604, 0.6078, 0.591, 0.5972, 0.6098, 0.5998, 0.6018, 0.5908, 0.5952, 0.614, 0.6072, 0.603, 0.5918, 0.603, 0.6098, 0.6048, 0.606, 0.5926, 0.6008, 0.5958, 0.5998, 0.607, 0.6032, 0.6086, 0.5964, 0.608, 0.6158, 0.5996, 0.5914, 0.6034, 0.603, 0.6036, 0.6128, 0.5926, 0.613, 0.608, 0.6028, 0.602, 0.6024, 0.612, 0.604, 0.6016, 0.6036, 0.5968, 0.6098, 0.6142, 0.5884, 0.6148, 0.5884, 0.5962, 0.6038, 0.6088, 0.6098, 0.5998, 0.602, 0.6018, 0.6102, 0.6006, 0.6066, 0.6016, 0.609, 0.6046, 0.5858, 0.6038, 0.6022, 0.6066, 0.6052, 0.6014, 0.603, 0.5988, 0.598, 0.6032, 0.609, 0.6096, 0.6096, 0.5942, 0.6008, 0.5954, 0.5966, 0.6092, 0.6054, 0.5938, 0.6022, 0.6036, 0.6066, 0.5944, 0.5964, 0.6042, 0.6046, 0.5956, 0.6056, 0.6048, 0.6092, 0.6034, 0.6014, 0.6008, 0.5894, 0.5952, 0.6084, 0.6072, 0.608, 0.6064, 0.6062, 0.6026, 0.599, 0.595, 0.5918, 0.6014, 0.5986, 0.6024, 0.5964, 0.6014, 0.6036, 0.6006, 0.6052, 0.5994, 0.605, 0.6022, 0.6058, 0.6006, 0.6038, 0.5968, 0.6096, 0.598, 0.6094, 0.5934, 0.6022, 0.604, 0.6044, 0.5962, 0.5952, 0.6002, 0.607, 0.6152, 0.6024, 0.5966, 0.6064, 0.6066, 0.6078, 0.6096, 0.6076, 0.6092, 0.598, 0.6006, 0.604, 0.6048, 0.6094, 0.6078, 0.5972, 0.6056, 0.5918, 0.6028, 0.5942, 0.5938, 0.5986, 0.602, 0.5932, 0.6038, 0.6024, 0.6042, 0.5962, 0.5994, 0.6064, 0.6028, 0.6044, 0.6074, 0.606, 0.6006, 0.5976, 0.6048, 0.608, 0.6004, 0.598, 0.6062, 0.5986, 0.5984, 0.6084, 0.6106, 0.6048, 0.5988, 0.5934, 0.5998, 0.6094, 0.6014, 0.6024, 0.6076, 0.6012, 0.6098, 0.6066, 0.6018, 0.6056, 0.5964, 0.609, 0.6002, 0.5914, 0.6038, 0.5978, 0.6022, 0.598, 0.6034, 0.6032, 0.6058, 0.608, 0.6082, 0.6048, 0.608, 0.6088, 0.6108, 0.598, 0.6016, 0.6194, 0.6022, 0.6106, 0.616, 0.5984, 0.6086, 0.6124, 0.6126, 0.6032, 0.6102, 0.6154, 0.606, 0.6088, 0.6006, 0.601, 0.5996, 0.6024, 0.6094, 0.6088, 0.604, 0.5984, 0.6076, 0.606, 0.6062, 0.6068, 0.6022, 0.6122, 0.6036, 0.6082, 0.6, 0.608, 0.6104, 0.6032, 0.6082, 0.606, 0.6076, 0.6082, 0.6086, 0.6002, 0.5988, 0.5968, 0.6116, 0.5958, 0.6006, 0.5976, 0.5986, 0.606, 0.6088, 0.6, 0.6066, 0.606, 0.6048, 0.6128, 0.6148, 0.6074, 0.606, 0.6038, 0.6014, 0.6088, 0.591, 0.6028, 0.6108, 0.6042, 0.596, 0.6042, 0.6084, 0.6064, 0.6104, 0.5972, 0.604, 0.607, 0.6078, 0.6062, 0.6054, 0.6052, 0.6122, 0.6028, 0.6034, 0.6042, 0.6114, 0.6056, 0.6072, 0.6006, 0.6014, 0.5964, 0.6074, 0.5986, 0.61, 0.603, 0.601, 0.6156, 0.6092, 0.6018, 0.603, 0.6056, 0.613, 0.6078, 0.6044, 0.6134, 0.6088, 0.612, 0.607, 0.5956, 0.6046, 0.6078, 0.5996, 0.612, 0.6066, 0.6052, 0.6046, 0.607, 0.6124, 0.5974, 0.6032, 0.6022, 0.6074, 0.6016, 0.6124, 0.5958, 0.6084, 0.5974, 0.597, 0.5938, 0.603, 0.6044, 0.612, 0.6006, 0.6048, 0.605, 0.5996, 0.603, 0.6054, 0.605, 0.6014, 0.6058, 0.5986, 0.603, 0.603, 0.6018, 0.5996, 0.6074, 0.6138, 0.6052, 0.5958, 0.5992, 0.6008, 0.6004, 0.5978, 0.6022, 0.6096, 0.6016, 0.599, 0.604, 0.6032, 0.6, 0.6056, 0.6116, 0.6002, 0.6028, 0.6002, 0.6038, 0.6056, 0.6078, 0.5992, 0.6094, 0.6082, 0.6, 0.602, 0.6034, 0.6102, 0.6114, 0.6104, 0.6136, 0.6012, 0.6062, 0.609, 0.6106, 0.5994, 0.6104, 0.6082, 0.5986, 0.6128, 0.6068, 0.5956, 0.6094, 0.6056, 0.604, 0.6074, 0.6092, 0.6052, 0.609, 0.6018, 0.5988, 0.603, 0.6046, 0.6136, 0.601, 0.6096]
################# cnn_gru_True Training Accuracy = [0.25786668, 0.3790222, 0.4166, 0.44213334, 0.45866665, 0.47633332, 0.48535556, 0.50006664, 0.50684446, 0.51404446, 0.52144444, 0.5278222, 0.5355333, 0.54028887, 0.5446, 0.54928887, 0.55237776, 0.55777776, 0.5623111, 0.5605556, 0.56864446, 0.57137775, 0.57482225, 0.5767556, 0.5815333, 0.58213335, 0.58206666, 0.5878222, 0.5881111, 0.58835554, 0.59375554, 0.5946222, 0.5930222, 0.59404445, 0.59864444, 0.6018222, 0.6023778, 0.60584444, 0.60555553, 0.60855556, 0.61115557, 0.60906667, 0.6112222, 0.6102, 0.6166667, 0.6162, 0.61568886, 0.6193333, 0.62104446, 0.61957777, 0.62513334, 0.6252667, 0.6237778, 0.6237556, 0.62633336, 0.62648886, 0.62726665, 0.6284889, 0.62704444, 0.6317111, 0.6308889, 0.6312, 0.6331111, 0.6336667, 0.63615555, 0.6372, 0.63375556, 0.63975555, 0.63442224, 0.6397111, 0.64255553, 0.64144444, 0.64077777, 0.6404222, 0.6431778, 0.6439111, 0.64435554, 0.6445111, 0.6450222, 0.64213336, 0.6482, 0.6462889, 0.64706665, 0.6511111, 0.6474222, 0.6480889, 0.6508222, 0.64915556, 0.65268886, 0.64933336, 0.6503111, 0.6513111, 0.6528889, 0.6526667, 0.65404445, 0.6509333, 0.6538, 0.6513778, 0.65573335, 0.65655553, 0.6541333, 0.65477777, 0.65444446, 0.6593111, 0.6591778, 0.6595778, 0.65826666, 0.66051114, 0.6603778, 0.66026664, 0.659, 0.6608667, 0.65797776, 0.6610889, 0.66084445, 0.6592444, 0.66, 0.6586889, 0.66231114, 0.66215557, 0.6639111, 0.6621111, 0.66371113, 0.6640222, 0.66415554, 0.6679556, 0.6629111, 0.6644, 0.6658222, 0.6660445, 0.6674889, 0.6696444, 0.6634222, 0.66653335, 0.6698, 0.66893333, 0.669, 0.6704222, 0.66926664, 0.6688222, 0.66642225, 0.6698667, 0.6676222, 0.6658889, 0.6681111, 0.66704446, 0.6712222, 0.67017776, 0.6698222, 0.6735111, 0.6719111, 0.6718, 0.6729111, 0.67315555, 0.6712667, 0.67226666, 0.67506665, 0.6686444, 0.6717333, 0.6743778, 0.67602223, 0.67553335, 0.6758889, 0.67446667, 0.67624444, 0.6772889, 0.6788667, 0.6779111, 0.6726889, 0.6772444, 0.6759111, 0.6738, 0.67546666, 0.6734222, 0.67833334, 0.6772889, 0.6770222, 0.6786, 0.6766222, 0.6764889, 0.6778889, 0.67606664, 0.6789111, 0.67928886, 0.6781778, 0.6788222, 0.68126667, 0.6812222, 0.67973334, 0.6762, 0.6797778, 0.68186665, 0.67995554, 0.6798, 0.6818445, 0.6811111, 0.6828222, 0.68024445, 0.6838889, 0.682, 0.68144447, 0.6811111, 0.68135554, 0.6801111, 0.6824, 0.68222225, 0.6816889, 0.67984444, 0.6815778, 0.68197775, 0.6831333, 0.68146664, 0.68053335, 0.6860222, 0.68604445, 0.68237776, 0.6853333, 0.6854, 0.6826444, 0.6863111, 0.68366665, 0.6824667, 0.6824889, 0.684, 0.68531114, 0.6867333, 0.6889778, 0.68464446, 0.6875111, 0.69002223, 0.6878, 0.68851113, 0.68542224, 0.6865778, 0.6861111, 0.6869111, 0.6848222, 0.6862222, 0.6854, 0.6863111, 0.68866664, 0.6878667, 0.6876, 0.68891114, 0.68546665, 0.68855554, 0.68815553, 0.6881111, 0.6870222, 0.6885333, 0.68806666, 0.68997777, 0.6918, 0.69086665, 0.6901778, 0.68635553, 0.6895555, 0.6906889, 0.6894, 0.68833333, 0.6897111, 0.68891114, 0.6886, 0.68795556, 0.6924, 0.6933778, 0.6904, 0.69211113, 0.6924, 0.6911333, 0.69093335, 0.68993336, 0.69042224, 0.6904889, 0.6910222, 0.6911778, 0.6888667, 0.6914, 0.6926444, 0.6955778, 0.69064444, 0.6924222, 0.69362223, 0.69233334, 0.69306666, 0.69122225, 0.6976, 0.6951333, 0.69173336, 0.69368887, 0.6961778, 0.6952, 0.69604445, 0.6980889, 0.6949111, 0.6916889, 0.6931111, 0.6956, 0.6932667, 0.69353336, 0.697, 0.6961333, 0.6938, 0.69346666, 0.69442225, 0.6922889, 0.69626665, 0.6917111, 0.6957333, 0.69722223, 0.6960889, 0.6982, 0.69773334, 0.69226664, 0.6975778, 0.69533336, 0.6971111, 0.69475555, 0.6984, 0.6978667, 0.69593334, 0.6959778, 0.6983111, 0.69575554, 0.6993778, 0.6959111, 0.6962, 0.69935554, 0.6978, 0.696, 0.69902223, 0.69673336, 0.6992889, 0.6993778, 0.6979111, 0.6999556, 0.6964222, 0.70004445, 0.6965333, 0.69884443, 0.6974889, 0.69713336, 0.7003111, 0.7003555, 0.7014, 0.69457775, 0.7014667, 0.69924444, 0.7006889, 0.6995111, 0.7011778, 0.7010222, 0.6969333, 0.70262223, 0.7001333, 0.7018667, 0.69795555, 0.6986, 0.7020444, 0.7001778, 0.7016444, 0.7002, 0.70111114, 0.69891113, 0.7023778, 0.70324445, 0.70346665, 0.70306665, 0.70228887, 0.7036222, 0.7012445, 0.6997111, 0.6986667, 0.70246667, 0.70431113, 0.70162225, 0.7001111, 0.7006889, 0.69895554, 0.7040667, 0.70306665, 0.7046889, 0.7016889, 0.70026666, 0.7020889, 0.70413333, 0.70615554, 0.7049556, 0.7029333, 0.7014889, 0.70184445, 0.70464444, 0.70408887, 0.7024, 0.70368886, 0.7046, 0.70493335, 0.7007333, 0.7032889, 0.70882225, 0.7028, 0.70486665, 0.70482224, 0.7062889, 0.70166665, 0.70786667, 0.704, 0.7037778, 0.7055111, 0.7028889, 0.70342225, 0.7040667, 0.70306665, 0.70435554, 0.7055778, 0.7054667, 0.7053111, 0.70566666, 0.7066444, 0.70442224, 0.70768887, 0.70593333, 0.70526665, 0.70604444, 0.7021111, 0.7046667, 0.7046, 0.70886666, 0.70624447, 0.7060889, 0.70622224, 0.7082667, 0.7096222, 0.7075111, 0.70575553, 0.7061778, 0.70728886, 0.7036667, 0.70233333, 0.7112, 0.7081556, 0.70831114, 0.70795554, 0.70633334, 0.7097333, 0.7103111, 0.70684445, 0.7074444, 0.7085111, 0.7087333, 0.7066444, 0.7101333, 0.7085111, 0.7079333, 0.7072222, 0.70857775, 0.7102444, 0.70644444, 0.7094667, 0.70773333, 0.70717776, 0.70966667, 0.71055555, 0.7103556, 0.70813334, 0.70915556, 0.7103556, 0.70926666, 0.7116445, 0.7065333, 0.7049111, 0.7116889, 0.7102444, 0.70795554, 0.7082222, 0.7115778, 0.70904446, 0.70948887, 0.7095111, 0.70964444, 0.7116, 0.70773333, 0.70982224, 0.7082, 0.7102, 0.70713335, 0.7127111, 0.7073333, 0.7090667, 0.7134445, 0.71062225, 0.7124, 0.7098, 0.7069111, 0.71, 0.70924443, 0.71117777, 0.7089555, 0.7138889, 0.7097333]
max = 61.94
Try with concat = False out.981209 (200 epochs)
max = 58.579
################# cnn_gru_0 Validation Accuracy = [0.22579999268054962, 0.32420000433921814, 0.3287999927997589, 0.3783999979496002, 0.4081999957561493, 0.41200000047683716, 0.4246000051498413, 0.421999990940094, 0.4374000132083893, 0.42719998955726624, 0.4514000117778778, 0.45660001039505005, 0.45500001311302185, 0.4505999982357025, 0.46540001034736633, 0.4625999927520752, 0.4611999988555908, 0.45260000228881836, 0.47519999742507935, 0.48019999265670776, 0.4968000054359436, 0.47999998927116394, 0.4885999858379364, 0.4918000102043152, 0.4973999857902527, 0.5034000277519226, 0.49480000138282776, 0.48820000886917114, 0.48579999804496765, 0.5041999816894531, 0.49799999594688416, 0.503600001335144, 0.5109999775886536, 0.506600022315979, 0.5123999714851379, 0.5052000284194946, 0.5091999769210815, 0.5085999965667725, 0.5252000093460083, 0.5130000114440918, 0.5206000208854675, 0.5095999836921692, 0.5166000127792358, 0.531000018119812, 0.5184000134468079, 0.5356000065803528, 0.5180000066757202, 0.5303999781608582, 0.5281999707221985, 0.532800018787384, 0.5299999713897705, 0.5332000255584717, 0.5121999979019165, 0.5361999869346619, 0.5303999781608582, 0.5357999801635742, 0.5414000153541565, 0.5392000079154968, 0.5464000105857849, 0.5365999937057495, 0.5357999801635742, 0.5393999814987183, 0.5353999733924866, 0.5425999760627747, 0.5321999788284302, 0.5411999821662903, 0.5320000052452087, 0.5360000133514404, 0.5450000166893005, 0.5135999917984009, 0.5514000058174133, 0.5224000215530396, 0.5551999807357788, 0.5415999889373779, 0.5347999930381775, 0.5509999990463257, 0.5519999861717224, 0.5386000275611877, 0.5558000206947327, 0.5523999929428101, 0.5541999936103821, 0.5374000072479248, 0.5455999970436096, 0.5519999861717224, 0.5541999936103821, 0.5565999746322632, 0.5504000186920166, 0.5234000086784363, 0.5443999767303467, 0.5616000294685364, 0.5523999929428101, 0.5558000206947327, 0.5586000084877014, 0.550599992275238, 0.5529999732971191, 0.5490000247955322, 0.5577999949455261, 0.5504000186920166, 0.5533999800682068, 0.5600000023841858, 0.5616000294685364, 0.5396000146865845, 0.5532000064849854, 0.5522000193595886, 0.5636000037193298, 0.5577999949455261, 0.5523999929428101, 0.5335999727249146, 0.550599992275238, 0.5422000288963318, 0.550000011920929, 0.5631999969482422, 0.5645999908447266, 0.5379999876022339, 0.5573999881744385, 0.5626000165939331, 0.5655999779701233, 0.5641999840736389, 0.5562000274658203, 0.5641999840736389, 0.5491999983787537, 0.5447999835014343, 0.5636000037193298, 0.5546000003814697, 0.5684000253677368, 0.5685999989509583, 0.5651999711990356, 0.5616000294685364, 0.5663999915122986, 0.5681999921798706, 0.5558000206947327, 0.5616000294685364, 0.5709999799728394, 0.5604000091552734, 0.5676000118255615, 0.5577999949455261, 0.5605999827384949, 0.5734000205993652, 0.5662000179290771, 0.5681999921798706, 0.5637999773025513, 0.5623999834060669, 0.5622000098228455, 0.5681999921798706, 0.5645999908447266, 0.5529999732971191, 0.5541999936103821, 0.5681999921798706, 0.5669999718666077, 0.5490000247955322, 0.5496000051498413, 0.5577999949455261, 0.5609999895095825, 0.5717999935150146, 0.5690000057220459, 0.555400013923645, 0.5680000185966492, 0.5716000199317932, 0.5655999779701233, 0.5600000023841858, 0.5763999819755554, 0.5753999948501587, 0.5694000124931335, 0.5662000179290771, 0.5716000199317932, 0.5813999772071838, 0.5684000253677368, 0.5613999962806702, 0.555400013923645, 0.5649999976158142, 0.5723999738693237, 0.5631999969482422, 0.5659999847412109, 0.5813999772071838, 0.5712000131607056, 0.5626000165939331, 0.5509999990463257, 0.5640000104904175, 0.5649999976158142, 0.569599986076355, 0.5717999935150146, 0.5803999900817871, 0.5637999773025513, 0.5758000016212463, 0.5774000287055969, 0.5555999875068665, 0.5651999711990356, 0.5857999920845032, 0.5774000287055969, 0.5717999935150146, 0.5734000205993652, 0.5745999813079834, 0.5669999718666077, 0.5740000009536743, 0.5622000098228455, 0.5667999982833862, 0.5712000131607056, 0.5684000253677368, 0.5817999839782715, 0.5626000165939331]
################# cnn_gru_0 Training Accuracy = [0.19939999282360077, 0.27006667852401733, 0.31695556640625, 0.3446222245693207, 0.36464443802833557, 0.3797111213207245, 0.38993334770202637, 0.4002888798713684, 0.4078444540500641, 0.41440001130104065, 0.420422226190567, 0.424311101436615, 0.431244432926178, 0.4356222152709961, 0.4380444586277008, 0.44404444098472595, 0.4456889033317566, 0.4509333372116089, 0.45471110939979553, 0.4583111107349396, 0.4600222110748291, 0.4658222198486328, 0.46933332085609436, 0.4724000096321106, 0.47813332080841064, 0.4840888977050781, 0.48500001430511475, 0.4867333471775055, 0.487888902425766, 0.49051111936569214, 0.4983111023902893, 0.49888888001441956, 0.5025110840797424, 0.5044000148773193, 0.5058888792991638, 0.5066888928413391, 0.5104222297668457, 0.5118222236633301, 0.5128222107887268, 0.513177752494812, 0.5137110948562622, 0.5186889171600342, 0.5210888981819153, 0.5189111232757568, 0.5212888717651367, 0.524911105632782, 0.5283555388450623, 0.5285999774932861, 0.5296444296836853, 0.5279333591461182, 0.5348222255706787, 0.5323333144187927, 0.5342444181442261, 0.5327110886573792, 0.5378888845443726, 0.5370444655418396, 0.5368000268936157, 0.5389999747276306, 0.5398444533348083, 0.540755569934845, 0.5434444546699524, 0.5434666872024536, 0.542555570602417, 0.5445555448532104, 0.5470444560050964, 0.5433777570724487, 0.5466889142990112, 0.5504666566848755, 0.5479555726051331, 0.5519555807113647, 0.5520666837692261, 0.5495111346244812, 0.5515555739402771, 0.5531777739524841, 0.5539555549621582, 0.5566444396972656, 0.5602444410324097, 0.5560222268104553, 0.5571555495262146, 0.5589110851287842, 0.560022234916687, 0.5600444674491882, 0.5619778037071228, 0.5645333528518677, 0.5624666810035706, 0.5614666938781738, 0.565155565738678, 0.5670222043991089, 0.5651333332061768, 0.5671333074569702, 0.5679555535316467, 0.5678222179412842, 0.5703999996185303, 0.5699333548545837, 0.5694666504859924, 0.5689555406570435, 0.5720000267028809, 0.5750444531440735, 0.5732444524765015, 0.5704444646835327, 0.5732444524765015, 0.5739333629608154, 0.5753999948501587, 0.5746444463729858, 0.5754222273826599, 0.5740666389465332, 0.5756666660308838, 0.5767999887466431, 0.5774666666984558, 0.579022228717804, 0.5767999887466431, 0.5757333040237427, 0.5807777643203735, 0.5778444409370422, 0.5782889127731323, 0.5836222171783447, 0.5840222239494324, 0.5828666687011719, 0.5834444165229797, 0.5846889019012451, 0.5827111005783081, 0.583466649055481, 0.5839333534240723, 0.5844444632530212, 0.5806666612625122, 0.5824221968650818, 0.5870444178581238, 0.5827999711036682, 0.5862666964530945, 0.5912222266197205, 0.587755560874939, 0.5888000130653381, 0.5889555811882019, 0.5885999798774719, 0.5866222381591797, 0.5886666774749756, 0.5890666842460632, 0.5849999785423279, 0.5930222272872925, 0.5926889181137085, 0.5915111303329468, 0.5928666591644287, 0.5909333229064941, 0.5920222401618958, 0.5926666855812073, 0.5923333168029785, 0.5913333296775818, 0.5930444598197937, 0.5943999886512756, 0.5952444672584534, 0.5947999954223633, 0.5927555561065674, 0.5936222076416016, 0.5965111255645752, 0.594955563545227, 0.5932888984680176, 0.5979777574539185, 0.5952666401863098, 0.5982666611671448, 0.59862220287323, 0.5991777777671814, 0.5964000225067139, 0.5924444198608398, 0.5962666869163513, 0.5973555445671082, 0.5979333519935608, 0.5993333458900452, 0.5977333188056946, 0.5998888611793518, 0.5979111194610596, 0.597955584526062, 0.5999777913093567, 0.6014222502708435, 0.6011555790901184, 0.6025111079216003, 0.6036221981048584, 0.6005333065986633, 0.6026666760444641, 0.6016444563865662, 0.6026444435119629, 0.6029333472251892, 0.6050000190734863, 0.6064888834953308, 0.6013555526733398, 0.6031777858734131, 0.6056666374206543, 0.603866696357727, 0.602911114692688, 0.6044222116470337, 0.6016222238540649, 0.6019555330276489, 0.6029333472251892, 0.6056444644927979, 0.6056888699531555, 0.603866696357727, 0.6045777797698975, 0.6063555479049683, 0.6097777485847473, 0.6065777540206909, 0.6092444658279419]
with cnn_dropout = 0.4 and rnn dropout = 0.2 and lr = 5e-4 with res = 8 with 10 samples and 200 epochs, hs = 256 out.848400
with kernel_regularizer keras.regularizers.l1_l2(l1=0.01, l2=0.01) out.437935 out.449019
################# cnn_gru_True Validation Accuracy = [0.19740000367164612, 0.2881999909877777, 0.31299999356269836, 0.3434000015258789, 0.3653999865055084, 0.38100001215934753, 0.4153999984264374, 0.4300000071525574, 0.4244000017642975, 0.44679999351501465, 0.45260000228881836, 0.4553999900817871, 0.47699999809265137, 0.4758000075817108, 0.4812000095844269, 0.4984000027179718, 0.4909999966621399, 0.5026000142097473, 0.5034000277519226, 0.508400022983551, 0.5108000040054321, 0.527999997138977, 0.5139999985694885, 0.5325999855995178, 0.5311999917030334, 0.5338000059127808, 0.5404000282287598, 0.5429999828338623, 0.5249999761581421, 0.5307999849319458, 0.5429999828338623, 0.5450000166893005, 0.5526000261306763, 0.5428000092506409, 0.5406000018119812, 0.5527999997138977, 0.5523999929428101, 0.5460000038146973, 0.545799970626831, 0.5577999949455261, 0.5504000186920166, 0.555400013923645, 0.5455999970436096, 0.5514000058174133, 0.5522000193595886, 0.5551999807357788, 0.5618000030517578, 0.5509999990463257, 0.5564000010490417, 0.5658000111579895, 0.5594000220298767, 0.5577999949455261, 0.5672000050544739, 0.5551999807357788, 0.5672000050544739, 0.5591999888420105, 0.5655999779701233, 0.5622000098228455, 0.5699999928474426, 0.5669999718666077, 0.5640000104904175, 0.5672000050544739, 0.5627999901771545, 0.5631999969482422, 0.5623999834060669, 0.5648000240325928, 0.5598000288009644, 0.5604000091552734, 0.5663999915122986, 0.5709999799728394, 0.5598000288009644, 0.5654000043869019, 0.5676000118255615, 0.5636000037193298, 0.5727999806404114, 0.567799985408783, 0.5730000138282776, 0.5685999989509583, 0.5684000253677368, 0.5699999928474426, 0.5702000260353088, 0.5745999813079834, 0.5559999942779541, 0.5705999732017517, 0.5795999765396118, 0.5741999745368958, 0.5703999996185303, 0.5703999996185303, 0.5756000280380249, 0.5759999752044678, 0.5741999745368958, 0.5763999819755554, 0.5806000232696533, 0.573199987411499, 0.5722000002861023, 0.5756000280380249, 0.5741999745368958, 0.5788000226020813, 0.5727999806404114, 0.5735999941825867, 0.5785999894142151, 0.5745999813079834, 0.5788000226020813, 0.5676000118255615, 0.5730000138282776, 0.5684000253677368, 0.5691999793052673, 0.5776000022888184, 0.5776000022888184, 0.5748000144958496, 0.5758000016212463, 0.5716000199317932, 0.5763999819755554, 0.5684000253677368, 0.579200029373169, 0.5771999955177307, 0.578000009059906, 0.5752000212669373, 0.5831999778747559, 0.5795999765396118, 0.5777999758720398, 0.5726000070571899, 0.574999988079071, 0.5722000002861023, 0.5735999941825867, 0.5709999799728394, 0.5740000009536743, 0.5794000029563904, 0.5788000226020813, 0.5813999772071838, 0.5784000158309937, 0.5807999968528748, 0.5812000036239624, 0.5802000164985657, 0.5735999941825867, 0.5802000164985657, 0.5723999738693237, 0.5802000164985657, 0.5842000246047974, 0.5852000117301941, 0.5820000171661377, 0.5827999711036682, 0.5875999927520752, 0.578000009059906, 0.5759999752044678, 0.5843999981880188, 0.5831999778747559, 0.5789999961853027, 0.5827999711036682, 0.5691999793052673, 0.5812000036239624, 0.5799999833106995, 0.5758000016212463, 0.5849999785423279, 0.5825999975204468, 0.5781999826431274, 0.5831999778747559, 0.5838000178337097, 0.5758000016212463, 0.5726000070571899, 0.5834000110626221, 0.5842000246047974, 0.5884000062942505, 0.5863999724388123, 0.5799999833106995, 0.5848000049591064, 0.5825999975204468, 0.5794000029563904, 0.5830000042915344, 0.5789999961853027, 0.5860000252723694, 0.5806000232696533, 0.5784000158309937, 0.5881999731063843, 0.5789999961853027, 0.5881999731063843, 0.5821999907493591, 0.5785999894142151, 0.5860000252723694, 0.5839999914169312, 0.5776000022888184, 0.5812000036239624, 0.5763999819755554, 0.5834000110626221, 0.5720000267028809, 0.5824000239372253, 0.5835999846458435, 0.5825999975204468, 0.5774000287055969, 0.5843999981880188, 0.5860000252723694, 0.5917999744415283, 0.5821999907493591, 0.5852000117301941, 0.5934000015258789, 0.5896000266075134, 0.5884000062942505, 0.5748000144958496, 0.5838000178337097, 0.5861999988555908]
################# cnn_gru_True Training Accuracy = [0.19660000503063202, 0.24744445085525513, 0.29660001397132874, 0.3197999894618988, 0.34042221307754517, 0.35946667194366455, 0.38271111249923706, 0.4038444459438324, 0.4194222092628479, 0.4294222295284271, 0.43666666746139526, 0.44555556774139404, 0.4554666578769684, 0.4596889019012451, 0.4680444300174713, 0.4723111093044281, 0.4806888997554779, 0.4835111200809479, 0.4874666631221771, 0.49408888816833496, 0.5022666454315186, 0.5037555694580078, 0.504111111164093, 0.5097777843475342, 0.5162222385406494, 0.5180888772010803, 0.5195333361625671, 0.5235777497291565, 0.5269333124160767, 0.5291110873222351, 0.5295777916908264, 0.5312444567680359, 0.535444438457489, 0.5351999998092651, 0.5364221930503845, 0.5388444662094116, 0.5406000018119812, 0.5428222417831421, 0.5442444682121277, 0.5446222424507141, 0.5503555536270142, 0.5470222234725952, 0.5522888898849487, 0.5533333420753479, 0.5532888770103455, 0.552911102771759, 0.5574222207069397, 0.558733344078064, 0.5594444274902344, 0.5628666877746582, 0.5593555569648743, 0.5623555779457092, 0.5642889142036438, 0.5643555521965027, 0.5698444247245789, 0.5675777792930603, 0.5713333487510681, 0.5699777603149414, 0.5699777603149414, 0.5728889107704163, 0.5720444321632385, 0.5725333094596863, 0.5763999819755554, 0.5739333629608154, 0.5762888789176941, 0.5751110911369324, 0.5798444151878357, 0.5796889066696167, 0.5815111398696899, 0.5797333121299744, 0.5790444612503052, 0.581933319568634, 0.584755539894104, 0.5832222104072571, 0.5863999724388123, 0.5874666571617126, 0.5854222178459167, 0.5855110883712769, 0.5855555534362793, 0.5879555344581604, 0.5888000130653381, 0.586222231388092, 0.5907999873161316, 0.5916666388511658, 0.5915777683258057, 0.5903555750846863, 0.5928221940994263, 0.5916222333908081, 0.5945777893066406, 0.5924888849258423, 0.5939333438873291, 0.5954889059066772, 0.5939777493476868, 0.5950666666030884, 0.5960000157356262, 0.5971333384513855, 0.5966444611549377, 0.6006444692611694, 0.5997111201286316, 0.5984444618225098, 0.5990222096443176, 0.6036888957023621, 0.6009555459022522, 0.5998666882514954, 0.6012444496154785, 0.6036444306373596, 0.599911093711853, 0.6018000245094299, 0.6055999994277954, 0.6050666570663452, 0.6059333086013794, 0.6061333417892456, 0.6032666563987732, 0.6064444184303284, 0.6061555743217468, 0.609000027179718, 0.6079555749893188, 0.6087777614593506, 0.6115777492523193, 0.6051111221313477, 0.6077333092689514, 0.6085110902786255, 0.6082888841629028, 0.6100000143051147, 0.6113777756690979, 0.61326664686203, 0.613111138343811, 0.6121777892112732, 0.6112666726112366, 0.6116889119148254, 0.615577757358551, 0.6137999892234802, 0.6133111119270325, 0.6153777837753296, 0.6159777641296387, 0.6172444224357605, 0.6125777959823608, 0.6107110977172852, 0.6137333512306213, 0.6190666556358337, 0.6146666407585144, 0.6165333390235901, 0.6161777973175049, 0.6160444617271423, 0.6154000163078308, 0.6169999837875366, 0.6182666420936584, 0.6179555654525757, 0.6194888949394226, 0.6154000163078308, 0.6197999715805054, 0.6198222041130066, 0.6195111274719238, 0.6213555335998535, 0.622355580329895, 0.6189555525779724, 0.6221110820770264, 0.6180889010429382, 0.6214888691902161, 0.6235555410385132, 0.621666669845581, 0.6259111166000366, 0.6236888766288757, 0.6235111355781555, 0.6221333146095276, 0.624822199344635, 0.6250444650650024, 0.625688910484314, 0.6254444718360901, 0.626466691493988, 0.6252889037132263, 0.6247555613517761, 0.6279555559158325, 0.625688910484314, 0.6261110901832581, 0.6280666589736938, 0.6285777688026428, 0.6279777884483337, 0.625511109828949, 0.6262444257736206, 0.628333330154419, 0.627133309841156, 0.6295999884605408, 0.6308888792991638, 0.6295777559280396, 0.6275110840797424, 0.6317999958992004, 0.6287333369255066, 0.6288444399833679, 0.6308000087738037, 0.629111111164093, 0.629622220993042, 0.6306222081184387, 0.6284000277519226, 0.6311777830123901, 0.6300222277641296, 0.6324666738510132, 0.6323778033256531, 0.6296889185905457, 0.6352221965789795]
Try with concat = False out.660437 (50 epochs)
################# cnn_gru_0 Validation Accuracy = [0.31619998812675476, 0.3325999975204468, 0.3806000053882599, 0.4059999883174896, 0.4196000099182129, 0.423799991607666, 0.4357999861240387, 0.43779999017715454, 0.4535999894142151, 0.4641999900341034, 0.47380000352859497, 0.475600004196167, 0.48840001225471497, 0.4848000109195709, 0.48339998722076416, 0.49900001287460327, 0.49219998717308044, 0.5055999755859375, 0.5012000203132629, 0.5166000127792358, 0.5116000175476074, 0.506600022315979, 0.520799994468689, 0.5185999870300293, 0.5144000053405762, 0.5206000208854675, 0.5266000032424927, 0.522599995136261, 0.5375999808311462, 0.52920001745224, 0.5130000114440918, 0.5285999774932861, 0.5285999774932861, 0.5437999963760376, 0.5407999753952026, 0.5450000166893005, 0.5419999957084656, 0.5406000018119812, 0.5392000079154968, 0.5544000267982483, 0.5479999780654907, 0.5460000038146973, 0.5473999977111816, 0.5559999942779541, 0.5429999828338623, 0.5388000011444092, 0.5514000058174133, 0.5411999821662903, 0.5468000173568726, 0.5547999739646912]
################# cnn_gru_0 Training Accuracy = [0.21320000290870667, 0.31262221932411194, 0.35028889775276184, 0.37102222442626953, 0.3886444568634033, 0.3989555537700653, 0.41306665539741516, 0.42100000381469727, 0.4274222254753113, 0.43479999899864197, 0.441777765750885, 0.4474000036716461, 0.455822229385376, 0.4593110978603363, 0.46577778458595276, 0.47244444489479065, 0.4786444306373596, 0.48251110315322876, 0.4856888949871063, 0.48768889904022217, 0.4945777654647827, 0.4945555627346039, 0.4999333322048187, 0.5040888786315918, 0.5044222474098206, 0.5098000168800354, 0.5132666826248169, 0.5106444358825684, 0.5141333341598511, 0.5174000263214111, 0.5239111185073853, 0.5222444534301758, 0.5272889137268066, 0.5264000296592712, 0.5284222364425659, 0.5353111028671265, 0.5317111015319824, 0.5315999984741211, 0.5336889028549194, 0.5348666906356812, 0.5392888784408569, 0.5394666790962219, 0.5410444736480713, 0.5435555577278137, 0.5426444411277771, 0.5475555658340454, 0.5474666953086853, 0.5461333394050598, 0.5516666769981384, 0.5508444309234619]
Add dense layer
with cnn_dropout = 0.4 and rnn dropout = 0.2 and lr = 5e-4 with res = 8 with 10 samples and 200 epochs, hs = 256 out.848400
out.9611
concat = False - out.9612
bidirectional = True (go_backwards=True) out.488739
'''
from __future__ import division, print_function, absolute_import
print('Starting..................................')
import os
import sys
sys.path.insert(1, '/home/labs/ahissarlab/orra/imagewalker/')
import numpy as np
import cv2
import misc
import pandas as pd
import matplotlib.pyplot as plt
import pickle
from keras_utils import dataset_update, write_to_file, create_cifar_dataset
from misc import *
import tensorflow.keras as keras
import tensorflow as tf
from tensorflow.keras.datasets import cifar10
# load dataset
(trainX, trainy), (testX, testy) = cifar10.load_data()
images, labels = trainX, trainy
kernel_regularizer_list = [None, keras.regularizers.l1(),keras.regularizers.l2(),keras.regularizers.l1_l2()]
optimizer_list = [tf.keras.optimizers.Adam, tf.keras.optimizers.Nadam, tf.keras.optimizers.RMSprop]
if len(sys.argv) > 1:
paramaters = {
'epochs' : int(sys.argv[1]),
'sample' : int(sys.argv[2]),
'res' : int(sys.argv[3]),
'hidden_size' : int(sys.argv[4]),
'concat' : int(sys.argv[5]),
'regularizer' : keras.regularizers.l1(),#kernel_regularizer_list[int(sys.argv[6])],
'optimizer' : optimizer_list[int(sys.argv[7])],
'cnn_dropout' : 0.4,
'rnn_dropout' : 0.2,
'lr' : 5e-4,
'run_id' : np.random.randint(1000,9000)
}
else:
paramaters = {
'epochs' : 1,
'sample' : 5,
'res' : 8,
'hidden_size' : 128,
'concat' : 1,
'regularizer' : None,
'optimizer' : optimizer_list[0],
'cnn_dropout' : 0.4,
'rnn_dropout' : 0.2,
'lr' : 5e-4,
'run_id' : np.random.randint(1000,9000)
}
print(paramaters)
for key,val in paramaters.items():
exec(key + '=val')
epochs = epochs
sample = sample
res = res
hidden_size =hidden_size
concat = concat
regularizer = regularizer
optimizer = optimizer
cnn_dropout = cnn_dropout
rnn_dropout = rnn_dropout
lr = lr
run_id = run_id
n_timesteps = sample
def split_dataset_xy(dataset):
dataset_x1 = [uu[0] for uu in dataset]
dataset_x2 = [uu[1] for uu in dataset]
dataset_y = [uu[-1] for uu in dataset]
return (np.array(dataset_x1),np.array(dataset_x2)[:,:n_timesteps,:]),np.array(dataset_y)
def cnn_gru(n_timesteps = 5, hidden_size = 128,input_size = 32, concat = True,
optimizer = tf.keras.optimizers.Adam, ):
'''
CNN RNN combination that extends the CNN to a network that achieves
~80% accuracy on full res cifar.
Parameters
----------
n_timesteps : TYPE, optional
DESCRIPTION. The default is 5.
img_dim : TYPE, optional
DESCRIPTION. The default is 32.
hidden_size : TYPE, optional
DESCRIPTION. The default is 128.
input_size : TYPE, optional
DESCRIPTION. The default is 32.
Returns
-------
model : TYPE
DESCRIPTION.
'''
inputA = keras.layers.Input(shape=(n_timesteps,input_size,input_size,3))
inputB = keras.layers.Input(shape=(n_timesteps,2))
# define CNN model
x1=keras.layers.TimeDistributed(keras.layers.Conv2D(32,(3,3),activation='relu', padding = 'same'))(inputA)
x1=keras.layers.TimeDistributed(keras.layers.Conv2D(32,(3,3),activation='relu', padding = 'same'))(x1)
x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1)
x1=keras.layers.TimeDistributed(keras.layers.Dropout(cnn_dropout))(x1)
x1=keras.layers.TimeDistributed(keras.layers.Conv2D(64,(3,3),activation='relu', padding = 'same'))(x1)
x1=keras.layers.TimeDistributed(keras.layers.Conv2D(64,(3,3),activation='relu', padding = 'same'))(x1)
x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1)
x1=keras.layers.TimeDistributed(keras.layers.Dropout(cnn_dropout))(x1)
x1=keras.layers.TimeDistributed(keras.layers.Conv2D(128,(3,3),activation='relu', padding = 'same'))(x1)
x1=keras.layers.TimeDistributed(keras.layers.Conv2D(128,(3,3),activation='relu', padding = 'same'))(x1)
x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1)
x1=keras.layers.TimeDistributed(keras.layers.Dropout(cnn_dropout))(x1)
print(x1.shape)
x1=keras.layers.TimeDistributed(keras.layers.Flatten())(x1)
print(x1.shape)
if concat:
x = keras.layers.Concatenate()([x1,inputB])
else:
x = x1
print(x.shape)
# define LSTM model
x = keras.layers.GRU(hidden_size,input_shape=(n_timesteps, None),
return_sequences=True,recurrent_dropout=rnn_dropout,
kernel_regularizer=regularizer,go_backwards=True)(x)
x = keras.layers.Flatten()(x)
#Add another dense layer (prior it reached 62%)
x = keras.layers.Dense(512, activation="relu")(x)
x = keras.layers.Dense(10,activation="softmax")(x)
model = keras.models.Model(inputs=[inputA,inputB],outputs=x, name = 'cnn_gru_{}'.format(concat))
opt=optimizer(lr=lr)
model.compile(
optimizer=opt,
loss="sparse_categorical_crossentropy",
metrics=["sparse_categorical_accuracy"],
)
return model
rnn_net = cnn_gru(n_timesteps = sample, hidden_size = hidden_size,input_size = res, concat = concat)
cnn_net = cnn_net = extended_cnn_one_img(n_timesteps = sample, input_size = res, dropout = cnn_dropout)
# hp = HP()
# hp.save_path = 'saved_runs'
# hp.description = "syclop cifar net search runs"
# hp.this_run_name = 'syclop_{}'.format(rnn_net.name)
# deploy_logs()
train_dataset, test_dataset = create_cifar_dataset(images, labels,res = res,
sample = sample, return_datasets=True,
mixed_state = False, add_seed = 0,
)
#bad_res_func = bad_res101, up_sample = True)
train_dataset_x, train_dataset_y = split_dataset_xy(train_dataset)
test_dataset_x, test_dataset_y = split_dataset_xy(test_dataset)
print("##################### Fit {} and trajectories model on training data res = {} ##################".format(rnn_net.name,res))
rnn_history = rnn_net.fit(
train_dataset_x,
train_dataset_y,
batch_size=64,
epochs=epochs,
# We pass some validation for
# monitoring validation loss and metrics
# at the end of each epoch
validation_data=(test_dataset_x, test_dataset_y),
verbose = 0)
# print('################# {} Validation Accuracy = '.format(cnn_net.name),cnn_history.history['val_sparse_categorical_accuracy'])
# print('################# {} Training Accuracy = '.format(cnn_net.name),rnn_history.history['sparse_categorical_accuracy'])
print('################# {} Validation Accuracy = '.format(rnn_net.name),rnn_history.history['val_sparse_categorical_accuracy'])
print('################# {} Training Accuracy = '.format(rnn_net.name),rnn_history.history['sparse_categorical_accuracy'])
plt.figure()
plt.plot(rnn_history.history['sparse_categorical_accuracy'], label = 'train')
plt.plot(rnn_history.history['val_sparse_categorical_accuracy'], label = 'val')
# plt.plot(cnn_history.history['sparse_categorical_accuracy'], label = 'cnn train')
# plt.plot(cnn_history.history['val_sparse_categorical_accuracy'], label = 'cnn val')
plt.legend()
plt.grid()
plt.ylim(0.5,0.63)
plt.title('{} on cifar res = {} hs = {} dropout = {}, num samples = {}'.format(rnn_net.name, res, hidden_size,cnn_dropout,sample))
plt.savefig('{} on Cifar res = {}, no upsample, val accur = {} hs = {} dropout = {}.png'.format(rnn_net.name,res,rnn_history.history['val_sparse_categorical_accuracy'][-1], hidden_size,cnn_dropout))
with open('/home/labs/ahissarlab/orra/imagewalker/cifar_net_search/{}'.format(run_id), 'wb') as file_pi:
pickle.dump(rnn_history.history, file_pi)
# with open('/home/labs/ahissarlab/orra/imagewalker/cifar_net_search/{}HistoryDict'.format(cnn_net.name), 'wb') as file_pi:
# pickle.dump(cnn_history.history, file_pi)
dataset_update(rnn_history, rnn_net,paramaters)
write_to_file(rnn_history, rnn_net,paramaters)
| 228.896104
| 5,606
| 0.721078
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 64,984
| 0.921759
|
c8582ae70ade8be54e5b658dac7c05d734904cb0
| 549
|
py
|
Python
|
config/config.py
|
ByeongGil-Jung/Pytorch-Experiments-Boilerplate
|
5026fda297460552a076addbf7d29ad826ee0ac8
|
[
"Apache-2.0"
] | null | null | null |
config/config.py
|
ByeongGil-Jung/Pytorch-Experiments-Boilerplate
|
5026fda297460552a076addbf7d29ad826ee0ac8
|
[
"Apache-2.0"
] | null | null | null |
config/config.py
|
ByeongGil-Jung/Pytorch-Experiments-Boilerplate
|
5026fda297460552a076addbf7d29ad826ee0ac8
|
[
"Apache-2.0"
] | null | null | null |
import os
from domain.base import Domain, Yaml
from properties import APPLICATION_PROPERTIES
class Config(Domain):
def __init__(self, file_name, *args, **kwargs):
super(Config, self).__init__(*args, **kwargs)
self.file_name = file_name
@property
def file_path(self):
return os.path.join(APPLICATION_PROPERTIES.CONFIG_DIRECTORY_PATH, self.file_name)
@property
def yaml(self):
return Yaml(path=self.file_path)
@property
def params(self):
return self.yaml.to_hyperparameters()
| 22.875
| 89
| 0.693989
| 452
| 0.823315
| 0
| 0
| 271
| 0.493625
| 0
| 0
| 0
| 0
|
c8587f2977c7befab3e26288435a9698c942b8e4
| 2,719
|
py
|
Python
|
ultron8/api/api_v1/endpoints/loggers.py
|
bossjones/ultron8
|
45db73d32542a844570d44bc83defa935e15803f
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
ultron8/api/api_v1/endpoints/loggers.py
|
bossjones/ultron8
|
45db73d32542a844570d44bc83defa935e15803f
|
[
"Apache-2.0",
"MIT"
] | 43
|
2019-06-01T23:08:32.000Z
|
2022-02-07T22:24:53.000Z
|
ultron8/api/api_v1/endpoints/loggers.py
|
bossjones/ultron8
|
45db73d32542a844570d44bc83defa935e15803f
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
from __future__ import annotations
# SOURCE: https://blog.bartab.fr/fastapi-logging-on-the-fly/
import logging
from fastapi import APIRouter, HTTPException
from ultron8.api.models.loggers import LoggerModel, LoggerPatch
LOG_LEVELS = {
"critical": logging.CRITICAL,
"error": logging.ERROR,
"warning": logging.WARNING,
"info": logging.INFO,
"debug": logging.DEBUG,
}
LOGGER = logging.getLogger(__name__)
router = APIRouter()
def get_lm_from_tree(loggertree: LoggerModel, find_me: str) -> LoggerModel:
if find_me == loggertree.name:
LOGGER.debug("Found")
return loggertree
else:
for ch in loggertree.children:
LOGGER.debug(f"Looking in: {ch.name}")
i = get_lm_from_tree(ch, find_me)
if i:
return i
def generate_tree() -> LoggerModel:
# adapted from logging_tree package https://github.com/brandon-rhodes/logging_tree
rootm = LoggerModel(
name="root", level=logging.getLogger().getEffectiveLevel(), children=[]
)
nodesm = {}
items = list(logging.root.manager.loggerDict.items()) # type: ignore
items.sort()
for name, loggeritem in items:
if isinstance(loggeritem, logging.PlaceHolder):
nodesm[name] = nodem = LoggerModel(name=name, children=[])
else:
nodesm[name] = nodem = LoggerModel(
name=name, level=loggeritem.getEffectiveLevel(), children=[]
)
i = name.rfind(".", 0, len(name) - 1) # same formula used in `logging`
if i == -1:
parentm = rootm
else:
parentm = nodesm[name[:i]]
parentm.children.append(nodem)
return rootm
# Multiple RecursionErrors with self-referencing models
# https://github.com/samuelcolvin/pydantic/issues/524
# https://github.com/samuelcolvin/pydantic/issues/531
@router.get("/{logger_name}", response_model=LoggerModel)
def logger_get(logger_name: str):
LOGGER.debug(f"getting logger {logger_name}")
rootm = generate_tree()
lm = get_lm_from_tree(rootm, logger_name)
if lm is None:
raise HTTPException(status_code=404, detail=f"Logger {logger_name} not found")
return lm
@router.patch("/")
def logger_patch(loggerpatch: LoggerPatch):
rootm = generate_tree()
lm = get_lm_from_tree(rootm, loggerpatch.name)
LOGGER.debug(f"Actual level of {lm.name} is {lm.level}")
LOGGER.debug(f"Setting {loggerpatch.name} to {loggerpatch.level}")
logging.getLogger(loggerpatch.name).setLevel(LOG_LEVELS[loggerpatch.level])
return loggerpatch
@router.get("/", response_model=LoggerModel)
def loggers_list():
rootm = generate_tree()
LOGGER.debug(rootm)
return rootm
| 31.252874
| 86
| 0.670099
| 0
| 0
| 0
| 0
| 844
| 0.310408
| 0
| 0
| 608
| 0.223612
|
c85898f206e8cc65031cd08af9075a430861ba23
| 422
|
py
|
Python
|
exception6.py
|
PRASAD-DANGARE/PYTHON
|
36214f7dc3762d327e5a29e40752edeb098249c8
|
[
"MIT"
] | 1
|
2021-06-07T07:55:28.000Z
|
2021-06-07T07:55:28.000Z
|
exception6.py
|
PRASAD-DANGARE/PYTHON
|
36214f7dc3762d327e5a29e40752edeb098249c8
|
[
"MIT"
] | null | null | null |
exception6.py
|
PRASAD-DANGARE/PYTHON
|
36214f7dc3762d327e5a29e40752edeb098249c8
|
[
"MIT"
] | null | null | null |
# Python Program To Understand The Usage Of try With finally Blocks
'''
Function Name : Usage Of try With finally Blocks
Function Date : 23 Sep 2020
Function Author : Prasad Dangare
Input : String
Output : String
'''
try:
x = int(input('Enter A Number : '))
y = 1 / x
finally:
print("We Are Not Catching The Exception.")
print("The Inverse Is : ", y)
| 22.210526
| 68
| 0.592417
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 329
| 0.779621
|
c859d195756534de10c20a9266677539c86f42d2
| 72
|
py
|
Python
|
small-problems/fibonacci-sequence/fib1.py
|
Prateek2506/classic-cs-problems
|
fa0e3c86fb7cd478888bb90006f7379cc6c7a38b
|
[
"MIT"
] | null | null | null |
small-problems/fibonacci-sequence/fib1.py
|
Prateek2506/classic-cs-problems
|
fa0e3c86fb7cd478888bb90006f7379cc6c7a38b
|
[
"MIT"
] | null | null | null |
small-problems/fibonacci-sequence/fib1.py
|
Prateek2506/classic-cs-problems
|
fa0e3c86fb7cd478888bb90006f7379cc6c7a38b
|
[
"MIT"
] | null | null | null |
def fib1(n: int) -> int:
return fib1(n-1) + fib1(n-2)
print(fib1(5))
| 24
| 32
| 0.583333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
c85a1c9c9f35a67fa594c9e1e36235e098af53be
| 4,036
|
py
|
Python
|
V1/GliderScienceSet_Plots.py
|
NOAA-PMEL/EcoFOCI_OculusGlider
|
5655c0e173432768706416932c94a089a3e7993f
|
[
"Unlicense"
] | 2
|
2018-04-12T19:49:05.000Z
|
2020-10-01T11:46:48.000Z
|
V1/GliderScienceSet_Plots.py
|
NOAA-PMEL/EcoFOCI_OculusGlider
|
5655c0e173432768706416932c94a089a3e7993f
|
[
"Unlicense"
] | null | null | null |
V1/GliderScienceSet_Plots.py
|
NOAA-PMEL/EcoFOCI_OculusGlider
|
5655c0e173432768706416932c94a089a3e7993f
|
[
"Unlicense"
] | null | null | null |
#!/usr/bin/env python
"""
Background:
--------
GliderScienceSet_Plots.py
Purpose:
--------
History:
--------
"""
import argparse
import os
from io_utils import ConfigParserLocal
import numpy as np
import xarray as xa
# Visual Stack
import matplotlib as mpl
import matplotlib.pyplot as plt
def plot_ts(salt, temp, press, srange=[31,33], trange=[-2,10], ptitle="",labels=True, label_color='k', bydepth=False):
plt.style.use('ggplot')
# Figure out boudaries (mins and maxs)
smin = srange[0]
smax = srange[1]
tmin = trange[0]
tmax = trange[1]
# Calculate how many gridcells we need in the x and y dimensions
xdim = int(round((smax-smin)/0.1+1,0))
ydim = int(round((tmax-tmin)+1,0))
#print 'ydim: ' + str(ydim) + ' xdim: ' + str(xdim) + ' \n'
if (xdim > 10000) or (ydim > 10000):
print('To many dimensions for grid in file. Likely missing data \n')
return
# Create empty grid of zeros
dens = np.zeros((ydim,xdim))
# Create temp and salt vectors of appropiate dimensions
ti = np.linspace(0,ydim-1,ydim)+tmin
si = np.linspace(0,xdim-1,xdim)*0.1+smin
# Loop to fill in grid with densities
for j in range(0,int(ydim)):
for i in range(0, int(xdim)):
dens[j,i]=sw.dens0(si[i],ti[j])
# Substract 1000 to convert to sigma-t
dens = dens - 1000
# Plot data ***********************************************
ax1 = fig.add_subplot(111)
if labels:
CS = plt.contour(si,ti,dens, linestyles='dashed', colors='k')
if labels:
plt.clabel(CS, fontsize=12, inline=1, fmt='%1.1f') # Label every second level
if bydepth:
ts = ax1.scatter(salt,temp, c=press, cmap='gray', s=10)
else:
ts = ax1.scatter(salt,temp,s=10,c=label_color)
plt.ylim(tmin,tmax)
plt.xlim(smin,smax)
if labels:
if bydepth:
plt.colorbar(ts )
ax1.set_xlabel('Salinity (PSU)')
ax1.set_ylabel('Temperature (C)')
t = fig.suptitle(ptitle, fontsize=12, fontweight='bold')
t.set_y(1.08)
return fig
"""-------------------------------- Main -----------------------------------------------"""
parser = argparse.ArgumentParser(description='Plot archived NetCDF glider data and Science Data')
parser.add_argument('ofilepath', metavar='ofilepath', type=str,
help='path to directory with UW initial Oculus netcdf data')
parser.add_argument('sfilepath', metavar='sfilepath', type=str,
help='path to directory with Oculus Science Data netcdf data')
parser.add_argument('profileid',metavar='profileid', type=str,
help='divenumber - eg p4010260')
args = parser.parse_args()
isUW, ismerged, isup, isdown = True, True, True, True
# There are potentially three files - original UW file, a merged file and an upcast/downcast file
filein = args.ofilepath + args.profileid + '.nc'
try:
df = xa.open_dataset(filein, autoclose=True)
except IOError:
isUW = False
filein_m = args.sfilepath + args.profileid + '_m.nc'
ismerged = True
try:
df_m = xa.open_dataset(filein_m, autoclose=True)
except IOError:
ismerged = False
filein_u = args.sfilepath + args.profileid + '_u.nc'
try:
df_u = xa.open_dataset(filein_u, autoclose=True)
except IOError:
isup = False
filein_d = args.sfilepath + args.profileid + '_d.nc'
try:
df_d = xa.open_dataset(filein_d, autoclose=True)
except IOError:
isdown = False
fig = plt.figure(figsize=(6, 6))
if isUW:
fig = plot_ts(df.salinity,df.temperature,df.depth,labels=True,label_color='g')
print("Added original data")
if ismerged:
fig = plot_ts(df_m.Salinity,df_m.Temperature,df_m.Pressure,labels=False,label_color='k')
print("Added merged data")
if isup:
fig = plot_ts(df_u.Salinity,df_u.Temperature,df_u.Pressure,labels=False,label_color='b')
print("Added binned upcast data")
if isdown:
fig = plot_ts(df_d.Salinity,df_d.Temperature,df_d.Pressure,labels=False,label_color='r')
print("Added binned downcast data")
| 27.834483
| 119
| 0.640981
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1,256
| 0.311199
|
c85aba6739f248fb55a041a97d59cbb716b417c3
| 17,416
|
py
|
Python
|
manager/users/models.py
|
jlbrewe/hub
|
c737669e6493ad17536eaa240bed3394b20c6b7d
|
[
"Apache-2.0"
] | 30
|
2016-03-26T12:08:04.000Z
|
2021-12-24T14:48:32.000Z
|
manager/users/models.py
|
jlbrewe/hub
|
c737669e6493ad17536eaa240bed3394b20c6b7d
|
[
"Apache-2.0"
] | 1,250
|
2016-03-23T04:56:50.000Z
|
2022-03-28T02:27:58.000Z
|
manager/users/models.py
|
jlbrewe/hub
|
c737669e6493ad17536eaa240bed3394b20c6b7d
|
[
"Apache-2.0"
] | 11
|
2016-07-14T17:04:20.000Z
|
2021-07-01T16:19:09.000Z
|
"""
Define models used in this app.
This module only serves to provide some consistency across the
`users`, `accounts` , `projects` etc apps so that you can
`from users.models import Users`, just like you can for
`from projects.models import Projects` and instead of having to remember
to do the following.
"""
from typing import Dict, Optional
import django.contrib.auth.models
import shortuuid
from django.contrib.auth import get_user_model
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db import connection, models
from django.db.models import Count, F, Max, Q
from django.db.models.expressions import RawSQL
from django.http import HttpRequest
from django.shortcuts import reverse
from django.utils import timezone
from invitations.adapters import get_invitations_adapter
from invitations.models import Invitation
from rest_framework.exceptions import ValidationError
from waffle.models import AbstractUserFlag
# Needed to ensure signals are loaded
import users.signals # noqa
from manager.helpers import EnumChoice
User: django.contrib.auth.models.User = get_user_model()
def get_email(user: User) -> Optional[str]:
"""
Get the best email address for a user.
The "best" email is the verified primary email,
falling back to verified if none marked as primary,
falling back to the first if none is verified,
falling back to `user.email`, falling back to
their public email.
"""
best = None
emails = user.emailaddress_set.all()
for email in emails:
if (email.primary and email.verified) or (not best and email.verified):
best = email.email
if not best and len(emails) > 0:
best = emails[0].email
if not best:
best = user.email
if not best and user.personal_account:
best = user.personal_account.email
# Avoid returning an empty string, return None instead
return best or None
def get_name(user: User) -> Optional[str]:
"""
Get the best name to display for a user.
The "best" name is their account's display name,
falling back to first_name + last_name,
falling back to username.
"""
if user.personal_account and user.personal_account.display_name:
return user.personal_account.display_name
if user.first_name or user.last_name:
return f"{user.first_name} {user.last_name}".strip()
return user.username
def get_attributes(user: User) -> Dict:
"""
Get a dictionary of user attributes.
Used for updating external services with current
values of user attributes e.g number of projects etc.
Flattens various other summary dictionaries e.g `get_projects_summary`
into a single dictionary.
"""
return {
**dict(
(f"feature_{name}", value)
for name, value in get_feature_flags(user).items()
),
**dict(
(f"orgs_{name}", value) for name, value in get_orgs_summary(user).items()
),
**dict(
(f"projects_{name}", value)
for name, value in get_projects_summary(user).items()
),
}
def get_orgs(user: User):
"""
Get all organizational accounts that a user is a member of.
"""
from accounts.models import Account
return Account.objects.filter(user__isnull=True, users__user=user).annotate(
role=F("users__role")
)
def get_orgs_summary(user: User) -> Dict:
"""
Get a summary of organizational accounts the user is a member of.
"""
from accounts.models import AccountRole
zero_by_role = dict([(role.name.lower(), 0) for role in AccountRole])
orgs = get_orgs(user)
orgs_summary = orgs.values("role").annotate(count=Count("id"), tier=Max("tier"))
orgs_by_role = dict([(row["role"].lower(), row["count"]) for row in orgs_summary])
return {
"max_tier": max(row["tier"] for row in orgs_summary) if orgs_summary else None,
"total": sum(orgs_by_role.values()),
**zero_by_role,
**orgs_by_role,
}
def get_projects(user: User, include_public=True):
"""
Get a queryset of projects for the user.
For authenticated users, each project is annotated with the
role of the user for the project.
"""
from projects.models.projects import Project
if user.is_authenticated:
# Annotate the queryset with the role of the user
# Role is the "greater" of the project role and the
# account role (for the account that owns the project).
# Authenticated users can see public projects and those in
# which they have a role
return Project.objects.annotate(
role=RawSQL(
"""
SELECT
CASE account_role.role
WHEN 'OWNER' THEN 'OWNER'
WHEN 'MANAGER' THEN
CASE project_role.role
WHEN 'OWNER' THEN 'OWNER'
ELSE 'MANAGER' END
ELSE project_role.role END AS "role"
FROM projects_project AS project
LEFT JOIN
(SELECT project_id, "role" FROM projects_projectagent WHERE user_id = %s) AS project_role
ON project.id = project_role.project_id
LEFT JOIN
(SELECT account_id, "role" FROM accounts_accountuser WHERE user_id = %s) AS account_role
ON project.account_id = account_role.account_id
WHERE project.id = projects_project.id""",
[user.id, user.id],
)
).filter((Q(public=True) if include_public else Q()) | Q(role__isnull=False))
else:
# Unauthenticated users can only see public projects
return Project.objects.filter(public=True).extra(select={"role": "NULL"})
def get_projects_summary(user: User) -> Dict:
"""
Get a summary of project memberships for a user.
"""
from projects.models.projects import ProjectRole
zero_by_role = dict([(role.name.lower(), 0) for role in ProjectRole])
projects = get_projects(user, include_public=False)
projects_by_role = dict(
[
(row["role"].lower(), row["count"])
for row in projects.values("role").annotate(count=Count("id"))
]
)
return {
"total": sum(projects_by_role.values()),
**zero_by_role,
**projects_by_role,
}
def get_feature_flags(user: User) -> Dict[str, str]:
"""
Get the feature flag settings for a user.
"""
with connection.cursor() as cursor:
cursor.execute(
"""
SELECT "name", "default", "user_id"
FROM users_flag
LEFT JOIN (
SELECT *
FROM users_flag_users
WHERE user_id = %s
) AS subquery ON users_flag.id = subquery.flag_id
WHERE users_flag.settable
""",
[user.id],
)
rows = cursor.fetchall()
features = {}
for row in rows:
name, default, has_flag = row
if has_flag:
features[name] = "off" if default == "on" else "on"
else:
features[name] = default
return features
def generate_anonuser_id():
"""
Generate a unique id for an anonymous user.
"""
return shortuuid.ShortUUID().random(length=32)
class AnonUser(models.Model):
"""
A model to store anonymous users when necessary.
Used to associate unauthenticated users with objects,
for example, so that the same session job can be provided
to them on multiple page refreshes.
"""
id = models.CharField(
primary_key=True,
max_length=64,
default=generate_anonuser_id,
help_text="The unique id of the anonymous user.",
)
created = models.DateTimeField(
auto_now_add=True, help_text="The time the anon user was created."
)
@staticmethod
def get_id(request: HttpRequest) -> Optional[str]:
"""
Get the id of the anonymous user, if any.
"""
if request.user.is_anonymous:
return request.session.get("user", {}).get("id")
return None
@staticmethod
def get_or_create(request: HttpRequest) -> "AnonUser":
"""
Create an instance in the database.
Only use this when necessary. e.g when you need
to associated an anonymous user with another object.
"""
id = AnonUser.get_id(request)
if id:
anon_user, created = AnonUser.objects.get_or_create(id=id)
return anon_user
else:
anon_user = AnonUser.objects.create()
request.session["user"] = {"anon": True, "id": anon_user.id}
return anon_user
class Flag(AbstractUserFlag):
"""
Custom feature flag model.
Adds fields to allow users to turn features on/off themselves.
In the future, fields may be
added to allow flags to be set based on the account (in addition to, or instead
of, only the user).
See https://waffle.readthedocs.io/en/stable/types/flag.html#custom-flag-models
"""
label = models.CharField(
max_length=128,
null=True,
blank=True,
help_text="A label for the feature to display to users.",
)
default = models.CharField(
max_length=3,
choices=[("on", "On"), ("off", "Off")],
default="on",
help_text='If the default is "on" then when the flag is active, '
'the feature should be considered "off" and vice versa.',
)
settable = models.BooleanField(
default=False, help_text="User can turn this flag on/off for themselves."
)
def is_active_for_user(self, user) -> bool:
"""
Is the feature "on" for a user.
Changes the underlying behaviour of Waffle flags based on
the `default` field for the flag.
"""
is_active = super().is_active_for_user(user)
return is_active if self.default == "off" else not is_active
def generate_invite_key():
"""
Generate a unique invite key.
The is separate function to avoid new AlterField migrations
being created as happens when `default=shortuuid.uuid`.
"""
return shortuuid.ShortUUID().random(length=32)
class InviteAction(EnumChoice):
"""
Actions to take when a user has accepted an invite.
"""
join_account = "join_account"
join_team = "join_team"
join_project = "join_project"
take_tour = "take_tour"
@staticmethod
def as_choices():
"""Return as a list of field choices."""
return [
(InviteAction.join_account.name, "Join account"),
(InviteAction.join_team.name, "Join team"),
(InviteAction.join_project.name, "Join project"),
(InviteAction.take_tour.name, "Take tour"),
]
class Invite(models.Model):
"""
An extension of the default invitation model.
Allows for different types of invitations, with actions
after success.
Re-implements the interface of `invitations.Invitation`
instead of extending it so that some fields can be redefined
e.g shorter case sensitive `key`; e.g. avoid the unique constraint
on `email` (because of actions, a single email address could
be invited more than once).
The methods for each action should use API view sets
with synthetic requests having the `inviter` as the
request user. This reduces code and provides consistency
in permissions checking, thereby reducing errors.
Adds `subject_object` `GenericForeignKey` to allow
querying from other models
"""
key = models.CharField(
max_length=64,
unique=True,
default=generate_invite_key,
help_text="The key for the invite.",
)
inviter = models.ForeignKey(
User,
null=True,
blank=True,
on_delete=models.CASCADE,
related_name="invites",
help_text="The user who created the invite.",
)
email = models.EmailField(
max_length=2048, help_text="The email address of the person you are inviting."
)
message = models.TextField(
null=True, blank=True, help_text="An optional message to send to the invitee."
)
created = models.DateTimeField(
auto_now_add=True, help_text="When the invite was created."
)
sent = models.DateTimeField(
null=True, blank=True, help_text="When the invite was sent."
)
accepted = models.BooleanField(
default=False,
help_text="Whether the invite has been accepted. "
"Will only be true if the user has clicked on the invitation AND authenticated.",
)
completed = models.DateTimeField(
null=True, blank=True, help_text="When the invite action was completed",
)
action = models.CharField(
max_length=64,
null=True,
blank=True,
choices=InviteAction.as_choices(),
help_text="The action to perform when the invitee signs up.",
)
subject_type = models.ForeignKey(
ContentType,
null=True,
blank=True,
on_delete=models.CASCADE,
help_text="The type of the target of the action. e.g Team, Account",
)
subject_id = models.IntegerField(
null=True, blank=True, help_text="The id of the target of the action.",
)
subject_object = GenericForeignKey("subject_type", "subject_id")
arguments = models.JSONField(
null=True,
blank=True,
help_text="Any additional arguments to pass to the action.",
)
# These methods need to be implemented for the `invitations` API
key_expired = Invitation.key_expired
def send_invitation(self, request):
"""Extend method to add the invite object to the template context."""
context = dict(
inviter=self.inviter,
inviter_name=self.inviter.get_full_name() or self.inviter.username,
invite_message=self.message,
invite_url=request.build_absolute_uri(
reverse("ui-users-invites-accept", args=[self.key])
),
reason_for_sending="This email was sent by user '{0}' to invite you to "
"collaborate with them on Stencila Hub.".format(self.inviter.username),
)
get_invitations_adapter().send_mail(
"invitations/email/email_invite", self.email, context
)
self.sent = timezone.now()
self.save()
def __str__(self):
return "Invite {0} {1}".format(self.action, self.email)
# These methods implement invitation actions
def redirect_url(self) -> str:
"""
Get the URL to redirect the user to after the invite has been accepted.
"""
if self.action == "join_account":
return reverse("ui-accounts-retrieve", args=[self.arguments["account"]])
elif self.action == "join_team":
return reverse(
"ui-accounts-teams-retrieve",
args=[self.arguments["account"], self.arguments["team"]],
)
elif self.action == "join_project":
return reverse(
"ui-projects-retrieve",
args=[self.arguments["account"], self.arguments["project"]],
)
elif self.action == "take_tour":
return self.arguments["page"] + "?tour=" + self.arguments["tour"]
else:
return "/"
def create_request(self, data) -> HttpRequest:
"""
Create a synthetic request to pass to view sets.
"""
request = HttpRequest()
request.data = data
request.user = self.inviter
return request
def perform_action(self, request, user=None):
"""
Perform the action (if any) registered for this invitation.
"""
# Accept and save in case the action fails below
self.accepted = True
self.save()
if self.action:
method = getattr(self, self.action)
if not method:
raise RuntimeError("No such action {0}".format(self.action))
method(user or request.user)
self.completed = timezone.now()
self.save()
def join_account(self, invitee):
"""
Add invitee to account with a particular role.
"""
from accounts.api.views import AccountsUsersViewSet
self.arguments["id"] = invitee.id
request = self.create_request(data=self.arguments)
viewset = AccountsUsersViewSet.init(
"create", request, args=[], kwargs=self.arguments
)
viewset.create(request, **self.arguments)
def join_project(self, invitee):
"""
Add invitee to project with a particular role.
If the user already has a project role, then the
invite is ignored.
"""
from projects.api.views.projects import ProjectsAgentsViewSet
self.arguments["type"] = "user"
self.arguments["agent"] = invitee.id
request = self.create_request(data=self.arguments)
viewset = ProjectsAgentsViewSet.init(
"create", request, args=[], kwargs=self.arguments
)
try:
viewset.create(request, **self.arguments)
except ValidationError as exc:
if "Already has a project role" not in str(exc):
raise exc
def take_tour(self, invitee):
"""
Nothing needs to be done here. User is redirected to tour URL.
"""
pass
| 30.824779
| 93
| 0.634933
| 9,970
| 0.572462
| 0
| 0
| 1,185
| 0.068041
| 0
| 0
| 7,291
| 0.418638
|
c85bff69906cd84ddfe9e581be8b49ceea14621c
| 6,075
|
py
|
Python
|
scripts/automation/trex_control_plane/interactive/trex/emu/emu_plugins/emu_plugin_dhcpsrv.py
|
GabrielGanne/trex-core
|
688a0fe0adb890964691473723d70ffa98e00dd3
|
[
"Apache-2.0"
] | 956
|
2015-06-24T15:04:55.000Z
|
2022-03-30T06:25:04.000Z
|
scripts/automation/trex_control_plane/interactive/trex/emu/emu_plugins/emu_plugin_dhcpsrv.py
|
hjat2005/trex-core
|
400f03c86c844a0096dff3f6b13e58a808aaefff
|
[
"Apache-2.0"
] | 782
|
2015-09-20T15:19:00.000Z
|
2022-03-31T23:52:05.000Z
|
scripts/automation/trex_control_plane/interactive/trex/emu/emu_plugins/emu_plugin_dhcpsrv.py
|
hjat2005/trex-core
|
400f03c86c844a0096dff3f6b13e58a808aaefff
|
[
"Apache-2.0"
] | 429
|
2015-06-27T19:34:21.000Z
|
2022-03-23T11:02:51.000Z
|
from trex.emu.api import *
from trex.emu.emu_plugins.emu_plugin_base import *
import trex.utils.parsing_opts as parsing_opts
class DHCPSRVPlugin(EMUPluginBase):
"""
Defines DHCP Server plugin based on `DHCP <https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol>`_
Implemented based on `RFC 2131 Server <https://datatracker.ietf.org/doc/html/rfc2131>`_
"""
plugin_name = 'DHCPSRV'
INIT_JSON_NS = {'dhcpsrv': {}}
"""
:parameters:
Empty.
"""
INIT_JSON_CLIENT = {'dhcpsrv': "Pointer to INIT_JSON_NS below"}
"""
:parameters:
default_lease: uint32
Default lease time in seconds to offer to DHCP clients. Defaults to 300 seconds, 5 mins.
max_lease: uint32
Maximal lease time in seconds that the server is willing to offer the client in case he requests a specific lease.
If `default_lease` is provided and greater than an unprovided `max_lease`, then `max_lease` will be overridden
by `default_lease`. Defaults to 600 seconds, 10 mins.
min_lease: uint32
Minimal lease time in seconds that the server is willing to offer the client in case he requests a specific lease.
If `default_lease` is provided and less than an unprovided `min_lease`, then `min_lease` will be overridden
by `default_lease`. Defaults to 60 seconds, 1 min.
next_server_ip: str
IPv4 address of the next server as a field. In case you provide it, the server will write the IPv4 as the next server IPv4
in the packets it sends. Defaults to 0.0.0.0.
pools: list
List of dictionaries that represent IPv4 pools or otherwise known as scopes. At lease one pool must be provided.
Each dictionary is composed of:
:min: str
Minimal IPv4 address of the pool. If this happens to be the Network Id, this address will be skipped.
:max: str
Maximal IPv4 address of the pool. If this happens to be the Broadcast Id, this address will be skipped.
:prefix: uint8
Subnet Mask represented as a prefix, an unsigned integer between (0, 32) non exclusive.
:exclude: list
List of IPv4 strings that are excluded from the pool and can't be offered to the client.
.. note:: Two different pools cannot be in the same subnet. If two pools share the same subnet, with the current implementation we will always offer an IP from the first pool in the list.
.. highlight:: python
.. code-block:: python
"pools": [
{
"min": "192.168.0.0",
"max": "192.168.0.100",
"prefix": 24,
"exclude": ["192.168.0.1", "192.168.0.2"]
},
{
"min": "10.0.0.2",
"max": "10.0.255.255",
"prefix": 8
}
]
options: dict
Dictionary that contains DHCP Options. There are three keys possible: `offer`, `ack` and `nak`.
Each key represents a DHCP Response that the server can send.
Each key's value is a list. The list is composed by dictionaries, where each dictionary represents a DHCP option.
Options are represented by their type (byte), and their value (byte list).
In the following example, we add the following options to `offer` and `ack` responses.
Type: 6 (DNS Server) -> Value (8.8.8.8)
Type: 15 (Domain Name) -> Value cisco.com
.. highlight:: python
.. code-block:: python
"options": {
"offer": [
{
"type": 6,
"data": [8, 8, 8, 8]
},
{
"type": 15,
"data": [99, 105, 115, 99, 111, 46, 99, 111, 109]
}
]
"ack": [
{
"type": 6,
"data": [8, 8, 8, 8]
},
{
"type": 15,
"data": [99, 105, 115, 99, 111, 46, 99, 111, 109]
}
]
}
"""
def __init__(self, emu_client):
super(DHCPSRVPlugin, self).__init__(emu_client, client_cnt_rpc_cmd='dhcpsrv_c_cnt')
# API methods
@client_api('getter', True)
@update_docstring(EMUPluginBase._get_client_counters.__doc__.replace("$PLUGIN_NAME", plugin_name))
def get_counters(self, c_key, cnt_filter=None, zero=True, verbose=True):
return self._get_client_counters(c_key, cnt_filter, zero, verbose)
@client_api('command', True)
@update_docstring(EMUPluginBase._clear_client_counters.__doc__.replace("$PLUGIN_NAME", plugin_name))
def clear_counters(self, c_key):
return self._clear_client_counters(c_key)
# Plugins methods
@plugin_api('dhcpsrv_show_counters', 'emu')
def dhcpsrv_show_counters_line(self, line):
'''Show DHCP Server counters.\n'''
parser = parsing_opts.gen_parser(self,
"show_counters_dhcpsrv",
self.dhcpsrv_show_counters_line.__doc__,
parsing_opts.EMU_SHOW_CNT_GROUP,
parsing_opts.EMU_NS_GROUP,
parsing_opts.EMU_CLIENT_GROUP,
parsing_opts.EMU_DUMPS_OPT
)
opts = parser.parse_args(line.split())
self.emu_c._base_show_counters(self.client_data_cnt, opts, req_ns = True)
return True
| 39.967105
| 200
| 0.539095
| 5,947
| 0.97893
| 0
| 0
| 1,299
| 0.213827
| 0
| 0
| 4,510
| 0.742387
|
c86191051fc7c1834649eb4ef9230e67b31da3c1
| 2,683
|
py
|
Python
|
lenet-chinese_mnist/generate.py
|
leonwanghui/mindspore-jina-apps
|
e2912d9a93689c69005345758e3b7a2f8ba6133e
|
[
"Apache-2.0"
] | null | null | null |
lenet-chinese_mnist/generate.py
|
leonwanghui/mindspore-jina-apps
|
e2912d9a93689c69005345758e3b7a2f8ba6133e
|
[
"Apache-2.0"
] | null | null | null |
lenet-chinese_mnist/generate.py
|
leonwanghui/mindspore-jina-apps
|
e2912d9a93689c69005345758e3b7a2f8ba6133e
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ============================================================================
import os
import struct
import argparse
import numpy as np
from PIL import Image
def load_mnist(dir_path, kind='train'):
"""Load MNIST Dataset from the given path"""
labels_path = os.path.join(dir_path, '%s-labels-idx1-ubyte' % kind)
images_path = os.path.join(dir_path, '%s-images-idx3-ubyte' % kind)
with open(labels_path, 'rb') as labels_file:
magic, num = struct.unpack('>II', labels_file.read(8))
labels = np.fromfile(labels_file, dtype=np.uint8)
with open(images_path, 'rb') as images_file:
magic, num, rows, cols = struct.unpack(">IIII", images_file.read(16))
images = np.fromfile(images_file, dtype=np.uint8)
return images, labels, num
def save_mnist_to_jpg(images, labels, save_dir, kind, num):
"""Convert and save the MNIST dataset to.jpg image format"""
one_pic_pixels = 28 * 28
for i in range(num):
img = images[i * one_pic_pixels:(i + 1) * one_pic_pixels]
img_np = np.array(img, dtype=np.uint8).reshape(28, 28)
label_val = labels[i]
jpg_name = os.path.join(save_dir, '{}_{}_{}.jpg'.format(kind, i, label_val))
Image.fromarray(img_np).save(jpg_name)
print('{} ==> {}_{}_{}.jpg'.format(i, kind, i, label_val))
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="MNIST Dataset Operations")
parser.add_argument('--data_dir', type=str, default='/root/jina/chinese-mnist', help='MNIST dataset dir')
parser.add_argument('--kind', type=str, default='train', help='MNIST dataset: train or t10k')
parser.add_argument('--save_dir', type=str, default='/root/jina/chinese-mnist/jpg', help='used to save mnist jpg')
args = parser.parse_args()
if not os.path.exists(args.data_dir):
os.makedirs(args.data_dir)
images_np, labels_np, kind_num = load_mnist(args.data_dir, args.kind)
if not os.path.exists(args.save_dir):
os.makedirs(args.save_dir)
save_mnist_to_jpg(images_np, labels_np, args.save_dir, args.kind, kind_num)
| 43.274194
| 118
| 0.6776
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1,067
| 0.397689
|