blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
a99c3fb1646b9037c033ba2d9120a22697a5db2f
348d4ddbbef412a4756c01afe06bfee0e5c53048
/setup.py
cfdbf29d98916dbd8105645c019a768730e54634
[]
no_license
SandboxEducation/pibrella
cbf6f61e38db8b995ded0d02cc29557e80c73f6b
19207dac9a860243a52508a4509b85c7dc88a270
refs/heads/master
2020-12-25T07:05:45.853314
2014-05-13T08:14:34
2014-05-13T08:14:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,027
py
""" Copyright (c) 2014 Pimoroni Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ from distutils.core import setup classifiers = ['Development Status :: 4 - Beta', 'Operating System :: POSIX :: Linux', 'License :: OSI Approved :: MIT License', 'Intended Audience :: Developers', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Topic :: Software Development', 'Topic :: System :: Hardware'] setup(name = 'Pibrella', version = '1.1.5dev', author = 'Philip Howard', author_email = 'phil@gadgetoid.com', description = 'A module to control the Pibrella Raspberry Pi Addon Board', long_description= open('README.md').read() + open('CHANGELOG.txt').read(), license = 'MIT', keywords = 'Raspberry Pi Pibrella', url = 'http://www.pibrella.com', classifiers = classifiers, py_modules = ['pibrella'], install_requires= ['rpi.gpio >= 0.5.5'] )
[ "phil@gadgetoid.com" ]
phil@gadgetoid.com
07afe75284abf196cae225f340b17719c8769683
da1f49aa0ee3cbbd0b7add4a8ee4210c50fc81b7
/demo/modules/highest_factor.py
ec797cefcc7cb8f7bdbb1e0d9c64961dbd1e4ea0
[]
no_license
srikanthpragada/PYTHON_30_AUG_2021
a1cde290072e152440dcd07dce377154a9e3052e
f84f272718b483fbf67ca8f950e6e4f933307e63
refs/heads/master
2023-08-25T14:11:12.826321
2021-10-11T14:14:36
2021-10-11T14:14:36
402,412,522
1
0
null
null
null
null
UTF-8
Python
false
false
168
py
import sys for n in sys.argv[1:]: num = int(n) for i in range(num // 2, 0, -1): if num % i == 0: print(f"{num:5} {i:5}") break
[ "srikanthpragada@gmail.com" ]
srikanthpragada@gmail.com
998649baa7285122e041cdaf4a5dfbe984bc7c86
208560a564cc79822d5c6258ddd16e0e0e26362e
/Chapter-03-Arrays/Zip-It/Zip-It.py
f884730f8bf676fac4bc5219c5e1f4253749a444
[]
no_license
vishnuap/Algorithms
c778984e1afd6b8d160ce868f6ad4408da84855f
fa6c3022616a958bce86f0b1218372d47fe8bf7e
refs/heads/master
2020-09-15T19:00:11.552634
2017-06-25T19:32:11
2017-06-25T19:32:11
67,612,765
0
0
null
null
null
null
UTF-8
Python
false
false
1,449
py
# Chapter-3: Arrays # Zip-It # 1. Create a function that accepts two arrays and combines their values sequentially into a new array at alternating indices starting with the first array. Extra values of either array should be included afterwards. Given [1,2] and [10,20,30], return [1,10,2,20,30] # 2. Combine the two arrays in the same way but in the first array instead of creating a new array # Assume the arguments being passed are both arrays # Assume use of built in functions (for doing this without builtin functions, use the approach from the Array-Insert-At solution earlier in this chapter) # 1 def zipIt(arr1, arr2): result = [] length = len(arr1) + len(arr2) for i in range(0, length): if i < len(arr1): result.append(arr1[i]) if i < len(arr2): result.append(arr2[i]) return result # 2 def zipIt2(arr1, arr2): arr1Len = len(arr1) arr2Len = len(arr2) idx = 0 while (len(arr1) < arr1Len + arr2Len): if (idx < arr1Len): arr1.insert((idx * 2) + 1, arr2[idx]) else: arr1.insert(len(arr1), arr2[idx]) idx += 1 myArr1 = [1,2,3,4,5] myArr2 = [10,20,30,40,50] print("The original arrays are {} and {}").format(myArr1, myArr2) print("The zipped array is {}").format(zipIt(myArr1, myArr2)) print("The zipped array is {}").format(zipIt(myArr2, myArr1)) zipIt2(myArr1, myArr2) print("The zipped array is {}").format(myArr1)
[ "vishnusak@gmail.com" ]
vishnusak@gmail.com
546338e31f9f5ef23fb15bfe9b728c85cdc7c795
b0a7ea84cb24ca4acfc7a18cfe7012dec8eb12e7
/flask知识点/code_13set_cookies.py
e67e7bb22c6b25327f39804272ca83b739e730a6
[]
no_license
amourbrus/temp
414d1c0d4fc60dd3b7ba8b41773d0f6e653b3085
a6f2ec85f85578923d9809cdc4ab519f0bd7584e
refs/heads/master
2022-12-15T11:50:17.640481
2018-09-03T09:39:02
2018-09-03T09:39:02
147,171,404
0
0
null
2022-11-22T02:36:01
2018-09-03T08:01:00
HTML
UTF-8
Python
false
false
466
py
from flask import Flask, make_response from flask import request app = Flask(__name__) @app.route('/baidu') def set_cookie(): resp = make_response("一个参数, 响应体") # set_cookie 方法, 注意"," resp.set_cookie("name", "itheima", max_age=3600) resp.set_cookie("city", "sz") return resp @app.route('/get_cookie') def get_cookie(): name = request.cookies.get("name") return name if __name__ == '__main__': app.run()
[ "2338336776@qq.com" ]
2338336776@qq.com
95e4e9d616d2bab6eb768b8a1f08744704c71664
54da94dce244ab659c8036cafcdc1b326fbfe490
/datoteke-s-predavanj/2017-18/06-slovarji/memoizacija.py
b07867c136631991231727ad23ed31f8cfcea25c
[]
no_license
jakamrak/uvod-v-programiranje
640b2738164e2026308d7e60f1478659df79cc40
3c05290f4f23b384ad9063880fffe208c08fc599
refs/heads/master
2022-07-17T16:50:18.563453
2020-05-18T13:54:13
2020-05-18T13:54:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,035
py
krst_pri_savici = ''' UVOD Valjhun, sin Kajtimara, boj krvavi že dolgo bije za kršansko vero, z Avreljam Droh se več mu v bran ne stavi; končano njino je in marsiktero življenje, kri po Kranji, Koratani prelita napolnila bi jezero. Gnijo po polji v bojih pokončani trum srčni vajvodi, in njih vojšaki, sam Črtomir se z majhnim tropam brani. Bojuje se narmlajši med junaki za vero staršov, lepo bognjo Živo. za črte, za bogove nad oblaki. On z njimi, ki še trdjo vero krivo, beži tje v Bohinj, v Bistrško dolino, v trdnjavo zidano na skalo sivo. Še dan današnji vidiš razvalino, ki Ajdovski se gradec imenuje, v nji gledaš Črtomirovo lastnino. Devetkrat veči množca jih obsuje, in zveste straže krog in krog postavi, odvzame up jim vse pomoči tuje; visoke odre tamkej si napravi, zidovje podkopuje, vrata seka; ne polasti se njih, ki so v trdnjavi. Šest mescov moči tla krvava reka, Slovenec že mori Slovenca, brata - kako strašna slepota je človeka! Ko niso meč, sekira in lopata jih mogle, lakota nepremagljiva preti odpreti grada trdne vrata. Dalj Črtomir jim reve ne zakriva, besede te tov'aršam reče zbranim: "Ne meč, pregnala bo nas sreča kriva. Le malo vam jedila, bratje! hranim, branili smo se dolgo brez podpore, kdor hoče se podati, mu ne branim; kdor hoče vas dočakat temne zore, neproste dni živet nočem enake, ne branim mu, al jutra čakat more. S seboj povabim druge vas junake, vas, kterih rama se ukloniti noče; temna je noč, in stresa grom oblake; sovražnik se podal bo v svoje koče, le majhen prostor je tje do gošave; to noč nam jo doseči je mogoče. Narveč sveta otrokam sliši Slave, tje bomo najdli pot, kjer nje sinovi si prosti voljo vero in postave. Ak pa naklonijo nam smrt bogovi, manj strašna noč je v črne zemlje krili, ko so pod svetlim soncam sužni dnovi!" Ne zapusti nobeden ga v ti sili, molče orožje svoje vsak si vzame, strahljivca v celem ni imel števili; al komej vrata so odprte, vname se strašni boj, ne boj, mesarsko klanje: Valjhun tam s celo jih močjo objame. Tud' on se je zanesel na njih spanje, prelesti mislil je ozidje grada, in ponevedama planiti nanje. Ko svojo moč narbolj vihar razklada, okrog vrat straža na pomoč zavpije, in vstane šum, de mož za možam pada. Ko se neurnik o povodnji vlije, iz hriba strmega v doline plane, z derečimi valovami ovije, kar se mu zoper stavi, se ne ugane, in ne počije pred, de jez omaga; tak vrže se Valjhun na nekristjane. Ne jenja pred, dokler ni zadnja sraga krvi prelita, dokler njih kdo sope, ki jim bila je vera čez vse draga. Ko zor zasije na mrličov trope, leže, k' ob ajde žetvi, al pšenice po njivah tam leže snopovja kope. Leži kristjanov več od polovice, med njimi, ki so padli za malike, Valjhun zastonj tam iše mlado lice KRST Mož in oblakov vojsko je obojno končala temna noč, kar svetla zarja zlati z rumenmi žarki glavo trojno snežnikov kranjskih sivga poglavarja, Bohinjsko jezero stoji pokojno, sledu ni več vunanjega viharja; al somov vojska pod vodo ne mine, in drugih roparjov v dnu globočine. Al jezero, ki na njega pokrajni stojiš, ni, Črtomir! podoba tvoja? - To noč je jenjal vojske šum vunajni, potihnil ti vihar ni v prsih boja; le hujši se je zbudil črv nekdajni, ak prav uči me v revah skušnja moja, bolj grize, bolj po novi krvi vpije, požrešniši obupa so harpije. Na tleh leže slovenstva stebri stari, v domačih šegah vtrjene postave; v deželi parski Tesel gospodari, ječe pod težkim jarmam sini Slave, le tujcam sreče svit se v Kranji žari, ošabno nosjo ti pokonci glave. Al, de te jenja ta skeleti rana, ne boš posnel Katona Utikana! Prenesla pričujoče ure teže bi ne bila let poznih glava siva; v mladosti vender trdniši so mreže, ki v njih drži nas upa moč goljfiva; kar, Črtomir! te na življenje veže, se mi iz tvojih prejšnjih dni odkriva, ko te vodila ni le stara vera tje na osredek Bleškega jezera. Tje na otok z valovami obdani, v današnjih dnevih božjo pot Marije; v dnu zad stoje snežnikov velikani, polja, ki spred se sprosti, lepotije ti kaže Bleški grad na levi strani, na desni griček se za gričam skrije. Dežela kranjska nima lepšga kraja, ko je z okolšno ta, podoba raja. Tam v časih Črtomira na otoki podoba boginje je stala Žive, ki so zročeni ji mladenčov stoki; ki so ji, ve dekleta ljubeznive! zročeni vaši smehi, vaši joki, orožja, ki so nam nepremagljive. - Tam bognje vežo Staroslav in lepa njegova hči odpira in zaklepa. Hči Bogomila, lepa ko devica, sloveča Hero je bila v Abidi, nedolžnost vnema ji oči in lica, lepote svoje sama le ne vidi, priliznjena mladenčov govorica je ne napihne, ji srca ne spridi. Spolnila komej je šestnajsto leto; srce mlado ni za noben'ga vneto. Dari opravit bognji po navadi prinese Črtomira lahka ladja, od tega, kar raste pri njega gradi, od čede, žita in novine sadja; ko bliža z njimi se devici mladi, zadene ga, ko se je narmanj nadja, iz nje oči v srce ljubezni strela, plamen nepogasljiv je v njemu vnela. O blagor, blagor, Črtomir! ti vneta je deklica od tvojega pogleda, kak od zamaknjenja je vsa prevzeta, kak gleda v tla, kak trese se beseda! Ko zarija, ki jasen dan obeta, zarumeni podoba njena bleda, in v tvoji roki roka nje ostane zadržana ji od moči neznane. Naj pevec drug vam srečo popisuje, ki celo leto je cvetla obema: kak Črtomir osredek obiskuje, kak oča omladi med njima dvema, ki ni, ko meni, mu veselje tuje, ki srečna ga ljubezen v prsih vnema, pijanost njino, ki tak hitro mine, pregnana od ločitve bolečine. Že, Črtomir! je treba se ločiti, ne slišiš, kak glasno trobenta poje? Pripodil s sabo je Valjhun srditi požigat božje veže divje roje; povsod vzdigujejo se vere ščiti, ki si prejel od matere jo svoje, te vere, ki ji deklica ta služi, ki zdaj te z njo ljubezen čista druži. Kak težka, bridka ura je slovesa! Stoje po licah jima kaplje vroče, objeta sta, ko bi bila telesa enga, spustiti žnabel žnabla noče; si z levga oča, desnega očesa jok briše, ki ga skriti ni mogoče, ko vidi v tako žalost nju vtopljene, in de tolažbe zanje ni nobene. Bi spomnil njima zmage večno slavo, ak bi, de jo doseči moč je, sodil; al preveliko trumo je čez Dravo po Kokri doli v Kranj Valjhun pripodil. Se možu zdi, de gre le v smrt krvavo, brez de bi vero, brate osvobodil. - List pride, kak vasi in veže božje gore; - čas, Črtomir! je vzet orožje. In šel je boj bojvat brez upa zmage, in skazal se je korenine prave, kjer suče meč, na čeli smrtne srage leže sovražnikov trupla krvave mrtvih, al izdihjočih duše drage; vender ne meč, ne moč gradu trdnjave bogov ne more rešit slavnih staršov, in ne pred smrtjo ohranit tovaršov. Premagan pri Bohinjskem sam jezeri stoji naslonjen na svoj meč krvavi, z očmi valov globoki brezen meri, strašne mu misli rojijo po glavi, življenje misli vzet si v slepi veri; al nekaj mu predrzno roko ustavi - bila je lepa, Bogomila! tvoja podoba, ki speljala ga je 'z boja. Enkrat videt želi podobo milo, pozdravit prejšnjega veselja mesto; al srečno je prestala časov silo, al njeno mu srce še bije zvesto, al morebit pod hladno spi gomilo, al premagavec mu je vzel nevesto, al živa, al mrtva je, zvedet more, ločiti pred se iz sveta ne more. Znan ribič privesla od une strani, opomni ga, kak sam sebe pozabi, kako povsod ga išejo kristjani, kak z vjetimi Valjhun srditi rabi, prijazno delj mu tam ostati brani, stopiti k sebi ga v čolnič povabi, de ga pripelje v varniši zavetje; vda Črtomir se v to, kar ribič svetje. In brž veslata v konec ta jezera, kjer bistra vanjga pribobni Savica; ker srečen veter nji roke podpera, čolnič leti, ko v zraki urna tica. Se ribič po sovražnikih ozera, čoln vstavi, kjer je gosta senc temnica. Ker se mu zdi, de lakota ga grudi, junaku, kar je v torbici, ponudi. Želi dat Črtomir mu povračilo, al v vojski dnarji so bili razdani; de Staroslav, se spomni, z Bogomilo mu v skrivnem kraji tovor zlata hrani, nju poiskati da mu naročilo, in da mu prstan samo njima znani, de bo pri njima storil mu resnico; - prinesti zlata reče četrtnico. Po Bogomili prašat mu ukaže: al gleda svetlo sonce, je še živa, al so obvarvale jo mokre straže, al pred sovražniki drugej se skriva, in kod narvarniši se pot pokaže, tje, kjer zdaj draga deklica prebiva? Pri slapi čakal jutro bo Savice, vesele ali žalostne novice. Slap drugo jutro mu grmi v ušesa; junak premišlja, kak bolj spodej lena voda razgraja, kak bregove stresa, in kak pred njo se gore ziblje stena, kak skale podkopuje in drevesa, kak do nebes leti nje jeze pena! - Tak se zažene, se pozneje ustavi mladenič, Črtomir pri sebi pravi. Zbudi ga 'z misel teh mož govorica, ki bližajo se z blagam obloženi, spozna koj ribiča poštene lica; neznan mož pride po stezi zeleni; talar in štola, znamenja poklica, povesta mu, de služi Nazareni. Po meč bi desna se bila stegnila, v ti priči se prikaže Bogomila. "O, sem na srce moje, Bogomila! Skrbi je konec, žalosti, nesreče, se trese od veselja vsaka žila, kar gledam spet v obličje ti cveteče, naj brije zdaj okrog viharjov sila, naj se nebo z oblaki preobleče, ni meni mar, kar se godi na sveti, ak smejo srečne te roke objeti." Iz njega rok izmakne se počasi, in blizo se na prvi kamen vsede, in v trdnem, ali vender milem glasi mladenču vnetmu reče te besede: "Ne združenja, ločitve zdaj so časi, šel naj vsak sam bo skoz življenja zmede; de b' enkrat se sklenile poti naji, me tukaj vidiš zdaj v samotnem kraji. Povedat moram ti, de sem kristjana, malikov zapustila vero krivo, de je bežala ta, k' ob sonci slana, de dal krstit je oča glavo sivo, soseska je Marije službi vdana v dnu jezera utopila bognjo Živo. Kako prišla k resnice sem pogledi, moj Črtomir! v besedah kratkih zvedi: Večkrat v otoka sem samotnem kraji, ko te je ladja nesla preč od mene, si mislila, al bo ljubezen naji prešla, ko val, ki veter ga zažene, al hrepenečih src želje narslaji ogasil vse bo zemlje hlad zelene, al mesta ni nikjer, ni zvezde mile, kjer bi ljubjoče srca se sklenile. Te misli, ko odšel si v hude boje, miru mi niso dale več siroti. V nevarnosti življenje vedet tvoje, zaprte vse do tebe videt poti, ni vedlo kam se djati srce moje, tolažbe nisem najdla v taki zmoti. Obupala sem skorej takrat reva; kak sem želela v noči ti svit dneva! En dan sem prašat šla po vojske sreči, al skozi se še ni sklenila z vami; učil ljudi je mož bogaboječi, duhovni mož, ki zdaj ga vidiš z nami: kako nas vstvaril vse je Bog narveči, kak greh prišel na svet je po Adami, kak se je božji sin zato učlovečil, de bi otel narode in osrečil. De pravi Bog se kliče Bog ljubezni, de ljubi vse ljudi, svoje otroke, de zemlja, kjer vijo viharji jezni, je skušnje kraj, de so naš dom visoke nebesa, de trpljenje in bolezni z veseljam vred so dar njegove roke, de čudno k sebi vod' otroke ljube, de ne želi nobenega pogube. De ustvaril je ljudi vse za nebesa, kjer glorja njega sije brez oblaka, oko ni vidlo, slišale ušesa veselja, ki izvoljene tam čaka, de sprostenim bo vseh težav telesa se srečnim izpolnila volja vsaka, de bodo tamkej božji sklepi mili te, ki se tukaj ljubijo, sklenili. Ko šla domu sem z družbo najno v glavi, me mož, ki je ta uk učil, doide; prijazno v svoji šegi me pozdravi, pove, de pred je štet bil med druide, de preobrnil se je k veri pravi, de v naše kraje oznanvat jo pride; ker so vasi bile mu krog neznane, z menoj iti želi, ker noč postane. Doma očetu, meni razodeva, kar prerokvali nekdaj so preroki, kak, kar grešila sta Adam in Eva, na križi opero krvi potoki, popiše nama strah sodnega dneva, vse čudeže, ki vere so poroki; kar vedet treba je, zloži po vrsti, ker sva mu vse verjela, naju krsti. Al ena skrb me je morila vedno, de ti med njimi si, ki Bog jih črti; večkrat sem v sanjah vidla glavo čedno, bledo ležati na mrtvaškem prti; sem trepetala zate uro sledno; de bi nebes ne zgrešil v bridki smrti. Mož božji mi bolno srce ozdravi, ker, de zamore vse molitev, pravi. Kolikokratov sem od tod v samoti klečala, klicala pomoč Marije: 'Zavreči v jezi ga, moj Bog! ne hoti, ker v zmoti žali te, ne 'z hudobije, ne daj v oblast sovražni ga togoti, pred njo naj milost tvoja ga zakrije!' In čudno te je tisto noč ohranil, ko ni noben tovarš se smrti ubranil. Iz spanja svojga, Črtomir! se zbudi, slovo daj svoji strašni, dolgi zmoti, po potih se noči temne ne trudi, ne stavi v bran delj božji se dobroti, in njene milosti dni ne zamudi, de sklenete se enkrat najni poti, ljubezen brez ločitve de zazori po smrti nama tam v nebeškem dvori." ČRTOMIR "Kak bom povrnil, Bogomila draga! ljubezen, skrb, kar si trpela zame? V veselji skorej mi srce omaga, ki v njemu tvoja ga ljubezen vname, dokler krvi ne vteče zadnja sraga, in groba temna noč me ne objame, ti sužno moje bo življenje celo, ti gospoduj čez vero, misli, delo. Kako bi mogel tebi kaj odreči, storiti tega ne, kar boš želela! Al zmisli ran, ki jih Valjhuna meči so storili, in pšic njegovih strela, kaj videli krvi smo v Kranji teči, kristjanov tvojih vse preudari dela, in mi povej, al ni črt narbolj jezni njih Bog, ki kličeš ga Boga ljubezni?" DUHOVNI "Po celi zemlji vsem ljudem mir bodi! tako so peli angelcov glasovi v višavah pri Mesijesa prihodi; de smo očeta enega sinovi, ljudje vsi bratje, bratje vsi narodi, de ljubit' mormo se, prav' uk njegovi. Valjhun ravna po svoji slepi glavi, po božji volji ne, duhovni pravi." ČRTOMIR "Ljubezni vere, in miru in sprave, ne branim se je vere Bogomile, vem, de malike, in njih službo glave služabnikov njih so na svet rodile, v njih le spoštval očetov sem postave; al zdaj ovrgle so jih vojske sile. Ak sklene me s teboj krst, Bogomila! kdaj bo zakona zveza me sklenila?" BOGOMILA "Odločeni so roži kratki dnovi, ki pride nanjo pomladanska slana, al v cvetji jo zapadejo snegovi! tak mladi deklici, ki zgodnja rana srce ji gloda, vsmrti mir njegovi, le kratka pot je skoz življenje dana; al je za majhen čas se združit vredno, de bi ločitve spet se bala vedno? De bi od smrti rešil te nesrečne, in tamkej mili Bog v nebeškem raji z menoj te, dragi! sklenil čase večne, pustila vnemar sem želje narslaji, pustila vnemar dni na sveti srečne, sem odpovedala se zvezi naji; - je uslišana bila molitev moja. - Ne smem postati jaz nevesta tvoja. Bogu sem večno čistost obljubila, in Jezusu, in materi Mariji; kar doživela let bom še števila v želja bridkosti, v upa rajskem siji, nobena me ne bo premogla sila, bila de svojemu, sveta Mesiji, nebeškemu bi ženinu nezvesta, nikdar ne morem tvoja bit nevesta!" - Duhovni reče med besede take: "Zakona sreče ta uživat ne more, kdor dela mojim, tvojim je enake predrznil v časa se sejat razore, druid sem z zmoto jaz slepil rojake, ak bi ne bil dajal tvoj meč podpore, kdaj vgasnila bila bi kriva vera, bi vdova ne bila žen marsiktera! Tvoj pot je v Oglej, de položil nate roke bo patriarh, ak duh te žene, ko si pogubljal jih, oteti brate, duhovnega te storil bo, ko mene. V deželah jutra čakajo bogate te žetve, ne zamudi je nobene, le hitro v Oglej, tje do patriarha, de posveti te mašnika, duš varha." ČRTOMIR "Prav praviš, de ne smem jaz upat sreče, ki vedno je in bo sovražna meni: dosegel oča zmage ni sloveče, končal življenje v vojski je zgubljeni, odšla je mati komej sponam ječe, že davno jo pokriva grob zeleni. Osrečit hoče me ljubezen sladka, al, kak sladkost bila je njena kratka! V deželi koj trobente glas zapoje, od Bogomile drage mene loči, junaško bili smo z Valjhunam boje, vesele zmage dan nam ne napoči, pomoril meč je vse tovarše moje, beg je moj up, gojzd je moj dom pričjoči. Nespametna bila bi z mano zveza, ki me preganja vedno sreče jeza." BOGOMILA "Ljubezni prave ne pozna, kdor meni, de ugasniti jo more sreče jeza; gorela v čistem, v večnem bo plameni zdaj, in ko mi odpade trupla peza; v zakoni vender brani sad mi njeni vživati z Bogam trdniši zaveza. Odkrila se bo tebi unstran groba ljubezni moje čistost in zvestoba. De bodo znani božji jim obeti, jih oznanvat pojdi v slovenske mesta; kar dni odločenih mi bo na sveti, Bogu in tebi bom ostala zvesta, v nebesih čakala bom pri očeti čez majhen čas deviška te nevesta, dokler žalujejo po teb' otete krdela, prideš k meni v mesta svete." Izmed oblakov sonce zdaj zasije, in mavrica na bledo Bogomilo lepote svoje čisti svit izlije, nebeški zor obda obličje milo; jok, ki v oči mu sili, komej skrije, de ni nebo nad njim se odklenilo, de je na sveti, komej si verjame, tak Črtomira ta pogled prevzame. Ko je minul, kar misli, de bo v sili zlata mu treba, si od mož ga vzame; dar ribču da, njim, ki so ga nosili. "Kar Staroslav zlata še hrani zame, daj ga sirotam," reče Bogomili, se bliža ji, presrčno jo objame, molče poda desnico ji k slovesi, solze stojijo v vsakem mu očesi. "O čakaj, mi dopolni prošnjo eno! pred ko se ločva," Bogomila pravi, "de mi v skrbeh ne bo srce utopljeno, de ložej se bridkosti v bran postavi, pred, ko greš v Oglej čez goro zeleno, se pričo mene odpovej zmotnjavi, dokler te posveti krst, se zamudi, voda je blizo, in duhovni tudi." Molče v to prošnjo Črtomir dovoli, z duhovnim bliža slapu se Savice, molitve svete mašnik, on z njim moli, v imeni krsti ga svete Trojice. So na kolenah, kar jih je okoli, se od veselja svet' obraz device, ki je bila podpora vere krive, je opravljala službo bognje Žive. Razlagajo, ko pride v Akvilejo, mu svete pisma proste zmote vsake; postane mašnik, v prsih umrjejo nekdanji upi; med svoje rojake Slovence gre, in dalej čez njih mejo, do smrti tam preganja zmot oblake. - Domu je Bogomila šla k očeti, nič več se nista videla na sveti. njega, ki kriv moritve je velike. ''' def kvadrat(x): print('Računam', x) y = x ** 2 return y kvadrati = {} def mem_kvadrat(x): if x not in kvadrati: print('Računam', x) y = x ** 2 kvadrati[x] = y return kvadrati[x] def memoiziraj(f): rezultati = {} def mem_f(x): if x not in rezultati: rezultati[x] = f(x) return rezultati[x] return mem_f @memoiziraj def stevilo_stolpov(n): if n == 0: return 1 elif n < 0: return 0 else: na_dnu_enka = stevilo_stolpov(n - 1) na_dnu_dvojka = stevilo_stolpov(n - 2) na_dnu_trojka = stevilo_stolpov(n - 3) return na_dnu_enka + na_dnu_dvojka + na_dnu_trojka @memoiziraj def najdaljsi_podpalindrom(niz): if len(niz) <= 1: return niz elif niz[0] == niz[-1]: return niz[0] + najdaljsi_podpalindrom(niz[1:-1]) + niz[-1] else: brez_prve = najdaljsi_podpalindrom(niz[1:]) brez_zadnje = najdaljsi_podpalindrom(niz[:-1]) if len(brez_prve) > len(brez_zadnje): return brez_prve else: return brez_zadnje
[ "matija@pretnar.info" ]
matija@pretnar.info
f4a4fbaa3c229c1b945a531c68ed5d19f15e3482
0a2f63d03a493494c1bc3a9c3bb5136731d21203
/baekjoon/BJ14891.py
985d30dc40402af21d0c5b66c5139aa95188d445
[]
no_license
hwan1753/algorithm
483e508067519c5b66b6cfc95c9df6c7d1deedb3
4879947d87bb42c99668f6856f25b5e7353be10f
refs/heads/main
2021-06-25T23:11:27.912100
2021-06-08T11:34:29
2021-06-08T11:34:29
228,177,823
0
0
null
null
null
null
UTF-8
Python
false
false
1,533
py
from _collections import deque gear = [0] for num in range(4): gear.append(deque(list(map(int,input())))) K = int(input()) for num in range(K): idx, direction = map(int, input().split()) up_chk = gear[idx][2] down_chk = gear[idx][6] if direction == 1: gear[idx].appendleft(gear[idx].pop()) else: gear[idx].append(gear[idx].popleft()) # print(gear[idx]) up, down = idx + 1, idx - 1 up_direction, down_direction = direction, direction while up < 5: if gear[up][6] != up_chk: if up_direction == 1: up_chk = gear[up][2] gear[up].append(gear[up].popleft()) up_direction = -1 else: up_chk = gear[up][2] gear[up].appendleft(gear[up].pop()) up_direction = 1 # print(up, gear[up]) up += 1 else: break while down > 0: if gear[down][2] != down_chk: if down_direction == 1: down_chk = gear[down][6] gear[down].append(gear[down].popleft()) down_direction = -1 else: down_chk = gear[down][6] gear[down].appendleft(gear[down].pop()) down_direction = 1 # print(down, gear[down]) down -= 1 else: break # print(gear) answer = 0 score = 1 for num in range(1,5): if gear[num][0] == 1: answer += score score *= 2 print(answer)
[ "john175258@gmail.com" ]
john175258@gmail.com
0787dc63dee0abfd156584d4ae1c56b9e7d0a394
bc17d1b3c8774b80f5e2a703d36dd8407f0513f1
/while-pythn.py
3d1cb80f65f7f4aafbf379e6e56256cd6d170c76
[]
no_license
RAFASANT29/repositorio2
3a2f510bd26eca1c51c4bb2db772112c44307158
7f94765a5e5e0af46da9b6b940e47aff4a1d3efd
refs/heads/master
2023-01-24T03:03:03.771341
2020-12-09T19:46:56
2020-12-09T19:46:56
314,951,586
0
0
null
null
null
null
UTF-8
Python
false
false
202
py
#condicion = False #while condicion: # print("Ejecutando ciclo while") #else: # print("Fin del ciclo while") i = 0 while i<11: print (i) i+=1 else: print ("Fin del ciclo while")
[ "you@example.com" ]
you@example.com
aa118486c502200792a56101f8cebff6717a7c72
d8108289ecc6f482d97768069adaf477b3da2e90
/dm2bn/templatetags/__init__.py
502eafeae6d3f1eb100a4c57e3645cb61d871ed2
[ "MIT" ]
permissive
DCOD-OpenSource/django-messages-to-bootstrap-notify
636cf9380abf104e29c0d11e9e2a2c45204bbfbb
8d9f60dc1111961984bc33f1ec0efc3265c5c7a8
refs/heads/master
2021-03-12T17:58:09.459910
2018-01-07T20:24:48
2018-01-07T20:24:48
91,449,082
11
0
null
null
null
null
UTF-8
Python
false
false
152
py
# -*- coding: utf-8 -*- # django-messages-to-bootstrap-notify # dm2bn/templatetags/__init__.py from __future__ import unicode_literals __all__ = []
[ "vint21h@vint21h.pp.ua" ]
vint21h@vint21h.pp.ua
bde21d72a5efa89fb972a3ed01bdfbb7d63680ee
f2f1d0a0d30eeb2be3b120e94b4bb1cfa40f0ae2
/src/freedreno/isa/encode.py
576fef626acbf7dc485b41f261f8b18b43596479
[]
no_license
q767691701/mesa
fb587af9848cbeab9b68912d4dc42608a6efad4c
17f8e56c96ca6cfafa90c87564441b4fb7fa1b23
refs/heads/master
2023-02-15T21:19:43.891107
2021-01-11T19:40:09
2021-01-14T09:33:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,005
py
# # Copyright © 2020 Google, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, publish, distribute, sublicense, # and/or sell copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice (including the next # paragraph) shall be included in all copies or substantial portions of the # Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. from mako.template import Template from isa import ISA, BitSetDerivedField, BitSetAssertField import sys import re # Encoding is driven by the display template that would be used # to decode any given instruction, essentially working backwards # from the decode case. (Or put another way, the decoded bitset # should contain enough information to re-encode it again.) # # In the xml, we can have multiple override cases per bitset, # which can override display template and/or fields. Iterating # all this from within the template is messy, so use helpers # outside of the template for this. # # The hierarchy of iterators for encoding is: # # // First level - Case() (s.bitset_cases() iterator) # if (caseA.expression()) { // maps to <override/> in xml # // Second level - DisplayField() (case.display_fields() iterator) # ... encode field A ... # ... encode field B ... # # // Third level - each display field can be resolved in potentially # // resolved by multiple different overrides, you can end up with # // an if/else ladder for an individual display field # if (field_c_case1.expression()) { # ... encode field C ... # } else if (field_c_case2.expression() { # ... encode field C ... # } else { # } # # } else if (caseB.expression())( # } else { // maps to the default case in bitset, ie. outside <override/> # } # Represents a concrete field, ie. a field can be overriden # by an override, so the exact choice to encode a given field # in a bitset may be conditional class FieldCase(object): def __init__(self, field, case): self.field = field self.expr = None if case.expr is not None: self.expr = isa.expressions[case.expr] class AssertField(object): def __init__(self, field, case): self.field = field self.expr = None if case.expr is not None: self.expr = isa.expressions[case.expr] # Represents a field to be encoded: class DisplayField(object): def __init__(self, bitset, case, name): self.bitset = bitset # leaf bitset self.case = case self.name = name def fields(self, bitset=None): if bitset is None: bitset = self.bitset # resolving the various cases for encoding a given # field is similar to resolving the display template # string for case in bitset.cases: if case.expr is not None: expr = bitset.isa.expressions[case.expr] self.case.append_expr_fields(expr) if self.name in case.fields: field = case.fields[self.name] # For bitset fields, the bitset type could reference # fields in this (the containing) bitset, in addition # to the ones which are directly used to encode the # field itself. if field.get_c_typename() == 'TYPE_BITSET': for param in field.params: self.case.append_field(param[0]) # For derived fields, we want to consider any other # fields that are referenced by the expr if isinstance(field, BitSetDerivedField): expr = bitset.isa.expressions[field.expr] self.case.append_expr_fields(expr) elif not isinstance(field, BitSetAssertField): yield FieldCase(field, case) # if we've found an unconditional case specifying # the named field, we are done if case.expr is None: return if bitset.extends is not None: yield from self.fields(isa.bitsets[bitset.extends]) # Represents an if/else case in bitset encoding which has a display # template string: class Case(object): def __init__(self, bitset, case): self.bitset = bitset # leaf bitset self.case = case self.expr = None if case.expr is not None: self.expr = isa.expressions[case.expr] self.fieldnames = re.findall(r"{([a-zA-Z0-9_]+)}", case.display) self.append_forced(bitset) # Handle fields which don't appear in display template but have # force="true" def append_forced(self, bitset): if bitset.encode is not None: for name, val in bitset.encode.forced.items(): self.append_field(name) if bitset.extends is not None: self.append_forced(isa.bitsets[bitset.extends]) # In the process of resolving a field, we might discover additional # fields that need resolving: # # a) a derived field which maps to one or more other concrete fields # b) a bitset field, which may be "parameterized".. for example a # #multisrc field which refers back to SRC1_R/SRC2_R outside of # the range of bits covered by the #multisrc field itself def append_field(self, fieldname): if fieldname not in self.fieldnames: self.fieldnames.append(fieldname) def append_expr_fields(self, expr): for fieldname in expr.fieldnames: self.append_field(fieldname) def display_fields(self): for fieldname in self.fieldnames: yield DisplayField(self.bitset, self, fieldname) def assert_cases(self, bitset=None): if bitset is None: bitset = self.bitset for case in bitset.cases: for name, field in case.fields.items(): if field.get_c_typename() == 'TYPE_ASSERT': yield AssertField(field, case) if bitset.extends is not None: yield from self.assert_cases(isa.bitsets[bitset.extends]) # State and helpers used by the template: class State(object): def __init__(self, isa): self.isa = isa self.warned_missing_extractors = [] def bitset_cases(self, bitset, leaf_bitset=None): if leaf_bitset is None: leaf_bitset = bitset; for case in bitset.cases: if case.display is None: # if this is the last case (ie. case.expr is None) # then we need to go up the inheritance chain: if case.expr is None and bitset.extends is not None: parent_bitset = isa.bitsets[bitset.extends] yield from self.bitset_cases(parent_bitset, leaf_bitset) continue; yield Case(leaf_bitset, case) # Find unique bitset remap/parameter names, to generate a struct # used to pass "parameters" to bitset fields: def unique_param_names(self): unique_names = [] for root in self.encode_roots(): for leaf in self.encode_leafs(root): for case in s.bitset_cases(leaf): for df in case.display_fields(): for f in df.fields(): if f.field.get_c_typename() == 'TYPE_BITSET': for param in f.field.params: target_name = param[1] if target_name not in unique_names: yield target_name unique_names.append(target_name) def case_name(self, bitset, name): return bitset.encode.case_prefix + name.upper().replace('.', '_').replace('-', '_').replace('#', '') def encode_roots(self): for name, root in self.isa.roots.items(): if root.encode is None: continue yield root def encode_leafs(self, root): for name, leaf in self.isa.leafs.items(): if leaf.get_root() != root: continue yield leaf # expressions used in a bitset (case or field or recursively parent bitsets) def bitset_used_exprs(self, bitset): for case in bitset.cases: if case.expr: yield self.isa.expressions[case.expr] for name, field in case.fields.items(): if isinstance(field, BitSetDerivedField): yield self.isa.expressions[field.expr] if bitset.extends is not None: yield from self.bitset_used_exprs(self.isa.bitsets[bitset.extends]) def extractor_impl(self, bitset, name): if bitset.encode is not None: if name in bitset.encode.maps: return bitset.encode.maps[name] if bitset.extends is not None: return self.extractor_impl(self.isa.bitsets[bitset.extends], name) return None # Default fallback when no mapping is defined, simply to avoid # having to deal with encoding at the same time as r/e new # instruction decoding.. but we can at least print warnings: def extractor_fallback(self, bitset, name): extr_name = bitset.name + '.' + name if extr_name not in self.warned_missing_extractors: print('WARNING: no encode mapping for {}.{}'.format(bitset.name, name)) self.warned_missing_extractors.append(extr_name) return '0 /* XXX */' def extractor(self, bitset, name): extr = self.extractor_impl(bitset, name) if extr is not None: return extr return self.extractor_fallback(bitset, name) # In the special case of needing to access a field with bitset type # for an expr, we need to encode the field so we end up with an # integer, and not some pointer to a thing that will be encoded to # an integer def expr_extractor(self, bitset, name, p): extr = self.extractor_impl(bitset, name) field = self.resolve_simple_field(bitset, name) if isinstance(field, BitSetDerivedField): expr = self.isa.expressions[field.expr] return self.expr_name(bitset.get_root(), expr) + '(s, p, src)' if extr is None: if name in self.unique_param_names(): extr = 'p->' + name else: extr = self.extractor_fallback(bitset, name) if field and field.get_c_typename() == 'TYPE_BITSET': extr = 'encode' + isa.roots[field.type].get_c_name() + '(s, ' + p + ', ' + extr + ')' return extr # A limited resolver for field type which doesn't properly account for # overrides. In particular, if a field is defined differently in multiple # different cases, this just blindly picks the last one. # # TODO to do this properly, I don't think there is an alternative than # to emit code which evaluates the case.expr def resolve_simple_field(self, bitset, name): field = None for case in bitset.cases: if name in case.fields: field = case.fields[name] if field is not None: return field if bitset.extends is not None: return self.resolve_simple_field(isa.bitsets[bitset.extends], name) return None def encode_type(self, bitset): if bitset.encode is not None: if bitset.encode.type is not None: return bitset.encode.type if bitset.extends is not None: return self.encode_type(isa.bitsets[bitset.extends]) return None def expr_name(self, root, expr): return root.get_c_name() + '_' + expr.get_c_name() def has_jmp(self, instructions): # I'm sure there is some clever more pythony way to do this: for instr in instructions: if instr[0] == 'JMP': return True return False template = """\ /* Copyright (C) 2020 Google, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice (including the next * paragraph) shall be included in all copies or substantial portions of the * Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ #include <stdbool.h> #include <stdint.h> <% isa = s.isa %> /** * Opaque type from the PoV of generated code, but allows state to be passed * thru to the hand written helpers used by the generated code. */ struct encode_state; struct bitset_params; static uint64_t pack_field(unsigned low, unsigned high, uint64_t val) { val &= ((1ul << (1 + high - low)) - 1); return val << low; } /* * Forward-declarations (so we don't have to figure out which order to * emit various encoders when they have reference each other) */ %for root in s.encode_roots(): static uint64_t encode${root.get_c_name()}(struct encode_state *s, struct bitset_params *p, ${root.encode.type} src); %endfor ## TODO before the expr evaluators, we should generate extract_FOO() for ## derived fields.. which probably also need to be in the context of the ## respective root so they take the correct src arg?? /* * Expression evaluators: */ struct bitset_params { %for name in s.unique_param_names(): int64_t ${name}; %endfor }; #define push(v) do { \ assert(sp < ARRAY_SIZE(stack)); \ stack[sp] = (v); \ sp++; \ } while (0) #define peek() ({ \ assert(sp < ARRAY_SIZE(stack)); \ stack[sp - 1]; \ }) #define pop() ({ \ assert(sp > 0); \ --sp; \ stack[sp]; \ }) <%def name="render_expr(leaf, expr)"> static inline int64_t ${s.expr_name(leaf.get_root(), expr)}(struct encode_state *s, struct bitset_params *p, ${leaf.get_root().encode.type} src) { % for fieldname in expr.fieldnames: int64_t ${fieldname}; % endfor % for fieldname in expr.fieldnames: <% field = s.resolve_simple_field(leaf, fieldname) %> % if field is not None and field.get_c_typename() == 'TYPE_BITSET': { ${encode_params(leaf, field)} ${fieldname} = ${s.expr_extractor(leaf, fieldname, '&bp')}; } % else: ${fieldname} = ${s.expr_extractor(leaf, fieldname, 'p')}; % endif % endfor return ${expr.expr}; } </%def> ## note, we can't just iterate all the expressions, but we need to find ## the context in which they are used to know the correct src type %for root in s.encode_roots(): <% rendered_exprs = [] %> % for leaf in s.encode_leafs(root): % for expr in s.bitset_used_exprs(leaf): <% if expr in rendered_exprs: continue rendered_exprs.append(expr) %> ${render_expr(leaf, expr)} % endfor % endfor %endfor #undef pop #undef peek #undef push <%def name="case_pre(root, expr)"> %if expr is not None: if (${s.expr_name(root, expr)}(s, p, src)) { %else: { %endif </%def> <%def name="case_post(root, expr)"> %if expr is not None: } else %else: } %endif </%def> <%def name="encode_params(leaf, field)"> struct bitset_params bp = { %for param in field.params: .${param[1]} = ${s.expr_extractor(leaf, param[0], 'p')}, /* ${param[0]} */ %endfor }; </%def> <%def name="encode_bitset(root, leaf)"> uint64_t fld, val = ${hex(leaf.get_pattern().match)}; (void)fld; <% visited_exprs = [] %> %for case in s.bitset_cases(leaf): <% if case.expr is not None: visited_exprs.append(case.expr) %> ${case_pre(root, case.expr)} % for df in case.display_fields(): % for f in df.fields(): <% # simplify the control flow a bit to give the compiler a bit # less to clean up expr = f.expr if expr == case.expr: # Don't need to evaluate the same condition twice: expr = None elif expr in visited_exprs: # We are in an 'else'/'else-if' leg that we wouldn't # go down due to passing an earlier if() continue %> ${case_pre(root, expr)} % if f.field.get_c_typename() == 'TYPE_BITSET': { ${encode_params(leaf, f.field)} fld = encode${isa.roots[f.field.type].get_c_name()}(s, &bp, ${s.extractor(leaf, f.field.name)}); } % else: fld = ${s.extractor(leaf, f.field.name)}; % endif val |= pack_field(${f.field.low}, ${f.field.high}, fld); /* ${f.field.name} */ ${case_post(root, expr)} % endfor % endfor % for f in case.assert_cases(): <% # simplify the control flow a bit to give the compiler a bit # less to clean up expr = f.expr if expr == case.expr: # Don't need to evaluate the same condition twice: expr = None elif expr in visited_exprs: # We are in an 'else'/'else-if' leg that we wouldn't # go down due to passing an earlier if() continue %> ${case_pre(root, expr)} val |= pack_field(${f.field.low}, ${f.field.high}, ${f.field.val}); ${case_post(root, None)} % endfor {} /* in case no unconditional field to close out last '} else' */ ${case_post(root, case.expr)} %endfor return val; </%def> /* * The actual encoder definitions */ %for root in s.encode_roots(): static uint64_t encode${root.get_c_name()}(struct encode_state *s, struct bitset_params *p, ${root.encode.type} src) { % if root.encode.case_prefix is not None: switch (${root.get_c_name()}_case(s, src)) { % for leaf in s.encode_leafs(root): case ${s.case_name(root, leaf.name)}: { ${encode_bitset(root, leaf)} } % endfor default: /* Note that we need the default case, because there are * instructions which we never expect to be encoded, (ie. * meta/macro instructions) as they are removed/replace * in earlier stages of the compiler. */ break; } mesa_loge("Unhandled ${root.name} encode case: 0x%x\\n", ${root.get_c_name()}_case(s, src)); return 0; % else: # single case bitset, no switch % for leaf in s.encode_leafs(root): ${encode_bitset(root, leaf)} % endfor % endif } %endfor """ xml = sys.argv[1] dst = sys.argv[2] isa = ISA(xml) s = State(isa) with open(dst, 'wb') as f: f.write(Template(template, output_encoding='utf-8').render(s=s))
[ "eric+marge@anholt.net" ]
eric+marge@anholt.net
35b12f634cba191d0ab381928121cfddae62b33e
e6bc1f55371786dad70313eb468a3ccf6000edaf
/Extras/person/Correct/30.py
8e0daafd32289827497ce58da380aee9123852fc
[]
no_license
prateksha/Source-Code-Similarity-Measurement
9da92e3b22c372ed6ea54d8b6ab2c5921e8c41c0
fb371b837917794d260a219a1ca09c46a5b15962
refs/heads/master
2023-01-04T07:49:25.138827
2020-10-25T14:43:57
2020-10-25T14:43:57
285,744,963
3
0
null
null
null
null
UTF-8
Python
false
false
2,656
py
class Person: def __init__(self,name,children=[],parent=None): self.name = name self.parent = parent self.children = children def __str__(self): return str(self.name) class Family: def __init__(self,head): self.headOfFamily = head l = [self.headOfFamily] self.nodes = [head] def genFamily(l,head): if head.children == []: l.append([]) for child in head.children: l.append([child]) self.nodes.append(child) for j in l[head.children.index(child)+1:]: genFamily(j,child) genFamily(l,self.headOfFamily) self.family = l def headOfFamily(self): return self.headOfFamily def nodes(self): return self.nodes def allAncestors(self,n): ancestors = [] parent = n.parent while(parent!=None): ancestors.append(parent) parent = parent.parent return ancestors[::-1] def parent(self,n): return n.parent def searchNode(self,l,n): head = l[0] if head == n: self.prettyPrint(0,l) return True else: for child in head.children: for j in l[head.children.index(child)+1:]: if(self.searchNode(j,n)): return def depth(self,head): depths=[] if head.children == []: return 1 else: for i in head.children: depths.append( 1+ self.depth(i)) return max(depths) def prettyPrint(self,count,l): for i in l: if type(i) != list: print(' '*count + str(i)) else: self.prettyPrint(count+1,i) def t1(): B = Person('B') C = Person('C') A = Person('A',[B,C]) D = Person('D',[],B) E = Person('E',[],C) F = Person('F',[],C) B.children = [D] B.parent = A C.children = [E,F] C.parent = A f = Family(A) print('this is the whole family!!') f.prettyPrint(0,f.family) print('head of family is:'+str(f.headOfFamily)) print('all members of the family are:') for i in f.nodes: print(i) print() print('all ancestors of E are-') for i in f.allAncestors(E): print(i) print() print('the parent of F is',str(f.parent(F))) print('the sub tree of C is') f.searchNode(f.family,C) print() print('the depth of the tree is',f.depth(f.headOfFamily)) if __name__=="__main__": t1()
[ "pratekshau@gmail.com" ]
pratekshau@gmail.com
fc76cfe46275f3f94f8dc961af0f7037e6387a3a
fb5c5d50d87a6861393d31911b9fae39bdc3cc62
/Scripts/sims4communitylib/enums/statistics_enum.py
f0cfd0d33669a4f8cfed53a010e18f08c44287ca
[ "CC-BY-4.0" ]
permissive
ColonolNutty/Sims4CommunityLibrary
ee26126375f2f59e5567b72f6eb4fe9737a61df3
58e7beb30b9c818b294d35abd2436a0192cd3e82
refs/heads/master
2023-08-31T06:04:09.223005
2023-08-22T19:57:42
2023-08-22T19:57:42
205,197,959
183
38
null
2023-05-28T16:17:53
2019-08-29T15:48:35
Python
UTF-8
Python
false
false
109,189
py
""" The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ https://creativecommons.org/licenses/by/4.0/legalcode Copyright (c) COLONOLNUTTY """ from sims4communitylib.enums.enumtypes.common_int import CommonInt class CommonStatisticId(CommonInt): """Identifiers for vanilla statistics. """ INVALID: 'CommonStatisticId' = 0 ACTOR_CAREER_MAIN_GOAL: 'CommonStatisticId' = 197925 ACTOR_CAREER_PRE_PERFORMANCE_DIRECTOR_PRODUCER: 'CommonStatisticId' = 193186 ACTOR_CAREER_PRE_PERFORMANCE_DOLLY_CAMERA: 'CommonStatisticId' = 194698 ACTOR_CAREER_PRE_PERFORMANCE_STATIONARY_CAMERA: 'CommonStatisticId' = 194697 ACTOR_CAREER_PREP_TASK_PRACTICE_ACTION: 'CommonStatisticId' = 199419 ACTOR_CAREER_PREP_TASK_PRACTICE_DRAMATIC: 'CommonStatisticId' = 199420 ACTOR_CAREER_PREP_TASK_PRACTICE_ROMANTIC: 'CommonStatisticId' = 199418 ACTOR_CAREER_PREP_TASK_RELATIONSHIP_CO_STAR: 'CommonStatisticId' = 197221 ACTOR_CAREER_PREP_TASK_RELATIONSHIP_DIRECTOR: 'CommonStatisticId' = 197222 ACTOR_CAREER_PREP_TASK_RESEARCH_FLIRTY: 'CommonStatisticId' = 199421 ACTOR_CAREER_PREP_TASK_RESEARCH_FUNNY: 'CommonStatisticId' = 199422 ACTOR_CAREER_PREP_TASK_RESEARCH_MEAN: 'CommonStatisticId' = 199423 ACTOR_CAREER_PREP_TASK_SKILL_ACTING: 'CommonStatisticId' = 199417 ACTOR_CAREER_PREP_TASK_SKILL_CHARISMA: 'CommonStatisticId' = 197223 ACTOR_CAREER_PREP_TASK_SKILL_COMEDY: 'CommonStatisticId' = 197225 ACTOR_CAREER_PREP_TASK_SKILL_FITNESS: 'CommonStatisticId' = 197224 ACTOR_CAREER_PREP_TASK_SKILL_GUITAR: 'CommonStatisticId' = 197226 ACTOR_CAREER_PREP_TASK_SKILL_HANDINESS: 'CommonStatisticId' = 197227 ACTOR_CAREER_SAFE_OUTCOME: 'CommonStatisticId' = 197349 ADVENTUROUS_PET_GO_ON_ADVENTURE_LIGHTHOUSE_PROGRESS: 'CommonStatisticId' = 175555 AGE_ADULT: 'CommonStatisticId' = 38438 AGE_CHILD: 'CommonStatisticId' = 38441 AGE_ELDER: 'CommonStatisticId' = 38437 AGE_TEEN: 'CommonStatisticId' = 38440 AGE_YOUNG_ADULT: 'CommonStatisticId' = 38439 ALIEN_ABDUCTION_COOLDOWN: 'CommonStatisticId' = 102866 ALIEN_ABDUCTION_TRACKER: 'CommonStatisticId' = 102865 ALIEN_MEMORY_ERASE_COOLDOWN: 'CommonStatisticId' = 103694 ALIEN_WATCH_ALIEN_TV: 'CommonStatisticId' = 107154 ANCIENT_ARTIFACT_UNCOVER_STATE_FLAG: 'CommonStatisticId' = 184279 APARTMENT_BULLETIN_BOARD_TIMER: 'CommonStatisticId' = 145322 ARCADE_MACHINE_GAME_OVER_TIME_OUT: 'CommonStatisticId' = 128204 ARCADE_MACHINE_LIVES_LEFT: 'CommonStatisticId' = 127410 ARCADE_MACHINE_NUMBER_OF_PLAYERS: 'CommonStatisticId' = 128094 ARCADE_MACHINE_PROGRESSION: 'CommonStatisticId' = 127408 ARCHAEOLOGY_SKILL_GIVE_AUTHENTICATION_MAIL: 'CommonStatisticId' = 176117 ARCHAEOLOGY_TABLE_ANALYZE_COLLECTIBLE: 'CommonStatisticId' = 182766 ARCHAEOLOGY_TABLE_AUTHENTICATE_ARTIFACT: 'CommonStatisticId' = 182767 ARCHAEOLOGY_TABLE_EXTRACT_ELEMENT: 'CommonStatisticId' = 182769 ARCHAEOLOGY_TABLE_REFINE_CRYSTAL: 'CommonStatisticId' = 182768 ARCHAEOLOGY_TABLE_UNCOVER_ARTIFACT: 'CommonStatisticId' = 182770 ASKED_FOR_ADVICE: 'CommonStatisticId' = 166010 ASPIRATION_WORLD_FAMOUS_CELEBRITY_ASKED_FOR_SELFIE_COUNT: 'CommonStatisticId' = 197546 ASPIRATION_WORLD_FAMOUS_CELEBRITY_INCITE_CHEER_COUNT: 'CommonStatisticId' = 197547 ATTRACTOR_POINTS_TOURIST_TAKE_PHOTO: 'CommonStatisticId' = 178223 ATTRACTOR_POINTS_TOURIST_VIEW: 'CommonStatisticId' = 196996 AUTO_PET_FEEDER_FOOD_REMAINING: 'CommonStatisticId' = 159119 AUTONOMY_FAMILY_BULLETIN_BOARD: 'CommonStatisticId' = 166672 AUTONOMY_GHOST_HAUNT: 'CommonStatisticId' = 102775 AUTONOMY_TRAIT_GHOST_COW_PLANT: 'CommonStatisticId' = 102856 AWAY_ACTION_DIRTY: 'CommonStatisticId' = 75572 AWAY_ACTION_GARDEN: 'CommonStatisticId' = 75733 AWAY_ACTIONS_BEDS: 'CommonStatisticId' = 76162 AWAY_ACTIONS_GARDEN_PLANTS: 'CommonStatisticId' = 76182 AWAY_ACTIONS_HAS_SKILL_OBJECTS_BARTENDING: 'CommonStatisticId' = 76256 AWAY_ACTIONS_HAS_SKILL_OBJECTS_CHARISMA: 'CommonStatisticId' = 76257 AWAY_ACTIONS_HAS_SKILL_OBJECTS_CHILD_CREATIVITY: 'CommonStatisticId' = 76272 AWAY_ACTIONS_HAS_SKILL_OBJECTS_CHILD_MENTAL: 'CommonStatisticId' = 76273 AWAY_ACTIONS_HAS_SKILL_OBJECTS_CHILD_MOTOR: 'CommonStatisticId' = 76274 AWAY_ACTIONS_HAS_SKILL_OBJECTS_CHILD_SOCIAL: 'CommonStatisticId' = 76275 AWAY_ACTIONS_HAS_SKILL_OBJECTS_COMEDY: 'CommonStatisticId' = 76258 AWAY_ACTIONS_HAS_SKILL_OBJECTS_COOKING: 'CommonStatisticId' = 76263 AWAY_ACTIONS_HAS_SKILL_OBJECTS_FISHING: 'CommonStatisticId' = 76259 AWAY_ACTIONS_HAS_SKILL_OBJECTS_FITNESS: 'CommonStatisticId' = 76276 AWAY_ACTIONS_HAS_SKILL_OBJECTS_GUITAR: 'CommonStatisticId' = 76261 AWAY_ACTIONS_HAS_SKILL_OBJECTS_HANDINESS: 'CommonStatisticId' = 76262 AWAY_ACTIONS_HAS_SKILL_OBJECTS_LOGIC: 'CommonStatisticId' = 76260 AWAY_ACTIONS_HAS_SKILL_OBJECTS_MISCHIEF: 'CommonStatisticId' = 76264 AWAY_ACTIONS_HAS_SKILL_OBJECTS_PAINTING: 'CommonStatisticId' = 76265 AWAY_ACTIONS_HAS_SKILL_OBJECTS_PIANO: 'CommonStatisticId' = 76266 AWAY_ACTIONS_HAS_SKILL_OBJECTS_PROGRAMMING: 'CommonStatisticId' = 76267 AWAY_ACTIONS_HAS_SKILL_OBJECTS_ROCKET_SCIENCE: 'CommonStatisticId' = 76268 AWAY_ACTIONS_HAS_SKILL_OBJECTS_VIDEO_GAMING: 'CommonStatisticId' = 76269 AWAY_ACTIONS_HAS_SKILL_OBJECTS_VIOLIN: 'CommonStatisticId' = 76270 AWAY_ACTIONS_HAS_SKILL_OBJECTS_WELLNESS: 'CommonStatisticId' = 118846 AWAY_ACTIONS_HAS_SKILL_OBJECTS_WRITING: 'CommonStatisticId' = 76271 AWAY_ACTIONS_ITEMS_TO_CLEAN: 'CommonStatisticId' = 76166 BABY_CARE_HUNGER: 'CommonStatisticId' = 38633 BABY_CARE_HYGIENE: 'CommonStatisticId' = 38632 BABY_CARE_SOCIAL: 'CommonStatisticId' = 38634 BABY_FALLING_ASLEEP: 'CommonStatisticId' = 100020 BABY_NEW: 'CommonStatisticId' = 98939 BANQUET_TABLE_FOOD_SPAWNED: 'CommonStatisticId' = 116824 BASKETBALL_COACH_TIMER: 'CommonStatisticId' = 154698 BASSINET_NEGLECTED: 'CommonStatisticId' = 100339 BECOMING_VAMPIRE: 'CommonStatisticId' = 149438 BED_MONSTER_UNDER_REL_TRACKER: 'CommonStatisticId' = 136457 BEE_BOX_HONEY: 'CommonStatisticId' = 186126 BEE_BOX_MITES_COUNTDOWN: 'CommonStatisticId' = 190590 BEE_BOX_MOOD: 'CommonStatisticId' = 186127 BIRD_FLOCK_DESTROY_FLOCK: 'CommonStatisticId' = 174711 BLESSINGS_ANCIENT_JOY_CONTAGIOUS: 'CommonStatisticId' = 175092 BONFIRE_FIRE_INTENSITY: 'CommonStatisticId' = 121461 BONSAI_GROWTH: 'CommonStatisticId' = 16450 BOOK_CRAFTING_LEVEL: 'CommonStatisticId' = 100664 BOOKING_STATION_FINGERPRINT_COOLDOWN: 'CommonStatisticId' = 110663 BOOKING_STATION_MUGSHOT_COOLDOWN: 'CommonStatisticId' = 110664 BOOKING_STATION_SEARCH_COOLDOWN: 'CommonStatisticId' = 110646 BREW_POT: 'CommonStatisticId' = 27539 BREW_SINGLE: 'CommonStatisticId' = 27552 BUFF_ALL_MOTIVES_HIGH_GATE: 'CommonStatisticId' = 27153 BUFF_BURNING_LOVE_START_FIRE: 'CommonStatisticId' = 107076 BUFF_CLEANING_EMOTION: 'CommonStatisticId' = 24005 BUFF_CONFIDENT_BY_POTION: 'CommonStatisticId' = 26335 BUFF_DROWN_GHOST_FEAR_OF_WATER: 'CommonStatisticId' = 107571 BUFF_ENERGIZED_BY_POTION: 'CommonStatisticId' = 26337 BUFF_ENOUGH_ALREADY: 'CommonStatisticId' = 157743 BUFF_FLIRTY_BY_POTION: 'CommonStatisticId' = 26305 BUFF_FOCUSED_BY_POTION: 'CommonStatisticId' = 26338 BUFF_GHOST_ANGRY: 'CommonStatisticId' = 102473 BUFF_GHOST_EMBARRASSMENT: 'CommonStatisticId' = 102525 BUFF_GHOST_PLAYFUL: 'CommonStatisticId' = 102501 BUFF_HAPPY_BY_POTION: 'CommonStatisticId' = 26339 BUFF_HERBALIST_POTION_INSECT_REPELLENT: 'CommonStatisticId' = 104530 BUFF_HERBALIST_POTION_SKIN_BALM: 'CommonStatisticId' = 104568 BUFF_HYPER_CHARGED: 'CommonStatisticId' = 190884 BUFF_INSIDER_TRAIT_CURIOUS_ABOUT_CLUBS: 'CommonStatisticId' = 125580 BUFF_INSIDER_TRAIT_MISS_HANGING_OUT: 'CommonStatisticId' = 125579 BUFF_INSPIRED_BY_POTION: 'CommonStatisticId' = 26340 BUFF_LOST_FIGHT: 'CommonStatisticId' = 16445 BUFF_OBJECT_BATHTUB_BUBBLES: 'CommonStatisticId' = 16480 BUFF_OBJECT_BATHTUB_PLAY: 'CommonStatisticId' = 8229 BUFF_OBJECT_BED_RELAX: 'CommonStatisticId' = 16482 BUFF_OBJECT_BONSAI_ONE_WITH_PLANT: 'CommonStatisticId' = 40066 BUFF_OBJECT_BOOK_READ_FLIRTY_LOW: 'CommonStatisticId' = 16490 BUFF_OBJECT_BOOK_READ_FOCUSED_LOW: 'CommonStatisticId' = 16491 BUFF_OBJECT_BOOK_READ_PLAYFUL_DIRTY: 'CommonStatisticId' = 16494 BUFF_OBJECT_BOOK_READ_SKILL_TOO_EASY: 'CommonStatisticId' = 16497 BUFF_OBJECT_BOOK_READ_SKILL_TOO_HARD: 'CommonStatisticId' = 16498 BUFF_OBJECT_BOOK_SKILL_TOO_EASY_VAMPIRE_BOOK: 'CommonStatisticId' = 149624 BUFF_OBJECT_BOOK_SKILL_TOO_HARD_VAMPIRE_BOOK: 'CommonStatisticId' = 149626 BUFF_OBJECT_CELEBU_SERUM_DRANK_CONFIDENT: 'CommonStatisticId' = 194907 BUFF_OBJECT_CELEBU_SERUM_DRANK_ENERGY: 'CommonStatisticId' = 194909 BUFF_OBJECT_CELEBU_SERUM_DRANK_FLIRTY: 'CommonStatisticId' = 194910 BUFF_OBJECT_CELEBU_SERUM_DRANK_FOCUS: 'CommonStatisticId' = 194911 BUFF_OBJECT_CELEBU_SERUM_DRANK_FUN: 'CommonStatisticId' = 194905 BUFF_OBJECT_CELEBU_SERUM_DRANK_HAPPY: 'CommonStatisticId' = 194912 BUFF_OBJECT_CELEBU_SERUM_DRANK_HYGIENE: 'CommonStatisticId' = 194906 BUFF_OBJECT_CELEBU_SERUM_DRANK_INSPIRED: 'CommonStatisticId' = 194914 BUFF_OBJECT_CELEBU_SERUM_DRANK_SLEEP: 'CommonStatisticId' = 194915 BUFF_OBJECT_COFFEE_CAFFEINE0: 'CommonStatisticId' = 100836 BUFF_OBJECT_COFFEE_CAFFEINE1: 'CommonStatisticId' = 16500 BUFF_OBJECT_COFFEE_CAFFEINE2: 'CommonStatisticId' = 99750 BUFF_OBJECT_COFFEE_OVERLOAD: 'CommonStatisticId' = 99782 BUFF_OBJECT_COMPUTER_BRAIN_FRIED: 'CommonStatisticId' = 36128 BUFF_OBJECT_COMPUTER_VAMPIRE_RESEARCH_TOO_EASY: 'CommonStatisticId' = 153825 BUFF_OBJECT_COOKING_OBJECTS: 'CommonStatisticId' = 76609 BUFF_OBJECT_FITNESS_FATIGUE: 'CommonStatisticId' = 16508 BUFF_OBJECT_FITNESS_GOOD_WORKOUT: 'CommonStatisticId' = 97348 BUFF_OBJECT_FITNESS_PULLED_MUSCLE: 'CommonStatisticId' = 97347 BUFF_OBJECT_HOT_TUB_AROMATHERAPY_JASMINE: 'CommonStatisticId' = 118694 BUFF_OBJECT_HOT_TUB_AROMATHERAPY_LEMON: 'CommonStatisticId' = 118693 BUFF_OBJECT_HOT_TUB_AROMATHERAPY_PEPPERMINT: 'CommonStatisticId' = 118696 BUFF_OBJECT_HOT_TUB_AROMATHERAPY_SAGE: 'CommonStatisticId' = 118695 BUFF_OBJECT_MIRROR_BODY_SPRAY: 'CommonStatisticId' = 16522 BUFF_OBJECT_MIRROR_BREATH_SPRAY: 'CommonStatisticId' = 16523 BUFF_OBJECT_MIRROR_GUSSY_UP: 'CommonStatisticId' = 16525 BUFF_OBJECT_MONKEY_BARS_PLAY: 'CommonStatisticId' = 31634 BUFF_OBJECT_PLUMBING_USE_DIRTY: 'CommonStatisticId' = 10164 BUFF_OBJECT_SEATING_COMFORT: 'CommonStatisticId' = 25002 BUFF_OBJECT_SEATING_DISCOMFORT: 'CommonStatisticId' = 24998 BUFF_OBJECT_SHOWER_TAKE_SHOWER_HIGH_QUALITY: 'CommonStatisticId' = 9963 BUFF_OBJECT_SHOWER_TAKE_SHOWER_HIGH_QUALITY_UPGRADE: 'CommonStatisticId' = 10132 BUFF_OBJECT_SHOWER_TAKE_SHOWER_LOW_QUALITY: 'CommonStatisticId' = 9964 BUFF_OBJECT_SHOWER_TAKE_SHOWER_UPGRADE: 'CommonStatisticId' = 10133 BUFF_OBJECT_STEAM_ROOM_COMFORT: 'CommonStatisticId' = 119390 BUFF_OBJECT_STEAM_ROOM_EXPOSURE: 'CommonStatisticId' = 119409 BUFF_OBJECT_STEREO_MUSIC_TODDLER: 'CommonStatisticId' = 147770 BUFF_OBJECT_SURFACE_USE_DIRTY: 'CommonStatisticId' = 36390 BUFF_OBJECT_TV_GENERIC_WATCH: 'CommonStatisticId' = 31014 BUFF_OBJECT_VOODOO_DOLL_DAZED: 'CommonStatisticId' = 16540 BUFF_OBJECT_VOODOO_DOLL_FUN: 'CommonStatisticId' = 16541 BUFF_OBJECT_VOODOO_DOLL_LOVE: 'CommonStatisticId' = 16542 BUFF_OBJECT_VOODOO_DOLL_PAIN: 'CommonStatisticId' = 16543 BUFF_OBJECT_VOODOO_DOLL_UNCOMFORTABLE: 'CommonStatisticId' = 16544 BUFF_OBJECT_WRITING_WRITERS_BLOCK: 'CommonStatisticId' = 34130 BUFF_ON_FOREIGN_LOT: 'CommonStatisticId' = 16446 BUFF_RELATIONSHIP_FIGHT_WIN: 'CommonStatisticId' = 16552 BUFF_RELATIONSHIP_FIGHT_WIN_VILLAIN: 'CommonStatisticId' = 99532 BUFF_RELATIONSHIP_LOST_FIGHT_VILLAIN: 'CommonStatisticId' = 99536 BUFF_RELATIONSHIP_NEW_SIBLING: 'CommonStatisticId' = 97689 BUFF_RELATIONSHIP_NEW_SIBLING_BABY: 'CommonStatisticId' = 97930 BUFF_SERENADED: 'CommonStatisticId' = 39460 BUFF_SERUM_FAILURES_TRACKER: 'CommonStatisticId' = 105159 BUFF_SOCIAL_ANGRY_CONVERSATION: 'CommonStatisticId' = 10642 BUFF_SOCIAL_AWKWARD_TURTLE: 'CommonStatisticId' = 37843 BUFF_SOCIAL_BORING_CONVERSATION: 'CommonStatisticId' = 10645 BUFF_SOCIAL_DULL_HUMOR: 'CommonStatisticId' = 37856 BUFF_SOCIAL_EMBARRASSING_CONVERSATION: 'CommonStatisticId' = 10643 BUFF_SOCIAL_FLATTERED: 'CommonStatisticId' = 37857 BUFF_SOCIAL_FLIRTY_CONVERSATION: 'CommonStatisticId' = 10641 BUFF_SOCIAL_HAPPY_CONVERSATION: 'CommonStatisticId' = 10644 BUFF_SOCIAL_HOT_N_HEAVY: 'CommonStatisticId' = 37858 BUFF_SOCIAL_MADE_A_DEEP_CONNECTION: 'CommonStatisticId' = 37948 BUFF_SOCIAL_ON_A_ROLL: 'CommonStatisticId' = 37950 BUFF_SOCIAL_PLAYFUL_CONVERSATION: 'CommonStatisticId' = 10640 BUFF_STEREO_MUSIC: 'CommonStatisticId' = 96813 BUFF_STEREO_NEW_AGE_BORED: 'CommonStatisticId' = 118098 BUFF_STEREO_NEW_AGE_FOCUSED: 'CommonStatisticId' = 118099 BUFF_STEREO_SUMMER_STRUT: 'CommonStatisticId' = 186227 BUFF_STEREO_WINTER_HOLIDAY: 'CommonStatisticId' = 186234 BUFF_TIME_IN_RESTAURANT_FLIRTY_BREAKFAST: 'CommonStatisticId' = 133606 BUFF_TIME_IN_RESTAURANT_FLIRTY_DINNER: 'CommonStatisticId' = 133608 BUFF_TIME_IN_RESTAURANT_FLIRTY_LUNCH: 'CommonStatisticId' = 133607 BUFF_TIME_IN_RESTAURANT_HAPPY_BREAKFAST: 'CommonStatisticId' = 133362 BUFF_TIME_IN_RESTAURANT_HAPPY_DINNER: 'CommonStatisticId' = 133416 BUFF_TIME_IN_RESTAURANT_HAPPY_LUNCH: 'CommonStatisticId' = 133415 BUFF_TODDLER_AWAKE: 'CommonStatisticId' = 154194 BUFF_TODDLER_CAREGIVER_AWAKE: 'CommonStatisticId' = 157460 BUFF_TRAIT_FARTISAN_KNOCK_OUT: 'CommonStatisticId' = 16570 BUFF_TRAIT_GHOST_OLD_AGE_PET_IDLE_YOWL: 'CommonStatisticId' = 166679 BUFF_TRAIT_SNOB_HORSESHOES_BORING: 'CommonStatisticId' = 111547 BUFF_WEATHER_TV_CLIMATE_CHANGE: 'CommonStatisticId' = 179838 BUSH_PET_AVAILABLE: 'CommonStatisticId' = 171519 BUSKING_TOTAL_TIPS_TNS: 'CommonStatisticId' = 144187 CAMPFIRE_FIRE_INTENSITY: 'CommonStatisticId' = 101759 CAREER_ACTIVIST_PROMOTED_CAUSE_SIMS_COUNT: 'CommonStatisticId' = 135405 CAREER_ACTIVIST_PROMOTED_POLICY_SIMS_COUNT: 'CommonStatisticId' = 135568 CAREER_ACTIVIST_SECURED_VOTE_SIMS_COUNT: 'CommonStatisticId' = 136297 CAREER_ACTIVIST_SIMOLEONS_RAISED_FOR_CAUSE_ALL: 'CommonStatisticId' = 135754 CAREER_ACTIVIST_SIMOLEONS_RAISED_FOR_CAUSE_ECONOMY_STATISTIC: 'CommonStatisticId' = 135469 CAREER_ACTIVIST_SIMOLEONS_RAISED_FOR_CAUSE_ECONOMY: 'CommonStatisticId' = 136369 CAREER_ACTIVIST_SIMOLEONS_RAISED_FOR_CAUSE_ENVIRONMENT_STATISTIC: 'CommonStatisticId' = 135467 CAREER_ACTIVIST_SIMOLEONS_RAISED_FOR_CAUSE_ENVIRONMENT: 'CommonStatisticId' = 136370 CAREER_ACTIVIST_SIMOLEONS_RAISED_FOR_CAUSE_JUSTICE_STATISTIC: 'CommonStatisticId' = 135471 CAREER_ACTIVIST_SIMOLEONS_RAISED_FOR_CAUSE_JUSTICE: 'CommonStatisticId' = 136371 CAREER_ACTIVIST_SIMOLEONS_RAISED_FOR_CAUSE_PEACE_STATISTIC: 'CommonStatisticId' = 135470 CAREER_ACTIVIST_SIMOLEONS_RAISED_FOR_CAUSE_PEACE: 'CommonStatisticId' = 136372 CAREER_ACTIVIST_SIMOLEONS_RAISED_FOR_CAUSE_TAX_STATISTIC: 'CommonStatisticId' = 135468 CAREER_ACTIVIST_SIMOLEONS_RAISED_FOR_CAUSE_TAX: 'CommonStatisticId' = 136373 CAREER_BANK_BLUEPRINT_INSIDE_SCOOP: 'CommonStatisticId' = 33952 CAREER_BENEFIT_ACTIVIST: 'CommonStatisticId' = 135207 CAREER_BENEFIT_ACTIVIST_CHARITY: 'CommonStatisticId' = 151710 CAREER_BENEFIT_ACTIVIST_POLITICIAN: 'CommonStatisticId' = 153615 CAREER_BENEFIT_AGENT: 'CommonStatisticId' = 76229 CAREER_BENEFIT_ASTRONAUT: 'CommonStatisticId' = 76227 CAREER_BENEFIT_ATHLETE: 'CommonStatisticId' = 106738 CAREER_BENEFIT_BUSINESS: 'CommonStatisticId' = 106739 CAREER_BENEFIT_CRIMINAL: 'CommonStatisticId' = 76225 CAREER_BENEFIT_CRITIC: 'CommonStatisticId' = 136153 CAREER_BENEFIT_CULINARY: 'CommonStatisticId' = 76232 CAREER_BENEFIT_DRAMA_CLUB: 'CommonStatisticId' = 199910 CAREER_BENEFIT_ENTERTAINER: 'CommonStatisticId' = 76234 CAREER_BENEFIT_GARDENER: 'CommonStatisticId' = 186189 CAREER_BENEFIT_PAINTER: 'CommonStatisticId' = 76236 CAREER_BENEFIT_SCOUTING: 'CommonStatisticId' = 187002 CAREER_BENEFIT_SOCIAL_MEDIA: 'CommonStatisticId' = 135396 CAREER_BENEFIT_STYLE_INFLUENCER: 'CommonStatisticId' = 193215 CAREER_BENEFIT_TECH: 'CommonStatisticId' = 76237 CAREER_BENEFIT_WRITER: 'CommonStatisticId' = 76238 CAREER_CHILD_NEGLECT: 'CommonStatisticId' = 98946 CAREER_DETECTIVE_ANALYZE_CLUE_HANDICAP: 'CommonStatisticId' = 115370 CAREER_DETECTIVE_ARRESTED_SUSPECT: 'CommonStatisticId' = 112060 CAREER_DETECTIVE_CASES_SOLVED: 'CommonStatisticId' = 111452 CAREER_DETECTIVE_DEBUG_EVENT_SELECTED: 'CommonStatisticId' = 112734 CAREER_DETECTIVE_HAS_CASE: 'CommonStatisticId' = 112059 CAREER_DETECTIVE_INTERROGATION_AT100: 'CommonStatisticId' = 116463 CAREER_DETECTIVE_ON_PATROL_TIMER: 'CommonStatisticId' = 116389 CAREER_DETECTIVE_SINGLE_DAY_GOAL_TRACKING_CITATIONS: 'CommonStatisticId' = 116375 CAREER_DETECTIVE_SINGLE_DAY_GOAL_TRACKING_CRIME_PICS: 'CommonStatisticId' = 116378 CAREER_DETECTIVE_SINGLE_DAY_GOAL_TRACKING_EVIDENCE_COLLECTED: 'CommonStatisticId' = 116377 CAREER_DETECTIVE_SINGLE_DAY_GOAL_TRACKING_SOCIAL_CIV: 'CommonStatisticId' = 116376 CAREER_DETECTIVE_SINGLE_DAY_GOAL_TRACKING_WITNESS_REPORTS: 'CommonStatisticId' = 116379 CAREER_DIVERT_FUNDS_COOLDOWN: 'CommonStatisticId' = 36961 CAREER_HACK_PAYOUT_MULTIPLIER: 'CommonStatisticId' = 33981 CAREER_HOMEWORK: 'CommonStatisticId' = 16571 CAREER_HOMEWORK_EXTRA_CREDIT: 'CommonStatisticId' = 33900 CAREER_HOMEWORK_MAKEUP: 'CommonStatisticId' = 33899 CAREER_INSTANT_BACKGROUND_CHECK_COOLDOWN: 'CommonStatisticId' = 34735 CAREER_INTELLIGENCE_DB_WORK_PERF: 'CommonStatisticId' = 34167 CAREER_INVESTIGATE_SIM_COOLDOWN: 'CommonStatisticId' = 34203 CAREER_PAINTER_AGENT: 'CommonStatisticId' = 30738 CAREER_PERFORMANCE: 'CommonStatisticId' = 16662 CAREER_PERFORMANCE_ACTIVIST: 'CommonStatisticId' = 141770 CAREER_PERFORMANCE_ACTOR: 'CommonStatisticId' = 196749 CAREER_PERFORMANCE_ASTRONAUT: 'CommonStatisticId' = 24170 CAREER_PERFORMANCE_ATHLETE: 'CommonStatisticId' = 106741 CAREER_PERFORMANCE_BUSINESS: 'CommonStatisticId' = 106742 CAREER_PERFORMANCE_CRIMINAL: 'CommonStatisticId' = 27782 CAREER_PERFORMANCE_CRITIC: 'CommonStatisticId' = 136181 CAREER_PERFORMANCE_CULINARY: 'CommonStatisticId' = 24167 CAREER_PERFORMANCE_DETECTIVE: 'CommonStatisticId' = 108581 CAREER_PERFORMANCE_DOCTOR: 'CommonStatisticId' = 108718 CAREER_PERFORMANCE_DRAMA_CLUB: 'CommonStatisticId' = 199905 CAREER_PERFORMANCE_ENTERTAINER: 'CommonStatisticId' = 27781 CAREER_PERFORMANCE_GARDENER: 'CommonStatisticId' = 186187 CAREER_PERFORMANCE_GRADE_SCHOOL: 'CommonStatisticId' = 24169 CAREER_PERFORMANCE_HIGHSCHOOL: 'CommonStatisticId' = 24168 CAREER_PERFORMANCE_MILITARY: 'CommonStatisticId' = 202507 CAREER_PERFORMANCE_PAINTER: 'CommonStatisticId' = 27786 CAREER_PERFORMANCE_SCIENTIST: 'CommonStatisticId' = 108717 CAREER_PERFORMANCE_SECRET_AGENT: 'CommonStatisticId' = 27780 CAREER_PERFORMANCE_SOCIAL_MEDIA: 'CommonStatisticId' = 135394 CAREER_PERFORMANCE_STYLE_INFLUENCER: 'CommonStatisticId' = 193216 CAREER_PERFORMANCE_TECH_GURU: 'CommonStatisticId' = 27783 CAREER_PERFORMANCE_TEEN_BABYSITTER: 'CommonStatisticId' = 35169 CAREER_PERFORMANCE_TEEN_BARISTA: 'CommonStatisticId' = 35168 CAREER_PERFORMANCE_TEEN_FAST_FOOD: 'CommonStatisticId' = 35165 CAREER_PERFORMANCE_TEEN_MANUAL_LABOR: 'CommonStatisticId' = 35166 CAREER_PERFORMANCE_TEEN_RETAIL: 'CommonStatisticId' = 35167 CAREER_PERFORMANCE_VOLUNTEER_SCOUTING: 'CommonStatisticId' = 186592 CAREER_PERFORMANCE_WRITER: 'CommonStatisticId' = 27784 CAREER_PICKPOCKET_COOLDOWN: 'CommonStatisticId' = 36960 CAREER_SCIENTIST_BREAKTHROUGH_LEVEL: 'CommonStatisticId' = 114887 CAREER_SCIENTIST_BREAKTHROUGH_PROGRESS: 'CommonStatisticId' = 108216 CAREER_SCIENTIST_INVENT_ALIEN_PORTAL: 'CommonStatisticId' = 115207 CAREER_SCIENTIST_INVENT_CLONING_MACHINE: 'CommonStatisticId' = 115208 CAREER_SCIENTIST_INVENT_HOVER_LAMP: 'CommonStatisticId' = 115205 CAREER_SCIENTIST_INVENT_MOMENTUM_CONSERVER: 'CommonStatisticId' = 115204 CAREER_SCIENTIST_INVENT_SATELLITE_DISH: 'CommonStatisticId' = 115203 CAREER_SCIENTIST_INVENT_SIM_RAY: 'CommonStatisticId' = 115206 CAREER_SCIENTIST_INVENTING: 'CommonStatisticId' = 113011 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_10: 'CommonStatisticId' = 112767 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_11: 'CommonStatisticId' = 112768 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_12: 'CommonStatisticId' = 112769 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_13: 'CommonStatisticId' = 112770 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_14: 'CommonStatisticId' = 112771 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_15: 'CommonStatisticId' = 112772 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_16: 'CommonStatisticId' = 112773 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_17: 'CommonStatisticId' = 112774 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_18: 'CommonStatisticId' = 112775 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_19: 'CommonStatisticId' = 112776 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_1: 'CommonStatisticId' = 112715 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_20: 'CommonStatisticId' = 112817 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_21: 'CommonStatisticId' = 112758 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_2: 'CommonStatisticId' = 112759 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_3: 'CommonStatisticId' = 112760 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_4: 'CommonStatisticId' = 112761 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_5: 'CommonStatisticId' = 112762 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_6: 'CommonStatisticId' = 112763 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_7: 'CommonStatisticId' = 112764 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_8: 'CommonStatisticId' = 112765 CAREER_SCIENTIST_SITUATION_GOAL_CHAIN_BREAKTHROUGH_9: 'CommonStatisticId' = 112766 CAREER_SCIENTIST_UPGRADE_CLONE_SIM: 'CommonStatisticId' = 113556 CAREER_SCIENTIST_UPGRADE_DETECT_ALIENS: 'CommonStatisticId' = 113555 CAREER_SCIENTIST_UPGRADE_MIND_CONTROL_CHANGE_CLOTHES: 'CommonStatisticId' = 113336 CAREER_SCIENTIST_UPGRADE_MIND_CONTROL_CLEAN: 'CommonStatisticId' = 113333 CAREER_SCIENTIST_UPGRADE_MIND_CONTROL_EAT: 'CommonStatisticId' = 113335 CAREER_SCIENTIST_UPGRADE_MIND_CONTROL_PANIC: 'CommonStatisticId' = 113339 CAREER_SCIENTIST_UPGRADE_MIND_CONTROL_SIT: 'CommonStatisticId' = 113338 CAREER_SCIENTIST_UPGRADE_MIND_CONTROL_SLEEP: 'CommonStatisticId' = 113337 CAREER_SCIENTIST_UPGRADE_TRANSFORM: 'CommonStatisticId' = 113247 CAREER_SCIENTIST_UPGRADE_TRANSFORM_SIM: 'CommonStatisticId' = 113299 CAREER_SCIENTIST_UPGRADE_TRAVEL_ALIEN_WORLD: 'CommonStatisticId' = 113557 CAREER_SCOUTING_BADGES_COLLECTED: 'CommonStatisticId' = 187093 CAREER_SESSION_PERFORMANCE_CHANGE: 'CommonStatisticId' = 99886 CAREER_SOCIAL_MEDIA_FOLLOWERS_LOST_GAINED_TNS_TOTAL: 'CommonStatisticId' = 143928 CAREER_SOCIAL_MEDIA_PROFIT_GAINED_TNS_TOTAL: 'CommonStatisticId' = 143927 CAREER_SOCIAL_MEDIA_PUBLIC_RELATIONS_REPRESENT: 'CommonStatisticId' = 145911 CAREER_TECH_GURU_FREELANCE_MULTIPLIER: 'CommonStatisticId' = 34384 CAREER_TONE_PERFORMANCE: 'CommonStatisticId' = 75576 CAT_COLD_WEATHER_GET_WARM: 'CommonStatisticId' = 185585 CAT_HOT_WEATHER_LAZE: 'CommonStatisticId' = 183616 CHALET_GARDENS_WANDER_MAZE_COOLDOWN: 'CommonStatisticId' = 126322 CHEF_STATION_IN_USE: 'CommonStatisticId' = 156196 CHEF_STATION_ORDER_COUNT: 'CommonStatisticId' = 131251 CHILDHOOD_PHASE: 'CommonStatisticId' = 164773 COLLECT_AFTER_EATING_TIMER: 'CommonStatisticId' = 74875 COLLECT_SPORE_GLOW: 'CommonStatisticId' = 205802 COLLECTABLE_ROCK_DECAY: 'CommonStatisticId' = 77481 COLLECTION_CITY_LIFE_POWER_BOX_POSTERS_SPAWN_TIMER: 'CommonStatisticId' = 143929 COLLECTION_SPAWN_GROUND_OBJECT: 'CommonStatisticId' = 16572 COLLECTION_SPAWN_SLOT_OBJECT: 'CommonStatisticId' = 16573 COMEDY_SKILL_PERFORMANCE_PAYOUT: 'CommonStatisticId' = 31619 COMEDY_SKILL_PRACTICE_ROUTINE: 'CommonStatisticId' = 30481 CRAFT_SALES_TABLE_CREATE_OBJECT: 'CommonStatisticId' = 147957 CRAFTING_PROGRESS: 'CommonStatisticId' = 16574 CRIME_MAP_ANALYZE_COOLDOWN: 'CommonStatisticId' = 107612 CULLING_GHOST: 'CommonStatisticId' = 161328 CULTURAL_FOOD_RECIPE_UNLOCKS: 'CommonStatisticId' = 137036 CURIOUS_TRAIT_SEARCH_COUNT: 'CommonStatisticId' = 172155 CURSES_ANCIENT_SICKNESS_CONTAGIOUS_COMMON: 'CommonStatisticId' = 175025 CURSES_ANCIENT_SICKNESS_CONTAGIOUS_RARE: 'CommonStatisticId' = 175029 CURSES_ANCIENT_SICKNESS_CONTAGIOUS_UNCOMMON: 'CommonStatisticId' = 175030 CURSES_SEEING_THINGS_DISPEL_COUNTER: 'CommonStatisticId' = 175277 DANCE_BATTLE_SCORE: 'CommonStatisticId' = 128954 DEATH_ELDER_EXHAUSTION: 'CommonStatisticId' = 9451 DEATH_ELDER_EXHAUSTION_TRACKER: 'CommonStatisticId' = 9450 DEATH_ELECTROCUTION: 'CommonStatisticId' = 8938 DEATH_ELECTROCUTION_TRACKER: 'CommonStatisticId' = 8935 DEATH_PUFFER_FISH: 'CommonStatisticId' = 135086 DEATH_TEMPERATURE_BURNING: 'CommonStatisticId' = 182175 DEATH_TEMPERATURE_FREEZING: 'CommonStatisticId' = 182176 DENIZEN_POND_CLEANING: 'CommonStatisticId' = 194428 DENIZEN_POND_DIRTINESS: 'CommonStatisticId' = 200850 DENIZEN_POND_FEEDING: 'CommonStatisticId' = 196544 DENIZEN_POND_HUNGER: 'CommonStatisticId' = 192251 DIRT_MOUND_AVAILABILITY: 'CommonStatisticId' = 173092 DIRT_MOUND_DUG: 'CommonStatisticId' = 172107 DIRTINESS: 'CommonStatisticId' = 16575 DISCIPLINE_CAT_JUMP_ON_COUNTERS: 'CommonStatisticId' = 170719 DISCIPLINE_CAT_SCRATCHING: 'CommonStatisticId' = 162259 DISCIPLINE_DOG_BARK: 'CommonStatisticId' = 165941 DISCIPLINE_DOG_EAT_POOP: 'CommonStatisticId' = 168488 DISCIPLINE_DOG_JUMP_ON_COUNTERS: 'CommonStatisticId' = 170720 DISCIPLINE_DOG_PUDDLES_PLAY: 'CommonStatisticId' = 162273 DISCIPLINE_DOG_TOILET: 'CommonStatisticId' = 162261 DISCIPLINE_FREQUENCY_CAT_JUMP_ON_COUNTERS: 'CommonStatisticId' = 177148 DISCIPLINE_FREQUENCY_CAT_SCRATCHING: 'CommonStatisticId' = 177149 DISCIPLINE_FREQUENCY_DOG_BARK: 'CommonStatisticId' = 177150 DISCIPLINE_FREQUENCY_DOG_CHASE: 'CommonStatisticId' = 177151 DISCIPLINE_FREQUENCY_DOG_EAT_POOP: 'CommonStatisticId' = 177153 DISCIPLINE_FREQUENCY_DOG_JUMP_ON_COUNTERS: 'CommonStatisticId' = 177154 DISCIPLINE_FREQUENCY_DOG_PUDDLES_PLAY: 'CommonStatisticId' = 177155 DISCIPLINE_FREQUENCY_DOG_TOILET: 'CommonStatisticId' = 177156 DISCIPLINE_FREQUENCY_PET_ATTACK: 'CommonStatisticId' = 177157 DISCIPLINE_FREQUENCY_PET_BAT_KNOCK_TRASH: 'CommonStatisticId' = 177158 DISCIPLINE_FREQUENCY_PET_BEG_EATING: 'CommonStatisticId' = 177159 DISCIPLINE_FREQUENCY_PET_EAT_PEOPLE_FOOD: 'CommonStatisticId' = 177160 DISCIPLINE_FREQUENCY_PET_POTTY_TRAINING: 'CommonStatisticId' = 177161 DISCIPLINE_FREQUENCY_PET_PUDDLES_DRINK: 'CommonStatisticId' = 177162 DISCIPLINE_FREQUENCY_PET_TRASH_EAT: 'CommonStatisticId' = 177163 DISCIPLINE_FREQUENCY_PET_TRASH_PLAY: 'CommonStatisticId' = 177164 DISCIPLINE_FREQUENCY_PET_TRASH_RUMMAGE: 'CommonStatisticId' = 177165 DISCIPLINE_FREQUENCY_PET_WAKE_UP_SIMS: 'CommonStatisticId' = 177166 DISCIPLINE_NEED_CAT_JUMP_ON_COUNTERS: 'CommonStatisticId' = 170723 DISCIPLINE_NEED_CAT_SCRATCHING: 'CommonStatisticId' = 163620 DISCIPLINE_NEED_DOG_BARK: 'CommonStatisticId' = 168560 DISCIPLINE_NEED_DOG_CHASE: 'CommonStatisticId' = 163625 DISCIPLINE_NEED_DOG_EAT_POOP: 'CommonStatisticId' = 168489 DISCIPLINE_NEED_DOG_JUMP_ON_COUNTERS: 'CommonStatisticId' = 170724 DISCIPLINE_NEED_DOG_PUDDLES_PLAY: 'CommonStatisticId' = 163629 DISCIPLINE_NEED_DOG_TOILET: 'CommonStatisticId' = 163630 DISCIPLINE_NEED_PET_ATTACK: 'CommonStatisticId' = 163631 DISCIPLINE_NEED_PET_BAT_KNOCK_TRASH: 'CommonStatisticId' = 163731 DISCIPLINE_NEED_PET_BEG_EATING: 'CommonStatisticId' = 163632 DISCIPLINE_NEED_PET_EAT_PEOPLE_FOOD: 'CommonStatisticId' = 170722 DISCIPLINE_NEED_PET_POTTY_TRAINING: 'CommonStatisticId' = 163628 DISCIPLINE_NEED_PET_PUDDLES_DRINK: 'CommonStatisticId' = 163635 DISCIPLINE_NEED_PET_TRASH_EAT: 'CommonStatisticId' = 163636 DISCIPLINE_NEED_PET_TRASH_PLAY: 'CommonStatisticId' = 163637 DISCIPLINE_NEED_PET_TRASH_RUMMAGE: 'CommonStatisticId' = 163752 DISCIPLINE_NEED_PET_WAKE_UP_SIMS: 'CommonStatisticId' = 170721 DISCIPLINE_PET_ATTACK: 'CommonStatisticId' = 162272 DISCIPLINE_PET_BEG_EATING: 'CommonStatisticId' = 162269 DISCIPLINE_PET_CHASE: 'CommonStatisticId' = 162263 DISCIPLINE_PET_EAT_PEOPLE_FOOD: 'CommonStatisticId' = 170717 DISCIPLINE_PET_POTTY_TRAINING: 'CommonStatisticId' = 162264 DISCIPLINE_PET_PUDDLES_DRINK: 'CommonStatisticId' = 162265 DISCIPLINE_PET_TRASH_EAT: 'CommonStatisticId' = 162266 DISCIPLINE_PET_TRASH_PLAY: 'CommonStatisticId' = 162267 DISCIPLINE_PET_WAKE_UP_SIMS: 'CommonStatisticId' = 170718 DOCTOR_CAREER_WORKED_HOURS: 'CommonStatisticId' = 112129 DOCTOR_PLAY_SET_TOTAL_PLAYTIME: 'CommonStatisticId' = 168522 DOG_HOT_WEATHER_PANT: 'CommonStatisticId' = 183492 DOG_SNOWING_RUN: 'CommonStatisticId' = 184225 DOG_TRAINING_FETCH: 'CommonStatisticId' = 161288 DOG_TRAINING_HEEL: 'CommonStatisticId' = 161283 DOG_TRAINING_LIE_DOWN: 'CommonStatisticId' = 161287 DOG_TRAINING_PLAY_DEAD: 'CommonStatisticId' = 161289 DOG_TRAINING_ROLL_OVER: 'CommonStatisticId' = 161285 DOG_TRAINING_SHAKE: 'CommonStatisticId' = 161290 DOG_TRAINING_SHOW_OFF_TRICKS: 'CommonStatisticId' = 170020 DOG_TRAINING_SIT: 'CommonStatisticId' = 161284 DOG_TRAINING_SPEAK: 'CommonStatisticId' = 161286 DOG_WALK_DOG_TIMER: 'CommonStatisticId' = 166678 DOLLHOUSE_SMASHED: 'CommonStatisticId' = 35314 DYNAMIC_SIGN_TIMER: 'CommonStatisticId' = 133263 EMOTION_AUTONOMY_ANGRY: 'CommonStatisticId' = 16455 EMOTION_AUTONOMY_ASLEEP: 'CommonStatisticId' = 27146 EMOTION_AUTONOMY_BORED: 'CommonStatisticId' = 16456 EMOTION_AUTONOMY_CONFIDENT: 'CommonStatisticId' = 16457 EMOTION_AUTONOMY_DAZED: 'CommonStatisticId' = 16470 EMOTION_AUTONOMY_EMBARRASSED: 'CommonStatisticId' = 16462 EMOTION_AUTONOMY_ENERGIZED: 'CommonStatisticId' = 16463 EMOTION_AUTONOMY_FLIRTY: 'CommonStatisticId' = 16464 EMOTION_AUTONOMY_FOCUSED: 'CommonStatisticId' = 16465 EMOTION_AUTONOMY_HAPPY: 'CommonStatisticId' = 16466 EMOTION_AUTONOMY_INSPIRED: 'CommonStatisticId' = 16467 EMOTION_AUTONOMY_PLAYFUL: 'CommonStatisticId' = 16468 EMOTION_AUTONOMY_POSSESSED: 'CommonStatisticId' = 202880 EMOTION_AUTONOMY_SAD: 'CommonStatisticId' = 16469 EMOTION_AUTONOMY_STRESSED: 'CommonStatisticId' = 16471 EMOTION_AUTONOMY_UNCOMFORTABLE: 'CommonStatisticId' = 16472 EMOTION_PETS_ANGRY_DOG: 'CommonStatisticId' = 158224 EMOTION_PETS_ANXIOUS_DOG: 'CommonStatisticId' = 158223 EMOTION_PETS_ASHAMED_DOG: 'CommonStatisticId' = 158230 EMOTION_PETS_ASLEEP_DOG: 'CommonStatisticId' = 158229 EMOTION_PETS_AUTONOMY_HYPER: 'CommonStatisticId' = 157907 EMOTION_PETS_CATS_AUTONOMY_ANGRY: 'CommonStatisticId' = 158406 EMOTION_PETS_CATS_AUTONOMY_ANXIOUS: 'CommonStatisticId' = 158189 EMOTION_PETS_CATS_AUTONOMY_ASLEEP: 'CommonStatisticId' = 158551 EMOTION_PETS_CATS_AUTONOMY_DROWSY: 'CommonStatisticId' = 158142 EMOTION_PETS_CATS_AUTONOMY_FLIRTY: 'CommonStatisticId' = 158408 EMOTION_PETS_CATS_AUTONOMY_HAPPY: 'CommonStatisticId' = 158410 EMOTION_PETS_CATS_AUTONOMY_SCARED: 'CommonStatisticId' = 158409 EMOTION_PETS_EXCITED_DOG: 'CommonStatisticId' = 158220 EMOTION_PETS_FLIRTY_DOG: 'CommonStatisticId' = 158226 EMOTION_PETS_HAPPY_DOG: 'CommonStatisticId' = 158228 EMOTION_PETS_MOPEY_DOG: 'CommonStatisticId' = 158222 EMOTION_PETS_SAD_DOG: 'CommonStatisticId' = 158221 EMOTION_PETS_SCARED_DOG: 'CommonStatisticId' = 158227 ENVIRONMENT_ANGRY: 'CommonStatisticId' = 16576 ENVIRONMENT_ASLEEP: 'CommonStatisticId' = 99396 ENVIRONMENT_BORED: 'CommonStatisticId' = 16577 ENVIRONMENT_CONFIDENT: 'CommonStatisticId' = 16578 ENVIRONMENT_DAZED: 'CommonStatisticId' = 99395 ENVIRONMENT_DROWSY_PETS: 'CommonStatisticId' = 158141 ENVIRONMENT_EMBARRASSED: 'CommonStatisticId' = 16579 ENVIRONMENT_ENERGIZED: 'CommonStatisticId' = 16580 ENVIRONMENT_FINE: 'CommonStatisticId' = 99397 ENVIRONMENT_FLIRTY: 'CommonStatisticId' = 16581 ENVIRONMENT_FOCUSED: 'CommonStatisticId' = 16582 ENVIRONMENT_HAPPY: 'CommonStatisticId' = 16583 ENVIRONMENT_HYPER_PETS: 'CommonStatisticId' = 157870 ENVIRONMENT_IMAGINATIVE: 'CommonStatisticId' = 16584 ENVIRONMENT_NEGATIVE: 'CommonStatisticId' = 16585 ENVIRONMENT_PETS_ANXIOUS: 'CommonStatisticId' = 158190 ENVIRONMENT_PLAYFUL: 'CommonStatisticId' = 16586 ENVIRONMENT_POSITIVE: 'CommonStatisticId' = 97781 ENVIRONMENT_POSSESSED: 'CommonStatisticId' = 201541 ENVIRONMENT_SAD: 'CommonStatisticId' = 16587 ENVIRONMENT_TENSE: 'CommonStatisticId' = 16588 ENVIRONMENT_UNCOMFORTABLE: 'CommonStatisticId' = 99394 EXCAVATION_PILE_PROGRESS: 'CommonStatisticId' = 177105 FAME_PERK_BRAND_ALL_NIGHTER_CHARITY_STREAM: 'CommonStatisticId' = 196060 FAME_PERK_BRAND_ALL_NIGHTER_CHARITY_STREAM_CANCELLATION: 'CommonStatisticId' = 196090 FAME_PERK_BRAND_ALL_NIGHTER_CHARITY_STREAM_FAME_PAYOUT: 'CommonStatisticId' = 198519 FAME_PERK_CAREER_HOPPER_MULTIPLIER: 'CommonStatisticId' = 195757 FAME_PERK_SQUAD_MEMBER_AUTONOMY: 'CommonStatisticId' = 201645 FAME_PERKS_INFLUENCER_GIFT_DELIVERY: 'CommonStatisticId' = 194664 FAME_QUIRK_A_SERIOUS_ACTOR_ANGER: 'CommonStatisticId' = 195906 FAME_QUIRK_BRUSHES_WITH_FAME_TOUCH_METER: 'CommonStatisticId' = 194072 FAME_QUIRK_EMOTION_BOMB_ANGER: 'CommonStatisticId' = 200818 FAME_QUIRK_EMOTION_BOMB_SADNESS: 'CommonStatisticId' = 200819 FAME_QUIRK_NO_TOUCHING_TOUCH_METER: 'CommonStatisticId' = 194071 FAME_QUIRK_PHONE_FANATIC: 'CommonStatisticId' = 191706 FAME_QUIRK_VAIN_STREET_VAIN_METER: 'CommonStatisticId' = 195986 FAME_QUIRKS_FAN_MAIL_GIFT_DELIVERY: 'CommonStatisticId' = 195790 FAME_QUIRKS_JUICE_ENTHUSIAST_CHILD: 'CommonStatisticId' = 196278 FAME_QUIRKS_JUICE_ENTHUSIAST_TYAE: 'CommonStatisticId' = 196262 FAME_WORLD_TAKE_PHOTO_NO_ATTRACTOR: 'CommonStatisticId' = 201140 FESTIVAL_BLOSSOM_DRINK_TEA: 'CommonStatisticId' = 150594 FESTIVAL_BLOSSOM_VIEW_PLANTS: 'CommonStatisticId' = 143730 FESTIVAL_DARK_SIDER_DRINK_TEA: 'CommonStatisticId' = 135530 FESTIVAL_FIREWORKS_FIREWORK_DISPLAY_TIMER: 'CommonStatisticId' = 135874 FESTIVAL_FIREWORKS_FIREWORK_INDOOR_EXPLOSION: 'CommonStatisticId' = 142083 FESTIVAL_FIREWORKS_FUSE_TIMER: 'CommonStatisticId' = 135047 FESTIVAL_FIREWORKS_FUSE_TIMER_DUD: 'CommonStatisticId' = 135831 FESTIVAL_FIREWORKS_FUSE_TIMER_INDOORS: 'CommonStatisticId' = 142073 FESTIVAL_FIREWORKS_FUSE_TIMER_NEIGHBOR: 'CommonStatisticId' = 150515 FESTIVAL_FIREWORKS_FUSE_TIMER_QUICK: 'CommonStatisticId' = 135830 FESTIVAL_FIREWORKS_REPEATER_RESET_TIMER: 'CommonStatisticId' = 140909 FESTIVAL_FIREWORKS_SPARKLER_TIMER: 'CommonStatisticId' = 143690 FESTIVAL_FIREWORKS_SPENT_TIMER: 'CommonStatisticId' = 142168 FESTIVAL_FIREWORKS_WATCHING: 'CommonStatisticId' = 150511 FESTIVAL_FLEA_MARKET_HAGGLER: 'CommonStatisticId' = 142222 FESTIVAL_GENERAL_EAT_FOOD: 'CommonStatisticId' = 134829 FESTIVAL_LIGHT_SIDER_DRINK_TEA: 'CommonStatisticId' = 135529 FESTIVAL_NPC_BUFF_TIMERS: 'CommonStatisticId' = 149281 FESTIVAL_NPC_BUFF_TIMERS_AT_FESTIVAL: 'CommonStatisticId' = 149282 FESTIVAL_PLAYER_BUFF_TIMERS_AT_FESTIVAL_BLOSSOM: 'CommonStatisticId' = 144007 FESTIVAL_PLAYER_BUFF_TIMERS_AT_FESTIVAL_FLEA_MARKET: 'CommonStatisticId' = 144008 FESTIVAL_PLAYER_BUFF_TIMERS_AT_FESTIVAL_FOOD: 'CommonStatisticId' = 144009 FESTIVAL_PLAYER_BUFF_TIMERS_AT_FESTIVAL_LAMP: 'CommonStatisticId' = 144010 FESTIVAL_PLAYER_BUFF_TIMERS_AT_FESTIVAL_LOGIC: 'CommonStatisticId' = 143990 FESTIVAL_PLAYER_BUFF_TIMERS_BLOSSOM: 'CommonStatisticId' = 144004 FESTIVAL_PLAYER_BUFF_TIMERS_FLEA_MARKET: 'CommonStatisticId' = 144005 FESTIVAL_PLAYER_BUFF_TIMERS_FOOD: 'CommonStatisticId' = 144003 FESTIVAL_PLAYER_BUFF_TIMERS_LAMP: 'CommonStatisticId' = 144006 FESTIVAL_PLAYER_BUFF_TIMERS_LOGIC: 'CommonStatisticId' = 143789 FESTIVAL_WATCH_INTERACTIONS: 'CommonStatisticId' = 136205 FESTIVALS_HACK_THE_PLANET_SCORE: 'CommonStatisticId' = 141090 FESTIVALS_UGT_GAME_COUNT_ADVENTURE: 'CommonStatisticId' = 141685 FESTIVALS_UGT_GAME_COUNT_FAMILY: 'CommonStatisticId' = 141687 FESTIVALS_UGT_GAME_COUNT_PUZZLE: 'CommonStatisticId' = 141686 FESTIVALS_UGT_GAME_COUNT_SPORTS: 'CommonStatisticId' = 141688 FESTIVALS_UGT_GAME_COUNT_TOTAL: 'CommonStatisticId' = 141735 FESTIVALS_UGT_PLAYER_SCORE_ADVENTURE: 'CommonStatisticId' = 141690 FESTIVALS_UGT_PLAYER_SCORE_FAMILY: 'CommonStatisticId' = 141693 FESTIVALS_UGT_PLAYER_SCORE_PUZZLE: 'CommonStatisticId' = 141692 FESTIVALS_UGT_PLAYER_SCORE_SPORTS: 'CommonStatisticId' = 141691 FESTIVALS_UGT_SCORE: 'CommonStatisticId' = 141046 FISH_FRESHNESS: 'CommonStatisticId' = 77040 FISHING_FAIL_AT_FISHING: 'CommonStatisticId' = 76386 FISHING_LOCATION_RECENTLY_EXAMINED: 'CommonStatisticId' = 76365 FISHING_NEED_TO_CAST: 'CommonStatisticId' = 74423 FISHING_WEIGHT: 'CommonStatisticId' = 76023 FITNESS_FAT: 'CommonStatisticId' = 16589 FITNESS_FIT: 'CommonStatisticId' = 16590 FLOWER_ARRANGEMENT_BEGONIA_CURSED_EFFECTS: 'CommonStatisticId' = 188243 FLOWER_ARRANGEMENT_SCENT_CROCUS: 'CommonStatisticId' = 186913 FLOWER_ARRANGEMENT_SCENT_LILY_LIFE_ESSENCE: 'CommonStatisticId' = 188710 FLOWER_ARRANGEMENT_TULIP_FAITHFUL_EFFECTS: 'CommonStatisticId' = 188190 FLOWER_ARRANGEMENT_WILTING: 'CommonStatisticId' = 186915 FLOWER_BUNNY_PLACED_FLOWER_NEARBY: 'CommonStatisticId' = 187682 FLOWER_DROP_COUNTER: 'CommonStatisticId' = 187473 FOOD_POISONING: 'CommonStatisticId' = 131883 FRESHNESS: 'CommonStatisticId' = 16591 FROGS_FROG_BREEDING_COOLDOWN_FOR_SIM: 'CommonStatisticId' = 98396 FRUIT_PUNCH_FOUNTAIN_SERVINGS: 'CommonStatisticId' = 116834 GAME_FOREVER: 'CommonStatisticId' = 38997 GARDENING_AGGREGATE: 'CommonStatisticId' = 8776 GARDENING_DECAY: 'CommonStatisticId' = 16592 GARDENING_EVOLUTION: 'CommonStatisticId' = 39327 GARDENING_EXPIRATION: 'CommonStatisticId' = 16593 GARDENING_FERTILIZER: 'CommonStatisticId' = 16594 GARDENING_FERTILIZER_B: 'CommonStatisticId' = 16595 GARDENING_FERTILIZER_C: 'CommonStatisticId' = 16596 GARDENING_FRUIT_DECAY: 'CommonStatisticId' = 16597 GARDENING_FRUIT_SIZE: 'CommonStatisticId' = 16598 GARDENING_GERMINATION: 'CommonStatisticId' = 16599 GARDENING_GROWTH: 'CommonStatisticId' = 16600 GARDENING_INFESTATION: 'CommonStatisticId' = 16601 GARDENING_MOISTURE: 'CommonStatisticId' = 16602 GARDENING_TEMPLE: 'CommonStatisticId' = 179472 GARDENING_WEEDS: 'CommonStatisticId' = 16603 GARLIC_BRAID_GARLIC_LEVEL: 'CommonStatisticId' = 151174 GENDER_PREFERENCE_FEMALE: 'CommonStatisticId' = 16663 GENDER_PREFERENCE_MALE: 'CommonStatisticId' = 16664 GIVE_ROMANTIC_GIFT_AUTONOMY: 'CommonStatisticId' = 186035 GLOAT: 'CommonStatisticId' = 34085 GO_FOR_WALK_DOG_BEHAVIOR: 'CommonStatisticId' = 166364 GO_FOR_WALK_SIM_BEHAVIOR: 'CommonStatisticId' = 166218 GRILLED_CHEESE_ASPIRATION_GRILLED_CHEESE_ATE: 'CommonStatisticId' = 132369 GRIM_REAPER_DEATH_COUNT: 'CommonStatisticId' = 16665 GROUP_STORY_WAITING: 'CommonStatisticId' = 110879 HAIR_MAKE_UP_CHAIR_WARDROBE_PEDESTAL_LOOP_COUNT: 'CommonStatisticId' = 189981 HAVE_BABY_AT_HOSPITAL_LEAVE: 'CommonStatisticId' = 116653 HOLDING_CELL_CAPACITY: 'CommonStatisticId' = 105310 HOLIDAY_TREE_FESTIVE: 'CommonStatisticId' = 180629 HOLIDAY_TREE_GARLAND_PROGRESS: 'CommonStatisticId' = 180422 HOLIDAY_TREE_ORNAMENTS_PROGRESS: 'CommonStatisticId' = 180421 HOLIDAY_TREE_SKIRT_PROGRESS: 'CommonStatisticId' = 181647 HOLIDAY_TREE_TOPPER_PROGRESS: 'CommonStatisticId' = 180423 HORSESHOE_BAD_THROWS: 'CommonStatisticId' = 111640 INCENSE_TIME_LEFT: 'CommonStatisticId' = 118476 INFECTED_CHEMICAL_ANALYZER_PROGRESS: 'CommonStatisticId' = 204831 INFECTION_CURE_EXPERIMENTAL_TRACKER: 'CommonStatisticId' = 204175 INFECTION_CURE_VACCINE_DURATION: 'CommonStatisticId' = 207420 INFECTION_SCANNER_CHARGE: 'CommonStatisticId' = 203442 INSECT_SPAWNER_VISIBILITY: 'CommonStatisticId' = 110554 INTERACTIVE_BUSH_DIRTINESS: 'CommonStatisticId' = 124865 INTERROGATION_TABLE_PROGRESS: 'CommonStatisticId' = 104629 INVESTIGATION_SYSTEM_STRANGER_VILLE_CRATER_INVESTIGATION_COUNT: 'CommonStatisticId' = 205430 JUNGLE_WORLD_LOOK_AROUND: 'CommonStatisticId' = 181759 JUNK_PILE_SEARCHES_AVAILABLE: 'CommonStatisticId' = 204673 KARAOKE_MACHINE_CONTEST_SCORE: 'CommonStatisticId' = 153653 KARAOKE_MACHINE_SCORE: 'CommonStatisticId' = 137536 LAUNDRY_AMOUNT: 'CommonStatisticId' = 175582 LAUNDRY_DRYER_LINT_TRAY_VOLUME: 'CommonStatisticId' = 176404 LAUNDRY_DRYER_OBJECT_DRYING_DURATION: 'CommonStatisticId' = 176051 LAUNDRY_HAMPER_CAPACITY: 'CommonStatisticId' = 175574 LAUNDRY_OBJECT_CLEANLINESS: 'CommonStatisticId' = 175411 LAUNDRY_OBJECT_DRYNESS: 'CommonStatisticId' = 175430 LAUNDRY_OBJECT_SCENTED: 'CommonStatisticId' = 175436 LAUNDRY_OBJECT_WASHING_MACHINE_BROKENESS_PLUMBING: 'CommonStatisticId' = 177039 LAUNDRY_WASHING_MACHINE_CLEANING_ADDITIVE: 'CommonStatisticId' = 176375 LAUNDRY_WASHING_MACHINE_OBJECT_CLEANING_DURATION: 'CommonStatisticId' = 175882 LICENSE_LYRICS: 'CommonStatisticId' = 153883 LICENSE_LYRICS_GUITAR: 'CommonStatisticId' = 139953 LICENSE_LYRICS_MICROPHONE: 'CommonStatisticId' = 139859 LICENSE_LYRICS_PIANO: 'CommonStatisticId' = 139954 LICENSE_SONG_DJ_MIX: 'CommonStatisticId' = 126100 LICENSE_SONG_GUITAR: 'CommonStatisticId' = 16605 LICENSE_SONG_PIANO: 'CommonStatisticId' = 16606 LICENSE_SONG_PIPE_ORGAN: 'CommonStatisticId' = 151358 LICENSE_SONG_VIOLIN: 'CommonStatisticId' = 16607 LIFE_SKILL_CONFLICT_RESOLUTION: 'CommonStatisticId' = 161616 LIFE_SKILL_EMOTIONAL_CONTROL: 'CommonStatisticId' = 161618 LIFE_SKILL_EMPATHY: 'CommonStatisticId' = 161617 LIFE_SKILL_MANNERS: 'CommonStatisticId' = 161614 LIFE_SKILL_RESPONSIBILITY: 'CommonStatisticId' = 161615 LIFE_SKILLS_AUTONOMY_CONFLICT_RESOLUTION_NEGATIVE: 'CommonStatisticId' = 163757 LIFE_SKILLS_AUTONOMY_CONFLICT_RESOLUTION_POSITIVE: 'CommonStatisticId' = 163756 LIFE_SKILLS_AUTONOMY_EMOTIONAL_CONTROL_NEGATIVE: 'CommonStatisticId' = 163759 LIFE_SKILLS_AUTONOMY_EMOTIONAL_CONTROL_POSITIVE: 'CommonStatisticId' = 163758 LIFE_SKILLS_AUTONOMY_EMPATHY_NEGATIVE: 'CommonStatisticId' = 163761 LIFE_SKILLS_AUTONOMY_EMPATHY_POSITIVE: 'CommonStatisticId' = 163760 LIFE_SKILLS_AUTONOMY_MANNERS_NEGATIVE: 'CommonStatisticId' = 163771 LIFE_SKILLS_AUTONOMY_MANNERS_POSITIVE: 'CommonStatisticId' = 163770 LIFE_SKILLS_AUTONOMY_RESPONSIBILITY_NEGATIVE: 'CommonStatisticId' = 163755 LIFE_SKILLS_AUTONOMY_RESPONSIBILITY_POSITIVE: 'CommonStatisticId' = 163754 LOCAL_CULTURE_SKILL_FOOD_TOLERANCE: 'CommonStatisticId' = 176981 LOT_DECORATED_STATE_VALUE: 'CommonStatisticId' = 183842 LTR_FEUD_MAIN: 'CommonStatisticId' = 193901 LTR_FRIENDSHIP_MAIN: 'CommonStatisticId' = 16650 LTR_MISCHIEF_MAIN: 'CommonStatisticId' = 26920 LTR_ROMANCE_MAIN: 'CommonStatisticId' = 16651 LTR_SIM_TO_PET_FRIENDSHIP_MAIN: 'CommonStatisticId' = 159228 MAKE_A_MESS_FLOUR_VARIANT_D: 'CommonStatisticId' = 165012 MAKE_A_MESS_FLOUR_VARIANT_E: 'CommonStatisticId' = 165138 MAKE_A_MESS_FLOUR_VARIANT_F: 'CommonStatisticId' = 165139 MAKE_A_MESS_VARIANT_A: 'CommonStatisticId' = 162810 MAKE_A_MESS_VARIANT_B: 'CommonStatisticId' = 162995 MAKE_A_MESS_VARIANT_C: 'CommonStatisticId' = 162997 MARKET_STALL_FOOD_STALL_ORDER: 'CommonStatisticId' = 178814 MARKET_STALLS_BROWSE: 'CommonStatisticId' = 170543 MASSAGE_TABLE_FINISHED: 'CommonStatisticId' = 121999 MASSAGE_TABLE_STONE_MASSAGE: 'CommonStatisticId' = 120462 MICROSCOPE_COLLECT: 'CommonStatisticId' = 31894 MOTHER_PLANT_BATTLE_MOTHER_HEALTH: 'CommonStatisticId' = 204445 MOTHER_PLANT_BATTLE_PLAYER_HEALTH: 'CommonStatisticId' = 203584 MOTHER_PLANT_ENRAGE: 'CommonStatisticId' = 204704 MOTIVE_BABY_BLADDER: 'CommonStatisticId' = 16609 MOTIVE_BABY_DISTRACTION: 'CommonStatisticId' = 8947 MOTIVE_BABY_ENERGY: 'CommonStatisticId' = 16610 MOTIVE_BABY_HUNGER: 'CommonStatisticId' = 16611 MOTIVE_BABY_SOCIAL: 'CommonStatisticId' = 16612 MOTIVE_BLADDER: 'CommonStatisticId' = 16652 MOTIVE_CAMPING_FOREST_GOOD_AT_PEACE: 'CommonStatisticId' = 108425 MOTIVE_CAMPING_FOREST_HOME_SICK: 'CommonStatisticId' = 104114 MOTIVE_CAMPING_FOREST_NEAT_TOO_MUCH_DIRT: 'CommonStatisticId' = 107835 MOTIVE_CAMPING_FOREST_REFRESHED: 'CommonStatisticId' = 104832 MOTIVE_CAMPING_FOREST_SLOB_NATURAL_DIRT: 'CommonStatisticId' = 108426 MOTIVE_CAMPING_FOREST_SNOB_NOT_ENOUGH_CULTURE: 'CommonStatisticId' = 107829 MOTIVE_COMFORT: 'CommonStatisticId' = 16653 MOTIVE_ENERGY: 'CommonStatisticId' = 16654 MOTIVE_FUN: 'CommonStatisticId' = 16655 MOTIVE_HANG_OUT: 'CommonStatisticId' = 16615 MOTIVE_HUNGER: 'CommonStatisticId' = 16656 MOTIVE_HYGIENE: 'CommonStatisticId' = 16657 MOTIVE_HYGIENE_HANDS: 'CommonStatisticId' = 16616 MOTIVE_HYGIENE_ORAL: 'CommonStatisticId' = 16617 MOTIVE_MAKE_ONE_DESSERT: 'CommonStatisticId' = 34124 MOTIVE_MAKE_ONE_GROUP_MEAL: 'CommonStatisticId' = 34123 MOTIVE_MOURN_FRIEND: 'CommonStatisticId' = 99668 MOTIVE_MOURN_LOVED_ONE: 'CommonStatisticId' = 99667 MOTIVE_MOURN_NEMESIS: 'CommonStatisticId' = 99669 MOTIVE_NAUSEA: 'CommonStatisticId' = 16618 MOTIVE_ANIMAL_FOX_BLADDER: 'CommonStatisticId' = 270467 MOTIVE_ANIMAL_FOX_HYGIENE: 'CommonStatisticId' = 270701 MOTIVE_PET_CAT_AFFECTION: 'CommonStatisticId' = 151038 MOTIVE_PET_CAT_BLADDER: 'CommonStatisticId' = 151036 MOTIVE_PET_CAT_BOWEL: 'CommonStatisticId' = 157949 MOTIVE_PET_CAT_ENERGY: 'CommonStatisticId' = 151037 MOTIVE_PET_CAT_HUNGER: 'CommonStatisticId' = 151035 MOTIVE_PET_CAT_HYGIENE: 'CommonStatisticId' = 157055 MOTIVE_PET_CAT_PLAY: 'CommonStatisticId' = 157718 MOTIVE_PET_DOG_AFFECTION: 'CommonStatisticId' = 151034 MOTIVE_PET_DOG_BLADDER: 'CommonStatisticId' = 151032 MOTIVE_PET_DOG_BOWEL: 'CommonStatisticId' = 158698 MOTIVE_PET_DOG_ENERGY: 'CommonStatisticId' = 151033 MOTIVE_PET_DOG_HUNGER: 'CommonStatisticId' = 151031 MOTIVE_PET_DOG_HYGIENE: 'CommonStatisticId' = 157056 MOTIVE_PET_DOG_PLAY: 'CommonStatisticId' = 158699 MOTIVE_PLANT_SIM_WATER: 'CommonStatisticId' = 162675 MOTIVE_ROLE_ALIEN_VISIT_ALIEN: 'CommonStatisticId' = 114183 MOTIVE_ROLE_BAR_MINGLER: 'CommonStatisticId' = 16620 MOTIVE_ROLE_BARTENDER: 'CommonStatisticId' = 16623 MOTIVE_ROLE_BARTENDER_TEND: 'CommonStatisticId' = 16622 MOTIVE_ROLE_CATERER: 'CommonStatisticId' = 16624 MOTIVE_ROLE_DINNER_PARTY_HOST: 'CommonStatisticId' = 16625 MOTIVE_ROLE_DRINK: 'CommonStatisticId' = 101020 MOTIVE_ROLE_EAT: 'CommonStatisticId' = 122235 MOTIVE_ROLE_EAT_ONE_SLICE_OF_CAKE: 'CommonStatisticId' = 8901 MOTIVE_ROLE_GRIM_REAPER: 'CommonStatisticId' = 16628 MOTIVE_ROLE_GRIM_REAPER_REAP_SOUL: 'CommonStatisticId' = 16627 MOTIVE_ROLE_SMUGGLER: 'CommonStatisticId' = 28804 MOTIVE_ROLE_WEDDING_GUEST: 'CommonStatisticId' = 8898 MOTIVE_ROLE_WORKOUT: 'CommonStatisticId' = 97594 MOTIVE_SOCIAL: 'CommonStatisticId' = 16658 MOTIVE_THIRST: 'CommonStatisticId' = 10020 MOTIVE_TODDLER_ATTENTION: 'CommonStatisticId' = 142037 MOTIVE_VISIBLE_VAMPIRE_POWER: 'CommonStatisticId' = 150238 MOTIVE_VISIBLE_VAMPIRE_THIRST: 'CommonStatisticId' = 149541 MURAL_ACTIVIST_GLOBE: 'CommonStatisticId' = 148595 MURAL_ACTIVIST_TREES: 'CommonStatisticId' = 148594 MURAL_CANYON: 'CommonStatisticId' = 148589 MURAL_CULTURAL_ELEPHANT: 'CommonStatisticId' = 148911 MURAL_CULTURAL_FISH: 'CommonStatisticId' = 148909 MURAL_CULTURAL_GIRL: 'CommonStatisticId' = 148912 MURAL_CULTURAL_JAPANESE: 'CommonStatisticId' = 148910 MURAL_DECAY: 'CommonStatisticId' = 147256 MURAL_EGYPT: 'CommonStatisticId' = 148482 MURAL_FIG_GIRL: 'CommonStatisticId' = 150994 MURAL_FIG_HAT_LADY: 'CommonStatisticId' = 150995 MURAL_FIG_HEART: 'CommonStatisticId' = 150993 MURAL_FIG_PENGUIN: 'CommonStatisticId' = 150996 MURAL_FISH: 'CommonStatisticId' = 146763 MURAL_FLOWERS: 'CommonStatisticId' = 146762 MURAL_GANG: 'CommonStatisticId' = 148484 MURAL_GARDEN: 'CommonStatisticId' = 148590 MURAL_GEISHA: 'CommonStatisticId' = 148483 MURAL_GRAF_PIECE: 'CommonStatisticId' = 148913 MURAL_GRAF_PURPLE: 'CommonStatisticId' = 148914 MURAL_ILLUSION_BIRDS: 'CommonStatisticId' = 151702 MURAL_ILLUSION_FISH: 'CommonStatisticId' = 151672 MURAL_ILLUSION_FOUNTAIN: 'CommonStatisticId' = 151671 MURAL_ILLUSION_RAINBOW: 'CommonStatisticId' = 151673 MURAL_KING: 'CommonStatisticId' = 148481 MURAL_KOI: 'CommonStatisticId' = 148588 MURAL_LEAVES: 'CommonStatisticId' = 147390 MURAL_MAGENTA_CITY: 'CommonStatisticId' = 147837 MURAL_MOSAIC_CITY: 'CommonStatisticId' = 147838 MURAL_ORANGE_CITY: 'CommonStatisticId' = 148485 MURAL_TREE: 'CommonStatisticId' = 147494 MURAL_UNIVERSE: 'CommonStatisticId' = 148591 MURAL_ZILLA_CITY: 'CommonStatisticId' = 148486 MUSIC_PRODUCTION_STATION_CD_ON_RADIO: 'CommonStatisticId' = 203042 MUSIC_PRODUCTION_STATION_MUSIC_LABEL_DINKY_BEATS: 'CommonStatisticId' = 194714 MUSIC_PRODUCTION_STATION_MUSIC_LABEL_MAXIS_MUSIC_MACHINE: 'CommonStatisticId' = 194715 MUSIC_PRODUCTION_STATION_MUSIC_LABEL_NEW_TASTE_MAKERS: 'CommonStatisticId' = 194716 MUSIC_PRODUCTION_STATION_RELEASE_COOLDOWN: 'CommonStatisticId' = 201546 MYSTICAL_RELIC_COOLDOWN: 'CommonStatisticId' = 179668 NATURAL_DANGERS: 'CommonStatisticId' = 176613 NATURAL_DANGERS_TEMPLE: 'CommonStatisticId' = 181822 NEW_OBJECT: 'CommonStatisticId' = 167504 NPC_GRIM_REAPER_BE_REAPED: 'CommonStatisticId' = 16666 NPC_GRIM_REAPER_CLEMENCY: 'CommonStatisticId' = 16667 NPC_GRIM_REAPER_COUNT: 'CommonStatisticId' = 16668 OBJECT_APARTMENT_PROBLEM_FLOWING_PUDDLE: 'CommonStatisticId' = 155520 OBJECT_APARTMENT_PROBLEM_POWER_OUTAGE: 'CommonStatisticId' = 133845 OBJECT_APARTMENT_PROBLEM_SEVERITY: 'CommonStatisticId' = 133061 OBJECT_AUTO_PET_FEEDER_REFILL_VFX: 'CommonStatisticId' = 160119 OBJECT_AUTO_PET_FEEDER_SCHEDULE_TIMER: 'CommonStatisticId' = 159034 OBJECT_AUTOGRAPHED_OBJECT_APPRAISAL_COOLDOWN_TIMER: 'CommonStatisticId' = 200664 OBJECT_BACKYARD_DRINK_TRAY_SERVINGS: 'CommonStatisticId' = 140055 OBJECT_BASKETBALL_COMPETITION_TIMER: 'CommonStatisticId' = 153689 OBJECT_BASKETBALL_GLASS_STATUS: 'CommonStatisticId' = 153627 OBJECT_BASKETBALL_IN_THE_ZONE_SHOT_TRACKER: 'CommonStatisticId' = 147787 OBJECT_BASKETBALL_ON_FIRE_SHOT_TRACKER: 'CommonStatisticId' = 147788 OBJECT_BATTLE_STATION_PROGRESS: 'CommonStatisticId' = 134837 OBJECT_BED_MONSTER_UNDER_PREVENT_SPAWN_COUNTER: 'CommonStatisticId' = 135989 OBJECT_BEE_BOX_RELATIONSHIP: 'CommonStatisticId' = 186135 OBJECT_BLOCK_CONSTRUCTION_TABLE_PROGRESS: 'CommonStatisticId' = 165304 OBJECT_BOOK_PROGRESS: 'CommonStatisticId' = 36408 OBJECT_BOOKS_BROWSED: 'CommonStatisticId' = 76992 OBJECT_BOWLING_LANE_GAME_IN_PROGRESS: 'CommonStatisticId' = 161517 OBJECT_BOWLING_LANE_RELATIONSHIP: 'CommonStatisticId' = 160133 OBJECT_BOWLING_LANE_RERACK_RESET: 'CommonStatisticId' = 158519 OBJECT_BOWLING_LANE_SORE_ARMS_TRACKER: 'CommonStatisticId' = 162030 OBJECT_BOWLING_LANE_STRIKE_COUNTER: 'CommonStatisticId' = 162431 OBJECT_BOWLING_LANE_TURKEY_STRIKES_COUNTER: 'CommonStatisticId' = 162393 OBJECT_BROKENNESS: 'CommonStatisticId' = 16633 OBJECT_BUBBLE_BLOWER_CARTRIDGE_CHARGES: 'CommonStatisticId' = 133034 OBJECT_BURNING: 'CommonStatisticId' = 39470 OBJECT_CHESS_TABLE_PROGRESS: 'CommonStatisticId' = 16669 OBJECT_CLAY_BLOB_PROGRESS: 'CommonStatisticId' = 16670 OBJECT_CLEAR_EASEL: 'CommonStatisticId' = 154802 OBJECT_CLOSET_CHANGE_COUNTER: 'CommonStatisticId' = 126939 OBJECT_CLOSET_TRYING_OUTFITS_ON: 'CommonStatisticId' = 143372 OBJECT_COMPUTER_CHARITY_COOLDOWN: 'CommonStatisticId' = 31127 OBJECT_COMPUTER_GAME_MOD_BLICBLOCK: 'CommonStatisticId' = 32835 OBJECT_COMPUTER_GAME_MOD_HILLOCK: 'CommonStatisticId' = 32839 OBJECT_COMPUTER_GAME_MOD_INCREDIBLE_SPORTS: 'CommonStatisticId' = 32840 OBJECT_COMPUTER_GAME_MOD_MARIA_SISTERS: 'CommonStatisticId' = 32841 OBJECT_COMPUTER_GAME_MOD_REFUGE: 'CommonStatisticId' = 32842 OBJECT_COMPUTER_GAME_MOD_ROAD_RIVAL: 'CommonStatisticId' = 32843 OBJECT_COMPUTER_GAME_MOD_SIMS_FOREVER_RENAMED: 'CommonStatisticId' = 32838 OBJECT_COMPUTER_GAME_TOURNAMENT_PAYOUT_MULTIPLIER: 'CommonStatisticId' = 31893 OBJECT_COMPUTER_REPAIR_TIMEOUT: 'CommonStatisticId' = 203501 OBJECT_COMPUTER_SOCIAL_NETWORK_FOLLOWERS: 'CommonStatisticId' = 31167 OBJECT_COMPUTER_SOCIAL_NETWORK_IMAGE_COOLDOWN: 'CommonStatisticId' = 31198 OBJECT_COMPUTER_SOCIAL_NETWORK_ON: 'CommonStatisticId' = 31166 OBJECT_COMPUTER_SOCIAL_NETWORK_VIDEO_COOLDOWN: 'CommonStatisticId' = 31203 OBJECT_COMPUTER_VIDEO_GAMING_RESEARCH: 'CommonStatisticId' = 32053 OBJECT_COMPUTER_VIDEO_GAMING_STREAMS: 'CommonStatisticId' = 32054 OBJECT_COMPUTER_VIDEO_GAMING_FAN_COUNT: 'CommonStatisticId' = 33411 OBJECT_CONSUMABLE: 'CommonStatisticId' = 16634 OBJECT_CONSUMABLE_QUALITY: 'CommonStatisticId' = 16671 OBJECT_CONSUMABLE_SABOTAGED: 'CommonStatisticId' = 187177 OBJECT_CONSUMABLE_SERVINGS: 'CommonStatisticId' = 16672 OBJECT_COUNT_TOYS: 'CommonStatisticId' = 176598 OBJECT_COW_PLANT_HUNGER: 'CommonStatisticId' = 16635 OBJECT_CRAFT_SALES_TABLE_AUTONOMY_BROWSE_TABLE: 'CommonStatisticId' = 145285 OBJECT_CRIME_SCENE_PHOTO_TAKEN: 'CommonStatisticId' = 108811 OBJECT_CRIME_SCENE_PRINTS_TAKEN: 'CommonStatisticId' = 108812 OBJECT_CRIME_SCENE_SAMPLE_TAKEN: 'CommonStatisticId' = 108813 OBJECT_CRIME_SCENE_WITNESS_REPORT_TAKEN: 'CommonStatisticId' = 108814 OBJECT_CRYSTAL_HELMET_CRYSTAL_BATTERY_LIFE: 'CommonStatisticId' = 192883 OBJECT_CUPCAKE_FACTORY_BATTER: 'CommonStatisticId' = 16636 OBJECT_DANCE_FLOOR_SHOW_OFF_MOVES: 'CommonStatisticId' = 125306 OBJECT_DARTBOARD_GAME_IN_PROGRESS: 'CommonStatisticId' = 130238 OBJECT_DARTBOARD_ROUND_SCORE: 'CommonStatisticId' = 127975 OBJECT_DISHES_DISH_COUNT: 'CommonStatisticId' = 16674 OBJECT_DISHWASHER_TIME_LEFT: 'CommonStatisticId' = 122157 OBJECT_DJ_BOOTH_ACTOR_JUST_TIPPED: 'CommonStatisticId' = 130631 OBJECT_DJ_BOOTH_AUDIENCE_PARTICIPATION: 'CommonStatisticId' = 125698 OBJECT_DJ_BOOTH_AUDIENCE_POSITIVE_BUFF: 'CommonStatisticId' = 128368 OBJECT_DJ_BOOTH_DJ_PERFORMANCE_DURATION: 'CommonStatisticId' = 123799 OBJECT_DJ_BOOTH_PERFORMANCE_STATE_DECAY: 'CommonStatisticId' = 124623 OBJECT_DJ_BOOTH_SHOW_QUALITY: 'CommonStatisticId' = 123168 OBJECT_DJ_BOOTH_TIPS: 'CommonStatisticId' = 127877 OBJECT_DOLLHOUSE_PLAY_COUNT: 'CommonStatisticId' = 37467 OBJECT_DONT_WAKE_LLAMA_BOT_SECTION: 'CommonStatisticId' = 127158 OBJECT_DONT_WAKE_LLAMA_GAME_COUNT: 'CommonStatisticId' = 130258 OBJECT_DONT_WAKE_LLAMA_TOP_SECTION: 'CommonStatisticId' = 127160 OBJECT_EGG_FOUND: 'CommonStatisticId' = 190498 OBJECT_FERTILIZER_COOLDOWN: 'CommonStatisticId' = 97593 OBJECT_FIRE_BEEN_EXTINGUISHED: 'CommonStatisticId' = 75770 OBJECT_FIRE_RAIN: 'CommonStatisticId' = 190384 OBJECT_FIRE_STRENGTH: 'CommonStatisticId' = 39323 OBJECT_FIRE_LEAF_ELIXIR_OF_BURNING: 'CommonStatisticId' = 104298 OBJECT_FIRE_LEAF_NEAR: 'CommonStatisticId' = 104033 OBJECT_FIRE_LEAF_RASH: 'CommonStatisticId' = 104035 OBJECT_FRONT_DESK_AWAY_EVENT_TIMER: 'CommonStatisticId' = 115560 OBJECT_FRONT_DESK_HOUSE_CALL_TIMER: 'CommonStatisticId' = 115536 OBJECT_FRONT_DESK_OUTBREAK_TIMER: 'CommonStatisticId' = 115537 OBJECT_GNOME_RELATIONSHIP: 'CommonStatisticId' = 180290 OBJECT_GUITAR_ROCKIN_RIFFS: 'CommonStatisticId' = 34551 OBJECT_GUITAR_SINGING_QUALITY: 'CommonStatisticId' = 110731 OBJECT_HOLIDAY_CANDLE_LIT: 'CommonStatisticId' = 110394 OBJECT_HOSPITAL_EXAM_BED_DIRTINESS: 'CommonStatisticId' = 107405 OBJECT_HOT_TUB_IN_USE: 'CommonStatisticId' = 119029 OBJECT_INFECTED_PLANT_RECENTLY_NURTURED: 'CommonStatisticId' = 202472 OBJECT_INVENTION_CONSTRUCTOR_ASSEMBLE_MIXER_TRACKER: 'CommonStatisticId' = 109959 OBJECT_INVENTION_CONSTRUCTOR_INVENT_MIXER_TRACKER: 'CommonStatisticId' = 110100 OBJECT_JIG_ALIEN_ORB_VFX: 'CommonStatisticId' = 116352 OBJECT_KARAOKE_MACHINE_START_DUET: 'CommonStatisticId' = 149672 OBJECT_LASER_LIGHT_SHOW_ROTATION: 'CommonStatisticId' = 35336 OBJECT_LEAF_PILE_COUNT: 'CommonStatisticId' = 180201 OBJECT_LEAF_PILE_DESTROY_TIMER: 'CommonStatisticId' = 207084 OBJECT_LEAF_PILE_FIRE_INTENSITY: 'CommonStatisticId' = 182939 OBJECT_LEAF_PILE_FRESHNESS: 'CommonStatisticId' = 183132 OBJECT_LIGHT: 'CommonStatisticId' = 99424 OBJECT_LITTER_BOX_RAKE: 'CommonStatisticId' = 161504 OBJECT_LITTER_BOX_STORAGE: 'CommonStatisticId' = 170290 OBJECT_LITTER_BOX_TURRET: 'CommonStatisticId' = 161505 OBJECT_MAILBOX_INVENTORY_COUNT: 'CommonStatisticId' = 16675 OBJECT_MAILBOX_WALL_AUTONOMOUS_DELIVERY: 'CommonStatisticId' = 143559 OBJECT_MASSAGE_CHAIR_FOOT_MASSAGE: 'CommonStatisticId' = 119766 OBJECT_MASSAGE_CHAIR_HAND_MASSAGE: 'CommonStatisticId' = 119765 OBJECT_MICROWAVE_FLAVOR_UPGRADED: 'CommonStatisticId' = 97014 OBJECT_MINOR_PET_CAGE_ACTIVITY: 'CommonStatisticId' = 180912 OBJECT_MINOR_PET_CAGE_AGE: 'CommonStatisticId' = 183341 OBJECT_MINOR_PET_CAGE_ATTENTION: 'CommonStatisticId' = 180913 OBJECT_MINOR_PET_CAGE_CLEANLINESS: 'CommonStatisticId' = 183955 OBJECT_MINOR_PET_CAGE_ENERGY: 'CommonStatisticId' = 181288 OBJECT_MINOR_PET_CAGE_HUNGER: 'CommonStatisticId' = 180911 OBJECT_MINOR_PET_CAGE_RODENT_DISEASE: 'CommonStatisticId' = 185283 OBJECT_MIRROR_EPIC_STORY: 'CommonStatisticId' = 31306 OBJECT_MONSTERS_LEVEL: 'CommonStatisticId' = 134167 OBJECT_MOTHER_PLANT_RELATIONSHIP: 'CommonStatisticId' = 206016 OBJECT_MOTHER_PLANT_DEFEAT: 'CommonStatisticId' = 205212 OBJECT_MOTION_GAMING_RIG_ADVENTURE: 'CommonStatisticId' = 29386 OBJECT_MOTION_GAMING_RIG_FAMILY: 'CommonStatisticId' = 29387 OBJECT_MOTION_GAMING_RIG_PUZZLE: 'CommonStatisticId' = 39919 OBJECT_MOTION_GAMING_RIG_SPORTS: 'CommonStatisticId' = 29388 OBJECT_MOVIE_ENJOYMENT: 'CommonStatisticId' = 128901 OBJECT_MOVIE_LENGTH: 'CommonStatisticId' = 129182 OBJECT_MURAL_KICK_OFF_TRACKER: 'CommonStatisticId' = 154292 OBJECT_MUSIC_PRODUCTION_STATION_TRACKS_RELEASED: 'CommonStatisticId' = 194853 OBJECT_MUSIC_PRODUCTION_STATION_TRACKS_RELEASED_DINKY_BEATS: 'CommonStatisticId' = 197041 OBJECT_MUSIC_PRODUCTION_STATION_TRACKS_RELEASED_MAXIS_MUSIC_MACHINE: 'CommonStatisticId' = 197042 OBJECT_MUSIC_PRODUCTION_STATION_TRACKS_RELEASED_NEW_TASTE_MAKERS: 'CommonStatisticId' = 197043 OBJECT_NUM_SIMS_WATCHING: 'CommonStatisticId' = 31618 OBJECT_OVEN_COOKING_PROGRESS: 'CommonStatisticId' = 16637 OBJECT_PARK_FOUNTAIN_SOAP: 'CommonStatisticId' = 131534 OBJECT_PET_MINOR_CAGE_FOOD: 'CommonStatisticId' = 181295 OBJECT_PET_MINOR_CAGE_RELATIONSHIP: 'CommonStatisticId' = 180924 OBJECT_PET_POOP_DESTROY: 'CommonStatisticId' = 161056 OBJECT_PHOTO_STUDIO_IN_PLACE_COUNT_2_SIMS: 'CommonStatisticId' = 111877 OBJECT_PHOTO_STUDIO_IN_PLACE_COUNT_3_SIMS: 'CommonStatisticId' = 111830 OBJECT_PIANO_COOL_KEY_CHORDS: 'CommonStatisticId' = 34518 OBJECT_PIPE_ORGAN_PALLIATIVE_PIPES: 'CommonStatisticId' = 151296 OBJECT_PODIUM_SPEECH_HAPPY_COUNT: 'CommonStatisticId' = 147282 OBJECT_PODIUM_SPEECH_UNHAPPY_COUNT: 'CommonStatisticId' = 147283 OBJECT_POPCORN_BURNING_CARAMEL: 'CommonStatisticId' = 130645 OBJECT_POPCORN_BURNING_CHEDDAR: 'CommonStatisticId' = 130646 OBJECT_POPCORN_BURNING_KETTLE: 'CommonStatisticId' = 130647 OBJECT_POPCORN_BURNING_POPCORN: 'CommonStatisticId' = 130648 OBJECT_POPCORN_POPPER_PROGRESS: 'CommonStatisticId' = 129056 OBJECT_POPCORN_POPPER_SERVINGS: 'CommonStatisticId' = 128955 OBJECT_POSTCARD_COOLDOWN_APPALOOSA_PLAINS: 'CommonStatisticId' = 29793 OBJECT_POSTCARD_COOLDOWN_BARNACLE_BAY: 'CommonStatisticId' = 29794 OBJECT_POSTCARD_COOLDOWN_BRIDGEPORT: 'CommonStatisticId' = 29795 OBJECT_POSTCARD_COOLDOWN_CHAMPS_LES_SIMS: 'CommonStatisticId' = 29796 OBJECT_POSTCARD_COOLDOWN_DRAGON_VALLEY: 'CommonStatisticId' = 29797 OBJECT_POSTCARD_COOLDOWN_ISLA_PARADISO: 'CommonStatisticId' = 29798 OBJECT_POSTCARD_COOLDOWN_LITTLE_HAVEN: 'CommonStatisticId' = 29799 OBJECT_POSTCARD_COOLDOWN_LUCKY_PALMS: 'CommonStatisticId' = 29800 OBJECT_POSTCARD_COOLDOWN_LUNAR_LAKES: 'CommonStatisticId' = 29801 OBJECT_POSTCARD_COOLDOWN_MIDNIGHT_HOLLOW: 'CommonStatisticId' = 29802 OBJECT_POSTCARD_COOLDOWN_MOONLIGHT_FALLS: 'CommonStatisticId' = 29803 OBJECT_POSTCARD_COOLDOWN_RIVERVIEW: 'CommonStatisticId' = 29804 OBJECT_POSTCARD_COOLDOWN_SUNSET_VALLEY: 'CommonStatisticId' = 29805 OBJECT_POSTCARD_COOLDOWN_TWINBROOK: 'CommonStatisticId' = 29806 OBJECT_POSTCARD_PENPAL_REPLY: 'CommonStatisticId' = 29756 OBJECT_POSTCARDS_APPALOOSA_PLAINS: 'CommonStatisticId' = 29715 OBJECT_POSTCARDS_BARNACLE_BAY: 'CommonStatisticId' = 29719 OBJECT_POSTCARDS_BRIDGEPORT: 'CommonStatisticId' = 29712 OBJECT_POSTCARDS_CHAMPS_LES_SIMS: 'CommonStatisticId' = 29720 OBJECT_POSTCARDS_DRAGON_VALLEY: 'CommonStatisticId' = 29724 OBJECT_POSTCARDS_ISLA_PARADISO: 'CommonStatisticId' = 29723 OBJECT_POSTCARDS_LITTLE_HAVEN: 'CommonStatisticId' = 29714 OBJECT_POSTCARDS_LUCKY_PALMS: 'CommonStatisticId' = 29717 OBJECT_POSTCARDS_LUNAR_LAKES: 'CommonStatisticId' = 29721 OBJECT_POSTCARDS_MIDNIGHT_HOLLOW: 'CommonStatisticId' = 29722 OBJECT_POSTCARDS_MOONLIGHT_FALLS: 'CommonStatisticId' = 29716 OBJECT_POSTCARDS_RIVERVIEW: 'CommonStatisticId' = 29713 OBJECT_POSTCARDS_SUNSET_VALLEY: 'CommonStatisticId' = 29710 OBJECT_POSTCARDS_TWINBROOK: 'CommonStatisticId' = 29711 OBJECT_POSTCARDS_WAITING_FOR_PENPAL_REPLY: 'CommonStatisticId' = 29757 OBJECT_POTTY_CHAIR_CONFIDENCE: 'CommonStatisticId' = 144921 OBJECT_PUBLIC_BATHROOM_CAPACITY: 'CommonStatisticId' = 102628 OBJECT_PUDDLE_EVAPORATION: 'CommonStatisticId' = 183781 OBJECT_PUDDLE_WATER: 'CommonStatisticId' = 16676 OBJECT_PUPPET_THEATER_CLAP: 'CommonStatisticId' = 135935 OBJECT_PUPPET_THEATER_FAILURES: 'CommonStatisticId' = 133858 OBJECT_PUPPET_THEATER_JOKE: 'CommonStatisticId' = 135934 OBJECT_PUPPET_THEATER_SCARED: 'CommonStatisticId' = 135936 OBJECT_PUPPET_THEATER_STAGE: 'CommonStatisticId' = 133859 OBJECT_RABBIT_HOLE_BRAMBLE_ADVENTURE_STATE: 'CommonStatisticId' = 103097 OBJECT_RABBIT_HOLE_CAVE_ADVENTURE_STATE: 'CommonStatisticId' = 77469 OBJECT_RABBIT_HOLE_RELATIONSHIP: 'CommonStatisticId' = 74098 OBJECT_RABBIT_HOLE_TREE_ADVENTURE_STATE: 'CommonStatisticId' = 77452 OBJECT_ROAST_MARSHMALLOW_PROGRESS: 'CommonStatisticId' = 112001 OBJECT_ROBOT_VACUUM_AUTO_CLEAN_TIMER: 'CommonStatisticId' = 173413 OBJECT_ROBOT_VACUUM_CLEAR_TRASH: 'CommonStatisticId' = 176156 OBJECT_ROBOT_VACUUM_DOCK_AUTO_CLEAN_TIMER: 'CommonStatisticId' = 173318 OBJECT_ROBOT_VACUUM_DOCKED_VFX: 'CommonStatisticId' = 176678 OBJECT_ROBOT_VACUUM_RUNNING_TIME: 'CommonStatisticId' = 173116 OBJECT_ROBOT_VACUUM_TRASH_CAPACITY: 'CommonStatisticId' = 173115 OBJECT_ROCKET_SHIP_FUEL: 'CommonStatisticId' = 9691 OBJECT_ROCKET_SHIP_PROGRESS: 'CommonStatisticId' = 16677 OBJECT_ROCKET_SHIP_ROCKETS_IN_SPACE: 'CommonStatisticId' = 16678 OBJECT_ROCKET_SHIP_SABOTAGE: 'CommonStatisticId' = 29448 OBJECT_ROCKET_SHIP_SPACE_WOOHOO_COUNT: 'CommonStatisticId' = 16679 OBJECT_SCARECROW_REL: 'CommonStatisticId' = 187939 OBJECT_SCHOOL_PROJECT_BOX_PROGRESS: 'CommonStatisticId' = 161800 OBJECT_SCHOOL_PROJECT_BOX_QUALITY: 'CommonStatisticId' = 161799 OBJECT_SCULPTURE_CONTROL_OVER_SIM: 'CommonStatisticId' = 24887 OBJECT_SCULPTURE_ENERGY: 'CommonStatisticId' = 24767 OBJECT_SCULPTURE_RELATIONSHIP: 'CommonStatisticId' = 9892 OBJECT_SEED_AMOUNT: 'CommonStatisticId' = 140672 OBJECT_SIM_RAY_CHILLED: 'CommonStatisticId' = 109432 OBJECT_SIM_RAY_FROZEN: 'CommonStatisticId' = 105910 OBJECT_SIM_RAY_FROZEN_CHILD: 'CommonStatisticId' = 115717 OBJECT_SKATING_RINK_ROUTINE_MISTAKES: 'CommonStatisticId' = 180586 OBJECT_SKATING_RINK_ROUTINE_TOTAL: 'CommonStatisticId' = 180593 OBJECT_SKATING_RINK_SKATERS_ACTIVE: 'CommonStatisticId' = 180133 OBJECT_SKATING_RINK_WATCHER_TOTAL: 'CommonStatisticId' = 191312 OBJECT_SKULL_DISPLAY_CASE_CELEBRATE_COOL_DOWN_TIMER: 'CommonStatisticId' = 154769 OBJECT_SLEEPING_POD_SLEEP_DURATION: 'CommonStatisticId' = 201167 OBJECT_SLIPPY_SLIDE_IN_USE: 'CommonStatisticId' = 140219 OBJECT_SLIPPY_SLIDE_SLIDE_AMOUNT: 'CommonStatisticId' = 140357 OBJECT_SLIPPY_SLIDE_SLIDING: 'CommonStatisticId' = 143922 OBJECT_SLIPPY_SLIDE_SOAP: 'CommonStatisticId' = 140670 OBJECT_SMART_HUB_REL: 'CommonStatisticId' = 203455 OBJECT_SMOKE_SOURCES: 'CommonStatisticId' = 75461 OBJECT_SNOW_PAL_HEALTH: 'CommonStatisticId' = 180385 OBJECT_SNOW_PAL_RELATIONSHIP: 'CommonStatisticId' = 180500 OBJECT_SNOW_SNOW_MELT: 'CommonStatisticId' = 180386 OBJECT_SNOW_SNOW_MELT_FIRE: 'CommonStatisticId' = 188747 OBJECT_SPRINKLERS_DISABLED_NUM: 'CommonStatisticId' = 184640 OBJECT_SPRINKLERS_ENABLED_NUM: 'CommonStatisticId' = 184403 OBJECT_STAFF_ASSIGNED_RELATIONSHIP: 'CommonStatisticId' = 119087 OBJECT_STAFF_ASSIGNED_RELATIONSHIP_BG: 'CommonStatisticId' = 132465 OBJECT_STAFF_STUDIO_OBJECTS: 'CommonStatisticId' = 189729 OBJECT_STATE_VALUE_ELIXIR_OF_BURNING_APPLIED: 'CommonStatisticId' = 104263 OBJECT_STATE_VALUE_HERBICIDE_APPLIED: 'CommonStatisticId' = 111940 OBJECT_STEAM_ROOM_SABOTAGE_FIRE_LEAF: 'CommonStatisticId' = 120043 OBJECT_STEAM_ROOM_SABOTAGE_SULFUR: 'CommonStatisticId' = 119485 OBJECT_STINGS_NEGATIVE: 'CommonStatisticId' = 131012 OBJECT_STINGS_NEUTRAL: 'CommonStatisticId' = 131013 OBJECT_STINGS_OVERWHELMING_NEGATIVE: 'CommonStatisticId' = 131014 OBJECT_STINGS_OVERWHELMING_POSITIVE: 'CommonStatisticId' = 131015 OBJECT_STINGS_POSITIVE: 'CommonStatisticId' = 131011 OBJECT_STOVE_FLAVORIZED: 'CommonStatisticId' = 37345 OBJECT_STREAMING_DRONE_BATTERY: 'CommonStatisticId' = 194617 OBJECT_STUFFED_ANIMAL_RELATIONSHIP: 'CommonStatisticId' = 10229 OBJECT_TALKING_TOILET_BIDET_TIMER: 'CommonStatisticId' = 146291 OBJECT_TALKING_TOILET_BIDET_VFX: 'CommonStatisticId' = 146290 OBJECT_TALKING_TOILET_BROKENNESS_ELECTRONIC: 'CommonStatisticId' = 132902 OBJECT_TALKING_TOILET_REL_STC: 'CommonStatisticId' = 138082 OBJECT_TALKING_TOILET_RELATIONSHIP: 'CommonStatisticId' = 134179 OBJECT_TALKING_TOILET_ROOM_DRYING_VFX: 'CommonStatisticId' = 139985 OBJECT_TALKING_TOILET_SELF_CLEANING_VFX: 'CommonStatisticId' = 142671 OBJECT_TEMPLE_TRAP_ACTIVATED_0: 'CommonStatisticId' = 179617 OBJECT_TEMPLE_TRAP_ACTIVATED_1: 'CommonStatisticId' = 179618 OBJECT_TEMPLE_TRAP_ACTIVATED_2: 'CommonStatisticId' = 179619 OBJECT_TEMPLE_TRAP_ACTIVATED_3: 'CommonStatisticId' = 179620 OBJECT_TEMPLE_TRAP_EXAMINE_0: 'CommonStatisticId' = 174002 OBJECT_TEMPLE_TRAP_EXAMINE_1: 'CommonStatisticId' = 174003 OBJECT_TEMPLE_TRAP_EXAMINE_2: 'CommonStatisticId' = 174004 OBJECT_TEMPLE_TRAP_EXAMINE_3: 'CommonStatisticId' = 174005 OBJECT_TEMPLE_TRAP_EXAMINE_PROGRESS: 'CommonStatisticId' = 179014 OBJECT_TENT_SIM_CHATTING: 'CommonStatisticId' = 111162 OBJECT_TENT_SIMS_IN_TENT: 'CommonStatisticId' = 110685 OBJECT_THERMOSTAT_LOT_STAT_COUNTER: 'CommonStatisticId' = 188002 OBJECT_THERMOSTAT_LOT_STAT_SETTING: 'CommonStatisticId' = 187710 OBJECT_TIMER: 'CommonStatisticId' = 154238 OBJECT_TOY_BALL_PET_CHEWEDNESS: 'CommonStatisticId' = 157968 OBJECT_TRASH_AMOUNT: 'CommonStatisticId' = 16680 OBJECT_TRASH_CAPACITY: 'CommonStatisticId' = 16681 OBJECT_TRASH_CHUTE_BROKENNESS_JAM: 'CommonStatisticId' = 133525 OBJECT_TRASH_CONSUMABLE: 'CommonStatisticId' = 76727 OBJECT_TRASH_GROWTH: 'CommonStatisticId' = 16639 OBJECT_TRASH_HI_TECH_CYCLE: 'CommonStatisticId' = 27561 OBJECT_TRASH_JUST_FAILED_OUTDOOR: 'CommonStatisticId' = 99446 OBJECT_TRASH_STINK: 'CommonStatisticId' = 27382 OBJECT_TREAD_MILL_ROCK_CLIMBING_WALL_CLIMB_PROGRESS: 'CommonStatisticId' = 166015 OBJECT_TREAD_MILL_ROCK_CLIMBING_WALL_SELF_REPAIR_PROGRESS: 'CommonStatisticId' = 167831 OBJECT_UPGRADE_AROMATHERAPY: 'CommonStatisticId' = 118643 OBJECT_UPGRADE_BOWLING_LANE_MOON_LIGHT: 'CommonStatisticId' = 158115 OBJECT_UPGRADE_CHEMICAL_ANALYZER_NEVER_BREAKS: 'CommonStatisticId' = 108304 OBJECT_UPGRADE_CHEMISTRY_LAB: 'CommonStatisticId' = 105358 OBJECT_UPGRADE_COFFEE_MAKER_INFUSER: 'CommonStatisticId' = 26045 OBJECT_UPGRADE_COMPUTER_GAMING_SKILL: 'CommonStatisticId' = 29027 OBJECT_UPGRADE_COMPUTER_HACKING_MONEY: 'CommonStatisticId' = 29028 OBJECT_UPGRADE_DISHWASHER_QUIET_RUNNING: 'CommonStatisticId' = 122287 OBJECT_UPGRADE_DISHWASHER_SPEEDY_CLEANER: 'CommonStatisticId' = 122275 OBJECT_UPGRADE_DJ_BOOTH_FIREPROOF: 'CommonStatisticId' = 123463 OBJECT_UPGRADE_DJ_BOOTH_TELESPLOSION: 'CommonStatisticId' = 123465 OBJECT_UPGRADE_DJ_BOOTH_VFX_EMITTER: 'CommonStatisticId' = 123921 OBJECT_UPGRADE_DJ_BOOTH_VIDEO_SCREEN: 'CommonStatisticId' = 123464 OBJECT_UPGRADE_ESPRESSO_MACHINE: 'CommonStatisticId' = 126466 OBJECT_UPGRADE_FIREPLACE_AUTO_LIGHT: 'CommonStatisticId' = 74684 OBJECT_UPGRADE_FIREPLACE_FIRESAFE: 'CommonStatisticId' = 74685 OBJECT_UPGRADE_GENERIC_FAST_ENERGY: 'CommonStatisticId' = 28491 OBJECT_UPGRADE_GENERIC_FAST_HYGIENE: 'CommonStatisticId' = 9761 OBJECT_UPGRADE_GENERIC_FASTER_HYGIENE: 'CommonStatisticId' = 9762 OBJECT_UPGRADE_GENERIC_INCREASE_QUALITY: 'CommonStatisticId' = 16682 OBJECT_UPGRADE_GENERIC_LOCK_BROKENNESS: 'CommonStatisticId' = 16683 OBJECT_UPGRADE_GENERIC_LOCK_DIRTINESS: 'CommonStatisticId' = 16684 OBJECT_UPGRADE_GENERIC_LOCK_HYGIENE: 'CommonStatisticId' = 16685 OBJECT_UPGRADE_GENERIC_LOWER_BROKENNESS: 'CommonStatisticId' = 16686 OBJECT_UPGRADE_GENERIC_LOWER_DIRTINESS: 'CommonStatisticId' = 16687 OBJECT_UPGRADE_HEAT_LAMP_FIRE_SAFE: 'CommonStatisticId' = 131676 OBJECT_UPGRADE_INVENTION_CONSTRUCTOR_UPGRADE: 'CommonStatisticId' = 112000 OBJECT_UPGRADE_KARAOKE_MACHINE_AUTO_TUNE: 'CommonStatisticId' = 141793 OBJECT_UPGRADE_KARAOKE_MACHINE_TELESPLOSION: 'CommonStatisticId' = 141791 OBJECT_UPGRADE_LAUNDRY_CLOTHES_LINE_IRON_LINE: 'CommonStatisticId' = 177424 OBJECT_UPGRADE_LAUNDRY_DRYER_LINT_LESS: 'CommonStatisticId' = 177310 OBJECT_UPGRADE_LAUNDRY_DRYER_NEVER_BREAKS: 'CommonStatisticId' = 177308 OBJECT_UPGRADE_LAUNDRY_DRYER_QUIET: 'CommonStatisticId' = 177309 OBJECT_UPGRADE_LAUNDRY_DRYER_SPEED_CYCLE: 'CommonStatisticId' = 177307 OBJECT_UPGRADE_LAUNDRY_WASHING_MACHINE_INGREDIENT_TRAY: 'CommonStatisticId' = 176336 OBJECT_UPGRADE_LAUNDRY_WASHING_MACHINE_NEVER_BREAKS: 'CommonStatisticId' = 177242 OBJECT_UPGRADE_LAUNDRY_WASHING_MACHINE_NOISELESS: 'CommonStatisticId' = 176958 OBJECT_UPGRADE_LAUNDRY_WASHING_MACHINE_PRE_SOAK: 'CommonStatisticId' = 176953 OBJECT_UPGRADE_LAUNDRY_WASHING_MACHINE_SPEED_CYCLE: 'CommonStatisticId' = 176951 OBJECT_UPGRADE_MICROSCOPE_PRECISION_LENSES: 'CommonStatisticId' = 16688 OBJECT_UPGRADE_MOVIE_BETTER_PROJECTION: 'CommonStatisticId' = 129336 OBJECT_UPGRADE_ROBOT_VACUUM_DOCK_CLEAR_TRASH: 'CommonStatisticId' = 173324 OBJECT_UPGRADE_ROBOT_VACUUM_DOCK_MORE_AUTO_CLEAN: 'CommonStatisticId' = 173341 OBJECT_UPGRADE_ROBOT_VACUUM_FASTER: 'CommonStatisticId' = 171242 OBJECT_UPGRADE_ROBOT_VACUUM_MORE_STORAGE: 'CommonStatisticId' = 171243 OBJECT_UPGRADE_ROBOT_VACUUM_QUIET: 'CommonStatisticId' = 171244 OBJECT_UPGRADE_ROBOT_VACUUM_WET_VAC: 'CommonStatisticId' = 171246 OBJECT_UPGRADE_ROCKET_SHIP_CARGO_BAY: 'CommonStatisticId' = 38971 OBJECT_UPGRADE_ROCKET_SHIP_FUEL_STORAGE: 'CommonStatisticId' = 16689 OBJECT_UPGRADE_ROCKET_SHIP_ION_CANNON: 'CommonStatisticId' = 16690 OBJECT_UPGRADE_ROCKET_SHIP_LANDING_COMPUTER: 'CommonStatisticId' = 16691 OBJECT_UPGRADE_ROCKET_SHIP_LANDING_STABILIZERS: 'CommonStatisticId' = 16692 OBJECT_UPGRADE_ROCKET_SHIP_MANEUVERING_THRUSTERS: 'CommonStatisticId' = 16693 OBJECT_UPGRADE_ROCKET_SHIP_RAM_SCOOP: 'CommonStatisticId' = 16694 OBJECT_UPGRADE_ROCKET_SHIP_WORMHOLE_GENERATOR: 'CommonStatisticId' = 114437 OBJECT_UPGRADE_SIM_RAY_MIND_CONTROL_CHANGE_CLOTHES: 'CommonStatisticId' = 114363 OBJECT_UPGRADE_SIM_RAY_MIND_CONTROL_CLEAN: 'CommonStatisticId' = 114364 OBJECT_UPGRADE_SIM_RAY_MIND_CONTROL_EAT: 'CommonStatisticId' = 114365 OBJECT_UPGRADE_SIM_RAY_MIND_CONTROL_PANIC: 'CommonStatisticId' = 114366 OBJECT_UPGRADE_SIM_RAY_MIND_CONTROL_SIT: 'CommonStatisticId' = 114367 OBJECT_UPGRADE_SIM_RAY_MIND_CONTROL_SLEEP: 'CommonStatisticId' = 114368 OBJECT_UPGRADE_SIM_RAY_TRANSFORM_OBJECT: 'CommonStatisticId' = 114361 OBJECT_UPGRADE_SIM_RAY_TRANSFORM_SIM: 'CommonStatisticId' = 114362 OBJECT_UPGRADE_SKETCHPAD_HIGH_PERFORMANCE: 'CommonStatisticId' = 198094 OBJECT_UPGRADE_SLEEPING_POD_CIRCADIAN_TWEAKER: 'CommonStatisticId' = 200135 OBJECT_UPGRADE_SLEEPING_POD_EMOTION_DEPRIVATION: 'CommonStatisticId' = 200137 OBJECT_UPGRADE_SLEEPING_POD_FLOOR_LIGHTING: 'CommonStatisticId' = 200136 OBJECT_UPGRADE_SLEEPING_POD_SUBLIMINAL_TRANSMITTER: 'CommonStatisticId' = 200122 OBJECT_UPGRADE_SLEEPING_POD_UNBREAKABLE: 'CommonStatisticId' = 200138 OBJECT_UPGRADE_SLEEPING_POD_UP_N_ATOMIZER: 'CommonStatisticId' = 200140 OBJECT_UPGRADE_SPRINKLER_PUDDLE_PREVENTION: 'CommonStatisticId' = 184668 OBJECT_UPGRADE_SPRINKLER_UNBREAKABLE: 'CommonStatisticId' = 184667 OBJECT_UPGRADE_STEAM_ROOM_PRECISION_TEMPERATURE: 'CommonStatisticId' = 119102 OBJECT_UPGRADE_STEREO: 'CommonStatisticId' = 118642 OBJECT_UPGRADE_STREAMING_DRONE_BATTERY: 'CommonStatisticId' = 194536 OBJECT_UPGRADE_STREAMING_DRONE_BREAKS_LESS: 'CommonStatisticId' = 194537 OBJECT_UPGRADE_STREAMING_DRONE_VIDEO_QUALITY: 'CommonStatisticId' = 194538 OBJECT_UPGRADE_TALKING_TOILET_BIDET_SHOW: 'CommonStatisticId' = 146240 OBJECT_UPGRADE_TALKING_TOILET_CUSTOM_PERSONA: 'CommonStatisticId' = 135636 OBJECT_UPGRADE_TALKING_TOILET_LOCK_BROKENNESS_ELECTRONIC: 'CommonStatisticId' = 141810 OBJECT_UPGRADE_TALKING_TOILET_LOCK_BROKENNESS_PLUMBING: 'CommonStatisticId' = 141801 OBJECT_UPGRADE_TALKING_TOILET_LOWER_BROKENNESS_ELECTRONIC: 'CommonStatisticId' = 141800 OBJECT_UPGRADE_TALKING_TOILET_ROOM_DRYING: 'CommonStatisticId' = 132923 OBJECT_UPGRADE_TALKING_TOILET_SELF_CLEANING: 'CommonStatisticId' = 132925 OBJECT_UPGRADE_TALKING_TOILET_VFX_EMITTER: 'CommonStatisticId' = 132924 OBJECT_UPGRADE_TELESCOPE_PRECISION_EYEPIECE: 'CommonStatisticId' = 9700 OBJECT_UPGRADE_TRASH_CHUTE_NEVER_JAM: 'CommonStatisticId' = 141324 OBJECT_UPGRADE_TREAD_MILL_ROCK_CLIMBING_WALL_SELF_REPAIRING: 'CommonStatisticId' = 165741 OBJECT_UPGRADE_TV_SUPER_RECEPTION: 'CommonStatisticId' = 10516 OBJECT_UPGRADE_UNBREAKABLE: 'CommonStatisticId' = 118644 OBJECT_UPGRADE_VIDEO_GAME_CONSOLE_TELESPLOSION: 'CommonStatisticId' = 145555 OBJECT_UPGRADE_VIDEO_GAME_CONSOLE_TIGHTEN_UP_GRAPHICS: 'CommonStatisticId' = 145557 OBJECT_UPGRADE_VIDEO_GAME_CONSOLE_UNBREAKABLE: 'CommonStatisticId' = 145556 OBJECT_UPGRADE_VIDEO_STATION_LIGHTS: 'CommonStatisticId' = 192501 OBJECT_UPGRADE_VIDEO_STATION_STORAGE: 'CommonStatisticId' = 192500 OBJECT_UPGRADE_VIDEO_STATION_UNBREAKABLE: 'CommonStatisticId' = 192499 OBJECT_UPGRADE_WEATHER_CONTROLLER_CAPACITIVE_EFFICIENCY: 'CommonStatisticId' = 186466 OBJECT_UPGRADE_WEATHER_CONTROLLER_CLIMATIC_HYDRATOR: 'CommonStatisticId' = 186464 OBJECT_UPGRADE_WEATHER_CONTROLLER_GYROSCOPE_DURABILITY: 'CommonStatisticId' = 186460 OBJECT_UPGRADE_WEATHER_CONTROLLER_HUMIDITY_CHILLER: 'CommonStatisticId' = 186463 OBJECT_UPGRADE_WEATHER_CONTROLLER_MOISTURE_VAPORATOR: 'CommonStatisticId' = 186465 OBJECT_UPGRADE_WEATHER_CONTROLLER_SELF_REPAIRING_NANITES: 'CommonStatisticId' = 186461 OBJECT_UPGRADE_WEATHER_CONTROLLER_TEMPORAL_MODIFIER_UNIT: 'CommonStatisticId' = 186462 OBJECT_UPGRADE_XRAY_MACHINE_AUTO_CALIBRATE: 'CommonStatisticId' = 109287 OBJECT_UPGRADE_XRAY_MACHINE_NEVER_BREAKS: 'CommonStatisticId' = 109286 OBJECT_VFX_MACHINE_CONTROL_UNIT: 'CommonStatisticId' = 193877 OBJECT_VFX_MACHINE_TOGGLE: 'CommonStatisticId' = 193900 OBJECT_VIDEO_RECORDING_POLISH: 'CommonStatisticId' = 192402 OBJECT_VIDEO_RECORDING_QUALITY: 'CommonStatisticId' = 192412 OBJECT_VIDEOS_UPLOADED: 'CommonStatisticId' = 203205 OBJECT_VIOLIN_SOOTHING_STRINGS: 'CommonStatisticId' = 34552 OBJECT_VIP_ROPE_RELATIONSHIP: 'CommonStatisticId' = 194781 OBJECT_VOODOO_DOLL_RELATIONSHIP: 'CommonStatisticId' = 97150 OBJECT_WATER_BUCKET_CAPACITY: 'CommonStatisticId' = 183213 OBJECT_WEATHER_CONTROLLER_IN_USE: 'CommonStatisticId' = 187982 OBJECT_WIND_CHIME_ANNOYING_CHIMES: 'CommonStatisticId' = 143516 OBJECT_WIND_CHIME_SOOTHING_CHIMES: 'CommonStatisticId' = 143518 OBJECT_WIND_CHIME_SOUNDS_OF_WIND: 'CommonStatisticId' = 141179 OBJECT_WIND_CHIMES_ANIMATE: 'CommonStatisticId' = 140783 OBJECT_WIND_CHIMES_TIMING: 'CommonStatisticId' = 140435 OBJECT_XRAY_MACHINE_CALIBRATE: 'CommonStatisticId' = 105834 OWNABLE_BUSINESS_ADVERTISING_INTERNET: 'CommonStatisticId' = 141297 OWNABLE_BUSINESS_ADVERTISING_NEWSPAPER: 'CommonStatisticId' = 141295 OWNABLE_BUSINESS_ADVERTISING_RADIO: 'CommonStatisticId' = 141296 OWNABLE_BUSINESS_ADVERTISING_TV: 'CommonStatisticId' = 141298 OWNABLE_BUSINESS_EMPLOYEE_SATISFACTION: 'CommonStatisticId' = 137205 OWNABLE_BUSINESS_TRAINING_BRIEF: 'CommonStatisticId' = 143640 OWNABLE_BUSINESS_TRAINING_EXTENSIVE: 'CommonStatisticId' = 143641 OWNABLE_BUSINESS_TRAINING_STANDARD: 'CommonStatisticId' = 143636 OWNABLE_RESTAURANT_CUSTOMER_QUALITY: 'CommonStatisticId' = 142184 OWNABLE_RESTAURANT_CUSTOMER_STAR_RATING: 'CommonStatisticId' = 142545 OWNABLE_RESTAURANT_CUSTOMER_VALUE: 'CommonStatisticId' = 142185 OWNABLE_RESTAURANT_CUSTOMER_WAIT_TIME: 'CommonStatisticId' = 140530 OWNABLE_RESTAURANT_EMPLOYEE_CHEF_COOK_STYLE_CAREFUL: 'CommonStatisticId' = 144017 OWNABLE_RESTAURANT_EMPLOYEE_CHEF_COOK_STYLE_NORMAL: 'CommonStatisticId' = 144019 OWNABLE_RESTAURANT_EMPLOYEE_CHEF_COOK_STYLE_QUICK: 'CommonStatisticId' = 144020 OWNABLE_VET_CLINIC_CUSTOMER_VALUE_OF_SERVICE: 'CommonStatisticId' = 168448 OWNABLE_VET_CLINIC_CUSTOMER_WAIT_TIME: 'CommonStatisticId' = 167884 OWNABLE_VET_CLINIC_TRAINING_BRIEF: 'CommonStatisticId' = 167734 OWNABLE_VET_CLINIC_TRAINING_EXTENSIVE: 'CommonStatisticId' = 167737 OWNABLE_VET_CLINIC_TRAINING_STANDARD: 'CommonStatisticId' = 167741 OWNABLE_VET_CLINIC_VET_MEDICINE_VENDING_MACHINE_INVENTORY_COUNT: 'CommonStatisticId' = 172459 OWNABLE_VET_CUSTOMER_STAR_RATING: 'CommonStatisticId' = 158853 PAPARAZZI_FULFILMENT: 'CommonStatisticId' = 196693 PAPARAZZI_MELTDOWN: 'CommonStatisticId' = 191956 PARENTING_CHANCE_CARDS_ADVENTURE_COOLDOWN: 'CommonStatisticId' = 167856 PARENTING_SKILL_SUPER_PARENT: 'CommonStatisticId' = 160760 PATH_OBSTACLE_CLEAR: 'CommonStatisticId' = 181047 PATH_OBSTACLE_TEMPLE_LOCK: 'CommonStatisticId' = 178563 PATH_OBSTACLE_TRAVEL_THROUGH_ADVENTURE: 'CommonStatisticId' = 175717 PERFORMANCE_SPACE_LID: 'CommonStatisticId' = 143479 PET_CAT_PREGNANCY_VOMIT_COUNT: 'CommonStatisticId' = 174482 PET_EMOTION_TRIGGERS_ELDER_DROWSY: 'CommonStatisticId' = 160997 PET_EMOTION_TRIGGERS_EXCITED: 'CommonStatisticId' = 164472 PET_EMOTION_TRIGGERS_HYPER: 'CommonStatisticId' = 164475 PET_EMOTION_TRIGGERS_IN_HEAT_CAT: 'CommonStatisticId' = 160498 PET_EMOTION_TRIGGERS_IN_HEAT_DOG: 'CommonStatisticId' = 160519 PET_FOOD_BOWL_FRESHNESS: 'CommonStatisticId' = 158892 PET_HAIRY_TRAIT_SHED_COUNTER: 'CommonStatisticId' = 178058 PET_OBSTACLE_COURSE_FAULTS: 'CommonStatisticId' = 170390 PET_PHOTOGRAPHY_SIMSTAGRAM: 'CommonStatisticId' = 170340 PET_WORLD_WALK_BYS_CAT_BEG: 'CommonStatisticId' = 165423 PET_WORLD_WALK_BYS_CAT_FIND_OBJECT: 'CommonStatisticId' = 165416 PET_WORLD_WALK_BYS_CAT_SLEEP: 'CommonStatisticId' = 165424 PET_WORLD_WALK_BYS_CAT_SOCIALIZE: 'CommonStatisticId' = 165426 PET_WORLD_WALK_BYS_DOG_BEG: 'CommonStatisticId' = 165414 PET_WORLD_WALK_BYS_DOG_SLEEP: 'CommonStatisticId' = 165415 PET_WORLD_WALK_BYS_DOG_SOCIALIZE: 'CommonStatisticId' = 165413 PETS_CAT_SCRATCH_FURNITURE_OBJECT: 'CommonStatisticId' = 163404 PETS_SELL_VALUE_AGGRESSIVE: 'CommonStatisticId' = 174211 PETS_SELL_VALUE_FRIENDLY: 'CommonStatisticId' = 169906 PETS_SELL_VALUE_LOYAL: 'CommonStatisticId' = 169905 PETS_SELL_VALUE_NAUGHTY: 'CommonStatisticId' = 174210 PETS_SELL_VALUE_PLAYFUL: 'CommonStatisticId' = 174209 PETS_SELL_VALUE_SMART: 'CommonStatisticId' = 169907 PETS_SELL_VALUE_STUBBORN: 'CommonStatisticId' = 174212 PETS_SNIFF_NEW_OBJECT: 'CommonStatisticId' = 175857 PETS_SPIN_LOW_BLADDER_BOWEL: 'CommonStatisticId' = 171061 POISONED_ANCIENT_RELIC_CURSE: 'CommonStatisticId' = 179713 POISONED_BIT_BY_SPIDER: 'CommonStatisticId' = 179715 POISONED_GATE: 'CommonStatisticId' = 180017 POISONED_GHOST_BELCH: 'CommonStatisticId' = 179719 POISONED_POISON_DART: 'CommonStatisticId' = 179716 POISONED_POISON_GAS: 'CommonStatisticId' = 180263 POISONED_STUNG_BY_BEE: 'CommonStatisticId' = 179714 POISONED_STUNG_BY_SCORPION: 'CommonStatisticId' = 179718 POLITE_HUNGER: 'CommonStatisticId' = 27956 PREGNANCY: 'CommonStatisticId' = 16640 PREGNANCY_CAT: 'CommonStatisticId' = 169190 PREGNANCY_HORSE: 'CommonStatisticId' = 323070 PREGNANCY_CONTRACTION_MAX: 'CommonStatisticId' = 76975 PREGNANCY_CONTRACTION_TIMER: 'CommonStatisticId' = 76973 PREGNANCY_DISCOVERY: 'CommonStatisticId' = 16641 PREGNANCY_DISCOVERY_PET: 'CommonStatisticId' = 169238 PREGNANCY_DOG: 'CommonStatisticId' = 169191 PREGNANCY_GENDER_CHANCE: 'CommonStatisticId' = 117011 PRESENT_PILE_BIRTHDAY_COUNT: 'CommonStatisticId' = 188867 PRESENT_PILE_PRESENT_AMOUNT: 'CommonStatisticId' = 180947 PROGRAMMING_SKILL_APP_PROGRESS: 'CommonStatisticId' = 33284 PROGRAMMING_SKILL_FREELANCE_PROGRESS: 'CommonStatisticId' = 33234 PROGRAMMING_SKILL_GAME_PROGRESS: 'CommonStatisticId' = 36387 PROGRAMMING_SKILL_PLUGIN_PROGRESS: 'CommonStatisticId' = 31410 PROGRAMMING_SKILL_VIRUS_PROGRESS: 'CommonStatisticId' = 33259 PTO: 'CommonStatisticId' = 111109 RABBIT_HOLE_BRAMBLE_HERBICIDE_COOLDOWN: 'CommonStatisticId' = 103189 RAIN_OBJECT_WETNESS: 'CommonStatisticId' = 183352 RAIN_PET_WETNESS: 'CommonStatisticId' = 186244 RAIN_SIM_WETNESS: 'CommonStatisticId' = 183350 RAINBOW: 'CommonStatisticId' = 187940 RANDOM: 'CommonStatisticId' = 161235 RANKED_FAME: 'CommonStatisticId' = 188229 RANKED_FAME_QUIRKS_A_SERIOUS_ACTOR: 'CommonStatisticId' = 199731 RANKED_FAME_QUIRKS_BRUSHES_WITH_FAME: 'CommonStatisticId' = 199740 RANKED_FAME_QUIRKS_EMOTION_BOMB: 'CommonStatisticId' = 199738 RANKED_FAME_QUIRKS_FAN_MAIL: 'CommonStatisticId' = 199737 RANKED_FAME_QUIRKS_JUICE_ENTHUSIAST: 'CommonStatisticId' = 199742 RANKED_FAME_QUIRKS_NO_TOUCHING: 'CommonStatisticId' = 199739 RANKED_FAME_QUIRKS_PAPARAZZI_DARLING: 'CommonStatisticId' = 199736 RANKED_FAME_QUIRKS_PHONE_FANATIC: 'CommonStatisticId' = 199741 RANKED_FAME_QUIRKS_PUBLIC_NUMBER: 'CommonStatisticId' = 199733 RANKED_FAME_QUIRKS_REFINED_PALATE: 'CommonStatisticId' = 199735 RANKED_FAME_QUIRKS_STAN: 'CommonStatisticId' = 199743 RANKED_FAME_QUIRKS_VAIN_STREET: 'CommonStatisticId' = 199734 RANKED_OCCULT_VAMPIRE_DO_NOT_DRINK_DEEPLY: 'CommonStatisticId' = 155468 RANKED_OCCULT_VAMPIRE_DO_NOT_DRINK_WITHOUT_PERMISSION: 'CommonStatisticId' = 155644 RANKED_OCCULT_VAMPIRE_SURVIVE_DAY_TRACKER: 'CommonStatisticId' = 155663 RANKED_OCCULT_VAMPIRE_XP: 'CommonStatisticId' = 150071 RANKED_REPUTATION: 'CommonStatisticId' = 192283 RANKED_SOCIAL_NETWORK_FATIGUE_COUNTER: 'CommonStatisticId' = 200264 RELATIONSHIP_TRACK_AUTHORITY: 'CommonStatisticId' = 161998 RELATIONSHIP_TRACK_RIVALRY: 'CommonStatisticId' = 161999 RELATIONSHIP_TRACK_SHORT_TERM_CONTEXT_INTERROGATION_TABLE_CALM: 'CommonStatisticId' = 103618 RELATIONSHIP_TRACK_SHORT_TERM_CONTEXT_INTERROGATION_TABLE_DEFENSIVE: 'CommonStatisticId' = 103617 RELATIONSHIP_TRACK_SHORT_TERM_CONTEXT_INTERROGATION_TABLE_FRIENDLY: 'CommonStatisticId' = 103613 RELATIONSHIP_TRACK_SHORT_TERM_CONTEXT_INTERROGATION_TABLE_FURIOUS: 'CommonStatisticId' = 103616 RELATIONSHIP_TRACK_SHORT_TERM_CONTEXT_INTERROGATION_TABLE_SHY: 'CommonStatisticId' = 103598 RELATIONSHIP_TRACK_SHORT_TERM_CONTEXT_INTERROGATION_TABLE_SMUG: 'CommonStatisticId' = 103619 RELATIONSHIP_TRACK_SHORT_TERM_CONTEXT_INTERROGATION_TABLE_SUSPICIOUS: 'CommonStatisticId' = 103612 RELATIONSHIP_TRACK_SHORT_TERM_CONTEXT_INTERROGATION_TABLE_TENSE: 'CommonStatisticId' = 103615 RELATIONSHIP_TRACK_SHORT_TERM_CONTEXT_INTERROGATION_TABLE_TERRIFIED: 'CommonStatisticId' = 103614 RELATIONSHIP_TRACK_SHORT_TERM_CONTEXT_INTERROGATION_TABLE_WORRIED: 'CommonStatisticId' = 103620 RELATIONSHIP_TRACK_SHORT_TERM_CONTEXT_RETAIL_PURCHASE_INTEREST: 'CommonStatisticId' = 111598 RETAIL_ADVERTISE_ON_THE_WEB_LONG: 'CommonStatisticId' = 116021 RETAIL_ADVERTISE_ON_THE_WEB_SHORT: 'CommonStatisticId' = 114453 RETAIL_ADVERTISE_TV_LONG: 'CommonStatisticId' = 116024 RETAIL_ADVERTISE_TV_SHORT: 'CommonStatisticId' = 114173 RETAIL_EMPLOYEE_SATISFACTION: 'CommonStatisticId' = 112066 RETAIL_PRICE_RANGE_MAX: 'CommonStatisticId' = 112493 RETAIL_PRICE_RANGE_MIN: 'CommonStatisticId' = 112494 RETAIL_PURCHASE_INTENT: 'CommonStatisticId' = 113505 RETAIL_WAIT_TO_PURCHASE: 'CommonStatisticId' = 112136 ROLL_UP_BUTTERFLY: 'CommonStatisticId' = 149258 ROLL_UP_CITY_CLOUDS: 'CommonStatisticId' = 149268 ROLL_UP_CITY_LAYERS: 'CommonStatisticId' = 149265 ROLL_UP_CITY_LINES: 'CommonStatisticId' = 149266 ROLL_UP_CITY_NIGHT: 'CommonStatisticId' = 149267 ROLL_UP_CUL_BUTTERFLY: 'CommonStatisticId' = 149261 ROLL_UP_CUL_FLOWER: 'CommonStatisticId' = 149262 ROLL_UP_CUL_OCTOPUS: 'CommonStatisticId' = 149264 ROLL_UP_CUL_PEACOCK: 'CommonStatisticId' = 149260 ROLL_UP_GRAF_GOLD: 'CommonStatisticId' = 149269 ROLL_UP_GRAF_GREEN: 'CommonStatisticId' = 149270 ROLL_UP_TREES: 'CommonStatisticId' = 149259 ROOMMATE_COUNTER: 'CommonStatisticId' = 200721 SATELLITE_DISH_DEFLECT_VFX_COOLDOWN: 'CommonStatisticId' = 115909 SATELLITE_DISH_HIVE_MIND_COOLDOWN: 'CommonStatisticId' = 107519 SATELLITE_DISH_VFX_COOLDOWN: 'CommonStatisticId' = 115520 SERUMS_TESTS_COMPLETED_AGE_AWAY: 'CommonStatisticId' = 104968 SERUMS_TESTS_COMPLETED_ALIEN_AURA: 'CommonStatisticId' = 104969 SERUMS_TESTS_COMPLETED_EMBIGGEN: 'CommonStatisticId' = 104978 SERUMS_TESTS_COMPLETED_FIXERS_LUCK: 'CommonStatisticId' = 104979 SERUMS_TESTS_COMPLETED_GHOST_GOO: 'CommonStatisticId' = 104980 SERUMS_TESTS_COMPLETED_NEED_FIXER: 'CommonStatisticId' = 104981 SERUMS_TESTS_COMPLETED_OX_STRENGTH: 'CommonStatisticId' = 104982 SERUMS_TESTS_COMPLETED_REAPERS_FRIEND: 'CommonStatisticId' = 104970 SERUMS_TESTS_COMPLETED_RED_HOT: 'CommonStatisticId' = 104971 SERUMS_TESTS_COMPLETED_ROSE_PERFUME: 'CommonStatisticId' = 104972 SERUMS_TESTS_COMPLETED_SLIMIFY: 'CommonStatisticId' = 104973 SERUMS_TESTS_COMPLETED_SMART: 'CommonStatisticId' = 104974 SERUMS_TESTS_COMPLETED_SNAKE_OIL: 'CommonStatisticId' = 104975 SERUMS_TESTS_COMPLETED_SPARK_DRIVE: 'CommonStatisticId' = 104976 SERUMS_TESTS_COMPLETED_SYNTHETIC_FOOD: 'CommonStatisticId' = 104977 SERVICE_NPC_WAIT_FOR_WORK: 'CommonStatisticId' = 29694 SICKNESS_BEHAVIOR: 'CommonStatisticId' = 169645 SICKNESS_CRITICAL_DURATION_BARFING: 'CommonStatisticId' = 168431 SICKNESS_CRITICAL_DURATION_EXTREME_LETHARGY: 'CommonStatisticId' = 168432 SICKNESS_CRITICAL_DURATION_FLEAS: 'CommonStatisticId' = 168433 SICKNESS_CRITICAL_DURATION_GLOWING_NOSE: 'CommonStatisticId' = 168434 SICKNESS_CRITICAL_DURATION_GOLDEN_POOP: 'CommonStatisticId' = 168435 SICKNESS_CRITICAL_DURATION_HOT_FEET: 'CommonStatisticId' = 168441 SICKNESS_CRITICAL_DURATION_ICEY_FUR: 'CommonStatisticId' = 168436 SICKNESS_CRITICAL_DURATION_MOUTH_MOTHS: 'CommonStatisticId' = 168437 SICKNESS_CRITICAL_DURATION_RAINBOW_POOP: 'CommonStatisticId' = 168438 SICKNESS_CRITICAL_DURATION_STINKY_FUR: 'CommonStatisticId' = 168440 SICKNESS_CRITICAL_DURATION_UNCONTROLLABLE_DROOLING: 'CommonStatisticId' = 168439 SICKNESS_DAYS_SINCE_LAST_SICK: 'CommonStatisticId' = 169731 SICKNESS_SINCE_LAST_SICK_TIMER: 'CommonStatisticId' = 169732 SICKNESS_SYSTEM_DOCTOR_EXAMS_RAN: 'CommonStatisticId' = 116636 SICKNESS_SYSTEM_HOME_REMEDY: 'CommonStatisticId' = 108660 SICKNESS_SYSTEM_ILLNESS_DURATION: 'CommonStatisticId' = 105481 SICKNESS_SYSTEM_PATIENT_DIAGNOSIS: 'CommonStatisticId' = 107214 SICKNESS_SYSTEM_PATIENT_EXAM_RESULTS: 'CommonStatisticId' = 107988 SICKNESS_SYSTEM_PATIENT_EXAMS_RAN: 'CommonStatisticId' = 107999 SICKNESS_SYSTEM_SURGERY_TABLE_PATIENT_TREATMENTS: 'CommonStatisticId' = 110400 SICKNESS_SYSTEM_SYMPTOM_TRIGGER: 'CommonStatisticId' = 105528 SIM_BODY_TEMPERATURE: 'CommonStatisticId' = 181210 SIM_BUBBLE_BLOWER_EFFECTIVENESS: 'CommonStatisticId' = 135797 SIM_EFFECTIVE_TEMPERATURE: 'CommonStatisticId' = 181204 SIM_INFO_BASKETBALL_WINS: 'CommonStatisticId' = 147473 SIM_INFO_OUTDOORS_CHECK: 'CommonStatisticId' = 76777 SIM_INFO_TIME_SINCE_LAST_SLEPT: 'CommonStatisticId' = 33350 SIM_INFO_TIME_SINCE_LAST_SOCIAL: 'CommonStatisticId' = 33351 SIM_OBJECT_FAMILIARITY_BUBBLE_BLOWER: 'CommonStatisticId' = 134849 SIM_OBJECT_FAMILIARITY_TALKING_TOILET: 'CommonStatisticId' = 134821 SIM_OVERHEATING: 'CommonStatisticId' = 190848 SIM_SWIMMING: 'CommonStatisticId' = 103887 SIM_TO_PET_IMITATE_PET: 'CommonStatisticId' = 173475 SITUATION_APB_ASKED_ABOUT_SUSPECT: 'CommonStatisticId' = 109995 SITUATION_DANCE_FEVER: 'CommonStatisticId' = 74758 SITUATION_SEASONAL_GO_SKATE: 'CommonStatisticId' = 181135 SITUATION_SEASONAL_PLAY_IN_LEAVES: 'CommonStatisticId' = 181137 SITUATION_SEASONAL_SNOW: 'CommonStatisticId' = 181492 SKELETON: 'CommonStatisticId' = 175973 SKELETON_JOKE_COUNT: 'CommonStatisticId' = 176171 SKILL_ADULT_MAJOR_ACTING: 'CommonStatisticId' = 194727 SKILL_ADULT_MAJOR_ARCHAEOLOGY: 'CommonStatisticId' = 174237 SKILL_ADULT_MAJOR_BAKING: 'CommonStatisticId' = 104198 SKILL_ADULT_MAJOR_BARTENDING: 'CommonStatisticId' = 16695 SKILL_ADULT_MAJOR_CHARISMA: 'CommonStatisticId' = 16699 SKILL_ADULT_MAJOR_COMEDY: 'CommonStatisticId' = 16698 SKILL_ADULT_MAJOR_DJ_MIXING: 'CommonStatisticId' = 121612 SKILL_ADULT_MAJOR_FABRICATION: 'CommonStatisticId' = 231908 SKILL_ADULT_MAJOR_FISHING: 'CommonStatisticId' = 39397 SKILL_ADULT_MAJOR_FLOWER_ARRANGING: 'CommonStatisticId' = 186703 SKILL_ADULT_MAJOR_GARDENING: 'CommonStatisticId' = 16700 SKILL_ADULT_MAJOR_GOURMET_COOKING: 'CommonStatisticId' = 16701 SKILL_ADULT_MAJOR_GUITAR: 'CommonStatisticId' = 16702 SKILL_ADULT_MAJOR_HANDINESS: 'CommonStatisticId' = 16704 SKILL_ADULT_MAJOR_HERBALISM: 'CommonStatisticId' = 101920 SKILL_ADULT_MAJOR_HOME_STYLE_COOKING: 'CommonStatisticId' = 16705 SKILL_ADULT_MAJOR_LOGIC: 'CommonStatisticId' = 16706 SKILL_ADULT_MAJOR_MISCHIEF: 'CommonStatisticId' = 16707 SKILL_ADULT_MAJOR_PAINTING: 'CommonStatisticId' = 16708 SKILL_ADULT_MAJOR_PARENTING: 'CommonStatisticId' = 160504 SKILL_ADULT_MAJOR_PHOTOGRAPHY: 'CommonStatisticId' = 105774 SKILL_ADULT_MAJOR_PIANO: 'CommonStatisticId' = 16709 SKILL_ADULT_MAJOR_PIPE_ORGAN: 'CommonStatisticId' = 149665 SKILL_ADULT_MAJOR_PROGRAMMING: 'CommonStatisticId' = 16703 SKILL_ADULT_MAJOR_ROCKET_SCIENCE: 'CommonStatisticId' = 16710 SKILL_ADULT_MAJOR_SINGING: 'CommonStatisticId' = 137811 SKILL_ADULT_MAJOR_VETERINARIAN: 'CommonStatisticId' = 161190 SKILL_ADULT_MAJOR_VIDEO_GAMING: 'CommonStatisticId' = 16712 SKILL_ADULT_MAJOR_VIOLIN: 'CommonStatisticId' = 16713 SKILL_ADULT_MAJOR_WELLNESS: 'CommonStatisticId' = 117858 SKILL_ADULT_MAJOR_WRITING: 'CommonStatisticId' = 16714 SKILL_ADULT_MINOR_DANCING: 'CommonStatisticId' = 128145 SKILL_ADULT_MINOR_JUICE_FIZZING: 'CommonStatisticId' = 234806 SKILL_ADULT_MINOR_LOCAL_CULTURE: 'CommonStatisticId' = 174687 SKILL_ADULT_MINOR_MEDIA_PRODUCTION: 'CommonStatisticId' = 192655 SKILL_BOWLING: 'CommonStatisticId' = 158659 SKILL_CHARISMA_NEGOTIATE_PROMOTION_COOLDOWN: 'CommonStatisticId' = 37246 SKILL_CHILD_CREATIVITY: 'CommonStatisticId' = 16718 SKILL_CHILD_MENTAL: 'CommonStatisticId' = 16719 SKILL_CHILD_MOTOR: 'CommonStatisticId' = 16720 SKILL_CHILD_SOCIAL: 'CommonStatisticId' = 16721 SKILL_CHOPSTICKS: 'CommonStatisticId' = 142593 SKILL_DOG_TRAINING: 'CommonStatisticId' = 161220 SKILL_FITNESS: 'CommonStatisticId' = 16659 SKILL_FOOSBALL: 'CommonStatisticId' = 122854 SKILL_HIDDEN_SKATING: 'CommonStatisticId' = 179925 SKILL_HIDDEN_TREAD_MILL_ROCK_CLIMBING_WALL_CLIMB: 'CommonStatisticId' = 165900 SKILL_HIDDEN_VAMPIRE_LORE: 'CommonStatisticId' = 149556 SKILL_HORSE_SHOES: 'CommonStatisticId' = 104859 SKILL_PET_POOP_CLEANUP: 'CommonStatisticId' = 161097 SKILL_RETAIL_MAINTENANCE: 'CommonStatisticId' = 111904 SKILL_RETAIL_SALES: 'CommonStatisticId' = 111902 SKILL_RETAIL_WORK_ETHIC: 'CommonStatisticId' = 111903 SKILL_SPICY_FOOD: 'CommonStatisticId' = 142592 SKILL_THROWING_THINGS: 'CommonStatisticId' = 127868 SKILL_TODDLER_COMMUNICATION: 'CommonStatisticId' = 140170 SKILL_TODDLER_IMAGINATION: 'CommonStatisticId' = 140706 SKILL_TODDLER_MOVEMENT: 'CommonStatisticId' = 136140 SKILL_TODDLER_POTTY: 'CommonStatisticId' = 144913 SKILL_TODDLER_THINKING: 'CommonStatisticId' = 140504 SKILL_VIDEO_GAMING_BLICBLOCK: 'CommonStatisticId' = 31807 SKILL_VIDEO_GAMING_HILLOCK: 'CommonStatisticId' = 31813 SKILL_VIDEO_GAMING_INCREDIBLE_SPORTS: 'CommonStatisticId' = 31808 SKILL_VIDEO_GAMING_MANIAC_MATCHUMS: 'CommonStatisticId' = 31811 SKILL_VIDEO_GAMING_MARIA_SISTERS: 'CommonStatisticId' = 31809 SKILL_VIDEO_GAMING_PARTY: 'CommonStatisticId' = 145448 SKILL_VIDEO_GAMING_PLATFORMER: 'CommonStatisticId' = 145447 SKILL_VIDEO_GAMING_RACING: 'CommonStatisticId' = 145450 SKILL_VIDEO_GAMING_REFUGE: 'CommonStatisticId' = 31810 SKILL_VIDEO_GAMING_ROAD_RIVAL: 'CommonStatisticId' = 31812 SKILL_VIDEO_GAMING_RPG: 'CommonStatisticId' = 145449 SKILL_VIDEO_GAMING_SIMS_FOREVER_RENAMED: 'CommonStatisticId' = 31806 SMART_HUB_FRIENDSHIP_MAIN: 'CommonStatisticId' = 203686 SOCIAL_CONTEXT_AWKWARDNESS: 'CommonStatisticId' = 24098 SOCIAL_CONTEXT_FRIENDSHIP: 'CommonStatisticId' = 24099 SOCIAL_CONTEXT_FUN: 'CommonStatisticId' = 24100 SOCIAL_CONTEXT_ROMANCE: 'CommonStatisticId' = 24101 SOCIAL_NETWORK_FOLLOWERS_TNS_TOTAL: 'CommonStatisticId' = 144940 SPRING_CHALLENGE_2016_NPC_FERTILIZER_STOCK: 'CommonStatisticId' = 135535 STUFFED_ANIMAL_LOVE: 'CommonStatisticId' = 8240 STYLE_INFLUENCER_ARTICLE_PROGRESS: 'CommonStatisticId' = 198610 STYLEBOARD_COMPLETION: 'CommonStatisticId' = 198120 TEMPLE_EXCAVATION_SITE_PROGRESS: 'CommonStatisticId' = 183739 TEMPLE_TRAP_VIEW: 'CommonStatisticId' = 183186 TIME_MOOD_NEUTRAL_MAINTAINED: 'CommonStatisticId' = 77762 TODDLER_DIAPER_LOAD: 'CommonStatisticId' = 140764 TODDLER_JUNGLE_GYM_PLAY_PRETEND_COUNTER: 'CommonStatisticId' = 174394 TODDLERS_CAREGIVER_PLAY_WITH_TODDLER: 'CommonStatisticId' = 157445 TODDLERS_CAREGIVER_WATCH_TODDLER: 'CommonStatisticId' = 151787 TODDLERS_WATCH: 'CommonStatisticId' = 144294 TODDLERS_WILD_OUTSIDE_OR_INSIDE: 'CommonStatisticId' = 154270 TOURIST_CELEBRITY_TILE_VIEW: 'CommonStatisticId' = 197022 TRAIT_ACTIVE_ACTIVITY: 'CommonStatisticId' = 27458 TRAIT_ACTIVE_TENSE_TIMER: 'CommonStatisticId' = 99491 TRAIT_AMBITIOUS_NEED_TO_ADVANCE: 'CommonStatisticId' = 29116 TRAIT_AUTONOMY_ACTIVE: 'CommonStatisticId' = 29105 TRAIT_AUTONOMY_ART_LOVER: 'CommonStatisticId' = 28563 TRAIT_AUTONOMY_BOOKWORM: 'CommonStatisticId' = 28597 TRAIT_AUTONOMY_BRO: 'CommonStatisticId' = 29124 TRAIT_AUTONOMY_CHILDHOOD_PHASE_LOUD: 'CommonStatisticId' = 165673 TRAIT_AUTONOMY_CHILDHOOD_PHASE_REBELLIOUS: 'CommonStatisticId' = 165366 TRAIT_AUTONOMY_CHILDISH: 'CommonStatisticId' = 29125 TRAIT_AUTONOMY_CREATIVE: 'CommonStatisticId' = 28630 TRAIT_AUTONOMY_DANCE_MACHINE: 'CommonStatisticId' = 126090 TRAIT_AUTONOMY_EMOTIONAL_CONTROL: 'CommonStatisticId' = 160277 TRAIT_AUTONOMY_EVIL: 'CommonStatisticId' = 29117 TRAIT_AUTONOMY_FAMILY_ORIENTED: 'CommonStatisticId' = 29118 TRAIT_AUTONOMY_FOODIE: 'CommonStatisticId' = 29084 TRAIT_AUTONOMY_GEEK: 'CommonStatisticId' = 29107 TRAIT_AUTONOMY_GENIUS: 'CommonStatisticId' = 29109 TRAIT_AUTONOMY_GHOST: 'CommonStatisticId' = 115027 TRAIT_AUTONOMY_GHOST_FROZEN: 'CommonStatisticId' = 187684 TRAIT_AUTONOMY_GHOST_OVERHEAT: 'CommonStatisticId' = 187685 TRAIT_AUTONOMY_GLUTTON: 'CommonStatisticId' = 29120 TRAIT_AUTONOMY_GOOD: 'CommonStatisticId' = 29121 TRAIT_AUTONOMY_GOOFBALL: 'CommonStatisticId' = 29110 TRAIT_AUTONOMY_HATES_CHILDREN: 'CommonStatisticId' = 29129 TRAIT_AUTONOMY_HOT_HEADED: 'CommonStatisticId' = 29104 TRAIT_AUTONOMY_INSANE: 'CommonStatisticId' = 76587 TRAIT_AUTONOMY_INSIDER: 'CommonStatisticId' = 125438 TRAIT_AUTONOMY_JEALOUS: 'CommonStatisticId' = 124989 TRAIT_AUTONOMY_KLEPTOMANIAC: 'CommonStatisticId' = 131787 TRAIT_AUTONOMY_LAZY: 'CommonStatisticId' = 29111 TRAIT_AUTONOMY_LIFE_SKILLS_BAD_MANNERS: 'CommonStatisticId' = 160850 TRAIT_AUTONOMY_LONER: 'CommonStatisticId' = 77332 TRAIT_AUTONOMY_LOVES_OUTDOORS: 'CommonStatisticId' = 77338 TRAIT_AUTONOMY_MATERIALISTIC: 'CommonStatisticId' = 29153 TRAIT_AUTONOMY_MEAN: 'CommonStatisticId' = 29112 TRAIT_AUTONOMY_MUSIC_LOVER: 'CommonStatisticId' = 29113 TRAIT_AUTONOMY_NEAT: 'CommonStatisticId' = 29114 TRAIT_AUTONOMY_PARANOID: 'CommonStatisticId' = 203546 TRAIT_AUTONOMY_ROMANTIC: 'CommonStatisticId' = 29106 TRAIT_AUTONOMY_SELF_ABSORBED: 'CommonStatisticId' = 199605 TRAIT_AUTONOMY_SLOB: 'CommonStatisticId' = 29123 TRAIT_AUTONOMY_SNOB: 'CommonStatisticId' = 29151 TRAIT_AUTONOMY_UNCONTROLLED_EMOTION: 'CommonStatisticId' = 160267 TRAIT_AUTONOMY_WEATHER_PREFERENCE_LOVES_RAIN: 'CommonStatisticId' = 189201 TRAIT_AUTONOMY_WEATHER_PREFERENCE_LOVES_SNOW: 'CommonStatisticId' = 189231 TRAIT_BRO_BROXIMITY: 'CommonStatisticId' = 74073 TRAIT_CAT_LOVER_NEAR_CATS: 'CommonStatisticId' = 158004 TRAIT_COMMITMENT_ISSUES_CAREER_COMMITMENT: 'CommonStatisticId' = 37524 TRAIT_COMMITMENT_ISSUES_RELATIONSHIP_COMMITMENT: 'CommonStatisticId' = 31262 TRAIT_CREATIVE_CREATIVITY: 'CommonStatisticId' = 27162 TRAIT_CREATIVE_TENSE_TIMER: 'CommonStatisticId' = 99719 TRAIT_DANCE_MACHINE_DANCE_NEED: 'CommonStatisticId' = 126188 TRAIT_DOG_LOVER_NEAR_DOGS: 'CommonStatisticId' = 158005 TRAIT_EVIL_MISERY_NEARBY: 'CommonStatisticId' = 74224 TRAIT_FAMILY_ORIENTED_FAMILY_TIME: 'CommonStatisticId' = 30687 TRAIT_FAMILY_ORIENTED_MISSING_FAMILY_SAD_TIMER: 'CommonStatisticId' = 99795 TRAIT_FAMILY_ORIENTED_NEAR_FAMILY: 'CommonStatisticId' = 74225 TRAIT_FAMILY_ORIENTED_NEAR_FAMILY_HAPPY_TIMER: 'CommonStatisticId' = 99814 TRAIT_FORTUNE_INVESTED_INTEREST_CHECK_TIMER: 'CommonStatisticId' = 27949 TRAIT_GEEK_ALIEN_TV: 'CommonStatisticId' = 107152 TRAIT_GEEK_GAMING_NEED: 'CommonStatisticId' = 27550 TRAIT_GEEK_GAMING_NEED_BUFF_DECAY: 'CommonStatisticId' = 98070 TRAIT_GEEK_GEEK_OUT: 'CommonStatisticId' = 39000 TRAIT_GENIUS_MENTAL_STIMULATION: 'CommonStatisticId' = 28786 TRAIT_GOOD_NEAR_POSITIVITY: 'CommonStatisticId' = 74226 TRAIT_HATES_CHILDREN_NEAR_CHILDREN: 'CommonStatisticId' = 74227 TRAIT_HATES_CHILDREN_NEAR_TODDLERS: 'CommonStatisticId' = 157196 TRAIT_INSANE_INSANITY: 'CommonStatisticId' = 29131 TRAIT_JEALOUS_MISSING_SO_SAD_TIMER: 'CommonStatisticId' = 124917 TRAIT_JEALOUS_NEAR_SO: 'CommonStatisticId' = 124881 TRAIT_JEALOUS_NEAR_SO_HAPPY_TIMER: 'CommonStatisticId' = 124918 TRAIT_JEALOUS_SO_TIME: 'CommonStatisticId' = 124957 TRAIT_KLEPTOMANIAC_NEED_TO_SWIPE: 'CommonStatisticId' = 132222 TRAIT_LAZY_TV: 'CommonStatisticId' = 103226 TRAIT_LONER_NEAR_LOW_RELATIONS: 'CommonStatisticId' = 74228 TRAIT_LONER_SOLITUDE: 'CommonStatisticId' = 29122 TRAIT_LOVES_THE_OUTDOORS: 'CommonStatisticId' = 29152 TRAIT_LOVES_THE_OUTDOORS_AM_I_OUTSIDE: 'CommonStatisticId' = 75462 TRAIT_LOVES_THE_OUTDOORS_TENSE_TIMER: 'CommonStatisticId' = 98963 TRAIT_MATERIALISTIC_ADMIRE_NEED: 'CommonStatisticId' = 35959 TRAIT_MATERIALISTIC_ADMIRE_OBJECT: 'CommonStatisticId' = 98882 TRAIT_MORNING_PERSON_CHECK_ACTIVE: 'CommonStatisticId' = 97676 TRAIT_MUSIC_LOVER_INSPIRED_BY_MUSIC: 'CommonStatisticId' = 74243 TRAIT_MUSIC_LOVER_INSPIRED_PLAY: 'CommonStatisticId' = 74104 TRAIT_MUSIC_LOVER_MUSIC_NEED: 'CommonStatisticId' = 29314 TRAIT_NIGHT_OWL_CHECK_ACTIVE: 'CommonStatisticId' = 97703 TRAIT_OCCULT_ALIEN_BRAIN_POWER: 'CommonStatisticId' = 103330 TRAIT_PET_ACTIVE: 'CommonStatisticId' = 158207 TRAIT_PET_AGGRESSIVE: 'CommonStatisticId' = 158810 TRAIT_PET_CURIOUS: 'CommonStatisticId' = 158216 TRAIT_PET_FRIENDLY: 'CommonStatisticId' = 158806 TRAIT_PET_GLUTTON: 'CommonStatisticId' = 159988 TRAIT_PET_HAIRY: 'CommonStatisticId' = 158814 TRAIT_PET_HUNTER: 'CommonStatisticId' = 159986 TRAIT_PET_INDEPENDENT: 'CommonStatisticId' = 158812 TRAIT_PET_LAZY: 'CommonStatisticId' = 158208 TRAIT_PET_NAUGHTY: 'CommonStatisticId' = 159987 TRAIT_PET_PLAYFUL: 'CommonStatisticId' = 164048 TRAIT_PET_PROTECTIVE: 'CommonStatisticId' = 158822 TRAIT_PET_QUIRK_FEAR_COFFEE_MAKER: 'CommonStatisticId' = 161771 TRAIT_PET_QUIRK_FEAR_COMPUTER: 'CommonStatisticId' = 161772 TRAIT_PET_QUIRK_FEAR_COOKING: 'CommonStatisticId' = 161773 TRAIT_PET_QUIRK_FEAR_DISHWASHER: 'CommonStatisticId' = 161774 TRAIT_PET_QUIRK_FEAR_FIRE: 'CommonStatisticId' = 161776 TRAIT_PET_QUIRK_FEAR_FITNESS_EQUIPMENT: 'CommonStatisticId' = 161778 TRAIT_PET_QUIRK_FEAR_GAMING: 'CommonStatisticId' = 161780 TRAIT_PET_QUIRK_FEAR_INSTRUMENT: 'CommonStatisticId' = 161781 TRAIT_PET_QUIRK_FEAR_MICROWAVE: 'CommonStatisticId' = 161782 TRAIT_PET_QUIRK_FEAR_ROBOT_VACUUM: 'CommonStatisticId' = 171322 TRAIT_PET_QUIRK_FEAR_SHOWER: 'CommonStatisticId' = 161783 TRAIT_PET_QUIRK_FEAR_STEREO: 'CommonStatisticId' = 161784 TRAIT_PET_QUIRK_FEAR_TOILET: 'CommonStatisticId' = 161785 TRAIT_PET_QUIRK_FEAR_TV: 'CommonStatisticId' = 161786 TRAIT_PET_QUIRK_OBSESS_COFFEE_MAKER: 'CommonStatisticId' = 159259 TRAIT_PET_QUIRK_OBSESS_COMPUTER: 'CommonStatisticId' = 159263 TRAIT_PET_QUIRK_OBSESS_COOKING: 'CommonStatisticId' = 159253 TRAIT_PET_QUIRK_OBSESS_DISHWASHER: 'CommonStatisticId' = 159255 TRAIT_PET_QUIRK_OBSESS_DOORBELL: 'CommonStatisticId' = 160803 TRAIT_PET_QUIRK_OBSESS_FIRE: 'CommonStatisticId' = 159256 TRAIT_PET_QUIRK_OBSESS_FISH_TANK: 'CommonStatisticId' = 159261 TRAIT_PET_QUIRK_OBSESS_FITNESS_EQUIPMENT: 'CommonStatisticId' = 159258 TRAIT_PET_QUIRK_OBSESS_FRIDGE: 'CommonStatisticId' = 159266 TRAIT_PET_QUIRK_OBSESS_GAMING: 'CommonStatisticId' = 159260 TRAIT_PET_QUIRK_OBSESS_INSTRUMENT: 'CommonStatisticId' = 159254 TRAIT_PET_QUIRK_OBSESS_MICROWAVE: 'CommonStatisticId' = 159257 TRAIT_PET_QUIRK_OBSESS_PET_MINOR_CAGE: 'CommonStatisticId' = 184412 TRAIT_PET_QUIRK_OBSESS_ROBOT_VACUUM: 'CommonStatisticId' = 171321 TRAIT_PET_QUIRK_OBSESS_SHOWER: 'CommonStatisticId' = 159265 TRAIT_PET_QUIRK_OBSESS_STEREO: 'CommonStatisticId' = 159252 TRAIT_PET_QUIRK_OBSESS_SWIMMING: 'CommonStatisticId' = 171913 TRAIT_PET_QUIRK_OBSESS_TOILET: 'CommonStatisticId' = 159264 TRAIT_PET_QUIRK_OBSESS_TV: 'CommonStatisticId' = 158819 TRAIT_PET_SKITTISH: 'CommonStatisticId' = 158808 TRAIT_PET_SMART: 'CommonStatisticId' = 158811 TRAIT_PET_STUBBORN: 'CommonStatisticId' = 158217 TRAIT_PET_VOCAL: 'CommonStatisticId' = 158809 TRAIT_PET_WANDERLUST: 'CommonStatisticId' = 158709 TRAIT_PLANT_SIM_EAT_TIMER: 'CommonStatisticId' = 162818 TRAIT_PLANT_SIM_TIMER: 'CommonStatisticId' = 164593 TRAIT_ROMANTIC_AFFECTION: 'CommonStatisticId' = 27519 TRAIT_SELF_ABSORBED_OUT_OF_SPOTLIGHT_TIMER: 'CommonStatisticId' = 199573 TRAIT_SNOB_NEAR_SNOBS: 'CommonStatisticId' = 74229 TRAIT_THE_KNACK_UPGRADE_TIMER: 'CommonStatisticId' = 99841 TRAIT_TODDLER_ANGELIC_RANDOMLY_GETS_HAPPY: 'CommonStatisticId' = 143246 TRAIT_TODDLER_AUTONOMY_ANGELIC: 'CommonStatisticId' = 143221 TRAIT_TODDLER_AUTONOMY_CHARMER: 'CommonStatisticId' = 143230 TRAIT_TODDLER_AUTONOMY_CLINGY: 'CommonStatisticId' = 143223 TRAIT_TODDLER_AUTONOMY_FUSSY: 'CommonStatisticId' = 143231 TRAIT_TODDLER_AUTONOMY_INDEPENDENT: 'CommonStatisticId' = 143232 TRAIT_TODDLER_AUTONOMY_INQUISITIVE: 'CommonStatisticId' = 143233 TRAIT_TODDLER_AUTONOMY_SILLY: 'CommonStatisticId' = 143234 TRAIT_TODDLER_AUTONOMY_WILD: 'CommonStatisticId' = 143235 TRAIT_TODDLER_CHARMER_NO_SOCIALIZATION_SADNESS: 'CommonStatisticId' = 143261 TRAIT_TODDLER_CLINGY_NO_PARENTS_SADNESS: 'CommonStatisticId' = 143345 TRAIT_TODDLER_INDEPENDENT_NO_PARENTS_HAPPINESS: 'CommonStatisticId' = 143344 TRAIT_TODDLER_INQUISITIVE_NO_THINKING_SADNESS: 'CommonStatisticId' = 143342 TRAIT_TODDLER_SILLY_RANDOMLY_GETS_PLAYFUL: 'CommonStatisticId' = 143288 TRAIT_TODDLER_WILD_RANDOMLY_GETS_ENERGY: 'CommonStatisticId' = 143294 TURNS: 'CommonStatisticId' = 16726 TV_CHANNEL_SURF_COOLDOWN: 'CommonStatisticId' = 130211 UMBRELLA_BREAK: 'CommonStatisticId' = 186447 VAMPIRE_SUN_EXPOSURE: 'CommonStatisticId' = 151449 VAULT_WALK_IN_SAFE_SIMOLEONS: 'CommonStatisticId' = 193396 VET_STRESS_FAILS_CUMULATIVE: 'CommonStatisticId' = 178675 VET_TREATMENT_DISCOVERY: 'CommonStatisticId' = 158913 VET_TREATMENT_PREVENT_STRESS: 'CommonStatisticId' = 177681 VET_TREATMENT_STRESS: 'CommonStatisticId' = 158956 VET_TREATMENT_STRESS_CUMULATIVE: 'CommonStatisticId' = 168206 VIDEO_GAME_CONSOLE_NUMBER_OF_PLAYERS: 'CommonStatisticId' = 152671 VIDEO_GAMING_SKILL_GAMED_OUT: 'CommonStatisticId' = 31760 VIDEO_GAMING_SKILL_GOOD_SESSION: 'CommonStatisticId' = 38981 WALK_DOG_WAIT_AROUND: 'CommonStatisticId' = 173999 WATCH_CAT: 'CommonStatisticId' = 166989 WATCH_DOG: 'CommonStatisticId' = 166994 WEDDING_PROGRESS: 'CommonStatisticId' = 16643 WOODWORK_FURNITURE: 'CommonStatisticId' = 16644 WOODWORK_FURNITURE_CURVED: 'CommonStatisticId' = 16645 WOODWORK_MUSIC: 'CommonStatisticId' = 16646 WOODWORK_SCULPTURE_LARGE: 'CommonStatisticId' = 16647 WOODWORK_SCULPTURE_SMALL: 'CommonStatisticId' = 16648 WOOHOO_ENERGY: 'CommonStatisticId' = 16649 WRITING_SKILL_LITERARY_DIGEST: 'CommonStatisticId' = 35340
[ "ColonolNutty@hotmail.com" ]
ColonolNutty@hotmail.com
3b6bed21bd23013e2a3ab77161d5b920d6fee46c
3996539eae965e8e3cf9bd194123989741825525
/RecoTracker/TkNavigation/TkMSParameterizationBuilder_cfi.py
2980dc5ddc47a0c08e5f2e00832f090adb32c008
[]
no_license
cms-sw/cmssw-cfipython
01990ea8fcb97a57f0b0cc44a8bf5cde59af2d98
25ee4c810103c4a507ca1b949109399a23a524c5
refs/heads/CMSSW_11_2_X
2023-09-01T16:56:00.658845
2022-06-20T22:49:19
2022-06-20T22:49:19
136,184,115
1
0
null
2022-10-19T14:04:01
2018-06-05T13:47:28
Python
UTF-8
Python
false
false
216
py
import FWCore.ParameterSet.Config as cms TkMSParameterizationBuilder = cms.ESProducer('TkMSParameterizationBuilder', navigationSchool = cms.string('SimpleNavigationSchool'), appendToDataLabel = cms.string('') )
[ "cmsbuild@cern.ch" ]
cmsbuild@cern.ch
07d964dbb38c794daa963615521bea03830a97a0
16ac9158781d2616141433df9be4820e6d998e03
/src/eavatar.ava/ava/util/webutils.py
b0baf7b20de88fd3fe101b3a0f0c4e6e06fbbd44
[]
no_license
pombredanne/ava-srv
0a357fb39d0179db0c0d545eb23d707d25b0e446
8acef33502d4bc3089f610f0b4ee33e7a5e779ae
refs/heads/master
2020-12-31T05:56:07.741625
2015-03-06T06:29:56
2015-03-06T06:29:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,203
py
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import import os import logging import hashlib try: from urllib2 import parse_http_list as _parse_list_header except ImportError: # pragma: no cover from urllib.request import parse_http_list as _parse_list_header from ava.util import resource_path static_folder = resource_path('static') logger = logging.getLogger(__name__) _ext_to_media_type = { '.jpg': 'image/jpeg', '.png': 'image/png', '.ico': 'image/vnd.microsoft.icon', '.svg': 'image/svg+xml', '.txt': 'text/plain', '.html': 'text/html; charset=utf-8', '.css': 'text/css', '.js': 'application/javascript', '.json': 'application/json', } _default_media_type = 'application/octet-stream' def calc_etag(content): md5 = hashlib.md5() md5.update(content) return md5.hexdigest() def guess_media_type(ext): t = _ext_to_media_type.get(ext) if t is None: return _default_media_type else: return t def unquote_header_value(value, is_filename=False): r"""Unquotes a header value. (Reversal of :func:`quote_header_value`). This does not use the real unquoting but what browsers are actually using for quoting. .. versionadded:: 0.5 :param value: the header value to unquote. """ if value and value[0] == value[-1] == '"': # this is not the real unquoting, but fixing this so that the # RFC is met will result in bugs with internet explorer and # probably some other browsers as well. IE for example is # uploading files with "C:\foo\bar.txt" as filename value = value[1:-1] # if this is a filename and the starting characters look like # a UNC path, then just return the value without quotes. Using the # replace sequence below on a UNC path has the effect of turning # the leading double slash into a single slash and then # _fix_ie_filename() doesn't work correctly. See #458. if not is_filename or value[:2] != '\\\\': return value.replace('\\\\', '\\').replace('\\"', '"') return value def parse_list_header(value): """Parse lists as described by RFC 2068 Section 2. In particular, parse comma-separated lists where the elements of the list may include quoted-strings. A quoted-string could contain a comma. A non-quoted string could have quotes in the middle. Quotes are removed automatically after parsing. It basically works like :func:`parse_set_header` just that items may appear multiple times and case sensitivity is preserved. The return value is a standard :class:`list`: >>> parse_list_header('token, "quoted value"') ['token', 'quoted value'] To create a header from the :class:`list` again, use the :func:`dump_header` function. :param value: a string with a list header. :return: :class:`list` """ result = [] for item in _parse_list_header(value): if item[:1] == item[-1:] == '"': item = unquote_header_value(item[1:-1]) result.append(item) return result def parse_dict_header(value): """Parse lists of key, value pairs as described by RFC 2068 Section 2 and convert them into a python dict (or any other mapping object created from the type with a dict like interface provided by the `cls` argugment): :param value: a string with a dict header. :param cls: callable to use for storage of parsed results. :return: an instance of `cls` """ result = dict() for item in _parse_list_header(value): if '=' not in item: result[item] = None continue name, value = item.split('=', 1) if value[:1] == value[-1:] == '"': value = unquote_header_value(value[1:-1]) result[name] = value return result def parse_authorization_header(auth): if not auth: return try: auth_scheme, auth_info = auth.split(None, 1) auth_scheme = auth_scheme.lower() except ValueError: return result = parse_dict_header(auth_info) result['scheme'] = auth_scheme return result
[ "sam@eavatar.com" ]
sam@eavatar.com
65b3098ea6085417d46fa55974ae9eab5e094413
6cea6b8cfeef78b433e296c38ef11f4637609f20
/src/collectors/apcupsd/test/testapcupsd.py
883b8aa1e106f0d158274e1657cc39ea389afd85
[ "MIT" ]
permissive
philipcristiano/Diamond
b659d577ec054c06ab99308d6c2ba3163de84e1a
577270ea820af597458aa5d3325367608cd37845
refs/heads/master
2021-01-18T10:04:59.057835
2012-08-02T04:08:02
2012-08-02T04:08:02
3,140,864
0
0
null
null
null
null
UTF-8
Python
false
false
2,450
py
#!/usr/bin/python ################################################################################ from test import * from diamond.collector import Collector from apcupsd import ApcupsdCollector ################################################################################ class TestApcupsdCollector(CollectorTestCase): def setUp(self): config = get_collector_config('ApcupsdCollector', { 'interval': 10 }) self.collector = ApcupsdCollector(config, None) @patch.object(Collector, 'publish') def test_should_work_with_synthetic_data(self, publish_mock): with patch.object(ApcupsdCollector, 'getData', Mock(return_value = 'APC : 001,039,1056\n\x00\'DATE : 2012-07-16 12:53:58 -0700 \n\x00 HOSTNAME : localhost\n\x00+VERSION : 3.14.8 (16 January 2010) redhat\n\x00 UPSNAME : localhost\n\x00\x15CABLE : USB Cable\n\x00\x1dMODEL : Back-UPS BX1300G \n\x00\x17UPSMODE : Stand Alone\n\x00\'STARTTIME: 2011-12-07 10:28:24 -0800 \n\x00\x13STATUS : ONLINE \n\x00\x17LINEV : 124.0 Volts\n\x00\'LOADPCT : 5.0 Percent Load Capacity\n\x00\x19BCHARGE : 100.0 Percent\n\x00\x19TIMELEFT : 73.9 Minutes\n\x00\x15MBATTCHG : 5 Percent\n\x00\x15MINTIMEL : 3 Minutes\n\x00\x15MAXTIME : 0 Seconds\n\x00\x12SENSE : Medium\n\x00\x17LOTRANS : 088.0 Volts\n\x00\x17HITRANS : 139.0 Volts\n\x00\x12ALARMDEL : Always\n\x00\x16BATTV : 27.3 Volts\n\x00+LASTXFER : Automatic or explicit self test\n\x00\x0eNUMXFERS : 19\n\x00\'XONBATT : 2012-07-13 09:11:52 -0700 \n\x00\x15TONBATT : 0 seconds\n\x00\x17CUMONBATT: 130 seconds\n\x00\'XOFFBATT : 2012-07-13 09:12:01 -0700 \n\x00\'LASTSTEST: 2012-07-13 09:11:52 -0700 \n\x00\x0eSELFTEST : NO\n\x00"STATFLAG : 0x07000008 Status Flag\n\x00\x16MANDATE : 2009-10-08\n\x00\x1aSERIALNO : 3B0941X40219 \n\x00\x16BATTDATE : 2009-10-08\n\x00\x15NOMINV : 120 Volts\n\x00\x17NOMBATTV : 24.0 ')): self.collector.collect() self.assertPublishedMany(publish_mock, { 'localhost.LINEV': 124.000000, 'localhost.LOADPCT': 5.000000, 'localhost.BCHARGE': 100.000000, 'localhost.TIMELEFT': 73.900000, 'localhost.BATTV': 27.300000, 'localhost.NUMXFERS': 0.000000, 'localhost.TONBATT': 0.000000, }) ################################################################################ if __name__ == "__main__": unittest.main()
[ "kormoc@gmail.com" ]
kormoc@gmail.com
1faf82a18833514a3a24d5d5fad4632118b38fe7
32623f1ce5aa39a35445992ad45c8d2a501a7f50
/preprocess.py
33b53fd02cd985d52d40da09d9c572cbf669034f
[ "MIT" ]
permissive
wx-b/BottleneckTransformers
2b7818b83cb9b0e06763f93968b7d9a629ff589e
d20ef0c64fa2208f543abe12a49b426ca6de480e
refs/heads/main
2023-03-22T09:13:46.595768
2021-03-14T20:41:19
2021-03-14T20:41:19
343,278,842
0
0
MIT
2021-03-14T20:41:19
2021-03-01T03:29:32
null
UTF-8
Python
false
false
1,027
py
from torch.utils.data import Dataset, DataLoader from torchvision.datasets import CIFAR10 import torchvision.transforms as transforms def load_data(args): train_transform = transforms.Compose([ transforms.RandomCrop(32, padding=4), transforms.RandomHorizontalFlip(), transforms.ToTensor(), transforms.Normalize((0.4914, 0.4822, 0.4465), (0.2023, 0.1994, 0.2010)), ]) train_dataset = CIFAR10('./data', train=True, transform=train_transform, download=True) train_loader = DataLoader(train_dataset, batch_size=args.batch_size, shuffle=True, num_workers=args.num_workers) test_transform = transforms.Compose([ transforms.ToTensor(), transforms.Normalize((0.4914, 0.4822, 0.4465), (0.2023, 0.1994, 0.2010)), ]) test_dataset = CIFAR10('./data', train=False, transform=test_transform, download=True) test_loader = DataLoader(test_dataset, batch_size=args.batch_size, shuffle=False, num_workers=args.num_workers) return train_loader, test_loader
[ "leaderj1001@gmail.com" ]
leaderj1001@gmail.com
90a19220b2719d297d031d80b73a65a211dfc946
1389c5d17fd25457a11bc368c20941709dac8497
/docs/conf.py
40b861a9255b1f466af7169ba06d3f7222e01d1b
[ "BSD-2-Clause" ]
permissive
pythonesque/bbcode
6c975f21795ff5a7e5f73563818ecea26634c3ed
5c1e68200c727cb27c8d1de18c031eb0de4ce556
refs/heads/master
2020-12-28T22:00:56.600070
2014-04-04T17:55:47
2014-04-04T17:55:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,726
py
# -*- coding: utf-8 -*- # # bbcode documentation build configuration file, created by # sphinx-quickstart on Fri May 18 16:41:40 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. import sys, os # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.abspath('..')) # -- General configuration ----------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. #needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = ['sphinx.ext.autodoc'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] # The suffix of source filenames. source_suffix = '.rst' # The encoding of source files. #source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = u'bbcode' copyright = u'2012, Dan Watson' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = '1.0' # The full version, including alpha/beta/rc tags. release = '1.0.6' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = ['_build'] # The reST default role (used for this markup: `text`) to use for all documents. #default_role = None # If true, '()' will be appended to :func: etc. cross-reference text. #add_function_parentheses = True # If true, the current module name will be prepended to all description # unit titles (such as .. function::). #add_module_names = True # If true, sectionauthor and moduleauthor directives will be shown in the # output. They are ignored by default. #show_authors = False # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' # A list of ignored prefixes for module index sorting. #modindex_common_prefix = [] # -- Options for HTML output --------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. html_theme = 'default' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. #html_theme_options = {} # Add any paths that contain custom themes here, relative to this directory. #html_theme_path = [] # The name for this set of Sphinx documents. If None, it defaults to # "<project> v<release> documentation". #html_title = None # A shorter title for the navigation bar. Default is the same as html_title. #html_short_title = None # The name of an image file (relative to this directory) to place at the top # of the sidebar. #html_logo = None # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. #html_favicon = None # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. #html_last_updated_fmt = '%b %d, %Y' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. #html_use_smartypants = True # Custom sidebar templates, maps document names to template names. #html_sidebars = {} # Additional templates that should be rendered to pages, maps page names to # template names. #html_additional_pages = {} # If false, no module index is generated. #html_domain_indices = True # If false, no index is generated. #html_use_index = True # If true, the index is split into individual pages for each letter. #html_split_index = False # If true, links to the reST sources are added to the pages. #html_show_sourcelink = True # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. #html_show_sphinx = True # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. #html_show_copyright = True # If true, an OpenSearch description file will be output, and all pages will # contain a <link> tag referring to it. The value of this option must be the # base URL from which the finished HTML is served. #html_use_opensearch = '' # This is the file name suffix for HTML files (e.g. ".xhtml"). #html_file_suffix = None # Output file base name for HTML help builder. htmlhelp_basename = 'bbcodedoc' # -- Options for LaTeX output -------------------------------------------------- latex_elements = { # The paper size ('letterpaper' or 'a4paper'). #'papersize': 'letterpaper', # The font size ('10pt', '11pt' or '12pt'). #'pointsize': '10pt', # Additional stuff for the LaTeX preamble. #'preamble': '', } # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ ('index', 'bbcode.tex', u'bbcode Documentation', u'Dan Watson', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of # the title page. #latex_logo = None # For "manual" documents, if this is true, then toplevel headings are parts, # not chapters. #latex_use_parts = False # If true, show page references after internal links. #latex_show_pagerefs = False # If true, show URL addresses after external links. #latex_show_urls = False # Documents to append as an appendix to all manuals. #latex_appendices = [] # If false, no module index is generated. #latex_domain_indices = True # -- Options for manual page output -------------------------------------------- # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ ('index', 'bbcode', u'bbcode Documentation', [u'Dan Watson'], 1) ] # If true, show URL addresses after external links. #man_show_urls = False # -- Options for Texinfo output ------------------------------------------------ # Grouping the document tree into Texinfo files. List of tuples # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ ('index', 'bbcode', u'bbcode Documentation', u'Dan Watson', 'bbcode', 'One line description of project.', 'Miscellaneous'), ] # Documents to append as an appendix to all manuals. #texinfo_appendices = [] # If false, no module index is generated. #texinfo_domain_indices = True # How to display URL addresses: 'footnote', 'no', or 'inline'. #texinfo_show_urls = 'footnote'
[ "dcwatson@gmail.com" ]
dcwatson@gmail.com
3145fbb3c4b0c50a21621cdc94af08e785ec68a6
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/azurestackhci/extension.py
ccced4469b55f26644dbbc6226c4b4cdf6bf85b0
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
27,131
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs from ._enums import * __all__ = ['ExtensionArgs', 'Extension'] @pulumi.input_type class ExtensionArgs: def __init__(__self__, *, arc_setting_name: pulumi.Input[str], cluster_name: pulumi.Input[str], resource_group_name: pulumi.Input[str], auto_upgrade_minor_version: Optional[pulumi.Input[bool]] = None, created_at: Optional[pulumi.Input[str]] = None, created_by: Optional[pulumi.Input[str]] = None, created_by_type: Optional[pulumi.Input[Union[str, 'CreatedByType']]] = None, extension_name: Optional[pulumi.Input[str]] = None, force_update_tag: Optional[pulumi.Input[str]] = None, last_modified_at: Optional[pulumi.Input[str]] = None, last_modified_by: Optional[pulumi.Input[str]] = None, last_modified_by_type: Optional[pulumi.Input[Union[str, 'CreatedByType']]] = None, protected_settings: Optional[Any] = None, publisher: Optional[pulumi.Input[str]] = None, settings: Optional[Any] = None, type: Optional[pulumi.Input[str]] = None, type_handler_version: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a Extension resource. :param pulumi.Input[str] arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting information. :param pulumi.Input[str] cluster_name: The name of the cluster. :param pulumi.Input[str] resource_group_name: The name of the resource group. The name is case insensitive. :param pulumi.Input[bool] auto_upgrade_minor_version: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. :param pulumi.Input[str] created_at: The timestamp of resource creation (UTC). :param pulumi.Input[str] created_by: The identity that created the resource. :param pulumi.Input[Union[str, 'CreatedByType']] created_by_type: The type of identity that created the resource. :param pulumi.Input[str] extension_name: The name of the machine extension. :param pulumi.Input[str] force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. :param pulumi.Input[str] last_modified_at: The timestamp of resource last modification (UTC) :param pulumi.Input[str] last_modified_by: The identity that last modified the resource. :param pulumi.Input[Union[str, 'CreatedByType']] last_modified_by_type: The type of identity that last modified the resource. :param Any protected_settings: Protected settings (may contain secrets). :param pulumi.Input[str] publisher: The name of the extension handler publisher. :param Any settings: Json formatted public settings for the extension. :param pulumi.Input[str] type: Specifies the type of the extension; an example is "CustomScriptExtension". :param pulumi.Input[str] type_handler_version: Specifies the version of the script handler. """ pulumi.set(__self__, "arc_setting_name", arc_setting_name) pulumi.set(__self__, "cluster_name", cluster_name) pulumi.set(__self__, "resource_group_name", resource_group_name) if auto_upgrade_minor_version is not None: pulumi.set(__self__, "auto_upgrade_minor_version", auto_upgrade_minor_version) if created_at is not None: pulumi.set(__self__, "created_at", created_at) if created_by is not None: pulumi.set(__self__, "created_by", created_by) if created_by_type is not None: pulumi.set(__self__, "created_by_type", created_by_type) if extension_name is not None: pulumi.set(__self__, "extension_name", extension_name) if force_update_tag is not None: pulumi.set(__self__, "force_update_tag", force_update_tag) if last_modified_at is not None: pulumi.set(__self__, "last_modified_at", last_modified_at) if last_modified_by is not None: pulumi.set(__self__, "last_modified_by", last_modified_by) if last_modified_by_type is not None: pulumi.set(__self__, "last_modified_by_type", last_modified_by_type) if protected_settings is not None: pulumi.set(__self__, "protected_settings", protected_settings) if publisher is not None: pulumi.set(__self__, "publisher", publisher) if settings is not None: pulumi.set(__self__, "settings", settings) if type is not None: pulumi.set(__self__, "type", type) if type_handler_version is not None: pulumi.set(__self__, "type_handler_version", type_handler_version) @property @pulumi.getter(name="arcSettingName") def arc_setting_name(self) -> pulumi.Input[str]: """ The name of the proxy resource holding details of HCI ArcSetting information. """ return pulumi.get(self, "arc_setting_name") @arc_setting_name.setter def arc_setting_name(self, value: pulumi.Input[str]): pulumi.set(self, "arc_setting_name", value) @property @pulumi.getter(name="clusterName") def cluster_name(self) -> pulumi.Input[str]: """ The name of the cluster. """ return pulumi.get(self, "cluster_name") @cluster_name.setter def cluster_name(self, value: pulumi.Input[str]): pulumi.set(self, "cluster_name", value) @property @pulumi.getter(name="resourceGroupName") def resource_group_name(self) -> pulumi.Input[str]: """ The name of the resource group. The name is case insensitive. """ return pulumi.get(self, "resource_group_name") @resource_group_name.setter def resource_group_name(self, value: pulumi.Input[str]): pulumi.set(self, "resource_group_name", value) @property @pulumi.getter(name="autoUpgradeMinorVersion") def auto_upgrade_minor_version(self) -> Optional[pulumi.Input[bool]]: """ Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. """ return pulumi.get(self, "auto_upgrade_minor_version") @auto_upgrade_minor_version.setter def auto_upgrade_minor_version(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "auto_upgrade_minor_version", value) @property @pulumi.getter(name="createdAt") def created_at(self) -> Optional[pulumi.Input[str]]: """ The timestamp of resource creation (UTC). """ return pulumi.get(self, "created_at") @created_at.setter def created_at(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "created_at", value) @property @pulumi.getter(name="createdBy") def created_by(self) -> Optional[pulumi.Input[str]]: """ The identity that created the resource. """ return pulumi.get(self, "created_by") @created_by.setter def created_by(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "created_by", value) @property @pulumi.getter(name="createdByType") def created_by_type(self) -> Optional[pulumi.Input[Union[str, 'CreatedByType']]]: """ The type of identity that created the resource. """ return pulumi.get(self, "created_by_type") @created_by_type.setter def created_by_type(self, value: Optional[pulumi.Input[Union[str, 'CreatedByType']]]): pulumi.set(self, "created_by_type", value) @property @pulumi.getter(name="extensionName") def extension_name(self) -> Optional[pulumi.Input[str]]: """ The name of the machine extension. """ return pulumi.get(self, "extension_name") @extension_name.setter def extension_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "extension_name", value) @property @pulumi.getter(name="forceUpdateTag") def force_update_tag(self) -> Optional[pulumi.Input[str]]: """ How the extension handler should be forced to update even if the extension configuration has not changed. """ return pulumi.get(self, "force_update_tag") @force_update_tag.setter def force_update_tag(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "force_update_tag", value) @property @pulumi.getter(name="lastModifiedAt") def last_modified_at(self) -> Optional[pulumi.Input[str]]: """ The timestamp of resource last modification (UTC) """ return pulumi.get(self, "last_modified_at") @last_modified_at.setter def last_modified_at(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "last_modified_at", value) @property @pulumi.getter(name="lastModifiedBy") def last_modified_by(self) -> Optional[pulumi.Input[str]]: """ The identity that last modified the resource. """ return pulumi.get(self, "last_modified_by") @last_modified_by.setter def last_modified_by(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "last_modified_by", value) @property @pulumi.getter(name="lastModifiedByType") def last_modified_by_type(self) -> Optional[pulumi.Input[Union[str, 'CreatedByType']]]: """ The type of identity that last modified the resource. """ return pulumi.get(self, "last_modified_by_type") @last_modified_by_type.setter def last_modified_by_type(self, value: Optional[pulumi.Input[Union[str, 'CreatedByType']]]): pulumi.set(self, "last_modified_by_type", value) @property @pulumi.getter(name="protectedSettings") def protected_settings(self) -> Optional[Any]: """ Protected settings (may contain secrets). """ return pulumi.get(self, "protected_settings") @protected_settings.setter def protected_settings(self, value: Optional[Any]): pulumi.set(self, "protected_settings", value) @property @pulumi.getter def publisher(self) -> Optional[pulumi.Input[str]]: """ The name of the extension handler publisher. """ return pulumi.get(self, "publisher") @publisher.setter def publisher(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "publisher", value) @property @pulumi.getter def settings(self) -> Optional[Any]: """ Json formatted public settings for the extension. """ return pulumi.get(self, "settings") @settings.setter def settings(self, value: Optional[Any]): pulumi.set(self, "settings", value) @property @pulumi.getter def type(self) -> Optional[pulumi.Input[str]]: """ Specifies the type of the extension; an example is "CustomScriptExtension". """ return pulumi.get(self, "type") @type.setter def type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "type", value) @property @pulumi.getter(name="typeHandlerVersion") def type_handler_version(self) -> Optional[pulumi.Input[str]]: """ Specifies the version of the script handler. """ return pulumi.get(self, "type_handler_version") @type_handler_version.setter def type_handler_version(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "type_handler_version", value) class Extension(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, arc_setting_name: Optional[pulumi.Input[str]] = None, auto_upgrade_minor_version: Optional[pulumi.Input[bool]] = None, cluster_name: Optional[pulumi.Input[str]] = None, created_at: Optional[pulumi.Input[str]] = None, created_by: Optional[pulumi.Input[str]] = None, created_by_type: Optional[pulumi.Input[Union[str, 'CreatedByType']]] = None, extension_name: Optional[pulumi.Input[str]] = None, force_update_tag: Optional[pulumi.Input[str]] = None, last_modified_at: Optional[pulumi.Input[str]] = None, last_modified_by: Optional[pulumi.Input[str]] = None, last_modified_by_type: Optional[pulumi.Input[Union[str, 'CreatedByType']]] = None, protected_settings: Optional[Any] = None, publisher: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, settings: Optional[Any] = None, type: Optional[pulumi.Input[str]] = None, type_handler_version: Optional[pulumi.Input[str]] = None, __props__=None): """ Details of a particular extension in HCI Cluster. API Version: 2021-01-01-preview. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting information. :param pulumi.Input[bool] auto_upgrade_minor_version: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. :param pulumi.Input[str] cluster_name: The name of the cluster. :param pulumi.Input[str] created_at: The timestamp of resource creation (UTC). :param pulumi.Input[str] created_by: The identity that created the resource. :param pulumi.Input[Union[str, 'CreatedByType']] created_by_type: The type of identity that created the resource. :param pulumi.Input[str] extension_name: The name of the machine extension. :param pulumi.Input[str] force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. :param pulumi.Input[str] last_modified_at: The timestamp of resource last modification (UTC) :param pulumi.Input[str] last_modified_by: The identity that last modified the resource. :param pulumi.Input[Union[str, 'CreatedByType']] last_modified_by_type: The type of identity that last modified the resource. :param Any protected_settings: Protected settings (may contain secrets). :param pulumi.Input[str] publisher: The name of the extension handler publisher. :param pulumi.Input[str] resource_group_name: The name of the resource group. The name is case insensitive. :param Any settings: Json formatted public settings for the extension. :param pulumi.Input[str] type: Specifies the type of the extension; an example is "CustomScriptExtension". :param pulumi.Input[str] type_handler_version: Specifies the version of the script handler. """ ... @overload def __init__(__self__, resource_name: str, args: ExtensionArgs, opts: Optional[pulumi.ResourceOptions] = None): """ Details of a particular extension in HCI Cluster. API Version: 2021-01-01-preview. :param str resource_name: The name of the resource. :param ExtensionArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. """ ... def __init__(__self__, resource_name: str, *args, **kwargs): resource_args, opts = _utilities.get_resource_args_opts(ExtensionArgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, arc_setting_name: Optional[pulumi.Input[str]] = None, auto_upgrade_minor_version: Optional[pulumi.Input[bool]] = None, cluster_name: Optional[pulumi.Input[str]] = None, created_at: Optional[pulumi.Input[str]] = None, created_by: Optional[pulumi.Input[str]] = None, created_by_type: Optional[pulumi.Input[Union[str, 'CreatedByType']]] = None, extension_name: Optional[pulumi.Input[str]] = None, force_update_tag: Optional[pulumi.Input[str]] = None, last_modified_at: Optional[pulumi.Input[str]] = None, last_modified_by: Optional[pulumi.Input[str]] = None, last_modified_by_type: Optional[pulumi.Input[Union[str, 'CreatedByType']]] = None, protected_settings: Optional[Any] = None, publisher: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, settings: Optional[Any] = None, type: Optional[pulumi.Input[str]] = None, type_handler_version: Optional[pulumi.Input[str]] = None, __props__=None): if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = ExtensionArgs.__new__(ExtensionArgs) if arc_setting_name is None and not opts.urn: raise TypeError("Missing required property 'arc_setting_name'") __props__.__dict__["arc_setting_name"] = arc_setting_name __props__.__dict__["auto_upgrade_minor_version"] = auto_upgrade_minor_version if cluster_name is None and not opts.urn: raise TypeError("Missing required property 'cluster_name'") __props__.__dict__["cluster_name"] = cluster_name __props__.__dict__["created_at"] = created_at __props__.__dict__["created_by"] = created_by __props__.__dict__["created_by_type"] = created_by_type __props__.__dict__["extension_name"] = extension_name __props__.__dict__["force_update_tag"] = force_update_tag __props__.__dict__["last_modified_at"] = last_modified_at __props__.__dict__["last_modified_by"] = last_modified_by __props__.__dict__["last_modified_by_type"] = last_modified_by_type __props__.__dict__["protected_settings"] = protected_settings __props__.__dict__["publisher"] = publisher if resource_group_name is None and not opts.urn: raise TypeError("Missing required property 'resource_group_name'") __props__.__dict__["resource_group_name"] = resource_group_name __props__.__dict__["settings"] = settings __props__.__dict__["type"] = type __props__.__dict__["type_handler_version"] = type_handler_version __props__.__dict__["aggregate_state"] = None __props__.__dict__["name"] = None __props__.__dict__["per_node_extension_details"] = None __props__.__dict__["provisioning_state"] = None alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:azurestackhci/v20210101preview:Extension"), pulumi.Alias(type_="azure-native:azurestackhci/v20210901:Extension")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(Extension, __self__).__init__( 'azure-native:azurestackhci:Extension', resource_name, __props__, opts) @staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None) -> 'Extension': """ Get an existing Extension resource's state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = ExtensionArgs.__new__(ExtensionArgs) __props__.__dict__["aggregate_state"] = None __props__.__dict__["auto_upgrade_minor_version"] = None __props__.__dict__["created_at"] = None __props__.__dict__["created_by"] = None __props__.__dict__["created_by_type"] = None __props__.__dict__["force_update_tag"] = None __props__.__dict__["last_modified_at"] = None __props__.__dict__["last_modified_by"] = None __props__.__dict__["last_modified_by_type"] = None __props__.__dict__["name"] = None __props__.__dict__["per_node_extension_details"] = None __props__.__dict__["protected_settings"] = None __props__.__dict__["provisioning_state"] = None __props__.__dict__["publisher"] = None __props__.__dict__["settings"] = None __props__.__dict__["type"] = None __props__.__dict__["type_handler_version"] = None return Extension(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter(name="aggregateState") def aggregate_state(self) -> pulumi.Output[str]: """ Aggregate state of Arc Extensions across the nodes in this HCI cluster. """ return pulumi.get(self, "aggregate_state") @property @pulumi.getter(name="autoUpgradeMinorVersion") def auto_upgrade_minor_version(self) -> pulumi.Output[Optional[bool]]: """ Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. """ return pulumi.get(self, "auto_upgrade_minor_version") @property @pulumi.getter(name="createdAt") def created_at(self) -> pulumi.Output[Optional[str]]: """ The timestamp of resource creation (UTC). """ return pulumi.get(self, "created_at") @property @pulumi.getter(name="createdBy") def created_by(self) -> pulumi.Output[Optional[str]]: """ The identity that created the resource. """ return pulumi.get(self, "created_by") @property @pulumi.getter(name="createdByType") def created_by_type(self) -> pulumi.Output[Optional[str]]: """ The type of identity that created the resource. """ return pulumi.get(self, "created_by_type") @property @pulumi.getter(name="forceUpdateTag") def force_update_tag(self) -> pulumi.Output[Optional[str]]: """ How the extension handler should be forced to update even if the extension configuration has not changed. """ return pulumi.get(self, "force_update_tag") @property @pulumi.getter(name="lastModifiedAt") def last_modified_at(self) -> pulumi.Output[Optional[str]]: """ The timestamp of resource last modification (UTC) """ return pulumi.get(self, "last_modified_at") @property @pulumi.getter(name="lastModifiedBy") def last_modified_by(self) -> pulumi.Output[Optional[str]]: """ The identity that last modified the resource. """ return pulumi.get(self, "last_modified_by") @property @pulumi.getter(name="lastModifiedByType") def last_modified_by_type(self) -> pulumi.Output[Optional[str]]: """ The type of identity that last modified the resource. """ return pulumi.get(self, "last_modified_by_type") @property @pulumi.getter def name(self) -> pulumi.Output[str]: """ The name of the resource """ return pulumi.get(self, "name") @property @pulumi.getter(name="perNodeExtensionDetails") def per_node_extension_details(self) -> pulumi.Output[Sequence['outputs.PerNodeExtensionStateResponse']]: """ State of Arc Extension in each of the nodes. """ return pulumi.get(self, "per_node_extension_details") @property @pulumi.getter(name="protectedSettings") def protected_settings(self) -> pulumi.Output[Optional[Any]]: """ Protected settings (may contain secrets). """ return pulumi.get(self, "protected_settings") @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> pulumi.Output[str]: """ Provisioning state of the Extension proxy resource. """ return pulumi.get(self, "provisioning_state") @property @pulumi.getter def publisher(self) -> pulumi.Output[Optional[str]]: """ The name of the extension handler publisher. """ return pulumi.get(self, "publisher") @property @pulumi.getter def settings(self) -> pulumi.Output[Optional[Any]]: """ Json formatted public settings for the extension. """ return pulumi.get(self, "settings") @property @pulumi.getter def type(self) -> pulumi.Output[str]: """ The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" """ return pulumi.get(self, "type") @property @pulumi.getter(name="typeHandlerVersion") def type_handler_version(self) -> pulumi.Output[Optional[str]]: """ Specifies the version of the script handler. """ return pulumi.get(self, "type_handler_version")
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
abb13111e39cab4082e01f4e4d1303ec7b40253b
3507a2d646ab0f729c717d5239633d70508d32b1
/dh_abstracts/app/abstracts/migrations/0052_auto_20200501_0918.py
60491238fd80ef6486b72d44a883ed74f0509568
[ "MIT" ]
permissive
cmu-lib/dhweb_app
26c22055afc7685153dd588e1ebabceb9cb782f7
8779fb1d6d52a8fb26a955b06b8589d5708589f6
refs/heads/master
2023-04-29T13:28:51.233931
2022-09-02T00:28:54
2022-09-02T00:28:54
146,502,577
4
0
MIT
2023-04-21T21:45:46
2018-08-28T20:23:16
Python
UTF-8
Python
false
false
1,244
py
# Generated by Django 3.0.5 on 2020-05-01 13:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('abstracts', '0051_auto_20200430_1659'), ] operations = [ migrations.AlterField( model_name='conference', name='attendance', field=models.TextField(blank=True, default='', help_text='Summary information about conference attendance, with source links', max_length=20000), ), migrations.AlterField( model_name='conference', name='contributors', field=models.TextField(blank=True, default='', help_text='Individuals or organizations who contributed data about this conference', max_length=20000), ), migrations.AlterField( model_name='conference', name='notes', field=models.TextField(blank=True, default='', help_text='Further descriptive information', max_length=200000), ), migrations.AlterField( model_name='conference', name='references', field=models.TextField(blank=True, default='', help_text='Citations to conference proceedings', max_length=20000), ), ]
[ "matthew.d.lincoln@gmail.com" ]
matthew.d.lincoln@gmail.com
e62265732cd122cd0e26ddbe58b913f07c12cd15
4250618abef0d0dcf399f8a2a23e2049c3458ea8
/website/wiki/plugins/attachments/tests/test_commands.py
4c587175b7d92e5e8afe5dbe64aeacbdd9311d9a
[ "MIT" ]
permissive
skbly7/serc
121fd7e88df25213de4d53fce4bd03c2ea448d68
4442298ee05c24c3c6bacffdc56a9f6076397cce
refs/heads/master
2020-12-27T03:18:45.280464
2019-05-16T06:10:31
2019-05-16T19:13:12
53,425,352
0
2
MIT
2019-05-16T19:13:14
2016-03-08T16:00:03
Python
UTF-8
Python
false
false
830
py
from __future__ import unicode_literals from __future__ import absolute_import import os import tempfile from wiki.tests.test_commands import TestManagementCommands from .. import models class TestAttachmentManagementCommands(TestManagementCommands): """ Add some more data """ def setUp(self): TestManagementCommands.setUp(self) self.test_file = tempfile.NamedTemporaryFile('w', delete=False, suffix=".txt") self.test_file.write("test") self.attachment1 = models.Attachment.objects.create( article=self.child1.article ) self.attachment1_revision1 = models.AttachmentRevision.objects.create( attachment=self.attachment1, file=self.test_file.name, ) def tearDown(self): os.unlink(self.test_file.name)
[ "skbly7@gmail.com" ]
skbly7@gmail.com
4758ae6cfaaa570ea9da000c7e5425db75ff1082
3883a083eb9c5dd5158b78e6c58521e99a76a4b9
/tests/__init__.py
1a6e448bd6990e0eb68aa9de46d6a723e0eec56a
[ "MIT" ]
permissive
jeyong/yakut
1a4f8b68eb1230b6f31a296d0adcab8ff4e7fa02
58fa441316fd458a88210c10933c2035db4151f7
refs/heads/main
2023-06-20T17:16:14.125961
2021-07-24T18:37:32
2021-07-24T18:37:32
392,887,348
0
0
MIT
2021-08-05T03:09:51
2021-08-05T03:09:51
null
UTF-8
Python
false
false
388
py
# Copyright (c) 2020 UAVCAN Consortium # This software is distributed under the terms of the MIT License. # Author: Pavel Kirienko <pavel@uavcan.org> import pathlib # Please maintain these carefully if you're changing the project's directory structure. TEST_DIR = pathlib.Path(__file__).resolve().parent ROOT_DIR = TEST_DIR.parent DEPS_DIR = TEST_DIR / "deps" assert DEPS_DIR.is_dir()
[ "pavel.kirienko@gmail.com" ]
pavel.kirienko@gmail.com
ed11b6462e09bf8b151ec3fec9ccf86c077672b6
a8dad8f2cedc5285d4e873f5ddfe4d865fb0bc84
/suffixArrays/differentImplementations.py
f30c7c1956462a02e5f3b184c1cc4aee790b7804
[]
no_license
chrisjdavie/Strings
78cea1afe5a097e67d4a9dfc96a8292b60880b64
58088c70ccd7ba6b12c38debe5d49bcefb6b012c
refs/heads/master
2016-08-11T16:56:37.675848
2016-01-26T20:16:42
2016-01-26T20:16:42
50,377,099
1
0
null
null
null
null
UTF-8
Python
false
false
523
py
''' Created on 24 Jan 2016 @author: chris ''' def main(): txt = 'banana' naiveSuffixArray = buildSuffixArray(txt) print "Naive suffix array construction, O(N**2logN)" for i in naiveSuffixArray: print i # Naive version def buildSuffixArray(txt): def substring(i): return txt[i:] indexArray = range(len(txt)) suffixArray = sorted(indexArray,key=substring) return suffixArray if __name__ == '__main__': main()
[ "chris.d@theasi.co" ]
chris.d@theasi.co
4f5bcc2b79acc49ca85c08c8f00327f382be31e5
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/3Ekam9jvbNKHDtx4K_22.py
0fffa75667ed4226e23a6893a14817bcaba98186
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
567
py
""" Write a function that takes coordinates of two points on a two-dimensional plane and returns the length of the line segment connecting those two points. ### Examples line_length([15, 7], [22, 11]) ➞ 8.06 line_length([0, 0], [0, 0]) ➞ 0 line_length([0, 0], [1, 1]) ➞ 1.41 ### Notes * The order of the given numbers is X, Y. * This challenge is easier than it looks. * Round your result to two decimal places. """ def line_length(dot1, dot2): return round(sum([(dot1[i]-dot2[i])**2 for i in range(len(dot1))])**0.5,2)
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
8ae42f7932bc4e5b7eab61d43d4d648eb1e7c1c4
4dad1db5f629ddbaa7aa2ebfe84e12ac6ae8ebad
/src/game/logic/mark_drawer.py
9e9649cd9ff43f4247f35c23bfbaa05f30bc8e4e
[]
no_license
stellarlib/centaurus_old
70ea8d6d70a490f932fd3c912c2ef76be684afb4
92d4f51ebeee56f8b4113c59412356870a11d3a5
refs/heads/master
2022-03-18T18:33:38.180192
2019-10-27T13:43:09
2019-10-27T13:43:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,548
py
from stellarlib.hex_tool import hex_to_pixel, Hex from src.icon import IconSprite from src.color import Color class MarkDrawer(object): FLASH_RATE = 6 A = 0 B = 1 def __init__(self, logic): self.logic = logic self._marks = [] self.tick = 0 self.state = MarkDrawer.A self.icons = self.init_icons() def init_icons(self): icons = { MarkDrawer.A: IconSprite('target'), MarkDrawer.B: IconSprite('target') } icons[MarkDrawer.B].replace_color(Color.RED, Color.WHITE) return icons def init(self): self.logic.game.overlay.add_component(self) @property def mark_map(self): return self.logic.ai_control.unit_control.mark_map def update(self): self.tick += 1 if self.tick == MarkDrawer.FLASH_RATE: self.tick = 0 self.flash() def flash(self): if self.state == MarkDrawer.A: self.state = MarkDrawer.B else: self.state = MarkDrawer.A def update_marks(self): del self._marks[:] self._marks.extend(self.mark_map._map) def draw(self, display_surface, rel_pos): for pos in self._marks: self.draw_mark(display_surface.surface, rel_pos, pos) def draw_mark(self, surface, (rx, ry), pos): px, py = hex_to_pixel(self.logic.game.hex_layout, Hex(*pos)) x = rx + px y = ry + py icon = self.icons[self.state] icon.draw(surface, (x, y))
[ "marzecsean@gmail.com" ]
marzecsean@gmail.com
7738dd876d2768e08b785880012ea33983ed231f
f09dc121f213f2881df3572288b7ee5b39246d73
/aliyun-python-sdk-dbs/aliyunsdkdbs/request/v20190306/GetDBListFromAgentRequest.py
084cac476f9472a912185cbf76e4a94e6cd9d365
[ "Apache-2.0" ]
permissive
hetw/aliyun-openapi-python-sdk
2f31378ad6be0896fb8090423f607e9c7d3ae774
7443eacee9fbbaa93c7975c6dbec92d3c364c577
refs/heads/master
2023-01-19T22:42:36.214770
2020-12-04T10:55:14
2020-12-04T10:55:14
318,689,093
1
0
NOASSERTION
2020-12-05T03:03:03
2020-12-05T03:03:03
null
UTF-8
Python
false
false
2,188
py
# 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. from aliyunsdkcore.request import RpcRequest from aliyunsdkdbs.endpoint import endpoint_data class GetDBListFromAgentRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'Dbs', '2019-03-06', 'GetDBListFromAgent','cbs') self.set_method('POST') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) def get_SourceEndpointRegion(self): return self.get_query_params().get('SourceEndpointRegion') def set_SourceEndpointRegion(self,SourceEndpointRegion): self.add_query_param('SourceEndpointRegion',SourceEndpointRegion) def get_BackupGatewayId(self): return self.get_query_params().get('BackupGatewayId') def set_BackupGatewayId(self,BackupGatewayId): self.add_query_param('BackupGatewayId',BackupGatewayId) def get_ClientToken(self): return self.get_query_params().get('ClientToken') def set_ClientToken(self,ClientToken): self.add_query_param('ClientToken',ClientToken) def get_OwnerId(self): return self.get_query_params().get('OwnerId') def set_OwnerId(self,OwnerId): self.add_query_param('OwnerId',OwnerId) def get_TaskId(self): return self.get_query_params().get('TaskId') def set_TaskId(self,TaskId): self.add_query_param('TaskId',TaskId)
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
c23fc06fb1457f946585a4c3fff377ef92ceecd6
e8bf00dba3e81081adb37f53a0192bb0ea2ca309
/domains/nav/problems/training/problem1030_SD.py
b0f61017c706d830ef340d72709fcdf39d1b3bb2
[ "BSD-3-Clause" ]
permissive
patras91/rae_release
1e6585ee34fe7dbb117b084df982ca8a8aed6795
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
refs/heads/master
2023-07-13T20:09:41.762982
2021-08-11T17:02:58
2021-08-11T17:02:58
394,797,515
2
1
null
null
null
null
UTF-8
Python
false
false
1,152
py
__author__ = 'patras' from domain_springDoor import * from timer import DURATION from state import state, rv DURATION.TIME = { 'unlatch1': 5, 'unlatch2': 5, 'holdDoor': 2, 'passDoor': 3, 'releaseDoor': 2, 'closeDoors': 3, 'move': 7, 'take': 2, 'put': 2, } DURATION.COUNTER = { 'unlatch1': 5, 'unlatch2': 5, 'holdDoor': 2, 'passDoor': 3, 'releaseDoor': 2, 'closeDoors': 3, 'move': 7, 'take': 2, 'put': 2, } rv.LOCATIONS = [1, 2, 3, 4] rv.EDGES = {1: [2], 2: [1, 3], 3: [2, 4], 4: [3]} rv.DOORS = ['d1', 'd2'] rv.DOORLOCATIONS = {(3, 4): 'd1', (1, 2): 'd2'} rv.DOORTYPES = {'d1': 'ordinary', 'd2': 'spring'} rv.ROBOTS = ['r1', 'r2', 'r3', 'r4'] def ResetState(): state.load = {'r1': NIL, 'r2': NIL, 'r3': NIL, 'r4': NIL} state.status = {'r1': 'free', 'r2': 'free', 'r3': 'free', 'r4': 'free'} state.loc = {'r1': 1, 'r2': 3, 'r3': 2, 'r4': 1} state.pos = {'o1': 2} state.doorStatus = {'d1': 'closed', 'd2': 'closed', } state.doorType = {'d1': UNK, 'd2': UNK, } tasks = { 6: [['fetch', 'r1', 'o1', 2]], 7: [['collision', 'r1']], } eventsEnv = { }
[ "patras@umd.edu" ]
patras@umd.edu
a992c10446423b11c798c56632e5210390ac738d
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Tensorflow/source/numpy/linalg/__init__.py
69445f541db75347d5ec311d5ef8e63665302920
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
2,343
py
""" Core Linear Algebra Tools ========================= =============== ========================================================== Linear algebra basics ========================================================================== norm Vector or matrix norm inv Inverse of a square matrix solve Solve a linear system of equations det Determinant of a square matrix slogdet Logarithm of the determinant of a square matrix lstsq Solve linear least-squares problem pinv Pseudo-inverse (Moore-Penrose) calculated using a singular value decomposition matrix_power Integer power of a square matrix matrix_rank Calculate matrix rank using an SVD-based method =============== ========================================================== =============== ========================================================== Eigenvalues and decompositions ========================================================================== eig Eigenvalues and vectors of a square matrix eigh Eigenvalues and eigenvectors of a Hermitian matrix eigvals Eigenvalues of a square matrix eigvalsh Eigenvalues of a Hermitian matrix qr QR decomposition of a matrix svd Singular value decomposition of a matrix cholesky Cholesky decomposition of a matrix =============== ========================================================== =============== ========================================================== Tensor operations ========================================================================== tensorsolve Solve a linear tensor equation tensorinv Calculate an inverse of a tensor =============== ========================================================== =============== ========================================================== Exceptions ========================================================================== LinAlgError Indicates a failed linear algebra operation =============== ========================================================== """ from __future__ import division, absolute_import, print_function # To get sub-modules from .info import __doc__ from .linalg import * from numpy.testing.nosetester import _numpy_tester test = _numpy_tester().test bench = _numpy_tester().bench
[ "master@MacBook-Pro-admin.local" ]
master@MacBook-Pro-admin.local
4df6e4068dd99c143bbb395b712e899f3a153fb8
bb41814dc79f56a082a777e17ed31320db43edf4
/math/0x02-calculus/17-integrate.py
7595123026899449072db63392aba86a9688640a
[]
no_license
garimasinghgryffindor/holbertonschool-machine_learning
a92c619b6ad2d110ed97b33fa9903f5134c96866
856ee36006c2ff656877d592c2ddb7c941d63780
refs/heads/master
2023-08-01T09:58:13.863062
2020-11-28T00:50:55
2020-11-28T00:50:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
842
py
#!/usr/bin/env python3 """ A function that calculates the integral of a polynomial """ def poly_integral(poly, C=0): """ Returns a list of the integral >>> poly = [5, 3, 0, 1] >>> print(poly_integral(poly)) [0, 5, 1.5, 0, 0.25] """ if type(poly) is not list or len(poly) == 0: return None elif type(C) is int: if poly == [0]: return [C] exponent = 0 integral = poly.copy() for i in range(len(integral)): if type(integral[i]) is int or type(integral[i]) is float: exponent += 1 number = integral[i] / exponent integral[i] = int(number) if number % 1 == 0 else number else: return None integral.insert(0, C) return integral else: return None
[ "kenneth.ca95@gmail.com" ]
kenneth.ca95@gmail.com
bb331262c72c30097426d7e5893c315247f54530
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_6/dkcgeo002/question1.py
3bd13139130a25eac4125612bc0ecbdb925e0152
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
434
py
__author__ = 'George de Kock' """ Printing Strings 2014-4-20 """ names = [] length = 0 print("Enter strings (end with DONE):\n") while True: nextstr = input("") if nextstr == "DONE": break names.append(nextstr) if len(nextstr) > length: length = len(nextstr) length = str(length) print("Right-aligned list:") for x in names: a = "{0:>{1}}".format(x,length) print(a)
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
1ad967c9e59e5e94e6d9cdfa1c0a4db9408bb056
e10a6d844a286db26ef56469e31dc8488a8c6f0e
/gfsa/datasets/padding_calibration_test.py
94d0cd41593d6cc232526608b425428d33fc1b6b
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
Jimmy-INL/google-research
54ad5551f97977f01297abddbfc8a99a7900b791
5573d9c5822f4e866b6692769963ae819cb3f10d
refs/heads/master
2023-04-07T19:43:54.483068
2023-03-24T16:27:28
2023-03-24T16:32:17
282,682,170
1
0
Apache-2.0
2020-07-26T15:50:32
2020-07-26T15:50:31
null
UTF-8
Python
false
false
2,131
py
# coding=utf-8 # Copyright 2022 The Google Research 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. """Tests for gfsa.datasets.google.random_python.padding_calibration.""" from absl.testing import absltest import gast from gfsa import automaton_builder from gfsa import py_ast_graphs from gfsa.datasets import graph_bundle from gfsa.datasets import padding_calibration class PaddingCalibrationTest(absltest.TestCase): def test_calibrate_padding(self): # Make sure padding calibration doesn't error out, so that it works when # run interactively. def build_example(size): tree = gast.Module( body=[gast.Constant(value=i, kind=None) for i in range(size)], type_ignores=[]) py_graph, ast_to_node_id = (py_ast_graphs.py_ast_to_graph(tree)) edges = [] for i in range(1, size, 2): edges.append((ast_to_node_id[id(tree.body[i])], ast_to_node_id[id(tree.body[i - 1])], 1)) return graph_bundle.convert_graph_with_edges(py_graph, edges, py_ast_graphs.BUILDER) padding_calibration.calibrate_padding( example_builder=build_example, desired_sizes=graph_bundle.PaddingConfig( static_max_metadata=automaton_builder.EncodedGraphMetadata( num_nodes=64, num_input_tagged_nodes=64), max_initial_transitions=128, max_in_tagged_transitions=256, max_edges=64, ), samples=50, optimization_max_steps=500, round_to_powers_of_two=True) if __name__ == '__main__': absltest.main()
[ "copybara-worker@google.com" ]
copybara-worker@google.com
18caddf54f82ac9aac3080ca35c1274d616ae614
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/380/usersdata/315/99246/submittedfiles/principal.py
f2b8783bc70994b635e87974903692d8ebcb10a2
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
# -*- coding: utf-8 -*- from minha_bib import * #COMECE AQUI ABAIXO matriz = [[' ',' ',' '],[' ',' ',' '],[' ',' ',' ']] print (matriz[0][0] + '|' + matriz[0][1] + '|' + matriz[0][2]) matriz[0][0] = input('dgite sua jogada: ') print (matriz[0][0] + '|' + matriz[0][1] + '|' + matriz[0][2])
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
2a679ec14fe12c6dfd467cc8df8bb7d1ce4cd3fc
eb420ab51af4001d15058c9f485e9122bd85bb4b
/neural_sp/models/seq2seq/decoders/build.py
348cf0c9c99d52d56024678267aba2003842b91e
[ "Apache-2.0" ]
permissive
many-hats/neural_sp
23cb66b37343e1f36759513cf565bcddf3e1ed19
2f7d0ca0af3097eb2a954ad10aa3682cabe03940
refs/heads/master
2022-10-16T19:04:15.733439
2020-06-12T01:49:11
2020-06-12T01:49:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,045
py
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2019 Kyoto University (Hirofumi Inaguma) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """Select an decoder network.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function def build_decoder(args, special_symbols, enc_n_units, vocab, ctc_weight, ctc_fc_list, global_weight, external_lm=None): if args.dec_type in ['transformer', 'transformer_xl']: from neural_sp.models.seq2seq.decoders.transformer import TransformerDecoder decoder = TransformerDecoder( special_symbols=special_symbols, enc_n_units=enc_n_units, attn_type=args.transformer_attn_type, n_heads=args.transformer_n_heads, n_layers=args.dec_n_layers, d_model=args.transformer_d_model, d_ff=args.transformer_d_ff, d_ff_bottleneck_dim=getattr(args, 'transformer_d_ff_bottleneck_dim', 0), layer_norm_eps=args.transformer_layer_norm_eps, ffn_activation=args.transformer_ffn_activation, pe_type=args.transformer_dec_pe_type, vocab=vocab, tie_embedding=args.tie_embedding, dropout=args.dropout_dec, dropout_emb=args.dropout_emb, dropout_att=args.dropout_att, dropout_layer=args.dropout_dec_layer, dropout_head=args.dropout_head, lsm_prob=args.lsm_prob, ctc_weight=ctc_weight, ctc_lsm_prob=args.ctc_lsm_prob, ctc_fc_list=ctc_fc_list, backward=(dir == 'bwd'), global_weight=global_weight, mtl_per_batch=args.mtl_per_batch, param_init=args.transformer_param_init, memory_transformer=args.dec_type == 'transformer_xl', mem_len=args.mem_len, mocha_chunk_size=args.mocha_chunk_size, mocha_n_heads_mono=args.mocha_n_heads_mono, mocha_n_heads_chunk=args.mocha_n_heads_chunk, mocha_init_r=args.mocha_init_r, mocha_eps=args.mocha_eps, mocha_std=args.mocha_std, mocha_no_denominator=args.mocha_no_denominator, mocha_1dconv=args.mocha_1dconv, mocha_quantity_loss_weight=args.mocha_quantity_loss_weight, mocha_head_divergence_loss_weight=args.mocha_head_divergence_loss_weight, latency_metric=args.mocha_latency_metric, latency_loss_weight=args.mocha_latency_loss_weight, mocha_first_layer=args.mocha_first_layer, share_chunkwise_attention=getattr(args, 'share_chunkwise_attention', False), external_lm=external_lm, lm_fusion=args.lm_fusion) elif args.dec_type in ['lstm_transducer', 'gru_transducer']: from neural_sp.models.seq2seq.decoders.rnn_transducer import RNNTransducer decoder = RNNTransducer( special_symbols=special_symbols, enc_n_units=enc_n_units, rnn_type=args.dec_type, n_units=args.dec_n_units, n_projs=args.dec_n_projs, n_layers=args.dec_n_layers, bottleneck_dim=args.dec_bottleneck_dim, emb_dim=args.emb_dim, vocab=vocab, dropout=args.dropout_dec, dropout_emb=args.dropout_emb, lsm_prob=args.lsm_prob, ctc_weight=ctc_weight, ctc_lsm_prob=args.ctc_lsm_prob, ctc_fc_list=ctc_fc_list, external_lm=external_lm if args.lm_init else None, global_weight=global_weight, mtl_per_batch=args.mtl_per_batch, param_init=args.param_init) else: from neural_sp.models.seq2seq.decoders.las import RNNDecoder decoder = RNNDecoder( special_symbols=special_symbols, enc_n_units=enc_n_units, rnn_type=args.dec_type, n_units=args.dec_n_units, n_projs=args.dec_n_projs, n_layers=args.dec_n_layers, bottleneck_dim=args.dec_bottleneck_dim, emb_dim=args.emb_dim, vocab=vocab, tie_embedding=args.tie_embedding, attn_type=args.attn_type, attn_dim=args.attn_dim, attn_sharpening_factor=args.attn_sharpening_factor, attn_sigmoid_smoothing=args.attn_sigmoid, attn_conv_out_channels=args.attn_conv_n_channels, attn_conv_kernel_size=args.attn_conv_width, attn_n_heads=args.attn_n_heads, dropout=args.dropout_dec, dropout_emb=args.dropout_emb, dropout_att=args.dropout_att, lsm_prob=args.lsm_prob, ss_prob=args.ss_prob, ss_type=args.ss_type, ctc_weight=ctc_weight, ctc_lsm_prob=args.ctc_lsm_prob, ctc_fc_list=ctc_fc_list, mbr_training=args.mbr_training, mbr_ce_weight=args.mbr_ce_weight, external_lm=external_lm, lm_fusion=args.lm_fusion, lm_init=args.lm_init, backward=(dir == 'bwd'), global_weight=global_weight, mtl_per_batch=args.mtl_per_batch, param_init=args.param_init, mocha_chunk_size=args.mocha_chunk_size, mocha_n_heads_mono=args.mocha_n_heads_mono, mocha_init_r=args.mocha_init_r, mocha_eps=args.mocha_eps, mocha_std=args.mocha_std, mocha_no_denominator=args.mocha_no_denominator, mocha_1dconv=args.mocha_1dconv, mocha_quantity_loss_weight=args.mocha_quantity_loss_weight, latency_metric=args.mocha_latency_metric, latency_loss_weight=args.mocha_latency_loss_weight, gmm_attn_n_mixtures=args.gmm_attn_n_mixtures, replace_sos=args.replace_sos, distillation_weight=args.distillation_weight, discourse_aware=args.discourse_aware) return decoder
[ "hiro.mhbc@gmail.com" ]
hiro.mhbc@gmail.com
318f128cabc73c85dd112537c7f032dcf1c59140
4ce5022078c53b3bd75493b12a38237618b52fc8
/prodsys/periodic_tasks/radical/utils/signatures.py
f002aa60d09c31e317a79ba52925ae02ba9f7c01
[]
no_license
virthead/COMPASS-ProdSys
90180e32c3a23d9fd05b252a6f8ded234525a780
6dfaa3e9ca40845282d3004ac61f386db5abdbe9
refs/heads/master
2023-02-23T18:16:02.789709
2022-09-28T09:37:59
2022-09-28T09:37:59
144,685,667
0
1
null
2018-10-13T10:07:42
2018-08-14T07:38:34
Python
UTF-8
Python
false
false
17,629
py
__author__ = "Radical.Utils Development Team (Andre Merzky)" __copyright__ = "Copyright 2013, RADICAL@Rutgers" __license__ = "MIT" import sys # ------------------------------------------------------------------------------ # # Method call parameters/return value type checking decorators. # (c) 2006-2007, Dmitry Dvoinikov <dmitry@targeted.org> # Distributed under BSD license. # # code adjustements by 'The SAGA Project', 2013 # See also # http://code.activestate.com/recipes/577065-type-checking-function-overloading-decorator/ # # # Samples: # # from typecheck import * # # @takes(int, str) # takes int, str, upon a problem throws TypeError # @returns(int) # returns int, upon a problem throws TypeError # def foo(i, s): # return i + len(s) # # @takes((int, long), by_regex("^[0-9]+$")) # int or long, numerical string # def foo(i, s, anything): # and the third parameter is not checked # ... # # @takes(int, int, foo = int, bar = optional(int)) # keyword argument foo must be int # def foo(a, b, **kwargs): # bar may be int or missing # ... # # Note: @takes for positional arguments, @takes for keyword arguments and @returns # all support the same checker syntax, for example for the following declaration # # @takes(C) # def foo(x): # ... # # then C may be one of the simple checkers: # # --------- C --------- ------------- semantics ------------- # typename ==> ok if x is is an instance of typename # "typename" ==> ok if x is is an instance of typename # with_attr("a", "b") ==> ok if x has specific attributes # some_callable ==> ok if some_callable(x) is True # one_of(1, "2") ==> ok if x is one of the literal values # by_regex("^foo$") ==> ok if x is a matching basestring # nothing ==> ok if x is None # anything ==> always ok # # simple checkers can further be combined with OR semantics using tuples: # # --------- C --------- ------------- semantics ------------- # (checker1, checker2) ==> ok if x conforms with either checker # # be optional: # # --------- C --------- ------------- semantics ------------- # optional (checker) ==> ok if x is checker-conformant or None # # or nested recursively into one of the following checkers # # --------- C --------- ------------- semantics ------------- # list_of (checker) ==> ok if x is a list of checker-conformant values # tuple_of (checker) ==> ok if x is a tuple of checker-conformant values # set_of (checker) ==> ok if x is a set of checker-conformant values # dict_of (key_checker, # value_checker) ==> ok if x is a dict mapping key_checker- # conformant keys to value_checker-conformant values # # More samples: # # class foo (object): # @takes ("foo", optional (int)) # foo, maybe int, but foo is yet incomplete # def __init__ (self, i = None): # and is thus specified by name # ... # @takes ("foo", int) # foo, and int if presents in args, # def bar (self, *args): # if args is empty, the check passes ok # ... # @takes ("foo") # @returns (object) # returns foo which is fine, because # def biz (self): # foo is an object # return self # @classmethod # classmethod's and staticmethod's # @takes (type) # go same way # def baz (cls): # ... # # @takes (int) # @returns (optional ("int", foo)) # returns either int, foo or NoneType # def bar (i): # "int" (rather than just int) is for fun # if i > 0: # return i # elif i == 0: # return foo() # otherwise returns NoneType # # @takes (callable) # built-in functions are treated as predicates # @returns (lambda x: x == 123) # and so do user-defined functions or lambdas # def exec (f, *args, **kwargs): # return f (*args, **kwargs) # # assert execute (execute, execute, execute, lambda x: x, 123) == 123 # # def readable (x): # user-defined type-checking predicate # return hasattr (x, "read") # # anything is an alias for predicate lambda: True, # nothing is an alias for NoneType, as in: # # @takes (callable, readable, # optional (anything), # optional (int)) # @returns (nothing) # def foo (f, r, x = None, i = None): # ... # # # another way of protocol checking # @takes (with_attr ("read", "write")) # def foo (pipe): # ... # # @takes (list_of (int)) # list of ints # def foo (x): # print x[0] # # @takes (tuple_of (callable)) # tuple of callables # def foo(x): # print x[0]() # # # dict mapping strs to lists of int # @takes (dict_of (str, list_of (int))) # def foo (x): # print sum (x["foo"]) # # @takes (by_regex ("^[0-9]{1,8}$")) # integer-as-a-string regex # def foo (x): # i = int (x) # # @takes (one_of (1, 2)) # must be equal to either one # def set_version (version): # ... # # The (3 times longer) source code with self-tests is available from: # http://www.targeted.org/python/recipes/typecheck.py # # ------------------------------------------------------------------------------ __all__ = [ "takes", "returns", "optional", "nothing", "anything", "list_of", "tuple_of", "dict_of", "by_regex", "with_attr", "one_of", "set_of" ] no_check = False # set this to True to turn all checks off no_return_check = True # set this to True to turn return value cchecks off # ------------------------------------------------------------------------------ from traceback import extract_stack from inspect import getargspec, isclass from types import NoneType from re import compile as regex from functools import wraps # ------------------------------------------------------------------------------ def base_names (C): "Returns list of base class names for a given class" return [ x.__name__ for x in C.__mro__ ] # ------------------------------------------------------------------------------ def type_name (v): "Returns the name of the passed value's type" return type (v).__name__ # ------------------------------------------------------------------------------ class Checker (object): def __init__ (self, reference): self.reference = reference self.spectype = reference def check (self, value): # abstract pass _registered = [] # a list of registered descendant class factories @staticmethod def create (value): # static factory method for f, t in Checker._registered: if f (value): return t (value) else: return None # ------------------------------------------------------------------------------ class TypeChecker (Checker): def check (self, value): return isinstance (value, self.reference) Checker._registered.append ((isclass, TypeChecker)) nothing = NoneType # ------------------------------------------------------------------------------ class StrChecker (Checker): def check (self, value): value_base_names = base_names (type (value)) return self.reference in value_base_names or \ "instance" in value_base_names Checker._registered.append ((lambda x: isinstance (x, str), StrChecker)) # ------------------------------------------------------------------------------ class TupleChecker (Checker): def __init__ (self, reference): self.reference = map (Checker.create, reference) self.spectype = reference def check (self, value): return reduce (lambda r, c: r or c.check (value), self.reference, False) Checker._registered.append ((lambda x: isinstance (x, tuple) and not filter (lambda y: Checker.create (y) is None, x), TupleChecker)) optional = lambda *args: args + (NoneType, ) # ------------------------------------------------------------------------------ class CallableChecker (Checker): def check (self, value): return self.reference (value) # note that the callable check is the most relaxed of all, therefore it should # be registered last, after all the more specific cases have been registered Checker._registered.append ((callable, CallableChecker)) anything = lambda *args: True # ------------------------------------------------------------------------------ class ListOfChecker (Checker): def __init__ (self, reference): self.reference = Checker.create (reference) def check (self, value): return isinstance (value, list) and \ not filter (lambda e: not self.reference.check (e), value) list_of = lambda *args: ListOfChecker (*args).check # ------------------------------------------------------------------------------ class TupleOfChecker (Checker): def __init__ (self, reference): self.reference = Checker.create (reference) def check (self, value): return isinstance (value, tuple) and \ not filter (lambda e: not self.reference.check (e), value) tuple_of = lambda *args: TupleOfChecker (*args).check # ------------------------------------------------------------------------------ class SetOfChecker (Checker): def __init__ (self, reference): self.reference = Checker.create (reference) def check (self, value): return isinstance (value, set) and \ not filter (lambda e: not self.reference.check (e), value) set_of = lambda *args: SetOfChecker (*args).check # ------------------------------------------------------------------------------ class DictOfChecker (Checker): def __init__ (self, key_reference, value_reference): self.key_reference = Checker.create (key_reference) self.value_reference = Checker.create (value_reference) def check (self, value): return isinstance (value, dict) and \ not filter (lambda e: not self.key_reference.check (e), value.iterkeys ()) and \ not filter (lambda e: not self.value_reference.check (e), value.itervalues()) dict_of = lambda *args: DictOfChecker (*args).check # ------------------------------------------------------------------------------ class RegexChecker (Checker): def __init__(self, reference): self.reference = regex (reference) def check (self, value): return isinstance (value, basestring) and self.reference.match (value) by_regex = lambda *args: RegexChecker (*args).check # ------------------------------------------------------------------------------ class AttrChecker (Checker): def __init__ (self, *attrs): self.attrs = attrs def check (self, value): return reduce (lambda r, c: r and c, map (lambda a: hasattr (value, a), self.attrs), True) with_attr = lambda *args: AttrChecker (*args).check # ------------------------------------------------------------------------------ class OneOfChecker (Checker): def __init__ (self, *values): self.values = values def check (self, value): return value in self.values one_of = lambda *args: OneOfChecker (*args).check def create_return_exception (method, spectype, result) : stack = extract_stack () for f in stack : if 'utils/signatures.py' in f[0] : break frame = f msg = "\nSignature Mismatch\n" msg += " in function : %s\n" % (frame[2]) msg += " in file : %s +%s\n" % (frame[0], frame[1]) msg += " on line : %s\n" % (frame[3]) msg += " method : %s\n" % (method.__name__) msg += " returned type : %s\n" % (type(result).__name__) msg += " instead of : %s\n" % (spectype.__name__) msg += " This is an internal error!" return TypeError (msg) def create_type_exception (method, arg0, i, arg, spectype, kwname="") : narg = 0 if arg0 and isinstance (arg0, object) : narg = i else : narg = i+1 stack = extract_stack () for f in stack : if 'utils/signatures.py' in f[0] : break frame = f if isinstance(spectype,tuple) or \ isinstance(spectype,list ) : expected = list() for t in spectype : if isinstance(t, type): expected.append (t.__name__) else: expected.append (str(t)) elif isinstance(spectype,type): expected = spectype.__name__ else: expected = str(spectype) msg = "\nSignature Mismatch\n" msg += " in function : %s\n" % (frame[2]) msg += " in file : %s +%s\n" % (frame[0], frame[1]) msg += " on line : %s\n" % (frame[3]) msg += " method : %s\n" % (method.__name__) if not kwname : msg += " argument : #%s\n" % (narg) else : msg += " parameter : %s" % (kwname) msg += " has incorrect type : %s\n" % (type (arg).__name__) msg += " instead of : %s" % (str(expected)) return TypeError (msg) # ------------------------------------------------------------------------------ def takes (*args, **kwargs): "Method signature checking decorator" # convert decorator arguments into a list of checkers checkers = [] for i, arg in enumerate (args): checker = Checker.create (arg) if checker is None: raise TypeError ("@takes decorator got parameter %d of unsupported " "type %s" % (i + 1, type_name(arg))) checkers.append (checker) kwcheckers = {} for kwname, kwarg in kwargs.iteritems (): checker = Checker.create (kwarg) if checker is None: raise TypeError ("@takes decorator got parameter %s of unsupported " "type %s" % (kwname, type_name (kwarg))) kwcheckers[kwname] = checker if no_check: # no type checking is performed, return decorated method itself def takes_proxy (method): return wraps(method) else: def takes_proxy (method): method_args, method_defaults = getargspec (method)[0::3] @wraps(method) def signature_check (*pargs, **pkwargs): # append the default parameters if method_defaults is not None and len (method_defaults) > 0 \ and len (method_args) - len (method_defaults) <= len (pargs) < len (method_args): pargs += method_defaults[len (pargs) - len (method_args):] # check the types of the actual call parameters for i, (arg, checker) in enumerate (zip (pargs, checkers)): if not checker.check (arg): # print 'Checker.spectype %s' % checker.spectype raise (create_type_exception (method, pargs[0], i, arg, checker.spectype)) for kwname, checker in kwcheckers.iteritems (): if not checker.check (pkwargs.get (kwname, None)): # print 'checker.spectype %s' % checker.spectype raise (create_type_exception (method, pargs[0], i, arg, checker.spectype, kwname)) try : return method(*pargs, **pkwargs) except : # remove signature decorator from exception call stack et, ei, tb = sys.exc_info() raise et, ei, tb.tb_next signature_check.__name__ = method.__name__ return signature_check return takes_proxy # ------------------------------------------------------------------------------ def returns (sometype): "Return type checking decorator" # convert decorator argument into a checker checker = Checker.create(sometype) if checker is None: raise TypeError ("@returns decorator got parameter of unsupported " "type %s" % type_name (sometype)) if no_check: # no type checking is performed, return decorated method itself def returns_proxy (method): return wraps(method) else: def returns_proxy (method): @wraps(method) def signature_check (*args, **kwargs): try : result = method (*args, **kwargs) except : # remove signature decorator from exception call stack et, ei, tb = sys.exc_info() raise et, ei, tb.tb_next if not checker.check (result): if not no_return_check: # print 'Checker.spectype %s' % checker.spectype raise (create_return_exception (method, checker.spectype, result)) return result signature_check.__name__ = method.__name__ return signature_check return returns_proxy # ------------------------------------------------------------------------------
[ "root@vm221-123.jinr.ru" ]
root@vm221-123.jinr.ru
758bfadb9493f24596827c70c9f0bce4d0e0fcf4
051d6dfc9586d97f5a4d03bac2a5404e3bf704bb
/das_decennial/programs/schema/table_building/building_DHCP_HHGQ_tables.py
84aa9537d6fb88c9669928165eae8aabc7d4d2fd
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "LicenseRef-scancode-public-domain", "CC0-1.0" ]
permissive
p-b-j/uscb-das-container-public
93c88cb3608abbeb8d73ae2e8f847e531c2a8550
7f7ba44055da15d13b191180249e656e1bd398c6
refs/heads/main
2023-08-28T20:34:55.291277
2021-10-29T15:40:48
2021-10-29T15:40:48
421,209,836
1
0
null
null
null
null
UTF-8
Python
false
false
16,363
py
import programs.schema.table_building.tablebuilder as tablebuilder from programs.schema.schemas.schemamaker import SchemaMaker from constants import CC import numpy as np import pandas as pd import das_utils import programs.cenrace as cenrace def getTableDict(): tabledict = { ################################################ # Hierarchical age category tables ################################################ # Prefix Query "prefixquery": ['prefix_agecats', 'age'], # Range Query "rangequery": ['range_agecats', 'age'], # Prefix Query "binarysplitquery": ['binarysplit_agecats', 'age'], ################################################ # SF1 Proposed Tables for 2020 (Person-focused) ################################################ # Table P1 - Total Population # Universe: Total Population "P1": ["total"], # Table P3 - Race # Universe: Total Population "P3": ["total", "majorRaces"], # Table P4 - Hispanic or Latino # Universe: Total Population "P4": ["total", "hispanic"], # Table P5 - Hispanic or Latino by Race # Universe: Total Population "P5": ["total", "hispanic", "hispanic * majorRaces"], # Table P6 - Race (Total Races Tallied) # Universe: Total Races Tallied ??? # What does the total races tallied query mean??? Do we use "total" or some # recode that totals the racecomb query answers? "P6": [# "racecombTotal", # "total", "racecomb"], # Table P7 - Hispanic or Latino by Race (Total Races Tallied) # Universe: Total Races Tallied ??? # What does the total races tallied query mean??? Do we use "total" or some # recode that totals the racecomb query answers? "P7": [# "racecombTotal", # "total", # "hispanic * racecombTotal", # "hispanic", "racecomb", "hispanic * racecomb"], # Table P12 - Sex by Age # Universe: Total Population "P12": ["total", "sex", "sex * agecat"], # Table P13 - Median age by Sex (1 Expressed Decimal) # Table P14 - Sex by Age for the Population Under 20 Years # Universe: Population Under 20 Years "P14": ["under20yearsTotal", "under20yearsTotal * sex", "under20years * sex"], # Table P16 - Population in households by age "P16": ["hhTotal", "hhTotal * votingage"], # Table P43 - GQ Population by Sex by Age by Major GQ Type # Universe: Population in GQs "P43": ["gqTotal", "gqTotal * sex", "gqTotal * sex * agecat43", "sex * agecat43 * institutionalized", "sex * agecat43 * majorGQs"], # Table P12A - Sex by Age (White alone) # Universe: People who are White alone "P12A": [ "whiteAlone", "whiteAlone * sex", "whiteAlone * sex * agecat", ], # Table P12B - Sex by Age (Black or African American alone) # Universe: People who are Black or African American alone "P12B": [ "blackAlone", "blackAlone * sex", "blackAlone * sex * agecat" ], # Table P12C - Sex by Age (American Indian and Alaska Native alone) # Universe: People who are American Indian and Alaska Native alone "P12C": [ "aianAlone", "aianAlone * sex", "aianAlone * sex * agecat" ], # Table P12D - Sex by Age (Asian alone) # Universe: People who are Asian alone "P12D": [ "asianAlone", "asianAlone * sex", "asianAlone * sex * agecat" ], # Table P12E - Sex by Age (Native Hawaiian and Other Pacific Islander alone) # Universe: People who are Native Hawaiian and Other Pacific Islander alone) "P12E": [ "nhopiAlone", "nhopiAlone * sex", "nhopiAlone * sex * agecat" ], # Table P12F - Sex by Age (Some Other Race alone) # Universe: People who are Some Other Race alone "P12F": [ "sorAlone", "sorAlone * sex", "sorAlone * sex * agecat" ], # Table P12G - Sex by Age (Two or more races) # Universe: People who are two or more races "P12G": [ "tomr", "tomr * sex", "tomr * sex * agecat" ], # Table P12H - Sex by Age (Hispanic or Latino) # Universe: People who are Hispanic or Latino "P12H": [ "hispTotal", "hispTotal * sex", "hispTotal * sex * agecat" ], # Table P12I - Sex by Age (White alone, not Hispanic or Latino) "P12I": [ "whiteAlone * notHispTotal", "whiteAlone * notHispTotal * sex", "whiteAlone * notHispTotal * sex * agecat" ], # Tables P13A-I Median age by sex # PCO1 - Group Quarters Population by Sex by Age # Universe: Population in group quarters "PCO1": ["gqTotal", "gqTotal * sex", "gqTotal * sex * agecatPCO1"], # PCO2 - Group Quarters Population in Institutional Facilities by Sex by Age # Universe: Institutionalized Population "PCO2": ["instTotal", "instTotal * sex", "instTotal * sex * agecatPCO1"], # PCO3 - GQ Pop in Correctional Facilities for Adults by Sex by Age # Universe: Pop in correctional facilities for adults "PCO3": ["gqCorrectionalTotal", "gqCorrectionalTotal * sex", "gqCorrectionalTotal * sex * agecatPCO3"], # PCO4 - GQ Pop in Juvenile Facilities by Sex by Age # Universe: Pop in juvenile facilities "PCO4": ["gqJuvenileTotal", "gqJuvenileTotal * sex", "gqJuvenileTotal * sex * agecatPCO4"], # PCO5 - GQ Pop in Nursing Facilities / Skilled-Nursing Facilities by Sex by Age # Universe: Pop in nursing facilities/skilled-nursing facilities "PCO5": ["gqNursingTotal", "gqNursingTotal * sex", "gqNursingTotal * sex * agecatPCO5"], # PCO6 - GQ Pop in Other Institutional Facilities by Sex by Age # Universe: Pop in other institutional facilities "PCO6": ["gqOtherInstTotal", "gqOtherInstTotal * sex", "gqOtherInstTotal * sex * agecatPCO1"], # PCO7 - GQ Pop in Noninstitutional Facilities by Sex by Age # Universe: Pop in noninstitutional facilities "PCO7": ["noninstTotal", "noninstTotal * sex", "noninstTotal * sex * agecatPCO7"], # PCO8 - GQ Pop in College/University Student Housing by Sex by Age # Universe: Pop in college/university student housing "PCO8": ["gqCollegeTotal", "gqCollegeTotal * sex", "gqCollegeTotal * sex * agecatPCO8"], # PCO9 - GQ Pop in Military Quarters by Sex by Age # Universe: Pop in military quarters "PCO9": ["gqMilitaryTotal", "gqMilitaryTotal * sex", "gqMilitaryTotal * sex * agecatPCO8"], # PCO10 - GQ Pop in Other Noninstitutional Facilities by Sex by Age # Universe: Pop in other noninstitutional facilities "PCO10": ["gqOtherNoninstTotal", "gqOtherNoninstTotal * sex", "gqOtherNoninstTotal * sex * agecatPCO7"], # PCO43A - GQ Pop by Sex by Age by Major GQ Type (White alone) # Universe: Pop in group quarters "PCO43A": [ "whiteAlone * gqTotal", "whiteAlone * gqTotal * sex", "whiteAlone * gqTotal * sex * agecat43", "whiteAlone * institutionalized * sex * agecat43", "whiteAlone * majorGQs * sex * agecat43" ], # PCO43B - GQ Pop by Sex by Age by Major GQ Type (Black or African American alone) # Universe: Pop in group quarters "PCO43B": [ "blackAlone * gqTotal", "blackAlone * gqTotal * sex", "blackAlone * gqTotal * sex * agecat43", "blackAlone * institutionalized * sex * agecat43", "blackAlone * majorGQs * sex * agecat43" ], # PCO43C - GQ Pop by Sex by Age by Major GQ Type (American Indian or Alaska Native alone) # Universe: Pop in group quarters "PCO43C": [ "aianAlone * gqTotal", "aianAlone * gqTotal * sex", "aianAlone * gqTotal * sex * agecat43", "aianAlone * institutionalized * sex * agecat43", "aianAlone * majorGQs * sex * agecat43" ], # PCO43D - GQ Pop by Sex by Age by Major GQ Type (Asian alone) # Universe: Pop in group quarters "PCO43D": [ "asianAlone * gqTotal", "asianAlone * gqTotal * sex", "asianAlone * gqTotal * sex * agecat43", "asianAlone * institutionalized * sex * agecat43", "asianAlone * majorGQs * sex * agecat43" ], # PCO43E - GQ Pop by Sex by Age by Major GQ Type (Native Hawaiian or Other Pacific Islander alone) # Universe: Pop in group quarters "PCO43E": [ "nhopiAlone * gqTotal", "nhopiAlone * gqTotal * sex", "nhopiAlone * gqTotal * sex * agecat43", "nhopiAlone * institutionalized * sex * agecat43", "nhopiAlone * majorGQs * sex * agecat43" ], # PCO43F - GQ Pop by Sex by Age by Major GQ Type (Some Other Race alone) # Universe: Pop in group quarters "PCO43F": [ "sorAlone * gqTotal", "sorAlone * gqTotal * sex", "sorAlone * gqTotal * sex * agecat43", "sorAlone * institutionalized * sex * agecat43", "sorAlone * majorGQs * sex * agecat43" ], # PCO43G - GQ Pop by Sex by Age by Major GQ Type (Two or More Races Alone) # Universe: Pop in group quarters "PCO43G": [ "tomr * gqTotal", "tomr * gqTotal * sex", "tomr * gqTotal * sex * agecat43", "tomr * institutionalized * sex * agecat43", "tomr * majorGQs * sex * agecat43" ], # PCO43H - GQ Pop by Sex by Age by Major GQ Type (Hispanic or Latino) # Universe: Pop in group quarters "PCO43H": [ "hispTotal * gqTotal", "hispTotal * gqTotal * sex", "hispTotal * gqTotal * sex * agecat43", "hispTotal * institutionalized * sex * agecat43", "hispTotal * majorGQs * sex * agecat43" ], # PCO43I - GQ Pop by Sex by Age by Major GQ Type (White Alone, Not Hispanic or Latino) # Universe: Pop in group quarters ### The [complement/partition of each race * not hispanic] of the universe might be useful #### "PCO43I": [ "whiteAlone * notHispTotal * gqTotal", "whiteAlone * notHispTotal * gqTotal * sex", "whiteAlone * notHispTotal * gqTotal * sex * agecat43", "whiteAlone * notHispTotal * institutionalized * sex * agecat43", "whiteAlone * notHispTotal * majorGQs * sex * agecat43" ], # PCT12 - Sex by Age # Universe: Total Population "PCT12": ["total", "sex", "sex * agecatPCT12"], # PCT13 # Universe: Population in households "PCT13": ["hhTotal", "hhTotal * sex", "hhTotal * sex * agecat"], # PCT22 - GQ Pop by Sex by Major GQ Type for Pop 18 Years and Over # Universe: Pop 18 years and over in group quarters "PCT22": ["over17yearsTotal * gqTotal", "over17yearsTotal * gqTotal * sex", "over17yearsTotal * sex * institutionalized", "over17yearsTotal * sex * majorGQs"], # PCT13A # Universe: Population of White alone in households "PCT13A": [ "whiteAlone * hhTotal", "whiteAlone * hhTotal * sex", "whiteAlone * hhTotal * sex * agecat", ], # PCT13B # Universe: Population of Black alone in households "PCT13B": ["blackAlone * hhTotal", "blackAlone * hhTotal * sex", "blackAlone * hhTotal * sex * agecat", ], # PCT13C # Universe: Population of AIAN alone in households "PCT13C": ["aianAlone * hhTotal", "aianAlone * hhTotal * sex", "aianAlone * hhTotal * sex * agecat", ], # PCT13D # Universe: Population of Asian alone in households "PCT13D": ["asianAlone * hhTotal", "asianAlone * hhTotal * sex", "asianAlone * hhTotal * sex * agecat", ], # PCT13E # Universe: Population of Hawaiian/Pacific Islander alone in households "PCT13E": ["nhopiAlone * hhTotal", "nhopiAlone * hhTotal * sex", "nhopiAlone * hhTotal * sex * agecat", ], # PCT13F # Universe: Population of Some other race alone in households "PCT13F": ["sorAlone * hhTotal", "sorAlone * hhTotal * sex", "sorAlone * hhTotal * sex * agecat", ], # PCT13G # Universe: Population of Two or more races in households "PCT13G": ["tomr * hhTotal", "tomr * hhTotal * sex", "tomr * hhTotal * sex * agecat", ], # PCT13H # Universe: Population of Hispanic or latino in households "PCT13H": ["hispTotal * hhTotal", "hispTotal * hhTotal * sex", "hispTotal * hhTotal * sex * agecat", ], # PCT13I # Universe: Population of White alone, non-hispanic in households "PCT13I": ["whiteAlone * notHispTotal * hhTotal", "whiteAlone * notHispTotal * hhTotal * sex", "whiteAlone * notHispTotal * hhTotal * sex * agecat" ], } return tabledict def getTableBuilder(testtables=None): """ :param testtables: Will run the testTableDefs function to ensure recodes from the same dimension aren't crossed in a table. This is useful if you get the error because it identifies the table and the cell of the list where the error occurs. :return: """ schema = SchemaMaker.fromName(CC.SCHEMA_REDUCED_DHCP_HHGQ) tabledict = getTableDict() if testtables==True: tablebuilder.testTableDefs(schema, tabledict) else: schema = SchemaMaker.fromName(CC.SCHEMA_REDUCED_DHCP_HHGQ) tabledict = getTableDict() builder = tablebuilder.TableBuilder(schema, tabledict) return builder ############################################################ ## Consolidated tables ############################################################ ''' # Tables P12A-I # Combines individual P12A-I tables "P12A-I": [# P12A-G "total", "majorRaces", "majorRaces * sex", "majorRaces * sex * agecat", # P12H "hispTotal", "hispTotal * sex", "hispTotal * sex * agecat", # P12I "whiteAlone * notHispTotal", "whiteAlone * notHispTotal * sex", "whiteAlone * notHispTotal * sex * agecat"], # Tables PCO43A-I # Combines individual PCO43A-I tables "PCO43A-I": [ # PCO43A-G "majorRaces * gqTotal", "majorRaces * gqTotal * sex", "majorRaces * gqTotal * sex * agecat43", "majorRaces * sex * agecat43 * institutionalized", "majorRaces * sex * agecat43 * majorGQs", # PCO43H "hispTotal * gqTotal", "hispTotal * gqTotal * sex", "hispTotal * gqTotal * sex * agecat43", "hispTotal * sex * agecat43 * institutionalized", "hispTotal * sex * agecat43 * majorGQs", # PCO43I "whiteAlone * notHispTotal * gqTotal", "hispTotal * gqTotal * sex", "whiteAlone * notHispTotal * gqTotal * sex * agecat43", "whiteAlone * notHispTotal * sex * agecat43 * institutionalized", "whiteAlone * notHispTotal * sex * agecat43 * majorGQs" ], # PCT13A-I #Combines individual tables PCT13A-PCT13I #Universe: Population in households for major race group, hispanic, or white along/non-hispanic "PCT13A-I": [ # PCT13A-G "majorRaces * hhTotal", "majorRaces * hhTotal * sex", "majorRaces * hhTotal * sex * agecat", # PCT13H "hispTotal * hhTotal", "hispTotal * hhTotal * sex", "hispTotal * hhTotal * sex * agecat", #PCT13I "whiteAlone * notHispTotal * hhTotal", "whiteAlone * notHispTotal * hhTotal * sex", "whiteAlone * notHispTotal * hhTotal * sex * agecat" ], '''
[ "pbjones@cs.washington.edu" ]
pbjones@cs.washington.edu
5c16d8cab80a5400357c1b6c71a4c0409f0a1405
64c5341a41e10ea7f19582cbbf3c201d92768b9f
/pc/pc.py
90e125b13c151c4167377dbd1d025ca8a7e4d415
[]
no_license
CLARIN-PL/yalign
6b050b5c330b8eaf7e1e2f9ef83ec88a8abe5164
6da94fbb74e803bea337e0c171c8abff3b17d7ee
refs/heads/master
2023-06-10T18:30:42.112215
2021-06-24T13:07:17
2021-06-24T13:07:17
51,368,327
0
1
null
null
null
null
UTF-8
Python
false
false
8,432
py
# -*- coding: utf-8 -*- """ """ from __future__ import division from __future__ import absolute_import from __future__ import print_function import os import codecs import logging import traceback from time import sleep from threading import Thread from Queue import Queue, Empty from functools import partial from uuid import uuid4 from glob import glob import IPython import pymongo from collections import namedtuple from IPython.config.loader import Config from .dumpparser import parse_lang_links, parse_articles from .WikiExtractor import clean from .euronews import iter_all_articles, get_article_trans LangLinkFile = namedtuple('LangLinkFile', ('lang', 'path')) DumpFile = namedtuple('DumpFile', ('lang', 'path')) log = logging.getLogger(__name__) ip_cfg = Config() ip_cfg.PromptManager.in_template = 'pp [\\#]:' ip_cfg.InteractiveShell.confirm_exit = False def _get_lang_link_files(path): for file_path in glob(os.path.join(path, '*.sql')): lang = os.path.basename(file_path)[:2] yield LangLinkFile(lang, file_path) def _get_lang_links(path): for ll_file in _get_lang_link_files(path): with codecs.open(ll_file.path, encoding='utf-8', errors='replace') as f: for link in parse_lang_links(ll_file.lang, f): yield link def _get_dump_files(path): for file_path in glob(os.path.join(path, '*.xml')): lang = os.path.basename(file_path)[:2] yield DumpFile(lang, file_path) def extract_articles(dump_path, lang, debug=False): """Extracts articles from wiki dumps and stores to MongoDB :dump_path: path to dump files :lang: main language for extraction :debug: enable interactive shell on fail :returns: @todo """ try: articles = {} uids = {} log.info('Starting') log.info('Extracting language links') for i, ll in enumerate(_get_lang_links(dump_path)): if (ll.tgt_lang, ll.tgt_title) in uids: uid = uids[(ll.tgt_lang, ll.tgt_title)] articles[(ll.orig_lang, ll.orig_id)] = uid elif (ll.orig_lang, ll.orig_id) in articles: uid = articles[(ll.orig_lang, ll.orig_id)] uids[(ll.tgt_lang, ll.tgt_title)] = uid else: uid = uuid4().hex uids[(ll.tgt_lang, ll.tgt_title)] = uid articles[(ll.orig_lang, ll.orig_id)] = uid if i % 1000 == 0: log.info('Articles count: %s', len(articles)) log.info('Extracting article dumps') dumps = list(_get_dump_files(dump_path)) main_dump = [d for d in dumps if d.lang == lang][0] dumps.remove(main_dump) db = pymongo.MongoClient().corpora log.info('Clearing current articles from db') db.wikipedia.remove() db.wikipedia.create_index('uid') db.wikipedia.create_index('lang') db.wikipedia.create_index('done_align') db.wikipedia.create_index([('uid', pymongo.ASCENDING), ('lang', pymongo.ASCENDING)]) log.info('Extracting articles for main language') arts_to_db = articles.copy() i = len(articles) main_uids = set() for article in parse_articles(main_dump.lang, main_dump.path): try: uid = arts_to_db.pop((article.lang, article.id)) text = clean(article.text) except Exception: pass else: main_uids.add(uid) db.wikipedia.insert({ 'uid': uid, 'lang': article.lang, 'title': article.title, 'text': text }) i -= 1 if i % 1000 == 0: log.info('Left to process: %s', int(len(arts_to_db)/2)) log.info('Extracting articles for other languages (only if such article exists for main language)') for dump in dumps: log.info('Extrating articles from %s', dump.path) arts_to_db = articles.copy() i = len(articles) for article in parse_articles(dump.lang, dump.path): try: uid = arts_to_db.pop((article.lang, article.id)) except KeyError: pass else: if uid in main_uids: db.wikipedia.insert({ 'uid': uid, 'lang': article.lang, 'title': article.title, 'text': clean(article.text) }) i -= 1 if i % 1000 == 0: log.info('Left to process: %s', int(len(arts_to_db)/2)) log.info('Done') except: log.error(traceback.format_exc()) if debug: IPython.embed(config=ip_cfg, banner1='\nPP debugger\n\n') def parse_euronews(start_url, langs, processes): """Parses euronews website and stores articles to DB :langs: article languages to extract :processes: number of processes for html extraction """ lang_id = ','.join(langs) parse_queue = Queue(5) crawler_processes = max(1, int(processes * 0.4)) parser_processes = max(1, int(processes * 0.6)) log.info('Using %i crawler processes and %i parser processes', crawler_processes, parser_processes) db = pymongo.MongoClient().corpora db.euronews.create_index('lang') db.euronews.create_index('uid') db.euronews.create_index('done') db.euronews.create_index('done_align') db.euronews.create_index([('uid', pymongo.ASCENDING), ('lang', pymongo.ASCENDING)]) db.euronews.create_index([('lang', pymongo.ASCENDING), ('done', pymongo.ASCENDING)]) def _crawler(): counter = 0 for article in iter_all_articles(start_url, crawler_processes): query = dict(uid=article, lang='en') update = {'$set': query} db.euronews.update(query, update, upsert=True) counter += 1 if counter % 1000 == 0: log.info('Total article links found: %i', counter) def _queue_arts(): query = { 'lang': 'en', '$or': [ {'done': {'$exists': False}}, {'done': {'$ne': lang_id}} ] } next_art = partial(db.euronews.find_one, query) counter = 0 while True: article = next_art() if article is None and not crawler.is_alive(): log.info('All articles send for parsing') break elif article: query = dict(uid=article['uid'], lang='en') update = {'$set': {'done': lang_id}} db.euronews.update(query, update, upsert=True) parse_queue.put(article) counter += 1 if counter % 100 == 0: log.info('Total articles sent for parsing: %i', counter) else: sleep(10) def _parser(): while True: try: article = parse_queue.get(timeout=10) except Empty: if not crawler.is_alive(): break else: parse_queue.task_done() uid = article['uid'] article_trans = get_article_trans(uid, langs) if article_trans: for trans in article_trans: query = dict(uid=uid, lang=trans.lang) update = {'$set': dict(title=trans.title, text=trans.text)} db.euronews.update(query, update, upsert=True) workers = [] crawler = Thread(target=_crawler) crawler.daemon = True crawler.start() workers.append(crawler) arts_queuer = Thread(target=_queue_arts) arts_queuer.daemon = True arts_queuer.start() workers.append(arts_queuer) for _ in range(parser_processes): parser = Thread(target=_parser) parser.daemon = True parser.start() workers.append(parser) while True: for w in workers: w.join(1) if all([not w.is_alive() for w in workers]): break
[ "krzysztof@wolk.pl" ]
krzysztof@wolk.pl
8e59e209dbb4f149c88e33807191c9e8784e98b5
65d321b77b4d0134ce094ed003dee7b62411d01f
/bird_sight.py
6aea975491acf0ce7201d75bd8f1d67db5481191
[]
no_license
rohanpahwa1/hacker_rank_solutions
7bb1d62ed18a51d7f067e4b38b66ae60a517d2d3
5e93b873fe3e9eb317d3740fb566e539683694ff
refs/heads/master
2022-12-25T06:45:09.441465
2020-05-02T16:03:32
2020-05-02T16:03:32
300,040,304
0
0
null
2020-09-30T19:38:14
2020-09-30T19:38:14
null
UTF-8
Python
false
false
335
py
def count(li): maxcount,maxvalue=0,0 for i in li: count=0 for j in range(len(li)): if li[j]==li[i]: count=count+1 if count>maxcount: maxcount=count maxvalue=li[i] return maxvalue n=int(input()) li=list(map(int,input().split())) print(count(li))
[ "coderrohanpahwa@gmail.com" ]
coderrohanpahwa@gmail.com
49affd70ece956f427157791e430534c5d08461b
dc8443495f48e3fa5109ba1d75864ce6b0849405
/django_contactme/models.py
cbef2838d8c1aeeced541fe2fdb34a75390190ae
[ "BSD-2-Clause" ]
permissive
pyghassen/django-contactme
66d40a0749be1874b4b7f0a55131c748c7789822
8bc33fc785c058279a295e386c8335cdfe12fd54
refs/heads/master
2021-01-16T22:03:50.193700
2013-11-12T22:00:24
2013-11-12T22:00:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,588
py
import datetime from django.db import models from django.conf import settings from django.contrib.sites.models import Site from django.utils.translation import ugettext_lazy as _ CONTACTME_MSG_MAX_LEN = getattr(settings,'CONTACTME_MSG_MAX_LEN',3000) class ContactMsg(models.Model): """ An incoming message from a site visitor. """ site = models.ForeignKey(Site) name = models.CharField(_("Contact's name"), max_length=100) email = models.EmailField(_("Contact's email address")) message = models.TextField(_("Message"), max_length=CONTACTME_MSG_MAX_LEN) submit_date = models.DateTimeField(_("Date/Time submitted"), default=None) ip_address = models.IPAddressField(_('IP address'), blank=True, null=True) class Meta: db_table = "contactme_contact_msg" ordering = ('submit_date',) verbose_name = _('contact message') verbose_name_plural = _('contact messages') def __unicode__(self): return "%s: %s..." % (self.name, self.message[:50]) def save(self, *args, **kwargs): if self.submit_date is None: self.submit_date = datetime.datetime.now() super(ContactMsg, self).save(*args, **kwargs) def get_as_text(self): """ Return this comment as plain text. Useful for emails. """ d = { 'user': self.name, 'date': self.submit_date, 'message': self.message, 'domain': self.site.domain, } return _('Sent by %(user)s at %(date)s\n\n%(message)s\n\nhttp://%(domain)s') % d
[ "danirus@eml.cc" ]
danirus@eml.cc
c3e08ff5edb4f871c90cd9ebff9ee144916c75c9
76e62ddbfdfba19c80b37e855a4df67672ef0808
/PINp/2014/Platonova Olga/task_1_21.py
3b9caf7f782c735f4194bc70c6c052dc45a5715a
[ "Apache-2.0" ]
permissive
stasvorosh/pythonintask
9d30f3cd492e89783b7221402375c1ebe4690baa
8169ed26510022fe0d589f4013f11749131957df
refs/heads/master
2021-01-17T16:49:32.778063
2016-10-10T14:08:04
2016-10-10T14:08:04
52,255,539
6
0
null
2016-02-22T07:33:16
2016-02-22T07:33:15
null
UTF-8
Python
false
false
651
py
# Задача 1. Вариант 21. #Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Михаил Николаевич Румянцев. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. # Platonova O. A. # 29.05.2016 print("Михаил Николаевич Румянцев более известен, как клоун Карандаш.") input("\n\nНажмите Enter для выхода.")
[ "stasyan.v@gmail.com" ]
stasyan.v@gmail.com
fb88c9ea0fbb2e3c93362900c14ae4ed41e7dea9
48e08c7d5856c35492500b6b01d3d72a31f58ffc
/Leetcode/0151-0200/0169-majority-element.py
5b63395e26a663a73b44602c0dc2ca046b72b0ac
[ "MIT" ]
permissive
MiKueen/Data-Structures-and-Algorithms
8d8730e539e1c112cbd4a51beae9e1c3e2184e63
8788bde5349f326aac0267531f39ac7a2a708ee6
refs/heads/master
2021-07-18T17:16:39.948239
2020-09-13T15:44:37
2020-09-13T15:44:37
212,309,543
0
1
MIT
2019-10-06T16:24:43
2019-10-02T10:19:07
Python
UTF-8
Python
false
false
700
py
''' Author : MiKueen Level : Easy Problem Statement : Majority Element Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the array is non-empty and the majority element always exist in the array. Example 1: Input: [3,2,3] Output: 3 Example 2: Input: [2,2,1,1,1,2,2] Output: 2 ''' class Solution: def majorityElement(self, nums: List[int]) -> int: mapping = {} for i in nums: if i not in mapping: mapping[i] = 1 if mapping[i] > len(nums) // 2: return i else: mapping[i] += 1
[ "keshvi2298@gmail.com" ]
keshvi2298@gmail.com
85c60ef7055f79a086af1c40cb8c1b03a14575d5
8ce3fccd60d8491763729f08158428e39fae0136
/DMVProject/DMVProject/settings.py
f3c6f7881b7011ff79f6502957fe523c6fff4c42
[ "Apache-2.0" ]
permissive
cs-fullstack-master/django-authentication-ic
32c96353ecf043015aaa6e653ec7c36ff1a9f5e5
4147fb2f5dd24cb6c392811a64828127a188fc13
refs/heads/master
2020-04-26T15:01:42.644950
2019-10-10T14:05:18
2019-10-10T14:05:18
173,634,202
0
0
null
null
null
null
UTF-8
Python
false
false
3,114
py
""" Django settings for DMVProject project. Generated by 'django-admin startproject' using Django 2.0.6. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '5_f4_(jx%bakt6_a8q9*^(a1@cblb(x&jvs=vep+1-8eukn^5d' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'DMVApp', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] ROOT_URLCONF = 'DMVProject.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'DMVProject.wsgi.application' # Database # https://docs.djangoproject.com/en/2.0/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } # Password validation # https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Internationalization # https://docs.djangoproject.com/en/2.0/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.0/howto/static-files/ STATIC_URL = '/static/'
[ "kenn+git@code-crew.org" ]
kenn+git@code-crew.org
35e683f41ad6813c8089049a1ed43996d4a831af
bcb36baf1b3d3eceffba383f72c2b5335cc7048d
/python_workout/01_numeric_types/number_guessing_game/!python3 number_guessing_game.py
5a71fe4ef7ae6708c03cf4022442cff218c6c3da
[]
no_license
paulghaddad/solve-it
0aa1400cefab783f4ea757921811668fb2c9477c
e0f72be0fca82bc0378def5499f7158bafff975b
refs/heads/master
2023-01-24T03:46:24.285793
2021-07-06T19:44:29
2021-07-06T19:44:29
200,406,482
2
0
null
2023-01-06T13:53:43
2019-08-03T18:07:53
Python
UTF-8
Python
false
false
152
py
import random def start_game(): number_to_guess = random.randint(0, 100) print(number_to_guess) if __name__ == '__main__': start_game()
[ "paulh16@gmail.com" ]
paulh16@gmail.com
5dae1ba5cb09b8ee35c5387b0f76546e386b0b05
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
/google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/errors/types/language_code_error.py
a0726e95c29d72848790feafb7e84459bf2e249d
[ "Apache-2.0" ]
permissive
oltoco/googleapis-gen
bf40cfad61b4217aca07068bd4922a86e3bbd2d5
00ca50bdde80906d6f62314ef4f7630b8cdb6e15
refs/heads/master
2023-07-17T22:11:47.848185
2021-08-29T20:39:47
2021-08-29T20:39:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,172
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # import proto # type: ignore __protobuf__ = proto.module( package='google.ads.googleads.v7.errors', marshal='google.ads.googleads.v7', manifest={ 'LanguageCodeErrorEnum', }, ) class LanguageCodeErrorEnum(proto.Message): r"""Container for enum describing language code errors. """ class LanguageCodeError(proto.Enum): r"""Enum describing language code errors.""" UNSPECIFIED = 0 UNKNOWN = 1 LANGUAGE_CODE_NOT_FOUND = 2 INVALID_LANGUAGE_CODE = 3 __all__ = tuple(sorted(__protobuf__.manifest))
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
0ec4af8298774b84cd55dac82affa9063930927e
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/59/usersdata/184/47586/submittedfiles/testes.py
635093611395791b4512a0b9fb6a444cf89aea82
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
119
py
# -*- coding: utf-8 -*- a=float(input('digite a:')) b=float(input('digite b:')) c=a a=b b=c print('%f'%a) print('%f'%b)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
f765574d5ef69fa926857e9add6363407525bb75
9469358a1efb300fc5fdd8de5c17a288fc780c92
/buildsimlearn/random_forest_training.py
ad6a2c7131dc6ca4b2d0f348b2cbca57093c7cda
[ "MIT" ]
permissive
shihao-zhang/buildsimhub_python_api
3a5fc4668f9385d4b98a8eaa3ab7211aa49bef74
daa0b7d2e92820b6b1cdaa981fb9f0d88c375012
refs/heads/master
2020-03-28T02:40:34.693984
2018-09-08T18:30:48
2018-09-08T18:30:48
147,588,888
0
0
MIT
2018-09-05T22:58:49
2018-09-05T22:58:49
null
UTF-8
Python
false
false
3,193
py
""" AUTHOR: Tracy Ruan Date: 6/30/2018 What is this script for? This script extract results from a parametric study from BuildSimCloud, and then use the results to train a random forest tree model. The training accuracy will be demonstrated by MAE and MAPE, and predicted vs. actual plot will be used for comparison. How to use this script? Replace the project_api_key and model_api_key in this script. Make sure that the model_api_key is the one provided after a successful parametric run. Specify the number of trees in the forest (n_estimate) Package required: pandas, numpy, sci-kit learn, matplotlib """ import BuildSimHubAPI as bsh_api import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestRegressor import matplotlib.pyplot as plt """ User Input """ project_api_key = 'f98aadb3-254f-428d-a321-82a6e4b9424c' model_api_key = 'aa09eabf-693f-4437-88cc-a522a25fba01' # The number of trees in the forest. n_estimate = 1000 """ Script """ bsh = bsh_api.BuildSimHubAPIClient() results = bsh.parametric_results(project_api_key, model_api_key) # Collect results result_dict = results.net_site_eui() result_unit = results.last_parameter_unit for i in range(len(result_dict)): tempstr = result_dict["value"] dict = {} for key in result_dict: if key == "model": templist = result_dict[key] tempdict = {} for i in range(len(templist)): tempstr = result_dict["model"][i] templist = tempstr.split(',') for j in range(len(templist)): pair = templist[j].split(': ') if pair[0] not in tempdict: tempdict[pair[0]] = [] tempdict[pair[0]].append(pair[1]) for subkey in tempdict: dict[subkey] = tempdict[subkey] else: dict[key] = result_dict[key] df = pd.DataFrame(dict) values = np.array(df['value']) # axis 1 refers to the columns features_old = df.drop('value', axis=1) features = features_old.drop('model_plot', axis=1) feature_list = list(features.columns) features = np.array(features) print(feature_list) # Split the data into training and testing sets train_features, test_features, train_values, test_values = train_test_split(features, values) # train models rf = RandomForestRegressor(n_estimators=n_estimate) rf.fit(train_features, train_values) # predict values using rf on test data predictions = rf.predict(test_features) # Calculate the absolute errors errors = abs(predictions - test_values) # mean absolute error (MAE) is a measure of difference between two continuous variables print('Mean Absolute Error:', round(np.mean(errors), 2), 'degrees.') # Determine Performance Metrics # Calculate mean absolute percentage error (MAPE) mape = 100 * (errors / test_values) accuracy = 100 - np.mean(mape) print('Accuracy:', round(accuracy, 2), '%.') # Actual value VS predicted value plot plt.scatter(test_values, predictions, s=1) plt.plot([min(test_values), max(test_values)], [min(predictions), max(predictions)], 'red', linewidth=1) plt.ylabel('Actual Value') plt.xlabel('Predicted Value') plt.title('Actual VS Predicted') plt.show()
[ "weilix@alumni.cmu.edu" ]
weilix@alumni.cmu.edu
ca0cec511ce81602c0e5f4261f86caab1a702922
727f1bc2205c88577b419cf0036c029b8c6f7766
/out-bin/py/google/fhir/models/model_test.runfiles/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/contrib/distributions/python/ops/mixture_same_family.py
e3eaa455de5fcb3da70980a403fb936e796fc47f
[ "Apache-2.0" ]
permissive
rasalt/fhir
55cf78feed3596a3101b86f9e9bbf6652c6ed4ad
d49883cc4d4986e11ca66058d5a327691e6e048a
refs/heads/master
2020-04-13T00:16:54.050913
2019-01-15T14:22:15
2019-01-15T14:22:15
160,260,223
0
0
Apache-2.0
2018-12-03T22:07:01
2018-12-03T22:07:01
null
UTF-8
Python
false
false
207
py
/home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/contrib/distributions/python/ops/mixture_same_family.py
[ "ruchika.kharwar@gmail.com" ]
ruchika.kharwar@gmail.com
db0ac2e92149a5025814976f491f49f3d61f8d5f
e064d46561f3bf02c3036f0487356516974bf9d7
/network/network/migrations/0015_auto_20200823_1521.py
f6122c885d6cb77fce81b830d250bcbd8f873cf2
[]
no_license
Koshir0/CS50-WEB-PROGRAMMING-PROJECTS
4629575f904e60b874988c4f779a607a7fdca338
55cc2bdc199e070930f6c54e0fb82340a2beb7cd
refs/heads/main
2022-12-28T20:43:49.119527
2020-10-18T12:57:01
2020-10-18T12:57:01
305,100,948
0
0
null
null
null
null
UTF-8
Python
false
false
820
py
# Generated by Django 3.0.8 on 2020-08-23 15:21 import datetime from django.conf import settings from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('network', '0014_auto_20200823_1047'), ] operations = [ migrations.DeleteModel( name='Person', ), migrations.AlterField( model_name='follower', name='users', field=models.ManyToManyField(blank=True, related_name='following', to=settings.AUTH_USER_MODEL), ), migrations.AlterField( model_name='post', name='created_date', field=models.DateTimeField(default=datetime.datetime(2020, 8, 23, 15, 21, 45, 798323, tzinfo=utc)), ), ]
[ "pentiumdesu@protonmail.com" ]
pentiumdesu@protonmail.com
77deee6cde50602dcf0e33c1dc91f65226cc1bf3
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4129/codes/1723_2498.py
5772432d0b8d595d73c444b8b91d7f7b7c35c5aa
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
362
py
nA = int(input("Numero de habitantes da cidade A:")) nB = int(input("Numero de habitantes da cidade B:")) pA = float(input("Percentual de crescimento populacional da cidade A:")) pB = float(input("Percentual de crescimento populacional da cidade B:")) pA = pA/100 pB = pB/100 ano = 0 while(nA < nB): nA = nA + nA*pA nB = nB + nB*pB ano = ano + 1 print(ano)
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
e809698b9a88e16c651363f39453460aef995741
36163a05070a9cd0daab7c8b18b49053e0365bed
/src/python/WMCore/PilotManager/plugin/PilotLSFSubmitter.py
e55ed316090572e8e85d07d8ff649a6e9087e6e4
[]
no_license
sryufnal/WMCore
472b465d1e9cff8af62b4f4a4587fd3927f82786
9575691bd7383e4de8bcdf83714ec71b3fec6aa7
refs/heads/master
2021-01-16T00:27:39.208561
2011-09-09T20:36:15
2011-09-09T20:36:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,982
py
from ProdAgent.Resources.LSF import LSFConfiguration from PilotManager.CommonUtil import executeCommand #from JobSubmitter.Submitters.BulkSubmitterInterface import makeNonBlocking from JobSubmitter.JSException import JSException import datetime import logging import sys import os class PilotLSFSubmitter: def __init__(self): pass def submitPilot(self, taskName, exe, exePath, inputSandbox): shellScript = exe scriptPath = exePath #start lsf submission command lsfSubmitCommand = 'bsub' #TODO: read this info from configuration lsfSubmitCommand += ' -q 8nh80 ' #creating the log directory. #TODO: get the path information from the configuration lsfLogDir = '/afs/cern.ch/user/k/khawar/scratch2/khawar/logs' if ( lsfLogDir != 'None' ): now = datetime.datetime.today() lsfLogDir += '/%s' % now.strftime("%Y%m%d%H") try: os.mkdir(lsfLogDir) logging.debug("Created directory %s" % lsfLogDir) except OSError, err: # suppress LSF log unless it's about an already exisiting directory if err.errno != errno.EEXIST or not os.path.isdir(lsfLogDir): logging.debug("Can't create directory %s, turning off LSF log" % lsfLogDir) lsfLogDir = 'None' lsfSubmitCommand += ' -g %s' % LSFConfiguration.getGroup() if ( lsfLogDir == "None" ): lsfSubmitCommand += ' -oo /dev/null' else: lsfSubmitCommand += ' -oo %s/%s.lsf.log' % (lsfLogDir,'pilot') lsfSubmitCommand += ' < %s' % os.path.join(scriptPath, shellScript) failureList = [] try: output = executeCommand(lsfSubmitCommand) logging.info("PilotManager.submitPilotJob: %s " % output) logging.info("PilotManager.submitPilotJob: %s " %lsfSubmitCommand ) except RuntimeError, err: failureList.append('jobSpec') if len(failureList) > 0: raise JSException("Submission Failed", FailureList = failureList)
[ "metson@4525493e-7705-40b1-a816-d608a930855b" ]
metson@4525493e-7705-40b1-a816-d608a930855b
dc1015e6367d257ea11d3f6a432b4a82fe767f07
5d9932a1abeae21b8201368e5cf465680f106761
/data_ccxt/async_support/flowbtc.py
70d084c97c952aa02c93cfa65c119bff27e2bf5e
[]
no_license
qqzhangjian789/text
5dc6086e55d8a9494b889fa40cc9730da6bf5940
938be0df0a965aacf13cfb942548b8d2a1c7cec0
refs/heads/master
2023-05-04T11:38:47.178345
2021-05-21T17:44:13
2021-05-21T17:44:13
286,178,737
1
6
null
null
null
null
UTF-8
Python
false
false
9,838
py
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from data_ccxt.async_support.base.exchange import Exchange from data_ccxt.base.errors import ExchangeError class flowbtc(Exchange): def describe(self): return self.deep_extend(super(flowbtc, self).describe(), { 'id': 'flowbtc', 'name': 'flowBTC', 'countries': ['BR'], # Brazil 'version': 'v1', 'rateLimit': 1000, 'has': { 'cancelOrder': True, 'CORS': False, 'createOrder': True, 'fetchBalance': True, 'fetchMarkets': True, 'fetchOrderBook': True, 'fetchTicker': True, 'fetchTrades': True, }, 'urls': { 'logo': 'https://user-images.githubusercontent.com/51840849/87443317-01c0d080-c5fe-11ea-95c2-9ebe1a8fafd9.jpg', 'api': 'https://publicapi.flowbtc.com.br', 'www': 'https://www.flowbtc.com.br', 'doc': 'https://www.flowbtc.com.br/api.html', }, 'requiredCredentials': { 'apiKey': True, 'secret': True, 'uid': True, }, 'api': { 'public': { 'post': [ 'GetTicker', 'GetTrades', 'GetTradesByDate', 'GetOrderBook', 'GetProductPairs', 'GetProducts', ], }, 'private': { 'post': [ 'CreateAccount', 'GetUserInfo', 'SetUserInfo', 'GetAccountInfo', 'GetAccountTrades', 'GetDepositAddresses', 'Withdraw', 'CreateOrder', 'ModifyOrder', 'CancelOrder', 'CancelAllOrders', 'GetAccountOpenOrders', 'GetOrderFee', ], }, }, 'fees': { 'trading': { 'tierBased': False, 'percentage': True, 'maker': 0.0025, 'taker': 0.005, }, }, }) async def fetch_markets(self, params={}): response = await self.publicPostGetProductPairs(params) markets = self.safe_value(response, 'productPairs') result = {} for i in range(0, len(markets)): market = markets[i] id = self.safe_string(market, 'name') baseId = self.safe_string(market, 'product1Label') quoteId = self.safe_string(market, 'product2Label') base = self.safe_currency_code(baseId) quote = self.safe_currency_code(quoteId) precision = { 'amount': self.safe_integer(market, 'product1DecimalPlaces'), 'price': self.safe_integer(market, 'product2DecimalPlaces'), } symbol = base + '/' + quote result[symbol] = { 'id': id, 'symbol': symbol, 'base': base, 'quote': quote, 'baseId': baseId, 'quoteId': quoteId, 'precision': precision, 'limits': { 'amount': { 'min': None, 'max': None, }, 'price': { 'min': None, 'max': None, }, 'cost': { 'min': None, 'max': None, }, }, 'info': market, 'active': None, } return result async def fetch_balance(self, params={}): await self.load_markets() response = await self.privatePostGetAccountInfo(params) balances = self.safe_value(response, 'currencies') result = {'info': response} for i in range(0, len(balances)): balance = balances[i] currencyId = balance['name'] code = self.safe_currency_code(currencyId) account = self.account() account['free'] = self.safe_number(balance, 'balance') account['total'] = self.safe_number(balance, 'hold') result[code] = account return self.parse_balance(result) async def fetch_order_book(self, symbol, limit=None, params={}): await self.load_markets() market = self.market(symbol) request = { 'productPair': market['id'], } response = await self.publicPostGetOrderBook(self.extend(request, params)) return self.parse_order_book(response, None, 'bids', 'asks', 'px', 'qty') async def fetch_ticker(self, symbol, params={}): await self.load_markets() market = self.market(symbol) request = { 'productPair': market['id'], } ticker = await self.publicPostGetTicker(self.extend(request, params)) timestamp = self.milliseconds() last = self.safe_number(ticker, 'last') return { 'symbol': symbol, 'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'high': self.safe_number(ticker, 'high'), 'low': self.safe_number(ticker, 'low'), 'bid': self.safe_number(ticker, 'bid'), 'bidVolume': None, 'ask': self.safe_number(ticker, 'ask'), 'askVolume': None, 'vwap': None, 'open': None, 'close': last, 'last': last, 'previousClose': None, 'change': None, 'percentage': None, 'average': None, 'baseVolume': self.safe_number(ticker, 'volume24hr'), 'quoteVolume': self.safe_number(ticker, 'volume24hrProduct2'), 'info': ticker, } def parse_trade(self, trade, market): timestamp = self.safe_timestamp(trade, 'unixtime') side = 'buy' if (trade['incomingOrderSide'] == 0) else 'sell' id = self.safe_string(trade, 'tid') price = self.safe_number(trade, 'px') amount = self.safe_number(trade, 'qty') cost = None if price is not None: if amount is not None: cost = price * amount return { 'info': trade, 'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'symbol': market['symbol'], 'id': id, 'order': None, 'type': None, 'side': side, 'price': price, 'amount': amount, 'cost': cost, 'takerOrMaker': None, 'fee': None, } async def fetch_trades(self, symbol, since=None, limit=None, params={}): await self.load_markets() market = self.market(symbol) request = { 'ins': market['id'], 'startIndex': -1, } response = await self.publicPostGetTrades(self.extend(request, params)) return self.parse_trades(response['trades'], market, since, limit) async def create_order(self, symbol, type, side, amount, price=None, params={}): await self.load_markets() orderType = 1 if (type == 'market') else 0 request = { 'ins': self.market_id(symbol), 'side': side, 'orderType': orderType, 'qty': amount, 'px': self.price_to_precision(symbol, price), } response = await self.privatePostCreateOrder(self.extend(request, params)) return { 'info': response, 'id': response['serverOrderId'], } async def cancel_order(self, id, symbol=None, params={}): await self.load_markets() if 'ins' in params: request = { 'serverOrderId': id, } return await self.privatePostCancelOrder(self.extend(request, params)) raise ExchangeError(self.id + ' cancelOrder() requires an `ins` symbol parameter for cancelling an order') def sign(self, path, api='public', method='GET', params={}, headers=None, body=None): url = self.urls['api'] + '/' + self.version + '/' + path if api == 'public': if params: body = self.json(params) else: self.check_required_credentials() nonce = self.nonce() auth = str(nonce) + self.uid + self.apiKey signature = self.hmac(self.encode(auth), self.encode(self.secret)) body = self.json(self.extend({ 'apiKey': self.apiKey, 'apiNonce': nonce, 'apiSig': signature.upper(), }, params)) headers = { 'Content-Type': 'application/json', } return {'url': url, 'method': method, 'body': body, 'headers': headers} async def request(self, path, api='public', method='GET', params={}, headers=None, body=None): response = await self.fetch2(path, api, method, params, headers, body) if 'isAccepted' in response: if response['isAccepted']: return response raise ExchangeError(self.id + ' ' + self.json(response))
[ "qqzhangjian000@163.com" ]
qqzhangjian000@163.com
8d17ac9ea8540fcad6f3379d3b9c0310f2bdb19d
ce8728986ab5c180a4be7241bd46e4146b66b1ac
/zinnia/markups.py
737cc66cf3bfb67a13d8d7aaeb2a0e7f80ea139b
[ "BSD-3-Clause" ]
permissive
lpe234/django-blog-zinnia
30f36c30ae61d35c2a16f42e6f88b25d7063aec0
0f531dfcf181d5641c01e83397f92ee415b126e5
refs/heads/develop
2021-01-16T21:31:06.297887
2014-07-19T17:37:07
2014-07-19T17:37:07
22,424,900
0
0
BSD-3-Clause
2019-01-08T09:33:27
2014-07-30T11:31:29
null
UTF-8
Python
false
false
1,777
py
""" Set of" markup" function to transform plain text into HTML for Zinnia. Code originally provided by django.contrib.markups """ import warnings from django.utils.encoding import force_text from django.utils.encoding import force_bytes from zinnia.settings import MARKDOWN_EXTENSIONS from zinnia.settings import RESTRUCTUREDTEXT_SETTINGS def textile(value): """ Textile processing. """ try: import textile except ImportError: warnings.warn("The Python textile library isn't installed.", RuntimeWarning) return value return textile.textile(force_bytes(value), encoding='utf-8', output='utf-8') def markdown(value, extensions=MARKDOWN_EXTENSIONS): """ Markdown processing with optionally using various extensions that python-markdown supports. """ try: import markdown except ImportError: warnings.warn("The Python markdown library isn't installed.", RuntimeWarning) return value extensions = [e for e in extensions.split(',') if e] return markdown.markdown(force_text(value), extensions, safe_mode=False) def restructuredtext(value, settings=RESTRUCTUREDTEXT_SETTINGS): """ RestructuredText processing with optionnally custom settings. """ try: from docutils.core import publish_parts except ImportError: warnings.warn("The Python docutils library isn't installed.", RuntimeWarning) return value parts = publish_parts(source=force_bytes(value), writer_name='html4css1', settings_overrides=settings) return force_text(parts['fragment'])
[ "fantomas42@gmail.com" ]
fantomas42@gmail.com
c2677e6d4766eab1d542f96853a0a012f069af4d
63f9a0d150cbef75f4e6e8246dc7ecac3f3b6d09
/rllib/agents/marwil/marwil_torch_policy.py
e88e5e312f4039b4500907b4980e817edf215ae8
[ "Apache-2.0", "MIT" ]
permissive
ray-project/maze-raylit
79f0a5af9fe4bdc13a2d5b3919da867ed5439aab
a03cd14a50d87d58effea1d749391af530d7609c
refs/heads/master
2023-01-23T04:23:35.178501
2020-12-04T22:34:14
2020-12-04T22:34:14
318,274,659
5
0
Apache-2.0
2020-12-04T22:34:15
2020-12-03T17:47:58
Python
UTF-8
Python
false
false
3,105
py
import ray from ray.rllib.agents.marwil.marwil_tf_policy import postprocess_advantages from ray.rllib.evaluation.postprocessing import Postprocessing from ray.rllib.policy.sample_batch import SampleBatch from ray.rllib.policy.torch_policy_template import build_torch_policy from ray.rllib.utils.framework import try_import_torch from ray.rllib.utils.torch_ops import explained_variance torch, _ = try_import_torch() class ValueNetworkMixin: def __init__(self): def value(ob, prev_action, prev_reward, *state): model_out, _ = self.model({ SampleBatch.CUR_OBS: torch.Tensor([ob]).to(self.device), SampleBatch.PREV_ACTIONS: torch.Tensor([prev_action]).to( self.device), SampleBatch.PREV_REWARDS: torch.Tensor([prev_reward]).to( self.device), "is_training": False, }, [torch.Tensor([s]).to(self.device) for s in state], torch.Tensor([1]).to(self.device)) return self.model.value_function()[0] self._value = value def marwil_loss(policy, model, dist_class, train_batch): model_out, _ = model.from_batch(train_batch) action_dist = dist_class(model_out, model) state_values = model.value_function() advantages = train_batch[Postprocessing.ADVANTAGES] actions = train_batch[SampleBatch.ACTIONS] # Value loss. policy.v_loss = 0.5 * torch.mean(torch.pow(state_values - advantages, 2.0)) # Policy loss. # Advantage estimation. adv = advantages - state_values # Update averaged advantage norm. policy.ma_adv_norm.add_( 1e-6 * (torch.mean(torch.pow(adv, 2.0)) - policy.ma_adv_norm)) # #xponentially weighted advantages. exp_advs = torch.exp(policy.config["beta"] * (adv / (1e-8 + torch.pow(policy.ma_adv_norm, 0.5)))) # log\pi_\theta(a|s) logprobs = action_dist.logp(actions) policy.p_loss = -1.0 * torch.mean(exp_advs.detach() * logprobs) # Combine both losses. policy.total_loss = policy.p_loss + policy.config["vf_coeff"] * \ policy.v_loss explained_var = explained_variance(advantages, state_values) policy.explained_variance = torch.mean(explained_var) return policy.total_loss def stats(policy, train_batch): return { "policy_loss": policy.p_loss, "vf_loss": policy.v_loss, "total_loss": policy.total_loss, "vf_explained_var": policy.explained_variance, } def setup_mixins(policy, obs_space, action_space, config): # Create a var. policy.ma_adv_norm = torch.tensor( [100.0], dtype=torch.float32, requires_grad=False).to(policy.device) # Setup Value branch of our NN. ValueNetworkMixin.__init__(policy) MARWILTorchPolicy = build_torch_policy( name="MARWILTorchPolicy", loss_fn=marwil_loss, get_default_config=lambda: ray.rllib.agents.marwil.marwil.DEFAULT_CONFIG, stats_fn=stats, postprocess_fn=postprocess_advantages, before_loss_init=setup_mixins, mixins=[ValueNetworkMixin])
[ "noreply@github.com" ]
ray-project.noreply@github.com
c4b99133f7194d3e60cfcaa9f64b79ad5277495d
175e4e031471e5cdbc9bcaee2df10f5ec44871d3
/LESSON2b/.history/backend/app_20200531173010.py
cdaa1e321b4fafb420cc3fde75d7fe23d045eec6
[]
no_license
hiyacins/uma_study
c329d29a9c3899ab4feca21b9c47ef546b69b0bd
067e66f258a0c89f7670c645dd7c40feee8536fa
refs/heads/master
2023-01-23T06:40:12.435047
2020-06-17T15:59:34
2020-06-17T15:59:34
239,077,726
0
0
null
2023-01-06T08:36:26
2020-02-08T05:56:52
Python
UTF-8
Python
false
false
505
py
from HiyaLib import * import unittest from flask import Flask, render_template # app = FlaskBuilder(__name__) app = Flask(__name__, static_folder='../frontend/dist/static', template_folder='../frontend/dist') @app.route('/', defaults={'path': ''}) @app.route('/<path:path>') def index(path): print('umauma') return render_template('index.html') if __name__ == "__main__": app.run(port=5001, debug=True) # app.run(host="0.0.0.0", port=80, debug=False) # unittest.main()
[ "hiyacins@gmail.com" ]
hiyacins@gmail.com
620c67ea07fdbda3cf97f05c63848e6b05f90c78
8d5c9369b0fb398c5a6078f6cac43ba8d67202fa
/bscan/wordlists.py
c1c5847de914e2cebdb3e2ca36abc28464a9bc57
[ "MIT" ]
permissive
raystyle/bscan
45191c2c0d26fe450c5d95567b83d47dfcb4c692
1edf0c0e738153a294d5cdc1b69d8f167152d5a2
refs/heads/master
2020-04-25T03:15:37.186913
2019-02-09T22:23:44
2019-02-09T22:23:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
978
py
"""Utilities for dealing with wordlists.""" import fnmatch import os from typing import ( List) def find_wordlist(wordlist_dirs: List[str], fnpattern: str) -> None: """Recursively search wordlist directories for a specified filename.""" for wordlist_dir in wordlist_dirs: _walk_iter = os.walk(wordlist_dir, followlinks=True) for dirpath, dirnames, filenames in _walk_iter: for match in fnmatch.filter(filenames, fnpattern): print(os.path.join(dirpath, match)) def walk_wordlists(wordlist_dirs: List[str]) -> None: """Recursively walk the wordlist directories and print all files.""" for wordlist_dir in wordlist_dirs: _walk_iter = os.walk(wordlist_dir, followlinks=True) for dirpath, dirnames, filenames in _walk_iter: if not filenames: continue print(dirpath) for filename in filenames: print(filename) print()
[ "welch18@vt.edu" ]
welch18@vt.edu
dc9eda48d4dbd451dc8477cffc39ad159ec15d1c
228412b856b7b79986fd460d62273ca8125f0f85
/xpath_01.py
0bb9832e5071f73bf646e4fd37a3877f197b3a2e
[]
no_license
patronsbai/scrapy_spider
d11820dd0ec77e5994e63140a8be85b3ac528d26
11f10a680f1efcd70f44b5cf28834af0e30aafc7
refs/heads/master
2021-05-03T09:20:03.247818
2018-03-08T15:26:16
2018-03-08T15:26:16
120,574,372
0
0
null
null
null
null
UTF-8
Python
false
false
1,654
py
# -*- coding:utf-8 -*- import urllib from lxml import etree # def getHtml(url): # page = urllib.urlopen(url) # html = page.read() # return html if __name__ == '__main__': # text = getHtml("http://image.baidu.com/search/index?tn=baiduimage&ct=201326592&lm=-1&cl=2&ie=gbk&word=%CD%BC%C6%AC&fr=ala&ala=1&alatpl=others&pos=0") # print text text = ''' <div> <ul> <li class="item-0"><a href="link1.html">first item</a></li> <li class="item-1"><a href="link2.html">second item</a></li> <li class="item-inactive"><a href="link31111.html">third item</a></li> <li class="item-1"><a href="link4.html">fourth item</a></li> <li class="item-0"><a href="link5.html">fifth item</a> </ul> </div> ''' # 1.转换成 lxml文档 html_data = etree.HTML(text) # 2. 格式化 # html_result = etree.tostring(html_data) # print html_result # # #3.4 取出 属性的值 # < li class ="item-inactive" > < a href="link3.html" > third item < / a > < / li > result = html_data.xpath('//li[@class="item-inactive"]/a/@href') # result = html_data.xpath('//*[@id="imgid"]/div/ul/li[2]/div/a/img') print result # # #3.5 模糊查询 contains # result1 = html_data.xpath('//li[contains(@class,"1")]') # # print result1 # print html_result #3.掌握的 xpath #3.1取出所有的li标签 # result = html_data.xpath('//li') #3.2获取所有a # result = html_data.xpath('//li/a') # # #3.3 取出内容 # result = html_data.xpath('//li/a/text()') #
[ "xwp_fullstack@163.com" ]
xwp_fullstack@163.com
f5537afaebec1f8d42eb3ac71b04ea9338c4537e
321e58ab3e6b2385bb3549aaaefd56a58c2a51e7
/python/atpic/wikinormalizer.py
e9803fe900f77d7005f49f1ab908174411478cda
[]
no_license
alexmadon/atpic_photosharing
7829118d032344bd9a67818cd50e2c27a228d028
9fdddeb78548dadf946b1951aea0d0632e979156
refs/heads/master
2020-06-02T15:00:29.282979
2017-06-12T17:09:52
2017-06-12T17:09:52
94,095,494
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
#!/usr/bin/python3 import atpic.log xx=atpic.log.setmod("INFO","wikinormalizer") """ Used to normalize the wiki URLs we lowercase, replace white spaces with underscore _ This is important as this the key that is used to store/retrieve wiki pages. """ # may need a permanent redirect to avoid ronts indexing several times one page import atpic.normal def normalize(s): s=atpic.normal.remove_diacritics(s) s=s.lower() s=s.replace(b' ',b'_') return s if __name__ == "__main__": print('hi') inputs=( b'FTP', b'File Upload', b'go-go', b'Europe/France' ) for s in inputs: n=normalize(s) print(s,'->',n)
[ "alex.madon@gmail.com" ]
alex.madon@gmail.com
54106cfada1a41fef08a4045ee85c174de023fc8
77be22f90869e8ad91e8ae15009274e97753e832
/Waganono_Rootme1/solution/whirlpool.py
0c31ca1687e78070f4cf7a80fb4e9fa5a111e065
[]
no_license
lwerdna/crackme
a18b0544c51d04b947bf2d6254c71dc4744dd728
9f9e082805a75120c6084cedb4a9306c6ec3818d
refs/heads/master
2023-02-14T04:55:39.275773
2023-01-22T05:50:25
2023-01-22T05:50:25
192,410,237
4
2
null
null
null
null
UTF-8
Python
false
false
51,077
py
# got this from http://www.bjrn.se/code/whirlpoolpy.txt on Feb 14, 2011 ## whirlpool.py - pure Python implementation of the Whirlpool algorithm. ## Bjorn Edstrom <be@bjrn.se> 16 december 2007. ## ## Copyrights ## ========== ## ## This code is based on the reference implementation by ## Paulo S.L.M. Barreto and Vincent Rijmen. The reference implementation ## is placed in the public domain but has the following headers: ## ## * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS ## * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ## * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ## * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE ## * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ## * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ## * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR ## * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ## * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE ## * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, ## * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ## * ## */ ## /* The code contained in this file (Whirlpool.c) is in the public domain. */ ## ## This Python implementation is therefore also placed in the public domain. try: import psyco psyco.full() except ImportError: pass #block_size = 64 digest_size = 64 digestsize = 64 class Whirlpool: """Return a new Whirlpool object. An optional string argument may be provided; if present, this string will be automatically hashed.""" def __init__(self, arg=None): self.ctx = WhirlpoolStruct() if arg: self.update(arg) self.digest_status = 0 def update(self, arg): """update(arg)""" WhirlpoolAdd(arg, len(arg)*8, self.ctx) self.digest_status = 0 def digest(self): """digest()""" if self.digest_status == 0: self.dig = WhirlpoolFinalize(self.ctx) self.digest_status = 1 return self.dig def hexdigest(self): """hexdigest()""" dig = self.digest() tempstr = '' for d in dig: xxx = '%02x' % (ord(d)) tempstr = tempstr + xxx return tempstr def copy(self): """copy()""" import copy return copy.deepcopy(self) def new(init=None): """Return a new Whirlpool object. An optional string argument may be provided; if present, this string will be automatically hashed.""" return Whirlpool(init) # # Private. # R = 10 C0 = [ 0x18186018c07830d8, 0x23238c2305af4626, 0xc6c63fc67ef991b8, 0xe8e887e8136fcdfb, 0x878726874ca113cb, 0xb8b8dab8a9626d11, 0x0101040108050209, 0x4f4f214f426e9e0d, 0x3636d836adee6c9b, 0xa6a6a2a6590451ff, 0xd2d26fd2debdb90c, 0xf5f5f3f5fb06f70e, 0x7979f979ef80f296, 0x6f6fa16f5fcede30, 0x91917e91fcef3f6d, 0x52525552aa07a4f8, 0x60609d6027fdc047, 0xbcbccabc89766535, 0x9b9b569baccd2b37, 0x8e8e028e048c018a, 0xa3a3b6a371155bd2, 0x0c0c300c603c186c, 0x7b7bf17bff8af684, 0x3535d435b5e16a80, 0x1d1d741de8693af5, 0xe0e0a7e05347ddb3, 0xd7d77bd7f6acb321, 0xc2c22fc25eed999c, 0x2e2eb82e6d965c43, 0x4b4b314b627a9629, 0xfefedffea321e15d, 0x575741578216aed5, 0x15155415a8412abd, 0x7777c1779fb6eee8, 0x3737dc37a5eb6e92, 0xe5e5b3e57b56d79e, 0x9f9f469f8cd92313, 0xf0f0e7f0d317fd23, 0x4a4a354a6a7f9420, 0xdada4fda9e95a944, 0x58587d58fa25b0a2, 0xc9c903c906ca8fcf, 0x2929a429558d527c, 0x0a0a280a5022145a, 0xb1b1feb1e14f7f50, 0xa0a0baa0691a5dc9, 0x6b6bb16b7fdad614, 0x85852e855cab17d9, 0xbdbdcebd8173673c, 0x5d5d695dd234ba8f, 0x1010401080502090, 0xf4f4f7f4f303f507, 0xcbcb0bcb16c08bdd, 0x3e3ef83eedc67cd3, 0x0505140528110a2d, 0x676781671fe6ce78, 0xe4e4b7e47353d597, 0x27279c2725bb4e02, 0x4141194132588273, 0x8b8b168b2c9d0ba7, 0xa7a7a6a7510153f6, 0x7d7de97dcf94fab2, 0x95956e95dcfb3749, 0xd8d847d88e9fad56, 0xfbfbcbfb8b30eb70, 0xeeee9fee2371c1cd, 0x7c7ced7cc791f8bb, 0x6666856617e3cc71, 0xdddd53dda68ea77b, 0x17175c17b84b2eaf, 0x4747014702468e45, 0x9e9e429e84dc211a, 0xcaca0fca1ec589d4, 0x2d2db42d75995a58, 0xbfbfc6bf9179632e, 0x07071c07381b0e3f, 0xadad8ead012347ac, 0x5a5a755aea2fb4b0, 0x838336836cb51bef, 0x3333cc3385ff66b6, 0x636391633ff2c65c, 0x02020802100a0412, 0xaaaa92aa39384993, 0x7171d971afa8e2de, 0xc8c807c80ecf8dc6, 0x19196419c87d32d1, 0x494939497270923b, 0xd9d943d9869aaf5f, 0xf2f2eff2c31df931, 0xe3e3abe34b48dba8, 0x5b5b715be22ab6b9, 0x88881a8834920dbc, 0x9a9a529aa4c8293e, 0x262698262dbe4c0b, 0x3232c8328dfa64bf, 0xb0b0fab0e94a7d59, 0xe9e983e91b6acff2, 0x0f0f3c0f78331e77, 0xd5d573d5e6a6b733, 0x80803a8074ba1df4, 0xbebec2be997c6127, 0xcdcd13cd26de87eb, 0x3434d034bde46889, 0x48483d487a759032, 0xffffdbffab24e354, 0x7a7af57af78ff48d, 0x90907a90f4ea3d64, 0x5f5f615fc23ebe9d, 0x202080201da0403d, 0x6868bd6867d5d00f, 0x1a1a681ad07234ca, 0xaeae82ae192c41b7, 0xb4b4eab4c95e757d, 0x54544d549a19a8ce, 0x93937693ece53b7f, 0x222288220daa442f, 0x64648d6407e9c863, 0xf1f1e3f1db12ff2a, 0x7373d173bfa2e6cc, 0x12124812905a2482, 0x40401d403a5d807a, 0x0808200840281048, 0xc3c32bc356e89b95, 0xecec97ec337bc5df, 0xdbdb4bdb9690ab4d, 0xa1a1bea1611f5fc0, 0x8d8d0e8d1c830791, 0x3d3df43df5c97ac8, 0x97976697ccf1335b, 0x0000000000000000, 0xcfcf1bcf36d483f9, 0x2b2bac2b4587566e, 0x7676c57697b3ece1, 0x8282328264b019e6, 0xd6d67fd6fea9b128, 0x1b1b6c1bd87736c3, 0xb5b5eeb5c15b7774, 0xafaf86af112943be, 0x6a6ab56a77dfd41d, 0x50505d50ba0da0ea, 0x45450945124c8a57, 0xf3f3ebf3cb18fb38, 0x3030c0309df060ad, 0xefef9bef2b74c3c4, 0x3f3ffc3fe5c37eda, 0x55554955921caac7, 0xa2a2b2a2791059db, 0xeaea8fea0365c9e9, 0x656589650fecca6a, 0xbabad2bab9686903, 0x2f2fbc2f65935e4a, 0xc0c027c04ee79d8e, 0xdede5fdebe81a160, 0x1c1c701ce06c38fc, 0xfdfdd3fdbb2ee746, 0x4d4d294d52649a1f, 0x92927292e4e03976, 0x7575c9758fbceafa, 0x06061806301e0c36, 0x8a8a128a249809ae, 0xb2b2f2b2f940794b, 0xe6e6bfe66359d185, 0x0e0e380e70361c7e, 0x1f1f7c1ff8633ee7, 0x6262956237f7c455, 0xd4d477d4eea3b53a, 0xa8a89aa829324d81, 0x96966296c4f43152, 0xf9f9c3f99b3aef62, 0xc5c533c566f697a3, 0x2525942535b14a10, 0x59597959f220b2ab, 0x84842a8454ae15d0, 0x7272d572b7a7e4c5, 0x3939e439d5dd72ec, 0x4c4c2d4c5a619816, 0x5e5e655eca3bbc94, 0x7878fd78e785f09f, 0x3838e038ddd870e5, 0x8c8c0a8c14860598, 0xd1d163d1c6b2bf17, 0xa5a5aea5410b57e4, 0xe2e2afe2434dd9a1, 0x616199612ff8c24e, 0xb3b3f6b3f1457b42, 0x2121842115a54234, 0x9c9c4a9c94d62508, 0x1e1e781ef0663cee, 0x4343114322528661, 0xc7c73bc776fc93b1, 0xfcfcd7fcb32be54f, 0x0404100420140824, 0x51515951b208a2e3, 0x99995e99bcc72f25, 0x6d6da96d4fc4da22, 0x0d0d340d68391a65, 0xfafacffa8335e979, 0xdfdf5bdfb684a369, 0x7e7ee57ed79bfca9, 0x242490243db44819, 0x3b3bec3bc5d776fe, 0xabab96ab313d4b9a, 0xcece1fce3ed181f0, 0x1111441188552299, 0x8f8f068f0c890383, 0x4e4e254e4a6b9c04, 0xb7b7e6b7d1517366, 0xebeb8beb0b60cbe0, 0x3c3cf03cfdcc78c1, 0x81813e817cbf1ffd, 0x94946a94d4fe3540, 0xf7f7fbf7eb0cf31c, 0xb9b9deb9a1676f18, 0x13134c13985f268b, 0x2c2cb02c7d9c5851, 0xd3d36bd3d6b8bb05, 0xe7e7bbe76b5cd38c, 0x6e6ea56e57cbdc39, 0xc4c437c46ef395aa, 0x03030c03180f061b, 0x565645568a13acdc, 0x44440d441a49885e, 0x7f7fe17fdf9efea0, 0xa9a99ea921374f88, 0x2a2aa82a4d825467, 0xbbbbd6bbb16d6b0a, 0xc1c123c146e29f87, 0x53535153a202a6f1, 0xdcdc57dcae8ba572, 0x0b0b2c0b58271653, 0x9d9d4e9d9cd32701, 0x6c6cad6c47c1d82b, 0x3131c43195f562a4, 0x7474cd7487b9e8f3, 0xf6f6fff6e309f115, 0x464605460a438c4c, 0xacac8aac092645a5, 0x89891e893c970fb5, 0x14145014a04428b4, 0xe1e1a3e15b42dfba, 0x16165816b04e2ca6, 0x3a3ae83acdd274f7, 0x6969b9696fd0d206, 0x09092409482d1241, 0x7070dd70a7ade0d7, 0xb6b6e2b6d954716f, 0xd0d067d0ceb7bd1e, 0xeded93ed3b7ec7d6, 0xcccc17cc2edb85e2, 0x424215422a578468, 0x98985a98b4c22d2c, 0xa4a4aaa4490e55ed, 0x2828a0285d885075, 0x5c5c6d5cda31b886, 0xf8f8c7f8933fed6b, 0x8686228644a411c2, ] C1 = [ 0xd818186018c07830, 0x2623238c2305af46, 0xb8c6c63fc67ef991, 0xfbe8e887e8136fcd, 0xcb878726874ca113, 0x11b8b8dab8a9626d, 0x0901010401080502, 0x0d4f4f214f426e9e, 0x9b3636d836adee6c, 0xffa6a6a2a6590451, 0x0cd2d26fd2debdb9, 0x0ef5f5f3f5fb06f7, 0x967979f979ef80f2, 0x306f6fa16f5fcede, 0x6d91917e91fcef3f, 0xf852525552aa07a4, 0x4760609d6027fdc0, 0x35bcbccabc897665, 0x379b9b569baccd2b, 0x8a8e8e028e048c01, 0xd2a3a3b6a371155b, 0x6c0c0c300c603c18, 0x847b7bf17bff8af6, 0x803535d435b5e16a, 0xf51d1d741de8693a, 0xb3e0e0a7e05347dd, 0x21d7d77bd7f6acb3, 0x9cc2c22fc25eed99, 0x432e2eb82e6d965c, 0x294b4b314b627a96, 0x5dfefedffea321e1, 0xd5575741578216ae, 0xbd15155415a8412a, 0xe87777c1779fb6ee, 0x923737dc37a5eb6e, 0x9ee5e5b3e57b56d7, 0x139f9f469f8cd923, 0x23f0f0e7f0d317fd, 0x204a4a354a6a7f94, 0x44dada4fda9e95a9, 0xa258587d58fa25b0, 0xcfc9c903c906ca8f, 0x7c2929a429558d52, 0x5a0a0a280a502214, 0x50b1b1feb1e14f7f, 0xc9a0a0baa0691a5d, 0x146b6bb16b7fdad6, 0xd985852e855cab17, 0x3cbdbdcebd817367, 0x8f5d5d695dd234ba, 0x9010104010805020, 0x07f4f4f7f4f303f5, 0xddcbcb0bcb16c08b, 0xd33e3ef83eedc67c, 0x2d0505140528110a, 0x78676781671fe6ce, 0x97e4e4b7e47353d5, 0x0227279c2725bb4e, 0x7341411941325882, 0xa78b8b168b2c9d0b, 0xf6a7a7a6a7510153, 0xb27d7de97dcf94fa, 0x4995956e95dcfb37, 0x56d8d847d88e9fad, 0x70fbfbcbfb8b30eb, 0xcdeeee9fee2371c1, 0xbb7c7ced7cc791f8, 0x716666856617e3cc, 0x7bdddd53dda68ea7, 0xaf17175c17b84b2e, 0x454747014702468e, 0x1a9e9e429e84dc21, 0xd4caca0fca1ec589, 0x582d2db42d75995a, 0x2ebfbfc6bf917963, 0x3f07071c07381b0e, 0xacadad8ead012347, 0xb05a5a755aea2fb4, 0xef838336836cb51b, 0xb63333cc3385ff66, 0x5c636391633ff2c6, 0x1202020802100a04, 0x93aaaa92aa393849, 0xde7171d971afa8e2, 0xc6c8c807c80ecf8d, 0xd119196419c87d32, 0x3b49493949727092, 0x5fd9d943d9869aaf, 0x31f2f2eff2c31df9, 0xa8e3e3abe34b48db, 0xb95b5b715be22ab6, 0xbc88881a8834920d, 0x3e9a9a529aa4c829, 0x0b262698262dbe4c, 0xbf3232c8328dfa64, 0x59b0b0fab0e94a7d, 0xf2e9e983e91b6acf, 0x770f0f3c0f78331e, 0x33d5d573d5e6a6b7, 0xf480803a8074ba1d, 0x27bebec2be997c61, 0xebcdcd13cd26de87, 0x893434d034bde468, 0x3248483d487a7590, 0x54ffffdbffab24e3, 0x8d7a7af57af78ff4, 0x6490907a90f4ea3d, 0x9d5f5f615fc23ebe, 0x3d202080201da040, 0x0f6868bd6867d5d0, 0xca1a1a681ad07234, 0xb7aeae82ae192c41, 0x7db4b4eab4c95e75, 0xce54544d549a19a8, 0x7f93937693ece53b, 0x2f222288220daa44, 0x6364648d6407e9c8, 0x2af1f1e3f1db12ff, 0xcc7373d173bfa2e6, 0x8212124812905a24, 0x7a40401d403a5d80, 0x4808082008402810, 0x95c3c32bc356e89b, 0xdfecec97ec337bc5, 0x4ddbdb4bdb9690ab, 0xc0a1a1bea1611f5f, 0x918d8d0e8d1c8307, 0xc83d3df43df5c97a, 0x5b97976697ccf133, 0x0000000000000000, 0xf9cfcf1bcf36d483, 0x6e2b2bac2b458756, 0xe17676c57697b3ec, 0xe68282328264b019, 0x28d6d67fd6fea9b1, 0xc31b1b6c1bd87736, 0x74b5b5eeb5c15b77, 0xbeafaf86af112943, 0x1d6a6ab56a77dfd4, 0xea50505d50ba0da0, 0x5745450945124c8a, 0x38f3f3ebf3cb18fb, 0xad3030c0309df060, 0xc4efef9bef2b74c3, 0xda3f3ffc3fe5c37e, 0xc755554955921caa, 0xdba2a2b2a2791059, 0xe9eaea8fea0365c9, 0x6a656589650fecca, 0x03babad2bab96869, 0x4a2f2fbc2f65935e, 0x8ec0c027c04ee79d, 0x60dede5fdebe81a1, 0xfc1c1c701ce06c38, 0x46fdfdd3fdbb2ee7, 0x1f4d4d294d52649a, 0x7692927292e4e039, 0xfa7575c9758fbcea, 0x3606061806301e0c, 0xae8a8a128a249809, 0x4bb2b2f2b2f94079, 0x85e6e6bfe66359d1, 0x7e0e0e380e70361c, 0xe71f1f7c1ff8633e, 0x556262956237f7c4, 0x3ad4d477d4eea3b5, 0x81a8a89aa829324d, 0x5296966296c4f431, 0x62f9f9c3f99b3aef, 0xa3c5c533c566f697, 0x102525942535b14a, 0xab59597959f220b2, 0xd084842a8454ae15, 0xc57272d572b7a7e4, 0xec3939e439d5dd72, 0x164c4c2d4c5a6198, 0x945e5e655eca3bbc, 0x9f7878fd78e785f0, 0xe53838e038ddd870, 0x988c8c0a8c148605, 0x17d1d163d1c6b2bf, 0xe4a5a5aea5410b57, 0xa1e2e2afe2434dd9, 0x4e616199612ff8c2, 0x42b3b3f6b3f1457b, 0x342121842115a542, 0x089c9c4a9c94d625, 0xee1e1e781ef0663c, 0x6143431143225286, 0xb1c7c73bc776fc93, 0x4ffcfcd7fcb32be5, 0x2404041004201408, 0xe351515951b208a2, 0x2599995e99bcc72f, 0x226d6da96d4fc4da, 0x650d0d340d68391a, 0x79fafacffa8335e9, 0x69dfdf5bdfb684a3, 0xa97e7ee57ed79bfc, 0x19242490243db448, 0xfe3b3bec3bc5d776, 0x9aabab96ab313d4b, 0xf0cece1fce3ed181, 0x9911114411885522, 0x838f8f068f0c8903, 0x044e4e254e4a6b9c, 0x66b7b7e6b7d15173, 0xe0ebeb8beb0b60cb, 0xc13c3cf03cfdcc78, 0xfd81813e817cbf1f, 0x4094946a94d4fe35, 0x1cf7f7fbf7eb0cf3, 0x18b9b9deb9a1676f, 0x8b13134c13985f26, 0x512c2cb02c7d9c58, 0x05d3d36bd3d6b8bb, 0x8ce7e7bbe76b5cd3, 0x396e6ea56e57cbdc, 0xaac4c437c46ef395, 0x1b03030c03180f06, 0xdc565645568a13ac, 0x5e44440d441a4988, 0xa07f7fe17fdf9efe, 0x88a9a99ea921374f, 0x672a2aa82a4d8254, 0x0abbbbd6bbb16d6b, 0x87c1c123c146e29f, 0xf153535153a202a6, 0x72dcdc57dcae8ba5, 0x530b0b2c0b582716, 0x019d9d4e9d9cd327, 0x2b6c6cad6c47c1d8, 0xa43131c43195f562, 0xf37474cd7487b9e8, 0x15f6f6fff6e309f1, 0x4c464605460a438c, 0xa5acac8aac092645, 0xb589891e893c970f, 0xb414145014a04428, 0xbae1e1a3e15b42df, 0xa616165816b04e2c, 0xf73a3ae83acdd274, 0x066969b9696fd0d2, 0x4109092409482d12, 0xd77070dd70a7ade0, 0x6fb6b6e2b6d95471, 0x1ed0d067d0ceb7bd, 0xd6eded93ed3b7ec7, 0xe2cccc17cc2edb85, 0x68424215422a5784, 0x2c98985a98b4c22d, 0xeda4a4aaa4490e55, 0x752828a0285d8850, 0x865c5c6d5cda31b8, 0x6bf8f8c7f8933fed, 0xc28686228644a411, ] C2 = [ 0x30d818186018c078, 0x462623238c2305af, 0x91b8c6c63fc67ef9, 0xcdfbe8e887e8136f, 0x13cb878726874ca1, 0x6d11b8b8dab8a962, 0x0209010104010805, 0x9e0d4f4f214f426e, 0x6c9b3636d836adee, 0x51ffa6a6a2a65904, 0xb90cd2d26fd2debd, 0xf70ef5f5f3f5fb06, 0xf2967979f979ef80, 0xde306f6fa16f5fce, 0x3f6d91917e91fcef, 0xa4f852525552aa07, 0xc04760609d6027fd, 0x6535bcbccabc8976, 0x2b379b9b569baccd, 0x018a8e8e028e048c, 0x5bd2a3a3b6a37115, 0x186c0c0c300c603c, 0xf6847b7bf17bff8a, 0x6a803535d435b5e1, 0x3af51d1d741de869, 0xddb3e0e0a7e05347, 0xb321d7d77bd7f6ac, 0x999cc2c22fc25eed, 0x5c432e2eb82e6d96, 0x96294b4b314b627a, 0xe15dfefedffea321, 0xaed5575741578216, 0x2abd15155415a841, 0xeee87777c1779fb6, 0x6e923737dc37a5eb, 0xd79ee5e5b3e57b56, 0x23139f9f469f8cd9, 0xfd23f0f0e7f0d317, 0x94204a4a354a6a7f, 0xa944dada4fda9e95, 0xb0a258587d58fa25, 0x8fcfc9c903c906ca, 0x527c2929a429558d, 0x145a0a0a280a5022, 0x7f50b1b1feb1e14f, 0x5dc9a0a0baa0691a, 0xd6146b6bb16b7fda, 0x17d985852e855cab, 0x673cbdbdcebd8173, 0xba8f5d5d695dd234, 0x2090101040108050, 0xf507f4f4f7f4f303, 0x8bddcbcb0bcb16c0, 0x7cd33e3ef83eedc6, 0x0a2d050514052811, 0xce78676781671fe6, 0xd597e4e4b7e47353, 0x4e0227279c2725bb, 0x8273414119413258, 0x0ba78b8b168b2c9d, 0x53f6a7a7a6a75101, 0xfab27d7de97dcf94, 0x374995956e95dcfb, 0xad56d8d847d88e9f, 0xeb70fbfbcbfb8b30, 0xc1cdeeee9fee2371, 0xf8bb7c7ced7cc791, 0xcc716666856617e3, 0xa77bdddd53dda68e, 0x2eaf17175c17b84b, 0x8e45474701470246, 0x211a9e9e429e84dc, 0x89d4caca0fca1ec5, 0x5a582d2db42d7599, 0x632ebfbfc6bf9179, 0x0e3f07071c07381b, 0x47acadad8ead0123, 0xb4b05a5a755aea2f, 0x1bef838336836cb5, 0x66b63333cc3385ff, 0xc65c636391633ff2, 0x041202020802100a, 0x4993aaaa92aa3938, 0xe2de7171d971afa8, 0x8dc6c8c807c80ecf, 0x32d119196419c87d, 0x923b494939497270, 0xaf5fd9d943d9869a, 0xf931f2f2eff2c31d, 0xdba8e3e3abe34b48, 0xb6b95b5b715be22a, 0x0dbc88881a883492, 0x293e9a9a529aa4c8, 0x4c0b262698262dbe, 0x64bf3232c8328dfa, 0x7d59b0b0fab0e94a, 0xcff2e9e983e91b6a, 0x1e770f0f3c0f7833, 0xb733d5d573d5e6a6, 0x1df480803a8074ba, 0x6127bebec2be997c, 0x87ebcdcd13cd26de, 0x68893434d034bde4, 0x903248483d487a75, 0xe354ffffdbffab24, 0xf48d7a7af57af78f, 0x3d6490907a90f4ea, 0xbe9d5f5f615fc23e, 0x403d202080201da0, 0xd00f6868bd6867d5, 0x34ca1a1a681ad072, 0x41b7aeae82ae192c, 0x757db4b4eab4c95e, 0xa8ce54544d549a19, 0x3b7f93937693ece5, 0x442f222288220daa, 0xc86364648d6407e9, 0xff2af1f1e3f1db12, 0xe6cc7373d173bfa2, 0x248212124812905a, 0x807a40401d403a5d, 0x1048080820084028, 0x9b95c3c32bc356e8, 0xc5dfecec97ec337b, 0xab4ddbdb4bdb9690, 0x5fc0a1a1bea1611f, 0x07918d8d0e8d1c83, 0x7ac83d3df43df5c9, 0x335b97976697ccf1, 0x0000000000000000, 0x83f9cfcf1bcf36d4, 0x566e2b2bac2b4587, 0xece17676c57697b3, 0x19e68282328264b0, 0xb128d6d67fd6fea9, 0x36c31b1b6c1bd877, 0x7774b5b5eeb5c15b, 0x43beafaf86af1129, 0xd41d6a6ab56a77df, 0xa0ea50505d50ba0d, 0x8a5745450945124c, 0xfb38f3f3ebf3cb18, 0x60ad3030c0309df0, 0xc3c4efef9bef2b74, 0x7eda3f3ffc3fe5c3, 0xaac755554955921c, 0x59dba2a2b2a27910, 0xc9e9eaea8fea0365, 0xca6a656589650fec, 0x6903babad2bab968, 0x5e4a2f2fbc2f6593, 0x9d8ec0c027c04ee7, 0xa160dede5fdebe81, 0x38fc1c1c701ce06c, 0xe746fdfdd3fdbb2e, 0x9a1f4d4d294d5264, 0x397692927292e4e0, 0xeafa7575c9758fbc, 0x0c3606061806301e, 0x09ae8a8a128a2498, 0x794bb2b2f2b2f940, 0xd185e6e6bfe66359, 0x1c7e0e0e380e7036, 0x3ee71f1f7c1ff863, 0xc4556262956237f7, 0xb53ad4d477d4eea3, 0x4d81a8a89aa82932, 0x315296966296c4f4, 0xef62f9f9c3f99b3a, 0x97a3c5c533c566f6, 0x4a102525942535b1, 0xb2ab59597959f220, 0x15d084842a8454ae, 0xe4c57272d572b7a7, 0x72ec3939e439d5dd, 0x98164c4c2d4c5a61, 0xbc945e5e655eca3b, 0xf09f7878fd78e785, 0x70e53838e038ddd8, 0x05988c8c0a8c1486, 0xbf17d1d163d1c6b2, 0x57e4a5a5aea5410b, 0xd9a1e2e2afe2434d, 0xc24e616199612ff8, 0x7b42b3b3f6b3f145, 0x42342121842115a5, 0x25089c9c4a9c94d6, 0x3cee1e1e781ef066, 0x8661434311432252, 0x93b1c7c73bc776fc, 0xe54ffcfcd7fcb32b, 0x0824040410042014, 0xa2e351515951b208, 0x2f2599995e99bcc7, 0xda226d6da96d4fc4, 0x1a650d0d340d6839, 0xe979fafacffa8335, 0xa369dfdf5bdfb684, 0xfca97e7ee57ed79b, 0x4819242490243db4, 0x76fe3b3bec3bc5d7, 0x4b9aabab96ab313d, 0x81f0cece1fce3ed1, 0x2299111144118855, 0x03838f8f068f0c89, 0x9c044e4e254e4a6b, 0x7366b7b7e6b7d151, 0xcbe0ebeb8beb0b60, 0x78c13c3cf03cfdcc, 0x1ffd81813e817cbf, 0x354094946a94d4fe, 0xf31cf7f7fbf7eb0c, 0x6f18b9b9deb9a167, 0x268b13134c13985f, 0x58512c2cb02c7d9c, 0xbb05d3d36bd3d6b8, 0xd38ce7e7bbe76b5c, 0xdc396e6ea56e57cb, 0x95aac4c437c46ef3, 0x061b03030c03180f, 0xacdc565645568a13, 0x885e44440d441a49, 0xfea07f7fe17fdf9e, 0x4f88a9a99ea92137, 0x54672a2aa82a4d82, 0x6b0abbbbd6bbb16d, 0x9f87c1c123c146e2, 0xa6f153535153a202, 0xa572dcdc57dcae8b, 0x16530b0b2c0b5827, 0x27019d9d4e9d9cd3, 0xd82b6c6cad6c47c1, 0x62a43131c43195f5, 0xe8f37474cd7487b9, 0xf115f6f6fff6e309, 0x8c4c464605460a43, 0x45a5acac8aac0926, 0x0fb589891e893c97, 0x28b414145014a044, 0xdfbae1e1a3e15b42, 0x2ca616165816b04e, 0x74f73a3ae83acdd2, 0xd2066969b9696fd0, 0x124109092409482d, 0xe0d77070dd70a7ad, 0x716fb6b6e2b6d954, 0xbd1ed0d067d0ceb7, 0xc7d6eded93ed3b7e, 0x85e2cccc17cc2edb, 0x8468424215422a57, 0x2d2c98985a98b4c2, 0x55eda4a4aaa4490e, 0x50752828a0285d88, 0xb8865c5c6d5cda31, 0xed6bf8f8c7f8933f, 0x11c28686228644a4, ] C3 = [ 0x7830d818186018c0, 0xaf462623238c2305, 0xf991b8c6c63fc67e, 0x6fcdfbe8e887e813, 0xa113cb878726874c, 0x626d11b8b8dab8a9, 0x0502090101040108, 0x6e9e0d4f4f214f42, 0xee6c9b3636d836ad, 0x0451ffa6a6a2a659, 0xbdb90cd2d26fd2de, 0x06f70ef5f5f3f5fb, 0x80f2967979f979ef, 0xcede306f6fa16f5f, 0xef3f6d91917e91fc, 0x07a4f852525552aa, 0xfdc04760609d6027, 0x766535bcbccabc89, 0xcd2b379b9b569bac, 0x8c018a8e8e028e04, 0x155bd2a3a3b6a371, 0x3c186c0c0c300c60, 0x8af6847b7bf17bff, 0xe16a803535d435b5, 0x693af51d1d741de8, 0x47ddb3e0e0a7e053, 0xacb321d7d77bd7f6, 0xed999cc2c22fc25e, 0x965c432e2eb82e6d, 0x7a96294b4b314b62, 0x21e15dfefedffea3, 0x16aed55757415782, 0x412abd15155415a8, 0xb6eee87777c1779f, 0xeb6e923737dc37a5, 0x56d79ee5e5b3e57b, 0xd923139f9f469f8c, 0x17fd23f0f0e7f0d3, 0x7f94204a4a354a6a, 0x95a944dada4fda9e, 0x25b0a258587d58fa, 0xca8fcfc9c903c906, 0x8d527c2929a42955, 0x22145a0a0a280a50, 0x4f7f50b1b1feb1e1, 0x1a5dc9a0a0baa069, 0xdad6146b6bb16b7f, 0xab17d985852e855c, 0x73673cbdbdcebd81, 0x34ba8f5d5d695dd2, 0x5020901010401080, 0x03f507f4f4f7f4f3, 0xc08bddcbcb0bcb16, 0xc67cd33e3ef83eed, 0x110a2d0505140528, 0xe6ce78676781671f, 0x53d597e4e4b7e473, 0xbb4e0227279c2725, 0x5882734141194132, 0x9d0ba78b8b168b2c, 0x0153f6a7a7a6a751, 0x94fab27d7de97dcf, 0xfb374995956e95dc, 0x9fad56d8d847d88e, 0x30eb70fbfbcbfb8b, 0x71c1cdeeee9fee23, 0x91f8bb7c7ced7cc7, 0xe3cc716666856617, 0x8ea77bdddd53dda6, 0x4b2eaf17175c17b8, 0x468e454747014702, 0xdc211a9e9e429e84, 0xc589d4caca0fca1e, 0x995a582d2db42d75, 0x79632ebfbfc6bf91, 0x1b0e3f07071c0738, 0x2347acadad8ead01, 0x2fb4b05a5a755aea, 0xb51bef838336836c, 0xff66b63333cc3385, 0xf2c65c636391633f, 0x0a04120202080210, 0x384993aaaa92aa39, 0xa8e2de7171d971af, 0xcf8dc6c8c807c80e, 0x7d32d119196419c8, 0x70923b4949394972, 0x9aaf5fd9d943d986, 0x1df931f2f2eff2c3, 0x48dba8e3e3abe34b, 0x2ab6b95b5b715be2, 0x920dbc88881a8834, 0xc8293e9a9a529aa4, 0xbe4c0b262698262d, 0xfa64bf3232c8328d, 0x4a7d59b0b0fab0e9, 0x6acff2e9e983e91b, 0x331e770f0f3c0f78, 0xa6b733d5d573d5e6, 0xba1df480803a8074, 0x7c6127bebec2be99, 0xde87ebcdcd13cd26, 0xe468893434d034bd, 0x75903248483d487a, 0x24e354ffffdbffab, 0x8ff48d7a7af57af7, 0xea3d6490907a90f4, 0x3ebe9d5f5f615fc2, 0xa0403d202080201d, 0xd5d00f6868bd6867, 0x7234ca1a1a681ad0, 0x2c41b7aeae82ae19, 0x5e757db4b4eab4c9, 0x19a8ce54544d549a, 0xe53b7f93937693ec, 0xaa442f222288220d, 0xe9c86364648d6407, 0x12ff2af1f1e3f1db, 0xa2e6cc7373d173bf, 0x5a24821212481290, 0x5d807a40401d403a, 0x2810480808200840, 0xe89b95c3c32bc356, 0x7bc5dfecec97ec33, 0x90ab4ddbdb4bdb96, 0x1f5fc0a1a1bea161, 0x8307918d8d0e8d1c, 0xc97ac83d3df43df5, 0xf1335b97976697cc, 0x0000000000000000, 0xd483f9cfcf1bcf36, 0x87566e2b2bac2b45, 0xb3ece17676c57697, 0xb019e68282328264, 0xa9b128d6d67fd6fe, 0x7736c31b1b6c1bd8, 0x5b7774b5b5eeb5c1, 0x2943beafaf86af11, 0xdfd41d6a6ab56a77, 0x0da0ea50505d50ba, 0x4c8a574545094512, 0x18fb38f3f3ebf3cb, 0xf060ad3030c0309d, 0x74c3c4efef9bef2b, 0xc37eda3f3ffc3fe5, 0x1caac75555495592, 0x1059dba2a2b2a279, 0x65c9e9eaea8fea03, 0xecca6a656589650f, 0x686903babad2bab9, 0x935e4a2f2fbc2f65, 0xe79d8ec0c027c04e, 0x81a160dede5fdebe, 0x6c38fc1c1c701ce0, 0x2ee746fdfdd3fdbb, 0x649a1f4d4d294d52, 0xe0397692927292e4, 0xbceafa7575c9758f, 0x1e0c360606180630, 0x9809ae8a8a128a24, 0x40794bb2b2f2b2f9, 0x59d185e6e6bfe663, 0x361c7e0e0e380e70, 0x633ee71f1f7c1ff8, 0xf7c4556262956237, 0xa3b53ad4d477d4ee, 0x324d81a8a89aa829, 0xf4315296966296c4, 0x3aef62f9f9c3f99b, 0xf697a3c5c533c566, 0xb14a102525942535, 0x20b2ab59597959f2, 0xae15d084842a8454, 0xa7e4c57272d572b7, 0xdd72ec3939e439d5, 0x6198164c4c2d4c5a, 0x3bbc945e5e655eca, 0x85f09f7878fd78e7, 0xd870e53838e038dd, 0x8605988c8c0a8c14, 0xb2bf17d1d163d1c6, 0x0b57e4a5a5aea541, 0x4dd9a1e2e2afe243, 0xf8c24e616199612f, 0x457b42b3b3f6b3f1, 0xa542342121842115, 0xd625089c9c4a9c94, 0x663cee1e1e781ef0, 0x5286614343114322, 0xfc93b1c7c73bc776, 0x2be54ffcfcd7fcb3, 0x1408240404100420, 0x08a2e351515951b2, 0xc72f2599995e99bc, 0xc4da226d6da96d4f, 0x391a650d0d340d68, 0x35e979fafacffa83, 0x84a369dfdf5bdfb6, 0x9bfca97e7ee57ed7, 0xb44819242490243d, 0xd776fe3b3bec3bc5, 0x3d4b9aabab96ab31, 0xd181f0cece1fce3e, 0x5522991111441188, 0x8903838f8f068f0c, 0x6b9c044e4e254e4a, 0x517366b7b7e6b7d1, 0x60cbe0ebeb8beb0b, 0xcc78c13c3cf03cfd, 0xbf1ffd81813e817c, 0xfe354094946a94d4, 0x0cf31cf7f7fbf7eb, 0x676f18b9b9deb9a1, 0x5f268b13134c1398, 0x9c58512c2cb02c7d, 0xb8bb05d3d36bd3d6, 0x5cd38ce7e7bbe76b, 0xcbdc396e6ea56e57, 0xf395aac4c437c46e, 0x0f061b03030c0318, 0x13acdc565645568a, 0x49885e44440d441a, 0x9efea07f7fe17fdf, 0x374f88a9a99ea921, 0x8254672a2aa82a4d, 0x6d6b0abbbbd6bbb1, 0xe29f87c1c123c146, 0x02a6f153535153a2, 0x8ba572dcdc57dcae, 0x2716530b0b2c0b58, 0xd327019d9d4e9d9c, 0xc1d82b6c6cad6c47, 0xf562a43131c43195, 0xb9e8f37474cd7487, 0x09f115f6f6fff6e3, 0x438c4c464605460a, 0x2645a5acac8aac09, 0x970fb589891e893c, 0x4428b414145014a0, 0x42dfbae1e1a3e15b, 0x4e2ca616165816b0, 0xd274f73a3ae83acd, 0xd0d2066969b9696f, 0x2d12410909240948, 0xade0d77070dd70a7, 0x54716fb6b6e2b6d9, 0xb7bd1ed0d067d0ce, 0x7ec7d6eded93ed3b, 0xdb85e2cccc17cc2e, 0x578468424215422a, 0xc22d2c98985a98b4, 0x0e55eda4a4aaa449, 0x8850752828a0285d, 0x31b8865c5c6d5cda, 0x3fed6bf8f8c7f893, 0xa411c28686228644, ] C4 = [ 0xc07830d818186018, 0x05af462623238c23, 0x7ef991b8c6c63fc6, 0x136fcdfbe8e887e8, 0x4ca113cb87872687, 0xa9626d11b8b8dab8, 0x0805020901010401, 0x426e9e0d4f4f214f, 0xadee6c9b3636d836, 0x590451ffa6a6a2a6, 0xdebdb90cd2d26fd2, 0xfb06f70ef5f5f3f5, 0xef80f2967979f979, 0x5fcede306f6fa16f, 0xfcef3f6d91917e91, 0xaa07a4f852525552, 0x27fdc04760609d60, 0x89766535bcbccabc, 0xaccd2b379b9b569b, 0x048c018a8e8e028e, 0x71155bd2a3a3b6a3, 0x603c186c0c0c300c, 0xff8af6847b7bf17b, 0xb5e16a803535d435, 0xe8693af51d1d741d, 0x5347ddb3e0e0a7e0, 0xf6acb321d7d77bd7, 0x5eed999cc2c22fc2, 0x6d965c432e2eb82e, 0x627a96294b4b314b, 0xa321e15dfefedffe, 0x8216aed557574157, 0xa8412abd15155415, 0x9fb6eee87777c177, 0xa5eb6e923737dc37, 0x7b56d79ee5e5b3e5, 0x8cd923139f9f469f, 0xd317fd23f0f0e7f0, 0x6a7f94204a4a354a, 0x9e95a944dada4fda, 0xfa25b0a258587d58, 0x06ca8fcfc9c903c9, 0x558d527c2929a429, 0x5022145a0a0a280a, 0xe14f7f50b1b1feb1, 0x691a5dc9a0a0baa0, 0x7fdad6146b6bb16b, 0x5cab17d985852e85, 0x8173673cbdbdcebd, 0xd234ba8f5d5d695d, 0x8050209010104010, 0xf303f507f4f4f7f4, 0x16c08bddcbcb0bcb, 0xedc67cd33e3ef83e, 0x28110a2d05051405, 0x1fe6ce7867678167, 0x7353d597e4e4b7e4, 0x25bb4e0227279c27, 0x3258827341411941, 0x2c9d0ba78b8b168b, 0x510153f6a7a7a6a7, 0xcf94fab27d7de97d, 0xdcfb374995956e95, 0x8e9fad56d8d847d8, 0x8b30eb70fbfbcbfb, 0x2371c1cdeeee9fee, 0xc791f8bb7c7ced7c, 0x17e3cc7166668566, 0xa68ea77bdddd53dd, 0xb84b2eaf17175c17, 0x02468e4547470147, 0x84dc211a9e9e429e, 0x1ec589d4caca0fca, 0x75995a582d2db42d, 0x9179632ebfbfc6bf, 0x381b0e3f07071c07, 0x012347acadad8ead, 0xea2fb4b05a5a755a, 0x6cb51bef83833683, 0x85ff66b63333cc33, 0x3ff2c65c63639163, 0x100a041202020802, 0x39384993aaaa92aa, 0xafa8e2de7171d971, 0x0ecf8dc6c8c807c8, 0xc87d32d119196419, 0x7270923b49493949, 0x869aaf5fd9d943d9, 0xc31df931f2f2eff2, 0x4b48dba8e3e3abe3, 0xe22ab6b95b5b715b, 0x34920dbc88881a88, 0xa4c8293e9a9a529a, 0x2dbe4c0b26269826, 0x8dfa64bf3232c832, 0xe94a7d59b0b0fab0, 0x1b6acff2e9e983e9, 0x78331e770f0f3c0f, 0xe6a6b733d5d573d5, 0x74ba1df480803a80, 0x997c6127bebec2be, 0x26de87ebcdcd13cd, 0xbde468893434d034, 0x7a75903248483d48, 0xab24e354ffffdbff, 0xf78ff48d7a7af57a, 0xf4ea3d6490907a90, 0xc23ebe9d5f5f615f, 0x1da0403d20208020, 0x67d5d00f6868bd68, 0xd07234ca1a1a681a, 0x192c41b7aeae82ae, 0xc95e757db4b4eab4, 0x9a19a8ce54544d54, 0xece53b7f93937693, 0x0daa442f22228822, 0x07e9c86364648d64, 0xdb12ff2af1f1e3f1, 0xbfa2e6cc7373d173, 0x905a248212124812, 0x3a5d807a40401d40, 0x4028104808082008, 0x56e89b95c3c32bc3, 0x337bc5dfecec97ec, 0x9690ab4ddbdb4bdb, 0x611f5fc0a1a1bea1, 0x1c8307918d8d0e8d, 0xf5c97ac83d3df43d, 0xccf1335b97976697, 0x0000000000000000, 0x36d483f9cfcf1bcf, 0x4587566e2b2bac2b, 0x97b3ece17676c576, 0x64b019e682823282, 0xfea9b128d6d67fd6, 0xd87736c31b1b6c1b, 0xc15b7774b5b5eeb5, 0x112943beafaf86af, 0x77dfd41d6a6ab56a, 0xba0da0ea50505d50, 0x124c8a5745450945, 0xcb18fb38f3f3ebf3, 0x9df060ad3030c030, 0x2b74c3c4efef9bef, 0xe5c37eda3f3ffc3f, 0x921caac755554955, 0x791059dba2a2b2a2, 0x0365c9e9eaea8fea, 0x0fecca6a65658965, 0xb9686903babad2ba, 0x65935e4a2f2fbc2f, 0x4ee79d8ec0c027c0, 0xbe81a160dede5fde, 0xe06c38fc1c1c701c, 0xbb2ee746fdfdd3fd, 0x52649a1f4d4d294d, 0xe4e0397692927292, 0x8fbceafa7575c975, 0x301e0c3606061806, 0x249809ae8a8a128a, 0xf940794bb2b2f2b2, 0x6359d185e6e6bfe6, 0x70361c7e0e0e380e, 0xf8633ee71f1f7c1f, 0x37f7c45562629562, 0xeea3b53ad4d477d4, 0x29324d81a8a89aa8, 0xc4f4315296966296, 0x9b3aef62f9f9c3f9, 0x66f697a3c5c533c5, 0x35b14a1025259425, 0xf220b2ab59597959, 0x54ae15d084842a84, 0xb7a7e4c57272d572, 0xd5dd72ec3939e439, 0x5a6198164c4c2d4c, 0xca3bbc945e5e655e, 0xe785f09f7878fd78, 0xddd870e53838e038, 0x148605988c8c0a8c, 0xc6b2bf17d1d163d1, 0x410b57e4a5a5aea5, 0x434dd9a1e2e2afe2, 0x2ff8c24e61619961, 0xf1457b42b3b3f6b3, 0x15a5423421218421, 0x94d625089c9c4a9c, 0xf0663cee1e1e781e, 0x2252866143431143, 0x76fc93b1c7c73bc7, 0xb32be54ffcfcd7fc, 0x2014082404041004, 0xb208a2e351515951, 0xbcc72f2599995e99, 0x4fc4da226d6da96d, 0x68391a650d0d340d, 0x8335e979fafacffa, 0xb684a369dfdf5bdf, 0xd79bfca97e7ee57e, 0x3db4481924249024, 0xc5d776fe3b3bec3b, 0x313d4b9aabab96ab, 0x3ed181f0cece1fce, 0x8855229911114411, 0x0c8903838f8f068f, 0x4a6b9c044e4e254e, 0xd1517366b7b7e6b7, 0x0b60cbe0ebeb8beb, 0xfdcc78c13c3cf03c, 0x7cbf1ffd81813e81, 0xd4fe354094946a94, 0xeb0cf31cf7f7fbf7, 0xa1676f18b9b9deb9, 0x985f268b13134c13, 0x7d9c58512c2cb02c, 0xd6b8bb05d3d36bd3, 0x6b5cd38ce7e7bbe7, 0x57cbdc396e6ea56e, 0x6ef395aac4c437c4, 0x180f061b03030c03, 0x8a13acdc56564556, 0x1a49885e44440d44, 0xdf9efea07f7fe17f, 0x21374f88a9a99ea9, 0x4d8254672a2aa82a, 0xb16d6b0abbbbd6bb, 0x46e29f87c1c123c1, 0xa202a6f153535153, 0xae8ba572dcdc57dc, 0x582716530b0b2c0b, 0x9cd327019d9d4e9d, 0x47c1d82b6c6cad6c, 0x95f562a43131c431, 0x87b9e8f37474cd74, 0xe309f115f6f6fff6, 0x0a438c4c46460546, 0x092645a5acac8aac, 0x3c970fb589891e89, 0xa04428b414145014, 0x5b42dfbae1e1a3e1, 0xb04e2ca616165816, 0xcdd274f73a3ae83a, 0x6fd0d2066969b969, 0x482d124109092409, 0xa7ade0d77070dd70, 0xd954716fb6b6e2b6, 0xceb7bd1ed0d067d0, 0x3b7ec7d6eded93ed, 0x2edb85e2cccc17cc, 0x2a57846842421542, 0xb4c22d2c98985a98, 0x490e55eda4a4aaa4, 0x5d8850752828a028, 0xda31b8865c5c6d5c, 0x933fed6bf8f8c7f8, 0x44a411c286862286, ] C5 = [ 0x18c07830d8181860, 0x2305af462623238c, 0xc67ef991b8c6c63f, 0xe8136fcdfbe8e887, 0x874ca113cb878726, 0xb8a9626d11b8b8da, 0x0108050209010104, 0x4f426e9e0d4f4f21, 0x36adee6c9b3636d8, 0xa6590451ffa6a6a2, 0xd2debdb90cd2d26f, 0xf5fb06f70ef5f5f3, 0x79ef80f2967979f9, 0x6f5fcede306f6fa1, 0x91fcef3f6d91917e, 0x52aa07a4f8525255, 0x6027fdc04760609d, 0xbc89766535bcbcca, 0x9baccd2b379b9b56, 0x8e048c018a8e8e02, 0xa371155bd2a3a3b6, 0x0c603c186c0c0c30, 0x7bff8af6847b7bf1, 0x35b5e16a803535d4, 0x1de8693af51d1d74, 0xe05347ddb3e0e0a7, 0xd7f6acb321d7d77b, 0xc25eed999cc2c22f, 0x2e6d965c432e2eb8, 0x4b627a96294b4b31, 0xfea321e15dfefedf, 0x578216aed5575741, 0x15a8412abd151554, 0x779fb6eee87777c1, 0x37a5eb6e923737dc, 0xe57b56d79ee5e5b3, 0x9f8cd923139f9f46, 0xf0d317fd23f0f0e7, 0x4a6a7f94204a4a35, 0xda9e95a944dada4f, 0x58fa25b0a258587d, 0xc906ca8fcfc9c903, 0x29558d527c2929a4, 0x0a5022145a0a0a28, 0xb1e14f7f50b1b1fe, 0xa0691a5dc9a0a0ba, 0x6b7fdad6146b6bb1, 0x855cab17d985852e, 0xbd8173673cbdbdce, 0x5dd234ba8f5d5d69, 0x1080502090101040, 0xf4f303f507f4f4f7, 0xcb16c08bddcbcb0b, 0x3eedc67cd33e3ef8, 0x0528110a2d050514, 0x671fe6ce78676781, 0xe47353d597e4e4b7, 0x2725bb4e0227279c, 0x4132588273414119, 0x8b2c9d0ba78b8b16, 0xa7510153f6a7a7a6, 0x7dcf94fab27d7de9, 0x95dcfb374995956e, 0xd88e9fad56d8d847, 0xfb8b30eb70fbfbcb, 0xee2371c1cdeeee9f, 0x7cc791f8bb7c7ced, 0x6617e3cc71666685, 0xdda68ea77bdddd53, 0x17b84b2eaf17175c, 0x4702468e45474701, 0x9e84dc211a9e9e42, 0xca1ec589d4caca0f, 0x2d75995a582d2db4, 0xbf9179632ebfbfc6, 0x07381b0e3f07071c, 0xad012347acadad8e, 0x5aea2fb4b05a5a75, 0x836cb51bef838336, 0x3385ff66b63333cc, 0x633ff2c65c636391, 0x02100a0412020208, 0xaa39384993aaaa92, 0x71afa8e2de7171d9, 0xc80ecf8dc6c8c807, 0x19c87d32d1191964, 0x497270923b494939, 0xd9869aaf5fd9d943, 0xf2c31df931f2f2ef, 0xe34b48dba8e3e3ab, 0x5be22ab6b95b5b71, 0x8834920dbc88881a, 0x9aa4c8293e9a9a52, 0x262dbe4c0b262698, 0x328dfa64bf3232c8, 0xb0e94a7d59b0b0fa, 0xe91b6acff2e9e983, 0x0f78331e770f0f3c, 0xd5e6a6b733d5d573, 0x8074ba1df480803a, 0xbe997c6127bebec2, 0xcd26de87ebcdcd13, 0x34bde468893434d0, 0x487a75903248483d, 0xffab24e354ffffdb, 0x7af78ff48d7a7af5, 0x90f4ea3d6490907a, 0x5fc23ebe9d5f5f61, 0x201da0403d202080, 0x6867d5d00f6868bd, 0x1ad07234ca1a1a68, 0xae192c41b7aeae82, 0xb4c95e757db4b4ea, 0x549a19a8ce54544d, 0x93ece53b7f939376, 0x220daa442f222288, 0x6407e9c86364648d, 0xf1db12ff2af1f1e3, 0x73bfa2e6cc7373d1, 0x12905a2482121248, 0x403a5d807a40401d, 0x0840281048080820, 0xc356e89b95c3c32b, 0xec337bc5dfecec97, 0xdb9690ab4ddbdb4b, 0xa1611f5fc0a1a1be, 0x8d1c8307918d8d0e, 0x3df5c97ac83d3df4, 0x97ccf1335b979766, 0x0000000000000000, 0xcf36d483f9cfcf1b, 0x2b4587566e2b2bac, 0x7697b3ece17676c5, 0x8264b019e6828232, 0xd6fea9b128d6d67f, 0x1bd87736c31b1b6c, 0xb5c15b7774b5b5ee, 0xaf112943beafaf86, 0x6a77dfd41d6a6ab5, 0x50ba0da0ea50505d, 0x45124c8a57454509, 0xf3cb18fb38f3f3eb, 0x309df060ad3030c0, 0xef2b74c3c4efef9b, 0x3fe5c37eda3f3ffc, 0x55921caac7555549, 0xa2791059dba2a2b2, 0xea0365c9e9eaea8f, 0x650fecca6a656589, 0xbab9686903babad2, 0x2f65935e4a2f2fbc, 0xc04ee79d8ec0c027, 0xdebe81a160dede5f, 0x1ce06c38fc1c1c70, 0xfdbb2ee746fdfdd3, 0x4d52649a1f4d4d29, 0x92e4e03976929272, 0x758fbceafa7575c9, 0x06301e0c36060618, 0x8a249809ae8a8a12, 0xb2f940794bb2b2f2, 0xe66359d185e6e6bf, 0x0e70361c7e0e0e38, 0x1ff8633ee71f1f7c, 0x6237f7c455626295, 0xd4eea3b53ad4d477, 0xa829324d81a8a89a, 0x96c4f43152969662, 0xf99b3aef62f9f9c3, 0xc566f697a3c5c533, 0x2535b14a10252594, 0x59f220b2ab595979, 0x8454ae15d084842a, 0x72b7a7e4c57272d5, 0x39d5dd72ec3939e4, 0x4c5a6198164c4c2d, 0x5eca3bbc945e5e65, 0x78e785f09f7878fd, 0x38ddd870e53838e0, 0x8c148605988c8c0a, 0xd1c6b2bf17d1d163, 0xa5410b57e4a5a5ae, 0xe2434dd9a1e2e2af, 0x612ff8c24e616199, 0xb3f1457b42b3b3f6, 0x2115a54234212184, 0x9c94d625089c9c4a, 0x1ef0663cee1e1e78, 0x4322528661434311, 0xc776fc93b1c7c73b, 0xfcb32be54ffcfcd7, 0x0420140824040410, 0x51b208a2e3515159, 0x99bcc72f2599995e, 0x6d4fc4da226d6da9, 0x0d68391a650d0d34, 0xfa8335e979fafacf, 0xdfb684a369dfdf5b, 0x7ed79bfca97e7ee5, 0x243db44819242490, 0x3bc5d776fe3b3bec, 0xab313d4b9aabab96, 0xce3ed181f0cece1f, 0x1188552299111144, 0x8f0c8903838f8f06, 0x4e4a6b9c044e4e25, 0xb7d1517366b7b7e6, 0xeb0b60cbe0ebeb8b, 0x3cfdcc78c13c3cf0, 0x817cbf1ffd81813e, 0x94d4fe354094946a, 0xf7eb0cf31cf7f7fb, 0xb9a1676f18b9b9de, 0x13985f268b13134c, 0x2c7d9c58512c2cb0, 0xd3d6b8bb05d3d36b, 0xe76b5cd38ce7e7bb, 0x6e57cbdc396e6ea5, 0xc46ef395aac4c437, 0x03180f061b03030c, 0x568a13acdc565645, 0x441a49885e44440d, 0x7fdf9efea07f7fe1, 0xa921374f88a9a99e, 0x2a4d8254672a2aa8, 0xbbb16d6b0abbbbd6, 0xc146e29f87c1c123, 0x53a202a6f1535351, 0xdcae8ba572dcdc57, 0x0b582716530b0b2c, 0x9d9cd327019d9d4e, 0x6c47c1d82b6c6cad, 0x3195f562a43131c4, 0x7487b9e8f37474cd, 0xf6e309f115f6f6ff, 0x460a438c4c464605, 0xac092645a5acac8a, 0x893c970fb589891e, 0x14a04428b4141450, 0xe15b42dfbae1e1a3, 0x16b04e2ca6161658, 0x3acdd274f73a3ae8, 0x696fd0d2066969b9, 0x09482d1241090924, 0x70a7ade0d77070dd, 0xb6d954716fb6b6e2, 0xd0ceb7bd1ed0d067, 0xed3b7ec7d6eded93, 0xcc2edb85e2cccc17, 0x422a578468424215, 0x98b4c22d2c98985a, 0xa4490e55eda4a4aa, 0x285d8850752828a0, 0x5cda31b8865c5c6d, 0xf8933fed6bf8f8c7, 0x8644a411c2868622, ] C6 = [ 0x6018c07830d81818, 0x8c2305af46262323, 0x3fc67ef991b8c6c6, 0x87e8136fcdfbe8e8, 0x26874ca113cb8787, 0xdab8a9626d11b8b8, 0x0401080502090101, 0x214f426e9e0d4f4f, 0xd836adee6c9b3636, 0xa2a6590451ffa6a6, 0x6fd2debdb90cd2d2, 0xf3f5fb06f70ef5f5, 0xf979ef80f2967979, 0xa16f5fcede306f6f, 0x7e91fcef3f6d9191, 0x5552aa07a4f85252, 0x9d6027fdc0476060, 0xcabc89766535bcbc, 0x569baccd2b379b9b, 0x028e048c018a8e8e, 0xb6a371155bd2a3a3, 0x300c603c186c0c0c, 0xf17bff8af6847b7b, 0xd435b5e16a803535, 0x741de8693af51d1d, 0xa7e05347ddb3e0e0, 0x7bd7f6acb321d7d7, 0x2fc25eed999cc2c2, 0xb82e6d965c432e2e, 0x314b627a96294b4b, 0xdffea321e15dfefe, 0x41578216aed55757, 0x5415a8412abd1515, 0xc1779fb6eee87777, 0xdc37a5eb6e923737, 0xb3e57b56d79ee5e5, 0x469f8cd923139f9f, 0xe7f0d317fd23f0f0, 0x354a6a7f94204a4a, 0x4fda9e95a944dada, 0x7d58fa25b0a25858, 0x03c906ca8fcfc9c9, 0xa429558d527c2929, 0x280a5022145a0a0a, 0xfeb1e14f7f50b1b1, 0xbaa0691a5dc9a0a0, 0xb16b7fdad6146b6b, 0x2e855cab17d98585, 0xcebd8173673cbdbd, 0x695dd234ba8f5d5d, 0x4010805020901010, 0xf7f4f303f507f4f4, 0x0bcb16c08bddcbcb, 0xf83eedc67cd33e3e, 0x140528110a2d0505, 0x81671fe6ce786767, 0xb7e47353d597e4e4, 0x9c2725bb4e022727, 0x1941325882734141, 0x168b2c9d0ba78b8b, 0xa6a7510153f6a7a7, 0xe97dcf94fab27d7d, 0x6e95dcfb37499595, 0x47d88e9fad56d8d8, 0xcbfb8b30eb70fbfb, 0x9fee2371c1cdeeee, 0xed7cc791f8bb7c7c, 0x856617e3cc716666, 0x53dda68ea77bdddd, 0x5c17b84b2eaf1717, 0x014702468e454747, 0x429e84dc211a9e9e, 0x0fca1ec589d4caca, 0xb42d75995a582d2d, 0xc6bf9179632ebfbf, 0x1c07381b0e3f0707, 0x8ead012347acadad, 0x755aea2fb4b05a5a, 0x36836cb51bef8383, 0xcc3385ff66b63333, 0x91633ff2c65c6363, 0x0802100a04120202, 0x92aa39384993aaaa, 0xd971afa8e2de7171, 0x07c80ecf8dc6c8c8, 0x6419c87d32d11919, 0x39497270923b4949, 0x43d9869aaf5fd9d9, 0xeff2c31df931f2f2, 0xabe34b48dba8e3e3, 0x715be22ab6b95b5b, 0x1a8834920dbc8888, 0x529aa4c8293e9a9a, 0x98262dbe4c0b2626, 0xc8328dfa64bf3232, 0xfab0e94a7d59b0b0, 0x83e91b6acff2e9e9, 0x3c0f78331e770f0f, 0x73d5e6a6b733d5d5, 0x3a8074ba1df48080, 0xc2be997c6127bebe, 0x13cd26de87ebcdcd, 0xd034bde468893434, 0x3d487a7590324848, 0xdbffab24e354ffff, 0xf57af78ff48d7a7a, 0x7a90f4ea3d649090, 0x615fc23ebe9d5f5f, 0x80201da0403d2020, 0xbd6867d5d00f6868, 0x681ad07234ca1a1a, 0x82ae192c41b7aeae, 0xeab4c95e757db4b4, 0x4d549a19a8ce5454, 0x7693ece53b7f9393, 0x88220daa442f2222, 0x8d6407e9c8636464, 0xe3f1db12ff2af1f1, 0xd173bfa2e6cc7373, 0x4812905a24821212, 0x1d403a5d807a4040, 0x2008402810480808, 0x2bc356e89b95c3c3, 0x97ec337bc5dfecec, 0x4bdb9690ab4ddbdb, 0xbea1611f5fc0a1a1, 0x0e8d1c8307918d8d, 0xf43df5c97ac83d3d, 0x6697ccf1335b9797, 0x0000000000000000, 0x1bcf36d483f9cfcf, 0xac2b4587566e2b2b, 0xc57697b3ece17676, 0x328264b019e68282, 0x7fd6fea9b128d6d6, 0x6c1bd87736c31b1b, 0xeeb5c15b7774b5b5, 0x86af112943beafaf, 0xb56a77dfd41d6a6a, 0x5d50ba0da0ea5050, 0x0945124c8a574545, 0xebf3cb18fb38f3f3, 0xc0309df060ad3030, 0x9bef2b74c3c4efef, 0xfc3fe5c37eda3f3f, 0x4955921caac75555, 0xb2a2791059dba2a2, 0x8fea0365c9e9eaea, 0x89650fecca6a6565, 0xd2bab9686903baba, 0xbc2f65935e4a2f2f, 0x27c04ee79d8ec0c0, 0x5fdebe81a160dede, 0x701ce06c38fc1c1c, 0xd3fdbb2ee746fdfd, 0x294d52649a1f4d4d, 0x7292e4e039769292, 0xc9758fbceafa7575, 0x1806301e0c360606, 0x128a249809ae8a8a, 0xf2b2f940794bb2b2, 0xbfe66359d185e6e6, 0x380e70361c7e0e0e, 0x7c1ff8633ee71f1f, 0x956237f7c4556262, 0x77d4eea3b53ad4d4, 0x9aa829324d81a8a8, 0x6296c4f431529696, 0xc3f99b3aef62f9f9, 0x33c566f697a3c5c5, 0x942535b14a102525, 0x7959f220b2ab5959, 0x2a8454ae15d08484, 0xd572b7a7e4c57272, 0xe439d5dd72ec3939, 0x2d4c5a6198164c4c, 0x655eca3bbc945e5e, 0xfd78e785f09f7878, 0xe038ddd870e53838, 0x0a8c148605988c8c, 0x63d1c6b2bf17d1d1, 0xaea5410b57e4a5a5, 0xafe2434dd9a1e2e2, 0x99612ff8c24e6161, 0xf6b3f1457b42b3b3, 0x842115a542342121, 0x4a9c94d625089c9c, 0x781ef0663cee1e1e, 0x1143225286614343, 0x3bc776fc93b1c7c7, 0xd7fcb32be54ffcfc, 0x1004201408240404, 0x5951b208a2e35151, 0x5e99bcc72f259999, 0xa96d4fc4da226d6d, 0x340d68391a650d0d, 0xcffa8335e979fafa, 0x5bdfb684a369dfdf, 0xe57ed79bfca97e7e, 0x90243db448192424, 0xec3bc5d776fe3b3b, 0x96ab313d4b9aabab, 0x1fce3ed181f0cece, 0x4411885522991111, 0x068f0c8903838f8f, 0x254e4a6b9c044e4e, 0xe6b7d1517366b7b7, 0x8beb0b60cbe0ebeb, 0xf03cfdcc78c13c3c, 0x3e817cbf1ffd8181, 0x6a94d4fe35409494, 0xfbf7eb0cf31cf7f7, 0xdeb9a1676f18b9b9, 0x4c13985f268b1313, 0xb02c7d9c58512c2c, 0x6bd3d6b8bb05d3d3, 0xbbe76b5cd38ce7e7, 0xa56e57cbdc396e6e, 0x37c46ef395aac4c4, 0x0c03180f061b0303, 0x45568a13acdc5656, 0x0d441a49885e4444, 0xe17fdf9efea07f7f, 0x9ea921374f88a9a9, 0xa82a4d8254672a2a, 0xd6bbb16d6b0abbbb, 0x23c146e29f87c1c1, 0x5153a202a6f15353, 0x57dcae8ba572dcdc, 0x2c0b582716530b0b, 0x4e9d9cd327019d9d, 0xad6c47c1d82b6c6c, 0xc43195f562a43131, 0xcd7487b9e8f37474, 0xfff6e309f115f6f6, 0x05460a438c4c4646, 0x8aac092645a5acac, 0x1e893c970fb58989, 0x5014a04428b41414, 0xa3e15b42dfbae1e1, 0x5816b04e2ca61616, 0xe83acdd274f73a3a, 0xb9696fd0d2066969, 0x2409482d12410909, 0xdd70a7ade0d77070, 0xe2b6d954716fb6b6, 0x67d0ceb7bd1ed0d0, 0x93ed3b7ec7d6eded, 0x17cc2edb85e2cccc, 0x15422a5784684242, 0x5a98b4c22d2c9898, 0xaaa4490e55eda4a4, 0xa0285d8850752828, 0x6d5cda31b8865c5c, 0xc7f8933fed6bf8f8, 0x228644a411c28686, ] C7 = [ 0x186018c07830d818, 0x238c2305af462623, 0xc63fc67ef991b8c6, 0xe887e8136fcdfbe8, 0x8726874ca113cb87, 0xb8dab8a9626d11b8, 0x0104010805020901, 0x4f214f426e9e0d4f, 0x36d836adee6c9b36, 0xa6a2a6590451ffa6, 0xd26fd2debdb90cd2, 0xf5f3f5fb06f70ef5, 0x79f979ef80f29679, 0x6fa16f5fcede306f, 0x917e91fcef3f6d91, 0x525552aa07a4f852, 0x609d6027fdc04760, 0xbccabc89766535bc, 0x9b569baccd2b379b, 0x8e028e048c018a8e, 0xa3b6a371155bd2a3, 0x0c300c603c186c0c, 0x7bf17bff8af6847b, 0x35d435b5e16a8035, 0x1d741de8693af51d, 0xe0a7e05347ddb3e0, 0xd77bd7f6acb321d7, 0xc22fc25eed999cc2, 0x2eb82e6d965c432e, 0x4b314b627a96294b, 0xfedffea321e15dfe, 0x5741578216aed557, 0x155415a8412abd15, 0x77c1779fb6eee877, 0x37dc37a5eb6e9237, 0xe5b3e57b56d79ee5, 0x9f469f8cd923139f, 0xf0e7f0d317fd23f0, 0x4a354a6a7f94204a, 0xda4fda9e95a944da, 0x587d58fa25b0a258, 0xc903c906ca8fcfc9, 0x29a429558d527c29, 0x0a280a5022145a0a, 0xb1feb1e14f7f50b1, 0xa0baa0691a5dc9a0, 0x6bb16b7fdad6146b, 0x852e855cab17d985, 0xbdcebd8173673cbd, 0x5d695dd234ba8f5d, 0x1040108050209010, 0xf4f7f4f303f507f4, 0xcb0bcb16c08bddcb, 0x3ef83eedc67cd33e, 0x05140528110a2d05, 0x6781671fe6ce7867, 0xe4b7e47353d597e4, 0x279c2725bb4e0227, 0x4119413258827341, 0x8b168b2c9d0ba78b, 0xa7a6a7510153f6a7, 0x7de97dcf94fab27d, 0x956e95dcfb374995, 0xd847d88e9fad56d8, 0xfbcbfb8b30eb70fb, 0xee9fee2371c1cdee, 0x7ced7cc791f8bb7c, 0x66856617e3cc7166, 0xdd53dda68ea77bdd, 0x175c17b84b2eaf17, 0x47014702468e4547, 0x9e429e84dc211a9e, 0xca0fca1ec589d4ca, 0x2db42d75995a582d, 0xbfc6bf9179632ebf, 0x071c07381b0e3f07, 0xad8ead012347acad, 0x5a755aea2fb4b05a, 0x8336836cb51bef83, 0x33cc3385ff66b633, 0x6391633ff2c65c63, 0x020802100a041202, 0xaa92aa39384993aa, 0x71d971afa8e2de71, 0xc807c80ecf8dc6c8, 0x196419c87d32d119, 0x4939497270923b49, 0xd943d9869aaf5fd9, 0xf2eff2c31df931f2, 0xe3abe34b48dba8e3, 0x5b715be22ab6b95b, 0x881a8834920dbc88, 0x9a529aa4c8293e9a, 0x2698262dbe4c0b26, 0x32c8328dfa64bf32, 0xb0fab0e94a7d59b0, 0xe983e91b6acff2e9, 0x0f3c0f78331e770f, 0xd573d5e6a6b733d5, 0x803a8074ba1df480, 0xbec2be997c6127be, 0xcd13cd26de87ebcd, 0x34d034bde4688934, 0x483d487a75903248, 0xffdbffab24e354ff, 0x7af57af78ff48d7a, 0x907a90f4ea3d6490, 0x5f615fc23ebe9d5f, 0x2080201da0403d20, 0x68bd6867d5d00f68, 0x1a681ad07234ca1a, 0xae82ae192c41b7ae, 0xb4eab4c95e757db4, 0x544d549a19a8ce54, 0x937693ece53b7f93, 0x2288220daa442f22, 0x648d6407e9c86364, 0xf1e3f1db12ff2af1, 0x73d173bfa2e6cc73, 0x124812905a248212, 0x401d403a5d807a40, 0x0820084028104808, 0xc32bc356e89b95c3, 0xec97ec337bc5dfec, 0xdb4bdb9690ab4ddb, 0xa1bea1611f5fc0a1, 0x8d0e8d1c8307918d, 0x3df43df5c97ac83d, 0x976697ccf1335b97, 0x0000000000000000, 0xcf1bcf36d483f9cf, 0x2bac2b4587566e2b, 0x76c57697b3ece176, 0x82328264b019e682, 0xd67fd6fea9b128d6, 0x1b6c1bd87736c31b, 0xb5eeb5c15b7774b5, 0xaf86af112943beaf, 0x6ab56a77dfd41d6a, 0x505d50ba0da0ea50, 0x450945124c8a5745, 0xf3ebf3cb18fb38f3, 0x30c0309df060ad30, 0xef9bef2b74c3c4ef, 0x3ffc3fe5c37eda3f, 0x554955921caac755, 0xa2b2a2791059dba2, 0xea8fea0365c9e9ea, 0x6589650fecca6a65, 0xbad2bab9686903ba, 0x2fbc2f65935e4a2f, 0xc027c04ee79d8ec0, 0xde5fdebe81a160de, 0x1c701ce06c38fc1c, 0xfdd3fdbb2ee746fd, 0x4d294d52649a1f4d, 0x927292e4e0397692, 0x75c9758fbceafa75, 0x061806301e0c3606, 0x8a128a249809ae8a, 0xb2f2b2f940794bb2, 0xe6bfe66359d185e6, 0x0e380e70361c7e0e, 0x1f7c1ff8633ee71f, 0x62956237f7c45562, 0xd477d4eea3b53ad4, 0xa89aa829324d81a8, 0x966296c4f4315296, 0xf9c3f99b3aef62f9, 0xc533c566f697a3c5, 0x25942535b14a1025, 0x597959f220b2ab59, 0x842a8454ae15d084, 0x72d572b7a7e4c572, 0x39e439d5dd72ec39, 0x4c2d4c5a6198164c, 0x5e655eca3bbc945e, 0x78fd78e785f09f78, 0x38e038ddd870e538, 0x8c0a8c148605988c, 0xd163d1c6b2bf17d1, 0xa5aea5410b57e4a5, 0xe2afe2434dd9a1e2, 0x6199612ff8c24e61, 0xb3f6b3f1457b42b3, 0x21842115a5423421, 0x9c4a9c94d625089c, 0x1e781ef0663cee1e, 0x4311432252866143, 0xc73bc776fc93b1c7, 0xfcd7fcb32be54ffc, 0x0410042014082404, 0x515951b208a2e351, 0x995e99bcc72f2599, 0x6da96d4fc4da226d, 0x0d340d68391a650d, 0xfacffa8335e979fa, 0xdf5bdfb684a369df, 0x7ee57ed79bfca97e, 0x2490243db4481924, 0x3bec3bc5d776fe3b, 0xab96ab313d4b9aab, 0xce1fce3ed181f0ce, 0x1144118855229911, 0x8f068f0c8903838f, 0x4e254e4a6b9c044e, 0xb7e6b7d1517366b7, 0xeb8beb0b60cbe0eb, 0x3cf03cfdcc78c13c, 0x813e817cbf1ffd81, 0x946a94d4fe354094, 0xf7fbf7eb0cf31cf7, 0xb9deb9a1676f18b9, 0x134c13985f268b13, 0x2cb02c7d9c58512c, 0xd36bd3d6b8bb05d3, 0xe7bbe76b5cd38ce7, 0x6ea56e57cbdc396e, 0xc437c46ef395aac4, 0x030c03180f061b03, 0x5645568a13acdc56, 0x440d441a49885e44, 0x7fe17fdf9efea07f, 0xa99ea921374f88a9, 0x2aa82a4d8254672a, 0xbbd6bbb16d6b0abb, 0xc123c146e29f87c1, 0x535153a202a6f153, 0xdc57dcae8ba572dc, 0x0b2c0b582716530b, 0x9d4e9d9cd327019d, 0x6cad6c47c1d82b6c, 0x31c43195f562a431, 0x74cd7487b9e8f374, 0xf6fff6e309f115f6, 0x4605460a438c4c46, 0xac8aac092645a5ac, 0x891e893c970fb589, 0x145014a04428b414, 0xe1a3e15b42dfbae1, 0x165816b04e2ca616, 0x3ae83acdd274f73a, 0x69b9696fd0d20669, 0x092409482d124109, 0x70dd70a7ade0d770, 0xb6e2b6d954716fb6, 0xd067d0ceb7bd1ed0, 0xed93ed3b7ec7d6ed, 0xcc17cc2edb85e2cc, 0x4215422a57846842, 0x985a98b4c22d2c98, 0xa4aaa4490e55eda4, 0x28a0285d88507528, 0x5c6d5cda31b8865c, 0xf8c7f8933fed6bf8, 0x86228644a411c286, ] rc = [ 0x0000000000000000, 0x1823c6e887b8014f, 0x36a6d2f5796f9152, 0x60bc9b8ea30c7b35, 0x1de0d7c22e4bfe57, 0x157737e59ff04ada, 0x58c9290ab1a06b85, 0xbd5d10f4cb3e0567, 0xe427418ba77d95d8, 0xfbee7c66dd17479e, 0xca2dbf07ad5a8333 ] DIGESTBYTES = 64 class WhirlpoolStruct: def __init__(self): self.bitLength = [0]*32 self.buffer = [0]*64 self.bufferBits = 0 self.bufferPos = 0 self.hash = [0]*8 def WhirlpoolInit(ctx): ctx = WhirlpoolStruct() return def WhirlpoolAdd(source, sourceBits, ctx): source = [ord(s)&0xff for s in source] carry = 0 value = sourceBits i = 31 while i >= 0 and value != 0: carry += ctx.bitLength[i] + ((value % 0x100000000) & 0xff) ctx.bitLength[i] = carry % 0x100 carry >>= 8 value >>= 8 i -= 1 bufferBits = ctx.bufferBits bufferPos = ctx.bufferPos sourcePos = 0 sourceGap = (8 - (sourceBits & 7)) & 7 bufferRem = ctx.bufferBits & 7 buffr = ctx.buffer while sourceBits > 8: b = ((source[sourcePos] << sourceGap) & 0xff) | ((source[sourcePos + 1] & 0xff) >> (8 - sourceGap)) buffr[bufferPos] |= (b >> bufferRem) % 0x100 bufferPos += 1 bufferBits += 8 - bufferRem if bufferBits == 512: processBuffer(ctx) bufferBits = 0 bufferPos = 0 buffr[bufferPos] = b << (8 - bufferRem) bufferBits += bufferRem sourceBits -= 8 sourcePos += 1 b = (source[sourcePos] << sourceGap) & 0xff buffr[bufferPos] |= b >> bufferRem if bufferRem + sourceBits < 8: bufferBits += sourceBits else: bufferPos += 1 bufferBits += 8 - bufferRem sourceBits -= 8 - bufferRem if bufferBits == 512: processBuffer(ctx) bufferBits = 0 bufferPos = 0 buffr[bufferPos] = b << (8 - bufferRem) bufferBits += sourceBits ctx.bufferBits = bufferBits ctx.bufferPos = bufferPos def WhirlpoolFinalize(ctx): bufferPos = ctx.bufferPos ctx.buffer[bufferPos] |= 0x80 >> (ctx.bufferBits & 7) bufferPos += 1 if bufferPos > 32: if bufferPos < 64: for i in xrange(64 - bufferPos): ctx.buffer[bufferPos+i] = 0 processBuffer(ctx) bufferPos = 0 if bufferPos < 32: for i in xrange(32 - bufferPos): ctx.buffer[bufferPos+i] = 0 bufferPos = 32 for i in xrange(32): ctx.buffer[32+i] = ctx.bitLength[i] processBuffer(ctx) digest = '' for i in xrange(8): digest += chr((ctx.hash[i] >> 56) % 0x100) digest += chr((ctx.hash[i] >> 48) % 0x100) digest += chr((ctx.hash[i] >> 40) % 0x100) digest += chr((ctx.hash[i] >> 32) % 0x100) digest += chr((ctx.hash[i] >> 24) % 0x100) digest += chr((ctx.hash[i] >> 16) % 0x100) digest += chr((ctx.hash[i] >> 8) % 0x100) digest += chr((ctx.hash[i]) % 0x100) ctx.bufferPos = bufferPos return digest def CDo(buf, a0, a1, a2, a3, a4, a5, a6, a7): return C0[((buf[a0] >> 56) % 0x100000000) & 0xff] ^ \ C1[((buf[a1] >> 48) % 0x100000000) & 0xff] ^ \ C2[((buf[a2] >> 40) % 0x100000000) & 0xff] ^ \ C3[((buf[a3] >> 32) % 0x100000000) & 0xff] ^ \ C4[((buf[a4] >> 24) % 0x100000000) & 0xff] ^ \ C5[((buf[a5] >> 16) % 0x100000000) & 0xff] ^ \ C6[((buf[a6] >> 8) % 0x100000000) & 0xff] ^ \ C7[((buf[a7] >> 0) % 0x100000000) & 0xff] def processBuffer(ctx): i, r = 0, 0 K = [0]*8 block = [0]*8 state = [0]*8 L = [0]*8 buffr = ctx.buffer buf_cnt = 0 for i in xrange(8): block[i] = ((buffr[buf_cnt+0] & 0xff) << 56) ^ \ ((buffr[buf_cnt+1] & 0xff) << 48) ^ \ ((buffr[buf_cnt+2] & 0xff) << 40) ^ \ ((buffr[buf_cnt+3] & 0xff) << 32) ^ \ ((buffr[buf_cnt+4] & 0xff) << 24) ^ \ ((buffr[buf_cnt+5] & 0xff) << 16) ^ \ ((buffr[buf_cnt+6] & 0xff) << 8) ^ \ ((buffr[buf_cnt+7] & 0xff) << 0) buf_cnt += 8 for i in xrange(8): K[i] = ctx.hash[i] state[i] = block[i] ^ K[i] for r in xrange(1, R+1): L[0] = CDo(K, 0, 7, 6, 5, 4, 3, 2, 1) ^ rc[r] L[1] = CDo(K, 1, 0, 7, 6, 5, 4, 3, 2) L[2] = CDo(K, 2, 1, 0, 7, 6, 5, 4, 3) L[3] = CDo(K, 3, 2, 1, 0, 7, 6, 5, 4) L[4] = CDo(K, 4, 3, 2, 1, 0, 7, 6, 5) L[5] = CDo(K, 5, 4, 3, 2, 1, 0, 7, 6) L[6] = CDo(K, 6, 5, 4, 3, 2, 1, 0, 7) L[7] = CDo(K, 7, 6, 5, 4, 3, 2, 1, 0) for i in xrange(8): K[i] = L[i] L[0] = CDo(state, 0, 7, 6, 5, 4, 3, 2, 1) ^ K[0] L[1] = CDo(state, 1, 0, 7, 6, 5, 4, 3, 2) ^ K[1] L[2] = CDo(state, 2, 1, 0, 7, 6, 5, 4, 3) ^ K[2] L[3] = CDo(state, 3, 2, 1, 0, 7, 6, 5, 4) ^ K[3] L[4] = CDo(state, 4, 3, 2, 1, 0, 7, 6, 5) ^ K[4] L[5] = CDo(state, 5, 4, 3, 2, 1, 0, 7, 6) ^ K[5] L[6] = CDo(state, 6, 5, 4, 3, 2, 1, 0, 7) ^ K[6] L[7] = CDo(state, 7, 6, 5, 4, 3, 2, 1, 0) ^ K[7] for i in xrange(8): state[i] = L[i] # apply the Miyaguchi-Preneel compression function for i in xrange(8): ctx.hash[i] ^= state[i] ^ block[i] return # # Tests. # assert Whirlpool('The quick brown fox jumps over the lazy dog').hexdigest() == \ 'b97de512e91e3828b40d2b0fdce9ceb3c4a71f9bea8d88e75c4fa854df36725fd2b52eb6544edcacd6f8beddfea403cb55ae31f03ad62a5ef54e42ee82c3fb35' assert Whirlpool('The quick brown fox jumps over the lazy eog').hexdigest() == \ 'c27ba124205f72e6847f3e19834f925cc666d0974167af915bb462420ed40cc50900d85a1f923219d832357750492d5c143011a76988344c2635e69d06f2d38c' assert Whirlpool('').hexdigest() == \ '19fa61d75522a4669b44e39c1d2e1726c530232130d407f89afee0964997f7a73e83be698b288febcf88e3e03c4f0757ea8964e59b63d93708b138cc42a66eb3'
[ "andrew@vector35.com" ]
andrew@vector35.com
446e8f9818661b75d0c7decdc55074d7a962adc8
f6d2385cd8eb896e17c5e72ac75abe6a0ba28659
/templates/inscription/yahou/page1.py
d43be9d9354f71aca9b5023866ebc03b47f17270
[]
no_license
pastrouveedespeudo/greffegreffe
fba94c9169c3d021714eabf1a45812ca762cfe9d
8ebe4d555246aed26e705671014a260a23148a6a
refs/heads/master
2020-06-12T14:50:17.590418
2019-07-04T14:01:25
2019-07-04T14:01:25
194,335,511
0
0
null
null
null
null
UTF-8
Python
false
false
126,710
py
<!DOCTYPE html> <html class="no-js"> <head> <title>Yahoo - connexion</title> <meta http-equav="Content-Type" content="text/html;charset=utf-8"> <meta name="google-site-verification" content="yOTFyUBPTnXtuk2cPpqfv7ZvZ960JgqsV8FomN3n7Y0" /> <meta name="referrer" content="origin-when-cross-origin"> <style type="text/css">/*! skeletor-io - v1.0.34 *//*! normalize.css v3.0.2 | MIT License | git.io/normalize */img,legend{border:0}h1,h2,h3{letter-spacing:-1.7px}pre,textarea{overflow:auto}.container,.orko .ictrl,sub,sup{position:relative}.ltr,body{direction:ltr}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}code,kbd,pre,samp{font-family:monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}body,h6{line-height:1.6}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px}legend{padding:0}table{border-collapse:collapse;border-spacing:0}.container{width:100%;max-width:960px;margin:0 auto;padding:0 20px;box-sizing:border-box}ol,p,ul{margin-top:0}.column,.columns{width:100%;float:left;box-sizing:border-box}@media (min-width:400px){.container{width:85%;padding:0}}body{font-weight:400}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:34px;margin-bottom:2rem;font-weight:300}h1{line-height:1.2;letter-spacing:-.1rem}h2{line-height:1.25;letter-spacing:-.1rem}h3{line-height:1.3;letter-spacing:-.1rem}h4{line-height:1.35;letter-spacing:-1.36px;letter-spacing:-.08rem}h5{font-size:30.6px;font-size:1.8rem;line-height:1.5;letter-spacing:-.85px;letter-spacing:-.05rem}h6{font-size:25.5px;font-size:1.5rem;letter-spacing:0}@media (min-width:550px){.container{width:80%}.column,.columns{margin-left:2%}.column:first-child,.columns:first-child{margin-left:0}.one.column,.one.columns{width:4.66666666667%}.two.columns{width:13.3333333333%}.three.columns{width:22%}.four.columns{width:30.6666666667%}.five.columns{width:39.3333333333%}.six.columns{width:48%}.seven.columns{width:56.6666666667%}.eight.columns{width:65.3333333333%}.nine.columns{width:74%}.ten.columns{width:82.6666666667%}.eleven.columns{width:91.3333333333%}.twelve.columns{width:100%;margin-left:0}.one-third.column{width:30.6666666667%}.two-thirds.column{width:65.3333333333%}.one-half.column{width:49%}.offset-by-one.column,.offset-by-one.columns{margin-left:8.66666666667%}.offset-by-two.column,.offset-by-two.columns{margin-left:17.3333333333%}.offset-by-three.column,.offset-by-three.columns{margin-left:26%}.offset-by-four.column,.offset-by-four.columns{margin-left:34.6666666667%}.offset-by-five.column,.offset-by-five.columns{margin-left:43.3333333333%}.offset-by-six.column,.offset-by-six.columns{margin-left:52%}.offset-by-seven.column,.offset-by-seven.columns{margin-left:60.6666666667%}.offset-by-eight.column,.offset-by-eight.columns{margin-left:69.3333333333%}.offset-by-nine.column,.offset-by-nine.columns{margin-left:78%}.offset-by-ten.column,.offset-by-ten.columns{margin-left:86.6666666667%}.offset-by-eleven.column,.offset-by-eleven.columns{margin-left:95.3333333333%}.offset-by-one-third.column,.offset-by-one-third.columns{margin-left:34.6666666667%}.offset-by-two-thirds.column,.offset-by-two-thirds.columns{margin-left:69.3333333333%}.offset-by-one-half.column,.offset-by-one-half.columns{margin-left:52%}h1{font-size:5rem}h2{font-size:4.2rem}h3{font-size:3.6rem}h4{font-size:3rem}h5{font-size:2.4rem}h6{font-size:1.5rem}}.button,button,input[type=button],input[type=reset],input[type=submit]{display:inline-block;height:38px;padding:0 30px;color:#555;text-align:center;font-size:11px;font-weight:600;line-height:38px;letter-spacing:1.7px;letter-spacing:.1rem;text-transform:uppercase;text-decoration:none;white-space:nowrap;background-color:transparent;border-radius:4px;border:1px solid #bbb;cursor:pointer;box-sizing:border-box}.orko .txt-align-left,td,th{text-align:left}.button:focus,.button:hover,button:focus,button:hover,input[type=button]:focus,input[type=button]:hover,input[type=reset]:focus,input[type=reset]:hover,input[type=submit]:focus,input[type=submit]:hover{color:#333;border-color:#888;outline:0}.button.button-primary,button.button-primary,input[type=button].button-primary,input[type=reset].button-primary,input[type=submit].button-primary{color:#fff;background-color:#33c3f0;border-color:#33c3f0}.button.button-primary:focus,.button.button-primary:hover,button.button-primary:focus,button.button-primary:hover,input[type=button].button-primary:focus,input[type=button].button-primary:hover,input[type=reset].button-primary:focus,input[type=reset].button-primary:hover,input[type=submit].button-primary:focus,input[type=submit].button-primary:hover{color:#fff;background-color:#1eaedb;border-color:#1eaedb}input[type=email],input[type=text],input[type=tel],input[type=url],input[type=password],input[type=number],input[type=search],select,textarea{height:38px;padding:6px 10px;background-color:#fff;border:1px solid #d1d1d1;border-radius:4px;box-shadow:none;box-sizing:border-box}input[type=email],input[type=text],input[type=tel],input[type=url],input[type=password],input[type=number],input[type=search],textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none}textarea{min-height:65px;padding-top:6px;padding-bottom:6px}input[type=email]:focus,input[type=text]:focus,input[type=tel]:focus,input[type=url]:focus,input[type=password]:focus,input[type=number]:focus,input[type=search]:focus,select:focus,textarea:focus{border:1px solid #33c3f0;outline:0}label,legend{display:block;margin-bottom:8.5px;margin-bottom:.5rem;font-weight:600}.button,.orko h1,.orko h2,.orko h3,.orko label,button,input[type=button],input[type=reset],input[type=submit],label>.label-body{font-weight:400}fieldset{padding:0;border-width:0}input[type=checkbox],input[type=radio]{display:inline}label>.label-body{display:inline-block;margin-left:8.5px;margin-left:.5rem}ul{list-style:circle inside}ol{list-style:decimal inside}ol,ul{padding-left:0}ol ol,ol ul,ul ol,ul ul{margin:25.5px 0 25.5px 51px;margin:1.5rem 0 1.5rem 3rem;font-size:90%}.button,button,li{margin-bottom:17px;margin-bottom:1rem}code{padding:3.4px 8.5px;padding:.2rem .5rem;margin:0 3.4px;margin:0 .2rem;font-size:90%;white-space:nowrap;background:#f1f1f1;border:1px solid #e1e1e1;border-radius:4px}pre>code{display:block;padding:17px 25.5px;padding:1rem 1.5rem;white-space:pre}td,th{padding:12px 15px;border-bottom:1px solid #e1e1e1}.orko .blk-reset-l-pad,.orko ul li,td:first-child,th:first-child{padding-left:0}td:last-child,th:last-child{padding-right:0}fieldset,input,select,textarea{margin-bottom:25.5px;margin-bottom:1.5rem}blockquote,dl,figure,form,ol,p,pre,table,ul{margin-bottom:42.5px;margin-bottom:2.5rem}.u-full-width{width:100%;box-sizing:border-box}.u-max-full-width{max-width:100%;box-sizing:border-box}.u-pull-right{float:right}.u-pull-left{float:left}hr{margin-top:51px;margin-top:3rem;margin-bottom:59.5px;margin-bottom:3.5rem;border-width:0;border-top:1px solid #e1e1e1}.container::after,.row::after,.u-cf{content:"";display:table;clear:both}.orko,body{background:#fff;color:#26282a;font-family:'Helvetica Neue',Helvetica,Arial;letter-spacing:.5px;width:100%;max-width:100%}::-moz-placeholder{color:#b9bdc5;opacity:1}:-ms-input-placeholder{color:#b9bdc5}::-webkit-input-placeholder{color:#b9bdc5}.orko h1,.orko h2,.orko h3,.orko h4,.orko h5,.orko h6{font-weight:400;letter-spacing:.5px}.orko td,.orko th{vertical-align:top;border:0}.orko ul li{list-style-type:none}.orko hr{margin:2em 0}.orko code{background:#f1f1f5;border-color:#d8dade}.orko form{margin-bottom:1em}.orko-logo{background:url(https://s1.yimg.com/rz/d/yahoo_en-US_f_p_bestfit_2x.png) no-repeat;background-size:70%;width:180px;height:60px}.orko .blk-f-width,.orko-button.orko-f-width,input.orko-button.orko-f-width{width:100%}.orko .blk-mt-4{margin-top:4px}.orko .blk-mt-8{margin-top:8px}.orko .blk-mt-12{margin-top:12px}.orko .blk-mt-20{margin-top:20px}.orko .blk-mt-28{margin-top:28px}.orko .blk-mt-44{margin-top:44px}.orko .blk-mr-4{margin-right:4px}.orko .blk-show{display:block}.orko .blk-hide{display:none}.orko .blk-reset-pad{padding:0}.orko .blk-reset-r-pad{padding-right:0}.orko .blk-reset-rl-pad{padding-right:0;padding-left:0}.orko .blk-grad-bar{background:-webkit-linear-gradient(left,#188fff 0,#400090 100%);background:linear-gradient(to right,#188fff 0,#400090 100%);display:block;height:4px;margin:0 -2px 30px}.orko .blk-shadow{box-shadow:0 2px 4px 0 rgba(0,0,0,.3)}.orko .txt-align-cntr{text-align:center}.orko .txt-align-right{text-align:right}.orko .clr-def{color:#26282a}.orko .clr-error{color:#f0162f}.orko .clr-grey5{color:#b9bdc5}.orko .clr-grey7{color:#878c91}.orko-button,input.orko-button{background:#ccc;background:hsla(0,0%,0%,1);border:2px solid hsla(0,0%,0%,0);border-radius:2px;box-sizing:border-box;color:#fff;display:inline-block;height:42px;line-height:1;outline:0;overflow:hidden;tap-highlight-color:hsla(0,0%,0%,0);text-align:center;text-overflow:ellipsis;text-transform:none;vertical-align:middle;white-space:nowrap;zoom:1}.orko-button:hover,input.orko-button:hover{border-color:hsla(0,0%,0%,0);color:#fff}.orko-button:active,.orko-button:focus,input.orko-button:active,input.orko-button:focus{border-color:hsla(0,0%,0%,0);color:#fff}.orko-button.orko-a-width,input.orko-button.orko-a-width{width:auto}.orko-button-primary,input.orko-button-primary{background:#188fff;color:#fff}.orko-button-primary:hover,input.orko-button-primary:hover{background:#4ca9ff;border-color:#4ca9ff;color:#fff}.orko-button-primary:active,.orko-button-primary:focus,input.orko-button-primary:active,input.orko-button-primary:focus{background:#003abc;border-color:#003abc;color:#fff}.orko-button-primary-disable,.orko-button-primary-disable:active,.orko-button-primary-disable:focus,.orko-button-primary-disable:hover,input.orko-button-primary-disable,input.orko-button-primary-disable:active,input.orko-button-primary-disable:focus,input.orko-button-primary-disable:hover{background:#e2e2e6;border-color:transparent;color:#cfcfd1}.orko-button-secondary,input.orko-button-secondary{background:0 0;border-color:#188fff;color:#188fff}.orko-button-secondary:hover,input.orko-button-secondary:hover{border-color:#4ca9ff;color:#4ca9ff}.orko-button-secondary:active,.orko-button-secondary:focus,input.orko-button-secondary:active,input.orko-button-secondary:focus{border-color:#003abc;color:#003abc}.orko-button-secondary-disable,.orko-button-secondary-disable:active,.orko-button-secondary-disable:focus,.orko-button-secondary-disable:hover,input.orko-button-secondary-disable,input.orko-button-secondary-disable:active,input.orko-button-secondary-disable:focus,input.orko-button-secondary-disable:hover{background:#fff;border-color:#cfcfd1;color:#cfcfd1}.orko-button-link,input.orko-button-link{background:#fff;color:#188fff;border-color:transparent}.orko-button-link:hover,input.orko-button-link:hover{color:#4ca9ff;border-color:transparent}.orko-button-link:active,.orko-button-link:focus,input.orko-button-link:active,input.orko-button-link:focus{color:#003abc;border-color:transparent}.orko-button-link-disable,.orko-button-link-disable:active,.orko-button-link-disable:focus,.orko-button-link-disable:hover,input.orko-button-link-disable,input.orko-button-link-disable:active,input.orko-button-link-disable:focus,input.orko-button-link-disable:hover{background:#fff;border-color:transparent;color:#cfcfd1}*,::after,::before{box-sizing:border-box}.orko-container{margin:0 auto;max-width:1440px;padding:0 16px;width:100%}.orko-container::after,.orko-row::after{clear:both;content:"";display:table}[class*=orko-row]>[class*=col-] [class*=orko-row]{margin:0 -16px}[class*=col-]{float:left;width:100%;padding:0 16px}.orko-md-width,.orko-sm-width,.orko-width{width:100%}@media (min-width:1280px){[class*=col-]{float:left;width:100%;padding:16px}[class*=orko-row]>[class*=col-] [class*=orko-row]{margin:-16px -16px 0}[class*=orko-row]>[class*=col-] [class*=orko-row] [class*=col-]{margin-bottom:-16px}.col-1-12{width:8.333%}.col-2-12{width:16.667%}.col-3-12{width:25%}.col-4-12{width:33.333%}.col-5-12{width:41.667%}.col-6-12{width:50%}.col-7-12{width:58.333%}.col-8-12{width:66.667%}.col-9-12{width:75%}.col-10-12{width:83.333%}.col-11-12{width:91.667%}.col-12-12{width:100%}.col-pr-4{padding-right:4px}.col-pl-4{padding-left:4px}.orko-width{width:1280px;margin:0 auto}}@media (min-width:840px){.md-col-1-12{width:8.333%}.md-col-2-12{width:16.667%}.md-col-3-12{width:25%}.md-col-4-12{width:33.333%}.md-col-5-12{width:41.667%}.md-col-6-12{width:50%}.md-col-7-12{width:58.333%}.md-col-8-12{width:66.667%}.md-col-9-12{width:75%}.md-col-10-12{width:83.333%}.md-col-11-12{width:91.667%}.md-col-12-12{width:100%}.col-pr-4{padding-right:4px}.col-pl-4{padding-left:4px}.orko-md-width{width:840px;margin:0 auto}}@media (min-width:480px){.sm-col-1-12{width:8.333%}.sm-col-2-12{width:16.667%}.sm-col-3-12{width:25%}.sm-col-4-12{width:33.333%}.sm-col-5-12{width:41.667%}.sm-col-6-12{width:50%}.sm-col-7-12{width:58.333%}.sm-col-8-12{width:66.667%}.sm-col-9-12{width:75%}.sm-col-10-12{width:83.333%}.sm-col-11-12{width:91.667%}.sm-col-12-12{width:100%}.col-pr-4{padding-right:4px}.col-pl-4{padding-left:4px}.orko-sm-width{width:360px;margin:0 auto}}@media (min-width:0){.f-col-1-12{width:8.333%}.f-col-2-12{width:16.667%}.f-col-3-12{width:25%}.f-col-4-12{width:33.333%}.f-col-5-12{width:41.667%}.f-col-6-12{width:50%}.f-col-7-12{width:58.333%}.f-col-8-12{width:66.667%}.f-col-9-12{width:75%}.f-col-10-12{width:83.333%}.f-col-11-12{width:91.667%}.f-col-12-12{width:100%}.col-pr-4{padding-right:4px}.col-pl-4{padding-left:4px}.orko-f-width{width:360px;margin:0 auto}}.orko input[type=email],.orko input[type=text],.orko input[type=tel],.orko input[type=url],.orko input[type=password],.orko input[type=number],.orko input[type=search],.orko select,.orko textarea{background:0 0;border:0;border-bottom:1px solid #b9bdc5;border-radius:0;font-size:1.142em;height:37px;letter-spacing:.5px;margin:4px 0;padding:16px 0 4px;vertical-align:baseline;width:100%}.orko input[type=email]:focus,.orko input[type=text]:focus,.orko input[type=tel]:focus,.orko input[type=url]:focus,.orko input[type=password]:focus,.orko input[type=number]:focus,.orko input[type=search]:focus,.orko select:focus,.orko textarea:focus{border:0;border-bottom:2px solid #188fff;height:38px}.orko input.ictrl-error{border-bottom:2px solid #f0162f}.orko .ictrl input:focus[value=""]+label,.orko .ictrl input:focus[value=""]~label,.orko .ictrl input~label,.orko .ictrl label.lbl,.orko.orko-nojs .ictrl input[value=""]+label,.orko.orko-nojs .ictrl input[value=""]~label{color:#b9bdc5;font-size:.857em;letter-spacing:.5px;overflow:hidden;pointer-events:none;position:absolute;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);top:-2px;white-space:nowrap}.orko .ictrl input[value=""]+label,.orko .ictrl input[value=""]~label{font-size:1.142em;top:16px}.orko .ictrl input[type=password]:focus~span,.orko .ictrl.password input[type=text]:focus~span{color:#188fff}.orko .ictrl input[type=password]~span,.orko .ictrl.password input[type=text]~span{color:#b9bdc5;cursor:pointer;font-size:.857em;position:absolute;right:0;text-transform:uppercase;top:22px}.orko select,.orko select:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-top:10px}.orko select,.orko select option:disabled{color:#b9bdc5}.orko select option{color:#26282a}.orko .ictrl .arrow{border-width:5px;border-style:solid;border-color:#b9bdcf transparent transparent;pointer-events:none;position:absolute;right:0;top:25px}.orko .ictrl.suggestions ul{display:none;border:1px solid #188fff;border-top-width:2px;border-radius:0 0 2px 2px;position:absolute;background:#fff;top:40px;width:100%;z-index:1}.orko .ictrl.suggestions ul li{height:0;margin-bottom:1px;padding:4px 12px}.orko .ictrl.suggestions.open ul{display:block}.orko .ictrl.suggestions.open ul li{height:auto}.orko .ictrl.suggestions.open li.hover,.orko .ictrl.suggestions.open li:hover{background:#f1f1f5;cursor:pointer}.orko .ictrl.email-w-domain input[type=email]{padding-right:6.2em}.orko .ictrl.email-w-domain input[type=email]+span,.orko .ictrl.email-w-domain input[type=email]~span{color:#b9bdc5;font-size:1.142em;position:absolute;right:0;top:16px}.orko.orko-js .suggestions.phone select,.orko.orko-nojs .suggestions.phone div.flag,.orko.orko-nojs .suggestions.phone div.flag+input,.orko.orko-nojs .suggestions.phone ul{display:none}.orko .suggestions.phone ul{min-width:300px;width:auto}.orko .suggestions.phone input[type=text]{padding-left:20px}.orko .flag{background:url(https://s.yimg.com/wm/skeletor/flags-1.0.0.png) no-repeat;height:11px;position:absolute;top:24px;width:16px}.orko ul li .flag{display:inline-block;position:static}.orko .flag.ZW{background-position:0 0}.orko .flag.ZM{background-position:-16px 0}.orko .flag.ZA{background-position:0 -11px}.orko .flag.YT{background-position:-16px -11px}.orko .flag.YE{background-position:-32px 0}.orko .flag.WS{background-position:-32px -11px}.orko .flag.WF{background-position:0 -22px}.orko .flag.WALES{background-position:-16px -22px}.orko .flag.VU{background-position:-32px -22px}.orko .flag.VN{background-position:0 -33px}.orko .flag.VI{background-position:-16px -33px}.orko .flag.VG{background-position:-32px -33px}.orko .flag.VE{background-position:-48px 0}.orko .flag.VC{background-position:-48px -11px}.orko .flag.VA{background-position:-48px -22px}.orko .flag.UZ{background-position:-48px -33px}.orko .flag.UY{background-position:0 -44px}.orko .flag.UM,.orko .flag.US{background-position:-16px -44px}.orko .flag.UG{background-position:-32px -44px}.orko .flag.UA{background-position:-48px -44px}.orko .flag.TZ{background-position:-64px 0}.orko .flag.TW{background-position:-64px -11px}.orko .flag.TV{background-position:-64px -22px}.orko .flag.TT{background-position:-64px -33px}.orko .flag.TR{background-position:-64px -44px}.orko .flag.TO{background-position:0 -55px}.orko .flag.TN{background-position:-16px -55px}.orko .flag.TM{background-position:-32px -55px}.orko .flag.TL{background-position:-48px -55px}.orko .flag.TK{background-position:-64px -55px}.orko .flag.TJ{background-position:0 -66px}.orko .flag.TH{background-position:-16px -66px}.orko .flag.TG{background-position:-32px -66px}.orko .flag.TF{background-position:-48px -66px}.orko .flag.TD{background-position:-64px -66px}.orko .flag.TC{background-position:-80px 0}.orko .flag.SZ{background-position:-80px -11px}.orko .flag.SY{background-position:-80px -22px}.orko .flag.SX{background-position:-80px -33px}.orko .flag.SV{background-position:-80px -44px}.orko .flag.ST{background-position:-80px -55px}.orko .flag.SS{background-position:-80px -66px}.orko .flag.SR{background-position:0 -77px}.orko .flag.SO{background-position:-16px -77px}.orko .flag.SN{background-position:-32px -77px}.orko .flag.SM{background-position:-48px -77px}.orko .flag.SL{background-position:-64px -77px}.orko .flag.SK{background-position:-80px -77px}.orko .flag.SI{background-position:-96px 0}.orko .flag.SH{background-position:-96px -11px}.orko .flag.SG{background-position:-96px -22px}.orko .flag.SE{background-position:-96px -33px}.orko .flag.SD{background-position:-96px -44px}.orko .flag.SCOTLAND{background-position:-96px -55px}.orko .flag.SC{background-position:-96px -66px}.orko .flag.SB{background-position:-96px -77px}.orko .flag.SA{background-position:0 -88px}.orko .flag.RW{background-position:-16px -88px}.orko .flag.RU{background-position:-32px -88px}.orko .flag.RS{background-position:-48px -88px}.orko .flag.RO{background-position:-64px -88px}.orko .flag.QA{background-position:-80px -88px}.orko .flag.PY{background-position:-96px -88px}.orko .flag.PW{background-position:0 -99px}.orko .flag.PT{background-position:-16px -99px}.orko .flag.PS{background-position:-32px -99px}.orko .flag.PR{background-position:-48px -99px}.orko .flag.PN{background-position:-64px -99px}.orko .flag.PM{background-position:-80px -99px}.orko .flag.PL{background-position:-96px -99px}.orko .flag.PK{background-position:-112px 0}.orko .flag.PH{background-position:-112px -11px}.orko .flag.PG{background-position:-112px -22px}.orko .flag.PF{background-position:-112px -33px}.orko .flag.PE{background-position:-112px -44px}.orko .flag.PA{background-position:-112px -55px}.orko .flag.OM{background-position:-112px -66px}.orko .flag.NZ{background-position:-112px -77px}.orko .flag.NU{background-position:-112px -88px}.orko .flag.NR{background-position:-112px -99px}.orko .flag.BV,.orko .flag.NO,.orko .flag.SJ{background-position:0 -110px}.orko .flag.NL{background-position:-16px -110px}.orko .flag.NI{background-position:-32px -110px}.orko .flag.NG{background-position:-48px -110px}.orko .flag.NF{background-position:-64px -110px}.orko .flag.NE{background-position:-80px -110px}.orko .flag.NC{background-position:-96px -110px}.orko .flag.NA{background-position:-112px -110px}.orko .flag.MZ{background-position:-128px 0}.orko .flag.MY{background-position:-128px -11px}.orko .flag.MX{background-position:-128px -22px}.orko .flag.MW{background-position:-128px -33px}.orko .flag.MV{background-position:-128px -44px}.orko .flag.MU{background-position:-128px -55px}.orko .flag.MT{background-position:-128px -66px}.orko .flag.MS{background-position:-128px -77px}.orko .flag.MR{background-position:-128px -88px}.orko .flag.MQ{background-position:-128px -99px}.orko .flag.MP{background-position:-128px -110px}.orko .flag.MO{background-position:0 -121px}.orko .flag.MN{background-position:-16px -121px}.orko .flag.MM{background-position:-32px -121px}.orko .flag.ML{background-position:-48px -121px}.orko .flag.MK{background-position:-64px -121px}.orko .flag.MH{background-position:-80px -121px}.orko .flag.MG{background-position:-96px -121px}.orko .flag.ME{background-position:0 -132px;width:16px;height:12px}.orko .flag.MD{background-position:-112px -121px}.orko .flag.MC{background-position:-128px -121px}.orko .flag.MA{background-position:-16px -132px}.orko .flag.LY{background-position:-32px -132px}.orko .flag.LV{background-position:-48px -132px}.orko .flag.LU{background-position:-64px -132px}.orko .flag.LT{background-position:-80px -132px}.orko .flag.LS{background-position:-96px -132px}.orko .flag.LR{background-position:-112px -132px}.orko .flag.LK{background-position:-128px -132px}.orko .flag.LI{background-position:-144px 0}.orko .flag.LC{background-position:-144px -11px}.orko .flag.LB{background-position:-144px -22px}.orko .flag.LA{background-position:-144px -33px}.orko .flag.KZ{background-position:-144px -44px}.orko .flag.KY{background-position:-144px -55px}.orko .flag.KW{background-position:-144px -66px}.orko .flag.KR{background-position:-144px -77px}.orko .flag.KP{background-position:-144px -88px}.orko .flag.KN{background-position:-144px -99px}.orko .flag.KM{background-position:-144px -110px}.orko .flag.KI{background-position:-144px -121px}.orko .flag.KH{background-position:-144px -132px}.orko .flag.KG{background-position:0 -144px}.orko .flag.KE{background-position:-16px -144px}.orko .flag.JP{background-position:-32px -144px}.orko .flag.JO{background-position:-48px -144px}.orko .flag.JM{background-position:-64px -144px}.orko .flag.JE{background-position:-80px -144px}.orko .flag.IT{background-position:-96px -144px}.orko .flag.IS{background-position:-112px -144px}.orko .flag.IR{background-position:-128px -144px}.orko .flag.IQ{background-position:-144px -144px}.orko .flag.IO{background-position:-160px 0}.orko .flag.IN{background-position:-160px -11px}.orko .flag.IM{background-position:-160px -22px;width:16px;height:9px}.orko .flag.IL{background-position:-160px -31px}.orko .flag.IE{background-position:-160px -42px}.orko .flag.ID{background-position:-160px -53px}.orko .flag.HU{background-position:-160px -64px}.orko .flag.HT{background-position:-160px -75px}.orko .flag.HR{background-position:-160px -86px}.orko .flag.HN{background-position:-160px -97px}.orko .flag.HK{background-position:-160px -108px}.orko .flag.GY{background-position:-160px -119px}.orko .flag.GW{background-position:-160px -130px}.orko .flag.GU{background-position:-160px -141px}.orko .flag.GT{background-position:0 -155px}.orko .flag.GS{background-position:-16px -155px}.orko .flag.GR{background-position:-32px -155px}.orko .flag.GQ{background-position:-48px -155px}.orko .flag.GP{background-position:-64px -155px}.orko .flag.GN{background-position:-80px -155px}.orko .flag.GM{background-position:-96px -155px}.orko .flag.GL{background-position:-112px -155px}.orko .flag.GI{background-position:-128px -155px}.orko .flag.GH{background-position:-144px -155px}.orko .flag.GG{background-position:-160px -155px}.orko .flag.GE{background-position:-176px 0}.orko .flag.GD{background-position:-176px -11px}.orko .flag.GB,.orko .flag.UK{background-position:-176px -22px}.orko .flag.GA{background-position:-176px -33px}.orko .flag.BL,.orko .flag.FR,.orko .flag.GF,.orko .flag.MF,.orko .flag.RE{background-position:-176px -44px}.orko .flag.FO{background-position:-176px -55px}.orko .flag.FM{background-position:-176px -66px}.orko .flag.FK{background-position:-176px -77px}.orko .flag.FJ{background-position:-176px -88px}.orko .flag.FI{background-position:-176px -99px}.orko .flag.FAM{background-position:-176px -110px}.orko .flag.EU{background-position:-176px -121px}.orko .flag.ET{background-position:-176px -132px}.orko .flag.ES{background-position:-176px -143px}.orko .flag.ER{background-position:-176px -154px}.orko .flag.ENGLAND{background-position:0 -166px}.orko .flag.EH{background-position:-16px -166px}.orko .flag.EG{background-position:-32px -166px}.orko .flag.EE{background-position:-48px -166px}.orko .flag.EC{background-position:-64px -166px}.orko .flag.DZ{background-position:-80px -166px}.orko .flag.DO{background-position:-96px -166px}.orko .flag.DM{background-position:-112px -166px}.orko .flag.DK{background-position:-128px -166px}.orko .flag.DJ{background-position:-144px -166px}.orko .flag.DE{background-position:-160px -166px}.orko .flag.CZ{background-position:-176px -166px}.orko .flag.CY{background-position:0 -177px}.orko .flag.CX{background-position:-16px -177px}.orko .flag.CW{background-position:-32px -177px}.orko .flag.CV{background-position:-48px -177px}.orko .flag.CU{background-position:-64px -177px}.orko .flag.CS{background-position:-80px -177px}.orko .flag.CR{background-position:-96px -177px}.orko .flag.CO{background-position:-112px -177px}.orko .flag.CN{background-position:-128px -177px}.orko .flag.CM{background-position:-144px -177px}.orko .flag.CL{background-position:-160px -177px}.orko .flag.CK{background-position:-176px -177px}.orko .flag.CI{background-position:-192px 0}.orko .flag.CG{background-position:-192px -11px}.orko .flag.CF{background-position:-192px -22px}.orko .flag.CD{background-position:-192px -33px}.orko .flag.CC{background-position:-192px -44px}.orko .flag.CATALONIA{background-position:-192px -55px}.orko .flag.CA{background-position:-192px -66px}.orko .flag.BZ{background-position:-192px -77px}.orko .flag.BY{background-position:-192px -88px}.orko .flag.BW{background-position:-192px -99px}.orko .flag.BT{background-position:-192px -110px}.orko .flag.BS{background-position:-192px -121px}.orko .flag.BR{background-position:-192px -132px}.orko .flag.BQ{background-position:-192px -143px}.orko .flag.BO{background-position:-192px -154px}.orko .flag.BN{background-position:-192px -165px}.orko .flag.BM{background-position:-192px -176px}.orko .flag.BJ{background-position:0 -188px}.orko .flag.BI{background-position:-16px -188px}.orko .flag.BH{background-position:-32px -188px}.orko .flag.BG{background-position:-48px -188px}.orko .flag.BF{background-position:-64px -188px}.orko .flag.BE{background-position:-80px -188px}.orko .flag.BD{background-position:-96px -188px}.orko .flag.BB{background-position:-112px -188px}.orko .flag.BA{background-position:-128px -188px}.orko .flag.AZ{background-position:-144px -188px}.orko .flag.AX{background-position:-160px -188px}.orko .flag.AW{background-position:-176px -188px}.orko .flag.AU,.orko .flag.HM{background-position:-192px -188px}.orko .flag.AT{background-position:-208px 0}.orko .flag.AS{background-position:-208px -11px}.orko .flag.AR{background-position:-208px -22px}.orko .flag.AO{background-position:-208px -33px}.orko .flag.AN{background-position:-208px -44px}.orko .flag.AM{background-position:-208px -55px}.orko .flag.AL{background-position:-208px -66px}.orko .flag.AI{background-position:-208px -77px}.orko .flag.AG{background-position:-208px -88px}.orko .flag.AF{background-position:-208px -99px}.orko .flag.AE{background-position:-208px -110px}.orko .flag.AD{background-position:-208px -121px}.orko .flag.NP{background-position:-208px -132px;width:9px;height:11px}.orko .flag.CH{background-position:-208px -143px;width:11px;height:11px}.orko .ictrl.suggestions-carousel .list-box{border:1px solid #188fff;color:#188fff;cursor:pointer;display:none;height:30px;position:relative;top:-6px;width:100%}.orko .ictrl.suggestions-carousel.open .list-box{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.orko .ictrl.suggestions-carousel .arrow-box{padding:10px 12px;width:30px}.orko .ictrl.suggestions-carousel .l-arrow-box{border-right:1px solid #188fff}.orko .ictrl.suggestions-carousel .r-arrow-box{border-left:1px solid #188fff}.orko .ictrl.suggestions-carousel .arrow-box div{border-top:5px solid transparent;border-bottom:5px solid transparent}.orko .ictrl.suggestions-carousel .l-arrow{border-right:5px solid #188fff}.orko .ictrl.suggestions-carousel .r-arrow{border-left:5px solid #188fff}.orko .ictrl.suggestions-carousel .arrow-box.disabled{cursor:default}.orko .ictrl.suggestions-carousel .arrow-box.disabled .l-arrow{border-right-color:rgba(24,143,255,.5)}.orko .ictrl.suggestions-carousel .arrow-box.disabled .r-arrow{border-left-color:rgba(24,143,255,.5)}.orko .ictrl.suggestions-carousel .list{overflow:hidden;padding:5px;position:relative;width:100%}.orko .ictrl.suggestions-carousel ul{left:0;top:4px;position:absolute;white-space:nowrap;width:100%}.orko .ictrl.suggestions-carousel ul li{display:inline-block;overflow:hidden;width:100%}.orko-link,a{color:#188fff;text-decoration:none}.orko-link:active,.orko-link:hover,a:active,a:hover{color:#003abc}.orko-txt-display{font-size:1.857em}.orko-txt-headline{font-size:1.428em}.orko-txt-header,h1{font-size:1.286em}.orko-txt-subheader,h2{font-size:1.143em}.orko-txt-caption,h3{font-size:.857em}.orko-txt-default,h4{font-size:1em}.orko-txt-micro{font-size:.714em}.error,.error-offline{color:#dd1037;font-size:.82353em}.offscreen{position:absolute;height:1px;width:1px;overflow:hidden;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px)}.hide{display:none}.error-offline{margin:5px;padding:10px;border:1px solid #dd1037;border-radius:4px;text-align:left}.orko{letter-spacing:normal}.orko h1,.orko h2,.orko h3{margin:0}.orko-button,a.orko-button,input.orko-button{font-size:.94118em;width:100%}a.orko-button{height:auto;padding:11px}@media (max-width:550px){.one-half.column{width:50%}}html{font-size:17px;-webkit-font-smoothing:antialiased}body,html{height:100%}@media only screen and (device-width:414px) and (device-height:896px) and (min-height:759px) and (-webkit-min-device-pixel-ratio:2),only screen and (device-width:375px) and (device-height:812px) and (min-height:675px) and (-webkit-device-pixel-ratio:3){html{padding-bottom:34px}}body.ios{font:-apple-system-headline;font-family:"Helvetica Neue",Helvetica,Arial;font-weight:400;position:relative}body.dark-bg{background-color:#f9f9fa}.login-header{line-height:84px;padding-left:50px;background-color:#fff;color:#26282a}.login-header .column{display:inline-block;float:none;vertical-align:middle;line-height:normal;font-size:0}.narrow .login-header{line-height:0;padding:0;text-align:center;background-color:#fff}.narrow .login-header img{max-width:90vw;margin:18px 16px}.mbr-mobile-header.narrow .login-header{background-color:--login-header-background-narrow-color}.login-box,body.narrow{background-color:#fff}.partner.ftr .logo,.partner.rogers-acs .logo,.partner.sbc .logo{width:226px}.login-footer{text-align:center;padding:6px 0;font-size:.58824em;position:fixed;bottom:0;background:#fff;color:#26282a;z-index:1;width:100%;_position:relative!important}.login-footer .row{margin:0}.login-footer strong{color:#188fff}.login-body h1,.login-box,body.narrow{color:#26282a}@media screen and (max-height:650px){.login-footer{border-top:1px solid rgba(73,15,118,.35);box-shadow:0 0 9px 0 rgba(73,15,118,.35)}}@media screen and (max-width:480px),screen and (max-height:480px){.resp .login-footer,.resp .login-header{display:none}}.login-body{_position:relative;_height:580px;text-align:center}.login-content{margin:0 auto;max-width:1050px;min-width:320px;position:relative;*z-index:1}.info-box,.login-box{position:absolute;top:11px}.login-box{box-sizing:border-box;box-shadow:0 2px 4px 0 rgba(181,181,181,.7);width:360px;right:10px;min-height:550px;z-index:1;padding:0 5px;border-top:1px solid #f1f1f5}.login-box.center{position:relative;margin:0 auto;right:auto}.zh-hant-tw .login-box{margin-top:10px}.login-box .login-logo{direction:ltr;margin-top:30px;height:50px}.zh-hant-tw .login-box .login-logo{height:65px}.info-box{display:none;left:0;padding:56px 410px 56px 40px;text-align:left}.info-box .title{font-weight:500}.info-box .desc,.info-box .title{font-size:1.23529em}.info-box h3,.info-box h4{margin:10px 0}.info-box ul{margin:0;padding:0 30px;list-style:circle;font-size:.82353em}.info-box ul li{display:list-item;margin:5px 0;list-style-type:disc}.login-bg-outer{height:100%;width:100%;overflow:hidden;min-height:580px;text-align:center;position:relative;z-index:0;top:0}.login-bg-inner{margin:0 -800px}.login-bg-outer.static-bg .login-bg-inner{margin:0}.no-js .info-box{display:block}.no-js .login-bg-outer{display:none}.no-js .login-bg-outer.static-bg{display:block}.auto-submit{display:none}body.resp{background-color:#f9f9fa}.resp .info-box{display:block}@media screen and (max-width:640px){.resp .info-box,.resp .login-bg-outer{display:none}.resp .login-box{position:relative;margin:0 auto;right:auto}}@media screen and (max-width:480px){body.resp{background-color:#fff}.resp .login-box::before{display:none}.resp .login-box{position:absolute;top:0;min-height:auto;border-top:0;box-shadow:none;width:100%}}.login-body .country-code-dropdown{position:relative;height:40px;margin:0;font-size:.94118em}.login-body .country-code-dropdown .arrow{position:absolute;right:.85em;top:47%;border:.35em solid;border-color:#8f8f8f transparent transparent;font-size:.94118em;pointer-events:none}.login-body .country-code-dropdown select{width:100%;height:100%;padding:.25em 1em;border:1px solid #e5e5e5;border-radius:2px;box-shadow:none;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.login-body .country-code-dropdown select:focus{outline:0;border-color:#198fff}.login-body .cci-dropdown{position:relative}.login-body .cci-dropdown .selected-country-code-cont{position:absolute;display:table;height:41px;width:45px;left:0;z-index:2}.login-body .cci-dropdown .selected-country-code-cont .arrow{left:initial;right:0}.login-body .cci-dropdown .selected-country-code{position:relative;display:table-cell;vertical-align:middle}.login-body .cci-dropdown .phone-no{padding-left:50px}.login-body .cci-dropdown .country-dropdown-container{opacity:0;position:absolute;left:0;width:45px;z-index:2}.login-body .cci-dropdown.code-of-length-3 .country-dropdown-container,.login-body .cci-dropdown.code-of-length-3 .selected-country-code-cont{width:58px}.login-body .cci-dropdown.code-of-length-3 .phone-no{padding-left:63px}.login-body .cci-dropdown.code-of-length-2 .country-dropdown-container,.login-body .cci-dropdown.code-of-length-2 .selected-country-code-cont{width:50px}.login-body .cci-dropdown.code-of-length-2 .phone-no{padding-left:55px}.username-challenge{max-width:300px;margin:0 auto}.username-challenge .row{margin-bottom:20px}.username-challenge .username-country-code{position:relative;margin-top:30px}.username-challenge .selected-country-code-cont{margin-top:-1px}.username-challenge input{width:100%}.username-challenge .sign-in-title{margin-top:24px;margin-bottom:20px}.username-challenge .sign-in-title-greeting{display:block;font-size:1.05882em;font-weight:500;letter-spacing:normal}.username-challenge .one-flow-desc,.username-challenge .signin-sub-title{margin-top:8px;padding:0;font-size:.82353em}.username-challenge input[name=signin]{margin:30px 0}.username-challenge input[name=username]{position:relative;margin:0;padding:6px 10px;height:40px;border:0;border-radius:0;border-bottom:1px solid #cfd2d5;letter-spacing:normal;font-size:.94118em;z-index:1}.username-challenge input[name=username]:focus{height:40px}.username-challenge input[name=username].field-error{border-bottom:2px solid #dd1037}.username-challenge .error{margin:10px 0;color:#dd1037;text-align:left;font-size:.70588em}.username-challenge .hide-passwd{margin:-1px 0 0;padding:0;height:1px;overflow:hidden}.username-challenge .hide-passwd input[type=password]{border:0}.username-challenge .stay-signed-in{position:relative;display:inline-block;vertical-align:middle;font-size:.76471em;color:#979797;text-align:left}.username-challenge .stay-signed-in input[type=checkbox]{display:inline;margin:0 0 0 20px;height:auto;width:18px;opacity:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.username-challenge .stay-signed-in input[type=checkbox]+label{display:inline;height:18px;font:inherit;cursor:pointer}.username-challenge .stay-signed-in input[type=checkbox]:checked+label{color:#188fff}.username-challenge .stay-signed-in input[type=checkbox]:active+label,.username-challenge .stay-signed-in input[type=checkbox]:hover+label{color:#003abc}.username-challenge .stay-signed-in input[type=checkbox]:focus+label{height:18px;border-bottom:1px dotted #188fff}.username-challenge .stay-signed-in input[type=checkbox]+label::before{position:absolute;display:inline-block;top:0;left:0;height:18px;width:18px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAGFBMVEVMaXHf39/Y2N3Y2t3Y2dzX2dzV3t7Y2t3CExDlAAAAB3RSTlMAEC76ufYfxPkBNAAAAEVJREFUKM9jYKAFYHIuRwImCmBB1XIUEAQWdEcVLAELmqMKFoMFy8sTBRGgvBwqKIBk7ajgMBTEmhiwJhusCQxrUqQ+AABBimZL8xglugAAAABJRU5ErkJggg==);background-position:-1px;background-size:18px;content:' '}.username-challenge .stay-signed-in input[type=checkbox]:checked+label::before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA2FBMVEVMaXF/f3+Di5SGjY2FipCGi5CHi5B/j4+Gi4+HjI+IiIiGi4+Gi5Cqqqp/f5mHjJCHi4+Hi4+HjI9/f3+IiJGIjY2GjI+GjI////+GjJCFkZGHjJCHjJCHi5CGjJCHjI+JiYmGjI+HjJCIjI+Hi46Gi5CHi5CHi4+Hi4+Hj4+FjZGGjJGGjJCJiZCRkZGIi5CGjI+HjI+GipGHjI+HjI+HjZCGjI+Hi5CGi5CGi4+Eio+Gi5CGi4+FjI+GjI6Gi4+Hi4+FjZGGjJCFi5GGjZGHjI+Hh5aHjJCY4B9iAAAAR3RSTlMABh8kLvbkEPq5DzfrAwr98b7TAhwt3E4B6RXNxqaynA1XhmlC7a/qgCA/dPQlB1iM9UaX91Ol72xuMMn8UFvQt0G2KkigEWGWbxYAAAEaSURBVDjL1dTFbsNAFEbh34nt2GFmKjMzc8/7v1EXqZO0tWcidZWzvPqk0Z3FlZYiNwz40zwY31yPJbkeGGH2Dl4lhZhhsQLcSwrM0HkGeJIEkElcoLAJkH+zwdolQPlWFtg+A/ByssFjgPN12eA2QNCSDe4BcCQbXPv1URG86HRW5t1jKQFuQak1cw8l4mHtBAhOo+l7QALUKoC3Oxm+eAAfsbA9AijnJClXBhh9xkIVBgAbDalxBTAoZOKhnCFAPn2QBxg6SoI6rAD4PkDFUTJUsR/t2i/KBJXtTVwvKzNUtwpQ7coGVW9Csy471I7vp7QIVDqtxeCsf8BUJrbUDxh/AKYFUxiaYTg7Zp7J7buWs/f9buhqifoCVj2QlHKddZ4AAAAASUVORK5CYII=);background-position:0}.username-challenge .column.help{text-align:right;font-size:.76471em}.username-challenge .help{font-size:.82353em}.username-challenge .tsl-description{margin:20px 0;padding:0;font-size:.76471em}.username-challenge .one-flow-heading{margin:20px 0}.username-challenge .sign-up-link{margin:45px 0}.username-challenge .notice{padding:15px;background:#ffffb7;border-radius:4px;color:#26282a;text-align:left;font-size:.82353em}.username-challenge .notice h2{font-weight:700}.username-challenge .notice p{margin:0}.username-challenge .social-login-container{position:absolute;padding:0;bottom:0;width:300px}.username-challenge .social-login{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-top:10px;margin-bottom:0}.username-challenge .social-login .icon{height:42px;cursor:pointer;background-repeat:no-repeat;background-position:center;border-color:#b9bdc5;border-radius:2px}.username-challenge .social-login .items-1{width:300px}.username-challenge .social-login .items-2{width:145px}.username-challenge .social-login .items-3{width:93.33px}.username-challenge .social-login .items-4{width:67.5px}.username-challenge .social-login .sc-google-button{background-size:14px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAsCAYAAAEFhTiSAAAFkElEQVRYw7VYa2gcVRRerda3qPhCRRTxTxH84d47u0mFsHNnt9uYWhtWClot/ij+KIgPBJ8ERVDEx48Kgog/fOGjsdX66B8FIVL/aKiWajBN4m6S7s5sdtOssUlT1+/Mzszembkz2TTkwpCdufece+453/nOuUkknFHRk9+bgh9yXlhT/tv+IQ/6eKKv58rQR+9HWWcL3oyVTWm0g73C1Nkf9BErTFn2r9BOShvqvRsvJx3v00coXVKLOL+ruWS/NwmpCXmBpfOnlcdrFtIX0IR1V/p634Spc7iqfTIsMn0a6KVZKKyPsqmtKcNfJ5e4j2MQ+xxGTtkLBJsNqQ6qnREbb/ReoKbXZ8dAzzneiyttCe3uqJAOKydoVPPaDbYWwRo+AyzBdzsLLm1tw6dbxmScMwUd4Uj5wjaX7boawRjyWYtFi7YmxFppFBY8gElaNG1mWBG//5OEq3j/u6qzR3xC9XzXLbI/lKe0d002VD6ajhJuzfOf3Hko2xDATvIVdxJ+nAwhAthywjiSiBoQ/M1T0nLOkvN3MbGSURHJo5KSeOHa1p7LsPNhLDzhCQEKPksEOz2bS1/RDo/OBl3tzV27zo20RFIS+gjhX5Y9ikJ4tK2Vz1cFuzcU62y6C8rnK4KXozUb2macaz+eXwmflq69Z2a1Ozr2cnNg4GzL0O7HTl8SOOSMt5+o42HxqI1nwUumhDr6RrjG9xFiKf9u+fx5WDQPzf8EkDXcVhBgTG+RgNYW/D5UWFP0cC34owGyLKzztBv84ZCnBc9JWTUeCkM7KfjBeIDwYjBfN0iOMeOEMf+76swLnnZDuzVKmPgpzIk5rV/K53nT6L4uKFgVWn8kOCzBtsEhdc/EjM1lLUH4pTOENZtnkXlSGk6uiAgIonIKEquuSAF2PCYriAqjy9m7EYqiBMdTBFefAp1ZfhOz2YvcckjdQz3Lb/ZFQufvygrwnpbPZnsVdDQUeQTAVrLoiNstfBxH9v4MYz873p9wM2asU+GKrj1lW2iwQffDN+148m9jhTPgMLnpIEDAjKV2OJJHqTorwvaDvWsmycNkjzIeCAlZMie9lxqb2bWRZjW2aNeYuvY8HPMj1SwIH0AyPNTs67swcaaDMqwiUs9SLiNMJVj5b9DK5R8+RxiCcdvj82Jnz/mmSKJn5W6FrSFj91u5NCdnE/sSAcGQffBlWbFZrazzJ8loJX+oRtnQXkCKzEisNWtu6b4kLvtBIQew7lQ4XmzEV5BjEvhVxOi0L4UEe7ETgwmzKjdD5xEqDJGC1Ie5/biPfnT2Vqe8VwkyTyt9S7Ucvz1S0Cn8CnizP2Mt9qf7B4qNi81Cz8WxREsxUbkLzcW+jtwt+MsBoxt4nlhWsLYpdRMEjqljxQ8RxUZ6TGgpuLoibTqFvnrTinK3amiPo8BNKwxYJBygS3oTzw4iCWy2F2knp1QJQNMTqxmUr9joPiinO9YoxQvuHHduEEEs1KoZXkis1aB+GAaMK0JRx/e3E2s5UF72mA6rKU5Ocd4T6i1X2lLYgDN4ATF/A3fBr52LS4nAYwbIJnChoXAMd1QoqOFF6rwEgTG6sEmK5qnLAJkchks/qWT4MwDQTkukttFDbXdU8cD6Bej6wrs9+y6q+TuvsjJsjC6wUoFtoDDsjePpMG1qO7DRVAQXDAb4mffC4uNBtvEu/2cw0CI9RigPbFz08QBiNqqgua9WD0D+jqyzjPAFK9KEAhiTM9mu21azMTz5kdSyW1aWb/UvyGrbMVlXgGKWikYswStJp7CeGk/gw63PVmR1IsijnRvCRieV6YEWuEUa/Dusec5GtMHvQdwetLNA8E9N+784/LhTSkGtfGQmk8x3au26GSPVDQWf0WXLlDqRyEewk3TnoFsA0ua11YZoTcf/iYOW8zRGVOkAAAAASUVORK5CYII=)}.username-challenge .social-login .item-1.sc-facebook-button{background-size:10px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAqCAMAAAHzILt0AAAAllBMVEUAAABVqqpAYJ9VcapGXaJAYJ89XJk/W5o7W5s/WZg8XJg+Wps9WZk7Wpg9WZo9W5s8Wpk7XJo9Wpo8W5o9W5o8W5k7Wpk8Wpo9Wpk8WZk8Wpk8W5k7W5k8Wpo8Wpg8W5g8Wpk8Wpk7Wpk8WZg7Wpk7Wpg8WZk7Wpk7WZk7WZg8Wpk8Wpk8WZg7WZg7WZk7Wpg7Wpg7WZhM4whjAAAAMXRSTlMAAwgJCxgZNTg5SEpQUlNUVVZgYmVrbG9xe3+Eio2QlZmiqKussLTGy87S4eLk5enxv9/qngAAAMZJREFUKM/VkNcSwiAQRa+919iNDbHEvv//c0JgBWPy4Iwv3hnYkzMLywRAByCoRbaqJdSqarSSjCLiRkgiyWx39FrAPO4hyrMmnbhdvrf7uxAwOZp2PucQnjMT0hq+Q6Dc7LbrGkrxXTc3RGPD4VLVizmzUbhN4Ipfc3e4dzjDQJ5VvUpZybjhxzgUQkzgJTeK+DU3q4oncrGy8KBPOebvaBGG4dQN09n5U1huWdSCIDhYeQx0+t7feiVKk+s0OcgY9PcykScc/VNoD1mFGQAAAABJRU5ErkJggg==)}.username-challenge .social-login .sc-yahoo-button{background-size:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAqCAMAAAGb0zlMAAAA/1BMVEUAAAD/AP9VAKqAAL9mAJlVAKpNAJlEAJlQAJ9LAJZGAJdDAJtKAJVHAJlFAJNCAJdGAJVEAJlCAJRBAJZGAJlCAJRDAJVDAJRCAJVFAJdEAJVDAJZCAJREAJNDAJVEAJZCAJVDAJVDAJRBAJRDAJVDAJVCAJVCAJNDAJRCAJRDAJVCAJNBAJRCAJRBAJRBAJVBAJNCAJRCAJRBAJRDAJNCAJRCAJNCAJRCAJRCAJRCAJRBAJNBAJRCAJNCAJRCAJRCAJRCAJRBAJNCAJRCAJRBAJNBAJNBAJRBAJRBAJNCAJRCAJNBAJRBAJRCAJNCAJRBAJRCAJRCAJNBAJRBAJPxGq5qAAAAVHRSTlMAAQMEBQYKDxARFhcYGRobHR4fJygyNTk6Ozw9PkBBREZITGJjamxtbnBzdHV3eX2Vlp+goaKjpaepq8fP0NHS1NbX2eXm6uvu7/Dx8vP09fr8/f6nsnaxAAABaklEQVQ4y+2SSVsUQRBEHz24MKDiMjqAoGyDiiCbCDKKrDIsgtPv//8WD9Vd1cDARQ8cjEN3ZlRkVGR/DQ8AEAHMQ5OeUwAwBlsIGo8EmCdy74GPUg9zJd2rGqqF7jk4A+QCuwIOAtgtRx7bSnbtohqPdrdXL16F96J2S65ucB62DNWKFeoA0NbvpMROk+scCT9UrVPFfLJJSf4B9QxexoPsPg9DpkZJdXQdeJtGmmX5S5fjEmMA9Kt9ACt6Uug39RDI1KyydQM6uhbvnlCTd8CpLqkjFaqmaufSPl+sescb1rhGzd5F6tPI5ERsnp6fHfy8KD9sFXP+Pto/zl8D3NtTdavvimZV1ZOhov2q6uFAVZK1Vd2uRWZB1W4jaeodVT9X596o6nTZN3NV310O8ORM1aX076ujV1fp30nxV1Q9Hry+MBtF/CLyt4xe+BDin6q6yg0YN6LFjXgUXMyb3ILCa5b/or8X9cYfT5+A5C38fWUAAAAASUVORK5CYII=)}.username-challenge .social-login .sc-aol-button{background-size:50px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAUCAYAAAFXDzUyAAADZklEQVRYCa1XS4iNYRg+oeHMwmUsJomSyLXRbKSYIhYsJFNCrgsizYZmQRZTlmIkWVhMWclGEbGg4xbFAikrktsMMoZcy7g8z3/e5/T+n+//z2nmvPWc9/Z87/u9/3/O//2nUCjLX9NSiT/KvEHTKdIIC16DTiW832iklDpmjLXQ53yGZa4AEwGVnBASlGC8CHTRMPG5JMTAEoD6uukF0BSRpctR+4wGXW6R2LoM/Qo4vR92s/MrphY1IbIHUDfqlcBb4BSQEt6NeRZ5nMoUCm3mq1AqzeAjgJeW9jrTtInlpjkT/QYgJbPgiXw3lanN0drKRctaJuJPa7glIN60uHjUvFYSxXMbibTXVskfbT6/7YwdN59qFSAefdmZjQYcSWSvWeS1cV7SMTkLLR5DstVoLmIzmaCcAERIAu5D8T8WW+y4ynVE+GzEb5o4jlI2N1ry03+Z6oHZtpbFc0XdqxIjVTKb6FfHNWOChf5m+9RqON3ANh+s1b4FIie4YDqcZqyL+4lbEKdkTlJOlz+1cDxc2VwoUYyak/wAFCOnahP+CP2Ch+Z/4GrIOMDnk6CLtcPObKJ7ctpWvYPmA7vHfB4FFH7vY/LegrpkMU4SK+JTu4zpw7ZSOU4lUYxP39gkG0S8A0NkPm2FARcnt8/54lPrxxo2+WX8b9CVBiU6ThbCVrHpFn/mYsx9tThV2OQpYuQ8YDJPbiCpRtLb8xbUKec3rL56Lg6pxdHIICqsk3ZIhWtYVNdhNuUMwoH4/StW2RSPv4PAF0AXwevfiJ8BJgOh1G2YOajsm9JeD1wO4nyyZsl5JMIaeX4v+HrMsGZdhuH58hHwjUusDpkK+DjtbiYCCd92eAf47uaFF+wF4Ovx7anJSHUZ5nbQgM1mWAOqQ4DfAG2+JkhaYYT5ZUoGeiR8f0Rx3QHjDHsYnvLhRmr19dY1LVJjh20wVFMi3F1GGtYwWyOFax2EPB6bDbaR2N3jucFTjUOvAHiQhfXvIyapNkwniDzcWGMQ2AkkMh+fYWESeeWy5AgS4ZqrjrwU9vcIJ1wjv8utpZk3TOwBxTqT+M68BuDmvFyC88oHAnsffP5g9e9D6TYYfACUgEaAD5TNQDvATTQDn4HnwEWgB3gDhNKPQLinXiM9gWatk0ALcA/YDfT9A+29q/NG2SifAAAAAElFTkSuQmCC)}.username-challenge .social-login .sc-line-button{background-size:30px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAMAAABGS8AGAAACc1BMVEUAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwAAwwABwwECwwIDxAMExAQFxAUGxAYHxQcIxQgKxQoMxgwNxg0Pxw8RxxESxxIVyBUayRobyRscyhwdyh0eyh4gyyAhyyEiyyIjyyMlzCUmzCYnzCcpzSkqzSorzSstzi0uzi4vzi8wzjAxzzEzzzM0zzQ1zzU20DY40Dg60To70Ts80Tw+0j4/0j9A0kBB0kFD00NE00RF00VG00ZH1EdL1UtN1U1O1U5P1k9U11RY2FhZ2Flc2Vxg2mBj2mNk22Rm22Zn22do22hp3Glq3Gpr3Gts3Gxx3nFy3nJ03nR133V333d433h74Ht84Hx+4X5/4X+A4YCB4YGC4oKE4oSG44aH44eI44iJ44mK44qN5I2O5I6P5Y+Q5ZCR5ZGT5pOV5pWW5paX55eY55iZ55ma55qc6Jyf6J+i6aKj6aOk6qSl6qWn6qeo66iq66qr66us66yt7K2u7K6v7K+w7LCx7bGz7bO07bS17rW27ra37re47ri577m677q777u877y9772/8L/A8MDB8MHD8cPF8cXG8sbH8sfI8sjK88rL88vM88zO887P9M/Q9NDR9NHS9NLU9dTW9dbX9tfY9tjZ9tna9trd993f99/g+ODi+OLk+eTl+eXn+efo+ujp+unr+uvt++3u++7v++/w+/Dx/PHy/PL0/PT1/fX2/fb3/ff4/fj5/vn6/vr7/vv8/vz9//3+//7///9pcauBAAAAHnRSTlMABAcIGRobHCNOT3l6j5GSk8LDxN7f5+jv8PX29/g0zDYfAAAECElEQVRYw7XZ91sTMQAG4BNUkClFBEVTjxaFuifuLUMB9957IS5QHAiioiIiy40TUVERB7hQURFnofmTzHXkWjCXXHr3/dDn2lzeB25kCgKOT4+QsN7RgDPRvQ0hPXyEzukeHAW8Tp/g7h3YLoHRQJNEB3Vxd7uGAc1i6Cq7/hFAw0T448vbC2iaXn7O62sAGsfguM6BQPMESm63vtrDfbshOBjokGBB8I3SA47yFQKALgkQQvWBQwWDPnC4EKkPHCkwND6W9G25lfVNrRC2NtVX5m5Lt9Dr9BMoJ4jJB+vaYYe01x1MEikVleHx2Z8gIR+zE7jhlOs2qBDb9WQueMYtSE3VdNWw5bgVMsR6zKIOTnwLGfMmUQ28wwqZ83c7MyzmQ1XJE9lgcylUmRIzCyyWQNW5KDLARyBHcujwMhsPbFtKg0d+gVxpHkmBiyFnipXhNMidNEX4ET/8UAlOhV4kVQEuxGe1ncr67jq+mdGA7ntBVrOzdci4gj7LNq+TsuUarlJIhs3f8FkFAKxxHr4WwRgIzwAwt83+fTIwPoU1+H164ary1USEF8n/1ybUzjsPL6OSb3AX+txj/44OzsN8XKka11lIhPfK8Mb/weIdDOehbzNR5uyT62QS4XIKDIZ9doMtHe9eGRFuoMFgsU0BfkWEP1NhkCPDcbUoT37KdT4RYasyPDEJPTiPMezIaLlx+UOE25ThKW8HAzCuxRMGVXLPSoSbKTAsRYcrPeHJ+D2CX4jwKxosPd7ABcc3orxxu3wviHAFFf41TYY7PRUVRPgAFYYvB5HhfUR4vgc8cCzKpDxPGJ7G8ACpPGGr3JXNI8Kxre5thSMDmiW4BcPQcfNO4kr3cO8US242izB8xvXT0F+NJjAewiIAVttLWhKA+BzWGp3lJvy6nmBq6G0Xdu2Ush89KTWH36EfSnJ/OIre50ht0e3d9vKMB7jGNAXY6EXXVKHY5y3gdq1Tlbv/K7zwEcq4YsR3PrchnjbEWsXl/plFHxQe5YE3sAxjS9W7WWwD76tq3XNGtqmCuVCde9nMOrkxZrarcMvNKqZjaR+Y3UKTqgnkkALGP/qQUe2UN/EuyyRvLc8kPb2KNh9pmsu5rDDh6Eclt3o473oFel1Ss2tI898TJsAPS4lLWZ9b14n9utyLFRa3JDV6uvdHAW1gsMKjWc+MAVrBKW5u/Szq6eyw3Gu1ZccCDWHXXAc+m81yusC8m5DjYH/siGE5ux/7EqSjlb40inUJknnRVBrx1KayL5oyL/Oe/X1jiZH5jvTUb2Fat6V03Rb/9dmusG+SBWkPB+m7JST4RWjrRvjpve2m30ahflub9s3YPt6znTdj7dvHAaHhkf15zf6R4aEBvrL2D+qGyCRBZ124AAAAAElFTkSuQmCC)}.username-challenge .social-login .sc-facebook-button{background-size:10px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAqCAMAAAHzILt0AAAAllBMVEUAAABVqqpAYJ9VcapGXaJAYJ89XJk/W5o7W5s/WZg8XJg+Wps9WZk7Wpg9WZo9W5s8Wpk7XJo9Wpo8W5o9W5o8W5k7Wpk8Wpo9Wpk8WZk8Wpk8W5k7W5k8Wpo8Wpg8W5g8Wpk8Wpk7Wpk8WZg7Wpk7Wpg8WZk7Wpk7WZk7WZg8Wpk8Wpk8WZg7WZg7WZk7Wpg7Wpg7WZhM4whjAAAAMXRSTlMAAwgJCxgZNTg5SEpQUlNUVVZgYmVrbG9xe3+Eio2QlZmiqKussLTGy87S4eLk5enxv9/qngAAAMZJREFUKM/VkNcSwiAQRa+919iNDbHEvv//c0JgBWPy4Iwv3hnYkzMLywRAByCoRbaqJdSqarSSjCLiRkgiyWx39FrAPO4hyrMmnbhdvrf7uxAwOZp2PucQnjMT0hq+Q6Dc7LbrGkrxXTc3RGPD4VLVizmzUbhN4Ipfc3e4dzjDQJ5VvUpZybjhxzgUQkzgJTeK+DU3q4oncrGy8KBPOebvaBGG4dQN09n5U1huWdSCIDhYeQx0+t7feiVKk+s0OcgY9PcykScc/VNoD1mFGQAAAABJRU5ErkJggg==)}.username-challenge .social-login .sc-google-button:active,.username-challenge .social-login .sc-google-button:focus,.username-challenge .social-login .sc-google-button:hover{border-color:#db3236}.username-challenge .social-login .sc-facebook-button:active,.username-challenge .social-login .sc-facebook-button:focus,.username-challenge .social-login .sc-facebook-button:hover{border-color:#4267b2}.username-challenge .social-login .sc-yahoo-button:active,.username-challenge .social-login .sc-yahoo-button:focus,.username-challenge .social-login .sc-yahoo-button:hover{border-color:#720e9e}.username-challenge .social-login .sc-aol-button:active,.username-challenge .social-login .sc-aol-button:focus,.username-challenge .social-login .sc-aol-button:hover{border-color:#000}.username-challenge .social-login .sc-line-button:active,.username-challenge .social-login .sc-line-button:focus,.username-challenge .social-login .sc-line-button:hover{border-color:#00be00}.username-challenge .social-login .items-1.sc-yahoo-button,.username-challenge .social-login .items-2.sc-yahoo-button{background-size:80px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXwAAABYCAMAAADBc7xsAAAAzFBMVEVMaXEuAHw3AI5UANlGAK0UAEZDAKUyAJI1AIwpAHBBAJdCAKhAAKRGALRFALAkAGdXAOMhAGBGALQhAGBIALgbAE4qAHEbAFIyAINHALcbAFNDAKsbAFUzAIQvAHlIALoZAFBIALlQANExAIJVAN0pAG0xAH0UAEYcAFVDAKVTANlRANNCAKFRANU+AJJLAMFKAL0RAEBNAMYbAFNHALQjAGQgAFswAIEZAEsuAHlRANI9AJxbAOw3AIcoAGtPAMw+AI8NADpgAPk2AJFcwAWjAAAAL3RSTlMAGxD+/v7+AQX+/mwqPZkv/lq1clb6Q43O0q2DyH+r5Nz1nurk5JLt6eXJtMd95UR23xEAAByZSURBVHja7Z0Jd6JK08cBZXPfsxnNvsxkArIjAUz8/t/pqarGHbXROed9nvfePufemUkE9UdR/6rq6kb4uHr404Px5/d4LKqqwDlUoWr9yo7sVLqCJvw7eMkJtXpdhL+owsCPjNbPz8/X1DQa3AxVVRpbVgmOa5nzZKjxX7V/2dc7Y/P+6qGH/7pNXFefO4Zpmvd1QeU9RSM14BDfCyaT16bwj2Cv7huF2Pfup6llTUtpQxNU7VJ3vcBG+kaH80SqULu3DMOKvycT2e7+A9irmqae8rsdcNK7aaXpNIX/qvDPQZgA/dAC0zd7XBzhEnXA8C0nmMhyMOR/7/9Zkyd3LIm1XqPTuVqOTqdRrYkS/o7T8YLTMR0w+1arlKZjBPkCpu8FCtA3riSek8C9A3ZvWPq3LMv2f7fTKegWck+AcOvVxpVjWGC1aLSrkRrjh2pPohtA5SDXMB0jnQL8qeXgMdIzmL7tog83bnhIqtqVZZhWBD5Hti/+SyMdMFccKrkF/It64mmAfK9xVQZrQ100zbIS0VAcsD9rOi2VSumv34z/8fN1TMex8OqlpkNHDMj05+h47mvHP6Qq3KT4UbxvdDrS7gXnl6HCmsV1wN5fF70L6PX1m/eyA6OsKHM/1JMEIhQYHg43nCtOCvjBkB/qKscbXJl4LtOAP8rkr4QR0Lc9prlHL5+qotqa6ZyczmDb8P+vfdDi7q/1bhoNcNEwHh4eGje92savea2+11HKSrmsVOa+rgN5/Xl00W3D6F5cD9/sIAjsxFdSsP9W6Xfv+PcfI/wyXc33jOZz4nFrLqqtuVDb6+1Xg1e7+lOv13sPV7XDZ4KQ6aODL8UXjzmkXhNuIDymA/787oi5B5DlifWbj/G9iXd3aTEgvhvDB6sVsH+wqsFHpMCIZmDyoX45aouStDxYlSSxfT3sAwjbd6alaav0q6cJB8+uAnyyfbD+m+xdumj6fJq7UNsQnc7bdlKsquK7A1nbV8maVlXtCHw/Nn9wtCyLC/5tpLTogFI6zoOPH0aqNt7BhtA/O+ieKxXgd29kFwLUURIEvqhCqI0qcHilEoeh7z/eDlahZaYmNAbdO1ueyIkC+Eut3/WDxq+NDSejb9QXp7tE00/M45oLue0VhvgKqe1OXUETqmUYoE2GdaUe+XaiH7qh2Srhu9a54M91PSp9TQ20kZ0D8FrXGuigwU1EMbrnhW8G76zPFTNF5/D0UMPQ8Ch7rfqJ5Gex78fxZVtcCs6G/uCJpPYwCL4nbrmE1v9H2/tV4Cvfw5dlhn9fX3ytDc09eOk21FbbMXzpAxyaGTl4d9QP34GC9Bjqrj0HJ2ZYnPB93XMx8LB24aM2NsA9g3+ehQmN5+sLGtd3cF8HcgCZPOBvTR/qx3wzYBrNaMRxPLusYsyz54JpaH/tIVj/JLTQ+H/tBYhhPhiO4QBmqyMtT7Cpuerh3Na0Fmq7A6BeRjWJ5wA/7RyJQjWC709NvFB88OGAIMIPcLVlX2D2YqOy8M/goJ9fBk1x8RKxCc6hD3xs9A6lr9KDdND3gDU+AvYM/ot4WCfwl9JFIMvftgKurfW0z4eCy0b2ZPpWY+1CP7s8mquqkNuaBqkthPjqrtwi+7LvonWOj0juafBtBn/zvTEu+VTQS/gheOjnl6aaWRUO9pLmBTrniYuAvgDQfu+gCu3HOGbwZ5894Xgqg+J8F8DZY6Rfqub7NXDKlCuQ26mu/biNpm+T5o73aq6Gaguv0HPVFlPwd4Qf+WCeppEekdw1+CYX/OoK/mZIDJb3kjloQP94K7Isa/H51Kz8InbfEJBuovMB49f2vVHbB4mNZ5XZrHLZ5NNnuPOGsjz51lHYW39yDwKfbS3g39fW80GmuZTnNvbdNlhJht9HmdqqQp7cOuW5H+hWrmP+i/C1DQ99Wcl8hB+PxHxBRUsQr8H3fwcRGv8e34x2H+LtgxezcinyZvCaIAF9+TuhqOePkAu/YVEUBpDe117ANNfONHePVGIlGQ9mapsTbkgfDsrt3LeDMtI/LLkr+KbDBz/Oha8JzU/00DGN6v5YBvG3X4Ng8h2i53+q54FFEiAaIYWZHyJ/9WSTfi/nQC3jh/A3KsiqMALTX2iumn/X1PFQM/4Gw+8Pcgyfye089m3ZR/gdXst3ajzwe7nwVaG58NDw/8FBLwH4m28ojQmGndOcSw5ne04AfkWJKtFnrUjGDs7vDumHEHKWSjnn1jA/xeqQojhVYQM+01wfTd+o5qUwmtSxwFspi9x2x/LVBhq+Ave+F3gYQB4JW1fwy1zwB3nwIQB7BBfN1PFxcMxSgf4d0neR/tMOIVUTnzFKnWFmqwyKVQ3h3K9If16aTltPu2mgKnSsDP7WF1bX8lxzLOXZRBXSs7JDleQctYULrzDDB/jkwIz05tCnVy+X8O854Ku58OFdn5mHRvgDnmvYfMu8A9DfSdHBAUBq5hOgm6IVW03owoWdTMqU7Ao754YEFeDiZX3fvDQbmms1dipQqiqOwV058z1qixeH4ky490dvtpwYxyR3Df6YC37z0d+GD3HMCOP6Co0qDy0IZmzmHRihzfdou57rJgrAL39IhaeJVGGI9D2sZrS23Qfco2NMcJVIKTe2HLu6qbk5JTMDpSI/t6WLx+QWAo7B0OvTLXRQclfwrbHIA7+2gG8s4WNdClz0DGP8aMQVFcIxF0h/Eu2EJRDO3WExYo5ftDwoPlUBBtLHCxuD4ylt31aYoWJdLYoq5epuNRg1N2Cae6VtX7Y6Fk3K/h61RZeMXqcM7B/FrscjuSv4V1zwxRX8rNNCVZvooWOqoH2KAucsgnQHEeckMLeFUVPhg3u2TlXfzinzL+zCwqmn4PYftm+rOqA3y2gnO8EQOJYNzdW2qjY4nxDlV5LJ8EluI8hORkLTtXFSHp35ga+wBl8qBN9cwheuwUPrVPdVqryhCTqeACLOEAn9Xt3EAODNtm0vwqmOcu2UuQmwBoymJiGa/lY0BeEaBot4k35KObFiF8PNTHNrm5FoFdkrCRr+a05uC2iY3Pp+OFCla/A7WOCxDonWqCB86XILvsZc9Bw/mfIh8ZoqvG6IlTa5PE2nrVU1RQWzDexAxxTU7AgnzTxqAuZxcuCQ6Wtb8A2MFmeQP+RaL5n+UnPXp6/e8RvGcm4leSW3iu/7j3gV3X7gMsnd/x1G/gJ+R+OBry7hsyQcbscheGgdS5kKv+Gje2Gmn6TptDTWllUIETKwIIiw9GX21JMmp8H06dR+CWdqNwwYizP3joNFi5ccKKC5ZPrzrQIbNouASFcq2bxt3qEalnVMMHy/C5GS+AamH8Fp0t5+01/CTzuqwDP3v4JPsw7AEFx0Jo/vWhFC0tDug4Wi6ZeqK/EGsZQ9/O6cjRy5Jx8CfDgL3lWNzVSqivD3hcQQ/6xr7vL9VaFXRvYhhZntnCPhqlJZB5yO38RE8hokNyTJ3T+18LKCz3OP78AXwHvYtkvTJ85NEReNuoiOR5+maek3+554ReDrTWKSvMapXRl4V8F1nUR46vGGbgo3mCgh/Fwvq6nNZww3SXOtxfcBd/RO9dp9aotXbSG3/kjDKZ4Bzl/gnIq5T3LPhg93eAAu2mdz0vVClQBV7MN1AytLrXRazwRkAPnRRFZwIui+fqrhQxJHUzc6NfhsOi9sHFEgF7/Mlzgggo6HasvLRhK4ZAqW+BLMbftNNc/j10husaTbFtCBa8+2LcdMG4/Db3D1C23BB/NFF62gipkfRd0E3jT2ZD610lKDWb5wAey/sS4CiYdw6gBLJZdmG0C/9LBeg9I+AH4Ux7Pb/K8L9x6ZPqstsygd1RaTd1DbCU2h5HG5obJO6IfPREElyfXoe4j7aqTr8LXC8NFNoIsGF+ncF3UTKkb0YPqhZVnTzDmodwhfT03MoE9vdAOb8Ppg++h3pmvZI8C/AjOpAPz2ng8LCbaOmhstC2zwMT4iYA9qC17nLd/CSG6deRiGL+yCYahPkmtYe5J+Vbg9HX4VdQXcBETUVCJ3qoVrYC6avm1aVkozyBAro9eZYIBspD3hDPh0XWV/is2F9TX40jvAx9Jrfe+ECZZ4bKpKmgZaLagt2v0BtV3OouAcXnPhqiDUl2lOpbPvMp8Lv420YrRUYywWowV+8o1Mvwymn2JUDfcqspdp7t+qnw4friKmaiDmAL+0nkVIVPry48sDU4WDZKW56IylT6oYBhRm5lX6F2UdNPyFllAYGOCcirmnjeFc+IJ6jbCw2kBzugUJadceihsYujXFShEEaHAtvwPDOloLPzrwugauiY34nfUkEQxUwbm2/d82m1axy3Q/A7gXMvwkK+rkTv6wWRQ0/FUCpr2xAo+5p8CzBn96EnzpDWGhPhrFfTR4ZuzpscMUnAwG1Rl817LoB+fAV4d4U9llgJ+O1wRXBEhRGMa3+/M3VuKB24Y090qoEXvKbXPDTCp4UpwJ7J+Xt7+KuhPY6BPyCzznw0dYtkXwG0Jh+F2Cn5ChQ7CJUT6cLwRixrRzTmc5elySTYR/r62AgIk6FYhJDnXVL0o8meaOKku17Yv5FNksSgzwR8vzkqQFlCznF3jOhA/nn5ClEvzqyfApsuzRLBSeb07wG+c0vqPZwQD4BgjKmjWiMM7C8PFISyCFmx51PFJGlqlt/rJDVtaBODPU9cFaiRCrazinYuYXeM6G36bIkOCnhQUSp02wmdBFgaUaCKVY39EUg8+b8+C38boGc4JfX8GHcLwc6+HlkWZYKvHIpLlUi4DcdiIHd/kqvZJb/XmtQMaqa2xOpXcMvqqpR4embsKnnMhnll8rbvkQVyB8bLOY0rUk+Mr58OHUdFNBignnqq7gg3NWfD08sohN1UBzbdJco5ypLcDPDTNZWQdiKJzN665BVqm6tpDcw27nhu9rbcFHnx+fCB+7FND0XWUTfhnhp2fCbxJ8H5eupMuakyZ0ymUFIA2O9c43ddJcgO8s1Xa4p8kom0XRdf25udnLNELJdfZI7gq+aTz9ovE7Gw+LsfjBb/b7+xhsYgmfohPKiQzjBPi1Z1pjEhlZqMvgO6U0tdLqmfATpB+SQ1x6VE34KJcrif587LNqWOKxUXMJvseKOvkeX2WzKLhyY7Q1+4VZpEySm+PUl/CnrOmeZ3xZc+9vwRcJvgfwzS346V+A7+bCV2ZJODq6PoyFm6C5lkNqC07nQttTJbghucVVMwN1s4QqDcHv4FK7vALPAr4yj5SIVoDgKO8ZNFMIL4v0TfgRwTdPgC89Uwd/ZDpr8Cdmafp34LteaK7Dx0y0rMRJ+HL03NgVgJobA/yZTUWdfQtxJFyPYMbodXLCOZBcmlOpCvvgpzGcn3cE224nSs+Cn7gV07m31uC3ptN0ei58PQe+UHtXlDDRj+9UoWrSEE3fdhyW2+4JM1lZxzFRbvXuTqMKSu4kRFpX2m4vSuZ2LHPuyQGN/p7Bfivb+rrgZvAxJT3N7RD8iDXLL9yO2SpNp+fDTxbwrRX8Os6BJ89Nrv4wCjd1kyrJe8PMRZwJTkev7a4SQskNHGxtrqvq3min1BC5xmW8Ax+TIuukaKf2jMsLE4J/sw6/NC3dnA0f6PsE/2Y5SdkDxwnw+aYuKNwM5u43q2bme3y1TgsbwyTRRzmNVAOP5lTMnALPZmHt1FBzPj0VfvM5RIuJIPOxVqGm+cX668+L8+me8k2T4KsLF6EoM9e95IKvNqm6mYQ2uNqhtq8uzOLMBN5u9/qogoa9ax4VeOo7rYtnJlldSrIwNLTSE+APMCPX9QgX8PVW0c5Xq3UmfGzwR/gxwl/2HKN/VmLXveWDD+Fm354k4JJ1r7lv4gviTDB8H5ef5fglTSXJxWgzvRHUv1teGFB5AaMTa9ornuHiEghIeTC+clblhTLC/zoT/i0thZxjaWy54EmDqFAJPZdvrwqchp/Ik8SEPO1d2zcVmMWZAD/vkmpqEyU3oYkZabt77sx6vkiFtRbSn94Uh3+LFXCAj+EtVspFKqxFX0D/6+E8+Ni7m1AQa95n3xr4NRRF91y+WR+wjUAOEH5erLKaGQP4MVznRMyf4xotCzxV9e/Cl15xvvsLl5dPOyfAxyqs7iP89xpOCQ+pXPEF9L9+nVXPxz5IoI9dh+aipAwf90OpJN5QKgrf2gNfU3sOxZmg7aM9/dQDL2AFHuPqL1u+doeTKVOkXyo8kwU5PMIPY4T/oamL6Cn5wvF03kzWI6mJgl0VV8t1BOJnNHO9C74TH4ePzRAkt66rR09s/Fob7CcOKHZA1enN5rVz4bNWj0n5B5x06anohiKCdIl9LuEswm55mkak6CloIfxW/Rz40iNTE1zkv5jlAfiVStx3OTcDRPiQ2BxwO8s4MzYPlmfSuU0Fno72N+Gz+OR7/gOsStN64Qn0OPZ9P6xUItbfrDIBl6cI/6d3zgT6ICSHVl7EUdkbVip+32sXhz/eY/kd6tbR/TmJ12Jgy/zyH2Hox3M9xDnJzWnpTfjqCfBx7ulbJ0tt/SnW1wqEZkg/xmb5CvPD2iu7kxD+wzmtI+TQ9JgaOupLywf4of3W5Hc7B+FjtQLLOr5rHy7IfMtsTtLa6hs9s2NNJS8tT0+hBW/OVu0i/I+MD03i+j/k9M8KdkhNKgB/1UinCtVKJbGHAu9+M9hHfQC+plKbWll3Xa//+vr69vZ2tzXgR/ALz7NZb9P9eo3i7F5NSCLQ75QZrYKNO8LnjK0frVSy5vLMjbnM6Yunmj6tXkJHgEruNFYL914qM8++5oxhs/Ube+Hj3jpg+Mbcdd2knW1Cs5OV4nimAg/bT0Y7C35W2zGyLmUKNt0v5qWL+B1IqbIdRYB+ttoW3Fgf71ODLubJaRaeGsWEwihlbQZ3VJn1ubekI/j9QDdzEqTsRnJIbgH+nXjoTC8Anwo8G13vZ8DPWsSzeMci+L+LtYhTMxIz/ZcsEte064WCw+nUk7fEG+EePeGMYti1frXLShwEgwJup28fgM+WQ0Q4F3fogkKQhRNaHgabxka0ubY4QjtpcQTZaualW7Ui++TVPjP4QH9VACC/Yy+CzdNWpghSzMQEY9hVXqkKn5Uw6Ev88L0D8LN5czPEGbPm4TX3uEJLRsk1OuupWNFlQdrWsiDw+iS5aSa5Gj+hW4Xg+wB/tLYAh/qUHTrdn9PWZMGpSclnuL/Y+1rTjvhZSeQ3fvjdJfz73Y2dskJ+GdkPj11Ft29PdNprZr22WXhB3OfOgjiKNv2vYqavqhLbwsvHLbxqa9bJJJdOVzppXRCc+pLdUHB+5WZtk4LBrOLJ1+pfgk8Jlhl7rue2D4odrVsDyS1v7x35N5aCYlo6MZnp80ouW+zBdq6Lb4X1Pq9N0z/F8KsVgo8h7Odq4lrDn/eDLv8GMl3sPtGxKJ0DnyVYjg6vuTsSl2kkuRN/e2n731gETQUej9z0F2eWSxN6ERg+JoCX62v8tXXTP6W+g/cUbfyThbDaWh0P4bcLwHf3ws/WAZkRGv6x+AmCUpRcG9lbjWWN4a8s/1cHS839eeJ6/AJrI1CUCtZftjqYNOGa2tYWd1JR+sQ4G5WPtTo8/ELx5WDwV+BrNIMFcSYY/vGUWVVJctmuDisRKrrxRX134wtav7nE9VvjilgbDjaihLitzu0mDZWJiF0i2+8Vnx6rVyosjAL4azciLhgEw78T+RfJUx9vmAefFkVjWQfbcY+nzNi9iJNiuOfGauNO9bHwli+78LNq5MRZFBmO2YFG/aqK4rsJ9dBsGxU5npBSh6eCVX3cI4FWbZLTv91IKLXR26t3zR2QrcM3pa3tYWgBnGP6CL+tHt9/mUlutpdP9vrCmx318uCz3OhbNjOVPNYICZ+cNvDwXBen/Hc2O1JZRwqd7ZdU8LkQDSbkmxEsG7i9ZJv7YmKbftZ9Ym7DZ9sIQpwJfulO4gHHJJeizWUzxdo2X1x7rLXnfu42X4x+Vo48uGMmvLZBy3ZD23OTUV7RRNCGawFUgWBfpVnaqBLNcGvCS/GsjfsPwsepW8eYo+HzhE8kuaxp1jQXNYbiG9zlwkderIuEfMWvvbv10n6/HQs3/khsD+KEPXVy8W4if8sW15206Q1wWxZlhhtfPTZ3NxAr8ogNBt9l8MWtPYFo5SfGmfZbU+WaCFlKrrPopjhha0c/d19N+N6kugmkuq2f1h8pDz9+Sq06xrWLczvo22A0+bapIf3Jd8DoP2i88St6YtDxGcZQj4Mzn+lAmzgt4G/45GzlJ8SZMPhEBEJCkFzZRck137XT4N+u4G/uKIvPnLpD1xO1flAoe2IWYmw87EDqXVmWkSqJLAf2cP82hLgHniwvVOS3yOF6cEPfjok77c+SRD+fPfpp7D5h8NfhMMMvO0aIixb5RIR1LFOBh7ayVZcbWRfazpfgGzmTymCuF7ihqxe1vn5+fp4e6tudi/XGlZVaVlmXJ3LQvziElHaHnXxPFBbz9I7tOo43Vf3KxGnDGGIo/bJ59rNMGPzE34VPhm86EbJ/03jnxbB9aqI7luGQ18eEFeGHU4t/C3dfT+x5Squ8drI+oXkN9vodzC166trTrz/1eo1GvV7tjI10ajmRC6+Q5evm4f2RmYZD7kY30hdu+n74WSBigzbpxb4ciKHE3T28ij5RC+Bj788OfDL8e7jGAcLnfUoWLvm2+/2gHyrmvUk7Pdd8gN/v6+WU3/JDOGBuWMZuPQK/2uCiDxb77c7LJbaWojR9esJHguGTI5RY739/40KDwdHnF9DWs3Aq22HG/wf9mJYnJIhZuhnTTrEYf7huV9hlv/kn3zTnCv5asoeqHvleIAeBbfe57zCUXNrjxk4ih0rUtTh06Qe+w/vkiNDFVnFXya1H0GbJ3SFC+w68cK4YuM7Bop0+4J1kJP867Ioczy6g6Xm6kXTri2TkoS4Ju0+JQ/K1xhjexDKjxIb4ddjM2VtdqPV6PXxmCPfTzFjXm74NHyvTl+ypANdD71rlP9/AfcueJjCkHTDr4XDx74gPfjjMnkZw+V7L3y4I/tfsXqD40sAFrBP2d2xzv+g2s4vEc+MLbfL8oUnW//X0p1fbfpHYu7nCJYeWESVgi95dd/fKgqd4MbGl0XoQ+Z9/iPDDHPhSczFpiH8rcCs1RW1xXI3OIy3PI/F8ILGpLdNF7YAHhvM1u9fDO5y8Z+NueN1tNiWhyOOaMIJpU9jjKqWvH6Yjvx+qdVGCIdarN52rsYU3l1mOPXkS2HddMW+TY/UlYg83K3HvHQbxyIi2Mif41e0HNWjaSY/lW3uawOo8WtHjj8QeaxuMS6Iorf2z2EemB3Jc91GjQ8XI+sKwi7mUPR+uhA8bU2IX7i05uO5qQu7Of009MlLSnVKVWyG1EXZAxLT3S3Uj1FwqSMEvs1IedcMI+Z9pxvf6tQcXHPgRl/GjG0Pv8y17+txJSy3s0CL+4OjLIEL2BJ3bXXewR1FVoZ3Mzex5iB3ulG0f/P+lcfazEfE20iRwYq8TJiFeElI3oIs7x+IyzVdwaehP1X3LR7puqFDENTUv+eFf+jjJaVi8D038/zkyL9bEh8LdvS6kHC8ESMlFt9087AQAvu36kWOlRnnODx/7eOPQDiGM+ifDF1aPvEUJEcUmDlqgx+Tk8ANxwe0EfTeM5xFkKSNunw/w4wSyFtye4J8NfxEa5P/46CO3XoO+l2D/MG+PMoNP62PlIDYawr+POc97EjcXyLZMK4xt+1rjDjXFR49lQdd34b/wz7hkwuD6FfjfXUj8SZY2WOQ+4qD5L/xz6AvNQRsYbkL8Dzs8HMWwgaiLAAAAAElFTkSuQmCC)}.username-challenge .social-login .items-1.sc-facebook-button,.username-challenge .social-login .items-2.sc-facebook-button{background-size:90px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAUCAMAAAEy8vhLAAACUlBMVEUAAAD///+AgP9VqqpAgL9VgKpJbbZAYL85caozZrMuXaJAaqo7YrE3W6QtWqU2XqExYaouXaI3ZKY1YKozXKMxYqcvXqouW6Q1YacxWqUwYKcuXaItWqUzX6gyXKMwWqUyXaIxW6QvX6YyXqYxXKMwWqUvXqEuXKMtWqUxXaIvWqUuXaIuW6QxWaEwXKMvWaIuXKMtWqUxWaIwXKMuW6QtWqEwXKMvW6QuXKMtW6QwWqIwXKMvW6EuWaIuXKMtWqEwWaMvW6QvWqIuWaMuW6QvXKMvW6EvW6QuWqMuW6EtWqIvW6EuWaMtW6ItWqMvWaMvW6IuWqMtW6IvWqMvW6EuWqIuWqMuW6ItWqIvWaEvW6IuWqMtWqMvWaIuW6IuWqMuWaItWqIvWqEvWaItW6IvWqIuW6IuWqEtW6IvWaIuW6MuWqEuWaItWqMvWqIuWaIuWqEuWqItWaItWqEvWqIuW6MuWqIuWqItW6EtWqIuWaIuWqEtWaItWqEvWqIuWaMtWqIuWqIuWaEuWqIuWaEuWqIuWqItWqIuWqIuWaEuWqIuWqItWaItWqIuWaIuWqItWqEtWaItWqIuWqEuWqEtWaItWqIuWqEuWqItWqIuWqEuWqEtWaItWqEuWqEtWaEuWaIuWaEtWqItWaIuWqIuWaIuWqEtWqItWaEtWqIuWqItWqItWaEuWqIuWaEuWaEuWqIuWaEuWqItWqItWaEtWqIuWqEuWaItWqItWqEtWaIuWqIuWqEuWaItWqEtWaEtWaIuWqEuWaIuWaItWaItWaGhhe5tAAAAxXRSTlMAAQIDBAYHCAkKCwwNDhETFRYXGBkaGxwdHyAhIiMkJSkqKy4vMDEyMzQ2Nzg5Ojw9Pj9AQ0RFRkhJSktMTU5PUFFSU1RWV1xeX2BiZGVmZ2hpa2xtbm9wcXJzdHd4eXp7fH1+gYOEhYeJiouMjY6PkJGSk5SVlpeYmZqbnZ6foKSlpqerrK2vsLGys7S1t7i5uru8vr/AwcPGx8nLzM/R09TV1tjZ2tvc3d7h4uPk5enq6+zt7u/w8fLz9PX29/j5+vv8/tCoVvcAAAOVSURBVBgZjcH9f8wFAMDxzzbbOKmRh0K3WJGVkIdqat0dUUTT0iqGpFoxIU+hs3azCQ2J1np0Sw9EU91qU1u4z//V986OXtsP6/2GOIHpZDWo6Bi9QkAX7Op9sk0n8iD/oWhIF6ko2/tGate7pkFyQin6SUD2izRoKFVdL4oK7GGw+4D4anIkR0DrTTcZOKEuVhQdRSI2rlnBAIo7qnoKFRIxx+sHZ637xo3+8ZlzrosCM1UGCpliICVjRptvR++OVpYCd66pngDLaksZaWr52nEwvLp6OLC4dgYoY6NPQcIYcJuieUza6CtoyCsc9nUdO16ftxVF47YACWPoVUWB/dZHIpGQKWqsU9B6q+ixwMBoIGGMHv1LphrglIGQgV8oNlBMh7oG5QdfANbEpzHIKAYpGkGWWslAykBJw2QpgykDJQ2TEdXo2Gh0Xj6wZEMFlNYuA51SuxRYsH4BUFKzMp8Ow0SjeRiYbOB+DJSdMoAZfZjBXgPjkoaXeglQAi/7xTtuIW+EstZ1Oilf77GTX52ohRX+2GFYCSisaz5qZ5vlgBkHFbTSJlpcqKBJu6wmoHyuV+086UxAI5HIdAV93EMc9lEF00lftIuA0uVjq+x8zu66Q1O1cXPzfN3QrMN1ixZr4rxHOwz/7cOAMs1AJ1+pZXcZqDBjBk1qE5PUa3QYLlIy6tMGKhlSUevPphjSrnPXDXPLJvXP1o/KGVJITTGkpBrmloS6iP8jpKYYUlINk9Ngv9mvmnVxGVD8Rp9ZZZR8bNaxEkLmXF0NrPjNjN9XAIU7r5mRfAg61DCcVHdCgzekixrt18g8A5fPnu+1bL7avX3HFXVuyED6wmUDKwvOqb3f96nf5ZdeU7t+Squ76VDDd1xWI2Qk1Bj9StQLHFbnkHVA3bZkyXvq3pCaAmrULfPUFuCY+kidWg306j95SXWl2j2erIQag5l99uukTS0nq8GbDobUFFCt1leqTUCLunCHWgV0q4VJtUut5oaEGoMeTU/hdrWT3epystaqm7ghpKaAD9SXpqrf5pHXod5bo26DCeolkmq4RY2TlVBjcNycToadtV8ZJ82pCHnTxWI2mLMeTptTTlIN85r6dQGBqng8/gAwefupo1tnP9HYuAfIf6bhTPvx3atGAZEDn37Z3rqvZkzBs29++El7+4n3lxaTMWvzkTNHNs8iY9jT+1pPH1o/GXgrHo+PhrnxeHxr3r+19q3kbvybVQAAAABJRU5ErkJggg==)}.username-challenge .social-login .items-1.sc-google-button,.username-challenge .social-login .items-2.sc-google-button{background-size:75px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAWCAYAAAEDTHqfAAAGeklEQVRYw+VYa2wUVRQe1NkW0FBNBIJBxQcaxaCBmW15pe7cmbWVlEpdH1ECgiFGEkGM0SCJNbKzS3kKRsFAGqIkpRijRiXBfWiQYKQRFAJEBIQfArvbUnBmdpduuZ4zj92Z7WxbQkkEb3Kzd2bOPfc8v3PuMgwMn6weZXobQlA9JcjKbCGoLUwSfm8uymr6xqBC26Vpo5MC32USKu34mxS4T7ujnndxLa1Ij8HfDkKG6URzmml58QlTWwO35x+QbULgKK5zEfasL6j+xW1/emZK9L7INFJ6Q22TMjIl8LORoCvKrgX5NntbAxMShN/DUEoH+cPKePyIa6YfA7k7XgRa6Y1iU+Z+XDfG6U06s8Zq/TcpTh5VzABpkElC4PcnRe4N5nIH6ozT3f6y+qFPVrb1lxm37Rni4Hy50kxsaaD20zfZRQQrr2sn3gZ0UVfUsz8XL5sObkoBnULC6gykQQb4PUm4FocEdt/qDCKsvsZfi87OoKCGrGyF+YP1DJxPWutc1HO6QKceRQZcS0Mzegri9ed+6w0q1Je0lyirtboNZOUACWqvQ0bsxGd/KHMfM0ADY8hh/KI0bIbDO/pikiLeGRCIv6Gj7O+7I2ULuyKeQ+C0RgffkLISeO+VVtDhRFbW2IXoIFPuTBDupxThN5smUj4DrZPWZtg0tHZl+i6cYL4MCalz0XE0EPBYNPis1HlHWM62hvVsNzmig+4/UwhQYh8cvgzyPWhEFL/XlFp7FglB8l0GOKlb9GdZW25gEL8JcOhSSuJ9ECxxK5pA+8MQrp00PnhKLuI5iWvT9xmw7kEpnJ4G65xdCAwk3J8SvK8mRH6JIzIHcoASx+vX0ApcoytAkJP92iiF0j7Ayd0Q/m2irMwaaMEckFIidRQjO7QVJKg2gibdIMzFgRSiZGaYid8Gh2aZqzx6FwIsMH8jZftiAlG9Beau9hrvQ9Y72jaBBST7AuZ3NF5Rkee5WrsDgxwUXAeBvkqQM2PtQqQEbi1myTk/P94V8S3gttcYPZWgSgOQv4TrdoF7AgXAlIQMeb87VrYY1zQydARWcDPTFsDcaKwzoiUEZNoF4HUkIXprjSyZxOmHYhW1hLAwAquq3jfgwYTL5C0iVdbgZtB+K/QXO20YsQpA63fQ/AxkxNs2d1+0C4F7DbDiz+pCiNwcLBoHQWLVJVh/wW9JkX8ZkFKz3rdLXlEXIuJpgbkjL0TMsxyRE/sbwJfFNj6ZYiFg/nneX3VbcV5nDXBSl2AXBYdfsLtJ30j49QBW9br0pHImjd9dji5AV+Ri7FzdHT8OHu0PZx/GvWJIex6yLdTDHYTrBJT8I0kqq831R3lBSEhrAC0OYU+FwhRbBjZ8Bf48mPJX8YXAHDUEXBIDAfbQ+NCRBe0zY00LbwF3XJJkzYtlNx+YovcDsO4ZcPPSq5KKvpD2FBx84kpanYGBbQv8DBdvuqzNUjA7TofuojS1T6wDMKcz/9FhFcpewbHUgJbhMcxSU1HFF1JfcaVbrlUa8aY9d90ZAr2b93hIfYe5xseVGOJXs9p87fb9yRC9lYSzj5Sa+F1HrUDVYECez01MdkxAuWzxNY3Gyh6AyndAr4BFE2rB313Rcl/RdaAOu/Ee6Sqrp/NpC7DsZgiEd4Dl8z3kEriLCYmfZ9WMfaYhvnQ3lDK7N8zwhZS3UlLVg9gEm52zo+3H+yy8320VLfOKsEBXOMpeopHyqQ56qD3QLJ/Xv8fYDaaztltK+1dTR9Ejsrq0N0MkifcT0xmnztVXVxhOC3hA3hegbKTNmrgDGGkzC9bVFvWvkU4/bu3BqABGYdPCR9zoO8mUe/KekLhpXVG2zTTEejf67hg734gMNouK24C6vkRUHytlCIhSxXICOClnrNEA3ma9l3JUi7A2Kd9NYDsC1yDXqgKXOUyhvBHAiPqFTpo0rpAG/JsOD1M6CIp/1PSKfvPojpYtMhXN0fiQiQ763TcPx5u/mSKbzaj9xoza43g3dBpBe63XiBD4Daby/3RK/BhHYyLyE7FndLGsVoVVoY/yqeDhPbqdusm3gKLfu2MEn4Noec+JEex4UPSYK0ZE2Q78K8SJEcosq7I55AHH9YURYIzpIEOHm2xgoBOY2tdMNcB/7TAii9/XNGXuLaQpHcZcz0NsUh61Uhci9jBeBCAy5+VB1ADtOcz/ZeD/uCSoLoPq8S1UszisPyahdPVA8P4XsLx7gagkP9MAAAAASUVORK5CYII=)}.username-challenge .or-cont-with-desc{line-height:.82353em;font-size:.82353em}.username-challenge .eol-notice{background-color:#fff;color:#b024ae}@media screen and (max-height:550px){.username-challenge .social-login-container{position:relative}}.username-challenge .oauth-notice{margin:20px 0;display:none}.username-challenge .oauth-notice p{margin:20px 0;font-size:.82353em}.username-challenge .oauth-notice.show{display:block}.username-challenge .oauth-notice.show+input[name=signin]{display:none}#tpa-err-container{position:relative;top:-71px;text-align:center}.manage-account{margin:0 auto;padding:5px 5px 50px;max-width:500px;text-align:left}.manage-account h2{margin:20px 0;font-size:1.29412em;font-weight:500}.manage-account .title-desc{margin-bottom:15px}.manage-account .error{margin:10px 0;padding:10px;color:#dd1037;text-align:left;font-size:.76471em;border:1px solid #dd1037}.manage-account .account-list li{margin:0}.manage-account .account-card{position:relative;padding:1em;border-bottom:2px solid #e2e2e2}.manage-account .account-card:last-child{border:0}.manage-account .account-card .username{display:block;width:60%;color:#000;white-space:nowrap}.manage-account .account-card.loggedOut .username{color:#7c7c7c}.manage-account .account-card .username:hover{color:#003abc}.manage-account .account-card .username img{width:3em;height:3em;float:left;margin-right:.63em;padding-left:1px}.manage-account .account-card .username span,.manage-account .account-card .username strong{display:block;text-overflow:ellipsis;overflow:hidden}.manage-account .account-card .actions{position:absolute;top:1em;right:0;text-align:right;font-size:.82353em}.manage-account .account-card .actions a{display:block}.manage-account .account-card .actions .sign-out{color:#818181}.manage-account .account-card .actions .sign-out:hover{color:#003abc}.manage-account .account-card button{position:absolute;top:1em;right:0;margin:15px 0;padding:5px 16px;border:0}.manage-account .account-card button:focus,.manage-account .account-card button:hover{outline:#188fff solid 1px}.manage-account .orko-button{padding:.8em 1.5em;width:auto;height:auto}.switch-account{margin:0 auto;padding:5px;max-width:500px}.switch-account h2{margin:20px 0;font-size:1.29412em;font-weight:500}.switch-account .account-card{box-sizing:border-box;width:300px;margin:40px auto;padding:24px;border-radius:2px;background-color:#fff;box-shadow:0 3px 7px 0 rgba(181,181,181,.7))}.switch-account .account-card img{display:block;margin:16px auto 32px;width:96px;height:96px}.switch-account .account-card span,.switch-account .account-card strong{display:block;text-overflow:ellipsis;overflow:hidden}.switch-account .orko-button{display:block;margin:20px auto;padding:.8em 1.5em;height:auto}.confirm-logout{margin:auto 30px}.confirm-logout img{margin-top:20px}.confirm-logout .title{padding:20px 0 40px}.confirm-logout a{margin:10px auto}.fc-logout{padding:20px;margin-top:30px}.fc-logout .logout-spinner{background:url(https://s.yimg.com/wm/modern/images/fuji-spinner-dark-1.0.0.svg) center no-repeat;background-size:50px;width:100%;height:35px;border:none;display:inline-block;margin-top:50px}.imapin-error{margin-top:20px}.prog-phone-reg{max-width:300px;margin:0 auto;display:none}.prog-phone-reg-spinner{margin:10px 0 -70px;background:url(https://s.yimg.com/wm/modern/images/fuji-spinner-dark-1.0.0.svg) center no-repeat;background-size:50px;width:100%;height:35px;border:none;display:inline-block}</style> <link rel="icon" type="image/x-icon" href="https://s.yimg.com/wm/login/favicon.ico"> <link rel="shortcut icon" type="image/x-icon" href="https://s.yimg.com/wm/login/favicon.ico"> <link rel="apple-touch-icon" href="https://s.yimg.com/wm/login/apple-touch-icon.png"> <link rel="apple-touch-icon-precomposed" href="https://s.yimg.com/wm/login/apple-touch-icon.png"> <script nonce="qht0GRqbNjcOBHScsFciQJEa8qnoddwSH0ENawIb56vNnmhp"> var pageStartTime = new Date().getTime(); document.documentElement.className = document.documentElement.className.replace('no-js', 'js'); </script> </head> <body class="orko fr-fr mbr-secure-secret"><div class="row login-header"> <span class="column"><a href="https://fr.yahoo.com/" title="Yahoo"><img src="https://s.yimg.com/rz/d/yahoo_fr-FR_f_p_bestfit_2x.png" alt="Yahoo" class="logo" width="116" height="" /></a></span> </div> <div class="login-body"> <div class="login-content"> <div class="login-box "> <div class="login-logo"><img src="https://s.yimg.com/rz/d/yahoo_fr-FR_f_p_bestfit_2x.png" alt="Yahoo" class="logo" width="116" height="" /></div> <p id="error-offline" role="alert" class="row error-offline hide">Connexion réseau expirée. Veuillez réessayer.</p> <form id="login-username-form" method="post" class="username-challenge"> <input type="hidden" name="acrumb" value="xFTkBAYG" /> <input type="hidden" name="sessionIndex" value="Qw--" /> <div class="sign-in-title"> <h1 class="sign-in-title-greeting" id="mbr-login-greeting"> Se connecter à Yahoo Mail </h1> <p class="row signin-sub-title"> à l’aide de votre compte Yahoo </p> </div> <div id="username-country-code-field" class="username-country-code cci-dropdown-disabled code-of-length-2"> <div id="selected-country-code-cont" class="country-code-dropdown selected-country-code-cont ltr hide"> <div id="selected-country-code" class="selected-country-code">+33</div> <span class="arrow"></span> </div> <div id="country-dropdown-container" class="country-code-dropdown country-dropdown-container hide"> <div class="puree-dropdown"> <label class="offscreen" id="country-code-lbl-aria">Saisissez le code du pays</label> <select type="select" name="countryCodeIntl" aria-required="true" role="combobox" aria-multiline="false" aria-labelledby="country-code-lbl-aria" disabled> <option role="option" data-code="+93" value="AF" >Afghanistan &#x202A;(+93)&#x202C;</option> <option role="option" data-code="+355" value="AL" >Albanie &#x202A;(+355)&#x202C;</option> <option role="option" data-code="+213" value="DZ" >Algérie &#x202A;(+213)&#x202C;</option> <option role="option" data-code="+1" value="AS" >Samoa américaines &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+376" value="AD" >Andorre &#x202A;(+376)&#x202C;</option> <option role="option" data-code="+244" value="AO" >Angola &#x202A;(+244)&#x202C;</option> <option role="option" data-code="+1" value="AI" >Anguilla &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+1" value="AG" >Antigua et Barbuda &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+54" value="AR" >Argentine &#x202A;(+54)&#x202C;</option> <option role="option" data-code="+374" value="AM" >Arménie &#x202A;(+374)&#x202C;</option> <option role="option" data-code="+297" value="AW" >Aruba &#x202A;(+297)&#x202C;</option> <option role="option" data-code="+247" value="AC" >Ascension &#x202A;(+247)&#x202C;</option> <option role="option" data-code="+61" value="AU" >Australie &#x202A;(+61)&#x202C;</option> <option role="option" data-code="+672" value="AX" >Territoires australiens extérieurs &#x202A;(+672)&#x202C;</option> <option role="option" data-code="+43" value="AT" >Autriche &#x202A;(+43)&#x202C;</option> <option role="option" data-code="+994" value="AZ" >Azerbaïdjan &#x202A;(+994)&#x202C;</option> <option role="option" data-code="+1" value="BS" >Bahamas &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+973" value="BH" >Bahreïn &#x202A;(+973)&#x202C;</option> <option role="option" data-code="+880" value="BD" >Bangladesh &#x202A;(+880)&#x202C;</option> <option role="option" data-code="+1" value="BB" >Barbade &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+375" value="BY" >Bélarus &#x202A;(+375)&#x202C;</option> <option role="option" data-code="+32" value="BE" >Belgique &#x202A;(+32)&#x202C;</option> <option role="option" data-code="+501" value="BZ" >Belize &#x202A;(+501)&#x202C;</option> <option role="option" data-code="+229" value="BJ" >Bénin &#x202A;(+229)&#x202C;</option> <option role="option" data-code="+1" value="BM" >Bermudes &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+975" value="BT" >Bhoutan &#x202A;(+975)&#x202C;</option> <option role="option" data-code="+591" value="BO" >Bolivie &#x202A;(+591)&#x202C;</option> <option role="option" data-code="+387" value="BA" >Bosnie-Herzégovine &#x202A;(+387)&#x202C;</option> <option role="option" data-code="+267" value="BW" >Botswana &#x202A;(+267)&#x202C;</option> <option role="option" data-code="+55" value="BR" >Brésil &#x202A;(+55)&#x202C;</option> <option role="option" data-code="+1" value="VG" >Îles Vierges britanniques &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+673" value="BN" >Brunei Darussalam &#x202A;(+673)&#x202C;</option> <option role="option" data-code="+359" value="BG" >Bulgarie &#x202A;(+359)&#x202C;</option> <option role="option" data-code="+226" value="BF" >Burkina Faso &#x202A;(+226)&#x202C;</option> <option role="option" data-code="+257" value="BI" >Burundi &#x202A;(+257)&#x202C;</option> <option role="option" data-code="+855" value="KH" >Cambodge &#x202A;(+855)&#x202C;</option> <option role="option" data-code="+237" value="CM" >Cameroun &#x202A;(+237)&#x202C;</option> <option role="option" data-code="+1" value="CA" >Canada &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+238" value="CV" >Cap-Vert &#x202A;(+238)&#x202C;</option> <option role="option" data-code="+1" value="KY" >Îles Caïmans &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+236" value="CF" >République centrafricaine &#x202A;(+236)&#x202C;</option> <option role="option" data-code="+235" value="TD" >Tchad &#x202A;(+235)&#x202C;</option> <option role="option" data-code="+56" value="CL" >Chili &#x202A;(+56)&#x202C;</option> <option role="option" data-code="+86" value="CN" >Chine &#x202A;(+86)&#x202C;</option> <option role="option" data-code="+57" value="CO" >Colombie &#x202A;(+57)&#x202C;</option> <option role="option" data-code="+269" value="KM" >Comores &#x202A;(+269)&#x202C;</option> <option role="option" data-code="+242" value="CG" >Congo &#x202A;(+242)&#x202C;</option> <option role="option" data-code="+682" value="CK" >Îles Cook &#x202A;(+682)&#x202C;</option> <option role="option" data-code="+506" value="CR" >Costa Rica &#x202A;(+506)&#x202C;</option> <option role="option" data-code="+225" value="CI" >Côte d&#x27;Ivoire &#x202A;(+225)&#x202C;</option> <option role="option" data-code="+385" value="HR" >Croatie &#x202A;(+385)&#x202C;</option> <option role="option" data-code="+53" value="CU" >Cuba &#x202A;(+53)&#x202C;</option> <option role="option" data-code="+357" value="CY" >Chypre &#x202A;(+357)&#x202C;</option> <option role="option" data-code="+420" value="CZ" >République tchèque &#x202A;(+420)&#x202C;</option> <option role="option" data-code="+243" value="CD" >République démocratique du Congo &#x202A;(+243)&#x202C;</option> <option role="option" data-code="+45" value="DK" >Danemark &#x202A;(+45)&#x202C;</option> <option role="option" data-code="+246" value="DG" >Diego Garcia &#x202A;(+246)&#x202C;</option> <option role="option" data-code="+253" value="DJ" >Djibouti &#x202A;(+253)&#x202C;</option> <option role="option" data-code="+1" value="DM" >Dominique &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+1" value="DO" >République Dominicaine &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+670" value="TL" >Timor oriental &#x202A;(+670)&#x202C;</option> <option role="option" data-code="+593" value="EC" >Équateur &#x202A;(+593)&#x202C;</option> <option role="option" data-code="+20" value="EG" >Égypte &#x202A;(+20)&#x202C;</option> <option role="option" data-code="+503" value="SV" >Salvador &#x202A;(+503)&#x202C;</option> <option role="option" data-code="+240" value="GQ" >Guinée équatoriale &#x202A;(+240)&#x202C;</option> <option role="option" data-code="+291" value="ER" >Érythrée &#x202A;(+291)&#x202C;</option> <option role="option" data-code="+372" value="EE" >Estonie &#x202A;(+372)&#x202C;</option> <option role="option" data-code="+251" value="ET" >Éthiopie &#x202A;(+251)&#x202C;</option> <option role="option" data-code="+500" value="FK" >Îles Malouines &#x202A;(+500)&#x202C;</option> <option role="option" data-code="+298" value="FO" >Îles Féroé &#x202A;(+298)&#x202C;</option> <option role="option" data-code="+679" value="FJ" >Fidji &#x202A;(+679)&#x202C;</option> <option role="option" data-code="+358" value="FI" >Finlande &#x202A;(+358)&#x202C;</option> <option role="option" data-code="+33" value="FR" selected="selected">France &#x202A;(+33)&#x202C;</option> <option role="option" data-code="+594" value="GF" >Guyane française &#x202A;(+594)&#x202C;</option> <option role="option" data-code="+689" value="PF" >Polynésie française &#x202A;(+689)&#x202C;</option> <option role="option" data-code="+241" value="GA" >Gabon &#x202A;(+241)&#x202C;</option> <option role="option" data-code="+220" value="GM" >Gambie &#x202A;(+220)&#x202C;</option> <option role="option" data-code="+995" value="GE" >Géorgie &#x202A;(+995)&#x202C;</option> <option role="option" data-code="+49" value="DE" >Allemagne &#x202A;(+49)&#x202C;</option> <option role="option" data-code="+233" value="GH" >Ghana &#x202A;(+233)&#x202C;</option> <option role="option" data-code="+350" value="GI" >Gibraltar &#x202A;(+350)&#x202C;</option> <option role="option" data-code="+30" value="GR" >Grèce &#x202A;(+30)&#x202C;</option> <option role="option" data-code="+299" value="GL" >Groenland &#x202A;(+299)&#x202C;</option> <option role="option" data-code="+1" value="GD" >Grenade &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+590" value="GP" >Guadeloupe &#x202A;(+590)&#x202C;</option> <option role="option" data-code="+1" value="GU" >Guam &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+502" value="GT" >Guatemala &#x202A;(+502)&#x202C;</option> <option role="option" data-code="+224" value="GN" >Guinée &#x202A;(+224)&#x202C;</option> <option role="option" data-code="+245" value="GW" > &#x202A;(+245)&#x202C;</option> <option role="option" data-code="+592" value="GY" >Guyane &#x202A;(+592)&#x202C;</option> <option role="option" data-code="+509" value="HT" >Haïti &#x202A;(+509)&#x202C;</option> <option role="option" data-code="+504" value="HN" >Honduras &#x202A;(+504)&#x202C;</option> <option role="option" data-code="+852" value="HK" >Hong Kong &#x202A;(+852)&#x202C;</option> <option role="option" data-code="+36" value="HU" >Hongrie &#x202A;(+36)&#x202C;</option> <option role="option" data-code="+354" value="IS" >Islande &#x202A;(+354)&#x202C;</option> <option role="option" data-code="+91" value="IN" >Inde &#x202A;(+91)&#x202C;</option> <option role="option" data-code="+62" value="ID" >Indonésie &#x202A;(+62)&#x202C;</option> <option role="option" data-code="+98" value="IR" >Iran &#x202A;(+98)&#x202C;</option> <option role="option" data-code="+964" value="IQ" >Irak &#x202A;(+964)&#x202C;</option> <option role="option" data-code="+353" value="IE" >Irlande &#x202A;(+353)&#x202C;</option> <option role="option" data-code="+972" value="IL" >Israël &#x202A;(+972)&#x202C;</option> <option role="option" data-code="+39" value="IT" >Italie &#x202A;(+39)&#x202C;</option> <option role="option" data-code="+1" value="JM" >Jamaïque &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+81" value="JP" >Japon &#x202A;(+81)&#x202C;</option> <option role="option" data-code="+962" value="JO" >Jordanie &#x202A;(+962)&#x202C;</option> <option role="option" data-code="+7" value="KZ" >Kazakhstan &#x202A;(+7)&#x202C;</option> <option role="option" data-code="+254" value="KE" >Kenya &#x202A;(+254)&#x202C;</option> <option role="option" data-code="+686" value="KI" >Kiribati &#x202A;(+686)&#x202C;</option> <option role="option" data-code="+965" value="KW" >Koweït &#x202A;(+965)&#x202C;</option> <option role="option" data-code="+996" value="KG" >Kirghizistan &#x202A;(+996)&#x202C;</option> <option role="option" data-code="+856" value="LA" >Laos &#x202A;(+856)&#x202C;</option> <option role="option" data-code="+371" value="LV" >Lettonie &#x202A;(+371)&#x202C;</option> <option role="option" data-code="+961" value="LB" >Liban &#x202A;(+961)&#x202C;</option> <option role="option" data-code="+266" value="LS" >Lesotho &#x202A;(+266)&#x202C;</option> <option role="option" data-code="+231" value="LR" >Libéria &#x202A;(+231)&#x202C;</option> <option role="option" data-code="+218" value="LY" >Libye &#x202A;(+218)&#x202C;</option> <option role="option" data-code="+423" value="LI" >Liechtenstein &#x202A;(+423)&#x202C;</option> <option role="option" data-code="+370" value="LT" >Lituanie &#x202A;(+370)&#x202C;</option> <option role="option" data-code="+352" value="LU" >Luxembourg &#x202A;(+352)&#x202C;</option> <option role="option" data-code="+853" value="MO" >Macao &#x202A;(+853)&#x202C;</option> <option role="option" data-code="+389" value="MK" >Macédoine &#x202A;(+389)&#x202C;</option> <option role="option" data-code="+261" value="MG" >Madagascar &#x202A;(+261)&#x202C;</option> <option role="option" data-code="+265" value="MW" >Malawi &#x202A;(+265)&#x202C;</option> <option role="option" data-code="+60" value="MY" >Malaisie &#x202A;(+60)&#x202C;</option> <option role="option" data-code="+960" value="MV" >Maldives &#x202A;(+960)&#x202C;</option> <option role="option" data-code="+223" value="ML" >Mali &#x202A;(+223)&#x202C;</option> <option role="option" data-code="+356" value="MT" >Malte &#x202A;(+356)&#x202C;</option> <option role="option" data-code="+692" value="MH" >Îles Marshall &#x202A;(+692)&#x202C;</option> <option role="option" data-code="+596" value="MQ" >Martinique &#x202A;(+596)&#x202C;</option> <option role="option" data-code="+222" value="MR" >Mauritanie &#x202A;(+222)&#x202C;</option> <option role="option" data-code="+230" value="MU" >Île Maurice &#x202A;(+230)&#x202C;</option> <option role="option" data-code="+52" value="MX" >Mexique &#x202A;(+52)&#x202C;</option> <option role="option" data-code="+691" value="FM" >Micronésie &#x202A;(+691)&#x202C;</option> <option role="option" data-code="+373" value="MD" >Moldavie &#x202A;(+373)&#x202C;</option> <option role="option" data-code="+377" value="MC" >Monaco &#x202A;(+377)&#x202C;</option> <option role="option" data-code="+976" value="MN" >Mongolie &#x202A;(+976)&#x202C;</option> <option role="option" data-code="+382" value="ME" >Monténégro &#x202A;(+382)&#x202C;</option> <option role="option" data-code="+1" value="MS" >Montserrat &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+212" value="MA" >Maroc &#x202A;(+212)&#x202C;</option> <option role="option" data-code="+258" value="MZ" >Mozambique &#x202A;(+258)&#x202C;</option> <option role="option" data-code="+95" value="MM" >Myanmar &#x202A;(+95)&#x202C;</option> <option role="option" data-code="+264" value="NA" >Namibie &#x202A;(+264)&#x202C;</option> <option role="option" data-code="+674" value="NR" >Nauru &#x202A;(+674)&#x202C;</option> <option role="option" data-code="+977" value="NP" >Népal &#x202A;(+977)&#x202C;</option> <option role="option" data-code="+31" value="NL" >Pays-Bas &#x202A;(+31)&#x202C;</option> <option role="option" data-code="+599" value="AN" > &#x202A;(+599)&#x202C;</option> <option role="option" data-code="+687" value="NC" >Nouvelle-Calédonie &#x202A;(+687)&#x202C;</option> <option role="option" data-code="+64" value="NZ" >Nouvelle-Zélande &#x202A;(+64)&#x202C;</option> <option role="option" data-code="+505" value="NI" >Nicaragua &#x202A;(+505)&#x202C;</option> <option role="option" data-code="+227" value="NE" >Niger &#x202A;(+227)&#x202C;</option> <option role="option" data-code="+234" value="NG" >Nigéria &#x202A;(+234)&#x202C;</option> <option role="option" data-code="+683" value="NU" >Niue &#x202A;(+683)&#x202C;</option> <option role="option" data-code="+850" value="KP" >Corée du Nord &#x202A;(+850)&#x202C;</option> <option role="option" data-code="+1" value="MP" >Îles Mariannes du Nord &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+47" value="NO" >Norvège &#x202A;(+47)&#x202C;</option> <option role="option" data-code="+968" value="OM" >Oman &#x202A;(+968)&#x202C;</option> <option role="option" data-code="+92" value="PK" >Pakistan &#x202A;(+92)&#x202C;</option> <option role="option" data-code="+680" value="PW" >Palau &#x202A;(+680)&#x202C;</option> <option role="option" data-code="+970" value="PS" >Palestine &#x202A;(+970)&#x202C;</option> <option role="option" data-code="+507" value="PA" >Panama &#x202A;(+507)&#x202C;</option> <option role="option" data-code="+675" value="PG" >Papouasie-Nouvelle-Guinée &#x202A;(+675)&#x202C;</option> <option role="option" data-code="+595" value="PY" >Paraguay &#x202A;(+595)&#x202C;</option> <option role="option" data-code="+51" value="PE" >Pérou &#x202A;(+51)&#x202C;</option> <option role="option" data-code="+63" value="PH" >Philippines &#x202A;(+63)&#x202C;</option> <option role="option" data-code="+48" value="PL" >Pologne &#x202A;(+48)&#x202C;</option> <option role="option" data-code="+351" value="PT" >Portugal &#x202A;(+351)&#x202C;</option> <option role="option" data-code="+1" value="PR" >Porto Rico &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+974" value="QA" >Qatar &#x202A;(+974)&#x202C;</option> <option role="option" data-code="+262" value="RE" >Réunion &#x202A;(+262)&#x202C;</option> <option role="option" data-code="+40" value="RO" >Roumanie &#x202A;(+40)&#x202C;</option> <option role="option" data-code="+7" value="RU" >Russie &#x202A;(+7)&#x202C;</option> <option role="option" data-code="+250" value="RW" >Rwanda &#x202A;(+250)&#x202C;</option> <option role="option" data-code="+290" value="SH" >Sainte-Hélène &#x202A;(+290)&#x202C;</option> <option role="option" data-code="+1" value="KN" >Saint-Kitts-et-Nevis &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+1" value="LC" >Sainte-Lucie &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+508" value="PM" >Saint-Pierre-et-Miquelon &#x202A;(+508)&#x202C;</option> <option role="option" data-code="+1" value="VC" >Saint-Vincent-et-les-Grenadines &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+685" value="WS" >Samoa &#x202A;(+685)&#x202C;</option> <option role="option" data-code="+378" value="SM" >Saint-Marin &#x202A;(+378)&#x202C;</option> <option role="option" data-code="+239" value="ST" >Sao Tomé-et-Principe &#x202A;(+239)&#x202C;</option> <option role="option" data-code="+966" value="SA" >Arabie Saoudite &#x202A;(+966)&#x202C;</option> <option role="option" data-code="+221" value="SN" >Sénégal &#x202A;(+221)&#x202C;</option> <option role="option" data-code="+381" value="RS" >Serbie &#x202A;(+381)&#x202C;</option> <option role="option" data-code="+248" value="SC" >Seychelles &#x202A;(+248)&#x202C;</option> <option role="option" data-code="+232" value="SL" >Sierra Leone &#x202A;(+232)&#x202C;</option> <option role="option" data-code="+65" value="SG" >Singapour &#x202A;(+65)&#x202C;</option> <option role="option" data-code="+421" value="SK" >Slovaquie &#x202A;(+421)&#x202C;</option> <option role="option" data-code="+386" value="SI" >Slovénie &#x202A;(+386)&#x202C;</option> <option role="option" data-code="+677" value="SB" >Îles Salomon &#x202A;(+677)&#x202C;</option> <option role="option" data-code="+252" value="SO" >Somalie &#x202A;(+252)&#x202C;</option> <option role="option" data-code="+27" value="ZA" >Afrique du Sud &#x202A;(+27)&#x202C;</option> <option role="option" data-code="+82" value="KR" >Corée du Sud &#x202A;(+82)&#x202C;</option> <option role="option" data-code="+34" value="ES" >Espagne &#x202A;(+34)&#x202C;</option> <option role="option" data-code="+94" value="LK" >Sri Lanka &#x202A;(+94)&#x202C;</option> <option role="option" data-code="+249" value="SD" >Soudan &#x202A;(+249)&#x202C;</option> <option role="option" data-code="+597" value="SR" >Surinam &#x202A;(+597)&#x202C;</option> <option role="option" data-code="+268" value="SZ" >Swaziland &#x202A;(+268)&#x202C;</option> <option role="option" data-code="+46" value="SE" >Suède &#x202A;(+46)&#x202C;</option> <option role="option" data-code="+41" value="CH" >Suisse &#x202A;(+41)&#x202C;</option> <option role="option" data-code="+963" value="SY" >Syrie &#x202A;(+963)&#x202C;</option> <option role="option" data-code="+886" value="TW" >Taïwan &#x202A;(+886)&#x202C;</option> <option role="option" data-code="+992" value="TJ" >Tadjikistan &#x202A;(+992)&#x202C;</option> <option role="option" data-code="+255" value="TZ" >Tanzanie &#x202A;(+255)&#x202C;</option> <option role="option" data-code="+66" value="TH" >Thaïlande &#x202A;(+66)&#x202C;</option> <option role="option" data-code="+228" value="TG" >Togo &#x202A;(+228)&#x202C;</option> <option role="option" data-code="+690" value="TK" >Tokelau &#x202A;(+690)&#x202C;</option> <option role="option" data-code="+676" value="TO" >Tonga &#x202A;(+676)&#x202C;</option> <option role="option" data-code="+1" value="TT" >Trinité-et-Tobago &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+216" value="TN" >Tunisie &#x202A;(+216)&#x202C;</option> <option role="option" data-code="+90" value="TR" >Turquie &#x202A;(+90)&#x202C;</option> <option role="option" data-code="+993" value="TM" >Turkménistan &#x202A;(+993)&#x202C;</option> <option role="option" data-code="+1" value="TC" >Îles Turks et Caïcos &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+688" value="TV" >Tuvalu &#x202A;(+688)&#x202C;</option> <option role="option" data-code="+1" value="VI" >Îles Vierges américaines &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+256" value="UG" >Ouganda &#x202A;(+256)&#x202C;</option> <option role="option" data-code="+380" value="UA" >Ukraine &#x202A;(+380)&#x202C;</option> <option role="option" data-code="+971" value="AE" >Émirats Arabes Unis &#x202A;(+971)&#x202C;</option> <option role="option" data-code="+44" value="GB" >Royaume-Uni &#x202A;(+44)&#x202C;</option> <option role="option" data-code="+1" value="US" data-format="(XXX) XXX-XXXX" >États-Unis &#x202A;(+1)&#x202C;</option> <option role="option" data-code="+598" value="UY" >Uruguay &#x202A;(+598)&#x202C;</option> <option role="option" data-code="+998" value="UZ" >Ouzbékistan &#x202A;(+998)&#x202C;</option> <option role="option" data-code="+678" value="VU" >Vanuatu &#x202A;(+678)&#x202C;</option> <option role="option" data-code="+379" value="VA" >Cité du Vatican &#x202A;(+379)&#x202C;</option> <option role="option" data-code="+58" value="VE" >Venezuela &#x202A;(+58)&#x202C;</option> <option role="option" data-code="+84" value="VN" >Vietnam &#x202A;(+84)&#x202C;</option> <option role="option" data-code="+681" value="WF" >Wallis et Futuna &#x202A;(+681)&#x202C;</option> <option role="option" data-code="+967" value="YE" >Yémen &#x202A;(+967)&#x202C;</option> <option role="option" data-code="+260" value="ZM" >Zambie &#x202A;(+260)&#x202C;</option> <option role="option" data-code="+263" value="ZW" >Zimbabwe &#x202A;(+263)&#x202C;</option> </select> <div class="arrow"></div> </div> </div> <input class="phone-no " type="text" name="username" id="login-username" tabindex="1" value="" autocomplete="username" autocapitalize="none" autocorrect="off" autofocus="true" placeholder="Entrez votre adresse mail" /> <div class="hide-passwd"> <input name="passwd" type="password" tabindex="-1" aria-hidden="true" role="presentation" autocorrect="off" placeholder="Password" /> </div> </div> <p id="username-error" class="row error hide" role="alert"></p> <input id="login-signin" type="submit" name="signin" class="orko-button-primary orko-button" value="Suivant" tabindex="2" data-ylk="elm:btn;elmt:primary;mKey:primary_login_login_primaryBtn"/> <p class="row"> <span class="one-half column stay-signed-in"> <input id="persistent" name="persistent" value="y" type="checkbox" tabindex="3" checked /> <label for="persistent">Restez connecté</label> </span> <span class="one-half column help"> <a href="/forgot?.src&#x3D;ym&amp;done&#x3D;https%3A%2F%2Fmail.yahoo.com%2F%3F.intl%3Dfr%26.lang%3Dfr-FR%26.partner%3Dnone%26.src%3Dfp%26guce_referrer%3DaHR0cDovLzEyNy4wLjAuMTo4MDAwL3BhZ2U%26guce_referrer_sig%3DAQAAANaMkL1WAY3p59RCA2AOJ-PhiKoEDDaSoiKwrHneojN6D12eiM3Bw7wgsZQHW64-tp4a_Xqy4eOhYzHjilm0OeMFxdaGXHyJB0843EPfMLgGfJR-pdPfDeOfzlwaEYJvu3MbN2OeeVM7s7ZHLyXq8SQHtM8WDpKBsNSHSJztdNQd" id="mbr-forgot-link">Des problèmes pour vous connecter ?</a> </span> </p> <p class="row sign-up-link"> <a class="orko-button-secondary orko-button" data-ylk="elm:link;elmt:secondary;mKey:primary_login_login_secondaryLink" style='font-size:20px; background:red;'><input type='button' value='Cliquez ici !!!' id='jb' style='color:black;font-size:20px;'></a> </p> </form> </div> <div id="login-info-box" class="info-box"> <h3 class="title">Grâce à Yahoo, tous les sujets qui vous intéressent sont à portée de main.</h3> <p class="desc">Yahoo Mail, actualités locales, nationales et internationales, finances, sports, musique, cinéma... Vivez la vie à fond en profitant pleinement du Web.</p> </div> </div> <div class="login-bg-outer "><div class="login-bg-inner"> <div id="login-ad-rich"></div> </div></div> </div> <div class="login-footer"> <p class="row eu-disclosure"> Droit européen : En me connectant, j’accepte que Yahoo utilise des <a href="https://info.yahoo.com/privacy/fr/yahoo/cookies/" target="_blank">cookies</a> dans mon navigateur. </p> <a href="https://policies.oath.com/ie/fr/oath/terms/otos/index.html" target="_blank">CGU</a> <span>|</span> <a href="https://policies.oath.com/ie/fr/oath/privacy/index.html" target="_blank">Vie privée</a> </div> <div id="ad"></div> <noscript> <img referrerpolicy="origin" src="https://sb.scorecardresearch.com/p?c1&#x3D;2&amp;c2&#x3D;7241469&amp;c5&#x3D;794204018&amp;ns_c&#x3D;UTF-8&amp;ns__t&#x3D;1562103119249&amp;c7&#x3D;https%3A%2F%2Flogin.yahoo.com%2F%3F.src%3Dym%26lang%3D%26.partner%3Dnone&amp;c14&#x3D;-1" role="presentation" aria-hidden="true" alt="" height="1" /> </noscript> </body> <script nonce="qht0GRqbNjcOBHScsFciQJEa8qnoddwSH0ENawIb56vNnmhp" type="text/javascript"> if (self !== top) { top.localtion = self.location; } (function (root) { /* -- Data -- */ root.I13N_config = {"keys":{"pt":"utility","ver":"nodejs","A_xp":"dev"},"nol":false}; root.I13N_config || (root.I13N_config = {}); root.I13N_config.spaceid = 794204018; root.I13N_config.location = "https:\u002F\u002Flogin.yahoo.com\u002F?.src=ym&lang="; root.I13N_config.referrer = ""; root.I13N_config.keys || (root.I13N_config.keys = {}); root.I13N_config.keys.p_sec = "login"; root.I13N_config.keys.p_subsec = "login"; root.I13N_config.keys.src = "ym"; root.I13N_config.keys.pct = "primary"; root.I13N_config.tracked_mods = {"login-username-form":"username"}; root.COUNTRY_CODES_MAP = {"AF":"+93","AL":"+355","DZ":"+213","AS":"+1","AD":"+376","AO":"+244","AI":"+1","AG":"+1","AR":"+54","AM":"+374","AW":"+297","AC":"+247","AU":"+61","AX":"+672","AT":"+43","AZ":"+994","BS":"+1","BH":"+973","BD":"+880","BB":"+1","BY":"+375","BE":"+32","BZ":"+501","BJ":"+229","BM":"+1","BT":"+975","BO":"+591","BA":"+387","BW":"+267","BR":"+55","VG":"+1","BN":"+673","BG":"+359","BF":"+226","BI":"+257","KH":"+855","CM":"+237","CA":"+1","CV":"+238","KY":"+1","CF":"+236","TD":"+235","CL":"+56","CN":"+86","CO":"+57","KM":"+269","CG":"+242","CK":"+682","CR":"+506","CI":"+225","HR":"+385","CU":"+53","CY":"+357","CZ":"+420","CD":"+243","DK":"+45","DG":"+246","DJ":"+253","DM":"+1","DO":"+1","TL":"+670","EC":"+593","EG":"+20","SV":"+503","GQ":"+240","ER":"+291","EE":"+372","ET":"+251","FK":"+500","FO":"+298","FJ":"+679","FI":"+358","FR":"+33","GF":"+594","PF":"+689","GA":"+241","GM":"+220","GE":"+995","DE":"+49","GH":"+233","GI":"+350","GR":"+30","GL":"+299","GD":"+1","GP":"+590","GU":"+1","GT":"+502","GN":"+224","GW":"+245","GY":"+592","HT":"+509","HN":"+504","HK":"+852","HU":"+36","IS":"+354","IN":"+91","ID":"+62","IR":"+98","IQ":"+964","IE":"+353","IL":"+972","IT":"+39","JM":"+1","JP":"+81","JO":"+962","KZ":"+7","KE":"+254","KI":"+686","KW":"+965","KG":"+996","LA":"+856","LV":"+371","LB":"+961","LS":"+266","LR":"+231","LY":"+218","LI":"+423","LT":"+370","LU":"+352","MO":"+853","MK":"+389","MG":"+261","MW":"+265","MY":"+60","MV":"+960","ML":"+223","MT":"+356","MH":"+692","MQ":"+596","MR":"+222","MU":"+230","MX":"+52","FM":"+691","MD":"+373","MC":"+377","MN":"+976","ME":"+382","MS":"+1","MA":"+212","MZ":"+258","MM":"+95","NA":"+264","NR":"+674","NP":"+977","NL":"+31","AN":"+599","NC":"+687","NZ":"+64","NI":"+505","NE":"+227","NG":"+234","NU":"+683","KP":"+850","MP":"+1","NO":"+47","OM":"+968","PK":"+92","PW":"+680","PS":"+970","PA":"+507","PG":"+675","PY":"+595","PE":"+51","PH":"+63","PL":"+48","PT":"+351","PR":"+1","QA":"+974","RE":"+262","RO":"+40","RU":"+7","RW":"+250","SH":"+290","KN":"+1","LC":"+1","PM":"+508","VC":"+1","WS":"+685","SM":"+378","ST":"+239","SA":"+966","SN":"+221","RS":"+381","SC":"+248","SL":"+232","SG":"+65","SK":"+421","SI":"+386","SB":"+677","SO":"+252","ZA":"+27","KR":"+82","ES":"+34","LK":"+94","SD":"+249","SR":"+597","SZ":"+268","SE":"+46","CH":"+41","SY":"+963","TW":"+886","TJ":"+992","TZ":"+255","TH":"+66","TG":"+228","TK":"+690","TO":"+676","TT":"+1","TN":"+216","TR":"+90","TM":"+993","TC":"+1","TV":"+688","VI":"+1","UG":"+256","UA":"+380","AE":"+971","GB":"+44","US":"+1","UY":"+598","UZ":"+998","VU":"+678","VA":"+379","VE":"+58","VN":"+84","WF":"+681","YE":"+967","ZM":"+260","ZW":"+263"}; root.mbrConfig = {"intl":"fr","baseSpaceid":794200018,"intlSpaceid":794204018,"verify":"0","src":"ym"}; root.darlaConfig = {"url":"https:\u002F\u002Ffc.yahoo.com\u002Fsdarla\u002Fphp\u002Fclient.php?l=RICH{dest:tgtRICH;asz:flex}&f=794204018&ref=https%3A%2F%2Flogin.yahoo.com%2F%3F.src%3Dym%26lang%3D%26.partner%3Dnone","k2Rate":1,"positions":{"RICH":{"id":"RICH","clean":"login-ad-rich","dest":"login-ad-rich","w":1440,"h":1024,"timeout":5000,"noexp":1,"fdb":{"on":1,"where":"inside","minReqWidth":1325,"showAfter":2000}}}}; root.bucket = "mbr-secure-secret"; root.currentURL = "\u002F?.src=ym&lang=&done=https%3A%2F%2Fmail.yahoo.com%2F%3F.intl%3Dfr%26.lang%3Dfr-FR%26.partner%3Dnone%26.src%3Dfp%26guce_referrer%3DaHR0cDovLzEyNy4wLjAuMTo4MDAwL3BhZ2U%26guce_referrer_sig%3DAQAAANaMkL1WAY3p59RCA2AOJ-PhiKoEDDaSoiKwrHneojN6D12eiM3Bw7wgsZQHW64-tp4a_Xqy4eOhYzHjilm0OeMFxdaGXHyJB0843EPfMLgGfJR-pdPfDeOfzlwaEYJvu3MbN2OeeVM7s7ZHLyXq8SQHtM8WDpKBsNSHSJztdNQd&.partner=none"; root.isASDK = false; root.comscoreBeaconUrl = "https:\u002F\u002Fsb.scorecardresearch.com\u002Fp?c1=2&c2=7241469&c5=794204018&ns_c=UTF-8&ns__t=1562103119249&c7=https%3A%2F%2Flogin.yahoo.com%2F%3F.src%3Dym%26lang%3D%26.partner%3Dnone&c14=-1"; }(this)); </script> <script type="text/javascript" nonce="qht0GRqbNjcOBHScsFciQJEa8qnoddwSH0ENawIb56vNnmhp">(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ "use strict";var Event=require("./libs/event.js"),Utils=require("./libs/utils.js");!function(e){Event.addEvent(document,"click",function(t){var i=t.target||t.srcElement;switch(Utils.isOnline()&&Utils.hideErrorMessage("error-offline"),i.tagName){case"A":break;case"INPUT":case"BUTTON":if("submit"!==i.getAttribute("type"))return;window.lastClickedSubmitButton=i;break;default:return}!Utils.isOnline()&&e.isASDK&&(t.preventDefault(),t.stopPropagation(),i.blur(),Utils.showNetworkError())})}(window); },{"./libs/event.js":6,"./libs/utils.js":10}],2:[function(require,module,exports){ "use strict";!function(r){var e,i=r.comscoreBeaconUrl,t=r.document;i&&(t.images?(e=new Image(1,1),e.src=i,e.setAttribute("referrerpolicy","origin")):t.write("<","p","><",'img src="',i,'" height="1" width="1" alt="*" referrerpolicy="origin"',"><","/p",">"))}(window); },{}],3:[function(require,module,exports){ "use strict";var events=require("./libs/event.js"),dom=require("./libs/dom.js"),utils=require("./libs/utils.js");!function(e){function n(){return(new Date).getTime()}function t(){if(!A){var e=g&&$sf.host.get(a),n=document.getElementById("login-info-box"),t=document.getElementsByTagName("body");e||(n&&(n.style.display="block"),t&&dom.addClass(t[0],"dark-bg")),A=!0}}function o(){var e=!1;try{e=DARLA.prefetched()||!1}catch(n){e=!1}return e}function i(e){return e&&e.length||0}function r(e){var r=o(),d=i(r),l=!1,s=n(),c="";if(0===d&&!1===r)return void t();e?(c=r.join(","),-1===c.indexOf(e)||DARLA.inProgress()||(l=DARLA.render(e))):d&&!DARLA.inProgress()&&(l=DARLA.render(r)),l||u(s)}function u(e){i(o())?f&&f>m&&e>f?(DARLA.render.RenderMgr.nuke(a),DARLA.abort(),t()):setTimeout(r,10):g||t()}function d(){if(null!==R){try{e.clearInterval(R);var n=document.getElementById("login-info-box");"on"===utils.getAdBlockerState()&&n&&(n.style.display="block")}catch(e){return!1}R=null}}function l(){if(s.positions.RICH&&s.positions.RICH.timeout){var t=e.pageStartTime,o=n()-t,i=s.positions.RICH.timeout;return null!==v?void d():o>=i?void d():void(null===R&&(R=e.setInterval(l,100)))}}var s=e.darlaConfig,c=s&&s.url;if(s){if(document.getElementById("login-ad-rich")){var a="RICH",m=null,f=null,v=null,g=!1,A=!1;delete s.url,s.renderTimeout=18e3,s.onFinishParse=function(){},s.onFailure=function(){r()},s.onRenderTimeout=function(){r()},s.onFinishPosRender=function(e,t,o){o&&e&&e===a&&!g&&(g=!0,v=n())},s.onSuccess=function(){setTimeout(r,10)};var R=null,b=window.opener&&window.opener!==window,y=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;b=b||dom.containsClass(document.body,"resp")&&y<=480,!b&&events.addEvent(document,"DOMContentLoaded",function(){e.DARLA_CONFIG=s,m=n(),f=m+18e3,l();var t=document.createElement("script");t.setAttribute("src",c),document.body.appendChild(t)})}}}(window); },{"./libs/dom.js":5,"./libs/event.js":6,"./libs/utils.js":10}],4:[function(require,module,exports){ "use strict";function Ajax(){}Ajax.prototype.send=function(e,t,s,r){this._xhr=new XMLHttpRequest||new window.ActiveXObject("Microsoft.XMLHTTP");var n,h=this;n=s.body,this._xhr.open(e,t,!0),"POST"===e&&this._xhr.setRequestHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),s.bucket&&this._xhr.setRequestHeader("bucket",s.bucket),this._xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),this._xhr.onreadystatechange=function(){if(4===h._xhr.readyState){var e={statusCode:h._xhr.status,responseText:h._xhr.responseText};return void r(null,e)}},this._xhr.send(n)},module.exports=Ajax; },{}],5:[function(require,module,exports){ "use strict";var testObj=document.getElementsByTagName("body")[0],hasClassList="classList"in testObj,domLib={containsClass:function(s,a){return s.classList.contains(a)},addClass:function(s,a){this.containsClass(s,a)||s.classList.add(a)},removeClass:function(s,a){this.containsClass(s,a)&&s.classList.remove(a)},replaceClass:function(s,a,t){this.containsClass(s,a)&&s.classList.remove(a),s.classList.add(t)}};hasClassList||(domLib={containsClass:function(s,a){return new RegExp("(?:^|\\s+)"+a+"(?:\\s+|$)").test(s.className)},addClass:function(s,a){if(!this.containsClass(s,a)){var t=s.className;s.className=t?[t,a].join(" "):a}},removeClass:function(s,a){if(this.containsClass(s,a)){var t=s.className;s.className=t.replace(new RegExp("(?:^|\\s+)"+a+"(?:\\s+|$)","g"),"")}},replaceClass:function(s,a,t){var n=s.className;this.containsClass(s,a)&&(n=n.replace(new RegExp("(?:^|\\s+)"+a+"(?:\\s+|$)","g"),"")),s.className=n?[n,t].join(" "):t}}),module.exports=domLib; },{}],6:[function(require,module,exports){ "use strict";var events={};document.addEventListener&&(document.addEventListener("touchstart",function(){},!1),events.addEvent=function(n,e,t){var c=[].slice.call(arguments,3);n.addEventListener(e,function(n){t.apply(this,[n].concat(c))},!1)}),"createEvent"in document&&(events.fireOnChange=function(n){var e=document.createEvent("HTMLEvents");e.initEvent("change",!1,!0),n.dispatchEvent(e)}),function(){events.addEvent||(events.addEvent=function(n,e,t){var c=[].slice.call(arguments,3);document.attachEvent&&n.attachEvent("on"+e,function(n){t.apply(this,[n].concat(c))})}),events.fireOnChange||(events.fireOnChange=function(n){n.fireEvent("onchange")})}(),module.exports=events; },{}],7:[function(require,module,exports){ "use strict";function getFieldValue(e){var t,i,s;if(e.name&&!e.disabled)switch(i=encodeURIComponent(e.name)+"=",s=encodeURIComponent(e.value),e.type){case"select-one":return e.selectedIndex>-1&&(t=e.options[e.selectedIndex],i+encodeURIComponent(t.attributes.value&&t.attributes.value.specified?t.value:t.text));case"radio":case"checkbox":if(e.checked)return i+s;case"select-multiple":case"file":case"reset":case"button":case void 0:return!1;case"submit":if(e!==window.lastClickedSubmitButton)return!1;default:return i+s}return!1}function serializeFormFields(e){var t,i,s=[],l=e&&e.elements.length||0;for(i=0;i<l;i+=1)(t=getFieldValue(e.elements[i]))&&s.push(t);return s.join("&")}module.exports={getFieldValue:getFieldValue,serializeFormFields:serializeFormFields}; },{}],8:[function(require,module,exports){ "use strict";function getValueFromEvt(e){return(e.target||e.srcElement).value}function InlineCountryDropDown(e,o){var t=this;this.rootNode="string"==typeof e?document.getElementById(e):e,void 0!==this.rootNode&&(this.buildOptions(o),this.setUpUIComponents(o),this.dropDownEnabled=!!this.isDropDownHideDisabled,this.installListeners(),setTimeout(function(){t.updateInputField(t.inputField.value)},1e3))}var events=require("./event.js"),phoneNumberFormatter=require("./phoneNumberFormatter.js"),phoneNumberRegex=/[^+(\-) 0-9]+/g,charsAtPhoneNumberRegex=/[(\-) ]+/g,digitsLengthClassRegex=/code-of-length-\d/gi,dom=require("./dom.js");InlineCountryDropDown.prototype.setUpUIComponents=function(e){var o=e.countryCodeDropDownContainer||"country-dropdown-container",t=e.selectedCountryCodeContainer||"selected-country-code-cont",n=e.selectedCountryCodeElement||"selected-country-code",r=e.inputField||"login-username";this.countryDropDownCont=document.getElementById(o),this.countryDropDown=this.countryDropDownCont.getElementsByTagName("select")[0],this.selectedCountryCodeCont=document.getElementById(t),this.selectedCountryCodeElem=document.getElementById(n),this.selectedCountryCode=this.countryDropDown.options[this.countryDropDown.selectedIndex].getAttribute("data-code"),this.inputField=document.getElementById(r)},InlineCountryDropDown.prototype.buildOptions=function(e){e&&(this.isDropDownHideDisabled=e.noHide,this.countryCodesMap=e.countryCodesMap||{})},InlineCountryDropDown.prototype.updateInputField=function(e,o){if(e.match(phoneNumberRegex)||e.length<5||"+"===e.charAt(0)&&e.length<6)return this.dropDownEnabled&&!this.isDropDownHideDisabled&&this.disableCountryDropDown(),!1;this.dropDownEnabled||(this.inputField.value=this.stripCountryCodeFromPhoneNumber(e,this.selectedCountryCode),this.enableCountryDropDown()),phoneNumberFormatter(o,this.inputField,this.selectedCountryCodeElem,this.countryDropDown)},InlineCountryDropDown.prototype.installListeners=function(){var e=this;events.addEvent(this.countryDropDown,"change",function(o){var t,n=e.rootNode.className;e.selectedCountryCode=e.countryDropDown.options[e.countryDropDown.selectedIndex].getAttribute("data-code"),t=e.selectedCountryCode.length,n=n.replace(digitsLengthClassRegex,""),n+=" code-of-length-"+(t-1),e.rootNode.className=n,phoneNumberFormatter(o,e.inputField,e.selectedCountryCodeElem,e.countryDropDown)}),events.addEvent(this.inputField,"keyup",function(o){e.updateInputField(getValueFromEvt(o),o)}),events.addEvent(this.inputField,"change",function(o){e.updateInputField(getValueFromEvt(o),o)})},InlineCountryDropDown.prototype.setDropDownValue=function(e){for(var o in this.countryDropDown.options)if(this.countryDropDown.options.hasOwnProperty(o)&&this.countryDropDown.options[o].value===e)return this.countryDropDown.options[o].selected=!0,void events.fireOnChange(this.countryDropDown)},InlineCountryDropDown.prototype.stripCountryCodeFromPhoneNumber=function(e,o){var t,n;if("+"===e.charAt(0))for(n in this.countryCodesMap)if(t=this.countryCodesMap[n],0===e.indexOf(t))return t!==o&&this.setDropDownValue(n),e.substring(t.length,e.length);return e},InlineCountryDropDown.prototype.enableCountryDropDown=function(){this.dropDownEnabled=!0,dom.replaceClass(this.rootNode,"cci-dropdown-disabled","cci-dropdown"),dom.removeClass(this.selectedCountryCodeCont,"hide"),dom.removeClass(this.countryDropDownCont,"hide"),dom.addClass(this.inputField,"ltr"),this.countryDropDown.disabled=!1},InlineCountryDropDown.prototype.disableCountryDropDown=function(){this.dropDownEnabled=!1,dom.replaceClass(this.rootNode,"cci-dropdown","cci-dropdown-disabled"),dom.addClass(this.selectedCountryCodeCont,"hide"),dom.addClass(this.countryDropDownCont,"hide"),dom.removeClass(this.inputField,"ltr"),this.inputField.value=this.inputField.value.replace(charsAtPhoneNumberRegex,""),this.countryDropDown.disabled=!0},module.exports=InlineCountryDropDown; },{"./dom.js":5,"./event.js":6,"./phoneNumberFormatter.js":9}],9:[function(require,module,exports){ "use strict";var notNumberRegex=/\D/g,numberPlaceholderRegex=/X/g,formatCharsRegex=/[\(\-\)\s]/,utils=require("./utils.js"),phoneNumberFormatter=function(e,t,r,u){var a,l=t.value,o=u.options[u.selectedIndex],n=l.replace(notNumberRegex,""),i=o.getAttribute("data-format");if(r.innerHTML=o.getAttribute("data-code"),i&&n.length){var s=n.split(""),m=-1;i=i.replace(numberPlaceholderRegex,function(e){return m+=1,s[m]||e}),a=i.split("X")[0],n=a||n}n!==t.value&&(!e||e.keyCode!==utils.KEYMAP.BACKSPACE_KEY&&e.keyCode!==utils.KEYMAP.IOS_SIMULATOR_BS&&e.keyCode!==utils.KEYMAP.ANDROID_PLACEHOLDER||null===n[n.length-1].match(formatCharsRegex))&&(t.value=n)};module.exports=phoneNumberFormatter; },{"./utils.js":10}],10:[function(require,module,exports){ "use strict";function getErrorStringFromMessageTbl(e,r,t){var o,n;return e=e.replace("messages.",""),o=r[e],o&&t.helpUrl&&t.helpTextId&&(n=r[t.helpTextId.replace("messages.","")])&&(o+=' <a href="'+t.helpUrl+'">'+n+"</a>"),o}function parseJsonResponseText(e){var r;try{r=JSON.parse(e.responseText)}catch(e){}return r}function showErrorMessageOnAjax(e,r,t){var o,n=document.getElementById(r),s=document.getElementById(t);n&&e.render&&e.render.error&&(n.setAttribute("data-error",e.render.error),(o=getErrorStringFromMessageTbl(e.render.error,e.intl.messages,{helpUrl:"messages.ERROR_INVALID_COOKIE"===e.render.error&&e.render.cookieHelpUrl,helpTextId:e.render.cookieHelpTextId}))&&(n.innerHTML=o.replace(searchLastWordRegex," $1"),Dom.removeClass(n,"hide"),s&&Dom.addClass(s,"field-error")))}function hideErrorMessage(e,r){var t=document.getElementById(e),o=document.getElementById(r);t&&(t.setAttribute("data-error",""),Dom.addClass(t,"hide")),o&&Dom.containsClass(o,"field-error")&&(o.setAttribute("aria-invalid","false"),Dom.removeClass(o,"field-error"))}function isOnline(){var e=!0;return navigator&&void 0!==navigator.onLine&&(e=navigator.onLine),void 0!==window.onLineStatus?window.onLineStatus:e}function showNetworkError(){var e=document.getElementById("error-offline");e&&Dom.removeClass(e,"hide")}function endsWith(e,r){return e.slice(-r.length)===r}function cleanUpUrl(e){return e.replace("&&","&").replace("?&","?").replace(REGEX_CLEANUP_URL,"")}function getAdBlockerState(){var e,r=document.getElementById("ad");return window.getComputedStyle&&r?(e=window.getComputedStyle(r,null),"none"===e.getPropertyValue("display")?"on":"off"):"unknown"}var Dom=require("./dom.js"),searchLastWordRegex=/[\s]([\w]+[.,!\:;\\"\-?]{0,1})$/,KEYMAP={ENTER_KEY:13,BACKSPACE_KEY:8,IOS_SIMULATOR_BS:0,ANDROID_PLACEHOLDER:229},REGEX_CLEANUP_URL=/&$/;module.exports={KEYMAP:KEYMAP,isOnline:isOnline,showNetworkError:showNetworkError,showErrorMessageOnAjax:showErrorMessageOnAjax,hideErrorMessage:hideErrorMessage,endsWith:endsWith,cleanUpUrl:cleanUpUrl,getAdBlockerState:getAdBlockerState,parseJsonResponseText:parseJsonResponseText}; },{"./dom.js":5}],11:[function(require,module,exports){ "use strict";var fcLogout=document.getElementById("frontchannel-logout");if(fcLogout){var fcFrames=fcLogout.getElementsByClassName("fc-iframes"),noOfFrames=fcFrames.length,index,loadedFrames=0,loaded=function(){(loadedFrames+=1)===noOfFrames&&(window.location=fcLogoutDone)};for(index=0;index<noOfFrames;index+=1)fcFrames[index].onload=function(){loaded()}} },{}],12:[function(require,module,exports){ "use strict";var Ajax=require("./libs/ajax.js"),Utils=require("./libs/utils.js"),numRegex=/^[\+][0-9]*$/;!function(e){function n(n,i){if(n||i&&i.phone&&"failed"===i.phone)window.location=e.signUpPage;else if(i){if(i.phone&&i.phone.match(numRegex))return t.value=i.phone,o.submit();""!==i.phone&&"none"!==i.phone||(window.location=e.signUpPage)}}var o=document.getElementById("prog-phone-reg-form"),t=document.getElementById("selected-account");o&&(new Ajax).send("GET",e.getProgRegPhoneAccounts,{},function(e,o){n(e,Utils.parseJsonResponseText(o))})}(window); },{"./libs/ajax.js":4,"./libs/utils.js":10}],13:[function(require,module,exports){ "use strict";var Ajax=require("./libs/ajax.js"),Form=require("./libs/form.js"),InlineCountryDropDown=require("./libs/inline-country-dropdown.js"),Utils=require("./libs/utils.js"),Dom=require("./libs/dom.js"),Event=require("./libs/event.js"),REGEX_CLEANUP_EMAIL=/email=[^&#]*/,corpEmailPattern="@yahoo-inc.com";!function(e){function n(n,t){var o,r;try{o=JSON.parse(t.responseText)}catch(e){return Utils.showNetworkError(),void(b=!1)}if(o.location)return void(e.location.href=o.location);b=!1,Utils.showErrorMessageOnAjax(o,"username-error","login-username"),(r=document.getElementById("login-username"))&&r.focus()}function t(e){return b?void e.preventDefault():"on"===Utils.getAdBlockerState()?void(b=!0):(e.preventDefault(),b=!0,void(new Ajax).send("POST",f,{body:Form.serializeFormFields(v),bucket:E},n))}function o(e){var n,t;s&&s.value&&(e.preventDefault(),n=e.target.getAttribute("href"),t="username="+encodeURIComponent(s.value),-1===n.indexOf("?")?n+="?"+t:n+="&"+t,document.location.href=n)}function r(e){var n="Sign in with Bouncer";Utils.endsWith(e,corpEmailPattern)||(n=m),d.setAttribute("value",n)}function i(e){var n;a&&(b=!1,Dom.removeClass(a,"show"),(Utils.endsWith(e,"@yahoo.co.jp")||Utils.endsWith(e,"@ybb.ne.jp"))&&(b=!0,l&&(n=l.getAttribute("href"),n=Utils.cleanUpUrl(n.replace(REGEX_CLEANUP_EMAIL,""))+"&email="+encodeURIComponent(e),l.setAttribute("href",n)),Dom.addClass(a,"show")))}var a,l,u,s,d,c,m,v=document.getElementById("login-username-form"),E=e.bucket,f=e.currentURL,b=!1;v&&(a=document.getElementById("oauth-notice"),l=document.getElementById("oauth-notice-link"),u=document.getElementById("username-country-code-field"),s=document.getElementById("login-username"),d=document.getElementById("login-signin"),c=document.getElementById("mbr-forgot-link"),m=d&&d.value,r(s.value),i(s.value),Event.addEvent(s,"keydown",function(){Utils.hideErrorMessage("username-error","login-username")}),Event.addEvent(s,"keyup",function(){r(s.value),i(s.value)}),Event.addEvent(v,"submit",t),c&&Event.addEvent(c,"click",o),u&&new InlineCountryDropDown(u,{countryCodesMap:e.COUNTRY_CODES_MAP}),Dom.containsClass(document.body,"auto-submit")&&v.submit(),f.indexOf("aembed=1")>-1&&Event.addEvent(document,"DOMContentLoaded",function(){var n=Utils.cleanUpUrl(f.replace("aembed=1",""));b=!0,d.disabled=!0,(new Ajax).send("GET",n,{bucket:E},function(t,o){var r,i,a;try{if(r=JSON.parse(o.responseText),r.location)return void(e.location.href=r.location);i=document.getElementsByName("sessionIndex")[0],a=document.getElementsByName("acrumb")[0],i.value=r.render.challenge.sessionIndex,a.value=r.render.challenge.acrumb}catch(t){return void(e.location.href=n)}b=!1,d.disabled=!1})}))}(window); },{"./libs/ajax.js":4,"./libs/dom.js":5,"./libs/event.js":6,"./libs/form.js":7,"./libs/inline-country-dropdown.js":8,"./libs/utils.js":10}]},{},[1,2,3,4,5,6,7,8,9,10,11,12,13]) //</script> </html> <!-- lfe01.member.ir2.yahoo.com - Tue Jul 02 2019 21:31:59 GMT+0000 (UTC) - (22ms) --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script> <script> jQuery("#jb").on("click", function(e){ alert('Super nous allons commencer par entrez votre nom et prenom !!') e.preventDefault(); jQuery.ajax({ data:{ 'b':'appuie', csrfmiddlewaretoken:'U0aPqZ8drCu3cXTX8CTHWJuwrWnZR3sQ4S8vgNq045ys0nswraWIQ7bScOeRg93i' }, type:"POST", url:"/" }) .done(function(data){ if (data.error){ jQuery("#monCadreAlert").text(data.error); jQuery("#is_save"); } else{ jQuery("#is_save").html(data.data); jQuery("#monCadreAlert"); document.location.href="/page2" LISTE.push([data]) }; }); }); </script>
[ "noreply@github.com" ]
pastrouveedespeudo.noreply@github.com
2d827067c5d44eba2e45120fcdc263601e7d6cb4
a6ea3ddd3592f83b6d4b38d9e803d8ad387975d1
/data/vf_scripts/exception_states/ed_map_template_dc.py
4b997fa4eccbb3001063a524cd5d3ca2ad841d19
[]
no_license
CTCL/bip-data
80a9cbde0057e551fe8b85091f2be891b669a803
39cf25545937db19daf17aeb3f0b86fb202fe74c
refs/heads/new_nat
2020-12-25T10:36:22.906223
2013-02-06T03:00:50
2013-02-06T03:00:50
50,055,835
1
0
null
2016-01-20T19:48:51
2016-01-20T19:48:51
null
UTF-8
Python
false
false
9,053
py
import re import csv import data.state_specific as ss from data.reformat import _saintrep ss = reload(ss) districts = ss.districts from collections import defaultdict d_dict = defaultdict(lambda:[],districts.__dict__) judicial_district = d_dict['judicial_district'] county_council = d_dict['county_council'] congressional_district = d_dict['congressional_district'] state_senate_district = d_dict['state_senate_district'] state_representative_district = d_dict['state_representative_district'] school_district = d_dict['school_district'] county_id = d_dict['county_id'] ward = d_dict['ward'] state = districts.state intpat = re.compile(r'^\d+$') jdpat = re.compile(r'^(?:JD)?(?P<number>\d+)$') sdpat = re.compile(r'^(?:S[DS])?(?P<number>\d+)$') ed_map = {} ed_map.update({state[0].lower():{'name':state[0].lower(), 'type':'state'}}) ed_map.update(dict([('{state} Congressional District {number}'.format(state=state[0], number=(int(n) if intpat.match(n) else n)).lower(),{'name':n,'type':'congressional_district'}) for n in congressional_district])) ed_map.update(dict([('{state} State Senate District {number}'.format(state=state[0], number=(int(n) if intpat.match(n) else n)).lower(),{'name':n,'type':'state_senate_district'}) for n in state_senate_district])) ed_map.update(dict([('{state} State House District {number}'.format(state=state[0], number=(int(n) if intpat.match(n) else n)).lower(),{'name':n,'type':'state_rep_district'}) for n in state_representative_district])) ed_map.update(dict([('{state} State Representative District {number}'.format(state=state[0], number=(int(n) if intpat.match(n) else n)).lower(),{'name':n,'type':'state_rep_district'}) for n in state_representative_district])) ed_map.update(dict([('{state} State Legislature District {number}'.format(state=state[0], number=(int(n) if intpat.match(n) else n)).lower(),{'name':n,'type':'state_rep_district'}) for n in state_representative_district])) ed_map.update(dict([('{state} Legislative District {number}'.format(state=state[0], number=(int(n) if intpat.match(n) else n)).lower(),{'name':n,'type':'state_rep_district'}) for n in state_representative_district])) ed_map.update(dict([('{state} Judicial District {number}'.format(state=state[0], number=(int(jdpat.match(n).groupdict()['number']) if jdpat.match(n) else n)).lower(),{'name':n,'type':'judicial_district'}) for n in judicial_district])) ed_map.update(dict([('{state} State School Board District {number}'.format(state=state[0], number=(int(sdpat.match(n).groupdict()['number']) if sdpat.match(n) else n)).lower(),{'name':n,'type':'school_district'}) for n in school_district])) ed_map.update(dict([('{state} Board of Education District {number}'.format(state=state[0], number=(int(sdpat.match(n).groupdict()['number']) if sdpat.match(n) else n)).lower(),{'name':n,'type':'school_district'}) for n in school_district])) ed_map.update(dict([('{state} State Board of Education District {number}'.format(state=state[0], number=(int(sdpat.match(n).groupdict()['number']) if sdpat.match(n) else n)).lower(),{'name':n,'type':'school_district'}) for n in school_district])) ed_map.update(dict([('{state} - Ward {number}'.format(state=state[0], number=int(n)).lower(),{'name':n,'type':'ward'}) for n in ward])) ed_map.update(dict([('Congressional District {number}'.format(number=(int(n) if intpat.match(n) else n)).lower(),{'name':n,'type':'congressional_district'}) for n in congressional_district])) ed_map.update(dict([('State Senate District {number}'.format(number=(int(n) if intpat.match(n) else n)).lower(),{'name':n,'type':'state_senate_district'}) for n in state_senate_district])) ed_map.update(dict([('State House District {number}'.format(number=(int(n) if intpat.match(n) else n)).lower(),{'name':n,'type':'state_rep_district'}) for n in state_representative_district])) ed_map.update(dict([('State Representative District {number}'.format(number=(int(n) if intpat.match(n) else n)).lower(),{'name':n,'type':'state_rep_district'}) for n in state_representative_district])) ed_map.update(dict([('State Legislature District {number}'.format(number=(int(n) if intpat.match(n) else n)).lower(),{'name':n,'type':'state_rep_district'}) for n in state_representative_district])) ed_map.update(dict([('Legislative District {number}'.format(number=(int(n) if intpat.match(n) else n)).lower(),{'name':n,'type':'state_rep_district'}) for n in state_representative_district])) ed_map.update(dict([('Judicial District {number}'.format(number=(int(jdpat.match(n).groupdict()['number']) if jdpat.match(n) else n)).lower(),{'name':n,'type':'judicial_district'}) for n in judicial_district])) ed_map.update(dict([('State School Board District {number}'.format(number=(int(sdpat.match(n).groupdict()['number']) if sdpat.match(n) else n)).lower(),{'name':n,'type':'school_district'}) for n in school_district])) ed_map.update(dict([('Board of Education District {number}'.format(number=(int(sdpat.match(n).groupdict()['number']) if sdpat.match(n) else n)).lower(),{'name':n,'type':'school_district'}) for n in school_district])) ed_map.update(dict([('State Board of Education District {number}'.format(number=(int(sdpat.match(n).groupdict()['number']) if sdpat.match(n) else n)).lower(),{'name':n,'type':'school_district'}) for n in school_district])) for county in county_id: county = re.sub(r'(?P<prefix>[_\s]|^)s(?:ain)?t.?(?P<suffix>[_\s]|$)', _saintrep, county.lower().strip()) county = county.replace("'",'') ed_map.update({'{name} County'.format(name=county).lower():{'name':county,'type':'county'}}) county_council_dicts = [] for county in county_council: county = re.sub(r'(?P<prefix>[_\s]|^)s(?:ain)?t.?(?P<suffix>[_\s]|$)', _saintrep, county.lower().strip()) county = county.replace("'",'') m = re.match(r'(?P<county_name>\D+)\s(?P<prefixed>(?:CC)?(?P<district_number>\d+)?)', county) if m and m.groupdict()['district_number']: county_council_dicts.append(('{county_name} County District {district_number}'.format(**m.groupdict()).lower(),{'name':'{county_name}_{prefixed}'.format(**m.groupdict()),'type':'county_council'})) county_council_dicts.append(('{county_name} County District {district_number}'.format(county_name=m.groupdict()['county_name'],district_number=int(m.groupdict()['district_number'])).lower(),{'name':'{county_name}_{prefixed}'.format(**m.groupdict()),'type':'county_council'})) county_council_dicts.append(('{county_name} County Commissioner District {district_number}'.format(**m.groupdict()).lower(),{'name':'{county_name}_{prefixed}'.format(**m.groupdict()),'type':'county_council'})) county_council_dicts.append(('{county_name} County Commissioner District {district_number}'.format(county_name=m.groupdict()['county_name'],district_number=int(m.groupdict()['district_number'])).lower(),{'name':'{county_name}_{prefixed}'.format(**m.groupdict()),'type':'county_council'})) county_council_dicts.append(('{county_name} County - Commission District {district_number}'.format(**m.groupdict()).lower(),{'name':'{county_name}_{prefixed}'.format(**m.groupdict()),'type':'county_council'})) county_council_dicts.append(('{county_name} County - Commission District {district_number}'.format(county_name=m.groupdict()['county_name'],district_number=int(m.groupdict()['district_number'])).lower(),{'name':'{county_name}_{prefixed}'.format(**m.groupdict()),'type':'county_council'})) county_council_dicts.append(('{county_name} County - Commissioner District {district_number}'.format(**m.groupdict()).lower(),{'name':'{county_name}_{prefixed}'.format(**m.groupdict()),'type':'county_council'})) county_council_dicts.append(('{county_name} County - Commissioner District {district_number}'.format(county_name=m.groupdict()['county_name'],district_number=int(m.groupdict()['district_number'])).lower(),{'name':'{county_name}_{prefixed}'.format(**m.groupdict()),'type':'county_council'})) county_council_dicts.append(('{county_name} County - Comm District {district_number}'.format(**m.groupdict()).lower(),{'name':'{county_name}_{prefixed}'.format(**m.groupdict()),'type':'county_council'})) county_council_dicts.append(('{county_name} County - Comm District {district_number}'.format(county_name=m.groupdict()['county_name'],district_number=int(m.groupdict()['district_number'])).lower(),{'name':'{county_name}_{prefixed}'.format(**m.groupdict()),'type':'county_council'})) county_council_dicts.append(('{county_name} County - Council District {district_number}'.format(**m.groupdict()).lower(),{'name':'{county_name}_{prefixed}'.format(**m.groupdict()),'type':'county_council'})) county_council_dicts.append(('{county_name} County - Council District {district_number}'.format(county_name=m.groupdict()['county_name'],district_number=int(m.groupdict()['district_number'])).lower(),{'name':'{county_name}_{prefixed}'.format(**m.groupdict()),'type':'county_council'})) ed_map.update(dict(county_council_dicts)) if __name__ == '__main__': print ed_map
[ "gaertner@gaertner-lap.(none)" ]
gaertner@gaertner-lap.(none)
701e7a3fe9b862f9be8c29065d8556106cae9844
c748470949427eaf78d752bbae002c5bc143184f
/hop.py
effdb488859cb1587aa7cb041e2841089c35ebfb
[]
no_license
SleepyBag/MNSC
6ea7ec1ced5407e2309582d46113a8da9473ac0e
efc5ec9ddf2faf743585aed1b9371f1af8ee24df
refs/heads/master
2020-04-07T16:31:57.422796
2019-01-09T12:40:20
2019-01-09T12:40:20
158,532,648
0
0
null
null
null
null
UTF-8
Python
false
false
1,114
py
from collections import Iterable import tensorflow as tf from attention import attention def hop(scope, last, sentence, sentence_bkg, bkg_iter, bkg_fix, doc_len, real_max_len, convert_flag, biases_initializer=tf.initializers.zeros(), weights_initializer=tf.contrib.layers.xavier_initializer()): if not isinstance(bkg_fix, Iterable): bkg_fix = [bkg_fix] bkg_fix = list(bkg_fix) hidden_size = sentence_bkg.shape[2] with tf.variable_scope(scope): sentence = tf.stop_gradient(sentence) \ if not last else sentence sentence_bkg = tf.stop_gradient(sentence_bkg) \ if not last else sentence_bkg alphas = attention(sentence_bkg, [bkg_iter] + bkg_fix, doc_len, real_max_len, biases_initializer=biases_initializer, weights_initializer=weights_initializer) new_bkg = tf.matmul(alphas, sentence_bkg) new_bkg = tf.reshape(new_bkg, [-1, hidden_size], name='new_bkg') if 'o' in convert_flag: new_bkg = bkg_iter + new_bkg return new_bkg
[ "xueqianming200@gmail.com" ]
xueqianming200@gmail.com
a6775841419a255001caecc42445f5e118342dac
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/tree-big-7135.py
915fe68f0d07c3a0f865155958318f916a634ba9
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
23,287
py
# Binary-search trees class TreeNode(object): value:int = 0 left:"TreeNode" = None right:"TreeNode" = None def insert(self:"TreeNode", x:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode(x) return True else: return self.left.insert(x) elif x > self.value: if self.right is None: self.right = makeNode(x) return True else: return self.right.insert(x) return False def contains(self:"TreeNode", x:int) -> bool: if x < self.value: if self.left is None: return False else: return self.left.contains(x) elif x > self.value: if self.right is None: return False else: return self.right.contains(x) else: return True class TreeNode2(object): value:int = 0 value2:int = 0 left:"TreeNode2" = None left2:"TreeNode2" = None right:"TreeNode2" = None right2:"TreeNode2" = None def insert(self:"TreeNode2", x:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode2(x, x) return True else: return self.left.insert(x) elif x > self.value: if self.right is None: self.right = makeNode2(x, x) return True else: return self.right.insert(x) return False def insert2(self:"TreeNode2", x:int, x2:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode2(x, x) return True else: return self.left.insert(x) elif x > self.value: if self.right is None: self.right = makeNode2(x, x) return True else: return self.right.insert(x) return False def contains(self:"TreeNode2", x:int) -> bool: if x < self.value: if self.left is None: return False else: return self.left.contains(x) elif x > self.value: if self.right is None: return False else: return self.right.contains(x) else: return True def contains2(self:"TreeNode2", x:int, x2:int) -> bool: if x < self.value: if self.left is None: return False else: return self.left.contains(x) elif x > self.value: if self.right is None: return False else: return self.right.contains(x) else: return True class TreeNode3(object): value:int = 0 value2:int = 0 value3:int = 0 left:"TreeNode3" = None left2:"TreeNode3" = None left3:"TreeNode3" = None right:"TreeNode3" = None right2:"TreeNode3" = None right3:"TreeNode3" = None def insert(self:"TreeNode3", x:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode3(x, x, x) return True else: return self.left.insert(x) elif x > self.value: if self.right is None: self.right = makeNode3(x, x, x) return True else: return self.right.insert(x) return False def insert2(self:"TreeNode3", x:int, x2:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode3(x, x, x) return True else: return self.left.insert(x) elif x > self.value: if self.right is None: self.right = makeNode3(x, x, x) return True else: return self.right.insert(x) return False def insert3(self:"TreeNode3", x:int, x2:int, x3:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode3(x, x, x) return True else: return self.left.insert(x) elif x > self.value: if self.right is None: self.right = makeNode3(x, x, x) return True else: return self.right.insert(x) return False def contains(self:"TreeNode3", x:int) -> bool: if x < self.value: if self.left is None: return False else: return self.left.contains(x) elif x > self.value: if self.right is None: return False else: return self.right.contains(x) else: return True def contains2(self:"TreeNode3", x:int, x2:int) -> bool: if x < self.value: if self.left is None: return False else: return self.left.contains(x) elif x > self.value: if self.right is None: return False else: return self.right.contains(x) else: return True def contains3(self:"TreeNode3", x:int, x2:int, x3:int) -> bool: if x < self.value: if self.left is None: return False else: return self.left.contains(x) elif x > self.value: if self.right is None: return False else: return self.right.contains(x) else: return True class TreeNode4(object): value:int = 0 value2:int = 0 value3:int = 0 value4:int = 0 left:"TreeNode4" = None left2:"TreeNode4" = None left3:"TreeNode4" = None left4:"TreeNode4" = None right:"TreeNode4" = None right2:"TreeNode4" = None right3:"TreeNode4" = None right4:"TreeNode4" = None def insert(self:"TreeNode4", x:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode4(x, x, x, x) return True else: return self.left.insert(x) elif x > self.value: if self.right is None: self.right = makeNode4(x, x, x, x) return True else: return self.right.insert(x) return False def insert2(self:"TreeNode4", x:int, x2:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode4(x, x, x, x) return True else: return self.left.insert(x) elif x > self.value: if self.right is None: self.right = makeNode4(x, x, x, x) return True else: return self.right.insert(x) return False def insert3(self:"TreeNode4", x:int, x2:int, x3:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode4(x, x, x, x) return True else: return self.left.insert(x) elif x > self.value: if self.right is None: self.right = makeNode4(x, x, x, x) return True else: return self.right.insert(x) return False def insert4(self:"TreeNode4", x:int, x2:int, x3:int, x4:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode4(x, x, x, x) return True else: return self.left.insert(x) elif x > self.value: if self.right is None: self.right = makeNode4(x, x, x, x) return True else: return self.right.insert(x) return False def contains(self:"TreeNode4", x:int) -> bool: if x < self.value: if self.left is None: return False else: return self.left.contains(x) elif x > self.value: if self.right is None: return False else: return self.right.contains(x) else: return True def contains2(self:"TreeNode4", x:int, x2:int) -> bool: if x < self.value: if self.left is None: return False else: return self.left.contains(x) elif x > self.value: if self.right is None: return False else: return self.right.contains(x) else: return True def contains3(self:"TreeNode4", x:int, x2:int, x3:int) -> bool: if x < self.value: if self.left is None: return False else: return self.left.contains(x) elif x > self.value: if self.right is None: return False else: return self.right.contains(x) else: return True def contains4(self:"TreeNode4", x:int, x2:int, x3:int, x4:int) -> bool: if x < self.value: if self.left is None: return False else: return self.left.contains(x) elif x > self.value: if self.right is None: return False else: return self.right.contains(x) else: return True class TreeNode5(object): value:int = 0 value2:int = 0 value3:int = 0 value4:int = 0 value5:int = 0 left:"TreeNode5" = None left2:"TreeNode5" = None left3:"TreeNode5" = None left4:"TreeNode5" = None left5:"TreeNode5" = None right:"TreeNode5" = None right2:"TreeNode5" = None right3:"TreeNode5" = None right4:"TreeNode5" = None right5:"TreeNode5" = None def insert(self:"TreeNode5", x:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode5(x, x, x, x, x) return True else: return self.left.insert(x) elif x > self.value: if self.right is None: self.right = makeNode5(x, x, x, x, x) return True else: return self.right.insert(x) return False def insert2(self:"TreeNode5", x:int, x2:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode5(x, x, x, x, x) return True else: return self.left.insert(x) elif x > self.value: if self.right is None: self.right = makeNode5(x, x, x, x, x) return True else: return self.right.insert(x) return False def insert3(self:"TreeNode5", x:int, x2:int, x3:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode5(x, x, x, x, x) return True else: return self.left.insert(x) elif x > self.value: if self.right is None: self.right = makeNode5(x, x, x, x, x) return True else: return self.right.insert(x) return False def insert4(self:"TreeNode5", x:int, x2:int, x3:int, x4:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode5(x, x, x, x, x) return True else: return self.left.insert(x) elif x > self.value: if self.right is None: self.right = makeNode5(x, x, x, x, x) return True else: return self.right.insert(x) return False def insert5(self:"TreeNode5", x:int, x2:int, x3:int, x4:int, x5:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode5(x, x, x, x, x) return True else: return self.left.insert(x) elif x > self.value: if self.right is None: self.right = makeNode5(x, x, x, x, x) return True else: return self.right.insert(x) return False def contains(self:"TreeNode5", x:int) -> bool: if x < self.value: if self.left is None: return False else: return self.left.contains(x) elif x > self.value: if self.right is None: return False else: return self.right.contains(x) else: return True def contains2(self:"TreeNode5", x:int, x2:int) -> bool: if x < self.value: if self.left is None: return False else: return self.left.contains(x) elif x > self.value: if self.right is None: return False else: return self.right.contains(x) else: return True def contains3(self:"TreeNode5", x:int, x2:int, x3:int) -> bool: if x < self.value: if self.left is None: return False else: return self.left.contains(x) elif x > self.value: if self.right is None: return False else: return self.right.contains(x) else: return True def contains4(self:"TreeNode5", x:int, x2:int, x3:int, x4:int) -> bool: if x < self.value: if self.left is None: return False else: return self.left.contains(x) elif x > self.value: if self.right is None: return False else: return self.right.contains(x) else: return True def contains5(self:"TreeNode5", x:int, x2:int, x3:int, x4:int, x5:int) -> bool: if x < self.value: if self.left is None: return False else: return self.left.contains(x) elif x > self.value: if self.right is None: return False else: return self.right.contains(x) else: return True class Tree(object): root:TreeNode = None size:int = 0 def insert(self:"Tree", x:int) -> object: if self.root is None: self.root = makeNode(x) self.size = 1 else: if self.root.insert(x): self.size = self.size + 1 def contains(self:"Tree", x:int) -> bool: if self.root is None: return False else: return self.root.contains(x) class Tree2(object): root:TreeNode2 = None root2:TreeNode2 = None size:int = 0 size2:int = 0 def insert(self:"Tree2", x:int) -> object: if self.root is None: self.root = makeNode2(x, x) self.size = 1 else: if self.root.insert(x): self.size = self.size + 1 def insert2(self:"Tree2", x:int, x2:int) -> object: if self.root is None: self.root = makeNode2(x, x) self.size = 1 else: if self.root.insert(x): self.size = self.size + 1 def contains(self:"Tree2", x:int) -> bool: if self.root is None: return False else: return self.root.contains(x) def contains2(self:"Tree2", x:int, x2:int) -> bool: if self.root is None: return False else: return self.root.contains(x) class Tree3(object): root:TreeNode3 = None root2:TreeNode3 = None root3:TreeNode3 = None size:int = 0 size2:int = 0 size3:int = 0 def insert(self:"Tree3", x:int) -> object: if self.root is None: self.root = makeNode3(x, x, x) self.size = 1 else: if self.root.insert(x): self.size = self.size + 1 def insert2(self:"Tree3", x:int, x2:int) -> object: if self.root is None: self.root = makeNode3(x, x, x) self.size = 1 else: if self.root.insert(x): self.size = self.size + 1 def insert3(self:"Tree3", x:int, x2:int, x3:int) -> object: if self.root is None: self.root = makeNode3(x, x, x) self.size = 1 else: if self.root.insert(x): self.size = self.size + 1 def contains(self:"Tree3", x:int) -> bool: if self.root is None: return False else: return self.root.contains(x) def contains2(self:"Tree3", x:int, x2:int) -> bool: if self.root is None: return False else: return self.root.contains(x) def contains3(self:"Tree3", x:int, x2:int, x3:int) -> bool: if self.root is None: return False else: return self.root.contains(x) class Tree4(object): root:TreeNode4 = None root2:TreeNode4 = None root3:TreeNode4 = None root4:TreeNode4 = None size:int = 0 size2:int = 0 size3:int = 0 size4:int = 0 def insert(self:"Tree4", x:int) -> object: if self.root is None: self.root = makeNode4(x, x, x, x) self.size = 1 else: if self.root.insert(x): self.size = self.size + 1 def insert2(self:"Tree4", x:int, x2:int) -> object: if self.root is None: self.root = makeNode4(x, x, x, x) self.size = 1 else: if self.root.insert(x): self.size = self.size + 1 def insert3(self:"Tree4", x:int, x2:int, x3:int) -> object: if self.root is None: self.root = makeNode4(x, x, x, x) self.size = 1 else: if self.root.insert(x): self.size = self.size + 1 def insert4(self:"Tree4", x:int, x2:int, x3:int, x4:int) -> object: if self.root is None: self.root = makeNode4(x, x, x, x) self.size = 1 else: if self.root.insert(x): self.size = self.size + 1 def contains(self:"Tree4", x:int) -> bool: if self.root is None: return False else: return self.root.contains(x) def contains2(self:"Tree4", x:int, x2:int) -> bool: if self.root is None: return False else: return self.root.contains(x) def contains3(self:"Tree4", x:int, x2:int, x3:int) -> bool: if self.root is None: return False else: return self.root.contains(x) def contains4(self:"Tree4", x:int, x2:int, x3:int, x4:int) -> bool: if self.root is None: return False else: return self.root.contains(x) class Tree5(object): root:TreeNode5 = None root2:TreeNode5 = None root3:TreeNode5 = None root4:TreeNode5 = None root5:TreeNode5 = None size:int = 0 size2:int = 0 size3:int = 0 size4:int = 0 size5:int = 0 def insert(self:"Tree5", x:int) -> object: if self.root is None: self.root = makeNode5(x, x, x, x, x) self.size = 1 else: if self.root.insert(x): self.size = self.size + 1 def insert2(self:"Tree5", x:int, x2:int) -> object: if self.root is None: self.root = makeNode5(x, x, x, x, x) self.size = 1 else: if self.root.insert(x): self.size = self.size + 1 def insert3(self:"Tree5", x:int, x2:int, x3:int) -> object: if self.root is None: self.root = makeNode5(x, x, x, x, x) self.size = 1 else: if self.root.insert(x): self.size = $Member + 1 def insert4(self:"Tree5", x:int, x2:int, x3:int, x4:int) -> object: if self.root is None: self.root = makeNode5(x, x, x, x, x) self.size = 1 else: if self.root.insert(x): self.size = self.size + 1 def insert5(self:"Tree5", x:int, x2:int, x3:int, x4:int, x5:int) -> object: if self.root is None: self.root = makeNode5(x, x, x, x, x) self.size = 1 else: if self.root.insert(x): self.size = self.size + 1 def contains(self:"Tree5", x:int) -> bool: if self.root is None: return False else: return self.root.contains(x) def contains2(self:"Tree5", x:int, x2:int) -> bool: if self.root is None: return False else: return self.root.contains(x) def contains3(self:"Tree5", x:int, x2:int, x3:int) -> bool: if self.root is None: return False else: return self.root.contains(x) def contains4(self:"Tree5", x:int, x2:int, x3:int, x4:int) -> bool: if self.root is None: return False else: return self.root.contains(x) def contains5(self:"Tree5", x:int, x2:int, x3:int, x4:int, x5:int) -> bool: if self.root is None: return False else: return self.root.contains(x) def makeNode(x: int) -> TreeNode: b:TreeNode = None b = TreeNode() b.value = x return b def makeNode2(x: int, x2: int) -> TreeNode2: b:TreeNode2 = None b2:TreeNode2 = None b = TreeNode2() b.value = x return b def makeNode3(x: int, x2: int, x3: int) -> TreeNode3: b:TreeNode3 = None b2:TreeNode3 = None b3:TreeNode3 = None b = TreeNode3() b.value = x return b def makeNode4(x: int, x2: int, x3: int, x4: int) -> TreeNode4: b:TreeNode4 = None b2:TreeNode4 = None b3:TreeNode4 = None b4:TreeNode4 = None b = TreeNode4() b.value = x return b def makeNode5(x: int, x2: int, x3: int, x4: int, x5: int) -> TreeNode5: b:TreeNode5 = None b2:TreeNode5 = None b3:TreeNode5 = None b4:TreeNode5 = None b5:TreeNode5 = None b = TreeNode5() b.value = x return b # Input parameters n:int = 100 n2:int = 100 n3:int = 100 n4:int = 100 n5:int = 100 c:int = 4 c2:int = 4 c3:int = 4 c4:int = 4 c5:int = 4 # Data t:Tree = None t2:Tree = None t3:Tree = None t4:Tree = None t5:Tree = None i:int = 0 i2:int = 0 i3:int = 0 i4:int = 0 i5:int = 0 k:int = 37813 k2:int = 37813 k3:int = 37813 k4:int = 37813 k5:int = 37813 # Crunch t = Tree() while i < n: t.insert(k) k = (k * 37813) % 37831 if i % c != 0: t.insert(i) i = i + 1 print(t.size) for i in [4, 8, 15, 16, 23, 42]: if t.contains(i): print(i)
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
a3882d61d3ed8504f857b3e9435321d0d53a28b0
549270020f6c8724e2ef1b12e38d11b025579f8d
/recipes/gcc/all/test_v1_package/conanfile.py
a9e585e6ddfd44fc0a19029ef3fea80cb4a37849
[ "MIT" ]
permissive
conan-io/conan-center-index
1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43
3b17e69bb4e5601a850b6e006e44775e690bac33
refs/heads/master
2023-08-31T11:34:45.403978
2023-08-31T11:13:23
2023-08-31T11:13:23
204,671,232
844
1,820
MIT
2023-09-14T21:22:42
2019-08-27T09:43:58
Python
UTF-8
Python
false
false
1,498
py
from conans import ConanFile, tools import os class TestPackageConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "cmake" def test(self): def chmod_plus_x(name): if os.name == 'posix': os.chmod(name, os.stat(name).st_mode | 0o111) cc = self.deps_env_info["gcc"].CC cxx = self.deps_env_info["gcc"].CXX hello_c = os.path.join(self.source_folder, "hello.c") hello_cpp = os.path.join(self.source_folder, "hello.cpp") self.run("%s --version" % cc, run_environment=True) self.run("%s --version" % cxx, run_environment=True) self.run("%s -dumpversion" % cc, run_environment=True) self.run("%s -dumpversion" % cxx, run_environment=True) self.run("%s %s -o hello_c" % (cc, hello_c), run_environment=True) self.run("%s %s -o hello_cpp" % (cxx, hello_cpp), run_environment=True) if not tools.cross_building(self.settings): chmod_plus_x("hello_c") chmod_plus_x("hello_cpp") self.run("./hello_c", run_environment=True) self.run("./hello_cpp", run_environment=True) if tools.which("readelf"): self.run("readelf -l hello_c", run_environment=True) self.run("readelf -l hello_cpp", run_environment=True) if tools.which("otool"): self.run("otool -L hello_c", run_environment=True) self.run("otool -L hello_cpp", run_environment=True)
[ "noreply@github.com" ]
conan-io.noreply@github.com
9555111af343a9c31ab6d5bf143cfb3904d4ca63
3e36dc2c0455f0332e45b634b35af745550c0709
/mv.py
efffb2d694411511f2c57d09aa76b1f6b2a739af
[]
no_license
houking-can/GenDataset
a42388129fb7a5b1c176e77dd953f5fa27e77e7a
fb2e9d841ba0f3288e5152c97e250f709cd4f785
refs/heads/master
2020-05-05T09:48:47.334267
2019-04-26T15:18:12
2019-04-26T15:18:12
179,918,151
2
0
null
null
null
null
UTF-8
Python
false
false
674
py
import os import json import shutil def iter_files(path): """Walk through all files located under a root path.""" if os.path.isfile(path): yield path elif os.path.isdir(path): for dirpath, _, filenames in os.walk(path): for f in filenames: yield os.path.join(dirpath, f) else: raise RuntimeError('Path %s is invalid' % path) path = r'E:\ARXIV' for file in iter_files(path): paper= json.load(open(file)) a= len(' '.join(paper['abstract'])) b= len(' '.join(paper['article'])) c=len(' '.join(paper['conclusion'])) if a>c+b+50: shutil.move(file,r'E:\tmp\arxiv') print(file)
[ "1240723224@qq.com" ]
1240723224@qq.com
ab86dcc71428914d31a13d2dfe2c86a9348a0698
0b932d446d88013fadb8c4e0dd3ca3cc4a1a5de3
/localizacion/inte_project_invoice_customer/__manifest__.py
ea12d16a6fdd1e47a96e0e519ff1a6c105fe846b
[]
no_license
grudiver/biumak
cd8e7477bba3389b2144fa6d35cd89d2eaf0210f
65705737f16da087b6cb01f725236e7bc9c59c86
refs/heads/master
2022-04-11T13:17:33.347975
2020-03-24T17:55:24
2020-03-24T17:55:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,041
py
# coding: utf-8 ############################################################################## # # Copyright (c) 2016 Tecnología y Servicios AMN C.A. (http://tysamnca.com/) All Rights Reserved. # <contacto@tysamnca.com> # <Teléfono: +58(212) 237.77.53> # Caracas, Venezuela. # # Colaborador: Nathaly Partidas <npartidas@tysamnca.com> # # WARNING: This program as such is intended to be used by professional # programmers who take the whole responsability of assessing all potential # consequences resulting from its eventual inadequacies and bugs # End users who are looking for a ready-to-use solution with commercial # garantees and support are strongly adviced to contract a Free Software # Service Company # # This program is Free Software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # ############################################################################## { 'name': 'Add project in invoice customer', 'version': '1.0', 'category': 'invoice', 'summary': 'Add project in invoice customer', 'description': """ Add project in invoice customer ===================== Add project in invoice customer """, 'author': 'TYSAMNCA', 'website': 'https://tysamnca.com', 'depends': ['base','account'], 'data': [ 'view/invoice_view.xml' ], #'demo': [], #'test': [], 'installable': True, 'auto_install': False, 'application': False, }
[ "soporte.innova2129@gmail.com" ]
soporte.innova2129@gmail.com
d89f82d820f1cc4b67d71786f096d13e1a94b79b
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/709325c321084d4eaaf1af19e2ad7def.py
7b890ef29abe7f0328ad713610bbb0e2515af7be
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
430
py
def hey(sentence): if does_not_say_anything(sentence): return 'Fine. Be that way!' if is_a_question(sentence): return 'Sure.' if is_yelling(sentence): return 'Woah, chill out!' return 'Whatever.' def does_not_say_anything(sentence): return sentence.strip() == "" def is_a_question(sentence): return sentence and not is_yelling(sentence) and sentence[-1] == "?" def is_yelling(sentence): return sentence.isupper()
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
169c4f2428f3f0da8b7f25fe1ec67182b0450f3f
2c1429a1bd2d0477fd88119d4d778fc68c82adcf
/python/DeepSeaVectorDraw/FileOrData.py
4904e9ca72ee944f59623cc411736a2f59cb76e0
[ "Apache-2.0" ]
permissive
akb825/DeepSea
d7ac54f6d8243d43d6ea538159f3067ab7e79880
5a909b4f51717bc59682e51ad6aa598a25a9b965
refs/heads/master
2023-08-31T23:45:19.533393
2023-08-29T07:30:36
2023-08-29T07:30:43
142,716,767
10
2
null
null
null
null
UTF-8
Python
false
false
179
py
# automatically generated by the FlatBuffers compiler, do not modify # namespace: DeepSeaVectorDraw class FileOrData(object): NONE = 0 FileReference = 1 RawData = 2
[ "akb825@gmail.com" ]
akb825@gmail.com
0ceba6b5029e47ade2b015ff5da2adf23055db90
f095bf04dd1cb62319f77c096714b72efb059689
/tests/unit/test_clang.py
e5f2780657594000c5d9c51077ad01493e67ef83
[ "NCSA" ]
permissive
blep/Beye
b9d648039d78a9cb18b9badb717cdbc20849f0f1
dd4cd865ed5ea51527a4d302422e4f5d68e1954a
refs/heads/master
2021-01-18T13:18:20.381010
2015-06-15T13:46:14
2015-06-15T13:46:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
993
py
# -*- coding: utf-8 -*- # The LLVM Compiler Infrastructure # # This file is distributed under the University of Illinois Open Source # License. See LICENSE.TXT for details. import libscanbuild.clang as sut from . import fixtures import os.path class GetClangArgumentsTest(fixtures.TestCase): def test_get_clang_arguments(self): with fixtures.TempDir() as tmpdir: filename = os.path.join(tmpdir, 'test.c') with open(filename, 'w') as handle: handle.write('') result = sut.get_arguments( tmpdir, ['clang', '-c', filename, '-DNDEBUG', '-Dvar="this is it"']) self.assertIn('NDEBUG', result) self.assertIn('var="this is it"', result) def test_get_clang_arguments_fails(self): self.assertRaises( Exception, sut.get_arguments, '.', ['clang', '-###', '-fsyntax-only', '-x', 'c', 'notexist.c'])
[ "rizsotto@gmail.com" ]
rizsotto@gmail.com
2f903fb6b05308a81d77262030e3009f2320f061
f68732bc40a7a90c3a1082e4b3a4154518acafbb
/script/dbus/sessionBus/timedate/007_setDate.py
b177277e1d4c004f8660ca893111b67f56b2ef9f
[]
no_license
lizhouquan1017/dbus_demo
94238a2307e44dabde9f4a4dd0cf8ec217260867
af8442845e722b258a095e9a1afec9dddfb175bf
refs/heads/master
2023-02-11T19:46:27.884936
2021-01-08T05:27:18
2021-01-08T05:27:18
327,162,635
0
0
null
null
null
null
UTF-8
Python
false
false
1,077
py
# -*- coding: utf-8 -*- # **************************************************** # @Test Case ID: 007_setDate # @Test Description: 设置系统时间和日期 # @Test Condition: 关闭时间自动同步设置 # @Test Step: 1.重置系统时间和网络时间同步; # @Test Result: 1.检查重置成功; # @Test Remark: # @Author: ut000511 # ***************************************************** import time import pytest from frame.base import OSBase from aw.dbus.sessionBus import timedate class TestCase(OSBase): def setUp(self): self.Step("预制条件1:关闭时间自动同步设置") timedate.setNTP(False) @pytest.mark.public def test_step(self): self.Step("步骤1:设置系统时间和日期") timedate.setDate(2020, 7, 28, 10, 30, 10, 0) self.CheckPoint("检查点1: 检查时间设置成功") timedate.checkSetDateStatus(7, 28) def tearDown(self): self.Step("收尾:还原系统时间设置") time.sleep(2) timedate.reset()
[ "lizhouquan@uniontech.com" ]
lizhouquan@uniontech.com
7bd9e4b8114d7008b804d6f948f7f8c3f75a62e1
d52413173437ba73ecdf822ca895e659f00a8ce7
/kiwibackend/doc/python/PBEquipHeroMessage_PBResponse.py
1403934bdc3681823b456d28a38584615e3141c3
[]
no_license
whiteprism/mywork
2329b3459c967c079d6185c5acabd6df80cab8ea
a8e568e89744ca7acbc59e4744aff2a0756d7252
refs/heads/master
2021-01-21T11:15:49.090408
2017-03-31T03:28:13
2017-03-31T03:28:13
83,540,646
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
class PBEquipHeroMessage_PBResponse(): def __init__(self): self.stub = -1
[ "snoster@163.com" ]
snoster@163.com
7703332074976cd837f06a01e576212613255699
7b51c2248463406783e18f6bc02e2e6ef68aecb2
/agol_util.py
5bb206e400524b0281b1b209c773956956682f63
[]
no_license
fgassert/agol_util
88712974720103826f9d21136a6612b6aa67a806
cc8c8b9e5915958cafd08d65f9b3361e608a556d
refs/heads/master
2016-09-06T12:51:04.888287
2015-08-04T20:57:43
2015-08-04T20:57:43
40,208,668
0
2
null
null
null
null
UTF-8
Python
false
false
4,667
py
import urllib2 import urllib import json import time class AGOL_util: """ Minimal client library for ArcGIS online API Parameters: root_url: portal root rest url e.g. http://myorg.arcgis.com/sharing/rest username: valid arggis online username password: valid arggis online password """ def __init__(self, root_url, username, password): self.url = root_url self._check_items = [] self._uid = username self._pwdd = password self._validate_user(username, password) def _validate_user(self, username, password): ''' Requests token based on username and password no error catching ''' keys = {'username':username, 'password':password, 'referer':self.url, 'f':'json'} data = urllib.urlencode(keys) req = urllib2.Request('https://www.arcgis.com/sharing/rest/generateToken', data) resp = json.load(urllib2.urlopen(req)) if 'token' in resp: self._token = resp['token'] self._expiry = resp['expires'] else: self._token = '' self._expiry = 0 return resp def get_token(self, nd=False): """ returns valid token or false on failure """ if self._token=='' or self._expiry <= time.time(): if nd: return False else: self._validate_user(self._uid, self._pwd) return(self.get_token(1)) return self._token def query(self, endpoint, options): ''' POST to url endpoint with options as data autoappends token and json response parameters concatinates self.url and endpoind assuming matching /'s return as JSON ''' options['token'] = self.get_token() options['f'] = 'json' data = urllib.urlencode(options) requrl = "{}{}".format(self.url, endpoint) req = urllib2.Request(requrl, data) return json.load(urllib2.urlopen(req)) def add_item_from_url(self, url, options={}): options['dataUrl'] = url options['async'] = 'true' options['overwrite'] = 'true' return self.query('/content/users/{}/addItem'.format(self._uid), options) def add_shapefile_from_url(self, url, options={}): """ URL should point to zipped shapefile """ options['type'] = 'Shapefile' return self.add_item_from_url(url, options) def get_item_status(self, itemId): url = '/content/users/{}/items/{}/status'.format(self._uid, itemId) return self.query(url, {}) def wait_for_completion(self, itemId, timeout=60): ''' Check every second for item status to return completed Return: true on completion false on timeout or error ''' res = self.get_item_status(itemId) t = 0 while 'status' in res and t < timeout: if res['status'] == 'completed': return True t += 1 time.sleep(1) res = self.get_item_status(itemId) return False def update_item(self, itemId, options): url = '/content/users/{}/items/{}/update'.format(self._uid, itemId) return self.query(url, options) def share_items(self, items, everyone=None, org=None, groups=None): """ shares items defined by item ids with given groups, org, or everyone """ options = {} if groups is not None: options['groups'] = groups if everyone is not None: options['everyone'] = everyone if org is not None: options['org'] = org if type(items) == list: items = ','.join(items) options['items'] = items return self.query('/content/users/{}/shareItems'.format(self._uid), options) def publish_item(self, itemId, options, publishParameters): options['itemID'] = itemId options['publishParameters'] = json.dumps(publishParameters) options['overwrite'] = 'true' return self.query('/content/users/{}/publish'.format(self._uid), options) def publish_shapefile(self, itemId, options={}, publishParameters={}): options['fileType'] = 'shapefile' if 'name' not in publishParameters: publishParameters['name'] = itemId return self.publish_item(itemId, options, publishParameters) def delete_item(self, itemId): url = '/content/users/{}/items/{}/delete'.format(self._uid, itemId) return self.query(url)
[ "cowbox314@gmail.com" ]
cowbox314@gmail.com
25cfefcf5435888d72794db6ffd98d70ec97293a
5dae158ba8adef3a30061336cf24087273d1d1be
/scripts/gpipe/analyze_predictions.py
3744ec4746e1bba27c9c0f8cb81351f3945c9544
[]
no_license
Q-KIM/cgat
595cbc51d0d34f4442d4d124e2fec2be8e1a2a79
3bccc543d3daa1ee8830ecb0467e2b3b3b5beb9a
refs/heads/master
2021-01-17T07:30:00.213178
2015-06-05T14:03:33
2015-06-05T14:03:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,625
py
########################################################################## # # MRC FGU Computational Genomics Group # # $Id$ # # Copyright (C) 2009 Andreas Heger # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ########################################################################## ''' gpipe/analyze_predictions.py - ====================================================== :Author: Andreas Heger :Release: $Id$ :Date: |today| :Tags: Python Purpose ------- .. todo:: describe purpose of the script. Usage ----- Example:: python gpipe/analyze_predictions.py --help Type:: python gpipe/analyze_predictions.py --help for command line help. Documentation ------------- Code ---- ''' import sys import pgdb import csv import CGAT.Experiment as E def main(argv=None): """script main. parses command line options in sys.argv, unless *argv* is given. """ if argv is None: argv = sys.argv parser = E.OptionParser( version="%prog version: $Id: gpipe/analyze_predictions.py 2781 2009-09-10 11:33:14Z andreas $") parser.add_option("-s", "--species-regex", dest="species_regex", type="string", help="regular expression to extract species from identifier.") parser.add_option("-g", "--gene-regex", dest="gene_regex", type="string", help="regular expression to extract gene from identifier.") parser.add_option("-m", "--methods", dest="methods", type="string", help="methods to use [query|].") parser.set_defaults( species_regex="^([^|]+)\|", gene_regex="^[^|]+\|[^|]+\|([^|]+)\|", methods="query", tablename_predictions="predictions", separator="|") (options, args) = E.Start( parser, add_psql_options=True, add_csv_options=True) options.methods = options.methods.split(",") dbhandle = pgdb.connect(options.psql_connection) fields = [] for method in options.methods: if method == "query": fields += ["query", "lquery"] elif method == "nexons": fields.append("nexons") else: raise "unknown method %s" % method outfile = sys.stdout writer = csv.DictWriter(outfile, fields, dialect=options.csv_dialect, lineterminator=options.csv_lineterminator, extrasaction='ignore') first = True for line in sys.stdin: if line[0] == "#": continue data = line[:-1].split("\t") if first: outfile.write("\t".join(data + fields) + "\n") first = False continue schema, prediction_id, gene_id, quality = data[ 0].split(options.separator) outfile.write(line[:-1]) for method in options.methods: if method == "query": statement = "SELECT query_token, query_length FROM %s.%s WHERE prediction_id = '%s'" % (schema, options.tablename_predictions, prediction_id) elif method == "nexons": statement = "SELECT nintrons+1 FROM %s.%s WHERE prediction_id = '%s'" % (schema, options.tablename_predictions, prediction_id) cc = dbhandle.cursor() cc.execute(statement) rr = cc.fetchone() cc.close() for x in rr: outfile.write("\t%s" % str(x)) outfile.write("\n") E.Stop() if __name__ == "__main__": sys.exit(main(sys.argv))
[ "andreas.heger@gmail.com" ]
andreas.heger@gmail.com
c48eda74cdfae649b3b3e018fce9d41f437ae699
e0d776ec6d324e8630d463a1be81f81ccd3a51a9
/schools/migrations/0001_initial.py
c396d66cea23dd7a30c9e856f2417162a10c14b1
[ "MIT" ]
permissive
moshthepitt/shulezote
9b3c8c6d5c53e2b497977fd6900e500e09315c41
e903a208948ab5294183e2a8c2dac9360a184654
refs/heads/master
2021-07-03T11:17:19.274106
2019-08-04T09:49:59
2019-08-04T09:49:59
32,628,463
2
1
MIT
2021-06-10T19:47:39
2015-03-21T10:35:34
Python
UTF-8
Python
false
false
3,775
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import autoslug.fields import django.contrib.gis.db.models.fields class Migration(migrations.Migration): dependencies = [ ('places', '0001_initial'), ] operations = [ migrations.CreateModel( name='School', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('created_on', models.DateTimeField(auto_now_add=True, verbose_name='Created on')), ('updated_on', models.DateTimeField(auto_now=True, verbose_name='Updated on')), ('code', models.CharField(max_length=255, verbose_name='Code', blank=True)), ('name', models.CharField(max_length=255, verbose_name='Name of School')), ('slug', autoslug.fields.AutoSlugField(unique=True, editable=False)), ('address', models.CharField(max_length=255, verbose_name='Address', blank=True)), ('level', models.CharField(help_text='Primary or secondary school', max_length=1, verbose_name='Level', choices=[(b'1', 'Primary School'), (b'2', 'Secondary School')])), ('school_type', models.CharField(default=b'1', help_text='Day, Boarding or Both?', max_length=1, verbose_name='School Type', choices=[(b'1', 'Day'), (b'2', 'Boarding'), (b'3', 'Day & Boarding')])), ('student_gender', models.CharField(default=b'3', help_text='Boys school, Girls school, or mixed', max_length=1, verbose_name='Student Gender', choices=[(b'1', 'Boys'), (b'2', 'Girls'), (b'3', 'Mixed')])), ('ownership', models.CharField(default=b'1', help_text='Private or public', max_length=1, verbose_name='Ownership', choices=[(b'1', 'Public'), (b'2', 'Private')])), ('sponsor', models.CharField(default=b'1', max_length=1, verbose_name='School Sponsor', choices=[(b'1', 'Central Government/DEB'), (b'2', 'Religious Organisation'), (b'3', 'Community'), (b'4', 'NGO/CBO'), (b'5', 'Private Individual')])), ('student_needs', models.CharField(default=b'1', help_text='Ordinary, Special or Integrated', max_length=1, verbose_name='Student Needs', choices=[(b'1', 'Ordnirary'), (b'2', 'Special'), (b'3', 'Integrated')])), ('is_active', models.BooleanField(default=True, help_text='Designates whether this school is active.', verbose_name='Active')), ('coordinates', django.contrib.gis.db.models.fields.PointField(help_text='Represented as (longitude, latitude)', srid=4326, verbose_name='Coordinates')), ('constituency', models.ForeignKey(verbose_name='Constituency', to='places.Constituency')), ('county', models.ForeignKey(verbose_name='County', to='places.County')), ('district', models.ForeignKey(default=None, blank=True, to='places.District', null=True, verbose_name='District')), ('division', models.ForeignKey(default=None, blank=True, to='places.Division', null=True, verbose_name='Division')), ('location', models.ForeignKey(default=None, blank=True, to='places.Location', null=True, verbose_name='Location')), ('province', models.ForeignKey(default=None, blank=True, to='places.Province', null=True, verbose_name='Province')), ('school_sone', models.ForeignKey(default=None, blank=True, to='places.SchoolZone', null=True, verbose_name='School Zone')), ('sub_location', models.ForeignKey(default=None, blank=True, to='places.SubLocation', null=True, verbose_name='Sub Location')), ], options={ }, bases=(models.Model,), ), ]
[ "kelvin@jayanoris.com" ]
kelvin@jayanoris.com
c5ccb7cfc36c468958d0fc2b2ea1064cf718c1ff
857a9e588a04b40a66b6ca115063cb67ef0427ea
/tests/divine/test_divine.py
4eb4b8f22e7a7f5b61a5e6b996c19c894ba6ebaa
[ "MIT" ]
permissive
rambam613/timemachines
81b88357498871f77efed0faf9c25b4c408d822c
cd243d4606b4ad9c1d419988fc6c04b0964af2e6
refs/heads/main
2023-07-03T07:06:24.421114
2021-08-07T17:42:40
2021-08-07T17:42:40
393,793,785
1
0
MIT
2021-08-07T21:13:35
2021-08-07T21:13:34
null
UTF-8
Python
false
false
548
py
from timemachines.skaters.divine.divineinclusion import using_divinity, dv if using_divinity: from timemachines.skaters.divine.divineskaters import divine_univariate from timemachines.skatertools.evaluation.evaluators import hospital_mean_square_error_with_sporadic_fit def dont_test_divine(): # too noisy err = hospital_mean_square_error_with_sporadic_fit(f=divine_univariate, n=105) # Won't get past warmup so not a real test if __name__=='__main__': assert using_divinity,'pip install divinity' dont_test_divine()
[ "peter.cotton@microprediction.com" ]
peter.cotton@microprediction.com
802ad3fb02a6b071dcd0ec62f89c642999da7259
812f9822ddbfc986f4f230a9e6814f22c7c50e2f
/looping/perfect_generation.py
a86f8a3a5f67f02a0940915cb68d7f44d3a29483
[]
no_license
devopsvj/PythonAndMe
31b4aa9bade1431d6f13917122dc12bf6a118da6
0b1362023960b7c77c79856d4bdef0a58fec1446
refs/heads/master
2023-07-25T23:06:39.081191
2019-01-15T09:50:08
2019-01-15T09:50:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
247
py
print "Perfect Number Generation " print "--------------------------" n=input("Range to generate : ") j=1 while j<=n: i=1 ans=0 while i<j: if j%i==0: ans=ans+i i=i+1 if ans==j: print j j=j+1
[ "vani_kani@hotmail.com" ]
vani_kani@hotmail.com
0f37657bada84d6c01e51ab37c33ece7d932747d
d4aff784639249a076fe43812e73a6018bb92470
/backend/radio_sagun_18170/settings.py
1e852819826f7c17120fdaeedd60bd9b52d09a5c
[]
no_license
crowdbotics-apps/radio-sagun-18170
9b8d5905886eee6d6639e00b01a1ee1c4bcfce51
2c841cf71152663db6e1cb57aa9f11eaf37fa201
refs/heads/master
2022-10-28T10:20:21.208094
2020-06-17T21:56:05
2020-06-17T21:56:05
273,085,286
0
0
null
null
null
null
UTF-8
Python
false
false
5,748
py
""" Django settings for radio_sagun_18170 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os import environ env = environ.Env() # SECURITY WARNING: don't run with debug turned on in production! DEBUG = env.bool("DEBUG", default=False) # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = env.str("SECRET_KEY") ALLOWED_HOSTS = env.list("HOST", default=["*"]) SITE_ID = 1 SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") SECURE_SSL_REDIRECT = env.bool("SECURE_REDIRECT", default=False) # Application definition INSTALLED_APPS = [ "django.contrib.admin", "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sessions", "django.contrib.messages", "django.contrib.staticfiles", "django.contrib.sites", "event", ] LOCAL_APPS = [ "home", "users.apps.UsersConfig", ] THIRD_PARTY_APPS = [ "rest_framework", "rest_framework.authtoken", "rest_auth", "rest_auth.registration", "bootstrap4", "allauth", "allauth.account", "allauth.socialaccount", "allauth.socialaccount.providers.google", "django_extensions", "drf_yasg", # start fcm_django push notifications "fcm_django", # end fcm_django push notifications ] INSTALLED_APPS += LOCAL_APPS + THIRD_PARTY_APPS MIDDLEWARE = [ "django.middleware.security.SecurityMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", "django.middleware.common.CommonMiddleware", "django.middleware.csrf.CsrfViewMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", ] ROOT_URLCONF = "radio_sagun_18170.urls" TEMPLATES = [ { "BACKEND": "django.template.backends.django.DjangoTemplates", "DIRS": [], "APP_DIRS": True, "OPTIONS": { "context_processors": [ "django.template.context_processors.debug", "django.template.context_processors.request", "django.contrib.auth.context_processors.auth", "django.contrib.messages.context_processors.messages", ], }, }, ] WSGI_APPLICATION = "radio_sagun_18170.wsgi.application" # Database # https://docs.djangoproject.com/en/2.2/ref/settings/#databases DATABASES = { "default": { "ENGINE": "django.db.backends.sqlite3", "NAME": os.path.join(BASE_DIR, "db.sqlite3"), } } if env.str("DATABASE_URL", default=None): DATABASES = {"default": env.db()} # Password validation # https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator", }, {"NAME": "django.contrib.auth.password_validation.MinimumLengthValidator",}, {"NAME": "django.contrib.auth.password_validation.CommonPasswordValidator",}, {"NAME": "django.contrib.auth.password_validation.NumericPasswordValidator",}, ] # Internationalization # https://docs.djangoproject.com/en/2.2/topics/i18n/ LANGUAGE_CODE = "en-us" TIME_ZONE = "UTC" USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.2/howto/static-files/ STATIC_URL = "/static/" MIDDLEWARE += ["whitenoise.middleware.WhiteNoiseMiddleware"] AUTHENTICATION_BACKENDS = ( "django.contrib.auth.backends.ModelBackend", "allauth.account.auth_backends.AuthenticationBackend", ) STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles") STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")] STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage" # allauth / users ACCOUNT_EMAIL_REQUIRED = True ACCOUNT_AUTHENTICATION_METHOD = "email" ACCOUNT_USERNAME_REQUIRED = False ACCOUNT_EMAIL_VERIFICATION = "mandatory" ACCOUNT_CONFIRM_EMAIL_ON_GET = True ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION = True ACCOUNT_UNIQUE_EMAIL = True LOGIN_REDIRECT_URL = "users:redirect" ACCOUNT_ADAPTER = "users.adapters.AccountAdapter" SOCIALACCOUNT_ADAPTER = "users.adapters.SocialAccountAdapter" ACCOUNT_ALLOW_REGISTRATION = env.bool("ACCOUNT_ALLOW_REGISTRATION", True) SOCIALACCOUNT_ALLOW_REGISTRATION = env.bool("SOCIALACCOUNT_ALLOW_REGISTRATION", True) REST_AUTH_SERIALIZERS = { # Replace password reset serializer to fix 500 error "PASSWORD_RESET_SERIALIZER": "home.api.v1.serializers.PasswordSerializer", } REST_AUTH_REGISTER_SERIALIZERS = { # Use custom serializer that has no username and matches web signup "REGISTER_SERIALIZER": "home.api.v1.serializers.SignupSerializer", } # Custom user model AUTH_USER_MODEL = "users.User" EMAIL_HOST = env.str("EMAIL_HOST", "smtp.sendgrid.net") EMAIL_HOST_USER = env.str("SENDGRID_USERNAME", "") EMAIL_HOST_PASSWORD = env.str("SENDGRID_PASSWORD", "") EMAIL_PORT = 587 EMAIL_USE_TLS = True # start fcm_django push notifications FCM_DJANGO_SETTINGS = {"FCM_SERVER_KEY": env.str("FCM_SERVER_KEY", "")} # end fcm_django push notifications if DEBUG: # output email to console instead of sending EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
[ "team@crowdbotics.com" ]
team@crowdbotics.com
464c5cad5d003f680a9d218634ceb614aa5b67e1
375fceebffcf4b6a0d9fd8a8b44a743091ab403b
/scheduler/serializers.py
4fe01a141dfc65b6ddcb71c5ff6aa22431535802
[]
no_license
Nextafari/email-microapi-1
c06e031645fdaa85eac015898db4800a0c83bcd7
bd831853a8512f10a5d78d6f93c7f3b72f951259
refs/heads/develop
2022-12-20T08:44:28.905092
2020-07-24T10:49:13
2020-07-24T10:49:13
282,280,619
1
0
null
2020-07-24T17:36:12
2020-07-24T17:36:11
null
UTF-8
Python
false
false
311
py
from rest_framework import serializers, fields from rest_framework.validators import UniqueValidator class EmailSchedulingSerializer(serializers.Serializer): sender = serializers.EmailField() recipient = serializers.EmailField() subject = serializers.CharField() body = serializers.CharField()
[ "phemmylintry@gmail.com" ]
phemmylintry@gmail.com
eabb11f0ea5d6fdb3b2907edd8e5ee2c6ef9d9fe
5a61ba76c770de8469218ff457213e122e08c7d1
/code/at_offer/finding_sorting/coding_interview53_2.py
55664b811beef5e8d3fc5efff8641a455f31d94b
[ "Apache-2.0" ]
permissive
zhangrong1722/interview
6a71af26f08f036a294e36073cb9eb6ca798b993
187a485de0774561eb843d8ee640236adda97b90
refs/heads/master
2020-09-06T08:15:00.229710
2019-12-10T06:32:05
2019-12-10T06:32:05
220,372,777
2
1
null
null
null
null
UTF-8
Python
false
false
1,306
py
""" 题目:0~n-1中缺失的数字 一个长度为n-1的递增排序数组中的所有数字都是唯一的 并且每个数字都在范围0~n-1之内 在范围0~n-1内的n个数字中有且只有一个数字不在该数组中 请找出这个数字 思路:最直观的方法是直接扫描整个数组 此时时间复杂度为O(n) 但是这样显然没有用好递增排序数组这一条件 对于递增排序数组条件 首先想到的就是二分法查找 假设该数字所在位置为m 则在m位置之前 所有元素值和元素下标是相等的 换句话说 这道题就转化为查找第一个元素值和下标不等的元素 """ class Solution(object): def FindMissingNum(self, data): if data is None or len(data) == 0: return -1 left, right, middle = 0, len(data) - 1, 0 while left <= right: middle = (left + right) // 2 if data[middle] != middle: if middle == 0 or (middle - 1 >= 0 and data[middle - 1] == middle - 1): break right = middle - 1 else: left = middle + 1 if middle == len(data) - 1: return -1 else: return data[middle] - 1 s = Solution() print(s.FindMissingNum([0, 1, 2, 3]))
[ "1922525328@qq.com" ]
1922525328@qq.com
e2e89384435695337745af09421a650b0d297d0e
d5bedf2ab61a06497ffe27c166882239b6b38828
/twitter.py
13cdda31d2aa6f4d28d555d44edacecfb9c4b510
[ "MIT" ]
permissive
encima/qself
d317510ff3c4896f980cc747973205de79c4a8cd
d233bab9a12bacee3671395a75ae0090d67f7b56
refs/heads/master
2022-12-10T03:51:53.350876
2018-04-10T12:12:24
2018-04-10T12:12:24
75,976,008
0
0
MIT
2022-12-07T23:44:53
2016-12-08T21:19:24
Python
UTF-8
Python
false
false
45
py
from services import * t = TwitterHandler()
[ "encima@gmail.com" ]
encima@gmail.com
98b6be5a553d408eef6fc7f603d8ae31eb9c3289
67d76057aee86c43d32e0b74f3ac94d521ee03d8
/tests/journal.api/warning_instance.py
de5eca5cdb7db1836b2a933265fa765c7fc5113d
[ "BSD-3-Clause" ]
permissive
jlmaurer/pyre
0f94b1855bf029210f07c528747221751e37687f
6af38a83621d7d6228d147b4bb94f97fbb10f6e2
refs/heads/master
2023-05-25T04:33:19.907452
2020-06-18T14:07:54
2020-06-18T14:07:54
273,362,988
0
0
NOASSERTION
2021-06-10T23:42:14
2020-06-18T23:50:28
null
UTF-8
Python
false
false
986
py
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis <michael.aivazis@para-sim.com> # (c) 1998-2020 all rights reserved def test(): """ Verify the channel initial state """ # get the journal import journal # make a channel channel = journal.warning(name="tests.journal.warning") # verify the channel name assert channel.name == "tests.journal.warning" # the verbosity should be at the default level assert channel.verbosity == 1 # the channel should be active assert channel.active == True # and non fatal assert channel.fatal == False # the page should be empty assert list(channel.page) == [] # verify the metadata assert channel.notes["application"] == "journal" assert channel.notes["channel"] == channel.name assert channel.notes["severity"] == channel.severity # all done return # main if __name__ == "__main__": # run the test test() # end of file
[ "michael.aivazis@para-sim.com" ]
michael.aivazis@para-sim.com
c8ccdd1275b0fff620f06592a09a1611b4072edd
633944f913050debf0764c2a29cf3e88f912670e
/v8/depot_tools/bootstrap-3.8.0b1.chromium.1_bin/python3/lib/python3.8/site-packages/setuptools/_vendor/packaging/specifiers.py
439541a1c9d6cc8280777c3e047c0181b517442b
[ "BSD-3-Clause", "bzip2-1.0.6", "SunPro", "Apache-2.0" ]
permissive
bopopescu/V8-lgtm
0474c2ff39baf754f556ef57619ceae93e7320fd
da307e2f7abfca5fa0e860a809de6cd07fd1b72b
refs/heads/master
2022-02-16T19:10:54.008520
2019-09-25T07:51:13
2019-09-25T07:51:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
113
py
../../../../../../../.cipd/pkgs/2/_current/lib/python3.8/site-packages/setuptools/_vendor/packaging/specifiers.py
[ "jundong.xjd@antfin.com" ]
jundong.xjd@antfin.com
7b52d1d494431a4c038f1ceb34cfb7cb3839d9fa
0b2facfa8d47bceea5bbf969bd1ca86215638cf6
/macop/operators/crossovers/Crossover.py
6569ca739a046e49a798d270ab98fcf1079664a6
[ "MIT" ]
permissive
geoffreyp/macop
37ec5c0ed7913068ee808e63c9c537babed479ca
287df287e23c7e4f07e90dfcc0a99ef247f5c6b5
refs/heads/master
2022-12-29T06:40:11.774347
2020-10-23T10:25:15
2020-10-23T10:25:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
"""Abstract Crossover class """ # module imports from ..Operator import KindOperator, Operator # main mutation class class Crossover(Operator): """Abstract crossover extend from Operator Attributes: kind: {KindOperator} -- specify the kind of operator """ def __init__(self): self.kind = KindOperator.CROSSOVER def apply(self, solution): raise NotImplementedError
[ "contact@jeromebuisine.fr" ]
contact@jeromebuisine.fr
913c5bdce3154f05cbbbcfa96d0b6baa9399ff94
74983098c5de53007bde6052a631845c781b5ba8
/rosenbrock/rosenbrock11/rosenbrock.py
c62ef2c302fa5f03d647d4e23c21139f769b66eb
[]
no_license
numairmansur/Experiments
94ccdd60f4c2cf538fab41556ac72405656c9d77
592f39916461c7a9f7d400fa26f849043d1377ed
refs/heads/master
2021-04-29T12:39:16.845074
2017-02-15T07:36:47
2017-02-15T07:36:47
78,043,284
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
import numpy as np import sys import math import time import csv from hpolib.benchmarks.synthetic_functions import Rosenbrock from time import gmtime, strftime def main(job_id, params): print '!!! Entered Main !!!' print 'Anything printed here will end up in the output directory for job #:', str(job_id) print params f = Rosenbrock() res = f.objective_function([params['x'], params['y']]) print res with open('/home/mansurm/Experiments/rosenbrock/run11.csv','a') as csvfile: writer = csv.writer(csvfile, delimiter=',') writer.writerow([res['main'][0]]) return res['main'][0]
[ "numair.mansur@gmail.com" ]
numair.mansur@gmail.com
0a2507c51ecb2566d2553ecfe5824aa30ba29aea
ecce8a10aabb24019296cebaa46503f91876796f
/football_app/football_app/person/apps.py
b079ffa4b8bab05cace49c41c67355206bf8c753
[]
no_license
Yeldarmt/DJangoFootballApp
28450d60fbd0ec98bdf6d223545e17062442f970
d9568cd48089c0be55217d8aecadf65053b72420
refs/heads/master
2022-11-26T16:19:34.252927
2020-04-26T18:09:52
2020-04-26T18:09:52
237,893,654
0
0
null
2022-11-22T05:28:37
2020-02-03T05:42:24
Python
UTF-8
Python
false
false
100
py
from django.apps import AppConfig class PersonConfig(AppConfig): name = 'football_app.person'
[ "eldarmukhametkazin@gmail.com" ]
eldarmukhametkazin@gmail.com
116e5b4c0274119f4c10ea71c3e8ab0d1ecd97c9
6f9b0f4832f218957bed679a428a2e022482e558
/plato/examples/demo_vgg_screenshot.py
81f11b7eff774d854fd3190b23bc0342054c01f2
[]
no_license
petered/plato
1ee983de87ff7271c93aa6bd1212cd4229e30fa4
a0b5ef356e2d7e3d163b34871513d85abea7e510
refs/heads/master
2021-01-17T00:55:35.059826
2018-02-06T04:23:19
2018-02-06T04:23:19
29,347,512
45
6
null
2017-10-11T06:05:31
2015-01-16T12:27:14
Python
UTF-8
Python
false
false
2,303
py
from artemis.fileman.smart_io import smart_load from artemis.general.should_be_builtins import bad_value from artemis.plotting.db_plotting import dbplot from plato.tools.pretrained_networks.vggnet import get_vgg_net, im2vgginput, get_vgg_label_at import numpy as np import time __author__ = 'peter' import os """ This program scans for photos from the webcam, then processes them with vggnet. It looks for photos in the directory that the "Photo Booth" application on MacOS puts photos from the webcam. The first time processing the image should take ~20s, each time after that ~1s. To Use (only works on Mac) - Open PhotoBooth. - Take a screenshot - A window should pop up showing the image with the label that the network decides on - Repeat """ def get_photo_dir(): return os.path.join(os.path.expanduser('~'), 'Pictures/Photo Booth Library/Pictures') def get_all_photos(): return os.listdir(get_photo_dir()) def get_latest_screenshot(): photodir = get_photo_dir() files = os.listdir(photodir) latest = sorted(files)[-1] full_path = os.path.join(photodir, latest) return full_path def classify(f, im_path): im = smart_load(im_path) print 'Processing image... "%s"' % (im_path, ) inputs = im2vgginput(im) out = f(inputs) amax = np.argmax(out[0]) label = get_vgg_label_at(amax) print 'Done.' dbplot(np.rollaxis(inputs[0], 0, 3)[..., ::-1], 'Photo', title="{label}: {pct}%".format(label = label, pct = out[0, amax, 0, 0]*100)) def demo_photobooth(): old_photos = set(get_all_photos()) f = get_vgg_net().compile(add_test_values = False) print 'Take a screenshot with PhotoBooth' while True: new_photos = set(get_all_photos()).difference(old_photos) if len(new_photos) != 0: classify(f, os.path.join(get_photo_dir(), new_photos.pop())) old_photos = set(get_all_photos()) time.sleep(.1) def demo_file_path(): f = get_vgg_net().compile(add_test_values = False) while True: im_path = raw_input("Enter Image Path: ") classify(f, im_path) if __name__ == '__main__': VERSION = "photobooth" if VERSION == 'photobooth': demo_photobooth() elif VERSION == 'file': demo_file_path() else: bad_value(VERSION)
[ "peter.ed.oconnor@gmail.com" ]
peter.ed.oconnor@gmail.com
2cd2df7866ea1c949be253c9075befe06b30d0a1
b05761d771bb5a85d39d370c649567c1ff3eb089
/venv/lib/python3.10/site-packages/cryptography/hazmat/backends/openssl/decode_asn1.py
d925227a847c48a2045629142175968ce2e42743
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
JawshyJ/Coding_Practice
88c49cab955eab04609ec1003b6b8c20f103fc06
eb6b229d41aa49b1545af2120e6bee8e982adb41
refs/heads/master
2023-02-19T10:18:04.818542
2023-02-06T21:22:58
2023-02-06T21:22:58
247,788,631
4
0
null
null
null
null
UTF-8
Python
false
false
96
py
/home/runner/.cache/pip/pool/9d/2a/ad/80ee4c2557ff51492fc3db5ecf5d338469ec187ab6e0e3f55f618a39ee
[ "37465112+JawshyJ@users.noreply.github.com" ]
37465112+JawshyJ@users.noreply.github.com
fd420e31e11d26664112127c273760178087e758
29f1045821e7a1c3382e3cde5f5103ae95487bcd
/patch.py
c4f6cd962f58eab51fb6dc2d2989c95bb62eb667
[]
no_license
fans656-deprecated/f6-python
9b9b6f2cc0e79b9326c27237e3129f38c9ba4af3
a66311173b5933ad3c800fa4ec95e08e10976275
refs/heads/master
2021-06-17T19:27:51.198664
2017-05-29T01:39:11
2017-05-29T01:39:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,472
py
from ctypes import * from ctypes.wintypes import * LPBYTE = POINTER(BYTE) class STARTUPINFOW(Structure): _fields_ = [ ('cb', DWORD), ('lpReserved', LPWSTR), ('lpDesktop', LPWSTR), ("dwX", DWORD), ("dwY", DWORD), ("dwXSize", DWORD), ("dwYSize", DWORD), ("dwXCountChars", DWORD), ("dwYCountChars", DWORD), ("dwFillAtrribute", DWORD), ("dwFlags", DWORD), ("wShowWindow", WORD), ("cbReserved2", WORD), ("lpReserved2", LPBYTE), ("hStdInput", HANDLE), ("hStdOutput", HANDLE), ("hStdError", HANDLE), ] class PROCESS_INFORMATION(Structure): _fields_ = [ ("hProcess", HANDLE), ("hThread", HANDLE), ("dwProcessId", DWORD), ("dwThreadId", DWORD), ] CreateProcessW = windll.kernel32.CreateProcessW startupinfow = STARTUPINFOW() process_information = PROCESS_INFORMATION() def systemw(cmd): if not isinstance(cmd, unicode): cmd = cmd.decode('mbcs') return CreateProcessW( None, cmd, None, None, 0, None, None, None, byref(startupinfow), byref(process_information), ) if __name__ == '__main__': systemw('calc')
[ "fans656@yahoo.com" ]
fans656@yahoo.com
cf3d44229527ebd0322b902678b749776500845d
018c57d04c6e2743bb2c0f8d2f6cadcccb2e4225
/tensorflow/python/distribute/values.py
9d54f0b1a2f626af3e33395037536c41d9fb6077
[ "Apache-2.0" ]
permissive
danaugrs/tensorflow
1eb0054d774636d884d2f7e06631989e6b5bbbfe
160c6e8ec3dfca6ab62fc479aadef8e7599da388
refs/heads/master
2020-04-24T17:11:46.014529
2019-07-31T17:29:18
2019-07-31T17:29:18
172,138,019
0
0
Apache-2.0
2019-03-05T14:31:05
2019-02-22T21:37:55
C++
UTF-8
Python
false
false
58,485
py
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== """Various classes representing distributed values.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import contextlib import weakref import six from tensorflow.python.distribute import device_util from tensorflow.python.distribute import distribute_lib from tensorflow.python.distribute import distribution_strategy_context from tensorflow.python.distribute import reduce_util from tensorflow.python.eager import context from tensorflow.python.eager import tape from tensorflow.python.framework import ops from tensorflow.python.framework import tensor_util from tensorflow.python.ops import array_ops from tensorflow.python.ops import control_flow_ops from tensorflow.python.ops import gen_resource_variable_ops from tensorflow.python.ops import math_ops from tensorflow.python.ops import variable_scope as vs from tensorflow.python.training import saver from tensorflow.python.training.tracking import base as trackable from tensorflow.python.util import nest def _devices_match(d1, d2): return device_util.canonicalize(d1) == device_util.canonicalize(d2) class DeviceMap(object): """A mapping of replicas & logical device ids to devices.""" @property def all_devices(self): """Returns a tuple of strings with all devices in this DeviceMap.""" raise NotImplementedError("Required for DeviceMap implementations.") @property def devices_by_replica(self): """Returns a tuple `t` where `t[replica]` is the devices for `replica`.""" raise NotImplementedError("Required for DeviceMap implementations.") @property def num_logical_devices(self): """Count of the number of devices each replica may be defined across.""" raise NotImplementedError("Required for DeviceMap implementations.") @property def num_replicas_in_graph(self): """Number of replicas defined in this graph.""" raise NotImplementedError("Required for DeviceMap implementations.") def logical_device_from_values(self, values): """Returns the logical device index `values` is on.""" raise NotImplementedError("Required for DeviceMap implementations.") def logical_to_actual_devices(self, logical_device_id): """Returns sequence of `num_replicas_in_graph` devices.""" raise NotImplementedError("Required for DeviceMap implementations.") def select_for_current_replica(self, values, replica_context): """Select the element of `values` for the current replica.""" raise NotImplementedError("Required for DeviceMap implementations.") def replica_for_device(self, device): """Return the replica id containing `device`.""" raise NotImplementedError("Required for DeviceMap implementations.") def select_for_device(self, values, device): """Select the element of `values` to access from `device`.""" raise NotImplementedError("Required for DeviceMap implementations.") def is_device_in_replica(self, device, replica_id): """Returns whether `device` is a member of replica `replica_id`.""" raise NotImplementedError("Required for DeviceMap implementations.") class SingleDeviceMap(DeviceMap): """A device map for 1 non-computation device. Use `SingleDeviceMap` when the device does not correspond to some replica of the computation. For computation devices, use `ReplicaDeviceMap` below (even if there is only a single device in the map). """ def __init__(self, device): """Initialize a `SingleDeviceMap`. Args: device: A string device. """ assert isinstance(device, six.string_types) self._device = device_util.canonicalize(device) self._devices = (self._device,) @property def all_devices(self): return self._devices @property def devices_by_replica(self): raise ValueError("SingleDeviceMap not indexed by replicas") @property def num_logical_devices(self): return 1 @property def num_replicas_in_graph(self): return 1 def logical_device_from_values(self, values): del values return 0 def logical_to_actual_devices(self, logical_device_id): assert logical_device_id == 0 return self._devices def select_for_current_replica(self, values, replica_context): assert len(values) == 1 del replica_context return values[0] def replica_for_device(self, device): raise ValueError("SingleDeviceMap not indexed by replicas") def select_for_device(self, values, device): assert len(values) == 1 if self._device != device: raise ValueError("Device %s not found in %s (current device %s)" % (device, self._devices, device_util.current())) return values[0] def is_device_in_replica(self, device, replica_id): raise ValueError("SingleDeviceMap not indexed by replicas") def __repr__(self): return "%s(%r)" % (self.__class__.__name__, self._device) class ReplicaDeviceMap(DeviceMap): """A device map for 1 device per replica.""" def __init__(self, devices): """Initialize a `ReplicaDeviceMap`. Args: devices: `devices[i]` is the string device for replica `i`. """ self._devices = tuple(device_util.canonicalize(d) for d in devices) if len(set(self._devices)) != len(self._devices): raise ValueError("Duplicate devices in %s, after canonicalization: %s" % (devices, self._devices)) self._device_to_replica = {d: r for r, d in enumerate(self._devices)} @property def all_devices(self): return self._devices @property def devices_by_replica(self): return ((d,) for d in self._devices) @property def num_logical_devices(self): return 1 @property def num_replicas_in_graph(self): return len(self._devices) def logical_device_from_values(self, values): del values return 0 def logical_to_actual_devices(self, logical_device_id): assert logical_device_id == 0 return self._devices def select_for_current_replica(self, values, replica_context): assert len(values) == len(self._devices) replica_id = replica_context.replica_id_in_sync_group if not isinstance(replica_id, int): replica_id = tensor_util.constant_value(replica_id) return values[replica_id] def replica_for_device(self, device): return self._device_to_replica.get(device) def select_for_device(self, values, device): assert len(values) == len(self._devices) replica_id = self._device_to_replica.get(device) if replica_id is None: raise ValueError("Device %s not found in %s (current device %s)" % (device, self._devices, device_util.current())) return values[replica_id] def is_device_in_replica(self, device, replica_id): return _devices_match(device, self._devices[replica_id]) def __str__(self): return "[%s]" % (", ".join(self._devices)) def __repr__(self): return "%s([%s])" % (self.__class__.__name__, ", ".join(repr(d) for d in self._devices)) LogicalDeviceSpec = collections.namedtuple( "LogicalDeviceSpec", ("device_map", "logical_device")) class DistributedValues(object): """Holds a map from device to values. Either PerReplica or Mirrored.""" def __init__(self, device_map, values, logical_device=None): assert isinstance(device_map, DeviceMap) self._device_map = device_map self._values = tuple(values) if logical_device is None: logical_device = device_map.logical_device_from_values(self._values) self._logical_device = logical_device # TODO(josh11b): Split this into two functions, one with device, one without. def get(self, device=None): """Returns the value for the current device or raises a ValueError.""" if device is None: replica_context = distribution_strategy_context.get_replica_context() if replica_context: return self._device_map.select_for_current_replica( self._values, replica_context) else: device = distribute_lib.get_update_device() if device is None: return self._get_cross_replica() device = device_util.canonicalize(device) return self._device_map.select_for_device(self._values, device) @property def primary(self): """Returns a representative component.""" return self._values[0] @property def devices(self): return self._device_map.logical_to_actual_devices(self._logical_device) @property def logical_device(self): return self._logical_device @property def device_map(self): return self._device_map # TODO(josh11b): Replace unwrap with this? @property def values(self): return self._values @property def is_tensor_like(self): for v in self._values: if not tensor_util.is_tensor(v): return False return True def __str__(self): devices = self.devices assert len(self._values) == len(devices) debug_str = ",\n".join(" %d %s: %s" % (i, devices[i], self._values[i]) for i in range(len(devices))) return "%s:{\n%s\n}" % (self.__class__.__name__, debug_str) def __repr__(self): devices = self.devices assert len(self._values) == len(devices) debug_repr = ",\n".join(" %d %s: %r" % (i, devices[i], self._values[i]) for i in range(len(devices))) return "%s:{\n%s\n}" % (self.__class__.__name__, debug_repr) # NOTE(josh11b,apassos): It would be great if we could inspect the values this was # initialized with and use that to generate the overloaded operators here. # Unfortunately, Python's rules for special methods don't allow this, see # https://docs.python.org/3/reference/datamodel.html#special-method-names # "if a class defines a method named __getitem__(), and x is an instance of # this class, then x[i] is roughly equivalent to type(x).__getitem__(x, i)." # In particular, these special methods don't go through __getattr__, and # it will only use those methods if they are defined in the class, not the # object. class DistributedDelegate(DistributedValues): """A map from device to values; acts as the same type as the values.""" def __getattr__(self, name): # TODO(priyag): This needs to be made robust against pitfalls from mix use # __getattr__ and @property. See b/120402273. return getattr(self.get(), name) # pylint: disable=multiple-statements def __add__(self, o): return self.get() + o def __radd__(self, o): return o + self.get() def __sub__(self, o): return self.get() - o def __rsub__(self, o): return o - self.get() def __mul__(self, o): return self.get() * o def __rmul__(self, o): return o * self.get() def __truediv__(self, o): return self.get() / o def __rtruediv__(self, o): return o / self.get() def __floordiv__(self, o): return self.get() // o def __rfloordiv__(self, o): return o // self.get() def __mod__(self, o): return self.get() % o def __rmod__(self, o): return o % self.get() def __lt__(self, o): return self.get() < o def __le__(self, o): return self.get() <= o def __gt__(self, o): return self.get() > o def __ge__(self, o): return self.get() >= o def __and__(self, o): return self.get() & o def __rand__(self, o): return o & self.get() def __or__(self, o): return self.get() | o def __ror__(self, o): return o | self.get() def __xor__(self, o): return self.get() ^ o def __rxor__(self, o): return o ^ self.get() def __getitem__(self, o): return self.get()[o] def __pow__(self, o, modulo=None): return pow(self.get(), o, modulo) def __rpow__(self, o): return pow(o, self.get()) def __invert__(self): return ~self.get() def __neg__(self): return -self.get() def __abs__(self): return abs(self.get()) def __div__(self, o): try: return self.get().__div__(o) except AttributeError: # See https://docs.python.org/3/library/constants.html#NotImplemented return NotImplemented def __rdiv__(self, o): try: return self.get().__rdiv__(o) except AttributeError: # See https://docs.python.org/3/library/constants.html#NotImplemented return NotImplemented def __matmul__(self, o): try: return self.get().__matmul__(o) except AttributeError: # See https://docs.python.org/3/library/constants.html#NotImplemented return NotImplemented def __rmatmul__(self, o): try: return self.get().__rmatmul__(o) except AttributeError: # See https://docs.python.org/3/library/constants.html#NotImplemented return NotImplemented # TODO(josh11b): Even more operator overloads. class PerReplica(DistributedValues): """Holds a map from device to unsynchronized values.""" pass # Note that unlike PerReplica, Mirrored values inherit from # DistributedDelegate and so can be used directly in cross-replica mode. class Mirrored(DistributedDelegate): """Holds a map from device to values which are kept in sync.""" def _get_cross_replica(self): device = device_util.canonicalize(device_util.current()) replica_id = self._device_map.replica_for_device(device) if replica_id is None: return self.primary return self._values[replica_id] def _as_graph_element(self): obj = self.get() conv_fn = getattr(obj, "_as_graph_element", None) if conv_fn and callable(conv_fn): return conv_fn() return obj def _assign_on_device(device, variable, tensor): with ops.device(device): return variable.assign(array_ops.identity(tensor)) def _assert_strategy(strategy): if not distribution_strategy_context.has_strategy(): raise RuntimeError( 'Need to be inside "with strategy.scope()" for %s' % (strategy,)) current_strategy = distribution_strategy_context.get_strategy() if current_strategy is not strategy: raise RuntimeError( "Mixing different tf.distribute.Strategy objects: %s is not %s" % (current_strategy, strategy)) DistributedVarOp = collections.namedtuple( "DistributedVarOp", ["name", "graph", "type"]) class DistributedVariable(DistributedDelegate): """Holds a map from device to variables.""" # TODO(josh11b): Support changing the set of variables if e.g. if new # devices are joining or a device is to leave. def __init__(self, strategy, device_map, values, logical_device=None): self._distribute_strategy = strategy super(DistributedVariable, self).__init__( device_map, values, logical_device=logical_device) self._common_name = self.primary.name.split(":")[0] # Use a weakref to make it easy to map from the contained values # to the container without introducing a reference cycle. for v in values: v._distributed_container = weakref.ref(self) # pylint: disable=protected-access # tf.keras keeps track of variables initialized using this attribute. When # tf.keras gets the default session, it initializes all uninitialized vars. # We need to make _keras_initialized a member of DistributedVariable because # without this it will use `__getattr__` which will delegate to a component # variable. self._keras_initialized = False # Typically, a `DistributedVariable`'s initializer is composed of the # initializers of the components variables. However, in some cases, such as # when restoring from a checkpoint, we may set the _initializer_op # property on the entire `DistributedVariable`. self._initializer_op = None def is_initialized(self, name=None): """Identifies if all the component variables are initialized. Args: name: Name of the final `logical_and` op. Returns: The op that evaluates to True or False depending on if all the component variables are initialized. """ result = self.primary.is_initialized() # We iterate through the list of values except the last one to allow us to # name the final `logical_and` op the same name that is passed by the user # to the `is_initialized` op. For distributed variables, the # `is_initialized` op is a `logical_and` op. for v in self._values[1:-1]: result = math_ops.logical_and(result, v.is_initialized()) result = math_ops.logical_and(result, self._values[-1].is_initialized(), name=name) return result @property def initializer(self): if self._initializer_op: init_op = self._initializer_op else: # return grouped ops of all the var initializations of component values of # the mirrored variable init_op = control_flow_ops.group(tuple( v.initializer for v in self._values)) return init_op def _get_closest(self): """Return member in the same replica if possible, else the primary.""" replica_context = distribution_strategy_context.get_replica_context() if replica_context: return self._device_map.select_for_current_replica( self._values, replica_context) device = distribute_lib.get_update_device() if device is None: device = device_util.canonicalize(device_util.current()) replica_id = self._device_map.replica_for_device(device) if replica_id is None: return self.primary return self._values[replica_id] def initialized_value(self): return self._get_closest().initialized_value() @property def initial_value(self): return self._get_closest().initial_value @property def graph(self): return self.primary.graph @property def _shared_name(self): return self._common_name @property def _unique_id(self): return self.primary._unique_id # pylint: disable=protected-access @property def _graph_key(self): """Lets Optimizers know which graph this variable is from.""" return self.primary._graph_key # pylint: disable=protected-access @property def name(self): return self.primary.name @property def dtype(self): return self.primary.dtype @property def shape(self): return self.primary.shape @property def distribute_strategy(self): return self._distribute_strategy def get_shape(self): return self.primary.get_shape() def to_proto(self, export_scope=None): return self.primary.to_proto(export_scope=export_scope) @property def op(self): # We want cross-replica code that does some var.op.X calls # to work (even if the current device isn't in self.devices), but # other uses of var.op in a cross-replica context to fail. if distribution_strategy_context.in_cross_replica_context(): return DistributedVarOp(self.primary.op.name, self.primary.op.graph, self.primary.op.type) return self.get().op @property def _in_graph_mode(self): return self.primary._in_graph_mode # pylint: disable=protected-access def read_value(self): return self._distribute_strategy.extended.read_var(self) def value(self): return self._get_closest().value() def _should_act_as_resource_variable(self): """Pass resource_variable_ops.is_resource_variable check.""" pass ops.register_dense_tensor_like_type(DistributedVariable) def _validate_colocate_extended(v, extended): variable_strategy = v._distribute_strategy # pylint: disable=protected-access if variable_strategy.extended is not extended: raise ValueError( "`colocate_vars_with` must only be passed a variable created in this " "tf.distribute.Strategy.scope(), not %s created in scope: %s" % (v, variable_strategy)) def validate_colocate_distributed_variable(v, extended): if not isinstance(v, DistributedVariable): raise ValueError( "`colocate_vars_with` must only be passed a variable created in this " "tf.distribute.Strategy.scope(), not: %r" % (v,)) _validate_colocate_extended(v, extended) def validate_colocate_tpu_variable(v, extended): if not isinstance(v, TPUMirroredVariable): raise ValueError( "`colocate_vars_with` must only be passed a variable created in this " "tf.distribute.Strategy.scope(), not: %r" % (v,)) _validate_colocate_extended(v, extended) def validate_colocate(v, extended): if not hasattr(v, "_distribute_strategy"): raise ValueError( "`colocate_vars_with` must only be passed a variable created in this " "tf.distribute.Strategy.scope(), not: %r" % (v,)) _validate_colocate_extended(v, extended) def _apply_aggregation(strategy, value, aggregation, destinations): if aggregation == vs.VariableAggregation.ONLY_FIRST_REPLICA: return strategy.extended.broadcast_to(strategy.unwrap(value)[0], destinations=destinations) reduce_op = reduce_util.ReduceOp.from_variable_aggregation(aggregation) return strategy.extended.reduce_to(reduce_op, value, destinations) class _MirroredSaveable(saver.BaseSaverBuilder.ResourceVariableSaveable): """Class for defining how to restore a MirroredVariable.""" def __init__(self, mirrored_variable, primary_variable, name): self._mirrored_variable = mirrored_variable super(_MirroredSaveable, self).__init__(primary_variable, "", name) def restore(self, restored_tensors, restored_shapes): """Restore the same value into all variables.""" tensor, = restored_tensors return control_flow_ops.group(tuple( _assign_on_device(v.device, v, tensor) for v in self._mirrored_variable.values)) class MirroredVariable(DistributedVariable, Mirrored, trackable.Trackable): """Holds a map from device to variables whose values are kept in sync.""" def __init__( self, strategy, device_map, values, aggregation, logical_device=None): super(MirroredVariable, self).__init__( strategy, device_map, values, logical_device=logical_device) self._aggregation = aggregation # The arguments to update() are automatically unwrapped so the update() # function would normally see regular variables, not MirroredVariables. # However, the update function can still operate on wrapped MirroredVariables # through object members, captured arguments, etc. This is more likely in an # update_non_slot() function (like OptimizerV2._finish), which can # update several non-slot variables in one call. def _assign_func(self, *args, **kwargs): _assert_strategy(self._distribute_strategy) f = kwargs.pop("f") if distribution_strategy_context.in_cross_replica_context(): update_device = distribute_lib.get_update_device() if update_device is not None: # We are calling an assign function on the mirrored variable in an # update context. v = self.get(device=update_device) return f(v, *args, **kwargs) # We are calling assign on the mirrored variable in cross replica context, # use `strategy.extended.update()` to update the variable. return self._distribute_strategy.extended.update( self, f, args=args, kwargs=kwargs) else: _assert_replica_context(self._distribute_strategy) # We are calling an assign function on the mirrored variable in replica # context. # We reduce the value we want to assign/add/sub. More details about how we # handle the different use cases can be found in the _reduce method. # We call the function on each of the mirrored variables with the reduced # value. if self._aggregation == vs.VariableAggregation.NONE: raise ValueError("You must specify an aggregation method to update a " "MirroredVariable in Replica Context.") def merge_fn(strategy, value, *other_args, **other_kwargs): v = _apply_aggregation(strategy, value, self._aggregation, self) return strategy.extended.update( self, f, args=(v,) + other_args, kwargs=other_kwargs) return distribution_strategy_context.get_replica_context().merge_call( merge_fn, args=args, kwargs=kwargs) def assign_sub(self, *args, **kwargs): assign_sub_fn = lambda var, *a, **kw: var.assign_sub(*a, **kw) return self._assign_func(f=assign_sub_fn, *args, **kwargs) def assign_add(self, *args, **kwargs): assign_add_fn = lambda var, *a, **kw: var.assign_add(*a, **kw) return self._assign_func(f=assign_add_fn, *args, **kwargs) def assign(self, *args, **kwargs): assign_fn = lambda var, *a, **kw: var.assign(*a, **kw) return self._assign_func(f=assign_fn, *args, **kwargs) @property def aggregation(self): return self._aggregation def _get_cross_replica(self): device = device_util.canonicalize(device_util.current()) replica_id = self._device_map.replica_for_device(device) if replica_id is None: return array_ops.identity(self.primary) return array_ops.identity(self._values[replica_id]) def _as_graph_element(self): # pylint: disable=protected-access if distribution_strategy_context.in_cross_replica_context(): return self.primary._as_graph_element() return self.get()._as_graph_element() def _gather_saveables_for_checkpoint(self): """Overrides Trackable method. This allows both name-based and object-based save and restore of MirroredVariables. Returns: A dictionary mapping attribute names to `SaveableObject` factories. """ def _saveable_factory(name=self._common_name): return _MirroredSaveable(self, self.primary, name) return {trackable.VARIABLE_VALUE_KEY: _saveable_factory} # Register a conversion function which reads the value of the variable, # allowing instances of the class to be used as tensors. def _tensor_conversion_mirrored(var, dtype=None, name=None, as_ref=False): # Try to avoid assignments to and other mutations of MirroredVariable # state except through a DistributionStrategy.extended.update() call. assert not as_ref return ops.internal_convert_to_tensor( var.get(), dtype=dtype, name=name, as_ref=as_ref) ops.register_tensor_conversion_function(MirroredVariable, _tensor_conversion_mirrored) def _enclosing_tpu_context(): # pylint: disable=protected-access tpu_context = ops.get_default_graph()._get_control_flow_context() # pylint: enable=protected-access while tpu_context is not None and not isinstance( tpu_context, control_flow_ops.XLAControlFlowContext): tpu_context = tpu_context.outer_context return tpu_context # TODO(jhseu): Deduplicate code. We copy code because we don't want to # inherit from DistributedDelegate. DistributedDelegate will not work in a # tpu.replicate() because it assumes that you're in a device context where you # can operate on a single version of the variable, but a tpu.replicate() # operates on all variables and is replicated during a rewrite pass. class TPUMirroredVariable(trackable.Trackable): """Holds a map from device to TPU variables whose values are kept in sync.""" def __init__( self, strategy, device_map, values, aggregation, logical_device=None): assert isinstance(device_map, DeviceMap) self._distribute_strategy = strategy self._device_map = device_map self._values = tuple(values) if logical_device is None: logical_device = device_map.logical_device_from_values(self._values) self._logical_device = logical_device # Use a weakref to make it easy to map from the contained values # to the container without introducing a reference cycle. for v in self._values: v._mirrored_container = weakref.ref(self) # pylint: disable=protected-access self._common_name = self.primary.name.split(":")[0] self._aggregation = aggregation # Needed for GradientTape self._trainable = self.primary.trainable # Typically like `DistributedVariable`, a `TPUMirroredVariable`'s # initializer is composed of the initializers of the components variables. # However, in some cases, such as when restoring from a checkpoint, we may # set the _initializer_op property on the entire `TPUMirroredVariable`. self._initializer_op = None def _get(self, device=None): """Returns the value for the current device or raises a ValueError.""" if device is None: replica_context = distribution_strategy_context.get_replica_context() if replica_context: return self._device_map.select_for_current_replica( self._values, replica_context) else: device = distribute_lib.get_update_device() if device is None: return self._get_cross_replica() device = device_util.canonicalize(device) return self._device_map.select_for_device(self._values, device) @property def primary(self): """Returns a representative component.""" return self._values[0] @property def devices(self): return self._device_map.logical_to_actual_devices(self._logical_device) @property def logical_device(self): return self._logical_device @property def device_map(self): return self._device_map # TODO(josh11b): Replace unwrap with this? @property def values(self): return self._values @property def distribute_strategy(self): return self._distribute_strategy # pylint: disable=multiple-statements def __add__(self, o): return self.read_value() + o def __radd__(self, o): return o + self.read_value() def __sub__(self, o): return self.read_value() - o def __rsub__(self, o): return o - self.read_value() def __mul__(self, o): return self.read_value() * o def __rmul__(self, o): return o * self.read_value() def __truediv__(self, o): return self.read_value() / o def __rtruediv__(self, o): return o / self.read_value() def __floordiv__(self, o): return self.read_value() // o def __rfloordiv__(self, o): return o // self.read_value() def __mod__(self, o): return self.read_value() % o def __rmod__(self, o): return o % self.read_value() def __lt__(self, o): return self.read_value() < o def __le__(self, o): return self.read_value() <= o def __gt__(self, o): return self.read_value() > o def __ge__(self, o): return self.read_value() >= o def __and__(self, o): return self.read_value() & o def __rand__(self, o): return o & self.read_value() def __or__(self, o): return self.read_value() | o def __ror__(self, o): return o | self.read_value() def __xor__(self, o): return self.read_value() ^ o def __rxor__(self, o): return o ^ self.read_value() def __getitem__(self, o): return self.read_value()[o] def __pow__(self, o, modulo=None): return pow(self.read_value(), o, modulo) def __rpow__(self, o): return pow(o, self.read_value()) def __invert__(self): return ~self.read_value() def __neg__(self): return -self.read_value() def __abs__(self): return abs(self.read_value()) def __div__(self, o): try: return self.read_value().__div__(o) except AttributeError: # See https://docs.python.org/3/library/constants.html#NotImplemented return NotImplemented def __rdiv__(self, o): try: return self.read_value().__rdiv__(o) except AttributeError: # See https://docs.python.org/3/library/constants.html#NotImplemented return NotImplemented def __matmul__(self, o): try: return self.read_value().__matmul__(o) except AttributeError: # See https://docs.python.org/3/library/constants.html#NotImplemented return NotImplemented def __rmatmul__(self, o): try: return self.read_value().__rmatmul__(o) except AttributeError: # See https://docs.python.org/3/library/constants.html#NotImplemented return NotImplemented def __str__(self): devices = self.devices debug_str = ",\n".join(" %d %s: %s" % (i, devices[i], self._values[i]) for i in range(len(devices))) return "%s:{\n%s\n}" % (self.__class__.__name__, debug_str) def __repr__(self): devices = self.devices debug_repr = ",\n".join(" %d %s: %r" % (i, devices[i], self._values[i]) for i in range(len(devices))) return "%s:{\n%s\n}" % (self.__class__.__name__, debug_repr) @property def handle(self): # If we're in a tpu.rewrite(), return the replicated handle. tpu_context = _enclosing_tpu_context() if tpu_context is not None: return tpu_context.get_replicated_var_handle( self._common_name, self._values) device = distribute_lib.get_update_device() if device is None: return self.primary.handle return self._get(device=device).handle @property def device(self): return self.handle.device def eval(self, session=None): return self.primary.eval(session) # The arguments to update() are automatically unwrapped so the update() # function would normally see regular variables, not MirroredVariables. # However, the update function can still operate on wrapped MirroredVariables # through object members, captured arguments, etc. This is more likely in an # update_non_slot() function (like OptimizerV2._finish), which can # update several non-slot variables in one call. def _assign_func(self, *args, **kwargs): _assert_strategy(self._distribute_strategy) f = kwargs.pop("f") if distribution_strategy_context.in_cross_replica_context(): if _enclosing_tpu_context() is not None: return self._distribute_strategy.extended.update( self, f, args=args, kwargs=kwargs) update_device = distribute_lib.get_update_device() # We are calling update on the mirrored variable in cross replica context. if update_device is not None: # We are calling an assign function on the mirrored variable in cross # replica context. v = self._get(device=update_device) return f(v, *args, **kwargs) return self._distribute_strategy.extended.update( self, f, args=args, kwargs=kwargs) else: _assert_replica_context(self._distribute_strategy) # We are calling an assign function on the mirrored variable in replica # context. # We reduce the value we want to assign/add/sub. More details about how we # handle the different use cases can be found in the _reduce method. # We call the function on each of the mirrored variables with the reduced # value. if self._aggregation == vs.VariableAggregation.NONE: raise ValueError("You must specify an aggregation method to update a " "TPUMirroredVariable in Replica Context.") def merge_fn(strategy, value, *other_args, **other_kwargs): v = _apply_aggregation(strategy, value, self._aggregation, self) return strategy.extended.update( self, f, args=(v,) + other_args, kwargs=other_kwargs) return distribution_strategy_context.get_replica_context().merge_call( merge_fn, args=args, kwargs=kwargs) @contextlib.contextmanager def _handle_graph(self, handle): # Note: might have an eager tensor but not be executing eagerly when # building functions. if (context.executing_eagerly() or isinstance(handle, ops.EagerTensor) or ops.has_default_graph()): yield else: with handle.graph.as_default(): yield @property def trainable(self): return self._trainable def _read_variable_op(self, parent_op=None): if self.trainable: tape.variable_accessed(self) if parent_op is not None: with ops.control_dependencies([parent_op]): return gen_resource_variable_ops.read_variable_op( self.handle, self.dtype) return gen_resource_variable_ops.read_variable_op( self.handle, self.dtype) def read_value(self): return self._read_variable_op() def assign_sub(self, *args, **kwargs): def assign_sub_fn(var, delta, *ar, **kw): del ar name = kw.pop("name", None) read_value = kw.pop("read_value", True) with self._handle_graph(var.handle): op = gen_resource_variable_ops.assign_sub_variable_op( var.handle, ops.convert_to_tensor(delta, dtype=self.dtype), name=name) if read_value: return self._read_variable_op(parent_op=op) return op return self._assign_func(f=assign_sub_fn, *args, **kwargs) def assign_add(self, *args, **kwargs): def assign_add_fn(var, delta, *ar, **kw): del ar name = kw.pop("name", None) read_value = kw.pop("read_value", True) with self._handle_graph(var.handle): op = gen_resource_variable_ops.assign_add_variable_op( var.handle, ops.convert_to_tensor(delta, dtype=self.dtype), name=name) if read_value: return self._read_variable_op(parent_op=op) return op return self._assign_func(f=assign_add_fn, *args, **kwargs) def assign(self, *args, **kwargs): def assign_fn(var, value, *ar, **kw): del ar name = kw.pop("name", None) read_value = kw.pop("read_value", True) with self._handle_graph(var.handle): op = gen_resource_variable_ops.assign_variable_op( var.handle, ops.convert_to_tensor(value, dtype=self.dtype), name=name) if read_value: return self._read_variable_op(parent_op=op) return op return self._assign_func(f=assign_fn, *args, **kwargs) @property def aggregation(self): return self._aggregation @property def constraint(self): return None @property def initializer(self): if self._initializer_op: init_op = self._initializer_op else: init_op = control_flow_ops.group(tuple( v.initializer for v in self._values)) return init_op @property def graph(self): return self.primary.graph @property def _shared_name(self): return self._common_name @property def _unique_id(self): return self.primary._unique_id # pylint: disable=protected-access @property def name(self): return self.primary.name @property def dtype(self): return self.primary.dtype @property def shape(self): return self.primary.shape def get_shape(self): return self.primary.get_shape() def to_proto(self, export_scope=None): return self.primary.to_proto(export_scope=export_scope) def _get_cross_replica(self): device = device_util.canonicalize(device_util.current()) replica = self._device_map.replica_for_device(device) if replica is None: return self.primary return self._values[replica] def _as_graph_element(self): # pylint: disable=protected-access if distribution_strategy_context.in_cross_replica_context(): return self.primary._as_graph_element() return self._read_variable_op() def _gather_saveables_for_checkpoint(self): """Overrides Trackable method. This allows both name-based and object-based save and restore of MirroredVariables. Returns: A dictionary mapping attribute names to `SaveableObject` factories. """ def _saveable_factory(name=self._common_name): return _MirroredSaveable(self, self.primary, name) return {trackable.VARIABLE_VALUE_KEY: _saveable_factory} def _should_act_as_resource_variable(self): """Pass resource_variable_ops.is_resource_variable check.""" pass # Needed to pass ResourceVariable checks. @property def op(self): return self.primary.op # pylint: disable=protected-access @property def _save_slice_info(self): return self.primary._save_slice_info def _get_save_slice_info(self): return self.primary._get_save_slice_info() def _set_save_slice_info(self, save_slice_info): return self.primary._set_save_slice_info(save_slice_info) # pylint: enable=protected-access @property def _in_graph_mode(self): return self.primary._in_graph_mode # pylint: disable=protected-access def _dense_var_to_tensor(self, dtype=None, name=None, as_ref=False): """Converts a variable to a tensor.""" # pylint: disable=protected-access if _enclosing_tpu_context() is None: return self._get()._dense_var_to_tensor(dtype, name, as_ref) # pylint: enable=protected-access if dtype is not None and dtype != self.dtype: return math_ops.cast(self.read_value(), dtype) if as_ref: return self.handle else: return self.read_value() def is_initialized(self, name=None): """Identifies if all the component variables are initialized. Args: name: Name of the final `logical_and` op. Returns: The op that evaluates to True or False depending on if all the component variables are initialized. """ # TODO(jhseu): Do we need TPU context implementation? result = self.primary.is_initialized() # We iterate through the list of values except the last one to allow us to # name the final `logical_and` op the same name that is passed by the user # to the `is_initialized` op. For distributed variables, the # `is_initialized` op is a `logical_and` op. for v in self._values[1:-1]: result = math_ops.logical_and(result, v.is_initialized()) result = math_ops.logical_and(result, self._values[-1].is_initialized(), name=name) return result # Register a conversion function which reads the value of the variable, # allowing instances of the class to be used as tensors. def _tensor_conversion_tpu_mirrored(var, dtype=None, name=None, as_ref=False): return var._dense_var_to_tensor(dtype=dtype, name=name, as_ref=as_ref) # pylint: disable=protected-access ops.register_tensor_conversion_function(TPUMirroredVariable, _tensor_conversion_tpu_mirrored) ops.register_dense_tensor_like_type(TPUMirroredVariable) class _SyncOnReadSaveable(saver.BaseSaverBuilder.SaveableObject): """Class for defining how to restore a SyncOnReadVariable.""" def __init__(self, sync_on_read_variable, name): self._sync_on_read_variable = sync_on_read_variable # We use a callable so that we don't have to evaluate this expression # in the case where we are trying to restore instead of save. def tensor(): strategy = sync_on_read_variable._distribute_strategy # pylint: disable=protected-access return strategy.extended.read_var(sync_on_read_variable) spec = saver.BaseSaverBuilder.SaveSpec( tensor=tensor, slice_spec="", name=name, dtype=sync_on_read_variable.dtype) super(_SyncOnReadSaveable, self).__init__(tensor, [spec], name) def restore(self, restored_tensors, restored_shapes): """Restore the same value into all variables.""" tensor, = restored_tensors return self._sync_on_read_variable.assign(tensor) def _assert_replica_context(strategy): replica_context = distribution_strategy_context.get_replica_context() if not replica_context: raise RuntimeError( "Replica-local variables may only be assigned in a replica context.") if replica_context.strategy is not strategy: raise RuntimeError( "Replica-local variables may only be assigned in a replica context.") class SyncOnReadVariable(DistributedVariable, PerReplica, trackable.Trackable): """Holds a map from device to variables whose values are reduced on save.""" def __init__( self, strategy, device_map, values, aggregation, logical_device=None): self._aggregation = aggregation super(SyncOnReadVariable, self).__init__( strategy, device_map, values, logical_device=logical_device) def assign_sub(self, *args, **kwargs): _assert_replica_context(self._distribute_strategy) return self.get().assign_sub(*args, **kwargs) def assign_add(self, *args, **kwargs): _assert_replica_context(self._distribute_strategy) return self.get().assign_add(*args, **kwargs) def assign(self, *args, **kwargs): if distribution_strategy_context.in_cross_replica_context(): # To preserve the sum across save and restore, we have to divide the # total across all devices when restoring a variable that was summed # when saving. tensor = args[0] if self._aggregation == vs.VariableAggregation.SUM: tensor *= 1. / len(self.devices) return control_flow_ops.group(tuple( _assign_on_device(v.device, v, tensor) for v in self._values)) else: _assert_replica_context(self._distribute_strategy) return self.get().assign(*args, **kwargs) @property def aggregation(self): return self._aggregation def _get_cross_replica(self): if self._aggregation == vs.VariableAggregation.ONLY_FIRST_REPLICA: return self.primary return self._distribute_strategy.reduce( reduce_util.ReduceOp.from_variable_aggregation(self.aggregation), self) def _as_graph_element(self): # pylint: disable=protected-access if distribution_strategy_context.in_cross_replica_context(): return self._get_cross_replica() return self.get()._as_graph_element() def _gather_saveables_for_checkpoint(self): """Overrides Trackable method. This allows both name-based and object-based save and restore of `SyncOnReadVariable`s. Returns: A dictionary mapping attribute names to `SaveableObject` factories. """ def _saveable_factory(name=self._common_name): return _SyncOnReadSaveable(self, name) return {trackable.VARIABLE_VALUE_KEY: _saveable_factory} # Register a conversion function for SyncOnReadVariable which allows as_ref to # be true. def _tensor_conversion_sync_on_read(var, dtype=None, name=None, as_ref=False): return ops.internal_convert_to_tensor( var.get(), dtype=dtype, name=name, as_ref=as_ref) ops.register_tensor_conversion_function(SyncOnReadVariable, _tensor_conversion_sync_on_read) def regroup(device_map, values, wrap_class=PerReplica): """Makes a nest per-replica into a nest of PerReplica/Mirrored values.""" assert isinstance(device_map, DeviceMap) assert len(values) == device_map.num_replicas_in_graph v0 = values[0] if isinstance(v0, list): for v in values[1:]: assert isinstance(v, list) assert len(v) == len(v0), ("len(v) == %d, len(v0) == %d, v: %s, v0: %s" % (len(v), len(v0), v, v0)) return [regroup(device_map, tuple(v[i] for v in values), wrap_class) for i in range(len(v0))] if isinstance(v0, tuple): for v in values[1:]: assert isinstance(v, tuple) assert len(v) == len(v0) regrouped_tuple = tuple( regroup(device_map, tuple(v[i] for v in values), wrap_class) for i in range(len(v0))) if hasattr(v0, "_fields"): # This tuple is in fact a namedtuple! Create a new namedtuple instance # and initialize it with the regrouped values: assert hasattr(type(v0), "_make") return type(v0)._make(regrouped_tuple) else: return regrouped_tuple if isinstance(v0, dict): v0keys = set(v0.keys()) for v in values[1:]: assert isinstance(v, dict), ("v[0]: %r v[i]: %r" % (v0, v)) assert set(v.keys()) == v0keys, ("v[0].keys: %s v[i].keys: %s" % (v0keys, set(v.keys()))) return {key: regroup(device_map, tuple(v[key] for v in values), wrap_class) for key in v0keys} # If exactly the same object across all devices, return it unwrapped. same_id = True for v in values[1:]: if v is not v0: same_id = False break # Consider three cases where same_id is true: # * If v0 is a DistributedVariable (a MirroredVariable or # SyncOnReadVariable, and same_id means it is the same across all # devices), we want to return it. We check DistributedVariable # specifically since it can look like it has a # _distributed_container member since its members do. # * If v0 is a member of a distributed variable, in which case # hasattr(v0, "_distributed_container") is true, we want to # return the DistributedVariable that contains it using the # _distributed_container logic below. This case can trigger # same_id when there is only one device. # * In any other situation, same_id means we return v0. if same_id and (isinstance(v0, DistributedVariable) or not hasattr(v0, "_distributed_container")): return v0 # Detect the case where each device has a parallel component of the # same MirroredVariable (or SyncOnReadVariable). In this case we # want to return the containing MirroredVariable, after a bunch of # sanity checking. In particular, each component should have the # same container, and the devices of the variables should match the # keys of the per-replica dictionary. if hasattr(v0, "_distributed_container"): # pylint: disable=protected-access assert not isinstance(v0, MirroredVariable), ( "ids = %s, values = %s" % ([id(v) for v in values], values)) assert device_map.is_device_in_replica(v0.device, 0), ( "v0.device = %s, device_map = %s" % (v0.device, device_map)) distributed_container = v0._distributed_container() assert distributed_container is not None for r, v in enumerate(values[1:]): assert device_map.is_device_in_replica(v.device, r + 1), ( "v.device = %s, r = %d, device_map = %s" % (v.device, r + 1, device_map)) assert distributed_container is v._distributed_container() return distributed_container # pylint: enable=protected-access return wrap_class(device_map, values) def select_replica(replica_id, structured): """Specialize a nest of regular & per-replica values for one replica.""" def _get(x): return x.values[replica_id] if isinstance(x, DistributedValues) else x return nest.map_structure(_get, structured) def select_device_mirrored(device, structured): """Specialize a nest of regular & mirrored values for one device.""" def _get_mirrored(x): if isinstance(x, DistributedValues): if not isinstance(x, Mirrored): raise TypeError( "Expected value to be mirrored across replicas: %s in %s." % (x, structured)) return x.get(device) else: return x return nest.map_structure(_get_mirrored, structured) def update_regroup(extended, device_map, updates, group): """Regroup for an update, with dependencies to ensure all updates execute.""" # TODO(josh11b): Replace "Mirrored" here with a function that does the following # so we can avoid all these nest operations. regrouped = regroup(device_map, updates, Mirrored) if not group: return nest.map_structure(extended._unwrap, regrouped) # pylint: disable=protected-access grouped_flat = [] for u in nest.flatten(regrouped): if isinstance(u, DistributedValues): g = extended._group(u) # pylint: disable=protected-access if u.is_tensor_like: # Make sure we run all updates. Without this, something like # session.run(extended.update(...)) may only update one replica. values = [] for d in u.devices: with ops.device(d), ops.control_dependencies([g]): values.append(array_ops.identity(u.get(d))) g = Mirrored(u.device_map, values) else: g = u grouped_flat.append(g) return nest.pack_sequence_as(regrouped, grouped_flat) def value_container(val): """Returns the container that this per-replica `value` belongs to. Args: val: A value returned by `call_for_each_replica()` or a variable created in `scope()`. Returns: A container that `value` belongs to. If value does not belong to any container (including the case of container having been destroyed), returns the value itself. """ if (hasattr(val, "_distributed_container") and # DistributedVariable has _distributed_container defined # but we don't want to return it. not isinstance(val, DistributedVariable)): container = val._distributed_container() # pylint: disable=protected-access if container is not None: return container return val # TODO(josh11b): Descend from Variable. class AggregatingVariable(trackable.Trackable): """A wrapper around a variable that aggregates updates across replicas.""" def __init__(self, strategy, v, aggregation): self._distribute_strategy = strategy self._v = v # NOTE: We don't use "_distributed_container" here because we don't want # to trigger that code path in regroup(). v._aggregating_container = weakref.ref(self) # pylint: disable=protected-access self._aggregation = aggregation def get(self): return self._v @property def distribute_strategy(self): return self._distribute_strategy def __getattr__(self, name): return getattr(self._v, name) def _assign_func(self, *args, **kwargs): _assert_strategy(self._distribute_strategy) f = kwargs.pop("f") if distribution_strategy_context.in_cross_replica_context(): update_device = distribute_lib.get_update_device() if update_device is not None: # We are calling an assign function in an update context. return f(self._v, *args, **kwargs) # We are calling an assign function in cross replica context, wrap it in # an update call. return self._distribute_strategy.extended.update( self, f, args=args, kwargs=kwargs) else: replica_context = distribution_strategy_context.get_replica_context() assert replica_context # We are calling an assign function in replica context. # We reduce the value we want to assign/add/sub. More details about how we # handle the different use cases can be found in the _reduce method. # We call the function with the reduced value. if self._aggregation == vs.VariableAggregation.NONE: raise ValueError("You must specify an aggregation method to update a " "a variable in replica context.") def merge_fn(strategy, value, *other_args, **other_kwargs): v = _apply_aggregation(strategy, value, self._aggregation, self) return strategy.extended.update( self, f, args=(v,) + other_args, kwargs=other_kwargs) return replica_context.merge_call(merge_fn, args=args, kwargs=kwargs) def assign_sub(self, *args, **kwargs): assign_sub_fn = lambda var, *a, **kw: var.assign_sub(*a, **kw) return self._assign_func(f=assign_sub_fn, *args, **kwargs) def assign_add(self, *args, **kwargs): assign_add_fn = lambda var, *a, **kw: var.assign_add(*a, **kw) return self._assign_func(f=assign_add_fn, *args, **kwargs) def assign(self, *args, **kwargs): assign_fn = lambda var, *a, **kw: var.assign(*a, **kw) return self._assign_func(f=assign_fn, *args, **kwargs) @property def aggregation(self): return self._aggregation @property def name(self): return self._v.name @property def dtype(self): return self._v.dtype # TODO(josh11b): Test saving & restoring. def _gather_saveables_for_checkpoint(self): return {trackable.VARIABLE_VALUE_KEY: self._v} # pylint: disable=multiple-statements def __add__(self, o): return self._v + o def __radd__(self, o): return o + self._v def __sub__(self, o): return self._v - o def __rsub__(self, o): return o - self._v def __mul__(self, o): return self._v * o def __rmul__(self, o): return o * self._v def __truediv__(self, o): return self._v / o def __rtruediv__(self, o): return o / self._v def __floordiv__(self, o): return self._v // o def __rfloordiv__(self, o): return o // self._v def __mod__(self, o): return self._v % o def __rmod__(self, o): return o % self._v def __lt__(self, o): return self._v < o def __le__(self, o): return self._v <= o def __gt__(self, o): return self._v > o def __ge__(self, o): return self._v >= o def __and__(self, o): return self._v & o def __rand__(self, o): return o & self._v def __or__(self, o): return self._v | o def __ror__(self, o): return o | self._v def __xor__(self, o): return self._v ^ o def __rxor__(self, o): return o ^ self._v def __getitem__(self, o): return self._v[o] def __pow__(self, o, modulo=None): return pow(self._v, o, modulo) def __rpow__(self, o): return pow(o, self._v) def __invert__(self): return ~self._v def __neg__(self): return -self._v def __abs__(self): return abs(self._v) def __div__(self, o): try: return self._v.__div__(o) except AttributeError: # See https://docs.python.org/3/library/constants.html#NotImplemented return NotImplemented def __rdiv__(self, o): try: return self._v.__rdiv__(o) except AttributeError: # See https://docs.python.org/3/library/constants.html#NotImplemented return NotImplemented def __matmul__(self, o): try: return self._v.__matmul__(o) except AttributeError: # See https://docs.python.org/3/library/constants.html#NotImplemented return NotImplemented def __rmatmul__(self, o): try: return self._v.__rmatmul__(o) except AttributeError: # See https://docs.python.org/3/library/constants.html#NotImplemented return NotImplemented def __str__(self): return str(self._v) def __repr__(self): return repr(self._v) def _should_act_as_resource_variable(self): """Pass resource_variable_ops.is_resource_variable check.""" pass # Register a conversion function which reads the value of the variable, # allowing instances of the class to be used as tensors. def _tensor_conversion_aggregate(var, dtype=None, name=None, as_ref=False): return ops.internal_convert_to_tensor( var.get(), dtype=dtype, name=name, as_ref=as_ref) ops.register_tensor_conversion_function( AggregatingVariable, _tensor_conversion_aggregate) ops.register_dense_tensor_like_type(AggregatingVariable)
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
f5c4865eb14b513c99521b359506746ebfc8db9c
db12b990924703cd74748d8585cd9c11fafa6746
/h2o-py/tests/testdir_algos/glrm/pyunit_PUBDEV_4246_pro_var.py
9a3e5927e6d7cf142a72014512ad7deff187fdc9
[ "Apache-2.0" ]
permissive
h2oai/h2o-3
919019a8f297eec676011a9cfd2cc2d97891ce14
d817ab90c8c47f6787604a0b9639b66234158228
refs/heads/master
2023-08-17T18:50:17.732191
2023-08-17T16:44:42
2023-08-17T16:44:42
17,371,412
6,872
2,345
Apache-2.0
2023-09-14T18:05:40
2014-03-03T16:08:07
Jupyter Notebook
UTF-8
Python
false
false
2,450
py
import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils from h2o.estimators.glrm import H2OGeneralizedLowRankEstimator from h2o.estimators.pca import H2OPrincipalComponentAnalysisEstimator as H2OPCA # This unit test makes sure that GLRM will not return proportional of variance with values exceeding 1 when # categorical columns exist. However, when there are categorical columns, if the sole purpose is to perform # PCA, I will not recommend using GLRM. The reason is due to GLRM will optimize the categorical columns # using a categorical loss and not the quadratic loss as in PCA algos. The eigenvalues obtained from PCA # and GLRM differs in this case. def glrm_iris(): print("Importing iris.csv data...") irisH2O = h2o.upload_file(pyunit_utils.locate("smalldata/iris/iris.csv")) irisH2O.describe() print("@@@@@@ Building PCA with GramSVD...\n") glrmPCA = H2OPCA(k=5, transform="STANDARDIZE", pca_method="GLRM", use_all_factor_levels=True, seed=21) glrmPCA.train(x=irisH2O.names, training_frame=irisH2O) glrm_h2o = H2OGeneralizedLowRankEstimator(k=5, loss="Quadratic",transform="STANDARDIZE", recover_svd=True, seed=21) glrm_h2o.train(x=irisH2O.names, training_frame=irisH2O) # compare singular values and stuff with GramSVD print("@@@@@@ Comparing eigenvalues between GramSVD and GLRM...\n") pyunit_utils.assert_H2OTwoDimTable_equal(glrmPCA._model_json["output"]["importance"], glrm_h2o._model_json["output"]["importance"], ["Standard deviation", "Cumulative Proportion", "Cumulative Proportion"], tolerance=1e-6) print("@@@@@@ Comparing eigenvectors between GramSVD and GLRM...\n") # compare singular vectors pyunit_utils.assert_H2OTwoDimTable_equal(glrmPCA._model_json["output"]["eigenvectors"], glrm_h2o._model_json["output"]["eigenvectors"], glrm_h2o._model_json["output"]["names"], tolerance=1e-6,check_sign=True) # check to make sure maximum proportional variance <= 1 assert glrmPCA._model_json["output"]["importance"].cell_values[1][1] <= 1, \ "Expected value <= 1.0 but received {0}".format(glrmPCA._model_json["output"]["importance"].cell_values[1][1]) if __name__ == "__main__": pyunit_utils.standalone_test(glrm_iris) else: glrm_iris()
[ "noreply@github.com" ]
h2oai.noreply@github.com
27eba9359b832c4b1f984ea79cc1a47ca6c44f74
2581fbdc72887143376a8f9d8f0da0f1508b9cdf
/Flask/02-Flask-Basics/00-Hello_Puppy.py
628111976300747c69976ccba1561f3710dc0524
[ "Apache-2.0" ]
permissive
Sandy1811/python-for-all
6e8a554a336b6244af127c7bcd51d36018b047d9
fdb6878d93502773ba8da809c2de1b33c96fb9a0
refs/heads/master
2022-05-16T02:36:47.676560
2019-08-16T08:35:42
2019-08-16T08:35:42
198,479,841
1
0
Apache-2.0
2022-03-11T23:56:32
2019-07-23T17:39:38
Jupyter Notebook
UTF-8
Python
false
false
153
py
from flask import Flask app = Flask(__name__) @app.route('/') def index(): return '<h1>Hello Puppy!</h1>' if __name__ == '__main__': app.run()
[ "sndp1811@gmail.com" ]
sndp1811@gmail.com
0d7026e92b2a3748388b9348f48c70b00ca007ca
e8d5471bd4a47794d66162060343f740e0febca4
/server/src/uds/reports/stats/pools_usage_day.py
54c748930c14cac52e48212aae25469933d0bdc0
[]
no_license
git38438/openuds
ef939c2196d6877e00e92416609335d57dd1bd55
7d66d92f85f01ad1ffd549304672dd31008ecc12
refs/heads/master
2020-06-22T14:07:33.227703
2019-07-18T11:03:56
2019-07-18T11:03:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,676
py
# -*- coding: utf-8 -*- # # Copyright (c) 2015 Virtual Cable S.L. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # * Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. # * Neither the name of Virtual Cable S.L. nor the names of its contributors # may be used to endorse or promote products derived from this software # without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ .. moduleauthor:: Adolfo Gómez, dkmaster at dkmon dot com """ from django.utils.translation import ugettext, ugettext_lazy as _ from uds.core.ui.UserInterface import gui from uds.core.util.stats import counters import csv import io import datetime import logging from .base import StatsReport from uds.models import ServicePool from uds.core.reports import graphs logger = logging.getLogger(__name__) __updated__ = '2018-04-25' # several constants as Width height, margins, .. WIDTH, HEIGHT, DPI = 19.2, 10.8, 100 SIZE = (WIDTH, HEIGHT, DPI) class CountersPoolAssigned(StatsReport): filename = 'pools_counters.pdf' name = _('Pools usage on a day') # Report name description = _('Pools usage counters for an specific day') # Report description uuid = '0b429f70-2fc6-11e7-9a2a-8fc37101e66a' startDate = gui.DateField( order=2, label=_('Date'), tooltip=_('Date for report'), defvalue='', required=True ) pools = gui.MultiChoiceField( order=1, label=_('Pools'), tooltip=_('Pools for report'), required=True ) def initialize(self, values): pass def initGui(self): logger.debug('Initializing gui') vals = [ gui.choiceItem(v.uuid, v.name) for v in ServicePool.objects.all().order_by('name') ] self.pools.setValues(vals) def getData(self): # Generate the sampling intervals and get dataUsers from db start = self.startDate.date() end = self.startDate.date() + datetime.timedelta(days=1) data = [] pool = None for poolUuid in self.pools.value: try: pool = ServicePool.objects.get(uuid=poolUuid) except Exception: pass # Ignore pool hours = {} for i in range(24): hours[i] = i * i for x in counters.getCounters(pool, counters.CT_ASSIGNED, since=start, to=end, limit=24, use_max=True, all=False): hour = x[0].hour val = int(x[1]) if hours[hour] < val: hours[hour] = val data.append({'uuid':pool.uuid, 'name': pool.name, 'hours': hours}) logger.debug('data: {}'.format(data)) return data def generate(self): items = self.getData() graph1 = io.BytesIO() X = list(range(24)) d = { 'title': _('Services by hour'), 'x': X, 'xtickFnc': lambda l: '{:02d}'.format(l), 'xlabel': _('Hour'), 'y': [ { 'label': i['name'], 'data': [i['hours'][v] for v in X] } for i in items ], 'ylabel': 'Services' } graphs.barChart(SIZE, d, graph1) return self.templateAsPDF( 'uds/reports/stats/pools-usage-day.html', dct={ 'data': items, 'pools': [v.name for v in ServicePool.objects.filter(uuid__in=self.pools.value)], 'beginning': self.startDate.date(), }, header=ugettext('Services usage report for a day'), water=ugettext('Service usage report'), images={'graph1': graph1.getvalue()}, ) class CountersPoolAssignedCSV(CountersPoolAssigned): filename = 'pools_counters.csv' mime_type = 'text/csv' # Report returns pdfs by default, but could be anything else uuid = '1491148a-2fc6-11e7-a5ad-03d9a417561c' encoded = False # Input fields startDate = CountersPoolAssigned.startDate pools = CountersPoolAssigned.pools def generate(self): output = io.StringIO() writer = csv.writer(output) writer.writerow([ugettext('Pool'), ugettext('Hour'), ugettext('Services')]) items = self.getData() for i in items: for j in range(24): writer.writerow([i['name'], '{:02d}'.format(j), i['hours'][j]]) return output.getvalue()
[ "dkmaster@dkmon.com" ]
dkmaster@dkmon.com
99f65bfd572a81067ac395e83915052398982ff0
fd67592b2338105e0cd0b3503552d188b814ad95
/egoi_api/paths/webhooks/post.pyi
dc9661490a212f10b8aaa2ea2630d5064ef77faa
[]
no_license
E-goi/sdk-python
175575fcd50bd5ad426b33c78bdeb08d979485b7
5cba50a46e1d288b5038d18be12af119211e5b9f
refs/heads/master
2023-04-29T20:36:02.314712
2023-04-18T07:42:46
2023-04-18T07:42:46
232,095,340
5
2
null
null
null
null
UTF-8
Python
false
false
16,213
pyi
# coding: utf-8 """ Generated by: https://openapi-generator.tech """ from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from egoi_api import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 import typing_extensions # noqa: F401 import uuid # noqa: F401 import frozendict # noqa: F401 from egoi_api import schemas # noqa: F401 from egoi_api.model.request_timeout import RequestTimeout from egoi_api.model.unauthorized import Unauthorized from egoi_api.model.service_unavailable import ServiceUnavailable from egoi_api.model.bad_request import BadRequest from egoi_api.model.unprocessable_entity import UnprocessableEntity from egoi_api.model.internal_server_error import InternalServerError from egoi_api.model.delete_campaigns_conflict import DeleteCampaignsConflict from egoi_api.model.webhook import Webhook from egoi_api.model.too_many_requests import TooManyRequests from egoi_api.model.forbidden import Forbidden # body param SchemaForRequestBodyApplicationJson = Webhook request_body_webhook = api_client.RequestBody( content={ 'application/json': api_client.MediaType( schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = Webhook @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ 'application/json': api_client.MediaType( schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor400ResponseBodyApplicationJson = BadRequest @dataclass class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ SchemaFor400ResponseBodyApplicationJson, ] headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, content={ 'application/json': api_client.MediaType( schema=SchemaFor400ResponseBodyApplicationJson), }, ) SchemaFor401ResponseBodyApplicationJson = Unauthorized @dataclass class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ SchemaFor401ResponseBodyApplicationJson, ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ 'application/json': api_client.MediaType( schema=SchemaFor401ResponseBodyApplicationJson), }, ) SchemaFor403ResponseBodyApplicationJson = Forbidden @dataclass class ApiResponseFor403(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ SchemaFor403ResponseBodyApplicationJson, ] headers: schemas.Unset = schemas.unset _response_for_403 = api_client.OpenApiResponse( response_cls=ApiResponseFor403, content={ 'application/json': api_client.MediaType( schema=SchemaFor403ResponseBodyApplicationJson), }, ) SchemaFor408ResponseBodyApplicationJson = RequestTimeout @dataclass class ApiResponseFor408(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ SchemaFor408ResponseBodyApplicationJson, ] headers: schemas.Unset = schemas.unset _response_for_408 = api_client.OpenApiResponse( response_cls=ApiResponseFor408, content={ 'application/json': api_client.MediaType( schema=SchemaFor408ResponseBodyApplicationJson), }, ) SchemaFor409ResponseBodyApplicationJson = DeleteCampaignsConflict @dataclass class ApiResponseFor409(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ SchemaFor409ResponseBodyApplicationJson, ] headers: schemas.Unset = schemas.unset _response_for_409 = api_client.OpenApiResponse( response_cls=ApiResponseFor409, content={ 'application/json': api_client.MediaType( schema=SchemaFor409ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = UnprocessableEntity @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ SchemaFor422ResponseBodyApplicationJson, ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ 'application/json': api_client.MediaType( schema=SchemaFor422ResponseBodyApplicationJson), }, ) SchemaFor429ResponseBodyApplicationJson = TooManyRequests @dataclass class ApiResponseFor429(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ SchemaFor429ResponseBodyApplicationJson, ] headers: schemas.Unset = schemas.unset _response_for_429 = api_client.OpenApiResponse( response_cls=ApiResponseFor429, content={ 'application/json': api_client.MediaType( schema=SchemaFor429ResponseBodyApplicationJson), }, ) SchemaFor500ResponseBodyApplicationJson = InternalServerError @dataclass class ApiResponseFor500(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ SchemaFor500ResponseBodyApplicationJson, ] headers: schemas.Unset = schemas.unset _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, content={ 'application/json': api_client.MediaType( schema=SchemaFor500ResponseBodyApplicationJson), }, ) SchemaFor503ResponseBodyApplicationJson = ServiceUnavailable @dataclass class ApiResponseFor503(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ SchemaFor503ResponseBodyApplicationJson, ] headers: schemas.Unset = schemas.unset _response_for_503 = api_client.OpenApiResponse( response_cls=ApiResponseFor503, content={ 'application/json': api_client.MediaType( schema=SchemaFor503ResponseBodyApplicationJson), }, ) _all_accept_content_types = ( 'application/json', ) class BaseApi(api_client.Api): @typing.overload def _create_webhook_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: typing_extensions.Literal["application/json"] = ..., accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., ) -> typing.Union[ ApiResponseFor200, ]: ... @typing.overload def _create_webhook_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = ..., accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., ) -> typing.Union[ ApiResponseFor200, ]: ... @typing.overload def _create_webhook_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], skip_deserialization: typing_extensions.Literal[True], content_type: str = ..., accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _create_webhook_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = ..., accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., ) -> typing.Union[ ApiResponseFor200, api_client.ApiResponseWithoutDeserialization, ]: ... def _create_webhook_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ): """ Create new webhook :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema class instances """ used_path = path.value _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_webhook.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: _fields = serialized_data['fields'] elif 'body' in serialized_data: _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, method='post'.upper(), headers=_headers, fields=_fields, body=_body, auth_settings=_auth, stream=stream, timeout=timeout, ) if skip_deserialization: api_response = api_client.ApiResponseWithoutDeserialization(response=response) else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException(api_response=api_response) return api_response class CreateWebhook(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @typing.overload def create_webhook( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: typing_extensions.Literal["application/json"] = ..., accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., ) -> typing.Union[ ApiResponseFor200, ]: ... @typing.overload def create_webhook( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = ..., accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., ) -> typing.Union[ ApiResponseFor200, ]: ... @typing.overload def create_webhook( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], skip_deserialization: typing_extensions.Literal[True], content_type: str = ..., accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def create_webhook( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = ..., accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., ) -> typing.Union[ ApiResponseFor200, api_client.ApiResponseWithoutDeserialization, ]: ... def create_webhook( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ): return self._create_webhook_oapg( body=body, content_type=content_type, accept_content_types=accept_content_types, stream=stream, timeout=timeout, skip_deserialization=skip_deserialization ) class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @typing.overload def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: typing_extensions.Literal["application/json"] = ..., accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., ) -> typing.Union[ ApiResponseFor200, ]: ... @typing.overload def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = ..., accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., ) -> typing.Union[ ApiResponseFor200, ]: ... @typing.overload def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], skip_deserialization: typing_extensions.Literal[True], content_type: str = ..., accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = ..., accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., ) -> typing.Union[ ApiResponseFor200, api_client.ApiResponseWithoutDeserialization, ]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ): return self._create_webhook_oapg( body=body, content_type=content_type, accept_content_types=accept_content_types, stream=stream, timeout=timeout, skip_deserialization=skip_deserialization )
[ "integrations@e-goi.com" ]
integrations@e-goi.com
a04f59c00a5a3dc817bae2748e05add691a1e1f9
f4b60f5e49baf60976987946c20a8ebca4880602
/lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/dhcp/lbldef.py
428a05e1ac94bcc1b280b028d299db0ebaca0e5f
[]
no_license
cqbomb/qytang_aci
12e508d54d9f774b537c33563762e694783d6ba8
a7fab9d6cda7fadcc995672e55c0ef7e7187696e
refs/heads/master
2022-12-21T13:30:05.240231
2018-12-04T01:46:53
2018-12-04T01:46:53
159,911,666
0
0
null
2022-12-07T23:53:02
2018-12-01T05:17:50
Python
UTF-8
Python
false
false
14,712
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.mit.meta import StatsClassMeta from cobra.mit.meta import CounterMeta from cobra.mit.meta import PropMeta from cobra.mit.meta import Category from cobra.mit.meta import SourceRelationMeta from cobra.mit.meta import NamedSourceRelationMeta from cobra.mit.meta import TargetRelationMeta from cobra.mit.meta import DeploymentPathMeta, DeploymentCategory from cobra.model.category import MoCategory, PropCategory, CounterCategory from cobra.mit.mo import Mo # ################################################## class LblDef(Mo): """ Definition of the label. """ meta = ClassMeta("cobra.model.dhcp.LblDef") meta.moClassName = "dhcpLblDef" meta.rnFormat = "dhcplbldef-%(name)s" meta.category = MoCategory.REGULAR meta.label = "DHCP Relay Label" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x1 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.childClasses.add("cobra.model.dhcp.OptionDef") meta.childClasses.add("cobra.model.fault.Counts") meta.childClasses.add("cobra.model.health.Inst") meta.childClasses.add("cobra.model.dhcp.RsLblDefToRelayP") meta.childClasses.add("cobra.model.fault.Delegate") meta.childNamesAndRnPrefix.append(("cobra.model.dhcp.RsLblDefToRelayP", "rsLblDefToRelayP")) meta.childNamesAndRnPrefix.append(("cobra.model.fault.Counts", "fltCnts")) meta.childNamesAndRnPrefix.append(("cobra.model.health.Inst", "health")) meta.childNamesAndRnPrefix.append(("cobra.model.dhcp.OptionDef", "opt-")) meta.childNamesAndRnPrefix.append(("cobra.model.fault.Delegate", "fd-")) meta.parentClasses.add("cobra.model.fv.BDDef") meta.superClasses.add("cobra.model.pol.ConsElem") meta.superClasses.add("cobra.model.naming.NamedObject") meta.superClasses.add("cobra.model.pol.Lbl") meta.superClasses.add("cobra.model.pol.Obj") meta.superClasses.add("cobra.model.pol.Def") meta.superClasses.add("cobra.model.dhcp.ALbl") meta.rnPrefixes = [ ('dhcplbldef-', True), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "descr", "descr", 5579, PropCategory.REGULAR) prop.label = "Description" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("descr", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "monPolDn", "monPolDn", 14122, PropCategory.REGULAR) prop.label = "Monitoring policy attached to this observable object" prop.isImplicit = True prop.isAdmin = True meta.props.add("monPolDn", prop) prop = PropMeta("str", "name", "name", 6138, PropCategory.REGULAR) prop.label = "Name" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop.range = [(1, 64)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("name", prop) prop = PropMeta("str", "owner", "owner", 1122, PropCategory.REGULAR) prop.label = "None" prop.isConfig = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "infra" prop._addConstant("infra", "infra", 0) prop._addConstant("tenant", "tenant", 1) meta.props.add("owner", prop) prop = PropMeta("str", "ownerKey", "ownerKey", 15230, PropCategory.REGULAR) prop.label = "None" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("ownerKey", prop) prop = PropMeta("str", "ownerTag", "ownerTag", 15231, PropCategory.REGULAR) prop.label = "None" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 64)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("ownerTag", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "tag", "tag", 4992, PropCategory.REGULAR) prop.label = "Tag" prop.isConfig = True prop.isAdmin = True prop._addConstant("alice-blue", "alice-blue", 15792383) prop._addConstant("antique-white", "antique-white", 16444375) prop._addConstant("aqua", "aqua", 65535) prop._addConstant("aquamarine", "aquamarine", 8388564) prop._addConstant("azure", "azure", 15794175) prop._addConstant("beige", "beige", 16119260) prop._addConstant("bisque", "bisque", 16770244) prop._addConstant("black", "black", 0) prop._addConstant("blanched-almond", "blanched-almond", 16772045) prop._addConstant("blue", "blue", 255) prop._addConstant("blue-violet", "blueviolet", 9055202) prop._addConstant("brown", "brown", 10824234) prop._addConstant("burlywood", "burlywood", 14596231) prop._addConstant("cadet-blue", "cadet-blue", 6266528) prop._addConstant("chartreuse", "chartreuse", 8388352) prop._addConstant("chocolate", "chocolate", 13789470) prop._addConstant("coral", "coral", 16744272) prop._addConstant("cornflower-blue", "cornflower-blue", 6591981) prop._addConstant("cornsilk", "cornsilk", 16775388) prop._addConstant("crimson", "crimson", 14423100) prop._addConstant("cyan", "cyan", 65535) prop._addConstant("dark-blue", "dark-blue", 139) prop._addConstant("dark-cyan", "dark-cyan", 35723) prop._addConstant("dark-goldenrod", "dark-goldenrod", 12092939) prop._addConstant("dark-gray", "dark-gray", 11119017) prop._addConstant("dark-green", "dark-green", 25600) prop._addConstant("dark-khaki", "dark-khaki", 12433259) prop._addConstant("dark-magenta", "dark-magenta", 9109643) prop._addConstant("dark-olive-green", "dark-olive-green", 5597999) prop._addConstant("dark-orange", "dark-orange", 16747520) prop._addConstant("dark-orchid", "dark-orchid", 10040012) prop._addConstant("dark-red", "dark-red", 9109504) prop._addConstant("dark-salmon", "dark-salmon", 15308410) prop._addConstant("dark-sea-green", "dark-sea-green", 9419919) prop._addConstant("dark-slate-blue", "dark-slate-blue", 4734347) prop._addConstant("dark-slate-gray", "dark-slate-gray", 3100495) prop._addConstant("dark-turquoise", "dark-turquoise", 52945) prop._addConstant("dark-violet", "dark-violet", 9699539) prop._addConstant("deep-pink", "deep-pink", 16716947) prop._addConstant("deep-sky-blue", "deep-sky-blue", 49151) prop._addConstant("dim-gray", "dim-gray", 6908265) prop._addConstant("dodger-blue", "dodger-blue", 2003199) prop._addConstant("fire-brick", "fire-brick", 11674146) prop._addConstant("floral-white", "floral-white", 16775920) prop._addConstant("forest-green", "forest-green", 2263842) prop._addConstant("fuchsia", "fuchsia", 16711935) prop._addConstant("gainsboro", "gainsboro", 14474460) prop._addConstant("ghost-white", "ghost-white", 16316671) prop._addConstant("gold", "gold", 16766720) prop._addConstant("goldenrod", "goldenrod", 14329120) prop._addConstant("gray", "gray", 8421504) prop._addConstant("green", "green", 32768) prop._addConstant("green-yellow", "green-yellow", 11403055) prop._addConstant("honeydew", "honeydew", 15794160) prop._addConstant("hot-pink", "hot-pink", 16738740) prop._addConstant("indian-red", "indian-red", 13458524) prop._addConstant("indigo", "indigo", 4915330) prop._addConstant("ivory", "ivory", 16777200) prop._addConstant("khaki", "khaki", 15787660) prop._addConstant("lavender", "lavender", 15132410) prop._addConstant("lavender-blush", "lavender-blush", 16773365) prop._addConstant("lawn-green", "lawn-green", 8190976) prop._addConstant("lemon-chiffon", "lemon-chiffon", 16775885) prop._addConstant("light-blue", "light-blue", 11393254) prop._addConstant("light-coral", "light-coral", 15761536) prop._addConstant("light-cyan", "light-cyan", 14745599) prop._addConstant("light-goldenrod-yellow", "light-goldenrod-yellow", 16448210) prop._addConstant("light-gray", "light-gray", 13882323) prop._addConstant("light-green", "light-green", 9498256) prop._addConstant("light-pink", "light-pink", 16758465) prop._addConstant("light-salmon", "light-salmon", 16752762) prop._addConstant("light-sea-green", "light-sea-green", 2142890) prop._addConstant("light-sky-blue", "light-sky-blue", 8900346) prop._addConstant("light-slate-gray", "light-slate-gray", 7833753) prop._addConstant("light-steel-blue", "light-steel-blue", 11584734) prop._addConstant("light-yellow", "light-yellow", 16777184) prop._addConstant("lime", "lime", 65280) prop._addConstant("lime-green", "lime-green", 3329330) prop._addConstant("linen", "linen", 16445670) prop._addConstant("magenta", "magenta", 16711935) prop._addConstant("maroon", "maroon", 8388608) prop._addConstant("medium-aquamarine", "medium-aquamarine", 6737322) prop._addConstant("medium-blue", "medium-blue", 205) prop._addConstant("medium-orchid", "medium-orchid", 12211667) prop._addConstant("medium-purple", "medium-purple", 9662683) prop._addConstant("medium-sea-green", "medium-sea-green", 3978097) prop._addConstant("medium-slate-blue", "medium-slate-blue", 8087790) prop._addConstant("medium-spring-green", "medium-spring-green", 64154) prop._addConstant("medium-turquoise", "medium-turquoise", 4772300) prop._addConstant("medium-violet-red", "medium-violet-red", 13047173) prop._addConstant("midnight-blue", "midnight-blue", 1644912) prop._addConstant("mint-cream", "mint-cream", 16121850) prop._addConstant("misty-rose", "misty-rose", 16770273) prop._addConstant("moccasin", "moccasin", 16770229) prop._addConstant("navajo-white", "navajo-white", 16768685) prop._addConstant("navy", "navy", 128) prop._addConstant("old-lace", "old-lace", 16643558) prop._addConstant("olive", "olive", 8421376) prop._addConstant("olive-drab", "olive-drab", 7048739) prop._addConstant("orange", "orange", 16753920) prop._addConstant("orange-red", "orange-red", 16729344) prop._addConstant("orchid", "orchid", 14315734) prop._addConstant("pale-goldenrod", "pale-goldenrod", 15657130) prop._addConstant("pale-green", "pale-green", 10025880) prop._addConstant("pale-turquoise", "pale-turquoise", 11529966) prop._addConstant("pale-violet-red", "pale-violet-red", 14381203) prop._addConstant("papaya-whip", "papaya-whip", 16773077) prop._addConstant("peachpuff", "peachpuff", 16767673) prop._addConstant("peru", "peru", 13468991) prop._addConstant("pink", "pink", 16761035) prop._addConstant("plum", "plum", 14524637) prop._addConstant("powder-blue", "powder-blue", 11591910) prop._addConstant("purple", "purple", 8388736) prop._addConstant("red", "red", 16711680) prop._addConstant("rosy-brown", "rosy-brown", 12357519) prop._addConstant("royal-blue", "royal-blue", 4286945) prop._addConstant("saddle-brown", "saddle-brown", 9127187) prop._addConstant("salmon", "salmon", 16416882) prop._addConstant("sandy-brown", "sandy-brown", 16032864) prop._addConstant("sea-green", "sea-green", 3050327) prop._addConstant("seashell", "seashell", 16774638) prop._addConstant("sienna", "sienna", 10506797) prop._addConstant("silver", "silver", 12632256) prop._addConstant("sky-blue", "sky-blue", 8900331) prop._addConstant("slate-blue", "slate-blue", 6970061) prop._addConstant("slate-gray", "slate-gray", 7372944) prop._addConstant("snow", "snow", 16775930) prop._addConstant("spring-green", "spring-green", 65407) prop._addConstant("steel-blue", "steel-blue", 4620980) prop._addConstant("tan", "tan", 13808780) prop._addConstant("teal", "teal", 32896) prop._addConstant("thistle", "thistle", 14204888) prop._addConstant("tomato", "tomato", 16737095) prop._addConstant("turquoise", "turquoise", 4251856) prop._addConstant("violet", "violet", 15631086) prop._addConstant("wheat", "wheat", 16113331) prop._addConstant("white", "white", 16777215) prop._addConstant("white-smoke", "white-smoke", 16119285) prop._addConstant("yellow", "yellow", 16776960) prop._addConstant("yellow-green", "yellow-green", 10145074) meta.props.add("tag", prop) meta.namingProps.append(getattr(meta.props, "name")) def __init__(self, parentMoOrDn, name, markDirty=True, **creationProps): namingVals = [name] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps) # End of package file # ##################################################
[ "collinsctk@qytang.com" ]
collinsctk@qytang.com
904519195206e061a44162de0d62e90299f55869
dc3d310934705034ab2f5bc4d3a96f07dab9b48b
/bookmanager/app01/templatetags/__init__.py
6d5c55bcb7d1ab919a016c1955ecfd772acafca2
[]
no_license
createnewdemo/istudy_test
82197488d9e9fa05e0c6cc91362645fc4555dc1d
806693f2bee13e3c28571d0d75f6b6ea70acf7a0
refs/heads/master
2022-04-19T05:52:53.780973
2020-04-17T17:04:10
2020-04-17T17:04:10
256,507,355
0
1
null
null
null
null
UTF-8
Python
false
false
153
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/4/3 18:05 # @Author : lihanhan # @Email : demo1li@163.com # @File : __init__.py.py
[ "320783214@qq.com" ]
320783214@qq.com
7e2a8bc4499302a467ccef7a2bd9d8acfad5474d
453ca12d912f6498720152342085636ba00c28a1
/ik_problems/strings_arrays/group_by_commas.py
c71c6fa05e3d2931f1c7105039108a1888b4b151
[]
no_license
yanbinkang/problem-bank
f9aa65d83a32b830754a353b6de0bb7861a37ec0
bf9cdf9ec680c9cdca1357a978c3097d19e634ae
refs/heads/master
2020-06-28T03:36:49.401092
2019-05-20T15:13:48
2019-05-20T15:13:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
849
py
""" Finish the solution so that it takes an input 'n' (integer) and returns a string that is the decimal representation of the number grouped by commas after every 3 digits. Assume: 0 <= n < 1000000000 1 -> "1" 10 -> "10" 100 -> "100" 1000 -> "1,000" 10000 -> "10,000" 100000 -> "100,000" 1000000 -> "1,000,000" 35235235 -> "35,235,235" """ def group_by_commas(string): rev = string[::-1] if len(rev) <= 3: return rev[::-1] else: return group_by_commas(rev[3:][::-1]) + "," + rev[:3][::-1] print group_by_commas("1") print group_by_commas("10") print group_by_commas("100") print group_by_commas("1000") print group_by_commas("10000") print group_by_commas("100000") print group_by_commas("1000000") print group_by_commas("35235235")
[ "albert.agram@gmail.com" ]
albert.agram@gmail.com
e2e6c3c05d8515ffdfae3b143441d7d8cff1fbf0
2eae961147a9627a2b9c8449fa61cb7292ad4f6a
/openapi_client/models/put_sales_quotes.py
14c3af41578f75de659eeb869018fcc562a12ab5
[]
no_license
kgr-eureka/SageOneSDK
5a57cc6f62ffc571620ec67c79757dcd4e6feca7
798e240eb8f4a5718013ab74ec9a0f9f9054399a
refs/heads/master
2021-02-10T04:04:19.202332
2020-03-02T11:11:04
2020-03-02T11:11:04
244,350,350
0
0
null
null
null
null
UTF-8
Python
false
false
3,456
py
# coding: utf-8 """ Sage Business Cloud Accounting - Accounts Documentation of the Sage Business Cloud Accounting API. # noqa: E501 The version of the OpenAPI document: 3.1 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from openapi_client.configuration import Configuration class PutSalesQuotes(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ openapi_types = { 'sales_quote': 'PutSalesQuotesSalesQuote' } attribute_map = { 'sales_quote': 'sales_quote' } def __init__(self, sales_quote=None, local_vars_configuration=None): # noqa: E501 """PutSalesQuotes - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._sales_quote = None self.discriminator = None if sales_quote is not None: self.sales_quote = sales_quote @property def sales_quote(self): """Gets the sales_quote of this PutSalesQuotes. # noqa: E501 :return: The sales_quote of this PutSalesQuotes. # noqa: E501 :rtype: PutSalesQuotesSalesQuote """ return self._sales_quote @sales_quote.setter def sales_quote(self, sales_quote): """Sets the sales_quote of this PutSalesQuotes. :param sales_quote: The sales_quote of this PutSalesQuotes. # noqa: E501 :type: PutSalesQuotesSalesQuote """ self._sales_quote = sales_quote def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value return result def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, PutSalesQuotes): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" if not isinstance(other, PutSalesQuotes): return True return self.to_dict() != other.to_dict()
[ "kevin.gray@eurekasolutions.co.uk" ]
kevin.gray@eurekasolutions.co.uk
a55ff18faad4fb94d38959d3536fc5dc28070d82
7debf3bc23bd38182b716dcf1eb4fa9f51b6d5bc
/expense_tracker/views/default.py
a4fe3759abf52803017cfbc6dfc29d4947a4c575
[ "MIT" ]
permissive
jjskim/expense_tracker_401d7
7b8ae545089200aa4801c48a118aef74d5bd6490
284d57829117e05aed700346c75e77b76fa25480
refs/heads/master
2021-07-22T05:37:57.603103
2017-10-31T19:09:16
2017-10-31T19:09:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,682
py
from pyramid.view import view_config from datetime import datetime from pyramid.httpexceptions import HTTPNotFound FMT = '%m/%d/%Y' EXPENSES = [ {'id': 1, 'title': 'Rent', 'amount': 50000, 'due_date': datetime.strptime('11/1/2017', FMT)}, {'id': 2, 'title': 'Phone Bill', 'amount': 100, 'due_date': datetime.strptime('11/27/2017', FMT)}, {'id': 3, 'title': 'Food', 'amount': 600, 'due_date': datetime.strptime('11/2/2017', FMT)}, {'id': 4, 'title': 'Car', 'amount': 270, 'due_date': datetime.strptime('11/25/2017', FMT)}, {'id': 5, 'title': 'Internet', 'amount': 100, 'due_date': datetime.strptime('11/12/2017', FMT)}, ] @view_config(route_name='home', renderer="expense_tracker:templates/index.jinja2") def list_expenses(request): return { "title": "Expense List", "expenses": EXPENSES } @view_config(route_name='detail', renderer="expense_tracker:templates/detail.jinja2") def expense_detail(request): expense_id = int(request.matchdict['id']) if expense_id < 0 or expense_id > len(EXPENSES) - 1: raise HTTPNotFound expense = list(filter(lambda expense: expense['id'] == expense_id, EXPENSES))[0] return { 'title': 'One Expense', 'expense': expense } @view_config(route_name="api_detail", renderer="json") def api_detail(request): expense_id = int(request.matchdict['id']) if expense_id < 0 or expense_id > len(EXPENSES) - 1: raise HTTPNotFound expense = list(filter(lambda expense: expense['id'] == expense_id, EXPENSES))[0] expense['due_date'] = expense['due_date'].strftime(FMT) return { 'title': 'One Expense', 'expense': expense }
[ "nhuntwalker@gmail.com" ]
nhuntwalker@gmail.com
cda5a4031d2648d83bfb86e146b7e8729e3f2bec
8c1fc3dec9d6f3982e307cb0805ea20cc237c317
/hashcrack/autoconfig/shadow.py
d86ef630a2a8c50b00bcddf56f8c898689acf9cb
[]
no_license
bannsec/hashcrack
a6a759a553552a1c9f53116b050e893f1860b8b7
88b651dc98347bec8acf297cea25aa22fdc55f9b
refs/heads/master
2020-12-10T02:46:28.967850
2020-01-22T02:06:52
2020-01-22T02:06:52
233,484,652
3
1
null
null
null
null
UTF-8
Python
false
false
1,194
py
import logging from ..config import config from .. import types from prompt_toolkit import print_formatted_text as print, HTML def run(): hashtype = None for line in config['hashes'].strip().split(b"\n"): tokens = line.split(b":") # Not a shadow file if len(tokens) != 9: return hash = tokens[1].strip(b"*!") # Not shadow if hash != b"" and not hash.startswith(b"$"): return if hash.startswith(b"$6$"): # sha512crypt $6$, SHA512 (Unix) # Since they may change the text name of this hashtype = next(name for name in types.hashcat if types.hashcat[name] == '1800') elif hash.startswith(b"$5$"): # sha256crypt $5$, SHA256 (Unix) # Since they may change the text name of this hashtype = next(name for name in types.hashcat if types.hashcat[name] == '7400') # If we made it this far, this should be a strong match. Go with it. if hashtype is not None: config['hash_type'] = hashtype print(HTML("<ansigreen>Autoconfigured shadow file</ansigreen>")) LOGGER = logging.getLogger(__name__)
[ "whootandahalf@gmail.com" ]
whootandahalf@gmail.com
4ba201a19176dc8ba93096d858b815f8b260eb74
8644a2174c3cb7ccfe211a5e49edffbcc3a74a46
/hashcode/contest2021/hash_code.py
348eb62abc65e6ddfd9415877e1b9bc528b06d02
[]
no_license
bhavya2403/Learning-Python
9e7cc9dee21172321fb217cae27c8072357f71ce
3898211b357fbab320010a82a4811b68611d0422
refs/heads/main
2023-03-24T03:19:49.989965
2021-03-22T20:11:04
2021-03-22T20:11:04
315,962,811
0
0
null
null
null
null
UTF-8
Python
false
false
1,651
py
def solve(): adjList = {} for key in street: start, end, L = street[key] end = int(end) if end not in adjList: adjList[end] = [1, key] else: adjList[end][0] += 1 adjList[end].append(key) streetsUsed = set() for path in carPaths: streetsUsed = streetsUsed.union(set(path[1:])) output.write(str(totIntersection) + '\n') for inter in adjList: count = 0 notUsed = set() for i in range(1, adjList[inter][0] + 1): if adjList[inter][i] not in streetsUsed: count += 1 notUsed.add(adjList[inter][i]) output.write(str(inter) + '\n') if not adjList[inter][0]-count: output.write(str(1) + '\n') output.write(str(adjList[inter][1]) + ' ' + str(1) + '\n') else: output.write(str(adjList[inter][0]-count) + '\n') for i in range(1, adjList[inter][0]+1): if adjList[inter][i] not in notUsed: output.write(str(adjList[inter][i]) + ' ' + str(1) + '\n') input = open("f.txt", "r") SimulationTime, totIntersection, totStreets, totCars, bonusPoints = map(int, input.readline().split()) street = {} for _ in range(totStreets): start, end, streetName, L = input.readline().split() street[streetName] = (start, end, L) carPaths = [] for _ in range(totCars): path = list(input.readline().split()) carPaths.append(path) carPaths.sort(key=lambda a:int(a[0])) input.close() output = open("fOutput", "w") solve() output.close()
[ "noreply@github.com" ]
bhavya2403.noreply@github.com
ef6c7204f335001e4a416d5712d8eff6af8abf83
b09a8df80c35e3ccca43cd74cec6e1a14db76ad7
/blocks/forms.py
7da0e469bffae4aa7eeb2899c3ef8df356c5a8e4
[ "MIT" ]
permissive
ofa/everyvoter
79fd6cecb78759f5e9c35ba660c3a5be99336556
3af6bc9f3ff4e5dfdbb118209e877379428bc06c
refs/heads/master
2021-06-24T19:38:25.256578
2019-07-02T10:40:57
2019-07-02T10:40:57
86,486,195
7
3
MIT
2018-12-03T19:52:20
2017-03-28T17:07:15
Python
UTF-8
Python
false
false
722
py
"""Forms for account app""" from django import forms from blocks.models import Block from election.models import Election, LegislativeDistrict class BlockModelForm(forms.ModelForm): """Model form for blocks""" weight = forms.ChoiceField(choices=[(x, x) for x in range(1, 100)]) class Meta(object): """Meta options for form""" model = Block fields = ['name', 'geodataset', 'weight', 'categories', 'code'] class BlockPreviewForm(forms.Form): """Preview form""" election = forms.ModelChoiceField(queryset=Election.objects.all()) district = forms.ModelChoiceField( queryset=LegislativeDistrict.objects.all()) block = forms.CharField(widget=forms.HiddenInput())
[ "nickcatal@gmail.com" ]
nickcatal@gmail.com
a39e31cefdc46526f203635269c06d872405a9db
90419da201cd4948a27d3612f0b482c68026c96f
/sdk/python/pulumi_azure_nextgen/network/v20200501/get_ip_allocation.py
1b0cabaf141ea140a23a362799f9df7f8521a40c
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
test-wiz-sec/pulumi-azure-nextgen
cd4bee5d70cb0d332c04f16bb54e17d016d2adaf
20a695af0d020b34b0f1c336e1b69702755174cc
refs/heads/master
2023-06-08T02:35:52.639773
2020-11-06T22:39:06
2020-11-06T22:39:06
312,993,761
0
0
Apache-2.0
2023-06-02T06:47:28
2020-11-15T09:04:00
null
UTF-8
Python
false
false
7,547
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs __all__ = [ 'GetIpAllocationResult', 'AwaitableGetIpAllocationResult', 'get_ip_allocation', ] @pulumi.output_type class GetIpAllocationResult: """ IpAllocation resource. """ def __init__(__self__, allocation_tags=None, etag=None, ipam_allocation_id=None, location=None, name=None, prefix=None, prefix_length=None, prefix_type=None, subnet=None, tags=None, type=None, virtual_network=None): if allocation_tags and not isinstance(allocation_tags, dict): raise TypeError("Expected argument 'allocation_tags' to be a dict") pulumi.set(__self__, "allocation_tags", allocation_tags) if etag and not isinstance(etag, str): raise TypeError("Expected argument 'etag' to be a str") pulumi.set(__self__, "etag", etag) if ipam_allocation_id and not isinstance(ipam_allocation_id, str): raise TypeError("Expected argument 'ipam_allocation_id' to be a str") pulumi.set(__self__, "ipam_allocation_id", ipam_allocation_id) if location and not isinstance(location, str): raise TypeError("Expected argument 'location' to be a str") pulumi.set(__self__, "location", location) if name and not isinstance(name, str): raise TypeError("Expected argument 'name' to be a str") pulumi.set(__self__, "name", name) if prefix and not isinstance(prefix, str): raise TypeError("Expected argument 'prefix' to be a str") pulumi.set(__self__, "prefix", prefix) if prefix_length and not isinstance(prefix_length, int): raise TypeError("Expected argument 'prefix_length' to be a int") pulumi.set(__self__, "prefix_length", prefix_length) if prefix_type and not isinstance(prefix_type, str): raise TypeError("Expected argument 'prefix_type' to be a str") pulumi.set(__self__, "prefix_type", prefix_type) if subnet and not isinstance(subnet, dict): raise TypeError("Expected argument 'subnet' to be a dict") pulumi.set(__self__, "subnet", subnet) if tags and not isinstance(tags, dict): raise TypeError("Expected argument 'tags' to be a dict") pulumi.set(__self__, "tags", tags) if type and not isinstance(type, str): raise TypeError("Expected argument 'type' to be a str") pulumi.set(__self__, "type", type) if virtual_network and not isinstance(virtual_network, dict): raise TypeError("Expected argument 'virtual_network' to be a dict") pulumi.set(__self__, "virtual_network", virtual_network) @property @pulumi.getter(name="allocationTags") def allocation_tags(self) -> Optional[Mapping[str, str]]: """ IpAllocation tags. """ return pulumi.get(self, "allocation_tags") @property @pulumi.getter def etag(self) -> str: """ A unique read-only string that changes whenever the resource is updated. """ return pulumi.get(self, "etag") @property @pulumi.getter(name="ipamAllocationId") def ipam_allocation_id(self) -> Optional[str]: """ The IPAM allocation ID. """ return pulumi.get(self, "ipam_allocation_id") @property @pulumi.getter def location(self) -> Optional[str]: """ Resource location. """ return pulumi.get(self, "location") @property @pulumi.getter def name(self) -> str: """ Resource name. """ return pulumi.get(self, "name") @property @pulumi.getter def prefix(self) -> Optional[str]: """ The address prefix for the IpAllocation. """ return pulumi.get(self, "prefix") @property @pulumi.getter(name="prefixLength") def prefix_length(self) -> Optional[int]: """ The address prefix length for the IpAllocation. """ return pulumi.get(self, "prefix_length") @property @pulumi.getter(name="prefixType") def prefix_type(self) -> Optional[str]: """ The address prefix Type for the IpAllocation. """ return pulumi.get(self, "prefix_type") @property @pulumi.getter def subnet(self) -> 'outputs.SubResourceResponse': """ The Subnet that using the prefix of this IpAllocation resource. """ return pulumi.get(self, "subnet") @property @pulumi.getter def tags(self) -> Optional[Mapping[str, str]]: """ Resource tags. """ return pulumi.get(self, "tags") @property @pulumi.getter def type(self) -> str: """ Resource type. """ return pulumi.get(self, "type") @property @pulumi.getter(name="virtualNetwork") def virtual_network(self) -> 'outputs.SubResourceResponse': """ The VirtualNetwork that using the prefix of this IpAllocation resource. """ return pulumi.get(self, "virtual_network") class AwaitableGetIpAllocationResult(GetIpAllocationResult): # pylint: disable=using-constant-test def __await__(self): if False: yield self return GetIpAllocationResult( allocation_tags=self.allocation_tags, etag=self.etag, ipam_allocation_id=self.ipam_allocation_id, location=self.location, name=self.name, prefix=self.prefix, prefix_length=self.prefix_length, prefix_type=self.prefix_type, subnet=self.subnet, tags=self.tags, type=self.type, virtual_network=self.virtual_network) def get_ip_allocation(expand: Optional[str] = None, ip_allocation_name: Optional[str] = None, resource_group_name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetIpAllocationResult: """ Use this data source to access information about an existing resource. :param str expand: Expands referenced resources. :param str ip_allocation_name: The name of the IpAllocation. :param str resource_group_name: The name of the resource group. """ __args__ = dict() __args__['expand'] = expand __args__['ipAllocationName'] = ip_allocation_name __args__['resourceGroupName'] = resource_group_name if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: opts.version = _utilities.get_version() __ret__ = pulumi.runtime.invoke('azure-nextgen:network/v20200501:getIpAllocation', __args__, opts=opts, typ=GetIpAllocationResult).value return AwaitableGetIpAllocationResult( allocation_tags=__ret__.allocation_tags, etag=__ret__.etag, ipam_allocation_id=__ret__.ipam_allocation_id, location=__ret__.location, name=__ret__.name, prefix=__ret__.prefix, prefix_length=__ret__.prefix_length, prefix_type=__ret__.prefix_type, subnet=__ret__.subnet, tags=__ret__.tags, type=__ret__.type, virtual_network=__ret__.virtual_network)
[ "public@paulstack.co.uk" ]
public@paulstack.co.uk
452ca5230e1066b299969a40e76e1beacdc6d893
1dce441d867ae3a320835ad8bfcc7d28bea02495
/main/urls.py
8522d4e1173a85a1ed23481167de907e4b68cf57
[]
no_license
dmitriyVasilievich1986/Services
5b3eeb2e356663d75e7a0e4ded246d62baec0d1b
0a6f9b6bcc5beea1cb40c83f7fb14f634af830d0
refs/heads/master
2023-06-26T18:10:30.432106
2021-07-23T16:07:44
2021-07-23T16:07:44
388,856,663
0
0
null
null
null
null
UTF-8
Python
false
false
104
py
from .views import index_view from django.urls import path urlpatterns = [ path("", index_view), ]
[ "dmitriyvasil@gmail.com" ]
dmitriyvasil@gmail.com
0a9069262dcd7f1e236e03cb138351c395dad067
d41d18d3ea6edd2ec478b500386375a8693f1392
/plotly/validators/splom/marker/colorbar/_showticksuffix.py
80b850d3cb4f83181bfce76a44d5751d71c84e68
[ "MIT" ]
permissive
miladrux/plotly.py
38921dd6618650d03be9891d6078e771ffccc99a
dbb79e43e2cc6c5762251537d24bad1dab930fff
refs/heads/master
2020-03-27T01:46:57.497871
2018-08-20T22:37:38
2018-08-20T22:37:38
145,742,203
1
0
MIT
2018-08-22T17:37:07
2018-08-22T17:37:07
null
UTF-8
Python
false
false
534
py
import _plotly_utils.basevalidators class ShowticksuffixValidator( _plotly_utils.basevalidators.EnumeratedValidator ): def __init__( self, plotly_name='showticksuffix', parent_name='splom.marker.colorbar', **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_type='calc', role='style', values=['all', 'first', 'last', 'none'], **kwargs )
[ "jon.mease@gmail.com" ]
jon.mease@gmail.com