text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def text ( self, f ) : self. add _ handler ( f, type ='text') return f | [
-0.430745929479599,
-0.1529311239719391,
0.579041063785553,
-0.3075615167617798,
-0.7940788269042969,
0.08865054696798325,
0.22994177043437958,
0.3895798623561859,
0.04659023508429527,
-0.6536598801612854,
-0.48199447989463806,
-0.19103407859802246,
0.5670104026794434,
-0.4920094311237335,... |
def runepoch ( args, epoch, train _ model, test _ model, explog, elapsed _ training _ time ) : log. info ( " starting epoch { } / { } ". format ( epoch + 1, args. epoch _ count ) ) epoch _ iters = int ( args. epoch _ size / args. batch _ size / args. num _ shards ) test _ epoch _ iters = int ( args. test _ epoch _ size... | [
-0.15631765127182007,
0.19350416958332062,
0.8670282959938049,
0.2339477837085724,
0.45587313175201416,
-0.42060136795043945,
0.7396359443664551,
0.1744549572467804,
-0.7277183532714844,
0.4159044921398163,
0.15954753756523132,
0.1368747502565384,
0.23695169389247894,
0.6249558329582214,
... |
def searchforw ( self, * args ) : return _ snap. tstrv _ searchforw ( self, * args ) | [
-0.9577081203460693,
1.2301653623580933,
0.33411839604377747,
-0.4922259449958801,
0.7271829843521118,
-0.5591655969619751,
1.1663943529129028,
-0.4982764422893524,
-1.561872959136963,
-0.9032820463180542,
0.15394407510757446,
-0.7782268524169922,
0.12605184316635132,
1.037393569946289,
... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tbool _ _ _ lt _ _ ( self, * args ) | [
0.47215190529823303,
-0.25424718856811523,
0.14597462117671967,
-0.671609103679657,
0.7799081802368164,
0.11022182554006577,
0.27598321437835693,
-1.6764839887619019,
-1.597015380859375,
-0.3629900813102722,
-0.7595964074134827,
-1.0829393863677979,
-0.23032794892787933,
0.2896598577499389... |
def tstrutil _ getdomnm ( * args ) : return _ snap. tstrutil _ getdomnm ( * args ) | [
-0.8254760503768921,
0.6931615471839905,
0.03778688982129097,
0.03347102180123329,
0.3546811044216156,
-0.4701007306575775,
0.13912610709667206,
-0.4152200222015381,
-0.5742363929748535,
-0.821599543094635,
-0.3828141987323761,
0.06160983070731163,
0.5204169154167175,
-0.007201043888926506... |
def extract _ features ( name ) : return {'last _ letter': name [ - 1 ],'vowel _ count': len ( [ c for c in name if c in'aeiouaeiou'] ) } | [
-0.3903234004974365,
-0.8971575498580933,
0.4279724359512329,
-1.0597107410430908,
-0.6336286067962646,
-1.0817821025848389,
-0.4600822329521179,
0.4130260646343231,
0.3902421295642853,
0.7671324014663696,
-2.1731131076812744,
-0.6364911198616028,
-0.13791261613368988,
-0.330321729183197,
... |
def _ _ init _ _ ( self, * args ) : _ snap. tmodenetnodei _ swiginit ( self, _ snap. new _ tmodenetnodei ( * args ) ) | [
-1.1914581060409546,
0.16259799897670746,
0.07058319449424744,
-0.696576714515686,
0.013395166955888271,
0.1576789766550064,
0.42610448598861694,
0.06890818476676941,
-1.5640426874160767,
0.935301661491394,
-0.8268334865570068,
-0.2607179582118988,
0.0071530877612531185,
0.1389577090740203... |
def my _ operation ( self, text ) : length = len ( text. strip ( ) ) if length = = 0 : return 0 uppercase = sum ( 1 for c in text if c. isupper ( ) ) return uppercase / length | [
-0.34042373299598694,
0.43329918384552,
0.7653259634971619,
-0.13747857511043549,
-0.7077693939208984,
0.05812685191631317,
0.26638174057006836,
1.004353404045105,
0.8250874280929565,
0.8589445948600769,
-0.13284380733966827,
-0.9075947999954224,
-1.138807773590088,
0.44102829694747925,
... |
def swapi ( * args ) : return _ snap. tstrv _ swapi ( * args ) | [
-1.5318607091903687,
-0.26755014061927795,
0.04099798947572708,
0.21981529891490936,
0.17707432806491852,
0.35624250769615173,
0.5523452162742615,
0.9364396929740906,
-1.2323226928710938,
-0.09896286576986313,
-1.5831762552261353,
-0.7808082699775696,
0.21961311995983124,
-0.18243597447872... |
def render _ value ( self, value ) : raise notimplementederror | [
-0.6731594800949097,
-0.021587073802947998,
0.45507553219795227,
-0.45182397961616516,
-0.5983472466468811,
0.582309365272522,
-0.3446996510028839,
-0.17874138057231903,
0.4305654466152191,
-0.28017473220825195,
-0.16642309725284576,
0.06690165400505066,
0.4532408118247986,
0.8279035091400... |
def get _ slice ( data, idx, parts ) : shape = tf. shape ( data ) size = tf. concat ( [ shape [ : 1 ] / / parts, shape [ 1 : ] ], axis = 0 ) stride = tf. concat ( [ shape [ : 1 ] / / parts, shape [ 1 : ] * 0 ], axis = 0 ) start = stride * idx return tf. slice ( data, start, size ) | [
0.042879339307546616,
0.2163260579109192,
0.2331167608499527,
-0.9485043287277222,
0.004710307344794273,
-0.6127688884735107,
-0.6613578200340271,
-0.8607525825500488,
-0.30904144048690796,
0.006529934238642454,
0.03589070960879326,
0.24276190996170044,
-0.29444724321365356,
-1.77888274192... |
def pre _ setup ( self, problem ) : st3d = self. st3dinit for i in range ( st3d ['dps']. shape [ 1 ] ) : varname ='dp % 02d'% i var = st3d ['dps'] [ :, i ] if varname not in self. _ vars : self. add ( varname +'_ c ', indepvarcomp ( varname, var ), promotes = ['*'] ) for ireg, reg in enumerate ( st3d ['regions'] ) : fo... | [
-0.36346179246902466,
-0.12237542122602463,
0.7866173982620239,
-1.1739013195037842,
0.14452482759952545,
0.02630932442843914,
0.46921563148498535,
-0.16619721055030823,
0.2640623450279236,
0.27488330006599426,
-0.21139617264270782,
0.06746957451105118,
-0.272578626871109,
0.59377300739288... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tstrvstrvhi _ _ _ lt _ _ ( self, * args ) | [
0.7358895540237427,
-0.5171585083007812,
0.06791028380393982,
-0.9964680075645447,
0.37801218032836914,
-0.29111725091934204,
0.07806222885847092,
-0.319858580827713,
-1.1923153400421143,
0.13454121351242065,
-0.8057670593261719,
-0.654868483543396,
-0.5691425204277039,
0.46420153975486755... |
def _ api _ get ( self, url ) : try : data, headers = self. client. http _ get ( url, headers = {'private - token': self. _ get _ private _ token ( ), } ) return data, headers except httperror as e : if e. code = = 401 : raise authorizationerror ( ugettext ('the login or password is incorrect.') ) elif e. code = = 404 ... | [
-2.0459935665130615,
-0.3054775297641754,
0.7806773781776428,
-0.4290706217288971,
0.19626207649707794,
-0.5426943302154541,
-1.2420793771743774,
-0.07292357087135315,
-0.5510165095329285,
0.16930951178073883,
0.07621066272258759,
1.250489354133606,
0.2310463786125183,
-0.7840518951416016,... |
def getdatatraffic ( self, options ) : datatraffic = ( apiclient. usagemgmt +'/ data - traffic') % ( self. host ) r = requests. get ( datatraffic, auth = self. credentials, params = options, verify = self. verify ) status = r. status _ code if status = = 200 : self. logger. debug ( " data traffic = ", r. json ( ) ) ret... | [
-0.7076588273048401,
0.4925349950790405,
0.6390047669410706,
-0.5215085744857788,
0.3846820294857025,
-0.8991265296936035,
-0.529255211353302,
-0.7256587743759155,
-0.31078383326530457,
0.2527768611907959,
-0.9458431005477905,
1.100624442100525,
-0.8318509459495544,
-0.3509463965892792,
... |
def get _ down _ coord ( self ) : # remember the most bottom block has the max coord in the pygame coord. max = 0 for block in self. tetris _ o : pos = block. get _ pos ( ) [ 1 ] if max < pos : max = pos return max | [
0.08428527414798737,
-0.6297107934951782,
0.8824212551116943,
0.5259661078453064,
0.11534733325242996,
-0.29067131876945496,
0.4197959899902344,
-0.6748196482658386,
-0.8136178255081177,
-0.8078280687332153,
-0.04947645589709282,
-0.5858793258666992,
-0.8275368809700012,
0.4739479720592499... |
def get ( resource _ name : str, id : pulumi. input [ str ], opts : optional [ pulumi. resourceoptions ] = none ) - >'firewallpolicyrulegroup': opts = pulumi. resourceoptions. merge ( opts, pulumi. resourceoptions ( id = id ) ) _ _ props _ _ = firewallpolicyrulegroupargs. _ _ new _ _ ( firewallpolicyrulegroupargs ) _ _... | [
0.36437997221946716,
0.6998584270477295,
-0.02764064632356167,
-0.8576120138168335,
-0.11679352819919586,
0.04459357634186745,
-0.959376871585846,
-0.2614757716655731,
0.3310936689376831,
0.142708420753479,
0.29705604910850525,
1.2471938133239746,
-0.7155205607414246,
0.27888819575309753,
... |
def tch _ getuc ( * args ) : return _ snap. tch _ getuc ( * args ) | [
0.6888535022735596,
0.7452026009559631,
0.5738662481307983,
0.26946428418159485,
0.8644065260887146,
0.212251216173172,
0.5427297353744507,
0.31901612877845764,
-1.247552752494812,
0.4346269965171814,
-0.21416719257831573,
-0.03365480154752731,
0.37825503945350647,
0.028056424111127853,
... |
def plot _ training _ results ( model _ dir, plot _ history ) : te _ accs = plot _ history ['test _ acc'] te _ f1 = plot _ history ['test _ f1'] plt. figure ( 0 ) plt. plot ( list ( range ( len ( te _ accs ) ) ), te _ accs, label ='test _ acc') plt. title ('accuracy trend') plt. xlabel ('epoch') plt. ylabel ('accuracy'... | [
0.2802061438560486,
0.7145692706108093,
0.5097675919532776,
-0.5182738304138184,
0.6182626485824585,
0.1458727866411209,
1.5274386405944824,
0.5635459423065186,
-0.17347301542758942,
-0.2533579170703888,
-0.3364902138710022,
0.6662893295288086,
1.3456608057022095,
0.2598841190338135,
0.2... |
def gamma ( self ) : m = self. smt ( ) m - = self. iso _ smt ( ) * np. eye ( 3 ) # get deviatoric norm = np. sqrt ( np. sum ( m * m ) ) det = np. linalg. det ( m ) # note the 3 sqrt ( 6 ) differs from frohlich ( 3 / 2 ) sqrt ( 3 ) b / c # of using the norm rather than the scalar moment gamma = 3 * sqrt ( 6 ) * det / ( ... | [
0.11262039095163345,
0.0019994392059743404,
0.42921558022499084,
0.3855378329753876,
-0.16609416902065277,
0.5387008190155029,
0.20384246110916138,
0.10752967745065689,
0.1675243377685547,
0.28884920477867126,
0.4659351110458374,
-0.15386532247066498,
-0.2802213430404663,
-0.05104396864771... |
def load _ friendship ( * args, * * kwargs ) : if'webid. valid'in request. environ and \ request. environ ['webid. valid'] and \'webid. uri'in request. environ : webid = str ( request. environ ['webid. uri'] ) g. webid = webid for rel in ['friends ','following ','pending _ friends ','pending _ following'] : if webid in... | [
-0.6479874849319458,
0.06886029243469238,
0.6117411851882935,
0.15566274523735046,
-0.16399727761745453,
0.6529848575592041,
0.4608534276485443,
-0.3637237548828125,
-0.16074034571647644,
0.38681092858314514,
0.09201298654079437,
-0.14875414967536926,
-0.9148911237716675,
1.133507370948791... |
def _ automatic ( self, pattern _ dict ) : automatic _ pattern = { " maxbackupinterval " : pattern _ dict. get ( " max _ interval _ hours ", self. _ pattern. get ( " maxbackupinterval ", 72 ) ), " ignoreopwindowpastmaxinterval " : pattern _ dict. get ( " ignore _ opwindow _ past _ maxinterval ", self. _ pattern. get ( ... | [
-0.19755980372428894,
-0.15473537147045135,
0.5241216421127319,
-0.7007396221160889,
-0.3209512233734131,
-0.04785599932074547,
0.36607348918914795,
0.2480093240737915,
-0.500420331954956,
0.3065979480743408,
-0.6524191498756409,
-0.11278920620679855,
0.4945971965789795,
-0.357491940259933... |
def _ init _ drivers _ if _ empty ( self ) : if len ( self. cars ) > 0 : return else : for driver _ names in self. drivers : self. cars. append ( car ( driver _ names, self. track _ obj, self. race _ lap _ data ) ) pygame. display. flip ( ) self. amt _ laps = str ( int ( max ( [ item. max _ laps for item in self. cars ... | [
-0.7744101285934448,
-0.37292149662971497,
0.5667977929115295,
-0.8296594023704529,
0.3621123731136322,
-0.5421358346939087,
-1.1238945722579956,
0.1348380446434021,
-0.3576563000679016,
0.22653993964195251,
-0.10258869081735611,
-0.29177218675613403,
-0.16209886968135834,
1.02242147922515... |
def get _ id _ name ( module, id _ to _ check ) : for name in module. symbol _ name _ to _ id : if module. symbol _ name _ to _ id [ name ] = = id _ to _ check : return name return str ( id _ to _ check ) | [
-0.5525103211402893,
-0.8429141044616699,
0.42813053727149963,
-0.24640898406505585,
-0.1215151995420456,
0.5315733551979065,
-0.060789987444877625,
-0.5754361748695374,
0.2862568497657776,
1.345481514930725,
0.05945967882871628,
0.5348559021949768,
-0.335372656583786,
0.2736372649669647,
... |
def color ( self ) : return self. _ rgb | [
-0.034495722502470016,
-0.3263469636440277,
0.12573792040348053,
0.8174777030944824,
0.4120021164417267,
1.4386011362075806,
0.5347509980201721,
0.06572885811328888,
-0.1991434544324875,
-1.103115439414978,
0.47634971141815186,
1.0659652948379517,
-0.7144463062286377,
0.23839052021503448,
... |
def urldecode ( query ) : # check if query contains invalid characters if query and not set ( query ) < = urlencoded : error = ( " error trying to decode a non urlencoded string. " " found invalid characters : % s " " in the string :'% s '. " " please ensure the request / response body is " " x - www - form - urlencode... | [
0.37335696816444397,
-0.3124862015247345,
0.43801188468933105,
-0.31463491916656494,
-0.8265859484672546,
0.13630197942256927,
-0.6064199209213257,
0.10607519745826721,
0.5643399357795715,
-0.9084671139717102,
-0.06013300269842148,
-0.30939605832099915,
-0.5097396373748779,
-0.023046420887... |
def getnainti ( self, * args ) : return _ snap. tneanetmp _ getnainti ( self, * args ) | [
0.6821421980857849,
-0.48268553614616394,
0.2765141725540161,
-0.07293501496315002,
1.56646728515625,
-0.10305487364530563,
-0.19363689422607422,
-0.16563312709331512,
-0.7509179711341858,
-0.4739395081996918,
-0.6464930772781372,
-1.4472322463989258,
-1.0849626064300537,
0.652640759944915... |
def validate _ number ( number ) : if not number : return false if not re. search ('^ \ d + $ ', number ) : return false if not re. search ('^ 0 ', number ) : return false try : int ( number ) except : return false return true | [
-0.8630963563919067,
0.2635672688484192,
0.8390321135520935,
0.5445669889450073,
-0.4025445282459259,
0.8845337629318237,
0.06854282319545746,
1.030208945274353,
0.3124626874923706,
-1.260705590248108,
0.0057797604240477085,
-0.9659411907196045,
-0.5065143704414368,
0.46527567505836487,
... |
def decompose ( self, idecomp = 1 ) : ( mtdev, mtiso ) = self. sepdeviso ( ) # get the eigen vectors ( v, d ) = mtdev. geteig ( ) # clvd if idecomp = = 1 : # b - axis is clvd b - axis d2 = np. array ( [ d [ 1 ], d [ 1 ], - 2 * d [ 1 ] ] ) d2 = d2 [ np. argsort ( d2 ) ] elif idecomp = = 2 : # b - axis is clvd p or t - a... | [
-0.27226030826568604,
-0.34140515327453613,
0.9320228099822998,
-0.3566124439239502,
-0.736045777797699,
-0.25763392448425293,
0.3752687871456146,
0.42910513281822205,
-0.7411927580833435,
0.1827401965856552,
-0.15070348978042603,
-0.6376610994338989,
-0.02935374714434147,
0.42266485095024... |
def test _ get _ all _ keys ( self ) : print ( self. api. get _ all _ keys ( ) ) pass | [
0.08235472440719604,
0.316810667514801,
0.2587955892086029,
1.2529655694961548,
0.37263551354408264,
0.29194375872612,
-0.7365434169769287,
-0.238798126578331,
0.23350617289543152,
-0.5952510237693787,
-0.21318209171295166,
1.1882513761520386,
-0.7918309569358826,
0.0031549399718642235,
... |
def get _ tfile _ key _ sets ( file1, file2, tree _ name ='' ) : f1 _ keys = set ( [ k. getname ( ) for k in file1. getlistofkeys ( ) ] ) f2 _ keys = set ( [ k. getname ( ) for k in file2. getlistofkeys ( ) ] ) shared _ keys = f1 _ keys & f2 _ keys unique1 _ keys = f1 _ keys - f2 _ keys unique2 _ keys = f2 _ keys - f1 ... | [
-0.35453981161117554,
0.13841818273067474,
0.6502708792686462,
-0.2301979959011078,
-0.5349790453910828,
0.045794278383255005,
0.24489952623844147,
0.5350736975669861,
-2.1525180339813232,
1.1971675157546997,
-0.5947814583778381,
0.029521547257900238,
-0.23766592144966125,
0.26683279871940... |
def tag ( self ) - > str : return f " { self. component _ name } [ inversion { self. pixelization _ tag } { self. inversion _ pixels _ fixed _ tag } { self. regularization _ tag } ] " | [
0.5200281143188477,
-0.665907621383667,
0.45257553458213806,
-0.6633502840995789,
1.2441409826278687,
0.2794381082057953,
-0.1793157309293747,
0.022973407059907913,
-0.40672916173934937,
0.09859728068113327,
-0.5050061345100403,
0.23052319884300232,
0.08281457424163818,
0.8450169563293457,... |
def by _ subject ( request, sub ) : subj =''. join ( sub. split ('-') ) subject = subject. objects. get ( name = subj. upper ( ) ) books _ query = bookdescription. objects. filter ( subject = subject ) base = get _ base ( request ) context = {'books _ query': books _ query, " base " : base, " base " : base, " query " :... | [
0.5341076850891113,
-0.3228459656238556,
0.4172725975513458,
0.005689612124115229,
-0.43248966336250305,
0.8036472797393799,
-0.025147587060928345,
-0.04237286001443863,
-0.9109504818916321,
0.33229953050613403,
1.351099967956543,
0.8499961495399475,
0.11278454959392548,
0.3550554811954498... |
def source _ list ( self ) - > list [ str ] | none : if not self. _ devices : return none return [ device [ " name " ] for device in self. _ devices ] | [
-0.40529677271842957,
0.33577868342399597,
0.45504674315452576,
-0.15335671603679657,
0.05920296534895897,
-0.22124867141246796,
-0.7659400105476379,
0.08742224425077438,
1.506669044494629,
0.6068178415298462,
-0.9127037525177002,
-0.6350998878479004,
0.23525182902812958,
0.609068572521209... |
def fill _ bin ( x, y, mo, spaces, bn ) : for i in range ( * y ) : for j in range ( * x ) : orientation = mo [ i ] [ j ] [ 1 ] # find closest bin closest = 0 val = abs ( orientation - spaces [ 0 ] ) for s in range ( 1, len ( spaces ) ) : if abs ( orientation - spaces [ s ] ) < val : closest = s val = abs ( orientation ... | [
0.21921953558921814,
0.1018301248550415,
0.6934343576431274,
0.22917768359184265,
-0.21991199254989624,
0.8906620144844055,
0.09104328602552414,
-1.214823603630066,
-0.6080136299133301,
0.5123300552368164,
0.34759292006492615,
0.9150972366333008,
0.43753179907798767,
1.103389859199524,
0... |
def evaluate _ on _ mnist ( optimizer _ names, optimizers, param _ defs, optimizer _ args, regressor, cv = 10, percentage = 1., steps = 50, random _ steps = 10, plot _ at _ end = true, disable _ auto _ plot = false ) : # todo add args to comment. # we first use the sklearn function to get the mnist dataset. if cached, ... | [
0.42217814922332764,
0.3032352328300476,
0.8847957253456116,
0.30631735920906067,
0.04717658460140228,
0.4234873652458191,
-0.20162144303321838,
-0.2285650372505188,
-0.20154844224452972,
-0.12288360297679901,
-0.4947722256183624,
0.9814162850379944,
-0.5497517585754395,
0.6394222378730774... |
def get _ weather ( api _ keys : dict, location : dict ) - > str : global old _ forecast, old _ temp # gets the api for weather data on user's city. weather _ key = api _ keys [ " weather " ] city = location [ " city " ] weather _ api = ( " https : / / api. openweathermap. org / data / 2. 5 / weather? " " q = { } & app... | [
-0.34360069036483765,
-0.6204659938812256,
0.4283764362335205,
-0.3065633773803711,
-0.6345627307891846,
-0.3263147175312042,
-0.7439411878585815,
0.5315819978713989,
-0.7069501280784607,
0.6880127787590027,
-0.573015034198761,
0.6613800525665283,
0.10642573982477188,
0.4460069239139557,
... |
def get _ classification _ report ( learner, test, data ) : preds = learner. get _ preds ( datasettype. test ) [ 0 ]. detach ( ). cpu ( ). numpy ( ) sampler = [ i for i in data. dl ( datasettype. test ). sampler ] reverse _ sampler = np. argsort ( sampler ) preds = preds [ reverse _ sampler, : ] test [ " preds " ] = np... | [
0.33431893587112427,
-0.3591421842575073,
0.23778405785560608,
-0.7362189292907715,
-0.008795938454568386,
-0.5747455954551697,
-0.07547737658023834,
0.14059370756149292,
-0.45722514390945435,
-0.7315711975097656,
0.47986432909965515,
1.1332859992980957,
-0.07787564396858215,
0.54905563592... |
def imposedistr ( self, * args ) : return _ snap. tgstatvec _ imposedistr ( self, * args ) | [
-0.5697288513183594,
0.21508215367794037,
0.34545058012008667,
0.4718429148197174,
0.10264551639556885,
1.2928842306137085,
1.813281536102295,
-0.36102229356765747,
-1.2942531108856201,
-0.5308644771575928,
0.40437060594558716,
0.029484372586011887,
-0.895682156085968,
1.043870449066162,
... |
def validate _ reverse _ name ( reverse _ name, ip _ type ) : _ name _ type _ check ( reverse _ name ) valid _ ipv6 = " 0123456789aabbccddeeff " if ip _ type = ='4'and len ( reverse _ name. split ( '.') ) > 4 : raise validationerror ( " ipv4 reverse domains should be a " " maximum of 4 octets " ) if ip _ type = ='6'and... | [
-0.431001216173172,
-0.3484475016593933,
0.8614404797554016,
-0.2414444088935852,
-0.6146663427352905,
-0.05497707426548004,
-0.27381736040115356,
-0.40573400259017944,
-0.3882973790168762,
0.49126213788986206,
-0.4556214213371277,
0.35720890760421753,
-0.9368351101875305,
-0.5687799453735... |
def test _ atomic _ any _ uri _ min _ length _ 2 _ nistxml _ sv _ iv _ atomic _ any _ uri _ min _ length _ 3 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - minlength - 3. xsd ", instance = " nistdata... | [
0.10891856253147125,
-0.38238564133644104,
0.5670018196105957,
0.9108214974403381,
-0.32544565200805664,
0.35040283203125,
-0.7201200723648071,
0.03426586464047432,
0.7077440619468689,
0.07840994000434875,
0.2529972195625305,
0.18994387984275818,
-0.4364977478981018,
-0.25594913959503174,
... |
def intattrvalueei ( self, * args ) : return _ snap. tneanetmp _ intattrvalueei ( self, * args ) | [
-0.043438490480184555,
0.03427232429385185,
0.13301658630371094,
-0.2278250902891159,
1.1270160675048828,
0.36752355098724365,
0.015728896483778954,
0.07730579376220703,
-1.190268874168396,
0.49424853920936584,
0.08255043625831604,
-0.7876726984977722,
-0.9421567916870117,
0.99169725179672... |
def getsubvalv ( self, * args ) : return _ snap. tintintvv _ getsubvalv ( self, * args ) | [
-0.014339910820126534,
0.02490738034248352,
0.6090116500854492,
1.4186089038848877,
-0.7257255911827087,
0.24567560851573944,
0.2005116194486618,
0.7300249934196472,
-0.6521416306495667,
-0.7158064246177673,
-0.9402926564216614,
1.5298298597335815,
-0.9599078297615051,
-0.38564902544021606... |
def begeastri ( self, * args ) : return _ snap. tcrossnet _ begeastri ( self, * args ) | [
0.2678888738155365,
0.8374347686767578,
0.2797348201274872,
0.052643030881881714,
1.3114566802978516,
0.1903386116027832,
0.6745730638504028,
0.5350408554077148,
-0.546013593673706,
0.06564196199178696,
-0.03154689446091652,
-0.7052912712097168,
-0.8127439022064209,
0.8429884910583496,
0... |
def hourly _ temp ( avt, maxt, mint, cur _ t, rise _ t, set _ t, trans _ t, offset = 2 ) : ct = convert _ string _ to _ hrs ( cur _ t ) sunrise = convert _ to _ dec _ hrs ( rise _ t ) sunset = convert _ to _ dec _ hrs ( set _ t ) dur = convert _ to _ dec _ hrs ( set _ t ) pkhr = sunrise + 0. 5 * dur + offset d _ tmp = ... | [
0.2703078091144562,
-0.5334426164627075,
0.34922510385513306,
-0.26689210534095764,
-0.7456905245780945,
0.4802570939064026,
-0.9649642705917358,
0.21417905390262604,
-0.7073374390602112,
1.0944591760635376,
-0.9013303518295288,
-0.0038688506465405226,
0.29410359263420105,
-0.9121322035789... |
def test _ atomic _ base64 _ binary _ max _ length _ 3 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ max _ length _ 4 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - maxlength - 4. xsd ... | [
0.3666682839393616,
0.20529264211654663,
0.32454973459243774,
1.238181471824646,
-0.23005156219005585,
0.24077442288398743,
-0.00450597470626235,
-0.01603643037378788,
-0.42877089977264404,
0.4956337809562683,
-0.9975908398628235,
-0.3402256369590759,
-0.568234384059906,
-0.132700577378273... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tstrintprhi _ _ _ lt _ _ ( self, * args ) | [
1.0093233585357666,
-0.7778433561325073,
0.2609904110431671,
-1.7338337898254395,
0.19168584048748016,
0.2098640650510788,
-0.8428442478179932,
-0.4045628607273102,
-1.9687139987945557,
0.15222877264022827,
-0.3371436297893524,
-0.8009998798370361,
-0.9263302683830261,
0.35566246509552,
... |
def lifetime _ sparseness ( responses ) : if len ( responses ) < = 1 : # unable to calculate, return nan warnings. warn ('responses array must contain at least two or more values to calculate.') return np. nan coeff = 1. 0 / len ( responses ) return ( 1. 0 - coeff * ( ( np. power ( np. sum ( responses ), 2 ) ) / ( np. ... | [
0.9044356942176819,
-0.5394100546836853,
0.5886167883872986,
-0.24532926082611084,
0.30288219451904297,
-0.008257857523858547,
0.4307512640953064,
0.07149235159158707,
1.566420555114746,
0.17427583038806915,
-0.33868199586868286,
-0.2046126127243042,
-0.4616730213165283,
0.3180954754352569... |
def trace _ mismatch ( self, maxsep = none, sigma = none, minmax = none, synced = false ) : # check parameters are available if self. par is none : raise valueerror ('no parameters are available.') # set the parameters using the relevant attributes if not provided directly if maxsep is none : maxsep = self. maxsep if s... | [
-0.20981843769550323,
0.2381029576063156,
0.9766730666160583,
0.12165670841932297,
0.33384376764297485,
-0.21733790636062622,
0.2227650135755539,
-0.15305380523204803,
0.7196224331855774,
0.07535140961408615,
0.042852189391851425,
0.4583446979522705,
-0.09666913747787476,
-0.41334837675094... |
def getpartitionranges ( self, * args ) : return _ snap. tcrossnet _ getpartitionranges ( self, * args ) | [
0.3682301342487335,
1.2641901969909668,
0.08315101265907288,
0.9352655410766602,
0.9937114715576172,
-0.20870321989059448,
0.374412477016449,
0.31292977929115295,
-0.87712562084198,
-0.2310509979724884,
-0.16174210608005524,
-1.0076669454574585,
-1.210899829864502,
0.8680611848831177,
-0... |
def delifkey ( self, * args ) : return _ snap. tinth _ delifkey ( self, * args ) | [
-0.697891354560852,
0.4932903051376343,
0.30949750542640686,
0.5954113602638245,
0.5523963570594788,
0.16459718346595764,
-0.018932698294520378,
-1.0879112482070923,
-0.4453394114971161,
0.4379458725452423,
-0.5065346360206604,
0.48558637499809265,
-2.017416477203369,
0.6858199834823608,
... |
def home ( ) : return render _ template ('home. html') | [
0.9454221129417419,
-0.018598729744553566,
0.19696290791034698,
1.1173579692840576,
0.041857264935970306,
0.3446125388145447,
0.0020601358264684677,
0.7961413860321045,
-0.24736635386943817,
0.722185492515564,
0.04061613976955414,
-0.31619545817375183,
-0.3494706451892853,
-0.0856526643037... |
def create _ request _ token _ response ( self, uri, http _ method ='get ', body = none, headers = none, credentials = none ) : resp _ headers = {'content - type':'application / x - www - form - urlencoded'} try : request = self. _ create _ request ( uri, http _ method, body, headers ) valid, processed _ request = self... | [
-1.28233003616333,
-0.35237711668014526,
0.6834164261817932,
0.9595794081687927,
-0.2996772825717926,
-0.47315311431884766,
-0.6828188300132751,
-0.2424827516078949,
0.26591405272483826,
-0.8937145471572876,
-0.34656956791877747,
0.058842215687036514,
-0.09985626488924026,
-0.5083546042442... |
def test _ restart _ threshold ( self ) : self. expect _ get _ statuses ( num _ calls = self. expected _ cycles - 1 ) self. expect _ health _ check ( 0, false, num _ calls = self. expected _ cycles - 1 ) self. expect _ health _ check ( 1, false, num _ calls = self. expected _ cycles - 1 ) self. expect _ health _ check ... | [
0.7505868077278137,
0.7838678956031799,
0.6614612936973572,
0.7535992860794067,
0.7845796346664429,
0.2924148440361023,
0.5047752857208252,
0.06722745299339294,
-0.496157705783844,
-0.3515819013118744,
-0.4672003984451294,
0.18113473057746887,
-0.25686731934547424,
-0.46450144052505493,
... |
def find _ pronunciations ( code : str, pattern : pattern [ str ] = re. compile ( r " " ), ) - > list [ str ] : return [ ] | [
-0.9450413584709167,
0.7096114754676819,
0.5576128363609314,
-0.10573408007621765,
1.042418122291565,
-0.4186173975467682,
-0.42913973331451416,
0.26492103934288025,
0.1497277468442917,
0.7902711033821106,
-0.10334641486406326,
-0.3425360918045044,
-0.4317598044872284,
0.6734408736228943,
... |
def quitmayapy ( status ) : cmds. file ( new = true, force = true ) os. _ exit ( status ) | [
-0.38624775409698486,
-0.7955890893936157,
0.2680850625038147,
0.30871930718421936,
-0.31565916538238525,
0.961812436580658,
-0.27682048082351685,
0.09050224721431732,
0.0989806056022644,
-0.21351739764213562,
-0.6345441341400146,
-0.15970568358898163,
0.3097049593925476,
1.249256849288940... |
def merge _ likelihood _ headers2 ( filenames, outfile, * * kwargs ) : import fitsio filenames = np. atleast _ 1d ( filenames ) ext ='pix _ data'nside = fitsio. read _ header ( filenames [ 0 ], ext = ext ) ['lkdnside'] keys = ['stellar ','ninside ','nannulus'] data _ dict = odict ( pixel = [ ] ) for k in keys : data _ ... | [
-0.5005015134811401,
-1.318942666053772,
0.8932374119758606,
-0.6813130378723145,
-0.6997724175453186,
0.3400041460990906,
-0.5417986512184143,
0.02758927270770073,
-0.6182864308357239,
-0.5362170934677124,
-0.29541680216789246,
-0.07907377183437347,
-0.41978320479393005,
0.689196169376373... |
def dirty ( self ) : return self. _ dirty | [
-1.1003305912017822,
-0.855171263217926,
0.3001323938369751,
-0.20149798691272736,
-0.22812479734420776,
1.204996109008789,
0.514883279800415,
-0.43295052647590637,
-0.2584931254386902,
-0.3610783517360687,
-0.6344635486602783,
1.2241767644882202,
0.08131739497184753,
0.6360070705413818,
... |
async def message ( self, ctx : context, *, message : str ) - > none : self. embeds [ ctx. author ] = embeddata ( message, self. embeds [ ctx. author ]. embed ) await ctx. send ( " message content updated. " ) | [
-0.22237195074558258,
0.32662904262542725,
0.48611685633659363,
0.48666542768478394,
0.17330966889858246,
1.145013689994812,
-0.5351670980453491,
-0.48911139369010925,
0.0016103462548926473,
-0.6007267832756042,
-0.5271993279457092,
1.35402512550354,
-0.8084057569503784,
0.1194156855344772... |
def file _ exists ( self ) : glob _ string = self. glob _ string try : filename = self. glob ( glob _ string ) except indexerror : return false return os. path. isfile ( filename ) | [
-0.1433430016040802,
-1.0666276216506958,
0.5677407383918762,
0.24828201532363892,
1.4637398719787598,
0.7561240792274475,
0.41787591576576233,
0.5997961759567261,
-1.5092732906341553,
-0.09431393444538116,
1.1101267337799072,
-0.5698882937431335,
-0.23231032490730286,
-0.430923193693161,
... |
def close _ connection ( exception ) : db = getattr ( flask. g, " _ database ", none ) if db is not none : db. close ( ) | [
0.41208845376968384,
0.2742284834384918,
0.7006626725196838,
0.24662868678569794,
0.4051530659198761,
0.0033714764285832644,
0.007820908911526203,
-0.042153481394052505,
-0.42937520146369934,
0.2653302848339081,
1.005502700805664,
-0.07814598083496094,
-0.4475467801094055,
0.90715581178665... |
def scrape _ combined _ data _ from _ all _ featured _ products ( data _ filename, sales _ filename, link _ list, num _ retries = 10 ) : for url in link _ list : scrape _ and _ append _ combined _ data ( url, data _ filename, sales _ filename, num _ retries ) | [
-0.005645149853080511,
-0.15094031393527985,
0.3427553176879883,
1.6670738458633423,
1.4803293943405151,
0.8663404583930969,
0.029631150886416435,
0.8576700091362,
-0.20803837478160858,
-0.9532809853553772,
0.2236911803483963,
0.5685336589813232,
0.4349267780780792,
0.36423102021217346,
... |
def wrnotify ( * args ) : return _ snap. wrnotify ( * args ) | [
-0.7300732135772705,
0.44595053791999817,
0.5956522226333618,
-0.053421493619680405,
0.973130464553833,
-0.2964916527271271,
0.6257126331329346,
-0.04109470918774605,
-1.1412338018417358,
-0.09638920426368713,
-1.506442666053772,
-0.5085527300834656,
-0.4463094472885132,
0.6800267696380615... |
def validation _ routine ( self, sample ) : pass | [
0.23517370223999023,
-1.0210893154144287,
0.1753847748041153,
0.14143529534339905,
-0.8666132092475891,
-0.03745420649647713,
1.1915892362594604,
-0.3360547423362732,
-0.3773033320903778,
0.3197503387928009,
-0.09876804053783417,
0.33382448554039,
-0.8185177445411682,
0.7675403356552124,
... |
def islatinstr ( * args ) : return _ snap. tstrutil _ islatinstr ( * args ) | [
0.45161786675453186,
-0.7280470728874207,
0.3370784819126129,
-0.071726955473423,
-0.4045823812484741,
0.9208031296730042,
-0.1684846729040146,
-0.1812627911567688,
-0.9248362183570862,
-0.3143901824951172,
0.4640619158744812,
-0.37311387062072754,
-0.6722726225852966,
-0.19552765786647797... |
def loadmem ( * args ) : return _ snap. tmem _ loadmem ( * args ) | [
-0.47904565930366516,
0.4497523605823517,
0.3156822919845581,
0.9556477069854736,
-0.4590274393558502,
0.45246315002441406,
0.8018065094947815,
-0.4598928689956665,
-0.3645641505718231,
0.012482007965445518,
-0.09250635653734207,
-0.753136396408081,
-0.8531326651573181,
0.17841492593288422... |
def _ humans _ to _ object _ message ( self, x _ hft, x _ oftk, h _ hft, h _ oftk, oh _ dists = none ) : receiver = torch. cat ( [ x _ oftk, h _ oftk ], dim = - 1 ) senders = torch. cat ( [ x _ hft, h _ hft ], dim = - 1 ) senders _ mask = torch. ones ( senders. size ( ) [ : 2 ], dtype = senders. dtype, device = senders... | [
-0.05816764011979103,
0.00866374559700489,
0.8276724815368652,
-0.23881244659423828,
0.19147655367851257,
-0.18748122453689575,
0.4461408853530884,
-0.4665311872959137,
-0.4727681279182434,
0.4271939992904663,
0.036739278584718704,
0.7067773938179016,
0.37594592571258545,
-0.11741703003644... |
def recordinitproposition ( self ) : for proposition in propositions : if not ( isinstance (, ( gdlproposition, ) ) ) : continue if constant. getvalue ( ). touppercase ( ) = = " init " : return proposition return none | [
0.07683896273374557,
-1.1192009449005127,
0.6480739116668701,
-0.29545438289642334,
0.20118607580661774,
0.11093610525131226,
-0.2788994014263153,
-0.8018753528594971,
-0.45129498839378357,
0.702208936214447,
0.48714470863342285,
-0.09092766791582108,
-1.4593143463134766,
-0.50415706634521... |
def remove _ dummy _ data ( self ) : with open ( self. file _ test ) as f1 : lines = f1. readlines ( ) with open ( self. file _ test,'w') as f2 : f2. writelines ( lines [ 4 : : ] ) | [
0.9935042262077332,
-0.3613341152667999,
0.5785847902297974,
-0.5627572536468506,
0.9375107884407043,
0.7693268060684204,
0.6616925597190857,
0.28350722789764404,
-0.49954500794410706,
-0.004673596005886793,
-0.6150252819061279,
0.28535303473472595,
-0.4612977206707001,
-0.6919167637825012... |
def apply _ heuristic _ tile _ corrections ( self ) : for tile _ key in self. wd _ stig _ corr : g, t = tile _ key. split ( '.') g, t = int ( g ), int ( t ) self. gm [ g ] [ t ]. wd + = self. wd _ stig _ corr [ tile _ key ] [ 0 ] self. gm [ g ] [ t ]. stig _ xy [ 0 ] + = self. wd _ stig _ corr [ tile _ key ] [ 1 ] self... | [
-0.3135979473590851,
-0.40066325664520264,
0.42546582221984863,
-0.612245500087738,
0.07782429456710815,
0.6649014353752136,
1.1653790473937988,
1.0907071828842163,
-0.8409633040428162,
1.01478111743927,
0.16571681201457977,
-0.021571552380919456,
-0.09935825318098068,
0.9075703024864197,
... |
def defrost _ mode ( self ) - > int : return self. _ vehicle _ data. get ( " climate _ state ", { } ). get ( " defrost _ mode ", 0 ) | [
-0.6323693990707397,
1.079405426979065,
0.29199984669685364,
-0.01418878510594368,
1.6222747564315796,
0.7734251022338867,
-0.0014690426178276539,
-0.19134525954723358,
-0.6450330018997192,
-0.22398723661899567,
-0.4542029798030853,
-0.18930193781852722,
-0.14449991285800934,
-0.0294034909... |
def create _ health _ monitor ( self, health _ monitor, service ) : log. debug ( " creating health monitor " ) return self. _ common _ service _ handler ( service ) | [
-0.6439334750175476,
-0.5984741449356079,
0.18638388812541962,
-0.07276524603366852,
0.5205117464065552,
0.5734204053878784,
-1.3049989938735962,
-0.47039327025413513,
0.4385377764701843,
-1.2274103164672852,
0.6616854667663574,
0.21889010071754456,
-0.8767505884170532,
0.35899272561073303... |
def test _ getscriptsig ( self ) : sig = " abc " publickey = " def " assert smartcontractscripts. getscriptsig ( sig, publickey ) = = " < abc > < def > " | [
0.17945986986160278,
0.48516935110092163,
0.12469907850027084,
0.012751180678606033,
0.1237126886844635,
-0.9267235994338989,
-0.942896842956543,
-0.20015962421894073,
0.4884970784187317,
0.19459500908851624,
-1.0356595516204834,
0.6473435759544373,
-0.4231207072734833,
0.6851910948753357,... |
def getsattride ( self, * args ) : return _ snap. tneanet _ getsattride ( self, * args ) | [
0.5341745018959045,
0.8741540312767029,
0.3764444589614868,
-0.10664739459753036,
1.2651950120925903,
-0.7193518877029419,
-0.5037451386451721,
-0.857700526714325,
-0.37285906076431274,
-1.2266935110092163,
0.18455715477466583,
-0.856662929058075,
-1.0951381921768188,
0.8117653131484985,
... |
def getnaflti ( self, * args ) : return _ snap. pneanet _ getnaflti ( self, * args ) | [
0.041671570390462875,
0.1714574247598648,
0.2002733200788498,
0.2940123379230499,
0.6353217959403992,
0.6515645384788513,
-0.15590867400169373,
-0.8968631029129028,
-0.763992965221405,
-0.36758676171302795,
-1.2945990562438965,
-1.3153462409973145,
-0.1891748607158661,
0.23554392158985138,... |
def is _ magic ( array ) : row _ sums, column _ sums, diagonal _ sums = get _ row _ col _ diag _ sums ( array ) return ( all ( sum = = column _ sums [ 0 ] for sum in column _ sums ) and all ( sum = = diagonal _ sums [ 0 ] for sum in diagonal _ sums ) and all ( sum = = row _ sums [ 0 ] for sum in row _ sums ) and column... | [
0.3651815950870514,
0.06377598643302917,
0.8595570921897888,
0.734257161617279,
-0.40059542655944824,
0.055088356137275696,
0.08698245882987976,
-0.8195880055427551,
1.6832078695297241,
-0.025953859090805054,
0.24035674333572388,
0.02287205308675766,
1.0689135789871216,
0.5856414437294006,... |
def plotkcorenodes _ pungraph ( * args ) : return _ snap. plotkcorenodes _ pungraph ( * args ) | [
-0.33782443404197693,
1.5506254434585571,
0.10531821846961975,
0.40807583928108215,
-0.8195105791091919,
-0.3980531096458435,
0.3973720669746399,
0.6014137864112854,
0.05113506317138672,
0.9052915573120117,
-0.27660077810287476,
0.07601886987686157,
-1.0261449813842773,
0.08847352862358093... |
def getdat ( self, * args ) : return _ snap. tinth _ getdat ( self, * args ) | [
0.10535810887813568,
-0.004413791932165623,
0.39003872871398926,
-0.2277059257030487,
1.135380506515503,
0.7057651877403259,
0.1213008314371109,
-1.6904386281967163,
-0.37677133083343506,
-1.1672132015228271,
-0.3344140648841858,
0.6572464108467102,
-1.0297073125839233,
-0.3223361968994140... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tintflthi _ _ _ lt _ _ ( self, * args ) | [
0.2640179693698883,
-0.231511190533638,
0.2461492270231247,
-0.46654847264289856,
0.7370844483375549,
-0.38232889771461487,
-0.10627520084381104,
-2.0235414505004883,
-1.2234487533569336,
-0.9437887072563171,
0.18136413395404816,
-0.9829581379890442,
-0.7720206379890442,
1.2229963541030884... |
def post ( self, request ) : form = addpartdamage ( request. post ) if form. is _ valid ( ) : damage = form. cleaned _ data ['damage'] damage. damage _ part. set ( form. cleaned _ data ['damage _ parts'] ) return redirect ('/ damages /') else : return render ( request, " damage _ part. html ", {'form': form } ) | [
0.03372732177376747,
-0.22325146198272705,
0.7577570080757141,
-0.5719340443611145,
0.5389687418937683,
0.7819544672966003,
-1.080318570137024,
0.00763547420501709,
0.2151246815919876,
-0.8838241696357727,
0.6498970985412598,
-0.7107990384101868,
-0.49727663397789,
0.3290792405605316,
0.... |
def _ tz _ aware _ datetime ( date ) : if not isinstance ( date, datetime. datetime ) : date = datetime. datetime ( date. year, date. month, date. day ) if date. tzinfo is none : date = date. replace ( tzinfo = utc ) return date | [
0.5478256940841675,
0.4142776131629944,
0.5790700912475586,
0.22952507436275482,
-0.7260689735412598,
-0.4541686773300171,
-0.05039438232779503,
0.24767149984836578,
0.8277493715286255,
0.40772971510887146,
-0.08616196364164352,
-0.3799317479133606,
0.2662932872772217,
-0.13008037209510803... |
def get _ preprocessor ( space : gym. space ) - > type : legacy _ patch _ shapes ( space ) obs _ shape = space. shape if isinstance ( space, ( gym. spaces. discrete, gym. spaces. multidiscrete ) ) : preprocessor = onehotpreprocessor # elif obs _ shape = = atari _ obs _ shape : # preprocessor = genericpixelpreprocessor ... | [
-0.3496566116809845,
0.23167672753334045,
0.5992497205734253,
-1.5152714252471924,
-0.8388515710830688,
-0.27975666522979736,
-0.22513502836227417,
-0.7688270807266235,
1.284766435623169,
-0.47507789731025696,
-0.07519054412841797,
0.8686578869819641,
0.5590155124664307,
0.8966808319091797... |
def befilter ( cluster, app, data, thresholds ) : filtered _ data = [ ] if app. autothresholdcheck. ischecked ( ) : # automatic threshold if app. threshold _ type = ='linear': r _ h _ threshold = thresholds [ 1 ] elif app. threshold _ type = ='constant': r _ h _ threshold = thresholds [ 0 ] else : # manual threshold r ... | [
0.7825579643249512,
-0.501884937286377,
0.7314488291740417,
1.2711338996887207,
0.5599490404129028,
0.21345126628875732,
-0.8935794830322266,
0.0936969444155693,
-0.15937966108322144,
0.6169059872627258,
0.39666688442230225,
1.2467713356018066,
-0.7330737113952637,
-0.20904919505119324,
... |
def guess _ entities ( text ) : entities = machine. _ extract _ entity _ groups ( text ) for e in location _ entities : if e in entities : del entities [ e ] return entities | [
-0.2996799051761627,
-1.1001551151275635,
0.3693108558654785,
-0.055397212505340576,
-0.5767250061035156,
0.40593308210372925,
0.31614071130752563,
0.8379708528518677,
-0.22168278694152832,
0.4240788519382477,
0.223093181848526,
-0.3926694393157959,
-0.6445440649986267,
0.5616171956062317,... |
def has _ mesh ( self, event : str, hpc _ cluster = none ) - > bool : # if interpolations are remote, we check for mesh remotely too if self. comm. project. interpolation _ mode = = " remote " : has, _ = self. has _ remote _ mesh ( event, gradient = false, hpc _ cluster = hpc _ cluster ) else : has, _ = lapi. find _ ev... | [
1.0507112741470337,
0.430772989988327,
0.7685357928276062,
0.5703248977661133,
0.5786547064781189,
1.231865644454956,
-0.1468525230884552,
0.05615336447954178,
0.04712710157036781,
-0.739030659198761,
-0.47087278962135315,
-0.03867952153086662,
-0.17983503639698029,
1.634320855140686,
-0... |
def parse ( self ) : self. result = macro. parsestring ( self. line ) | [
0.9841431975364685,
-0.06507706642150879,
0.10293535888195038,
-0.13159728050231934,
0.2491413950920105,
-0.8057868480682373,
-0.23342062532901764,
0.46352776885032654,
-0.4698038101196289,
-1.7624683380126953,
-0.3948112726211548,
0.0549006462097168,
-0.5646622776985168,
-0.32249498367309... |
def sampling _ otherwise ( self, x _ min, ind _ min, n _ to _ sample ) : samples = self. sample _ simplex ( x = x _ min, indices = ind _ min, n _ to _ sample = n _ to _ sample ) return samples | [
-0.26317843794822693,
0.3011658787727356,
0.30872565507888794,
0.3356114327907562,
-0.17590004205703735,
-0.17028340697288513,
-1.6519815921783447,
-1.0074243545532227,
0.8783019185066223,
0.10517871379852295,
-0.16358064115047455,
0.23602785170078278,
0.22401739656925201,
-0.9978933334350... |
def predict ( self, features ) : best _ class = none best _ prob = float ('- inf') # # # # # # # # # # # # # # # # # # # # # # # # # # # * * * your code here * * * # # implement # argmax _ y log p ( y ) sum log p ( x _ i | y ) = > argmax _ y log p ( y ) + sum log p ( x _ i | y ) [ see sheet ] # # # # # # # # # # # # # ... | [
-0.3377864956855774,
-0.775381326675415,
0.842722475528717,
0.7170621752738953,
0.13946017622947693,
0.34440797567367554,
-0.4444672465324402,
-0.07456843554973602,
-0.7088326811790466,
-0.8266647458076477,
0.5352907180786133,
-0.07017509639263153,
0.25774139165878296,
0.007616252172738314... |
def zonemaker ( region, zonename ) : cleanup ( ) if region is none : region = random. choice ( zones. keys ( ) ). lower ( ) else : region = region. lower ( ) if zonename is none : zonenamer = namegenerator ( planets, suffixes ) zonename = zonenamer. genname ( suffix = false ). title ( ) else : zonename = zonename. titl... | [
-0.26333680748939514,
-0.0019195532659068704,
0.5416978001594543,
-0.3561384081840515,
-1.060978889465332,
0.10635963827371597,
0.5698040127754211,
0.0055994559079408646,
0.7405194640159607,
-0.09974436461925507,
-0.1967705488204956,
-0.2128552794456482,
-0.2481355220079422,
0.095399893820... |
def visualize _ parameterization ( self, fraction = 1 ) : self. visualize _ 3d ( which _ metric = " xyz " ) unitized _ xyz = self. get _ unitized _ xyz ( ) parameterized = self. parameterized _ locations num _ points = parameterized. shape [ 0 ] if fraction < 1 : selected = np. random. choice ( num _ points, size = ( i... | [
-0.280293345451355,
0.46638524532318115,
0.5806262493133545,
-0.5779592394828796,
-0.2497297078371048,
0.4545840919017792,
0.8444633483886719,
0.351959228515625,
0.6359770894050598,
-0.01944158785045147,
0.4351211488246918,
1.4052201509475708,
0.5589843392372131,
-0.25198063254356384,
-0... |
def test _ do _ calculate _ topic _ 633 ( test _ dao ) : dut = dtmsimilaritem ( test _ dao ) dut. do _ select _ all ( revision _ id = 1 ) _ node = dut. do _ select ( 1 ) _ node. method _ id = 1 _ node. temperature _ from = 27. 5 _ node. temperature _ to = 35. 0 _ node. quality _ from _ id = 2 _ node. quality _ to _ id ... | [
0.042636845260858536,
0.5963131785392761,
0.5727757215499878,
0.35535991191864014,
0.9286792874336243,
0.3444261848926544,
0.13899831473827362,
-0.1712856888771057,
-0.1586156040430069,
0.17558369040489197,
-0.2791100740432739,
-0.4560997784137726,
0.04120398312807083,
-0.17329734563827515... |
def strattrvalueei ( self, * args ) : return _ snap. tcrossnet _ strattrvalueei ( self, * args ) | [
0.22375890612602234,
0.39950552582740784,
0.08158866316080093,
0.13046450912952423,
0.9956027269363403,
0.5764992237091064,
1.1312323808670044,
-0.2709101438522339,
-1.622769832611084,
-0.2628026604652405,
0.0697927325963974,
-1.1200981140136719,
0.06752097606658936,
0.26833897829055786,
... |
def add _ header ( response ) : response. headers ['x - ua - compatible'] ='ie = edge, chrome = 1'response. headers ['cache - control'] ='public, max - age = 0'return response | [
-0.6071053743362427,
-0.1844455599784851,
0.364192396402359,
0.6629661917686462,
0.5153127312660217,
0.7124181389808655,
-0.5366206765174866,
-0.05898766592144966,
1.0839147567749023,
0.3672475218772888,
-0.6167437434196472,
-0.47694116830825806,
-0.13371895253658295,
-0.564150333404541,
... |
def _ validate _ path _ and _ fd ( cls, path, fd ) : if not path and fd : return false path _ inode = os. stat ( path ). st _ ino fd _ stat = os. fstat ( fd ) if path _ inode! = fd _ stat. st _ ino : return false return fd _ stat. st _ nlink = = 1 | [
0.5607951879501343,
-0.8319445848464966,
0.506855845451355,
0.16872216761112213,
-0.4782711863517761,
0.5404945611953735,
0.29513922333717346,
0.21356503665447235,
-0.09626380354166031,
-1.1815688610076904,
0.9993659853935242,
-0.02491360902786255,
0.0013781242305412889,
0.423808217048645,... |
def base _ config ( self ) : self. v100 _ hosts = [ 1 ] self. v200 _ hosts = [ 2 ] return " " " routers : router1 : vlans : [ vlan100, vlan200 ] dps : s1 : hardware :'generictfm'dp _ id : 1 stack : { priority : 1 } interfaces : 1 : native _ vlan : vlan100 3 : stack : { dp : s2, port : 3 } s2 : dp _ id : 2 interfaces : ... | [
-0.25701847672462463,
0.13477599620819092,
0.48116335272789,
0.10519353300333023,
0.24013075232505798,
0.03834931552410126,
-0.38229793310165405,
0.15955837070941925,
-0.9672661423683167,
0.9466906189918518,
-0.6520164608955383,
-0.13782761991024017,
0.2913736402988434,
0.6002755761146545,... |
def num _ items _ in _ bundle ( self, items : bundle ) : return len ( [ item for item in items if item in self. values ] ) | [
-0.40106499195098877,
-0.28699761629104614,
0.29117533564567566,
0.33999747037887573,
0.05039304867386818,
0.33822575211524963,
-0.06782341003417969,
0.9590696692466736,
-0.7630902528762817,
0.13089095056056976,
-1.2337632179260254,
-0.8804394006729126,
-0.11469012498855591,
0.427481472492... |
def copy ( self ) : new = object. _ _ new _ _ ( type ( self ) ) new. id = self. id new. name = self. name new. position = self. position return new | [
-0.6586740016937256,
-2.368027687072754,
0.8951124548912048,
-0.022107385098934174,
-1.0884994268417358,
1.074729084968567,
-0.24559909105300903,
-1.2505656480789185,
0.4197206199169159,
0.013798486441373825,
-1.2713656425476074,
0.07730383425951004,
-0.21731704473495483,
-1.06640326976776... |
def get ( self, request ) : form = addpartform ( ) return render ( request, " part _ add. html ", {'form': form } ) | [
0.05876655504107475,
0.15542280673980713,
0.5572178363800049,
-0.5704395174980164,
0.30044084787368774,
0.5553712248802185,
-1.0663714408874512,
-0.20351724326610565,
-0.3849388062953949,
-1.3343017101287842,
0.8916945457458496,
-0.41085609793663025,
-0.5842408537864685,
-0.363452404737472... |
def karma ( sender, * * kwargs ) : rating = kwargs [ " instance " ] value = int ( rating. value ) if " created " not in kwargs : value * = - 1 # rating deleted elif not kwargs [ " created " ] : value * = 2 # rating changed content _ object = rating. content _ object if rating. user! = content _ object. user : queryset ... | [
-0.2848750352859497,
0.8468919992446899,
0.6350097060203552,
0.4959624707698822,
0.2309028059244156,
0.5753335952758789,
0.6383280158042908,
0.2447999268770218,
-0.42378610372543335,
0.9004044532775879,
-0.29012274742126465,
0.17393429577350616,
-0.11232540011405945,
0.23331893980503082,
... |
def get _ grid _ width ( self ) : return self. _ tiles _ width | [
-0.4546464681625366,
0.6763141751289368,
0.474540650844574,
0.6231103539466858,
0.24944280087947845,
-0.31255194544792175,
0.5360726118087769,
-0.2856763005256653,
-0.001066926633939147,
-1.0205403566360474,
-0.09136030077934265,
0.5575668811798096,
-0.2200823426246643,
0.985086977481842,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.