text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def align _ nonlinear ( inp, ref, xfm, out, warp, ref _ mask = none, in _ mask = none, config = none ) : cmd = f " fnirt - - in = { inp } - - ref = { ref } - - aff = { xfm } - - iout = { out } - - cout = { warp } - - warpres = 8, 8, 8 " if ref _ mask is not none : cmd + = f " - - refmask = { ref _ mask } - - applyrefma... | [
0.23137854039669037,
-0.6888578534126282,
0.7417449951171875,
0.16835561394691467,
-0.2862600088119507,
-0.5008792877197266,
-0.21120712161064148,
-0.15435557067394257,
-0.16377529501914978,
-0.3988145589828491,
0.6537761092185974,
0.01654287800192833,
-0.24726030230522156,
0.7618829607963... |
def bssc _ field _ result ( self, log, field _ name ) : # pylint : disable = too - many - branches, too - many - statements server = self. bssc _ server hostname = server. bes _ server _ host. sh _ hostname ret = 0 if field _ name = = barrele _ constant. barrele _ field _ host : result = hostname elif field _ name = = ... | [
-0.6668893694877625,
-0.005568382795900106,
0.8359904289245605,
-0.12656234204769135,
0.6626231670379639,
0.0551314502954483,
0.07028015702962875,
-0.12005006521940231,
-1.4792743921279907,
0.11552806198596954,
-0.14711928367614746,
0.3431923985481262,
-0.13190893828868866,
0.6881978511810... |
def openfvfile ( fv _ file, type _ str ) : # import pdb ; pdb. set _ trace ( ) fp = openfile ( fv _ file, type _ str ) line = ensure _ string ( fp. readline ( ) ) while not line. startswith ('t :') and line! ='' : line = ensure _ string ( fp. readline ( ) ) if not line. startswith ('t :') : err _ msg ( type _ str + fv ... | [
0.29045549035072327,
-1.0355161428451538,
0.7110254168510437,
-0.11159711331129074,
-0.43328526616096497,
0.42098116874694824,
0.4479413330554962,
-0.08185359835624695,
-0.8097789883613586,
0.07952440530061722,
0.8726920485496521,
-0.22028550505638123,
0.3590497374534607,
-0.78468817472457... |
def viewdata ( self ) : if self. storage = = [ ] : print ( " no data in storage \ n " ) else : print ('displaying storage data :') print ( self. storage, " \ n " ) | [
0.2707146406173706,
-0.12974263727664948,
0.28572365641593933,
-0.2066202610731125,
0.38546210527420044,
0.5642035007476807,
-0.08640126138925552,
-0.2504335045814514,
0.09416280686855316,
-1.0838466882705688,
0.6933106780052185,
1.522493600845337,
-0.10955978184938431,
0.6799890995025635,... |
def ignore _ exception ( ignoreexception = exception, defaultval = none ) : def dec ( function ) : def _ dec ( * args, * * kwargs ) : try : return function ( * args, * * kwargs ) except ignoreexception : return defaultval return _ dec return dec | [
0.2904798984527588,
0.7152261137962341,
0.6032336950302124,
-0.21233072876930237,
-0.2973504364490509,
0.04139542579650879,
-0.17040501534938812,
0.27400243282318115,
0.09236089140176773,
-0.02169272117316723,
-0.07707366347312927,
-0.7378816604614258,
-0.5374705195426941,
-0.9232581853866... |
def setrole ( self, role, csname ) : pass | [
-0.26629629731178284,
-0.6109714508056641,
0.14579060673713684,
0.30966535210609436,
0.8609663844108582,
0.2843450605869293,
-0.9184037446975708,
0.3404236137866974,
-0.19967961311340332,
-0.15194737911224365,
-0.272731214761734,
0.12364014238119125,
-0.05530818551778793,
-0.08051115274429... |
def _ persistentvarset ( self, svar, svalue ='' ) : sfull = self. _ _ persistentvarcalcname ( svar ) ; try : ofile = open ( sfull,'w') ; if svalue : ofile. write ( svalue. encode ('utf - 8') ) ; ofile. close ( ) ; except : reporter. errorxcpt ('error creating " % s "'% ( sfull, ) ) ; return false ; return true ; | [
0.06091579794883728,
-0.13802295923233032,
0.5582476854324341,
-0.31030696630477905,
-0.965178370475769,
0.44990110397338867,
0.5161528587341309,
-0.5388764142990112,
0.2300242930650711,
-0.14545252919197083,
0.0038746565114706755,
-0.72920161485672,
-0.7257469892501831,
-0.564415216445922... |
def search ( q, options = { } ) : # dictionary for containing the get query parameters. payload = { } # setting the query parameter payload [ " query " ] = q # setting the google plus api key payload [ " key " ] = google _ api _ key # setting the parameter for the number of returned results to 20 payload [ " maxresults... | [
-0.5963663458824158,
1.2374249696731567,
0.5289003252983093,
-0.3546781539916992,
0.5062841176986694,
-0.597235381603241,
-0.5513851642608643,
-1.1014482975006104,
0.603961706161499,
-0.5020501017570496,
0.0055083660408854485,
-0.38142532110214233,
-1.7192460298538208,
-0.23261147737503052... |
def get _ ipython _ profiles ( ) : if hasattr ( itango, " get _ ipython _ profiles " ) : return itango. get _ ipython _ profiles ( ) ret = [ ] ipydir = get _ ipython _ dir ( ) if os. path. isdir ( ipydir ) : for i in os. listdir ( ipydir ) : fullname = os. path. join ( ipydir, i ) if i. startswith ( " ipy _ profile _ "... | [
-0.40862157940864563,
0.245072141289711,
0.9179641604423523,
0.33197885751724243,
0.9168649315834045,
-0.11737355589866638,
0.25182613730430603,
-0.33776015043258667,
0.19599215686321259,
0.587263822555542,
-0.8689826726913452,
0.2708711326122284,
-0.4067932963371277,
-0.054022416472435,
... |
def invitee _ email ( self ) : return self. _ invitee _ email | [
0.8627492189407349,
-0.3872133195400238,
0.13067615032196045,
1.1228431463241577,
0.4542975127696991,
0.9595686793327332,
0.5284407138824463,
1.0128546953201294,
-0.7802788615226746,
0.3897891640663147,
-0.052734214812517166,
0.9893564581871033,
-1.2156111001968384,
-1.0786995887756348,
... |
def test _ pass _ args _ correctly ( self, mock _ get _ prices ) : closes = pd. dataframe ( np. random. rand ( 6, 2 ), columns = [ " fi12345 ", " fi23456 " ], index = pd. date _ range ( start = " 2018 - 03 - 06 ", periods = 6, freq = " d ", name = " date " ) ) def _ mock _ get _ prices ( * args, * * kwargs ) : dt _ idx... | [
-0.5420256853103638,
0.7309129238128662,
1.0064424276351929,
0.1014571413397789,
0.30772894620895386,
0.07574556767940521,
0.22403758764266968,
-0.5059451460838318,
-0.3186399042606354,
0.019504498690366745,
0.16479136049747467,
0.5467846393585205,
-0.28245046734809875,
-0.2214982211589813... |
def market _ value ( self ) : return self. current _ price * self. net _ quantity | [
-0.3224380612373352,
-0.6496164202690125,
0.3820345997810364,
-0.37437814474105835,
0.7347441911697388,
0.8822423815727234,
-0.04719457030296326,
-0.7983869314193726,
0.0021737634669989347,
-0.24667425453662872,
0.5755486488342285,
0.37529948353767395,
0.45931893587112427,
0.07557324320077... |
def hasextension ( self, * args, * * kwargs ) : # real signature unknown pass | [
0.3763048052787781,
0.1657513976097107,
0.5670781135559082,
1.4277238845825195,
0.18314224481582642,
-0.21445147693157196,
-0.19418153166770935,
0.16816982626914978,
0.6091273427009583,
-0.08511416614055634,
-1.1300486326217651,
0.07532729208469391,
-0.7022524476051331,
0.9458507299423218,... |
def getcacheid ( self, pycontext = none ) : pass | [
-0.2733948230743408,
-0.2558698356151581,
0.42275890707969666,
1.0340830087661743,
0.28644633293151855,
0.385354608297348,
0.1500924825668335,
-0.6002119779586792,
1.2883672714233398,
-0.4038487672805786,
-0.45677611231803894,
0.8730558753013611,
-0.9192399978637695,
0.38939082622528076,
... |
def items ( self ) : items = { } list _ elements = self. browser. elements ( self. items _ loc, parent = self ) for element in list _ elements : # each list item has a label in a < strong > and the value following # can't select this text after the strong via xpath and get an element key = self. browser. text ( self. l... | [
-0.5099258422851562,
-1.3154165744781494,
0.5149099230766296,
0.015981541946530342,
-0.4758773446083069,
0.11086639016866684,
-0.8202059864997864,
0.31623536348342896,
0.32912111282348633,
0.23429010808467865,
-1.442961573600769,
-0.8368023037910461,
0.7258667945861816,
0.6246994733810425,... |
def find ( cls, object _ path ) : return cls. objects. filter ( object _ path = object _ path ). all ( ) | [
0.46349138021469116,
-1.2555952072143555,
0.5446583032608032,
0.865260660648346,
0.8680587410926819,
0.5421398878097534,
0.3988077640533447,
-0.35874849557876587,
-0.2947060465812683,
0.8559087514877319,
-0.2288283258676529,
-0.11314623802900314,
0.3016372323036194,
-0.16082200407981873,
... |
def nb _ setup ( autoreload : bool = true, # true to set autoreload in this notebook paths : list [ str | path ] = none # paths to add to the path environment variable ) : # handle paths # add src if it exists nbs _ root = path _ to _ parent _ dir ('nbs') p2src = ( nbs _ root / '.. / src'). resolve ( ). absolute ( ) if... | [
-0.41084039211273193,
0.1795247346162796,
0.8400459885597229,
0.6246792078018188,
0.3455408811569214,
0.4614092707633972,
0.36079221963882446,
-0.21480898559093475,
0.09946659207344055,
-0.3334837853908539,
0.02593039907515049,
-0.3153432309627533,
-0.2600288987159729,
0.43604472279548645,... |
def _ _ init _ _ ( self, evmananger ) : self. evmananger = evmananger self. evmananger. registerlistener ( self ) self. state = game. state _ preparing self. players = [ player ( evmananger ) ] self. map = map ( evmananger ) | [
-0.25706782937049866,
-0.7113781571388245,
0.7718840837478638,
-0.21027612686157227,
-0.3289899528026581,
0.05974259972572327,
-0.4932364225387573,
0.4017942249774933,
0.5271868109703064,
-0.03965073451399803,
-0.33927324414253235,
-0.2755277156829834,
0.4749736189842224,
1.715273857116699... |
def contents _ range ( self, pmin, pmax ) : pos _ count = self. position _ count first _ pos = max ( int ( pmin ), 0 ) last _ pos = min ( int ( pmax ), pos _ count ) return xrange ( first _ pos, last _ pos ) | [
-0.3089328408241272,
-1.0830035209655762,
0.4327981770038605,
-0.47437784075737,
-0.7929757833480835,
-0.4571729302406311,
-1.5049781799316406,
0.06611517071723938,
-0.49895307421684265,
-0.5023572444915771,
0.23262633383274078,
-0.4723531901836395,
-0.6382648944854736,
-0.5135056972503662... |
def test _ set _ parameter _ type ( self ) : pass | [
-0.9718035459518433,
0.34093379974365234,
0.20776748657226562,
0.9763466119766235,
1.1237233877182007,
0.20557093620300293,
0.9189447164535522,
-0.31354281306266785,
-0.05152517929673195,
-0.07791034132242203,
-0.38336944580078125,
0.9652361273765564,
-0.8120054602622986,
0.824755251407623... |
def action ( self, user, channel, msg ) : user = user. split ( '! ', 1 ) [ 0 ] self. atrusdata. log ( { " kind " : " chan _ msg ", " who " : user, " msg " : " / me % s " % msg } ) | [
-0.20626094937324524,
-0.2680014371871948,
0.4023383557796478,
-0.3545891046524048,
-0.12066572159528732,
0.17241808772087097,
0.029897689819335938,
0.2929725646972656,
-0.38500139117240906,
0.06177964806556702,
-0.02579282596707344,
2.1156513690948486,
0.23813551664352417,
-0.140058174729... |
def tool ( self, tool _ name, search _ path = none ) : if not search _ path : thislocation = os. path. dirname ( os. path. realpath ( _ _ file _ _ ) ) search _ path = os. path. join ( thislocation,'tools') tooldefjson = os. path. join ( search _ path, tool _ name + '. json') tooldefwrl = os. path. join ( search _ path,... | [
0.08396978676319122,
-0.4852631390094757,
0.6762482523918152,
-0.9859635829925537,
0.016084585338830948,
0.13769115507602692,
0.7853330373764038,
-0.6194523572921753,
-0.8708727359771729,
0.19866296648979187,
-1.3777655363082886,
0.257418692111969,
0.7961816191673279,
0.0027333549223840237... |
def propagate ( orbit, epochs, ) : times _ of _ flight = epochs - orbit. epoch # strip units k = orbit. attractor. k. to ( u. km * * 3 / u. s * * 2 ). value r0 = orbit. r. to ( u. km ). value v0 = orbit. v. to ( u. km / u. s ). value tofs = times _ of _ flight. to ( u. s ). value # allocate memory shape = ( times _ of ... | [
0.3355882167816162,
0.5964349508285522,
0.5381377935409546,
-0.11338444799184799,
-0.37653282284736633,
-0.6859557032585144,
-0.2458612322807312,
0.4916069507598877,
0.3000650107860565,
0.7022680044174194,
-0.0313243493437767,
0.8692869544029236,
0.8060919642448425,
0.44695717096328735,
... |
def sanitize _ words ( self, words ) : _ words = [ ] for w in words : if isinstance ( w, string _ types ) and not isinstance ( w, unicode ) : _ words. append ( unicode ( w, encoding = " utf - 8 " ) ) else : _ words. append ( w ) return _ words | [
-0.327830046415329,
0.04875605180859566,
0.3877871632575989,
0.32238492369651794,
0.4903145432472229,
-0.30899226665496826,
-0.3173859417438507,
-0.07942957431077957,
0.10651212185621262,
1.149497628211975,
-0.22135382890701294,
0.5806809067726135,
-1.8124750852584839,
0.9180586934089661,
... |
def converthtml ( text ) : try : from ansi2html import ansi2htmlconverter conv = ansi2htmlconverter ( dark _ bg = false, inline = true ) return conv. convert ( text ). replace ('aaaaaa ','ffffff') except importerror : return ansi _ re. sub ('', text ) | [
0.2626042664051056,
0.6714351773262024,
0.3790401518344879,
0.4874788820743561,
-0.8771016001701355,
-0.26602455973625183,
-0.724720299243927,
0.9912782311439514,
0.4397529065608978,
0.8889670968055725,
-0.9245814681053162,
0.17741619050502777,
-0.36243343353271484,
0.25023385882377625,
... |
def register ( self, events ) : events [ events. extractstart ]. append ( self ) events [ events. listfeatures ]. append ( self ) | [
-0.5926469564437866,
-0.05045165866613388,
0.4652990400791168,
0.290477454662323,
0.9448332786560059,
-0.2236708551645279,
-0.20814013481140137,
1.1195565462112427,
0.3546437919139862,
-0.6961134076118469,
-1.4978312253952026,
0.31747767329216003,
0.1794995814561844,
0.23814477026462555,
... |
def refresh ( authorize : authjwt = depends ( ) ) : authorize. jwt _ refresh _ token _ required ( ) current _ user = authorize. get _ jwt _ subject ( ) new _ access _ token = authorize. create _ access _ token ( subject = current _ user ) return { " access _ token " : new _ access _ token } | [
0.14453858137130737,
-0.7997617125511169,
0.3927654027938843,
0.5645132660865784,
-1.1765720844268799,
-0.20432694256305695,
-0.17799560725688934,
-0.4872172772884369,
0.09741883724927902,
0.678846538066864,
0.28796693682670593,
1.8852734565734863,
1.1079797744750977,
0.2795598804950714,
... |
def get _ all _ records ( self ) : result = self. session. query ( book ). all ( ) books = convert _ results ( result ) return books | [
-0.2969506084918976,
-0.23504091799259186,
0.3351781964302063,
1.444126844406128,
0.8038685321807861,
0.40639248490333557,
-1.2031817436218262,
0.35508838295936584,
-0.8235090970993042,
-0.2594899535179138,
0.4681394398212433,
-0.5533085465431213,
-0.4015931487083435,
0.25654658675193787,
... |
def add _ edge ( self, u, v ) : if u not in self. successors : self. successors [ u ] = [ ] if v not in self. predecessors : self. predecessors [ v ] = [ ] if v in self. successors [ u ] : raise exception ( " graph already contains edge. " ) self. edges. append ( ( u, v ) ) self. successors. get ( u ). append ( v ) sel... | [
-0.6803866624832153,
0.7848386168479919,
0.5576313138008118,
0.006817688699811697,
0.5597521662712097,
0.645343542098999,
-0.09148205816745758,
1.2220088243484497,
0.14554280042648315,
-0.44553104043006897,
-0.44426026940345764,
0.7911700010299683,
-0.49251288175582886,
0.469813734292984,
... |
def status _ unbookmark ( self, id : union [ status, idtype ] ) - > status : id = self. _ _ unpack _ id ( id ) return self. _ _ api _ request ('post ', f'/ api / v1 / statuses / { id } / unbookmark') | [
-1.180258870124817,
-0.30074265599250793,
0.3103763163089752,
1.0557419061660767,
-0.46536797285079956,
0.10751242190599442,
0.21749606728553772,
0.7370920777320862,
0.37097445130348206,
-0.2448037713766098,
-1.1566506624221802,
0.7225959897041321,
-0.3551027476787567,
0.02656751126050949,... |
def testdeletevaluesforquerywithdeletepermissiondenied ( self ) : userapi ( ). create ( [ ( u'fred ', u'password ', u'fred ', u'fred @ example. com') ] ) user = getuser ( u'fred') permissions = cachingpermissionapi ( user ) tagapi ( user ). create ( [ ( u'fred / bar ', u'description'), ( u'fred / foo ', u'description')... | [
0.006983795203268528,
1.0176794528961182,
0.5857516527175903,
0.04016831889748573,
0.2053474634885788,
0.6230795979499817,
0.09701181948184967,
-0.7002865672111511,
-0.17915070056915283,
-1.2598940134048462,
0.35143885016441345,
-0.008181030862033367,
0.44105929136276245,
0.685780644416809... |
def payments _ reports ( ) : f = request. args. get ('filter ','' ) sqlstr = " select * from payments " if f! ='' : if f = ='expired': sqlstr = sqlstr + " where expires _ date < datetime ('now') " elif f = ='notexpired': sqlstr = sqlstr + " where expires _ date > datetime ('now') " elif f = ='recentexpired': sqlstr = s... | [
0.18680211901664734,
0.5918769240379333,
0.9400433897972107,
-0.9836072325706482,
-0.9045285582542419,
-0.20186379551887512,
-0.6515676975250244,
0.2454901486635208,
-0.5165198445320129,
-0.08830220997333527,
1.6782962083816528,
-0.5940733551979065,
-0.07728338241577148,
0.3860681056976318... |
def precisionatr ( self, resultsids, relevantids ) : return self. precisionatk ( resultsids, relevantids, len ( relevantids ) ) | [
0.013449636287987232,
-0.8252612948417664,
0.1459161639213562,
-0.8117634057998657,
-0.05269996076822281,
-0.8839851021766663,
-0.2602713406085968,
-0.008182061836123466,
-0.1078406572341919,
0.3206179141998291,
1.4149537086486816,
-0.1706436723470688,
0.14380930364131927,
-0.8261697888374... |
def tag _ verb ( node, context ) : verb = word _ from _ file ('data / verbs') tense = node. attribute or'root'if tense = ='root': return verb elif tense = ='first'or tense = ='second': return verb elif tense = ='third': if verb [ - 1 ] in'szx'or verb [ - 2 : ] in ('ch ','sh') : return'% ses'% verb elif verb [ - 1 ] = =... | [
-0.013158640824258327,
-0.7137497663497925,
0.7915699481964111,
-0.5863733887672424,
0.1346694827079773,
-0.7150647044181824,
-0.6201068162918091,
-0.14798760414123535,
0.3563309907913208,
0.5736287832260132,
0.35149723291397095,
0.5339144468307495,
0.09717600792646408,
0.05123277753591537... |
def ui ( self ) : return self. _ _ ui | [
-0.10706552118062973,
-0.45902684330940247,
0.33281639218330383,
-0.09998339414596558,
-0.33610352873802185,
0.6164504885673523,
0.6811733841896057,
0.37150952219963074,
0.8216889500617981,
-2.1185805797576904,
0.3164583742618561,
0.7127615809440613,
-0.8760320544242859,
-0.562992036342620... |
def test _ check _ config _ params _ missing _ nb _ processes ( gitdelver _ config _ params _ fixture : callable [ [ none ], dict [ str, str ] ] ) : config _ params = gitdelver _ config _ params _ fixture. pop ( " nb _ processes ", none ) with pytest. raises ( systemexit ) : gitdelver. _ check _ config _ params ( confi... | [
0.5199133157730103,
0.6323808431625366,
0.43577393889427185,
-0.30493009090423584,
0.7001698613166809,
0.22052490711212158,
-0.44301003217697144,
0.12909653782844543,
-0.7341578602790833,
0.6632708311080933,
-0.8823544979095459,
-0.24146625399589539,
-0.5433759093284607,
1.2930359840393066... |
def getemgainrange ( ) : andor _ solis. getemgainrange. restype = ctypes. c _ uint low, high = ctypes. c _ int ( ), ctypes. c _ int ( ) result = andor _ solis. getemgainrange ( ctypes. byref ( low ), ctypes. byref ( high ) ) check _ status ( result ) return int ( low. value ), int ( high. value ) | [
-0.41190847754478455,
-0.6750157475471497,
0.6687749624252319,
-0.13942070305347443,
-0.0010425937362015247,
-0.27981042861938477,
0.035165783017873764,
-0.3378555476665497,
-0.07943371683359146,
-0.6642963886260986,
-0.2320176512002945,
0.6694004535675049,
-0.6801543235778809,
1.147899270... |
def _ copy _ file ( self, input _ file ) : file _ hash = self. _ get _ file _ md5 ( input _ file ) # see if this file has been seen before try : new _ file = self. _ file _ seen _ dict [ file _ hash ] # if not, process it except keyerror : file _ root = os. path. split ( input _ file ) [ 1 ] new _ file = os. path. join... | [
-0.3559688627719879,
-0.8757100701332092,
0.8687869906425476,
-0.37491264939308167,
-0.6759620308876038,
0.2125120609998703,
1.3329588174819946,
-0.2599239647388458,
-0.7526490688323975,
0.5828199982643127,
0.39795103669166565,
-0.5269946455955505,
-0.18697413802146912,
-0.0314398147165775... |
def get _ optimizer ( self ) : with tf. name _ scope ('learning _ rate _ decay') : learning _ rate = tf. train. exponential _ decay ( learning _ rate = self. learning _ rate, global _ step = self. global _ step, decay _ steps = self. learning _ rate _ decay _ steps, decay _ rate = self. learning _ rate _ decay _ rate, ... | [
0.6297488808631897,
-0.06768053025007248,
0.39183318614959717,
0.06564943492412567,
0.5180911421775818,
-0.05162300914525986,
-0.45563748478889465,
-0.39755958318710327,
-0.10562059283256531,
-0.09654060751199722,
0.055622708052396774,
0.46761593222618103,
-0.36400675773620605,
0.127895772... |
def matching _ print ( self, matrix ) : var _ n = self. filas for i in range ( var _ n ) : print ( matrix [ i ] ) | [
0.2101619690656662,
0.0052922931499779224,
0.3855753242969513,
0.7711223363876343,
-0.3348381817340851,
-0.16001194715499878,
0.04518866539001465,
-0.15221893787384033,
-0.6275345683097839,
-0.08885189145803452,
0.8501083254814148,
0.5026305317878723,
-0.2964033782482147,
0.950506269931793... |
def _ concurrent ( self ) - > " asyncio. boundedsemaphore " : return asyncio. boundedsemaphore ( value = self. _ concurrency ) | [
1.288290023803711,
-0.28823602199554443,
0.433908075094223,
-0.3448285162448883,
0.04548708349466324,
-0.05374624952673912,
0.019201910123229027,
0.5815157294273376,
0.8409743905067444,
-0.48771727085113525,
0.24950845539569855,
0.07738059759140015,
-0.07268199324607849,
-0.521675944328308... |
def list _ screens ( ) : list _ cmd = " screen - ls " return [ ". ". join ( l. split ( ". " ) [ 1 : ] ). split ( " \ t " ) [ 0 ] for l in getoutput ( list _ cmd ). split ('\ n') if " \ t " in l and ". ". join ( l. split ( ". " ) [ 1 : ] ). split ( " \ t " ) [ 0 ] ] | [
-0.44971439242362976,
-1.0409184694290161,
1.0659089088439941,
0.03264275938272476,
0.06774797290563583,
-0.018902817741036415,
-0.8426527380943298,
-0.8866735100746155,
0.6406498551368713,
0.4850127100944519,
0.09551017731428146,
0.3474443554878235,
-0.1979745477437973,
1.2582968473434448... |
def pre _ process _ image ( self ) : image = self. modification _ information. image original _ dimensions = image. shape [ 0 ] new _ dimensions = self. preference. dimensions * 2 if new _ dimensions < original _ dimensions : image = im. set _ dimensions ( image, new _ dimensions ) original _ dimensions = image. shape ... | [
0.4100395143032074,
0.7498963475227356,
0.8652868866920471,
-0.4876822531223297,
0.1379641890525818,
-0.17759281396865845,
0.20275089144706726,
-0.20392894744873047,
0.26821598410606384,
-0.20405054092407227,
0.9239400029182434,
0.9926818609237671,
0.3588445484638214,
0.7383912801742554,
... |
def createtfexampleparserconfig ( tensor _ representation : schema _ pb2. tensorrepresentation, feature _ type : schema _ pb2. featuretype ) - > common _ types. featurespectype : value _ dtype = _ feature _ type _ to _ tf _ type. get ( feature _ type, none ) if value _ dtype is none : raise valueerror ( " the feature _... | [
0.4552902579307556,
-0.07183236628770828,
0.33633750677108765,
-0.6029664278030396,
0.09827733039855957,
-0.6029531955718994,
0.25042131543159485,
0.11475523561239243,
-0.2449922114610672,
0.13377325236797333,
-0.7797977924346924,
0.21000069379806519,
0.3148995339870453,
-0.403843104839324... |
def mean _ cov ( x ) : if not isinstance ( x, np. ndarray ) : raise typeerror ( " x must be a 2d numpy. ndarray " ) if len ( x. shape )! = 2 : raise typeerror ( " x must be a 2d numpy. ndarray " ) if x. shape [ 1 ] < 2 : raise valueerror ( " x must contain multiple data points " ) x = x. t mean = np. mean ( x, axis = 0... | [
-0.4361862540245056,
-0.5024018287658691,
0.7381576895713806,
-0.13536213338375092,
-0.7353119254112244,
0.11760963499546051,
0.1757611632347107,
-0.00495196832343936,
-0.010931157507002354,
1.3212356567382812,
-0.66187584400177,
0.8839202523231506,
0.6953439712524414,
0.6131857633590698,
... |
def secondary _ id ( self, secondary _ id ) : self. _ secondary _ id = secondary _ id | [
1.3802967071533203,
-1.3779644966125488,
-0.2289295643568039,
0.6149008870124817,
0.38857603073120117,
0.28560206294059753,
-0.3150738775730133,
1.2255704402923584,
-0.4111068844795227,
-0.1769859790802002,
-1.3865123987197876,
1.1464791297912598,
0.2699403166770935,
0.44382616877555847,
... |
def randommaxload ( self ) : if self. force _ auto _ sync : self. get ('randommaxload') return self. _ randommaxload | [
-0.9951728582382202,
0.7337403893470764,
0.43290361762046814,
0.39441266655921936,
-0.48135635256767273,
0.9716298580169678,
-0.22361452877521515,
-0.8952926397323608,
1.0198215246200562,
-0.4159616529941559,
-1.1263415813446045,
0.6829598546028137,
-0.2236620932817459,
-0.0179760884493589... |
def getvalue ( self ) : return b'' | [
0.5862294435501099,
0.2630804777145386,
0.46679171919822693,
0.6818468570709229,
0.7319469451904297,
0.8216612339019775,
-0.360101580619812,
-0.7285863757133484,
0.5114020705223083,
-0.39127615094184875,
-0.19194380939006805,
0.8315967917442322,
-0.5017058253288269,
-0.30268654227256775,
... |
def test _ cancel _ unpaid _ does _ not _ create _ transfer _ block ( self ) : self. assertfalse ( block. objects. exists ( ) ) event = baker. make _ recipe ('booking. future _ pc ', cost = 10 ) # unpaid unpaid _ booking = baker. make _ recipe ('booking. booking ', user = self. user, event = event, paid = false, ) url ... | [
0.7603378891944885,
0.5751753449440002,
0.6123979687690735,
0.7982771396636963,
-0.25616180896759033,
2.0285370349884033,
-0.11796216666698456,
0.32913830876350403,
-0.035918351262807846,
-0.6338335275650024,
-0.5779877305030823,
-0.8458588123321533,
-0.41585031151771545,
0.928610742092132... |
def write _ json ( file : str, data : union [ dict [ str, any ], list [ any ] ] ) : with open ( file = file, mode ='w ', encoding ='utf - 8') as f : f. write ( json. dumps ( data, ensure _ ascii = false, indent = 2 ) ) | [
-0.7631532549858093,
-0.7573177814483643,
0.14199765026569366,
-0.3262891471385956,
0.3483099043369293,
0.21675509214401245,
-0.6714224219322205,
0.5157714486122131,
-0.7819640636444092,
-0.050060611218214035,
-0.7568415403366089,
0.2850361168384552,
0.45090043544769287,
0.4083918631076813... |
def _ _ init _ _ ( self, * * kwargs ) : self. _ test _ name = test _ name or kwargs. pop ('test _ name ', _ default _ test _ name ) self. driver = none self. eyes = applitools. eyes. eyes ( ) self. eyes. batch = kwargs. pop ('batch _ info ', none ) self. eyes. host _ app = kwargs. pop ('host _ app ', none ) self. eyes.... | [
-0.012307791970670223,
-0.19680722057819366,
0.5759970545768738,
0.10952399671077728,
0.18776218593120575,
-0.2079511135816574,
-0.7298955321311951,
-0.3095814287662506,
0.14412066340446472,
0.07011160254478455,
-0.2142423838376999,
-0.09343823790550232,
-0.5424636602401733,
0.363561600446... |
def _ ntk _ vector _ products _ ntk _ fn ( f : applyfn, trace _ axes : axes, diagonal _ axes : axes, vmap _ axes : vmapaxes, * * kwargs ) - > empiricalkernelfn : def ntk _ fn ( x1 : pytree, x2 : optional [ pytree ], params : pytree, * * apply _ fn _ kwargs ) - > np. ndarray : " " " computes a single sample of the empir... | [
0.1677091121673584,
0.24046507477760315,
0.7044314742088318,
-0.042318638414144516,
-0.4730871915817261,
-0.8848428726196289,
0.6271997690200806,
-0.9595952033996582,
-0.6095908880233765,
0.9195757508277893,
-0.016141757369041443,
0.10963752865791321,
1.1040449142456055,
-0.486029475927352... |
def _ _ export _ ass ( self ) : for output in self. _ _ output _ list _ box. selected _ items ( ) : if output. rop is not none : session _ id = int ( time. time ( ) ) ass _ path = self. export _ ass _ path ( output. rop _ path, session _ id ) ass _ name = self. export _ ass _ name ( output. rop _ path, session _ id ) i... | [
-0.25170063972473145,
-0.7937600612640381,
0.9288861155509949,
0.9721357822418213,
-0.09794803708791733,
-0.346360981464386,
0.5383135080337524,
-0.52800053358078,
0.4771922528743744,
-0.36634695529937744,
0.274395227432251,
-0.10388403385877609,
1.024590253829956,
0.618815004825592,
0.2... |
def supported _ writers ( ) : return _ _ writerconstructors. keys ( ) | [
-1.0333619117736816,
-0.5582922101020813,
0.3051145374774933,
0.4867200255393982,
0.21724015474319458,
0.13467532396316528,
0.015305493958294392,
0.6795840263366699,
-0.3684930205345154,
-0.46285760402679443,
-0.9517674446105957,
-0.21975836157798767,
-0.4064990282058716,
0.263455212116241... |
def main ( cmd _ line _ args ) : if cmd _ line _ args. specfiy _ software _ branch : global sw _ version sw _ version = cmd _ line _ args. specfiy _ software _ branch if cmd _ line _ args. specfiy _ hardware _ branch : global hw _ version hw _ version = cmd _ line _ args. specfiy _ hardware _ branch repository _ basepa... | [
0.16135522723197937,
-0.2524021565914154,
0.7721517086029053,
0.48170360922813416,
0.6608613729476929,
0.21050359308719635,
0.4107343256473541,
0.19621697068214417,
-0.4396859407424927,
-0.010435940697789192,
0.2311517745256424,
-0.34503138065338135,
-0.4351613223552704,
0.6232149004936218... |
def create _ connection ( self, db _ file ) : conn = none try : conn = sqlite3. connect ( db _ file ) print ( f'connection stablished to database. version : { sqlite3. version }') return conn except error as e : print ( e ) return conn | [
0.23436245322227478,
-0.2504161298274994,
0.2743868827819824,
0.08796881884336472,
0.6905646324157715,
0.8740794658660889,
-0.4564912021160126,
-0.016499022021889687,
-0.7383208274841309,
0.15273961424827576,
0.35042959451675415,
-0.9061083793640137,
-1.033097505569458,
-0.0392920263111591... |
def _ turn ( self ) : if self. dyingcounter : return for i in range ( 0, len ( self. idle _ anim ) ) : self. idle _ anim [ i ] = pygame. transform. flip ( self. idle _ anim [ i ], true, false ) for i in range ( 0, len ( self. sprint _ anim ) ) : self. sprint _ anim [ i ] = pygame. transform. flip ( self. sprint _ anim ... | [
-1.535023808479309,
-0.1852007508277893,
0.6333107352256775,
-0.7935836315155029,
0.3864624798297882,
0.6401851773262024,
0.077313631772995,
0.3853215277194977,
-0.6878688335418701,
0.1628008633852005,
-0.3723870813846588,
0.024705519899725914,
0.14879274368286133,
0.8506534099578857,
1.... |
def get _ 5gnr _ params _ amp ( self, header = 0 ) : if header! = 1 : attn = self. get _ 5gnr _ usermargin ( ) prea = self. get _ 5gnr _ extattn ( ) refl = self. get _ 5gnr _ exppwr ( ) outstr = f'{ attn : 7. 3f }, { prea }, { refl : 7. 3f }'else : outstr ='usermargin, extattn, exppwr'return outstr | [
-0.3344607651233673,
-0.7963733673095703,
0.49447429180145264,
-0.6499704718589783,
-1.0300278663635254,
0.15735948085784912,
-0.27418649196624756,
-1.200486421585083,
-0.37945592403411865,
0.775426983833313,
0.7860019207000732,
0.26658305525779724,
-0.8901472091674805,
0.9463261365890503,... |
def get _ os ( ) : if hasattr ( os,'uname') : if os. uname ( ) [ 0 ] = = " darwin " : return false, true, false return true, false, false return false, false, true | [
-1.1221001148223877,
1.2317742109298706,
0.7840957641601562,
0.5478984713554382,
-0.03633531928062439,
-0.040830135345458984,
-0.24265441298484802,
-0.013388468883931637,
-0.3379669785499573,
-0.1478656679391861,
-0.7210857272148132,
-0.11973217129707336,
0.40436527132987976,
-0.0475334711... |
def test _ calculate _ pos _ slopes ( ) : arr = np. linspace ( np. zeros ( ( 3, 2 ) ), np. ones ( ( 3, 2 ) ), 5 ) slopes = mob. _ calculate _ temporal _ linear _ slope ( arr ) assert np. all ( slopes > 0. 0 ) | [
0.9127742052078247,
-0.24279260635375977,
0.49882426857948303,
0.5651768445968628,
-0.04084175452589989,
0.6543131470680237,
-0.5975707769393921,
0.17387865483760834,
-0.371582955121994,
-0.07386469841003418,
-0.37189555168151855,
-0.9933026432991028,
-0.1818692684173584,
0.850651979446411... |
def get _ school ( ) : try : schools = school _ service. get _ all _ schools ( ) current _ app. logger. info ( " get all school records " ) return jsonify ( { " data " : { " count " : len ( schools ), " schools " : schools } } ), 200 except sqlcustomerror as error : current _ app. logger. error ( " error in get all sch... | [
-0.35301482677459717,
-0.18403379619121552,
0.9315354228019714,
0.22715146839618683,
0.5140925645828247,
-0.22550511360168457,
-0.6673997640609741,
0.274041086435318,
-0.0252368226647377,
0.739461362361908,
-0.06972332298755646,
0.9077763557434082,
0.03285583481192589,
0.14166326820850372,... |
def invitee _ email ( self, invitee _ email ) : self. _ invitee _ email = invitee _ email | [
-0.1137046068906784,
0.018695153295993805,
-0.02765846624970436,
1.0449788570404053,
1.028410792350769,
0.2620737552642822,
0.5379637479782104,
1.9198905229568481,
-1.33220374584198,
0.5389788150787354,
-0.5466158390045166,
-0.12473539263010025,
-1.005912184715271,
-0.31365248560905457,
... |
def handler _ send _ sticker _ and _ greeting ( update : update, context : callbackcontext ) : update. message. reply _ sticker ( sticker ) hi _ message = " hi, @ " + update. message. from _ user. username + "! " update. message. reply _ text ( hi _ message ) | [
0.490447461605072,
0.09951850771903992,
0.48810136318206787,
0.8544628620147705,
-0.6211953163146973,
0.7025183439254761,
-0.030611684545874596,
-0.14250151813030243,
-0.3412378132343292,
0.30844005942344666,
-0.22422295808792114,
-0.12418389320373535,
-0.7312439680099487,
0.64788591861724... |
def test _ stop _ midblock ( self ) : log. info ( " = = = = = start integ test stop mid - block = = = = = " ) # create file ( 1 block, 10 instrument particles, 1 metadata particle ) self. clear _ async _ data ( ) self. create _ sample _ data _ set _ dir ('rec _ vel3d _ l _ 1. dat ', dir _ rec, file _ rec1 ) self. drive... | [
0.8505538702011108,
-0.5217446684837341,
0.7630666494369507,
-0.5963740944862366,
0.41878166794776917,
-0.01998477429151535,
0.4621601700782776,
-0.23630742728710175,
-0.807811975479126,
0.25029048323631287,
-0.5687446594238281,
0.342389851808548,
-0.882933497428894,
-0.38067299127578735,
... |
def combine _ semantic _ and _ instance _ outputs ( thing _ id _ map, stuff _ id _ map, instance _ results, semantic _ results, overlap _ threshold, stuff _ area _ limit, instances _ confidence _ threshold, mode = " panoptic " ) : panoptic _ seg = torch. zeros _ like ( semantic _ results, dtype = torch. int32 ) # sort ... | [
-0.5539757609367371,
-0.5925067663192749,
0.8123770356178284,
-0.12669974565505981,
0.32502812147140503,
0.30802151560783386,
0.7466474771499634,
-0.43087002635002136,
-0.027649682015180588,
0.49679645895957947,
0.46026426553726196,
-0.2283376306295395,
0.5437803864479065,
-0.0182606540620... |
def test _ intraday _ dataframe _ with _ daily _ database ( self ) : def mock _ get _ prices ( * args, * * kwargs ) : dt _ idx = pd. datetimeindex ( [ " 2018 - 03 - 31 ", " 2018 - 06 - 30 " ] ) fields = [ " eps " ] idx = pd. multiindex. from _ product ( [ fields, dt _ idx ], names = [ " field ", " date " ] ) prices = p... | [
-0.7459894418716431,
0.6761526465415955,
0.8225440979003906,
-0.3156568706035614,
0.17661549150943756,
0.03955427557229996,
0.4581187665462494,
-0.05250772833824158,
-0.18788769841194153,
-0.639000415802002,
-0.010662374086678028,
0.11830566078424454,
-0.8450884819030762,
-0.29906091094017... |
def filtermapableregions ( infile, outfile ) : statement ='''mergebed - i % ( infile ) s - d % ( mapability _ merge _ distance ) i | awk'$ 3 - $ 2 > = % ( mapability _ min _ segment _ size ) i'| gzip > % ( outfile ) s'''p. run ( ) | [
0.11773144453763962,
-0.17369776964187622,
0.6163319945335388,
0.8051803112030029,
-0.6910879015922546,
0.8485984206199646,
0.3320299983024597,
-0.16129741072654724,
-0.23932577669620514,
-0.49004578590393066,
0.17942823469638824,
-0.30366915464401245,
-1.0910069942474365,
-0.1091801747679... |
def read _ datablock _ size ( file, location ) : # advance 8 bytes to skip signature file. seek ( location + 8 ) # return the 8 byte long size return int ( codecs. encode ( file. read ( 8 ),'hex'), 16 ) | [
0.5366302728652954,
0.23617111146450043,
0.47795119881629944,
-1.2388026714324951,
-0.7780492901802063,
-0.14281657338142395,
-0.5162993669509888,
0.5159867405891418,
-0.28611427545547485,
0.2575540244579315,
-0.9278197288513184,
0.27794599533081055,
-0.00596292968839407,
-0.23856167495250... |
def read _ binary ( fileobj, bytetype ='uint8 ', size = 1 ) : import struct typenames = {'int8': ('b ', struct. calcsize ('b') ),'uint8': ('b ', struct. calcsize ('b') ),'int16': ('h ', struct. calcsize ('h') ),'uint16': ('h ', struct. calcsize ('h') ),'int32': ('i ', struct. calcsize ('i') ),'uint32': ('i ', struct. c... | [
0.08458880335092545,
-0.23496416211128235,
1.1050788164138794,
-0.29175814986228943,
-0.9937216639518738,
-0.5500844717025757,
0.41501009464263916,
-0.5034077167510986,
0.044215861707925797,
-0.14210742712020874,
-0.5599109530448914,
0.2117072343826294,
-0.8728078603744507,
0.3209374845027... |
def filter _ getaveragingframecount ( ) : andor _ solis. filter _ getaveragingframecount. restype = ctypes. c _ uint frames = ctypes. c _ int ( ) result = andor _ solis. filter _ getaveragingframecount ( ctypes. byref ( frames ) ) check _ status ( result ) return int ( frames. value ) | [
-0.4316423237323761,
0.18068373203277588,
0.6462526321411133,
0.11109829694032669,
-0.8217681646347046,
-0.9729881882667542,
0.9965161681175232,
-0.4566333293914795,
0.34274259209632874,
-0.010896293446421623,
-0.0382232628762722,
0.899292528629303,
-0.4728997051715851,
0.6358464360237122,... |
def rm _ allfiles ( self, path ) : path = self. fix _ path ( path ) if self. node _ exists ( path ) : files = self. get _ folder _ contents ( path ) for f in files : if f. entry _ type = = " document " : self. rm _ file ( f. entry _ path ) | [
0.187351256608963,
-0.057095736265182495,
0.7922013401985168,
0.14172674715518951,
-0.04723965376615524,
-0.005025629419833422,
0.04099651798605919,
0.014747059904038906,
-0.1598881185054779,
0.16891629993915558,
0.13355474174022675,
-0.5664485692977905,
-0.5332287549972534,
0.693581163883... |
def connections ( self ) : return self. _ connections | [
-1.1059702634811401,
-0.8131320476531982,
0.2610630691051483,
0.5475490093231201,
0.5952443480491638,
-0.4449627697467804,
0.041676487773656845,
-0.5428438186645508,
0.277017205953598,
-1.0444949865341187,
-0.470302551984787,
-0.3657999336719513,
-0.8233498930931091,
-0.14627546072006226,
... |
def down _ whole ( self ) : whole = self. down _ half ( ). down _ half ( ) return whole if self. get _ accidental ( ) = = c. tone _ flat else whole. alt ( ) | [
0.3898601531982422,
-0.7378987669944763,
0.5220485925674438,
-0.025436369702219963,
-0.27221226692199707,
0.7369507551193237,
0.7072873115539551,
-1.3442894220352173,
0.023400625213980675,
-0.4130150377750397,
0.4992338716983795,
0.3477560579776764,
-1.4178881645202637,
0.4256526231765747,... |
def parallel _ lines ( path : str, filter _ str : str = none ) - > generator : # read all files at once - returns a list of io. textiowrappers all _ files = [ open _ file _ safely ( os. path. join ( path, filename ) ) for filename in os. listdir ( path ) ] # iterate over each file. if file is empty, remove it from all ... | [
0.8099567890167236,
-0.6076259016990662,
0.9172388315200806,
0.6089498996734619,
-0.5838901996612549,
0.12064262479543686,
0.548957884311676,
0.5042074918746948,
-0.31772589683532715,
0.031500495970249176,
0.8545547127723694,
-0.0382230170071125,
0.08855907618999481,
0.06887324154376984,
... |
def testgettaginstancewithunknowntag ( self ) : objectid = uuid4 ( ) self. store. commit ( ) with login ( u'username ', objectid, self. transact ) as session : deferred = self. facade. gettaginstance ( session, u'unknown / path ', str ( objectid ) ) error = yield self. assertfailure ( deferred, tnonexistenttag ) self. ... | [
0.2552725374698639,
0.4291948974132538,
0.44241103529930115,
-0.27530527114868164,
0.5948037505149841,
0.034431133419275284,
-0.2277907282114029,
-0.47659605741500854,
-0.4270886778831482,
-0.5817474126815796,
-0.6598938703536987,
-0.3930073082447052,
0.7770322561264038,
0.2455625832080841... |
def shuffle ( self ) : np. random. seed ( seed = 0 ) shuffled _ order = np. random. permutation ( len ( self. scaled _ train _ features ) ) self. scaled _ train _ features = self. scaled _ train _ features [ shuffled _ order, : ] self. train _ targets = self. train _ targets [ shuffled _ order ] | [
-1.1420563459396362,
-0.4077182412147522,
0.44570526480674744,
-0.7014061212539673,
0.5283409953117371,
0.40860095620155334,
0.2476952224969864,
0.23779450356960297,
-0.3652459681034088,
-0.2274361103773117,
-0.2610902488231659,
1.0751152038574219,
0.46641218662261963,
-0.23868395388126373... |
def setup ( cls ) : role = role ( role = " subscriber " ) role. save ( ) content = { " email " : " user12 @ gmail. com ", " name " : " user 12 ", " password " : " user123 ", " contact " : " 9999911111 ", " address " : " bangalore ", " role " : " subscriber ", " organization " : " eventhigh " } url1 = reverse ('registra... | [
0.5471316576004028,
0.3563264012336731,
1.1064071655273438,
0.3227074146270752,
1.0508967638015747,
-0.31819432973861694,
0.11102414131164551,
-0.32708609104156494,
-0.16546683013439178,
0.16313053667545319,
-1.3563271760940552,
0.15578828752040863,
0.01158302091062069,
0.3068714141845703,... |
def _ _ init _ _ ( self, opts ) : super ( functioncomponent, self ). _ _ init _ _ ( opts ) self. opts = opts self. smtp _ config _ section = self. opts. get ( config _ data _ section, { } ) validate _ fields ( [ " smtp _ server ", " smtp _ port " ], self. smtp _ config _ section ) self. template _ file _ path = self. s... | [
0.4504982829093933,
-0.08345314115285873,
0.6651443839073181,
-0.0729239210486412,
-0.23739826679229736,
-0.6076636910438538,
0.8524760603904724,
1.033809781074524,
-0.3489203155040741,
0.20031334459781647,
-0.03493861109018326,
0.11623617261648178,
0.9374252557754517,
0.5681555271148682,
... |
def setup _ streams ( input _ streams ) : input _ streams. add _ callback ( secondoperator. save _ numbers ) input _ streams. add _ completion _ callback ( secondoperator. execute _ sum ) return [ datastream ( data _ type = int, name = " sum _ out " ) ] | [
0.4333130717277527,
-0.04003813862800598,
0.5815230011940002,
0.5638973116874695,
0.4715551733970642,
-0.9857358932495117,
0.9152917861938477,
-0.5188909769058228,
0.5577723979949951,
-0.051696136593818665,
-1.1304776668548584,
-0.6609350442886353,
-0.11688826233148575,
1.042374849319458,
... |
def compare _ means ( group _ 1 _ years, group _ 2 _ years, year _ column, var, df ) : from scipy. stats import ttest _ ind group1 = df [ ( df [ year _ column ]. isin ( group _ 1 _ years ) ) ] group2 = df [ ( df [ year _ column ]. isin ( group _ 2 _ years ) ) ] ttest = ttest _ ind ( group1 [ var ], group2 [ var ], equa... | [
-0.6782650351524353,
-0.5089743733406067,
0.618519127368927,
-0.4252108931541443,
-0.27199211716651917,
-0.16815997660160065,
0.21426397562026978,
-0.5445801615715027,
-0.4321443736553192,
1.0482897758483887,
0.670272946357727,
1.408432126045227,
-0.46308380365371704,
-0.28142908215522766,... |
def _ _ init _ _ ( self ) : self. key = [ [ ] for _ in range ( 1000 ) ] self. value = [ [ ] for _ in range ( 1000 ) ] | [
-0.26615825295448303,
0.14014838635921478,
0.44558268785476685,
-0.06752586364746094,
-0.2928403913974762,
-0.18474532663822174,
-0.1357385367155075,
0.8756348490715027,
0.10145581513643265,
0.31890609860420227,
-0.9479909539222717,
0.07935158908367157,
0.6146302819252014,
1.49677860736846... |
def get _ absolute _ url ( self ) : return reverse ('donor - detail ', args = [ str ( self. id ) ] ) | [
0.024715375155210495,
-0.3729517459869385,
0.5659283399581909,
-0.271124929189682,
0.8128306269645691,
0.5822126269340515,
-0.2414294332265854,
0.5834606289863586,
-0.22304508090019226,
-0.787743866443634,
0.7947767376899719,
1.0855973958969116,
0.7496424317359924,
0.5821508765220642,
-0... |
def create _ data _ 0 ( self ) : args = self. args files = os. listdir ( args. data _ dir ) task _ id = args. task _ id files = [ args. data _ dir + f for f in files if'task { } '. format ( task _ id ) in f and args. target _ file in f and'oov'not in f ] assert len ( files ) = = 1 target _ file = files [ 0 ] with open ... | [
-0.4364250600337982,
-0.3994990289211273,
0.9493798613548279,
-0.2157740443944931,
0.743236243724823,
0.03456275910139084,
0.5215660929679871,
-0.6241604685783386,
0.19737061858177185,
0.013118903152644634,
0.03241473436355591,
0.3559071123600006,
0.8135457634925842,
0.3045143485069275,
... |
def process _ data _ items ( self, item _ array, information _ base : destinationinformationbase ) : for item in item _ array : if item. type = = dataitemtype. ipv4 _ connection _ point : information _ base. ipv4 _ address = item. ipaddr self. peer _ tcp _ port = item. tcp _ port elif item. type = = dataitemtype. maxim... | [
-0.9933301210403442,
-0.6598713397979736,
0.668420672416687,
-0.5147266983985901,
0.986346960067749,
0.23089604079723358,
-0.763656497001648,
-0.4938229024410248,
-0.14945119619369507,
0.20743490755558014,
-0.03726446256041527,
-0.056309085339307785,
-0.19212357699871063,
-0.17932860553264... |
def _ _ init _ _ ( self ) : self. _ start = none self. _ size = 0 | [
-0.18230396509170532,
-0.5507265329360962,
0.42965108156204224,
-0.5301458239555359,
0.558464527130127,
-0.5357873439788818,
0.6947604417800903,
0.5856121182441711,
0.23658685386180878,
-1.0515135526657104,
-1.182920217514038,
0.21879926323890686,
-0.7069439888000488,
0.7541933655738831,
... |
def compute _ two _ player _ minimax ( u, g, use _ movement _ constraints = true, * * solver _ args ) : z = cp. variable ( ) x _ var = cp. variable ( u. shape [ 0 ] ) pat _ constraints = [ ( cp. sum ( x _ var ) = = 1 ), ( x _ var > = 0 ), ( z < = x _ var @ u ) ] if use _ movement _ constraints : for v in g. nodes : inc... | [
-0.1781288981437683,
-0.3233347237110138,
1.112056851387024,
0.6608474850654602,
-0.4458330273628235,
-0.6435107588768005,
0.6380557417869568,
0.5001324415206909,
0.1622602939605713,
0.6955588459968567,
-0.0939025804400444,
0.7924695611000061,
-0.10061398893594742,
-0.17141272127628326,
... |
def find _ altss ( alljuncs, writer, search _ threeprime = true ) : for chrom in alljuncs : for fiveprime in alljuncs [ chrom ] : if len ( alljuncs [ chrom ] [ fiveprime ] ) = = 1 : # if there is only one 3'end, not an alt 3'junction continue all _ tp = list ( alljuncs [ chrom ] [ fiveprime ]. keys ( ) ) n = 0 for tp1 ... | [
0.30818650126457214,
-0.3140657842159271,
0.8286280632019043,
-0.14265939593315125,
-0.7938997149467468,
0.2062956839799881,
0.9734990000724792,
0.685035765171051,
0.9688228964805603,
0.5586322546005249,
-0.18187256157398224,
0.399630606174469,
0.15283100306987762,
-0.023960046470165253,
... |
def _ is _ run _ budget _ exhausted ( self, fevals = none, brackets = none, total _ cost = none ) : delimiters = [ fevals, brackets, total _ cost ] delim _ sum = sum ( x is not none for x in delimiters ) if delim _ sum = = 0 : raise valueerror ( " need one of'fevals ','brackets'or'total _ cost'as budget for dehb to run... | [
-0.9030212163925171,
0.3877740502357483,
0.7186648845672607,
0.03213813155889511,
-0.20598642528057098,
-0.041626397520303726,
-0.5779510736465454,
-0.5249271988868713,
-0.9539617896080017,
-0.1590695083141327,
-0.34247782826423645,
-0.003166643436998129,
-0.7081392407417297,
0.59072983264... |
def read _ series ( file _ name, wavlen = 1738 ) : wav = spectra = xy = none with open ( file _ name,'rb') as fid : data = fid. read ( ) # read out firstwav, lastwav, construct wav fid. seek ( 0 ) s = [ ] for i in range ( 1000 ) : s. append ( ( read _ binary ( fid,'uint32') ) ) offset = s. index ( wavlen ) * 4 fid. see... | [
0.008946876972913742,
-0.4577462077140808,
0.9712880849838257,
-1.175378441810608,
-0.5864434838294983,
-0.4494151771068573,
0.10439419746398926,
-0.4895845949649811,
-0.20210887491703033,
-0.2406674325466156,
-0.03935404121875763,
0.8657658100128174,
0.08076198399066925,
0.079197674989700... |
def collect _ stats ( self ) : frame = self. curr _ frame if self. curr _ frame _ is _ bad : frame = self. past _ frames [ - 1 ] self. stats. append ( ['{ } '. format ( self. frame _ count ),'{ } '. format ( len ( frame. left _ lane. x ) ),'{ } '. format ( len ( frame. left _ lane. yvals ) ),'{ } '. format ( len ( fram... | [
-0.026044566184282303,
-0.6087316274642944,
0.7925621271133423,
-1.8122673034667969,
0.5570270419120789,
0.023375848308205605,
-0.5335411429405212,
-1.0051770210266113,
0.25234341621398926,
0.2647007405757904,
0.22899889945983887,
0.39001578092575073,
0.36803945899009705,
1.007328510284423... |
def search ( words ) : newlist = [ w for w in words if'lo'in w ] return newlist | [
0.2823813259601593,
-0.17162126302719116,
0.34045761823654175,
-0.07934210449457169,
-0.5554375648498535,
-0.015136177651584148,
-1.0762388706207275,
0.06469167023897171,
0.011335590854287148,
0.19329434633255005,
-0.3361250162124634,
0.23999348282814026,
-0.8181549310684204,
1.06021130084... |
def _ getprimitivefeaturetypes ( features : list [ " schema _ pb2. feature " ] ) - > dict [ path. columnpath, " schema _ pb2. featuretype " ] : result = { } for feature in features : if feature. type = = schema _ pb2. struct : if feature. struct _ domain. sparse _ feature : raise valueerror ( " struct features with spa... | [
-0.6165381669998169,
0.5036107897758484,
0.569979190826416,
0.6145175695419312,
-0.3328383266925812,
-0.10385127365589142,
0.7906047701835632,
0.22937026619911194,
-0.22078318893909454,
-0.5475479364395142,
-1.4625767469406128,
-0.65870201587677,
-0.08062964677810669,
0.7464215159416199,
... |
def test _ close _ twice _ in _ a _ row ( self ) : config = testbaseclass. get _ connection _ config ( ) if testclose. user is none and testclose. password is none : self. client = aerospike. client ( config ). connect ( ) else : self. client = aerospike. client ( config ). connect ( testclose. user, testclose. passwor... | [
-0.3781651258468628,
-0.29567191004753113,
0.46576493978500366,
0.2995852828025818,
0.6701846718788147,
0.8269513249397278,
-0.1356540471315384,
-1.1168997287750244,
-0.04928553104400635,
-0.2508474290370941,
0.5518863201141357,
-0.27666565775871277,
-0.8399877548217773,
0.6880162358283997... |
def get _ client ( credentials ) : try : client = bigquery. client ( ) return client except exception as e : print ( f'error accessing google drive with service account'\ f'{ credentials }') raise ( e ) | [
0.8303033709526062,
-0.5997840166091919,
0.25652649998664856,
-0.9571772813796997,
0.07913991808891296,
0.055232562124729156,
0.30896902084350586,
-0.5071942806243896,
-1.1527831554412842,
-0.887484073638916,
1.2491488456726074,
1.261722445487976,
-0.7764579057693481,
-0.7925631403923035,
... |
def _ get _ preferred _ deployment _ flavor ( model _ config ) : if mleap. flavor _ name in model _ config. flavors : return mleap. flavor _ name elif pyfunc. flavor _ name in model _ config. flavors : return pyfunc. flavor _ name else : raise mlflowexception ( message = ( " the specified model does not contain any of ... | [
0.08503862470388412,
-0.007250915747135878,
0.4339626133441925,
0.10035815089941025,
-0.1997877061367035,
-0.5341896414756775,
-0.27543988823890686,
0.24223560094833374,
-0.1775054633617401,
0.521295428276062,
0.33422544598579407,
0.378310889005661,
0.2385151982307434,
0.8051005005836487,
... |
def _ _ init _ _ ( self ) : self. verbose = song _ monitor _ config. verbose self. check _ handle = song _ checker. checker ( ) self. perform _ actions = mon _ actions. do _ actions ( ) self. email _ send = 0 self. second _ occurence = 0 self. dome _ second = 0 self. pc _ dome _ delay = 0 self. old _ error _ list = " "... | [
-0.07680722326040268,
-0.17565053701400757,
0.4935900568962097,
0.8287769556045532,
1.1044291257858276,
0.13677886128425598,
0.7254270911216736,
-0.17493057250976562,
-0.27681899070739746,
-0.24915577471256256,
-0.32790008187294006,
0.30666157603263855,
-0.6705273389816284,
1.3991814851760... |
def _ _ calculatemassdistributionvector ( self, elementdict, atomtracer, nadistributions ) : result = np. array ( [ 1. ] ) for atom, n in elementdict. items ( ) : if atom not in [ atomtracer ] : for i in range ( n ) : result = np. convolve ( result, nadistributions [ atom ] ) return result | [
-0.45430222153663635,
0.044596586376428604,
0.43597322702407837,
0.062055252492427826,
-0.046606168150901794,
0.14636917412281036,
-0.1218378022313118,
0.25075387954711914,
0.2946750223636627,
0.19948109984397888,
0.20564328134059906,
0.0718638077378273,
0.36381569504737854,
1.049949049949... |
def main ( args ) : start _ time = time. time ( ) args = parse _ args ( args ) assert len ( args. words ) = = 2, " specify two words to build chain " print ( f " the metagrams are : { find ( args. words ) }. " ) print ( f " - - - { round ( time. time ( ) - start _ time, 2 ) } seconds - - - " ) | [
0.5566360950469971,
0.3768041729927063,
0.7045671343803406,
0.35718783736228943,
0.46675124764442444,
0.14541281759738922,
0.36179235577583313,
0.1745634526014328,
-0.6912174224853516,
0.4138081967830658,
0.17905490100383759,
1.761077880859375,
-0.5017245411872864,
0.8328749537467957,
-0... |
def max _ value ( self ) - > float : return super ( ). _ static _ info. max _ value | [
0.8887140154838562,
0.7854995727539062,
0.21477510035037994,
0.9443652033805847,
0.6507213115692139,
0.6060042977333069,
-0.41532158851623535,
-0.012817725539207458,
-1.0406016111373901,
-0.4546295404434204,
0.18293672800064087,
0.6285682320594788,
0.7725241780281067,
0.6589324474334717,
... |
def truefunc ( self, data ) : return true | [
0.04824158176779747,
-0.352355033159256,
0.33001425862312317,
-0.1090378686785698,
0.05512148141860962,
0.4875040352344513,
0.3945883810520172,
1.0954182147979736,
0.03955253213644028,
-0.8495529294013977,
-1.027997374534607,
-0.4322876036167145,
-0.35899481177330017,
-0.45184895396232605,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.