text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def _ check _ persistent _ routes ( self ) : routes = self. _ get _ persistent _ routes ( ) if not routes : return none osutils = osutils _ factory. get _ os _ utils ( ) for route in routes : if osutils. check _ static _ route _ exists ( route. get ('network') ) : if not self. _ check _ existing _ route _ matches ( rou... | [
0.3839638829231262,
-0.006994978990405798,
0.6835912466049194,
0.6035866737365723,
0.9051719307899475,
0.21925075352191925,
-0.27343013882637024,
0.0856713354587555,
0.4242763817310333,
0.25177693367004395,
0.43918198347091675,
-0.8803313374519348,
-0.4225279688835144,
0.8404885530471802,
... |
def group _ sparse _ penalty ( xi, method = " 1 - norm ", quantile = none ) : # place each coefficient vector as column in new matrix xi = np. stack ( xi, axis = 1 ) # 2 - norm if method = = " 2 - norm " : return np. sqrt ( np. sum ( xi * * 2, axis = 1 ) ) # average magnitude elif method = = " avg " : return np. mean (... | [
0.002851689700037241,
0.0007556009222753346,
1.005021572113037,
-0.43329688906669617,
-0.38767045736312866,
-0.5979570150375366,
0.26512426137924194,
-0.44207674264907837,
0.2561406195163727,
0.38683751225471497,
1.0513153076171875,
0.21529316902160645,
-0.11622283607721329,
-0.43923294544... |
def test _ atomic _ base64 _ binary _ enumeration _ 3 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ enumeration _ 4 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - enumeration - 4. xsd ... | [
-0.49846529960632324,
-0.5238296985626221,
0.6001582145690918,
1.1786915063858032,
-0.09192878007888794,
0.12514865398406982,
0.6108387112617493,
-0.19776396453380585,
-0.5896968245506287,
0.4992784261703491,
-1.0303488969802856,
-0.2112564891576767,
-0.5855869650840759,
-0.179872944951057... |
def getpartition ( self, i ) : return self. _ partitions [ i ] | [
-0.38213327527046204,
0.09209412336349487,
0.22266177833080292,
-0.154876247048378,
-0.35610857605934143,
-0.16490530967712402,
0.27567511796951294,
-1.026748538017273,
0.19383397698402405,
-0.7342793941497803,
0.19990186393260956,
-0.5893784165382385,
-0.9393391609191895,
-1.2515966892242... |
def update _ templates _ display _ name ( template _ version _ manager ) : # iterate versions for i in range ( 0, len ( template _ version _ manager. versions ) ) : # get template id from list of versions template _ id = template _ version _ manager. versions [ i ] # get template from template id template = template _ ... | [
-0.7864870429039001,
-1.500350832939148,
0.6632644534111023,
-0.12156898528337479,
-1.5223759412765503,
0.32278141379356384,
-0.13835974037647247,
-0.1094542145729065,
0.3446091115474701,
1.7724742889404297,
-0.7817901968955994,
-0.20448565483093262,
0.1450551301240921,
0.5919872522354126,... |
def delete ( self, event = none ) : if self. master. window. top is not none : self. master. open _ toplevel ( ) else : self. master. tk. quit ( ) | [
0.4846278131008148,
-0.27683764696121216,
0.7249359488487244,
0.9825477600097656,
-0.741733729839325,
0.8679271936416626,
0.9746372103691101,
0.6557865738868713,
1.217273235321045,
-0.31626564264297485,
0.270538330078125,
0.43916720151901245,
-0.8535335659980774,
1.2210543155670166,
0.37... |
async def disable _ password _ reset ( self, password _ reset _ id : str ) - > user : await self. connect _ to _ database ( ) # udpate data data = {'verified': true } # create the password reset db object update _ result = await self. db ['passwordresets']. update _ one ( {'_ id': objectid ( password _ reset _ id ) }, ... | [
-0.32306990027427673,
0.38165900111198425,
0.449790358543396,
-0.5119490623474121,
-0.08062074333429337,
-0.0657074972987175,
-0.20083710551261902,
-0.19901563227176666,
0.39747023582458496,
0.6861278414726257,
-0.6685436964035034,
0.039917442947626114,
-1.460970401763916,
-0.4329754412174... |
def _ _ init _ _ ( self, prog _ name, facility = syslog. log _ local4 ) : self. prog _ name = prog _ name self. facility = facility | [
1.447798252105713,
-0.8326921463012695,
0.4491930603981018,
0.39261600375175476,
-0.12092510610818863,
-0.04314957559108734,
-0.4045054018497467,
1.025312066078186,
0.255858838558197,
-0.2024744600057602,
-0.4519149363040924,
0.3379403352737427,
0.4299999177455902,
0.4342612028121948,
0.... |
def angletolocuc ( self, angle ) : return float ( angle ) | [
0.7626311182975769,
-0.8896998763084412,
0.25113460421562195,
-1.762162208557129,
0.34439677000045776,
-0.460773229598999,
0.6016306281089783,
0.19668829441070557,
-0.3317221403121948,
0.8656905293464661,
0.12694568932056427,
-0.0013059097109362483,
0.6093911528587341,
-0.9733149409294128,... |
def tidyup ( ) : global cola1 cola1. put ( 0 ) | [
0.5454402565956116,
0.218177929520607,
0.08983753621578217,
-0.42573708295822144,
0.932303786277771,
0.930499792098999,
1.6200398206710815,
0.884772539138794,
-1.2441712617874146,
0.9472275376319885,
0.018448583781719208,
0.578426718711853,
-0.35717928409576416,
-0.35034745931625366,
0.5... |
def ln _ uniform _ prior ( x, min _ x, max _ x ) : if min _ x < x < max _ x : return - np. log ( max _ x - min _ x ) else : return - np. inf | [
-0.035660192370414734,
-0.5598989129066467,
0.3528244197368622,
-0.6416317224502563,
-0.3261691629886627,
0.4592631459236145,
-1.4442170858383179,
0.05360753834247589,
0.8582793474197388,
-0.44102218747138977,
-0.6963615417480469,
0.908696711063385,
0.5619151592254639,
-0.5014435052871704,... |
def remove _ all _ and _ add ( self, objects ) : if not objects : return self. remove _ all ( ) self. eval _ js ('table. removeallandadd ( { } ) ; '. format ( dumps ( objects ) ) ) | [
-0.47243961691856384,
-0.32583683729171753,
0.583864688873291,
0.9487024545669556,
0.17484715580940247,
-0.1082518920302391,
0.241489976644516,
0.22761116921901703,
0.5010502934455872,
0.6124190092086792,
-0.8720337152481079,
-0.24383923411369324,
0.17163486778736115,
1.1776230335235596,
... |
def test _ caching ( some _ thr ) : dtype = numpy. int32 size = 128 program = some _ thr. compile ( " " " kernel void test ( global _ mem int * dest ) { const size _ t idx = get _ global _ id ( 0 ) ; $ { data } test x ; x. a = dest [ idx ] ; x. b = dest [ idx + $ { size } ] ; x = $ { module1 } ( x ) ; x = $ { module2 }... | [
-0.08516570180654526,
0.811324954032898,
0.6315134763717651,
-0.09174767136573792,
-0.15238365530967712,
0.66997230052948,
0.7709628343582153,
-0.6612787246704102,
0.6524319052696228,
-0.15746043622493744,
-0.17461088299751282,
0.5942697525024414,
-0.1355147361755371,
0.4725402593612671,
... |
def get _ variables ( self ) : return self. _ request ('get ','/ variables') ['variables'] | [
-1.1150388717651367,
0.7170740962028503,
0.22532138228416443,
0.5077081918716431,
0.4581063389778137,
-0.7605465650558472,
-1.3373225927352905,
-1.112523078918457,
-0.022642051801085472,
-0.31860780715942383,
-0.754195511341095,
1.3560609817504883,
-1.3487290143966675,
-0.6769965291023254,... |
def getlogicalinterface ( self, logicalinterfaceid, draft = false ) : if draft : req = apiclient. onelogicalinterfaceurl % ( self. host, " / draft ", logicalinterfaceid ) else : req = apiclient. onelogicalinterfaceurl % ( self. host, " ", logicalinterfaceid ) resp = requests. get ( req, auth = self. credentials, verify... | [
-0.6075039505958557,
-0.24597640335559845,
0.4374910295009613,
-0.9120481610298157,
-0.9529969096183777,
-0.011229223571717739,
-0.5433074831962585,
-0.8232510685920715,
0.934819757938385,
-0.07141619175672531,
-0.2951309382915497,
0.5311335921287537,
-1.8792568445205688,
0.234648421406745... |
def calculate _ distance ( self, other _ point ) : return sqrt ( ( self. _ x - other _ point. _ x ) * * 2 + ( self. _ y - other _ point. _ x ) * * 2 ) | [
0.4050429165363312,
-0.900053858757019,
0.5485765337944031,
0.023424915969371796,
-0.07698222994804382,
0.5929527282714844,
-0.3050786256790161,
-0.026597006246447563,
0.629097044467926,
0.2788667380809784,
-0.8512921929359436,
-0.16199146211147308,
-0.22068999707698822,
-0.063376456499099... |
def data _ manipulation ( csv _ reader, args, date _ h, state _ h, impression _ h, ctr _ h ) : new _ list = input _ data _ manipulation ( csv _ reader, date _ h, state _ h, impression _ h, ctr _ h ) # creating data frame with pandas df = pd. dataframe ( data = new _ list ) # changing type of impressions column to int64... | [
-0.7953436374664307,
-0.1424380987882614,
0.572411298751831,
0.03953123465180397,
0.9048424363136292,
0.27159246802330017,
0.8095789551734924,
0.8014028668403625,
-0.7897424101829529,
-0.12223131954669952,
0.8809476494789124,
0.5369951128959656,
0.2647828459739685,
0.7521851658821106,
0.... |
def save ( self, filename, * * kwargs ) : fmt = kwargs. pop ( " format ", none ) if fmt = ='hdf5'or filename. endswith ( ". hdf5 " ) : self. _ save _ hdf5 ( filename, * * kwargs ) else : raise valueerror ( " not supported file format : % s " % format ) | [
-0.8280158638954163,
-0.1563638150691986,
0.44783052802085876,
0.9353326559066772,
0.23679254949092865,
-0.20230083167552948,
-0.44962450861930847,
-0.0384548157453537,
-0.5251500606536865,
-0.07924611866474152,
-0.048055555671453476,
-0.3643956482410431,
-0.46739253401756287,
1.1093422174... |
def delete _ loadbalancer ( self, blb _ id, client _ token = none, config = none ) : path = utils. append _ uri ( self. version,'blb ', blb _ id ) params = { } if client _ token is none : params [ b'clienttoken'] = generate _ client _ token ( ) else : params [ b'clienttoken'] = client _ token return self. _ send _ requ... | [
0.160272017121315,
-0.17543542385101318,
0.4470466077327728,
0.4596911370754242,
0.6839690804481506,
0.34241968393325806,
-0.7588744163513184,
-0.5328270196914673,
0.006999201141297817,
0.5723958015441895,
-1.2094229459762573,
1.4264888763427734,
-1.4816120862960815,
0.5766501426696777,
... |
def get _ list _ class ( context, list ) : css = " list _ % s _ % s " % ( list. model. _ meta. app _ label, list. model. _ meta. module _ name ) return css | [
-0.8101405501365662,
-0.5173726677894592,
0.4791550040245056,
-0.1021137461066246,
0.5291434526443481,
0.5112111568450928,
-1.5109378099441528,
0.22358639538288116,
0.7526309490203857,
0.5701256394386292,
-0.26314687728881836,
0.301239937543869,
1.5413405895233154,
0.8942580819129944,
-0... |
def sort _ words ( vertex, edge, window, damping _ coeffi = 0. 85 ) : " " " vertex is 2 dim list, [ [ word1, word2,... ] ( sentence1 ), [ ] ( sentence2 ),... ] edge is also 2 - dim, similar to vertex " " " sorted _ words = list ( ) # map word to index and index to word word _ index, index _ word = dict ( ), dict ( ) wo... | [
0.05293024331331253,
-0.1685819774866104,
0.9425597786903381,
-0.4069521129131317,
-0.9593771696090698,
-0.5595540404319763,
0.9609903693199158,
-0.039542440325021744,
-0.3765750229358673,
1.1961827278137207,
0.4015897810459137,
0.74964839220047,
-0.6556598544120789,
0.5592146515846252,
... |
def duration ( self ) : self. _ current _ duration = time. perf _ counter ( ) - self. _ duration _ start return round ( self. _ current _ duration, 4 ) | [
0.511799693107605,
-0.4088946282863617,
0.4047054648399353,
-0.28903380036354065,
0.3877890706062317,
0.2943333089351654,
1.3289090394973755,
-0.39140594005584717,
-0.26721131801605225,
0.29382413625717163,
-0.30092987418174744,
-0.08836193382740021,
-0.14448384940624237,
0.361652523279190... |
def vox _ by _ bidx ( voxels, indices ) : idx _ to _ vox = { } for count, idx in enumerate ( indices ) : # meanvox [ count ] if idx _ to _ vox. has _ key ( idx ) : idx _ to _ vox [ idx ]. append ( voxels [ count ] ) # idx _ to _ vox [ idx ]. append ( ( count, voxels [ count ] ) ) else : idx _ to _ vox [ idx ] = [ voxel... | [
-0.46216362714767456,
-0.18063846230506897,
0.4369311034679413,
-0.6857067942619324,
-0.0772823765873909,
-0.3830442726612091,
0.5963807106018066,
-0.003742154221981764,
0.17961394786834717,
0.773620069026947,
-0.031824011355638504,
0.3779318928718567,
-0.11050931364297867,
-0.056539095938... |
def coords ( self ) : _, coords = zip ( * self. path ) return coords | [
-1.421504259109497,
-0.5626561641693115,
0.40965965390205383,
-0.039572037756443024,
0.8320480585098267,
0.3571063280105591,
0.5460267066955566,
0.3442079424858093,
0.26554256677627563,
-0.560316264629364,
-0.45953911542892456,
-0.9232869148254395,
-0.013606257736682892,
0.0328308232128620... |
def test _ atomic _ base64 _ binary _ pattern _ 4 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ pattern _ 5 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - pattern - 5. xsd ", instance ... | [
-0.19118401408195496,
-0.05428182706236839,
0.47032037377357483,
1.0435320138931274,
-0.1716490089893341,
0.15388648211956024,
0.31834647059440613,
-0.48947834968566895,
-0.19080489873886108,
0.5986034870147705,
-0.6846292614936829,
-0.10998110473155975,
-0.9820659160614014,
-0.00737696932... |
def _ step ( current, target ) : if current is none : # base case : target not found. return current if current = = other : # base case : target found! return current if target < current : # recursively search to the left. return _ step ( current. left, target ) else : # recursively search to the right. return _ step (... | [
-0.7487548589706421,
0.11319319158792496,
0.5657867193222046,
0.3556962013244629,
-0.19688016176223755,
-0.4519217312335968,
-0.032457709312438965,
-1.0799742937088013,
-0.5617791414260864,
-0.3743442893028259,
0.4980892837047577,
0.24762603640556335,
-0.1495467573404312,
0.643894076347351... |
def init _ ui ( self ) : self. grid = qtgui. qformlayout ( self ) info = " the address of the remote machine or the ip " self. lbl _ host = qtgui. qlabel ('host') self. lbl _ host. setwhatsthis ( info ) self. lbl _ host. settooltip ( info ) self. le _ host = qtgui. qlineedit ( ) self. le _ host. setwhatsthis ( info ) s... | [
-0.2550874948501587,
-0.13224443793296814,
1.035856008529663,
-0.5606181621551514,
-0.1134161427617073,
0.9793116450309753,
-0.5290976166725159,
-0.19641099870204926,
-0.935873806476593,
-0.4508446156978607,
-0.5340933203697205,
-0.16717880964279175,
0.35347768664360046,
0.8876652121543884... |
def test _ transact _ asset _ behaviour ( ) : start _ dt = pd. timestamp ('2017 - 10 - 05 08 : 00 : 00 ', tz = pytz. utc ) earlier _ dt = pd. timestamp ('2017 - 10 - 04 08 : 00 : 00 ', tz = pytz. utc ) later _ dt = pd. timestamp ('2017 - 10 - 06 08 : 00 : 00 ', tz = pytz. utc ) even _ later _ dt = pd. timestamp ('2017 ... | [
1.0674654245376587,
0.5817704796791077,
0.8685259222984314,
-1.0001009702682495,
0.824847400188446,
-0.029874162748456,
0.8829826712608337,
-0.6725049614906311,
-0.36916622519493103,
0.1687244474887848,
0.005369306076318026,
-0.14125052094459534,
0.010432827286422253,
-0.19091832637786865,... |
def _ _ init _ _ ( self, * * kwargs ) : self. featurematches = kwargs # " featurematcher " | [
0.44728609919548035,
-0.5280312299728394,
0.46787917613983154,
1.2498202323913574,
-0.32968515157699585,
0.3818444013595581,
0.25599417090415955,
1.0833766460418701,
-0.3875448703765869,
-1.155719518661499,
-0.5945370197296143,
-0.5101924538612366,
-0.47112584114074707,
1.2990894317626953,... |
def n _ e _ inj ( self, gamma ) : if self. inj _ spec _ dict ['type'] = ='powerlaw': amplitude = 10 * * ( self. inj _ spec _ dict ['log10 _ norm'] ) * u. unit ( self. inj _ spec _ dict ['norm _ unit'] ) index = self. inj _ spec _ dict ['index'] # evaluate the densities pwl = power _ law _ eval ( amplitude, gamma, index... | [
-0.33098384737968445,
-0.30426880717277527,
0.6893436312675476,
-1.2353477478027344,
0.12694141268730164,
0.0568024143576622,
0.3337775468826294,
0.5997517108917236,
-0.3592933416366577,
0.33617106080055237,
0.32614830136299133,
0.15984436869621277,
-0.8019863963127136,
0.03725124150514603... |
def name _ get ( self, cr, uid, ids, context = none ) : if not len ( ids ) : return [ ] res = [ ] for record in self. browse ( cr, uid, ids, context = context ) : # name = record. fuel _ amount _ id. name _ get ( ) [ 0 ] [ 1 ] + _ ('destination') + record. fuel _ distance _ id. name _ get ( ) [ 0 ] [ 1 ] # record. fuel... | [
-1.4214848279953003,
-1.4598995447158813,
0.9078365564346313,
-0.7305253744125366,
-0.41483086347579956,
-1.1010847091674805,
-0.5488903522491455,
-0.47141459584236145,
-0.5037386417388916,
1.2637710571289062,
-0.5532105565071106,
-0.4920903444290161,
0.5079283714294434,
0.1479907929897308... |
def find _ components ( adjacency ) : components = [ ] # initially, the search list is all the nodes search _ list = set ( range ( len ( adjacency ) ) ) # run until the search _ list is exhausted while search _ list : # next vertex in queue vertex = list ( search _ list ). pop ( 0 ) # define an empty adjacency matrix f... | [
-0.4042094647884369,
0.24633748829364777,
0.6656817197799683,
-0.7438631057739258,
0.765451192855835,
-0.6059511303901672,
0.5519535541534424,
-0.5542884469032288,
0.7863127589225769,
0.8116526007652283,
0.08122379332780838,
0.09420011937618256,
-0.13995590806007385,
0.4526602327823639,
... |
def kwargs ( self ) : kwargs = { } for ( key, value ) in self. _ kwargs. iteritems ( ) : if isinstance ( value, atomiccmdbuilder ) : value = value. finalize ( ) kwargs [ key ] = value return kwargs | [
-0.09808529168367386,
0.23390042781829834,
0.4410863220691681,
-0.17451152205467224,
-0.17685534060001373,
-0.5701627731323242,
0.029647743329405785,
-0.5309865474700928,
-0.40190383791923523,
0.31974467635154724,
-0.05875638499855995,
-0.44086265563964844,
-0.522816002368927,
1.7732028961... |
def test _ single _ thread _ tbb ( self ) : runme = " " " if 1 : from numba import njit, prange, threading _ layer @ njit ( parallel = true ) def foo ( n ) : acc = 0 for i in prange ( n ) : acc + = i return acc foo ( 100 ) assert threading _ layer ( ) = = " tbb ", " tbb not found " " " " cmdline = [ sys. executable,'- ... | [
0.5844916701316833,
0.6923149824142456,
0.636544406414032,
1.1677942276000977,
0.9260717034339905,
1.4720882177352905,
1.6827409267425537,
-0.2354869246482849,
0.03474442660808563,
-0.07094928622245789,
-0.10872992128133774,
0.1873268187046051,
-1.1915236711502075,
0.8563658595085144,
0.... |
def update _ workflow ( workflow ) : # todo : support renaming a workflow, i. e. rename directory as well config = json. loads ( request. data ). get ('config ', none ) # update workflow configuration workflow. config. set ( config ) # persist to disk persistence. update _ workflow _ config ( workflow. id, workflow. co... | [
-1.536740779876709,
-0.9070993661880493,
0.21465812623500824,
-0.12882564961910248,
-0.2483886033296585,
-0.6769985556602478,
0.18714682757854462,
-0.1025836244225502,
0.4445357620716095,
0.4253876507282257,
-1.034360647201538,
-0.3203427493572235,
-0.4959908425807953,
0.36976704001426697,... |
def mixing _ r ( ) : yield 7. 9148e - 3 | [
0.6220292448997498,
0.16661088168621063,
0.37592804431915283,
-0.14259706437587738,
0.23572836816310883,
0.520883321762085,
0.404815673828125,
-0.4405478239059448,
0.6002864241600037,
-0.027314092963933945,
0.06187953054904938,
-0.9806617498397827,
-1.0722415447235107,
0.5621852874755859,
... |
def _ _ init _ _ ( self, multi _ band _ list, kwargs _ model, kwargs _ constraints, kwargs _ likelihood, kwargs _ fixed, kwargs _ lower, kwargs _ upper, kwargs _ lens _ init = none, compute _ bool = none ) : # print ('initialized on cpu ', threading. current _ thread ( ) ) kwargs _ fixed _ lens, kwargs _ fixed _ source... | [
0.3496467173099518,
-0.5289849042892456,
0.9228623509407043,
0.9520146250724792,
-0.2978507876396179,
0.5102477073669434,
-0.29889944195747375,
0.1614939421415329,
0.2893705368041992,
0.20732979476451874,
-0.4371245205402374,
0.037179362028837204,
-0.5217990875244141,
1.3602166175842285,
... |
def create _ instance ( test _ id, config, args ) : return testfib ( test _ id, config, args ) | [
1.0691584348678589,
-0.5668439269065857,
0.21896079182624817,
0.2423994243144989,
0.6780640482902527,
-0.16201114654541016,
0.09400231391191483,
0.42386654019355774,
-0.48479393124580383,
0.01969875767827034,
-0.24242077767848969,
-0.3683856129646301,
-1.45824134349823,
0.1940205693244934,... |
def num _ cameras ( self ) : return len ( self. cameras ) | [
-0.05087641254067421,
0.5218547582626343,
0.2718648314476013,
0.6409058570861816,
0.5593852996826172,
0.18998554348945618,
0.03662075102329254,
-0.05801773816347122,
1.462044596672058,
-0.24653801321983337,
-1.5852274894714355,
0.14683739840984344,
0.18140441179275513,
0.6389423608779907,
... |
def process ( self, entry, state, current _ target = none ) : debug ( " [ matgrindr ] event { } ". format ( entry ['event'] ) ) params = self. make _ params ( entry, state ) system _ ev = ['fsdjump ','location ','startup ','loadgame'] body _ ev = ['approachbody ','location ','startup ','loadgame'] latlon _ ev = ['touch... | [
-0.4338994324207306,
-0.4034261107444763,
0.8928821682929993,
-0.8313815593719482,
-0.47152069211006165,
-0.4933738708496094,
0.0928756445646286,
0.18423010408878326,
0.0590892918407917,
0.7128420472145081,
0.5612073540687561,
0.16737774014472961,
-0.16265027225017548,
0.8827304244041443,
... |
def generate _ checker ( value ) : @ property @ wraps ( can _ be _ ) def checker ( self ) : return self. can _ be _ ( value ) return checker | [
-0.9238826036453247,
-0.2706737816333771,
0.4083738923072815,
0.5425580739974976,
-0.44433480501174927,
0.8346823453903198,
0.45206543803215027,
0.39852002263069153,
-0.01664152182638645,
-0.41844621300697327,
0.3047393262386322,
-0.394227534532547,
0.17780841886997223,
0.455445796251297,
... |
def rotate ( shift, line ) : line = line. lower ( ) res ='' for char in line : if not char. isalpha ( ) : res + = char else : num = ord ( char ) + shift if num > ord ('z') : num = num % 123 + ord ('a') res + = chr ( num ) return res | [
-0.4212958514690399,
-0.26928794384002686,
0.6283265948295593,
-0.1466040015220642,
-0.00006403977022273466,
-0.15967129170894623,
-0.1558780074119568,
-0.15870815515518188,
0.5108104944229126,
-0.49599888920783997,
0.11494254320859909,
0.22282415628433228,
-0.7274355292320251,
-0.73525160... |
def makestack ( self, table ) : for value in table : self. add ( value ) | [
-0.5141315460205078,
1.0429842472076416,
0.3632003366947174,
0.8932448029518127,
0.3982635736465454,
0.3529166877269745,
0.09375537931919098,
-0.4680000841617584,
-0.9894859790802002,
0.22148431837558746,
-0.7877759337425232,
-0.4345387816429138,
0.015341653488576412,
0.42699578404426575,
... |
def sayline ( self, obj ) : # get the accessibletext interface of the provided object # [ line, caretoffset, startoffset ] = self. gettextlineatcaret ( obj ) debug. println ( debug. level _ finest, \ " sayline : line = < % s >, len = % d, start = % d, " % \ ( line, len ( line ), startoffset ) ) debug. println ( debug. ... | [
-0.0894048810005188,
-0.7180700302124023,
0.8175432682037354,
-0.27663829922676086,
0.29459214210510254,
-0.2592366635799408,
-0.3775305151939392,
-0.5287855267524719,
0.4856593906879425,
0.019540099427103996,
0.08244835585355759,
0.43126991391181946,
-0.6855753660202026,
0.296290576457977... |
def processclassframes ( self ) : logger. info ('processing all classes...') for classname in self. classlist : melmethods = self. getmelmethods ( classname ) logger. debug ('% s : mel methods : % s'% ( classname, melmethods ) ) for clsname, apiclsname in getclasshierarchy ( classname ) : if apiclsname and apiclsname n... | [
-1.127241849899292,
-0.17583885788917542,
0.6704108119010925,
0.4457848072052002,
-0.05167737603187561,
-0.7159112095832825,
0.16679950058460236,
-0.17909638583660126,
0.6703016757965088,
-0.487445205450058,
-0.6556742191314697,
-0.7746320962905884,
-0.8057816624641418,
1.215389609336853,
... |
def _ select _ next _ events ( self, query, start _ idx, n _ events ) : p, _, pos, _ = query [ start _ idx ] try : idx = start _ idx + 1 p _ next, _, pos _ next, _ = query [ idx ] # iterate until position self. d and pitch _ diff self. pitch _ diff requirements are met while ( abs ( pos _ next - pos ) < self. d ) or ( ... | [
-0.7331598997116089,
-0.14087826013565063,
0.6082566380500793,
-0.12819911539554596,
-0.7274565100669861,
-0.3590787351131439,
0.6563672423362732,
-0.7959752678871155,
0.4557639956474304,
-0.329013466835022,
0.20523488521575928,
-0.016167277470231056,
-0.4495246708393097,
-0.39603227376937... |
def _ renderimpl ( self, * * kwargs ) : a = self. attrs url = a. get ( tagattributesenum. url, none, kwargs ) play = a. getasbool ( tagattributesenum. auto _ play, false, kwargs ) artwork = a. getasbool ( tagattributesenum. artwork, true, kwargs ) comments = a. getasbool ( tagattributesenum. comments, true, kwargs ) co... | [
-0.6292222142219543,
0.20964403450489044,
0.8985663056373596,
-0.9769487380981445,
0.1181783452630043,
-1.3081961870193481,
-0.1183125376701355,
-0.34365665912628174,
0.3577440679073334,
-0.07011828571557999,
0.46050703525543213,
-0.1854616105556488,
-0.2984217703342438,
0.948352575302124,... |
def find _ n _ best ( self, n, short _ fst _ base ) : call = " fstshortestpath - - nshortest = % s - - delta = % s % s % s. fst " \ % ( n, self. delta, self. fst _ fn, short _ fst _ base ) subprocess. call ( [ call ], shell = true ) n _ best _ fst = fst ( short _ fst _ base ) n _ best _ fst. isymbols _ fn = self. isymb... | [
-0.059438906610012054,
-0.10695403814315796,
0.46276912093162537,
0.3490058481693268,
-0.10741333663463593,
-0.9747724533081055,
0.11055438220500946,
-1.0601508617401123,
-0.08162474632263184,
-1.4457991123199463,
-0.8052862286567688,
0.7462984919548035,
-0.10524465888738632,
0.53029048442... |
def comment _ add ( request ) : if not request. user. is _ authenticated ( ) : return httpresponseredirect ('/ account / sign - in /') post _ data = request. post. copy ( ) if request. user. is _ authenticated ( ) : post _ data ['name'] = request. user. username post _ data ['email'] = request. user. email post _ data ... | [
-0.48618942499160767,
-0.10621032863855362,
0.8229473829269409,
0.5459622144699097,
1.046424388885498,
-0.1425442397594452,
0.32217198610305786,
0.15589885413646698,
-0.4336625039577484,
0.2664216160774231,
-0.680060088634491,
-0.5324521064758301,
-0.40974006056785583,
-0.36300525069236755... |
def _ zeros _ like _ refkey _ type ( x ) : return x | [
-0.5804730653762817,
-0.1718239039182663,
0.39602699875831604,
-0.4501872956752777,
-0.3178684413433075,
0.29850685596466064,
-0.06263650953769684,
-1.697169303894043,
1.1800168752670288,
0.024637803435325623,
0.27318477630615234,
0.8076480627059937,
-0.030162831768393517,
0.69370234012603... |
def connect _ to _ device ( deviceconfig ) : device = { } device ['host'] = deviceconfig ['address'] device ['auth _ username'] = deviceconfig ['username'] device ['auth _ password'] = deviceconfig ['password'] device ['auth _ strict _ key'] = false conn = iosxedriver ( * * device ) conn. open ( ) return conn | [
-1.0502204895019531,
0.19321146607398987,
0.48240864276885986,
0.19362550973892212,
-0.7230750322341919,
-0.016587838530540466,
0.10868437588214874,
0.712448000907898,
-0.30604296922683716,
0.11435413360595703,
-0.5058060884475708,
-0.36722031235694885,
-0.10713143646717072,
-0.84167754650... |
def ball _ drop ( discs ) : for step in range ( 100 ) : states [ step ] = discs print ('time step { }. '. format ( step ) ) discs = update _ discs ( discs ) is _ solved ( states ) | [
-1.531498908996582,
0.6552273631095886,
0.2893993854522705,
0.2529766261577606,
0.7780312299728394,
0.16817279160022736,
0.5717319250106812,
-0.42567959427833557,
0.09308012574911118,
0.2341046929359436,
-1.3249574899673462,
-0.8495427966117859,
0.44131553173065186,
0.3631574511528015,
-... |
def create ( nova _ client, neutron _ client, args, * * kwargs ) : external _ server = use _ external _ resource ( ctx, nova _ client, server _ openstack _ type ) if external _ server : _ set _ network _ and _ ip _ runtime _ properties ( external _ server ) if ctx. _ local : return else : network _ ids = \ get _ openst... | [
-1.1286906003952026,
0.21407757699489594,
0.7883910536766052,
-0.1960206925868988,
0.4823147654533386,
-0.46864479780197144,
-0.0970989465713501,
-0.7800335884094238,
-0.4732798635959625,
0.359589546918869,
-0.12153878062963486,
0.5872970223426819,
-0.04956844449043274,
0.32928377389907837... |
def countobservation ( stime _ list ) : if len ( stime _ list ) > 0 : sorted _ list = sorted ( stime _ list ) line = data _ dir +'/ info _ dir / list _ of _ ccd _ no'fo = open ( line,'a') comp = sorted _ list [ 0 ] cnt = 1 for i in range ( 1, len ( sorted _ list ) ) : if sorted _ list [ i ] = = comp : cnt + = 1 else : ... | [
-0.2411985993385315,
-0.0053176782093942165,
0.7656578421592712,
-0.12037340551614761,
0.06454405188560486,
0.37189555168151855,
1.024788498878479,
0.5069841742515564,
0.08270279318094254,
0.4381246864795685,
-0.8455065488815308,
0.12579445540905,
0.5074536204338074,
1.229244351387024,
0... |
def _ first _ repeated ( input _ list ) : min _ idx = sys. maxsize temp _ dict = { } for i in range ( len ( input _ list ) - 1, - 1, - 1 ) : if input _ list [ i ] in temp _ dict : if i < min _ idx : min _ idx = i else : temp _ dict [ input _ list [ i ] ] = i return input _ list [ min _ idx ] | [
-0.5440144538879395,
0.5562670230865479,
0.41914620995521545,
-0.2598002552986145,
-0.38454556465148926,
-0.5267324447631836,
0.5051229000091553,
0.1161520853638649,
-0.17608492076396942,
-0.016610154882073402,
-0.9110668301582336,
-0.055189669132232666,
-0.6306279897689819,
0.136637091636... |
def getbraillebindings ( self ) : braillebindings = script. script. getbraillebindings ( self ) try : braillebindings [ braille. brlapi. key _ cmd _ fwinlt ] = \ self. inputeventhandlers [ " panbraillelefthandler " ] braillebindings [ braille. brlapi. key _ cmd _ fwinrt ] = \ self. inputeventhandlers [ " panbraillerigh... | [
-0.026295732706785202,
-0.9093283414840698,
0.7163996696472168,
0.4621281921863556,
-0.050138141959905624,
0.7159064412117004,
0.323397159576416,
-0.3197333812713623,
0.4072914719581604,
-0.7243147492408752,
-0.939201295375824,
0.3386136591434479,
-0.7184959053993225,
0.8019501566886902,
... |
def function ( name, range = false, sync = false, allow _ nested = false, eval = none ) : def dec ( f ) : f. _ nvim _ rpc _ method _ name ='function : { } '. format ( name ) f. _ nvim _ rpc _ sync = sync f. _ nvim _ bind = true f. _ nvim _ prefix _ plugin _ path = true opts = { } if range : opts ['range'] ='' if range ... | [
-0.1124342679977417,
-0.019732574000954628,
0.9026439785957336,
-0.2487441450357437,
-0.5379506945610046,
-0.9027462005615234,
-0.069804847240448,
-0.034233447164297104,
0.1350926011800766,
0.09665289521217346,
-0.01585332863032818,
0.1142192855477333,
0.1595584750175476,
-0.78338205814361... |
def getstate ( self ) : return self. _ state | [
-0.43140992522239685,
-0.7367040514945984,
0.24027977883815765,
-0.030037909746170044,
-0.1100410744547844,
0.4765912592411041,
0.7079698443412781,
-0.3459039032459259,
0.3775496482849121,
-1.3794609308242798,
-0.3448203504085541,
0.3357337713241577,
-0.47231975197792053,
-0.45168814063072... |
def kl _ divergence ( x, func, par, y ) : values = func ( x, * par ) mask = np. logical _ and ( y > 1e - 50, values > 1e - 50 ) if np. any ( mask ) and mask. sum ( ) > 2 : return ( np. sum ( values [ mask ] * np. log ( values [ mask ] / y [ mask ] ) ) + np. sum ( y [ mask ] * np. log ( y [ mask ] / values [ mask ] ) ) ... | [
0.6287112832069397,
0.00843034591525793,
0.6032798886299133,
0.41656944155693054,
-0.4436347484588623,
0.08777164667844772,
-0.3973439335823059,
0.02174483798444271,
0.1943807452917099,
0.2657686173915863,
0.37904977798461914,
0.6001048684120178,
0.6829764246940613,
0.7572313547134399,
0... |
def render _ dict ( * * kwargs ) : # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # strings found in this dict will be rendered # using this same dict as its variables # in this fashion, yaml files can have jinja2 # logic as well, thus, variables in yaml can # reference other ... | [
-0.20095863938331604,
0.15783531963825226,
0.6952953338623047,
-1.6935114860534668,
-1.1787997484207153,
-0.9142960906028748,
-0.7227238416671753,
0.3237555921077728,
-0.5766329765319824,
0.056766849011182785,
0.04928450286388397,
0.05197774991393089,
-0.3235621452331543,
0.097072459757328... |
def test _ example _ function ( self ) : self. assertequal ( example _ function ( ), " value " ) | [
0.6718710660934448,
-0.11152328550815582,
-0.20122872292995453,
0.49117961525917053,
0.9485338926315308,
0.7875193357467651,
0.054059065878391266,
0.6189597249031067,
-0.030756711959838867,
-0.3375036418437958,
-0.5221312642097473,
0.6008511781692505,
0.4816589653491974,
-0.566531598567962... |
def ln _ prob ( theta, hyperparameters, * args, * * kwargs ) : lp = ln _ prior ( theta, hyperparameters ) lk = ln _ likelihood ( theta, * args, * * kwargs ) return lp + lk | [
1.047636866569519,
-0.20341244339942932,
0.4136253893375397,
-0.287389874458313,
0.5005000233650208,
0.02567153237760067,
-1.1511867046356201,
0.4599078297615051,
-0.17103487253189087,
0.01733904518187046,
-0.1995423436164856,
-0.05684817582368851,
-0.17925021052360535,
0.02705078013241291... |
def plot _ wage _ change _ dist ( df, pi, lambda _, nperiods = 4, log = true, figkwargs = none, axkwargs = none ) : idx = get _ index ( df ) some _ ss = 30 # just some period in the steady state. diffs = range ( 1, nperiods + 1 ) if log : df = np. log ( df ) strlog = ', ( log scale ),'# see title formatting else : strl... | [
0.5962119698524475,
0.8369514346122742,
0.7784970998764038,
-0.581023633480072,
-0.529689610004425,
0.35677042603492737,
0.037954915314912796,
0.39023980498313904,
-0.1847909688949585,
0.06777330487966537,
0.24564285576343536,
1.1800661087036133,
0.554067850112915,
0.6455798149108887,
0.... |
def move ( self, p1, p0 = none, draw = none ) : if not p0 : p0 = self. position if draw is none : draw = self. draw if draw : plt. plot ( ( p0 [ 0 ], p1 [ 0 ] ), ( p0 [ 1 ], p1 [ 1 ] ), color = self. color ) self. set _ position ( p1 ) | [
0.05001816153526306,
0.0020815543830394745,
0.6185597777366638,
0.2180439829826355,
-0.5122702717781067,
0.8738559484481812,
-0.17946584522724152,
0.4185868501663208,
-0.041025903075933456,
-0.15378011763095856,
-0.42016541957855225,
0.6198900938034058,
0.27675661444664,
-0.050413988530635... |
def data _ tostring ( data ) : if isinstance ( data, list ) : return array. array ( " b ", data ). tostring ( ) elif isinstance ( data, array. array ) : return data. tostring ( ) else : return data | [
-0.17144359648227692,
-0.15689800679683685,
0.7231829762458801,
0.15718385577201843,
0.1671476662158966,
0.25746241211891174,
-0.9398967623710632,
-0.6798487305641174,
1.0830494165420532,
0.3375464379787445,
-0.7376111149787903,
1.3849273920059204,
-1.2234989404678345,
0.39559227228164673,... |
def input _ wizard ( self, require _ n = false, ref _ pop = none, individual _ sample = none, csv _ filename = none, csv _ indices = none ) : if not csv _ filename : s = read _ input ('the name of this sample ', default = self. title, optional = true ) if s : self. title = s if self. is _ population is none : s = read ... | [
-0.13818742334842682,
0.05762956291437149,
0.9703245162963867,
0.9433291554450989,
-1.0076699256896973,
0.7025262713432312,
1.1870229244232178,
-0.12050183117389679,
0.37308162450790405,
0.14042508602142334,
0.7089183330535889,
0.737554132938385,
0.4025801718235016,
0.752627432346344,
0.... |
def _ _ dir _ _ ( self ) : return super ( ). _ _ dir _ _ ( ) + sorted ( self. _ identified _ links ) | [
-0.7799239754676819,
-0.4740869402885437,
0.3190172612667084,
-0.5244148969650269,
0.2979829013347626,
0.3037845492362976,
0.6462829113006592,
-0.1035812720656395,
0.9647799730300903,
-1.7491724491119385,
0.3635372519493103,
0.5733366012573242,
0.9087043404579163,
0.5048415660858154,
-0.... |
def test _ split _ by _ list ( df _ mixed _ types, col, cut _ off _ list ) : test = drophighpsifeatures ( split _ col = col, cut _ off = cut _ off _ list, bins = 3 ) a, b = test. _ split _ dataframe ( df _ mixed _ types ) pd. testing. assert _ frame _ equal ( a, df _ mixed _ types [ df _ mixed _ types [ col ]. isin ( c... | [
-0.7698870301246643,
0.7462892532348633,
0.48743918538093567,
0.6593315005302429,
0.29531779885292053,
0.5554428100585938,
0.6855213642120361,
0.8854619264602661,
0.18477709591388702,
0.46828460693359375,
-1.4243078231811523,
-0.11538150906562805,
-0.7383493185043335,
0.3166581094264984,
... |
def multi _ level _ flatten ( multi _ level _ inputs, last _ dim = none ) : flattened _ inputs = [ ] batch _ size = none for level in multi _ level _ inputs. keys ( ) : single _ input = multi _ level _ inputs [ level ] if batch _ size is none : batch _ size = single _ input. shape [ 0 ] or tf. shape ( single _ input ) ... | [
-0.6199320554733276,
0.04248940199613571,
0.8535876274108887,
0.8793004155158997,
-0.09673809260129929,
0.2117357701063156,
0.29314613342285156,
0.6659901738166809,
-0.11129782348871231,
0.07767968624830246,
0.29559049010276794,
0.14637669920921326,
-0.5808903574943542,
0.4403339922428131,... |
def _ consume ( self, channel, method, properties, body ) : try : self. _ do _ consume ( channel, method, properties, body ) self. _ logger. info ('acknowledging : % s ', properties. correlation _ id ) channel. basic _ ack ( delivery _ tag = method. delivery _ tag ) except exception : self. _ logger. info ('not acknowl... | [
0.38304921984672546,
0.08688699454069138,
0.7096578478813171,
-0.45936349034309387,
0.5941684246063232,
-0.36767667531967163,
-0.5676252841949463,
-0.5586960911750793,
-0.277387410402298,
0.7227720022201538,
1.0224636793136597,
0.09656507521867752,
0.6245715618133545,
0.398684024810791,
... |
def convert _ str _ to _ fnv32 ( text : str, seed : int = 2166136261, high _ bit : bool = true ) - > int : fnv _ hash = commonresourceutils. _ str _ to _ fnv ( text, seed, 16777619, 4294967296 ) if high _ bit : fnv _ hash | = 2147483648 return fnv _ hash | [
0.49488863348960876,
0.38376742601394653,
0.5638670921325684,
0.5403563380241394,
-0.9203883409500122,
-0.2293698787689209,
-0.4563658833503723,
-0.6878235936164856,
-0.6627044081687927,
-0.3287403881549835,
-0.7242788672447205,
0.18175509572029114,
-0.09184621274471283,
-0.204446285963058... |
def test _ max _ 1 ( ) : assert mono _ 22050 _ 16bits. max ( ) = = 32767 | [
0.45086073875427246,
1.3616087436676025,
0.29136672616004944,
1.4455088376998901,
1.0974329710006714,
0.7077319025993347,
0.3022672235965729,
-0.3903014361858368,
0.5379059314727783,
-0.3461143374443054,
-0.562788724899292,
1.1978455781936646,
-0.46232879161834717,
0.1977623850107193,
0.... |
def record _ import _ warning ( self, warning, importer ) : self. _ clients ['warning']. record _ import _ warning ( warning, importer ) | [
0.030929215252399445,
0.3947584927082062,
0.3338102400302887,
0.7601560950279236,
0.3135213851928711,
0.4024013876914978,
-0.28812605142593384,
-1.0610520839691162,
-0.049735214561223984,
1.7924118041992188,
-0.8421862125396729,
1.201831340789795,
-0.15655212104320526,
0.15478581190109253,... |
def test _ instance _ has _ no _ func ( self ) : dispatcher = xmlrpc. server. simplexmlrpcdispatcher ( ) dispatcher. register _ instance ( object ( ) ) with self. assertraisesregex ( exception,'method') : dispatcher. _ dispatch ('method ', ('param ', ) ) | [
-0.3488765358924866,
1.1229920387268066,
0.5281187295913696,
-0.3658730089664459,
0.5540584921836853,
-0.3044036030769348,
0.3257501423358917,
0.05319250375032425,
0.3255612552165985,
-1.5502240657806396,
-1.035666823387146,
-0.11246764659881592,
-0.37392914295196533,
1.1405103206634521,
... |
def test _ atomic _ any _ uri _ enumeration _ 1 _ nistxml _ sv _ iv _ atomic _ any _ uri _ enumeration _ 2 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - enumeration - 2. xsd ", instance = " nistdata... | [
-0.8673368096351624,
-0.8685070276260376,
0.5877540707588196,
0.8724286556243896,
-0.14946679770946503,
-0.03861526399850845,
-0.11487526446580887,
0.012451674789190292,
0.14235550165176392,
-0.07385372370481491,
0.10519562661647797,
-0.18827246129512787,
-0.07198918610811234,
0.1266255080... |
def abort ( msg ) : print > > sys. stderr, msg sys. exit ( 1 ) | [
0.4242384433746338,
-0.3609837293624878,
0.49811357259750366,
-0.05526532232761383,
-0.46048539876937866,
0.43092307448387146,
-0.05341019853949547,
-0.42984652519226074,
-0.23807910084724426,
-0.04060603678226471,
1.3559706211090088,
1.0308823585510254,
-0.3547130227088928,
0.603147804737... |
def create _ functions ( self, output _ layer, x _ tensor _ type = t. matrix, batch _ size = batch _ size, learning _ rate = learning _ rate, momentum = momentum, l1 _ reg = 0. 0000005, l2 _ reg = 0. 000003 ) : x _ batch = x _ tensor _ type ('x') y _ batch = t. fvector ('y') output _ row = lasagne. layers. get _ output... | [
-0.010307536460459232,
-0.34664738178253174,
0.8355395197868347,
0.8240959048271179,
-0.08605440706014633,
-0.42590340971946716,
0.1856154203414917,
-0.4419473111629486,
-0.6491034030914307,
-0.3443615138530731,
-0.20432105660438538,
-0.10036277770996094,
1.0183851718902588,
0.574860632419... |
def f _ from _ ransac ( x1, x2, model, maxiter = 10000, match _ threshold = 1e - 6 ) : import ransac data = np. vstack ( ( x1, x2 ) ) # compute f and return with inlier index f, ransac _ data = ransac. ransac ( data. t, model, 8, maxiter, match _ threshold, 20, return _ all = true ) return f, ransac _ data ['inliers'] | [
0.33700090646743774,
-0.42540931701660156,
0.21311092376708984,
0.475668728351593,
-0.3436208963394165,
-1.2447141408920288,
-0.46539294719696045,
0.35276350378990173,
-0.7763362526893616,
-0.4077213406562805,
-0.3619244396686554,
0.25743821263313293,
0.5522626638412476,
-0.686081707477569... |
def cipher ( string ) : wordcipher ='\ x00 \ x01 \ x02 \ x03 \ x04 \ x05 \ x06 \ x07 \ x08 \ t \ n \ x0b \ x0c \ r \ x0e \ x0f \ x10 \ x11 \ x12 \ x13 \ x14 \ x15 \ x16 \ x17 \ x18 \ x19 \ x1a \ x1b \ x1c \ x1d \ x1e \ x1f 2 / itz \ \ ^ xkgsa & m " z0rf - w $ 4vd3ppe8 \'y ] 7 ~ _ @ w [ ` # btk < ujydc,! :? e5vo1 > xum.... | [
1.1641197204589844,
-0.2502729594707489,
1.0564934015274048,
-0.18507079780101776,
-0.5848828554153442,
0.3541724681854248,
0.6842981576919556,
-0.19490015506744385,
0.13557270169258118,
1.1360414028167725,
-0.8640774488449097,
-0.1850203275680542,
-0.5121378898620605,
-0.18002010881900787... |
def push _ hub ( self, n ) : self. _ bnd _ hub ( n,'hub') | [
-0.36199119687080383,
1.2100300788879395,
0.37780582904815674,
1.4120783805847168,
0.904843270778656,
1.1525741815567017,
-0.23108096420764923,
-0.8466364741325378,
0.3875768184661865,
0.20202933251857758,
-0.4975493848323822,
0.8432397842407227,
-0.2439909726381302,
0.9847192168235779,
... |
def create _ txt _ files ( filepath, file _ name, list _ files1, list _ files2 ) : f = open ( filepath, " w + " ) # first line if list _ files1! = [ ] : f. write ( str ( file _ name ) + " " ) f. write ( str ( list _ files1 [ 0 ] ) + " " + str ( list _ files1 [ 1 ] ) + " " + str ( list _ files1 [ 2 ] ) + " " + str ( lis... | [
0.6983274221420288,
-0.6534804701805115,
0.9684866666793823,
0.21138302981853485,
0.8052687644958496,
0.7107737064361572,
-0.34936660528182983,
0.66209477186203,
-0.8976781964302063,
0.883675217628479,
-0.6435221433639526,
0.0611344613134861,
-0.2148132622241974,
0.22859816253185272,
-0.... |
def _ _ init _ _ ( self, parent ) : self. _ parent = parent self. _ parentui = parent. _ parent. ui reportselectordialogbase. _ _ init _ _ ( self, self. _ parentui, qtcore. qt. windowtitlehint | qtcore. qt. windowminmaxbuttonshint | qtcore. qt. windowclosebuttonhint ) self. setupui ( self ) self. setwindowicon ( self. ... | [
0.3241828978061676,
-0.08214176446199417,
0.7373557686805725,
-0.21926678717136383,
-0.005567315500229597,
0.05469339340925217,
0.7632495760917664,
-0.12360382080078125,
-0.3901316225528717,
-0.7335993647575378,
-0.41289088129997253,
-0.3781897723674774,
-0.6693902015686035,
1.344403743743... |
def calculate _ raise ( self, height : float ) - > float : # epsilon = 0. 02 # we want to place the platform slightly below it! return height - self. size. height # - epsilon | [
0.9351820945739746,
0.11694309115409851,
0.5108047127723694,
-0.08756256848573685,
-0.5782544612884521,
0.059373389929533005,
0.13385774195194244,
-0.4323718845844269,
-0.6592454314231873,
0.08372286707162857,
-0.5423561334609985,
-0.6455711722373962,
-1.4191195964813232,
0.546029567718505... |
def get _ process _ list ( node : node ) : input _ objects, process _ list = check _ node _ parents ( node = node ) output _ objects = [ ] for data _ object in node. get _ parent _ by _ name ( parent _ name = " data " ). output _ objects : # skip if the datatype is not a strds and put the input into the output if data ... | [
-0.10060396790504456,
-0.07839777320623398,
0.750051736831665,
-0.5113723874092102,
0.45444053411483765,
-0.24567216634750366,
-0.17223864793777466,
-0.5988125801086426,
-0.23182915151119232,
0.09746724367141724,
-0.39645063877105713,
1.0235120058059692,
0.06907058507204056,
0.825253307819... |
def parse _ na ( toparse ) : if toparse = ='n / a': return - 1 return toparse | [
-1.4295669794082642,
-0.3965293765068054,
0.4681468904018402,
-0.23729614913463593,
-0.07990191876888275,
0.5513427257537842,
-0.012422649189829826,
0.19956840574741364,
-0.19540360569953918,
-0.4732828736305237,
0.8684539198875427,
-0.9975267052650452,
0.14749962091445923,
0.1135128885507... |
def visit _ alt _ fuel _ pages ( url _ list ) : d = { } n = 0 for url in url _ list : request = utility. get _ request ( url ) text = utility. read _ request ( request ) soup = bs4. beautifulsoup ( text, " html5lib " ) city = soup. find _ all ('city') ft = soup. find _ all ('fuel - type - code') lat = soup. find _ all ... | [
-1.5014675855636597,
-0.33647391200065613,
1.0623962879180908,
-0.9637539982795715,
-0.6940180063247681,
-0.677452564239502,
-0.42275935411453247,
0.8454203605651855,
-0.8796141743659973,
0.5509393811225891,
-0.4518072307109833,
-0.8044703602790833,
0.6485345363616943,
1.212428331375122,
... |
def import _ repo _ key ( cls, gpg _ path ) : cmd = ['rpm ','- - import ', gpg _ path, ] run ( cmd ) | [
0.13408830761909485,
0.12302101403474808,
0.46385228633880615,
0.06906922161579132,
-0.22259582579135895,
0.6316766142845154,
-0.027637697756290436,
-0.12381859868764877,
-0.8622078895568848,
1.3525959253311157,
-0.7250548005104065,
-0.07949265092611313,
-0.6301016807556152,
-0.44168308377... |
def listed _ loans ( self, filter _ id = none, show _ all = none, x _ lc _ listing _ version = none ) : url = lendingclub _ url ('loans ','listing') params = {'filterid': filter _ id,'showall': show _ all } response = self. session. get ( url = url, params = params, headers = {'x - lc - listing - version': x _ lc _ lis... | [
-0.638693630695343,
-0.07769973576068878,
0.4222279489040375,
-0.11857594549655914,
-0.18781311810016632,
-0.4349684417247772,
-1.5657861232757568,
-0.2451999932527542,
-0.2550666928291321,
0.2199554443359375,
-0.39917755126953125,
1.2095719575881958,
-0.37053757905960083,
1.20930588245391... |
def convert _ coordinates ( coor ) : k = 0 coor = str ( coor ) # get the degrees and perform the first step in obtaining the transformed minutes ( dmin ) for i in range ( 0, len ( coor ) ) : if coor [ i ] = = ". " : k = i break minutes = int ( coor [ k + 1 : len ( coor ) ] ) degrees = ( coor [ 0 : k ] ) dmin = str ( mi... | [
-0.3769926428794861,
-0.650621235370636,
0.7587878108024597,
-0.8089755773544312,
-0.5857514142990112,
-0.6131072640419006,
-0.48120391368865967,
-0.44608718156814575,
0.33899593353271484,
0.6869684457778931,
0.10562334954738617,
-0.15775175392627716,
-0.33270910382270813,
-0.6993346810340... |
def load _ data ( self ) : self. data = self. read _ var ( self. datavar ) self. test _ shape ( self. datavar, self. data. shape, 2 ) | [
0.18952101469039917,
-0.2334759384393692,
0.4146764278411865,
-0.8708390593528748,
0.16574257612228394,
0.047351282089948654,
0.39479002356529236,
-0.03418254107236862,
-0.38760751485824585,
-1.0546982288360596,
-0.5218536853790283,
0.8887356519699097,
0.007045565638691187,
0.0399244688451... |
def summary ( clf, x, y, xlabels = none ) : # check and / or make xlabels ncols = x. shape [ 1 ] if xlabels is none : xlabels = np. array ( ['x { 0 } '. format ( i ) for i in range ( 1, ncols + 1 ) ], dtype ='str') elif isinstance ( xlabels, ( tuple, list ) ) : xlabels = np. array ( xlabels, dtype ='str') # make sure d... | [
-0.05889413133263588,
0.48957881331443787,
0.9169899225234985,
-0.9462425112724304,
-0.156087726354599,
-0.42208871245384216,
-0.24832504987716675,
-0.21287044882774353,
-0.42390167713165283,
0.5232592821121216,
-0.03853343054652214,
0.46728071570396423,
0.4675672948360443,
-1.004621028900... |
def diff _ test _ function ( x ) : return 0. 01 * x * * 2 + 0. 1 * x | [
0.21240456402301788,
-0.4811876714229584,
0.1684919148683548,
0.1514221727848053,
-0.14179104566574097,
0.948692262172699,
0.7044346928596497,
-0.9879511594772339,
0.26530271768569946,
-0.6594405770301819,
-0.18119977414608002,
0.2787123918533325,
0.08385737240314484,
-0.655903160572052,
... |
def subplots ( dataframe, ncols = 3, nrows = 5, figsize = none ) : fig, axes = plt. subplots ( ncols = ncols, nrows = nrows, figsize = figsize, sharex = true ) index = 0 column _ name = dataframe. columns for row in range ( nrows ) : for col in range ( ncols ) : if ncols = = 1 : position = ( row ) else : position = ( r... | [
0.6572234034538269,
0.7513720393180847,
0.5492143034934998,
0.2724316418170929,
-0.9911546111106873,
0.1833018809556961,
0.573761522769928,
-0.17949451506137848,
-0.03188709542155266,
-0.049070488661527634,
-0.1909729391336441,
-0.21860434114933014,
0.026942716911435127,
-0.433314949274063... |
def _ f1 _ getattr _ ( self, attr ) : if hasattr ( root. tf1, attr ) : if not hasattr ( self,'_ tf1') : self. _ tf1 = self. tf1 ( ) return getattr ( self. _ tf1, attr ) raise attributeerror | [
-0.13891497254371643,
0.329389750957489,
0.5176746845245361,
0.3493168354034424,
-0.535699188709259,
-0.6819170713424683,
1.7713850736618042,
-1.0233792066574097,
-0.40802064538002014,
0.01949293538928032,
0.9914587736129761,
0.08849315345287323,
0.875571072101593,
0.4798191785812378,
0.... |
def look _ for _ element ( self, selector, locator = by. css _ selector, attribute = none, timeout = 5 ) : try : logger. debug ( " look for element using'{ }'locator and'{ }'selector ". format ( locator, selector ) ) webdriverwait ( self. driver, timeout ). until ( ec. visibility _ of _ element _ located ( ( locator, s... | [
0.20362721383571625,
0.12238840758800507,
0.6839578747749329,
-0.1461591124534607,
-0.25738099217414856,
0.052329469472169876,
-0.24489560723304749,
0.23330119252204895,
0.6692728400230408,
0.5143481492996216,
0.6833536624908447,
0.6536138653755188,
0.31730344891548157,
0.37488245964050293... |
def check _ for _ unused _ properties ( self, t : festim. temperature, derived _ quantities : list ) : # todo add a check for ignored solubility when chemical _ pot is false # warn about unused keys transient _ properties = [ " rho ", " heat _ capacity " ] if not isinstance ( t, heattransferproblem ) : for mat in self.... | [
0.06941017508506775,
-0.48231324553489685,
0.5313887000083923,
-0.5631981492042542,
0.37963443994522095,
0.3327804505825043,
-0.2076537311077118,
-0.332114040851593,
-1.0861026048660278,
-0.250811904668808,
0.20113486051559448,
-0.500418484210968,
0.184327632188797,
0.8712679147720337,
-... |
def na _ wrapper ( self, * args, * * kwargs ) : try : logger. debug ( " executing : % s ( % s % s ) ", func. _ _ name _ _, args, kwargs ) return func ( self, * args, * * kwargs ) except requests. httperror as e : if is _ auth _ message ( str ( e ) ) : logger. warning ( " failed to make request. \ " % s \ ". re - authen... | [
-1.4688957929611206,
-0.009063096717000008,
0.6638234257698059,
-0.021276067942380905,
0.1360422670841217,
-0.21134307980537415,
-0.668103039264679,
-1.1049580574035645,
0.6484357714653015,
0.27313321828842163,
0.9605028033256531,
0.6247962117195129,
0.8866194486618042,
-0.4243803024291992... |
def get _ nb39 ( ) : exprdata = pd. read _ table ( gzip. open ( os. path. join ( privatedir,'geo / nb39 _ celllines _ maris / gse89413 _ 2016 - 10 - 30 - nbl - cell - line - star - fpkm. txt. gz'),'rt ', encoding ='utf - 8'), index _ col ='geneid') return dataset ( exprdata = exprdata ) | [
0.7512838840484619,
-0.006942965090274811,
0.22955788671970367,
0.23552800714969635,
-0.3225787580013275,
0.17654664814472198,
-0.5453996658325195,
0.022510984912514687,
-0.1987169235944748,
-0.6087916493415833,
0.4453800618648529,
0.778249204158783,
-0.4079352021217346,
-0.436861008405685... |
async def async _ open _ cover ( self, * * kwargs : any ) - > none : await self. aircon ( { self. ac _ key : { " zones " : { self. zone _ key : { " state " : advantage _ air _ state _ open, " value " : 100 } } } } ) | [
-0.6797807216644287,
0.18414415419101715,
0.6266658902168274,
0.501873254776001,
-0.3546002507209778,
0.463817298412323,
0.43838754296302795,
0.7571618556976318,
0.7768086791038513,
0.18346554040908813,
-0.19857783615589142,
0.4375550448894501,
0.32456010580062866,
-0.025386184453964233,
... |
async def get _ data ( self, get _ params : dict = none, filters : dict = none ) - > dict : return await super ( ). get _ data ( params = get _ params, filters = filters ) | [
-0.7594731450080872,
0.9309641718864441,
0.48125070333480835,
0.009784349240362644,
0.17670056223869324,
-0.8955388069152832,
-1.1861623525619507,
0.20422716438770294,
-0.7020303010940552,
0.22598756849765778,
-0.3086809813976288,
1.3260122537612915,
0.7797009348869324,
0.6537207365036011,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.