text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def note ( user _ id : str, channel : str, text : str ) - > union [ none, str ] : user _ id = user _ id. strip ( " < > @ " ) # retrieve current user with database. session _ manager ( ) as session : user = session. get ( karmauser, user _ id ) cmd, _ = _ parse _ note _ cmd ( text ) note _ cmd _ fnc = note _ commands. g... | [
0.1471947282552719,
-0.226084366440773,
0.399298757314682,
0.06479945033788681,
-0.16839393973350525,
-0.5006343722343445,
0.15324045717716217,
-0.7330561280250549,
-0.1068575382232666,
-0.09226660430431366,
0.3955555260181427,
0.8291359543800354,
-0.3841511905193329,
-0.3731573820114136,
... |
def wx _ 2 _ uakutalnij _ parametry ( self, evt ) : scisk = self. t _ scisk. getvalue ( ) samotnosc = self. t _ samotnosc. getvalue ( ) nadzieja = self. t _ nadzieja. getvalue ( ) generacje = self. t _ generacje. getvalue ( ) if scisk. isnumeric ( ) and samotnosc. isnumeric ( ) and nadzieja. isnumeric ( ) and generacje... | [
-0.5465609431266785,
-0.22208359837532043,
0.6220805644989014,
-0.6277187466621399,
-0.6210609078407288,
0.22140806913375854,
0.7076804637908936,
-0.9889088273048401,
-1.1482502222061157,
0.33730053901672363,
-0.15087789297103882,
0.6053898930549622,
0.4191652834415436,
0.39464864134788513... |
def _ _ add _ _ ( self, other ) : return self. combine ( other ) | [
-0.4785824716091156,
-0.531056821346283,
0.8003818392753601,
0.6241464614868164,
0.37125542759895325,
0.20127278566360474,
-0.7171428203582764,
-1.1997491121292114,
0.7025629878044128,
-0.6350610852241516,
-0.17923811078071594,
-0.13591520488262177,
0.09111443161964417,
-0.4688933491706848... |
def clr ( self, * args ) : return _ snap. tfltprv _ clr ( self, * args ) | [
-0.6852118372917175,
0.3706708252429962,
0.050143077969551086,
-0.21920795738697052,
0.10818640142679214,
0.4574318528175354,
0.0192518662661314,
0.3530822694301605,
-1.2369616031646729,
-0.33379656076431274,
0.702999472618103,
-1.0917876958847046,
-0.9680737853050232,
1.3720961809158325,
... |
def char _ range ( c1, c2 ) : for c in range ( ord ( c1 ), ord ( c2 ) ) : yield chr ( c ) | [
-0.23310798406600952,
-0.8432804942131042,
0.3327908217906952,
-0.7021012306213379,
-0.026819221675395966,
0.6117053031921387,
-1.1964826583862305,
-0.8998219966888428,
-1.7233819961547852,
-0.2821905016899109,
-0.872317373752594,
0.8246303796768188,
0.3060477674007416,
-1.189060926437378,... |
def sigusr1 ( signum, frame ) : logging. info ('usr1 received, skipping.') sh. killall ('omxplayer. bin ', _ ok _ code = [ 1 ] ) | [
-0.24320387840270996,
-0.47396865487098694,
0.4732494354248047,
1.6019660234451294,
0.2576947510242462,
0.42639169096946716,
0.8823933601379395,
0.09170843660831451,
0.3328484892845154,
0.4193393588066101,
-0.7152528762817383,
0.23949643969535828,
-0.34851014614105225,
-0.5705336928367615,... |
def draw _ top _ right ( x = 1, y = 1 ) : print ( " { } { } ; { } ". format ( csi, y, x ), end = " ", flush = true ) | [
-0.09911143779754639,
0.10528314858675003,
0.839901864528656,
-0.3291989862918854,
-1.326920509338379,
0.683554470539093,
-0.9791808724403381,
-0.6331894397735596,
0.39210477471351624,
-0.24762052297592163,
0.39053475856781006,
0.8047969937324524,
-0.5163484811782837,
0.3847416043281555,
... |
def addunique ( self, * args ) : return _ snap. tintv _ addunique ( self, * args ) | [
-1.5140469074249268,
0.5317351222038269,
0.687015950679779,
1.197780728340149,
0.27835381031036377,
-0.039626866579055786,
0.5032156705856323,
0.24528664350509644,
-0.8324387669563293,
-0.8378559350967407,
-0.6119043827056885,
0.5906654596328735,
-1.245242953300476,
0.2770948112010956,
-... |
def convertgraph _ pungraph _ pungraph ( * args ) : return _ snap. convertgraph _ pungraph _ pungraph ( * args ) | [
-1.6145095825195312,
0.4288994371891022,
0.2896937429904938,
1.0504567623138428,
-0.3126867413520813,
-0.8002798557281494,
0.21360817551612854,
0.7430789470672607,
0.3107658326625824,
0.45588555932044983,
-1.2118852138519287,
-0.4535539448261261,
-0.49854058027267456,
0.6557501554489136,
... |
def motion ( t ) : a = 3. 0 / 2 # amplitude n = 6. 5 / 60 # frequency return a * math. sin ( 2 * math. pi * n * t ) # position | [
0.11558124423027039,
-0.6016936898231506,
0.3462241291999817,
-0.45114997029304504,
-0.478134423494339,
-0.14871595799922943,
-0.053098369389772415,
-0.6159566640853882,
0.00265808985568583,
0.4067452847957611,
-0.18220950663089752,
-0.7679588794708252,
0.07554920017719269,
-0.228651359677... |
def getrndval ( self, * args ) : return _ snap. tcncomv _ getrndval ( self, * args ) | [
-0.021724848076701164,
0.970803439617157,
0.17616720497608185,
0.090789794921875,
0.7586508989334106,
0.1165408045053482,
0.24890853464603424,
0.13222333788871765,
-0.9672672152519226,
-1.0131967067718506,
-0.338008314371109,
0.1741035431623459,
-0.7132713198661804,
2.0287814140319824,
0... |
def write ( self, message, debug = true ) : if debug : self. log. debug ('write : % s'% message ) if self. comm! = 1 and self. comm! = none : self. comm. write ( message. encode ( ) ) | [
-0.3096684217453003,
0.4318919777870178,
0.35406580567359924,
0.3903210759162903,
1.3481336832046509,
0.06962064653635025,
0.04082244262099266,
-0.03938249498605728,
0.0567375086247921,
-0.43516188859939575,
0.43097183108329773,
0.07818379998207092,
-1.5401504039764404,
1.5901120901107788,... |
def perform _ operation ( self, operation ) : # perform operation when the equals button is not pressed if self. previous _ number is not none and not self. current _ input = = " " : self. previous _ number = self. perform _ maths ( self. previous _ number, self. current _ input, operation ) self. current _ input = " "... | [
-0.04120880365371704,
0.49120697379112244,
0.711715579032898,
-0.1178375706076622,
0.06912387907505035,
-0.015105423517525196,
1.7530871629714966,
-0.11927995830774307,
0.5028207898139954,
0.29887789487838745,
0.20794303715229034,
-0.5311391949653625,
-0.57131427526474,
0.3260425925254822,... |
def addsorted ( self, * args ) : return _ snap. tstrintprv _ addsorted ( self, * args ) | [
-0.4516468644142151,
-0.010190446861088276,
0.3177460730075836,
-1.2515366077423096,
-0.11118567734956741,
0.4007311463356018,
0.12092776596546173,
-0.14381952583789825,
-0.935832679271698,
-0.7984903454780579,
-0.45795294642448425,
-0.013704180717468262,
-1.389316439628601,
0.180414512753... |
def setfounder ( state ) : spellbook. getinvoker ( ). d _ setfounder ( state ) return'founder set to : % s'% state | [
-0.17570698261260986,
0.1148543581366539,
0.28822511434555054,
0.006463390775024891,
-0.006803660187870264,
-0.09621164947748184,
0.5550649762153625,
0.009523356333374977,
-0.4554345905780792,
-0.603029191493988,
0.07017216831445694,
0.7356783747673035,
0.6649135947227478,
0.25368374586105... |
def convert _ corpus ( self, corpus, markup = none, break _ lines = false, divide _ works = false, latin = none, extra _ args = none ) : # pylint : disable = w0613 orig _ path _ rel ='~ / cltk _ data / originals'orig _ path = os. path. expanduser ( orig _ path _ rel ) target _ path _ rel ='~ / cltk _ data'target _ path... | [
-0.2621908187866211,
0.1766536384820938,
1.0080904960632324,
-0.5815550684928894,
-0.06898029148578644,
0.009008119814097881,
0.48869648575782776,
1.0178086757659912,
-0.5610100030899048,
0.8344788551330566,
0.057174086570739746,
-0.5121268630027771,
-0.3526899516582489,
0.8192636966705322... |
def build3dcl ( components, calib _ factor = 1. 084 ) : return pd. dataframe ( ). append ( compute3dclquantities ( components, calib _ factor ), ignore _ index = true ) | [
0.4099539816379547,
-0.3097677230834961,
0.3686389923095703,
0.4856521189212799,
0.0022685183212161064,
0.658022403717041,
-0.9784855842590332,
0.003935018554329872,
0.4213483929634094,
-0.4937014877796173,
0.4346768856048584,
0.02633843943476677,
0.17158004641532898,
-1.505281925201416,
... |
def remotewprhost ( device, wpr _ archive _ path, record = false, network _ condition _ name = none, disable _ script _ injection = false, out _ log _ path = none ) : assert device if wpr _ archive _ path = = none : _ verifysilentwprhost ( record, network _ condition _ name ) yield [ ] return # deploy certification aut... | [
-0.0746777281165123,
-0.057249948382377625,
0.7635773420333862,
-0.3875766098499298,
-0.6046809554100037,
0.12753044068813324,
0.5447805523872375,
-0.008587266318500042,
0.0009681879309937358,
0.737585723400116,
0.2415151745080948,
0.9107702970504761,
-0.41238927841186523,
-0.0076471790671... |
def test _ initial ( self ) : field = omnidatetimefield. _ meta. get _ field ('initial _ data') self. assertisinstance ( field, models. datetimefield ) self. asserttrue ( field. blank ) self. asserttrue ( field. null ) | [
0.23661908507347107,
0.4718964695930481,
0.40915602445602417,
-0.22845083475112915,
0.5356414318084717,
1.0128774642944336,
-0.4792826175689697,
0.3348364233970642,
0.31948617100715637,
-0.39796483516693115,
-0.8870712518692017,
-0.08633177727460861,
0.10227879881858826,
0.0667366832494735... |
def test _ moment _ gmtime ( ) : pytest. debug _ func ( ) now = nldt. moment ( ) exp = time. gmtime ( now. epoch ( ) ) # payload result = now. gmtime ( ) assert result = = exp | [
-0.34658464789390564,
-0.3016926348209381,
0.2957019805908203,
-0.26680177450180054,
0.28173285722732544,
0.6172157526016235,
-1.225542664527893,
-0.5548993945121765,
0.12570437788963318,
0.26128074526786804,
-0.136185422539711,
-0.21400532126426697,
-0.8082186579704285,
1.3291683197021484... |
def _ _ init _ _ ( self, pixelization _ prior _ model : af. priormodel ( pix. pixelization ), regularization _ prior _ model : af. priormodel ( reg. regularization ), inversion _ pixels _ fixed : float = none, ) : self. _ pixelization _ prior _ model = self. _ cls _ to _ prior _ model ( cls = pixelization _ prior _ mod... | [
-0.5134530067443848,
0.622374951839447,
0.6777510643005371,
0.3719615638256073,
0.6697162985801697,
0.033321674913167953,
0.706000030040741,
0.0035836505703628063,
0.2272128313779831,
-0.3426431119441986,
-0.19318120181560516,
0.6010575294494629,
0.07906186580657959,
0.738636314868927,
0... |
def test _ operand ( self ) : operand = trafficlightvar ( ) tree = evaluableparsetree ( operand ) # true context = {'traffic _ light': " red " } ok _ ( tree ( context ) ) # false context = {'traffic _ light': none } assert _ false ( tree ( context ) ) | [
-0.02698465995490551,
-0.22299936413764954,
0.38613322377204895,
-0.7699490189552307,
-0.6036005020141602,
0.45418310165405273,
-0.5122487545013428,
-0.046461671590805054,
0.2442009449005127,
-0.21472571790218353,
-0.3446911573410034,
0.10988016426563263,
-0.7138238549232483,
-0.1090053245... |
def validate _ response ( self, response ) : return [ ] | [
-0.793544352054596,
-1.5228102207183838,
0.33275485038757324,
0.5197427868843079,
0.5942245125770569,
0.4568752944469452,
-0.08066434413194656,
-0.3334182798862457,
1.0799347162246704,
-0.5707931518554688,
-0.6107030510902405,
-0.8158950805664062,
-0.5999571681022644,
0.40003344416618347,
... |
def list _ messages ( ) : query = request. args. get ('format') if query is none : response _ messages = [ ] for msg in messages : new _ message = {'title': msg ['title'],'content': msg ['content'],'sender': msg ['sender'] } response _ messages. append ( new _ message ) return custom _ response ( response _ messages,'j... | [
-0.9050042629241943,
-0.9879752397537231,
0.6470940113067627,
-0.4425734579563141,
0.4641902446746826,
-0.8430982232093811,
-1.0502489805221558,
-0.7662757635116577,
0.28563278913497925,
-0.2765762209892273,
0.8068611025810242,
-0.1699516773223877,
-0.1558433473110199,
1.2492531538009644,
... |
def evaluate ( results, accuracy, f1, accuracy2, f12 ) : # create figure fig, ax = pl. subplots ( 2, 3, figsize = ( 100, 70 ) ) # constants bar _ width = 0. 15 colors = ['# a00000 ','# 00a0a0 ','# 00a000 ','# fb8b24 ','# d90368'] # super loop to plot four panels of data for k, learner in enumerate ( results. keys ( ) )... | [
0.4222009479999542,
0.7303928136825562,
0.9969373941421509,
-0.6319531202316284,
-0.30469921231269836,
0.2892441749572754,
0.5239068269729614,
-0.4517437517642975,
-1.4647666215896606,
-0.17887377738952637,
0.666132926940918,
0.19059735536575317,
0.5126677751541138,
0.5022977590560913,
0... |
def unmountdmg ( mountpoint ) : proc = subprocess. popen ( ['/ usr / bin / hdiutil ','detach ', mountpoint ], bufsize = - 1, stdout = subprocess. pipe, stderr = subprocess. pipe ) ( unused _ output, err ) = proc. communicate ( ) if proc. returncode : print > > sys. stderr,'polite unmount failed : % s'% err print > > sy... | [
0.4581567943096161,
0.7070243954658508,
0.8235869407653809,
-0.5375245809555054,
-0.46686553955078125,
-0.7958658337593079,
-0.2916751801967621,
-0.4137731194496155,
0.11758746206760406,
-0.10678724199533463,
0.28184592723846436,
0.1196008250117302,
-0.4602057635784149,
0.35316210985183716... |
def savepajek _ pngraph ( * args ) : return _ snap. savepajek _ pngraph ( * args ) | [
-1.2835185527801514,
0.9160542488098145,
0.09038152545690536,
-0.17615580558776855,
-0.6693841218948364,
0.2089570015668869,
0.5811959505081177,
-0.7726215124130249,
-0.43275707960128784,
0.4387550354003906,
-1.5564792156219482,
-0.6464110612869263,
-0.5351060628890991,
0.3146498203277588,... |
def _ _ setitem _ _ ( self, index, value ) : ts = filestoragemanagersingleton. get ( self. _ id ) ts [ index ] = value filestoragemanagersingleton. store ( self. _ id, ts ) | [
-0.8185549378395081,
-0.004984391387552023,
0.27434399724006653,
-0.8415154218673706,
0.40290969610214233,
-0.5053596496582031,
-0.21285726130008698,
-0.48648467659950256,
0.05702953413128853,
-0.385383278131485,
-1.0714788436889648,
0.10192804783582687,
0.42734411358833313,
-0.39769980311... |
def gettransform ( shape, fullpath = true ) : transforms ='' if not isinstance ( shape, basestring ) : logger. error ('input not valid. expecting a string shape, got " % s " : % s'% ( type ( shape ). _ _ name _ _, shape ) ) elif'transform '! = cmds. nodetype ( shape ) : transforms = cmds. listrelatives ( shape, fullpat... | [
0.004263702780008316,
-0.28287845849990845,
0.3661865293979645,
-0.8701090812683105,
-0.14214323461055756,
-0.469197541475296,
0.6662901639938354,
-0.8314016461372375,
0.6528519988059998,
-0.2529357075691223,
-0.20033393800258636,
0.07111794501543045,
-0.0656299963593483,
0.015880620107054... |
def clr ( self, * args ) : return _ snap. pneanetv _ clr ( self, * args ) | [
-0.6631098985671997,
0.9215484857559204,
0.19864831864833832,
0.686446487903595,
0.015617107972502708,
1.05751371383667,
-0.6568924188613892,
-1.1278352737426758,
-0.5390921235084534,
-0.8917611837387085,
0.4874401092529297,
-0.7323325872421265,
-0.3707522749900818,
1.5487078428268433,
0... |
def markselection ( self, sels ) : qgsmessagelog. logmessage ( " going to mark selected ", " messages ", qgis. info ) for sel in sels : try : idval = sel [ self. idfield ] y = self. ids. index ( idval ) self. selectmarker ( y ) except exception as e : # ignore problems when qgsmessagelog. logmessage ( " error when draw... | [
-1.037501335144043,
-1.1213183403015137,
0.1796964406967163,
0.24189189076423645,
1.1045165061950684,
0.24953098595142365,
0.8436733484268188,
-0.4881293773651123,
0.6142382025718689,
-0.19924232363700867,
-0.2635648548603058,
0.4299840033054352,
-0.4846320152282715,
0.8967511653900146,
... |
def run _ spanish _ test ( ) : # _ _ train _ model ( '.. / corpa / spanish / evaluation - model. w2v') # log. info ('generated spanish model') spanish _ space = space. build ( '.. / corpa / spanish / model - ascii. w2v ', total _ count = 7000, only _ lower = true ) english _ space = space. build ( '.. / corpa / english... | [
0.7387914061546326,
0.6932627558708191,
0.8648606538772583,
-0.3904282748699188,
0.20939016342163086,
-0.23523887991905212,
0.39646366238594055,
0.10402027517557144,
0.8720531463623047,
-0.032726556062698364,
-0.3259395956993103,
0.5251799821853638,
0.17465724050998688,
-0.0318873338401317... |
def get _ mailshot _ reference ( lock _ manager : " lockmanager " ) - > str : use _ year = false case _ reference = _ get _ next _ reference ( lock _ manager, prefix = prefix. mailshot, use _ year = use _ year ) return _ get _ reference _ string ( case _ reference, use _ year = use _ year, min _ digits = 1 ) | [
0.1066618412733078,
-0.009420289658010006,
0.6340792775154114,
0.005150755401700735,
-1.3880770206451416,
0.27120187878608704,
-0.5545603632926941,
-1.121021032333374,
0.6133924126625061,
0.8461265563964844,
1.1800627708435059,
1.0977915525436401,
-0.5489134788513184,
0.11771458387374878,
... |
def to _ json ( self, items, key ='id') : data = { } for i in items : k = i. get ( key ) data [ k ] = i return data | [
-2.216853141784668,
-1.0977506637573242,
0.3013971745967865,
-0.45197659730911255,
-0.28369957208633423,
0.11126422882080078,
-0.9430525898933411,
0.1482241302728653,
-0.19406306743621826,
1.2444349527359009,
-1.9358179569244385,
-0.14827607572078705,
0.06197170913219452,
-0.39550787210464... |
def test _ minimize _ beale ( self ) : opt _ params = {'eta': 1e - 6,'eta _ min': 1e - 4,'eps': 1e - 12,'discrete': true,'bounds': cconstraintbox ( lb = 0, ub = 4 ) } self. _ test _ minimize ( coptimizerpgdls,'beale ', opt _ params = opt _ params, label ='discrete') | [
0.05982401967048645,
0.17274920642375946,
0.713674783706665,
0.5939096212387085,
1.4310412406921387,
0.5149019956588745,
0.5608333349227905,
-0.36024460196495056,
-0.19989416003227234,
-0.714001476764679,
-0.3192007541656494,
-0.37686532735824585,
-0.764148473739624,
0.316973477602005,
0... |
def aggregatecols ( self, * args ) : return _ snap. ttable _ aggregatecols ( self, * args ) | [
-1.6174582242965698,
1.251684308052063,
0.4509127736091614,
0.5883356332778931,
1.0953596830368042,
0.060209162533283234,
1.202209234237671,
-0.9515049457550049,
-1.5387318134307861,
0.3645544946193695,
-0.4932973086833954,
-1.0695589780807495,
-0.1538955420255661,
-0.3287731111049652,
-... |
def format _ musical _ pieces ( in _ l ) : return re. sub ('\ \ xa0 ','', ', '. join ( in _ l ) ) | [
0.5100599527359009,
-0.8384904265403748,
0.35313042998313904,
-0.6035122275352478,
-0.02577882818877697,
0.14024795591831207,
-0.6763541102409363,
1.119476079940796,
0.6840819120407104,
1.0665067434310913,
0.209445983171463,
0.12541867792606354,
-1.0556528568267822,
0.4106425344944,
0.52... |
def teardown ( self ) : db. session. remove ( ) db. drop _ all ( ) | [
0.6310175061225891,
-0.3269988000392914,
0.4537086486816406,
-0.2952266335487366,
0.8522160649299622,
0.45039689540863037,
0.8242735862731934,
-0.019746359437704086,
1.4757637977600098,
0.5087288618087769,
-0.18594832718372345,
-0.19050832092761993,
-0.4595889151096344,
-0.1830757111310959... |
def begmodeneti ( self, * args ) : return _ snap. pmmnet _ begmodeneti ( self, * args ) | [
-0.24024605751037598,
-0.5108603835105896,
0.7678478956222534,
0.49995824694633484,
1.457404613494873,
0.05062674731016159,
-0.3852722644805908,
-0.2769070267677307,
-0.6218799948692322,
-0.3145736753940582,
-0.10481324046850204,
-0.3215499520301819,
-1.0345845222473145,
0.4927392601966858... |
def to _ plasma ( self, pla ) : pla. se = deepcopy ( self. se ) pla. si = deepcopy ( self. si ) | [
-0.15201564133167267,
-0.41218647360801697,
0.36206576228141785,
0.13668040931224823,
-0.6726357936859131,
0.21768531203269958,
0.2884727418422699,
0.13478073477745056,
1.0312559604644775,
0.1631176471710205,
-0.45751097798347473,
0.28289732336997986,
-0.12840066850185394,
-0.9098722338676... |
def fact ( ) : plist = " / private / var / db / gkopaque. bundle / contents / version. plist " if os. path. exists ( plist ) : result = cfpreferencescopyappvalue ( " cfbundleshortversionstring ", plist ) return { factoid : result } | [
0.5181835889816284,
-0.2295110523700714,
0.010294241830706596,
0.21370965242385864,
0.006628751754760742,
0.5006396174430847,
0.06830409914255142,
-0.2754784822463989,
-0.4357299506664276,
0.7238374352455139,
-0.8387850522994995,
0.22931459546089172,
-0.0899125263094902,
0.2933922410011291... |
def getshortpath _ pungraph ( * args ) : return _ snap. getshortpath _ pungraph ( * args ) | [
-0.11213236302137375,
0.4021029472351074,
0.28843122720718384,
1.2475882768630981,
-0.33704009652137756,
-0.25593575835227966,
0.9006584882736206,
0.3666400611400604,
0.25317686796188354,
-0.5748105049133301,
-0.9612237215042114,
0.24756264686584473,
-0.5915440320968628,
-0.024615466594696... |
def _ _ eq _ _ ( self, * args ) : return _ snap. tstrvstrhi _ _ _ eq _ _ ( self, * args ) | [
-0.13053035736083984,
-0.16538047790527344,
0.004113002680242062,
-0.483045369386673,
0.6172153353691101,
0.2482430338859558,
0.4738183319568634,
0.59937983751297,
-1.00867760181427,
0.4245714843273163,
-1.126376748085022,
-0.929746150970459,
0.4164524972438812,
0.062013816088438034,
1.0... |
def post ( self, request, * args, * * kwargs ) : print ( " i am here inside shopify " ) # convert the topic to a signal name and trigger it. signal _ name = get _ signal _ name _ for _ topic ( request. webhook _ topic ) try : signals. webhook _ received. send _ robust ( self, domain = request. webhook _ domain, topic =... | [
-0.1361432820558548,
-0.21013318002223969,
0.6291452646255493,
0.7812129855155945,
0.5941700339317322,
-0.14842568337917328,
-0.13494250178337097,
-0.0756317526102066,
0.13036595284938812,
0.30970197916030884,
-1.085443139076233,
0.3132627308368683,
-0.08757521957159042,
0.7470610737800598... |
def add _ or _ update ( self, params, _ id = " " ) : try : if _ id and self. get _ by _ id ( _ id ) : return self. update ( _ id, params ) else : return self. add ( params ) except exception as ex : db. session. rollback ( ) trace = traceexception ( " locationcontroller : add _ or _ update db fail ", ex. _ _ str _ _ ( ... | [
-0.5042123794555664,
0.03596540912985802,
0.8895189166069031,
0.16113506257534027,
0.4402453601360321,
0.6867274641990662,
-0.046294454485177994,
0.34603795409202576,
0.6768178343772888,
0.7478199601173401,
0.8790584802627563,
-0.4575708508491516,
-0.7435457706451416,
0.538072943687439,
... |
def clearallerrorcodes ( self, typeid, deviceid ) : devicediagnostics = apiclient. devicediagerrorcodes % ( self. host, typeid, deviceid ) r = requests. delete ( devicediagnostics, auth = self. credentials, verify = self. verify ) status = r. status _ code if status = = 204 : self. logger. debug ( " error codes success... | [
-1.1598588228225708,
0.056209247559309006,
0.9095439910888672,
0.2608543634414673,
-0.2821917235851288,
-0.1539919674396515,
-0.05420766398310661,
-0.2452092319726944,
0.4735587239265442,
0.568718671798706,
0.26948773860931396,
0.9258304238319397,
-0.6183863282203674,
0.28987815976142883,
... |
def isinbin ( self, * args ) : return _ snap. tintfltkdv _ isinbin ( self, * args ) | [
-0.15238235890865326,
0.10851520299911499,
0.5660097599029541,
0.7890783548355103,
-0.20617952942848206,
-0.21510756015777588,
0.05530690401792526,
-0.7309823632240295,
-0.8750917911529541,
-0.7085487246513367,
0.11502589285373688,
0.5894482135772705,
-0.9632582664489746,
1.659051656723022... |
def accueil ( self ) : periode = self. objet msg = " | | tit | " + " edition des elements de la periode " \ " { } ". format ( periode. nom ). ljust ( 76 ) msg + = " | ff | | \ n " + self. opts. separateur + " \ n " msg + = " entrez le nom de l'element ( comme | ent | fruits | ff | " \ " ou | ent | feuilles | ff |, \ na... | [
0.14230112731456757,
-0.8785651922225952,
0.9519746899604797,
-1.1479264497756958,
-0.324014276266098,
0.09748868644237518,
0.3475073277950287,
-0.7099807262420654,
-0.185234934091568,
0.1481061428785324,
0.6386071443557739,
1.11385178565979,
0.17826694250106812,
0.1596764773130417,
0.13... |
def dictoutput ( self, rowwriter, headingpolicy = none ) : return self. _ _ class _ _. _ dictoutput ( self, rowwriter, headingpolicy ) | [
-1.214957594871521,
-0.04769665002822876,
0.21291866898536682,
-0.17214412987232208,
-1.1471245288848877,
-0.603182852268219,
-0.18701165914535522,
-0.4545271694660187,
0.037271175533533096,
0.05623306334018707,
0.5721283555030823,
-1.0439975261688232,
0.2686658501625061,
0.142672240734100... |
def adj ( self, v : int ) - > set ( ) : self. _ validate _ vertex ( v ) return self. _ adj [ v ] | [
-0.696969747543335,
0.7844814658164978,
0.3126760721206665,
-0.37591421604156494,
-0.5680163502693176,
-0.08118690550327301,
0.316445916891098,
-0.8439995646476746,
0.58042973279953,
-0.2309730499982834,
0.03317362070083618,
0.5635737776756287,
-0.9591903686523438,
-0.5151717066764832,
-... |
def masks ( self ) : self. printstatus ( ) print " " " # # family : cluster identifier # nunits : number of units in cluster # nseqs : number of sequences in cluster # nres : number of residues in cluster # length : length of master # nunitsx : masked units in cluster by method x # nseqsx : masked sequences in cluster ... | [
0.08830846846103668,
-0.11829449236392975,
0.695546567440033,
-0.21759039163589478,
-0.10814429819583893,
-0.5565896034240723,
1.6693936586380005,
-1.2437535524368286,
-0.28173407912254333,
-0.3882462978363037,
-0.2466171532869339,
-0.017111215740442276,
0.6666483283042908,
0.1535688340663... |
def test _ field _ class ( self ) : self. assertequal ( omniuuidfield. field _ class,'django. forms. uuidfield') | [
-0.13362343609333038,
0.24033571779727936,
-0.01958506368100643,
-0.10915247350931168,
1.2578829526901245,
1.4425594806671143,
-0.29060670733451843,
0.7091638445854187,
0.8041910529136658,
-1.03738272190094,
-0.659755527973175,
-0.8209286332130432,
-0.024282043799757957,
-0.178000912070274... |
def _ _ init _ _ ( self, * * kw ) : for name, value in kw. items ( ) : if hasattr ( self, name ) : super ( _ policybase, self ). _ _ setattr _ _ ( name, value ) else : raise typeerror ( " {! r } is an invalid keyword argument for { } ". format ( name, self. _ _ class _ _. _ _ name _ _ ) ) | [
-0.3774145245552063,
-0.018531739711761475,
0.8183264136314392,
0.13837403059005737,
-0.2641512453556061,
0.892270565032959,
-1.0030019283294678,
-0.6271585822105408,
-0.022423094138503075,
0.24610750377178192,
-0.3758775591850281,
-0.5923954248428345,
0.2108834832906723,
1.238761186599731... |
def binomial _ coefficient _ app ( n, k ) : if c < 10000 : return binomial _ coefficient ( n, k ) ln _ t _ n1 = ( n + 1 / 2. ) * m. log ( n + 1 ) - ( n + 1 ) + m. log ( 2 * m. pi ) / 2. ln _ t _ k1 = ( k + 1 / 2. ) * m. log ( k + 1 ) - ( k + 1 ) + m. log ( 2 * m. pi ) / 2. ln _ t _ nk1 = ( n - k + 1 / 2. ) * m. log ( n... | [
0.7376630306243896,
-1.006351113319397,
0.8761305212974548,
-0.07825129479169846,
-1.0502697229385376,
-0.1492910385131836,
0.038204628974199295,
-0.020535960793495178,
0.20789794623851776,
0.26100319623947144,
0.22484205663204193,
0.08555367588996887,
0.7068827152252197,
0.356502413749694... |
def saveedgelist _ pneanet ( * args ) : return _ snap. saveedgelist _ pneanet ( * args ) | [
-2.1296463012695312,
0.1909448504447937,
0.45891448855400085,
0.4125458002090454,
0.4986753463745117,
0.2415509819984436,
-1.001388669013977,
-0.5112256407737732,
-0.28604862093925476,
0.49685460329055786,
-2.237464189529419,
-1.3224453926086426,
-0.6538644433021545,
0.8805838227272034,
... |
def resize _ store ( store, shape, cache = false, exclude = [ none ], verbose = true ) : if verbose : print " resizing store ", store, " to new shape ", shape sfn = store. filename. split ( ". " ) [ 0 ] name = hashlib. sha1 ( sfn + str ( shape ) ) name = name. hexdigest ( ) [ : 8 ] + ". resz. h5 " if cache is true and ... | [
0.07554014772176743,
-0.10459820926189423,
0.5455261468887329,
0.23670749366283417,
-0.8149357438087463,
0.11323156952857971,
0.6013587117195129,
0.14959090948104858,
0.9001282453536987,
0.19673651456832886,
-0.03827909380197525,
0.12819066643714905,
0.05187864601612091,
-0.414599478244781... |
def get _ meandrift ( self, bodyid = 1 ) : self. _ assert _ domaintype ('frequency') forces = self. _ get _ results ('w2mdrift ', bodyid,'smfor') forces. shape = ( self. _ ndirs, self. _ nfreqs, 6 ) return np. rollaxis ( forces, 2 ) | [
-0.8412922620773315,
0.8325468301773071,
0.40820029377937317,
-1.0464763641357422,
0.4014677107334137,
-0.19936251640319824,
0.3556366264820099,
-1.3752131462097168,
0.7270347476005554,
-0.9246565103530884,
0.3696131110191345,
1.2150099277496338,
-0.33444204926490784,
1.0950932502746582,
... |
def intattrnameni ( self, * args ) : return _ snap. pneanet _ intattrnameni ( self, * args ) | [
-1.2426528930664062,
0.33110255002975464,
0.222347691655159,
-0.05591878294944763,
-0.323426216840744,
0.3836853504180908,
-0.31265291571617126,
-0.279153436422348,
-0.8826588988304138,
0.11621145904064178,
-0.5580376386642456,
-0.30436649918556213,
-0.813345730304718,
0.7084488272666931,
... |
def is _ empty _ value ( value ) - > bool : if not isinstance ( value, ( type ( none ), numbers. number, str ) ) : raise typeerror ( " argument must be a number or str or none. " ) empty _ strs = ['null ','none ','nan ','-'] return value = ='' or value is none or ( isinstance ( value, numbers. number ) and math. isnan ... | [
-0.7356905937194824,
0.07096059620380402,
0.4208163917064667,
-0.31607383489608765,
0.03882378339767456,
0.6489173173904419,
-0.030567588284611702,
-0.32702741026878357,
0.4929586946964264,
0.18615615367889404,
0.08379799127578735,
0.250712126493454,
0.10964478552341461,
0.8928140997886658... |
def test _ zip _ archive _ zip _ create _ advanced ( self ) : pass | [
-0.35677140951156616,
-0.1578865349292755,
0.4550651013851166,
-0.4469790756702423,
0.7604387998580933,
0.5373906493186951,
0.30327481031417847,
0.1986440271139145,
0.4354958236217499,
-1.2193704843521118,
-0.31453171372413635,
-1.0828702449798584,
0.3839104175567627,
0.5414071083068848,
... |
def peek ( self, n = none ) : pos = self. bit _ seek _ pos value, num _ bits = self. read ( n ) self. seek ( pos ) return value, num _ bits | [
-0.7156136631965637,
0.4950752258300781,
0.6395295262336731,
0.003260726807639003,
-0.2845095694065094,
-0.3763504922389984,
0.6056287288665771,
-1.3140525817871094,
-0.023840004578232765,
-0.3269670009613037,
-0.5084569454193115,
0.5772959589958191,
0.18653173744678497,
0.3360287249088287... |
def find _ objects ( data, smooth _ radius = 5, threshold = 0. 0001 ) : show _ image ( data, 0 ) print _ array ( data ) # blur the input data a bit so the objects have a continous footprint data = sp. ndimage. uniform _ filter ( data, smooth _ radius ) print _ array ( data ) show _ image ( data, 1 ) # threshold the blu... | [
0.17046862840652466,
-0.41986900568008423,
0.7624989151954651,
0.1736924946308136,
-0.6605265736579895,
0.1127079501748085,
0.9625428318977356,
-0.4907762408256531,
0.25534307956695557,
0.39908143877983093,
0.04568281024694443,
0.4911900758743286,
-0.2485237419605255,
0.8827744722366333,
... |
def tneanetmp _ load ( * args ) : return _ snap. tneanetmp _ load ( * args ) | [
-0.6317145228385925,
-0.39680618047714233,
0.1897566020488739,
-1.1054474115371704,
0.8785744905471802,
0.7860180735588074,
-0.494143009185791,
-0.2463444471359253,
-0.5114845037460327,
1.1900182962417603,
-0.5813140869140625,
-2.0761196613311768,
-0.7440065741539001,
0.19429568946361542,
... |
def duration ( self ) : return self. timestep * self. steps | [
0.5052400231361389,
0.3808210492134094,
0.30093756318092346,
0.1881101429462433,
0.0684797391295433,
0.6685227751731873,
0.2924552261829376,
0.07335357367992401,
0.10776503384113312,
0.23584716022014618,
-0.6033995151519775,
-1.150417447090149,
0.5055692195892334,
1.1250662803649902,
-0.... |
def create _ contact ( self ) : name = input ( " enter name : " ) phone = input ( " enter phone number : " ) if not validate ( str ( phone ) ) : raise notaphonenumberexception self. all _ data. append ( [ name, validate ( phone ), 0 ] ) self. all _ data = sort _ data ( self. all _ data ) | [
0.06552569568157196,
-0.4923762083053589,
0.45367905497550964,
0.7189193367958069,
-0.02128714509308338,
1.203795313835144,
-0.29041606187820435,
-0.6265420317649841,
-0.04881972074508667,
-0.8015199899673462,
0.18870802223682404,
-0.42375048995018005,
-0.3964381515979767,
0.27562794089317... |
async def sync ( self, ctx, serverid = none ) : if serverid : # check if server t = false for g in self. bot. guilds : if g. id = = int ( serverid ) : t = true if t = = false : return msg = await ctx. send ('syncing json file') self. conf. updatejson ( serverid ) await msg. edit ( content ='syncing finished') | [
-0.5553879737854004,
0.023738564923405647,
0.5513922572135925,
0.5125173926353455,
-0.5570141673088074,
0.5435819029808044,
-0.20811937749385834,
-0.41404375433921814,
-0.690529465675354,
1.2266902923583984,
-0.9472837448120117,
1.5523650646209717,
-0.3282759487628937,
1.390775203704834,
... |
def interval _ next _ to _ small _ switch ( self, small _ switch, side ) : click = self. small _ switch _ to _ click ( small _ switch ) return self. click _ to _ interval ( click, side ) | [
-0.33315426111221313,
0.2662212550640106,
0.6091510057449341,
-0.44783639907836914,
-1.6224714517593384,
0.048626817762851715,
0.1468648463487625,
-1.0950932502746582,
0.1659073382616043,
-0.11713907867670059,
-0.5370968580245972,
0.030202319845557213,
-0.43181440234184265,
-0.029455009847... |
def validate _ redirect _ uri ( self, client _ id, redirect _ uri, request, * args, * * kwargs ) : raise notimplementederror ('subclasses must implement this method.') | [
-0.845062255859375,
-0.35109075903892517,
0.6937369704246521,
0.53867107629776,
-0.6474648118019104,
1.2832587957382202,
0.7205107808113098,
-0.4052720367908478,
0.31111520528793335,
-0.7269421815872192,
0.4965052008628845,
0.6419790983200073,
-0.3743561804294586,
-0.08730672299861908,
-... |
def pytest _ collection _ modifyitems ( items ) : for item in items : if inspect. iscoroutinefunction ( item. obj ) : item. add _ marker ('asyncio') assert not inspect. isasyncgenfunction ( item. obj ) | [
-0.9138878583908081,
0.2804512083530426,
0.5412687659263611,
0.5876410007476807,
1.627002239227295,
-0.013860680162906647,
0.7449547648429871,
0.21062497794628143,
-0.08054714649915695,
-0.056640345603227615,
-0.6711981296539307,
-0.16039863228797913,
0.0019000390311703086,
0.1275023967027... |
def getrndwalkrestart _ pngraph ( * args ) : return _ snap. getrndwalkrestart _ pngraph ( * args ) | [
-0.9206710457801819,
0.7005283832550049,
0.2243414968252182,
-0.615699052810669,
-0.35955867171287537,
0.4167463481426239,
0.09664526581764221,
-1.0060042142868042,
-0.15189982950687408,
-0.5150200724601746,
-0.7356739640235901,
0.15673214197158813,
-0.8146557211875916,
-0.1564358025789261... |
def parse _ device _ info ( device _ info ) : # initialize variables vid ='' pid ='' rev ='' uid ='' # split string into segments on \ \ segments = device _ info [ 0 ]. split ('\ \') if'usb'not in segments [ 0 ]. lower ( ) : return none # eliminate non - usb devices from output # may hide other storage devices for item... | [
0.20859427750110626,
-0.9693663716316223,
0.7083684206008911,
0.018203644081950188,
-0.8637596964836121,
-0.5423283576965332,
0.3707510530948639,
-0.03863220289349556,
-0.33959075808525085,
-0.42656072974205017,
-0.2740729749202728,
-0.22346484661102295,
-0.3933631479740143,
-0.24278944730... |
def reportmatch ( winner, loser ) : # connect to the database conn = connect ( ) curs = conn. cursor ( ) # change the number of matches and number of wins for the winning player curs. execute ( " update matches set num _ matches = num _ matches + 1, wins = wins + 1 where player _ id = % s ", ( winner, ) ) # change the ... | [
0.06603080779314041,
0.21353816986083984,
0.9335918426513672,
-0.1369427591562271,
0.060342513024806976,
-0.3894478678703308,
0.10784143209457397,
1.2657349109649658,
-0.3689371347427368,
0.004980667028576136,
0.16831162571907043,
-0.42590242624282837,
-0.8575283885002136,
-0.3174436092376... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tstrintfltprhi _ _ _ lt _ _ ( self, * args ) | [
0.5956089496612549,
-0.4877922534942627,
0.3804543614387512,
-2.1263535022735596,
0.05598454549908638,
0.5107602477073669,
-0.4822554290294647,
-1.5139093399047852,
-1.427528977394104,
-0.6133944988250732,
-0.3344312906265259,
-0.8693307638168335,
-1.1370742321014404,
0.7698836922645569,
... |
def create _ random _ file ( rand _ file _ name, min _ str, max _ str, number _ of _ rows ) : with open ( rand _ file _ name,'w') as f : for _ in range ( number _ of _ rows ) : f. write ( generate _ random _ string ( random. randint ( min _ str, max _ str ) ) ) f. write ('\ n') | [
0.052055515348911285,
-0.3627904951572418,
0.48829469084739685,
-0.2833493947982788,
0.39142006635665894,
0.831028401851654,
-0.15421807765960693,
0.11640077084302902,
-0.40761932730674744,
-0.4042906165122986,
0.07909394800662994,
-0.14224998652935028,
0.8105317950248718,
-0.3781325221061... |
def update _ profile ( self, dimension : str, value : int ) : if dimension not in self. _ interviewee _ profile : self. _ interviewee _ profile [ dimension ] = value else : self. _ interviewee _ profile [ dimension ] + = value | [
-0.5747627019882202,
0.10740650445222855,
0.719517171382904,
-0.04500162601470947,
-0.9705168008804321,
1.063856840133667,
-0.3873297870159149,
-0.9295313954353333,
-0.46776342391967773,
1.21054208278656,
-0.7599501013755798,
0.1582544893026352,
-0.9639257788658142,
-0.20557452738285065,
... |
def _ _ init _ _ ( self, file : java. io. file ) :... | [
0.323403924703598,
-0.5884315967559814,
0.2665458023548126,
0.647528886795044,
-0.4200953245162964,
0.7053971290588379,
0.9409592151641846,
0.25739890336990356,
-0.9792909026145935,
-0.835726797580719,
-0.5657600164413452,
0.2469412237405777,
0.5994637608528137,
0.8867959380149841,
-0.24... |
def getdat ( self, * args ) : return _ snap. tintfltprhi _ getdat ( self, * args ) | [
0.5394366383552551,
0.3602166175842285,
0.3275108337402344,
-0.17568764090538025,
1.2823125123977661,
0.8145487308502197,
0.025549599900841713,
-0.5882929563522339,
-1.4339103698730469,
-1.0161283016204834,
-0.10405535995960236,
0.17375797033309937,
-1.1658908128738403,
0.3992545008659363,... |
def delete _ absence ( absence _ id ) : absence = absence. query. get ( absence _ id ) db. session. delete ( absence ) db. session. commit ( ) flash ( " the absence was successfully deleted. " ) return redirect ( url _ for ('account. home') ) | [
0.3588148057460785,
-0.16757264733314514,
0.43791523575782776,
0.33027520775794983,
0.5510545969009399,
0.45786216855049133,
0.5988985300064087,
1.1905574798583984,
1.2815371751785278,
0.29574283957481384,
0.7277607321739197,
0.026601208373904228,
0.4330998659133911,
0.5275417566299438,
... |
def _ get ( self ) : name = subprocess. check _ output ( ['hostname ','- s'] ) name = name. strip ( ). decode ('utf - 8') # strip of any trailing numbers from the hostname. end = - 1 while name [ end : ]. isdigit ( ) : end - = 1 end + = 1 if end = = 0 : return name else : return name [ : end + 1 ] | [
-0.12426699697971344,
-0.07121264189481735,
0.8605107069015503,
0.03301181271672249,
-0.6480584144592285,
-0.14893053472042084,
0.0540439672768116,
-0.17165020108222961,
-1.1277296543121338,
-0.47680914402008057,
0.4612121880054474,
0.2159031182527542,
-0.416459321975708,
-0.51781320571899... |
def issorted ( self, asc = true ) : return _ snap. schema _ issorted ( self, asc ) | [
-0.5276950001716614,
0.2377256155014038,
0.453814834356308,
0.9380073547363281,
-0.21308352053165436,
-0.1197812631726265,
0.5904282331466675,
0.1452508121728897,
0.4961576759815216,
-0.29436546564102173,
-1.1007485389709473,
0.26584962010383606,
-0.8894500136375427,
0.4767860472202301,
... |
def resize ( im, target _ size, interp _ method = cv2. inter _ linear ) : return cv2. resize ( im, target _ size, interpolation = interp _ method ) | [
-0.4723339378833771,
-0.17665433883666992,
0.46736228466033936,
0.7065429091453552,
-0.16218744218349457,
-0.8515962362289429,
-0.23829998075962067,
0.21020376682281494,
0.1618085652589798,
-0.3608025312423706,
0.7265608310699463,
0.22642044723033905,
0.17148761451244354,
-0.79168844223022... |
def test _ atomic _ any _ uri _ min _ length _ 3 _ nistxml _ sv _ iv _ atomic _ any _ uri _ min _ length _ 4 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - minlength - 4. xsd ", instance = " nistdata... | [
0.3003723621368408,
-0.3813290297985077,
0.47014549374580383,
0.5378468036651611,
-0.5266822576522827,
-0.0307148490101099,
-0.12217459082603455,
-0.3392906188964844,
-0.026257077232003212,
-0.30168837308883667,
-0.3746289908885956,
-0.3177931606769562,
-0.8567516803741455,
-0.153989374637... |
def update ( self ) : self. empty = not len ( self. checkers ) | [
-0.8339027166366577,
-0.5012085437774658,
0.09255430847406387,
-0.8070592284202576,
1.0000078678131104,
1.4100098609924316,
-0.20027802884578705,
0.3543105721473694,
-0.604883074760437,
0.39100152254104614,
-0.6746014356613159,
0.6912403702735901,
-1.3391954898834229,
0.4884181618690491,
... |
def istree _ pneanet ( * args ) : return _ snap. istree _ pneanet ( * args ) | [
-1.1873632669448853,
-0.1328250616788864,
0.6311095356941223,
0.09027920663356781,
0.3527754843235016,
0.40199026465415955,
-1.4661729335784912,
-0.40573054552078247,
-1.3885520696640015,
0.1110323816537857,
-0.7301899194717407,
-0.7666270136833191,
-1.201468825340271,
0.40349581837654114,... |
def parse _ file ( filename ) : lexer. filename = filename if os. access ( filename, os. r _ ok ) : f = open ( filename ) content = f. read ( ) f. close ( ) yacc. parse ( content ) else : raise ioerror ('could not read % s'% filename ) | [
1.3249356746673584,
-0.4719107151031494,
0.7782734632492065,
0.0018008321058005095,
-0.044527534395456314,
-0.1366000771522522,
0.4112586975097656,
1.1065566539764404,
-1.1189806461334229,
-0.05477943643927574,
0.49707725644111633,
-0.21911440789699554,
0.3836466073989868,
-0.0010963159147... |
def cleanlabel ( dirty _ label : str ) - > str : # replace all specials with underscore kinda _ dirty =''. join ( [ i if i. isalnum ( ) else'_'for i in dirty _ label ] ) return kinda _ dirty. replace ('_ _ ','_') | [
-1.6163229942321777,
-1.1583746671676636,
0.7089767456054688,
-1.0009360313415527,
-0.5656249523162842,
0.91950523853302,
-1.1772675514221191,
0.4691581726074219,
-0.061011143028736115,
0.8788979649543762,
-0.09791097790002823,
0.38838469982147217,
0.30124399065971375,
0.09586242586374283,... |
def hexdecode ( value ) : value = value. lower ( ) return ( value [ 2 : ] if value. startswith ( " 0x " ) else value ). decode ( " hex " ) | [
0.42301973700523376,
-1.0097053050994873,
0.2850472331047058,
-0.061617184430360794,
-0.42073801159858704,
-0.04732288420200348,
-1.213163137435913,
0.9613410234451294,
0.43200409412384033,
-0.558562695980072,
-0.10902786254882812,
-0.37266579270362854,
-0.39120882749557495,
0.241885647177... |
def getstrattrdatn ( self, * args ) : return _ snap. pneanetmp _ getstrattrdatn ( self, * args ) | [
-0.2713823914527893,
-0.40447065234184265,
0.23833109438419342,
0.18648740649223328,
0.5653260946273804,
-0.32150715589523315,
0.382121741771698,
0.009789370000362396,
-0.5642102360725403,
-1.6016690731048584,
-1.442996621131897,
-0.05147061124444008,
-0.08170971274375916,
0.45277750492095... |
def plotkcorenodes _ pneanet ( * args ) : return _ snap. plotkcorenodes _ pneanet ( * args ) | [
-0.7375369071960449,
1.3202208280563354,
0.24553944170475006,
-0.08167889714241028,
-0.6816590428352356,
0.3360656797885895,
-0.29060617089271545,
-0.1287386417388916,
-0.9010812640190125,
0.10066547244787216,
-0.3384087383747101,
-0.3402285873889923,
-0.6445313096046448,
0.033572405576705... |
def t _ binary _ grouping ( t, cutoff, prop = false, abs _ on = false ) : # if you want to use proportion you'll need to provide a logical cutoff value assert ( 0 < = cutoff * prop and cutoff * prop < = 1 ) # just to be safe : t = np. ravel ( t ) # if we'd like to take into account abs ( t ) if abs _ on : t = np. abs (... | [
-0.7773773074150085,
-0.5160654783248901,
0.7041118741035461,
-0.31950002908706665,
-0.2300717681646347,
0.5313000679016113,
0.5584783554077148,
0.08069226145744324,
-0.875485360622406,
1.2741365432739258,
0.5976099371910095,
0.09849207103252411,
0.15220637619495392,
-0.19099698960781097,
... |
def thread ( data, default = u " untitled. ", id = none ) : html = html5lib. parse ( data, treebuilder = " dom " ) assert html. lastchild. nodename = = " html " html = html. lastchild # aka getelementbyid, but limited to div and section tags el = list ( filter ( lambda i : i. attributes [ " id " ]. value = = " isso - t... | [
-0.13656920194625854,
0.19203469157218933,
0.9049237370491028,
0.294170081615448,
-0.6169426441192627,
-0.45030900835990906,
0.13565537333488464,
-0.2759248614311218,
0.06047694757580757,
0.31469279527664185,
-0.3050154149532318,
-0.02665328048169613,
-0.4540024399757385,
0.183690592646598... |
def getallkilled ( self ) : return self. _ allkilled | [
0.7240489721298218,
-1.3966786861419678,
0.5321851968765259,
0.9006945490837097,
0.08846436440944672,
0.8414953351020813,
-0.9571514129638672,
0.06713163107633591,
0.297922283411026,
-0.36312204599380493,
-0.6256549954414368,
0.9204086065292358,
0.08310182392597198,
-0.31015509366989136,
... |
def redraw ( self ) : # if selection has changed then we may want to update some stuff if self. _ selection _ has _ changed : self. selection _ changed ( ) self. _ selection _ has _ changed = false surface = self. engine. display # draw background taking into account scroll if self. background _ image! = none : surface... | [
-0.887495756149292,
-0.7079389691352844,
0.6919946670532227,
-0.29825636744499207,
-0.29408711194992065,
0.2896954119205475,
0.4191063642501831,
-0.09807141125202179,
0.6166061758995056,
-0.21327175199985504,
0.6815878748893738,
0.6285463571548462,
0.2610488831996918,
1.0448440313339233,
... |
def _ set _ default _ workspace ( self, sub _ id, workspace = none ) : del sub _ id, workspace self. _ default _ workspace = " default " # ( # " wsname ", # " / subscriptions / cd928da3 - dcde - 42a3 - aad7 - d2a1268c2f48 / " # " resourcegroups / rg / providers / " # " microsoft. operationalinsights / workspaces / wsna... | [
0.17381411790847778,
0.6310606002807617,
0.2160584181547165,
-0.39286673069000244,
0.45335423946380615,
-0.22889462113380432,
-0.14295777678489685,
-0.575423002243042,
0.6035205721855164,
-0.2377787083387375,
-0.2817140519618988,
0.9269859194755554,
-0.6934320330619812,
1.039639949798584,
... |
def vgg _ reconstruct ( num _ classes = 10, config = none, fc = 63 ) : model = vgg ( config, num _ classes, fc ) return model | [
-0.27740490436553955,
0.7323497533798218,
0.24074649810791016,
0.8773855566978455,
-0.17582963407039642,
-0.6434261798858643,
0.12701068818569183,
1.495848536491394,
-0.20490407943725586,
-0.021580887958407402,
-0.33768990635871887,
-0.49832388758659363,
0.2582039535045624,
-0.703126907348... |
def while _ h ( ) : i = 0 while i < 7 : j = 0 while j < 6 : if j in ( 0, 5 ) or i = = 3 : print ( " * ", end = " " ) else : print ( " ", end = " " ) j + = 1 print ( ) i + = 1 | [
0.6570886969566345,
0.34649422764778137,
0.7233547568321228,
0.7679532766342163,
-0.8874180316925049,
0.9936867356300354,
0.47801369428634644,
-0.23515601456165314,
-0.666477620601654,
0.4059610366821289,
-0.014526380226016045,
0.5696365833282471,
-1.3111717700958252,
-0.293756902217865,
... |
def dump ( self, * args ) : return _ snap. tngraphmp _ dump ( self, * args ) | [
-0.6994796395301819,
0.21968916058540344,
0.0977756455540657,
-0.4746412932872772,
1.1709414720535278,
0.4561268985271454,
1.5094221830368042,
-0.6043906807899475,
-0.7851598262786865,
-0.16139043867588043,
-0.10905087739229202,
-0.9343457818031311,
-1.4050066471099854,
0.5482062697410583,... |
def needs _ resolution ( self ) : if self. lookups : return true return false | [
-1.1252881288528442,
0.09954553842544556,
0.5397846698760986,
0.21756486594676971,
0.20608381927013397,
0.1281704157590866,
-1.0536274909973145,
0.5650759339332581,
-0.035160262137651443,
-0.7339822053909302,
-0.24227899312973022,
-1.6085772514343262,
-0.9505224227905273,
0.312871336936950... |
def handle _ message ( self, msg, status ) : | [
0.0167949590831995,
-0.18185709416866302,
0.13783368468284607,
0.4847925007343292,
0.5400584936141968,
0.2642500102519989,
-0.5368884801864624,
0.9860999584197998,
-0.6682285070419312,
-1.0634480714797974,
-0.2834286689758301,
-0.6032813191413879,
-0.20331589877605438,
0.8361660838127136,
... |
def plotwccdistr _ pungraph ( * args ) : return _ snap. plotwccdistr _ pungraph ( * args ) | [
-0.7000845670700073,
0.7075363397598267,
0.025591649115085602,
-0.4306378662586212,
-0.6279071569442749,
-0.5020083785057068,
0.5405136346817017,
0.7590502500534058,
0.42174580693244934,
0.24473066627979279,
0.08015453815460205,
0.44621774554252625,
-0.8890872001647949,
0.44417744874954224... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.