text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def acl6pktsnatrate ( self ) : try : return self. _ acl6pktsnatrate except exception as e : raise e | [
0.822588324546814,
-0.1824873685836792,
0.15086469054222107,
0.24591802060604095,
-0.8807139992713928,
-0.17060597240924835,
-1.123260736465454,
-0.6729490756988525,
-0.00067211251007393,
0.05652203410863876,
-0.13355723023414612,
-0.2811400890350342,
0.3940075635910034,
-0.183916121721267... |
def sample _ trapezoidal ( v1 = - 2500., v2 = - 2200, v3 = - 300, v4 = 0, mn = - 5000., mx = 5000. ) : x = np. linspace ( mn, mx, num = 100 ) y = trapezoidal _ function ( x, v1 = v1, v2 = v2, v3 = v3, v4 = v4 ) # pdf cdf _ y = np. abs ( np. cumsum ( y + 1e - 10 ) ) # cdf cdf _ y = cdf _ y / cdf _ y. max ( ) # takes car... | [
0.46778884530067444,
-0.5420874953269958,
0.6673892140388489,
-0.2187248170375824,
-0.8390517234802246,
-0.27388814091682434,
0.16962523758411407,
-0.028894362971186638,
0.1419963836669922,
0.08922743797302246,
-0.1215171217918396,
0.24745924770832062,
-0.1701740026473999,
-1.3998447656631... |
async def async _ step _ init ( self, user _ input : dict [ str, any ] | none = none ) - > flowresult : return await self. async _ step _ device _ options ( ) | [
-0.8687400817871094,
0.9361339211463928,
0.33481401205062866,
1.1681463718414307,
0.22893592715263367,
-0.660956084728241,
0.5800988674163818,
-0.22581042349338531,
0.24310320615768433,
-0.6945697069168091,
-0.35800784826278687,
0.1236240565776825,
0.22692209482192993,
0.7329009175300598,
... |
def asyncsenddata ( self, data, ondatasent = none, ondatasentarg = none ) :... | [
-0.7333436608314514,
-0.05078021064400673,
0.15666000545024872,
-0.018748175352811813,
0.007312209345400333,
-0.2704746425151825,
-0.8970008492469788,
-0.3680870532989502,
0.4004237949848175,
-0.030164329335093498,
-0.7027546167373657,
0.9219305515289307,
0.013599323108792305,
0.4118710458... |
async def async _ step _ integration _ discovery ( self, discovery _ info : discoveryinfotype ) - > flowresult : lock _ cfg = validatedlockconfig ( discovery _ info [ " name " ], discovery _ info [ " address " ], discovery _ info [ " serial " ], discovery _ info [ " key " ], discovery _ info [ " slot " ], ) address = l... | [
0.055595893412828445,
-0.04653733968734741,
0.5467041730880737,
0.5142696499824524,
0.575650691986084,
-0.5294904112815857,
0.6546670794487,
-0.3825687766075134,
-0.007894052192568779,
-0.03485766798257828,
0.09115948528051376,
0.32107073068618774,
0.2303977757692337,
0.9341460466384888,
... |
def id ( self, id ) : self. _ id = id | [
0.057258181273937225,
-0.8169193267822266,
-0.2597116529941559,
-0.2442382127046585,
0.30444735288619995,
1.319008469581604,
-0.019123869016766548,
0.8602051138877869,
0.656208336353302,
-0.3897295296192169,
-1.0206947326660156,
0.026355067268013954,
-0.27646732330322266,
0.730978667736053... |
def _ _ eq _ _ ( self, other ) : if not isinstance ( other, metadatagetmetadataresponse200elementsparts ) : return false return self. _ _ dict _ _ = = other. _ _ dict _ _ | [
-0.5463603734970093,
-0.9381722211837769,
0.5925241112709045,
-0.6779776811599731,
0.08354679495096207,
0.6480390429496765,
-0.43889299035072327,
-1.0051827430725098,
1.2785425186157227,
-0.21470434963703156,
-0.6841594576835632,
0.08799159526824951,
-0.15918990969657898,
0.029399229213595... |
def imprint _ coordinate _ system ( volume, origin = ( 0, 0, 0 ), l = 100, w = 5, vals = ( 6000, 10000, 14000 ) ) : o = origin volume [ o [ 0 ] : o [ 0 ] + l, o [ 1 ] : o [ 1 ] + w, o [ 2 ] : o [ 2 ] + w ] = vals [ 0 ] volume [ o [ 0 ] : o [ 0 ] + w, o [ 1 ] : o [ 1 ] + l, o [ 2 ] : o [ 2 ] + w ] = vals [ 1 ] volume [ ... | [
-0.22254887223243713,
-0.871612548828125,
0.8904647827148438,
-1.0462195873260498,
-0.10247647762298584,
0.3727604150772095,
-0.08519885689020157,
0.5504931807518005,
0.5756210088729858,
0.22759364545345306,
-0.004016551189124584,
0.07185251265764236,
0.041751835495233536,
-0.3745900094509... |
def test _ get _ parameter _ value _ long _ 0 ( self ) : pass | [
-0.06236804276704788,
0.12093113362789154,
0.6219226717948914,
0.38728293776512146,
1.0051374435424805,
0.6855601072311401,
0.15716156363487244,
0.5296592712402344,
-0.3588384985923767,
-0.5754249095916748,
-0.11326973885297775,
0.6925578117370605,
0.007663309574127197,
1.1041150093078613,... |
def caption ( self ) : return self. _ caption | [
0.5543600916862488,
-1.4493956565856934,
0.4120129346847534,
0.555650532245636,
0.2064068466424942,
0.5030359625816345,
0.7196699380874634,
-0.1882430911064148,
0.4138273596763611,
-0.009722934104502201,
-0.3578527271747589,
0.9411916136741638,
0.29372939467430115,
-0.522953450679779,
0.... |
def test _ api _ video _ initiate _ upload _ staff _ or _ user ( self ) : for user in [ factories. userfactory ( ), factories. userfactory ( is _ staff = true ) ] : self. client. login ( username = user. username, password = " test " ) video = factories. videofactory ( ) response = self. client. post ( f " / api / vide... | [
-0.4970146417617798,
0.4953683614730835,
0.5380508303642273,
1.077490210533142,
0.5623298287391663,
0.668494701385498,
0.24154342710971832,
-0.1451423019170761,
0.035963594913482666,
-0.4084392488002777,
-0.5497943758964539,
1.158347725868225,
-0.2436785101890564,
0.8863798379898071,
-0.... |
async def _ load _ areas ( self ) : _ log. debug ( " loading areas from the smart bridge " ) area _ json = await self. _ request ( " readrequest ", " / area " ) for area in area _ json. body [ " areas " ] : area _ id = id _ from _ href ( area [ " href " ] ) parent _ id = none if " parent " in area : parent _ id = id _ ... | [
-0.7343183755874634,
0.18333476781845093,
0.46630072593688965,
-0.372903048992157,
-0.011190002784132957,
0.018973037600517273,
-1.0383661985397339,
-0.07666551321744919,
0.9866421818733215,
-0.2515432834625244,
-0.23443010449409485,
-0.10571136325597763,
-0.18054081499576569,
0.6792206168... |
def metrics ( self, metrics ) : self. _ metrics = metrics | [
-0.47689586877822876,
0.8524746298789978,
-0.19529074430465698,
0.40659084916114807,
-0.017894433811306953,
0.9409942626953125,
0.6373483538627625,
0.48345252871513367,
-0.3775236904621124,
-0.737015962600708,
-0.5998239517211914,
-0.32865482568740845,
0.037062253803014755,
-0.004206597805... |
def _ _ init _ _ ( self, pos, radius = 0, transform = false ) : self. init ( ) self. pos = vec ( pos ) self. point _ type ='insharp'# self. radius = radius self. direction = false self. transform = transform self. obtype = " point " self. config = {'cutterrad': 0 } self. radius = radius self. cp1 = pos self. dosetup = ... | [
0.010280954651534557,
-0.9018518328666687,
0.6676021218299866,
0.25022104382514954,
0.22600007057189941,
0.29893890023231506,
0.07835417240858078,
0.41859760880470276,
0.15826024115085602,
0.029809147119522095,
-0.813674807548523,
0.10381491482257843,
-0.047965552657842636,
-0.296532422304... |
def terminate ( procs ) : for p in procs : p. terminate ( ) gone, alive = psutil. wait _ procs ( procs, timeout = 1 ) return alive | [
-0.3317049443721771,
-0.7414741516113281,
0.721283495426178,
0.21209703385829926,
0.8153132200241089,
0.5413510799407959,
-1.6019916534423828,
-0.9353304505348206,
-0.05567087605595589,
-0.044113170355558395,
-0.9786596298217773,
-1.4268450736999512,
-1.2444452047348022,
-0.292681902647018... |
def get _ verify _ args _ map ( args ) : verify _ args = dict ( ) idx = 1 while idx < len ( args ) : key = args [ idx ] idx + = 1 if constants. output _ dir _ switch = = key : verify _ args [ constants. output _ dir _ switch ] = args [ idx ] idx + = 1 elif constants. generated _ dir _ switch = = key : verify _ args [ c... | [
-1.0700923204421997,
-0.746605634689331,
0.5108006000518799,
-0.16853538155555725,
0.09666483849287033,
0.09517213702201843,
0.6794511675834656,
-0.028003906831145287,
0.03838004916906357,
0.577721357345581,
-0.4243524670600891,
0.301815927028656,
0.026150427758693695,
0.5788838863372803,
... |
def format _ description ( description ) : logging. info ('creating description soup.') description _ soup = beautifulsoup ( description,'html. parser') links = list ( ) logging. info ('replacing img tags and extracting links.') for num, img in enumerate ( description _ soup. find _ all ('img') ) : if img ['src'] : lin... | [
-0.08080749213695526,
-0.0015371500048786402,
0.4026889204978943,
-0.5595911741256714,
-0.22286413609981537,
-1.0312947034835815,
0.16778312623500824,
1.0923429727554321,
0.5300820469856262,
0.35572874546051025,
0.5792226195335388,
0.4512142241001129,
0.7098718881607056,
1.3607155084609985... |
def train _ model ( model, train _ data, valid _ data, test _ data, batchsize = 20, num _ epochs = 100, train = true, initial _ lr = 3e - 3, total _ lr _ decay = 0. 2, verbose = 1, regression = true, targets _ unnormalization _ fn = lambda x : x ) : if train : log _ train _ loss = [ ] log _ validation _ loss = [ ] if v... | [
0.020091213285923004,
-0.4491146206855774,
0.735462486743927,
0.5248099565505981,
-0.3684118986129761,
-0.42273402214050293,
-0.058347951620817184,
0.49044734239578247,
-0.3377639949321747,
0.1462135761976242,
-0.1753334254026413,
0.4273124933242798,
0.575676441192627,
0.2436683475971222,
... |
def tweet _ dataset _ preprocessor _ 3 ( ) : # import the dataset. slo _ dataset _ cmu = \ pd. read _ csv ( " borg - slo - classifiers / dataset _ 20100101 - 20180510 _ tok. csv ", sep = ", " ) # shuffle the data randomly. slo _ dataset _ cmu = slo _ dataset _ cmu. reindex ( pd. np. random. permutation ( slo _ dataset ... | [
0.4082399606704712,
0.05569826439023018,
0.5993261337280273,
-0.7418316006660461,
0.5063471794128418,
-0.4365452826023102,
0.69898921251297,
1.1086463928222656,
-0.024044381454586983,
-0.14356064796447754,
-0.5748436450958252,
0.4449292719364166,
-0.06725075840950012,
-0.566519558429718,
... |
def type _ check _ macros ( self ) : for t in self. arg _ types : yield " # define % s ( t ) ( ( t ) = = % s ) " % ( t. macro _ check ( ), t. macroname ( ) ) | [
-0.1441839188337326,
-0.5168578028678894,
0.3654816746711731,
0.688747763633728,
0.7992255091667175,
-0.3984982371330261,
-0.30345970392227173,
-0.6178908348083496,
-1.0018497705459595,
1.5059008598327637,
0.2342081516981125,
0.7037489414215088,
-0.04711288586258888,
1.3383259773254395,
... |
def leggireq ( bit ) : global enevent global enemail if not enevent : trace ( " non dovevo leggere!!!! esco immediatamente " ) return # timeout = 0 # while ( ( not enevent ) or timeout > 200 ) : # timeout = timeout + 1 # print timeout, enevent, " dentro leggireq " # sleep (. 1 ) # if timeout > 200 : # trace ( " dentro ... | [
0.33317863941192627,
-0.3014923632144928,
0.7563883066177368,
0.285910964012146,
-0.22434711456298828,
0.9489302635192871,
0.11591743677854538,
0.7426499724388123,
-0.642605185508728,
0.1625748723745346,
-0.487575501203537,
0.33473366498947144,
-1.2453875541687012,
0.35713908076286316,
0... |
def _ text _ http _ response ( content, status = 200 ) : response = httpresponse ( content, status = status ) response [ " content - length " ] = str ( len ( response. content ) ) return response | [
0.19895446300506592,
-1.1960960626602173,
0.2628128230571747,
-1.9766945838928223,
-1.025010347366333,
-0.6760468482971191,
-1.0860700607299805,
0.44640156626701355,
0.0672072023153305,
0.9613789916038513,
-1.6925164461135864,
-0.9056786298751831,
-0.11652471870183945,
-0.8616364002227783,... |
def clean ( self ) : cd = self. cleaned _ data if'senha'in cd and'senha _ verifica'in cd : if self. cleaned _ data ['senha']! = self. cleaned _ data ['senha _ verifica'] : self. _ errors ['senha'] = forms. util. errorlist ( [ " senhas incompativeis! " ] ) else : self. _ errors ['senha'] = forms. util. errorlist ( [ " c... | [
-0.13848479092121124,
0.03417046740651131,
0.4808945953845978,
0.46337369084358215,
-0.22860656678676605,
0.4109557867050171,
0.41213542222976685,
0.2412935495376587,
-0.4285666346549988,
0.47416579723358154,
0.27877649664878845,
-0.021392060443758965,
-0.011153604835271835,
0.849843204021... |
async def close _ channel ( self, ctx ) : user _ channel = await self. get _ case _ channel ( ctx. channel. id ) if not user _ channel : return await ctx. send ( f " * * what do you think that you are doing? you cannot delete this channel, { ctx. author. mention }! * * " ) channel = discord. utils. get ( ctx. guild. te... | [
0.36661073565483093,
-0.2643238604068756,
0.8927376866340637,
0.45783549547195435,
0.1218012273311615,
0.689060389995575,
0.5025587677955627,
-0.22342997789382935,
0.4914979040622711,
0.05337414890527725,
0.8118247389793396,
1.0377877950668335,
-1.1570395231246948,
0.4694543778896332,
0.... |
def test _ gf _ write _ step _ with _ doc _ string _ keep _ indentation _ without _ data _ table ( given _ rule _ type, expected _ indentation, disabled _ colors, capsys, mocker ) : # given step = mocker. magicmock ( spec = step ) step. keyword = " given " step. used _ keyword = " given " step. text = " there is a step... | [
0.3195755183696747,
-0.27871057391166687,
0.5507509112358093,
-0.03771144151687622,
0.49350956082344055,
0.14202171564102173,
0.16110502183437347,
0.01180646289139986,
-1.1836650371551514,
-0.451083779335022,
-0.32860109210014343,
-0.029708920046687126,
-0.03610991686582565,
0.357561260461... |
def find _ desktop _ environment ( root _ mount _ point ) : libcalamares. utils. debug ( " using rootmountpoint {! r } ". format ( root _ mount _ point ) ) for desktop _ environment in desktop _ environments : if desktop _ environment. is _ installed ( root _ mount _ point ) : libcalamares. utils. debug ( ".. selected ... | [
1.007714033126831,
-0.7969023585319519,
0.4853568375110626,
0.5769529342651367,
-0.23029400408267975,
-0.3200562596321106,
0.27531301975250244,
-0.8286258578300476,
-0.166068434715271,
-0.43342235684394836,
0.9075877666473389,
0.16840575635433197,
-0.32730022072792053,
1.1566191911697388,
... |
def log _ error ( self, format, * args ) : self. globals. _ logger. exception ( format, * args ) | [
-0.7362110018730164,
-0.12088624387979507,
0.47401151061058044,
-0.04323650151491165,
1.009080171585083,
0.2637607157230377,
-0.5138066411018372,
0.2668535113334656,
-0.47049298882484436,
-0.019145000725984573,
-0.15775664150714874,
0.5081987977027893,
-0.1123049408197403,
1.15838253498077... |
def forward _ log _ det _ jacobian ( self, x ) : raise notimplementederror | [
0.270139217376709,
-0.14795972406864166,
0.5608564615249634,
-0.21332305669784546,
-1.0682750940322876,
0.897586464881897,
-0.05608686804771423,
-0.6028328537940979,
0.019419189542531967,
-0.4086764454841614,
-0.44654932618141174,
0.9740099906921387,
0.9044365286827087,
0.41455817222595215... |
def sample _ from _ range ( range _, rng _ state = none ) : if len ( range _ ) = = 1 : return range _ [ 0 ] assert len ( range _ ) = = 3 # to make the end point inclusive list _ = np. arange ( * range _ ) list _ = [ round ( _, 2 ) for _ in list _ ] # arange does not handle endpoints nicely for < 1 step size. add endpoi... | [
-0.7462621927261353,
-0.2445649653673172,
0.45382431149482727,
0.6627413034439087,
-0.6042525172233582,
0.3475882112979889,
-0.2109895646572113,
0.27936267852783203,
0.4525589644908905,
0.37277349829673767,
0.20265315473079681,
0.44916993379592896,
0.3405745029449463,
-0.23939882218837738,... |
def _ _ init _ _ ( self, genesis _ challenge, source ) : self. genesis _ challenge = genesis _ challenge self. source = source | [
-0.23939022421836853,
-0.339783251285553,
0.5052809119224548,
0.3469311594963074,
-0.39315125346183777,
-0.03554735332727432,
-0.4915532171726227,
1.219913363456726,
-0.5714234113693237,
0.009945714846253395,
-0.37545084953308105,
0.8336681127548218,
0.6904975175857544,
0.39510515332221985... |
def next _ steps ( self ) : for t in range ( 0, self. t ) : print " time % i " % t tandwresults = self. modelx. transitionandweight ( self. xparticles [ newaxis,... ], \ self. observations [ t ], self. thetaparticles, t + 1 ) self. xparticles [... ] = tandwresults [ " states " ] [ 0,... ] self. logxweights [ : ] = tand... | [
-0.08486047387123108,
0.02791423909366131,
0.46997225284576416,
-0.5580878257751465,
-0.35545453429222107,
0.07256312668323517,
-0.5088170766830444,
-0.16346599161624908,
-0.32337114214897156,
-0.01574745960533619,
-0.36088430881500244,
-0.5156319737434387,
0.44660133123397827,
0.840633392... |
def net _ incl _ commission ( self ) : return self. net _ total - self. commission | [
0.9735875725746155,
0.0912623330950737,
0.4766920208930969,
-0.6244724988937378,
-0.20440709590911865,
0.9553264379501343,
1.04909348487854,
0.1340492069721222,
0.6886767745018005,
-0.3617531955242157,
0.23251016438007355,
-0.43359315395355225,
-0.20794479548931122,
-0.0753946304321289,
... |
def settimeout ( self, timeout ) : self. _ sock. settimeout ( timeout ) self. _ timeout = timeout | [
0.031961724162101746,
0.5748192667961121,
0.11647848784923553,
-0.6939392685890198,
-0.20948804914951324,
0.47053441405296326,
0.18470565974712372,
0.7446892857551575,
-0.0688416138291359,
0.42566466331481934,
-0.7313178181648254,
1.3272591829299927,
-0.3122667968273163,
0.2467476576566696... |
def oob _ mean _ squared _ error ( forest, x _ train, y _ train ) : n _ samples = x _ train. shape [ 0 ] oob _ mse = np. zeros ( forest. n _ estimators ) for t, tree in enumerate ( forest. estimators _ ) : if hasattr ( tree,'generate _ oob _ indices') : oob = tree. generate _ oob _ indices ( ) else : oob = get _ oob _ ... | [
-1.4241653680801392,
-0.7541030049324036,
0.5012110471725464,
0.6991581916809082,
0.4689936637878418,
-0.48663651943206787,
-0.3900837004184723,
-0.33396846055984497,
-0.2810962200164795,
0.8351871371269226,
-0.1823505014181137,
0.09089858829975128,
0.8351444005966187,
0.3548792600631714,
... |
def _ organize _ output ( output, combine _ map, file _ key, combine _ arg _ keys ) : out _ map = collections. defaultdict ( list ) extra _ args = collections. defaultdict ( list ) final _ args = { } already _ added = [ ] extras = [ ] for data in output : cur _ file = data. get ( file _ key ) # special case - - shared ... | [
-0.2450796365737915,
-0.7936940789222717,
0.7067801356315613,
-0.31581589579582214,
0.005639925599098206,
-0.5662750601768494,
0.35473570227622986,
0.5382698178291321,
-0.8169682025909424,
0.6447144746780396,
0.3224031925201416,
-0.36232563853263855,
-0.10315713286399841,
0.654977202415466... |
def from _ connections ( cls, caption, connections ) : root = et. element ('datasource ', caption = caption, version ='10. 0 ', inline ='true') outer _ connection = et. subelement ( root,'connection') outer _ connection. set ('class ','federated') named _ conns = et. subelement ( outer _ connection,'named - connections... | [
-0.14297033846378326,
0.8480382561683655,
0.43326592445373535,
-0.8337023854255676,
-0.40590763092041016,
-0.22975459694862366,
-0.8941136002540588,
0.1520850658416748,
0.6407114863395691,
-0.3886323571205139,
-1.0056607723236084,
-0.46483397483825684,
0.08198150992393494,
0.25937557220458... |
def do _ sdn _ controller _ show ( cc, args ) : try : controller = cc. sdn _ controller. get ( args. uuid ) except exc. httpnotfound : raise exc. commanderror ('create sdn controller uuid not found : % s'% args. uuid ) _ print _ sdn _ controller _ show ( controller ) | [
-0.1585821956396103,
0.356507807970047,
0.2795351445674896,
-0.0848061665892601,
-0.1073312982916832,
-0.331611692905426,
-0.09169411659240723,
-0.398872971534729,
0.4128565490245819,
0.07268441468477249,
0.012332439422607422,
0.6811435222625732,
0.8315065503120422,
-0.33041292428970337,
... |
def convert _ to _ kitti _ info _ version2 ( info ) : if " image " not in info or " calib " not in info or " point _ cloud " not in info : info [ " image " ] = {'image _ shape': info [ " img _ shape " ],'image _ idx': info ['image _ idx'],'image _ path': info ['img _ path'], } info [ " calib " ] = { " r0 _ rect " : inf... | [
-0.028094815090298653,
-1.160381555557251,
0.5502166152000427,
0.33569610118865967,
-0.35836735367774963,
0.4248248338699341,
-0.7930482029914856,
-0.20380181074142456,
-0.3065343201160431,
0.5708855986595154,
-0.6929494738578796,
0.016846803948283195,
1.0585212707519531,
0.826682269573211... |
def get _ publish _ channel ( self ) : return none | [
-0.11750587075948715,
-0.5757119655609131,
0.4537743031978607,
0.4141358435153961,
0.39132335782051086,
0.15437738597393036,
0.16429872810840607,
0.27954474091529846,
-0.17606912553310394,
-1.2635871171951294,
1.434232234954834,
1.5318642854690552,
-0.6528663039207458,
0.14235739409923553,... |
def sus ( fitness : np. ndarray, n : int, start : float ) - > list : f = np. sum ( fitness ) p = f / n pointers = [ start + i * p for i in range ( n ) ] return rws ( fitness, pointers ) | [
-0.13820256292819977,
0.7141462564468384,
0.4905160665512085,
0.701946496963501,
-0.364715576171875,
-0.6761130690574646,
-0.2191440910100937,
-0.008230065926909447,
0.5665544867515564,
0.26775625348091125,
-0.7502439618110657,
0.2456473410129547,
0.023432539775967598,
0.1480669379234314,
... |
def test _ 01 _ delete _ all _ virtual _ machines ( self ) : virtual _ machines = list _ virtual _ machines ( self. apiclient ) for v in virtual _ machines : try : cmd = destroyvirtualmachine. destroyvirtualmachinecmd ( ) cmd. id = v. id cmd. expunge = true self. apiclient. destroyvirtualmachine ( cmd ) except exceptio... | [
0.2865650951862335,
-0.2904927134513855,
0.255918025970459,
0.8051815032958984,
1.5348732471466064,
0.021560577675700188,
-0.3170073926448822,
0.5059388875961304,
0.17592184245586395,
0.15682220458984375,
-0.051310356706380844,
0.1757412552833557,
-0.647377610206604,
0.9363085627555847,
... |
def index ( request ) : request. session ['issue _ filter'] = filters. get ('issues _ all') request. session ['feature _ filter'] = filters. get ('features _ all') issues = issue. objects. all ( ). order _ by ('- date _ added') features = feature. objects. all ( ). order _ by ('- date _ added') current _ tab = tabs. ge... | [
0.2238084375858307,
-0.5990635752677917,
0.45422008633613586,
0.049944255501031876,
0.20269444584846497,
0.5533977746963501,
-0.22131267189979553,
0.34656232595443726,
-0.46570032835006714,
-0.14579342305660248,
1.1582938432693481,
0.0964309573173523,
0.8488612771034241,
-0.444067001342773... |
def get _ resources _ in _ grid ( grid ) : _ check _ grid ( grid ) resources = set ( grid. plant [ " type " ]. unique ( ) ) return resources | [
-0.23934334516525269,
0.31016087532043457,
0.40535396337509155,
0.1368994563817978,
0.6886298060417175,
-0.32068243622779846,
0.13911370933055878,
-0.6573598980903625,
0.062270551919937134,
0.5913701057434082,
-0.1438552737236023,
-0.3858986794948578,
-0.3747045695781708,
0.021989678964018... |
def initgui ( self ) : icon _ path =': / plugins / uldk _ gugik / images / icon. png'self. add _ action ( icon _ path, text = self. tr ( u'uldk'), callback = self. run, parent = self. iface. mainwindow ( ) ) # will be set false in run ( ) self. first _ start = true self. dlg = uldkgugikdialog ( ) # inicjacja grafik sel... | [
0.31012019515037537,
-0.7387745976448059,
0.6515535116195679,
-0.17741261422634125,
-0.26830947399139404,
0.10151221603155136,
0.6299654841423035,
0.5782837867736816,
-0.48340094089508057,
0.08371439576148987,
-1.0876492261886597,
0.2671043574810028,
0.47509390115737915,
0.9972389340400696... |
def toolchange ( self, pos = p ( ), rot = r ( ), mass = 0. 001, masscenterpos = p ( ), modelfile = none, modelpos = p ( ), modelrot = r ( ) ) : if modelfile : # open, attach wrl file freecad. gui. insert ( modelfile, freecad. activedocument ( ). name ) # todo : open file without using gui # self. rob. toolshape = freec... | [
0.16258499026298523,
-0.8375289440155029,
0.6595150828361511,
-0.7982684373855591,
-0.2304726243019104,
0.7265628576278687,
1.0353968143463135,
-0.7766860127449036,
-1.1753313541412354,
0.13027094304561615,
-0.991277813911438,
-0.10722746700048447,
-0.13312172889709473,
0.46433883905410767... |
def load _ pars ( filename, modcomps = [ ] ) : if not isinstance ( filename, basestring ) : raise typeerror ( " filename'% s'is not a string " % str ( filename ) ) if not os. path. isfile ( filename ) : raise ioerror ( " file'% s'does not exist " % str ( filename ) ) fd = open ( filename,'r') saved = json. loads ( fd. ... | [
-0.27138352394104004,
-0.9918256998062134,
0.8306673169136047,
-1.1269468069076538,
-0.4294723570346832,
0.5227577090263367,
-0.2727624773979187,
0.2856389284133911,
-0.6180070042610168,
1.031455159187317,
-0.5864749550819397,
-0.029536159709095955,
-0.1469692587852478,
0.08374262601137161... |
def params _ to _ weights ( self, global _ scale _ variance, global _ scale _ noncentered, local _ scale _ variances, local _ scales _ noncentered, weights _ noncentered ) : global _ scale = ( global _ scale _ noncentered * tf. sqrt ( global _ scale _ variance ) * self. weights _ prior _ scale ) local _ scales = local ... | [
-0.21308855712413788,
-0.5868708491325378,
0.5063573718070984,
-0.6862290501594543,
0.8969424962997437,
0.28455018997192383,
-0.007837770506739616,
0.04427541419863701,
-1.1469367742538452,
0.9592949151992798,
-0.14199720323085785,
1.0553423166275024,
-0.6977196335792542,
0.934943258762359... |
def _ _ region _ t _ update _ ui ( self ) : if self. _ _ ui _ update : for output in self. selected _ outputs : output. ui. region _ t = self. _ _ render _ region _ t _ spin _ box. value ( ) | [
-0.4216350317001343,
-1.158320426940918,
0.3124973177909851,
-0.8972756862640381,
-0.14327140152454376,
-0.48807868361473083,
0.6887450814247131,
-0.6098890900611877,
-0.1824283003807068,
0.6742952466011047,
-0.24936345219612122,
-0.19179753959178925,
-0.29127347469329834,
0.13953623175621... |
def setdac ( self, dac, value ) : self. roc _ setdac ( dac, value ) # keep track of dac settings rocid = self. roc _ i2caddr. getarg ( ) self. module. roc [ rocid ]. dacs [ dac ] = value self. cdelay ( 5000 ) | [
-0.1007804349064827,
-0.14471739530563354,
0.43361425399780273,
-0.3053543269634247,
-0.03877560421824455,
-0.28606414794921875,
1.9304611682891846,
-0.8612005114555359,
0.07350964844226837,
-0.978057861328125,
-0.5493767261505127,
0.7308786511421204,
0.7432750463485718,
0.2036284059286117... |
def mkdir ( self, path ) : # skip dot folders # skip anything below a dot folder isdotpath = false for comp in path. split ( " / " ) : if comp. startswith ( ". " ) : isdotpath = true if not isdotpath : path = self. fix _ path ( path ) parent _ folder, new _ folder = path. rsplit ( " / ", maxsplit = 1 ) if self. node _ ... | [
-0.9606069326400757,
0.07603612542152405,
0.7596736550331116,
-0.06525251269340515,
-0.07922407984733582,
1.1547651290893555,
1.2649718523025513,
-0.6139535903930664,
0.38995328545570374,
-0.6901164650917053,
0.019778301939368248,
-0.32555070519447327,
-0.20362192392349243,
-0.043782904744... |
def numrookcaptures ( self, board ) : if not board or not board [ 0 ] : return 0 start = none for r in range ( 8 ) : for c in range ( 8 ) : if board [ r ] [ c ] = ='r': start = ( r, c ) break if not start : return 0 r, c = start ans = [ 0 ] for dr, dc in [ ( 0, 1 ), ( 0, - 1 ), ( 1, 0 ), ( - 1, 0 ) ] : for step in rang... | [
-0.31540465354919434,
0.36287951469421387,
0.7597029209136963,
0.2692166864871979,
-0.5051757097244263,
-0.5537676811218262,
0.8630659580230713,
-0.41756123304367065,
0.9085090756416321,
0.6777594685554504,
-0.7797397375106812,
-0.27104976773262024,
-0.583093523979187,
0.6884540319442749,
... |
def get _ queryset ( self ) : queryset = camerareview. objects. all ( ) if self. action in ['update ','partial _ update ','retrieve'] : queryset. get ( pk = self. kwargs ['pk'] ) return queryset | [
0.15054383873939514,
-0.4845224618911743,
0.5135589838027954,
0.2735019326210022,
-0.4015898108482361,
0.5098433494567871,
-0.7523733973503113,
-0.05973733589053154,
1.2316391468048096,
-0.3391278088092804,
0.6977983713150024,
0.34621500968933105,
-0.7899014353752136,
0.25507852435112,
-... |
def buildtranscriptregions ( infile, outfile ) : # this documentation is not correct - this needs to be updated statement = " " " gunzip < % ( infile ) s | cgat gtf2gtf - - method = join - exons - - log = % ( outfile ) s. log | cgat gff2bed - - is - gtf - - set - name = transcript _ id - - log = % ( outfile ) s. log | ... | [
0.6208882927894592,
-0.8249671459197998,
0.4930589199066162,
0.18367263674736023,
-0.4852864742279053,
-0.24116723239421844,
-0.2708563804626465,
0.24467571079730988,
-0.7671734690666199,
0.1508772224187851,
-0.3095381259918213,
0.7546342611312866,
-0.10122501105070114,
-0.563821017742157,... |
def size ( self ) : return self. _ _ size | [
-0.01592918299138546,
-0.12302660942077637,
0.14002098143100739,
-0.7209405899047852,
0.04076279327273369,
0.9154388308525085,
1.1400959491729736,
-0.11927775293588638,
0.5347266793251038,
-1.7483749389648438,
-0.12695686519145966,
-0.07062233239412308,
-0.437429815530777,
-0.4615328013896... |
def erreur6 ( ) : l = [ 42, 23, 34, 2, 1, 9 ] for element in range ( len ( l ) ) : print ( element ) | [
0.4752977192401886,
0.08342022448778152,
0.45864546298980713,
0.1795722097158432,
1.310344934463501,
0.10008207708597183,
0.013645777478814125,
0.2822819948196411,
0.4602016508579254,
-0.5376349091529846,
-1.1912813186645508,
0.1841709166765213,
-0.30587244033813477,
0.33423927426338196,
... |
def add _ libraries ( self, dom, design ) : for cpt in design. components. components. itervalues ( ) : lib = self. ensure _ lib _ for _ cpt ( dom, cpt ) deviceset = self. ensure _ deviceset _ for _ cpt ( lib, cpt ) self. add _ component _ to _ deviceset ( cpt, lib, deviceset ) | [
-0.426967591047287,
0.25542810559272766,
0.2564072012901306,
-0.47433650493621826,
0.7049543261528015,
0.6159912943840027,
0.103128582239151,
-0.4432797431945801,
0.6138163805007935,
-0.8918217420578003,
0.8678093552589417,
-0.6341726779937744,
0.4965895414352417,
0.613426148891449,
0.85... |
def test _ get _ containers _ no _ include _ exclude ( self ) : expected _ ids = [ " 87d533137e70601d17a4bf9d563b11d528ba81e31e2299eb8d4ab2ef5a54f0c0 ", " 84afc8ee4d726544e77dcfe22c6f5be04f36b115ea99c0510d612666f83da1ce ", " b8757266fd6a9efcb40a2881215d8d3642e6f8a0cfdcbb941382d002f31dcca4 ", " 343c05b55c1b0cebca6df0309... | [
0.18983612954616547,
0.3155892789363861,
1.0934804677963257,
-0.22995012998580933,
-0.009402094408869743,
0.4687177836894989,
0.4246186912059784,
0.713167667388916,
-0.26157906651496887,
-0.15214397013187408,
-0.9079896211624146,
0.1523011177778244,
-0.796381950378418,
0.046364977955818176... |
def get _ from _ buffer ( self, nb _ to _ get = none ) : if not nb _ to _ get : nb _ to _ get = self. batch _ size / / 2 try : if self. multilabels : returned _ labels = [ self. labels [ : nb _ to _ get ], self. labels1 [ : nb _ to _ get ] ] else : returned _ labels = self. labels [ : nb _ to _ get ] return self. buffe... | [
-1.4034945964813232,
-0.6562426686286926,
0.758185863494873,
-0.0162800382822752,
0.21420176327228546,
0.24501413106918335,
-0.4494785666465759,
-0.18513840436935425,
-0.4178532361984253,
-0.17592604458332062,
-0.09592247009277344,
0.5737541913986206,
-0.45612457394599915,
0.35543945431709... |
def update ( self, card ) : self. data [ card ] - = 1 self. _ update _ probs ( ) | [
-1.365142583847046,
-0.7554776072502136,
0.41671931743621826,
-0.3771365284919739,
-0.26906612515449524,
0.5736362934112549,
-0.34159648418426514,
0.7450708150863647,
0.03231074661016464,
0.08971826732158661,
-0.7731249928474426,
0.4458511173725128,
-0.4076019525527954,
0.3788626492023468,... |
def change _ mul ( node, x ) : new _ args = [ ] dirac = none # sorting is needed so that we consistently collapse the same delta ; # however, we must preserve the ordering of non - commutative terms c, nc = node. args _ cnc ( ) sorted _ args = sorted ( c, key = default _ sort _ key ) sorted _ args. extend ( nc ) for ar... | [
-0.09649299085140228,
0.1483960598707199,
1.048461675643921,
-0.01992366835474968,
-0.32885244488716125,
-0.8595275282859802,
-0.1119009256362915,
0.3817984163761139,
0.4515015184879303,
0.4297198951244354,
-0.3473786413669586,
0.4177818298339844,
0.04349895566701889,
0.6267024278640747,
... |
def apply _ threshold ( self, img ) : _, thresholded = cv2. threshold ( img, self. binary _ threshold, 255, cv2. thresh _ binary ) return thresholded | [
-0.0419880636036396,
-0.18043135106563568,
0.34113892912864685,
0.37164613604545593,
-0.45492225885391235,
-0.47281837463378906,
0.27908387780189514,
-0.0864076167345047,
0.15725630521774292,
0.013156477361917496,
-0.47207775712013245,
0.16616731882095337,
-0.13473263382911682,
0.722062408... |
def quadratic _ program _ ineq ( self, c, q, a, b ) : if self. solver = = solver _ scipy : return _ scipy _ quadratic _ program _ ineq ( c, q, a, b ) elif self. solver = = solver _ gurobi : return _ gurobi _ quadratic _ program _ ineq ( c, q, a, b ) else : raise valueerror ('qp solver { } not available '. format ( self... | [
0.09460584819316864,
-0.6320927143096924,
0.5778292417526245,
0.021720465272665024,
0.17398245632648468,
0.6707078814506531,
-0.11166521906852722,
-1.14350163936615,
-0.03751701861619949,
0.4159884750843048,
-0.19194667041301727,
0.01964121311903,
-1.379141926765442,
-0.9131348133087158,
... |
def main ( ) : dic = { } dic ['q'] = sys. argv [ 1 ] if ( len ( sys. argv ) > 1 ) else " " try : url = requests. post ('http : / / 0. 0. 0. 0 : 5000 / search _ user ', data = dic ) response = url. json ( ) if ( response ) : id _ user = response. get ( " id " ) name = response. get ( " name " ) print ( " [ { } ] { } ". ... | [
-0.7295477390289307,
0.00992767233401537,
0.9297887086868286,
0.5831732153892517,
-0.13415203988552094,
0.4755198359489441,
-0.5883966088294983,
-0.524346113204956,
-0.5003642439842224,
-0.2592885196208954,
-0.6594634056091309,
0.416329562664032,
-0.6286160349845886,
0.2744024097919464,
... |
def extractlinks ( listings ) : if listings [ " data " ] [ " children " ] : for child in listings [ " data " ] [ " children " ] : yield child | [
-0.9862771034240723,
0.3699924051761627,
0.4758814871311188,
-0.05370175093412399,
-0.026954935863614082,
-0.5352034568786621,
-0.3474385142326355,
0.9602898955345154,
0.08888563513755798,
-1.1001827716827393,
-0.25658249855041504,
-0.36012259125709534,
-0.3827221095561981,
0.4333559274673... |
def augment _ data ( path, train _ data ) : transforms _ list = transforms. compose ( [ transforms. topilimage ( ), transforms. randomhorizontalflip ( ), transforms. totensor ( ), transforms. normalize ( [ 0. 485, 0. 456, 0. 406 ], [ 0. 229, 0. 224, 0. 225 ] ) ] ) transformed _ train _ data = dataset. get _ dataset _ a... | [
-0.2619858980178833,
-0.16969601809978485,
0.6480695605278015,
-0.4680883586406708,
-0.10746141523122787,
-0.01945563405752182,
-0.30328845977783203,
0.5945078730583191,
0.14059342443943024,
-0.5187726020812988,
-0.05518708378076553,
0.45249632000923157,
0.8837532997131348,
-0.416164934635... |
def isgameover ( self ) - > bool : return gamestate. game _ over = = self. state | [
-0.498883992433548,
-0.5706835389137268,
0.5192819237709045,
0.6099531054496765,
0.2842186987400055,
0.4457939565181732,
-1.4687179327011108,
-0.4944401979446411,
-0.06511969119310379,
0.6458670496940613,
-0.2171592265367508,
-0.2846630811691284,
0.029880821704864502,
-0.7798662185668945,
... |
def component _ execution ( ) : for name in _ component _ info : if _ component _ info [ name ] ['active'] : if'run'in dir ( _ class _ binding [ name ] ) : _ class _ binding [ name ]. run ( ) | [
-0.26886671781539917,
-1.6582704782485962,
0.4937288463115692,
0.5505831837654114,
0.7580313682556152,
0.3388453423976898,
0.8049363493919373,
-0.0811813697218895,
-0.42813730239868164,
0.32102325558662415,
0.0801149383187294,
-0.07177943736314774,
0.04127667099237442,
0.2249157726764679,
... |
def _ _ start _ element ( self, tag, attrs ) : self. _ _ tlist = [ ] if tag = = " temple " : self. _ _ current _ temple = attrs. get ('name') | [
-0.810998260974884,
0.23048944771289825,
0.3390520215034485,
-0.47176414728164673,
-0.4063515067100525,
0.15211455523967743,
0.9543286561965942,
0.36837589740753174,
0.4932835102081299,
1.0118306875228882,
-1.2778571844100952,
0.32166555523872375,
0.35427698493003845,
-0.018667861819267273... |
def notify ( self, notify ) : self. _ notify = notify | [
-0.36808156967163086,
0.1715579628944397,
-0.18199411034584045,
0.8096529245376587,
0.1659429371356964,
-0.09122034907341003,
0.18926510214805603,
0.7379969358444214,
-1.0520185232162476,
-0.37197601795196533,
-1.615492343902588,
-0.36195284128189087,
0.21341651678085327,
0.633163571357727... |
def dimensions ( self, textlist ) : x = max ( [ len ( l ) for l in textlist ] ) textlist = [ l + ( x - len ( l ) ) *'' for l in textlist ] y = len ( textlist ) return textlist, y, x | [
-0.17830733954906464,
0.5846332907676697,
0.6863006353378296,
-0.5316163897514343,
-0.9773450493812561,
-0.14226719737052917,
-0.4036439061164856,
0.7889265418052673,
0.02732384204864502,
0.6289995312690735,
-1.3891719579696655,
-0.8458727598190308,
-0.7786505818367004,
1.1753698587417603,... |
def _ execute _ child ( self, args, executable, preexec _ fn, close _ fds, cwd, env, universal _ newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite ) : if isinstance ( args, types. stringtypes ) : args = [ args ] else : args = list ( args ) if shell : args = [ " / bin /... | [
-0.1020568311214447,
-0.409236341714859,
0.9483602643013,
0.02021688036620617,
0.5839731097221375,
0.24762052297592163,
0.37303677201271057,
-0.12693899869918823,
-1.1092861890792847,
-0.18110224604606628,
-0.07751783728599548,
-0.24620656669139862,
0.5394695401191711,
0.3247946798801422,
... |
def _ item _ modified ( self, key, item ) : # replace the item self. _ items [ item ] = self [ key ] [ item ] | [
-0.7916805744171143,
-0.5442684888839722,
0.1617300808429718,
-0.8304600715637207,
-0.08668278157711029,
-0.2524583637714386,
-0.8599108457565308,
0.7159490585327148,
0.13776887953281403,
1.2422583103179932,
-0.6390640735626221,
0.3258518576622009,
-0.024633612483739853,
-0.648373365402221... |
def _ _ eq _ _ ( self, other ) : if not isinstance ( other, unsharpfilter ) : return false return self. _ _ dict _ _ = = other. _ _ dict _ _ | [
-0.9204551577568054,
-0.11792142689228058,
0.8458541631698608,
-0.39610540866851807,
-0.06100163981318474,
-0.13640335202217102,
-0.17692884802818298,
-1.0766241550445557,
0.8919258117675781,
-0.14981961250305176,
-0.9634796977043152,
0.019929291680455208,
0.16615727543830872,
0.2718534171... |
def loadconfig ( self, filename = ini _ file _ name, config = { } ) : config = config. copy ( ) cp = configparser. configparser ( ) cp. read ( filename ) for sec in cp. sections ( ) : name = string. lower ( sec ) for opt in cp. options ( sec ) : config [ name + ". " + string. lower ( opt ) ] = string. strip ( cp. get (... | [
0.035331882536411285,
-1.1161860227584839,
0.679538369178772,
-0.3166150152683258,
-1.0917398929595947,
-0.12634159624576569,
-1.0689865350723267,
0.9139615893363953,
-1.1359891891479492,
0.6671535968780518,
-0.8812151551246643,
-0.3785875737667084,
-0.7102221250534058,
0.2336856722831726,... |
def register _ cuda _ shared _ memory ( self, name : str, raw _ handle : bytes, device _ id : int, byte _ size : int, headers : dict [ str, t. any ] =..., ) - > none : | [
0.10956820100545883,
0.3357927203178406,
0.7032140493392944,
0.6798549890518188,
-0.316620409488678,
-0.46554237604141235,
-0.1194152683019638,
0.04698839783668518,
0.301205039024353,
-0.8534606695175171,
-0.7526029944419861,
0.19502773880958557,
-0.1250184327363968,
-0.1230439618229866,
... |
def test _ default _ language _ not _ in _ available _ languages ( self, mock _ sync ) : self. data ['language'] ='fr'form = self. form _ class ( data = self. data ) self. assertfalse ( form. is _ valid ( ) ) self. assertequal ( form. errors. keys ( ), [ non _ field _ errors ] ) self. assertequal ( form. errors [ non _... | [
-0.43230676651000977,
0.7785853743553162,
0.16922734677791595,
-0.1995071917772293,
0.8436154723167419,
0.9283398389816284,
-0.14355100691318512,
0.6061475872993469,
-0.5175495743751526,
-0.5012131333351135,
-0.9378644824028015,
-0.9856927394866943,
-0.17688478529453278,
1.079732894897461,... |
def invitee _ id ( self, invitee _ id ) : self. _ invitee _ id = invitee _ id | [
0.5565685629844666,
-0.9447100758552551,
0.02169422246515751,
0.8186227083206177,
0.6429518461227417,
0.8859713673591614,
0.048664070665836334,
2.3743786811828613,
-0.7028000950813293,
0.6936574578285217,
-0.3488430678844452,
0.5261977314949036,
-0.8941056132316589,
0.7163558602333069,
0... |
async def async _ turn _ off ( self, * * kwargs : any ) - > none : await self. async _ run _ script ( self. _ off _ script, context = self. _ context ) if self. _ template is none : self. _ state = false self. async _ write _ ha _ state ( ) | [
-0.6925312876701355,
0.15492404997348785,
0.3278972804546356,
-0.0829164907336235,
-0.05574411526322365,
-0.2771788239479065,
0.6407443284988403,
0.8823109865188599,
0.073525570333004,
-0.16143584251403809,
-0.01543770544230938,
0.9537649154663086,
-0.25681808590888977,
0.40464818477630615... |
def set _ 5gnr _ exppwr ( self, pwr ) : self. write ( f'conf : nrmm : meas : rfs : enp { pwr } dbm') | [
-0.7638397812843323,
0.8466220498085022,
0.5110642313957214,
-0.3197212219238281,
0.7717551589012146,
0.5473363399505615,
-0.006689988076686859,
-0.41368788480758667,
-0.001179382554255426,
-0.09998559206724167,
0.0043909018859267235,
-0.7655009627342224,
-1.2309842109680176,
1.50823521614... |
def apply _ label _ map ( *, firings, label _ map, firings _ out ) : firings = readmda ( firings ) label _ map = readmda ( label _ map ) label _ map = np. reshape ( label _ map, ( - 1, 2 ) ) label _ map = label _ map [ np. argsort ( label _ map [ :, 0 ] ) ] # assure input is sorted # propagate merge pairs to lowest lab... | [
-0.9533155560493469,
-0.7350413799285889,
1.0249831676483154,
0.3517422676086426,
-0.48597291111946106,
-0.32564374804496765,
0.6189560890197754,
0.8138440251350403,
0.7171263098716736,
0.018439898267388344,
0.6972097158432007,
0.18098251521587372,
-0.10267672687768936,
0.10068771988153458... |
async def handle _ alarmdotcom _ debug _ request _ event ( event : event ) - > none : event _ device = controller. api. devices. get ( str ( event. data. get ( " device _ id " ) ) ) logger. warning ( " alarm. com debug data for % s : % s ", str ( event _ device. name ). upper ( ), json. dumps ( event _ device. debug _ ... | [
-0.1569964736700058,
0.09452823549509048,
0.7049105763435364,
0.08459273725748062,
0.5192562341690063,
0.27572083473205566,
-0.6238942742347717,
-0.5055066347122192,
0.521116316318512,
-0.07085718214511871,
0.16133520007133484,
0.8314452171325684,
0.9647676944732666,
0.31340739130973816,
... |
def postprocess _ pred ( self, image, h, w ) : image = image. fromarray ( image ) image = image. resize ( ( w, h ), resample = image. nearest ) return np. array ( image ) | [
-0.3296659290790558,
-0.6064866185188293,
0.5129608511924744,
-0.7214220762252808,
-1.298678994178772,
0.23646782338619232,
-0.20015835762023926,
-0.30179253220558167,
0.13847139477729797,
0.005429995711892843,
0.6751537919044495,
0.3286527991294861,
0.013360644690692425,
0.276324361562728... |
def open _ from _ transaction ( cls, transaction ) : asset = transaction. asset current _ price = transaction. price current _ dt = transaction. dt if transaction. quantity > 0 : buy _ quantity = transaction. quantity sell _ quantity = 0 avg _ bought = current _ price avg _ sold = 0. 0 buy _ commission = transaction. c... | [
0.11367882788181305,
-0.5480552315711975,
0.48504602909088135,
-0.7548695206642151,
-0.9723966717720032,
0.04309666529297829,
0.4311877489089966,
-0.5261093974113464,
-0.23945556581020355,
0.18400363624095917,
0.8051406145095825,
-0.19920757412910461,
0.5975255370140076,
-0.750447094440460... |
def get _ switch _ port _ pair ( self, src _ dpid, dst _ dpid ) : if ( src _ dpid, dst _ dpid ) in self. topology. switch _ link _ table : return self. topology. switch _ link _ table [ ( src _ dpid, dst _ dpid ) ] else : self. logger. info ( " no link between { }, { } ". format ( src _ dpid, dst _ dpid ) ) return none | [
-0.5408601760864258,
0.14617717266082764,
0.7401444315910339,
-0.40842172503471375,
-0.20783476531505585,
-0.005902612116187811,
-0.3749133050441742,
-0.33966463804244995,
-0.454326331615448,
-0.24765606224536896,
0.8975433707237244,
0.7630860209465027,
-0.6372689604759216,
-0.610468685626... |
def show ( config _ file, fields, no _ blocked _ by ) : _ show ( config _ file, fields, not no _ blocked _ by ) | [
0.02201448567211628,
1.3547465801239014,
0.17470237612724304,
0.06585941463708878,
-0.7395091652870178,
0.1930784434080124,
0.9261563420295715,
0.5839117169380188,
-2.005476236343384,
1.1655827760696411,
-0.3537783622741699,
0.016959020867943764,
0.094063401222229,
-0.2424798607826233,
0... |
def get _ non _ spock _ profiles ( ipython _ profiles = none ) : if ipython _ profiles is none : ipython _ profiles = get _ ipython _ profiles ( ) ipython _ profiles = set ( ipython _ profiles ) spock _ profiles = set ( get _ spock _ profiles ( ipython _ profiles = ipython _ profiles ) ) return ipython _ profiles. diff... | [
-0.5850470066070557,
1.0295467376708984,
0.7774018049240112,
0.27249932289123535,
0.6047874689102173,
0.7880857586860657,
0.8067795038223267,
-0.6538322567939758,
0.6183043718338013,
-0.015755174681544304,
-1.1406571865081787,
0.4481554925441742,
-1.7016499042510986,
-0.23928436636924744,
... |
def listcampaigns ( self, userid = none ) : res = self. _ client _ _ proxy. listcampaigns ( self. _ client _ _ session, userid ) self. checkresult ( res ) return res [ " campaigns " ] | [
-1.0290632247924805,
0.0055794320069253445,
0.16459138691425323,
0.08215845376253128,
0.22866272926330566,
-0.23279792070388794,
-0.16731952130794525,
-0.38950493931770325,
1.110949993133545,
-0.20030957460403442,
-0.42424359917640686,
0.9931960701942444,
-1.1004551649093628,
0.63119530677... |
def setup _ repo _ class ( repo _ names, repo _ paths, setup _ info ) : logging. info ( " \ nsetting up the foxbms % s dependencies ", setup _ info ) logging. info ( print _ mark ) for repo in repo _ names : print _ next _ steps _ info ( repo ) logging. info ( print _ mark ) for repo, repo _ path in zip ( repo _ names,... | [
-0.38193997740745544,
-0.18648788332939148,
0.33733248710632324,
0.5992560982704163,
0.9356212019920349,
-0.11906970292329788,
0.24466361105442047,
0.1300850510597229,
0.036188311874866486,
0.08249545842409134,
-0.016314320266246796,
-1.0080469846725464,
0.4948612451553345,
0.6891522407531... |
def is _ status _ line ( line ) : return all ( [ line. startswith ('status'), valid _ status _ type ( get _ field ( status _ type _ field, line, status _ field _ count ) ) ] ) | [
0.47928178310394287,
-0.8115518689155579,
0.2843204438686371,
1.58625328540802,
0.2908018231391907,
0.3516492247581482,
-0.6449505686759949,
0.22648945450782776,
0.22568738460540771,
-0.062293730676174164,
-0.9189353585243225,
-0.11678189039230347,
0.3131425976753235,
0.7449496984481812,
... |
def add ( self, dependent, dependency ) : self. graph. setdefault ( dependent, set ( ) ) self. graph. setdefault ( dependency, set ( ) ) if dependent! = dependency : self. graph [ dependent ]. add ( dependency ) | [
-0.034579887986183167,
0.42029663920402527,
0.5677071213722229,
0.6529218554496765,
-0.008099809288978577,
0.9766209721565247,
0.19186164438724518,
-0.16502520442008972,
-0.09516625106334686,
-0.031408537179231644,
-0.5793609619140625,
0.5718213319778442,
-0.060484301298856735,
0.069602832... |
def on ( message _ type : type [ message ], selector : str | none = none, * * kwargs : str ) - > callable [ [ decoratedtype ], decoratedtype ] : selectors : dict [ str, str ] = { } if selector is not none : selectors [ " control " ] = selector if kwargs : selectors. update ( kwargs ) parsed _ selectors : dict [ str, tu... | [
-0.04823974892497063,
-0.6598408818244934,
0.64302659034729,
-0.7020732760429382,
-0.27548229694366455,
-0.6886542439460754,
-0.36664846539497375,
-0.19453872740268707,
0.5803947448730469,
0.1555914729833603,
0.5236634016036987,
0.21319226920604706,
0.4441985785961151,
0.5281784534454346,
... |
def _ _ iter _ _ ( self ) : current = self. head while current is not none : yield current. data current = current. next | [
-0.008825871162116528,
-0.4433456063270569,
0.3430861830711365,
-0.6881229281425476,
-0.08685372769832611,
0.09003431349992752,
-0.48168084025382996,
-0.5207435488700867,
-0.23850317299365997,
-0.9169530272483826,
0.11221048980951309,
0.9220317602157593,
-0.5983185172080994,
0.345703542232... |
def final _ activation _ op ( self, inputs, training = none ) : raise notimplementederror | [
-1.1566230058670044,
-0.28570985794067383,
0.5570644736289978,
0.8485417366027832,
0.13564042747020721,
0.14334659278392792,
1.202749490737915,
0.5429694652557373,
0.13886164128780365,
0.1184949055314064,
0.42013370990753174,
0.09427770972251892,
0.2257404327392578,
-1.1091855764389038,
... |
def find _ pixel _ edges ( img ) : transparency _ cells = img. t [ 3 ]. t # ignores rbg, returns only transparency. # values are either : # 0 ( fully transparent ) or # 1 ( not at all transparent ) right _ up = np. rot90 ( transparency _ cells ) bottom _ up = np. rot90 ( right _ up ) left _ up = np. rot90 ( bottom _ up... | [
-0.5034996867179871,
0.13775168359279633,
0.811392605304718,
0.14600926637649536,
-0.0776718407869339,
-0.09468457102775574,
0.6224733591079712,
0.17817509174346924,
-0.2557070553302765,
1.1924177408218384,
-0.24554938077926636,
-0.6711639165878296,
-0.014973907731473446,
1.128731369972229... |
def test _ status _ to _ pure _ activity ( self, * _ ) : status = models. status. objects. create ( content = " test content ", user = self. local _ user ) activity = status. to _ activity ( pure = true ) self. assertequal ( activity [ " id " ], status. remote _ id ) self. assertequal ( activity [ " type " ], " note " ... | [
-0.3432649075984955,
-0.619012713432312,
0.3242605924606323,
-0.4988064169883728,
0.2617917060852051,
0.7478734850883484,
0.3925979435443878,
-0.23604726791381836,
0.7434664964675903,
-0.16189274191856384,
-1.16995370388031,
0.3159177005290985,
-0.18693944811820984,
-0.6482410430908203,
... |
def _ _ init _ _ ( self, json, locjson ) : self. json = json self. locjson = locjson self. setup ( ) | [
-0.03011901117861271,
-2.1636605262756348,
0.4766557812690735,
-0.8381146192550659,
-0.5086020231246948,
-0.18562979996204376,
0.13860109448432922,
0.8104467988014221,
0.8594467639923096,
0.5004066228866577,
-0.5021771788597107,
0.36283403635025024,
0.6140398979187012,
-0.11085499078035355... |
def simplify ( self, p _ float, vtkreebgraphsimplificationmetric ) :... | [
0.38882818818092346,
1.8262416124343872,
0.11112133413553238,
0.9435226321220398,
0.4389871060848236,
0.4094727039337158,
1.5800771713256836,
-0.08042582124471664,
-0.5036522746086121,
0.26726821064949036,
-0.5270860195159912,
-0.35657086968421936,
-0.9462081789970398,
-0.19645214080810547... |
def subdisplays ( self ) : return zip ( self. stands, self. window. displays ) | [
0.3911057412624359,
-1.0130831003189087,
0.6214841604232788,
0.4268590211868286,
-0.9190059304237366,
1.3573496341705322,
0.9050074219703674,
-1.0919827222824097,
0.891099750995636,
-0.36723843216896057,
-0.1654391884803772,
0.42152053117752075,
-0.46904146671295166,
1.3948956727981567,
... |
def cmp _ response ( self, response, expected _ api _ response, expected _ response _ type, output _ file, generate _ output _ diff _ file = true ) : if response is not none and expected _ api _ response is not none : if expected _ response _ type in response. headers ['content - type'] : extracted _ response = respons... | [
-0.178248792886734,
-1.3159016370773315,
0.8889271020889282,
-0.1022287979722023,
0.12679129838943481,
0.13660097122192383,
0.4303326904773712,
-0.12318040430545807,
0.001499856705777347,
0.2962067723274231,
-0.21210196614265442,
-0.5726863145828247,
-0.3499634861946106,
-0.110913187265396... |
def insert _ data ( ) : conn = psycopg2. connect ( dsn = db _ dsn ) sql ='select game _ id from nba _ players'cur = conn. cursor ( ) cur. execute ( sql, vars ) rs = cur. fetchall ( ) game _ ids = [ str ( item [ 0 ] ) for item in rs ] movement = get _ nba _ data. get _ players ( game _ ids ) while true : data = next ( m... | [
-0.5865882039070129,
0.9764828085899353,
1.0847457647323608,
-0.09408866614103317,
0.8350147604942322,
-0.004190270323306322,
-0.7048178911209106,
-0.5948044657707214,
-1.2973028421401978,
0.9569153785705566,
-0.04330987110733986,
-0.026957402005791664,
-0.7321437001228333,
0.2345873117446... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.