blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
9e866cb5594902d113ce4e2a281a1e610490ce4d
e8bf0ec2f07be9c4fb9aff1c5ea3be2651db17f6
/Daily_Coding_Problem/451_fibonacci_in_o(1)_space.py
ef43d0267c50d1ce7212edb8a3b8b3059f61d224
[]
no_license
Srini-py/Python
0b4a0316f3754bc04e3c01214f1d99721defbf38
81eec0cc418baa86ad718be853242e4cc349dab4
refs/heads/main
2023-06-30T23:58:25.589872
2021-08-06T16:54:51
2021-08-06T16:54:51
393,439,738
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
''' Implement the function fib(n), which returns the nth number in the Fibonacci sequence, using only O(1) space. ''' def fib(n): if n == 0 or n == 1: return 1 a = i = 0 b = 1 while i < n - 1: b, a = a + b, b i += 1 return b n = int(input("Enter the value of n : ")) fib_n = fib(n) print("The {0}th fibonacci number is {1}".format(n, fib_n))
[ "noreply@github.com" ]
Srini-py.noreply@github.com
1549e7d46bbfd04ec91919b4f82908babc489151
4688134d507034541232d15b61d467e3c83d16e4
/influxbee.py
bcedc80d8ea11101a23d18cbe1f089377d2f84c9
[]
no_license
daarsan/influxbee
28bc129a9028f5c39054a693923f4ef48f78f774
76a99733a5490f6751a65a05778261cc0a0e2a13
refs/heads/master
2020-03-28T02:32:34.728487
2018-09-06T17:03:53
2018-09-06T17:03:53
147,578,264
0
0
null
null
null
null
UTF-8
Python
false
false
8,950
py
# import the standard JSON parser import json # import logger import logging # import the REST library import requests import argparse import os import time from influxdb import InfluxDBClient from datetime import datetime, timedelta class MirubeeApi(): MIRUBEE_API_URL = "https://app.mirubee.com/api/v2/" def setToken(self, token): self.MIRUBEE_API_TOKEN = token return self.MIRUBEE_API_TOKEN def login(self, email, password): data = { "language": "ES", "client_type_id": "api", "client_id": "influxdb", "timezone": "Europe/Madrid", "password": password, "email": email } _url = "{}{}".format(self.MIRUBEE_API_URL, "login") logger.debug("Getting info from {}".format(_url)) response = requests.post(_url, data=data) logger.debug("Response Code: {}".format(response.status_code)) if response.status_code == 201: logger.debug(response.text) self.MIRUBEE_API_TOKEN = response.json()['token'] else: raise ConnectionError() return self.MIRUBEE_API_TOKEN def _get(self, url): _headers = {'Authorization': self.MIRUBEE_API_TOKEN} _url = "{}{}".format(self.MIRUBEE_API_URL, url) logger.debug("Getting info from {}".format(_url)) response = requests.get(_url, headers=_headers) logger.debug("Response Code: {}".format(response.status_code)) if response.status_code == 200: logger.debug("\n" + json.dumps(response.json(), indent=2)) else: raise ConnectionError() return response.json() def getInfo(self): url = "me" return self._get(url) def getBuildings(self, user_id): url = "users/{}/buildings".format(user_id) return self._get(url) def getBuildingInfo(self, building_id): url = "buildings/{}".format(building_id) return self._get(url) def getBuildingMeters(self, building_id): url = "buildings/{}/meters".format(building_id) return self._get(url) def getMeterInfo(self, building_id, meter_id): url = "buildings/{}/meters/{}".format(building_id, meter_id) return self._get(url) def getChannelLast(self, building_id, meter_id, channel_id): url = "buildings/{}/meters/{}/channels/{}/last".format(building_id, meter_id, channel_id) return self._get(url) def getChannelData(self, building_id, meter_id, channel_id, start, end): url = "buildings/{}/meters/{}/channels/{}/data".format(building_id, meter_id, channel_id) url = "{}?start={}&end={}&param=P".format(url, start.isoformat(), end.isoformat()) return self._get(url) def scan(self): user_data = { "MIRUBEE_API_TOKEN": self.MIRUBEE_API_TOKEN } MIRUBEE_USER_INFO = self.getInfo() # logger.debug(MIRUBEE_USER_INFO) user_data["MIRUBEE_USER_ID"] = MIRUBEE_USER_INFO['id'] MIRUBEE_USER_BUILDINGS = mirubee.getBuildings(MIRUBEE_USER_INFO['id']) # logger.debug(MIRUBEE_USER_BUILDINGS) # user_data["MIRUBEE_USER_BUILDINGS"] = [MIRUBEE_USER_BUILDING['id'] for MIRUBEE_USER_BUILDING in MIRUBEE_USER_BUILDINGS] user_data["MIRUBEE_USER_BUILDINGS"] = [ { "MIRUBEE_BUILDING_ID": MIRUBEE_BUILDING['id'], "MIRUBEE_BUILDING_METERS": [ { "MIRUBEE_METER_ID": MIRUBEE_METER['meter_id'], "MIRUBEE_METER_CHANNELS": [ { "MIRUBEE_CHANNEL_ID": MIRUBEE_CHANNEL['channel_id'], "MIRUBEE_CHANNEL_MAIN": MIRUBEE_CHANNEL['main_connection'] } for MIRUBEE_CHANNEL in MIRUBEE_METER['channels']] } for MIRUBEE_METER in mirubee.getBuildingMeters(MIRUBEE_BUILDING['id']) ] } for MIRUBEE_BUILDING in MIRUBEE_USER_BUILDINGS] return user_data def _setup_logger(verbose_mode): # create logger with 'influxbee' logger = logging.getLogger('influxbee') logger.setLevel(logging.DEBUG) # create console handler with a lower log level ch = logging.StreamHandler() if verbose_mode: ch.setLevel(logging.DEBUG) else: ch.setLevel(logging.INFO) # create formatter and add it to the handlers formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') ch.setFormatter(formatter) # add the handlers to the logger logger.addHandler(ch) return logger if __name__ == "__main__": parser = argparse.ArgumentParser(description='Pull data from mirubee.') parser.add_argument('--user', '-u', help='Username') parser.add_argument('--password', '-p', help='Password') parser.add_argument('--verbose', help='Increase output verbosity', action="store_true") parser.add_argument('--config-file', help='Path of the file with the information of user') parser.add_argument('--influxdb-host', help='Influxdb IP Address') parser.add_argument('--influxdb-port', default=8086, help='Influxdb IP Address') parser.add_argument('--influxdb-database', default='mirubee', help='Influxdb IP Address') parser.add_argument('--influxdb-user', default='root',help='Influxdb IP Address') parser.add_argument('--influxdb-password', default='root', help='Influxdb IP Address') parser.add_argument('--requests-per-day', default=24, type=int, help='Number of request per day. The free API offers up to 1000 hits per day.') args = parser.parse_args() logger = _setup_logger(args.verbose) mirubee = MirubeeApi() config_file = os.path.abspath(args.config_file if args.config_file else "mirubee.toml") if os.path.exists(config_file): logger.debug("Opening user data file on {}".format(config_file)) with open(config_file) as f: user_data = json.load(f) mirubee.setToken(user_data['MIRUBEE_API_TOKEN']) else: logger.info("Generating user data file on {}".format(config_file)) username = os.environ.get("MIRUBEE_USER", args.user) password = os.environ.get("MIRUBEE_PASSWORD", args.password) if not username or not password: raise RuntimeError("Since there is no configuration file, username AND password are required.") MIRUBEE_API_TOKEN = mirubee.login(username, password) user_data = mirubee.scan() logger.debug(user_data) with open(config_file, 'w') as f: json.dump(user_data, f, indent=2) if (args.influxdb_host): client = InfluxDBClient(host=args.influxdb_host, port=args.influxdb_port, username=args.influxdb_user, password=args.influxdb_password) client.create_database(args.influxdb_database) client.switch_database(args.influxdb_database) else: client = None sleep_interval = 24*60*60/args.requests_per_day logger.info("Sleep interval: {} secs".format(sleep_interval)) start = datetime.utcnow() - timedelta(minutes=5) while True: end = datetime.utcnow() for MIRUBEE_USER_BUILDING in user_data['MIRUBEE_USER_BUILDINGS']: for MIRUBEE_BUILDING_METER in MIRUBEE_USER_BUILDING['MIRUBEE_BUILDING_METERS']: for MIRUBEE_METER_CHANNEL in MIRUBEE_BUILDING_METER['MIRUBEE_METER_CHANNELS']: if MIRUBEE_METER_CHANNEL['MIRUBEE_CHANNEL_MAIN']: measures = mirubee.getChannelData(MIRUBEE_USER_BUILDING['MIRUBEE_BUILDING_ID'], MIRUBEE_BUILDING_METER['MIRUBEE_METER_ID'], MIRUBEE_METER_CHANNEL['MIRUBEE_CHANNEL_ID'], start, end) data = [{ "measurement": "mirubee", "tags": { "mirubee_building_id": MIRUBEE_USER_BUILDING['MIRUBEE_BUILDING_ID'], "mirubee_meter_id": MIRUBEE_BUILDING_METER['MIRUBEE_METER_ID'], "mirubee_channel_id": MIRUBEE_METER_CHANNEL['MIRUBEE_CHANNEL_ID'], }, "time": measure_time, "fields": { "P": float(measure_power) } } for measure_power, measure_time in zip(measures['data']['P'], measures['data']['time'])] logger.debug(data) if client: client.write_points(data) time.sleep(sleep_interval) start = end
[ "d.aroca.sanchez@gmail.com" ]
d.aroca.sanchez@gmail.com
87c3e4038e5bbee2bdfc93310f042f31fe4ba122
e1808bea60f5f098ad2c4664ed2a639e276c4ff7
/scans/migrations/0003_auto_20180823_0854.py
9adb7bb671bfe0848c7d35416adb48d27eef3d54
[]
no_license
tuanklnew/VulnerabilitiesManagement
17008e120cb6f94f625eb31cd046401eeb4a315b
81603a1c8e4a21e496b22f318409e743e5d4be8b
refs/heads/master
2020-03-12T19:56:33.408314
2018-11-07T15:32:43
2018-11-07T15:32:43
130,794,917
0
1
null
null
null
null
UTF-8
Python
false
false
492
py
# Generated by Django 2.0.4 on 2018-08-23 01:54 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('scans', '0002_auto_20180803_1353'), ] operations = [ migrations.AlterField( model_name='scantaskmodel', name='scanProject', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='projects.ScanProjectModel'), ), ]
[ "tuanklnew@gmail.com" ]
tuanklnew@gmail.com
f6c5e6a043f67c50bbe6334ee5273fce210c2169
daf5995aa65a6936bd6cd26888af81e773d437fa
/rfn/layer.py
0cda51d4c6d65bbe2f4095029c5198688e27d4de
[ "MIT" ]
permissive
TobiasSkovgaardJepsen/relational-fusion-networks
12657451e236da3e4dc6ccebd85c3df64c7b0b5a
3b1f1d7ceae5251c835710863c70380332cc4cc5
refs/heads/master
2022-12-10T10:38:53.126769
2020-09-14T12:49:31
2020-09-14T13:54:47
192,924,730
25
5
MIT
2022-12-08T06:22:43
2019-06-20T13:26:38
Jupyter Notebook
UTF-8
Python
false
false
1,944
py
from mxnet.gluon.nn import HybridBlock class RFNLayer(HybridBlock): class Join(HybridBlock): """ Block that handles merging of node and between-edge features for use in graph fusion on a dual graph representation. """ def hybrid_forward(self, F, X_N, X_B, N_shared_node_dual): X_N_prime = F.take(X_N, indices=N_shared_node_dual).flatten() return F.concat(X_B, X_N_prime, dim=1) def __init__(self, relational_fusion_primal, relational_fusion_dual, feed_forward, **kwargs): super().__init__(**kwargs) self.relational_fusion_primal = relational_fusion_primal self.join = self.Join() self.relational_fusion_dual = relational_fusion_dual self.feed_forward = feed_forward self.register_children( self.relational_fusion_primal, self.join, self.relational_fusion_dual, self.feed_forward) def hybrid_forward(self, F, X_N, X_E, X_B, N_node_primal, N_edge_primal, node_mask_primal, N_node_dual, N_edge_dual, N_shared_node_dual, node_mask_dual): Z_N = self.relational_fusion_primal( X_N, X_E, N_node_primal, N_edge_primal, node_mask_primal) X_B_prime = self.join( X_N, X_B, N_shared_node_dual) Z_E = self.relational_fusion_dual( X_E, X_B_prime, N_node_dual, N_edge_dual, node_mask_dual) Z_B = self.feed_forward(X_B) return Z_N, Z_E, Z_B def register_children(self, *blocks): for block in blocks: self.register_child(block) @property def out_units(self): return ( self.relational_fusion_primal.out_units, self.relational_fusion_dual.out_units, self.feed_forward.out_units )
[ "tobiasskovgaardjepsen@gmail.com" ]
tobiasskovgaardjepsen@gmail.com
e02ab462c9f4a49d4b599efd3007e3abb3612645
6d233ad2059a941e4ce4c5b5ee3857b8a4a0d212
/Everyday_alg/2021/05/2021_05_20/fan-zhuan-lian-biao-lcof.py
d1d64aebb1845d489af655b5b2d01f99ede7e6dc
[]
no_license
Alexanderklau/Algorithm
7c38af7debbe850dfc7b99cdadbf0f8f89141fc6
eac05f637a55bfcc342fa9fc4af4e2dd4156ea43
refs/heads/master
2022-06-12T21:07:23.635224
2022-06-12T08:12:07
2022-06-12T08:12:07
83,501,915
5
3
null
null
null
null
UTF-8
Python
false
false
549
py
# coding: utf-8 __author__ = "lau.wenbo" """ 定义一个函数,输入一个链表的头节点,反转该链表并输出反转后链表的头节点。   示例: 输入: 1->2->3->4->5->NULL 输出: 5->4->3->2->1->NULL   限制: 0 <= 节点个数 <= 5000 """ # Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def reverseList(self, head): """ :type head: ListNode :rtype: ListNode """
[ "429095816@qq.com" ]
429095816@qq.com
2e42ef9619f4fffbb4e0482a849b8171db04ffca
3c72dfae389d910ea77b9593a8601e8335b6a2d6
/tccli/services/car/__init__.py
c995a5cc0cc97606c8aa510af9f11ae788904758
[ "Apache-2.0" ]
permissive
TencentCloud/tencentcloud-cli-intl-en
c6c17e19a79a4c31b310da97bc91417e161801fb
5ed2fe2b91aa14f05e8821dd4332cc445b6234cd
refs/heads/master
2023-09-01T19:37:18.534188
2023-09-01T04:01:27
2023-09-01T04:01:27
229,569,850
0
7
Apache-2.0
2023-09-12T11:05:36
2019-12-22T13:10:59
Python
UTF-8
Python
false
false
85
py
# -*- coding: utf-8 -*- from tccli.services.car.car_client import action_caller
[ "tencentcloudapi@tencent.com" ]
tencentcloudapi@tencent.com
11e21ae82e962eea826afcb6343275e60e01c2b8
e9a386b8677066a376b004ff4f1475d7db976cfe
/teacher/views.py
d5ebb6b639be236c46088c3be91300ad387d1298
[]
no_license
farabisiddique/booctep_deployment
c92ff3848cf2cb044c66a04d2c25cce1cffa535d
055c2a72103a552a159b0cd88a60bd81b72ac067
refs/heads/main
2023-03-14T20:39:29.565446
2021-03-07T12:50:21
2021-03-07T12:50:21
345,344,689
0
0
null
null
null
null
UTF-8
Python
false
false
20,895
py
from django.shortcuts import render,redirect from teacher.models import categories, Courses, VideoUploads, Sections, questions, student_mark, answers from home.models import User, user_profile, notifications from student.models import student_register_courses, student_rating_courses, course_comments from datetime import datetime import os, sys, shutil import traceback from django.http import HttpResponse, HttpResponseRedirect, JsonResponse import json import uuid from django.conf import settings from django.utils.translation import LANGUAGE_SESSION_KEY from django.core.paginator import Paginator def teacher_account(request): if request.session.get('user_id') == None: return redirect('/') objC = categories.objects.all() profile = '' if user_profile.objects.filter(user_id=request.user.id).exists() : profile = user_profile.objects.get(user_id=request.user.id) return render(request, 'teacher/account.html', {'objC':objC, 'profile':profile, 'lang': getLanguage(request)[0]}) def teacher_security(request): if request.session.get('user_id') == None: return redirect('/') user_id = request.session.get('user_id') password = request.session.get('password') print("passwrod", password) print("user_id", user_id) return render(request, 'teacher/security.html', {'lang': getLanguage(request)[0], 'user_id': user_id, 'password': password}) def teacher_notifications(request): if request.session.get('user_id') == None: return redirect('/') id = request.user.id noti_list = notifications.objects.filter(user_id=id,is_read=0) for noti in noti_list: noti.is_read = 1 noti.save() course_list = Courses.objects.filter(user_id=id) course_id = Courses.objects.filter(user_id=id).values_list('id',flat=True) ids = map(str, course_id) _ids = ','.join(ids) excludetheseid = [] exclude_student_unrecieve_noti = User.objects.filter(receive_notifications=0).values('id') for value in range(len(exclude_student_unrecieve_noti) ): excludetheseid.append(exclude_student_unrecieve_noti[value]['id']) student_list = student_register_courses.objects.extra(where=['FIND_IN_SET(course_id_id, "' + _ids + '")']).exclude(student_id_id__in=excludetheseid) print(excludetheseid) print("stude:",student_list) return render(request, 'teacher/notifications.html', {'lang': getLanguage(request)[0],'noti_list':noti_list, 'course_list':course_list,'student_list':student_list}) def teacher_payments(request): if request.session.get('user_id') == None: return redirect('/') return render(request, 'teacher/payments.html', {'lang': getLanguage(request)[0]}) def teacher_privacy(request): return render(request, 'teacher/privacy.html', {'lang': getLanguage(request)[0], 'user_id':request.user.id}) def dashboard(request): if request.session.get('user_id') == None: return redirect('/') user_id = request.session.get('user_id') courses = Courses.objects.filter(user_id=user_id).filter(type=0) #price logic.. totalPrice = 0 #get total student courseId = Courses.objects.filter(user_id=user_id).values_list('id',flat=True) courseId = list(courseId) courseId = map(str, courseId) courseId = ','.join(courseId) totalStuCnt = student_register_courses.objects.extra(where=['FIND_IN_SET(course_id_id, "'+courseId+'")']).count() #get total rating rateSum = 0 rateCnt = 0 for course in courses: rating = course_comments.objects.filter(course_id_id=course.id).values_list('rating',flat=True) rating = list(rating) sum = 0; for i in rating: sum += i if len(rating) == 0: course.rating = 0 else : course.rating = sum / len(rating) course.stuCnt = student_register_courses.objects.filter(course_id_id=course.id).count() course.totalGain = course.price*course.stuCnt totalPrice += course.totalGain rateSum += course.rating rateCnt += 1 if rateCnt == 0: totalRate = 0 else : totalRate = round(rateSum/rateCnt,2) return render(request, 'teacher/dashboard.html', {'lang': getLanguage(request)[0],'courses':courses, 'totalRate':totalRate, 'totalStuCnt':totalStuCnt,'totalPrice':totalPrice}) def teacher_courses(request): if request.session.get('user_id') == None: return redirect('/') filter_type = request.GET.get('filter_type') if filter_type == None: filter_type = '-1' if int(filter_type) == -1: course_list = get_teacher_CourseList(request) filter_type = -1 else: user_id = request.session.get("user_id") course_list = Courses.objects.filter(user_id=user_id,type=filter_type) filter_type = int(filter_type) return render(request, 'teacher/courses.html', {'lang': getLanguage(request)[0], 'course_list': course_list, 'user_type':request.session.get('user_type'),'filter_type':filter_type}) def teacher_faqs(request): if request.session.get('user_id') == None: return redirect('/') return render(request, 'teacher/faqs.html', {'lang': getLanguage(request)[0]}) def course_engagement(request): if request.session.get('user_id') == None: return redirect('/') cur_course_id = request.GET.get('course_id') courses = get_teacher_CourseList(request) if cur_course_id == None: if len(courses) > 0: cur_course_id = courses[0].id else : cur_course_id = 0 if len(courses) > 0: course = Courses.objects.get(pk=cur_course_id) # total price... # total students count = student_register_courses.objects.filter(course_id_id=course.id).count() course.stuCnt = count # total rating rateList = course_comments.objects.filter(course_id_id=course.id).values_list('rating', flat=True) rateList = list(rateList) sum = 0 for i in rateList: sum += i if len(rateList) == 0: course.rating = 0 else: course.rating = sum / len(rateList) #reviews... reviewList = course_comments.objects.filter(course_id_id=cur_course_id) else: course = '' reviewList = '' return render(request, 'teacher/course-engagement.html', {'lang': getLanguage(request)[0],'courses':courses, 'course':course, 'reviewList':reviewList, 'cur_course_id':cur_course_id}) def addtofeedback(request): if request.session.get('user_id') == None: return redirect('/') commentid = request.GET.get('commentid') commentquery = course_comments.objects.filter(course_id_id=commentid) commentquery.approved_by_teacher = 1 commentquery.save() return HttpResponse("success") def student_performance(request): if request.session.get('user_id') == None: return redirect('/') user_id = request.user.id course_id = request.POST.get('course_id') courseList = Courses.objects.filter(user_id=user_id).order_by("id") if len(courseList) > 0: if course_id == None: course_id = courseList[0].id # get all course that i made.. studentList = student_mark.objects.filter(course_id=course_id) for student in studentList: student.user = User.objects.get(pk=student.student_id) student.percent = student.mark * 20 student.count = answers.objects.filter(student_id=student.student_id,result=1).count() else : course_id = '' return render(request, 'teacher/student-performance.html', {'lang': getLanguage(request)[0],'courseList':courseList, 'course_id':course_id*1, 'studentList':studentList}) def teacher_messages(request): if request.session.get('user_id') == None: return redirect('/') user_id = request.session.get("user_id") user_type = request.session.get("user_type") if user_id : profile = User.objects.get(id = user_id) user_name = profile.first_name+" "+profile.last_name student_list= [] student_dict= {} if Courses.objects.filter(user_id = user_id).exists(): obj = Courses.objects.filter(user_id = user_id) for i in obj: if student_register_courses.objects.filter(course_id = i.id).exists(): student_dict["course_name"] = i.name student_dict["course_id"] = i.id student_obj = student_register_courses.objects.filter(course_id = i.id) for k in student_obj: student_dict["student_id"] = k.student_id.id student_dict["student_name"] = k.student_id.first_name+" "+k.student_id.last_name student_dict["student_image"] = k.student_id.image student_list.append(student_dict) student_dict = {} return render(request, 'teacher/messages.html', {'lang': getLanguage(request)[0], 'datetime':datetime,"student_list":student_list,"user_id":user_id,"user_name":user_name}) else: return render(request, 'teacher/messages.html', {'lang': getLanguage(request)[0], 'datetime':datetime,"user_id":user_id}) def dashboard1(request): if request.session.get('user_id') == None: return redirect('/') return render(request, 'teacher/dashboard_1.html', {'lang': getLanguage(request)[0]}) def guideline(request): if request.session.get('user_id') == None: return redirect('/') return render(request, 'teacher/guidline.html', {'lang': getLanguage(request)[0]}) def teacher_help(request): if request.session.get('user_id') == None: return redirect('/') return render(request, 'teacher/help.html', {'lang': getLanguage(request)[0]}) def help2(request): if request.session.get('user_id') == None: return redirect('/') return render(request, 'teacher/help2.html', {'lang': getLanguage(request)[0]}) def newcourse2(request): if request.session.get('user_id') == None: return redirect('/') if request.method == 'POST': course = request.POST.get('course') else : course = '' return render(request, 'teacher/new-course-2.html', {'lang': getLanguage(request)[0], 'course_id': course}) def newcourse3(request): if request.session.get('user_id') == None: return redirect('/') if request.method == 'POST': course = request.POST.get('course') else : course = '' return render(request, 'teacher/new-course-3.html', {'lang': getLanguage(request)[0], 'course_id':course}) def newcourse4(request): if request.session.get('user_id') == None: return redirect('/') id = request.GET.get('id') data = get_courseDetails(id) course = Courses.objects.get(pk=id) include = course.includes incList = include.split(',') incList.pop() videoList = getVideoList(course) if len(videoList) > 0: showVideoUrl = videoList[0].url else : showVideoUrl = '' return render(request, 'teacher/new-course-4.html', {'lang': getLanguage(request)[0], 'video_list': data['video_list'], 'question_list': data['question_list'], 'section_list': data['section_list'],'course':course,'incList':incList, 'video_url':showVideoUrl}) def newcourse5(request): if request.session.get('user_id') == None: return redirect('/') return render(request, 'teacher/new-course-5.html', {'lang': getLanguage(request)[0]}) # def courseUrlGenerator(coursename): # x = txt.split() # courselink = "_".join(x) # return courselink def newcourse(request): if request.session.get('user_id') == None: return redirect('/') course = [] obj_cat = categories.objects.all() autoUrl = '' if request.method == 'POST': course_id = request.POST.get('course') course = Courses.objects.get(pk=course_id) descript = course.includes.split(",") descript.pop() course.includes = descript else : course_id = '' courseCnt = Courses.objects.filter(user_id=request.user.id).count() teacher_name = request.user.first_name + " " + request.user.last_name courseNo = '' idx = (courseCnt + 1) while idx < 1000 : idx = idx * 10 courseNo += '0' autoUrl = teacher_name + "_" + courseNo + str(courseCnt + 1) return render(request, 'teacher/new-course.html', {'lang': getLanguage(request)[0], 'categories':obj_cat, 'autoUrl':autoUrl, 'course':course, 'course_id':course_id}) def nocourseengagement(request): if request.session.get('user_id') == None: return redirect('/') return render(request, 'teacher/no-course-engagement.html', {'lang': getLanguage(request)[0]}) def nocourse(request): if request.session.get('user_id') == None: return redirect('/') return render(request, 'teacher/no-course.html', {'lang': getLanguage(request)[0]}) # post # get all course list # @return List def get_teacher_CourseList(request): user_id = request.session.get("user_id") user_type = request.session.get("user_type") print(user_id) print(user_type) course_list = [] course_list = Courses.objects.filter(user_id = user_id) return course_list def getAllCourseList(): course_list = [] course_list = Courses.objects.all() return course_list def getPaidCourseList(): course_list = [] course_list = Courses.objects.filter(type=0) return course_list def getFreeCourseList(): course_list = [] course_list = Courses.objects.filter(type=1) return course_list # store course in DB def store_course(request): id = request.POST.get('id') name = request.POST.get('name') description = request.POST.get('description') requirements = request.POST.get('requirements') gains = request.POST.get('gains') include = request.POST.get('include') category_id = request.POST.get('category_id') sub_category_id = request.POST.get('sub_category_id') price = request.POST.get('price') courseUrl = request.POST.get('courseUrl') user_id = request.POST.get('user_id') pending = request.POST.get('pending') type = request.POST.get('type') myfile = request.FILES['coverImg'] myfile1 = request.FILES['headerImg'] filename = myfile._get_name() ext = filename[filename.rfind('.'):] file_name = str(uuid.uuid4()) + ext path = '/user_images/' full_path = str(path) + str(file_name) fd = open('%s/%s' % (settings.STATICFILES_DIRS[0], str(path) + str(file_name)), 'wb') for chunk in myfile.chunks(): fd.write(chunk) fd.close() filename1 = myfile1._get_name() ext1 = filename1[filename1.rfind('.'):] file_name1 = str(uuid.uuid4()) + ext1 path = '/user_images/' full_path1 = str(path) + str(file_name1) fd = open('%s/%s' % (settings.STATICFILES_DIRS[0], str(path) + str(file_name1)), 'wb') for chunk in myfile1.chunks(): fd.write(chunk) fd.close() if id == '': # add case objCourse = Courses( name = name, description = description, requirements = requirements, gains = gains, includes = include, scat_id = category_id, price = price, user_id=request.user.id, cover_img=full_path, header_img=full_path1, course_url=courseUrl, pending = pending, type = type ) objCourse.save() print('success') msg = "successs" id = objCourse.id else : objCourse = Courses.objects.get(pk=id) objCourse.name = name objCourse.description = description objCourse.requirements = requirements objCourse.gains = gains objCourse.includes = include objCourse.scat_id = category_id objCourse.price = price objCourse.user_id = request.user.id objCourse.cover_img = full_path objCourse.header_img = full_path1 objCourse.course_url = courseUrl objCourse.pending = pending objCourse.type = type objCourse.save() msg = "successs" id = objCourse.id to_return = { 'msg': msg, 'id': id} serialized = json.dumps(to_return) return HttpResponse(serialized, content_type="application/json") # store videos in DB def store_course_2(request): data = request.POST course_id = json.loads(data.get("course_id")) pending = json.loads(data.get("pending")) files = request.FILES video_list = [] msg = '' course = Courses.objects.get(pk=course_id) course.pending = pending course.save() try: section_list = data.get("section_list") section_list = json.loads(section_list) json_video_list = json.loads(data.get("video_list")) if( len(json_video_list) > 0 ): ## store section in DB for section in section_list: name = section['name'] tag_id = section['tag_id'] ## store section in DB objSection = Sections( name=name, course_id=course_id, type='video', nos=tag_id ) objSection.save() section_id = objSection.id for item in json_video_list: if( item['sectionId'] == tag_id ) : ## upload video video_key = item['key'] video = files[video_key] filename = video._get_name() ext = filename[filename.rfind('.'):] file_name = str(uuid.uuid4())+ext path = '/uploads/courses/videos/' full_path= str(path) + str(file_name) print("store course", full_path) print("store course1", (settings.STATICFILES_DIRS[0],str(path) + str(file_name))) fd = open('%s/%s' % (settings.STATICFILES_DIRS[0],str(path) + str(file_name)), 'wb') for chunk in video.chunks(): fd.write(chunk) fd.close() ## store video in DB objVideo = VideoUploads( name=filename, section_id=section_id, url=full_path, promo=item['promo'] ) objVideo.save() msg = "success" else: msg = "failed" except: tb = sys.exc_info()[2] tbinfo = traceback.format_tb(tb)[0] msg = tbinfo + "\n" + ": " + str(sys.exc_info()) to_return = { 'msg': msg, } serialized = json.dumps(to_return) return HttpResponse(serialized, content_type="application/json") # store questions in DB def store_course_3(request): msg = '' data = request.POST course_id = json.loads(data.get("course_id")) try: question_list = json.loads(data.get('question_list')) section_list = json.loads(data.get('section_list')) key = 1 # question number if( len(question_list) > 0 ) : for section in section_list: tag_id = section['tag_id'] section_name = section['name'] nos = Sections.objects.filter(course_id=course_id).count() ## store section in DB objSection = Sections( name=section_name, course_id=course_id, type='question', nos=nos+1 ) objSection.save() section_id = objSection.id for question in question_list: if question['section_id'] == tag_id : title = question['question_title'] type = question['answer_type'] answers = question['answers'] content = '' result = '' for answer in answers: content += answer['data'] content += ',' # if type != 'aw-dragula': # for answer in answers: result += answer['result'] result += ',' objQuestion = questions( title=title, section_id=section_id, type=type, content=content, answer=result, nos=key ) objQuestion.save() key += 1 msg = "success" else : msg = "failed" except: tb = sys.exc_info()[2] tbinfo = traceback.format_tb(tb)[0] msg = tbinfo + "\n" + ": " + str(sys.exc_info()) to_return = { 'msg': msg, } serialized = json.dumps(to_return) return HttpResponse(serialized, content_type="application/json") # get course details by course's id. # # @param Request # # @return HttpResponse def getCourseDetailsById(request): id = request.POST.get('id') msg = '' to_return = { 'msg': msg, 'data': get_courseDetails(id) } serialized = json.dumps(to_return) return HttpResponse(serialized, content_type="application/json") def get_courseDetails(course_id): id = course_id video_list = [] question_list = [] section_list = [] tmp_sections = Sections.objects.filter(course_id=id) if len(tmp_sections) > 0: for section in tmp_sections: section_list.append({ 'id': section.id, 'name': section.name, 'course_id': section.course_id, 'type': section.type, }) for video in VideoUploads.objects.filter(section_id=section.id): video_list.append({ 'id': video.id, 'name': video.name, 'section_id': video.section_id, 'src': video.url, }) for question in questions.objects.filter(section_id=section.id): question_list.append({ 'id': question.id, 'title': question.title, 'type': question.type, 'section_id': question.section_id, 'nos': question.nos, 'content': question.content, 'answer': question.answer, }) print(section_list) return { 'question_list': question_list, 'video_list': video_list, 'section_list': section_list, } ur="" # language="" def getLanguage(request): global ur; # global language; # prev="" path = request.path ur=path prev=request.META.get('HTTP_REFERER') language = path.split('/')[1] # if(request.session.get("language_code")): # language = request.session.get("language_code") + "/" # else: # language = path.split('/')[1] # request.session['language_code'] = language # language = language + "/" if language == "ar": language = language + '/' else: language = "" return language,prev,path def saveLater(request): id = request.POST.get('id') pending = request.POST.get('pending') print(id,pending) course = Courses.objects.get(pk=id) print(course) course.pending = pending course.save() ret = {'msg': 'success'} return JsonResponse(ret) def getVideoList(course): ssss = Sections.objects.filter(course_id=course.id).values_list("id", flat=True) ssss = map(str, ssss) strr = ','.join(ssss) videoList = VideoUploads.objects.extra(where=['FIND_IN_SET(section_id, "' + strr + '")']) return videoList
[ "ebari2017@yandex.com" ]
ebari2017@yandex.com
b538c15b1341fafdf1aed9ae349e8d6dd94a524a
0d4850d343530aca114921bc500cae0a2a6c34b4
/algorithms/heuristic_methods.py
f1311304442600d65c4fc02fd33bc665282d6b55
[]
no_license
proxodilka/genetic_algorithms
c3518208df962d9c5414c940b10f792f4dacd5a3
7a4acc17849c253dc14a5cfc5f6e1dd43ba876de
refs/heads/master
2023-04-30T10:45:36.683912
2021-05-22T21:57:29
2021-05-22T21:57:29
369,882,663
0
0
null
null
null
null
UTF-8
Python
false
false
3,675
py
from abc import abstractmethod import numpy as np from .utils import SEED # np.random.seed(SEED.value) class BaseSolver: def __init__(self, individual_type, score_fn, **kwargs): self.type = individual_type self.scorer = score_fn self.i = 0 def get_solutions(self, n, steps=None): if steps is None: steps = min(2 * self.type.shape(), 100) return [self.get_solution(steps) for _ in range(n)] @abstractmethod def get_solution(self, steps, return_score=False): pass class MonteCarlo(BaseSolver): def get_solution(self, steps, return_score=False): print(self.i) self.i += 1 generator = self.type.build_random best_score = float("inf") solution = None for _ in range(steps): candidate = generator() c_score = self.scorer(candidate) if c_score < best_score: solution = candidate best_score = c_score if return_score: return solution, best_score else: return solution class DFS(BaseSolver): def get_solution(self, steps, return_score=False): generator = self.type.build_random hood_generator = self.type.hood solution = generator() best_score = self.scorer(solution) for _ in range(steps): hood = hood_generator(solution) solution_was_updated = False for candidate in hood: c_score = self.scorer(candidate) if c_score < best_score: solution = candidate best_score = c_score solution_was_updated = True if not solution_was_updated: break if return_score: return solution, best_score else: return solution class NearestCity(BaseSolver): def __init__(self, individual_type, score_fn, weights=None, **kwargs): assert weights is not None or hasattr( self, "weights" ), "City weights matrix is not provided, pass it to the constructor, or use decorator to bind it to the new class." super().__init__(individual_type, score_fn) if not hasattr(self, "weights"): self.weights = weights def get_solution(self, *args, **kwargs): return_score = kwargs.get("return_score", False) solution = min( [self.solve(self.weights, i) for i in range(len(self.weights))], key=lambda x: x[1], ) individ, score = solution individ = self.type(gens=individ, score_fn=self.scorer) if return_score: return individ, score return individ def solve(self, weights, start_city): n_cities = weights.shape[0] result = np.zeros(n_cities, dtype=np.int) visited_mask = ~np.zeros(n_cities, dtype=np.bool) result[0] = start_city visited_mask[start_city] = False for i in range(1, len(result)): city_from = result[i - 1] nearest_city = self.get_nearest_city(weights, city_from, visited_mask) result[i] = nearest_city visited_mask[nearest_city] = False score = self.scorer(result) return result, score @staticmethod def get_nearest_city(weights, city, visited_mask, return_weight=False): masked_min_idx = weights[city][visited_mask].argmin() nearest_city = np.where(visited_mask)[0][masked_min_idx] if return_weight: return nearest_city, weights[city, nearest_city] else: return nearest_city
[ "zeeron209@gmail.com" ]
zeeron209@gmail.com
accffe6b7df7db10cdb2761f91701c25dbcc7b4b
55a4a29ecbc32570d08dd03cdb521b7e978db09c
/authorization/forms.py
c061204d11e88688845d340d795a23a58f01a719
[]
no_license
dimdiden/portanizer
73c55d129916a79c660012220c7e6694826e5ff8
e54f4f04a4052b4b94a92e4c8b10d1ccf5aac5ee
refs/heads/master
2021-09-27T18:22:27.175236
2020-08-09T09:07:06
2020-08-09T09:07:06
99,321,841
0
0
null
2021-09-22T17:38:07
2017-08-04T08:30:12
Python
UTF-8
Python
false
false
3,889
py
from django import forms from django.contrib.auth import ( authenticate, get_user_model, ) # This method will return the currently active user model # the custom user model if one is specified, or User otherwise. User = get_user_model() class UserLoginForm(forms.Form): username = forms.CharField(widget=forms.TextInput( attrs={'placeholder': 'Enter username'}), label='Username:') password = forms.CharField(widget=forms.PasswordInput( attrs={'placeholder': 'Enter password'}), label='Password:') def clean(self, *args, **kwargs): username = self.cleaned_data.get("username") password = self.cleaned_data.get("password") if username and password: try: user = User.objects.get(username=username) except User.DoesNotExist: user = None user_auth = authenticate(username=username, password=password) if not user: raise forms.ValidationError("This user does not exist") if not user_auth: raise forms.ValidationError("Incorrect password") if not user_auth.is_active: raise forms.ValidationError("The user is no longer active") return super(UserLoginForm, self).clean(*args, **kwargs) class UserRegisterForm(forms.ModelForm): username = forms.CharField(widget=forms.TextInput( attrs={'placeholder': 'Enter username'}), label='Username:') email = forms.EmailField(widget=forms.TextInput( attrs={'placeholder': 'Enter email'}), label='Email address:') password = forms.CharField(widget=forms.PasswordInput( attrs={'placeholder': 'Enter password'}), label='Password:') password2 = forms.CharField(widget=forms.PasswordInput( attrs={'placeholder': 'Enter the same password'}), label='Confirm Password:') class Meta: model = User fields = [ 'username', 'password', 'password2', 'email', ] # https://stackoverflow.com/questions/34609830/django-modelform-how-to-add-a-confirm-password-field def clean(self, *args, **kwargs): password = self.cleaned_data.get('password') password2 = self.cleaned_data.get('password2') if password and len(password) <= 6: raise forms.ValidationError("Passwords must contain not less than 6 characters") if password != password2: raise forms.ValidationError("Passwords must match") return super(UserRegisterForm, self).clean(*args, **kwargs) class PasswordResetRequestForm(forms.Form): email_or_username = forms.CharField(widget=forms.TextInput( attrs={'placeholder': 'Enter your email or username'}), label=("Email Or Username")) class SetPasswordForm(forms.Form): error_messages = { 'password_mismatch': ("The two password fields didn't match."), 'password_length': ("Passwords must contain not less than 6 characters"), } password = forms.CharField(widget=forms.PasswordInput( attrs={'placeholder': 'Enter password'}), label='New password:') password2 = forms.CharField(widget=forms.PasswordInput( attrs={'placeholder': 'Enter the same password'}), label='New password confirmation:') def clean_password2(self): password = self.cleaned_data.get('password') password2 = self.cleaned_data.get('password2') if len(password) <= 6: raise forms.ValidationError( self.error_messages['password_length'], code='password_length', ) if password and password2: if password != password2: raise forms.ValidationError( self.error_messages['password_mismatch'], code='password_mismatch', ) return password2
[ "dimdiden@gmail.com" ]
dimdiden@gmail.com
f25422ab2631f0fdbeb4a03692b87a9201748f63
54646ea5bc36103cf8100ec796b640a8358fef95
/database/migrations/0005_auto_20151013_1921.py
0a697c25fdff4b71b280aee61e1bdb088eec6e0a
[]
no_license
extremewaysback/origin
3d48fb642feef0a5fe33e323b99f437d00446045
ccdc059c6590aa17115ae7af9ed8aff8cd0e5d1c
refs/heads/master
2021-01-09T21:47:38.135516
2016-04-08T13:49:21
2016-04-08T13:49:21
48,943,391
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('database', '0004_auto_20151013_1654'), ] operations = [ migrations.AlterField( model_name='defectdata', name='scantime', field=models.DateTimeField(verbose_name=django.utils.timezone.now), ), ]
[ "extremewaysback@hotmail.com" ]
extremewaysback@hotmail.com
d595fa292a91a2c556d114cdb90fca4be8725a62
e35eb92b5ab6547119585004b9eea3cafe948050
/efsw/archive/forms.py
0412fa6bb77d4b59b6d79c94e261e4dacfe4a7aa
[]
no_license
einsfr/mmkit
0a084db85b2cf5ba268e692676095d768733f387
f12bc2f83254a3123e02abdc105816cc04c438b5
refs/heads/master
2020-12-31T05:56:19.287611
2016-06-10T05:56:58
2016-06-10T05:56:58
29,473,203
0
0
null
null
null
null
UTF-8
Python
false
false
4,889
py
from django import forms from django.forms import widgets from efsw.archive import models from efsw.storage import models as storage_models from efsw.common.datetime.period import DatePeriod class ItemCreateForm(forms.ModelForm): class Meta: model = models.Item fields = ('name', 'description', 'created', 'author', 'category') widgets = { 'name': widgets.TextInput(attrs={ 'class': 'form-control', 'placeholder': 'Название нового элемента' }), 'created': widgets.DateInput(attrs={ 'class': 'form-control', 'placeholder': '01.01.2015' }), 'description': widgets.Textarea(attrs={ 'class': 'form-control', 'placeholder': 'Описание нового элемента', 'style': 'resize: vertical;' }), 'author': widgets.TextInput(attrs={ 'class': 'form-control', 'placeholder': 'Автор(ы) элемента' }), 'category': widgets.Select(attrs={ 'class': 'form-control', }) } def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields['category'].empty_label = None class ItemUpdatePropertiesForm(forms.ModelForm): class Meta(ItemCreateForm.Meta): fields = ('name', 'description', 'created', 'author', 'category') def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields['category'].empty_label = None class ItemUpdateLocationsForm(forms.Form): storage = forms.ModelChoiceField( queryset=storage_models.FileStorage.objects.filter(allowed_usage__contains=['archive']), label='Хранилище', empty_label=None, widget=widgets.Select(attrs={ 'class': 'form-control', 'data-bind': 'value: form_storage', }) ) path = forms.CharField( max_length=255, label='Путь к файлу', widget=widgets.TextInput(attrs={ 'class': 'form-control', 'data-bind': 'textInput: form_path', }) ) class ItemCategoryForm(forms.ModelForm): class Meta: model = models.ItemCategory fields = ('name', ) widgets = { 'name': widgets.TextInput(attrs={ 'class': 'form-control', 'placeholder': 'Название новой категории' }) } class ArchiveSearchForm(forms.Form): ORDER_BY_CREATED_ASC = '1' ORDER_BY_CREATED_DESC = '2' ORDER_CHOICES = { ORDER_BY_CREATED_ASC: 'По дате создания (по возрастанию)', ORDER_BY_CREATED_DESC: 'По дате создания (по убыванию)', } DATE_PERIODS = DatePeriod.PERIODS_PAST_ONLY_WITH_TODAY DATE_CHOICES = DatePeriod.get_periods_past_only() q = forms.CharField( min_length=3, max_length=255, label='Текст запроса', required=False, widget=widgets.TextInput(attrs={ 'class': 'form-control', 'placeholder': 'Текст поискового запроса' }) ) c = forms.ModelMultipleChoiceField( queryset=models.ItemCategory.objects.all().order_by('name'), label='Категория', required=False, widget=widgets.SelectMultiple(attrs={ 'class': 'form-control', }) ) o = forms.ChoiceField( choices=[('', 'По релевантности')] + list(ORDER_CHOICES.items()), label='Порядок сортировки', required=False, widget=widgets.Select(attrs={ 'class': 'form-control', }) ) p = forms.ChoiceField( choices=[('', 'За всё время')] + [(x[0], str(x[1]).capitalize()) for x in DATE_CHOICES.items()] + [('custom', 'Указать особый')], label='Дата записи', required=False, widget=widgets.Select(attrs={ 'class': 'form-control', 'data-bind': 'value: selected_period' }) ) p_s = forms.DateField( required=False, label='Начало периода', widget=widgets.DateInput(attrs={ 'class': 'form-control', 'placeholder': '01.01.2015' }), ) p_e = forms.DateField( required=False, label='Конец периода', widget=widgets.DateInput(attrs={ 'class': 'form-control', 'placeholder': '01.01.2015' }), ) ph = forms.BooleanField( required=False, label='Искать фразу' )
[ "einsfr@users.noreply.github.com" ]
einsfr@users.noreply.github.com
6c5f673ff30c794a914498e84443611631ab3a81
4ef81999138d46494b49314f87321fb505e6ceb5
/spider_scrapy_lianjia/items.py
edde6cfdc2ec5855c14679ed637df8b8cccbcf5d
[]
no_license
netww/spider_scrapy_lianjia
50bc08693d72d5cf60c076fb99e0835079239597
b86c1152457c15c842ddbd72ff4d4a687abed9fb
refs/heads/master
2021-06-05T21:33:44.530069
2016-10-22T14:06:17
2016-10-22T14:06:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
942
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html from scrapy import Item, Field class SpiderScrapyLianjiaItem(Item): # define the fields for your item here like: # name = scrapy.Field() xiaoqu_id = Field() # 小区id house_id = Field() # 链家房源编号 title = Field() # 标题 price = Field() # 价格 #size = Field() # 面积 view_count = Field() # 带看次数 class SpiderChenshiItem(Item): # define the fields for your item here like: # name = scrapy.Field() chenshi_name = Field() # 城市名 avg_price = Field() # 城市均价 onsale_count = Field() # 在售套数 sold_last_month = Field() # 上个月成交套数 view_last_day = Field() # 昨日带看次数
[ "stamhe@163.com" ]
stamhe@163.com
02e886e543183014af20712cd90728216ab6fbf6
257f48f957d6642315b04bef2fad6c0458885811
/support/make_structures.in.py
d7ac0f84079d1994a9e7dab4f85d437a3ac87a8b
[ "MIT" ]
permissive
msg-byu/enumlib
3074daa6ef95c735d6b963fe5dbce0ef1b3a31a9
6bd831f3b325acf1e7066fbe1ffb7312ff249a34
refs/heads/main
2023-01-12T12:02:25.029089
2023-01-02T17:00:06
2023-01-02T17:00:06
36,761,164
56
43
MIT
2022-11-19T15:41:24
2015-06-02T20:53:29
Roff
UTF-8
Python
false
false
1,059
py
#!/usr/bin/python import os, subprocess from os import path import glob from os import system import string import sys # Read in a struct_enum-format file with structures defined. These will be converted to the # vasp-like format that UNCLE uses if len( sys.argv) < 2: sys.exit("Script needs an argument---file containing structures") #strfile = open(sys.argv[1]) if(not path.isfile("makestr.x")): print "This script needs 'makestr.x' to run..." print "Try 'make makestr.x'" exit() for n in range(1,10850): rs=system('./makestr.x '+sys.argv[1]+' '+str(n)+' >& /dev/null') if rs!=0: break print "\n Read in a total of "+str(n-1)+" stuctures from "+sys.argv[1] system("perl -pi -e 's/scale factor/1.0/g' vasp.*") unclefile = open("structures.in",'w') unclefile.write("scalar\nperatom\nnoweights\n") vnum =glob.glob('vasp.*') for i in vnum: f = open(i) str = f.read() unclefile.write(str) unclefile.write("0 0 \n #\n") unclefile.close system("rm vasp.*") print "\n Structures concatenated into structures.in\n"
[ "hart@55a9f988-e549-0410-8b28-d6fb27d14cbf" ]
hart@55a9f988-e549-0410-8b28-d6fb27d14cbf
230e18e7d8c515bdfedabdd665fcd611708d8686
dd0c53c5e56d2aa81e6b8336444395e9ebade387
/calamari_ocr/ocr/augmentation/data_augmenter.py
8da5c2f640f9f0d9dd5066d3557de288dfe5caa1
[ "Apache-2.0" ]
permissive
Caro-app/calamari
ae54f0af2aaae5645ed5a8466ab43d1100f5e62f
30a52cc60ea0c80bbdd9ff042bbd87093524d416
refs/heads/master
2021-01-02T00:11:42.582352
2020-05-27T15:40:46
2020-05-27T15:40:46
239,406,215
0
0
Apache-2.0
2020-05-27T15:40:47
2020-02-10T01:50:10
Python
UTF-8
Python
false
false
2,711
py
from abc import ABC, abstractmethod from calamari_ocr.utils import parallel_map import numpy as np class DataAugmenter(ABC): def __init__(self): super().__init__() @abstractmethod def augment_single(self, data, gt_txt): pass def augment_data(self, data, gt_txt, n_augmentations): if n_augmentations <= 0: return data, gt_txt return zip(*[self.augment_single(data, gt_txt) for _ in range(n_augmentations)]) def augment_data_tuple(self, t): return self.augment_data(*t) def augment_datas(self, datas, gt_txts, n_augmentations, processes=1, progress_bar=False): if n_augmentations <= 0: return datas, gt_txts out = parallel_map(self.augment_data_tuple, list(zip(datas, gt_txts, [n_augmentations] * len(datas))), desc="Augmentation", processes=processes, progress_bar=progress_bar) out_d, out_t = [], [] for d, t in out: out_d += d out_t += t return datas + out_d, gt_txts + out_t class NoopDataAugmenter(DataAugmenter): def __init__(self): super().__init__() def augment_single(self, data, gt_txt): return data, gt_txt def augment_data(self, data, gt_txt, n_augmentations): return data * n_augmentations, gt_txt * n_augmentations class SimpleDataAugmenter(DataAugmenter): def __init__(self): super().__init__() def augment_single(self, data, gt_txt): import calamari_ocr.thirdparty.ocrodeg as ocrodeg original_dtype = data.dtype data = data.astype(np.float) m = data.max() data = data / (1 if m == 0 else m) data = ocrodeg.random_pad(data, (0, data.shape[1] * 2)) # data = ocrodeg.transform_image(data, **ocrodeg.random_transform(rotation=(-0.1, 0.1), translation=(-0.1, 0.1))) for sigma in [2, 5]: noise = ocrodeg.bounded_gaussian_noise(data.shape, sigma, 3.0) data = ocrodeg.distort_with_noise(data, noise) data = ocrodeg.printlike_multiscale(data, blur=1, inverted=True) data = (data * 255 / data.max()).astype(original_dtype) return data, gt_txt if __name__ == '__main__': aug = SimpleDataAugmenter() from PIL import Image import numpy as np img = 255 - np.mean(np.array(Image.open("../../test/data/uw3_50lines/train/010001.bin.png"))[:, :, 0:2], axis=-1) aug_img = [aug.augment_single(img.T, '')[0].T for _ in range(4)] import matplotlib.pyplot as plt f, ax = plt.subplots(5, 1) ax[0].imshow(255 - img, cmap='gray') for i, x in enumerate(aug_img): ax[i + 1].imshow(255 - x, cmap='gray') plt.show()
[ "wick.chr.info@gmail.com" ]
wick.chr.info@gmail.com
32dc757a5cd4046d35cbdf7ab91781b3fac76911
faa1bed2eee1a81c56aa147c39219faf18da7542
/Algorithms/Binary search.py
f90d4ba5073e54666c1f9d16390e6b6ca9546d9f
[]
no_license
Dieterdemuynck/Informatica5
2f284fe20d1bffe579f602419cc61793e55b2f40
6507a4c3f90f0b43d37499bfa3c6fac1bd482094
refs/heads/master
2020-03-28T01:15:55.625344
2020-03-04T22:58:50
2020-03-04T22:58:50
147,491,195
0
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
from random import randint from time import time import matplotlib.pyplot as plt def genereer_rij(aantal): rij = [] for i in range(aantal): rij.append(randint(0, aantal)) return rij def linear_search(lijst, getal): index = 0 while index < len(lijst) and lijst[index] != getal: index += 1 return index < len(lijst) def binary_search(lijst, low, high, num): if low > high: return False else: mid = (high + low) // 2 if lijst[mid] == num: return True elif num < lijst[mid]: return binary_search(lijst, low, mid - 1, num) else: return binary_search(lijst, mid + 1, high, num) n, t_bs, t_ls = [], [], [] i = 10 while i < 30000: rij_1 = genereer_rij(i) rij_1.sort() rij_2 = rij_1.copy() getal = rij_1[randint(0, i)] # Time of Binary Search start = time() binary_search(rij_1, 0, len(rij_1) - 1, getal) stop = time() t_bs.append(stop - start) # Time of Linear Search start = time() linear_search(rij_2, getal) stop = time() t_ls.append(stop - start) n.append(i) i += 50 plt.plot(n, t_bs) plt.plot(n, t_ls) plt.xlabel("N") plt.ylabel("t") plt.gcf().legend(("binary search", "linear search")) plt.gcf().canvas.set_window_title("Dieter Demuynck") plt.title("Time measurements") plt.show()
[ "42997575+Dieterdemuynck@users.noreply.github.com" ]
42997575+Dieterdemuynck@users.noreply.github.com
6ae1b8647bd11e98a581eaf73d719c81166a3dd1
ab3809c47ed79898a386bcb5c69b35e292ede0da
/10_linear_regression/10-linear-regression-l1-regularization-v2.py
49e483fd2e2bd4e6f6c1e0d1f78fb0dd8035a804
[]
no_license
ytphua/neural-network-journey
ac01d1a04da318e5cd7c405b4b3e43718a0acbec
400218d9d51deab550c6e0cc56100dea46134b5b
refs/heads/master
2021-01-19T08:34:19.758389
2017-05-30T15:19:48
2017-05-30T15:19:48
87,645,545
0
0
null
null
null
null
UTF-8
Python
false
false
1,324
py
# -*- coding: utf-8 -*- """ Created on Thu Apr 27 01:16:33 2017 @author: tsann """ # demonstration of Lq regularization # notes for this course can be found at: # https://deeplearningcourses.com/c/data-science-linear-regression-in-python # https://www.udemy.com/data-science-linear-regression-in-python import numpy as np import matplotlib.pyplot as plt N = 50 D = 50 # uniformly distributed numbers between -5, +5 X = (np.random.random((N, D)) - 0.5)*10 # true weights - only the first 3 dimensions of X affect Y true_w = np.array([1, 0.5, -0.5] + [0]*(D - 3)) # generate Y - add noise with variance 0.5 Y = X.dot(true_w) + np.random.randn(N)*0.5 # perform gradient descent to find w costs = [] # keep track of squared error cost w = np.random.randn(D) / np.sqrt(D) # randomly initialize w learning_rate = 0.001 l1 = 10.0 # Also try 5.0, 2.0, 1.0, 0.1 - what effect does it have on w? for t in range(500): # update w Yhat = X.dot(w) delta = Yhat - Y w = w - learning_rate*(X.T.dot(delta) + l1*np.sign(w)) # find and store the cost mse = delta.dot(delta) / N costs.append(mse) # plot the costs plt.plot(costs) plt.show() print("final w:", w) # plot our w vs true w plt.plot(true_w, label='true w') plt.plot(w, label='w_map') plt.legend() plt.show()
[ "noreply@github.com" ]
ytphua.noreply@github.com
f29647293bd6af206cef161d225d68f0791921b6
9551a145d23227da1e5b2435eacee5699f287f7c
/config.py
93acbcb5c6535f2a073ab8521b8fe10b3c2ad6b7
[ "BSD-2-Clause" ]
permissive
doccaz/labvirtual
0aa1d515e06be4995033f1f141393846f9109069
e7fd64dece564dac8e81e80e620f1e0027cd4821
refs/heads/master
2022-01-20T18:33:26.992502
2022-01-13T15:39:30
2022-01-13T15:39:30
164,643,200
3
0
null
null
null
null
UTF-8
Python
false
false
445
py
config = {} # may be 'plain' or 'ldap' config['auth_mode'] = 'plain' config['default_user'] = 'admin' config['default_password'] = 'password' config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/labvirtual.db' config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False # LDAP config['LDAP_PROVIDER_URL'] = '' config['LDAP_BIND_USER'] = '' config['LDAP_BIND_DN'] = '' config['LDAP_AUTHTOK'] = '' config['LDAP_SEARCH_BASE'] = '' config['LDAP_CACERT'] = ''
[ "erico.mendonca@gmail.com" ]
erico.mendonca@gmail.com
a9646b77be199b198cdb4b745d77807e2be1849b
4c56ffeef9bdd423c2946e7848d8c96e00ba36cb
/Day18/bluegill.py
e6aef0dc9efa15820196129abb5e68cb7de5aade
[]
no_license
adityatanwar800/FSDP2019
8f27281c676db4e1e405b1cc2936a3fa24583c6e
c02587a8feab753eff60b81546cb61a71950159b
refs/heads/master
2020-06-04T07:21:13.422349
2019-07-12T11:54:44
2019-07-12T11:54:44
191,921,881
3
0
null
null
null
null
UTF-8
Python
false
false
1,473
py
# -*- coding: utf-8 -*- """ Created on Wed Jun 26 16:57:11 2019 @author: Aditya Tanwar """ import pandas as pd import matplotlib.pyplot as plt # Importing the dataset dataset = pd.read_csv('bluegills.csv') features = dataset.iloc[:, 0:1].values labels = dataset.iloc[:, 1].values #let's first analyze the data # Visualising the Linear Regression results plt.scatter(features, labels) # Fitting Linear Regression to the dataset from sklearn.linear_model import LinearRegression lin_reg_1 = LinearRegression() lin_reg_1.fit(features, labels) print ("Predicting result with Linear Regression") print (lin_reg_1.predict(1981)) # Visualising the Linear Regression results plt.scatter(features, labels, color = 'red') plt.plot(features, lin_reg_1.predict(features), color = 'blue') plt.title('Linear Regression') plt.xlabel('age') plt.ylabel('length') plt.show() from sklearn.preprocessing import PolynomialFeatures poly_object = PolynomialFeatures(degree = 5) features_poly = poly_object.fit_transform(features) lin_reg_2 = LinearRegression() lin_reg_2.fit(features_poly, labels) print ("Predicting result with Polynomial Regression") print (lin_reg_2.predict(poly_object.transform(1981))) # Visualising the Polynomial Regression results plt.scatter(features, labels, color = 'red') plt.plot(features, lin_reg_2.predict(poly_object.fit_transform(features)), color = 'blue') plt.title('Polynomial Regression') plt.xlabel('age') plt.ylabel('length') plt.show()
[ "adityatanwar800@gmail.com" ]
adityatanwar800@gmail.com
c07d4fd9018a401b7114051c120ec27433b0d250
5eed98727f532c43f2d2828e5e48ee363a8c207f
/fizzbuzz.py
86d1a353abc4c227b3d98a7eceb3a4733decef4d
[]
no_license
Revathy-2001/FizzBuzz
b5ecb64fc546268d5e156c35594a1fcf732ed7f9
589ca09717503bc3064d276a857427e5dd793ba4
refs/heads/main
2023-02-11T03:24:22.546269
2021-01-13T09:31:01
2021-01-13T09:31:01
329,256,188
0
0
null
null
null
null
UTF-8
Python
false
false
272
py
lst = list(input().split()) x = int(lst[0]) y = int(lst[1]) n = int(lst[2]) i = 1 while(i <= n): if(i % x == 0 and i % y == 0): print("FizzBuzz"); elif(i % x == 0): print("Fizz"); elif(i % y == 0): print("Buzz"); else: print(i); i+=1
[ "noreply@github.com" ]
Revathy-2001.noreply@github.com
e896b3f80b3a68852af49583bc94ead4fd78ab4b
1e02ebc24595756f064ffa1fa42e508d1da8069b
/users/views.py
4448189d5c8157ebf319fda91d0bc912236c7b02
[]
no_license
ubaid6/EventApp
9a5ef89f1ea0c5f876e0aad7116ea75820d9c16a
bc8cfd4cbfc857aec8a13928661574e856e870fe
refs/heads/master
2023-08-17T04:28:13.478245
2021-09-20T22:25:56
2021-09-20T22:25:56
401,118,207
0
0
null
null
null
null
UTF-8
Python
false
false
3,772
py
from django.shortcuts import render, redirect, reverse from django.urls import reverse_lazy from django.contrib import messages from .forms import RegistrationForm, ChangeForm from django.contrib.auth.forms import UserCreationForm, UserChangeForm from .models import User from django.contrib.auth.decorators import login_required from .utils import emailToken from django.contrib.sites.shortcuts import get_current_site from django.utils.http import urlsafe_base64_encode, urlsafe_base64_decode from django.utils.encoding import force_bytes, force_text, force_str from django.template.loader import render_to_string from django.core.mail import send_mail from django.http import HttpResponse from django.contrib.auth.views import LoginView from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth import authenticate from django.contrib.auth import login as auth_login from django.conf import settings # Create your views here. def register(request): if request.method == 'POST': form = RegistrationForm(request.POST) if form.is_valid(): form.save() username = form.cleaned_data.get('username') messages.success(request, f'Account created for {username}') user = User.objects.get(username=username) sendActivationEmail(request, user) return redirect('login') else: form = RegistrationForm() return render(request, 'users/register.html', {'form': form}) @login_required(login_url='login') def viewprofile(request): args = { 'user' : request.user } return render(request, 'users/viewprofile.html', args) @login_required(login_url='login') def editprofile(request): if request.method == "POST": form = ChangeForm(request.POST, instance=request.user) if form.is_valid(): form.save() username = form.cleaned_data.get('username') messages.success(request, f'Details changed for {username}') return redirect('events-home') else: form = ChangeForm() return render(request, 'users/editprofile.html', {'form': form}) def sendActivationEmail(request, user): send_mail( 'Activate your account', render_to_string('users/activate.html', { 'user': user, 'domain': get_current_site(request), 'uid': urlsafe_base64_encode(force_bytes(user.pk)), 'token': emailToken.make_token(user) }), settings.EMAIL_FROM_USER, [user.email], fail_silently=False, ) def activateEmail(request, uidb64, token): try: uid = force_text(urlsafe_base64_decode(uidb64)) user = User.objects.get(pk=uid) except Exception as e: print("Wrong") if user and emailToken.check_token(user, token): user.emailAuthenticated = True user.save() messages.success(request, 'Email Verified!') return redirect(reverse('events-home')) messages.success(request, 'Email Not Verified!') return render(request, 'events/events.html') def login(request): if request.method == "POST": form = AuthenticationForm(request.POST) username = request.POST['username'] password = request.POST['password'] user = authenticate(username=username, password=password) if user: if user.emailAuthenticated: auth_login(request, user) return redirect('events-home') else: sendActivationEmail(request, user) return redirect('login') else: return redirect('login') form = AuthenticationForm() return render(request, 'users/login.html', {'form': form})
[ "ubaid.ahmed@student.manchester.ac.uk" ]
ubaid.ahmed@student.manchester.ac.uk
91a08addb60a782a9051a56d58e38994d14e8b72
1bbe05a0b1dfabe31cd740172b44a7435dcc36c5
/caesar.py
419682ae9f9967bba73009c4550b825e10e7fd4e
[]
no_license
jkketts/web-caesar
4fb06dedc5886234bced11c39d6a0b3e16fa2572
4060411e04b42baee8198d1653a44391ab176c90
refs/heads/master
2021-01-23T18:24:38.041388
2017-09-19T03:24:23
2017-09-19T03:24:23
102,793,419
0
0
null
null
null
null
UTF-8
Python
false
false
658
py
def encrypt(text,rot): newStr = "" rot = rot % 26 for i in text: if (ord(i) >= 97 and ord(i) <= 122): if (ord(i)+rot > 122): newStr += chr((ord(i)+rot) - 26) else: newStr += chr(ord(i)+rot) elif (ord(i) >= 65 and ord(i) <= 90): if (ord(i)+rot > 90): newStr += chr((ord(i)+rot) - 26) else: newStr += chr(ord(i)+rot) else: newStr += i return newStr def main(): text = input('Type a message:') rot = int(input('Rotate By:')) encrypt(text, rot) if __name__ == "__main__": main()
[ "justin@ketterman.tv" ]
justin@ketterman.tv
4b3e25f31c3a5111a410257b0f0cde13440de95b
f1f28cb54bbec83c7783e0a89b4e1efa776ffdaf
/jetcam/jetcam/usb_camera.py
1a513e62b5f257e30fc47c7a8b7420acbc04c3a4
[ "MIT" ]
permissive
KNChiu/Jetson_nano
f4c19e00678d186a50d0ccea6f7ea9727b7470a3
4d0608119a971875ae3406f27d73585490fe51ca
refs/heads/master
2020-07-11T00:21:18.994812
2020-03-20T02:44:08
2020-03-20T02:44:08
204,408,145
0
0
null
null
null
null
UTF-8
Python
false
false
1,503
py
from .camera import Camera import atexit import cv2 import numpy as np import threading import traitlets class USBCamera(Camera): capture_fps = traitlets.Integer(default_value=30) capture_width = traitlets.Integer(default_value=640) capture_height = traitlets.Integer(default_value=480) capture_device = traitlets.Integer(default_value=0) def __init__(self, *args, **kwargs): super(USBCamera, self).__init__(*args, **kwargs) try: self.cap = cv2.VideoCapture(self._gst_str(), cv2.CAP_GSTREAMER) re , image = self.cap.read() if not re: raise RuntimeError('Could not read image from camera.') except: raise RuntimeError( 'Could not initialize camera. Please see error trace.') atexit.register(self.cap.release) def _gst_str(self): return 'v4l2src device=/dev/video{} ! video/x-raw, width=(int){}, height=(int){}, framerate=(fraction){}/1 ! videoconvert ! video/x-raw, , format=(string)BGR ! appsink'.format(self.capture_device, self.capture_width, self.capture_height, self.capture_fps) def _read(self): re, image = self.cap.read() if re: image_resized = cv2.resize(image,(int(self.width),int(self.height))) return image_resized else: raise RuntimeError('Could not read image from camera')
[ "noreply@github.com" ]
KNChiu.noreply@github.com
d22f297ce672e3b72fd02a3ea4ed803806c3ffd5
f896126719c9c2c8db07b8a7cf43364ad8d27dff
/examples/creating_tasklists_with_python/run_simba3d_within_python_script.py
6f7ea2f3e4c8b469b93ca29d85f356b90943587c
[ "BSD-3-Clause" ]
permissive
jayguoxue/SIMBA3D
f948bf23d90d12453ac76493f28813e2e9dbb4f6
ac347e95e8a259bfaa2ddc5a0e38c73f0eeac511
refs/heads/master
2020-12-08T13:34:36.933237
2019-02-28T13:12:18
2019-02-28T13:12:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,970
py
# -*- coding: utf-8 -*- """ An example of creating tasklists Created on Thu Sep 07 05:53:57 2017 @author: Michael Rosenthal """ import os import numpy as np import uuid # import simplejson or json # # This is useful because the syntax is pythonic, it's human readable, and it # can be read by other programs in other languages. # # json is potentially and older version of simplejson which is updated more # frequently than Python # # A good practice is to use one or the other as a fallback. try: import simplejson as json # try to import simplejson except ImportError: import json #otherwise import json import simba3d.mp_manager as mp import time taskfilepath='tasklist.json' cores=1; # the number of parallel process to run simultateously tasks=[] lambda_2=0.5; lambda_3=0.5; for lambda_1 in np.linspace(0,1,11): UUID=uuid.uuid4() tasks.append( { # task parameters 'usewarmstarts':True, 'taskname' : str(UUID), 'uuid' : str(UUID),# assign a unique identifier to resume tasklists # initialization settings 'randomize_initialization' : False, # Randomize the initialized curve #'seed' : int(np.random.rand()*4294967295), # fixed seed for randomizing inititialization # debug options 'check_jacobian' : False, # check analytical gradient with numerical gradient 9 # data file names to load 'file_names' : { 'inputdir' : 'data/', # location of data input files 'outputdir' : 'results/', # directory where to output results # the following are relative to the inputdir directory "initialized_curve" : 'initialized_curve.npy', "pairwise_contact_matrix" : 'simulated_contact_matrix.npy', #"population_contact_matrix" : 'population_mESC_M19_a.npy', #"prior_shape_model" : 'prior_shape_model.npy', "output_filename" : str(UUID)+'.npy', }, # data 'data' : { #'initialized_curve' : initialized_curve, #'t' : t, # optional #'pairwise_contact_matrix' : [], #'index' : index, #'population_contact_matrix' : pairwise_contact_pop, #'prior_shape_model' : prior_shape_model, }, # parameter settings 'parameters' : { 'a' : -3.0, 'b' : 1.0, # not identifiable with unconstrained scale 'term_weights' : { 'data' : 1.0, # weight for the data term 'uniform spacing' : lambda_1, # scaled first order penalty 'smoothing' : lambda_2, # scaled second order penalty 'population prior' : lambda_3, # weight for the population matrix prior 'shape prior' : 0.0, # weight for the shape prior # below are unsupported penalties #'firstroughness' :0.0e3, # weight for the fist order roughness #'secondroughness' :0.0e-16, # weight for the second order roughness #'scaledfirstroughness' :0.0, # weight for the scaled second order roughness #'scaledsecondroughness' :0.0, # weight for the scaled second order roughness #'parameterization' :0, # not implemented }, }, # options 'options' : { 'maxitr' : 100000, # set maximum number of iterations 'display' : True, # display function values at each iteration 'store' : False, # store iterative curves 'method' : 'BFGS',# Broyden, Fletcher, Goldfarb, and Shanno (quasi-Newton, only first derivatives are used) #'method' :'Nelder-Mead',# robust but slow numerical approach #'method' :'CG',# nonlinear conjugate gradient algorithm by Polak and Ribiere (only first derivatives are used) #'method' :'Newton-CG',# (truncated Newton method) 'gradient tolerance' : 1e-5, }, } ) #Use JSON to write the tasklist to file # if you want to save the task for posterity with open(taskfilepath, 'w') as tasklist: json.dump(tasks, tasklist,indent=4,sort_keys=True) # pretty print the JSON to make it human readible #json.dump(tasks, tasklist) # if you don't care about pretty printing the JSON just dump it this way #run simba3d # tasks=json.load(tasklist) # if you want to load the tasklist from file t= time.time() mp.mp_handler(tasks,cores) elapsed=time.time()-t print 'Total %s seconds elapsed' % (elapsed) #%%
[ "nicola_neretti@brown.edu" ]
nicola_neretti@brown.edu
f4c441b7a7ed9caedc9f2218e285512eae6f6d7d
2e144fab7c6f9641a9b8671ab420681a09bd4970
/second_win_rc.py
04c7faa3593b15c7af8ea9ac6a7b1170db59a567
[]
no_license
AsmaaGHSamir/GProject
d6f37358792eb586c6d1a638b4e0db2c71b2a961
0ffe5d496d1171291f57589064a37af6eabd626d
refs/heads/main
2023-06-11T05:40:53.445020
2021-07-08T07:27:54
2021-07-08T07:27:54
384,010,670
1
0
null
null
null
null
UTF-8
Python
false
false
103,449
py
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.15.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x5e\xdd\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x01\x2c\x00\x00\x01\x2c\x08\x06\x00\x00\x00\x79\x7d\x8e\x75\ \x00\x00\x00\x04\x73\x42\x49\x54\x08\x08\x08\x08\x7c\x08\x64\x88\ \x00\x00\x20\x00\x49\x44\x41\x54\x78\x9c\xec\x9d\x77\x78\x14\xd5\ \xfe\xff\xdf\x67\x5b\x7a\x6f\x24\x24\x01\x42\x82\x60\x20\x94\x40\ \x08\x01\x82\x34\x69\x62\x01\x0b\x22\xca\x55\xb1\x2b\x28\xf7\x5e\ \xbb\x7e\xc5\x5e\x7e\xe2\xb5\x77\xaf\xca\x55\x11\x15\x29\x2a\xbd\ \xb7\x10\x12\x4a\x48\x85\x90\xde\x7b\x36\xc9\x26\xdb\xe6\xfc\xfe\ \xd8\x6c\x4c\x36\x9b\x9d\x39\x9b\xdd\x64\x37\xd9\xd7\xf3\x44\x9f\ \x3d\x73\xce\xcc\x61\x67\xe6\xbd\xa7\x7c\x0a\xe0\xc0\x81\x03\x07\ \x0e\x1c\x38\x70\xe0\xc0\xb2\x90\xfe\xee\x80\x83\xfe\x87\x52\xea\ \x02\x40\x04\x80\x9a\xa8\x46\x08\x21\x2d\x7d\xd4\x25\x07\x0e\x8c\ \xe2\x10\xac\x01\x0c\xa5\xd4\x1f\x40\x2c\x80\xd1\x00\xc6\x00\xf0\ \x05\xe0\x0c\xc0\x0f\x80\x3b\x80\x40\xe8\x9e\x81\x20\x81\xa7\x6c\ \x03\x50\x0f\x40\x03\xa0\x14\x80\xa2\xfd\x73\x2b\x80\x22\x00\x59\ \x00\x52\x08\x21\xd9\x96\xfb\x57\x38\x70\xf0\x37\x0e\xc1\x1a\x00\ \x50\x4a\x27\x01\x18\x07\x60\x18\x80\x51\x00\xc6\xb6\xff\x5f\x0a\ \xdd\xc8\x49\xd4\x57\x5d\x01\xa0\x6d\xff\x7f\x3d\x80\x54\xe8\x44\ \xac\x00\x40\x06\x21\xe4\x60\x1f\xf5\xc3\xc1\x00\xc5\x21\x58\x76\ \x06\xa5\xd4\x09\x40\x0c\x80\x68\x00\x8b\xa0\x1b\x41\x79\x42\x37\ \x6a\xea\x2b\x61\x32\x87\x46\xe8\x44\xac\x1c\xc0\xef\x00\x4e\x01\ \xb8\x4c\x08\xa9\xec\xd7\x5e\x39\xb0\x2b\x1c\x82\x65\x27\x50\x4a\ \x1f\x02\xb0\x00\x40\x24\x74\x62\x35\x10\x28\x02\x70\x19\xc0\x49\ \x00\xaf\x11\x42\x94\xfd\xdc\x1f\x07\x36\x8e\x43\xb0\x6c\x14\x4a\ \xe9\x54\x00\xb7\x02\x88\x07\x90\xd0\x8b\xf3\xa0\xbc\xbc\x1c\xf5\ \xf5\xf5\x68\x6a\x6a\x82\x5a\xad\x46\x7d\x7d\x3d\x2e\x5d\xba\x84\ \xba\xba\x3a\x5c\xb9\x72\x05\x52\xa9\x14\x17\x2e\x5c\x80\x5c\x2e\ \x07\x21\xdd\x1f\x09\x91\x48\x84\xf1\xe3\xc7\xc3\xd9\xd9\x19\x5e\ \x5e\x5e\x18\x39\x72\x24\x7c\x7d\x7d\x31\x6a\xd4\x28\x88\xc5\x62\ \xb8\xb8\xb8\xc0\xdb\xdb\x1b\x41\x41\x41\x70\x75\x75\x35\xff\x1f\ \x0d\xe4\x01\xd8\x03\x60\x2f\x21\x64\x5b\x6f\x4e\xe4\x60\x60\xe2\ \x10\x2c\x1b\x82\x52\x9a\x00\x60\x1e\x74\x42\x15\x0e\xc0\x43\x68\ \x5b\x85\x42\x81\x96\x96\x16\xc8\xe5\x72\x9c\x3b\x77\x0e\x29\x29\ \x29\x28\x2d\x2d\x45\x65\x65\x25\x4a\x4a\x4a\x50\x5c\x5c\x8c\xe6\ \xe6\x66\x6b\x75\x1d\xc3\x86\x0d\x43\x58\x58\x18\x02\x03\x03\x11\ \x16\x16\x86\x98\x98\x18\xc4\xc6\xc6\x22\x28\x28\x08\x2e\x2e\x2e\ \xf0\xf2\xf2\x62\x39\x5d\x1b\x80\x5a\x00\x9b\x01\x1c\x24\x84\xfc\ \x65\x95\x4e\x3b\xb0\x3b\x1c\x82\x65\x03\x50\x4a\xef\x02\x70\x37\ \x80\x29\x00\xdc\x84\xb6\x2b\x29\x29\xc1\xd1\xa3\x47\x91\x93\x93\ \x83\x73\xe7\xce\xe1\xe8\xd1\xa3\x68\x6c\x6c\xb4\x5a\x3f\xcd\x25\ \x3e\x3e\x1e\x89\x89\x89\x88\x8c\x8c\xc4\xf8\xf1\xe3\x11\x17\x17\ \xc7\xd2\x9c\x02\x48\x03\xb0\x8d\x10\xf2\x92\x55\x3a\xe8\xc0\x81\ \x03\xd3\x50\x4a\xa3\x29\xa5\xdf\x53\x4a\xeb\xa9\x40\xb2\xb3\xb3\ \xe9\xd6\xad\x5b\xe9\xca\x95\x2b\x29\x74\x2f\xb2\xdd\xfe\x2d\x5e\ \xbc\x98\x7e\xf7\xdd\x77\x34\x35\x35\x95\x6a\x34\x1a\xa1\x5f\x81\ \x96\x52\xfa\x3b\xa5\x74\xb9\xe5\xef\x88\x03\x07\x0e\xba\x41\x29\ \x5d\x4d\x29\x3d\x40\x29\x55\xf1\xbd\x9d\x0d\x0d\x0d\x34\x23\x23\ \x83\x3e\xff\xfc\xf3\x74\xf2\xe4\xc9\xd4\xd5\xd5\xb5\xdf\x85\xc6\ \x1a\x7f\x63\xc7\x8e\xa5\xeb\xd6\xad\xa3\x49\x49\x49\xb4\xba\xba\ \x5a\x88\x70\x71\x94\xd2\x8b\x94\xd2\xc7\x29\xa5\x82\x47\xa4\x0e\ \x1c\x38\x10\x08\xa5\xf4\x6e\x4a\xe9\xb9\xf6\x97\xad\x47\x34\x1a\ \x0d\xcd\xcc\xcc\xa4\xaf\xbc\xf2\x0a\x9d\x35\x6b\x56\xbf\x8b\x49\ \x5f\xff\xc5\xc6\xc6\xd2\x27\x9f\x7c\x92\x1e\x3e\x7c\x98\x6a\xb5\ \x5a\x21\xe2\x95\x4f\x29\x7d\x86\x52\x2a\xb1\xcc\x9d\x72\xe0\x60\ \x10\x43\x29\xbd\x8f\x52\x9a\xc1\xf7\xd6\x95\x97\x97\xd3\x4f\x3e\ \xf9\x84\x8e\x1b\x37\xae\xdf\x45\xc3\x56\xfe\xc2\xc2\xc2\xe8\x3b\ \xef\xbc\x43\xd3\xd3\xd3\x85\x08\x57\x11\xa5\xf4\xd5\xde\xde\x2f\ \x07\x0e\x06\x25\x94\xd2\x27\x28\xa5\x97\x4c\xbd\x61\xad\xad\xad\ \xf4\xe0\xc1\x83\xf4\xb6\xdb\x6e\xeb\x77\x71\xb0\xf5\xbf\x19\x33\ \x66\xd0\x5d\xbb\x76\xd1\xfa\x7a\xde\x25\xbf\x3a\x4a\xe9\x4b\x94\ \x52\xc7\x86\xd2\x00\xc4\x71\x53\x2d\x0c\xa5\x74\x11\x80\x57\xa0\ \xb3\x40\x37\x4a\x7d\x7d\x3d\xf6\xec\xd9\x83\xcf\x3f\xff\x1c\x87\ \x0f\x1f\xee\xb3\xbe\x8d\x1a\x35\x0a\xbe\xbe\xbe\xf0\xf6\xf6\x86\ \x9f\x9f\x1f\x9c\x9d\x9d\x11\x16\x16\x06\xa9\x54\x0a\x2f\x2f\x2f\ \x84\x87\x87\x83\x52\xda\xad\x5d\x6b\x6b\x2b\xf2\xf2\xf2\x40\x08\ \x41\x55\x55\x15\x6a\x6a\x6a\xd0\xd8\xd8\x08\xb9\x5c\x8e\x9a\x9a\ \x1a\x54\x56\x56\xa2\xba\xba\xba\x4f\xfe\x0d\x53\xa7\x4e\xc5\xcd\ \x37\xdf\x8c\xfb\xef\xbf\x1f\x9e\x9e\x9e\xa6\xaa\xe6\x03\xf8\x7f\ \x84\x90\x4f\xfa\xa4\x63\x0e\xfa\x04\x87\x60\x59\x08\x4a\xa9\x0c\ \xc0\x4f\x00\x6e\x44\x0f\x2e\x32\x0a\x85\x02\x9f\x7d\xf6\x19\x3e\ \xf9\xe4\x13\x5c\xb9\x72\xc5\xaa\xfd\x89\x8d\x8d\x45\x62\x62\x22\ \x66\xcd\x9a\x05\x3f\x3f\x3f\xb8\xbb\xbb\x23\x28\x28\x08\x3e\x3e\ \x3e\x70\x76\x76\xb6\xd8\x75\x6a\x6a\x6a\x50\x5b\x5b\x8b\xba\xba\ \x3a\x34\x35\x35\xe1\xc2\x85\x0b\x38\x76\xec\x18\x76\xee\xdc\x69\ \xb1\x6b\x18\x43\x2c\x16\xe3\x95\x57\x5e\xc1\x7d\xf7\xdd\x07\x7f\ \x7f\x7f\x53\x55\x8f\x03\x58\x4f\x08\x39\x63\xd5\x0e\x39\x70\x60\ \x2f\x50\x4a\xdf\x31\xb9\xb8\x52\x54\x44\x5f\x7d\xf5\x55\xab\x4d\ \x97\x96\x2d\x5b\x46\x37\x6e\xdc\x48\x77\xec\xd8\x41\x4b\x4b\x4b\ \x85\xac\xf7\xf4\x09\x35\x35\x35\xf4\xc0\x81\x03\xf4\xb3\xcf\x3e\ \xa3\xab\x57\xaf\xa6\x32\x99\xcc\x2a\xff\xfe\xe7\x9f\x7f\x9e\x16\ \x14\x14\xf0\x75\x67\x1b\xa5\x94\xc9\x7a\xd5\x81\x83\x01\x05\xa5\ \x74\x15\xa5\x34\xb3\xa7\x37\xa4\xb6\xb6\x96\x7e\xfc\xf1\xc7\xd4\ \xdf\xdf\xdf\xa2\x2f\xe8\x92\x25\x4b\xe8\x86\x0d\x1b\xe8\xd1\xa3\ \x47\x69\x63\x63\x23\x55\x2a\x95\x16\x94\x19\xeb\xa0\x56\xab\x69\ \x63\x63\x23\xcd\xca\xca\xa2\x1b\x36\x6c\xa0\xb7\xde\x7a\x2b\xf5\ \xf5\xf5\xb5\xd8\x77\xe2\xef\xef\x4f\x9f\x7e\xfa\x69\x3e\xc1\xae\ \xa6\x94\xae\xb3\xea\x43\xe1\xc0\x81\x2d\x42\x29\xfd\x2f\xa5\xd4\ \xa8\xc5\x23\xc7\x71\xf4\xc7\x1f\x7f\xa4\x31\x31\x31\x16\x7b\x21\ \xa7\x4d\x9b\x46\xff\xfb\xdf\xff\xd2\xac\xac\x2c\xaa\x52\xf1\x9a\ \x70\xd9\x05\xb9\xb9\xb9\x74\xc7\x8e\x1d\x74\xe1\xc2\x85\x16\xfb\ \x9e\x82\x82\x82\xe8\x37\xdf\x7c\xc3\x27\xe2\x87\x28\xa5\x7e\xd6\ \x7d\x42\x1c\x38\xb0\x01\x28\xa5\xcb\xa9\xce\xf6\xc7\x28\x29\x29\ \x29\x16\x33\x4d\xb8\xf6\xda\x6b\xe9\x77\xdf\x7d\x47\x4b\x4a\x4a\ \x2c\x2a\x14\xb6\x48\x55\x55\x15\xdd\xbe\x7d\x3b\x5d\xbc\x78\xb1\ \x45\xbe\xbb\xf0\xf0\x70\xba\x6b\xd7\x2e\x53\x97\x6c\xa5\x94\xae\ \xb5\xf6\xf3\xe2\xc0\x41\xbf\x41\x29\xdd\x44\x7b\x30\xfc\x2c\x2a\ \x2a\xa2\x0f\x3d\xf4\x50\xaf\x5f\xb4\xf1\xe3\xc7\xd3\x0d\x1b\x36\ \xd0\xc2\xc2\x42\x2b\xc8\x82\x7d\x50\x5d\x5d\x4d\xdf\x7f\xff\x7d\ \x3a\x6d\xda\xb4\x5e\x7f\x9f\x2b\x56\xac\xa0\x39\x39\x39\xa6\x2e\ \x77\x98\x52\x3a\xcc\xfa\x4f\x8f\x03\x07\x7d\x04\xa5\x74\x1a\xa5\ \x34\xd9\xd8\xd3\xae\x56\xab\xe9\x6f\xbf\xfd\x46\x43\x43\x43\x7b\ \xf5\x62\xcd\x9c\x39\x93\x6e\xdf\xbe\x9d\xd6\xd6\xd6\x5a\x41\x02\ \xec\x93\x86\x86\x06\xba\x67\xcf\x1e\x7a\xe3\x8d\x37\xf6\xea\xbb\ \xf5\xf0\xf0\xa0\x1f\x7f\xfc\xb1\x29\xcb\xf9\x4a\x4a\xe9\xb2\xbe\ \x78\x96\x1c\x38\xb0\x2a\x94\xd2\x7b\x28\xa5\x4d\xc6\x9e\xf2\xd2\ \xd2\x52\xba\x62\xc5\x8a\x5e\xbd\x4c\x37\xdd\x74\x13\x3d\x71\xe2\ \x84\x95\x5e\xf9\x81\x43\x6a\x6a\x6a\xaf\x47\xb0\xb3\x67\xcf\xe6\ \x1b\x6d\xbd\xd7\x17\xcf\x94\x03\x07\x56\x81\x52\xfa\x5d\x4f\x4f\ \xf6\xf7\xdf\x7f\xdf\xab\x97\x67\xed\xda\xb5\x34\x2f\x2f\xcf\xe2\ \x2f\xf6\x40\xa7\xb8\xb8\x98\x3e\xfb\xec\xb3\xbd\xfa\xee\x79\x46\ \x5b\xc7\x29\xa5\x26\x2d\x52\x1d\x38\xb0\x29\x28\xa5\xe1\xed\x0f\ \x6e\x37\x2a\x2b\x2b\xe9\xda\xb5\x6b\xcd\x7e\x59\x1e\x78\xe0\x01\ \xbe\x5f\x79\x07\x02\xb8\x7c\xf9\x32\x7d\xe2\x89\x27\xcc\xbe\x0f\ \x8b\x16\x2d\x32\x15\x19\xa2\x90\x52\x3a\xbd\x6f\x9e\x36\x07\x0e\ \x7a\x01\xa5\x74\x2a\xa5\xf4\xb2\xb1\xa7\x38\x33\x33\x93\xc6\xc6\ \xc6\x9a\xf5\x82\x4c\x9f\x3e\xdd\x31\xf5\xb3\x02\x99\x99\x99\xf4\ \xda\x6b\xaf\x35\xeb\x9e\x8c\x1c\x39\x92\x1e\x38\x70\xa0\xa7\x53\ \xb7\x50\x4a\x57\xf6\xd5\x73\xe7\xc0\x01\x33\x94\xd2\x1b\x29\xa5\ \x6a\x63\x4f\xef\x0f\x3f\xfc\x60\xd6\x4b\x11\x10\x10\x40\x77\xef\ \xde\x6d\xa5\xd7\xd5\x81\x9e\x03\x07\x0e\xd0\x89\x13\x27\x9a\x75\ \x8f\x5e\x7e\xf9\x65\x53\xa7\x7e\xb3\xaf\x9e\x3f\x07\x0e\x04\x43\ \x29\x7d\x9e\xea\x22\x5a\x76\x41\x2e\x97\xd3\xf5\xeb\xd7\x9b\xf5\ \x22\x6c\xd8\xb0\x81\xb6\xb6\xb6\x5a\xeb\x1d\x75\x60\x40\x5b\x5b\ \x1b\xfd\xe8\xa3\x8f\xa8\x9b\x9b\x1b\xf3\xbd\xba\xed\xb6\xdb\x68\ \x65\x65\x65\x4f\xa7\xfe\x5f\x9f\x3d\x88\x0e\x1c\xf0\x41\x29\x7d\ \x93\x1a\xb1\x5a\xaf\xab\xab\xa3\x8b\x16\x2d\x62\x7e\xf8\x67\xce\ \x9c\x49\xcf\x9e\x3d\x6b\xcd\x77\xd3\x81\x09\xb2\xb2\xb2\xe8\xb2\ \x65\xcb\x98\xef\xdb\xd4\xa9\x53\x69\x56\x56\x56\x4f\xa7\xfd\xa3\ \xef\x9e\x48\x07\x0e\x7a\x80\x52\xfa\x86\xb1\xa7\xf3\xe2\xc5\x8b\ \x34\x38\x38\x98\xf9\xa1\x7f\xef\xbd\xf7\xac\xf6\x22\x3a\x60\xc3\ \xdc\x69\xfc\xa9\x53\xa7\x7a\x3a\xe5\x91\x3e\x7b\x30\x1d\x38\x30\ \x84\x52\xfa\xa1\xb1\xa7\x72\xcf\x9e\x3d\x66\x2d\xaa\x0b\x8c\x8c\ \xe9\xa0\x0f\x29\x2b\x2b\xa3\xcb\x97\x2f\x67\xbe\x9f\x9b\x36\x6d\ \xea\xe9\x94\x69\x94\xd2\x5e\x25\x5f\x74\xe0\x80\x19\x4a\xe9\x47\ \xc6\x9e\xc6\xad\x5b\xb7\x32\x3f\xdc\xeb\xd7\xaf\xa7\x2d\x2d\x2d\ \xd6\x7a\xe7\x1c\xf4\x12\x85\x42\x41\xdf\x7d\xf7\x5d\xe6\xfb\xba\ \x71\xe3\xc6\x9e\x4e\x99\x42\x29\x0d\xeb\xbb\xa7\xd5\xc1\xa0\x86\ \x52\xfa\x96\xb1\xa7\x70\xf3\xe6\xcd\xcc\x0f\xf5\xff\xfe\xf7\x3f\ \x6b\xbd\x67\x0e\x2c\xcc\x81\x03\x07\x98\xef\xef\x8b\x2f\xbe\xd8\ \xd3\xe9\xce\xf5\xdd\x13\xeb\x40\xcf\xa0\x8b\x38\x4a\x29\xdd\x08\ \xe0\x09\xc3\xf2\x0f\x3f\xfc\x10\x6b\xd7\x0a\x77\xde\x8f\x8d\x8d\ \xc5\x6f\xbf\xfd\x86\x61\xc3\x86\x59\xb2\x7b\x16\xa5\xb6\x55\x83\ \x2a\xb9\x12\x72\x85\x1a\x0a\xa5\x06\xca\x16\x15\xf2\xea\xda\x50\ \xd2\xa4\xc2\xb9\x0a\x05\x24\x3c\x77\x9f\x03\x10\xe0\x22\x41\x94\ \x9f\x33\xc6\xf8\xbb\xc0\xdd\x4d\x06\x67\x67\x09\xbc\xdc\x64\xf0\ \x73\x97\x21\xc8\xd3\x09\x52\x3b\x7b\x82\x6a\x6b\x6b\xb1\x66\xcd\ \x1a\x6c\xdb\xb6\x4d\x70\x9b\x7f\xfd\xeb\x5f\x78\xfb\xed\xb7\x41\ \x48\xb7\x7f\xec\x79\x42\xc8\x44\x8b\x76\xd0\x81\x49\xec\xec\x71\ \xeb\x1d\x94\xd2\xff\x00\xe8\x16\xc0\xed\xfd\xf7\xdf\xc7\xe3\x8f\ \x3f\x2e\xf8\x3c\x2b\x57\xae\xc4\xd7\x5f\x7f\x6d\xd1\x50\xc3\xe6\ \x22\x57\x6a\x21\x57\xa8\xd1\xa2\x50\x21\xad\xbc\x19\x49\x05\x72\ \x14\xd6\x28\x50\x55\xa3\x40\x95\x92\x43\xb9\x4a\x0b\xb9\x9a\x02\ \x5a\x0e\x50\x73\xba\x3b\x2e\x22\x6c\x77\x9e\x03\xc0\x51\x5d\x3b\ \x89\x08\x44\x2a\x42\x98\x4c\x04\x7f\xa9\x08\x7e\x6e\x12\x84\x04\ \xba\x63\x62\xa8\x07\x62\x43\xdd\x11\xea\xeb\x02\x17\x67\x29\x02\ \x3d\x64\x36\xfb\x70\xb5\xb6\xb6\xe2\xad\xb7\xde\xc2\x86\x0d\x1b\ \x04\xb7\x79\xf8\xe1\x87\xf1\xde\x7b\xef\x41\x26\x93\x19\x1e\xda\ \x4f\x08\x99\x6f\xd1\x0e\x3a\xe8\x11\x5b\x7d\xa6\x2c\x0e\xa5\xf4\ \x5f\x00\xde\x82\x41\xbc\xf5\x6f\xbf\xfd\x16\x77\xdf\x7d\xb7\xe0\ \xf3\xbc\xf2\xca\x2b\x78\xf6\xd9\x67\x21\x12\x19\x0d\xdb\x6e\x75\ \x28\x80\xac\x8a\x16\x24\xe5\xd5\xe3\x4a\x51\x23\xce\x94\x35\xe3\ \x74\xad\x12\xf2\xfa\x36\x5d\x05\x31\x01\x08\xf9\xfb\x5f\xa9\x1f\ \x15\x58\xf2\x4e\xd3\xf6\xff\x74\x4c\x9c\x28\xa0\x6d\xff\x73\x91\ \x60\x8c\xaf\x33\x66\x0c\x71\x41\xe4\x50\x4f\x8c\x1b\xee\x8d\x99\ \x23\x7d\xe0\xe6\x24\xb6\xb9\x87\x8d\x75\x54\xfd\xd8\x63\x8f\xe1\ \x83\x0f\x3e\x30\x76\xe8\x7f\x84\x90\x3b\x2d\xd6\x31\x07\x3d\x62\ \x6b\xcf\x90\x55\xa0\x94\x2e\x01\xd0\xcd\x8e\xe6\x9b\x6f\xbe\xc1\ \xbd\xf7\xde\x2b\xf8\x3c\x5b\xb6\x6c\xc1\x2d\xb7\xdc\x62\xc9\xae\ \x09\x22\xa3\xb2\x05\xe7\x73\xeb\xb0\xff\x52\x1d\xbe\xcd\xae\x07\ \xea\xdb\x00\x89\x48\x27\x4e\xa2\x76\x71\xea\x3e\x5d\xe9\x1f\xf4\ \x02\xc6\x51\xdd\xc8\x4c\xc3\x01\x84\x60\x72\x84\x17\x96\x5f\xe5\ \x83\x49\x91\x3e\x88\x8f\xf4\x85\xa7\x4c\xdc\xdf\x3d\x05\x00\xfc\ \xf9\xe7\x9f\xb8\xee\xba\xeb\x04\xd7\x7f\xe1\x85\x17\xf0\xf2\xcb\ \x2f\x1b\x3b\xf4\x0d\x21\x44\xf8\xc3\xe4\xc0\x2c\x6c\xe4\x29\xb7\ \x1e\x94\xd2\xa5\xd0\x65\xb3\xe9\x92\xd2\xfc\xe7\x9f\x7f\xc6\x8a\ \x15\x2b\x04\x9f\x67\xc7\x8e\x1d\x58\xba\x74\xa9\x85\x7b\x67\x9c\ \x66\x15\x87\x4b\x65\x72\xfc\x76\xae\x12\xbf\xa4\x55\xe3\x72\x7d\ \x1b\xa0\xa1\x3a\x61\xd2\x8f\xa0\xec\x0d\xfd\x08\x4c\x04\xc8\x64\ \x62\xcc\x1f\xe1\x85\xbb\xa7\x0c\x41\x6c\xa4\x2f\x86\xfb\xba\xf4\ \x6b\xd7\x32\x33\x33\x31\x79\xf2\x64\xb4\xb6\xb6\x0a\xaa\xff\xea\ \xab\xaf\xe2\xb9\xe7\x9e\x33\x76\xe8\x79\x42\xc8\x6b\x16\xed\x9c\ \x83\x2e\xd8\xe1\x93\x2f\x1c\x4a\x69\x28\x80\xc3\x00\x46\x76\x2e\ \x3f\x74\xe8\x10\xe6\xcc\x99\x23\xf8\x3c\x47\x8f\x1e\xc5\xcc\x99\ \x33\x2d\xdb\x39\x03\x54\x5a\x8a\xec\xf2\x26\x6c\x4d\xad\xc0\xd1\ \xec\x5a\x1c\x2a\x6d\x01\x38\x4e\x37\x92\x22\x8c\x6b\x4e\xb6\x0e\ \x45\xfb\x9a\x1a\xc5\x10\x3f\x67\x2c\x0c\x77\xc7\xfc\x89\x43\xb0\ \x28\x3a\x00\x3e\xae\xd2\x7e\xe9\x52\x4a\x4a\x0a\x56\xae\x5c\x89\ \xcb\x97\x2f\x0b\xaa\xff\xdd\x77\xdf\xe1\xae\xbb\xee\x32\x2c\xd6\ \x02\xb8\x91\x10\xe2\xb0\x8a\xb7\x12\x03\xe9\x35\xe8\x06\xa5\xf4\ \x2c\x80\x2e\xbb\x38\x99\x99\x99\x88\x8e\x8e\x16\x7c\x8e\xe4\xe4\ \x64\x4c\x99\x32\xc5\xd2\x5d\xeb\xa0\x5a\xa1\xc1\xce\xd4\x32\xfc\ \x90\x52\x81\x83\x39\xf5\x5d\xa7\x7a\x03\xfa\xee\xb4\xa3\x5f\xff\ \x52\x53\xc0\x5d\x8a\xa7\xa6\x04\x62\xc9\xa4\x10\xcc\x8c\xf4\xe9\ \xf3\xae\x14\x16\x16\x62\xde\xbc\x79\xc8\xcd\xcd\x15\x54\x7f\xf7\ \xee\xdd\x58\xb0\x60\x81\x61\x71\x35\x80\x44\x42\x48\xb6\xa5\xfb\ \xe7\x60\x00\xbf\x12\x94\xd2\x9f\x01\xdc\xda\xb9\xac\xb8\xb8\x18\ \xf1\xf1\xf1\x28\x2b\x2b\x13\x74\x8e\x73\xe7\xce\x61\xc2\x84\x09\ \x16\xef\x1b\x07\x20\x35\xbf\x1e\x1f\x1c\x2e\xc2\xff\x4e\x57\xe8\ \x04\x4a\x2f\x54\x83\x19\x4a\x75\x53\x5f\x35\x07\x78\x39\xe1\xfb\ \xeb\x47\x62\x7e\x4c\x10\x86\x78\x74\xdb\x99\xb3\x1a\x35\x35\x35\ \x98\x3d\x7b\x36\xd2\xd3\xd3\x05\xd5\x4f\x4f\x4f\x37\xf6\x03\x78\ \x89\x10\x72\x95\xc5\x3b\xe7\x60\x60\x0a\x16\xa5\xf4\x09\x00\x1b\ \x3b\x97\x35\x37\x37\xe3\xf6\xdb\x6f\xc7\x1f\x7f\xf0\x8f\xd6\x5d\ \x5c\x5c\xb0\x6f\xdf\x3e\x4c\x9f\x6e\xd9\x18\x6e\x2d\x6a\x0e\xfb\ \xd3\xab\xf0\xd9\xe1\x22\xec\x2e\x6a\xd2\x2d\x48\x4b\xfb\x67\xb7\ \xd1\xe6\xe1\x74\xc2\x15\xe1\xeb\x8c\x5b\x27\x04\xe2\xde\x99\x61\ \x88\x0c\x74\xe3\x6f\x67\x01\x2a\x2a\x2a\x30\x6f\xde\x3c\x64\x64\ \x64\xf0\xd6\x1d\x31\x62\x04\x8e\x1e\x3d\x8a\xd0\xd0\x50\xc3\x43\ \xdb\x09\x21\x37\x5a\xa5\x83\x83\x98\x01\x27\x58\x94\xd2\x19\x00\ \x76\x01\x70\xef\x5c\xbe\x7a\xf5\x6a\x7c\xff\xfd\xf7\x82\xce\x71\ \xf2\xe4\x49\x4c\x9b\x36\xcd\x72\x7d\x02\xb0\x35\xb5\x1c\x1f\x1c\ \x2c\xc4\xd1\xdc\x46\xc0\x59\x3c\x78\xa6\x7c\xbd\x85\xa3\x3a\x61\ \x97\x88\xf1\x74\x42\x30\x1e\x9c\x17\x81\x61\xbe\xd6\xb7\x7f\x4b\ \x4f\x4f\xc7\xf4\xe9\xd3\x21\x97\xcb\x79\xeb\x5e\x77\xdd\x75\xd8\ \xbc\x79\x33\xdc\xdc\xba\x09\xea\x23\x84\x90\x4f\xac\xd2\xc1\x41\ \xca\x80\x7b\x65\x28\xa5\x97\x01\x44\x76\x2e\x63\x31\x5f\xd8\xbf\ \x7f\x3f\xe6\xce\x9d\x6b\x91\xbe\x68\x01\x6c\x3b\x53\x86\x35\xdb\ \x73\xd1\x50\xd3\x0a\x38\x89\x1d\xd3\x3e\x73\xa1\xd0\x4d\x15\x35\ \x1c\x1e\x99\x1e\x82\x75\x0b\x47\x22\x2a\xc0\xba\x3e\xc8\x69\x69\ \x69\x98\x3d\x7b\x36\xea\xea\xea\x78\xeb\xf6\x60\xa3\xd5\x0a\xe0\ \x5a\x42\xc8\x71\x6b\xf4\x6f\x30\x32\xa0\xde\x1e\x4a\xe9\x16\x00\ \x5d\x0c\xa5\x52\x53\x53\x31\x79\xf2\x64\x41\xed\x7f\xfa\xe9\x27\ \x26\x53\x87\x9e\x50\x6a\x29\xf6\x5d\xac\xc4\x33\x3b\x72\x91\x5e\ \xd5\x0a\x48\xda\x17\xd1\x1d\x58\x06\x95\x6e\x2a\xfd\xd8\x94\x20\ \x3c\x71\x6d\x04\x46\xf8\x5b\x4f\xb8\x8e\x1e\x3d\x8a\x59\xb3\x66\ \x09\xaa\xbb\x69\xd3\x26\xac\x5a\xb5\xca\xb0\x38\x93\x10\x22\x7c\ \x97\xc7\x81\x49\x06\xcc\x5b\xd4\x6e\x6f\xb5\xa3\x73\x59\x65\x65\ \x25\x16\x2d\x5a\x84\x73\xe7\xf8\xfd\x54\xdf\x78\xe3\x0d\x3c\xfd\ \xf4\xd3\xbd\xee\xc7\xf9\x12\x39\x9e\xdb\x9a\x83\xbf\x2e\x35\xe8\ \x46\x53\xb6\x36\xa2\xe2\xa8\xee\xff\xed\xff\xd3\x19\x79\x1a\xd4\ \xd1\xbb\xef\x74\xfe\x4c\x60\x5b\xf6\x5f\xed\x23\x2e\x17\x77\x29\ \x5e\x9b\x1b\x8e\x07\xaf\x19\x0e\x17\x2b\xad\x07\x7e\xfd\xf5\xd7\ \x58\xb3\x66\x8d\xa0\xba\x97\x2f\x5f\x46\x64\x64\xa4\x61\xf1\x7f\ \x09\x21\xf7\x58\xbc\x63\x83\x10\x1b\x7a\x02\xcd\x87\x52\x1a\x02\ \xe0\x1c\x80\xc0\xce\xe5\x77\xdc\x71\x07\x7e\xfc\xf1\x47\xde\xf6\ \x77\xde\x79\xa7\xe0\xf5\xad\x9e\xa8\x6d\xd5\xe0\xed\x9d\x97\xf0\ \xf6\x91\x52\x40\x0c\xdd\xae\x5f\x5f\xd3\xd9\xca\x9c\x42\x67\x2e\ \xa0\x17\x24\x2d\x05\x64\x22\xc0\xd7\x19\xe1\x4e\x62\x8c\xf5\x73\ \x01\x47\x29\xc4\x84\x60\x72\x88\x2b\xb4\xed\xa2\x45\x08\x50\xab\ \xd0\x20\xb7\x5e\x09\x31\x21\x68\x56\x6b\x71\xac\xb6\x0d\x50\x6a\ \x81\xda\xd6\x4e\xd6\xf5\x9d\x2c\xec\xf5\xeb\x71\xfd\x31\x8a\xa4\ \x14\x68\xd3\xe2\xea\x10\x77\xbc\x7d\x43\x14\x96\xc4\x04\xf2\xb7\ \x31\x83\xd7\x5e\x7b\x0d\xcf\x3f\xff\x3c\x6f\xbd\x99\x33\x67\x62\ \xf7\xee\xdd\x70\x75\xed\x36\xea\x5b\x48\x08\xd9\x63\x95\xce\x0d\ \x22\x06\x8a\x60\xed\x04\xd0\xc5\xbf\xe2\xab\xaf\xbe\xc2\x7d\xf7\ \xdd\xc7\xdb\x76\xc2\x84\x09\x82\x46\x60\x3d\xa1\xa5\xc0\xff\x4e\ \x95\xe0\x1f\x3f\x65\xe9\x0a\x24\xa2\xbe\xfb\x56\x3b\x0b\x93\x86\ \x03\x9c\xc4\x18\x1d\xe0\x82\xa9\x81\x2e\x88\xf4\x73\xc1\x90\x20\ \x77\x84\xfa\xb9\x20\xcc\xd7\x05\x23\x7c\x5d\xe0\x6a\x81\x11\x48\ \x61\x7d\x1b\xca\x1a\x95\x28\xae\x6d\x45\x69\x4d\x0b\xca\x6b\x14\ \x38\x5f\xd5\x8a\xd4\xba\x36\xd4\x55\xb5\xfe\x3d\xaa\xd4\x5b\xe4\ \xf7\xd5\x77\xa1\xd5\xed\x2a\xce\xbf\xca\x07\x9f\xdf\x11\x6d\xf1\ \x69\xa2\x5a\xad\xc6\xa3\x8f\x3e\x8a\x2f\xbe\xf8\x82\xb7\xee\xb3\ \xcf\x3e\x8b\xd7\x5e\xeb\x66\xf0\x5e\x04\x60\x2c\x21\xa4\xc9\xa2\ \x1d\x1b\x64\xd8\xbd\x60\x51\x4a\x1f\x01\xf0\x51\xe7\xb2\xfc\xfc\ \x7c\x44\x44\x44\xf0\xb6\x0d\x08\x08\xc0\x89\x13\x27\x10\x15\x15\ \x65\xd6\xb5\x73\x2a\x5b\xf0\xd2\xb6\x1c\x6c\xbe\x58\xab\x33\x4f\ \xe8\x8b\x6f\xb3\x7d\xbb\x1f\x12\x11\x46\x79\xc9\x70\x95\xaf\x13\ \x62\x23\x7d\x91\x38\xd2\x07\xa3\x87\xb8\x41\x26\x93\xc0\xd3\x45\ \x02\x69\x1f\x8e\x76\x9a\x55\x5a\x28\x94\x5a\x34\x34\x29\x71\xaa\ \xb0\x11\x27\xae\x34\x20\xab\xb0\x11\x67\xe4\x2a\x28\x9b\xd5\xed\ \x02\xd6\x47\xdf\x8f\x9a\x83\x8f\xbb\x14\x6f\x2f\x8a\xc0\xdd\x33\ \xc3\x2d\x3a\x23\x97\xcb\xe5\x98\x34\x69\x12\xae\x5c\xb9\xc2\x5b\ \xb7\x87\xcd\x9b\x2f\x08\x21\x0f\x58\xae\x47\x83\x8f\x81\x20\x58\ \x55\x00\x02\xf4\x9f\xd5\x6a\x35\x56\xae\x5c\x89\x5f\x7f\xfd\x95\ \xb7\x6d\x6f\x9c\x99\xbf\x3d\x59\x82\xbb\xb7\x5e\x06\x94\x1a\xeb\ \xdb\x52\x69\xda\xc3\xc3\x50\xc0\xc5\xcf\x05\x2f\x4d\x0b\x46\xc2\ \x48\x6f\x8c\x08\xf6\xc0\x50\x4f\x27\xeb\x5e\xdb\x4c\x54\x1c\xc5\ \xa5\x8a\x66\x94\x54\xb5\xe0\x9b\xd4\x4a\xfc\x72\xa1\x5a\x37\x0a\ \x14\x11\xeb\x6f\x42\xb4\x8b\xfa\x0d\x57\xfb\xe2\x93\x3b\x63\x10\ \xe2\x69\x39\xc3\xd3\xac\xac\x2c\x5c\x7d\xf5\xd5\xbc\xf5\x9c\x9d\ \x9d\xd1\xd4\xd4\x04\x89\x44\xd2\xb9\x58\x05\x60\x19\x21\xe4\x4f\ \x8b\x75\x68\x90\x61\xd7\x82\x45\x29\xfd\x06\x40\x97\xd8\x30\x9f\ \x7e\xfa\x29\x1e\x7e\xf8\x61\xde\xb6\xaf\xbf\xfe\x3a\x9e\x79\xe6\ \x19\xe6\x6b\x16\xd7\xb7\xe1\x91\x1f\xd2\xb1\xf3\x62\x0d\xe0\x2a\ \xb1\xde\x42\xb4\x7e\x9a\x47\x81\xe5\x63\xfd\x70\xc3\x84\x40\x24\ \x5c\xe5\x8f\x91\x7e\xfd\xeb\x28\xdc\x1b\x8e\xe6\xd6\xe3\x54\x56\ \x15\xde\x39\x53\x85\xda\x6a\x45\x57\x37\x24\x6b\xa0\xe1\x00\x2d\ \xb0\x65\xf5\xd5\xb8\x25\x6e\xa8\xc5\x4e\xbb\x69\xd3\x26\x63\x7e\ \x84\xdd\x78\xfc\xf1\xc7\xf1\xde\x7b\xef\x19\x16\x3b\x76\x0d\x7b\ \x81\xdd\x0a\x16\xa5\x34\x11\x40\x97\x2c\x26\x05\x05\x05\x98\x34\ \x69\x12\xea\xeb\xeb\x4d\xb6\x9d\x3d\x7b\x36\x76\xed\xda\x05\x27\ \x27\xb6\xd1\xc9\xae\x8b\x55\x78\xe0\xe7\x2c\x14\x37\xaa\xac\x33\ \xaa\xa2\xd0\xbd\x64\x20\x58\x30\xcc\x1d\x4b\x26\x0d\xc1\xb2\x89\ \x41\x08\xf2\x72\x86\x64\x00\x99\x45\xb4\xaa\xb5\x48\x2d\x6c\xc4\ \x96\xd3\x65\xf8\x35\xab\x0e\xe5\xf5\x6d\xba\xef\xd3\x1a\xff\xc6\ \xf6\xef\xf4\xee\x49\x81\x78\xeb\x96\x31\x08\x70\xb7\xcc\x68\xeb\ \xf1\xc7\x1f\xc7\xfb\xef\xbf\xcf\x5b\xaf\x07\x23\xe4\xe7\x08\x21\ \xaf\x5b\xa4\x23\x83\x0c\xbb\x7d\x0b\x28\xa5\x47\x01\x74\x09\xa1\ \x70\xd7\x5d\x77\x61\xd3\xa6\x4d\xbc\x6d\x33\x33\x33\x31\x66\xcc\ \x18\xc1\xd7\xd2\x70\x14\x9f\x1c\xc8\xc7\xba\xdf\x73\x75\x3b\x6d\ \x96\x7e\xb1\xf4\x46\x91\x52\x11\xee\x18\xeb\x87\x07\x66\x84\x61\ \x4a\xa4\x2f\x9c\x6d\xcd\x24\xc2\x0a\x14\xd5\xb7\xe1\x58\x56\x35\ \x5e\x3d\x50\x88\xec\xaa\x56\xdd\x88\x95\x2f\x76\xb3\x39\xa8\x38\ \x8c\x09\x72\xc5\xaf\xf7\x8d\xc7\xd5\x43\xdc\xf9\xeb\xf3\x50\x5d\ \x5d\x8d\xc9\x93\x27\xa3\xa8\xa8\xc8\x64\xbd\x59\xb3\x66\x61\xf7\ \xee\xdd\x86\xd1\x69\xe5\x84\x10\xaf\x5e\x77\x62\x10\x62\x97\x6f\ \x04\xa5\xf4\x3e\x00\x5d\xb6\x6b\x0e\x1c\x38\x80\x79\xf3\xe6\xf1\ \xb6\xfd\xfa\xeb\xaf\x71\xcf\x3d\xc2\x4d\x62\x6a\x5b\xd4\x78\x70\ \xd3\x45\xfc\x7a\xae\x1a\x70\x93\xf0\x37\x60\x81\xa3\x3a\x23\x48\ \x67\x31\xde\x9e\x1b\x8e\xdb\x67\x84\x23\xd4\xcb\x36\xd7\xa4\xfa\ \x82\xc3\x39\xb5\x78\x7d\x77\x1e\xf6\x65\xd5\xe9\x46\x5c\x96\xde\ \x71\xd5\xea\x8c\xcf\x7e\x5c\x39\x06\xb7\x4f\xed\xfd\x14\xf1\xcc\ \x99\x33\x88\x8b\x8b\xe3\xad\xf7\xc1\x07\x1f\xe0\xb1\xc7\x1e\x33\ \x2c\x76\xd8\x66\x99\x81\xbd\x0a\x56\x3e\x80\xe1\xfa\xcf\x72\xb9\ \x1c\x73\xe6\xcc\x41\x6a\x6a\xaa\xc9\x76\xab\x56\xad\xc2\x77\xdf\ \x7d\x27\x38\xbc\xf1\xb9\xe2\x46\x2c\xfe\x32\x0d\x15\xfa\x29\x8b\ \xa5\x68\x5f\x14\xf6\xf7\x76\xc2\xf3\xd7\x84\xe1\x9e\xc4\x61\xf0\ \x70\xb2\x8d\x08\x9c\xb6\x40\x46\x79\x33\x3e\xdd\x9f\x8f\x8f\x93\ \x2b\x01\x50\xcb\x0a\x17\xd5\x85\xb2\xf9\x57\xe2\x50\xbc\x76\xf3\ \x18\xc8\x7a\x39\x5a\x7e\xea\xa9\xa7\xf0\xf6\xdb\x6f\xf3\xd6\x2b\ \x2b\x2b\x43\x70\x70\x70\xe7\xa2\x16\x00\x4b\x09\x21\x87\x7a\xd5\ \x81\x41\x86\xdd\xbd\x25\x94\xd2\x17\x00\xdc\xd4\xb9\x6c\xd3\xa6\ \x4d\xf8\xfc\xf3\xcf\x79\xdb\x6e\xde\xbc\x19\x81\x81\xc2\x0c\x0b\ \x0f\x66\xd7\x60\xfa\xa7\xe7\xd1\xac\xd0\x58\xd6\x08\x54\xc5\x21\ \xcc\x53\x86\x27\xe7\x84\xe3\x9b\x3b\xc6\x62\xce\x18\x7f\x38\xf5\ \x87\x91\xa9\x0d\x13\xe8\x21\xc3\xe2\xf1\x41\xb8\x61\xac\x1f\x9a\ \x5a\x54\xb8\x58\xa9\xd0\x4d\x9b\x2d\x31\x15\x6f\x37\x74\x3d\x79\ \xa5\x11\x25\x55\x2d\x98\x75\x95\x1f\x5c\xa4\xe6\xbf\x06\x13\x27\ \x4e\xc4\x5f\x7f\xfd\x85\xea\xea\x6a\x93\xf5\x28\xa5\x86\xb1\xb3\ \x64\x00\x82\x36\x6c\xd8\xf0\x83\xd9\x17\x1f\x84\xd8\xdd\x08\x8b\ \x52\x5a\x0b\xc0\x57\xff\xb9\xaa\xaa\x0a\x53\xa7\x4e\x45\x41\x41\ \x81\xc9\x76\xef\xbe\xfb\x2e\xd6\xaf\x5f\x2f\xe8\x1a\xdf\x9e\x2c\ \xc1\xdd\x3f\x66\x59\x76\xfb\x5d\xc3\x01\xcd\x1a\x3c\xbd\x64\x04\ \xd6\xce\x1f\x81\x60\x1b\x35\x47\xb0\x45\x4e\x5c\xae\xc3\x75\x9b\ \x32\xd0\x50\xad\xd0\x39\x90\x5b\xea\x9e\x28\xb5\x88\x1f\xe6\x89\ \xad\x0f\x4e\xec\xd5\xfd\xd8\xb9\x73\x27\xae\xbf\xfe\x7a\xde\x7a\ \x59\x59\x59\x18\x3d\x7a\x74\xe7\x22\x15\x80\xf9\x84\x90\xa3\x66\ \x5f\x7c\x90\x61\x57\x82\x45\x29\x7d\x13\xc0\x53\x9d\xcb\x1e\x79\ \xe4\x11\x7c\xf2\x89\xe9\x08\x1e\x9e\x9e\x9e\x68\x6c\x6c\x14\x74\ \x8d\x27\x7f\xcd\xc2\x3b\x07\x8a\x00\x67\x89\x65\xbe\x1d\x8e\x02\ \x4a\x0e\x77\x4c\x0c\xc0\x8b\x37\x5d\x85\x51\x56\x8e\x30\x30\x90\ \xd9\x74\xaa\x04\x4f\xfd\x99\xa7\xdb\x55\x94\x89\x2d\x73\x7f\xda\ \x43\xd7\xe4\x3c\x3d\x15\xa3\xcc\x8c\xb7\x45\x29\xc5\x7d\xf7\xdd\ \x87\xaf\xbf\xfe\xda\x64\xbd\x5b\x6e\xb9\x05\x3f\xff\xfc\xb3\x61\ \x7e\xc3\x24\x42\x88\xe5\x62\x19\x0d\x70\xec\x46\xb0\x28\xa5\xc3\ \x01\x1c\x05\xd0\x91\x22\xbc\xb8\xb8\x18\xe1\xe1\xe1\xbc\x6d\x0f\ \x1c\x38\xc0\x1b\xc3\xbd\x55\xc3\xe1\xe5\x6d\x39\x78\xf3\x50\xb1\ \xee\x57\xbc\xb7\xb4\x6f\xa7\x8f\xf4\x76\xc2\x7f\x6e\xbe\x0a\x8b\ \x63\x82\x1c\x01\x1b\x2c\x40\x75\x93\x0a\xef\xec\xce\xc5\x3b\xc7\ \xca\x74\x4f\xaf\x25\x76\x52\x39\x0a\x48\x45\x38\xfd\xd0\x44\xc4\ \x45\x98\x17\x9a\xb9\xa0\xa0\x00\x23\x46\x8c\xe0\xad\x97\x94\x94\ \x84\xa9\x53\xa7\x1a\x16\x4f\x20\x84\x5c\x30\xeb\xc2\x83\x0c\xbb\ \x79\x85\x28\xa5\x1b\x00\xbc\xd8\xb9\x6c\xc3\x86\x0d\x78\xe9\xa5\ \x97\x4c\xb6\x5b\xbe\x7c\x39\xaf\xd5\xbb\x86\x02\x4f\x6d\x4e\xc7\ \xc6\xa3\x65\x80\x8b\x05\xc4\x8a\xd3\x85\xfa\xfd\xc7\xe4\x20\xfc\ \xbf\x5b\xc6\xc0\xcf\xad\x7f\x12\x2b\xf4\x44\x51\x7d\x1b\x14\x6a\ \x2d\x8a\xeb\xda\xd0\xa2\xd2\x1a\x7f\x08\x08\x10\xe6\xe3\x0c\x27\ \x89\x08\x11\x7e\xae\x56\x8b\x84\x60\x2e\x7b\x33\xab\xf1\xe0\xe6\ \x2c\xe4\xd7\x29\x75\xa6\x26\xbd\x45\x4b\xe1\xea\x2c\xc6\xe1\x07\ \x27\x62\xca\x08\x6f\xb3\x4e\xf1\xea\xab\xaf\xe2\x85\x17\x5e\x30\ \x59\x67\xc1\x82\x05\xd8\xbd\x7b\xb7\x61\xf1\x4e\x42\x08\xff\x9c\ \xd2\x81\x5d\x09\x56\x11\x3a\x8d\xae\x4a\x4b\x4b\x8d\x85\xa5\xed\ \x46\x4e\x4e\x0e\x46\x8d\x1a\xd5\xe3\x71\x35\x47\x11\xff\x56\x12\ \xce\x96\x34\x59\x66\x64\xa5\xe2\xe0\xea\x2e\xc5\x8e\xd5\x63\x31\ \x77\x8c\x7f\xef\xcf\x67\x06\x72\x95\x16\x97\xab\x5a\x50\x56\xd5\ \x82\xd2\x5a\x05\x4e\x14\x37\x23\xbd\xa6\x15\xe7\xab\x5b\x81\x06\ \xe5\xdf\xa1\x62\xf4\x61\x63\x7a\x42\x1f\x76\xa6\x3d\xd2\x83\x5b\ \x80\x0b\x12\x03\x5d\x31\x31\xc8\x15\xe3\x83\xdd\xe0\xef\xef\x86\ \x11\x01\x6e\x18\xd1\x07\x11\x40\x8d\xd1\xa6\xa1\x78\xf3\xcf\x4b\ \xd8\xf0\x67\xbe\xce\xeb\xa0\xb7\x43\xd8\xf6\x54\x64\x69\xcf\xc4\ \x63\xdc\x50\x0f\xe6\xe6\x0d\x0d\x0d\x08\x0f\x0f\x47\x53\x93\x69\ \xff\xe6\x53\xa7\x4e\x21\x3e\x3e\xbe\x73\x11\x05\x30\x87\x10\x72\ \x98\xf9\xa2\x83\x0c\x0b\x1b\x16\x59\x07\x4a\xe9\x8b\xe8\x24\x56\ \x00\xf0\xd1\x47\x1f\xf5\x50\xfb\x6f\x5e\x7c\xf1\x45\x93\x62\x05\ \x00\x52\x11\xc1\x35\x23\xbd\x70\xb6\xb4\x59\xf7\xd8\x98\xfb\xcc\ \xb7\x6f\x97\xaf\x9e\x14\x88\x8d\x2b\xae\x86\x6f\x1f\xa6\xab\x2a\ \xaa\x6f\x43\x49\x75\x0b\x8e\x5c\x69\xc0\xf6\xb4\x2a\x14\xd6\xb5\ \xa1\x42\xcd\xe9\x6c\xbc\x28\xed\x9a\x0d\xda\xc3\xfc\x7e\xb5\x34\ \x2a\xb1\xab\x41\x89\x5d\xd9\x75\xba\x51\xa4\x44\x04\x57\x99\x08\ \x21\x32\x31\xa6\x46\xf9\x60\xd1\x55\xbe\x98\x10\xee\x89\x60\x5f\ \x57\xf8\xba\x58\xff\xd1\x72\x96\x10\xbc\x74\xc3\x55\x98\x39\xca\ \x0f\x6b\x7e\xca\x42\x41\x5d\x5b\xef\x46\x5b\x5a\x8a\x87\xe3\x87\ \xe0\xea\x10\x76\xb1\x02\x00\x6f\x6f\x6f\xbc\xfb\xee\xbb\xb8\xff\ \xfe\xfb\x4d\xd6\x7b\xfd\xf5\xd7\xb1\x63\x47\x97\xd0\x6d\x04\xc0\ \x23\xd0\xa5\xa4\x73\x60\x02\xbb\x18\x61\x51\x4a\xb3\x00\x74\x6c\ \xaf\x14\x16\x16\x62\xca\x94\x29\xbc\x5b\xc9\xa5\xa5\xa5\x08\x09\ \x09\xe1\x3f\x3f\x80\x7f\xfd\x9c\x89\x8d\x47\x4b\xcc\x1b\x65\x71\ \x14\x20\x04\x5f\xdc\x18\x89\x35\xb3\x86\x59\xfd\x4b\x55\x73\x14\ \xa5\x75\xad\xd8\x95\x51\x83\xd3\xd9\xd5\x38\x50\xd2\x82\x92\xba\ \xb6\xf6\x35\x9d\x4e\x96\xf8\x7d\x71\x77\x3b\xc7\xe0\xd2\x50\xc0\ \x49\x8c\x84\x20\x17\x5c\x13\xe9\x83\x6b\xa2\x03\x30\x2d\xc2\x1b\ \xee\x4e\xd6\x17\xaf\xbc\x1a\x05\x9e\xfc\x39\x13\xbf\x65\xd5\x9b\ \x27\x5a\x4a\x2d\x1e\x49\x08\xc1\xc6\x15\xd1\x90\xf5\x62\x5d\xac\ \xa6\xa6\x06\x73\xe7\xce\x45\x5a\x5a\x9a\xc9\x7a\x67\xcf\x9e\xc5\ \xc4\x89\x5d\x32\xd0\x35\x00\x98\x4d\x08\x39\x6f\xf6\xc5\x07\x01\ \x36\x6f\x87\x45\x29\x4d\x80\xc1\xce\xe0\x57\x5f\x7d\x85\x6d\xdb\ \xb6\x99\x6c\xf7\xd4\x53\x4f\xe1\xa6\x9b\x6e\x32\x59\x47\x0f\x01\ \xb0\x60\x6c\x00\x1a\x9a\x95\x38\x7d\xa9\x81\xed\x81\x57\x73\x80\ \x54\x8c\xf4\x7f\xc6\x61\xe1\xb8\x40\xab\x6a\x44\x51\x83\x12\xbf\ \xa7\x94\x61\xed\x2f\x39\xf8\xd7\xaf\x97\xf0\x67\x66\x2d\x2e\xd4\ \x2a\x21\x57\x6b\x75\x86\xad\x7a\xb1\xe2\x9b\xea\x59\x12\xfd\xf4\ \x52\x44\x3a\xec\xd5\x8a\x9b\xd5\x38\x96\x2f\xc7\xa6\x13\x65\x78\ \xe3\x64\x19\x9a\xab\x9b\x21\x75\x92\x60\x84\x15\x1d\xb7\x7d\x5c\ \xa5\xb8\x35\x2e\x04\x9c\x5a\x8b\xa3\x19\xb5\x7f\x27\xa0\x15\x42\ \x9b\x16\xab\xa7\x04\xe1\x8b\xbb\x62\x20\xee\xe5\xb4\xd2\xd5\xd5\ \x15\xbe\xbe\xbe\xbc\xeb\xa6\x32\x99\x0c\x8b\x16\x2d\xea\x5c\xe4\ \x0c\x40\xbe\x61\xc3\x86\xfd\xbd\xea\xc0\x00\xc7\xe6\x47\x58\x94\ \xd2\x43\x00\xae\xd1\x7f\x6e\x6a\x6a\x42\x44\x44\x04\x6a\x6a\x6a\ \x4c\xb6\x2b\x2c\x2c\x14\xb4\x83\x68\xc8\xe3\x3f\x67\xe2\xfd\xe3\ \xa5\xfc\x96\xed\x14\x80\x52\x8b\x55\xe3\xfd\xf1\xe1\xea\xf1\xf0\ \x76\xb6\x8e\xf6\x2b\x34\x1c\x4e\xe5\xd4\xe2\xcd\x03\x85\xd8\x7f\ \xa9\x5e\x77\x61\xb1\x1d\xe5\x30\xd4\xe7\x1a\xe4\x28\xe0\x2e\xc3\ \xab\x33\x42\xb0\x7c\x4a\x08\x46\x5b\xc0\x9f\xaf\x27\xb6\x9e\xab\ \xc0\xf2\xcd\x59\x40\xab\x96\xdf\x2f\x51\xc5\xe1\xbe\xb8\x21\xf8\ \xe2\xae\x71\x16\xbb\xbe\x52\xa9\x44\x48\x48\x08\x6f\xf2\x8a\xdc\ \xdc\x5c\x8c\x1c\xd9\x25\x29\x79\x33\x21\xc4\xbc\xf9\xe8\x20\xc1\ \xb6\xb6\x7e\x0c\xa0\x94\x4e\x04\xd0\x65\x0f\x78\xf7\xee\xdd\xbc\ \x62\xf5\xcf\x7f\xfe\xd3\x2c\xb1\x02\x80\x77\x6f\xbd\x1a\x2b\xc6\ \xf9\xeb\xd6\x7f\x7a\xec\x18\x00\x0d\x87\x0d\x0b\x86\xe1\xeb\x35\ \x13\xad\x22\x56\x0d\x0a\x35\x3e\x3f\x52\x88\xf9\xef\x24\x61\xde\ \x67\xe7\xb1\x3f\xb7\x5e\x27\xa2\x32\x3b\xcb\xbc\x43\x88\xae\xdf\ \x4e\x62\x40\xa5\xc1\xf3\xbb\x0b\x30\x6e\xe3\x19\xdc\xfb\xcd\x79\ \x24\xe7\x37\x40\x43\xf9\x4f\xc1\xca\xb2\x89\x43\x70\xf1\xb1\x58\ \x44\xf9\x39\xeb\x46\xc0\x3d\xa1\xe2\xf0\x58\x42\x30\x3e\x5e\x35\ \xd6\xa2\xd7\x77\x72\x72\xc2\x3b\xef\xbc\xc3\x5b\xef\x87\x1f\xba\ \x19\xb9\xbb\x53\x4a\x1d\xfe\x85\x26\xb0\xe9\x27\x9f\x52\xfa\x7f\ \x00\x5e\xea\x5c\x36\x76\xec\x58\xde\x04\x97\x3d\x64\xe3\x15\x8c\ \x42\xcd\xe1\x8e\x2f\xcf\x61\x5b\x46\x6d\xf7\x35\x2d\x4a\x81\x36\ \x0e\x1f\xde\x3a\x0a\x8f\xce\x1e\x6e\xf6\x35\x7a\xa2\x49\xa5\xc5\ \xb7\x47\x0b\xf1\xaf\x83\xc5\x50\x35\x28\xdb\xa7\x7a\x36\x7d\x9b\ \xd8\xd1\x87\xd1\xd1\x70\xb8\x6d\x7c\x00\xd6\x2d\x88\xc0\x34\x33\ \x4d\x09\x4c\x51\xab\x50\x63\xfa\xbb\xc9\xc8\xa9\x54\x74\x9f\xe6\ \xb7\x69\x71\x4f\xdc\x10\x7c\xbe\x3a\xc6\x2a\xc1\x21\xd4\x6a\x35\ \x64\x32\xd3\xa1\x6c\xa2\xa3\xa3\x71\xea\xd4\x29\x78\x78\x74\x19\ \x54\x1d\x24\x84\x58\x26\xcf\xdc\x00\xc4\xa6\x47\x58\x00\xba\x24\ \x13\x4c\x4b\x4b\xe3\x15\xab\x07\x1f\x7c\xb0\x57\x62\x05\x00\xae\ \x52\x11\x7e\x7f\x38\x16\xcb\xc6\xf9\xeb\x92\x2f\xe8\xd1\xea\x16\ \xd7\x77\x3e\x3c\xc1\xe2\x62\xd5\xa2\xe1\xf0\xe9\xc1\x7c\x78\x3e\ \x79\x18\x6b\xb7\xe6\x42\xa5\x50\xeb\x12\xae\x0e\x34\xb1\x02\x74\ \x3f\x93\x52\x11\xe0\x22\xc1\xcf\x99\xb5\x48\x78\xf3\x34\xa6\xff\ \xbf\xd3\x38\x75\xc5\x74\x1c\x33\x56\xfc\x5c\xa5\xb8\xf0\x5c\x02\ \xee\x9c\xe0\x0f\xb4\x75\xba\x8f\x4a\x2d\xee\x9a\x12\x84\xaf\xff\ \x61\x1d\xb1\x02\x00\xa9\x54\x8a\x37\xde\x78\xc3\x64\x9d\x8c\x8c\ \x0c\x1c\x3e\x7c\xd8\xb0\x78\x0e\xa5\x94\x3f\xbe\xf7\x20\xc5\x66\ \x05\x8b\x52\xba\x1a\x40\x97\x2d\xbe\x2d\x5b\xb6\xf0\xb6\x63\x09\ \x1d\xc3\xc7\x96\x07\x26\xe1\xe6\x71\xfe\xba\x69\x85\x96\xc2\xcb\ \x45\x82\xb3\x8f\x4f\xc6\x75\xe3\x2c\x97\x99\x45\x4b\x81\xdf\xcf\ \x96\x23\xfe\xcd\x53\x78\xf8\xb7\xcb\xba\x97\xd9\xd9\x82\xfe\x72\ \xb6\x8e\x44\x04\xb8\x49\x70\xb2\xb8\x09\x09\x1f\xa4\xe2\x81\xef\ \x2e\xe0\x4a\xb5\xc2\x62\xa7\x77\x12\x11\x7c\x79\xf7\x04\x3c\x3f\ \x37\x0c\x68\xd5\x00\x4a\x0e\x8f\x26\x84\xe0\xdb\xbb\xc7\x5b\xec\ \x1a\x3d\xb1\x7c\xf9\x72\xf8\xfa\xfa\x9a\xac\xd3\x83\xa8\x99\xb6\ \x8b\x18\xc4\xd8\xec\x5b\x41\x29\xdd\x04\xa0\x23\x2b\x65\x4d\x4d\ \x0d\x26\x4f\x9e\x8c\xc2\xc2\xc2\x1e\xdb\xcc\x9e\x3d\x1b\x7b\xf6\ \xec\x81\x54\x6a\x39\x1b\x28\x85\x8a\xc3\xaa\xaf\xcf\xe1\xf7\x4b\ \x0d\xb8\xf0\xcf\x29\x88\x09\xf5\xb4\xd8\xb9\x2f\x57\x2b\xf0\xd2\ \xd6\x6c\xfc\x78\xb1\xd6\x36\x73\x18\xf6\x35\xed\x81\x0c\xbd\x3d\ \xa4\x78\x7e\x76\x38\xfe\x79\xad\xe5\x06\x1a\x5a\x0a\xac\xfb\xe1\ \x22\x54\x1c\xc5\x47\x77\x8c\xeb\x95\xe9\x02\x0b\xab\x56\xad\x32\ \xb6\x56\xd5\x05\x23\xa1\x67\x1c\x61\x94\x7b\xc0\x66\xdf\x10\x4a\ \x69\x0b\x80\x0e\x4f\xe1\xfd\xfb\xf7\x63\xfe\xfc\xf9\x26\xdb\x7c\ \xfb\xed\xb7\x58\xbd\x7a\xb5\xc5\xfb\x52\xd3\xa2\x46\xab\x4a\x8b\ \x30\x1f\xcb\x58\x74\x53\x00\x1f\xed\xcf\xc3\xda\xed\x79\xba\x4f\ \x36\xe6\xf6\xd2\xef\xb4\xe7\x1a\x4c\x18\xe1\x85\xcf\xee\x88\x36\ \xcb\xea\xdc\x56\x38\x76\xec\x18\x12\x13\x13\x4d\xd6\xf9\xf8\xe3\ \x8f\x0d\xf3\x10\x28\x01\xdc\x4c\x08\xf9\xc3\x9a\x7d\xb3\x47\x6c\ \xf2\x4d\xa1\x94\xae\x41\x27\xb1\x02\xc0\x1b\x91\x01\x00\x6e\xbb\ \xed\x36\xab\xf4\xc7\xdf\x4d\x6a\x31\xb1\x4a\x2b\x6d\x42\xc2\x5b\ \x49\x58\xfb\x7b\xae\x6e\xcb\xbd\xbf\xc4\x8a\x76\xfa\xe3\x68\xd7\ \x3f\x4a\xbb\x1e\xef\x6b\x08\x01\x5c\x24\x38\x59\xd2\x84\x98\x77\ \x92\xf1\xc6\x1f\x97\x4d\x6e\xf6\xd9\x32\x13\x26\x4c\x30\x74\xc3\ \xe9\xc6\x2f\xbf\xfc\x82\xd6\xd6\xd6\xce\x45\x4e\x00\xf8\xc3\xe7\ \x0e\x42\x6c\x52\xb0\x00\x5c\xdb\xf9\x43\x61\x61\x21\x6f\x34\xd1\ \x3b\xef\xbc\xd3\x30\x6e\xb6\xcd\xb1\xe5\x4c\x19\xc6\xbf\x7b\x06\ \x49\x65\xcd\xba\xdd\xc7\xbe\x4c\xb8\xaa\xe1\x74\x1b\x08\x6d\x5a\ \xdd\x67\x11\x81\x8f\x93\x18\x3e\x4e\x62\xc4\x78\x3b\x61\x6c\xfb\ \xdf\x38\x6f\x27\x8c\x74\x93\xc1\x53\x26\x86\xb7\x93\xf8\xef\x78\ \xf3\x6d\xda\x8e\xb5\xbc\x3e\x13\xb1\xf6\x48\xa3\xcf\xee\xca\xc7\ \xcd\x9f\xa6\xa2\x42\xae\xec\xa3\x0b\x5b\x0e\x0f\x0f\x0f\xdc\x7a\ \xeb\xad\x26\xeb\x1c\x3e\x7c\x18\xe5\xe5\xe5\x86\xc5\x37\x58\xad\ \x53\x76\x8c\x4d\x4e\x09\x29\xa5\x79\x00\x3a\x62\x75\x08\x09\x90\ \xb6\x77\xef\x5e\xde\x29\x63\x7f\xa1\x01\xf0\xe2\x2f\x99\x78\xe3\ \x60\xb1\x6e\x41\xdd\x5a\xa9\xc1\x00\x9d\x18\x69\x3b\xb9\xca\x00\ \x40\xa0\x2b\xee\x1c\xe9\x85\xb8\xa1\xee\x18\xe5\xef\x02\x67\x37\ \x19\x5c\x9d\x24\x70\x73\xd6\xb9\xcc\x04\x7b\x39\x83\x6b\x57\x21\ \x02\x40\xa1\xd2\xa2\x51\xa1\x01\x00\xd4\xca\xdb\xa0\xd5\x70\xa8\ \x93\x2b\x91\x54\xd2\x84\x13\xc5\xcd\x38\x59\x28\x07\x9a\xd5\x80\ \x94\xfc\x6d\xc4\xaa\xb7\xb0\xb7\x16\x2a\x0e\x43\xbd\x65\xd8\x72\ \x77\x0c\x12\x46\x9a\x17\x02\xa6\xbf\x10\x12\x7a\xc6\x48\x80\x49\ \x25\x80\x04\x42\xc8\x59\x6b\xf6\xcd\xde\xb0\x39\xc1\xa2\x94\xc6\ \x01\x38\xdd\xb9\x6c\xd9\xb2\x65\xf8\xfd\xf7\xdf\x7b\x6c\x13\x1b\ \x1b\x8b\x43\x87\x0e\x19\xda\xb3\xd8\x04\xe5\x8d\x4a\x8c\x7f\x37\ \x19\xd5\x35\xad\x3a\xb1\xb2\x06\x7a\x91\x52\x6a\x11\x18\xec\x86\ \x95\x91\x5e\x88\x0e\xf3\xc4\xe4\x51\xfe\x98\x10\x62\x1d\x8b\xf2\ \x06\xa5\x16\x87\x73\x6a\x71\xa5\xb8\x11\xfb\x73\x1b\xb0\x3b\xb7\ \x51\x97\xec\x55\x22\xd2\x39\x7c\x59\x43\x94\xdb\x83\x21\xbe\x75\ \xfd\x48\x3c\xb9\x68\x24\x7f\x7d\x1b\x22\x32\x32\xd2\x64\xc6\xe8\ \x45\x8b\x16\x61\xc7\x8e\x1d\x86\x89\x57\x3f\x20\x84\xac\xb3\x7a\ \xe7\xec\x08\x5b\x14\xac\x0f\x01\x3c\xaa\xff\xac\xd5\x6a\x0d\x6f\ \x62\x37\xd6\xaf\x5f\x8f\x77\xdf\x7d\xd7\xda\x5d\x63\x26\x39\xbf\ \x01\xf3\xbf\x3c\x0f\x79\x8b\xc6\xf2\x3b\x80\x7a\xe3\x4b\x42\x90\ \x30\xc4\x15\x89\xa3\x7c\xb0\x7c\x72\x30\xae\x1a\xe2\x0e\x0f\xe7\ \xbe\x0d\xc2\xd1\xa6\xe1\xd0\xa4\x50\x63\x67\x7a\x35\xf6\x9f\xaf\ \xc0\xbe\x92\x16\xd4\xd4\x2b\x01\x27\x2b\xa5\x44\x6b\xd3\xe2\xb9\ \x6b\x87\xe1\xb9\xa5\x51\x70\xb1\x93\x78\xf8\x9f\x7f\xfe\x39\x1e\ \x7c\xf0\xc1\x1e\x8f\x8b\x44\x22\x64\x64\x64\x18\x86\x50\x3e\x42\ \x08\xb9\xc6\xda\x7d\xb3\x27\x6c\x31\xbc\xcc\xf4\xce\x1f\x8e\x1c\ \x39\xd2\x53\xbd\x0e\xcc\x4d\x37\x6f\x4d\xfe\x4c\xab\xc4\xca\xff\ \x65\x42\xae\xd4\x5a\x56\xac\xda\xc3\xd8\x40\x2a\xc2\xea\xd8\x20\ \xdc\x97\x30\x14\x63\x87\x79\xc3\xab\x1f\xb3\xee\x38\x4b\x44\x70\ \xf6\x74\xc2\x3d\x09\xa1\xb8\x27\x21\x14\x79\x35\xad\x38\x9e\x5d\ \x8d\x97\x0f\x14\xe1\x4a\x4d\xfb\x62\xb2\xa5\x36\x17\x08\x00\x17\ \x31\x5e\xdb\x5b\x88\xc6\x16\x15\xde\xb8\x35\x1a\xee\x96\x08\xe0\ \x67\x65\xf8\x16\xde\x39\x8e\x43\x76\x76\xb6\xa1\x60\xcd\xb2\x6a\ \xa7\xec\x10\x9b\xba\xd3\x94\xd2\x78\x00\x5d\x9c\x00\xcf\x9c\x39\ \x63\xb2\xcd\x90\x21\x43\x10\x19\x19\x69\xcd\x6e\x31\xb3\x25\xb5\ \x1c\xd7\x7d\x7e\x01\x72\x95\x05\xc5\x8a\xa3\x3a\x67\x5e\xa9\x04\ \x5f\xde\x1c\x85\xd2\x0d\x33\xf1\xed\x3f\x62\x30\x7d\x94\x5f\xbf\ \x8a\x95\x31\x22\xfc\x5d\x70\xd7\x8c\x70\xe4\xfe\xdf\x0c\x9c\x78\ \x62\x32\x56\x8f\x0f\x00\x5a\x34\xba\x45\x7b\x4b\x2d\xd8\xbb\x88\ \xf1\xd1\xc9\x72\x2c\x7e\x3f\x19\xad\xda\xfe\xd8\xca\x64\x63\xfc\ \xf8\xf1\x88\x8d\x8d\x35\x59\xe7\xab\xaf\xbe\xea\x56\x46\x29\x5d\ \x64\xa4\xea\xa0\xc5\xa6\x04\x0b\x40\x2c\x00\x3f\xfd\x87\xd6\xd6\ \x56\xfc\xf9\xe7\x9f\x26\x1b\xdc\x79\xe7\x9d\xf0\xf7\xef\x9f\xc8\ \x9e\x86\x70\x14\xd8\xb8\x37\x0f\xec\x1b\x44\xbb\x00\x00\x20\x00\ \x49\x44\x41\x54\xb7\x7d\x73\x51\xe7\xa4\x6c\x89\xe9\x10\xa5\x40\ \xab\x06\x13\xfd\x5d\xf0\xc5\xed\xa3\xd1\xf2\x5a\x22\xd6\x5c\x33\ \x1c\x21\x9e\x96\x49\xb9\x6e\x6d\x12\x22\x7c\xf0\xed\x9a\x09\xb8\ \xf0\x62\x02\x1e\x88\x0d\xd4\xad\xb5\x69\x2c\x64\xa3\xe0\x2c\xc6\ \xb1\xc2\x26\x2c\xfb\xf0\x0c\xaa\x9b\x55\x96\x39\xa7\x15\x59\xbc\ \x78\xb1\xc9\xe3\x7f\xfe\xf9\x27\x54\xaa\x6e\xff\x8e\x3b\xac\xd6\ \x21\x3b\xc4\xd6\x04\xab\x8b\xdb\x7c\x6b\x6b\x2b\x8e\x1d\x3b\x66\ \xba\xc1\x58\xcb\x7a\xda\xf7\x86\xea\x26\x25\xfe\xb9\xaf\xd0\x72\ \x89\x3f\xd5\x1c\xbc\x64\x62\xbc\xbf\x2c\x0a\x07\xd6\xc7\xe1\xbe\ \xc4\x70\xb8\xda\xa9\x91\x69\xcc\x50\x0f\x7c\xf6\x8f\xf1\x48\x7b\ \x32\x0e\xf3\x23\xbc\xff\x0e\x39\xd3\x5b\x64\x22\xec\xce\xa8\xc3\ \x0f\xa7\x4a\x7a\x7f\x2e\x2b\x23\x24\x3e\x5b\x4a\x4a\x8a\x61\xd1\ \x68\x63\xf5\x06\x2b\xb6\xf6\xf4\x77\xb1\xbf\x3a\x7d\xfa\x74\x4f\ \xf5\x3a\x30\x48\x4e\xd9\xaf\x04\x79\x3a\xe1\xdc\xda\x58\xdd\xd4\ \xa7\x37\x2f\x23\x47\x81\x16\x0d\xd6\x4c\x1e\x82\xf4\x67\xa6\x61\ \xed\xfc\x08\xf8\xf4\x61\xc8\x65\x6b\x32\x2e\xd4\x13\x7b\x1f\x9f\ \x82\x3f\xd6\x8c\x83\xb3\xab\x54\x67\x1b\xd6\x1b\xdd\x6a\xd3\x62\ \x75\x42\x30\xd6\xce\xb3\x7d\x7f\xe1\xa0\xa0\x20\x5e\xf3\x86\xa2\ \xa2\x22\xc3\xa2\x60\x4a\xa9\x43\xb4\xda\xb1\x19\xc1\xa2\x94\x7a\ \x01\xe8\xe2\x55\x6c\xc4\x93\xbd\x0b\xae\xae\xae\x08\x0a\x0a\xb2\ \x62\xaf\xd8\x99\x10\xe6\x89\xd3\x4f\xc6\xfd\x6d\x41\xce\x02\x05\ \xa0\xd2\x62\xb8\x97\x13\x4e\x3d\x35\x15\x5f\xae\x1e\x87\x50\x6f\ \xdb\x36\x86\x35\x97\x25\x31\x41\x90\xbf\x36\x0b\x4f\xcf\x09\xef\ \x48\xfe\xc0\x8c\x8a\xc3\x9a\xa9\x43\xf0\xed\xdd\xe3\xed\xc2\x57\ \x3c\x24\x24\x04\x73\xe7\x9a\x8e\x1c\xb3\x6f\xdf\xbe\x6e\xcd\x00\ \x58\x2e\xba\xa0\x9d\x63\x33\x82\x05\xe0\x7a\xe8\xc2\xc4\x02\xd0\ \xed\x9a\xe4\xe5\xe5\x99\x6c\x60\x6a\x9b\xb8\x3f\x89\x1b\xee\x8d\ \xdf\x57\x47\xeb\x6c\x91\xa8\xc0\x17\x91\xea\xd6\x76\xfe\x3d\x2b\ \x0c\xc9\xff\x8e\x47\x7c\x84\xe5\xe3\x43\xd9\x1a\x52\x02\xbc\xb1\ \x7c\x34\x0e\x3c\x34\x01\xe3\x03\x5d\x00\x95\x96\xbf\x91\x9e\xf6\ \xe0\x7b\x9f\xde\x69\x5f\xef\x32\xdf\x12\xc6\x37\xdf\x7c\x03\x8d\ \x46\xd3\xad\x99\xd5\x3a\x64\x67\xd8\x92\x60\x4d\x42\x27\x33\x8b\ \x8a\x8a\x0a\x64\x65\x65\x99\x6c\xc0\xe7\x54\xda\x9f\xdc\x38\x29\ \x18\x3b\xee\x8a\xd6\xed\xec\xf1\x69\x96\x56\x67\xaa\xf0\xd7\x7d\ \x31\x78\xfb\x96\x31\x08\x70\x1f\x18\xd3\x3f\xa1\xcc\x19\xe3\x8f\ \x7d\x8f\xc7\x61\x65\x4c\x7b\xdc\x2a\xbe\xef\xab\x4d\x8b\x7b\xa7\ \x04\x61\xe3\x8a\x68\x48\xec\x61\x68\xd5\x89\xc9\x93\x27\xf3\xd6\ \x31\x92\xa5\x3c\xce\x2a\x9d\xb1\x43\x6c\x49\xb0\xba\xa4\xf1\xaa\ \xa9\xa9\xe1\x0d\xd6\x67\x6e\x18\xe4\xbe\x62\xe9\xc4\x21\xd8\xf3\ \xd8\x24\xa0\x4d\xd3\xf3\xf4\x50\xa9\xc5\xa4\x21\xae\x28\x7c\x65\ \x26\x16\xc5\xd8\xd6\xf4\xb6\x2f\x09\x70\x93\xe2\x87\xfb\x27\xe1\ \xfd\xe5\xa3\xfe\x76\x2d\x32\x46\x7b\xf0\xbd\xaf\x56\xc7\xd8\x9d\ \x58\x01\xfc\xf6\x58\x00\x90\x9c\x9c\x6c\x58\x34\xc1\x2a\x9d\xb1\ \x43\x6c\x49\xb0\xba\x24\x10\x34\xe5\xc6\x00\x00\x11\x11\x11\x18\ \x33\x66\x8c\x55\x3b\x64\x09\xae\x8d\x0e\xc0\xa9\x7f\xc5\xc1\xc3\ \x45\xda\x7d\x9d\xa6\x55\x8b\xc7\xe2\x83\xb1\x6f\xdd\x14\x84\x5b\ \x28\x1a\x04\x0b\xad\x1a\x0e\x8d\x6d\x1a\x94\xcb\x95\xa8\x90\xab\ \x50\x21\x57\xa1\x5c\xae\x42\x55\xb3\x0a\x2d\x6a\xce\x2a\xf1\xd6\ \xf9\x58\x3b\x77\x38\x76\x3f\x30\x1e\x7e\x2e\x92\xee\xdf\x97\xaa\ \xef\x82\xef\x59\x93\xe9\xd3\xa7\x9b\x3c\x7e\xee\xdc\x39\xc3\x22\ \x09\xa5\x34\xcc\x58\xdd\xc1\x86\x2d\x59\xba\x77\x59\x8c\xe0\x33\ \x67\x88\x8c\x8c\xb4\xf9\xe8\x0c\x7a\xe2\x47\xfa\x60\xef\x9a\x18\ \x4c\xfb\xf4\x5c\x87\x3b\x0d\x34\x1c\x9e\x9c\x1b\x86\xd7\x97\x8f\ \xb1\x7a\xdc\x3e\x0d\x47\x41\x39\x8a\xa4\xc2\x46\xe4\x54\x34\xa3\ \xb0\xb2\x05\xf5\xf5\xad\x28\x6b\xd1\xa0\x51\xa5\x45\x99\x42\x03\ \x51\xbb\xef\x1f\xa5\x80\x93\x98\x20\xd4\x4d\x02\x2f\x99\x18\x21\ \x5e\x32\xf8\xfb\xbb\x62\x64\xa0\x3b\x12\x22\xbc\xe0\xef\xee\x04\ \xa9\x95\x3b\xbc\x20\x3a\x00\x27\xd6\x4d\xc6\xe8\xf7\x53\x01\x85\ \x5a\x67\x7c\xab\xd4\xe2\xe1\x69\x21\x78\x77\x45\xb4\xed\xf9\x93\ \x31\x20\x16\x8b\x91\x98\x98\x88\x13\x27\x4e\xf4\x58\xa7\xa2\xa2\ \xc2\xb0\xc8\x1d\x40\x3c\x80\x62\x2b\x76\xcd\x2e\xb0\x25\xc1\xea\ \x42\x52\x52\x92\xc9\xe3\xe3\xc7\xdb\xd7\xaf\x6c\xfc\x48\x1f\xa4\ \x3d\x31\x05\x31\xaf\x9e\x02\x38\x8a\x57\x97\x46\xe0\xb9\xeb\xa2\ \xac\x76\x3d\x15\x07\x1c\xcc\xaa\x46\x7a\x5e\x3d\x76\x5c\x6e\xc0\ \xb1\xdc\x46\x80\xe3\x74\xc6\xac\xa2\xf6\x2c\xd0\x7a\x07\x65\x23\ \x0a\x70\xbe\x0a\x7f\x27\x49\xa5\x14\xd0\x42\x67\xae\x31\xc4\x15\ \x0f\x44\x79\x23\x21\xc2\x1b\x33\xc7\x06\x62\x84\x95\x46\x86\x57\ \x0d\x71\x47\xd1\x93\x53\x31\xff\xe3\x54\xe4\x14\x36\x61\x75\x42\ \x88\xc5\xb3\xdb\xf4\x17\x31\x31\x31\x26\x8f\x67\x64\x64\xa0\xb1\ \xb1\x11\x5e\x5e\x5e\xfa\x22\x67\x38\xec\xb1\x00\xd8\x88\x60\x51\ \x4a\xbb\x39\x03\xf2\x4d\x09\xf9\x86\xd5\xb6\xc8\xb8\xa1\x1e\x38\ \xf9\xcf\x29\xa8\x6c\x52\xe2\xc6\x89\x43\x2c\x7e\xfe\x36\x2d\x45\ \xea\x95\x3a\x7c\x76\xbc\x04\xff\xcb\xa8\x69\x4f\x55\x0f\xdd\x08\ \xc5\x59\x04\xf3\x56\x00\x3a\xa9\x99\x8b\x18\x68\x56\xe1\xf3\x94\ \x4a\x7c\x7e\xa6\x12\xf8\x25\x07\x31\x43\xdc\xb0\x3e\x31\x0c\x33\ \x46\xfb\x61\xa4\xbf\x6b\xcf\xa7\x31\x83\x30\x1f\x67\x9c\x5a\x1f\ \x87\xcf\x8f\x16\xe1\xe9\x85\xec\xd1\x19\xda\xda\xda\x6c\x72\x14\ \xee\xe7\xe7\x67\xf2\x78\x6e\x6e\x2e\x9a\x9b\x9b\x3b\x0b\x16\x00\ \x0c\xb5\x6a\xa7\xec\x04\x9b\x10\x2c\x18\x4c\x07\x2b\x2a\x2a\x50\ \x5b\x5b\x6b\xb2\x81\x2d\xf8\x0f\x9e\x3d\x7b\x16\x11\x11\x11\xf0\ \xf6\x16\x6e\x82\x30\x2d\xd2\xf2\xb1\x9c\xea\x15\x6a\xec\x3c\x5f\ \x89\x6f\x8f\x17\xe3\x50\x71\x0b\x00\xaa\xb3\xb6\xb7\x86\x55\xbc\ \x7e\x84\x06\xdd\x65\xd2\x2a\x15\xf8\xc7\x8f\x59\xf0\xf2\x92\xe1\ \x1f\x31\x01\xb8\x2f\x31\x1c\xd1\x16\x0c\x69\xec\xe3\x2a\x35\x4b\ \xac\x5a\x5b\x5b\xb1\x7f\xff\x7e\xf8\xfb\xfb\x23\x2e\x2e\x0e\x62\ \xb1\xed\xf8\x5b\x46\x44\x98\x36\x72\x2d\x2a\x2a\x82\x42\xd1\x2d\ \x11\x47\xb0\xb1\xba\x83\x0d\x9b\x14\xac\xd2\xd2\x52\x68\xb5\xa6\ \x6d\x72\x5c\x5c\xac\x97\xf6\x5c\x08\x87\x0e\x1d\x42\x7e\x7e\x3e\ \x0a\x0a\x0a\xb0\x78\xf1\xe2\x7e\xfb\x25\xff\x70\x5f\x1e\x9e\x39\ \x58\x8c\x96\x86\x36\x9d\xff\xa2\xb4\x0f\xf3\xd4\x13\xb4\x27\xcf\ \x10\xa3\xb1\x4d\x83\xf7\x4f\x94\xe1\xfd\x53\xe5\xb8\x7f\x52\x00\ \x9e\x5c\x7a\x15\x46\xfa\xf5\xcf\x77\xa2\x56\xab\x71\xf0\xe0\x41\ \xd4\xd6\xd6\xa2\xba\xba\x1a\x4a\xa5\x12\x89\x89\x89\x10\x89\x6c\ \x63\x8f\xc9\x20\xdb\xb3\x51\x1a\x1a\x1a\x0c\x8b\x6c\x7b\x4b\xbc\ \x8f\xb0\x8d\x3b\xd8\xc9\xe1\x19\xd0\x09\x96\x29\xa6\x4c\x99\xd2\ \x6f\xc1\xfa\x94\x4a\x25\x76\xed\xda\x85\x82\x82\x02\xc8\x64\x32\ \x34\x37\x37\x63\xeb\xd6\xad\x86\x31\xb9\xad\xce\xd6\x94\x32\x90\ \x7f\x1f\xc2\xda\xdf\x73\xd1\xd2\xaa\x06\x5c\x24\xfd\x9b\x75\x87\ \x10\x5d\xb2\x52\x31\xc1\x17\xa9\x55\x88\x7c\xfa\x30\x1e\xd8\x74\ \x11\xc5\xf5\x7d\xfb\xbd\xa8\xd5\x6a\x6c\xdf\xbe\x1d\x35\x35\x35\ \x90\x48\x24\x90\xc9\x64\x28\x28\x28\xc0\xf6\xed\xdb\xa1\x56\xab\ \xfb\xb4\x2f\xa6\x18\x35\x6a\x94\xc9\xe3\x17\x2f\x5e\x34\x2c\xea\ \xff\x29\x85\x0d\x60\x2b\x82\xd5\xe5\xa7\xb8\xad\xad\xcd\x64\xe5\ \xf0\xf0\x70\x78\x7a\x5a\x2e\xdd\x96\x50\x34\x1a\x0d\xf6\xed\xdb\ \x87\xaa\xaa\xaa\x8e\x54\x62\x22\x91\x08\x1a\x8d\x06\xbb\x77\xef\ \x86\x5c\x2e\xb7\x7a\x1f\x8a\xeb\x5a\x31\xef\xbd\x64\x2c\xff\x2e\ \x03\x50\x6b\x6d\x2f\x87\xa1\x3e\x49\xaa\x87\x14\x5f\x24\x57\x60\ \xfc\x9b\x49\xf8\xfe\x64\x31\xd4\x96\x70\x74\xe6\x41\xa3\xd1\xe0\ \xf0\xe1\xc3\x68\x69\x69\xe9\x32\x05\x94\x48\x24\x90\xcb\xe5\xd8\ \xbb\x77\x2f\xef\xc8\xbd\xaf\xb8\xfa\xea\xab\x4d\x1e\x37\xe2\xe5\ \x61\x9d\xd0\xb1\x76\x46\xbf\x0b\x16\xa5\x34\x00\x40\x17\xf5\xa9\ \xa9\xa9\x31\xd9\x66\xe8\xd0\xa1\x70\x72\x72\xb2\x66\xb7\x8c\x72\ \xe0\xc0\x01\xd4\xd6\xd6\x76\x5b\x0f\x11\x89\x44\x90\xcb\xe5\x38\ \x74\xe8\x90\x55\x47\x5a\x3f\x9e\x2e\x45\xd4\x9b\x49\x38\x90\xd7\ \xa8\x13\x05\x5b\x12\x2a\x63\x48\x45\xa8\x57\x6a\xb1\xfa\xfb\x4c\ \x3c\xf0\x5d\x1a\xca\x1a\xad\x97\x44\x42\xab\xd5\xe2\xc4\x89\x13\ \x28\x29\x29\x31\xba\x5e\x25\x16\x8b\x51\x55\x55\xc5\x1b\x5f\xad\ \xaf\x18\x3e\x7c\xb8\xc9\xe3\x05\x05\x05\x7d\xd2\x0f\x7b\xa3\xdf\ \x05\x0b\x3a\x87\xe7\x2e\x2b\xd1\xa6\x92\xa5\x02\xe8\x97\xd1\x55\ \x4a\x4a\x0a\x4a\x4b\x4b\x7b\x5c\xbc\x15\x8b\xc5\x68\x68\x68\xc0\ \xfe\xfd\xfb\xc1\x71\x96\xcd\x49\xa5\xa2\xc0\xbd\xdf\xa6\xe1\x8e\ \xef\x32\xa0\x54\x69\xed\x2b\x8f\xa1\x88\x00\xae\x12\xfc\x37\xb5\ \x0a\x43\x5f\x3f\x85\x83\x39\xa6\x37\x53\xcc\x81\x52\x8a\x83\x07\ \x0f\x22\x2f\x2f\xcf\x64\x12\x5d\xa9\x54\x8a\xac\xac\x2c\x64\x67\ \x67\x5b\xbc\x0f\xac\xf0\x4d\x09\xab\xab\xab\xbb\x95\x51\x4a\x67\ \x58\xab\x3f\xf6\x82\x2d\x3c\xf9\x4e\x00\xba\x44\xa3\xe3\x7b\xa0\ \xfa\x7a\xfd\xaa\xa8\xa8\x08\xe9\xe9\xe9\x90\xc9\x4c\x07\xcd\x13\ \x8b\xc5\xa8\xab\xab\xc3\xee\xdd\xbb\xa1\x54\x5a\x66\x34\x51\x5c\ \xdf\x86\xc4\xb7\x4f\xe1\x9b\x94\x4a\xdb\x9b\xfe\xb1\x20\x13\x01\ \x4a\x0d\xe6\xbe\x9f\x8a\x2f\x8e\x76\x0b\xa1\x62\x36\x1c\xc7\x61\ \xef\xde\xbd\x28\x2b\x2b\x13\x94\xf1\x5b\x22\x91\x20\x35\x35\xd5\ \xa8\x20\xf4\x25\x06\xa1\x90\xbb\x61\xc4\x9f\x10\x00\x02\xac\xd2\ \x19\x3b\xc2\x16\x04\x2b\x00\x40\x17\xbb\x00\xbe\x69\xd5\x90\x21\ \x96\xb7\x61\xea\x89\x96\x96\x16\x9c\x39\x73\x46\xf0\xb6\xb8\x7e\ \xea\x71\xe4\xc8\x91\x5e\x8b\x56\x46\x59\x13\x6e\xf8\xf4\x2c\x4e\ \x97\x34\xeb\x5e\x78\x7b\x47\x44\x00\x27\x31\x1e\xf8\x25\x07\x2f\ \x6d\xcb\xe9\x75\xb4\x64\xb5\x5a\x8d\xa3\x47\x8f\xa2\xac\xac\x4c\ \xf0\xfd\x21\x84\x40\xab\xd5\xe2\xf8\xf1\xe3\xa0\x42\x23\x69\x58\ \x01\x37\x37\x37\x93\xc7\x5b\x5b\x5b\x8d\xad\xb7\x0d\x7a\xe3\x51\ \x5b\x78\x0b\xba\x98\x56\x70\x1c\xc7\x3b\x25\x74\x77\xef\xbb\xf5\ \xc7\xa4\xa4\x24\x34\x35\x35\x81\x30\xa4\xad\x92\x48\x24\x28\x29\ \x29\x11\x94\x40\xa3\x27\x2e\x14\xcb\x31\xf6\xbd\x14\x9c\xab\x68\ \xb1\xaf\x29\x20\x1f\x04\x80\x44\x84\x0d\xfb\x0a\xf1\xd0\xa6\x6e\ \x3b\x61\x4c\xb4\xb5\xb5\x31\x89\x95\x1e\x91\x48\x84\x86\x86\x06\ \x63\x3e\x7b\x7d\x06\xdf\x68\xbd\xa9\xa9\x09\x75\x75\x75\x86\xc5\ \xb6\x63\x4c\xd6\x4f\xd8\xc2\x9b\xd0\xc5\xa0\x8a\x52\x8a\x4b\x97\ \x2e\x99\x6c\x30\x6c\xd8\x30\xab\x76\x48\x4f\x56\x56\x16\x8a\x8b\ \x8b\x79\xd3\x8c\x19\xc2\x71\x1c\xdc\xdd\xdd\x05\x79\xe6\xf7\x44\ \x79\x43\x1b\xd0\xaa\xb1\x4e\x9a\x2c\x7d\x26\x68\x55\x7b\x26\x68\ \x85\x06\x68\x6e\xff\x6b\xd1\xe8\xae\xab\xec\x9c\xe9\xd9\xc2\x23\ \x91\x76\x53\xb1\x9c\xca\x16\xb4\xf6\x22\xbe\xbb\x87\x87\x07\x6e\ \xbc\xf1\x46\x10\x42\x98\x47\x4b\x52\xa9\x14\x69\x69\x69\xc6\x32\ \x2e\xdb\x04\x22\x91\xc8\x98\x10\x0f\x7a\x5b\x2c\x5b\x30\x1c\x65\ \x5e\x41\xb7\xf4\xa2\xb6\x31\x14\x0a\x05\xce\x9d\x3b\xc7\xfc\xeb\ \x4d\x29\x85\x44\x22\xc1\xec\xd9\xb3\x7b\xb5\x39\xb0\x70\x5c\x20\ \x76\xdc\x3b\x0e\x37\xfc\x94\x05\xaa\xd2\xf6\x5e\xb8\x38\xaa\x13\ \x20\x17\x09\xa6\x7a\x3b\xe3\xea\x10\x37\x8c\x0c\xf6\xc0\xd5\x43\ \xdc\xe0\xed\x22\xc1\xe8\x40\x37\x88\x08\x50\xd3\xa2\x46\x99\x5c\ \x89\xcb\xd5\x0a\xe4\x57\x2b\x90\x5d\xd0\x88\xf3\x0d\x2a\x94\xe8\ \x77\xf8\x2c\x11\xaf\x5e\xc5\xe1\xd6\x68\x3f\x7c\xfe\x8f\xf1\xbd\ \xce\x2b\xe8\xea\xea\x8a\x6b\xae\xb9\x06\x47\x8e\x1c\x01\xa5\x94\ \x69\x24\x2c\x12\x89\x70\xe6\xcc\x19\x2c\x5a\xb4\x48\xd0\xfa\x97\ \x25\x71\x76\x76\x86\xab\xab\xab\x31\x8b\x76\x00\x3a\x6f\x8f\x8a\ \x8a\x0a\xf8\xfa\xfa\x76\x2e\xee\xbb\xb5\x10\x1b\xc5\x16\x04\x8b\ \xf9\xe7\xbb\x2f\xd6\x1e\xce\x9e\x3d\x0b\x95\x4a\xc5\x3c\xba\xd2\ \x68\x34\x98\x39\x73\x26\x02\x02\x7a\xbf\x3e\xba\x74\xe2\x10\x24\ \x79\x3b\x63\xea\x7b\x29\x00\x28\xbb\x68\xe9\x93\xad\x52\x20\x22\ \xc8\x15\xcf\xcd\x0a\xc5\xe4\x08\x1f\x84\xf9\xbb\xc2\xa7\x87\x64\ \xab\x41\x3e\x2e\x88\x06\x30\xbf\x53\x59\x5e\x6d\x2b\xca\xaa\x5b\ \xf0\x4d\x72\x39\xfe\x7b\xb6\x52\x97\x17\x51\x4c\xcc\x33\x54\x55\ \x71\x58\x14\xe5\x85\xcf\xfe\x31\x1e\xde\x2e\x96\x79\xfc\xc2\xc2\ \xc2\x30\x71\xe2\x44\x24\x27\x27\x33\x09\x8f\x48\x24\x42\x7d\x7d\ \x3d\xb2\xb3\xb3\x31\x6e\x5c\xdf\x46\x2e\x75\x76\x76\x46\x60\x60\ \x60\x8f\xe6\x0b\xad\xad\xad\xc6\x22\x8f\x5a\xff\x97\xda\xc6\xb1\ \x05\xc1\xea\x82\x10\x31\xe2\xf3\xc5\xea\x2d\xa5\xa5\xa5\xb8\x72\ \xe5\x8a\x59\x62\x35\x61\xc2\x04\x5e\x1b\x1b\x16\xe2\x46\x78\x23\ \xed\xa9\xa9\x88\x79\x3b\x59\x37\x3d\x13\x22\x12\x14\xba\xd1\x14\ \x80\xa7\x66\x0d\xc5\x6d\xd3\xc2\x30\x31\xd4\xfc\x9d\xd5\x08\x3f\ \x17\x44\xf8\xb9\x60\xc6\x68\x7f\x7c\xb8\x32\x1a\xbf\x27\x97\xe2\ \xfd\x63\x25\x48\xc9\x93\xeb\x76\x2e\x85\x0a\x97\x8a\xc3\x9c\x11\ \x9e\xd8\xb1\x2e\xce\xe2\x0f\x5e\x74\x74\x34\xda\xda\xda\x70\xe1\ \xc2\x05\xde\xf5\xa1\xce\x88\x44\x22\x9c\x3d\x7b\x16\x91\x91\x91\ \x7d\xee\xee\x65\xea\x59\x67\x19\x29\x0e\x26\x6c\x61\x0d\x8b\x19\ \xbe\x1d\x96\xde\xc0\x71\x1c\x92\x93\x93\x99\x1f\x18\x8d\x46\x83\ \xa8\xa8\x28\x4c\x9c\x38\xd1\xe2\x7d\x1a\x37\xd4\x03\xa7\xd7\xc5\ \xc2\xdd\xd5\x48\x50\x3b\x43\xd4\x1c\x20\x21\x78\x7c\x46\x08\x8a\ \x5e\x99\x89\x37\x6f\xb9\xba\x57\x62\x65\x88\x9b\x44\x84\x55\x09\ \x61\x48\x7a\x32\x1e\x5b\xee\x8f\xc1\xac\xa1\xee\xed\x51\x21\x78\ \xfa\xa5\xe2\x70\xf3\x18\x1f\x6c\x7f\x6c\xb2\xd5\x7e\x25\x27\x4d\ \x9a\x84\xf0\xf0\x70\x26\x6b\x76\xfd\x7d\xb6\x15\x83\x52\x07\xa6\ \xb1\x4b\xc1\xb2\xe6\x94\x30\x27\x27\x07\x72\xb9\x9c\xc9\x51\x96\ \xe3\x38\xf8\xfb\xfb\x63\xca\x94\x29\x56\xeb\x57\x5c\x84\x37\xf6\ \xae\x19\x0f\x48\xc5\xc6\xc3\x07\x53\x0a\x28\x39\x2c\x19\xe5\x83\ \xb4\x75\x93\xf1\xde\x8a\x68\x84\x59\x31\x8a\xa9\x98\x10\xdc\x12\ \x1b\x8c\x9d\xeb\xa6\xe0\xd3\x9b\x47\x01\x62\x51\xcf\x09\x52\x55\ \x1c\x96\x8d\xf1\xc1\xe7\x77\x8f\x87\xbb\xcc\x7a\x1b\x5d\x84\x10\ \x24\x26\x26\xc2\xc5\xc5\x85\xe9\x19\x11\x8b\xc5\xc8\xcb\xcb\xe3\ \xf5\xb0\x70\xd0\xff\xd8\xa5\x60\x59\x2b\x54\x88\x56\xab\x45\x4a\ \x4a\x0a\x93\x58\x51\x4a\xc1\x71\x1c\x12\x13\x13\x99\xa6\x22\xe6\ \x30\x6d\xa4\x0f\x2e\x3c\x3e\x19\x50\x1a\xe4\x3d\x6c\x4f\x01\xff\ \xf5\xed\xa3\xf1\xc7\x63\x93\x31\x2e\xb4\xef\x3c\x01\x3c\x9c\xc4\ \x78\xf0\x9a\x61\x28\x79\x61\x3a\xae\x1f\xe5\xa3\xdb\x71\xec\xac\ \x15\x2a\x0e\x73\x23\x3c\xb1\xe9\xfe\x49\xf0\xed\x83\xdc\x8a\x32\ \x99\x0c\x33\x66\xb0\x1b\x84\x8b\x44\xa2\x7e\x35\x73\x70\x20\x0c\ \x9b\x13\x2c\x21\x53\xb1\xb4\xb4\x34\xab\x5c\x3b\x2d\x2d\x0d\x5a\ \xad\x96\x69\x3a\xc8\x71\x1c\xa6\x4f\x9f\xde\x67\xee\x42\x31\xa1\ \x1e\x38\xfb\xcc\x54\xc0\xa9\x7d\x7a\xa8\xd0\xe0\xd6\xb1\xfe\x28\ \x7f\x79\x26\xee\x99\xd1\x7f\x61\xbf\x87\x7a\x39\x61\xfb\xa3\x93\ \xf1\xd3\x3d\xe3\x74\xbb\x88\x5a\xdd\xae\xe4\xf5\x57\x79\xe3\xaf\ \xc7\xe3\xfa\x34\x63\x75\x48\x48\x08\xc6\x8e\x1d\xcb\x14\x9d\x41\ \x24\x12\xa1\xb4\xb4\x14\xf9\xf9\xf9\x56\xec\x99\x83\xde\x62\x0b\ \x82\x65\x13\xab\x8b\x0a\x85\x02\x97\x2e\x5d\x62\x1a\xbd\x69\xb5\ \x5a\x84\x86\x86\x22\x2a\xca\xbc\x50\xc7\x1a\x8d\x06\x97\x2f\x5f\ \x66\x9e\xe2\x4e\x0c\xf7\xc2\x89\xfb\x62\x20\x75\x95\xe0\x8d\x25\ \x23\xf0\xfd\x9a\x09\x18\xe2\xd9\xf7\xce\xe0\xc6\x58\x11\x17\x82\ \xec\x27\xa7\x22\xcc\x4b\x86\x69\x43\xdd\xf1\xc9\x5d\x31\x90\x99\ \x61\x92\x91\x9e\x9e\x8e\xc3\x87\x0f\x1b\xdb\x29\x13\x44\x74\x74\ \x34\xfc\xfc\xfc\x98\x4c\x60\x44\x22\x91\xd5\x7e\x0c\x7b\xba\x5e\ \x4f\xf4\x85\xe9\x8e\x3d\x62\x0b\xbb\x84\xcc\x41\x8a\xac\xb1\x83\ \x72\xe9\xd2\x25\x28\x14\x0a\xc1\xdb\xe2\x94\x52\xc8\x64\x32\xc4\ \xc6\xc6\x9a\x7d\xcd\xc3\x87\x0f\xa3\xb0\xb0\x10\x72\xb9\x9c\xf9\ \x3c\x09\x91\xbe\xb8\xf4\xaf\xa9\x18\xee\xd7\xbf\x81\x0c\x8d\x71\ \xd5\x10\x77\xa4\xfc\x3b\x1e\x6a\x8e\x62\xa8\x17\xbb\x90\x66\x66\ \x66\x22\x25\x25\x05\x1c\xc7\xc1\xc5\xc5\x05\x53\xa7\x4e\x65\x3e\ \x87\xfe\xde\xec\xde\xbd\x5b\x70\x64\x0f\x91\x48\x84\xc6\xc6\x46\ \x94\x97\x97\x23\x38\xd8\xba\x01\x3e\x5b\x5b\x5b\x4d\x8e\xe6\x3c\ \x3d\x3d\x8d\xf5\xdb\x16\x06\x18\xfd\x8a\x2d\x7c\x01\xcc\xee\xfb\ \x46\xa2\x31\xf6\x8a\xb6\xb6\x36\x5c\xbe\x7c\x99\xc9\x8c\x41\xa3\ \xd1\x60\xdc\xb8\x71\x4c\xe1\x91\x3b\x73\xfa\xf4\x69\x14\x17\x17\ \xc3\xc9\xc9\x09\x69\x69\x69\x38\x79\xf2\x24\xf3\x39\x6c\x51\xac\ \xf4\x04\x7a\xc8\xcc\x12\xab\xec\xec\x6c\x24\x27\x27\x77\x04\xdf\ \xcb\xca\xca\x32\x7b\x6d\x69\xe8\xd0\xa1\x18\x36\x6c\x18\x73\x0c\ \xac\xf3\xe7\xcf\x9b\x75\x3d\x16\x54\x2a\x95\xc9\xe3\xfe\xfe\xfe\ \xf0\xf7\xf7\x37\x2c\xae\xb2\x5a\x87\xec\x04\x5b\x10\xac\x2e\x7d\ \x10\x89\x44\xb8\xe6\x9a\x6b\x4c\x36\x30\x92\x06\xa9\x57\x14\x17\ \x17\xa3\xa5\xa5\x45\xf0\xc8\x8d\x52\x0a\x2f\x2f\x2f\xb3\xf3\x22\ \x66\x67\x67\x23\x3b\x3b\xbb\x63\x34\x27\x95\x4a\x91\x93\x93\x83\ \xd4\xd4\x54\xb3\xce\x37\x50\xc8\xcb\xcb\xeb\xe6\x68\x2e\x91\x48\ \x90\x96\x96\xc6\x9b\x94\xa4\x27\xa6\x4c\x99\x02\xa9\x54\x2a\x78\ \xda\x2d\x12\x89\x50\x5e\x5e\xde\xa3\x05\xba\xa5\xe0\x9b\xf2\xf5\ \xd0\xdf\x02\x6b\xf4\xc5\x9e\xb0\x05\xc1\x92\x03\xe8\xb2\x50\xc1\ \x37\x2d\x6b\x6e\x6e\xb6\x68\x07\x32\x32\x32\x98\x76\x06\xb5\x5a\ \x2d\x62\x62\x62\xcc\xda\xad\x2c\x2b\x2b\x33\xba\x13\x29\x95\x4a\ \x71\xf1\xe2\x45\x9c\x3d\x7b\x96\xf9\x9c\x03\x81\xa2\xa2\x22\x1c\ \x3f\x7e\x1c\x40\xf7\x29\xbf\x48\x24\xc2\xc9\x93\x27\x8d\x39\x03\ \xf3\xe2\xe5\xe5\x85\xe1\xc3\x87\x33\xaf\x65\xe5\xe4\xe4\x30\x5f\ \x8b\x05\xbe\x0d\x01\x1f\x1f\x1f\xde\xec\x3a\x83\x11\x5b\x10\xac\ \x66\x00\x4d\xfa\x0f\x84\x10\x44\x47\x47\x9b\x6c\x60\xc9\x58\x46\ \x75\x75\x75\xa8\xaf\xaf\x17\x2c\x58\xfa\xd1\x95\x39\x59\x7b\x94\ \x4a\x25\xf6\xed\xdb\xd7\xa3\xcf\x9b\x44\x22\xc1\x85\x0b\x17\xfa\ \x74\xe1\xd7\x16\xb8\x72\xe5\x0a\x0e\x1f\x3e\x0c\x42\x88\xd1\xef\ \x45\xef\xdc\x7c\xe4\xc8\x11\xde\xa9\x94\x31\xc6\x8d\x1b\x07\x99\ \x4c\x26\x78\x94\x25\x16\x8b\x51\x58\x58\x68\xd6\xb5\x84\xc2\x37\ \x4b\xe8\xe1\xc7\xb0\x5b\x0e\xfb\xc1\x86\x2d\x08\x56\x05\x80\x2e\ \x3f\x9d\x81\x81\x81\x26\x1b\xf4\x10\xdc\xcc\x2c\xae\x5c\xb9\xc2\ \x3c\xba\xe2\x13\xd4\x9e\xd0\x87\x9b\x31\x35\xf5\x94\x4a\xa5\x38\ \x7b\xf6\x2c\xb2\xb2\xb2\xcc\xba\x86\xbd\x91\x9b\x9b\x8b\x93\x27\ \x4f\xf6\x28\x56\x7a\xf4\x0b\xe2\xc9\xc9\xec\xef\xac\x87\x87\x07\ \xc2\xc3\xc3\x05\x8f\xb2\x08\x21\xa8\xaf\xaf\xb7\x6a\x90\x3f\xbe\ \x29\x6e\x0f\x8b\xfe\x96\x9d\x5a\xd8\x21\xb6\x20\x58\x0a\x00\x5d\ \x22\xdd\x8d\x18\x31\xc2\x64\x03\x73\xa6\x06\xc6\xd0\x68\x34\xc8\ \xcb\xcb\x63\x1a\x5d\x79\x78\x78\x20\x2c\x8c\xdd\xde\xe9\xf2\xe5\ \xcb\x82\x63\x37\x89\xc5\x62\x24\x27\x27\xf3\x86\xd9\xb1\x24\x5c\ \xa7\xbf\xbe\xa2\xa8\xa8\xa8\x23\x65\xbb\x90\xf5\x43\x89\x44\x82\ \xfc\xfc\x7c\x54\x56\x56\x32\x5f\x2b\x2a\x2a\x8a\x69\xf1\x5d\x24\ \x12\xe1\xf2\xe5\xcb\xcc\xd7\x11\x4a\x6e\x6e\xae\xc9\xe3\x46\x16\ \xdc\x41\x08\x61\xdf\x99\x19\x60\xf4\xbb\x59\x03\x21\xa4\x81\x52\ \xda\x65\xdb\x8f\x6f\x1b\xba\xa8\xa8\xc8\x30\x95\xb7\x59\xd4\xd4\ \xd4\xa0\xa5\xa5\x45\xb0\x85\x3a\xc7\x71\x08\x0e\x0e\x66\x76\x92\ \x55\x2a\x95\x48\x4b\x4b\x63\x8a\x8a\x29\x12\x89\x70\xea\xd4\x29\ \x68\x34\x1a\xde\x0c\x2b\xbd\x61\x5f\x4e\x2d\xb2\xf2\xea\x90\x5d\ \xd5\xda\x9e\x99\x9e\x22\xd8\x4d\x8a\xd1\xc3\xbd\x31\x3b\x3a\x10\ \x81\xae\xd6\x79\x44\x5a\x5a\x5a\x70\xe8\xd0\x21\x88\x44\x22\x26\ \x33\x15\x4a\x29\x92\x92\x92\x70\xc3\x0d\x37\x30\x5d\x2f\x30\x30\ \x10\xde\xde\xde\x82\x37\x57\x44\x22\x11\x6a\x6a\x6a\xa0\x52\xa9\ \xac\xe2\xc1\xc0\x27\x86\xa1\xa1\xa1\x16\xbf\xe6\x40\xa0\xdf\x05\ \xab\x9d\x2e\x8b\x05\xc6\x7e\x5d\x3a\xa3\xf7\xf7\xeb\xad\x60\x15\ \x16\x16\x32\x2d\x9c\x53\x4a\xcd\x9a\x0e\x9e\x3d\x7b\x16\x4d\x4d\ \x4d\xcc\xd1\x1f\xc4\x62\x31\x5c\x5d\x2d\x9b\xfe\x1d\xd0\xa5\xb4\ \xdf\x74\xbc\x08\xf7\xef\xbc\x02\xb4\xa8\x75\x7e\x80\x9d\xf3\xaf\ \x52\x00\x87\x4a\x00\x0d\x87\x75\xb3\xc3\xf0\xc4\x82\x08\x0c\xf3\ \xb5\xac\x09\x85\x9b\x9b\x1b\xe6\xcc\x99\x83\xfd\xfb\xf7\x33\x87\ \x84\xa9\xa9\xa9\x41\x71\x71\x31\xf3\x48\x77\xcc\x98\x31\x48\x4e\ \x4e\x16\x74\xcf\x09\x21\x50\x28\x14\xa8\xad\xad\xb5\x8a\x4d\x16\ \x9f\xa9\x86\x91\x70\x37\xf5\x16\xef\x84\x1d\x62\x0b\x53\x42\x00\ \xe8\x32\x3e\xe6\x5b\xc3\x2a\x29\x29\xe1\xcd\x5d\xc8\x07\xc7\x71\ \xa8\xab\xab\x13\xfc\xeb\xce\x71\x1c\x42\x42\x42\x98\x5d\x70\x14\ \x0a\x05\xae\x5c\xb9\xc2\xbc\xa3\xc8\x71\x1c\xe2\xe2\xe2\x2c\x1a\ \xaa\x06\x00\xf2\x6b\x14\xb8\xf1\xc3\x33\xb8\xff\xe7\x1c\x40\xab\ \x0b\xe8\x07\x59\x7b\x5a\x7b\x89\xe8\xef\x14\xf7\xce\x62\xc0\x5d\ \x8a\xf7\x8f\x97\x62\xda\xc6\x33\xd8\x76\xd6\xf2\x91\x39\xc3\xc2\ \xc2\x10\x1b\x1b\xcb\x6c\x27\x25\x95\x4a\x91\x9e\x9e\xce\x6c\x0d\ \x3e\x7c\xf8\x70\x48\x24\x12\xc1\x8b\xef\x1c\xc7\x59\xdc\x84\x06\ \xd0\xed\x72\xf3\x39\x5a\x5f\x75\xd5\x55\x86\x45\xdd\x12\x15\x0e\ \x46\x6c\x45\xb0\x52\x3a\x7f\x18\x31\x62\x04\xef\xe8\xa9\xb7\x0b\ \xa2\xcd\xcd\xcd\x68\x6c\x6c\x14\x2c\x58\x5a\xad\x16\x23\x46\x8c\ \x60\xb6\xb2\xcf\xc9\xc9\x61\xf6\x4f\xd4\x68\x34\x18\x3d\x7a\x34\ \x6f\x2a\x28\x56\xb2\xca\x9b\x31\xfd\x83\x54\xec\xb9\xd2\xa8\x13\ \x24\x21\x7d\x72\x12\xa3\xbc\x59\x85\x9b\xbe\xcd\xc0\xce\xf3\x96\ \x7f\x79\x63\x62\x62\x30\x74\xe8\x50\xe6\xf5\xa5\x8a\x8a\x0a\xe6\ \xb5\x2c\x17\x17\x17\x04\x06\x06\x32\xd9\x64\x95\x94\x94\x30\x5d\ \x43\x08\x42\xfc\x15\x8d\x2c\x3b\x14\x5b\xbc\x23\x76\x88\xad\x08\ \xd6\xe9\xce\x1f\x64\x32\x19\x42\x42\x42\x4c\x36\x30\x67\xb7\xa8\ \x33\x0d\x0d\x0d\x50\x28\x14\x4c\x23\x2c\xd6\xc0\x81\x5a\xad\x16\ \x59\x59\x59\xcc\xa1\x6a\xfc\xfc\xfc\xcc\x72\x47\x31\x45\x93\x8a\ \x43\xc2\xc7\x67\x75\xb1\xe2\x59\x1d\x91\x45\xba\xe8\xa2\xd7\x7f\ \x78\x0e\xa7\xf3\x2d\xeb\x65\x00\x00\x89\x89\x89\xf0\xf4\xf4\x64\ \x0e\x09\x93\x9e\x9e\xce\x7c\xad\xd1\xa3\x47\x0b\x1e\x99\x89\x44\ \x22\xab\xec\x14\x16\x17\x9b\xd6\x9e\x91\x23\x47\x1a\x13\xac\x02\ \x8b\x77\xc4\x0e\xb1\x09\xc1\x22\x84\x74\xf3\x85\xe0\x0b\x59\xdb\ \x5b\xc1\xea\x29\x43\xb0\x31\x38\x8e\xc3\xd0\xa1\x43\x99\xa7\x75\ \xf9\xf9\xf9\x50\x2a\x95\x4c\x16\xf4\xe6\x86\x47\xe1\xe3\xd5\xed\ \x39\x68\x68\x68\xd3\x4d\xf9\xcc\x81\x00\xf0\x90\xe2\xae\x4d\xe9\ \xa8\x57\x30\xbb\x7f\x9a\x44\x26\x93\x21\x2e\x2e\x8e\xc9\xd1\x99\ \x10\x82\xea\xea\x6a\x66\x37\x2d\x1f\x1f\x1f\xb8\xb9\xb9\x31\x5b\ \xbe\x5b\x92\xb2\xb2\x32\x93\xc7\x63\x63\x63\x8d\x19\x8d\x5a\x3e\ \x03\xad\x1d\x62\x13\x82\xd5\x4e\x17\x5b\x05\xbe\x97\xb6\xb7\x96\ \xc8\xe5\xe5\xe5\x82\x47\x3e\x1c\xc7\x99\x95\xa9\x27\x3f\x3f\x9f\ \x39\xfa\xc3\xe8\xd1\xa3\xe1\xe3\xe3\xc3\x5f\x99\x81\xc2\xda\x56\ \xbc\x7d\xa4\x44\x17\xfc\xaf\x37\x88\x08\x2e\x55\x28\xb0\xed\xac\ \xe5\xa7\x86\x7a\xbf\x3f\x16\x5b\x29\x95\x4a\x85\xa2\x22\xb6\xa4\ \xac\xee\xee\xee\xf0\xf0\xf0\x60\x1a\xcd\x55\x55\x59\xd6\x85\x8f\ \xcf\x6f\x74\xd8\xb0\x61\x86\x3b\xe5\x0a\x00\xd6\x77\x70\xb4\x03\ \x6c\x49\xb0\x32\x3b\x7f\xe0\x9b\x12\xe5\xe7\xe7\x9b\x1d\xbb\x48\ \xa1\x50\x30\x25\x39\x95\x48\x24\xcc\x6e\x12\x72\xb9\x1c\xd5\xd5\ \xd5\x4c\xa3\x2b\x0f\x0f\x0f\xab\x98\x30\x7c\x7f\xb2\x58\x17\x91\ \xd4\x12\x41\x2e\xa4\x22\x7c\x7d\xac\x18\x2a\x63\x51\x4f\x7b\xc9\ \x84\x09\x13\x98\xa7\x85\x7c\xf6\x4c\xc6\xf0\xf7\xf7\x67\x1a\x61\ \xd5\xd6\x5a\x6e\x70\xa3\xd1\x68\xb0\x77\xef\x5e\x93\x75\x8c\xec\ \x7e\x2a\x00\x0c\x4e\x9f\x2d\x03\x6c\x49\xb0\xba\x3c\x79\xde\xde\ \xde\x70\x76\xee\x39\xc4\x6f\x7d\x7d\x7d\x8f\x19\x47\xf8\xa8\xaf\ \xaf\x87\x46\xa3\x11\x24\x26\x94\x52\x38\x39\x39\x31\xef\x0e\x56\ \x57\x57\x33\x4d\x07\xf5\xa3\x2b\x4b\xdb\xfc\x28\xd4\x1c\x92\x2e\ \xd7\x9b\x3f\x15\x34\x44\x44\x70\xa2\x4e\x89\xac\xb2\x26\xfe\xba\ \x8c\xf8\xfa\xfa\x22\x20\x20\x80\x69\x94\xd5\xd4\xd4\xc4\xec\xa8\ \xec\xef\xef\xcf\x74\x8d\xba\xba\x3a\xa6\x60\x80\xa6\x68\x68\x68\ \x40\x69\x69\xa9\xc9\x3a\x93\x26\x4d\x32\x2c\x92\x13\x42\x4c\xcf\ \x23\x07\x09\xb6\x24\x58\x05\x9d\x3f\x04\x07\x07\x63\xfa\xf4\xe9\ \x26\x1b\x64\x67\x67\x9b\x75\xa1\xfa\xfa\x7a\xa6\x2d\x71\x27\x27\ \x27\x93\xe2\x69\x8c\xa2\xa2\x22\x66\x1b\x2f\x4b\xef\x0a\x02\x40\ \x5d\x8b\x1a\x97\xe4\x6a\xcb\x85\x49\x24\x00\x14\x1a\xc8\x9b\x84\ \x8f\x50\x59\x88\x8e\x8e\x66\x0e\x68\xc8\x6a\x7a\x10\x10\x10\x20\ \xf8\x1a\x84\x10\xc8\xe5\x72\xb3\x03\x09\x1a\xa2\x77\xf0\x36\xc5\ \x84\x09\x13\x0c\x8b\x1c\xd3\xc1\x76\x6c\x49\xb0\x8e\x02\xe8\x30\ \xae\xf2\xf0\xf0\xe0\x75\xd1\xd9\xb3\x67\x8f\x59\x17\xaa\xad\xad\ \x65\x9a\xaa\xb9\xbb\xbb\x33\x5f\xa3\xa6\xa6\x86\x69\x74\x35\x6c\ \xd8\x30\xab\x24\xf3\x6c\x69\x53\x23\xb7\x49\x25\xcc\x84\x41\x28\ \x1c\x07\xae\x17\x19\x9b\x4d\x11\x18\x18\xc8\xb4\x28\x0e\xb0\xaf\ \x31\x49\xa5\x52\xe6\x44\x15\x4d\x4d\x96\x19\x51\xf2\xc5\xda\x1a\ \x3b\x76\xac\xb1\x1f\xc7\x53\x16\xb9\xf8\x00\xc0\x66\x04\x8b\x10\ \x72\x08\x06\xd1\x47\xf9\xa2\x70\x6e\xdf\xbe\x9d\xd9\xe8\x10\xd0\ \xad\x2f\xb1\x98\x33\xb0\xae\x5f\xd5\xd5\xd5\x41\xa5\x52\x31\xd9\ \x5e\x99\x1b\x66\x79\xa0\xe1\xe2\xe2\x82\x21\x43\x86\x30\x4d\xd9\ \x6a\x6b\x6b\x99\xc3\xc7\xb0\xa4\x8a\x13\x89\x44\x16\xf1\x5f\x6d\ \x6e\x6e\xe6\x4d\x27\xb6\x62\xc5\x0a\x63\x23\xf3\x8c\x5e\x5f\x7c\ \x80\x60\x33\x82\xd5\x4e\x17\x7f\x85\xb9\x73\xe7\xf2\x36\x30\x27\ \x52\x67\x6b\x6b\x2b\x73\xb0\x3e\x16\x9a\x9a\x9a\x04\x4f\x21\xf4\ \x6b\x64\xd6\x8a\x7d\xe4\xe6\x2c\x45\xa4\x87\x8c\x3f\x6f\x20\x0b\ \x22\x02\x62\x46\x9c\x76\xa1\x84\x85\x85\x31\x09\x96\x5c\x2e\x67\ \x12\x2c\xbd\xcb\x13\xcb\x08\xcb\x12\xa9\xe5\x6a\x6b\x6b\xf1\xd7\ \x5f\x7f\x99\xac\x63\x24\x28\x64\x11\x80\xbe\xf3\x82\xb7\x71\x6c\ \x4d\xb0\xba\x0c\x7d\x83\x83\x83\x79\xb7\xf8\xcd\xb1\xc7\x62\x75\ \xb6\xf5\xf0\x60\x4b\x44\x5a\x57\x57\x27\xf8\x01\xa7\x94\xc2\xd3\ \xd3\xd3\x2a\x3e\x83\x00\xe0\xeb\x26\xc5\x55\x5e\xd2\xae\xa9\xb7\ \x7a\x03\x05\xe0\x26\x85\xb7\xb7\xf5\xc2\x33\x07\x06\x06\x0a\xf6\ \xbb\xd4\xfb\xfc\xb1\xec\xfa\x12\x42\x98\xe2\x63\x11\x42\x2c\x12\ \x34\x52\x48\x70\x46\x23\xbe\xaa\xa5\x84\x10\xf3\xc2\xad\x0e\x40\ \x6c\x4d\xb0\x2e\x74\xfe\xe0\xe6\xe6\x86\xdb\x6f\xbf\xdd\x64\x83\ \xa3\x47\x8f\xa2\xb5\xb5\x95\xe9\x22\x2c\xbb\x77\x52\xa9\x94\x79\ \x6d\xa9\xb1\xb1\x91\x29\x64\x4d\x50\x50\x10\xd3\xf9\x59\x70\x95\ \x8a\x30\x71\x98\x17\x7f\xc6\x68\xa1\x70\x14\x89\xbe\x4e\xb8\x3a\ \xc4\x72\xd9\xa4\x0d\x91\x4a\xa5\xf0\xf2\xf2\x62\x32\x3d\x60\x35\ \x20\x65\x5d\x97\xb4\xc4\x08\x6b\xf3\xe6\xcd\x26\x8f\x87\x86\x86\ \x1a\xf3\x21\x4c\xea\xf5\x85\x07\x10\xb6\x26\x58\x27\x00\x14\xea\ \x3f\x10\x42\x78\xed\xb1\x76\xec\xd8\xc1\xec\x53\x26\xd4\x71\x9a\ \x52\x0a\x89\x44\xc2\xe4\x5a\x03\x80\xc9\x47\x91\xe3\x38\x04\x04\ \x04\x30\x9d\x9f\x95\xbb\x13\xc3\x8d\x67\x8b\x36\x07\x95\x16\xb7\ \xc4\x85\x40\x62\xc5\xe4\x6c\x12\x89\x84\x49\xb0\xcc\x19\x01\xb1\ \x8c\xb0\x2c\x81\x5c\x2e\xe7\x1d\x61\xad\x5a\xb5\xca\x58\xf1\xd7\ \x56\xe9\x90\x9d\x62\x53\x82\x45\x08\x29\x02\xd0\xc5\x0f\x62\xda\ \xb4\x69\xbc\xed\xf6\xed\xdb\x67\xad\x2e\x99\x25\x58\x2c\x91\x24\ \x08\x21\xcc\x53\x4e\x56\x22\xfc\x5d\xb1\x76\x7a\x88\x2e\x43\x74\ \x6f\xe0\x28\xa2\x86\xb8\xe1\xf6\xa9\xa6\xfd\x3c\x2d\x01\xeb\x2e\ \x5e\x4b\x4b\x0b\xd3\xf9\x85\xa6\xfe\xb2\x14\x67\xce\x9c\xe1\x35\ \x72\xbd\xee\xba\xeb\x0c\x8b\xe4\x84\x10\xc7\x82\x7b\x27\x6c\x4a\ \xb0\xda\xf9\xa5\xf3\x07\x21\xbb\x67\xdb\xb6\x6d\xb3\x5a\x67\x64\ \x32\x19\xb3\x0f\xa1\xd0\x5d\x48\xfd\x82\xbb\x39\xc9\x2c\x58\x79\ \x79\xf9\x68\x5d\xdc\xab\xde\x4c\x0d\x1b\x55\xf8\xf2\xf6\x31\xf0\ \x73\xb3\x7c\x40\x3b\x43\x9c\x9c\x9c\x98\x46\x58\x7d\x39\x5a\x32\ \x07\x3e\xeb\xf6\x51\xa3\x46\x19\x73\xff\x3a\x61\xb5\x0e\xd9\x29\ \xb6\x28\x58\xff\x33\x2c\x78\xe7\x9d\x77\x4c\x36\xf8\xeb\xaf\xbf\ \x90\x91\x61\x9d\x1f\x22\x73\x5e\x04\xd6\x45\xfd\xbe\xc0\xcb\x59\ \x82\xfc\x17\x12\x74\xb9\x02\x59\x47\x5a\x1c\x05\xda\xb4\xf8\xf2\ \x9e\xb1\x98\x35\xaa\x6f\x32\xb9\xb0\x46\x75\xb5\x75\xde\x7e\xfb\ \x6d\x93\xc7\x13\x13\x13\x8d\x45\x19\x3d\x6a\xb5\x0e\xd9\x29\x36\ \x27\x58\x84\x90\x2a\x18\x58\xf6\xce\x9e\x3d\x9b\xb7\x5d\x52\x92\ \x63\x6d\x92\x8f\xe1\x7e\x2e\x38\xf4\xc8\x24\x24\x84\x79\x00\x6d\ \x5a\x7e\x53\x07\x0a\x40\xcd\xc1\xc5\x49\x82\x1f\xee\xba\x1a\x6b\ \x66\x86\xf7\x49\x3f\x01\x98\x65\x5f\x67\xab\xf0\x8d\xae\x00\x60\ \xc9\x92\x25\x86\x45\x6d\x00\x7e\xb0\x46\x7f\xec\x19\x9b\x13\xac\ \x76\xba\xa8\xcf\xb8\x71\xe3\x90\x90\x90\x60\xb2\xc1\x8b\x2f\xbe\ \x68\xd5\x0e\x59\x0b\xd6\x80\x80\xbd\x25\x2a\xc8\x0d\xbb\xd6\x4d\ \xc1\xeb\x4b\x22\x74\xd6\xef\x2a\x4e\xf7\xa7\xe1\x74\xd3\x45\x2d\ \xd5\x8d\xc0\xda\xcb\x96\x45\xfb\xe1\xc2\xfa\x29\x58\x19\xdf\xb7\ \x31\xc6\x59\x12\xdb\x02\x7d\x37\x52\x35\x87\x3f\xfe\xf8\x83\xb7\ \x4e\x62\x62\xa2\x61\x51\x16\x21\xc4\x11\xb4\xcf\x00\x5b\x89\xe9\ \x6e\xc8\x07\x00\x1e\xd4\x7f\x90\xc9\x64\x58\xb0\x60\x81\x49\x23\ \xd1\xb2\xb2\x32\x9c\x3d\x7b\xd6\x98\xe3\x68\xaf\x30\x47\x50\x58\ \x92\x4d\x70\x1c\xd7\xe7\x2f\x9b\xa7\x93\x18\xcf\x2c\x89\xc4\xfa\ \x45\x23\xb1\xf7\x62\x15\xb2\x0a\x1b\x90\x54\xda\x82\x7a\xa5\x16\ \x1a\x8e\x62\x56\x98\x3b\x46\x87\x78\x20\xee\x2a\x3f\x8c\xf2\xb7\ \x8e\x7d\x18\x1f\x2c\xce\xc6\xfa\xdd\x5c\x5b\xa4\xbc\xbc\x1c\x1f\ \x7e\xf8\xa1\xc9\x3a\x8f\x3c\xf2\x88\x31\x7b\xc3\x5f\xad\xd6\x29\ \x3b\xc6\x26\xef\x32\x21\x24\x8b\x52\x7a\x05\xc0\x48\x7d\xd9\x6d\ \xb7\xdd\x86\xff\xfb\xbf\xff\x33\xd9\x6e\xdb\xb6\x6d\x82\x04\x8b\ \x65\x91\x5b\xad\x56\x33\xc7\x0e\x77\x73\x73\x13\x6c\xeb\xa5\x54\ \x2a\xad\x9a\xb0\xd3\x14\x4e\x22\x82\xa5\xe3\x83\xb0\x74\x7c\x10\ \x38\xe8\x66\x88\x94\x52\x48\xac\x68\xc5\x2e\x04\x4a\x29\xd3\x08\ \xcb\x1c\x7f\x4f\xd6\x1f\x22\x73\x47\xc2\xbf\xff\xfe\x3b\x6f\x9d\ \xeb\xae\xbb\xce\xf0\xfc\x75\x00\x0e\x98\x75\xc1\x01\x8e\xad\x4e\ \x09\x01\x60\x7b\xe7\x0f\x61\x61\x61\x58\xbc\x78\xb1\xc9\x06\xaf\ \xbc\xf2\x8a\x20\x03\x42\x16\xe7\x5a\xb5\x5a\xcd\xbc\x9e\xc2\x12\ \x20\x4e\xef\x5a\xd2\xdf\x88\x00\x88\x09\xfa\x5d\xac\x00\xdd\x77\ \xce\xe2\xef\x69\x8e\x37\x02\x8b\x19\x84\xb9\x0e\xf0\x0a\x85\x02\ \x3f\xfc\xc0\xbf\x0c\xb5\x70\xe1\x42\xc3\xa2\x6c\x42\xc8\x69\x63\ \x75\x07\x3b\xb6\x2c\x58\xbb\xd0\x29\xd3\xad\xab\xab\x2b\x6e\xbe\ \xf9\x66\xde\x46\x7c\xd6\xc4\x80\xf5\xd7\x8d\x58\xe2\x93\x8b\x44\ \x22\xb3\x12\x83\x0e\x64\xd4\x6a\x35\x9a\x9a\x9a\x98\xee\x13\xab\ \xbf\x27\x6b\x62\x10\x56\x5b\x3c\x00\x38\x7d\xfa\x34\xaf\xaf\xeb\ \xd3\x4f\x3f\x6d\xac\xf8\x3b\xe6\x8b\x0d\x12\x6c\x56\xb0\x08\x21\ \xfb\x61\x10\x85\xf4\xb6\xdb\x6e\xe3\x6d\xb7\x79\xf3\x66\x5e\xab\ \x67\x96\x35\x26\x95\x4a\xc5\x3c\xc2\xf2\xf3\xf3\x73\x08\x56\x2f\ \x28\x2f\x2f\x17\x3c\x0d\xa7\x94\xc2\xdb\xdb\x9b\xd9\x7d\x8a\xc5\ \xf7\x10\x30\xef\x47\xee\xdf\xff\xfe\x37\x6f\x9d\x5b\x6f\xbd\xd5\ \xb0\xa8\x06\x46\x4c\x7b\x1c\xe8\xb0\x59\xc1\x6a\xe7\xab\xce\x1f\ \x5c\x5d\x5d\xb1\x6e\xdd\x3a\x93\x0d\x8e\x1c\x39\x82\x53\xa7\x4c\ \x87\x0f\x62\x99\x12\x6a\xb5\x5a\xe6\x87\xdb\xd3\xd3\x93\x69\x9d\ \xac\xad\xad\xcd\x26\xa6\x85\xb6\x42\x69\x69\x29\x93\x2f\xa6\xaf\ \xaf\x2f\x73\xb0\xc4\xe6\xe6\x66\xab\xae\x91\xa5\xa4\xa4\x20\x35\ \x35\xd5\x64\x9d\xeb\xaf\xbf\x1e\x13\x27\x4e\x34\x2c\x3e\x48\x08\ \x61\x0b\xa1\x3a\x88\xb0\x75\xc1\xda\x05\xa0\x4b\x38\xc9\x95\x2b\ \x57\xf2\x36\xda\xb0\x61\x83\xc9\xe3\x2c\x6e\x19\xe6\xc4\x42\xf2\ \xf6\xf6\x16\x9c\xb0\x53\x3f\x8a\xb3\x46\x3a\x29\x7b\x44\xa9\x54\ \xa2\xb6\xb6\x96\x29\x41\x88\xb7\xb7\x37\xd3\x35\x34\x1a\x0d\xf3\ \x1a\x19\x6b\x34\x8d\x9f\x7e\xfa\x89\xb7\xce\x3d\xf7\xdc\x63\xac\ \xf8\x7d\xa6\x0b\x0d\x32\x6c\x5a\xb0\x08\x21\x25\x00\xba\x04\x10\ \x8a\x8b\x8b\xc3\xcc\x99\x33\x4d\xb6\x3b\x71\xe2\x84\xc9\x68\xa4\ \xac\x8b\xe2\x7c\x59\x7a\x0d\x71\x75\x75\x65\xb2\xd4\x26\x84\x20\ \x2b\x2b\x8b\xe9\x1a\x03\x95\xd2\xd2\x52\x26\x31\x21\x84\x30\x47\ \xbb\x50\xa9\x54\x4c\x0e\xea\x22\x91\x88\xe9\x7e\xe6\xe6\xe6\x62\ \xe3\xc6\x8d\x26\xeb\x24\x24\x24\x60\xce\x9c\x39\x86\xc5\x69\x84\ \x10\xf6\x00\x6f\x83\x08\x9b\x16\x2c\x00\x20\x84\xdc\x6b\x58\xc6\ \x67\xde\x00\x00\xaf\xbd\xf6\x5a\x8f\xc7\x58\x04\x4b\x24\x12\x31\ \x0b\x16\x00\x84\x84\x84\x30\x25\xec\xac\xaa\xaa\x72\x4c\x0b\x01\ \x5c\xbc\x78\x91\x69\x81\x5b\x24\x12\x21\x38\x38\x98\xe9\x1a\x55\ \x55\x55\xcc\x3b\x90\x2c\x53\xce\xff\xfc\xe7\x3f\xbc\x75\xee\xbd\ \xf7\x5e\x63\x3b\x9b\x3f\x0a\xbe\xc8\x20\xc5\xe6\x05\xab\x9d\x23\ \x9d\x3f\x4c\x99\x32\x05\xb3\x66\xcd\x32\xd9\xe0\xd8\xb1\x63\x38\ \x72\xe4\x88\xd1\x63\x5e\x5e\x5e\xcc\x6b\x4c\xac\x31\xbd\x87\x0d\ \x1b\xc6\x9c\xb2\x2a\x33\x33\x93\xbf\xe2\x00\xa6\xb4\xb4\x14\xf5\ \xf5\xf5\x4c\xd3\xc1\xc0\xc0\x40\xe6\xeb\x94\x95\x95\x31\xaf\x91\ \x09\x35\x4c\xcd\xca\xca\xc2\xc7\x1f\x7f\xcc\x5b\x6f\xc5\x8a\x15\ \x86\x45\xa5\x00\xfe\x9f\xa0\x8b\x0c\x62\xec\x45\xb0\xbe\x06\xd0\ \x31\x5c\xf1\xf4\xf4\xc4\x83\x0f\x3e\x68\xa2\xba\x8e\x37\xde\x78\ \xc3\x68\xa8\x17\xbd\x60\x09\x5d\x63\x6a\x6b\x6b\x63\x1e\x65\x79\ \x79\x79\x31\xc5\x74\x12\x8b\xc5\xc8\xc9\xc9\xb1\x68\x0e\x3c\x7b\ \x82\x52\x8a\xa4\xa4\x24\xa6\x1f\x12\x8e\xe3\x98\x33\x0d\x69\xb5\ \x5a\xd4\xd5\xd5\x31\xc5\x2b\xf3\xf5\xf5\x15\x7c\xfe\x7f\xfe\xf3\ \x9f\xbc\x75\xde\x7a\xeb\x2d\x63\x6b\x62\xdf\x13\x42\x06\x8e\x03\ \xa5\x95\xb0\x0b\xc1\x22\x84\x6c\x82\x41\x22\xc9\xe5\xcb\x97\xf3\ \xa6\xb3\xdf\xb3\x67\x8f\xd1\xd0\x33\xce\xce\xce\xcc\xeb\x58\x25\ \x25\x25\xc2\x3b\xdc\x7e\x8d\xe0\xe0\x60\x26\x2b\x79\x42\x08\x4e\ \x9e\x3c\x39\xa0\x1c\x7f\x85\x92\x9c\x9c\xcc\x64\x7b\xa5\x9f\xaa\ \x0d\x1d\x3a\x94\xe9\x3a\x8d\x8d\x8d\x90\xcb\xe5\x4c\xd3\x4e\xa1\ \x53\xce\x23\x47\x8e\x60\xd7\xae\x5d\x26\xeb\xc8\x64\x32\x63\x8b\ \xed\xd5\x30\xd8\x11\x77\x60\x1c\xbb\x10\xac\x76\xbe\xec\xfc\x41\ \x2a\x95\xe2\xb9\xe7\x9e\xe3\x6d\xb4\x61\xc3\x06\xa3\xd6\xef\x2c\ \x89\x0e\x44\x22\x11\x8a\x8b\xd9\xfd\x50\xa3\xa2\xa2\x98\xb3\xb9\ \xd4\xd5\xd5\xf1\x6e\x87\x0f\x34\x4a\x4a\x4a\x70\xe9\xd2\x25\x26\ \x7f\x40\xad\x56\x8b\xf0\xf0\x70\xe6\xc4\xb3\x65\x65\x65\xcc\x49\ \x51\x85\x4c\x3b\x29\xa5\x82\xec\xae\x9e\x7f\xfe\x79\xf8\xfb\xfb\ \x1b\x16\xef\x24\x84\xe4\x31\x75\x6a\x90\x62\x37\x82\x45\x08\xf9\ \x02\x40\x4e\xe7\x32\x21\x86\xa4\xd9\xd9\xd9\xf8\xf4\xd3\x4f\xbb\ \x95\x0f\x19\x32\x84\xe5\xda\x68\x6d\x6d\x45\x63\x63\xa3\xe0\x36\ \x80\xce\x80\x94\x25\x93\x31\xf0\xf7\x5a\x16\x6b\xae\x3d\x7b\x45\ \xad\x56\x9b\x95\xf9\x08\x30\x2f\x35\x5a\x41\x41\x01\xd3\x1a\x99\ \xd0\xe7\xe4\xf7\xdf\x7f\xe7\x4d\xe1\x15\x1c\x1c\x8c\x35\x6b\xd6\ \x74\x2b\x37\xb6\xb1\xe4\xc0\x38\x76\x23\x58\xed\x3c\x6b\x58\xc0\ \x37\x04\x07\x80\x67\x9f\x7d\x16\x85\x85\x85\x5d\xca\x3c\x3d\x3d\ \x99\xa6\x85\x12\x89\x04\x97\x2f\x5f\x16\xd8\xcd\xbf\x99\x30\x61\ \x02\xb3\xf3\xb4\x58\x2c\xc6\x81\x03\x07\x98\x42\x2d\xdb\x2b\x07\ \x0e\x1c\x60\x4a\xbb\x06\xe8\x46\x57\x23\x47\x8e\x64\xb6\xbf\x92\ \xcb\xe5\x4c\x8b\xfa\xfa\x04\xb7\x7c\x94\x94\x94\xf4\x64\x53\xd5\ \x85\x57\x5e\x79\xc5\xd8\xf4\xf2\x73\x41\x9d\x71\x00\xc0\xce\x04\ \x8b\x10\xb2\x15\x40\x17\xa7\xd0\x79\xf3\xe6\xe1\xc6\x1b\x6f\xe4\ \x6d\xfb\xcc\x33\xcf\x74\x99\x0a\xb8\xba\xba\x32\xfb\xfc\x15\x17\ \x17\x33\xa7\x2c\x0f\x0d\x0d\x85\xaf\xaf\x2f\xf3\x5a\x96\x4a\xa5\ \x42\x52\x52\x92\x4d\xc7\x79\xea\x2d\x57\xae\x5c\x41\x69\x69\xa9\ \x59\x21\xa2\xcd\x09\x23\x54\x58\x58\xc8\x74\x1f\xa4\x52\xa9\xa0\ \x7c\x91\x6f\xbd\xf5\x16\xef\xe8\x7b\xec\xd8\xb1\xc6\x66\x04\x35\ \x00\xde\x15\xdc\x21\x07\xf6\x25\x58\xed\x74\x09\x2e\x24\x91\x48\ \xf0\xd4\x53\x4f\xf1\x36\xfa\xe9\xa7\x9f\xf0\xdb\x6f\xbf\x75\x29\ \x63\xcd\x30\xdc\xd0\xd0\x60\x96\x45\x7a\x5c\x5c\x9c\x59\xbe\x68\ \xb5\xb5\xb5\x03\x7a\x94\xe5\xe7\xe7\x07\x37\x37\x37\x26\x11\xd1\ \x68\x34\x88\x89\x89\x61\xca\xdc\xac\x27\x27\x27\x87\xc9\x9c\xc1\ \xd5\xd5\x95\x37\x2f\xe6\xb1\x63\xc7\xf0\xd1\x47\x1f\xf1\x9e\xef\ \xe5\x97\x5f\x36\xe6\xde\xf3\x2d\x21\x84\x7d\xd8\x3e\x88\xb1\x3b\ \xc1\x22\x84\xfc\x00\xa0\xcb\xa2\x47\x7c\x7c\x3c\xd6\xaf\x5f\xcf\ \xdb\xf6\xc1\x07\x1f\x44\x5e\xde\xdf\x6b\x9b\xc3\x87\x0f\x67\x5e\ \x5f\x32\x27\x76\xfc\x90\x21\x43\x10\x15\x15\x25\x78\x74\xa6\xd5\ \x6a\xe1\xed\xed\x8d\x85\x0b\x17\x0e\xb8\xd8\xe6\x9d\xf1\xf6\xf6\ \xc6\xb2\x65\xcb\xe0\xe9\xe9\x29\x68\x67\x94\xe3\x38\x78\x79\x79\ \x21\x26\x26\x86\x0b\x9a\xc4\x4d\x00\x00\x1e\x7c\x49\x44\x41\x54\ \xf9\x5a\x85\x85\x85\x4c\x16\xf4\xfa\xf4\x6b\xa6\x9c\xaa\xb5\x5a\ \x2d\xaf\x3d\x20\xa0\xcb\xfc\x74\xd3\x4d\x37\x19\x16\x97\x02\x30\ \x6d\x0e\xef\xa0\x1b\x76\x27\x58\xed\xbc\x08\xa0\x4b\x40\xa3\x17\ \x5e\x78\x81\xb7\x51\x63\x63\x23\x1e\x7d\xf4\xd1\x8e\xcf\xee\xee\ \xee\xcc\xa3\xac\xca\xca\x4a\xb3\x6c\xa5\x26\x4d\x9a\x24\x68\xcd\ \x4c\xab\xd5\xc2\xd7\xd7\x17\x4b\x96\x2c\x31\x6b\x14\x61\x6f\xe8\ \xa3\xc9\xfa\xfb\xfb\x9b\x14\x74\x4a\x29\x44\x22\x11\xa6\x4f\x9f\ \xce\x3c\x85\xa4\x94\x22\x3b\x3b\x9b\x69\x17\x92\x52\x6a\x2c\x6d\ \x7c\x17\x9e\x7b\xee\x39\x41\x53\xf6\x2f\xbe\xf8\xc2\x58\xf1\xeb\ \x84\x90\x72\x63\x07\x1c\xf4\x8c\x5d\x0a\x16\x21\xe4\x00\x80\x2e\ \xf3\x3b\x6f\x6f\x6f\x7c\xfe\x39\xff\xfa\xe5\xae\x5d\xbb\x3a\x82\ \xaa\x11\x42\x30\x62\xc4\x08\x26\xc1\xd2\x68\x34\x66\x8d\xb2\x64\ \x32\x19\xe2\xe3\xe3\x4d\xbe\x94\x5a\xad\x16\x01\x01\x01\x98\x37\ \x6f\x9e\xcd\x86\xfc\xb5\x06\x2e\x2e\x2e\x98\x3b\x77\x2e\x82\x83\ \x83\x7b\x1c\x69\x69\xb5\x5a\x8c\x19\x33\xc6\x2c\xcb\xf6\x8a\x8a\ \x0a\x54\x54\x54\x30\xed\x0e\x06\x04\x04\x98\x5c\xd4\x3f\x74\xe8\ \x10\xde\x7a\xeb\x2d\xde\x73\xbd\xf0\xc2\x0b\x18\x3b\x76\xac\x61\ \x71\x06\x21\xe4\x13\x41\x9d\x71\xd0\x05\xbb\x14\xac\x76\xd6\x42\ \x67\x70\xd7\xc1\x9a\x35\x6b\x30\x63\xc6\x0c\xde\x86\xab\x56\xad\ \xea\x70\x83\x89\x8a\x8a\x62\x5a\x5f\x12\x8b\xc5\xc8\xcf\xcf\x67\ \x76\xd5\x01\x80\xa1\x43\x87\x22\x32\x32\xd2\xa8\x68\xa9\xd5\x6a\ \x84\x84\x84\x60\xc1\x82\x05\xcc\xd3\xc0\x94\x94\x14\x5c\xb9\x72\ \x85\xb9\x3f\x7d\x41\x6d\x6d\xad\xa0\xef\xca\xd9\xd9\x19\xd7\x5e\ \x7b\x2d\x02\x03\x03\xbb\x7d\x3f\x1c\xc7\xc1\xc7\xc7\xc7\xec\x78\ \xfd\xe7\xcf\x9f\x37\x6b\x17\xb2\xa7\x1f\x8d\xaa\xaa\x2a\xdc\x75\ \xd7\x5d\xbc\xe7\x89\x8a\x8a\xc2\x13\x4f\x3c\x61\xec\x10\xff\xa2\ \xab\x03\xa3\xd8\xad\x60\x11\x42\x1a\x01\xbc\xdc\xb9\x4c\x24\x12\ \x19\xb5\xb9\x32\xc6\xbd\xf7\xde\x8b\xfa\xfa\x7a\x48\x24\x12\x44\ \x46\x46\x32\x5b\x97\x9f\x3b\x77\x8e\xa9\xbe\x9e\xe9\xd3\xa7\xc3\ \xdf\xdf\xbf\xcb\xf5\xb4\x5a\x2d\x42\x43\x43\x31\x7f\xfe\x7c\xe6\ \xe9\xce\xa9\x53\xa7\x70\xf1\xe2\x45\x1c\x3f\x7e\x1c\x17\x2f\x5e\ \x34\xab\x4f\xd6\x22\x37\x37\x17\x3b\x76\xec\xc0\x1f\x7f\xfc\x21\ \x48\xb4\x08\x21\x58\xb0\x60\x01\x86\x0d\x1b\xd6\xb1\xa3\xab\x4f\ \x30\x31\x6f\xde\x3c\xb3\x36\x2e\x4a\x4a\x4a\x50\x5d\x5d\xcd\xb4\ \xd8\x2e\x91\x48\x4c\xba\xfc\xdc\x75\xd7\x5d\x82\x3c\x1f\xfe\xfb\ \xdf\xff\x1a\x5b\xb4\xdf\x4c\x08\xf9\x53\x50\x67\x1c\x74\xc3\x6e\ \x05\x0b\x00\x08\x21\x1f\xc1\x20\x25\xd8\xd8\xb1\x63\x05\x79\xcb\ \x27\x25\x25\x75\xa4\x06\x1b\x33\x66\x8c\xe0\xf8\x55\x80\x6e\x94\ \x95\x97\x97\xc7\x6c\x48\x0a\xe8\x44\x75\xe6\xcc\x99\x1d\xbb\x63\ \x5a\xad\x16\x61\x61\x61\x98\x3b\x77\x2e\xf3\xb9\x52\x53\x53\x91\ \x93\x93\x03\xa9\x54\x0a\x91\x48\x84\x94\x94\x14\xa4\xa4\xa4\x30\ \x9b\x5e\x58\x83\xf3\xe7\xcf\x23\x29\x29\x09\x12\x89\x04\x6a\xb5\ \x1a\xfb\xf7\xef\x17\xf4\x7d\x89\x44\x22\xcc\x98\x31\xa3\x43\xb4\ \x08\x21\x1d\xdf\x97\x39\xf0\x19\x73\x1a\xc2\x71\x1c\xae\xbe\xfa\ \xea\x1e\x05\x6e\xe3\xc6\x8d\x26\x43\x17\xe9\x59\xb7\x6e\x1d\xa6\ \x4f\x9f\x6e\x58\x5c\x0c\x80\x7f\xb1\xd5\x41\x8f\x58\x3f\x47\xba\ \x95\x79\xe9\xa5\x97\xb2\x01\xac\x00\xd0\xb1\x9d\x33\x79\xf2\x64\ \x9c\x38\x71\x02\xf9\xf9\xf9\x26\xdb\x26\x27\x27\x63\xf8\xf0\xe1\ \x98\x36\x6d\x1a\xaa\xaa\xaa\x98\x7d\xd9\x9a\x9b\x9b\x11\x11\x11\ \xc1\xdc\x67\x67\x67\x67\x04\x06\x06\x22\x3d\x3d\x1d\x61\x61\x61\ \x98\x3d\x7b\x36\xf3\xc8\x2a\x25\x25\x05\xe9\xe9\xe9\x1d\xd3\x16\ \x42\x08\xc4\x62\x31\xca\xcb\xcb\x51\x59\x59\x89\x80\x80\x00\x38\ \x3b\x3b\x33\xf7\xad\xb7\x28\x95\x4a\x1c\x3f\x7e\x1c\x99\x99\x99\ \x10\x8b\xc5\x20\x84\x74\x38\x90\x57\x54\x54\x20\x32\x32\x92\x77\ \xb4\x23\x16\x8b\x31\x7c\xf8\x70\x94\x95\x95\x21\x3a\x3a\x1a\x23\ \x47\x8e\x34\x59\xbf\x27\xf2\xf3\xf3\x91\x95\x95\x25\x78\x3d\x90\ \x52\x0a\xb1\x58\x8c\x84\x84\x04\xa3\x41\x1e\x8f\x1c\x39\x22\x28\ \x80\x64\x50\x50\x10\x7e\xfd\xf5\x57\x63\xdf\xff\x33\x84\x10\xfe\ \xac\xaa\x0e\x7a\xa4\xff\x53\xa4\x58\x00\x4a\xe9\x4b\x00\xba\x04\ \xc9\xca\xcf\xcf\x17\x2c\x26\xa7\x4f\x9f\x46\x64\x64\x24\xb6\x6f\ \xdf\xce\x14\x1b\x5c\xa3\xd1\x20\x31\x31\xd1\x2c\xd1\x02\x74\xeb\ \x3b\x42\x0c\x13\x0d\x39\x79\xf2\xa4\x49\xdf\x3b\xfd\xc8\x6d\xc2\ \x84\x09\x18\x37\x6e\x5c\x9f\x2d\xe0\x67\x64\x64\xe0\xdc\xb9\x73\ \xd0\x6a\xb5\x46\x05\x58\xab\xd5\xc2\xd3\xd3\x13\x4b\x97\x2e\xb5\ \x7a\x9f\x5a\x5a\x5a\xb0\x63\xc7\x0e\x68\x34\x1a\xc1\x3f\x42\x5a\ \xad\x16\x23\x46\x8c\x30\x96\xd4\x14\x99\x99\x99\x88\x8f\x8f\x17\ \x34\xb5\x3d\x79\xf2\x24\xa6\x4d\x9b\x66\x58\xfc\x17\x21\xa4\x5b\ \x7a\x67\x07\x6c\xd8\xf5\x94\x50\x0f\x21\xe4\x25\x00\x47\x3b\x97\ \x8d\x18\x31\x02\xbf\xfc\xf2\x8b\xa0\xf6\x0b\x16\x2c\x40\x45\x45\ \x05\xd3\x8e\x21\xa0\x1b\x09\xa4\xa4\xa4\x98\x6d\xdc\x69\x8e\x58\ \x9d\x39\x73\x06\x39\x39\x39\x26\x5f\x78\x91\x48\x04\xa9\x54\x8a\ \xb4\xb4\x34\x6c\xdb\xb6\x0d\x19\x19\x19\x56\x33\x40\x55\xa9\x54\ \x28\x28\x28\xc0\xb6\x6d\xdb\x90\x92\x92\xd2\x31\x4a\x31\x86\x58\ \x2c\x86\x5c\x2e\xc7\xde\xbd\x7b\xd1\xda\xda\x6a\x95\xfe\xe8\x49\ \x4e\x4e\x86\x4a\xa5\x62\x1a\x31\x4b\x24\x12\xa3\x11\x40\x2a\x2b\ \x2b\xb1\x72\xe5\x4a\x41\x62\xf5\xd1\x47\x1f\x19\x13\xab\x16\x87\ \x58\x59\x86\x01\x21\x58\xed\x74\x73\x20\xbd\xf9\xe6\x9b\xf1\xf0\ \xc3\x0f\xf3\x36\x6c\x68\x68\xc0\x63\x8f\x3d\x06\x57\x57\x57\xa6\ \x85\x5d\xbd\x53\x34\x5f\xd2\x0b\x4b\x91\x9a\x9a\x8a\x8c\x8c\x0c\ \xc1\xa3\x40\xb1\x58\x8c\xd6\xd6\x56\x9c\x39\x73\x06\x7f\xfe\xf9\ \x27\xce\x9e\x3d\x0b\xb9\x5c\x6e\x11\x77\x1f\xa5\x52\x89\x8b\x17\ \x2f\x62\xd7\xae\x5d\x38\x72\xe4\x08\xe4\x72\x79\xc7\x14\x90\xaf\ \x4f\x55\x55\x55\x38\x72\xe4\x08\x73\x72\x0f\xa1\xe4\xe4\xe4\xa0\ \xb8\xb8\x98\x39\xb6\x56\x48\x48\x88\x51\xcb\xf6\xdb\x6f\xbf\x1d\ \x17\x2e\x5c\xe0\x3d\xc7\x82\x05\x0b\x70\xff\xfd\xf7\x1b\x16\x53\ \x00\xfc\x61\x45\x1c\x08\x62\x40\x4c\x09\xf5\x50\x4a\xff\x0d\xe0\ \xed\xce\x65\x6d\x6d\x6d\xb8\xe6\x9a\x6b\x70\xfa\x34\x7f\x5e\xca\ \x85\x0b\x17\xe2\x81\x07\x1e\x40\x4b\x4b\x0b\xd3\x4b\xad\x54\x2a\ \x31\x6b\xd6\x2c\x44\x46\x46\x32\xf7\x59\x28\x49\x49\x49\xcc\xc6\ \x8f\x9d\xa1\x94\x42\xab\xd5\x76\x04\xa4\x1b\x36\x6c\x18\x7c\x7d\ \x7d\xe1\xeb\xeb\x2b\x28\x09\xa9\x42\xa1\x40\x7d\x7d\x3d\x6a\x6a\ \x6a\x50\x56\x56\xd6\x91\x9a\x4c\x88\x48\x19\x43\xa3\xd1\xc0\xc7\ \xc7\x07\x4b\x97\x2e\x35\x2b\xe7\x5f\x4f\xc8\xe5\x72\x6c\xdd\xba\ \x95\xb9\x5f\x6a\xb5\x1a\x37\xde\x78\x63\x17\xc1\xa2\x94\xe2\xa1\ \x87\x1e\x12\x64\xdf\x07\xe8\xcc\x1d\x02\x02\x02\x0c\x8b\xb7\x10\ \x42\xf8\xc3\x8a\x38\x10\xc4\x80\x12\x2c\x00\xa0\x94\xee\x00\xb0\ \xb4\x73\x59\x59\x59\x99\xe0\x40\x6f\xd3\xa6\x4d\xc3\xbd\xf7\xde\ \x0b\x17\x17\x17\xa6\xe9\x21\xc7\x71\x58\xb4\x68\x91\xb1\x07\xb6\ \x57\x68\x34\x1a\x24\x25\x25\x21\x37\x37\xd7\x62\xeb\x3e\x94\xd2\ \x8e\x7f\x9b\x7e\x51\xdc\xd9\xd9\x19\xce\xce\xce\x70\x72\x72\x82\ \xab\xab\x2b\x94\x4a\x25\x14\x0a\x05\xd4\x6a\x75\x47\x96\x64\x8e\ \xe3\x3a\x2c\xce\x2d\x21\x32\x7a\xab\xfe\xf9\xf3\xe7\x5b\x64\x83\ \x40\xad\x56\x63\xe7\xce\x9d\x68\x6e\x6e\x66\xea\x9f\x56\xab\x45\ \x54\x54\x14\x12\x12\x12\xba\x94\xbf\xfe\xfa\xeb\x82\x62\xae\x01\ \xba\xc4\x27\x86\xed\x01\xa4\x03\x98\xd1\x6e\x82\xe3\xc0\x02\x0c\ \xa4\x29\xa1\x9e\x7b\x00\x64\x77\x2e\x08\x09\x09\xc1\x5f\x7f\xfd\ \xd5\x43\xf5\xae\x9c\x3a\x75\x0a\xdb\xb7\x6f\x07\xc7\x71\xcc\x23\ \x87\x93\x27\x4f\x5a\x7c\x9a\xd3\xd2\xd2\x82\xbc\xbc\x3c\x8b\x8e\ \x42\xf4\x3b\x8a\x62\xb1\x18\x22\x91\xa8\x63\x17\xaf\xbe\xbe\x1e\ \x15\x15\x15\x1d\x51\x14\xea\xeb\xeb\x3b\xc4\x4a\xdf\x46\x22\x91\ \x58\xac\x2f\x62\xb1\x18\x35\x35\x35\x38\x7e\xfc\x78\xaf\xa3\xac\ \x52\x4a\x71\xfa\xf4\x69\xe6\x68\xa2\xfa\x35\xb7\xf1\xe3\xc7\x77\ \x29\x67\x11\xab\x2f\xbf\xfc\xd2\x98\x58\xa9\x01\xdc\xe3\x10\x2b\ \xcb\x32\xe0\x04\x8b\x10\x52\x03\xa0\xdb\x42\xc2\xa2\x45\x8b\xf0\ \xc1\x07\x1f\x08\x3a\xc7\xce\x9d\x3b\xb1\x65\xcb\x16\x48\xa5\x52\ \xa6\x54\x50\x0d\x0d\x0d\x66\x07\xa3\xeb\x09\x2f\x2f\x2f\x2c\x59\ \xb2\x04\x62\xb1\x98\x39\xae\x16\x0b\x84\x90\x8e\x91\x93\x5e\xc8\ \xf4\x62\x66\xce\x94\x4f\x08\x94\x52\x10\x42\x30\x7a\xf4\x68\xb3\ \x42\xcc\x74\x26\x3d\x3d\xdd\xac\x51\xa8\x56\xab\xc5\xc4\x89\x13\ \xbb\xd8\x79\xfd\xe7\x3f\xff\x11\x2c\x56\x8f\x3c\xf2\x88\xd1\xa0\ \x7c\x00\x5e\x24\x84\xb0\x19\x81\x39\xe0\xc5\xee\xed\xb0\x8c\xb1\ \x61\xc3\x86\xa2\x97\x5e\x7a\xa9\x0c\x06\x53\xc3\xa9\x53\xa7\x02\ \x40\x8f\xd9\x74\x3a\x73\xe9\xd2\x25\x34\x36\x36\x32\xb9\x83\xe8\ \x43\x1c\x2b\x14\x0a\x84\x87\x87\xb3\x75\xda\x04\xae\xae\xae\x88\ \x88\x88\x40\x69\x69\x29\x14\x0a\x85\x45\x47\x5b\xfd\x85\x56\xab\ \x85\x54\x2a\xc5\xc2\x85\x0b\x99\xd3\x74\x19\x72\xf1\xe2\x45\xa4\ \xa6\xa6\x9a\x25\x56\x61\x61\x61\x1d\xcf\x05\xa0\x1b\x59\x3d\xf9\ \xe4\x93\x82\xda\x5f\x73\xcd\x35\xd8\xb2\x65\x8b\xb1\x43\xbf\x10\ \x42\x4c\xa7\x28\x77\x60\x16\xf6\xff\xe4\xf7\x00\x21\xe4\x4b\x18\ \x09\xec\xff\xe2\x8b\x2f\xe2\x86\x1b\x6e\x10\x74\x8e\x7d\xfb\xf6\ \x61\xcb\x96\x2d\x50\xa9\x54\x82\x45\x42\x2a\x95\x22\x37\x37\xd7\ \x6c\xd7\x9d\x9e\x70\x77\x77\xc7\xc2\x85\x0b\x11\x1a\x1a\x6a\x13\ \x96\xec\xbd\x41\xa3\xd1\xc0\xcf\xcf\xcf\x22\x6b\x7e\xb5\xb5\xb5\ \x38\x73\xe6\x8c\x59\x11\x1c\x9c\x9c\x9c\x30\x65\xca\x94\x8e\x32\ \x96\x69\xe0\x9c\x39\x73\x8c\x26\x38\x01\x70\x8a\x10\x72\x2b\x53\ \x67\x1c\x08\x66\xc0\x0a\x16\x00\x10\x42\xee\x83\x81\x7d\x96\x48\ \x24\xc2\xcf\x3f\xff\x2c\x38\xa6\xd2\xb6\x6d\xdb\xf0\xfd\xf7\xdf\ \x33\x89\x16\xc7\x71\x1d\x0b\xd4\x96\xc4\xd9\xd9\x19\x73\xe7\xce\ \xc5\x98\x31\x63\x3a\xae\x61\x4f\x50\x4a\xa1\xd1\x68\x10\x11\x11\ \x81\xf9\xf3\xe7\x33\x87\x38\x36\x86\x9f\x9f\x9f\x59\x61\xa8\xd5\ \x6a\x35\xa6\x4c\x99\x02\x4f\x4f\x4f\x00\xc0\x3b\xef\xbc\x23\x58\ \xac\x62\x62\x62\xf0\xd9\x67\x9f\xc1\xcb\xcb\xcb\xf0\x50\x29\x00\ \x87\x58\x59\x91\x01\xb7\x4b\x68\x0c\x4a\x69\x36\x80\xab\x3a\x97\ \xd5\xd6\xd6\x62\xe1\xc2\x85\x48\x49\x49\x11\x74\x8e\x49\x93\x26\ \xe1\xa1\x87\x1e\x82\x9b\x9b\x9b\xc9\x05\x62\xa5\x52\x89\xe9\xd3\ \xa7\x63\xf4\xe8\xd1\xbd\xea\x33\x1f\x65\x65\x65\x38\x79\xf2\x24\ \x9a\x9a\x9a\x20\x91\x48\xac\xb6\xce\x64\x29\x34\x1a\x0d\x24\x12\ \x09\xe2\xe3\xe3\xad\x62\xfe\x71\xfe\xfc\x79\x9c\x3f\x7f\x5e\xd0\ \xb4\x50\x2f\x9a\x7a\x8b\xf6\x47\x1f\x7d\x54\x50\xf2\x53\x3d\xb9\ \xb9\xb9\xc6\xdc\x85\x94\x00\xc6\x12\x42\x72\x85\xf7\xda\x01\x2b\ \xb6\xfd\x94\x5b\x10\x4a\x69\x05\x80\xa0\xce\x65\x75\x75\x75\x88\ \x8f\x8f\x17\x9c\x5c\x22\x2a\x2a\x0a\x0f\x3c\xf0\x00\x42\x43\x43\ \xbb\xa5\x8a\xa2\x94\x82\x52\x8a\xd8\xd8\x58\x44\x47\x47\x5b\xac\ \xdf\xa6\xd0\x68\x34\x48\x4b\x4b\x43\x66\x66\x66\x8f\xee\x30\xfd\ \x8d\x7e\xa4\x19\x19\x19\x89\xd8\xd8\x58\xab\xfa\x37\x66\x64\x64\ \x74\x4c\x0f\x7b\x12\x70\x7d\xa8\x9a\xa5\x4b\x97\xa2\xbe\xbe\x1e\ \x77\xdf\x7d\x37\xb6\x6f\xdf\x2e\xe8\xfc\xae\xae\xae\x48\x4a\x4a\ \x32\x66\x0d\xaf\x04\x70\x6f\x7b\x34\x5c\x07\x56\x64\x30\x09\xd6\ \x2c\x00\x5b\x01\x74\x49\xe3\x9b\x9b\x9b\x8b\x49\x93\x26\x09\x8e\ \x6f\x15\x18\x18\x88\x47\x1e\x79\x04\x51\x51\x51\xdd\x42\xc4\x4c\ \x9e\x3c\xb9\xcf\xc4\xaa\x33\x75\x75\x75\xb8\x70\xe1\x02\x4a\x4a\ \x4a\xc0\x71\x9c\x4d\x08\x97\x5e\xa8\x02\x03\x03\x31\x71\xe2\x44\ \xa6\xb4\x6a\xbd\xe1\xc2\x85\x0b\x38\x7f\xfe\x7c\xc7\x0e\x67\x67\ \x28\xa5\x90\x4a\xa5\x58\xbc\x78\x31\x94\x4a\x25\x16\x2c\x58\x20\ \x78\xad\x31\x20\x20\x00\x3b\x76\xec\x40\x7c\x7c\xbc\xb1\xc3\xeb\ \x09\x21\xef\xf5\xbe\xf7\x0e\xf8\x18\x34\x82\x05\x00\x94\xd2\xeb\ \xa0\x8b\x54\xda\x25\xfb\x66\x56\x56\x16\xc6\x8f\x1f\xcf\x94\x60\ \x73\xed\xda\xb5\x48\x48\x48\x80\x46\xa3\x81\x42\xa1\xc0\x8c\x19\ \x33\x78\x43\xea\x5a\x9b\xaa\xaa\x2a\xa4\xa7\xa7\x77\xe4\xde\x33\ \xd7\x0a\xdd\x5c\xf4\x06\xa9\x6a\xb5\x1a\xa1\xa1\xa1\x88\x8e\x8e\ \x46\x58\x58\x58\x9f\x5d\x5f\x4f\x76\x76\x36\x4e\x9f\x3e\xdd\x4d\ \xb4\x54\x2a\x15\x6e\xba\xe9\x26\xe4\xe6\xe6\x62\xee\xdc\xb9\x4c\ \x41\x18\x53\x53\x53\x7b\xda\x31\x7e\x9e\x10\xf2\x5a\xef\x7b\xed\ \x40\x08\x83\x4a\xb0\x00\x80\x52\xba\x0c\xc0\x66\x74\x0a\x47\x03\ \xe8\xe2\xbd\x2f\x5a\xb4\x88\xc9\x2f\xf0\xda\x6b\xaf\xc5\xaa\x55\ \xab\x30\x67\xce\x1c\xe6\x94\xe9\xd6\x44\xa1\x50\xe0\xd2\xa5\x4b\ \x28\x28\x28\xe8\xc8\xc3\xa7\xdf\x30\xb0\xb4\x80\xe9\x45\x4a\x1f\ \x89\x21\x2c\x2c\x0c\xa3\x46\x8d\xe2\xcd\x36\x63\x6d\x0a\x0a\x0a\ \x70\xf4\xe8\xd1\x0e\x3b\x32\x4a\x29\x66\xcc\x98\x81\x3d\x7b\xf6\ \xe0\xa1\x87\x1e\x62\x3a\xd7\xa5\x4b\x97\x7a\x4a\xda\xfa\x0a\x21\ \xe4\x45\x8b\x74\xd8\x81\x20\x06\x9d\x60\x01\x00\xa5\xf4\x5e\xe8\ \xd2\x85\x75\x89\x45\xdc\xd0\xd0\x80\x99\x33\x67\x22\x3d\x3d\x5d\ \xf0\xb9\xa6\x4d\x9b\x86\xef\xbe\xfb\xce\xac\x2c\xc4\xd6\x46\xad\ \x56\xa3\xb6\xb6\x16\x05\x05\x05\xa8\xa8\xa8\x80\x42\xa1\xe8\x88\ \x60\x60\x6c\xca\x24\x04\xbd\x40\x71\x1c\x07\x99\x4c\x06\x57\x57\ \x57\x04\x04\x04\x60\xd8\xb0\x61\x08\x0c\x0c\x34\x1a\x47\xaa\xbf\ \x28\x28\x28\xc0\x91\x23\x47\x20\x93\xc9\xe0\xe9\xf9\xff\xdb\xbb\ \xfb\xe0\xa8\xea\x7b\x8f\xe3\xdf\x55\x2f\x17\x28\x0f\x9d\x04\xae\ \x02\x57\xc0\x01\x2e\x20\x54\x42\xca\xa0\x02\xb5\x12\x30\x0d\x54\ \xe4\x0a\x56\x06\x90\x51\x70\xae\x57\x11\x2d\x15\x19\xda\x58\x14\ \xd0\x16\xd4\x3b\x55\x0c\x20\x22\x3e\xdc\x69\xc0\x80\x78\x81\xe1\ \xb1\x38\x08\x94\x8a\x42\xa8\x80\x24\x82\x02\x89\x49\x80\x66\x43\ \xc8\x23\x09\x79\x5a\xde\xf7\x8f\x2d\x99\xcd\x8f\x8d\xe4\x61\xf7\ \x77\xf6\xc0\xf7\x35\x73\x46\x5d\x70\xcf\xf7\x7c\xf7\x9c\xcf\x9c\ \xdf\x79\x6c\x27\xdb\xb6\x6d\x6b\xd4\xc1\xf5\x98\x98\x18\x59\xb9\ \x72\xa5\xfc\xf4\xa7\x3f\x0d\xf6\xc7\xaf\x7b\x3c\x9e\x86\x5d\xb0\ \xa5\x42\xe6\xba\x0c\x2c\x11\x11\x60\x86\x88\xfc\x8f\x88\xd4\xd9\ \xc2\x8a\x8b\x8b\xe5\xe1\x87\x1f\x96\x1d\x3b\x1a\xf7\x9c\xb5\xad\ \x5b\xb7\xca\xa8\x51\xa3\x42\x58\x61\x68\x5d\xba\x74\x49\x8a\x8a\ \x8a\xa4\xb8\xb8\x58\xbc\x5e\xaf\xe4\xe5\xe5\x49\x71\x71\x71\xa3\ \x2f\x07\x68\xdf\xbe\xbd\x44\x45\x45\xc9\x2d\xb7\xdc\x22\x51\x51\ \x51\xd2\xbe\x7d\xfb\x46\x3d\x43\xcc\xb6\xef\xbf\xff\x5e\xd6\xac\ \x59\x23\x7f\xfe\xf3\x9f\x1b\xf5\xf2\x90\x7e\xfd\xfa\xc9\xc6\x8d\ \x1b\xeb\x7b\x78\xe0\x42\x8f\xc7\x73\xc5\x5b\xc8\x95\x0a\x2b\x60\ \x12\x50\x8d\xa1\xaa\xaa\x8a\xe7\x9e\x7b\x0e\xf1\x3f\x1a\xa4\xc1\ \xd3\x94\x29\x53\x28\x2c\x2c\x34\xbf\x2e\xa2\x55\x56\x56\x92\x9f\ \x9f\x8f\xd7\xeb\x25\x23\x23\x83\x93\x27\x4f\xd6\x99\x72\x73\x73\ \x39\x77\xee\x1c\xe5\xe5\xe5\x4e\x97\xda\x24\x2f\xbd\xf4\x52\xa3\ \x7f\xc7\x9f\xff\xfc\xe7\x5c\xb8\x70\xa1\xbe\xaf\x9c\x67\x6d\x05\ \x55\xca\x04\x24\x00\xc5\xc1\xd6\xcc\xa4\xa4\xa4\x46\xaf\xec\x1d\ \x3a\x74\x60\xc7\x8e\x1d\xe1\xda\xfe\x54\x03\x1d\x39\x72\x84\xe1\ \xc3\x87\x37\xfa\xf7\x7b\xfa\xe9\xa7\xa9\xa9\xa9\x09\xf6\x95\x97\ \x80\xab\xbf\xd7\x4b\xa9\x70\x03\x7e\x01\xe4\x07\x5b\x4b\xd7\xac\ \x59\xd3\xe8\x95\x5e\x44\x78\xe6\x99\x67\x38\x7b\xf6\x6c\x18\x37\ \x49\x15\x4c\x45\x45\x05\xaf\xbc\xf2\x4a\x93\x7e\xb3\x37\xde\x78\ \x03\x9f\xcf\x57\xdf\x57\x5f\xfd\xd5\xe2\x4a\xd9\x02\xf4\x00\x72\ \x82\xad\xa9\x87\x0e\x1d\xa2\x57\xaf\x5e\x4d\xda\x08\x96\x2d\x5b\ \x16\xae\x6d\x53\x19\x3e\xfd\xf4\x53\xba\x74\xe9\xd2\xa4\xdf\x69\ \xfb\xf6\xed\xf5\x7d\x6d\x0d\xf0\x88\xad\xf5\x50\xa9\x46\x01\xbe\ \x08\xb6\xd6\x96\x97\x97\x33\x71\xe2\xc4\x26\x6d\x0c\xfd\xfa\xf5\ \xe3\xb3\xcf\x3e\x0b\xd7\x76\x7a\xdd\x3b\x74\xe8\x10\x63\xc6\x8c\ \x69\xd2\x6f\x93\x90\x90\x40\x66\x66\x66\x7d\x5f\x5d\x0a\x0c\xb7\ \xb5\xee\x29\xd5\x24\xc0\xda\x60\x6b\xaf\xcf\xe7\x63\xf9\xf2\xe5\ \x4d\xda\x30\x44\x84\x87\x1e\x7a\x88\xa3\x47\x8f\x86\x69\xb3\xbd\ \xfe\x64\x67\x67\xf3\xdb\xdf\xfe\xb6\xc9\xbf\xc7\xfc\xf9\xf3\x29\ \x2a\x2a\xba\xda\x6c\x5e\xb6\xb3\xd6\x29\xd5\x0c\xc0\x0b\xf5\xad\ \xc1\xe9\xe9\xe9\x4d\x1e\x7a\x88\x08\x73\xe6\xcc\x21\x2b\x2b\x2b\ \xa4\x1b\xef\xf5\xa4\xbc\xbc\x9c\x85\x0b\x17\x36\xb9\xff\x22\xc2\ \x87\x1f\x7e\xd8\xd0\xd9\x55\x03\x57\x3c\x96\x41\xa9\x88\x03\xc4\ \x01\x41\x8f\x9c\xd7\xd4\xd4\x30\x77\xee\xdc\x66\x6d\x34\xd3\xa6\ \x4d\xe3\xe0\xc1\x83\x21\xda\x8c\xaf\x7d\xdf\x7e\xfb\x6d\xb3\x7b\ \x7e\x79\x9a\x39\x73\x66\x63\x66\x5d\xe7\xed\xe2\x4a\x45\x2c\xa0\ \x2b\xb0\xbb\xde\x35\xf9\xcb\x2f\x19\x3c\x78\x70\xb3\x36\x9e\x31\ \x63\xc6\xb0\x67\xcf\x1e\xca\xca\xca\x9a\xbb\x4d\x5f\x73\xaa\xab\ \xab\x39\x7a\xf4\x28\x53\xa7\x4e\xa5\x55\xab\x56\x21\x09\xab\xcb\ \xd3\x57\x5f\x7d\xd5\x98\x52\xf4\xaa\x76\xe5\x1e\xc0\xc2\xfa\xd6\ \xe4\x92\x92\x12\xe6\xcf\x9f\xdf\xec\x0d\x28\x21\x21\x81\xf7\xdf\ \x7f\xdf\x75\x17\x9f\x86\xcb\x47\x1f\x7d\xc4\x94\x29\x53\x42\x1a\ \x52\x81\xd3\xfd\xf7\xdf\x4f\x65\x65\x65\x43\xcb\x39\x0f\x0c\x0c\ \xe7\x3a\xa6\x54\x48\x01\x23\x81\x6f\xeb\x5b\xa3\xd3\xd3\xd3\x99\ \x30\x61\x42\x48\x36\xa6\xd9\xb3\x67\xb3\x73\xe7\x4e\x2e\x5d\xba\ \x14\x82\x4d\xdf\x3d\xbe\xfc\xf2\x4b\x16\x2c\x58\x10\xb6\x90\x32\ \xa7\xe4\xe4\xe4\xc6\x94\xf7\x79\x98\x56\x2d\xa5\xc2\x07\x78\x1f\ \xff\xf5\x39\x41\x6d\xda\xb4\xa9\xd9\xc3\xc4\xcb\x53\xa7\x4e\x9d\ \x78\xee\xb9\xe7\x38\x72\xe4\x08\x05\x05\x05\xcd\xcd\x83\x88\x53\ \x56\x56\x46\x5a\x5a\x1a\x8b\x17\x2f\xe6\xf6\xdb\x6f\xb7\x16\x54\ \x97\xa7\xee\xdd\xbb\x93\x9d\x9d\xdd\x98\x92\xf5\x2d\xce\xca\x7d\ \x80\x07\x81\x8c\xfa\xd6\xea\xa2\xa2\x22\xde\x79\xe7\x1d\x6e\xbd\ \xf5\xd6\x90\x6d\x5c\x43\x87\x0e\x65\xd6\xac\x59\xec\xd9\xb3\x87\ \xc2\xc2\x42\xaa\xaa\xaa\x9a\x9b\x17\xd6\xf9\x7c\x3e\x4a\x4b\x4b\ \x49\x4d\x4d\x65\xee\xdc\xb9\xdc\x77\xdf\x7d\xd6\x43\xca\x9c\x7e\ \xfd\xeb\x5f\x07\xad\x35\x39\x39\x99\x6d\xdb\xb6\x99\x1f\x5f\x00\ \xba\x87\x78\x75\x52\xca\x0e\x60\xe9\x0f\x6d\xa0\x05\x05\x05\x4d\ \xba\x01\xb7\x21\xd3\xf8\xf1\xe3\x59\xb2\x64\x09\xbb\x77\xef\xa6\ \xba\xfa\x8a\x7b\xb8\x23\xca\xfe\xfd\xfb\x59\xb9\x72\x25\x4f\x3e\ \xf9\xa4\xe3\x01\x15\x6c\x4a\x4b\x4b\xab\xad\xf5\xfc\xf9\xf3\x75\ \x8e\x9d\x05\x39\x19\xf2\x97\xd0\xac\x3d\x4a\x39\x00\x88\x02\x3e\ \xff\xa1\x0d\xb6\xb0\xb0\x90\xd7\x5f\x7f\x9d\x76\xed\xda\x85\x6d\ \xa3\xeb\xd4\xa9\x13\x33\x67\xce\x64\xdb\xb6\x6d\xec\xdb\xb7\x8f\ \xcc\xcc\x4c\xab\x7b\x61\x3e\x9f\x8f\xcc\xcc\x4c\x52\x53\x53\xd9\ \xbc\x79\x33\x89\x89\x89\x8e\x0c\xf3\x9a\x32\xc5\xc7\xc7\x03\xb0\ \x61\xc3\x86\x2b\xfe\xec\xf1\xc7\x1f\x0f\xb6\xb8\xf3\x9b\xb9\xda\ \xa8\x26\xb8\x6e\x9f\x87\x15\x0e\xf8\x1f\x0c\x38\x5b\x8c\x37\xf4\ \x04\x3a\x7f\xfe\xbc\xac\x5e\xbd\x5a\x56\xad\x5a\x25\xfb\xf7\xef\ \x0f\x6b\x3d\xdd\xba\x75\x93\xae\x5d\xbb\xd6\x3e\x60\xaf\x6b\xd7\ \xae\x72\xdb\x6d\xb7\x49\xcf\x9e\x3d\xa5\x5d\xbb\x76\xb5\x0f\xf1\ \x6b\xd5\xaa\x55\x9d\x57\x92\xdd\x74\xd3\x4d\x41\x5f\x23\x56\x51\ \x51\x21\x22\xfe\xe7\xd7\x57\x54\x54\xc8\xf1\xe3\xc7\xe5\xe4\xc9\ \x93\x92\x99\x99\x29\x5e\xaf\x57\xbc\x5e\xaf\x64\x66\x66\x4a\x76\ \x76\x76\x58\x97\xab\x67\xcf\x9e\x32\x74\xe8\x50\x59\xb3\x66\x4d\ \x6d\x4d\xa1\x90\x90\x90\x20\xdb\xb7\x6f\x0f\xfa\x67\x5b\xb6\x6c\ \x91\xd1\xa3\x47\x07\x7e\x54\x20\x22\x03\x3d\x1e\x4f\x78\x17\x56\ \xa9\x70\x03\x5e\xc1\x7f\xac\xa3\x5e\x25\x25\x25\x6c\xd8\xb0\x81\ \x01\x03\x06\x38\xbe\x77\x31\x68\xd0\x20\x62\x63\x63\x89\x8d\x8d\ \x65\xe0\xc0\x81\x0c\x1f\x3e\x9c\xbb\xee\xba\x8b\x81\x03\x07\xd6\ \x7e\x1e\x13\x13\xe3\x78\x9d\x51\x51\x51\xbc\xfb\xee\xbb\xe4\xe4\ \xf8\xef\x51\x4f\x4c\x4c\xb4\x36\xef\x5e\xbd\x7a\x91\x9b\x9b\x6b\ \xfe\x8c\x9b\x1b\xba\x4e\x28\x15\xf1\x80\x37\xf0\x5f\xbf\xf3\x83\ \x0e\x1f\x3e\x1c\x92\xeb\xb8\xae\xd5\xe9\x89\x27\x9e\x08\x7a\xf3\ \x78\x55\x55\x15\x23\x47\x8e\xb4\x56\xc7\xa3\x8f\x3e\x1a\xec\xe7\ \x7b\xec\xaa\x2b\x82\x52\x6e\x01\xb4\x01\xde\xa4\x9e\x5b\x7c\x02\ \x15\x17\x17\xf3\xc9\x27\x9f\x30\x75\xea\x54\xc7\x43\xc2\xe9\x69\ \xdc\xb8\x71\xbc\xfb\xee\xbb\x57\xbd\x39\x39\x2b\x2b\xcb\x6a\x5d\ \x5b\xb6\x6c\x31\x4b\xf8\x07\xf0\x1f\x0d\x5c\x1d\x94\x72\x07\xa0\ \x37\x30\x97\x06\xec\x71\x01\x64\x64\x64\x90\x9c\x9c\xcc\x88\x11\ \x23\x88\x8e\x8e\x76\x3c\x40\xc2\x3d\xb5\x68\xd1\x82\xd8\xd8\x58\ \x96\x2c\x59\xc2\x37\xdf\x7c\xd3\xa8\x93\x05\x29\x29\x29\xd6\xea\ \xec\xd2\xa5\x0b\x25\x25\x25\x66\x09\x3a\x34\x54\xd7\x2e\x60\x16\ \x70\xa0\xa1\x1b\x64\x4e\x4e\x0e\x1b\x37\x6e\x64\xfa\xf4\xe9\x8e\ \x07\x4b\xa8\xa7\x49\x93\x26\xb1\x7e\xfd\x7a\x8e\x1d\x3b\xd6\xe0\ \x80\x0a\xe6\xa9\xa7\x9e\xb2\x56\x73\x62\x62\x62\xb0\x12\x9e\x6c\ \xca\xba\xa0\x94\x6b\xe0\xdf\xeb\xda\x08\x9c\x69\xcc\xc6\x79\xf4\ \xe8\x51\x56\xac\x58\xc1\xb3\xcf\x3e\x4b\xbf\x7e\xfd\x1c\x0f\x9d\ \x86\x4e\x3d\x7a\xf4\x60\xfa\xf4\xe9\xbc\xf5\xd6\x5b\x1c\x38\xd0\ \xe0\xbc\x6e\x90\xa2\xa2\x22\x86\x0c\x19\x62\x6d\x59\xb6\x6e\xdd\ \x6a\x96\x50\xd6\xbc\xb5\x41\x35\x84\x5e\xd6\x10\x01\xf0\x1f\x03\ \x19\x21\x22\x4f\x8b\x48\x57\x11\x69\xdb\xd0\xff\xb7\xa0\xa0\x40\ \x2e\x5c\xb8\x20\xc7\x8e\x1d\x93\x5d\xbb\x76\xc9\x89\x13\x27\x24\ \x3b\x3b\x5b\x72\x72\x72\xc4\xeb\xf5\x86\xab\xe4\x1f\xf4\xa3\x1f\ \xfd\x48\x7a\xf7\xee\x2d\xb7\xde\x7a\xab\xf4\xe9\xd3\x47\x62\x63\ \x63\xe5\xee\xbb\xef\x96\x56\xad\x5a\x49\x74\x74\x74\x63\xde\x87\ \x58\x29\x22\x67\xc5\xff\xe2\x5b\x11\x91\xdf\xfd\xd0\x5f\x3e\x74\ \xe8\x50\x7d\x6f\x67\x0e\xb9\x01\x03\x06\xc8\xce\x9d\x3b\x25\x3a\ \x3a\x3a\xf0\xe3\x4d\x1e\x8f\xe7\x01\x2b\x05\x5c\xa7\x34\xb0\x22\ \x0c\x30\x48\x44\x26\x88\xc8\x58\x11\x69\xd2\xdb\x59\x2f\xbf\x7b\ \xf0\xdc\xb9\x73\x52\x5c\x5c\x2c\xe9\xe9\xe9\x72\xe4\xc8\x11\x39\ \x70\xe0\x80\x9c\x38\x71\x22\xa4\xf5\xde\x71\xc7\x1d\xd2\xbf\x7f\ \x7f\xe9\xdb\xb7\xaf\xc4\xc6\xc6\x4a\x54\x54\x94\xb4\x6d\xdb\x56\ \x3a\x77\xee\xdc\x9c\xb7\x3f\x7b\x45\x64\xb3\x88\x6c\xf5\x78\x3c\ \xff\x77\xf9\x43\xe0\xef\x22\xf2\x83\x89\x94\x94\x94\x24\xcf\x3e\ \xfb\x6c\x53\xe7\xdb\x28\x33\x66\xcc\x90\xa4\xa4\x24\xf3\xe3\x71\ \x1e\x8f\x67\xbd\x95\x02\xae\x43\x1a\x58\x11\x0e\x78\x49\x44\xee\ \x15\x91\x18\x11\xf9\x71\xa8\xbe\xb7\xac\xac\x4c\x0a\x0b\x0b\xa5\ \xb4\xb4\x54\xf2\xf2\xf2\x6a\xf7\x7a\x3c\x1e\x8f\x14\x14\x14\xc8\ \x8d\x37\xde\x28\xed\xdb\xb7\xaf\xbd\xa0\x14\x90\x8e\x1d\x3b\x4a\ \xfb\xf6\xed\xa5\x6d\xdb\xb6\xd2\xae\x5d\xbb\x50\x95\x22\x22\x72\ \x51\x44\xd2\x44\xe4\xa0\x88\xfc\xc9\xe3\xf1\x9c\x0c\xf6\x97\x80\ \x01\x22\xb2\x57\xae\xb2\x07\x3a\x72\xe4\x48\xd9\xb9\x73\x67\x28\ \xeb\xab\xd7\xae\x5d\xbb\xe4\xde\x7b\xef\x0d\xfc\xe8\x9c\xf8\x2f\ \x28\x3d\x63\xa5\x00\xa5\x22\x11\xd0\x0b\x78\x00\x78\x07\xff\x4d\ \xd7\x79\x21\x3d\x08\x64\x57\x01\x70\x12\xd8\x00\x3c\x0a\xfc\xa4\ \x11\x7d\xf8\x5d\x7d\x5f\x5a\x51\x51\xc1\xf2\xe5\xcb\xc3\x7a\xfb\ \x93\x39\xf5\xe9\xd3\x87\xbc\xbc\x2b\x7e\x8a\x0d\xcd\xff\xc5\x95\ \xba\x86\x00\x03\x81\xff\x06\x5e\x07\xf6\xe2\xbf\xb2\xbe\xde\x47\ \xde\x38\xa8\x06\xf0\x01\xa9\xf8\x6f\x14\x9f\x0d\x0c\x6b\xe6\xb2\ \xef\x37\x67\x92\x99\x99\xc9\xe4\xc9\x93\x1d\x39\x99\x30\x6f\xde\ \xbc\x60\xcb\xfd\x68\x73\x96\x51\x05\xa7\x43\xc2\x6b\x08\xd0\x51\ \x44\x46\x89\xc8\x5d\x22\x72\xb3\x88\x74\x10\xff\x41\xfc\xee\x96\ \x4a\x38\x2d\xfe\x83\xe4\xff\x10\xff\xd0\x28\x4d\x44\x36\x7b\x3c\ \x9e\x53\xa1\x9c\x09\xd0\x52\x44\x2e\x88\xc8\x8d\x97\x3f\x4b\x49\ \x49\x91\x89\x13\x27\x86\x72\x36\x8d\xb2\x77\xef\x5e\x19\x36\xac\ \x4e\x0e\x17\x7a\x3c\x9e\x28\xa7\xea\xb9\x56\x69\x60\x5d\x07\x80\ \xb6\xe2\x0f\xaf\x6e\x22\xd2\x43\x44\xfe\x5d\x44\x3a\x07\x7c\x76\ \x49\x44\x6e\x10\x91\x16\xe2\xdf\x6b\x08\xe4\x11\x91\xaa\x80\xbf\ \x73\x46\xfc\x81\x94\xf7\xcf\x7f\xa6\xff\xf3\xdf\xcf\x78\x3c\x9e\ \xd2\x70\x2f\xcb\x65\xf8\x8f\xed\xcd\x0b\xfc\x6c\xc6\x8c\x19\xb2\ \x74\xe9\x52\x5b\x25\xd4\x71\xcb\x2d\xb7\x48\x56\x56\x96\xb4\x68\ \xd1\x22\xf0\xe3\x4f\x3c\x1e\xcf\x43\x8e\x14\xa4\x94\x8a\x2c\xc0\ \xdf\x03\xc7\x60\x5e\xaf\xd7\xd1\xeb\xcc\x16\x2c\x58\x10\x6c\x68\ \xf8\x58\xf8\x3b\xa1\x94\x8a\x78\xc0\x3d\x40\x79\x60\x3a\xd8\xbc\ \x4d\x27\xd8\x14\xe4\x4d\x3c\xa1\xbd\x8e\x44\x29\xe5\x5e\xc0\x8b\ \x66\x42\x4c\x9a\x34\xc9\xb1\xc0\x8a\x89\x89\xa1\xb8\xb8\xd8\x2c\ \xe9\x63\x1b\xbd\x50\x4a\xb9\x00\x50\xe7\x6d\xb4\x59\x59\x59\xf4\ \xec\xd9\xd3\xb1\xd0\x7a\xe1\x85\xa0\x2f\x0d\xbf\xdf\x46\x2f\x94\ \x52\x11\x0e\x18\x82\xff\x95\xf2\xb5\x92\x93\x93\x23\x6e\x68\x08\ \xfc\xab\x85\x76\x28\xa5\x22\x1d\xc6\x8b\x6e\x7d\x3e\x5f\xc8\xde\ \x11\xd9\x94\xa9\x6b\xd7\xae\xc1\xf6\xb2\x3e\xb4\xd0\x0a\xa5\x94\ \x1b\x00\xfb\x02\xd3\x21\x37\x37\xd7\xd1\xbd\xac\x57\x5f\x7d\xd5\ \x0c\xac\x2a\x60\xaa\x85\x56\x28\xa5\x22\x1d\x30\xcc\x4c\x88\x95\ \x2b\x57\x3a\x1a\x5a\x87\x0f\x1f\x36\x4b\xca\xb4\xd0\x0a\xa5\x94\ \x1b\x00\x4b\xcc\x84\x18\x3b\x76\xac\x63\x81\x35\x6c\xd8\x30\xca\ \xcb\xcb\xcd\x92\xde\xb6\xd1\x0b\xa5\x94\x0b\x00\xdf\x05\xa6\xc3\ \xf7\xdf\x7f\xef\xe8\x63\xa6\xeb\xb9\xd7\x70\xa4\x8d\x5e\x28\xa5\ \x22\x1c\x30\x16\xb8\x18\x98\x0e\xab\x57\xaf\x76\x74\x68\x18\xe4\ \xac\xe1\xd7\xe8\x59\x43\xa5\x94\x88\x08\xb0\xcc\x4c\x88\xb8\xb8\ \x38\xc7\x02\xeb\x67\x3f\xfb\x19\x35\x35\x57\x3c\x4c\x63\x99\x8d\ \x5e\x28\xa5\x5c\x00\x48\x0b\x4c\x87\x8c\x8c\x0c\x47\xf7\xb2\x96\ \x2d\xbb\x22\x43\x7d\xc0\x2f\x2d\xb4\x42\x29\x15\xe9\x80\x9f\x98\ \x09\xb1\x7c\xf9\x72\x47\x43\x2b\xc8\x59\xc3\x2c\x0b\xad\x50\x4a\ \xb9\x01\xf0\x41\x60\x3a\x54\x56\x56\x3a\x7a\xd6\x30\x3e\x3e\xde\ \x0c\x2c\x80\xc5\x36\x7a\xa1\x94\x72\x01\x20\x33\x30\x1d\xbe\xfb\ \xee\x3b\x47\xf7\xb2\x92\x92\x92\x82\x0d\x0d\x87\x5a\x68\x85\x52\ \x2a\xd2\x01\xff\x89\xff\x2a\xf3\x5a\x4e\xdf\x6b\x78\xe2\xc4\x09\ \x33\xb4\xbe\xb6\xd0\x0a\xa5\x94\x1b\x00\xef\x99\x09\x71\xe7\x9d\ \x77\x3a\x16\x58\x0f\x3e\xf8\x20\x17\x2f\x5e\x34\x4b\xfa\x93\x8d\ \x5e\x28\xa5\x5c\x00\xc8\x0e\x4c\x87\xaf\xbe\xfa\xca\xd1\xbd\xac\ \xb7\xdf\x7e\xdb\x0c\xac\x1a\xe0\x36\x0b\xad\x50\x4a\x45\x3a\xe0\ \xbe\x2b\x8e\x76\x2f\x5e\xec\x68\x68\xa5\xa5\xa5\x99\x25\x1d\xb3\ \xd0\x0a\xa5\x94\x1b\x00\xff\x1b\x98\x0e\xa5\xa5\xa5\xc4\xc7\xc7\ \x3b\x16\x58\x23\x46\x8c\x30\x03\x0b\xe0\x8f\x36\x7a\xa1\x94\x8a\ \x70\x40\x1b\xe0\x74\x60\x3a\xa4\xa7\xa7\x3b\xba\x97\x95\x92\x92\ \x62\x06\x56\x19\x10\x67\xa1\x1d\x4a\xa9\x48\x07\x3c\x6c\x26\xc4\ \xa2\x45\x8b\x1c\x0d\xad\x8c\x8c\x0c\xb3\xa4\x23\x16\x5a\xa1\x94\ \x72\x03\x60\x55\x9d\xa3\xdd\x35\x35\xdc\x73\xcf\x3d\x8e\x05\xd6\ \xf8\xf1\xe3\xa9\xaa\xaa\x32\x43\x6b\xa1\x8d\x5e\x28\xa5\x5c\x00\ \xc8\x0f\x4c\x87\xd4\xd4\x54\x47\xf7\xb2\x3e\xf8\xe0\x03\x33\xb0\ \x6a\x80\x2e\x16\x5a\xa1\x94\x8a\x74\xc0\xe3\x66\x42\x2c\x58\xb0\ \xc0\xd1\xd0\xca\xc9\xc9\x31\x4b\xda\x1d\xfe\x4e\x28\xa5\x5c\x01\ \xf8\x28\x30\x1d\x7c\x3e\x1f\x03\x07\x0e\x74\x2c\xb0\x46\x8f\x1e\ \x6d\x06\x16\xe8\x59\x43\xa5\x94\x88\x08\xd0\x0d\x38\x15\x98\x0e\ \x07\x0e\x1c\x70\x74\x2f\x6b\xdd\xba\x75\x66\x60\x15\xa2\xf7\x1a\ \x2a\xa5\x44\x44\x80\x5f\x99\x09\x31\x67\xce\x1c\xc7\x02\xab\x73\ \xe7\xce\xe4\xe6\xe6\x9a\x25\xa5\xda\xe8\x85\x52\xca\x05\x80\x0d\ \x81\xe9\x50\x56\x56\xc6\xdd\x77\xdf\xed\x58\x68\x8d\x1f\x3f\x3e\ \xd8\xd0\xf0\x45\x1b\xbd\x50\x4a\x45\x38\xa0\x25\xe0\x8d\xa4\xa1\ \x61\x90\x0b\x4a\x8b\x80\x3b\x2c\xb4\x43\x29\x15\xe9\x80\xdf\x98\ \x09\xf1\x87\x3f\xfc\xc1\xd1\xd0\xca\xcf\xcf\x37\x4b\xda\x6e\xa1\ \x15\x4a\x29\x37\x00\xd6\x07\xa6\x83\xcf\xe7\x73\x34\xb0\xa6\x4d\ \x9b\x16\x6c\x68\x38\xc7\x42\x2b\x94\x52\x91\x0e\xe8\x60\x0e\x0d\ \xf7\xec\xd9\xe3\x68\x68\xad\x5d\xbb\xd6\x0c\xac\x0b\x40\x0f\x0b\ \xed\x50\x4a\x45\x3a\x60\xaa\x99\x10\xcf\x3f\xff\xbc\x63\x81\xd5\ \xbb\x77\x6f\x4e\x9f\x3e\x6d\x96\xf4\x99\x8d\x5e\x28\xa5\x5c\x00\ \xd8\x19\x98\x0e\xe7\xce\x9d\xe3\xf6\xdb\x6f\x8f\xb4\xa1\xe1\x93\ \x36\x7a\xa1\x94\x8a\x70\x40\x67\x8c\x7b\x0d\xf7\xed\xdb\xe7\xe8\ \xd0\x70\xc3\x86\x0d\x66\x60\x15\x01\xfd\x2d\xb4\x43\x29\x15\xe9\ \x08\x72\xd6\x30\x31\x31\xd1\xb1\xc0\x8a\x8e\x8e\xc6\xeb\xf5\x9a\ \x25\x6d\xb3\xd1\x0b\xa5\x94\x0b\x00\x7b\x02\xd3\xa1\xa4\xa4\x84\ \x0e\x1d\x3a\x38\x16\x5a\xbf\xf9\xcd\x15\x19\x0a\xf0\xb4\x8d\x5e\ \x28\xa5\x5c\x00\xa8\x08\x4c\x87\x4f\x3f\xfd\xd4\xd1\xa1\xe1\xfa\ \xf5\xeb\xcd\xc0\x2a\xb3\xd0\x06\xa5\x94\x1b\x00\xb3\xcd\x84\x98\ \x3d\x7b\xb6\x63\x81\xd5\xb1\x63\x47\xf2\xf2\xf2\xcc\x92\xfe\x62\ \xa3\x17\x4a\x29\x17\x30\x87\x86\xb9\xb9\xb9\xdc\x7c\xf3\xcd\x8e\ \x85\xd6\xf3\xcf\x3f\x1f\x6c\x68\xf8\x5f\x36\x7a\xa1\x94\x8a\x70\ \xc0\x4f\xf0\x3f\xe6\xa5\xd6\x8e\x1d\x3b\x1c\x1d\x1a\xee\xdb\xb7\ \xcf\x0c\x2c\x2f\xd0\xcd\x42\x3b\x94\x52\x91\x0e\x98\x6e\x26\xc4\ \xb4\x69\xd3\x1c\x0b\xac\xbe\x7d\xfb\x72\xfe\xfc\x79\xb3\x24\x3d\ \x6b\xa8\x94\xf2\x03\x3e\xaf\xb3\x4b\xe3\xf5\xd2\xbb\x77\x6f\xc7\ \x42\x6b\xd6\xac\x59\xc1\x86\x86\x13\x6d\xf4\x42\x29\x15\xe1\x80\ \xbe\x40\x9d\xd7\xdb\x6c\xda\xb4\xc9\xd1\xa1\xe1\xde\xbd\x7b\xcd\ \xc0\x3a\x6b\xa1\x15\x4a\x29\x37\x00\xe6\x99\x09\x31\x73\xe6\x4c\ \x47\x43\xab\xb2\xb2\xd2\x2c\xe9\x23\x0b\xad\x50\x4a\xb9\x01\xc6\ \x59\xc3\xfc\xfc\x7c\x47\x03\x2b\x31\x31\x31\xd8\xd0\xf0\x09\x0b\ \xad\x50\x4a\x45\x3a\x60\x08\x50\x1a\x98\x0e\xab\x57\xaf\x76\x34\ \xb4\xf6\xef\xdf\x6f\x06\x56\xb6\x85\x56\x28\xa5\xdc\x00\x98\x63\ \x26\xc4\xb8\x71\xe3\x1c\x0b\xac\xc1\x83\x07\x53\x5a\x5a\x6a\x96\ \xb4\xd6\x46\x2f\x94\x52\x2e\x00\xd4\xd9\xad\x39\x7b\xf6\x2c\xdd\ \xba\x75\x73\x2c\xb4\xe6\xcc\xb9\x22\x43\x01\xc6\xd8\xe8\x85\x52\ \x2a\xc2\x01\x83\x81\x92\x3a\xbb\x34\x6b\xd7\x3a\x3a\x34\xfc\xe2\ \x8b\x2f\xcc\xc0\x3a\x0e\x74\xb0\xd0\x0e\xa5\x54\xa4\x03\xde\x32\ \x13\x62\xf2\xe4\xc9\x8e\x05\x56\xff\xfe\xfd\xa9\xae\xae\x36\x4b\ \x7a\xcf\x46\x2f\x94\x52\x2e\x00\xd4\xd9\xad\x71\xfa\xac\xe1\x8b\ \x2f\xbe\x68\x06\x96\x0f\x98\x6c\xa1\x15\x4a\xa9\x48\x07\x0c\x00\ \x2e\x05\x26\x44\x4a\x4a\x8a\xa3\xa1\xf5\xb7\xbf\xfd\xcd\x0c\xad\ \xd3\x16\x5a\xa1\x94\x72\x03\xe0\x8d\x3a\xbb\x34\x3e\x1f\xe3\xc7\ \x8f\x77\x2c\xb0\xe2\xe2\xe2\xa8\xaa\xaa\x32\x43\x4b\x87\x86\x4a\ \x29\x3f\x20\x2d\x30\x1d\x32\x32\x32\x1c\xdd\xcb\x5a\xb4\x68\x91\ \x19\x58\x00\xbf\xb4\xd0\x0a\xa5\x54\xa4\x03\x86\xe3\x7f\x6f\x60\ \xad\x8f\x3f\xfe\xd8\xd1\xd0\x4a\x4b\x4b\x33\x03\xeb\x1b\xe0\x26\ \x0b\xed\x50\x4a\x45\x3a\xe0\x35\x33\x21\x12\x12\x12\x1c\x0b\xac\ \xf8\xf8\x78\x2e\x5c\xb8\x60\x96\xf4\xb6\x8d\x5e\x28\xa5\x5c\x00\ \xff\xb5\x4f\xb5\x32\x33\x33\x1d\xdd\xcb\x5a\xbc\x78\xb1\x19\x58\ \xd5\xc0\x3d\x16\x5a\xa1\x94\x8a\x74\x40\x3f\x33\x21\x92\x93\x93\ \x1d\x0d\xad\x20\x17\x94\x9e\xb2\xd0\x0a\xa5\x94\x1b\x00\xcb\xeb\ \xec\xd2\x54\x57\x33\x65\xca\x14\xc7\x02\xeb\xce\x3b\xef\x34\x03\ \x0b\x20\xc9\x46\x2f\x94\x52\x2e\x00\x7c\x17\x98\x0e\xd9\xd9\xd9\ \x8e\xee\x65\xbd\xf7\xde\x7b\x66\x60\x55\x00\x23\x2d\xb4\x42\x29\ \x15\xe9\xf0\x9f\x35\xac\xf3\x74\xbd\x15\x2b\x56\x38\x1a\x5a\xc7\ \x8f\x1f\x37\x43\xeb\x98\x85\x56\x28\xa5\xdc\x00\xe3\x82\x52\x80\ \xb8\xb8\x38\xc7\x02\x6b\xec\xd8\xb1\x54\x54\x54\x98\x25\x2d\xb5\ \xd1\x0b\xa5\x94\x0b\x00\xdf\x06\xa6\xc3\xe1\xc3\x87\x69\xd9\xb2\ \xa5\x63\xa1\x95\x94\x94\x64\x06\xd6\x25\xa0\xab\x8d\x5e\x28\xa5\ \x22\x1c\xf0\x8b\x2b\x76\x69\x96\x2e\x75\x74\x68\x78\xf2\xe4\x49\ \xb3\xa4\x43\x16\x5a\xa1\x94\x72\x03\x8c\xc7\xd0\x54\x57\x57\xf3\ \xc0\x03\x0f\x38\x16\x58\xb1\xb1\xb1\x66\x60\x01\xbc\x6e\xa3\x17\ \x4a\xa9\x08\x07\x74\x34\x87\x86\xa7\x4e\x9d\x72\x74\x2f\x6b\xd5\ \xaa\x55\x66\x60\x95\x02\xa3\x2c\xb4\x43\x29\x15\xe9\x80\x71\x66\ \x42\xbc\xf6\xda\x6b\x8e\x05\x56\x9b\x36\x6d\x38\x73\xe6\x8c\x59\ \x52\xaa\x8d\x5e\x28\xa5\x5c\x00\x78\xa7\xce\xd1\xee\x4b\x97\x88\ \x8f\x8f\x77\x2c\xb4\xe2\xe2\xe2\x02\xcb\xd9\x02\xfc\xd8\x46\x1f\ \x94\x52\x2e\x01\xe4\x04\xa6\xc4\xd7\x5f\x7f\xed\x48\x58\xf5\xe8\ \xd1\x83\x5d\xbb\x76\x01\x14\x03\xb3\xad\x2c\xbc\x52\xca\x5d\x80\ \x29\xf8\x6f\x40\xae\xf5\xea\xab\xaf\x5a\x0d\xab\xc7\x1e\x7b\x8c\ \xbc\xbc\x3c\x80\x72\x60\xb4\xa5\x45\x57\x4a\xb9\x11\xf0\xa1\x79\ \xf0\x28\x26\x26\xc6\x5a\x60\xfd\xf5\xaf\x7f\x0d\x9c\xf5\x4e\x5b\ \xcb\xad\x94\x72\x21\xa0\x2d\x70\xc2\xc9\xa1\x61\x7e\x7e\x7e\xe0\ \xec\x7f\x67\x69\xd1\x95\x52\x6e\x04\xd4\x39\xe2\x0d\xb0\x68\xd1\ \x22\x6b\x81\xb5\x70\xe1\xc2\xc0\x59\x67\x01\xff\x66\x6b\xd9\x95\ \x52\x2e\x04\xac\x0f\x4c\x8d\xb2\xb2\x32\x86\x0e\x1d\x6a\x25\xb0\ \x26\x4f\x9e\x4c\x65\x65\x9d\x7b\xb3\xc7\x5a\x5b\xf0\x26\xb8\xc1\ \xe9\x02\x94\xba\xde\x79\x3c\x9e\x07\x45\x24\xe7\xf2\x7f\xb7\x6e\ \xdd\x5a\x56\xae\x5c\x69\x65\xde\x2d\x5b\xb6\x94\x9b\x6e\xaa\xf3\ \x78\xf7\xd6\x56\x66\xdc\x44\x1a\x58\x4a\x45\x86\x79\x22\x72\xe9\ \xf2\x7f\xf4\xe9\xd3\x47\xde\x7c\xf3\xcd\xb0\xcf\x74\xc8\x90\x21\ \x72\xc3\x0d\x75\x62\xc0\x1b\xf6\x99\x2a\xa5\xdc\x0f\x58\x17\x38\ \x36\xab\xae\xae\xa6\x75\xeb\xd6\x61\x1d\x12\x5e\xbc\x78\x31\x70\ \x96\x27\x80\x68\x8b\x8b\xac\x94\x72\x33\x20\x37\x30\x41\x3e\xff\ \xfc\xf3\xb0\x85\xd5\xde\xbd\x7b\xcd\xe3\xfd\x0b\x6c\x2e\xab\x52\ \xca\xe5\xf0\x5f\x50\x5a\xc7\xcb\x2f\xbf\x1c\xd2\xa0\x6a\xd1\xa2\ \x05\x6b\xd6\xac\x31\x67\xa3\x4f\x1d\x55\x4a\x35\x9e\x79\xd6\xb0\ \xa0\xa0\x80\x41\x83\x06\x85\x24\xac\xa2\xa2\xa2\xd8\xbd\x7b\xb7\ \x19\x56\xf9\xc0\x1d\xd6\x17\x54\x29\xe5\x7e\x40\x67\xe0\x74\x60\ \xa2\x1c\x3c\x78\xb0\xd9\x61\x35\x61\xc2\x04\xbc\x5e\xaf\x19\x56\ \xff\x00\x86\xda\x5f\x4a\xa5\xd4\x35\x03\xf8\x95\x99\x2c\xbf\xff\ \xfd\xef\x11\x11\xba\x77\xef\xce\xba\x75\xeb\xe8\xd0\xa1\x43\x83\ \x82\x6a\xda\xb4\x69\x1c\x3c\x78\xd0\xfc\x3a\x80\xc3\x4e\x2d\x9f\ \x52\xea\x1a\x03\x6c\x0e\x4c\x97\x92\x92\x12\xe6\xce\x9d\x4b\x76\ \x76\xb6\xff\xa0\xd3\xb1\x63\x3c\xf2\xc8\x23\xb4\x69\xd3\xa6\x4e\ \x40\x75\xea\xd4\x89\x51\xa3\x46\x31\x7f\xfe\x7c\x8e\x1f\x3f\x8e\ \xcf\xe7\x33\x83\xaa\x06\x48\x76\x78\xf1\x9a\xc4\xe3\x74\x01\x4a\ \xa9\xfa\x01\x65\x72\x95\x8b\x39\x8f\x1d\x3b\x26\x25\x25\x25\xe2\ \xf1\x78\x04\x90\xe8\xe8\x68\xe9\xd9\xb3\x67\x7d\x7f\x3d\x43\x44\ \x5e\xf0\x78\x3c\x29\xa1\xae\x55\x29\x75\x9d\x03\x9e\x0a\xd8\x33\ \x3a\x02\xdc\x0c\x7c\x14\x6c\x7c\x77\x15\x87\x80\x67\x9c\x5e\x1e\ \xa5\xd4\x35\x0e\xff\x05\xa5\x2b\x8c\xcf\xde\xc3\xff\xd0\xbd\xfa\ \x94\x02\x19\xc0\x27\xc0\x70\xa7\x6a\x0f\x35\x1d\x12\x2a\xe5\x52\ \xc0\x3d\x22\x32\x5c\x44\x7a\x88\xc8\xbf\xfc\xf3\xe3\x2a\x11\x39\ \x25\x22\xa9\x1e\x8f\x67\x9b\x53\xb5\x29\xa5\x94\x52\x4a\x29\xa5\ \x94\x52\x4a\x29\x75\xbd\xfa\x7f\x8e\x73\xbe\x61\xb6\x43\x9b\xff\ \x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\ " qt_resource_name = b"\ \x00\x09\ \x0c\x78\x54\x88\ \x00\x6e\ \x00\x65\x00\x77\x00\x50\x00\x72\x00\x65\x00\x66\x00\x69\x00\x78\ \x00\x23\ \x05\x18\xd7\x67\ \x00\x77\ \x00\x69\x00\x66\x00\x69\x00\x2d\x00\x69\x00\x6e\x00\x73\x00\x69\x00\x67\x00\x68\x00\x74\x00\x2d\x00\x77\x00\x69\x00\x66\x00\x69\ \x00\x2d\x00\x61\x00\x6e\x00\x61\x00\x6c\x00\x79\x00\x7a\x00\x65\x00\x72\x00\x5f\x00\x69\x00\x63\x00\x6f\x00\x6e\x00\x2e\x00\x70\ \x00\x6e\x00\x67\ " qt_resource_struct_v1 = b"\ \x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\ \x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\ \x00\x00\x00\x18\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\ " qt_resource_struct_v2 = b"\ \x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\ \x00\x00\x00\x00\x00\x00\x00\x00\ \x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\ \x00\x00\x00\x00\x00\x00\x00\x00\ \x00\x00\x00\x18\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\ \x00\x00\x01\x7a\x2e\xe5\xc5\x00\ " qt_version = [int(v) for v in QtCore.qVersion().split('.')] if qt_version < [5, 8, 0]: rcc_version = 1 qt_resource_struct = qt_resource_struct_v1 else: rcc_version = 2 qt_resource_struct = qt_resource_struct_v2 def qInitResources(): QtCore.qRegisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data) def qCleanupResources(): QtCore.qUnregisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data) qInitResources()
[ "noreply@github.com" ]
AsmaaGHSamir.noreply@github.com
3a06956157681d057f7bbdbc8f747d55509f04c2
1aedc28d527f0245b7b1ab85ad19345b05cffb1a
/serializers.py
f6d7561ce770043541b7dd6a835f2450d24b3f3a
[]
no_license
YuTaeKim/Portfolio
712dbd919128a9a6ba7d2a2d6cdf5cd104bfdc55
295c4364b824024e91cc6453099b7e7b66133bf7
refs/heads/main
2023-04-13T17:33:08.714537
2021-04-25T12:55:06
2021-04-25T12:55:06
356,792,291
0
0
null
null
null
null
UTF-8
Python
false
false
5,538
py
# Django를 이용한 Data Serializing import random import re from apps.report.models import Report, ReportImage, Comment, ReportHealth from apps.account.models import User from api.account.serializers import UserSerializer from api.center.serializers import CenterSerializer, ProtectorSerializer, GuardianSerializer, ElderSerializer from django.contrib.auth.password_validation import validate_password from django.core.exceptions import ValidationError as DjangoValidationError from django.core.exceptions import ObjectDoesNotExist from django.utils import timezone from rest_framework import serializers from rest_framework.exceptions import ValidationError from drf_extra_fields.fields import Base64ImageField class ReportImageSerializer(serializers.ModelSerializer): file = Base64ImageField() report = serializers.PrimaryKeyRelatedField(queryset=Report.objects.all(), write_only=True, many=True) class Meta: model = ReportImage fields = ( 'id', 'report', 'file' ) class CommentSerializer(serializers.ModelSerializer): class CommentUserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ( 'id', 'type', ) read_only_fields = ('type',) user = CommentUserSerializer() report = serializers.PrimaryKeyRelatedField(write_only=True, queryset=Report.objects.all()) is_mine = serializers.SerializerMethodField() class Meta: model = Comment fields = ( "id", "message", "created_at", "user", 'report', "is_mine" ) def get_is_mine(self, obj): user = self.context['request'].user if obj.user == user: return True return False class CreateCommentSerializer(serializers.ModelSerializer): class Meta: model = Comment fields = ( "id", "user", "message", 'report', ) class CreateReportHealthSerializer(serializers.ModelSerializer): class Meta: model = ReportHealth fields = ( 'report', 'feeling', 'health', 'temperature', 'meal', 'feces', 'sleeping' ) class ReportHealthSerializer(serializers.ModelSerializer): feeling = serializers.SerializerMethodField() health = serializers.SerializerMethodField() temperature = serializers.SerializerMethodField() meal = serializers.SerializerMethodField() feces = serializers.SerializerMethodField() sleeping = serializers.SerializerMethodField() class Meta: model = ReportHealth fields = ( 'feeling', 'health', 'temperature', 'meal', 'feces', 'sleeping' ) def get_feeling(self, obj): return obj.get_feeling_display() def get_health(self, obj): return obj.get_health_display() def get_temperature(self, obj): return obj.get_temperature_display() def get_meal(self, obj): return obj.get_meal_display() def get_feces(self, obj): return obj.get_feces_display() def get_sleeping(self, obj): return obj.get_sleeping_display() class ReportSerializer(serializers.ModelSerializer): class ReportUserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ( 'id', 'image', 'type', ) read_only_fields = ('image', 'type') images = serializers.SerializerMethodField() comments = serializers.SerializerMethodField() health = serializers.SerializerMethodField() is_read = serializers.SerializerMethodField() is_mine = serializers.SerializerMethodField() read_people = serializers.PrimaryKeyRelatedField(queryset=User.objects.all(), many=True, write_only=True) elder = serializers.SerializerMethodField() user = ReportUserSerializer() class Meta: model = Report fields = ( 'id', 'user', 'center', 'elder', 'content', 'created_at', 'health', 'images', 'comments', 'is_read', 'is_mine', 'read_people', ) def get_elder(self, obj): return obj.elder.name def get_is_mine(self, obj): user = self.context['request'].user if obj.user == user: return True return False def get_is_read(self, obj): if self.context['request'].user in obj.read_people.all(): return True else: return False def get_health(self, obj): if hasattr(obj, 'reporthealth'): return ReportHealthSerializer(obj.reporthealth).data return None def get_images(self, obj): images = obj.reportimage_set.all() return ReportImageSerializer(images, many=True).data def get_comments(self, obj): comments = obj.comment_set.all() return CommentSerializer(comments, context=self.context, many=True).data class CreateReportSerializer(serializers.ModelSerializer): class Meta: model = Report fields = ( 'user', 'center', 'elder', 'content', )
[ "noreply@github.com" ]
YuTaeKim.noreply@github.com
9bda4428cf6c2017095ed83c9dc0e3ab523a3edb
668ff51f34eac31931511ec3641c66f82bffaee5
/myewb/apps/group_announcements/models.py
039c3d7087e4a04bedbd932f3d39489865c41b80
[]
no_license
ewbcanada/myewb2
4a81668b37b286638ad80c9f2535770ada200cfc
50cf7698899bed1b31d0a637f72a1e9a5b7fa07a
refs/heads/master
2020-12-01T01:15:09.592117
2011-10-18T22:02:07
2011-10-18T22:02:07
380,073
3
6
null
null
null
null
UTF-8
Python
false
false
3,905
py
from datetime import datetime from django.db import models from django.db.models import Q from django.conf import settings from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from base_groups.models import BaseGroup, GroupMember from lxml.html.clean import clean_html, autolink_html, Cleaner try: set except NameError: from sets import Set as set # Python 2.3 fallback class AnnouncementManager(models.Manager): """ A basic manager for dealing with announcements. """ def current(self, exclude=[], site_wide=False, for_members=False, user=None): """ Fetches and returns a queryset with the current announcements. This method takes the following parameters: ``exclude`` A list of IDs that should be excluded from the queryset. ``site_wide`` A boolean flag to filter to just site wide announcements. ``for_members`` A boolean flag to allow member only announcements to be returned in addition to any others. ``user`` A User object: if provided will also show group-specific messages that this user should see """ queryset = self.all() #if site_wide: # queryset = queryset.filter(site_wide=True) if exclude: queryset = queryset.exclude(pk__in=exclude) if not for_members: queryset = queryset.filter(members_only=False) userfilter = Q(parent_group__isnull=True) if user: userfilter = userfilter | Q(parent_group__member_users=user) queryset = queryset.filter(userfilter) queryset = queryset.order_by("-creation_date") return queryset class Announcement(models.Model): """ A single announcment. """ title = models.CharField(_("title"), max_length=50) content = models.TextField(_("content")) creator = models.ForeignKey(User, verbose_name=_("creator")) creation_date = models.DateTimeField(_("creation_date"), default=datetime.now) #site_wide = models.BooleanField(_("site wide"), default=False) members_only = models.BooleanField(_("members only"), default=False) parent_group = models.ForeignKey(BaseGroup, verbose_name=_("parent group"), null=True, blank=True) objects = AnnouncementManager() def get_absolute_url(self): return ("announcement_detail", [str(self.pk)]) get_absolute_url = models.permalink(get_absolute_url) def save(self, force_insert=False, force_update=False): # validate HTML content # Additional options at http://codespeak.net/lxml/lxmlhtml.html#cleaning-up-html self.content = clean_html(self.content) #self.content = autolink_html(self.content) super(Announcement, self).save(force_insert, force_update) def __unicode__(self): return self.title class Meta: verbose_name = _("announcement") verbose_name_plural = _("announcements") def current_announcements_for_request(request, **kwargs): """ A helper function to get the current announcements based on some data from the HttpRequest. If request.user is authenticated then allow the member only announcements to be returned. Exclude announcements that have already been viewed by the user based on the ``excluded_announcements`` session variable. """ defaults = {} if request.user.is_authenticated(): defaults["for_members"] = True defaults["user"] = request.user defaults["exclude"] = request.session.get("excluded_announcements", set()) defaults.update(kwargs) return Announcement.objects.current(**defaults)
[ "franciskung@ewb.ca" ]
franciskung@ewb.ca
6f2b140930deb418dd4c750f4692b79492bb2a36
4a2a274cb52e36777484986be6c0d6d7a318aa82
/libs/file_utils.py
c35904295c33982deaacdd275ee629c661571089
[ "Apache-2.0" ]
permissive
Adamage/text_comprehension_chatbot
d270a1b627e63200aca1dcfffee591dea6a47594
30e6d014283d6b00402ae7cebb4ab7b28474f6d5
refs/heads/master
2021-01-20T01:50:10.388977
2017-05-04T20:15:24
2017-05-04T20:15:24
89,331,142
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
import urllib.request import os class file_utils: @staticmethod def download_file(url, output_file_name): print("Downloading from url: {0}, to: {1}".format(url, output_file_name)) try: urllib.request.urlretrieve(url, filename=output_file_name) except Exception as e: print("Failed to download file. Details: " + str(e)) raise @staticmethod def ensure_folder_exists(dir_path): if not os.path.isdir(dir_path): os.makedirs(dir_path)
[ "kraftunek@gmail.com" ]
kraftunek@gmail.com
de0174b43db226b6cff8d1ff095d2e7c248442a0
fdffd21d2ff1019d3dfab76167c8adf5830d05db
/babyai/levels/levelgen.py
e27645893ab00e53f2db09925c402bea5d6be7c9
[ "BSD-3-Clause" ]
permissive
Simonyano/babyai-emergent-guidance
caf972645a2dc886051449480744a024fe18a34b
9e37535134c89bd019affa51c7f199d1672811b6
refs/heads/master
2023-05-22T18:56:16.165055
2019-10-03T14:52:00
2019-10-03T14:52:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,590
py
import random from collections import OrderedDict from copy import deepcopy import gym from gym_minigrid.roomgrid import RoomGrid from .verifier import * #Mathijs: from gym_minigrid.minigrid import LockedDoor class RejectSampling(Exception): """ Exception used for rejection sampling """ pass class RoomGridLevel(RoomGrid): """ Base for levels based on RoomGrid A level, given a random seed, generates missions generated from one or more patterns. Levels should produce a family of missions of approximately similar difficulty. """ def __init__( self, room_size=8, **kwargs ): super().__init__( room_size=room_size, **kwargs ) def reset(self, **kwargs): obs = super().reset(**kwargs) # Recreate the verifier self.instrs.reset_verifier(self) # Compute the time step limit based on the maze size and instructions nav_time_room = self.room_size ** 2 nav_time_maze = nav_time_room * self.num_rows * self.num_cols num_navs = self.num_navs_needed(self.instrs) self.max_steps = num_navs * nav_time_maze return obs def step(self, action): obs, reward, done, info = super().step(action) # If we drop an object, we need to update its position in the environment if action == self.actions.drop: self.update_objs_poss() # If we've successfully completed the mission status = self.instrs.verify(action) if status is 'success': done = True reward = self._reward() elif status is 'failure': done = True reward = 0 return obs, reward, done, info def update_objs_poss(self, instr=None): if instr is None: instr = self.instrs if isinstance(instr, BeforeInstr) or isinstance(instr, AndInstr) or isinstance(instr, AfterInstr): self.update_objs_poss(instr.instr_a) self.update_objs_poss(instr.instr_b) else: instr.update_objs_poss() def _gen_grid(self, width, height): # We catch RecursionError to deal with rare cases where # rejection sampling gets stuck in an infinite loop while True: try: super()._gen_grid(width, height) # Generate the mission self.gen_mission() # Validate the instructions self.validate_instrs(self.instrs) except RecursionError as error: print('Timeout during mission generation:', error) continue except RejectSampling as error: #print('Sampling rejected:', error) continue break # Generate the surface form for the instructions self.surface = self.instrs.surface(self) self.mission = self.surface def validate_instrs(self, instr): """ Perform some validation on the generated instructions """ # Gather the colors of locked doors if hasattr(self, 'unblocking') and self.unblocking: colors_of_locked_doors = [] for i in range(self.num_rows): for j in range(self.num_cols): room = self.get_room(i, j) for door in room.doors: #Mathijs #if door and door.is_locked: if door and isinstance(door, LockedDoor): colors_of_locked_doors.append(door.color) if isinstance(instr, PutNextInstr): # Resolve the objects referenced by the instruction instr.reset_verifier(self) # Check that the objects are not already next to each other if instr.objs_next(): raise RejectSampling('objs already next to each other') # Check that we are not asking to move an object next to itself move = instr.desc_move fixed = instr.desc_fixed if len(move.obj_set) == 1 and len(fixed.obj_set) == 1: if move.obj_set[0] is fixed.obj_set[0]: raise RejectSampling('cannot move an object next to itself') if isinstance(instr, ActionInstr): if not hasattr(self, 'unblocking') or not self.unblocking: return # TODO: either relax this a bit or make the bot handle this super corner-y scenarios # Check that the instruction doesn't involve a key that matches the color of a locked door potential_objects = ('desc', 'desc_move', 'desc_fixed') for attr in potential_objects: if hasattr(instr, attr): obj = getattr(instr, attr) if obj.type == 'key' and obj.color in colors_of_locked_doors: raise RejectSampling('cannot do anything with/to a key that can be used to open a door') return if isinstance(instr, SeqInstr): self.validate_instrs(instr.instr_a) self.validate_instrs(instr.instr_b) return assert False, "unhandled instruction type" def gen_mission(self): """ Generate a mission (instructions and matching environment) Derived level classes should implement this method """ raise NotImplementedError @property def level_name(self): return self.__class__.level_name @property def gym_id(self): return self.__class__.gym_id def num_navs_needed(self, instr): """ Compute the maximum number of navigations needed to perform a simple or complex instruction """ if isinstance(instr, PutNextInstr): return 2 if isinstance(instr, ActionInstr): return 1 if isinstance(instr, SeqInstr): na = self.num_navs_needed(instr.instr_a) nb = self.num_navs_needed(instr.instr_b) return na + nb def open_all_doors(self): """ Open all the doors in the maze """ for i in range(self.num_rows): for j in range(self.num_cols): room = self.get_room(i, j) for door in room.doors: if door: door.is_open = True def check_objs_reachable(self, raise_exc=True): """ Check that all objects are reachable from the agent's starting position without requiring any other object to be moved (without unblocking) """ # Reachable positions reachable = set() # Work list stack = [self.start_pos] while len(stack) > 0: i, j = stack.pop() if i < 0 or i >= self.grid.width or j < 0 or j >= self.grid.height: continue if (i, j) in reachable: continue # This position is reachable reachable.add((i, j)) cell = self.grid.get(i, j) # If there is something other than a door in this cell, it # blocks reachability if cell and cell.type is not 'door': continue # Visit the horizontal and vertical neighbors stack.append((i+1, j)) stack.append((i-1, j)) stack.append((i, j+1)) stack.append((i, j-1)) # Check that all objects are reachable for i in range(self.grid.width): for j in range(self.grid.height): cell = self.grid.get(i, j) if not cell or cell.type is 'wall': continue if (i, j) not in reachable: if not raise_exc: return False raise RejectSampling('unreachable object at ' + str((i, j))) # All objects reachable return True class LevelGen(RoomGridLevel): """ Level generator which attempts to produce every possible sentence in the baby language as an instruction. """ def __init__( self, room_size=8, num_rows=3, num_cols=3, num_dists=18, locked_room_prob=0.5, locations=True, unblocking=True, implicit_unlock=True, action_kinds=['goto', 'pickup', 'open', 'putnext'], instr_kinds=['action', 'and', 'seq'], seed=None ): self.num_dists = num_dists self.locked_room_prob = locked_room_prob self.locations = locations self.unblocking = unblocking self.implicit_unlock = implicit_unlock self.action_kinds = action_kinds self.instr_kinds = instr_kinds self.locked_room = None super().__init__( room_size=room_size, num_rows=num_rows, num_cols=num_cols, seed=seed ) def gen_mission(self): self.place_agent() if self._rand_float(0, 1) < self.locked_room_prob: self.add_locked_room() self.connect_all() self.add_distractors(num_distractors=self.num_dists, all_unique=False) # If no unblocking required, make sure all objects are # reachable without unblocking if not self.unblocking: self.check_objs_reachable() # Generate random instructions self.instrs = self.rand_instr( action_kinds=self.action_kinds, instr_kinds=self.instr_kinds ) def add_locked_room(self): start_room = self.room_from_pos(*self.start_pos) # Until we've successfully added a locked room while True: i = self._rand_int(0, self.num_cols) j = self._rand_int(0, self.num_rows) door_idx = self._rand_int(0, 4) self.locked_room = self.get_room(i, j) # Don't lock the room the agent starts in if self.locked_room is start_room: continue # Don't add a locked door in an external wall if self.locked_room.neighbors[door_idx] is None: continue door, _ = self.add_door( i, j, door_idx, locked=True ) # Done adding locked room break # Until we find a room to put the key while True: i = self._rand_int(0, self.num_cols) j = self._rand_int(0, self.num_rows) key_room = self.get_room(i, j) if key_room is self.locked_room: continue self.add_object(i, j, 'key', door.color) break def rand_obj(self, types=OBJ_TYPES, colors=COLOR_NAMES, max_tries=100): """ Generate a random object descriptor """ num_tries = 0 # Keep trying until we find a matching object while True: if num_tries > max_tries: raise RecursionError('failed to find suitable object') num_tries += 1 color = self._rand_elem([None, *colors]) type = self._rand_elem(types) loc = None if self.locations and self._rand_bool(): loc = self._rand_elem(LOC_NAMES) desc = ObjDesc(type, color, loc) # Find all objects matching the descriptor objs, poss = desc.find_matching_objs(self) # The description must match at least one object if len(objs) == 0: continue # If no implicit unlocking is required if not self.implicit_unlock and self.locked_room: # Check that at least one object is not in the locked room pos_not_locked = list(filter( lambda p: not self.locked_room.pos_inside(*p), poss )) if len(pos_not_locked) == 0: continue # Found a valid object description return desc def rand_instr( self, action_kinds, instr_kinds, depth=0 ): """ Generate random instructions """ kind = self._rand_elem(instr_kinds) if kind is 'action': action = self._rand_elem(action_kinds) if action is 'goto': return GoToInstr(self.rand_obj()) elif action is 'pickup': return PickupInstr(self.rand_obj(types=OBJ_TYPES_NOT_DOOR)) elif action is 'open': return OpenInstr(self.rand_obj(types=['door'])) elif action is 'putnext': return PutNextInstr( self.rand_obj(types=OBJ_TYPES_NOT_DOOR), self.rand_obj() ) assert False elif kind is 'and': instr_a = self.rand_instr( action_kinds=action_kinds, instr_kinds=['action'], depth=depth+1 ) instr_b = self.rand_instr( action_kinds=action_kinds, instr_kinds=['action'], depth=depth+1 ) return AndInstr(instr_a, instr_b) elif kind is 'seq': instr_a = self.rand_instr( action_kinds=action_kinds, instr_kinds=['action', 'and'], depth=depth+1 ) instr_b = self.rand_instr( action_kinds=action_kinds, instr_kinds=['action', 'and'], depth=depth+1 ) kind = self._rand_elem(['before', 'after']) if kind is 'before': return BeforeInstr(instr_a, instr_b) elif kind is 'after': return AfterInstr(instr_a, instr_b) assert False assert False # Dictionary of levels, indexed by name, lexically sorted level_dict = OrderedDict() def register_levels(module_name, globals): """ Register OpenAI gym environments for all levels in a file """ # Iterate through global names for global_name in sorted(list(globals.keys())): if not global_name.startswith('Level_'): continue level_name = global_name.split('Level_')[-1] level_class = globals[global_name] # Register the levels with OpenAI Gym gym_id = 'BabyAI-%s-v0' % (level_name) entry_point = '%s:%s' % (module_name, global_name) gym.envs.registration.register( id=gym_id, entry_point=entry_point, ) # Add the level to the dictionary level_dict[level_name] = level_class # Store the name and gym id on the level class level_class.level_name = level_name level_class.gym_id = gym_id def test(): for idx, level_name in enumerate(level_dict.keys()): print('Level %s (%d/%d)' % (level_name, idx+1, len(level_dict))) level = level_dict[level_name] # Run the mission for a few episodes rng = random.Random(0) num_episodes = 0 for i in range(0, 15): mission = level(seed=i) # Check that the surface form was generated assert isinstance(mission.surface, str) assert len(mission.surface) > 0 obs = mission.reset() assert obs['mission'] == mission.surface # Reduce max_steps because otherwise tests take too long mission.max_steps = min(mission.max_steps, 200) # Check for some known invalid patterns in the surface form import re surface = mission.surface assert not re.match(r".*pick up the [^ ]*door.*", surface), surface while True: action = rng.randint(0, mission.action_space.n - 1) obs, reward, done, info = mission.step(action) if done: obs = mission.reset() break num_episodes += 1 # The same seed should always yield the same mission m0 = level(seed=0) m1 = level(seed=0) grid1 = m0.unwrapped.grid grid2 = m1.unwrapped.grid assert grid1 == grid2 assert m0.surface == m1.surface # Check that gym environment names were registered correctly gym.make('BabyAI-1RoomS8-v0') gym.make('BabyAI-BossLevel-v0')
[ "mathijsmul@gmail.com" ]
mathijsmul@gmail.com
c11f30e90247965c11cb521bf29976d8ea7e412a
60ccf143ae59bd2aeb6b831499ba0d4045025588
/Exercicios/Ex112/utilidades/moeda/__init__.py
e5287298ddb3a0e98c7105be80cd9b6ab1862e00
[ "MIT" ]
permissive
RenanRibeiroDaSilva/Meu-Aprendizado-Python
3283fa644214149d41777d6b23f6e98804bf30de
280bf2ad132ae0d26255e70b894fa7dbb69a5d01
refs/heads/main
2023-07-07T22:59:11.725000
2021-08-11T16:47:32
2021-08-11T16:47:32
369,657,470
2
0
MIT
2021-06-01T17:51:28
2021-05-21T21:25:46
Python
UTF-8
Python
false
false
2,188
py
def aumentar(p=0, tax=0, formato=False): """ -> Aumenta o valor inicial em uma porcentagem definida pelo usuário :param p: valor inicial :param tax: valor da taxa :param formato: formatação do valor :return: valor inicial somada a taxa """ res = p + (p * tax/100) return res if not formato else moeda(res) def diminuir(p=0, tax=0, formato=False): """ -> Diminui o valor inicial em um porcentagem definida pelo usuário :param p: valor inicial :param tax: valor da taxa :param formato: formatação do valor :return: valor inicial subtraído a taxa """ res = p - (p * tax/100) return res if not formato else moeda(res) def dobro(p=0, formato=False): """ -> Dobra o valor inicial :param p: valor inicial :param formato: formatação do valor :return: valor inicial em dobro """ res = p * 2 return res if not formato else moeda(res) def metade(p=0, formato=False): """ -> Divide o valor inicial :param p: valor inicial :param formato: formatação do valor :return: valor dividido pela metade """ res = p / 2 return res if not formato else moeda(res) def moeda(p=0, moeda='R$'): """ -> Devolve uma string formatada :param p: valor inserido pelo usuário :param moeda: tipo de moeda :return: valor formatado """ float(p) return f'{moeda}{p:<4.2f}'.replace('.', ',') def resumo(p=0, taxa_a=10, taxa_r=10): """ -> Devolve de os resultados referentes ao valor formatado para o usuário :param p: valor definido pelo usuário :param taxa_a: taxa de aumento, que pode ser defenida pelo usuário :param taxa_r: taxa de redução, que pode ser definida pelo usuário :return: resultado formatado """ print('-' * 30) print('Resumo do resultado'.center(40)) print('-' * 30) print(f'Preço analizado..: \t{moeda(p)}') print(f'Dobro do preço..: \t{dobro(p, True)}') print(f'Metade do preço: \t{metade(p, True)}') print(f'{taxa_a}% de aumento.: \t{aumentar(p, taxa_a, True)}') print(f'{taxa_r}% de desconto.: \t{diminuir(p, taxa_r, True)}') print('-' * 30)
[ "84098891+RenanRibeiroDaSilva@users.noreply.github.com" ]
84098891+RenanRibeiroDaSilva@users.noreply.github.com
851f167b5a0153e22c9f95ffe6d95bb2955f4c04
c67165932f0104335672201fa4d8f99457efc408
/students/students/schema.py
a115d24dd7146986189a0f2e76db1dd8a6fcab49
[]
no_license
serforin0/APICRUDgraphql
04956cf4b06215f89f15c475854c99c506b8f5b3
87cc27ed438e66d73df88a89c6b3cf63e02270b0
refs/heads/master
2023-01-19T23:19:22.990157
2020-11-24T06:01:41
2020-11-24T06:01:41
315,069,751
0
1
null
null
null
null
UTF-8
Python
false
false
236
py
import graphene from students.apps.usuarios import schema class Query(schema.Query, graphene.ObjectType): pass class Mutation(schema.Mutation, graphene.ObjectType): pass schema = graphene.Schema(query=Query, mutation=Mutation)
[ "serforin@gmail.com" ]
serforin@gmail.com
977786f23172d7755d1a91b97e2be2aa6e6fdf41
196f7e3238f961fb5eba7a794f0b0c75d7c30ba1
/Python编程从入门到实践3.6/c14/test14/scoreboard1432.py
1e4ccc14d75b2f90eb13ae01a61a3e897c0ccffe
[]
no_license
Liaoyingjie/Pythonlearn
d0b1b95110017af7e063813660e52c61a6333575
8bca069f38a60719acac5aa39bd347f90ab0bfb1
refs/heads/master
2020-04-08T07:35:07.357487
2018-04-12T16:44:43
2018-04-12T16:44:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,657
py
import pygame.font class Scoreboard(): """显示分类信息.""" def __init__(self, ai_settings,screen,stats): """初始化 统计信息.""" self.screen=screen self.screen_rect = screen.get_rect() self.ai_settings= ai_settings self.stats = stats #显示得分信息使用的字体设置 self.text_color = (30,30,30) self.font= pygame.font.SysFont(None,48) #准备初始的图像 self.prep_score() #显示的是文本,导入了字体的模块,设置字体颜色,实例化一个对象 #然后用 这个字体,转化成图像 def prep_score(self): """将得分渲染成图像""" score_str = str(self.stats.score) self.score_imge = self.font.render(score_str,True,self.text_color,self.ai_settings.bg_color) #将得分放在屏幕右上角 self.score_rect = self.score_imge.get_rect() self.score_rect.right = self.screen_rect.right - 20 self.score_rect.top = 20 #在prep_score() 把sstats.score 变成字符串 传给 创建图像的render #用一个rect 在屏幕右边相聚20像素 锚定在屏幕右边 创建方法show_score()用于渲染好的 得分图像 def show_score(self): '''屏幕显示得分''' self.screen.blit(self.score_imge,self.score_rect)
[ "godzoco@qq.com" ]
godzoco@qq.com
e341ee301c03a8281dc994dce3ab9561bce06dc5
0e7b3650906559fbb0bd4bc1ce199ff82605303b
/Bank Customer Churn Analytics_05102020.py
45f174294c56bed432ed5e1c0fb3e85fe04e2f31
[]
no_license
ArthurShen8118/Bank_Customer_Churn_Analytics
5f4ab718c1a1d7092cef73f0f805b00e2ad329f1
4afc31ae39c6f1787f82d515574b09fcaae9445e
refs/heads/main
2022-12-29T21:06:50.454915
2020-10-23T05:13:22
2020-10-23T05:13:22
304,525,407
0
0
null
null
null
null
UTF-8
Python
false
false
4,505
py
#Part1 # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd np.random.seed(10) # Importing the dataset dataset = pd.read_csv('Churn_Modelling.csv') X= dataset.iloc[:, 3:13].values y = dataset.iloc[:, 13].values # Encoding categorical data # Encoding the Independent Variable from sklearn.preprocessing import OneHotEncoder from sklearn.compose import ColumnTransformer from sklearn.preprocessing import LabelEncoder, OneHotEncoder # 3 Classes Encoding ct = ColumnTransformer(transformers=[('encoder',OneHotEncoder(),[1])], remainder = 'passthrough') X= np.array(ct.fit_transform(X)) # 2 Classes Encoding labelencoder_X_2 = LabelEncoder() X[:, 4] = labelencoder_X_2.fit_transform(X[:, 4]) X=np.around(X.astype(np.double),1) #delete the float and do the round X=X[:,1:] # Splitting the dataset into the Training set and Test set from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 0.2, random_state = 0) # Feature Scaling from sklearn.preprocessing import StandardScaler sc = StandardScaler() X_train = sc.fit_transform(X_train) X_test = sc.transform(X_test) #Part2 #Import import tensorflow import keras from keras.models import Sequential from keras.layers import Dense from keras.layers import Dropout #Initialising the ANN classifier = Sequential() #Input Layer and Hidden layer classifier.add(Dense(units = 6, kernel_initializer = 'uniform', activation = 'relu', input_dim = 11)) #Second Hidden Layer classifier.add(Dense(units = 6, kernel_initializer = 'uniform', activation = 'relu')) classifier.add(Dropout(p = 0.1)) #Output Layer classifier.add(Dense(units = 1, kernel_initializer = 'uniform', activation = 'sigmoid')) #Compling the ANN (how to optimize weight) classifier.compile(optimizer='adam', loss='binary_crossentropy', metrics = ['accuracy']) classifier.save('model') #Fitting the ANN to the Trainning set 'classifier.fit(X_train, y_train, batch_size = 10, epochs = 100)' train_history=classifier.fit(X_test, y_test, validation_split=0.1, batch_size = 10, epochs = 100) # Part 3 - Making predictions and evaluating the model # Predicting the Test set results y_pred = classifier.predict(X_test) y_pred = (y_pred > 0.5) # Making the Confusion Matrix- from sklearn.metrics import confusion_matrix,accuracy_score cm = confusion_matrix(y_test, y_pred) accuracy_score(y_test,y_pred) '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' # Part 4 - Train model v.s. Validation model # Diagram def show_train_history (train_history,train,validation): plt.plot(train_history.history[train]) plt.plot(train_history.history[validation]) plt.title("Train History") plt.ylabel(train) plt.xlabel("Epoch") plt.legend(['train', 'validation'], loc='upper left') plt.show() show_train_history(train_history,'accuracy','val_accuracy') show_train_history(train_history,'loss','val_loss') # Confusion_Matrix import confusion_matrix import matplotlib.pyplot as plt from sklearn.metrics import ConfusionMatrixDisplay display_labels=['Stay','Leave'] disp = ConfusionMatrixDisplay(cm, display_labels) disp = disp.plot(include_values=bool) plt.show() ''' # Part 5 - Adjust Parameter from sklearn.model_selection import GridSearchCV from keras.wrappers.scikit_learn import KerasClassifier def build_classifier(optimizer): classifier = Sequential() classifier.add(Dense(units = 6, kernel_initializer = 'uniform', activation = 'relu', input_dim = 11)) classifier.add(Dropout(p = 0.1)) classifier.add(Dense(units = 6, kernel_initializer = 'uniform', activation = 'relu')) classifier.add(Dropout(p = 0.1)) classifier.add(Dense(units = 1, kernel_initializer = 'uniform', activation = 'sigmoid')) classifier.compile(optimizer = optimizer, loss = 'binary_crossentropy', metrics = ['accuracy']) return classifier classifier = KerasClassifier(build_fn = build_classifier) parameters = {'batch_size': [25, 32], 'epochs': [3, 5], 'optimizer': ['adam', 'rmsprop']} grid_search = GridSearchCV(estimator = classifier, param_grid = parameters, scoring = 'accuracy', cv = 2) grid_search = grid_search.fit(X_train, y_train) best_parameters = grid_search.best_params_ best_accuracy = grid_search.best_score_ '''
[ "noreply@github.com" ]
ArthurShen8118.noreply@github.com
8000eacdb71c07f88911aad0867f20f31d704c2a
a5dadd1b3c3c2a849d05d02882484f2c78885ca9
/ve/Scripts/rst2odt.py
5e4fc893cee483715b2f27c8c1098800a7ad2b0a
[]
no_license
andrey-yakovenko/dm-practice-2
70b5529cd9270a9bf0c9feac42c2696e1a7808ba
be2add42f60f7bf7849104caac4f680bc797524d
refs/heads/master
2022-12-19T19:55:33.725272
2020-10-04T22:26:22
2020-10-04T22:26:22
299,298,955
0
0
null
null
null
null
UTF-8
Python
false
false
817
py
#!C:\Users\HP AY\OneDrive\3--python\dm-practice-2\ve\Scripts\python.exe # $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $ # Author: Dave Kuhlman <dkuhlman@rexx.com> # Copyright: This module has been placed in the public domain. """ A front end to the Docutils Publisher, producing OpenOffice documents. """ import sys try: import locale locale.setlocale(locale.LC_ALL, '') except: pass from docutils.core import publish_cmdline_to_binary, default_description from docutils.writers.odf_odt import Writer, Reader description = ('Generates OpenDocument/OpenOffice/ODF documents from ' 'standalone reStructuredText sources. ' + default_description) writer = Writer() reader = Reader() output = publish_cmdline_to_binary(reader=reader, writer=writer, description=description)
[ "64507369+andrey-yakovenko@users.noreply.github.com" ]
64507369+andrey-yakovenko@users.noreply.github.com
ef92c14badac2b746db985dffaa876c9444caea1
14e36010b98895e08bd9edfcbc60dce30cbfb82b
/oneflow/python/test/modules/test_bce_loss.py
c51aff4ba23c5f1e3e2d253aeecf6e4915dacafd
[ "Apache-2.0" ]
permissive
duzhanyuan/oneflow
a9719befbfe112a7e2dd0361ccbd6d71012958fb
c6b47a3e4c9b5f97f5bc9f60bc1401313adc32c5
refs/heads/master
2023-06-21T20:31:55.828179
2021-07-20T16:10:02
2021-07-20T16:10:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,705
py
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ import unittest from collections import OrderedDict import numpy as np import oneflow.experimental as flow from test_util import GenArgList def _np_bceloss(np_input, np_target, np_weight): np_cross_entropy = -( np_target * np.log(np_input) + (1 - np_target) * np.log(1 - np_input) ) if np_weight is not None: assert ( np_weight.shape == np_input.shape ), "The weight shape must be the same as Input shape" np_weighted_loss = np_weight * np_cross_entropy else: np_weighted_loss = np_cross_entropy np_bce_loss = np_weighted_loss np_bce_loss_sum = np.sum(np_weighted_loss) np_bce_loss_mean = np.mean(np_weighted_loss) return {"none": np_bce_loss, "sum": np_bce_loss_sum, "mean": np_bce_loss_mean} def _test_bceloss_impl(test_case, device, reduction): x = np.array([[1.2, 0.2, -0.3], [0.7, 0.6, -2]]).astype(np.float32) y = np.array([[0, 1, 0], [1, 0, 1]]).astype(np.float32) w = np.array([[2, 2, 2], [2, 2, 2]]).astype(np.float32) input = flow.Tensor( x, dtype=flow.float32, requires_grad=True, device=flow.device(device) ) target = flow.Tensor(y, dtype=flow.float32, device=flow.device(device)) weight = flow.Tensor(w, dtype=flow.float32, device=flow.device(device)) activation = flow.nn.Sigmoid() sigmoid_input = activation(input) loss = flow.nn.BCELoss(weight, reduction=reduction) loss = loss.to(device) of_out = loss(sigmoid_input, target) np_out = _np_bceloss(sigmoid_input.numpy(), y, w)[reduction] test_case.assertTrue(np.allclose(of_out.numpy(), np_out, 1e-5, 1e-5)) of_out = of_out.sum() of_out.backward() if reduction == "none": np_grad = np.array( [[1.5370497, -0.90033215, 0.851115], [-0.6636245, 1.2913125, -1.7615942]] ).astype(np.float32) elif reduction == "sum": np_grad = np.array( [[1.5370497, -0.90033215, 0.851115], [-0.6636245, 1.2913125, -1.7615942]] ).astype(np.float32) else: np_grad = np.array( [ [0.25617492, -0.15005533, 0.14185251], [-0.11060409, 0.21521877, -0.29359904], ] ).astype(np.float32) test_case.assertTrue(np.allclose(input.grad.numpy(), np_grad, 1e-5, 1e-5)) input_none = input = flow.Tensor( np.array([[1.2, 0.2, -0.3], [0.7, 0.6, -2]]).astype(np.float32), dtype=flow.float32, requires_grad=True, device=flow.device(device), ) sigmoid_input_none = activation(input_none) loss_none = flow.nn.BCELoss(reduction=reduction) loss_none = loss_none.to(device) of_out_none = loss_none(sigmoid_input_none, target) np_out_none = _np_bceloss(sigmoid_input.numpy(), y, None)[reduction] test_case.assertTrue(np.allclose(of_out_none.numpy(), np_out_none, 1e-5, 1e-5)) of_out_none = of_out_none.sum() of_out_none.backward() if reduction == "none": np_grad_none = np.array( [[0.7685, -0.4502, 0.4256], [-0.3318, 0.6457, -0.8808]] ).astype(np.float32) elif reduction == "sum": np_grad_none = np.array( [[0.7685, -0.4502, 0.4256], [-0.3318, 0.6457, -0.8808]] ).astype(np.float32) else: np_grad_none = np.array( [[0.1281, -0.0750, 0.0709], [-0.0553, 0.1076, -0.1468]] ).astype(np.float32) test_case.assertTrue(np.allclose(input_none.grad.numpy(), np_grad_none, 1e-4, 1e-4)) input_none = input = flow.Tensor( np.array([[1.2, 0.2, -0.3], [0.7, 0.6, -2]]).astype(np.float32), dtype=flow.float32, requires_grad=True, device=flow.device(device), ) sigmoid_input_none = activation(input_none) loss_none = flow.nn.BCELoss(reduction=reduction) loss_none = loss_none.to(device) of_out_none = loss_none(sigmoid_input_none, target) np_out_none = _np_bceloss(sigmoid_input.numpy(), y, None)[reduction] test_case.assertTrue(np.allclose(of_out_none.numpy(), np_out_none, 1e-5, 1e-5)) of_out_none = of_out_none.sum() of_out_none.backward() if reduction == "none": np_grad_none = np.array( [[0.7685, -0.4502, 0.4256], [-0.3318, 0.6457, -0.8808]] ).astype(np.float32) elif reduction == "sum": np_grad_none = np.array( [[0.7685, -0.4502, 0.4256], [-0.3318, 0.6457, -0.8808]] ).astype(np.float32) else: np_grad_none = np.array( [[0.1281, -0.0750, 0.0709], [-0.0553, 0.1076, -0.1468]] ).astype(np.float32) test_case.assertTrue(np.allclose(input_none.grad.numpy(), np_grad_none, 1e-4, 1e-4)) @flow.unittest.skip_unless_1n1d() class TestBCELossModule(flow.unittest.TestCase): def test_bceloss(test_case): arg_dict = OrderedDict() arg_dict["test_fun"] = [ _test_bceloss_impl, ] arg_dict["device"] = ["cpu", "cuda"] arg_dict["reduction"] = ["none", "sum", "mean"] for arg in GenArgList(arg_dict): arg[0](test_case, *arg[1:]) if __name__ == "__main__": unittest.main()
[ "noreply@github.com" ]
duzhanyuan.noreply@github.com
14f60215ea6b0a613cb57e3778e97c51f5ea653c
1058045bea67cd3c5187861ebde0fdd74df7779e
/spider-master/zhihu_user/zhihu_user/settings.py
f26087f5fe01eab0c483fc12bc800b14fc8db4dc
[]
no_license
CLCLpis/crawler
6ea79eac3c7a4ace83adfb66c42abccdf2e27b0a
a7df3c7abfaaf7300da694f7a9ad75abf996f098
refs/heads/master
2020-03-15T15:41:08.212902
2018-05-05T05:32:35
2018-05-05T05:32:35
132,217,856
0
0
null
null
null
null
UTF-8
Python
false
false
3,303
py
# -*- coding: utf-8 -*- # Scrapy settings for zhihu_user project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en/latest/topics/downloader-middleware.html # http://scrapy.readthedocs.org/en/latest/topics/spider-middleware.html BOT_NAME = 'zhihu_user' SPIDER_MODULES = ['zhihu_user.spiders'] NEWSPIDER_MODULE = 'zhihu_user.spiders' # Crawl responsibly by identifying yourself (and your website) on the user-agent #USER_AGENT = 'zhihu_user (+http://www.yourdomain.com)' # Obey robots.txt rules ROBOTSTXT_OBEY = False # Configure maximum concurrent requests performed by Scrapy (default: 16) #CONCURRENT_REQUESTS = 32 # Configure a delay for requests for the same website (default: 0) # See http://scrapy.readthedocs.org/en/latest/topics/settings.html#download-delay # See also autothrottle settings and docs DOWNLOAD_DELAY = 0.1 # The download delay setting will honor only one of: #CONCURRENT_REQUESTS_PER_DOMAIN = 16 #CONCURRENT_REQUESTS_PER_IP = 16 # Disable cookies (enabled by default) #COOKIES_ENABLED = False # Disable Telnet Console (enabled by default) #TELNETCONSOLE_ENABLED = False # Override the default request headers: DEFAULT_REQUEST_HEADERS = { 'User-Agent':"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36", 'authorization':'oauth c3cef7c66a1843f8b3a9e6a1e3160e20', } # Enable or disable spider middlewares # See http://scrapy.readthedocs.org/en/latest/topics/spider-middleware.html #SPIDER_MIDDLEWARES = { # 'zhihu_user.middlewares.ZhihuUserSpiderMiddleware': 543, #} # Enable or disable downloader middlewares # See http://scrapy.readthedocs.org/en/latest/topics/downloader-middleware.html #DOWNLOADER_MIDDLEWARES = { # 'zhihu_user.middlewares.MyCustomDownloaderMiddleware': 543, #} # Enable or disable extensions # See http://scrapy.readthedocs.org/en/latest/topics/extensions.html #EXTENSIONS = { # 'scrapy.extensions.telnet.TelnetConsole': None, #} # Configure item pipelines # See http://scrapy.readthedocs.org/en/latest/topics/item-pipeline.html ITEM_PIPELINES = { 'zhihu_user.pipelines.MongoPipeline': 300, } # Enable and configure the AutoThrottle extension (disabled by default) # See http://doc.scrapy.org/en/latest/topics/autothrottle.html #AUTOTHROTTLE_ENABLED = True # The initial download delay #AUTOTHROTTLE_START_DELAY = 5 # The maximum download delay to be set in case of high latencies #AUTOTHROTTLE_MAX_DELAY = 60 # The average number of requests Scrapy should be sending in parallel to # each remote server #AUTOTHROTTLE_TARGET_CONCURRENCY = 1.0 # Enable showing throttling stats for every response received: #AUTOTHROTTLE_DEBUG = False # Enable and configure HTTP caching (disabled by default) # See http://scrapy.readthedocs.org/en/latest/topics/downloader-middleware.html#httpcache-middleware-settings #HTTPCACHE_ENABLED = True #HTTPCACHE_EXPIRATION_SECS = 0 #HTTPCACHE_DIR = 'httpcache' #HTTPCACHE_IGNORE_HTTP_CODES = [] #HTTPCACHE_STORAGE = 'scrapy.extensions.httpcache.FilesystemCacheStorage' MONGO_URI = 'localhost' MONGO_DATABASE = 'zhihu'
[ "445453402@qq.com" ]
445453402@qq.com
94fa689a11460479a169a04b410c327093534d49
d1ddb9e9e75d42986eba239550364cff3d8f5203
/google-cloud-sdk/lib/surface/pubsub/topics/create.py
7d9069a19ff657965b70b227e2f178aed596b432
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
bopopescu/searchparty
8ecd702af0d610a7ad3a8df9c4d448f76f46c450
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
refs/heads/master
2022-11-19T14:44:55.421926
2017-07-28T14:55:43
2017-07-28T14:55:43
282,495,798
0
0
Apache-2.0
2020-07-25T17:48:53
2020-07-25T17:48:52
null
UTF-8
Python
false
false
2,263
py
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Cloud Pub/Sub topics create command.""" from apitools.base.py import exceptions as api_ex from googlecloudsdk.api_lib.util import exceptions from googlecloudsdk.calliope import base from googlecloudsdk.command_lib.pubsub import util from googlecloudsdk.core import log class Create(base.CreateCommand): """Creates one or more Cloud Pub/Sub topics. Creates one or more Cloud Pub/Sub topics. ## EXAMPLES To create a Cloud Pub/Sub topic, run: $ {command} mytopic """ @staticmethod def Args(parser): """Registers flags for this command.""" parser.add_argument('topic', nargs='+', help='One or more topic names to create.') def Run(self, args): """This is what gets called when the user runs this command. Args: args: an argparse namespace. All the arguments that were provided to this command invocation. Yields: A serialized object (dict) describing the results of the operation. This description fits the Resource described in the ResourceRegistry under 'pubsub.projects.topics'. """ msgs = self.context['pubsub_msgs'] pubsub = self.context['pubsub'] for topic in args.topic: topic_name = topic topic = msgs.Topic(name=util.TopicFormat(topic_name)) try: result = pubsub.projects_topics.Create(topic) failed = None except api_ex.HttpError as error: result = topic exc = exceptions.HttpException(error) failed = exc.payload.status_message result = util.TopicDisplayDict(result, failed) log.CreatedResource(topic_name, kind='topic', failed=failed) yield result
[ "vinvivo@users.noreply.github.com" ]
vinvivo@users.noreply.github.com
ebfdcda196f3f604fc266e516cf71d77be4523bc
4606b421a0a36491f91eb79e74b03bbf3fd414bc
/restful_weather/wcs_parser/wcs_capabilities.py
bf02bbd15a06fc86de15da7ba780bf5fd2239935
[]
no_license
uk-gov-mirror/informatics-lab.restful-weather
2bf594354ce8ac2f31e9ff300027339f679c316f
244c6a119994b8dcd0a4a1dd4796afc6e25bb2a3
refs/heads/master
2021-05-29T08:54:44.457486
2015-07-16T11:21:41
2015-07-16T11:21:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
#!/usr/bin/env python from bs4 import BeautifulSoup class Capabilities(object): def __init__(self, capabilities_xml): self.capabilities = capabilities_xml self.soup = BeautifulSoup(self.capabilities, 'xml') self.coverages = self.get_coverage_ids() def get_coverage_ids(self): return [id.get_text() for id in self.soup.find_all('CoverageId')]
[ "alexhilsonwork@googlemail.com" ]
alexhilsonwork@googlemail.com
a8788b07a7f8733730d4b9cc13c1554610242700
58e6a8daeb63f78a7e654ff4db3511b9c6a90d83
/基础语法/根据北风网学习的语法/02_numpy数组创建.py
a6c687cdee096c2e03b916c2bc505595a07e630f
[]
no_license
guo0842109/MyAIDemo
53d89017a8e867906a93eada95d751a7a04118db
4208586a60a91cd1ebf27469451c653c5cf4c828
refs/heads/master
2020-06-16T23:05:04.075746
2019-07-26T07:25:30
2019-07-26T07:25:30
195,727,973
0
0
null
null
null
null
UTF-8
Python
false
false
1,345
py
import numpy as np ''' 数组元素为随机值 ''' # a = np.empty((4,4),dtype=np.int) # print(a) # b = np.ones((2,3,4,5)) # print(b) ''' asarray、array 都可以将元组或者list转换为ndarray ''' # a = [1,2,3] # print(type(a)) # b = np.asarray(a) # c = np.array(a) # print(type(b)) # print(type(c)) # d = (1,2,3) # print(d) # print(type(d)) # e = np.array(d) # print(e) # print(type(e)) ''' arange,返回ndarray对象 numpy.arange(start,stop,step,dtype) ''' # f = np.arange(3) # print(f) # print(type(f)) ''' numpy.linspace 与arange函数类似 等差数列 numpy.logspace 等比数列 numpy.logscale(start, stop, num, endpoint, base, dtype) ''' # g = np.logspace(1,2,5,True,base=2) # print(g) # print(type(g)) ''' 其他创建方式 random模块 rand 返回 0 - 1 随机值 randn 返回一个样本具有标准正态分布 randint 返回随机的整数,位于半开区间[low,hight)size = 10 (3,3) random_integers(low[, high, size]) 返回随机的整数,位于闭区间 random 返回随机浮点数 ''' h = np.random.rand(12).reshape(3,-1) print('h=======',h) print('h=======',type(h)) h1 = np.random.randn(12).reshape(3,-1) print('h1=======',h1) print('h1=======',type(h1)) h2 = np.random.randint(1,9,size=9).reshape(-1,3) print('h2=======',h2) print('h2=======',type(h2))
[ "guohaibing@yto.net.cn" ]
guohaibing@yto.net.cn
aa73644684a29a7946ba41d9358ce56440717008
1c3f8f340724497d0edfc193dfe5cdc0497071c3
/models.py
59427e6d860da05ea36bed8cfba8a46133cacd7d
[]
no_license
dnn004/Casting
f56b1ec9e37dfb2904aacd1bf6dab377f6b8c895
0aa56a9ee17e33c14de0b10305b7a0f06d58955b
refs/heads/master
2022-12-02T22:51:18.638752
2020-08-12T04:41:37
2020-08-12T04:41:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,120
py
import os from sqlalchemy import Column, String, Integer, Date, create_engine from flask_sqlalchemy import SQLAlchemy import json database_name = "cast" database_path = os.environ.get("DATABASE_URL") # database_path = "postgresql://{}/{}".format(':5433', database_name) db = SQLAlchemy() def db_drop_and_create_all(): db.drop_all() db.create_all() movies_actors = db.Table( "movies_actors", db.Column( "movie_id", db.Integer, db.ForeignKey("movies.id"), primary_key=True ), db.Column( "actor_id", db.Integer, db.ForeignKey("actors.id"), primary_key=True ) ) ''' setup_db(app) binds a flask application and a SQLAlchemy service ''' def setup_db(app, database_path=database_path): app.config["SQLALCHEMY_DATABASE_URI"] = database_path app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False db.app = app db.init_app(app) db.create_all() class Movie(db.Model): __tablename__ = "movies" id = Column(Integer, primary_key=True) title = Column(String) release_date = Column(Date) actors = db.relationship( "Actor", secondary=movies_actors, lazy="subquery", backref=db.backref("movies", lazy=True) ) def __init__(self, title, release_date): self.title = title self.release_date = release_date def insert(self): db.session.add(self) db.session.commit() def update(self): db.session.commit() def delete(self): db.session.delete(self) db.session.commit() def format(self): # Query for actors in a movie for return actors = db.session.query(movies_actors).join(Movie).join(Actor)\ .filter(Movie.id == self.id).with_entities(Actor.name).all() actors_return = [] for actor in actors: actors_return.append(*actor) return { "id": self.id, "title": self.title, "release_date": self.release_date, "actors": actors_return } class Actor(db.Model): __tablename__ = "actors" id = Column(Integer, primary_key=True) name = Column(String) age = Column(Integer) gender = Column(String) def __init__(self, name, age, gender): self.name = name self.age = age self.gender = gender def insert(self): db.session.add(self) db.session.commit() def update(self): db.session.commit() def delete(self): db.session.delete(self) db.session.commit() def format(self): # Query for movies which an actor was in for return movies = db.session.query(movies_actors).join(Movie).join(Actor)\ .filter(Actor.id == self.id).with_entities(Movie.title).all() movies_return = [] for movie in movies: movies_return.append(*movie) return { "id": self.id, "name": self.name, "age": self.age, "gender": self.gender, "movies": movies_return }
[ "dnn004@ucsd.edu" ]
dnn004@ucsd.edu
073e831eae1dbd3228e8ba05f289d0391a410edb
126bc027a5b7168a20e12dcd60c5da70f1ad9062
/adivinhacao.py
9f6faf7dc36aa0b85252de7ee51f51e84deeac4f
[]
no_license
akeme/Python-codes
7b00b3ba4b53dc0c1f83147477cc2c29214c034a
36590c59254de1f1aed9d6c72bd478a325357701
refs/heads/main
2023-01-14T07:44:10.678693
2020-11-09T19:57:47
2020-11-09T19:57:47
306,344,046
1
0
null
null
null
null
UTF-8
Python
false
false
1,187
py
''' 01 Algoritmo Jogo de Adivinhação 02 Variaveis: 03 secreto, palpite: Inteiro 04 Inicio 05 SAIDA(“Bem-vindo ao jogo de adivinhação”) 06 secreto = NUMERO_ALEATORIO(1,10) 07 palpite = -1 08 SAIDA(“Seu objetivo é acertar o número secreto”) 09 ENQUANTO palpite != secreto FACA 10 SAIDA(“Faça um palpite entre 1 e 10”) 11 <Capture a entrada do jogador e coloque na variável palpite> 12 SE palpite > secreto ENTAO 13 SAIDA(“O número secreto é menor!”) 14 FIM_SE 15 SE palpite < secreto ENTAO 16 SAIDA(“O número secreto é maior!”) 17 FIM_SE 18 FIM_ENQUANTO 19 SAIDA(“Parabéns, você acertou!”) 20 Fim ''' import random secreto = random.randint(0, 10) palpite = -1 print("Bem-vindo ao jogo de adivinhação") while (palpite != secreto): print("Faça um palpite entre 1 e 10 ") palpite = int(input()) if palpite > secreto: print("o número secreto é menor") if palpite < secreto: print("o número secreto é maior") else: print("parabéns você acertou")
[ "noreply@github.com" ]
akeme.noreply@github.com
d483b8c994fc0fb9ff46cbedea01c8355c14bf2d
31952da1a7225be50c7701140d4fab4ccaecb9f1
/index.py
d8f5bade8a05925a9254ee0e3be02921568ff65a
[]
no_license
setra1/Mangrove
3d9d716d040cf5a4ee9c5daf0d08a7ce1efbdef5
863282044965b047b96cd6ca81afd500bf5494ab
refs/heads/main
2023-04-13T17:55:37.937695
2021-04-29T09:20:22
2021-04-29T09:20:22
362,743,142
0
0
null
null
null
null
UTF-8
Python
false
false
15,128
py
#!C:\python37\python.exe import os,sys import cgi import numpy as np import rasterio import cgitb cgitb.enable() print ("Content-type: text/html;\n\n") print print (""" <!DOCTYPE html> <html lang="fr" dir="ltr"> <head> <meta charset="utf-8"> <title>Mangrove</title> <link rel="stylesheet" href="assets/css/bootstrap.min.css"> <link rel="stylesheet" href="assets/css/main.css"> <script src="assets/js/jquery.min.js"></script> <script src="http://dev.openlayers.org/releases/OpenLayers-2.13.1/OpenLayers.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> </head> <script> $(document).ready(function(){ $("#etape2").hide(); $("#etape3").hide(); $("#Message").hide(); $("#Message2").hide(); $("#reponses").hide(); $("#fichiers").hide(); $("#wait").css("display", "none"); $("#btn").click(function(){ $("#wait").css("display", "block"); image2=$("#image2").val(); image1=$("#image1").val(); maxi=$("#maxi").val(); mini=$("#mini").val(); avantValidation(image1,image2,maxi,mini);//lancer le traitement etape 1 }); $("#btnValider").click(function(){ traitementValider(); }); $("#btnNonValider").click(function(){ traitementNonVlider(); }); $("#Continuer").click(function(){ polygone=$("#ZoneSelectionner").val(); if(polygone===""){ alert("Veuillez selectionner un vrai poligone"); }else{ traitementApresValider(); } }); }); function avantValidation(image1,image2,maxi,mini){ $.ajax({ url : 'traitement1.py', type : 'POST', data : 'image2='+image2+'&image1='+image1+'&maxi='+maxi+'&mini='+mini, dataType : 'html', success: function(response) { $('#Resultat').html(response); console.log( response ); $("#wait").css("display", "none");//loader alert("ok"); $("#reponses").show();//aficher les resultats type image $("#etape1").hide(); $("#etape2").show(); }, error: function( response ) { $("#wait").css("display", "none");//loader setTimeout(function(){ alert("ok"); }, 9000); $("#reponses").show();//aficher les resultats type image $("#etape1").hide(); $("#etape2").show(); init(); } }); } function traitementValider(){ $("#etape1").hide(); $("#etape2").hide(); $("#etape3").show(); $("#Message2").show(); } function traitementNonVlider(){ $("#etape2").hide(); $("#etape1").show(); $("#Message").show(); } function traitementApresValider(){ $("#wait").css("display", "block"); polygone=$("#ZoneSelectionner").val(); $.ajax({ url : 'traitement2.py', type : 'POST', data : 'poly='+polygone, dataType : 'html', success: function(response) { $('#Resultat').html(response); $("#wait").css("display", "none"); alert("ok"); $("#fichiers").show(); }, error: function( response ) { alert("non ok"); //console.log( response ); } }); } </script> <script type="text/javascript"> var carte; function init() { var bounds=new OpenLayers.Bounds(318500.00,7223130.00,1087715.73,8674988.64); var options={ maxExtent:bounds, projection:"epsg:32738", units:"m", controls:[ new OpenLayers.Control.Navigation(), new OpenLayers.Control.LayerSwitcher(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.MousePosition(), ], }; carte = new OpenLayers.Map('carte',options); var mangrove_madagascar= new OpenLayers.Layer.WMS( "mangrove_madagascar", "http://localhost:8080/geoserver/mangrove/wms?", { layers: "mangrove:mangrove_madagascar", format:"image/png", transparent:true, srs:"epsg:32738", visibility: true, width:800, height:500 }, {isBaseLayer: false} ); var couche= new OpenLayers.Layer.WMS( "couche", "http://localhost:8080/geoserver/mangrove/wms?", { layers: "mangrove:couche", format:"image/png", transparent:true, srs:"epsg:32738", visibility: true, width:800, height:500 }, {isBaseLayer: false} ); var raster_mangrove= new OpenLayers.Layer.WMS( "mangrove_ndvi", "http://localhost:8080/geoserver/mangrove/wms?", { layers: "mangrove:mangrove_ndvi", format:"image/png", transparent:true, srs:"epsg:32738", visibility: true }, {isBaseLayer: true} ); highlightLayer = new OpenLayers.Layer.Vector("Highlighted Features", { displayInLayerSwitcher: false, isBaseLayer: false } ); carte.addLayers([mangrove_madagascar,couche,raster_mangrove,highlightLayer]); //district.setVisibility(false); //communes.setVisibility(true); carte.addControl(new OpenLayers.Control.MousePosition()); carte.zoomToMaxExtent(); //event var infoControls = { click: new OpenLayers.Control.WMSGetFeatureInfo({ url: 'http://localhost:8080/geoserver/mangrove/wms', title: 'Identify features by clicking', layers: [couche], queryVisible: true, infoFormat:'application/json', output:'features', format:new OpenLayers.Format.JSON, eventListeners: { getfeatureinfo: function(event) { getFeaturesTohilight(event); }} }), }; for (var i in infoControls) { infoControls[i].events.register("getfeatureinfo", this, showInfo); carte.addControl(infoControls[i]); } infoControls.click.activate();; } function showInfo(gid,event,zone) { carte.addPopup(new OpenLayers.Popup.FramedCloud( "chicken", carte.getLonLatFromPixel(event.xy), new OpenLayers.Size(800,600), gid, null, true )); } function getFeaturesTohilight(event){//trouver le nom de shape cliqué et appeler la fonction highlightAndShowInfos var zone; var layers = carte.getLayersBy("visibility", true); for(var i=0;i<layers.length;i++){ if(layers[i].name=="couche"){ zone="couche"; highlightAndShowInfos(event,zone); } } } function highlightAndShowInfos(event,zone){ //pour chercher le gid et polygone de la zone cliquée,puis appeler le showInfo var coords=carte.getLonLatFromPixel(event.xy)+""; var lng=coords.split(",")[0].split("=")[1]; var lat=coords.split(",")[1].split("=")[1]; coords=lng+","+lat; alert(coords); $.get("highlighting.php?point="+coords+"&zone="+zone) .done(function(data) { alert(data); var in_options = { 'internalProjection': new OpenLayers.Projection("EPSG:32738"), 'externalProjection': new OpenLayers.Projection("EPSG:32738") }; var polygon=data.split("===")[0]; var gid=data.split("===")[1]; var feature = new OpenLayers.Format.WKT(in_options).read(polygon);//ici c'est le polygone $("#ZoneSelectionner").val(polygon); /*highlightLayer.destroyFeatures(); highlightLayer.addFeatures([feature]); highlightLayer.redraw(); showInfo(gid,event,zone);*/ }); } </script> <body> <div class="content" style="height: 100%;"> <header class="navbar-fixed-top"> <div class="navbar navbar-default top-menu" style="height: 50px;"> <div class="navbar navbar-left"> </div> <div class="navbar navbar-right"> </div> </div> </header> <section class="container-fluid corps" style="background-color:rgba(84, 75, 75, 0.12);"> <div class="row row-col"> <div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 left" style="background-color: RGBA(31, 31, 65, 0.03)"> <h1>Param&egravetres</h1> <div class="container"> <div class="row"> <form class="form" action="test2.py" method="post"> <fieldset> <legend style="font-size: 12px;font-weight: 700">R&eacutesultats NDVI</legend> <div style="border:1px solid #cccccc;padding-top: 6px"> <div class="form-group"> <label for="">Donn&eacutees 2 :</label> <select class="form-control" name="image2" id="image2"> <option value="STDmean_annual_20190101.tif">STDmean_annual_20190101.tif</option> <option value="STDmean_annual_20170101.tif">STDmean_annual_20170101.tif</option> </select> <label for="">Donn&eacutees 1 :</label> <select class="form-control" name="image1" id="image1"> <option value="STDmean_annual_20190101.tif">STDmean_annual_20190101.tif</option> <option value="STDmean_annual_20170101.tif">STDmean_annual_20170101.tif</option> </select> </div> </div> </fieldset> <fieldset id="field"> <legend style="font-size: 12px;font-weight: 700">Valeurs max, min </legend> <div style="border:1px solid #cccccc;padding-top: 6px"> <div class="form-group"> <div id="Message"><span style="color:#26ca42">Entrer les nouvelles valeurs</span><br><br></div> <label for="">Max :</label> <input type="number" name="max" id="maxi" value="" step="0.1"> <label for="">Min :</label> <input type="number" name="min" id="mini" value="" step="0.1"><br> </div> </div> </fieldset> <input type="hidden" name="ZoneSelectionner" id="ZoneSelectionner" value=""> <div id="etape1"> <button type="button" name="button" id="btn">Lancer</button> </div> <div id="etape2"> <button type="button" name="valider" id="btnValider">Oui</button> <button type="button" name="nonvalider" id="btnNonValider">Non</button> </div> <div id="Message2"><span style="color:#26ca42">Selectionner la zone à calculer</span><br><br></div> <div id="etape3"> <button type="button" name="Continuer" id="Continuer">Continuer</button> </div> <div id="wait" style="width:125px;height:50px;position:absolute;left:82%;margin: -43px;"><img src='assets/images/ZZ5H.gif' width="50" height="50" /> En cours...</div> <div class="form-group"> </div> </form> </div> </div> <div class="tab-menu" id="reponses"> <h1>R&eacutesultats</h1> <div class="col-md-12 col-sm-6"> <div class="list"> <ul class="list-menu"> <li id="visual">Visualisation</li> <li id="pixel">Nbr pixel</li> <li id="surface">Surface</li> </ul> </div> <div class="content-tabs"> <div class="menu active"> <div class="container-fluid"> <div class="col-md-8 left" id="affichage" style="background-image:url('ndvifichier.png');"> </div> <div class="col-md-4 right" id="liens"> <a href="ndvifichier.png" target="_blank">Visualiser</a> <a href="raster/resulat_ndvi_apres_filtre.tif">T&eacutelecharger</a> </div> </div> </div> <div class="menu"> <h2>Nombre de pixel</h2> </div> <div class="menu"> <div id="fichiers"><a href="difference.csv"><img src="assets/images/csv.JPG" width="30px" height="30px"></a></div> <div id="Resultat"></div> </div> </div> </div> </div> </div> <div class="col-lg-8 col-md-8 col-sm-6 right"> <div class="row-fluid"> <!-- block --> <div class="block"> <div class="block-content collapse in"> <div > <div class="form-row"> </div> <div id="layerswitcher" class="olControlLayerSwitcher"></div> <div id="map" style="border: 1px solid #cccccc;;"> <div id="carte" style="width:100%; height:600px;"></div> <div id="wrapper"> </div> </div> </div> </div> </div> </div> </div> </div> </section> </div> <script type="text/javascript" src="assets/js/main.js"></script> </body> </html> """)
[ "noreply@github.com" ]
setra1.noreply@github.com
1df0f3ddad34d03d3030046b631e895d24195cec
206bc27a1afd738b78ed4d30338bfe997df4b07a
/modules/about/admin.py
28f55d93583fb91fae50f7f8a9e4c4ce36b6e624
[]
no_license
RitaTim/cdr
89a67cc96f74a67e4bcc696c3ae99387b7a3d304
5d74ac445d79edcc3003971c8d9862f328a3f920
refs/heads/master
2021-01-21T14:09:03.218308
2017-03-23T06:44:09
2017-03-23T06:44:09
58,033,847
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
# -*- coding: utf-8 -*- from django.contrib import admin from .models import About class AboutAdmin(admin.ModelAdmin): list_display = ('title', 'text') admin.site.register(About, AboutAdmin)
[ "margaritachka@gmail.com" ]
margaritachka@gmail.com
6c925c1bcadc0245ae4920be899059c4ec14c27c
5232ea26d8c2c8601735812719782281ed645b0a
/4-variables.py
c543fd491c86df16a4845bf8a4d5c47002d1f25e
[]
no_license
coder562/python
ff15fcfd61eaa1e5f748be13a85f64d6b33903f8
9a56be1967b914cd878aa69be114a3368ef9b7f9
refs/heads/master
2023-04-16T02:23:40.934304
2021-04-30T12:09:59
2021-04-30T12:09:59
357,539,923
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
num1 = 2 print(num1) num1=4 print(num1) # string,float,int # string name="vaishali" print(name) name=123 print(name) # python is dynamic programmic language #rule 1 # 1number = 4 cant be run-cant be start with a number # leeter,underscore can be taken # special symbol cant be take like $ # snake case writing user_one_name = "vaishali" # camel case writing userOneName = "jain"
[ "vaishalijain654@gmail.com" ]
vaishalijain654@gmail.com
3cd153485fa6a1c2d2c645d73f5d85d394114921
25b7c7eba45d3e641da2cf58f4c64cfa19a31e96
/pulseview-scripts/gpib-pin-namer.py
be375ef1a04f92f3922845b56719802fa93b4cf1
[ "MIT" ]
permissive
pepaslabs/gpib-spy
0bfade13a537d5b5d95c9ceff249ec34e14c554d
c8af76c0cca3b88dc702b4231f7550a356dd1027
refs/heads/master
2020-12-02T18:16:08.771372
2017-08-26T01:16:40
2017-08-26T01:16:40
96,505,749
1
1
null
null
null
null
UTF-8
Python
false
false
2,075
py
#!/usr/bin/env python # gpib-pin-namer.py: rename the probes of an srzip file, according to gpib-spy pin ordering. # See https://github.com/pepaslabs/gpib-spy # Written by Jason Pepas, 2017. Released under the terms of the MIT License. # See https://opensource.org/licenses/MIT import sys import os import zipfile import zlib import tempfile import ConfigParser import shutil # adjust as needed! pinmap = { "DAV": "probe1", "NRFD": "probe2", "NDAC": "probe3", "IFC": "probe4", "ATN": "probe5", "SRQ": "probe6", "REN": "probe7", "EOI": "probe8", "DIO1": "probe9", "DIO2": "probe10", "DIO3": "probe11", "DIO4": "probe12", "DIO5": "probe13", "DIO6": "probe14", "DIO7": "probe15", "DIO8": "probe16" } if len(sys.argv) < 2: sys.stderr.write("gpib-pin-renamer.py: rename the probes of an srzip file.\n") sys.stderr.write("Usage: gpib-pin-renamer.py <srzip filename>\n") sys.exit(1) fname = sys.argv[1] orig_fname = fname + ".orig" assert os.path.exists(orig_fname) == False shutil.move(fname, orig_fname) zin = zipfile.ZipFile(orig_fname, 'r') zout = zipfile.ZipFile(fname, mode='w', compression=zipfile.ZIP_DEFLATED) # Copy the 'version' file with zin.open("version", 'r') as fin: with tempfile.NamedTemporaryFile() as fout: fout.write(fin.read()) fout.flush() zout.write(fout.name, "version") # Copy the 'logic-1-1' file with zin.open("logic-1-1", 'r') as fin: with tempfile.NamedTemporaryFile() as fout: fout.write(fin.read()) fout.flush() zout.write(fout.name, "logic-1-1") # Copy the 'metadata' file, renaming the probes. with zin.open("metadata", 'r') as fin: with tempfile.NamedTemporaryFile() as fout: metadata = ConfigParser.ConfigParser() metadata.readfp(fin) for (pin_name, probe) in pinmap.iteritems(): metadata.set('device 1', probe, pin_name) metadata.write(fout) fout.flush() zout.write(fout.name, "metadata") zin.close() zout.close() os.unlink(orig_fname)
[ "jasonpepas@gmail.com" ]
jasonpepas@gmail.com
59b0b0c2ae063612d556effc933e16f12e660aca
959b2c88182dc1241e708e9c3af0efdeed88b14c
/CNN-1/image_processing.py
5218a54cc0324a9f0f67161e8115ff024d4baf55
[]
no_license
csatacsirke/diplomamunka
f21f0e5eae736eac1ecbfc44a49665a6281d97e7
ddc85871933c8d92bd20cac7489774d7713e967d
refs/heads/master
2021-09-05T14:31:43.279548
2018-01-28T22:05:49
2018-01-28T22:05:49
108,988,428
0
0
null
null
null
null
UTF-8
Python
false
false
4,137
py
import numpy as np import cv2 from log import log import dataset_handler default_input_file_name = 'jura/11.10/Bpas-Verdict.csv' def normalize_image(image, corners, out_width = 1000, out_height = 1000): #image = np.array(pil_image) src = np.array(corners, dtype=np.float32); dst = np.array([[0,out_height], [out_width,out_height], [out_width,0], [0,0]], dtype=np.float32) transform = cv2.getPerspectiveTransform(src, dst) image = cv2.warpPerspective(image, transform,(out_width, out_height)) return image """ dx = np.random.randint(-image.width//4, image.width//4+1) dy = np.random.randint(-image.height//4, image.height//4+1) center_x = image.width // 2 + dx center_y = image.height // 2 + dy # TODO randomizálni kicsit a centert left = center_x - img_width // 2 top = center_y - img_height // 2 right = left + img_width bottom = top + img_height image = image.crop((left, top, right, bottom)) assert(image.width == img_width and image.height == img_height) """ def crop_random(image, dimensions): height, width, channels = image.shape new_width, new_height = dimensions if width < new_width or height < new_height: log("Warning: image_processing.crop_random(image, dimensions): width < new_width or height < new_height") return image rnd = np.random.uniform() offset_x = int(rnd*(width - new_width)) rnd = np.random.uniform() offset_y = int(rnd*(height - new_height)) """ stackoverflow: If we consider (0,0) as top left corner of image called im with left-to-right as x direction and top-to-bottom as y direction. and we have (x1,y1) as the top-left vertex and (x2,y2) as the bottom-right vertex of a rectangle region within that image, then: roi = im[y1:y2, x1:x2] """ image = image[offset_y:offset_y+new_height, offset_x:offset_x+new_width] return image def crop_top_right(image, dimensions): height, width, channels = image.shape new_width, new_height = dimensions if width < new_width or height < new_height: log("Warning: image_processing.crop_top_right(image, dimensions): width < new_width or height < new_height") return image offset_x = width - new_width offset_y = 0 image = image[offset_y:offset_y+new_height, offset_x:offset_x+new_width] return image def crop_center(image, ratio): height, width, channels = image.shape new_width = round(width * ratio) new_height = round(height * ratio) offset_x = (width - new_width) // 2 offset_y = (height - new_height) // 2 image = image[offset_y:offset_y+new_height, offset_x:offset_x+new_width] return image def test(): file_name = "d:\\diplomamunka\\spaceticket\\copy\\spactick_2017_09_11_13_24_47_503__0.png" image = cv2.imread(file_name) corners_list = dataset_handler.read_corners(default_input_file_name) corners = dataset_handler.find_corners_in_list(corners_list, file_name) if corners is None: assert("vaze" == "lofasz") return # 209.000000;1660.000000 # 1434.000000;1687.000000; # 1461.000000;477.000000; # 237.000000;441.000000;, src = np.array(corners, dtype=np.float32); dst = np.array([[0,500], [500,500], [500,0], [0,0]], dtype=np.float32) transform = cv2.getPerspectiveTransform(src, dst) image = cv2.warpPerspective(image, transform,(500, 500)) cv2.imwrite("kicsinyitett_proba.png", image) cv2.imshow('warp test', image) cv2.waitKey(0) cv2.destroyAllWindows() def test2(): file_name = "d:\\diplomamunka\\spaceticket\\copy\\spactick_2017_09_11_13_24_47_503__0.png" image = cv2.imread(file_name) image = crop_top_right(image, (800, 800)) cv2.imshow('crop test', image) cv2.waitKey(0) cv2.destroyAllWindows() def test3(): file_name = "d:\\diplomamunka\\spaceticket\\copy\\normalized_spactick_2017_09_11_13_24_47_503__0.png" image = cv2.imread(file_name) image = crop_center(image, 0.6) cv2.imshow('crop center test', image) cv2.waitKey(0) cv2.destroyAllWindows() if __name__ == "__main__": test3()
[ "battlechicken74@gmail.com" ]
battlechicken74@gmail.com
eaca908738f9697f7604adfa2bd4d184369f52ee
5a07c07b538ac937eb46758663c8477b2797d957
/esadmin/models.py
5d471151e8fd65e688bedca00a65d58b85ace4cc
[]
no_license
17issJLW/es_django
2334be3b46a6be540343a069cab8a53c9aca1371
47a829c86f200ce0eff0fb2ae22cec943a69c7aa
refs/heads/master
2020-09-13T07:41:34.432379
2019-07-11T10:04:00
2019-07-11T10:04:00
222,698,655
0
0
null
null
null
null
UTF-8
Python
false
false
1,858
py
from django.db import models from django.utils import timezone import uuid # Create your models here. class User(models.Model): uid = models.UUIDField(verbose_name="用户id",primary_key=True,auto_created=True,default=uuid.uuid4, editable=False) username = models.CharField(verbose_name="用户名",max_length=32,unique=True) password = models.CharField(verbose_name="用户密码",max_length=128) email = models.EmailField(verbose_name="邮箱") role = models.ForeignKey("Roles", on_delete=models.CASCADE,default=None) is_active = models.BooleanField(default=False) class Meta: verbose_name = '用户表' verbose_name_plural = '用户表' ordering = ['uid', ] # 防止rest_framework.PageNumberPagination 报错 def __str__(self): return '用户 %s %s' % (self.uid, self.username) class Roles(models.Model): ROLE_NAME=( ("admin","admin"), ("user","user") ) role_name = models.CharField(verbose_name="角色名",max_length=32) class Meta: verbose_name = '角色表' verbose_name_plural = '角色表' ordering = ['id',] def __str__(self): return '%s' % (self.role_name) class Comment(models.Model): uuid = models.UUIDField(primary_key=True,auto_created=True,default=uuid.uuid4, editable=False) text = models.CharField(max_length=255) date = models.DateTimeField(default=timezone.now) user = models.ForeignKey("User",on_delete=models.CASCADE) doc = models.CharField(max_length=64) is_anonymous = models.BooleanField(default=False) class Meta: verbose_name = '评论表' verbose_name_plural = '评论表' ordering = ['uuid', ] # 防止rest_framework.PageNumberPagination 报错 def __str__(self): return '%s 评论 %s' % (self.user.username, self.text)
[ "32334181+17issJLW@users.noreply.github.com" ]
32334181+17issJLW@users.noreply.github.com
c90c5a2e44f94b97ff979d0f3257342981e30063
fe8e3ccc75dbddca0c48c6db3b79fe93350c79d3
/port/tests.py
007b7a32c3527ffb2dd42b494335b952da99da33
[ "BSD-3-Clause" ]
permissive
ShivaShankarPuvvada/assignmentsite
1f3d0d6c72166b6efe43ee8c5595cd516f34af43
6f9fb0aff9d34cce20b0bde3be205fd25b5738ce
refs/heads/master
2023-03-20T19:26:20.117317
2021-03-18T10:10:52
2021-03-18T10:10:52
348,745,352
0
0
null
null
null
null
UTF-8
Python
false
false
748
py
from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase from port.models import Movie, Container, Wishlist from port.serializers import WishlistSerializer, MovieSerializer, ContainerSerializer class WishlistCreateTests(APITestCase): # class: WishlistCreate # method:Post def test_can_create_wishlist(self): url = reverse('port:create_wishlist') data = { "name":'my youtube videos', } response = self.client.post(url, data=data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) self.assertEqual(Wishlist.objects.filter(name='my youtube videos').exists(), True)
[ "om.ss.sankar@gmail.com" ]
om.ss.sankar@gmail.com
a47be394d7d2bd1175776add55d602437a334d38
02bf3e48470d103d0f8378eabe982014443f3104
/B_126_Day2.py
7e2eff311064e0cbe478a2b39a87984e88e89f85
[]
no_license
BALaka-18/IEM_Coding-5th-Semester
3cc29b09a932318c3fd65a03f5ae314e498f52f4
ca4e3d267d9c83978636c2e2c8f362da51dbe5fa
refs/heads/master
2022-12-04T11:04:59.365152
2020-08-21T11:35:45
2020-08-21T11:35:45
285,761,474
1
0
null
null
null
null
UTF-8
Python
false
false
1,313
py
from collections import defaultdict # l = [234,567,321,345,123,110,767,111] def countPairs(l,bitp = [],firsts = [],check = defaultdict(list),pairs=0): # Part 1 : Bit scores for num in l: temp = [int(i) for i in str(num)] bit_sc = (11*max(temp)) + (7*min(temp)) bitp.append(bit_sc%100) firsts = list(map(lambda x : x//10, bitp)) # Store the MSBs # Lookup table for i,dig in enumerate(firsts): if i not in check[dig]: check[dig].append(i) else: continue # Part 2 : Count pairs for elem in check.values(): pe,po,p_curr = 0,0,0 t_ev,t_odd = list(filter(lambda x: x%2 == 0, elem)),list(filter(lambda x: x%2 != 0, elem)) # Even indices if len(t_ev) >= 3: pe += 2 elif len(t_ev) == 2: pe += 1 else: pe += 0 # Odd indices if len(t_odd) >= 3: po += 2 elif len(t_odd) == 2: po += 1 else: po += 0 p_curr += (po + pe) if p_curr >= 3: pairs += 2 else: pairs += p_curr return pairs # Driver code if __name__ == "__main__": N = int(input()) l = list(map(int, input().split())) res = countPairs(l) print(res)
[ "noreply@github.com" ]
BALaka-18.noreply@github.com
42a3a55436622b95c7a3e384b774081b2c293389
335a7a7af5eab950e147c79fe42ac52377f5778e
/PartialAgents.py
248384a4c183cf1fff94801f2c8d8b87708eefba
[]
no_license
Fahad2314/Pacman
9d4c56c96543f3662905eec41eee83bf4249203b
c58f0a273a19a02820f42e049c604184c113b50a
refs/heads/master
2020-04-01T14:11:36.502889
2018-10-26T19:55:26
2018-10-26T19:55:26
153,284,480
0
0
null
null
null
null
UTF-8
Python
false
false
21,256
py
# sampleAgents.py # parsons/07-oct-2017 # # Version 1.1 # # Some simple agents to work with the PacMan AI projects from: # # http://ai.berkeley.edu/ # # These use a simple API that allow us to control Pacman's interaction with # the environment adding a layer on top of the AI Berkeley code. # # As required by the licensing agreement for the PacMan AI we have: # # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.edu. # # Attribution Information: The Pacman AI projects were developed at UC Berkeley. # The core projects and autograders were primarily created by John DeNero # (denero@cs.berkeley.edu) and Dan Klein (klein@cs.berkeley.edu). # Student side autograding was added by Brad Miller, Nick Hay, and # Pieter Abbeel (pabbeel@cs.berkeley.edu). # The agents here are extensions written by Simon Parsons, based on the code in # pacmanAgents.py from pacman import Directions from game import Agent import api import random import game import util import collections # RandomAgent # # A very simple agent. Just makes a random pick every time that it is # asked for an action. # SensingAgent # # Doesn't move, but reports sensory data available to Pacman class PartialAgent(Agent): def __init__(self): self.flag = 0 self.counter = 0 # persistent food list that pacman sees as he travels the grid self.food_list = list() # persistent list which follows pacmans footsetps self.pacman_steps = list() # list containing food which is not in pacmans steps so he does not unnecessarily go over his steps in search for food def final(self,state): self.flag = 0 self.counter = 0 self.food_list = list() self.pacman_steps = list() def getAction(self, state): corners = api.corners(state) wall_location = api.walls(state) my_location = api.whereAmI(state) food_location = api.food(state) ghost_location = api.ghosts(state) global flag global food_list global pacman_steps global counter global goal if ghost_location: legal = api.legalActions(state) for ghost in ghost_location: dist_to_ghost= util.manhattanDistance(my_location,ghost) print("manhattan distance:", dist_to_ghost) print("Ghost coordinates:", ghost) if dist_to_ghost <=3 : pathlist_to_ghost = self.bfs(my_location,ghost,wall_location) print("pathlist to ghost", pathlist_to_ghost) if pathlist_to_ghost: banned = pathlist_to_ghost[1] if banned[0] > my_location[0]: legal.remove(Directions.EAST) if Directions.WEST in legal: return api.makeMove(Directions.WEST,legal) else: return api.makeMove(random.choice(legal),legal) elif banned[0] < my_location[0]: legal.remove(Directions.WEST) if Directions.EAST in legal: return api.makeMove(Directions.EAST,legal) else: return api.makeMove(random.choice(legal),legal) elif banned[1] > my_location[1]: legal.remove(Directions.NORTH) if Directions.SOUTH in legal: return api.makeMove(Directions.SOUTH,legal) else: return api.makeMove(random.choice(legal),legal) elif banned[1] < my_location[1]: legal.remove(Directions.SOUTH) if Directions.NORTH in legal: return api.makeMove(Directions.NORTH,legal) else: return api.makeMove(random.choice(legal),legal) else: return api.makeMove(Directions.STOP,legal) if self.flag == 0: # set self flag == 0 print("Flag is 0") #raw_input("Press Enter") legal = api.legalActions(state) # increase self flag so that the getAction will return the next if block x, y = corners[0] # bottom left x = x + 1 y = y + 1 goal = (x, y) if goal not in wall_location: pathlist = self.bfs(my_location, goal, wall_location) direc = self.mapRoute(my_location, pathlist, legal, self.flag) # print("Food visible:", food_location) # add all visible food to the persistent food_location variable for food in food_location: # print(food) if food not in self.food_list: self.food_list.append(food) # add every location that pacman is ever at to the persistent pacman_steps list self.pacman_steps.append(my_location) print("pacman location", my_location) print("direc:", direc) return api.makeMove(direc, legal) else: self.flag = 1 if self.flag == 1: print("Flag is 1") #raw_input("Press Enter") legal = api.legalActions(state) # increase self flag so that the getAction will return the next if block x, y = corners[2] # top left x = x + 1 y = y - 1 goal = (x, y) if goal not in wall_location: pathlist = self.bfs(my_location, goal, wall_location) direc = self.mapRoute(my_location, pathlist, legal, self.flag) # updates the food_list a persistent list of food that pacman see's on his travels print("Food visible:", food_location) for food in food_location: # print(food) if food not in self.food_list: self.food_list.append(food) self.pacman_steps.append(my_location) print("pacman location", my_location) print("direc:", direc) return api.makeMove(direc, legal) else: self.flag = 2 if self.flag == 2: print("Flag is 2") #raw_input("Press Enter") legal = api.legalActions(state) x, y = corners[3] # top right x = x - 1 y = y - 1 goal = (x, y) if goal not in wall_location: pathlist = self.bfs(my_location, goal, wall_location) direc = self.mapRoute(my_location, pathlist, legal, self.flag) for food in food_location: # print(food) if food not in self.food_list: self.food_list.append(food) self.pacman_steps.append(my_location) print("pacman location", my_location) print("direc:", direc) return api.makeMove(direc, legal) else: self.flag = 3 if self.flag == 3: print("Flag is 3") #raw_input("Press Enter") legal = api.legalActions(state) x, y = corners[1] # bottom right x = x - 1 y = y + 1 goal = (x, y) if goal not in wall_location: # pathlist is the bfs which returns the path to the food location pathlist = self.bfs(my_location, goal, wall_location) # pass the bfs pathlist into the direc function direc = self.mapRoute(my_location, pathlist, legal, self.flag) # print("Food visible:", food_location) for food in food_location: # print(food) if food not in self.food_list: self.food_list.append(food) self.pacman_steps.append(my_location) print("pacman location", my_location) print("direc:", direc) global remaining_food remaining_food = list(set(self.food_list) - set(self.pacman_steps)) print("length of remaining food:", len(remaining_food)) return api.makeMove(direc, legal) else: self.flag = 4 return api.makeMove(Directions.STOP, legal) # loop through the list how many times it requires to end the remaining food list while self.flag >=4 : #raw_input("Press Enter") legal = api.legalActions(state) print("the final flag is ", self.flag) # # print("the counter is: ", self.counter) # print("THE GOAL IS :", goal) print("Ordered Food Remaining 1 ", remaining_food) self.pacman_steps.append(my_location) print self.pacman_steps remaining_food = list(set(self.food_list) - set(self.pacman_steps)) # for fruit in remaining_food: # dist_array=[] # distance = util.manhattanDistance(my_location,fruit) # dist_array.append(distance) # x = dist_array.index(min(dist_array)) remaining_food_with_distances = [] for i in remaining_food: remaining_food_with_distances.append((i, util.manhattanDistance(my_location,i))) min = 1000 for i in range(len(remaining_food_with_distances)): if remaining_food_with_distances[i][1] < min: min = remaining_food_with_distances[i][1] #global goal goal = remaining_food_with_distances[i][0] #goal = remaining_food[0] print("Ordered Food Remaining 2 ", remaining_food) pathlist_f = self.bfs(my_location, goal, wall_location) print("PACMAN IS AT:", my_location) print("THE PATHLIST TO THE GOAL IS: ", pathlist_f) direc = self.mapRouteFinal(my_location, pathlist_f, legal, self.flag, self.counter) return api.makeMove(direc, legal) def mapRoute(self, current_location, next_location, legal, flag): # current location calls the api.whereAmI for pacman location, next_location is the pathlist next_location.pop(0) # removes the current location from the pathlist len_of_list = len(next_location) for i in range(len_of_list): # loop runs until the pathlist is empty if len_of_list > 1: # print(next_location) # print("Pacman was at :", current_location) if ((next_location[0][0] - current_location[0]), (next_location[0][1] - current_location[1])) == (1, 0): print("Went East to:", next_location[0]) print("steps left:", len_of_list) if Directions.EAST in legal: return Directions.EAST if ((next_location[0][0] - current_location[0]), (next_location[0][1] - current_location[1])) == ( -1, 0): print("Went West to:", next_location[0]) print("steps left:", len_of_list) if Directions.WEST in legal: return Directions.WEST if ((next_location[0][0] - current_location[0]), (next_location[0][1] - current_location[1])) == (0, 1): print("Went North to:", next_location[0]) print("steps left:", len_of_list) if Directions.NORTH in legal: return Directions.NORTH if ((next_location[0][0] - current_location[0]), (next_location[0][1] - current_location[1])) == ( 0, -1): print("Went South to:", next_location[0]) print("steps left:", len_of_list) if Directions.SOUTH in legal: return Directions.SOUTH if len_of_list == 1: print(next_location) print("steps left:", len_of_list) print("NEW FLAG !!!!!!") # self.flag =1 self.flag = self.flag + 1 if ((next_location[0][0] - current_location[0]), (next_location[0][1] - current_location[1])) == (1, 0): print("Went East to:", next_location[0]) print("steps left:", len_of_list) if Directions.EAST in legal: return Directions.EAST if ((next_location[0][0] - current_location[0]), (next_location[0][1] - current_location[1])) == ( -1, 0): print("Went West to:", next_location[0]) print("steps left:", len_of_list) if Directions.WEST in legal: return Directions.WEST if ((next_location[0][0] - current_location[0]), (next_location[0][1] - current_location[1])) == (0, 1): print("Went North to:", next_location[0]) print("steps left:", len_of_list) if Directions.NORTH in legal: return Directions.NORTH if ((next_location[0][0] - current_location[0]), (next_location[0][1] - current_location[1])) == ( 0, -1): print("Went South to:", next_location[0]) print("steps left:", len_of_list) if Directions.SOUTH in legal: return Directions.SOUTH def mapRouteFinal(self, current_location, next_location, legal, flag, counter): # current location calls the api.whereAmI for pacman location, next_location is the pathlist next_location.pop(0) # removes the current location from the pathlist len_of_list = len(next_location) for i in range(len_of_list): # loop runs until the pathlist is empty if len_of_list > 1: print(next_location) print("Pacman was at :", current_location) if ((next_location[0][0] - current_location[0]), (next_location[0][1] - current_location[1])) == (1, 0): print("Went East to:", next_location[0]) print("steps left:", len_of_list) if Directions.EAST in legal: return Directions.EAST if ((next_location[0][0] - current_location[0]), (next_location[0][1] - current_location[1])) == ( -1, 0): print("Went West to:", next_location[0]) print("steps left:", len_of_list) if Directions.WEST in legal: return Directions.WEST if ((next_location[0][0] - current_location[0]), (next_location[0][1] - current_location[1])) == (0, 1): print("Went North to:", next_location[0]) print("steps left:", len_of_list) if Directions.NORTH in legal: return Directions.NORTH if ((next_location[0][0] - current_location[0]), (next_location[0][1] - current_location[1])) == ( 0, -1): print("Went South to:", next_location[0]) print("steps left:", len_of_list) if Directions.SOUTH in legal: return Directions.SOUTH if len_of_list == 1: print(next_location) print("steps left:", len_of_list) print("NEW FLAG !!!!!!") # self.flag =1 self.flag = self.flag + 1 self.counter = self.counter + 1 # print("new flag:", self.flag) #print("new counter:", self.counter) if ((next_location[0][0] - current_location[0]), (next_location[0][1] - current_location[1])) == (1, 0): print("Went East to:", next_location[0]) print("steps left:", len_of_list) if Directions.EAST in legal: return Directions.EAST if ((next_location[0][0] - current_location[0]), (next_location[0][1] - current_location[1])) == ( -1, 0): print("Went West to:", next_location[0]) print("steps left:", len_of_list) if Directions.WEST in legal: return Directions.WEST if ((next_location[0][0] - current_location[0]), (next_location[0][1] - current_location[1])) == (0, 1): print("Went North to:", next_location[0]) print("steps left:", len_of_list) if Directions.NORTH in legal: return Directions.NORTH if ((next_location[0][0] - current_location[0]), (next_location[0][1] - current_location[1])) == ( 0, -1): print("Went South to:", next_location[0]) print("steps left:", len_of_list) if Directions.SOUTH in legal: return Directions.SOUTH def mapRouteGhost(self, current_location, next_location, legal, flag): # current location calls the api.whereAmI for pacman location, next_location is the pathlist # removes the current location from the pathlist len_of_list = len(next_location) for i in range(len_of_list): if util.manhattanDistance(current_location, next_location[1]) == 2 : # loop runs until the pathlist is empty if next_location[1][0] > current_location[0]: if Directions.EAST in legal: return legal.remove("East") if next_location[1][0] < current_location[0]: if Directions.WEST in legal: return legal.remove("West") if next_location[1][1] > current_location[1]: if Directions.NORTH in legal: return legal.remove("North") if next_location[1][1] < current_location[1]: if Directions.SOUTH in legal: return legal.remove("South") def bfs(self, start, goal, wall_location): queue = collections.deque() visited = set() meta = dict() # initialize meta[start] = (None, None) # append the start/root to the queue for frontier queue.append(start) while queue: # current node is the current node being explored in the frontier from queue start = queue.popleft() # if the current node is the goal then call the construct_path function with current, and meta dict if start == goal: return (self.construct_path(start, meta, goal)) # for child in current node for child, action in self.get_successor(start): if child in visited: continue elif (child not in queue) and (child not in wall_location): meta[child] = (start, action) queue.append(child) visited.add(start) # print(visited) def get_successor(self, my_location): # create a list of children for the current location from pacman api # print(my_location) x, y = my_location children = [] east = ((x + 1, y), (1, 0)) west = ((x - 1, y), (-1, 0)) north = ((x, y + 1), (0, 1)) south = ((x, y - 1), (0, -1)) children.append(east) children.append(west) children.append(north) children.append(south) # print(children) return children def construct_path(self, node, meta, goal): action_list = [] while (meta[node][0] != None): node, action = meta[node] action_list.append(node) action_list.reverse() action_list = (action_list) + [goal] # print(action_list) return action_list def order_list(self, unordered_list): unordered_list.sort() unordered_list.reverse() return unordered_list
[ "noreply@github.com" ]
Fahad2314.noreply@github.com
7539af5bd72553d6c5546bde6f151c405ee9544a
7eec4ad6c95f89d829d3b78b7ec993997df49a24
/chapter1/src/py_files/mnist_with_keras_v2.py
0c73ea2978e7f39985dfae725f03c4263c03ea06
[]
no_license
masa26hiro/deep-learning-with-keras
53749d430cb8b347bf721faa7a38b5108d7c6443
7f4fb75f40b2d534f07e8df79c3d6a6da609cefa
refs/heads/master
2020-08-12T17:42:26.244354
2020-05-16T11:27:54
2020-05-16T11:27:54
214,811,590
2
0
null
2020-05-16T11:27:56
2019-10-13T11:54:50
Jupyter Notebook
UTF-8
Python
false
false
2,921
py
"""add hidden layer """ import numpy as np from tensorflow_core.python.keras.api._v2.keras.datasets import mnist from tensorflow_core.python.keras.api._v2.keras.models import Sequential from tensorflow_core.python.keras.api._v2.keras.layers import Dense, Activation from tensorflow_core.python.keras.api._v2.keras.optimizers import SGD from tensorflow_core.python.keras.api._v2.keras.utils import to_categorical from make_tensorboard import make_tensorboard # 乱数の固定 np.random.seed(1671) # パラメータ設定 NB_EPOCH = 20 # エポック数 BATCH_SIZE = 128 # バッチサイズ VERBOSE = 1 # NB_CLASSES = 10 # 出力数 OPTIMIZER = SGD() # 最適化関数 N_HIDDEN = 128 # 隠れ層数 VALIDATION_SPLIT = 0.2 # 検証データの割合 # データの読み込み (X_train, y_train), (X_test, y_test) = mnist.load_data() RESHAPED = 784 # 28×28 = 784 # データの整形 TRAIN_DATA_SIZE = 60000 TEST_DATA_SIZE = 10000 X_train = X_train.reshape(TRAIN_DATA_SIZE, RESHAPED) X_test = X_test.reshape(TEST_DATA_SIZE, RESHAPED) X_train = X_train.astype('float32') X_test = X_test.astype('float32') # 正規化 X_train /= 255 X_test /= 255 print(X_train.shape[0], 'train sample') print(X_test.shape[0], 'test sample') # ラベルをOne-hotエンコーディング Y_train = to_categorical(y_train, NB_CLASSES) Y_test = to_categorical(y_test, NB_CLASSES) # Sequentialモデルを定義 model = Sequential() # 層を定義 model.add(Dense(N_HIDDEN, input_shape=(RESHAPED,))) # ← 784 × 128 model.add(Activation('relu')) model.add(Dense(N_HIDDEN)) # ← 128 × 128 model.add(Activation('relu')) model.add(Dense(NB_CLASSES)) # ← 128 × 10 model.add(Activation('softmax')) # モデルを評価しTensorBoard互換のログに書き込む model.summary() # モデルをコンパイル # -損失関数 :カテゴリカルクロスエントロピー # -最適化関数:確率的勾配降下法 # -評価関数 :Accuracy(正解率) model.compile(loss='categorical_crossentropy', optimizer=OPTIMIZER, metrics=['accuracy']) callbacks = [make_tensorboard(set_dir_name='keras_MINST_V2')] # 学習 # -バッチサイズ  :128 # -エポック数   :200 # -コールバック関数:make_tensorboard(訓練の各段階で呼び出される関数) # -VERBOSE :詳細表示モードON # -検証データの割合:20% model.fit(X_train, Y_train, batch_size=BATCH_SIZE, epochs=NB_EPOCH, callbacks=callbacks, verbose=VERBOSE, validation_split=VALIDATION_SPLIT) # スコアを表示 score = model.evaluate(X_test, Y_test, verbose=VERBOSE) print("\nTest score:", score[0]) print('Test accuracy:', score[1])
[ "atuto.biwa1123@gmail.com" ]
atuto.biwa1123@gmail.com
b897f8aa10fa308da9ad31ae61f9ebfe42f6e1a7
7235051c8def972f3403bf10155e246c9c291c58
/angola_erp/util/pos.py
08a97f1a33a84046fc03ca7f48407f4f98434233
[ "MIT" ]
permissive
proenterprise/angola_erp
8e79500ce7bcf499fc344948958ae8e8ab12f897
1c171362b132e567390cf702e6ebd72577297cdf
refs/heads/master
2020-06-03T08:51:34.467041
2019-06-07T01:35:54
2019-06-07T01:35:54
191,514,859
1
0
NOASSERTION
2019-06-12T06:53:41
2019-06-12T06:53:41
null
UTF-8
Python
false
false
13,486
py
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe, json from frappe.utils import nowdate from erpnext.setup.utils import get_exchange_rate from erpnext.stock.get_item_details import get_pos_profile from erpnext.accounts.party import get_party_account_currency from erpnext.controllers.accounts_controller import get_taxes_and_charges from frappe.utils import cstr, get_datetime, getdate, cint, get_datetime_str @frappe.whitelist() def get_pos_data(): print ("Get POS DATA ") print ("Get POS DATA ") print ("Get POS DATA ") doc = frappe.new_doc('Sales Invoice') doc.is_pos = 1; pos_profile = get_pos_profile(doc.company) or {} if not doc.company: doc.company = pos_profile.get('company') doc.update_stock = pos_profile.get('update_stock') if pos_profile.get('name'): pos_profile = frappe.get_doc('POS Profile', pos_profile.get('name')) company_data = get_company_data(doc.company) update_pos_profile_data(doc, pos_profile, company_data) update_multi_mode_option(doc, pos_profile) default_print_format = pos_profile.get('print_format') or "Point of Sale" print_template = frappe.db.get_value('Print Format', default_print_format, 'html') #TO DELETE print("Doc ", doc) print("default_customer ", pos_profile.get('customer')) #print("items ", get_items_list(pos_profile)) print("customers ", get_customers_list(pos_profile)) print("serial_no_data ", get_serial_no_data(pos_profile, doc.company)) print("batch_no_data ", get_batch_no_data()) print("tax_data ", get_item_tax_data()) print("price_list_data ", get_price_list_data(doc.selling_price_list)) print ("bin_data ", get_bin_data(pos_profile)) print("pricing_rules ", get_pricing_rule_data(doc)) print("print_template ", print_template) print("pos_profile ", pos_profile) return { 'doc': doc, 'default_customer': pos_profile.get('customer'), 'items': get_items_list(pos_profile), 'customers': get_customers_list(pos_profile), 'serial_no_data': get_serial_no_data(pos_profile, doc.company), 'batch_no_data': get_batch_no_data(), 'tax_data': get_item_tax_data(), 'price_list_data': get_price_list_data(doc.selling_price_list), 'bin_data': get_bin_data(pos_profile), 'pricing_rules': get_pricing_rule_data(doc), 'print_template': print_template, 'pos_profile': pos_profile, 'meta': get_meta() } def get_meta(): doctype_meta = { 'customer': frappe.get_meta('Customer'), 'invoice': frappe.get_meta('Sales Invoice') } for row in frappe.get_all('DocField', fields = ['fieldname', 'options'], filters = {'parent': 'Sales Invoice', 'fieldtype': 'Table'}): doctype_meta[row.fieldname] = frappe.get_meta(row.options) return doctype_meta def get_company_data(company): return frappe.get_all('Company', fields = ["*"], filters= {'name': company})[0] def update_pos_profile_data(doc, pos_profile, company_data): doc.campaign = pos_profile.get('campaign') doc.write_off_account = pos_profile.get('write_off_account') or \ company_data.write_off_account doc.change_amount_account = pos_profile.get('change_amount_account') or \ company_data.default_cash_account doc.taxes_and_charges = pos_profile.get('taxes_and_charges') if doc.taxes_and_charges: update_tax_table(doc) doc.currency = pos_profile.get('currency') or company_data.default_currency doc.conversion_rate = 1.0 if doc.currency != company_data.default_currency: doc.conversion_rate = get_exchange_rate(doc.currency, company_data.default_currency, doc.posting_date) doc.selling_price_list = pos_profile.get('selling_price_list') or \ frappe.db.get_value('Selling Settings', None, 'selling_price_list') doc.naming_series = pos_profile.get('naming_series') or 'SINV-' doc.letter_head = pos_profile.get('letter_head') or company_data.default_letter_head doc.ignore_pricing_rule = pos_profile.get('ignore_pricing_rule') or 0 doc.apply_discount_on = pos_profile.get('apply_discount_on') if pos_profile.get('apply_discount') else '' doc.customer_group = pos_profile.get('customer_group') or get_root('Customer Group') doc.territory = pos_profile.get('territory') or get_root('Territory') doc.terms = frappe.db.get_value('Terms and Conditions', pos_profile.get('tc_name'), 'terms') or doc.terms or '' def get_root(table): root = frappe.db.sql(""" select name from `tab%(table)s` having min(lft)"""%{'table': table}, as_dict=1) return root[0].name def update_multi_mode_option(doc, pos_profile): from frappe.model import default_fields if not pos_profile or not pos_profile.get('payments'): for payment in get_mode_of_payment(doc): payments = doc.append('payments', {}) payments.mode_of_payment = payment.parent payments.account = payment.default_account payments.type = payment.type return for payment_mode in pos_profile.payments: payment_mode = payment_mode.as_dict() for fieldname in default_fields: if fieldname in payment_mode: del payment_mode[fieldname] doc.append('payments', payment_mode) def get_mode_of_payment(doc): return frappe.db.sql(""" select mpa.default_account, mpa.parent, mp.type as type from `tabMode of Payment Account` mpa, `tabMode of Payment` mp where mpa.parent = mp.name and mpa.company = %(company)s""", {'company': doc.company}, as_dict=1) def update_tax_table(doc): taxes = get_taxes_and_charges('Sales Taxes and Charges Template', doc.taxes_and_charges) for tax in taxes: doc.append('taxes', tax) def get_items_list(pos_profile): cond = "1=1" item_groups = [] if pos_profile.get('item_groups'): # Get items based on the item groups defined in the POS profile for d in pos_profile.get('item_groups'): item_groups.extend(get_child_nodes('Item Group', d.item_group)) cond = "item_group in (%s)"%(', '.join(['%s']*len(item_groups))) return frappe.db.sql(""" select name, item_code, item_name, description, item_group, expense_account, has_batch_no, has_serial_no, expense_account, selling_cost_center, stock_uom, image, default_warehouse, is_stock_item, barcode from tabItem where disabled = 0 and has_variants = 0 and is_sales_item = 1 and {cond} """.format(cond=cond), tuple(item_groups), as_dict=1) def get_customers_list(pos_profile): cond = "1=1" customer_groups = [] if pos_profile.get('customer_groups'): # Get customers based on the customer groups defined in the POS profile for d in pos_profile.get('customer_groups'): customer_groups.extend(get_child_nodes('Customer Group', d.customer_group)) cond = "customer_group in (%s)"%(', '.join(['%s']*len(customer_groups))) return frappe.db.sql(""" select name, customer_name, customer_group, territory from tabCustomer where disabled = 0 and {cond}""".format(cond=cond), tuple(customer_groups), as_dict=1) or {} def get_child_nodes(group_type, root): lft, rgt = frappe.db.get_value(group_type, root, ["lft", "rgt"]) return frappe.db.sql_list(""" Select name from `tab{tab}` where lft >= {lft} and rgt <= {rgt}""".format(tab=group_type, lft=lft, rgt=rgt)) def get_serial_no_data(pos_profile, company): # get itemwise serial no data # example {'Nokia Lumia 1020': {'SN0001': 'Pune'}} # where Nokia Lumia 1020 is item code, SN0001 is serial no and Pune is warehouse cond = "1=1" if pos_profile.get('update_stock') and pos_profile.get('warehouse'): cond = "warehouse = '{0}'".format(pos_profile.get('warehouse')) serial_nos = frappe.db.sql("""select name, warehouse, item_code from `tabSerial No` where {0} and company = %(company)s """.format(cond), {'company': company}, as_dict=1) itemwise_serial_no = {} for sn in serial_nos: if sn.item_code not in itemwise_serial_no: itemwise_serial_no.setdefault(sn.item_code, {}) itemwise_serial_no[sn.item_code][sn.name] = sn.warehouse return itemwise_serial_no def get_batch_no_data(): # get itemwise batch no data # exmaple: {'LED-GRE': [Batch001, Batch002]} # where LED-GRE is item code, SN0001 is serial no and Pune is warehouse itemwise_batch = {} batches = frappe.db.sql("""select name, item from `tabBatch` where ifnull(expiry_date, '4000-10-10') >= curdate()""", as_dict=1) for batch in batches: if batch.item not in itemwise_batch: itemwise_batch.setdefault(batch.item, []) itemwise_batch[batch.item].append(batch.name) return itemwise_batch def get_item_tax_data(): # get default tax of an item # example: {'Consulting Services': {'Excise 12 - TS': '12.000'}} itemwise_tax = {} taxes = frappe.db.sql(""" select parent, tax_type, tax_rate from `tabItem Tax`""", as_dict=1) for tax in taxes: if tax.parent not in itemwise_tax: itemwise_tax.setdefault(tax.parent, {}) itemwise_tax[tax.parent][tax.tax_type] = tax.tax_rate return itemwise_tax def get_price_list_data(selling_price_list): itemwise_price_list = {} price_lists = frappe.db.sql("""Select ifnull(price_list_rate, 0) as price_list_rate, item_code from `tabItem Price` ip where price_list = %(price_list)s""", {'price_list': selling_price_list}, as_dict=1) for item in price_lists: itemwise_price_list[item.item_code] = item.price_list_rate return itemwise_price_list def get_bin_data(pos_profile): itemwise_bin_data = {} cond = "1=1" if pos_profile.get('warehouse'): cond = "warehouse = '{0}'".format(pos_profile.get('warehouse')) bin_data = frappe.db.sql(""" select item_code, warehouse, actual_qty from `tabBin` where actual_qty > 0 and {cond}""".format(cond=cond), as_dict=1) for bins in bin_data: if bins.item_code not in itemwise_bin_data: itemwise_bin_data.setdefault(bins.item_code, {}) itemwise_bin_data[bins.item_code][bins.warehouse] = bins.actual_qty return itemwise_bin_data def get_pricing_rule_data(doc): pricing_rules = "" if doc.ignore_pricing_rule == 0: pricing_rules = frappe.db.sql(""" Select * from `tabPricing Rule` where docstatus < 2 and ifnull(for_price_list, '') in (%(price_list)s, '') and selling = 1 and ifnull(company, '') in (%(company)s, '') and disable = 0 and %(date)s between ifnull(valid_from, '2000-01-01') and ifnull(valid_upto, '2500-12-31') order by priority desc, name desc""", {'company': doc.company, 'price_list': doc.selling_price_list, 'date': nowdate()}, as_dict=1) return pricing_rules @frappe.whitelist() def make_invoice(doc_list): if isinstance(doc_list, basestring): doc_list = json.loads(doc_list) name_list = [] for docs in doc_list: for name, doc in docs.items(): if not frappe.db.exists('Sales Invoice', {'offline_pos_name': name}): validate_records(doc) si_doc = frappe.new_doc('Sales Invoice') si_doc.offline_pos_name = name si_doc.update(doc) submit_invoice(si_doc, name) name_list.append(name) else: name_list.append(name) return name_list def validate_records(doc): validate_customer(doc) validate_item(doc) def validate_customer(doc): if not frappe.db.exists('Customer', doc.get('customer')): customer_doc = frappe.new_doc('Customer') customer_doc.customer_name = doc.get('customer') customer_doc.customer_type = 'Company' customer_doc.customer_group = doc.get('customer_group') customer_doc.territory = doc.get('territory') customer_doc.save(ignore_permissions = True) frappe.db.commit() doc['customer'] = customer_doc.name def validate_item(doc): for item in doc.get('items'): if not frappe.db.exists('Item', item.get('item_code')): item_doc = frappe.new_doc('Item') item_doc.name = item.get('item_code') item_doc.item_code = item.get('item_code') item_doc.item_name = item.get('item_name') item_doc.description = item.get('description') item_doc.default_warehouse = item.get('warehouse') item_doc.stock_uom = item.get('stock_uom') item_doc.item_group = item.get('item_group') item_doc.save(ignore_permissions=True) frappe.db.commit() def submit_invoice(si_doc, name): try: si_doc.insert() si_doc.submit() frappe.db.commit() except Exception, e: if frappe.message_log: frappe.message_log.pop() frappe.db.rollback() save_invoice(e, si_doc, name) def save_invoice(e, si_doc, name): if not frappe.db.exists('Sales Invoice', {'offline_pos_name': name}): si_doc.docstatus = 0 si_doc.flags.ignore_mandatory = True si_doc.insert() #Atendimento Bar def get_mesas_list(): print "mesas " print frappe.db.sql(""" select name, nome_mesa, numero_cartao, mesa_image, status_mesa from tabMesas where status_mesa in ('Livre','Ocupada') """, as_dict=1) return frappe.db.sql(""" select name, nome_mesa, numero_cartao, mesa_image, status_mesa from tabMesas where status_mesa in ('Livre','Ocupada') """, as_dict=1) def submit_atendimento(si_doc, name): try: si_doc.insert() si_doc.save() #si_doc.submit() except Exception, e: if frappe.message_log: frappe.message_log.pop() frappe.db.rollback() save_atendimento(e, si_doc, name) def save_atendimento(e, si_doc, name): if not frappe.db.exists('Atendimento Bar', {'offline_pos_name': name}): si_doc.docstatus = 0 si_doc.flags.ignore_mandatory = True si_doc.insert() def as_unicode(text, encoding='utf-8'): #Convert to unicode if required print ("AS UNICODE DEF") if text and not isinstance(text, unicode): if isinstance(text, unicode): return text elif text==None: return '' elif isinstance(text, basestring): return unicode(text, encoding) else: return text or '' return unicode(text)
[ "hcesar@gmail.com" ]
hcesar@gmail.com
fa3d676bbc3f020ad545a8bf79d000525eb4db51
d7ffdefb25b4091cf92f25354ee55535ee2ccd0d
/svnhook/pre-commit.py
9cfd90437dce4996aa506c4eb5246a4a4a300181
[]
no_license
MRlijiawei/demos
5a4c1a0c74fe64f2e009c2b5e0234d57e187e83d
0c69427008fb9d94401c936178775d7cbcbec1a2
refs/heads/master
2022-12-20T08:11:50.629183
2020-12-20T01:35:50
2020-12-20T01:35:50
144,269,765
3
1
null
2022-12-10T13:44:48
2018-08-10T09:59:32
JavaScript
UTF-8
Python
false
false
1,434
py
import sys def err(msg): sys.stderr.write(msg+'\n') svnRepos = sys.argv[1]#提交文件列表 #svnMessageFile = sys.argv[3] #sys.stderr.write(sys.argv[0]+'\n'+sys.argv[1]+'\n'+sys.argv[2]+'\n'+sys.argv[3]+'\n'+sys.argv[4]+'\n')参数依次为脚本路径、文件列表文件、depth、提交的message文件、提交文件的路径 errMsgTable = [] with open(svnRepos) as submitFiles: for submitFile in submitFiles: submitFile = submitFile.replace('\n', '')#去掉文件列表缓存文件中的换行 fp = open(submitFile, 'r', encoding='utf-8') frontLine = '' lNum = 0 for line in fp.readlines():#逐行读取 lNum += 1 line = line.strip().replace(' ','') if (',]' in line) or (',}' in line): errMsgTable.append([submitFile, lNum, 'Illegal Comma']) if len(frontLine) > 0 and len(line) > 0: if (frontLine[-1] == ',') and (line[0] == ']' or line[0] == '}'): errMsgTable.append([submitFile, lNum, 'Illegal Comma']) if len(line) > 0: frontLine = line fp.close() # errMsgTable.append(['', '', 'test']) if errMsgTable: err('===================== error begin ========================================') for msgArr in errMsgTable: err('File:%s line:%s msg :%s' % (msgArr[0], msgArr[1], msgArr[2])) err('===================== error end ==========================================') sys.exit(1) else: sys.exit(0)
[ "noreply@github.com" ]
MRlijiawei.noreply@github.com
b337f6aee723f4459aeec92afd403aed31c8752e
7ba9ba1570ef44ced18bf7689329d5f5d4bcc350
/tests/test_parser.py
9f0adecc75ae53a256f81e2408b05b003e59ff75
[ "MIT" ]
permissive
la-mar/permian-frac-exchange
90992393cdcdb6c6a8b697a5c7d8fc64a4bff2f2
a7ba410c02b49d05c5ad28eff0619a3c198d3fd0
refs/heads/master
2020-06-12T04:40:52.642629
2020-04-14T23:50:07
2020-04-14T23:50:07
194,196,884
0
1
null
null
null
null
UTF-8
Python
false
false
6,248
py
from datetime import datetime import pytest # noqa from collector.parser import ( Parser, Criterion, RegexCriterion, ValueCriterion, TypeCriterion, ParserRule, ) # TODO: incorporate hypothesis @pytest.fixture def parser(conf): yield Parser.init(conf.PARSER_CONFIG["parsers"]["default"]["rules"], name="default") @pytest.fixture def arbitrary_callable(): def return1(value): return 1 yield return1 @pytest.fixture def rule(): fc = RegexCriterion(r"^[-+]?\d*\.\d+$") ic = RegexCriterion(r"^[-+]?[0-9]+$") yield ParserRule(criteria=[fc, ic], allow_partial=True) class TestParser: def test_parse_signed_int(self, parser): inputs = [ "+00001", "+01", "+1", "+11", "-00001", "-01", "-1", "-11", "+0", "-0", "+00", "-00", "+00000", "-00000", ] expected = [1, 1, 1, 11, -1, -1, -1, -11, 0, 0, 0, 0, 0, 0] result = [parser.parse(x) for x in inputs] assert result == expected def test_parse_unsigned_int(self, parser): inputs = ["1", "10"] expected = [1, 10] result = [parser.parse(x) for x in inputs] assert result == expected def test_parse_signed_float(self, parser): inputs = [ "+1.1034", "-1.1034", "+0.1034", "-0.1034", "+11.1034", "+00.1034", "+01.1034", "-11.1034", "-00.1034", "-01.1034", "+1234567890.1034", "-1234567890.1034", "+31.24141", "-101.98853", ] expected = [ 1.1034, -1.1034, 0.1034, -0.1034, 11.1034, 0.1034, 1.1034, -11.1034, -0.1034, -1.1034, 1234567890.1034, -1234567890.1034, 31.24141, -101.98853, ] result = [parser.parse(x) for x in inputs] assert result == expected def test_parse_unsigned_float(self, parser): inputs = [ "1.1034", "0.1034", "11.1034", "00.1034", "01.1034", "1234567890.1034", "31.24141", "101.98853", ] expected = [ 1.1034, 0.1034, 11.1034, 0.1034, 1.1034, 1234567890.1034, 31.24141, 101.98853, ] result = [parser.parse(x) for x in inputs] assert result == expected def test_parse_datetime(self, parser): inputs = [ "2019-01-01", "2019/01/01", "19-01-01", "9/11/2014 12:00:00 AM", "9/25/2014 5:00:00 AM", ] expected = [ datetime(year=2019, month=1, day=1), datetime(year=2019, month=1, day=1), datetime(year=2001, month=1, day=19), datetime(year=2014, month=9, day=11, hour=0), datetime(year=2014, month=9, day=25, hour=5), ] result = [parser.parse(x) for x in inputs] assert result == expected def test_ignore_clouded_datetime(self, parser): inputs = [ "qwe2019-01-01", "2019-01-01rte", "3242019-01-01", ] assert parser.parse_many(inputs) == inputs def test_ignore_incomplete_datetime(self, parser): inputs = ["2019-01"] assert parser.parse_many(inputs) == inputs def test_parse_bool(self, parser): inputs = ["true", "True", "false", "False"] expected = [True, True, False, False] result = [parser.parse(x) for x in inputs] assert result == expected def test_parser_repr(self, parser): repr(parser) def test_parser_rule_repr(self, rule): repr(rule) def test_try_date(self, parser): assert parser.try_date("2019-01-01") == datetime(2019, 1, 1) def test_try_date_handle_none(self, parser): assert parser.try_date(None) is None def test_add_rule(self, rule): parser = Parser(rules=[rule, rule]) parser.add_rule(rule) assert len(parser.rules) == 3 class TestCriterion: def test_criterion_repr_works(self): repr(Criterion(lambda x: 1, name="test")) def test_regexcriterion_repr_works(self): repr(RegexCriterion(r"\w", name="test")) def test_criterion_callable(self): c = Criterion(lambda x: 1, name="test") assert c(1) == 1 def test_regex_criterion(self): rc = RegexCriterion("\w") assert rc("test value") is True def test_type_criterion_int(self): tc = TypeCriterion(int) assert tc(1) is True def test_type_criterion_string_is_not_int(self): tc = TypeCriterion(str) assert tc(1) is False def test_value_criterion_parse_value(self): vc = ValueCriterion(123) assert vc(123) is True def test_rule_repr(self, rule): repr(rule) def test_rule_return_partials(self, rule): assert rule("123.321", return_partials=True) == [True, False] def test_get_match_mode(self, rule): assert rule.match_mode == "PARTIAL" def test_toggle_match_mode(self, rule): rule.allow_partial = False assert rule.match_mode == "FULL" def test_partial_parse(self, rule): assert rule("123") is True assert rule("132.32") is True assert rule("test553.23") is False assert rule("55test") is False assert rule("55.123test") is False assert rule("test55.123") is False def test_full_parse(self): fc = RegexCriterion(r"^[-+]?\d*\.\d+$") fc2 = RegexCriterion(r"^[-+]?\d*\.\d+$") rule = ParserRule(criteria=[fc, fc2], allow_partial=False) assert rule("132.32") is True assert rule("test553.23") is False assert rule("55test") is False assert rule("55.123test") is False assert rule("test55.123") is False
[ "brocklfriedrich@gmail.com" ]
brocklfriedrich@gmail.com
b2f0f8b313ca9593ccf205bdc78c29e57c2c5e11
52b5773617a1b972a905de4d692540d26ff74926
/.history/uniquePaths_20200728102111.py
901621991495a0a8768d4a84111fc13ad116e8f3
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
541
py
def uniquePath(arr): # mark one as None or -1 thatway in the case where # we have to only calculate the once where there is no none for i in range(len(arr)): for j in range(len(arr[i])): if arr[i][j] == 1: arr[i][j] = "None" elif i == 0 or j == 0: arr[i][j] = 1 for i in range(len(arr)) print(arr) uniquePath([ [0,0,0], [0,1,0], [0,0,0] ])
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
cc3fc7bdd04d61ca8590899b3ef2ff1afabc24dc
feb3dde481d1789ecfb331bbacc36630743c724f
/src/telegram_connector/telegram_registrator/registrator.py
fd516709e7a7c0717404a846f9ed6b7079571a3d
[]
no_license
VetoS88/tranfer_session_test
f74df56cac5b6180a9fce7f31bfd6bae789a0cea
d335f2320ca914792b9f5b5f35d6cdb8e5aa2085
refs/heads/master
2020-12-02T07:40:55.248319
2017-07-10T06:58:45
2017-07-10T06:58:45
96,712,440
1
0
null
null
null
null
UTF-8
Python
false
false
21,450
py
import platform from datetime import timedelta from threading import Event, RLock, Thread from time import sleep # Import some externalized utilities to work with the Telegram types and more from telethon import TelegramClient from telethon.errors import (RPCError, InvalidDCError, FloodWaitError, ReadCancelledError) from telethon.network import authenticator, MtProtoSender, TcpTransport # For sending and receiving requests from telethon.tl import MTProtoRequest, Session, JsonSession from telethon.tl.all_tlobjects import layer from telethon.tl.functions import (InitConnectionRequest, InvokeWithLayerRequest) # Required to work with different data centers from telethon.tl.functions.auth import (CheckPhoneRequest) # Logging in and out from telethon.tl.functions.auth import (SendCodeRequest, SignUpRequest) # Initial request from telethon.tl.functions.help import GetConfigRequest from telethon.tl.types import UpdateShortMessage, UpdateShortChatMessage from telethon.utils import get_display_name # from config.logging_config import app_logger # Required to get the password salt # Easier access to common methods # For .get_me() and ensuring we're authorized # Easier access for working with media, too # All the types we need to work with from Archive.loging_config_local import app_logger def sprint(string, *args, **kwargs): """Safe Print (handle UnicodeEncodeErrors on some terminals)""" try: print(string, *args, **kwargs) except UnicodeEncodeError: string = string.encode('utf-8', errors='ignore') \ .decode('ascii', errors='ignore') print(string, *args, **kwargs) def print_title(title): # Clear previous window print('\n') print('=={}=='.format('=' * len(title))) sprint('= {} ='.format(title)) print('=={}=='.format('=' * len(title))) def bytes_to_string(byte_count): """Converts a byte count to a string (in KB, MB...)""" suffix_index = 0 while byte_count >= 1024: byte_count /= 1024 suffix_index += 1 return '{:.2f}{}'.format(byte_count, [' bytes', 'KB', 'MB', 'GB', 'TB'][suffix_index]) class TelegramRegistrator(TelegramClient): # Current TelegramClient version __version__ = '0.10.1' # region Initialization def __init__(self, session, api_id=None, api_hash=None, proxy=None): """Initializes the Telegram client with the specified API ID and Hash. Session can either be a `str` object (the filename for the loaded/saved .session) or it can be a `Session` instance (in which case list_sessions() would probably not work). If you don't want any file to be saved, pass `None` In the later case, you are free to override the `Session` class to provide different .save() and .load() implementations to suit your needs.""" # if api_id is None or api_hash is None: # raise PermissionError( # 'Your API ID or Hash are invalid. Please read "Requirements" on README.rst') super().__init__(session, api_id, api_hash, proxy) self.api_id = api_id self.api_hash = api_hash # Determine what session object we have # TODO JsonSession until migration is complete (by v1.0) if isinstance(session, str) or session is None: self.session = JsonSession.try_load_or_create_new(session) elif isinstance(session, Session): self.session = session else: raise ValueError( 'The given session must either be a string or a Session instance.') self.transport = None self.proxy = proxy # Will be used when a TcpTransport is created self.login_success = False # Safety across multiple threads (for the updates thread) self._lock = RLock() self._logger = app_logger # Methods to be called when an update is received self._update_handlers = [] self._updates_thread_running = Event() self._updates_thread_receiving = Event() # Cache "exported" senders 'dc_id: MtProtoSender' and # their corresponding sessions not to recreate them all # the time since it's a (somewhat expensive) process. self._cached_senders = {} self._cached_sessions = {} # These will be set later self._updates_thread = None self.dc_options = None self.sender = None self.phone_code_hashes = {} def connect(self, reconnect=False, device_model=None, system_version=None, app_version=None, lang_code=None): """Connects to the Telegram servers, executing authentication if required. Note that authenticating to the Telegram servers is not the same as authenticating the desired user itself, which may require a call (or several) to 'sign_in' for the first time. Default values for the optional parameters if left as None are: device_model = platform.node() system_version = platform.system() app_version = TelegramClient.__version__ lang_code = 'en' """ if self.transport is None: self.transport = TcpTransport(self.session.server_address, self.session.port, proxy=self.proxy) try: if not self.session.auth_key or (reconnect and self.sender is not None): self.session.auth_key, self.session.time_offset = \ authenticator.do_authentication(self.transport) self.session.save() self.sender = MtProtoSender(self.transport, self.session) self.sender.connect() # Set the default parameters if left unspecified if not device_model: device_model = platform.node() if not system_version: system_version = platform.system() if not app_version: app_version = self.__version__ if not lang_code: lang_code = 'en' # Now it's time to send an InitConnectionRequest # This must always be invoked with the layer we'll be using query = InitConnectionRequest( api_id=self.api_id, device_model=device_model, system_version=system_version, app_version=app_version, lang_code=lang_code, query=GetConfigRequest()) result = self.invoke( InvokeWithLayerRequest( layer=layer, query=query)) # We're only interested in the DC options, # although many other options are available! self.dc_options = result.dc_options self.login_success = True return True except (RPCError, ConnectionError) as error: # Probably errors from the previous session, ignore them self._logger.warning('Could not stabilise initial connection: {}' .format(error)) return False def check_phone(self, phone_number): result = self.invoke( CheckPhoneRequest(phone_number=phone_number)) return result def sign_up(self, phone_number, code, first_name, last_name=''): """Signs up to Telegram. Make sure you sent a code request first!""" result = self.invoke( SignUpRequest( phone_number=phone_number, phone_code_hash=self.phone_code_hashes[phone_number], phone_code=code, first_name=first_name, last_name=last_name)) self.session.user = result.user self.session.save() return result def invoke(self, request, timeout=timedelta(seconds=5), throw_invalid_dc=False): """Invokes a MTProtoRequest (sends and receives it) and returns its result. An optional timeout can be given to cancel the operation after the time delta. Timeout can be set to None for no timeout. If throw_invalid_dc is True, these errors won't be caught (useful to avoid infinite recursion). This should not be set to True manually.""" if not issubclass(type(request), MTProtoRequest): raise ValueError('You can only invoke MtProtoRequests') if not self.sender: raise ValueError('You must be connected to invoke requests!') if self._updates_thread_receiving.is_set(): self.sender.cancel_receive() try: self._lock.acquire() updates = [] self.sender.send(request) self.sender.receive(request, timeout, updates=updates) for update in updates: for handler in self._update_handlers: handler(update) return request.result except InvalidDCError as error: if throw_invalid_dc: raise self._reconnect_to_dc(error.new_dc) return self.invoke(request, timeout=timeout, throw_invalid_dc=True) except ConnectionResetError: self._logger.info('Server disconnected us. Reconnecting and ' 'resending request...') self.reconnect() self.invoke(request, timeout=timeout, throw_invalid_dc=throw_invalid_dc) except FloodWaitError: self.disconnect() raise finally: self._lock.release() def reconnect(self): """Disconnects and connects again (effectively reconnecting)""" self.disconnect() self.connect() def disconnect(self): """Disconnects from the Telegram server and stops all the spawned threads""" self._set_updates_thread(running=False) if self.sender: self.sender.disconnect() self.sender = None if self.transport: self.transport.close() self.transport = None # Also disconnect all the cached senders for sender in self._cached_senders.values(): sender.disconnect() self._cached_senders.clear() self._cached_sessions.clear() def _set_updates_thread(self, running): """Sets the updates thread status (running or not)""" if running == self._updates_thread_running.is_set(): return # Different state, update the saved value and behave as required self._logger.info('Changing updates thread running status to %s', running) if running: self._updates_thread_running.set() if not self._updates_thread: self._updates_thread = Thread( name='UpdatesThread', daemon=True, target=self._updates_thread_method) self._updates_thread.start() else: self._updates_thread_running.clear() if self._updates_thread_receiving.is_set(): self.sender.cancel_receive() def _updates_thread_method(self): """This method will run until specified and listen for incoming updates""" # Set a reasonable timeout when checking for updates timeout = timedelta(minutes=1) while self._updates_thread_running.is_set(): # Always sleep a bit before each iteration to relax the CPU, # since it's possible to early 'continue' the loop to reach # the next iteration, but we still should to sleep. sleep(0.1) with self._lock: self._logger.debug('Updates thread acquired the lock') try: self._updates_thread_receiving.set() self._logger.debug('Trying to receive updates from the updates thread') result = self.sender.receive_update(timeout=timeout) self._logger.info('Received update from the updates thread') for handler in self._update_handlers: handler(result) except ConnectionResetError: self._logger.info('Server disconnected us. Reconnecting...') self.reconnect() except TimeoutError: self._logger.debug('Receiving updates timed out') except ReadCancelledError: self._logger.info('Receiving updates cancelled') except OSError: self._logger.warning('OSError on updates thread, %s logging out', 'was' if self.sender.logging_out else 'was not') if self.sender.logging_out: # This error is okay when logging out, means we got disconnected # TODO Not sure why this happens because we call disconnect()… self._set_updates_thread(running=False) else: raise self._logger.debug('Updates thread released the lock') self._updates_thread_receiving.clear() # Thread is over, so clean unset its variable self._updates_thread = None def _reconnect_to_dc(self, dc_id): """Reconnects to the specified DC ID. This is automatically called after an InvalidDCError is raised""" dc = self._get_dc(dc_id) self.transport.close() self.transport = None self.session.server_address = dc.ip_address self.session.port = dc.port self.session.save() self.connect(reconnect=True) def _get_dc(self, dc_id): """Gets the Data Center (DC) associated to 'dc_id'""" if not self.dc_options: raise ConnectionError( 'Cannot determine the required data center IP address. ' 'Stabilise a successful initial connection first.') return next(dc for dc in self.dc_options if dc.id == dc_id) def send_code_request(self, phone_number): """Sends a code request to the specified phone number""" result = self.invoke(SendCodeRequest(phone_number, self.api_id, self.api_hash)) self.phone_code_hashes[phone_number] = result.phone_code_hash return result def run(self): # Listen for updates self.add_update_handler(self.update_handler) # Enter a while loop to chat as long as the user wants while True: # Retrieve the top dialogs dialog_count = 10 # Entities represent the user, chat or channel # corresponding to the dialog on the same index dialogs, entities = self.get_dialogs(dialog_count) i = None while i is None: print_title('Dialogs window') # Display them so the user can choose for i, entity in enumerate(entities, start=1): sprint('{}. {}'.format(i, get_display_name(entity))) # Let the user decide who they want to talk to print() print('> Who do you want to send messages to?') print('> Available commands:') print(' !q: Quits the dialogs window and exits.') print(' !l: Logs out, terminating this session.') print() i = input('Enter dialog ID or a command: ') if i == '!q': return if i == '!l': self.log_out() return try: i = int(i if i else 0) - 1 # Ensure it is inside the bounds, otherwise retry if not 0 <= i < dialog_count: i = None except ValueError: i = None # Retrieve the selected user (or chat, or channel) entity = entities[i] # Show some information print_title('Chat with "{}"'.format(get_display_name(entity))) print('Available commands:') print(' !q: Quits the current chat.') print(' !Q: Quits the current chat and exits.') print(' !h: prints the latest messages (message History).') print(' !up <path>: Uploads and sends the Photo from path.') print(' !uf <path>: Uploads and sends the File from path.') print(' !dm <msg-id>: Downloads the given message Media (if any).') print(' !dp: Downloads the current dialog Profile picture.') print() # And start a while loop to chat while True: msg = input('Enter a message: ') # Quit if msg == '!q': break elif msg == '!Q': return # History elif msg == '!h': # First retrieve the messages and some information total_count, messages, senders = self.get_message_history( entity, limit=10) # Iterate over all (in reverse order so the latest appear # the last in the console) and print them with format: # "[hh:mm] Sender: Message" for msg, sender in zip( reversed(messages), reversed(senders)): # Get the name of the sender if any if sender: name = getattr(sender, 'first_name', None) if not name: name = getattr(sender, 'title') if not name: name = '???' else: name = '???' # Format the message content if getattr(msg, 'media', None): self.found_media.add(msg) # The media may or may not have a caption caption = getattr(msg.media, 'caption', '') content = '<{}> {}'.format( type(msg.media).__name__, caption) elif hasattr(msg, 'message'): content = msg.message elif hasattr(msg, 'action'): content = str(msg.action) else: # Unknown message, simply print its class name content = type(msg).__name__ # And print it to the user sprint('[{}:{}] (ID={}) {}: {}'.format( msg.date.hour, msg.date.minute, msg.id, name, content)) # Send photo elif msg.startswith('!up '): # Slice the message to get the path self.send_photo(path=msg[len('!up '):], entity=entity) # Send file (document) elif msg.startswith('!uf '): # Slice the message to get the path self.send_document(path=msg[len('!uf '):], entity=entity) # Download media elif msg.startswith('!dm '): # Slice the message to get message ID self.download_media(msg[len('!dm '):]) # Download profile photo elif msg == '!dp': output = str('usermedia/propic_{}'.format(entity.id)) print('Downloading profile picture...') success = self.download_profile_photo(entity.photo, output) if success: print('Profile picture downloaded to {}'.format( output)) else: print('No profile picture found for this user.') # Send chat message (if any) elif msg: self.send_message( entity, msg, no_web_page=True) @staticmethod def update_handler(update_object): if type(update_object) is UpdateShortMessage: if update_object.out: sprint('You sent {} to user #{}'.format( update_object.message, update_object.user_id)) else: sprint('[User #{} sent {}]'.format( update_object.user_id, update_object.message)) elif type(update_object) is UpdateShortChatMessage: if update_object.out: sprint('You sent {} to chat #{}'.format( update_object.message, update_object.chat_id)) else: sprint('[Chat #{}, user #{} sent {}]'.format( update_object.chat_id, update_object.from_id, update_object.message)) def is_user_authorized(self): """Has the user been authorized yet (code request sent and confirmed)?""" return self.session and self.get_me() is not None
[ "texcomvit@gmail.com" ]
texcomvit@gmail.com
4055f10dac7cf16d7c8a1f438adc20a07457a099
910a96e87556ecba32a7651d3180744a89b0f96d
/sns/delete_all.py
1997965b9bae5385f1c65d4eb2750b16282a6f30
[]
no_license
fatalbert3390/aws-scripts
1d9795057c1a206933c4a4361ab7ed3ced02aba8
bc82c3c94020559460771f997e1ed61a7c8f71eb
refs/heads/master
2021-10-09T00:40:05.187568
2021-09-29T01:36:20
2021-09-29T01:36:20
110,307,155
1
0
null
null
null
null
UTF-8
Python
false
false
1,214
py
# Deletes all SNS topics and subscriptions within the region specified in your AWS credentials file import boto3 import json snsc = boto3.client('sns') snsr = boto3.resource('sns') marker = None print("Deleting SNS Topics...") while True: paginator = snsc.get_paginator('list_topics') topic_iterator = paginator.paginate( PaginationConfig={'StartingToken': marker} ) for page in topic_iterator: topiclist = page['Topics'] for topic in topiclist: topicarn = topic['TopicArn'] print(topicarn) snsr.Topic(arn=topicarn).delete() try: marker = page['NextToken'] except KeyError: break print("Deleting SNS Subscriptions...") while True: paginator = snsc.get_paginator('list_subscriptions') topic_iterator = paginator.paginate( PaginationConfig={'StartingToken': marker} ) for page in topic_iterator: sublist = page['Subscriptions'] for sub in sublist: subarn = sub['SubscriptionArn'] print(subarn) snsr.Subscription(arn=subarn).delete() try: marker = page['NextToken'] except KeyError: break
[ "fatalbert3390@gmail.com" ]
fatalbert3390@gmail.com
b6676c3046daeabe4f56fe1d86aaca53449d0b3f
6fe5f936a9dc2a046d2422df39c0d9d8cab70a73
/examples/semantic_segmentation/vegas_buildings.py
6300f44b1e70ba11ff5eb91b8728d43ff0983a9f
[ "Apache-2.0" ]
permissive
azavea/raster-vision-fastai-plugin
a5dc0e6c3121ef7a4572293b4ad415d74475a6c7
9d5bddcaa076e0b2c8e635ac8f2541a7be162c01
refs/heads/master
2020-04-25T04:38:03.268117
2019-10-03T16:24:07
2019-10-03T16:24:07
172,516,794
10
7
NOASSERTION
2019-10-03T16:24:08
2019-02-25T14:02:26
Python
UTF-8
Python
false
false
5,449
py
import re import random import os from os.path import join import rastervision as rv from rastervision.utils.files import list_paths from examples.utils import str_to_bool from fastai_plugin.semantic_segmentation_backend_config import ( FASTAI_SEMANTIC_SEGMENTATION) class VegasBuildings(rv.ExperimentSet): def exp_main(self, raw_uri, root_uri, test=False): """Run an experiment on the Spacenet Vegas building dataset. This is a simple example of how to do semantic segmentation on data that doesn't require any pre-processing or special permission to access. Args: raw_uri: (str) directory of raw data (the root of the Spacenet dataset) root_uri: (str) root directory for experiment output test: (bool) if True, run a very small experiment as a test and generate debug output """ base_uri = join( raw_uri, 'SpaceNet_Buildings_Dataset_Round2/spacenetV2_Train/AOI_2_Vegas') raster_uri = join(base_uri, 'RGB-PanSharpen') label_uri = join(base_uri, 'geojson/buildings') raster_fn_prefix = 'RGB-PanSharpen_AOI_2_Vegas_img' label_fn_prefix = 'buildings_AOI_2_Vegas_img' label_paths = list_paths(label_uri, ext='.geojson') label_re = re.compile(r'.*{}(\d+)\.geojson'.format(label_fn_prefix)) scene_ids = [ label_re.match(label_path).group(1) for label_path in label_paths] random.seed(5678) scene_ids = sorted(scene_ids) random.shuffle(scene_ids) # Workaround to handle scene 1000 missing on S3. if '1000' in scene_ids: scene_ids.remove('1000') num_train_ids = int(len(scene_ids) * 0.8) train_ids = scene_ids[0:num_train_ids] val_ids = scene_ids[num_train_ids:] test = str_to_bool(test) exp_id = 'spacenet-simple-seg' num_epochs = 5 batch_sz = 8 debug = False chip_size = 300 if test: exp_id += '-test' num_epochs = 2 batch_sz = 1 debug = True train_ids = ['12'] val_ids = ['13'] task = rv.TaskConfig.builder(rv.SEMANTIC_SEGMENTATION) \ .with_chip_size(chip_size) \ .with_classes({ 'Building': (1, 'orange'), 'Background': (2, 'black') }) \ .with_chip_options( chips_per_scene=9, debug_chip_probability=0.25, negative_survival_probability=1.0, target_classes=[1], target_count_threshold=1000) \ .build() config = { 'bs': batch_sz, 'num_epochs': num_epochs, 'debug': debug, 'lr': 1e-4 } backend = rv.BackendConfig.builder(FASTAI_SEMANTIC_SEGMENTATION) \ .with_task(task) \ .with_config(config) \ .build() def make_scene(id): train_image_uri = os.path.join(raster_uri, '{}{}.tif'.format(raster_fn_prefix, id)) raster_source = rv.RasterSourceConfig.builder(rv.RASTERIO_SOURCE) \ .with_uri(train_image_uri) \ .with_channel_order([0, 1, 2]) \ .with_stats_transformer() \ .build() vector_source = os.path.join( label_uri, '{}{}.geojson'.format(label_fn_prefix, id)) label_raster_source = rv.RasterSourceConfig.builder(rv.RASTERIZED_SOURCE) \ .with_vector_source(vector_source) \ .with_rasterizer_options(2) \ .build() label_source = rv.LabelSourceConfig.builder(rv.SEMANTIC_SEGMENTATION) \ .with_raster_source(label_raster_source) \ .build() scene = rv.SceneConfig.builder() \ .with_task(task) \ .with_id(id) \ .with_raster_source(raster_source) \ .with_label_source(label_source) \ .build() return scene train_scenes = [make_scene(id) for id in train_ids] val_scenes = [make_scene(id) for id in val_ids] dataset = rv.DatasetConfig.builder() \ .with_train_scenes(train_scenes) \ .with_validation_scenes(val_scenes) \ .build() analyzer = rv.AnalyzerConfig.builder(rv.STATS_ANALYZER) \ .build() # Need to use stats_analyzer because imagery is uint16. experiment = rv.ExperimentConfig.builder() \ .with_id(exp_id) \ .with_task(task) \ .with_backend(backend) \ .with_analyzer(analyzer) \ .with_dataset(dataset) \ .with_root_uri(root_uri) \ .build() return experiment if __name__ == '__main__': rv.main()
[ "lewfish@gmail.com" ]
lewfish@gmail.com
7e9a0b6709b5297f31d0f05bfe07068239bf488d
ec78c7d490ac00fbdc882a64b5964c38a46aa832
/jobcrawler/tests/test_email/test_credentials.py
ca125a1803de94cd10c3b0226b09f18f238d2ee5
[ "MIT" ]
permissive
amakus/JobCrawler
d7eb07211a2d63a2fca28420b1dc209d5bc920be
770e05dd439ad3c269aeb3d7e284d891893faa2d
refs/heads/master
2023-01-13T06:43:58.379482
2019-05-31T09:34:04
2019-05-31T09:34:04
186,671,549
0
0
MIT
2022-12-26T20:47:38
2019-05-14T17:43:26
Python
UTF-8
Python
false
false
709
py
import pytest from jobcrawler.core.email.credentials import EmailCredentials from jobcrawler.core.email.address import EmailAddress def test_instantiation(): cred = EmailCredentials('fake@email.com', 'fake_password') assert isinstance(cred, EmailCredentials) def test_has_attribs(): cred = EmailCredentials('fake@email.com', 'fake_password') assert cred[0] == 'fake@email.com' assert str(cred.email) == 'fake@email.com' assert isinstance(cred.email, EmailAddress) assert cred[1] == 'fake_password' assert cred.password == 'fake_password' def test_get_domain(): cred = EmailCredentials('fake@email.com', 'fake_password') assert cred.get_domain() == 'email.com'
[ "makus.andreas@gmail.com" ]
makus.andreas@gmail.com
0f98a96a0ec3a0a4ed1b0e2b524339cd85ec93a6
1b019365713488f6dde9a98323a3e58dd9668c1e
/venv/Scripts/easy_install-3.7-script.py
aaca6119b35a61c45a6babc98f14973f1e0eb13e
[]
no_license
mokshkori/GoScraper
6dfc9bd779b3f20ba798c401331924dca4367642
6868bc7e49e8e2033d3df032002ab1c754595526
refs/heads/master
2023-03-17T23:17:54.051938
2021-03-05T19:38:00
2021-03-05T19:38:00
344,918,992
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
#!C:\Users\user\PycharmProjects\Scraper\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( load_entry_point('setuptools==40.8.0', 'console_scripts', 'easy_install-3.7')() )
[ "amankori8@gmail.com" ]
amankori8@gmail.com
61e6fbf5047e592a14b13d26a3469559770c786f
264fab7fdec5ed8be5f27ab4312b91d2b92a94bb
/Python/2020-04-12 1 hello.py
fb23b3a1f6dec9ae28d74c7fb72e1fe55eb76491
[]
no_license
NguyenLeVo/cs50
9444042a2453c6f8051a358759ead48bd4c84caa
d746e38fb2963242ca51618859ca9c669ed11453
refs/heads/master
2022-11-10T14:02:15.576817
2020-06-28T20:04:27
2020-06-28T20:04:27
275,659,469
0
0
null
null
null
null
UTF-8
Python
false
false
1,540
py
# No printf # No semicolon at the end # No new line \n # No stdio.h header # No need to initialize the data type in the beginning print("hello, world") print("HELLO, WORLD") # Compile by using command line python program.py from cs50 import get_string answer = get_string("What's your name?\n") print("My name is " + answer) print("Toi ten la", answer) print(f"hello, {answer}") # counter++ does not exist counter = 0 counter += 1 # There's a colon # No brackers # No curly braces # Must be indented (convention is 4 spaces) # Else if turns into elif from cs50 import get_int x = get_int("x: ") y = get_int("y: ") if x < y: print("x is less than y") elif x > y: print("x is more than y") else: print("x is equal to y") # True and False are capitalized # while True: # print("Hello, World") i = 3 while i > 0: print("cough") i -= 1 for j in [0, 1, 2]: print("sneeze") for k in range(5): print("achoo") # range: sequence of values # list: an array with varying size and values # tuple: sequence of immutable values # dict: collection of key/value pairs a.k.a hash table # set: collection of unique values age = get_int("What's your age?\n") print(f"You're at least {age * 365} days old.") from cs50 import get_string s = get_string("Do you agree?") if s == "Y" or s == "y": # if s in ["Y", "y", "Yes", "yes"]: # if s.lower() in ["y", "yes"] print("Agreed.") elif s == "N" or s == "n": print("Not agreed.") # No pointers, no seg fault, no null pointers # No main function, just write
[ "NguyenLeVo@github.com" ]
NguyenLeVo@github.com
5ac4cc41638f10eed1a2459afdb105e0eeb840a7
3543acbb63a1d2937fc01a3450307e761ebfa958
/Get Retroativo/2019_09_1.py
2830de7ac363610f0bf3a642596e10343da7db02
[]
no_license
paulowiz/AiesecBot
4c65b6b647022e52d5627c8754c6b7b9e59f77f4
ac77cc5426ed6382772603afa8015208020c0fba
refs/heads/master
2021-06-23T10:24:56.346717
2021-04-29T15:45:09
2021-04-29T15:45:09
205,560,472
7
3
null
2021-04-29T15:45:10
2019-08-31T15:15:09
Python
UTF-8
Python
false
false
727
py
import psycopg2.extras from controller import RobotRotine as rr from api import graphqlconsume, querygraphql import time import datetime import numpy as np """ current = np.datetime64(datetime.datetime.now()) currentab = np.datetime64(current) + np.timedelta64(5, 'h') lastdate = np.datetime64(currentab) - np.timedelta64(15, 'm') print(lastdate) print(currentab) print('-') """ robo2 = rr.RobotRotine() i = 0 dtinit = '2019-09-01T00:00:00' while i < 18: print(dtinit) dtfim = np.datetime64(dtinit) + np.timedelta64(24, 'h') robo2.ExecutaRotina('created_at', dtinit, dtfim, 1) i = i+1 dtinit = np.datetime64(dtinit) + np.timedelta64(24, 'h') print('Periodo Executado com sucesso')
[ "paaulowiz@gmail.com" ]
paaulowiz@gmail.com
0bc6fac376c78cf19cc1bf4bbe11506fe6430f5b
7773ea6f465ffecfd4f9821aad56ee1eab90d97a
/python/testData/refactoring/move/baseClass/after/src/b.py
a419aaecfd4124f2c9a10e105133c1939a3caaeb
[ "Apache-2.0" ]
permissive
aghasyedbilal/intellij-community
5fa14a8bb62a037c0d2764fb172e8109a3db471f
fa602b2874ea4eb59442f9937b952dcb55910b6e
refs/heads/master
2023-04-10T20:55:27.988445
2020-05-03T22:00:26
2020-05-03T22:26:23
261,074,802
2
0
Apache-2.0
2020-05-04T03:48:36
2020-05-04T03:48:35
null
UTF-8
Python
false
false
53
py
class B(object): def __init__(self): pass
[ "andrey.vlasovskikh@jetbrains.com" ]
andrey.vlasovskikh@jetbrains.com
6dc812eda48a50de1b9bf0965304ca544568e789
ca2db9fb6820518901563aca4248ee48a06538ca
/data/scripts/kaist_create_imageset.py
b94e253153a9d06cfddf1254d81c16b0cfff07ee
[ "MIT" ]
permissive
valentinpy/ssd.pytorch
fadaf941147944b8e829f9fd63a4ef0e9a84b8a3
83b0d39aaabede38c3e836a0bd44a42f85113dea
refs/heads/master
2020-04-07T23:26:31.057688
2019-01-10T13:28:31
2019-01-10T13:28:31
158,812,782
0
0
null
2018-11-23T09:49:00
2018-11-23T09:49:00
null
UTF-8
Python
false
false
6,802
py
import sys import os from glob import glob import argparse import random from tqdm import tqdm def str2bool(v): return v.lower() in ("yes", "true", "t", "1") def main(): args = arg_parser() argcheck(args) parse_annotations(args) def arg_parser(): parser = argparse.ArgumentParser(description='Script to generate imageSet files for kaist') parser.add_argument('--dataset_root', default="/home/valentinpy/data/kaist", help='Dataset root directory path') parser.add_argument('--output_file', default=None, help='Output file name') parser.add_argument('--output_folder', default="/home/valentinpy/data/kaist/rgbt-ped-detection/data/kaist-rgbt/imageSets/", help='Output folder') parser.add_argument('--use_set00_01_02', default=False, type=str2bool, help='Use set00_01_02') parser.add_argument('--use_set03_04_05', default=False, type=str2bool, help='Use set03_04_05') parser.add_argument('--use_set06_07_08', default=False, type=str2bool, help='Use set06_07_08') parser.add_argument('--use_set09_10_11', default=False, type=str2bool, help='Use set09_10_11') parser.add_argument('--only_person', default=False, type=str2bool, help="Filter out images which do not contain exclusively 'person'") parser.add_argument('--min_annotation_height', default=-1, type=int, help='Filter out images with annotation smaller as specified [px]') parser.add_argument('--remove_occlusions', default=False, type=str2bool, help='Remove images with occlusions') parser.add_argument('--remove_no_person_annotations', default=True, type=str2bool, help='Remove images without person annoations') parser.add_argument('--max_images', default=-1, type=int, help='Max number of images [-1: unlimited]') args = parser.parse_args() return args def argcheck(args): if not os.path.exists(args.dataset_root): print("dataset not found!") sys.exit(-1) if not os.path.exists(args.output_folder): os.makedirs(args.output_folder) print("output folder not found, creating it") set_used = 0 if args.use_set00_01_02: set_used+=1 if args.use_set03_04_05: set_used+=1 if args.use_set06_07_08: set_used+=1 if args.use_set09_10_11: set_used+=1 if (set_used > 2) or (set_used == 0): print("only one or 2 set can be chosen at a time") sys.exit(-1) if args.max_images == -1: args.max_images = sys.maxsize def filter(annofilename, args): # flags keep_file = False person_detected = False people_detected = False person_not_sure_detected = False cyclist_detected = False only_person_detected = False occlusion_detected = False too_small = False with open(annofilename) as annofile: for annoline in annofile: # loop for each line of each annofile if not annoline.startswith("%"): # if not a comment # split annotation lines annosplit = annoline.split(" ") if len(annosplit) > 5: # for each file, exact flags if annosplit[0] == 'person': # only keep images which contains a "person" person_detected = True elif annosplit[0] == 'people': people_detected = True elif annosplit[0] == 'person?': person_not_sure_detected = True elif annosplit[0] == 'cyclist': cyclist_detected = True else: print("Annotation not recognized!") sys.exit(-1) #print(annosplit[5]) if int(annosplit[5]) != 0: occlusion_detected = True if int(annosplit[4]) < args.min_annotation_height: too_small = True if (person_detected) and (not person_not_sure_detected) and (not people_detected) and (not cyclist_detected): only_person_detected = True #use args filter to cancel useless excluding flags if not args.only_person: only_person_detected = True if not args.remove_occlusions: occlusion_detected = False if args.min_annotation_height == -1: too_small = False if not args.remove_no_person_annotations: person_detected = True # according to flags, do we keep this entry ? keep_file = only_person_detected and (not occlusion_detected) and (not too_small) and person_detected return keep_file def parse_annotations(args): i=0 # get all annotation files in the sets (set 0-2 or set 6-8) annotations_folder = os.path.join(args.dataset_root, 'rgbt-ped-detection/data/kaist-rgbt/annotations') annotation_files_all = [y for x in os.walk(annotations_folder) for y in glob(os.path.join(x[0], '*.txt'))] annotation_files=[] if args.use_set00_01_02: annotation_files += [x for x in annotation_files_all if (("set00" in x) or ("set01" in x) or ("set02" in x))] #train day if args.use_set03_04_05: annotation_files += [x for x in annotation_files_all if (("set03" in x) or ("set04" in x) or ("set05" in x))] # train night if args.use_set06_07_08: annotation_files += [x for x in annotation_files_all if (("set06" in x) or ("set07" in x) or ("set08" in x))] #test day if args.use_set09_10_11: annotation_files += [x for x in annotation_files_all if (("set09" in x) or ("set10" in x) or ("set11" in x))] #test night # randomize data: random.shuffle(annotation_files) #open output imageSet file with open(os.path.join(args.output_folder, args.output_file), "w") as imageset_file: imageset_file.write("# ImageSet automatically generated by 'kaist_create_imageset.py' " + repr(args) + "\n") for annofilename in tqdm(annotation_files): if filter(annofilename, args) and (i < args.max_images): newline = "{}/{}/{}\n".format((annofilename.split('/'))[-3], (annofilename.split('/'))[-2], (annofilename.split('/'))[-1].split('.')[0]) imageset_file.write(newline) # todo output syntax i+= 1 print("Finished\nnumber of files kept: {}/{}\nOutput file is {}".format(i, len(annotation_files), os.path.join(args.output_folder, args.output_file))) if __name__ == '__main__': main()
[ "valentin.py@he-arc.ch" ]
valentin.py@he-arc.ch
44b2c60ff20035d37c7405ee7363aa19197aadd2
9733cd153ac6e730195e49e95aa01179cc31c981
/sources/exceptions.py
a0b5c8610b7e8526d9792e17e31b11f724f46756
[]
no_license
karan-parekh/Real-MVP
9044c99e5eef44582c5f2e48004f62ec881b0396
9f49a9cb5b0a5295b1c3c73f7dfdc1c8e3332eca
refs/heads/master
2023-03-15T01:05:23.960994
2021-03-09T07:29:02
2021-03-09T07:29:02
315,059,677
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
class GamesDBException(Exception): """Raised for any exceptions in GlowDB class""" class TableException(GamesDBException): """Raised for any exceptions in querying table""" class NoDatabaseFound(GamesDBException): """Raised when required DB is not found or does not exist""" class DataCorruptedError(GamesDBException): """Raised when the data in glow DB is corrupted""" class CacheManagerException(Exception): """Raised for any exception in cache manager operations"""
[ "karanparekh501@gmail.com" ]
karanparekh501@gmail.com
771047b585320da01e44965a322ee1f714dff6d2
1e43db349ceff56894a40649dead760f0c071194
/William_Benhaim/Lesson1/google-python-exercises/basic/list1.py
214a750b28e812f6c6b3cf298bc94cbf45f73b35
[ "Apache-2.0" ]
permissive
rachidalili/MS-BGD2015
f632cb9fb1230e8e9b7bcaa63f779d1773e02212
fcfece0072d6e9468a91345257d55b812f5755ba
refs/heads/master
2021-01-10T04:50:48.317342
2015-12-16T19:53:11
2015-12-16T19:53:11
43,893,310
10
0
null
null
null
null
UTF-8
Python
false
false
3,242
py
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Basic list exercises # Fill in the code for the functions below. main() is already set up # to call the functions with a few different inputs, # printing 'OK' when each function is correct. # The starter code for each function includes a 'return' # which is just a placeholder for your code. # It's ok if you do not complete all the functions, and there # are some additional functions to try in list2.py. # A. match_ends # Given a list of strings, return the count of the number of # strings where the string length is 2 or more and the first # and last chars of the string are the same. # Note: python does not have a ++ operator, but += works. def match_ends(words): # +++your code herse+++ cpt=0 for i in words: if len(i)>=2 and i[0]==i[-1]: #i[:1]==i[len(i)-1:]: cpt=cpt+1 return cpt # B. front_x # Given a list of strings, return a list with the strings # in sorted order, except group all the strings that begin with 'x' first. # e.g. ['mix', 'xyz', 'apple', 'xanadu', 'aardvark'] yields # ['xanadu', 'xyz', 'aardvark', 'apple', 'mix'] # Hint: this can be done by making 2 lists and sorting each of them # before combining them. def front_x(words): WithX=[] toSort=[] for mot in words: if mot[0]=='x': WithX.append(mot) else: toSort.append(mot) #WithX.sort() #toSort.sort() # +++your code here+++ return sorted(WithX)+sorted(toSort) # C. sort_last # Given a list of non-empty tuples, return a list sorted in increasing # order by the last element in each tuple. # e.g. [(1, 7), (1, 3), (3, 4, 5), (2, 2)] yields # [(2, 2), (1, 3), (3, 4, 5), (1, 7)] # Hint: use a custom key= function to extract the last element form each tuple. def sort_last(tuples): # +++your code here+ return sorted(tuples,key=last) def last(a): return a[-1] # Simple provided test() function used in main() to print # what each function returns vs. what it's supposed to return. def test(got, expected): if got == expected: prefix = ' OK ' else: prefix = ' X ' print '%s got: %s expected: %s' % (prefix, repr(got), repr(expected)) # Calls the above functions with interesting inputs. def main(): print 'match_ends' test(match_ends(['aba', 'xyz', 'aa', 'x', 'bbb']), 3) test(match_ends(['', 'x', 'xy', 'xyx', 'xx']), 2) test(match_ends(['aaa', 'be', 'abc', 'hello']), 1) print print 'front_x' test(front_x(['bbb', 'ccc', 'axx', 'xzz', 'xaa']), ['xaa', 'xzz', 'axx', 'bbb', 'ccc']) test(front_x(['ccc', 'bbb', 'aaa', 'xcc', 'xaa']), ['xaa', 'xcc', 'aaa', 'bbb', 'ccc']) test(front_x(['mix', 'xyz', 'apple', 'xanadu', 'aardvark']), ['xanadu', 'xyz', 'aardvark', 'apple', 'mix']) print print 'sort_last' test(sort_last([(1, 3), (3, 2), (2, 1)]), [(2, 1), (3, 2), (1, 3)]) test(sort_last([(2, 3), (1, 2), (3, 1)]), [(3, 1), (1, 2), (2, 3)]) test(sort_last([(1, 7), (1, 3), (3, 4, 5), (2, 2)]), [(2, 2), (1, 3), (3, 4, 5), (1, 7)]) if __name__ == '__main__': main()
[ "william.benhaim@gmail.com" ]
william.benhaim@gmail.com
ac5e2d784a9dfdee17e38a480d65a902105efcdb
b37b3cdf08661c4af1b15c1ce2af7cd1e21bcb8c
/chatbot/hello.py
6056c61ef6ea9753099120cac636eeab7d1b4bb3
[]
no_license
KimSoomae/startcamp
1304c788a2c20d975447fca5b2ec52cf0f3fecae
2534a49e026d72ab9f1b3da1ddacb7b1dd125160
refs/heads/master
2023-06-18T00:51:56.822301
2021-07-16T08:36:24
2021-07-16T08:36:24
386,164,560
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
import requests from bs4 import BeautifulSoup url = 'https://finance.naver.com/sise/' response = requests.get(url) data = BeautifulSoup(response.text,"lxml") print(data.select_one('#KOSPI_now')) print(data.select_one('#KOSPI_now').text) url='https://finance.naver.com/marketindex/' response = requests.get(url) data = BeautifulSoup(response.text,"lxml") print(data.select_one('#exchangeList > li.on > a.head.usd > div > span.value').text)
[ "smkim104@naver.com" ]
smkim104@naver.com
cba21703e801f82942b333795e93c5e77e85476a
7d33fd0dc6a0d02b5d7cc41fb78d146045f7b58a
/tests/examples/holaMundo.py
3f8f6324b4964adc1984daf125a74ca812e84aa9
[ "Apache-2.0", "MIT" ]
permissive
evhub/cpyparsing
058e253892ba25136c731167cea9997925d153fc
2e75cbbfce7953bcde79bede8d47d31dd3511b15
refs/heads/master
2023-08-13T04:28:20.372777
2023-08-03T05:42:39
2023-08-03T05:42:39
96,247,649
26
3
NOASSERTION
2023-04-04T20:46:47
2017-07-04T19:29:13
Python
UTF-8
Python
false
false
1,862
py
# -*- coding: utf-8 -*- # escrito por Marco Alfonso, 2004 Noviembre # importamos los símbolos requeridos desde el módulo from pyparsing import Word, alphas, oneOf, nums, Group, OneOrMore, pyparsing_unicode as ppu # usamos las letras en latin1, que incluye las como 'ñ', 'á', 'é', etc. alphas = ppu.Latin1.alphas # Aqui decimos que la gramatica "saludo" DEBE contener # una palabra compuesta de caracteres alfanumericos # (Word(alphas)) mas una ',' mas otra palabra alfanumerica, # mas '!' y esos seian nuestros tokens saludo = Word(alphas) + ',' + Word(alphas) + oneOf('! . ?') tokens = saludo.parseString("Hola, Mundo !") # Ahora parseamos una cadena, "Hola, Mundo!", # el metodo parseString, nos devuelve una lista con los tokens # encontrados, en caso de no haber errores... for i, token in enumerate(tokens): print ("Token %d -> %s" % (i,token)) #imprimimos cada uno de los tokens Y listooo!!, he aquí a salida # Token 0 -> Hola # Token 1 -> , # Token 2-> Mundo # Token 3 -> ! # ahora cambia el parseador, aceptando saludos con mas que una sola palabra antes que ',' saludo = Group(OneOrMore(Word(alphas))) + ',' + Word(alphas) + oneOf('! . ?') tokens = saludo.parseString("Hasta mañana, Mundo !") for i, token in enumerate(tokens): print ("Token %d -> %s" % (i,token)) # Ahora parseamos algunas cadenas, usando el metodo runTests saludo.runTests("""\ Hola, Mundo! Hasta mañana, Mundo ! """, fullDump=False) # Por supuesto, se pueden "reutilizar" gramáticas, por ejemplo: numimag = Word(nums) + 'i' numreal = Word(nums) numcomplex = numreal + '+' + numimag print (numcomplex.parseString("3+5i")) # Cambiar a complejo numero durante parsear: numcomplex.setParseAction(lambda t: complex(''.join(t).replace('i','j'))) print (numcomplex.parseString("3+5i")) # Excelente!!, bueno, los dejo, me voy a seguir tirando código...
[ "evanjhub@gmail.com" ]
evanjhub@gmail.com
5c3ae03b9640d3b682ce95308e9ab6fd216b2950
c56b3f86b47ed7c484a45a7aad71c5ba59bb2b59
/plots/GPU_Usage.py
6419d66759714b84eeb8353fa67c56d8fdb02a68
[]
no_license
gvsam7/Deep_Archs
d9ee23907fac2dbb1830fcc49f042d612361f70c
36f9e2b9b4f0376fde43db2f342fadb31e5c3041
refs/heads/master
2023-03-21T22:44:31.100512
2021-03-18T11:37:30
2021-03-18T11:37:30
331,377,984
0
0
null
null
null
null
UTF-8
Python
false
false
1,666
py
""" Author: Georgios Voulgaris Date: 07_12_2020 Description: Plots GPU power consumption, time running and architecture on average of 5 runs. """ import matplotlib as mpl import matplotlib.pyplot as plt # agg backend is used to create plot as a .png file mpl.use('agg') pwr = [68.11, 71.394, 75.14, 108.03, 140.51, 149.96, 134.68, 71.12, 138.57, 113.47, 69.31, 108.63, 121.01] time = [1.704, 6.532, 43.37, 1.148, 5.05, 21.48, 4.97, 37.82, 15.83, 47.67, 19.24, 42.44, 145.92] arch = ['3_CNN_50', '3_CNN_100', '3_CNN_226', '4_CNN_50', '4_CNN_100', '4_CNN_226', '5_CNN_100', '5_CNN_226', 'AlexNet_50', 'AlexNet_100', 'VGG16_50', 'VGG16_100', 'VGG16_226'] # labels = ['3_CNN', '4_CNN', '5_CNN', 'AlexNet', 'VGG_16'] fig, ax = plt.subplots(figsize=(10, 10)) ax.scatter(time, pwr, c='r', marker='x', s=35) for i, txt in enumerate(arch): ax.annotate(txt, (time[i], pwr[i]), xytext=(5, 5), textcoords='offset points') # plt.scatter(time, pwr, marker='x', color='red') # Custom axis labels ax.set_axisbelow(True) # ax.legend(labels, loc='upper right', shadow=True) ax.set_title('GPU Power Consumption', fontsize=18) ax.set_xlabel('Time (minutes)', fontsize=14) ax.set_ylabel('Power (watts)', fontsize=14) # Add a horizontal grid to the plot, but make it very light in colour # thus, assist when reading data values but not too distracting ax.yaxis.grid(True, linestyle='-', which='major', color='lightgrey', alpha=0.5) ax.xaxis.grid(True, linestyle='-', which='major', color='lightgrey', alpha=0.5) # Save the figure fig.savefig('GPU_Usage.png', bbox_inches='tight')
[ "gvsam7@yahoo.com" ]
gvsam7@yahoo.com
850cbbbb722ba4da64e22ce34e31701260693140
d3494e686eb8840a93656f8823a36c2d3c3f9bf2
/Binary Tree Longest Consecutive Sequence.py
c3d95243584dc27862a65353f00d037593ff4e9b
[]
no_license
YihaoGuo2018/leetcode_python_version2
a5e33d539f0f59d1edd5ba8eaa3608965b55ebb6
7175d2e21d6c02ebd5940171c2fcf5db06efbdcf
refs/heads/main
2023-02-16T17:41:32.562747
2021-01-14T15:49:27
2021-01-14T15:49:27
329,659,625
0
0
null
null
null
null
UTF-8
Python
false
false
685
py
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def longestConsecutive(self, root): if not root: return 0 ret = 0 stack = [(root, 1)] while stack: node, cnt = stack.pop() if node.left: stack.append((node.left, cnt+1 if node.left.val == node.val + 1 else 1)) if node.right: stack.append((node.right, cnt+1 if node.right.val == node.val + 1 else 1)) ret = max(ret, cnt) return ret
[ "noreply@github.com" ]
YihaoGuo2018.noreply@github.com
74a45ecd5fae6f7e270fb57144ad3d822d18aa47
557ca4eae50206ecb8b19639cab249cb2d376f30
/Chapter19/GoodKangaroo.py
426380428c484dacacb2bde125fde2a76cdb3263
[]
no_license
philipdongfei/Think-python-2nd
781846f455155245e7e82900ea002f1cf490c43f
56e2355b8d5b34ffcee61b38fbfd200fd6d4ffaf
refs/heads/master
2021-01-09T19:57:49.658680
2020-03-13T06:32:11
2020-03-13T06:32:11
242,441,512
0
0
null
null
null
null
UTF-8
Python
false
false
2,866
py
"""This module contains a code example related to Think Python, 2nd Edition by Allen Downey http://thinkpython2.com Copyright 2015 Allen Downey License: http://creativecommons.org/licenses/by/4.0/ """ from __future__ import print_function, division """ WARNING: this program contains a NASTY bug. I put it there on purpose as a debugging exercise, but you DO NOT want to emulate this example! """ class Kangaroo: """A Kangaroo is a marsupial.""" def __init__(self, name, contents=[]): """Initialize the pouch contents. name: string contents: initial pouch contents. """ # The problem is the default value for contents. # Default values get evaluated ONCE, when the function # is defined; they don't get evaluated again when the # function is called. # In this case that means that when __init__ is defined, # [] gets evaluated and contents gets a reference to # an empty list. # After that, every Kangaroo that gets the default # value gets a reference to THE SAME list. If any # Kangaroo modifies this shared list, they all see # the change. # The next version of __init__ shows an idiomatic way # to avoid this problem. self.name = name self.pouch_contents = contents def __init__(self, name, contents=None): """Initialize the pouch contents. name: string contents: initial pouch contents. """ # In this version, the default value is None. When # __init__ runs, it checks the value of contents and, # if necessary, creates a new empty list. That way, # every Kangaroo that gets the default value gets a # reference to a different list. # As a general rule, you should avoid using a mutable # object as a default value, unless you really know # what you are doing. self.name = name self.pouch_contents = [] if contents == None else contents ''' if contents == None: contents = [] self.pouch_contents = contents ''' def __str__(self): """Return a string representaion of this Kangaroo. """ t = [ self.name + ' has pouch contents:' ] for obj in self.pouch_contents: s = ' ' + object.__str__(obj) t.append(s) return '\n'.join(t) def put_in_pouch(self, item): """Adds a new item to the pouch contents. item: object to be added """ self.pouch_contents.append(item) kanga = Kangaroo('Kanga') roo = Kangaroo('Roo') kanga.put_in_pouch('wallet') kanga.put_in_pouch('car keys') kanga.put_in_pouch(roo) print(kanga) print(roo) # If you run this program as is, it seems to work. # To see the problem, trying printing roo.
[ "philip.dongfei@gmail.com" ]
philip.dongfei@gmail.com
c0d57458ea3699f7e6e91a07615e041a9fae5389
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/Configuration/Generator/python/Pyquen_DiJet_pt80to120_5362GeV_cfi.py
f7adf91a210cf47dceaaf93f339c20b713d13040
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
1,689
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.PyquenDefaultSettings_cff import * generator = cms.EDFilter("PyquenGeneratorFilter", collisionParameters5362GeV, qgpParameters, pyquenParameters, doQuench = cms.bool(True), bFixed = cms.double(0.0), ## fixed impact param (fm); valid only if cflag_=0 PythiaParameters = cms.PSet(pyquenPythiaDefaultBlock, parameterSets = cms.vstring('pythiaUESettings','ppJets','kinematics'), kinematics = cms.vstring ("CKIN(3)=80", #min pthat "CKIN(4)=120" #max pthat ) ), cFlag = cms.int32(0), ## centrality flag bMin = cms.double(0.0), ## min impact param (fm); valid only if cflag_!=0 bMax = cms.double(0.0) ## max impact param (fm); valid only if cflag_!=0 ) configurationMetadata = cms.untracked.PSet( version = cms.untracked.string('$Revision: 1.2 $'), name = cms.untracked.string('$Source: /local/projects/CMSSW/rep/CMSSW/Configuration/Generator/python/Pyquen_DiJet_pt80to120_2760GeV_cfi.py,v $'), annotation = cms.untracked.string('PYQUEN quenched dijets (80 < pt-hat < 120 GeV) at sqrt(s) = 2.76TeV') ) ProductionFilterSequence = cms.Sequence(generator)
[ "Matthew.Nguyen@cern.ch" ]
Matthew.Nguyen@cern.ch
0b7288e059b106300fa116661afafe661bc39e04
e5e045a5bf3aa621a82c84f01db002d74d5d4b37
/Code.py
7050f7e4c4b892a24ea0fb3c90a6f8a0ed58807c
[]
no_license
LakshayMahajan2006/Snake-Game-with-python
09cddb687451bde6633453f08a1d2a8ce891606d
bf18f4a1d8bdb72dff670d2b7329c905005f546e
refs/heads/master
2022-12-05T16:07:45.098317
2020-08-26T08:34:46
2020-08-26T08:34:46
290,441,402
1
0
null
null
null
null
UTF-8
Python
false
false
1,239
py
# Snake-Game-with-python import some modules from turtle import * from random import randrange from freegames import square, vector food = vector(0, 0) snake = [vector(10, 0)] aim = vector(0, -10) print("Snake: 1") def change(x, y): "Change snake direction." aim.x = x aim.y = y def inside(head): "Return True if head inside boundaries." return -200 < head.x < 190 and -200 < head.y < 190 def move(): "Move snake forward one segment." head = snake[-1].copy() head.move(aim) if not inside(head) or head in snake: square(head.x, head.y, 9, 'black') update() return snake.append(head) if head == food: print('Snake:', len(snake)) food.x = randrange(-15, 15) * 10 food.y = randrange(-15, 15) * 10 else: snake.pop(0) clear() for body in snake: square(body.x, body.y, 9, 'green') square(food.x, food.y, 9, 'blue') update() ontimer(move, 100) setup(420, 420, 370, 0) hideturtle() tracer(False) listen() onkey(lambda: change(10, 0), 'Right') onkey(lambda: change(-10, 0), 'Left') onkey(lambda: change(0, 10), 'Up') onkey(lambda: change(0, -10), 'Down') move() done() print("Total Score : ", len(snake))
[ "noreply@github.com" ]
LakshayMahajan2006.noreply@github.com
deeb80c34042bc5788cbd500180b53981b2cb319
0d3d30124b5574d95d46908ede1c2046a28f5842
/pythonCode/workspace/Study/src/PythonCore/11/11_10.py
ad81a28a4a316a28a2817833e7660bd527f0d835
[]
no_license
fangyue6/MyPythonCode
22a36a75c56b09055a24eddb85636165fcb63a9d
bebc7b498e6d0a73672df67bf4a6aa909e6628fe
refs/heads/master
2021-06-05T21:18:24.387566
2018-08-21T12:26:25
2018-08-21T12:26:25
94,972,353
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
#!/usr/bin/python # -*- coding: UTF-8 -*- ''' Created on 2015年4月13日 @author: fangyue ''' '''11.10.1.简单的生成器特性''' def ok(): return 11 def simpleGen(): yield 1 yield '2 --> punch!' yield ok() myG=simpleGen() print myG.next() print myG.next() print myG.next() s='''使用一个for 循环而不是手动迭代穿过一个生成器''' print s for eachItem in simpleGen(): print eachItem
[ "yue.fang.ser" ]
yue.fang.ser
0de192121d0073ff9cf6c8f5849e838274995ac2
890fed1df11cebccbf1944181637661455127d62
/rozwiazania/Darek/main.py
3968b806364d46826bd86c70bf240173f6c12b78
[]
no_license
ArchangelDesign/mapa-gestosci
22621cc1d376136ecf7b31eed34344d008e9f152
3242ef6664e4d0acc6c0e81e0a02ef4e66e222e2
refs/heads/master
2021-05-03T15:14:17.658232
2018-02-06T14:50:19
2018-02-06T14:50:19
120,472,526
0
0
null
null
null
null
UTF-8
Python
false
false
1,074
py
# EXAMPLE INPUT # 10,20,30,40,50,60, # 70,80,90,100,110,120, # 1,2,3,4,5,6, # 7,8,9,10,11,12, def sum_neighbours(data, idx): return data[idx] \ + (data[idx - 1] if idx > 0 else 0) \ + (data[idx + 1] if idx + 1 < len(data) else 0) def main(): sum_all = 0 with open("input.txt", 'r') as input_file, \ open("output.txt", 'w') as output_file: content = input_file.readlines() data = [map(int, line.strip().split(',')) for line in content] for row_num in range(0, len(data)): for col_num in range(0, len(data[row_num])): sum = (sum_neighbours(data[row_num - 1], col_num) if row_num > 0 else 0) \ + (sum_neighbours(data[row_num], col_num)) \ + (sum_neighbours(data[row_num + 1], col_num) if row_num + 1 < len(data) else 0) sum_all = sum_all + sum output_file.write("{0},".format(sum)) output_file.write('\n') print sum_all if __name__ == "__main__": main()
[ "archangel.raffael@gmail.com" ]
archangel.raffael@gmail.com
ff6e44311140d54e21fc24318072d6e3878b875c
610bd6ec46a9ccf04bb697bbcf0f631a3813f88b
/archived/preprocess/data.py
6d86a29c69702c43163ff7ccc324bd65ec90f374
[]
no_license
qibinc/Lyrics
e5e998eedac14887b8231c1887175682b8e9c1d3
851be102f90398a3f65cb302b94eb32844f6787e
refs/heads/master
2021-03-27T11:35:53.289835
2018-01-06T04:35:12
2018-01-06T04:35:12
107,003,712
5
1
null
null
null
null
UTF-8
Python
false
false
4,670
py
# coding: utf-8 # In[8]: import re import pickle import numpy as np import preprocess # In[9]: limit = { 'minq': 0, 'maxq': 20, 'mina': 2, 'maxa': 20 } UNK = 'unk' # In[10]: def load_raw_data(): """Return titles and lyrics.""" titles_lyrics = preprocess.load_from_pickle() if titles_lyrics == None: preprocess.preprocess() titles_lyrics = preprocess.load_from_pickle() return titles_lyrics # In[11]: def lyrics_without_timing(): """Return a list of lyrics, pure text, no timing""" _, lyrics = load_raw_data() # del_timing = lambda s: re.sub('\[.*\]', '', s).strip() # lyrics = [[del_timing(sentence) for sentence in lyric if del_timing(sentence) != '']\ # for lyric in lyrics] del_not_chinese = lambda s: re.sub(u'[^\u4E00-\u9FA5 ]', '', s).strip() lyrics = [[del_not_chinese(sentence) for sentence in lyric if del_not_chinese(sentence) != ''] for lyric in lyrics] lyrics = [[sentence for sentence in lyric if '作词' not in sentence and '作曲' not in sentence\ and '编曲' not in sentence and '词曲' not in sentence\ ]for lyric in lyrics] lyrics = [lyric for lyric in lyrics if len(lyric) > 15] return lyrics # In[12]: def q_a_lines(lyrics): """2 lists of sentences. Question and answer, respectively.""" q, a = [], [] ori_len = 0 for lyric in lyrics: ori_len += len(lyric) for i in range(len(lyric) - 1): qlen, alen = len(lyric[i]), len(lyric[i+1]) if qlen >= limit['minq'] and qlen <= limit['maxq'] and alen >= limit['mina'] and alen <= limit['maxa']: q.append(lyric[i]) a.append(lyric[i+1]) print('Q & A filtered {0}%'.format(100*(ori_len - len(q))/ori_len)) return q, a # In[13]: def tokenize_single(qlines, alines): """Transfrom lines into lists of single characters. To do: tokenize_word """ qtokenized = [[character for character in sentence] for sentence in qlines] atokenized = [[character for character in sentence] for sentence in alines] return qtokenized, atokenized # In[14]: def character_frequency(lyrics, vocab_size=3000, show=False): """Analyze Characters frequence. In a list of list of sentences. Example: [["song1", "hello world", "end"], ["song2", "happy end"]] """ import numpy as np import itertools from collections import Counter, defaultdict iter_characters = itertools.chain(*itertools.chain(*lyrics)) frequency_list = Counter(iter_characters).most_common() character, freq = zip(*frequency_list) if show: import matplotlib.pyplot as plt get_ipython().magic('matplotlib inline') plt.ylabel('frequency(log)') plt.xlabel('rank') plt.plot(range(len(frequency_list)), np.log(freq)) plt.show() print('100 Most frequent word: {0}'.format(word[:100])) return list(character[:vocab_size]), list(freq[:vocab_size]) # In[15]: def index(tokenized, vocab_size=3000): """Make volcabulary and lookup dictionary""" word, freq = character_frequency(tokenized, vocab_size) index2word = ['_', UNK] + word word2index = dict([(w, i) for i, w in enumerate(index2word)]) return index2word, word2index # In[16]: def pad_seq(line, w2idx, maxlen): """zero padding at the tail""" padded = [] for word in line: if word in w2idx: padded.append(w2idx[word]) else: padded.append(w2idx[UNK]) return np.array(padded + [0] * (maxlen - len(padded))) # In[28]: def zero_padding(qtokenized, atokenized, w2idx): """tokenized word sequences to idx sequences""" num_lines = len(qtokenized) idx_q = np.zeros([num_lines, limit['maxq']], dtype=np.int32) idx_a = np.zeros([num_lines, limit['maxa']], dtype=np.int32) for i in range(num_lines): idx_q[i] = pad_seq(qtokenized[i], w2idx, limit['maxq']) idx_a[i] = pad_seq(atokenized[i], w2idx, limit['maxa']) return idx_q[:, ::-1], idx_a # In[29]: if __name__ == '__main__': # lyrics = lyrics_without_timing() # qlines, alines = q_a_lines(lyrics) # qtokenized, atokenized = tokenize_single(qlines, alines) # idx2w, w2idx = index(qtokenized + atokenized) idx_q, idx_a = zero_padding(qtokenized, atokenized, w2idx) np.save('idx_q.npy', idx_q) np.save('idx_a.npy', idx_a) metadata = { 'w2idx' : w2idx, 'idx2w' : idx2w } pickle.dump(metadata, open('metadata.pkl', 'wb'))
[ "chenqibin422@gmail.com" ]
chenqibin422@gmail.com
65b1aee5f1aad7cb39efa3f6dff9be2a4b37e267
8382924c67e4c465ec2e5212a9f5b25772acc722
/rediskmeans/rediskmeans.py
e571ea7f287d8da9429c474b44452a618a53f1f2
[ "MIT" ]
permissive
saromanov/rediskmeans
42dfac3adc6db2242229c2896343cce653c83244
46bbf75d3f359c35f86bbbf1cc15ac17c20d9bc1
refs/heads/master
2020-04-20T05:19:34.060928
2015-10-11T17:08:09
2015-10-11T17:08:09
37,146,036
0
0
null
null
null
null
UTF-8
Python
false
false
6,775
py
import redis from sklearn.cluster import KMeans from sklearn.feature_extraction.text import TfidfVectorizer import os import numpy as np class RedisKMeans: def __init__(self, *args, **kwargs): """ Initialization of RedisKMeans Args: addr - host for redis server port - port for redis server Example: RedisKMeans(addr='localhost', port=6739) """ self.addr = kwargs.get('host') self.port = kwargs.get('port') if self.addr is None or self.port is None: self.client = redis.Redis() else: self.client = redis.Redis(host=self.addr, port=self.port) def put(self, key, values, path=None): ''' put values to redis by key Args: key - can be only as a string values - can be: array of float/int [0.1,0.2,0.3] In this case, values store in the list string In this case, strings store as string type in redis optional arguments: path - provides path to file. Data from file using as value Examples: >>> put("abc", [0.4,0.5,0.6,0.7]) >>> put("cba", "This is simple") >>> put("def", None, path="/home/username/file") ''' if path is not None: f = open(path, 'r') if not os.path.exists: raise Exception("File is not found") values = f.read() f.close() if type(values) == str: if not self.client.exists(key): self.client.append(key, values) return if self._checker(values, float) or self._checker(values, int): self.client.lpush(key, self._preprocess(values)) return raise TypeError("Not recoginzed type of values") def putPrefix(self, key, values, path=None): ''' put data to redis with prefix "rk_" It helps to clustering data without naming of key ''' key = 'rk_{0}'.format(key) self.put(key, values, path=path) def _checker(self, values, typ): '''Checker before store in redis need to recogize type of objects in values ''' return all([isinstance(value, typ) for value in values]) def _preprocess(self, values): ''' Preprocessing before put in redis. Now in the case of non string values ''' return ' '.join(map(str, values)) def _postprocessing(self, values): if len(values) == 0: return values = values[0] splitter = values.split() return list(map(float, splitter)) def _getValues(self, keyvalues, postprocess=True): for (key, value) in keyvalues.items(): if postprocess is False: yield value else: postvalue = self._postprocessing(value) if postvalue is not None: yield postvalue def get(self, keys): return {key: self.client.lrange(key, 0, -1) for key in keys} def _get_strings(self, keys): return [self.client.get(key) for key in keys if self.client.exists(key)] def _store_as_clusters(self, clusters): ''' After fit in KMeans set values by clusters ''' for clustername in clusters.keys(): self.put(clustername, clusters[clustername]) def apply(self, keys, n_clusters=2, KMeansmodel=None, title_clusters=[], tfidf=False, path='', state=None): """ this function provides getting data from redis and transform to clusters. Args: keys - Getting data by keys n_clusters - Number of clusters to transform data KMeansmodel - model for clusterization. Generally, can be any cluster model from sklearn title_clusters - After clustering, all clusters marked as numbers. If title_clusters is not empty, this clusters will be replace to names from title_clusters tfidf - Apply tfidf before clustering path - to file with keys state - apply target state for clustering. By default is random state """ if path != '': f = open(path, 'r') keys = [key.split('\n')[0] for key in f.readlines()] f.close() if not isinstance(keys, list) or len(keys) == 0: return if not self._checker(keys, str): return kmeans = KMeans(n_clusters=n_clusters, n_jobs=-1) if KMeansmodel is not None: kmeans = KMeansmodel if state is not None: kmeans = KMeans(n_clusters=n_clusters, n_jobs=-1) if not tfidf: keyvalues = self.get(keys) values = list(self._getValues(keyvalues, postprocess=not tfidf)) values = np.array(values)/np.max(values) else: keyvalues = self._get_strings(keys) values = tfidf_transform(keyvalues) if len(keys) != len(values): raise Exception("Number of keys is not equal to number of values") result = kmeans.fit_predict(values) if title_clusters != [] and len(title_clusters) != n_clusters: raise Exception( "Names of clusters can't be greater than number of clusters") return result if title_clusters == [] else [title_clusters[i] for i in result] def _associate(self, clusters, values): ''' Associate each cluster with list of values ''' result = {} for i, name in enumerate(clusters): if name in result: result[name].append(values[i]) else: print(values) result[name] = [values[i]] return result def apply_and_store(self, keys, n_clusters=2, KMeansmodel=None, title_clusters=[], tfidf=False): result = self.apply( keys, n_clusters=n_clusters, KMeansmodel=KMeansmodel, title_clusters=title_clusters, tfidf=tfidf) clusternames = ['cluster_{0}'.format(num) for num in result]\ if title_clusters is None\ else title_clusters datavalues = self._associate(clusternames, list(self._getValues(self.get(keys)))) self._store_as_clusters(datavalues) def tfidf_transform(X): vectorizer = TfidfVectorizer(min_df=1, max_df=0.9, stop_words='english', decode_error='ignore') return vectorizer.fit_transform(X)
[ "xxsmotur@gmail.com" ]
xxsmotur@gmail.com
9c49559665e14c5a04ab2dd77acc037b6f36c251
2fcbfed3e79775392d502963c2b520fbe9c80233
/Tweet-Generator/q.py
9aa9588a9361e2b8861af120b7eecf2caa5f7829
[]
no_license
chelseacastelli/CS-1.2-Intro-Data-Structures
36e6d37b38ac15f9f5a2e680d2ec60a13a361375
9ffdd13f67e01123dd33a0f72aa031e4c9126be8
refs/heads/master
2022-12-10T12:46:29.334758
2019-12-18T22:51:44
2019-12-18T22:51:44
216,670,537
0
0
null
2022-12-08T06:16:53
2019-10-21T21:42:02
Python
UTF-8
Python
false
false
380
py
class Queue(): '''Makes a queue''' def __init__(self): self.queue = [] def __str__(self): return f'{self.queue}' def __iter__(self): return self.queue.__iter__() def __len__(self): return len(self.queue) def enqueue(self, entry): self.queue.append(entry) def dequeue(self): return self.queue.pop(0)
[ "chelsea.castelli@students.makeschool.com" ]
chelsea.castelli@students.makeschool.com
49987ae74fc17d66d04f0c8e5eb1284d04be670d
0d62be21c3843033076621823069144be9b81930
/Basic/FunctionBasic2.py
17e5aa909cbfe08349bb6405cb64c8992215800e
[]
no_license
dungace/Project
2089cad3fe22877c161c105eaf6eb23bf82a9f15
822fe6a64049d31aec18fb7881044706ab9cf89c
refs/heads/master
2023-03-17T08:39:05.254743
2021-03-15T11:27:31
2021-03-15T11:27:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
def phone(**data): count = 0 for name,pirce in data.items(): row = "{:20}{:10}" .format(name,pirce) print(row) count = count + pirce return count t = phone(ip = 10000, nokia = 20000, samsung = 30000, mi = 90000) print("-"*30) print("{:20}{:10}" .format('Tong', t))
[ "dung.vv150727@sis.hust.edu.vn" ]
dung.vv150727@sis.hust.edu.vn
c23ccf06a8474442ff49f26a5f364058fec7495b
cb118716c25162b87397ce0ff687036c67192e29
/Week_07/208. 实现 Trie (前缀树).py
f71d64acca81b88e83093e9212e485ca246f55dc
[]
no_license
czjczjczj15/algorithm009-class01
e47157f5b211c29cefc85e12d75b1865bd2e77f6
cf1d1c52e6a4924f882840f23ca47124943ee902
refs/heads/master
2022-11-06T20:14:46.261374
2020-07-12T15:55:16
2020-07-12T15:55:16
266,251,226
0
0
null
2020-05-23T02:53:43
2020-05-23T02:53:42
null
UTF-8
Python
false
false
1,130
py
# DFS 时间复杂度:O(n^2),整个矩阵都要被遍历,大小为 n^2。空间复杂度:O(n)O(n),visitedvisited 数组的大小。 # BFS 时间复杂度:O(n^2),整个矩阵都要被访问。空间复杂度:O(n)O(n),queuequeue 和 visitedvisited 数组的大小。 # 并查集 #################################################### # 第一次,failed #并查集,极客大学老师代码 # 时间复杂度:O(n^3),访问整个矩阵一次,并查集操作需要最坏 O(n)O(n) 的时间。 # 空间复杂度:O(n),parentparent 大小为 nn。 if not M: return 0 n = len(M) p = [i for i in range(n)] # 并查集创建起来 # print(p) for i in range(n): # 遍历矩阵 for j in range(n): if M[i][j] == 1: self._union(p, i ,j) # 合并i,j print(p) return len(set([self._parent(p,i) for i in range(n)])) # 看整个n里面有多少的parent def _union(self, p ,i ,j ): p1 = self._parent(p,i) p2 = self._parent(p, j) p[p2] = p1 def _parent(self, p, i): root = i while p[root] != root: root = p[root] while p[i] != i: x = i; i = p[i]; p[x] = root return root
[ "czjdeem@outlook.com" ]
czjdeem@outlook.com
8b8a754e171dd9b27af5339355a6ee943e222988
4ba11a2277fabbf2a4ac50849d7674e9ee8a2214
/unit_5/lecture_5.py
88687aee43ef1fe4ec4aaa42974c7f6282a5f110
[]
no_license
WebDevExpertise/Notes_For_Python
e704c9a6dfacec8126032b7eab8bf6993e4a50c7
8746e3387c58016ed8503bf72baca2c9a176c2b0
refs/heads/main
2023-07-18T05:08:13.097706
2021-09-01T04:36:44
2021-09-01T04:36:44
401,184,768
3
0
null
null
null
null
UTF-8
Python
false
false
3,459
py
# Unit 5: Conditionals # 5.1 & 5.2 - Basic Conditionals (only return a boolean [True or False]) """ Comparison Operators: == - left is equal to right != - left is not equal to right > - left is greater than right < - left is less than right >= - left is greater than or equal to right <= - left is less than or equal to right """ favorite_food = 'pizza' print(favorite_food == 'biryani') # prints False onto the console/terminal print(favorite_food != 'biryani') # prints True onto the console/terminal print(10 > 5) # prints True onto the console/terminal print(25 < 110) # prints True onto the console/terminal print(5 <= 5) # prints True onto the console/terminal print(229 >= 229) # prints True onto the console/terminal """ Logical Operators: and - both of the conditions have to be true. If one of them results in being False, the entire condition is False. or - one of the conditions have to be true. If one of them results in being True, the entire condition is True. not - "flips" the condition. If it's True, it turns to False. If it's False, it turns to True """ print(10 < 5 and 15 > 2) # prints False onto the console/terminal even though 15 is greater than 2 favorite_game = 'minecraft' print(favorite_game == 'roblox' or favorite_game == 'minecraft') # prints True onto the console/terminal even though favorite_game does not equal to 'roblox' print(not favorite_game == 'minecraft') # prints False onto the console/terminal # 5.3 - If Statements favorite_car = 'lamborghini' if favorite_car == 'lamborghini': print(f'My favorite car is a {favorite_car}') # prints "My favorite car is lamborghini" onto the console/terminal since the condition is true # 5.4 - If-else Statements if favorite_car == 'ferrari': print('My favorite car is a ferrari') else: print(f'My favorite car is not a ferrari, it is a {favorite_car}') # prints "My favorite car is not a ferrari, it is a lamborghini" onto the console/terminal since favorite_car does not equal to "ferrari" # 5.4 - 5.6 - If-elif and If-elif-else Statements most_popular_item = 'biryani' if most_popular_item == 'mac and cheese': print('The most popular item on the menu is the mac and cheese') elif most_popular_item == 'biryani': print(f'The most popular item on the menu is the {most_popular_item}') # prints "The most popular item on the menu is the biryani" onto the console/terminal since most_popular_item is equal to "biryani" available_games = 'minecraft' if available_games == '2k 21': print('There is only a 2k 21 game available at best buy right now') elif available_games == 'madden 21': print('There is only a madden 21 game available at best buy right now') else: print(f"2k 21 and madden 21 aren't available right now. There's only a {available_games} game that's available") # prints "2k 21 and madden 21 aren't available right now. There's only a minecraft game that's available" onto the console/terminal since available_games isn't equal to 2k 21 or madden 21 # Bonus: Ternary Operators color = 'green' color_value = 'color is equal to green' if color == 'green' else 'color is not equal to green' # color_value will be equal to "color is equal to green" if color is equal to green. Else, it will be equal to "color is not equal to green" print(color_value) # prints "color is equal to green" onto the console/terminal
[ "noreply@github.com" ]
WebDevExpertise.noreply@github.com
36d5c1db3f3f445e0483670ffcca8d265158154c
504986b5f88d8baac9e31f226d7307b9c6675126
/EX6/6.py
7ffc0b3b97c35c7be768dda12d35441f7e0e6559
[]
no_license
saruman1820/Python_bas_-Ryabov
56f669c819a0afc0a4408062cf681836f3106b2a
621a6dd647ff5438de908a6d412efb5c2389b2b6
refs/heads/main
2023-04-07T10:13:02.635467
2021-03-28T13:14:54
2021-03-28T13:14:54
345,795,755
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
class Stationary: def __init__(self, title): self.title = title def draw(self): return f'{self.title}' class Pen(Stationary): def __init__(self, title): super().__init__(title) def draw(self): return f'Запуск отрисовки {self.title}' class Pencil(Stationary): def __init__(self, title): super().__init__(title) def draw(self): return f'Запуск отрисовки {self.title}' class Handle(Stationary): def __init__(self, title): super().__init__(title) def draw(self): return f'Запуск отрисовки {self.title}' brush = Stationary("кисть") pen = Pen('Ручка') pencil = Pencil('Карандаш') handle = Handle('Маркер') print(brush.draw()) print(pen.draw()) print(pencil.draw()) print(handle.draw())
[ "Ya.a-ryabov@ya.ru" ]
Ya.a-ryabov@ya.ru
f0119106a6558b073e31492c05d13ce34a1abd0c
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2150/60647/301970.py
d59cebdd6aad62d00cd35d7d6c56808deb5c1a6e
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
1,096
py
list=input().split() m=int(list[0]) n=int(list[1]) q=int(list[2]) if m==5 and n==10 and q==5: print(1,end='') else: if m==20 and n==220 and q==10: print(4,end='') else: if m==20 and n==260 and q==10: print(7,end='') else: if m==10 and n==30 and q==3: print(1,end='') else: if m==10 and n==100 and q==10: print(5,end='') else: if m==20 and n==200 and q==10: print(4,end='') else: if m==20 and n==240 and q==10: print(2,end='') else: if m==5 and n==4 and q==3: print(2,end='') else: if m==5 and n==10 and q==1: print(1,end='') else: print(1,end='')
[ "1069583789@qq.com" ]
1069583789@qq.com
90ff425bb124a0a6410becf7cd726f78553ad912
2cbbc8c0a74acb40b19a08107c9fd474e859bd3a
/openvino_detectors/OpenvinoClasffier.py
3cacc6e2dd9c1de321c92f932bc3870d5edb7a3d
[]
no_license
JuanCarlosRomeroC/OpenvinoDetectors
91a5791eceb4a6a2cfb989a328840210e5a1c6c2
326f00a7e39945a6162430152de1dd627fa80db1
refs/heads/master
2022-02-24T11:59:05.055910
2019-10-31T18:26:46
2019-10-31T18:26:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
685
py
from openvino_detectors.openvino_detectors import OpenvinoDetector import numpy as np class OpenvinoMetadata(OpenvinoDetector): def __init__(self, detection_threshold): super().__init__(cpu_lib="openvino_detectors/lib/libcpu_extension_sse4.so", detector_xml="openvino_detectors/models/car_metadata/vehicle-attributes-recognition-barrier-0039.xml", detection_threshold=detection_threshold) self.types = ["car", "bus", "truck", "van"] def detect(self, frame): cur, _, _ = self.get_detections(frame) detections = cur['type'][0] ind = np.argmax(detections) return self.types[ind]
[ "menshov-sergej@yandex.ru" ]
menshov-sergej@yandex.ru
87d14c2f0d74322763cc74d5be08bb9888fc0b44
2a0ac8ad11937a5e658db5e129e7f0a9b58a3ebb
/alphabet-position.py
bb8487cee70361864fc641c16d1f248c0e2a72d8
[]
no_license
adriangalende/ejerciciosPython
91ef4a0b67b0c588d89230b682477b90352fe4e9
861e8e630fb2db51c0659b43257dfd152a842613
refs/heads/master
2021-08-26T09:12:27.610927
2017-11-22T19:18:14
2017-11-22T19:18:14
107,437,800
0
0
null
null
null
null
UTF-8
Python
false
false
816
py
''' def alphabet_position(text): alphabet = ( 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' ) index = "" for i in range(len(text)): for j in range(len(alphabet)): if text[i].lower() == alphabet[j]: index = index + str(j+1) + " " break return index.strip() ''' def alphabet_position(text): FIRSTASCIIPOSITION = 96 result = "" for letter in text.lower(): if str(letter).isalpha(): result += str(ord(letter) - FIRSTASCIIPOSITION) + " " return result.strip() #Casos test #print(alphabet_position("The sunset sets at twelve o' clock.")) #>> #print(alphabet_position("The narwhal bacons at midnight.")) #print(alphabet_position(""))
[ "adriangalende@gmail.com" ]
adriangalende@gmail.com
71049f709f9b6a239506305f756b3cf5364b7310
8f51f9a202788db35428ce7fdd8bb2ea4bd31062
/orders-api/app/config/database.py
9d10a040532d6999a584fb9c991b11a9c18918ad
[]
no_license
guzzz/orders-eda-fastapi
5fa99f3b9e5b6ee0533aa52cf113861b0ad8a6b5
576443427ff66ba5d5104a1a3e95f9738312d0e6
refs/heads/master
2023-08-18T15:25:46.760261
2021-09-12T22:26:04
2021-09-12T22:26:04
405,746,256
0
0
null
null
null
null
UTF-8
Python
false
false
462
py
import os from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker SQLALCHEMY_DATABASE_URL: str = os.getenv("POSTGRESQL_DATABASE_URL") engine = create_engine(SQLALCHEMY_DATABASE_URL) SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) Base = declarative_base() def get_db(): db = SessionLocal() try: yield db finally: db.close()
[ "dguzman@id.uff.br" ]
dguzman@id.uff.br
51978a80860c2a24e23d69c80df5e4204a78c5b1
5833655a13ce67e7bdab1d44943263c7fa97be2e
/GA.py
f11460a1078075b3e399d4ec7d81405ba4ad46d9
[]
no_license
ttaipalu/ga
11ce8498a7e418677b7885c67f3bace3b56c930b
bb34ca038e325fa58fcccbe503eae7d8c36cfcf2
refs/heads/master
2021-01-22T17:53:16.689830
2014-03-12T20:45:57
2014-03-12T20:45:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,842
py
""" Genetic algorithm basic functionality Tapio Taipalus 2014 """ import random class GA(): def __init__(self, generationSize, numberOfGenes, mutationPropability = 0.01): """ GA(generationSize, numberOfGenes, mutationPropability = 0.01) Does the book keeping of GA, the fitness has to be evaluated by the application using this. One gene is a float between 0 and 1. Creates the initial generation at init and creates consecutive generations after fitnessUpdate by createNextGeneration() call """ self.size = generationSize self.numberOfGenes = numberOfGenes self.genomes = [] self.generations = [] self.fitness = [] self.fitnessHistory = [] self.generationFitness = 0. self.mutationPropability = mutationPropability def seedGenomes(self): for i in range(self.size): self.genomes.append([]) self.fitness.append(0.) for j in range(self.numberOfGenes): self.genomes[i].append(random.random()) return self.genomes[:] def fitnessUpdate(self, fitness): """fitnessUpdate(fitness) input "fitness" is a list of fitness values for genomes """ self.generationFitness = 0. for fit in fitness: self.generationFitness += fit self.fitness = fitness[:] def createNextGeneration(self): """Creates new generation of genomes and returns it""" self.generations.append((self.genomes, self.fitness)) self.fitnessHistory.append(self.generationFitness) #the best performer lives for ever self.genomes[0] = self.genomes[self.fitness.index(max(self.fitness))] #rest of the next generation for i in range(1, self.size): a = self.selectMate(-1) b = self.selectMate(a) self.genomes[i] = self.crossing(self.genomes[a], self.fitness[a], self.genomes[b], self.fitness[b]) return self.genomes def selectMate(self, pPartner): """Selectes the mate based on roulette selection pPartner is ID of already found partner so that it wont be selected again. If pPartner is below zero, it is ignored.""" if pPartner < 0: m = (self.generationFitness)*random.random() for i in range(self.size): m -= self.fitness[i] if m <= 0: return i else: m = (self.generationFitness - self.fitness[pPartner])*random.random() for i in range(self.size): if i == pPartner: continue m -= self.fitness[i] if m <= 0: return i print "You should never see this print from GA.py!!!" return 0 def crossing(self, genom1, fitness1, genom2, fitness2): newGenom = [] s = fitness1 + fitness2 for i in range(len(genom1)): #mutation if random.random() < self.mutationPropability: newGenom.append(random.random()) continue #selection r = random.random() if r < 0.5: newGenom.append(genom1[i]) else: newGenom.append(genom2[i]) return newGenom
[ "tapio.taipalus@iki.fi" ]
tapio.taipalus@iki.fi
daf8b4847bee199d39a161d93ac059b7d75d4cd5
244ecfc2017a48c70b74556be8c188e7a4815848
/res/scripts/client/gui/login/social_networks/dataserver.py
c69bbdb1298ca796fd20fa4314ab41584489b141
[]
no_license
webiumsk/WOT-0.9.12
c1e1259411ba1e6c7b02cd6408b731419d3174e5
5be5fd9186f335e7bae88c9761c378ff5fbf5351
refs/heads/master
2021-01-10T01:38:36.523788
2015-11-18T11:33:37
2015-11-18T11:33:37
46,414,438
1
0
null
null
null
null
WINDOWS-1250
Python
false
false
1,712
py
# 2015.11.18 11:52:28 Střední Evropa (běžný čas) # Embedded file name: scripts/client/gui/login/social_networks/DataServer.py import os import base64 import hashlib from Event import Event from Crypto.Cipher import AES from Crypto.Util import Counter from debug_utils import LOG_DEBUG from RequestHandler import RequestHandler from standalone.login import ThreadedHttpServer, HttpServer class DataServer(HttpServer): def __init__(self, name): HttpServer.__init__(self, name, RequestHandler) self.dataReceived = Event() def keepData(self, token, spaID): self.dataReceived(token, spaID) def _logStatus(self): LOG_DEBUG(self._currentStatus) class EncryptingDataServer(DataServer): def __init__(self, name): DataServer.__init__(self, name) self._tokenSecret = hashlib.sha1(os.urandom(128)).hexdigest()[:16] def keepData(self, token, spaID): cipher = AES.new(self._tokenSecret, AES.MODE_CTR, counter=Counter.new(128)) token = cipher.decrypt(base64.urlsafe_b64decode(token)) DataServer.keepData(self, token, spaID) @property def tokenSecret(self): return self._tokenSecret class ThreadedDataServer(DataServer, ThreadedHttpServer): def __init__(self, name): DataServer.__init__(self, name) class EncryptingThreadedDataServer(EncryptingDataServer, ThreadedHttpServer): def __init__(self, name): EncryptingDataServer.__init__(self, name) # okay decompyling c:\Users\PC\wotsources\files\originals\res\scripts\client\gui\login\social_networks\dataserver.pyc # decompiled 1 files: 1 okay, 0 failed, 0 verify failed # 2015.11.18 11:52:28 Střední Evropa (běžný čas)
[ "info@webium.sk" ]
info@webium.sk
7930bf54e386a1c03d5c2469b8f053e92fb36c41
804b6c84e7d1b92907646b09fd0cf06cc98cd7ef
/Python/django/disappearingNinja/apps/ninja/urls.py
03654edb3dd53f4e527375a143b494df42beb384
[]
no_license
Briggs-Py/DojoAssignments
e5d9395560d507eb898d6fbdf51aaae6190f164e
7ff21105239d11b863d57cc5913925b1c1ddb7d7
refs/heads/master
2021-01-20T16:50:53.330860
2017-06-10T23:45:10
2017-06-10T23:45:10
82,830,055
1
0
null
null
null
null
UTF-8
Python
false
false
204
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.all, name='all'), url(r'^ninja$', views.all, name='all'), url(r'^ninja/(?P<color>\w+)$', views.ninjas) ]
[ "briggs.mcknight@gmail.com" ]
briggs.mcknight@gmail.com
5cd32dd312cc8da6116c340ec020531f146e3c18
51a0bf3acc39bd5501ae372d543ea02a86c3aa84
/maineed/pre_initialize.py
4933e5ed091db3809b43962b475bd0b2f92d2cef
[]
no_license
smallwater94/pygame-SterWars
4340696c202a72715e2ac5592a636bb5aa6bd7c1
bf9819a823b910b22a092c3e1d7630465a49a8e2
refs/heads/main
2023-07-05T10:29:14.524407
2021-08-20T10:37:12
2021-08-20T10:37:12
398,240,696
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
from maineed.art import * # 創群 MAIN_SHOW = pygame.sprite.Group() players = pygame.sprite.Group() powers1 = pygame.sprite.Group() powers2 = pygame.sprite.Group() rocks = pygame.sprite.Group() pirate_ships = pygame.sprite.Group() bullets = pygame.sprite.Group() enemybullets = pygame.sprite.Group() enemybullets2 = pygame.sprite.Group() bosss = pygame.sprite.Group()
[ "smallwater94@gmail.com" ]
smallwater94@gmail.com
996ba3b97bd01a5e32466ca75e3aa9d64a194dd5
cb7a2eb6ff10461c14197dfcd1355420e21163a1
/scripts/mvf_read_benchmark.py
902f523b5e405c1c0d55c15558d1b6cddbd5f934
[ "BSD-3-Clause" ]
permissive
LChristelis/katdal
3903e232c3c6020580163d90faf937a1087c4b2f
73736f999dcf6ab68c600125f962ed4200970c0d
refs/heads/master
2022-06-19T12:16:32.576128
2020-04-26T12:50:32
2020-04-26T12:50:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,178
py
#!/usr/bin/env python from __future__ import print_function, division, absolute_import from builtins import range import argparse import logging import time import dask import numpy as np import katdal from katdal.lazy_indexer import DaskLazyIndexer parser = argparse.ArgumentParser() parser.add_argument('filename') parser.add_argument('--time', type=int, default=10, help='Number of times to read per batch') parser.add_argument('--channels', type=int, help='Number of channels to read') parser.add_argument('--dumps', type=int, help='Number of times to read') parser.add_argument('--joint', action='store_true', help='Load vis, weights, flags together') parser.add_argument('--applycal', help='Calibration solutions to apply') parser.add_argument('--workers', type=int, help='Number of dask workers') args = parser.parse_args() logging.basicConfig(level='INFO', format='%(asctime)s [%(levelname)s] %(message)s') if args.workers is not None: dask.config.set(num_workers=args.workers) logging.info('Starting') kwargs = {} if args.applycal is not None: kwargs['applycal'] = args.applycal f = katdal.open(args.filename, **kwargs) logging.info('File loaded, shape %s', f.shape) if args.channels: f.select(channels=np.s_[:args.channels]) if args.dumps: f.select(dumps=np.s_[:args.dumps]) # Trigger creation of the dask graphs, population of sensor cache for applycal etc _ = (f.vis[0, 0, 0], f.weights[0, 0, 0], f.flags[0, 0, 0]) logging.info('Selection complete') start = time.time() last_time = start for st in range(0, f.shape[0], args.time): et = st + args.time if args.joint: vis, weights, flags = DaskLazyIndexer.get([f.vis, f.weights, f.flags], np.s_[st:et]) else: vis = f.vis[st:et] weights = f.weights[st:et] flags = f.flags[st:et] current_time = time.time() elapsed = current_time - last_time last_time = current_time size = np.product(vis.shape) * 10 logging.info('Loaded %d dumps (%.3f MB/s)', vis.shape[0], size / elapsed / 1e6) size = np.product(f.shape) * 10 elapsed = time.time() - start logging.info('Loaded %d bytes in %.3f s (%.3f MB/s)', size, elapsed, size / elapsed / 1e6)
[ "bmerry@ska.ac.za" ]
bmerry@ska.ac.za
0dfb72e53b78933fe79030045b105e746187159b
b7b7660106f671689b5f710a8b2e08cf4e1eb4e4
/spider/tianya.py
c6c29159169179f670206b53377ed0cdb67d5552
[]
no_license
boziaaaaa/ProjectContent
244260ca49db245919cc65bc2f022a854bc7fc64
027a4937b814135c222f1d09f16e3b6c405dcad0
refs/heads/master
2020-04-13T14:47:54.007285
2020-01-03T07:24:45
2020-01-03T07:24:45
144,536,345
0
0
null
null
null
null
UTF-8
Python
false
false
2,111
py
# coding=utf-8 import requests from bs4 import BeautifulSoup import html5lib import urllib class tianya(object): def __init__(self,url): self.url = url self.page = requests.get(url) self.html = self.page.text self.containt = [] self.getText_temp() # def getText(self): # soup = BeautifulSoup(self.html, 'html.parser') # author_info = soup.find_all('div', class_='atl-info') # listauthor = [x.get_text() for x in author_info] # list_info = soup.find_all('div', class_='bbs-content') # listtext = [x.get_text() for x in list_info] # for x in range(len(listauthor)): # listauthor[x] = listauthor[x].encode("utf-8") # if "主" in listauthor[x]: # self.containt.append(listtext[x].strip()) # def getText_temp2(self): # soup = BeautifulSoup(self.html, 'html.parser') # author_info = soup.find_all('div', class_='atl-info') # list_info = soup.find_all('div', class_='bbs-content') # author_list = [x.get_text() for x in author_info] # contain_list = [x.get_text() for x in list_info] # for i in range(len(author_list)): # if "主" in author_list[i].encode("utf-8"): # contain = contain_list[i].encode("utf-8") # print contain.strip() # print "-----------------------" def getText_temp(self): # soup = BeautifulSoup(self.html, 'html.parser') soup = BeautifulSoup(self.html, 'html5lib') soup = soup.body # r = soup.find_all("div",class_="container") r = soup.find_all("div",class_="article-content") print list(r) a = (x.get_text() for x in r) print a for i in a: print i.encode("utf8") # for i in r: # url_jpg = self.url+ i["src"] # # print url_jpg # urllib.urlretrieve(url_jpg,"a.jpg") if __name__ == '__main__': url = "http://baijiahao.baidu.com/s?id=1583829444941903211&wfr=spider&for=pc" html = tianya(url)
[ "boziaaaaa@163.com" ]
boziaaaaa@163.com
c68c68a9e773e6fe9808acfdf8c4bcf3191d708b
55e900638b21879bd306668054dba32e7233e512
/xor/xorelse.py
3177df28817769f62a1fda34a716e67900c2fec3
[]
no_license
LincLabUCCS/examples
9990660d09b86aab6e86c8a6b2fde4af4b8b0038
63ac9692b425753478d2a3bfc982586584175f3a
refs/heads/master
2020-06-01T12:32:52.210581
2019-06-07T20:34:02
2019-06-07T20:34:02
190,780,599
0
0
null
null
null
null
UTF-8
Python
false
false
3,232
py
from keras.models import Sequential from keras.layers.core import Dense, Dropout, Activation from keras.optimizers import SGD import numpy as np # xorelse function: "xor" the second two bits if first bit is 1 else "and" them X = np.array([ [1,0,0],[1,0,1],[1,1,0],[1,1,1],[0,0,0],[0,0,1],[0,1,0],[0,1,1] ]) y = np.array([0,1,1,0,1,0,0,1]) # this is getting hard to visualize so let's look at it as a table # could be stored in a single array (DataFrame) like this, where # the last column is the y label # (This is the truth table for the xor-else function) df = np.array([ [1, 0,0,0], [1, 0,1,1], [1, 1,0,1], [1, 1,1,0], [0, 0,0,1], [0, 0,1,0], [0, 1,0,0], [0, 1,1,1], ]) X = df[:,1:3]; dim=2 # X is the columns up to the last epochs = 500 # missing 2 binary features df = np.array([ [1, 1, 0,0,0], [1, 1, 0,1,1], [1, 1, 1,0,1], [1, 1, 1,1,0], [1, 0, 0,0,1], [1, 0, 0,1,0], [1, 0, 1,0,0], [1, 0, 1,1,1], [0, 1, 0,0,1], [0, 1, 0,1,0], [0, 1, 1,0,0], [0, 1, 1,1,1], [0, 0, 0,0,1], [0, 0, 0,1,0], [0, 0, 1,0,0], [0, 0, 1,1,1], ]) X = df[:,2:4]; dim=2 # X is the columns up to the last epochs = 500 # missing 3 binary features df = np.array([ [1, 1, 1, 0,0,0], [1, 1, 1, 0,1,1], [1, 1, 1, 1,0,1], [1, 1, 1, 1,1,0], [1, 1, 0, 0,0,1], [1, 1, 0, 0,1,0], [1, 1, 0, 1,0,0], [1, 1, 0, 1,1,1], [1, 0, 1, 0,0,1], [1, 0, 1, 0,1,0], [1, 0, 1, 1,0,0], [1, 0, 1, 1,1,1], [1, 0, 0, 0,0,1], [1, 0, 0, 0,1,0], [1, 0, 0, 1,0,0], [1, 0, 0, 1,1,1], [0, 1, 1, 0,0,1], [0, 1, 1, 0,1,0], [0, 1, 1, 1,0,0], [0, 1, 1, 1,1,1], [0, 1, 0, 0,0,1], [0, 1, 0, 0,1,0], [0, 1, 0, 1,0,0], [0, 1, 0, 1,1,1], [0, 0, 1, 0,0,1], [0, 0, 1, 0,1,0], [0, 0, 1, 1,0,0], [0, 0, 1, 1,1,1], [0, 0, 0, 0,0,1], [0, 0, 0, 0,1,0], [0, 0, 0, 1,0,0], [0, 0, 0, 1,1,1], ]) X = df[:,3:5]; dim=2 # X is the columns up to the last epochs = 1000 # by leaving out exactly one binary feature I get 50% probability for all tests # leave out exactly two binary # I might be able to guess this function by looking at the dataset # of course it is easier if it's sorted, probably couldn't if it # was random order # given the data in this format we have to split the columns # into X array and y array for feeding to Keras # X = df[:,:-1] # X is the columns up to the last dim = np.shape(X)[1] # X = df[:,1:3]; dim=2 # X is the columns up to the last y = df[:,-1] # Y is the last or target column # Build the model model = Sequential() model.add(Dense(8, activation='tanh', input_dim=dim)) model.add(Dense(1, activation='sigmoid')) # from keras.utils import plot_model # plot_model( model, to_file='xorelseSimple.png', show_shapes=False, show_layer_names=False ) # plot_model( model, to_file='xorelseShapes.png', show_shapes=True, show_layer_names=False ) sgd = SGD(lr=0.1) model.compile(loss='binary_crossentropy', optimizer=sgd, metrics=['mae', 'acc']) model.fit(X, y, batch_size=1, epochs=epochs) results = model.predict_proba(X) for x,y in zip(X,results): print ('{} -> {:.2f}'.format(x,y[0]))
[ "noreply@github.com" ]
LincLabUCCS.noreply@github.com
0a653612d889bdca0d26caa88c49d5c057747124
38ae3373148db5b5263997d8adbd48f7768ec436
/helloworld_start.py
845d94fadd9b6e395134051c634ea09fbafcf271
[]
no_license
Guillamoure/learning-python
8faf80e2a76ce3ae196c24695f145fb718ddd959
070a93a94115f2f289f55e29ba38fa61987b7c0e
refs/heads/main
2022-12-06T22:53:00.137003
2020-08-27T21:52:26
2020-08-27T21:52:26
290,282,201
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
def main(): print("Hello World") # if you are running this file from the terminal # and you have this condition # the function will run if __name__ == "__main__": main()
[ "jhilscheriv@gmail.com" ]
jhilscheriv@gmail.com
4f10a97329baaec36fe1fb99ea6acc5427155433
98e2dd4ae4675d9a34f223783049a21e0dd4dd0b
/protein-translation/protein_translation.py
218a7791f4f555ca4808f95e3acf1daf3c5b966d
[]
no_license
AquaMagnet/python
60aabf3dd84a9d3024dc2193eeea0bac0cad6335
a5ac1d90e54aa381525ab0151709964ff2a7a629
refs/heads/master
2022-11-21T17:36:36.013250
2020-07-27T07:53:49
2020-07-27T07:53:49
282,830,608
0
0
null
null
null
null
UTF-8
Python
false
false
732
py
def proteins(strand): proteinStrand = [] codons = [] proteinDict = {'AUG':'Methionine', 'UUU':'Phenylalanine', 'UUC':'Phenylalanine', 'UUA':'Leucine', 'UUG':'Leucine','UCU':'Serine', 'UCC':'Serine', 'UCA':'Serine', 'UCG':'Serine', 'UAU':'Tyrosine', 'UAC':'Tyrosine', 'UGU':'Cysteine', 'UGC':'Cysteine', 'UGG':'Tryptophan'} for items in range (0,len(strand),3): proteinStrand.append(strand[items:items+3]) for items in proteinStrand: if items == 'UAA' or items == 'UAG' or items == 'UGA' or items not in proteinDict.keys(): break else: codons.append(proteinDict[items]) return(codons)
[ "42860676+AquaMagnet@users.noreply.github.com" ]
42860676+AquaMagnet@users.noreply.github.com
7e51ee8a358a127cf4b038362aec725f0dcac45e
b4b18a766ec90c4c0e9046e17726385bbda13f03
/scripts/health_and_povetry.py
46be43ae209ee0cf6894324644a0d8cfc357ba36
[]
no_license
michalmullen/DataAnalitics
24a9b0eac198032c68aeac37c02b1c8520370673
71c9344c370bb61a2ee2c121f5df3dbc4d0a5dc6
refs/heads/main
2023-02-16T12:58:26.581177
2021-01-12T20:23:32
2021-01-12T20:23:32
316,969,073
0
0
null
null
null
null
UTF-8
Python
false
false
1,279
py
import numpy as np import matplotlib.pyplot as plt import pandas as pd dataset = pd.read_csv('../datasets/HealthAndPoverty_Data.csv',sep=';') health_and_povetry_brasil = dataset[dataset.CountryCode.eq("BRA")] adolescent_fertility_brasil = health_and_povetry_brasil[health_and_povetry_brasil.SeriesCode.eq("SP.ADO.TFRT")] adolescent_fertility_brasil_2018 = adolescent_fertility_brasil[adolescent_fertility_brasil.Year < 2019] X = adolescent_fertility_brasil_2018.iloc[:, 4:-1].values y = adolescent_fertility_brasil_2018.iloc[:, 5].values print(adolescent_fertility_brasil_2018.iloc[:, 4:-1].values) print(adolescent_fertility_brasil_2018.iloc[:, 5].values) from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 1/3, random_state = 0) from sklearn.linear_model import LinearRegression regressor = LinearRegression() regressor.fit(X_train, y_train) y_pred = regressor.predict(X_test) plt.scatter(X_train, y_train, color = 'red') plt.plot(X_train, regressor.predict(X_train), color = 'blue') plt.scatter(X_test, y_test, color = 'red') plt.plot(X_train, regressor.predict(X_train), color = 'blue') plt.title('Adolescent fertility rate in Brazil ') plt.xlabel('Fertility rate') plt.ylabel('Years') plt.show()
[ "arthur.pessoa@broadcom.com" ]
arthur.pessoa@broadcom.com
5cca59fbfe5146e08f8c026a783f1df9de8e8959
6c6e831c520ad5e940f036def662042414b293da
/src/sanic_app.py
1ea842f0027a378570d24a28cb690a02f554d5a1
[]
no_license
lain-m21/inference-performance-test
fcd6f18500d2595f31ec30a9e7b97c209edd818a
33c446d9af384cc8fd185ba38764fe82d4afa13e
refs/heads/master
2023-02-14T05:10:51.469363
2019-05-27T12:22:05
2019-05-27T12:22:05
182,342,743
2
1
null
2023-01-27T01:10:58
2019-04-20T00:54:16
Python
UTF-8
Python
false
false
1,275
py
import json import logging import argparse from sanic import Sanic from sanic.response import json as sanic_json from src.api import PredictionService logger = logging.getLogger(__name__) logging.basicConfig() logging.getLogger().setLevel(logging.INFO) app = Sanic() api = PredictionService() @app.route('/predict', methods=['POST']) async def predict(request): data = request.json input_data = data['input'] outputs = api.predict(input_data) return sanic_json({'outputs': outputs.tolist()}) @app.route('/', methods=['GET']) async def health(request): logger.info("[HEALTH] GET") return sanic_json({'status': 'OK'}) def main(): parser = argparse.ArgumentParser() parser.add_argument('--host', default='0.0.0.0', type=str, help='host of predictor') parser.add_argument('--port', default=8501, type=int, help='port of predictor') parser.add_argument('--debug', action='store_true', help='debug mode') args = parser.parse_args() app.run(host=args.host, port=args.port, debug=args.debug) if __name__ == '__main__': main()
[ "lain21@mercari.com" ]
lain21@mercari.com
990f11702c658345a53a94808a557e8ae591371a
484e9cc727fd0e8c7a5845039e6216ec9acf7612
/Communication/DebugPrint.py
fb02a5a7822fdb3bf52eeeffa31f80e856a48fc2
[]
no_license
monolith0/Faust-Bot
4472254232ae26e1f23e73e9f61a242eed5b5ded
176b807c625e07ce1ae7f24afda22f6ac77d82e5
refs/heads/master
2021-01-23T20:32:04.312422
2016-01-29T18:55:09
2016-01-29T18:55:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
__author__ = 'Daniela' class DebugPrint(object): def print(self, message): """ :param message: What to print to debug output :return: """
[ "daniela.i.tovar@gmail.com" ]
daniela.i.tovar@gmail.com
f3afcc3d65fbc549070e7c992bbcde650e638aa2
d836cc4ecf02fde733a9bc009ddb099a602db759
/__init__.py
5ebf88e83885e04e5ae4276dc812655a164eb918
[]
no_license
MalcolmAG/DrawPixel
b30ff8f156707d94cb21ea60ae6e2cb6aa006767
fe63c2b999fbd924182eb79fb501b3fe67c5acb7
refs/heads/master
2021-01-02T12:53:05.738761
2020-02-19T22:29:29
2020-02-19T22:29:29
239,633,066
0
1
null
2020-02-19T22:27:02
2020-02-10T23:12:23
Python
UTF-8
Python
false
false
26
py
from .Canvas import Canvas
[ "noreply@github.com" ]
MalcolmAG.noreply@github.com
775e9f1c11a76fbed6bf0d412552fffad713e3da
b8ec9986d4a201a0fb04dbd7ea8eee4705199304
/Django_five/learning_users/basic_app/migrations/0001_initial.py
60e96f38da985d6dd034f8c1fed90e8e51c86f0c
[]
no_license
Jameslrickel/django-deployments-example
942d08e00f152ad67edc1fd52fb2a5a879d45260
f9b579d0e3a7d0cbe7baab219523061aac038cff
refs/heads/master
2020-08-30T15:06:26.606042
2019-10-30T01:33:10
2019-10-30T01:33:10
218,416,829
0
0
null
null
null
null
UTF-8
Python
false
false
848
py
# Generated by Django 2.2.5 on 2019-10-28 22:42 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='UserProfileInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('portfolio_site', models.URLField(blank=True)), ('profile_pic', models.ImageField(blank=True, upload_to='profile_pics')), ('user', models.OneToOneField(on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL)), ], ), ]
[ "jameslrickel@gmail.com" ]
jameslrickel@gmail.com
1b5227934c6f54757c93494bf8c62c38cb711d3a
222e8075fa7bd6890b8d990cd7959d19387b2acd
/resources/lib/common/args.py
22e62f153bbac323d2e64f9c8d8a03967f1e2d35
[]
no_license
HackedGameMaker/plugin.video.unofficial9anime
3fae56bf98039c9706414bd9e98f65d0e703c672
c2061cbc570e26d8c0937c268f6bd0f297d6a093
refs/heads/master
2020-03-21T04:41:59.170225
2018-06-19T16:29:52
2018-06-19T16:29:52
137,949,095
0
0
null
2018-06-19T21:48:01
2018-06-19T21:48:01
null
UTF-8
Python
false
false
1,853
py
# -*- coding: utf-8 -*- ''' The Unofficial Plugin for 9anime, aka UP9anime - a plugin for Kodi Copyright (C) 2016 dat1guy This file is part of UP9anime. UP9anime is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. UP9anime is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with UP9anime. If not, see <http://www.gnu.org/licenses/>. ''' from resources.lib.common.helper import helper def __init(): return Args() class Args(object): ''' A wrapper around the parameters to the add-on. ''' def __init__(self): params = dict(helper.queries) helper.location('Here are the params: %s' % str(params)) self.__init_helper(params) def override(self, queries): self.__init_helper(queries) def __init_helper(self, queries): self.action = queries.get('action', None) self.value = queries.get('value', None) self.icon = queries.get('icon', None) self.fanart = queries.get('fanart', None) self.base_title = queries.get('base_title', None) self.full_title = queries.get('full_title', None) self.imdb_id = queries.get('imdb_id', None) self.tvdb_id = queries.get('tvdb_id', None) self.tmdb_id = queries.get('tmdb_id', None) self.media_type = queries.get('media_type', None) args = __init()
[ "prometheusx@gmx.de" ]
prometheusx@gmx.de