text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def _ _ iter _ _ ( self ) : return self ( * self. columns ) | [
-0.24408937990665436,
-0.734174907207489,
0.15610650181770325,
-0.49289870262145996,
0.3674226701259613,
0.3459876775741577,
0.2668381333351135,
-1.3152462244033813,
-0.9003944396972656,
-0.8487808704376221,
0.2489762008190155,
-0.05169310420751572,
0.24909508228302002,
-1.2104172706604004... |
def test _ list _ insert _ index _ type _ string ( self ) : key = ('test ','demo ', 1 ) with pytest. raises ( typeerror ) as typeerror : testlistinsert. client. list _ insert ( key, " age ", " fifth ", false ) assert " an integer is required " in str ( typeerror. value ) | [
-1.1999409198760986,
0.5274457931518555,
0.20885077118873596,
-0.3896111845970154,
0.5365309119224548,
0.8069249987602234,
-0.2881098985671997,
-0.10591442137956619,
-0.04443992301821709,
1.3013919591903687,
-1.1100889444351196,
-0.23997648060321808,
-1.5577336549758911,
0.4759548306465149... |
def start _ test _ basic ( self, test ) : @ asyncio. coroutine def get _ component _ info ( instance _ name ) : " " " retrieve component information for the given component instance arguments : instance _ name - the name of a component instance returns : a gi. repository. rwbaseyang. componentinfo object " " " componen... | [
0.4787299633026123,
-0.36773842573165894,
0.7988054156303406,
-0.7512221336364746,
0.6545000672340393,
-0.12656117975711823,
0.34128227829933167,
-0.9744608998298645,
0.39041951298713684,
-0.6388475894927979,
-0.05103378742933273,
0.14557543396949768,
-0.056603629142045975,
-0.403723418712... |
def get _ volume _ scale ( leaves ) : scale = lambda x : x # no scale by default for leaf _ points in leaves : non _ zero = [ ] min _ pt, max _ pt = get _ bounding _ points ( leaf _ points ) for feature _ idx in range ( len ( leaf _ points [ 0 ] ) ) : dimension = max _ pt [ feature _ idx ] - min _ pt [ feature _ idx ] ... | [
-0.07832999527454376,
-0.7830995917320251,
0.5196365714073181,
0.5352071523666382,
0.021388471126556396,
-0.1679103523492813,
-0.5093996524810791,
-0.5619249939918518,
-0.17438563704490662,
0.5576273202896118,
0.7868147492408752,
0.0884789526462555,
0.10119039565324783,
-0.1714539527893066... |
def test _ defoperations ( ) : space. def. init ( ) print ( " - - - - - tm packet definitions - - - - - " ) tmpktdefs = space. if. s _ definitions. gettmpktdefs ( ) for tmpktdef in tmpktdefs : print ( tmpktdef. pktspid, end ='' ) print ( " " ) print ( " - - - - - tm parameter definitions - - - - - " ) tmparamdefs = spa... | [
0.2839967608451843,
1.1639996767044067,
0.646734893321991,
-0.1405850499868393,
0.521765947341919,
-0.5636667609214783,
0.5060399770736694,
-0.41461285948753357,
0.3027108907699585,
-0.5910686254501343,
-0.8118912577629089,
-0.24615401029586792,
-0.2696237564086914,
0.8833156824111938,
-... |
def wait _ coro ( self, coro ) : # running on a different thread is not supported in flask : # future = asyncio. run _ coroutine _ threadsafe ( self. on _ ping ( request = request ), self. worker _ loop ) # return future. result ( ) # running on the common rest thread # return self. rest _ loop. run _ until _ complete ... | [
-0.13738906383514404,
0.1060234010219574,
0.6360743045806885,
0.6177306771278381,
0.12870573997497559,
0.7060109972953796,
-0.3599129021167755,
-0.16313689947128296,
-0.42862755060195923,
-0.14501909911632538,
-0.23629149794578552,
-0.6090911030769348,
-1.1704870462417603,
-0.2320499271154... |
def theme ( parser, token ) : return themenode ( ) | [
-0.02026873454451561,
-0.15512026846408844,
0.14888934791088104,
-1.21615731716156,
-0.7924280762672424,
-0.608481764793396,
-0.27509525418281555,
0.16269853711128235,
-0.3572748899459839,
-0.1933601200580597,
0.1864994317293167,
0.7963231205940247,
-0.05709465220570564,
-0.818510651588439... |
def collect _ events ( helper, ew ) : # the following examples get the arguments of this input. # note, for single instance mod input, args will be returned as a dict. # for multi instance mod input, args will be returned as a single value. opt _ api _ uri _ base = helper. get _ arg ('api _ uri _ base') opt _ api _ ver... | [
-0.2949236035346985,
-0.6387224793434143,
0.9371910095214844,
0.17844977974891663,
0.6502186059951782,
0.01850857585668564,
0.4740452170372009,
-0.6345493793487549,
-0.1625743806362152,
0.04873405769467354,
-0.2974085211753845,
-0.03540690243244171,
0.18263238668441772,
0.3442642390727997,... |
def getmelmethods ( classname ) : import maintenance. build if not factories. classtomelmap. keys ( ) : # force factories. classtomelmap to be populated list ( maintenance. build. iterpynodetext ( ) ) assert factories. classtomelmap reg = re. compile ('(. * [ a - z ] ) ( [ xyz ] ) $') newlist = [ ] origlist = factories... | [
-0.6584944725036621,
-0.6789707541465759,
0.6559705138206482,
0.31855878233909607,
-0.4051995277404785,
-0.55381178855896,
0.06365042924880981,
0.2776654064655304,
0.9058284163475037,
0.29905980825424194,
-0.4689812660217285,
-0.1551637202501297,
-0.41206905245780945,
0.7208371162414551,
... |
def model _ load _ from _ file ( model _ file ) : f = open ( model _ file ). readlines ( ) model = [ ] for x in f : if x. strip ( ) = = " " or x. startswith ( " # " ) : continue x = x. strip ( ) p1s, p2s = x. split ( " : ", 1 ) p11, p12, p13 = p1s. split ( " ", 2 ) p21, p22, p23 = p2s. split ( " ", 2 ) p11, p12, p13 = ... | [
-0.37084752321243286,
-0.6032201647758484,
0.6361244320869446,
-0.2199212908744812,
0.1972627341747284,
1.1166656017303467,
-0.17686495184898376,
0.9249768257141113,
-0.8519282937049866,
0.8855365514755249,
-1.412053108215332,
-1.1095842123031616,
0.48927584290504456,
-0.3630131185054779,
... |
def _ _ init _ _ ( self, env, save _ dir, record _ video _ trigger, video _ length = 200, prefix ='vid') : # inherit attributes from parent class gym. wrapper. _ _ init _ _ ( self, env ) # define new attributes self. save _ dir = save _ dir self. record _ video _ trigger = record _ video _ trigger self. video _ length ... | [
-0.08965334296226501,
0.1184561476111412,
0.6594213843345642,
1.1457059383392334,
0.5069535374641418,
-0.2646147608757019,
-0.08993607014417648,
0.5330164432525635,
-0.009809384122490883,
0.04744620621204376,
-0.8689115643501282,
0.8644989728927612,
0.6802008748054504,
1.1312347650527954,
... |
def add _ handler ( self, func, type ='all') : if not inspect. isfunction ( func ) : raise typeerror self. _ handlers [ type ]. append ( func ) | [
-0.9307547211647034,
0.14963480830192566,
0.35752296447753906,
0.5907148122787476,
0.27661144733428955,
1.0118776559829712,
-0.14256738126277924,
-0.200480654835701,
0.04642606899142265,
-0.890657901763916,
-0.02195221371948719,
0.9460490345954895,
0.20631873607635498,
0.7887020707130432,
... |
def traverse _ tree _ post _ order ( self ) - > generator : position = self. get _ root ( ) if position is not none : for i in self. traverse _ subtree _ post _ order ( position ) : yield i | [
-0.3323958218097687,
-0.16911429166793823,
0.6812429428100586,
0.4751209318637848,
-0.9525823593139648,
-0.32242250442504883,
-0.30821534991264343,
-0.5245964527130127,
-0.48053911328315735,
-0.5389921069145203,
-0.379205584526062,
-0.1752888262271881,
-0.1320040225982666,
0.85384207963943... |
def avg ( table : arrable, col _ name : str ) : sum _ elts = 0 num _ elts = 0 for i, row in enumerate ( table. get _ rows ( ) ) : num _ elts + = 1 sum _ elts + = float ( row [ col _ name ] ) if num _ elts = = 0 : num _ elts = 1 result = [ { " avg " : sum _ elts / num _ elts } ] return arrable ( ). init _ from _ arrable... | [
-0.28920185565948486,
0.7420684099197388,
0.6682683825492859,
0.5747928023338318,
-0.3597513735294342,
-0.8209341764450073,
0.044352542608976364,
-0.05810843035578728,
-0.8258041739463806,
1.215616226196289,
-0.084161676466465,
-0.059993598610162735,
0.746525764465332,
0.3664434552192688,
... |
def get _ checksum _ calculator _ by _ dataone _ designator ( dataone _ algorithm _ name ) : return dataone _ to _ python _ checksum _ algorithm _ map [ dataone _ algorithm _ name ] ( ) | [
-0.4472690224647522,
0.3145299255847931,
0.31846651434898376,
-0.3921525180339813,
-0.10211925208568573,
0.15258736908435822,
0.4895882308483124,
0.05610143765807152,
0.9915924072265625,
-0.4753340780735016,
-0.7465002536773682,
0.27326488494873047,
1.0189663171768188,
0.3083615005016327,
... |
def name _ search ( self, cr, uid, name, args = none, operator ='ilike ', context = none, limit = 100 ) : if context is none : context = { } if'move _ line _ id'in context : type _ ids = resolve _ o2m _ operations ( cr, uid, self. pool. get ('moving. lines'), context. get ('move _ line _ id'), [ " vehicle _ type " ], c... | [
-1.2555915117263794,
0.2120847851037979,
0.6420295238494873,
-0.42505761981010437,
0.19333603978157043,
-0.6833384037017822,
-0.6363406777381897,
-1.1209642887115479,
-0.3552880585193634,
0.8417696952819824,
0.34482038021087646,
-0.22006599605083466,
-0.12069239467382431,
0.386957138776779... |
def add _ to _ db ( self ) : print ( " adding " + self. name + " to persons. db " ) persondao. insert ( self. name ) | [
-0.7366407513618469,
-0.06779215484857559,
0.5437329411506653,
-0.48039060831069946,
0.4843779504299164,
1.6736122369766235,
0.07119353115558624,
0.7655153274536133,
-0.20942765474319458,
-0.6675393581390381,
-0.5269381999969482,
-0.4072088599205017,
-0.6302589178085327,
0.89565110206604,
... |
def get _ injection _ core ( core _ cubes ) : core _ info _ all = [ get _ encircled _ energy _ cube ( c, frac = 1 ) for c in core _ cubes ] core _ cutouts = [ ] for cube, core _ df in zip ( core _ cubes, core _ info _ all ) : core _ cutouts. append ( get _ core _ xsection ( cube, core _ df [ ['stary ','starx'] ]. mean ... | [
-0.21454599499702454,
-0.1385309100151062,
0.6412080526351929,
-0.6639795899391174,
-0.3963242471218109,
-0.3466046452522278,
0.5199611783027649,
0.04525253176689148,
-0.6677964925765991,
1.0054153203964233,
0.48216938972473145,
0.46995827555656433,
-1.4666062593460083,
-0.0706089958548545... |
def _ _ len _ _ ( self ) : return self. _ size | [
-0.12691649794578552,
-0.6661685109138489,
0.29100316762924194,
-1.798009991645813,
0.436826229095459,
0.18146581947803497,
0.6518471837043762,
0.16756293177604675,
0.8039458990097046,
-1.0270609855651855,
-1.0933301448822021,
-0.3838566839694977,
0.6342904567718506,
-0.5727577805519104,
... |
def test _ atomic _ qname _ pattern _ 4 _ nistxml _ sv _ iv _ atomic _ qname _ pattern _ 5 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - pattern - 5. xsd ", instance = " nistdata / atomic / qname / sc... | [
-0.03159555420279503,
-0.5960493087768555,
0.35876497626304626,
0.08554036915302277,
-0.5245538353919983,
0.09298688173294067,
0.21914826333522797,
-0.9918099641799927,
-0.20241881906986237,
0.596866250038147,
-0.6995500326156616,
-0.18041443824768066,
-0.41136667132377625,
-0.118224106729... |
def receive _ request ( client _ handler ) : request = client _ handler. http _ next _ event ( ) while true : event = client _ handler. http _ next _ event ( ) if isinstance ( event, h11. endofmessage ) : break elif isinstance ( event, h11. data ) : client _ handler. request _ body + = event. data client _ handler. req... | [
-0.14224399626255035,
0.012472272850573063,
0.705192506313324,
-0.4659373462200165,
0.1715708076953888,
0.39334970712661743,
-0.3319653272628784,
-0.6904826760292053,
-0.2614037096500397,
-0.3375329375267029,
-0.04778394103050232,
-0.10132325440645218,
-0.10043277591466904,
0.5231629014015... |
def _ get _ tls _ paths ( self ) : hostname = self. hostname if hostname is none and self. config is not none : hostname = self. config. hostname cert _ dir = os. path. join ( letsencrypt. le _ cert _ path, self. hostname ) cert _ path = os. path. join ( cert _ dir, letsencrypt. le _ ca ) key _ path = os. path. join ( ... | [
-0.23149201273918152,
0.02099701017141342,
0.5453341007232666,
-0.13358579576015472,
0.4405164122581482,
0.19084776937961578,
0.15529118478298187,
0.5692785978317261,
-0.584542453289032,
0.8626261949539185,
-0.8610125184059143,
-0.6618574261665344,
-0.17159220576286316,
0.6200541257858276,... |
def test _ register _ get ( self ) : response = self. client. get ( self. register _ url ) self. assertequals ( response. status _ code, 200 ) self. asserttemplateused ( response,'users / register. html') | [
-0.37454625964164734,
1.0805197954177856,
0.46929681301116943,
0.661315381526947,
1.0409862995147705,
-0.4940081238746643,
-0.0965685024857521,
0.8052460551261902,
-0.4618387520313263,
-1.206510305404663,
-0.15759098529815674,
0.30683082342147827,
0.2452840656042099,
0.07806544005870819,
... |
def close _ non _ parent _ step ( self ) : try : tip _ step = self. _ step _ stack [ - 1 ] if tip _ step. is _ parent : return self. _ step _ stack. pop ( ). close ( ) except : _ log _ crash ( self. _ stream _ engine, " close _ non _ parent _ step ( ) " ) raise crashengine ( " closing non - parent step failed. " ) | [
-0.6368842720985413,
0.005097232758998871,
0.7289470434188843,
0.9483202695846558,
-0.3412233293056488,
0.8769453167915344,
0.4371863007545471,
-1.4474782943725586,
-1.2297128438949585,
-0.1189781203866005,
0.6242390871047974,
-0.359371155500412,
-0.63965904712677,
1.52707040309906,
0.03... |
def after _ all _ finished ( self, callback ) : self. _ callback _ after _ all = callback | [
0.38076111674308777,
-0.7278534173965454,
0.6248602867126465,
0.7969180941581726,
-0.743043839931488,
0.6486894488334656,
0.3789345622062683,
0.7343679070472717,
0.14543358981609344,
-0.44909173250198364,
-1.1295933723449707,
-0.6503022909164429,
0.30318155884742737,
1.4750990867614746,
... |
def actionsf ( state ) : import math position = findblank _ 8p ( state ) sqrt = int ( math. sqrt ( len ( state ) ) ) actions = [ ] if position [ 1 ]! = 0 : actions. append ( " left " ) if position [ 1 ]! = sqrt - 1 : actions. append ( " right " ) if position [ 0 ]! = 0 : actions. append ( " up " ) if position [ 0 ]! = ... | [
-0.6826958060264587,
-0.3934118449687958,
0.49915438890457153,
0.4618661105632782,
0.6279404759407043,
-0.318107545375824,
0.47587108612060547,
-0.6350857019424438,
1.0762412548065186,
0.36746475100517273,
-0.8863446712493896,
-0.7647594213485718,
-0.19457203149795532,
0.6703044772148132,
... |
def get _ fixture ( name ) : return file ( reduce ( os. path. join, [ os. path. dirname ( _ _ file _ _ ), fixtures _ dir, name ] ) ). read ( ) | [
0.5951826572418213,
-0.1186484843492508,
0.6056545376777649,
-0.3255741000175476,
-0.46200278401374817,
-0.8656966090202332,
1.0434342622756958,
-0.5559654831886292,
-0.40275511145591736,
-0.3822701573371887,
-0.3145323693752289,
0.02825136110186577,
0.19021102786064148,
-0.551359891891479... |
def build _ part2 _ rnn ( window _ size, num _ chars ) : model = sequential ( ) model. add ( lstm ( units = 200, input _ shape = ( window _ size, num _ chars ) ) ) model. add ( dense ( units = num _ chars, activation = none ) ) model. add ( activation ('softmax') ) return model | [
0.1069115400314331,
-0.5532832741737366,
0.5585817694664001,
0.18261581659317017,
-0.596418559551239,
-0.9052630662918091,
-0.08667527884244919,
0.42119571566581726,
0.058457013219594955,
-0.15671496093273163,
-0.9991054534912109,
1.1632468700408936,
-0.1150965616106987,
-0.501881241798400... |
def erfcinv ( x, name = none ) : with ops. name _ scope ( name, " erfcinv ", [ x ] ) : x = ops. convert _ to _ tensor ( x, name = " start " ) return - ndtri ( 0. 5 * x ) * np. sqrt ( 0. 5 ) | [
-0.1017623171210289,
0.22838234901428223,
0.5978404879570007,
0.6059919595718384,
-0.32185599207878113,
-0.5061712265014648,
0.18149180710315704,
-0.5084545016288757,
-0.48216181993484497,
-0.09480583667755127,
-0.6989895105361938,
1.0579029321670532,
-0.36220860481262207,
-0.7712234258651... |
def shopify _ set _ variant _ sku ( self, result, product _ template, instance ) : for variation in result. get ( " variants " ) : price = variation. get ( " price " ) variation _ attributes = self. prepare _ vals _ for _ variation _ attributes ( result, variation ) template _ attribute _ value _ ids = self. prepare _ ... | [
-0.7351298332214355,
-0.4461861550807953,
0.5428630113601685,
0.18762996792793274,
0.14487625658512115,
-0.10029525309801102,
0.21392779052257538,
-0.0880415067076683,
0.1382579803466797,
1.2113827466964722,
-0.6473050117492676,
-0.11261454224586487,
0.008764305151998997,
0.538907706737518... |
def command _ diss ( self, brain, arg ) : diss = self. act ( self. action _ yml,'diss ', arg ) return diss | [
-0.30415773391723633,
-0.6089091300964355,
0.2038041204214096,
-0.019511504098773003,
0.5503316521644592,
0.5861992239952087,
1.1120885610580444,
-0.2799547016620636,
0.7390215992927551,
-0.1834130734205246,
-0.13048741221427917,
0.7061221599578857,
-0.5329633951187134,
0.9466624855995178,... |
def movements _ enaction ( self ) - > movementsenaction : return self. _ movements _ enaction | [
0.03983918949961662,
-0.26225313544273376,
0.335068941116333,
0.4448394775390625,
0.5214484333992004,
0.11228757351636887,
0.9469980597496033,
-0.8085457682609558,
0.8292896151542664,
0.7089886665344238,
-0.29933983087539673,
1.1979352235794067,
0.29982662200927734,
0.23628471791744232,
... |
def test _ max _ 2 ( ) : assert harvard. max ( ) = = 20329 | [
0.4724206328392029,
0.24492931365966797,
0.41009917855262756,
1.4182285070419312,
1.167561411857605,
1.0973354578018188,
-0.6939791440963745,
-0.3168460428714752,
0.2298092544078827,
-0.4925946593284607,
-0.7748094797134399,
0.8198288679122925,
0.5006065368652344,
0.3746214807033539,
0.7... |
def generate _ svm _ arrays _ around _ cds _ start ( list _ input _ transcripts, path _ to _ harringtonine _ reads, path _ to _ harringtonine _ psite, nthreads ) : def process _ single _ transcript _ forsvm ( input _ transcript, path _ to _ harringtonine _ reads, path _ to _ harringtonine _ psite ) : print'working on'+... | [
-0.4473051130771637,
-0.36791864037513733,
0.6130881905555725,
0.033498555421829224,
0.28060609102249146,
0.5371982455253601,
0.40131309628486633,
-0.017312122508883476,
-0.233433797955513,
0.5182579159736633,
-0.11494430154561996,
-0.036803167313337326,
-0.16022028028964996,
0.32082787156... |
def prev _ steps _ must _ be _ complete ( view _ fn ) : def _ view _ wrapper ( self, request, * args, * * kwargs ) : checker = checkout _ utils. progresschecker ( ) if not checker. are _ previous _ steps _ complete ( request ) : messages. error ( request, " you must complete this step of the checkout first " ) url _ na... | [
-0.4410877823829651,
-0.0067436485551297665,
0.7221696972846985,
0.5693620443344116,
-0.2671072781085968,
0.18786510825157166,
0.9373598694801331,
-0.08440257608890533,
-0.13859863579273224,
-0.1334563046693802,
0.7168638110160828,
-0.7907073497772217,
0.5351974368095398,
0.779130160808563... |
def test _ atomic _ boolean _ white _ space _ nistxml _ sv _ iv _ atomic _ boolean _ white _ space _ 1 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / boolean / schema + instance / nistschema - sv - iv - atomic - boolean - whitespace - 1. xsd ", instance = " nistdata / ... | [
-0.30432987213134766,
-0.12105938047170639,
0.45930659770965576,
0.46863630414009094,
-0.1513226479291916,
0.22045104205608368,
0.8513767123222351,
-0.5546218752861023,
0.038812220096588135,
1.043047308921814,
-0.08341355621814728,
0.3291010856628418,
-0.18038654327392578,
0.78773599863052... |
def buildshoppinglist ( self ) : # make a new sqlalchemy session for this session = createsession ( ) # get all the distinct dishnames to a list query = session. query ( menumeal. dishname ). filter ( menumeal. day. between ( self. days [ 0 ]. date - datetime. timedelta ( days = 1 ), self. days [ - 1 ]. date ) ). disti... | [
-1.2303906679153442,
-0.32035204768180847,
0.7169086933135986,
0.5145527124404907,
-0.25745120644569397,
-0.026926398277282715,
0.32059022784233093,
0.6930546164512634,
0.0954500362277031,
-0.5523279309272766,
-0.4320228397846222,
-0.3251468539237976,
0.6420978903770447,
0.5982798933982849... |
def test _ atomic _ qname _ min _ length _ 2 _ nistxml _ sv _ iv _ atomic _ qname _ min _ length _ 3 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - minlength - 3. xsd ", instance = " nistdata / atomic ... | [
0.43332844972610474,
-0.7226548194885254,
0.4295174479484558,
-0.27173081040382385,
-0.6396718621253967,
0.3868055045604706,
-0.9622752666473389,
-0.7745707631111145,
0.6998982429504395,
0.4007487893104553,
-0.4660636782646179,
0.2939070463180542,
-0.23681414127349854,
-0.4063536822795868,... |
def togglespeakingindentationjustification ( self, inputevent = none ) : value = _ settingsmanager. getsetting ('enablespeechindentation') _ settingsmanager. setsetting ('enablespeechindentation ', not value ) if _ settingsmanager. getsetting ('enablespeechindentation') : full = messages. indentation _ justification _ ... | [
-0.4100225269794464,
-0.032385826110839844,
1.059478998184204,
0.27852708101272583,
-0.07985212653875351,
1.1271198987960815,
0.08688882738351822,
1.3773679733276367,
0.7664236426353455,
0.5821520090103149,
-0.29055261611938477,
-0.15937486290931702,
-1.6787776947021484,
0.3963289558887481... |
def makegraphs ( outfolder, expt _ list, usegauss, verbose ) : for expt in expt _ list : refwell = expt. refwell donwells = expt. donwells accwells = expt. accwells extrawells = expt. extrawells cwd = os. getcwd ( ) if verbose : print ( " generating plots for experiment { } ". format ( expt. expt ) ) if expt. expt _ ty... | [
0.31603020429611206,
0.810429573059082,
0.7762526869773865,
0.2808041572570801,
0.1477792114019394,
0.9696765542030334,
0.8897665143013,
0.07551634311676025,
0.2594287395477295,
-0.04720686376094818,
0.5124873518943787,
0.4765595495700836,
-0.3815547823905945,
1.2523595094680786,
-0.2833... |
def grayscale ( testlines ) : i = 3 red _ scale = 3 green _ scale = 4 blue _ scale = 5 test = [ ] sum _ test = [ ] result = [ ] k = 0 sum _ test _ iterate = 0 while i < len ( testlines ) : if i = = red _ scale : testlines [ i ] = float ( testlines [ i ] ) * 0. 299 red _ scale + = 3 if i = = green _ scale : testlines [ ... | [
0.11263202875852585,
-0.34398704767227173,
0.9566695094108582,
-0.2294226735830307,
0.4304044544696808,
0.4786783456802368,
-0.10937788337469101,
-0.808761715888977,
-0.4322746992111206,
0.851692259311676,
0.2993917465209961,
0.17604795098304749,
-0.8386133909225464,
0.3227848708629608,
... |
def obj _ detection ( image, model, input _ folder ) : # read the graph. logger. info ( " object detection model started " ) cnt = 0 # unknown image count tracker report _ dict = { } print ('image ', image ) try : logger. info ( " reading images for object detection " ) img = read _ image _ bgr ( os. path. join ( input... | [
-0.3421406149864197,
-0.4180775284767151,
1.0405622720718384,
0.26422128081321716,
0.2976383864879608,
0.7110986709594727,
1.079822063446045,
-0.1959046870470047,
-0.7299494743347168,
0.2006688117980957,
-0.14258085191249847,
-0.18615339696407318,
0.10698727518320084,
0.4572819769382477,
... |
def test _ atomic _ any _ uri _ max _ length _ nistxml _ sv _ iv _ atomic _ any _ uri _ max _ length _ 1 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - maxlength - 1. xsd ", instance = " nistdata / a... | [
-0.12085314840078354,
-0.16319450736045837,
0.40819689631462097,
1.3298556804656982,
-0.35699233412742615,
0.055069565773010254,
-0.16705140471458435,
0.2646201252937317,
0.5216959714889526,
0.03206932917237282,
0.40533575415611267,
-0.25444477796554565,
-0.3068636655807495,
0.392779201269... |
def hit ( self, shot ) : center = self. target. getcenter ( ) distance = sqrt ( ( center. getx ( ) - shot. getx ( ) ) * * 2 + ( center. gety ( ) - shot. gety ( ) ) * * 2 ) if distance < = shot. getradius ( ) + self. radius : return true | [
-0.05530049279332161,
-1.1255872249603271,
0.7424453496932983,
-0.26914864778518677,
-0.6018707156181335,
0.20839443802833557,
-0.5323696136474609,
-0.2217600792646408,
-0.25468024611473083,
0.818354606628418,
0.06902305036783218,
0.4046627879142761,
-0.7563124895095825,
-0.111702874302864... |
def set _ port _ number ( port _ number ) : get _ profile ( ). set _ port _ number ( port _ number ) | [
0.3621988296508789,
-0.29605117440223694,
0.44058433175086975,
0.915674090385437,
1.2594960927963257,
0.17541885375976562,
1.3547147512435913,
0.22327694296836853,
0.5220016837120056,
-0.34225600957870483,
-1.113909363746643,
0.8844010233879089,
-0.026057187467813492,
-0.10074836760759354,... |
def test _ atomic _ id _ pattern _ 3 _ nistxml _ sv _ iv _ atomic _ id _ pattern _ 4 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - pattern - 4. xsd ", instance = " nistdata / atomic / id / schema + instance... | [
0.18005625903606415,
-0.1783147156238556,
0.42981067299842834,
0.43903520703315735,
-0.528708279132843,
0.44168537855148315,
0.39784231781959534,
-0.09915938228368759,
-0.017684845253825188,
0.9087077975273132,
-0.6937301158905029,
-0.0039525702595710754,
-0.15330730378627777,
-0.554771840... |
def new _ ad _ event ( self, rng, timestamp ) : event = toymc. event ( self. truth _ label _ ad, 1, timestamp, rng. choice ( self. avail _ ads ), self. trigger _ type, self. site, * self. ad _ muon _ physical _ quantities ( rng ), ) return event | [
-0.2764021158218384,
-0.5120516419410706,
0.3032185435295105,
-1.0410077571868896,
-0.4555014967918396,
0.3364051878452301,
-0.10768355429172516,
-0.36930152773857117,
0.8013668060302734,
-0.060745637863874435,
0.1089116558432579,
1.5313979387283325,
0.20802509784698486,
0.0273381117731332... |
def read _ clipboard ( * args, * * kwargs ) - > linkeddataframe : return linkeddataframe ( pd. read _ clipboard ( * args, * * kwargs ) ) | [
-0.2237299382686615,
0.3591633141040802,
0.5085875988006592,
-0.0840873196721077,
-0.7291717529296875,
0.2038150131702423,
-0.025022031739354134,
-0.25871673226356506,
-0.10535592585802078,
-0.7652491331100464,
0.9804481863975525,
0.9024572372436523,
0.21683040261268616,
-1.323716878890991... |
def free _ indices ( self ) : return [ i for i, par in enumerate ( self. pars ( ) ) if self. check ( par, " free " ) ] | [
-1.31340754032135,
-0.18468494713306427,
0.2925523817539215,
-0.1645505726337433,
-0.6906142234802246,
0.8448998928070068,
0.24506798386573792,
-0.5650532841682434,
-0.07616876065731049,
0.8057664632797241,
-0.32771795988082886,
0.3176875114440918,
-1.277482509613037,
-0.15652279555797577,... |
def test _ atomic _ language _ length _ 1 _ nistxml _ sv _ iv _ atomic _ language _ length _ 2 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - length - 2. xsd ", instance = " nistdata / atomic / l... | [
0.16322505474090576,
-0.6538190245628357,
0.43099141120910645,
0.8133889436721802,
-0.3530740737915039,
0.08909209072589874,
-0.08596618473529816,
0.2553853690624237,
-0.22983430325984955,
0.6875203251838684,
-0.5255311727523804,
0.009276637807488441,
0.49896514415740967,
0.417842417955398... |
def country ( self ) : return self. _ country | [
0.43126505613327026,
-0.6587223410606384,
0.0703929215669632,
0.4861259162425995,
0.20337925851345062,
1.7199692726135254,
1.5058127641677856,
-0.4705376923084259,
0.41335660219192505,
-1.276391863822937,
0.31146958470344543,
0.9382749199867249,
0.051142171025276184,
-0.2553882300853729,
... |
def findtarget ( self, root, k ) : comp = set ( ) def dfs ( node ) : if not node : return false if node. val in comp : return true comp. add ( k - node. val ) return dfs ( node. left ) or dfs ( node. right ) return dfs ( root ) | [
0.1117519661784172,
0.5592066645622253,
0.6306688189506531,
0.7214746475219727,
-0.40064674615859985,
-0.3986993432044983,
-0.3893364667892456,
0.04203902184963226,
-0.3784775137901306,
0.19848822057247162,
1.0759670734405518,
-0.5642120838165283,
-1.0232326984405518,
0.4021333158016205,
... |
def _ commit _ comment _ url ( self, owner, repo, sha ) : return " % s / repos / % s / % s / commits / % s / comments " % ( self. _ api _ url, owner, repo, sha ) | [
0.10903720557689667,
-0.9743221998214722,
0.565462052822113,
-0.7996926307678223,
0.9870116710662842,
0.3430369794368744,
0.07617997378110886,
0.13259044289588928,
-0.5180881023406982,
0.6037513613700867,
0.7373480796813965,
0.0397113673388958,
-0.15801334381103516,
-0.2894667685031891,
... |
def get _ idx _ pair _ idx ( n _ variable ) : flatten _ idx = 0 idx _ pair _ idx = dict ( ) for i in range ( 0, n _ variable ) : for j in range ( i + 1, n _ variable ) : idx _ pair _ idx [ tuple ( [ i, j ] ) ] = flatten _ idx flatten _ idx + = 1 return idx _ pair _ idx | [
-2.1448683738708496,
0.12648139894008636,
0.32228776812553406,
-0.5251529216766357,
-0.9942454695701599,
-0.7405502796173096,
1.6510790586471558,
0.4239313006401062,
-0.35139521956443787,
0.0849023163318634,
-0.6184621453285217,
-0.5152550339698792,
-0.7344791889190674,
0.27321112155914307... |
def actionsf _ 8p ( state ) : return actionsf ( state ) | [
0.2634882926940918,
-0.41072946786880493,
0.17205166816711426,
0.8261195421218872,
0.06310856342315674,
-1.4348523616790771,
0.5662446022033691,
-0.8033676147460938,
0.856992781162262,
-0.6937220096588135,
0.310683012008667,
-0.11633223295211792,
0.45143967866897583,
-0.2566740810871124,
... |
def scheduled _ departure _ time ( self ) - > int : return self. _ vehicle _ data. get ( " charge _ state ", { } ). get ( " scheduled _ departure _ time " ) | [
-0.5196650624275208,
-0.012613324448466301,
0.6921177506446838,
0.13070230185985565,
0.5761008858680725,
-0.13653701543807983,
-0.8238111734390259,
0.4696466326713562,
-0.24523921310901642,
-0.2534793019294739,
-0.8749009966850281,
-0.17126111686229706,
0.14324650168418884,
-0.269329279661... |
def network _ eval ( args ) : # define some parameters for the model instantiation if args. use _ ideep : train _ arg _ scope = {'use _ cudnn': false,'cudnn _ exhaustive _ search': false,'training _ mode': 1 } else : train _ arg _ scope = {'order':'nchw ','use _ cudnn': true,'cudnn _ exhaustive _ search': true, # 10485... | [
-0.05381561815738678,
0.3542618751525879,
0.7729024291038513,
-0.36893168091773987,
0.5704241394996643,
-0.002419855911284685,
0.19879156351089478,
0.6542258262634277,
-0.5394192934036255,
0.2530454099178314,
0.3807160556316376,
-0.458026647567749,
0.23567481338977814,
0.1732431799173355,
... |
def main ( ) : while true : # get the next command and try to execute it try : cmd = input ( ) if cmd = = " quit " : # if the command is " quit ", exit from the main function sys. exit ( 0 ) exec _ cmd ( cmd ) except keyboardinterrupt : sys. exit ( 0 ) # exit from the main function | [
0.5026981830596924,
-0.10872038453817368,
0.7947584986686707,
0.9019704461097717,
0.005899900570511818,
0.5345237255096436,
0.16778071224689484,
-0.29364556074142456,
-0.4067069888114929,
-0.6456034183502197,
0.6411019563674927,
-0.02984844706952572,
-0.4471391439437866,
-0.182903409004211... |
def testmorph ( img _ idx ) : # 1. read images infile = ".. / images / 10k / dataset10k _ % 04d. jpg " % img _ idx maskfile = ".. / results / 10k / segmentation / 10kgt _ % 04d. png " % img _ idx img _ org = cv2. imread ( infile, cv2. imread _ unchanged ) mask = cv2. imread ( maskfile, cv2. imread _ unchanged ) if img ... | [
-0.39024102687835693,
-0.19040414690971375,
0.9534586668014526,
0.16740071773529053,
0.4107035994529724,
0.5586646199226379,
1.2365713119506836,
0.010030029341578484,
0.5981086492538452,
-0.2400241643190384,
-0.3617621660232544,
0.2109965682029724,
0.03129292279481888,
-0.11808996647596359... |
def test _ atomic _ any _ uri _ white _ space _ nistxml _ sv _ iv _ atomic _ any _ uri _ white _ space _ 1 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - whitespace - 1. xsd ", instance = " nistdata ... | [
-0.730656623840332,
-0.25001806020736694,
0.47613632678985596,
0.8324686884880066,
-0.05511515215039253,
-0.03849319368600845,
0.258514404296875,
-0.40557628870010376,
0.5548853874206543,
-0.005763511639088392,
0.9127257466316223,
-0.03470851480960846,
-0.4099406898021698,
1.04099631309509... |
def in _ degree _ distribution ( digraph ) : dist = { } in _ degrees = compute _ in _ degrees ( digraph ) for key in in _ degrees : if dist. has _ key ( in _ degrees [ key ] ) : dist [ in _ degrees [ key ] ] + = 1 else : dist [ in _ degrees [ key ] ] = 1 return dist | [
-0.5132513046264648,
0.3437833786010742,
0.5261261463165283,
-0.6903268098831177,
-0.6029121279716492,
-0.5384774208068848,
0.9543516635894775,
0.6285560131072998,
0.3211303949356079,
0.49618375301361084,
-1.1096969842910767,
-0.2987728714942932,
-0.35812604427337646,
0.37988173961639404,
... |
def zero _ grad _ buffer ( self ) : assert self. _ grad _ buffers is not none,'buffers are not initialized.'for _, buffer _ in self. _ grad _ buffers. items ( ) : buffer _. zero ( ) | [
-0.4765436351299286,
-0.3250107169151306,
0.46721017360687256,
0.27196213603019714,
1.109440803527832,
1.4751571416854858,
0.9854679703712463,
-0.47769713401794434,
-0.8061987161636353,
-0.4137677848339081,
-1.2860360145568848,
0.9671043753623962,
-0.8867075443267822,
1.1941653490066528,
... |
def set _ city ( self, value ) : self. city = value logging. debug ( " user's city received " ) | [
0.4012098014354706,
-0.2522284686565399,
0.1298021674156189,
-0.08298961073160172,
-0.5198902487754822,
0.7492395639419556,
0.43351706862449646,
-0.007362226024270058,
-0.061575163155794144,
-0.12204200029373169,
-1.742750644683838,
-0.03786280378699303,
0.5355298519134521,
0.4226489961147... |
def extend ( base _ class : baseclass, name : str, doc : optional [ str ] = none, class _ handler : union [ none, str, callable [ [ extclassitem ], any ] ] = none, inst _ handler : union [ none, str, callable [ [ extinstitem ], any ] ] = none, ext _ args : optional [ sequence [ any ] ] = none, ext _ kwargs : optional [... | [
-0.2076570987701416,
-0.15521486103534698,
0.8976927399635315,
0.3146558105945587,
-1.23814058303833,
0.14137744903564453,
-0.2484695464372635,
-0.13365063071250916,
0.6217366456985474,
-0.36730512976646423,
-0.4052554666996002,
0.24258306622505188,
0.0959441140294075,
0.02987535484135151,... |
def createschema ( self, schemaname, schemafilename, schemacontents, description = none ) : req = apiclient. allschemasurl % ( self. host, " / draft " ) fields = {'schemafile': ( schemafilename, schemacontents,'application / json'),'schematype':'json - schema ','name': schemaname, } if description : fields [ " descript... | [
-0.7946231961250305,
-0.5576995015144348,
0.7542423605918884,
0.07698996365070343,
-0.040677182376384735,
-0.06294792890548706,
-0.7947283387184143,
0.2321387082338333,
-0.20186085999011993,
0.0816224068403244,
-0.5466406941413879,
0.033472541719675064,
-1.4031002521514893,
0.1684605479240... |
def availabledatarates ( self ) : # real signature unknown ; restored from _ _ doc _ _ return [ ] | [
-0.5563168525695801,
0.6185204982757568,
0.40047121047973633,
0.3144875466823578,
-1.131104826927185,
1.064384937286377,
0.5820235013961792,
-0.07921425253152847,
0.5200839638710022,
0.05113057419657707,
-0.6104251742362976,
0.605968713760376,
-0.3271641433238983,
1.1094714403152466,
0.0... |
def select ( self, ids, callback = none, * * kwargs ) : ids = _ uniq ( ids ) assert all ( _ is _ integer ( _ ) for _ in ids ) self. eval _ js ('table. select ( { }, { } ) ; '. format ( dumps ( ids ), dumps ( kwargs ) ), callback = callback ) | [
-1.1536931991577148,
0.17397598922252655,
0.12142105400562286,
0.09711060672998428,
-0.17570146918296814,
-1.504040241241455,
0.03193686157464981,
-0.952961802482605,
0.5902853012084961,
0.5241057276725769,
-0.4430863857269287,
0.05760140344500542,
-0.10278640687465668,
0.1451684832572937,... |
def is _ mentor ( self ) : return self. role = = self. permissionchoice. mentor | [
-0.564105212688446,
0.13176649808883667,
0.49738985300064087,
0.670561671257019,
-0.5959397554397583,
-0.05667637661099434,
-0.8760157823562622,
0.48490697145462036,
1.1814513206481934,
0.10636063665151596,
0.4376957416534424,
0.9903391599655151,
-0.6301701068878174,
0.2624005675315857,
... |
def right _ join ( table _ a, table _ b, test ) : return left _ join ( table _ b, table _ a, test ) | [
1.1586298942565918,
-0.12544049322605133,
0.6769529581069946,
0.857435941696167,
-0.7071704864501953,
-0.3943828344345093,
-0.5164065361022949,
0.25626140832901,
-0.715179443359375,
0.4664328992366791,
0.47808629274368286,
0.21948522329330444,
-1.0821545124053955,
-0.3922177851200104,
-0... |
def test _ scenarios ( logger : logger, bucket _ defs : list [ tuple [ policytype, dict [ str, any ] ] ], process _ num : int, units _ per _ request : float, process _ time : float, request _ num : int, max _ elapsed _ time : float, max _ rate _ limit _ hits : int, ) - > none : rate _ limit _ objects = [ sentinelhubrat... | [
0.35316377878189087,
0.9235524535179138,
0.8218528032302856,
0.2679494619369507,
1.4046592712402344,
-0.24073389172554016,
0.17834831774234772,
-0.6514406204223633,
0.13590365648269653,
-0.1692230999469757,
-0.027587294578552246,
0.5729061365127563,
0.3766644597053528,
-0.5380509495735168,... |
def test _ history _ to _ df _ empty ( ) : start _ dt = pd. timestamp ('2017 - 10 - 05 08 : 00 : 00 ', tz = pytz. utc ) port = portfolio ( start _ dt ) hist _ df = port. history _ to _ df ( ) test _ df = pd. dataframe ( [ ], columns = [ " date ", " type ", " description ", " debit ", " credit ", " balance " ] ) test _ ... | [
-0.09344653785228729,
0.9114892482757568,
0.4738311767578125,
-0.5984407663345337,
1.685203194618225,
0.2548106908798218,
0.3184501826763153,
-0.33760881423950195,
-0.28498151898384094,
-0.7206394672393799,
-0.3228718042373657,
0.8417505025863647,
-0.2865675985813141,
-0.3469516634941101,
... |
def pretrained ( name = " ld _ wiki _ tatoeba _ cnn _ 21 ", lang = " xx ", remote _ loc = none ) : from sparknlp. pretrained import resourcedownloader return resourcedownloader. downloadmodel ( languagedetectordl, name, lang, remote _ loc ) | [
0.6171574592590332,
-0.38680383563041687,
0.35137245059013367,
-0.6419433355331421,
-0.5766558051109314,
0.3188939392566681,
0.02180374786257744,
0.5974531769752502,
0.20521758496761322,
-0.3758718967437744,
-1.5056065320968628,
-0.4404090344905853,
0.34892210364341736,
0.05171911045908928... |
def update _ screen ( ai _ settings, screen, ship, bullets, aliens, stats, play _ button, sb ) : # updates screen on each loop screen. fill ( ai _ settings. bg _ color ) # redraws all bullets behind ship and alien for bullet in bullets. sprites ( ) : bullet. draw _ bullet ( ) # redraws ship ship. blitme ( ) # redraws a... | [
-0.5535348057746887,
-0.3517008125782013,
0.5859496593475342,
-0.2847190499305725,
0.6304647922515869,
0.5142282247543335,
0.11835407465696335,
-1.6226565837860107,
0.5599169135093689,
0.9043957591056824,
0.7098004221916199,
0.40896403789520264,
0.6391260623931885,
0.6503010988235474,
0.... |
def add _ user ( email : str, password : str, first _ name : str, last _ name : str, account : int, bot : str, user : str, is _ integration _ user = false, role = " trainer ", ) : assert not utility. check _ empty _ string ( email ) and not utility. check _ empty _ string ( last _ name ) and not utility. check _ empty ... | [
0.13257642090320587,
0.8534896969795227,
0.7664002776145935,
-0.008135431446135044,
0.8777025938034058,
0.7345426678657532,
-0.010078804567456245,
-0.11135536432266235,
0.04515087604522705,
0.31886354088783264,
-0.6262156367301941,
-0.3852190673351288,
-0.6049278974533081,
-0.4023366868495... |
def wind _ force ( t ) : p = 44444. 0 w = 1. 0 wt = w * t return p * ( 3 * np. sin ( wt ) + 7 * np. sin ( 2 * wt ) + 5 * np. sin ( 3 * wt ) + 4 * np. sin ( 4 * wt ) ) | [
0.5207894444465637,
-0.30665719509124756,
0.34503456950187683,
-1.175842523574829,
0.32176926732063293,
0.14983254671096802,
-0.3344113230705261,
-0.17070220410823822,
-0.34115174412727356,
0.12856002151966095,
-0.20509392023086548,
-0.048900406807661057,
-1.0064504146575928,
0.22637635469... |
def find _ dots ( self, num _ dots ) : self. open _ camera ('left ', 960, 600 ) self. subscribe _ to _ camera ('left') # keep running until we find the correct number of dots while self. num _ dots _ found! = num _ dots : time. sleep ( 0. 1 ) # cleanup cv2. destroyallwindows ( ) self. camera _ sub. unregister ( ) # uns... | [
0.13128037750720978,
-0.2045355886220932,
0.3515298664569855,
0.19229041039943695,
-0.19339248538017273,
-0.3289971649646759,
0.3977058529853821,
-1.1182502508163452,
1.1472814083099365,
-0.3507804870605469,
-0.2183823585510254,
0.7024282217025757,
-0.6809340715408325,
0.7822771072387695,
... |
def get _ tf _ config _ for _ test _ scheme1 ( self, job _ obj ) : if self. lhs _ pending _ config. get ( job _ obj ) is none : lhs _ runner = lhsadapter ( self ) init _ conf = lhs _ runner. get _ batch _ lhs _ config ( job _ obj. os _ size, job _ obj ) [ 0 ] # modify intra thread only switch _ conf = init _ conf switc... | [
-0.28692442178726196,
-0.0030331877060234547,
0.7074870467185974,
-0.07477039843797684,
0.05038050562143326,
-0.2013959288597107,
0.5768349766731262,
0.08459712564945221,
-0.3527272939682007,
0.41513463854789734,
-0.3830427825450897,
-0.004438652656972408,
-0.7073004841804504,
0.5301467180... |
def to _ python ( self, value ) : # explicitly check for the string'false ', which is what a hidden field # will submit for false. also check for'0 ', since this is what # radioselect will provide. because bool ( " true " ) = = bool ('1') = = true, # we don't need to handle that explicitly. if isinstance ( value, bases... | [
-0.9756155014038086,
-0.015831146389245987,
0.477364182472229,
-0.5498942732810974,
-0.18579377233982086,
0.835968017578125,
-0.014396991580724716,
-0.6781027317047119,
-0.38176238536834717,
0.585030198097229,
-0.5494289398193359,
0.13011345267295837,
-0.4595109522342682,
0.684484243392944... |
def print _ decision _ rules ( self, attribute _ names = none, class _ name = " class " ) : rules = myutils. rules ( tree = self. tree, rules = [ ], chain ='', previous _ value ='', class _ name = class _ name ) for rule in rules : print ( rule ) | [
0.17640262842178345,
-0.26637065410614014,
0.49539077281951904,
-0.03608957305550575,
0.8144162893295288,
0.7427986860275269,
-0.31275710463523865,
0.33149993419647217,
-0.7505283355712891,
0.4230431914329529,
0.4047396779060364,
1.490475058555603,
0.3109968304634094,
0.7230071425437927,
... |
def beta _ create _ algorithminternalservice _ stub ( channel, host = none, metadata _ transformer = none, pool = none, pool _ size = none ) : request _ serializers = { ('com. abcft. algorithm. grpc. internal. algorithminternalservice ','allennlp') : allennlprequest. serializetostring, ('com. abcft. algorithm. grpc. in... | [
-0.4197663962841034,
-0.04888542741537094,
0.9863834381103516,
-1.2489348649978638,
0.22303132712841034,
0.29556506872177124,
0.2392067164182663,
-0.8511980772018433,
0.03373885527253151,
-0.051871541887521744,
0.049589890986680984,
1.1257379055023193,
-0.39209815859794617,
0.5115535259246... |
def name ( self ) - > pulumi. output [ optional [ str ] ] : return pulumi. get ( self, " name " ) | [
0.9901037216186523,
-0.3986733853816986,
0.4608343839645386,
0.364223837852478,
-0.019950684159994125,
0.05413345620036125,
0.023300787433981895,
-0.35797443985939026,
0.25043293833732605,
0.6740515232086182,
0.105987049639225,
0.17410050332546234,
0.3119259476661682,
-0.804469108581543,
... |
def _ retrieve _ objects ( self, * * kwargs ) - > list [ activity ] : activities = [ ] for activity _ json in self. _ value : activity = activity ( client = self. _ client, json = activity _ json ) activity. refresh ( ) # to populate the object with all expected data activities. append ( activity ) return activities | [
-0.744346022605896,
-0.5828297734260559,
0.29382938146591187,
0.6982277035713196,
1.2627302408218384,
0.00566836167126894,
0.7501459717750549,
-0.9666617512702942,
0.8782325983047485,
-0.509231448173523,
0.35169607400894165,
0.19079291820526123,
-0.4289175868034363,
-0.5920116305351257,
... |
def front _ back _ mapper ( id _ frontend : str ) - > int : return authors _ backend [ id _ frontend ] | [
-0.5192612409591675,
-0.6077149510383606,
0.34433242678642273,
-1.0063484907150269,
-0.12685555219650269,
-0.8600986003875732,
-0.08320488035678864,
0.6043949723243713,
-0.08331534266471863,
-0.5455448031425476,
0.5081578493118286,
0.4210045635700226,
0.2924765944480896,
-0.180242285132408... |
def _ resize _ msg ( userinput, blocksize, change = " no " ) : msg = userinput first = true while len ( msg )! = blocksize : if first! = true : print ( " try again. doesn't match block size. " ) print ( " \ nyour inject is currently { } characters ". format ( len ( msg ) ) ) print ( " [ { } ] \ n ". format ( msg ) ) pr... | [
-0.19215670228004456,
0.7297294735908508,
0.7395780086517334,
-0.9341880083084106,
-0.9637948274612427,
-0.20587627589702606,
0.1613190621137619,
-0.680446207523346,
-0.08181405067443848,
0.1777053326368332,
0.34113988280296326,
1.2075992822647095,
-1.1857048273086548,
1.1830174922943115,
... |
def treynor ( mtx, datecol, astcol, bmkcol, risk _ free _ rate, sample _ period _ cls = utl. date. month, interp _ func = none ) : try : # interpolate the asset & benchmark values if interp _ func is not none : mtx, datecol, astcol, bmkcol = interp _ func ( mtx, datecol, 1, datecol, astcol, bmkcol ), 1, 2, 3 # compute ... | [
0.10581400245428085,
0.5166073441505432,
0.7152844071388245,
-0.8185762166976929,
-0.3155330717563629,
-0.6454388499259949,
0.05532974377274513,
-0.38767874240875244,
-0.6334662437438965,
0.7427372932434082,
0.14363960921764374,
0.07019994407892227,
0.17305660247802734,
-0.8817285895347595... |
def create _ pairsets ( all _ samples, pairs ) : tn _ pairs = pairs [ pairs ['match _ type'] = = " tumor _ normal " ] tp _ pairs = pairs [ pairs ['match _ type'] = = " tumor _ primary " ] tn _ pairsets = pd. merge ( tn _ pairs, all _ samples [ ['entity : sample _ id ','tsca _ id'] ], \ left _ on ='case _ sample _ id ',... | [
-0.5569202899932861,
-0.5318708419799805,
0.7208321690559387,
-0.989025890827179,
-0.448209285736084,
0.167188823223114,
0.13580802083015442,
0.0068765245378017426,
0.02831699326634407,
0.11318147927522659,
0.9863176345825195,
-0.22036701440811157,
0.5082958340644836,
0.3747631907463074,
... |
def check _ if _ element _ clickable ( self, selector, locator = by. css _ selector, attribute = none, timeout = 8 ) : try : logger. debug ( " look for element using'{ }'locator and'{ }'selector ". format ( locator, selector ) ) webdriverwait ( self. driver, timeout ). until ( ec. element _ to _ be _ clickable ( ( loca... | [
0.14301595091819763,
0.2793760299682617,
0.6708127856254578,
0.44385889172554016,
-0.22906900942325592,
-0.011719940230250359,
-0.1926742047071457,
0.3463641107082367,
0.3016461133956909,
0.6272764205932617,
0.7889384031295776,
0.5363550782203674,
-0.00014655855193268508,
0.024085156619548... |
def get _ windowed _ ts ( ranged _ ts : pd. dataframe, window _ size : int, with _ actual : bool = true ) : windowed _ ts = ranged _ ts windowed _ ts _ copy = windowed _ ts. copy ( ) for i in range ( window _ size - 1 + int ( with _ actual ) ) : windowed _ ts = pd. concat ( [ windowed _ ts, windowed _ ts _ copy. shift ... | [
-0.21626590192317963,
0.15751975774765015,
0.6993699669837952,
0.2651423215866089,
-0.4784088134765625,
-0.3075454831123352,
0.2172519713640213,
-0.1457524299621582,
0.2171846479177475,
0.9085605144500732,
0.13973283767700195,
1.284445881843567,
0.6086488962173462,
-0.1433875411748886,
-... |
def board _ y ( y ) : return ( win _ height - board _ size _ y * tile _ size ) + int ( y ) * tile _ size | [
0.09199008345603943,
0.5002354979515076,
0.7070494890213013,
0.4608865976333618,
-0.6319783329963684,
-0.36232951283454895,
1.0321170091629028,
-0.31426286697387695,
0.1848059743642807,
-0.3773452639579773,
-0.9146203994750977,
0.16492582857608795,
-0.14298637211322784,
0.5104588866233826,... |
def pylint ( session, extras, dilibraries = dilibraries ) : session. log ( f'run pylint for { lib _ name }') standard _ di _ pylint ( session, extras = extras, dilibraries = dilibraries ) | [
-0.3736357092857361,
-0.09559281170368195,
0.2870548665523529,
-0.43219253420829773,
0.05236320197582245,
0.151809960603714,
-0.25252604484558105,
0.2021368145942688,
0.9208502769470215,
-0.20141315460205078,
-0.7057531476020813,
-0.44999125599861145,
0.3982030749320984,
-0.040744788944721... |
def cpsci ( srcdir, destdir = '. / ', fsize = 8400960, datestr = none ) : # get files in destination directory dflist = sorted ( glob. glob ( os. path. join ( destdir,'ifu *. fits') ) ) # record copies and standard star observations ncp = 0 nstd = 0 nobj = 0 copied = [ ] stds = [ ] sciobj = [ ] # get list of source fil... | [
0.04846758767962456,
0.20990164577960968,
0.8876135349273682,
-0.055833861231803894,
-0.8339189291000366,
0.03536932170391083,
0.7925285696983337,
-0.21607179939746857,
-0.383797824382782,
0.7275646328926086,
0.3135412037372589,
0.29501479864120483,
-0.46912407875061035,
0.6759931445121765... |
def test _ zhang ( self ) : opt = dict ( max _ evaluations = 20, limit _ action = " ignore " ) aln = load _ aligned _ seqs ( " data / primate _ brca1. fasta ", moltype = " dna " ) natsel = evo _ app. natsel _ zhang ( " cnfgtr ", tree = " data / primate _ brca1. tree ", tip1 = " human ", tip2 = " chimpanzee ", opt _ arg... | [
-0.6579009294509888,
-0.15368977189064026,
0.44191643595695496,
0.12632663547992706,
0.15543165802955627,
0.39344966411590576,
-0.11243581026792526,
-0.35850292444229126,
-0.3256679177284241,
0.17077825963497162,
-0.3548099100589752,
0.2049759179353714,
0.5986155867576599,
-0.0073271547444... |
def func ( self ) : # https : / / theano. readthedocs. io / en / rel - 0. 6rc3 / library / compile / function. html # return theano. function ( inputs = [ self. k ], outputs = self. model, mode ='fast _ run') # return ( scalar ) loss | [
0.017770864069461823,
-0.6941773295402527,
0.35519012808799744,
0.1806609332561493,
-0.2539253234863281,
-0.36939823627471924,
0.9129303693771362,
0.028156042098999023,
-0.23240754008293152,
-0.643757164478302,
-0.2086869478225708,
0.19158482551574707,
0.6935757994651794,
-0.06690056622028... |
def nnangspread ( self, ainds, tol = 1e - 16 ) : if self. rng is none : raise notimplementederror ( " must set adjacency matrix first " ) if self. clusterids [ 0 ] = = - 1 : raise notimplementederror ( " must set cluster ids first " ) tinds = np. zeros ( 3 * len ( ainds ) ). astype ( int ) ind = 0 for aind in ainds : a... | [
-0.5214667916297913,
-0.07153721153736115,
0.6275457739830017,
-0.5676430463790894,
-0.20085357129573822,
-0.09810297191143036,
0.319363534450531,
-0.7266080379486084,
0.5779848694801331,
0.7217096090316772,
1.2931593656539917,
0.6493183374404907,
-0.022868257015943527,
-0.1658414304256439... |
def get _ and _ start _ threads ( num _ threads, db _ obj, thread _ queue, process _ in _ queue ) : # generate keyword arguments for the database _ worker function database _ worker _ args = {'db _ obj': db _ obj,'thread _ queue': thread _ queue,'process _ queue': process _ in _ queue } # start and track threads. threa... | [
0.36842507123947144,
0.04452146217226982,
0.5609646439552307,
0.21792259812355042,
1.3718444108963013,
-0.24449370801448822,
-0.32148537039756775,
0.20528626441955566,
0.06285303086042404,
0.2690715193748474,
-0.7811270952224731,
0.5047731399536133,
-0.12061446905136108,
0.2208951562643051... |
def reciprocal _ no _ nan ( x, name = none ) : with ops. name _ scope ( name, " reciprocal _ no _ nan ", [ x ] ) as scope : x = ops. convert _ to _ tensor ( x, name = " x " ) one = constant _ op. constant ( 1, dtype = x. dtype. base _ dtype, name = " one " ) return gen _ math _ ops. div _ no _ nan ( one, x, name = scop... | [
-0.34339091181755066,
1.1036076545715332,
0.68060302734375,
-0.24889466166496277,
-0.5418148040771484,
0.25083062052726746,
0.45433497428894043,
0.13835544884204865,
0.3331153094768524,
0.10982585698366165,
-0.9837920069694519,
0.5826693177223206,
0.3865284323692322,
-0.7879022359848022,
... |
def checkplugins ( plugins ) : pluginlist = cmds. plugininfo ( query = true, listplugins = true ) or [ ] for plugin in plugins : if plugin not in pluginlist : loadplugin ( plugin ) pluginlist = cmds. plugininfo ( query = true, listplugins = true ) or [ ] notloaded = [ i for i in plugins if i not in pluginlist ] if notl... | [
-0.6388302445411682,
-0.29256361722946167,
0.5634476542472839,
0.4592913091182709,
0.43167757987976074,
0.15389549732208252,
-0.6735267639160156,
-0.5898821353912354,
0.7593310475349426,
-0.040332987904548645,
-0.09678266197443008,
0.06130128726363182,
-1.132232904434204,
0.378099709749221... |
def test _ atomic _ any _ uri _ pattern _ 2 _ nistxml _ sv _ iv _ atomic _ any _ uri _ pattern _ 3 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - pattern - 3. xsd ", instance = " nistdata / atomic / ... | [
-0.19126082956790924,
-0.044494472444057465,
0.6196072697639465,
0.9442393779754639,
-0.08042187243700027,
0.4159252643585205,
-0.3949071168899536,
0.2959044575691223,
0.37731507420539856,
0.15563566982746124,
0.28492471575737,
-0.284342497587204,
-0.3399185538291931,
-0.4328494369983673,
... |
def set _ underline _ cursor ( self, underline _ cursor ) : if underline _ cursor : self. _ write _ command ( [ lcdbackpack. underline _ cursor _ on ] ) else : self. _ write _ command ( [ lcdbackpack. underline _ cursor _ off ] ) | [
0.19324088096618652,
-0.7079322934150696,
0.4582535922527313,
-0.3467061221599579,
-0.0982576310634613,
0.5577372908592224,
-0.05741449445486069,
0.8324709534645081,
0.3101336359977722,
-0.9207788705825806,
-1.0542480945587158,
1.2310322523117065,
-0.53868567943573,
-0.01276963111013174,
... |
def _ handleoneperiod ( self ) : # gets current physical page count from dumper. current _ physical _ page _ count = self. _ adump. getcurrentpagecount ( ) # gets the page count difference in this period. possibly handles wrapping. self. _ getpagecountinthisperiod ( current _ physical _ page _ count ) # gets current lo... | [
-0.9121237397193909,
-0.49341529607772827,
0.8567459583282471,
-0.7096447944641113,
0.2679767906665802,
-0.0458441786468029,
0.5710925459861755,
-0.32802677154541016,
0.7181335687637329,
-0.5797854661941528,
0.9167625904083252,
-0.0696880891919136,
-0.060724690556526184,
0.4755860567092895... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.