text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def get _ all _ tracks _ from _ artist ( self, artist, progress = progress ( ) ) : albums = self. get _ albums _ from _ artist ( artist ) n = len ( albums ) tracks = [ ] for i, album in enumerate ( albums ) : tracks _ from _ album = self. get _ tracks _ from _ album ( album ) for t in tracks _ from _ album : tracks. ap... | [
0.06490261107683182,
-0.14930762350559235,
0.8736404776573181,
0.5157991051673889,
-0.3510713577270508,
0.4065597355365753,
-0.2611524164676666,
-0.5771909356117249,
-0.6210067272186279,
0.11572437733411789,
-0.38944295048713684,
-1.266231656074524,
-0.23986756801605225,
0.5941764116287231... |
def decode ( ) : global file _ loc dec = toplevel ( master = root, bg ='# c0ed98') dec. title ('text steno - decode') dec. geometry ('480x250') dec. wm _ iconbitmap ('images / l2. ico') dec _ label = label ( dec, text ='text - stenography [ decode ] ', font = cas _ big, bg ='# c0ed98 ', fg ='# 1046b3') dec _ label. pla... | [
0.6965756416320801,
-0.8505975604057312,
1.0717999935150146,
0.12745577096939087,
-0.04073771461844444,
0.5600664019584656,
0.9248079061508179,
0.42143183946609497,
-0.3684203326702118,
-0.4217166006565094,
-0.5643644332885742,
0.28545626997947693,
0.6014735102653503,
0.41223427653312683,
... |
def getdat ( self, * args ) : return _ snap. tstrhi _ getdat ( self, * args ) | [
0.7732391953468323,
0.5374500155448914,
0.42898470163345337,
-0.5972504019737244,
1.5830472707748413,
0.45813116431236267,
0.7742015719413757,
-0.6586140394210815,
-1.5383244752883911,
-0.7496387958526611,
-0.28771230578422546,
-0.5294168591499329,
0.14884836971759796,
0.08443387597799301,... |
def is _ user _ id _ in _ session ( self ) : return'user _ id'in self. session | [
0.587998628616333,
-1.264446496963501,
0.21977336704730988,
0.7055209279060364,
0.03577844426035881,
-0.09252090007066727,
0.2729741632938385,
-0.5903257727622986,
1.1663482189178467,
0.12008699774742126,
-0.08387460559606552,
1.2697138786315918,
-0.37386250495910645,
0.3682696521282196,
... |
def scale _ x ( self ) : return self. _ scale _ x | [
-0.004103555344045162,
0.367423951625824,
0.2923281788825989,
0.07397278398275375,
-0.0672958642244339,
1.2086832523345947,
-1.0429152250289917,
-0.6017590761184692,
0.09851446002721786,
0.6624137759208679,
-0.8933956027030945,
-0.10362442582845688,
-0.16518190503120422,
-0.337471902370452... |
def unionlen ( self, * args ) : return _ snap. tintintvv _ unionlen ( self, * args ) | [
-0.7308892011642456,
0.34072184562683105,
0.22802135348320007,
1.0931693315505981,
0.38305938243865967,
0.28698045015335083,
0.23309564590454102,
0.9846261739730835,
0.4583701491355896,
-0.32478392124176025,
-0.7773721814155579,
0.3087671995162964,
-0.8899807333946228,
0.2404424101114273,
... |
def stop ( self ) : self. logger. debug ( " stop method called " ) self. scheduler _ remove ('rrdtool') self. alive = false | [
-0.30604732036590576,
-0.490963876247406,
0.3693898320198059,
-0.2849567234516144,
-0.008431009948253632,
1.3862026929855347,
0.28340959548950195,
0.6389849781990051,
-1.7628042697906494,
0.4973788559436798,
-0.4766286611557007,
0.2439495027065277,
-0.7310189604759216,
-0.12204589694738388... |
def test _ post _ parse _ query _ args ( ) : assert postcontroller. parse _ query _ args ( since _ id = none, until _ id = none, limit = none ) = = {'since _ id': none,'until _ id': none,'limit': none } assert postcontroller. parse _ query _ args ( since _ id ='1 ', until _ id = none, limit = none ) = = {'since _ id': ... | [
0.1045687198638916,
0.5939335227012634,
0.5949305891990662,
-0.48824381828308105,
0.4792427718639374,
0.19832061231136322,
-0.1788051277399063,
0.12759853899478912,
-0.591557502746582,
-0.89613276720047,
-0.36907121539115906,
-0.14349772036075592,
-0.4313706159591675,
0.37795090675354004,
... |
def get _ event _ loop ( self ) : if ( self. _ local. _ loop is none and not self. _ local. _ set _ called and isinstance ( threading. current _ thread ( ), threading. _ mainthread ) ) : self. set _ event _ loop ( self. new _ event _ loop ( ) ) assert self. _ local. _ loop is not none, ( " there is no current event loo... | [
0.6655471324920654,
-0.508118748664856,
0.4885503649711609,
-0.1185295507311821,
0.053526587784290314,
0.18031395971775055,
0.24590130150318146,
-0.501453161239624,
-0.324073851108551,
-0.11115646362304688,
0.7750298380851746,
0.27180975675582886,
-0.652216911315918,
0.32931652665138245,
... |
def _ _ init _ _ ( self, * args ) : _ snap. tintuint64hi _ swiginit ( self, _ snap. new _ tintuint64hi ( * args ) ) | [
-0.4973529279232025,
0.022403858602046967,
0.08793310075998306,
1.0356680154800415,
-0.5093857645988464,
0.5276092886924744,
-0.012417315505445004,
-0.20051871240139008,
-1.4042803049087524,
0.3842484951019287,
-0.6416233777999878,
-0.03035861626267433,
-1.1577523946762085,
0.3814374208450... |
def _ call _ with _ retry ( f : callable [ [ ], none ] ) - > none : num _ file _ attempts = 0 while num _ file _ attempts < num _ max _ attempts : try : num _ file _ attempts + = 1 f ( ) except googleclouderror as e : if num _ file _ attempts = = num _ max _ attempts : self. log. error ( " upload attempt of object : % ... | [
-0.02484041266143322,
0.19481438398361206,
0.6599661707878113,
0.20256251096725464,
-0.16250570118427277,
0.06644794344902039,
-0.2788596749305725,
-0.6858812570571899,
-0.8114897608757019,
0.6419322490692139,
0.05467020720243454,
0.3301202058792114,
0.4144459366798401,
-0.5685696005821228... |
def _ is _ single _ label _ isomorphic ( graph : nx. graph, other : nx. graph, graph _ query _ params : " graphqueryparams " ) - > bool : if graph _ query _ params. graph _ component = ='node': return iso. is _ isomorphic ( graph, other, node _ match = graph _ query _ params. get _ match _ function ( ) ) elif graph _ q... | [
-0.9111257195472717,
0.26309844851493835,
0.6318245530128479,
0.7771927714347839,
0.7563278675079346,
1.2038652896881104,
-0.3909737467765808,
-0.38194575905799866,
0.17834950983524323,
0.8196840286254883,
0.5635860562324524,
0.17743325233459473,
-0.15071545541286469,
-0.3108198344707489,
... |
def jse _ obj _ fct ( x, p _ ij, dot _ p _ ij _ log _ p _ ij, w _ cf, n, n _ components ) : x = np. reshape ( a = x, newshape = ( n, n _ components ) ) # computing the lds similarities q _ ij, log _ q _ ij = sne _ lds _ similarities _ fast ( dsm _ lds = pairwise _ dist ( x = x, metric ='sqeuclidean ', tomatrix = true )... | [
0.17590022087097168,
0.06959806382656097,
0.6316652297973633,
-0.7887682914733887,
-0.3216369152069092,
-0.8046814799308777,
0.4848976731300354,
-0.4939824640750885,
0.26119521260261536,
-0.0103212995454669,
-0.10039086639881134,
0.307651162147522,
0.6495755314826965,
-0.03649185597896576,... |
async def chat _ leave ( self, event ) : # send a message down to the client await self. send _ json ( { " msg _ type " : settings. msg _ type _ leave, " group " : event [ " group _ id " ], " buddycode " : event [ " buddycode " ], }, ) | [
0.16296307742595673,
-0.05572854354977608,
0.48933884501457214,
-0.48720642924308777,
0.8759686350822449,
-0.18279792368412018,
-0.2229219526052475,
-0.8594854474067688,
-0.7475293874740601,
0.7863369584083557,
-0.7524793744087219,
1.0484592914581299,
-1.3287111520767212,
0.478583484888076... |
def getdat ( self, * args ) : return _ snap. tfltprv _ getdat ( self, * args ) | [
-0.5226850509643555,
0.5464586019515991,
0.46322906017303467,
-1.1194353103637695,
1.4291647672653198,
0.420228511095047,
0.2816844582557678,
0.12043581902980804,
-1.2074779272079468,
-0.5556344985961914,
0.2625627815723419,
-1.2268370389938354,
-0.5818011164665222,
0.5057010054588318,
0... |
def with _ bundle _ uri ( self, uri ) : b = self. _ copy ( ) b. config ['bundle _ uri'] = uri return b | [
-0.2960816025733948,
-0.0657120943069458,
0.4689787030220032,
1.1527817249298096,
-0.8995513916015625,
0.6421812176704407,
0.4577704966068268,
0.5201985239982605,
0.14070811867713928,
-0.6507747173309326,
-0.11679569631814957,
0.008860325440764427,
-0.6593807339668274,
-0.37074294686317444... |
def checkcseconnection ( id : str ) - > str : try : r = requests. get ( f'{ host } / { id }') if r. status _ code = = 404 : # correct host, but address is wrong return http. client. responses [ r. status _ code ] except exception as e : return str ( e ) return none | [
-0.14626260101795197,
-0.34941840171813965,
0.7378924489021301,
0.23770669102668762,
0.16803136467933655,
0.03942452371120453,
-0.9122518301010132,
-0.4297539293766022,
0.2176073044538498,
0.20353658497333527,
0.4660743772983551,
0.034123290330171585,
-0.40255457162857056,
-0.2724335789680... |
def test _ detect _ faces ( self ) : fd = facedetector ('haarcascade _ frontalface _ default. xml') path = os. path. join ( self. dir,'data ','sg. jpg') img = cv2. imread ( path ) img = _ image _ to _ gray ( img ) faces = fd. detect _ face ( img ) n = len ( faces ) no. assert _ equal ( n, 2,'expected to find 2 faces! g... | [
-0.3458268344402313,
0.18389055132865906,
0.5404239892959595,
0.4716854393482208,
1.0519312620162964,
-0.008961685001850128,
0.6441748142242432,
-0.05701839178800583,
0.0723845437169075,
-1.1790426969528198,
-0.5988340377807617,
-0.04281800612807274,
0.63333660364151,
1.3032581806182861,
... |
def onnx _ subgraphs _ level ( obj ) : if isinstance ( obj, modelproto ) : return onnx _ subgraphs _ level ( obj. graph ) best = 0 for node in obj. node : for att in node. attribute : if ( att. type = = attributeproto. graph and hasattr ( att,'g') and att. g is not none ) : m = onnx _ subgraphs _ level ( att. g ) if m ... | [
0.2931155562400818,
0.7399303317070007,
0.7065284848213196,
0.9785382151603699,
-0.6610569357872009,
-0.15684036910533905,
1.1416590213775635,
-0.7590744495391846,
-0.29045599699020386,
-0.12739646434783936,
-0.5725066065788269,
0.6147940754890442,
-0.17721228301525116,
0.18309839069843292... |
def _ _ init _ _ ( self, * args ) : _ snap. tintstrprinthi _ swiginit ( self, _ snap. new _ tintstrprinthi ( * args ) ) | [
0.4102691411972046,
-0.4471437633037567,
0.27949416637420654,
0.7531524896621704,
-0.057518891990184784,
-0.490827351808548,
0.010193134658038616,
-0.016674336045980453,
-0.9656240344047546,
0.08613458275794983,
-0.296450138092041,
0.8857244253158569,
-0.5282695293426514,
0.068951219320297... |
def initialize _ all _ inputs ( ) : domain = np. repeat ( np. array ( [ [ 0, 1 ] ] ), network _ size, axis = 0 ) return np. array ( np. meshgrid ( * domain ) ). t. reshape ( - 1, network _ size ). astype ( np. int64 ) | [
-0.4551395773887634,
0.5352099537849426,
0.8821637034416199,
0.744492769241333,
1.2186932563781738,
0.14612384140491486,
0.3964848220348358,
-0.7847517728805542,
0.16995757818222046,
-0.5510009527206421,
-0.13217133283615112,
0.3469989597797394,
-0.14998549222946167,
0.8212864995002747,
... |
def combine ( list _ of _ d ) : d _ combined = { } first = list _ of _ d [ 0 ] for key in first. keys ( ) : if len ( first [ key ]. shape ) = = 1 : d _ combined [ key ] = np. hstack ( ( d [ key ] for d in list _ of _ d ) ) else : d _ combined [ key ] = np. vstack ( ( d [ key ] for d in list _ of _ d ) ) return d _ comb... | [
-0.8520776033401489,
1.0640573501586914,
0.5368900895118713,
0.6576228737831116,
0.2708074450492859,
-0.32987263798713684,
0.3200250566005707,
0.5463303923606873,
0.05453428998589516,
0.6400632858276367,
-0.16342876851558685,
-0.36268484592437744,
0.7174801230430603,
1.42438542842865,
-0... |
def maximisation ( self ) : num = np. zeros ( [ self. d, 1 ] ) den _ inv = np. zeros ( [ self. d, self. d ] ) for n in range ( self. n ) : num + = self. y [ n ] * np. vstack ( self. eu [ n ] ) den _ inv + = self. euu [ n ] self. theta = inv ( den _ inv ) @ num | [
-0.5110570788383484,
0.8303256034851074,
0.4276658892631531,
0.5034745335578918,
1.1981559991836548,
-0.28503507375717163,
0.3257213532924652,
0.43641018867492676,
-0.3564145863056183,
0.06818199902772903,
0.04257199913263321,
-0.19777698814868927,
0.6363336443901062,
0.24986673891544342,
... |
def ssgame _ updater ( self, client _ move ) : if self. game _ over ( ) = = true : return none else : self. start _ val = self. start _ val - client _ move # unassigned var self. game _ updater ( ) | [
-0.11113954335451126,
-0.7500421404838562,
0.5045164227485657,
0.23990771174430847,
-1.240029215812683,
0.24165968596935272,
-0.043869782239198685,
-0.6448081731796265,
-0.5421844720840454,
0.7318664193153381,
-0.09227399528026581,
0.3349519371986389,
-0.443342924118042,
0.4324381053447723... |
def setcreatedat ( self, created _ at ) : self. _ created _ at = created _ at | [
0.20452722907066345,
-0.5950260162353516,
-0.10603131353855133,
-0.317348450422287,
1.4950252771377563,
0.7183318734169006,
-0.02138887532055378,
-0.4384918212890625,
-1.0729997158050537,
-1.4061555862426758,
-0.7919555902481079,
-0.1478622704744339,
1.3151847124099731,
0.5530224442481995,... |
def get _ note _ dicts ( notes ) : # get all pitch names pitchnames = sorted ( set ( item for item in notes ) ) # create a dictionary to map pitches to integers note _ to _ int = dict ( ( note, number ) for number, note in enumerate ( pitchnames ) ) int _ to _ note = dict ( ( number, note ) for number, note in enumerat... | [
-0.6305510401725769,
-0.3969801366329193,
0.7159569263458252,
-1.2073146104812622,
-0.5043526291847229,
0.14318475127220154,
0.5078189373016357,
-0.288963258266449,
-0.6885528564453125,
0.07402399182319641,
-0.5596520304679871,
-0.9147008061408997,
-0.009318635798990726,
0.3966766595840454... |
def f ( x ) : return np. sin ( 2 * math. pi * x ) | [
-0.33436551690101624,
-0.34244847297668457,
0.13566042482852936,
0.43626680970191956,
-0.1996845006942749,
-0.39795413613319397,
-0.5854335427284241,
0.1646885871887207,
0.13592469692230225,
-0.9831314086914062,
-0.72994464635849,
0.3451191782951355,
1.0054582357406616,
-0.9028211832046509... |
def list _ tuple _ string ( st ) : strs = st. strip ( ). strip ('('). strip (')'). split ( ) l = [ ] l. append ( ( strs [ 0 ]. lower ( ), strs [ 1 ]. lower ( ), strs [ 2 ]. lower ( ) ) ) return l | [
-0.6526014804840088,
-0.640152096748352,
0.7376144528388977,
-1.3392558097839355,
0.0744028314948082,
-0.13821271061897278,
-0.8392354846000671,
0.4955406188964844,
0.22405977547168732,
1.043084740638733,
-0.8612285852432251,
-0.8168509602546692,
-0.29299497604370117,
-0.8155697584152222,
... |
def dictinput ( self, rowreader, shortrowsallowed = false, headingpolicy = none ) : return self. _ _ class _ _. _ dictinput ( self, rowreader, shortrowsallowed, headingpolicy ) | [
-0.6987569332122803,
-0.043484196066856384,
0.3731258511543274,
-0.3805396854877472,
-2.2147276401519775,
0.5666165947914124,
-0.21194860339164734,
0.35125067830085754,
0.5114445090293884,
-0.4884034991264343,
0.6501497626304626,
-0.0713038370013237,
0.09757953137159348,
-0.199302271008491... |
def gameoflife ( self, board : list [ list [ int ] ] ) - > none : m = len ( board ) n = len ( board [ 0 ] ) for i in range ( m ) : for j in range ( n ) : cur _ lives = 0 cur = board [ i ] [ j ] & 1 for x in range ( max ( 0, i - 1 ), min ( m, i + 2 ) ) : for y in range ( max ( 0, j - 1 ), min ( n, j + 2 ) ) : cur _ live... | [
0.35153281688690186,
0.7524802684783936,
0.9232158660888672,
0.14831498265266418,
0.4158007502555847,
0.6332434415817261,
0.2620253264904022,
0.32689306139945984,
0.8696808815002441,
1.1095212697982788,
-0.05859316512942314,
-1.0807311534881592,
-0.48189112544059753,
0.3967907428741455,
... |
def new ( * args ) : return _ snap. tmin _ new ( * args ) | [
-0.9199532866477966,
-0.8037681579589844,
0.28312307596206665,
-0.4333019256591797,
-0.6712533235549927,
0.5845874547958374,
-0.4022262990474701,
-0.6851174235343933,
-1.3709043264389038,
-0.17910271883010864,
-0.5388051867485046,
-1.1572256088256836,
0.515252411365509,
0.6723347902297974,... |
def main ( ) : # uncomment the line below the print ( ) welcome message # print ( " ip subnet calculator " ) # variable for the network # network ='192. 168. 0. 1 / 24 ' | [
0.3893849849700928,
0.4341099262237549,
0.4413723945617676,
1.0159765481948853,
-0.12181484699249268,
0.12637504935264587,
0.337093710899353,
0.15608114004135132,
-0.5395705699920654,
-0.7618443965911865,
-0.07042721658945084,
-0.4962663948535919,
-0.0781746432185173,
-0.4144131541252136,
... |
def getmodeneti ( self, * args ) : return _ snap. tmmnet _ getmodeneti ( self, * args ) | [
-0.4559675455093384,
0.09979468584060669,
0.7053133845329285,
0.5032307505607605,
1.534761667251587,
-0.5951467752456665,
0.07687361538410187,
-0.3933192491531372,
-0.48312264680862427,
-0.20383930206298828,
-0.15247368812561035,
-0.8832991719245911,
-0.8169323205947876,
0.4038083553314209... |
def set ( self, x, y ) : self. x = x self. y = y | [
-0.7242308259010315,
-0.6304265260696411,
0.22816777229309082,
-1.3784151077270508,
0.18347769975662231,
0.6550459265708923,
-1.1652288436889648,
-0.7971793413162231,
-0.997787356376648,
0.0677097886800766,
-0.7645643353462219,
1.3182880878448486,
0.449293315410614,
-0.515896201133728,
0... |
def current _ status ( self ) - >'outputs. migrationstatusresponse': return pulumi. get ( self, " current _ status " ) | [
0.040207963436841965,
-0.749407172203064,
0.43124136328697205,
0.2879061698913574,
0.5205839276313782,
0.8702609539031982,
0.14164359867572784,
0.15603312849998474,
0.30648061633110046,
0.4959384500980377,
-0.1363629549741745,
0.7862396836280823,
0.23845729231834412,
-0.5731094479560852,
... |
def move _ hw ( self, zip _ file ) : hw _ folder = os. listdir ( self. tmp _ path ) [ 0 ] # there is 1 folder only assert hw _ folder = = zip _ file [ : - 4 ] # just to check the folder name hw _ path = os. path. join ( self. tmp _ path, hw _ folder ) if os. path. exists ( os. path. join ( self. root, hw _ folder ) ) :... | [
0.2616496980190277,
-0.16879017651081085,
0.9231473803520203,
0.3394961655139923,
0.3247869312763214,
0.6801519393920898,
1.2218483686447144,
0.40522637963294983,
-0.22780582308769226,
0.18915534019470215,
-0.020669568330049515,
-0.5050956606864929,
-0.9718940854072571,
1.0574951171875,
... |
def addv ( self, * args ) : return _ snap. tinttrv _ addv ( self, * args ) | [
-1.1311756372451782,
-0.4640099108219147,
0.310655802488327,
0.4947095513343811,
-0.28476470708847046,
0.3293284475803375,
0.8944157958030701,
0.1349860429763794,
-0.4695983827114105,
-0.2713666260242462,
-0.40377065539360046,
0.6216294765472412,
-0.47392815351486206,
0.3259811997413635,
... |
def _ _ eq _ _ ( self, * args ) : return _ snap. tgstat _ _ _ eq _ _ ( self, * args ) | [
-0.4634779393672943,
-0.09096035361289978,
-0.05046337470412254,
-1.027812123298645,
0.09697845578193665,
0.5770984292030334,
0.8076692223548889,
-0.6290401816368103,
-0.933847963809967,
0.38664743304252625,
-1.1457527875900269,
-1.3272876739501953,
0.6449078917503357,
0.6501926779747009,
... |
def _ _ init _ _ ( self ) : self. ram = [ 0 ] * len ( program ) self. register = [ 0 ] * 8 # r0, r1, r2, r3, r4, r5, r6, r7 self. pc = 0 # index of the pointer for the ram self. mar = none # memory address register - holds memory address to read or write from self. mdr = none # memory data register - holds memory addre... | [
0.3427925407886505,
0.059200581163167953,
0.5792054533958435,
0.20803867280483246,
0.6381460428237915,
0.15427128970623016,
0.8877195119857788,
0.5113913416862488,
0.4320077896118164,
-0.25634095072746277,
-0.19056321680545807,
0.3664955794811249,
-1.1146659851074219,
0.3105925917625427,
... |
def create ( self, validated _ data ) : return idiom. objects. create ( * * validated _ data ) | [
-0.26049914956092834,
-0.49503758549690247,
0.13598863780498505,
0.901901125907898,
0.2432105839252472,
0.7118089199066162,
-0.9581997394561768,
0.3355221152305603,
-0.2223779559135437,
-0.2817634344100952,
-0.9641739726066589,
-0.9240370392799377,
-1.252504587173462,
-1.4891705513000488,
... |
def _ packs ( self, label, elements ) : for m in elements : yield self. pack ( label, m ) | [
-0.9709452986717224,
-0.006438376847654581,
0.26644012331962585,
0.21605254709720612,
-0.4199446439743042,
0.6185619235038757,
-0.7042292952537537,
-0.84629225730896,
0.44339844584465027,
-0.005729002878069878,
0.047515906393527985,
-0.9682896137237549,
-0.9283559918403625,
0.4603865742683... |
def reload _ page ( self ) : # self. ui. webview. seturl ( qtcore. qurl ( self. ui. url. text ( ) ) ) import pandas as pd text = pd. read _ clipboard ( header = none ). values print ( text ) textapp = recommender. extract _ similarity ( ) tags = self. tags ranking = textapp. text _ similarity ( tags, text ) self. dialo... | [
-0.6746071577072144,
0.8180947303771973,
0.33023151755332947,
-0.1425497829914093,
-0.5822517275810242,
0.20444634556770325,
0.4542703926563263,
0.5413795709609985,
-0.4030759632587433,
0.4471695125102997,
0.03417670354247093,
0.553745687007904,
0.25079816579818726,
-0.295565128326416,
0... |
def reduce _ min ( input _ tensor, axis = none, keepdims = false, name = none ) : keepdims = false if keepdims is none else bool ( keepdims ) return _ may _ reduce _ to _ scalar ( keepdims, axis, gen _ math _ ops. _ min ( input _ tensor, _ reductiondims ( input _ tensor, axis ), keepdims, name = name ) ) | [
0.21552973985671997,
0.032658182084560394,
0.8059439063072205,
0.741289496421814,
-0.9745519757270813,
0.2237221598625183,
-0.25332316756248474,
-0.8209946751594543,
0.28077414631843567,
-0.11055530607700348,
-0.32945388555526733,
0.2893601953983307,
-0.17159956693649292,
-0.78124612569808... |
def test _ missing _ acquisitions ( accountant ) : expected _ missing _ acquisitions = [ ] cost _ basis = accountant. pots [ 0 ]. cost _ basis all _ events = cost _ basis. get _ events ( a _ eth ) base _ ts = 1614556800 # 01 / 03 / 2021, changed from 1 for windows. see https : / / github. com / rotki / rotki / pull / 6... | [
0.4009838104248047,
0.058805376291275024,
0.8350749611854553,
0.7075765132904053,
0.5004069805145264,
-0.13862544298171997,
0.7446072697639465,
-0.2302343100309372,
0.5760000944137573,
0.09806527942419052,
-0.13195082545280457,
-0.4805150032043457,
0.6996924877166748,
0.6704440116882324,
... |
def ssh ( self, instance _ data ) : self. wait _ for _ ready ( instance _ data, extra _ sleep = 0 ) return invoke ( self. _ build _ ssh _ cmd ( instance _ data, " " ) ) | [
-0.577203631401062,
-0.020307760685682297,
0.5490685701370239,
-0.1765637993812561,
-0.4941628575325012,
0.8832076191902161,
-0.5560604929924011,
0.09775973856449127,
-0.14585049450397491,
-0.635726273059845,
-0.2466423064470291,
0.97859126329422,
-0.2980993688106537,
-0.8801214098930359,
... |
def add _ edge ( self, edge ) : self. _ _ list _ edges. append ( edge ) try : # we check if the vertices we want to add are not already stored in our list of vertices self. _ _ list _ vertices. index ( edge. vertex _ source ) except : self. _ _ list _ vertices. append ( edge. vertex _ source ) | [
-0.7329359650611877,
0.49427330493927,
0.2641865611076355,
0.2221130132675171,
0.5185739994049072,
0.8155969381332397,
-1.0770974159240723,
0.7700138688087463,
1.1334419250488281,
-0.1265627145767212,
-0.8789252042770386,
0.1870250403881073,
-1.0715714693069458,
1.106759786605835,
0.4961... |
def l _ x ( self, x, u, i, terminal = false ) : if terminal : return 0 x _ diff = np. reshape ( x - self. x _ path [ i ], ( self. state _ size, 1 ) ) x _ diff [ 2 : ] = 0. 0 x _ dist = np. reshape ( x - self. x _ avoids [ i ], ( self. state _ size, 1 ) ) x _ dist [ 2 : ] = 0. 0 self. f = - self. q3 * self. q4 * np. exp... | [
0.5675601959228516,
-0.021588638424873352,
0.6642245650291443,
-0.7781676054000854,
-0.7322253584861755,
0.6123812198638916,
-0.29595381021499634,
0.33780908584594727,
0.34034156799316406,
-0.32612282037734985,
-0.6622559428215027,
-0.18608616292476654,
-0.3473834991455078,
-0.750671684741... |
def getrndkeyid ( self, * args ) : return _ snap. tintprflth _ getrndkeyid ( self, * args ) | [
-0.08615092933177948,
0.3525935709476471,
0.3416910171508789,
0.3586418032646179,
-0.21745674312114716,
0.3376021385192871,
-0.6046062111854553,
-0.18589039146900177,
-0.5516379475593567,
-0.3661580979824066,
-0.659309446811676,
0.5843470096588135,
-2.1522536277770996,
1.9734218120574951,
... |
def tcha _ loadtxt ( * args ) : return _ snap. tcha _ loadtxt ( * args ) | [
-0.19976961612701416,
0.8507347106933594,
0.2942979633808136,
-0.9277519583702087,
-0.8633689880371094,
-0.11161098629236221,
0.019204914569854736,
-0.2353382408618927,
-0.5294011831283569,
0.8896624445915222,
-0.7773519158363342,
-1.2031776905059814,
-0.7651404142379761,
0.224324807524681... |
def unionlen ( self, * args ) : return _ snap. tfltv _ unionlen ( self, * args ) | [
-0.08060910552740097,
0.8899795413017273,
0.03645487502217293,
0.3801555037498474,
0.47547319531440735,
-0.2514145076274872,
0.7511263489723206,
2.0152294635772705,
-0.34251314401626587,
-0.8272570967674255,
-0.7475196123123169,
-0.9049802422523499,
0.08590376377105713,
1.3253364562988281,... |
def start ( ) : return template ( " index " ) | [
0.6181449294090271,
-0.06698056310415268,
0.23988477885723114,
0.12511537969112396,
-0.20886342227458954,
-0.5089567303657532,
0.5959153175354004,
0.633502185344696,
0.29749780893325806,
-0.29312437772750854,
-0.1084854006767273,
-0.020899295806884766,
0.031408704817295074,
-1.038971304893... |
def remove _ sa _ effects ( self ) : assert ( self. regrs _ sa is not none ), " run regr _ model _ sa ( ) first. " # for the relevant cohort to this instance's data ages = self. chrt _ df. age sexs = self. chrt _ df. sex # centre age and sex, the same way as in v01 ages = ages - roidata. chrt01 _ df. age. mean ( ) sexs... | [
0.37285348773002625,
-0.6112327575683594,
0.6339149475097656,
-0.3804144561290741,
-0.4797031879425049,
0.4426995813846588,
0.7850366830825806,
0.4107125699520111,
0.6160309314727783,
0.46051305532455444,
0.10782423615455627,
1.3216465711593628,
0.5592524409294128,
-0.18066959083080292,
... |
def wx _ zapisz _ zestaw ( self, evt ) : if type ( aktualny _ zestaw )! = list : pop = wx. textentrydialog ( self, " podaj nazwe dla pliku ze zestawem : " ) pop. showmodal ( ) nazwa = pop. getvalue ( ) if " zestaw " not in nazwa : nazwa = " zestaw _ " + nazwa if ". txt " not in nazwa : nazwa = nazwa + ". txt " if os. p... | [
-0.7627528309822083,
-0.26617658138275146,
0.3953181803226471,
0.1335999220609665,
-1.2567510604858398,
0.4697086811065674,
0.2769293487071991,
0.07573471963405609,
-0.19265331327915192,
0.5904922485351562,
-0.6936085224151611,
0.42797642946243286,
0.7739809155464172,
0.7520954608917236,
... |
def bell ( ) : qr = quantumregister ( 2, name ='qr') cr = classicalregister ( 2, name ='qc') qc = quantumcircuit ( qr, cr, name ='bell') qc. h ( qr [ 0 ] ) qc. cx ( qr [ 0 ], qr [ 1 ] ) qc. measure ( qr, cr ) return qc | [
0.5591121315956116,
0.03174597769975662,
0.6307334899902344,
-0.03440266102552414,
-0.4674912691116333,
0.4022139608860016,
-0.4211527109146118,
-0.48894426226615906,
0.7846890687942505,
-0.7747983932495117,
-0.7142816185951233,
0.6857893466949463,
-0.7630347013473511,
0.8657625317573547,
... |
def _ get _ unravelled _ value _ as _ list ( input _ val ) : log. debug ( " about to unravel > { 0 } < with { 1 } ". format ( input _ val, type ( input _ val ) ) ) unravelled _ input = _ get _ unravelled _ value ( input _ val ) if not isinstance ( unravelled _ input, list ) : unravelled _ input = [ unravelled _ input ]... | [
-1.1527643203735352,
-0.05872918292880058,
0.5426169037818909,
-0.3649837374687195,
-0.05999162420630455,
-0.5134454369544983,
-0.027800485491752625,
-0.02910318784415722,
0.8385631442070007,
-0.515415608882904,
-0.62300705909729,
0.5277868509292603,
0.18392878770828247,
0.7439449429512024... |
def _ _ eq _ _ ( self, * args ) : return _ snap. tstrtattrpr _ _ _ eq _ _ ( self, * args ) | [
-0.6474831104278564,
-0.34579038619995117,
0.02590424381196499,
-0.7782734632492065,
0.39161044359207153,
0.5501758456230164,
0.659978985786438,
0.33396390080451965,
-0.5456545352935791,
0.6370041370391846,
-0.6144252419471741,
-1.0937350988388062,
0.2837544083595276,
-0.000832193763926625... |
def _ read _ int ( self ) : b = ord ( self. _ read ( 1 ) ) if b < 128 : return b x = e = 0 while b > = 128 : x + = ( b - 128 ) < < e e + = 7 b = ord ( self. _ read ( 1 ) ) x + = b < < e return x | [
-0.13028541207313538,
0.7097082734107971,
0.4893588721752167,
-0.4062597453594208,
-1.0934598445892334,
0.10988671332597733,
-0.2535305321216583,
-0.4478451609611511,
0.12491516023874283,
-0.3686176538467407,
0.4339574873447418,
-0.25937366485595703,
-0.805523693561554,
-0.836693525314331,... |
def test _ list _ decimal _ enumeration _ 1 _ nistxml _ sv _ iv _ list _ decimal _ enumeration _ 2 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - enumeration - 2. xsd ", instance = " nistdata / list / ... | [
-0.9722802639007568,
-0.9344642162322998,
0.6996189951896667,
1.0817416906356812,
0.05521202087402344,
-0.20649690926074982,
-0.0008198718423955142,
0.5514066815376282,
0.5217731595039368,
0.013039256446063519,
-0.9583737850189209,
0.025563567876815796,
0.5311300158500671,
0.63720959424972... |
def attrvalueni ( self, * args ) : return _ snap. tneanet _ attrvalueni ( self, * args ) | [
-0.9923415184020996,
0.2213258147239685,
0.23615248501300812,
0.06289619952440262,
-0.36127355694770813,
0.2314537912607193,
-0.04654374718666077,
0.03994428366422653,
-1.081831932067871,
0.03777315467596054,
-0.4085460603237152,
-0.8566057682037354,
0.40685856342315674,
0.995660126209259,... |
def add _ files ( dest _ name : str, src : tuple, start _ nr, debug : bool ) : if debug : log. setlevel ( logging. debug ) cfg = utils. load _ config ( ) if dest _ name not in cfg : echo ( f " destination { dest _ name } not found. " ) echo ( " available destinations : " ) echo ( " \ n ". join ( cfg. keys ( ) ) ) retur... | [
-0.6691169738769531,
0.6684845089912415,
0.8637468814849854,
-0.08002113550901413,
0.7406628131866455,
-0.1344122588634491,
-0.024918755516409874,
0.44816622138023376,
-0.6827734708786011,
0.7358739972114563,
-0.15130867063999176,
-0.7834973931312561,
0.3759572207927704,
0.5937932729721069... |
def _ updateallrevisioninformation ( self ) : for path, link in self. urls. items ( ) : if os. path. exists ( path ) : self. _ updaterevisioninformation ( link, path ) | [
-0.7026677131652832,
-0.6915890574455261,
0.11379770934581757,
-0.4645744264125824,
0.6332471966743469,
-0.033632583916187286,
0.08846414089202881,
0.9783220291137695,
-0.1794106364250183,
-0.7078321576118469,
0.16082969307899475,
-0.3111499845981598,
0.11180513352155685,
1.094445586204528... |
def _ _ eq _ _ ( self, * args ) : return _ snap. tmmnetmodeneti _ _ _ eq _ _ ( self, * args ) | [
-0.7184136509895325,
-0.4820065498352051,
0.2685597836971283,
-0.6053735017776489,
0.6740180253982544,
0.10620872676372528,
-0.19155986607074738,
-0.06826722621917725,
-0.46987634897232056,
0.8707542419433594,
-0.9477290511131287,
-1.1335269212722778,
0.42977064847946167,
0.514932692050933... |
def processbefilter ( cluster, date, app, scaled ) : thresholds = getautothresholds ( cluster, date, app, scaled ) # filter complete photometry file ext ='' if scaled : ext ='_ scaled'filename ='output / % s / % s / phot % s. dat'% ( cluster, date, ext ) data = np. loadtxt ( filename ) filtered _ data = befilter ( clus... | [
0.19426389038562775,
-0.7862387299537659,
0.7840567231178284,
0.07266324758529663,
0.2099405825138092,
0.5128227472305298,
0.026532642543315887,
0.5875798463821411,
-0.836137592792511,
0.9876469969749451,
-0.22233355045318604,
0.5741657614707947,
0.14714187383651733,
0.03454108163714409,
... |
def satisfied ( self, item, type _ matcher ) : valid _ type _ qids = item. get _ types ( self. pid ) return any ( type _ matcher. is _ subclass ( qid, self. qid ) for qid in valid _ type _ qids ) | [
-0.19577328860759735,
-0.6997960805892944,
0.6394599676132202,
0.5669959187507629,
0.3487392067909241,
0.8238756656646729,
-1.0491197109222412,
-0.23953625559806824,
-0.469553142786026,
-0.16650839149951935,
-0.8060507774353027,
0.3975984752178192,
-1.3733949661254883,
0.21894749999046326,... |
def get _ obj ( content, vimtype, name ) : obj = none container = content. viewmanager. createcontainerview ( content. rootfolder, vimtype, true ) for c in container. view : if name : if c. name = = name : obj = c break else : obj = c break return obj | [
0.670699954032898,
-1.72354257106781,
0.5339257121086121,
0.540869414806366,
-0.8336158990859985,
-0.8666710257530212,
0.2850201427936554,
-1.4688036441802979,
-0.20706990361213684,
-0.41693228483200073,
0.31566938757896423,
0.8641043305397034,
-0.7310431599617004,
-0.42682313919067383,
... |
async def field _ remove ( self, ctx : context, id : int ) - > none : if id > = 0 and id < = self. embed _ fields [ ctx. author ] : self. embeds [ ctx. author ]. embed. remove _ field ( id ) self. embed _ fields [ ctx. author ] - = 1 await ctx. send ( f " embeds field * * # { id } * * has been removed. " ) else : await... | [
-0.237892284989357,
0.17848411202430725,
0.6189207434654236,
0.0644625574350357,
0.1374402642250061,
0.7064328193664551,
0.013873552903532982,
0.3241708278656006,
0.3893979787826538,
-0.28661632537841797,
-1.3240915536880493,
0.11519873887300491,
-1.1483569145202637,
-0.4415786862373352,
... |
def bvs ( self, name, size, min = none, max = none, stride = none, uninitialized = false, explicit _ name = none, * * kwargs ) : # pylint : disable = redefined - builtin r = claripy. bvs ( name, size, min = min, max = max, stride = stride, uninitialized = uninitialized, explicit _ name = explicit _ name, * * kwargs ) s... | [
-0.12701816856861115,
0.4198669195175171,
0.8023556470870972,
0.15401697158813477,
-0.6916431188583374,
-0.7082882523536682,
0.15564744174480438,
-0.5750723481178284,
-0.08967416733503342,
-0.28320127725601196,
-0.7464627027511597,
0.7985946536064148,
-0.21201187372207642,
-0.3048229515552... |
def create _ loadbalancer ( self, vpc _ id, subnet _ id, name = none, desc = none, client _ token = none, config = none ) : path = utils. append _ uri ( self. version,'blb') params = { } if client _ token is none : params [ b'clienttoken'] = generate _ client _ token ( ) else : params [ b'clienttoken'] = client _ token... | [
0.5166165232658386,
0.38629814982414246,
0.7697080969810486,
0.2980394959449768,
0.9753026366233826,
0.8378018736839294,
-1.6781307458877563,
-0.6728756427764893,
-0.16109663248062134,
0.4660351872444153,
-1.2974778413772583,
0.8072974681854248,
-1.1070586442947388,
0.4965994656085968,
0... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tstrflthi _ _ _ lt _ _ ( self, * args ) | [
0.5843741297721863,
-0.34193864464759827,
0.15544626116752625,
-1.4165420532226562,
0.8679529428482056,
-0.46250131726264954,
-0.006953340023756027,
-0.8555304408073425,
-1.1963211297988892,
-0.9651246070861816,
-1.368870735168457,
-0.6422756910324097,
-0.17290377616882324,
0.6481930613517... |
def add _ request ( self ) : try : stmt = " " " insert into ` request _ info ` ( ` firstname `, ` middlename `, ` lastname `, ` dob `, ` gender `, ` nationality `, ` city `, ` state `, ` pin `, ` qual `, ` salary `, ` pan `, ` req _ date ` ) values ( % s, % s, % s, % s, % s, % s, % s, % s, % s, % s, % s, % s, % s ) " "... | [
-0.7421018481254578,
-0.10474132001399994,
1.0039552450180054,
0.6208145618438721,
0.3352360427379608,
0.851841151714325,
-0.3553997576236725,
-0.40584492683410645,
-0.6321297883987427,
-1.0239458084106445,
0.09398458153009415,
-0.394441694021225,
-0.787075400352478,
0.49576178193092346,
... |
def describe _ https _ listener ( self, blb _ id, listener _ port = none, marker = none, max _ keys = none, config = none ) : path = utils. append _ uri ( self. version,'blb ', blb _ id,'httpslistener') params = { } if listener _ port is not none : params [ b'listenerport'] = listener _ port if marker is not none : par... | [
0.08753091096878052,
-0.31386542320251465,
0.8805235624313354,
-0.2081160545349121,
0.29837343096733093,
-0.11134476959705353,
-0.3929602801799774,
0.060532793402671814,
-0.8503090143203735,
0.13378918170928955,
-0.6214607357978821,
1.3987669944763184,
-0.5657925605773926,
0.49884504079818... |
def onboard _ task _ volume _ update ( context, task _ id, vol _ uuid, values ) : return impl. onboard _ task _ volume _ update ( context, task _ id, vol _ uuid, values ) | [
-0.936168909072876,
-0.7249631881713867,
0.43272867798805237,
0.153603658080101,
-0.47113463282585144,
-0.19760878384113312,
0.10097109526395798,
0.08979374170303345,
-0.870215117931366,
0.8608108162879944,
-0.21817080676555634,
0.305753618478775,
0.17614994943141937,
-0.22701005637645721,... |
def batch _ histogram _ equalization ( img0, cumulative _ func, batch ) : img _ height, img _ width = img0. shape [ 0 ], img0. shape [ 1 ] batch _ height, batch _ width = int ( img _ height / batch ), int ( img _ width / batch ) for idx1 in range ( img _ height ) : for idx2 in range ( img _ width ) : index = img0 [ idx... | [
0.9907209873199463,
-0.28533515334129333,
0.6338419318199158,
-0.1452602595090866,
0.6380451321601868,
-0.40934422612190247,
0.7146931886672974,
1.012119174003601,
-0.5408685803413391,
0.31881609559059143,
-0.4655071496963501,
0.6885066628456116,
0.8046373128890991,
0.7060046792030334,
0... |
def specificheat ( self ) : return self. _ specific _ heat | [
0.6516256928443909,
-0.28935983777046204,
0.2970724403858185,
0.6699146032333374,
0.46359482407569885,
0.5531585812568665,
0.0017424901016056538,
0.5820944309234619,
0.18463829159736633,
-0.7054433822631836,
-0.06681302189826965,
1.3750063180923462,
0.06062572821974754,
-0.3033904731273651... |
def created _ on ( self, created _ on ) : self. _ created _ on = created _ on | [
1.2075474262237549,
-1.2030389308929443,
0.0007299442077055573,
0.555022656917572,
0.5481307506561279,
0.9250795245170593,
-0.6394217014312744,
0.7472428679466248,
-1.4452940225601196,
-0.6923949122428894,
-1.6632003784179688,
0.005454030353575945,
0.4607999622821808,
0.917003870010376,
... |
def getni ( self, * args ) : return _ snap. tundirnet _ getni ( self, * args ) | [
-0.419394314289093,
-0.3007831573486328,
0.2826331853866577,
1.0996267795562744,
1.4581800699234009,
-0.8261523842811584,
0.21303823590278625,
-1.3879929780960083,
-0.9767821431159973,
-0.5868598818778992,
-0.5854662656784058,
-1.362829327583313,
-0.7104426622390747,
-0.3844811022281647,
... |
def clean _ numberrows ( self ) : number _ rows = self. cleaned _ data. get ('numberrows') if number _ rows is none : number _ rows = default _ num _ rows if number _ rows < 1 : # errors. append ( forms. validationerror ) raise forms. validationerror ( _ ('the number of rows must be 1 or greater.') ) elif number _ rows... | [
-0.2906966507434845,
1.2602347135543823,
0.3890950381755829,
0.06343084573745728,
0.3769404888153076,
-0.49014726281166077,
0.40906426310539246,
0.18556873500347137,
0.2901597023010254,
-0.29605743288993835,
0.4522220492362976,
-0.4592047929763794,
-0.02227841131389141,
0.8723921775817871,... |
def oncloseplugin ( self ) : # disconnects self. dlg. closingplugin. disconnect ( self. oncloseplugin ) self. pluginisactive = false | [
0.15615372359752655,
-1.724841594696045,
0.4219972491264343,
-0.0500924177467823,
-0.65594881772995,
0.36224398016929626,
-0.4901236593723297,
0.21578045189380646,
0.6028987765312195,
0.45494845509529114,
-0.29970625042915344,
0.04295440390706062,
-0.9384269714355469,
-0.32563015818595886,... |
def check _ internet _ off ( secrets _ file _ path ) : while true : if internet _ on ( ) is false and os. path. exists ( secrets _ file _ path ) : break else : print ( " turn off your internet and plug in your usb to continue... " ) time. sleep ( 10 ) return true | [
-0.1916165053844452,
-0.7073062062263489,
0.3067355453968048,
0.800430178642273,
0.5159417390823364,
1.1979825496673584,
-0.009420114569365978,
0.6694873571395874,
-0.572513222694397,
0.07013078778982162,
-0.02748490683734417,
-0.23564103245735168,
-1.2209848165512085,
-0.02152639254927635... |
def aux _ split ( data, numtracks = 3 ) : idx = np. bool _ ( np. zeros ( len ( data ['track _ id'] ) ) ) for track in np. unique ( data ['track _ id'] ) : idx | = data ['segment _ id'] = = ( data ['segment _ id'] [ data ['track _ id'] = = track ] [ : numtracks ] ) for key in data : data [ key ] = data [ key ] [ idx ] r... | [
-0.05590825900435448,
0.18463321030139923,
0.5537186861038208,
-0.9726724028587341,
-0.1539480984210968,
-0.13782326877117157,
-0.2630961239337921,
0.3821568489074707,
0.04463925585150719,
0.6766833066940308,
-0.3443707227706909,
-0.08558925986289978,
0.22648543119430542,
-0.81012403964996... |
def addfltattrdate ( self, * args ) : return _ snap. tcrossnet _ addfltattrdate ( self, * args ) | [
0.7857241034507751,
0.9425176978111267,
0.5240082144737244,
-1.198155403137207,
0.9263386726379395,
0.5217452645301819,
0.1743018925189972,
0.5506629943847656,
-0.5409144163131714,
-1.463422417640686,
0.13062353432178497,
-0.9480189085006714,
0.28390032052993774,
1.1511421203613281,
0.00... |
def check _ unique ( self, cr, uid, ids, context = none ) : for rec in self. browse ( cr, uid, ids, context = context ) : if rec. start _ place. id = = rec. end _ place. id : raise osv. except _ osv ( _ ('error'), _ ('distination should not be the moving point') ) if rec. distance < = 0. 0 : raise osv. except _ osv ( _... | [
-0.6138217449188232,
-0.1134571060538292,
0.8106608986854553,
0.27187657356262207,
0.17218472063541412,
0.7405853271484375,
0.3207729458808899,
1.0635852813720703,
0.19370295107364655,
0.48334014415740967,
0.08675963431596756,
0.3641236126422882,
-0.5548598170280457,
0.24644529819488525,
... |
def classifyatomic ( self, * args ) : return _ snap. ttable _ classifyatomic ( self, * args ) | [
-0.7883996367454529,
0.21087859570980072,
0.5262792706489563,
0.6669949293136597,
-0.25779402256011963,
0.29021480679512024,
-0.4090358018875122,
-0.8466816544532776,
-2.177541971206665,
0.8284202814102173,
0.24297206103801727,
0.43758922815322876,
0.48221704363822937,
0.2480347901582718,
... |
def forked _ param _ clone ( self, rng = none, xd = none ) : new _ spds = { } old _ spds = self. shared _ param _ dicts # shared param dicts is nested like : dict of list of dicts # i. e., spd [ k ] is a list and spd [ k ] [ i ] is a dict for k1 in old _ spds : new _ spds [ k1 ] = [ ] for i in range ( len ( old _ spds ... | [
-0.08582569658756256,
-0.25647756457328796,
0.9363520741462708,
0.6000411510467529,
-0.4953555464744568,
0.33902642130851746,
0.5006747245788574,
0.06888274103403091,
-0.37371721863746643,
-0.11906828731298447,
-0.08776459097862244,
0.8497417569160461,
-0.18211232125759125,
0.6689907908439... |
def test _ atomic _ language _ pattern _ 2 _ nistxml _ sv _ iv _ atomic _ language _ pattern _ 3 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - pattern - 3. xsd ", instance = " nistdata / atomic ... | [
-0.12495563179254532,
0.07521778345108032,
0.6129841208457947,
0.9677090644836426,
-0.3778083324432373,
0.9010990262031555,
-0.4991833567619324,
0.43987739086151123,
0.6596607565879822,
1.3178379535675049,
-0.05587555468082428,
0.12104710191488266,
0.04174383729696274,
-0.7042108774185181,... |
def test _ atomic _ hex _ binary _ enumeration _ nistxml _ sv _ iv _ atomic _ hex _ binary _ enumeration _ 1 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - enumeration - 1. xsd ", instance = " ... | [
-0.6572864055633545,
-0.6791810989379883,
0.6114583015441895,
0.8359742760658264,
0.05104474723339081,
0.33728158473968506,
0.15902619063854218,
0.4037932753562927,
0.17679530382156372,
0.6310421824455261,
-0.20068202912807465,
-0.5159960389137268,
0.051538124680519104,
0.3761078417301178,... |
def bank _ data ( ) : # compile regular expressions for finding certain tags. link _ finder = re. compile ( r " 2004 $ " ) chase _ bank _ finder = re. compile ( r " ^ jpmorgan chase bk " ) # get the base page and find the urls to all other relevant pages. base _ url = " https : / / www. federalreserve. gov / releases /... | [
-0.01218179427087307,
0.1524730920791626,
0.7241074442863464,
-0.447505921125412,
1.249568223953247,
-0.15911266207695007,
-0.2658553421497345,
-0.49643075466156006,
-0.4245557487010956,
-0.07121578603982925,
-0.7106410264968872,
0.014926545321941376,
0.11688853055238724,
0.345984369516372... |
def reduce ( self, * args ) : return _ snap. tintprv _ reduce ( self, * args ) | [
-2.1725714206695557,
0.599899172782898,
0.39378002285957336,
0.43566760420799255,
0.5286929607391357,
0.074147067964077,
0.6938256621360779,
0.48425233364105225,
-0.6684330105781555,
-0.4529133439064026,
-0.5333089232444763,
-0.6149636507034302,
-1.9379675388336182,
0.5798594951629639,
1... |
def encodepath ( self, * args ) : if args = = none : self. parts = [ ] return none else : self. parts = [ x. strip ( " / " ) for x in args ] | [
-0.3644407093524933,
-0.006345570087432861,
0.2568243443965912,
-0.008444647304713726,
0.8733563423156738,
0.4259084463119507,
0.039108894765377045,
-0.34276679158210754,
-0.21925188601016998,
-0.2335311323404312,
-0.36997196078300476,
0.04294227436184883,
-1.8450201749801636,
0.7453767657... |
def getsattrvn ( self, * args ) : return _ snap. tneanet _ getsattrvn ( self, * args ) | [
-0.5046194195747375,
-0.6831691861152649,
0.2598799467086792,
-0.0741325169801712,
0.7751224040985107,
-0.29494619369506836,
0.728614091873169,
-0.0643206536769867,
0.14831964671611786,
-0.9959312081336975,
-0.3998206853866577,
0.2989048361778259,
-0.16354310512542725,
1.1137504577636719,
... |
def load ( self, * args ) : return _ snap. pneanet _ load ( self, * args ) | [
-1.3481850624084473,
0.9638651609420776,
0.4842435419559479,
-0.2424795925617218,
0.3831045925617218,
0.9988126158714294,
-0.3950926959514618,
-0.9536468982696533,
-0.6053341627120972,
-0.25366517901420593,
-0.6931920647621155,
-1.8828402757644653,
-0.8104368448257446,
0.07300153374671936,... |
def test _ user _ detail _ with _ utilization ( self ) : self. user _ data. billable _ expectation = 0 self. user _ data. save ( ) response = self. app. get ( url = reverse ('employees : userdetailview ', args = [ self. user. username ] ), user = self. user ) self. assertequal ( response. status _ code, 200 ) | [
0.4649832844734192,
1.0546027421951294,
0.5599434971809387,
0.12053053081035614,
0.6153067350387573,
1.0174179077148438,
0.5266302227973938,
0.4393618404865265,
0.07467439770698547,
-1.356884241104126,
-0.14879865944385529,
0.7104997634887695,
0.519623875617981,
0.9639673233032227,
0.635... |
def cumulative _ logsumexp ( x, axis = 0, exclusive = false, reverse = false, name = none ) : with ops. name _ scope ( name, " cumulativelogsumexp ", [ x ] ) as name : x = ops. convert _ to _ tensor ( x, name = " x " ) return gen _ math _ ops. cumulative _ logsumexp ( x, axis, exclusive = exclusive, reverse = reverse, ... | [
0.7288100123405457,
0.7494767308235168,
1.0502429008483887,
0.5458186864852905,
-1.499192476272583,
0.06833846867084503,
-0.2863827645778656,
0.8242292404174805,
0.6764243245124817,
0.9665974974632263,
-0.7412269711494446,
1.2304208278656006,
0.3762904107570648,
-2.0328898429870605,
0.50... |
def create _ user ( self, username, password, user _ type = none ) : user = self. model ( username = username ) user. set _ password ( password ) user. user _ type = user _ type user. save ( using = self. _ db ) return user | [
-0.23537442088127136,
-0.32601284980773926,
0.32652705907821655,
0.9549246430397034,
0.9582615494728088,
0.5015062689781189,
0.1621987670660019,
-0.2765915095806122,
-0.14005078375339508,
0.09862248599529266,
-1.0812760591506958,
-0.6693128347396851,
-0.7460256218910217,
0.2653367221355438... |
def _ _ init _ _ ( self, * args ) : _ snap. tintfltprhi _ swiginit ( self, _ snap. new _ tintfltprhi ( * args ) ) | [
0.7913838028907776,
0.2576811909675598,
0.13126875460147858,
0.5349829792976379,
0.08903822302818298,
0.048786792904138565,
0.2917548716068268,
-0.07772219926118851,
-1.4282337427139282,
-0.22131454944610596,
-0.6270349621772766,
0.0024607726372778416,
-0.7871935367584229,
1.00393533706665... |
def hector _ rss ( path _ to _ file, bundle ='' ) : header = fits. getheader ( path _ to _ file, 0 ) + fits. getheader ( path _ to _ file, 2 ) header = hector _ header ( header ) # wcs wcs = wcs ( header ) # constructing pykoala spaxels table from 2dfdr spaxels table ( data [ 2 ] ) fibre _ table = fits. getdata ( path ... | [
0.14468775689601898,
-0.7412000894546509,
0.9881781339645386,
-0.7304235696792603,
-0.48965486884117126,
-0.5183185338973999,
-0.2599010169506073,
0.1427445411682129,
-0.885226845741272,
-0.28276580572128296,
0.4413505494594574,
0.05971165746450424,
0.2847883105278015,
-0.05690152570605278... |
def get _ klines ( self, symbol, startat, endat, pattern _ type ='5min') : return self. get _ request ('/ api / v1 / market / candles? symbol = { 0 } & begin = { 1 } & end = { 2 } & type = { 3 } '. format ( symbol, startat, endat, pattern _ type ) ) | [
-1.0059953927993774,
0.3081744611263275,
0.4744436740875244,
0.25036898255348206,
-0.062094420194625854,
-0.4591643810272217,
-0.6417338252067566,
-0.8622601628303528,
-0.04449957609176636,
0.8424937725067139,
-0.3486034870147705,
1.304809808731079,
-0.7566646337509155,
0.11291776597499847... |
def get _ app _ name ( app ) : return app. _ _ name _ _. split ( '.') [ - 2 ] | [
-0.016413377597928047,
-0.24388659000396729,
0.5055824518203735,
0.7781487703323364,
-0.7944157719612122,
0.6632646918296814,
-0.25031083822250366,
-1.003336787223816,
0.4884457290172577,
1.2685991525650024,
0.36170876026153564,
-0.015122753567993641,
0.7921600937843323,
-0.597115635871887... |
def makeglobalsignal ( freqs ) : sim = ares. simulations. global21cm ( ) sim. run ( ) print " simulation successfully run " nu = sim. history ['nu'] / 1. e3 # convert frequencies from mhz to ghz dtb = sim. history ['dtb'] / 1. e3 # convert temperatures from mk to k gs _ func = interpolate. interp1d ( nu, dtb ) gs = gs ... | [
-0.0029281533788889647,
1.0603355169296265,
0.44161051511764526,
0.12002401798963547,
-0.5246737003326416,
0.6461183428764343,
0.5833476781845093,
0.20050428807735443,
-0.305633008480072,
0.03968152403831482,
0.017963197082281113,
0.48670244216918945,
-0.3668544590473175,
0.074081197381019... |
def update ( ) : # update oh - my - zsh cmd ='/ usr / bin / env zsh = ~ /. oh - my - zsh / bin / sh ~ /. oh - my - zsh / tools / upgrade. sh'run ( cmd ) # update custom files upload _ custom _ files ( ) | [
0.10357188433408737,
-0.9189995527267456,
0.5948068499565125,
0.08530460298061371,
0.048617467284202576,
-0.07095205038785934,
0.20930442214012146,
-0.06555934250354767,
-0.4206419587135315,
-0.1993998885154724,
-0.6227846145629883,
0.5346688628196716,
0.4753786027431488,
0.096028648316860... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.