text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def exercise ( ) : exercise _ pure _ polyala _ alpha ( ) exercise _ 00 ( ) exercise _ 01 ( ) exercise _ 02 ( ) exercise _ 03 ( ) exercise _ 04 ( ) print ( " ok " ) | [
-0.3945043683052063,
-0.6540073156356812,
0.6607250571250916,
1.2125071287155151,
0.5489757657051086,
1.0402565002441406,
1.5579956769943237,
0.1723896563053131,
0.5483366250991821,
-0.4305468499660492,
-0.624898374080658,
0.09654243290424347,
-0.24857673048973083,
-0.8287618160247803,
0... |
def summary ( task, clustertype, yeartarget ) : print ( " \ n \ n " ) print ( " * " * 80 ) print ( " * \ t marco caserta ( c ) 2018 { 0 : > 48s } ". format ( " * " ) ) print ( " * " * 80 ) if task = = " 0 " : msg = " folder restructuring " elif task = = " 1 " : msg = " preprocessing " elif task = = " 2 " : msg = " doc2... | [
-0.33644992113113403,
-0.19029949605464935,
0.8914358615875244,
0.06052710488438606,
-0.34775644540786743,
0.4648646414279938,
0.6650534272193909,
-0.15812309086322784,
-0.47343146800994873,
0.700739324092865,
0.5246747136116028,
1.1775633096694946,
0.3422582447528839,
0.26480838656425476,... |
def _ root _ df _ sane ( func, x0, args = ( ), ftol = 1e - 8, fatol = 1e - 300, maxfev = 1000, fnorm = none, callback = none, disp = false, m = 10, eta _ strategy = none, sigma _ eps = 1e - 10, sigma _ 0 = 1. 0, line _ search ='cruz ', * * unknown _ options ) : _ check _ unknown _ options ( unknown _ options ) if line ... | [
0.5005509257316589,
0.3344016373157501,
0.8234149217605591,
0.4181041717529297,
-0.018867122009396553,
-0.7986879944801331,
-0.02904953435063362,
-0.11706798523664474,
-0.6494224667549133,
-0.5208743214607239,
0.7619491815567017,
-0.34123650193214417,
0.7231667637825012,
0.4836372137069702... |
def notify _ tag ( self, tag, address ) : if self. watching : raise notifiererror ( " notifier in watch mode ; cannot send notifications " ) channel _ server = self. _ channel ( self. tag, tag ) log. debug ( " publish % s ", channel _ server ) yield from self. _ connection. publish ( channel _ server, str ( address ). ... | [
0.2891521155834198,
-0.22508354485034943,
0.38388529419898987,
-0.4653664529323578,
-0.12318544834852219,
-0.41697779297828674,
-0.37534984946250916,
-0.44811198115348816,
-0.6710982322692871,
0.5642006993293762,
-0.4142967164516449,
1.419507384300232,
0.26796212792396545,
0.80515575408935... |
def iter _ year _ month ( year _ info ) : # info = > month, days, leap months = [ ( i, 0 ) for i in range ( 1, 13 ) ] leap _ month = year _ info % 16 # the leap month in this year. if leap _ month = = 0 : pass elif leap _ month < = 12 : months. insert ( leap _ month, ( leap _ month, 1 ) ) else : raise valueerror ( " ye... | [
0.208888441324234,
-0.18729379773139954,
0.5457151532173157,
-0.7332099676132202,
0.02243094891309738,
1.4380277395248413,
-0.3329925835132599,
-0.25803226232528687,
0.27951711416244507,
-0.9853295087814331,
0.3005230128765106,
0.1803024262189865,
-0.24220038950443268,
0.7838252782821655,
... |
def getcrossid ( self, * args ) : return _ snap. pmmnet _ getcrossid ( self, * args ) | [
0.9401668906211853,
0.012605146504938602,
1.0061758756637573,
1.2248598337173462,
0.5462554693222046,
0.4542083442211151,
0.0955401137471199,
-0.4011250436306,
0.4402863085269928,
-0.5339390635490417,
-0.22846733033657074,
-0.3935737609863281,
-2.3285176753997803,
0.965858519077301,
-0.2... |
def fix _ paths ( path, images _ folder = " images " ) : img _ from _ root = path. split ( images _ folder + os. sep ) [ - 1 ]. split ( os. sep ) new _ path = os. path. join ( " { { site. url } } ", images _ folder, * img _ from _ root ) return new _ path | [
-0.06060286611318588,
-0.277876615524292,
0.33839836716651917,
0.6990795731544495,
-0.1896185278892517,
0.03983238339424133,
1.0520294904708862,
0.8714199662208557,
-0.6647869944572449,
0.09827086329460144,
0.36599886417388916,
0.7249826192855835,
0.1490221470594406,
0.9139674305915833,
... |
def teardownmodule ( ) : cleanup _ resources ( ) | [
0.6279885172843933,
-0.7084512710571289,
0.09704584628343582,
0.005418360233306885,
0.9677252173423767,
1.006317377090454,
1.5865331888198853,
-0.02006998099386692,
0.5977632403373718,
0.0369657464325428,
0.1699874848127365,
0.28945615887641907,
-0.22028501331806183,
0.6544831395149231,
... |
def split _ url ( url ) : try : return list ( urlparse. urlsplit ( url ) ) except valueerror : # urlparse. urlsplit can raise a valueerror with some # misformatted urls. raise validationerror ( self. error _ messages ['invalid'] ) | [
-0.9052750468254089,
0.27648863196372986,
0.3703536093235016,
0.698738694190979,
0.5530433058738708,
0.49413180351257324,
-0.002598079387098551,
0.7260772585868835,
0.11603617668151855,
-0.14514140784740448,
-0.47422468662261963,
-0.7048300504684448,
-0.4625525176525116,
0.5494922399520874... |
def exithandlerreal ( self, signum, frame ) : self. trapexitsignals ( self. exithandlernoop ) if self. onexit ( ) : # exit was confirmed sys. exit ( 0 ) else : # exit was cancelled self. trapexitsignals ( self. exithandlerreal ) | [
-0.1747157871723175,
0.04170190170407295,
0.5683672428131104,
1.0397542715072632,
-0.22132954001426697,
0.19778156280517578,
0.20456089079380035,
0.5894802808761597,
0.26785871386528015,
0.3306610882282257,
-0.847561776638031,
-1.3748784065246582,
0.22563786804676056,
0.7421506643295288,
... |
def _ _ str _ _ ( self ) : return " \ t \ tvocabulary element : " + self. _ label + " - support ] " + str ( self. _ minsupport ) + ", " + str ( self. _ maxsupport ) + " [ - core [ " + str ( self. _ mincore ) + ", " + str ( self. _ maxcore ) + " ] " | [
0.47449034452438354,
-1.090611457824707,
0.3902380168437958,
-0.7881476283073425,
-0.47303351759910583,
0.4976767599582672,
-1.03581964969635,
0.12962521612644196,
-0.2932822108268738,
0.8630452752113342,
0.14482687413692474,
0.1961183100938797,
-0.14862671494483948,
-0.6880806088447571,
... |
def testuseexpiredbuffereventstream ( self ) : self. sf. addconsumer ('a') stream = self. sf. consume ('a') stream. commit ( ) with self. assertraises ( plugin _ base. eventstreamexpired ) : stream. next ( ) with self. assertraises ( plugin _ base. eventstreamexpired ) : stream. abort ( ) with self. assertraises ( plug... | [
1.6178966760635376,
-0.1303340494632721,
0.8077071905136108,
0.5870117545127869,
-0.09765157103538513,
-0.5402318835258484,
-0.4604838788509369,
-0.6883248686790466,
0.3701825737953186,
-0.3859563171863556,
-0.02092454582452774,
0.1711159348487854,
-0.6564223766326904,
1.1841914653778076,
... |
def intervals ( nms # list of indices ) : return list ( zip ( nms [ : ], nms [ 1 : ] ) ) | [
-1.7668986320495605,
-0.06430905312299728,
0.14394113421440125,
0.7689704895019531,
-0.34184688329696655,
0.3789774477481842,
-0.5292195081710815,
-0.45108693838119507,
1.008966088294983,
0.8843116760253906,
-0.8471352458000183,
-0.10341120511293411,
-0.4670696258544922,
0.6279827952384949... |
def _ _ draw _ grid ( self ) : for i in range ( self. game. size + 3 ) : color = " blue " if i % 6 = = 0 else " gray " if i = = 1 or i = = self. game. size + 1 : color = " red " x0 = margin + i * side y0 = margin x1 = margin + i * side y1 = height - margin self. canvas. create _ line ( x0, y0, x1, y1, fill = color ) x0... | [
-0.7994791865348816,
0.6084033250808716,
0.8925180435180664,
-1.0122164487838745,
0.9411301016807556,
0.5160380005836487,
-0.6613920331001282,
-0.5625344514846802,
0.04879327118396759,
-0.2992976903915405,
0.32485002279281616,
0.05216509476304054,
0.02376764640212059,
0.24798104166984558,
... |
def test _ display ( ) : pytest. debug _ func ( ) now = time. time ( ) exp = xtime ( fmt = " % y - % m - % d ", when = now ) wobj = nldt. moment ( now ) # payload assert wobj ( ) = = exp | [
0.5096467137336731,
-0.31451258063316345,
0.5100776553153992,
-0.813578188419342,
-0.5741854906082153,
0.35067373514175415,
-0.70412278175354,
-1.6050137281417847,
-0.015827825292944908,
0.0047897216863930225,
0.2665649354457855,
0.4214000701904297,
-0.03911181166768074,
1.058641791343689,... |
def calceffdiampdf ( * args ) : return _ snap. calceffdiampdf ( * args ) | [
-0.17422212660312653,
0.00047479569911956787,
0.34898075461387634,
-0.003821423975750804,
-0.3281390368938446,
0.09782474488019943,
1.1793087720870972,
0.8149595856666565,
-0.035402242094278336,
-0.2698797285556793,
-0.7464417219161987,
-0.9302721619606018,
-0.7243463397026062,
0.526054024... |
def _ _ eq _ _ ( self, * args ) : return _ snap. tstrtrinthi _ _ _ eq _ _ ( self, * args ) | [
0.6024046540260315,
-0.6313533782958984,
0.0898175835609436,
-1.2621262073516846,
0.4498049020767212,
0.2930378019809723,
0.6952131390571594,
0.5723412036895752,
-1.3712897300720215,
0.5948750972747803,
-1.2783745527267456,
-0.8054412603378296,
-0.10787204653024673,
-0.36515751481056213,
... |
def check _ jntranges _ drag ( self, jnt _ values ) : counter = 0 isdragged = np. zeros _ like ( jnt _ values ) jntvaluesdragged = jnt _ values. copy ( ) for id in self. jlc _ object. tgtjnts : if self. jlc _ object. jnts [ id ] [ " type " ] = ='revolute': if self. jlc _ object. jnts [ id ] ['motion _ rng'] [ 1 ] - sel... | [
-0.2748663127422333,
-0.1165594682097435,
0.7951469421386719,
-0.9873707294464111,
-0.06049148738384247,
0.012881206348538399,
0.3812996745109558,
-0.7921863794326782,
-0.023904258385300636,
-0.2885683476924896,
-0.3408535122871399,
0.30627769231796265,
-0.3232603669166565,
0.5618445277214... |
def colsub ( self, * args ) : return _ snap. ptable _ colsub ( self, * args ) | [
-1.0641769170761108,
0.39938420057296753,
0.4449365437030792,
1.0682790279388428,
-0.6077696681022644,
0.4215903878211975,
0.5321428775787354,
-0.6783664226531982,
-1.1423050165176392,
-0.26336508989334106,
-0.7849843502044678,
-0.7839499711990356,
-0.24512439966201782,
-0.8486865758895874... |
def plot _ orbit _ durations ( data, num _ runs, info, satellite ) : cnt = 1 ( fig, fobj, fzoom1, fzoom2 ) = init _ timestamp _ plot ( ) # collect list of orbits orbits = list ( ) for run in data : for orbit in data [ run ] : orbits. append ( orbit ) orbs = list ( set ( orbits ) ) orbs. sort ( ) # collect corresponding... | [
0.10762365907430649,
0.4184073507785797,
0.7253207564353943,
-0.32070431113243103,
-0.7913442850112915,
0.922478199005127,
-0.11678174883127213,
-0.326549232006073,
-0.12229341268539429,
0.7835893630981445,
0.4474934935569763,
0.7357074618339539,
1.055569052696228,
0.34247395396232605,
0... |
def unmount ( name, * * kwargs ) : # # configure command # note : initialize the defaults flags = [ ] # note : set extra config from kwargs if kwargs. get ( " force ", false ) : flags. append ( " - f " ) if name in [ none, " - a " ] : # note : still accept'- a'as name for backwards compatibility # until salt 3001 this ... | [
-0.33482885360717773,
0.3153902590274811,
0.8457578420639038,
-0.6739916205406189,
-0.6157819032669067,
-0.989356279373169,
-0.21560755372047424,
-0.4180848300457001,
0.3928282558917999,
0.03127347305417061,
-0.08551696687936783,
0.30607274174690247,
-0.9482033848762512,
0.0728503316640853... |
def state ( self ) : return self. _ state | [
-0.39295682311058044,
-1.033605933189392,
0.10982108116149902,
-0.3203376829624176,
-0.2899828851222992,
0.7542568445205688,
0.9990419149398804,
-0.2657981514930725,
0.679476261138916,
-1.2502281665802002,
-0.20985104143619537,
0.13979750871658325,
-0.24261392652988434,
-0.4114583730697632... |
def _ _ init _ _ ( self, hamiltonian, stepsize = 1e - 3, n _ steps = 100 ) : if not isinstance ( hamiltonian, hamiltonian ) : raise typeerror ('expected instance of hamiltonian') if not isinstance ( stepsize, float ) or stepsize < = 0. : raise typeerror ('step - size should be positive float.') if not isinstance ( n _ ... | [
-0.02270880527794361,
0.3179478049278259,
0.4843526780605316,
0.142400324344635,
-0.6805242896080017,
0.7891443371772766,
-0.34747615456581116,
0.19644229114055634,
-0.48082807660102844,
-0.35143759846687317,
-0.7228026986122131,
0.01969730108976364,
0.01401516329497099,
1.8852442502975464... |
def begei ( self, * args ) : return _ snap. tungraph _ begei ( self, * args ) | [
0.1903737336397171,
0.6997330188751221,
0.2045402228832245,
1.4490042924880981,
1.8323124647140503,
-0.10891877114772797,
0.11969227343797684,
0.020857390016317368,
-0.843384325504303,
-0.1260707825422287,
-0.7036004066467285,
0.1228916198015213,
-1.617801547050476,
0.4217388927936554,
-... |
def isvalidlasfile ( self ) : validlasfile = self. _ versionblockinfile and self. _ wellinformationblockinfile and self. _ curveinformationblockinfile if validlasfile : return true return false | [
1.280935525894165,
-0.9682064652442932,
0.7251538038253784,
-0.12447939068078995,
0.0803561732172966,
1.47736656665802,
-0.2678295969963074,
0.343436062335968,
-1.0671148300170898,
-0.8931033611297607,
-0.012281668372452259,
0.1208558902144432,
-0.22611010074615479,
0.7415276765823364,
-... |
def dump ( self, * args ) : return _ snap. ptable _ dump ( self, * args ) | [
-1.5620976686477661,
0.9236096143722534,
0.4336123764514923,
1.003544807434082,
0.14583560824394226,
1.0976556539535522,
1.7015211582183838,
-0.2841239869594574,
-0.9396814107894897,
-0.13160711526870728,
-0.40980347990989685,
-0.9316681027412415,
-0.7328538298606873,
0.8736352324485779,
... |
def purge _ orphaned _ health _ monitor ( self, tenant _ id = none, monitor _ id = none, hostnames = list ( ) ) : resource _ types = [ resource _ helper. bigipresourcehelper ( x ) for x in [ resource _ helper. resourcetype. http _ monitor, resource _ helper. resourcetype. https _ monitor, resource _ helper. resourcetyp... | [
-0.49755361676216125,
0.32100003957748413,
0.658751904964447,
0.09498871862888336,
0.280053973197937,
-0.13320238888263702,
-0.28151220083236694,
-0.5923668146133423,
0.6276947855949402,
-0.05744814872741699,
0.30040040612220764,
0.4033280611038208,
-0.1396665871143341,
0.68560391664505,
... |
def gettriadparticip _ pngraph ( * args ) : return _ snap. gettriadparticip _ pngraph ( * args ) | [
-0.006632245145738125,
0.8833484649658203,
0.33957359194755554,
-0.896926999092102,
-0.32470497488975525,
0.19501939415931702,
-0.42995399236679077,
-0.33424949645996094,
-0.26995983719825745,
0.43171703815460205,
0.4117799997329712,
-0.24559330940246582,
-1.1076871156692505,
-1.4970221519... |
def reverse ( self, * args ) : return _ snap. tintv _ reverse ( self, * args ) | [
-1.4012560844421387,
0.6840338110923767,
0.3969195485115051,
0.9015624523162842,
0.5192983150482178,
0.3866764307022095,
0.49864357709884644,
0.3385944366455078,
-1.3811640739440918,
-0.7185739278793335,
-0.5391775965690613,
0.6038174033164978,
-1.8959684371948242,
-0.17026226222515106,
... |
def get _ fs _ resource _ root ( self ) : return os. path. abspath ( self. resource _ root ) | [
0.5583115816116333,
-1.0991253852844238,
0.6270708441734314,
0.07885037362575531,
-0.13220109045505524,
0.17599116265773773,
0.9472060203552246,
-0.1906152367591858,
0.2987827658653259,
-0.991301953792572,
1.1355942487716675,
0.16632139682769775,
-0.026372423395514488,
0.3393269181251526,
... |
def exit _ error ( msg = " unknown. " ) : print ( " [ error ] { : s } ". format ( msg ) ) time. sleep ( exit _ delay ) sys. exit ( exit _ status ) | [
0.3481696844100952,
0.21103516221046448,
0.32288146018981934,
0.3252927362918854,
0.08117891848087311,
0.7059887647628784,
0.45862630009651184,
1.4575092792510986,
-0.7586202621459961,
-0.13385425508022308,
-0.2795511782169342,
0.6936928629875183,
0.31436917185783386,
0.3669717013835907,
... |
def set _ volume _ level ( self, volume : int ) - > none : self. _ spotify. volume ( int ( volume * 100 ) ) | [
-0.35937944054603577,
-0.3889846205711365,
0.3323563039302826,
0.027212433516979218,
0.7301322817802429,
0.10212433338165283,
-0.41399580240249634,
-0.3906433880329132,
-0.5666511058807373,
-0.2793896794319153,
-0.5628571510314941,
0.22385206818580627,
-0.4228120744228363,
0.06659337878227... |
def keypressevent ( self, evt : qkeyevent ) : if evt. key ( ) = = qtcore. qt. key _ escape : self. close ( ) else : super ( ). keypressevent ( evt ) pass | [
0.06076396629214287,
0.12136389315128326,
1.0029783248901367,
0.7329361438751221,
-0.8735410571098328,
0.9574306607246399,
-0.13304363191127777,
-0.2708522081375122,
0.32891470193862915,
0.44657376408576965,
-0.03189661726355553,
-0.4940861463546753,
-0.4336487054824829,
1.2266743183135986... |
def hasflag ( self, * args ) : return _ snap. pngraph _ hasflag ( self, * args ) | [
0.1408335417509079,
1.1123465299606323,
0.5822103023529053,
0.21339671313762665,
0.9059871435165405,
0.4405856132507324,
0.3886886537075043,
0.23587246239185333,
-0.8594103455543518,
-1.271064281463623,
-0.8778514266014099,
-0.401633620262146,
-0.3911789655685425,
0.6868203282356262,
-0.... |
def command _ props ( self, brain, arg ) : props = self. act ( self. action _ yml,'props ', arg ) return props | [
-0.4363926351070404,
-1.0292378664016724,
0.2218228578567505,
-0.022719822824001312,
0.9652474522590637,
-0.03326564282178879,
0.8932638764381409,
-0.13403670489788055,
0.5206901431083679,
-0.15443015098571777,
0.6855577826499939,
0.9089064598083496,
-0.19194616377353668,
0.159513294696807... |
def main ( ns, rcpath ) : finst = async. run ( fief. fief. new _ a ( rcpath ) ) if ns. verbose : sys. stderr. write ('stash : { 0 } \ n '. format ( os. path. abspath ( finst. _ path _ stash ) ) ) if ns. clean is not none : clean ( ns, finst ) | [
0.8976421356201172,
0.4182295799255371,
0.41246286034584045,
0.2990090847015381,
0.05522371456027031,
-0.23941203951835632,
1.0735602378845215,
-0.5439018607139587,
-0.04298055171966553,
0.4956558048725128,
0.15824063122272491,
0.8674113154411316,
0.3869086503982544,
0.4227495491504669,
... |
def get _ pid ( self ) : try : with open ( self. pidfile,'r') as f : pid = int ( f. read ( ). strip ( ) ) except : pid = 0 return pid | [
1.0734100341796875,
-0.8336316347122192,
0.683285117149353,
-0.28272005915641785,
0.466798335313797,
1.0551559925079346,
0.3119201958179474,
0.659143328666687,
-0.4791451692581177,
0.3941575586795807,
1.512760043144226,
-0.7153001427650452,
-1.2597012519836426,
-0.3223859369754791,
0.864... |
def _ _ init _ _ ( self, mealtype ) : self. mealtype = mealtype print ( mealtype + " : " ) viewmenu = multimenu ( {'1':'tarkastele taman ruokalistan ruokia ','a':'tarkastele kaikkia tietokannan ruokia ','f':'tarkastele kalaruokia ','c':'tarkastele kanaruokia ','m':'tarkastele liharuokia ','v':'tarkastele kasvisruokia '... | [
-0.5154238939285278,
0.29196077585220337,
0.9332664608955383,
0.17314180731773376,
-1.146728754043579,
-0.6197029948234558,
0.3935511112213135,
0.3177473545074463,
0.793377697467804,
-0.8637321591377258,
0.10097640007734299,
0.29627570509910583,
-0.35934484004974365,
1.1777331829071045,
... |
def isnextk ( self, * args ) : return _ snap. ptable _ isnextk ( self, * args ) | [
-0.7921484708786011,
0.9919377565383911,
0.3482644855976105,
1.4084625244140625,
-0.2977953851222992,
-0.2374993860721588,
0.6836798787117004,
-0.3397662341594696,
-1.4116357564926147,
0.8819359540939331,
0.08629226684570312,
-0.9110567569732666,
-0.6516534090042114,
0.5597763061523438,
... |
def connect _ buttons ( self ) : # connect number buttons self. ui. btn _ number _ 0. clicked. connect ( lambda : self. add _ number ( 0 ) ) self. ui. btn _ number _ 1. clicked. connect ( lambda : self. add _ number ( 1 ) ) self. ui. btn _ number _ 2. clicked. connect ( lambda : self. add _ number ( 2 ) ) self. ui. btn... | [
-0.346484899520874,
-0.17827938497066498,
1.0102031230926514,
0.3816808760166168,
0.0549963153898716,
0.052415698766708374,
1.3123893737792969,
-1.0979373455047607,
0.06983266025781631,
-0.3932341933250427,
-0.9795025587081909,
-1.172426462173462,
0.1276627779006958,
0.3934939205646515,
... |
def annual _ extraordinary _ educational _ expenses ( responses, derived ) : try : return float ( responses. get ('annual _ extraordinary _ educational _ expenses ', 0 ) ) except valueerror : return 0 | [
-0.11872854083776474,
-0.9463415741920471,
0.35215654969215393,
-0.2383260577917099,
0.23423390090465546,
1.2024081945419312,
0.05631048232316971,
0.9860817790031433,
0.7936831712722778,
-0.15136831998825073,
0.8533786535263062,
-0.12827809154987335,
0.6425859928131104,
-0.3404070138931274... |
def collectionnames ( self ) : if debug : print dbgidf + " collection names : ", self. db. collection _ names ( ) return self. db. collection _ names ( ) | [
-0.444363534450531,
-0.29016420245170593,
0.4277069568634033,
-0.24645347893238068,
0.3544105589389801,
0.6857267022132874,
-0.2063172310590744,
-1.5410411357879639,
0.12350770831108093,
0.24761322140693665,
-0.5331147909164429,
-0.34776732325553894,
0.14957183599472046,
0.9598232507705688... |
def conditionwise _ psth ( self ) : if self. _ conditionwise _ psth is none : if self. _ psth _ resolution > self. trial _ duration : warnings. warn ('parameter " psth _ resolution " > " trial _ duration ", psth will not be properly created.') # get the spike - counts for every stimulus _ presentation _ id dataset = se... | [
0.636481761932373,
0.24603867530822754,
0.6308523416519165,
-0.34300899505615234,
-0.41074851155281067,
0.4292241930961609,
1.3324451446533203,
-0.005602680612355471,
-0.20323844254016876,
0.3785289525985718,
0.23305796086788177,
0.18487022817134857,
-0.4065835773944855,
0.4115663170814514... |
def tstrutil _ getwidv ( * args ) : return _ snap. tstrutil _ getwidv ( * args ) | [
-0.5372212529182434,
0.2915791869163513,
0.23901255428791046,
-0.8270389437675476,
0.702754557132721,
-0.10673271864652634,
0.873650074005127,
-0.11875396966934204,
-0.9014127850532532,
-1.5189123153686523,
-0.44533371925354004,
1.0967564582824707,
0.4535057544708252,
0.24883654713630676,
... |
def test _ max _ length ( self ) : field = omniemailfield. _ meta. get _ field ('max _ length') self. assertisinstance ( field, models. positiveintegerfield ) self. asserttrue ( field. blank ) self. assertfalse ( field. null ) self. assertequal ( field. default, 255 ) | [
0.784284770488739,
0.6991916298866272,
0.1847909837961197,
0.008522103540599346,
0.4656759202480316,
1.2062605619430542,
-0.7882820963859558,
0.20513087511062622,
1.0878410339355469,
-0.25564420223236084,
-0.44994914531707764,
-0.7122970819473267,
-0.4125036299228668,
-0.00671215308830142,... |
def fight ( ai1, ai2, times ) : blackwins = 0 whitewins = 0 for i in range ( times ) : p = subprocess. popen ( [ ". / nettestgame ", ai1, ai2, " - silent " ], stdout = subprocess. pipe, stderr = subprocess. pipe ) out, err = p. communicate ( ) if " black " in out : blackwins + = 1 elif " white " in out : whitewins + = ... | [
-0.20659573376178741,
0.437051922082901,
0.754503071308136,
-0.3865449130535126,
0.762283444404602,
-0.5609899759292603,
-0.168628990650177,
-0.5450926423072815,
-0.3115651309490204,
0.2197590470314026,
0.2777235805988312,
-0.047335971146821976,
0.012411528266966343,
1.5383479595184326,
... |
def nerv _ obj _ fct ( x, p _ ij, log _ p _ ij, w _ cf, n, n _ components, arr _ den _ s _ i ) : x = np. reshape ( a = x, newshape = ( n, n _ components ) ) # computing the lds similarities q _ ij, log _ q _ ij = sne _ lds _ similarities _ fast ( dsm _ lds = pairwise _ dist ( x = x, metric ='sqeuclidean ', tomatrix = t... | [
0.04431876167654991,
-0.032329678535461426,
0.6805638670921326,
-0.49103185534477234,
-0.4753798842430115,
-0.38690245151519775,
0.07172844558954239,
-0.3432035744190216,
0.044927701354026794,
-0.21823912858963013,
0.08238193392753601,
0.09808237850666046,
0.7147486805915833,
-0.3805242478... |
def main ( pages, url ) : for page _ image, ocr in pages : markers = find _ markers ( ocr ) if has _ twenty _ pages _ layout ( markers ) : yield from process _ twenty _ product _ layout _ page ( ocr, page _ image ) else : yield from process _ eight _ products _ layout _ page ( ocr, page _ image ) | [
-0.7123997807502747,
-0.5590403079986572,
0.4171226918697357,
0.5545644760131836,
0.4798833727836609,
-0.43050727248191833,
1.008894920349121,
0.004023092798888683,
1.0926234722137451,
-0.06395163387060165,
0.2699272036552429,
-0.5478125810623169,
0.8292098045349121,
0.21326644718647003,
... |
def _ _ init _ _ ( self, env ) : gym. wrapper. _ _ init _ _ ( self, env ) self. lives = 0 self. was _ real _ done = true | [
-0.4089146554470062,
0.4396643042564392,
0.5755137205123901,
0.3849080502986908,
1.1229548454284668,
0.8204171061515808,
-0.31973540782928467,
0.544431746006012,
0.019540801644325256,
-0.01529643777757883,
-0.43706783652305603,
-0.15475863218307495,
0.7973648309707642,
1.5963395833969116,
... |
def test _ parse _ symbol ( self ) : test _ cases = { " mgt " : " mg ", " mgt1 " : " mg ", " h ( 46a ) " : " h ", " o ( m ) " : " o ", " n ( am ) " : " n ", " h1n2a " : " h ", " co ( 1 ) " : " co ", " wat1 " : " o ", " mgm2a " : " mg ", " cax " : " ca ", " x1 " : " x ", " x " : " x ", " oa1 " : " o ", " naa2 " : " na "... | [
-0.474610298871994,
-0.046305712312459946,
0.8793968558311462,
-0.09773016721010208,
-0.210737407207489,
0.009589000605046749,
0.6418214440345764,
-0.4056856334209442,
0.21803900599479675,
0.17889751493930817,
-0.8703114986419678,
-0.4705343246459961,
0.7825247645378113,
0.0610864385962486... |
def get _ object ( self ) : return self. request. user | [
-1.149911642074585,
-0.7692839503288269,
0.5727499723434448,
0.9185506105422974,
0.29451194405555725,
0.7438656687736511,
0.7816067934036255,
-1.0618140697479248,
0.041329558938741684,
-1.4683316946029663,
0.30685046315193176,
0.7021169662475586,
0.47223612666130066,
-1.3075120449066162,
... |
def _ calculate _ normalised _ dispersion _ 3d ( meas _ input, input _ files, beta, header ) : output, accelerator = meas _ input. outputdir, meas _ input. accelerator model = accelerator. model driven _ model = accelerator. model _ driven if accelerator. excitation else model plane = " x " df _ orbit = _ get _ merged ... | [
0.35533303022384644,
-0.09436079114675522,
0.8909233808517456,
-0.42322927713394165,
-0.02504187449812889,
0.30160558223724365,
0.02744358219206333,
0.6079027056694031,
-0.5371801257133484,
0.7477306127548218,
-0.29391101002693176,
0.1250072568655014,
-0.6699052453041077,
0.072599716484546... |
def _ validate _ min _ max ( cls, arg : int | tuple [ int, int, int ] | none, name : str, default : int ) - > tuple [ int, int, int ] : if isinstance ( arg, ( int, float ) ) : return ( int ( arg ), ) * 3 elif isinstance ( arg, ( list, tuple ) ) : if len ( arg )! = 3 : raise valueerror ( f " { name } sequence must be le... | [
-0.9297667741775513,
0.5229499936103821,
0.6828761100769043,
-0.16603130102157593,
-0.19609341025352478,
0.018780840560793877,
-1.1601420640945435,
-0.3212914764881134,
-0.10028001666069031,
0.6807634830474854,
-0.5179061889648438,
-0.16033302247524261,
-0.7833126783370972,
-0.007892669178... |
def _ listallsteps ( self ) : response = self. _ liststeps ( none ) steps = [ ] steps. extend ( response. steps ) while response. nextpagetoken : response = self. _ liststeps ( response. nextpagetoken ) steps. extend ( response. steps ) return steps | [
0.15049181878566742,
-0.6874363422393799,
0.23151841759681702,
0.3581303060054779,
0.875484049320221,
0.0057091498747467995,
-1.3976260423660278,
-0.4681641161441803,
0.8275557160377502,
-1.0936444997787476,
-0.22524981200695038,
-0.32284244894981384,
-0.05377337336540222,
1.78237843513488... |
def build _ hud _ line ( self ) : for i in range ( screen _ width / / green _ line _ size + 1 ) : pixel = pygame. surface ( ( green _ line _ size, green _ line _ size ) ) pixel. fill ( green ) corner = pixel. get _ rect ( center = ( i * green _ line _ size, screen _ height - 70 ) ) dictionary = { " pixel " : pixel, " c... | [
-0.39718979597091675,
-0.061977602541446686,
0.57499098777771,
-0.33063602447509766,
1.124691367149353,
0.8370897173881531,
-1.0185383558273315,
-0.046752724796533585,
-0.4305829703807831,
-0.5036783218383789,
-0.09374190866947174,
-0.792026698589325,
0.827808678150177,
0.5548411011695862,... |
def addbacksorted ( self, * args ) : return _ snap. tintprv _ addbacksorted ( self, * args ) | [
-0.7579025626182556,
0.33634766936302185,
0.8302835822105408,
0.3246716856956482,
0.45166462659835815,
-0.3241007924079895,
0.09186600893735886,
-0.8366583585739136,
-0.3020792305469513,
-0.7707942724227905,
-0.523744523525238,
0.2547645568847656,
-2.412587881088257,
0.4010733962059021,
... |
def union ( self, * args ) : return _ snap. ttable _ union ( self, * args ) | [
-1.5815200805664062,
0.9008824229240417,
0.26979702711105347,
0.5475826859474182,
0.5325432419776917,
0.25520938634872437,
0.8007559180259705,
-0.011111739091575146,
-0.8647187948226929,
0.08012352883815765,
-0.6930375695228577,
-0.6192161440849304,
-0.11141543090343475,
0.4121187925338745... |
def test _ promote _ x _ y _ coords ( self ) : inputs = [ ( get _ ls2 _ test _ bbox _ data ( ) ), ( get _ ls2 _ test _ y _ line _ data ( ) ), ( get _ ls2 _ test _ x _ line _ data ( ) ), ( get _ ls2 _ test _ dot _ line _ data ( ) ), ] for data, input _ files in inputs : with self. subtest ( data = data, input _ files = ... | [
-0.0829659104347229,
0.5141791701316833,
0.6455205082893372,
0.18712085485458374,
0.23682981729507446,
0.21384860575199127,
-0.0855690985918045,
0.011981403455138206,
-0.40327978134155273,
-0.48625266551971436,
-0.5278832912445068,
-0.04560915753245354,
-0.02642500400543213,
-0.01711245812... |
def send _ command ( self, command ) : request _ body = self. build _ request ( command ) paths _ for _ commands = { " turn _ on " : " switch ", " turn _ off " : " switch ", " get _ info " : " info " } path = paths _ for _ commands [ command ] try : response = requests. post ( f " http : / / { self. device _ ip } : 808... | [
-1.8509355783462524,
-0.19237308204174042,
0.6508455276489258,
0.39400964975357056,
0.4942628741264343,
-0.7029549479484558,
-0.6449236869812012,
-0.9122178554534912,
-0.199672669172287,
-0.1153344064950943,
-0.21913407742977142,
0.32667872309684753,
-0.6150858998298645,
0.7553713917732239... |
def run ( self, gnupg _ commands, args = none, create _ fhs = none, attach _ fhs = none ) : if args is none : args = [ ] if create _ fhs is none : create _ fhs = [ ] if attach _ fhs is none : attach _ fhs = { } for std in _ stds : if std not in attach _ fhs \ and std not in create _ fhs : attach _ fhs. setdefault ( std... | [
0.04379735514521599,
0.1646672487258911,
0.661165714263916,
0.2591301202774048,
0.41278573870658875,
0.6057345271110535,
-0.19124972820281982,
-0.43033018708229065,
-0.4229707419872284,
-0.2853523790836334,
0.329415887594223,
0.2711586058139801,
-0.7147077918052673,
1.0199357271194458,
0... |
def handleattack ( self, event ) : if event. type = = pygame. keyup : if event. key = = pygame. k _ space : self. resetselected ( ) if self. attackchoice : for i in range ( 0, configuration. board _ size ) : if graphicsdevice. ismouseinside ( event, pygame. rect ( configuration. card _ index _ board _ top _ pos [ i ], ... | [
0.0765654444694519,
-0.240835502743721,
1.150079607963562,
0.3417021632194519,
0.2705170214176178,
-0.5070852637290955,
0.8350555896759033,
-0.4118301570415497,
0.278003066778183,
0.42927590012550354,
0.281354159116745,
0.3958352208137512,
-0.15282966196537018,
0.0009308389853686094,
1.2... |
def setval ( self, * args ) : return _ snap. pneanetv _ setval ( self, * args ) | [
-1.2723904848098755,
1.0151201486587524,
0.5970807671546936,
0.8071937561035156,
0.17633391916751862,
1.154111385345459,
-0.341467946767807,
-0.06822624057531357,
-0.7255024313926697,
-0.6028635501861572,
-0.18044520914554596,
-1.022334337234497,
0.3467307984828949,
0.937701404094696,
-0... |
def genprefattach ( * args ) : return _ snap. genprefattach ( * args ) | [
-0.7740089893341064,
0.7427453398704529,
0.6978908181190491,
1.274006724357605,
-0.0797852948307991,
0.8003401160240173,
1.554025411605835,
-0.13847124576568604,
-0.6910187005996704,
-1.3745625019073486,
-0.45068079233169556,
-1.2012238502502441,
0.0557098388671875,
1.179463505744934,
0.... |
def testcomputation _ 8 ( self ) : ( w, h ) = self. im8. getsize ( ) for i in range ( 20 ) : exp _ histo = 256 * [ 0 ] for wi in range ( w ) : for hi in range ( h ) : vi = random. randint ( 0, 255 ) self. im8. setpixel ( vi, ( wi, hi ) ) exp _ histo [ vi ] = exp _ histo [ vi ] + 1 obt _ histo = gethistogram ( self. im8... | [
-0.17700891196727753,
0.6672143936157227,
0.43540337681770325,
-0.21218471229076385,
0.956538736820221,
-0.3229145109653473,
0.8502669930458069,
0.643207311630249,
1.034233808517456,
0.09763441234827042,
-0.8955258131027222,
0.06974822282791138,
-0.22794318199157715,
0.7072593569755554,
... |
def _ _ str _ _ ( self ) : return self. parish | [
-0.06299425661563873,
-1.8054782152175903,
0.39390164613723755,
-1.8193377256393433,
-0.8680198788642883,
0.8408080339431763,
0.2666298449039459,
-0.29596850275993347,
0.7168663144111633,
-0.6218136548995972,
1.1796127557754517,
1.2065871953964233,
0.0864313617348671,
-0.37696775794029236,... |
def mean _ squared _ error ( x : jaxarray, y : jaxarray, keep _ axis : optional [ iterable [ int ] ] = ( 0, ) ) - > jaxarray : func _ name ='mean _ squared _ error'if x. shape! = y. shape : warnings. warn ('{ } { } : arg1 { } and arg2 { } '. format ( warn _ shape _ mismatch, func _ name, x. shape, y. shape ) ) loss = (... | [
-0.3432503342628479,
-0.5434336066246033,
0.8461257219314575,
-0.25748568773269653,
-0.5717577934265137,
-0.30903688073158264,
-0.6345105767250061,
-1.7386459112167358,
-0.22793063521385193,
1.0476839542388916,
-0.030907290056347847,
1.1545841693878174,
0.420321524143219,
-0.20215496420860... |
def process _ wheel _ info _ file ( file ) : metadata _ lines = file. read ( ). splitlines ( ) new _ metadata _ lines = [ ] for i in range ( len ( metadata _ lines ) ) : line = metadata _ lines [ i ] if re. match ( " ^ tag :. * - linux _ x86 _ 64 $ ", line ) : new _ line = line. replace ( " - linux _ x86 _ 64 ", " - ma... | [
0.8284885883331299,
-0.6042037606239319,
0.8785210847854614,
-0.025826379656791687,
0.7721397280693054,
0.04975263774394989,
-0.22497598826885223,
1.1109706163406372,
-1.3895946741104126,
0.711033284664154,
0.27996379137039185,
-0.04109703004360199,
0.7905551791191101,
1.1306782960891724,
... |
def remove _ card ( self, removeable _ card ) : self. deck. remove ( card. check ( removeable _ card ) ) | [
0.04174777492880821,
0.3058675527572632,
0.30094680190086365,
0.597859799861908,
-0.5359495878219604,
0.2546382248401642,
-0.6470551490783691,
1.3236768245697021,
-0.07937341928482056,
0.3104315400123596,
-0.44361865520477295,
0.004052710719406605,
-0.6632700562477112,
0.3554127514362335,
... |
def get _ user ( self, userid ) : return api. user. get ( userid = userid ) | [
-1.188503384590149,
-0.3144276440143585,
-0.1593586951494217,
0.1957271546125412,
-0.07122040539979935,
-0.06445305794477463,
-0.5553374886512756,
-1.1295524835586548,
0.4570067822933197,
-0.3296109437942505,
-0.3434199392795563,
0.44193556904792786,
0.06986626237630844,
0.7160879969596863... |
def post ( self, host ) : # here api should go to keystone api v3 and create trust host _ dct = host. as _ dict ( ) # fixme ( sbauza ) : db exceptions are currently catched and return a lease # equal to none instead of being sent to the api host = pecan. request. hosts _ rpcapi. create _ computehost ( host _ dct ) if h... | [
-0.25522053241729736,
0.4790519177913666,
0.5567877888679504,
0.47872501611709595,
-0.07504889369010925,
0.8213573098182678,
-0.6713602542877197,
0.0054455045610666275,
-0.12345444411039352,
0.380082905292511,
-0.19344286620616913,
-0.4340398609638214,
-1.290501594543457,
-0.21240070462226... |
def update ( self, width = 3, rce _ line = false ) : self. draw _ map ( width ) if rce _ line : self. draw _ racing _ line ( ) | [
-0.8705589175224304,
-0.33486947417259216,
0.3097771108150482,
0.2719832956790924,
0.0824260264635086,
0.6837548017501831,
-0.5214155316352844,
0.15844939649105072,
0.0554373636841774,
-0.33779963850975037,
0.7647351622581482,
-0.6071105599403381,
-0.2554214894771576,
0.20181751251220703,
... |
def refresh _ cache ( self, path, encoding = none ) : path = self. absolute ( path ) encoding = encoding or self. encoding data = read _ from ( path, encoding = encoding ) mtime = os. stat ( path ). st _ mtime self. cache [ path ] = ( mtime, data ) | [
-0.4353478252887726,
-0.6196591854095459,
0.4782813787460327,
-0.5324260592460632,
-1.2804585695266724,
0.03724100440740585,
-1.0160744190216064,
-0.3600061535835266,
-0.005385540425777435,
0.80413818359375,
-0.4629254639148712,
1.2199623584747314,
0.5307689905166626,
0.039893973618745804,... |
def exposeproject ( _ file ) : project _ root = path ( _ file ). abspath ( ). dirname ( ) sys. path. append ( project _ root ) | [
0.5618442296981812,
0.2924233376979828,
0.5911017656326294,
0.23438198864459991,
0.4155382513999939,
1.2753974199295044,
1.5282504558563232,
0.034618131816387177,
-0.49552327394485474,
-0.13979069888591766,
0.42162513732910156,
0.8966711759567261,
0.07301552593708038,
0.9774816632270813,
... |
def calibration ( self ) : if self. _ debug : print ( self. _ debug _ info,'turn to " calibration " position') self. go _ forward ( 50 ) self. cali _ forward _ a = self. forward _ a self. cali _ forward _ b = self. forward _ b | [
0.06735658645629883,
-0.2639737129211426,
0.21714916825294495,
-0.021316904574632645,
-0.11849712580442429,
0.29577749967575073,
1.0798301696777344,
0.17698535323143005,
-0.39039936661720276,
0.250949501991272,
-0.42094549536705017,
0.05157262459397316,
0.11214125156402588,
0.1783066838979... |
def _ _ init _ _ ( self, * args ) : _ snap. tint _ swiginit ( self, _ snap. new _ tint ( * args ) ) | [
-0.2038986086845398,
-0.05757827311754227,
0.14523524045944214,
0.5633012056350708,
0.6407616138458252,
-0.40207597613334656,
0.4075969457626343,
-0.4916287064552307,
-0.4062466621398926,
0.29147228598594666,
-1.0401525497436523,
0.34865885972976685,
-0.6417099833488464,
0.4745120406150818... |
def test _ recipient _ field _ field ( self ) : field = omniformemailconfirmationhandler. _ meta. get _ field ('recipient _ field') self. assertisinstance ( field, models. foreignkey ) self. assertequal ( field. rel. to, omniemailfield ) self. assertfalse ( field. blank ) self. assertfalse ( field. null ) | [
0.04748833552002907,
0.32687684893608093,
0.2966479957103729,
-0.6402623653411865,
0.9026461243629456,
0.20823337137699127,
0.43457263708114624,
0.47184696793556213,
0.7579928040504456,
0.19499067962169647,
-0.6912670135498047,
-0.34672266244888306,
0.22631698846817017,
0.10630377382040024... |
def validate _ trap ( self, system _ name, value, oid _ string = none, match _ oid _ op _ value _ pair = " no " ) : stats = [ ] status = false wdesc = " validate the received trap messages from { } ". format ( system _ name ) utils. testcase _ utils. psubstep ( wdesc ) snmp _ parameters = ['ip ','snmp _ trap _ port'] s... | [
-0.6049098372459412,
-0.1325078308582306,
0.7294809818267822,
-0.779222309589386,
-0.2878400683403015,
0.16911455988883972,
0.21463839709758759,
-0.48110243678092957,
0.03449775278568268,
0.37100765109062195,
0.2760349214076996,
-0.19992196559906006,
-0.10668347775936127,
0.303937613964080... |
def _ add _ piece ( self, piece ) : self. _ board [ piece. x ] [ piece. y ] = piece self. _ pieces [ piece. color ]. append ( piece ) | [
-0.7871981263160706,
0.6426700353622437,
0.3745265603065491,
-1.1439208984375,
0.07742198556661606,
0.7460116147994995,
-0.8032511472702026,
-0.2529444098472595,
-0.07590974122285843,
0.058459918946027756,
-0.004300700966268778,
0.28877171874046326,
0.13446487486362457,
0.42431941628456116... |
def recall ( self, args ) : self. remember ( args ) | [
0.6988176107406616,
0.050564296543598175,
0.12899483740329742,
-0.7968853712081909,
1.0810223817825317,
0.2900053560733795,
0.3749772906303406,
-0.08514579385519028,
0.1410098820924759,
-0.39170360565185547,
-0.30624496936798096,
0.7299751043319702,
-0.9297358393669128,
-0.124031201004982,... |
def test _ embedded _ string _ in _ string ( self, tcex, variable, embedded _ value, resolved _ value ) : self. stage _ data ( tcex ) tcex. playbook. create _ string ( variable, embedded _ value ) assert tcex. playbook. read ( variable ) = = resolved _ value # print ('\ nredis : { } '. format ( tcex. playbook. read ( v... | [
0.31197717785835266,
-0.32967978715896606,
0.5618042945861816,
-0.3691468834877014,
0.20913568139076233,
0.732283890247345,
-0.033526305109262466,
-0.31573137640953064,
0.21976372599601746,
-0.3501345217227936,
-0.14209109544754028,
0.052515480667352676,
-1.3502243757247925,
-0.78244256973... |
def swisspairings ( ) : nextround = [ ] playersinfo = playerstandings ( ) # loop thru the results contained in the varaible playersinfo, which # contains the players id, players name, the players number of wins and # the players number of matches and reduce it to a new list called # nextround containing a list of tuple... | [
-0.4260796308517456,
-0.38009515404701233,
0.763163685798645,
0.16119714081287384,
-0.8364436030387878,
-0.018906688317656517,
0.4069155156612396,
0.3461976647377014,
-0.15582714974880219,
0.01000131480395794,
-0.6402174234390259,
-0.34185710549354553,
-1.0925344228744507,
0.45060744881629... |
def stanza _ storage ( method ) : storage = bookmarks ( ) for b in ( b for b in bookmarks if b. method = = method ) : storage. append ( b. stanza ( ) ) return storage | [
-0.39674824476242065,
0.3523266911506653,
0.2989972233772278,
0.6987876892089844,
-0.39628100395202637,
-0.7774303555488586,
0.2930440902709961,
-0.8001050353050232,
0.008706297725439072,
0.036824434995651245,
0.1120099201798439,
-0.3465023636817932,
-0.08708477765321732,
0.237850666046142... |
def isfltattrdeletedn ( self, * args ) : return _ snap. tneanet _ isfltattrdeletedn ( self, * args ) | [
-0.8433208465576172,
0.22438129782676697,
0.4774380326271057,
-0.6916254162788391,
0.6214073896408081,
-0.7377275228500366,
-0.12631627917289734,
-0.3279312252998352,
0.32564327120780945,
-1.182191252708435,
-0.37866586446762085,
-0.09056913107633591,
0.5409442782402039,
0.9261173009872437... |
def disable _ timings ( ) - > none : if pyglet. window. basewindow. dispatch _ event! = _ dispatch _ event : raise valueerror ( " timings are not enabled. " ) # restore the original pyglet dispatch event function pyglet. window. basewindow. dispatch _ event = _ pyglets _ dispatch _ event # type : ignore clear _ timings... | [
0.6492496728897095,
1.2790241241455078,
0.5768277049064636,
0.36598917841911316,
-0.41568082571029663,
0.7827122211456299,
1.0529972314834595,
0.6830673813819885,
0.6370254158973694,
0.4371652901172638,
-0.5567054152488708,
-0.03956969082355499,
0.15940509736537933,
0.7933843731880188,
0... |
def minesweeper ( ) : # initialize gm gm = gamemanager ( ) gm. start _ game ( ) while true : coor = list ( map ( int, click. prompt ('select a cell by coordinate i. e. ( 0, 0 ) ', type = str ). split ( ) ) ) gm. reveal ( coor ) # a cell has been selected if gm. selected _ mine ( coor ) : # selecting this cell kills the... | [
-0.5467475652694702,
-0.8971583247184753,
0.6786779165267944,
1.2409157752990723,
0.18124425411224365,
0.2529483437538147,
0.009540784172713757,
-0.6991956830024719,
-0.32379257678985596,
0.02149379439651966,
0.1353614628314972,
0.14841730892658234,
-0.2065768539905548,
-0.2373758554458618... |
def describe _ user _ pool ( userpoolid = none ) : pass | [
-0.4343317747116089,
0.34250104427337646,
-0.029204539954662323,
0.5871915221214294,
0.14363524317741394,
0.1309618502855301,
0.8435020446777344,
-0.8120001554489136,
0.7072731256484985,
-0.2776755690574646,
-0.26606088876724243,
2.16703462600708,
-0.8303815126419067,
-0.16567182540893555,... |
def supports ( uri ) : return false | [
-1.7066478729248047,
0.8010386228561401,
0.456459641456604,
0.7353333830833435,
-0.6055641174316406,
0.7461579442024231,
-0.654466450214386,
0.8005836009979248,
0.29989516735076904,
-1.1925177574157715,
-0.16484388709068298,
-1.0832544565200806,
-1.6908154487609863,
-0.4022889733314514,
... |
def add _ modules ( self ) : self. add _ inst ( name = " bl _ inv ", mod = self. inv, offset = self. bl _ inv _ offset ) self. connect _ inst ( [ " bl [ 0 ] ", " out ", " vdd ", " gnd " ] ) self. add _ inst ( name = " bl _ access _ tx ", mod = self. access _ tx, offset = self. access _ tx _ offset, rotate = 90 ) # d, g... | [
-0.5137348175048828,
0.20605643093585968,
0.7029647827148438,
-0.6542567610740662,
0.3565034866333008,
0.6272090077400208,
0.5090795159339905,
-0.3004961907863617,
0.3772883415222168,
0.2397606521844864,
-0.21067826449871063,
0.7405465841293335,
-0.4024135172367096,
0.19400550425052643,
... |
def model _ to _ heading ( model _ xy, car _ center _ xy ) : dx = 1. * model _ xy [ 0 ] - car _ center _ xy [ 0 ] dy = 1. * model _ xy [ 1 ] - car _ center _ xy [ 1 ] heading = - np. arctan2 ( dx, - dy ) * 180 / np. pi return heading | [
-0.6035494208335876,
-0.6667578816413879,
0.5069819688796997,
-1.1504484415054321,
-0.16386793553829193,
0.11034520715475082,
-1.0539391040802002,
-0.7039846777915955,
-0.6481898427009583,
0.8319434523582458,
-0.49348217248916626,
-0.006157763302326202,
0.19541744887828827,
-0.981928825378... |
def arg _ where ( mask : " series " ) : return mask. arg _ true ( ) | [
0.04889875277876854,
0.4601497948169708,
0.36686307191848755,
0.4658433198928833,
0.18702667951583862,
-0.062412381172180176,
0.11765509098768234,
-0.6738203167915344,
-1.0275686979293823,
0.780047595500946,
0.8512039184570312,
0.8157945275306702,
0.4019525349140167,
-1.3293877840042114,
... |
def get _ account _ statement ( api _ key : str = api _ key, api _ secret : str = api _ secret, ) : client = privatebitwyrewsclient ( api _ key = api _ key, api _ secret = api _ secret ) client. account _ statement ( ) payload = " " # payload always empty for statements & balance while true : print ( " " ) print ( f " ... | [
-0.42406103014945984,
-0.7150775790214539,
0.8741305470466614,
-0.7823817133903503,
0.1657574474811554,
-0.6181346774101257,
-0.2024078667163849,
-1.6330245733261108,
-0.19449003040790558,
0.16442832350730896,
0.31244733929634094,
1.4266294240951538,
-0.6077556610107422,
-0.179180175065994... |
def make _ metric _ for _ mq _ manager _ status ( mq _ manager _ status _ data ) : template _ string ='default = " { 0 } ", instname = " { 1 } ", instpath = " { 2 } ", instver = " { 3 } ", \ qmname = " { 4 } ", standby = " { 5 } " '. format ( mq _ manager _ status _ data [ " default " ], mq _ manager _ status _ data [ ... | [
0.26659685373306274,
-1.3960974216461182,
0.2410542070865631,
-0.9166494011878967,
-1.1517961025238037,
0.5340577363967896,
-0.8395456671714783,
0.43525058031082153,
-0.7068513035774231,
0.3775983154773712,
0.10244836658239365,
-0.11525996029376984,
0.4151603579521179,
0.3560667037963867,
... |
def get _ friends ( self, users ) : output = { } for user in users : u _ output = self. get _ friends _ of _ user ( user ) output [ user ] = u _ output return output | [
-1.4363676309585571,
0.1726507991552353,
0.3707035481929779,
1.6510487794876099,
-0.6002097129821777,
-0.7528698444366455,
0.2541389465332031,
-0.49594998359680176,
-1.1203383207321167,
-0.02563677355647087,
-0.8241065144538879,
-0.7366347312927246,
-0.22588907182216644,
0.5436941385269165... |
def literals ( * g ) : return grammars ( literal, g ) | [
0.4196135699748993,
-0.08301690220832825,
0.21310967206954956,
-0.2734909653663635,
-1.0177772045135498,
-0.09677501022815704,
-1.1163440942764282,
0.055016957223415375,
-0.9722259044647217,
-0.14491432905197144,
0.06042315810918808,
0.15232621133327484,
-0.21459776163101196,
-0.4845610857... |
def list ( request, api _ version, queryset, username = none, user _ field = " created _ by ", format = settings. api _ default _ format, paginate _ by = 50, serialize _ method = none ) : # parse the query string for supported options. query = dict ( request. request. items ( ) ) hash = sha1 ( request. path + str ( sor... | [
-0.6858736872673035,
-0.3770028352737427,
0.7158559560775757,
0.09697359800338745,
-0.39111921191215515,
-0.9426321983337402,
-0.050795115530490875,
-0.14074933528900146,
0.2674638330936432,
-0.020600978285074234,
0.27937525510787964,
0.5578110814094543,
0.3252987861633301,
-0.264794260263... |
def _ _ lt _ _ ( self, other : edge ) - > any : other _ left _ orientation = self. orientation _ of ( other. left ) other _ right _ orientation = self. orientation _ of ( other. right ) if other _ left _ orientation is other _ right _ orientation : return other _ left _ orientation is orientation. counterclockwise elif... | [
0.36348381638526917,
0.00625148368999362,
1.1773988008499146,
-0.7494052052497864,
-0.11441390961408615,
0.09259399771690369,
0.4485701620578766,
-1.5728574991226196,
0.37031927704811096,
0.7255997657775879,
-0.11321065574884415,
-0.6790451407432556,
-0.5342726707458496,
-0.134506911039352... |
def defrag ( self, onlynodelinks = false ) : return _ snap. tngraphmp _ defrag ( self, onlynodelinks ) | [
-0.2408592253923416,
0.734348475933075,
-0.023694029077887535,
0.14126691222190857,
0.8313969969749451,
-0.20021674036979675,
1.3561302423477173,
0.6358357071876526,
-0.8000951409339905,
-1.069220781326294,
0.6997484564781189,
-0.46858978271484375,
-0.703686535358429,
1.1653966903686523,
... |
def _ _ call _ _ ( self, func = none, *, support _ required = " compile - and - run " ) : if support _ required not in [ " compile - and - run ", " compile - only ", " optional " ] : raise valueerror ( f " unknown feature support type : { support _ required } " ) def wrapper ( func ) : for mark in self. marks ( support... | [
-0.526680588722229,
0.07530342787504196,
0.33178484439849854,
0.31067970395088196,
0.6476185321807861,
-0.27899235486984253,
-0.18117068707942963,
1.038884162902832,
0.2418900430202484,
-0.6270856857299805,
0.10324607044458389,
0.564943253993988,
0.4229734539985657,
0.4460235834121704,
0... |
def test _ atomic _ hex _ binary _ max _ length _ 2 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ max _ length _ 3 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - maxlength - 3. xsd ", instance ... | [
0.32465672492980957,
0.17066067457199097,
0.4113495647907257,
0.822155237197876,
-0.2927495539188385,
0.8240952491760254,
-0.7726089358329773,
0.267141729593277,
-0.09302458167076111,
0.6870421171188354,
-0.9616546630859375,
-0.415244996547699,
0.01715206168591976,
0.1658739596605301,
0.... |
def test _ root _ url _ resolves _ to _ change _ password _ view ( self, client, proto _ user ) : client. login ( username = f " { proto _ user. username } ", password = " m = 9uak ^ c, tbq9n = t ", ) response = client. get ( reverse ( " change _ password " ) ) assert response. status _ code = = 200 asserttemplateused ... | [
-0.18708448112010956,
0.21805378794670105,
0.49493569135665894,
0.806607186794281,
0.3633430600166321,
-0.32537856698036194,
0.2460480034351349,
0.7059482932090759,
-0.16657915711402893,
-0.7505863904953003,
-0.1196349635720253,
0.7924972772598267,
0.37481942772865295,
0.5999892950057983,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.