text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def download _ image ( image _ id, tester _ id ) : persistor = imagepersisor ( ) if not persistor. ensure _ tester _ is _ valid ( tester _ id ) : return io. bad _ request ('tester must have at least one image and video.') image = persistor. get _ image ( image _ id ) if not image : return io. bad _ request ( f'image no... | [
-0.11544400453567505,
-0.4503737986087799,
0.5691508054733276,
1.0386608839035034,
-0.15914957225322723,
-0.8860551714897156,
0.2594836950302124,
-0.30115026235580444,
0.8592585325241089,
-0.06297687441110611,
1.127750277519226,
0.3282851278781891,
-0.7459482550621033,
0.909351110458374,
... |
def get _ loss ( self, batch _ samples, batch _ labels, per _ point = true ) : return self. loss _ fn ( batch _ labels, self. get _ logits ( batch _ samples ) ) | [
-0.26290491223335266,
-0.6533312797546387,
0.21670345962047577,
0.6576003432273865,
0.5823931694030762,
-0.21373538672924042,
-0.40554553270339966,
0.10834095627069473,
-0.4477555751800537,
-0.3718942701816559,
0.5615594983100891,
0.48622927069664,
0.10950109362602234,
-0.9830862879753113,... |
def nabolist ( ) : global username user _ list = listdir ( " user " ) name _ list = [ ] pic _ list = [ ] for user in user _ list : f = codecs. open ( " user / " + user, " r ", " utf - 8 " ) text _ file = f. readlines ( ) firstname = text _ file [ 0 ] surname = text _ file [ 1 ] profile _ pic = text _ file [ 3 ] nabos =... | [
-0.3824886083602905,
-0.40274858474731445,
0.3781011700630188,
-0.09267875552177429,
-0.45195910334587097,
0.7883291244506836,
-0.16059395670890808,
0.38576242327690125,
-0.28398245573043823,
0.4220387041568756,
-1.4436241388320923,
-0.8294426798820496,
0.33666107058525085,
0.4890843927860... |
def recurse ( indices, depth, i _ changed ) : if depth = = len ( indices ) : emit ( indices, i _ changed ) return old = indices [ depth ] for delta in range ( n ) : indices [ depth ] = ( old + delta ) % n recurse ( indices, depth + 1, i _ changed ) i _ changed = depth | [
-0.9355450868606567,
1.1938806772232056,
0.5090582966804504,
0.07324317842721939,
-0.39756205677986145,
-0.5602221488952637,
1.0255166292190552,
-0.07709347456693649,
0.40329545736312866,
0.10193926095962524,
-0.3431469202041626,
0.4716954529285431,
-0.5893028378486633,
0.8766459226608276,... |
def isnbrnid ( self, * args ) : return _ snap. tmodenetnodei _ isnbrnid ( self, * args ) | [
-0.2700323760509491,
0.47510582208633423,
0.2809755504131317,
-0.005530433729290962,
0.6747578382492065,
0.12382438778877258,
-0.4168812930583954,
-0.5846242904663086,
-1.0389728546142578,
0.31535932421684265,
-0.36335599422454834,
0.61672043800354,
-1.10334312915802,
0.7228034138679504,
... |
def sort ( self, * args ) : return _ snap. tinth _ sort ( self, * args ) | [
-1.4768704175949097,
-0.03118710033595562,
0.35963162779808044,
0.12507130205631256,
-0.08207473903894424,
0.4706420600414276,
0.15023115277290344,
-1.615040898323059,
-0.7900111675262451,
-0.6875880360603333,
-0.946292519569397,
0.6136802434921265,
-1.7968015670776367,
0.29216837882995605... |
def test _ form _ widgets ( self ) : self. assertin ('django. forms. select ', omniforeignkeyfield. form _ widgets ) self. assertin ('django. forms. radioselect ', omniforeignkeyfield. form _ widgets ) | [
-0.21527940034866333,
0.21674200892448425,
0.10463409870862961,
0.013471686281263828,
0.7189154624938965,
0.17493285238742828,
-0.34799477458000183,
0.25041261315345764,
0.3187532126903534,
-0.4644974172115326,
-1.0468000173568726,
-0.8211224675178528,
-0.543160617351532,
0.969323933124542... |
def heatmap ( data, row _ labels, col _ labels, ax = none, cbar _ kw = { }, cbarlabel = " ", * * kwargs ) : if not ax : ax = plt. gca ( ) # plot the heatmap im = ax. imshow ( data, * * kwargs ) # create colorbar cbar = ax. figure. colorbar ( im, ax = ax, * * cbar _ kw ) cbar. ax. set _ ylabel ( cbarlabel, rotation = - ... | [
0.23110102117061615,
-0.0614636205136776,
0.8192129135131836,
-0.53593909740448,
-0.2171163260936737,
-0.22080430388450623,
0.7375619411468506,
0.1912720650434494,
0.6822060346603394,
0.4868406355381012,
0.5292869806289673,
0.2905460298061371,
0.3012109696865082,
0.48161691427230835,
1.4... |
def nucs _ 2dsegm ( self ) : reload ( nucssegmenter3 ) self. busy _ indicator ( ) qtwidgets. qapplication. processevents ( ) qtwidgets. qapplication. processevents ( ) try : self. nucs _ 2d _ det = nucssegmenter3. nucssegmenter3 ( self. nucs _ m, np. int64 ( self. nucs _ 2dsegm _ first _ value ), np. int64 ( self. nucs... | [
-0.7431343793869019,
-0.4741734266281128,
0.3665345013141632,
-0.7828283905982971,
0.21971586346626282,
0.2770445942878723,
0.3919263482093811,
-0.7879164218902588,
0.13856762647628784,
-1.0715563297271729,
-0.11820190399885178,
0.2756168842315674,
0.5838911533355713,
0.4504179060459137,
... |
def plotindegdistr _ pngraph ( * args ) : return _ snap. plotindegdistr _ pngraph ( * args ) | [
-0.7446410059928894,
1.1821274757385254,
0.3571954667568207,
-0.7299232482910156,
-0.21000315248966217,
0.6950500011444092,
0.5747614502906799,
-0.3244136571884155,
-0.6753019094467163,
-0.20405161380767822,
-0.37756583094596863,
0.7119349837303162,
-0.8545255064964294,
-0.4357461333274841... |
def test _ initial ( self ) : field = omniurlfield. _ meta. get _ field ('initial _ data') self. assertisinstance ( field, models. urlfield ) self. asserttrue ( field. blank ) self. asserttrue ( field. null ) | [
0.6200215816497803,
0.2848389744758606,
0.34046125411987305,
-0.30004650354385376,
0.7828589081764221,
1.2590436935424805,
-0.21250396966934204,
0.5146039724349976,
0.45269981026649475,
-1.0021095275878906,
-0.6476870775222778,
0.27400508522987366,
-0.049744099378585815,
0.2792675495147705... |
def isxyin ( self, * args ) : return _ snap. tfltrect _ isxyin ( self, * args ) | [
-0.5060391426086426,
-0.056129392236471176,
0.41153743863105774,
-0.9894055724143982,
0.4246852993965149,
-0.5645766258239746,
0.3242175877094269,
0.34610122442245483,
-1.048962116241455,
-0.6159769892692566,
-1.1499278545379639,
-0.3006373345851898,
-0.7996104955673218,
-0.723265111446380... |
def remap ( self, qid = none, cid = none ) : if qid is none and cid is none : return self. clone ( ) elif qid is none : qid = list ( range ( self. qubit _ num ) ) elif cid is none : cid = list ( range ( self. cmem _ num ) ) # check qid if all ( [ isinstance ( q, int ) and q > = 0 for q in qid ] ) : pass else : raise ty... | [
0.268294095993042,
-0.510880708694458,
0.6893455386161804,
-0.5160680413246155,
-0.2868436574935913,
-0.23305220901966095,
0.4235250651836395,
-0.7668900489807129,
0.7116382122039795,
-0.18952341377735138,
0.03722381964325905,
0.36693474650382996,
-1.0324139595031738,
-0.7905934453010559,
... |
def getopponent ( self ) : return self. opponent | [
0.04275471344590187,
-0.8304632902145386,
0.7119864225387573,
-0.23219452798366547,
-0.39487582445144653,
0.5294382572174072,
0.3145834803581238,
0.48379194736480713,
-0.2803816497325897,
-0.13473142683506012,
0.2673183083534241,
-0.03873276337981224,
-0.5862874984741211,
-1.27952373027801... |
def transaction ( self ) - > optional [ transaction ] : if self. transaction _ id : return self. _ client. transaction ( self. transaction _ id ) | [
1.0513033866882324,
0.5679100751876831,
0.33587267994880676,
0.39129453897476196,
1.4490087032318115,
-1.0840657949447632,
-0.8322645425796509,
-0.8614647388458252,
1.2995052337646484,
-0.46728023886680603,
0.10901262611150742,
0.5140315890312195,
-0.742384672164917,
-1.0136280059814453,
... |
def test _ jref ( self ) : with self. app. app _ context ( ) : session = classic. current _ session ( ) submission _ to _ jref, _ = load ( self. submission. submission _ id ) event = setjournalreference ( creator = self. submitter, journal _ ref ='foo rev 1, 2 ( 1903 )') jref _ submission, _ = save ( event, submission ... | [
0.4482145309448242,
0.39666011929512024,
0.5724560022354126,
-0.47205352783203125,
0.4272823631763458,
0.17961598932743073,
0.27417123317718506,
0.27141618728637695,
0.027951659634709358,
-0.02818562649190426,
-0.511412501335144,
0.903948187828064,
-0.33506685495376587,
0.6966228485107422,... |
def alivesince ( self ) : pass | [
0.6923773288726807,
-0.7475941181182861,
0.6187279224395752,
0.7667975425720215,
0.014435265213251114,
1.9914720058441162,
-0.01283489353954792,
0.4199768304824829,
-0.5918595194816589,
0.22052977979183197,
-0.8867895007133484,
-0.7214024066925049,
-0.9204156398773193,
-0.2436118870973587,... |
def apply _ cr _ lines ( filename, cr _ lines ) : file _ lines = open ( filename ). readlines ( ) cr _ lines = [ ( cr [ 0 ], create _ cr _ comment ( cr [ 2 ] ) ) for cr in cr _ lines ] # i add 1 here because enumerate is zero based and line numbers in file are # 1 based. i add 0. 5 more to make sure that the cr comment... | [
0.873807430267334,
-1.1861891746520996,
0.6330769658088684,
0.7113240957260132,
0.7471523880958557,
0.494371622800827,
0.7418902516365051,
0.8032053112983704,
-0.5571497678756714,
0.33402231335639954,
0.5817480087280273,
-0.37112829089164734,
0.16101638972759247,
0.4500681757926941,
-0.6... |
def show _ plot ( save _ as = none ) : print ( config. backend _ interactive ) if config. backend _ interactive : plt. show ( ) else : fig = plt. gcf ( ) tmp _ name = time. strftime ( " % y - % m - % d _ % h - % m - % s " ) + '. png'path _ to _ fig = os. path. join ( config. path _ tmp _ fig, tmp _ name ) fig. savefig ... | [
1.1586029529571533,
0.32681116461753845,
0.817770779132843,
-0.3204273581504822,
0.05011342465877533,
0.37118789553642273,
0.9055164456367493,
0.31667226552963257,
-0.49165865778923035,
0.5252017378807068,
0.15671487152576447,
0.48172837495803833,
0.26425203680992126,
0.25094956159591675,
... |
def random ( cls, span = 1, seed = none ) : if seed is not none : random. seed ( seed ) def rand _ vect ( min, max ) : return ( random. uniform ( min, max ), random. uniform ( min, max ), random. uniform ( min, max ), ) while true : try : return cls ( origin = rand _ vect ( - span, span ), xdir = rand _ vect ( - 1, 1 )... | [
-0.19069169461727142,
0.6436655521392822,
0.41607406735420227,
-0.19308994710445404,
-0.8178725838661194,
0.07137788832187653,
0.8116267323493958,
-1.3505840301513672,
1.4237269163131714,
-1.1565158367156982,
-0.08023595064878464,
0.021876201033592224,
-0.19983500242233276,
0.1174231544137... |
def get _ client _ secret ( self, client _ key, request ) : raise notimplementederror ( " subclasses must implement this function. " ) | [
-0.4371192753314972,
-0.11311393231153488,
0.6351587772369385,
0.5686975121498108,
0.17008087038993835,
0.026000145822763443,
0.05251390114426613,
-1.1202279329299927,
-0.7971807718276978,
0.0011753919534385204,
-0.8345047235488892,
0.1471073031425476,
0.26655784249305725,
0.43283489346504... |
def gettypestr ( * args ) : return _ snap. tnotify _ gettypestr ( * args ) | [
0.49101823568344116,
0.6723666787147522,
0.2276459038257599,
0.7991700768470764,
1.0291246175765991,
0.4299898147583008,
0.3941652476787567,
-0.875895082950592,
-1.1066478490829468,
0.16248512268066406,
0.04690511152148247,
-1.331085443496704,
-0.9253507256507874,
0.6837316155433655,
1.0... |
def max ( self, * args ) : return _ snap. tstopwatch _ max ( self, * args ) | [
-1.1395217180252075,
0.7579135298728943,
0.4156980514526367,
0.6485174894332886,
1.1586107015609741,
0.5992035269737244,
-0.08328254520893097,
0.32638832926750183,
-1.1390349864959717,
-0.37181252241134644,
-0.21507222950458527,
-0.4916038513183594,
0.23993231356143951,
0.6493484973907471,... |
def test _ atomic _ language _ enumeration _ 2 _ nistxml _ sv _ iv _ atomic _ language _ enumeration _ 3 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - enumeration - 3. xsd ", instance = " nistda... | [
-0.36271995306015015,
-0.8067560791969299,
0.46020159125328064,
0.32035404443740845,
-0.48752397298812866,
0.347061425447464,
-0.47882527112960815,
0.09249267727136612,
0.4322304129600525,
1.2262277603149414,
-0.3219360113143921,
0.13707545399665833,
0.36714205145835876,
-0.234469190239906... |
def add _ selector _ id _ to _ jobs _ table ( storage : schedulestorage, print _ fn : optional [ printfn ] = none ) - > none : if print _ fn : print _ fn ( " querying storage. " ) with storage. connect ( ) as conn : # type : ignore rows = conn. execute ( db _ select ( [ jobtable. c. id, jobtable. c. job _ body, jobtabl... | [
-0.9036458134651184,
-0.46228867769241333,
0.6415426731109619,
-0.4441554546356201,
0.6612692475318909,
-0.9777784943580627,
-0.015461046248674393,
0.2483380138874054,
0.12240448594093323,
-0.09765541553497314,
-0.07693325728178024,
-0.47951874136924744,
0.2989138066768646,
0.0829463675618... |
def test _ clean _ calls _ assert _ has _ all _ required _ fields ( self, patched _ method ) : handler = omniformsaveinstancehandler ( name ='save instance ', order = 0, form = self. omni _ form ) handler. clean ( ) patched _ method. assert _ called _ with ( ) | [
-0.6252231001853943,
-0.04647842049598694,
0.5462243556976318,
-0.09248187392950058,
-0.12310992181301117,
1.0034862756729126,
-0.4787313938140869,
-0.17684507369995117,
0.42794114351272583,
0.29882243275642395,
-0.9523172378540039,
-0.7660422921180725,
-0.5331056118011475,
1.0031999349594... |
def tch _ ishex ( * args ) : return _ snap. tch _ ishex ( * args ) | [
-0.014980281703174114,
-0.3742004334926605,
0.45173099637031555,
0.04898285120725632,
0.8362643122673035,
0.8800205588340759,
-0.36460617184638977,
1.0260552167892456,
-0.43983080983161926,
0.6580182909965515,
-0.6539482474327087,
-0.5869334936141968,
-0.042667847126722336,
0.4855063259601... |
def endni ( self, * args ) : return _ snap. pungraph _ endni ( self, * args ) | [
-0.09207392483949661,
1.1754271984100342,
0.40453627705574036,
0.6544802784919739,
0.33969441056251526,
-0.9053671360015869,
-0.17639292776584625,
-0.060485415160655975,
-0.47310978174209595,
0.05038044974207878,
-1.6578465700149536,
-0.827039361000061,
-1.6001617908477783,
-0.258237689733... |
def test _ example _ input _ two _ select _ select _ value _ example _ multiple _ select ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) selected _ value = [ " option one " ] input _ page. create _ new... | [
-0.40824270248413086,
-0.24328060448169708,
0.5240929126739502,
0.8127846121788025,
1.0025757551193237,
0.5196725726127625,
-0.6638736128807068,
-0.6290743350982666,
0.2732768952846527,
-0.04601950943470001,
-0.573488712310791,
-0.009218317456543446,
0.8309703469276428,
0.11971547454595566... |
def ingest _ bucket _ to _ bq ( ) : envelope = request. get _ json ( ) if not envelope : logging. error ('no pub / sub message received.') return ('', 400 ) if not isinstance ( envelope, dict ) or'message'not in envelope : logging. error ('invalid pub / sub message format') return ('', 400 ) event = envelope ['message'... | [
-0.8237005472183228,
0.03417086973786354,
0.8881710767745972,
-0.14345809817314148,
1.114536166191101,
-0.5991065502166748,
-0.42392390966415405,
-0.31822189688682556,
-0.08609496057033539,
0.23730334639549255,
-0.46994948387145996,
0.7692316174507141,
-0.33812665939331055,
0.5461239218711... |
def victim ( self ) : if not self. buffer : raise valueerror ( " buffer blocks is empty " ) victim = self. buffer [ 0 ] for b in self. buffer : if b. timestamp < victim. timestamp : victim = b return victim | [
1.3622246980667114,
-0.8196129202842712,
0.7476567625999451,
-0.16750948131084442,
0.13710875809192657,
-0.016004765406250954,
0.4918609857559204,
-1.4943839311599731,
0.24322934448719025,
-0.1400972306728363,
-0.06023670360445976,
0.7792229652404785,
-0.8445090651512146,
-0.84426891803741... |
def write _ state ( ) : global g _ ready if g _ ready : with open ( g _ device _ state, " w " ) as file : logging. debug ( " writing out state to file " ) file. write ( json. dumps ( g _ state, sort _ keys = true, indent = 4 ) ) | [
-0.7099089026451111,
-0.5182977318763733,
0.30144649744033813,
-0.5754901170730591,
0.3693195581436157,
0.26337331533432007,
0.8322532176971436,
-0.5978018045425415,
-0.5549177527427673,
0.2055331915616989,
-0.254257470369339,
-0.027265943586826324,
0.48640716075897217,
0.5506225228309631,... |
def deserialize ( self, string ) : try : return self. _ deserializer ( string ) except ( valueerror, typeerror ) : return string | [
-0.11269737780094147,
-0.23646865785121918,
0.17524538934230804,
-0.21965652704238892,
-0.9516113996505737,
-0.19133229553699493,
-0.5209227800369263,
-0.6227208971977234,
0.38861411809921265,
-1.3109980821609497,
0.6449733972549438,
-0.21259649097919464,
-1.3267065286636353,
-1.3459976911... |
def gray2bgr ( img : np. ndarray ) - > np. ndarray : img = img [..., none ] if img. ndim = = 2 else img out _ img = cv2. cvtcolor ( img, cv2. color _ gray2bgr ) return out _ img | [
-0.8493382334709167,
0.46268266439437866,
0.6990911960601807,
0.6561049222946167,
0.49596062302589417,
0.06256049126386642,
-0.05516383424401283,
-1.16762375831604,
0.08524515479803085,
0.8759196400642395,
0.07742535322904587,
1.3159151077270508,
-0.1277369260787964,
1.3707205057144165,
... |
def plotboundary ( my _ svm, xmin, xmax, ymin, ymax ) : xvals = np. linspace ( xmin, xmax, 100 ) yvals = np. linspace ( ymin, ymax, 100 ) zvals = np. zeros ( ( len ( xvals ), len ( yvals ) ) ) for i in range ( len ( xvals ) ) : for j in range ( len ( yvals ) ) : zvals [ i ] [ j ] = float ( my _ svm. predict ( np. array... | [
0.5749602317810059,
0.33292660117149353,
0.7441704869270325,
0.7226579785346985,
-0.38146936893463135,
0.09030945599079132,
-0.3027876019477844,
0.8296241760253906,
-0.011372643522918224,
-0.41600608825683594,
-0.12503594160079956,
1.0920815467834473,
0.10337642580270767,
0.310777157545089... |
def births _ all ( b _ df, sim _ year, rand _ df = none, pop _ col ='persons') : # special case : no births, set rates to zero # when group quarters in ( " col ", " ins ", " mil ", " oth " ) b _ df. loc [ b _ df ['type']. isin ( ['col ','ins ','mil ','oth'] ), ['birth _ rate'] ] = 0 # total births = population * birth ... | [
-0.1675378382205963,
0.593646228313446,
0.8170783519744873,
0.26290953159332275,
0.37208107113838196,
0.4541207551956177,
1.0764862298965454,
-0.09191148728132248,
-0.02643379382789135,
0.5137917995452881,
0.19738490879535675,
-0.21243226528167725,
0.34648430347442627,
1.076279640197754,
... |
def _ _ call _ _ ( self, * args, * * kwargs ) : return self. onrequestservice ( * args, * * kwargs ) | [
-1.052553415298462,
-0.6266602277755737,
0.6305881142616272,
-0.2794701159000397,
-0.2019154578447342,
-0.0793507844209671,
-1.7511415481567383,
-0.9448549151420593,
-0.04361677169799805,
-1.258519172668457,
1.133516550064087,
0.2950456142425537,
-1.1089816093444824,
0.22159600257873535,
... |
def check _ play _ button ( mouse _ y, mouse _ x, play _ button, stats, ai _ settings, screen, aliens, ship, bullets, sb ) : button _ clicked = play _ button. rect. collidepoint ( mouse _ x, mouse _ y ) if button _ clicked and not stats. game _ active : start _ game ( stats, aliens, bullets, ship, ai _ settings, screen... | [
0.8993073105812073,
-0.6530537605285645,
0.7666475176811218,
0.7992157340049744,
0.5263678431510925,
0.7345529198646545,
-0.05531764775514603,
-0.9324619174003601,
0.11148176342248917,
0.9452774524688721,
0.0247916541993618,
-0.2672039866447449,
0.17381885647773743,
-0.4237518012523651,
... |
def ndcg ( ranking, rank = 10, idcg = none ) : if not idcg : idcg = dcg ( sorted ( ranking, reverse = true ), rank = len ( ranking ) ) return dcg ( ranking, rank = rank ) / idcg if idcg! = 0 else 0 | [
-0.3608977794647217,
1.5451847314834595,
0.45284777879714966,
-0.26604363322257996,
-0.5702202916145325,
-1.0843852758407593,
-0.37907519936561584,
0.14410832524299622,
0.14708498120307922,
0.923816978931427,
0.1319778859615326,
-0.639384925365448,
-0.5386552810668945,
0.6059914827346802,
... |
def _ generateannotations ( self ) : annotations = [ ] for node in self. digraph : if self. digraph. nodes [ node ] ['type'] = ='pid': annotations. append ( dict ( text = " { 0 } < br > pid : { 1 } ". format ( self. nodemetadata [ node ] ['name'], self. nodemetadata [ node ] ['pid'] ), x = self. pos [ node ] [ 0 ], y =... | [
-0.6680539846420288,
0.15262027084827423,
0.5930625200271606,
-1.0467453002929688,
0.012961030937731266,
0.03248903527855873,
-0.28034302592277527,
0.22472573816776276,
-1.089483380317688,
0.701087474822998,
-0.09607776999473572,
-0.09087031334638596,
0.2629386782646179,
0.7143616080284119... |
def create _ message _ format ( ) : message = mimetext ( " this is the content of the e mail ( might have some html ) " ) message ['to'] = " juandara2222 @ gmail. com " message ['from'] = " juandara2222 @ gmail. com " message ['subject'] = " test subject " print ( " > > message : ", message ) print ( " > > message as s... | [
0.06982927769422531,
-0.48666396737098694,
0.3653678297996521,
-1.2229335308074951,
-0.9219923615455627,
-0.4730546176433563,
-0.7307630181312561,
0.010019914247095585,
0.009916865266859531,
-0.2835422158241272,
-0.316037118434906,
0.32666921615600586,
-0.44780853390693665,
0.1992746740579... |
def _ _ init _ _ ( self, client _ id, client _ secret ) : self. client _ id = client _ id self. client _ secret = client _ secret self. token = self. get _ access _ token ( ) | [
1.3485751152038574,
-1.0795960426330566,
0.45666638016700745,
-0.1988612711429596,
0.24680694937705994,
-0.3809308111667633,
-0.9681138396263123,
0.377104789018631,
-0.6583423018455505,
-0.10332416743040085,
-0.1672835499048233,
1.3430817127227783,
0.7918717861175537,
-0.001161308260634541... |
def getrndnid ( self, * args ) : return _ snap. tnegraph _ getrndnid ( self, * args ) | [
0.48760369420051575,
0.8616167902946472,
0.3844621777534485,
0.3590225875377655,
0.16912034153938293,
0.2179090529680252,
-0.1648160219192505,
-0.23831069469451904,
-0.8687744140625,
0.09377314895391464,
-1.0670664310455322,
-0.37412598729133606,
-0.8469212055206299,
0.7611274719238281,
... |
def test _ example _ input _ one _ select _ value _ example _ radio ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. create _ new _ input. select ( " example input one " ) input _ page. en... | [
-0.30086350440979004,
0.16814127564430237,
0.20034457743167877,
0.09702880680561066,
0.5552377700805664,
0.7150588631629944,
-0.12882889807224274,
-0.6507169008255005,
0.016568899154663086,
0.022358089685440063,
-0.21550552546977997,
0.010839827358722687,
-0.08698685467243195,
-0.032644793... |
def parse ( self, input _ ) : # validate input : if input _ is none and not self. _ is _ optional : raise valueerror ('message is not optional') elif input _ is none and self. _ is _ optional : return none elif not isinstance ( input _, list ) : raise valueerror ('message expected list but got { } '. format ( type ( in... | [
-0.3106611669063568,
0.35599610209465027,
0.6195212006568909,
-0.09377411752939224,
-0.025854717940092087,
-0.04456532746553421,
0.32222113013267517,
-0.9103350639343262,
0.4773547649383545,
-0.35212263464927673,
-0.5557011961936951,
-0.3475859463214874,
-0.9635428190231323,
0.935431838035... |
def construct ( self, x ) : return x | [
-0.5954700708389282,
-0.4760664403438568,
0.09690207242965698,
-0.5937249064445496,
-0.9754511117935181,
0.7377301454544067,
-0.4308323264122009,
-0.3942965269088745,
0.4267730712890625,
-1.6144073009490967,
-1.0583326816558838,
0.13015352189540863,
1.1388137340545654,
-0.5271915197372437,... |
def test _ specific ( self ) : base _ instance = omniformhandler. objects. get ( pk = self. handler. pk ) instance = base _ instance. specific self. assertisinstance ( base _ instance, omniformhandler ) self. assertnotisinstance ( base _ instance, omniformemailhandler ) self. assertisinstance ( instance, omniformemailh... | [
-0.1362312138080597,
-0.10016585886478424,
0.10861492902040482,
-0.0410916730761528,
-0.09811869263648987,
1.0774508714675903,
-0.34184321761131287,
0.48583146929740906,
0.574988067150116,
-1.0560448169708252,
-0.7484293580055237,
1.0124592781066895,
-0.18757088482379913,
0.427687257528305... |
def _ _ init _ _ ( self, * args ) : _ snap. tngraphnodei _ swiginit ( self, _ snap. new _ tngraphnodei ( * args ) ) | [
-0.871026873588562,
1.0544434785842896,
-0.299434632062912,
-0.11247367411851883,
-0.2262398600578308,
-0.11749916523694992,
0.3365168571472168,
-0.024472933262586594,
-1.5976871252059937,
1.1636565923690796,
-0.8615790605545044,
-0.4580379128456116,
-0.24666717648506165,
0.614693880081176... |
def endni ( self, * args ) : return _ snap. pngraphmp _ endni ( self, * args ) | [
0.12224803119897842,
0.896008312702179,
0.3310041129589081,
-0.30788007378578186,
1.4688454866409302,
-0.5033247470855713,
-0.12444379925727844,
-1.3674954175949097,
-1.0424622297286987,
-0.4426105320453644,
-1.120237946510315,
-0.4995247721672058,
-1.5491421222686768,
-0.19269482791423798... |
def load _ data ( file _ path, folder = none ) : pkl = load _ pkl _ data ( file _ path, folder = folder ) meta = load _ csv _ metadata ( file _ path, folder = folder ) data _ dictionary = { * * meta, * * pkl } for key in data _ dictionary. keys ( ) : data _ dictionary [ key ] = np. array ( data _ dictionary [ key ] ) r... | [
-0.19012728333473206,
0.23164157569408417,
0.29736384749412537,
-0.6845303773880005,
-0.6937403678894043,
0.5819977521896362,
-0.684820830821991,
0.862857460975647,
-1.3271806240081787,
0.008048941381275654,
-0.7859776020050049,
0.3609808683395386,
0.7258898615837097,
0.37510940432548523,
... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tintstrhi _ _ _ lt _ _ ( self, * args ) | [
0.8327456116676331,
-0.9860105514526367,
0.2828414738178253,
-0.27149978280067444,
0.14897899329662323,
-0.8394110798835754,
-0.04268304258584976,
-1.0626944303512573,
-0.8848322629928589,
-0.5845534205436707,
-0.624404788017273,
-0.5545182228088379,
-0.6699838638305664,
0.0999000072479248... |
def delsattrdatn ( self, * args ) : return _ snap. tundirnet _ delsattrdatn ( self, * args ) | [
-0.8607213497161865,
-0.6087213158607483,
0.1771337389945984,
-1.0415279865264893,
-0.34165138006210327,
0.15730580687522888,
0.6186627745628357,
-0.49485069513320923,
-0.13405118882656097,
-0.9466407299041748,
-0.3544955849647522,
0.44701898097991943,
0.45191866159439087,
0.51549082994461... |
def test _ atomic _ base64 _ binary _ pattern _ 1 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ pattern _ 2 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - pattern - 2. xsd ", instance ... | [
-0.24566568434238434,
-0.3708699345588684,
0.5526875257492065,
1.341982126235962,
0.08279738575220108,
0.22240641713142395,
0.034681644290685654,
-0.048453137278556824,
-0.12859342992305756,
0.33918407559394836,
-0.47114601731300354,
0.2981831729412079,
-0.2595401108264923,
0.0553267523646... |
def getnodeclustcf _ pngraph ( * args ) : return _ snap. getnodeclustcf _ pngraph ( * args ) | [
-0.8686640858650208,
0.9546382427215576,
0.032172828912734985,
-0.1292273849248886,
-0.11558550596237183,
-0.5686800479888916,
0.5325599312782288,
-0.4736799895763397,
-1.0703693628311157,
-0.21068942546844482,
-0.16738976538181305,
0.7480589747428894,
-0.07550033181905746,
-0.251226782798... |
def tsneplot ( x ='tsne _ 1 ', y ='tsne _ 2 ', data = none, hue = none, cmap = none, palette = none, ax = none, class _ names = none, legend _ kws = none, cbar = true, * * kwargs ) : defaults = {'vmin': 0,'vmax': 5,'edgecolor':'k ', } defaults. update ( kwargs ) df = data. copy ( ) if ax is none : fig, ax = plt. subplo... | [
0.19923712313175201,
1.0263690948486328,
0.8468046188354492,
-0.42645055055618286,
-0.2456177920103073,
-0.4280107617378235,
-0.31456178426742554,
0.27177345752716064,
0.21147547662258148,
-0.006769874133169651,
-0.4581291675567627,
0.7772958874702454,
0.6338506937026978,
0.530564546585083... |
def create _ ex2 ( cls, img, elev _ unit, dinner, douter, dens _ t, dens _ w, elev _ w, edge, edge _ elev, opt, survey _ type, img2 ) : ret _ val = gxapi _ cy. wraptc. _ create _ ex2 ( gxcontext. _ get _ tls _ geo ( ), img, elev _ unit, dinner, douter, dens _ t, dens _ w, elev _ w, edge, edge _ elev, opt, survey _ type... | [
-0.15968872606754303,
0.11085427552461624,
0.5144894123077393,
-0.08664404600858688,
-0.5961746573448181,
0.07105397433042526,
-0.37651097774505615,
-0.6907017827033997,
0.0006477684946730733,
0.04467581957578659,
0.730830192565918,
0.573289692401886,
0.7144930958747864,
0.2348193228244781... |
def getwccs _ pneanet ( * args ) : return _ snap. getwccs _ pneanet ( * args ) | [
-1.0767196416854858,
0.36859971284866333,
0.38655880093574524,
0.10975145548582077,
-0.01147413533180952,
-0.7791464328765869,
-0.20285511016845703,
-1.3611150979995728,
-0.4235396385192871,
-0.7134215235710144,
-0.3568493723869324,
-0.7694750428199768,
-1.0431239604949951,
0.1398649960756... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tstrstrhi _ _ _ lt _ _ ( self, * args ) | [
0.3278541564941406,
-0.49785709381103516,
0.15955039858818054,
-1.184394359588623,
0.7221739292144775,
0.31263282895088196,
0.049891334027051926,
-1.2873992919921875,
-1.284915804862976,
-0.4896800220012665,
-0.7903717160224915,
-1.3589104413986206,
-1.0192440748214722,
0.1797347366809845,... |
def hp ( hp = 0 ) : target = spellbook. gettarget ( ) if hp = = 0 : target. b _ sethp ( target. getmaxhp ( ) ) return hp = max ( 0, min ( hp, target. getmaxhp ( ) ) ) target. b _ sethp ( hp ) return'your hp has been set to % d.'% hp | [
-0.07503321021795273,
0.4058609902858734,
0.5426804423332214,
1.3565717935562134,
0.5226747989654541,
0.3444150984287262,
-0.043668363243341446,
0.8246254324913025,
-0.22746588289737701,
0.24064478278160095,
0.49075135588645935,
0.6378263831138611,
-0.49655821919441223,
-0.4731578230857849... |
def initial _ point ( self, x, y ) : if self. xmin is none : if self. xmax is none : self. xmax = x + self. min _ width / 2 self. xmin = self. xmax - self. min _ width if self. ymin is none : if self. ymax is none : self. ymax = y + self. min _ height / 2 self. ymin = self. ymax - self. min _ height if self. xmax is no... | [
-0.022520247846841812,
-0.49798065423965454,
0.5835124254226685,
-0.48098236322402954,
0.06864727288484573,
0.05457928776741028,
-0.7441508173942566,
-0.12067867070436478,
0.16448210179805756,
0.24741418659687042,
-0.6446879506111145,
1.0000596046447754,
-0.06272538751363754,
0.41022714972... |
def delifkey ( self, * args ) : return _ snap. tintinth _ delifkey ( self, * args ) | [
-0.6033363342285156,
0.5686053037643433,
0.3092368543148041,
0.5371601581573486,
0.4193698763847351,
0.03823247179389,
-0.04246702045202255,
-0.7829139828681946,
-0.5515817999839783,
0.30706629157066345,
-0.5064218044281006,
0.4429595172405243,
-2.0039141178131104,
0.759048342704773,
-0.... |
def getinitproposition ( self ) : return self. initproposition | [
-0.29236099123954773,
-0.9363096952438354,
0.5527819991111755,
0.48118171095848083,
-0.06969445198774338,
0.053935885429382324,
0.3908092975616455,
-0.0196521133184433,
-0.10768923908472061,
0.4886132478713989,
-0.6163449287414551,
-0.651687741279602,
-1.136009931564331,
-0.932892560958862... |
def _ _ init _ _ ( self, * args ) : _ snap. tconv _ pt64ints32 _ swiginit ( self, _ snap. new _ tconv _ pt64ints32 ( * args ) ) | [
-0.3892707824707031,
0.929090678691864,
0.07314334064722061,
-0.3644539713859558,
-0.9912181496620178,
0.43221408128738403,
-0.5190345644950867,
0.06601528078317642,
-0.9807047843933105,
0.3345750868320465,
0.3355553448200226,
-0.5093940496444702,
0.319473534822464,
0.36316779255867004,
... |
def readfltcol ( self, * args ) : return _ snap. ptable _ readfltcol ( self, * args ) | [
-0.23641438782215118,
0.09466619044542313,
0.5966590046882629,
0.34475523233413696,
0.9191051721572876,
-0.33697807788848877,
1.3132458925247192,
-1.43486750125885,
-1.6108676195144653,
-0.6311886310577393,
-0.11751080304384232,
-0.0622209832072258,
-0.3055655062198639,
0.5961728692054749,... |
async def generate _ keymaster _ locks ( hass : homeassistant, config _ entry : configentry ) - > tuple [ keymasterlock, list [ keymasterlock ] ] : ent _ reg = async _ get _ entity _ registry ( hass ) primary _ lock = keymasterlock ( config _ entry. data [ conf _ lock _ name ], config _ entry. data [ conf _ lock _ enti... | [
0.24709391593933105,
-0.4217911958694458,
0.49784645438194275,
0.10373345762491226,
0.04004466161131859,
0.6523540019989014,
-0.4943453073501587,
0.7098305225372314,
-0.014010805636644363,
0.6101002097129822,
-0.7621102929115295,
0.4195469319820404,
0.41109517216682434,
0.7708525061607361,... |
def runrdrgroup ( self, event, plot ) : # # run rdr for group of lines if event! ='' : self. calcrdr ( grain = self. currdicgrain, group = int ( event ) ) self. rdrgroupbox. set _ val ('' ) | [
0.19871878623962402,
0.16413550078868866,
0.3685334324836731,
-1.0244113206863403,
0.08383937180042267,
-0.010402939282357693,
0.7626166939735413,
-0.3303035795688629,
-0.27655139565467834,
-0.15015403926372528,
0.7228711247444153,
0.3859478533267975,
-0.6821852922439575,
1.177576065063476... |
def aligneddistancec ( x, y ) : if len ( x ) % 3! = 0 or len ( y ) % 3! = 0 : raise runtimeerror ( " 3d array has a number of entries not divisible \ by 3. " ) ats = int ( len ( x ) / 3 ) dists = np. zeros ( [ ats * ats ] ) distsa = np. zeros ( [ ats * ats ] ) distsb = np. zeros ( [ ats * ats ] ) support ='# include < ... | [
0.8129059672355652,
-0.3086230158805847,
0.8855087161064148,
-0.6858251094818115,
-0.7292928099632263,
0.5238492488861084,
0.27557605504989624,
-0.1228092834353447,
0.2046065330505371,
0.8879671096801758,
-0.08293521404266357,
0.2620130181312561,
0.10553617030382156,
-0.11579103022813797,
... |
def test _ inputs _ title _ and _ description ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) self. assert _ util ( input _ page. title. wait _ to _ display, " inputs " ) self. assert _ util ( input _ ... | [
0.4080873131752014,
0.42224717140197754,
0.486918181180954,
-0.155283585190773,
0.4924713373184204,
0.9367202520370483,
-0.6365764141082764,
0.019569192081689835,
0.24728749692440033,
-0.5175475478172302,
0.7654638886451721,
0.17705969512462616,
-0.03590903803706169,
0.1855548620223999,
... |
def _ _ eq _ _ ( self, * args ) : return _ snap. tintprv _ _ _ eq _ _ ( self, * args ) | [
-1.800764799118042,
-0.3769727647304535,
0.1673058569431305,
-0.5278224349021912,
0.16723674535751343,
0.09609882533550262,
-0.18213219940662384,
0.26420870423316956,
-0.27092450857162476,
0.0031146882101893425,
-0.9737917184829712,
-0.6991205811500549,
-0.9349085092544556,
0.3720945119857... |
def test _ notwindows ( self ) : self. patch ( os, " name ", " twisted " ) built = self. buildscripts ( ) for name in ['script1 ','script2. py ','shell. sh'] : self. asserttrue ( name in built ) | [
-0.2935856580734253,
-0.991060197353363,
0.4495236277580261,
0.5701716542243958,
0.26140066981315613,
1.2816057205200195,
-0.09464215487241745,
0.08413279056549072,
0.4477744996547699,
-0.26837432384490967,
-0.9503664374351501,
0.6504333019256592,
-0.8976386189460754,
1.3396321535110474,
... |
def voigtnorm ( v ) : # diagonals once, off diagonals twice return sqrt ( np. sum ( v * v ) + np. sum ( v [ 3 : 6 ] * v [ 3 : 6 ] ) ) | [
0.17721478641033173,
-0.571704089641571,
0.11116768419742584,
-0.5487927198410034,
-0.26263171434402466,
-0.5555084943771362,
0.21537907421588898,
0.4360853433609009,
1.33182954788208,
1.3014638423919678,
-0.8340146541595459,
0.14266140758991241,
-0.33222609758377075,
-0.4462983012199402,
... |
def set _ daemon ( self ) : self. daemon = true | [
0.13629701733589172,
-0.696035623550415,
0.4234914481639862,
-0.3631144165992737,
0.9410043954849243,
1.0218638181686401,
-0.07938159257173538,
0.798342764377594,
-0.2650218605995178,
-1.780057668685913,
-0.679072916507721,
1.3997315168380737,
-0.2594001591205597,
0.7163376212120056,
0.3... |
def post _ code ( self, post _ code ) : if post _ code is not none and len ( post _ code ) > 16 : raise valueerror ( " invalid value for ` post _ code `, length must be less than or equal to ` 16 ` " ) # noqa : e501 if post _ code is not none and len ( post _ code ) < 1 : raise valueerror ( " invalid value for ` post _... | [
0.05309070274233818,
0.7126273512840271,
0.07343333959579468,
0.26240333914756775,
0.163718119263649,
0.5544134974479675,
0.16105055809020996,
0.7624106407165527,
-0.3947599530220032,
0.03403979912400246,
-0.7557334303855896,
-0.6146901249885559,
-0.2781987488269806,
0.17680127918720245,
... |
def to _ device ( batch : any, device : union [ str, torch. device ] ) - > tuple [ t, t ] : _, x, y = batch return x. to ( device ), y. to ( device ) | [
-0.8685064911842346,
0.23604878783226013,
0.21882589161396027,
0.469901978969574,
-0.06011100113391876,
0.16319148242473602,
-0.4703916013240814,
-0.8271204829216003,
-0.7047259211540222,
0.5415148138999939,
-0.7641937732696533,
0.45762184262275696,
0.5626570582389832,
-0.654667317867279,
... |
def setval ( self, * args ) : return _ snap. tstrv _ setval ( self, * args ) | [
-1.1328009366989136,
0.827479898929596,
0.1780187338590622,
-0.08778879791498184,
0.10898598283529282,
0.2013511210680008,
0.9903196096420288,
0.6701652407646179,
-1.0454732179641724,
-0.2666131854057312,
-0.3586964011192322,
-0.21767275035381317,
0.7216387987136841,
0.3799121677875519,
... |
def recall _ score ( y _ true, y _ proba, thres = thres ) : # get prediction y _ pred = k. cast ( k. greater ( y _ proba, thres ), dtype ='float32') # calc true _ positives = k. sum ( k. round ( k. clip ( y _ true * y _ pred, 0, 1 ) ) ) possible _ positives = k. sum ( k. round ( k. clip ( y _ true, 0, 1 ) ) ) recall = ... | [
1.2871922254562378,
-0.2557927072048187,
0.5912453532218933,
-0.03939623013138771,
0.18074113130569458,
0.25315389037132263,
-0.9869182109832764,
0.1334938406944275,
-0.48642709851264954,
0.9973231554031372,
0.3624279499053955,
0.2865196764469147,
-0.11687450110912323,
-0.43470171093940735... |
def county ( self, county ) : self. _ county = county | [
0.21058061718940735,
-0.05801298841834068,
-0.061318423599004745,
0.8008818030357361,
-0.5392137765884399,
0.8902865052223206,
0.8857512474060059,
0.695044994354248,
-0.89492267370224,
-0.9304019212722778,
-1.015565037727356,
0.4278644919395447,
0.016302859410643578,
1.1046006679534912,
... |
def istree _ pngraph ( * args ) : return _ snap. istree _ pngraph ( * args ) | [
-1.0252058506011963,
1.0164586305618286,
0.39635640382766724,
0.259278804063797,
-0.19206561148166656,
0.3446893095970154,
-0.3104865252971649,
-0.22557005286216736,
-0.4381738305091858,
0.5620688199996948,
-0.7551298141479492,
0.22694849967956543,
-1.3391001224517822,
0.09619436413049698,... |
def getdat ( self, * args ) : return _ snap. tintboolhi _ getdat ( self, * args ) | [
0.8787587881088257,
-0.03954529017210007,
0.47855666279792786,
0.5249502658843994,
1.294651985168457,
0.8738499879837036,
-0.17035198211669922,
-1.0066626071929932,
-1.83225417137146,
-0.43579140305519104,
-0.015256843529641628,
0.1028488352894783,
-0.9858596920967102,
-0.6064563393592834,... |
def invoice _ number ( self, invoice _ number ) : self. _ invoice _ number = invoice _ number | [
-0.3446826934814453,
-0.9083788394927979,
0.41745784878730774,
0.5042899250984192,
0.4132483899593353,
-0.24138709902763367,
0.35713768005371094,
1.329735517501831,
-0.21132105588912964,
-0.7430239319801331,
-0.7172099947929382,
0.4520546793937683,
0.5232425332069397,
0.3683829605579376,
... |
def do _ proc ( self, resp, ecg, tr, physfs, tshift = 0 ) : # get pointer ot resp and ecg data array resp _ arr = np. array ( resp, dtype = np. float64 ) resp _ ptr = resp _ arr. ctypes. data _ as ( ctypes. pointer ( ctypes. c _ float ) ) ecg _ arr = np. array ( ecg, dtype = np. float64 ) ecg _ ptr = ecg _ arr. ctypes.... | [
0.5000519752502441,
-0.023463627323508263,
0.7956141829490662,
-1.5833029747009277,
0.40560898184776306,
-0.5050618648529053,
-0.2572917640209198,
-0.3671116232872009,
0.8581110835075378,
-0.1090114414691925,
0.9644948840141296,
-0.20986351370811462,
-0.41123390197753906,
-0.58840149641036... |
def _ _ init _ _ ( self, path ) : self. name = " feedextractor " self. log = logging. getlogger ( _ _ name _ _ + ". " + self. name ) self. log. debug ( " initialising new feedextractor " ) self. is _ podcast = false self. path = path if not os. path. isfile ( self. path ) : self. log. error ( str ( self. path ) + " is ... | [
0.018908191472291946,
-0.9160295128822327,
0.6826519966125488,
-0.19283181428909302,
0.05330280214548111,
-0.6206275224685669,
-0.6206698417663574,
-0.3106021583080292,
-0.13147787749767303,
-0.7754462957382202,
0.09581202268600464,
0.25364023447036743,
-0.4846201539039612,
0.3265569210052... |
def _ _ init _ _ ( self, msg = none, errors = none, cause = none ) : super ( preservationexception, self ). _ _ init _ _ ( msg, cause, sys = sys ) self. errors = [ ] if errors : self. errors. extend ( errors ) | [
0.21136006712913513,
0.6574358940124512,
0.5543741583824158,
0.6619489192962646,
0.44596657156944275,
-0.633802056312561,
-0.42569413781166077,
1.6756829023361206,
0.8002527356147766,
-0.6213191151618958,
-0.2481847107410431,
-0.07982653379440308,
-0.46661368012428284,
0.6456031799316406,
... |
def _ _ forward _ hook ( self, layer _ name ) : def hook ( module, input, output ) : self. intermediate _ outputs [ layer _ name ] = output return hook | [
-0.4184580445289612,
-0.7630433440208435,
0.3591025173664093,
-0.6683188080787659,
-0.1836482137441635,
-0.21208712458610535,
1.1215054988861084,
0.09801225364208221,
-0.5839603543281555,
0.16832587122917175,
-0.10838516056537628,
-0.05589918792247772,
0.14240579307079315,
0.09133656322956... |
def test _ reload ( self ) : import imp imp. reload ( imp ) self. asserttrue ( true ) | [
-0.550891101360321,
0.6176590323448181,
0.4608592987060547,
0.6511678099632263,
0.9801312685012817,
0.8757011890411377,
0.1916550248861313,
0.5811777114868164,
0.7983722686767578,
-0.12658871710300446,
-1.1189460754394531,
0.2728493809700012,
-0.8224281072616577,
-1.5684738159179688,
-0.... |
def test _ list _ decimal _ min _ length _ 4 _ nistxml _ sv _ iv _ list _ decimal _ min _ length _ 5 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - minlength - 5. xsd ", instance = " nistdata / list / ... | [
-0.30916765332221985,
-0.38030651211738586,
0.39550164341926575,
0.3642079532146454,
-0.4586150646209717,
-0.28750133514404297,
-0.04900823161005974,
-0.4081084430217743,
0.8259224891662598,
-0.02956070564687252,
-1.2750390768051147,
-0.3156944215297699,
-0.722232460975647,
0.4098117649555... |
def create _ state ( self ) : hamiltonian = self. leapfrog. hamiltonian positions = self. parameter. get ( ). copy ( ) momenta = hamiltonian. sample _ momenta ( positions ) # todo : there is space for speed up by using previously calculated log # prob value potential _ energy = hamiltonian. potential _ energy ( positio... | [
0.4609455168247223,
-0.8126713037490845,
0.30031970143318176,
-0.35060447454452515,
-0.21970628201961517,
0.3929193913936615,
-0.24820949137210846,
0.33790552616119385,
-0.5054401755332947,
-0.429046630859375,
-0.07986482977867126,
-0.6412152647972107,
-0.5508232712745667,
0.06651233136653... |
def get _ stream _ url ( self, session _ id, stream _ id = none ) : url = self. api _ url +'/ v2 / project /'+ self. api _ key +'/ session /'+ session _ id +'/ stream'if stream _ id : url = url +'/'+ stream _ id return url | [
0.22833792865276337,
-0.32090914249420166,
0.5388548374176025,
0.7146239876747131,
0.5342909693717957,
0.11178679764270782,
-0.5748372077941895,
-0.0764562115073204,
0.701153039932251,
0.04132531210780144,
0.19436202943325043,
1.6682008504867554,
-0.42073968052864075,
0.5394301414489746,
... |
def done ( self ) : flag = self. num _ samples _ collected > = self. target _ steps if flag : self. update _ worker. stop ( ) print ( colorize ( " \ ntraining finished! ", color = " green ", bold = true ) ) time. sleep ( 10 ) # ray. shutdown ( ) sys. exit ( ) return flag | [
-0.40447643399238586,
0.28648027777671814,
0.8015185594558716,
-0.05855514481663704,
0.4128725826740265,
1.0355464220046997,
0.31036168336868286,
-0.47091570496559143,
-0.9814549088478088,
0.5386202931404114,
-0.10175863653421402,
-0.20629079639911652,
-0.7770981788635254,
0.32369494438171... |
def _ createhockikhierarchy ( self ) : ik _ hock _ ctl = mc. circle ( n = " { } _ { } _ hockik _ ctl _ { } ". format ( self. side, self. name, self. instance _ num ), r = 1 ) [ 0 ] ik _ hock _ grp = mc. group ( ik _ hock _ ctl, n = ik _ hock _ ctl. replace ( " ctl ", " grp " ) ) ik _ hock _ zero = mc. group ( ik _ hock... | [
-0.1887512505054474,
0.6204066872596741,
1.0013235807418823,
0.1672222912311554,
0.033056192100048065,
-0.350626140832901,
1.2669198513031006,
-0.6139216423034668,
-0.7487961053848267,
-0.27576133608818054,
-0.020362764596939087,
-0.9307646155357361,
-0.17091818153858185,
0.891737878322601... |
def getintattrdatn ( self, * args ) : return _ snap. pneanetmp _ getintattrdatn ( self, * args ) | [
-0.6023203134536743,
-0.19255821406841278,
0.49386709928512573,
0.46314650774002075,
0.45680540800094604,
0.1535387486219406,
0.2587003707885742,
-0.3677659034729004,
-1.098598837852478,
-1.0109648704528809,
-0.7570027709007263,
-0.35995498299598694,
-0.8965678811073303,
0.3298276662826538... |
def hasflag ( self, * args ) : return _ snap. pungraph _ hasflag ( self, * args ) | [
0.19775886833667755,
0.5984887480735779,
0.5956900119781494,
0.8244044780731201,
0.8784904479980469,
0.3657035827636719,
0.21970054507255554,
1.2595748901367188,
-0.7401163578033447,
-1.2853376865386963,
-1.138700246810913,
-0.6597467660903931,
-0.8638155460357666,
0.9180782437324524,
-0... |
def plotshortpathdistr _ pungraph ( * args ) : return _ snap. plotshortpathdistr _ pungraph ( * args ) | [
0.3037869930267334,
0.1665707677602768,
0.09371890872716904,
-0.007834523916244507,
-0.7653157711029053,
0.4329209625720978,
0.8241178393363953,
0.8778204917907715,
0.3802332878112793,
-0.6599833369255066,
-0.49798011779785156,
0.23368577659130096,
-0.23111632466316223,
0.10628267377614975... |
def toggle _ menu ( self ) : if not self. menu _ open : self. open _ menu ( ) else : self. close _ menu ( redirect = self. current ) | [
-1.3300400972366333,
-0.30362468957901,
0.5450167655944824,
0.5210391879081726,
0.3874650299549103,
0.7036320567131042,
0.47433415055274963,
1.6852985620498657,
0.6667510271072388,
-0.5179767608642578,
1.139234185218811,
-0.3404787480831146,
-0.7456579208374023,
0.6321440935134888,
0.629... |
def case _ ins _ oth ( pop, ratios, gq _ type ) : ratios _ hp = ( ratios [ ratios ['type'] = ='hp'] ). copy ( ) ratios _ hp ['pop _ special _ case'] = ( ratios _ hp ['case _ ratio'] * ratios _ hp ['persons'] ). round ( ) ratios _ hp ['type'] = gq _ type ratios _ hp = ratios _ hp. drop ( ['persons ','case _ ratio ','yr'... | [
-0.5471446514129639,
0.20500464737415314,
0.7290112972259521,
0.025397896766662598,
0.18633456528186798,
0.5837215185165405,
0.44216281175613403,
0.22784169018268585,
-0.03603847697377205,
0.6295276880264282,
0.43994852900505066,
0.13375821709632874,
0.7062075734138489,
0.28515660762786865... |
def _ _ init _ _ ( self, * args ) : _ snap. tstrstrintprvhi _ swiginit ( self, _ snap. new _ tstrstrintprvhi ( * args ) ) | [
-0.05299000442028046,
-0.6727570295333862,
0.30551081895828247,
0.10709600895643234,
-0.5158017873764038,
0.44261717796325684,
0.37858501076698303,
0.05439084395766258,
-1.2922691106796265,
0.2225511372089386,
0.19056542217731476,
-0.2668396830558777,
-1.3329397439956665,
0.785635054111480... |
def deletemultipledevices ( self, listofdevices ) : bulkremove = apiclient. bulkremoveurl % ( self. host ) r = requests. post ( bulkremove, auth = self. credentials, data = json. dumps ( listofdevices ), headers = {'content - type':'application / json'}, verify = self. verify ) status = r. status _ code if status = = 2... | [
-1.8148449659347534,
-0.056701093912124634,
0.5789039731025696,
0.7588772177696228,
-0.1184016540646553,
-0.7131684422492981,
0.18709464371204376,
-0.36114487051963806,
0.6715754866600037,
0.8141403794288635,
-0.848588764667511,
0.2724531292915344,
-1.3764108419418335,
1.2179923057556152,
... |
def test _ story _ teller _ renders ( self ) : c = adminclient ( ) response = c. get ( reverse ('profile _ detail ', args = ['nope'] ) ) self. assertequal ( response. status _ code, 404 ) response = c. get ( reverse ('storyteller _ detail ', args = ['admin'] ) ) self. assertequal ( response. status _ code, 200 ) self. ... | [
0.36784517765045166,
0.7893900275230408,
0.6070762276649475,
0.324986070394516,
0.8343149423599243,
0.9155583381652832,
0.748815655708313,
-0.1875573694705963,
0.13753758370876312,
-0.3987584412097931,
0.45663195848464966,
0.037376563996076584,
0.33808034658432007,
0.5694986581802368,
0.... |
def save ( xmpp, core = none ) : save _ local ( ) def _ cb ( core, iq ) : if iq [ " type " ] = = " error " : core. information ('could not save bookmarks. ','error') elif core : core. information ('bookmarks saved ','info') if config. get ('use _ remote _ bookmarks') : preferred = config. get ('use _ bookmarks _ method... | [
-0.14449024200439453,
0.23065185546875,
0.5095958709716797,
0.1814563125371933,
0.48897093534469604,
-0.24699176847934723,
0.7180047035217285,
-0.4221061170101166,
-0.4663650691509247,
0.853422224521637,
-1.3572920560836792,
0.3292834460735321,
-1.3637769222259521,
0.4180861711502075,
0.... |
def isstrattre ( self, * args ) : return _ snap. pneanetmp _ isstrattre ( self, * args ) | [
-0.4002639353275299,
0.09732115268707275,
0.3218845725059509,
-0.03531847521662712,
1.3760703802108765,
-0.32343533635139465,
-0.27815690636634827,
-1.2230198383331299,
-0.00221613678149879,
-0.4208550751209259,
-0.5496458411216736,
-0.627741813659668,
-1.7476215362548828,
-0.0511808246374... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.