text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def dice _ coef ( y _ true, y _ pred, smooth = 1 ) : intersection = k. sum ( k. abs ( y _ true * y _ pred ), axis = - 1 ) return ( 2. * intersection + smooth ) / ( k. sum ( k. square ( y _ true ), - 1 ) + k. sum ( k. square ( y _ pred ), - 1 ) + smooth ) | [
0.7092961072921753,
-0.3588120639324188,
0.763565719127655,
0.6042025685310364,
-0.579647421836853,
-0.004335466306656599,
0.6704305410385132,
0.6043136715888977,
-0.0834132507443428,
1.0141531229019165,
0.12654344737529755,
1.2412889003753662,
0.7255774140357971,
0.24421490728855133,
-0... |
def _ invalidate _ position ( variables ) : variables [ " belongs _ to " ] = none return variables | [
-0.6369177103042603,
-0.5869024395942688,
0.10175139456987381,
-1.4855313301086426,
0.758270800113678,
-0.29901817440986633,
-0.3478085994720459,
-0.46188056468963623,
-0.46684178709983826,
0.3078726530075073,
-0.19886775314807892,
0.031333860009908676,
-1.0422428846359253,
-1.156578898429... |
def loadyaml ( filepath, field = none ) : f = open ( filepath,'r ', encoding ='utf - 8') if field is none : if int ( yaml. _ _ version _ _ [ 0 ] ) > 3 : data = yaml. load ( f, loader = yaml. fullloader ) else : data = yaml. load ( f ) else : if int ( yaml. _ _ version _ _ [ 0 ] ) > 3 : data = yaml. load ( f, loader = y... | [
0.17875532805919647,
0.08636051416397095,
0.6041603088378906,
-0.3812468647956848,
-0.8818939924240112,
0.02621731534600258,
-0.13170868158340454,
0.3599611520767212,
-0.014437706209719181,
0.3319331407546997,
-0.40211066603660583,
0.34740331768989563,
-0.043838370591402054,
-0.08766645938... |
def cover _ wholecds ( blocklist, cdslength ) : percentcover = cover _ percentage ( blocklist, cdslength ) if ( percentcover < 100. 0 ) : return false else : return true | [
0.04238289222121239,
-0.003919606097042561,
0.5890549421310425,
0.7123927474021912,
-1.2931528091430664,
0.428939551115036,
-0.30703824758529663,
-0.08219579607248306,
0.393079549074173,
-0.007312520407140255,
-0.7459554076194763,
-0.7432447671890259,
-1.1701037883758545,
0.735099494457244... |
def getintattrdate ( self, * args ) : return _ snap. tneanet _ getintattrdate ( self, * args ) | [
0.6470111608505249,
0.0436524897813797,
0.21005013585090637,
-0.41444849967956543,
0.41095203161239624,
0.0291348434984684,
-0.48543649911880493,
-0.8870378136634827,
-0.99488765001297,
-0.34164535999298096,
0.4007374048233032,
-1.1243524551391602,
-1.2628705501556396,
0.6778789758682251,
... |
def load _ external _ data ( link : str ) - > tuple [ pd. dataframe, list [ str ], exception ] : exception = false try : df, player _ list = preprocessing. prepare _ data ( link ) return df, player _ list, exception except exception as exception : return false, false, exception | [
-1.1289417743682861,
1.0687404870986938,
0.5947191119194031,
-0.2739625871181488,
-0.32062044739723206,
-0.5986385345458984,
-0.5852742195129395,
0.47618645429611206,
-0.005918845999985933,
0.09273719787597656,
-0.3801209628582001,
0.32886746525764465,
-0.7163702249526978,
-0.6005673408508... |
def test _ atomic _ base64 _ binary _ pattern _ 2 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ pattern _ 3 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - pattern - 3. xsd ", instance ... | [
-0.04149382561445236,
-0.3782804012298584,
0.4677639603614807,
1.060827374458313,
-0.05625710263848305,
0.326402872800827,
-0.3851313591003418,
-0.005591069348156452,
0.03082169219851494,
0.7426072359085083,
-0.40199896693229675,
0.4076044261455536,
-0.2850436568260193,
-0.1441881209611892... |
def upload ( self, cmd : str, meta : dict ) : index = os. path. join ( self. cached _ repo, self. index _ file ) if os. path. exists ( index ) : os. remove ( index ) self. _ log. info ( " writing the new index. json... " ) with open ( index, " w " ) as _ out : json. dump ( self. contents, _ out, sort _ keys = true, ind... | [
-0.007669846992939711,
-0.018953382968902588,
0.6972922086715698,
-0.33910468220710754,
0.2529822885990143,
0.7897345423698425,
0.30806997418403625,
0.2447943240404129,
-0.5648545026779175,
1.2781033515930176,
-0.6347177028656006,
0.8212859034538269,
-0.8012614250183105,
-0.047859277576208... |
def test _ atomic _ base64 _ binary _ length _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ length _ 1 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - length - 1. xsd ", instance = " nis... | [
0.20520873367786407,
-0.6184827089309692,
0.3711065649986267,
1.0945968627929688,
0.15311986207962036,
-0.038284335285425186,
0.3054369390010834,
0.0764603391289711,
-0.2080780416727066,
0.5432950854301453,
-0.49584120512008667,
0.1637091487646103,
-0.2198544293642044,
0.5878452062606812,
... |
def reapprove ( self, cr, uid, ids = none, use _ new _ cursor = false, context = none ) : if ids : for record in self. browse ( cr, uid, ids, context ) : if record. add _ type = ='temporary': date = time. strftime ('% y - % m - % d') today = datetime. datetime. strptime ( date, " % y - % m - % d " ) add _ fuel _ ids = ... | [
-0.8768466711044312,
-0.943501889705658,
0.838883638381958,
-0.09776632487773895,
-0.4339449107646942,
-0.8733280301094055,
-0.4327191412448883,
0.6960281133651733,
-0.37715569138526917,
0.20558582246303558,
0.2906509339809418,
-0.16592712700366974,
-0.304578572511673,
0.6228606104850769,
... |
def prepworkdir ( workdir ) : commonsource = os. path. join ( buildexecpath,'createcommon. sh') commontarget = os. path. join ( workdir,'createcommon. sh') shutil. copyfile ( commonsource, commontarget ) open ( os. path. join ( workdir,'createvariables. sh'),'a'). close ( ) if ishighsierra : enterprisedict = { } enterp... | [
-0.5579758286476135,
0.21712645888328552,
0.6654318571090698,
0.6215457320213318,
0.6017553806304932,
0.7384154200553894,
0.6157296299934387,
0.6046739220619202,
0.7831295728683472,
0.5957295894622803,
-0.4720824658870697,
-0.08114413917064667,
-0.13590176403522491,
0.5194281935691833,
0... |
def assemblestiffnessmatrix ( xgpn, wgpn, n ) : # init matrix with zero kxi = [ [ 0 for _ in range ( n ) ] for _ in range ( n ) ] for i in range ( 0, n ) : phi, phi _ xi = mathsutils. basefunc1d ( xgpn [ i ], xgpn, n ) for k in range ( 0, n ) : for l in range ( 0, n ) : kxi [ k ] [ l ] + = wgpn [ i ] * phi _ xi [ k ] *... | [
0.04354462772607803,
-0.10219719260931015,
0.3991384506225586,
-0.1341412514448166,
0.020333334803581238,
-0.21032921969890594,
0.07055678963661194,
0.4922235608100891,
-0.35292211174964905,
0.7089431285858154,
0.07930289953947067,
0.3444826304912567,
-0.5117846727371216,
0.590653896331787... |
def create _ and _ configure _ deploy _ key ( * * kwargs ) : api. create _ and _ configure _ deploy _ key ( * * kwargs ) common. cli _ success ( ) | [
-0.8941185474395752,
0.12013982981443405,
0.358532190322876,
0.5225601196289062,
0.9651391506195068,
0.40317997336387634,
0.10469406098127365,
-0.33182090520858765,
-0.3951911926269531,
0.8113073110580444,
-0.7564530968666077,
0.7930138111114502,
0.1278323531150818,
0.9131197929382324,
0... |
def add _ sudoer ( ctx, user ) : append _ to _ file ( ctx,'/ etc / sudoers ', f "'{ user } all = ( all : all ) all'" ) | [
0.14967729151248932,
0.24880199134349823,
0.6851857304573059,
0.4855186343193054,
0.05427273362874985,
0.9595417976379395,
-0.34271520376205444,
1.0869618654251099,
0.5026529431343079,
-1.1389415264129639,
-0.3983032703399658,
0.24439792335033417,
0.3849106729030609,
0.4668835997581482,
... |
def pagination _ model _ factory ( api _ or _ ns, name = none ) : return api _ or _ ns. model ( name or'a page of results ', {'page': fields. integer ( description ='number of this page of results'),'per _ page': fields. integer ( description ='number of items per page of results'),'pages': fields. integer ( descriptio... | [
-0.41230887174606323,
-0.02013545110821724,
0.6249361634254456,
-0.5840228199958801,
0.017129575833678246,
-0.6251915097236633,
-0.2590300440788269,
-0.7296619415283203,
0.49523067474365234,
-0.3781817853450775,
0.0860557109117508,
-1.466081976890564,
0.6017743945121765,
0.8409085869789124... |
def getasstr ( self, newnullch ='\ 0') : return _ snap. tmem _ getasstr ( self, newnullch ) | [
0.4845461845397949,
-0.6784940958023071,
-0.0322934091091156,
-0.8400972485542297,
-0.04483742639422417,
-0.8388776183128357,
-0.10946743190288544,
-0.6718631982803345,
-0.4823262393474579,
-0.21455273032188416,
0.00408855639398098,
-0.5679317116737366,
-0.3270567059516907,
0.7504969239234... |
def _ order _ nodes ( self, tree, filter _ leaves = true ) : node _ list = [ ] traversal _ queue = deque ( [ tree. root ] ) while len ( traversal _ queue ) > 0 : node = traversal _ queue. popleft ( ) # we only need attribute list if filter _ leaves : if node. label not in [ 0, 1 ] : node _ list. append ( node. label ) ... | [
-0.6673043370246887,
-0.5960372090339661,
0.8618413209915161,
-0.351591557264328,
-0.48319560289382935,
0.07276307791471481,
-0.6040880084037781,
-0.0570552833378315,
-0.5742799043655396,
1.2211482524871826,
0.41178184747695923,
0.20786809921264648,
0.7216996550559998,
0.7372043132781982,
... |
def area ( self ) : return self. _ _ size * * 2 | [
-0.21086539328098297,
-0.7560749053955078,
0.400326132774353,
-0.05084773525595665,
-0.08520037680864334,
0.6013194918632507,
0.6685692071914673,
-0.20586737990379333,
0.6268900036811829,
-1.0211883783340454,
0.3757685720920563,
0.21245813369750977,
-0.2638740837574005,
0.9532212615013123,... |
def group _ message _ keys ( cls, message ) : yield cls. group _ base _ message _ key ( message ) | [
-0.9396586418151855,
0.37365344166755676,
0.2683596611022949,
0.03991150110960007,
-0.03161972016096115,
-0.5171156525611877,
0.6818175315856934,
-1.6728570461273193,
-0.7906016707420349,
0.3026244342327118,
0.33728325366973877,
0.8415732383728027,
-0.9641850590705872,
1.3360192775726318,
... |
def get _ accounts ( self, username = none ) : url = " { 0 } / { 1 } / accounts ". format ( self. domain, self. api _ version ) params = { " username " : username } try : return self. _ client _ _ call ( uri = url, params = params, method = " get " ) except requestexception : return false except assertionerror : return... | [
-1.3262099027633667,
0.9307831525802612,
0.6372835040092468,
0.6414739489555359,
0.6073877215385437,
0.0836227685213089,
0.39198189973831177,
0.22345070540905,
-0.055619850754737854,
-0.3140437602996826,
-0.021201996132731438,
0.06194407492876053,
-1.0387580394744873,
-0.08013071864843369,... |
def test _ message _ show ( self ) : message = message ( id = 0xf00f, text = " hello world ", user _ id = self. testuser. id ) db. session. add ( message ) db. session. commit ( ) with self. client as c : with c. session _ transaction ( ) as session : session [ curr _ user _ key ] = self. testuser. id response = c. get... | [
0.3164214491844177,
0.40343111753463745,
0.29920491576194763,
-0.06750155240297318,
0.49427396059036255,
0.9289100766181946,
0.019837873056530952,
-0.18371710181236267,
-0.2742374539375305,
-0.7503820061683655,
0.5238891839981079,
0.16930817067623138,
-0.47150522470474243,
0.51712596416473... |
def dotplotwindowed ( shorizontal, svertical, window, threshold ) : global outputarray # a reference to a global array of size [ s1 ] [ s2 ] filled with zeroes at that time row = 0 # an iterator counting the rows processed so far vwindow = [ ] # an array representing the vertical part of the smoothening window for c2 i... | [
0.07503366470336914,
-0.6329164505004883,
0.8578592538833618,
0.0001217219905811362,
-1.42917799949646,
-0.43634697794914246,
0.953438937664032,
-0.1259416788816452,
-0.36468836665153503,
0.329753577709198,
0.11998679488897324,
1.4208149909973145,
-0.8231776356697083,
0.41101789474487305,
... |
def test _ conformers ( self ) : label ='methylamine'self. job1. local _ path _ to _ output _ file = os. path. join ( arc _ path,'arc ','testing ','methylamine _ conformer _ 0. out') self. job1. job _ status = ['done ', {'status':'done ','keywords': list ( ),'error':'','line':'' } ] self. job2. local _ path _ to _ outp... | [
0.20635277032852173,
-0.9384933114051819,
0.8178777694702148,
-0.28989845514297485,
0.5395524501800537,
0.017421375960111618,
-0.36151403188705444,
0.22068582475185394,
-1.2883563041687012,
-0.43093547224998474,
-0.7849773168563843,
0.3292027711868286,
-0.3810567855834961,
0.61447679996490... |
def getrndni ( self, * args ) : return _ snap. tungraph _ getrndni ( self, * args ) | [
-0.33266207575798035,
0.3009244203567505,
0.5099818110466003,
1.0998995304107666,
-0.07215670496225357,
-0.3593294024467468,
-0.5572383999824524,
-0.296887069940567,
-0.6595879793167114,
-1.3133426904678345,
-1.5344901084899902,
-0.13274414837360382,
-0.8505597710609436,
0.4153856039047241... |
def _ shipcollison ( self ) : for bolt in self. _ bolts : if self. _ ship is not none : if self. _ ship. collides ( bolt ) : self. _ bolts. remove ( bolt ) self. _ shipblastsound. play ( ) if self. _ lives > 1 : self. _ lives = self. _ lives - 1 self. _ state = state _ paused else : self. _ ship = none self. _ fail = t... | [
-0.24869556725025177,
-0.3603684604167938,
0.8638824224472046,
-0.24705559015274048,
0.7767887115478516,
-0.6223886013031006,
0.37421998381614685,
-0.1339809000492096,
0.10109836608171463,
0.6537108421325684,
-0.030300021171569824,
-0.4074840545654297,
-0.4003966450691223,
-0.1015891134738... |
def load _ all _ instances ( instance _ type : types ) - > itemsview [ any, any ] : return commonresourceutils. get _ instance _ manager ( instance _ type ). types. items ( ) | [
-1.1196321249008179,
0.05511223152279854,
0.44243013858795166,
-0.5210897922515869,
-0.20688633620738983,
-0.011622694320976734,
-0.32894328236579895,
-0.7777767777442932,
-0.2769250273704529,
0.33007240295410156,
0.011480187997221947,
0.08622528612613678,
-0.5343255400657654,
0.8936803340... |
def test _ atomic _ hex _ binary _ max _ length _ 3 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ max _ length _ 4 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - maxlength - 4. xsd ", instance ... | [
0.2196342945098877,
0.3106438219547272,
0.3497980535030365,
0.7794597148895264,
-0.07799624651670456,
0.4121866524219513,
-0.7572228312492371,
0.02464502491056919,
0.07134696841239929,
0.19607236981391907,
-0.5146583914756775,
-1.023464322090149,
-0.2583017647266388,
0.07750778645277023,
... |
def encode _ single ( self, reference _ boxes : tensor, proposals : tensor, ) - > tensor : dtype, device = reference _ boxes. dtype, reference _ boxes. device weights = torch. tensor ( self. weights, dtype = dtype, device = device ) targets = encode _ boxes ( reference _ boxes, proposals, weights ) return targets | [
-0.606430172920227,
0.5307871103286743,
0.4397473931312561,
0.32393378019332886,
1.1822967529296875,
0.08501572161912918,
-0.35613176226615906,
-0.309213250875473,
0.4095427095890045,
0.7634263634681702,
0.5860517621040344,
0.5939329266548157,
-0.5334630012512207,
0.3206688165664673,
-0.... |
def get _ shorthand ( self, line ) : # find the last space in the line and remove it, setting a variable #'before'to the current line. words = line. split ( " " ) word = words [ - 1 ]. lstrip ( ) if not word : word = none return word | [
1.1357213258743286,
0.329534113407135,
0.5739974975585938,
0.29743853211402893,
0.2852047383785248,
-0.6979795694351196,
-0.06708010286092758,
0.04384634643793106,
0.7600008845329285,
0.6313403844833374,
0.38207805156707764,
0.37566399574279785,
-0.6063896417617798,
-0.3523143529891968,
... |
def work _ matrix _ dict ( self ) : return dict ( zip ( self. list _ of _ works ( ), self. get _ matrices ( ) ) ) | [
-1.5962865352630615,
-0.41192057728767395,
0.12891227006912231,
-0.5664721727371216,
-0.5048953294754028,
0.06599990278482437,
0.9359092712402344,
-0.7088568210601807,
0.16185133159160614,
-0.411421537399292,
-1.3103461265563965,
-0.3324422836303711,
-0.35277241468429565,
0.653131067752838... |
def getrndni ( self, * args ) : return _ snap. tbpgraph _ getrndni ( self, * args ) | [
0.38539642095565796,
1.210020661354065,
0.3575464189052582,
0.7524951696395874,
0.37855076789855957,
-0.38821759819984436,
0.03412068635225296,
-0.7391096353530884,
-1.6891555786132812,
-0.4352978467941284,
-1.0641064643859863,
0.22383669018745422,
-1.1614166498184204,
0.556212306022644,
... |
def get _ args ( args = none ) : parser = argparse. argumentparser ( description ='see header of python script') parser. add _ argument ('- i ','- - input ', help ='input xyz file ', required = true ) parser. add _ argument ('- o ','- - output ', help ='output xyz file ', required = true ) parser. add _ argument ('- s ... | [
0.38175445795059204,
-0.5979074835777283,
0.7638706564903259,
-0.12374129146337509,
0.267912894487381,
0.10534483194351196,
0.16355516016483307,
-0.03852008655667305,
-1.1934374570846558,
0.1947001963853836,
-0.2869423031806946,
0.10043928772211075,
-0.2802022099494934,
0.6916780471801758,... |
def _ _ imul _ _ ( self, * args ) : return _ snap. tuint64 _ _ _ imul _ _ ( self, * args ) | [
-2.152390956878662,
0.9434796571731567,
0.16371768712997437,
-0.23669902980327606,
-0.3490833342075348,
-0.040558867156505585,
-0.3943745791912079,
0.03448820859193802,
-0.23458178341388702,
0.5670171976089478,
0.5406498312950134,
-1.0024077892303467,
-0.221638485789299,
-0.74116450548172,... |
def flagreplacer ( device, command _ line _ path, new _ flags ) : # if we're logging requests from a local desktop chrome instance there is no # device. if not device : yield return changer = flag _ changer. flagchanger ( device, command _ line _ path ) changer. replaceflags ( new _ flags ) try : yield finally : change... | [
0.28195592761039734,
0.38717448711395264,
0.2592598497867584,
0.6023200154304504,
0.2907513678073883,
-0.07619299739599228,
-0.5972673892974854,
0.3950643837451935,
-0.2839622497558594,
-0.44285455346107483,
-0.25615033507347107,
0.5207822322845459,
-0.5385507345199585,
0.7950577735900879,... |
def quote ( request ) : return render ( request,'quote. html') | [
0.45122265815734863,
-0.03965848684310913,
0.31065064668655396,
0.45049452781677246,
0.25979354977607727,
0.2888224124908447,
0.32155781984329224,
0.5125333666801453,
-0.0585680827498436,
0.23575159907341003,
1.1300753355026245,
-0.46698954701423645,
0.01895202323794365,
0.4717882871627807... |
def import _ moment ( moment _ file ) : if moment _ file [ - 4 : ] = = '. npy': moment = np. load ( moment _ file ) else : exception ( " only. npy moment files allowed! " ) return moment | [
-0.03909020870923996,
-0.5756326913833618,
0.4932418167591095,
0.41169703006744385,
0.14014747738838196,
0.5247964262962341,
0.5472232103347778,
-0.4708311855792999,
0.7541100978851318,
1.0513917207717896,
0.25578171014785767,
0.21311594545841217,
-0.8065585494041443,
0.6297755837440491,
... |
def sign ( * args ) : return _ snap. tint _ sign ( * args ) | [
-1.3101856708526611,
-0.19571363925933838,
0.1527996063232422,
0.973297655582428,
0.1311940997838974,
0.22457268834114075,
-0.013850195333361626,
-0.04926261305809021,
-0.7313273549079895,
-0.32111167907714844,
-1.1646347045898438,
-0.9499797821044922,
-1.3506633043289185,
0.29297032952308... |
def backward ( observation, emission, transition, initial ) : n, m = emission. shape t = observation. shape [ 0 ] beta = np. zeros ( ( n, t ) ) beta [ :, t - 1 ] = 1 for t in range ( t - 2, - 1, - 1 ) : trans = transition em = emission [ :, observation [ t + 1 ] ] post = beta [ :, t + 1 ] first = post * em beta [ :, t ... | [
0.014891953207552433,
-0.39496535062789917,
0.8560505509376526,
-0.7088004946708679,
0.5666560530662537,
-0.6149394512176514,
-0.06847407668828964,
-0.09878652542829514,
-1.5413957834243774,
0.36559879779815674,
-0.10312483459711075,
0.4593674838542938,
0.30444708466529846,
-0.287601470947... |
def _ prepare _ job ( self, job ) : job. sgf _ game _ name = " % s % s " % ( self. competition _ code, job. game _ id ) if self. record _ games : job. sgf _ filename = self. get _ sgf _ filename ( job. game _ id ) job. sgf _ dirname = self. sgf _ dir _ pathname job. void _ sgf _ dirname = self. void _ dir _ pathname if... | [
0.13327783346176147,
-0.2894707918167114,
0.5441129803657532,
-0.022731373086571693,
-0.10407867282629013,
-0.05083944648504257,
-0.3452158570289612,
-0.03325481340289116,
-0.13939760625362396,
0.5381214022636414,
0.05555758625268936,
0.12959325313568115,
0.18802177906036377,
-0.2371849417... |
def new ( cls, name, function, grammars, terms = 2 ) : return type ( name, ( cls, ), {'function': staticmethod ( function ),'grammars': grammars,'terms': terms, } ) | [
0.11210080981254578,
-0.057661477476358414,
0.3453693687915802,
0.10070165246725082,
-0.04456624761223793,
-0.9127081036567688,
-0.8406452536582947,
-0.8953048586845398,
-0.6082026958465576,
0.08826519548892975,
-0.50314861536026,
0.5936697125434875,
0.28798824548721313,
-0.142864823341369... |
def compute _ shading ( lights, normals = none, mode ='sfsnet') : if normals is none : # render sh on sphere normals = get _ sphere _ normals ( ) normals = np. tile ( normals, ( lights. shape [ 0 ], 1, 1, 1 ) ) normals = normalize ( normals, axis = 3 ) normals = normals. transpose ( ( 0, 3, 1, 2 ) ) shading = np. zeros... | [
-0.13317063450813293,
0.22179104387760162,
0.7881938219070435,
-0.38555023074150085,
-0.7970468401908875,
0.3239356577396393,
0.2524579167366028,
0.5609747767448425,
0.6544322967529297,
0.17500591278076172,
-0.43977847695350647,
-0.22541500627994537,
0.0180011335760355,
0.5859723091125488,... |
def get _ image _ matrix ( self ) : images = [ ] for file in os. listdir ( directory ) : if file. endswith ( ". jpg " ) or file. endswith ( ". png " ) or file. endswith ( ". jpeg " ) : images. append ( self. get _ image ( os. path. join ( directory, file ) ) ) return images | [
-1.3124254941940308,
-0.005937053356319666,
0.5951519012451172,
0.6726102828979492,
0.5096487402915955,
-0.45741045475006104,
0.8807294964790344,
0.14036761224269867,
-0.2827586233615875,
-0.0015910430811345577,
0.22167576849460602,
0.25688979029655457,
-0.07620186358690262,
1.532688856124... |
def detail ( self, brickconfig _ uuid, marker = none, limit = none, sort _ key ='id ', sort _ dir ='asc') : check _ policy ( pecan. request. context,'get _ all') # note ( lucasagomes ) : / detail should only work agaist collections parent = pecan. request. path. split ('/') [ : - 1 ] [ - 1 ] if parent! = " configfiles ... | [
-0.5215114951133728,
1.0407027006149292,
0.5657550692558289,
0.6314388513565063,
0.6275203824043274,
-0.8864037990570068,
0.5660896301269531,
0.34470629692077637,
-0.8713558316230774,
0.7264003157615662,
-0.36604994535446167,
0.2843261659145355,
-0.2835645377635956,
0.4387652277946472,
-... |
def drawworld ( world, image ) : x, y = world. coordinates r = world. radius ul = ( x - r, y - r ) lr = ( x + r, y + r ) box = ( ul, lr ) d = imagedraw. draw ( image ) color = world. color d. ellipse ( box, fill = color, outline = color ) | [
-0.5571979284286499,
-0.04229825735092163,
0.5455809831619263,
-0.37391382455825806,
-0.498995304107666,
1.3503156900405884,
-0.12466290593147278,
-0.06036902219057083,
0.5472761392593384,
0.1865270435810089,
0.3062981367111206,
0.3227866291999817,
0.3484041690826416,
0.5090696215629578,
... |
def clean ( self ) : self. cntelems = 0 | [
0.049340035766363144,
-0.4166688919067383,
0.487606018781662,
-0.2701001465320587,
0.3834773600101471,
0.9667621850967407,
1.046739101409912,
0.25525572896003723,
-0.31745269894599915,
0.1558201014995575,
-0.5469048023223877,
0.11706963926553726,
-0.11475536972284317,
1.2091362476348877,
... |
def intattrnameei ( self, * args ) : return _ snap. tneanet _ intattrnameei ( self, * args ) | [
-0.7759318351745605,
0.6615768671035767,
0.26281502842903137,
-0.012626560404896736,
-0.013932287693023682,
0.1270797699689865,
0.6940885186195374,
-0.41266682744026184,
-1.1545284986495972,
0.9836452603340149,
0.09919542074203491,
-0.9760125279426575,
-0.7516603469848633,
0.38412025570869... |
async def author _ url ( self, ctx : context, author _ url : str ) - > none : embed = self. embeds [ ctx. author ]. embed embed. set _ author ( name = embed. author. name, url = author _ url, icon _ url = embed. author. icon _ url ) await ctx. send ( " embeds author url updated. " ) | [
-0.7697533965110779,
-0.513537585735321,
0.4716074764728546,
0.94668048620224,
-0.2544073164463043,
0.33254295587539673,
0.2375822514295578,
1.1954731941223145,
0.3569869101047516,
0.15715551376342773,
-1.068626046180725,
1.059533715248108,
0.13690176606178284,
-0.21198037266731262,
-0.5... |
def perform ( client ) : old _ status = client. get _ status ( ) client. juju ('add - machine ', ('- n ','5') ) client. wait _ for _ started ( ) new _ status = client. get _ status ( ) remove _ and _ wait ( client, new _ status. iter _ new _ machines ( old _ status ) ) | [
-0.0727115273475647,
1.235992670059204,
0.5419837236404419,
0.44262760877609253,
0.7168835997581482,
0.2654544413089752,
0.13501545786857605,
0.29953134059906006,
-1.0655618906021118,
0.6682423949241638,
-0.7957963943481445,
0.08728586137294769,
-0.7944751381874084,
0.5306997299194336,
0... |
def _ ssh _ params ( self, instance _ data ) : return " - o port = % s - o userknownhostsfile = / dev / null - o stricthostkeychecking = no " % instance _ data. ssh. port | [
0.3565182685852051,
-0.0010282783769071102,
0.4076310396194458,
-0.6135184168815613,
0.47392037510871887,
1.3005751371383667,
-0.5356800556182861,
0.38020411133766174,
-0.7173804044723511,
0.23707687854766846,
0.09471769630908966,
0.5231216549873352,
0.5732485055923462,
0.6687669157981873,... |
def name _ prefix ( self, name _ prefix ) : self. _ name _ prefix = name _ prefix | [
-0.6317720413208008,
-0.46550437808036804,
0.1797197461128235,
-0.5839207172393799,
-0.6948290467262268,
0.7151390910148621,
-0.5773902535438538,
-0.19913040101528168,
-0.05401105806231499,
0.7228362560272217,
-2.207662343978882,
0.10278329253196716,
0.2660559415817261,
0.8145449161529541,... |
def test _ atomic _ base64 _ binary _ pattern _ 4 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ pattern _ 5 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - pattern - 5. xsd ", instance ... | [
-0.35054534673690796,
-0.31940868496894836,
0.4283560812473297,
1.4585949182510376,
-0.07436711341142654,
0.0978487879037857,
0.7219630479812622,
-0.37544676661491394,
-0.41490739583969116,
0.7736165523529053,
-0.6348822116851807,
0.09434919059276581,
-0.9739320278167725,
0.184742644429206... |
def to _ python ( self, value ) : if value in validators. empty _ values : return self. default if self. localize : value = formats. sanitize _ separators ( value ) value = smart _ str ( value ). strip ( ) try : value = decimal ( value ) except decimalexception : raise validationerror ( self. error _ messages ['invalid... | [
0.1581091731786728,
-0.15383051335811615,
0.579157292842865,
-0.36809882521629333,
0.45616114139556885,
0.2556819021701813,
-0.3161923885345459,
-0.6182191967964172,
0.024090753868222237,
-0.4538877308368683,
-0.009414144791662693,
-0.2987667918205261,
0.13503752648830414,
0.19732965528964... |
def getnextlnbf ( self, * args ) : return _ snap. tchain _ getnextlnbf ( self, * args ) | [
0.39794301986694336,
0.7533155083656311,
-0.015562152490019798,
0.5549066662788391,
0.030533328652381897,
0.05519444867968559,
-0.6662569642066956,
-0.31090742349624634,
-0.7186269760131836,
-0.8848767280578613,
-1.285548210144043,
-0.9379196166992188,
-1.2724370956420898,
0.60798513889312... |
def update _ with _ cfg ( table, cfg ) : try : key = table [ 0 ] ['fkey'] blk = table [ 0 ] ['obsblkid'] except keyerror : return table # first, check if'keep'keyword is present in fkey or obsblk if cfg. has _ section ( key ) and'aorids'in cfg [ key ] : keep = [ x. strip ( ) for x in cfg [ key ]. get ('aorids'). split ... | [
0.23039211332798004,
-0.32218945026397705,
0.7158992290496826,
-0.16336889564990997,
-0.9941873550415039,
-0.5309487581253052,
0.0312022902071476,
-0.05945948511362076,
0.18447712063789368,
1.611120581626892,
1.1742939949035645,
-0.2504349946975708,
0.6373507380485535,
1.1304739713668823,
... |
def load _ pandas ( ) : data = _ get _ data ( ) return du. process _ recarray _ pandas ( data, endog _ idx = 0, dtype = float ) | [
-0.5427560210227966,
0.9788131713867188,
0.5511049628257751,
-0.2626096308231354,
0.46909525990486145,
-0.7987399697303772,
0.1390741765499115,
-0.33408835530281067,
-0.17709042131900787,
-0.7650015354156494,
0.060277726501226425,
0.9805691838264465,
-0.4994724690914154,
-1.821350932121276... |
def upload ( self, s3 _ bucket, s3 _ key, data, dryrun = true, md5 = none, public _ read = true ) : try : if not dryrun : object = boto3. resource ( " s3 ", region _ name = self. _ region, * * self. _ credentials ). object ( s3 _ bucket, s3 _ key ) extra _ args = { } if md5 : extra _ args [ " contentmd5 " ] = md5 if pu... | [
0.02152293361723423,
0.5070574283599854,
0.6580746173858643,
-0.6554914712905884,
0.07301286607980728,
1.5494452714920044,
-0.3940080404281616,
0.39201197028160095,
-0.4409133493900299,
0.5972865223884583,
-0.3945905864238739,
0.3616090714931488,
-0.4037027359008789,
-0.43572181463241577,
... |
def scenarionumber ( self, scennum ) : return self. _ scens [ scennum ] | [
-0.9071514010429382,
-0.6278318166732788,
0.3989798426628113,
-0.2874552607536316,
-0.255137175321579,
-0.7200630903244019,
0.5051080584526062,
-0.11722803115844727,
0.22978000342845917,
0.10568289458751678,
-0.75392085313797,
0.18519587814807892,
0.7742058038711548,
-0.8360856175422668,
... |
def merge _ lost _ subnets ( self ) : if not self. includes _ lost : self. include _ lost ( ) # list subnets that have lost particles lost _ source = [ ] for key in self. subnets : source, dest = self. subnets [ key ] shortage = len ( source ) - len ( dest ) if shortage > 0 : lost _ source. extend ( source ) if len ( l... | [
-0.03293522074818611,
0.3370174467563629,
0.7592220902442932,
-0.32749634981155396,
-0.15798892080783844,
0.9056853652000427,
-0.35528627038002014,
0.07580503821372986,
0.9099605083465576,
-0.06606409698724747,
-0.7517850399017334,
0.24560187757015228,
-0.03901650011539459,
0.0411707758903... |
def reset ( cls ) - > none : cls. last = none cls. all = [ ] | [
-0.2772071659564972,
-0.41972616314888,
0.2687348425388336,
-0.19626417756080627,
1.5119599103927612,
-0.009339982643723488,
0.23395414650440216,
0.2992781698703766,
-0.3337361812591553,
-0.1671246737241745,
-1.064085602760315,
1.2533084154129028,
-0.14734768867492676,
0.19926713407039642,... |
def arange ( left, right, dtype, device ) : pass | [
-0.8529431819915771,
-0.06496191024780273,
0.14225158095359802,
1.377679467201233,
-0.5565099120140076,
-0.2633621096611023,
-0.24116948246955872,
-0.6841610670089722,
-0.6228610873222351,
0.5628592371940613,
0.5360562205314636,
0.6626344323158264,
-0.34536468982696533,
0.29070165753364563... |
def getintvattrdatn ( self, * args ) : return _ snap. tneanet _ getintvattrdatn ( self, * args ) | [
-1.1671702861785889,
0.0912308394908905,
0.39041867852211,
-0.6337813138961792,
0.7535262107849121,
-0.06365261226892471,
0.6379169225692749,
-0.30296456813812256,
-0.5375804901123047,
-0.47828635573387146,
0.06460046768188477,
-0.8287350535392761,
-0.1649213284254074,
-0.3752646744251251,... |
def getexpdev ( self, * args ) : return _ snap. trnd _ getexpdev ( self, * args ) | [
-0.17512136697769165,
1.103797197341919,
0.27033525705337524,
0.3888760805130005,
0.949979841709137,
-0.06599793583154678,
0.09312578290700912,
0.5102594494819641,
-0.8195245862007141,
-1.2566022872924805,
0.17077520489692688,
-0.9057799577713013,
-0.5022652745246887,
0.8428148627281189,
... |
def getrndni ( self, * args ) : return _ snap. tundirnet _ getrndni ( self, * args ) | [
-0.5354654788970947,
-0.2653011977672577,
0.3793852627277374,
1.04867422580719,
0.29425445199012756,
-0.14943155646324158,
-0.1929713934659958,
-1.05178964138031,
-1.0174835920333862,
-1.0015418529510498,
-1.0209518671035767,
-0.3692425489425659,
-1.0427221059799194,
0.6030392646789551,
... |
def tstrhashf _ oldglib _ getsechashcd ( * args ) : return _ snap. tstrhashf _ oldglib _ getsechashcd ( * args ) | [
1.9786427021026611,
-0.03071659617125988,
0.31377896666526794,
-0.06657573580741882,
0.1649962067604065,
-0.19822701811790466,
0.3658328354358673,
0.834697961807251,
-0.48185262084007263,
-0.6714047789573669,
0.2425496131181717,
-0.1378854662179947,
0.49123018980026245,
0.6576780080795288,... |
def setq ( self, q ) : raise notimplementederror, " not implemented yet " | [
-1.0155471563339233,
-0.1938016712665558,
0.44827577471733093,
0.5859504342079163,
-0.2974533140659332,
0.9192137718200684,
-0.45661070942878723,
-0.1848166286945343,
0.34757328033447266,
-0.38859060406684875,
-1.015695333480835,
0.7486301064491272,
0.6967264413833618,
0.7298625707626343,
... |
def set _ duration ( self, duration _ in _ secs ) : steps = int ( duration _ in _ secs / self. timestep ) self. steps = steps return self | [
-0.15829475224018097,
0.39395156502723694,
0.2679089903831482,
0.2774091958999634,
-0.11499587446451187,
0.2917174696922302,
0.00729112746194005,
0.21744979918003082,
-0.33876705169677734,
-0.35534149408340454,
-0.42264488339424133,
-0.4079558551311493,
0.4472481310367584,
0.69304043054580... |
def testshortcitenonlitsearch ( self ) : form = self. form form. enter _ value ('accids ','j : 175295') form. click _ search ( ) # finds the results table and iterates through the table table _ element = self. driver. find _ element ( by. id, " resultstable " ) table = table ( table _ element ) # finds the short citati... | [
1.1284984350204468,
-0.28783610463142395,
0.4565344750881195,
0.0843910425901413,
0.3509179949760437,
0.6734685897827148,
0.942287266254425,
0.003894023597240448,
-0.006793534848839045,
-0.7104936838150024,
0.14255468547344208,
-0.02090395614504814,
-0.804967999458313,
0.06294437497854233,... |
def limitter ( arg _ name, min _ val, max _ val, step ) : def _ limitter ( func ) : @ wraps ( func ) def wrapper ( * args, * * kwargs ) : arg _ val = get _ arg _ value ( arg _ name, func, * args, * * kwargs ) assert isinstance ( arg _ val, ( int, float ) ), \ f " { arg _ name } : expected to be ` int ` of ` float ` " a... | [
-0.502832293510437,
-0.1427673101425171,
0.7042050361633301,
-0.0000795062369434163,
-0.6170409917831421,
0.3877863585948944,
-0.4726574718952179,
-0.057975418865680695,
-0.6714178323745728,
0.15843135118484497,
0.601525068283081,
0.008129545487463474,
0.37058207392692566,
0.86148130893707... |
def copy _ temp ( self ) : # create temporary file paths = { } for k, v in self. _ packets. items ( ) : paths [ k ] = ip. informationpacket ( _ path. path ( _ temp. namedtemporaryfile ( delete = true ). name ) ) self. _ temp _ packets = packetregister ( paths ) return self. _ temp _ packets | [
-0.33605605363845825,
-0.5805534720420837,
0.5383840203285217,
-0.7187196612358093,
-0.4761192202568054,
0.41903212666511536,
-0.0437726229429245,
-0.15812519192695618,
0.19992485642433167,
0.24895282089710236,
-0.7233843207359314,
-0.2313651144504547,
-0.3254152834415436,
-0.1264764368534... |
def plot ( self, intensity _ from = 0. 0, intensity _ to = none, with _ histogram = false ) : def plot _ histogram ( ) : " " " plot the histogram of intensity values as horizontal bars, aligned with the spectrum axes " " " def calc _ bin _ edges _ intensity ( ) : " " " calculate various properties of the histogram bins... | [
0.6947473883628845,
0.19829046726226807,
0.8244155049324036,
-0.025498079136013985,
0.07779170572757721,
0.18707804381847382,
0.30301040410995483,
0.7411389946937561,
-0.08894471824169159,
-0.2673216760158539,
-0.38045862317085266,
0.40656739473342896,
-0.0002053111238637939,
0.07366240769... |
def _ _ init _ _ ( self, bulge _ prior _ model : af. priormodel ( lmp. lightmassprofile ) = lmp. ellipticalsersic, disk _ prior _ model : af. priormodel ( lmp. lightmassprofile ) = lmp. ellipticalexponential, envelope _ prior _ model : af. priormodel ( lmp. lightmassprofile ) = none, dark _ prior _ model : af. priormod... | [
0.3976583182811737,
-0.4587695002555847,
0.8435078263282776,
-0.32422497868537903,
0.3414562940597534,
0.39450863003730774,
0.24660427868366241,
-0.4071103632450104,
-0.01964792236685753,
-0.279234915971756,
-0.07259141653776169,
0.09469440579414368,
-0.18770109117031097,
1.207955718040466... |
def tch _ isalpha ( * args ) : return _ snap. tch _ isalpha ( * args ) | [
0.5824158787727356,
-0.42844656109809875,
0.6163114905357361,
-0.19424834847450256,
0.19663609564304352,
0.6644760966300964,
-0.11762718111276627,
0.34000203013420105,
-0.435282438993454,
0.8463648557662964,
-0.19356819987297058,
-0.31340911984443665,
-0.2993903160095215,
-0.02561800740659... |
def _ _ lt _ _ ( self, * args ) : return _ snap. trowiteratorwithremove _ _ _ lt _ _ ( self, * args ) | [
0.3573140501976013,
-0.6125428676605225,
0.45437878370285034,
-0.8205641508102417,
-0.9702212810516357,
-0.6177427172660828,
0.06929618865251541,
-0.6563763618469238,
-0.22479203343391418,
0.2785678803920746,
-0.8311871886253357,
-1.311721920967102,
-0.05519174411892891,
0.802732527256012,... |
def setid ( self, id ) : self. _ id = id | [
0.14198391139507294,
-0.7241787314414978,
0.040767256170511246,
-0.2515740692615509,
0.6120054721832275,
1.3821675777435303,
0.02976323291659355,
0.49712759256362915,
0.7953369617462158,
-0.3502660393714905,
-0.9260302186012268,
0.6165221929550171,
-0.46984827518463135,
0.6592174768447876,... |
def getsattride ( self, * args ) : return _ snap. tundirnet _ getsattride ( self, * args ) | [
0.29582226276397705,
0.1887335181236267,
0.29069241881370544,
0.47695639729499817,
1.1495312452316284,
-0.583573043346405,
0.07016785442829132,
-0.892738401889801,
-0.5199671983718872,
-1.2414653301239014,
0.041268352419137955,
-0.2539873421192169,
-1.8003665208816528,
0.3824344873428345,
... |
def on _ launch ( launch _ request, session ) : print ( " on _ launch requestid = " + launch _ request ['requestid'] + ", sessionid = " + session ['sessionid'] ) # dispatch to your skill's launch return get _ welcome _ response ( ) | [
0.8953883647918701,
-1.4403096437454224,
0.4421597719192505,
0.3250334560871124,
-0.33013689517974854,
-0.556218147277832,
-0.9190388321876526,
-0.19104306399822235,
1.65072762966156,
-0.012145759537816048,
-0.5162994861602783,
0.6643654108047485,
1.026073694229126,
0.2634713649749756,
-... |
def eax _ f ( self ) : return self [ 5 ] | [
0.07672320306301117,
0.5112427473068237,
0.11028065532445908,
-0.5459967255592346,
-0.20444604754447937,
-0.19410184025764465,
0.5764731764793396,
-0.4318116009235382,
0.19745537638664246,
-0.18640923500061035,
-0.45578479766845703,
-0.053597304970026016,
0.3468150794506073,
-1.13139271736... |
def _ _ del _ _ ( self ) : for component _ name, poster _ id in self. _ poster _ dict. items ( ) : logger. info ( " killing poster % d for component % s " % ( poster _ id, component _ name ) ) # call the method to close a poster ors _ poster. finalize ( poster _ id ) | [
-0.6047124266624451,
-1.2742632627487183,
0.2861693799495697,
-0.9094386696815491,
-0.025032928213477135,
-0.17784063518047333,
-1.0072823762893677,
0.45705533027648926,
0.6285709738731384,
0.3947450518608093,
0.18388941884040833,
0.38165438175201416,
-0.3594270944595337,
1.097364902496338... |
def tovargraphsequence ( self, * args ) : return _ snap. ttable _ tovargraphsequence ( self, * args ) | [
-1.6670337915420532,
0.2970415949821472,
0.27288782596588135,
1.0351910591125488,
0.574228823184967,
-0.7625097036361694,
0.3897852897644043,
-0.649681806564331,
-0.8806360960006714,
1.7891390323638916,
-1.0578597784042358,
-0.07753036916255951,
-0.5258976817131042,
-0.24797368049621582,
... |
def _ _ init _ _ ( self, win ) : # draw the base shot of the launcher base = circle ( point ( 0, 0 ), 5 ) base. setfill ( " black " ) base. setoutline ( " black " ) base. draw ( win ) # save the window and create initial angle and velocity self. win = win self. angle = radians ( 45. 0 ) self. vel = 55. 0 # create inita... | [
0.3847039043903351,
-0.6738023161888123,
0.744161069393158,
0.6182333827018738,
-0.26997193694114685,
0.16485407948493958,
0.023344630375504494,
-0.11481519788503647,
0.5116992592811584,
-0.3740748167037964,
-0.6928897500038147,
0.9608938694000244,
0.16778570413589478,
1.2560949325561523,
... |
def minus ( self, * args ) : return _ snap. ttable _ minus ( self, * args ) | [
-1.5613001585006714,
0.4073275625705719,
0.5989140868186951,
0.773597776889801,
-0.06248961016535759,
1.0752166509628296,
0.5779885053634644,
-0.23969854414463043,
-0.8138099908828735,
-0.6206493377685547,
-0.4903169274330139,
-1.1523159742355347,
0.023226650431752205,
0.9786866903305054,
... |
def _ tensordot _ reshape ( a, axes, flipped = false ) : if a. get _ shape ( ). is _ fully _ defined ( ) and isinstance ( axes, ( list, tuple ) ) : shape _ a = a. get _ shape ( ). as _ list ( ) axes = [ i if i > = 0 else i + len ( shape _ a ) for i in axes ] free = [ i for i in builtins. range ( len ( shape _ a ) ) if ... | [
-0.3600868880748749,
0.02256334386765957,
0.8324021100997925,
-0.8081425428390503,
-0.9351822733879089,
-0.40090271830558777,
1.3866208791732788,
-0.04767456650733948,
0.6848330497741699,
0.8663586378097534,
0.18627336621284485,
0.3089011609554291,
0.9552896022796631,
-1.148099660873413,
... |
def possible _ alignments ( board, ships, reduce = false ) : # board in which to store the alignments. alignments = np. zeros ( ( len ( board ), len ( board [ 0 ] ) ), dtype = int ) # a dict of coordinates and their valid ship alignments. maps as follows { coordinate : set ( ship _ 1, ship _ 2, ship _ 3,... ) } # where... | [
-0.7329790592193604,
1.0556800365447998,
0.7254574298858643,
-0.18648383021354675,
-0.42614755034446716,
-0.6277288198471069,
0.6501818299293518,
0.7065480947494507,
0.2173672467470169,
0.055123452097177505,
0.5286794304847717,
-0.04012538865208626,
0.18239468336105347,
-0.4151413440704345... |
def upload ( self, filename : str, parent _ folder : str = none ) - > none : if not path. exists ( filename ) : print ( f " specified filename { filename } does not exist! " ) return file _ params = { " title " : filename. split ( " / " ) [ - 1 ] } if parent _ folder : file _ params [ " parents " ] = [ { " kind " : " d... | [
-0.6810737252235413,
-0.07740667462348938,
0.877634584903717,
0.22999818623065948,
1.1665375232696533,
0.603799045085907,
0.25467902421951294,
0.8575076460838318,
-1.4400677680969238,
-0.3170054256916046,
0.7357783913612366,
0.36180928349494934,
-0.7129577994346619,
0.7092477083206177,
0... |
def add _ special _ tokens _ ( model, tokenizer ) : orig _ num _ tokens = len ( tokenizer ) # len ( tokenizer. encoder ) # print ( len ( tokenizer ) ) num _ added _ tokens = tokenizer. add _ special _ tokens ( attr _ to _ special _ token ) # doesn't add if they are already there # print ( num _ added _ tokens ) # print... | [
-0.5462156534194946,
0.3988746106624603,
0.7072710990905762,
0.15002387762069702,
-0.8002950549125671,
-0.22940577566623688,
-0.06495913118124008,
0.8968547582626343,
0.3782157003879547,
-0.308441698551178,
-0.6649119257926941,
0.011111240833997726,
0.5983915328979492,
0.9853025674819946,
... |
def test _ calculate _ spend _ cost _ basis _ 1 _ buy _ consumed _ by _ 1 _ sell ( accountant ) : asset = a _ btc cost _ basis = accountant. pots [ 0 ]. cost _ basis asset _ events = cost _ basis. get _ events ( asset ) asset _ events. acquisitions _ manager. add _ acquisition ( assetacquisitionevent ( amount = fval ( ... | [
0.3477814793586731,
-0.3449188768863678,
0.703291654586792,
0.5492873787879944,
0.7058482766151428,
-0.33845779299736023,
1.2201509475708008,
-0.7447841167449951,
0.3926382064819336,
0.2086409479379654,
-0.013494223356246948,
-0.04329078271985054,
0.22874724864959717,
0.11977426707744598,
... |
def create _ time ( self ) - > str : return pulumi. get ( self, " create _ time " ) | [
0.6454936861991882,
0.06751351058483124,
0.40807706117630005,
-0.11018916964530945,
1.4205042123794556,
1.375701665878296,
-0.8654231429100037,
-0.4164420962333679,
-0.32638436555862427,
1.0753203630447388,
-0.0800967812538147,
0.009313168004155159,
0.45627692341804504,
-0.7759039402008057... |
def list _ to _ scope ( scope ) : if isinstance ( scope, unicode _ type ) or scope is none : return scope elif isinstance ( scope, list ) : return " ". join ( [ unicode _ type ( s ) for s in scope ] ) else : raise valueerror ( " invalid scope, must be string or list. " ) | [
-0.8244680166244507,
0.04047328606247902,
0.5033748745918274,
-0.4835157096385956,
0.5236536860466003,
-0.7240777015686035,
-0.6980323195457458,
0.20109185576438904,
0.8160102367401123,
1.4353147745132446,
-0.31897038221359253,
0.9901949167251587,
-0.5877609252929688,
0.41075655817985535,
... |
def getidvsattrn ( self, * args ) : return _ snap. tneanet _ getidvsattrn ( self, * args ) | [
-1.3298883438110352,
0.35441359877586365,
0.38514244556427,
0.24076896905899048,
0.3292617201805115,
-0.759445309638977,
-0.14115266501903534,
-0.364825963973999,
0.5559443235397339,
-0.5624421238899231,
-0.06473854929208755,
-0.2679498791694641,
-0.2305709421634674,
0.4465705156326294,
... |
def testrecreateconsumeraftertruncate ( self ) : self. sf. produce ( [ self. e1, self. e2, self. e3 ] ) self. sf. addconsumer ('a') stream1 = self. sf. consume ('a') self. assertequal ( self. e1, stream1. next ( ) ) stream1. commit ( ) self. sf. removeconsumer ('a') self. sf. addconsumer ('b') stream2 = self. sf. consu... | [
0.8041850328445435,
-0.1572159081697464,
0.8657702803611755,
-0.03103497251868248,
1.2848100662231445,
-0.5717848539352417,
0.9233641028404236,
-0.21075871586799622,
-0.5487765669822693,
0.8623565435409546,
-0.3286779224872589,
0.7936394810676575,
-0.8462367653846741,
0.14483454823493958,
... |
def oob _ cut _ multi ( x _ y _ z _ r _ array, mask _ checker, cut _ pct, pts _ per _ unit _ volume, num _ surf _ pts, num _ cpus, batch _ size = 1000, verbose = 0, print _ after = 5. 0, socket _ path = " / tmp / voidfinder2. sock ", resource _ dir = " / dev / shm " ) : num _ holes = x _ y _ z _ r _ array. shape [ 0 ] ... | [
0.14941248297691345,
-0.3885152041912079,
0.883265495300293,
0.4691394865512848,
-0.16817951202392578,
0.5719415545463562,
1.0492885112762451,
-0.17963415384292603,
0.3102441430091858,
0.9862122535705566,
0.24343770742416382,
0.1376224011182785,
-0.24764111638069153,
0.22059883177280426,
... |
def test _ bad _ ioclass ( simplenode ) : simplenode. io _ class = " missing " unode = updateablenode ( none, simplenode ) assert unode. io _ class is none assert unode. io is none | [
-0.6111094355583191,
0.03377053141593933,
0.42817503213882446,
0.34529128670692444,
0.3234676718711853,
0.7526509761810303,
-0.1775733083486557,
0.41557106375694275,
-0.14855612814426422,
-0.27390849590301514,
-0.30902284383773804,
0.030842551961541176,
0.1630905270576477,
-0.5569285750389... |
def password _ generator ( length = 8 ) : chars = tuple ( ascii _ letters ) + tuple ( digits ) + tuple ( punctuation ) return " ". join ( choice ( chars ) for x in range ( length ) ) | [
-0.8267999887466431,
0.023712409660220146,
0.43227294087409973,
-0.6810070872306824,
-0.12794826924800873,
0.3678489625453949,
-0.853344738483429,
0.21260061860084534,
0.8601235747337341,
0.09501273185014725,
-0.7363352179527283,
-0.012655986472964287,
-0.44854098558425903,
-0.707486391067... |
def test _ atomic _ hex _ binary _ length _ nistxml _ sv _ iv _ atomic _ hex _ binary _ length _ 1 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - length - 1. xsd ", instance = " nistdata / atom... | [
0.2618924379348755,
-0.30659404397010803,
0.4081885516643524,
0.525478720664978,
-0.05525479465723038,
0.40686294436454773,
0.29206597805023193,
0.23073086142539978,
-0.12124893069267273,
0.5194510817527771,
-0.7503507733345032,
-0.586653470993042,
-0.10705429315567017,
0.8312584161758423,... |
def _ _ init _ _ ( self, filename ) : super ( spcfile, self ). _ _ init _ _ ( filename ) _, ext = os. path. splitext ( self. filename ) if ext. lower ( )! = ". spc " : raise spcfileparsingerror ( " file extension is incorrect : " + ext ) self. metadata = { } # read in the data self. read ( ) self. apply _ calibration (... | [
1.0750634670257568,
-0.7028997540473938,
0.6790278553962708,
0.5606635212898254,
-0.5482209324836731,
0.5067785978317261,
0.09639338403940201,
0.8401980996131897,
-0.2941664159297943,
-0.42809370160102844,
-0.09695006161928177,
-0.28650471568107605,
-0.02417059615254402,
0.2095080614089965... |
def send _ to _ index _ page ( self, org _ id ) : plugins. toolkit. redirect _ to ( " organization / metameta ", id = org _ id ) | [
-0.3781036138534546,
0.468383252620697,
0.33043771982192993,
-0.4111427962779999,
0.907985508441925,
0.4121297299861908,
0.784878671169281,
0.20716124773025513,
-0.32677000761032104,
1.1333999633789062,
-0.20266176760196686,
1.3002368211746216,
0.32370394468307495,
-0.17291514575481415,
... |
def plot _ 2d ( self, ax _ 2d : axes, * * kwargs ) - > none : _ connect _ points _ 2d ( ax _ 2d, self. point _ a, self. point _ b, * * kwargs ) | [
-0.30698996782302856,
-0.33129817247390747,
0.27850037813186646,
0.009547515772283077,
0.06757868826389313,
0.5691413879394531,
0.014544523321092129,
-0.33027684688568115,
-0.9087574481964111,
-0.7362572550773621,
0.4092658460140228,
1.5065873861312866,
1.0667027235031128,
-0.1438100337982... |
def country ( self, country ) : if country is none : raise valueerror ( " invalid value for ` country `, must not be ` none ` " ) # noqa : e501 if country is not none and not re. search ('^ [ a - z ] { 2, 2 } $ ', country ) : # noqa : e501 raise valueerror ( " invalid value for ` country `, must be a follow pattern or ... | [
-0.41903620958328247,
-0.11869724839925766,
-0.11664578318595886,
0.6422386765480042,
-0.07517366856336594,
0.7895727753639221,
1.2032349109649658,
0.3523732125759125,
0.2988618314266205,
-0.18371203541755676,
-0.45039403438568115,
0.1214291900396347,
-0.25309354066848755,
0.69451999664306... |
def query _ checkpoint _ info ( self, check _ point _ id _ range = none, check _ point _ time _ range = none, check _ point _ serial _ number _ range = none, check _ point _ loss _ range = none, left _ range = closed, right _ range = closed ) : arguments = {'check _ point _ id _ range': check _ point _ id _ range,'chec... | [
-0.8437180519104004,
-0.5030539631843567,
0.8197892904281616,
0.5762995481491089,
0.5145765542984009,
0.4778405427932739,
-0.02993028052151203,
-0.7475957274436951,
-0.7761802673339844,
-0.024877339601516724,
-0.9202514290809631,
-0.6418053507804871,
-0.9024938941001892,
0.0323712676763534... |
def getedgei ( self, * args ) : return _ snap. tcrossnet _ getedgei ( self, * args ) | [
0.17879988253116608,
0.9215061068534851,
0.5036815404891968,
0.8134610652923584,
0.8080700039863586,
0.3326037526130676,
0.8685781955718994,
0.663670539855957,
-0.9612579941749573,
-0.3466431200504303,
-0.5709601044654846,
-1.905677318572998,
-0.7352129220962524,
0.3794712722301483,
-0.0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.