text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
async def train _ probe ( self ) : for nexus in self. units ( nexus ). ready. noqueue : if self. can _ afford ( probe ) : await ( self. do ( nexus. train ( probe ) ) ) | [
-0.370501309633255,
0.642507791519165,
0.5126851797103882,
0.45381176471710205,
0.3564397692680359,
-0.4803556501865387,
-0.16383279860019684,
-0.007622512988746166,
0.05253874883055687,
0.5997365117073059,
-0.006790890358388424,
-0.3644452691078186,
-0.27849918603897095,
-0.39304450154304... |
def set _ up ( ) : fred. urlopen = mock ( ) fred. xml2dict = mock ( ) fred. api _ key ='my _ api _ key ' | [
-1.536665678024292,
-0.168432354927063,
0.27078256011009216,
-0.34048303961753845,
0.9871193766593933,
-0.5185589790344238,
0.23258143663406372,
0.6901922821998596,
-0.4067625105381012,
-0.3730642795562744,
-0.41247424483299255,
-0.7744607329368591,
-0.3991614878177643,
0.4464838206768036,... |
def list ( ctx, id ) : # get the initialized prism class p = ctx. obj [ " p " ] # list the datasets status = p. list _ dataset ( dataset _ id = id ) # print message if id is none : click. echo ( " there are { } api datasets ". format ( status [ " total " ] ) ) click. echo ( json. dumps ( status [ " data " ], indent = 2... | [
-0.821740448474884,
0.6001911759376526,
0.6090992093086243,
-0.6384264826774597,
-0.09444444626569748,
-0.6263668537139893,
-0.818302571773529,
0.713587760925293,
1.2442680597305298,
-0.5032779574394226,
-0.9220623970031738,
1.456102728843689,
-0.8728139996528625,
0.025793328881263733,
-... |
def computeactionfromqvalues ( self, state, hand _ index, ingame ) : # list of legal actions actions = self. actionswithhandindex ( state, hand _ index, ingame ) # check if at terminal state if len ( actions ) = = 0 : return none tuplelist = [ ] for action in actions : # compute q values for each action tuplelist. appe... | [
-0.6126387119293213,
-0.30493542551994324,
0.3588961362838745,
0.15052218735218048,
0.04775703698396683,
-0.08373816311359406,
-0.7626191973686218,
-0.3436250686645508,
-0.13418006896972656,
0.15145571529865265,
0.14871633052825928,
0.21942731738090515,
-0.12520679831504822,
-0.01107306592... |
def try _ filter ( fonction, image, size, nb _ time ) : color ='gray'# calcul affichage rows = int ( np. sqrt ( nb _ time + 1 ) ) cols = int ( ( nb _ time + 1 ) / rows ) + 1 for j in size : titre = titre ='image with'+ str ( fonction ) [ 9 : str ( fonction ). find ('at') ] +'disk ='titre = titre + str ( j ) fig18 = aff... | [
0.17545972764492035,
0.974706768989563,
0.8764795660972595,
-0.535262942314148,
-0.304122656583786,
-0.2848120331764221,
0.10337281227111816,
-0.2802208960056305,
-1.2590378522872925,
0.368581622838974,
0.3854254186153412,
0.5589098334312439,
0.20662696659564972,
0.3089262843132019,
0.71... |
def process _ person ( self, person, reference = true ) : # a non - person : if person is none : return # a person we have seen before : if person. handle in self. referenced [ " person " ] : return # a person that we should not add : if ( self. restricted _ to [ " person " ] and person. handle not in self. restricted ... | [
-0.13326193392276764,
-0.4478280544281006,
1.004085659980774,
-0.5075729489326477,
0.2067106068134308,
0.11904838681221008,
0.6770856380462646,
-0.373162180185318,
0.2655923068523407,
-0.50248122215271,
0.04159490019083023,
-0.013861221261322498,
-0.2659124433994293,
1.1762586832046509,
... |
def sub _ graph _ matching ( self, sub _ graph, known _ mappings, validate = false ) : pass | [
0.12488184869289398,
-0.04267285019159317,
0.5562486052513123,
1.8242101669311523,
-1.0415565967559814,
0.3788139224052429,
0.02506052888929844,
0.3330058753490448,
-0.08766685426235199,
-0.540464460849762,
-0.4550783634185791,
0.534003734588623,
-0.3388958275318146,
-0.6623208522796631,
... |
def check _ outdated ( session, extras, dilibraries = dilibraries ) : session. log ( f'run check _ outdated for { lib _ name }') standard _ di _ check _ outdated ( session, extras = extras, dilibraries = dilibraries ) | [
-1.439577341079712,
-0.358305424451828,
0.5115967988967896,
0.3750634789466858,
-0.41870152950286865,
-0.013802225701510906,
0.06342336535453796,
0.7543119788169861,
0.6246498823165894,
-0.17194095253944397,
0.31818798184394836,
-0.10911695659160614,
0.6100379824638367,
0.3465934097766876,... |
def getstatusdetails ( self ) : pass | [
0.47133713960647583,
-0.8650432825088501,
0.15132878720760345,
0.9797683954238892,
0.30685701966285706,
0.6577462553977966,
-0.5335745215415955,
-0.15107613801956177,
-0.14226080477237701,
-0.7342138886451721,
-1.2181904315948486,
0.47480928897857666,
-0.15949402749538422,
0.80040830373764... |
def test _ propensity _ migration _ herb _ callable ( self ) : self. cell. propensity _ migration _ herb | [
0.4721461832523346,
0.4081554412841797,
0.44474539160728455,
1.9961345195770264,
1.0980111360549927,
0.5503974556922913,
0.5908706784248352,
-0.13969695568084717,
0.25046226382255554,
-0.036157745867967606,
0.4904649257659912,
0.30960163474082947,
0.7358322143554688,
-0.13522452116012573,
... |
def cmi _ 1d _ ggg ( x, y, z, biascorrect = true, demeaned = false ) : x, y, z = np. atleast _ 2d ( x ), np. atleast _ 2d ( y ), np. atleast _ 2d ( z ) if x. ndim > 2 or y. ndim > 2 or z. ndim > 2 : raise valueerror ( " x, y and z must be at most 2d " ) ntrl = x. shape [ 1 ] nvarx = x. shape [ 0 ] nvary = y. shape [ 0 ... | [
0.5479974746704102,
-0.11975564807653427,
0.942780077457428,
-0.1806471198797226,
-0.8022335171699524,
0.2829177677631378,
0.6784021854400635,
-0.19175702333450317,
-0.2824050486087799,
0.5516901016235352,
0.006704154424369335,
0.27944543957710266,
-1.0020684003829956,
0.14318515360355377,... |
def seasonality ( time, period, amplitude = 1, phase = 0 ) : season _ time = ( ( time + phase ) % period ) / period return amplitude * seasonal _ pattern ( season _ time ) | [
0.4924033284187317,
-0.8056022524833679,
0.601993978023529,
0.7815454006195068,
-0.3808233439922333,
0.12493286281824112,
0.43946731090545654,
0.5039494633674622,
1.05095374584198,
1.352656364440918,
-0.21232347190380096,
1.1681452989578247,
-0.46029889583587646,
-0.4299030601978302,
0.5... |
async def terminate _ provisioned _ product _ async ( self, request : servicecatalog _ 20210901 _ models. terminateprovisionedproductrequest, ) - > servicecatalog _ 20210901 _ models. terminateprovisionedproductresponse : runtime = util _ models. runtimeoptions ( ) return await self. terminate _ provisioned _ product _... | [
-1.590088129043579,
-0.21473006904125214,
0.3328174650669098,
0.8331626057624817,
0.5335915088653564,
0.3272898495197296,
-0.43327221274375916,
-0.9435762763023376,
0.7630969882011414,
-0.2890097498893738,
-0.13129642605781555,
0.39852502942085266,
-0.3929082155227661,
0.1895158290863037,
... |
def create _ panel _ of _ normals ( paths, n, name ) : dfs = [ pd. read _ table ( paths [ 0 ] ) ] for i, path in enumerate ( paths [ 1 : ] ) : df _ to _ concat = pd. read _ table ( path ) dfs. append ( df _ to _ concat ) df = pd. concat ( dfs, axis = 0 ) # shuffle samples to pick from all batches df = df. sample ( frac... | [
-0.676118016242981,
0.22436052560806274,
0.6077733635902405,
0.09980545938014984,
-1.072756052017212,
0.15539656579494476,
0.06330987811088562,
-0.953847348690033,
-0.32120904326438904,
0.5398500561714172,
0.8319165110588074,
-0.3727368712425232,
-0.6478180885314941,
0.234144389629364,
-... |
def getcpuprofile ( self, profiledurationinsec ) : self. send _ getcpuprofile ( profiledurationinsec ) return self. recv _ getcpuprofile ( ) | [
0.08921381086111069,
0.3776876926422119,
0.5578860640525818,
1.4982103109359741,
-0.6850187182426453,
-0.08830761909484863,
0.10195570439100266,
-1.2893253564834595,
-0.9035161137580872,
0.6374976634979248,
-0.8409742712974548,
0.2872897684574127,
-1.5394622087478638,
-0.5049434304237366,
... |
def reset _ step ( self, event _ data = none ) : self. _ delay _ complete = false self. _ step _ triggered = false self. _ step _ complete = false self. reset _ duration ( ) | [
-0.15598909556865692,
0.3164837658405304,
0.269173264503479,
0.9873765110969543,
0.06266012042760849,
-0.29385021328926086,
0.30510368943214417,
0.7371012568473816,
-1.607908010482788,
-0.30131369829177856,
-1.1231656074523926,
0.014476500451564789,
-0.03391804173588753,
0.6778843402862549... |
def cursor _ visible ( self, value ) : if self. _ cursor _ visible! = value : self. _ cursor _ visible = value if self. _ cursor _ visible : pass # # # self. _ group. append ( self. _ cursorwhenidoit ) todo else : pass # # # self. _ group. pop ( ) todo | [
0.062494661659002304,
-0.5917041301727295,
0.6096972823143005,
-0.4195311665534973,
-0.8608888387680054,
0.0906883031129837,
0.7679835557937622,
-0.5318223237991333,
0.24400219321250916,
1.526713490486145,
-1.1314588785171509,
0.39863115549087524,
-0.49744731187820435,
0.5751578211784363,
... |
def test _ atomic _ base64 _ binary _ max _ length _ 2 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ max _ length _ 3 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - maxlength - 3. xsd ... | [
0.41458675265312195,
-0.09727232158184052,
0.33245664834976196,
1.1451269388198853,
-0.1857237070798874,
0.2985823154449463,
-0.7094271779060364,
0.042034123092889786,
0.1455429494380951,
0.7425222396850586,
-0.6459444165229797,
0.23098649084568024,
-0.20965465903282166,
-0.151670083403587... |
def test _ profile _ get ( self ) : logged _ in = self. client. login ( username ='testuser ', password ='12345') response = self. client. get ( self. profile _ url ) self. assertequals ( response. status _ code, 200 ) self. asserttemplateused ( response,'users / profile. html') | [
0.22679616510868073,
0.2951202690601349,
0.5549408197402954,
0.8350606560707092,
0.7921034097671509,
0.26926758885383606,
0.10671675205230713,
0.2694966495037079,
-0.0902600884437561,
-0.9518167972564697,
-0.06766790896654129,
-0.11633643507957458,
0.03325346112251282,
-0.3632186949253082,... |
def netinfo _ network _ addresses ( self, cidr ) : endpoint = " { } / { } ". format ( self. ep _ netinfo _ network _ addresses, cidr ) return self. _ make _ request ( endpoint = endpoint ) | [
-0.9853475093841553,
0.3013332486152649,
0.4943387806415558,
0.21473747491836548,
0.454760879278183,
-0.5176260471343994,
-0.31991904973983765,
-0.3043326139450073,
0.6341468691825867,
-0.5609166026115417,
-0.9711626172065735,
-1.172668218612671,
-0.5821359753608704,
0.33588066697120667,
... |
def show _ delete _ terms ( ) : return { " site _ name " : settings. site _ name } | [
0.4659229815006256,
-0.17377328872680664,
0.13888294994831085,
-1.0646613836288452,
-0.20449715852737427,
-0.8737390637397766,
-0.17014676332473755,
0.018511885777115822,
0.5392472743988037,
1.2573051452636719,
-0.3163851499557495,
0.5780689120292664,
0.7250568270683289,
0.0156132616102695... |
def delete _ api _ v1 ( self, endpoint, params = none, data = none ) : headers = { " authorization " : " % s % s " % ( self. auth. token _ type, self. auth. access _ token ), " content - type " : " application / json " } api _ url = " { } / { } ". format ( self. api _ url, endpoint ) resp = self. session. delete ( api ... | [
-0.9628681540489197,
-0.640838623046875,
0.6732048988342285,
0.40170764923095703,
0.2945771813392639,
-0.431539386510849,
-0.3377342224121094,
0.09581142663955688,
0.4388591945171356,
1.2979727983474731,
-0.07541798055171967,
0.9565559029579163,
-1.3196535110473633,
-0.8618560433387756,
... |
def get _ child _ watcher ( self ) : if self. _ watcher is none : self. _ init _ watcher ( ) return self. _ watcher | [
1.0639976263046265,
-0.539569616317749,
0.5129799246788025,
-0.019604047760367393,
0.0034810444340109825,
0.2755560874938965,
0.14112234115600586,
-0.702691376209259,
-0.5989047288894653,
-1.7704339027404785,
-0.9034428000450134,
0.7630045413970947,
0.043756697326898575,
0.0237758886069059... |
def search _ contact ( self ) : search = input ( " please enter name or phone : " ) print ('- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -') print _ contact ( {'name':'name ','phone':'phone'} ) print ('- - - - - - - - - - - - - - - - - - - - - -... | [
0.22806978225708008,
-1.3022321462631226,
1.200746774673462,
0.45150575041770935,
-0.7146078944206238,
-0.2383473515510559,
0.21552059054374695,
-0.7454071640968323,
-0.24138450622558594,
-0.5903558731079102,
0.4290023148059845,
-0.11367665231227875,
-0.5306307673454285,
0.6691406965255737... |
def test _ list _ insert _ with _ no _ parameters ( self ) : with pytest. raises ( typeerror ) as typeerror : testlistinsert. client. list _ insert ( ) assert " argument'key'( pos 1 ) " in str ( typeerror. value ) | [
-1.2743334770202637,
0.5738802552223206,
0.3310173451900482,
-0.24671927094459534,
1.0369019508361816,
0.5514723062515259,
-0.48020240664482117,
0.15935254096984863,
-0.3161989450454712,
0.5865481495857239,
-1.1682910919189453,
-0.10812408477067947,
-1.6117526292800903,
1.6113598346710205,... |
def backupfiles ( path, listfiles, bckdir, bckopt ) : timestamp = datetime. datetime. now ( ). strftime ( " % y % m % d - % h : % m " ) dirname = os. path. basename ( path ) targetdir ='% s % s'% ( bckdir, path ) newbckfile ='% s / % s _ % s _ full'% ( targetdir, dirname, timestamp ) oldestbckfile ='' # create target d... | [
-0.013432828709483147,
-0.0660693421959877,
1.0707265138626099,
-0.017960136756300926,
0.36979377269744873,
-1.1764020919799805,
1.6747932434082031,
0.59781813621521,
-0.050489895045757294,
-0.1367519199848175,
-0.7216185331344604,
-0.7358125448226929,
-0.2666204869747162,
0.22888578474521... |
def get _ user _ move ( game _ board, symbol ) : row = input ('what row do you want to play? ( 0 - 2 )') col = input ('what column do you want to play? ( 0 - 2 )') " " " checks to see if the row and col input are valid inputs. otherwise, it continues to ask the user for a valid input " " " while not is _ legal _ move (... | [
0.16542792320251465,
0.23732160031795502,
0.8588352203369141,
0.3933355510234833,
-0.03266444429755211,
0.034234438091516495,
0.6722308397293091,
-0.7912467122077942,
-0.3535693287849426,
-0.6283038854598999,
0.3261175751686096,
0.6530340313911438,
-0.23828113079071045,
-1.0333768129348755... |
def sort _ pair _ of _ files ( self, file1, file2 ) : sorted _ file _ 1 = list ( open ( file1 ). read ( ). strip ( ). split ('\ n') ) sorted _ file _ 2 = list ( open ( file2 ). read ( ). strip ( ). split ('\ n') ) full _ heap = sorted _ file _ 1 + sorted _ file _ 2 heapq. heapify ( full _ heap ) temp _ list = [ ] while... | [
-0.14264102280139923,
-0.9119118452072144,
1.2688840627670288,
0.0804884061217308,
0.002556400839239359,
0.08635611087083817,
0.04837775230407715,
0.35651588439941406,
-1.1726797819137573,
-0.009037544019520283,
0.19330698251724243,
0.06350072473287582,
-0.43149927258491516,
0.779570400714... |
def dcate ( ) : c = import _ gds ( " ebeam _ adiabatic _ te1550 " ) return c | [
0.9101096987724304,
0.19639216363430023,
-0.027668071910738945,
0.07191722095012665,
-0.6989250183105469,
0.42199787497520447,
-0.17775893211364746,
-1.2437280416488647,
0.3853622078895569,
0.05894485488533974,
0.9161228537559509,
-0.28264617919921875,
0.5560938119888306,
-0.54224967956542... |
def get _ attn ( self, query ) : processed _ query = self. query _ layer ( tf. expand _ dims ( query, 1 ) ) score = self. v ( tf. nn. tanh ( self. processed _ values + processed _ query ) ) score = tf. squeeze ( score, axis = 2 ) return score, processed _ query | [
-0.7191597819328308,
-0.7639959454536438,
0.2632218897342682,
-1.06267511844635,
-0.24152612686157227,
-0.16956332325935364,
0.31122079491615295,
-0.11542560160160065,
0.15164236724376678,
0.4143051207065582,
0.45320987701416016,
0.8815189599990845,
0.7202821969985962,
-0.2667311131954193,... |
def test _ isunicode _ none ( self ) : assert not isunicode ( none ) | [
0.21236975491046906,
-0.018957067281007767,
0.22501257061958313,
0.13278043270111084,
0.4498472213745117,
-0.06736287474632263,
-0.23071303963661194,
0.5925561785697937,
0.887940526008606,
-1.0246320962905884,
-1.1475712060928345,
-0.00456426152959466,
-1.2782503366470337,
0.28322371840476... |
def print _ selected _ post ( choice, orderedarray ) : vno ='' for posted in orderedarray : if posted [ 0 ] = = choice : print ('postid : ', posted [ 0 ] ) print ('postdate : ', posted [ 1 ] ) print ('posttitle : ', posted [ 2 ] ) print ('postbody : ', posted [ 3 ] ) print ( " userid : ", posted [ 4 ] ) print ( " tags ... | [
0.1873440444469452,
-0.8648080825805664,
0.7132261395454407,
0.081516794860363,
-0.22945338487625122,
-0.019636528566479683,
-0.23452721536159515,
-0.8986918330192566,
0.41559451818466187,
0.5545324683189392,
-0.07891909778118134,
0.8640002012252808,
-0.8928875923156738,
0.205458864569664,... |
def calculate _ duration ( self ) : total = 0 for suite in self. suites : for testcase in suite. all ( ) : total + = testcase. duration return total | [
0.512993574142456,
0.1333170384168625,
0.7772298455238342,
0.7946882247924805,
0.7013391852378845,
0.7601962685585022,
1.1481696367263794,
0.6681663393974304,
0.7311789989471436,
1.0756326913833618,
-0.8858508467674255,
-0.7648871541023254,
0.46612295508384705,
1.306203842163086,
0.07674... |
def setdefaultqos ( ctx, # optional main parameter miniops = none, # optional main parameter maxiops = none, # optional main parameter burstiops = none ) : " " " iops ) for a volume. for more information about qos in a solidfire cluster, see the user guide. " " " cli _ utils. establish _ connection ( ctx ) ctx. logger.... | [
-0.7311158776283264,
0.3255833387374878,
0.7527852654457092,
0.2834905683994293,
0.49201932549476624,
-0.07500611990690231,
-0.1686123013496399,
-1.0662944316864014,
0.4789574444293976,
-0.037244897335767746,
-0.3592778146266937,
0.09732606261968613,
-1.1272743940353394,
-0.345718860626220... |
def format _ text ( self ) : text _ size = " 1 " tag = " c " content = " { } ". format ( self. as _ bits ( ) ) return text _ size, tag, content | [
0.5849410891532898,
-0.6585955619812012,
0.4797233045101166,
-0.43203234672546387,
-0.2161954641342163,
-0.5117521286010742,
-0.14808432757854462,
-0.8559116721153259,
-0.4918991029262543,
0.4180237650871277,
-0.37614449858665466,
-0.802764356136322,
-0.3515261709690094,
0.939021646976471,... |
def test _ list _ integer _ length _ 3 _ nistxml _ sv _ iv _ list _ integer _ length _ 4 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - length - 4. xsd ", instance = " nistdata / list / integer / schem... | [
-0.4825206696987152,
0.07600642740726471,
0.31748321652412415,
0.604356050491333,
-0.1813735067844391,
0.2797635495662689,
-0.36640164256095886,
0.5875058770179749,
1.020949363708496,
0.9790992736816406,
-0.934657633304596,
-0.632794976234436,
-0.5285755395889282,
0.2877536118030548,
0.0... |
def _ process _ schedule _ update _ response ( self, flag, response ) : task _ id = none if flag : if response. json ( ) : if " taskid " in response. json ( ) : task _ id = str ( response. json ( ) [ " taskid " ] ) if task _ id : return true, " 0 ", " " elif " errorcode " in response. json ( ) : error _ code = str ( re... | [
-0.6135948300361633,
-0.7180116176605225,
0.9614487290382385,
0.09652302414178848,
-0.5651029348373413,
-0.6872087717056274,
-0.050538983196020126,
0.07931912690401077,
0.41488316655158997,
0.8849025368690491,
-0.21446791291236877,
-0.7058954834938049,
-0.20245978236198425,
-0.280483961105... |
def trigger _ capture ( workflow ) : if app. config ['mode'] not in ('scanner ','full') : abort ( 404 ) if workflow. step! ='capture': # todo : abort with error, since capture has to be prepared first workflow. prepare _ capture ( ) try : workflow. capture ( retake = ('retake'in request. args ) ) except ioerror as e : ... | [
-1.1753761768341064,
-0.31929975748062134,
0.5203865766525269,
1.1340304613113403,
0.7316089272499084,
-1.2908215522766113,
-0.04387550801038742,
0.08283916115760803,
0.3742312490940094,
0.6277766823768616,
-0.32427558302879333,
-0.2857729196548462,
0.4184707999229431,
1.2721737623214722,
... |
def make _ masks ( self, slide, rule = false, foreground _ fn = " otsu ", size = 5000, min _ = 30, max _ = 190 ) : if rule : self. check _ classes ( self. classes, rule. classes ) self. classes = list ( set ( self. classes ) & set ( rule. classes ) ) self. check _ memory _ consumption ( slide. height, slide. width ) se... | [
-0.30668333172798157,
0.0022526003886014223,
0.6760170459747314,
0.26644137501716614,
0.5524467825889587,
0.01588161662220955,
0.6562662124633789,
-0.2898602783679962,
-0.02868952788412571,
-0.2959936857223511,
-0.3283606171607971,
0.2535022795200348,
0.7579769492149353,
1.2578874826431274... |
def build _ resources ( temp _ with _ override ) : src = path ( _ _ file _ _ ). parent. resolve ( ). joinpath ( " books " ). absolute ( ) dst = temp _ with _ override / " books " shutil. copytree ( src, dst ) yield path ( dst ), path ( dst ) / " toc " shutil. rmtree ( dst ) | [
-0.16568726301193237,
-0.559424102306366,
0.5356560349464417,
-0.18432599306106567,
-0.6725761294364929,
0.36587804555892944,
0.9110767841339111,
-0.07869485765695572,
-0.13479389250278473,
0.03539174050092697,
0.6914681792259216,
-1.113409161567688,
0.8069085478782654,
-0.0994966030120849... |
def ang2pix ( nside, lon, lat, nest = false ) : theta = np. radians ( 90. - lat ) phi = np. radians ( lon ) return hp. ang2pix ( nside, theta, phi, nest = nest ) | [
-0.7170548439025879,
0.1492074429988861,
0.4265221357345581,
-1.2321592569351196,
-0.5454044342041016,
0.15490621328353882,
-1.3961827754974365,
-0.13579395413398743,
-0.027339857071638107,
0.17768234014511108,
-0.09876395016908646,
0.07861819118261337,
0.12194811552762985,
-0.004877768456... |
def shipping _ country _ name ( self ) : return self. _ shipping _ country _ name | [
-0.38405266404151917,
-0.08886798471212387,
0.39617595076560974,
-0.212485671043396,
-0.663802444934845,
1.8693968057632446,
0.7758139371871948,
-0.40041935443878174,
-0.09269541501998901,
0.3779270350933075,
0.19021177291870117,
0.1653130054473877,
-0.022681180387735367,
-0.10510494560003... |
def rop ( ys, xs, vs ) : if isinstance ( ys, tuple ) : ws = [ torch. tensor ( torch. zeros _ like ( y ), requires _ grad = true ) for y in ys ] else : ws = torch. tensor ( torch. zeros _ like ( ys ), requires _ grad = true ) gs = torch. autograd. grad ( ys, xs, grad _ outputs = ws, create _ graph = true, retain _ graph... | [
-0.7052659392356873,
0.43053385615348816,
0.7073830366134644,
-0.2953169047832489,
0.32328903675079346,
-0.9773708581924438,
0.2468344271183014,
-0.032999906688928604,
-0.05422262102365494,
0.9073279500007629,
0.022616513073444366,
-0.11606539040803909,
0.6223878264427185,
-1.2425051927566... |
def _ remove _ tag ( tag, name, * * kwargs ) : if tag is none : return [ t. extract ( ) for t in tag. find _ all ( name, * * kwargs ) ] | [
0.06185746192932129,
-0.5010828971862793,
0.4567100703716278,
-0.011015782132744789,
-0.25942692160606384,
-1.7714591026306152,
-1.0903676748275757,
0.7285040020942688,
-0.6855083107948303,
0.722785234451294,
-1.341084361076355,
-0.945334255695343,
-0.2860964834690094,
0.33633285760879517,... |
def parse ( self, fname, headers = true ) : with open ( fname ) as sonnet _ file : sonnet _ num = 0 line _ num = 0 sonnet = [ ] appended = true for line in sonnet _ file : # ignore whitespace lines and sonnet headers if line. strip ( ) = ='' : if not appended : self. sonnets. append ( sonnet ) sonnet = [ ] appended = t... | [
-0.25996214151382446,
-0.1902346909046173,
0.5443527698516846,
0.6359748840332031,
0.027587374672293663,
-0.28638532757759094,
-0.21279053390026093,
1.1841086149215698,
0.910775363445282,
-0.6376771926879883,
-0.3878718912601471,
-1.2046586275100708,
0.18227936327457428,
0.5907242894172668... |
def kdtsearch ( current, neighbor, distance ) : if current is none : return neighbor, distance axis = current. axis if target [ axis ] < current. value [ axis ] : left _ cur, left _ dist = kdtsearch ( current. left, neighbor, distance ) # update current if we found something better if left _ dist < distance : current =... | [
0.44089585542678833,
-1.2309869527816772,
0.8167874217033386,
-0.11873751878738403,
-0.7208009362220764,
0.30660173296928406,
-0.4678397476673126,
-0.22001351416110992,
-0.3128402531147003,
0.6409781575202942,
0.49364998936653137,
0.4141545295715332,
-0.9019943475723267,
0.7612832188606262... |
def make _ dict _ from _ tree ( element _ tree ) : def internal _ iter ( tree, accum ) : " " " recursively iterate through the elements of the tree accumulating a dictionary result. : param tree : the xml element tree : type tree : xml. etree. elementtree : param accum : dictionary into which data is accumulated : type... | [
-0.007889378815889359,
-0.31716957688331604,
0.7832303643226624,
-1.0428447723388672,
-2.0763251781463623,
-0.5628823637962341,
-0.35959818959236145,
-0.1799563616514206,
-0.08013907074928284,
-0.1199062317609787,
-0.2835613787174225,
-0.7380818724632263,
0.5857536196708679,
1.516316056251... |
def organize ( self ) : for i in range ( len ( self. checkers ) ) : # stack's checkers on red player's side of the bar if self. team = = red : self. checkers [ i ]. moveto ( ( win _ center [ 0 ], int ( win _ center [ 1 ] \ +. 5 * b _ height - c1 _ radius - ( i % 5 ) * 2 * c1 _ radius ) ) ) # stacks checkers on white pl... | [
-0.29838287830352783,
0.6477659344673157,
0.6103383302688599,
0.19481731951236725,
0.829785168170929,
0.4036721885204315,
0.9174525141716003,
-0.8453319668769836,
-1.0032633543014526,
1.2446086406707764,
-0.07623821496963501,
-0.10071584582328796,
-0.5057373046875,
0.544557511806488,
0.6... |
def anglefromcommuc ( self, commresult ) : degs = commresult / 10 rads = radians ( degs ) # if degs < 0 : # degs = 360 + degs # rads = radians ( degs ) self. logger. debug ( " translated theta commresult from { } to { } ". format ( commresult, rads ) ) return rads | [
0.37807950377464294,
-0.07612300664186478,
0.2439102828502655,
-1.6287741661071777,
0.21140140295028687,
-0.4623650312423706,
0.4174027144908905,
-0.028203830122947693,
-0.0052790772169828415,
0.4737473726272583,
-0.06758728623390198,
-0.12546248733997345,
-1.5190919637680054,
-0.344579517... |
def alias ( self, expression _ template ) : self. expression _ template = expression _ template return self | [
0.2649824619293213,
-0.8215149641036987,
0.5335793495178223,
-0.19835953414440155,
-1.1811481714248657,
0.20650409162044525,
1.1208287477493286,
1.6498594284057617,
-0.41093453764915466,
0.4804454445838928,
-0.9788435697555542,
-0.3963652551174164,
-0.05884641036391258,
0.1717432737350464,... |
def val _ transforms ( example _ batch ) : example _ batch [ " pixel _ values " ] = [ _ val _ transforms ( pil _ img. convert ( " rgb " ) ) for pil _ img in example _ batch [ " image " ] ] return example _ batch | [
-0.3981204032897949,
-0.4187966585159302,
0.33949026465415955,
0.3224746286869049,
0.29078856110572815,
0.016682012006640434,
-1.266945242881775,
0.20845575630664825,
0.270170122385025,
0.6329056024551392,
-1.192928671836853,
-0.027868147939443588,
1.312851905822754,
0.8875312209129333,
... |
def mutatekeywordplans ( self, request, context ) : context. set _ code ( grpc. statuscode. unimplemented ) context. set _ details ('method not implemented!') raise notimplementederror ('method not implemented!') | [
-1.0394400358200073,
-0.26031243801116943,
0.5014258027076721,
0.6939724087715149,
-0.47800594568252563,
0.8792286515235901,
-0.014808331616222858,
-0.6756576895713806,
1.0610644817352295,
0.8868528008460999,
-0.8070294857025146,
1.3802775144577026,
-1.1933667659759521,
0.16320133209228516... |
def sim _ glauber ( self, runs, cache = false, interval = 10 ) : self. title = " glauber " for r in range ( runs ) : # progress ( r, runs ) if cache : self. glauber _ sweep ( ) if ( r % interval = = 0 ) : self. cache. append ( copy. copy ( self. _ spins ) ) self. e. append ( self. calc _ total _ energy ( ) ) self. m. a... | [
0.18983757495880127,
0.21601806581020355,
0.5111074447631836,
0.6592518091201782,
-0.2318788766860962,
1.570462942123413,
0.8068869113922119,
-0.4066900610923767,
-0.34386053681373596,
0.18647894263267517,
0.29472842812538147,
-0.654313862323761,
-1.1525847911834717,
0.7208645939826965,
... |
def proforma _ report ( self, apply _ inflation _ rate _ func, fill _ forward _ func, results ) : pro _ forma = super ( ). proforma _ report ( apply _ inflation _ rate _ func, fill _ forward _ func, results ) fuel _ col _ name = self. unique _ tech _ id ( ) +'natural gas costs'analysis _ years = self. variables _ df. i... | [
-0.4236069917678833,
0.5561959743499756,
0.5403476357460022,
-0.1841721087694168,
0.09771206229925156,
-0.5932434797286987,
-0.0005336700705811381,
-0.05023245885968208,
-0.524713933467865,
-0.7888723015785217,
0.7005127668380737,
-0.13558349013328552,
0.306010365486145,
0.3848868012428283... |
def test _ atomic _ qname _ enumeration _ 2 _ nistxml _ sv _ iv _ atomic _ qname _ enumeration _ 3 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - enumeration - 3. xsd ", instance = " nistdata / atomic ... | [
-0.49135398864746094,
-0.9276431202888489,
0.4680813252925873,
-0.08503429591655731,
-0.5840771794319153,
0.4571678042411804,
-0.7409838438034058,
-0.6934792995452881,
0.3699556887149811,
0.8431766033172607,
-0.3662484288215637,
0.14026355743408203,
0.1842537522315979,
-0.3863101601600647,... |
def serve ( sock, handle, concurrency = 1000 ) : pool = greenpool. greenpool ( concurrency ) server _ gt = greenthread. getcurrent ( ) while true : try : conn, addr = sock. accept ( ) gt = pool. spawn ( handle, conn, addr ) gt. link ( _ stop _ checker, server _ gt, conn ) conn, addr, gt = none, none, none except stopse... | [
-0.17901970446109772,
-0.23906229436397552,
0.7325628995895386,
0.01918109878897667,
0.2869141697883606,
0.8979275822639465,
0.2509916424751282,
-0.10656312108039856,
-1.07187020778656,
-0.697091281414032,
0.09374088793992996,
0.8774797916412354,
-0.5734310150146484,
-0.22170287370681763,
... |
def test _ example _ input _ one _ help _ text _ entity ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. create _ new _ input. select ( " example input one " ) input _ page. entity1. examp... | [
-0.12142745405435562,
0.012558870017528534,
0.696026623249054,
0.21182598173618317,
0.6711569428443909,
0.8601768612861633,
0.4868534505367279,
-0.23349222540855408,
-0.08504000306129456,
0.05732325091958046,
-0.16579556465148926,
-0.2546427249908447,
0.28745394945144653,
-0.24909354746341... |
def _ _ init _ _ ( self, iterable, column, desc ) : self. _ _ iter = iterable self. _ _ column = column self. _ _ direction = desc | [
0.3759686052799225,
0.012721795588731766,
0.5009654760360718,
0.42052507400512695,
0.39818957448005676,
0.32754385471343994,
-0.07007770240306854,
0.6425079107284546,
-0.726582944393158,
-0.11714714020490646,
-0.10662590712308884,
0.3468494117259979,
0.4216932952404022,
-0.1219482645392417... |
def get _ age ( ) : # draw the menu selection menu _ selection ( " menu _ 3 - age group in years ", menu _ 3 ) value = get _ integer ( " select age range ", " 0 ", len ( menu _ 3 ) - 1 ) age = menu _ 3 [ value ] + " years " write _ field ( age, 2, 4, 18, " left ", foreground, background ) # clear the menu and the selec... | [
-1.2655307054519653,
0.28008079528808594,
0.5720049738883972,
-0.4974372982978821,
-0.10971809178590775,
0.3658665716648102,
0.5311012268066406,
0.3501632511615753,
-0.42210209369659424,
0.5854250192642212,
-0.4823344349861145,
0.4055331349372864,
-0.6576228141784668,
0.4715314507484436,
... |
def register _ saver ( cls, saver : saver ) - > none : cls. savers. append ( saver ) | [
-1.1401540040969849,
0.3132518529891968,
0.1686725914478302,
0.7320984601974487,
0.8669529557228088,
0.3858690559864044,
-1.575365424156189,
-0.06766456365585327,
-0.004775462672114372,
-0.16264885663986206,
-1.8927663564682007,
-0.2373965084552765,
0.30145755410194397,
1.3993463516235352,... |
def sort _ drawing _ list ( self ) : self. drawing _ list = sorted ( self. drawing _ list, key = self. get _ date ) | [
-0.6127610206604004,
0.3851225674152374,
0.4189645051956177,
-0.5501553416252136,
-0.06767648458480835,
1.0654526948928833,
-0.16385678946971893,
-0.2864844501018524,
-0.2601930797100067,
-0.30934375524520874,
-0.35078534483909607,
0.4713192582130432,
0.41280031204223633,
1.454218029975891... |
def save ( cls ) - > none : try : if hasattr ( cls. meta, " url " ) : cls. url = cls. meta. url if hasattr ( cls. meta, " get " ) : cls. get = cls. meta. get if hasattr ( cls. meta, " put " ) : cls. put = cls. meta. put if hasattr ( cls. meta, " delete " ) : cls. delete = cls. meta. delete if hasattr ( cls. meta, " pos... | [
-0.922416090965271,
-0.744182288646698,
0.8276594877243042,
0.1736799031496048,
0.17241407930850983,
0.2279547154903412,
0.3768894672393799,
-0.08297786861658096,
-0.051832325756549835,
-0.09233003854751587,
-0.09105280041694641,
0.22112469375133514,
0.5959175229072571,
0.7586259245872498,... |
def newcameracallback ( camera ) : cameralist. append ( camera ) | [
-0.24242214858531952,
-0.027546612545847893,
0.24721893668174744,
1.136646032333374,
0.31800341606140137,
0.2912072539329529,
-0.7697572112083435,
-0.1846923828125,
1.517406702041626,
0.28130432963371277,
-1.2957420349121094,
-0.011961767449975014,
-0.49659955501556396,
1.2767468690872192,... |
def _ createroominfo ( self, room ) : name = room ['name'] country _ city = room ['c - c']. split ('-') # us - nyc - chel. country _ city = country _ city [ : 2 ] # us, nyc. assert len ( country _ city ) = = 2 country _ city ='- '. join ( country _ city ) #'us - nyc'calendar _ email = room ['email'] location = room ['l... | [
0.023370753973722458,
-0.4627033770084381,
0.37983131408691406,
-0.2679941952228546,
-0.5431303977966309,
0.9505899548530579,
-0.5122292637825012,
0.20162712037563324,
-0.4292755424976349,
0.0326116569340229,
-0.4129787087440491,
0.17867179214954376,
0.1807112991809845,
0.1832159161567688,... |
def main ( ) : parser = argparse. argumentparser ( ) parser. add _ argument ('- - serverip ', help ='use - - serverip < serverip > ', required = true ) parser. add _ argument ('- - serverport ', help ='use - - serverport < serverport > ', required = true ) args = parser. parse _ args ( ) create _ server ( args. serveri... | [
-0.13113290071487427,
0.08920440822839737,
1.038450002670288,
0.3149632215499878,
1.026906967163086,
0.7767900228500366,
-0.1258012354373932,
0.33283546566963196,
-1.1370713710784912,
0.21212905645370483,
-0.2723194360733032,
0.23185665905475616,
-0.3362860381603241,
0.2861038148403168,
... |
def remove _ all ( self ) : self. eval _ js ('table. removeall ( ) ;') | [
0.21757522225379944,
-0.2954847514629364,
0.4288078844547272,
0.7385120987892151,
-0.3628109097480774,
-0.4391193091869354,
0.5269500017166138,
0.6298471689224243,
-0.7356633543968201,
0.2379606068134308,
-0.4643052816390991,
0.3103986978530884,
0.4448716938495636,
1.1177316904067993,
-0... |
def test _ atomic _ any _ uri _ max _ length _ 2 _ nistxml _ sv _ iv _ atomic _ any _ uri _ max _ length _ 3 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - maxlength - 3. xsd ", instance = " nistdata... | [
0.21069563925266266,
-0.002102054888382554,
0.46671614050865173,
0.9518833756446838,
-0.22287678718566895,
0.36907222867012024,
-0.8553846478462219,
0.28328049182891846,
0.576236367225647,
0.04576820507645607,
0.14830085635185242,
-0.2519035041332245,
-0.2384175807237625,
-0.22158955037593... |
def process _ a _ file ( master, slave ) : try : s = open ( slave. rstrip ( ),'r') except ioerror : return ( 0 ) print " processing ", slave. rstrip ( ) newfilename ='new _'+ slave. rstrip ( ) sout = open ( newfilename,'w') slines = " " slines = s. readlines ( ) # print " master : ", master [ 0 ] # print " slave : ", s... | [
-0.4750896394252777,
-0.2533141076564789,
1.0108094215393066,
-0.09512653201818466,
-0.8247047662734985,
-0.7969377040863037,
0.4529421627521515,
0.49054375290870667,
-0.38466429710388184,
0.8851166367530823,
-0.040058426558971405,
0.4359917938709259,
-0.46775999665260315,
0.26415073871612... |
def _ update _ object _ segment ( self, x _ oftk, h _ oftk, m _ hotk, m _ ootk, u _ hst, u _ hsts, x _ tt ) : if self. object _ segment _ update _ strategy in {'same _ as _ human ','sah'} and u _ hst is not none and u _ hsts is not none : u _ ostk = u _ hst u _ ostks = u _ hsts else : # independent update _ object _ se... | [
-0.8414444923400879,
-0.7324001789093018,
0.6422884464263916,
0.3266008198261261,
-0.5506466031074524,
0.45872488617897034,
0.11446014791727066,
0.14606861770153046,
-0.1776520013809204,
0.4485531747341156,
-0.15966585278511047,
-0.009785905480384827,
0.9436511397361755,
-0.257879316806793... |
def createonerow ( width ) : row = [ ] for col in range ( width ) : row + = [ 0 ] return row | [
-1.0598455667495728,
0.5276581645011902,
0.482379674911499,
0.3897847533226013,
1.0730785131454468,
-0.45723825693130493,
-0.31976795196533203,
-0.13330230116844177,
0.8424471616744995,
-0.5788628458976746,
-0.08776180446147919,
-0.8361456990242004,
-0.41494593024253845,
1.5472090244293213... |
def is _ red ( self ) : return self. suit = = suit. hearts or \ self. suit = = suit. diamonds or \ self. suit = = suit. red | [
-1.1525089740753174,
0.33924272656440735,
0.6477266550064087,
1.1271207332611084,
0.06769339740276337,
0.03502511978149414,
-0.8904494047164917,
-0.4036059081554413,
0.8979873657226562,
0.5656648278236389,
-0.531117856502533,
1.4170188903808594,
-0.5532321333885193,
1.4245718717575073,
-... |
def compiles ( ) : output = check50. run ( " make queue " ). stdout ( ) if not os. path. isfile ( '. / queue _ example') : raise check50. failure ( " make did not create \ " queue _ example \ " executable! check your spelling. here is the output from the \ " make queue \ " command : " + str ( output ) ) | [
0.7510945796966553,
-0.7041757106781006,
0.6059020757675171,
0.9175452589988708,
0.05427577719092369,
0.7731202244758606,
0.3178345263004303,
0.2951940596103668,
-0.4011884331703186,
-0.1908617913722992,
-0.4438404440879822,
0.8672236800193787,
0.3526441752910614,
0.6226532459259033,
0.0... |
def process _ media _ ref _ list ( self, original _ obj ) : for media _ ref in original _ obj. get _ media _ list ( ) : if media _ ref : self. process _ notes ( media _ ref ) self. process _ attributes ( media _ ref ) self. process _ citation _ ref _ list ( media _ ref ) handle = media _ ref. get _ reference _ handle (... | [
-0.10293769091367722,
-1.1183497905731201,
0.5582566857337952,
0.11842832714319229,
0.40916863083839417,
-0.12463140487670898,
0.6783822178840637,
0.26541194319725037,
0.2959933876991272,
0.3090530335903168,
-0.1598230004310608,
-0.01461025606840849,
-0.5536604523658752,
1.5241563320159912... |
def test _ list _ decimal _ length _ nistxml _ sv _ iv _ list _ decimal _ length _ 1 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - length - 1. xsd ", instance = " nistdata / list / decimal / schema + ... | [
-0.14680983126163483,
-0.2492726445198059,
0.41237127780914307,
0.47580039501190186,
0.0002855940256267786,
-0.15919815003871918,
0.48524951934814453,
0.40968313813209534,
0.8067969083786011,
0.28471654653549194,
-1.237847089767456,
-0.6935387849807739,
-0.23466017842292786,
0.939662396907... |
def find ( ) : if verbose : print ( " looking for pycompss interactive jobs... " ) # load the supercomputer configuration to get the appropriate status command setup _ supercomputer _ configuration ( ) # get the list of running job ids job _ list _ command = os. environ ['queue _ job _ list _ cmd'] return _ code, raw _... | [
0.014602943323552608,
-0.3709365725517273,
0.6392024755477905,
-0.13825397193431854,
0.24624305963516235,
-0.07545983791351318,
0.18752111494541168,
0.2623797059059143,
-1.0957058668136597,
-0.24762114882469177,
-0.450578510761261,
-0.30667686462402344,
-1.2414262294769287,
0.3785006701946... |
def test _ atomic _ language _ length _ nistxml _ sv _ iv _ atomic _ language _ length _ 1 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - length - 1. xsd ", instance = " nistdata / atomic / langu... | [
0.2429136037826538,
-0.23293781280517578,
0.3765503168106079,
0.5306006669998169,
-0.17050637304782867,
0.17404699325561523,
0.1112133041024208,
0.37594133615493774,
0.5662375092506409,
1.026612401008606,
-0.24633300304412842,
-0.4726150333881378,
0.0389719158411026,
0.3011323809623718,
... |
def extract _ thread ( thread ) : d = { } d ['id'] = thread. id d ['forum _ id'] = thread. forum. id d ['title'] = thread. title d ['is _ sticky'] = thread. is _ sticky d ['is _ locked'] = thread. is _ locked d ['created'] = thread. created if thread. last _ post is not none : d ['updated'] = thread. last _ post. creat... | [
-0.37603285908699036,
-0.9098625183105469,
0.4913819432258606,
-0.607415497303009,
-0.5522615909576416,
-0.12723343074321747,
-0.34709617495536804,
-0.6135157346725464,
-0.062362875789403915,
-0.023179948329925537,
-1.2018470764160156,
-0.16236798465251923,
0.0026545843575149775,
0.2008692... |
def to _ nearest _ sixth _ tone ( number ) : semitones = quicktions. fraction ( int ( round ( 6 * number ) ), 6 ) if semitones. denominator = = 6 : semitones = quicktions. fraction ( int ( round ( 3 * number ) ), 3 ) return semitones | [
0.3808054029941559,
-0.2195531129837036,
0.279485285282135,
-0.48627713322639465,
-0.504150927066803,
-0.8300222754478455,
-0.06616972386837006,
-1.908419132232666,
1.1265534162521362,
0.04633563756942749,
-0.6711506843566895,
-0.45964205265045166,
0.32586362957954407,
0.11750378459692001,... |
def test _ lambda _ handler ( caplog ) : caplog. set _ level ( logging. info ) response = app. lambda _ handler ( { " beer " : 1 }, none ) assert response = = { " body " : " hello world! ", " statuscode " : 200 } assert'received : { " beer " : 1 }'in caplog. text | [
0.007627318147569895,
-0.5203502178192139,
0.43619149923324585,
-0.5306065678596497,
-0.3729364275932312,
0.7260130047798157,
-0.7134554982185364,
0.7891824245452881,
0.11340292543172836,
-1.1900967359542847,
-1.0172600746154785,
0.21017448604106903,
0.6478906869888306,
-0.2714747786521911... |
def _ _ init _ _ ( self, * args, * * kwds ) : if args or kwds : super ( waypoint, self ). _ _ init _ _ ( * args, * * kwds ) # message fields cannot be none, assign default values for those that are if self. latitude is none : self. latitude = 0. if self. longitude is none : self. longitude = 0. if self. mapxy is none :... | [
0.1738065928220749,
-0.6533684730529785,
0.9342445731163025,
-0.1601252257823944,
0.5799300074577332,
0.5252912044525146,
-0.10730960965156555,
-0.4311462342739105,
0.1654031127691269,
0.17387919127941132,
-0.027766920626163483,
0.25748103857040405,
-0.4478921890258789,
0.9436816573143005,... |
def get _ valid _ session _ paths _ ( search _ from _ path, depth ) : assert depth > = 0 if not os. path. isdir ( search _ from _ path ) : return [ ] res = [ ] for file in os. listdir ( search _ from _ path ) : new _ path = os. path. join ( search _ from _ path, file ) if not os. path. isdir ( new _ path ) : continue #... | [
-0.5170341730117798,
-0.7022702097892761,
0.9142903685569763,
1.5265049934387207,
-0.5690086483955383,
0.5142406225204468,
1.2372256517410278,
-0.463487833738327,
0.41039183735847473,
-0.306324303150177,
0.18725116550922394,
0.47834840416908264,
-0.8847342729568481,
0.4301888048648834,
-... |
def _ repeat _ pattern ( pattern _ dict ) : _ repeat _ time = datetime. strptime ( pattern _ dict. get ( " repeat _ every ", " 08 : 00 " ), " % h : % m " ) _ freq _ subday = ( _ repeat _ time. hour * 3600 + _ repeat _ time. minute * 60 ) return {'freq _ subday _ interval': _ freq _ subday,'active _ end _ time': schedul... | [
-0.7826113104820251,
0.005149287637323141,
0.7215020060539246,
-1.0478497743606567,
-0.33230361342430115,
0.11399785429239273,
-0.19836872816085815,
0.21881350874900818,
-0.46219542622566223,
0.9419710040092468,
-0.6863775849342346,
-0.15386846661567688,
0.6784859299659729,
-0.866299867630... |
def test _ atomic _ qname _ enumeration _ 4 _ nistxml _ sv _ iv _ atomic _ qname _ enumeration _ 5 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - enumeration - 5. xsd ", instance = " nistdata / atomic ... | [
-0.6053791046142578,
-0.8897828459739685,
0.3917386531829834,
0.27726462483406067,
-0.4671913683414459,
0.2135961353778839,
0.30880486965179443,
-1.0390597581863403,
0.05022043734788895,
0.8076348304748535,
-0.4797188937664032,
-0.1911199688911438,
-0.4354645013809204,
0.03106614015996456,... |
def _ transform ( transformer _ chain : sequence [ tuple [ datatransformer, type ] ], data : s, context : pipelinecontext = none ) - > t : for transformer, target _ type in transformer _ chain : # noinspection pytypechecker data = transformer. transform ( target _ type, data, context ) return data | [
-1.3862870931625366,
-0.3273070454597473,
0.16737203299999237,
-0.7263035774230957,
1.1078513860702515,
-1.2673524618148804,
-0.8110227584838867,
-0.43469181656837463,
-0.06009840965270996,
-0.38270196318626404,
-0.4814662039279938,
0.7248997688293457,
-0.4017086923122406,
0.23407912254333... |
def test _ nonce _ form _ on _ success ( tforms ) - > none : formdata = multidict ( { field. name : field. data for field in tforms. nonce _ form } ) nonce = tforms. nonce _ form. form _ nonce. data assert nonce assert tforms. nonce _ form. validate ( ) is true # nonce changes on each submit assert nonce! = tforms. non... | [
0.3120725154876709,
-0.17556485533714294,
0.6340352296829224,
-0.3473935127258301,
-0.027987005189061165,
0.396508127450943,
-0.6184059381484985,
-0.20639413595199585,
0.02347608283162117,
-0.6061217188835144,
-0.6274324059486389,
-0.7343809008598328,
-0.1745370626449585,
0.438786298036575... |
def services _ handshake ( ) : services = ['github. com ','bitbucket. org'] for ser in services : run ('ssh - keyscan - t rsa { } > > ~ /. ssh / known _ hosts '. format ( ser ) ) | [
-0.5452480912208557,
0.5631803274154663,
0.3452647924423218,
0.5199326872825623,
0.6255266666412354,
0.04847506061196327,
-0.5801362991333008,
0.1304304599761963,
-0.91117262840271,
-0.3890552222728729,
-0.24077008664608002,
0.4275164008140564,
-0.06522734463214874,
0.7120035290718079,
-... |
def set _ busy ( self, busy ) : self. eval _ js ('table. setbusy ( { } ) ; '. format ('true'if busy else'false') ) | [
-0.7176262736320496,
0.6795231699943542,
0.6550378203392029,
0.3757149875164032,
0.1853766292333603,
0.213660329580307,
0.4840601086616516,
-0.025907890871167183,
-0.9354674816131592,
0.5414707064628601,
-1.4382401704788208,
1.0422934293746948,
0.22997452318668365,
0.5147178173065186,
-0... |
def test _ list _ decimal _ min _ length _ 2 _ nistxml _ sv _ iv _ list _ decimal _ min _ length _ 3 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - minlength - 3. xsd ", instance = " nistdata / list / ... | [
-0.12718935310840607,
-0.4666370451450348,
0.5097940564155579,
0.2717195451259613,
-0.32978442311286926,
0.07896976172924042,
-0.9997180104255676,
-0.051028940826654434,
1.110062837600708,
-0.05105840414762497,
-1.0701347589492798,
0.11269346624612808,
-0.09973951429128647,
0.1267079114913... |
def removemaximisingforextrema ( self ) : if ( self. empty ( ) ) : return ( none, none ) nobjectives = len ( self. set [ 0 ] ) rest = self maximising = [ ] for o in range ( nobjectives ) : maxscalval = - numpy. infinity maxvec = none for i in range ( len ( self. set ) ) : scalval = self. set [ i ] [ o ] if ( scalval > ... | [
0.15842588245868683,
0.22534595429897308,
0.678888738155365,
0.2716580331325531,
-0.05309971794486046,
-0.6131291389465332,
-0.6934506893157959,
0.19331809878349304,
0.34106701612472534,
0.9998533725738525,
-0.12287543714046478,
0.4647838771343231,
-0.39348557591438293,
-0.0406436286866664... |
def test _ add _ animals _ callable ( self ) : self. cell. add _ animals ( [ self. herbivore ] ) | [
-0.2674158215522766,
0.6988502144813538,
0.3506675660610199,
0.37236398458480835,
1.2578643560409546,
0.1324297934770584,
-0.33816292881965637,
-0.8518528342247009,
-0.4309530258178711,
0.04719636216759682,
-0.42988890409469604,
0.5800802111625671,
0.3779492676258087,
0.11252664029598236,
... |
def unresolvedderivation ( cls, record ) : # my unresolved nodes are observable yield cls. observable # if the record has anything to say if record. unresolved : yield record. unresolved # my unresolved nodes know how to compute their values yield cls. unresolved # and whatever else my superclass says yield from cls. l... | [
0.1891646385192871,
0.1837756186723709,
0.7480237483978271,
0.030007947236299515,
0.3165503740310669,
-0.06700488924980164,
0.11702556163072586,
0.2692239284515381,
-0.08975642174482346,
-1.0936088562011719,
-0.06790067255496979,
-0.3377293050289154,
0.20488612353801727,
1.0000877380371094... |
def init ( ) : try : p = utils. create _ example _ config ( ) echo ( f " created { p } " ) except fileexistserror as e : echo ( e ) | [
1.0143778324127197,
0.19153332710266113,
0.3688790500164032,
0.6975623369216919,
0.9486158490180969,
1.0883750915527344,
-0.16433937847614288,
0.40744057297706604,
-1.1015636920928955,
0.16133970022201538,
-0.388168066740036,
0.3113360106945038,
0.6525445580482483,
0.42745500802993774,
0... |
def panbrailleleft ( self, inputevent = none, panamount = 0 ) : if self. flatreviewcontext : if self. isbraillebeginningshowing ( ) : self. flatreviewcontext. gobegin ( flat _ review. context. line ) self. reviewpreviouscharacter ( inputevent ) else : self. panbrailleindirection ( panamount, pantoleft = true ) # this w... | [
0.30682387948036194,
-0.9047439694404602,
0.6842865347862244,
-0.2450278103351593,
-0.46434614062309265,
0.22419744729995728,
0.3565664291381836,
0.028629953041672707,
0.4012657403945923,
-0.22935642302036285,
0.20657019317150116,
0.5807827711105347,
-0.39556968212127686,
0.315802305936813... |
def predict ( self, request : dict [ str, any ] ) - > np. ndarray : inputs = request [ " inputs " ] return self. model. predict ( inputs ) | [
-2.247253894805908,
-0.2408324033021927,
0.3508230745792389,
0.20641165971755981,
0.37602290511131287,
0.22131770849227905,
-0.6587779521942139,
-1.100358009338379,
-0.34162378311157227,
-0.802926242351532,
0.3677576780319214,
0.30133137106895447,
-0.2172613888978958,
0.3808492422103882,
... |
def cprint ( self, text _ to _ print, default _ colour _ name = " default ", background _ colour _ name = " default ", ignore _ tags = false ) : # default strings to revert colours. resetall = f " \ 033 [ m " defaultbg = f " \ 033 [ 49m " defaultfg = f " \ 033 [ 39m " valid _ colour = false if default _ colour _ name =... | [
0.43359553813934326,
0.43814828991889954,
0.9648970365524292,
0.1672852486371994,
0.3071894645690918,
-0.1919211596250534,
-0.6345953345298767,
-0.11002303659915924,
-0.5616185665130615,
0.5957746505737305,
-0.3222801089286804,
-0.2996705174446106,
-0.9658680558204651,
0.23122788965702057,... |
def rename ( self ) : # remove any zero - padding from single - digit parameter names # this reverses any change applied by one of the cuda writers for i in range ( self. parser. comp - 1, len ( self. parser. parsedmodel. parameterid ) ) : old _ name = self. parser. parsedmodel. parameterid [ i ] num = old _ name [ len... | [
-0.20588256418704987,
-1.3312900066375732,
0.8803465366363525,
-0.06494469940662384,
0.22228525578975677,
-0.18899793922901154,
0.28179845213890076,
0.19611449539661407,
-0.6599225401878357,
0.5555245280265808,
0.17423979938030243,
0.5046399235725403,
0.022427977994084358,
1.21430373191833... |
def load ( self, filename, * * kwargs ) : if filename. endswith ( ". hdf5 " ) or filename. endswith ( ". h5 " ) : self. _ load _ hdf5 _ v2 ( filename, * * kwargs ) elif filename. endswith ( ". txt " ) : self. _ load _ txt ( filename ) | [
-0.49085479974746704,
0.13961701095104218,
0.5120253562927246,
0.8395423293113708,
-0.37782981991767883,
-0.010370166972279549,
-0.6497743129730225,
-0.20349031686782837,
-0.6976919174194336,
-0.03491229563951492,
-0.11127753555774689,
0.003117672633379698,
-0.405143141746521,
0.4415015876... |
def cumulative _ regret ( logs ) : return np. mean ( np. cumsum ( logs ['expected _ best _ reward'] - logs ['expected _ reward'], axis = 1 ), axis = 0 ) | [
0.46333563327789307,
0.3626199960708618,
0.49019739031791687,
-0.6020342111587524,
0.579106867313385,
-0.30607113242149353,
0.17235051095485687,
0.2530996799468994,
-0.09292449057102203,
1.0704013109207153,
0.18578213453292847,
0.668602466583252,
0.32070955634117126,
-1.0042647123336792,
... |
def test _ graph _ size ( self ) : graph = nx. graph ( ) # basic 5 degree - 1 nodes for i in xrange ( 2, 5 ) : graph. add _ edge ( i - 1, i ) estimate = uis _ wr. estimate _ size ( graph, 100 ) self. asserttrue ( 4 < estimate < 6, estimate ) # add links resulting in some degrees > 1 for i in xrange ( 6, 4000 ) : graph.... | [
-0.11341256648302078,
1.4708364009857178,
0.6901014447212219,
0.2488921880722046,
-0.0627686008810997,
0.04167218133807182,
0.724973738193512,
-0.26690661907196045,
0.6647937297821045,
-0.3869127035140991,
-0.46983885765075684,
0.04624195769429207,
-0.8433927297592163,
-0.08009522408246994... |
def test _ list _ integer _ pattern _ nistxml _ sv _ iv _ list _ integer _ pattern _ 1 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - pattern - 1. xsd ", instance = " nistdata / list / integer / schema... | [
-0.8026580214500427,
-0.4280930757522583,
0.5437760949134827,
0.7399733066558838,
-0.4143878221511841,
0.024208711460232735,
-0.06815341114997864,
0.5872699618339539,
0.9335061311721802,
0.7883439064025879,
-0.8115905523300171,
-0.06804844737052917,
-0.13377539813518524,
0.7973174452781677... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.