text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def movemunit ( ws, sourcemunithandle, destmsessionhandle ) : command = " femtoapifile. movemunit ('" + str ( sourcemunithandle ) + " ','" + str ( destmsessionhandle ) + "') " simplecmdparser = ws. sendjscommand ( command ) resultcode = simplecmdparser. getresultcode ( ) if resultcode > 0 : print ( " return code : " + ... | [
-1.2842648029327393,
-0.5708649754524231,
0.4290319085121155,
-0.6293115019798279,
-0.4736410975456238,
0.13615943491458893,
-0.25050246715545654,
-0.8735970854759216,
0.10115330666303635,
-0.2872827351093292,
-0.7099159359931946,
0.6426692605018616,
-0.7811433672904968,
-0.600683689117431... |
def aggregation _ divisor ( cls, mesage ) : raise notimplementederror | [
-1.0972390174865723,
0.56412273645401,
0.6132480502128601,
0.39500999450683594,
0.02930075116455555,
0.14908337593078613,
0.6499956846237183,
-0.07843753695487976,
-0.15477213263511658,
0.2905254662036896,
0.9405391216278076,
-0.6604123711585999,
0.22145947813987732,
1.371496319770813,
-... |
def compute _ colors _ for _ labels ( labels, color _ factor = 1 ) : labels = np. asarray ( labels ) * color _ factor palette = np. array ( [ 2 * * 25 - 1, 2 * * 15 - 1, 2 * * 21 - 1 ] ) colors = labels [ :, none ] * palette colors = ( colors % 255 ). astype ( " uint8 " ) return colors | [
-1.3455955982208252,
-0.34310048818588257,
0.4047124981880188,
-0.7457572221755981,
0.4890812337398529,
0.054862815886735916,
-0.8447690606117249,
-0.22042661905288696,
0.241814523935318,
0.6120256781578064,
0.045962270349264145,
0.5958675742149353,
-0.05877595394849777,
0.2448670268058776... |
def transform _ perseus _ xml _ to _ epub _ html5 ( xml _ text, language = none, return _ as _ str = false, note _ number _ start = 1 ) : # make the function to perform the transformation text _ transformation _ fx = lambda text, parent _ node, dst _ doc : transform _ perseus _ text ( text, parent _ node, dst _ doc, la... | [
-0.030890315771102905,
0.2557390332221985,
0.6096324920654297,
0.2186819463968277,
-1.3302655220031738,
0.21464982628822327,
0.3335721492767334,
0.327070951461792,
0.3553732931613922,
0.18992450833320618,
0.3052441477775574,
-0.41241058707237244,
-0.5052168369293213,
-0.24233758449554443,
... |
def get _ back _ period ( self, seconds ) : start _ t = self. datetime. iat [ - 1 ] - pd. to _ timedelta ( seconds, unit ='s') return self. datetime > = start _ t | [
-0.3547043204307556,
0.6415181159973145,
0.8518109321594238,
0.11240636557340622,
-0.6872722506523132,
0.25151151418685913,
-0.2816510796546936,
-1.262115240097046,
-0.07122915238142014,
0.3468342125415802,
-0.043831367045640945,
0.7193881869316101,
-0.773156464099884,
-1.4229174852371216,... |
def _ _ eq _ _ ( self, * args ) : return _ snap. tintfltkd _ _ _ eq _ _ ( self, * args ) | [
-0.07299557328224182,
-0.08812054991722107,
-0.08414001017808914,
-0.1225523054599762,
0.20546407997608185,
-0.5412906408309937,
0.3522520065307617,
-0.11549001187086105,
-0.6627722382545471,
-0.012420506216585636,
-0.3540136516094208,
-0.6541580557823181,
-0.3923593759536743,
1.2081029415... |
def getbfseffdiam _ pngraph ( * args ) : return _ snap. getbfseffdiam _ pngraph ( * args ) | [
0.17687144875526428,
1.5914993286132812,
0.3246302008628845,
0.5512986779212952,
0.33690160512924194,
-0.6197082996368408,
0.41122040152549744,
-0.5467398762702942,
-0.411681592464447,
-1.2376866340637207,
-0.19022271037101746,
0.4547281265258789,
-0.21169434487819672,
0.906475305557251,
... |
def entry _ point ( dockerfile ) : checks = check _ dockerfile. check ( path ( dockerfile ) ) found _ issues = sum ( not check _ result for _, _, check _ result in checks ) for check _ title, check _ value, check _ outcome in checks : outcome = " \ 033 [ \ 033 [ 0m " if check _ outcome else " \ 033 [ \ 033 [ 0m " print... | [
0.36293402314186096,
-0.4866272211074829,
0.8106063604354858,
0.6200035214424133,
0.7423797249794006,
1.1792141199111938,
1.169945240020752,
0.17594659328460693,
-0.6124706268310547,
-0.09053037315607071,
0.5917377471923828,
0.027217280119657516,
0.24255086481571198,
0.6498889923095703,
... |
def tcncom _ dump ( * args ) : return _ snap. tcncom _ dump ( * args ) | [
-0.6001390814781189,
0.9442406892776489,
0.11141625791788101,
-0.5598067045211792,
0.3654659688472748,
-0.023383144289255142,
0.9486439228057861,
0.3326493799686432,
-0.23546427488327026,
-0.07024716585874557,
-1.0786666870117188,
-1.2058053016662598,
-0.16131140291690826,
0.81869548559188... |
def one _ obj _ step ( self, step _ size, visual _ obj, locked ) : self. initialize _ ray _ sensors ( visual _ obj ) self. step ( step _ size, locked ) | [
-0.27916282415390015,
-0.08472101390361786,
0.2510358691215515,
1.3844763040542603,
0.45709115266799927,
-0.2123880386352539,
0.9206627607345581,
-0.7115468382835388,
0.5520889163017273,
-0.40403449535369873,
-1.3688280582427979,
0.034669965505599976,
0.0376245342195034,
0.3890430629253387... |
def replay ( plan _ file, juju _ data, juju _ bin ) : with open ( plan _ file ) as f : plan = yaml. safe _ load ( f ) with checked _ client ( juju _ bin, juju _ data ) as client : run _ plan ( plan, client ) | [
0.6771602630615234,
-0.012492106296122074,
0.2864838242530823,
0.11857321858406067,
0.011163436807692051,
0.37889721989631653,
0.20240053534507751,
0.5473710894584656,
-1.1841901540756226,
0.5157639980316162,
-0.5464444160461426,
1.1629682779312134,
-0.09708047658205032,
-1.34491765499115,... |
def time _ till _ ps _ station ( self, stat _ id : int ) - > int : time = 0 # cur _ stat = stat _ id flag = false for i, sa in enumerate ( self. station _ ids [ : - 1 ] ) : if sa = = stat _ id : flag = true break time + = self. system. distance _ map ( ) [ ( self. station _ ids [ i ], self. station _ ids [ i + 1 ] ) ] ... | [
-0.38304123282432556,
-0.662686824798584,
0.5764455199241638,
0.07385489344596863,
-0.02216835506260395,
0.03734183683991432,
0.4411802291870117,
-0.5145248770713806,
0.022817377001047134,
0.8978694081306458,
-0.3596522808074951,
-0.021789610385894775,
-0.5389755964279175,
0.57524323463439... |
def getbf ( self, * args ) : return _ snap. tchain _ getbf ( self, * args ) | [
0.3946404457092285,
1.2563141584396362,
0.3929388225078583,
1.3273249864578247,
2.4240658283233643,
-0.6538057327270508,
0.8834959864616394,
-0.15502531826496124,
-0.6435872912406921,
-1.330330491065979,
-0.4008021056652069,
-0.07425699383020401,
-1.37755286693573,
0.6834126710891724,
1.... |
def os _ cache ( project ) : return path ( platformdirs. user _ cache _ dir ( project ) ) | [
-0.061908748000860214,
0.7693660259246826,
0.3086937963962555,
1.0917733907699585,
-0.7053082585334778,
1.4039002656936646,
1.1407979726791382,
-0.3670150339603424,
-0.6936678886413574,
0.26666519045829773,
0.702846109867096,
0.007539582904428244,
0.015170827507972717,
-0.32296526432037354... |
def undistortimage ( img, mtx, dist ) : return cv2. undistort ( img, mtx, dist, none, mtx ) | [
0.04711195081472397,
-0.0905977338552475,
0.18478357791900635,
-0.9672367572784424,
-0.7467411160469055,
-0.15095901489257812,
-0.6945599317550659,
0.7203014492988586,
0.17248375713825226,
0.26543569564819336,
0.38114431500434875,
-0.10873614996671677,
0.21917064487934113,
-0.8629909157752... |
def get _ earnings _ dates ( stock _ symbol : str, last : int = 4 ) - > list [ str ] : dates : list [ str ] = [ ] r = requests. get ( f'https : / / www. optionslam. com / tv / marks? symbol = { stock _ symbol }') try : timestamps = r. json ( ) ['time'] [ : last ] except ( json. decoder. jsondecodeerror, keyerror ) : re... | [
-0.8161759972572327,
0.7764752507209778,
0.8654529452323914,
0.04373447597026825,
0.820665717124939,
-0.3986797034740448,
-1.1611616611480713,
-0.11824088543653488,
1.1070681810379028,
0.8547655940055847,
0.09284205734729767,
0.2427157461643219,
0.3533189594745636,
0.6278823018074036,
-0... |
def get _ variable _ parameters ( sas _ text, respondents _ dict ) : std _ sas _ text = sas _ text. split ( " \ n " ) label _ index = std _ sas _ text. index ( " * label statements ; " ) value _ index = std _ sas _ text. index ( " * value statements ; " ) # get descriptions variable _ parameters = { } for row in std _ ... | [
0.9091103672981262,
-0.11817639321088791,
0.5718403458595276,
-1.254478096961975,
-0.44413962960243225,
-0.19471362233161926,
-0.8878724575042725,
0.35039734840393066,
-0.1356326937675476,
1.0099411010742188,
-0.07675377279520035,
0.08761845529079437,
-0.14489957690238953,
0.08806674927473... |
def frame _ ch2 _ raw _ change ( self ) : self. frame _ ch2 _ sgm. setcurrentindex ( self. frame _ ch2 _ raw. currentindex ) self. frame _ ch2 _ flt. setcurrentindex ( self. frame _ ch2 _ raw. currentindex ) | [
-1.0933374166488647,
-1.6003522872924805,
0.41105934977531433,
-0.5988277196884155,
-0.5773727297782898,
-0.1832016408443451,
0.7969406843185425,
-0.18240922689437866,
-0.787255048751831,
-0.17333893477916718,
-1.329194188117981,
1.8466717004776,
1.2700684070587158,
-0.0019242926500737667,... |
async def fetch _ model _ run _ predictions _ by _ station _ code _ and _ date _ range ( model : modelenum, station _ codes : list [ int ], start _ time : datetime. datetime, end _ time : datetime. datetime ) - > list [ weatherstationmodelrunspredictions ] : # send the query ( ordered by prediction date. ) with app. db... | [
-0.5594642758369446,
-0.22626009583473206,
0.41845184564590454,
1.0061075687408447,
-0.15583905577659607,
0.4235657751560211,
-1.2159322500228882,
-0.19970951974391937,
-1.274664044380188,
0.4347262680530548,
0.10110531002283096,
0.8659926056861877,
0.0346854031085968,
0.7196137309074402,
... |
def _ _ init _ _ ( self, * args ) : _ snap. tstrstrhi _ swiginit ( self, _ snap. new _ tstrstrhi ( * args ) ) | [
-0.18907597661018372,
0.055301640182733536,
-0.0016191627364605665,
-0.4018203914165497,
0.24237564206123352,
-0.049450453370809555,
0.5787107348442078,
0.05393503978848457,
-1.0134294033050537,
-0.38644254207611084,
-1.1513993740081787,
-0.7594184875488281,
-0.7390713691711426,
0.08670007... |
async def test _ socks5 _ request _ incorrect _ auth ( ) : network _ backend = httpcore. asyncmockbackend ( [ # v5 username / password b " \ x05 \ x02 ", # v1 invalid username / password b " \ x01 \ x01 ", ] ) async with httpcore. asyncsocksproxy ( proxy _ url = " socks5 : / / localhost : 8080 / ", proxy _ auth = ( b "... | [
-0.611351728439331,
0.49446335434913635,
0.4254317879676819,
0.4526176452636719,
0.1527630090713501,
-0.0408635288476944,
-0.09009017795324326,
-0.1552344113588333,
-0.19326433539390564,
-0.14327861368656158,
0.29227113723754883,
0.3034663796424866,
-0.602806568145752,
-0.00276113394647836... |
def test _ as _ index ( self ) : assert _ equal ( _ as _ pairs ( [ 2. 6, 3. 3 ], 10, as _ index = true ), np. array ( [ [ 3, 3 ] ] * 10, dtype = np. intp ) ) assert _ equal ( _ as _ pairs ( [ 2. 6, 4. 49 ], 10, as _ index = true ), np. array ( [ [ 3, 4 ] ] * 10, dtype = np. intp ) ) for x in ( - 3, [ - 3 ], [ [ - 3 ] ]... | [
-0.4392545521259308,
0.6293175220489502,
0.6304314136505127,
-0.2871236205101013,
0.3852805197238922,
0.38442501425743103,
0.4658743143081665,
-0.2671673893928528,
0.4094468355178833,
0.9663376212120056,
0.000005719299224438146,
-0.22096115350723267,
-0.14525938034057617,
0.052906565368175... |
def plot _ distance _ and _ expanded _ wrt _ weight _ figure ( problem _ name : str, weights : union [ np. ndarray, list [ float ] ], total _ cost : union [ np. ndarray, list [ float ] ], total _ nr _ expanded : union [ np. ndarray, list [ int ] ] ) : weights, total _ cost, total _ nr _ expanded = np. array ( weights )... | [
0.9049695134162903,
0.43094050884246826,
1.2202651500701904,
-0.22883769869804382,
-0.8044003844261169,
0.6125123500823975,
0.31775158643722534,
-0.31071358919143677,
0.6941943764686584,
0.2999509274959564,
0.2777338922023773,
0.42012953758239746,
0.40762263536453247,
0.2015182226896286,
... |
def _ _ init _ _ ( self, * args ) : _ snap. tcallbacknotify _ swiginit ( self, _ snap. new _ tcallbacknotify ( * args ) ) | [
0.7612578868865967,
0.30919840931892395,
-0.04360227286815643,
0.06782767921686172,
-0.11668050289154053,
-0.7866154313087463,
0.9315091967582703,
0.841637372970581,
-0.6595799922943115,
0.4043044149875641,
-1.3568649291992188,
-0.9621768593788147,
0.11288367956876755,
0.5914537310600281,
... |
def as _ ( self, * pairs ) : for old, new in pairs : self. alter _ name ( old, new ) return self | [
-1.1530890464782715,
-0.06418201327323914,
0.6889232993125916,
-0.4607221484184265,
-1.229591727256775,
-0.09105665236711502,
-0.5847862362861633,
-0.1332797110080719,
-0.1431552916765213,
0.04315757751464844,
-0.4937033951282501,
-0.25701233744621277,
0.3911159038543701,
0.630736231803894... |
def test _ collections _ userstuff ( self ) : from collections import userdict from collections import userlist from collections import userstring self. asserttrue ( true ) | [
0.514814019203186,
0.31370437145233154,
0.2062636911869049,
0.043097179383039474,
0.46473032236099243,
1.7242716550827026,
0.7884737849235535,
-0.16222967207431793,
0.5893042087554932,
-0.4332563877105713,
-1.6149513721466064,
0.1309727430343628,
-0.2829163074493408,
-0.6965376734733582,
... |
def assertclientheaders ( self, client, client _ meta _ info ) : headers = client. _ client _ headers header _ value = base64. b64encode ( client _ meta _ info. encode ( " utf - 8 " ) ) expected = requestheader ( " x - gcs - clientmetainfo ", header _ value ) found = false for header in headers : if str ( expected ) = ... | [
0.2246774584054947,
-0.2952759265899658,
0.5394765734672546,
-0.03379401937127113,
0.4597492516040802,
0.6018028855323792,
-0.5203753113746643,
-1.2998651266098022,
-0.7626848220825195,
-0.22575631737709045,
0.4581311345100403,
0.15162114799022675,
-0.7693728804588318,
-0.24832382798194885... |
def msg _ crc16 ( msg : bytes ) - > int : crc = 0xffff for item in msg : next _ byte = item crc ^ = next _ byte for _ in range ( 8 ) : lsb = crc & 1 crc > > = 1 if lsb : crc ^ = 0xa001 return crc | [
1.491191029548645,
0.6352730989456177,
0.6150383353233337,
-0.06711961328983307,
0.6330651640892029,
-0.4095957279205322,
0.24270492792129517,
0.24799248576164246,
-0.01883888803422451,
-0.03378504514694214,
-0.09231601655483246,
0.3799712359905243,
-1.2570024728775024,
0.8465937972068787,... |
def needed _ before _ forwards ( tree, app, name, sameapp = true ) : app _ migrations = get _ migration _ names ( app ) needed = [ ] if sameapp : for aname in app _ migrations [ : app _ migrations. index ( name ) ] : needed + = needed _ before _ forwards ( tree, app, aname, false ) needed + = [ ( app, aname ) ] for dap... | [
-0.7913336753845215,
0.525736927986145,
0.6145209670066833,
-0.3321240544319153,
-0.5246525406837463,
0.09795862436294556,
0.1401328593492508,
-0.32172253727912903,
0.3831486403942108,
1.289463996887207,
-0.6094973683357239,
-0.32440778613090515,
0.8442476987838745,
1.5884381532669067,
-... |
def forward ( self, x _ human, x _ objects, objects _ mask, human _ segmentation = none, objects _ segmentation = none, human _ human _ distances = none, human _ object _ distances = none, object _ object _ distances = none, steps _ per _ example = none, inspect _ model = false ) : num _ humans, num _ objects = x _ hum... | [
-0.16695643961429596,
0.21099694073200226,
0.7691253423690796,
0.8585797548294067,
0.12956993281841278,
-0.18318340182304382,
0.8559107184410095,
0.24473519623279572,
-0.47453704476356506,
-0.23624078929424286,
-0.4148064851760864,
0.051683180034160614,
0.5864291787147522,
-0.0628923103213... |
def test _ field _ class ( self ) : self. assertequal ( omnidurationfield. field _ class,'django. forms. durationfield') | [
0.4510294198989868,
0.5317465662956238,
0.11393669247627258,
0.11671283841133118,
1.1237595081329346,
1.5102852582931519,
-0.302183598279953,
0.030918193981051445,
0.7500498294830322,
-0.39892300963401794,
-0.58415687084198,
-0.640135645866394,
0.06031113862991333,
0.4531692862510681,
0.... |
def zeros ( self ) : self. _ newcube = true self. data = np. zeros ( self. cubesize, dtype = np. uint32 ) | [
-0.40391334891319275,
0.35799896717071533,
0.5088132619857788,
-0.5397882461547852,
1.0842242240905762,
0.562606692314148,
0.7459469437599182,
-0.061266642063856125,
-0.5258117914199829,
-0.8488541841506958,
-0.6878556609153748,
1.6817666292190552,
-0.5208626985549927,
0.5181866884231567,
... |
def _ _ idiv _ _ ( self, * args ) : return _ snap. tflt _ _ _ idiv _ _ ( self, * args ) | [
-0.7896076440811157,
0.10706906765699387,
0.2876984179019928,
0.13373030722141266,
0.08410964906215668,
0.6383277773857117,
1.1637846231460571,
-0.02613206021487713,
-1.5446462631225586,
-0.19657203555107117,
-0.7724780440330505,
-1.227766990661621,
-0.6612702012062073,
0.24795109033584595... |
def converge ( self, instance _ data ) : self. wait _ for _ ready ( instance _ data ) if self. copy _ from : invoke ( self. _ build _ rsync _ cmd ( instance _ data ) ) for pc in self. commands : invoke ( self. _ build _ ssh _ cmd ( instance _ data, " % s " % pc ) ) | [
-0.27922454476356506,
-0.35474643111228943,
0.4446742534637451,
0.4770604074001312,
0.8244293928146362,
0.47795218229293823,
0.155429869890213,
0.17165446281433105,
-0.37357670068740845,
-0.2879103124141693,
0.4494296908378601,
0.2799836993217468,
0.10237151384353638,
0.40476661920547485,
... |
def add _ number ( self, number ) : if self. reset _ current : self. current _ input = " " self. reset _ current = false self. current _ input + = str ( number ) self. update _ input ( ) | [
-1.043486475944519,
0.07551077008247375,
0.6765052676200867,
0.350636750459671,
0.1621294468641281,
0.912727415561676,
0.7620514035224915,
-0.19726185500621796,
0.9710781574249268,
-0.572709858417511,
-0.1381618082523346,
0.6323034167289734,
-0.5188680291175842,
-0.21259494125843048,
1.1... |
def f _ clvd ( self ) : ( v, d ) = self. eig ( ) d - = np. sum ( d ) / 3 # get deviatoric return - 1. 0 * d [ 1 ] / max ( [ abs ( d [ 0 ] ), abs ( d [ 2 ] ) ] ) | [
0.10892581194639206,
0.545367419719696,
0.4801676273345947,
0.5108607411384583,
-0.3733229637145996,
0.2852362096309662,
-0.31308600306510925,
0.22241345047950745,
-0.23998622596263885,
-0.2948462665081024,
0.6626200079917908,
0.07922393083572388,
0.8295632600784302,
0.5986276268959045,
... |
def pan ( ) : global mess message = toplevel ( img _ win ) message. title ('enter message') message. resizable ( false, false ) message. wm _ iconbitmap ('images / l2. ico') lm = label ( message, text ='enter your message that you want to hide : ', bg ='yellow ', font = cas ) lm. pack ( side = top, fill = both ) ho. cr... | [
0.3570905327796936,
0.1153569296002388,
0.786895215511322,
0.4067705273628235,
-0.4895665943622589,
0.8515232801437378,
1.317733645439148,
-0.5431205034255981,
-0.3523992896080017,
-0.5046852827072144,
-0.507291853427887,
0.6958230137825012,
-0.8563857078552246,
0.781254231929779,
1.2400... |
def set _ normal _ free _ energy ( self ) : self. eps _ base = self. mu _ eps + self. normal _ eps _ tuning _ prefactor * \ sp. exp ( - ( 1. * sp. arange ( self. mm ) ) * * 2. 0 / ( 2. 0 * \ self. normal _ eps _ tuning _ width ) * * 2. 0 ) self. eps _ base + = random _ matrix ( self. mm, params = [ 0, self. sigma _ eps... | [
-0.24186238646507263,
0.5230052471160889,
0.5883729457855225,
-0.23849201202392578,
-1.5570895671844482,
0.009003891609609127,
0.4888201355934143,
-0.11644670367240906,
0.4026370048522949,
0.09163929522037506,
0.30087950825691223,
0.5796788334846497,
-0.21491537988185883,
0.154414951801300... |
def test _ atomic _ base64 _ binary _ enumeration _ 2 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ enumeration _ 3 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - enumeration - 3. xsd ... | [
-0.36613985896110535,
-0.45135563611984253,
0.5566786527633667,
1.0341178178787231,
-0.008243418298661709,
0.4236142039299011,
0.32285499572753906,
-0.0613141804933548,
-0.2504696547985077,
0.9651122093200684,
-0.8770325183868408,
0.18233518302440643,
-0.39227649569511414,
-0.1345134526491... |
def md5 ( string : str ) - > str : return md5 ( string. encode ( ) ). hexdigest ( ) | [
0.5435397624969482,
-0.6535611152648926,
0.164336696267128,
-0.6910901069641113,
-1.2439708709716797,
0.36202171444892883,
0.39743226766586304,
-0.134741872549057,
-0.3848295509815216,
-0.20184820890426636,
0.022241245955228806,
0.0690382570028305,
-0.09836047887802124,
-0.878392219543457,... |
def get _ external _ links ( soup, exclude _ url ) : external _ links = [ ] try : # chiet xuat domain trang web tu exclude _ url url _ parse = urlparse ( exclude _ url ) exclude _ url = url _ parse. netloc for link in soup. find _ all ('a ', href = re. compile ('^ ( http | www ) ( (?!'+ exclude _ url +'). ) * $') ) : i... | [
-0.11352316290140152,
0.487824410200119,
1.0136394500732422,
0.962371826171875,
-0.34954577684402466,
0.5665441155433655,
0.19438475370407104,
0.821683406829834,
0.4837667644023895,
0.04260069131851196,
-0.544547438621521,
0.6785764098167419,
-0.9085102081298828,
0.7488275766372681,
0.95... |
def search _ assets ( session : session, verbose : bool, keys : optional [ str ], title : optional [ str ], submitter : optional [ str ], sort _ by : str, descending : bool, type : list [ str ], license : list [ str ], tag : list [ str ], tag _ op : str, page _ limit : optional [ int ] ) : types = [ cli _ type _ map [ ... | [
-0.18965472280979156,
0.5417270660400391,
0.7832112908363342,
0.15624506771564484,
0.5241089463233948,
-0.49851173162460327,
-0.8714661002159119,
-1.0596553087234497,
-0.8781107664108276,
0.29890525341033936,
0.7917043566703796,
1.2783452272415161,
0.03540447726845741,
0.41290968656539917,... |
def set _ fibre _ table ( fibre _ table, bundle ='' ) : # filtering only selected ( in use ) fibres bundle _ fibres = ( fibre _ table ['probename'] = = bundle ) & ( fibre _ table ['selected'] = = 1 ) bad _ fibres = np. where ( fibre _ table ['probename']! = bundle ) [ 0 ] # update the table fibre _ table = fibre _ tabl... | [
0.409209281206131,
-0.60438472032547,
0.8594132661819458,
-0.029701652005314827,
-0.49179235100746155,
-0.7961464524269104,
-0.024641528725624084,
0.08128613978624344,
-0.0027517385315150023,
0.2573445737361908,
0.31108754873275757,
0.2602379024028778,
-0.2750687301158905,
0.49201449751853... |
def draw _ score ( self, variable _ x : list [ int ], score : list [ float ], ifsgd : bool = false ) : fig, ax = plt. subplots ( ) ax. plot ( variable _ x, score, '. -') if ( ifsgd ) : ax. set ( xlabel ='iteration ( s ) ', title ='logistic regression loss using sgd') else : ax. set ( xlabel ='epoch ( es ) ', title ='lo... | [
0.3012758195400238,
0.6424773931503296,
0.7098234295845032,
-0.38197624683380127,
-0.4171770215034485,
0.3483995497226715,
-0.49976789951324463,
-0.24903306365013123,
0.46401330828666687,
0.49156641960144043,
0.6876872777938843,
1.5071660280227661,
0.2446378618478775,
-0.5470271706581116,
... |
def plotting _ decision _ region ( x, y, classifier, resolution = 0. 01, title = " example " ) : markers = ('s ','x ','o ','^ ','v') colors = ('red ','green ','lightgreen ','gray ','cyan') cmap = listedcolormap ( colors [ : len ( np. unique ( y ) ) ] ) # plot the decision surface x1 _ min, x1 _ max = x [ :, 0 ]. min ( ... | [
0.09730729460716248,
-0.11105991899967194,
0.9293398261070251,
0.18182608485221863,
-0.4199022352695465,
0.3900142312049866,
0.7843014001846313,
0.5400394797325134,
-0.049570370465517044,
0.03558892384171486,
-0.539301872253418,
0.4416055679321289,
0.8698104023933411,
0.538322389125824,
... |
def set _ display _ timeout ( self, deck _ id : str, timeout : int ) - > none : self. state. setdefault ( deck _ id, { } ) [ " display _ timeout " ] = timeout self. dimmers [ deck _ id ]. timeout = timeout self. _ save _ state ( ) | [
0.26614344120025635,
0.3508549630641937,
0.17837747931480408,
-0.5642175078392029,
-0.7607013583183289,
-0.09240960329771042,
-0.3157755136489868,
0.6943584680557251,
0.3956560492515564,
0.8280978202819824,
-0.514202356338501,
0.78389972448349,
0.3568190038204193,
0.4096400737762451,
0.1... |
def addunique ( self, * args ) : return _ snap. schema _ addunique ( self, * args ) | [
-1.145688772201538,
0.9494946002960205,
0.7052086591720581,
1.042911171913147,
0.5492653846740723,
0.037030234932899475,
0.4958221912384033,
0.9536709785461426,
-0.5855598449707031,
-0.48151326179504395,
-0.8821350336074829,
0.18885792791843414,
-0.9851547479629517,
-0.14081917703151703,
... |
def _ transform _ arg _ paths ( self, args, kwargs ) : args = list ( args ) first _ arg = args. pop ( 0 ) if not kwargs. get ( " path " ) : if isinstance ( first _ arg, upath ) : first _ arg = self. _ format _ path ( first _ arg. path ) args. insert ( 0, first _ arg ) args = tuple ( args ) else : kwargs [ " path " ] = ... | [
-0.9833014607429504,
0.1588769108057022,
0.5452919006347656,
0.007930067367851734,
1.0078420639038086,
-0.31733500957489014,
0.032864589244127274,
0.7804452180862427,
0.07246514409780502,
1.0833779573440552,
0.7666115760803223,
-0.24224527180194855,
-0.24346940219402313,
0.646485447883606,... |
def endei ( self, * args ) : return _ snap. pungraph _ endei ( self, * args ) | [
-0.6193943023681641,
1.2954144477844238,
0.38545992970466614,
1.171550989151001,
0.9806886315345764,
-0.4779910445213318,
0.963291585445404,
0.4300236999988556,
-0.6490828990936279,
0.15733683109283447,
-1.2705726623535156,
-0.8203089833259583,
-1.9302235841751099,
-0.07175273448228836,
... |
def intattrvalueei ( self, * args ) : return _ snap. pneanetmp _ intattrvalueei ( self, * args ) | [
-0.3001895546913147,
0.19518430531024933,
0.19341787695884705,
0.36499059200286865,
0.6572385430335999,
0.9314839243888855,
0.06594288349151611,
-0.3282281458377838,
-1.2307828664779663,
0.01051283348351717,
0.0372057780623436,
-0.49963128566741943,
-1.1516871452331543,
0.7506288886070251,... |
def addv ( self, * args ) : return _ snap. pneanetv _ addv ( self, * args ) | [
-1.1702929735183716,
0.6645328402519226,
0.5051808953285217,
0.8949030041694641,
0.1859467327594757,
1.1488784551620483,
-0.12060485035181046,
-0.40141981840133667,
-0.4120217561721802,
-0.5926209688186646,
-0.34322863817214966,
-0.8079464435577393,
0.04544587433338165,
0.7905290126800537,... |
def test _ kill _ statistics _ from _ content _ unrelated _ section ( self ) : content = self. load _ resource ( self. file _ unrelated _ section ) with self. assertraises ( invalidcontent ) : killstatistics. from _ content ( content ) | [
1.5122644901275635,
-0.3616357445716858,
0.3779597580432892,
0.009338625706732273,
-0.46347880363464355,
1.545598030090332,
-0.3497968018054962,
-1.1852540969848633,
-0.3955977261066437,
-0.15302513539791107,
0.4533008933067322,
-0.2237924337387085,
0.9356930255889893,
0.34523457288742065,... |
def tint _ savefrugalint ( * args ) : return _ snap. tint _ savefrugalint ( * args ) | [
-0.9568092823028564,
-0.2788388133049011,
0.3931947946548462,
-0.2977887988090515,
0.8169049024581909,
-0.17430081963539124,
0.6973450183868408,
-0.8061163425445557,
-0.9543931484222412,
-0.13220703601837158,
-1.2594290971755981,
-0.1776336133480072,
-1.7845430374145508,
1.1159145832061768... |
def test _ cant _ retrieve _ user _ encircled _ post ( self ) : user = make _ user ( ) foreign _ user = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user ) circle = make _ circle ( creator = foreign _ user ) post = foreign _ user. create _ encircled _ post ( text = make _ fake _ post _ text ... | [
0.07354423403739929,
0.5700463056564331,
0.6842491030693054,
0.517326295375824,
0.5202202200889587,
0.8834263682365417,
0.26384419202804565,
-1.6378177404403687,
0.3106308877468109,
-0.9328518509864807,
-0.5048854947090149,
0.7482337951660156,
-0.3875584602355957,
-0.4542101323604584,
1.... |
def convertesubgraph _ pngraph _ pneanet ( * args ) : return _ snap. convertesubgraph _ pngraph _ pneanet ( * args ) | [
-1.062041997909546,
0.48259782791137695,
0.32571491599082947,
-0.2008766382932663,
-0.5440189838409424,
0.3857279419898987,
-1.2007405757904053,
-0.8551911115646362,
-0.6738944053649902,
-0.14063958823680878,
-0.9181134104728699,
-0.15221792459487915,
0.7246904373168945,
0.0166178289800882... |
def autolabel ( rects, xpos ='center') : # creates a graph comparing the average coh tyoe count between grover # and human documents ha = {'center':'center ','right':'left ','left':'right'} offset = {'center': 0,'right': 1,'left': - 1 } for rect in rects : height = rect. get _ height ( ) ax. annotate ('{ } '. format ( ... | [
0.2667074203491211,
-0.5454628467559814,
0.6750855445861816,
-0.7367992401123047,
-0.3196925222873688,
0.9393031001091003,
0.35501131415367126,
0.5310401320457458,
-0.03186119720339775,
0.8437736630439758,
-0.2715122699737549,
0.1127297654747963,
0.8463983535766602,
-0.2931998074054718,
... |
def _ _ init _ _ ( self, default _ action = scmp _ act _ allow ) : assert is _ available ( ) self. filter = _ lib. seccomp _ init ( default _ action ) # by default, a seccomp filter only allows syscall that match the native # architecture, but we also want to allow some other architectures and add the # appropriate fil... | [
0.7956926226615906,
-0.20145843923091888,
0.5031918287277222,
1.1006841659545898,
0.413207471370697,
0.08773858100175858,
1.1320123672485352,
0.1799420714378357,
0.6244933009147644,
-0.1478050798177719,
-0.4225015938282013,
0.47409993410110474,
0.17594332993030548,
0.22771136462688446,
0... |
def show _ frames ( reader, rects ) : i = 0 for i in range ( 7000, 7017, 8 ) : frame = reader. get _ data ( i ) # frame = reader. get _ data ( i ) # show _ image ( frame, i ) show _ frame ( frame, rects ) | [
-0.2883354723453522,
0.3860987424850464,
0.3047731816768646,
-0.541536271572113,
-0.1500825732946396,
-0.9855524301528931,
0.6846264004707336,
-0.36901408433914185,
0.8429834842681885,
0.0033603080082684755,
0.633182942867279,
-0.08968982845544815,
0.5333116054534912,
0.6446222066879272,
... |
def load ( cls, model _ path : text, interpreter : optional [ naturallanguageinterpreter ] = none, generator : union [ endpointconfig, naturallanguagegenerator ] = none, tracker _ store : optional [ trackerstore ] = none, action _ endpoint : optional [ endpointconfig ] = none, model _ server : optional [ endpointconfig... | [
0.23629474639892578,
-0.683650553226471,
0.545876145362854,
0.05786506459116936,
-0.4476796090602875,
0.25719571113586426,
-0.0538729727268219,
0.11000674217939377,
0.2345588058233261,
-0.3345845937728882,
-0.03225405886769295,
-0.11188919097185135,
-0.14823752641677856,
-0.336130946874618... |
def new ( * args ) : return _ snap. tneanet _ new ( * args ) | [
-0.7946200966835022,
-0.2662561237812042,
0.308327853679657,
-0.6964457631111145,
-0.1234586238861084,
0.42539042234420776,
0.07897727191448212,
-0.8233581781387329,
-1.297211766242981,
-0.19558538496494293,
0.14561915397644043,
-1.5554465055465698,
1.1466799974441528,
0.7252578139305115,
... |
def isintattrdeletedn ( self, * args ) : return _ snap. tneanet _ isintattrdeletedn ( self, * args ) | [
-1.0989326238632202,
0.24495147168636322,
0.4638214111328125,
-0.6417720913887024,
0.28374120593070984,
-0.5635406970977783,
-0.5174292325973511,
-0.2975226044654846,
0.1871086210012436,
-0.2808171808719635,
-0.38319242000579834,
-0.521761417388916,
-1.0145505666732788,
0.28254929184913635... |
def keypoints ( self, clean _ keys = [ ] ) : matches = self. matches # build up a composite mask from all of the user specified masks if clean _ keys : matches, _ = self. _ clean ( clean _ keys ) # now that we know the matches, build a pair of dataframes that are the truncated keypoints s _ kps = self. source. keypoint... | [
-0.9536261558532715,
0.2885574996471405,
0.31533241271972656,
0.4803575575351715,
-0.08008813112974167,
-0.2610054612159729,
0.06937755644321442,
0.3673049807548523,
0.24735595285892487,
0.9530472755432129,
-0.19235971570014954,
0.05278526619076729,
0.02510371431708336,
-1.1437546014785767... |
def create _ product ( self, request : servicecatalog _ 20210901 _ models. createproductrequest, ) - > servicecatalog _ 20210901 _ models. createproductresponse : runtime = util _ models. runtimeoptions ( ) return self. create _ product _ with _ options ( request, runtime ) | [
-1.475824236869812,
0.32887575030326843,
0.2524837553501129,
0.29712024331092834,
0.8989308476448059,
0.8073945045471191,
0.009297455660998821,
-2.1049180030822754,
0.5328596234321594,
-0.5380390286445618,
-0.03975857049226761,
0.3230225443840027,
-0.5504201650619507,
0.20139557123184204,
... |
def topic ( self ) : return self. config. get ('topic ','' ). replace ( " ", " / " ). lower ( ) if self. config. get ('topic') is not none else f'{ namespace } / { self. id } ' | [
0.4851800203323364,
-0.48548623919487,
0.29272234439849854,
0.2060537338256836,
0.4771779179573059,
0.7463865280151367,
-0.5698978304862976,
-0.6395578384399414,
0.19736884534358978,
0.0174369178712368,
1.4024958610534668,
0.04135310649871826,
-0.13483121991157532,
0.2838847041130066,
-0... |
async def _ async _ start _ long _ polling ( self ) : if self. _ long _ poll _ task is none : try : await self. _ api. subscribe ( sub _ type = subtype. long _ poll ) except reolinkerror as err : # make sure the long _ poll _ task is always created to try again later if not self. _ lost _ subscription : self. _ lost _ ... | [
0.5552282333374023,
0.47005367279052734,
0.6035923361778259,
0.5945582389831543,
0.5766143798828125,
-0.0318530797958374,
-0.7713412642478943,
0.07323507219552994,
0.8110467195510864,
0.024585915729403496,
-0.574876606464386,
0.4029883146286011,
0.8053525686264038,
0.42295077443122864,
-... |
def command _ metrics ( self, brain, args ) : # # xxx wow, does this need work... if not args : users = ['asmall ','jmanning ','pettit ','rwalsh'] else : users = args today = datetime. date. today ( ) ( y1, m1, d1 ) = ( today. year, today. month, today. day ) weekago = today - datetime. timedelta ( weeks = 1 ) ( y2, m2... | [
-0.1972394436597824,
0.251589298248291,
0.8857020735740662,
0.3882450759410858,
0.49802330136299133,
-0.14315159618854523,
0.49886608123779297,
-0.33366623520851135,
-0.21969106793403625,
0.42604270577430725,
0.4469623565673828,
0.22051256895065308,
-0.512262225151062,
0.8778374195098877,
... |
def test _ parameter _ check _ sim _ dict ( ) : with pytest. raises ( typeerror ) : parameter _ check ( [ ], sim = true ) | [
0.29119378328323364,
1.4406076669692993,
0.4063573479652405,
0.77126145362854,
0.3271563649177551,
0.6035822033882141,
-0.0581691600382328,
0.40409135818481445,
0.4439316689968109,
1.3250175714492798,
-0.4308280944824219,
0.35338887572288513,
-0.5291814804077148,
0.6165932416915894,
-0.2... |
def encode _ one _ hot ( target, num _ classes ) : one _ hot = target. new _ zeros ( target. size ( 0 ), num _ classes ) one _ hot = one _ hot. scatter ( 1, target. unsqueeze ( 1 ), 1 ) return one _ hot. float ( ) | [
-0.9661632180213928,
0.020706750452518463,
0.2716478109359741,
0.331679105758667,
0.27716413140296936,
-0.272344708442688,
-0.10955160111188889,
-0.0912080779671669,
1.0537400245666504,
0.1583290547132492,
0.11816567927598953,
0.9348703026771545,
-0.0005120668211020529,
0.0566272996366024,... |
def hist _ 1ftr _ 1grp ( df, group, feature ) : traces = [ ] for gr in getattr ( df, group ). unique ( ) : traces. append ( plotly. graph _ objs. histogram ( x = df [ df [ group ] = = gr ] [ feature ], opacity = 0. 75, name = f " group : { gr } " ) ) layout _ comp = plotly. graph _ objs. layout ( title = f'count of { f... | [
0.19640986621379852,
0.8657792210578918,
0.5366339087486267,
-0.5132946968078613,
-0.271923691034317,
-0.31823045015335083,
1.1203893423080444,
-0.2874288856983185,
-0.804814875125885,
-0.14083221554756165,
0.6713113188743591,
0.6062394380569458,
0.19497886300086975,
0.6065905094146729,
... |
def docp ( src, dest, onsky = true, verbose = false ) : # read fits header f = pf. open ( src ) hdr = f [ 0 ]. header f. close ( ) # get object and domest keywords obj = hdr ['object'] dome = hdr ['domest'] # record copies ncp = 0 # was a standard star observation copied? nstd = 0 # was a science object copied nobj = 0... | [
-0.3099548816680908,
-0.21972684562206268,
0.8484472632408142,
-0.60128253698349,
-0.45640331506729126,
0.7355726361274719,
0.6867886781692505,
-0.11928797513246536,
0.03815004229545593,
0.5997264385223389,
0.6580274701118469,
0.3841923773288727,
-0.30725276470184326,
0.6003326773643494,
... |
def plot _ table _ stats _ all _ in _ one ( cursor, satellite, sdate, edate ) : channel _ list = get _ channel _ list ( ) for channel in channel _ list : if channel = ='ch1'or channel = ='ch2'or channel = ='ch3a': mean _ range = [ 0. 0, 0. 30 ] else : mean _ range = [ 230., 300. ] # ( 1 ) all in one : initialize plot (... | [
0.3033903241157532,
0.12669341266155243,
0.8371996879577637,
-0.18204964697360992,
-0.05986417829990387,
0.31553512811660767,
0.15363077819347382,
-0.8340417146682739,
-0.3161572515964508,
0.2553524672985077,
0.3080295920372009,
0.713411271572113,
0.4883573651313782,
0.7227413654327393,
... |
def test _ international ( ) : s = base. copy ( ) # todo assert s. _ specific _ matchup ( s. get _ matchup _ index ( " oakland raiders ", " seattle seahawks " ), nflschedule. london _ games [ 0 ] ) = = 0 assert s. _ specific _ matchup ( s. get _ matchup _ index ( " los angeles chargers ", " tennessee titans " ), nflsch... | [
-0.45671212673187256,
0.5769628286361694,
0.7942671775817871,
-0.2490084171295166,
0.7741119861602783,
0.4094969630241394,
0.11991100758314133,
0.24227853119373322,
-0.3245883882045746,
0.12296894937753677,
-0.24968159198760986,
0.012169369496405125,
-0.07977250963449478,
-1.07379019260406... |
def aiosnow _ session ( loop ) : # type : ignore sessions = [ ] async def go ( app, server _ kwargs = none, * * kwargs ) : # type : ignore server _ kwargs = server _ kwargs or { } server = test _ utils. testserver ( app, loop = loop, * * server _ kwargs ) client = testclient ( server, basic _ auth = ( " a ", " b " ), r... | [
-0.4411866366863251,
-0.4333077371120453,
0.5226221680641174,
-0.21468783915042877,
0.30535438656806946,
-0.3928203582763672,
0.3720969259738922,
-1.2613173723220825,
0.4188552796840668,
0.16335278749465942,
-0.455775648355484,
0.09639106690883636,
0.10226498544216156,
-0.15512296557426453... |
def word _ dropout ( tokens, dropout ) : return [ constant. unk _ id if x! = constant. unk _ id and np. random. random ( ) < dropout else x for x in tokens ] | [
-0.027024462819099426,
-0.4570285379886627,
0.3632923364639282,
-0.35182079672813416,
-0.4016890227794647,
0.9629826545715332,
-0.8122906684875488,
0.39854729175567627,
0.5622249841690063,
1.4888519048690796,
-0.42276373505592346,
0.3283061981201172,
-0.7608561515808105,
0.4217527508735657... |
def tfout _ new ( * args ) : return _ snap. tfout _ new ( * args ) | [
-0.24125099182128906,
-0.6148422956466675,
0.15781129896640778,
-0.7134199142456055,
-0.4472215473651886,
-0.7090679407119751,
0.9584064483642578,
0.05922814458608627,
-2.1857874393463135,
0.03649144992232323,
-0.2781606912612915,
-1.4980189800262451,
0.8283512592315674,
1.0953389406204224... |
def menutext ( self ) : return " fullerene builder " | [
0.13021928071975708,
-0.8656848073005676,
0.12113957852125168,
0.8372446894645691,
-0.2467692643404007,
0.5517569780349731,
-0.023822132498025894,
0.6179988384246826,
0.8527777194976807,
-0.6426798105239868,
-0.8916078805923462,
-0.15019795298576355,
-0.07745575904846191,
0.001179463579319... |
def test _ cant _ retrieve _ draft _ follower _ user _ post ( self ) : user = make _ user ( ) follower _ user = make _ user ( ) follower _ user. follow _ user ( user = user ) post = follower _ user. create _ public _ post ( text = make _ fake _ post _ text ( ), is _ draft = true ) url = self. _ get _ url ( post = post ... | [
0.589307963848114,
0.9801415205001831,
0.7188383936882019,
0.718318521976471,
-0.3061143457889557,
1.1486927270889282,
-0.38361114263534546,
-0.9630411267280579,
0.2057490199804306,
-1.0935100317001343,
-0.8192006945610046,
0.5279932022094727,
-0.46616703271865845,
0.06291469931602478,
-... |
def add _ to _ booking ( request, lesson _ id ) : lesson = lesson. objects. get ( pk = lesson _ id ) quantity = int ( request. post. get ('quantity') ) redirect _ url = request. post. get ('redirect _ url') bag = request. session. get ('bag ', { } ) if lesson _ id in list ( bag. keys ( ) ) : messages. warning ( request... | [
-0.9298790693283081,
-0.47969678044319153,
0.7350748181343079,
0.9473647475242615,
0.4244611859321594,
1.2170705795288086,
-0.04313741996884346,
-0.3975743055343628,
0.3077218234539032,
-0.011359001509845257,
-0.6468424797058105,
-0.6601541042327881,
0.1452064961194992,
0.13689705729484558... |
def isempty ( cls ) : return true | [
-1.2409688234329224,
-0.655711829662323,
0.5562014579772949,
0.8624140620231628,
1.5620278120040894,
1.4138518571853638,
0.2781684696674347,
0.21824245154857635,
0.03377707675099373,
-0.14424294233322144,
-1.1528230905532837,
0.14915362000465393,
-0.5603151321411133,
-0.131938636302948,
... |
def frame _ to _ matrix ( frame ) : matrix = np. eye ( 4 ) # translation matrix [ 0, 3 ] = frame. p. x ( ) matrix [ 1, 3 ] = frame. p. y ( ) matrix [ 2, 3 ] = frame. p. z ( ) # rotation for i in range ( 0, 3 ) : for j in range ( 0, 3 ) : matrix [ i, j ] = frame. m [ i, j ] return matrix | [
-0.7509320974349976,
-0.2337227612733841,
0.6336827278137207,
-0.504253625869751,
0.5229252576828003,
-0.4784237742424011,
-0.026580698788166046,
-0.19064202904701233,
0.9840705990791321,
0.1126890480518341,
-0.7583710551261902,
-0.38350772857666016,
-0.4562222361564636,
-0.992340624332428... |
def colconcatconst ( self, * args ) : return _ snap. ptable _ colconcatconst ( self, * args ) | [
-0.04390572011470795,
-0.1405637264251709,
0.6456049680709839,
0.8662663102149963,
-0.7504480481147766,
0.8821364641189575,
0.04856115207076073,
-0.3350471258163452,
-1.1136366128921509,
0.7361433506011963,
-0.3328858017921448,
-0.5007752180099487,
0.10453832149505615,
0.7504727840423584,
... |
def _ read _ bp _ workbook ( bp _ file ) : global _ bp _ tbl _ d bp _ l = list ( ) if bp _ file is none : return bp _ l # read the workbook with best practice rules e _ buf = none try : sheet _ l = excel _ util. read _ workbook ( bp _ file, dm = 3, sheets ='active') if len ( sheet _ l ) = = 0 : e _ buf ='" active " she... | [
0.47577619552612305,
-0.228439599275589,
0.8385711312294006,
0.10474838316440582,
0.3430771827697754,
0.4981064796447754,
-0.12165497988462448,
0.5827414989471436,
-0.7166447043418884,
0.7650747299194336,
0.6956534385681152,
0.25912871956825256,
-0.41760343313217163,
0.038714807480573654,
... |
def voigt2mat ( v ) : return np. array ( [ [ v [ 0 ], v [ 5 ], v [ 4 ] ], [ v [ 5 ], v [ 1 ], v [ 3 ] ], [ v [ 4 ], v [ 3 ], v [ 2 ] ] ] ) | [
-0.2991426885128021,
-1.2564518451690674,
0.6186163425445557,
-0.8403562903404236,
0.19601084291934967,
-0.019751062616705894,
-0.29935139417648315,
0.24944552779197693,
0.7008693814277649,
0.7483238577842712,
-0.19314409792423248,
0.8440142273902893,
-0.05802041292190552,
-0.3481264114379... |
def delifin ( self, * args ) : return _ snap. tfltv _ delifin ( self, * args ) | [
-0.35628339648246765,
0.6978375315666199,
0.5816982388496399,
0.2871108055114746,
-0.2600599527359009,
0.235931396484375,
0.38583284616470337,
0.7923776507377625,
-1.0561847686767578,
-1.179142713546753,
-0.3564276397228241,
-0.14331834018230438,
-1.042901635169983,
1.2242904901504517,
-... |
def test _ moment _ default _ tz ( deftz, inp, exp ) : pytest. debug _ func ( ) nldt. moment. default _ tz ( deftz ) result = m ( inp ) assert result. epoch ( ) = = exp mexp = m ( exp ) assert result ( " % f % t ", otz = deftz ) = = mexp ( " % f % t ", otz = deftz ) assert nldt. moment. default _ tz ( ) = = deftz | [
-0.13278555870056152,
-0.05479270592331886,
0.08167651295661926,
0.7184616923332214,
0.64410001039505,
0.20326873660087585,
0.07870450615882874,
-0.316601037979126,
0.27007949352264404,
-0.19027020037174225,
-0.8414689302444458,
-1.0726017951965332,
-0.4431305527687073,
0.9803266525268555,... |
def _ _ init _ _ ( self, env _ fn, model _ fn, lr, discount, batch _ size, device, mem _ len, tau, train _ episodes, episode _ max _ steps, path ) : super ( ). _ _ init _ _ ( env _ fn, model _ fn, lr, discount, batch _ size, device, train _ episodes, episode _ max _ steps, path ) self. tau = tau self. _ _ update _ iter... | [
0.8467262387275696,
0.20822773873806,
0.45906639099121094,
0.7944422960281372,
0.5684027671813965,
0.057549986988306046,
0.07791827619075775,
0.2619931995868683,
-1.0919498205184937,
0.1894538551568985,
0.009463299065828323,
0.4711466133594513,
0.8781574368476868,
0.08170200139284134,
0.... |
def reserve ( self, * args ) : return _ snap. tdirnet _ reserve ( self, * args ) | [
-0.9110665917396545,
1.4003328084945679,
0.08422798663377762,
-0.6528332829475403,
1.17250394821167,
-0.16027234494686127,
0.4674447476863861,
-0.7392784953117371,
-0.690109372138977,
-0.8661693930625916,
-0.3788459897041321,
-1.6962655782699585,
-0.4910113215446472,
-0.15499819815158844,
... |
def main ( argv : optional [ list [ str ] ] = none, logger : optional [ logging. logger ] = none ) : # program preparation time _ stamp = datetime. now ( ). strftime ( " % y - % m - % d - - % h - % m - % s " ) # used in naming files if argv is none : parser = utilities. build _ parser ( ) args = parser. parse _ args ( ... | [
-0.405197411775589,
-0.5078045725822449,
1.06341552734375,
0.6926334500312805,
-0.008535538800060749,
0.4193251132965088,
0.9779545068740845,
0.4280138313770294,
-0.41475582122802734,
-0.3298712968826294,
-0.1883520931005478,
0.027147220447659492,
0.13440826535224915,
0.6423473358154297,
... |
def parse _ mask ( lexer, kind ) : value = 0 while true : token, tag = lexer. get _ next _ token ( peek = true ) if tag = ='int': tok _ value = parse _ literal _ number ( lexer ) else : token, tag = lexer. get _ next _ token ( ) if token not in spirv. spv [ kind ] : raise parseerror ('unknown mask value'+ token +'for'+... | [
-0.1268441379070282,
-0.09578493982553482,
0.7776603102684021,
0.4451378881931305,
-1.3334163427352905,
-0.5179874300956726,
-0.5099318027496338,
-0.32030820846557617,
-0.008111074566841125,
-0.145157128572464,
0.40431076288223267,
-0.20719316601753235,
0.2708156704902649,
0.37436005473136... |
def parsetreenode ( node, nsmap, name ) : ele = node. find ('default :'+ name, nsmap ) if ele is none : return'unknown'else : return ele. text | [
0.045341335237026215,
0.5061197876930237,
0.39053261280059814,
0.10824671387672424,
-0.008552751503884792,
-0.5800845623016357,
-0.9284411668777466,
-0.37610161304473877,
-0.31057485938072205,
0.45415619015693665,
-0.022984037175774574,
-0.7075667381286621,
-0.6628779768943787,
-0.32772740... |
def trade2trade ( self ) : return self. create _ structure ( self. _ urls ['t2t'],'symbol') | [
-0.7581015825271606,
0.5303833484649658,
0.16929611563682556,
-1.084782361984253,
0.8428658246994019,
-0.6237421631813049,
0.32315438985824585,
-1.317078709602356,
0.2617804706096649,
-0.3583410978317261,
-1.0959292650222778,
0.5001316070556641,
0.509492814540863,
-1.08634352684021,
-1.2... |
def test _ can _ unmute _ own _ post ( self ) : user = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user ) post = user. create _ public _ post ( text = make _ fake _ post _ text ( ) ) user. mute _ post _ with _ id ( post. pk ) url = self. _ get _ url ( post ) response = self. client. post ( ... | [
0.2842756509780884,
0.23418700695037842,
0.6032896041870117,
0.6080107688903809,
0.047129906713962555,
0.40366512537002563,
-0.4342484474182129,
-0.3788338899612427,
0.37990543246269226,
-0.8021482825279236,
-0.8328908681869507,
0.23073557019233704,
-0.5795422792434692,
-0.0334767512977123... |
def _ checkpoint _ exists ( self, filepath ) : if filepath. endswith ( '. h5') : return file _ io. file _ exists _ v2 ( filepath ) tf _ saved _ model _ exists = file _ io. file _ exists _ v2 ( filepath ) tf _ weights _ only _ checkpoint _ exists = file _ io. file _ exists _ v2 ( filepath + '. index') return tf _ saved ... | [
-0.5049498677253723,
-0.383590430021286,
0.37944331765174866,
0.7996053099632263,
1.3302478790283203,
0.5588723421096802,
0.7377738356590271,
0.05998006463050842,
-0.7083446979522705,
1.0361276865005493,
0.3428226709365845,
-0.9483025670051575,
0.6825603246688843,
0.5524652004241943,
-0.... |
def uc _ enabled ( self ) : return self. _ uc _ enabled | [
0.31510263681411743,
0.029009293764829636,
0.5755056142807007,
0.9303179383277893,
0.3732950985431671,
1.0727206468582153,
0.6426838040351868,
1.536193609237671,
0.7120658755302429,
-0.15257759392261505,
-1.1397926807403564,
0.16400812566280365,
-0.44228821992874146,
-0.8180668354034424,
... |
def info ( self ) : if len ( self. _ frames ) = = 0 : return { } info = self. _ frames [ 0 ]. info ( ). copy ( ) info. update ( { " precisetiming " : self. _ frametimesprecise } ) return info | [
-0.23797430098056793,
0.11519701778888702,
0.7548256516456604,
-0.47890016436576843,
-0.19223150610923767,
-0.9927417039871216,
-0.5613965392112732,
-0.7014142274856567,
-0.19872769713401794,
0.6189401149749756,
-1.1907936334609985,
-0.7317659258842468,
0.4253164529800415,
0.87235617637634... |
def delsattrdate ( self, * args ) : return _ snap. tdirnet _ delsattrdate ( self, * args ) | [
0.0273003950715065,
0.5712486505508423,
0.23031368851661682,
-1.3784866333007812,
-0.8755369186401367,
0.5831074714660645,
0.14316022396087646,
-0.24063123762607574,
-0.36067163944244385,
-0.531479001045227,
0.3236278295516968,
0.18220263719558716,
0.2022353857755661,
0.8880740404129028,
... |
def rset ( self ) : self. command _ encoding ='ascii'return self. docmd ( " rset " ) | [
0.5111192464828491,
0.5769202709197998,
0.3372030556201935,
-0.007711951155215502,
0.5823776125907898,
-0.7530666589736938,
0.05837439000606537,
-0.9780457615852356,
-0.5607560276985168,
-0.07582637667655945,
0.15597958862781525,
1.6294547319412231,
-1.032776117324829,
-0.8624610900878906,... |
def createwidgets ( self ) : fileframe = frame ( self ) peerframe = frame ( self ) rebuildframe = frame ( self ) searchframe = frame ( self ) addfileframe = frame ( self ) getinfoframe = frame ( self ) pbframe = frame ( self ) fileframe. grid ( row = 0, column = 0, sticky = n + s ) peerframe. grid ( row = 0, column = 1... | [
0.1839253455400467,
-0.08044815063476562,
1.1232359409332275,
-0.23164550960063934,
0.03526235744357109,
0.26863598823547363,
0.24603262543678284,
-0.606846809387207,
0.03647083789110184,
-1.010935664176941,
-0.644890308380127,
-0.5403482913970947,
-0.06347396224737167,
1.5719735622406006,... |
def test _ settings _ page _ doesnt _ load _ for _ logged _ out _ user ( self ) : desired _ url = reverse ('users : settings') response = self. client. get ( desired _ url ) # expect to be sent to login screen with a'next'parameter for # getting to the edit screen for the game. expected _ redirect = reverse ('users : l... | [
-1.4325740337371826,
0.6718437075614929,
0.3641011416912079,
0.03496668487787247,
0.40873485803604126,
1.0277870893478394,
0.26477864384651184,
-1.0797134637832642,
-0.060493312776088715,
-0.13951054215431213,
0.04634115472435951,
0.1654813140630722,
0.36841973662376404,
-0.546060919761657... |
def test _ editing _ own _ post _ does _ not _ create _ double _ mentions ( self ) : user = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user = user ) mentioned _ user = make _ user ( ) post _ text ='hello @'+ mentioned _ user. username post = user. create _ public _ post ( text = post _ tex... | [
0.33348414301872253,
-0.44097647070884705,
0.7281562089920044,
0.2975114583969116,
0.21058586239814758,
1.2010678052902222,
0.8161474466323853,
0.11203039437532425,
-0.5725826025009155,
-0.6094008088111877,
-1.2860175371170044,
0.0651795044541359,
-0.34889498353004456,
0.06586220860481262,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.